sessiongraph 1.0.14 → 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.
- package/PRIVACY.md +15 -61
- package/README.md +35 -55
- package/bin/sessiongraph.mjs +14 -8
- package/dist/assets/index-C0jATzD9.css +1 -0
- package/dist/assets/{index-D4P4hbvc.js → index-CFlNwG9H.js} +1 -1
- package/dist/assets/index-D24Hz9MJ.js +180 -0
- package/dist/assets/{index-Kotmn42s.js → index-D7udGrT1.js} +1 -1
- package/dist/assets/{index-BLM-0yG6.js → index-U9QGDl1t.js} +1 -1
- package/dist/assets/katagami-sans-DMv8PCo8.woff2 +0 -0
- package/dist/assets/licenses/hugeicons.txt +21 -0
- package/dist/assets/licenses/katagami.txt +93 -0
- package/dist/assets/public-viewer-CyDoUT6s.css +1 -0
- package/dist/assets/public-viewer-iQBchlbq.js +24 -0
- package/dist/assets/scene-DmT4K5Nj.js +248 -0
- package/dist/assets/share-DrezE0sG.js +7 -0
- package/dist/assets/{three-D_1Qt16u.js → three-DDiuFd7k.js} +21 -21
- package/dist/assets/{worker-C10U_apJ.js → worker-B9mWJfQ6.js} +1 -1
- package/dist/index.html +2 -2
- package/dist-server/cli.mjs +50326 -17640
- package/dist-server/install-cli.mjs +204 -0
- package/dist-server/server.mjs +1089 -379
- package/docs/cli.md +293 -190
- package/docs/guide.md +16 -9
- package/docs/import-coverage.md +73 -5
- package/docs/performance.md +164 -0
- package/docs/releases.md +6 -0
- package/package.json +18 -10
- package/dist/assets/external-links-BmBkCsrt.js +0 -1
- package/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/assets/index-B1kyvo41.js +0 -175
- package/dist/assets/index-Du0_nVjH.css +0 -1
- package/dist/assets/publishing-CEvQPkO1.css +0 -1
- package/dist/assets/publishing-D9CqkbeB.js +0 -23
- package/dist/assets/scene-CTHyYtma.js +0 -139
- package/dist/assets/share-Cw1E-ED9.js +0 -7
- package/docs/importer-comparison.md +0 -48
- package/docs/session-artifacts-audit.md +0 -176
package/PRIVACY.md
CHANGED
|
@@ -1,72 +1,26 @@
|
|
|
1
1
|
# Privacy and local data
|
|
2
2
|
|
|
3
|
-
**Your session
|
|
3
|
+
**Your session history stays on your device.** Import, search, and visualization run locally, without an account, automatic cloud sync, or app telemetry. Imports read selected sources without modifying them or starting an agent. The [privacy policy](https://sessiongraph.ai/privacy) covers the website and optional publishing.
|
|
4
4
|
|
|
5
|
-
## What
|
|
5
|
+
## What a public graph shares
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- Auto-import is enabled by default after source selection. It checks on startup, when returning to the app, and every minute while visible. Disable it in **Settings → Sources → Auto-import sessions**; this choice is saved in the local library and survives desktop restarts. Disabling it stops future automatic checks; an import already running can finish.
|
|
9
|
-
- Parsing, indexing, search, and visualization run on your computer. Search does not use a remote embeddings or model service.
|
|
10
|
-
- Imported conversations, metadata, timeline events, file-change evidence, and search checkpoints are saved in SessionGraph's local SQLite library.
|
|
11
|
-
- View filters, time ranges, and appearance preferences are saved in the local SQLite library. Appearance preferences are also cached in browser/WebView local storage. Fonts and application assets are bundled.
|
|
12
|
-
- Saved history remains available when a source is offline. Deselecting a source stops future imports; it does not delete previously imported history. Clearing the search index preserves imported history.
|
|
7
|
+
GitHub sign-in alone does not publish anything. SessionGraph builds the preview locally and uploads only the metadata snapshot for the sessions you select, after you confirm. Subsequent imports do not update it. You can inspect the exact JSON before sharing.
|
|
13
8
|
|
|
14
|
-
|
|
9
|
+
- **Always included:** graph-specific numeric session IDs and groups, and recorded parent or fork links within the selection.
|
|
10
|
+
- **Optional:** token counts, session and message timestamps, message counts, recognized model names, and coding-tool names. Disabled fields are omitted.
|
|
11
|
+
- **Never included:** conversation text, code, tool inputs or outputs, project or session names, file paths, native session IDs, credentials, or costs.
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
| --- | --- | --- |
|
|
18
|
-
| Browse, search, and visualize saved history | Authenticated backend on `127.0.0.1` | None |
|
|
19
|
-
| Import OpenCode history | OpenCode's authenticated loopback API; OpenCode must be running locally | None |
|
|
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
|
-
| Check for or download desktop updates | GitHub Releases and its download infrastructure | None |
|
|
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 |
|
|
27
|
-
| Open an external link | Your browser opens the destination you choose | The destination's normal browser/privacy behavior applies |
|
|
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 |
|
|
13
|
+
Anyone can view a published graph at `/@<github_username>` or find it in **Explore graphs**. Anonymous session labels do not anonymize your profile; timestamps and activity can reveal work patterns. The site stores the latest confirmed snapshot. **Unpublish** in the app or on the [account page](https://sessiongraph.ai/account) removes the hosted copy, not copies others already saved. Signing out does not unpublish.
|
|
29
14
|
|
|
30
|
-
|
|
15
|
+
## Local files and network access
|
|
31
16
|
|
|
32
|
-
|
|
17
|
+
The SQLite library stores imported sessions, search data, and preferences on your device. See the [storage guide](docs/guide.md#local-storage-and-privacy) for paths and overrides. Handoff files and optional desktop login credentials also stay on your device. SessionGraph does not encrypt these files; use OS permissions and disk encryption as needed.
|
|
33
18
|
|
|
34
|
-
|
|
19
|
+
Desktop releases install the `sessiongraph` and `ssg` commands on first launch.
|
|
20
|
+
Setup copies CLI files to a per-user application-data directory and adds it to
|
|
21
|
+
your shell profiles or Windows user PATH, preserving existing entries.
|
|
22
|
+
See [CLI installation](docs/cli.md#install).
|
|
35
23
|
|
|
36
|
-
|
|
24
|
+
Desktop updates contact GitHub, and npm installs contact the npm registry. Those requests do not include session history. The hosted service handles optional GitHub sign-in, publishing, and organization features. Organizations do not share your local history. If you explicitly continue a conversation in another coding tool, that tool may send the handoff context to its model provider under its own settings.
|
|
37
25
|
|
|
38
|
-
|
|
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
|
-
- **Discovery:** published profiles appear in Explore graphs with an anonymous graph thumbnail, session count, and token total when shared and available. Thumbnails are generated from the validated public snapshot, never a screenshot of your local app. The public explorer uses the same renderer as the local app but reads only published metadata. It cannot access local imports, conversations, files, credentials, or harness launch actions.
|
|
43
|
-
- **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.
|
|
44
|
-
|
|
45
|
-
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.
|
|
46
|
-
|
|
47
|
-
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.
|
|
48
|
-
|
|
49
|
-
## Where data is stored
|
|
50
|
-
|
|
51
|
-
New installations use:
|
|
52
|
-
|
|
53
|
-
- **macOS:** `~/Library/Application Support/SessionGraph/sessiongraph.sqlite`
|
|
54
|
-
- **Windows:** `%LOCALAPPDATA%/SessionGraph/sessiongraph.sqlite`
|
|
55
|
-
- **Linux:** `$XDG_DATA_HOME/sessiongraph/sessiongraph.sqlite`, defaulting to `~/.local/share/sessiongraph/sessiongraph.sqlite`
|
|
56
|
-
|
|
57
|
-
`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.
|
|
58
|
-
|
|
59
|
-
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.
|
|
60
|
-
|
|
61
|
-
**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.
|
|
62
|
-
|
|
63
|
-
Application bundles and npm packages contain application assets, not your imported library. The repository's demo images and video use synthetic sessions.
|
|
64
|
-
|
|
65
|
-
## How to verify the behavior
|
|
66
|
-
|
|
67
|
-
- Inspect the [source adapters](server/adapters/), [local API](server/standalone.ts), [search worker](src/search/worker.ts), and [desktop updater](src/updater.ts).
|
|
68
|
-
- After importing a library, disconnect from the internet and browse/search it. OpenCode imports additionally require its local service, but browsing saved history does not.
|
|
69
|
-
- Use an OS-level network monitor or firewall to inspect both the native app and its bundled Node backend. Browser developer tools alone do not show native updater traffic. Distinguish update checks from actions that explicitly open another application.
|
|
70
|
-
- Compare downloaded artifacts with the release's `SHA256SUMS`. The desktop updater verifies version-bound signatures before installation. These establish artifact integrity and authenticity; they are not a privacy audit.
|
|
71
|
-
|
|
72
|
-
These statements describe SessionGraph's implemented behavior. They are not a claim of an independent security audit or protection against other software with access to your device.
|
|
26
|
+
To check local behavior, disconnect from the internet and browse or search an already imported library. You can also inspect the [source adapters](server/adapters/), [local API](server/standalone.ts), and [public graph format](packages/core/src/public-graph.ts).
|
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
<h1 align="center"
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<img src="public/brand/lockup.svg#gh-dark-mode-only" width="420" alt="SessionGraph">
|
|
3
|
+
<img src="public/brand/lockup-light.svg#gh-light-mode-only" width="420" alt="SessionGraph">
|
|
4
|
+
</h1>
|
|
2
5
|
<p align="center">Explore & visualize all your LLM sessions</p>
|
|
3
6
|
<p align="center">
|
|
4
7
|
<a href="https://github.com/arvindell/sessiongraph/releases/latest">Download</a> ·
|
|
@@ -9,25 +12,27 @@
|
|
|
9
12
|
|
|
10
13
|
[](https://github.com/arvindell/sessiongraph/releases/latest/download/sessiongraph-demo.mp4)
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
Explore local history from **OpenCode, Claude Code, Codex, T3 Code, Cursor, Gemini, Pi, and more** in one app. Search conversations, browse messages, and inspect changed files.
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
During playback, session orbs travel through time, leaving trails behind them. Message dots match their session's color.
|
|
18
|
-
Importing, searching, and visualization stay on your computer.
|
|
17
|
+
- **Session orbs** show your conversations over time.
|
|
18
|
+
- **Fork connections** show where sessions branched or spawned subagents.
|
|
19
|
+
- **Clusters** group sessions by project directory, even across harnesses.
|
|
19
20
|
|
|
20
21
|
### Your history stays local
|
|
21
22
|
|
|
22
|
-
**No account
|
|
23
|
+
**No account needed.** SessionGraph reads your local history without changing it. Imported conversations and search stay on your computer.
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
### Install
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
Run the desktop app with **Node.js 24+**:
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
```sh
|
|
30
|
+
npx sessiongraph
|
|
31
|
+
```
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
Prefer your browser? Run `npx sessiongraph --browser`.
|
|
34
|
+
|
|
35
|
+
Or download an installer — no Node.js required:
|
|
31
36
|
|
|
32
37
|
| Platform | Direct downloads |
|
|
33
38
|
| --- | --- |
|
|
@@ -37,48 +42,26 @@ Download the latest desktop app — no Node.js required:
|
|
|
37
42
|
| Linux · x64 | [AppImage](https://github.com/arvindell/sessiongraph/releases/latest/download/sessiongraph-linux-x64.AppImage) · [DEB](https://github.com/arvindell/sessiongraph/releases/latest/download/sessiongraph-linux-x64.deb) · [RPM](https://github.com/arvindell/sessiongraph/releases/latest/download/sessiongraph-linux-x64.rpm) |
|
|
38
43
|
| Linux · ARM64 | [AppImage](https://github.com/arvindell/sessiongraph/releases/latest/download/sessiongraph-linux-arm64.AppImage) · [DEB](https://github.com/arvindell/sessiongraph/releases/latest/download/sessiongraph-linux-arm64.deb) · [RPM](https://github.com/arvindell/sessiongraph/releases/latest/download/sessiongraph-linux-arm64.rpm) |
|
|
39
44
|
|
|
40
|
-
Desktop updates appear as a small **Update** pill. Download and verify, then click **Restart** when you're ready.
|
|
41
|
-
|
|
42
|
-
The npm launcher requires **Node.js 24+**:
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
npx sessiongraph
|
|
46
|
-
npx sessiongraph --browser
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
- **`sessiongraph`** opens the native desktop app for your OS, with its own local backend and bundled runtime.
|
|
50
|
-
- **`sessiongraph --browser`** starts an authenticated localhost server and opens the same explorer in your default browser. Keep the terminal running; **Ctrl+C** stops it.
|
|
51
|
-
- Both use the same saved local library. Import once, explore in either mode.
|
|
52
|
-
|
|
53
45
|
### Harness support
|
|
54
46
|
|
|
55
|
-
| Harness |
|
|
56
|
-
| --- | --- |
|
|
57
|
-
| <img src="public/sources/opencode.svg" width="14" alt=""/> **OpenCode** |
|
|
58
|
-
| <img src="public/sources/claude.svg" width="14" alt=""/> **Claude Code** |
|
|
59
|
-
| <img src="public/sources/openai.svg" width="14" alt=""/> **Codex** | Active and archived
|
|
60
|
-
| <img src="public/sources/t3.svg" width="14" alt=""/> **T3 Code** |
|
|
61
|
-
| <img src="public/sources/cursor.svg" width="14" alt=""/> **Cursor** | IDE
|
|
62
|
-
| <img src="public/sources/gemini.svg" width="14" alt=""/> **Gemini CLI** |
|
|
63
|
-
| <img src="public/sources/qwen.svg" width="14" alt=""/> **Qwen Code** |
|
|
64
|
-
| <img src="public/sources/pi.svg" width="14" alt=""/> **Pi** |
|
|
65
|
-
| <img src="public/sources/copilot.svg" width="14" alt=""/> **GitHub Copilot CLI** |
|
|
66
|
-
| <img src="public/sources/copilot.svg" width="14" alt=""/> **GitHub Copilot Chat (VS Code)** |
|
|
67
|
-
| <img src="public/sources/cline.svg" width="14" alt=""/> **Cline** |
|
|
68
|
-
| <img src="public/sources/roo.svg" width="14" alt=""/> **Roo Code** |
|
|
69
|
-
| <img src="public/sources/kilo.svg" width="14" alt=""/> **Kilo Code / CLI** | Extension
|
|
70
|
-
| <img src="public/sources/continue.svg" width="14" alt=""/> **Continue** |
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Additional sources include OpenClaw, Prime Agent, Oh My Pi, Senpi, Kimchi, Gajae, Hermes, Amp, Droid, Codebuff/Freebuff, Kimi, Grok, Jcode, Cherry Studio, Command Code, ZCode, CodeBuddy, WorkBuddy, Proma, DeepSeek Harness, Aside, Vibe, Goose, Zed, Devin CLI/Desktop, Crush, Octofriend, MiMo Code/Desktop, Unsloth, and Kiro/Mux. Junie, Muse, Augment, and OpenCodeReview have partial event coverage. Fx and Antigravity expose session metadata and dates only. Sources that cannot provide session identities and dates are excluded. See the [format matrix](docs/import-coverage.md) for paths and remaining gaps.
|
|
75
|
-
|
|
76
|
-
Choose harnesses in **Settings → Sources** or **Manage sources** next to the source filter. **Auto-import is on by default**: SessionGraph checks for new and changed sessions on startup, when you return, and every minute while visible. Turn it off in **Settings → Sources → Auto-import sessions**. **Refresh sessions** also works manually.
|
|
77
|
-
|
|
78
|
-
Your time range, source/project/directory filters, archived and child-session toggles, and appearance preferences are saved with the local library and restored after restarting.
|
|
79
|
-
The default range is **All time**, with archived sessions hidden. Enable them in **Settings → Interface → Show archived sessions**.
|
|
80
|
-
|
|
81
|
-
Manual and automatic refresh preserve your map position, zoom, and selection. New history keeps existing layout positions stable; use **Fit view (F)** to reframe the whole map.
|
|
47
|
+
| Harness | Local history |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| <img src="public/sources/opencode.svg" width="14" alt=""/> **OpenCode** | Run OpenCode when importing |
|
|
50
|
+
| <img src="public/sources/claude.svg" width="14" alt=""/> **Claude Code** | Projects, worktrees, and subagents |
|
|
51
|
+
| <img src="public/sources/openai.svg" width="14" alt=""/> **Codex** | Active and archived sessions |
|
|
52
|
+
| <img src="public/sources/t3.svg" width="14" alt=""/> **T3 Code** | Threads and activity |
|
|
53
|
+
| <img src="public/sources/cursor.svg" width="14" alt=""/> **Cursor** | IDE and CLI conversations |
|
|
54
|
+
| <img src="public/sources/gemini.svg" width="14" alt=""/> **Gemini CLI** | Saved chats |
|
|
55
|
+
| <img src="public/sources/qwen.svg" width="14" alt=""/> **Qwen Code** | Project chats |
|
|
56
|
+
| <img src="public/sources/pi.svg" width="14" alt=""/> **Pi** | Session trees |
|
|
57
|
+
| <img src="public/sources/copilot.svg" width="14" alt=""/> **GitHub Copilot CLI** | Saved sessions |
|
|
58
|
+
| <img src="public/sources/copilot.svg" width="14" alt=""/> **GitHub Copilot Chat (VS Code)** | Saved IDE chats |
|
|
59
|
+
| <img src="public/sources/cline.svg" width="14" alt=""/> **Cline** | Tasks and messages |
|
|
60
|
+
| <img src="public/sources/roo.svg" width="14" alt=""/> **Roo Code** | Task history |
|
|
61
|
+
| <img src="public/sources/kilo.svg" width="14" alt=""/> **Kilo Code / CLI** | Extension and CLI sessions |
|
|
62
|
+
| <img src="public/sources/continue.svg" width="14" alt=""/> **Continue** | IDE and CLI sessions |
|
|
63
|
+
|
|
64
|
+
Also supports OpenClaw, Hermes, Kiro, Mux, and more. [Full source list and coverage →](docs/import-coverage.md)
|
|
82
65
|
|
|
83
66
|
### Develop
|
|
84
67
|
|
|
@@ -88,9 +71,6 @@ portless sessiongraph pnpm dev
|
|
|
88
71
|
```
|
|
89
72
|
|
|
90
73
|
`pnpm desktop:dev` runs the native app. `pnpm test` runs the tests.
|
|
91
|
-
See the [guide](docs/guide.md) for source coverage, shortcuts, storage, and building locally.
|
|
92
|
-
|
|
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
74
|
|
|
95
75
|
### License
|
|
96
76
|
|
package/bin/sessiongraph.mjs
CHANGED
|
@@ -30,14 +30,20 @@ function open(target) {
|
|
|
30
30
|
child.on('error', () => console.error('Could not open the application. Check your desktop environment.')); child.unref();
|
|
31
31
|
}
|
|
32
32
|
if (!argv.includes('--browser')) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
+
}
|
|
41
47
|
}
|
|
42
48
|
} else {
|
|
43
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'] });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.graph-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:7px;width:34px;height:34px;padding:0;border:0;border-radius:var(--radius-8);background:transparent;color:#8ba198;font:inherit;cursor:pointer}.graph-button[hidden]{display:none}.graph-button-labeled{width:auto;padding-inline:9px}.graph-button .ui-icon{width:17px;height:17px}.graph-button:hover{color:#e9fff4;background:#c2e9d90c}.graph-button:focus-visible,.graph-session-info summary:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.graph-button[aria-expanded=true],.graph-button[aria-pressed=true]{color:var(--color-accent);background:var(--color-selected)}.graph-session-info{padding:16px 20px;border-top:1px solid #c9e3db14}.graph-session-info summary{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#9ab4a3;cursor:pointer;font-size:12px;list-style:none}.graph-session-info summary::-webkit-details-marker{display:none}.graph-session-info[open] summary{margin-bottom:10px}.graph-session-info[open] summary svg{transform:rotate(180deg)}.graph-session-info dl{margin:0}.graph-session-info dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-block:5px;font-size:12px}.graph-session-info dt{color:#829e8d}.graph-session-info dd{margin:0;text-align:right;overflow-wrap:anywhere;font:11px var(--mono);color:#c1d7cc;min-width:0}.graph-session-info dt,.graph-session-info .directory-card>span,.graph-shortcuts>span{display:flex;align-items:center;gap:6px}.graph-session-info .ui-icon,.graph-shortcuts .ui-icon{width:13px;height:13px;flex:none}.graph-shortcuts{display:flex;gap:10px;color:#82938f;font-size:10px;pointer-events:none}.graph-shortcuts kbd{min-width:22px;padding:2px 4px;border:1px solid #a3bdb523;border-radius:var(--radius-4);color:#a3b5ae;background:#0b141b66;font:9px var(--mono);text-align:center}.graph-help{position:fixed;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:24px;border:1px solid #b0e9d633;border-radius:var(--radius-14);background:#0e1c20;color:var(--color-text)}.graph-help::backdrop{background:#050a0d99}.graph-help [data-close-help]{position:absolute;right:12px;top:12px}.graph-help h2{margin:0 34px 16px 0;font-size:20px}.graph-help p{font-size:12px;color:#a7bcb0;line-height:1.6}.graph-help-rows>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:12px}.graph-help-rows span{display:flex;align-items:center;gap:6px}.graph-help-rows svg{width:14px;height:14px}.scene-labels .scene-label.month-label{padding:3px 5px;background:transparent;letter-spacing:.085em;text-transform:uppercase;text-shadow:0 1px 3px #080f12}.scene-labels .scene-label.month-label.visible{opacity:.8}.ui-select{display:inline-flex;min-width:0;position:relative}.ui-select-positioner{margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible;z-index:150}.ui-select .ui-select-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:34px;padding:8px 10px;border:1px solid var(--control-border);border-radius:var(--radius-8);background:var(--control-bg);color:#c7dfd2;font-size:12px;text-align:left}.ui-select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-select-trigger>svg{width:12px;height:12px;color:#7f9d90}.ui-select .ui-select-trigger:hover,.ui-select .ui-select-trigger[data-state=open]{background:var(--control-hover);border-color:#b0e9d645}.ui-select-menu{min-width:max(150px,var(--reference-width));max-width:min(400px,calc(100vw - 24px));max-height:min(300px,var(--available-height, 300px));overflow:auto;padding:5px;border:1px solid var(--control-border);border-radius:var(--radius-10);background:var(--popover-bg);box-shadow:0 12px 40px #0007;outline:none}.ui-select-option{position:relative;padding:9px 30px 9px 10px;border-radius:var(--radius-6);color:#a8c3b5;font-size:12px;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}.ui-select-option[data-highlighted]{color:#e0f4e9;background:var(--control-hover)}.ui-select-option[data-state=checked]{color:var(--mint)}.ui-select-option>svg:last-child{display:none;position:absolute;right:10px;top:50%;transform:translateY(-50%);width:14px;height:14px}.ui-select-option[data-state=checked]>svg:last-child{display:block}.ui-select-option[data-disabled]{opacity:.4;cursor:default}.ui-select-with-source .ui-select-trigger,.ui-select-option:has(.ui-select-source){display:flex;align-items:center;gap:8px}.ui-select .ui-select-source,.ui-select-positioner .ui-select-source{width:15px;height:15px;flex:0 0 15px}.ui-select-with-source .ui-select-trigger .ui-select-source{margin:0}.ui-select-with-source .ui-select-trigger>svg:last-child{margin-left:auto;flex-shrink:0}.ui-select .ui-select-source.source-icon,.ui-select-positioner .ui-select-source.source-icon{display:inline-block;background:currentColor;-webkit-mask:var(--source-icon) center / contain no-repeat;mask:var(--source-icon) center / contain no-repeat}.timeline-controls{padding:9px 14px 18px;border-radius:var(--radius-16)}.timeline-controls .timeline-top{display:flex;align-items:center;gap:4px;margin-bottom:14px}.timeline-controls .timeline-top .panel-title{font-size:12px;font-weight:400;white-space:nowrap}.timeline-controls .range-buttons{display:flex;gap:2px;margin-left:8px}.timeline-controls .range-buttons button{font-size:11px;color:#859d8e;border-radius:var(--radius-6);padding:6px 8px}.timeline-controls .range-buttons button:hover{color:var(--color-accent)}.timeline-controls .range-buttons button:is(.active,[aria-pressed=true]){color:var(--color-accent);background:#b0e9d613}.timeline-controls .timeline-track{display:flex;align-items:center;gap:15px}.timeline-controls .play-button{width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #b0e9d62b;border-radius:var(--radius-round);color:var(--color-accent);background:#b0e9d604}.timeline-controls .play-button:hover{background:#b0e9d613}.timeline-controls .play-button svg{width:13px;height:13px}.timeline-controls .histogram-wrap{flex:1;position:relative;height:30px;min-width:30px;border-bottom:1px solid #b0e9d620}.timeline-controls .histogram{display:flex;align-items:flex-end;height:100%;gap:3px;-webkit-mask-image:linear-gradient(to right,black var(--progress, 100%),#ffffff30 var(--progress, 100%));mask-image:linear-gradient(to right,black var(--progress, 100%),#ffffff30 var(--progress, 100%))}.timeline-controls .histogram span{flex:1;min-width:0;background:linear-gradient(#a6d5c7ba,#61887d35);border-radius:var(--radius-2) var(--radius-2) var(--radius-none) var(--radius-none)}.timeline-controls input[type=range]{appearance:none;position:absolute;inset:-6px -7px;margin:0;width:calc(100% + 14px);height:calc(100% + 12px);padding:0;border:0;background:transparent;cursor:ew-resize}.timeline-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:40px;opacity:0}.timeline-controls input[type=range]::-moz-range-thumb{width:12px;height:40px;opacity:0}.timeline-controls .timeline-cursor{pointer-events:none;position:absolute;top:-3px;bottom:-2px;left:100%;width:1px;background:#d3eee0;box-shadow:0 0 8px #b0e9d640}.timeline-controls .timeline-cursor:before{content:"";position:absolute;top:-2px;left:-2px;width:5px;height:5px;background:var(--color-accent);border-radius:var(--radius-round)}.timeline-controls .playback-date{min-width:43px;text-align:right;white-space:nowrap;font-size:11px;color:#9ab1a3}.timeline-controls .playback-period{display:none;text-align:center;color:#a0baae;font:11px var(--mono, monospace);letter-spacing:.06em;font-variant-numeric:tabular-nums}.timeline-controls .playback-summary{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:12px 28px;margin:16px 0 0;color:#829e91;font-size:11px}.timeline-controls .playback-summary strong{color:#e3f3eb;font-size:26px;font-weight:450;letter-spacing:-.8px;font-variant-numeric:tabular-nums;margin-right:9px}.timeline-controls .playback-summary small{flex-basis:100%;text-align:center;font:9px var(--mono, monospace)}.timeline-controls .playback-summary small:empty{display:none}.playback-mode .timeline-controls{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0}.playback-mode .timeline-controls .timeline-top,.playback-mode .timeline-controls .playback-date,.playback-mode .timeline-controls .playback-summary small{display:none}.playback-mode .timeline-controls .play-button{background:none;border:0;box-shadow:none}.playback-mode .timeline-controls .playback-period{display:block;margin-top:14px}.playback-mode .timeline-controls .playback-summary{display:flex;justify-content:center;text-align:center;gap:20px clamp(28px,6vw,64px);margin:14px 0 0}.playback-mode .timeline-controls .playback-summary>span{display:flex;flex-direction:column;gap:4px}.playback-mode .timeline-controls .playback-summary strong{font-size:clamp(36px,6vw,48px);line-height:1;margin:0;letter-spacing:-1.8px}.playback-mode .timeline-controls .timeline-cursor{box-shadow:none}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2) format("woff2"),url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format("woff2"),url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2) format("woff2"),url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2) format("woff2"),url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format("woff2"),url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--radius-none: 0;--radius-2: 2px;--radius-4: 4px;--radius-5: 5px;--radius-6: 6px;--radius-7: 7px;--radius-8: 8px;--radius-9: 9px;--radius-10: 10px;--radius-12: 12px;--radius-14: 14px;--radius-16: 16px;--radius-17: 17px;--radius-18: 18px;--radius-20: 20px;--radius-round: 50%;--color-canvas: #080e13;--color-panel: #0c161b;--color-panel-glass: color-mix(in srgb, var(--color-panel) 90%, transparent);--color-panel-border: #d6eee119;--color-text: #dbe7e3;--color-text-secondary: #bdcec6;--color-muted-app: #82978f;--color-muted-site: #94a69f;--color-divider: #c9e3db;--color-accent: #b0e9d6;--color-on-accent: #182e29;--color-focus: color-mix(in srgb, var(--color-accent) 67%, transparent);--color-selected: color-mix(in srgb, var(--color-accent) 5%, transparent);--color-inset: #0b141b;--color-error: #e7b29b;--mint: var(--color-accent);--control-bg: #122321;--control-border: color-mix(in srgb, var(--color-accent) 15%, transparent);--control-hover: color-mix(in srgb, var(--color-accent) 6.3%, transparent);--popover-bg: #0e1c20}@font-face{font-family:Katagami Sans;src:url(/assets/katagami-sans-DMv8PCo8.woff2) format("woff2");font-style:normal;font-weight:100 900;font-display:swap}:root{font-family:var(--app-sans);--app-sans: "Katagami Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;color:var(--color-text);background:var(--color-canvas);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color-scheme:dark;--line: color-mix(in srgb, var(--color-divider) 8%, transparent);--muted: var(--color-muted-app);--mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}#app{height:100dvh;isolation:isolate}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none;transition:background .18s,color .18s,border-color .18s}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}svg{width:16px;height:16px;flex-shrink:0}[hidden]{display:none!important}::selection{background:#b0e9d632;color:#f0fff8}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-thumb{background:#3a5149;border-radius:var(--radius-4)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.muted{color:var(--muted)}.map,#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none}.canvas-vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 150px 20px #04090d55}.glass{background:color-mix(in srgb,var(--color-panel) var(--panel-opacity, 90%),transparent);border:1px solid var(--color-panel-border);box-shadow:0 12px 48px #0003,inset 0 1px #ffffff04;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.app-header,.map-controls{position:fixed;top:24px;display:flex;align-items:center;gap:5px;height:48px;border-radius:var(--radius-14);padding:5px 7px;z-index:40}.app-header{left:24px;padding-left:13px;gap:10px}.brand{display:flex;align-items:center;gap:8px}.brand img{width:24px;height:24px}.brand>span{font-size:21px;font-weight:600;letter-spacing:-1px;line-height:1;white-space:nowrap}.brand-dot{color:var(--mint)}.connection{display:flex;align-items:center}.status-dot{width:5px;height:5px;border-radius:var(--radius-round);background:#d6b578}.connected .status-dot{background:#a9d9c5;box-shadow:0 0 8px #b0e9d630}.toolbar-divider{width:1px;height:18px;background:var(--line);margin:0 3px}.toolbar-button{display:flex;align-items:center;gap:7px;padding:9px 10px;border-radius:var(--radius-8);font-size:12px;color:#9eafa9}.toolbar-button:hover,.icon-button:hover{background:#c2e9d90c;color:#e9fff4}.toolbar-button[aria-expanded=true],.map-controls .icon-button[aria-expanded=true]{background:#b0e9d60c;color:var(--mint)}.icon-button{width:34px;height:34px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-8);color:#8ba198}.map-controls{right:24px}.floating-panel{position:fixed;z-index:10;border-radius:var(--radius-16);animation:panel-in .2s ease-out}.panel-heading{display:flex;align-items:center;padding:10px 10px 8px 16px;gap:3px;flex-shrink:0}.panel-title{display:flex;align-items:center;gap:8px;flex:1;min-width:0;margin:0;padding:8px 0;font-size:13px;font-weight:480;color:var(--color-text-secondary)}.small-badge{font:10px var(--mono);font-weight:400;color:#879f93;margin-left:2px}.sidebar{top:86px;left:24px;width:330px;height:min(580px,calc(100dvh - 230px));max-height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:hidden}.search-box{display:flex;align-items:center;gap:9px;margin:3px 16px 0;padding:10px 11px;background:#d5f6e703;border:1px solid #d1e9dc16;border-radius:var(--radius-9);color:#7c9588}.search-box:focus-within{border-color:#b0e9d650}.search-box svg{width:14px;height:14px}.search-trigger{text-align:left;font-size:12px}.search-trigger span{flex:1}.search-trigger:hover{border-color:#b0e9d644;color:#d1ecdf}.search-box input{width:100%;min-width:0;background:none;border:0;outline:none;color:#e3ece9;font-size:12px}.search-box input::placeholder{color:#7f948a}kbd{border:1px solid #c4e1d71c;border-radius:var(--radius-4);padding:2px 5px;font:11px var(--mono);color:#8fa69a}.filters{padding:16px;border-bottom:1px solid var(--line)}.filter-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.select-wrap{display:flex;align-items:center;position:relative;min-width:0;margin-bottom:8px;color:#8ea99b}.filter-row>.select-wrap{flex:1;margin-bottom:0}.select-wrap>svg,.select-wrap>#source-filter-icon{pointer-events:none;position:absolute;left:9px;width:14px;height:14px}.select-wrap>svg:last-child{left:auto;right:9px;width:12px}.select-wrap select{appearance:none;width:100%;min-width:0;height:34px;padding:7px 29px 7px 32px;background:transparent;color:#bdcfc6;border:1px solid transparent;border-radius:var(--radius-8);font-size:12px;cursor:pointer;text-overflow:ellipsis}.select-wrap:hover select{background:#b0e9d606}.select-wrap select:focus-visible{outline:2px solid #b0e9d680;outline-offset:0;background:#b0e9d609}select option{background:#14211e;color:#e1e8ea}.filter-toggles{display:flex;gap:18px;margin-top:16px}.filter-toggles label{display:flex;align-items:center;gap:6px;font-size:11px;color:#91a99b;cursor:pointer}.filter-toggles input{width:12px;height:12px;margin:0;accent-color:#a0c9ba}.session-list{padding:0 8px 10px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.list-date{display:flex;gap:7px;padding:17px 12px 8px;font-size:11px;color:#8ca196}.list-date span{color:#647e70}.session-card{width:100%;display:flex;text-align:left;gap:10px;padding:11px 12px;border:1px solid transparent;border-radius:var(--radius-9);margin-bottom:2px}.session-card:hover{background:#dbf5e805}.session-card.selected{background:#b0e9d60b;border-color:#b0e9d61a}.session-dot{width:5px;height:5px;margin-top:6px;flex-shrink:0;border-radius:var(--radius-round);background:var(--node-color, var(--color-accent));box-shadow:0 0 7px color-mix(in srgb,var(--node-color, var(--color-accent)) 25%,transparent)}.session-card-body{flex:1;min-width:0}.session-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:420;line-height:1.55;color:#bccfc5}.selected .session-title{color:#e1f2eb}.session-meta{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:10px;color:#748e7f}.session-meta svg{width:11px;height:11px}.session-meta span:first-of-type{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-meta span:last-child{margin-left:auto;white-space:nowrap}.timeline-dock{bottom:24px;left:50%;transform:translate(-50%);width:min(620px,calc(100% - 48px))}.playback-share{display:flex;justify-content:center;margin-bottom:12px;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .18s ease}.playback-share.ready{visibility:visible;opacity:1;pointer-events:auto}.playback-share button{flex:0 0 auto;min-height:44px;padding:12px 22px;gap:10px;border-radius:var(--radius-10);font-size:13px;font-weight:550}.playback-share button:hover:not(:disabled){background:#cbf7e7}.playback-share svg{width:17px;height:17px}#app.playback-mode .app-header,#app.playback-mode .map-controls,#app.playback-mode .shortcut-hints,#app.playback-mode .desktop-update,#app.playback-mode .node-tooltip{display:none}#app.playback-mode .timeline-dock{bottom:max(24px,env(safe-area-inset-bottom));top:auto!important;left:50%!important;transform:translate(-50%)!important;width:min(580px,calc(100% - 40px))}:is(.share-dialog,.publishing-dialog){background:var(--color-panel);border-color:var(--color-panel-border);color:var(--color-text)}:is(.share-dialog,.publishing-dialog) :where(p){color:var(--muted)}.share-dialog{width:min(1000px,calc(100% - 32px));max-width:none}.share-dialog h2{margin-bottom:8px}.share-dialog>p{margin:0 0 20px}.sharing-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}.sharing-header h2{margin:0}.sharing-modes{display:flex;gap:4px;width:fit-content;padding:3px;border-radius:var(--radius-8);background:var(--color-inset)}.sharing-modes button{min-height:32px;padding:7px 14px;border-radius:var(--radius-6);color:var(--color-text-secondary);font-size:12px}.sharing-modes button:hover{color:var(--color-text);background:var(--control-hover)}.sharing-modes button[aria-pressed=true]{background:var(--color-selected);color:var(--color-accent);font-weight:550}.share-preview{aspect-ratio:8 / 5;display:grid;place-items:center;background:#030609;border-radius:var(--radius-9);overflow:hidden}.share-preview video{display:block;width:100%;height:auto}.share-progress{display:grid;gap:18px;justify-items:center;color:var(--muted);font-size:12px}.share-progress progress{width:min(260px,50vw);height:4px;accent-color:var(--color-accent)}.share-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;margin-top:20px}.share-actions .share-close{margin-right:auto}.share-actions .primary-button,.share-actions .secondary-button{flex:0 0 auto}.share-x{text-decoration:none}.share-dialog .share-notice{margin:14px 0 0}.share-tray{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-10)}.share-tray p{margin:0 0 12px}.share-tray>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.share-caption{width:100%;resize:none;padding:10px;border:1px solid var(--line);border-radius:var(--radius-6);background:var(--color-inset);color:var(--color-text);font:11px/1.7 var(--app-sans)}.custom-dates{position:relative}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}.date-positioner{margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible;z-index:150}.date-popover{width:min(344px,calc(100vw - 24px));max-height:min(570px,calc(100dvh - 24px));overflow:auto;padding:18px;border:1px solid var(--control-border);border-radius:var(--radius-16);background:var(--popover-bg);box-shadow:0 20px 70px #0008,inset 0 1px #ffffff05}.date-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.date-heading .eyebrow{font:8px var(--mono);letter-spacing:.14em;color:#789e8d}.date-heading h2{margin:5px 0 0;font-size:18px;font-weight:500;letter-spacing:-.5px}.date-close{font-size:23px}.date-fields{display:flex;align-items:center;gap:10px}.date-fields>span{padding-top:16px;color:#5f8072}.date-fields label{flex:1;min-width:0;color:#8aa79a;font-size:10px}.date-fields input{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--control-border);border-radius:var(--radius-8);background:#070f1380;color:#d4e8df;font:11px var(--mono)}.date-fields input:focus{border-color:#b0e9d670}.date-fields input[aria-invalid=true]{border-color:#eab894}.date-presets{display:flex;gap:6px;margin:12px 0 16px}.date-presets button{flex:1;padding:7px 4px;border:1px solid var(--control-border);border-radius:var(--radius-6);color:#9ebcae;font-size:10px}.date-presets button:hover{background:var(--control-hover);color:var(--mint)}.date-calendar{padding-top:10px;border-top:1px solid var(--line)}.date-navigation{display:flex;align-items:center;gap:8px;margin-bottom:9px}.date-view{flex:1;padding:8px;border-radius:var(--radius-8);font-size:13px;font-weight:500}.date-view:hover{background:var(--control-hover)}.date-calendar table{width:100%;table-layout:fixed;border-spacing:0 3px;font-size:12px}.date-calendar th{padding-bottom:10px;color:#729183;font-size:10px;font-weight:400}.date-calendar td{padding:0;text-align:center}.date-calendar td button{width:100%;height:34px;border-radius:var(--radius-7);font-size:11px;color:#c6dacf;position:relative}.date-calendar td button:hover{background:#b0e9d61c}.date-calendar td button[data-outside-range]{color:#50675e}.date-calendar td button[data-in-range],.date-calendar td button[data-in-hover-range]{background:#b0e9d610;border-radius:var(--radius-none);color:#c8e7d9}.date-calendar td button[data-range-start],.date-calendar td button[data-range-end]{border-radius:var(--radius-7);color:#10251e;background:var(--mint);font-weight:600}.date-calendar td button[data-today]:after{content:"";position:absolute;width:3px;height:3px;bottom:4px;left:calc(50% - 1.5px);border-radius:var(--radius-round);background:currentColor}.date-calendar td button:focus-visible{outline-offset:-2px;z-index:1}.date-calendar table:not([data-calendar-view=day]) td{padding:3px}.date-calendar table:not([data-calendar-view=day]) button{height:47px}.date-footer{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);margin-top:12px;padding-top:14px}.date-status{flex:1;color:#7f9d8f;font-size:10px;line-height:1.6}.date-footer .primary-button{flex:0 0 auto;font-size:11px}.select-wrap .ui-select{width:100%}.select-wrap>svg,.select-wrap>#source-filter-icon{z-index:1}.select-wrap>svg:last-child{display:none}.select-wrap .ui-select-trigger{padding-left:32px;background:transparent;border-color:transparent}.select-wrap .ui-select-with-source .ui-select-trigger{padding-left:9px}.select-wrap .ui-select-trigger:hover,.select-wrap .ui-select-trigger[data-state=open]{background:#b0e9d609}.setting-row>.ui-select{min-width:120px;max-width:180px}.setting-row .ui-select-trigger{font-size:11px}.search-options .ui-select-trigger{background:transparent;border-color:transparent;padding-left:0;min-height:28px}.launch-destination .ui-select{max-width:77%}.inspector-stack{top:86px;right:24px;width:360px;max-height:calc(100dvh - 230px);display:flex;flex-direction:column;gap:12px;pointer-events:none}.inspector-stack>aside{pointer-events:auto;border-radius:var(--radius-16)}.inspector-stack.has-events{height:calc(100dvh - 110px);max-height:calc(100dvh - 110px)}.inspector{min-height:0;display:flex;flex-direction:column;overflow:hidden}.has-events .inspector{flex:0 1 220px;max-height:32%}.has-events .detail-title h2{font-size:17px}.detail-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain}.detail-title{padding:3px 20px 0}.detail-title h2{font-size:20px;line-height:1.4;letter-spacing:-.45px;font-weight:460;color:#e2ede9;margin:0 0 10px;overflow-wrap:anywhere}.detail-date{font-size:11px;color:#8ba699}.detail-title-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-bottom:10px}.secondary-button,.primary-button{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border:1px solid #b0e9d625;border-radius:var(--radius-8);font-size:12px;color:#b8d9c7;background:#b0e9d606;flex:1}.secondary-button:hover{background:#b0e9d610}.secondary-button svg{width:14px;height:14px}.primary-button{flex:0;background:var(--mint);color:var(--color-on-accent)}.text-button{display:inline-flex;align-items:center;gap:7px;padding:8px;font-size:12px;color:#a6c9b6}.detail-section{border-top:1px solid var(--line);padding:17px 20px}.section-label{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:12px;font-weight:450;color:#b3c8bc}.section-label>span{margin-left:auto;font:11px var(--mono);color:#8ca896}.file-list{list-style:none;margin:0;padding:0}.file-list li{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #d1f1df07}.file-list li>svg{width:14px;height:14px;color:#c2b08f}.file-list li>div{flex:1;min-width:0}.file-list strong{display:block;font:11px var(--mono);color:#c7dbcf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-list li span{display:block;margin-top:4px;font-size:11px;color:#7d9988;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-list small{font:10px var(--mono);color:#89a994}.coverage-note{font-size:11px;line-height:1.7;color:#8ba597;margin:14px 0 0}.commit-coverage{font-size:10px;line-height:1.4;margin-top:8px}.no-files p{font-size:12px;color:#8ca698;margin:0}.detail-loading{display:flex;align-items:center;gap:8px;font-size:12px;color:#97b6a4}.detail-loading svg{width:14px;height:14px}.load-more{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:14px;padding:10px;border:1px solid #b0e9d61c;border-radius:var(--radius-8);font-size:11px;color:#a2cbb3}.load-more:hover{background:#b0e9d609}.load-more svg{width:13px;height:13px}.relation{display:flex;align-items:center;gap:10px;width:100%;padding:10px 0;text-align:left;border-bottom:1px solid #d1f1df07}.relation>svg{width:14px;height:14px;color:#b6a3d9}.relation>svg:last-child{width:12px;color:#7c9788;margin-left:auto}.relation>span{min-width:0}.relation small{display:block;font-size:11px;color:#8fa598;margin-bottom:4px}.relation strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.5;font-weight:400;color:#bdd1c7}.relation:hover strong{color:#e2f6e9}.more-details summary{display:flex;align-items:center;gap:8px;font-size:12px;color:#9ab4a3}.more-details summary>span{margin-left:auto;font:11px var(--mono)}.more-details summary svg{width:13px;height:13px;margin-left:auto}.more-details[open] summary{margin-bottom:14px;color:#c6e0ce}.more-details[open] summary svg{transform:rotate(180deg)}.metadata{margin:0;font-size:12px}.metadata>div{display:flex;justify-content:space-between;gap:15px;padding:7px 0}.metadata dt{color:#829e8d;flex-shrink:0}.metadata dd{margin:0;text-align:right;overflow-wrap:anywhere;font:11px var(--mono);color:#c1d7cc}.session-info .metadata>div{padding-block:5px}.session-info dt,.session-info .directory-card>span{display:flex;align-items:center;gap:7px}.session-info dt svg,.session-info .directory-card>span svg{width:13px;height:13px;flex:none}.file-coverage{margin-top:10px;font-size:11px;color:#8ba597}.file-coverage summary{cursor:pointer}.file-coverage .coverage-note{margin-top:4px}.directory-card{margin-top:13px;padding:12px;border:1px solid var(--line);border-radius:var(--radius-8)}.directory-card>span{font-size:11px;color:#93b19e}.directory-card code,.location-entry code{display:block;margin-top:6px;font:11px/1.7 var(--mono);color:#8eaa9a;overflow-wrap:anywhere}.location-entry{margin-top:14px}.location-entry>span{font-size:11px;color:#afc9b8}.tools-list>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font:11px var(--mono)}.tools-list span{overflow-wrap:anywhere;color:#91af9b}.tools-list strong{font-weight:400;color:#b4cebe}.scene-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.scene-label{position:absolute;left:0;top:0;max-width:155px;padding:5px 8px;font:10px var(--mono);color:var(--label-color);opacity:0;filter:blur(3px);transition:opacity .45s ease,filter .45s ease;background:#080f1266;border-radius:var(--radius-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-label.visible{opacity:.55;filter:blur(0)}.selected-label{width:260px;max-width:calc(100% - 24px);padding:7px 10px;font-size:11px;background:#0d1c22ed;border:1px solid #b0e9d62b;border-radius:var(--radius-6);box-shadow:0 3px 15px #0005;z-index:1}.selected-label.visible{opacity:1}.event-marker-icon{position:absolute;top:0;left:0;width:12px;height:12px;color:#d7e5df;opacity:0;pointer-events:none}.event-marker-icon.visible{opacity:.38}.event-marker-icon svg{display:block;width:12px;height:12px}.scene-labels[data-motion=false] .scene-label{transition:none}.node-tooltip{position:absolute;z-index:30;width:260px;padding:14px;background:#101e1cf2;border:1px solid #b0e9d62b;border-radius:var(--radius-10);box-shadow:0 12px 32px #0006;pointer-events:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.node-tooltip strong{display:block;font-size:13px;font-weight:450;line-height:1.5;color:#e1efec;margin-bottom:7px}.node-tooltip>span{font-size:11px;color:#91af9d}.message-tooltip{width:min(390px,calc(100vw - 24px));border-color:color-mix(in srgb,var(--event-color) 35%,transparent)}.message-tooltip pre{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 var(--mono);color:#d9e9e0;max-height:min(280px,38dvh);overflow:hidden}.message-tooltip>span{display:block;font-size:10px;line-height:1.6}.graph-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#080e1333;padding:32px;text-align:center}.graph-message>svg{width:28px;height:28px;color:var(--mint)}.graph-message h3{font-size:18px;font-weight:450;margin:18px 0;color:#cde1d7}.graph-message p{max-width:350px;font-size:13px;line-height:1.8;color:#91b09f}.loading-orbit{position:relative;width:64px;height:64px}.loading-orbit span{position:absolute;inset:0;border:1px solid #b0e9d629;border-radius:var(--radius-round);transform:rotateX(55deg) rotateY(20deg);animation:orbit 3s linear infinite}.loading-orbit span:nth-child(2){animation-delay:-.8s}.loading-orbit span:nth-child(3){animation-delay:-1.6s}.empty-list{padding:20px 12px;font-size:12px;line-height:1.8;color:#86a593}.list-loading{padding:22px 8px}.skeleton{height:48px;margin-bottom:20px;border-radius:var(--radius-8);background:linear-gradient(100deg,#ffffff02,#ffffff05,#ffffff02);background-size:200%;animation:shimmer 2s infinite}.spinning>svg,svg.spinning{animation:spin 2s linear infinite}dialog{max-width:420px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);background:#101d1cf7;color:#d1e2dc;border:1px solid #b0e9d62b;border-radius:var(--radius-18);padding:28px;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#02070c88;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.dialog-close{position:absolute;top:12px;right:12px}dialog h2{font-size:22px;font-weight:450;letter-spacing:-.5px;margin:0 0 18px}dialog p{font-size:12px;line-height:1.8;color:#92ad9e;margin:18px 0}.help-rows>div{display:flex;justify-content:space-between;align-items:center;padding:9px 0;font-size:12px;border-bottom:1px solid var(--line)}.graph-legend{display:flex;flex-wrap:wrap;gap:13px 18px;margin-top:22px;font-size:12px;color:#a5c2b0}.graph-legend>span{display:flex;align-items:center;gap:7px}.legend-node{width:5px;height:5px;border-radius:var(--radius-round);background:var(--mint)}.legend-node.message{width:3px;height:3px;background:#dcfff0}.legend-file{width:5px;height:5px;background:#edc899;transform:rotate(45deg)}.legend-line{width:14px;height:1px}.legend-line.fork{background:#edbc8d}.legend-line.child{background:#bda6ef}.legend-line.lane{background:#849d95}html[data-density=compact] .session-card{padding-block:6px}html[data-density=compact] .session-title{-webkit-line-clamp:1}html[data-density=compact] .list-date{padding-top:12px}html[data-motion=false] *,html[data-motion=false] *:before,html[data-motion=false] *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.event-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.event-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px 2px 18px}.event-heading h2{margin:0;font-size:13px;font-weight:480;color:var(--color-text-secondary)}.event-close{font-size:22px}.event-toolbar{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:11px}.event-toolbar label{display:flex;align-items:center;gap:10px}.event-toolbar select{padding:8px;border:1px solid #b0e9d630;border-radius:var(--radius-6);background:#142620;color:#d0e6da;max-width:180px}.event-count{color:#adc6b8;font:9px var(--mono);margin-left:8px}.event-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.event-browser{margin:0 16px 16px;border-top:1px solid var(--line);padding-top:12px}.event-browser summary,.event-footer summary{cursor:pointer;font-size:11px;color:#9ab4a3}.event-browser>summary,.event-footer summary,.event-provenance>summary{display:flex;align-items:center;gap:8px}.event-browser>summary:after,.event-footer summary:after,.event-provenance>summary:after{content:"";width:6px;height:6px;flex-shrink:0;margin-left:auto;margin-right:3px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg)}.event-browser[open]>summary:after,.event-footer details[open]>summary:after,.event-provenance[open]>summary:after{transform:translateY(2px) rotate(225deg)}.event-list{max-height:230px;overflow:auto;overscroll-behavior:contain}.event-row{display:block;width:100%;padding:10px;margin-bottom:5px;border:1px solid transparent;border-radius:var(--radius-9);text-align:left}.event-row:hover{background:#b0e9d608}.event-row[aria-current=true]{background:#b0e9d610;border-color:#b0e9d635}.event-row-top{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:8px}.event-row-top small{color:#7e9c8a;font:9px var(--mono)}.event-badge{font:10px var(--mono);color:var(--event-color);display:inline-flex;align-items:center;gap:7px}.event-badge:before{content:"";width:7px;height:7px;border-radius:var(--radius-round);background:var(--event-color);flex-shrink:0}.event-row strong{display:block;font-size:12px;font-weight:480;color:#d2e4da;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:#8aa798;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}.event-row time{font:9px var(--mono);color:#6f9380}.event-pagination{display:flex;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid var(--line)}.event-pagination button{font-size:10px}.event-content{padding:16px;min-width:0}.event-detail-nav{display:flex;align-items:center;gap:8px;padding:8px 16px 12px;border-bottom:1px solid var(--line)}.event-detail-nav>span{font:9px var(--mono);color:#92ad9e;text-align:center}.event-detail-nav button{font-size:11px;padding:7px 9px}.event-detail-heading h3{font-size:18px;font-weight:450;letter-spacing:-.4px;overflow-wrap:anywhere;margin:10px 0}.event-detail-heading p{color:#7f9f8c;font:10px var(--mono);line-height:1.6}.event-status{display:inline-block;margin-left:12px;color:#9ab7a6;font:9px var(--mono);border:1px solid #b0e9d629;padding:4px 7px;border-radius:var(--radius-4)}.event-status.failed{color:#eeaa9d;border-color:#eeaa9d40}.event-payload{margin-top:18px}.event-content h4{font:10px var(--mono);text-transform:uppercase;letter-spacing:.1em;color:#8aa997;margin:0 0 12px}.event-payload pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.8 var(--mono);color:#d4e6db;padding:12px;border:1px solid #b0e9d619;border-radius:var(--radius-9);background:#050e123d;tab-size:2}.event-warning{padding:12px;background:#eac5940a;border:1px solid #eac59430;border-radius:var(--radius-7);font-size:11px;color:#d6bc97}.event-correlations{margin-top:20px}.event-correlations p{font-size:11px;color:#91a999}.event-link{display:flex;align-items:center;gap:9px;padding:10px;width:100%;border:1px solid var(--line);border-radius:var(--radius-7);margin-bottom:6px;text-align:left}.event-link>span:nth-child(2){flex:1;overflow-wrap:anywhere;font-size:12px}.event-link small{font:9px var(--mono);color:#8ca594}.event-provenance{margin-top:18px;font-size:11px;color:#7e9d8b}.event-provenance summary{cursor:pointer;padding-block:10px}.event-provenance dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px}.event-provenance dd{margin:0;overflow-wrap:anywhere;font-family:var(--mono);font-size:10px}.event-footer{display:flex;align-items:center;gap:12px;padding:8px 16px;border-top:1px solid var(--line);background:#081216}.event-footer>.event-coverage{flex:1}.event-coverage{font-size:10px;line-height:1.6;color:#7d9c8b;max-height:70px;overflow:auto}.event-reload{font-size:11px;white-space:nowrap}.event-empty{padding:24px 12px;color:#90aa9c;font-size:12px;line-height:1.7}.event-panel button:disabled{opacity:.4;cursor:default}.event-panel[aria-busy=true] .event-scroll{opacity:.65}.event-key{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.event-key span{font:9px var(--mono)}.event-key i{display:inline-block;width:8px;height:8px;border-radius:var(--radius-round);margin-right:5px;background:var(--event-color)}.explore-events{width:100%;justify-content:center;margin-top:10px}.history-coverage{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.history-coverage>summary{min-height:24px;border-radius:var(--radius-4)}.settings-dialog{width:min(850px,calc(100% - 32px));max-width:none;height:min(710px,calc(100dvh - 48px));padding:0;overflow:hidden;background:#0c191e}.settings-dialog[open]{display:flex;flex-direction:column}.settings-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:30px 30px 24px;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at top left,#28534a44,transparent 70%)}.settings-heading h2{margin:0 0 4px;font-size:27px;letter-spacing:-.8px}.settings-heading p{margin:0;font-size:12px;color:#87a69a}.settings-close{font-size:25px;margin:-10px -12px 0 0}.settings-layout{display:grid;grid-template-columns:175px minmax(0,1fr);flex:1;min-height:0}.settings-tabs{padding:20px 12px;border-right:1px solid var(--line);background:#040b0e33}.settings-tabs button{display:flex;align-items:center;gap:10px;width:100%;padding:12px;margin-bottom:5px;text-align:left;font-size:12px;border-radius:var(--radius-8);color:#8aa79a}.settings-tabs button>svg{width:16px;height:16px;color:#6b9582}.settings-tabs button[aria-selected=true]{color:#d5eee2;background:#b0e9d610}.settings-tabs button[aria-selected=true]>svg{color:var(--color-accent)}.settings-tabs button:hover{background:#b0e9d609}.settings-content{min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:26px 30px}.settings-content h3{font-size:18px;font-weight:450;margin:0 0 7px;letter-spacing:-.4px}.settings-description{margin:0 0 20px;font-size:12px}.settings-sources-list{margin-top:20px;color:var(--muted);font-size:12px}.settings-import-progress{color:var(--muted);font-size:11px;line-height:1.6;margin-top:16px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px 0;border-bottom:1px solid var(--line)}.setting-row>span:first-child{flex:1;min-width:0}.setting-row strong{display:block;font-size:12px;font-weight:470;color:#d1e3d9}.setting-row small{display:block;margin-top:5px;font-size:11px;line-height:1.55;color:#83a090}.setting-row select{max-width:165px;min-width:120px;padding:9px;border:1px solid #b0e9d621;border-radius:var(--radius-7);background:#142620;color:#c7dfd2;font-size:11px}.setting-row input[type=checkbox]{appearance:none;flex-shrink:0;position:relative;width:34px;height:20px;margin:0;border-radius:var(--radius-20);border:1px solid #779c8b40;background:#1c2e28;cursor:pointer}.setting-row input[type=checkbox]:before{content:"";position:absolute;width:12px;height:12px;top:3px;left:3px;border-radius:var(--radius-round);background:#718f80;transition:transform .18s,background .18s}.setting-row input[type=checkbox]:checked{background:#b0e9d625;border-color:#b0e9d64a}.setting-row input[type=checkbox]:checked:before{transform:translate(14px);background:var(--color-accent)}.setting-slider{display:flex;align-items:center;width:160px;gap:10px;flex-shrink:0}.setting-slider input{accent-color:var(--color-accent);width:108px;min-width:0;cursor:pointer}.setting-slider output{min-width:36px;font:10px var(--mono);color:#bddaca;text-align:right}.setting-row:has(:disabled){opacity:.45}.settings-note{display:flex;align-items:center;gap:14px;margin-top:22px}.settings-note>span{flex:1;font-size:11px;color:#85a495;line-height:1.6}.settings-note button{flex:0 0 auto;font-size:11px}.settings-footnote{font-size:10px;color:#6f9280;margin-bottom:0}.settings-footer{display:flex;align-items:center;gap:12px;padding:15px 22px;border-top:1px solid var(--line);background:#081216}.settings-save-status{flex:1;font-size:10px;color:#7d9c8b;line-height:1.5}.settings-footer .text-button{font-size:11px}.settings-footer .primary-button{padding-inline:20px}@media(max-width:650px){.settings-dialog{width:calc(100% - 20px);height:calc(100dvh - 24px);max-height:none}.settings-heading{padding:23px 20px 18px}.settings-heading h2{font-size:23px}.settings-layout{display:flex;flex-direction:column}.settings-tabs{display:flex;padding:9px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto;flex-shrink:0}.settings-tabs button{width:auto;flex:1 0 auto;margin:0;padding:9px 11px;font-size:11px;justify-content:center}.settings-tabs button>svg{width:14px;height:14px}.settings-content{padding:22px 18px}.setting-row{gap:12px}.setting-slider{width:128px}.setting-slider input{width:78px}.setting-row select{min-width:100px;max-width:135px}.settings-footer{flex-wrap:wrap;padding:12px 18px}.settings-save-status{flex-basis:100%}.settings-footer .text-button{margin-right:auto}}.toast{position:fixed;left:50%;bottom:155px;transform:translate(-50%);max-width:min(440px,calc(100% - 32px));padding:12px 18px;background:#15251ff5;color:#c8e5d4;border:1px solid #9fbfad44;border-radius:var(--radius-10);box-shadow:0 10px 30px #0005;font-size:12px;line-height:1.7;z-index:100}.desktop-update{position:fixed;left:24px;bottom:24px;z-index:45;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;min-width:86px;padding:6px 12px;border-radius:var(--radius-10);color:var(--mint);font-size:11px;font-weight:450;line-height:18px;white-space:nowrap}.desktop-update svg{width:13px;height:13px}.desktop-update:hover{background:#172c29;border-color:#b0e9d633;color:#e9fff4}.desktop-update:disabled{opacity:1;color:#8ba198}.desktop-update[data-phase=downloading] svg,.desktop-update[data-phase=installing] svg{opacity:.65}.shortcut-hints{position:fixed;left:24px;bottom:24px;z-index:10;display:grid;gap:7px;color:#82938f;font-size:10px;pointer-events:none}.shortcut-hints span{display:flex;align-items:center;gap:8px}.shortcut-hints kbd{min-width:22px;padding:2px 4px;border:1px solid #a3bdb523;border-radius:var(--radius-4);color:#a3b5ae;background:#0b141b66;font:9px var(--mono);text-align:center}#app:has(.desktop-update:not([hidden])) .shortcut-hints{bottom:66px}@media(min-width:760px)and (max-width:1000px){.shortcut-hints{bottom:165px}#app:has(.desktop-update:not([hidden])) .shortcut-hints{bottom:165px}}@keyframes panel-in{0%{opacity:0}to{opacity:1}}@keyframes orbit{to{transform:rotateX(55deg) rotateY(20deg) rotate(360deg)}}@keyframes shimmer{to{background-position:-200% 0}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1000px){.sidebar{width:300px}.inspector-stack{width:320px}}@media(max-width:759px){.shortcut-hints{display:none}.app-header{top:12px;left:12px;height:44px}.brand>span{font-size:19px}.app-header .toolbar-button{padding-inline:7px}.map-controls{top:auto;right:auto;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translate(-50%);height:46px}.floating-panel{border-radius:var(--radius-14)}.sidebar,.inspector-stack{top:70px;left:12px;right:auto;width:min(330px,calc(100% - 24px));max-height:calc(100dvh - 280px)}.sidebar{height:min(500px,calc(100dvh - 280px))}.inspector-stack{width:min(350px,calc(100% - 24px));inset:auto 12px 250px auto;max-height:min(40dvh,calc(100dvh - 450px))}.inspector-stack.has-events{height:min(420px,40dvh);gap:8px}.has-events .inspector{flex-basis:135px;max-height:26%}.event-content{padding:12px}.event-detail-heading h3{font-size:16px}.timeline-dock{bottom:max(72px,calc(env(safe-area-inset-bottom) + 60px));width:calc(100% - 24px)}.timeline-panel{padding:9px 12px 15px;border-radius:var(--radius-14)}.timeline-dock .timeline-controls .timeline-top{flex-wrap:wrap;gap:0;margin-bottom:13px}.timeline-dock .timeline-top .panel-title{flex-basis:calc(100% - 72px);font-size:12px}.timeline-dock .timeline-top .range-buttons{order:4;width:100%;margin:4px 0 0;gap:5px}.timeline-dock .range-buttons button{padding:5px 12px}.timeline-dock .timeline-top .icon-button{width:32px;height:32px}.timeline-track{gap:12px}.histogram{gap:2px}.toast{bottom:230px}.desktop-update{left:12px;bottom:max(72px,calc(env(safe-area-inset-bottom) + 60px))}#app:has(.desktop-update:not([hidden])) .timeline-dock{bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px))}#app:has(.desktop-update:not([hidden])) .inspector-stack{bottom:290px}}@media(min-width:760px)and (max-height:600px){.sidebar,.inspector-stack,.inspector-stack.has-events{max-height:calc(100dvh - 100px)}.sidebar{height:calc(100dvh - 100px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.search-dialog{width:min(960px,calc(100% - 48px));max-width:none;height:min(680px,calc(100dvh - 100px));max-height:none;padding:0;overflow:hidden;border-radius:var(--radius-18);background:#0b171bf5;-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);box-shadow:0 30px 120px #0009}.search-dialog[open]{display:flex;flex-direction:column}.search-dialog::backdrop{background:#02070c88;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.search-command{display:flex;align-items:center;gap:13px;padding:17px 20px;border-bottom:1px solid var(--line)}.search-command-icon{font-size:26px;color:#9dcab7}.search-command input{min-width:0;flex:1;border:0;outline:0;background:none;color:#e0f1e8;font-size:17px}.search-command input::placeholder{color:#6c8b7b}.search-close{font-size:23px}.search-options{display:flex;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid var(--line)}.search-options select{font-size:12px;color:#bcdbcb;padding:5px 20px 5px 0;border:0;background:none}.search-chip{padding:5px 9px;border:1px solid #bddfd21a;border-radius:var(--radius-6);font-size:11px;color:#8fa99b}.search-chip[aria-pressed=true]{color:#b7e2cd;background:#b0e9d60a;border-color:#b0e9d629}#search-index-state{margin-left:auto;font-size:11px;color:#7d9c8c}.search-body{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);flex:1;min-height:0}.search-results{overflow-y:auto;overscroll-behavior:contain;min-height:0}.search-results-inner{position:relative}.search-result{position:absolute;left:7px;right:7px;height:86px;border-radius:var(--radius-8);padding:11px 13px;cursor:pointer;border:1px solid transparent}.search-result.active{border-color:#b0e9d626;background:#b0e9d60e}.search-result:hover{background:#b0e9d60a}.search-result-title{font-size:13px;font-weight:440;color:#d2e5d9;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.search-result-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#8ca996;margin-top:7px}.search-result-meta>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.match-kind{flex-shrink:0;color:#a0c7b0}.search-result-excerpt{font-size:11px;color:#759586;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:6px}.search-dialog mark{color:#dbffe7;background:#b6f4d111;border-radius:var(--radius-2)}.search-preview{border-left:1px solid var(--line);min-height:0;overflow-y:auto;overscroll-behavior:contain}.search-preview-heading{padding:22px}.search-preview-heading>span{color:#8ba898;font-size:11px}.search-preview-heading h2{margin:10px 0;font-size:20px;line-height:1.4;overflow-wrap:anywhere}.search-preview-heading p{margin:0 0 18px;font-size:11px}.search-open{width:100%}.search-open span{margin-left:auto}.search-launch{width:100%;justify-content:center;margin-top:7px}.search-preview-section{padding:19px 22px;border-top:1px solid var(--line)}.search-preview-section h3{color:#a9c6b4;font-size:12px;font-weight:450;margin:0 0 14px}.search-preview-section p{margin:8px 0 15px;font-size:12px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-line}.search-preview-section article{margin:15px 0}.search-preview-section article>span{color:#b5d1bd;font-size:11px}.search-preview-section .preview-coverage{color:#718f7e;font-size:11px;margin-bottom:0}.search-footer{position:relative;display:flex;align-items:center;gap:14px;padding:12px 18px;border-top:1px solid var(--line);color:#87a592;font-size:11px}.search-footer button{color:var(--color-accent);font-size:11px}.search-keys{margin-left:auto;white-space:nowrap}.search-keys kbd{padding:1px 4px;margin-right:3px;font-size:10px}.search-keys kbd:not(:first-child){margin-left:10px}.search-syntax>div{position:absolute;bottom:45px;right:18px;display:flex;flex-direction:column;gap:10px;padding:18px;background:#132722;border:1px solid #b0e9d629;border-radius:var(--radius-10);box-shadow:0 10px 30px #0006}.search-syntax code{color:#b4d7c2;font:11px var(--mono)}#search-clear-cache{margin-top:4px;padding:12px 0 0;border-top:1px solid var(--line);text-align:left}.source-badge{display:inline-flex;align-items:center;gap:6px;font:10px var(--mono);letter-spacing:.02em;color:#b5c8d9}.source-icon{display:inline-block;width:16px;height:16px;flex:0 0 16px;vertical-align:-3px;background:currentColor;mask:var(--source-icon) center / contain no-repeat;-webkit-mask:var(--source-icon) center / contain no-repeat}.source-icon-claude{color:#d9a387}.source-icon-openai{color:#b4d9c6}.source-icon-t3{color:#d2b7ec}.source-icon-opencode{color:#c7d0d7}.source-icon-gemini,.source-icon-cline{color:#9cbcf6}.source-icon-qwen{color:#b8a6ec}.source-icon-pi{color:#e9a89c}.source-icon-copilot{color:#c7d0d7}.source-icon-roo{color:#d9b59a}.source-icon-kilo{color:#e6ce83}.source-icon-continue{color:#abd9bb}.source-icon-openclaw,.source-icon-cherry{color:#efa2a0}.source-icon-hermes,.source-icon-amp,.source-icon-mistral{color:#e9bd85}.source-icon-kimi,.source-icon-deepseek,.source-icon-minimax,.source-icon-antigravity{color:#a7bcf2}.source-icon-grok,.source-icon-zed{color:#c3d2d7}.source-icon-junie,.source-icon-kiro,.source-icon-muse{color:#c4adea}.source-icon-mimo{color:#e9ae82}.source-icon-devin,.source-icon-goose,.source-icon-unsloth{color:#a8d6b9}.source-icon-codebuddy,.source-icon-commandcode{color:#b3d6dd}.source-icon-prime,.source-icon-senpi,.source-icon-kimchi,.source-icon-gajae{color:#d5c4a9}.source-icon-droid,.source-icon-codebuff,.source-icon-freebuff,.source-icon-jcode,.source-icon-zcode{color:#bed2c5}.source-icon-proma,.source-icon-aside,.source-icon-augment,.source-icon-fx,.source-icon-crush,.source-icon-octofriend,.source-icon-mux{color:#d0c0dd}.source-symbol .source-icon{width:20px;height:20px;flex-basis:20px}.source-badge .source-icon,.search-result-meta .source-icon{width:12px;height:12px;flex-basis:12px;vertical-align:-2px}.search-result-meta .source-icon{margin-right:5px}.search-launch{display:inline-flex;gap:8px;align-items:center}.source-badge[data-source=claude-code]{color:#d8b297}.source-badge[data-source=codex]{color:#a5d1ba}.detail-title>.source-badge{margin-bottom:10px}.imports-dialog{width:min(680px,calc(100vw - 28px));max-width:680px;padding:32px}.imports-dialog[open]{display:flex;flex-direction:column;overflow-y:auto}.imports-dialog>*{flex-shrink:0}.imports-dialog>.import-sources{flex:1 1 auto;min-height:100px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.imports-dialog .primary-button{flex:0 0 auto;white-space:nowrap}.imports-dialog .eyebrow{font:10px var(--mono);letter-spacing:.18em;color:#83b9a3}.imports-dialog h2{margin:16px 0 12px;font-size:clamp(24px,4vw,32px);font-weight:450;letter-spacing:-.04em}.imports-intro{color:#91a99d;font-size:13px;line-height:1.6;margin-bottom:14px}.privacy-disclosure{color:#91a99d;font-size:11px;line-height:1.65;margin-bottom:24px}.privacy-disclosure summary{cursor:pointer;color:#aec9bb}.privacy-disclosure p{font-size:inherit;line-height:inherit;margin:10px 0 0}.import-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:6px}.import-source{display:flex;align-items:center;min-width:0;min-height:52px;gap:9px;padding:8px 10px;border:1px solid #b0e9d61c;border-radius:var(--radius-8);cursor:pointer;background:#b0e9d603}.import-source:has(input:checked){border-color:#b0e9d658;background:#b0e9d608}.import-source:hover{background:#b0e9d60e}.import-source:focus-within{outline:1px solid var(--color-accent);outline-offset:1px}.import-source:has(input:disabled){opacity:.6;cursor:wait}.import-source input{accent-color:#a4d8bf;flex:0 0 auto;margin:0}.source-symbol{display:grid;place-items:center;width:22px;height:22px;color:#bed3c7;flex:0 0 auto}.source-copy{flex:1;min-width:0}.import-source strong{display:block;font-size:12px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.import-source .source-meta{display:flex;flex-wrap:wrap;gap:4px 8px;color:#879d90;font-size:10px;line-height:1.35;margin-top:3px}.import-source .source-error{display:block;color:#e4ba96;font-size:10px;line-height:1.4;margin-top:3px;overflow-wrap:anywhere}.source-detected{color:#789083;white-space:nowrap}.source-detected.detected{color:#aedbc4}.imports-progress{font:11px var(--mono);color:#9fc2af;margin-top:20px;line-height:1.8;min-height:20px}.imports-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px}.imports-dialog footer>span{color:#789083;font-size:11px}.imports-notes{color:#91a99d;font-size:11px;line-height:1.6;margin-top:12px}.imports-notes>div{max-height:150px;overflow-y:auto}@media(max-width:600px){.imports-dialog{padding:26px 20px}.import-sources{grid-template-columns:minmax(0,1fr);gap:4px}.import-source{min-height:44px;padding:6px 9px}.imports-dialog footer{flex-wrap:wrap}}.search-empty{padding:30px 22px;color:#98b4a4;font-size:13px}.launch-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:28px;border-radius:var(--radius-16)}.launch-dialog h2{font-size:20px;margin:0 35px 10px 0}.launch-title{margin:0 0 24px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.launch-destination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;font-size:12px;color:#a9c6b4}.launch-destination select{min-width:0;max-width:77%;border:1px solid var(--line);border-radius:var(--radius-7);padding:9px;background:#132321;color:#d1e5d9;font-size:12px}.launch-web-link{width:100%}.launch-pairing{margin-top:19px;font-size:11px;color:#8fa99b}.launch-pairing p,.launch-hint{font-size:11px;line-height:1.7}.launch-directory-label{display:grid;gap:9px;margin-bottom:18px;color:#a9c6b4;font-size:12px}.launch-directory{min-width:0;width:100%;padding:10px;background:#071114;color:#c8e5d5;border:1px solid var(--line);border-radius:var(--radius-7);font:11px var(--mono)}.launch-summary{margin-bottom:18px;padding:13px;border:1px solid #b0e9d625;border-radius:var(--radius-9);background:#b0e9d608}.launch-mode{color:#b8ddc9;font-size:12px;font-weight:500}.launch-hint{margin:7px 0 0;color:#9eb6a8}.launch-context{margin-top:12px;color:#a1b9ac;font-size:11px}.launch-context summary{cursor:pointer}.launch-coverage{line-height:1.7}.launch-context-path{display:block;overflow-wrap:anywhere;font:10px/1.7 var(--mono);color:#7e9e8e}.launch-availability{color:#c4b89b;font-size:11px;line-height:1.7;margin-bottom:0}.launch-availability:empty{display:none}.launch-command{display:block;width:100%;background:#071114;border:1px solid var(--line);border-radius:var(--radius-7);padding:11px;color:#c8e5d5;font:11px var(--mono)}.launch-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.launch-actions>button{flex:1;white-space:nowrap}.launch-status{margin:14px 0 0;font-size:12px;line-height:1.6}.launch-status:empty{display:none}@media(max-width:759px){.search-dialog{width:calc(100% - 24px);height:calc(100dvh - 48px);border-radius:var(--radius-14)}.search-command{padding:12px;gap:8px}.search-command input{font-size:16px}.search-options{flex-wrap:wrap;padding:9px 14px;gap:7px 12px}#search-index-state{flex-basis:100%;margin-left:0}.search-body{grid-template-columns:1fr;grid-template-rows:minmax(150px,1fr) minmax(130px,.7fr)}.search-preview{border-left:0;border-top:1px solid var(--line)}.search-preview-heading{padding:16px}.search-preview-heading h2{font-size:17px}.search-preview-section{padding:16px}.search-footer{padding:10px 14px}.search-keys{display:none}.search-syntax{margin-left:auto}}.publishing-dialog{width:min(880px,calc(100% - 32px));max-width:none}.publishing-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px}.publishing-dialog h2{margin:0}.publishing-disclosure,.publishing-scope{color:var(--muted);font-size:12px;line-height:1.7}.publishing-dialog .publishing-disclosure{margin:12px 0 8px}.publishing-settings{margin:0 0 12px}.publishing-settings summary{display:flex;align-items:center;gap:10px;padding:10px 0;color:var(--color-accent);cursor:pointer;font-size:12px}.publishing-settings summary:after{content:"";width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg)}.publishing-settings .publishing-scope{margin-right:auto}.publishing-settings>.text-button{margin-bottom:8px}.publishing-settings[open] summary:after{transform:translateY(2px) rotate(225deg)}.publishing-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;margin:0;gap:14px 20px;padding:8px 0 18px;border:0}.publishing-fields label{display:flex;gap:9px;align-items:center;font-size:12px;line-height:1.7}.publishing-fields label:has(input:disabled){opacity:.5}.publishing-dialog input[type=checkbox]{accent-color:var(--color-accent)}.publishing-account,.publishing-dialog footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.publishing-account{min-height:22px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.publishing-account-placeholder{width:100px;height:12px;border-radius:var(--radius-4);background:var(--control-hover)}.publishing-account [data-account]{margin-right:auto}.publishing-account .secondary-button{flex:0 0 auto;width:auto;max-width:100%}.publishing-account [data-login]{gap:8px;min-height:38px;padding:9px 14px}.publishing-account [data-login] svg{width:16px;height:16px}.publishing-dialog .publishing-status{font-size:12px;line-height:1.7;color:var(--color-accent);margin:12px 0}.publishing-status:empty,.publishing-preview:empty{display:none}.publishing-preview.public-viewer,.publishing-preview[aria-busy=true],.publishing-json{height:clamp(380px,48vh,540px);min-height:380px}.publishing-preview[aria-busy=true]:not(.public-viewer){display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--radius-12);color:var(--muted);font-size:12px}.publishing-dialog footer{justify-content:flex-end;margin-top:18px}.publishing-dialog footer .primary-button{flex:0 0 auto;white-space:nowrap;padding-inline:18px}.publishing-dialog footer .publishing-link{margin-right:auto;color:var(--color-accent);font-size:13px}.publishing-json{margin:0;overflow:auto;padding:15px;border:1px solid var(--line);border-radius:var(--radius-12);background:var(--color-inset);font:11px/1.5 monospace}.publishing-error{padding:18px;border:1px solid #e7b29b40;border-radius:var(--radius-10);background:#e7b29b08}.publishing-error p{margin:0 0 12px;color:var(--color-error)}.publishing-connect{margin-block:15px;font-size:13px}.publishing-connect strong{font-family:monospace;letter-spacing:.1em}.publishing-browser-link{display:grid;gap:7px;margin-top:16px;color:var(--muted);font-size:12px}.publishing-browser-link input{width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:var(--radius-6);background:var(--color-inset);color:var(--color-text);font:11px/1.5 monospace}.publishing-connect [data-copy-link]{margin-top:6px}.publishing-dialog a[aria-busy=true]{opacity:.6;cursor:progress}@media(max-width:600px){.publishing-dialog{padding:20px}.publishing-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{R as a,j as i,C as R}from"./index-D24Hz9MJ.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};
|