Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 08a933b

Browse files
committed
Merge remote-tracking branch 'origin/main' into bee/remove-search
2 parents 4d0c69a + caf0e57 commit 08a933b

183 files changed

Lines changed: 6668 additions & 4618 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 11 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -43,43 +43,25 @@ jobs:
4343
- runner: ubuntu
4444
node: 18 # VS Code started using Node 18 in Aug 2023 in v1.82: https://code.visualstudio.com/updates/v1_82#_engineering
4545
runs-on: ${{ matrix.runner }}-latest
46-
timeout-minutes: 10
46+
timeout-minutes: 15
4747
permissions:
4848
id-token: write
4949
contents: read
5050
steps:
5151
- uses: actions/checkout@v4
52+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
5253
- uses: actions/setup-node@v4
5354
with:
5455
node-version: ${{ matrix.node }}
55-
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
56+
cache: 'pnpm'
5657
- id: auth
5758
uses: google-github-actions/auth@v2
5859
# Skip auth if PR is from a fork
5960
if: ${{ !github.event.pull_request.head.repo.fork }}
6061
with:
6162
workload_identity_provider: ${{ secrets.DATA_TEAM_PROVIDER_NAME }}
6263
service_account: ${{ secrets.DATA_TEAM_SA_EMAIL }}
63-
- uses: google-github-actions/setup-gcloud@v2
64-
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
65-
shell: bash
66-
id: pnpm-cache
67-
- name: Restore cache pnpm store
68-
id: restore-pnpm-cache
69-
uses: actions/cache/restore@v4
70-
with:
71-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
72-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
73-
restore-keys: ${{ runner.os }}-pnpm-store-
74-
7564
- run: pnpm install
76-
77-
- name: Save cache pnpm store
78-
if: steps.restore-pnpm-cache.outputs.cache-hit != 'true'
79-
uses: actions/cache/save@v4
80-
with:
81-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
82-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
8365
- run: pnpm build
8466
- run: pnpm run test:unit --run
8567
env:
@@ -98,36 +80,19 @@ jobs:
9880
contents: read
9981
steps:
10082
- uses: actions/checkout@v4
83+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
10184
- uses: actions/setup-node@v4
10285
with:
10386
node-version-file: .tool-versions
104-
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
87+
cache: 'pnpm'
88+
- run: pnpm install
10589
- id: auth
10690
uses: google-github-actions/auth@v2
10791
# Skip auth if PR is from a fork
10892
if: ${{ !github.event.pull_request.head.repo.fork }}
10993
with:
11094
workload_identity_provider: ${{ secrets.DATA_TEAM_PROVIDER_NAME }}
11195
service_account: ${{ secrets.DATA_TEAM_SA_EMAIL }}
112-
- uses: google-github-actions/setup-gcloud@v2
113-
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
114-
shell: bash
115-
id: pnpm-cache
116-
- name: Restore cache pnpm store
117-
id: restore-pnpm-cache
118-
uses: actions/cache@v4
119-
with:
120-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
121-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
122-
restore-keys: ${{ runner.os }}-pnpm-store-
123-
- run: pnpm install
124-
125-
- name: Save cache pnpm store
126-
if: steps.restore-pnpm-cache.outputs.cache-hit != 'true'
127-
uses: actions/cache/save@v4
128-
with:
129-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
130-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
13196
# commands before `xvfb-run -a pnpm run test` avoid these ERROR messages:
13297
# - Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
13398
# - Exiting GPU process due to errors during initialization
@@ -184,36 +149,19 @@ jobs:
184149
contents: read
185150
steps:
186151
- uses: actions/checkout@v4
152+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
187153
- uses: actions/setup-node@v4
188154
with:
189155
node-version-file: .tool-versions
190-
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
156+
cache: 'pnpm'
157+
- run: pnpm install
191158
- id: auth
192159
uses: google-github-actions/auth@v2
193160
# Skip auth if PR is from a fork
194161
if: ${{ !github.event.pull_request.head.repo.fork }}
195162
with:
196163
workload_identity_provider: ${{ secrets.DATA_TEAM_PROVIDER_NAME }}
197164
service_account: ${{ secrets.DATA_TEAM_SA_EMAIL }}
198-
- uses: google-github-actions/setup-gcloud@v2
199-
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
200-
shell: bash
201-
id: pnpm-cache
202-
- name: Restore cache pnpm store
203-
id: restore-pnpm-cache
204-
uses: actions/cache@v4
205-
with:
206-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
207-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
208-
restore-keys: ${{ runner.os }}-pnpm-store-
209-
- run: pnpm install
210-
211-
- name: Save cache pnpm store
212-
if: steps.restore-pnpm-cache.outputs.cache-hit != 'true'
213-
uses: actions/cache/save@v4
214-
with:
215-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
216-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
217165
- run: GITHUB_REF=$BRANCH_NAME xvfb-run -a pnpm -C vscode run test:e2e --shard=${{ matrix.shard }}
218166
if: matrix.runner == 'ubuntu'
219167
env:
@@ -248,28 +196,12 @@ jobs:
248196
timeout-minutes: 5
249197
steps:
250198
- uses: actions/checkout@v4
199+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
251200
- uses: actions/setup-node@v4
252201
with:
253202
node-version-file: .tool-versions
254-
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes
255-
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
256-
shell: bash
257-
id: pnpm-cache
258-
- name: Restore cache pnpm store
259-
id: restore-pnpm-cache
260-
uses: actions/cache@v4
261-
with:
262-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
263-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
264-
restore-keys: ${{ runner.os }}-pnpm-store-
203+
cache: 'pnpm'
265204
- run: pnpm install
266-
267-
- name: Save cache pnpm store
268-
if: steps.restore-pnpm-cache.outputs.cache-hit != 'true'
269-
uses: actions/cache/save@v4
270-
with:
271-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
272-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
273205
# Run Biome and capture the output. If biome crashes, it still reports a
274206
# successful CI run (exit code 0) but that will ripple down to errors in
275207
# the Biome VS Code extension. This ensures that we don't accidentally

