@maudecode/talaria-web 0.0.0
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/contract_versions.json +18 -0
- package/dist/api/auth-raw.d.ts +9 -0
- package/dist/api/auth-raw.js +134 -0
- package/dist/api/auth-raw.js.map +1 -0
- package/dist/api/automation-raw.d.ts +16 -0
- package/dist/api/automation-raw.js +340 -0
- package/dist/api/automation-raw.js.map +1 -0
- package/dist/api/automation-router.d.ts +788 -0
- package/dist/api/automation-router.js +248 -0
- package/dist/api/automation-router.js.map +1 -0
- package/dist/api/chat-router.d.ts +375 -0
- package/dist/api/chat-router.js +446 -0
- package/dist/api/chat-router.js.map +1 -0
- package/dist/api/git-router.d.ts +681 -0
- package/dist/api/git-router.js +275 -0
- package/dist/api/git-router.js.map +1 -0
- package/dist/api/raw-routes.d.ts +10 -0
- package/dist/api/raw-routes.js +466 -0
- package/dist/api/raw-routes.js.map +1 -0
- package/dist/api/router.d.ts +226 -0
- package/dist/api/router.js +331 -0
- package/dist/api/router.js.map +1 -0
- package/dist/api/session-visibility.d.ts +12 -0
- package/dist/api/session-visibility.js +51 -0
- package/dist/api/session-visibility.js.map +1 -0
- package/dist/api/sessions-router.d.ts +1728 -0
- package/dist/api/sessions-router.js +815 -0
- package/dist/api/sessions-router.js.map +1 -0
- package/dist/api/settings-router.d.ts +592 -0
- package/dist/api/settings-router.js +474 -0
- package/dist/api/settings-router.js.map +1 -0
- package/dist/api/sse-routes.d.ts +51 -0
- package/dist/api/sse-routes.js +602 -0
- package/dist/api/sse-routes.js.map +1 -0
- package/dist/api/tools-raw.d.ts +5 -0
- package/dist/api/tools-raw.js +291 -0
- package/dist/api/tools-raw.js.map +1 -0
- package/dist/api/tools-router.d.ts +494 -0
- package/dist/api/tools-router.js +349 -0
- package/dist/api/tools-router.js.map +1 -0
- package/dist/app.d.ts +4787 -0
- package/dist/app.js +453 -0
- package/dist/app.js.map +1 -0
- package/dist/auth/cookies.d.ts +17 -0
- package/dist/auth/cookies.js +42 -0
- package/dist/auth/cookies.js.map +1 -0
- package/dist/auth/crypto.d.ts +9 -0
- package/dist/auth/crypto.js +38 -0
- package/dist/auth/crypto.js.map +1 -0
- package/dist/auth/gate.d.ts +39 -0
- package/dist/auth/gate.js +406 -0
- package/dist/auth/gate.js.map +1 -0
- package/dist/auth/oidc.d.ts +138 -0
- package/dist/auth/oidc.js +836 -0
- package/dist/auth/oidc.js.map +1 -0
- package/dist/auth/passkeys.d.ts +49 -0
- package/dist/auth/passkeys.js +310 -0
- package/dist/auth/passkeys.js.map +1 -0
- package/dist/auth/store.d.ts +116 -0
- package/dist/auth/store.js +485 -0
- package/dist/auth/store.js.map +1 -0
- package/dist/bin/talaria-web-mcp.d.ts +2 -0
- package/dist/bin/talaria-web-mcp.js +12 -0
- package/dist/bin/talaria-web-mcp.js.map +1 -0
- package/dist/bin/talaria-web.d.ts +2 -0
- package/dist/bin/talaria-web.js +87 -0
- package/dist/bin/talaria-web.js.map +1 -0
- package/dist/cli/ctl.d.ts +58 -0
- package/dist/cli/ctl.js +643 -0
- package/dist/cli/ctl.js.map +1 -0
- package/dist/cli/dotenv.d.ts +30 -0
- package/dist/cli/dotenv.js +115 -0
- package/dist/cli/dotenv.js.map +1 -0
- package/dist/cli/launcher.d.ts +49 -0
- package/dist/cli/launcher.js +213 -0
- package/dist/cli/launcher.js.map +1 -0
- package/dist/cli/supervise.d.ts +10 -0
- package/dist/cli/supervise.js +33 -0
- package/dist/cli/supervise.js.map +1 -0
- package/dist/cli/web-root.d.ts +2 -0
- package/dist/cli/web-root.js +23 -0
- package/dist/cli/web-root.js.map +1 -0
- package/dist/config/agent-config.d.ts +109 -0
- package/dist/config/agent-config.js +632 -0
- package/dist/config/agent-config.js.map +1 -0
- package/dist/config.d.ts +36 -0
- package/dist/config.js +105 -0
- package/dist/config.js.map +1 -0
- package/dist/fs/atomic.d.ts +7 -0
- package/dist/fs/atomic.js +68 -0
- package/dist/fs/atomic.js.map +1 -0
- package/dist/http/addresses.d.ts +5 -0
- package/dist/http/addresses.js +68 -0
- package/dist/http/addresses.js.map +1 -0
- package/dist/http/capped.d.ts +2 -0
- package/dist/http/capped.js +22 -0
- package/dist/http/capped.js.map +1 -0
- package/dist/http/context.d.ts +281 -0
- package/dist/http/context.js +327 -0
- package/dist/http/context.js.map +1 -0
- package/dist/http/csp.d.ts +11 -0
- package/dist/http/csp.js +51 -0
- package/dist/http/csp.js.map +1 -0
- package/dist/http/origin.d.ts +39 -0
- package/dist/http/origin.js +183 -0
- package/dist/http/origin.js.map +1 -0
- package/dist/http/pinned.d.ts +18 -0
- package/dist/http/pinned.js +62 -0
- package/dist/http/pinned.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/server.d.ts +29 -0
- package/dist/mcp/server.js +221 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/onboarding.d.ts +57 -0
- package/dist/onboarding.js +381 -0
- package/dist/onboarding.js.map +1 -0
- package/dist/profiles/profiles.d.ts +96 -0
- package/dist/profiles/profiles.js +476 -0
- package/dist/profiles/profiles.js.map +1 -0
- package/dist/projects.d.ts +36 -0
- package/dist/projects.js +102 -0
- package/dist/projects.js.map +1 -0
- package/dist/providers/catalog.d.ts +118 -0
- package/dist/providers/catalog.js +868 -0
- package/dist/providers/catalog.js.map +1 -0
- package/dist/providers/env-file.d.ts +6 -0
- package/dist/providers/env-file.js +106 -0
- package/dist/providers/env-file.js.map +1 -0
- package/dist/providers/runtime-env.d.ts +20 -0
- package/dist/providers/runtime-env.js +85 -0
- package/dist/providers/runtime-env.js.map +1 -0
- package/dist/providers/tables.d.ts +54 -0
- package/dist/providers/tables.js +54 -0
- package/dist/providers/tables.js.map +1 -0
- package/dist/redact.d.ts +23 -0
- package/dist/redact.js +337 -0
- package/dist/redact.js.map +1 -0
- package/dist/release.d.ts +16 -0
- package/dist/release.js +114 -0
- package/dist/release.js.map +1 -0
- package/dist/runtime.d.ts +21 -0
- package/dist/runtime.js +680 -0
- package/dist/runtime.js.map +1 -0
- package/dist/server.d.ts +20 -0
- package/dist/server.js +90 -0
- package/dist/server.js.map +1 -0
- package/dist/sessions/anchor.d.ts +43 -0
- package/dist/sessions/anchor.js +311 -0
- package/dist/sessions/anchor.js.map +1 -0
- package/dist/sessions/cli-sessions.d.ts +27 -0
- package/dist/sessions/cli-sessions.js +158 -0
- package/dist/sessions/cli-sessions.js.map +1 -0
- package/dist/sessions/completions.d.ts +62 -0
- package/dist/sessions/completions.js +332 -0
- package/dist/sessions/completions.js.map +1 -0
- package/dist/sessions/drafts.d.ts +26 -0
- package/dist/sessions/drafts.js +117 -0
- package/dist/sessions/drafts.js.map +1 -0
- package/dist/sessions/events.d.ts +32 -0
- package/dist/sessions/events.js +80 -0
- package/dist/sessions/events.js.map +1 -0
- package/dist/sessions/export.d.ts +4 -0
- package/dist/sessions/export.js +186 -0
- package/dist/sessions/export.js.map +1 -0
- package/dist/sessions/gateway-watcher.d.ts +58 -0
- package/dist/sessions/gateway-watcher.js +199 -0
- package/dist/sessions/gateway-watcher.js.map +1 -0
- package/dist/sessions/journal.d.ts +103 -0
- package/dist/sessions/journal.js +543 -0
- package/dist/sessions/journal.js.map +1 -0
- package/dist/sessions/list.d.ts +130 -0
- package/dist/sessions/list.js +846 -0
- package/dist/sessions/list.js.map +1 -0
- package/dist/sessions/merge.d.ts +57 -0
- package/dist/sessions/merge.js +517 -0
- package/dist/sessions/merge.js.map +1 -0
- package/dist/sessions/pending.d.ts +69 -0
- package/dist/sessions/pending.js +271 -0
- package/dist/sessions/pending.js.map +1 -0
- package/dist/sessions/reasoning-titles.d.ts +31 -0
- package/dist/sessions/reasoning-titles.js +143 -0
- package/dist/sessions/reasoning-titles.js.map +1 -0
- package/dist/sessions/relay.d.ts +131 -0
- package/dist/sessions/relay.js +577 -0
- package/dist/sessions/relay.js.map +1 -0
- package/dist/sessions/service.d.ts +189 -0
- package/dist/sessions/service.js +1344 -0
- package/dist/sessions/service.js.map +1 -0
- package/dist/sessions/session.d.ts +131 -0
- package/dist/sessions/session.js +505 -0
- package/dist/sessions/session.js.map +1 -0
- package/dist/sessions/shares.d.ts +31 -0
- package/dist/sessions/shares.js +267 -0
- package/dist/sessions/shares.js.map +1 -0
- package/dist/sessions/state-db.d.ts +52 -0
- package/dist/sessions/state-db.js +641 -0
- package/dist/sessions/state-db.js.map +1 -0
- package/dist/sessions/state-saved.d.ts +13 -0
- package/dist/sessions/state-saved.js +47 -0
- package/dist/sessions/state-saved.js.map +1 -0
- package/dist/sessions/store.d.ts +124 -0
- package/dist/sessions/store.js +790 -0
- package/dist/sessions/store.js.map +1 -0
- package/dist/sessions/streams.d.ts +90 -0
- package/dist/sessions/streams.js +200 -0
- package/dist/sessions/streams.js.map +1 -0
- package/dist/sessions/titles.d.ts +17 -0
- package/dist/sessions/titles.js +231 -0
- package/dist/sessions/titles.js.map +1 -0
- package/dist/sessions/todo.d.ts +8 -0
- package/dist/sessions/todo.js +72 -0
- package/dist/sessions/todo.js.map +1 -0
- package/dist/sessions/turn-context.d.ts +27 -0
- package/dist/sessions/turn-context.js +136 -0
- package/dist/sessions/turn-context.js.map +1 -0
- package/dist/sessions/turn.d.ts +178 -0
- package/dist/sessions/turn.js +1357 -0
- package/dist/sessions/turn.js.map +1 -0
- package/dist/sessions/window.d.ts +10 -0
- package/dist/sessions/window.js +151 -0
- package/dist/sessions/window.js.map +1 -0
- package/dist/settings.d.ts +57 -0
- package/dist/settings.js +481 -0
- package/dist/settings.js.map +1 -0
- package/dist/sidecar/client.d.ts +75 -0
- package/dist/sidecar/client.js +252 -0
- package/dist/sidecar/client.js.map +1 -0
- package/dist/sidecar/discover.d.ts +22 -0
- package/dist/sidecar/discover.js +146 -0
- package/dist/sidecar/discover.js.map +1 -0
- package/dist/sidecar/fake.d.ts +37 -0
- package/dist/sidecar/fake.js +79 -0
- package/dist/sidecar/fake.js.map +1 -0
- package/dist/spa.d.ts +42 -0
- package/dist/spa.js +145 -0
- package/dist/spa.js.map +1 -0
- package/dist/startup.d.ts +19 -0
- package/dist/startup.js +44 -0
- package/dist/startup.js.map +1 -0
- package/dist/test/harness.d.ts +41 -0
- package/dist/test/harness.js +123 -0
- package/dist/test/harness.js.map +1 -0
- package/dist/text/diff.d.ts +16 -0
- package/dist/text/diff.js +122 -0
- package/dist/text/diff.js.map +1 -0
- package/dist/text/markdown.d.ts +8 -0
- package/dist/text/markdown.js +185 -0
- package/dist/text/markdown.js.map +1 -0
- package/dist/tools/crons.d.ts +51 -0
- package/dist/tools/crons.js +317 -0
- package/dist/tools/crons.js.map +1 -0
- package/dist/tools/extensions.d.ts +92 -0
- package/dist/tools/extensions.js +1096 -0
- package/dist/tools/extensions.js.map +1 -0
- package/dist/tools/health.d.ts +21 -0
- package/dist/tools/health.js +334 -0
- package/dist/tools/health.js.map +1 -0
- package/dist/tools/hygiene.d.ts +29 -0
- package/dist/tools/hygiene.js +112 -0
- package/dist/tools/hygiene.js.map +1 -0
- package/dist/tools/insights.d.ts +3 -0
- package/dist/tools/insights.js +92 -0
- package/dist/tools/insights.js.map +1 -0
- package/dist/tools/kanban.d.ts +25 -0
- package/dist/tools/kanban.js +79 -0
- package/dist/tools/kanban.js.map +1 -0
- package/dist/tools/mcp-health.d.ts +28 -0
- package/dist/tools/mcp-health.js +207 -0
- package/dist/tools/mcp-health.js.map +1 -0
- package/dist/tools/mcp.d.ts +34 -0
- package/dist/tools/mcp.js +269 -0
- package/dist/tools/mcp.js.map +1 -0
- package/dist/tools/memory.d.ts +20 -0
- package/dist/tools/memory.js +216 -0
- package/dist/tools/memory.js.map +1 -0
- package/dist/tools/skills.d.ts +43 -0
- package/dist/tools/skills.js +193 -0
- package/dist/tools/skills.js.map +1 -0
- package/dist/tools/terminal.d.ts +96 -0
- package/dist/tools/terminal.js +324 -0
- package/dist/tools/terminal.js.map +1 -0
- package/dist/tools/updates.d.ts +151 -0
- package/dist/tools/updates.js +1151 -0
- package/dist/tools/updates.js.map +1 -0
- package/dist/util.d.ts +6 -0
- package/dist/util.js +40 -0
- package/dist/util.js.map +1 -0
- package/dist/workspace/fs.d.ts +61 -0
- package/dist/workspace/fs.js +555 -0
- package/dist/workspace/fs.js.map +1 -0
- package/dist/workspace/git.d.ts +204 -0
- package/dist/workspace/git.js +1236 -0
- package/dist/workspace/git.js.map +1 -0
- package/dist/workspace/media.d.ts +47 -0
- package/dist/workspace/media.js +448 -0
- package/dist/workspace/media.js.map +1 -0
- package/dist/workspace/paths.d.ts +6 -0
- package/dist/workspace/paths.js +41 -0
- package/dist/workspace/paths.js.map +1 -0
- package/dist/workspace/rollback.d.ts +29 -0
- package/dist/workspace/rollback.js +337 -0
- package/dist/workspace/rollback.js.map +1 -0
- package/dist/workspace/unzip.d.ts +9 -0
- package/dist/workspace/unzip.js +61 -0
- package/dist/workspace/unzip.js.map +1 -0
- package/dist/workspace/upload.d.ts +40 -0
- package/dist/workspace/upload.js +215 -0
- package/dist/workspace/upload.js.map +1 -0
- package/dist/workspace/workspaces.d.ts +84 -0
- package/dist/workspace/workspaces.js +663 -0
- package/dist/workspace/workspaces.js.map +1 -0
- package/dist/workspace/worktrees.d.ts +14 -0
- package/dist/workspace/worktrees.js +171 -0
- package/dist/workspace/worktrees.js.map +1 -0
- package/dist/workspace/zip.d.ts +16 -0
- package/dist/workspace/zip.js +205 -0
- package/dist/workspace/zip.js.map +1 -0
- package/package.json +54 -0
- package/sidecar/agent_dependency.json +11 -0
- package/sidecar/scripts/record-fixtures.py +72 -0
- package/sidecar/scripts/replay_sidecar.py +113 -0
- package/sidecar/scripts/test.sh +22 -0
- package/sidecar/talaria_sidecar/__init__.py +10 -0
- package/sidecar/talaria_sidecar/__main__.py +46 -0
- package/sidecar/talaria_sidecar/errors.py +41 -0
- package/sidecar/talaria_sidecar/home.py +103 -0
- package/sidecar/talaria_sidecar/methods/__init__.py +37 -0
- package/sidecar/talaria_sidecar/methods/aux.py +160 -0
- package/sidecar/talaria_sidecar/methods/chat.py +791 -0
- package/sidecar/talaria_sidecar/methods/commands.py +340 -0
- package/sidecar/talaria_sidecar/methods/config.py +131 -0
- package/sidecar/talaria_sidecar/methods/cron.py +558 -0
- package/sidecar/talaria_sidecar/methods/gateway.py +106 -0
- package/sidecar/talaria_sidecar/methods/goals.py +225 -0
- package/sidecar/talaria_sidecar/methods/kanban.py +723 -0
- package/sidecar/talaria_sidecar/methods/mcp.py +65 -0
- package/sidecar/talaria_sidecar/methods/process.py +155 -0
- package/sidecar/talaria_sidecar/methods/profiles.py +254 -0
- package/sidecar/talaria_sidecar/methods/providers.py +241 -0
- package/sidecar/talaria_sidecar/methods/runtime.py +68 -0
- package/sidecar/talaria_sidecar/methods/skills.py +262 -0
- package/sidecar/talaria_sidecar/methods/state_db.py +418 -0
- package/sidecar/talaria_sidecar/methods/stt.py +131 -0
- package/sidecar/talaria_sidecar/methods/text.py +85 -0
- package/sidecar/talaria_sidecar/methods/usage.py +59 -0
- package/sidecar/talaria_sidecar/methods/worktree.py +71 -0
- package/sidecar/talaria_sidecar/rpc.py +218 -0
- package/sidecar/talaria_sidecar/runtime.py +330 -0
- package/static/brand/apple-touch-icon.png +0 -0
- package/static/brand/brandmark.svg +12 -0
- package/static/brand/favicon-192.png +0 -0
- package/static/brand/favicon-32.png +0 -0
- package/static/brand/favicon-512.png +0 -0
- package/static/brand/favicon-512.svg +14 -0
- package/static/brand/favicon-dark.svg +14 -0
- package/static/brand/favicon-light.svg +14 -0
- package/static/brand/favicon.ico +0 -0
- package/static/brand/favicon.svg +14 -0
- package/static/dist/FILES.txt +515 -0
- package/static/dist/assets/AppShell-gs0grlbs.js +1 -0
- package/static/dist/assets/ChatPage-gi1xlz52.js +18 -0
- package/static/dist/assets/ChatPage-gmu5c7lf.css +1 -0
- package/static/dist/assets/HubRoute-qs9vzuh0.js +2 -0
- package/static/dist/assets/InterVariable-nonokl6i.woff2 +0 -0
- package/static/dist/assets/KaTeX_AMS-Regular-e1why8ff.woff2 +0 -0
- package/static/dist/assets/KaTeX_AMS-Regular-mec5w1mt.woff +0 -0
- package/static/dist/assets/KaTeX_AMS-Regular-mos1wgtv.ttf +0 -0
- package/static/dist/assets/KaTeX_Caligraphic-Bold-axibvb5b.ttf +0 -0
- package/static/dist/assets/KaTeX_Caligraphic-Bold-eccvbn5c.woff +0 -0
- package/static/dist/assets/KaTeX_Caligraphic-Bold-n63xiolk.woff2 +0 -0
- package/static/dist/assets/KaTeX_Caligraphic-Regular-c5dvswgu.ttf +0 -0
- package/static/dist/assets/KaTeX_Caligraphic-Regular-iz5gexw5.woff +0 -0
- package/static/dist/assets/KaTeX_Caligraphic-Regular-npwmqylf.woff2 +0 -0
- package/static/dist/assets/KaTeX_Fraktur-Bold-ftsn4fxp.ttf +0 -0
- package/static/dist/assets/KaTeX_Fraktur-Bold-gokmhdpe.woff +0 -0
- package/static/dist/assets/KaTeX_Fraktur-Bold-ikhebgtj.woff2 +0 -0
- package/static/dist/assets/KaTeX_Fraktur-Regular-hzce8q9o.ttf +0 -0
- package/static/dist/assets/KaTeX_Fraktur-Regular-i0egury6.woff2 +0 -0
- package/static/dist/assets/KaTeX_Fraktur-Regular-okwm110b.woff +0 -0
- package/static/dist/assets/KaTeX_Main-Bold-c5g2m5kh.ttf +0 -0
- package/static/dist/assets/KaTeX_Main-Bold-ktk38ybk.woff2 +0 -0
- package/static/dist/assets/KaTeX_Main-Bold-ureqgmzo.woff +0 -0
- package/static/dist/assets/KaTeX_Main-BoldItalic-bd0upj71.woff +0 -0
- package/static/dist/assets/KaTeX_Main-BoldItalic-oj033t4i.woff2 +0 -0
- package/static/dist/assets/KaTeX_Main-BoldItalic-opttanob.ttf +0 -0
- package/static/dist/assets/KaTeX_Main-Italic-2p4bq1jf.woff2 +0 -0
- package/static/dist/assets/KaTeX_Main-Italic-dj86j9xo.ttf +0 -0
- package/static/dist/assets/KaTeX_Main-Italic-esmxqs8d.woff +0 -0
- package/static/dist/assets/KaTeX_Main-Regular-c978jrkj.ttf +0 -0
- package/static/dist/assets/KaTeX_Main-Regular-hbkzldb8.woff2 +0 -0
- package/static/dist/assets/KaTeX_Main-Regular-n865mmt0.woff +0 -0
- package/static/dist/assets/KaTeX_Math-BoldItalic-cbkxiib1.woff +0 -0
- package/static/dist/assets/KaTeX_Math-BoldItalic-hcom2j4y.ttf +0 -0
- package/static/dist/assets/KaTeX_Math-BoldItalic-jdo1yxu8.woff2 +0 -0
- package/static/dist/assets/KaTeX_Math-Italic-b5lfnctb.ttf +0 -0
- package/static/dist/assets/KaTeX_Math-Italic-cz4b2ure.woff2 +0 -0
- package/static/dist/assets/KaTeX_Math-Italic-lo894bvj.woff +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Bold-h55uj19s.ttf +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Bold-m9bkcp3c.woff +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Bold-otxc8itm.woff2 +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Italic-bp85cocg.ttf +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Italic-g42k16nn.woff +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Italic-k4kksncm.woff2 +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Regular-evq9548m.ttf +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Regular-izeggh93.woff +0 -0
- package/static/dist/assets/KaTeX_SansSerif-Regular-ltw53ck4.woff2 +0 -0
- package/static/dist/assets/KaTeX_Script-Regular-k8v4ghws.ttf +0 -0
- package/static/dist/assets/KaTeX_Script-Regular-o2nd302f.woff +0 -0
- package/static/dist/assets/KaTeX_Script-Regular-oybd33cp.woff2 +0 -0
- package/static/dist/assets/KaTeX_Size1-Regular-cjccv44r.woff2 +0 -0
- package/static/dist/assets/KaTeX_Size1-Regular-k13yopgz.woff +0 -0
- package/static/dist/assets/KaTeX_Size1-Regular-naiuhmx7.ttf +0 -0
- package/static/dist/assets/KaTeX_Size2-Regular-cnnxwlt7.woff +0 -0
- package/static/dist/assets/KaTeX_Size2-Regular-hlh6jazj.ttf +0 -0
- package/static/dist/assets/KaTeX_Size2-Regular-onxq3bzc.woff2 +0 -0
- package/static/dist/assets/KaTeX_Size3-Regular-i00haf83.woff +0 -0
- package/static/dist/assets/KaTeX_Size3-Regular-nk2kx36d.ttf +0 -0
- package/static/dist/assets/KaTeX_Size4-Regular-effsfy3y.woff +0 -0
- package/static/dist/assets/KaTeX_Size4-Regular-myjqyche.ttf +0 -0
- package/static/dist/assets/KaTeX_Size4-Regular-nv9nppzf.woff2 +0 -0
- package/static/dist/assets/KaTeX_Typewriter-Regular-iqvr3vwu.woff2 +0 -0
- package/static/dist/assets/KaTeX_Typewriter-Regular-kzj4h457.woff +0 -0
- package/static/dist/assets/KaTeX_Typewriter-Regular-owzsy8p5.ttf +0 -0
- package/static/dist/assets/Markdown-bt9bqd6a.js +598 -0
- package/static/dist/assets/Markdown-lwviulmg.css +1 -0
- package/static/dist/assets/RightPanel-dn19xu42.js +1 -0
- package/static/dist/assets/Select-y7wtf85g.js +1 -0
- package/static/dist/assets/SessionListPanel-igwdj9xr.js +1 -0
- package/static/dist/assets/SettingsLayout-n6mu0ghg.js +1 -0
- package/static/dist/assets/States-oil2issf.js +1 -0
- package/static/dist/assets/Toaster-jtn59pjm.js +1 -0
- package/static/dist/assets/_app-k4jrkgfa.js +1 -0
- package/static/dist/assets/_app.ext._extensionId-mmf1mepm.js +1 -0
- package/static/dist/assets/_app.index-mb41nf00.js +1 -0
- package/static/dist/assets/_app.insights-mz5cep8m.js +1 -0
- package/static/dist/assets/_app.kanban-ocgw506i.js +1 -0
- package/static/dist/assets/_app.logs-lstmoju6.js +1 -0
- package/static/dist/assets/_app.memory-dishj9ra.js +1 -0
- package/static/dist/assets/_app.profiles-dynpvsio.js +1 -0
- package/static/dist/assets/_app.session._sessionId-kevi4qd2.js +1 -0
- package/static/dist/assets/_app.settings-c2czm9v4.js +1 -0
- package/static/dist/assets/_app.settings._section-exwflld7.js +1 -0
- package/static/dist/assets/_app.skills-j5jh2nug.js +1 -0
- package/static/dist/assets/_app.tasks-b99d98fo.js +2 -0
- package/static/dist/assets/_app.todos-ma8urvn3.js +1 -0
- package/static/dist/assets/_app.workspaces-l86cxeod.js +1 -0
- package/static/dist/assets/abap-ij37pki6.js +1 -0
- package/static/dist/assets/abnfDiagram-VCTEODGH-hvrr25lb.js +1 -0
- package/static/dist/assets/actionscript-3-dz7y3j1x.js +1 -0
- package/static/dist/assets/ada-k9zgv987.js +1 -0
- package/static/dist/assets/andromeeda-c2n0n86o.js +1 -0
- package/static/dist/assets/angular-html-nu6l31w3.js +1 -0
- package/static/dist/assets/angular-ts-fbx4f8mm.js +1 -0
- package/static/dist/assets/apache-binppq6z.js +1 -0
- package/static/dist/assets/apex-h8illjly.js +1 -0
- package/static/dist/assets/apl-bx2xr7dh.js +1 -0
- package/static/dist/assets/applescript-h0ok5sww.js +1 -0
- package/static/dist/assets/ara-dlpjioua.js +1 -0
- package/static/dist/assets/arc-7popfhbk.js +1 -0
- package/static/dist/assets/architecture-7GRP2DOG-mqft9w2p.js +1 -0
- package/static/dist/assets/architectureDiagram-5GKGNRK7-b3r0z8sq.js +36 -0
- package/static/dist/assets/array-f36850hm.js +1 -0
- package/static/dist/assets/asciidoc-lx0cuujr.js +1 -0
- package/static/dist/assets/asm-j5diz3sz.js +1 -0
- package/static/dist/assets/astro-g77i97cb.js +1 -0
- package/static/dist/assets/aurora-x-h2hngdsl.js +1 -0
- package/static/dist/assets/awk-fecghegf.js +1 -0
- package/static/dist/assets/ayu-dark-nvvuggz9.js +1 -0
- package/static/dist/assets/ayu-light-k5fxgplt.js +1 -0
- package/static/dist/assets/ayu-mirage-gltrvhcx.js +1 -0
- package/static/dist/assets/ballerina-hk9oga18.js +1 -0
- package/static/dist/assets/bat-ghs7lag5.js +1 -0
- package/static/dist/assets/beancount-pc6q2dmq.js +1 -0
- package/static/dist/assets/berry-l96jp8n4.js +1 -0
- package/static/dist/assets/bibtex-jxn7maz2.js +1 -0
- package/static/dist/assets/bicep-i1yv3ngd.js +1 -0
- package/static/dist/assets/bird2-k3aagqn0.js +1 -0
- package/static/dist/assets/blade-boo0u92y.js +1 -0
- package/static/dist/assets/blockDiagram-I7D4REHJ-hd3gw0cj.js +129 -0
- package/static/dist/assets/bsl-f8m1ja7w.js +1 -0
- package/static/dist/assets/c-cat0w3sc.js +1 -0
- package/static/dist/assets/c3-j6ile59o.js +1 -0
- package/static/dist/assets/c4Diagram-7LVT6UL2-jlmbjiji.js +38 -0
- package/static/dist/assets/cadence-e3x2pgsu.js +1 -0
- package/static/dist/assets/cairo-mblac9dt.js +1 -0
- package/static/dist/assets/catppuccin-frappe-dj7qsd4s.js +1 -0
- package/static/dist/assets/catppuccin-latte-oh2bx7qn.js +1 -0
- package/static/dist/assets/catppuccin-macchiato-m3xyazph.js +1 -0
- package/static/dist/assets/catppuccin-mocha-m3rjj89j.js +1 -0
- package/static/dist/assets/channel-ix8cxdld.js +1 -0
- package/static/dist/assets/chunk-2Q5K7J3B-k08c29qw.js +1 -0
- package/static/dist/assets/chunk-4HAMMTFA-oydbpsin.js +62 -0
- package/static/dist/assets/chunk-5VM5RSS4-br0zxsux.js +15 -0
- package/static/dist/assets/chunk-75Z2AOVW-j633otj1.js +2 -0
- package/static/dist/assets/chunk-DU6HZSFF-ods2l027.js +128 -0
- package/static/dist/assets/chunk-F27PBJKO-ln4n2cwt.js +1 -0
- package/static/dist/assets/chunk-FOHPRMQF-opuflp73.js +161 -0
- package/static/dist/assets/chunk-GMAD6QVW-fpz133eh.js +72 -0
- package/static/dist/assets/chunk-GVQU2GXP-abs9ixiy.js +1 -0
- package/static/dist/assets/chunk-IMKFNOWR-j9vukdy1.js +231 -0
- package/static/dist/assets/chunk-JWPE2WC7-mw03m5s9.js +1 -0
- package/static/dist/assets/chunk-L3NEJ4N5-cfyw87r3.js +1 -0
- package/static/dist/assets/chunk-OSK3NFVY-baja78wr.js +10 -0
- package/static/dist/assets/chunk-P2QGCYS3-g66xby8h.js +1 -0
- package/static/dist/assets/chunk-POPQ4Y6H-osqu864t.js +1 -0
- package/static/dist/assets/chunk-PWAF6VOD-egejasv1.js +1 -0
- package/static/dist/assets/chunk-SHT3W25Y-l014h8zz.js +168 -0
- package/static/dist/assets/chunk-SVP7TREG-n3z10bp3.js +88 -0
- package/static/dist/assets/chunk-TICWLB2K-bzozkjc0.js +206 -0
- package/static/dist/assets/chunk-XXDRQBXY-n40pf9vy.js +1 -0
- package/static/dist/assets/chunk-Y2CYZVJY-n9gs7k4d.js +1 -0
- package/static/dist/assets/clarity-bdn1d8fx.js +1 -0
- package/static/dist/assets/classDiagram-ZZMXUADV-c210y3il.js +1 -0
- package/static/dist/assets/classDiagram-v2-VYDZK3BY-c210y3il.js +1 -0
- package/static/dist/assets/clojure-n5b9o4lq.js +1 -0
- package/static/dist/assets/cmake-f68p68h5.js +1 -0
- package/static/dist/assets/cobol-go622aep.js +1 -0
- package/static/dist/assets/codeowners-lgfjmw2s.js +1 -0
- package/static/dist/assets/codeql-cojlysyb.js +1 -0
- package/static/dist/assets/coffee-jwo1xjhq.js +1 -0
- package/static/dist/assets/common-lisp-ko58h8pe.js +1 -0
- package/static/dist/assets/copied-cjsttec1.js +1 -0
- package/static/dist/assets/coq-gns70ukp.js +1 -0
- package/static/dist/assets/cose-bilkent-JH36ORCC-eclcy6ja.js +1 -0
- package/static/dist/assets/cpp-nre7j0kq.js +1 -0
- package/static/dist/assets/crystal-lviso2je.js +1 -0
- package/static/dist/assets/csharp-kkz9hcxp.js +1 -0
- package/static/dist/assets/css-ywz9j4hb.js +1 -0
- package/static/dist/assets/csv-ol0sxk26.js +1 -0
- package/static/dist/assets/cue-h5naoluy.js +1 -0
- package/static/dist/assets/cynefin-OW5HDTMX-elpt7h1j.js +1 -0
- package/static/dist/assets/cynefinDiagram-5FMLGOSQ-5mzl5pi2.js +62 -0
- package/static/dist/assets/cypher-j2an42no.js +1 -0
- package/static/dist/assets/cytoscape.esm-bqu53u12.js +321 -0
- package/static/dist/assets/d-crxkca3p.js +1 -0
- package/static/dist/assets/dagre-GXQ25YYZ-ihwlhmfl.js +4 -0
- package/static/dist/assets/dagre-lkoknbjn.js +1 -0
- package/static/dist/assets/dark-plus-kin19s9x.js +1 -0
- package/static/dist/assets/dart-nsg0xvqh.js +1 -0
- package/static/dist/assets/dax-f82777dv.js +1 -0
- package/static/dist/assets/defaultLocale-eeoev87l.js +1 -0
- package/static/dist/assets/desktop-nvg88bea.js +1 -0
- package/static/dist/assets/diagram-S7CK7UJ4-4z90agaz.js +30 -0
- package/static/dist/assets/diagram-UQ7AKVKN-eifw0lg7.js +41 -0
- package/static/dist/assets/diagram-VSXAHHWV-ksh3sjqv.js +3 -0
- package/static/dist/assets/diagram-VX7I27RA-ett72f71.js +24 -0
- package/static/dist/assets/diagram-Z3DM3KII-l8scp8nu.js +24 -0
- package/static/dist/assets/diff-c5xjoml2.js +1 -0
- package/static/dist/assets/dist-c4c2m3kv.js +1 -0
- package/static/dist/assets/docker-s0pf2u92.js +1 -0
- package/static/dist/assets/dotenv-d2gvqxc1.js +1 -0
- package/static/dist/assets/dracula-eicfho73.js +1 -0
- package/static/dist/assets/dracula-soft-doslejd2.js +1 -0
- package/static/dist/assets/dream-maker-mz8d3pqb.js +1 -0
- package/static/dist/assets/ebnfDiagram-PWID7BFC-f0pxcmit.js +1 -0
- package/static/dist/assets/edge-dvv35byi.js +1 -0
- package/static/dist/assets/elixir-i2f1ki1g.js +1 -0
- package/static/dist/assets/elm-cpepyjm4.js +1 -0
- package/static/dist/assets/emacs-lisp-lhl63kmy.js +1 -0
- package/static/dist/assets/endpoints-ipnv1hd4.js +64 -0
- package/static/dist/assets/erDiagram-RLTQ6QDP-f47m5xh0.js +99 -0
- package/static/dist/assets/erb-idlyfheg.js +1 -0
- package/static/dist/assets/erlang-kbk8e1kh.js +1 -0
- package/static/dist/assets/eventmodeling-NTZA5JFV-d9b5a0ia.js +1 -0
- package/static/dist/assets/everforest-dark-cv4maom7.js +1 -0
- package/static/dist/assets/everforest-light-njdw7fx6.js +1 -0
- package/static/dist/assets/fennel-mm8r79co.js +1 -0
- package/static/dist/assets/fish-em0xdaat.js +1 -0
- package/static/dist/assets/flowDiagram-HODETNUW-kfxxsyrk.js +1 -0
- package/static/dist/assets/fluent-kzq1mil2.js +1 -0
- package/static/dist/assets/fortran-fixed-form-lwddxd99.js +1 -0
- package/static/dist/assets/fortran-free-form-jao3bzvo.js +1 -0
- package/static/dist/assets/fsharp-ouam7w4k.js +1 -0
- package/static/dist/assets/ganttDiagram-EL5Y4UJY-bmktjdi0.js +292 -0
- package/static/dist/assets/gdresource-gawivel9.js +1 -0
- package/static/dist/assets/gdscript-kcamxf4c.js +1 -0
- package/static/dist/assets/gdshader-hx54new5.js +1 -0
- package/static/dist/assets/genie-i5n3m91v.js +1 -0
- package/static/dist/assets/gherkin-lxn181dy.js +1 -0
- package/static/dist/assets/git-commit-e6qgtuh5.js +1 -0
- package/static/dist/assets/git-rebase-d9lpfpbn.js +1 -0
- package/static/dist/assets/gitGraph-4MIJSDKK-j2ueg258.js +1 -0
- package/static/dist/assets/gitGraphDiagram-WWUBYQGX-ms6586v9.js +106 -0
- package/static/dist/assets/github-dark-default-m0qs6qki.js +1 -0
- package/static/dist/assets/github-dark-dimmed-g0vz4qee.js +1 -0
- package/static/dist/assets/github-dark-high-contrast-hugubo52.js +1 -0
- package/static/dist/assets/github-dark-ljlyim8s.js +1 -0
- package/static/dist/assets/github-light-default-fgfak5mv.js +1 -0
- package/static/dist/assets/github-light-high-contrast-hka6wb3r.js +1 -0
- package/static/dist/assets/github-light-jhyi45t4.js +1 -0
- package/static/dist/assets/gleam-ix1dym3g.js +1 -0
- package/static/dist/assets/glimmer-js-39i0urfb.js +1 -0
- package/static/dist/assets/glimmer-ts-gdtd6n73.js +1 -0
- package/static/dist/assets/glsl-o1djm5pp.js +1 -0
- package/static/dist/assets/gn-cbzhsgl9.js +1 -0
- package/static/dist/assets/gnuplot-dr8f9gvm.js +1 -0
- package/static/dist/assets/go-enhtrrw8.js +1 -0
- package/static/dist/assets/graphlib-mrng1xrk.js +1 -0
- package/static/dist/assets/graphql-kj6rz55t.js +1 -0
- package/static/dist/assets/groovy-jff59t9e.js +1 -0
- package/static/dist/assets/gruvbox-dark-hard-lgsj7y5r.js +1 -0
- package/static/dist/assets/gruvbox-dark-medium-ezt86wrc.js +1 -0
- package/static/dist/assets/gruvbox-dark-soft-1a3jfdlm.js +1 -0
- package/static/dist/assets/gruvbox-light-hard-d82lddjc.js +1 -0
- package/static/dist/assets/gruvbox-light-medium-d3ffitv3.js +1 -0
- package/static/dist/assets/gruvbox-light-soft-e5gf7i2q.js +1 -0
- package/static/dist/assets/hack-pe1qqr2i.js +1 -0
- package/static/dist/assets/haml-cknnbcqs.js +1 -0
- package/static/dist/assets/handlebars-hwq64orh.js +1 -0
- package/static/dist/assets/haskell-o7nor2z2.js +1 -0
- package/static/dist/assets/haxe-4rwdh42h.js +1 -0
- package/static/dist/assets/hcl-nnng763h.js +1 -0
- package/static/dist/assets/highlighted-body-KPVGNVTW-ev52d2si.js +1 -0
- package/static/dist/assets/hjson-kscwmuzk.js +1 -0
- package/static/dist/assets/hlsl-kopkvwox.js +1 -0
- package/static/dist/assets/horizon-bright-gn4aqinx.js +1 -0
- package/static/dist/assets/horizon-h5nzrwlb.js +1 -0
- package/static/dist/assets/houston-kifsbmbx.js +1 -0
- package/static/dist/assets/html-derivative-h2i2pyjc.js +1 -0
- package/static/dist/assets/html-ha05xtvt.js +1 -0
- package/static/dist/assets/http-cf94zu27.js +1 -0
- package/static/dist/assets/hurl-lslax568.js +1 -0
- package/static/dist/assets/hxml-g52gxet6.js +1 -0
- package/static/dist/assets/hy-jc9www1l.js +1 -0
- package/static/dist/assets/imba-n9x1ej2f.js +1 -0
- package/static/dist/assets/index-bz7g7rhx.css +2 -0
- package/static/dist/assets/index-hywfjw88.js +11 -0
- package/static/dist/assets/info-A6RAGUB7-j717vyt7.js +1 -0
- package/static/dist/assets/infoDiagram-27XIBGKW-dsbpib36.js +2 -0
- package/static/dist/assets/ini-hg6eosim.js +1 -0
- package/static/dist/assets/init-ljpdkjra.js +1 -0
- package/static/dist/assets/ishikawaDiagram-5VMMS53U-n0sz3i2d.js +70 -0
- package/static/dist/assets/java-ndjf2o89.js +1 -0
- package/static/dist/assets/javascript-coftlwy3.js +1 -0
- package/static/dist/assets/jinja-etei9wy7.js +1 -0
- package/static/dist/assets/jison-hyekgft1.js +1 -0
- package/static/dist/assets/journeyDiagram-3NMN7TZE-mcxz1mme.js +139 -0
- package/static/dist/assets/json-lok0yaho.js +1 -0
- package/static/dist/assets/json5-e4tr07tg.js +1 -0
- package/static/dist/assets/jsonc-jbmkhoep.js +1 -0
- package/static/dist/assets/jsonl-j35ke6at.js +1 -0
- package/static/dist/assets/jsonnet-iewuy86o.js +1 -0
- package/static/dist/assets/jssm-m1449zlc.js +1 -0
- package/static/dist/assets/jsx-b64w0nbx.js +1 -0
- package/static/dist/assets/jsx-runtime-eu92a5pu.js +1 -0
- package/static/dist/assets/julia-jxxzz2yn.js +1 -0
- package/static/dist/assets/just-mc29iw9t.js +1 -0
- package/static/dist/assets/kanagawa-dragon-i9mmmgud.js +1 -0
- package/static/dist/assets/kanagawa-lotus-ev5oro17.js +1 -0
- package/static/dist/assets/kanagawa-wave-i06560uw.js +1 -0
- package/static/dist/assets/kanban-definition-UXKFOSKX-n6hq2lyc.js +89 -0
- package/static/dist/assets/kdl-kgzv1x9e.js +1 -0
- package/static/dist/assets/kotlin-nmx05b3f.js +1 -0
- package/static/dist/assets/kusto-fawmdms4.js +1 -0
- package/static/dist/assets/laserwave-goebpayr.js +1 -0
- package/static/dist/assets/latex-pafa03ft.js +1 -0
- package/static/dist/assets/lazyRouteComponent-faquioun.js +1 -0
- package/static/dist/assets/lean-jom31nm3.js +1 -0
- package/static/dist/assets/less-mwvscr3d.js +1 -0
- package/static/dist/assets/light-plus-mws1g85f.js +1 -0
- package/static/dist/assets/line-h5xq20s4.js +1 -0
- package/static/dist/assets/linear-becwlnhk.js +1 -0
- package/static/dist/assets/link-ib4prsn5.js +1 -0
- package/static/dist/assets/liquid-hz5c2pov.js +1 -0
- package/static/dist/assets/llvm-j5wmr3g9.js +1 -0
- package/static/dist/assets/log-eur4gurm.js +1 -0
- package/static/dist/assets/login-mvjys1ol.js +1 -0
- package/static/dist/assets/logo-j3h8r0pu.js +1 -0
- package/static/dist/assets/lua-leyf8mlb.js +1 -0
- package/static/dist/assets/luau-im5d6q8k.js +1 -0
- package/static/dist/assets/make-npl27xqy.js +1 -0
- package/static/dist/assets/markdown-fibv6lrm.js +1 -0
- package/static/dist/assets/marko-cn1fzpdv.js +1 -0
- package/static/dist/assets/matchContext-f8oy3lo7.js +1 -0
- package/static/dist/assets/material-theme-darker-dhm8zmok.js +1 -0
- package/static/dist/assets/material-theme-gdimc61s.js +1 -0
- package/static/dist/assets/material-theme-lighter-c1fszbb2.js +1 -0
- package/static/dist/assets/material-theme-ocean-iakojpmy.js +1 -0
- package/static/dist/assets/material-theme-palenight-hgxmykmi.js +1 -0
- package/static/dist/assets/matlab-o6nvvbf2.js +1 -0
- package/static/dist/assets/mdc-huhy88df.js +1 -0
- package/static/dist/assets/mdx-mmgeh26h.js +1 -0
- package/static/dist/assets/mermaid-HWGCJPDP-gmnkgf1n.js +1 -0
- package/static/dist/assets/mermaid-f9ad87lb.js +1 -0
- package/static/dist/assets/mermaid-parser.core-n9cuu5ue.js +7 -0
- package/static/dist/assets/min-dark-e5sicuw2.js +1 -0
- package/static/dist/assets/min-light-gst87fvf.js +1 -0
- package/static/dist/assets/mindmap-definition-YA3MSWOX-gta3u7z4.js +96 -0
- package/static/dist/assets/mipsasm-etoqqos6.js +1 -0
- package/static/dist/assets/mojo-fyyk0b1z.js +1 -0
- package/static/dist/assets/monokai-jl389a9o.js +1 -0
- package/static/dist/assets/moonbit-je86hbgx.js +1 -0
- package/static/dist/assets/move-g7w7k042.js +1 -0
- package/static/dist/assets/narrat-d1cszt6i.js +1 -0
- package/static/dist/assets/nextflow-fpd3eqgm.js +1 -0
- package/static/dist/assets/nextflow-groovy-nc95p6pm.js +1 -0
- package/static/dist/assets/nginx-e7lvhsmn.js +1 -0
- package/static/dist/assets/night-owl-light-b2j1bc8t.js +1 -0
- package/static/dist/assets/night-owl-nm3cgqfv.js +1 -0
- package/static/dist/assets/nim-dun5d8mk.js +1 -0
- package/static/dist/assets/nix-sxazvl0w.js +1 -0
- package/static/dist/assets/nord-jiiendyo.js +1 -0
- package/static/dist/assets/not-found-ccnnac39.js +1 -0
- package/static/dist/assets/nushell-nbi9xmdg.js +1 -0
- package/static/dist/assets/objective-c-oshe4ycx.js +1 -0
- package/static/dist/assets/objective-cpp-go29ofq1.js +1 -0
- package/static/dist/assets/ocaml-56kivtnr.js +1 -0
- package/static/dist/assets/odin-g772bhi5.js +1 -0
- package/static/dist/assets/onboarding-l6quy6gz.js +1 -0
- package/static/dist/assets/one-dark-pro-ext74l87.js +1 -0
- package/static/dist/assets/one-light-o5mlsn8i.js +1 -0
- package/static/dist/assets/openscad-e9e9mfyg.js +1 -0
- package/static/dist/assets/ordinal-d88pfdla.js +1 -0
- package/static/dist/assets/packet-AYTQ26CC-bpzuq5n6.js +1 -0
- package/static/dist/assets/pascal-dmg2rs6d.js +1 -0
- package/static/dist/assets/passkeys-ktie3sr0.js +1 -0
- package/static/dist/assets/path-b509aej0.js +1 -0
- package/static/dist/assets/pegDiagram-XKGWAZYB-juye13e5.js +1 -0
- package/static/dist/assets/perl-bj3oqtet.js +1 -0
- package/static/dist/assets/php-buzp12r0.js +1 -0
- package/static/dist/assets/pie-WAS4IAKB-odhb8buq.js +1 -0
- package/static/dist/assets/pieDiagram-E7YTZNPT-mgb14ksh.js +39 -0
- package/static/dist/assets/pkl-co2grztk.js +1 -0
- package/static/dist/assets/plastic-mm7c7uq7.js +1 -0
- package/static/dist/assets/plsql-l0i9f33n.js +1 -0
- package/static/dist/assets/po-f3ga9osn.js +1 -0
- package/static/dist/assets/poimandres-mnwq5v4d.js +1 -0
- package/static/dist/assets/polar-ldicpe6g.js +1 -0
- package/static/dist/assets/postcss-fgpvnt75.js +1 -0
- package/static/dist/assets/powerquery-mflxo46x.js +1 -0
- package/static/dist/assets/powershell-oado4mxi.js +1 -0
- package/static/dist/assets/prepaint-f14kbd49.js +21 -0
- package/static/dist/assets/prisma-go1e7wq8.js +1 -0
- package/static/dist/assets/prolog-cbjal8aj.js +1 -0
- package/static/dist/assets/proto-lrhov7xc.js +1 -0
- package/static/dist/assets/pug-mjad7he9.js +1 -0
- package/static/dist/assets/puppet-h22szrmn.js +1 -0
- package/static/dist/assets/purescript-dwpj7hdb.js +1 -0
- package/static/dist/assets/python-b767fgue.js +1 -0
- package/static/dist/assets/qml-d1gdp10s.js +1 -0
- package/static/dist/assets/qmldir-lsawched.js +1 -0
- package/static/dist/assets/qss-lyvmg4f4.js +1 -0
- package/static/dist/assets/quadrantDiagram-AXDQQJYC-cg36naog.js +7 -0
- package/static/dist/assets/r-o3r9c7ao.js +1 -0
- package/static/dist/assets/racket-nbfqjw5h.js +1 -0
- package/static/dist/assets/radar-RG4KPBEZ-lgzfpnef.js +1 -0
- package/static/dist/assets/railroad-74A4TZTK-gmglc3ua.js +1 -0
- package/static/dist/assets/railroad-abnf-HS5TGJTU-5mjl5wpv.js +1 -0
- package/static/dist/assets/railroad-ebnf-LZEXJU2U-bfram8v8.js +1 -0
- package/static/dist/assets/railroad-peg-WCYAUIDC-nwfczn88.js +1 -0
- package/static/dist/assets/railroadDiagram-O6MQD6OU-cmxwjt73.js +1 -0
- package/static/dist/assets/raku-hcy6uwm6.js +1 -0
- package/static/dist/assets/razor-ilc585yr.js +1 -0
- package/static/dist/assets/red-if4jt303.js +1 -0
- package/static/dist/assets/refresh-cw-mf192q3f.js +1 -0
- package/static/dist/assets/reg-ivi9d1my.js +1 -0
- package/static/dist/assets/regexp-mpjtcvwm.js +1 -0
- package/static/dist/assets/rel-gqpkg3ta.js +1 -0
- package/static/dist/assets/requirementDiagram-BXWQKSXE-ir0s2mek.js +84 -0
- package/static/dist/assets/riscv-j1f2yjp2.js +1 -0
- package/static/dist/assets/rolldown-runtime-b9miacsj.js +1 -0
- package/static/dist/assets/ron-bjqasg78.js +1 -0
- package/static/dist/assets/root-mbklpuv4.js +1 -0
- package/static/dist/assets/rose-pine-dawn-nlpzqzob.js +1 -0
- package/static/dist/assets/rose-pine-grpwpg67.js +1 -0
- package/static/dist/assets/rose-pine-moon-b9yyevxr.js +1 -0
- package/static/dist/assets/rosmsg-hv3wcot6.js +1 -0
- package/static/dist/assets/rough.esm-on4k4je3.js +1 -0
- package/static/dist/assets/rst-jrkwjdyi.js +1 -0
- package/static/dist/assets/ruby-n4tjcbpz.js +1 -0
- package/static/dist/assets/rust-jqduclx1.js +1 -0
- package/static/dist/assets/sankeyDiagram-P5KCCOFB-jo7jcdq0.js +40 -0
- package/static/dist/assets/sas-hjo6y93k.js +1 -0
- package/static/dist/assets/sass-m1yncbwu.js +1 -0
- package/static/dist/assets/saved-g777hp1t.js +1 -0
- package/static/dist/assets/scala-l9ahg4e9.js +1 -0
- package/static/dist/assets/scheme-mlodf39l.js +1 -0
- package/static/dist/assets/scss-ncidjv48.js +1 -0
- package/static/dist/assets/sdbl-bwg2t5pt.js +1 -0
- package/static/dist/assets/search-i2kfogyx.js +1 -0
- package/static/dist/assets/sequenceDiagram-WJ2MYXX4-n0pf6xk5.js +162 -0
- package/static/dist/assets/settings_section_extensions_title-hgvh507l.js +1 -0
- package/static/dist/assets/shaderlab-be89ch6g.js +1 -0
- package/static/dist/assets/share._token-il3y6js2.js +2 -0
- package/static/dist/assets/shellscript-m8whjpqd.js +1 -0
- package/static/dist/assets/shellsession-i5bj6syz.js +1 -0
- package/static/dist/assets/sizeCapture-INFHLROL-g612l48j.js +1 -0
- package/static/dist/assets/slack-dark-ny9l0r7b.js +1 -0
- package/static/dist/assets/slack-ochin-g98102hs.js +1 -0
- package/static/dist/assets/sliders-horizontal-kd99ffvl.js +1 -0
- package/static/dist/assets/smalltalk-g9lpwisn.js +1 -0
- package/static/dist/assets/snazzy-light-dlu9q2m5.js +1 -0
- package/static/dist/assets/solarized-dark-mx1nd4sm.js +1 -0
- package/static/dist/assets/solarized-light-mqzd33fz.js +1 -0
- package/static/dist/assets/solidity-ih313ji4.js +1 -0
- package/static/dist/assets/soy-hhh36ysq.js +1 -0
- package/static/dist/assets/sparql-pewjbauq.js +1 -0
- package/static/dist/assets/splunk-d8q89juf.js +1 -0
- package/static/dist/assets/sql-j21bzcl6.js +1 -0
- package/static/dist/assets/src-hjyib4mu.js +1 -0
- package/static/dist/assets/ssh-config-fzxlymn8.js +1 -0
- package/static/dist/assets/stata-bbu2onh1.js +1 -0
- package/static/dist/assets/stateDiagram-D77RDMKH-olbrwyv9.js +1 -0
- package/static/dist/assets/stateDiagram-v2-MP3YSRHH-dnzlmdpu.js +1 -0
- package/static/dist/assets/stylus-hifjg0ye.js +1 -0
- package/static/dist/assets/surrealql-l5vczuco.js +1 -0
- package/static/dist/assets/svelte-idn422g6.js +1 -0
- package/static/dist/assets/swift-n11rc3v3.js +1 -0
- package/static/dist/assets/swimlanes-42K2YHIH-od14zrw6.js +1 -0
- package/static/dist/assets/swimlanesDiagram-VR7AAH4N-ck0eqqdp.js +8 -0
- package/static/dist/assets/synthwave-84-clkt7319.js +1 -0
- package/static/dist/assets/system-verilog-l8k1po2l.js +1 -0
- package/static/dist/assets/systemd-d1zoxedb.js +1 -0
- package/static/dist/assets/talonscript-j9gt5qb1.js +1 -0
- package/static/dist/assets/tasl-meer3lyk.js +1 -0
- package/static/dist/assets/tcl-jdc54rsg.js +1 -0
- package/static/dist/assets/templ-e22qou3c.js +1 -0
- package/static/dist/assets/terraform-oav3wzsy.js +1 -0
- package/static/dist/assets/tex-deqpc5ee.js +1 -0
- package/static/dist/assets/timeline-definition-24CTP7MA-l0qokmnb.js +120 -0
- package/static/dist/assets/todoStore-la6uyqzj.js +1 -0
- package/static/dist/assets/tokyo-night-cnyqlmc2.js +1 -0
- package/static/dist/assets/toml-jj1ee1k1.js +1 -0
- package/static/dist/assets/trash-bxz1k9cw.js +1 -0
- package/static/dist/assets/treeView-Q6P3EWNA-hma3ip8m.js +1 -0
- package/static/dist/assets/treemap-WGGIJYW6-bghjng5m.js +1 -0
- package/static/dist/assets/ts-tags-ctnibc27.js +1 -0
- package/static/dist/assets/tsv-cxbgj4wh.js +1 -0
- package/static/dist/assets/tsx-i163n32g.js +1 -0
- package/static/dist/assets/turtle-g1kfgpwv.js +1 -0
- package/static/dist/assets/twig-x0fi7wm8.js +1 -0
- package/static/dist/assets/typescript-g18c34xz.js +1 -0
- package/static/dist/assets/typespec-hokgy7ic.js +1 -0
- package/static/dist/assets/typst-l6lt2vta.js +1 -0
- package/static/dist/assets/untitled-nfaw0q7m.js +1 -0
- package/static/dist/assets/useForm-k7fj2zsr.js +1 -0
- package/static/dist/assets/useLocale-evhacmv2.js +1 -0
- package/static/dist/assets/useParams-gpbjxj8s.js +1 -0
- package/static/dist/assets/useSearch-bhdptos7.js +1 -0
- package/static/dist/assets/useSelector-f2aak1ol.js +1 -0
- package/static/dist/assets/v-lwnsi8rl.js +1 -0
- package/static/dist/assets/vala-db1h2kp7.js +1 -0
- package/static/dist/assets/vb-nrezymby.js +1 -0
- package/static/dist/assets/vennDiagram-4TSXK5OY-bo97zf3z.js +34 -0
- package/static/dist/assets/verilog-jworpiw4.js +1 -0
- package/static/dist/assets/vesper-o1vwtlg2.js +1 -0
- package/static/dist/assets/vhdl-gnn4vfnm.js +1 -0
- package/static/dist/assets/viml-ogfqutxv.js +1 -0
- package/static/dist/assets/vitesse-black-b5y62t71.js +1 -0
- package/static/dist/assets/vitesse-dark-fj1ju380.js +1 -0
- package/static/dist/assets/vitesse-light-bjycd3ha.js +1 -0
- package/static/dist/assets/vue-html-nskj3du0.js +1 -0
- package/static/dist/assets/vue-mwu5l1bb.js +1 -0
- package/static/dist/assets/vue-vine-cqe77smq.js +1 -0
- package/static/dist/assets/vyper-jsmo764l.js +1 -0
- package/static/dist/assets/wardley-WFR3VGLG-pbjl6jav.js +1 -0
- package/static/dist/assets/wardleyDiagram-VM6X3IG4-bmy9i09l.js +78 -0
- package/static/dist/assets/wasm-g1zrybde.js +1 -0
- package/static/dist/assets/wasm-gezzbmz0.js +1 -0
- package/static/dist/assets/wenyan-lgcd7t1n.js +1 -0
- package/static/dist/assets/wgsl-gotoh48n.js +1 -0
- package/static/dist/assets/wikitext-j1379ez7.js +1 -0
- package/static/dist/assets/wit-neu67rwu.js +1 -0
- package/static/dist/assets/wolfram-mbb1p6oi.js +1 -0
- package/static/dist/assets/xml-gau7gvrv.js +1 -0
- package/static/dist/assets/xsl-ew09zq8b.js +1 -0
- package/static/dist/assets/xychartDiagram-S5SC5T6Z-eercu0mc.js +7 -0
- package/static/dist/assets/yaml-ofnrxtvf.js +1 -0
- package/static/dist/assets/zenscript-ge1h0r83.js +1 -0
- package/static/dist/assets/zig-ik06evde.js +1 -0
- package/static/dist/extension-sdk.js +1 -0
- package/static/dist/index.html +1 -0
- package/static/dist/manifest.webmanifest +29 -0
- package/static/dist/sw.js +944 -0
|
@@ -0,0 +1,815 @@
|
|
|
1
|
+
/** Session, project, share, workspace, and file procedures. */
|
|
2
|
+
import { implement } from '@orpc/server';
|
|
3
|
+
import { stateDbHasSession } from '../sessions/state-db.js';
|
|
4
|
+
import { sessionsContract, workspacesContract } from '@maudecode/talaria-web-contracts';
|
|
5
|
+
import { mkdirSync } from 'node:fs';
|
|
6
|
+
import { closeSync, existsSync, lstatSync, statSync } from 'node:fs';
|
|
7
|
+
import { writeFully } from '../fs/atomic.js';
|
|
8
|
+
import { basename, dirname, extname, join, relative } from 'node:path';
|
|
9
|
+
import { platform } from 'node:os';
|
|
10
|
+
import { spawn } from 'node:child_process';
|
|
11
|
+
import { ifNoneMatchMatches } from '../http/context.js';
|
|
12
|
+
import { SidecarError } from '../sidecar/client.js';
|
|
13
|
+
import { HttpError, requireFields } from './router.js';
|
|
14
|
+
import { requestSessionIdGuard } from './session-visibility.js';
|
|
15
|
+
import { HttpFailure } from '../sessions/service.js';
|
|
16
|
+
import { SessionNotFound } from '../sessions/store.js';
|
|
17
|
+
import { isSafeSessionId } from '../sessions/session.js';
|
|
18
|
+
import { isBlockedSystemPath, REMOTE_WORKSPACE_UNSUPPORTED_CODE, REMOTE_WORKSPACE_UNSUPPORTED_MESSAGE, stripSurroundingQuotes } from '../workspace/workspaces.js';
|
|
19
|
+
import { isWithin, resolvePathLikePython } from '../workspace/paths.js';
|
|
20
|
+
import { dirSignature, FileExistsError, listDir, makeAnchoredDir, NotFoundError, openAnchoredCreateFd, openAnchoredWriteFd, PathTraversalError, readFileContent, renameAnchored, rmtreeAnchored, safeResolve, serializeEntriesForBrowser, unlinkAnchored, FileTooLargeError } from '../workspace/fs.js';
|
|
21
|
+
import { randomUUID } from 'node:crypto';
|
|
22
|
+
import { pyOsError, pyRepr, str } from '../util.js';
|
|
23
|
+
import { ensureTrustedAuthSession, sessionCanManageServer } from '../auth/gate.js';
|
|
24
|
+
import { RelayPairingError } from '../sessions/relay.js';
|
|
25
|
+
const os = implement({ ...sessionsContract, ...workspacesContract }).$context().use(requestSessionIdGuard);
|
|
26
|
+
/** Map service failures to the Python-shaped error body. */
|
|
27
|
+
export function failure(error) {
|
|
28
|
+
if (error instanceof HttpFailure)
|
|
29
|
+
throw new HttpError(error.status, error.message, error.extra);
|
|
30
|
+
if (error instanceof SessionNotFound)
|
|
31
|
+
throw new HttpError(404, 'Session not found');
|
|
32
|
+
throw error;
|
|
33
|
+
}
|
|
34
|
+
/** Handler boundary: contract outputs are pinned loose objects (index signatures), so the concrete return type is erased here like the `as never` casts elsewhere. */
|
|
35
|
+
async function run(fn) {
|
|
36
|
+
try {
|
|
37
|
+
return (await fn());
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
return failure(error);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function queryBool(value, fallback) {
|
|
44
|
+
if (value === undefined || value === null)
|
|
45
|
+
return fallback;
|
|
46
|
+
const raw = value.trim().toLowerCase();
|
|
47
|
+
if (['1', 'true', 'yes', 'on'].includes(raw))
|
|
48
|
+
return true;
|
|
49
|
+
if (['0', 'false', 'no', 'off'].includes(raw))
|
|
50
|
+
return false;
|
|
51
|
+
return fallback;
|
|
52
|
+
}
|
|
53
|
+
const queryFlag = (value) => ['1', 'true', 'yes', 'on'].includes((value ?? '').trim().toLowerCase());
|
|
54
|
+
function queryPositiveInt(value, fallback, maximum) {
|
|
55
|
+
const n = Number.parseInt((value ?? '').trim(), 10);
|
|
56
|
+
if (!Number.isFinite(n) || n < 0)
|
|
57
|
+
return fallback;
|
|
58
|
+
return maximum !== undefined ? Math.min(n, maximum) : n;
|
|
59
|
+
}
|
|
60
|
+
function sanitizeError(e) {
|
|
61
|
+
return str(e.message ?? e).replace(/(?:(?:\/[a-zA-Z0-9_.-]+)+|(?:[A-Z]:\\[^\s]+))/g, '<path>');
|
|
62
|
+
}
|
|
63
|
+
/** Python `_guard_request_session_visibility` for a body/query session id. */
|
|
64
|
+
function guardVisibility(ctx, sid) {
|
|
65
|
+
if (!ctx.deps.sessions.sessionIdVisible(sid))
|
|
66
|
+
throw new HttpError(404, 'Session not found');
|
|
67
|
+
}
|
|
68
|
+
function allProfilesEnabled(ctx, value) {
|
|
69
|
+
return queryFlag(value) && !ctx.deps.isolatedProfileMode();
|
|
70
|
+
}
|
|
71
|
+
export const sessionsRouter = os.router({
|
|
72
|
+
sessions: {
|
|
73
|
+
list: os.sessions.list.handler(({ input, context: { ctx } }) => run(() => {
|
|
74
|
+
const settings = ctx.deps.settings.load();
|
|
75
|
+
const overrideKeys = ['show_cli_sessions', 'show_claude_code_sessions', 'show_cron_sessions', 'show_webhook_sessions', 'show_kanban_sessions'];
|
|
76
|
+
const overrides = overrideKeys.some((k) => input[k] !== undefined);
|
|
77
|
+
const sidebarSourceRaw = (input.sidebar_source ?? '').trim().toLowerCase();
|
|
78
|
+
const { body, etag } = ctx.deps.sessions.list({
|
|
79
|
+
allProfiles: allProfilesEnabled(ctx, input.all_profiles),
|
|
80
|
+
includeArchived: queryFlag(input.include_archived),
|
|
81
|
+
excludeHidden: queryFlag(input.exclude_hidden),
|
|
82
|
+
visibleOnly: true,
|
|
83
|
+
showCliSessions: queryBool(input.show_cli_sessions, Boolean(settings.show_cli_sessions)),
|
|
84
|
+
showClaudeCodeSessions: queryBool(input.show_claude_code_sessions, Boolean(settings.show_claude_code_sessions)),
|
|
85
|
+
showPreviousMessagingSessions: Boolean(settings.show_previous_messaging_sessions),
|
|
86
|
+
showCronSessions: queryBool(input.show_cron_sessions, Boolean(settings.show_cron_sessions)),
|
|
87
|
+
showWebhookSessions: queryBool(input.show_webhook_sessions, Boolean(settings.show_webhook_sessions)),
|
|
88
|
+
showKanbanSessions: queryBool(input.show_kanban_sessions, Boolean(settings.show_kanban_sessions)),
|
|
89
|
+
requestVisibilityOverrides: overrides,
|
|
90
|
+
sidebarSource: sidebarSourceRaw === 'webui' || sidebarSourceRaw === 'cli' ? sidebarSourceRaw : null,
|
|
91
|
+
archivedLimit: queryPositiveInt(input.archived_limit, null, 2000),
|
|
92
|
+
archivedOffset: queryPositiveInt(input.archived_offset, 0, 200000) ?? 0,
|
|
93
|
+
});
|
|
94
|
+
ctx.extraResponseHeaders = { etag };
|
|
95
|
+
if (ifNoneMatchMatches(ctx.header('if-none-match') ?? '', etag))
|
|
96
|
+
ctx.notModified = true;
|
|
97
|
+
return body;
|
|
98
|
+
})),
|
|
99
|
+
search: os.sessions.search.handler(({ input, context: { ctx } }) => run(() => {
|
|
100
|
+
// Python: `int(depth)` falls back to 5 when malformed.
|
|
101
|
+
const depthRaw = (input.depth ?? '5').trim();
|
|
102
|
+
const depth = /^[+-]?\d+$/.test(depthRaw) ? Math.max(0, Number.parseInt(depthRaw, 10)) : 5;
|
|
103
|
+
return ctx.deps.sessions.search(input.q ?? '', { content: (input.content ?? '1') === '1', depth, allProfiles: allProfilesEnabled(ctx, input.all_profiles) });
|
|
104
|
+
})),
|
|
105
|
+
cleanupZeroMessage: os.sessions.cleanupZeroMessage.handler(({ context: { ctx } }) => run(() => ctx.deps.sessions.cleanup(true))),
|
|
106
|
+
},
|
|
107
|
+
session: {
|
|
108
|
+
// No visibility guard here: `detail()` answers 409 `session_profile_mismatch` so the frontend can switch to the owning profile.
|
|
109
|
+
get: os.session.get.handler(({ input, context: { ctx } }) => run(() => {
|
|
110
|
+
return { session: ctx.deps.sessions.detail(input.session_id, input) };
|
|
111
|
+
})),
|
|
112
|
+
status: os.session.status.handler(({ input, context: { ctx } }) => run(() => {
|
|
113
|
+
if (!input.session_id)
|
|
114
|
+
throw new HttpError(400, 'Missing session_id');
|
|
115
|
+
guardVisibility(ctx, input.session_id);
|
|
116
|
+
return ctx.deps.sessions.status(input.session_id);
|
|
117
|
+
})),
|
|
118
|
+
usage: os.session.usage.handler(({ input, context: { ctx } }) => run(() => {
|
|
119
|
+
if (!input.session_id)
|
|
120
|
+
throw new HttpError(400, 'Missing session_id');
|
|
121
|
+
guardVisibility(ctx, input.session_id);
|
|
122
|
+
return ctx.deps.sessions.usage(input.session_id);
|
|
123
|
+
})),
|
|
124
|
+
new: os.session.new.handler(({ input, context: { ctx } }) => run(async () => {
|
|
125
|
+
// Python: an invisible prev_session_id is ignored (the service drops it), never an error (#5420).
|
|
126
|
+
const profile = input.profile || null;
|
|
127
|
+
let worktree = null;
|
|
128
|
+
let worktreeSkipped = null;
|
|
129
|
+
const explicit = 'worktree' in input;
|
|
130
|
+
let requested = explicit ? input.worktree === true || ['1', 'true', 'yes', 'on'].includes(String(input.worktree).trim().toLowerCase()) : ctx.deps.worktreeDefault(profile);
|
|
131
|
+
if (requested && !ctx.deps.workspaces.profileSupportsLocalIo(profile)) {
|
|
132
|
+
if (explicit)
|
|
133
|
+
throw new HttpError(400, REMOTE_WORKSPACE_UNSUPPORTED_CODE, { message: REMOTE_WORKSPACE_UNSUPPORTED_MESSAGE });
|
|
134
|
+
worktreeSkipped = REMOTE_WORKSPACE_UNSUPPORTED_MESSAGE;
|
|
135
|
+
requested = false;
|
|
136
|
+
}
|
|
137
|
+
if (requested) {
|
|
138
|
+
try {
|
|
139
|
+
let base = input.workspace ? ctx.deps.sessions.resolveNewSessionWorkspace(input, null, profile) : null;
|
|
140
|
+
base ??= ctx.deps.workspaces.resolveTrusted(ctx.deps.workspaces.lastWorkspace(profile), profile);
|
|
141
|
+
worktree = await ctx.deps.worktrees.create(base);
|
|
142
|
+
}
|
|
143
|
+
catch (error) {
|
|
144
|
+
// Python: `ValueError`/`TypeError` (not a repo, not a directory) → 400 or a degraded plain session; the Agent
|
|
145
|
+
// helper failing (`RuntimeError`) → 500 `Failed to create worktree: ...`.
|
|
146
|
+
const valueError = error instanceof SidecarError ? (error.condition === 'not_a_repo' || error.condition === 'invalid_params' || error.code === -32602) : !(error instanceof Error && 'code' in error);
|
|
147
|
+
if (!valueError)
|
|
148
|
+
throw new HttpError(500, `Failed to create worktree: ${error.message}`);
|
|
149
|
+
if (explicit)
|
|
150
|
+
throw new HttpError(400, error.message);
|
|
151
|
+
worktree = null;
|
|
152
|
+
worktreeSkipped = error.message;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const s = ctx.deps.sessions.create(input, { worktree });
|
|
156
|
+
const payload = { session: ctx.deps.sessions.publicSession(s) };
|
|
157
|
+
if (worktreeSkipped)
|
|
158
|
+
payload.worktree_skipped = worktreeSkipped;
|
|
159
|
+
return payload;
|
|
160
|
+
})),
|
|
161
|
+
rename: os.session.rename.handler(({ input, context: { ctx } }) => run(async () => {
|
|
162
|
+
guardVisibility(ctx, input.session_id);
|
|
163
|
+
if (!input.title)
|
|
164
|
+
throw new HttpError(400, 'Missing required field(s): title');
|
|
165
|
+
return ctx.deps.sessions.rename(input.session_id, input.title);
|
|
166
|
+
})),
|
|
167
|
+
delete: os.session.delete.handler(({ input, context: { ctx } }) => run(async () => {
|
|
168
|
+
guardVisibility(ctx, input.session_id);
|
|
169
|
+
return ctx.deps.sessions.delete(input.session_id);
|
|
170
|
+
})),
|
|
171
|
+
pin: os.session.pin.handler(({ input, context: { ctx } }) => run(async () => {
|
|
172
|
+
guardVisibility(ctx, input.session_id);
|
|
173
|
+
return ctx.deps.sessions.pin(input.session_id, input.pinned ?? true);
|
|
174
|
+
})),
|
|
175
|
+
archive: os.session.archive.handler(({ input, context: { ctx } }) => run(async () => {
|
|
176
|
+
guardVisibility(ctx, input.session_id);
|
|
177
|
+
return ctx.deps.sessions.archive(input.session_id, input.archived ?? true);
|
|
178
|
+
})),
|
|
179
|
+
move: os.session.move.handler(({ input, context: { ctx } }) => run(async () => {
|
|
180
|
+
guardVisibility(ctx, input.session_id);
|
|
181
|
+
return ctx.deps.sessions.move(input.session_id, input.project_id || null);
|
|
182
|
+
})),
|
|
183
|
+
duplicate: os.session.duplicate.handler(({ input, context: { ctx } }) => run(() => {
|
|
184
|
+
if (!input.session_id)
|
|
185
|
+
throw new HttpError(400, 'session_id is required');
|
|
186
|
+
guardVisibility(ctx, input.session_id);
|
|
187
|
+
return ctx.deps.sessions.duplicate(input.session_id);
|
|
188
|
+
})),
|
|
189
|
+
branch: os.session.branch.handler(({ input, context: { ctx } }) => run(() => {
|
|
190
|
+
guardVisibility(ctx, input.session_id);
|
|
191
|
+
return ctx.deps.sessions.branch(input.session_id, input);
|
|
192
|
+
})),
|
|
193
|
+
truncate: os.session.truncate.handler(({ input, context: { ctx } }) => run(async () => {
|
|
194
|
+
guardVisibility(ctx, input.session_id);
|
|
195
|
+
return ctx.deps.sessions.truncate(input.session_id, input.keep_count);
|
|
196
|
+
})),
|
|
197
|
+
clear: os.session.clear.handler(({ input, context: { ctx } }) => run(async () => {
|
|
198
|
+
guardVisibility(ctx, input.session_id);
|
|
199
|
+
return ctx.deps.sessions.clear(input.session_id);
|
|
200
|
+
})),
|
|
201
|
+
retry: os.session.retry.handler(({ input, context: { ctx } }) => run(async () => {
|
|
202
|
+
guardVisibility(ctx, input.session_id);
|
|
203
|
+
return ctx.deps.sessions.retry(input.session_id);
|
|
204
|
+
})),
|
|
205
|
+
undo: os.session.undo.handler(({ input, context: { ctx } }) => run(async () => {
|
|
206
|
+
guardVisibility(ctx, input.session_id);
|
|
207
|
+
return ctx.deps.sessions.undo(input.session_id);
|
|
208
|
+
})),
|
|
209
|
+
update: os.session.update.handler(({ input, context: { ctx } }) => run(async () => {
|
|
210
|
+
guardVisibility(ctx, input.session_id);
|
|
211
|
+
return ctx.deps.sessions.update(input.session_id, input);
|
|
212
|
+
})),
|
|
213
|
+
toolsets: os.session.toolsets.handler(({ input, context: { ctx } }) => run(async () => {
|
|
214
|
+
guardVisibility(ctx, input.session_id);
|
|
215
|
+
return ctx.deps.sessions.setToolsets(input.session_id, input.toolsets);
|
|
216
|
+
})),
|
|
217
|
+
yoloGet: os.session.yoloGet.handler(({ input, context: { ctx } }) => run(() => ctx.deps.sessions.yolo(input.session_id))),
|
|
218
|
+
yoloSet: os.session.yoloSet.handler(({ input, context: { ctx } }) => run(async () => {
|
|
219
|
+
const sid = input.session_id.trim();
|
|
220
|
+
// Python `_enable_session_yolo_and_release_pending`: turning YOLO on releases every parked approval (`once`)
|
|
221
|
+
// before the flag is committed, so a turn blocked on an approval card resumes; turning it off only flips the flag.
|
|
222
|
+
if (!sid)
|
|
223
|
+
throw new HttpError(400, 'Missing required field(s): session_id');
|
|
224
|
+
if (input.enabled !== undefined && !input.enabled) {
|
|
225
|
+
const disabled = await ctx.deps.turns.disableYolo(sid);
|
|
226
|
+
if (typeof disabled._status === 'number' && disabled._status >= 400) {
|
|
227
|
+
const { _status, error, ...rest } = disabled;
|
|
228
|
+
throw new HttpError(_status, str(error), rest);
|
|
229
|
+
}
|
|
230
|
+
return disabled;
|
|
231
|
+
}
|
|
232
|
+
const released = await ctx.deps.turns.respondApproval(sid, 'once', '', true);
|
|
233
|
+
return { ok: true, yolo_enabled: Boolean(released.yolo_enabled ?? ctx.deps.sessions.yolo(sid).yolo_enabled), ...(released.stale_cleared ? { stale_cleared: true } : {}) };
|
|
234
|
+
})),
|
|
235
|
+
import: os.session.import.handler(({ input, context: { ctx } }) => run(() => ctx.deps.sessions.import(input))),
|
|
236
|
+
regenerateTitle: os.session.regenerateTitle.handler(({ input, context: { ctx } }) => run(async () => {
|
|
237
|
+
const sid = input.session_id;
|
|
238
|
+
let session;
|
|
239
|
+
try {
|
|
240
|
+
session = ctx.deps.sessionStore.get(sid);
|
|
241
|
+
}
|
|
242
|
+
catch {
|
|
243
|
+
throw new HttpError(404, 'Session not found');
|
|
244
|
+
}
|
|
245
|
+
if (session.read_only || ctx.deps.sessions.isSubagentViewOnly(sid))
|
|
246
|
+
throw new HttpError(403, 'Read-only imported sessions cannot regenerate titles');
|
|
247
|
+
const generated = await ctx.deps.turns.generateTitle(session, { preferLatest: Boolean(input.prefer_latest) });
|
|
248
|
+
if (!generated.title)
|
|
249
|
+
throw new HttpError(422, `Could not generate a better title (${generated.status || 'empty'})`);
|
|
250
|
+
const current = await ctx.deps.sessions.persistGeneratedTitle(sid, generated.title, 'session_title_regenerate');
|
|
251
|
+
return { session: current.compact({ includeRuntime: true, activeStreamIds: ctx.deps.sessions.deps.runtime.activeStreamIds }), title: current.title, status: generated.status, raw_preview: generated.rawPreview.slice(0, 240) };
|
|
252
|
+
})),
|
|
253
|
+
// Manual compression runs the Agent's context compressor in-process in Python; the sidecar has no such method yet.
|
|
254
|
+
compressStart: os.session.compressStart.handler(({ input, context: { ctx } }) => run(() => {
|
|
255
|
+
let session;
|
|
256
|
+
try {
|
|
257
|
+
session = ctx.deps.sessionStore.get(input.session_id, { metadataOnly: true });
|
|
258
|
+
}
|
|
259
|
+
catch {
|
|
260
|
+
throw new HttpError(404, 'Session not found');
|
|
261
|
+
}
|
|
262
|
+
if (session.active_stream_id)
|
|
263
|
+
throw new HttpError(409, 'Session is still streaming; wait for the current turn to finish.');
|
|
264
|
+
throw new HttpError(501, 'Manual compression is not available in this release', { code: 'manual_compression_unavailable' });
|
|
265
|
+
})),
|
|
266
|
+
compressStatus: os.session.compressStatus.handler(({ input, context: { ctx } }) => run(() => {
|
|
267
|
+
try {
|
|
268
|
+
ctx.deps.sessionStore.get(input.session_id, { metadataOnly: true });
|
|
269
|
+
}
|
|
270
|
+
catch {
|
|
271
|
+
throw new HttpError(404, 'Session not found');
|
|
272
|
+
}
|
|
273
|
+
return { status: 'idle', session_id: input.session_id };
|
|
274
|
+
})),
|
|
275
|
+
draftGet: os.session.draftGet.handler(({ input, context: { ctx } }) => run(() => {
|
|
276
|
+
guardVisibility(ctx, input.session_id);
|
|
277
|
+
return ctx.deps.sessions.readDraft(input.session_id);
|
|
278
|
+
})),
|
|
279
|
+
draftSave: os.session.draftSave.handler(({ input, context: { ctx } }) => run(async () => {
|
|
280
|
+
guardVisibility(ctx, input.session_id);
|
|
281
|
+
return ctx.deps.sessions.writeDraft(input);
|
|
282
|
+
})),
|
|
283
|
+
anchorSceneGet: os.session.anchorSceneGet.handler(({ input, context: { ctx } }) => run(() => {
|
|
284
|
+
guardVisibility(ctx, input.session_id);
|
|
285
|
+
return ctx.deps.sessions.readAnchorScene(input);
|
|
286
|
+
})),
|
|
287
|
+
anchorSceneSave: os.session.anchorSceneSave.handler(({ input, context: { ctx } }) => run(async () => {
|
|
288
|
+
guardVisibility(ctx, input.session_id);
|
|
289
|
+
return ctx.deps.sessions.saveAnchorScene(input);
|
|
290
|
+
})),
|
|
291
|
+
},
|
|
292
|
+
projects: {
|
|
293
|
+
list: os.projects.list.handler(({ input, context: { ctx } }) => run(() => {
|
|
294
|
+
const activeProfile = ctx.deps.activeProfile();
|
|
295
|
+
const all = ctx.deps.projects.load();
|
|
296
|
+
const allProfiles = allProfilesEnabled(ctx, input.all_profiles);
|
|
297
|
+
const scoped = allProfiles ? all : all.filter((p) => ctx.deps.profilesMatch(p.profile ?? null, activeProfile));
|
|
298
|
+
return { projects: scoped, all_profiles: allProfiles, active_profile: activeProfile, other_profile_count: allProfiles || ctx.deps.isolatedProfileMode() ? 0 : all.length - scoped.length };
|
|
299
|
+
})),
|
|
300
|
+
create: os.projects.create.handler(({ input, context: { ctx } }) => run(() => {
|
|
301
|
+
const name = input.name.trim().slice(0, 128);
|
|
302
|
+
if (!name)
|
|
303
|
+
throw new HttpError(400, 'name required');
|
|
304
|
+
const color = input.color ?? null;
|
|
305
|
+
if (color && !/^#[0-9a-fA-F]{3,8}$/.test(color))
|
|
306
|
+
throw new HttpError(400, 'Invalid color format');
|
|
307
|
+
const requested = (input.profile ?? '').trim();
|
|
308
|
+
if (requested && requested !== 'default' && !/^[a-z0-9][a-z0-9_-]{0,63}$/.test(requested))
|
|
309
|
+
throw new HttpError(400, 'invalid profile');
|
|
310
|
+
const projects = ctx.deps.projects.load();
|
|
311
|
+
const proj = { project_id: randomUUID().replace(/-/g, '').slice(0, 12), name, color, profile: requested || ctx.deps.activeProfile() || 'default', created_at: ctx.deps.auth.now() };
|
|
312
|
+
projects.push(proj);
|
|
313
|
+
ctx.deps.projects.save(projects);
|
|
314
|
+
ctx.deps.events.publish('project_create', { profile: proj.profile });
|
|
315
|
+
return { ok: true, project: proj };
|
|
316
|
+
})),
|
|
317
|
+
rename: os.projects.rename.handler(({ input, context: { ctx } }) => run(() => {
|
|
318
|
+
const projects = ctx.deps.projects.load();
|
|
319
|
+
const proj = projects.find((p) => p.project_id === input.project_id);
|
|
320
|
+
const activeProfile = ctx.deps.activeProfile();
|
|
321
|
+
if (!proj || !ctx.deps.profilesMatch(proj.profile ?? null, activeProfile))
|
|
322
|
+
throw new HttpError(404, 'Project not found');
|
|
323
|
+
requireFields(input, 'project_id', 'name');
|
|
324
|
+
proj.name = input.name.trim().slice(0, 128);
|
|
325
|
+
if ('color' in input) {
|
|
326
|
+
const color = input.color ?? null;
|
|
327
|
+
if (color && !/^#[0-9a-fA-F]{3,8}$/.test(color))
|
|
328
|
+
throw new HttpError(400, 'Invalid color format');
|
|
329
|
+
proj.color = color;
|
|
330
|
+
}
|
|
331
|
+
ctx.deps.projects.save(projects);
|
|
332
|
+
ctx.deps.events.publish('project_rename', { profile: activeProfile });
|
|
333
|
+
return { ok: true, project: proj };
|
|
334
|
+
})),
|
|
335
|
+
delete: os.projects.delete.handler(({ input, context: { ctx } }) => run(() => {
|
|
336
|
+
let projects = ctx.deps.projects.load();
|
|
337
|
+
const proj = projects.find((p) => p.project_id === input.project_id);
|
|
338
|
+
const activeProfile = ctx.deps.activeProfile();
|
|
339
|
+
if (!proj || !ctx.deps.profilesMatch(proj.profile ?? null, activeProfile))
|
|
340
|
+
throw new HttpError(404, 'Project not found');
|
|
341
|
+
projects = projects.filter((p) => p.project_id !== input.project_id);
|
|
342
|
+
ctx.deps.projects.save(projects);
|
|
343
|
+
const store = ctx.deps.sessionStore;
|
|
344
|
+
const activeIds = ctx.deps.sessions.deps.runtime.activeStreamIds;
|
|
345
|
+
try {
|
|
346
|
+
for (const entry of store.readIndexEntries()) {
|
|
347
|
+
if (entry.project_id !== input.project_id)
|
|
348
|
+
continue;
|
|
349
|
+
const sid = str(entry.session_id);
|
|
350
|
+
try {
|
|
351
|
+
if (entry.active_stream_id && activeIds.has(str(entry.active_stream_id))) {
|
|
352
|
+
const cached = store.sessions.get(sid);
|
|
353
|
+
if (cached) {
|
|
354
|
+
cached.project_id = null;
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
const s = store.get(sid);
|
|
359
|
+
s.project_id = null;
|
|
360
|
+
store.save(s);
|
|
361
|
+
}
|
|
362
|
+
catch { /* one slow or failing session never aborts the request */ }
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
catch { /* no index */ }
|
|
366
|
+
ctx.deps.events.publish('project_delete', { profile: activeProfile });
|
|
367
|
+
return { ok: true };
|
|
368
|
+
})),
|
|
369
|
+
},
|
|
370
|
+
talaria: {
|
|
371
|
+
pair: os.talaria.pair.handler(async ({ input, context }) => {
|
|
372
|
+
const { ctx } = context;
|
|
373
|
+
const session = await ensureTrustedAuthSession(ctx);
|
|
374
|
+
const bound = str(session?.bound_profile).trim() || null;
|
|
375
|
+
// Owner permission authorizes publisher registration; it never widens which profile's data the caller reaches.
|
|
376
|
+
const operator = await sessionCanManageServer(ctx, session);
|
|
377
|
+
return relayCall(() => ctx.deps.relay.pair(input, bound ?? ctx.deps.activeProfile(), operator));
|
|
378
|
+
}),
|
|
379
|
+
presence: os.talaria.presence.handler(async ({ input, context }) => {
|
|
380
|
+
const { ctx } = context;
|
|
381
|
+
const session = await ensureTrustedAuthSession(ctx);
|
|
382
|
+
const bound = str(session?.bound_profile).trim() || null;
|
|
383
|
+
return relayCall(() => Promise.resolve(ctx.deps.relay.presence.update(input, ctx.deps.isRootProfile(bound ?? ctx.deps.activeProfile()) ? 'default' : (bound ?? ctx.deps.activeProfile()))));
|
|
384
|
+
}),
|
|
385
|
+
},
|
|
386
|
+
share: {
|
|
387
|
+
create: os.share.create.handler(({ input, context: { ctx } }) => run(() => {
|
|
388
|
+
const sid = input.session_id.trim();
|
|
389
|
+
if (!sid)
|
|
390
|
+
throw new HttpError(400, 'session_id is required');
|
|
391
|
+
return ctx.deps.sessions.createShare(sid);
|
|
392
|
+
})),
|
|
393
|
+
revoke: os.share.revoke.handler(({ input, context: { ctx } }) => run(() => {
|
|
394
|
+
const sid = input.session_id.trim();
|
|
395
|
+
if (!sid)
|
|
396
|
+
throw new HttpError(400, 'session_id is required');
|
|
397
|
+
return ctx.deps.sessions.revokeShare(sid);
|
|
398
|
+
})),
|
|
399
|
+
read: os.share.read.handler(({ input, context: { ctx } }) => run(() => {
|
|
400
|
+
ctx.extraResponseHeaders = { 'x-robots-tag': 'noindex, nofollow' };
|
|
401
|
+
return ctx.deps.sessions.loadShare(input.token.trim());
|
|
402
|
+
})),
|
|
403
|
+
},
|
|
404
|
+
workspaces: {
|
|
405
|
+
list: os.workspaces.list.handler(({ context: { ctx } }) => run(() => {
|
|
406
|
+
const profile = ctx.deps.activeProfile();
|
|
407
|
+
return { workspaces: ctx.deps.workspaces.load(profile), last: ctx.deps.workspaces.lastWorkspace(profile), terminal_remote_backend: ctx.deps.features().terminal_remote_backend };
|
|
408
|
+
})),
|
|
409
|
+
suggest: os.workspaces.suggest.handler(({ input, context: { ctx } }) => run(() => ({ suggestions: ctx.deps.workspaces.suggest(input.prefix ?? '', 12, ctx.deps.activeProfile()), prefix: input.prefix ?? '' }))),
|
|
410
|
+
add: os.workspaces.add.handler(({ input, context: { ctx } }) => run(() => {
|
|
411
|
+
const ws = ctx.deps.workspaces;
|
|
412
|
+
const pathStr = stripSurroundingQuotes(input.path.trim());
|
|
413
|
+
const name = (input.name ?? '').trim();
|
|
414
|
+
if (!pathStr)
|
|
415
|
+
throw new HttpError(400, 'path is required');
|
|
416
|
+
const profile = ctx.deps.activeProfile();
|
|
417
|
+
let candidate;
|
|
418
|
+
let remote;
|
|
419
|
+
try {
|
|
420
|
+
remote = ws.remoteTerminalWorkspaceCandidate(pathStr, profile);
|
|
421
|
+
candidate = ws.resolvePath(pathStr, profile);
|
|
422
|
+
}
|
|
423
|
+
catch (error) {
|
|
424
|
+
throw new HttpError(400, `Invalid path: ${sanitizeError(error)}`);
|
|
425
|
+
}
|
|
426
|
+
if (remote === null) {
|
|
427
|
+
if (isBlockedSystemPath(candidate)) {
|
|
428
|
+
const home = ws.homePath();
|
|
429
|
+
if (!(home !== '/' && (candidate === home || isWithin(candidate, home))))
|
|
430
|
+
throw new HttpError(400, `Path points to a system directory: ${candidate}`);
|
|
431
|
+
}
|
|
432
|
+
if (input.create) {
|
|
433
|
+
try {
|
|
434
|
+
mkdirSync(candidate, { recursive: true });
|
|
435
|
+
}
|
|
436
|
+
catch (error) {
|
|
437
|
+
throw new HttpError(400, `Could not create directory: ${sanitizeError(error)}`);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
let p;
|
|
442
|
+
try {
|
|
443
|
+
p = ws.validateToAdd(pathStr, profile);
|
|
444
|
+
}
|
|
445
|
+
catch (error) {
|
|
446
|
+
throw new HttpError(400, error.message);
|
|
447
|
+
}
|
|
448
|
+
const list = ws.load(profile);
|
|
449
|
+
if (list.some((w) => w.path === p))
|
|
450
|
+
throw new HttpError(400, 'Workspace already in list');
|
|
451
|
+
list.push({ path: p, name: name || basename(p) });
|
|
452
|
+
ws.save(list, profile);
|
|
453
|
+
return { ok: true, workspaces: list };
|
|
454
|
+
})),
|
|
455
|
+
remove: os.workspaces.remove.handler(({ input, context: { ctx } }) => run(() => {
|
|
456
|
+
const pathStr = input.path.trim();
|
|
457
|
+
if (!pathStr)
|
|
458
|
+
throw new HttpError(400, 'path is required');
|
|
459
|
+
const profile = ctx.deps.activeProfile();
|
|
460
|
+
const list = ctx.deps.workspaces.load(profile).filter((w) => w.path !== pathStr);
|
|
461
|
+
ctx.deps.workspaces.save(list, profile);
|
|
462
|
+
return { ok: true, workspaces: list };
|
|
463
|
+
})),
|
|
464
|
+
rename: os.workspaces.rename.handler(({ input, context: { ctx } }) => run(() => {
|
|
465
|
+
const pathStr = input.path.trim();
|
|
466
|
+
const name = input.name.trim();
|
|
467
|
+
if (!pathStr || !name)
|
|
468
|
+
throw new HttpError(400, 'path and name are required');
|
|
469
|
+
const profile = ctx.deps.activeProfile();
|
|
470
|
+
const list = ctx.deps.workspaces.load(profile);
|
|
471
|
+
const entry = list.find((w) => w.path === pathStr);
|
|
472
|
+
if (!entry)
|
|
473
|
+
throw new HttpError(404, 'Workspace not found');
|
|
474
|
+
entry.name = name;
|
|
475
|
+
ctx.deps.workspaces.save(list, profile);
|
|
476
|
+
return { ok: true, workspaces: list };
|
|
477
|
+
})),
|
|
478
|
+
reorder: os.workspaces.reorder.handler(({ input, context: { ctx } }) => run(() => {
|
|
479
|
+
const paths = input.paths;
|
|
480
|
+
if (!Array.isArray(paths) || !paths.length)
|
|
481
|
+
throw new HttpError(400, 'paths is required and must be a list');
|
|
482
|
+
const profile = ctx.deps.activeProfile();
|
|
483
|
+
const list = ctx.deps.workspaces.load(profile);
|
|
484
|
+
const byPath = new Map(list.map((w) => [w.path, w]));
|
|
485
|
+
const reordered = [];
|
|
486
|
+
const seen = new Set();
|
|
487
|
+
for (const raw of paths) {
|
|
488
|
+
const p = String(raw).trim();
|
|
489
|
+
const entry = byPath.get(p);
|
|
490
|
+
if (entry && !seen.has(p)) {
|
|
491
|
+
reordered.push(entry);
|
|
492
|
+
seen.add(p);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
for (const w of list)
|
|
496
|
+
if (!seen.has(w.path))
|
|
497
|
+
reordered.push(w);
|
|
498
|
+
ctx.deps.workspaces.save(reordered, profile);
|
|
499
|
+
return { ok: true, workspaces: reordered };
|
|
500
|
+
})),
|
|
501
|
+
},
|
|
502
|
+
files: {
|
|
503
|
+
list: os.files.list.handler(({ input, context: { ctx } }) => run(() => {
|
|
504
|
+
if (!input.session_id)
|
|
505
|
+
throw new HttpError(400, 'session_id is required');
|
|
506
|
+
guardVisibility(ctx, input.session_id);
|
|
507
|
+
// Python `_handle_list` resolved the workspace directly and answered 404 with the trust error; the POST file ops
|
|
508
|
+
// keep `get_session_for_file_ops`' lenient fallback.
|
|
509
|
+
const s = fileOpsSession(ctx, input.session_id, { strictWorkspace: true });
|
|
510
|
+
const rel = input.path ?? '.';
|
|
511
|
+
try {
|
|
512
|
+
const entries = listDir(s.workspace, rel);
|
|
513
|
+
return { entries: serializeEntriesForBrowser(entries), signature: dirSignature(s.workspace, rel, entries), path: rel, workspace: s.workspace, workspace_recovered: s.recovered };
|
|
514
|
+
}
|
|
515
|
+
catch (error) {
|
|
516
|
+
throw fileError(error, 404);
|
|
517
|
+
}
|
|
518
|
+
})),
|
|
519
|
+
read: os.files.read.handler(({ input, context: { ctx } }) => run(() => {
|
|
520
|
+
if (!input.session_id)
|
|
521
|
+
throw new HttpError(400, 'session_id is required');
|
|
522
|
+
guardVisibility(ctx, input.session_id);
|
|
523
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
524
|
+
if (!input.path)
|
|
525
|
+
throw new HttpError(400, 'path is required');
|
|
526
|
+
try {
|
|
527
|
+
return readFileContent(s.workspace, input.path);
|
|
528
|
+
}
|
|
529
|
+
catch (error) {
|
|
530
|
+
throw fileError(error, 404);
|
|
531
|
+
}
|
|
532
|
+
})),
|
|
533
|
+
save: os.files.save.handler(({ input, context: { ctx } }) => run(() => {
|
|
534
|
+
requireFields(input, 'session_id', 'path');
|
|
535
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
536
|
+
try {
|
|
537
|
+
if (['.docx', '.xlsx', '.pptx'].includes(extname(input.path).toLowerCase()))
|
|
538
|
+
throw new HttpError(400, 'Office documents cannot be saved from the Web UI');
|
|
539
|
+
const root = s.workspace;
|
|
540
|
+
const target = safeResolve(root, input.path);
|
|
541
|
+
if (isSymlinkAt(join(root, input.path)))
|
|
542
|
+
throw new HttpError(400, 'Cannot save to a symlinked entry');
|
|
543
|
+
if (!existsSync(target))
|
|
544
|
+
throw new HttpError(404, 'File not found');
|
|
545
|
+
if (statSync(target).isDirectory())
|
|
546
|
+
throw new HttpError(400, 'Cannot save: path is a directory');
|
|
547
|
+
const data = Buffer.from(input.content ?? '', 'utf8');
|
|
548
|
+
const fd = openAnchoredWriteFd(root, target);
|
|
549
|
+
try {
|
|
550
|
+
writeFully(fd, data);
|
|
551
|
+
}
|
|
552
|
+
finally {
|
|
553
|
+
closeSync(fd);
|
|
554
|
+
}
|
|
555
|
+
return { ok: true, path: input.path, size: data.length };
|
|
556
|
+
}
|
|
557
|
+
catch (error) {
|
|
558
|
+
throw fileError(error);
|
|
559
|
+
}
|
|
560
|
+
})),
|
|
561
|
+
create: os.files.create.handler(({ input, context: { ctx } }) => run(() => {
|
|
562
|
+
requireFields(input, 'session_id', 'path');
|
|
563
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
564
|
+
try {
|
|
565
|
+
const root = s.workspace;
|
|
566
|
+
const target = safeResolve(root, input.path);
|
|
567
|
+
if (existsSync(target))
|
|
568
|
+
throw new HttpError(400, 'File already exists');
|
|
569
|
+
const data = Buffer.from(input.content ?? '', 'utf8');
|
|
570
|
+
const fd = openAnchoredCreateFd(root, target);
|
|
571
|
+
try {
|
|
572
|
+
writeFully(fd, data);
|
|
573
|
+
}
|
|
574
|
+
finally {
|
|
575
|
+
closeSync(fd);
|
|
576
|
+
}
|
|
577
|
+
return { ok: true, path: relative(resolvePathLikePython(root), target).split('\\').join('/') };
|
|
578
|
+
}
|
|
579
|
+
catch (error) {
|
|
580
|
+
if (error instanceof FileExistsError)
|
|
581
|
+
throw new HttpError(400, 'File already exists');
|
|
582
|
+
throw fileError(error);
|
|
583
|
+
}
|
|
584
|
+
})),
|
|
585
|
+
createDir: os.files.createDir.handler(({ input, context: { ctx } }) => run(() => {
|
|
586
|
+
requireFields(input, 'session_id', 'path');
|
|
587
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
588
|
+
try {
|
|
589
|
+
const root = s.workspace;
|
|
590
|
+
const target = safeResolve(root, input.path);
|
|
591
|
+
if (existsSync(target))
|
|
592
|
+
throw new HttpError(400, 'Path already exists');
|
|
593
|
+
makeAnchoredDir(root, target);
|
|
594
|
+
return { ok: true, path: relative(resolvePathLikePython(root), target).split('\\').join('/') };
|
|
595
|
+
}
|
|
596
|
+
catch (error) {
|
|
597
|
+
throw fileError(error);
|
|
598
|
+
}
|
|
599
|
+
})),
|
|
600
|
+
delete: os.files.delete.handler(({ input, context: { ctx } }) => run(() => {
|
|
601
|
+
requireFields(input, 'session_id', 'path');
|
|
602
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
603
|
+
try {
|
|
604
|
+
const root = s.workspace;
|
|
605
|
+
const target = safeResolve(root, input.path);
|
|
606
|
+
if (isSymlinkAt(join(root, input.path)))
|
|
607
|
+
throw new HttpError(400, 'Cannot delete a symlinked entry');
|
|
608
|
+
if (!existsSync(target))
|
|
609
|
+
throw new HttpError(404, 'File not found');
|
|
610
|
+
if (statSync(target).isDirectory()) {
|
|
611
|
+
if (!input.recursive)
|
|
612
|
+
throw new HttpError(400, 'Set recursive=true to delete directories');
|
|
613
|
+
rmtreeAnchored(root, target);
|
|
614
|
+
}
|
|
615
|
+
else
|
|
616
|
+
unlinkAnchored(root, target);
|
|
617
|
+
return { ok: true, path: input.path };
|
|
618
|
+
}
|
|
619
|
+
catch (error) {
|
|
620
|
+
throw fileError(error);
|
|
621
|
+
}
|
|
622
|
+
})),
|
|
623
|
+
rename: os.files.rename.handler(({ input, context: { ctx } }) => run(() => {
|
|
624
|
+
requireFields(input, 'session_id', 'path', 'new_name');
|
|
625
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
626
|
+
try {
|
|
627
|
+
const root = s.workspace;
|
|
628
|
+
const rootResolved = resolvePathLikePython(root);
|
|
629
|
+
const source = safeResolve(root, input.path);
|
|
630
|
+
if (isSymlinkAt(join(root, input.path)))
|
|
631
|
+
throw new HttpError(400, 'Cannot rename a symlinked entry');
|
|
632
|
+
if (!existsSync(source))
|
|
633
|
+
throw new HttpError(404, 'File not found');
|
|
634
|
+
const newName = input.new_name.trim();
|
|
635
|
+
if (!newName || newName.includes('/') || newName.includes('\\') || newName.includes('..'))
|
|
636
|
+
throw new HttpError(400, 'Invalid file name');
|
|
637
|
+
const dest = join(dirname(source), newName);
|
|
638
|
+
if (existsSync(dest))
|
|
639
|
+
throw new HttpError(400, `A file named "${newName}" already exists`);
|
|
640
|
+
renameAnchored(root, source, dest);
|
|
641
|
+
return { ok: true, old_path: input.path, new_path: relative(rootResolved, dest).split('\\').join('/') };
|
|
642
|
+
}
|
|
643
|
+
catch (error) {
|
|
644
|
+
if (error instanceof FileExistsError)
|
|
645
|
+
throw new HttpError(400, `A file named "${input.new_name}" already exists`);
|
|
646
|
+
throw fileError(error);
|
|
647
|
+
}
|
|
648
|
+
})),
|
|
649
|
+
move: os.files.move.handler(({ input, context: { ctx } }) => run(() => {
|
|
650
|
+
requireFields({ ...input, dest_dir: input.dest_dir ?? input.destination }, 'session_id', 'path', 'dest_dir');
|
|
651
|
+
const destDirRaw = (input.dest_dir ?? input.destination ?? '.').trim() || '.';
|
|
652
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
653
|
+
try {
|
|
654
|
+
const root = s.workspace;
|
|
655
|
+
const rootResolved = resolvePathLikePython(root);
|
|
656
|
+
const source = safeResolve(root, input.path);
|
|
657
|
+
if (isSymlinkAt(join(root, input.path)))
|
|
658
|
+
throw new HttpError(400, 'Cannot move a symlinked entry');
|
|
659
|
+
if (!existsSync(source))
|
|
660
|
+
throw new HttpError(404, 'File not found');
|
|
661
|
+
if (destDirRaw.split('/').includes('..'))
|
|
662
|
+
throw new HttpError(400, 'Invalid destination');
|
|
663
|
+
const destParent = safeResolve(root, destDirRaw);
|
|
664
|
+
if (!existsSync(destParent) || !statSync(destParent).isDirectory())
|
|
665
|
+
throw new HttpError(404, 'Destination folder not found');
|
|
666
|
+
if (statSync(source).isDirectory() && isWithin(resolvePathLikePython(destParent), resolvePathLikePython(source)))
|
|
667
|
+
throw new HttpError(400, 'Cannot move a folder into itself or its subfolder');
|
|
668
|
+
const dest = join(destParent, basename(source));
|
|
669
|
+
if (resolvePathLikePython(dest) === resolvePathLikePython(source))
|
|
670
|
+
return { ok: true, old_path: input.path, new_path: relative(rootResolved, source).split('\\').join('/') };
|
|
671
|
+
if (existsSync(dest))
|
|
672
|
+
throw new HttpError(400, `A file named "${basename(source)}" already exists in that folder`);
|
|
673
|
+
renameAnchored(root, source, dest);
|
|
674
|
+
return { ok: true, old_path: input.path, new_path: relative(rootResolved, dest).split('\\').join('/') };
|
|
675
|
+
}
|
|
676
|
+
catch (error) {
|
|
677
|
+
if (error instanceof FileExistsError)
|
|
678
|
+
throw new HttpError(400, `A file named "${basename(input.path)}" already exists in that folder`);
|
|
679
|
+
throw fileError(error);
|
|
680
|
+
}
|
|
681
|
+
})),
|
|
682
|
+
reveal: os.files.reveal.handler(({ input, context: { ctx } }) => run(async () => {
|
|
683
|
+
requireFields(input, 'session_id', 'path');
|
|
684
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
685
|
+
try {
|
|
686
|
+
const target = safeResolve(s.workspace, input.path);
|
|
687
|
+
if (!existsSync(target))
|
|
688
|
+
throw new HttpError(404, `File not found: ${target}`);
|
|
689
|
+
const targetStr = ctx.deps.vscode().translate(target);
|
|
690
|
+
const system = platform();
|
|
691
|
+
if (system === 'darwin')
|
|
692
|
+
await spawnDetached(['open', '-R', targetStr]);
|
|
693
|
+
else if (system === 'win32')
|
|
694
|
+
await spawnDetached(['explorer.exe', `/select,${targetStr}`]);
|
|
695
|
+
else
|
|
696
|
+
await spawnDetached(['xdg-open', dirname(targetStr)]);
|
|
697
|
+
return { ok: true, path: input.path };
|
|
698
|
+
}
|
|
699
|
+
catch (error) {
|
|
700
|
+
throw fileError(error);
|
|
701
|
+
}
|
|
702
|
+
})),
|
|
703
|
+
openVsCode: os.files.openVsCode.handler(({ input, context: { ctx } }) => run(async () => {
|
|
704
|
+
requireFields(input, 'session_id', 'path');
|
|
705
|
+
const s = fileOpsSession(ctx, input.session_id);
|
|
706
|
+
try {
|
|
707
|
+
const target = safeResolve(s.workspace, input.path);
|
|
708
|
+
if (!existsSync(target))
|
|
709
|
+
throw new HttpError(404, `File not found: ${target}`);
|
|
710
|
+
const vscode = ctx.deps.vscode();
|
|
711
|
+
const cmd = vscode.command();
|
|
712
|
+
if (!cmd)
|
|
713
|
+
throw new HttpError(400, `VS Code command not found: ${pyRepr(vscode.configuredCommand)}. Install VS Code and ensure the 'code' CLI is on PATH, or set vscode.command in config.yaml to the full path.`);
|
|
714
|
+
await spawnDetached([cmd, vscode.translate(target)]);
|
|
715
|
+
return { ok: true, path: input.path };
|
|
716
|
+
}
|
|
717
|
+
catch (error) {
|
|
718
|
+
throw fileError(error);
|
|
719
|
+
}
|
|
720
|
+
})),
|
|
721
|
+
},
|
|
722
|
+
});
|
|
723
|
+
function isSymlinkAt(path) {
|
|
724
|
+
try {
|
|
725
|
+
return lstatSync(path).isSymbolicLink();
|
|
726
|
+
}
|
|
727
|
+
catch {
|
|
728
|
+
return false;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
function fileError(error, notFoundStatus = 400) {
|
|
732
|
+
if (error instanceof HttpError)
|
|
733
|
+
return error;
|
|
734
|
+
if (error instanceof HttpFailure)
|
|
735
|
+
return new HttpError(error.status, error.message, error.extra);
|
|
736
|
+
if (error instanceof NotFoundError || error instanceof PathTraversalError || error instanceof FileTooLargeError)
|
|
737
|
+
return new HttpError(notFoundStatus, sanitizeError(error));
|
|
738
|
+
if (error instanceof Error && 'code' in error)
|
|
739
|
+
return new HttpError(notFoundStatus, sanitizeError(error));
|
|
740
|
+
return error;
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Python `get_session_for_file_ops` + `_file_ops_session_or_error`. A session the Agent owns in the active profile's
|
|
744
|
+
* `state.db` but that has no `sessions/<sid>.json` (CLI, messaging) is served as an external view bound to the active
|
|
745
|
+
* workspace, as the sidebar already lists it (issue #3280).
|
|
746
|
+
*/
|
|
747
|
+
export function fileOpsSession(ctx, sid, opts = {}) {
|
|
748
|
+
let session;
|
|
749
|
+
try {
|
|
750
|
+
session = ctx.deps.sessionStore.get(sid, { metadataOnly: true });
|
|
751
|
+
}
|
|
752
|
+
catch {
|
|
753
|
+
const profile = ctx.deps.activeProfile();
|
|
754
|
+
if (!isSafeSessionId(sid) || !stateDbHasSession(ctx.deps.cliSessions.dbPath(profile), sid))
|
|
755
|
+
throw new HttpError(404, 'Session not found');
|
|
756
|
+
if (!ctx.deps.workspaces.profileSupportsLocalIo(profile))
|
|
757
|
+
throw new HttpError(400, REMOTE_WORKSPACE_UNSUPPORTED_CODE, { message: REMOTE_WORKSPACE_UNSUPPORTED_MESSAGE });
|
|
758
|
+
return { workspace: ctx.deps.workspaces.lastWorkspace(profile), profile, recovered: false, session: null };
|
|
759
|
+
}
|
|
760
|
+
if (!ctx.deps.profilesMatch(session.profile, ctx.deps.activeProfile()))
|
|
761
|
+
throw new HttpError(404, 'Session not found');
|
|
762
|
+
if (!ctx.deps.workspaces.profileSupportsLocalIo(session.profile))
|
|
763
|
+
throw new HttpError(400, REMOTE_WORKSPACE_UNSUPPORTED_CODE, { message: REMOTE_WORKSPACE_UNSUPPORTED_MESSAGE });
|
|
764
|
+
let workspace = session.workspace;
|
|
765
|
+
let recovered = false;
|
|
766
|
+
try {
|
|
767
|
+
;
|
|
768
|
+
[workspace, recovered] = ctx.deps.workspaces.resolveImplicitWithRecovery(session.workspace, (p) => ctx.deps.workspaces.lastWorkspace(p), session.profile);
|
|
769
|
+
}
|
|
770
|
+
catch (error) {
|
|
771
|
+
if (opts.strictWorkspace)
|
|
772
|
+
throw new HttpError(404, error instanceof Error ? error.message : 'Workspace is not trusted');
|
|
773
|
+
workspace = session.workspace;
|
|
774
|
+
}
|
|
775
|
+
if (recovered) {
|
|
776
|
+
session.workspace = workspace;
|
|
777
|
+
const cached = ctx.deps.sessionStore.sessions.get(sid);
|
|
778
|
+
if (cached)
|
|
779
|
+
cached.workspace = workspace;
|
|
780
|
+
try {
|
|
781
|
+
const full = ctx.deps.sessionStore.load(sid);
|
|
782
|
+
if (full) {
|
|
783
|
+
full.workspace = workspace;
|
|
784
|
+
ctx.deps.sessionStore.save(full, { touchUpdatedAt: false });
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
catch { /* recovery persistence is best effort */ }
|
|
788
|
+
}
|
|
789
|
+
return { workspace, profile: session.profile, recovered, session };
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Python `spawn_detached_app`: `Popen` raised synchronously when the launcher binary was missing, so the route answered
|
|
793
|
+
* 400 instead of `{ok:true}`; Node reports that on the `error` event, awaited here before the handler answers.
|
|
794
|
+
*/
|
|
795
|
+
function spawnDetached(cmd) {
|
|
796
|
+
const [file, ...args] = cmd;
|
|
797
|
+
if (!file)
|
|
798
|
+
return Promise.resolve();
|
|
799
|
+
return new Promise((resolve, reject) => {
|
|
800
|
+
const child = spawn(file, args, { detached: true, stdio: 'ignore' });
|
|
801
|
+
child.once('error', (error) => { reject(new HttpError(400, error.code ? pyOsError(error, file) : sanitizeError(error))); });
|
|
802
|
+
child.once('spawn', () => { child.unref(); resolve(); });
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
async function relayCall(fn) {
|
|
806
|
+
try {
|
|
807
|
+
return await fn();
|
|
808
|
+
}
|
|
809
|
+
catch (error) {
|
|
810
|
+
if (error instanceof RelayPairingError)
|
|
811
|
+
throw new HttpError(error.status, error.message);
|
|
812
|
+
throw error;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
//# sourceMappingURL=sessions-router.js.map
|