@irisrun/inspect 0.1.0 → 0.2.0

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 ADDED
@@ -0,0 +1,33 @@
1
+ # @irisrun/inspect
2
+
3
+ **See what your agent decided — read-only, snapshot-safe.** A recorded session
4
+ is a snapshot plus a journal; this reads it back as a decision/effect/marker
5
+ timeline keyed by the stable `sessionId`. Nothing it derives re-enters replayed
6
+ state, so inspecting a session can never change it — and re-inspecting the same
7
+ journal bytes is byte-identical.
8
+
9
+ ## What it is
10
+
11
+ `inspectSession(store, sessionId)` reads the latest snapshot + journal tail from a
12
+ `StateStore`, decodes each record, and returns a `SessionInspection` —
13
+ `governingDigest`, `snapshotUpTo`, the `InspectedRecord[]` timeline, per-kind
14
+ `counts`, and a `terminal` of `finished` | `parked` | `open`. The governing
15
+ digest is re-derived LOCALLY from the post-snapshot tail (snapshot-safely), so the
16
+ package depends on `@irisrun/core` ONLY. `renderTimeline(inspection)` formats it
17
+ as one deterministic line per record.
18
+
19
+ This is the library API — not a CLI. (`iris inspect` is an image-only command.)
20
+
21
+ ## Use it
22
+
23
+ ```ts
24
+ import { inspectSession, renderTimeline } from "@irisrun/inspect";
25
+
26
+ const inspection = await inspectSession(store, "s1");
27
+ console.log(renderTimeline(inspection)); // one line per decision/effect/marker
28
+ ```
29
+
30
+ See **[docs/Inspecting a session](../../docs/guides/inspect.md)**.
31
+
32
+ ---
33
+ Part of [Iris](../../README.md) — own, portable, verifiable state.
package/dist/inspect.js CHANGED
@@ -1,4 +1,4 @@
1
- // inspectSession (ADR-0009 inspect surface) — render a recorded session's
1
+ // inspectSession (inspect surface) — render a recorded session's
2
2
  // decision/effect/marker timeline from a StateStore, keyed by the stable
3
3
  // sessionId. READ-ONLY: it reads snapshot + journal, decodes, and summarizes; it
4
4
  // never writes and nothing it derives re-enters replayed state (determinism). The
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@irisrun/inspect",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
- "description": "Iris journal/decision viewer (ADR-0009 inspect surface) — reads a recorded session (snapshot + journal) from a StateStore and renders the deterministic decision/effect/marker timeline, keyed by the stable sessionId. READ-ONLY; re-derives the governing digest snapshot-safely; never writes. Pure over @irisrun/core.",
5
+ "description": "Iris journal/decision viewer (inspect surface) — reads a recorded session (snapshot + journal) from a StateStore and renders the deterministic decision/effect/marker timeline, keyed by the stable sessionId. READ-ONLY; re-derives the governing digest snapshot-safely; never writes. Pure over @irisrun/core.",
6
6
  "exports": {
7
7
  ".": {
8
8
  "iris-src": "./src/index.ts",
@@ -11,7 +11,7 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@irisrun/core": "^0.1.0"
14
+ "@irisrun/core": "^0.2.0"
15
15
  },
16
16
  "license": "MIT",
17
17
  "engines": {