.github/workflows/release-jetbrains-stable.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ jobs:
3737
env:
3838
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_PUBLISH_TOKEN }}
3939
GITHUB_TOKEN: ${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}
40+
- run: pnpm run release-notes jb ${{ env.RELEASE_VERSION }}
41+
env:
42+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
43+
- name: create release
44+
id: create_release
45+
uses: actions/create-release@v1
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
with:
49+
tag_name: ${{ github.ref }}
50+
release_name: Cody for JetBrains ${{ env.RELEASE_VERSION }}
51+
draft: false
52+
body_path: RELEASE_NOTES.md
4053
- name: Upload the report
4154
if: ${{ failure() }}
4255
uses: actions/upload-artifact@v4

.github/workflows/release-vscode-stable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
env:
6363
VSCODE_MARKETPLACE_TOKEN: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
6464
VSCODE_OPENVSX_TOKEN: ${{ secrets.VSCODE_OPENVSX_TOKEN }}
65-
- run: pnpm -C vscode run release-notes
65+
- run: pnpm run release-notes vscode ${{ env.EXT_VERSION }}
6666
env:
6767
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
6868
- name: create release
@@ -74,7 +74,7 @@ jobs:
7474
tag_name: ${{ github.ref }}
7575
release_name: Cody for VS Code ${{ env.EXT_VERSION }}
7676
draft: false
77-
body_path: vscode/GITHUB_CHANGELOG.md
77+
body_path: RELEASE_NOTES.md
7878
- name: upload release asset
7979
uses: actions/upload-release-asset@v1
8080
env:

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ jobs:
9090
- name: Verify Plugin on IntelliJ Platforms
9191
id: verify
9292
uses: ChrisCarini/intellij-platform-plugin-verifier-action@v2.0.1
93-
env:
94-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9593
with:
9694
plugin-location: "*.zip"
9795
# TODO (pkukielka): Upper range should be bumped to 251.14649.49-EAP-SNAPSHOT

.sourcegraph/.ignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

agent/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ This is a log of all notable changes to the Cody command-line tool. [Unreleased]
1010

1111
### Changed
1212

13+
## 5.5.22
14+
15+
### Fixed
16+
17+
- `cody models list` now correctly lists models that are available for the current user.
18+
1319
## 5.5.15
1420

1521
### Fixed
@@ -82,6 +88,7 @@ This is a log of all notable changes to the Cody command-line tool. [Unreleased]
8288
- Running `cody help` should work now. It was previously crashing about a missing keytar dependencies.
8389

8490
## 0.1.1
91+
8592
### Fixed
8693

8794
- Running `npm install -g @sourcegraph/cody-agent` should work now. It was previously crashing about a missing keytar dependency.

