@agentchatme/claude-code 0.0.1394114111111 → 0.0.13941141111111
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/daemon-main.js +1 -1
- package/dist/daemon-main.js.map +1 -1
- package/dist/index.js +35 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8073,7 +8073,7 @@ import * as path6 from "path";
|
|
|
8073
8073
|
import * as crypto from "crypto";
|
|
8074
8074
|
|
|
8075
8075
|
// src/version.ts
|
|
8076
|
-
var VERSION3 = "0.0.
|
|
8076
|
+
var VERSION3 = "0.0.13941141111111";
|
|
8077
8077
|
|
|
8078
8078
|
// src/runtime-version.ts
|
|
8079
8079
|
var MIN_CLAUDE_CODE_VERSION = "2.1.219";
|
|
@@ -8266,7 +8266,13 @@ function renderClaudeAgents(handle) {
|
|
|
8266
8266
|
].join("\n");
|
|
8267
8267
|
}
|
|
8268
8268
|
function claudeEnv() {
|
|
8269
|
-
const env = { ...process.env
|
|
8269
|
+
const env = { ...process.env };
|
|
8270
|
+
const configured = process.env["CLAUDE_CONFIG_DIR"]?.trim();
|
|
8271
|
+
if (configured !== void 0 && configured.length > 0) {
|
|
8272
|
+
env["CLAUDE_CONFIG_DIR"] = path7.resolve(configured);
|
|
8273
|
+
} else {
|
|
8274
|
+
delete env["CLAUDE_CONFIG_DIR"];
|
|
8275
|
+
}
|
|
8270
8276
|
delete env["CLAUDECODE"];
|
|
8271
8277
|
return env;
|
|
8272
8278
|
}
|
|
@@ -8437,6 +8443,28 @@ function removeOwnedMcp() {
|
|
|
8437
8443
|
}
|
|
8438
8444
|
return { removed: true };
|
|
8439
8445
|
}
|
|
8446
|
+
function removeMisplacedDefaultMcp() {
|
|
8447
|
+
const configured = process.env["CLAUDE_CONFIG_DIR"]?.trim();
|
|
8448
|
+
if (configured !== void 0 && configured.length > 0) return { removed: false };
|
|
8449
|
+
const file = path7.join(claudeHome(), ".claude.json");
|
|
8450
|
+
if (!fs6.existsSync(file)) return { removed: false };
|
|
8451
|
+
try {
|
|
8452
|
+
const doc = JSON.parse(fs6.readFileSync(file, "utf-8"));
|
|
8453
|
+
const servers = doc["mcpServers"] !== null && typeof doc["mcpServers"] === "object" ? doc["mcpServers"] : null;
|
|
8454
|
+
if (servers === null || !mcpServerIsOurs(servers["agentchat"])) {
|
|
8455
|
+
return { removed: false };
|
|
8456
|
+
}
|
|
8457
|
+
delete servers["agentchat"];
|
|
8458
|
+
if (Object.keys(servers).length === 0) delete doc["mcpServers"];
|
|
8459
|
+
atomicText(file, JSON.stringify(doc, null, 2) + "\n");
|
|
8460
|
+
return { removed: true };
|
|
8461
|
+
} catch (err) {
|
|
8462
|
+
return {
|
|
8463
|
+
removed: false,
|
|
8464
|
+
warning: `could not remove the misplaced AgentChat MCP entry from ${file}: ${String(err)}`
|
|
8465
|
+
};
|
|
8466
|
+
}
|
|
8467
|
+
}
|
|
8440
8468
|
function legacyPluginAtUserScope(value, inheritedScope) {
|
|
8441
8469
|
if (Array.isArray(value)) {
|
|
8442
8470
|
return value.some((entry) => legacyPluginAtUserScope(entry, inheritedScope));
|
|
@@ -8599,7 +8627,8 @@ function installClaude(handle) {
|
|
|
8599
8627
|
}
|
|
8600
8628
|
const complete = isClaudeWired();
|
|
8601
8629
|
if (!complete) {
|
|
8602
|
-
|
|
8630
|
+
const mcp2 = inspectClaudeMcp();
|
|
8631
|
+
warnings.push(`direct wiring could not be verified after installation (${mcp2.detail})`);
|
|
8603
8632
|
}
|
|
8604
8633
|
if (complete) {
|
|
8605
8634
|
if (handle !== null) {
|
|
@@ -8645,6 +8674,9 @@ function removeClaudeWiring(opts = {}) {
|
|
|
8645
8674
|
const mcp = removeOwnedMcp();
|
|
8646
8675
|
if (mcp.removed) removed.push("Claude user MCP server");
|
|
8647
8676
|
if (mcp.warning) warnings.push(mcp.warning);
|
|
8677
|
+
const misplacedMcp = removeMisplacedDefaultMcp();
|
|
8678
|
+
if (misplacedMcp.removed) removed.push("misplaced AgentChat MCP server");
|
|
8679
|
+
if (misplacedMcp.warning) warnings.push(misplacedMcp.warning);
|
|
8648
8680
|
const legacy = removeLegacyUserPlugin();
|
|
8649
8681
|
if (legacy.removed) removed.push("legacy marketplace plugin");
|
|
8650
8682
|
if (legacy.warning) warnings.push(legacy.warning);
|