sessiongraph 1.0.7 → 1.0.9
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 +21 -1
- package/README.md +1 -1
- package/dist/assets/{index-x7CFY4c0.js → index-B5TXKeav.js} +1 -1
- package/dist/assets/{index-CSlKklgv.js → index-BPR2p22J.js} +1 -1
- package/dist/assets/{index-CQQQn4As.js → index-CWphmptD.js} +1 -1
- package/dist/assets/{index-iA3u_0lX.js → index-D-Ue5tsr.js} +30 -28
- package/dist/assets/{index-vX8x5oFC.css → index-fjc8n25E.css} +1 -1
- package/dist/assets/publishing-D6ALMt6w.js +12 -0
- package/dist/assets/publishing-DG0jrGoB.css +1 -0
- package/dist/assets/{scene-BGmgWBAw.js → scene-C2kTsRX_.js} +1 -1
- package/dist/assets/{share-CLYxMZI8.js → share-BhzLwRnE.js} +3 -3
- package/dist/index.html +2 -2
- package/dist-server/server.mjs +392 -31
- package/docs/guide.md +3 -3
- package/package.json +8 -7
package/PRIVACY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Privacy and local data
|
|
2
2
|
|
|
3
|
-
**Your session content stays on your computer while you import, search, and explore it in SessionGraph.** No SessionGraph account is required. SessionGraph has no cloud sync and sends no analytics or crash reports.
|
|
3
|
+
**Your session content stays on your computer while you import, search, and explore it in SessionGraph.** No SessionGraph account is required for these actions. SessionGraph has no automatic cloud sync and sends no analytics or crash reports. Optional public profiles upload only a snapshot you explicitly preview and confirm.
|
|
4
4
|
|
|
5
5
|
## What happens locally
|
|
6
6
|
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
| Import Claude Code, Codex, Cursor, Gemini CLI, Qwen Code, Pi, GitHub Copilot CLI, Cline, Roo Code, Kilo Code, or Continue history | Local history reads within the [documented source coverage](docs/guide.md#source-coverage) | None |
|
|
21
21
|
| Check for or download desktop updates | GitHub Releases and its download infrastructure | None |
|
|
22
22
|
| Install or update through npm | npm registry and its download infrastructure | None |
|
|
23
|
+
| Sign in or manage an account/organization | GitHub and `sessiongraph.ai` | None; GitHub identity and account actions only |
|
|
24
|
+
| Preview a public graph | Local authenticated backend | None; preview is prepared locally |
|
|
25
|
+
| Publish or update a public graph | `sessiongraph.ai` | Only the configured metadata snapshot shown in the confirmed preview |
|
|
26
|
+
| View a public profile | `sessiongraph.ai` | Normal web request metadata; the selected snapshot is publicly readable |
|
|
23
27
|
| Open an external link | Your browser opens the destination you choose | The destination's normal browser/privacy behavior applies |
|
|
24
28
|
| Continue a session in another harness | An explicit launch opens the selected harness | The harness may send saved context to its model provider under its own settings |
|
|
25
29
|
|
|
@@ -27,6 +31,20 @@ The desktop app checks for updates automatically. GitHub and npm receive ordinar
|
|
|
27
31
|
|
|
28
32
|
Preparing a cross-harness continuation may write a local Markdown handoff containing saved conversation context. Preparing or copying the command does not start an agent. Running it allows the destination harness to read that context; that harness's privacy policy and configuration apply.
|
|
29
33
|
|
|
34
|
+
## Optional public profiles
|
|
35
|
+
|
|
36
|
+
Publishing requires GitHub sign-in and explicit confirmation in **Publish and account**. The preview covers the current filtered selection and uses the same graph renderer as the website. You can inspect the exact JSON before publishing. Importing, signing in, or changing publication settings does not upload history. Each update requires a fresh confirmed preview; published snapshots do not track subsequent imports.
|
|
37
|
+
|
|
38
|
+
- **Always excluded:** project/session names, conversation text, tool content, code, paths, native identifiers, and costs. Anonymous numeric groups and recorded parent/fork links within the selection remain visible.
|
|
39
|
+
- **Configurable:** token counts, session timestamps, message counts, message timestamps, model, and harness. Disabled fields are omitted entirely. Message timestamps require session timestamps and message counts. Only recognized public model identifiers are retained; custom aliases are hidden.
|
|
40
|
+
- **Limits:** 10,000 sessions, 2 MB of public JSON, at most 2,000 message timestamps per session and 100,000 overall, and a compressed stored snapshot under 1 MB. Message metadata covers user/assistant messages. Partial history, unknown values, and limited timestamp coverage are disclosed.
|
|
41
|
+
- **Public identity:** the profile at `/@<github_username>` is attributable to that GitHub account. Anonymous session labels do not make the profile anonymous. Timing, activity, grouping, and usage may still reveal working patterns.
|
|
42
|
+
- **Removal:** unpublish from the desktop or website to remove the hosted graph. Signing out leaves it published. Copies already downloaded by other people are outside SessionGraph's control.
|
|
43
|
+
|
|
44
|
+
The hosted service stores the GitHub numeric ID and current username, the latest published snapshot, organization names/slugs, memberships, invitations, and hashed login tokens. GitHub repository access is not requested; the temporary provider token is discarded after login. Browser sessions use secure HttpOnly cookies. Desktop sign-in requires browser approval and a one-time verifier exchange. Login sessions expire after 30 days, device approvals after two minutes, and invitations after seven days. Expired records are rejected immediately and removed by scheduled cleanup.
|
|
45
|
+
|
|
46
|
+
Account and public-profile requests pass through Vercel; hosted records are stored in AWS. Providers receive ordinary connection metadata such as IP addresses. The application stores short-lived hashed request buckets for rate limiting. Organization membership does not share local sessions or publish a graph.
|
|
47
|
+
|
|
30
48
|
## Where data is stored
|
|
31
49
|
|
|
32
50
|
New installations use:
|
|
@@ -37,6 +55,8 @@ New installations use:
|
|
|
37
55
|
|
|
38
56
|
`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.
|
|
39
57
|
|
|
58
|
+
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.
|
|
59
|
+
|
|
40
60
|
**SessionGraph does not encrypt its database, search text, or handoff files.** Local filesystem permissions protect access where supported. Your OS account, disk encryption, device security, and backup/sync configuration affect confidentiality. SessionGraph does not control backups or the original harnesses' storage and cloud services.
|
|
41
61
|
|
|
42
62
|
Application bundles and npm packages contain application assets, not your imported library. The repository's demo images and video use synthetic sessions.
|
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ portless sessiongraph pnpm dev
|
|
|
90
90
|
`pnpm desktop:dev` runs the native app. `pnpm test` runs the tests.
|
|
91
91
|
See the [guide](docs/guide.md) for source coverage, shortcuts, storage, and building locally.
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
Shared graph code and the website are organized as pnpm workspace packages in [`packages/`](packages/README.md). The website lives in [`packages/site/`](packages/site/README.md) and serves [sessiongraph.ai](https://sessiongraph.ai).
|
|
94
94
|
|
|
95
95
|
### License
|
|
96
96
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as a,
|
|
1
|
+
import{R as a,y as i,C as R}from"./index-D-Ue5tsr.js";var w;(function(n){n[n.Audio=1]="Audio",n[n.Cache=2]="Cache",n[n.Config=3]="Config",n[n.Data=4]="Data",n[n.LocalData=5]="LocalData",n[n.Document=6]="Document",n[n.Download=7]="Download",n[n.Picture=8]="Picture",n[n.Public=9]="Public",n[n.Video=10]="Video",n[n.Resource=11]="Resource",n[n.Temp=12]="Temp",n[n.AppConfig=13]="AppConfig",n[n.AppData=14]="AppData",n[n.AppLocalData=15]="AppLocalData",n[n.AppCache=16]="AppCache",n[n.AppLog=17]="AppLog",n[n.Desktop=18]="Desktop",n[n.Executable=19]="Executable",n[n.Font=20]="Font",n[n.Home=21]="Home",n[n.Runtime=22]="Runtime",n[n.Template=23]="Template"})(w||(w={}));var d;(function(n){n[n.Start=0]="Start",n[n.Current=1]="Current",n[n.End=2]="End"})(d||(d={}));function u(n){return{isFile:n.isFile,isDirectory:n.isDirectory,isSymlink:n.isSymlink,size:n.size,mtime:n.mtime!==null?new Date(n.mtime):null,atime:n.atime!==null?new Date(n.atime):null,birthtime:n.birthtime!==null?new Date(n.birthtime):null,readonly:n.readonly,fileAttributes:n.fileAttributes,dev:n.dev,ino:n.ino,mode:n.mode,nlink:n.nlink,uid:n.uid,gid:n.gid,rdev:n.rdev,blksize:n.blksize,blocks:n.blocks}}function U(n){const e=new Uint8ClampedArray(n),t=e.byteLength;let o=0;for(let r=0;r<t;r++){const s=e[r];o*=256,o+=s}return o}class g extends a{async read(e){if(e.byteLength===0)return 0;const t=await i("plugin:fs|read",{rid:this.rid,len:e.byteLength}),o=U(t.slice(-8)),r=t instanceof ArrayBuffer?new Uint8Array(t):t;return e.set(r.slice(0,r.length-8)),o===0?null:o}async seek(e,t){return await i("plugin:fs|seek",{rid:this.rid,offset:e,whence:t})}async stat(){const e=await i("plugin:fs|fstat",{rid:this.rid});return u(e)}async truncate(e){await i("plugin:fs|ftruncate",{rid:this.rid,len:e})}async write(e){return await i("plugin:fs|write",{rid:this.rid,data:e})}}async function b(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");const t=await i("plugin:fs|create",{path:n instanceof URL?n.toString():n,options:e});return new g(t)}async function p(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");const t=await i("plugin:fs|open",{path:n instanceof URL?n.toString():n,options:e});return new g(t)}async function S(n,e,t){if(n instanceof URL&&n.protocol!=="file:"||e instanceof URL&&e.protocol!=="file:")throw new TypeError("Must be a file URL.");await i("plugin:fs|copy_file",{fromPath:n instanceof URL?n.toString():n,toPath:e instanceof URL?e.toString():e,options:t})}async function A(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");await i("plugin:fs|mkdir",{path:n instanceof URL?n.toString():n,options:e})}async function T(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");return await i("plugin:fs|read_dir",{path:n instanceof URL?n.toString():n,options:e})}async function E(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");const t=await i("plugin:fs|read_file",{path:n instanceof URL?n.toString():n,options:e});return t instanceof ArrayBuffer?new Uint8Array(t):Uint8Array.from(t)}async function _(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");const t=await i("plugin:fs|read_text_file",{path:n instanceof URL?n.toString():n,options:e}),o=t instanceof ArrayBuffer?t:Uint8Array.from(t);return new TextDecoder(e?.encoding??"utf-8").decode(o)}async function x(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");const t=n instanceof URL?n.toString():n;return await Promise.resolve({path:t,rid:null,async next(){const o=new TextDecoder(e?.encoding??"utf-8");if(this.rid===null){const l=o.encoding;this.rid=await i("plugin:fs|read_text_file_lines",{path:t,options:e!=null?{...e,encoding:l}:void 0})}let r;try{r=await i("plugin:fs|read_text_file_lines_next",{rid:this.rid})}catch(l){throw this.rid=null,l}const s=r instanceof ArrayBuffer?new Uint8Array(r):Uint8Array.from(r),f=s[s.byteLength-1]===1;return f?(this.rid=null,{value:null,done:f}):{value:o.decode(s.slice(0,s.byteLength-1)),done:f}},async return(){if(this.rid!==null){const o=this.rid;this.rid=null,await new a(o).close()}return{value:null,done:!0}},[Symbol.asyncIterator](){return this}})}async function v(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");await i("plugin:fs|remove",{path:n instanceof URL?n.toString():n,options:e})}async function M(n,e,t){if(n instanceof URL&&n.protocol!=="file:"||e instanceof URL&&e.protocol!=="file:")throw new TypeError("Must be a file URL.");await i("plugin:fs|rename",{oldPath:n instanceof URL?n.toString():n,newPath:e instanceof URL?e.toString():e,options:t})}async function C(n,e){const t=await i("plugin:fs|stat",{path:n instanceof URL?n.toString():n,options:e});return u(t)}async function k(n,e){const t=await i("plugin:fs|lstat",{path:n instanceof URL?n.toString():n,options:e});return u(t)}async function F(n,e,t){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");await i("plugin:fs|truncate",{path:n instanceof URL?n.toString():n,len:e,options:t})}async function z(n,e,t){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");if(e instanceof ReadableStream){const o=await p(n,{read:!1,create:!0,write:!0,...t,truncate:!t?.append}),r=e.getReader();try{for(;;){const{done:s,value:f}=await r.read();if(s)break;await o.write(f)}}finally{r.releaseLock(),await o.close()}}else await i("plugin:fs|write_file",e,{headers:{path:encodeURIComponent(n instanceof URL?n.toString():n),options:JSON.stringify(t)}})}async function I(n,e,t){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");const o=new TextEncoder;await i("plugin:fs|write_text_file",o.encode(e),{headers:{path:encodeURIComponent(n instanceof URL?n.toString():n),options:JSON.stringify(t)}})}async function H(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");return await i("plugin:fs|exists",{path:n instanceof URL?n.toString():n,options:e})}class y extends a{}async function L(n,e,t){const o=Array.isArray(n)?n:[n];for(const c of o)if(c instanceof URL&&c.protocol!=="file:")throw new TypeError("Must be a file URL.");const r=new R;r.onmessage=e;const s=await i("plugin:fs|watch",{paths:o.map(c=>c instanceof URL?c.toString():c),options:t,onEvent:r}),f=new y(s);return()=>{f.close()}}async function J(n,e,t){return await L(n,e,{delayMs:2e3,...t})}async function N(n,e,t){return await L(n,e,{...t,delayMs:void 0})}async function O(n,e){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");return await i("plugin:fs|size",{path:n instanceof URL?n.toString():n,options:e})}async function V(n){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");await i("plugin:fs|start_accessing_security_scoped_resource",{path:n instanceof URL?n.toString():n})}async function h(n){if(n instanceof URL&&n.protocol!=="file:")throw new TypeError("Must be a file URL.");await i("plugin:fs|stop_accessing_security_scoped_resource",{path:n instanceof URL?n.toString():n})}export{w as BaseDirectory,g as FileHandle,d as SeekMode,S as copyFile,b as create,H as exists,k as lstat,A as mkdir,p as open,T as readDir,E as readFile,_ as readTextFile,x as readTextFileLines,v as remove,M as rename,O as size,V as startAccessingSecurityScopedResource,C as stat,h as stopAccessingSecurityScopedResource,F as truncate,J as watch,N as watchImmediate,z as writeFile,I as writeTextFile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{y as i}from"./index-D-Ue5tsr.js";function r(e){if(e!==void 0){if(typeof e=="string")return e;if("ok"in e&&"cancel"in e)return{OkCancelCustom:[e.ok,e.cancel]};if("yes"in e&&"no"in e&&"cancel"in e)return{YesNoCancelCustom:[e.yes,e.no,e.cancel]};if("ok"in e)return{OkCustom:e.ok}}}async function f(e={}){return typeof e=="object"&&Object.freeze(e),await i("plugin:dialog|open",{options:e})}async function k(e={}){return typeof e=="object"&&Object.freeze(e),await i("plugin:dialog|save",{options:e})}async function l(e,a){return await i("plugin:dialog|message",{message:e,title:a?.title,kind:a?.kind,buttons:r(a?.buttons)})}async function s(e,a){const n=typeof a=="string"?{title:a}:a;return n&&!n.buttons&&n.okLabel&&(n.buttons={ok:n.okLabel}),l(e,n)}async function u(e,a){const n=typeof a=="string"?{title:a}:a,c=n?.okLabel||n?.cancelLabel,t=n?.okLabel??"Yes";return await l(e,{title:n?.title,kind:n?.kind,buttons:c?{ok:t,cancel:n.cancelLabel??"No"}:"YesNo"})===t}async function d(e,a){const n=typeof a=="string"?{title:a}:a,c=n?.okLabel||n?.cancelLabel,t=n?.okLabel??"Ok";return await l(e,{title:n?.title,kind:n?.kind,buttons:c?{ok:t,cancel:n.cancelLabel??"Cancel"}:"OkCancel"})===t}export{u as ask,d as confirm,s as message,f as open,k as save};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{y as a,R as i,C as o}from"./index-D-Ue5tsr.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};
|