nexarch 0.2.1 → 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.
@@ -190,9 +190,9 @@ export async function agentIdentify(args) {
190
190
  confidence: 1,
191
191
  },
192
192
  {
193
- relationshipTypeCode: "accountable_for",
193
+ relationshipTypeCode: "offers",
194
194
  fromEntityExternalKey: providerExternalKey,
195
- toEntityExternalKey: agentExternalKey,
195
+ toEntityExternalKey: modelExternalKey,
196
196
  confidence: 1,
197
197
  },
198
198
  ];
@@ -4,7 +4,7 @@ import { join } from "path";
4
4
  import process from "process";
5
5
  import { requireCredentials } from "../lib/credentials.js";
6
6
  import { callMcpTool, mcpInitialize, mcpListTools } from "../lib/mcp.js";
7
- const CLI_VERSION = "0.2.1";
7
+ const CLI_VERSION = "0.2.2";
8
8
  const AGENT_ENTITY_TYPE = "agent";
9
9
  const TECH_COMPONENT_ENTITY_TYPE = "technology_component";
10
10
  function parseFlag(args, flag) {
@@ -481,6 +481,14 @@ export async function initAgent(args) {
481
481
  confidence: 0.95,
482
482
  attributes: { source: "nexarch-cli-init-agent", kind: "host_os", createdAt: nowIso },
483
483
  },
484
+ // Company org is accountable_for the agent
485
+ {
486
+ relationshipTypeCode: "accountable_for",
487
+ fromEntityExternalKey: `org:${creds.companyId}`,
488
+ toEntityExternalKey: agentExternalKey,
489
+ confidence: 1,
490
+ attributes: { source: "nexarch-cli-init-agent", kind: "org_agent", createdAt: nowIso },
491
+ },
484
492
  ],
485
493
  agentContext: {
486
494
  agentId,
@@ -718,6 +718,15 @@ export async function initProject(args) {
718
718
  addRel(pickRelationshipType(r.entityTypeCode, sp.entityType), sp.externalKey, r.canonicalExternalRef);
719
719
  }
720
720
  }
721
+ // Company org is accountable_for the top-level project entity
722
+ const orgExternalKey = `org:${creds.companyId}`;
723
+ addRel("accountable_for", orgExternalKey, projectExternalKey, 1);
724
+ // Also accountable_for any sub-package applications
725
+ for (const sp of subPackages) {
726
+ if (sp.externalKey && sp.entityType === "application") {
727
+ addRel("accountable_for", orgExternalKey, sp.externalKey, 1);
728
+ }
729
+ }
721
730
  if (!asJson)
722
731
  console.log(`\nWriting to graph…`);
723
732
  // Upsert entities
package/dist/lib/mcp.js CHANGED
@@ -62,7 +62,7 @@ export async function mcpInitialize(options = {}) {
62
62
  return callMcpRpc("initialize", {
63
63
  protocolVersion: "2024-11-05",
64
64
  capabilities: {},
65
- clientInfo: { name: "nexarch-cli", version: "0.2.1" },
65
+ clientInfo: { name: "nexarch-cli", version: "0.2.2" },
66
66
  }, options);
67
67
  }
68
68
  export async function mcpListTools(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexarch",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Connect AI coding tools to your Nexarch architecture workspace",
5
5
  "keywords": [
6
6
  "nexarch",