sessiongraph 1.0.18 → 1.0.20

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/docs/cli.md CHANGED
@@ -200,9 +200,15 @@ Paths can be configured before they become available.
200
200
  | Claude Code | Home containing `projects/` |
201
201
  | Pi | The `sessions/` directory |
202
202
  | Cursor | CLI home; IDE data uses `SESSIONGRAPH_CURSOR_USER_DATA_DIR` |
203
- | OpenCode | Authenticated local service discovery; open OpenCode before syncing |
203
+ | OpenCode | Data directory or SQLite file, normally `~/.local/share/opencode/opencode.db`; V1 and V2 work offline |
204
204
 
205
205
  Other sources describe their paths in `sources --json` under `pathHint`.
206
+ Without a saved path or `CLAUDE_CONFIG_DIR`, Claude Code searches accessible
207
+ filesystem locations across the computer in cached, resumable passes. `sync`
208
+ continues an unfinished search; keep the app running and refresh to advance
209
+ through very large filesystems. A custom Claude path restricts discovery to that
210
+ home. Permission skips and scan limits are reported as warnings, not erased
211
+ history. See [computer-wide discovery](guide.md#computer-wide-claude-history-discovery).
206
212
  Custom-path sessions use a saved-context handoff when opened from the app.
207
213
  See the [source guide](guide.md#source-coverage) for format coverage.
208
214
 
package/docs/guide.md CHANGED
@@ -73,7 +73,7 @@ On first launch, choose the apps to import. Change that selection in **Settings
73
73
 
74
74
  Turn on **Auto-import sessions** in **Settings → Sources** to check all selected sources on startup, when returning to the app, and every minute while the app is visible. It is off unless you enable it; manual refresh still works. Checks pause while hidden or a dialog is open, share a 30-second cooldown with recent imports, and never overlap an active import. Unchanged libraries do not rebuild the graph. Both manual and automatic refresh preserve your camera, zoom, playback, and selection. Existing layout positions stay stable as new history arrives; **Fit view (F)** recalculates the overview when you want to reframe it. Automatic imports do not select new sources for you.
75
75
 
76
- The auto-import choice is saved in the local SQLite library, so it survives desktop restarts and is shared by browser and desktop instances using that library. Turning it off stops future automatic checks; an import already running can finish. Manual Refresh remains available. There is no background service after the app closes. OpenCode's local service must still be running to import its new history.
76
+ The auto-import choice is saved in the local SQLite library, so it survives desktop restarts and is shared by browser and desktop instances using that library. Turning it off stops future automatic checks; an import already running can finish. Manual Refresh remains available. There is no background service after the app closes. OpenCode imports read saved SQLite history and do not require OpenCode or its service to be running.
77
77
 
78
78
  Time presets and custom date ranges, source/project/directory filters, the archived and child-session toggles, and Settings preferences are also saved in the library. They are restored before the first graph is shown, including when the desktop app starts on a different local port. Existing browser appearance preferences migrate to the library on first use.
79
79
 
@@ -90,7 +90,7 @@ Onboarding closes automatically after a successful import and library refresh. I
90
90
 
91
91
  | Source | Read-only interface | Relationships and limitations |
92
92
  | --- | --- | --- |
93
- | OpenCode | Official authenticated local service discovery and V2 GET API | Explicit forks and child IDs; authoritative snapshot paths where available. OpenCode must be running for an import, but not to browse saved data. Remote endpoints are rejected. |
93
+ | OpenCode | Private read-only SQLite snapshot of `~/.local/share/opencode/opencode.db`, including WAL writes; V1 and V2 layouts | Works with OpenCode closed. V2 split parts and earlier inline content are supported; migrated sessions are deduplicated by native identity. Recorded parent IDs, V2 fork IDs, usage, and authoritative snapshot paths are retained. V1 parent IDs do not distinguish forks from children. Pre-SQLite JSON-only history is not supported. |
94
94
  | Claude Code | SDK conversation-chain parsing with read-only local transcript discovery; legacy `~/.claude/transcripts/` envelopes | CLI and VS Code extension sessions, including IDE-prefixed prompts omitted by the SDK listing. Project transcripts take precedence over overlapping legacy exports. Preserves recorded message times and explicit subagent metadata. SDK-visible history can omit pre-compaction text. No inferred fork ancestry. File evidence requires a successful matching edit-tool result. |
95
95
  | Codex | Bounded streaming reads of active/archived JSONL, zstd/gzip archives, and suffixed rollout copies | Native session IDs deduplicate copies; active uncompressed rollouts take precedence. Explicit recorded fork/parent fields; completed file-change events. Mirrored event text is not imported twice. Store-only/cloud-only history and ordinary ChatGPT desktop/web chats are not imported. |
96
96
  | T3 Code | Private read-only snapshot of the local server's `~/.t3/userdata/statev2.sqlite`; legacy `state.sqlite` fallback | T3 app threads retain their own titles, messages, ordered activity, recorded forks/children, and worktree paths. Strong recorded provider-thread IDs group uniquely linked Codex, Claude Code, and OpenCode histories under one T3 map entry once user messages are imported, including partial histories. The inspector opens each linked provider's saved messages separately and shows explicit PR links recorded by T3, not PR mentions in conversation. Empty, pending, or ambiguous bindings retain separate entries. Legacy V1 provides partial text history. Attachments and checkpoint file snapshots are omitted. |
@@ -105,7 +105,7 @@ Onboarding closes automatically after a successful import and library refresh. I
105
105
  | Kilo Code | Extension task JSON | Same snapshot limitations as Roo Code. Choose the separate **Kilo CLI** source for `~/.local/share/kilo/kilo.db`. |
106
106
  | Continue | `~/.continue/sessions/*.json` and session index | IDE/CLI conversation snapshots and recorded tool messages. No inferred relationships or edit evidence. Missing message times stay unknown; attachments and transient tool UI state are omitted. |
107
107
 
108
- Source roots respect `CLAUDE_CONFIG_DIR` and `CODEX_HOME`. `SESSIONGRAPH_SERVICE_FILE` selects a local OpenCode service registration. Adapters never read authentication files or execute source configuration, hooks, or agents. Source formats can evolve: unsupported history is disclosed rather than fabricated.
108
+ Source roots respect `CLAUDE_CONFIG_DIR` and `CODEX_HOME`. OpenCode respects `XDG_DATA_HOME` and `OPENCODE_DB`; `SESSIONGRAPH_OPENCODE_HISTORY_DIR` or a saved source path can select a data directory or a specific SQLite file. A data directory includes `opencode.db` and channel-named `opencode-*.db` files. `SESSIONGRAPH_SERVICE_FILE` selects a local OpenCode service registration only for explicit launch/connection actions, not imports. Adapters never read authentication files or execute source configuration, hooks, or agents. Source formats can evolve: unsupported history is disclosed rather than fabricated.
109
109
 
110
110
  T3 Code discovery respects `T3CODE_HOME`. `SESSIONGRAPH_T3_CODE_HISTORY_DIR` can point to a T3 base directory, its `userdata` directory, or a specific SQLite file. T3 history on another machine must be imported by SessionGraph running on that machine or from an accessible local copy. The T3 source does not start its server or provider. When both T3 and a bound provider source are imported, the T3 thread is the visible conversation; provider sessions remain saved in SessionGraph's library. Source filters for a bound provider include its T3 threads. Opening a T3 thread in another harness uses a saved-context handoff; native T3 resume is not currently a launch destination.
111
111
 
@@ -113,6 +113,14 @@ See [extended source coverage](import-coverage.md) for all additional harness lo
113
113
 
114
114
  Claude Code's local VS Code extension uses the same transcript directory as its CLI: `~/.claude/projects` (`%USERPROFILE%\.claude\projects` on Windows), or `projects` under `CLAUDE_CONFIG_DIR`. A separate CLI installation is not required for import. History in WSL, SSH hosts, or dev containers must be accessible in the environment running SessionGraph.
115
115
 
116
+ #### Computer-wide Claude history discovery
117
+
118
+ By default, Claude Code discovery searches accessible folders across the computer, including other users' readable homes and mounted drives. It looks for `.claude` homes and renamed/custom homes with native `projects/<project>/<session UUID>.jsonl` layouts. Directory discovery reads names and filesystem metadata, not arbitrary file contents, settings, or credentials. Only selecting Claude Code for import reads the discovered conversations. Copies are deduplicated by native session ID; the newest transcript wins, with the current user's copy preferred on equal modification times. Other users' and relocated histories use saved-context handoffs rather than native resume.
119
+
120
+ The search advances in cached passes with a two-second or 100,000-entry budget, checked between filesystem operations; a slow OS operation can take longer. Refresh sessions (or enabled auto-import) continues an unfinished search while importing known locations. A completed search is cached for five minutes before restarting. Search progress lives only in the current process, so very large filesystems may need several refreshes in the running app. Limits of 100,000 directories, 1,000 history homes, and 128 directory levels prevent unbounded traversal; import file/message limits still apply. Symlinks, virtual Linux filesystems (`/dev`, `/proc`, `/sys`, `/run`), and macOS's duplicate `/System/Volumes` tree are not traversed. OS-protected or unreadable locations are skipped without administrator access or permission changes. **Import details** reports incomplete scans, permission skips, and limits; missing locations never erase saved history.
121
+
122
+ A saved custom source path or `CLAUDE_CONFIG_DIR` disables the computer-wide search and reads only that home. Use one to restrict discovery or import an accessible copy when permissions block the original. To set a path, see [custom source paths](cli.md#custom-paths). Arbitrarily named standalone exports outside a recognized Claude home are not automatically identified.
123
+
116
124
  ### Additional source locations
117
125
 
118
126
  - Gemini respects `GEMINI_CLI_HOME` as a replacement home directory. `SESSIONGRAPH_GEMINI_HOME` selects a `.gemini`-style directory containing `tmp/`.
@@ -160,7 +168,7 @@ SessionGraph's own SQLite database stores source selection, the auto-import pref
160
168
 
161
169
  Existing installations reuse libraries from earlier app versions in place, including saved sessions, source selection, search checkpoints, WAL files, and import locks. A current `sessiongraph.sqlite` library takes precedence if one already exists. Explicit data-directory overrides search only that directory. Previous environment settings remain supported as aliases; `SESSIONGRAPH_*` settings take precedence. Browser preferences and the last launch target also accept their previous storage keys when using the same origin.
162
170
 
163
- All parsing, deduplication, indexing, and visualization run on this computer. No telemetry, embeddings service, model inference, uploads, or remote fonts are used. Source histories are read-only. OpenCode uses its authenticated API; Cursor databases are parsed only from temporary private copies. The native app binds its backend to `127.0.0.1` on a random port with an ephemeral authentication cookie; imports from other origins are rejected. Source credentials stay in the backend.
171
+ All parsing, deduplication, indexing, and visualization run on this computer. No telemetry, embeddings service, model inference, uploads, or remote fonts are used. Source histories are read-only. OpenCode and Cursor databases are parsed only from temporary private copies; SQLite never opens the live source database. The native app binds its backend to `127.0.0.1` on a random port with an ephemeral authentication cookie; imports from other origins are rejected. Source credentials stay in the backend.
164
172
 
165
173
  The database is a local plaintext copy of imported conversation text, protected by filesystem permissions. It uses WAL journaling, versioned migrations, atomic session replacement, and a cross-process import lock. App bundles and npm tarballs contain only application assets, never your database. Opening a session in a destination app is a separate, explicit action; that app controls its own network behavior.
166
174
 
@@ -10,7 +10,7 @@ This table describes **the current importer**, not every capability of the harne
10
10
 
11
11
  | Harness | Messages | Tool calls/results | Changed files | Commit index | Workspace directory | Session links |
12
12
  | --- | --- | --- | --- | --- | --- | --- |
13
- | OpenCode V2 | ✅ | ✅ | ✅ snapshots / edits | ⚠️ confirmed executions | ✅ + move events | ✅ forks / children |
13
+ | OpenCode V1 / V2 SQLite | ✅ | ✅ | ✅ snapshots / edits | ⚠️ confirmed executions | ✅; V2 move events | ✅ recorded parents; V2 explicit forks |
14
14
  | Claude Code | ⚠️ SDK-visible chain | ✅ | ⚠️ successful edits | ⚠️ executions / native Git result | ✅ recorded cwd | ⚠️ children |
15
15
  | Codex | ✅ local rollouts | ✅ | ✅ completed patches | ⚠️ confirmed executions | ✅ header / turn cwd | ✅ forks / children |
16
16
  | T3 Code | ⚠️ V2 activity; V1 text | ⚠️ V2 only | ⚠️ actual-path changes | ⚠️ V2 executions | ✅ thread/worktree; per-command cwd conditional | ✅ explicit links + provider bindings |
@@ -88,7 +88,7 @@ The index stores only **created**, **amended**, and **cherry-picked** actions wi
88
88
 
89
89
  ## Recorded usage and metadata audit
90
90
 
91
- Audit date: **2026-11-27**. This is a code/schema and synthetic-fixture audit, not a claim that every installed harness version has been tested against live history. References are the pinned [Tokscale format parsers](https://github.com/junhoyeo/tokscale/tree/8d9b509c4d719f3385e3c2464b770dc5257cb354/crates/tokscale-core/src/sessions), the [OpenCode V2 API](https://opencode.ai/docs/api), and its [OpenAPI schema](https://opencode.ai/docs/openapi.json).
91
+ Audit date: **2026-11-27**. This is a code/schema and synthetic-fixture audit, not a claim that every installed harness version has been tested against live history. References are the pinned [Tokscale format parsers](https://github.com/junhoyeo/tokscale/tree/8d9b509c4d719f3385e3c2464b770dc5257cb354/crates/tokscale-core/src/sessions), the [OpenCode V1 SQLite schema](https://github.com/anomalyco/opencode/blob/v1.2.0/packages/opencode/src/session/session.sql.ts), the [OpenCode V2 SQLite schema](https://github.com/anomalyco/opencode/blob/5410c21e3ea8a2e910157ba876ca1c41d3d798d9/packages/core/src/session/sql.ts), and its [OpenAPI schema](https://opencode.ai/docs/openapi.json).
92
92
 
93
93
  ### Usage now retained
94
94
 
@@ -96,7 +96,7 @@ Recorded totals are available to playback and node sizing for **every source**,
96
96
 
97
97
  | Input family | Decoded usage | Important limits |
98
98
  | --- | --- | --- |
99
- | OpenCode V2 | Session and assistant input/output/cache/reasoning and native cost | Uses the authenticated read API only. Reasoning is not added twice. |
99
+ | OpenCode V1 / V2 SQLite | V2 session totals and V1/V2 assistant input/output/cache/reasoning and native cost | Private read-only database and WAL snapshots; no running service required. V1 step-finish counters are not added to assistant totals. Reasoning is not added twice. |
100
100
  | Claude Code | Raw assistant-envelope usage, including retained records outside the SDK-visible chain | Native response IDs deduplicate repeated envelopes. Separately attributed subagents are excluded from the parent. No USD cost is calculated from pricing tables. |
101
101
  | Codex | Latest recorded cumulative `total_token_usage`, plus response usage when present | Cumulative snapshots are not summed. Usage-only clocks do not extend conversation activity. Earlier totals are marked partial if the latest parsed snapshot has only a breakdown. |
102
102
  | Gemini / Qwen | Recorded native totals, cached input, thoughts/reasoning and tool-token counters | Late Gemini patches are retained. Qwen zero-total placeholders remain unknown; provider-dependent overlaps are not guessed. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessiongraph",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -27,11 +27,11 @@
27
27
  "README.md"
28
28
  ],
29
29
  "optionalDependencies": {
30
- "sessiongraph-app-darwin-arm64": "1.0.18",
31
- "sessiongraph-app-darwin-x64": "1.0.18",
32
- "sessiongraph-app-linux-arm64": "1.0.18",
33
- "sessiongraph-app-linux-x64": "1.0.18",
34
- "sessiongraph-app-win32-x64": "1.0.18"
30
+ "sessiongraph-app-darwin-arm64": "1.0.20",
31
+ "sessiongraph-app-darwin-x64": "1.0.20",
32
+ "sessiongraph-app-linux-arm64": "1.0.20",
33
+ "sessiongraph-app-linux-x64": "1.0.20",
34
+ "sessiongraph-app-win32-x64": "1.0.20"
35
35
  },
36
36
  "type": "module",
37
37
  "engines": {
@@ -84,5 +84,5 @@
84
84
  "zod": "4.6.7"
85
85
  },
86
86
  "packageManager": "pnpm@11.10.0",
87
- "sessionGraphCommit": "84ff9a1241da9f53e668e5162f41d00b83357ec7"
87
+ "sessionGraphCommit": "c149ab5e094f654fcc05f7954432528435f3470a"
88
88
  }