sessiongraph 1.0.14 → 1.0.15

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/PRIVACY.md CHANGED
@@ -54,7 +54,7 @@ New installations use:
54
54
  - **Windows:** `%LOCALAPPDATA%/SessionGraph/sessiongraph.sqlite`
55
55
  - **Linux:** `$XDG_DATA_HOME/sessiongraph/sessiongraph.sqlite`, defaulting to `~/.local/share/sessiongraph/sessiongraph.sqlite`
56
56
 
57
- `SESSIONGRAPH_DATA_DIR` overrides the location. Existing Session Atlas or Atlas libraries can be reused in place; see [storage resolution](docs/guide.md#local-storage-and-privacy). SQLite may also create `-wal` and `-shm` companion files. Saved-context Markdown files live in the library directory's `handoffs/` folder.
57
+ `SESSIONGRAPH_DATA_DIR` overrides the location. Existing libraries from earlier app versions can be reused in place; see [storage resolution](docs/guide.md#local-storage-and-privacy). SQLite may also create `-wal` and `-shm` companion files. Saved-context Markdown files live in the library directory's `handoffs/` folder.
58
58
 
59
59
  Optional desktop login credentials live in `account.json` beside the library. The backend writes this file with owner-only permissions where supported and never returns its bearer token to the UI. The file is not encrypted; protect it like other local credentials. Signing out revokes the token remotely and removes the file; if revocation fails, the app keeps it so you can retry. Publishing field preferences are saved in the local library.
60
60
 
@@ -30933,7 +30933,11 @@ function localFileAdapter(source) {
30933
30933
  let candidate = metadata2.get(path);
30934
30934
  if (!candidate || candidate.revision !== rev) {
30935
30935
  const history = await load(path, rev, before);
30936
- if (!history) continue;
30936
+ if (!history) {
30937
+ const nativeID = source.authoritativeIdentity?.(path);
30938
+ if (nativeID) blocked.add(identity(source.id, nativeID));
30939
+ continue;
30940
+ }
30937
30941
  const session = { ...blankSession(source.id, history.nativeID), ...history.session };
30938
30942
  session.id = identity(source.id, history.nativeID);
30939
30943
  session.nativeID = history.nativeID;
@@ -34853,7 +34857,7 @@ var SessionGraphStore = class {
34853
34857
  writeEvents(this.db, s.id, this.db.prepare("SELECT data FROM messages WHERE session_id=? ORDER BY ordinal").iterate(s.id));
34854
34858
  const commits = writeCommits(this.db, s);
34855
34859
  const activity = this.db.prepare(activitySQL).get(s.id);
34856
- this.db.prepare("UPDATE sessions SET metadata=?, imported_revision=? WHERE id=?").run(JSON.stringify({ ...s, activity, commits }), candidate.revision, s.id);
34860
+ this.db.prepare("UPDATE sessions SET metadata=?, imported_revision=?, locator=? WHERE id=?").run(JSON.stringify({ ...s, activity, commits }), candidate.revision, JSON.stringify(candidate.locator), s.id);
34857
34861
  this.db.prepare("DELETE FROM search_cache WHERE id=?").run(s.id);
34858
34862
  this.db.exec("COMMIT");
34859
34863
  } catch (error) {
@@ -35148,13 +35152,14 @@ var Importer = class {
35148
35152
  this.status.errors.push(...discovery.warnings);
35149
35153
  for (const project2 of discovery.projects) this.store.db.prepare("INSERT INTO projects VALUES (?,?,?) ON CONFLICT(id) DO UPDATE SET data=excluded.data").run(project2.id, adapter.id, JSON.stringify(project2));
35150
35154
  for (const candidate of seen.values()) {
35151
- this.store.upsert(candidate);
35152
35155
  const saved = this.store.getSession(candidate.session.id);
35153
35156
  const retry = !saved?.coverage?.importedAt || saved.coverage.note?.startsWith("Latest import failed:") || !this.store.commitsCurrent(candidate.session.id);
35154
35157
  if (!retry && saved?.revision === candidate.revision && this.store.revision(candidate.session.id) === candidate.revision) {
35158
+ this.store.upsert(candidate);
35155
35159
  this.status.unchanged++;
35156
35160
  continue;
35157
35161
  }
35162
+ if (!saved) this.store.upsert(candidate);
35158
35163
  try {
35159
35164
  const messages = /* @__PURE__ */ new Map();
35160
35165
  const cursors = /* @__PURE__ */ new Set();
@@ -30810,7 +30810,11 @@ function localFileAdapter(source) {
30810
30810
  let candidate = metadata2.get(path);
30811
30811
  if (!candidate || candidate.revision !== rev) {
30812
30812
  const history = await load(path, rev, before);
30813
- if (!history) continue;
30813
+ if (!history) {
30814
+ const nativeID = source.authoritativeIdentity?.(path);
30815
+ if (nativeID) blocked.add(identity(source.id, nativeID));
30816
+ continue;
30817
+ }
30814
30818
  const session = { ...blankSession(source.id, history.nativeID), ...history.session };
30815
30819
  session.id = identity(source.id, history.nativeID);
30816
30820
  session.nativeID = history.nativeID;
@@ -34308,7 +34312,7 @@ var SessionGraphStore = class {
34308
34312
  writeEvents(this.db, s.id, this.db.prepare("SELECT data FROM messages WHERE session_id=? ORDER BY ordinal").iterate(s.id));
34309
34313
  const commits = writeCommits(this.db, s);
34310
34314
  const activity = this.db.prepare(activitySQL).get(s.id);
34311
- this.db.prepare("UPDATE sessions SET metadata=?, imported_revision=? WHERE id=?").run(JSON.stringify({ ...s, activity, commits }), candidate.revision, s.id);
34315
+ this.db.prepare("UPDATE sessions SET metadata=?, imported_revision=?, locator=? WHERE id=?").run(JSON.stringify({ ...s, activity, commits }), candidate.revision, JSON.stringify(candidate.locator), s.id);
34312
34316
  this.db.prepare("DELETE FROM search_cache WHERE id=?").run(s.id);
34313
34317
  this.db.exec("COMMIT");
34314
34318
  } catch (error) {
@@ -34601,13 +34605,14 @@ var Importer = class {
34601
34605
  this.status.errors.push(...discovery.warnings);
34602
34606
  for (const project2 of discovery.projects) this.store.db.prepare("INSERT INTO projects VALUES (?,?,?) ON CONFLICT(id) DO UPDATE SET data=excluded.data").run(project2.id, adapter.id, JSON.stringify(project2));
34603
34607
  for (const candidate of seen.values()) {
34604
- this.store.upsert(candidate);
34605
34608
  const saved = this.store.getSession(candidate.session.id);
34606
34609
  const retry = !saved?.coverage?.importedAt || saved.coverage.note?.startsWith("Latest import failed:") || !this.store.commitsCurrent(candidate.session.id);
34607
34610
  if (!retry && saved?.revision === candidate.revision && this.store.revision(candidate.session.id) === candidate.revision) {
34611
+ this.store.upsert(candidate);
34608
34612
  this.status.unchanged++;
34609
34613
  continue;
34610
34614
  }
34615
+ if (!saved) this.store.upsert(candidate);
34611
34616
  try {
34612
34617
  const messages = /* @__PURE__ */ new Map();
34613
34618
  const cursors = /* @__PURE__ */ new Set();
package/docs/guide.md CHANGED
@@ -151,7 +151,7 @@ SessionGraph's own SQLite database stores source selection, the auto-import pref
151
151
  - Windows: `%LOCALAPPDATA%/SessionGraph/sessiongraph.sqlite`
152
152
  - Override with `SESSIONGRAPH_DATA_DIR`.
153
153
 
154
- Existing installations reuse `Session Atlas/session-atlas.sqlite` or `Atlas/atlas.sqlite` in place (lowercase directory names on Linux), 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. The previous `SESSION_ATLAS_*` settings and original `ATLAS_DATA_DIR` / `ATLAS_SERVICE_FILE` 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.
154
+ 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.
155
155
 
156
156
  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.
157
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessiongraph",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -25,11 +25,11 @@
25
25
  "README.md"
26
26
  ],
27
27
  "optionalDependencies": {
28
- "sessiongraph-app-darwin-arm64": "1.0.14",
29
- "sessiongraph-app-darwin-x64": "1.0.14",
30
- "sessiongraph-app-linux-arm64": "1.0.14",
31
- "sessiongraph-app-linux-x64": "1.0.14",
32
- "sessiongraph-app-win32-x64": "1.0.14"
28
+ "sessiongraph-app-darwin-arm64": "1.0.15",
29
+ "sessiongraph-app-darwin-x64": "1.0.15",
30
+ "sessiongraph-app-linux-arm64": "1.0.15",
31
+ "sessiongraph-app-linux-x64": "1.0.15",
32
+ "sessiongraph-app-win32-x64": "1.0.15"
33
33
  },
34
34
  "type": "module",
35
35
  "engines": {
@@ -75,5 +75,5 @@
75
75
  "vite": "^7.2.0"
76
76
  },
77
77
  "packageManager": "pnpm@11.10.0",
78
- "sessionGraphCommit": "c87091e2fdb0c2bc8c26e5e36411cf3d9ad6c687"
78
+ "sessionGraphCommit": "2fcc680e82c9ff9ceee8eba719488ca17ffb6dfa"
79
79
  }