agentroam-runtime-win32-x64 0.2.0-preview.21 → 0.2.0-preview.23
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 +1 -1
- 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 +1 -1
- 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/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/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]/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 +19 -19
- package/runtime/.next/server/chunks/1322.js +1 -1
- package/runtime/.next/server/chunks/2083.js +1 -1
- package/runtime/.next/server/chunks/5303.js +1 -1
- 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/pages-manifest.json +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/app/web/{error-9b5f82c29dc27335.js → error-828d278147a0619d.js} +1 -1
- package/runtime/.next/static/chunks/app/web/{page-16895961b998f8df.js → page-93b87fd495171494.js} +1 -1
- package/runtime/.next/static/chunks/{main-app-e3fd18ce9c4c0d03.js → main-app-07d67f2d4e96ecb8.js} +1 -1
- package/runtime/lib/remote-control/remote-authorization.mjs +65 -12
- package/runtime/lib/remote-control/webrtc-video.mjs +12 -3
- package/runtime/node_modules/.package-lock.json +84 -84
- package/runtime/node_modules/@agent/core/dist/domain/browser-live/BrowserLiveRegistry.d.ts +43 -0
- package/runtime/node_modules/@agent/core/dist/domain/browser-live/BrowserLiveRegistry.test.d.ts +2 -0
- package/runtime/node_modules/@agent/core/dist/domain/browser-live/entities.d.ts +57 -0
- package/runtime/node_modules/@agent/core/dist/domain/live-view/live-view-registry.d.ts.map +1 -1
- package/runtime/node_modules/@agent/core/dist/index.js +4 -2
- package/runtime/node_modules/@agent/core/dist/index.js.map +3 -3
- package/runtime/package-lock.json +189 -189
- package/runtime/webapp/dist/assets/App-C0GaUX7E.js +381 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-BNxk5qEZ.js → abnfDiagram-VCTEODGH-DFIVS5-b.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-7MQbjMvc.js → arc-BR_jY5YA.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-Dhg4Rz1D.js → architectureDiagram-5GKGNRK7-B_RjH8A7.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-DeJHr92S.js → blockDiagram-I7D4REHJ-BS7yaS6P.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-RA8xRbEK.js → c4Diagram-7LVT6UL2-CSFzzphk.js} +1 -1
- package/runtime/webapp/dist/assets/channel-D_GjJ9-f.js +1 -0
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-CzoEDy2v.js → chunk-2Q5K7J3B-lxf-31fr.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-IasmnKPT.js → chunk-5VM5RSS4-CealgGAH.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-ClQmWB2a.js → chunk-F27PBJKO-BVUWtnPQ.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BeWBx5Wn.js → chunk-IMKFNOWR-C9CDXZmG.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-TcEEZ4Dp.js → chunk-JWPE2WC7-CBIKc-82.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-DuWXzzSb.js → chunk-POPQ4Y6H-H46jF2zC.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-D2X9Pa1W.js → chunk-SVP7TREG-BWLkgj_W.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-D_-XYQ_R.js → chunk-TICWLB2K-D4lbsBHo.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-B2mHmyk9.js → chunk-XXDRQBXY-DixiVi8X.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BbKxNRrL.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BbKxNRrL.js +1 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-OmMALi3i.js → cose-bilkent-JH36ORCC-DApgY-7v.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-BVhxjnGZ.js → cynefin-OW5HDTMX-wPkyEnRo.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-8EafeZWa.js → cynefinDiagram-5FMLGOSQ-BL3nX8zr.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-BlMjveyN.js → dagre-GXQ25YYZ-C-ST5Gq6.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-BTgDeYAz.js → diagram-S7CK7UJ4-1Uf0VNoU.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-9m-QUpEs.js → diagram-UQ7AKVKN-BqQU5Gdv.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-BYWenf8W.js → diagram-VSXAHHWV-C59hTOGw.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-DQ-PRQyX.js → diagram-VX7I27RA-9Q55OM5Y.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-BFCpyvaL.js → diagram-Z3DM3KII-CynlxwLb.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-Ds9oV_wz.js → ebnfDiagram-PWID7BFC-Clg7fTnt.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-ncaaStop.js → erDiagram-RLTQ6QDP-BRtMTjkq.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-wL7U3M2L.js → flowDiagram-HODETNUW-1NtZ9wGO.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-CVZIk8qz.js → ganttDiagram-EL5Y4UJY-BqtMVkoY.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-CGjtUEFY.js → gitGraphDiagram-WWUBYQGX-D-ugp1Bz.js} +1 -1
- package/runtime/webapp/dist/assets/{index-CixxJ3A7.js → index-Cg-anTNr.js} +29 -29
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-BqTzY6Bv.js → infoDiagram-27XIBGKW-BbmiUqFV.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-9AARy1zU.js → ishikawaDiagram-5VMMS53U-DvsCcWwa.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-D3w-levY.js → journeyDiagram-3NMN7TZE-yNHLBbVt.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-CNvdBbcg.js → kanban-definition-UXKFOSKX-C17XKWBo.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-l0aDluv6.js → layout-Dhqc3tGq.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-BlLgYv8s.js → linear-C2_mlhLl.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-UNYsT27K.js → mermaid.core-CjC7QuvE.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BiVsBQL9.js → mindmap-definition-YA3MSWOX-D7AKW2qI.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-kr19ZOFB.js → pegDiagram-XKGWAZYB-BAI26fj8.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-BKWCGLlM.js → pieDiagram-E7YTZNPT-C_4G2czx.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-B1oUT2Jo.js → quadrantDiagram-AXDQQJYC-BhOZnXFN.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-HSe2vXxQ.js → railroadDiagram-O6MQD6OU-760zGjdr.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-Cy8adj_C.js → requirementDiagram-BXWQKSXE-D0-agCrc.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-tnBEmP5l.js → sankeyDiagram-P5KCCOFB-CsHjbmcp.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-DvOTKmyz.js → sequenceDiagram-WJ2MYXX4-Ccp7FnLK.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-Da7A6hqr.js → sizeCapture-INFHLROL-DFCk9Vjd.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-BU17k_M-.js → stateDiagram-D77RDMKH-tFA-WlZT.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CA4qjX_b.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-DZZPRxnW.js → swimlanes-42K2YHIH-Bh-owCha.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DrldJDwD.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-26Xh93Et.js → timeline-definition-24CTP7MA-D5CQ3vgW.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-Q4-BkJH1.js → vennDiagram-4TSXK5OY-1m-k4Zip.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-DlUP-PlT.js → wardleyDiagram-VM6X3IG4-C5agAk3M.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DWyw2SAG.js → web-CzXjoC1h.js} +1 -1
- package/runtime/webapp/dist/assets/{web-ueoOhAeL.js → web-DseRebF6.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-BQZRjKtR.js → xychartDiagram-S5SC5T6Z-EEKnPDSd.js} +1 -1
- package/runtime/webapp/dist/index.html +1 -1
- package/runtime/webapp/dist/assets/App-Cso_5v1O.js +0 -381
- package/runtime/webapp/dist/assets/channel-AsHr5ZE0.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BZj1pbnq.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BZj1pbnq.js +0 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-BROH63Ny.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-B4lr9wuD.js +0 -8
- /package/runtime/.next/static/{6OR2fRy79-A-DrqiN3FNa → ZqeC5NkIDDyPiS-mzOs28}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{6OR2fRy79-A-DrqiN3FNa → ZqeC5NkIDDyPiS-mzOs28}/_ssgManifest.js +0 -0
package/manifest.json
CHANGED
package/package.json
CHANGED
package/runtime/.next/BUILD_ID
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ZqeC5NkIDDyPiS-mzOs28
|
|
@@ -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-07d67f2d4e96ecb8.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-07d67f2d4e96ecb8.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-07d67f2d4e96ecb8.js",
|
|
22
22
|
"static/chunks/184-af5bc14575fc8ebd.js",
|
|
23
|
-
"static/chunks/app/web/page-
|
|
23
|
+
"static/chunks/app/web/page-93b87fd495171494.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-07d67f2d4e96ecb8.js",
|
|
30
|
+
"static/chunks/app/web/error-828d278147a0619d.js"
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/_not-found/page":"/_not-found","/api/auth/verify/route":"/api/auth/verify","/api/mcp/
|
|
1
|
+
{"/_not-found/page":"/_not-found","/api/auth/verify/route":"/api/auth/verify","/api/mcp/disconnect/route":"/api/mcp/disconnect","/api/mcp/connect/route":"/api/mcp/connect","/api/memory/[key]/route":"/api/memory/[key]","/api/mcp/servers/route":"/api/mcp/servers","/api/memory/route":"/api/memory","/api/projects/[id]/route":"/api/projects/[id]","/api/plugins/load/route":"/api/plugins/load","/api/projects/check/route":"/api/projects/check","/api/projects/roots/route":"/api/projects/roots","/api/projects/directories/route":"/api/projects/directories","/api/projects/route":"/api/projects","/api/remote-tools/register/route":"/api/remote-tools/register","/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-console/history/route":"/api/web-console/history","/api/web-console/preferences/route":"/api/web-console/preferences","/api/web-auth/logout/route":"/api/web-auth/logout","/web/page":"/web","/api/agent-workspaces/route":"/api/agent-workspaces","/api/agent-workspaces/[workspaceId]/sessions/route":"/api/agent-workspaces/[workspaceId]/sessions","/api/agent/abort/route":"/api/agent/abort","/api/agent/answer/route":"/api/agent/answer","/api/agent/model/route":"/api/agent/model","/api/agent/harness/status/route":"/api/agent/harness/status","/api/agent/models/route":"/api/agent/models","/api/agent/runtime-health/route":"/api/agent/runtime-health","/api/agent/steer/route":"/api/agent/steer","/api/agent/run/route":"/api/agent/run","/api/business/route":"/api/business","/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]/goals/route":"/api/sessions/[id]/goals","/api/sessions/[id]/release/route":"/api/sessions/[id]/release","/api/sessions/[id]/route":"/api/sessions/[id]","/api/sessions/[id]/handoff/route":"/api/sessions/[id]/handoff","/api/sessions/[id]/query-index/route":"/api/sessions/[id]/query-index","/api/sessions/route":"/api/sessions","/api/sessions/[id]/tool-result/route":"/api/sessions/[id]/tool-result","/api/settings/route":"/api/settings","/api/update/status/route":"/api/update/status","/api/update/check/route":"/api/update/check","/api/update/install/route":"/api/update/install","/api/web-console/bootstrap/route":"/api/web-console/bootstrap","/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/ZqeC5NkIDDyPiS-mzOs28/_buildManifest.js",
|
|
9
|
+
"static/ZqeC5NkIDDyPiS-mzOs28/_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-07d67f2d4e96ecb8.js"
|
|
16
16
|
],
|
|
17
17
|
"pages": {
|
|
18
18
|
"/_app": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":4,"routes":{"/api/
|
|
1
|
+
{"version":4,"routes":{"/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/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/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":"0e735367c5d3d054ba8dfda642fe53a8","previewModeSigningKey":"502219f40dd396eb9bbf4df9f6a5c63a1125dc13ac6611271e2e6fb08ea0d99a","previewModeEncryptionKey":"36a6fcc9b4e2a019c122b7bd3131496933f680a0a230dba6c5c1b43ca7c77130"}}
|
|
@@ -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":10,"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":"","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":"/
|
|
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":10,"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":"","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":"/Users/caoqu/team-agent/customer-agent/packages/server","relativeAppDir":"","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")},3878:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>i.a,__next_app__:()=>p,originalPathname:()=>c,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)),"/Users/caoqu/team-agent/customer-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=[],c="/_not-found/page",p={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}})},8490:(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:()=>s,metadata:()=>o});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"};function s({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(3878));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":{"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/app-router.js":{"id":7709,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/client-page.js":{"id":5613,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/error-boundary.js":{"id":6554,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/layout-router.js":{"id":1338,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-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},"/Users/caoqu/team-agent/customer-agent/packages/server/app/web/page.tsx":{"id":6061,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/packages/server/app/web/error.tsx":{"id":3194,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/caoqu/team-agent/customer-agent/packages/server/":[],"/Users/caoqu/team-agent/customer-agent/packages/server/app/layout":[],"/Users/caoqu/team-agent/customer-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-07d67f2d4e96ecb8.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><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\":\"ZqeC5NkIDDyPiS-mzOs28\",\"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\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"AgentRoam\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"General-purpose AI agent API server\"}],[\"$\",\"link\",\"4\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"AgentRoam\"}],[\"$\",\"meta\",\"7\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"8\",{\"rel\":\"icon\",\"href\":\"/pwa/icon-192.png\"}],[\"$\",\"link\",\"9\",{\"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:["ZqeC5NkIDDyPiS-mzOs28",[[["",{"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",{"charSet":"utf-8"}],["$","title","2",{"children":"AgentRoam"}],["$","meta","3",{"name":"description","content":"General-purpose AI agent API server"}],["$","link","4",{"rel":"manifest","href":"/manifest.webmanifest","crossOrigin":"use-credentials"}],["$","meta","5",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"AgentRoam"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","8",{"rel":"icon","href":"/pwa/icon-192.png"}],["$","link","9",{"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")},
|
|
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,s)=>{try{r.r(t),r.d(t,{originalPathname:()=>k,patchFetch:()=>h,requestAsyncStorage:()=>u,routeModule:()=>l,serverHooks:()=>p,staticGenerationAsyncStorage:()=>d});var i=r(7786),a=r(5042),o=r(2184),n=r(5746),c=e([n]);n=(c.then?(await c)():c)[0];let l=new i.AppRouteRouteModule({definition:{kind:a.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:n}),{requestAsyncStorage:u,staticGenerationAsyncStorage:d,serverHooks:p}=l,k="/api/agent/abort/route";function h(){return(0,o.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:d})}s()}catch(e){s(e)}})},5746:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{POST:()=>c});var i=r(1890),a=r(4537),o=r(2083),n=e([o]);async function c(e){let t;try{t=(await e.json()).sessionId}catch{}if(t&&(0,o.V_)(t)){try{await (0,o.NL)().abort(t)}catch(e){return i.NextResponse.json({error:e instanceof Error?e.message:"Abort failed"},{status:500})}return i.NextResponse.json({status:"aborted"})}return a.agentHost.abort(t),i.NextResponse.json({status:"aborted"})}o=(n.then?(await n)():n)[0],s()}catch(e){s(e)}})},1436:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1322),i=r(7561),a=r(9411);class o{constructor(e){this._acquired=!1,this.lockPath=e.replace(/scheduled_tasks\.json$/,".scheduler.lock")}get acquired(){return this._acquired}tryAcquire(){if(this._acquired)return!0;if((0,i.existsSync)(this.lockPath))try{let e=parseInt((0,i.readFileSync)(this.lockPath,"utf-8").trim(),10);if(!isNaN(e)&&e!==process.pid)try{return process.kill(e,0),!1}catch{}}catch{}try{let e=(0,a.dirname)(this.lockPath);return(0,i.existsSync)(e)||(0,i.mkdirSync)(e,{recursive:!0}),(0,i.writeFileSync)(this.lockPath,String(process.pid),"utf-8"),this._acquired=!0,!0}catch{return!1}}release(){if(this._acquired){try{(0,i.unlinkSync)(this.lockPath)}catch{}this._acquired=!1}}}class n{constructor(e,t,r){this.cronTasks=e,this.onFire=t,this.onTasksChanged=r,this.timer=null,this.watcher=null,this.started=!1,this.lock=new o(e.getFilePath())}start(){if(!this.started){if(!this.lock.tryAcquire()){console.warn("[CronScheduler] Another process holds the scheduler lock — skipping start.");return}this.started=!0,this.timer=setInterval(()=>{this.tick()},1e3),this.startFileWatcher(),console.log(`[CronScheduler] Started (PID=${process.pid})`)}}stop(){this.started&&(this.started=!1,this.timer&&(clearInterval(this.timer),this.timer=null),this.watcher&&(this.watcher.close(),this.watcher=null),this.lock.release(),console.log("[CronScheduler] Stopped."))}startFileWatcher(){let e=this.cronTasks.getFilePath(),t=(0,a.dirname)(e);if(!(0,i.existsSync)(t))try{(0,i.mkdirSync)(t,{recursive:!0})}catch{}try{this.watcher=(0,i.watch)(t,{persistent:!1},(e,t)=>{"scheduled_tasks.json"===t&&this.onTasksChanged(this.cronTasks.load())})}catch(e){console.warn("[CronScheduler] Could not start file watcher:",e)}}async tick(){let e=Date.now(),t=this.cronTasks.load(),r=!1;for(let i of t)i.enabled&&i.nextFireAt&&!(i.nextFireAt>e)&&(this.onFire(i),i.recurring?this.cronTasks.update(i.id,{nextFireAt:(0,s.Ilu)(i.cron,e),lastFiredAt:e}):this.cronTasks.delete(i.id),r=!0);r&&this.onTasksChanged(this.cronTasks.load())}}var c=r(785);class h{constructor(){this.tasks=new s.vo4((0,c.kO)()),this.scheduler=new n(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(4537).then(r.bind(r,4537)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(4537),r.e(732)]).then(r.bind(r,732)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let l=globalThis;function u(){return l.__sharedCronService??=new h}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6244,1322,4621,2083,4537],()=>r(1898));module.exports=s})();
|
|
@@ -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")},
|
|
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,s)=>{try{r.r(t),r.d(t,{originalPathname:()=>k,patchFetch:()=>u,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>p,staticGenerationAsyncStorage:()=>h});var i=r(7786),a=r(5042),n=r(2184),o=r(2556),c=e([o]);o=(c.then?(await c)():c)[0];let l=new i.AppRouteRouteModule({definition:{kind:a.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:h,serverHooks:p}=l,k="/api/agent/answer/route";function u(){return(0,n.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:h})}s()}catch(e){s(e)}})},2556:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{POST:()=>c});var i=r(1890),a=r(4537),n=r(2083),o=e([n]);async function c(e){try{let t=await e.json();if(!t.questionId||!t.answer)return i.NextResponse.json({error:"questionId and answer are required"},{status:400});let r=a.agentHost.answerQuestion(t.questionId,t.answer,t.selectedIndices);if(r||(r=await (0,n.NL)().answerQuestion(t.questionId,{answer:t.answer,selectedIndices:t.selectedIndices})),!r)return i.NextResponse.json({error:"Question not found or already answered"},{status:404});return i.NextResponse.json({ok:!0})}catch(e){return i.NextResponse.json({error:e instanceof Error?e.message:"Internal error"},{status:(0,n.WW)(e)})}}n=(o.then?(await o)():o)[0],s()}catch(e){s(e)}})},1436:(e,t,r)=>{r.d(t,{N:()=>d});var s=r(1322),i=r(7561),a=r(9411);class n{constructor(e){this._acquired=!1,this.lockPath=e.replace(/scheduled_tasks\.json$/,".scheduler.lock")}get acquired(){return this._acquired}tryAcquire(){if(this._acquired)return!0;if((0,i.existsSync)(this.lockPath))try{let e=parseInt((0,i.readFileSync)(this.lockPath,"utf-8").trim(),10);if(!isNaN(e)&&e!==process.pid)try{return process.kill(e,0),!1}catch{}}catch{}try{let e=(0,a.dirname)(this.lockPath);return(0,i.existsSync)(e)||(0,i.mkdirSync)(e,{recursive:!0}),(0,i.writeFileSync)(this.lockPath,String(process.pid),"utf-8"),this._acquired=!0,!0}catch{return!1}}release(){if(this._acquired){try{(0,i.unlinkSync)(this.lockPath)}catch{}this._acquired=!1}}}class o{constructor(e,t,r){this.cronTasks=e,this.onFire=t,this.onTasksChanged=r,this.timer=null,this.watcher=null,this.started=!1,this.lock=new n(e.getFilePath())}start(){if(!this.started){if(!this.lock.tryAcquire()){console.warn("[CronScheduler] Another process holds the scheduler lock — skipping start.");return}this.started=!0,this.timer=setInterval(()=>{this.tick()},1e3),this.startFileWatcher(),console.log(`[CronScheduler] Started (PID=${process.pid})`)}}stop(){this.started&&(this.started=!1,this.timer&&(clearInterval(this.timer),this.timer=null),this.watcher&&(this.watcher.close(),this.watcher=null),this.lock.release(),console.log("[CronScheduler] Stopped."))}startFileWatcher(){let e=this.cronTasks.getFilePath(),t=(0,a.dirname)(e);if(!(0,i.existsSync)(t))try{(0,i.mkdirSync)(t,{recursive:!0})}catch{}try{this.watcher=(0,i.watch)(t,{persistent:!1},(e,t)=>{"scheduled_tasks.json"===t&&this.onTasksChanged(this.cronTasks.load())})}catch(e){console.warn("[CronScheduler] Could not start file watcher:",e)}}async tick(){let e=Date.now(),t=this.cronTasks.load(),r=!1;for(let i of t)i.enabled&&i.nextFireAt&&!(i.nextFireAt>e)&&(this.onFire(i),i.recurring?this.cronTasks.update(i.id,{nextFireAt:(0,s.Ilu)(i.cron,e),lastFiredAt:e}):this.cronTasks.delete(i.id),r=!0);r&&this.onTasksChanged(this.cronTasks.load())}}var c=r(785);class u{constructor(){this.tasks=new s.vo4((0,c.kO)()),this.scheduler=new o(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(4537).then(r.bind(r,4537)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(4537),r.e(732)]).then(r.bind(r,732)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let l=globalThis;function d(){return l.__sharedCronService??=new u}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6244,1322,4621,2083,4537],()=>r(6345));module.exports=s})();
|
|
@@ -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")},9801:e=>{e.exports=require("os")},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")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},1041:e=>{e.exports=require("node:url")},
|
|
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")},9801:e=>{e.exports=require("os")},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")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},1041:e=>{e.exports=require("node:url")},9911:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>m,requestAsyncStorage:()=>d,routeModule:()=>u,serverHooks:()=>k,staticGenerationAsyncStorage:()=>p});var s={};r.r(s),r.d(s,{GET:()=>l,dynamic:()=>h});var i=r(7786),a=r(5042),n=r(2184),o=r(1890),c=r(4537);let h="force-dynamic";async function l(){return o.NextResponse.json(c.agentHost.getHarnessStatus(),{headers:{"cache-control":"no-store"}})}let u=new i.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:"/Users/caoqu/team-agent/customer-agent/packages/server/app/api/agent/harness/status/route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:d,staticGenerationAsyncStorage:p,serverHooks:k}=u,g="/api/agent/harness/status/route";function m(){return(0,n.patchFetch)({serverHooks:k,staticGenerationAsyncStorage:p})}},1436:(e,t,r)=>{r.d(t,{N:()=>u});var s=r(1322),i=r(7561),a=r(9411);class n{constructor(e){this._acquired=!1,this.lockPath=e.replace(/scheduled_tasks\.json$/,".scheduler.lock")}get acquired(){return this._acquired}tryAcquire(){if(this._acquired)return!0;if((0,i.existsSync)(this.lockPath))try{let e=parseInt((0,i.readFileSync)(this.lockPath,"utf-8").trim(),10);if(!isNaN(e)&&e!==process.pid)try{return process.kill(e,0),!1}catch{}}catch{}try{let e=(0,a.dirname)(this.lockPath);return(0,i.existsSync)(e)||(0,i.mkdirSync)(e,{recursive:!0}),(0,i.writeFileSync)(this.lockPath,String(process.pid),"utf-8"),this._acquired=!0,!0}catch{return!1}}release(){if(this._acquired){try{(0,i.unlinkSync)(this.lockPath)}catch{}this._acquired=!1}}}class o{constructor(e,t,r){this.cronTasks=e,this.onFire=t,this.onTasksChanged=r,this.timer=null,this.watcher=null,this.started=!1,this.lock=new n(e.getFilePath())}start(){if(!this.started){if(!this.lock.tryAcquire()){console.warn("[CronScheduler] Another process holds the scheduler lock — skipping start.");return}this.started=!0,this.timer=setInterval(()=>{this.tick()},1e3),this.startFileWatcher(),console.log(`[CronScheduler] Started (PID=${process.pid})`)}}stop(){this.started&&(this.started=!1,this.timer&&(clearInterval(this.timer),this.timer=null),this.watcher&&(this.watcher.close(),this.watcher=null),this.lock.release(),console.log("[CronScheduler] Stopped."))}startFileWatcher(){let e=this.cronTasks.getFilePath(),t=(0,a.dirname)(e);if(!(0,i.existsSync)(t))try{(0,i.mkdirSync)(t,{recursive:!0})}catch{}try{this.watcher=(0,i.watch)(t,{persistent:!1},(e,t)=>{"scheduled_tasks.json"===t&&this.onTasksChanged(this.cronTasks.load())})}catch(e){console.warn("[CronScheduler] Could not start file watcher:",e)}}async tick(){let e=Date.now(),t=this.cronTasks.load(),r=!1;for(let i of t)i.enabled&&i.nextFireAt&&!(i.nextFireAt>e)&&(this.onFire(i),i.recurring?this.cronTasks.update(i.id,{nextFireAt:(0,s.Ilu)(i.cron,e),lastFiredAt:e}):this.cronTasks.delete(i.id),r=!0);r&&this.onTasksChanged(this.cronTasks.load())}}var c=r(785);class h{constructor(){this.tasks=new s.vo4((0,c.kO)()),this.scheduler=new o(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(4537).then(r.bind(r,4537)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(4537),r.e(732)]).then(r.bind(r,732)),i=e.sessionId;i&&await t.getSessionStore().get(i)||(i=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:i})),await s().enqueue(i,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let l=globalThis;function u(){return l.__sharedCronService??=new h}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,1322,4621,4537],()=>r(9911));module.exports=s})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=159,e.ids=[159,732],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")},9801:e=>{e.exports=require("os")},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")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},1041:e=>{e.exports=require("node:url")},
|
|
1
|
+
"use strict";(()=>{var e={};e.id=159,e.ids=[159,732],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")},9801:e=>{e.exports=require("os")},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")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},1747:e=>{e.exports=require("node:readline")},1041:e=>{e.exports=require("node:url")},1850:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>w,patchFetch:()=>f,requestAsyncStorage:()=>p,routeModule:()=>h,serverHooks:()=>m,staticGenerationAsyncStorage:()=>g});var r={};s.r(r),s.d(r,{GET:()=>l,dynamic:()=>d});var a=s(7786),i=s(5042),n=s(2184),o=s(732),c=s(1890),u=s(4537);let d="force-dynamic";async function l(){return(0,o.U)(),c.NextResponse.json({...u.agentHost.getModelConfig(),buildId:u.agentHost.getWebAppBuildId()},{headers:{"cache-control":"no-store"}})}let h=new a.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:"/Users/caoqu/team-agent/customer-agent/packages/server/app/api/agent/model/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:p,staticGenerationAsyncStorage:g,serverHooks:m}=h,w="/api/agent/model/route";function f(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:g})}},732:(e,t,s)=>{s.d(t,{getCustomerGoalCoordinator:()=>u,U:()=>d});var r=s(1322),a=s(4537);class i{constructor(e,t,s,r,a,i){this.store=e,this.busy=t,this.run=s,this.abort=r,this.steerRun=a,this.persist=i,this.tails=new Map,this.draining=new Set}async get(e,t=!0){let s=(0,r.E0T)((await this.require(e)).metadata);return t&&this.resume(e),s}async enqueue(e,t,s){let a=await this.mutate(e,a=>(0,r.WfK)(a,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:s,now:Date.now()}));return this.resume(e),a}async enqueueMessage(e,t,s,a){let i=await this.mutate(e,i=>[i.active,...i.queued,...i.history].some(e=>e?.sourceMessageId===s)?i:(0,r.InG)(i,{id:crypto.randomUUID(),sessionId:e,objective:t,sourceMessageId:s,messagePayload:a,now:Date.now(),activate:!1}));return this.resume(e),i}reorder(e,t,s=!1){return this.mutate(e,e=>s?(0,r.h1F)(e,t):(0,r.ZC9)(e,t))}updateMessage(e,t,s,a){return this.mutate(e,e=>(0,r.Wog)(e,t,s,a))}async cancel(e,t){let s=await this.mutate(e,s=>(s.active?.id===t&&this.draining.has(e)&&this.abort(e),(0,r.LJm)(s,t,Date.now())));return this.resume(e),s}async steer(e,t){return this.mutate(e,async s=>{let a=s.queued.find(e=>e.id===t&&"message"===e.kind);if(!a||!this.busy(e))throw Error("没有可引导的运行或排队消息");if(!await this.steerRun(e,a.objective))throw Error("运行已结束,请继续排队");return(0,r.LJm)(s,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 s=await this.get(e,!1);if(!s.active&&!s.queued.length)return;if(this.busy(e)){await new Promise(e=>setTimeout(e,100));continue}let a=(await this.mutate(e,e=>(0,r.s_d)(e,Date.now()))).active;if(!a)continue;let i="failed";try{i=await this.run(e,a)}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===a.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 s=(this.tails.get(e)??Promise.resolve()).catch(()=>{}).then(async()=>{let s=await this.require(e),a=await t((0,r.E0T)(s.metadata));if(this.persist)this.persist(e,a);else{let t=await this.require(e);await this.store.update(e,{metadata:(0,r.eC7)(t.metadata,a)})}return a});this.tails.set(e,s);try{return await s}finally{this.tails.get(e)===s&&this.tails.delete(e)}}}var n=s(785);let o=globalThis,c=new Set;function u(){return o.__sharedCustomerQueue??=new i(a.agentHost.getSessionStore(),e=>a.agentHost.isSessionRunning(e),async(e,t)=>{c.add(e);try{return await a.agentHost.startRun(t.objective,e,t.messagePayload?.images,{agentIds:t.messagePayload?.agentIds}).completion,(await a.agentHost.getSessionStore().get(e))?.status==="completed"?"completed":"failed"}finally{c.delete(e)}},e=>{c.has(e)&&a.agentHost.abort(e)},(e,t)=>a.agentHost.steer(t,e),(e,t)=>{(0,r.N8n)((0,n.kO)()).db.prepare("UPDATE sessions SET metadata = json_set(metadata, '$.goalState', json(?)), updated = ? WHERE id = ?").run(JSON.stringify(t),new Date().toISOString(),e)})}function d(){for(let e of(0,r.N8n)((0,n.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())u().resume(e.id)}},1436:(e,t,s)=>{s.d(t,{N:()=>l});var r=s(1322),a=s(7561),i=s(9411);class n{constructor(e){this._acquired=!1,this.lockPath=e.replace(/scheduled_tasks\.json$/,".scheduler.lock")}get acquired(){return this._acquired}tryAcquire(){if(this._acquired)return!0;if((0,a.existsSync)(this.lockPath))try{let e=parseInt((0,a.readFileSync)(this.lockPath,"utf-8").trim(),10);if(!isNaN(e)&&e!==process.pid)try{return process.kill(e,0),!1}catch{}}catch{}try{let e=(0,i.dirname)(this.lockPath);return(0,a.existsSync)(e)||(0,a.mkdirSync)(e,{recursive:!0}),(0,a.writeFileSync)(this.lockPath,String(process.pid),"utf-8"),this._acquired=!0,!0}catch{return!1}}release(){if(this._acquired){try{(0,a.unlinkSync)(this.lockPath)}catch{}this._acquired=!1}}}class o{constructor(e,t,s){this.cronTasks=e,this.onFire=t,this.onTasksChanged=s,this.timer=null,this.watcher=null,this.started=!1,this.lock=new n(e.getFilePath())}start(){if(!this.started){if(!this.lock.tryAcquire()){console.warn("[CronScheduler] Another process holds the scheduler lock — skipping start.");return}this.started=!0,this.timer=setInterval(()=>{this.tick()},1e3),this.startFileWatcher(),console.log(`[CronScheduler] Started (PID=${process.pid})`)}}stop(){this.started&&(this.started=!1,this.timer&&(clearInterval(this.timer),this.timer=null),this.watcher&&(this.watcher.close(),this.watcher=null),this.lock.release(),console.log("[CronScheduler] Stopped."))}startFileWatcher(){let e=this.cronTasks.getFilePath(),t=(0,i.dirname)(e);if(!(0,a.existsSync)(t))try{(0,a.mkdirSync)(t,{recursive:!0})}catch{}try{this.watcher=(0,a.watch)(t,{persistent:!1},(e,t)=>{"scheduled_tasks.json"===t&&this.onTasksChanged(this.cronTasks.load())})}catch(e){console.warn("[CronScheduler] Could not start file watcher:",e)}}async tick(){let e=Date.now(),t=this.cronTasks.load(),s=!1;for(let a of t)a.enabled&&a.nextFireAt&&!(a.nextFireAt>e)&&(this.onFire(a),a.recurring?this.cronTasks.update(a.id,{nextFireAt:(0,r.Ilu)(a.cron,e),lastFiredAt:e}):this.cronTasks.delete(a.id),s=!0);s&&this.onTasksChanged(this.cronTasks.load())}}var c=s(785);class u{constructor(){this.tasks=new r.vo4((0,c.kO)()),this.scheduler=new o(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await s.e(4537).then(s.bind(s,4537)),{getCustomerGoalCoordinator:r}=await Promise.all([s.e(4537),s.e(732)]).then(s.bind(s,732)),a=e.sessionId;a&&await t.getSessionStore().get(a)||(a=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:a})),await r().enqueue(a,e.prompt)}call(e,t){let s=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(s);case"cronResume":return this.tasks.resume(s);case"cronDelete":return this.tasks.delete(s);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let d=globalThis;function l(){return d.__sharedCronService??=new u}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8375,6703,1322,4621,4537],()=>s(1850));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")},
|
|
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,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>u,requestAsyncStorage:()=>c,routeModule:()=>d,serverHooks:()=>x,staticGenerationAsyncStorage:()=>l});var s=t(7786),n=t(5042),a=t(2184),i=t(7362),p=e([i]);i=(p.then?(await p)():p)[0];let d=new s.AppRouteRouteModule({definition:{kind:n.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:i}),{requestAsyncStorage:c,staticGenerationAsyncStorage:l,serverHooks:x}=d,m="/api/agent/models/route";function u(){return(0,a.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:l})}o()}catch(e){o(e)}})},7362:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{GET:()=>p,dynamic:()=>u});var s=t(1890),n=t(132),a=t(2083),i=e([a]);a=(i.then?(await i)():i)[0];let u="force-dynamic";async function p(e){let r=new URL(e.url).searchParams.get("agentType");if("codex"!==r&&"claude-code"!==r&&"opencode"!==r)return s.NextResponse.json({error:"agentType must be codex, claude-code or opencode"},{status:400});try{let e=await (0,a.NL)().listModels(r);return s.NextResponse.json({agentType:r,models:e})}catch(e){if(e instanceof n.n&&"OPERATION_NOT_SUPPORTED"===e.code)return s.NextResponse.json({agentType:r,models:[],supported:!1});return s.NextResponse.json({error:e instanceof Error?e.message:"Failed to list models"},{status:(0,a.WW)(e)})}}o()}catch(e){o(e)}})},785:(e,r,t)=>{t.d(r,{kO:()=>n,sr:()=>a});var o=t(9411);let s=function(){let e=process.argv[1];if(e){let r=(0,o.dirname)((0,o.resolve)(e)),t=`${o.sep}node_modules${o.sep}.bin`;return r.endsWith(t)?(0,o.resolve)(r,"..",".."):r}return(0,o.resolve)(process.cwd())}();function n(){return function(e=process.env,r=s){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||r)}()}function a(){return function(e=process.env,r=s){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,n())}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375,6703,6244,1322,2083],()=>t(4402));module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=2616,e.ids=[2616],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=2616,e.ids=[2616],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")},3636:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>d,requestAsyncStorage:()=>l,routeModule:()=>u,serverHooks:()=>p,staticGenerationAsyncStorage:()=>h});var n=r(7786),i=r(5042),a=r(2184),o=r(7720),c=e([o]);o=(c.then?(await c)():c)[0];let u=new n.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/agent/run/route",pathname:"/api/agent/run",filename:"route",bundlePath:"app/api/agent/run/route"},resolvedPagePath:"/Users/caoqu/team-agent/customer-agent/packages/server/app/api/agent/run/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:p}=u,g="/api/agent/run/route";function d(){return(0,a.patchFetch)({serverHooks:p,staticGenerationAsyncStorage:h})}s()}catch(e){s(e)}})},7720:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{POST:()=>u});var n=r(1890),i=r(132),a=r(4537),o=r(2083),c=r(1770),d=e([o]);async function u(e){try{let t=await e.json();if(!t.input)return n.NextResponse.json({error:"input is required"},{status:400});if(void 0!==t.agentIds&&(!Array.isArray(t.agentIds)||t.agentIds.length>20||t.agentIds.some(e=>"string"!=typeof e||!e.trim())))return n.NextResponse.json({error:"agentIds must contain at most 20 non-empty IDs"},{status:400});if(t.sessionId&&(0,o.V_)(t.sessionId)){let e=t.sessionId,r=(0,o.NL)(),s=await r.startRun(e,t.input,t.images,"web",{...t.nativeModel?.id?{model:t.nativeModel}:{},...t.nativeReasoningEffort?{reasoningEffort:t.nativeReasoningEffort}:{}});a.agentHost.resetExternalStream(e),a.agentHost.publishExternal(e,{type:"run_admitted",_nativeRunId:s.runId,_nativeSequence:s.snapshotRevision});let c=null,d=!1;return r.subscribe(e,0,({event:t})=>{a.agentHost.publishExternal(e,t),("done"===t.type||"error"===t.type)&&(d=!0,c?.())}).then(e=>{c=e,d&&e()}).catch(t=>{let r=t instanceof i.n?t.code:void 0;a.agentHost.publishExternal(e,{type:"error",message:t instanceof Error?t.message:"Native run subscription failed",...r?{code:r}:{}})}),n.NextResponse.json({sessionId:e,streamUrl:`/api/agent/stream?sessionId=${e}`,runId:s.runId,snapshotRevision:s.snapshotRevision})}let r=t.sessionId??crypto.randomUUID(),s=a.agentHost.getSessionStore(),d=await s.get(r);if(!d){let e=new Date().toISOString();d=await s.create({id:r,projectId:"",title:`Chat ${e}`,status:"idle",messages:[],events:[],created:e,updated:e,metadata:{}})}let u=(0,c.vJ)(t),l=a.agentHost.startRun(t.input,r,t.images,{...t.model?{model:t.model}:{},...t.reasoningEffort?{reasoningEffort:t.reasoningEffort}:{},...void 0===t.maxIterations?{}:{maxIterations:u.maxIterations},...void 0===t.maxTokens?{}:{maxTokens:u.maxTokens},...t.agentIds?{agentIds:t.agentIds}:{}});return l.completion.catch(e=>{console.error("Agent run error:",e)}),n.NextResponse.json({sessionId:d.id,streamUrl:`/api/agent/stream?sessionId=${d.id}`,runId:l.runId})}catch(o){let e=o instanceof i.n?o.code:void 0,t=o instanceof a.A?o.code:void 0,r=e??t,s="SESSION_OCCUPIED"===r||"SESSION_ALREADY_RUNNING"===r;return n.NextResponse.json({error:o instanceof Error?o.message:"Internal error",...r?{code:r}:{}},{status:s?409:500})}}o=(d.then?(await d)():d)[0],s()}catch(e){s(e)}})},1770:(e,t,r)=>{function s(e,t,r,s){return"number"==typeof e&&Number.isFinite(e)?Math.min(s,Math.max(r,Math.trunc(e))):t}function n(e){return{maxIterations:s(e.maxIterations,10,1,50),maxTokens:s(e.maxTokens,1e5,8e3,2e6)}}r.d(t,{vJ:()=>n})},1436:(e,t,r)=>{r.d(t,{N:()=>l});var s=r(1322),n=r(7561),i=r(9411);class a{constructor(e){this._acquired=!1,this.lockPath=e.replace(/scheduled_tasks\.json$/,".scheduler.lock")}get acquired(){return this._acquired}tryAcquire(){if(this._acquired)return!0;if((0,n.existsSync)(this.lockPath))try{let e=parseInt((0,n.readFileSync)(this.lockPath,"utf-8").trim(),10);if(!isNaN(e)&&e!==process.pid)try{return process.kill(e,0),!1}catch{}}catch{}try{let e=(0,i.dirname)(this.lockPath);return(0,n.existsSync)(e)||(0,n.mkdirSync)(e,{recursive:!0}),(0,n.writeFileSync)(this.lockPath,String(process.pid),"utf-8"),this._acquired=!0,!0}catch{return!1}}release(){if(this._acquired){try{(0,n.unlinkSync)(this.lockPath)}catch{}this._acquired=!1}}}class o{constructor(e,t,r){this.cronTasks=e,this.onFire=t,this.onTasksChanged=r,this.timer=null,this.watcher=null,this.started=!1,this.lock=new a(e.getFilePath())}start(){if(!this.started){if(!this.lock.tryAcquire()){console.warn("[CronScheduler] Another process holds the scheduler lock — skipping start.");return}this.started=!0,this.timer=setInterval(()=>{this.tick()},1e3),this.startFileWatcher(),console.log(`[CronScheduler] Started (PID=${process.pid})`)}}stop(){this.started&&(this.started=!1,this.timer&&(clearInterval(this.timer),this.timer=null),this.watcher&&(this.watcher.close(),this.watcher=null),this.lock.release(),console.log("[CronScheduler] Stopped."))}startFileWatcher(){let e=this.cronTasks.getFilePath(),t=(0,i.dirname)(e);if(!(0,n.existsSync)(t))try{(0,n.mkdirSync)(t,{recursive:!0})}catch{}try{this.watcher=(0,n.watch)(t,{persistent:!1},(e,t)=>{"scheduled_tasks.json"===t&&this.onTasksChanged(this.cronTasks.load())})}catch(e){console.warn("[CronScheduler] Could not start file watcher:",e)}}async tick(){let e=Date.now(),t=this.cronTasks.load(),r=!1;for(let n of t)n.enabled&&n.nextFireAt&&!(n.nextFireAt>e)&&(this.onFire(n),n.recurring?this.cronTasks.update(n.id,{nextFireAt:(0,s.Ilu)(n.cron,e),lastFiredAt:e}):this.cronTasks.delete(n.id),r=!0);r&&this.onTasksChanged(this.cronTasks.load())}}var c=r(785);class d{constructor(){this.tasks=new s.vo4((0,c.kO)()),this.scheduler=new o(this.tasks,e=>{this.fire(e).catch(e=>console.error("Scheduled Customer Agent run failed",e))},()=>{}),this.scheduler.start()}async fire(e){let{agentHost:t}=await r.e(4537).then(r.bind(r,4537)),{getCustomerGoalCoordinator:s}=await Promise.all([r.e(4537),r.e(732)]).then(r.bind(r,732)),n=e.sessionId;n&&await t.getSessionStore().get(n)||(n=(await t.createSession(e.label||"定时任务")).id,this.tasks.update(e.id,{sessionId:n})),await s().enqueue(n,e.prompt)}call(e,t){let r=String(t[0]||"");switch(e){case"cronList":return this.tasks.list();case"cronCreate":{if("string"!=typeof t[0]||"string"!=typeof t[1]||!t[1].trim())throw Error("cron and prompt required");let e=t[2]&&"object"==typeof t[2]?t[2]:{};return this.tasks.create({cron:t[0],prompt:t[1],recurring:!1!==e.recurring,enabled:!0,durable:!0,..."string"==typeof e.sessionId?{sessionId:e.sessionId}:{},..."string"==typeof e.label?{label:e.label}:{}})}case"cronPause":return this.tasks.pause(r);case"cronResume":return this.tasks.resume(r);case"cronDelete":return this.tasks.delete(r);case"cronDeleteAll":return this.tasks.deleteAll(),{ok:!0};default:throw Error("Unsupported schedule operation")}}}let u=globalThis;function l(){return u.__sharedCronService??=new d}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8375,6703,6244,1322,4621,2083,4537],()=>r(3636));module.exports=s})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=5352,e.ids=[5352],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=5352,e.ids=[5352],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")},4714:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{originalPathname:()=>x,patchFetch:()=>p,requestAsyncStorage:()=>c,routeModule:()=>d,serverHooks:()=>h,staticGenerationAsyncStorage:()=>l});var n=t(7786),s=t(5042),a=t(2184),i=t(1335),u=e([i]);i=(u.then?(await u)():u)[0];let d=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/agent/runtime-health/route",pathname:"/api/agent/runtime-health",filename:"route",bundlePath:"app/api/agent/runtime-health/route"},resolvedPagePath:"/Users/caoqu/team-agent/customer-agent/packages/server/app/api/agent/runtime-health/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:c,staticGenerationAsyncStorage:l,serverHooks:h}=d,x="/api/agent/runtime-health/route";function p(){return(0,a.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:l})}o()}catch(e){o(e)}})},1335:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{GET:()=>i,dynamic:()=>u});var n=t(1890),s=t(2083),a=e([s]);s=(a.then?(await a)():a)[0];let u="force-dynamic";async function i(){let e=await (0,s.NL)().health();return n.NextResponse.json([{agentType:"customer-agent",available:!0,label:"Customer Agent"},...e])}o()}catch(e){o(e)}})},785:(e,r,t)=>{t.d(r,{kO:()=>s,sr:()=>a});var o=t(9411);let n=function(){let e=process.argv[1];if(e){let r=(0,o.dirname)((0,o.resolve)(e)),t=`${o.sep}node_modules${o.sep}.bin`;return r.endsWith(t)?(0,o.resolve)(r,"..",".."):r}return(0,o.resolve)(process.cwd())}();function s(){return function(e=process.env,r=n){return(0,o.resolve)(e.AGENT_DATA_DIR?.trim()||r)}()}function a(){return function(e=process.env,r=n){return(0,o.resolve)(e.AGENT_WORKING_DIRECTORY?.trim()||r)}(process.env,s())}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[8375,6703,6244,1322,2083],()=>t(4714));module.exports=o})();
|