agent/bindings/kotlin/lib/src/main/kotlin/com/sourcegraph/cody/agent/protocol_generated/ClientCapabilities.kt

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,19 @@ data class ClientCapabilities(
99
val autoedit: AutoeditEnum? = null, // Oneof: none, enabled
1010
val autoeditInlineDiff: AutoeditInlineDiffEnum? = null, // Oneof: none, insertions-only, deletions-only, insertions-and-deletions
1111
val autoeditAsideDiff: AutoeditAsideDiffEnum? = null, // Oneof: none, image, diff
12-
val autoeditSuggestToEnroll: AutoeditSuggestToEnrollEnum? = null, // Oneof: none, enabled
1312
val chat: ChatEnum? = null, // Oneof: none, streaming
1413
val git: GitEnum? = null, // Oneof: none, enabled
1514
val progressBars: ProgressBarsEnum? = null, // Oneof: none, enabled
1615
val edit: EditEnum? = null, // Oneof: none, enabled
1716
val editWorkspace: EditWorkspaceEnum? = null, // Oneof: none, enabled
18-
val untitledDocuments: UntitledDocumentsEnum? = null, // Oneof: none, enabled
1917
val showDocument: ShowDocumentEnum? = null, // Oneof: none, enabled
2018
val codeLenses: CodeLensesEnum? = null, // Oneof: none, enabled
2119
val showWindowMessage: ShowWindowMessageEnum? = null, // Oneof: notification, request
2220
val ignore: IgnoreEnum? = null, // Oneof: none, enabled
2321
val codeActions: CodeActionsEnum? = null, // Oneof: none, enabled
2422
val disabledMentionsProviders: List<ContextMentionProviderID>? = null,
2523
val accountSwitchingInWebview: AccountSwitchingInWebviewEnum? = null, // Oneof: none, enabled
24+
val codeCopyOnlyAction: CodeCopyOnlyActionEnum? = null, // Oneof: none, enabled
2625
val shell: ShellEnum? = null, // Oneof: none, enabled
2726
val webviewMessages: WebviewMessagesEnum? = null, // Oneof: object-encoded, string-encoded
2827
val globalState: GlobalStateEnum? = null, // Oneof: stateless, server-managed, client-managed
@@ -58,11 +57,6 @@ data class ClientCapabilities(
5857
@SerializedName("diff") Diff,
5958
}
6059

61-
enum class AutoeditSuggestToEnrollEnum {
62-
@SerializedName("none") None,
63-
@SerializedName("enabled") Enabled,
64-
}
65-
6660
enum class ChatEnum {
6761
@SerializedName("none") None,
6862
@SerializedName("streaming") Streaming,
@@ -88,11 +82,6 @@ data class ClientCapabilities(
8882
@SerializedName("enabled") Enabled,
8983
}
9084

91-
enum class UntitledDocumentsEnum {
92-
@SerializedName("none") None,
93-
@SerializedName("enabled") Enabled,
94-
}
95-
9685
enum class ShowDocumentEnum {
9786
@SerializedName("none") None,
9887
@SerializedName("enabled") Enabled,
@@ -123,6 +112,11 @@ data class ClientCapabilities(
123112
@SerializedName("enabled") Enabled,
124113
}
125114

115+
enum class CodeCopyOnlyActionEnum {
116+
@SerializedName("none") None,
117+
@SerializedName("enabled") Enabled,
118+
}
119+
126120
enum class ShellEnum {
127121
@SerializedName("none") None,
128122
@SerializedName("enabled") Enabled,

agent/bindings/kotlin/lib/src/main/kotlin/com/sourcegraph/cody/agent/protocol_generated/CodyAgentClient.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ interface CodyAgentClient {
1616
fun window_showSaveDialog(params: SaveDialogOptionsParams): CompletableFuture<String?>
1717
@JsonRequest("textDocument/edit")
1818
fun textDocument_edit(params: TextDocumentEditParams): CompletableFuture<Boolean>
19-
@JsonRequest("textDocument/openUntitledDocument")
20-
fun textDocument_openUntitledDocument(params: UntitledTextDocument): CompletableFuture<ProtocolTextDocument?>
2119
@JsonRequest("textDocument/show")
2220
fun textDocument_show(params: TextDocument_ShowParams): CompletableFuture<Boolean>
2321
@JsonRequest("textEditor/selection")

agent/bindings/kotlin/lib/src/main/kotlin/com/sourcegraph/cody/agent/protocol_generated/CodyAgentServer.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,14 @@ interface CodyAgentServer {
178178
fun autocomplete_completionAccepted(params: CompletionItemParams)
179179
@JsonNotification("progress/cancel")
180180
fun progress_cancel(params: Progress_CancelParams)
181+
@JsonNotification("testing/runInAgent")
182+
fun testing_runInAgent(params: String)
181183
@JsonNotification("webview/didDisposeNative")
182184
fun webview_didDisposeNative(params: Webview_DidDisposeNativeParams)
183185
@JsonNotification("secrets/didChange")
184186
fun secrets_didChange(params: Secrets_DidChangeParams)
185187
@JsonNotification("window/didChangeFocus")
186188
fun window_didChangeFocus(params: Window_DidChangeFocusParams)
189+
@JsonNotification("testing/resetStorage")
190+
fun testing_resetStorage(params: Null?)
187191
}

agent/bindings/kotlin/lib/src/main/kotlin/com/sourcegraph/cody/agent/protocol_generated/UntitledTextDocument.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)