sessiongraph-app-win32-x64 1.0.0 → 1.0.1

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-win32-x64",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Explore & visualize all your LLM sessions — win32/x64",
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": "5cfead10aa54c81c46ed55bf6ab2725fa5c14cb7",
13
+ "sessionGraphCommit": "bce4ddd536316e63c4e7ed5bb8e87281e1712cd0",
14
14
  "os": [
15
15
  "win32"
16
16
  ],
Binary file
@@ -31802,15 +31802,15 @@ var EventReadError = class extends Error {
31802
31802
  }
31803
31803
  status;
31804
31804
  };
31805
- var filters = { all: "1", messages: "kind='message'", tools: "kind IN ('tool_call','tool_result')", events: "kind NOT IN ('message','tool_call','tool_result')", untimed: "time IS NULL" };
31805
+ var filters = { all: "1", messages: "kind='message' AND role IN ('user','assistant')", tools: "kind IN ('tool_call','tool_result')", events: "kind NOT IN ('message','tool_call','tool_result')", untimed: "time IS NULL" };
31806
31806
  function coverage(db2, session) {
31807
31807
  const row = db2.prepare("SELECT * FROM timeline_coverage WHERE session_id=?").get(session.id);
31808
31808
  return { revision: String(row?.revision || "pending"), partial: Boolean(row?.partial) || session.coverage?.history !== "complete", note: [row?.note, session.coverage?.note].filter(Boolean).join(" ") || void 0 };
31809
31809
  }
31810
31810
  function readEventMarkers(db2, session) {
31811
31811
  const end = Math.max(session.created, session.activity?.lastMessageAt || session.created);
31812
- const totals = db2.prepare("SELECT count(*) AS total, count(*) FILTER (WHERE time IS NULL) AS untimed, count(*) FILTER (WHERE time<? OR time>?) AS outside FROM timeline_items WHERE session_id=?").get(session.created, end, session.id);
31813
- const rows = db2.prepare(`SELECT ${summaryColumns} FROM timeline_items WHERE session_id=? AND time>=? AND time<=? ORDER BY time DESC,ordinal DESC LIMIT 2000`).all(session.id, session.created, end);
31812
+ const totals = db2.prepare(`SELECT count(*) AS total, count(*) FILTER (WHERE time IS NULL) AS untimed, count(*) FILTER (WHERE time<? OR time>?) AS outside FROM timeline_items WHERE session_id=? AND (${filters.messages})`).get(session.created, end, session.id);
31813
+ const rows = db2.prepare(`SELECT ${summaryColumns} FROM timeline_items WHERE session_id=? AND (${filters.messages}) AND time>=? AND time<=? ORDER BY time DESC,ordinal DESC LIMIT 2000`).all(session.id, session.created, end);
31814
31814
  return { sessionID: session.id, ...coverage(db2, session), items: rows.reverse().map(eventSummary), total: Number(totals.total), untimed: Number(totals.untimed), outsideLifetime: Number(totals.outside), limited: Number(totals.total) - Number(totals.untimed) - Number(totals.outside) > rows.length };
31815
31815
  }
31816
31816
  function readEvents(db2, session, options = {}) {
@@ -31909,11 +31909,11 @@ var DEFAULT_VIEW_STATE = Object.freeze({
31909
31909
  sourceID: "",
31910
31910
  projectID: "",
31911
31911
  directory: "",
31912
- days: 90,
31912
+ days: 0,
31913
31913
  fromDate: "",
31914
31914
  toDate: "",
31915
31915
  includeChildren: true,
31916
- includeArchived: true
31916
+ includeArchived: false
31917
31917
  });
31918
31918
  var validDate = (value) => typeof value === "string" && /^\d{4}-\d{2}-\d{2}$/.test(value) && Number.isFinite(Date.parse(value)) && new Date(value).toISOString().slice(0, 10) === value;
31919
31919
  function normalizeViewState(value) {
@@ -1 +1 @@
1
- import{i as a,R as i,C as o}from"./index-BiBqLNvd.js";class l extends i{constructor(e){super(e.rid),this.available=!0,this.currentVersion=e.currentVersion,this.version=e.version,this.date=e.date,this.body=e.body,this.rawJson=e.rawJson}async download(e,n){const d=new o;e&&(d.onmessage=e);const r=await a("plugin:updater|download",{onEvent:d,rid:this.rid,...n,headers:t(n?.headers)});await this.downloadedBytes?.close().catch(()=>{}),this.downloadedBytes=new i(r)}async install(e){if(!this.downloadedBytes)throw new Error("Update.install called before Update.download");await a("plugin:updater|install",{updateRid:this.rid,bytesRid:this.downloadedBytes.rid,...e}),this.downloadedBytes=void 0}async downloadAndInstall(e,n){const d=new o;e&&(d.onmessage=e),await a("plugin:updater|download_and_install",{onEvent:d,rid:this.rid,...n,headers:t(n?.headers)})}async close(){await this.downloadedBytes?.close(),await super.close()}}async function w(s){const e=await a("plugin:updater|check",{...s,headers:t(s?.headers)});return e?new l(e):null}function t(s){return s?Array.from(new Headers(s).entries()):void 0}export{l as Update,w as check};
1
+ import{f as a,R as i,C as o}from"./index-C9rv5Uuu.js";class l extends i{constructor(e){super(e.rid),this.available=!0,this.currentVersion=e.currentVersion,this.version=e.version,this.date=e.date,this.body=e.body,this.rawJson=e.rawJson}async download(e,n){const d=new o;e&&(d.onmessage=e);const r=await a("plugin:updater|download",{onEvent:d,rid:this.rid,...n,headers:t(n?.headers)});await this.downloadedBytes?.close().catch(()=>{}),this.downloadedBytes=new i(r)}async install(e){if(!this.downloadedBytes)throw new Error("Update.install called before Update.download");await a("plugin:updater|install",{updateRid:this.rid,bytesRid:this.downloadedBytes.rid,...e}),this.downloadedBytes=void 0}async downloadAndInstall(e,n){const d=new o;e&&(d.onmessage=e),await a("plugin:updater|download_and_install",{onEvent:d,rid:this.rid,...n,headers:t(n?.headers)})}async close(){await this.downloadedBytes?.close(),await super.close()}}async function w(s){const e=await a("plugin:updater|check",{...s,headers:t(s?.headers)});return e?new l(e):null}function t(s){return s?Array.from(new Headers(s).entries()):void 0}export{l as Update,w as check};