nexarch 0.9.29 → 0.9.31
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/commands/setup.js +11 -4
- package/dist/lib/clients.js +1 -0
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -56,13 +56,20 @@ export async function setup(args) {
|
|
|
56
56
|
console.log(`✗ failed — ${message}`);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
console.log("\nDone. Restart your MCP client for the changes to take effect.");
|
|
60
59
|
}
|
|
61
|
-
console.log("\
|
|
60
|
+
console.log("\nWriting Nexarch agent instructions…\n");
|
|
62
61
|
const initAgentArgs = args.includes("--strict") ? [...args] : [...args, "--strict"];
|
|
63
62
|
if (!initAgentArgs.includes("--from-setup"))
|
|
64
63
|
initAgentArgs.push("--from-setup");
|
|
64
|
+
if (!initAgentArgs.includes("--allow-instruction-write"))
|
|
65
|
+
initAgentArgs.push("--allow-instruction-write");
|
|
65
66
|
await initAgent(initAgentArgs);
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
if (clients.length > 0) {
|
|
68
|
+
const names = clients.map((c) => c.name);
|
|
69
|
+
const listed = names.length === 1 ? names[0] : `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
|
|
70
|
+
console.log(`\nSetup complete. Open a new ${listed} session — Nexarch will self-register on startup.`);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
console.log("\nSetup complete. Once you have configured an MCP client (see above), open a new session — Nexarch will self-register on startup.");
|
|
74
|
+
}
|
|
68
75
|
}
|
package/dist/lib/clients.js
CHANGED
|
@@ -119,6 +119,7 @@ export function findClientProfile(registry, code) {
|
|
|
119
119
|
const aliases = {
|
|
120
120
|
"continue": "continue-dev",
|
|
121
121
|
"claude": "claude-code",
|
|
122
|
+
"codex": "codex-cli",
|
|
122
123
|
};
|
|
123
124
|
const resolved = aliases[normalized] ?? normalized;
|
|
124
125
|
return registry.mcpClientProfiles.find((c) => c.code === resolved) ?? null;
|