wave-agent-sdk 0.6.3 → 0.6.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGhF,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,qCAAqC,CAAC;AAQ7C,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,YAAY,EACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,eAAe,EACf,aAAa,EACb,WAAW,EACX,KAAK,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,cAAc,EACf,MAAM,kBAAkB,CAAC;AAe1B,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAE3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,SAAS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BAAwB,EAAE,kBAAkB,CAAC;IAI/D;;;OAGG;IACU,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC3D;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAgBhC;;OAEG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;CACF"}
package/dist/agent.js CHANGED
@@ -489,6 +489,13 @@ export class Agent {
489
489
  });
490
490
  this.permissionManager.updateAllowedRules(currentConfig.permissions.allow);
491
491
  }
492
+ // Update permission manager with configuration-based denied rules
493
+ if (currentConfig?.permissions?.deny) {
494
+ this.logger?.debug("Applying configured denied rules to PermissionManager", {
495
+ count: currentConfig.permissions.deny.length,
496
+ });
497
+ this.permissionManager.updateDeniedRules(currentConfig.permissions.deny);
498
+ }
492
499
  // Update permission manager with configuration-based additionalDirectories
493
500
  if (currentConfig?.permissions?.additionalDirectories) {
494
501
  this.logger?.debug("Applying configured additionalDirectories to PermissionManager", {
@@ -1 +1 @@
1
- {"version":3,"file":"liveConfigManager.d.ts","sourceRoot":"","sources":["../../src/managers/liveConfigManager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAOhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAOhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C;AAED,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AAC;IAyB/B;;;OAGG;YACW,mBAAmB;IAwNjC;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAK1C;;OAEG;IACH,gBAAgB,IAAI,OAAO;IAI3B;;OAEG;IACH,gBAAgB;;;;;;;;;;;;IAgBhB,OAAO,CAAC,sBAAsB;YAMhB,gBAAgB;IA8C9B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IA4F7B,OAAO,CAAC,aAAa;IAuDrB;;;OAGG;IACH,OAAO,CAAC,qBAAqB;CAQ9B"}
@@ -233,6 +233,9 @@ export class LiveConfigManager {
233
233
  if (this.currentConfiguration.permissions?.allow) {
234
234
  this.permissionManager.updateAllowedRules(this.currentConfiguration.permissions.allow);
235
235
  }
236
+ if (this.currentConfiguration.permissions?.deny) {
237
+ this.permissionManager.updateDeniedRules(this.currentConfiguration.permissions.deny);
238
+ }
236
239
  if (this.currentConfiguration.permissions?.additionalDirectories) {
237
240
  this.permissionManager.updateAdditionalDirectories(this.currentConfiguration.permissions.additionalDirectories);
238
241
  }
@@ -246,6 +246,13 @@ export class PermissionManager {
246
246
  }
247
247
  }
248
248
  }
249
+ // 1.2 Check if tool call is allowed by persistent or temporary rules
250
+ if (this.isAllowedByRule(context)) {
251
+ this.logger?.debug("Permission allowed by persistent rule", {
252
+ toolName: context.toolName,
253
+ });
254
+ return { behavior: "allow" };
255
+ }
249
256
  // 1.3 If plan mode, allow Read-only tools and Edit/Write for plan file
250
257
  if (context.permissionMode === "plan") {
251
258
  const writeTools = [
@@ -280,13 +287,6 @@ export class PermissionManager {
280
287
  };
281
288
  }
282
289
  }
283
- // 1.2 Check if tool call matches any allowed rule
284
- if (this.isAllowedByRule(context)) {
285
- this.logger?.debug("Permission allowed by persistent rule", {
286
- toolName: context.toolName,
287
- });
288
- return { behavior: "allow" };
289
- }
290
290
  // 2. If not a restricted tool, always allow
291
291
  if (!this.isRestrictedTool(context.toolName)) {
292
292
  this.logger?.debug("Tool is not restricted, allowing", {
@@ -1,7 +1,6 @@
1
1
  import { ToolPlugin } from "../tools/types.js";
2
2
  export declare const BASE_SYSTEM_PROMPT = "You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\n# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- NEVER propose changes to code you haven't read. If a user asks about or wants you to modify a file, read it first. Understand existing code before suggesting modifications.\n- Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it.\n- Avoid over-engineering. Only make changes that are directly requested or clearly necessary. Keep solutions simple and focused.\n - Don't add features, refactor code, or make \"improvements\" beyond what was asked. A bug fix doesn't need surrounding code cleaned up. A simple feature doesn't need extra configurability. Don't add docstrings, comments, or type annotations to code you didn't change. Only add comments where the logic isn't self-evident.\n - Don't add error handling, fallbacks, or validation for scenarios that can't happen. Trust internal code and framework guarantees. Only validate at system boundaries (user input, external APIs). Don't use feature flags or backwards-compatibility shims when you can just change the code.\n - Don't create helpers, utilities, or abstractions for one-time operations. Don't design for hypothetical future requirements. The right amount of complexity is the minimum needed for the current task\u2014three similar lines of code is better than a premature abstraction.\n- Avoid backwards-compatibility hacks like renaming unused `_vars`, re-exporting types, adding `// removed` comments for removed code, etc. If something is unused, delete it completely.";
3
3
  export declare const TOOL_POLICY = "\n# Tool usage policy\n- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency.\n- However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.\n- If the user specifies that they want you to run tools \"in parallel\", you MUST send a single message with multiple tool use content blocks.";
4
- export declare const TASK_MANAGEMENT_POLICY = "\n# Task Management\nYou have access to the TaskCreate, TaskGet, TaskUpdate, and TaskList tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThese tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\nIt is critical that you mark tasks as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.";
5
4
  export declare function buildPlanModePrompt(planFilePath: string, planExists: boolean, isSubagent?: boolean): string;
6
5
  export declare const DEFAULT_SYSTEM_PROMPT = "You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\n# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- NEVER propose changes to code you haven't read. If a user asks about or wants you to modify a file, read it first. Understand existing code before suggesting modifications.\n- Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it.\n- Avoid over-engineering. Only make changes that are directly requested or clearly necessary. Keep solutions simple and focused.\n - Don't add features, refactor code, or make \"improvements\" beyond what was asked. A bug fix doesn't need surrounding code cleaned up. A simple feature doesn't need extra configurability. Don't add docstrings, comments, or type annotations to code you didn't change. Only add comments where the logic isn't self-evident.\n - Don't add error handling, fallbacks, or validation for scenarios that can't happen. Trust internal code and framework guarantees. Only validate at system boundaries (user input, external APIs). Don't use feature flags or backwards-compatibility shims when you can just change the code.\n - Don't create helpers, utilities, or abstractions for one-time operations. Don't design for hypothetical future requirements. The right amount of complexity is the minimum needed for the current task\u2014three similar lines of code is better than a premature abstraction.\n- Avoid backwards-compatibility hacks like renaming unused `_vars`, re-exporting types, adding `// removed` comments for removed code, etc. If something is unused, delete it completely.";
7
6
  export declare const BASH_SUBAGENT_SYSTEM_PROMPT = "You are a command execution specialist. Your role is to execute bash commands efficiently and safely.\n\nGuidelines:\n- Execute commands precisely as instructed\n- For git operations, follow git safety protocols\n- Report command output clearly and concisely\n- If a command fails, explain the error and suggest solutions\n- Use command chaining (&&) for dependent operations\n- Quote paths with spaces properly\n- For clear communication, avoid using emojis\n\nComplete the requested operations efficiently.";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAqB/C,eAAO,MAAM,kBAAkB,g9DAU+J,CAAC;AAE/L,eAAO,MAAM,WAAW,qvBAIqH,CAAC;AAE9I,eAAO,MAAM,sBAAsB,moBAImH,CAAC;AAEvJ,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,OAAO,EACnB,UAAU,GAAE,OAAe,GAC1B,MAAM,CAmFR;AAED,eAAO,MAAM,qBAAqB,g9DAAqB,CAAC;AAExD,eAAO,MAAM,2BAA2B,igBAWO,CAAC;AAEhD,eAAO,MAAM,6BAA6B,izCAeK,CAAC;AAEhD,eAAO,MAAM,8BAA8B,21EAoCuC,CAAC;AAEnF,eAAO,MAAM,2BAA2B,25EAiDyG,CAAC;AAElJ,eAAO,MAAM,WAAW,kkDAoBjB,CAAC;AAER,eAAO,MAAM,+BAA+B,20CAsBG,CAAC;AAEhD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,KAAK,EAAE,UAAU,EAAE,EACnB,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACE,GACL,MAAM,CAqDR"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAiB/C,eAAO,MAAM,kBAAkB,g9DAU+J,CAAC;AAE/L,eAAO,MAAM,WAAW,qvBAIqH,CAAC;AAE9I,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,OAAO,EACnB,UAAU,GAAE,OAAe,GAC1B,MAAM,CAmFR;AAED,eAAO,MAAM,qBAAqB,g9DAAqB,CAAC;AAExD,eAAO,MAAM,2BAA2B,igBAWO,CAAC;AAEhD,eAAO,MAAM,6BAA6B,izCAeK,CAAC;AAEhD,eAAO,MAAM,8BAA8B,21EAoCuC,CAAC;AAEnF,eAAO,MAAM,2BAA2B,25EAiDyG,CAAC;AAElJ,eAAO,MAAM,WAAW,kkDAoBjB,CAAC;AAER,eAAO,MAAM,+BAA+B,20CAsBG,CAAC;AAEhD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,KAAK,EAAE,UAAU,EAAE,EACnB,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACE,GACL,MAAM,CA2CR"}
@@ -1,7 +1,7 @@
1
1
  import * as os from "node:os";
2
2
  import { isGitRepository } from "../utils/gitUtils.js";
3
3
  import { EXPLORE_SUBAGENT_TYPE, PLAN_SUBAGENT_TYPE, } from "../constants/subagents.js";
4
- import { ASK_USER_QUESTION_TOOL_NAME, BASH_TOOL_NAME, EDIT_TOOL_NAME, GLOB_TOOL_NAME, GREP_TOOL_NAME, READ_TOOL_NAME, TASK_CREATE_TOOL_NAME, TASK_GET_TOOL_NAME, TASK_UPDATE_TOOL_NAME, TASK_LIST_TOOL_NAME, WRITE_TOOL_NAME, EXIT_PLAN_MODE_TOOL_NAME, } from "../constants/tools.js";
4
+ import { ASK_USER_QUESTION_TOOL_NAME, BASH_TOOL_NAME, EDIT_TOOL_NAME, GLOB_TOOL_NAME, GREP_TOOL_NAME, READ_TOOL_NAME, WRITE_TOOL_NAME, EXIT_PLAN_MODE_TOOL_NAME, } from "../constants/tools.js";
5
5
  export const BASE_SYSTEM_PROMPT = `You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
6
6
 
7
7
  # Doing tasks
@@ -18,11 +18,6 @@ export const TOOL_POLICY = `
18
18
  - You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency.
19
19
  - However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.
20
20
  - If the user specifies that they want you to run tools "in parallel", you MUST send a single message with multiple tool use content blocks.`;
21
- export const TASK_MANAGEMENT_POLICY = `
22
- # Task Management
23
- You have access to the ${TASK_CREATE_TOOL_NAME}, ${TASK_GET_TOOL_NAME}, ${TASK_UPDATE_TOOL_NAME}, and ${TASK_LIST_TOOL_NAME} tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
24
- These tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.
25
- It is critical that you mark tasks as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.`;
26
21
  export function buildPlanModePrompt(planFilePath, planExists, isSubagent = false) {
27
22
  const planFileInfo = planExists
28
23
  ? `A plan file already exists at ${planFilePath}. You can read it and make incremental edits using the ${EDIT_TOOL_NAME} tool if you need to.`
@@ -267,13 +262,6 @@ Be concise but complete—err on the side of including information that would pr
267
262
  Wrap your summary in <summary></summary> tags.`;
268
263
  export function buildSystemPrompt(basePrompt, tools, options = {}) {
269
264
  let prompt = basePrompt || DEFAULT_SYSTEM_PROMPT;
270
- const toolNames = new Set(tools.map((t) => t.name));
271
- if (toolNames.has(TASK_CREATE_TOOL_NAME) ||
272
- toolNames.has(TASK_GET_TOOL_NAME) ||
273
- toolNames.has(TASK_UPDATE_TOOL_NAME) ||
274
- toolNames.has(TASK_LIST_TOOL_NAME)) {
275
- prompt += TASK_MANAGEMENT_POLICY;
276
- }
277
265
  prompt += `\n\n${TOOL_POLICY}`;
278
266
  for (const tool of tools) {
279
267
  if (tool.prompt) {
@@ -1 +1 @@
1
- {"version":3,"file":"taskTool.d.ts","sourceRoot":"","sources":["../../src/tools/taskTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAItE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,eAAe,GAAG,UAAU,CAwO3E"}
1
+ {"version":3,"file":"taskTool.d.ts","sourceRoot":"","sources":["../../src/tools/taskTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAItE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,eAAe,GAAG,UAAU,CA2O3E"}
@@ -114,6 +114,9 @@ export function createTaskTool(subagentManager) {
114
114
  });
115
115
  });
116
116
  let shortResult = "";
117
+ if (toolCount > 2) {
118
+ shortResult += "... ";
119
+ }
117
120
  if (lastTools.length > 0) {
118
121
  shortResult += `${lastTools.join(", ")} `;
119
122
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fileSearch.d.ts","sourceRoot":"","sources":["../../src/utils/fileSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,IAAI,EAAE,MAAM,MAAM,CAAC;AAE9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,OAAO,IAAI,EAAE,KAAG,QAAQ,EAK/D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,UAAU;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,KACA,OAAO,CAAC,QAAQ,EAAE,CAmFpB,CAAC"}
1
+ {"version":3,"file":"fileSearch.d.ts","sourceRoot":"","sources":["../../src/utils/fileSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,IAAI,EAAE,MAAM,MAAM,CAAC;AAE9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,OAAO,IAAI,EAAE,KAAG,QAAQ,EAY/D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,UAAU;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,KACA,OAAO,CAAC,QAAQ,EAAE,CAmFpB,CAAC"}
@@ -4,10 +4,17 @@ import { getGlobIgnorePatterns } from "./fileFilter.js";
4
4
  * Convert Path objects to FileItem objects
5
5
  */
6
6
  export const convertPathsToFileItems = (paths) => {
7
- return paths.map((pathObj) => ({
8
- path: pathObj.relative(),
9
- type: pathObj.isDirectory() ? "directory" : "file",
10
- }));
7
+ return paths.map((pathObj) => {
8
+ const isDirectory = pathObj.isDirectory();
9
+ let path = pathObj.relative();
10
+ if (isDirectory && !path.endsWith("/")) {
11
+ path += "/";
12
+ }
13
+ return {
14
+ path,
15
+ type: isDirectory ? "directory" : "file",
16
+ };
17
+ });
11
18
  };
12
19
  /**
13
20
  * Search files and directories using glob patterns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-agent-sdk",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "SDK for building AI-powered development tools and agents",
5
5
  "keywords": [
6
6
  "ai",
package/src/agent.ts CHANGED
@@ -729,6 +729,19 @@ export class Agent {
729
729
  );
730
730
  }
731
731
 
732
+ // Update permission manager with configuration-based denied rules
733
+ if (currentConfig?.permissions?.deny) {
734
+ this.logger?.debug(
735
+ "Applying configured denied rules to PermissionManager",
736
+ {
737
+ count: currentConfig.permissions.deny.length,
738
+ },
739
+ );
740
+ this.permissionManager.updateDeniedRules(
741
+ currentConfig.permissions.deny,
742
+ );
743
+ }
744
+
732
745
  // Update permission manager with configuration-based additionalDirectories
733
746
  if (currentConfig?.permissions?.additionalDirectories) {
734
747
  this.logger?.debug(
@@ -362,6 +362,11 @@ export class LiveConfigManager {
362
362
  this.currentConfiguration.permissions.allow,
363
363
  );
364
364
  }
365
+ if (this.currentConfiguration.permissions?.deny) {
366
+ this.permissionManager.updateDeniedRules(
367
+ this.currentConfiguration.permissions.deny,
368
+ );
369
+ }
365
370
  if (this.currentConfiguration.permissions?.additionalDirectories) {
366
371
  this.permissionManager.updateAdditionalDirectories(
367
372
  this.currentConfiguration.permissions.additionalDirectories,
@@ -345,6 +345,14 @@ export class PermissionManager {
345
345
  }
346
346
  }
347
347
 
348
+ // 1.2 Check if tool call is allowed by persistent or temporary rules
349
+ if (this.isAllowedByRule(context)) {
350
+ this.logger?.debug("Permission allowed by persistent rule", {
351
+ toolName: context.toolName,
352
+ });
353
+ return { behavior: "allow" };
354
+ }
355
+
348
356
  // 1.3 If plan mode, allow Read-only tools and Edit/Write for plan file
349
357
  if (context.permissionMode === "plan") {
350
358
  const writeTools = [
@@ -384,14 +392,6 @@ export class PermissionManager {
384
392
  }
385
393
  }
386
394
 
387
- // 1.2 Check if tool call matches any allowed rule
388
- if (this.isAllowedByRule(context)) {
389
- this.logger?.debug("Permission allowed by persistent rule", {
390
- toolName: context.toolName,
391
- });
392
- return { behavior: "allow" };
393
- }
394
-
395
395
  // 2. If not a restricted tool, always allow
396
396
  if (!this.isRestrictedTool(context.toolName)) {
397
397
  this.logger?.debug("Tool is not restricted, allowing", {
@@ -12,10 +12,6 @@ import {
12
12
  GLOB_TOOL_NAME,
13
13
  GREP_TOOL_NAME,
14
14
  READ_TOOL_NAME,
15
- TASK_CREATE_TOOL_NAME,
16
- TASK_GET_TOOL_NAME,
17
- TASK_UPDATE_TOOL_NAME,
18
- TASK_LIST_TOOL_NAME,
19
15
  WRITE_TOOL_NAME,
20
16
  EXIT_PLAN_MODE_TOOL_NAME,
21
17
  } from "../constants/tools.js";
@@ -38,12 +34,6 @@ export const TOOL_POLICY = `
38
34
  - However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.
39
35
  - If the user specifies that they want you to run tools "in parallel", you MUST send a single message with multiple tool use content blocks.`;
40
36
 
41
- export const TASK_MANAGEMENT_POLICY = `
42
- # Task Management
43
- You have access to the ${TASK_CREATE_TOOL_NAME}, ${TASK_GET_TOOL_NAME}, ${TASK_UPDATE_TOOL_NAME}, and ${TASK_LIST_TOOL_NAME} tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
44
- These tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.
45
- It is critical that you mark tasks as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.`;
46
-
47
37
  export function buildPlanModePrompt(
48
38
  planFilePath: string,
49
39
  planExists: boolean,
@@ -315,16 +305,6 @@ export function buildSystemPrompt(
315
305
  } = {},
316
306
  ): string {
317
307
  let prompt = basePrompt || DEFAULT_SYSTEM_PROMPT;
318
- const toolNames = new Set(tools.map((t) => t.name));
319
-
320
- if (
321
- toolNames.has(TASK_CREATE_TOOL_NAME) ||
322
- toolNames.has(TASK_GET_TOOL_NAME) ||
323
- toolNames.has(TASK_UPDATE_TOOL_NAME) ||
324
- toolNames.has(TASK_LIST_TOOL_NAME)
325
- ) {
326
- prompt += TASK_MANAGEMENT_POLICY;
327
- }
328
308
 
329
309
  prompt += `\n\n${TOOL_POLICY}`;
330
310
 
@@ -138,6 +138,9 @@ export function createTaskTool(subagentManager: SubagentManager): ToolPlugin {
138
138
  });
139
139
 
140
140
  let shortResult = "";
141
+ if (toolCount > 2) {
142
+ shortResult += "... ";
143
+ }
141
144
  if (lastTools.length > 0) {
142
145
  shortResult += `${lastTools.join(", ")} `;
143
146
  }
@@ -6,10 +6,17 @@ import type { FileItem } from "../types/fileSearch.js";
6
6
  * Convert Path objects to FileItem objects
7
7
  */
8
8
  export const convertPathsToFileItems = (paths: Path[]): FileItem[] => {
9
- return paths.map((pathObj) => ({
10
- path: pathObj.relative(),
11
- type: pathObj.isDirectory() ? "directory" : "file",
12
- }));
9
+ return paths.map((pathObj) => {
10
+ const isDirectory = pathObj.isDirectory();
11
+ let path = pathObj.relative();
12
+ if (isDirectory && !path.endsWith("/")) {
13
+ path += "/";
14
+ }
15
+ return {
16
+ path,
17
+ type: isDirectory ? "directory" : "file",
18
+ };
19
+ });
13
20
  };
14
21
 
15
22
  /**