Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
4d36fa4
fix(amazonq): allow taking .jpg file as image context, add image cont…
yzhangok Jul 7, 2025
3b6c3be
feat(flags): change flag name to enablewebformtransform(#1804)
Rajanna-Karthik Jul 7, 2025
0f71dd3
feat: produce agentic chat bundle from repo (#1827)
awschristou Jul 7, 2025
27d60ab
fix: imagecontext image name bug, mutliple images in pinned context (…
LokeshDogga13 Jul 7, 2025
179b553
fix(amazonq): fix typo in image context list (#1836)
yzhangok Jul 7, 2025
0c2d8eb
fix: adding files on VSC windows properly triggers reindexing (#1820)
chungjac Jul 7, 2025
14df236
fix: image context drag and drop fix on windows (#1837)
LokeshDogga13 Jul 7, 2025
095f737
feat(amazonq): add transformation preferences functionality to input …
jabouayash Jul 7, 2025
d9da4cb
fix(amazonq): change the image filter used in open file dialog (#1838)
yzhangok Jul 7, 2025
270d5a3
feat: passing partialResultToken to onInlineCompletionHandler result …
atonaamz Jul 8, 2025
0078602
fix: remove redundent thinking... for file operations (#1839)
bywang56 Jul 8, 2025
89f85ff
feat(chat-client): add stringOverrides to createChat config (#1847)
avi-alpert Jul 8, 2025
46dbb12
refactor(amazonq): captilize constant variables, incremental code qua…
abhraina-aws Jul 8, 2025
10e04ba
chore: create GitHub releases for agentic chat alpha, feature, and rc…
awschristou Jul 8, 2025
7052132
feat: adding streakLength back for UserTriggerDecisionEvent (#1841)
atonaamz Jul 8, 2025
d677c52
fix: adding agenticcoding field to amazonqaddMessage metric(#1849)
laileni-aws Jul 8, 2025
86d6d13
refactor(amazonq): futher constant handling and creation of a helper …
abhraina-aws Jul 8, 2025
2992d69
chore: upgrade mynah-ui to 4.35.8 (#1853)
avi-alpert Jul 8, 2025
f5c2038
fix(amazonq): use config to render the overlay (#1851)
yzhangok Jul 8, 2025
67cf1d2
chore(release): release packages from branch main (#1823)
github-actions[bot] Jul 9, 2025
776e241
chore: bump runtime version (#1856)
jguoamz Jul 9, 2025
bbd4651
revert: create GitHub releases for agentic chat alpha, feature, and rc
jguoamz Jul 9, 2025
06b425a
revert: produce agentic chat bundle from repo (#1827) (#1858)
jguoamz Jul 9, 2025
423cdbc
revert: adding files on VSC windows properly triggers reindexing (#18…
chungjac Jul 9, 2025
8e0c88b
revert: revert: adding files on VSC windows properly triggers reindex…
jguoamz Jul 9, 2025
f02a307
chore: bump runtimes to 0.2.105 (#1863)
tsmithsz Jul 9, 2025
993fb68
chore: add unit tests for codeWhispererServer.ts with editsEnabled (#…
atonaamz Jul 10, 2025
cfeb3be
fix(amazonq): add files created by fsWrite tool to @Files list (#1784)
avi-alpert Jul 10, 2025
98a1f60
feat(identity): add support for retrieving IAM user credentials
liramon1 Jul 10, 2025
4a1d071
Merge branch 'iam-profile' into iam-credentials
liramon1 Jul 10, 2025
b2a7a92
refactor: prefix IAM-related profiles with 'Iam'
liramon1 Jul 10, 2025
f209a15
fix(amazonq): remove the deep copy logic in updateRequestInputWithToo…
yzhangok Jul 11, 2025
f863735
fix: use absolute file path for shell (#1871)
jguoamz Jul 11, 2025
0dfd2c8
chore(release): release packages from branch main (#1861)
github-actions[bot] Jul 11, 2025
7795c6b
feat(amazonq): added full system information to the logs (#1875)
abhraina-aws Jul 11, 2025
2967585
Merge branch 'iam-profile' into iam-credentials
liramon1 Jul 11, 2025
b199100
revert: adding streakLength back for UserTriggerDecisionEvent (#1877)
atonaamz Jul 11, 2025
e06f180
feat: update UserTriggerDecisionEventStreakLengthInteger min value (#…
atonaamz Jul 11, 2025
9657c49
Merge branch 'iam-profile' into iam-credentials
liramon1 Jul 11, 2025
afdd6a4
fix(amazonq): catch mcp initialization errors (#1873)
rli Jul 11, 2025
76656c9
fix(amazonq): additional checks for binary and credential files (#1866)
ashishrp-aws Jul 11, 2025
ee215c4
fix: validate Create Prompt & Create Rule prompts input onChange (#1854)
avi-alpert Jul 14, 2025
061caa6
fix: Forward slash shown in rules list in multi-root workspaces on wi…
avi-alpert Jul 14, 2025
07e343b
feat(amazonq): Adding QCodeReview tool to amazonQ (#1882)
Rathore25 Jul 14, 2025
72b6d76
feat(amazonq): allow opt-out for workspace context server (#1867)
LiGaCu Jul 14, 2025
30a25e8
refactor: move MFA code retrieval into separate request
liramon1 Jul 14, 2025
03b59c8
feat(chat-client): add built-in tool permission and enable auto-appro…
dungdong-aws Jul 14, 2025
b200962
test: add integration test workflow (#1868)
ctlai95 Jul 14, 2025
61eeb8c
fix: Disable Concurrent inline completion handler (#1880)
leigaol Jul 14, 2025
f8e9461
feat(chat-client): handle keyboard shortcut for run/reject/stop shell…
dungdong-aws Jul 15, 2025
6ab9b2c
feat(amazonq): add a/b testing info into agenticChat toolkit metrics …
LiGaCu Jul 15, 2025
522f8de
fix(chat-client): revert for amazon q keyboard shortcuts feature (#1901)
ashishrp-aws Jul 15, 2025
34b41b8
fix(chat-client): revert for add built-in tool permission and enable …
ashishrp-aws Jul 15, 2025
99d2f70
chore(release): release packages from branch main (#1876)
github-actions[bot] Jul 15, 2025
2544b3d
Merge branch 'iam-profile' into iam-credentials
liramon1 Jul 16, 2025
07d8227
fix: sync changes with iam-profile
liramon1 Jul 16, 2025
8efe890
chore: remove unused mfa code
liramon1 Jul 16, 2025
73a8388
fix: incorporate PR feedback
liramon1 Jul 17, 2025
1491f4f
feat(identity): add support for IAM profile management (#1845)
liramon1 Jul 18, 2025
0f589be
Merge remote-tracking branch 'aws/feature/flare-iam-base' into iam-cr…
liramon1 Jul 18, 2025
9b69727
fix: remove dummy settings from unknown profiles and wrap sendGetMfaC…
liramon1 Jul 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Integration Tests

on:
workflow_run:
workflows: [Create agent-standalone bundles]
types:
- completed
branches: [main, feature/*, release/agentic/*]

jobs:
agent-server-tests:
name: Agent Server Tests (${{ matrix.target }})
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04-arm
target: linux-arm64
- os: ubuntu-latest
target: linux-x64
- os: macos-latest
target: mac-arm64
- os: macos-13
target: mac-x64
- os: windows-latest
target: win-x64
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
steps:
- name: Sync Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
name: ${{ matrix.target }}
path: ./downloaded-artifacts
- name: Extract server files
run: |
cd ./downloaded-artifacts/
unzip servers.zip
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::964765661569:role/GitHubActionsTokenRefresherRole
role-session-name: language-servers-github
aws-region: us-east-1
- name: Build
run: |
npm ci
npm run compile
- name: Refresh Token
run: aws lambda invoke --function-name TokenRefresherLambda --region us-east-1 --payload '{}' response.json
- name: Get SSO Token
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: |
,SsoTokenSecret
parse-json-secrets: true
- name: Run Integration Tests
run: |
npm test-integ -w integration-tests/q-agentic-chat-server
env:
TEST_SSO_TOKEN: ${{ env.SSOTOKEN }}
TEST_SSO_START_URL: ${{ secrets.TEST_SSO_START_URL }}
TEST_PROFILE_ARN: ${{ secrets.TEST_PROFILE_ARN }}
TEST_RUNTIME_FILE: ${{ github.workspace }}/downloaded-artifacts/aws-lsp-codewhisperer.js
10 changes: 8 additions & 2 deletions .github/workflows/lsp-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ jobs:
run: |
npm ci
npm run check:formatting
- name: Test
- name: Test with Coverage
run: |
npm run test
npm run test:coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v5
with:
flags: unittests
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
build:
name: Package
runs-on: ubuntu-latest
Expand Down
14 changes: 7 additions & 7 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"chat-client": "0.1.22",
"core/aws-lsp-core": "0.0.11",
"server/aws-lsp-antlr4": "0.1.15",
"server/aws-lsp-codewhisperer": "0.0.62",
"server/aws-lsp-json": "0.1.15",
"server/aws-lsp-partiql": "0.0.14",
"server/aws-lsp-yaml": "0.1.15"
"chat-client": "0.1.25",
"core/aws-lsp-core": "0.0.12",
"server/aws-lsp-antlr4": "0.1.16",
"server/aws-lsp-codewhisperer": "0.0.66",
"server/aws-lsp-json": "0.1.16",
"server/aws-lsp-partiql": "0.0.15",
"server/aws-lsp-yaml": "0.1.16"
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Language Servers for AWS

[![codecov](https://codecov.io/github/aws/language-servers/graph/badge.svg?token=ZSHpIVkG8S)](https://codecov.io/github/aws/language-servers)

Language servers for integration with IDEs and Editors, which implement the protocol (LSP extensions) defined in the [language-server-runtimes](https://github.com/aws/language-server-runtimes/tree/main/runtimes) repo.

## Where things go
Expand Down
2 changes: 1 addition & 1 deletion app/aws-lsp-antlr4-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"webpack": "webpack"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.102",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-antlr4": "*",
"antlr4-c3": "^3.4.1",
"antlr4ng": "^3.0.4"
Expand Down
1 change: 1 addition & 0 deletions app/aws-lsp-buildspec-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"compile": "tsc --build"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-buildspec": "^0.0.1"
}
}
1 change: 1 addition & 0 deletions app/aws-lsp-cloudformation-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"compile": "tsc --build"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-cloudformation": "^0.0.1"
}
}
2 changes: 1 addition & 1 deletion app/aws-lsp-codewhisperer-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"local-build": "node scripts/local-build.js"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.102",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-codewhisperer": "*",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
Expand Down
2 changes: 2 additions & 0 deletions app/aws-lsp-codewhisperer-runtimes/src/agent-standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { IdentityServer } from '@aws/lsp-identity'
import {
BashToolsServer,
FsToolsServer,
QCodeAnalysisServer,
McpToolsServer,
} from '@aws/lsp-codewhisperer/out/language-server/agenticChat/tools/toolServer'
import { RuntimeProps } from '@aws/language-server-runtimes/runtimes/runtime'
Expand All @@ -33,6 +34,7 @@ const props = {
QAgenticChatServerProxy,
IdentityServer.create,
FsToolsServer,
QCodeAnalysisServer,
BashToolsServer,
QLocalProjectContextServerProxy,
WorkspaceContextServerTokenProxy,
Expand Down
2 changes: 1 addition & 1 deletion app/aws-lsp-identity-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"compile": "tsc --build"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.102",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-identity": "^0.0.1"
}
}
2 changes: 1 addition & 1 deletion app/aws-lsp-json-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"webpack": "webpack"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.102",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-json": "*"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion app/aws-lsp-notification-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"compile": "tsc --build"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.102",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-notification": "^0.0.1"
}
}
2 changes: 1 addition & 1 deletion app/aws-lsp-partiql-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"package": "npm run compile && npm run compile:webpack"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.89",
"@aws/language-server-runtimes": "^0.2.109",
"@aws/lsp-partiql": "^0.0.5"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions app/aws-lsp-s3-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"compile": "tsc --build"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-s3": "^0.0.1"
}
}
2 changes: 1 addition & 1 deletion app/aws-lsp-yaml-json-webworker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"serve:webpack": "NODE_ENV=development webpack serve"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.102",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-json": "*",
"@aws/lsp-yaml": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion app/aws-lsp-yaml-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"webpack": "webpack"
},
"dependencies": {
"@aws/language-server-runtimes": "^0.2.102",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/lsp-yaml": "*"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion app/hello-world-lsp-runtimes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@aws/hello-world-lsp": "^0.0.1",
"@aws/language-server-runtimes": "^0.2.102"
"@aws/language-server-runtimes": "^0.2.112"
},
"devDependencies": {
"@types/chai": "^4.3.5",
Expand Down
12 changes: 12 additions & 0 deletions chat-client/.c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text", "html", "lcov"],
"reports-dir": "coverage",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts", "src/**/test/**", "src/**/*.d.ts"],
"branches": 80,
"lines": 80,
"functions": 80,
"statements": 80
}
46 changes: 46 additions & 0 deletions chat-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Changelog

## [0.1.25](https://github.com/aws/language-servers/compare/chat-client/v0.1.24...chat-client/v0.1.25) (2025-07-17)


### Features

* add conversation compaction ([#1895](https://github.com/aws/language-servers/issues/1895)) ([8bb7144](https://github.com/aws/language-servers/commit/8bb7144e45cfce6cc9337fd49de7edbee61105b8))


### Bug Fixes

* **amazonq:** change to use promptStickyCard to show image verification notification ([#1904](https://github.com/aws/language-servers/issues/1904)) ([caaefef](https://github.com/aws/language-servers/commit/caaefef2c9b2af66840ec2f7ccabe9bf937c2983))
* remove disclaimer message ([#1884](https://github.com/aws/language-servers/issues/1884)) ([0845eed](https://github.com/aws/language-servers/commit/0845eeda8d73ed1df3b8801e79dad1ddd7016781))
* replace thinking with working and replace stop with cancel ([#1922](https://github.com/aws/language-servers/issues/1922)) ([371e731](https://github.com/aws/language-servers/commit/371e731545f7572d3356d061cd8b94db35e4c333))
* use document change events for auto trigger classifier input ([#1912](https://github.com/aws/language-servers/issues/1912)) ([2204da6](https://github.com/aws/language-servers/commit/2204da6193f2030ee546f61c969b1a664d8025e3))

## [0.1.24](https://github.com/aws/language-servers/compare/chat-client/v0.1.23...chat-client/v0.1.24) (2025-07-15)


### Features

* **chat-client:** add built-in tool permission and enable auto-approve ([#1890](https://github.com/aws/language-servers/issues/1890)) ([03b59c8](https://github.com/aws/language-servers/commit/03b59c8fba58db0f6b6c387cf5d53227c3f54673))
* **chat-client:** handle keyboard shortcut for run/reject/stop shell commands and tooltips ([#1885](https://github.com/aws/language-servers/issues/1885)) ([f8e9461](https://github.com/aws/language-servers/commit/f8e94615b5ce8a3f4bf8837627fa4816a09cbef2))


### Bug Fixes

* **chat-client:** revert for add built-in tool permission and enable auto-approve ([#1890](https://github.com/aws/language-servers/issues/1890)) ([#1900](https://github.com/aws/language-servers/issues/1900)) ([34b41b8](https://github.com/aws/language-servers/commit/34b41b8f87c21d2ee6b98643339dbdfa71efcb77))
* **chat-client:** revert for amazon q keyboard shortcuts feature ([#1901](https://github.com/aws/language-servers/issues/1901)) ([522f8de](https://github.com/aws/language-servers/commit/522f8de6dba8dfa9b4363934cd7fcea905add1ce))
* validate Create Prompt & Create Rule prompts input onChange ([#1854](https://github.com/aws/language-servers/issues/1854)) ([ee215c4](https://github.com/aws/language-servers/commit/ee215c4bc652a54556d31e64f86ed5179d174b4b))

## [0.1.23](https://github.com/aws/language-servers/compare/chat-client/v0.1.22...chat-client/v0.1.23) (2025-07-08)


### Features

* **chat-client:** add stringOverrides to createChat config ([#1847](https://github.com/aws/language-servers/issues/1847)) ([89f85ff](https://github.com/aws/language-servers/commit/89f85ff6c676eb30d2cb6bc3368676b0d0913bac))
* support listAvailableModels server request ([#1808](https://github.com/aws/language-servers/issues/1808)) ([9f1ddb3](https://github.com/aws/language-servers/commit/9f1ddb327778dba6da49337b79c5fef19023b52d))


### Bug Fixes

* **amazonq:** allow taking .jpg file as image context, add image cont… ([#1814](https://github.com/aws/language-servers/issues/1814)) ([4d36fa4](https://github.com/aws/language-servers/commit/4d36fa4a0a04692dba720bc0288c6cee7f45a1fc))
* **amazonq:** use config to render the overlay ([#1851](https://github.com/aws/language-servers/issues/1851)) ([f5c2038](https://github.com/aws/language-servers/commit/f5c2038c090f9bb66b3cbd7e31f4d26c37943aeb))
* image context drag and drop fix on windows ([#1837](https://github.com/aws/language-servers/issues/1837)) ([14df236](https://github.com/aws/language-servers/commit/14df23633138d9b84875fba79a3eaf2d18dca8ce))
* imagecontext image name bug, mutliple images in pinned context ([#1834](https://github.com/aws/language-servers/issues/1834)) ([27d60ab](https://github.com/aws/language-servers/commit/27d60ab5f5249635a9e73be1ee96ecb820133f9a))

## [0.1.22](https://github.com/aws/language-servers/compare/chat-client/v0.1.21...chat-client/v0.1.22) (2025-07-02)


Expand Down
13 changes: 9 additions & 4 deletions chat-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws/chat-client",
"version": "0.1.22",
"version": "0.1.25",
"description": "AWS Chat Client",
"main": "out/index.js",
"repository": {
Expand All @@ -16,19 +16,24 @@
"scripts": {
"compile": "tsc --build && npm run package",
"test:unit": "ts-mocha -b \"./src/**/*.test.ts\"",
"test:unit:coverage": "c8 ts-mocha -b \"./src/**/*.test.ts\"",
"test": "npm run test:unit",
"test:coverage": "npm run test:unit:coverage",
"coverage:report": "c8 report --reporter=html --reporter=text",
"fix:prettier": "prettier . --write",
"package": "webpack"
},
"dependencies": {
"@aws/chat-client-ui-types": "^0.1.47",
"@aws/language-server-runtimes-types": "^0.1.43",
"@aws/mynah-ui": "^4.35.7"
"@aws/chat-client-ui-types": "^0.1.51",
"@aws/language-server-runtimes": "^0.2.112",
"@aws/language-server-runtimes-types": "^0.1.45",
"@aws/mynah-ui": "^4.35.9"
},
"devDependencies": {
"@types/jsdom": "^21.1.6",
"@types/mocha": "^10.0.9",
"assert": "^2.0.0",
"c8": "^10.1.2",
"jsdom": "^24.0.0",
"sinon": "^19.0.2",
"ts-mocha": "^11.1.0",
Expand Down
8 changes: 4 additions & 4 deletions chat-client/src/client/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ import {
OPEN_FILE_DIALOG_METHOD,
OpenFileDialogResult,
} from '@aws/language-server-runtimes-types'
import { MynahUIDataModel, MynahUITabStoreModel } from '@aws/mynah-ui'
import { ConfigTexts, MynahUIDataModel, MynahUITabStoreModel } from '@aws/mynah-ui'
import { ServerMessage, TELEMETRY, TelemetryParams } from '../contracts/serverContracts'
import { Messager, OutboundChatApi } from './messager'
import { InboundChatApi, createMynahUi } from './mynahUi'
Expand All @@ -120,8 +120,6 @@ import { modelSelectionForRegion } from './texts/modelSelection'
const getDefaultTabConfig = (agenticMode?: boolean) => {
return {
tabTitle: 'Chat',
promptInputInfo:
'Amazon Q Developer uses generative AI. You may need to verify responses. See the [AWS Responsible AI Policy](https://aws.amazon.com/machine-learning/responsible-ai/policy/).',
promptInputPlaceholder: `Ask a question. Use${agenticMode ? ' @ to add context,' : ''} / for quick actions`,
}
}
Expand All @@ -131,6 +129,7 @@ type ChatClientConfig = Pick<MynahUIDataModel, 'quickActionCommands'> & {
pairProgrammingAcknowledged?: boolean
agenticMode?: boolean
modelSelectionEnabled?: boolean
stringOverrides?: Partial<ConfigTexts>
}

export const createChat = (
Expand Down Expand Up @@ -537,7 +536,8 @@ export const createChat = (
config?.pairProgrammingAcknowledged ?? false,
chatClientAdapter,
featureConfig,
!!config?.agenticMode
!!config?.agenticMode,
config?.stringOverrides
)

mynahApi = api
Expand Down
Loading