Skip to content

Commit 788d8ed

Browse files
authored
revert: use cw streaming client from npm (#1552)
1 parent d08fc6c commit 788d8ed

35 files changed

+305
-4810
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,20 @@ updates:
1414
- '@typescript-eslint/*'
1515
commit-message:
1616
prefix: 'chore'
17+
- package-ecosystem: 'npm'
18+
directory: '/core/codewhisperer-streaming'
19+
target-branch: 'main'
20+
schedule:
21+
interval: 'weekly'
22+
ignore:
23+
- dependency-name: 'tslib'
24+
- dependency-name: '@aws-crypto/*'
25+
- dependency-name: '@aws-sdk/*'
26+
- dependency-name: '@smithy/*'
27+
- dependency-name: 'uuid'
28+
- dependency-name: '@tsconfig/node16'
29+
- dependency-name: 'concurrently'
30+
- dependency-name: 'downlevel-dts'
31+
- dependency-name: 'rimraf'
32+
- dependency-name: 'typescript'
33+
- dependency-name: '@types/*'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build
33
.gradle
44
.idea
55
**/*.tgz
6+
!core/codewhisperer-streaming/amzn-codewhisperer-streaming-*.tgz
67
!core/q-developer-streaming-client/amzn-amazon-q-developer-streaming-client-*.tgz
78
!server/aws-lsp-codewhisperer/types/types-local-indexing-*.tgz
89

Binary file not shown.

package-lock.json

Lines changed: 254 additions & 4769 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/aws-lsp-codewhisperer/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
},
3333
"dependencies": {
3434
"@amzn/amazon-q-developer-streaming-client": "file:../../core/q-developer-streaming-client/amzn-amazon-q-developer-streaming-client-1.0.0.tgz",
35+
"@amzn/codewhisperer-streaming": "file:../../core/codewhisperer-streaming/amzn-codewhisperer-streaming-1.0.0.tgz",
3536
"@aws-sdk/util-arn-parser": "^3.723.0",
3637
"@aws-sdk/util-retry": "^3.374.0",
3738
"@aws/chat-client-ui-types": "^0.1.40",
38-
"@aws/codewhisperer-streaming-client": "^1.0.1",
3939
"@aws/language-server-runtimes": "^0.2.101",
4040
"@aws/lsp-core": "^0.0.10",
4141
"@modelcontextprotocol/sdk": "^1.9.0",
@@ -100,6 +100,7 @@
100100
"endOfLine": "lf"
101101
},
102102
"bundleDependencies": [
103+
"@amzn/codewhisperer-streaming",
103104
"@amzn/amazon-q-developer-streaming-client"
104105
]
105106
}

server/aws-lsp-codewhisperer/src/client/streamingClient/codewhispererStreamingClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CodeWhispererStreaming, CodeWhispererStreamingClientConfig } from '@aws/codewhisperer-streaming-client'
1+
import { CodeWhispererStreaming, CodeWhispererStreamingClientConfig } from '@amzn/codewhisperer-streaming'
22
import { ConfiguredRetryStrategy } from '@aws-sdk/util-retry'
33
import { SDKInitializator, Logging } from '@aws/language-server-runtimes/server-interface'
44

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
ContentType,
1313
GenerateAssistantResponseCommandInput,
1414
SendMessageCommandInput,
15-
} from '@aws/codewhisperer-streaming-client'
15+
} from '@amzn/codewhisperer-streaming'
1616
import {
1717
QDeveloperStreaming,
1818
SendMessageCommandInput as SendMessageCommandInputQDeveloperStreaming,

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
ToolResultStatus,
1414
ToolUse,
1515
ToolUseEvent,
16-
} from '@aws/codewhisperer-streaming-client'
16+
} from '@amzn/codewhisperer-streaming'
1717
import {
1818
SendMessageCommandInput,
1919
SendMessageCommandOutput,

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatEventParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Will be deleted or merged.
44
*/
55

6-
import { ChatResponseStream, Reference, SupplementaryWebLink, ToolUse } from '@aws/codewhisperer-streaming-client'
6+
import { ChatResponseStream, Reference, SupplementaryWebLink, ToolUse } from '@amzn/codewhisperer-streaming'
77
import {
88
ChatItemAction,
99
ChatResult,

server/aws-lsp-codewhisperer/src/language-server/agenticChat/context/agenticChatTriggerContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
ProgrammingLanguage,
1414
EnvState,
1515
Origin,
16-
} from '@aws/codewhisperer-streaming-client'
16+
} from '@amzn/codewhisperer-streaming'
1717
import {
1818
BedrockTools,
1919
ChatParams,
@@ -29,7 +29,7 @@ import { workspaceUtils } from '@aws/lsp-core'
2929
import { URI } from 'vscode-uri'
3030
import { LocalProjectContextController } from '../../../shared/localProjectContextController'
3131
import * as path from 'path'
32-
import { RelevantTextDocument } from '@aws/codewhisperer-streaming-client'
32+
import { RelevantTextDocument } from '@amzn/codewhisperer-streaming'
3333
import { languageByExtension } from '../../../shared/languageDetection'
3434
import { AgenticChatResultStream } from '../agenticChatResultStream'
3535
import { ContextInfo, mergeFileLists, mergeRelevantTextDocuments } from './contextUtils'

0 commit comments

Comments
 (0)