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.
|
|
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 —
|
|
449
|
-
The scanner found ${subPackages.length} workspace package(s)
|
|
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
|
|
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
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
-
|
|
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
|
-
|
|
467
|
-
|
|
468
|
-
|
|
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
|
|
481
|
+
(Note: add-relationship command is coming — skip wiring for now if unavailable)
|
|
472
482
|
` : ""}`);
|
|
473
483
|
}
|