wave-agent-sdk 0.13.5 → 0.14.0

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.
Files changed (59) hide show
  1. package/dist/agent.d.ts +6 -0
  2. package/dist/agent.d.ts.map +1 -1
  3. package/dist/agent.js +16 -2
  4. package/dist/managers/aiManager.d.ts +3 -0
  5. package/dist/managers/aiManager.d.ts.map +1 -1
  6. package/dist/managers/aiManager.js +93 -8
  7. package/dist/managers/messageManager.d.ts +15 -0
  8. package/dist/managers/messageManager.d.ts.map +1 -1
  9. package/dist/managers/messageManager.js +52 -2
  10. package/dist/managers/messageQueue.d.ts +1 -0
  11. package/dist/managers/messageQueue.d.ts.map +1 -1
  12. package/dist/managers/messageQueue.js +8 -0
  13. package/dist/managers/permissionManager.d.ts +4 -0
  14. package/dist/managers/permissionManager.d.ts.map +1 -1
  15. package/dist/managers/permissionManager.js +6 -0
  16. package/dist/managers/subagentManager.d.ts.map +1 -1
  17. package/dist/managers/subagentManager.js +23 -17
  18. package/dist/prompts/index.d.ts +2 -1
  19. package/dist/prompts/index.d.ts.map +1 -1
  20. package/dist/prompts/index.js +50 -25
  21. package/dist/services/aiService.d.ts.map +1 -1
  22. package/dist/services/aiService.js +11 -1
  23. package/dist/tools/agentTool.d.ts.map +1 -1
  24. package/dist/tools/agentTool.js +14 -2
  25. package/dist/tools/bashTool.d.ts.map +1 -1
  26. package/dist/tools/bashTool.js +27 -5
  27. package/dist/tools/types.d.ts +1 -0
  28. package/dist/tools/types.d.ts.map +1 -1
  29. package/dist/tools/webFetchTool.d.ts.map +1 -1
  30. package/dist/tools/webFetchTool.js +202 -78
  31. package/dist/types/messaging.d.ts +1 -0
  32. package/dist/types/messaging.d.ts.map +1 -1
  33. package/dist/utils/convertMessagesForAPI.js +1 -1
  34. package/dist/utils/groupMessagesByApiRound.d.ts +24 -0
  35. package/dist/utils/groupMessagesByApiRound.d.ts.map +1 -0
  36. package/dist/utils/groupMessagesByApiRound.js +97 -0
  37. package/dist/utils/messageOperations.d.ts +1 -0
  38. package/dist/utils/messageOperations.d.ts.map +1 -1
  39. package/dist/utils/microcompact.d.ts +7 -0
  40. package/dist/utils/microcompact.d.ts.map +1 -0
  41. package/dist/utils/microcompact.js +78 -0
  42. package/package.json +2 -1
  43. package/src/agent.ts +17 -2
  44. package/src/managers/aiManager.ts +117 -15
  45. package/src/managers/messageManager.ts +64 -2
  46. package/src/managers/messageQueue.ts +9 -0
  47. package/src/managers/permissionManager.ts +7 -0
  48. package/src/managers/subagentManager.ts +28 -24
  49. package/src/prompts/index.ts +51 -25
  50. package/src/services/aiService.ts +14 -1
  51. package/src/tools/agentTool.ts +14 -2
  52. package/src/tools/bashTool.ts +27 -5
  53. package/src/tools/types.ts +1 -0
  54. package/src/tools/webFetchTool.ts +276 -86
  55. package/src/types/messaging.ts +1 -0
  56. package/src/utils/convertMessagesForAPI.ts +1 -1
  57. package/src/utils/groupMessagesByApiRound.ts +120 -0
  58. package/src/utils/messageOperations.ts +1 -0
  59. package/src/utils/microcompact.ts +101 -0
