@seqyuan/annovibe 0.8.134 → 0.8.136
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 +19 -12
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +1 -1
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +46 -0
- package/.next/server/app/_global-error/page.js +3 -3
- 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 +4 -4
- package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
- 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 +3 -3
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/prepare/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js +2 -2
- package/.next/server/app/api/agent/running/events/route.js +2 -2
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/agent/runtime/route.js +1 -1
- package/.next/server/app/api/apps/[id]/[[...path]]/route.js +2 -2
- package/.next/server/app/api/apps/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/login/route.js +1 -1
- 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/auth/status/route.js +1 -1
- package/.next/server/app/api/auth/totp/route.js +1 -1
- package/.next/server/app/api/debug-models/route.js +1 -1
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/file-index/route.js +1 -0
- package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/file-tree/delete/route.js +1 -1
- package/.next/server/app/api/file-tree/mkdir/route.js +1 -1
- package/.next/server/app/api/file-tree/rename/route.js +1 -1
- package/.next/server/app/api/file-tree/reveal/route.js +1 -1
- package/.next/server/app/api/file-tree/write/route.js +1 -1
- package/.next/server/app/api/file-watch/route.js +3 -3
- package/.next/server/app/api/files/[...path]/route.js +2 -2
- package/.next/server/app/api/harness/route.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/im/cancel/route.js +1 -1
- package/.next/server/app/api/im/gateway-status/route.js +1 -1
- package/.next/server/app/api/im/gateway-token/route.js +1 -1
- package/.next/server/app/api/im/project/route.js +1 -1
- package/.next/server/app/api/im/projects/route.js +1 -1
- package/.next/server/app/api/im/session-ids/route.js +1 -1
- package/.next/server/app/api/im/turn/route.js +2 -2
- package/.next/server/app/api/images/upload/route.js +1 -1
- package/.next/server/app/api/internal/runtime/route.js +1 -1
- package/.next/server/app/api/memory/dismiss/route.js +2 -2
- package/.next/server/app/api/memory/promote/route.js +2 -2
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/plot-kernels/route.js +1 -1
- package/.next/server/app/api/plot-kernels/save/route.js +1 -1
- package/.next/server/app/api/plot-kernels/status/route.js +1 -1
- package/.next/server/app/api/plot-kernels/stop/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -0
- package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/project-trust/route.js +1 -0
- package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/projects/browse/route.js +1 -1
- package/.next/server/app/api/projects/route.js +1 -1
- package/.next/server/app/api/search/route.js +1 -1
- package/.next/server/app/api/session-index/events/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +9 -8
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +1 -0
- package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/kernel-state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/media/route.js +1 -0
- package/.next/server/app/api/sessions/[id]/media/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/shadowed/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/workbench-artifact/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/workbench-review/route.js +1 -1
- package/.next/server/app/api/sessions/new/route.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/settings/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -0
- package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
- 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 +2 -0
- package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/smoke/prompt-admission/route.js +1 -1
- package/.next/server/app/api/soul/route.js +1 -1
- package/.next/server/app/api/subagents/status/route.js +1 -1
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/icon.svg/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/.next/server/app/index.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/login/page.js +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +4 -4
- package/.next/server/app/login.segments/_full.segment.rsc +4 -4
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +4 -4
- package/.next/server/app/login.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/page.js +24 -24
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke/page.js +3 -3
- package/.next/server/app/smoke/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke/session-stream/page.js +2 -2
- package/.next/server/app/smoke/session-stream/page_client-reference-manifest.js +1 -1
- package/.next/server/app/smoke/session-stream.html +1 -1
- package/.next/server/app/smoke/session-stream.rsc +5 -5
- package/.next/server/app/smoke/session-stream.segments/_full.segment.rsc +5 -5
- package/.next/server/app/smoke/session-stream.segments/_head.segment.rsc +1 -1
- package/.next/server/app/smoke/session-stream.segments/_index.segment.rsc +4 -4
- package/.next/server/app/smoke/session-stream.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/smoke/session-stream.segments/smoke/session-stream/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/smoke/session-stream.segments/smoke/session-stream.segment.rsc +1 -1
- package/.next/server/app/smoke/session-stream.segments/smoke.segment.rsc +1 -1
- package/.next/server/app/smoke.html +2 -2
- package/.next/server/app/smoke.rsc +5 -5
- package/.next/server/app/smoke.segments/_full.segment.rsc +5 -5
- package/.next/server/app/smoke.segments/_head.segment.rsc +1 -1
- package/.next/server/app/smoke.segments/_index.segment.rsc +4 -4
- package/.next/server/app/smoke.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/smoke.segments/smoke/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/smoke.segments/smoke.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +19 -12
- package/.next/server/chunks/1761.js +1 -1
- package/.next/server/chunks/402.js +4 -2
- package/.next/server/chunks/6429.js +9 -8
- package/.next/server/chunks/707.js +2 -2
- package/.next/server/chunks/7303.js +260 -0
- package/.next/server/chunks/7365.js +1 -0
- package/.next/server/chunks/7890.js +1 -1
- package/.next/server/chunks/8304.js +1 -1
- package/.next/server/chunks/8797.js +22 -0
- package/.next/server/functions-config-manifest.json +11 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/middleware.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{2693-b831832202452107.js → 2693-52c358cf5d84b069.js} +1 -1
- package/.next/static/chunks/291-bfdfc8bcf5d0a962.js +22 -0
- package/.next/static/chunks/{5618-3b8444e736e6ae4d.js → 5618-5e2e47e6ed401a75.js} +3 -3
- package/.next/static/chunks/{1960.b1e26436d7a5f586.js → 7198.4c3df741a5e26fb2.js} +1 -1
- package/.next/static/chunks/9867-b1d15d9354f100e7.js +260 -0
- package/.next/static/chunks/app/_global-error/page-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/prepare/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/running/events/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/agent/runtime/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/apps/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/login/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/auth/totp/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/debug-models/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/delete/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/mkdir/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/rename/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/reveal/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-tree/write/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/file-watch/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/harness/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/home/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/cancel/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/gateway-status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/gateway-token/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/project/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/projects/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/session-ids/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/im/turn/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/images/upload/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/internal/runtime/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/memory/dismiss/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/memory/promote/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/save/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plot-kernels/stop/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/projects/browse/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/projects/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/search/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/session-index/events/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/kernel-state/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/media/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/shadowed/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/workbench-artifact/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/workbench-review/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/new/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/settings/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/smoke/prompt-admission/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/soul/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/subagents/status/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/api/version/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/favicon.ico/route-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/app/{layout-5608bfe5e8f4e4c0.js → layout-101c4ccdf12880f0.js} +1 -1
- package/.next/static/chunks/app/page-703d91d8bff67f70.js +44 -0
- package/.next/static/chunks/app/smoke/{page-35df723c803f35e1.js → page-32674afc320aa48b.js} +2 -2
- package/.next/static/chunks/app/smoke/session-stream/page-e754151f65003821.js +6 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-dcc4d4b28dc1e9eb.js +1 -0
- package/.next/static/chunks/{webpack-abcc6ba654c7ed4b.js → webpack-0d1f7348ddb20bdc.js} +1 -1
- package/.next/static/css/738b0b1c24aae500.css +1 -0
- package/.next/static/css/{88714c00e109ce28.css → 9bcd6051db4f8890.css} +1 -1
- package/.next/static/zeWki1Z47rqBkR2ph5H6N/_buildManifest.js +1 -0
- package/README.md +4 -1
- package/bin/annovibe-im-gateway.js +0 -4
- package/bin/pi-web.js +103 -37
- package/package.json +6 -5
- package/.next/server/chunks/4584.js +0 -260
- package/.next/server/chunks/9230.js +0 -22
- package/.next/static/2gyhgfAo_GNB2lRPOJwF9/_buildManifest.js +0 -1
- package/.next/static/chunks/4456-91f92907e8ef1f89.js +0 -260
- package/.next/static/chunks/9544-5e2696923ae4f6b5.js +0 -22
- package/.next/static/chunks/app/_global-error/page-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/prepare/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/running/events/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/agent/runtime/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/apps/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/login/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/auth/totp/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/debug-models/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/delete/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/mkdir/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/rename/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/reveal/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-tree/write/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/file-watch/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/harness/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/home/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/cancel/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/gateway-status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/gateway-token/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/project/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/projects/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/session-ids/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/im/turn/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/images/upload/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/internal/runtime/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/memory/dismiss/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/memory/promote/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/save/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/plot-kernels/stop/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/projects/browse/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/projects/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/search/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/session-index/events/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/kernel-state/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/shadowed/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/workbench-artifact/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/workbench-review/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/new/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/settings/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/skills/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/smoke/prompt-admission/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/soul/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/subagents/status/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/api/version/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/favicon.ico/route-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/app/page-959c2935e21471e4.js +0 -44
- package/.next/static/chunks/app/smoke/session-stream/page-49b8cf27895b9187.js +0 -6
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-c47e15c89def27e4.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c47e15c89def27e4.js +0 -1
- package/.next/static/css/fdfd4d4bcfae3c6a.css +0 -1
- /package/.next/static/{2gyhgfAo_GNB2lRPOJwF9 → zeWki1Z47rqBkR2ph5H6N}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=4813,a.ids=[4813],a.modules={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")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},10868:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>k,dynamic:()=>l});var e=c(23211),f=c(40402),g=c(56429),h=c(75430),i=c(29021),j=a([f,g,h]);[f,g,h]=j.then?(await j)():j;let l="force-dynamic";async function k(a,{params:b}){let{id:c}=await b;try{let a=(0,g.A4)(c);if(a?.isAlive())return e.NextResponse.json({ok:!0,sessionId:c});let b=await (0,f.os)(c);if(!b)return e.NextResponse.json({error:"Session not found"},{status:404});let d=h.SessionManager.open(b).getHeader()?.cwd??process.cwd();if(!function(a){try{return(0,i.statSync)(a).isDirectory()}catch{return!1}}(d))return e.NextResponse.json({error:`Project directory no longer exists: ${d}`},{status:400});let{realSessionId:j}=await (0,g.OF)(c,b,d);return e.NextResponse.json({ok:!0,sessionId:j})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},
|
|
1
|
+
"use strict";(()=>{var a={};a.id=4813,a.ids=[4813],a.modules={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")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},10868:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>k,dynamic:()=>l});var e=c(23211),f=c(40402),g=c(56429),h=c(75430),i=c(29021),j=a([f,g,h]);[f,g,h]=j.then?(await j)():j;let l="force-dynamic";async function k(a,{params:b}){let{id:c}=await b;try{let a=(0,g.A4)(c);if(a?.isAlive())return e.NextResponse.json({ok:!0,sessionId:c});let b=await (0,f.os)(c);if(!b)return e.NextResponse.json({error:"Session not found"},{status:404});let d=h.SessionManager.open(b).getHeader()?.cwd??process.cwd();if(!function(a){try{return(0,i.statSync)(a).isDirectory()}catch{return!1}}(d))return e.NextResponse.json({error:`Project directory no longer exists: ${d}`},{status:400});let{realSessionId:j}=await (0,g.OF)(c,b,d);return e.NextResponse.json({ok:!0,sessionId:j})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},20718:(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(10868),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/[id]/prepare/route",pathname:"/api/agent/[id]/prepare",filename:"route",bundlePath:"app/api/agent/[id]/prepare/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/agent/[id]/prepare/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/agent/[id]/prepare/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},21820:a=>{a.exports=require("os")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193,7831,402,6429],()=>b(b.s=20718));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=5221,a.ids=[5221],a.modules={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")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},
|
|
1
|
+
"use strict";(()=>{var a={};a.id=5221,a.ids=[5221],a.modules={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")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79256:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,POST:()=>k,dynamic:()=>m});var e=c(23211),f=c(29021),g=c(40402),h=c(56429),i=c(75430),j=a([g,h,i]);[g,h,i]=j.then?(await j)():j;let m="force-dynamic";async function k(a,{params:b}){let{id:c}=await b;try{let b=await a.json(),d=(0,h.A4)(c);if(d?.isAlive()){let a=await d.send(b);return e.NextResponse.json({success:!0,data:a})}if("abort"===b.type)return e.NextResponse.json({success:!0,data:{running:!1}});let j=await (0,g.os)(c);if(!j)return e.NextResponse.json({error:"Session not found"},{status:404});let k=i.SessionManager.open(j).getHeader()?.cwd??process.cwd();if(!function(a){try{return(0,f.statSync)(a).isDirectory()}catch{return!1}}(k))return e.NextResponse.json({error:`Project directory no longer exists: ${k}`},{status:400});let{session:l}=await (0,h.OF)(c,j,k),m=await l.send(b);return e.NextResponse.json({success:!0,data:m})}catch(a){if((0,h.kp)(a))return e.NextResponse.json({error:a.message,code:a.code},{status:409});return e.NextResponse.json({error:String(a)},{status:500})}}async function l(a,{params:b}){let{id:c}=await b;try{let a=(0,h.A4)(c);if(!a||!a.isAlive())return e.NextResponse.json({running:!1});let b=await a.send({type:"get_state"});return e.NextResponse.json({running:a.isBusy(),state:b})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},79748:a=>{a.exports=require("fs/promises")},85526:(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(79256),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/[id]/route",pathname:"/api/agent/[id]",filename:"route",bundlePath:"app/api/agent/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/agent/[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/agent/[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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193,7831,402,6429],()=>b(b.s=85526));module.exports=c})();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=6450,a.ids=[6450],a.modules={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")},4937:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>
|
|
2
|
-
`,"utf8"))}}let x=`__new__${(0,h.randomUUID)()}`,{session:y,realSessionId:z}=await (0,i.OF)(x,v,b,o);if(globalThis.__piAllowedRootsCache?.roots.add(b),d&&n&&await y.send({type:"set_model",provider:d,modelId:n}),p&&await y.send({type:"set_thinking_level",level:p}),"string"==typeof r&&r.trim()&&k.SessionManager.open(y.sessionFile).appendSessionInfo(r.trim()),w&&await (0,l.oR)(z,{sessionKind:"workbench",lastToolNames:Array.isArray(o)?o:[],createdBy:"launcher",createdAt:new Date().toISOString(),initialSourcePath:"string"==typeof s?.sourcePath&&s.sourcePath?s.sourcePath:void 0,initialKernel:s?.kernel==="python"?"python":"r",initialKernelId:"string"==typeof s?.kernelId&&s.kernelId?s.kernelId:void 0,initialKernelDisplayName:"string"==typeof s?.kernelDisplayName&&s.kernelDisplayName?s.kernelDisplayName:void 0},{cwd:b}),(0,m.fd)(b),(0,m.E8)(),!0===t)return e.NextResponse.json({success:!0,sessionId:z,data:null});let A=await y.send(u);return(0,m.fd)(b),e.NextResponse.json({success:!0,sessionId:z,data:A})}catch(a){if((0,i.kp)(a))return e.NextResponse.json({error:a.message,code:a.code},{status:409});return e.NextResponse.json({error:String(a)},{status:500})}}[i,j,k,l,m]=n.then?(await n)():n,d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28622:(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(4937),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/new/route",pathname:"/api/agent/new",filename:"route",bundlePath:"app/api/agent/new/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/agent/new/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/agent/new/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193,7831,402,6429],()=>b(b.s=28622));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=6450,a.ids=[6450],a.modules={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")},4937:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>p});var e=c(23211),f=c(29021),g=c(33873),h=c(55511),i=c(56429),j=c(80547),k=c(40402),l=c(75430),m=c(74788),n=c(91179),o=a([i,j,k,l,m,n]);async function p(a){try{let{cwd:b,...c}=await a.json();if(!b||"string"!=typeof b)return e.NextResponse.json({error:"cwd is required"},{status:400});if(!(0,f.existsSync)(b))return e.NextResponse.json({error:`Directory does not exist: ${b}`},{status:400});let{provider:d,modelId:o,toolNames:p,thinkingLevel:q,parentSessionId:r,sessionName:s,workbenchMeta:t,deferPrompt:u,...v}=c,w="",x=t&&"object"==typeof t;if(!x&&"string"==typeof r&&r.trim()){let a=await (0,k.os)(r.trim());if(!a)return e.NextResponse.json({error:"Parent session not found"},{status:404});let c=l.SessionManager.create(b,void 0);if(w=c.newSession({parentSession:a})??""){let a=c.getHeader();a&&((0,f.mkdirSync)((0,g.dirname)(w),{recursive:!0}),(0,f.writeFileSync)(w,`${JSON.stringify(a)}
|
|
2
|
+
`,"utf8"))}}let y=`__new__${(0,h.randomUUID)()}`,{session:z,realSessionId:A}=await (0,i.OF)(y,w,b,p);if((0,j.wz)(b),d&&o&&await z.send({type:"set_model",provider:d,modelId:o}),q&&await z.send({type:"set_thinking_level",level:q}),"string"==typeof s&&s.trim()&&l.SessionManager.open(z.sessionFile).appendSessionInfo(s.trim()),x&&await (0,m.oR)(A,{sessionKind:"workbench",lastToolNames:Array.isArray(p)?p:[],createdBy:"launcher",createdAt:new Date().toISOString(),initialSourcePath:"string"==typeof t?.sourcePath&&t.sourcePath?t.sourcePath:void 0,initialKernel:t?.kernel==="python"?"python":"r",initialKernelId:"string"==typeof t?.kernelId&&t.kernelId?t.kernelId:void 0,initialKernelDisplayName:"string"==typeof t?.kernelDisplayName&&t.kernelDisplayName?t.kernelDisplayName:void 0},{cwd:b}),(0,n.fd)(b),(0,n.E8)(),!0===u)return e.NextResponse.json({success:!0,sessionId:A,data:null});let B=await z.send(v);return(0,n.fd)(b),e.NextResponse.json({success:!0,sessionId:A,data:B})}catch(a){if((0,i.kp)(a))return e.NextResponse.json({error:a.message,code:a.code},{status:409});return e.NextResponse.json({error:String(a)},{status:500})}}[i,j,k,l,m,n]=o.then?(await o)():o,d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44820:(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(4937),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/new/route",pathname:"/api/agent/new",filename:"route",bundlePath:"app/api/agent/new/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/agent/new/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/agent/new/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79748:a=>{a.exports=require("fs/promises")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{B7:()=>o,mc:()=>n,qG:()=>p,wz:()=>m});var e=c(29021),f=c(21820),g=c(33873),h=c(40402),i=c(10237),j=c(82536),k=a([h,i]);function l(){return globalThis.__annovibeAdditionalAllowedRoots||(globalThis.__annovibeAdditionalAllowedRoots=new Set),globalThis.__annovibeAdditionalAllowedRoots}function m(a){let b=a?.trim();if(!b)return;let c=(0,j.Nw)(b);l().add(c),globalThis.__annovibeAllowedRootsCache?.roots.add(c)}async function n(){let a=Date.now(),b=globalThis.__annovibeAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=new Set;try{for(let a of(await (0,h.dQ)()))a.cwd&&c.add((0,j.Nw)(a.cwd))}catch{}let d=(0,i.IJ)();if(d.ok)for(let a of Object.values(d.registry.projects))a.cwd&&c.add((0,j.Nw)(a.cwd));try{for(let a of(0,e.readdirSync)((0,f.homedir)()))/^pi-cwd-\d{8}$/.test(a)&&c.add((0,j.Nw)((0,g.join)((0,f.homedir)(),a)))}catch{}for(let a of l())c.add(a);return globalThis.__annovibeAllowedRootsCache={roots:c,expiresAt:a+5e3},c}function o(a,b){return(0,j.xk)(a,b)}function p(a,b){if(!(0,j.o4)(a,b))return!1;let c=a;for(let a=0;a<64;a++){if((0,j.xk)(c,b))return!0;if((0,e.existsSync)(c))break;let a=(0,g.join)(c,"..");if(a===c)break;c=a}return!1}[h,i]=k.then?(await k)():k,d()}catch(a){d(a)}})},82536:(a,b,c)=>{c.d(b,{Nw:()=>h,o4:()=>j,uK:()=>i,xk:()=>k});var d=c(29021),e=c(33873),f=c.n(e);let g=/^[a-zA-Z]:[\\/]/;function h(a){return a.replace(/\\/g,"/")}function i(a){return g.test(a)||a.startsWith("\\\\")||a.startsWith("//")}function j(a,b){for(let c of b){let b=i(a)||i(c),d=b?f().win32:f(),e=b?"\\":f().sep,g=d.resolve(a),h=d.resolve(c),j=b?g.toLowerCase():g,k=b?h.toLowerCase():h,l=k.endsWith(e)?k:k+e;if(j===k||j.startsWith(l))return!0}return!1}function k(a,b){let c;try{c=(0,d.realpathSync)(a)}catch{return!1}let e=new Set;for(let a of b)try{e.add((0,d.realpathSync)(a))}catch{}return j(c,e)}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193,7831,402,6429],()=>b(b.s=44820));module.exports=c})();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=9043,a.ids=[9043],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},
|
|
1
|
+
"use strict";(()=>{var a={};a.id=9043,a.ids=[9043],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{a.exports=c(44870)},21820:a=>{a.exports=require("os")},21878:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>g,dynamic:()=>h});var e=c(56429),f=a([e]);e=(f.then?(await f)():f)[0];let h="force-dynamic";async function g(a){let b=new ReadableStream({start(b){let c=a=>{let c=`data: ${JSON.stringify(a)}
|
|
2
2
|
|
|
3
|
-
`;b.enqueue(new TextEncoder().encode(c))},d=(0,e.Fn)(a=>{try{c({type:"running",runningSessionIds:a})}catch{}});c({type:"running",runningSessionIds:(0,e.HG)()});let f=setInterval(()=>{try{b.enqueue(new TextEncoder().encode(":\n\n"))}catch{}},3e4);a.signal?.addEventListener("abort",()=>{clearInterval(f),d();try{b.close()}catch{}})}});return new Response(b,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}d()}catch(a){d(a)}})},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5193,7831,402,6429],()=>b(b.s=
|
|
3
|
+
`;b.enqueue(new TextEncoder().encode(c))},d=(0,e.Fn)(a=>{try{c({type:"running",runningSessionIds:a})}catch{}});c({type:"running",runningSessionIds:(0,e.HG)()});let f=setInterval(()=>{try{b.enqueue(new TextEncoder().encode(":\n\n"))}catch{}},3e4);a.signal?.addEventListener("abort",()=>{clearInterval(f),d();try{b.close()}catch{}})}});return new Response(b,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}d()}catch(a){d(a)}})},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67186:(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(21878),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/running/events/route",pathname:"/api/agent/running/events",filename:"route",bundlePath:"app/api/agent/running/events/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/agent/running/events/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/agent/running/events/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5193,7831,402,6429],()=>b(b.s=67186));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=8197,a.ids=[8197],a.modules={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")},5452:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,dynamic:()=>i});var e=c(23211),f=c(56429),g=a([f]);f=(g.then?(await g)():g)[0];let i="force-dynamic";async function h(){return e.NextResponse.json({runningSessionIds:(0,f.HG)(),subscriberCount:(0,f.V$)()})}d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},
|
|
1
|
+
"use strict";(()=>{var a={};a.id=8197,a.ids=[8197],a.modules={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")},5452:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,dynamic:()=>i});var e=c(23211),f=c(56429),g=a([f]);f=(g.then?(await g)():g)[0];let i="force-dynamic";async function h(){return e.NextResponse.json({runningSessionIds:(0,f.HG)(),subscriberCount:(0,f.V$)()})}d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79748:a=>{a.exports=require("fs/promises")},84638:(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(5452),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/running/route",pathname:"/api/agent/running",filename:"route",bundlePath:"app/api/agent/running/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/agent/running/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/agent/running/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193,7831,402,6429],()=>b(b.s=84638));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=2752,a.ids=[2752],a.modules={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")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28327:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,dynamic:()=>j});var e=c(23211),f=c(56429),g=c(96640),h=a([f,g]);[f,g]=h.then?(await h)():h;let j="force-dynamic";async function i(a){let b=new URL(a.url).searchParams.get("cwd");return e.NextResponse.json({runningVersion:"0.8.
|
|
1
|
+
"use strict";(()=>{var a={};a.id=2752,a.ids=[2752],a.modules={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")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28327:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,dynamic:()=>j});var e=c(23211),f=c(56429),g=c(96640),h=a([f,g]);[f,g]=h.then?(await h)():h;let j="force-dynamic";async function i(a){let b=new URL(a.url).searchParams.get("cwd");return e.NextResponse.json({runningVersion:"0.8.136",pid:process.pid,uptimeSeconds:Math.round(process.uptime()),...(0,f.Bj)(),memory:b?(0,g.Wb)(b):null})}d()}catch(a){d(a)}})},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79148:(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(28327),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/agent/runtime/route",pathname:"/api/agent/runtime",filename:"route",bundlePath:"app/api/agent/runtime/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/agent/runtime/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/agent/runtime/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193,7831,402,6429],()=>b(b.s=79148));module.exports=c})();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{var a={};a.id=6442,a.ids=[6442],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},8977:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>p,GET:()=>k,HEAD:()=>l,OPTIONS:()=>q,PATCH:()=>o,POST:()=>m,PUT:()=>n,dynamic:()=>r});var e=c(37625),f=a([e]);e=(f.then?(await f)():f)[0];let r="force-dynamic",s=new Set(["connection","content-encoding","content-length","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","transfer-encoding","upgrade"]),t=["text/html","application/javascript","text/javascript","application/json","text/css","application/manifest+json"];function g(a){return`/api/apps/${encodeURIComponent(a)}`}function h(a,b,c){let d=new URL(a.url),e=c?.length?`/${c.map(encodeURIComponent).join("/")}`:"/";return`http://127.0.0.1:${b}${e}${d.search}`}function i(a,b){return new Response(b,{status:503,headers:{"Content-Type":"text/plain; charset=utf-8","Cache-Control":"no-cache","Retry-After":"1",...a?.appType==="h5adexp"?{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}:{}}})}async function j(a,b,c){var d;let f,j,k=(0,e.N5)(b);if(!k||"starting"!==k.status&&"running"!==k.status)return new Response("App is not running",{status:404});if("h5adexp"===k.appType&&"starting"===k.status&&!await (0,e.Yq)(k,15e3))return i(k,k.error??`${k.title} is still starting.`);let l=new Headers(a.headers);for(let a of s)l.delete(a);l.delete("host");let m=a.method.toUpperCase(),n="GET"===m||"HEAD"===m?void 0:await a.arrayBuffer();try{f=await fetch(h(a,k.port,c),{method:m,headers:l,body:n,redirect:"manual"})}catch(b){if(!("h5adexp"===k.appType&&await (0,e.Yq)(k,2e3)))return i(k,b instanceof Error?b.message:String(b));f=await fetch(h(a,k.port,c),{method:m,headers:l,body:n,redirect:"manual"})}let o=new Headers;f.headers.forEach((a,b)=>{s.has(b.toLowerCase())||o.set(b,a)});let p=function(a,b){if(!a)return a;if(a.startsWith("/"))return`${g(b)}${a}`;try{let c=new URL(a);return`${g(b)}${c.pathname}${c.search}`}catch{return a}}(f.headers.get("location"),b);if(p&&o.set("location",p),o.set("Cache-Control","no-cache"),"h5adexp"===k.appType&&(o.delete("content-security-policy"),o.delete("x-frame-options"),o.set("Cross-Origin-Opener-Policy","same-origin"),o.set("Cross-Origin-Embedder-Policy","require-corp")),"h5adexp"===k.appType&&(j=(f.headers.get("content-type")??"").toLowerCase(),t.some(a=>j.includes(a)))){let a;return o.delete("content-length"),new Response((d=await f.text(),a=g(b),d.replace(/(["'(`])\/api\//g,`$1${a}/api/`).replace(/(["'`])\/api(["'`])/g,`$1${a}/api$2`).replace(/(["'(`])\/static\//g,`$1${a}/static/`).replace(/(["'(`])\/serviceworker\.js/g,`$1${a}/serviceworker.js`).replace(/(["'(`])\/service-worker\.js/g,`$1${a}/service-worker.js`).replace(/(["'(`])\/manifest\.json/g,`$1${a}/manifest.json`).replace(/(["'(`])\/favicon\.ico/g,`$1${a}/favicon.ico`).replace(/(["'(`])\/logo192\.png/g,`$1${a}/logo192.png`).replace(/url\((['"]?)\/static\//g,`url($1${a}/static/`).replace(/n\.p="\//g,`n.p="${a}/`)),{status:f.status,statusText:f.statusText,headers:o})}return new Response(f.body,{status:f.status,statusText:f.statusText,headers:o})}async function k(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function l(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function m(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function n(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function o(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function p(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function q(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}d()}catch(a){d(a)}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},28354:a=>{"use strict";a.exports=require("util")},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")},30890:(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(8977),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/apps/[id]/[[...path]]/route",pathname:"/api/apps/[id]/[[...path]]",filename:"route",bundlePath:"app/api/apps/[id]/[[...path]]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/apps/[id]/[[...path]]/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/apps/[id]/[[...path]]/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},37625:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$4:()=>C,N5:()=>D,PZ:()=>H,Yq:()=>v,el:()=>E,sg:()=>G,vN:()=>F});var e=c(79646),f=c(91645),g=c(29021),h=c(33873),i=c(55511),j=c(28354),k=c(75430),l=c(15193),m=a([k]);k=(m.then?(await m)():m)[0];let I=(0,j.promisify)(e.execFile);function n(){return globalThis.__annovibeExternalApps||(globalThis.__annovibeExternalApps=new Map),globalThis.__annovibeExternalApps}function o(a){return`${a.appType}:${a.cwd}:${a.sessionId??""}:${a.filePath}`}function p(a,b){let c=String(b).split(/\r?\n/).filter(Boolean);a.logs.push(...c.map(a=>`[${new Date().toISOString()}] ${a}`)),a.logs.length>160&&a.logs.splice(0,a.logs.length-160)}function q(a){if(!a)return!1;try{return process.kill(a,0),!0}catch{return!1}}function r(a){return"starting"!==a.status&&"running"!==a.status||q(a.pid)||(a.status="stopped",a.error??=`${a.title} process is no longer running.`),a}async function s(a){if(!a||!q(a))return null;try{let{stdout:b}=await I("ps",["-o","rss=","-p",String(a)],{timeout:2500}),c=Number(b.trim().split(/\s+/)[0]);return Number.isFinite(c)?1024*c:null}catch{return null}}function t(a){return new Promise(b=>setTimeout(b,a))}async function u(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),b);try{return await fetch(a,{signal:c.signal,cache:"no-store"})}finally{clearTimeout(d)}}async function v(a,b){if(r(a),"error"===a.status||"stopped"===a.status)return!1;if("h5adexp"!==a.appType)return await t(900),r(a),"starting"===a.status&&q(a.pid)&&(a.status="running"),"running"===a.status;let c=Date.now()+(b??45e3),d="";for(;Date.now()<c;){let b=r(a);if("error"===b.status||"stopped"===b.status)return!1;try{let b=await u(`http://127.0.0.1:${a.port}/api/health`,1500);if(b.ok)return a.status="running",a.error=void 0,a.lastActivity=new Date().toISOString(),!0;d=`health returned HTTP ${b.status}`}catch(a){d=a instanceof Error?a.message:String(a)}await t(250)}return"starting"===a.status&&(a.error=`${a.title} did not become ready within ${b??45e3}ms${d?`; last error: ${d}`:""}.`,p(a,a.error)),!1}async function w(){return new Promise((a,b)=>{let c=(0,f.createServer)();c.unref(),c.on("error",b),c.listen(0,"127.0.0.1",()=>{let b=c.address(),d="object"==typeof b&&b?b.port:0;c.close(()=>a(d))})})}function x(a){return"h5adexp"===a?[".h5ad"]:[".rds",".qs"]}function y(a){return x(a).join(" or ")}function z(a){return"h5adexp"===a?"H5AD Exp":"stexp"}async function A(a){return(0,l.EO)({language:"r",cwd:a,policy:l.sE})}async function B(a,b){if("stexp"===a.appType){let b,c=await A(a.cwd),d=(b=(0,h.resolve)(process.cwd(),"..","stexp"),(0,g.existsSync)((0,h.join)(b,"DESCRIPTION"))?b:null);return p(a,`Using R kernel: ${c.command} ${c.args.join(" ")} (${c.source}${c.kernelId?`:${c.kernelId}`:""})`),d&&p(a,`Using local stexp package source: ${d}`),(0,e.spawn)(c.command,[...c.args,"-e",[d?`if (!requireNamespace('stexp', quietly = TRUE)) {
|
|
1
|
+
(()=>{var a={};a.id=6442,a.ids=[6442],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},8977:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>p,GET:()=>k,HEAD:()=>l,OPTIONS:()=>q,PATCH:()=>o,POST:()=>m,PUT:()=>n,dynamic:()=>r});var e=c(37625),f=a([e]);e=(f.then?(await f)():f)[0];let r="force-dynamic",s=new Set(["connection","content-encoding","content-length","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","transfer-encoding","upgrade"]),t=["text/html","application/javascript","text/javascript","application/json","text/css","application/manifest+json"];function g(a){return`/api/apps/${encodeURIComponent(a)}`}function h(a,b,c){let d=new URL(a.url),e=c?.length?`/${c.map(encodeURIComponent).join("/")}`:"/";return`http://127.0.0.1:${b}${e}${d.search}`}function i(a,b){return new Response(b,{status:503,headers:{"Content-Type":"text/plain; charset=utf-8","Cache-Control":"no-cache","Retry-After":"1",...a?.appType==="h5adexp"?{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}:{}}})}async function j(a,b,c){var d;let f,j,k=(0,e.N5)(b);if(!k||"starting"!==k.status&&"running"!==k.status)return new Response("App is not running",{status:404});if("h5adexp"===k.appType&&"starting"===k.status&&!await (0,e.Yq)(k,15e3))return i(k,k.error??`${k.title} is still starting.`);let l=new Headers(a.headers);for(let a of s)l.delete(a);l.delete("host");let m=a.method.toUpperCase(),n="GET"===m||"HEAD"===m?void 0:await a.arrayBuffer();try{f=await fetch(h(a,k.port,c),{method:m,headers:l,body:n,redirect:"manual"})}catch(b){if(!("h5adexp"===k.appType&&await (0,e.Yq)(k,2e3)))return i(k,b instanceof Error?b.message:String(b));f=await fetch(h(a,k.port,c),{method:m,headers:l,body:n,redirect:"manual"})}let o=new Headers;f.headers.forEach((a,b)=>{s.has(b.toLowerCase())||o.set(b,a)});let p=function(a,b){if(!a)return a;if(a.startsWith("/"))return`${g(b)}${a}`;try{let c=new URL(a);return`${g(b)}${c.pathname}${c.search}`}catch{return a}}(f.headers.get("location"),b);if(p&&o.set("location",p),o.set("Cache-Control","no-cache"),"h5adexp"===k.appType&&(o.delete("content-security-policy"),o.delete("x-frame-options"),o.set("Cross-Origin-Opener-Policy","same-origin"),o.set("Cross-Origin-Embedder-Policy","require-corp")),"h5adexp"===k.appType&&(j=(f.headers.get("content-type")??"").toLowerCase(),t.some(a=>j.includes(a)))){let a;return o.delete("content-length"),new Response((d=await f.text(),a=g(b),d.replace(/(["'(`])\/api\//g,`$1${a}/api/`).replace(/(["'`])\/api(["'`])/g,`$1${a}/api$2`).replace(/(["'(`])\/static\//g,`$1${a}/static/`).replace(/(["'(`])\/serviceworker\.js/g,`$1${a}/serviceworker.js`).replace(/(["'(`])\/service-worker\.js/g,`$1${a}/service-worker.js`).replace(/(["'(`])\/manifest\.json/g,`$1${a}/manifest.json`).replace(/(["'(`])\/favicon\.ico/g,`$1${a}/favicon.ico`).replace(/(["'(`])\/logo192\.png/g,`$1${a}/logo192.png`).replace(/url\((['"]?)\/static\//g,`url($1${a}/static/`).replace(/n\.p="\//g,`n.p="${a}/`)),{status:f.status,statusText:f.statusText,headers:o})}return new Response(f.body,{status:f.status,statusText:f.statusText,headers:o})}async function k(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function l(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function m(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function n(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function o(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function p(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}async function q(a,{params:b}){let{id:c,path:d}=await b;return j(a,c,d)}d()}catch(a){d(a)}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},28354:a=>{"use strict";a.exports=require("util")},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")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},37625:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$4:()=>C,N5:()=>D,PZ:()=>H,Yq:()=>v,el:()=>E,sg:()=>G,vN:()=>F});var e=c(79646),f=c(91645),g=c(29021),h=c(33873),i=c(55511),j=c(28354),k=c(75430),l=c(15193),m=a([k]);k=(m.then?(await m)():m)[0];let I=(0,j.promisify)(e.execFile);function n(){return globalThis.__annovibeExternalApps||(globalThis.__annovibeExternalApps=new Map),globalThis.__annovibeExternalApps}function o(a){return`${a.appType}:${a.cwd}:${a.sessionId??""}:${a.filePath}`}function p(a,b){let c=String(b).split(/\r?\n/).filter(Boolean);a.logs.push(...c.map(a=>`[${new Date().toISOString()}] ${a}`)),a.logs.length>160&&a.logs.splice(0,a.logs.length-160)}function q(a){if(!a)return!1;try{return process.kill(a,0),!0}catch{return!1}}function r(a){return"starting"!==a.status&&"running"!==a.status||q(a.pid)||(a.status="stopped",a.error??=`${a.title} process is no longer running.`),a}async function s(a){if(!a||!q(a))return null;try{let{stdout:b}=await I("ps",["-o","rss=","-p",String(a)],{timeout:2500}),c=Number(b.trim().split(/\s+/)[0]);return Number.isFinite(c)?1024*c:null}catch{return null}}function t(a){return new Promise(b=>setTimeout(b,a))}async function u(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),b);try{return await fetch(a,{signal:c.signal,cache:"no-store"})}finally{clearTimeout(d)}}async function v(a,b){if(r(a),"error"===a.status||"stopped"===a.status)return!1;if("h5adexp"!==a.appType)return await t(900),r(a),"starting"===a.status&&q(a.pid)&&(a.status="running"),"running"===a.status;let c=Date.now()+(b??45e3),d="";for(;Date.now()<c;){let b=r(a);if("error"===b.status||"stopped"===b.status)return!1;try{let b=await u(`http://127.0.0.1:${a.port}/api/health`,1500);if(b.ok)return a.status="running",a.error=void 0,a.lastActivity=new Date().toISOString(),!0;d=`health returned HTTP ${b.status}`}catch(a){d=a instanceof Error?a.message:String(a)}await t(250)}return"starting"===a.status&&(a.error=`${a.title} did not become ready within ${b??45e3}ms${d?`; last error: ${d}`:""}.`,p(a,a.error)),!1}async function w(){return new Promise((a,b)=>{let c=(0,f.createServer)();c.unref(),c.on("error",b),c.listen(0,"127.0.0.1",()=>{let b=c.address(),d="object"==typeof b&&b?b.port:0;c.close(()=>a(d))})})}function x(a){return"h5adexp"===a?[".h5ad"]:[".rds",".qs"]}function y(a){return x(a).join(" or ")}function z(a){return"h5adexp"===a?"H5AD Exp":"stexp"}async function A(a){return(0,l.EO)({language:"r",cwd:a,policy:l.sE})}async function B(a,b){if("stexp"===a.appType){let b,c=await A(a.cwd),d=(b=(0,h.resolve)(process.cwd(),"..","stexp"),(0,g.existsSync)((0,h.join)(b,"DESCRIPTION"))?b:null);return p(a,`Using R kernel: ${c.command} ${c.args.join(" ")} (${c.source}${c.kernelId?`:${c.kernelId}`:""})`),d&&p(a,`Using local stexp package source: ${d}`),(0,e.spawn)(c.command,[...c.args,"-e",[d?`if (!requireNamespace('stexp', quietly = TRUE)) {
|
|
2
2
|
install.packages(${JSON.stringify(d)}, repos = NULL, type = 'source')
|
|
3
|
-
}`:"if (!requireNamespace('stexp', quietly = TRUE)) stop('The stexp R package is required. Install it in the selected AnnoVibe R kernel environment.')","stexp::run_app(",` file = ${JSON.stringify(a.filePath)},`," host = '127.0.0.1',",` port = ${a.port},`," launch.browser = FALSE\n)"].join("\n")],{cwd:a.cwd,env:{...process.env,...c.env,ANNOVIBE_APP_ID:a.id,ANNOVIBE_STEXP_PATH:a.filePath,ANNOVIBE_RDS_PATH:a.filePath}})}let c=(0,h.join)((0,k.getAgentDir)(),"apps","h5adexp",a.id);(0,g.mkdirSync)(c,{recursive:!0});let d=function(){let a=(0,h.resolve)(process.cwd(),"..","h5adexp","bin","h5adexp.mjs");if((0,g.existsSync)(a))return{command:process.execPath,argsPrefix:[a]};let b=(process.env.PATH??"").split("win32"===process.platform?";":":").filter(Boolean),c="win32"===process.platform?["h5adexp.cmd","h5adexp.exe","h5adexp"]:["h5adexp"];if(!b.some(a=>c.some(b=>(0,g.existsSync)((0,h.join)(a,b)))))throw Error("h5adexp is not installed or not available on PATH. Install it with `npm install -g h5adexp`, or keep a local ../h5adexp checkout next to annovibe.");return{command:"h5adexp",argsPrefix:[]}}();return(0,e.spawn)(d.command,[...d.argsPrefix,"serve","--file",a.filePath,"--host","127.0.0.1","--port",String(a.port),"--embed","--origin",b,"--runtime-home",c],{cwd:a.cwd,env:{...process.env,H5ADEXP_HOME:c,ANNOVIBE_APP_ID:a.id}})}async function C(a){let b=a.appType,{cwd:c,filePath:d}=function(a,b,c){let d,e=(0,h.resolve)(b),f=(0,h.resolve)(c),i=(0,h.relative)(e,f);if(!i||i.startsWith("..")||i.startsWith("/")||i.startsWith("\\"))throw Error(`${y(a).toUpperCase()} file must be inside the active project.`);if(!(0,g.existsSync)(f)||!(0,g.statSync)(f).isFile())throw Error(`${y(a).toUpperCase()} file not found.`);if(d=f.toLowerCase(),!x(a).some(a=>d.endsWith(a)))throw Error(`Only ${y(a)} files can be opened with ${z(a)}.`);return{cwd:e,filePath:f}}(b,a.cwd,a.filePath),e=o({appType:b,cwd:c,filePath:d,sessionId:a.sessionId}),f=[...n().values()].find(a=>o({appType:a.appType,cwd:a.cwd,filePath:a.filePath,sessionId:a.sessionId})===e);if(f){if(r(f),"starting"===f.status||"running"===f.status)return f.lastActivity=new Date().toISOString(),"starting"===f.status&&await v(f),f;n().delete(f.id)}let j=(0,i.randomBytes)(9).toString("hex"),k=await w(),l=new Date().toISOString(),m=`/api/apps/${encodeURIComponent(j)}`,q=`http://127.0.0.1:${k}/`,s={id:j,appType:b,title:z(b),filePath:d,cwd:c,sessionId:a.sessionId??null,port:k,pid:null,status:"starting",url:m,directUrl:q,startedAt:l,lastActivity:l,logs:[]},t=await B(s,a.origin||"http://localhost:30141");return s.child=t,s.pid=t.pid??null,n().set(j,s),t.stdout.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running"),s.lastActivity=new Date().toISOString()}),t.stderr.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running")}),t.on("error",a=>{s.status="error",s.error=a.message,p(s,a.message)}),t.on("exit",(a,b)=>{s.status=0===a||"SIGTERM"===b?"stopped":"error",s.error="error"===s.status?`${s.title} exited with code ${a??"null"} signal ${b??"null"}`:s.error,p(s,`process exited: code=${a??"null"} signal=${b??"null"}`)}),await v(s),s}function D(a){let b=n().get(a);return b?r(b):null}function E(){return[...n().values()].map(a=>r(a))}async function F(a){let b=r(a),c=await s(b.pid),d=Date.now(),e=Date.parse(b.startedAt);return{id:b.id,appType:b.appType,title:b.title,filePath:b.filePath,cwd:b.cwd,sessionId:b.sessionId,port:b.port,pid:b.pid,status:b.status,url:b.url,directUrl:b.directUrl,startedAt:b.startedAt,lastActivity:b.lastActivity,uptimeMs:Number.isFinite(e)?Math.max(0,d-e):null,rssBytes:c,running:"starting"===b.status||"running"===b.status,logs:b.logs,error:b.error}}async function G(a){return Promise.all(a.map(a=>F(a)))}async function H(a){let b=n().get(a);return b?(b.lastActivity=new Date().toISOString(),b.child&&q(b.pid)&&(b.child.kill("SIGTERM"),await new Promise(a=>setTimeout(a,900)),q(b.pid)&&b.child.kill("SIGKILL")),b.status="stopped",b):null}d()}catch(a){d(a)}})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{"use strict";a.exports=require("node:fs")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{"use strict";a.exports=require("net")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5193],()=>b(b.s=30890));module.exports=c})();
|
|
3
|
+
}`:"if (!requireNamespace('stexp', quietly = TRUE)) stop('The stexp R package is required. Install it in the selected AnnoVibe R kernel environment.')","stexp::run_app(",` file = ${JSON.stringify(a.filePath)},`," host = '127.0.0.1',",` port = ${a.port},`," launch.browser = FALSE\n)"].join("\n")],{cwd:a.cwd,env:{...process.env,...c.env,ANNOVIBE_APP_ID:a.id,ANNOVIBE_STEXP_PATH:a.filePath,ANNOVIBE_RDS_PATH:a.filePath}})}let c=(0,h.join)((0,k.getAgentDir)(),"apps","h5adexp",a.id);(0,g.mkdirSync)(c,{recursive:!0});let d=function(){let a=(0,h.resolve)(process.cwd(),"..","h5adexp","bin","h5adexp.mjs");if((0,g.existsSync)(a))return{command:process.execPath,argsPrefix:[a]};let b=(process.env.PATH??"").split("win32"===process.platform?";":":").filter(Boolean),c="win32"===process.platform?["h5adexp.cmd","h5adexp.exe","h5adexp"]:["h5adexp"];if(!b.some(a=>c.some(b=>(0,g.existsSync)((0,h.join)(a,b)))))throw Error("h5adexp is not installed or not available on PATH. Install it with `npm install -g h5adexp`, or keep a local ../h5adexp checkout next to annovibe.");return{command:"h5adexp",argsPrefix:[]}}();return(0,e.spawn)(d.command,[...d.argsPrefix,"serve","--file",a.filePath,"--host","127.0.0.1","--port",String(a.port),"--embed","--origin",b,"--runtime-home",c],{cwd:a.cwd,env:{...process.env,H5ADEXP_HOME:c,ANNOVIBE_APP_ID:a.id}})}async function C(a){let b=a.appType,{cwd:c,filePath:d}=function(a,b,c){let d,e=(0,h.resolve)(b),f=(0,h.resolve)(c),i=(0,h.relative)(e,f);if(!i||i.startsWith("..")||i.startsWith("/")||i.startsWith("\\"))throw Error(`${y(a).toUpperCase()} file must be inside the active project.`);if(!(0,g.existsSync)(f)||!(0,g.statSync)(f).isFile())throw Error(`${y(a).toUpperCase()} file not found.`);if(d=f.toLowerCase(),!x(a).some(a=>d.endsWith(a)))throw Error(`Only ${y(a)} files can be opened with ${z(a)}.`);return{cwd:e,filePath:f}}(b,a.cwd,a.filePath),e=o({appType:b,cwd:c,filePath:d,sessionId:a.sessionId}),f=[...n().values()].find(a=>o({appType:a.appType,cwd:a.cwd,filePath:a.filePath,sessionId:a.sessionId})===e);if(f){if(r(f),"starting"===f.status||"running"===f.status)return f.lastActivity=new Date().toISOString(),"starting"===f.status&&await v(f),f;n().delete(f.id)}let j=(0,i.randomBytes)(9).toString("hex"),k=await w(),l=new Date().toISOString(),m=`/api/apps/${encodeURIComponent(j)}`,q=`http://127.0.0.1:${k}/`,s={id:j,appType:b,title:z(b),filePath:d,cwd:c,sessionId:a.sessionId??null,port:k,pid:null,status:"starting",url:m,directUrl:q,startedAt:l,lastActivity:l,logs:[]},t=await B(s,a.origin||"http://localhost:30141");return s.child=t,s.pid=t.pid??null,n().set(j,s),t.stdout.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running"),s.lastActivity=new Date().toISOString()}),t.stderr.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running")}),t.on("error",a=>{s.status="error",s.error=a.message,p(s,a.message)}),t.on("exit",(a,b)=>{s.status=0===a||"SIGTERM"===b?"stopped":"error",s.error="error"===s.status?`${s.title} exited with code ${a??"null"} signal ${b??"null"}`:s.error,p(s,`process exited: code=${a??"null"} signal=${b??"null"}`)}),await v(s),s}function D(a){let b=n().get(a);return b?r(b):null}function E(){return[...n().values()].map(a=>r(a))}async function F(a){let b=r(a),c=await s(b.pid),d=Date.now(),e=Date.parse(b.startedAt);return{id:b.id,appType:b.appType,title:b.title,filePath:b.filePath,cwd:b.cwd,sessionId:b.sessionId,port:b.port,pid:b.pid,status:b.status,url:b.url,directUrl:b.directUrl,startedAt:b.startedAt,lastActivity:b.lastActivity,uptimeMs:Number.isFinite(e)?Math.max(0,d-e):null,rssBytes:c,running:"starting"===b.status||"running"===b.status,logs:b.logs,error:b.error}}async function G(a){return Promise.all(a.map(a=>F(a)))}async function H(a){let b=n().get(a);return b?(b.lastActivity=new Date().toISOString(),b.child&&q(b.pid)&&(b.child.kill("SIGTERM"),await new Promise(a=>setTimeout(a,900)),q(b.pid)&&b.child.kill("SIGKILL")),b.status="stopped",b):null}d()}catch(a){d(a)}})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{"use strict";a.exports=require("node:fs")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},83920:(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(8977),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/apps/[id]/[[...path]]/route",pathname:"/api/apps/[id]/[[...path]]",filename:"route",bundlePath:"app/api/apps/[id]/[[...path]]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/apps/[id]/[[...path]]/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/apps/[id]/[[...path]]/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,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")},91645:a=>{"use strict";a.exports=require("net")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5193],()=>b(b.s=83920));module.exports=c})();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{var a={};a.id=3374,a.ids=[3374],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")},
|
|
1
|
+
(()=>{var a={};a.id=3374,a.ids=[3374],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")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},24752:(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(66425),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/apps/route",pathname:"/api/apps",filename:"route",bundlePath:"app/api/apps/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/apps/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/apps/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},28354:a=>{"use strict";a.exports=require("util")},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")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},37625:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$4:()=>C,N5:()=>D,PZ:()=>H,Yq:()=>v,el:()=>E,sg:()=>G,vN:()=>F});var e=c(79646),f=c(91645),g=c(29021),h=c(33873),i=c(55511),j=c(28354),k=c(75430),l=c(15193),m=a([k]);k=(m.then?(await m)():m)[0];let I=(0,j.promisify)(e.execFile);function n(){return globalThis.__annovibeExternalApps||(globalThis.__annovibeExternalApps=new Map),globalThis.__annovibeExternalApps}function o(a){return`${a.appType}:${a.cwd}:${a.sessionId??""}:${a.filePath}`}function p(a,b){let c=String(b).split(/\r?\n/).filter(Boolean);a.logs.push(...c.map(a=>`[${new Date().toISOString()}] ${a}`)),a.logs.length>160&&a.logs.splice(0,a.logs.length-160)}function q(a){if(!a)return!1;try{return process.kill(a,0),!0}catch{return!1}}function r(a){return"starting"!==a.status&&"running"!==a.status||q(a.pid)||(a.status="stopped",a.error??=`${a.title} process is no longer running.`),a}async function s(a){if(!a||!q(a))return null;try{let{stdout:b}=await I("ps",["-o","rss=","-p",String(a)],{timeout:2500}),c=Number(b.trim().split(/\s+/)[0]);return Number.isFinite(c)?1024*c:null}catch{return null}}function t(a){return new Promise(b=>setTimeout(b,a))}async function u(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),b);try{return await fetch(a,{signal:c.signal,cache:"no-store"})}finally{clearTimeout(d)}}async function v(a,b){if(r(a),"error"===a.status||"stopped"===a.status)return!1;if("h5adexp"!==a.appType)return await t(900),r(a),"starting"===a.status&&q(a.pid)&&(a.status="running"),"running"===a.status;let c=Date.now()+(b??45e3),d="";for(;Date.now()<c;){let b=r(a);if("error"===b.status||"stopped"===b.status)return!1;try{let b=await u(`http://127.0.0.1:${a.port}/api/health`,1500);if(b.ok)return a.status="running",a.error=void 0,a.lastActivity=new Date().toISOString(),!0;d=`health returned HTTP ${b.status}`}catch(a){d=a instanceof Error?a.message:String(a)}await t(250)}return"starting"===a.status&&(a.error=`${a.title} did not become ready within ${b??45e3}ms${d?`; last error: ${d}`:""}.`,p(a,a.error)),!1}async function w(){return new Promise((a,b)=>{let c=(0,f.createServer)();c.unref(),c.on("error",b),c.listen(0,"127.0.0.1",()=>{let b=c.address(),d="object"==typeof b&&b?b.port:0;c.close(()=>a(d))})})}function x(a){return"h5adexp"===a?[".h5ad"]:[".rds",".qs"]}function y(a){return x(a).join(" or ")}function z(a){return"h5adexp"===a?"H5AD Exp":"stexp"}async function A(a){return(0,l.EO)({language:"r",cwd:a,policy:l.sE})}async function B(a,b){if("stexp"===a.appType){let b,c=await A(a.cwd),d=(b=(0,h.resolve)(process.cwd(),"..","stexp"),(0,g.existsSync)((0,h.join)(b,"DESCRIPTION"))?b:null);return p(a,`Using R kernel: ${c.command} ${c.args.join(" ")} (${c.source}${c.kernelId?`:${c.kernelId}`:""})`),d&&p(a,`Using local stexp package source: ${d}`),(0,e.spawn)(c.command,[...c.args,"-e",[d?`if (!requireNamespace('stexp', quietly = TRUE)) {
|
|
2
2
|
install.packages(${JSON.stringify(d)}, repos = NULL, type = 'source')
|
|
3
|
-
}`:"if (!requireNamespace('stexp', quietly = TRUE)) stop('The stexp R package is required. Install it in the selected AnnoVibe R kernel environment.')","stexp::run_app(",` file = ${JSON.stringify(a.filePath)},`," host = '127.0.0.1',",` port = ${a.port},`," launch.browser = FALSE\n)"].join("\n")],{cwd:a.cwd,env:{...process.env,...c.env,ANNOVIBE_APP_ID:a.id,ANNOVIBE_STEXP_PATH:a.filePath,ANNOVIBE_RDS_PATH:a.filePath}})}let c=(0,h.join)((0,k.getAgentDir)(),"apps","h5adexp",a.id);(0,g.mkdirSync)(c,{recursive:!0});let d=function(){let a=(0,h.resolve)(process.cwd(),"..","h5adexp","bin","h5adexp.mjs");if((0,g.existsSync)(a))return{command:process.execPath,argsPrefix:[a]};let b=(process.env.PATH??"").split("win32"===process.platform?";":":").filter(Boolean),c="win32"===process.platform?["h5adexp.cmd","h5adexp.exe","h5adexp"]:["h5adexp"];if(!b.some(a=>c.some(b=>(0,g.existsSync)((0,h.join)(a,b)))))throw Error("h5adexp is not installed or not available on PATH. Install it with `npm install -g h5adexp`, or keep a local ../h5adexp checkout next to annovibe.");return{command:"h5adexp",argsPrefix:[]}}();return(0,e.spawn)(d.command,[...d.argsPrefix,"serve","--file",a.filePath,"--host","127.0.0.1","--port",String(a.port),"--embed","--origin",b,"--runtime-home",c],{cwd:a.cwd,env:{...process.env,H5ADEXP_HOME:c,ANNOVIBE_APP_ID:a.id}})}async function C(a){let b=a.appType,{cwd:c,filePath:d}=function(a,b,c){let d,e=(0,h.resolve)(b),f=(0,h.resolve)(c),i=(0,h.relative)(e,f);if(!i||i.startsWith("..")||i.startsWith("/")||i.startsWith("\\"))throw Error(`${y(a).toUpperCase()} file must be inside the active project.`);if(!(0,g.existsSync)(f)||!(0,g.statSync)(f).isFile())throw Error(`${y(a).toUpperCase()} file not found.`);if(d=f.toLowerCase(),!x(a).some(a=>d.endsWith(a)))throw Error(`Only ${y(a)} files can be opened with ${z(a)}.`);return{cwd:e,filePath:f}}(b,a.cwd,a.filePath),e=o({appType:b,cwd:c,filePath:d,sessionId:a.sessionId}),f=[...n().values()].find(a=>o({appType:a.appType,cwd:a.cwd,filePath:a.filePath,sessionId:a.sessionId})===e);if(f){if(r(f),"starting"===f.status||"running"===f.status)return f.lastActivity=new Date().toISOString(),"starting"===f.status&&await v(f),f;n().delete(f.id)}let j=(0,i.randomBytes)(9).toString("hex"),k=await w(),l=new Date().toISOString(),m=`/api/apps/${encodeURIComponent(j)}`,q=`http://127.0.0.1:${k}/`,s={id:j,appType:b,title:z(b),filePath:d,cwd:c,sessionId:a.sessionId??null,port:k,pid:null,status:"starting",url:m,directUrl:q,startedAt:l,lastActivity:l,logs:[]},t=await B(s,a.origin||"http://localhost:30141");return s.child=t,s.pid=t.pid??null,n().set(j,s),t.stdout.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running"),s.lastActivity=new Date().toISOString()}),t.stderr.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running")}),t.on("error",a=>{s.status="error",s.error=a.message,p(s,a.message)}),t.on("exit",(a,b)=>{s.status=0===a||"SIGTERM"===b?"stopped":"error",s.error="error"===s.status?`${s.title} exited with code ${a??"null"} signal ${b??"null"}`:s.error,p(s,`process exited: code=${a??"null"} signal=${b??"null"}`)}),await v(s),s}function D(a){let b=n().get(a);return b?r(b):null}function E(){return[...n().values()].map(a=>r(a))}async function F(a){let b=r(a),c=await s(b.pid),d=Date.now(),e=Date.parse(b.startedAt);return{id:b.id,appType:b.appType,title:b.title,filePath:b.filePath,cwd:b.cwd,sessionId:b.sessionId,port:b.port,pid:b.pid,status:b.status,url:b.url,directUrl:b.directUrl,startedAt:b.startedAt,lastActivity:b.lastActivity,uptimeMs:Number.isFinite(e)?Math.max(0,d-e):null,rssBytes:c,running:"starting"===b.status||"running"===b.status,logs:b.logs,error:b.error}}async function G(a){return Promise.all(a.map(a=>F(a)))}async function H(a){let b=n().get(a);return b?(b.lastActivity=new Date().toISOString(),b.child&&q(b.pid)&&(b.child.kill("SIGTERM"),await new Promise(a=>setTimeout(a,900)),q(b.pid)&&b.child.kill("SIGKILL")),b.status="stopped",b):null}d()}catch(a){d(a)}})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66425:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,POST:()=>i,dynamic:()=>j});var e=c(23211),f=c(37625),g=a([f]);f=(g.then?(await g)():g)[0];let j="force-dynamic";async function h(a){let{searchParams:b}=new URL(a.url),c=b.get("appId");if(!c)return e.NextResponse.json({apps:await (0,f.sg)((0,f.el)())});let d=(0,f.N5)(c);return d?e.NextResponse.json({app:await (0,f.vN)(d)}):e.NextResponse.json({error:"App not found"},{status:404})}async function i(a){try{let b=await a.json(),c=b.action??"start";if("start"===c){if("string"!=typeof b.filePath||"string"!=typeof b.cwd)return e.NextResponse.json({error:"filePath and cwd are required"},{status:400});let c="h5adexp"===b.appType?"h5adexp":"stexp",d=new URL(a.url).origin,g=await (0,f.$4)({appType:c,filePath:b.filePath,cwd:b.cwd,sessionId:"string"==typeof b.sessionId?b.sessionId:null,origin:d});return e.NextResponse.json({app:await (0,f.vN)(g)})}if("stop"===c){if("string"!=typeof b.appId)return e.NextResponse.json({error:"appId is required"},{status:400});let a=await (0,f.PZ)(b.appId);if(!a)return e.NextResponse.json({error:"App not found"},{status:404});return e.NextResponse.json({app:await (0,f.vN)(a)})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}d()}catch(a){d(a)}})},73024:a=>{"use strict";a.exports=require("node:fs")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{"use strict";a.exports=require("net")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193],()=>b(b.s=
|
|
3
|
+
}`:"if (!requireNamespace('stexp', quietly = TRUE)) stop('The stexp R package is required. Install it in the selected AnnoVibe R kernel environment.')","stexp::run_app(",` file = ${JSON.stringify(a.filePath)},`," host = '127.0.0.1',",` port = ${a.port},`," launch.browser = FALSE\n)"].join("\n")],{cwd:a.cwd,env:{...process.env,...c.env,ANNOVIBE_APP_ID:a.id,ANNOVIBE_STEXP_PATH:a.filePath,ANNOVIBE_RDS_PATH:a.filePath}})}let c=(0,h.join)((0,k.getAgentDir)(),"apps","h5adexp",a.id);(0,g.mkdirSync)(c,{recursive:!0});let d=function(){let a=(0,h.resolve)(process.cwd(),"..","h5adexp","bin","h5adexp.mjs");if((0,g.existsSync)(a))return{command:process.execPath,argsPrefix:[a]};let b=(process.env.PATH??"").split("win32"===process.platform?";":":").filter(Boolean),c="win32"===process.platform?["h5adexp.cmd","h5adexp.exe","h5adexp"]:["h5adexp"];if(!b.some(a=>c.some(b=>(0,g.existsSync)((0,h.join)(a,b)))))throw Error("h5adexp is not installed or not available on PATH. Install it with `npm install -g h5adexp`, or keep a local ../h5adexp checkout next to annovibe.");return{command:"h5adexp",argsPrefix:[]}}();return(0,e.spawn)(d.command,[...d.argsPrefix,"serve","--file",a.filePath,"--host","127.0.0.1","--port",String(a.port),"--embed","--origin",b,"--runtime-home",c],{cwd:a.cwd,env:{...process.env,H5ADEXP_HOME:c,ANNOVIBE_APP_ID:a.id}})}async function C(a){let b=a.appType,{cwd:c,filePath:d}=function(a,b,c){let d,e=(0,h.resolve)(b),f=(0,h.resolve)(c),i=(0,h.relative)(e,f);if(!i||i.startsWith("..")||i.startsWith("/")||i.startsWith("\\"))throw Error(`${y(a).toUpperCase()} file must be inside the active project.`);if(!(0,g.existsSync)(f)||!(0,g.statSync)(f).isFile())throw Error(`${y(a).toUpperCase()} file not found.`);if(d=f.toLowerCase(),!x(a).some(a=>d.endsWith(a)))throw Error(`Only ${y(a)} files can be opened with ${z(a)}.`);return{cwd:e,filePath:f}}(b,a.cwd,a.filePath),e=o({appType:b,cwd:c,filePath:d,sessionId:a.sessionId}),f=[...n().values()].find(a=>o({appType:a.appType,cwd:a.cwd,filePath:a.filePath,sessionId:a.sessionId})===e);if(f){if(r(f),"starting"===f.status||"running"===f.status)return f.lastActivity=new Date().toISOString(),"starting"===f.status&&await v(f),f;n().delete(f.id)}let j=(0,i.randomBytes)(9).toString("hex"),k=await w(),l=new Date().toISOString(),m=`/api/apps/${encodeURIComponent(j)}`,q=`http://127.0.0.1:${k}/`,s={id:j,appType:b,title:z(b),filePath:d,cwd:c,sessionId:a.sessionId??null,port:k,pid:null,status:"starting",url:m,directUrl:q,startedAt:l,lastActivity:l,logs:[]},t=await B(s,a.origin||"http://localhost:30141");return s.child=t,s.pid=t.pid??null,n().set(j,s),t.stdout.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running"),s.lastActivity=new Date().toISOString()}),t.stderr.on("data",a=>{p(s,a);let b=String(a);"starting"===s.status&&("h5adexp"!==s.appType||b.includes("Listening on")||b.includes("[h5adexp] Ready"))&&(s.status="running")}),t.on("error",a=>{s.status="error",s.error=a.message,p(s,a.message)}),t.on("exit",(a,b)=>{s.status=0===a||"SIGTERM"===b?"stopped":"error",s.error="error"===s.status?`${s.title} exited with code ${a??"null"} signal ${b??"null"}`:s.error,p(s,`process exited: code=${a??"null"} signal=${b??"null"}`)}),await v(s),s}function D(a){let b=n().get(a);return b?r(b):null}function E(){return[...n().values()].map(a=>r(a))}async function F(a){let b=r(a),c=await s(b.pid),d=Date.now(),e=Date.parse(b.startedAt);return{id:b.id,appType:b.appType,title:b.title,filePath:b.filePath,cwd:b.cwd,sessionId:b.sessionId,port:b.port,pid:b.pid,status:b.status,url:b.url,directUrl:b.directUrl,startedAt:b.startedAt,lastActivity:b.lastActivity,uptimeMs:Number.isFinite(e)?Math.max(0,d-e):null,rssBytes:c,running:"starting"===b.status||"running"===b.status,logs:b.logs,error:b.error}}async function G(a){return Promise.all(a.map(a=>F(a)))}async function H(a){let b=n().get(a);return b?(b.lastActivity=new Date().toISOString(),b.child&&q(b.pid)&&(b.child.kill("SIGTERM"),await new Promise(a=>setTimeout(a,900)),q(b.pid)&&b.child.kill("SIGKILL")),b.status="stopped",b):null}d()}catch(a){d(a)}})},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66425:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,POST:()=>i,dynamic:()=>j});var e=c(23211),f=c(37625),g=a([f]);f=(g.then?(await g)():g)[0];let j="force-dynamic";async function h(a){let{searchParams:b}=new URL(a.url),c=b.get("appId");if(!c)return e.NextResponse.json({apps:await (0,f.sg)((0,f.el)())});let d=(0,f.N5)(c);return d?e.NextResponse.json({app:await (0,f.vN)(d)}):e.NextResponse.json({error:"App not found"},{status:404})}async function i(a){try{let b=await a.json(),c=b.action??"start";if("start"===c){if("string"!=typeof b.filePath||"string"!=typeof b.cwd)return e.NextResponse.json({error:"filePath and cwd are required"},{status:400});let c="h5adexp"===b.appType?"h5adexp":"stexp",d=new URL(a.url).origin,g=await (0,f.$4)({appType:c,filePath:b.filePath,cwd:b.cwd,sessionId:"string"==typeof b.sessionId?b.sessionId:null,origin:d});return e.NextResponse.json({app:await (0,f.vN)(g)})}if("stop"===c){if("string"!=typeof b.appId)return e.NextResponse.json({error:"appId is required"},{status:400});let a=await (0,f.PZ)(b.appId);if(!a)return e.NextResponse.json({error:"App not found"},{status:404});return e.NextResponse.json({app:await (0,f.vN)(a)})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return e.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}d()}catch(a){d(a)}})},73024:a=>{"use strict";a.exports=require("node:fs")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{"use strict";a.exports=require("net")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5193],()=>b(b.s=24752));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=1541,a.ids=[1541],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},
|
|
1
|
+
(()=>{var a={};a.id=1541,a.ids=[1541],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13760:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,dynamic:()=>j});var e=c(75430),f=c(89950),g=c(28247),h=a([e]);e=(h.then?(await h)():h)[0];let j="force-dynamic";async function i(){let a=await e.ModelRuntime.create(),b=(0,f.z)(await (0,g.z)(a));return Response.json({providers:b})}d()}catch(a){d(a)}})},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},28247:(a,b,c)=>{"use strict";async function d(a){let b=a.getModels(),c=new Map;try{for(let b of(await a.listCredentials()))("api_key"===b.type||"oauth"===b.type)&&c.set(b.providerId,b.type)}catch{}let d=new Map;for(let a of b)d.set(a.provider,(d.get(a.provider)??0)+1);let e=[];for(let b of a.getProviders()){let f=d.get(b.id)??0;if(0===f)continue;let g=a.getProviderAuthStatus(b.id);e.push({id:b.id,name:b.name,hasApiKeyLogin:!!b.auth.apiKey?.login,hasOAuth:!!b.auth.oauth,...b.auth.oauth?.name?{oauthName:b.auth.oauth.name}:{},status:g,...c.has(b.id)?{credentialType:c.get(b.id)}:{},modelCount:f})}return e}c.d(b,{z:()=>d})},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")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},78335:()=>{},83606:(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(13760),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/auth/all-providers/route",pathname:"/api/auth/all-providers",filename:"route",bundlePath:"app/api/auth/all-providers/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/auth/all-providers/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/auth/all-providers/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,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.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=`${N} ${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(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!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=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.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!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.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:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)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});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||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)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,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")},89950:(a,b,c)=>{"use strict";c.d(b,{l:()=>h,z:()=>g});let d=new Set(["models_json_key","models_json_command"]),e={"openai-codex":"ChatGPT Plus/Pro","github-copilot":"GitHub Copilot"};function f(a){let b=new Set,c=[];for(let d of a)b.has(d.id)||(b.add(d.id),c.push(d));return c}function g(a){let b=[];for(let c of f(a)){if(!c.hasApiKeyLogin||c.status.source&&d.has(c.status.source))continue;let a=c.status.configured&&"oauth"!==c.credentialType;b.push({id:c.id,displayName:c.name,configured:a,...a&&c.status.source?{source:c.status.source}:{},modelCount:c.modelCount,supportsOAuth:c.hasOAuth})}return b}function h(a){let b=[];for(let c of f(a))c.hasOAuth&&b.push({id:c.id,name:e[c.id]??c.oauthName??c.name,usesCallbackServer:!1,loggedIn:"oauth"===c.credentialType,supportsApiKey:c.hasApiKeyLogin});return b}},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741],()=>b(b.s=83606));module.exports=c})();
|