nexarch 0.4.2 ā 0.4.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.
|
@@ -5,7 +5,7 @@ import process from "process";
|
|
|
5
5
|
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
|
-
const CLI_VERSION = "0.4.
|
|
8
|
+
const CLI_VERSION = "0.4.4";
|
|
9
9
|
const AGENT_ENTITY_TYPE = "agent";
|
|
10
10
|
const TECH_COMPONENT_ENTITY_TYPE = "technology_component";
|
|
11
11
|
function parseFlag(args, flag) {
|
|
@@ -773,8 +773,9 @@ export async function initAgent(args) {
|
|
|
773
773
|
console.log(`š Nexarch registration instructions updated in: ${r.path}`);
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
console.log("\nā” Next step:
|
|
777
|
-
console.log("
|
|
776
|
+
console.log("\nā” Next step (required): complete agent identity in your coding agent");
|
|
777
|
+
console.log(" Paste this and fill in real values:");
|
|
778
|
+
console.log(`\nrun npx nexarch@latest agent identify --agent-id \"${agentId}\" --provider \"<provider>\" --model \"<model>\" --client \"<client>\" --framework \"<openclaw|n8n|m365-agent-framework|other>\" --tool-version \"<tool-version>\" --capabilities \"<capability1,capability2>\" --json\n`);
|
|
778
779
|
}
|
|
779
780
|
else {
|
|
780
781
|
console.log("ā Handshake/registration completed with issues.");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from "process";
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
3
|
-
import { basename, join, resolve as resolvePath } from "node:path";
|
|
3
|
+
import { basename, join, relative, resolve as resolvePath } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { requireCredentials } from "../lib/credentials.js";
|
|
6
6
|
import { callMcpTool } from "../lib/mcp.js";
|
|
@@ -463,7 +463,9 @@ function scanProject(dir) {
|
|
|
463
463
|
rootDepNames = new Set(deps);
|
|
464
464
|
}
|
|
465
465
|
else {
|
|
466
|
-
const relativePath =
|
|
466
|
+
const relativePath = relative(dir, pkgPath)
|
|
467
|
+
.replace(/\\/g, "/")
|
|
468
|
+
.replace(/\/package\.json$/, "");
|
|
467
469
|
const packageName = pkg.name ?? relativePath;
|
|
468
470
|
const { entityType, subtype } = classifySubPackage(pkgPath, relativePath);
|
|
469
471
|
subPackages.push({
|
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.4.
|
|
71
|
+
clientInfo: { name: "nexarch-cli", version: "0.4.4" },
|
|
72
72
|
}, options);
|
|
73
73
|
}
|
|
74
74
|
export async function mcpListTools(options = {}) {
|