@aws/lsp-codewhisperer 0.0.68 → 0.0.69

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.69](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.68...lsp-codewhisperer/v0.0.69) (2025-07-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * enable webforms to blazor transformation via validation bypass ([#1929](https://github.com/aws/language-servers/issues/1929)) ([528f820](https://github.com/aws/language-servers/commit/528f8206b101e8f0c785b7fc0aceb87d6ef3de7b))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **amazonq:** revert commit f17b631d9e06371a11ef8e9cb1413762fb51a143 ([#1965](https://github.com/aws/language-servers/issues/1965)) ([8c2cab6](https://github.com/aws/language-servers/commit/8c2cab6995922c96030b5bbdf3cbbdef7eadd7c2))
14
+ * **amazonq:** stop continuous monitor when WCS sees ServiceQuotaExceeded ([#1957](https://github.com/aws/language-servers/issues/1957)) ([81e19b9](https://github.com/aws/language-servers/commit/81e19b97017edddf486ac92fa6a8dc5fb184e008))
15
+ * fix for mcp delete to remove it from mcp config file ([#1956](https://github.com/aws/language-servers/issues/1956)) ([ad71312](https://github.com/aws/language-servers/commit/ad713122fcb9da90c17301f1312de13ba1d28d01))
16
+
17
+
18
+ ### Reverts
19
+
20
+ * revert for all commits for emergency deployment ([#1966](https://github.com/aws/language-servers/issues/1966)) ([519f75d](https://github.com/aws/language-servers/commit/519f75d22466b72702793b4f1d1ed846c02bbd14))
21
+
3
22
  ## [0.0.68](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.67...lsp-codewhisperer/v0.0.68) (2025-07-22)
4
23
 
5
24
 
@@ -1141,35 +1141,24 @@ class AgenticChatController {
1141
1141
  const { Tool } = toolMap[toolUse.name];
1142
1142
  const tool = new Tool(this.#features);
1143
1143
  // For MCP tools, get the permission from McpManager
1144
- const permission = mcpManager_1.McpManager.instance.getToolPerm('Built-in', toolUse.name);
1144
+ // const permission = McpManager.instance.getToolPerm('Built-in', toolUse.name)
1145
1145
  // If permission is 'alwaysAllow', we don't need to ask for acceptance
1146
- const builtInPermission = permission !== 'alwaysAllow';
1146
+ // const builtInPermission = permission !== 'alwaysAllow'
1147
1147
  // Get the approved paths from the session
1148
1148
  const approvedPaths = session.approvedPaths;
1149
1149
  // Pass the approved paths to the tool's requiresAcceptance method
1150
1150
  const { requiresAcceptance, warning, commandCategory } = await tool.requiresAcceptance(toolUse.input, approvedPaths);
1151
- const isExecuteBash = toolUse.name === toolConstants_1.EXECUTE_BASH;
1152
- // check if tool execution's path is out of workspace
1153
- const isOutOfWorkSpace = warning === constants_2.OUT_OF_WORKSPACE_WARNING_MSG;
1154
- // check if tool involved secured files
1155
- const isSecuredFilesInvoled = warning === constants_2.BINARY_FILE_WARNING_MSG || warning === constants_2.CREDENTIAL_FILE_WARNING_MSG;
1156
1151
  // Honor built-in permission if available, otherwise use tool's requiresAcceptance
1157
- let toolRequiresAcceptance = (builtInPermission || isOutOfWorkSpace || isSecuredFilesInvoled) ?? requiresAcceptance;
1158
- // if the command is read-only and in-workspace --> flip back to no approval needed
1159
- if (isExecuteBash &&
1160
- commandCategory === executeBash_2.CommandCategory.ReadOnly &&
1161
- !isOutOfWorkSpace &&
1162
- !requiresAcceptance) {
1163
- toolRequiresAcceptance = false;
1164
- }
1165
- if (toolRequiresAcceptance || isExecuteBash) {
1152
+ // const requiresAcceptance = builtInPermission || toolRequiresAcceptance
1153
+ if (requiresAcceptance || toolUse.name === toolConstants_1.EXECUTE_BASH) {
1166
1154
  // for executeBash, we till send the confirmation message without action buttons
1167
- const confirmationResult = this.#processToolConfirmation(toolUse, toolRequiresAcceptance, warning, commandCategory, toolUse.name, builtInPermission);
1155
+ const confirmationResult = this.#processToolConfirmation(toolUse, requiresAcceptance, warning, commandCategory);
1168
1156
  cachedButtonBlockId = await chatResultStream.writeResultBlock(confirmationResult);
1157
+ const isExecuteBash = toolUse.name === toolConstants_1.EXECUTE_BASH;
1169
1158
  if (isExecuteBash) {
1170
1159
  this.#telemetryController.emitInteractWithAgenticChat('GeneratedCommand', tabId, session.pairProgrammingMode, session.getConversationType(), this.#abTestingAllocation?.experimentName, this.#abTestingAllocation?.userVariation);
1171
1160
  }
1172
- if (toolRequiresAcceptance) {
1161
+ if (requiresAcceptance) {
1173
1162
  await this.waitForToolApproval(toolUse, chatResultStream, cachedButtonBlockId, session, toolUse.name);
1174
1163
  }
1175
1164
  if (isExecuteBash) {
@@ -1975,7 +1964,7 @@ class AgenticChatController {
1975
1964
  ? `I need permission to read files.\n${formattedPaths.join('\n')}`
1976
1965
  : `I need permission to read files outside the workspace.\n${formattedPaths.join('\n')}`;
1977
1966
  }
1978
- else if (toolName === 'listDirectory') {
1967
+ else {
1979
1968
  const readFilePath = toolUse.input.path;
1980
1969
  // Validate the path using our synchronous utility
1981
1970
  (0, pathValidation_1.validatePathExists)(readFilePath);
@@ -1984,12 +1973,6 @@ class AgenticChatController {
1984
1973
  ? `I need permission to list directories.\n\`${readFilePath}\``
1985
1974
  : `I need permission to list directories outside the workspace.\n\`${readFilePath}\``;
1986
1975
  }
1987
- else {
1988
- const readFilePath = toolUse.input.path;
1989
- body = builtInPermission
1990
- ? `I need permission to search files.\n\`${readFilePath}\``
1991
- : `I need permission to search files outside the workspace.\n\`${readFilePath}\``;
1992
- }
1993
1976
  break;
1994
1977
  }
1995
1978
  default: {