nexarch 0.2.7 → 0.2.9

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.
@@ -40,7 +40,7 @@ const COMMAND_TYPE_HINTS = {
40
40
  drift_audit: "Compare the current codebase to the architecture graph and report any drift or missing entities.",
41
41
  access_audit: "Audit which agents and users have access to this application and report findings.",
42
42
  gap_check: "Run a gap analysis: identify architecturally significant platforms or infrastructure not yet in the graph.",
43
- policy_check: "Call nexarch_get_entity_policy_controls with argument entityExternalKey set to the target_entity_key value. If controls are returned, evaluate the application against each one and report findings, then mark the command done. If controls array is empty, do NOT mark the command done instead run: npx nexarch command-fail --id <id> --error \"No policy controls linked\" and tell the user they must create policy_control entities in the nexarch workspace and link them to the application via 'governs' relationships before this check can run.",
43
+ 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
44
  enrich_entity: "Update the entity description, subtype, and metadata using information from the README or codebase.",
45
45
  register_aliases: "Find internal package names that are unresolved and register them as company aliases.",
46
46
  custom: "Execute the custom instructions provided.",
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.7" },
65
+ clientInfo: { name: "nexarch-cli", version: "0.2.9" },
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.7",
3
+ "version": "0.2.9",
4
4
  "description": "Connect AI coding tools to your Nexarch architecture workspace",
5
5
  "keywords": [
6
6
  "nexarch",