@@ -12,11 +12,12 @@ export declare const OUTPUT_EFFICIENCY_PROMPT = "# Output efficiency\n\nIMPORTAN
12
12
  export declare const TONE_AND_STYLE_PROMPT = "# Tone and style\n\n- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\n- Your responses should be short and concise.\n- When referencing specific functions or pieces of code include the pattern file_path:line_number to allow the user to easily navigate to the source code location.\n- When referencing GitHub issues or pull requests, use the owner/repo#123 format (e.g. anthropics/claude-code#100) so they render as clickable links.\n- Do not use a colon before tool calls. Your tool calls may not be shown directly in the output, so text like \"Let me read the file:\" followed by a read tool call should just be \"Let me read the file.\" with a period.";
13
13
  export declare function buildPlanModePrompt(planFilePath: string, planExists: boolean, isSubagent?: boolean): string;
14
14
  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.";
15
- export declare const COMPRESS_MESSAGES_SYSTEM_PROMPT = "You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:\n1. Task Overview\nThe user's core request and success criteria\nAny clarifications or constraints they specified\n2. Current State\nWhat has been completed so far\nFiles created, modified, or analyzed (with paths if relevant)\nKey outputs or artifacts produced\n3. Important Discoveries\nTechnical constraints or requirements uncovered\nDecisions made and their rationale\nErrors encountered and how they were resolved\nWhat approaches were tried that didn't work (and why)\n4. Next Steps\nSpecific actions needed to complete the task\nAny blockers or open questions to resolve\nPriority order if multiple steps remain\n5. Context to Preserve\nUser preferences or style requirements\nDomain-specific details that aren't obvious\nAny promises made to the user\nBe concise but complete\u2014err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.\nWrap your summary in <summary></summary> tags.";
15
+ export declare const COMPRESS_MESSAGES_SYSTEM_PROMPT = "You are continuing work on a software engineering task. Write a detailed continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary.\n\nFirst, write your analysis in <analysis> tags as a thinking scratchpad:\n- Chronologically review the conversation\n- Identify user intents and goals\n- Note files read/modified, approaches tried, decisions made\n- Check for accuracy and completeness \u2014 ensure nothing critical is missing\n\nThen produce a structured summary in <summary> tags with these sections:\n\n## Primary Request and Intent\n- The user's core request and success criteria\n- Clarifications, constraints, or scope changes\n\n## Key Technical Concepts\n- Frameworks, libraries, patterns, architectural decisions\n\n## Files and Code Sections\n- Files read, modified, created (with full paths)\n- Critical code snippets (function signatures, bug fixes, key logic)\n- Focus on recent messages \u2014 include full code for important sections\n\n## Errors and Fixes\n- Errors encountered, root causes, how they were resolved\n- Approaches tried that didn't work and why\n\n## Problem Solving\n- Approach evolution, trade-offs considered, decisions made\n\n## All User Messages\n- Complete list of all user messages (non-tool content)\n- Preserve exact wording where load-bearing\n\n## Pending Tasks\n- Outstanding work, TODOs, unresolved questions\n\n## Current Work\n- What was being worked on at the time of summarization\n- Exact state of in-progress changes\n\n## Optional Next Step\n- Immediate next action needed\n- Include verbatim quotes from recent conversation if relevant\n\nBe concise but complete \u2014 include information that prevents duplicate work or repeated mistakes.\nRespond with text only. Do NOT call any tools.\nWrap your summary in <summary></summary> tags.";
16
16
  export declare const WEB_CONTENT_SYSTEM_PROMPT = "You are a helpful assistant that extracts information from web content. The content is provided in Markdown format.";
17
17
  export declare const BTW_SYSTEM_PROMPT = "You are a helpful assistant. Answer the user's side question based on the conversation history. \nDo NOT say things like \"Let me try...\", \"I'll now...\", \"Let me check...\", or promise to take any action. \nIf you don't know the answer, say so - do not offer to look it up or investigate. \nSimply answer the question with the information you have.";
