@compilr-dev/sdk 0.10.28 → 0.10.30

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,7 +1,12 @@
1
1
  /**
2
2
  * Coding preset — batteries-included for software development
3
3
  */
4
- import { readFileTool, writeFileTool, editTool, bashTool, bashOutputTool, killShellTool, grepTool, globTool, createTodoTools, getDefaultTodoStore, webFetchTool, suggestTool, } from '@compilr-dev/agents';
4
+ import { readFileTool, writeFileTool, editTool, createBashTool, bashOutputTool, killShellTool, grepTool, globTool, createTodoTools, getDefaultTodoStore, webFetchTool, suggestTool, } from '@compilr-dev/agents';
5
+ // 120s default — long-running coding commands (npm run build, pytest -k …,
6
+ // large test suites, factory scaffolds) frequently exceed the agents-library
7
+ // default of 60s. Audit TODO-2 fix: applied at the preset layer so both CLI
8
+ // and Desktop inherit the same value without each host having to override.
9
+ const bashTool = createBashTool({ timeout: 120000 });
5
10
  import { allCodingTools, unifiedTools, ts, python, go } from '@compilr-dev/agents-coding';
6
11
  import { createLenientTodoWriteTool, createLenientTodoClaimTool, createLenientTodoHandoffTool, } from './lenient-todo.js';
7
12
  const CODING_SYSTEM_PROMPT = `You are a skilled software engineer. You help users with coding tasks including:
@@ -5,7 +5,9 @@
5
5
  * The project-type-specific identity comes from the systemPromptSection
6
6
  * in the ProjectTypeConfig, not from the preset.
7
7
  */
8
- import { readFileTool, writeFileTool, editTool, bashTool, bashOutputTool, killShellTool, grepTool, globTool, createTodoTools, getDefaultTodoStore, webFetchTool, suggestTool, } from '@compilr-dev/agents';
8
+ import { readFileTool, writeFileTool, editTool, createBashTool, bashOutputTool, killShellTool, grepTool, globTool, createTodoTools, getDefaultTodoStore, webFetchTool, suggestTool, } from '@compilr-dev/agents';
9
+ // 120s default — see coding preset for full rationale (audit TODO-2).
10
+ const bashTool = createBashTool({ timeout: 120000 });
9
11
  import { createLenientTodoWriteTool, createLenientTodoClaimTool, createLenientTodoHandoffTool, } from './lenient-todo.js';
10
12
  const GENERAL_SYSTEM_PROMPT = `You are a versatile AI assistant. You adapt your approach to the user's needs and project context.
11
13
 
@@ -202,7 +202,10 @@ export class TeamAgent {
202
202
  `- Your agent ID: \`${this.id}\`\n` +
203
203
  `- When tools have an \`agentId\` (or \`owner\`, \`toAgentId\`) parameter referring to YOU, use \`"${this.id}"\`.\n` +
204
204
  `- When users mention \`$${this.id}\`, they mean you.\n` +
205
- `- When asked "who are you?" or "what is your role?", state both your role and your agent ID.`;
205
+ `- When asked "who are you?" or "what is your role?", state both your role and your agent ID.\n` +
206
+ `- **Always provide at least a brief text reply to the user — never end a turn with only tool calls.** ` +
207
+ `Even after running tools, summarise the result in plain text so the user sees a response. ` +
208
+ `A silent turn (tool call with no follow-up text) looks like a failure on the user's terminal.`;
206
209
  finalSystemPromptAddition = finalSystemPromptAddition
207
210
  ? `${identityBlock}\n\n${finalSystemPromptAddition}`
208
211
  : identityBlock;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.10.28",
3
+ "version": "0.10.30",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",