Skip to content

Commit 6f078cb

Browse files
authored
build: revert "chore: use cw streaming client from npm" #1588
## Problem pr #1552 introduced a package that is not yet available in our npm proxy service. ## Solution revert c030c75 until the package is available.
1 parent f37bf5f commit 6f078cb

35 files changed

+196
-185
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: 145 additions & 144 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.7.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.90",
4040
"@aws/lsp-core": "^0.0.9",
4141
"@modelcontextprotocol/sdk": "^1.9.0",
@@ -97,6 +97,7 @@
9797
"endOfLine": "lf"
9898
},
9999
"bundleDependencies": [
100+
"@amzn/codewhisperer-streaming",
100101
"@amzn/amazon-q-developer-streaming-client"
101102
]
102103
}

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
ChatResult,
1818
LSPErrorCodes,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
ToolResultStatus,
1818
ToolUse,
1919
ToolUseEvent,
20-
} from '@aws/codewhisperer-streaming-client'
20+
} from '@amzn/codewhisperer-streaming'
2121
import {
2222
Button,
2323
Status,

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
ContentType,
1414
ProgrammingLanguage,
1515
EnvState,
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)