@compilr-dev/sdk 0.7.19 → 0.7.20
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.
- package/dist/config.d.ts +1 -1
- package/dist/tools.js +3 -3
- package/package.json +1 -1
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:
|
|
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
|
|
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
|
-
//
|
|
74
|
-
if (toolConfig.web
|
|
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);
|