-
Notifications
You must be signed in to change notification settings - Fork 59
feat: support Sourcegraph Amp cli #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hugodutka
merged 6 commits into
coder:main
from
Harsh9485:Sourcegraph-Amp-Module-Support
Aug 11, 2025
+102
−3
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7948265
support Sourcegraph Amp cli
Harsh9485 63bc707
Merge branch 'main' into Sourcegraph-Amp-Module-Support
Harsh9485 6fad602
Fix typo
Harsh9485 122bb66
Merge branch 'Sourcegraph-Amp-Module-Support' of github.com:Harsh9485…
Harsh9485 8d00b41
fix test
Harsh9485 7819bff
Merge branch 'coder:main' into Sourcegraph-Amp-Module-Support
Harsh9485 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Welcome to Amp | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Welcome to Amp | ||
|
||
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│ │ | ||
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ |
Empty file.
13 changes: 13 additions & 0 deletions
13
lib/msgfmt/testdata/format/amp/multi-line-input/expected.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
∴ Thinking | ||
The user is asking me to identify which file contains this specific TypeScript code snippet. The code shows a useEffect hook that sets up polling | ||
for messages and server status. I need to search for this code in the codebase to find the file it belongs to. | ||
|
||
I should use the Grep tool to search for some unique parts of this code to locate the file. | ||
|
||
✓ Grep Set up polling for messages and server status | ||
|
||
✓ Grep const messageInterval = setInterval\(fetchMessages, 1000\) | ||
|
||
✓ List Directory /mnt/c/Users/Username/test-amp | ||
|
||
No files found in the workspace containing this code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
┃ Which file is this code from? | ||
┃ | ||
┃ ```ts | ||
┃ // Set up polling for messages and server status | ||
┃ useEffect(() => { | ||
┃ // Check server status initially | ||
┃ checkServerStatus(); | ||
┃ | ||
┃ // Set up polling intervals | ||
┃ const messageInterval = setInterval(fetchMessages, 1000); | ||
┃ const statusInterval = setInterval(checkServerStatus, 250); | ||
┃ | ||
┃ // Clean up intervals on component unmount | ||
┃ return () => { | ||
┃ clearInterval(messageInterval); | ||
┃ clearInterval(statusInterval); | ||
┃ }; | ||
┃ }, []); | ||
┃ ``` | ||
|
||
∴ Thinking | ||
The user is asking me to identify which file contains this specific TypeScript code snippet. The code shows a useEffect hook that sets up polling | ||
for messages and server status. I need to search for this code in the codebase to find the file it belongs to. | ||
|
||
I should use the Grep tool to search for some unique parts of this code to locate the file. | ||
|
||
✓ Grep Set up polling for messages and server status | ||
|
||
✓ Grep const messageInterval = setInterval\(fetchMessages, 1000\) | ||
|
||
✓ List Directory /mnt/c/Users/Username/test-amp | ||
|
||
No files found in the workspace containing this code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Which file is this code from? | ||
|
||
```ts | ||
// Set up polling for messages and server status | ||
useEffect(() => { | ||
// Check server status initially | ||
checkServerStatus(); | ||
|
||
// Set up polling intervals | ||
const messageInterval = setInterval(fetchMessages, 1000); | ||
const statusInterval = setInterval(checkServerStatus, 250); | ||
|
||
// Clean up intervals on component unmount | ||
return () => { | ||
clearInterval(messageInterval); | ||
clearInterval(statusInterval); | ||
}; | ||
}, []); | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I'm ready to help you with your coding tasks. What would you like to work on? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
┃ How are you? | ||
|
||
∴ Thinking | ||
The user is asking a simple social greeting "How are you?". This is a casual question about my state/wellbeing. I should respond concisely and | ||
directly as per my instructions to keep responses short (fewer than 4 lines unless asked for detail). I don't need to use any tools for this simple | ||
greeting. | ||
|
||
I should avoid elaborate explanations or summaries, and just give a brief, direct response. | ||
|
||
I'm ready to help you with your coding tasks. What would you like to work on? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
How are you? |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.