sessiongraph-app-win32-x64 1.0.15 → 1.0.16

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 (34) hide show
  1. package/package.json +2 -2
  2. package/payload/SessionGraph.exe +0 -0
  3. package/payload/resources/cli-launcher.mjs +59 -0
  4. package/payload/resources/cli-package.json +1 -0
  5. package/payload/resources/cli.mjs +70463 -0
  6. package/payload/resources/install-cli.mjs +204 -0
  7. package/payload/resources/server.mjs +1081 -376
  8. package/payload/resources/web/assets/index-C0jATzD9.css +1 -0
  9. package/payload/resources/web/assets/{index-D4P4hbvc.js → index-CFlNwG9H.js} +1 -1
  10. package/payload/resources/web/assets/index-D24Hz9MJ.js +180 -0
  11. package/payload/resources/web/assets/{index-Kotmn42s.js → index-D7udGrT1.js} +1 -1
  12. package/payload/resources/web/assets/{index-BLM-0yG6.js → index-U9QGDl1t.js} +1 -1
  13. package/payload/resources/web/assets/katagami-sans-DMv8PCo8.woff2 +0 -0
  14. package/payload/resources/web/assets/licenses/hugeicons.txt +21 -0
  15. package/payload/resources/web/assets/licenses/katagami.txt +93 -0
  16. package/payload/resources/web/assets/public-viewer-CyDoUT6s.css +1 -0
  17. package/payload/resources/web/assets/public-viewer-iQBchlbq.js +24 -0
  18. package/payload/resources/web/assets/scene-DmT4K5Nj.js +248 -0
  19. package/payload/resources/web/assets/share-DrezE0sG.js +7 -0
  20. package/payload/resources/web/assets/{three-D_1Qt16u.js → three-DDiuFd7k.js} +21 -21
  21. package/payload/resources/web/assets/{worker-C10U_apJ.js → worker-B9mWJfQ6.js} +1 -1
  22. package/payload/resources/web/index.html +2 -2
  23. package/payload/resources/web/assets/external-links-BmBkCsrt.js +0 -1
  24. package/payload/resources/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  25. package/payload/resources/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  26. package/payload/resources/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  27. package/payload/resources/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  28. package/payload/resources/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  29. package/payload/resources/web/assets/index-B1kyvo41.js +0 -175
  30. package/payload/resources/web/assets/index-Du0_nVjH.css +0 -1
  31. package/payload/resources/web/assets/publishing-CEvQPkO1.css +0 -1
  32. package/payload/resources/web/assets/publishing-D9CqkbeB.js +0 -23
  33. package/payload/resources/web/assets/scene-CTHyYtma.js +0 -139
  34. package/payload/resources/web/assets/share-Cw1E-ED9.js +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessiongraph-app-win32-x64",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
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": "2fcc680e82c9ff9ceee8eba719488ca17ffb6dfa",
13
+ "sessionGraphCommit": "9de832adfead10cdf9a3711df5e76177242e365d",
14
14
  "os": [
15
15
  "win32"
16
16
  ],
