nexarch 0.5.8 → 0.5.9
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/init-agent.js +11 -2
- package/dist/commands/setup.js +1 -0
- package/dist/lib/mcp.js +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { requireCredentials } from "../lib/credentials.js";
|
|
|
6
6
|
import { fetchAgentRegistryOrThrow } from "../lib/agent-registry.js";
|
|
7
7
|
import { callMcpTool, mcpInitialize, mcpListTools } from "../lib/mcp.js";
|
|
8
8
|
import { buildVersionAttributes } from "../lib/version-normalization.js";
|
|
9
|
-
const CLI_VERSION = "0.5.
|
|
9
|
+
const CLI_VERSION = "0.5.9";
|
|
10
10
|
const AGENT_ENTITY_TYPE = "agent";
|
|
11
11
|
const TECH_COMPONENT_ENTITY_TYPE = "technology_component";
|
|
12
12
|
function parseFlag(args, flag) {
|
|
@@ -267,7 +267,7 @@ function injectGenericAgentConfig(registry) {
|
|
|
267
267
|
writeFileSync(filePath, existing + separator + sectionBody + "\n", "utf8");
|
|
268
268
|
return [{ path: filePath, status: "injected" }];
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
return [];
|
|
271
271
|
}
|
|
272
272
|
export async function initAgent(args) {
|
|
273
273
|
const asJson = parseFlag(args, "--json");
|
|
@@ -751,6 +751,15 @@ export async function initAgent(args) {
|
|
|
751
751
|
ok: registration.ok,
|
|
752
752
|
detail: registration.detail,
|
|
753
753
|
});
|
|
754
|
+
checks.push({
|
|
755
|
+
name: "agent.instructions.injection",
|
|
756
|
+
ok: !registration.ok || agentConfigResults.length > 0,
|
|
757
|
+
detail: !registration.ok
|
|
758
|
+
? "skipped (registration failed)"
|
|
759
|
+
: agentConfigResults.length > 0
|
|
760
|
+
? `updated ${agentConfigResults.length} instruction target file(s)`
|
|
761
|
+
: "no runtime instruction target matched this repository (non-fatal; create AGENTS.md/CLAUDE.md or configure a generic target)",
|
|
762
|
+
});
|
|
754
763
|
checks.push({
|
|
755
764
|
name: "technology.components",
|
|
756
765
|
ok: techComponents.ok,
|
package/dist/commands/setup.js
CHANGED
|
@@ -64,4 +64,5 @@ export async function setup(args) {
|
|
|
64
64
|
initAgentArgs.push("--from-setup");
|
|
65
65
|
await initAgent(initAgentArgs);
|
|
66
66
|
console.log("\nSetup complete: MCP client config + agent registration are now in place.");
|
|
67
|
+
console.log("\n➡ Next step: in your coding agent, run:\n\nrun npx nexarch@latest init-agent");
|
|
67
68
|
}
|
package/dist/lib/mcp.js
CHANGED
|
@@ -68,7 +68,7 @@ export async function mcpInitialize(options = {}) {
|
|
|
68
68
|
return callMcpRpc("initialize", {
|
|
69
69
|
protocolVersion: "2024-11-05",
|
|
70
70
|
capabilities: {},
|
|
71
|
-
clientInfo: { name: "nexarch-cli", version: "0.5.
|
|
71
|
+
clientInfo: { name: "nexarch-cli", version: "0.5.9" },
|
|
72
72
|
}, options);
|
|
73
73
|
}
|
|
74
74
|
export async function mcpListTools(options = {}) {
|