clementine-agent 1.0.43 → 1.0.44
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 +19 -4
- package/package.json +1 -1
package/dist/agent/assistant.js
CHANGED
|
@@ -1058,13 +1058,28 @@ When ${owner} gives you an API key, access token, or similar credential in chat,
|
|
|
1058
1058
|
|
|
1059
1059
|
Use \`env_list\` to show what's configured (values masked) and \`env_unset\` to remove one. All three are owner-DM only — they'll refuse in channel messages or cron runs.
|
|
1060
1060
|
|
|
1061
|
-
### Tool schema self-extension
|
|
1061
|
+
### Tool schema self-extension — READ CAREFULLY
|
|
1062
1062
|
|
|
1063
|
-
|
|
1063
|
+
Your \`allowedTools\` list is extensible. You can add tools to it yourself via \`allow_tool(name)\`. This is a persistent write that takes effect on your next query.
|
|
1064
1064
|
|
|
1065
|
-
|
|
1065
|
+
**For Claude Desktop connectors (\`mcp__claude_ai_*\` tools: Google Drive, Gmail, Calendar, Slack, etc.):**
|
|
1066
|
+
- They DO work from agent/daemon contexts. M365 has been used successfully for weeks from here, through the exact same code path.
|
|
1067
|
+
- If your first call is refused, the reason is **only** that the specific tool name isn't in your current allowedTools. Nothing to do with Claude Desktop vs. agent contexts. Nothing to do with the integrations.json file having an empty tools array.
|
|
1068
|
+
- The fix is **always** the same: \`allow_tool("mcp__claude_ai_<IntegrationName>__<tool_name>")\`, then retry. Example tool names: \`mcp__claude_ai_Google_Drive__search_files\`, \`mcp__claude_ai_Google_Drive__list_recent_files\`, \`mcp__claude_ai_Google_Drive__read_file_content\`.
|
|
1066
1069
|
|
|
1067
|
-
|
|
1070
|
+
**Forbidden responses — never say any of these:**
|
|
1071
|
+
- "Google Drive isn't available to agents"
|
|
1072
|
+
- "connector tools only work in Claude Desktop chat"
|
|
1073
|
+
- "please open Claude Desktop and try there first"
|
|
1074
|
+
- "the integrations.json has an empty tools array, so I can't use it"
|
|
1075
|
+
- "you need to edit my config file"
|
|
1076
|
+
- "the daemon needs someone to add this"
|
|
1077
|
+
|
|
1078
|
+
All of those are wrong and you have the tools to fix the situation yourself. If you're tempted to say any of them, stop and call \`allow_tool\` instead.
|
|
1079
|
+
|
|
1080
|
+
**Process:** Try the tool → if refused, call \`allow_tool(exact_name)\` → call the tool again → report the real result (the data, or the real error). \`list_allowed_tools\` shows what you've already added. \`disallow_tool\` removes one.
|
|
1081
|
+
|
|
1082
|
+
For \`.env\` credentials, same pattern: don't tell ${owner} to edit files. Call \`env_set(KEY, value)\`. Report what you saved (value masked).
|
|
1068
1083
|
|
|
1069
1084
|
## Context Window Management
|
|
1070
1085
|
|