18
18
  export declare function buildSystemPrompt(basePrompt: string | undefined, tools: ToolPlugin[], options?: {
19
19
  workdir?: string;
20
+ originalWorkdir?: string;
20
21
  memory?: string;
21
22
  language?: string;
22
23
  isSubagent?: boolean;
@@ -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;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAiBzD,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,eAAO,MAAM,kBAAkB,oKAAoK,CAAC;AAEpM,eAAO,MAAM,kBAAkB,opIAcqQ,CAAC;AAErS,eAAO,MAAM,wBAAwB,25DASqmB,CAAC;AAE3oB,eAAO,MAAM,WAAW,knDAYqH,CAAC;AAE9I;;GAEG;AACH,eAAO,MAAM,wBAAwB,+uBAWiH,CAAC;AAEvJ,eAAO,MAAM,qBAAqB,6sBAMuL,CAAC;AAE1N,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,OAAO,EACnB,UAAU,GAAE,OAAe,GAC1B,MAAM,CAmFR;AAED,eAAO,MAAM,qBAAqB,oKAAqB,CAAC;AAExD,eAAO,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AE,MAAM,EACpB,UAAU,EAAE,OAAO,EACnB,UAAU,GAAE,OAAe,GAC1B,MAAM,CAmFR;AAED,eAAO,MAAM,qBAAqB,oKAAqB,CAAC;AAExD,eAAO,MAAM,+BAA+B,44DA8CG,CAAC;AAEhD,eAAO,MAAM,yBAAyB,wHAAwH,CAAC;AAC/J,eAAO,MAAM,iBAAiB,qWAG4B,CAAC;AAE3D,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,KAAK,EAAE,UAAU,EAAE,EACnB,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,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;IACF,UAAU,CAAC,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,cAAc,CAAC,EAAE,cAAc,CAAC;CAC5B,GACL,MAAM,CA+DR;AAED,wBAAgB,iCAAiC,CAC/C,oBAAoB,EAAE,MAAM,EAC5B,OAAO,EAAE,MAAM,GACd,MAAM,CAgCR"}
@@ -148,28 +148,52 @@ This is critical - your turn should only end with either using the ${ASK_USER_QU
148
148
  NOTE: At any point in time through this workflow you should feel free to ask the user questions or clarifications using the ${ASK_USER_QUESTION_TOOL_NAME} tool. Don't make large assumptions about user intent. The goal is to present a well researched plan to the user, and tie any loose ends before implementation begins.`;
149
149
  }
150
150
  export const DEFAULT_SYSTEM_PROMPT = BASE_SYSTEM_PROMPT;
151
- export const COMPRESS_MESSAGES_SYSTEM_PROMPT = `You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
152
- 1. Task Overview
153
- The user's core request and success criteria
154
- Any clarifications or constraints they specified
155
- 2. Current State
156
- What has been completed so far
157
- Files created, modified, or analyzed (with paths if relevant)
158
- Key outputs or artifacts produced
159
- 3. Important Discoveries
160
- Technical constraints or requirements uncovered
161
- Decisions made and their rationale
162
- Errors encountered and how they were resolved
163
- What approaches were tried that didn't work (and why)
164
- 4. Next Steps
165
- Specific actions needed to complete the task
166
- Any blockers or open questions to resolve
167
- Priority order if multiple steps remain
168
- 5. Context to Preserve
169
- User preferences or style requirements
170
- Domain-specific details that aren't obvious
171
- Any promises made to the user
172
- Be concise but complete—err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
151
+ export const COMPRESS_MESSAGES_SYSTEM_PROMPT = `You are continuing work on a software engineering task. Write a detailed continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary.
152
+
153
+ First, write your analysis in <analysis> tags as a thinking scratchpad:
154
+ - Chronologically review the conversation
155
+ - Identify user intents and goals
156
+ - Note files read/modified, approaches tried, decisions made
157
+ - Check for accuracy and completeness ensure nothing critical is missing
158
+
159
+ Then produce a structured summary in <summary> tags with these sections:
160
+
161
+ ## Primary Request and Intent
162
+ - The user's core request and success criteria
163
+ - Clarifications, constraints, or scope changes
164
+
165
+ ## Key Technical Concepts
166
+ - Frameworks, libraries, patterns, architectural decisions
167
+
168
+ ## Files and Code Sections
169
+ - Files read, modified, created (with full paths)
170
+ - Critical code snippets (function signatures, bug fixes, key logic)
171
+ - Focus on recent messages — include full code for important sections
172
+
173
+ ## Errors and Fixes
174
+ - Errors encountered, root causes, how they were resolved
175
+ - Approaches tried that didn't work and why
176
+
177
+ ## Problem Solving
178
+ - Approach evolution, trade-offs considered, decisions made
179
+
180
+ ## All User Messages
181
+ - Complete list of all user messages (non-tool content)
182
+ - Preserve exact wording where load-bearing
183
+
184
+ ## Pending Tasks
185
+ - Outstanding work, TODOs, unresolved questions
186
+
187
+ ## Current Work
188
+ - What was being worked on at the time of summarization
189
+ - Exact state of in-progress changes
190
+
191
+ ## Optional Next Step
192
+ - Immediate next action needed
193
+ - Include verbatim quotes from recent conversation if relevant
194
+
195
+ Be concise but complete — include information that prevents duplicate work or repeated mistakes.
196
+ Respond with text only. Do NOT call any tools.
173
197
  Wrap your summary in <summary></summary> tags.`;
174
198
  export const WEB_CONTENT_SYSTEM_PROMPT = `You are a helpful assistant that extracts information from web content. The content is provided in Markdown format.`;
175
199
  export const BTW_SYSTEM_PROMPT = `You are a helpful assistant. Answer the user's side question based on the conversation history.
@@ -194,8 +218,9 @@ export function buildSystemPrompt(basePrompt, tools, options = {}) {
194
218
  if (options.planMode) {
195
219
  prompt += `\n\n${buildPlanModePrompt(options.planMode.planFilePath, options.planMode.planExists, options.isSubagent)}`;
196
220
  }
197
- if (options.workdir) {
198
- const isGitRepo = isGitRepository(options.workdir);
221
+ const workdirForPrompt = options.originalWorkdir || options.workdir;
222
+ if (workdirForPrompt) {
223
+ const isGitRepo = isGitRepository(workdirForPrompt);
199
224
  const platform = os.platform();
200
225
  const osVersion = `${os.type()} ${os.release()}`;
201
226
  const today = new Date().toISOString().split("T")[0];
@@ -209,7 +234,7 @@ export function buildSystemPrompt(basePrompt, tools, options = {}) {
209
234
 
210
235
  Here is useful information about the environment you are running in:
211
236
  <env>
212
- Working directory: ${options.workdir}
237
+ Working directory: ${workdirForPrompt}
213
238
  Is directory a git repo: ${isGitRepo}
214
239
  Platform: ${platform}
215
240
  Shell: ${shellName}
@@ -1 +1 @@
1
- {"version":3,"file":"aiService.d.ts","sourceRoot":"","sources":["../../src/services/aiService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAGL,0BAA0B,EAC1B,0BAA0B,EAE3B,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,aAAa,EAAE,WA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
457
457
  modelConfig.model === "rate-limit-test") {
458
458
  await acquireSlot(abortSignal);
459
459
  }
460
+ // Strip images from messages before compact API call to reduce token usage
461
+ const cleanedMessages = messages.map((msg) => {
462
+ // Handle user/assistant messages with array content
463
+ if (Array.isArray(msg.content)) {
464
+ const textParts = msg.content.filter((part) => part.type === "text");
465
+ const text = textParts.map((p) => p.text).join("\n");
466
+ return { ...msg, content: text || "(empty message)" };
467
+ }
468
+ return msg;
469
+ });
460
470
  // Create OpenAI client with injected configuration
461
471
  const openai = new OpenAIClient({
462
472
  apiKey: gatewayConfig.apiKey,
@@ -484,7 +494,7 @@ export async function compressMessages(options) {
484
494
  role: "system",
485
495
  content: COMPRESS_MESSAGES_SYSTEM_PROMPT,
486
496
  },
487
- ...messages,
497
+ ...cleanedMessages,
488
498
  {
489
499
  role: "user",
490
500
  content: `Please create a detailed summary of the conversation so far.`,
@@ -1 +1 @@
1
- {"version":3,"file":"agentTool.d.ts","sourceRoot":"","sources":["../../src/tools/agentTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AAStE;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,UAgQvB,CAAC"}
1
+ {"version":3,"file":"agentTool.d.ts","sourceRoot":"","sources":["../../src/tools/agentTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AAStE;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,UA4QvB,CAAC"}
@@ -61,7 +61,11 @@ When using the Agent tool, you must specify a subagent_type parameter to select
61
61
 
62
62
  - When doing file search, prefer to use the ${AGENT_TOOL_NAME} tool in order to reduce context usage.
63
63
  - You should proactively use the ${AGENT_TOOL_NAME} tool with specialized agents when the task at hand matches the agent's description.
64
- - VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the ${AGENT_TOOL_NAME} tool with subagent_type=${EXPLORE_SUBAGENT_TYPE} instead of running search commands directly.`;
64
+ - VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the ${AGENT_TOOL_NAME} tool with subagent_type=${EXPLORE_SUBAGENT_TYPE} instead of running search commands directly.
65
+ - You can optionally run agents in the background using the run_in_background parameter. When an agent runs in the background, you will be automatically notified when it completes — do NOT sleep, poll, or proactively check on its progress. Continue with other work or respond to the user instead.
66
+ - **Foreground vs background**: Use foreground (default) when you need the agent's results before you can proceed — e.g., research agents whose findings inform your next steps. Use background when you have genuinely independent work to do in parallel.
67
+ - **Don't peek.** The tool result includes an output file path — do not Read or tail it unless the user explicitly asks for a progress check. You get a completion notification; trust it. Reading the transcript mid-flight pulls the agent's tool noise into your context, which defeats the point of backgrounding.
68
+ - **Don't race.** After launching, you know nothing about what the agent found. Never fabricate or predict agent results in any format — not as prose, summary, or structured output. The notification arrives as a user-role message in a later turn; it is never something you write yourself. If the user asks a follow-up before the notification lands, tell them the agent is still running — give status, not a guess.`;
65
69
  },
66
70
  execute: async (args, context) => {
67
71
  const subagentManager = context.subagentManager;
@@ -169,9 +173,17 @@ When using the Agent tool, you must specify a subagent_type parameter to select
169
173
  if (run_in_background) {
170
174
  const task = context.backgroundTaskManager?.getTask(result);
171
175
  const outputPath = task?.outputPath;
176
+ const backgroundMsg = [
177
+ `Agent started in background with ID: ${result}.`,
178
+ `The agent is working in the background. You will be notified automatically when it completes.`,
179
+ `Do not duplicate this agent's work — avoid working with the same files or topics it is using.`,
180
+ outputPath
181
+ ? `output_file: ${outputPath}`
182
+ : `Briefly tell the user what you launched and end your response.`,
183
+ ].join("\n");
172
184
  resolve({
173
185
  success: true,
174
- content: `Agent started in background with ID: ${result}.${outputPath ? ` Real-time output: ${outputPath}` : ""}`,
186
+ content: backgroundMsg,
175
187
  shortResult: `Agent started in background: ${result}`,
176
188
  });
177
189
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"bashTool.d.ts","sourceRoot":"","sources":["../../src/tools/bashTool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AAwCtE;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,UA+ctB,CAAC"}
1
+ {"version":3,"file":"bashTool.d.ts","sourceRoot":"","sources":["../../src/tools/bashTool.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AAwCtE;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,UAqetB,CAAC"}
@@ -122,7 +122,10 @@ Use the gh command via the Bash tool for GitHub-related tasks including working
122
122
  - Do not retry failing commands in a sleep loop — diagnose the root cause.
123
123
  - If waiting for a background task you started with \`run_in_background\`, you will be notified when it completes — do not poll.
124
124
  - If you must poll an external process, use a check command (e.g. \`gh run view\`) rather than sleeping first.
125
- - If you must sleep, keep the duration short (1-5 seconds) to avoid blocking the user.`,
125
+ - If you must sleep, keep the duration short (1-5 seconds) to avoid blocking the user.
126
+
127
+ # CWD management
128
+ Try to maintain your current working directory throughout the session by using absolute paths and avoiding usage of \`cd\`. You may use \`cd\` if the User explicitly requests it. When you use \`cd\`, the shell working directory will be reset to the original working directory after the command completes.`,
126
129
  execute: async (args, context) => {
127
130
  const command = args.command;
128
131
  const runInBackground = args.run_in_background;
@@ -186,9 +189,16 @@ Use the gh command via the Bash tool for GitHub-related tasks including working
186
189
  const { id: taskId } = backgroundTaskManager.startShell(command, timeout);
187
190
  const task = backgroundTaskManager.getTask(taskId);
188
191
  const outputPath = task?.outputPath;
192
+ const backgroundMsg = [
193
+ `Command started in background with ID: ${taskId}.`,
194
+ `You will be notified automatically when it completes.`,
195
+ outputPath
196
+ ? `output_file: ${outputPath}`
197
+ : `Use ${READ_TOOL_NAME} tool with task_id="${taskId}" to read the output.`,
198
+ ].join("\n");
189
199
  return {
190
200
  success: true,
191
- content: `Command started in background with ID: ${taskId}.${outputPath ? ` Real-time output: ${outputPath}` : ` Use ${READ_TOOL_NAME} tool with task_id="${taskId}" to monitor output.`}`,
201
+ content: backgroundMsg,
192
202
  shortResult: `Background process ${taskId} started`,
193
203
  };
194
204
  }
@@ -376,14 +386,26 @@ Use the gh command via the Bash tool for GitHub-related tasks including working
376
386
  logger.error("Failed to clean up temp CWD file:", fileError);
377
387
  }
378
388
  }
379
- // If CWD changed, call the onCwdChange callback
389
+ // If CWD changed, call the onCwdChange callback and add notification
390
+ let cwdChangedNotification = "";
380
391
  if (newCwd && newCwd !== context.workdir && context.onCwdChange) {
381
- context.onCwdChange(newCwd);
392
+ const isInSafeZone = context.permissionManager?.isPathInSafeZone?.(newCwd) ?? true;
393
+ if (isInSafeZone) {
394
+ context.onCwdChange(newCwd);
395
+ }
396
+ else if (context.originalWorkdir) {
397
+ context.onCwdChange(context.originalWorkdir);
398
+ cwdChangedNotification = `Shell cwd was reset to ${context.originalWorkdir}\n`;
399
+ }
400
+ else {
401
+ context.onCwdChange(newCwd);
402
+ }
382
403
  }
383
404
  const exitCode = code ?? 0;
384
405
  const combinedOutput = outputBuffer + (errorBuffer ? "\n" + errorBuffer : "");
385
406
  // Handle large output by truncation and persistence if needed
386
- const finalOutput = combinedOutput || `Command executed with exit code: ${exitCode}`;
407
+ const finalOutput = cwdChangedNotification +
408
+ (combinedOutput || `Command executed with exit code: ${exitCode}`);
387
409
  const content = processOutput(finalOutput);
388
410
  const lines = combinedOutput.trim().split("\n");
389
411
  const shortResult = lines.length <= 3
@@ -38,6 +38,7 @@ export interface ToolContext {
38
38
  abortSignal?: AbortSignal;
39
39
  backgroundTaskManager?: import("../managers/backgroundTaskManager.js").BackgroundTaskManager;
40
40
  workdir: string;
41
+ originalWorkdir?: string;
41
42
  /** Permission mode for this tool execution */
42
43
  permissionMode?: PermissionMode;
43
44
  /** Custom permission callback */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tools/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO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C,CAAC;IAC7D,oEAAoE;IACpE,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"webFetchTool.d.ts","sourceRoot":"","sources":["../../src/tools/webFetchTool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AA+BtE,eAAO,MAAM,YAAY,EAAE,UAiK1B,CAAC"}
1
+ {"version":3,"file":"webFetchTool.d.ts","sourceRoot":"","sources":["../../src/tools/webFetchTool.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAA2B,MAAM,YAAY,CAAC;AAoGtE,eAAO,MAAM,YAAY,EAAE,UAoL1B,CAAC"}