scope-agent-workbench 0.0.0-stage → 0.2.3
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/CHANGELOG.md +59 -0
- package/LICENSE +21 -0
- package/README.md +174 -2
- package/README.zh-CN.md +175 -0
- package/bin/scope.mjs +111 -0
- package/bridge/account-quotas.mjs +881 -0
- package/bridge/agent-email-relay.mjs +160 -0
- package/bridge/app-server-client.mjs +2522 -0
- package/bridge/app-server-websocket-transport.mjs +219 -0
- package/bridge/archive/routes.mjs +19 -0
- package/bridge/archive/service.mjs +130 -0
- package/bridge/archive/thread-lifecycle.mjs +52 -0
- package/bridge/attachment-store.mjs +184 -0
- package/bridge/auth-profile-failover.mjs +58 -0
- package/bridge/auth-profile-manager.mjs +215 -0
- package/bridge/capacity-recovery.mjs +90 -0
- package/bridge/codex-upgrade.mjs +150 -0
- package/bridge/deployment-profile.mjs +64 -0
- package/bridge/email-notifier.mjs +616 -0
- package/bridge/gpu-usage-history.mjs +322 -0
- package/bridge/host-session-restart.mjs +35 -0
- package/bridge/http.mjs +69 -0
- package/bridge/idle-sessions.mjs +185 -0
- package/bridge/inventory-scanner.mjs +517 -0
- package/bridge/local/dialogue.mjs +150 -0
- package/bridge/local/directories.mjs +40 -0
- package/bridge/local/executable.mjs +29 -0
- package/bridge/local/history.mjs +36 -0
- package/bridge/local/python-probe.mjs +35 -0
- package/bridge/local/runtime.mjs +188 -0
- package/bridge/local/transport.mjs +70 -0
- package/bridge/maintenance/install-command.mjs +141 -0
- package/bridge/maintenance/routes.mjs +21 -0
- package/bridge/maintenance/service.mjs +175 -0
- package/bridge/model-catalog.mjs +21 -0
- package/bridge/persistent-home-guard.mjs +6 -0
- package/bridge/plugins/aliyun-dlc/index.mjs +47 -0
- package/bridge/plugins/aliyun-dlc/manifest.mjs +12 -0
- package/bridge/plugins/aliyun-dlc/monitor.mjs +236 -0
- package/bridge/plugins/aliyun-dlc/probe.mjs +701 -0
- package/bridge/plugins/config-store.mjs +35 -0
- package/bridge/plugins/external.mjs +87 -0
- package/bridge/plugins/package.mjs +96 -0
- package/bridge/plugins/registry.mjs +37 -0
- package/bridge/plugins/routes.mjs +27 -0
- package/bridge/private-gateway.mjs +371 -0
- package/bridge/private-start.mjs +22 -0
- package/bridge/probes/app-server-handoff-probe.mjs +89 -0
- package/bridge/probes/app-server-writer-probe.mjs +72 -0
- package/bridge/probes/assistant-search-probe.mjs +323 -0
- package/bridge/probes/dialogue-probe.mjs +464 -0
- package/bridge/probes/history-probe.mjs +432 -0
- package/bridge/probes/index.mjs +15 -0
- package/bridge/probes/new-session-preflight.mjs +16 -0
- package/bridge/probes/profile-cancel-probe.mjs +19 -0
- package/bridge/probes/profile-delete-probe.mjs +28 -0
- package/bridge/probes/profile-list-probe.mjs +117 -0
- package/bridge/probes/profile-write-probe.mjs +111 -0
- package/bridge/probes/raw-context-probe.mjs +53 -0
- package/bridge/probes/remote-probe.mjs +637 -0
- package/bridge/probes/submission-probe.mjs +2 -0
- package/bridge/probes/takeover-probe.mjs +328 -0
- package/bridge/probes/vscode-open-preflight.mjs +23 -0
- package/bridge/profile-capacity-policy.mjs +14 -0
- package/bridge/providers/acp-forms.py +49 -0
- package/bridge/providers/antigravity-interactive.mjs +14 -0
- package/bridge/providers/antigravity-interactive.py +349 -0
- package/bridge/providers/claude-capabilities.py +52 -0
- package/bridge/providers/claude-interactive.mjs +14 -0
- package/bridge/providers/claude-interactive.py +463 -0
- package/bridge/providers/cli-command.mjs +103 -0
- package/bridge/providers/codex-workbench.mjs +164 -0
- package/bridge/providers/conversation-routes.mjs +28 -0
- package/bridge/providers/conversations.mjs +231 -0
- package/bridge/providers/native-commands.mjs +48 -0
- package/bridge/providers/native-commands.py +38 -0
- package/bridge/providers/native-models.mjs +129 -0
- package/bridge/providers/native-session-state.mjs +14 -0
- package/bridge/providers/native-session-state.py +96 -0
- package/bridge/providers/remote-cli.mjs +75 -0
- package/bridge/providers/remote-job.py +130 -0
- package/bridge/remote-app-server-command.mjs +203 -0
- package/bridge/remote-bootstrap/routes.mjs +51 -0
- package/bridge/remote-bootstrap/scope-protocol.mjs +125 -0
- package/bridge/remote-bootstrap/service.mjs +597 -0
- package/bridge/remote-bootstrap/tunnels.mjs +347 -0
- package/bridge/remote-directory-listing.mjs +148 -0
- package/bridge/remote-images.mjs +140 -0
- package/bridge/remote-profile-home.mjs +39 -0
- package/bridge/remote-rollout-locks.mjs +31 -0
- package/bridge/remote-videos.mjs +129 -0
- package/bridge/research/insights.mjs +522 -0
- package/bridge/research/scan-host.mjs +18 -0
- package/bridge/rollout-summary.mjs +177 -0
- package/bridge/routes/accounts.mjs +326 -0
- package/bridge/routes/dialogue.mjs +165 -0
- package/bridge/routes/email.mjs +50 -0
- package/bridge/routes/management.mjs +291 -0
- package/bridge/routes/models.mjs +312 -0
- package/bridge/routes/runtime.mjs +82 -0
- package/bridge/routes/session-commands.mjs +12 -0
- package/bridge/routes/session-delivery.mjs +328 -0
- package/bridge/routes/session-lifecycle.mjs +839 -0
- package/bridge/routes/system.mjs +289 -0
- package/bridge/server.mjs +3357 -0
- package/bridge/session-attachments.mjs +150 -0
- package/bridge/session-cache-archive.mjs +22 -0
- package/bridge/session-catalog/agy-history.py +388 -0
- package/bridge/session-catalog/catalog.mjs +110 -0
- package/bridge/session-catalog/probe.py +1207 -0
- package/bridge/session-catalog/routes.mjs +34 -0
- package/bridge/session-profiles.mjs +115 -0
- package/bridge/shared-start.mjs +22 -0
- package/bridge/start.mjs +205 -0
- package/bridge/state-persistence.mjs +405 -0
- package/bridge/submissions/settings.mjs +50 -0
- package/bridge/terminal-gateway.mjs +171 -0
- package/bridge/tmux-delivery.mjs +390 -0
- package/bridge/tmux-session-control.mjs +29 -0
- package/bridge/transport/ssh-command.mjs +119 -0
- package/bridge/ui-server.mjs +257 -0
- package/bridge/vscode-opener.mjs +157 -0
- package/bridge/web-terminal.mjs +52 -0
- package/bridge/workbench/conversation-routes.mjs +31 -0
- package/bridge/workbench/directory-probe.mjs +41 -0
- package/bridge/workbench/directory-routes.mjs +112 -0
- package/bridge/workbench/manager-context.mjs +51 -0
- package/bridge/workbench/routes.mjs +40 -0
- package/bridge/workbench/scheduler.mjs +131 -0
- package/bridge/workbench/service.mjs +301 -0
- package/bridge/workbench/store.mjs +64 -0
- package/bridge/workbench/task-archive.mjs +46 -0
- package/dist/client/.assetsignore +2 -0
- package/dist/client/.vite/manifest.json +366 -0
- package/dist/client/_headers +3 -0
- package/dist/client/agents/LICENSE.lobe-icons +21 -0
- package/dist/client/agents/README.md +14 -0
- package/dist/client/agents/antigravity.svg +39 -0
- package/dist/client/agents/claude.svg +1 -0
- package/dist/client/agents/codex.svg +1 -0
- package/dist/client/agents/dsh.svg +4 -0
- package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/client/assets/_vinext_fonts/geist-8ac0455e797f/geist-001175b1.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-8ac0455e797f/geist-52306abf.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-8ac0455e797f/geist-875ccdd4.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-8ac0455e797f/geist-98bbbccb.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-8ac0455e797f/geist-ff2310f5.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-mono-00e989178794/geist-mono-013b2f2f.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-mono-00e989178794/geist-mono-0638449e.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-mono-00e989178794/geist-mono-44745446.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-mono-00e989178794/geist-mono-44e03052.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-mono-00e989178794/geist-mono-971fb274.woff2 +0 -0
- package/dist/client/assets/_vinext_fonts/geist-mono-00e989178794/geist-mono-f6b33328.woff2 +0 -0
- package/dist/client/assets/addon-fit-BZbxZs2G.js +1 -0
- package/dist/client/assets/framework-CXnKph_e.js +9 -0
- package/dist/client/assets/index-BMior55c.js +3 -0
- package/dist/client/assets/index-CNnP2Ses.css +2 -0
- package/dist/client/assets/layout-segment-context-DjGudgXn.js +1 -0
- package/dist/client/assets/page-CJqXlhDs.js +551 -0
- package/dist/client/assets/page-LYzRz6_S.css +1 -0
- package/dist/client/assets/rolldown-runtime-S-ySWqyJ.js +1 -0
- package/dist/client/assets/xterm-BBgU7shl.js +36 -0
- package/dist/client/favicon.svg +6 -0
- package/dist/client/file.svg +1 -0
- package/dist/client/globe.svg +1 -0
- package/dist/client/og.png +0 -0
- package/dist/client/scope-logo.svg +11 -0
- package/dist/client/window.svg +1 -0
- package/dist/server/.vite/manifest.json +14 -0
- package/dist/server/__vite_rsc_assets_manifest.js +49 -0
- package/dist/server/assets/index-CNnP2Ses.css +2 -0
- package/dist/server/image-config.json +1 -0
- package/dist/server/index.js +15201 -0
- package/dist/server/ssr/__vite_rsc_assets_manifest.js +49 -0
- package/dist/server/ssr/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/server/ssr/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/server/ssr/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/server/ssr/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/server/ssr/assets/addon-fit-C09Jj0_f.js +42 -0
- package/dist/server/ssr/assets/error-boundary-Dd2ZYXA8.js +277 -0
- package/dist/server/ssr/assets/layout-segment-context-HV_Mvyzf.js +37 -0
- package/dist/server/ssr/assets/page-BB9Dri2u.js +104686 -0
- package/dist/server/ssr/assets/page-LYzRz6_S.css +1 -0
- package/dist/server/ssr/assets/xterm-DgzE4ZZ1.js +10232 -0
- package/dist/server/ssr/index.js +11840 -0
- package/dist/server/ssr/vinext-server.json +1 -0
- package/dist/server/vinext-externals.json +1 -0
- package/dist/server/vinext-server.json +1 -0
- package/dist/server/wrangler.json +1 -0
- package/examples/agents/global-agreements.example.md +10 -0
- package/examples/agents/research-project.example.md +10 -0
- package/examples/agents-media-previews.md +22 -0
- package/examples/deployment.example.json +6 -0
- package/examples/leak-denylist.example.json +10 -0
- package/examples/plugins/hello/index.mjs +4 -0
- package/examples/plugins/hello/scope-plugin.json +13 -0
- package/examples/workbench.config.json +44 -0
- package/lib/account-quota.d.ts +42 -0
- package/lib/account-quota.js +121 -0
- package/lib/browser-snapshot-cache.js +61 -0
- package/lib/conversation-location.js +26 -0
- package/lib/conversation.js +62 -0
- package/lib/dialogue-refresh.js +14 -0
- package/lib/execution-host.js +22 -0
- package/lib/formula-preview.js +48 -0
- package/lib/i18n.tsx +81 -0
- package/lib/incremental-snapshot.js +324 -0
- package/lib/manager-plan.js +37 -0
- package/lib/markdown-images.js +22 -0
- package/lib/markdown-math.js +151 -0
- package/lib/markdown-url.js +13 -0
- package/lib/model-effort.js +13 -0
- package/lib/native-history.d.ts +32 -0
- package/lib/native-history.js +94 -0
- package/lib/overview-delta.js +41 -0
- package/lib/project-view.js +86 -0
- package/lib/projects.js +74 -0
- package/lib/remote-links.js +95 -0
- package/lib/runtime-config.js +70 -0
- package/lib/session-activity.js +34 -0
- package/lib/session-cache-guard.js +52 -0
- package/lib/session-filters.js +38 -0
- package/lib/ssh-config.js +26 -0
- package/lib/stable-order.js +39 -0
- package/lib/subagent-display-prefs.ts +130 -0
- package/lib/workbench-config.js +172 -0
- package/package.json +105 -4
- package/scripts/agent-email-relay.mjs +104 -0
- package/scripts/benchmark-bridge.mjs +38 -0
- package/scripts/cli-integration-smoke.mjs +64 -0
- package/scripts/email-notification-cli.mjs +28 -0
- package/scripts/enable-private-access.ps1 +109 -0
- package/scripts/export-opensource.mjs +112 -0
- package/scripts/fixtures/media/convergence.png +0 -0
- package/scripts/fixtures/media/rollout_demo.mp4 +0 -0
- package/scripts/fixtures/native-conversations.mjs +465 -0
- package/scripts/fixtures/workbench-conversations.mjs +475 -0
- package/scripts/install-remote-server.sh +67 -0
- package/scripts/lib/export-directory.mjs +38 -0
- package/scripts/lib/secret-scanner.mjs +139 -0
- package/scripts/plugin-cli.mjs +19 -0
- package/scripts/preview-workbench.mjs +669 -0
- package/scripts/probe-antigravity-acp.mjs +35 -0
- package/scripts/remote-bootstrap-cli.mjs +52 -0
- package/scripts/remote-email-tool.py +383 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"bootstrapScriptContent": "import(\"/assets/index-BMior55c.js\")",
|
|
3
|
+
"clientReferenceDeps": {
|
|
4
|
+
"6efdf509a785": {
|
|
5
|
+
"js": [
|
|
6
|
+
"/assets/page-CJqXlhDs.js",
|
|
7
|
+
"/assets/rolldown-runtime-S-ySWqyJ.js",
|
|
8
|
+
"/assets/index-BMior55c.js",
|
|
9
|
+
"/assets/framework-CXnKph_e.js"
|
|
10
|
+
],
|
|
11
|
+
"css": [
|
|
12
|
+
"/assets/page-LYzRz6_S.css"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"593f344dc510": {
|
|
16
|
+
"js": [
|
|
17
|
+
"/assets/index-BMior55c.js",
|
|
18
|
+
"/assets/rolldown-runtime-S-ySWqyJ.js",
|
|
19
|
+
"/assets/framework-CXnKph_e.js"
|
|
20
|
+
],
|
|
21
|
+
"css": []
|
|
22
|
+
},
|
|
23
|
+
"15c18cfaeeff": {
|
|
24
|
+
"js": [
|
|
25
|
+
"/assets/layout-segment-context-DjGudgXn.js",
|
|
26
|
+
"/assets/rolldown-runtime-S-ySWqyJ.js",
|
|
27
|
+
"/assets/index-BMior55c.js",
|
|
28
|
+
"/assets/framework-CXnKph_e.js"
|
|
29
|
+
],
|
|
30
|
+
"css": []
|
|
31
|
+
},
|
|
32
|
+
"8c0f216c4604": {
|
|
33
|
+
"js": [
|
|
34
|
+
"/assets/index-BMior55c.js",
|
|
35
|
+
"/assets/rolldown-runtime-S-ySWqyJ.js",
|
|
36
|
+
"/assets/framework-CXnKph_e.js"
|
|
37
|
+
],
|
|
38
|
+
"css": []
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"serverResources": {
|
|
42
|
+
"app/layout.tsx": {
|
|
43
|
+
"js": [],
|
|
44
|
+
"css": [
|
|
45
|
+
"/assets/index-CNnP2Ses.css"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region node_modules/@xterm/addon-fit/lib/addon-fit.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
4
|
+
* @license MIT
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
7
|
+
* @license MIT
|
|
8
|
+
*
|
|
9
|
+
* Originally forked from (with the author's permission):
|
|
10
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
11
|
+
* http://bellard.org/jslinux/
|
|
12
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
13
|
+
*/
|
|
14
|
+
var h = 2, _ = 1, o = class {
|
|
15
|
+
activate(e) {
|
|
16
|
+
this._terminal = e;
|
|
17
|
+
}
|
|
18
|
+
dispose() {}
|
|
19
|
+
fit() {
|
|
20
|
+
let e = this.proposeDimensions();
|
|
21
|
+
if (!e || !this._terminal || isNaN(e.cols) || isNaN(e.rows)) return;
|
|
22
|
+
let t = this._terminal._core;
|
|
23
|
+
(this._terminal.rows !== e.rows || this._terminal.cols !== e.cols) && (t._renderService.clear(), this._terminal.resize(e.cols, e.rows));
|
|
24
|
+
}
|
|
25
|
+
proposeDimensions() {
|
|
26
|
+
if (!this._terminal || !this._terminal.element || !this._terminal.element.parentElement) return;
|
|
27
|
+
let t = this._terminal._core._renderService.dimensions;
|
|
28
|
+
if (t.css.cell.width === 0 || t.css.cell.height === 0) return;
|
|
29
|
+
let s = this._terminal.options.scrollback === 0 ? 0 : this._terminal.options.overviewRuler?.width || 14, r = window.getComputedStyle(this._terminal.element.parentElement), l = parseInt(r.getPropertyValue("height")), a = Math.max(0, parseInt(r.getPropertyValue("width"))), i = window.getComputedStyle(this._terminal.element), n = {
|
|
30
|
+
top: parseInt(i.getPropertyValue("padding-top")),
|
|
31
|
+
bottom: parseInt(i.getPropertyValue("padding-bottom")),
|
|
32
|
+
right: parseInt(i.getPropertyValue("padding-right")),
|
|
33
|
+
left: parseInt(i.getPropertyValue("padding-left"))
|
|
34
|
+
}, m = n.top + n.bottom, d = n.right + n.left, c = l - m, p = a - d - s;
|
|
35
|
+
return {
|
|
36
|
+
cols: Math.max(h, Math.floor(p / t.css.cell.width)),
|
|
37
|
+
rows: Math.max(_, Math.floor(c / t.css.cell.height))
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { o as FitAddon };
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { a as require_react, c as __toESM, i as useRouter, r as usePathname, t as require_jsx_runtime } from "../index.js";
|
|
2
|
+
//#region node_modules/vinext/dist/utils/navigation-signal.js
|
|
3
|
+
function getErrorDigest(error) {
|
|
4
|
+
if (!error || typeof error !== "object" || !("digest" in error)) return null;
|
|
5
|
+
return String(error.digest);
|
|
6
|
+
}
|
|
7
|
+
function isNavigationSignalError(error) {
|
|
8
|
+
const digest = getErrorDigest(error);
|
|
9
|
+
if (digest === null) return false;
|
|
10
|
+
return digest === "NEXT_NOT_FOUND" || digest.startsWith("NEXT_HTTP_ERROR_FALLBACK;") || digest.startsWith("NEXT_REDIRECT;");
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region node_modules/vinext/dist/shims/error-boundary.js
|
|
14
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
15
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
16
|
+
function normalizeBoundaryResetKey(resetKey) {
|
|
17
|
+
return resetKey === void 0 || resetKey === null || resetKey === "" ? null : resetKey;
|
|
18
|
+
}
|
|
19
|
+
function readBoundaryResetState(props) {
|
|
20
|
+
return {
|
|
21
|
+
previousPathname: props.pathname,
|
|
22
|
+
previousResetKey: normalizeBoundaryResetKey(props.resetKey)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function shouldResetBoundary(nextResetState, previousResetState) {
|
|
26
|
+
const nextResetKey = normalizeBoundaryResetKey(nextResetState.previousResetKey);
|
|
27
|
+
const previousResetKey = normalizeBoundaryResetKey(previousResetState.previousResetKey);
|
|
28
|
+
if (nextResetKey !== null || previousResetKey !== null) return nextResetKey !== previousResetKey;
|
|
29
|
+
return nextResetState.previousPathname !== previousResetState.previousPathname;
|
|
30
|
+
}
|
|
31
|
+
function isRedirectError(error) {
|
|
32
|
+
return getErrorDigest(error)?.startsWith("NEXT_REDIRECT;") ?? false;
|
|
33
|
+
}
|
|
34
|
+
function decodeRedirectTarget(target) {
|
|
35
|
+
try {
|
|
36
|
+
return decodeURIComponent(target);
|
|
37
|
+
} catch {
|
|
38
|
+
return target;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function getURLFromRedirectError(error) {
|
|
42
|
+
const parts = error.digest.split(";");
|
|
43
|
+
const encodedTarget = parts.length >= 5 ? parts.slice(2, -2).join(";") : parts[2];
|
|
44
|
+
return encodedTarget ? decodeRedirectTarget(encodedTarget) : null;
|
|
45
|
+
}
|
|
46
|
+
function getRedirectTypeFromError(error) {
|
|
47
|
+
return error.digest.split(";", 2)[1] === "push" ? "push" : "replace";
|
|
48
|
+
}
|
|
49
|
+
function HandleRedirect({ redirect, redirectType }) {
|
|
50
|
+
const router = useRouter();
|
|
51
|
+
import_react.useEffect(() => {
|
|
52
|
+
import_react.startTransition(() => {
|
|
53
|
+
if (redirectType === "push") router.push(redirect);
|
|
54
|
+
else router.replace(redirect);
|
|
55
|
+
});
|
|
56
|
+
}, [
|
|
57
|
+
redirect,
|
|
58
|
+
redirectType,
|
|
59
|
+
router
|
|
60
|
+
]);
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
var RedirectErrorBoundary = class extends import_react.Component {
|
|
64
|
+
constructor(props) {
|
|
65
|
+
super(props);
|
|
66
|
+
this.state = {
|
|
67
|
+
redirect: null,
|
|
68
|
+
redirectType: null
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
static getDerivedStateFromError(error) {
|
|
72
|
+
if (isRedirectError(error)) {
|
|
73
|
+
if (error.handled) return {
|
|
74
|
+
redirect: null,
|
|
75
|
+
redirectType: null
|
|
76
|
+
};
|
|
77
|
+
const url = getURLFromRedirectError(error);
|
|
78
|
+
if (url === null) throw error;
|
|
79
|
+
return {
|
|
80
|
+
redirect: url,
|
|
81
|
+
redirectType: getRedirectTypeFromError(error)
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
throw error;
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const { redirect, redirectType } = this.state;
|
|
88
|
+
if (redirect !== null && redirectType !== null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HandleRedirect, {
|
|
89
|
+
redirect,
|
|
90
|
+
redirectType
|
|
91
|
+
});
|
|
92
|
+
return this.props.children;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
function RedirectBoundary({ children }) {
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RedirectErrorBoundary, { children });
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Generic ErrorBoundary used to wrap route segments with error.tsx.
|
|
100
|
+
* This must be a client component since error boundaries use
|
|
101
|
+
* componentDidCatch / getDerivedStateFromError.
|
|
102
|
+
*/
|
|
103
|
+
var ErrorBoundaryInner = class extends import_react.Component {
|
|
104
|
+
constructor(props) {
|
|
105
|
+
super(props);
|
|
106
|
+
this.state = {
|
|
107
|
+
error: null,
|
|
108
|
+
...readBoundaryResetState(props)
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static getDerivedStateFromProps(props, state) {
|
|
112
|
+
const nextResetState = readBoundaryResetState(props);
|
|
113
|
+
if (state.error && shouldResetBoundary(nextResetState, state)) return {
|
|
114
|
+
error: null,
|
|
115
|
+
...nextResetState
|
|
116
|
+
};
|
|
117
|
+
return {
|
|
118
|
+
error: state.error,
|
|
119
|
+
...nextResetState
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
static getDerivedStateFromError(error) {
|
|
123
|
+
if (isNavigationSignalError(error)) throw error;
|
|
124
|
+
return { error: { thrownValue: error } };
|
|
125
|
+
}
|
|
126
|
+
reset = () => {
|
|
127
|
+
this.setState({ error: null });
|
|
128
|
+
};
|
|
129
|
+
render() {
|
|
130
|
+
if (this.state.error) {
|
|
131
|
+
const FallbackComponent = this.props.fallback;
|
|
132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FallbackComponent, {
|
|
133
|
+
error: this.state.error.thrownValue,
|
|
134
|
+
reset: this.reset
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return this.props.children;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
function ErrorBoundary({ fallback, children, resetKey }) {
|
|
141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorBoundaryInner, {
|
|
142
|
+
pathname: usePathname(),
|
|
143
|
+
resetKey,
|
|
144
|
+
fallback,
|
|
145
|
+
children
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Inner class component that catches notFound() errors and renders the
|
|
150
|
+
* not-found.tsx fallback. Resets on the caller's segment reset key when one is
|
|
151
|
+
* provided, otherwise falls back to pathname changes for legacy callers.
|
|
152
|
+
*
|
|
153
|
+
* The ErrorBoundary above re-throws notFound errors so they propagate up to this
|
|
154
|
+
* boundary. This must be placed above the ErrorBoundary in the component tree.
|
|
155
|
+
*/
|
|
156
|
+
var NotFoundBoundaryInner = class extends import_react.Component {
|
|
157
|
+
constructor(props) {
|
|
158
|
+
super(props);
|
|
159
|
+
this.state = {
|
|
160
|
+
notFound: false,
|
|
161
|
+
...readBoundaryResetState(props)
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
static getDerivedStateFromProps(props, state) {
|
|
165
|
+
const nextResetState = readBoundaryResetState(props);
|
|
166
|
+
if (state.notFound && shouldResetBoundary(nextResetState, state)) return {
|
|
167
|
+
notFound: false,
|
|
168
|
+
...nextResetState
|
|
169
|
+
};
|
|
170
|
+
return {
|
|
171
|
+
notFound: state.notFound,
|
|
172
|
+
...nextResetState
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
static getDerivedStateFromError(error) {
|
|
176
|
+
if (error && typeof error === "object" && "digest" in error) {
|
|
177
|
+
const digest = String(error.digest);
|
|
178
|
+
if (digest === "NEXT_NOT_FOUND" || digest === "NEXT_HTTP_ERROR_FALLBACK;404") return { notFound: true };
|
|
179
|
+
}
|
|
180
|
+
throw error;
|
|
181
|
+
}
|
|
182
|
+
render() {
|
|
183
|
+
if (this.state.notFound) return this.props.fallback;
|
|
184
|
+
return this.props.children;
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Wrapper that reads the current pathname and passes it to the inner class
|
|
189
|
+
* component. Segment reset keys own App Router remount semantics when present.
|
|
190
|
+
*/
|
|
191
|
+
function NotFoundBoundary({ fallback, children, resetKey }) {
|
|
192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotFoundBoundaryInner, {
|
|
193
|
+
pathname: usePathname(),
|
|
194
|
+
resetKey,
|
|
195
|
+
fallback,
|
|
196
|
+
children
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
var ForbiddenBoundaryInner = class extends import_react.Component {
|
|
200
|
+
constructor(props) {
|
|
201
|
+
super(props);
|
|
202
|
+
this.state = {
|
|
203
|
+
forbidden: false,
|
|
204
|
+
...readBoundaryResetState(props)
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
static getDerivedStateFromProps(props, state) {
|
|
208
|
+
const nextResetState = readBoundaryResetState(props);
|
|
209
|
+
if (state.forbidden && shouldResetBoundary(nextResetState, state)) return {
|
|
210
|
+
forbidden: false,
|
|
211
|
+
...nextResetState
|
|
212
|
+
};
|
|
213
|
+
return {
|
|
214
|
+
forbidden: state.forbidden,
|
|
215
|
+
...nextResetState
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
static getDerivedStateFromError(error) {
|
|
219
|
+
if (error && typeof error === "object" && "digest" in error) {
|
|
220
|
+
if (String(error.digest) === "NEXT_HTTP_ERROR_FALLBACK;403") return { forbidden: true };
|
|
221
|
+
}
|
|
222
|
+
throw error;
|
|
223
|
+
}
|
|
224
|
+
render() {
|
|
225
|
+
if (this.state.forbidden) return this.props.fallback;
|
|
226
|
+
return this.props.children;
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
function ForbiddenBoundary({ fallback, children, resetKey }) {
|
|
230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForbiddenBoundaryInner, {
|
|
231
|
+
pathname: usePathname(),
|
|
232
|
+
resetKey,
|
|
233
|
+
fallback,
|
|
234
|
+
children
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
var UnauthorizedBoundaryInner = class extends import_react.Component {
|
|
238
|
+
constructor(props) {
|
|
239
|
+
super(props);
|
|
240
|
+
this.state = {
|
|
241
|
+
unauthorized: false,
|
|
242
|
+
...readBoundaryResetState(props)
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
static getDerivedStateFromProps(props, state) {
|
|
246
|
+
const nextResetState = readBoundaryResetState(props);
|
|
247
|
+
if (state.unauthorized && shouldResetBoundary(nextResetState, state)) return {
|
|
248
|
+
unauthorized: false,
|
|
249
|
+
...nextResetState
|
|
250
|
+
};
|
|
251
|
+
return {
|
|
252
|
+
unauthorized: state.unauthorized,
|
|
253
|
+
...nextResetState
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
static getDerivedStateFromError(error) {
|
|
257
|
+
if (error && typeof error === "object" && "digest" in error) {
|
|
258
|
+
if (String(error.digest) === "NEXT_HTTP_ERROR_FALLBACK;401") return { unauthorized: true };
|
|
259
|
+
}
|
|
260
|
+
throw error;
|
|
261
|
+
}
|
|
262
|
+
render() {
|
|
263
|
+
if (this.state.unauthorized) return this.props.fallback;
|
|
264
|
+
return this.props.children;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
function UnauthorizedBoundary({ fallback, children, resetKey }) {
|
|
268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnauthorizedBoundaryInner, {
|
|
269
|
+
pathname: usePathname(),
|
|
270
|
+
resetKey,
|
|
271
|
+
fallback,
|
|
272
|
+
children
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
import_react.Component;
|
|
276
|
+
//#endregion
|
|
277
|
+
export { ErrorBoundary, ForbiddenBoundary, NotFoundBoundary, RedirectBoundary, UnauthorizedBoundary };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { a as require_react, c as __toESM, n as getLayoutSegmentContext } from "../index.js";
|
|
2
|
+
//#region node_modules/vinext/dist/shims/layout-segment-context.js
|
|
3
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4
|
+
/**
|
|
5
|
+
* Layout segment context provider.
|
|
6
|
+
*
|
|
7
|
+
* Must be "use client" so that Vite's RSC bundler renders this component in
|
|
8
|
+
* the SSR/browser environment where React.createContext is available. The RSC
|
|
9
|
+
* entry imports and renders LayoutSegmentProvider directly, but because of the
|
|
10
|
+
* "use client" boundary the actual execution happens on the SSR/client side
|
|
11
|
+
* where the context can be created and consumed by useSelectedLayoutSegment(s).
|
|
12
|
+
*
|
|
13
|
+
* Without "use client", this runs in the RSC environment where
|
|
14
|
+
* React.createContext is undefined, getLayoutSegmentContext() returns null,
|
|
15
|
+
* the provider becomes a no-op, and useSelectedLayoutSegments always returns [].
|
|
16
|
+
*
|
|
17
|
+
* The context is shared with navigation.ts via getLayoutSegmentContext()
|
|
18
|
+
* to avoid creating separate contexts in different modules.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Wraps children with the layout segment context.
|
|
22
|
+
*
|
|
23
|
+
* Each layout in the App Router tree wraps its children with this provider,
|
|
24
|
+
* passing a map of parallel route key to segment path. The "children" key is
|
|
25
|
+
* always present (the default parallel route). Named parallel slots at this
|
|
26
|
+
* layout level add their own keys.
|
|
27
|
+
*
|
|
28
|
+
* Components inside the provider call useSelectedLayoutSegments(parallelRoutesKey)
|
|
29
|
+
* to read the segments for a specific parallel route.
|
|
30
|
+
*/
|
|
31
|
+
function LayoutSegmentProvider({ segmentMap, children }) {
|
|
32
|
+
const ctx = getLayoutSegmentContext();
|
|
33
|
+
if (!ctx) return children;
|
|
34
|
+
return (0, import_react.createElement)(ctx.Provider, { value: segmentMap }, children);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { LayoutSegmentProvider };
|