@compilr-dev/sdk 0.7.21 → 0.7.23

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.
@@ -194,12 +194,13 @@ export const CAPABILITY_PACKS = {
194
194
  'workitem_advance_step',
195
195
  'workitem_claim',
196
196
  'workitem_handoff',
197
+ 'workitem_comment',
197
198
  ],
198
199
  readOnly: false,
199
200
  promptModules: ['platform-tool-hints'],
200
- promptSnippet: 'Backlog write: workitem_add, workitem_update, workitem_delete, workitem_next, workitem_advance_step, workitem_claim, workitem_handoff. Use workitem_query before modifications.',
201
+ promptSnippet: 'Backlog write: workitem_add, workitem_update, workitem_delete, workitem_next, workitem_advance_step, workitem_claim, workitem_handoff, workitem_comment. Use workitem_query before modifications.',
201
202
  estimatedPromptTokens: 120,
202
- estimatedToolTokens: 2100,
203
+ estimatedToolTokens: 2400,
203
204
  },
204
205
  documents: {
205
206
  id: 'documents',
@@ -209,12 +210,13 @@ export const CAPABILITY_PACKS = {
209
210
  'project_document_get',
210
211
  'project_document_list',
211
212
  'project_document_delete',
213
+ 'project_document_patch',
212
214
  ],
213
215
  readOnly: false,
214
216
  promptModules: ['platform-tool-hints'],
215
- promptSnippet: 'Documents stored in database, not filesystem. Use project_document_add/get/list/delete. Valid doc_types: prd, architecture, design, notes, session-note',
216
- estimatedPromptTokens: 120,
217
- estimatedToolTokens: 1200,
217
+ promptSnippet: 'Documents stored in database, not filesystem. project_document_get supports summary_only, section, startLine/maxLines for partial reads. project_document_patch supports append/prepend/replace_section without reading full content. Valid doc_types: prd, architecture, design, notes, plan, outline, draft, chapter, executive-summary, article, and more.',
218
+ estimatedPromptTokens: 150,
219
+ estimatedToolTokens: 1500,
218
220
  },
219
221
  plans: {
220
222
  id: 'plans',
@@ -249,10 +251,10 @@ export const CAPABILITY_PACKS = {
249
251
  project_db: {
250
252
  id: 'project_db',
251
253
  label: 'Project Database',
252
- tools: ['project_get', 'project_list', 'project_update'],
254
+ tools: ['project_get', 'project_list', 'project_update', 'project_create'],
253
255
  readOnly: false,
254
256
  promptModules: ['platform-tool-hints'],
255
- promptSnippet: 'Project database: project_get, project_list, project_update. Default to active project unless targeting a different one.',
257
+ promptSnippet: 'Project database: project_get, project_list, project_update, project_create. Default to active project unless targeting a different one.',
256
258
  estimatedPromptTokens: 120,
257
259
  estimatedToolTokens: 900,
258
260
  },
package/dist/tools.js CHANGED
@@ -29,9 +29,17 @@ const WEB_TOOL_NAMES = new Set(codingWebTools.map((t) => t.definition.name));
29
29
  */
30
30
  export function assembleTools(preset, toolConfig) {
31
31
  const presetTools = preset.tools;
32
- // If no config, return all preset tools
32
+ // If no config, return all preset tools + web tools (included by default)
33
33
  if (!toolConfig) {
34
- return [...presetTools];
34
+ const result = [...presetTools];
35
+ // Only add web tools if the preset actually has tools (skip for 'none' preset)
36
+ if (result.length > 0) {
37
+ const hasWeb = result.some((t) => WEB_TOOL_NAMES.has(t.definition.name));
38
+ if (!hasWeb) {
39
+ result.push(...codingWebTools);
40
+ }
41
+ }
42
+ return result;
35
43
  }
36
44
  // If filter (allowlist) is specified, it takes precedence over flags
37
45
  if (toolConfig.filter) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.7.21",
3
+ "version": "0.7.23",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",