@aws/lsp-codewhisperer 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/out/client/token/bearer-token-service.json +91 -225
- package/out/language-server/agenticChat/agenticChatController.js +7 -0
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +1 -1
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -1
- package/out/language-server/agenticChat/tools/listDirectory.js +5 -5
- package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -1
- package/out/language-server/chat/chatController.js +1 -1
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatSessionService.d.ts +5 -0
- package/out/language-server/chat/chatSessionService.js +4 -1
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/constants.d.ts +2 -0
- package/out/language-server/chat/constants.js +14 -1
- package/out/language-server/chat/constants.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContext.d.ts +3 -1
- package/out/language-server/chat/contexts/triggerContext.js +14 -1
- package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +8 -1
- package/out/language-server/configuration/qConfigurationServer.js +107 -8
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/inline-completion/codeWhispererServer.js +15 -2
- package/out/language-server/inline-completion/codeWhispererServer.js.map +1 -1
- package/out/language-server/netTransform/resources/SupportedProjects.js +1 -7
- package/out/language-server/netTransform/resources/SupportedProjects.js.map +1 -1
- package/out/language-server/workspaceContext/artifactManager.d.ts +44 -0
- package/out/language-server/workspaceContext/artifactManager.js +496 -0
- package/out/language-server/workspaceContext/artifactManager.js.map +1 -0
- package/out/language-server/workspaceContext/client.d.ts +23 -0
- package/out/language-server/workspaceContext/client.js +172 -0
- package/out/language-server/workspaceContext/client.js.map +1 -0
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.d.ts +15 -0
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js +129 -0
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js.map +1 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JSTSDependencyHandler.d.ts +18 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JSTSDependencyHandler.js +204 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JSTSDependencyHandler.js.map +1 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JavaDependencyHandler.d.ts +16 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JavaDependencyHandler.js +160 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/JavaDependencyHandler.js.map +1 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.d.ts +78 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js +255 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js.map +1 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.d.ts +7 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js +23 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js.map +1 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/PythonDependencyHandler.d.ts +46 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/PythonDependencyHandler.js +233 -0
- package/out/language-server/workspaceContext/dependency/dependencyHandler/PythonDependencyHandler.js.map +1 -0
- package/out/language-server/workspaceContext/javaManager.d.ts +92 -0
- package/out/language-server/workspaceContext/javaManager.js +710 -0
- package/out/language-server/workspaceContext/javaManager.js.map +1 -0
- package/out/language-server/workspaceContext/util.d.ts +10 -0
- package/out/language-server/workspaceContext/util.js +72 -0
- package/out/language-server/workspaceContext/util.js.map +1 -0
- package/out/language-server/workspaceContext/workspaceContextServer.d.ts +2 -0
- package/out/language-server/workspaceContext/workspaceContextServer.js +414 -0
- package/out/language-server/workspaceContext/workspaceContextServer.js.map +1 -0
- package/out/language-server/workspaceContext/workspaceFolderManager.d.ts +113 -0
- package/out/language-server/workspaceContext/workspaceFolderManager.js +827 -0
- package/out/language-server/workspaceContext/workspaceFolderManager.js.map +1 -0
- package/out/shared/amazonQServiceManager/qDeveloperProfiles.js.map +1 -1
- package/out/shared/codeWhispererService.d.ts +13 -0
- package/out/shared/codeWhispererService.js +24 -0
- package/out/shared/codeWhispererService.js.map +1 -1
- package/out/shared/languageDetection.d.ts +27 -0
- package/out/shared/languageDetection.js +44 -1
- package/out/shared/languageDetection.js.map +1 -1
- package/out/shared/localProjectContextController.d.ts +1 -0
- package/out/shared/localProjectContextController.js +6 -8
- package/out/shared/localProjectContextController.js.map +1 -1
- package/out/shared/proxy-server.d.ts +1 -0
- package/out/shared/proxy-server.js +3 -1
- package/out/shared/proxy-server.js.map +1 -1
- package/out/shared/supplementalContextUtil/crossFileContextUtil.d.ts +4 -3
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js +16 -5
- package/out/shared/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
- package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +2 -1
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js +2 -2
- package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
- package/package.json +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.36](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.35...lsp-codewhisperer/v0.0.36) (2025-05-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add request id to default log level ([#1221](https://github.com/aws/language-servers/issues/1221)) ([fe31f26](https://github.com/aws/language-servers/commit/fe31f266eb481d9899c4924f878fe49f6bfe94aa))
|
|
9
|
+
* adding a check before invoking workspace context ([#1227](https://github.com/aws/language-servers/issues/1227)) ([3202b6e](https://github.com/aws/language-servers/commit/3202b6e0654a8037a3be3c50afa60960ce7bda91))
|
|
10
|
+
* **amazonq:** add error code handling for transformation jobs ([#1174](https://github.com/aws/language-servers/issues/1174)) ([634587c](https://github.com/aws/language-servers/commit/634587c93f08315f0676608b6f8687d309104cac))
|
|
11
|
+
* customizations profiles update ([#1246](https://github.com/aws/language-servers/issues/1246)) ([ea589c5](https://github.com/aws/language-servers/commit/ea589c5422f478be84f112295d82b0edb902ff21))
|
|
12
|
+
* server side workspace context capability ([a65fec9](https://github.com/aws/language-servers/commit/a65fec9e0cb092ddc941b164fc049fb13bb628c5))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* add support for determing workspace folder with root uri/path on initialize ([#1210](https://github.com/aws/language-servers/issues/1210)) ([5fd3174](https://github.com/aws/language-servers/commit/5fd3174f386fd0e97b8f631d26f457f574d145c4))
|
|
18
|
+
* clear history for `inputTooLong` errors ([#1268](https://github.com/aws/language-servers/issues/1268)) ([b00b014](https://github.com/aws/language-servers/commit/b00b0146b55452c6472d3bc9b44a80afe393b686))
|
|
19
|
+
* emit all errors to get total # of errors ([#1252](https://github.com/aws/language-servers/issues/1252)) ([b425a66](https://github.com/aws/language-servers/commit/b425a667082e67a20e6f265cb0e41d049d5149af))
|
|
20
|
+
* errors/cancellation not resetting undoAll state ([#1273](https://github.com/aws/language-servers/issues/1273)) ([823b199](https://github.com/aws/language-servers/commit/823b199b77de7e715caf31479b9ccc55b0a17445))
|
|
21
|
+
* fix for permission case for execute bash ([66612cd](https://github.com/aws/language-servers/commit/66612cd5fe625dba6d951bc300e538e896e5f392))
|
|
22
|
+
* fix for permission case for execute bash ([#1220](https://github.com/aws/language-servers/issues/1220)) ([66612cd](https://github.com/aws/language-servers/commit/66612cd5fe625dba6d951bc300e538e896e5f392))
|
|
23
|
+
* fix the extra line on executeBash and wrong warning msg for outside workspace ([#1240](https://github.com/aws/language-servers/issues/1240)) ([eacc047](https://github.com/aws/language-servers/commit/eacc0475f2fe0362c155a2bd6be1715b2561d356))
|
|
24
|
+
* hide non-user-generated messages when reloading history ([#1257](https://github.com/aws/language-servers/issues/1257)) ([9540f12](https://github.com/aws/language-servers/commit/9540f12c7d9495b481d0cf61ad2b2c0b8339f156))
|
|
25
|
+
* improve data synchronization of server side workspace context ([#1278](https://github.com/aws/language-servers/issues/1278)) ([f50c4a7](https://github.com/aws/language-servers/commit/f50c4a71103b82a9780e542eef2e3622c16332d5))
|
|
26
|
+
* make LLM less apologetic, increase listDirectory result size ([#1242](https://github.com/aws/language-servers/issues/1242)) ([572cabb](https://github.com/aws/language-servers/commit/572cabb1036171438fe97898f72c85383628bcfd))
|
|
27
|
+
* only keep toolUses with `stop` = true in history ([#1235](https://github.com/aws/language-servers/issues/1235)) ([1edb6af](https://github.com/aws/language-servers/commit/1edb6af0425a3613d7dccb795b7d8178bf1c803c))
|
|
28
|
+
* projectRoot passed to vecLib was malformed ([#1250](https://github.com/aws/language-servers/issues/1250)) ([def522d](https://github.com/aws/language-servers/commit/def522daee62ea37556fefe12352ef28f38523d1))
|
|
29
|
+
* removing warning icon for shell commands ([#1233](https://github.com/aws/language-servers/issues/1233)) ([18b2a18](https://github.com/aws/language-servers/commit/18b2a183ddeb3b58e3ebc9931cea08c1cf781bb7))
|
|
30
|
+
* server side timeout causes ISE ([#1254](https://github.com/aws/language-servers/issues/1254)) ([9cb2440](https://github.com/aws/language-servers/commit/9cb2440c165a296e11e0597e14b6c6aa7205f313))
|
|
31
|
+
* show context transparency list when using [@workspace](https://github.com/workspace) ([#1241](https://github.com/aws/language-servers/issues/1241)) ([291c0ba](https://github.com/aws/language-servers/commit/291c0ba945f311f6c1c071d048792de8735d17b8))
|
|
32
|
+
* switch to ignore entries over patterns ([#1236](https://github.com/aws/language-servers/issues/1236)) ([49ae714](https://github.com/aws/language-servers/commit/49ae7141024f9802d3ce671441f978f487a399aa))
|
|
33
|
+
* typo in cwsprChatTimeToFirstChunk and remove all zeros ([#1222](https://github.com/aws/language-servers/issues/1222)) ([4c940bc](https://github.com/aws/language-servers/commit/4c940bc20a3417e39d66ea73532f99a312d05e35))
|
|
34
|
+
* update header ignore status ([#1239](https://github.com/aws/language-servers/issues/1239)) ([6abf2fd](https://github.com/aws/language-servers/commit/6abf2fd27e8702a89f1ab306f363e04dfa27b978))
|
|
35
|
+
* update listDirectory tool to output in tree-like format to reduce toolSize ([#1260](https://github.com/aws/language-servers/issues/1260)) ([becfee0](https://github.com/aws/language-servers/commit/becfee0d36e9e2a5fb5239c1e34cc6661ca01d94))
|
|
36
|
+
* update reject button status ([#1253](https://github.com/aws/language-servers/issues/1253)) ([78c12c8](https://github.com/aws/language-servers/commit/78c12c8620367ac4276fb564e28ca58292cc8456))
|
|
37
|
+
* update undo-all-changes button icon to undo ([#1238](https://github.com/aws/language-servers/issues/1238)) ([6ebd5eb](https://github.com/aws/language-servers/commit/6ebd5eb8896a487189b79b1bbf1612ec9e95d064))
|
|
38
|
+
* use proper condition for trigger index enablement response ([#1258](https://github.com/aws/language-servers/issues/1258)) ([5aeb694](https://github.com/aws/language-servers/commit/5aeb694f495b8365c958bc9b626d0daf11718458))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Dependencies
|
|
42
|
+
|
|
43
|
+
* The following workspace dependencies were updated
|
|
44
|
+
* dependencies
|
|
45
|
+
* @aws/lsp-core bumped from ^0.0.5 to ^0.0.6
|
|
46
|
+
|
|
3
47
|
## [0.0.35](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.34...lsp-codewhisperer/v0.0.35) (2025-05-06)
|
|
4
48
|
|
|
5
49
|
|
|
@@ -116,28 +116,14 @@
|
|
|
116
116
|
"method": "POST",
|
|
117
117
|
"requestUri": "/"
|
|
118
118
|
},
|
|
119
|
-
"input": {
|
|
120
|
-
|
|
121
|
-
},
|
|
122
|
-
"output": {
|
|
123
|
-
"shape": "CreateWorkspaceResponse"
|
|
124
|
-
},
|
|
119
|
+
"input": { "shape": "CreateWorkspaceRequest" },
|
|
120
|
+
"output": { "shape": "CreateWorkspaceResponse" },
|
|
125
121
|
"errors": [
|
|
126
|
-
{
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"shape": "InternalServerException"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"shape": "ValidationException"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"shape": "AccessDeniedException"
|
|
140
|
-
}
|
|
122
|
+
{ "shape": "ThrottlingException" },
|
|
123
|
+
{ "shape": "ConflictException" },
|
|
124
|
+
{ "shape": "InternalServerException" },
|
|
125
|
+
{ "shape": "ValidationException" },
|
|
126
|
+
{ "shape": "AccessDeniedException" }
|
|
141
127
|
],
|
|
142
128
|
"documentation": "<p>Create a workspace based on a workspace root</p>"
|
|
143
129
|
},
|
|
@@ -178,25 +164,13 @@
|
|
|
178
164
|
"method": "POST",
|
|
179
165
|
"requestUri": "/"
|
|
180
166
|
},
|
|
181
|
-
"input": {
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
"output": {
|
|
185
|
-
"shape": "DeleteWorkspaceResponse"
|
|
186
|
-
},
|
|
167
|
+
"input": { "shape": "DeleteWorkspaceRequest" },
|
|
168
|
+
"output": { "shape": "DeleteWorkspaceResponse" },
|
|
187
169
|
"errors": [
|
|
188
|
-
{
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"shape": "InternalServerException"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"shape": "ValidationException"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"shape": "AccessDeniedException"
|
|
199
|
-
}
|
|
170
|
+
{ "shape": "ThrottlingException" },
|
|
171
|
+
{ "shape": "InternalServerException" },
|
|
172
|
+
{ "shape": "ValidationException" },
|
|
173
|
+
{ "shape": "AccessDeniedException" }
|
|
200
174
|
],
|
|
201
175
|
"documentation": "<p>Delete a workspace based on a workspaceId</p>"
|
|
202
176
|
},
|
|
@@ -446,25 +420,13 @@
|
|
|
446
420
|
"method": "POST",
|
|
447
421
|
"requestUri": "/"
|
|
448
422
|
},
|
|
449
|
-
"input": {
|
|
450
|
-
|
|
451
|
-
},
|
|
452
|
-
"output": {
|
|
453
|
-
"shape": "ListAvailableProfilesResponse"
|
|
454
|
-
},
|
|
423
|
+
"input": { "shape": "ListAvailableProfilesRequest" },
|
|
424
|
+
"output": { "shape": "ListAvailableProfilesResponse" },
|
|
455
425
|
"errors": [
|
|
456
|
-
{
|
|
457
|
-
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"shape": "InternalServerException"
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"shape": "ValidationException"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"shape": "AccessDeniedException"
|
|
467
|
-
}
|
|
426
|
+
{ "shape": "ThrottlingException" },
|
|
427
|
+
{ "shape": "InternalServerException" },
|
|
428
|
+
{ "shape": "ValidationException" },
|
|
429
|
+
{ "shape": "AccessDeniedException" }
|
|
468
430
|
]
|
|
469
431
|
},
|
|
470
432
|
"ListCodeAnalysisFindings": {
|
|
@@ -532,25 +494,13 @@
|
|
|
532
494
|
"method": "POST",
|
|
533
495
|
"requestUri": "/"
|
|
534
496
|
},
|
|
535
|
-
"input": {
|
|
536
|
-
|
|
537
|
-
},
|
|
538
|
-
"output": {
|
|
539
|
-
"shape": "ListWorkspaceMetadataResponse"
|
|
540
|
-
},
|
|
497
|
+
"input": { "shape": "ListWorkspaceMetadataRequest" },
|
|
498
|
+
"output": { "shape": "ListWorkspaceMetadataResponse" },
|
|
541
499
|
"errors": [
|
|
542
|
-
{
|
|
543
|
-
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"shape": "InternalServerException"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"shape": "ValidationException"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"shape": "AccessDeniedException"
|
|
553
|
-
}
|
|
500
|
+
{ "shape": "ThrottlingException" },
|
|
501
|
+
{ "shape": "InternalServerException" },
|
|
502
|
+
{ "shape": "ValidationException" },
|
|
503
|
+
{ "shape": "AccessDeniedException" }
|
|
554
504
|
],
|
|
555
505
|
"documentation": "<p>List workspace metadata based on a workspace root</p>"
|
|
556
506
|
},
|
|
@@ -830,9 +780,7 @@
|
|
|
830
780
|
},
|
|
831
781
|
"ActiveFunctionalityList": {
|
|
832
782
|
"type": "list",
|
|
833
|
-
"member": {
|
|
834
|
-
"shape": "FunctionalityName"
|
|
835
|
-
},
|
|
783
|
+
"member": { "shape": "FunctionalityName" },
|
|
836
784
|
"max": 10,
|
|
837
785
|
"min": 0
|
|
838
786
|
},
|
|
@@ -876,9 +824,7 @@
|
|
|
876
824
|
},
|
|
877
825
|
"AdditionalContentList": {
|
|
878
826
|
"type": "list",
|
|
879
|
-
"member": {
|
|
880
|
-
"shape": "AdditionalContentEntry"
|
|
881
|
-
},
|
|
827
|
+
"member": { "shape": "AdditionalContentEntry" },
|
|
882
828
|
"documentation": "<p>A list of additional content entries, limited to 20 items</p>",
|
|
883
829
|
"max": 20,
|
|
884
830
|
"min": 0
|
|
@@ -934,25 +880,15 @@
|
|
|
934
880
|
"type": "structure",
|
|
935
881
|
"required": ["tenantId", "applicationArn", "tenantUrl", "applicationType"],
|
|
936
882
|
"members": {
|
|
937
|
-
"tenantId": {
|
|
938
|
-
|
|
939
|
-
},
|
|
940
|
-
"
|
|
941
|
-
"shape": "ResourceArn"
|
|
942
|
-
},
|
|
943
|
-
"tenantUrl": {
|
|
944
|
-
"shape": "Url"
|
|
945
|
-
},
|
|
946
|
-
"applicationType": {
|
|
947
|
-
"shape": "FunctionalityName"
|
|
948
|
-
}
|
|
883
|
+
"tenantId": { "shape": "TenantId" },
|
|
884
|
+
"applicationArn": { "shape": "ResourceArn" },
|
|
885
|
+
"tenantUrl": { "shape": "Url" },
|
|
886
|
+
"applicationType": { "shape": "FunctionalityName" }
|
|
949
887
|
}
|
|
950
888
|
},
|
|
951
889
|
"ApplicationPropertiesList": {
|
|
952
890
|
"type": "list",
|
|
953
|
-
"member": {
|
|
954
|
-
"shape": "ApplicationProperties"
|
|
955
|
-
}
|
|
891
|
+
"member": { "shape": "ApplicationProperties" }
|
|
956
892
|
},
|
|
957
893
|
"ArtifactId": {
|
|
958
894
|
"type": "string",
|
|
@@ -1025,12 +961,8 @@
|
|
|
1025
961
|
"type": "structure",
|
|
1026
962
|
"required": ["toggle"],
|
|
1027
963
|
"members": {
|
|
1028
|
-
"s3Uri": {
|
|
1029
|
-
|
|
1030
|
-
},
|
|
1031
|
-
"toggle": {
|
|
1032
|
-
"shape": "OptInFeatureToggle"
|
|
1033
|
-
}
|
|
964
|
+
"s3Uri": { "shape": "S3Uri" },
|
|
965
|
+
"toggle": { "shape": "OptInFeatureToggle" }
|
|
1034
966
|
}
|
|
1035
967
|
},
|
|
1036
968
|
"ChatAddMessageEvent": {
|
|
@@ -1675,26 +1607,21 @@
|
|
|
1675
1607
|
"type": "structure",
|
|
1676
1608
|
"required": ["workspaceRoot"],
|
|
1677
1609
|
"members": {
|
|
1678
|
-
"workspaceRoot": {
|
|
1679
|
-
|
|
1680
|
-
},
|
|
1681
|
-
"profileArn": {
|
|
1682
|
-
"shape": "ProfileArn"
|
|
1683
|
-
}
|
|
1610
|
+
"workspaceRoot": { "shape": "CreateWorkspaceRequestWorkspaceRootString" },
|
|
1611
|
+
"profileArn": { "shape": "ProfileArn" }
|
|
1684
1612
|
}
|
|
1685
1613
|
},
|
|
1686
1614
|
"CreateWorkspaceRequestWorkspaceRootString": {
|
|
1687
1615
|
"type": "string",
|
|
1688
1616
|
"max": 1024,
|
|
1689
|
-
"min": 1
|
|
1617
|
+
"min": 1,
|
|
1618
|
+
"sensitive": true
|
|
1690
1619
|
},
|
|
1691
1620
|
"CreateWorkspaceResponse": {
|
|
1692
1621
|
"type": "structure",
|
|
1693
1622
|
"required": ["workspace"],
|
|
1694
1623
|
"members": {
|
|
1695
|
-
"workspace": {
|
|
1696
|
-
"shape": "WorkspaceMetadata"
|
|
1697
|
-
}
|
|
1624
|
+
"workspace": { "shape": "WorkspaceMetadata" }
|
|
1698
1625
|
}
|
|
1699
1626
|
},
|
|
1700
1627
|
"CursorState": {
|
|
@@ -1749,21 +1676,15 @@
|
|
|
1749
1676
|
"type": "structure",
|
|
1750
1677
|
"required": ["toggle"],
|
|
1751
1678
|
"members": {
|
|
1752
|
-
"toggle": {
|
|
1753
|
-
"shape": "OptInFeatureToggle"
|
|
1754
|
-
}
|
|
1679
|
+
"toggle": { "shape": "OptInFeatureToggle" }
|
|
1755
1680
|
}
|
|
1756
1681
|
},
|
|
1757
1682
|
"DeleteTaskAssistConversationRequest": {
|
|
1758
1683
|
"type": "structure",
|
|
1759
1684
|
"required": ["conversationId"],
|
|
1760
1685
|
"members": {
|
|
1761
|
-
"conversationId": {
|
|
1762
|
-
|
|
1763
|
-
},
|
|
1764
|
-
"profileArn": {
|
|
1765
|
-
"shape": "ProfileArn"
|
|
1766
|
-
}
|
|
1686
|
+
"conversationId": { "shape": "ConversationId" },
|
|
1687
|
+
"profileArn": { "shape": "ProfileArn" }
|
|
1767
1688
|
},
|
|
1768
1689
|
"documentation": "<p>Structure to represent bootstrap conversation request.</p>"
|
|
1769
1690
|
},
|
|
@@ -1781,12 +1702,8 @@
|
|
|
1781
1702
|
"type": "structure",
|
|
1782
1703
|
"required": ["workspaceId"],
|
|
1783
1704
|
"members": {
|
|
1784
|
-
"workspaceId": {
|
|
1785
|
-
|
|
1786
|
-
},
|
|
1787
|
-
"profileArn": {
|
|
1788
|
-
"shape": "ProfileArn"
|
|
1789
|
-
}
|
|
1705
|
+
"workspaceId": { "shape": "UUID" },
|
|
1706
|
+
"profileArn": { "shape": "ProfileArn" }
|
|
1790
1707
|
}
|
|
1791
1708
|
},
|
|
1792
1709
|
"DeleteWorkspaceResponse": {
|
|
@@ -2361,36 +2278,16 @@
|
|
|
2361
2278
|
"type": "structure",
|
|
2362
2279
|
"required": ["fileContext"],
|
|
2363
2280
|
"members": {
|
|
2364
|
-
"fileContext": {
|
|
2365
|
-
|
|
2366
|
-
},
|
|
2367
|
-
"
|
|
2368
|
-
|
|
2369
|
-
},
|
|
2370
|
-
"
|
|
2371
|
-
|
|
2372
|
-
},
|
|
2373
|
-
"
|
|
2374
|
-
"shape": "ReferenceTrackerConfiguration"
|
|
2375
|
-
},
|
|
2376
|
-
"supplementalContexts": {
|
|
2377
|
-
"shape": "SupplementalContextList"
|
|
2378
|
-
},
|
|
2379
|
-
"customizationArn": {
|
|
2380
|
-
"shape": "CustomizationArn"
|
|
2381
|
-
},
|
|
2382
|
-
"optOutPreference": {
|
|
2383
|
-
"shape": "OptOutPreference"
|
|
2384
|
-
},
|
|
2385
|
-
"userContext": {
|
|
2386
|
-
"shape": "UserContext"
|
|
2387
|
-
},
|
|
2388
|
-
"profileArn": {
|
|
2389
|
-
"shape": "ProfileArn"
|
|
2390
|
-
},
|
|
2391
|
-
"workspaceId": {
|
|
2392
|
-
"shape": "UUID"
|
|
2393
|
-
}
|
|
2281
|
+
"fileContext": { "shape": "FileContext" },
|
|
2282
|
+
"maxResults": { "shape": "GenerateCompletionsRequestMaxResultsInteger" },
|
|
2283
|
+
"nextToken": { "shape": "GenerateCompletionsRequestNextTokenString" },
|
|
2284
|
+
"referenceTrackerConfiguration": { "shape": "ReferenceTrackerConfiguration" },
|
|
2285
|
+
"supplementalContexts": { "shape": "SupplementalContextList" },
|
|
2286
|
+
"customizationArn": { "shape": "CustomizationArn" },
|
|
2287
|
+
"optOutPreference": { "shape": "OptOutPreference" },
|
|
2288
|
+
"userContext": { "shape": "UserContext" },
|
|
2289
|
+
"profileArn": { "shape": "ProfileArn" },
|
|
2290
|
+
"workspaceId": { "shape": "UUID" }
|
|
2394
2291
|
}
|
|
2395
2292
|
},
|
|
2396
2293
|
"GenerateCompletionsRequestMaxResultsInteger": {
|
|
@@ -2848,37 +2745,25 @@
|
|
|
2848
2745
|
},
|
|
2849
2746
|
"ListWorkspaceMetadataRequest": {
|
|
2850
2747
|
"type": "structure",
|
|
2851
|
-
"required": ["workspaceRoot"],
|
|
2852
2748
|
"members": {
|
|
2853
|
-
"workspaceRoot": {
|
|
2854
|
-
|
|
2855
|
-
},
|
|
2856
|
-
"
|
|
2857
|
-
"shape": "String"
|
|
2858
|
-
},
|
|
2859
|
-
"maxResults": {
|
|
2860
|
-
"shape": "Integer"
|
|
2861
|
-
},
|
|
2862
|
-
"profileArn": {
|
|
2863
|
-
"shape": "ProfileArn"
|
|
2864
|
-
}
|
|
2749
|
+
"workspaceRoot": { "shape": "ListWorkspaceMetadataRequestWorkspaceRootString" },
|
|
2750
|
+
"nextToken": { "shape": "String" },
|
|
2751
|
+
"maxResults": { "shape": "Integer" },
|
|
2752
|
+
"profileArn": { "shape": "ProfileArn" }
|
|
2865
2753
|
}
|
|
2866
2754
|
},
|
|
2867
2755
|
"ListWorkspaceMetadataRequestWorkspaceRootString": {
|
|
2868
2756
|
"type": "string",
|
|
2869
2757
|
"max": 1024,
|
|
2870
|
-
"min": 1
|
|
2758
|
+
"min": 1,
|
|
2759
|
+
"sensitive": true
|
|
2871
2760
|
},
|
|
2872
2761
|
"ListWorkspaceMetadataResponse": {
|
|
2873
2762
|
"type": "structure",
|
|
2874
2763
|
"required": ["workspaces"],
|
|
2875
2764
|
"members": {
|
|
2876
|
-
"workspaces": {
|
|
2877
|
-
|
|
2878
|
-
},
|
|
2879
|
-
"nextToken": {
|
|
2880
|
-
"shape": "String"
|
|
2881
|
-
}
|
|
2765
|
+
"workspaces": { "shape": "WorkspaceList" },
|
|
2766
|
+
"nextToken": { "shape": "String" }
|
|
2882
2767
|
}
|
|
2883
2768
|
},
|
|
2884
2769
|
"Long": {
|
|
@@ -2957,21 +2842,11 @@
|
|
|
2957
2842
|
"OptInFeatures": {
|
|
2958
2843
|
"type": "structure",
|
|
2959
2844
|
"members": {
|
|
2960
|
-
"promptLogging": {
|
|
2961
|
-
|
|
2962
|
-
},
|
|
2963
|
-
"
|
|
2964
|
-
|
|
2965
|
-
},
|
|
2966
|
-
"dashboardAnalytics": {
|
|
2967
|
-
"shape": "DashboardAnalytics"
|
|
2968
|
-
},
|
|
2969
|
-
"notifications": {
|
|
2970
|
-
"shape": "Notifications"
|
|
2971
|
-
},
|
|
2972
|
-
"workspaceContext": {
|
|
2973
|
-
"shape": "WorkspaceContext"
|
|
2974
|
-
}
|
|
2845
|
+
"promptLogging": { "shape": "PromptLogging" },
|
|
2846
|
+
"byUserAnalytics": { "shape": "ByUserAnalytics" },
|
|
2847
|
+
"dashboardAnalytics": { "shape": "DashboardAnalytics" },
|
|
2848
|
+
"notifications": { "shape": "Notifications" },
|
|
2849
|
+
"workspaceContext": { "shape": "WorkspaceContext" }
|
|
2975
2850
|
}
|
|
2976
2851
|
},
|
|
2977
2852
|
"OptOutPreference": {
|
|
@@ -3419,15 +3294,9 @@
|
|
|
3419
3294
|
"type": "structure",
|
|
3420
3295
|
"required": ["instanceArn", "oidcClientId"],
|
|
3421
3296
|
"members": {
|
|
3422
|
-
"instanceArn": {
|
|
3423
|
-
|
|
3424
|
-
}
|
|
3425
|
-
"oidcClientId": {
|
|
3426
|
-
"shape": "String"
|
|
3427
|
-
},
|
|
3428
|
-
"ssoRegion": {
|
|
3429
|
-
"shape": "SSORegion"
|
|
3430
|
-
}
|
|
3297
|
+
"instanceArn": { "shape": "ResourceArn" },
|
|
3298
|
+
"oidcClientId": { "shape": "String" },
|
|
3299
|
+
"ssoRegion": { "shape": "SSORegion" }
|
|
3431
3300
|
}
|
|
3432
3301
|
},
|
|
3433
3302
|
"SSORegion": {
|
|
@@ -5160,45 +5029,42 @@
|
|
|
5160
5029
|
"type": "structure",
|
|
5161
5030
|
"required": ["toggle"],
|
|
5162
5031
|
"members": {
|
|
5163
|
-
"toggle": {
|
|
5164
|
-
"shape": "OptInFeatureToggle"
|
|
5165
|
-
}
|
|
5032
|
+
"toggle": { "shape": "OptInFeatureToggle" }
|
|
5166
5033
|
}
|
|
5167
5034
|
},
|
|
5168
5035
|
"WorkspaceContextUploadContext": {
|
|
5169
5036
|
"type": "structure",
|
|
5170
5037
|
"required": ["workspaceId", "relativePath", "programmingLanguage"],
|
|
5171
5038
|
"members": {
|
|
5172
|
-
"workspaceId": {
|
|
5173
|
-
|
|
5174
|
-
}
|
|
5175
|
-
"relativePath": {
|
|
5176
|
-
"shape": "SensitiveString"
|
|
5177
|
-
},
|
|
5178
|
-
"programmingLanguage": {
|
|
5179
|
-
"shape": "ProgrammingLanguage"
|
|
5180
|
-
}
|
|
5039
|
+
"workspaceId": { "shape": "UUID" },
|
|
5040
|
+
"relativePath": { "shape": "SensitiveString" },
|
|
5041
|
+
"programmingLanguage": { "shape": "ProgrammingLanguage" }
|
|
5181
5042
|
}
|
|
5182
5043
|
},
|
|
5044
|
+
"WorkspaceFolderList": {
|
|
5045
|
+
"type": "list",
|
|
5046
|
+
"member": { "shape": "WorkspaceFolderListMemberString" },
|
|
5047
|
+
"max": 100,
|
|
5048
|
+
"min": 0
|
|
5049
|
+
},
|
|
5050
|
+
"WorkspaceFolderListMemberString": {
|
|
5051
|
+
"type": "string",
|
|
5052
|
+
"max": 4096,
|
|
5053
|
+
"min": 1,
|
|
5054
|
+
"sensitive": true
|
|
5055
|
+
},
|
|
5183
5056
|
"WorkspaceList": {
|
|
5184
5057
|
"type": "list",
|
|
5185
|
-
"member": {
|
|
5186
|
-
"shape": "WorkspaceMetadata"
|
|
5187
|
-
}
|
|
5058
|
+
"member": { "shape": "WorkspaceMetadata" }
|
|
5188
5059
|
},
|
|
5189
5060
|
"WorkspaceMetadata": {
|
|
5190
5061
|
"type": "structure",
|
|
5191
5062
|
"required": ["workspaceId", "workspaceStatus"],
|
|
5192
5063
|
"members": {
|
|
5193
|
-
"workspaceId": {
|
|
5194
|
-
|
|
5195
|
-
},
|
|
5196
|
-
"
|
|
5197
|
-
"shape": "WorkspaceStatus"
|
|
5198
|
-
},
|
|
5199
|
-
"environmentId": {
|
|
5200
|
-
"shape": "SensitiveString"
|
|
5201
|
-
}
|
|
5064
|
+
"workspaceId": { "shape": "UUID" },
|
|
5065
|
+
"workspaceStatus": { "shape": "WorkspaceStatus" },
|
|
5066
|
+
"environmentAddress": { "shape": "SensitiveString" },
|
|
5067
|
+
"environmentId": { "shape": "SensitiveString" }
|
|
5202
5068
|
}
|
|
5203
5069
|
},
|
|
5204
5070
|
"WorkspaceState": {
|
|
@@ -272,6 +272,7 @@ class AgenticChatController {
|
|
|
272
272
|
}
|
|
273
273
|
token.onCancellationRequested(async () => {
|
|
274
274
|
this.#log('cancellation requested');
|
|
275
|
+
await this.#showUndoAllIfRequired(chatResultStream, session);
|
|
275
276
|
await this.#getChatResultStream(params.partialResultToken).writeResultBlock({
|
|
276
277
|
type: 'directive',
|
|
277
278
|
messageId: 'stopped' + (0, uuid_1.v4)(),
|
|
@@ -654,6 +655,7 @@ class AgenticChatController {
|
|
|
654
655
|
}
|
|
655
656
|
}
|
|
656
657
|
catch (err) {
|
|
658
|
+
await this.#showUndoAllIfRequired(chatResultStream, session);
|
|
657
659
|
if (this.isUserAction(err, token)) {
|
|
658
660
|
if (toolUse.name === 'executeBash') {
|
|
659
661
|
if (err instanceof toolShared_1.ToolApprovalException) {
|
|
@@ -742,6 +744,7 @@ class AgenticChatController {
|
|
|
742
744
|
}
|
|
743
745
|
const toUndo = session.toolUseLookup.get(session.currentUndoAllId)?.relatedToolUses;
|
|
744
746
|
if (!toUndo || toUndo.size <= 1) {
|
|
747
|
+
session.currentUndoAllId = undefined;
|
|
745
748
|
return;
|
|
746
749
|
}
|
|
747
750
|
await chatResultStream.writeResultBlock({
|
|
@@ -1234,6 +1237,10 @@ class AgenticChatController {
|
|
|
1234
1237
|
}
|
|
1235
1238
|
if (errors_2.customerFacingErrorCodes.includes(err.code)) {
|
|
1236
1239
|
this.#features.logging.error(`${lsp_core_2.loggingUtils.formatErr(err)}`);
|
|
1240
|
+
if (err.code === 'InputTooLong') {
|
|
1241
|
+
// Clear the chat history in the database for this tab
|
|
1242
|
+
this.#chatHistoryDb.clearTab(tabId);
|
|
1243
|
+
}
|
|
1237
1244
|
return new server_interface_1.ResponseError(server_interface_1.LSPErrorCodes.RequestFailed, err.message, {
|
|
1238
1245
|
type: 'answer',
|
|
1239
1246
|
body: err.message,
|