@pricening/pi-web 0.9.7 → 0.9.9
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 +13 -11
- package/.next/build-manifest.json +2 -2
- 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 +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- 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/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/archives/route.js +1 -0
- package/.next/server/app/api/archives/route.js.nft.json +1 -0
- package/.next/server/app/api/archives/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/archives/sessions/route.js +1 -0
- package/.next/server/app/api/archives/sessions/route.js.nft.json +1 -0
- package/.next/server/app/api/archives/sessions/route_client-reference-manifest.js +1 -0
- 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/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js +1 -1
- 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 +2 -2
- package/.next/server/app/api/git/status/route.js +2 -2
- package/.next/server/app/api/home/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/pins/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 +4 -3
- package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -1
- 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 +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.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/search/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/install/route.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- 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 +1 -1
- 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 +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page.js +1 -1
- 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 +4 -4
- package/.next/server/app/login.segments/_full.segment.rsc +4 -4
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/page.js +20 -20
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +13 -11
- package/.next/server/chunks/2243.js +1 -1
- package/.next/server/chunks/3573.js +1 -1
- package/.next/server/chunks/4353.js +1 -0
- package/.next/server/chunks/5582.js +2 -2
- package/.next/server/chunks/6429.js +1 -1
- package/.next/server/chunks/8410.js +1 -0
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- 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/1278-c20177e2f0547fb0.js +1 -0
- package/.next/static/chunks/app/_global-error/page-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/lease/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/archives/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/archives/sessions/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/home/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/pins/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/plugins/check/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/provider-usage/query/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/push/config/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/push/subscribe/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/tools/settings/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/web-auth/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/{layout-5bc416fd5398564d.js → layout-d336308f5f5c4e97.js} +1 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/page-ebd11e43d32c7c7f.js +283 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-0d0785de797ec9c7.js +1 -0
- package/.next/static/css/{f4a799a04a7a8a76.css → ca4e6d06382119bd.css} +1 -1
- package/.next/static/qDrZc4StIk3gX1M8cE65k/_buildManifest.js +1 -0
- package/.next/trace +40 -41
- package/.next/trace-build +1 -1
- package/.next/types/app/api/archives/route.ts +353 -0
- package/.next/types/app/api/archives/sessions/route.ts +353 -0
- package/.next/types/routes.d.ts +3 -1
- package/.next/types/validator.ts +18 -0
- package/README.ja.md +7 -130
- package/README.md +51 -123
- package/README.ru.md +7 -130
- package/README.zh-CN.md +51 -77
- package/package.json +3 -3
- package/.next/server/chunks/2349.js +0 -1
- package/.next/static/8LHW2XYS_VC9FpfLDlmpF/_buildManifest.js +0 -1
- package/.next/static/chunks/1278-4e101e127edaae15.js +0 -1
- package/.next/static/chunks/app/_global-error/page-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/lease/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/home/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/pins/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/plugins/check/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/provider-usage/query/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/push/config/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/push/subscribe/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/search/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/subagents/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/subagents/profiles/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/subagents/settings/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/tools/settings/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/web-auth/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/page-904541ae65f082d4.js +0 -283
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6f128c132ee86731.js +0 -1
- /package/.next/static/{8LHW2XYS_VC9FpfLDlmpF → qDrZc4StIk3gX1M8cE65k}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
// File: /home/runner/work/pi-web/pi-web/app/api/archives/sessions/route.ts
|
|
2
|
+
import * as entry from '../../../../../../app/api/archives/sessions/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
+
|
|
7
|
+
type TEntry = typeof import('../../../../../../app/api/archives/sessions/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
|
+
instant?: InstantConfigForTypeCheckInternal
|
|
25
|
+
prefetch?: Prefetch
|
|
26
|
+
unstable_dynamicStaleTime?: number
|
|
27
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
28
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
29
|
+
dynamicParams?: boolean
|
|
30
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
31
|
+
/** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
|
|
32
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
33
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
34
|
+
maxDuration?: number
|
|
35
|
+
|
|
36
|
+
}, TEntry, ''>>()
|
|
37
|
+
|
|
38
|
+
type RouteContext = { params: Promise<SegmentParams> }
|
|
39
|
+
// Check the prop type of the entry function
|
|
40
|
+
if ('GET' in entry) {
|
|
41
|
+
checkFields<
|
|
42
|
+
Diff<
|
|
43
|
+
ParamCheck<Request | NextRequest>,
|
|
44
|
+
{
|
|
45
|
+
__tag__: 'GET'
|
|
46
|
+
__param_position__: 'first'
|
|
47
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
48
|
+
},
|
|
49
|
+
'GET'
|
|
50
|
+
>
|
|
51
|
+
>()
|
|
52
|
+
checkFields<
|
|
53
|
+
Diff<
|
|
54
|
+
ParamCheck<RouteContext>,
|
|
55
|
+
{
|
|
56
|
+
__tag__: 'GET'
|
|
57
|
+
__param_position__: 'second'
|
|
58
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
59
|
+
},
|
|
60
|
+
'GET'
|
|
61
|
+
>
|
|
62
|
+
>()
|
|
63
|
+
|
|
64
|
+
checkFields<
|
|
65
|
+
Diff<
|
|
66
|
+
{
|
|
67
|
+
__tag__: 'GET',
|
|
68
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
__tag__: 'GET',
|
|
72
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
73
|
+
},
|
|
74
|
+
'GET'
|
|
75
|
+
>
|
|
76
|
+
>()
|
|
77
|
+
}
|
|
78
|
+
// Check the prop type of the entry function
|
|
79
|
+
if ('HEAD' in entry) {
|
|
80
|
+
checkFields<
|
|
81
|
+
Diff<
|
|
82
|
+
ParamCheck<Request | NextRequest>,
|
|
83
|
+
{
|
|
84
|
+
__tag__: 'HEAD'
|
|
85
|
+
__param_position__: 'first'
|
|
86
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
87
|
+
},
|
|
88
|
+
'HEAD'
|
|
89
|
+
>
|
|
90
|
+
>()
|
|
91
|
+
checkFields<
|
|
92
|
+
Diff<
|
|
93
|
+
ParamCheck<RouteContext>,
|
|
94
|
+
{
|
|
95
|
+
__tag__: 'HEAD'
|
|
96
|
+
__param_position__: 'second'
|
|
97
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
98
|
+
},
|
|
99
|
+
'HEAD'
|
|
100
|
+
>
|
|
101
|
+
>()
|
|
102
|
+
|
|
103
|
+
checkFields<
|
|
104
|
+
Diff<
|
|
105
|
+
{
|
|
106
|
+
__tag__: 'HEAD',
|
|
107
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
__tag__: 'HEAD',
|
|
111
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
112
|
+
},
|
|
113
|
+
'HEAD'
|
|
114
|
+
>
|
|
115
|
+
>()
|
|
116
|
+
}
|
|
117
|
+
// Check the prop type of the entry function
|
|
118
|
+
if ('OPTIONS' in entry) {
|
|
119
|
+
checkFields<
|
|
120
|
+
Diff<
|
|
121
|
+
ParamCheck<Request | NextRequest>,
|
|
122
|
+
{
|
|
123
|
+
__tag__: 'OPTIONS'
|
|
124
|
+
__param_position__: 'first'
|
|
125
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
126
|
+
},
|
|
127
|
+
'OPTIONS'
|
|
128
|
+
>
|
|
129
|
+
>()
|
|
130
|
+
checkFields<
|
|
131
|
+
Diff<
|
|
132
|
+
ParamCheck<RouteContext>,
|
|
133
|
+
{
|
|
134
|
+
__tag__: 'OPTIONS'
|
|
135
|
+
__param_position__: 'second'
|
|
136
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
137
|
+
},
|
|
138
|
+
'OPTIONS'
|
|
139
|
+
>
|
|
140
|
+
>()
|
|
141
|
+
|
|
142
|
+
checkFields<
|
|
143
|
+
Diff<
|
|
144
|
+
{
|
|
145
|
+
__tag__: 'OPTIONS',
|
|
146
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
__tag__: 'OPTIONS',
|
|
150
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
151
|
+
},
|
|
152
|
+
'OPTIONS'
|
|
153
|
+
>
|
|
154
|
+
>()
|
|
155
|
+
}
|
|
156
|
+
// Check the prop type of the entry function
|
|
157
|
+
if ('POST' in entry) {
|
|
158
|
+
checkFields<
|
|
159
|
+
Diff<
|
|
160
|
+
ParamCheck<Request | NextRequest>,
|
|
161
|
+
{
|
|
162
|
+
__tag__: 'POST'
|
|
163
|
+
__param_position__: 'first'
|
|
164
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
165
|
+
},
|
|
166
|
+
'POST'
|
|
167
|
+
>
|
|
168
|
+
>()
|
|
169
|
+
checkFields<
|
|
170
|
+
Diff<
|
|
171
|
+
ParamCheck<RouteContext>,
|
|
172
|
+
{
|
|
173
|
+
__tag__: 'POST'
|
|
174
|
+
__param_position__: 'second'
|
|
175
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
176
|
+
},
|
|
177
|
+
'POST'
|
|
178
|
+
>
|
|
179
|
+
>()
|
|
180
|
+
|
|
181
|
+
checkFields<
|
|
182
|
+
Diff<
|
|
183
|
+
{
|
|
184
|
+
__tag__: 'POST',
|
|
185
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
__tag__: 'POST',
|
|
189
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
190
|
+
},
|
|
191
|
+
'POST'
|
|
192
|
+
>
|
|
193
|
+
>()
|
|
194
|
+
}
|
|
195
|
+
// Check the prop type of the entry function
|
|
196
|
+
if ('PUT' in entry) {
|
|
197
|
+
checkFields<
|
|
198
|
+
Diff<
|
|
199
|
+
ParamCheck<Request | NextRequest>,
|
|
200
|
+
{
|
|
201
|
+
__tag__: 'PUT'
|
|
202
|
+
__param_position__: 'first'
|
|
203
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
204
|
+
},
|
|
205
|
+
'PUT'
|
|
206
|
+
>
|
|
207
|
+
>()
|
|
208
|
+
checkFields<
|
|
209
|
+
Diff<
|
|
210
|
+
ParamCheck<RouteContext>,
|
|
211
|
+
{
|
|
212
|
+
__tag__: 'PUT'
|
|
213
|
+
__param_position__: 'second'
|
|
214
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
215
|
+
},
|
|
216
|
+
'PUT'
|
|
217
|
+
>
|
|
218
|
+
>()
|
|
219
|
+
|
|
220
|
+
checkFields<
|
|
221
|
+
Diff<
|
|
222
|
+
{
|
|
223
|
+
__tag__: 'PUT',
|
|
224
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
__tag__: 'PUT',
|
|
228
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
229
|
+
},
|
|
230
|
+
'PUT'
|
|
231
|
+
>
|
|
232
|
+
>()
|
|
233
|
+
}
|
|
234
|
+
// Check the prop type of the entry function
|
|
235
|
+
if ('DELETE' in entry) {
|
|
236
|
+
checkFields<
|
|
237
|
+
Diff<
|
|
238
|
+
ParamCheck<Request | NextRequest>,
|
|
239
|
+
{
|
|
240
|
+
__tag__: 'DELETE'
|
|
241
|
+
__param_position__: 'first'
|
|
242
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
243
|
+
},
|
|
244
|
+
'DELETE'
|
|
245
|
+
>
|
|
246
|
+
>()
|
|
247
|
+
checkFields<
|
|
248
|
+
Diff<
|
|
249
|
+
ParamCheck<RouteContext>,
|
|
250
|
+
{
|
|
251
|
+
__tag__: 'DELETE'
|
|
252
|
+
__param_position__: 'second'
|
|
253
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
254
|
+
},
|
|
255
|
+
'DELETE'
|
|
256
|
+
>
|
|
257
|
+
>()
|
|
258
|
+
|
|
259
|
+
checkFields<
|
|
260
|
+
Diff<
|
|
261
|
+
{
|
|
262
|
+
__tag__: 'DELETE',
|
|
263
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
__tag__: 'DELETE',
|
|
267
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
268
|
+
},
|
|
269
|
+
'DELETE'
|
|
270
|
+
>
|
|
271
|
+
>()
|
|
272
|
+
}
|
|
273
|
+
// Check the prop type of the entry function
|
|
274
|
+
if ('PATCH' in entry) {
|
|
275
|
+
checkFields<
|
|
276
|
+
Diff<
|
|
277
|
+
ParamCheck<Request | NextRequest>,
|
|
278
|
+
{
|
|
279
|
+
__tag__: 'PATCH'
|
|
280
|
+
__param_position__: 'first'
|
|
281
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
282
|
+
},
|
|
283
|
+
'PATCH'
|
|
284
|
+
>
|
|
285
|
+
>()
|
|
286
|
+
checkFields<
|
|
287
|
+
Diff<
|
|
288
|
+
ParamCheck<RouteContext>,
|
|
289
|
+
{
|
|
290
|
+
__tag__: 'PATCH'
|
|
291
|
+
__param_position__: 'second'
|
|
292
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
293
|
+
},
|
|
294
|
+
'PATCH'
|
|
295
|
+
>
|
|
296
|
+
>()
|
|
297
|
+
|
|
298
|
+
checkFields<
|
|
299
|
+
Diff<
|
|
300
|
+
{
|
|
301
|
+
__tag__: 'PATCH',
|
|
302
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
__tag__: 'PATCH',
|
|
306
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
307
|
+
},
|
|
308
|
+
'PATCH'
|
|
309
|
+
>
|
|
310
|
+
>()
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
314
|
+
if ('generateStaticParams' in entry) {
|
|
315
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
316
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface PageProps {
|
|
320
|
+
params?: Promise<SegmentParams>
|
|
321
|
+
searchParams?: Promise<any>
|
|
322
|
+
}
|
|
323
|
+
export interface LayoutProps {
|
|
324
|
+
children?: React.ReactNode
|
|
325
|
+
|
|
326
|
+
params?: Promise<SegmentParams>
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// =============
|
|
330
|
+
// Utility types
|
|
331
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
332
|
+
|
|
333
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
334
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
335
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
336
|
+
|
|
337
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
338
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
339
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
340
|
+
|
|
341
|
+
type ParamCheck<T> = {
|
|
342
|
+
__tag__: string
|
|
343
|
+
__param_position__: string
|
|
344
|
+
__param_type__: T
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
348
|
+
|
|
349
|
+
// https://github.com/sindresorhus/type-fest
|
|
350
|
+
type Numeric = number | bigint
|
|
351
|
+
type Zero = 0 | 0n
|
|
352
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
353
|
+
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"
|
|
5
|
-
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/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/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/pins" | "/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]/state" | "/api/sessions/search" | "/api/skills" | "/api/skills/check" | "/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"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/archives" | "/api/archives/sessions" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/pins" | "/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]/state" | "/api/sessions/search" | "/api/skills" | "/api/skills/check" | "/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"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -19,6 +19,8 @@ interface ParamMap {
|
|
|
19
19
|
"/api/agent/new": {}
|
|
20
20
|
"/api/agent/running": {}
|
|
21
21
|
"/api/app-update": {}
|
|
22
|
+
"/api/archives": {}
|
|
23
|
+
"/api/archives/sessions": {}
|
|
22
24
|
"/api/auth/api-key/[provider]": { "provider": string; }
|
|
23
25
|
"/api/auth/login/[provider]": { "provider": string; }
|
|
24
26
|
"/api/auth/logout/[provider]": { "provider": string; }
|
package/.next/types/validator.ts
CHANGED
|
@@ -128,6 +128,24 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
128
128
|
type __Unused = __Check
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
// Validate ../../app/api/archives/route.ts
|
|
132
|
+
{
|
|
133
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/archives">> = Specific
|
|
134
|
+
const handler = {} as typeof import("../../app/api/archives/route.js")
|
|
135
|
+
type __Check = __IsExpected<typeof handler>
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
type __Unused = __Check
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Validate ../../app/api/archives/sessions/route.ts
|
|
141
|
+
{
|
|
142
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/archives/sessions">> = Specific
|
|
143
|
+
const handler = {} as typeof import("../../app/api/archives/sessions/route.js")
|
|
144
|
+
type __Check = __IsExpected<typeof handler>
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
type __Unused = __Check
|
|
147
|
+
}
|
|
148
|
+
|
|
131
149
|
// Validate ../../app/api/auth/api-key/[provider]/route.ts
|
|
132
150
|
{
|
|
133
151
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/auth/api-key/[provider]">> = Specific
|
package/README.ja.md
CHANGED
|
@@ -1,134 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @pricening/pi-web
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This repository is a **personal fork** of [agegr/pi-web](https://github.com/agegr/pi-web).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Please read:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- [README.md](./README.md) (English)
|
|
8
|
+
- [README.zh-CN.md](./README.zh-CN.md) (简体中文)
|
|
9
|
+
- Maintenance rules: [docs/FORK.md](./docs/FORK.md)
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- **セッションワークスペース**:プロジェクトごとに会話を閲覧、再開、名前変更、エクスポート、削除し、実行状態、コンテキスト使用量、コスト、コンパクション情報を確認できます。
|
|
12
|
-
- **2 種類の分岐**:**New session** は以前のメッセージから独立したセッションファイルを作成し、**Edit from here** は現在のセッション内にブランチを作成します。
|
|
13
|
-
- **プロジェクトファイルツール**:ファイルの閲覧とアップロード、Git Diff の確認、ソース、Markdown、画像、音声、PDF、DOCX のプレビューに対応し、変更時は自動更新されます。
|
|
14
|
-
- **Git worktree**:同じリポジトリのセッションをまとめたまま、サイドバーからチェックアウトを切り替えられます。
|
|
15
|
-
- **Web での設定**:Pi Web を離れずに、Provider のログインと API Key、モデル、モデルテスト、プラグインパッケージ、スキルを管理できます。
|
|
16
|
-
- **英語、簡体字中国語、繁体字中国語の UI**:初回はブラウザーの言語に従い、トップバーから言語を切り替えられます。
|
|
17
|
-
|
|
18
|
-
## クイックスタート
|
|
19
|
-
|
|
20
|
-
Pi Web には Node.js 22.19.0 以降が必要です。`node --version` でバージョンを確認してから、次を実行します:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npx @agegr/pi-web@latest
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
サーバーの準備が整うと、CLI はブラウザーを自動的に開こうとします。開かない場合は [http://127.0.0.1:30141](http://127.0.0.1:30141) にアクセスしてください。Pi Web はデフォルトで `127.0.0.1` のみをリッスンします。
|
|
27
|
-
|
|
28
|
-
モデル Provider が未設定の場合は、**Models** パネルを開いてログインするか API Key を追加してください。
|
|
29
|
-
|
|
30
|
-
`pi-web` コマンドをグローバルにインストールする場合:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm install -g @agegr/pi-web@latest
|
|
34
|
-
pi-web
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
更新時は、実行中のプロセスを `Ctrl+C` で停止してから同じインストールコマンドを再実行します。アンインストールするには `npm uninstall -g @agegr/pi-web` を実行します。
|
|
38
|
-
|
|
39
|
-
## 設定
|
|
40
|
-
|
|
41
|
-
ポートとホスト名では、コマンドラインオプションが対応する環境変数より優先されます。`--no-open` と `PI_WEB_NO_OPEN=1` は、どちらを指定してもブラウザーの自動起動が無効になります。`pi-web --help`(または `-h`)で起動オプションを表示して終了します。未知のオプションはエラーで終了します。
|
|
42
|
-
|
|
43
|
-
| オプションまたは環境変数 | 用途 | デフォルト |
|
|
44
|
-
| --- | --- | --- |
|
|
45
|
-
| `--help`、`-h` | 起動オプションを表示して終了 | — |
|
|
46
|
-
| `--port <port>`、`-p <port>`、または `PORT` | サーバーポート | `30141` |
|
|
47
|
-
| `--hostname <host>`、`-H <host>`、または `PI_WEB_HOSTNAME` | バインドするホスト名 | `127.0.0.1` |
|
|
48
|
-
| `--no-open` または `PI_WEB_NO_OPEN=1` | ブラウザーを自動的に開かない | 自動的に開く |
|
|
49
|
-
| `PI_WEB_ALLOWED_HOSTS` | 追加で許可するプロキシまたはカスタムホスト名。複数指定はカンマ区切りで完全一致 | 未設定 |
|
|
50
|
-
| `PI_WEB_PASSWORD` | ブラウザーのパスワードログインを有効化。API はユーザー名 `pi` の Basic Auth も利用可能 | 認証なし |
|
|
51
|
-
|
|
52
|
-
例:
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
pi-web --help
|
|
56
|
-
pi-web -p 8080 -H 0.0.0.0 --no-open
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### リモートアクセス
|
|
60
|
-
|
|
61
|
-
ループバック以外のアドレスにバインドすると、高い権限の操作を実行できるエージェントがネットワークに公開されます。信頼できる LAN で使用する場合も、十分に長いランダムなパスワードを設定してください:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
PI_WEB_PASSWORD='十分に長いランダムなパスワード' pi-web --hostname 0.0.0.0
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
パスワード認証は接続を暗号化しません。平文 HTTP で Pi Web をインターネットに公開せず、信頼できるリバースプロキシによる HTTPS または信頼できる VPN を使用してください。リバースプロキシが外部ホスト名を転送する場合は、その名前を完全一致で `PI_WEB_ALLOWED_HOSTS` に追加します。この許可リストは Pi Web のバインド先を変更しません。
|
|
68
|
-
|
|
69
|
-
### HTTP プロキシ
|
|
70
|
-
|
|
71
|
-
サーバー側のモデルリクエストと API リクエストは、標準の `HTTP_PROXY`、`HTTPS_PROXY`、`NO_PROXY` 環境変数を使用します。
|
|
72
|
-
|
|
73
|
-
macOS または Linux:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
HTTP_PROXY=http://127.0.0.1:7890 \
|
|
77
|
-
HTTPS_PROXY=http://127.0.0.1:7890 \
|
|
78
|
-
NO_PROXY=localhost,127.0.0.1 \
|
|
79
|
-
npx @agegr/pi-web@latest
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Windows PowerShell:
|
|
83
|
-
|
|
84
|
-
```powershell
|
|
85
|
-
$env:HTTP_PROXY = "http://127.0.0.1:7890"
|
|
86
|
-
$env:HTTPS_PROXY = "http://127.0.0.1:7890"
|
|
87
|
-
$env:NO_PROXY = "localhost,127.0.0.1"
|
|
88
|
-
npx @agegr/pi-web@latest
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## 注意事項
|
|
92
|
-
|
|
93
|
-
- **エージェントデータ**:Pi Web はデフォルトで `~/.pi/agent` の pi データを読み込みます。セッションファイルは `sessions/<encoded-cwd>/<timestamp>_<uuid>.jsonl` にあります。別の pi エージェントディレクトリを使用するには `PI_CODING_AGENT_DIR` を設定してください。
|
|
94
|
-
- **ファイルシステムへのアクセス**:Pi Web はエージェントデータディレクトリと、セッションに記録された作業ディレクトリを読み取れる必要があります。既存の pi セッションを共有する場合は、pi と同じファイルシステム環境で Pi Web を実行してください。
|
|
95
|
-
- **共有設定**:Models パネルは pi のモデル、設定、認証情報ストレージを使用するため、変更は両方のインターフェースに反映されます。
|
|
96
|
-
- **ファイルアクセスの範囲**:ファイルブラウザーは、Pi Web で選択した作業ディレクトリと、既知のプロジェクトまたはセッションルートに限定されます。汎用のファイルシステムブラウザーではありません。
|
|
97
|
-
- **Git worktree**:スイッチャーの表示条件、worktree の作成、削除時の動作については [Worktrees in Pi Web](./docs/worktrees.md) を参照してください。
|
|
98
|
-
|
|
99
|
-
## 開発
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
npm install
|
|
103
|
-
npm run dev
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
開発サーバーは [http://127.0.0.1:30141](http://127.0.0.1:30141) で動作します。一般的なチェックは次のコマンドで実行します:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
npm test
|
|
110
|
-
node_modules/.bin/tsc --noEmit
|
|
111
|
-
npm run lint
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
通常の開発中は `next build` または `npm run build` を実行しないでください。`.next/` に書き込まれ、開発サーバーに影響する可能性があります。ビルドはリリース作業時にのみ実行してください。
|
|
115
|
-
|
|
116
|
-
コントリビューター向けガイド:[Internationalization](./docs/i18n.md) と [Release process](./docs/release.md)。
|
|
117
|
-
|
|
118
|
-
## リポジトリ構成
|
|
119
|
-
|
|
120
|
-
```text
|
|
121
|
-
app/ Next.js UI と API ルート
|
|
122
|
-
components/ React UI コンポーネント
|
|
123
|
-
hooks/ クライアントの状態と操作に関する hooks
|
|
124
|
-
lib/ セッション、エージェント、モデル、ファイル、Git、セキュリティのロジック
|
|
125
|
-
public/ 静的アセットと PWA ファイル
|
|
126
|
-
bin/ npm CLI エントリポイントと起動オプションの解析
|
|
127
|
-
docs/ ユーザーおよびコントリビューター向けの個別ガイド
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
アーキテクチャの説明と詳細なファイルマップについては [AGENTS.md](./AGENTS.md) を参照してください。
|
|
131
|
-
|
|
132
|
-
## ライセンス
|
|
133
|
-
|
|
134
|
-
[MIT](./LICENSE)
|
|
11
|
+
npm package: **`@pricening/pi-web`** (not `@agegr/pi-web`).
|