pi-yun 0.2.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +21 -19
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +4 -4
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +12 -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 +5 -4
- package/.next/server/app/_not-found.segments/_full.segment.rsc +5 -4
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -4
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -3
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +1 -1
- package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/debug/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/cache-miss-notices/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js.nft.json +2 -2
- package/.next/server/app/api/cwd/validate/route.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js.nft.json +2 -2
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/file-index/route.js +1 -1
- package/.next/server/app/api/files/[...path]/route.js +1 -1
- package/.next/server/app/api/git/diff/route.js +1 -1
- package/.next/server/app/api/git/status/route.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/mcp/route.js +2 -2
- package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
- package/.next/server/app/api/mcp/sign-in/route.js +1 -1
- package/.next/server/app/api/mcp/test/route.js +1 -1
- package/.next/server/app/api/models/default/route.js +1 -1
- package/.next/server/app/api/models/default/route.js.nft.json +2 -2
- package/.next/server/app/api/models/enabled/route.js +1 -1
- package/.next/server/app/api/models/enabled/route.js.nft.json +2 -2
- package/.next/server/app/api/models/refresh/route.js +1 -1
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/open-in-explorer/route.js +1 -1
- package/.next/server/app/api/plugins/check/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/provider-usage/query/route.js +1 -1
- package/.next/server/app/api/push/config/route.js +1 -1
- package/.next/server/app/api/push/subscribe/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/sources/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/delete/route.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/search/route.js +1 -1
- package/.next/server/app/api/sessions/stats/route.js +1 -1
- package/.next/server/app/api/sessions/ui-state/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/content/route.js +1 -1
- package/.next/server/app/api/skills/install/route.js +1 -1
- package/.next/server/app/api/skills/remove/route.js +2 -0
- package/.next/server/app/api/skills/remove/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/remove/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/transfer/route.js +2 -0
- package/.next/server/app/api/skills/transfer/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/transfer/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/subagents/[id]/route.js +1 -1
- package/.next/server/app/api/subagents/profiles/route.js +1 -1
- package/.next/server/app/api/subagents/settings/route.js +1 -1
- package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
- package/.next/server/app/api/terminal/[id]/route.js +1 -1
- package/.next/server/app/api/terminal/route.js +1 -1
- package/.next/server/app/api/tools/settings/route.js +1 -1
- package/.next/server/app/api/web-auth/route.js +1 -1
- package/.next/server/app/api/worktrees/route.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 +10 -9
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +16 -14
- package/.next/server/app/index.segments/_full.segment.rsc +10 -9
- package/.next/server/app/index.segments/_tree.segment.rsc +5 -4
- package/.next/server/app/login/page.js +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +6 -5
- package/.next/server/app/login.segments/_full.segment.rsc +6 -5
- package/.next/server/app/login.segments/_tree.segment.rsc +4 -3
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +12 -10
- package/.next/server/app/manifest.webmanifest/route.js +1 -1
- package/.next/server/app/page.js +5 -5
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/pet-preview/page.js +1 -1
- package/.next/server/app/pet-preview/page_client-reference-manifest.js +1 -1
- package/.next/server/app/pet-preview.html +1 -1
- package/.next/server/app/pet-preview.rsc +6 -5
- package/.next/server/app/pet-preview.segments/_full.segment.rsc +6 -5
- package/.next/server/app/pet-preview.segments/_tree.segment.rsc +4 -3
- package/.next/server/app/pet-preview.segments/pet-preview/__PAGE__.segment.rsc +12 -10
- package/.next/server/app-paths-manifest.json +21 -19
- package/.next/server/chunks/1249.js +1 -0
- package/.next/server/chunks/2243.js +1 -1
- package/.next/server/chunks/4733.js +1 -1
- package/.next/server/chunks/7365.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/1278-a342d5434023eb38.js +1 -0
- package/.next/static/chunks/app/_global-error/page-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/lease/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/agent/debug/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/cache-miss-notices/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/home/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/mcp/sign-in/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/mcp/test/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models/default/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models/enabled/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models/refresh/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/open-in-explorer/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/plugins/check/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/provider-usage/query/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/push/config/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/push/subscribe/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/fork/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/sources/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/delete/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/stats/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/sessions/ui-state/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/content/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/remove/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/transfer/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/tools/settings/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/web-auth/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/{layout-6b3ff415d8618d1f.js → layout-56c76258dbb5abec.js} +1 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/app/{page-4706951bbcbab958.js → page-cbfac13bc0fa885f.js} +15 -15
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-eea87d7c4840e5e7.js +1 -0
- package/.next/static/chunks/{webpack-be764c3bb9e86b23.js → webpack-31a07b7e5ebb23e2.js} +1 -1
- package/.next/static/css/77332ff608093895.css +1 -0
- package/.next/static/css/a08edf57b19c703e.css +1 -0
- package/.next/static/css/{457a30692658ff3c.css → e2c959349a8fa15a.css} +1 -1
- package/.next/static/css/e757e30e68c10f13.css +1 -0
- package/.next/static/d8Nx7OPkoC7ZQGKA1PfDp/_buildManifest.js +1 -0
- package/.next/trace +61 -61
- package/.next/trace-build +1 -1
- package/.next/types/app/api/skills/remove/route.ts +355 -0
- package/.next/types/app/api/skills/transfer/route.ts +355 -0
- package/.next/types/routes.d.ts +3 -1
- package/.next/types/validator.ts +20 -0
- package/README.md +66 -103
- package/package.json +1 -1
- package/.next/static/chunks/1278-5aee13ed41013fe6.js +0 -1
- package/.next/static/chunks/app/_global-error/page-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/lease/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/agent/debug/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/cache-miss-notices/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/home/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/mcp/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/mcp/sign-in/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/mcp/test/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models/default/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models/enabled/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models/refresh/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/open-in-explorer/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/plugins/check/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/provider-usage/query/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/push/config/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/push/subscribe/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/fork/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/sources/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/delete/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/search/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/stats/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/sessions/ui-state/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/skills/content/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/skills/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/subagents/[id]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/subagents/profiles/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/subagents/settings/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/tools/settings/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/web-auth/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-147c253c096ab7d7.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-147c253c096ab7d7.js +0 -1
- package/.next/static/css/432038f9c1c9373f.css +0 -1
- package/.next/static/css/8f3e29456db308b5.css +0 -1
- package/.next/static/pOQINtVxWAHtlQLmrw2Dg/_buildManifest.js +0 -1
- /package/.next/static/{pOQINtVxWAHtlQLmrw2Dg → d8Nx7OPkoC7ZQGKA1PfDp}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
// File: D:\yun\pi-web-yun\app\api\skills\transfer\route.ts
|
|
2
|
+
import * as entry from '../../../../../../app/api/skills/transfer/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
+
|
|
7
|
+
type TEntry = typeof import('../../../../../../app/api/skills/transfer/route.js')
|
|
8
|
+
|
|
9
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
11
|
+
: T
|
|
12
|
+
|
|
13
|
+
// Check that the entry is a valid entry
|
|
14
|
+
checkFields<Diff<{
|
|
15
|
+
GET?: Function
|
|
16
|
+
HEAD?: Function
|
|
17
|
+
OPTIONS?: Function
|
|
18
|
+
POST?: Function
|
|
19
|
+
PUT?: Function
|
|
20
|
+
DELETE?: Function
|
|
21
|
+
PATCH?: Function
|
|
22
|
+
config?: {}
|
|
23
|
+
generateStaticParams?: Function
|
|
24
|
+
|
|
25
|
+
instant?: InstantConfigForTypeCheckInternal
|
|
26
|
+
prefetch?: Prefetch
|
|
27
|
+
ensureStatic?: EnsureStatic
|
|
28
|
+
unstable_dynamicStaleTime?: number
|
|
29
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
30
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
31
|
+
dynamicParams?: boolean
|
|
32
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
33
|
+
/** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
|
|
34
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
35
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
36
|
+
maxDuration?: number
|
|
37
|
+
|
|
38
|
+
}, TEntry, ''>>()
|
|
39
|
+
|
|
40
|
+
type RouteContext = { params: Promise<SegmentParams> }
|
|
41
|
+
// Check the prop type of the entry function
|
|
42
|
+
if ('GET' in entry) {
|
|
43
|
+
checkFields<
|
|
44
|
+
Diff<
|
|
45
|
+
ParamCheck<Request | NextRequest>,
|
|
46
|
+
{
|
|
47
|
+
__tag__: 'GET'
|
|
48
|
+
__param_position__: 'first'
|
|
49
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
50
|
+
},
|
|
51
|
+
'GET'
|
|
52
|
+
>
|
|
53
|
+
>()
|
|
54
|
+
checkFields<
|
|
55
|
+
Diff<
|
|
56
|
+
ParamCheck<RouteContext>,
|
|
57
|
+
{
|
|
58
|
+
__tag__: 'GET'
|
|
59
|
+
__param_position__: 'second'
|
|
60
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
61
|
+
},
|
|
62
|
+
'GET'
|
|
63
|
+
>
|
|
64
|
+
>()
|
|
65
|
+
|
|
66
|
+
checkFields<
|
|
67
|
+
Diff<
|
|
68
|
+
{
|
|
69
|
+
__tag__: 'GET',
|
|
70
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
__tag__: 'GET',
|
|
74
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
75
|
+
},
|
|
76
|
+
'GET'
|
|
77
|
+
>
|
|
78
|
+
>()
|
|
79
|
+
}
|
|
80
|
+
// Check the prop type of the entry function
|
|
81
|
+
if ('HEAD' in entry) {
|
|
82
|
+
checkFields<
|
|
83
|
+
Diff<
|
|
84
|
+
ParamCheck<Request | NextRequest>,
|
|
85
|
+
{
|
|
86
|
+
__tag__: 'HEAD'
|
|
87
|
+
__param_position__: 'first'
|
|
88
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
89
|
+
},
|
|
90
|
+
'HEAD'
|
|
91
|
+
>
|
|
92
|
+
>()
|
|
93
|
+
checkFields<
|
|
94
|
+
Diff<
|
|
95
|
+
ParamCheck<RouteContext>,
|
|
96
|
+
{
|
|
97
|
+
__tag__: 'HEAD'
|
|
98
|
+
__param_position__: 'second'
|
|
99
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
100
|
+
},
|
|
101
|
+
'HEAD'
|
|
102
|
+
>
|
|
103
|
+
>()
|
|
104
|
+
|
|
105
|
+
checkFields<
|
|
106
|
+
Diff<
|
|
107
|
+
{
|
|
108
|
+
__tag__: 'HEAD',
|
|
109
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
__tag__: 'HEAD',
|
|
113
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
114
|
+
},
|
|
115
|
+
'HEAD'
|
|
116
|
+
>
|
|
117
|
+
>()
|
|
118
|
+
}
|
|
119
|
+
// Check the prop type of the entry function
|
|
120
|
+
if ('OPTIONS' in entry) {
|
|
121
|
+
checkFields<
|
|
122
|
+
Diff<
|
|
123
|
+
ParamCheck<Request | NextRequest>,
|
|
124
|
+
{
|
|
125
|
+
__tag__: 'OPTIONS'
|
|
126
|
+
__param_position__: 'first'
|
|
127
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
128
|
+
},
|
|
129
|
+
'OPTIONS'
|
|
130
|
+
>
|
|
131
|
+
>()
|
|
132
|
+
checkFields<
|
|
133
|
+
Diff<
|
|
134
|
+
ParamCheck<RouteContext>,
|
|
135
|
+
{
|
|
136
|
+
__tag__: 'OPTIONS'
|
|
137
|
+
__param_position__: 'second'
|
|
138
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
139
|
+
},
|
|
140
|
+
'OPTIONS'
|
|
141
|
+
>
|
|
142
|
+
>()
|
|
143
|
+
|
|
144
|
+
checkFields<
|
|
145
|
+
Diff<
|
|
146
|
+
{
|
|
147
|
+
__tag__: 'OPTIONS',
|
|
148
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
__tag__: 'OPTIONS',
|
|
152
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
153
|
+
},
|
|
154
|
+
'OPTIONS'
|
|
155
|
+
>
|
|
156
|
+
>()
|
|
157
|
+
}
|
|
158
|
+
// Check the prop type of the entry function
|
|
159
|
+
if ('POST' in entry) {
|
|
160
|
+
checkFields<
|
|
161
|
+
Diff<
|
|
162
|
+
ParamCheck<Request | NextRequest>,
|
|
163
|
+
{
|
|
164
|
+
__tag__: 'POST'
|
|
165
|
+
__param_position__: 'first'
|
|
166
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
167
|
+
},
|
|
168
|
+
'POST'
|
|
169
|
+
>
|
|
170
|
+
>()
|
|
171
|
+
checkFields<
|
|
172
|
+
Diff<
|
|
173
|
+
ParamCheck<RouteContext>,
|
|
174
|
+
{
|
|
175
|
+
__tag__: 'POST'
|
|
176
|
+
__param_position__: 'second'
|
|
177
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
178
|
+
},
|
|
179
|
+
'POST'
|
|
180
|
+
>
|
|
181
|
+
>()
|
|
182
|
+
|
|
183
|
+
checkFields<
|
|
184
|
+
Diff<
|
|
185
|
+
{
|
|
186
|
+
__tag__: 'POST',
|
|
187
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
__tag__: 'POST',
|
|
191
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
192
|
+
},
|
|
193
|
+
'POST'
|
|
194
|
+
>
|
|
195
|
+
>()
|
|
196
|
+
}
|
|
197
|
+
// Check the prop type of the entry function
|
|
198
|
+
if ('PUT' in entry) {
|
|
199
|
+
checkFields<
|
|
200
|
+
Diff<
|
|
201
|
+
ParamCheck<Request | NextRequest>,
|
|
202
|
+
{
|
|
203
|
+
__tag__: 'PUT'
|
|
204
|
+
__param_position__: 'first'
|
|
205
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
206
|
+
},
|
|
207
|
+
'PUT'
|
|
208
|
+
>
|
|
209
|
+
>()
|
|
210
|
+
checkFields<
|
|
211
|
+
Diff<
|
|
212
|
+
ParamCheck<RouteContext>,
|
|
213
|
+
{
|
|
214
|
+
__tag__: 'PUT'
|
|
215
|
+
__param_position__: 'second'
|
|
216
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
217
|
+
},
|
|
218
|
+
'PUT'
|
|
219
|
+
>
|
|
220
|
+
>()
|
|
221
|
+
|
|
222
|
+
checkFields<
|
|
223
|
+
Diff<
|
|
224
|
+
{
|
|
225
|
+
__tag__: 'PUT',
|
|
226
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
__tag__: 'PUT',
|
|
230
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
231
|
+
},
|
|
232
|
+
'PUT'
|
|
233
|
+
>
|
|
234
|
+
>()
|
|
235
|
+
}
|
|
236
|
+
// Check the prop type of the entry function
|
|
237
|
+
if ('DELETE' in entry) {
|
|
238
|
+
checkFields<
|
|
239
|
+
Diff<
|
|
240
|
+
ParamCheck<Request | NextRequest>,
|
|
241
|
+
{
|
|
242
|
+
__tag__: 'DELETE'
|
|
243
|
+
__param_position__: 'first'
|
|
244
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
245
|
+
},
|
|
246
|
+
'DELETE'
|
|
247
|
+
>
|
|
248
|
+
>()
|
|
249
|
+
checkFields<
|
|
250
|
+
Diff<
|
|
251
|
+
ParamCheck<RouteContext>,
|
|
252
|
+
{
|
|
253
|
+
__tag__: 'DELETE'
|
|
254
|
+
__param_position__: 'second'
|
|
255
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
256
|
+
},
|
|
257
|
+
'DELETE'
|
|
258
|
+
>
|
|
259
|
+
>()
|
|
260
|
+
|
|
261
|
+
checkFields<
|
|
262
|
+
Diff<
|
|
263
|
+
{
|
|
264
|
+
__tag__: 'DELETE',
|
|
265
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
__tag__: 'DELETE',
|
|
269
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
270
|
+
},
|
|
271
|
+
'DELETE'
|
|
272
|
+
>
|
|
273
|
+
>()
|
|
274
|
+
}
|
|
275
|
+
// Check the prop type of the entry function
|
|
276
|
+
if ('PATCH' in entry) {
|
|
277
|
+
checkFields<
|
|
278
|
+
Diff<
|
|
279
|
+
ParamCheck<Request | NextRequest>,
|
|
280
|
+
{
|
|
281
|
+
__tag__: 'PATCH'
|
|
282
|
+
__param_position__: 'first'
|
|
283
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
284
|
+
},
|
|
285
|
+
'PATCH'
|
|
286
|
+
>
|
|
287
|
+
>()
|
|
288
|
+
checkFields<
|
|
289
|
+
Diff<
|
|
290
|
+
ParamCheck<RouteContext>,
|
|
291
|
+
{
|
|
292
|
+
__tag__: 'PATCH'
|
|
293
|
+
__param_position__: 'second'
|
|
294
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
295
|
+
},
|
|
296
|
+
'PATCH'
|
|
297
|
+
>
|
|
298
|
+
>()
|
|
299
|
+
|
|
300
|
+
checkFields<
|
|
301
|
+
Diff<
|
|
302
|
+
{
|
|
303
|
+
__tag__: 'PATCH',
|
|
304
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
__tag__: 'PATCH',
|
|
308
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
309
|
+
},
|
|
310
|
+
'PATCH'
|
|
311
|
+
>
|
|
312
|
+
>()
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
316
|
+
if ('generateStaticParams' in entry) {
|
|
317
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
318
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface PageProps {
|
|
322
|
+
params?: Promise<SegmentParams>
|
|
323
|
+
searchParams?: Promise<any>
|
|
324
|
+
}
|
|
325
|
+
export interface LayoutProps {
|
|
326
|
+
children?: React.ReactNode
|
|
327
|
+
|
|
328
|
+
params?: Promise<SegmentParams>
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// =============
|
|
332
|
+
// Utility types
|
|
333
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
334
|
+
|
|
335
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
336
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
337
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
338
|
+
|
|
339
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
340
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
341
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
342
|
+
|
|
343
|
+
type ParamCheck<T> = {
|
|
344
|
+
__tag__: string
|
|
345
|
+
__param_position__: string
|
|
346
|
+
__param_type__: T
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
350
|
+
|
|
351
|
+
// https://github.com/sindresorhus/type-fest
|
|
352
|
+
type Numeric = number | bigint
|
|
353
|
+
type Zero = 0 | 0n
|
|
354
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
355
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
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 = "/" | "/login" | "/pet-preview"
|
|
5
|
-
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/debug" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cache-miss-notices" | "/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/mcp/sign-in" | "/api/mcp/sign-in/[flowId]" | "/api/mcp/test" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/models/default" | "/api/models/enabled" | "/api/models/refresh" | "/api/open-in-explorer" | "/api/plugins" | "/api/plugins/check" | "/api/project-trust" | "/api/provider-usage/query" | "/api/push/config" | "/api/push/subscribe" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/fork" | "/api/sessions/[id]/sources" | "/api/sessions/[id]/state" | "/api/sessions/delete" | "/api/sessions/search" | "/api/sessions/stats" | "/api/sessions/ui-state" | "/api/skills" | "/api/skills/check" | "/api/skills/content" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/tools/settings" | "/api/web-auth" | "/api/worktrees" | "/manifest.webmanifest"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/debug" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cache-miss-notices" | "/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/mcp/sign-in" | "/api/mcp/sign-in/[flowId]" | "/api/mcp/test" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/models/default" | "/api/models/enabled" | "/api/models/refresh" | "/api/open-in-explorer" | "/api/plugins" | "/api/plugins/check" | "/api/project-trust" | "/api/provider-usage/query" | "/api/push/config" | "/api/push/subscribe" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/fork" | "/api/sessions/[id]/sources" | "/api/sessions/[id]/state" | "/api/sessions/delete" | "/api/sessions/search" | "/api/sessions/stats" | "/api/sessions/ui-state" | "/api/skills" | "/api/skills/check" | "/api/skills/content" | "/api/skills/install" | "/api/skills/remove" | "/api/skills/search" | "/api/skills/transfer" | "/api/skills/update" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/tools/settings" | "/api/web-auth" | "/api/worktrees" | "/manifest.webmanifest"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -70,7 +70,9 @@ interface ParamMap {
|
|
|
70
70
|
"/api/skills/check": {}
|
|
71
71
|
"/api/skills/content": {}
|
|
72
72
|
"/api/skills/install": {}
|
|
73
|
+
"/api/skills/remove": {}
|
|
73
74
|
"/api/skills/search": {}
|
|
75
|
+
"/api/skills/transfer": {}
|
|
74
76
|
"/api/skills/update": {}
|
|
75
77
|
"/api/subagents/[id]": { "id": string; }
|
|
76
78
|
"/api/subagents/profiles": {}
|
package/.next/types/validator.ts
CHANGED
|
@@ -673,6 +673,16 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
673
673
|
type __Unused = __Check
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
+
// Validate ../../app/api/skills/remove/route.ts
|
|
677
|
+
{
|
|
678
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills/remove">> = Specific
|
|
679
|
+
const handler = {} as typeof import("../../app/api/skills/remove/route.js")
|
|
680
|
+
type __Check = __IsExpected<typeof handler>
|
|
681
|
+
|
|
682
|
+
// @ts-ignore
|
|
683
|
+
type __Unused = __Check
|
|
684
|
+
}
|
|
685
|
+
|
|
676
686
|
// Validate ../../app/api/skills/route.ts
|
|
677
687
|
{
|
|
678
688
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills">> = Specific
|
|
@@ -693,6 +703,16 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
693
703
|
type __Unused = __Check
|
|
694
704
|
}
|
|
695
705
|
|
|
706
|
+
// Validate ../../app/api/skills/transfer/route.ts
|
|
707
|
+
{
|
|
708
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills/transfer">> = Specific
|
|
709
|
+
const handler = {} as typeof import("../../app/api/skills/transfer/route.js")
|
|
710
|
+
type __Check = __IsExpected<typeof handler>
|
|
711
|
+
|
|
712
|
+
// @ts-ignore
|
|
713
|
+
type __Unused = __Check
|
|
714
|
+
}
|
|
715
|
+
|
|
696
716
|
// Validate ../../app/api/skills/update/route.ts
|
|
697
717
|
{
|
|
698
718
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/skills/update">> = Specific
|
package/README.md
CHANGED
|
@@ -1,124 +1,100 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PI-YUN
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
[日本語](./docs/README.ja.md) | [Русский](./docs/README.ru.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
PI-YUN 是基于 [Pi Web](https://github.com/agegr/pi-web) 的 [pi 编程智能体](https://github.com/earendil-works/pi)浏览器工作空间。它沿用 pi 的本地配置和会话文件,在浏览器中组织项目、与智能体协作,并加入工作台导航、桌面陪伴和专注计时等体验。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+

|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
*使用示例数据展示的 PI-YUN 工作空间。*
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## 功能
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- **
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
13
|
+
- **会话与项目**:按项目浏览、继续、搜索、置顶和归档会话;支持从历史消息创建新会话或在当前会话内分支。
|
|
14
|
+
- **工作空间**:在首页、对话、历史、系统提示词、工具定义、智能体和分支视图之间切换;支持侧聊和子智能体。
|
|
15
|
+
- **项目文件与终端**:浏览和上传文件、查看 Git 差异、预览常见文件格式,并在工作空间中使用终端。
|
|
16
|
+
- **Git worktree**:从项目选择器切换或创建 worktree,将同一仓库的会话归在一起。详见 [worktree 指南](./docs/worktrees.zh-CN.md)。
|
|
17
|
+
- **模型与扩展**:在设置中管理模型、默认模型和思考等级,以及登录凭据、MCP、插件和技能。
|
|
18
|
+
- **陪伴与专注**:桌宠提供会话状态提示、生活习惯提醒和专注计时;提醒与计时设置保存在浏览器中,不调用模型。专注计时可在页面后台运行,并可按需启用浏览器通知。
|
|
19
|
+
- **多语言界面**:支持简体中文、繁体中文和英文,首次使用时跟随浏览器语言。
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## 快速开始
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
需要 Node.js **22.19.0 或更高版本**,可通过 `node --version` 检查。使用 npm 包启动:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npx pi-
|
|
26
|
+
npx pi-yun@latest
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
服务就绪后会尝试打开浏览器;也可以访问 [http://127.0.0.1:30141](http://127.0.0.1:30141)。默认只监听本机地址。首次使用时,在设置的「模型」中登录模型服务商或配置 API Key。
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
To install the `pi-yun` command globally:
|
|
31
|
+
也可以全局安装:
|
|
34
32
|
|
|
35
33
|
```bash
|
|
36
34
|
npm install -g pi-yun@latest
|
|
37
35
|
pi-yun
|
|
38
36
|
```
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
常用命令:
|
|
41
39
|
|
|
42
40
|
```bash
|
|
43
|
-
pi-yun
|
|
44
|
-
pi-yun
|
|
45
|
-
pi-yun
|
|
46
|
-
pi-yun
|
|
47
|
-
pi-yun
|
|
41
|
+
pi-yun --help # 查看启动选项
|
|
42
|
+
pi-yun version # 查看已安装版本
|
|
43
|
+
pi-yun status # 查看运行中的服务
|
|
44
|
+
pi-yun stop [--port N] # 停止服务
|
|
45
|
+
pi-yun open [--port N] # 在浏览器中打开服务
|
|
46
|
+
pi-yun update [--check] # 更新全局 npm 安装,或只检查更新
|
|
48
47
|
```
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
更新前可先运行 `pi-yun stop`,然后运行 `pi-yun update`;卸载使用 `npm uninstall -g pi-yun`。
|
|
51
50
|
|
|
52
|
-
##
|
|
51
|
+
## 配置与访问
|
|
53
52
|
|
|
54
|
-
|
|
53
|
+
命令行选项优先于对应的环境变量:
|
|
55
54
|
|
|
56
|
-
|
|
|
55
|
+
| 选项或环境变量 | 用途 | 默认值 |
|
|
57
56
|
| --- | --- | --- |
|
|
58
|
-
| `--
|
|
59
|
-
| `--
|
|
60
|
-
| `--
|
|
61
|
-
|
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
Set `PI_WEB_APP_NAME` before starting the server (for example, `PI_WEB_APP_NAME='Work Pi' pi-web`). After changing it, restart the server to serve the new manifest; no rebuild is required. Updates to the name of an already installed PWA are managed by the browser and are not guaranteed to appear immediately. This does not change the page title or icons.
|
|
71
|
-
|
|
72
|
-
For example:
|
|
57
|
+
| `--port <port>`、`-p <port>` 或 `PORT` | 服务端口 | `30141` |
|
|
58
|
+
| `--hostname <host>`、`-H <host>` 或 `PI_WEB_HOSTNAME` | 监听地址 | `127.0.0.1` |
|
|
59
|
+
| `--no-open` 或 `PI_WEB_NO_OPEN=1` | 禁止自动打开浏览器 | 自动打开 |
|
|
60
|
+
| `PI_WEB_PASSWORD` | 启用浏览器密码登录;API 可使用用户名 `pi` 的 Basic Auth | 未启用 |
|
|
61
|
+
| `PI_WEB_ALLOWED_HOSTS` | 允许的额外代理或自定义主机名,以逗号分隔 | 未设置 |
|
|
62
|
+
| `PI_WEB_APP_NAME` | PWA 的显示名称;修改后需重启服务 | `Pi Web` |
|
|
63
|
+
| `PI_WEB_SKIP_VERSION_CHECK=1` | 关闭更新检查 | 未设置 |
|
|
64
|
+
| `PI_WEB_IDLE_TIMEOUT_MS` | 会话空闲关闭时间,`0` 为禁用 | `600000` 毫秒 |
|
|
65
|
+
| `PI_WEB_SHUTDOWN_DEADLINE_MS` | 扩展处理会话关闭事件的最长等待时间 | `5000` 毫秒 |
|
|
66
|
+
| `PI_CODEMODE_MAX_WORKERS` | 服务中 Code mode 脚本的并发上限 | `8` |
|
|
67
|
+
|
|
68
|
+
例如,自定义端口并关闭自动打开浏览器:
|
|
73
69
|
|
|
74
70
|
```bash
|
|
75
|
-
pi-
|
|
76
|
-
pi-web -p 8080 -H 0.0.0.0 --no-open
|
|
71
|
+
pi-yun --port 8080 --no-open
|
|
77
72
|
```
|
|
78
73
|
|
|
79
|
-
###
|
|
74
|
+
### 局域网与远程访问
|
|
80
75
|
|
|
81
|
-
|
|
76
|
+
监听非本机地址会让网络上的访问者接触到能够执行操作的智能体。在可信局域网内使用时,请设置强密码。PowerShell 示例:
|
|
82
77
|
|
|
83
|
-
```
|
|
84
|
-
PI_WEB_PASSWORD='
|
|
78
|
+
```powershell
|
|
79
|
+
$env:PI_WEB_PASSWORD = '替换为足够长的随机密码'
|
|
80
|
+
pi-yun --hostname 0.0.0.0
|
|
85
81
|
```
|
|
86
82
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
### Docker
|
|
83
|
+
密码本身不会加密 HTTP 流量;远程访问请使用可信 VPN 或配置 HTTPS 的反向代理。代理使用额外主机名时,可将准确的主机名加入 `PI_WEB_ALLOWED_HOSTS`。
|
|
90
84
|
|
|
91
|
-
|
|
85
|
+
服务端模型和 API 请求支持 `HTTP_PROXY`、`HTTPS_PROXY` 和 `NO_PROXY` 环境变量。
|
|
92
86
|
|
|
93
|
-
|
|
87
|
+
## 数据与使用说明
|
|
94
88
|
|
|
95
|
-
|
|
89
|
+
- PI-YUN 默认读取 `~/.pi/agent` 中的 pi 配置和会话;可通过 `PI_CODING_AGENT_DIR` 指定其他目录。与 pi 共享会话时,请确保进程能访问相同的工作目录和数据目录。
|
|
90
|
+
- 模型设置与 pi 共用配置和凭据;已打开会话中的模型配置修改后,需要重新选择该模型才能应用。
|
|
91
|
+
- 文件浏览器的访问范围受已选择或已知的项目和会话目录限制。
|
|
92
|
+
- 生活提醒按前台活跃使用时间计时,页面不活跃时会暂停。专注计时使用实际时间;浏览器可能限制后台页面,关闭所有页面后不会安排系统通知。
|
|
93
|
+
- 使用 Docker 时,可按照本仓库的 [Docker 指南](./docs/docker.md)从源码构建镜像。
|
|
96
94
|
|
|
97
|
-
|
|
95
|
+
## 集成接口
|
|
98
96
|
|
|
99
|
-
|
|
100
|
-
HTTP_PROXY=http://127.0.0.1:7890 \
|
|
101
|
-
HTTPS_PROXY=http://127.0.0.1:7890 \
|
|
102
|
-
NO_PROXY=localhost,127.0.0.1 \
|
|
103
|
-
npx pi-web-yun@latest
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
On Windows PowerShell:
|
|
107
|
-
|
|
108
|
-
```powershell
|
|
109
|
-
$env:HTTP_PROXY = "http://127.0.0.1:7890"
|
|
110
|
-
$env:HTTPS_PROXY = "http://127.0.0.1:7890"
|
|
111
|
-
$env:NO_PROXY = "localhost,127.0.0.1"
|
|
112
|
-
npx pi-web-yun@latest
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
## Notes
|
|
116
|
-
|
|
117
|
-
- **Agent data**: Pi Web reads pi data from `~/.pi/agent` by default, including session files under `sessions/<encoded-cwd>/<timestamp>_<uuid>.jsonl`. Set `PI_CODING_AGENT_DIR` to use another pi agent directory.
|
|
118
|
-
- **Filesystem access**: Pi Web must be able to read the agent data directory and the working directories recorded by its sessions. Run Pi Web in the same filesystem environment as pi when sharing existing sessions.
|
|
119
|
-
- **Shared configuration**: the Models panel uses pi's model, settings, and credential storage, so changes are visible to both interfaces. An open session applies a saved edit of its model when you select the model again.
|
|
120
|
-
- **File access boundary**: the file browser is limited to working directories selected in Pi Web and project or session roots it already knows about; it is not a general filesystem browser.
|
|
121
|
-
- **Git worktrees**: see [Worktrees in Pi Web](./docs/worktrees.md) for switcher visibility, worktree creation, and removal behavior.
|
|
97
|
+
以下接口供下游集成使用。
|
|
122
98
|
|
|
123
99
|
### Downstream Session Context Menu
|
|
124
100
|
|
|
@@ -172,42 +148,29 @@ file. Provider errors fail safe by preserving that session. This lease only
|
|
|
172
148
|
affects automatic idle eviction; explicit shutdown and Stop fallback cleanup
|
|
173
149
|
still take precedence.
|
|
174
150
|
|
|
175
|
-
##
|
|
151
|
+
## 本地开发
|
|
176
152
|
|
|
177
153
|
```bash
|
|
178
154
|
npm install
|
|
179
155
|
npm run dev
|
|
180
156
|
```
|
|
181
157
|
|
|
182
|
-
|
|
158
|
+
开发服务地址为 [http://127.0.0.1:30141](http://127.0.0.1:30141)。常用检查:
|
|
183
159
|
|
|
184
160
|
```bash
|
|
185
161
|
npm test
|
|
186
|
-
|
|
162
|
+
npx tsc --noEmit
|
|
187
163
|
npm run lint
|
|
188
164
|
```
|
|
189
165
|
|
|
190
|
-
|
|
166
|
+
开发期间不要运行 `next build` 或 `npm run build`:它们会修改 `.next/`,影响开发服务。发布构建请使用独立的干净工作目录。项目结构和开发约定见 [AGENTS.md](./AGENTS.md),贡献范围见 [CONTRIBUTING.md](./CONTRIBUTING.md)。
|
|
191
167
|
|
|
192
|
-
|
|
168
|
+
## 发布说明
|
|
193
169
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
## Repository Layout
|
|
197
|
-
|
|
198
|
-
```text
|
|
199
|
-
app/ Next.js UI and API routes
|
|
200
|
-
components/ React UI components
|
|
201
|
-
hooks/ Client state and interaction hooks
|
|
202
|
-
lib/ Session, agent, model, file, Git, and security logic
|
|
203
|
-
public/ Static assets and PWA files
|
|
204
|
-
bin/ npm CLI entrypoint and launch option parsing
|
|
205
|
-
docs/ Focused user and contributor guides
|
|
206
|
-
demo/ Static browser demo published to GitHub Pages (see demo/README.md)
|
|
207
|
-
```
|
|
170
|
+
本项目的 npm 包名为 `pi-yun`,版本在 `package.json` 和 `package-lock.json` 中维护。当前仓库保留了上游发布工作流,但该工作流仅在 `agegr/pi-web` 仓库执行;推送 PI-YUN 的标签不会通过它自动发布 npm 包或 Docker 镜像。仓库中的 `npm run release` 会安装依赖、递增补丁版本、构建并发布 npm 包,应在独立的干净发布目录中使用。具体步骤见[发布指南](./docs/release.md)。
|
|
208
171
|
|
|
209
|
-
|
|
172
|
+
## 致谢与许可证
|
|
210
173
|
|
|
211
|
-
|
|
174
|
+
PI-YUN 基于 [agegr/pi-web](https://github.com/agegr/pi-web) 开发,并使用 [pi](https://github.com/earendil-works/pi) 生态。感谢上游项目及所有贡献者。
|
|
212
175
|
|
|
213
|
-
[MIT](./LICENSE)
|
|
176
|
+
[MIT License](./LICENSE)
|