@compilr-dev/sdk 0.7.22 → 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.
Files changed (2) hide show
  1. package/dist/tools.js +10 -2
  2. package/package.json +1 -1
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.22",
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",