nexarch 0.3.0 → 0.3.1
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/check-in.js +2 -7
- package/dist/lib/mcp.js +1 -1
- package/package.json +1 -1
|
@@ -36,13 +36,8 @@ function loadIdentity() {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
const COMMAND_TYPE_HINTS = {
|
|
39
|
-
update_project: "Re-scan the project with `npx nexarch init-project` to update the architecture graph.",
|
|
40
|
-
drift_audit: "Compare the current codebase to the architecture graph and report any drift or missing entities.",
|
|
41
|
-
access_audit: "Audit which agents and users have access to this application and report findings.",
|
|
42
|
-
gap_check: "Run a gap analysis: identify architecturally significant platforms or infrastructure not yet in the graph.",
|
|
43
39
|
policy_check: "Step 1: call nexarch_get_entity_policy_controls with entityExternalKey set to target_entity_key — this returns controls, each with a rules array (rule id, name, ruleText). Step 2: for each rule, examine the codebase and evaluate whether it passes, partially passes, or fails. Step 3: call nexarch_submit_policy_audit with applicationEntityKey, commandId, agentKey, and a findings array containing one entry per rule with policyControlId, policyRuleId, result (pass/partial/fail), rationale, and missingRequirements. Step 4: mark the command done with a brief summary. If no controls are returned, run command-fail with error 'No policy controls linked'.",
|
|
44
|
-
|
|
45
|
-
register_aliases: "Find internal package names that are unresolved and register them as company aliases.",
|
|
40
|
+
data_model_review: "Goal: infer enterprise canonical logical data assets and map concrete physical implementations. 1) Identify logical business entities (canonical names, singular, enterprise meaning) and upsert as data_asset:data_logical. 2) Identify physical stores (tables/collections/files/indexes) and upsert as data_asset:data_physical with attributes (database, schema, table_name, store_type, source_system). 3) Link logical -> physical via implemented_by. 4) Link apps/services to physical via reads/writes. 5) Link logical assets to data domains via belongs_to_domain where evidence exists. 6) Avoid duplicate logical entities: reuse canonical logical entities if concept already exists. 7) Mark uncertain mappings with lower confidence in attributes.confidence.score and include rationale in command summary.",
|
|
46
41
|
custom: "Execute the custom instructions provided.",
|
|
47
42
|
};
|
|
48
43
|
export async function checkIn(args) {
|
|
@@ -80,7 +75,7 @@ export async function checkIn(args) {
|
|
|
80
75
|
return;
|
|
81
76
|
}
|
|
82
77
|
const cmd = result.command;
|
|
83
|
-
const hint = COMMAND_TYPE_HINTS[cmd.command_type] ?? "";
|
|
78
|
+
const hint = COMMAND_TYPE_HINTS[cmd.command_type] ?? "No built-in playbook for this command type. Follow the command instructions and complete/fail it explicitly.";
|
|
84
79
|
console.log(`\n╔══════════════════════════════════════════════════════════════════╗`);
|
|
85
80
|
console.log(`║ COMMAND QUEUED — action required ║`);
|
|
86
81
|
console.log(`╚══════════════════════════════════════════════════════════════════╝`);
|
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.3.
|
|
65
|
+
clientInfo: { name: "nexarch-cli", version: "0.3.1" },
|
|
66
66
|
}, options);
|
|
67
67
|
}
|
|
68
68
|
export async function mcpListTools(options = {}) {
|