@nodesify/astria 1.0.5 → 1.0.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.
- package/README.md +1 -1
- package/dist/commands/affected.d.ts +1 -0
- package/dist/commands/affected.d.ts.map +1 -1
- package/dist/commands/affected.js +9 -0
- package/dist/commands/affected.js.map +1 -1
- package/dist/commands/communities.d.ts +5 -0
- package/dist/commands/communities.d.ts.map +1 -0
- package/dist/commands/communities.js +31 -0
- package/dist/commands/communities.js.map +1 -0
- package/dist/commands/explain.d.ts +1 -0
- package/dist/commands/explain.d.ts.map +1 -1
- package/dist/commands/explain.js +4 -0
- package/dist/commands/explain.js.map +1 -1
- package/dist/commands/god-nodes.d.ts +5 -0
- package/dist/commands/god-nodes.d.ts.map +1 -0
- package/dist/commands/god-nodes.js +26 -0
- package/dist/commands/god-nodes.js.map +1 -0
- package/dist/commands/llm-summary.d.ts +1 -0
- package/dist/commands/llm-summary.d.ts.map +1 -1
- package/dist/commands/llm-summary.js +3 -2
- package/dist/commands/llm-summary.js.map +1 -1
- package/dist/commands/map.d.ts +1 -0
- package/dist/commands/map.d.ts.map +1 -1
- package/dist/commands/map.js +4 -0
- package/dist/commands/map.js.map +1 -1
- package/dist/commands/neighbors.d.ts +6 -0
- package/dist/commands/neighbors.d.ts.map +1 -0
- package/dist/commands/neighbors.js +42 -0
- package/dist/commands/neighbors.js.map +1 -0
- package/dist/commands/path.d.ts +1 -0
- package/dist/commands/path.d.ts.map +1 -1
- package/dist/commands/path.js +2 -2
- package/dist/commands/path.js.map +1 -1
- package/dist/commands/query.d.ts +2 -0
- package/dist/commands/query.d.ts.map +1 -1
- package/dist/commands/query.js +20 -0
- package/dist/commands/query.js.map +1 -1
- package/dist/commands/run.d.ts +1 -0
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +9 -1
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/stats.d.ts +1 -0
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +4 -0
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +62 -6
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/update.d.ts +8 -2
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +46 -8
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js +2 -1
- package/dist/commands/watch.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -2
- package/dist/index.js.map +1 -1
- package/dist/install/hooks.d.ts.map +1 -1
- package/dist/install/hooks.js +22 -10
- package/dist/install/hooks.js.map +1 -1
- package/dist/native.d.ts +3 -0
- package/dist/native.d.ts.map +1 -1
- package/dist/native.js +22 -3
- package/dist/native.js.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +7 -0
- package/dist/version.js.map +1 -0
- package/package.json +8 -8
- package/skills/skill-aider.md +1 -1
- package/skills/skill-codex.md +3 -1
- package/skills/skill-copilot.md +3 -1
- package/skills/skill-cursor.md +3 -1
- package/skills/skill-gemini.md +3 -1
- package/skills/skill-kiro.md +3 -1
- package/skills/skill-opencode.md +3 -1
- package/skills/skill-trae.md +3 -1
- package/skills/skill.md +30 -4
package/skills/skill-kiro.md
CHANGED
|
@@ -36,4 +36,6 @@ The `.kiro/steering/astria.md` steering file enforces graph usage. You MUST:
|
|
|
36
36
|
|
|
37
37
|
## After editing code
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
If git hooks are installed (`astria hook install`), the graph refreshes itself after every commit — this step is already done.
|
|
40
|
+
|
|
41
|
+
Otherwise run `astria update .` to keep the graph current (`--quiet --if-stale 10` skips while fresh). To share the graph, `astria export --format html --out graph.html` writes a self-contained interactive bubble viewer — click to expand, search to jump, click a node to focus its relation-labeled neighbors.
|
package/skills/skill-opencode.md
CHANGED
|
@@ -41,4 +41,6 @@ When `.astria/` exists, the astria plugin intercepts `view`, `grep`, `glob`, `ls
|
|
|
41
41
|
|
|
42
42
|
## After editing code
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
If git hooks are installed (`astria hook install`), the graph refreshes itself after every commit — this step is already done.
|
|
45
|
+
|
|
46
|
+
Otherwise run `astria update .` to keep the graph current (`--quiet --if-stale 10` skips while fresh). To share the graph, `astria export --format html --out graph.html` writes a self-contained interactive bubble viewer — click to expand, search to jump, click a node to focus its relation-labeled neighbors.
|
package/skills/skill-trae.md
CHANGED
|
@@ -43,4 +43,6 @@ Only use native file tools AFTER the graph identified the exact files.
|
|
|
43
43
|
|
|
44
44
|
## After editing code
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
If git hooks are installed (`astria hook install`), the graph refreshes itself after every commit — this step is already done.
|
|
47
|
+
|
|
48
|
+
Otherwise run `astria update .` to keep the graph current (`--quiet --if-stale 10` skips while fresh). To share the graph, `astria export --format html --out graph.html` writes a self-contained interactive bubble viewer — click to expand, search to jump, click a node to focus its relation-labeled neighbors.
|
package/skills/skill.md
CHANGED
|
@@ -140,6 +140,11 @@ Optional enrichment (each needs a semantic backend: `ASTRIA_LLM_API_KEY` /
|
|
|
140
140
|
symbols to concept nodes from other files as INFERRED edges
|
|
141
141
|
(`context='deep'`). Cached per file content hash — an unchanged file is
|
|
142
142
|
never re-billed.
|
|
143
|
+
- `--judge jev` — TypeSafe decision layer over the backend: gates trivial
|
|
144
|
+
files before they cost engine calls, re-judges relations/node types from
|
|
145
|
+
the allowlists, drops spurious edges, and stores a calibrated
|
|
146
|
+
`confidence_score` on semantic edges. Needs an explicit backend (Jev
|
|
147
|
+
cannot generate extractions itself); judge calls count toward the budget.
|
|
143
148
|
- `ASTRIA_LLM_BUDGET` caps total tokens for a run; every backend response's
|
|
144
149
|
usage block is counted and printed after the run.
|
|
145
150
|
|
|
@@ -149,6 +154,16 @@ Incremental rebuild — only re-extracts files that changed (SHA-256 detection).
|
|
|
149
154
|
|
|
150
155
|
Much faster than `run` for existing projects.
|
|
151
156
|
|
|
157
|
+
Options (all also available on `run`, except `--quiet`/`--if-stale`):
|
|
158
|
+
- `--no-dedup` — skip near-duplicate node merging
|
|
159
|
+
- `--backend <name>` / `--model <name>` — semantic LLM backend (claude, openai, gemini) and model
|
|
160
|
+
- `--judge jev` — optional decision layer over the backend (gate, verify, calibrated edge confidence)
|
|
161
|
+
- `--embed` — compute local embeddings: `similar_to` edges + semantic query recall
|
|
162
|
+
- `--label-communities` — name changed communities thematically (one LLM call per changed community)
|
|
163
|
+
- `--deep` — second extraction tier: LLM-linked cross-file concept edges
|
|
164
|
+
- `--quiet` — suppress progress lines and the token benchmark (for hooks/CI)
|
|
165
|
+
- `--if-stale <minutes>` — skip the rebuild entirely when the graph is fresher than N minutes
|
|
166
|
+
|
|
152
167
|
### `astria health [options]`
|
|
153
168
|
|
|
154
169
|
Code-health report (heuristic 0-100 score): unreachable-symbol candidates,
|
|
@@ -224,7 +239,11 @@ Repeated queries leave a trace: node pairs that keep coming up across distinct q
|
|
|
224
239
|
|
|
225
240
|
### MCP server
|
|
226
241
|
|
|
227
|
-
`astria mcp --graph .` runs an MCP stdio server exposing the graph to AI agents with tools: `query_graph` (supports `cursor` continuation and `detail` tiers), `repo_map`, `explain`, `get_neighbors`, `shortest_path`, `affected`, `god_nodes`, `list_communities`, `graph_stats`.
|
|
242
|
+
`astria mcp --graph .` runs an MCP stdio server exposing the graph to AI agents with tools: `query_graph` (supports `cursor` continuation and `detail` tiers), `repo_map`, `explain`, `get_neighbors`, `shortest_path`, `affected`, `god_nodes`, `list_communities`, `graph_stats`, `health`.
|
|
243
|
+
|
|
244
|
+
### Git hooks
|
|
245
|
+
|
|
246
|
+
`astria hook install|uninstall|status` — per-machine git hooks that run a quiet, freshness-throttled `astria update .` after every code commit and branch switch, so the graph stays current without anyone remembering to run `update`. Skips during rebase/merge; re-run `astria hook install` after upgrading astria to refresh the installed template. `astria hook-guard <mode>` installs the editor PreToolUse guard (`search | read | gemini`).
|
|
228
247
|
|
|
229
248
|
|
|
230
249
|
### `astria stats [options]`
|
|
@@ -237,14 +256,19 @@ Graph staleness check: fresh/stale/very_stale with age in minutes.
|
|
|
237
256
|
|
|
238
257
|
### `astria export [options]`
|
|
239
258
|
|
|
240
|
-
Export graph to JSON, HTML, GraphML,
|
|
259
|
+
Export graph to JSON, HTML, GraphML, SVG, Cypher (Neo4j), or FalkorDB Cypher.
|
|
241
260
|
|
|
242
261
|
```
|
|
243
262
|
astria export --format html --out graph.html
|
|
263
|
+
astria export --format svg --out graph.svg # static, embeds anywhere
|
|
244
264
|
astria export --format graphml --out graph.graphml
|
|
245
|
-
astria export --format cypher --out astria.cypher
|
|
265
|
+
astria export --format cypher --out astria.cypher # idempotent MERGE script for Neo4j
|
|
266
|
+
astria export --format falkordb --out astria.cypher # Cypher for FalkorDB/Redis
|
|
246
267
|
```
|
|
247
268
|
|
|
269
|
+
`--format html` writes a self-contained interactive viewer (opens as community bubbles; click to expand, search symbols or community names to jump, focus a node to see its relation-labeled neighbors, "All nodes" for the full graph). `--mode standard` allows up to 5,000 nodes; `--mode large` lifts the cap. For a filesystem-hierarchy view instead, `astria tree --out tree.html`.
|
|
270
|
+
`--neo4j-push <bolt://host:port>` pushes the cypher export live to Neo4j; `--redis-push <host:port>` pushes a falkordb export to FalkorDB/Redis. (Obsidian is a wiki format: `astria wiki --format obsidian`.)
|
|
271
|
+
|
|
248
272
|
### `astria wiki [options]`
|
|
249
273
|
|
|
250
274
|
Wikipedia-style markdown wiki of the graph: `index.md` plus one article per community and per god node, cross-linked with relative markdown links. Readable by any agent without the CLI — point an agent at `.astria/wiki/index.md` and it navigates by reading files.
|
|
@@ -257,7 +281,9 @@ astria wiki --format obsidian --out my-vault # Obsidian vault + canvas
|
|
|
257
281
|
|
|
258
282
|
## Post-Edit Protocol
|
|
259
283
|
|
|
260
|
-
|
|
284
|
+
With git hooks installed (`astria hook install`), the graph refreshes itself after every commit — nothing to do.
|
|
285
|
+
|
|
286
|
+
After modifying code files in a session with an active graph (no hooks):
|
|
261
287
|
|
|
262
288
|
```bash
|
|
263
289
|
astria update .
|