@reeledge/agent-tools 0.1.3 → 0.1.4
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/apps/claude-code.js +9 -10
- package/package.json +1 -1
package/dist/apps/claude-code.js
CHANGED
|
@@ -78,22 +78,21 @@ export function makeClaudeCodeAdapter(env) {
|
|
|
78
78
|
return skills.flatMap((s) => writeSkillTree(skillsDir(), s.slug, s.files));
|
|
79
79
|
},
|
|
80
80
|
async configureMcp(serverUrl, token) {
|
|
81
|
-
// 1. Claude Code CLI —
|
|
82
|
-
//
|
|
83
|
-
//
|
|
81
|
+
// 1. Claude Code CLI — best-effort and FULLY ISOLATED: a CLI failure must
|
|
82
|
+
// never block the desktop step below. A spawn ENOENT = not installed;
|
|
83
|
+
// "already exists" (a re-run / `update`, exit 1) or any other failure is
|
|
84
|
+
// logged as skipped, NOT thrown — the connector is already in place, and
|
|
85
|
+
// the desktop bridge still gets written.
|
|
84
86
|
try {
|
|
85
87
|
await env.exec('claude', claudeMcpAddArgs(CONNECTOR_NAME, serverUrl, token));
|
|
86
88
|
log(`Configured Claude Code CLI (${CONNECTOR_NAME})`);
|
|
87
89
|
}
|
|
88
90
|
catch (err) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
else {
|
|
93
|
-
throw err;
|
|
94
|
-
}
|
|
91
|
+
log(err.code === 'ENOENT'
|
|
92
|
+
? 'Claude Code CLI not found — skipped'
|
|
93
|
+
: `Claude Code CLI not configured — skipped (${err.message})`);
|
|
95
94
|
}
|
|
96
|
-
// 2. Claude Desktop — macOS/Windows only;
|
|
95
|
+
// 2. Claude Desktop — macOS/Windows only; ALWAYS runs, independent of the CLI.
|
|
97
96
|
const cfgPath = desktopPath();
|
|
98
97
|
if (cfgPath !== null) {
|
|
99
98
|
const entry = claudeDesktopEntry(mcpEndpoint(serverUrl), token);
|
package/package.json
CHANGED