sessiongraph-app-darwin-x64 1.0.9 → 1.0.11

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.
Files changed (33) hide show
  1. package/package.json +2 -2
  2. package/payload/SessionGraph.app/Contents/Info.plist +2 -2
  3. package/payload/SessionGraph.app/Contents/MacOS/sessiongraph +0 -0
  4. package/payload/SessionGraph.app/Contents/Resources/icon.icns +0 -0
  5. package/payload/SessionGraph.app/Contents/Resources/resources/server.mjs +6 -5
  6. package/payload/SessionGraph.app/Contents/Resources/resources/web/apple-touch-icon.png +0 -0
  7. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/external-links-CJk2OPKW.js +1 -0
  8. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/index-DOYyn-b_.js +1 -0
  9. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/{index-D-Ue5tsr.js → index-DPovJIlT.js} +13 -13
  10. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/{index-BPR2p22J.js → index-DhlS3ZId.js} +1 -1
  11. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/{index-B5TXKeav.js → index-JjTdnq9-.js} +1 -1
  12. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/index-cVgPCrFV.css +1 -0
  13. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/{mp4-worker-HFPra5JP.js → mp4-worker-Dc_1QUwS.js} +1 -1
  14. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/publishing-CkVIjq_f.js +25 -0
  15. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/publishing-VJhUmdPH.css +1 -0
  16. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/{scene-C2kTsRX_.js → scene-BXs8B_Kk.js} +1 -1
  17. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/share-jfOenMTA.js +7 -0
  18. package/payload/SessionGraph.app/Contents/Resources/resources/web/brand/icon.svg +1 -0
  19. package/payload/SessionGraph.app/Contents/Resources/resources/web/brand/lockup-light.svg +1 -0
  20. package/payload/SessionGraph.app/Contents/Resources/resources/web/brand/lockup.svg +1 -0
  21. package/payload/SessionGraph.app/Contents/Resources/resources/web/brand/mark-mono.svg +1 -0
  22. package/payload/SessionGraph.app/Contents/Resources/resources/web/brand/mark.svg +1 -0
  23. package/payload/SessionGraph.app/Contents/Resources/resources/web/favicon.ico +0 -0
  24. package/payload/SessionGraph.app/Contents/Resources/resources/web/favicon.svg +1 -1
  25. package/payload/SessionGraph.app/Contents/Resources/resources/web/index.html +4 -2
  26. package/payload/SessionGraph.app/Contents/Resources/resources/web/sources/gemini.svg +1 -1
  27. package/payload/SessionGraph.app/Contents/_CodeSignature/CodeResources +138 -61
  28. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/gif-worker-CghHEBpp.js +0 -1
  29. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/index-CWphmptD.js +0 -1
  30. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/index-fjc8n25E.css +0 -1
  31. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/publishing-D6ALMt6w.js +0 -12
  32. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/publishing-DG0jrGoB.css +0 -1
  33. package/payload/SessionGraph.app/Contents/Resources/resources/web/assets/share-BhzLwRnE.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessiongraph-app-darwin-x64",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Explore & visualize all your LLM sessions — darwin/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": "477079f037f7772fb9c1a55032d887d90a48333f",
13
+ "sessionGraphCommit": "2b7106950c7808ef16fdd489c0768d112d86f5e2",
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.9</string>
20
+ <string>1.0.11</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>1.0.9</string>
22
+ <string>1.0.11</string>
23
23
  <key>CSResourcesFileMapped</key>
24
24
  <true/>
25
25
  <key>LSApplicationCategoryType</key>
@@ -34703,11 +34703,12 @@ var PublishingClient = class {
34703
34703
  }
34704
34704
  async call(path, method = "GET", value, credential) {
34705
34705
  const response = await this.fetcher(`${SITE}/api/${path}`, { method, redirect: "error", signal: AbortSignal.timeout(25e3), headers: { "Content-Type": "application/json", "x-sessiongraph-action": "1", ...credential ? { Authorization: `Bearer ${credential.token}` } : {} }, ...value === void 0 ? {} : { body: JSON.stringify(value) } });
34706
- const data = await response.json().catch(() => ({}));
34706
+ const data = await response.json().catch(() => null);
34707
34707
  if (!response.ok) {
34708
34708
  if (response.status === 401) await rm5(this.credentialPath, { force: true });
34709
- throw new PublishingError(typeof data.error === "string" ? data.error : "The publishing service is unavailable.", response.status);
34709
+ throw new PublishingError(typeof data?.error === "string" ? data.error : "The publishing service is unavailable.", response.status);
34710
34710
  }
34711
+ if (!data || typeof data !== "object" || Array.isArray(data)) throw new PublishingError("The publishing service returned an unexpected response. Please try again.", 502);
34711
34712
  return data;
34712
34713
  }