Binary file
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ import { readFileSync } from 'node:fs';
4
+ import { dirname, join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+ import { spawn } from 'node:child_process';
7
+ import { createInterface } from 'node:readline';
8
+
9
+ const require = createRequire(import.meta.url);
10
+ const root = dirname(dirname(fileURLToPath(import.meta.url)));
11
+ const pkg = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'));
12
+ const argv = process.argv.slice(2);
13
+ if (argv.length === 1 && ['--version', '-v'].includes(argv[0])) { console.log(`SessionGraph ${pkg.version}`); process.exit(0); }
14
+ if (Number(process.versions.node.split('.')[0]) < 24) { console.error('SessionGraph requires Node.js 24 or later for its launcher.'); process.exit(1); }
15
+ process.stdout.on('error', error => { if (error.code === 'EPIPE') process.exit(0); else throw error; });
16
+ if (argv.length && !(argv.length === 1 && argv[0] === '--browser')) {
17
+ try {
18
+ const { runCli } = await import('../dist-server/cli.mjs');
19
+ process.exitCode = await runCli(argv, { version: pkg.version });
20
+ } catch (error) {
21
+ const message = error.code === 'ERR_MODULE_NOT_FOUND' ? 'CLI bundle missing. Run pnpm build in a source checkout, or reinstall sessiongraph.' : error.message;
22
+ if (argv.includes('--json')) console.log(JSON.stringify({ schemaVersion: 1, command: 'cli', error: { code: 'STARTUP_FAILED', message } }));
23
+ else console.error(message);
24
+ process.exitCode = 1;
25
+ }
26
+ } else {
27
+ function open(target) {
28
+ const [file, params] = process.platform === 'darwin' ? ['open', [target]] : process.platform === 'win32' ? ['rundll32.exe', ['url.dll,FileProtocolHandler', target]] : ['xdg-open', [target]];
29
+ const child = spawn(file, params, { stdio: 'ignore', detached: true });
30
+ child.on('error', () => console.error('Could not open the application. Check your desktop environment.')); child.unref();
31
+ }
32
+ if (!argv.includes('--browser')) {
33
+ if (pkg.sessionGraphDesktopExecutable) {
34
+ const child = spawn(pkg.sessionGraphDesktopExecutable, [], { detached: true, stdio: 'ignore', env: { ...process.env, ...(process.platform === 'linux' ? { APPIMAGE_EXTRACT_AND_RUN: '1' } : {}) } });
35
+ child.on('error', (error) => { console.error(`SessionGraph could not open: ${error.message}`); process.exitCode = 1; });
36
+ child.unref();
37
+ } else {
38
+ const name = `${pkg.name}-app-${process.platform}-${process.arch}`;
39
+ try {
40
+ const manifest = require.resolve(`${name}/package.json`);
41
+ const app = join(dirname(manifest), 'payload', process.platform === 'darwin' ? 'SessionGraph.app' : process.platform === 'win32' ? 'SessionGraph.exe' : 'SessionGraph.AppImage');
42
+ if (process.platform === 'darwin') open(app);
43
+ else { const child = spawn(app, [], { detached: true, stdio: 'ignore', env: { ...process.env, ...(process.platform === 'linux' ? { APPIMAGE_EXTRACT_AND_RUN: '1' } : {}) } }); child.on('error', (e) => console.error(`SessionGraph could not open: ${e.message}`)); child.unref(); }
44
+ } catch {
45
+ console.error(`Desktop package ${name} is not installed.\nUse npx ${pkg.name} --browser, or install the matching desktop package.\nFor a source checkout: pnpm desktop:dev`); process.exitCode = 1;
46
+ }
47
+ }
48
+ } else {
49
+ const child = spawn(process.execPath, [join(root, 'dist-server', 'server.mjs'), '--assets', join(root, 'dist'), '--parent-pid', String(process.pid)], { stdio: ['ignore', 'pipe', 'inherit'] });
50
+ child.on('error', (e) => { console.error(e.message); process.exitCode = 1; });
51
+ const lines = createInterface({ input: child.stdout });
52
+ lines.once('line', (line) => {
53
+ try { const { url } = JSON.parse(line); open(url); console.log('SessionGraph is open in your browser. Press Ctrl+C to close the local server.'); }
54
+ catch { console.error('SessionGraph local server did not start.'); child.kill(); }
55
+ });
56
+ child.on('exit', (code) => { process.exitCode = code || 0; });
57
+ for (const signal of ['SIGINT', 'SIGTERM']) process.on(signal, () => { child.kill(); });
58
+ }
59
+ }
@@ -0,0 +1 @@
1
+ {"version":"1.0.16","buildID":"22172ea569e0e89216438ce3b3c2d427f413dc96a201842f75986368bbf44bd6"}