sessiongraph 1.0.19 → 1.0.21

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
@@ -203,6 +203,12 @@ Paths can be configured before they become available.
203
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
@@ -71,6 +71,10 @@ pnpm start
71
71
 
72
72
  On first launch, choose the apps to import. Change that selection in **Settings → Sources** or **Manage sources** next to the source filter, then click **Import selected sources** / **Import updates**. The compact options show each app's icon, detection status, and saved count; hover for source details. **Refresh sessions** imports updates from your selected sources.
73
73
 
74
+ Each harness has its own **History location** section in Sources and the first-launch chooser. Paste an absolute history path (or `~/…`), then click **Save path**. The desktop app also offers **Browse…** for folders. Each section explains the expected layout; choose the history root, not the harness executable or a project working directory. Where supported, a SQLite file path can be pasted directly. **Automatic** removes the saved override and restores environment/default discovery, including Claude Code's computer-wide search when no `CLAUDE_CONFIG_DIR` is set. Cursor's location selects its CLI home; its separate IDE data override remains `SESSIONGRAPH_CURSOR_USER_DATA_DIR`.
75
+
76
+ Locations are saved per harness in the current library and shared with the CLI. Saving a location does not select a source or start an import; it preserves source selections, other locations, auto-import settings, and saved history. Detection is refreshed for that harness. Missing or unreadable paths can still be saved for later; the UI reports when no readable history is detected. Imports remain subject to OS permissions and keep previous history on failure.
77
+
74
78
  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
79
 
76
80
  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.
@@ -113,6 +117,14 @@ See [extended source coverage](import-coverage.md) for all additional harness lo
113
117
 
114
118
  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
119
 
120
+ #### Computer-wide Claude history discovery
121
+
122
+ 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.
123
+
124
+ 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.
125
+
126
+ 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.
127
+
116
128
  ### Additional source locations
117
129
 
118
130
  - Gemini respects `GEMINI_CLI_HOME` as a replacement home directory. `SESSIONGRAPH_GEMINI_HOME` selects a `.gemini`-style directory containing `tmp/`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessiongraph",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
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.19",
31
- "sessiongraph-app-darwin-x64": "1.0.19",
32
- "sessiongraph-app-linux-arm64": "1.0.19",
33
- "sessiongraph-app-linux-x64": "1.0.19",
34
- "sessiongraph-app-win32-x64": "1.0.19"
30
+ "sessiongraph-app-darwin-arm64": "1.0.21",
31
+ "sessiongraph-app-darwin-x64": "1.0.21",
32
+ "sessiongraph-app-linux-arm64": "1.0.21",
33
+ "sessiongraph-app-linux-x64": "1.0.21",
34
+ "sessiongraph-app-win32-x64": "1.0.21"
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": "6ca5fef0d05d2532ca7b077a7d8f10c49dd70f2c"
87
+ "sessionGraphCommit": "ca95f29a13f4595c4dc8628e2a831d0428ebb8b7"
88
88
  }