@baique/pi-web-sky 0.1.54 → 0.1.56
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +14 -10
- package/.next/build-manifest.json +4 -4
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +6 -6
- package/.next/react-loadable-manifest.json +3 -3
- package/.next/required-server-files.js +6 -6
- package/.next/required-server-files.json +6 -6
- package/.next/routes-manifest.json +28 -0
- package/.next/server/app/_global-error/page.js +2 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +4 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -2
- package/.next/server/app/api/agent/[id]/bash-output/route.js +2 -2
- package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/agent/running/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/all-providers/route.js +1 -1
- package/.next/server/app/api/auth/all-providers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/board-assets/[...path]/route.js +2 -2
- package/.next/server/app/api/board-assets/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/board-assets/route.js +2 -2
- package/.next/server/app/api/board-assets/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/boards/[id]/add-session/route.js +1 -0
- package/.next/server/app/api/boards/[id]/add-session/route.js.nft.json +1 -0
- package/.next/server/app/api/boards/[id]/add-session/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/boards/[id]/reconcile/route.js +1 -1
- package/.next/server/app/api/boards/[id]/reconcile/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/boards/[id]/route.js +1 -1
- package/.next/server/app/api/boards/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/boards/reorder/route.js +2 -2
- package/.next/server/app/api/boards/reorder/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/boards/route.js +2 -2
- package/.next/server/app/api/boards/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js +2 -2
- package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/default-cwd/route.js +2 -2
- package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/file-index/route.js +2 -2
- package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/files/[...path]/route.js +3 -3
- package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/diff/route.js +1 -1
- package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/status/route.js +1 -1
- package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/home/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/route.js +2 -2
- package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/route.js +2 -2
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plugins/route.js +2 -2
- package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/project-trust/route.js.nft.json +1 -1
- package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/quota/route.js +1 -1
- package/.next/server/app/api/quota/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/search/route.js +2 -2
- package/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +3 -3
- package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/minimap/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/minimap/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/minimap/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/todos/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/todos/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/todos/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/summary/route.js +2 -2
- package/.next/server/app/api/sessions/summary/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/install/route.js +2 -2
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/[id]/route.js +1 -0
- package/.next/server/app/api/subagents/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/subagents/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/subagents/profiles/route.js +30 -0
- package/.next/server/app/api/subagents/profiles/route.js.nft.json +1 -0
- package/.next/server/app/api/subagents/profiles/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/subagents/settings/route.js +1 -0
- package/.next/server/app/api/subagents/settings/route.js.nft.json +1 -0
- package/.next/server/app/api/subagents/settings/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/task-card-questions/[id]/answer/route.js +2 -2
- package/.next/server/app/api/task-card-questions/[id]/answer/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/task-card-questions/route.js +2 -2
- package/.next/server/app/api/task-card-questions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/task-cards/[id]/route.js +1 -1
- package/.next/server/app/api/task-cards/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/task-cards/route.js +1 -1
- package/.next/server/app/api/task-cards/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/task-cards/unbind/route.js +3 -3
- package/.next/server/app/api/task-cards/unbind/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/task-scheduler/status/route.js +1 -1
- package/.next/server/app/api/task-scheduler/status/route.js.nft.json +1 -1
- package/.next/server/app/api/task-scheduler/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/assign-session/route.js +12 -12
- package/.next/server/app/api/tasks/[id]/assign-session/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/board/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/board/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/reorder/route.js +12 -12
- package/.next/server/app/api/tasks/reorder/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/route.js +12 -12
- package/.next/server/app/api/tasks/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/[id]/events/route.js +3 -3
- package/.next/server/app/api/terminal/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/[id]/route.js +2 -2
- package/.next/server/app/api/terminal/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/route.js +2 -2
- package/.next/server/app/api/terminal/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/route.js +2 -2
- package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/yjs-version/route.js +1 -1
- package/.next/server/app/api/yjs-version/route_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +6 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -5
- package/.next/server/app/index.segments/_full.segment.rsc +6 -5
- package/.next/server/app/index.segments/_tree.segment.rsc +3 -2
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +175 -8
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +14 -10
- package/.next/server/chunks/1937.js +1 -1
- package/.next/server/chunks/2430.js +4 -4
- package/.next/server/chunks/3500.js +1 -1
- package/.next/server/chunks/402.js +13 -3
- package/.next/server/chunks/426.js +14 -0
- package/.next/server/chunks/4457.js +13 -13
- package/.next/server/chunks/542.js +23 -4
- package/.next/server/chunks/5794.js +2 -2
- package/.next/server/chunks/5940.js +1 -1
- package/.next/server/chunks/6429.js +15 -2
- package/.next/server/chunks/6525.js +12 -2
- package/.next/server/chunks/6583.js +1 -1
- package/.next/server/chunks/7048.js +6 -0
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/middleware.js +3 -3
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/752.adce8bc3ebbaf4b6.js +1 -0
- package/.next/static/chunks/8088.0cad1ff2e09fd8ff.js +1 -0
- package/.next/static/chunks/app/_global-error/page-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/_not-found/page-63a39396532d2582.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/board-assets/[...path]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/board-assets/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/boards/[id]/add-session/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/boards/[id]/reconcile/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/boards/[id]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/boards/reorder/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/boards/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/home/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/models/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/quota/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/search/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/minimap/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/todos/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/sessions/summary/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/skills/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/task-card-questions/[id]/answer/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/task-card-questions/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/task-cards/[id]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/task-cards/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/task-cards/unbind/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/task-scheduler/status/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/assign-session/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/board/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/tasks/reorder/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/api/yjs-version/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/layout-87087b955e0c9507.js +1 -0
- package/.next/static/chunks/app/manifest.webmanifest/route-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/app/page-efca6bf51a5f8ccb.js +256 -0
- package/.next/static/chunks/main-app-1f89e7ad7ae1ff87.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-d3784ab2e32f3c6e.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ad6e695deb9de65c.js +1 -0
- package/.next/static/chunks/{webpack-3df5ae3897959c33.js → webpack-4de8e8dd9f2f3173.js} +1 -1
- package/.next/static/css/bb9361c7f832a89d.css +1 -0
- package/.next/static/css/c6d32b6031181be7.css +1 -0
- package/.next/static/k8ZFqwz7d-bnK0ZiUVgCc/_buildManifest.js +1 -0
- package/.next/trace +7 -8
- package/.next/trace-build +1 -1
- package/.next/types/app/api/agent/[id]/bash-output/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/events/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/route.ts +1 -1
- package/.next/types/app/api/agent/new/route.ts +1 -1
- package/.next/types/app/api/agent/running/route.ts +1 -1
- package/.next/types/app/api/app-update/route.ts +1 -1
- package/.next/types/app/api/auth/all-providers/route.ts +1 -1
- package/.next/types/app/api/auth/api-key/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/login/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/logout/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/providers/route.ts +1 -1
- package/.next/types/app/api/board-assets/[...path]/route.ts +1 -1
- package/.next/types/app/api/board-assets/route.ts +1 -1
- package/.next/types/app/api/boards/[id]/add-session/route.ts +353 -0
- package/.next/types/app/api/boards/[id]/reconcile/route.ts +1 -1
- package/.next/types/app/api/boards/[id]/route.ts +1 -1
- package/.next/types/app/api/boards/reorder/route.ts +1 -1
- package/.next/types/app/api/boards/route.ts +1 -1
- package/.next/types/app/api/cwd/browse/route.ts +1 -1
- package/.next/types/app/api/cwd/validate/route.ts +1 -1
- package/.next/types/app/api/default-cwd/route.ts +1 -1
- package/.next/types/app/api/file-index/route.ts +1 -1
- package/.next/types/app/api/files/[...path]/route.ts +1 -1
- package/.next/types/app/api/git/diff/route.ts +1 -1
- package/.next/types/app/api/git/status/route.ts +1 -1
- package/.next/types/app/api/home/route.ts +1 -1
- package/.next/types/app/api/mcp/route.ts +1 -1
- package/.next/types/app/api/models/route.ts +1 -1
- package/.next/types/app/api/models-config/catalog/route.ts +1 -1
- package/.next/types/app/api/models-config/discover/route.ts +1 -1
- package/.next/types/app/api/models-config/route.ts +1 -1
- package/.next/types/app/api/models-config/test/route.ts +1 -1
- package/.next/types/app/api/plugins/route.ts +1 -1
- package/.next/types/app/api/project-trust/route.ts +1 -1
- package/.next/types/app/api/quota/route.ts +1 -1
- package/.next/types/app/api/search/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/auto-name/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/context/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/export/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/minimap/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/state/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/todos/route.ts +1 -1
- package/.next/types/app/api/sessions/route.ts +1 -1
- package/.next/types/app/api/sessions/summary/route.ts +1 -1
- package/.next/types/app/api/skills/check/route.ts +1 -1
- package/.next/types/app/api/skills/install/route.ts +1 -1
- package/.next/types/app/api/skills/route.ts +1 -1
- package/.next/types/app/api/skills/search/route.ts +1 -1
- package/.next/types/app/api/skills/update/route.ts +1 -1
- package/.next/types/app/api/subagents/[id]/route.ts +353 -0
- package/.next/types/app/api/subagents/profiles/route.ts +353 -0
- package/.next/types/app/api/subagents/settings/route.ts +353 -0
- package/.next/types/app/api/task-card-questions/[id]/answer/route.ts +1 -1
- package/.next/types/app/api/task-card-questions/route.ts +1 -1
- package/.next/types/app/api/task-cards/[id]/route.ts +1 -1
- package/.next/types/app/api/task-cards/route.ts +1 -1
- package/.next/types/app/api/task-cards/unbind/route.ts +1 -1
- package/.next/types/app/api/task-scheduler/status/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/assign-session/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/board/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/route.ts +1 -1
- package/.next/types/app/api/tasks/reorder/route.ts +1 -1
- package/.next/types/app/api/tasks/route.ts +1 -1
- package/.next/types/app/api/terminal/[id]/events/route.ts +1 -1
- package/.next/types/app/api/terminal/[id]/route.ts +1 -1
- package/.next/types/app/api/terminal/route.ts +1 -1
- package/.next/types/app/api/worktrees/route.ts +1 -1
- package/.next/types/app/api/yjs-version/route.ts +1 -1
- package/.next/types/app/layout.ts +1 -1
- package/.next/types/app/page.ts +1 -1
- package/.next/types/routes.d.ts +5 -1
- package/.next/types/validator.ts +36 -0
- package/lib/api-types.ts +10 -0
- package/lib/board-events.rename.test.mjs +39 -0
- package/lib/board-events.ts +17 -0
- package/lib/board-reconcile.test.mjs +20 -0
- package/lib/board-reconcile.ts +54 -0
- package/lib/chat-lazy-load.test.mjs +0 -62
- package/lib/chat-lazy-load.ts +0 -13
- package/lib/chat-only.ts +23 -0
- package/lib/draft-stash.ts +4 -5
- package/lib/file-types.ts +16 -1
- package/lib/i18n/messages/en.ts +91 -0
- package/lib/i18n/messages/zh-CN.ts +91 -0
- package/lib/id.test.mjs +38 -0
- package/lib/id.ts +17 -0
- package/lib/message-text.ts +24 -0
- package/lib/models-cache.ts +1 -1
- package/lib/pi-types.ts +19 -1
- package/lib/pin-store.ts +85 -0
- package/lib/powershell-settings.ts +106 -0
- package/lib/quoted-selection.ts +4 -0
- package/lib/rpc-manager.ts +208 -22
- package/lib/session-family.test.mjs +49 -0
- package/lib/session-family.ts +80 -0
- package/lib/session-index-scanner.ts +39 -0
- package/lib/session-time-group.test.mjs +38 -0
- package/lib/session-time-group.ts +55 -0
- package/lib/settings-navigation.ts +124 -0
- package/lib/subagent-extension.test.mjs +424 -0
- package/lib/subagent-extension.ts +309 -0
- package/lib/subagent-input.test.mjs +63 -0
- package/lib/subagent-input.ts +71 -0
- package/lib/subagent-isolation.test.mjs +51 -0
- package/lib/subagent-profile-precedence.ts +20 -0
- package/lib/subagent-prompt.test.mjs +64 -0
- package/lib/subagent-prompt.ts +31 -0
- package/lib/subagent-queue.test.mjs +35 -0
- package/lib/subagent-queue.ts +74 -0
- package/lib/subagent-runtime.test.mjs +150 -0
- package/lib/subagent-runtime.ts +587 -0
- package/lib/subagent-settings.test.mjs +50 -0
- package/lib/subagent-settings.ts +93 -0
- package/lib/subagents.test.mjs +601 -0
- package/lib/subagents.ts +602 -0
- package/lib/tool-presets.ts +4 -0
- package/lib/types.ts +19 -0
- package/package.json +1 -1
- package/.next/static/chunks/752.3119700876725f3b.js +0 -1
- package/.next/static/chunks/7975.95edcabc69eee4eb.js +0 -1
- package/.next/static/chunks/app/_global-error/page-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/_not-found/page-af4fe23994cb3d66.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/board-assets/[...path]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/board-assets/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/reconcile/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/boards/[id]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/boards/reorder/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/boards/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/home/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/mcp/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/models/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/quota/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/search/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/minimap/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/todos/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/sessions/summary/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/skills/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/task-card-questions/[id]/answer/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/task-card-questions/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/task-cards/[id]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/task-cards/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/task-cards/unbind/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/task-scheduler/status/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/assign-session/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/board/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/tasks/reorder/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/tasks/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/api/yjs-version/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/layout-636e9e756d0734c7.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/app/page-44daed9dcf9134eb.js +0 -89
- package/.next/static/chunks/main-app-b3e8a8d15d83e1f0.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-00a4badaccb388e6.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-2d5f6296c7e693c6.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2d5f6296c7e693c6.js +0 -1
- package/.next/static/css/4a609fb185e7cff1.css +0 -1
- package/.next/static/h-hr7x0pqNUx3TyuarqWJ/_buildManifest.js +0 -1
- package/lib/extension-command.test.mjs +0 -63
- package/lib/extension-command.ts +0 -81
- package/lib/subagent-widget.test.mjs +0 -87
- package/lib/subagent-widget.ts +0 -109
- /package/.next/static/{h-hr7x0pqNUx3TyuarqWJ → k8ZFqwz7d-bnK0ZiUVgCc}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/api/task-card-questions/route.ts
|
|
2
2
|
import * as entry from '../../../../../app/api/task-card-questions/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/api/task-cards/[id]/route.ts
|
|
2
2
|
import * as entry from '../../../../../../app/api/task-cards/[id]/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/api/task-cards/unbind/route.ts
|
|
2
2
|
import * as entry from '../../../../../../app/api/task-cards/unbind/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/api/task-scheduler/status/route.ts
|
|
2
2
|
import * as entry from '../../../../../../app/api/task-scheduler/status/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/api/tasks/[id]/assign-session/route.ts
|
|
2
2
|
import * as entry from '../../../../../../../app/api/tasks/[id]/assign-session/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/api/tasks/[id]/board/route.ts
|
|
2
2
|
import * as entry from '../../../../../../../app/api/tasks/[id]/board/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/api/terminal/[id]/events/route.ts
|
|
2
2
|
import * as entry from '../../../../../../../app/api/terminal/[id]/events/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File: /
|
|
1
|
+
// File: /Users/baique/work/pi-web-sky/app/layout.tsx
|
|
2
2
|
import * as entry from '../../../app/layout.js'
|
|
3
3
|
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
|
|
4
4
|
|
package/.next/types/app/page.ts
CHANGED
package/.next/types/routes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Do not edit this file manually
|
|
3
3
|
|
|
4
4
|
type AppRoutes = "/"
|
|
5
|
-
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/all-providers" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/board-assets" | "/api/board-assets/[...path]" | "/api/boards" | "/api/boards/[id]" | "/api/boards/[id]/reconcile" | "/api/boards/reorder" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/mcp" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/plugins" | "/api/project-trust" | "/api/quota" | "/api/search" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/export" | "/api/sessions/[id]/minimap" | "/api/sessions/[id]/state" | "/api/sessions/[id]/todos" | "/api/sessions/summary" | "/api/skills" | "/api/skills/check" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/task-card-questions" | "/api/task-card-questions/[id]/answer" | "/api/task-cards" | "/api/task-cards/[id]" | "/api/task-cards/unbind" | "/api/task-scheduler/status" | "/api/tasks" | "/api/tasks/[id]" | "/api/tasks/[id]/assign-session" | "/api/tasks/[id]/board" | "/api/tasks/reorder" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/worktrees" | "/api/yjs-version"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/all-providers" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/board-assets" | "/api/board-assets/[...path]" | "/api/boards" | "/api/boards/[id]" | "/api/boards/[id]/add-session" | "/api/boards/[id]/reconcile" | "/api/boards/reorder" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/mcp" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/plugins" | "/api/project-trust" | "/api/quota" | "/api/search" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/export" | "/api/sessions/[id]/minimap" | "/api/sessions/[id]/state" | "/api/sessions/[id]/todos" | "/api/sessions/summary" | "/api/skills" | "/api/skills/check" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/task-card-questions" | "/api/task-card-questions/[id]/answer" | "/api/task-cards" | "/api/task-cards/[id]" | "/api/task-cards/unbind" | "/api/task-scheduler/status" | "/api/tasks" | "/api/tasks/[id]" | "/api/tasks/[id]/assign-session" | "/api/tasks/[id]/board" | "/api/tasks/reorder" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/worktrees" | "/api/yjs-version"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -27,6 +27,7 @@ interface ParamMap {
|
|
|
27
27
|
"/api/board-assets/[...path]": { "path": string[]; }
|
|
28
28
|
"/api/boards": {}
|
|
29
29
|
"/api/boards/[id]": { "id": string; }
|
|
30
|
+
"/api/boards/[id]/add-session": { "id": string; }
|
|
30
31
|
"/api/boards/[id]/reconcile": { "id": string; }
|
|
31
32
|
"/api/boards/reorder": {}
|
|
32
33
|
"/api/cwd/browse": {}
|
|
@@ -62,6 +63,9 @@ interface ParamMap {
|
|
|
62
63
|
"/api/skills/install": {}
|
|
63
64
|
"/api/skills/search": {}
|
|
64
65
|
"/api/skills/update": {}
|
|
66
|
+
"/api/subagents/[id]": { "id": string; }
|
|
67
|
+
"/api/subagents/profiles": {}
|
|
68
|
+
"/api/subagents/settings": {}
|
|
65
69
|
"/api/task-card-questions": {}
|
|
66
70
|
"/api/task-card-questions/[id]/answer": { "id": string; }
|
|
67
71
|
"/api/task-cards": {}
|
package/.next/types/validator.ts
CHANGED
|
@@ -173,6 +173,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
173
173
|
type __Unused = __Check
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
// Validate ../../app/api/boards/[id]/add-session/route.ts
|
|
177
|
+
{
|
|
178
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/boards/[id]/add-session">> = Specific
|
|
179
|
+
const handler = {} as typeof import("../../app/api/boards/[id]/add-session/route.js")
|
|
180
|
+
type __Check = __IsExpected<typeof handler>
|
|
181
|
+
// @ts-ignore
|
|
182
|
+
type __Unused = __Check
|
|
183
|
+
}
|
|
184
|
+
|
|
176
185
|
// Validate ../../app/api/boards/[id]/reconcile/route.ts
|
|
177
186
|
{
|
|
178
187
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/boards/[id]/reconcile">> = Specific
|
|
@@ -506,6 +515,33 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
506
515
|
type __Unused = __Check
|
|
507
516
|
}
|
|
508
517
|
|
|
518
|
+
// Validate ../../app/api/subagents/[id]/route.ts
|
|
519
|
+
{
|
|
520
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/subagents/[id]">> = Specific
|
|
521
|
+
const handler = {} as typeof import("../../app/api/subagents/[id]/route.js")
|
|
522
|
+
type __Check = __IsExpected<typeof handler>
|
|
523
|
+
// @ts-ignore
|
|
524
|
+
type __Unused = __Check
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// Validate ../../app/api/subagents/profiles/route.ts
|
|
528
|
+
{
|
|
529
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/subagents/profiles">> = Specific
|
|
530
|
+
const handler = {} as typeof import("../../app/api/subagents/profiles/route.js")
|
|
531
|
+
type __Check = __IsExpected<typeof handler>
|
|
532
|
+
// @ts-ignore
|
|
533
|
+
type __Unused = __Check
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// Validate ../../app/api/subagents/settings/route.ts
|
|
537
|
+
{
|
|
538
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/subagents/settings">> = Specific
|
|
539
|
+
const handler = {} as typeof import("../../app/api/subagents/settings/route.js")
|
|
540
|
+
type __Check = __IsExpected<typeof handler>
|
|
541
|
+
// @ts-ignore
|
|
542
|
+
type __Unused = __Check
|
|
543
|
+
}
|
|
544
|
+
|
|
509
545
|
// Validate ../../app/api/task-card-questions/[id]/answer/route.ts
|
|
510
546
|
{
|
|
511
547
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/task-card-questions/[id]/answer">> = Specific
|
package/lib/api-types.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import type { ResourceDiagnostic } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import type { SubagentProfile } from "./subagents";
|
|
3
|
+
|
|
4
|
+
export interface SubagentProfilesResponse {
|
|
5
|
+
profiles: SubagentProfile[];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface SubagentSettingsResponse {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
maxConcurrent: number;
|
|
11
|
+
}
|
|
2
12
|
|
|
3
13
|
/** 时间轴导航条(ChatMinimap)的 turn 索引条目:只含文本摘要,不携带完整 content。 */
|
|
4
14
|
export interface TurnIndexItem {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import test from "node:test";
|
|
3
|
+
import { createJiti } from "jiti";
|
|
4
|
+
|
|
5
|
+
// board-events 只在调用时碰 window;用一个 EventTarget 顶替,验证「改名入口 → 各节点」这一条路由。
|
|
6
|
+
globalThis.window = new EventTarget();
|
|
7
|
+
|
|
8
|
+
const jiti = createJiti(import.meta.url, { tsconfigPaths: true });
|
|
9
|
+
const { dispatchBoardRenameNode, onBoardRenameNode } = await jiti.import("./board-events.ts");
|
|
10
|
+
|
|
11
|
+
test("dispatches the target node id to subscribers", () => {
|
|
12
|
+
const seen = [];
|
|
13
|
+
const off = onBoardRenameNode((nodeId) => seen.push(nodeId));
|
|
14
|
+
|
|
15
|
+
dispatchBoardRenameNode("session-abc");
|
|
16
|
+
dispatchBoardRenameNode("sticky-xyz");
|
|
17
|
+
|
|
18
|
+
// 事件只有一个通道:每个订阅者都收到所有 id,自行判断是不是自己(节点内 if (nodeId === id))
|
|
19
|
+
assert.deepEqual(seen, ["session-abc", "sticky-xyz"]);
|
|
20
|
+
|
|
21
|
+
off();
|
|
22
|
+
dispatchBoardRenameNode("session-abc");
|
|
23
|
+
assert.deepEqual(seen, ["session-abc", "sticky-xyz"], "unsubscribe must stop delivery");
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test("each subscriber unsubscribes independently", () => {
|
|
27
|
+
const a = [];
|
|
28
|
+
const b = [];
|
|
29
|
+
const offA = onBoardRenameNode((id) => a.push(id));
|
|
30
|
+
const offB = onBoardRenameNode((id) => b.push(id));
|
|
31
|
+
|
|
32
|
+
dispatchBoardRenameNode("n1");
|
|
33
|
+
offA();
|
|
34
|
+
dispatchBoardRenameNode("n2");
|
|
35
|
+
|
|
36
|
+
assert.deepEqual(a, ["n1"]);
|
|
37
|
+
assert.deepEqual(b, ["n1", "n2"]);
|
|
38
|
+
offB();
|
|
39
|
+
});
|
package/lib/board-events.ts
CHANGED
|
@@ -32,6 +32,10 @@ export const BOARD_ATTENTION_NEEDED_EVENT = "pi-web:board-attention-needed";
|
|
|
32
32
|
/** 任务卡创建/保存(派发路径)→ AppShell 刷新侧栏任务区(/api/tasks 重拉) */
|
|
33
33
|
export const BOARD_TASKS_CHANGED_EVENT = "pi-web:board-tasks-changed";
|
|
34
34
|
|
|
35
|
+
/** 标题改名入口(铅笔 / 右键菜单「重命名」/ F2)→ 目标节点进入改名态。
|
|
36
|
+
* 改名态只存在于节点组件内部(不进 Y.Doc,否则多端会一起弹输入框)。 */
|
|
37
|
+
export const BOARD_RENAME_NODE_EVENT = "pi-web:board-rename-node";
|
|
38
|
+
|
|
35
39
|
declare global {
|
|
36
40
|
interface WindowEventMap {
|
|
37
41
|
"pi-web:board-open-file": CustomEvent<{ sessionId: string; filePath: string }>;
|
|
@@ -43,6 +47,7 @@ declare global {
|
|
|
43
47
|
"pi-web:board-agent-end": CustomEvent<{ sessionId: string; sessionName?: string }>;
|
|
44
48
|
"pi-web:board-attention-needed": CustomEvent<{ sessionId: string; title?: string; method: string }>;
|
|
45
49
|
"pi-web:board-tasks-changed": CustomEvent<Record<string, never>>;
|
|
50
|
+
"pi-web:board-rename-node": CustomEvent<{ nodeId: string }>;
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
|
|
@@ -81,3 +86,15 @@ export function dispatchBoardAttentionNeeded(sessionId: string, request: { title
|
|
|
81
86
|
export function dispatchBoardTasksChanged(): void {
|
|
82
87
|
window.dispatchEvent(new CustomEvent(BOARD_TASKS_CHANGED_EVENT, { detail: {} }));
|
|
83
88
|
}
|
|
89
|
+
|
|
90
|
+
/** 让指定节点进入标题改名态(铅笔 / 右键菜单 / F2 共用)。 */
|
|
91
|
+
export function dispatchBoardRenameNode(nodeId: string): void {
|
|
92
|
+
window.dispatchEvent(new CustomEvent(BOARD_RENAME_NODE_EVENT, { detail: { nodeId } }));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** 订阅「节点进入改名态」:handler 收到目标 nodeId(各节点自行判断是不是自己)。返回取消订阅。 */
|
|
96
|
+
export function onBoardRenameNode(handler: (nodeId: string) => void): () => void {
|
|
97
|
+
const listener = (event: Event) => handler((event as CustomEvent<{ nodeId: string }>).detail.nodeId);
|
|
98
|
+
window.addEventListener(BOARD_RENAME_NODE_EVENT, listener);
|
|
99
|
+
return () => window.removeEventListener(BOARD_RENAME_NODE_EVENT, listener);
|
|
100
|
+
}
|
|
@@ -343,3 +343,23 @@ test("删除会话:普通看板清理级联删除以会话卡为端点的边",
|
|
|
343
343
|
assert.deepEqual([...doc.nodes.keys()], ["a2"], "只删 s1 卡");
|
|
344
344
|
assert.deepEqual([...doc.edges.keys()], [], "以 a1 为端点的边级联删除");
|
|
345
345
|
});
|
|
346
|
+
|
|
347
|
+
test("侧栏拖会话到看板行:落卡到空位、重复拖同 sid 不动", async () => {
|
|
348
|
+
const { addSessionCardToBoard } = await jiti.import("./board-reconcile.ts");
|
|
349
|
+
|
|
350
|
+
// 已占 4 列首列(60,60)→ 新卡应落第二列(60 + 340 + 24)
|
|
351
|
+
mockState.nodeSets.set("session-占用", cardNode("session-占用", "占用", {}));
|
|
352
|
+
|
|
353
|
+
assert.equal(await addSessionCardToBoard("board-x", "sid-new", "拖来的标题"), true);
|
|
354
|
+
const node = mockState.nodeSets.get("session-sid-new");
|
|
355
|
+
assert.ok(node, "落卡存在");
|
|
356
|
+
assert.equal(node.type, "session-card");
|
|
357
|
+
assert.equal(node.data.title, "拖来的标题", "标题随拖拽源带入");
|
|
358
|
+
assert.equal(node.data.cwd, "", "cwd 必须空(非空 = 新建会话占位卡语义)");
|
|
359
|
+
assert.equal(node.position.x, 60 + 340 + 24, "不与已有卡重叠");
|
|
360
|
+
|
|
361
|
+
// 再拖同一会话:不重落(保留用户布局/展开态),也不改标题
|
|
362
|
+
assert.equal(await addSessionCardToBoard("board-x", "sid-new", "新标题"), false);
|
|
363
|
+
assert.equal(mockState.nodeSets.get("session-sid-new").data.title, "拖来的标题");
|
|
364
|
+
assert.equal(mockState.nodeSets.size, 2, "只有一张新卡");
|
|
365
|
+
});
|
package/lib/board-reconcile.ts
CHANGED
|
@@ -417,6 +417,60 @@ function listTaskForkedSessions(taskId: string): Array<{ sessionId: string; pare
|
|
|
417
417
|
.all(taskId) as Array<{ sessionId: string; parentId: string }>;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
/**
|
|
421
|
+
* 侧栏拖会话到「看板」行 → 在目标看板落一张会话卡。
|
|
422
|
+
*
|
|
423
|
+
* 为什么走后端写:拖到侧栏行时目标看板可能没在当前页面打开(前端没有那个 Y.Doc),
|
|
424
|
+
* 只有服务端能权威写。落点用 findFreeSpot 找空位——拖到侧栏行没有画布坐标,
|
|
425
|
+
* 位置由后端定(不与已有卡重叠即可)。
|
|
426
|
+
*
|
|
427
|
+
* 幂等:画布已有同 sid 卡 → 不动(保留用户的布局/展开态),返回 false。
|
|
428
|
+
*/
|
|
429
|
+
export async function addSessionCardToBoard(
|
|
430
|
+
boardId: string,
|
|
431
|
+
sessionId: string,
|
|
432
|
+
title?: string,
|
|
433
|
+
): Promise<boolean> {
|
|
434
|
+
let added = false;
|
|
435
|
+
await mutateBoard(boardId, (maps) => {
|
|
436
|
+
const id = `session-${sessionId}`;
|
|
437
|
+
if (maps.nodes.get(id)) return;
|
|
438
|
+
const nodes = Array.from(maps.nodes.values()) as unknown as DocNode[];
|
|
439
|
+
const spot = findFreeSpot(nodes, SESSION_CARD_W, SESSION_CARD_H);
|
|
440
|
+
maps.nodes.set(id, {
|
|
441
|
+
id,
|
|
442
|
+
type: "session-card",
|
|
443
|
+
position: { x: spot.x, y: spot.y },
|
|
444
|
+
style: { width: SESSION_CARD_W, height: SESSION_CARD_H },
|
|
445
|
+
data: {
|
|
446
|
+
sessionId,
|
|
447
|
+
title: title ?? "",
|
|
448
|
+
emoji: "💬",
|
|
449
|
+
projectName: "",
|
|
450
|
+
messageCount: 0,
|
|
451
|
+
lastReply: "",
|
|
452
|
+
phase: "idle",
|
|
453
|
+
runningMs: 0,
|
|
454
|
+
endedAt: 0,
|
|
455
|
+
lastActivityAt: 0,
|
|
456
|
+
stale: false,
|
|
457
|
+
expanded: false,
|
|
458
|
+
// cwd 必须留空:非空在 reconcile 语义里 = 「新会话卡(会话未创建)」
|
|
459
|
+
cwd: "",
|
|
460
|
+
taskId: "",
|
|
461
|
+
w: SESSION_CARD_W,
|
|
462
|
+
h: SESSION_CARD_H,
|
|
463
|
+
expandedW: 0,
|
|
464
|
+
expandedH: 0,
|
|
465
|
+
collapsedW: 0,
|
|
466
|
+
collapsedH: 0,
|
|
467
|
+
},
|
|
468
|
+
});
|
|
469
|
+
added = true;
|
|
470
|
+
});
|
|
471
|
+
return added;
|
|
472
|
+
}
|
|
473
|
+
|
|
420
474
|
/**
|
|
421
475
|
* fork 后精准触发:源会话归属任务 → reconcile 该任务看板(fork 卡即时出现)。
|
|
422
476
|
* 源会话不归属任何任务(普通看板)→ 无操作。单板 reconcile,毫秒级;
|
|
@@ -76,65 +76,3 @@ test("treats only the real message tail as live-follow attached", async () => {
|
|
|
76
76
|
assert.equal(getLiveFollowAttached(false, 400, 400, 600, 1096), false);
|
|
77
77
|
assert.equal(getLiveFollowAttached(false, 391, 392, 600, 1000), true);
|
|
78
78
|
});
|
|
79
|
-
|
|
80
|
-
test("prompt anchor spacer uses the rendered content end", async () => {
|
|
81
|
-
const { getPromptAnchorSpacerHeight } = await loadSubject();
|
|
82
|
-
const initial = getPromptAnchorSpacerHeight(400, 700, 600);
|
|
83
|
-
const afterRender = getPromptAnchorSpacerHeight(400, 700, 600);
|
|
84
|
-
|
|
85
|
-
assert.equal(initial, 300);
|
|
86
|
-
assert.equal(afterRender, initial);
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
test("prompt anchor spacer includes the viewport deficit for short conversations", async () => {
|
|
90
|
-
const { getPromptAnchorSpacerHeight } = await loadSubject();
|
|
91
|
-
const targetTop = 168;
|
|
92
|
-
const clientHeight = 579;
|
|
93
|
-
|
|
94
|
-
let contentHeight = 411;
|
|
95
|
-
let spacerHeight = getPromptAnchorSpacerHeight(targetTop, contentHeight, clientHeight);
|
|
96
|
-
assert.equal(spacerHeight, 336);
|
|
97
|
-
assert.equal(contentHeight + spacerHeight - clientHeight, targetTop);
|
|
98
|
-
|
|
99
|
-
contentHeight += 24;
|
|
100
|
-
spacerHeight = getPromptAnchorSpacerHeight(targetTop, contentHeight, clientHeight);
|
|
101
|
-
assert.equal(spacerHeight, 312);
|
|
102
|
-
assert.equal(contentHeight + spacerHeight - clientHeight, targetTop);
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
test("prompt anchor spacer clamps at zero once content can reach the target", async () => {
|
|
106
|
-
const { getPromptAnchorSpacerHeight } = await loadSubject();
|
|
107
|
-
assert.equal(getPromptAnchorSpacerHeight(100, 750, 600), 0);
|
|
108
|
-
assert.equal(getPromptAnchorSpacerHeight(-20, 200, 600), 0);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
test("prompt anchor spacer rounds fractional layout measurements up", async () => {
|
|
112
|
-
const { getPromptAnchorSpacerHeight } = await loadSubject();
|
|
113
|
-
assert.equal(getPromptAnchorSpacerHeight(400.25, 700, 600), 301);
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
test("streaming content consumes the prompt anchor before advancing the tail", async () => {
|
|
117
|
-
const { getPromptAnchorSpacerHeight } = await loadSubject();
|
|
118
|
-
const targetTop = 400;
|
|
119
|
-
const clientHeight = 600;
|
|
120
|
-
|
|
121
|
-
let contentHeight = 700;
|
|
122
|
-
let spacerHeight = getPromptAnchorSpacerHeight(targetTop, contentHeight, clientHeight);
|
|
123
|
-
assert.equal(spacerHeight, 300);
|
|
124
|
-
assert.equal(contentHeight + spacerHeight - clientHeight, targetTop);
|
|
125
|
-
|
|
126
|
-
contentHeight += 120;
|
|
127
|
-
spacerHeight = getPromptAnchorSpacerHeight(targetTop, contentHeight, clientHeight);
|
|
128
|
-
assert.equal(spacerHeight, 180);
|
|
129
|
-
assert.equal(contentHeight + spacerHeight - clientHeight, targetTop);
|
|
130
|
-
|
|
131
|
-
contentHeight += 180;
|
|
132
|
-
spacerHeight = getPromptAnchorSpacerHeight(targetTop, contentHeight, clientHeight);
|
|
133
|
-
assert.equal(spacerHeight, 0);
|
|
134
|
-
assert.equal(contentHeight - clientHeight, targetTop);
|
|
135
|
-
|
|
136
|
-
contentHeight += 40;
|
|
137
|
-
spacerHeight = getPromptAnchorSpacerHeight(targetTop, contentHeight, clientHeight);
|
|
138
|
-
assert.equal(spacerHeight, 0);
|
|
139
|
-
assert.equal(contentHeight - clientHeight, targetTop + 40);
|
|
140
|
-
});
|
package/lib/chat-lazy-load.ts
CHANGED
|
@@ -49,16 +49,3 @@ export function getLiveFollowAttached(
|
|
|
49
49
|
) return true;
|
|
50
50
|
return wasAttached;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
export function getPromptAnchorSpacerHeight(
|
|
54
|
-
targetTop: number,
|
|
55
|
-
contentEnd: number,
|
|
56
|
-
clientHeight: number,
|
|
57
|
-
): number {
|
|
58
|
-
const clampedTargetTop = Math.max(0, targetTop);
|
|
59
|
-
if (clampedTargetTop === 0) return 0;
|
|
60
|
-
|
|
61
|
-
return Math.max(0, Math.ceil(
|
|
62
|
-
clampedTargetTop + clientHeight - Math.max(0, contentEnd),
|
|
63
|
-
));
|
|
64
|
-
}
|
package/lib/chat-only.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ContextFileContent {
|
|
2
|
+
path: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const CHAT_ONLY_RESOURCE_LOADER_OPTIONS = {
|
|
7
|
+
noExtensions: true,
|
|
8
|
+
noSkills: true,
|
|
9
|
+
noPromptTemplates: true,
|
|
10
|
+
noThemes: true,
|
|
11
|
+
noContextFiles: false,
|
|
12
|
+
// Truthy placeholders prevent the loader from discovering configured prompt
|
|
13
|
+
// files. The overrides ensure neither placeholder participates in the prompt.
|
|
14
|
+
systemPrompt: " ",
|
|
15
|
+
appendSystemPrompt: [" "],
|
|
16
|
+
systemPromptOverride: () => undefined,
|
|
17
|
+
appendSystemPromptOverride: () => [],
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** Preserve Pi's discovery order and include only the context-file contents. */
|
|
21
|
+
export function contextFilesSystemPrompt(files: readonly ContextFileContent[]): string {
|
|
22
|
+
return files.map((file) => file.content).join("\n\n");
|
|
23
|
+
}
|
package/lib/draft-stash.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// 跨会话、浏览器全局存在;内容只增不自动删,删除仅靠手动。
|
|
3
3
|
// 与 lib/draft-store.ts(会话级单条输入框草稿)完全独立,互不干扰。
|
|
4
4
|
|
|
5
|
+
import { newId } from "./id";
|
|
6
|
+
|
|
5
7
|
export interface DraftItem {
|
|
6
8
|
id: string;
|
|
7
9
|
content: string;
|
|
@@ -24,12 +26,9 @@ function isDraftItem(value: unknown): value is DraftItem {
|
|
|
24
26
|
);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
/** 生成草稿 id
|
|
29
|
+
/** 生成草稿 id(统一走 lib/id 的兜底实现,安全上下文外也能用) */
|
|
28
30
|
export function newDraftId(): string {
|
|
29
|
-
|
|
30
|
-
return crypto.randomUUID();
|
|
31
|
-
}
|
|
32
|
-
return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
31
|
+
return newId();
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
/** 读取全部草稿,按最近活动(updatedAt)降序;存储缺失/损坏时返回空数组 */
|
package/lib/file-types.ts
CHANGED
|
@@ -26,7 +26,14 @@ export const AUDIO_EXT_TO_MIME: Record<string, string> = {
|
|
|
26
26
|
aac: "audio/aac",
|
|
27
27
|
flac: "audio/flac",
|
|
28
28
|
weba: "audio/webm",
|
|
29
|
-
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const VIDEO_EXT_TO_MIME: Record<string, string> = {
|
|
32
|
+
mp4: "video/mp4",
|
|
33
|
+
m4v: "video/mp4",
|
|
34
|
+
webm: "video/webm",
|
|
35
|
+
mov: "video/quicktime",
|
|
36
|
+
ogv: "video/ogg",
|
|
30
37
|
};
|
|
31
38
|
|
|
32
39
|
export const DOCUMENT_EXT_TO_MIME: Record<DocumentPreviewKind, string> = {
|
|
@@ -50,6 +57,10 @@ export function getAudioMime(filePath: string): string | null {
|
|
|
50
57
|
return AUDIO_EXT_TO_MIME[getFileExt(filePath)] ?? null;
|
|
51
58
|
}
|
|
52
59
|
|
|
60
|
+
export function getVideoMime(filePath: string): string | null {
|
|
61
|
+
return VIDEO_EXT_TO_MIME[getFileExt(filePath)] ?? null;
|
|
62
|
+
}
|
|
63
|
+
|
|
53
64
|
export function getDocumentMime(filePath: string): string | null {
|
|
54
65
|
return DOCUMENT_EXT_TO_MIME[getFileExt(filePath) as DocumentPreviewKind] ?? null;
|
|
55
66
|
}
|
|
@@ -68,6 +79,10 @@ export function isAudioPath(filePath: string): boolean {
|
|
|
68
79
|
return getAudioMime(filePath) !== null;
|
|
69
80
|
}
|
|
70
81
|
|
|
82
|
+
export function isVideoPath(filePath: string): boolean {
|
|
83
|
+
return getVideoMime(filePath) !== null;
|
|
84
|
+
}
|
|
85
|
+
|
|
71
86
|
export function isDocumentPreviewPath(filePath: string): boolean {
|
|
72
87
|
return documentPreviewKind(filePath) !== null;
|
|
73
88
|
}
|