cuelo 0.10.239 → 0.10.241
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 +47 -46
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +6 -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/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- 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/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/agent/[id]/account/route.js +1 -1
- package/.next/server/app/api/agent/[id]/account/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/computer-takeover/route.js +1 -1
- package/.next/server/app/api/agent/[id]/computer-takeover/route.js.nft.json +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]/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js.nft.json +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/running/route.js +1 -1
- package/.next/server/app/api/agent/running/route.js.nft.json +1 -1
- package/.next/server/app/api/attachment-settings/route.js +1 -1
- package/.next/server/app/api/attachments/[id]/transcription/route.js +2 -2
- package/.next/server/app/api/attachments/draft/route.js +1 -1
- package/.next/server/app/api/attachments/route.js +2 -2
- package/.next/server/app/api/auth/all-providers/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/character-mode/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/display-settings/route.js +1 -1
- package/.next/server/app/api/document-text/route.js +2 -2
- package/.next/server/app/api/experiments/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/github/projects/route.js +1 -1
- package/.next/server/app/api/gpt6/handles/route.js +1 -1
- package/.next/server/app/api/gpt6/handles/route.js.nft.json +1 -1
- package/.next/server/app/api/gpt6/reply/route.js +1 -1
- package/.next/server/app/api/gpt6/reply/route.js.nft.json +1 -1
- package/.next/server/app/api/gpt6/token/route.js +1 -1
- package/.next/server/app/api/gpt6/token/route.js.nft.json +1 -1
- package/.next/server/app/api/gpt6/web6-session/route.js +1 -1
- package/.next/server/app/api/gpt6/web6-session/route.js.nft.json +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/live/call/[callId]/route.js +1 -1
- package/.next/server/app/api/live/call/[callId]/route.js.nft.json +1 -1
- package/.next/server/app/api/live/draft-secret/route.js +1 -1
- package/.next/server/app/api/live/draft-secret/route.js.nft.json +1 -1
- package/.next/server/app/api/live/events/route.js +2 -2
- package/.next/server/app/api/live/events/route.js.nft.json +1 -1
- package/.next/server/app/api/live/interpret/route.js +1 -1
- package/.next/server/app/api/live/interpret/route.js.nft.json +1 -1
- package/.next/server/app/api/live/interpret/text/route.js +2 -2
- package/.next/server/app/api/live/interpret/text/route.js.nft.json +1 -1
- package/.next/server/app/api/live/offer/route.js +1 -1
- package/.next/server/app/api/live/offer/route.js.nft.json +1 -1
- package/.next/server/app/api/live/voices/route.js +1 -1
- package/.next/server/app/api/live/voices/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +1 -1
- package/.next/server/app/api/model-roles/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 +2 -2
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/office-characters/[...path]/route.js +2 -2
- package/.next/server/app/api/plugin-lab/[id]/event/route.js +1 -1
- package/.next/server/app/api/plugin-lab/[id]/panel/route.js +1 -1
- package/.next/server/app/api/plugin-lab/[id]/route.js +1 -1
- package/.next/server/app/api/plugin-lab/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/project-docs/route.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/projects/route.js +1 -1
- package/.next/server/app/api/repo-sync/route.js +1 -0
- package/.next/server/app/api/repo-sync/route.js.nft.json +1 -0
- package/.next/server/app/api/repo-sync/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/routines/[id]/posts/[file]/route.js +1 -1
- package/.next/server/app/api/routines/[id]/route.js +1 -1
- package/.next/server/app/api/routines/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/routines/[id]/run/route.js +1 -1
- package/.next/server/app/api/routines/[id]/run/route.js.nft.json +1 -1
- package/.next/server/app/api/routines/route.js +1 -1
- package/.next/server/app/api/routines/route.js.nft.json +1 -1
- package/.next/server/app/api/runs/[runId]/prelude/route.js +1 -1
- package/.next/server/app/api/runs/[runId]/prelude/route.js.nft.json +1 -1
- package/.next/server/app/api/runs/[runId]/route.js +1 -1
- package/.next/server/app/api/runs/[runId]/turns/route.js +1 -1
- package/.next/server/app/api/runs/route.js +1 -1
- package/.next/server/app/api/saved-prompts/[id]/route.js +1 -1
- package/.next/server/app/api/saved-prompts/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +1 -1
- 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]/context/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/memory-trace/route.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]/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/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/settings/route.js +1 -1
- package/.next/server/app/api/sidecars/[service]/[...path]/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/install/route.js +2 -2
- package/.next/server/app/api/skills/route.js +2 -2
- 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/eta/route.js +1 -1
- package/.next/server/app/api/theme/route.js +1 -1
- package/.next/server/app/api/tool-image/route.js +1 -1
- package/.next/server/app/api/tool-image/route.js.nft.json +1 -1
- package/.next/server/app/api/update-maintenance/route.js +2 -2
- package/.next/server/app/api/update-maintenance/route.js.nft.json +1 -1
- package/.next/server/app/api/updates/apply/route.js +2 -2
- package/.next/server/app/api/updates/route.js +1 -1
- package/.next/server/app/api/upkeep/check/route.js +1 -1
- package/.next/server/app/api/upkeep/morning/route.js +2 -2
- package/.next/server/app/api/upkeep/morning/route.js.nft.json +1 -1
- package/.next/server/app/api/upkeep/nightly/export/route.js +1 -1
- package/.next/server/app/api/upkeep/nightly/result/route.js +3 -3
- package/.next/server/app/api/upkeep/nightly/result/route.js.nft.json +1 -1
- package/.next/server/app/api/upkeep/nightly/route.js +1 -1
- package/.next/server/app/api/upkeep/nightly/route.js.nft.json +1 -1
- package/.next/server/app/api/upkeep/route.js +1 -1
- package/.next/server/app/api/web-access/recovery/route.js +1 -1
- package/.next/server/app/api/web-access/route.js +1 -1
- package/.next/server/app/api/web6/consults/route.js +1 -1
- package/.next/server/app/api/worktrees/route.js +1 -1
- package/.next/server/app/api/worktrees/route.js.nft.json +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 -6
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +6 -6
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +3 -3
- package/.next/server/app/index.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/page.js +24 -24
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover/page.js +2 -2
- package/.next/server/app/recover/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover.html +1 -1
- package/.next/server/app/recover.rsc +3 -3
- package/.next/server/app/recover.segments/_full.segment.rsc +3 -3
- package/.next/server/app/recover.segments/_head.segment.rsc +1 -1
- package/.next/server/app/recover.segments/_index.segment.rsc +3 -3
- package/.next/server/app/recover.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/recover.segments/recover/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/recover.segments/recover.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +47 -46
- package/.next/server/chunks/2332.js +5 -5
- package/.next/server/chunks/402.js +1 -1
- package/.next/server/chunks/5228.js +1 -1
- package/.next/server/chunks/5833.js +5 -3
- package/.next/server/chunks/7704.js +9 -7
- package/.next/server/chunks/8685.js +24 -0
- package/.next/server/chunks/9108.js +1 -1
- package/.next/server/chunks/9259.js +1 -0
- package/.next/server/chunks/9280.js +3 -3
- package/.next/server/chunks/9467.js +10 -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/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/EidlQD047yzxLpcalab34/_buildManifest.js +1 -0
- package/.next/static/chunks/app/_global-error/page-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/account/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/computer-takeover/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/attachment-settings/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/attachments/[id]/transcription/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/attachments/draft/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/attachments/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/character-mode/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/display-settings/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/document-text/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/experiments/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/github/projects/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/gpt6/handles/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/gpt6/reply/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/gpt6/token/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/gpt6/web6-session/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/home/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/live/call/[callId]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/live/draft-secret/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/live/events/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/live/interpret/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/live/interpret/text/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/live/offer/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/live/voices/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/model-roles/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/models/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/office-characters/[...path]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/plugin-lab/[id]/event/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/plugin-lab/[id]/panel/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/plugin-lab/[id]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/plugin-lab/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/project-docs/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/projects/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/repo-sync/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/routines/[id]/posts/[file]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/routines/[id]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/routines/[id]/run/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/routines/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/runs/[runId]/prelude/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/runs/[runId]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/runs/[runId]/turns/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/runs/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/saved-prompts/[id]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/saved-prompts/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/memory-trace/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/settings/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/sidecars/[service]/[...path]/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/skills/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/subagents/eta/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/theme/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/tool-image/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/update-maintenance/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/updates/apply/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/updates/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/upkeep/check/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/upkeep/morning/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/upkeep/nightly/export/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/upkeep/nightly/result/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/upkeep/nightly/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/upkeep/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/web-access/recovery/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/web-access/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/web6/consults/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/{layout-12f1de55f5b80830.js → layout-bbcb1f4e74a51b3e.js} +1 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/app/{page-7b52e70417b66d3d.js → page-030516e04b02e718.js} +21 -21
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-91e356c9a2f80cea.js +1 -0
- package/.next/static/chunks/{webpack-70c61f4a63fa45b6.js → webpack-10169bd8f6eebda8.js} +1 -1
- package/.next/static/css/937d2ab190e645fc.css +1 -0
- package/.next/static/css/{97d9803fc236622b.css → cb86d2bd660db9a9.css} +1 -1
- package/.next/trace +112 -112
- package/.next/trace-build +1 -1
- package/.next/types/app/api/repo-sync/route.ts +351 -0
- package/.next/types/routes.d.ts +2 -1
- package/.next/types/validator.ts +9 -0
- package/README.md +8 -0
- package/Tools/CUELO_Setup/files/native-runtime-patch.js +1 -1
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/routine-model/plugin.json +7 -0
- package/Tools/OMP_Global_Config/agent/cuelo-plugins/routine-model/policy.ts +76 -0
- package/Tools/OMP_Global_Config/agent/extensions/gitnexus-autosync.ts +6 -3
- package/package.json +1 -1
- package/.next/server/chunks/2144.js +0 -24
- package/.next/server/chunks/6429.js +0 -10
- package/.next/static/c_KVWexN76BSqMVU9zH1H/_buildManifest.js +0 -1
- package/.next/static/chunks/app/_global-error/page-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/account/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/computer-takeover/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/attachment-settings/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/attachments/[id]/transcription/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/attachments/draft/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/attachments/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/character-mode/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/display-settings/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/document-text/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/experiments/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/github/projects/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/gpt6/handles/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/gpt6/reply/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/gpt6/token/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/gpt6/web6-session/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/home/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/live/call/[callId]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/live/draft-secret/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/live/events/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/live/interpret/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/live/interpret/text/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/live/offer/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/live/voices/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/mcp/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/model-roles/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/models/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/office-characters/[...path]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/plugin-lab/[id]/event/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/plugin-lab/[id]/panel/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/plugin-lab/[id]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/plugin-lab/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/project-docs/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/projects/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/routines/[id]/posts/[file]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/routines/[id]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/routines/[id]/run/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/routines/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/runs/[runId]/prelude/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/runs/[runId]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/runs/[runId]/turns/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/runs/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/saved-prompts/[id]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/saved-prompts/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/memory-trace/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sessions/search/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/settings/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/sidecars/[service]/[...path]/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/skills/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/subagents/eta/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/theme/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/tool-image/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/update-maintenance/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/updates/apply/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/updates/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/upkeep/check/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/upkeep/morning/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/upkeep/nightly/export/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/upkeep/nightly/result/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/upkeep/nightly/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/upkeep/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/web-access/recovery/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/web-access/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/web6/consults/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-2488f91be770e174.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-2488f91be770e174.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-2488f91be770e174.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-2488f91be770e174.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2488f91be770e174.js +0 -1
- package/.next/static/css/b17decbff4182973.css +0 -1
- /package/.next/static/{c_KVWexN76BSqMVU9zH1H → EidlQD047yzxLpcalab34}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=1567,a.ids=[1567],a.modules={84:a=>{a.exports=import("@oh-my-pi/omp-stats/aggregator")},261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},
|
|
1
|
+
"use strict";(()=>{var a={};a.id=1567,a.ids=[1567],a.modules={84:a=>{a.exports=import("@oh-my-pi/omp-stats/aggregator")},261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},38790:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>j,dynamic:()=>k});var e=c(23211),f=c(25738),g=c(29959),h=c(66544),i=a([f,g]);[f,g]=i.then?(await i)():i;let k="force-dynamic";async function j(a,{params:b}){if(!(0,h.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});try{let{sessionId:a,entryId:c}=(0,f._G)((await b).runId);return e.NextResponse.json((0,f.XJ)(a,c))}catch(b){let a;return a=b instanceof f.Oc?b.status:500,e.NextResponse.json({error:(0,g.LV)(b)},{status:a})}}d()}catch(a){d(a)}})},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47043:a=>{a.exports=import("@oh-my-pi/omp-stats/db")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64978:a=>{a.exports=import("bun:sqlite")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77037:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/session-dump-format")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},98140:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(38790),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/runs/[runId]/route",pathname:"/api/runs/[runId]",filename:"route",bundlePath:"app/api/runs/[runId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/runs/[runId]/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/runs/[runId]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,1065,9959],()=>b(b.s=98140));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=6158,a.ids=[6158],a.modules={84:a=>{a.exports=import("@oh-my-pi/omp-stats/aggregator")},261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13241:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,dynamic:()=>m});var e=c(23211),f=c(25738),g=c(29959),h=c(14362),i=c(66544),j=a([f,g]);[f,g]=j.then?(await j)():j;let m="force-dynamic",n=/^[\w-]{1,128}$/;function k(a,b){let c=null===a?NaN:Number.parseInt(a,10);return Number.isFinite(c)?c:b}async function l(a,{params:b}){if(!(0,i.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});try{let{sessionId:c,entryId:d}=(0,f._G)((await b).runId),i=new URL(a.url),j=i.searchParams.get("role")||"main",l=(0,f.Bj)(c,d),{file:m,window:o,roles:p}=(0,g.M6)(l,j),q=(0,g.CR)(m,o),r=i.searchParams.get("entry");if(null!==r){let a=i.searchParams.get("call");if(!n.test(r)||null!==a&&!n.test(a))throw new f.Oc("항목 id 형식이 올바르지 않습니다.",400);let b=(0,g.PB)(q,r,a);if(!b)throw new f.Oc("이 run에서 그 항목을 찾을 수 없습니다.",404);return e.NextResponse.json(b)}return e.NextResponse.json((0,g.Ve)(q.built,{runId:l.detail.runId,role:j,roles:p},k(i.searchParams.get("offset"),0),k(i.searchParams.get("limit"),h._M),"1"===i.searchParams.get("injectedOnly")))}catch(b){let a;return a=b instanceof f.Oc?b.status:500,e.NextResponse.json({error:(0,g.LV)(b)},{status:a})}}d()}catch(a){d(a)}})},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},
|
|
1
|
+
"use strict";(()=>{var a={};a.id=6158,a.ids=[6158],a.modules={84:a=>{a.exports=import("@oh-my-pi/omp-stats/aggregator")},261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13241:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,dynamic:()=>m});var e=c(23211),f=c(25738),g=c(29959),h=c(14362),i=c(66544),j=a([f,g]);[f,g]=j.then?(await j)():j;let m="force-dynamic",n=/^[\w-]{1,128}$/;function k(a,b){let c=null===a?NaN:Number.parseInt(a,10);return Number.isFinite(c)?c:b}async function l(a,{params:b}){if(!(0,i.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});try{let{sessionId:c,entryId:d}=(0,f._G)((await b).runId),i=new URL(a.url),j=i.searchParams.get("role")||"main",l=(0,f.Bj)(c,d),{file:m,window:o,roles:p}=(0,g.M6)(l,j),q=(0,g.CR)(m,o),r=i.searchParams.get("entry");if(null!==r){let a=i.searchParams.get("call");if(!n.test(r)||null!==a&&!n.test(a))throw new f.Oc("항목 id 형식이 올바르지 않습니다.",400);let b=(0,g.PB)(q,r,a);if(!b)throw new f.Oc("이 run에서 그 항목을 찾을 수 없습니다.",404);return e.NextResponse.json(b)}return e.NextResponse.json((0,g.Ve)(q.built,{runId:l.detail.runId,role:j,roles:p},k(i.searchParams.get("offset"),0),k(i.searchParams.get("limit"),h._M),"1"===i.searchParams.get("injectedOnly")))}catch(b){let a;return a=b instanceof f.Oc?b.status:500,e.NextResponse.json({error:(0,g.LV)(b)},{status:a})}}d()}catch(a){d(a)}})},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},38706:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(13241),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/runs/[runId]/turns/route",pathname:"/api/runs/[runId]/turns",filename:"route",bundlePath:"app/api/runs/[runId]/turns/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/runs/[runId]/turns/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/runs/[runId]/turns/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47043:a=>{a.exports=import("@oh-my-pi/omp-stats/db")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64978:a=>{a.exports=import("bun:sqlite")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77037:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/session-dump-format")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,1065,9959],()=>b(b.s=38706));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=1912,a.ids=[1912],a.modules={84:a=>{"use strict";a.exports=import("@oh-my-pi/omp-stats/aggregator")},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},
|
|
1
|
+
(()=>{var a={};a.id=1912,a.ids=[1912],a.modules={84:a=>{"use strict";a.exports=import("@oh-my-pi/omp-stats/aggregator")},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47043:a=>{"use strict";a.exports=import("@oh-my-pi/omp-stats/db")},48161:a=>{"use strict";a.exports=require("node:os")},53067:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>j,dynamic:()=>k});var e=c(23211),f=c(14362),g=c(25738),h=c(66544),i=a([g]);g=(i.then?(await i)():i)[0];let k="force-dynamic";async function j(a){if(!(0,h.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});try{let b=new URL(a.url).searchParams,c=b.get("sessionId")??"";if(!c.trim()||c.length>200)throw new g.Oc("sessionId가 필요합니다.",400);let d=Number.parseInt(b.get("limit")??"",10),h=Number.isFinite(d)?Math.min(Math.max(d,1),f.mP):f.BY;return await (0,g.Dq)(),e.NextResponse.json((0,g.v)(c,h))}catch(b){let a;return a=b instanceof g.Oc?b.status:500,e.NextResponse.json({error:b instanceof Error?b.message:String(b)},{status:a})}}d()}catch(a){d(a)}})},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64978:a=>{"use strict";a.exports=import("bun:sqlite")},68986:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(53067),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/runs/route",pathname:"/api/runs",filename:"route",bundlePath:"app/api/runs/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/runs/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/runs/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},73024:a=>{"use strict";a.exports=require("node:fs")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,1065],()=>b(b.s=68986));module.exports=c})();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(()=>{var a={};a.id=4997,a.ids=[4997],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8102:(a,b,c)=>{"use strict";c.d(b,{$:()=>g});var d=c(55511),e=c(29021),f=c(33873);function g(a,b){let c=(0,f.dirname)(a),g=(0,f.join)(c,`.${(0,f.basename)(a)}-${(0,d.randomUUID)()}.tmp`),h=!1;try{(0,e.writeFileSync)(g,b,{encoding:"utf8",flag:"wx",mode:384,flush:!0}),(0,e.renameSync)(g,a)}catch(a){throw h=!0,a}finally{try{(0,e.unlinkSync)(g)}catch(a){if("ENOENT"!==a.code&&!h)throw a}}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},24569:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Di:()=>l,GO:()=>q,dZ:()=>o,gu:()=>n});var e=c(55511),f=c(29021),g=c(33873),h=c(34069),i=c(8102),j=c(40553),k=a([h]);h=(k.then?(await k)():k)[0];let p="cuelo-saved-prompts.json";class q extends Error{}function l(a=(0,h.getAgentDir)()){let b;try{b=(0,f.readFileSync)((0,g.join)(a,p),"utf8")}catch(a){if("ENOENT"===a.code)return[];throw Error("Cannot read saved prompts",{cause:a})}try{let a=JSON.parse(b);if(a?.version!==1||!Array.isArray(a.prompts))throw Error("Invalid store");let c=new Set;for(let b of a.prompts){if(!b||"string"!=typeof b.id||!b.id||c.has(b.id)||"string"!=typeof b.title||"string"!=typeof b.body||"string"!=typeof b.createdAt||"string"!=typeof b.updatedAt)throw Error("Invalid entry");c.add(b.id)}return a.prompts}catch(a){throw Error("Saved prompts file is corrupt or unsupported; it was not changed",{cause:a})}}function m(a,b){(0,f.mkdirSync)(b,{recursive:!0}),(0,i.$)((0,g.join)(b,p),`${JSON.stringify({version:1,prompts:a},null,2)}
|
|
2
|
-
`)}function n(a,b=(0,h.getAgentDir)()){if("string"!=typeof a.body||!a.body.trim())throw new q("Prompt body is required");if(Buffer.byteLength(a.body,"utf8")>20480)throw new q("Prompt body exceeds 20 KB");if(void 0!==a.title&&"string"!=typeof a.title)throw new q("Prompt title must be text");let c=l(b),d=new Date().toISOString(),f={id:(0,e.randomUUID)(),title:(0,j.WL)("string"==typeof a.title&&a.title.trim()?a.title:a.body),body:a.body,createdAt:d,updatedAt:d};return m([...c,f],b),f}function o(a,b=(0,h.getAgentDir)()){let c=l(b),d=c.filter(b=>b.id!==a);return d.length!==c.length&&(m(d,b),!0)}d()}catch(a){d(a)}})},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34069:a=>{"use strict";a.exports=import("@oh-my-pi/pi-utils")},40553:(a,b,c)=>{"use strict";function d(a){return Array.from(a.trim().split(/\r?\n/,1)[0].trim()).slice(0,60).join("")}c.d(b,{WL:()=>d})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47608:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(79220),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/saved-prompts/[id]/route",pathname:"/api/saved-prompts/[id]",filename:"route",bundlePath:"app/api/saved-prompts/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/saved-prompts/[id]/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/saved-prompts/[id]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66544:(a,b,c)=>{"use strict";c.d(b,{E2:()=>k,EN:()=>j,e9:()=>i});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(){return[process.env.CUELO_HOSTNAME,...process.env.CUELO_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function h(a){try{return new URL(a).origin}catch{return null}}function i(a,b=g()){let c=a.headers.get("host"),h=c?f(c):null;return!!h&&(!!("localhost"===h||h.endsWith(".localhost")||(0,d.isIP)(h))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===h}))}function j(a,b=g()){return!!i(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!d)return!0;let e=(b=new URL(a.url),(c=a.headers.get("host"))?h(`${b.protocol}//${c}`):null);return null!==e&&h(d)===e}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},77030:a=>{"use strict";a.exports=require("node:net")},78335:()=>{},79220:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>i,dynamic:()=>k,runtime:()=>j});var e=c(23211),f=c(24569),g=c(66544),h=a([f]);f=(h.then?(await h)():h)[0];let j="nodejs",k="force-dynamic";async function i(a,b){if(!(0,g.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});let{id:c}=await b.params;try{if(!(0,f.dZ)(c))return e.NextResponse.json({error:"Saved prompt not found"},{status:404});return e.NextResponse.json({ok:!0},{headers:{"Cache-Control":"no-store"}})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:"Cannot delete prompt"},{status:500})}}d()}catch(a){d(a)}})},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=47608));module.exports=c})();
|
|
2
|
+
`)}function n(a,b=(0,h.getAgentDir)()){if("string"!=typeof a.body||!a.body.trim())throw new q("Prompt body is required");if(Buffer.byteLength(a.body,"utf8")>20480)throw new q("Prompt body exceeds 20 KB");if(void 0!==a.title&&"string"!=typeof a.title)throw new q("Prompt title must be text");let c=l(b),d=new Date().toISOString(),f={id:(0,e.randomUUID)(),title:(0,j.WL)("string"==typeof a.title&&a.title.trim()?a.title:a.body),body:a.body,createdAt:d,updatedAt:d};return m([...c,f],b),f}function o(a,b=(0,h.getAgentDir)()){let c=l(b),d=c.filter(b=>b.id!==a);return d.length!==c.length&&(m(d,b),!0)}d()}catch(a){d(a)}})},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34069:a=>{"use strict";a.exports=import("@oh-my-pi/pi-utils")},34212:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(79220),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/saved-prompts/[id]/route",pathname:"/api/saved-prompts/[id]",filename:"route",bundlePath:"app/api/saved-prompts/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/saved-prompts/[id]/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/saved-prompts/[id]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},40553:(a,b,c)=>{"use strict";function d(a){return Array.from(a.trim().split(/\r?\n/,1)[0].trim()).slice(0,60).join("")}c.d(b,{WL:()=>d})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66544:(a,b,c)=>{"use strict";c.d(b,{E2:()=>k,EN:()=>j,e9:()=>i});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(){return[process.env.CUELO_HOSTNAME,...process.env.CUELO_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function h(a){try{return new URL(a).origin}catch{return null}}function i(a,b=g()){let c=a.headers.get("host"),h=c?f(c):null;return!!h&&(!!("localhost"===h||h.endsWith(".localhost")||(0,d.isIP)(h))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===h}))}function j(a,b=g()){return!!i(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!d)return!0;let e=(b=new URL(a.url),(c=a.headers.get("host"))?h(`${b.protocol}//${c}`):null);return null!==e&&h(d)===e}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},77030:a=>{"use strict";a.exports=require("node:net")},78335:()=>{},79220:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>i,dynamic:()=>k,runtime:()=>j});var e=c(23211),f=c(24569),g=c(66544),h=a([f]);f=(h.then?(await h)():h)[0];let j="nodejs",k="force-dynamic";async function i(a,b){if(!(0,g.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});let{id:c}=await b.params;try{if(!(0,f.dZ)(c))return e.NextResponse.json({error:"Saved prompt not found"},{status:404});return e.NextResponse.json({ok:!0},{headers:{"Cache-Control":"no-store"}})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:"Cannot delete prompt"},{status:500})}}d()}catch(a){d(a)}})},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=34212));module.exports=c})();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(()=>{var a={};a.id=8605,a.ids=[8605],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8102:(a,b,c)=>{"use strict";c.d(b,{$:()=>g});var d=c(55511),e=c(29021),f=c(33873);function g(a,b){let c=(0,f.dirname)(a),g=(0,f.join)(c,`.${(0,f.basename)(a)}-${(0,d.randomUUID)()}.tmp`),h=!1;try{(0,e.writeFileSync)(g,b,{encoding:"utf8",flag:"wx",mode:384,flush:!0}),(0,e.renameSync)(g,a)}catch(a){throw h=!0,a}finally{try{(0,e.unlinkSync)(g)}catch(a){if("ENOENT"!==a.code&&!h)throw a}}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},24569:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Di:()=>l,GO:()=>q,dZ:()=>o,gu:()=>n});var e=c(55511),f=c(29021),g=c(33873),h=c(34069),i=c(8102),j=c(40553),k=a([h]);h=(k.then?(await k)():k)[0];let p="cuelo-saved-prompts.json";class q extends Error{}function l(a=(0,h.getAgentDir)()){let b;try{b=(0,f.readFileSync)((0,g.join)(a,p),"utf8")}catch(a){if("ENOENT"===a.code)return[];throw Error("Cannot read saved prompts",{cause:a})}try{let a=JSON.parse(b);if(a?.version!==1||!Array.isArray(a.prompts))throw Error("Invalid store");let c=new Set;for(let b of a.prompts){if(!b||"string"!=typeof b.id||!b.id||c.has(b.id)||"string"!=typeof b.title||"string"!=typeof b.body||"string"!=typeof b.createdAt||"string"!=typeof b.updatedAt)throw Error("Invalid entry");c.add(b.id)}return a.prompts}catch(a){throw Error("Saved prompts file is corrupt or unsupported; it was not changed",{cause:a})}}function m(a,b){(0,f.mkdirSync)(b,{recursive:!0}),(0,i.$)((0,g.join)(b,p),`${JSON.stringify({version:1,prompts:a},null,2)}
|
|
2
|
-
`)}function n(a,b=(0,h.getAgentDir)()){if("string"!=typeof a.body||!a.body.trim())throw new q("Prompt body is required");if(Buffer.byteLength(a.body,"utf8")>20480)throw new q("Prompt body exceeds 20 KB");if(void 0!==a.title&&"string"!=typeof a.title)throw new q("Prompt title must be text");let c=l(b),d=new Date().toISOString(),f={id:(0,e.randomUUID)(),title:(0,j.WL)("string"==typeof a.title&&a.title.trim()?a.title:a.body),body:a.body,createdAt:d,updatedAt:d};return m([...c,f],b),f}function o(a,b=(0,h.getAgentDir)()){let c=l(b),d=c.filter(b=>b.id!==a);return d.length!==c.length&&(m(d,b),!0)}d()}catch(a){d(a)}})},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34069:a=>{"use strict";a.exports=import("@oh-my-pi/pi-utils")},40553:(a,b,c)=>{"use strict";function d(a){return Array.from(a.trim().split(/\r?\n/,1)[0].trim()).slice(0,60).join("")}c.d(b,{WL:()=>d})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66544:(a,b,c)=>{"use strict";c.d(b,{E2:()=>k,EN:()=>j,e9:()=>i});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(){return[process.env.CUELO_HOSTNAME,...process.env.CUELO_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function h(a){try{return new URL(a).origin}catch{return null}}function i(a,b=g()){let c=a.headers.get("host"),h=c?f(c):null;return!!h&&(!!("localhost"===h||h.endsWith(".localhost")||(0,d.isIP)(h))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===h}))}function j(a,b=g()){return!!i(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!d)return!0;let e=(b=new URL(a.url),(c=a.headers.get("host"))?h(`${b.protocol}//${c}`):null);return null!==e&&h(d)===e}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},75720:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,POST:()=>j,dynamic:()=>l,runtime:()=>k});var e=c(23211),f=c(24569),g=c(66544),h=a([f]);f=(h.then?(await h)():h)[0];let k="nodejs",l="force-dynamic",m={"Cache-Control":"no-store"};async function i(a){if(!(0,g.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});try{return e.NextResponse.json({prompts:(0,f.Di)()},{headers:m})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:"Cannot load saved prompts"},{status:500,headers:m})}}async function j(a){let b;if(!(0,g.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});if(!(0,g.E2)(a))return e.NextResponse.json({error:"application/json body required"},{status:415});try{b=await a.json()}catch{return e.NextResponse.json({error:"Malformed JSON body"},{status:400})}if(!b||"object"!=typeof b||Array.isArray(b))return e.NextResponse.json({error:"Prompt body is required"},{status:400});try{let a=(0,f.gu)(b);return e.NextResponse.json({prompt:a},{status:201,headers:m})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:"Cannot save prompt"},{status:a instanceof f.GO?400:500,headers:m})}}d()}catch(a){d(a)}})},77030:a=>{"use strict";a.exports=require("node:net")},78335:()=>{},82044:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(75720),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/saved-prompts/route",pathname:"/api/saved-prompts",filename:"route",bundlePath:"app/api/saved-prompts/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/saved-prompts/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/saved-prompts/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=82044));module.exports=c})();
|
|
2
|
+
`)}function n(a,b=(0,h.getAgentDir)()){if("string"!=typeof a.body||!a.body.trim())throw new q("Prompt body is required");if(Buffer.byteLength(a.body,"utf8")>20480)throw new q("Prompt body exceeds 20 KB");if(void 0!==a.title&&"string"!=typeof a.title)throw new q("Prompt title must be text");let c=l(b),d=new Date().toISOString(),f={id:(0,e.randomUUID)(),title:(0,j.WL)("string"==typeof a.title&&a.title.trim()?a.title:a.body),body:a.body,createdAt:d,updatedAt:d};return m([...c,f],b),f}function o(a,b=(0,h.getAgentDir)()){let c=l(b),d=c.filter(b=>b.id!==a);return d.length!==c.length&&(m(d,b),!0)}d()}catch(a){d(a)}})},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34069:a=>{"use strict";a.exports=import("@oh-my-pi/pi-utils")},40553:(a,b,c)=>{"use strict";function d(a){return Array.from(a.trim().split(/\r?\n/,1)[0].trim()).slice(0,60).join("")}c.d(b,{WL:()=>d})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66544:(a,b,c)=>{"use strict";c.d(b,{E2:()=>k,EN:()=>j,e9:()=>i});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(){return[process.env.CUELO_HOSTNAME,...process.env.CUELO_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function h(a){try{return new URL(a).origin}catch{return null}}function i(a,b=g()){let c=a.headers.get("host"),h=c?f(c):null;return!!h&&(!!("localhost"===h||h.endsWith(".localhost")||(0,d.isIP)(h))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===h}))}function j(a,b=g()){return!!i(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!d)return!0;let e=(b=new URL(a.url),(c=a.headers.get("host"))?h(`${b.protocol}//${c}`):null);return null!==e&&h(d)===e}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},75720:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,POST:()=>j,dynamic:()=>l,runtime:()=>k});var e=c(23211),f=c(24569),g=c(66544),h=a([f]);f=(h.then?(await h)():h)[0];let k="nodejs",l="force-dynamic",m={"Cache-Control":"no-store"};async function i(a){if(!(0,g.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});try{return e.NextResponse.json({prompts:(0,f.Di)()},{headers:m})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:"Cannot load saved prompts"},{status:500,headers:m})}}async function j(a){let b;if(!(0,g.EN)(a))return e.NextResponse.json({error:"Untrusted API request"},{status:403});if(!(0,g.E2)(a))return e.NextResponse.json({error:"application/json body required"},{status:415});try{b=await a.json()}catch{return e.NextResponse.json({error:"Malformed JSON body"},{status:400})}if(!b||"object"!=typeof b||Array.isArray(b))return e.NextResponse.json({error:"Prompt body is required"},{status:400});try{let a=(0,f.gu)(b);return e.NextResponse.json({prompt:a},{status:201,headers:m})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:"Cannot save prompt"},{status:a instanceof f.GO?400:500,headers:m})}}d()}catch(a){d(a)}})},77030:a=>{"use strict";a.exports=require("node:net")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86632:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(75720),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/saved-prompts/route",pathname:"/api/saved-prompts",filename:"route",bundlePath:"app/api/saved-prompts/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/saved-prompts/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/saved-prompts/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=86632));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=2835,a.ids=[2835],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1740:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/custom-tools")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3330:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/persisted-revive")},4327:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/system-prompt")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},9015:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/plugins/loader")},9655:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/runtime-init")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},19819:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/goals/settings")},21820:a=>{a.exports=require("os")},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},25167:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-mode")},25846:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>j});var e=c(23211),f=c(79495),g=c(56429),h=c(40402),i=a([f,g,h]);async function j(a,{params:b}){let{id:c}=await b;try{let a=await (0,h.os)(c);if(!a)return e.NextResponse.json({error:"Session not found"},{status:404});let b=(0,g.A4)(c),{session:d}=b?.isAlive()?{session:b}:await (0,g.OF)(c,a,void 0);await d.waitUntilReady?.();let i=await (0,f.gp)(d.inner);if(!d.isAlive())return e.NextResponse.json({error:"The session was closed while its title was being generated. Please try again."},{status:409});if(!i)return e.NextResponse.json({title:null,skipped:!0});return await d.inner.sessionManager.setSessionName(i.title,"auto"),(0,h.mD)(),e.NextResponse.json({title:i.title})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}[f,g,h]=i.then?(await i)():i,d()}catch(a){d(a)}})},26854:a=>{a.exports=import("@oh-my-pi/pi-tui")},27071:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/parse")},28100:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(25846),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/auto-name/route",pathname:"/api/sessions/[id]/auto-name",filename:"route",bundlePath:"app/api/sessions/[id]/auto-name/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/sessions/[id]/auto-name/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/auto-name/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},28354:a=>{a.exports=require("util")},28518:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/utils")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30480:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/data")},31421:a=>{a.exports=require("node:child_process")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33594:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/available-commands")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},34722:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/settings")},37570:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/settings")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},42531:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/persisted-agents")},43696:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-subagents")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45511:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/helpers/parse")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},55511:a=>{a.exports=require("crypto")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},58500:a=>{a.exports=require("node:timers/promises")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},59895:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/builtin-registry")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63411:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-settings")},63833:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability")},65209:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/hook")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},78772:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/settings")},79072:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/media")},79495:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{gp:()=>h});var e=c(87590),f=c(36208),g=a([e]);async function h(a){let b,c,d=a.sessionManager.buildSessionContext(),g=function(a){let b=function(a){for(let b of a){if("user"!==b.role)continue;let a=function(a){let b=a.content;return"string"==typeof b?(0,f.we)(b).trim():Array.isArray(b)?(0,f.we)(b.filter(a=>"object"==typeof a&&null!==a&&"text"===a.type).map(a=>a.text).join("\n")).trim():""}(b);if(a)return a}}(a);if(b)return b;let c=a.find(a=>"compactionSummary"===a.role&&"string"==typeof a.summary)?.summary;return c?.trim()?c:void 0}(d.messages);if(!g)throw Error("The session has no user messages to name");let h=await (0,e.generateSessionTitle)(g,a.modelRegistry,a.settings,a.sessionId,a.model,void 0,a.titleSystemPrompt);if(!h)return null;let i=(b=h.replace(/\s+/g," ").trim(),(c=Array.from(b)).length>80?c.slice(0,80).join("").trim():b);if(!/[\p{L}\p{N}]/u.test(i))throw Error("The model did not return a usable session title");return{title:i}}e=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},82640:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/discovery/omp-extension-roots")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87590:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/utils/title-generator")},88692:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-resolver")},90431:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/async/job-manager")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},94285:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/acp-builtins")},94374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/extension-module")},96175:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-lifecycle")},96282:a=>{a.exports=import("@oh-my-pi/pi-tui/overlays/model-selector")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,7015,6429],()=>b(b.s=28100));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=2835,a.ids=[2835],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1740:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/custom-tools")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3330:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/persisted-revive")},4327:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/system-prompt")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},9015:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/plugins/loader")},9655:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/runtime-init")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},19819:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/goals/settings")},21820:a=>{a.exports=require("os")},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},25167:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-mode")},25846:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>j});var e=c(23211),f=c(79495),g=c(56429),h=c(40402),i=a([f,g,h]);async function j(a,{params:b}){let{id:c}=await b;try{let a=await (0,h.os)(c);if(!a)return e.NextResponse.json({error:"Session not found"},{status:404});let b=(0,g.A4)(c),{session:d}=b?.isAlive()?{session:b}:await (0,g.OF)(c,a,void 0);await d.waitUntilReady?.();let i=await (0,f.gp)(d.inner);if(!d.isAlive())return e.NextResponse.json({error:"The session was closed while its title was being generated. Please try again."},{status:409});if(!i)return e.NextResponse.json({title:null,skipped:!0});return await d.inner.sessionManager.setSessionName(i.title,"auto"),(0,h.mD)(),e.NextResponse.json({title:i.title})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}[f,g,h]=i.then?(await i)():i,d()}catch(a){d(a)}})},26854:a=>{a.exports=import("@oh-my-pi/pi-tui")},27071:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/parse")},28354:a=>{a.exports=require("util")},28518:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/utils")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30480:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/data")},31421:a=>{a.exports=require("node:child_process")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33594:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/available-commands")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},34722:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/settings")},37570:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/settings")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},42531:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/persisted-agents")},43696:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-subagents")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45511:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/helpers/parse")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},51632:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(25846),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/auto-name/route",pathname:"/api/sessions/[id]/auto-name",filename:"route",bundlePath:"app/api/sessions/[id]/auto-name/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/sessions/[id]/auto-name/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/auto-name/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},55511:a=>{a.exports=require("crypto")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},59895:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/builtin-registry")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63411:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-settings")},63833:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability")},65209:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/hook")},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},78772:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/settings")},79072:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/media")},79495:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{gp:()=>h});var e=c(87590),f=c(36208),g=a([e]);async function h(a){let b,c,d=a.sessionManager.buildSessionContext(),g=function(a){let b=function(a){for(let b of a){if("user"!==b.role)continue;let a=function(a){let b=a.content;return"string"==typeof b?(0,f.we)(b).trim():Array.isArray(b)?(0,f.we)(b.filter(a=>"object"==typeof a&&null!==a&&"text"===a.type).map(a=>a.text).join("\n")).trim():""}(b);if(a)return a}}(a);if(b)return b;let c=a.find(a=>"compactionSummary"===a.role&&"string"==typeof a.summary)?.summary;return c?.trim()?c:void 0}(d.messages);if(!g)throw Error("The session has no user messages to name");let h=await (0,e.generateSessionTitle)(g,a.modelRegistry,a.settings,a.sessionId,a.model,void 0,a.titleSystemPrompt);if(!h)return null;let i=(b=h.replace(/\s+/g," ").trim(),(c=Array.from(b)).length>80?c.slice(0,80).join("").trim():b);if(!/[\p{L}\p{N}]/u.test(i))throw Error("The model did not return a usable session title");return{title:i}}e=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},82640:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/discovery/omp-extension-roots")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87590:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/utils/title-generator")},88692:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-resolver")},90431:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/async/job-manager")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},94285:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/acp-builtins")},94374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/extension-module")},96175:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-lifecycle")},96282:a=>{a.exports=import("@oh-my-pi/pi-tui/overlays/model-selector")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,7015,9467],()=>b(b.s=51632));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../../node_modules/@oh-my-pi/pi-agent-core/package.json","../../../../../../../node_modules/@oh-my-pi/pi-agent-core/src/compaction.ts","../../../../../../../node_modules/@oh-my-pi/pi-agent-core/src/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/package.json","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/async/job-manager.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/capability/extension-module.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/capability/hook.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/capability/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config/model-resolver.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config/model-roles.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config/model-settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/discovery/omp-extension-roots.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/custom-tools/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/plugins/loader.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/utils.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/goals/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/memory-backend/redact.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/modes/rpc/rpc-mode.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/modes/rpc/rpc-subagents.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/modes/runtime-init.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/plan-mode/plan-files.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/registry/agent-lifecycle.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/registry/agent-registry.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/registry/persisted-agents.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/secrets/patterns.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/secrets/regex.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/session/exit-diagnostics.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/session/messages.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/acp-builtins.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/available-commands.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/builtin-registry.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/helpers/parse.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/system-prompt.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/task/persisted-revive.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/task/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/tools/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/tools/todo.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/utils/title-generator.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/package.json","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/html-form/data.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/html-form/media.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/html-form/parse.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/overlays/model-selector.ts","../../../../../../../node_modules/@oh-my-pi/pi-utils/package.json","../../../../../../../node_modules/@oh-my-pi/pi-utils/src/index.ts","../../../../../../../node_modules/@opentelemetry/api/build/src/api/context.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/diag.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/metrics.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/propagation.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/trace.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/context-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js","../../../../../../../node_modules/@opentelemetry/api/build/src/context/context.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/types.js","../../../../../../../node_modules/@opentelemetry/api/build/src/index.js","../../../../../../../node_modules/@opentelemetry/api/build/src/internal/global-utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/internal/semver.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics/Metric.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js","../../../../../../../node_modules/@opentelemetry/api/build/src/propagation-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js","../../../../../../../node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/context-utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/span_kind.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/status.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.js","../../../../../../../node_modules/@opentelemetry/api/build/src/version.js","../../../../../../../node_modules/@opentelemetry/api/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1813.js","../../../../../chunks/2240.js","../../../../../chunks/3229.js","../../../../../chunks/402.js","../../../../../chunks/4741.js","../../../../../chunks/5948.js","../../../../../chunks/6429.js","../../../../../chunks/7015.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../../../../../node_modules/@oh-my-pi/pi-agent-core/package.json","../../../../../../../node_modules/@oh-my-pi/pi-agent-core/src/compaction.ts","../../../../../../../node_modules/@oh-my-pi/pi-agent-core/src/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/package.json","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/async/job-manager.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/capability/extension-module.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/capability/hook.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/capability/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config/model-resolver.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config/model-roles.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/config/model-settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/discovery/omp-extension-roots.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/custom-tools/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/plugins/loader.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/extensibility/utils.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/goals/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/memory-backend/redact.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/modes/rpc/rpc-mode.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/modes/rpc/rpc-subagents.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/modes/runtime-init.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/plan-mode/plan-files.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/registry/agent-lifecycle.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/registry/agent-registry.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/registry/persisted-agents.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/secrets/patterns.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/secrets/regex.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/session/exit-diagnostics.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/session/messages.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/acp-builtins.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/available-commands.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/builtin-registry.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/slash-commands/helpers/parse.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/system-prompt.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/task/persisted-revive.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/task/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/tools/settings.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/tools/todo.ts","../../../../../../../node_modules/@oh-my-pi/pi-coding-agent/src/utils/title-generator.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/package.json","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/html-form/data.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/html-form/media.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/html-form/parse.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/index.ts","../../../../../../../node_modules/@oh-my-pi/pi-tui/src/overlays/model-selector.ts","../../../../../../../node_modules/@oh-my-pi/pi-utils/package.json","../../../../../../../node_modules/@oh-my-pi/pi-utils/src/index.ts","../../../../../../../node_modules/@opentelemetry/api/build/src/api/context.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/diag.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/metrics.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/propagation.js","../../../../../../../node_modules/@opentelemetry/api/build/src/api/trace.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js","../../../../../../../node_modules/@opentelemetry/api/build/src/baggage/utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/context-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js","../../../../../../../node_modules/@opentelemetry/api/build/src/context/context.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js","../../../../../../../node_modules/@opentelemetry/api/build/src/diag/types.js","../../../../../../../node_modules/@opentelemetry/api/build/src/index.js","../../../../../../../node_modules/@opentelemetry/api/build/src/internal/global-utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/internal/semver.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics/Metric.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js","../../../../../../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js","../../../../../../../node_modules/@opentelemetry/api/build/src/propagation-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js","../../../../../../../node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace-api.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/context-utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/span_kind.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/status.js","../../../../../../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.js","../../../../../../../node_modules/@opentelemetry/api/build/src/version.js","../../../../../../../node_modules/@opentelemetry/api/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1813.js","../../../../../chunks/2240.js","../../../../../chunks/3229.js","../../../../../chunks/402.js","../../../../../chunks/4741.js","../../../../../chunks/5948.js","../../../../../chunks/7015.js","../../../../../chunks/9467.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=6709,a.ids=[6709],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1740:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/custom-tools")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3330:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/persisted-revive")},4327:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/system-prompt")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},6004:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k});var e=c(23211),f=c(92582),g=c(40402),h=c(56429),i=c(65654),j=a([f,g,h]);async function k(a,{params:b}){let{id:c}=await b,d=new URL(a.url),j=d.searchParams.get("leafId")??void 0,l=d.searchParams.has("deferThinking"),m=d.searchParams.has("deferMedia");try{let b=(0,h.A4)(c),d=b?.isAlive()?b:void 0,k=d?null:await (0,g.os)(c);if(!d&&!k)return e.NextResponse.json({error:"Session not found"},{status:404});let n=d?.inner.sessionManager??await f.SessionManager.open(k),o=n.getEntries(),p=(0,g.Uv)(o,j,{deferThinking:l,deferToolResultImages:m,cwd:n.getCwd()}),q=await (0,g.dQ)(o,j);return(0,i.Q)(a,{context:p,...q?{contextUsage:q}:{}})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}[f,g,h]=j.then?(await j)():j,d()}catch(a){d(a)}})},9015:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/plugins/loader")},9655:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/runtime-init")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},19819:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/goals/settings")},21820:a=>{a.exports=require("os")},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},25167:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-mode")},26854:a=>{a.exports=import("@oh-my-pi/pi-tui")},27071:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/parse")},28354:a=>{a.exports=require("util")},28518:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/utils")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30480:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/data")},31421:a=>{a.exports=require("node:child_process")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33594:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/available-commands")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},34722:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/settings")},37570:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/settings")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},42531:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/persisted-agents")},43696:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-subagents")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45511:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/helpers/parse")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},51928:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(6004),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/context/route",pathname:"/api/sessions/[id]/context",filename:"route",bundlePath:"app/api/sessions/[id]/context/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/sessions/[id]/context/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/context/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},55511:a=>{a.exports=require("crypto")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},58500:a=>{a.exports=require("node:timers/promises")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},59895:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/builtin-registry")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63411:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-settings")},63833:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability")},65209:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/hook")},65654:(a,b,c)=>{function d(a,b,c={}){let e=JSON.stringify(b),f=new Headers(c.headers);return(f.set("Content-Type","application/json"),f.append("Vary","Accept-Encoding"),!function(a){if(!a)return!1;let b=new Map;for(let c of a.split(",")){let[a,...d]=c.trim().toLowerCase().split(";"),e=d.map(a=>a.trim()).find(a=>a.startsWith("q="));a&&b.set(a,void 0===e?1:Number(e.slice(2)))}let c=b.get("gzip")??b.get("*");return void 0!==c&&c>0}(a.headers.get("accept-encoding")))?new Response(e,{...c,headers:f}):(f.set("Content-Encoding","gzip"),new Response(new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")),{...c,headers:f}))}c.d(b,{Q:()=>d})},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},78772:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/settings")},79072:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/media")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},82640:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/discovery/omp-extension-roots")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88692:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-resolver")},90431:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/async/job-manager")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},94285:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/acp-builtins")},94374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/extension-module")},96175:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-lifecycle")},96282:a=>{a.exports=import("@oh-my-pi/pi-tui/overlays/model-selector")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,7015,6429],()=>b(b.s=51928));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=6709,a.ids=[6709],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1740:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/custom-tools")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3330:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/persisted-revive")},4327:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/system-prompt")},5969:a=>{a.exports=import("@oh-my-pi/pi-agent-core/compaction")},6004:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k});var e=c(23211),f=c(92582),g=c(40402),h=c(56429),i=c(65654),j=a([f,g,h]);async function k(a,{params:b}){let{id:c}=await b,d=new URL(a.url),j=d.searchParams.get("leafId")??void 0,l=d.searchParams.has("deferThinking"),m=d.searchParams.has("deferMedia");try{let b=(0,h.A4)(c),d=b?.isAlive()?b:void 0,k=d?null:await (0,g.os)(c);if(!d&&!k)return e.NextResponse.json({error:"Session not found"},{status:404});let n=d?.inner.sessionManager??await f.SessionManager.open(k),o=n.getEntries(),p=(0,g.Uv)(o,j,{deferThinking:l,deferToolResultImages:m,cwd:n.getCwd()}),q=await (0,g.dQ)(o,j);return(0,i.Q)(a,{context:p,...q?{contextUsage:q}:{}})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}[f,g,h]=j.then?(await j)():j,d()}catch(a){d(a)}})},9015:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/plugins/loader")},9655:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/runtime-init")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14882:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/messages")},19819:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/goals/settings")},21820:a=>{a.exports=require("os")},22127:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/memory-backend/redact")},24676:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(6004),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/context/route",pathname:"/api/sessions/[id]/context",filename:"route",bundlePath:"app/api/sessions/[id]/context/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CUELO/CUELO/app/api/sessions/[id]/context/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/context/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},25167:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-mode")},26854:a=>{a.exports=import("@oh-my-pi/pi-tui")},27071:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/parse")},28354:a=>{a.exports=require("util")},28518:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/utils")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30480:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/data")},31421:a=>{a.exports=require("node:child_process")},33374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/patterns")},33594:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/available-commands")},33873:a=>{a.exports=require("path")},34069:a=>{a.exports=import("@oh-my-pi/pi-utils")},34722:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/task/settings")},37570:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/settings")},40575:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/tools/todo")},42531:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/persisted-agents")},43696:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/modes/rpc/rpc-subagents")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45511:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/helpers/parse")},48161:a=>{a.exports=require("node:os")},48331:a=>{a.exports=import("@oh-my-pi/pi-agent-core")},51455:a=>{a.exports=require("node:fs/promises")},53739:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/session/exit-diagnostics")},55511:a=>{a.exports=require("crypto")},57588:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/secrets/regex")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},58505:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config")},59895:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/builtin-registry")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63411:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-settings")},63833:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability")},65209:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/hook")},65654:(a,b,c)=>{function d(a,b,c={}){let e=JSON.stringify(b),f=new Headers(c.headers);return(f.set("Content-Type","application/json"),f.append("Vary","Accept-Encoding"),!function(a){if(!a)return!1;let b=new Map;for(let c of a.split(",")){let[a,...d]=c.trim().toLowerCase().split(";"),e=d.map(a=>a.trim()).find(a=>a.startsWith("q="));a&&b.set(a,void 0===e?1:Number(e.slice(2)))}let c=b.get("gzip")??b.get("*");return void 0!==c&&c>0}(a.headers.get("accept-encoding")))?new Response(e,{...c,headers:f}):(f.set("Content-Encoding","gzip"),new Response(new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")),{...c,headers:f}))}c.d(b,{Q:()=>d})},73024:a=>{a.exports=require("node:fs")},73079:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-roles")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78310:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-registry")},78772:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/extensibility/settings")},79072:a=>{a.exports=import("@oh-my-pi/pi-tui/html-form/media")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},82512:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/plan-mode/plan-files")},82640:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/discovery/omp-extension-roots")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88692:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/config/model-resolver")},90431:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/async/job-manager")},92582:a=>{a.exports=import("@oh-my-pi/pi-coding-agent")},94285:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/slash-commands/acp-builtins")},94374:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/capability/extension-module")},96175:a=>{a.exports=import("@oh-my-pi/pi-coding-agent/registry/agent-lifecycle")},96282:a=>{a.exports=import("@oh-my-pi/pi-tui/overlays/model-selector")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5948,402,3229,2240,7015,9467],()=>b(b.s=24676));module.exports=c})();
|