@dnai/dynamicllm 0.2.0 → 0.2.2
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/cli/init.js +15 -2
- package/package.json +1 -1
package/dist/cli/init.js
CHANGED
|
@@ -59,12 +59,18 @@ async function registerAgent(agent, networkDir, rl) {
|
|
|
59
59
|
case "claude": {
|
|
60
60
|
const { execSync } = await import("node:child_process");
|
|
61
61
|
try {
|
|
62
|
+
// Remove existing entry first (ignore errors if it doesn't exist)
|
|
63
|
+
try {
|
|
64
|
+
execSync("claude mcp remove --scope user dynamicllm", { stdio: "ignore" });
|
|
65
|
+
}
|
|
66
|
+
catch { /* no existing entry — fine */ }
|
|
62
67
|
execSync(`claude mcp add --scope user dynamicllm -e DYNAMICLLM_NETWORK_DIR="${networkDir}" -- dynamicllm mcp`, { stdio: "inherit" });
|
|
63
68
|
console.log(" Registered with Claude Code (user-level).");
|
|
64
69
|
}
|
|
65
70
|
catch {
|
|
66
71
|
console.log(" Could not auto-register with Claude Code.");
|
|
67
72
|
console.log(" Run manually:");
|
|
73
|
+
console.log(` claude mcp remove --scope user dynamicllm`);
|
|
68
74
|
console.log(` claude mcp add --scope user dynamicllm -e DYNAMICLLM_NETWORK_DIR="${networkDir}" -- dynamicllm mcp`);
|
|
69
75
|
}
|
|
70
76
|
break;
|
|
@@ -119,8 +125,15 @@ export async function init() {
|
|
|
119
125
|
console.log(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
120
126
|
console.log("");
|
|
121
127
|
// 1. Network directory
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
console.log(` Your network nodes will be stored in:`);
|
|
129
|
+
console.log(` ${defaultDir}`);
|
|
130
|
+
console.log("");
|
|
131
|
+
const changeDir = await rl.question(" Change location? [y/N]: ");
|
|
132
|
+
let networkDir = defaultDir;
|
|
133
|
+
if (changeDir.trim().toLowerCase() === "y") {
|
|
134
|
+
const dirAnswer = await rl.question(` New directory: `);
|
|
135
|
+
networkDir = dirAnswer.trim().replace(/^['"]|['"]$/g, "") || defaultDir;
|
|
136
|
+
}
|
|
124
137
|
if (!existsSync(networkDir)) {
|
|
125
138
|
const create = await rl.question(` Directory doesn't exist. Create it? [Y/n]: `);
|
|
126
139
|
if (create.trim().toLowerCase() !== "n") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnai/dynamicllm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "DynamicLLM — perspective engine for general intelligence. MCP server + CLI providing lens analysis, quality cultivation, and virus scan diagnostics.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/core/index.js",
|