@compilr-dev/sdk 0.10.29 → 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.10.29",
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",