Skip to content

Commit c36b13b

Browse files
committed
regen client
1 parent 26df312 commit c36b13b

File tree

28 files changed

+142
-132
lines changed

28 files changed

+142
-132
lines changed

buildspec/release/10changeversion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ phases:
2525
DATE=$(date)
2626
npm version --no-git-tag-version "$VERSION" -w packages/${TARGET_EXTENSION}
2727
# 'createRelease' uses ts-node.
28-
# Ignore broken "postinstall" script in "src.gen/@amzn/codewhisperer-streaming/package.json".
28+
# Ignore broken "postinstall" script in "src.gen/@amzn/amazon-codewhisperer-streaming/package.json".
2929
npm install --ignore-scripts ts-node
3030
- |
3131
npm run createRelease -w packages/${TARGET_EXTENSION}

docs/build.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The AmazonQ features rely on the `codewhisperer-streaming` service, to support both Sigv4 and Bearer token modes of this service,
44
two clients are generated from the service's smithy models and placed in
5-
`src.gen/@amzn/amazon-q-developer-streaming-client` and `src.gen/@amzn/codewhisperer-streaming` respectively (For more
5+
`src.gen/@amzn/amazon-q-developer-streaming-client` and `src.gen/@amzn/amazon-codewhisperer-streaming` respectively (For more
66
information about these clients and how they are generated, please see this
77
[quip document](https://quip-amazon.com/2dAWAvTIYXXr/Build-instructions-for-AWS-CodeWhisperer-Streaming-Typescript-client)).
88

@@ -16,12 +16,12 @@ built before the toolkit project itself. Workspaces are automatically ready to
1616
be imported in the root toolkit project by their declared package.json name,
1717
(`@amzn/amazon-q-developer-streaming` in this case).
1818

19-
## @amzn/codewhisperer-streaming client
19+
## @amzn/amazon-codewhisperer-streaming client
2020

2121
This client is a standalone npm project in typescript, and it is added to
22-
the project as a workspace in the project's root `package.json` with the line `"workspaces": [ ..., "src.gen/@amzn/codewhisperer-streaming" ]`.
23-
The client may be manually built using `npm run build -w @amzn/codewhisperer-streaming"`.
22+
the project as a workspace in the project's root `package.json` with the line `"workspaces": [ ..., "src.gen/@amzn/amazon-codewhisperer-streaming" ]`.
23+
The client may be manually built using `npm run build -w @amzn/amazon-codewhisperer-streaming"`.
2424
The `generateClients` run script ensures that this dependency is
2525
built before the toolkit project itself. Workspaces are automatically ready to
2626
be imported in the root toolkit project by their declared package.json name,
27-
(`@amzn/codewhisperer-streaming` in this case).
27+
(`@amzn/amazon-codewhisperer-streaming` in this case).

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"scripts": {
2222
"prepare": "ts-node ./scripts/prepare.ts",
23-
"preinstall": "cd src.gen/@amzn/codewhisperer-streaming && npm i && cd ../amazon-q-developer-streaming-client && npm i",
23+
"preinstall": "cd src.gen/@amzn/amazon-codewhisperer-streaming && npm i && cd ../amazon-q-developer-streaming-client && npm i",
2424
"postinstall": "npm run buildCustomLintPlugin && npm run postinstall -ws --if-present",
2525
"buildCustomLintPlugin": "npm run build -w plugins/eslint-plugin-aws-toolkits",
2626
"compile": "npm run compile -w packages/",

packages/amazonq/src/api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
*/
55

66
import { SendMessageCommandOutput, SendMessageRequest } from '@amzn/amazon-q-developer-streaming-client'
7-
import { GenerateAssistantResponseCommandOutput, GenerateAssistantResponseRequest } from '@amzn/codewhisperer-streaming'
7+
import {
8+
GenerateAssistantResponseCommandOutput,
9+
GenerateAssistantResponseRequest,
10+
} from '@amzn/amazon-codewhisperer-streaming'
811
import { AuthUtil } from 'aws-core-vscode/codewhisperer'
912
import { ChatSession } from 'aws-core-vscode/codewhispererChat'
1013
import { api } from 'aws-core-vscode/amazonq'

packages/amazonq/src/inlineChat/provider/inlineChatProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as vscode from 'vscode'
77
import {
88
CodeWhispererStreamingServiceException,
99
GenerateAssistantResponseCommandOutput,
10-
} from '@amzn/codewhisperer-streaming'
10+
} from '@amzn/amazon-codewhisperer-streaming'
1111
import { AuthUtil, getSelectedCustomization } from 'aws-core-vscode/codewhisperer'
1212
import {
1313
ChatSessionStorage,

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495
},
496496
"dependencies": {
497497
"@amzn/amazon-q-developer-streaming-client": "file:../../src.gen/@amzn/amazon-q-developer-streaming-client",
498-
"@amzn/codewhisperer-streaming": "file:../../src.gen/@amzn/codewhisperer-streaming",
498+
"@amzn/amazon-codewhisperer-streaming": "file:../../src.gen/@amzn/amazon-codewhisperer-streaming",
499499
"@aws-sdk/client-cloudformation": "^3.667.0",
500500
"@aws-sdk/client-cloudwatch-logs": "^3.666.0",
501501
"@aws-sdk/client-cognito-identity": "^3.637.0",

packages/core/src/amazonq/extApi.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
import vscode from 'vscode'
77
import { VSCODE_EXTENSION_ID } from '../shared/utilities'
88
import { SendMessageCommandOutput, SendMessageRequest } from '@amzn/amazon-q-developer-streaming-client'
9-
import { GenerateAssistantResponseCommandOutput, GenerateAssistantResponseRequest } from '@amzn/codewhisperer-streaming'
9+
import {
10+
GenerateAssistantResponseCommandOutput,
11+
GenerateAssistantResponseRequest,
12+
} from '@amzn/amazon-codewhisperer-streaming'
1013
import { FeatureAuthState } from '../codewhisperer/util/authUtil'
1114
import { ToolkitError } from '../shared'
1215

packages/core/src/amazonq/lsp/lspController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import fetch from 'node-fetch'
1313
import request from '../../shared/request'
1414
import { LspClient } from './lspClient'
1515
import AdmZip from 'adm-zip'
16-
import { RelevantTextDocument } from '@amzn/codewhisperer-streaming'
16+
import { RelevantTextDocument } from '@amzn/amazon-codewhisperer-streaming'
1717
import { makeTemporaryToolkitFolder, tryRemoveFolder } from '../../shared/filesystemUtilities'
1818
import { activate as activateLsp } from './lspClient'
1919
import { telemetry } from '../../shared/telemetry'

packages/core/src/amazonq/webview/ui/connector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { TabType, TabsStorage } from './storages/tabsStorage'
2525
import { WelcomeFollowupType } from './apps/amazonqCommonsConnector'
2626
import { AuthFollowUpType } from './followUps/generator'
2727
import { DiffTreeFileInfo } from './diffTree/types'
28-
import { UserIntent } from '@amzn/codewhisperer-streaming'
28+
import { UserIntent } from '@amzn/amazon-codewhisperer-streaming'
2929

3030
export interface CodeReference {
3131
licenseName?: string

0 commit comments

Comments
 (0)