@compilr-dev/sdk 0.7.19 → 0.7.21

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.
@@ -305,6 +305,26 @@ export const CAPABILITY_PACKS = {
305
305
  estimatedPromptTokens: 120,
306
306
  estimatedToolTokens: 1200,
307
307
  },
308
+ web: {
309
+ id: 'web',
310
+ label: 'Web Fetch',
311
+ tools: ['web_fetch'],
312
+ readOnly: true,
313
+ promptModules: [],
314
+ promptSnippet: 'Web: web_fetch retrieves and reads web pages. Returns plain text content (HTML is converted). Use for research, documentation lookups, and API reference.',
315
+ estimatedPromptTokens: 60,
316
+ estimatedToolTokens: 300,
317
+ },
318
+ episodes: {
319
+ id: 'episodes',
320
+ label: 'Work History',
321
+ tools: ['recall_work'],
322
+ readOnly: true,
323
+ promptModules: [],
324
+ promptSnippet: 'Episodes: recall_work retrieves past work sessions — tool calls, affected files, effort. Use to understand what was done previously or attribute work to agents.',
325
+ estimatedPromptTokens: 60,
326
+ estimatedToolTokens: 300,
327
+ },
308
328
  };
309
329
  /**
310
330
  * Mapping from forbidden pack IDs to suggested agent roles.
package/dist/config.d.ts CHANGED
@@ -60,7 +60,7 @@ export interface ToolConfig {
60
60
  files?: boolean;
61
61
  /** Include shell tools (bash). Default: true for coding preset */
62
62
  shell?: boolean;
63
- /** Include web tools (web_fetch). Default: false */
63
+ /** Include web tools (web_fetch). Default: true */
64
64
  web?: boolean;
65
65
  /** Allowlist of tool names (overrides flags above) */
66
66
  filter?: string[];
package/dist/tools.js CHANGED
@@ -62,7 +62,7 @@ export function assembleTools(preset, toolConfig) {
62
62
  continue;
63
63
  }
64
64
  if (WEB_TOOL_NAMES.has(name)) {
65
- if (toolConfig.web === true) {
65
+ if (toolConfig.web !== false) {
66
66
  result.push(tool);
67
67
  }
68
68
  continue;
@@ -70,8 +70,8 @@ export function assembleTools(preset, toolConfig) {
70
70
  // Utility tools (todo, suggest) — always include
71
71
  result.push(tool);
72
72
  }
73
- // If web tools were requested but not in the preset, add them
74
- if (toolConfig.web === true) {
73
+ // Add web tools unless explicitly disabled (not in preset by default)
74
+ if (toolConfig.web !== false) {
75
75
  const hasWeb = result.some((t) => WEB_TOOL_NAMES.has(t.definition.name));
76
76
  if (!hasWeb) {
77
77
  result.push(...codingWebTools);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.7.19",
3
+ "version": "0.7.21",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",