@toolbaux/guardian 0.1.6 → 0.1.7

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.
@@ -131,9 +131,28 @@ export function renderContextBlock(architecture, ux, options) {
131
131
  lines.push("");
132
132
  }
133
133
  }
134
+ // Deep intelligence pointers — tell AI agents where to find more detail
135
+ lines.push("### Deep Intelligence");
136
+ lines.push("");
137
+ lines.push("The above is a summary. For deeper analysis, these files and commands are available:");
138
+ lines.push("");
139
+ lines.push("**Files** (read directly when you need detail):");
140
+ lines.push("- `.specs/machine/architecture.snapshot.yaml` — full module map with every file, export symbol, import edge");
141
+ lines.push("- `.specs/machine/codebase-intelligence.json` — API registry with handler code, service calls, request/response schemas");
142
+ lines.push("- `.specs/machine/structural-intelligence.json` — depth/complexity analysis per module");
143
+ if (architecture.dependencies.file_graph.length > 0) {
144
+ lines.push("- `.specs/machine/architecture.snapshot.yaml → dependencies.file_graph` — file-level dependency edges");
145
+ }
146
+ if (architecture.analysis?.circular_dependencies?.length > 0) {
147
+ lines.push(`- Circular dependencies detected: ${architecture.analysis.circular_dependencies.length} cycles (check snapshot)`);
148
+ }
149
+ lines.push("");
150
+ lines.push("**Commands** (run in terminal for targeted lookup):");
151
+ lines.push("- `guardian search --query \"<feature>\"` — search endpoints, models, components, modules by keyword");
152
+ lines.push("- `guardian context --focus \"<feature>\"` — generate focused context for a specific area");
153
+ lines.push("- `guardian drift` — check architectural drift metrics");
154
+ lines.push("");
134
155
  lines.push("<!-- /guardian:context -->");
135
- // No global truncation — each section self-limits via .slice().
136
- // Every section is guaranteed to appear with at least a few entries.
137
156
  return lines.join("\n");
138
157
  }
139
158
  function tokenize(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolbaux/guardian",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "Architectural intelligence for codebases. Verify that AI-generated code matches your architectural intent.",
6
6
  "keywords": [