agentroam-runtime-win32-x64 0.2.0-preview.27 → 0.2.0-preview.28
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/manifest.json +3 -3
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +6 -6
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +3 -3
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/required-server-files.json +1 -1
- package/runtime/.next/server/app/_not-found/page.js +1 -1
- package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
- package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +2 -2
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +3 -3
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid.body +1 -1
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
- package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/settings/route.js +1 -1
- package/runtime/.next/server/app/api/skills/route.js +1 -1
- package/runtime/.next/server/app/api/tools/route.js +1 -1
- package/runtime/.next/server/app/api/update/check/route.js +1 -1
- package/runtime/.next/server/app/api/update/install/route.js +1 -1
- package/runtime/.next/server/app/api/update/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
- package/runtime/.next/server/app/web/page.js +2 -2
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/web.html +1 -1
- package/runtime/.next/server/app/web.rsc +3 -3
- package/runtime/.next/server/app-paths-manifest.json +26 -26
- package/runtime/.next/server/chunks/1322.js +1 -1
- package/runtime/.next/server/chunks/5303.js +2 -2
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/app/web/{error-828d278147a0619d.js → error-459a614d3ef07cb1.js} +1 -1
- package/runtime/.next/static/chunks/app/web/{page-35b39ca2b50948ea.js → page-fe13a9839bbd078b.js} +1 -1
- package/runtime/.next/static/chunks/main-app-6226257cbf59e19d.js +1 -0
- package/runtime/native/agentroam-remote-desktop.exe +0 -0
- package/runtime/native/agentroam-remote-unlock.exe +0 -0
- package/runtime/node_modules/.package-lock.json +110 -110
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +103 -103
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +6 -6
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +23 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +27 -27
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +10 -10
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +81 -81
- package/runtime/package-lock.json +230 -254
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/{App-BV4kYZkz.js → App-D0fABa73.js} +13 -13
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-Do5AcuX_.js → abnfDiagram-VCTEODGH-DjNCARX_.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-BkMRM5qT.js → arc-CqF9tsfq.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-B5TsBL43.js → architectureDiagram-5GKGNRK7-B8XoyRpi.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-N9bJqBUB.js → blockDiagram-I7D4REHJ-DJWEWBAG.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-BxVjL6yS.js → c4Diagram-7LVT6UL2-CCtRRlFH.js} +1 -1
- package/runtime/webapp/dist/assets/channel-lOQR-YTy.js +1 -0
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-CRlvnk-H.js → chunk-2Q5K7J3B-5lvnyxXp.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CTfTpmju.js → chunk-5VM5RSS4-DVLpJLjM.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-DRIdilcI.js → chunk-F27PBJKO-DUQQyF6E.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-DbbH1n_L.js → chunk-IMKFNOWR-BYqLGzV4.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-Dia-9cuw.js → chunk-JWPE2WC7-BnScQXxW.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-CIL5fACk.js → chunk-POPQ4Y6H-C4L3XQJS.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-S-3ji33i.js → chunk-SVP7TREG-B87wPXZG.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BJ_fyq9q.js → chunk-TICWLB2K-CwY3NJZh.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-BblxA1iR.js → chunk-XXDRQBXY-VaoFdYzy.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-CODoFoHA.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-CODoFoHA.js +1 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-BGwRGiQo.js → cose-bilkent-JH36ORCC-Cdy954zb.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-DFEzwQRu.js → cynefin-OW5HDTMX-Ce6LdjlA.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-CzihU8wO.js → cynefinDiagram-5FMLGOSQ-DMCLXHXT.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DJKewYwF.js → dagre-GXQ25YYZ-C1ZaA_nb.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-BNUrI1hE.js → diagram-S7CK7UJ4-DhMDevUw.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-cw_cw9ua.js → diagram-UQ7AKVKN-DUvFhqRK.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-C4T-8Eca.js → diagram-VSXAHHWV-DMGwVFJ1.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-MyuLlrpw.js → diagram-VX7I27RA-BJEEB_v1.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-BzWxssBs.js → diagram-Z3DM3KII-BYVk_HIb.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CjvfkFRI.js → ebnfDiagram-PWID7BFC-YmX93FGE.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-CVWTAwhU.js → erDiagram-RLTQ6QDP-BoSBxBDD.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-CT-NnFSy.js → flowDiagram-HODETNUW-Bd1gHtPx.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-3qfHOqqu.js → ganttDiagram-EL5Y4UJY-DMnELgPc.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-CPFHC6Vp.js → gitGraphDiagram-WWUBYQGX-Bo53RZ53.js} +1 -1
- package/runtime/webapp/dist/assets/{index-tLqfv8or.js → index-BNlTLpxu.js} +3 -3
- package/runtime/webapp/dist/assets/{index-STW1N_Ms.css → index-BwHfIr5_.css} +1 -1
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-Cdsia2Nv.js → infoDiagram-27XIBGKW-nYvvSuyV.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-0b21noVS.js → ishikawaDiagram-5VMMS53U-B2ylUHT-.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-KZX3onG9.js → journeyDiagram-3NMN7TZE-BrMRIVJG.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-B4V1PurW.js → kanban-definition-UXKFOSKX-C6KqVjYP.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-BfWjcmci.js → layout-qijDjnh2.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-BwHZSu70.js → linear-uDYQWzwO.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CS-Qck8A.js → mermaid.core-CaLm9OSy.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BK0xfb1e.js → mindmap-definition-YA3MSWOX-IvngA4mV.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-B_qjctIX.js → pegDiagram-XKGWAZYB-uOQ6ujGf.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-DugWyRMR.js → pieDiagram-E7YTZNPT-DuITuGqI.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-BBt0PqPR.js → quadrantDiagram-AXDQQJYC-6pwUsamI.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-M_FTNokn.js → railroadDiagram-O6MQD6OU-DfKWLDxT.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-D9zuyiF1.js → requirementDiagram-BXWQKSXE-Bg8aLeo2.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-D3gs7s8w.js → sankeyDiagram-P5KCCOFB-Bvn1cbgD.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-BOpItJnp.js → sequenceDiagram-WJ2MYXX4-wV1vkC70.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-TbA5bDD8.js → sizeCapture-INFHLROL-mgdL0u6j.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-iJ3XA-NR.js → stateDiagram-D77RDMKH-_M_OUxTl.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DTCmXaGU.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-BqtIE9-u.js → swimlanes-42K2YHIH-DRdG-4hh.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DanX6zK_.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-BCOCspQ_.js → timeline-definition-24CTP7MA-C5Iq9I3a.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CO_0QVh_.js → vennDiagram-4TSXK5OY-C3g7k5-y.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-Dy0r-jRc.js → wardleyDiagram-VM6X3IG4-BLG-jBgv.js} +1 -1
- package/runtime/webapp/dist/assets/{web-B3KLX7M6.js → web-Cs04qlNE.js} +1 -1
- package/runtime/webapp/dist/assets/{web-Gjp2DwYg.js → web-DBnlvEa8.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-up3gC77P.js → xychartDiagram-S5SC5T6Z-3CCJVyYa.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/.next/static/chunks/main-app-07d67f2d4e96ecb8.js +0 -1
- package/runtime/node_modules/@agent/core/dist/domain/browser-live/BrowserLiveRegistry.d.ts +0 -43
- package/runtime/node_modules/@agent/core/dist/domain/browser-live/BrowserLiveRegistry.test.d.ts +0 -2
- package/runtime/node_modules/@agent/core/dist/domain/browser-live/entities.d.ts +0 -57
- package/runtime/webapp/dist/assets/channel-DnRSB32E.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-D-wXeWBH.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-D-wXeWBH.js +0 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-By07NE3B.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-C_L079nV.js +0 -8
- /package/runtime/.next/static/{09ZbHWJZJx0I2oH6W3_R- → 1rz-WVZkEjfiC8zmdrxjC}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{09ZbHWJZJx0I2oH6W3_R- → 1rz-WVZkEjfiC8zmdrxjC}/_ssgManifest.js +0 -0
package/manifest.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"packageVersion": "0.2.0-preview.
|
|
2
|
+
"packageVersion": "0.2.0-preview.28",
|
|
3
3
|
"target": "windows-amd64",
|
|
4
4
|
"schemaVersion": 2,
|
|
5
5
|
"minimumNodeVersion": "22.22.0",
|
|
6
6
|
"nativeFiles": {
|
|
7
|
-
"native/agentroam-remote-desktop.exe": "
|
|
8
|
-
"native/agentroam-remote-unlock.exe": "
|
|
7
|
+
"native/agentroam-remote-desktop.exe": "a029a373c0c7720c37c3b77e4303d1d344aa57e3d18f00804399ecc910bbf87e",
|
|
8
|
+
"native/agentroam-remote-unlock.exe": "9f6f548b0b3e012f3b41c09b51a6cedb1387cfa4535ab38ca57002bef4b97840",
|
|
9
9
|
"node_modules/better-sqlite3/prebuilds/win32-x64.node": "e21e5efd71fba66578e95b62554d9028064a80dafd7221bf8a8ef155de8d240a",
|
|
10
10
|
"node_modules/node-pty/prebuilds/win32-x64/conpty.node": "ee8f4e6f4dad71939eecfda11de249400e34bfefe4c8b48af13f3b5476f4035b",
|
|
11
11
|
"node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node": "879dd94cfc79f1e263a00077597ae9448a5394b7d193381aaa50d992a1f91090",
|
package/package.json
CHANGED
package/runtime/.next/BUILD_ID
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1rz-WVZkEjfiC8zmdrxjC
|
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
"static/chunks/webpack-daf53832c67c6b20.js",
|
|
5
5
|
"static/chunks/3cc391f0-d7ec74603652803d.js",
|
|
6
6
|
"static/chunks/183-d2f78a21998813ba.js",
|
|
7
|
-
"static/chunks/main-app-
|
|
7
|
+
"static/chunks/main-app-6226257cbf59e19d.js",
|
|
8
8
|
"static/chunks/app/_not-found/page-4a73d1777b316883.js"
|
|
9
9
|
],
|
|
10
10
|
"/layout": [
|
|
11
11
|
"static/chunks/webpack-daf53832c67c6b20.js",
|
|
12
12
|
"static/chunks/3cc391f0-d7ec74603652803d.js",
|
|
13
13
|
"static/chunks/183-d2f78a21998813ba.js",
|
|
14
|
-
"static/chunks/main-app-
|
|
14
|
+
"static/chunks/main-app-6226257cbf59e19d.js",
|
|
15
15
|
"static/chunks/app/layout-9176f750902030b5.js"
|
|
16
16
|
],
|
|
17
17
|
"/web/page": [
|
|
18
18
|
"static/chunks/webpack-daf53832c67c6b20.js",
|
|
19
19
|
"static/chunks/3cc391f0-d7ec74603652803d.js",
|
|
20
20
|
"static/chunks/183-d2f78a21998813ba.js",
|
|
21
|
-
"static/chunks/main-app-
|
|
21
|
+
"static/chunks/main-app-6226257cbf59e19d.js",
|
|
22
22
|
"static/chunks/184-af5bc14575fc8ebd.js",
|
|
23
|
-
"static/chunks/app/web/page-
|
|
23
|
+
"static/chunks/app/web/page-fe13a9839bbd078b.js"
|
|
24
24
|
],
|
|
25
25
|
"/web/error": [
|
|
26
26
|
"static/chunks/webpack-daf53832c67c6b20.js",
|
|
27
27
|
"static/chunks/3cc391f0-d7ec74603652803d.js",
|
|
28
28
|
"static/chunks/183-d2f78a21998813ba.js",
|
|
29
|
-
"static/chunks/main-app-
|
|
30
|
-
"static/chunks/app/web/error-
|
|
29
|
+
"static/chunks/main-app-6226257cbf59e19d.js",
|
|
30
|
+
"static/chunks/app/web/error-459a614d3ef07cb1.js"
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/_not-found/page":"/_not-found","/api/
|
|
1
|
+
{"/_not-found/page":"/_not-found","/api/auth/verify/route":"/api/auth/verify","/api/mcp/connect/route":"/api/mcp/connect","/api/mcp/servers/route":"/api/mcp/servers","/api/memory/[key]/route":"/api/memory/[key]","/api/mcp/disconnect/route":"/api/mcp/disconnect","/api/plugins/load/route":"/api/plugins/load","/api/projects/[id]/route":"/api/projects/[id]","/api/projects/check/route":"/api/projects/check","/api/projects/directories/route":"/api/projects/directories","/api/projects/roots/route":"/api/projects/roots","/api/projects/route":"/api/projects","/api/push/subscribe/route":"/api/push/subscribe","/api/push/unsubscribe/route":"/api/push/unsubscribe","/api/push/vapid/route":"/api/push/vapid","/api/remote-tools/register/route":"/api/remote-tools/register","/api/memory/route":"/api/memory","/api/skills/route":"/api/skills","/api/tools/route":"/api/tools","/api/web-auth/login/route":"/api/web-auth/login","/api/web-auth/revoke-all/route":"/api/web-auth/revoke-all","/api/web-auth/setup/route":"/api/web-auth/setup","/api/web-auth/logout/route":"/api/web-auth/logout","/api/web-console/history/route":"/api/web-console/history","/api/web-console/preferences/route":"/api/web-console/preferences","/web/page":"/web","/api/agent/abort/route":"/api/agent/abort","/api/agent/answer/route":"/api/agent/answer","/api/agent-workspaces/route":"/api/agent-workspaces","/api/agent/harness/status/route":"/api/agent/harness/status","/api/agent-workspaces/[workspaceId]/sessions/route":"/api/agent-workspaces/[workspaceId]/sessions","/api/agent/model/route":"/api/agent/model","/api/agent/models/route":"/api/agent/models","/api/agent/steer/route":"/api/agent/steer","/api/agent/runtime-health/route":"/api/agent/runtime-health","/api/business/route":"/api/business","/api/agent/run/route":"/api/agent/run","/api/sessions/[id]/fork/route":"/api/sessions/[id]/fork","/api/sessions/[id]/changes/route":"/api/sessions/[id]/changes","/api/agent/stream/route":"/api/agent/stream","/api/sessions/[id]/handoff/route":"/api/sessions/[id]/handoff","/api/sessions/[id]/release/route":"/api/sessions/[id]/release","/api/sessions/[id]/query-index/route":"/api/sessions/[id]/query-index","/api/sessions/[id]/goals/route":"/api/sessions/[id]/goals","/api/sessions/[id]/thread-goal/route":"/api/sessions/[id]/thread-goal","/api/sessions/[id]/tool-result/route":"/api/sessions/[id]/tool-result","/api/settings/route":"/api/settings","/api/sessions/route":"/api/sessions","/api/sessions/[id]/route":"/api/sessions/[id]","/api/update/check/route":"/api/update/check","/api/update/status/route":"/api/update/status","/api/update/install/route":"/api/update/install","/api/web-console/bootstrap/route":"/api/web-console/bootstrap","/api/client-logs/route":"/api/client-logs","/api/web-auth/status/route":"/api/web-auth/status","/api/web-console/device-state/route":"/api/web-console/device-state"}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/1rz-WVZkEjfiC8zmdrxjC/_buildManifest.js",
|
|
9
|
+
"static/1rz-WVZkEjfiC8zmdrxjC/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [
|
|
12
12
|
"static/chunks/webpack-daf53832c67c6b20.js",
|
|
13
13
|
"static/chunks/3cc391f0-d7ec74603652803d.js",
|
|
14
14
|
"static/chunks/183-d2f78a21998813ba.js",
|
|
15
|
-
"static/chunks/main-app-
|
|
15
|
+
"static/chunks/main-app-6226257cbf59e19d.js"
|
|
16
16
|
],
|
|
17
17
|
"pages": {
|
|
18
18
|
"/_app": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":4,"routes":{"/api/mcp/servers":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/mcp/layout,_N_T_/api/mcp/servers/layout,_N_T_/api/mcp/servers/route,_N_T_/api/mcp/servers"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/mcp/servers","dataRoute":null},"/api/projects/roots":{"initialHeaders":{"cache-control":"no-store","content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/projects/layout,_N_T_/api/projects/roots/layout,_N_T_/api/projects/roots/route,_N_T_/api/projects/roots"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/projects/roots","dataRoute":null},"/api/push/vapid":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/push/layout,_N_T_/api/push/vapid/layout,_N_T_/api/push/vapid/route,_N_T_/api/push/vapid"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/push/vapid","dataRoute":null},"/api/tools":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/tools/layout,_N_T_/api/tools/route,_N_T_/api/tools"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/tools","dataRoute":null},"/web":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/web","dataRoute":"/web.rsc"}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"
|
|
1
|
+
{"version":4,"routes":{"/api/mcp/servers":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/mcp/layout,_N_T_/api/mcp/servers/layout,_N_T_/api/mcp/servers/route,_N_T_/api/mcp/servers"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/mcp/servers","dataRoute":null},"/api/projects/roots":{"initialHeaders":{"cache-control":"no-store","content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/projects/layout,_N_T_/api/projects/roots/layout,_N_T_/api/projects/roots/route,_N_T_/api/projects/roots"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/projects/roots","dataRoute":null},"/api/push/vapid":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/push/layout,_N_T_/api/push/vapid/layout,_N_T_/api/push/vapid/route,_N_T_/api/push/vapid"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/push/vapid","dataRoute":null},"/api/tools":{"initialHeaders":{"content-type":"application/json","x-next-cache-tags":"_N_T_/layout,_N_T_/api/layout,_N_T_/api/tools/layout,_N_T_/api/tools/route,_N_T_/api/tools"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/api/tools","dataRoute":null},"/web":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/web","dataRoute":"/web.rsc"}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"2ea41d5ef32fc77e5a85d3487bcea690","previewModeSigningKey":"d79da5e851290587afbdcc50a194d697c6ab8ab14832d95a7b935e1c34867da4","previewModeEncryptionKey":"15ddbd26d226b69f3fbd070a60074ab98e039e59f74a9457bb4f3534336a673e"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"config":{"env":{},"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"distDir":".next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"analyticsId":"","images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":true,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"experimental":{"multiZoneDraftMode":false,"prerenderEarlyExit":false,"serverMinification":true,"serverSourceMaps":false,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":
|
|
1
|
+
{"version":1,"config":{"env":{},"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"distDir":".next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"analyticsId":"","images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":true,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"experimental":{"multiZoneDraftMode":false,"prerenderEarlyExit":false,"serverMinification":true,"serverSourceMaps":false,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":9,"memoryBasedWorkersCount":false,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":true,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"outputFileTracingRoot":"/Volumes/ext/project/team-agent","swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"adjustFontFallbacks":false,"adjustFontFallbacksWithSizeAdjust":false,"typedRoutes":false,"instrumentationHook":false,"bundlePagesExternals":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"missingSuspenseWithCSRBailout":true,"optimizeServerReact":true,"useEarlyImport":false,"staleTimes":{"dynamic":30,"static":300},"serverComponentsExternalPackages":["@anthropic-ai/claude-agent-sdk"],"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"configFileName":"next.config.js"},"appDir":"/Volumes/ext/project/team-agent/packages/server","relativeAppDir":"packages/server","files":[".next/routes-manifest.json",".next/server/pages-manifest.json",".next/build-manifest.json",".next/prerender-manifest.json",".next/server/middleware-manifest.json",".next/server/middleware-build-manifest.js",".next/server/middleware-react-loadable-manifest.js",".next/server/app-paths-manifest.json",".next/app-path-routes-manifest.json",".next/app-build-manifest.json",".next/server/server-reference-manifest.js",".next/server/server-reference-manifest.json",".next/react-loadable-manifest.json",".next/server/font-manifest.json",".next/BUILD_ID",".next/server/next-font-manifest.js",".next/server/next-font-manifest.json"],"ignore":["../../node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={};e.id=7409,e.ids=[7409],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},
|
|
1
|
+
(()=>{var e={};e.id=7409,e.ids=[7409],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>i.a,__next_app__:()=>c,originalPathname:()=>p,pages:()=>d,routeModule:()=>f,tree:()=>u}),n(1360),n(3028),n(4972);var r=n(1772),o=n(5042),s=n(5663),i=n.n(s),a=n(4812),l={};for(let e in a)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>a[e]);n.d(t,l);let u=["",{children:["/_not-found",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.t.bind(n,3028,23)),"next/dist/client/components/not-found-error"]}]},{}]},{layout:[()=>Promise.resolve().then(n.bind(n,4972)),"/Volumes/ext/project/team-agent/packages/server/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,3028,23)),"next/dist/client/components/not-found-error"]}],d=[],p="/_not-found/page",c={require:n,loadChunk:()=>Promise.resolve()},f=new r.AppPageRouteModule({definition:{kind:o.x.APP_PAGE,page:"/_not-found/page",pathname:"/_not-found",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:u}})},992:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,1782,23)),Promise.resolve().then(n.t.bind(n,8949,23)),Promise.resolve().then(n.t.bind(n,6569,23)),Promise.resolve().then(n.t.bind(n,8718,23)),Promise.resolve().then(n.t.bind(n,7415,23)),Promise.resolve().then(n.t.bind(n,8781,23))},2027:()=>{},5289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PARALLEL_ROUTE_DEFAULT_PATH:function(){return o},default:function(){return s}});let r=n(5289),o="next/dist/client/components/parallel-route-default.js";function s(){(0,r.notFound)()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4972:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,metadata:()=>o,viewport:()=>s});var r=n(3477);let o={title:"AgentRoam",manifest:"/manifest.webmanifest",appleWebApp:{capable:!0,title:"AgentRoam",statusBarStyle:"default"},icons:{icon:"/pwa/icon-192.png",apple:"/pwa/icon-192.png"},description:"General-purpose AI agent API server"},s={themeColor:"#f5f6fa"};function i({children:e}){return r.jsx("html",{lang:"en",children:(0,r.jsxs)("body",{children:[e,r.jsx("script",{src:"/pwa/install.js",defer:!0})]})})}}};var t=require("../../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[8375,5303],()=>n(4743));module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"1338":{"*":{"id":"8718","name":"*","chunks":[],"async":false}},"1573":{"*":{"id":"8781","name":"*","chunks":[],"async":false}},"3194":{"*":{"id":"8383","name":"*","chunks":[],"async":false}},"5613":{"*":{"id":"8949","name":"*","chunks":[],"async":false}},"6061":{"*":{"id":"7919","name":"*","chunks":[],"async":false}},"6554":{"*":{"id":"6569","name":"*","chunks":[],"async":false}},"7709":{"*":{"id":"1782","name":"*","chunks":[],"async":false}},"9011":{"*":{"id":"7415","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"1338":{"*":{"id":"8718","name":"*","chunks":[],"async":false}},"1573":{"*":{"id":"8781","name":"*","chunks":[],"async":false}},"3194":{"*":{"id":"8383","name":"*","chunks":[],"async":false}},"5613":{"*":{"id":"8949","name":"*","chunks":[],"async":false}},"6061":{"*":{"id":"7919","name":"*","chunks":[],"async":false}},"6554":{"*":{"id":"6569","name":"*","chunks":[],"async":false}},"7709":{"*":{"id":"1782","name":"*","chunks":[],"async":false}},"9011":{"*":{"id":"7415","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/app-router.js":{"id":7709,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/app-router.js":{"id":7709,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/client-page.js":{"id":5613,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/client-page.js":{"id":5613,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/error-boundary.js":{"id":6554,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":6554,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/layout-router.js":{"id":1338,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/layout-router.js":{"id":1338,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/not-found-boundary.js":{"id":9011,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":9011,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1573,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1573,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/packages/server/app/web/page.tsx":{"id":6061,"name":"*","chunks":[],"async":false},"/Volumes/ext/project/team-agent/packages/server/app/web/error.tsx":{"id":3194,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Volumes/ext/project/team-agent/packages/server/":[],"/Volumes/ext/project/team-agent/packages/server/app/layout":[],"/Volumes/ext/project/team-agent/packages/server/app/_not-found/page":[]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-daf53832c67c6b20.js"/><script src="/_next/static/chunks/3cc391f0-d7ec74603652803d.js" async=""></script><script src="/_next/static/chunks/183-d2f78a21998813ba.js" async=""></script><script src="/_next/static/chunks/main-app-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-daf53832c67c6b20.js"/><script src="/_next/static/chunks/3cc391f0-d7ec74603652803d.js" async=""></script><script src="/_next/static/chunks/183-d2f78a21998813ba.js" async=""></script><script src="/_next/static/chunks/main-app-6226257cbf59e19d.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="theme-color" content="#f5f6fa"/><title>AgentRoam</title><meta name="description" content="General-purpose AI agent API server"/><link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="AgentRoam"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><link rel="icon" href="/pwa/icon-192.png"/><link rel="apple-touch-icon" href="/pwa/icon-192.png"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/pwa/install.js" defer=""></script><script src="/_next/static/chunks/webpack-daf53832c67c6b20.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[7709,[],\"\"]\n3:I[1338,[],\"\"]\n4:I[1573,[],\"\"]\na:I[6554,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"1rz-WVZkEjfiC8zmdrxjC\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],[\"$\",\"script\",null,{\"src\":\"/pwa/install.js\",\"defer\":true}]]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"name\":\"theme-color\",\"content\":\"#f5f6fa\"}],[\"$\",\"meta\",\"2\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"3\",{\"children\":\"AgentRoam\"}],[\"$\",\"meta\",\"4\",{\"name\":\"description\",\"content\":\"General-purpose AI agent API server\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"7\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"AgentRoam\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"9\",{\"rel\":\"icon\",\"href\":\"/pwa/icon-192.png\"}],[\"$\",\"link\",\"10\",{\"rel\":\"apple-touch-icon\",\"href\":\"/pwa/icon-192.png\"}]]\n2:null\n"])</script></body></html>
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
5:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"}
|
|
5
5
|
6:{"display":"inline-block"}
|
|
6
6
|
7:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0}
|
|
7
|
-
0:["
|
|
7
|
+
0:["1rz-WVZkEjfiC8zmdrxjC",[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["/_not-found",{"children":["__PAGE__",{},[["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","/_not-found","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","html",null,{"lang":"en","children":["$","body",null,{"children":[["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}],["$","script",null,{"src":"/pwa/install.js","defer":true}]]}]}]],null],null],["$L8",["$","meta",null,{"name":"robots","content":"noindex"}]]]]]
|
|
8
8
|
8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"name":"theme-color","content":"#f5f6fa"}],["$","meta","2",{"charSet":"utf-8"}],["$","title","3",{"children":"AgentRoam"}],["$","meta","4",{"name":"description","content":"General-purpose AI agent API server"}],["$","link","5",{"rel":"manifest","href":"/manifest.webmanifest","crossOrigin":"use-credentials"}],["$","meta","6",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","7",{"name":"apple-mobile-web-app-title","content":"AgentRoam"}],["$","meta","8",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","9",{"rel":"icon","href":"/pwa/icon-192.png"}],["$","link","10",{"rel":"apple-touch-icon","href":"/pwa/icon-192.png"}]]
|
|
9
9
|
1:null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=816,e.ids=[816],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},1898:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>l,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>p,staticGenerationAsyncStorage:()=>h});var s=r(7786),i=r(5042),a=r(2184),o=r(5746),u=e([o]);o=(u.then?(await u)():u)[0];let c=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/abort/route",pathname:"/api/agent/abort",filename:"route",bundlePath:"app/api/agent/abort/route"},resolvedPagePath:"/Users/caoqu/team-agent/customer-agent/packages/server/app/api/agent/abort/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:p}=c,m="/api/agent/abort/route";function l(){return(0,a.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:h})}n()}catch(e){n(e)}})},5746:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{POST:()=>l});var s=r(1890),i=r(7186),a=r(2083),o=r(1366),u=e([i,a,o]);async function l(e){let t;try{t=(await e.json()).sessionId}catch{}if(t&&(0,a.V_)(t)){try{await (0,a.NL)().abort(t)}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Abort failed"},{status:500})}return s.NextResponse.json({status:"aborted"})}return t&&(0,o.C)().requestStop(t),i.agentHost.abort(t),s.NextResponse.json({status:"aborted"})}[i,a,o]=u.then?(await u)():u,n()}catch(e){n(e)}})},2560:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(7718),s=r(7561),i=r(9411),a=r(1322);function o(e){if(!e.trim())return!1;try{return(0,s.accessSync)(e,s.constants.X_OK),!0}catch{return!1}}function u(e){try{return(0,a.wyD)((0,n.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function l(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let n=o(r);t.push({source:"pin",path:r,executable:n,version:n?u(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(i.delimiter).filter(Boolean)){let r=(0,i.resolve)(t,e);if(o(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:u(n)}),(0,a.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}},2083:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{NL:()=>g,V_:()=>v,WW:()=>O});var s=r(7561),i=r(612),a=r(9411),o=r(2560),u=r(535),l=r(1322),c=r(6279),d=r(785),h=e([c]);c=(h.then?(await h)():h)[0];let N=globalThis;class E{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new c.no("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let s=new Set(n.data.map(e=>e.id)),i=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),p(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||s.has(r.id)||i.unshift(r);return{...n,data:i}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return _(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return _(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async create(e){let t=f(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e){if(!v(e))throw new c.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let t=f(await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(t.id,t),t}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return f(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:n}=await Promise.resolve().then(r.bind(r,1322));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,s){return this.runtime.run(e,t,r,n,s)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new c.no("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,n="web",s){if(!this.runtime.startRun)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,s)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?p(e,r):e});for(let e of this.pendingCreations.values())t.has(e.id)||r.push(e);return r.sort((e,t)=>t.updated.localeCompare(e.updated))}}function p(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function m(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function g(){if(!N.__nativeRuntimeService){!function(){let e=[(0,a.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(a.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(a.delimiter))}();let e=new l.XWE((0,d.kO)());N.__nativeRuntimeService=new E((0,c.v6)({runtimeFactory:e=>{let t=(0,o.X)({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:l.hix}),r=(0,o.X)({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,m("AGENT_CODEX_RUNTIME_ERROR",t),m("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,u.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,c.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return N.__nativeRuntimeService}function f(e,t,r=process.platform){let{projectId:n,...s}=e;if(!e.cwd)return s;let i=w(e.cwd,r),o="win32"===r?a.win32.sep:a.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:w(e.description,r)})).filter(({path:e})=>i===e||i.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...s,projectId:u.project.id}:s}function w(e,t=process.platform){if("win32"!==t)return(0,a.resolve)(e);let r=a.win32.resolve(e),n=a.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function _(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function v(e){try{return"customer-agent"!==(0,c.Vu)(e).agentType}catch{return!1}}function O(e){if(e instanceof c.no)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}n()}catch(e){n(e)}})},1366:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{C:()=>u,a:()=>l});var s=r(1322),i=r(7186),a=r(785),o=e([i]);i=(o.then?(await o)():o)[0];let c=globalThis;function u(){if(c.__threadGoalService)return c.__threadGoalService;let e=new s.rA9(new s.ZIW((0,a.kO)()),{isSessionRunning:e=>i.agentHost.isSessionRunning(e),startTurn:async(e,t)=>{if(i.agentHost.isSessionRunning(e))return!1;try{return i.agentHost.startRun(t,e,void 0,{source:"goal"}).completion.catch(()=>{}),!0}catch(e){if(e instanceof i.A)return!1;throw e}},steerHidden:(e,t)=>i.agentHost.steer(t,e,"__goal__"),sessionExists:async e=>!!await i.agentHost.getSessionStore().get(e)},{onUpdated:(e,t)=>i.agentHost.publishExternal(e,{type:"goal_updated",goal:t}),onCleared:e=>i.agentHost.publishExternal(e,{type:"goal_cleared",sessionId:e})});return i.agentHost.onRunSettled=t=>{e.onRunSettled({sessionId:t.sessionId,failed:t.failed,usageLimited:t.usageLimited,tokens:t.newTokens,seconds:t.durationMs/1e3}).catch(()=>{})},i.agentHost.threadGoalToolsProvider=t=>(0,s.DAt)(e,t),c.__threadGoalService=e,e}function l(){u().resumeInterrupted().catch(()=>{})}n()}catch(e){n(e)}})}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,6244,1322,1773,7186,25],()=>r(1898));module.exports=n})();
|
|
1
|
+
"use strict";(()=>{var e={};e.id=816,e.ids=[816],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},4744:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>l,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>p,staticGenerationAsyncStorage:()=>h});var s=r(7786),i=r(5042),a=r(2184),o=r(5746),u=e([o]);o=(u.then?(await u)():u)[0];let c=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/abort/route",pathname:"/api/agent/abort",filename:"route",bundlePath:"app/api/agent/abort/route"},resolvedPagePath:"/Volumes/ext/project/team-agent/packages/server/app/api/agent/abort/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:p}=c,m="/api/agent/abort/route";function l(){return(0,a.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:h})}n()}catch(e){n(e)}})},5746:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{POST:()=>l});var s=r(1890),i=r(7186),a=r(2083),o=r(1366),u=e([i,a,o]);async function l(e){let t;try{t=(await e.json()).sessionId}catch{}if(t&&(0,a.V_)(t)){try{await (0,a.NL)().abort(t)}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Abort failed"},{status:500})}return s.NextResponse.json({status:"aborted"})}return t&&(0,o.C)().requestStop(t),i.agentHost.abort(t),s.NextResponse.json({status:"aborted"})}[i,a,o]=u.then?(await u)():u,n()}catch(e){n(e)}})},2560:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(7718),s=r(7561),i=r(9411),a=r(1322);function o(e){if(!e.trim())return!1;try{return(0,s.accessSync)(e,s.constants.X_OK),!0}catch{return!1}}function u(e){try{return(0,a.wyD)((0,n.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function l(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let n=o(r);t.push({source:"pin",path:r,executable:n,version:n?u(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(i.delimiter).filter(Boolean)){let r=(0,i.resolve)(t,e);if(o(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:u(n)}),(0,a.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}},2083:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{NL:()=>g,V_:()=>v,WW:()=>O});var s=r(7561),i=r(612),a=r(9411),o=r(2560),u=r(535),l=r(1322),c=r(6279),d=r(785),h=e([c]);c=(h.then?(await h)():h)[0];let N=globalThis;class E{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new c.no("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let s=new Set(n.data.map(e=>e.id)),i=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),p(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||s.has(r.id)||i.unshift(r);return{...n,data:i}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return _(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return _(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async create(e){let t=f(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e){if(!v(e))throw new c.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let t=f(await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(t.id,t),t}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return f(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:n}=await Promise.resolve().then(r.bind(r,1322));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,s){return this.runtime.run(e,t,r,n,s)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new c.no("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,n="web",s){if(!this.runtime.startRun)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,s)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?p(e,r):e});for(let e of this.pendingCreations.values())t.has(e.id)||r.push(e);return r.sort((e,t)=>t.updated.localeCompare(e.updated))}}function p(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function m(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function g(){if(!N.__nativeRuntimeService){!function(){let e=[(0,a.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(a.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(a.delimiter))}();let e=new l.XWE((0,d.kO)());N.__nativeRuntimeService=new E((0,c.v6)({runtimeFactory:e=>{let t=(0,o.X)({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:l.hix}),r=(0,o.X)({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,m("AGENT_CODEX_RUNTIME_ERROR",t),m("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,u.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,c.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return N.__nativeRuntimeService}function f(e,t,r=process.platform){let{projectId:n,...s}=e;if(!e.cwd)return s;let i=w(e.cwd,r),o="win32"===r?a.win32.sep:a.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:w(e.description,r)})).filter(({path:e})=>i===e||i.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...s,projectId:u.project.id}:s}function w(e,t=process.platform){if("win32"!==t)return(0,a.resolve)(e);let r=a.win32.resolve(e),n=a.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function _(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function v(e){try{return"customer-agent"!==(0,c.Vu)(e).agentType}catch{return!1}}function O(e){if(e instanceof c.no)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}n()}catch(e){n(e)}})},1366:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{C:()=>u,a:()=>l});var s=r(1322),i=r(7186),a=r(785),o=e([i]);i=(o.then?(await o)():o)[0];let c=globalThis;function u(){if(c.__threadGoalService)return c.__threadGoalService;let e=new s.rA9(new s.ZIW((0,a.kO)()),{isSessionRunning:e=>i.agentHost.isSessionRunning(e),startTurn:async(e,t)=>{if(i.agentHost.isSessionRunning(e))return!1;try{return i.agentHost.startRun(t,e,void 0,{source:"goal"}).completion.catch(()=>{}),!0}catch(e){if(e instanceof i.A)return!1;throw e}},steerHidden:(e,t)=>i.agentHost.steer(t,e,"__goal__"),sessionExists:async e=>!!await i.agentHost.getSessionStore().get(e)},{onUpdated:(e,t)=>i.agentHost.publishExternal(e,{type:"goal_updated",goal:t}),onCleared:e=>i.agentHost.publishExternal(e,{type:"goal_cleared",sessionId:e})});return i.agentHost.onRunSettled=t=>{e.onRunSettled({sessionId:t.sessionId,failed:t.failed,usageLimited:t.usageLimited,tokens:t.newTokens,seconds:t.durationMs/1e3}).catch(()=>{})},i.agentHost.threadGoalToolsProvider=t=>(0,s.DAt)(e,t),c.__threadGoalService=e,e}function l(){u().resumeInterrupted().catch(()=>{})}n()}catch(e){n(e)}})}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,6244,1322,1773,7186,25],()=>r(4744));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=8195,e.ids=[8195],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},6345:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>l,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>h,staticGenerationAsyncStorage:()=>p});var s=r(7786),i=r(5042),a=r(2184),o=r(2556),u=e([o]);o=(u.then?(await u)():u)[0];let c=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/answer/route",pathname:"/api/agent/answer",filename:"route",bundlePath:"app/api/agent/answer/route"},resolvedPagePath:"/Users/caoqu/team-agent/customer-agent/packages/server/app/api/agent/answer/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:d,staticGenerationAsyncStorage:p,serverHooks:h}=c,m="/api/agent/answer/route";function l(){return(0,a.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:p})}n()}catch(e){n(e)}})},2556:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{POST:()=>u});var s=r(1890),i=r(7186),a=r(2083),o=e([i,a]);async function u(e){try{let t=await e.json();if(!t.questionId||!t.answer)return s.NextResponse.json({error:"questionId and answer are required"},{status:400});let r=i.agentHost.answerQuestion(t.questionId,t.answer,t.selectedIndices);if(r||(r=await (0,a.NL)().answerQuestion(t.questionId,{answer:t.answer,selectedIndices:t.selectedIndices})),!r)return s.NextResponse.json({error:"Question not found or already answered"},{status:404});return s.NextResponse.json({ok:!0})}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,a.WW)(e)})}}[i,a]=o.then?(await o)():o,n()}catch(e){n(e)}})},2560:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(7718),s=r(7561),i=r(9411),a=r(1322);function o(e){if(!e.trim())return!1;try{return(0,s.accessSync)(e,s.constants.X_OK),!0}catch{return!1}}function u(e){try{return(0,a.wyD)((0,n.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function l(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let n=o(r);t.push({source:"pin",path:r,executable:n,version:n?u(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(i.delimiter).filter(Boolean)){let r=(0,i.resolve)(t,e);if(o(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:u(n)}),(0,a.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}},2083:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{NL:()=>w,V_:()=>O,WW:()=>P});var s=r(7561),i=r(612),a=r(9411),o=r(2560),u=r(535),l=r(1322),c=r(6279),d=r(785),p=e([c]);c=(p.then?(await p)():p)[0];let v=globalThis;class E{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new c.no("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let s=new Set(n.data.map(e=>e.id)),i=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),h(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||s.has(r.id)||i.unshift(r);return{...n,data:i}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return N(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return N(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async create(e){let t=f(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e){if(!O(e))throw new c.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let t=f(await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(t.id,t),t}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return f(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:n}=await Promise.resolve().then(r.bind(r,1322));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,s){return this.runtime.run(e,t,r,n,s)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new c.no("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,n="web",s){if(!this.runtime.startRun)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,s)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?h(e,r):e});for(let e of this.pendingCreations.values())t.has(e.id)||r.push(e);return r.sort((e,t)=>t.updated.localeCompare(e.updated))}}function h(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function m(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function w(){if(!v.__nativeRuntimeService){!function(){let e=[(0,a.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(a.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(a.delimiter))}();let e=new l.XWE((0,d.kO)());v.__nativeRuntimeService=new E((0,c.v6)({runtimeFactory:e=>{let t=(0,o.X)({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:l.hix}),r=(0,o.X)({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,m("AGENT_CODEX_RUNTIME_ERROR",t),m("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,u.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,c.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return v.__nativeRuntimeService}function f(e,t,r=process.platform){let{projectId:n,...s}=e;if(!e.cwd)return s;let i=g(e.cwd,r),o="win32"===r?a.win32.sep:a.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:g(e.description,r)})).filter(({path:e})=>i===e||i.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...s,projectId:u.project.id}:s}function g(e,t=process.platform){if("win32"!==t)return(0,a.resolve)(e);let r=a.win32.resolve(e),n=a.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function N(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function O(e){try{return"customer-agent"!==(0,c.Vu)(e).agentType}catch{return!1}}function P(e){if(e instanceof c.no)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}n()}catch(e){n(e)}})}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,6244,1322,1773,7186,25],()=>r(6345));module.exports=n})();
|
|
1
|
+
"use strict";(()=>{var e={};e.id=8195,e.ids=[8195],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},5638:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>l,requestAsyncStorage:()=>p,routeModule:()=>c,serverHooks:()=>h,staticGenerationAsyncStorage:()=>d});var s=r(7786),i=r(5042),a=r(2184),o=r(2556),u=e([o]);o=(u.then?(await u)():u)[0];let c=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/answer/route",pathname:"/api/agent/answer",filename:"route",bundlePath:"app/api/agent/answer/route"},resolvedPagePath:"/Volumes/ext/project/team-agent/packages/server/app/api/agent/answer/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:h}=c,m="/api/agent/answer/route";function l(){return(0,a.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:d})}n()}catch(e){n(e)}})},2556:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{POST:()=>u});var s=r(1890),i=r(7186),a=r(2083),o=e([i,a]);async function u(e){try{let t=await e.json();if(!t.questionId||!t.answer)return s.NextResponse.json({error:"questionId and answer are required"},{status:400});let r=i.agentHost.answerQuestion(t.questionId,t.answer,t.selectedIndices);if(r||(r=await (0,a.NL)().answerQuestion(t.questionId,{answer:t.answer,selectedIndices:t.selectedIndices})),!r)return s.NextResponse.json({error:"Question not found or already answered"},{status:404});return s.NextResponse.json({ok:!0})}catch(e){return s.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,a.WW)(e)})}}[i,a]=o.then?(await o)():o,n()}catch(e){n(e)}})},2560:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(7718),s=r(7561),i=r(9411),a=r(1322);function o(e){if(!e.trim())return!1;try{return(0,s.accessSync)(e,s.constants.X_OK),!0}catch{return!1}}function u(e){try{return(0,a.wyD)((0,n.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function l(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let n=o(r);t.push({source:"pin",path:r,executable:n,version:n?u(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(i.delimiter).filter(Boolean)){let r=(0,i.resolve)(t,e);if(o(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:u(n)}),(0,a.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}},2083:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{NL:()=>w,V_:()=>O,WW:()=>P});var s=r(7561),i=r(612),a=r(9411),o=r(2560),u=r(535),l=r(1322),c=r(6279),p=r(785),d=e([c]);c=(d.then?(await d)():d)[0];let v=globalThis;class E{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new c.no("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let s=new Set(n.data.map(e=>e.id)),i=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),h(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||s.has(r.id)||i.unshift(r);return{...n,data:i}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return N(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return N(this.withPendingCreations(t).map(e=>f(e,r,this.platform)),e)}async create(e){let t=f(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e){if(!O(e))throw new c.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let t=f(await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(t.id,t),t}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return f(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:n}=await Promise.resolve().then(r.bind(r,1322));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,s){return this.runtime.run(e,t,r,n,s)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new c.no("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,n="web",s){if(!this.runtime.startRun)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,s)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?h(e,r):e});for(let e of this.pendingCreations.values())t.has(e.id)||r.push(e);return r.sort((e,t)=>t.updated.localeCompare(e.updated))}}function h(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function m(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function w(){if(!v.__nativeRuntimeService){!function(){let e=[(0,a.join)((0,i.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(a.delimiter),r=e.filter(e=>(0,s.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(a.delimiter))}();let e=new l.XWE((0,p.kO)());v.__nativeRuntimeService=new E((0,c.v6)({runtimeFactory:e=>{let t=(0,o.X)({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:l.hix}),r=(0,o.X)({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,m("AGENT_CODEX_RUNTIME_ERROR",t),m("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,u.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,c.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return v.__nativeRuntimeService}function f(e,t,r=process.platform){let{projectId:n,...s}=e;if(!e.cwd)return s;let i=g(e.cwd,r),o="win32"===r?a.win32.sep:a.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:g(e.description,r)})).filter(({path:e})=>i===e||i.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...s,projectId:u.project.id}:s}function g(e,t=process.platform){if("win32"!==t)return(0,a.resolve)(e);let r=a.win32.resolve(e),n=a.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function N(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function O(e){try{return"customer-agent"!==(0,c.Vu)(e).agentType}catch{return!1}}function P(e){if(e instanceof c.no)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}n()}catch(e){n(e)}})}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,6244,1322,1773,7186,25],()=>r(5638));module.exports=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=5044,e.ids=[5044],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=5044,e.ids=[5044],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},4740:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{originalPathname:()=>q,patchFetch:()=>u,requestAsyncStorage:()=>c,routeModule:()=>d,serverHooks:()=>h,staticGenerationAsyncStorage:()=>x});var o=t(7786),a=t(5042),n=t(2184),i=t(7514),p=e([i]);i=(p.then?(await p)():p)[0];let d=new o.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/agent/harness/status/route",pathname:"/api/agent/harness/status",filename:"route",bundlePath:"app/api/agent/harness/status/route"},resolvedPagePath:"/Volumes/ext/project/team-agent/packages/server/app/api/agent/harness/status/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:c,staticGenerationAsyncStorage:x,serverHooks:h}=d,q="/api/agent/harness/status/route";function u(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:x})}s()}catch(e){s(e)}})},7514:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{GET:()=>i,dynamic:()=>p});var o=t(1890),a=t(7186),n=e([a]);a=(n.then?(await n)():n)[0];let p="force-dynamic";async function i(){return o.NextResponse.json(a.agentHost.getHarnessStatus(),{headers:{"cache-control":"no-store"}})}s()}catch(e){s(e)}})}};var r=require("../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8375,6703,6244,1322,1773,7186,25],()=>t(4740));module.exports=s})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=159,e.ids=[159,6435],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=159,e.ids=[159,6435],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},2642:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{originalPathname:()=>g,patchFetch:()=>d,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>p,staticGenerationAsyncStorage:()=>h});var s=a(7786),i=a(5042),n=a(2184),o=a(447),u=e([o]);o=(u.then?(await u)():u)[0];let c=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/model/route",pathname:"/api/agent/model",filename:"route",bundlePath:"app/api/agent/model/route"},resolvedPagePath:"/Volumes/ext/project/team-agent/packages/server/app/api/agent/model/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:p}=c,g="/api/agent/model/route";function d(){return(0,n.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:h})}r()}catch(e){r(e)}})},447:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{GET:()=>d,dynamic:()=>c});var s=a(6435),i=a(1366),n=a(1890),o=a(7186),u=e([s,i,o]);[s,i,o]=u.then?(await u)():u;let c="force-dynamic";async function d(){return(0,s.U)(),(0,i.a)(),n.NextResponse.json({...o.agentHost.getModelConfig(),buildId:o.agentHost.getWebAppBuildId()},{headers:{"cache-control":"no-store"}})}r()}catch(e){r(e)}})},6435:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{U:()=>c,getCustomerGoalCoordinator:()=>d});var s=a(1322),i=a(7186),n=a(5036),o=a(785),u=e([i]);i=(u.then?(await u)():u)[0];let l=globalThis,h=new Set;function d(){return l.__sharedCustomerQueue??=new n.J(i.agentHost.getSessionStore(),e=>i.agentHost.isSessionRunning(e),async(e,t)=>{h.add(e);try{return await i.agentHost.startRun(t.objective,e,t.messagePayload?.images,{agentIds:t.messagePayload?.agentIds}).completion,(await i.agentHost.getSessionStore().get(e))?.status==="completed"?"completed":"failed"}finally{h.delete(e)}},e=>{h.has(e)&&i.agentHost.abort(e)},(e,t)=>i.agentHost.steer(t,e),(e,t)=>{(0,s.N8n)((0,o.kO)()).db.prepare("UPDATE sessions SET metadata = json_set(metadata, '$.goalState', json(?)), updated = ? WHERE id = ?").run(JSON.stringify(t),new Date().toISOString(),e)})}function c(){for(let e of(0,s.N8n)((0,o.kO)()).db.prepare("SELECT id FROM sessions WHERE json_extract(metadata, '$.goalState.active') IS NOT NULL OR json_array_length(metadata, '$.goalState.queued') > 0").all())d().resume(e.id)}r()}catch(e){r(e)}})},5036:(e,t,a)=>{a.d(t,{J:()=>s});var r=a(1322);class s{constructor(e,t,a,r,s,i){this.store=e,this.busy=t,this.run=a,this.abort=r,this.steerRun=s,this.persist=i,this.tails=new Map,this.draining=new Set}async get(e,t=!0){let a=(0,r.E0T)((await this.require(e)).metadata);return t&&this.resume(e),a}async enqueue(e,t,a){let s=await this.mutate(e,s=>(0,r.WfK)(s,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:a,now:Date.now()}));return this.resume(e),s}async enqueueMessage(e,t,a,s){let i=await this.mutate(e,i=>[i.active,...i.queued,...i.history].some(e=>e?.sourceMessageId===a)?i:(0,r.InG)(i,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:a,messagePayload:s,now:Date.now(),activate:!1}));return this.resume(e),i}reorder(e,t,a=!1){return this.mutate(e,e=>a?(0,r.h1F)(e,t):(0,r.ZC9)(e,t))}updateMessage(e,t,a,s){return this.mutate(e,e=>(0,r.Wog)(e,t,a,s))}async cancel(e,t){let a=await this.mutate(e,a=>(a.active?.id===t&&this.draining.has(e)&&this.abort(e),(0,r.LJm)(a,t,Date.now())));return this.resume(e),a}async steer(e,t){return this.mutate(e,async a=>{let s=a.queued.find(e=>e.id===t&&"message"===e.kind);if(!s||!this.busy(e))throw Error("没有可引导的运行或排队消息");if(!await this.steerRun(e,s.objective))throw Error("运行已结束,请继续排队");return(0,r.LJm)(a,t,Date.now())})}resume(e){this.draining.has(e)||(this.draining.add(e),this.drain(e).catch(e=>console.error("Customer queue failed",e)).finally(()=>this.draining.delete(e)))}async drain(e){for(;;){let t;let a=await this.get(e,!1);if(!a.active&&!a.queued.length)return;if(this.busy(e)){await new Promise(e=>setTimeout(e,100));continue}let s=(await this.mutate(e,e=>(0,r.s_d)(e,Date.now()))).active;if(!s)continue;let i="failed";try{i=await this.run(e,s)}catch(e){if(e?.code==="SESSION_ALREADY_RUNNING")continue;t=e instanceof Error?e.message:String(e)}await this.mutate(e,e=>e.active?.id===s.id?(0,r.JXc)(e,i,Date.now(),t):e)}}async require(e){let t=await this.store.get(e);if(!t)throw Error("Session not found");return t}async mutate(e,t){let a=(this.tails.get(e)??Promise.resolve()).catch(()=>{}).then(async()=>{let a=await this.require(e),s=await t((0,r.E0T)(a.metadata));if(this.persist)this.persist(e,s);else{let t=await this.require(e);await this.store.update(e,{metadata:(0,r.eC7)(t.metadata,s)})}return s});this.tails.set(e,a);try{return await a}finally{this.tails.get(e)===a&&this.tails.delete(e)}}}},1366:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{C:()=>u,a:()=>d});var s=a(1322),i=a(7186),n=a(785),o=e([i]);i=(o.then?(await o)():o)[0];let c=globalThis;function u(){if(c.__threadGoalService)return c.__threadGoalService;let e=new s.rA9(new s.ZIW((0,n.kO)()),{isSessionRunning:e=>i.agentHost.isSessionRunning(e),startTurn:async(e,t)=>{if(i.agentHost.isSessionRunning(e))return!1;try{return i.agentHost.startRun(t,e,void 0,{source:"goal"}).completion.catch(()=>{}),!0}catch(e){if(e instanceof i.A)return!1;throw e}},steerHidden:(e,t)=>i.agentHost.steer(t,e,"__goal__"),sessionExists:async e=>!!await i.agentHost.getSessionStore().get(e)},{onUpdated:(e,t)=>i.agentHost.publishExternal(e,{type:"goal_updated",goal:t}),onCleared:e=>i.agentHost.publishExternal(e,{type:"goal_cleared",sessionId:e})});return i.agentHost.onRunSettled=t=>{e.onRunSettled({sessionId:t.sessionId,failed:t.failed,usageLimited:t.usageLimited,tokens:t.newTokens,seconds:t.durationMs/1e3}).catch(()=>{})},i.agentHost.threadGoalToolsProvider=t=>(0,s.DAt)(e,t),c.__threadGoalService=e,e}function d(){u().resumeInterrupted().catch(()=>{})}r()}catch(e){r(e)}})}};var t=require("../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[8375,6703,6244,1322,1773,7186,25],()=>a(2642));module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=7927,e.ids=[7927],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},4402:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>l,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>h,staticGenerationAsyncStorage:()=>p});var i=r(7786),s=r(5042),a=r(2184),o=r(7362),u=e([o]);o=(u.then?(await u)():u)[0];let c=new i.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/agent/models/route",pathname:"/api/agent/models",filename:"route",bundlePath:"app/api/agent/models/route"},resolvedPagePath:"/Users/caoqu/team-agent/customer-agent/packages/server/app/api/agent/models/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:d,staticGenerationAsyncStorage:p,serverHooks:h}=c,m="/api/agent/models/route";function l(){return(0,a.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:p})}n()}catch(e){n(e)}})},7362:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{GET:()=>u,dynamic:()=>l});var i=r(1890),s=r(6279),a=r(2083),o=e([s,a]);[s,a]=o.then?(await o)():o;let l="force-dynamic";async function u(e){let t=new URL(e.url).searchParams.get("agentType");if("codex"!==t&&"claude-code"!==t&&"opencode"!==t)return i.NextResponse.json({error:"agentType must be codex, claude-code or opencode"},{status:400});try{let e=await (0,a.NL)().listModels(t);return i.NextResponse.json({agentType:t,models:e})}catch(e){if(e instanceof s.no&&"OPERATION_NOT_SUPPORTED"===e.code)return i.NextResponse.json({agentType:t,models:[],supported:!1});return i.NextResponse.json({error:e instanceof Error?e.message:"Failed to list models"},{status:(0,a.WW)(e)})}}n()}catch(e){n(e)}})},2560:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(7718),i=r(7561),s=r(9411),a=r(1322);function o(e){if(!e.trim())return!1;try{return(0,i.accessSync)(e,i.constants.X_OK),!0}catch{return!1}}function u(e){try{return(0,a.wyD)((0,n.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function l(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let n=o(r);t.push({source:"pin",path:r,executable:n,version:n?u(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(s.delimiter).filter(Boolean)){let r=(0,s.resolve)(t,e);if(o(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:u(n)}),(0,a.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}},535:(e,t,r)=>{r.d(t,{L:()=>a});var n=r(1322),i=r(785);let s=!1;function a(){let e=(0,n.Qfc)();if(e)return e;let t=(0,n.qZ_)({dir:(0,i.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return s||(s=!0,t.info("server logger attached",{dir:t.dir,pid:process.pid})),t}},2083:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{NL:()=>f,V_:()=>N,WW:()=>v});var i=r(7561),s=r(612),a=r(9411),o=r(2560),u=r(535),l=r(1322),c=r(6279),d=r(785),p=e([c]);c=(p.then?(await p)():p)[0];let E=globalThis;class P{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new c.no("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let i=new Set(n.data.map(e=>e.id)),s=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),h(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||i.has(r.id)||s.unshift(r);return{...n,data:s}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return O(this.withPendingCreations(t).map(e=>g(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return O(this.withPendingCreations(t).map(e=>g(e,r,this.platform)),e)}async create(e){let t=g(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e){if(!N(e))throw new c.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let t=g(await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(t.id,t),t}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return g(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:n}=await Promise.resolve().then(r.bind(r,1322));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,i){return this.runtime.run(e,t,r,n,i)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new c.no("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,n="web",i){if(!this.runtime.startRun)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,i)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?h(e,r):e});for(let e of this.pendingCreations.values())t.has(e.id)||r.push(e);return r.sort((e,t)=>t.updated.localeCompare(e.updated))}}function h(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function m(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function f(){if(!E.__nativeRuntimeService){!function(){let e=[(0,a.join)((0,s.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(a.delimiter),r=e.filter(e=>(0,i.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(a.delimiter))}();let e=new l.XWE((0,d.kO)());E.__nativeRuntimeService=new P((0,c.v6)({runtimeFactory:e=>{let t=(0,o.X)({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:l.hix}),r=(0,o.X)({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,m("AGENT_CODEX_RUNTIME_ERROR",t),m("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,u.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,c.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return E.__nativeRuntimeService}function g(e,t,r=process.platform){let{projectId:n,...i}=e;if(!e.cwd)return i;let s=w(e.cwd,r),o="win32"===r?a.win32.sep:a.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:w(e.description,r)})).filter(({path:e})=>s===e||s.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...i,projectId:u.project.id}:i}function w(e,t=process.platform){if("win32"!==t)return(0,a.resolve)(e);let r=a.win32.resolve(e),n=a.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function O(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function N(e){try{return"customer-agent"!==(0,c.Vu)(e).agentType}catch{return!1}}function v(e){if(e instanceof c.no)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}n()}catch(e){n(e)}})}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,6244,1322,1773],()=>r(4402));module.exports=n})();
|
|
1
|
+
"use strict";(()=>{var e={};e.id=7927,e.ids=[7927],e.modules={5890:e=>{e.exports=require("better-sqlite3")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},2728:e=>{e.exports=import("@anthropic-ai/claude-agent-sdk")},7718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2286:e=>{e.exports=require("node:https")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},6915:e=>{e.exports=require("node:string_decoder")},1041:e=>{e.exports=require("node:url")},5881:e=>{e.exports=require("node:util")},407:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>l,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>h,staticGenerationAsyncStorage:()=>p});var i=r(7786),s=r(5042),a=r(2184),o=r(7362),u=e([o]);o=(u.then?(await u)():u)[0];let c=new i.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/agent/models/route",pathname:"/api/agent/models",filename:"route",bundlePath:"app/api/agent/models/route"},resolvedPagePath:"/Volumes/ext/project/team-agent/packages/server/app/api/agent/models/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:d,staticGenerationAsyncStorage:p,serverHooks:h}=c,m="/api/agent/models/route";function l(){return(0,a.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:p})}n()}catch(e){n(e)}})},7362:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{GET:()=>u,dynamic:()=>l});var i=r(1890),s=r(6279),a=r(2083),o=e([s,a]);[s,a]=o.then?(await o)():o;let l="force-dynamic";async function u(e){let t=new URL(e.url).searchParams.get("agentType");if("codex"!==t&&"claude-code"!==t&&"opencode"!==t)return i.NextResponse.json({error:"agentType must be codex, claude-code or opencode"},{status:400});try{let e=await (0,a.NL)().listModels(t);return i.NextResponse.json({agentType:t,models:e})}catch(e){if(e instanceof s.no&&"OPERATION_NOT_SUPPORTED"===e.code)return i.NextResponse.json({agentType:t,models:[],supported:!1});return i.NextResponse.json({error:e instanceof Error?e.message:"Failed to list models"},{status:(0,a.WW)(e)})}}n()}catch(e){n(e)}})},2560:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(7718),i=r(7561),s=r(9411),a=r(1322);function o(e){if(!e.trim())return!1;try{return(0,i.accessSync)(e,i.constants.X_OK),!0}catch{return!1}}function u(e){try{return(0,a.wyD)((0,n.execFileSync)(e,["--version"],{encoding:"utf8",timeout:5e3,stdio:["ignore","pipe","pipe"]}))}catch{return}}function l(e){let t=[],r=process.env[e.environmentVariable]?.trim();if(r){let n=o(r);t.push({source:"pin",path:r,executable:n,version:n?u(r):void 0,error:n?void 0:`${e.environmentVariable} "${r}" is not executable`})}let n=function(e){for(let t of(process.env.PATH??"").split(s.delimiter).filter(Boolean)){let r=(0,s.resolve)(t,e);if(o(r))return r}}(e.name);return n&&n!==r&&t.push({source:"path",path:n,executable:!0,version:u(n)}),(0,a.neJ)(t,{name:e.name,minimumVersion:e.minimumVersion})}},535:(e,t,r)=>{r.d(t,{L:()=>a});var n=r(1322),i=r(785);let s=!1;function a(){let e=(0,n.Qfc)();if(e)return e;let t=(0,n.qZ_)({dir:(0,i.ME)(),source:"server",minLevel:"info",handlers:{exitOnUncaughtException:!1}});return s||(s=!0,t.info("server logger attached",{dir:t.dir,pid:process.pid})),t}},2083:(e,t,r)=>{r.a(e,async(e,n)=>{try{r.d(t,{NL:()=>f,V_:()=>N,WW:()=>v});var i=r(7561),s=r(612),a=r(9411),o=r(2560),u=r(535),l=r(1322),c=r(6279),d=r(785),p=e([c]);c=(p.then?(await p)():p)[0];let E=globalThis;class P{constructor(e,t=async()=>[],r=process.platform){this.runtime=e,this.listProjects=t,this.platform=r,this.pendingCreations=new Map}health(){return this.runtime.health()}listModels(e){return this.runtime.listModels(e)}listWorkspaces(e,t){return this.runtime.listWorkspaces(e,t)}importWorkspace(e,t,r){if(!this.runtime.importWorkspace)throw new c.no("Native workspace import is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.importWorkspace(e,t,r)}async listWorkspaceSessions(e,t,r){let n=await this.runtime.listWorkspaceSessions(e,t,r);if(r?.cursor)return n;let i=new Set(n.data.map(e=>e.id)),s=n.data.map(e=>{let t=this.pendingCreations.get(e.id);return t?(this.pendingCreations.delete(e.id),h(e,t)):e});for(let r of this.pendingCreations.values())r.agentType!==e||r.projectId!==t||i.has(r.id)||s.unshift(r);return{...n,data:s}}async list(e){let[t,r]=await Promise.all([this.runtime.list(),this.listProjects()]);return O(this.withPendingCreations(t).map(e=>g(e,r,this.platform)),e)}async refresh(e){let[t,r]=await Promise.all([this.runtime.refresh(),this.listProjects()]);return O(this.withPendingCreations(t).map(e=>g(e,r,this.platform)),e)}async create(e){let t=g(await this.runtime.create(e),await this.listProjects(),this.platform),r=e.projectId?{...t,projectId:e.projectId}:t;return this.pendingCreations.set(r.id,r),r}async fork(e){if(!N(e))throw new c.no("Customer Agent sessions do not support native forks","OPERATION_NOT_SUPPORTED");let t=g(await this.runtime.fork(e),await this.listProjects(),this.platform);return this.pendingCreations.set(t.id,t),t}async delete(e){await this.runtime.delete(e),this.pendingCreations.delete(e)}async get(e,t){let r;try{r=await this.runtime.get(e,t)}catch(n){let r=this.pendingCreations.get(e);if(!r)throw n;return t?{...r,messages:[],events:[],history:{nextCursor:null,hasMore:!1,pageSize:0,totalItems:0}}:{...r,messages:[],events:[]}}return g(r,await this.listProjects(),this.platform)}async getQueryIndex(e){if(this.runtime.getQueryIndex)return this.runtime.getQueryIndex(e);let t=await this.runtime.get(e),{buildSessionQueryIndex:n}=await Promise.resolve().then(r.bind(r,1322));return n(e,t.messages)}getSessionToolResult(e,t){return this.runtime.getSessionToolResult(e,t)}getSessionWatchPath(e){return this.runtime.getSessionWatchPath(e)}run(e,t,r,n,i){return this.runtime.run(e,t,r,n,i)}steer(e,t){return this.runtime.steer(e,t)}abort(e){return this.runtime.abort(e)}async release(e){if(!this.runtime.release)throw new c.no("Native runtime release is unavailable","RUNTIME_UNAVAILABLE");await this.runtime.release(e)}answerQuestion(e,t){return this.runtime.answerQuestion(e,t)}async startRun(e,t,r,n="web",i){if(!this.runtime.startRun)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.startRun(e,t,r,n,i)}async subscribe(e,t,r){if(!this.runtime.subscribe)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.subscribe(e,t,r)}async snapshot(e,t=0){if(!this.runtime.snapshot)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.snapshot(e,t)}async setPermissionMode(e,t){if(!this.runtime.setPermissionMode)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.setPermissionMode(e,t)}async handoff(e,t){if(!this.runtime.handoff)throw new c.no("Native runtime broker is unavailable","RUNTIME_UNAVAILABLE");return this.runtime.handoff(e,t)}async getGoals(e,t="web"){if(!this.runtime.getGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.getGoals(e,t)}async enqueueGoal(e,t,r,n="web"){if(!this.runtime.enqueueGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueGoal(e,t,r,n)}async reorderGoals(e,t){if(!this.runtime.reorderGoals)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderGoals(e,t)}async cancelGoal(e,t){if(!this.runtime.cancelGoal)throw new c.no("Goal mode is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelGoal(e,t,"web")}async enqueueMessage(e,t,r="web"){if(!this.runtime.enqueueMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.enqueueMessage(e,t,r)}async reorderMessages(e,t){if(!this.runtime.reorderMessages)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.reorderMessages(e,t)}async updateMessage(e,t,r,n){if(!this.runtime.updateMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.updateMessage(e,t,r,n)}async cancelMessage(e,t){if(!this.runtime.cancelMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.cancelMessage(e,t)}async steerMessage(e,t){if(!this.runtime.steerMessage)throw new c.no("Message queue is unavailable","OPERATION_NOT_SUPPORTED");return this.runtime.steerMessage(e,t)}withPendingCreations(e){let t=new Set,r=e.map(e=>{t.add(e.id);let r=this.pendingCreations.get(e.id);return this.pendingCreations.delete(e.id),r?h(e,r):e});for(let e of this.pendingCreations.values())t.has(e.id)||r.push(e);return r.sort((e,t)=>t.updated.localeCompare(e.updated))}}function h(e,t){return{...e,cwd:e.cwd||t.cwd,projectId:e.projectId??t.projectId}}function m(e,t){t.executable?delete process.env[e]:process.env[e]=t.detail}function f(){if(!E.__nativeRuntimeService){!function(){let e=[(0,a.join)((0,s.homedir)(),".local","bin"),"/opt/homebrew/bin","/usr/local/bin"],t=(process.env.PATH??"").split(a.delimiter),r=e.filter(e=>(0,i.existsSync)(e)&&!t.includes(e));r.length>0&&(process.env.PATH=[...t,...r].join(a.delimiter))}();let e=new l.XWE((0,d.kO)());E.__nativeRuntimeService=new P((0,c.v6)({runtimeFactory:e=>{let t=(0,o.X)({name:"codex",environmentVariable:"AGENT_CODEX_BIN",minimumVersion:l.hix}),r=(0,o.X)({name:"opencode",environmentVariable:"AGENT_OPENCODE_BIN"});return process.pid,m("AGENT_CODEX_RUNTIME_ERROR",t),m("AGENT_OPENCODE_RUNTIME_ERROR",r),(0,u.L)().info("native runtime host elected",{pid:process.pid,codex:t.executable??null,codexSource:t.source??null,codexDetail:t.detail,opencode:r.executable??null,opencodeDetail:r.detail}),(0,c.WH)(t.executable??"codex",e,r.executable??"opencode")}}),()=>e.list())}return E.__nativeRuntimeService}function g(e,t,r=process.platform){let{projectId:n,...i}=e;if(!e.cwd)return i;let s=w(e.cwd,r),o="win32"===r?a.win32.sep:a.sep,u=t.filter(e=>e.description).map(e=>({project:e,path:w(e.description,r)})).filter(({path:e})=>s===e||s.startsWith(`${e}${o}`)).sort((e,t)=>t.path.length-e.path.length)[0];return u?{...i,projectId:u.project.id}:i}function w(e,t=process.platform){if("win32"!==t)return(0,a.resolve)(e);let r=a.win32.resolve(e),n=a.win32.parse(r).root;return(r.length>n.length?r.replace(/[\\/]+$/,""):r).toLowerCase()}function O(e,t){return void 0===t?e:e.filter(e=>e.projectId===t)}function N(e){try{return"customer-agent"!==(0,c.Vu)(e).agentType}catch{return!1}}function v(e){if(e instanceof c.no)switch(e.code){case"SESSION_NOT_FOUND":return 404;case"SESSION_OCCUPIED":case"SESSION_ALREADY_RUNNING":case"APPROVAL_EXPIRED":case"CODEX_SESSION_VERSION_INCOMPATIBLE":case"STALE_SESSION_ANCHOR":return 409;case"RUNTIME_UNAVAILABLE":return 503;case"OPERATION_NOT_SUPPORTED":return 405;default:return 400}return 500}n()}catch(e){n(e)}})}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8375,6703,6244,1322,1773],()=>r(407));module.exports=n})();
|