34713
34714
  async status() {
@@ -34719,7 +34720,7 @@ var PublishingClient = class {
34719
34720
  if (this.busy) throw new PublishingError("Wait for the current account operation to finish.", 409);
34720
34721
  const verifier = token(), challenge = hash(verifier);
34721
34722
  this.pending = { verifier, expires: Date.now() + 6e5, nextPoll: 0 };
34722
- return { url: `${SITE}/account?device=${challenge}`, code: challenge.slice(0, 8).toUpperCase() };
34723
+ return { url: `${SITE}/api/auth/github?device=${challenge}`, code: challenge.slice(0, 8).toUpperCase() };
34723
34724
  }
34724
34725
  async poll() {
34725
34726
  const pending2 = this.pending;
@@ -34731,8 +34732,8 @@ var PublishingClient = class {
34731
34732
  pending2.nextPoll = Date.now() + 3e3;
34732
34733
  return this.exclusive(async () => {
34733
34734
  const result = await this.call("auth/device", "POST", { verifier: pending2.verifier });
34734
- if (this.pending !== pending2 || result.pending) return { pending: true };
34735
- if (typeof result.token !== "string" || !/^[\w-]{43}$/.test(result.token) || typeof result.username !== "string" || !Number.isFinite(Date.parse(result.expiresAt))) throw new PublishingError("Invalid login response.");
34735
+ if (this.pending !== pending2 || result.pending === true) return { pending: true };
34736
+ if (typeof result.token !== "string" || !/^[\w-]{43}$/.test(result.token) || typeof result.username !== "string" || !Number.isFinite(Date.parse(result.expiresAt)) || Date.parse(result.expiresAt) <= Date.now()) throw new PublishingError("The publishing service returned an invalid login response. Please try again.", 502);
34736
34737
  await this.save(result);
34737
34738
  this.pending = void 0;
34738
34739
  return { username: result.username };
@@ -0,0 +1 @@
1
+ import{n as u}from"./index-DPovJIlT.js";function p(t,e,c){t.open&&(t.addEventListener("close",()=>c(e),{once:!0}),t.close())}function b(t,e,c){const l=document.createDocumentFragment(),i=document.createElement("header");i.className="sharing-header";const s=document.createElement("h2");s.id=`sharing-${e}-title`,s.textContent="Share SessionGraph",t.setAttribute("aria-labelledby",s.id);const n=document.createElement("button");n.type="button",n.className="text-button",n.textContent="Close",n.setAttribute("aria-label","Close sharing"),n.onclick=()=>t.close(),i.append(s,n);const r=document.createElement("div");r.className="sharing-modes",r.setAttribute("role","group"),r.setAttribute("aria-label","Share method");for(const a of["publish","video"]){const o=document.createElement("button");o.type="button",o.dataset.shareMode=a,o.textContent=a==="publish"?"Publish":"Video",o.setAttribute("aria-pressed",String(a===e)),o.onclick=()=>{a!==e&&p(t,a,c)},r.append(o)}return l.append(i,r),l}async function d(t,e){await u("plugin:opener|open_url",{url:t,with:e})}function h(t){const e=new URL(t);if(!["https:","http:"].includes(e.protocol)||e.username||e.password)throw new Error("Choose a valid web link.");return e.href}async function f(t,e=d){await e(h(t))}export{h as e,f as o,b as s};
@@ -0,0 +1 @@
1
+ import{n as a,R as i,C as o}from"./index-DPovJIlT.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,s){const d=new o;e&&(d.onmessage=e);const r=await a("plugin:updater|download",{onEvent:d,rid:this.rid,...s,headers:t(s?.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,s){const d=new o;e&&(d.onmessage=e),await a("plugin:updater|download_and_install",{onEvent:d,rid:this.rid,...s,headers:t(s?.headers)})}async close(){await this.downloadedBytes?.close(),await super.close()}}async function w(n){const e=await a("plugin:updater|check",{...n,headers:t(n?.headers)});return e?new l(e):null}function t(n){return n?Array.from(new Headers(n).entries()):void 0}export{l as Update,w as check};