nexarch 0.1.19 → 0.1.21

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.
@@ -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.1.19";
7
+ const CLI_VERSION = "0.1.21";
8
8
  const AGENT_ENTITY_TYPE = "agent";
9
9
  const TECH_COMPONENT_ENTITY_TYPE = "technology_component";
10
10
  function parseFlag(args, flag) {
@@ -445,29 +445,39 @@ STEP 2 — Enrich the project entity. Run this command with the description you'
445
445
  --name "<proper product name from README>" \\
446
446
  --description "<2–4 sentence summary of what it does and why>"
447
447
  ${subPackages.length > 0 ? `
448
- STEP 3 — Register each sub-application as its own entity.
449
- The scanner found ${subPackages.length} workspace package(s). For each one, read its
450
- README / package.json description, then run:
448
+ STEP 3 — Classify and register each sub-package as its own entity.
449
+ The scanner found ${subPackages.length} workspace package(s):
451
450
 
452
- Sub-packages detected:
453
451
  ${subPackages.map((sp) => ` • ${sp.name} (${sp.relativePath})`).join("\n")}
454
452
 
455
- For each sub-package run:
453
+ For each one, READ its package.json and any README to understand what it actually is,
454
+ then choose the correct entity type and subtype before running update-entity:
456
455
 
457
- npx nexarch update-entity \\
458
- --key "application:<slugified-package-name>" \\
459
- --entity-type "application" \\
460
- --subtype "app_custom_built" \\
461
- --name "<sub-app name>" \\
462
- --description "<what this sub-app does>"
456
+ CLASSIFICATION GUIDE pick the best fit:
457
+ Deployable web app (has a dev/start/build script, runs in a browser or as a server)
458
+ --entity-type application --subtype app_web
459
+ Deployable background service, worker, or data pipeline (runs as a process, no UI)
460
+ --entity-type application --subtype app_custom_built (or app_integration_service for crawlers/ETL)
461
+ Shared internal library or package (imported by other packages, not deployed on its own)
462
+ → --entity-type technology_component --subtype tech_library
463
+ Shared UI component library
464
+ → --entity-type technology_component --subtype tech_framework
465
+ Type definitions or utility package with no runtime
466
+ → --entity-type technology_component --subtype tech_library
467
+
468
+ For each sub-package, run:
463
469
 
464
- Then wire it to the parent project:
470
+ npx nexarch update-entity \\
471
+ --key "<entity-type>:<slugified-package-name>" \\
472
+ --entity-type "<chosen entity type>" \\
473
+ --subtype "<chosen subtype>" \\
474
+ --name "<human readable name>" \\
475
+ --description "<what this package does and its role in the project>"
465
476
 
466
- npx nexarch add-relationship \\
467
- --from "application:<slugified-package-name>" \\
468
- --to "${projectExternalKey}" \\
469
- --type "part_of"
477
+ Then wire it to the parent project using the appropriate relationship:
478
+ Deployable apps → relationship type: part_of
479
+ Shared libraries → relationship type: depends_on (parent depends on the library)
470
480
 
471
- (Note: add-relationship is coming soon — skip if not yet available)
481
+ (Note: add-relationship command is coming — skip wiring for now if unavailable)
472
482
  ` : ""}`);
473
483
  }
@@ -41,6 +41,7 @@ export async function updateEntity(args) {
41
41
  const agentContext = {
42
42
  agentId: "nexarch-cli:update-entity",
43
43
  agentRunId: `update-entity-${Date.now()}`,
44
+ repoRef: externalKey,
44
45
  observedAt: nowIso,
45
46
  source: "nexarch-cli",
46
47
  model: "n/a",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexarch",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Connect AI coding tools to your Nexarch architecture workspace",
5
5
  "keywords": [
6
6
  "nexarch",