sessiongraph-app-darwin-arm64 1.0.24 → 1.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessiongraph-app-darwin-arm64",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Explore & visualize all your LLM sessions — darwin/arm64",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "access": "public",
11
11
  "registry": "https://registry.npmjs.org/"
12
12
  },
13
- "sessionGraphCommit": "503a28e2ecdb17cb475210c2cd999eb7751cf952",
13
+ "sessionGraphCommit": "ea682d0595c4a8f8fd31a1f7c29fba0580c9c714",
14
14
  "os": [
15
15
  "darwin"
16
16
  ],
@@ -17,9 +17,9 @@
17
17
  <key>CFBundlePackageType</key>
18
18
  <string>APPL</string>
19
19
  <key>CFBundleShortVersionString</key>
20
- <string>1.0.24</string>
20
+ <string>1.0.26</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>1.0.24</string>
22
+ <string>1.0.26</string>
23
23
  <key>CSResourcesFileMapped</key>
24
24
  <true/>
25
25
  <key>LSApplicationCategoryType</key>
@@ -1 +1 @@
1
- {"version":"1.0.24","buildID":"9dcb7c4163b23b009d3409a792fc3ea1f75b469ec6ee5ff589ceb6ae3741c872"}
1
+ {"version":"1.0.26","buildID":"daf2861a5c8ac495c9c00eb993140bf450964f264bce63868f9ab5e346bd4fbe"}
@@ -54750,15 +54750,6 @@ var init_harness_files = __esm({
54750
54750
  { id: "junie", name: "Junie", roots: () => [homePath(".junie/sessions")], match: (p) => p.endsWith("/events.jsonl"), parse: junieHistory, description: "Local agent event history \xB7 partial conversation coverage" },
54751
54751
  { id: "augment", name: "Augment Code", roots: () => [homePath(".augment/sessions")], match: (p) => p.endsWith(".json"), parse: augmentHistory, description: "Local exchange records \xB7 partial conversation coverage" },
54752
54752
  { id: "fx", name: "Fx", roots: () => [homePath(".fx/sessions")], match: (p) => p.endsWith("/usage-v2.json"), extras: (p) => [join23(dirname11(p), "session.json")], parse: fxHistory, history: false, description: "Session metadata only" },
54753
- { id: "minimax-code", name: "MiniMax Code", roots: () => [join23(process.env.TOKSCALE_HEADLESS_DIR || tokscalePath("headless"), "mcode")], parse(p, f) {
54754
- const value = f.get(p), { rows: rows2 } = jsonLines(value), ids = new Set(rows2.map((r) => text3(r.sessionId)).filter(Boolean));
54755
- if (ids.size !== 1) throw new Error("Headless capture needs one explicit session identity.");
54756
- const messages = rows2.flatMap((r, i) => {
54757
- const m = message(object4(r.message), text3(r.message?.id) || `record:${i}`);
54758
- return m ? [m] : [];
54759
- });
54760
- return { nativeID: [...ids][0], messages, partial: true, note: "Captured messages only; prompts may be missing." };
54761
- } },
54762
54753
  { id: "opencodereview", name: "OpenCodeReview", roots: () => [homePath(".opencodereview/sessions")], parse(p, f) {
54763
54754
  const { rows: rows2 } = jsonLines(f.get(p)), header = rows2.find((r) => r.type === "session_start");
54764
54755
  if (!header) throw new Error("Unsupported review session.");
@@ -55174,7 +55165,7 @@ function protoFields(value) {
55174
55165
  }
55175
55166
  return fields3;
55176
55167
  }
55177
- var nested, antigravityDatabaseAdapters, antigravityCacheAdapter;
55168
+ var nested, antigravityDatabaseAdapters;
55178
55169
  var init_harness_metadata = __esm({
55179
55170
  "server/adapters/harness-metadata.ts"() {
55180
55171
  "use strict";
@@ -55208,22 +55199,6 @@ var init_harness_metadata = __esm({
55208
55199
  return { nativeID: basename14(path, ".db"), messages: [], partial: true, session: { created, directory: directory3 }, note: "Session metadata only." };
55209
55200
  }
55210
55201
  }));
55211
- antigravityCacheAdapter = localFileAdapter({
55212
- id: "antigravity",
55213
- name: "Antigravity",
55214
- description: "Cached session metadata only",
55215
- capabilities: { history: false, forks: false, children: false, files: false },
55216
- roots: harnessRoots("antigravity", () => [tokscalePath("antigravity-cache/sessions")]),
55217
- match: (p) => p.endsWith(".jsonl"),
55218
- parse(path, files) {
55219
- const { rows: rows2 } = jsonLines(files.get(path));
55220
- const ids = new Set(rows2.map((r) => text3(r.sessionId)).filter(Boolean));
55221
- if (ids.size !== 1) throw new Error("Unsupported Antigravity cache identity.");
55222
- const created = rows2.map((r) => time3(r.timestamp)).filter(Boolean).sort((a, b) => a - b)[0];
55223
- if (!created) throw new Error("Antigravity cache has no recorded date.");
55224
- return { nativeID: [...ids][0], messages: [], partial: true, session: { created, model: text3(rows2.find((r) => r.modelId)?.modelId) || "Unknown model" }, note: "Session metadata only. Date based on first recorded usage." };
55225
- }
55226
- });
55227
55202
  }
55228
55203
  });
55229
55204
 
@@ -55251,7 +55226,7 @@ var init_adapters = __esm({
55251
55226
  init_harness_databases();
55252
55227
  init_harness_metadata();
55253
55228
  init_sqlite_histories();
55254
- extra = [...databaseHarnessAdapters, ...fileHarnessAdapters, antigravityCacheAdapter, ...antigravityDatabaseAdapters];
55229
+ extra = [...databaseHarnessAdapters, ...fileHarnessAdapters, ...antigravityDatabaseAdapters];
55255
55230
  grouped = /* @__PURE__ */ new Map();
55256
55231
  for (const adapter of extra) grouped.set(adapter.id, [...grouped.get(adapter.id) || [], adapter]);
55257
55232
  adapters = [opencodeAdapter, claudeAdapter, codexAdapter, t3CodeAdapter, cursorAdapter, geminiAdapter, qwenAdapter, piAdapter, copilotAdapter, copilotChatAdapter, clineAdapter, rooAdapter, kiloAdapter, continueAdapter, ...[...grouped.values()].map((parts) => parts.length === 1 ? parts[0] : combineAdapters(parts))];
@@ -66549,7 +66524,7 @@ var SessionGraphStore = class {
66549
66524
  this.db = db2 = new DatabaseSync(path);
66550
66525
  this.db.exec("PRAGMA busy_timeout=5000;");
66551
66526
  const version2 = Number(this.db.prepare("PRAGMA user_version").get().user_version);
66552
- if (version2 > 8) throw new LibraryError("LIBRARY_VERSION", "This library requires a newer version of SessionGraph.");
66527
+ if (version2 > 9) throw new LibraryError("LIBRARY_VERSION", "This library requires a newer version of SessionGraph.");
66553
66528
  if (path !== ":memory:") chmodSync(path, 384);
66554
66529
  this.db.exec("PRAGMA journal_mode=WAL; PRAGMA foreign_keys=ON;");
66555
66530
  this.initialize(version2);
@@ -66626,15 +66601,7 @@ var SessionGraphStore = class {
66626
66601
  if (version2 < 6) {
66627
66602
  this.db.exec("BEGIN IMMEDIATE");
66628
66603
  try {
66629
- const retired = /* @__PURE__ */ new Set(["reasonix", "trae", "warp", "lm-studio", "hindsight"]);
66630
- const selected = this.setting("selected");
66631
- if (selected) this.setting("selected", selected.filter((id3) => !retired.has(id3)));
66632
- const paths2 = this.setting("sourcePaths");
66633
- if (paths2) this.setting("sourcePaths", Object.fromEntries(Object.entries(paths2).filter(([id3]) => !retired.has(id3))));
66634
- const view = this.setting("viewState");
66635
- if (view && typeof view.sourceID === "string" && retired.has(view.sourceID)) this.setting("viewState", { ...view, sourceID: "" });
66636
- const remove2 = this.db.prepare("DELETE FROM sources WHERE id=?");
66637
- for (const id3 of retired) remove2.run(id3);
66604
+ this.retireSources(["reasonix", "trae", "warp", "lm-studio", "hindsight"]);
66638
66605
  this.db.exec("PRAGMA user_version=6; COMMIT");
66639
66606
  } catch (error62) {
66640
66607
  this.db.exec("ROLLBACK");
@@ -66664,8 +66631,30 @@ var SessionGraphStore = class {
66664
66631
  throw error62;
66665
66632
  }
66666
66633
  }
66634
+ if (version2 < 9) {
66635
+ this.db.exec("BEGIN IMMEDIATE");
66636
+ try {
66637
+ this.retireSources(["antigravity", "minimax-code"]);
66638
+ this.db.exec("PRAGMA user_version=9; COMMIT");
66639
+ } catch (error62) {
66640
+ this.db.exec("ROLLBACK");
66641
+ throw error62;
66642
+ }
66643
+ }
66667
66644
  if (!this.setting("libraryID")) this.setting("libraryID", randomUUID2());
66668
66645
  }
66646
+ /** Drops selections, custom paths, status records and active filters for removed sources. */
66647
+ retireSources(ids) {
66648
+ const retired = new Set(ids);
66649
+ const selected = this.setting("selected");
66650
+ if (selected) this.setting("selected", selected.filter((id3) => !retired.has(id3)));
66651
+ const paths2 = this.setting("sourcePaths");
66652
+ if (paths2) this.setting("sourcePaths", Object.fromEntries(Object.entries(paths2).filter(([id3]) => !retired.has(id3))));
66653
+ const view = this.setting("viewState");
66654
+ if (view && typeof view.sourceID === "string" && retired.has(view.sourceID)) this.setting("viewState", { ...view, sourceID: "" });
66655
+ const remove2 = this.db.prepare("DELETE FROM sources WHERE id=?");
66656
+ for (const id3 of retired) remove2.run(id3);
66657
+ }
66669
66658
  setting(key, value) {
66670
66659
  if (value !== void 0) this.db.prepare("INSERT INTO settings VALUES (?, ?) ON CONFLICT(key) DO UPDATE SET value=excluded.value").run(key, JSON.stringify(value));
66671
66660
  const row = this.db.prepare("SELECT value FROM settings WHERE key=?").get(key);
@@ -33630,15 +33630,6 @@ var definitions = [
33630
33630
  { id: "junie", name: "Junie", roots: () => [homePath(".junie/sessions")], match: (p) => p.endsWith("/events.jsonl"), parse: junieHistory, description: "Local agent event history \xB7 partial conversation coverage" },
33631
33631
  { id: "augment", name: "Augment Code", roots: () => [homePath(".augment/sessions")], match: (p) => p.endsWith(".json"), parse: augmentHistory, description: "Local exchange records \xB7 partial conversation coverage" },
33632
33632
  { id: "fx", name: "Fx", roots: () => [homePath(".fx/sessions")], match: (p) => p.endsWith("/usage-v2.json"), extras: (p) => [join23(dirname9(p), "session.json")], parse: fxHistory, history: false, description: "Session metadata only" },
33633
- { id: "minimax-code", name: "MiniMax Code", roots: () => [join23(process.env.TOKSCALE_HEADLESS_DIR || tokscalePath("headless"), "mcode")], parse(p, f) {
33634
- const value = f.get(p), { rows: rows2 } = jsonLines(value), ids = new Set(rows2.map((r) => text(r.sessionId)).filter(Boolean));
33635
- if (ids.size !== 1) throw new Error("Headless capture needs one explicit session identity.");
33636
- const messages = rows2.flatMap((r, i) => {
33637
- const m = message(object3(r.message), text(r.message?.id) || `record:${i}`);
33638
- return m ? [m] : [];
33639
- });
33640
- return { nativeID: [...ids][0], messages, partial: true, note: "Captured messages only; prompts may be missing." };
33641
- } },
33642
33633
  { id: "opencodereview", name: "OpenCodeReview", roots: () => [homePath(".opencodereview/sessions")], parse(p, f) {
33643
33634
  const { rows: rows2 } = jsonLines(f.get(p)), header = rows2.find((r) => r.type === "session_start");
33644
33635
  if (!header) throw new Error("Unsupported review session.");
@@ -34064,25 +34055,9 @@ var antigravityDatabaseAdapters = ["antigravity-cli", "antigravity-extension"].m
34064
34055
  return { nativeID: basename11(path, ".db"), messages: [], partial: true, session: { created, directory: directory3 }, note: "Session metadata only." };
34065
34056
  }
34066
34057
  }));
34067
- var antigravityCacheAdapter = localFileAdapter({
34068
- id: "antigravity",
34069
- name: "Antigravity",
34070
- description: "Cached session metadata only",
34071
- capabilities: { history: false, forks: false, children: false, files: false },
34072
- roots: harnessRoots("antigravity", () => [tokscalePath("antigravity-cache/sessions")]),
34073
- match: (p) => p.endsWith(".jsonl"),
34074
- parse(path, files) {
34075
- const { rows: rows2 } = jsonLines(files.get(path));
34076
- const ids = new Set(rows2.map((r) => text(r.sessionId)).filter(Boolean));
34077
- if (ids.size !== 1) throw new Error("Unsupported Antigravity cache identity.");
34078
- const created = rows2.map((r) => time(r.timestamp)).filter(Boolean).sort((a, b) => a - b)[0];
34079
- if (!created) throw new Error("Antigravity cache has no recorded date.");
34080
- return { nativeID: [...ids][0], messages: [], partial: true, session: { created, model: text(rows2.find((r) => r.modelId)?.modelId) || "Unknown model" }, note: "Session metadata only. Date based on first recorded usage." };
34081
- }
34082
- });
34083
34058
 
34084
34059
  // server/adapters/index.ts
34085
- var extra = [...databaseHarnessAdapters, ...fileHarnessAdapters, antigravityCacheAdapter, ...antigravityDatabaseAdapters];
34060
+ var extra = [...databaseHarnessAdapters, ...fileHarnessAdapters, ...antigravityDatabaseAdapters];
34086
34061
  var grouped = /* @__PURE__ */ new Map();
34087
34062
  for (const adapter of extra) grouped.set(adapter.id, [...grouped.get(adapter.id) || [], adapter]);
34088
34063
  var adapters = [opencodeAdapter, claudeAdapter, codexAdapter, t3CodeAdapter, cursorAdapter, geminiAdapter, qwenAdapter, piAdapter, copilotAdapter, copilotChatAdapter, clineAdapter, rooAdapter, kiloAdapter, continueAdapter, ...[...grouped.values()].map((parts) => parts.length === 1 ? parts[0] : combineAdapters(parts))];
@@ -34655,7 +34630,7 @@ var SessionGraphStore = class {
34655
34630
  this.db = db2 = new DatabaseSync3(path);
34656
34631
  this.db.exec("PRAGMA busy_timeout=5000;");
34657
34632
  const version = Number(this.db.prepare("PRAGMA user_version").get().user_version);
34658
- if (version > 8) throw new LibraryError("LIBRARY_VERSION", "This library requires a newer version of SessionGraph.");
34633
+ if (version > 9) throw new LibraryError("LIBRARY_VERSION", "This library requires a newer version of SessionGraph.");
34659
34634
  if (path !== ":memory:") chmodSync3(path, 384);
34660
34635
  this.db.exec("PRAGMA journal_mode=WAL; PRAGMA foreign_keys=ON;");
34661
34636
  this.initialize(version);
@@ -34732,15 +34707,7 @@ var SessionGraphStore = class {
34732
34707
  if (version < 6) {
34733
34708
  this.db.exec("BEGIN IMMEDIATE");
34734
34709
  try {
34735
- const retired = /* @__PURE__ */ new Set(["reasonix", "trae", "warp", "lm-studio", "hindsight"]);
34736
- const selected = this.setting("selected");
34737
- if (selected) this.setting("selected", selected.filter((id2) => !retired.has(id2)));
34738
- const paths2 = this.setting("sourcePaths");
34739
- if (paths2) this.setting("sourcePaths", Object.fromEntries(Object.entries(paths2).filter(([id2]) => !retired.has(id2))));
34740
- const view = this.setting("viewState");
34741
- if (view && typeof view.sourceID === "string" && retired.has(view.sourceID)) this.setting("viewState", { ...view, sourceID: "" });
34742
- const remove2 = this.db.prepare("DELETE FROM sources WHERE id=?");
34743
- for (const id2 of retired) remove2.run(id2);
34710
+ this.retireSources(["reasonix", "trae", "warp", "lm-studio", "hindsight"]);
34744
34711
  this.db.exec("PRAGMA user_version=6; COMMIT");
34745
34712
  } catch (error) {
34746
34713
  this.db.exec("ROLLBACK");
@@ -34770,8 +34737,30 @@ var SessionGraphStore = class {
34770
34737
  throw error;
34771
34738
  }
34772
34739
  }
34740
+ if (version < 9) {
34741
+ this.db.exec("BEGIN IMMEDIATE");
34742
+ try {
34743
+ this.retireSources(["antigravity", "minimax-code"]);
34744
+ this.db.exec("PRAGMA user_version=9; COMMIT");
34745
+ } catch (error) {
34746
+ this.db.exec("ROLLBACK");
34747
+ throw error;
34748
+ }
34749
+ }
34773
34750
  if (!this.setting("libraryID")) this.setting("libraryID", randomUUID2());
34774
34751
  }
34752
+ /** Drops selections, custom paths, status records and active filters for removed sources. */
34753
+ retireSources(ids) {
34754
+ const retired = new Set(ids);
34755
+ const selected = this.setting("selected");
34756
+ if (selected) this.setting("selected", selected.filter((id2) => !retired.has(id2)));
34757
+ const paths2 = this.setting("sourcePaths");
34758
+ if (paths2) this.setting("sourcePaths", Object.fromEntries(Object.entries(paths2).filter(([id2]) => !retired.has(id2))));
34759
+ const view = this.setting("viewState");
34760
+ if (view && typeof view.sourceID === "string" && retired.has(view.sourceID)) this.setting("viewState", { ...view, sourceID: "" });
34761
+ const remove2 = this.db.prepare("DELETE FROM sources WHERE id=?");
34762
+ for (const id2 of retired) remove2.run(id2);
34763
+ }
34775
34764
  setting(key, value) {
34776
34765
  if (value !== void 0) this.db.prepare("INSERT INTO settings VALUES (?, ?) ON CONFLICT(key) DO UPDATE SET value=excluded.value").run(key, JSON.stringify(value));
34777
34766
  const row = this.db.prepare("SELECT value FROM settings WHERE key=?").get(key);
@@ -18,11 +18,11 @@
18
18
  </data>
19
19
  <key>Resources/resources/cli-package.json</key>
20
20
  <data>
21
- yskbF2uVxtZD9QkhhTnSiNe5DIY=
21
+ 8q7LfIHbtDdsPIIdNmizioEzdVo=
22
22
  </data>
23
23
  <key>Resources/resources/cli.mjs</key>
24
24
  <data>
25
- DAdCXOJsfrlsXTNOSfUpibhOO1w=
25
+ RkEyxgEwcKBGmVP3uUk8s/5Z9lE=
26
26
  </data>
27
27
  <key>Resources/resources/install-cli.mjs</key>
28
28
  <data>
@@ -34,7 +34,7 @@
34
34
  </data>
35
35
  <key>Resources/resources/server.mjs</key>
36
36
  <data>
37
- k6qKL5xtSPXzgA8aBIsg4oi39V4=
37
+ KjEzYgJrlYWrFrQEtvvSbNUUbYQ=
38
38
  </data>
39
39
  <key>Resources/resources/web/apple-touch-icon.png</key>
40
40
  <data>
@@ -416,14 +416,14 @@
416
416
  <dict>
417
417
  <key>hash2</key>
418
418
  <data>
419
- zNhyfHHf9XudQAOBStnWa7xBoAAVt8liueOfCcT9OdE=
419
+ d9541Hn+INDRfFnH0aG9TlSNZ1Yyyd3GmqgqwxiQUs0=
420
420
  </data>
421
421
  </dict>
422
422
  <key>Resources/resources/cli.mjs</key>
423
423
  <dict>
424
424
  <key>hash2</key>
425
425
  <data>
426
- mDgqbjSTKQfu42/G2oiWKf7UMaCj+QMnFJlbfrLyd2Q=
426
+ /SuabxW0ayU7XXpnz0aim3X/25ZAsXzssEbttcD+B1U=
427
427
  </data>
428
428
  </dict>
429
429
  <key>Resources/resources/install-cli.mjs</key>
@@ -444,7 +444,7 @@
444
444
  <dict>
445
445
  <key>hash2</key>
446
446
  <data>
447
- jJmlYS9CsmTyqaZzCvF/KUdX1BmwoLSadPdZvfEx1G0=
447
+ gfk/r7C1BgFSzr9q6cWEiC0WHdP3vaGioDodbnpvysw=
448
448
  </data>
449
449
  </dict>
450
450
  <key>Resources/resources/web/apple-touch-icon.png</key>