clementine-agent 1.0.62 → 1.0.63
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/agent/assistant.js +14 -2
- package/package.json +1 -1
package/dist/agent/assistant.js
CHANGED
|
@@ -1624,7 +1624,16 @@ You have a cost budget per message — not a hard turn limit. Work until the tas
|
|
|
1624
1624
|
...(fallback ? { fallbackModel: fallback } : {}),
|
|
1625
1625
|
permissionMode: effectivePermissionMode,
|
|
1626
1626
|
allowDangerouslySkipPermissions: true,
|
|
1627
|
-
|
|
1627
|
+
// SDK field semantics (per node_modules/@anthropic-ai/claude-agent-sdk/sdk.d.ts):
|
|
1628
|
+
// - `tools` → which built-in tools the model can see (Read, Bash, Task, …)
|
|
1629
|
+
// - `mcpServers` → MCP servers to spawn; all their declared tools are exposed automatically
|
|
1630
|
+
// - `allowedTools` → auto-allow list covering both built-ins AND MCP tool names
|
|
1631
|
+
// (MCP names MUST live here, not in `tools` — that was the bug
|
|
1632
|
+
// producing `<tool_use_error>No such tool available: mcp__*__*`
|
|
1633
|
+
// for every Extension and custom stdio server).
|
|
1634
|
+
// - `disallowedTools` → blocklist, takes precedence.
|
|
1635
|
+
tools: disableAllTools ? [] : allowedTools.filter(t => !t.startsWith('mcp__')),
|
|
1636
|
+
allowedTools: disableAllTools ? [] : allowedTools,
|
|
1628
1637
|
disallowedTools: disallowed,
|
|
1629
1638
|
...(streaming ? { includePartialMessages: true } : {}),
|
|
1630
1639
|
mcpServers: {
|
|
@@ -3175,7 +3184,10 @@ You have a cost budget per message — not a hard turn limit. Work until the tas
|
|
|
3175
3184
|
model: AUTO_MEMORY_MODEL,
|
|
3176
3185
|
permissionMode: 'bypassPermissions',
|
|
3177
3186
|
allowDangerouslySkipPermissions: true,
|
|
3178
|
-
tools
|
|
3187
|
+
// MCP tool names live in allowedTools, not tools. See note at
|
|
3188
|
+
// buildOptions — `tools` is for built-ins only.
|
|
3189
|
+
tools: [],
|
|
3190
|
+
allowedTools: [
|
|
3179
3191
|
mcpTool('memory_write'),
|
|
3180
3192
|
mcpTool('memory_search'),
|
|
3181
3193
|
mcpTool('note_create'),
|