class-ai-agent 1.6.2 → 1.6.3

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/README.md CHANGED
@@ -18,7 +18,7 @@ Open-source AI agent scaffolding by **Royal Solution** — use it in your own pr
18
18
  <a href="https://www.npmjs.com/package/class-ai-agent"><img src="https://img.shields.io/npm/v/class-ai-agent?label=npm&logo=npm&style=flat-square" alt="npm version" /></a>
19
19
  <img src="https://img.shields.io/badge/node-%3E%3D16.7-339933?logo=node.js&logoColor=white&style=flat-square" alt="Node.js 16.7+" />
20
20
  <img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="License MIT" />
21
- <img src="https://img.shields.io/badge/version-1.6.2-blue?style=flat-square" alt="Version" />
21
+ <img src="https://img.shields.io/badge/version-1.6.3-blue?style=flat-square" alt="Version" />
22
22
  </p>
23
23
 
24
24
  </div>
@@ -151,7 +151,8 @@ npm exec -- class-ai-agent --dir /path/to/your/project
151
151
  | **Kiro** | `.kiro/steering/ontosight.md`, `.kiro/references/ontosight.md` |
152
152
  | **Claude Code** | `.claude/rules/ontosight.md`, `.claude/references/ontosight.md` |
153
153
  | **Antigravity** | `.agent/rules/ontosight.md`, `.agents/references/ontosight.md` |
154
- | **Quick start** | `npx @royalsolution/ontosight@0.2.0 .` (auto-inits CodeGraph index if missing) |
154
+ | **Quick start** | `npx @royalsolution/ontosight@0.2.0 "<workspace-root>"` — pass absolute workspace root (not bare `.`); auto-inits CodeGraph index if missing |
155
+ | **Project graph** | Preflight with `codegraph_status`; seeds from `codegraph_search` in same project — see `.cursor/rules/ontosight.mdc` |
155
156
  | **Pinned version** | `@royalsolution/ontosight@0.2.0` (`ontosight-codegraph` 0.2.0 on PyPI) |
156
157
  | **Requirements** | Node 20+, Python 3.11+, uv or pipx; shares `.codegraph/` with CodeGraph |
157
158
  | **Troubleshooting** | `.cursor/references/ontosight.md` |
@@ -160,19 +161,23 @@ npm exec -- class-ai-agent --dir /path/to/your/project
160
161
  Example agent workflow (feature area):
161
162
 
162
163
  ```text
163
- 1. codegraph_context({ task: "auth flow", maxNodes: 20 }) → answer in chat
164
- 2. npx @royalsolution/ontosight@0.2.0 . --task "auth flow" --hops 2 open graph for user
164
+ 0. codegraph_status({ projectPath: "<workspace-root>" })
165
+ 1. codegraph_context({ task: "auth flow", maxNodes: 20, projectPath: "<workspace-root>" }) answer in chat
166
+ 2. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --task "auth flow" --hops 2 → open graph for user
165
167
  ```
166
168
 
167
169
  Example **impact analysis** demo:
168
170
 
169
171
  ```text
170
- 1. codegraph_search({ query: "deleteUser" })
171
- 2. codegraph_impact({ query: "deleteUser" }) → ranked blast radius in chat
172
+ 0. codegraph_status({ projectPath: "<workspace-root>" })
173
+ 1. codegraph_search({ query: "<symbol>", projectPath: "<workspace-root>" })
174
+ 2. codegraph_impact({ query: "<symbol>", projectPath: "<workspace-root>" }) → ranked blast radius in chat
172
175
  3. Follow IMPACT-DEMO.md (ui-ux-pro-max presentation)
173
- 4. npx @royalsolution/ontosight@0.2.0 . --symbol deleteUser --path src/services/ --hops 3
176
+ 4. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir> --hops 3
174
177
  ```
175
178
 
179
+ **Wrong graph in browser?** OntoSight defaults to shell `cwd` — always pass the absolute workspace root as `[project-path]`. See `.cursor/references/ontosight.md` troubleshooting.
180
+
176
181
  ---
177
182
 
178
183
  ## Overview
@@ -437,6 +442,14 @@ Ship thin end-to-end slices (DB + API + UI), not “all models first, then all r
437
442
 
438
443
 
439
444
 
445
+
446
+
447
+ ### 1.6.3 — 2026-06-19
448
+
449
+ - Add **Project graph fidelity** rules for OntoSight — mandatory `codegraph_status` preflight, absolute workspace root as `[project-path]`, seed binding from CodeGraph MCP
450
+ - Replace fragile bare `.` OntoSight examples with `<workspace-root>` across rules, references, IMPACT-DEMO, README, and CLI help
451
+ - Add wrong-graph troubleshooting (foreign repo symbols, MCP/OntoSight path mismatch)
452
+
440
453
  ### 1.6.2 — 2026-06-19
441
454
 
442
455
  - Pin agent OntoSight CLI invocations to **`@royalsolution/ontosight@0.2.0`** (latest; `ontosight-codegraph` 0.2.0)
@@ -40,7 +40,9 @@ CodeGraph:
40
40
  (Node 20+ recommended). Set CODEGRAPH_SKIP_INIT=1 to skip indexing.
41
41
 
42
42
  OntoSight:
43
- Visual call graphs: npx @royalsolution/ontosight@0.2.0 .
43
+ Visual call graphs: npx @royalsolution/ontosight@0.2.0 "<workspace-root>"
44
+ Pass absolute workspace root as [project-path] (not bare .) so the browser loads this project's graph.
45
+ Preflight with codegraph_status; seed --symbol from codegraph_search in the same project.
44
46
  Agent rules installed at .cursor/rules/ontosight.mdc (and synced trees).
45
47
  Requires Node 20+, Python 3.11+, uv or pipx.
46
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "class-ai-agent",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Production-grade AI agent configuration for Claude Code, Cursor, Kiro & Antigravity",
5
5
  "license": "MIT",
6
6
  "repository": {