@mndrk/agx 2.0.22 → 2.0.24
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/cloud-runtime/standalone/.next/BUILD_ID +1 -1
- package/cloud-runtime/standalone/.next/app-path-routes-manifest.json +1 -0
- package/cloud-runtime/standalone/.next/build-manifest.json +6 -6
- package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
- package/cloud-runtime/standalone/.next/routes-manifest.json +6 -0
- package/cloud-runtime/standalone/.next/server/app/_global-error/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/_global-error/page.js +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/_not-found/page.js +6 -5
- package/cloud-runtime/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +11 -11
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/agents/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/agents/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/agents.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route.js +7 -0
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route.js.map +5 -0
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/.next/server/app/api/filesystem/browse/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/.next/server/app/api/providers/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/status/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/automations/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/automations/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/automations.rsc +11 -11
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +11 -11
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/board/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/board/page.js +6 -6
- package/cloud-runtime/standalone/.next/server/app/board/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/board.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +8 -8
- package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/index.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/index.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +13 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/projects.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/settings/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/settings/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/settings.rsc +9 -9
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +9 -9
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/status/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/status/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/status/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/status.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome/page/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/welcome/page.js +5 -5
- package/cloud-runtime/standalone/.next/server/app/welcome/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.html +14 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +10 -10
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +3 -3
- package/cloud-runtime/standalone/.next/server/app-paths-manifest.json +1 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__60ba5058._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__621dcb4a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__babd2675._.js → [root-of-the-server]__82d76712._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d36da34d._.js → [root-of-the-server]__c2767ca5._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/_next-internal_server_app_api_filesystem_browse_route_actions_8e268170.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_2e721df2._.js +4 -4
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_74d1c060._.js +6 -6
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__fb05a385._.js → [root-of-the-server]__056cdf7d._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__113d6767._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__8d1af2c9._.js → [root-of-the-server]__11e33b9b._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__296a25b5._.js → [root-of-the-server]__19cd257e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__226f8a19._.js +13 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__51980630._.js → [root-of-the-server]__26d669c2._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__47caef59._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0a103abc._.js → [root-of-the-server]__4ebf5947._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__5ffa2883._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__6a9d3855._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__942ca438._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__c45c7360._.js → [root-of-the-server]__a667191a._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1cfbd715._.js → [root-of-the-server]__aa28d46f._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__bd4d5430._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ab36b420._.js → [root-of-the-server]__bde5bc78._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__cde88183._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__ce3b51aa._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__2503b467._.js → [root-of-the-server]__d36dd8bc._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__b77ae83d._.js → [root-of-the-server]__dac5ab29._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__3405b8e4._.js → [root-of-the-server]__e87ba2b0._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__b9356576._.js → [root-of-the-server]__f62d412e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__756711b8._.js → [root-of-the-server]__f63d6594._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__46de03a9._.js → [root-of-the-server]__febbd0b8._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{[root-of-the-server]__89c70d6f._.js → [root-of-the-server]__ff22a10e._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_a19a362a._.js → _02c78cac._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{node_modules_next_dist_08570d7f._.js → _0b36c9d6._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0ff7c687._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0ffd2660._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_37435df3._.js → _173da79d._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_4fe611fe._.js → _1c58ab2d._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_a88b4884._.js → _222af282._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_27cb3359._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_8ebf36f6._.js → _3aa32c11._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_43472af3._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_4b5d7c9b._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_c52176ad._.js → _4d4ba84b._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_194cda6c._.js → _50d04b8f._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_a8eaf6bc._.js → _629dc55c._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_6a367524._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_93914ecd._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_94effa0f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_a696e9b3._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_ae20456d._.js +4 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_c838f593._.js +95 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_cd5e154b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_d021529a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_fc18d7b5._.js → _e04b4053._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_e1769638._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_b9d3574c._.js → _f1465cc8._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_d4878ef1._.js → _f2a7beb1._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_fbced30b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{_8d8836a8._.js → _fc1aaf9e._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_agents_[id]_page_tsx_9c49d8c8._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_agents_page_tsx_f5f08ed8._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_automations_page_tsx_3d732184._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_execution-graph_page_tsx_f854185a._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_global-error_tsx_9170b7a0._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_page_tsx_e0fabf6e._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_chat-ui_bfeda794._.js +5 -5
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_thread_WorkspaceSidebar_tsx_e660301b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_03ec2107._.js +4 -0
- package/cloud-runtime/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_d92e159d.js → node_modules_next_dist_esm_build_templates_app-page_61c49327.js} +3 -3
- package/cloud-runtime/standalone/.next/server/middleware-build-manifest.js +4 -4
- package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
- package/cloud-runtime/standalone/.next/server/pages/404.html +13 -1
- package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{785cb91c31bb3303.js → 09f9eeea393db0fd.js} +3 -3
- package/cloud-runtime/standalone/.next/static/chunks/1184bf1bfdf97666.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/2acd153dc5252e88.js +30 -0
- package/cloud-runtime/standalone/.next/static/chunks/2deeba875ec50761.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/45b4d0ee5c92d45b.js +93 -0
- package/cloud-runtime/standalone/.next/static/chunks/5ace4b4f4475962a.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/616d66dbec9e4b8b.js +93 -0
- package/cloud-runtime/standalone/.next/static/chunks/64f812259cf8c243.js +18 -0
- package/cloud-runtime/standalone/.next/static/chunks/6dbf5940e30fa9c7.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/7d4c1d97169c8522.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/7f13efe9329d3f97.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/80219bbddcf65109.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{47ef8bb2118ea917.js → 86ace6febb11ad71.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{90c7dbc004f59a42.js → 88e24940a5d5d386.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/9d50c2514f72d926.css +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/b079c677d9b39f98.js +5 -0
- package/cloud-runtime/standalone/.next/static/chunks/b4e298542d366e31.js +93 -0
- package/cloud-runtime/standalone/.next/static/chunks/b88352740262931f.js +6 -0
- package/cloud-runtime/standalone/.next/static/chunks/bd6c5b5b4fbd6413.css +2 -0
- package/cloud-runtime/standalone/.next/static/chunks/c5609fd2abb65850.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{7ca3e4f9ed7425a8.js → d95cd010361834be.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/da434b1ad885d636.js +30 -0
- package/cloud-runtime/standalone/.next/static/chunks/e44264686aa5ecbf.js +93 -0
- package/cloud-runtime/standalone/.next/static/chunks/eab1c7d0246592f8.js +8 -0
- package/cloud-runtime/standalone/.next/static/chunks/f7bbf5cfcfed8ba9.js +1 -0
- package/cloud-runtime/standalone/.next/static/chunks/{turbopack-92401168917c21f2.js → turbopack-5b5918f610666d2d.js} +1 -1
- package/cloud-runtime/standalone/README.md +15 -3
- package/cloud-runtime/standalone/app/agents/[id]/page.tsx +147 -147
- package/cloud-runtime/standalone/app/agents/page.tsx +115 -310
- package/cloud-runtime/standalone/app/api/filesystem/browse/route.ts +39 -0
- package/cloud-runtime/standalone/app/api/status/route.ts +1 -1
- package/cloud-runtime/standalone/app/api/threads/route.ts +4 -5
- package/cloud-runtime/standalone/app/automations/page.tsx +1 -1
- package/cloud-runtime/standalone/app/execution-graph/page.tsx +86 -86
- package/cloud-runtime/standalone/app/global-error.tsx +54 -0
- package/cloud-runtime/standalone/app/globals.css +165 -59
- package/cloud-runtime/standalone/app/layout.tsx +17 -0
- package/cloud-runtime/standalone/app/projects/[slug]/layout.tsx +1 -1
- package/cloud-runtime/standalone/app/projects/[slug]/page.tsx +58 -58
- package/cloud-runtime/standalone/app/status/page.tsx +20 -20
- package/cloud-runtime/standalone/app/welcome/page.tsx +20 -15
- package/cloud-runtime/standalone/components/AutomationsBoard.tsx +1 -1
- package/cloud-runtime/standalone/components/ClientOnly.tsx +17 -0
- package/cloud-runtime/standalone/components/ConsentToggle/index.tsx +3 -3
- package/cloud-runtime/standalone/components/ContextMenu.tsx +123 -0
- package/cloud-runtime/standalone/components/DaemonBar.tsx +9 -9
- package/cloud-runtime/standalone/components/DirectoryBrowser.tsx +140 -0
- package/cloud-runtime/standalone/components/FirstRunModal/index.tsx +10 -10
- package/cloud-runtime/standalone/components/KanbanBoard.tsx +9 -9
- package/cloud-runtime/standalone/components/OfflineIndicator.tsx +149 -0
- package/cloud-runtime/standalone/components/ProjectModal.tsx +32 -8
- package/cloud-runtime/standalone/components/TaskCard.tsx +3 -3
- package/cloud-runtime/standalone/components/WorkspaceRootsList/index.tsx +57 -35
- package/cloud-runtime/standalone/components/chat-ui/AttachmentTray.tsx +7 -7
- package/cloud-runtime/standalone/components/chat-ui/ChatContainer.tsx +218 -121
- package/cloud-runtime/standalone/components/chat-ui/ChatPreview.tsx +4 -4
- package/cloud-runtime/standalone/components/chat-ui/CommandPopover.tsx +4 -4
- package/cloud-runtime/standalone/components/chat-ui/Composer.tsx +65 -29
- package/cloud-runtime/standalone/components/chat-ui/FileMentionPopover.tsx +4 -4
- package/cloud-runtime/standalone/components/chat-ui/FileMentionPopoverItem.tsx +9 -9
- package/cloud-runtime/standalone/components/chat-ui/LogPanel.tsx +5 -5
- package/cloud-runtime/standalone/components/chat-ui/Markdown.tsx +11 -11
- package/cloud-runtime/standalone/components/chat-ui/MentionPopover.tsx +11 -11
- package/cloud-runtime/standalone/components/chat-ui/MessageAttachments.tsx +5 -5
- package/cloud-runtime/standalone/components/chat-ui/MessageBubble.tsx +6 -6
- package/cloud-runtime/standalone/components/chat-ui/MessageList.tsx +60 -135
- package/cloud-runtime/standalone/components/chat-ui/ParticipantBar.tsx +507 -263
- package/cloud-runtime/standalone/components/chat-ui/ProjectPicker.tsx +17 -17
- package/cloud-runtime/standalone/components/chat-ui/ReactionChip.tsx +1 -1
- package/cloud-runtime/standalone/components/chat-ui/SearchResults.tsx +14 -14
- package/cloud-runtime/standalone/components/chat-ui/StatusIndicator.tsx +7 -7
- package/cloud-runtime/standalone/components/chat-ui/TaskDraftCard.tsx +14 -14
- package/cloud-runtime/standalone/components/chat-ui/TaskStatusCard.tsx +10 -10
- package/cloud-runtime/standalone/components/chat-ui/ThreadMentionPopover.tsx +8 -8
- package/cloud-runtime/standalone/components/chat-ui/ThreadView.tsx +36 -33
- package/cloud-runtime/standalone/components/chat-ui/TypingIndicator.tsx +7 -7
- package/cloud-runtime/standalone/components/errors/StartupGuardWrapper.tsx +96 -0
- package/cloud-runtime/standalone/components/thread/WorkspaceSidebar.tsx +173 -193
- package/cloud-runtime/standalone/fix-primary.js +30 -0
- package/cloud-runtime/standalone/fix-theme.js +78 -0
- package/cloud-runtime/standalone/hooks/useKeyboardShortcuts.ts +131 -0
- package/cloud-runtime/standalone/lib/history-store.ts +6 -1
- package/cloud-runtime/standalone/lib/storage/thread-adapter.ts +3 -3
- package/cloud-runtime/standalone/state/windowState.ts +179 -0
- package/cloud-runtime/standalone/styles/workspaceSidebar.css +89 -94
- package/cloud-runtime/standalone/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__3fe0b1a1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__5ea3dff5._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__931817d6._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__e68a6e30._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/[root-of-the-server]__fad8b80a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_181427d4._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_2da02644._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_60f7e403._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_7dbc349d._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_a17cabe8._.js +0 -95
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_d743f11d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_e05b04a5._.js +0 -4
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_f2970e5f._.js +0 -4
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_001a8448._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +0 -3
- package/cloud-runtime/standalone/.next/static/chunks/047593c886feba72.css +0 -2
- package/cloud-runtime/standalone/.next/static/chunks/0c589ec8063c3a1f.js +0 -30
- package/cloud-runtime/standalone/.next/static/chunks/1826707bd2f73ca6.js +0 -8
- package/cloud-runtime/standalone/.next/static/chunks/1f1b912fe2e3d5bd.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/32f13ace6661115d.js +0 -93
- package/cloud-runtime/standalone/.next/static/chunks/3b0a3b913dd15028.js +0 -30
- package/cloud-runtime/standalone/.next/static/chunks/4b3358c52d01a3f9.css +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/4ee6151684568990.js +0 -93
- package/cloud-runtime/standalone/.next/static/chunks/5488a71a8515e8b2.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/5aad4adabb65cd20.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/5ce01dbd17ce3bb2.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/5f5ae2ea4fa2b8f0.js +0 -12
- package/cloud-runtime/standalone/.next/static/chunks/6bb1ecbc3b80922c.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/7657d70cc0c40c81.js +0 -6
- package/cloud-runtime/standalone/.next/static/chunks/7f2513325b592f25.js +0 -18
- package/cloud-runtime/standalone/.next/static/chunks/8b658ccf17b771b9.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/b39122b85655e5b0.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/b649593a57df218f.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/b8ca4cb386211980.js +0 -5
- package/cloud-runtime/standalone/.next/static/chunks/e103488c85a7b445.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/e355ac901e70f43d.js +0 -1
- package/cloud-runtime/standalone/.next/static/chunks/ebebe08434070698.js +0 -93
- /package/cloud-runtime/standalone/.next/static/{H3MuYxcqCPfZoSC2uYW8f → Rn0z3Af30mHwrHLLwgKlz}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{H3MuYxcqCPfZoSC2uYW8f → Rn0z3Af30mHwrHLLwgKlz}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{H3MuYxcqCPfZoSC2uYW8f → Rn0z3Af30mHwrHLLwgKlz}/_ssgManifest.js +0 -0
package/cloud-runtime/standalone/.next/server/chunks/ssr/app_execution-graph_page_tsx_f854185a._.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
module.exports=[19960,a=>{"use strict";var b=a.i(90944),c=a.i(72131),d=a.i(15618),e=a.i(13749),f=a.i(67453),g=a.i(60137);let h=(0,g.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),i=(0,g.default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var j=a.i(62722);let k=(0,g.default)("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]),l=(0,g.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),m=(0,g.default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);var n=a.i(25015);let o=(0,g.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var p=a.i(92e3);let q=(0,g.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),r=(0,g.default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);var s=a.i(41710);let t=(0,g.default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),u=(0,g.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);var v=a.i(4416),w=a.i(1027);let x=(0,g.default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]),y=(0,g.default)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),z=[{id:"task-1",title:"Auth system",status:"PROGRESS",version:"v2",progress:60,nodesCount:7,mode:"PROJECT",currentGate:"quality-gate",policy:{replanBudgetInitial:3,replanBudgetRemaining:1,verifyBudgetInitial:5,verifyBudgetRemaining:4},history:[{id:1,event:"replan",from:"v1",to:"v2",reason:"Split implementation for parallelism",time:"2h ago"},{id:2,event:"node_status",node:"design",to:"done",time:"3h ago"}]},{id:"task-2",title:"Add dark mode",status:"INTAKE",version:"v1",progress:0,nodesCount:0,mode:"SIMPLE",blockingReason:"Analyzing requirements..."},{id:"task-3",title:"Fix login bug",status:"DONE",version:"v1",progress:100,nodesCount:3,mode:"SIMPLE"}],A=[{id:"n1",type:"work",title:"Design Auth",status:"done",x:300,y:40,metrics:{latency:"45m",tokens:"12k"}},{id:"f1",type:"fork",title:"Fork",status:"done",x:300,y:120},{id:"n2",type:"work",title:"Impl Auth",status:"done",x:180,y:220,metrics:{latency:"1h 20m",tokens:"45k"}},{id:"n3",type:"work",title:"Write Tests",status:"running",x:420,y:220,attempts:2,maxAttempts:3},{id:"j1",type:"join",title:"Join",status:"pending",x:300,y:320},{id:"g1",type:"gate",title:"Quality Gate",status:"pending",x:300,y:420,required:!0,strategy:"auto"},{id:"g2",type:"gate",title:"Handoff Gate",status:"pending",x:300,y:540,required:!0,strategy:"human",isLocked:!0}],B=[{from:"n1",to:"f1"},{from:"f1",to:"n2"},{from:"f1",to:"n3"},{from:"n2",to:"j1"},{from:"n3",to:"j1"},{from:"j1",to:"g1"},{from:"g1",to:"g2"}],C=({status:a,className:c,size:d=16})=>{switch(a){case"done":case"passed":return(0,b.jsx)(f.CheckCircle2,{size:d,className:`${c} text-green-500`});case"running":return(0,b.jsx)(h,{size:d,className:`${c} text-blue-500 animate-spin`});case"failed":return(0,b.jsx)(j.XCircle,{size:d,className:`${c} text-red-500`});case"pending":return(0,b.jsx)(i,{size:d,className:`${c} text-
|
|
1
|
+
module.exports=[19960,a=>{"use strict";var b=a.i(90944),c=a.i(72131),d=a.i(15618),e=a.i(13749),f=a.i(67453),g=a.i(60137);let h=(0,g.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),i=(0,g.default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var j=a.i(62722);let k=(0,g.default)("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]),l=(0,g.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),m=(0,g.default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);var n=a.i(25015);let o=(0,g.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var p=a.i(92e3);let q=(0,g.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),r=(0,g.default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);var s=a.i(41710);let t=(0,g.default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),u=(0,g.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);var v=a.i(4416),w=a.i(1027);let x=(0,g.default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]),y=(0,g.default)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),z=[{id:"task-1",title:"Auth system",status:"PROGRESS",version:"v2",progress:60,nodesCount:7,mode:"PROJECT",currentGate:"quality-gate",policy:{replanBudgetInitial:3,replanBudgetRemaining:1,verifyBudgetInitial:5,verifyBudgetRemaining:4},history:[{id:1,event:"replan",from:"v1",to:"v2",reason:"Split implementation for parallelism",time:"2h ago"},{id:2,event:"node_status",node:"design",to:"done",time:"3h ago"}]},{id:"task-2",title:"Add dark mode",status:"INTAKE",version:"v1",progress:0,nodesCount:0,mode:"SIMPLE",blockingReason:"Analyzing requirements..."},{id:"task-3",title:"Fix login bug",status:"DONE",version:"v1",progress:100,nodesCount:3,mode:"SIMPLE"}],A=[{id:"n1",type:"work",title:"Design Auth",status:"done",x:300,y:40,metrics:{latency:"45m",tokens:"12k"}},{id:"f1",type:"fork",title:"Fork",status:"done",x:300,y:120},{id:"n2",type:"work",title:"Impl Auth",status:"done",x:180,y:220,metrics:{latency:"1h 20m",tokens:"45k"}},{id:"n3",type:"work",title:"Write Tests",status:"running",x:420,y:220,attempts:2,maxAttempts:3},{id:"j1",type:"join",title:"Join",status:"pending",x:300,y:320},{id:"g1",type:"gate",title:"Quality Gate",status:"pending",x:300,y:420,required:!0,strategy:"auto"},{id:"g2",type:"gate",title:"Handoff Gate",status:"pending",x:300,y:540,required:!0,strategy:"human",isLocked:!0}],B=[{from:"n1",to:"f1"},{from:"f1",to:"n2"},{from:"f1",to:"n3"},{from:"n2",to:"j1"},{from:"n3",to:"j1"},{from:"j1",to:"g1"},{from:"g1",to:"g2"}],C=({status:a,className:c,size:d=16})=>{switch(a){case"done":case"passed":return(0,b.jsx)(f.CheckCircle2,{size:d,className:`${c} text-green-500`});case"running":return(0,b.jsx)(h,{size:d,className:`${c} text-blue-500 animate-spin`});case"failed":return(0,b.jsx)(j.XCircle,{size:d,className:`${c} text-red-500`});case"pending":return(0,b.jsx)(i,{size:d,className:`${c} text-[var(--app-shell-soft-text)]`});case"blocked":return(0,b.jsx)(k,{size:d,className:`${c} text-orange-500`});default:return null}},D=({label:a,current:c,total:d,colorClass:e})=>{let f=c/d*100;return(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase tracking-wider mb-1",children:[(0,b.jsx)("span",{children:a}),(0,b.jsxs)("span",{children:[c,"/",d]})]}),(0,b.jsx)("div",{className:"w-full h-2 bg-[var(--secondary)] rounded-full overflow-hidden border border-[var(--border)]/50",children:(0,b.jsx)("div",{className:`h-full transition-all duration-700 ease-out ${e}`,style:{width:`${f}%`}})})]})},E=({task:a,onClick:c})=>(0,b.jsxs)("div",{onClick:()=>c(a),className:"bg-[var(--card-bg)] border border-[var(--border)] rounded-xl p-4 shadow-sm hover:shadow-lg hover:border-blue-200 transition-all cursor-pointer group",children:[(0,b.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,b.jsx)("h4",{className:"font-bold text-[var(--foreground)] group-hover:text-blue-600 transition-colors",children:a.title}),(0,b.jsx)("span",{className:`text-[9px] px-1.5 py-0.5 rounded font-black uppercase tracking-widest ${"SIMPLE"===a.mode?"bg-[var(--secondary)] text-[var(--muted-foreground)]":"bg-blue-100 text-blue-600"}`,children:a.mode})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-[var(--app-shell-soft-text)] mb-4",children:[(0,b.jsx)(u,{size:12}),(0,b.jsxs)("span",{children:[a.nodesCount," nodes"]}),(0,b.jsx)("span",{className:"text-[var(--border)]",children:"•"}),(0,b.jsx)("span",{children:a.version})]}),(0,b.jsxs)("div",{className:"mb-4",children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-1.5",children:(0,b.jsxs)("span",{className:"text-[10px] font-black text-[var(--muted-foreground)]",children:[a.progress,"%"]})}),(0,b.jsx)("div",{className:"w-full h-1.5 bg-[var(--secondary)] rounded-full overflow-hidden",children:(0,b.jsx)("div",{className:`h-full transition-all duration-1000 ${"DONE"===a.status?"bg-green-500":"bg-blue-500"}`,style:{width:`${a.progress}%`}})})]}),a.currentGate&&(0,b.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-orange-600 bg-orange-50 px-2 py-1.5 rounded-lg border border-orange-100",children:[(0,b.jsx)(k,{size:14}),(0,b.jsx)("span",{className:"truncate uppercase tracking-wider",children:a.currentGate}),a.isLocked&&(0,b.jsx)(l,{size:10,className:"ml-auto opacity-50"})]}),"INTAKE"===a.status&&(0,b.jsxs)("div",{className:"flex items-center gap-2 text-[10px] font-bold text-[var(--app-shell-soft-text)] px-2 py-1.5 bg-[var(--secondary)] rounded-lg border border-[var(--border)] italic animate-pulse",children:[(0,b.jsx)(r,{size:12}),(0,b.jsx)("span",{children:a.blockingReason})]})]}),F=({node:a,isSelected:c,onClick:d})=>{let e="gate"===a.type,f=["fork","join","conditional"].includes(a.type);return(0,b.jsx)("div",{onClick:b=>{b.stopPropagation(),d(a)},className:`absolute flex flex-col items-center justify-center p-3 border-2 transition-all cursor-pointer z-20 hover:scale-105 active:scale-95 ${c?"ring-4 ring-blue-400/30 scale-105 border-blue-600":({done:"border-green-500 bg-green-50 text-green-700",passed:"border-green-500 bg-green-50 text-green-700",running:"border-blue-500 bg-blue-50 shadow-blue-100 shadow-xl ring-4 ring-blue-50",pending:"border-[var(--border)] bg-[var(--card-bg)] text-[var(--app-shell-soft-text)]",failed:"border-red-500 bg-red-50 text-red-700",blocked:"border-orange-500 bg-orange-50 text-orange-700"})[a.status]}`,style:{left:a.x,top:a.y,clipPath:e?"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)":f?"circle(50% at 50% 50%)":"none",transform:"translate(-50%, -50%)",width:f?"5rem":e?"8rem":"9rem",height:f?"5rem":e?"8rem":"5rem",borderRadius:f||e?"0":"1rem"},children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center text-center",children:[!f&&(0,b.jsx)("span",{className:"text-[9px] font-black uppercase tracking-tighter opacity-50 mb-0.5",children:a.type}),(0,b.jsx)("span",{className:`font-bold leading-tight ${f?"text-[10px]":"text-xs"}`,children:a.title}),(0,b.jsx)(C,{status:a.status,className:"mt-1.5",size:f?14:18}),a.required&&(0,b.jsx)(l,{size:10,className:"absolute top-2 right-2 opacity-30"})]})})};function G(){let a,[g,j]=(0,c.useState)("board"),[u,G]=(0,c.useState)(null),[H,I]=(0,c.useState)(null),[J,K]=(0,c.useState)(z),[L,M]=(0,c.useState)(2),N=a=>{G(a),M(parseInt(a.version.replace("v",""))),j("detail"),I(null)};return(0,b.jsxs)("div",{className:"antialiased min-h-screen",children:[(0,b.jsx)("style",{children:`
|
|
2
2
|
@keyframes dash {
|
|
3
3
|
to { stroke-dashoffset: -10; }
|
|
4
4
|
}
|
|
5
|
-
`}),"board"===g?(0,b.jsxs)("div",{className:"flex flex-col h-screen bg-slate-50 font-sans text-slate-900 overflow-hidden",children:[(0,b.jsxs)("header",{className:"flex items-center justify-between px-8 py-5 bg-white border-b border-slate-200",children:[(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center text-white font-black text-2xl shadow-xl shadow-blue-200 transform -rotate-3 hover:rotate-0 transition-transform cursor-pointer",children:"ag"}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-2xl font-black tracking-tight flex items-center gap-2",children:["agx ",(0,b.jsx)("span",{className:"text-blue-600",children:"v2"})]}),(0,b.jsx)("p",{className:"text-[10px] font-black text-slate-400 uppercase tracking-[0.2em]",children:"Execution Graph Engine"})]})]}),(0,b.jsxs)("div",{className:"flex gap-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-100 rounded-lg text-slate-500 font-bold text-xs border border-slate-200",children:[(0,b.jsx)(s.Clock,{size:14})," System Time: 21:50"]}),(0,b.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-xl font-bold transition-all shadow-lg shadow-blue-200 active:scale-95",children:[(0,b.jsx)(d.Plus,{size:18,strokeWidth:3}),"New Execution"]})]})]}),(0,b.jsx)("main",{className:"flex-1 overflow-x-auto p-8 bg-[var(--background)]",children:(0,b.jsx)("div",{className:"flex gap-8 min-w-max h-full",children:[{id:"INTAKE",icon:(0,b.jsx)(r,{size:14}),label:"Intake",color:"slate"},{id:"PROGRESS",icon:(0,b.jsx)(w.Zap,{size:14}),label:"Progress",color:"blue"},{id:"DONE",icon:(0,b.jsx)(v.ShieldCheck,{size:14}),label:"Done",color:"green"}].map(a=>(0,b.jsxs)("div",{className:"w-85 flex flex-col gap-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between px-2",children:[(0,b.jsxs)("div",{className:`flex items-center gap-2 font-black text-sm uppercase tracking-widest text-${a.color}-500`,children:[a.icon," ",a.label]}),(0,b.jsx)("span",{className:"text-[10px] font-black bg-white border border-slate-200 text-slate-400 px-3 py-1 rounded-full shadow-sm",children:J.filter(b=>b.status===a.id).length})]}),(0,b.jsx)("div",{className:"flex flex-col gap-4 overflow-y-auto pb-8",children:J.filter(b=>b.status===a.id).map(a=>(0,b.jsx)(E,{task:a,onClick:N},a.id))})]},a.id))})})]}):(a="PROJECT"===u.mode,(0,b.jsxs)("div",{className:"flex flex-col h-screen bg-white font-sans text-slate-900 overflow-hidden",children:[(0,b.jsxs)("header",{className:"flex items-center px-6 py-4 border-b border-slate-200 bg-white z-50 shadow-sm",children:[(0,b.jsx)("button",{onClick:()=>{j("board"),G(null),I(null)},className:"p-2.5 hover:bg-slate-100 rounded-xl transition-colors mr-4 text-slate-400 hover:text-slate-900",children:(0,b.jsx)(e.ChevronLeft,{size:24,strokeWidth:2.5})}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("h2",{className:"text-xl font-black tracking-tight",children:u.title}),(0,b.jsxs)("div",{className:"flex gap-1.5",children:[(0,b.jsxs)("span",{className:"px-2 py-0.5 bg-blue-600 text-white text-[9px] font-black rounded uppercase tracking-widest",children:["v",L]}),(0,b.jsxs)("span",{className:"px-2 py-0.5 bg-slate-100 text-slate-500 border border-slate-200 text-[9px] font-black rounded uppercase tracking-widest",children:[u.progress,"% Complete"]})]})]}),(0,b.jsxs)("div",{className:"flex gap-4 mt-0.5",children:[(0,b.jsxs)("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-tight",children:["ID: ",u.id]}),(0,b.jsx)("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-tight",children:"• Phase: Implementation"})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsxs)("button",{className:"flex items-center gap-2 px-4 py-2 text-slate-500 hover:text-slate-900 font-bold text-xs bg-slate-50 border border-slate-200 rounded-lg transition-all active:scale-95",children:[(0,b.jsx)(o,{size:16})," Configure"]}),(0,b.jsxs)("button",{onClick:()=>{let a=L+1;M(a);let b={...u,version:`v${a}`,policy:{...u.policy,replanBudgetRemaining:Math.max(0,u.policy.replanBudgetRemaining-1)},history:[{id:Date.now(),event:"replan",from:`v${L}`,to:`v${a}`,reason:"Manual scope adjustment",time:"Just now"},...u.history]};G(b),K(a=>a.map(a=>a.id===u.id?b:a))},className:"flex items-center gap-2 px-4 py-2 bg-slate-900 hover:bg-black text-white rounded-lg font-bold text-xs transition-all shadow-md active:scale-95",children:[(0,b.jsx)(x,{size:16})," Trigger Replan"]}),(0,b.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-black text-xs shadow-lg shadow-blue-200 transition-all active:scale-95",children:[(0,b.jsx)(n.Play,{size:16,fill:"white"})," RESUME EXECUTION"]})]})]}),(0,b.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,b.jsxs)("div",{className:"flex-1 flex flex-col relative overflow-hidden bg-slate-50",onClick:()=>I(null),children:[(0,b.jsx)("div",{className:"absolute top-6 left-6 z-10",children:(0,b.jsxs)("div",{className:"bg-white/90 backdrop-blur-md border border-slate-200 p-3 rounded-xl shadow-xl",children:[(0,b.jsx)("h3",{className:"text-[9px] font-black text-slate-400 uppercase mb-3 px-1 tracking-[0.2em]",children:"Visual Language"}),(0,b.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-slate-600",children:[(0,b.jsx)("div",{className:"w-5 h-3 rounded bg-slate-100 border border-slate-300"})," Work Node"]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-slate-600",children:[(0,b.jsx)("div",{className:"w-4 h-4 rotate-45 bg-slate-100 border border-slate-300"})," Gate Node"]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-slate-600",children:[(0,b.jsx)("div",{className:"w-4 h-4 rounded-full bg-slate-100 border border-slate-300"})," Control Node"]})]})]})}),(0,b.jsxs)("div",{className:"absolute bottom-6 left-6 z-10 flex gap-2",children:[(0,b.jsx)("button",{className:"p-2 bg-white border border-slate-200 rounded-lg shadow hover:bg-slate-50 text-slate-400",children:(0,b.jsx)(d.Plus,{size:16})}),(0,b.jsx)("button",{className:"p-2 bg-white border border-slate-200 rounded-lg shadow hover:bg-slate-50 text-slate-400",children:(0,b.jsx)(y,{size:16,className:"rotate-90"})}),(0,b.jsx)("button",{className:"px-3 py-2 bg-white border border-slate-200 rounded-lg shadow hover:bg-slate-50 text-[10px] font-black text-slate-500 uppercase tracking-widest",children:"Fit to Screen"})]}),(0,b.jsx)("div",{className:"flex-1 overflow-auto relative p-20 flex items-center justify-center cursor-grab active:cursor-grabbing",children:a?(0,b.jsxs)("div",{className:"relative w-[600px] h-[600px] select-none",children:[(0,b.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none",style:{overflow:"visible"},children:[(0,b.jsx)("defs",{children:(0,b.jsx)("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orientation:"auto",children:(0,b.jsx)("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#94a3b8"})})}),B.map((a,c)=>{let d=A.find(b=>b.id===a.from),e=A.find(b=>b.id===a.to);return d&&e?(0,b.jsx)("line",{x1:d.x,y1:d.y,x2:e.x,y2:e.y,stroke:"#cbd5e1",strokeWidth:"2.5",markerEnd:"url(#arrowhead)",strokeDasharray:"work"===d.type&&"running"===d.status?"5,5":"none",className:"running"===d.status?"animate-[dash_1s_linear_infinite]":""},c):null})]}),A.map(a=>(0,b.jsx)(F,{node:a,isSelected:H?.id===a.id,onClick:I},a.id))]}):(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center text-slate-400 bg-white p-16 rounded-[2.5rem] border-2 border-dashed border-slate-200 max-w-md text-center shadow-inner",children:[(0,b.jsx)("div",{className:"w-20 h-20 bg-slate-50 rounded-3xl flex items-center justify-center mb-6 border border-slate-100 shadow-sm",children:(0,b.jsx)(r,{size:40,className:"opacity-30"})}),(0,b.jsx)("h3",{className:"font-black text-xl text-slate-700 mb-3 tracking-tight",children:"Linear Task Logic"}),(0,b.jsx)("p",{className:"text-sm text-slate-400 font-medium leading-relaxed",children:"This task has been classified as SIMPLE. Execution runs through a predefined serial sequence without branching overhead."})]})}),(0,b.jsxs)("div",{className:"h-28 bg-white border-t border-slate-200 px-8 py-4 flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("span",{className:"text-[10px] font-black text-slate-400 uppercase tracking-[0.2em]",children:"Execution History Timeline"}),(0,b.jsx)("div",{className:"flex gap-4",children:(0,b.jsxs)("button",{className:"text-[10px] font-black text-blue-600 hover:text-blue-700 uppercase tracking-widest flex items-center gap-1.5",children:[(0,b.jsx)(m,{size:12})," View Full Logs"]})})]}),(0,b.jsxs)("div",{className:"flex items-center relative gap-24 h-full",children:[(0,b.jsx)("div",{className:"absolute top-1/2 left-0 w-full h-0.5 bg-slate-100 -translate-y-1/2"}),u.history.slice().reverse().map((a,c)=>(0,b.jsxs)("div",{className:"relative z-10 flex flex-col items-center group cursor-pointer",children:[(0,b.jsx)("div",{className:`w-3.5 h-3.5 rounded-full border-2 border-white ring-4 ring-offset-2 transition-all group-hover:scale-125 ${c===u.history.length-1?"bg-blue-600 ring-blue-100 scale-110":"bg-slate-300 ring-transparent opacity-60"}`}),(0,b.jsx)("span",{className:`text-[10px] font-black mt-2 uppercase tracking-tighter ${c===u.history.length-1?"text-blue-600":"text-slate-400"}`,children:a.from?`${a.from} → ${a.to}`:a.event}),(0,b.jsx)("span",{className:"text-[8px] font-bold text-slate-300 whitespace-nowrap",children:a.time})]},a.id)),(0,b.jsx)("div",{className:"ml-auto relative z-10 flex flex-col items-end",children:(0,b.jsxs)("div",{className:"px-4 py-1.5 bg-slate-50 border border-slate-200 rounded-lg text-[9px] font-black text-slate-400 italic tracking-widest uppercase shadow-sm",children:["Next Checkpoint: v",L+1]})})]})]})]}),(0,b.jsxs)("aside",{className:"w-90 border-l border-slate-200 p-8 flex flex-col gap-8 overflow-y-auto bg-white",children:[H?(0,b.jsxs)("div",{className:"animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,b.jsxs)("button",{onClick:()=>I(null),className:"mb-6 flex items-center gap-1.5 text-[10px] font-black text-blue-600 uppercase tracking-widest hover:gap-2 transition-all",children:[(0,b.jsx)(e.ChevronLeft,{size:14,strokeWidth:3})," Back to Overview"]}),(0,b.jsxs)("div",{className:"flex items-center gap-4 mb-8",children:[(0,b.jsx)("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center border-2 ${"done"===H.status?"bg-green-50 border-green-200 text-green-600":"bg-blue-50 border-blue-200 text-blue-600"}`,children:"work"===H.type?(0,b.jsx)(w.Zap,{size:24}):"gate"===H.type?(0,b.jsx)(v.ShieldCheck,{size:24}):(0,b.jsx)(x,{size:24})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("p",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest",children:[H.type," Node"]}),(0,b.jsx)("h3",{className:"text-xl font-black tracking-tight",children:H.title})]})]}),(0,b.jsxs)("div",{className:"space-y-8",children:[(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest mb-4",children:"Current Status"}),(0,b.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 bg-slate-50 rounded-xl border border-slate-200",children:[(0,b.jsx)(C,{status:H.status,size:20}),(0,b.jsx)("span",{className:"text-xs font-black uppercase tracking-widest text-slate-700",children:H.status})]})]}),"work"===H.type&&(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest mb-4",children:"Performance Metrics"}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,b.jsxs)("div",{className:"p-4 bg-white border border-slate-200 rounded-xl",children:[(0,b.jsx)("p",{className:"text-[9px] font-bold text-slate-400 uppercase mb-1",children:"Latency"}),(0,b.jsx)("p",{className:"text-sm font-black text-slate-800",children:H.metrics?.latency||"32m 14s"})]}),(0,b.jsxs)("div",{className:"p-4 bg-white border border-slate-200 rounded-xl",children:[(0,b.jsx)("p",{className:"text-[9px] font-bold text-slate-400 uppercase mb-1",children:"Compute"}),(0,b.jsx)("p",{className:"text-sm font-black text-slate-800",children:H.metrics?.tokens||"14.2k tokens"})]})]})]}),"gate"===H.type&&(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest mb-4",children:"Gate Requirements"}),(0,b.jsx)("div",{className:"space-y-3",children:[{label:"Unit Tests",status:"pass"},{label:"Linting",status:"pass"},{label:"Type Safety",status:"pass"},{label:"Coverage (>80%)",status:"fail"}].map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center justify-between p-3 bg-white border border-slate-200 rounded-xl",children:[(0,b.jsx)("span",{className:"text-[11px] font-bold text-slate-600",children:a.label}),"pass"===a.status?(0,b.jsx)(f.CheckCircle2,{size:16,className:"text-green-500"}):(0,b.jsx)(p.AlertCircle,{size:16,className:"text-red-500"})]},c))}),"pending"===H.status&&(0,b.jsxs)("div",{className:"mt-8 grid grid-cols-2 gap-3",children:[(0,b.jsx)("button",{className:"py-3 bg-red-50 text-red-600 border border-red-100 rounded-xl font-black text-[10px] uppercase tracking-widest hover:bg-red-100 transition-all",children:"Reject"}),(0,b.jsx)("button",{className:"py-3 bg-green-600 text-white rounded-xl font-black text-[10px] uppercase tracking-widest shadow-lg shadow-green-100 hover:bg-green-700 transition-all",children:"Approve Gate"})]})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest mb-4",children:"Node Dependencies"}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[B.filter(a=>a.to===H.id).map((a,c)=>(0,b.jsxs)("div",{className:"px-3 py-1.5 bg-slate-100 text-slate-500 text-[10px] font-bold rounded-lg border border-slate-200",children:["Source: ",a.from]},c)),0===B.filter(a=>a.to===H.id).length&&(0,b.jsx)("span",{className:"text-[10px] font-bold text-slate-300 italic uppercase",children:"Graph Start Node"})]})]})]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("section",{children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-slate-400 uppercase tracking-widest mb-6",children:[(0,b.jsx)(p.AlertCircle,{size:14})," Execution Overview"]}),(0,b.jsxs)("div",{className:"bg-slate-900 p-5 rounded-2xl text-white shadow-xl shadow-slate-200",children:[(0,b.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-[9px] font-black text-blue-400 uppercase tracking-widest mb-1",children:"Active Worker"}),(0,b.jsxs)("h4",{className:"text-lg font-black tracking-tight flex items-center gap-2",children:["write-tests ",(0,b.jsx)("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]})]}),(0,b.jsx)(h,{size:20,className:"text-slate-600 animate-[spin_3s_linear_infinite]"})]}),(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-slate-400 uppercase",children:[(0,b.jsx)("span",{children:"Current Attempt"}),(0,b.jsx)("span",{className:"text-white",children:"2 / 3"})]}),(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-slate-400 uppercase",children:[(0,b.jsx)("span",{children:"Time Elapsed"}),(0,b.jsx)("span",{className:"text-white font-mono",children:"15m 22s"})]})]})]})]}),(0,b.jsxs)("section",{children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-slate-400 uppercase tracking-widest mb-6",children:[(0,b.jsx)(q,{size:14})," Resource Budgets"]}),u.policy?(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(D,{label:"Replans Remaining",current:u.policy.replanBudgetRemaining,total:u.policy.replanBudgetInitial,colorClass:"bg-blue-600"}),(0,b.jsx)(D,{label:"Verify Budget",current:u.policy.verifyBudgetRemaining,total:u.policy.verifyBudgetInitial,colorClass:"bg-indigo-600"})]}):(0,b.jsx)("div",{className:"p-4 bg-slate-50 rounded-xl border border-slate-100 text-[10px] font-bold text-slate-400 uppercase text-center tracking-widest",children:"Standard Policy Applied"})]}),(0,b.jsxs)("section",{children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-slate-400 uppercase tracking-widest mb-6",children:[(0,b.jsx)(k,{size:14})," Gate Verification"]}),(0,b.jsxs)("div",{className:"space-y-5",children:[(0,b.jsxs)("div",{className:"flex items-start gap-4",children:[(0,b.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-orange-100 text-orange-600 border border-orange-200",children:(0,b.jsx)(i,{size:12,strokeWidth:3})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h5",{className:"text-xs font-black text-slate-700 uppercase tracking-tight",children:"quality-gate"}),(0,b.jsx)("p",{className:"text-[10px] text-slate-400 font-medium leading-relaxed mt-1",children:"Pending: Coverage metrics must meet 80% threshold before proceeding."})]})]}),(0,b.jsxs)("div",{className:"flex items-start gap-4 opacity-40",children:[(0,b.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-slate-100 text-slate-400 border border-slate-200",children:(0,b.jsx)(l,{size:12,strokeWidth:3})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h5",{className:"text-xs font-black text-slate-700 uppercase tracking-tight",children:"handoff-gate"}),(0,b.jsx)("p",{className:"text-[10px] text-slate-400 font-medium leading-relaxed mt-1",children:"Blocked: Human architecture review required after quality gate pass."})]})]})]})]})]}),(0,b.jsxs)("section",{className:"mt-auto pt-8 border-t border-slate-100",children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-slate-400 uppercase tracking-widest mb-4",children:[(0,b.jsx)(t,{size:14})," Global Policy"]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,b.jsx)("span",{className:"text-slate-400 uppercase",children:"Concurrency Limit"}),(0,b.jsx)("span",{className:"text-slate-700",children:"3 WorkNodes"})]}),(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,b.jsx)("span",{className:"text-slate-400 uppercase",children:"Mode"}),(0,b.jsx)("span",{className:"text-blue-600 uppercase",children:"Project / DAG"})]})]})]})]})]})]}))]})}a.s(["default",()=>G],19960)}];
|
|
5
|
+
`}),"board"===g?(0,b.jsxs)("div",{className:"flex flex-col h-screen bg-[var(--secondary)] font-sans text-[var(--foreground)] overflow-hidden",children:[(0,b.jsxs)("header",{className:"flex items-center justify-between px-8 py-5 bg-[var(--card-bg)] border-b border-[var(--border)]",children:[(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center text-white font-black text-2xl shadow-xl shadow-blue-200 transform -rotate-3 hover:rotate-0 transition-transform cursor-pointer",children:"ag"}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-2xl font-black tracking-tight flex items-center gap-2",children:["agx ",(0,b.jsx)("span",{className:"text-blue-600",children:"v2"})]}),(0,b.jsx)("p",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em]",children:"Execution Graph Engine"})]})]}),(0,b.jsxs)("div",{className:"flex gap-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 bg-[var(--secondary)] rounded-lg text-[var(--muted-foreground)] font-bold text-xs border border-[var(--border)]",children:[(0,b.jsx)(s.Clock,{size:14})," System Time: 21:50"]}),(0,b.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-xl font-bold transition-all shadow-lg shadow-blue-200 active:scale-95",children:[(0,b.jsx)(d.Plus,{size:18,strokeWidth:3}),"New Execution"]})]})]}),(0,b.jsx)("main",{className:"flex-1 overflow-x-auto p-8 bg-[var(--background)]",children:(0,b.jsx)("div",{className:"flex gap-8 min-w-max h-full",children:[{id:"INTAKE",icon:(0,b.jsx)(r,{size:14}),label:"Intake",color:"slate"},{id:"PROGRESS",icon:(0,b.jsx)(w.Zap,{size:14}),label:"Progress",color:"blue"},{id:"DONE",icon:(0,b.jsx)(v.ShieldCheck,{size:14}),label:"Done",color:"green"}].map(a=>(0,b.jsxs)("div",{className:"w-85 flex flex-col gap-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between px-2",children:[(0,b.jsxs)("div",{className:`flex items-center gap-2 font-black text-sm uppercase tracking-widest text-${a.color}-500`,children:[a.icon," ",a.label]}),(0,b.jsx)("span",{className:"text-[10px] font-black bg-[var(--card-bg)] border border-[var(--border)] text-[var(--app-shell-soft-text)] px-3 py-1 rounded-full shadow-sm",children:J.filter(b=>b.status===a.id).length})]}),(0,b.jsx)("div",{className:"flex flex-col gap-4 overflow-y-auto pb-8",children:J.filter(b=>b.status===a.id).map(a=>(0,b.jsx)(E,{task:a,onClick:N},a.id))})]},a.id))})})]}):(a="PROJECT"===u.mode,(0,b.jsxs)("div",{className:"flex flex-col h-screen bg-[var(--card-bg)] font-sans text-[var(--foreground)] overflow-hidden",children:[(0,b.jsxs)("header",{className:"flex items-center px-6 py-4 border-b border-[var(--border)] bg-[var(--card-bg)] z-50 shadow-sm",children:[(0,b.jsx)("button",{onClick:()=>{j("board"),G(null),I(null)},className:"p-2.5 hover:bg-[var(--item-hover-bg)] rounded-xl transition-colors mr-4 text-[var(--app-shell-soft-text)] hover:text-[var(--foreground)]",children:(0,b.jsx)(e.ChevronLeft,{size:24,strokeWidth:2.5})}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("h2",{className:"text-xl font-black tracking-tight",children:u.title}),(0,b.jsxs)("div",{className:"flex gap-1.5",children:[(0,b.jsxs)("span",{className:"px-2 py-0.5 bg-blue-600 text-white text-[9px] font-black rounded uppercase tracking-widest",children:["v",L]}),(0,b.jsxs)("span",{className:"px-2 py-0.5 bg-[var(--secondary)] text-[var(--muted-foreground)] border border-[var(--border)] text-[9px] font-black rounded uppercase tracking-widest",children:[u.progress,"% Complete"]})]})]}),(0,b.jsxs)("div",{className:"flex gap-4 mt-0.5",children:[(0,b.jsxs)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-bold uppercase tracking-tight",children:["ID: ",u.id]}),(0,b.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-bold uppercase tracking-tight",children:"• Phase: Implementation"})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsxs)("button",{className:"flex items-center gap-2 px-4 py-2 text-[var(--muted-foreground)] hover:text-[var(--foreground)] font-bold text-xs bg-[var(--secondary)] border border-[var(--border)] rounded-lg transition-all active:scale-95",children:[(0,b.jsx)(o,{size:16})," Configure"]}),(0,b.jsxs)("button",{onClick:()=>{let a=L+1;M(a);let b={...u,version:`v${a}`,policy:{...u.policy,replanBudgetRemaining:Math.max(0,u.policy.replanBudgetRemaining-1)},history:[{id:Date.now(),event:"replan",from:`v${L}`,to:`v${a}`,reason:"Manual scope adjustment",time:"Just now"},...u.history]};G(b),K(a=>a.map(a=>a.id===u.id?b:a))},className:"flex items-center gap-2 px-4 py-2 bg-[var(--foreground)] hover:bg-black text-white rounded-lg font-bold text-xs transition-all shadow-md active:scale-95",children:[(0,b.jsx)(x,{size:16})," Trigger Replan"]}),(0,b.jsxs)("button",{className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-black text-xs shadow-lg shadow-blue-200 transition-all active:scale-95",children:[(0,b.jsx)(n.Play,{size:16,fill:"white"})," RESUME EXECUTION"]})]})]}),(0,b.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,b.jsxs)("div",{className:"flex-1 flex flex-col relative overflow-hidden bg-[var(--secondary)]",onClick:()=>I(null),children:[(0,b.jsx)("div",{className:"absolute top-6 left-6 z-10",children:(0,b.jsxs)("div",{className:"bg-[var(--card-bg)] backdrop-blur-md border border-[var(--border)] p-3 rounded-xl shadow-xl",children:[(0,b.jsx)("h3",{className:"text-[9px] font-black text-[var(--app-shell-soft-text)] uppercase mb-3 px-1 tracking-[0.2em]",children:"Visual Language"}),(0,b.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,b.jsx)("div",{className:"w-5 h-3 rounded bg-[var(--secondary)] border border-[var(--border)]"})," Work Node"]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,b.jsx)("div",{className:"w-4 h-4 rotate-45 bg-[var(--secondary)] border border-[var(--border)]"})," Gate Node"]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-bold text-[var(--muted-foreground)]",children:[(0,b.jsx)("div",{className:"w-4 h-4 rounded-full bg-[var(--secondary)] border border-[var(--border)]"})," Control Node"]})]})]})}),(0,b.jsxs)("div",{className:"absolute bottom-6 left-6 z-10 flex gap-2",children:[(0,b.jsx)("button",{className:"p-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[var(--app-shell-soft-text)]",children:(0,b.jsx)(d.Plus,{size:16})}),(0,b.jsx)("button",{className:"p-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[var(--app-shell-soft-text)]",children:(0,b.jsx)(y,{size:16,className:"rotate-90"})}),(0,b.jsx)("button",{className:"px-3 py-2 bg-[var(--card-bg)] border border-[var(--border)] rounded-lg shadow hover:bg-[var(--item-hover-bg)] text-[10px] font-black text-[var(--muted-foreground)] uppercase tracking-widest",children:"Fit to Screen"})]}),(0,b.jsx)("div",{className:"flex-1 overflow-auto relative p-20 flex items-center justify-center cursor-grab active:cursor-grabbing",children:a?(0,b.jsxs)("div",{className:"relative w-[600px] h-[600px] select-none",children:[(0,b.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none",style:{overflow:"visible"},children:[(0,b.jsx)("defs",{children:(0,b.jsx)("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orientation:"auto",children:(0,b.jsx)("polygon",{points:"0 0, 10 3.5, 0 7",fill:"var(--app-shell-soft-text)"})})}),B.map((a,c)=>{let d=A.find(b=>b.id===a.from),e=A.find(b=>b.id===a.to);return d&&e?(0,b.jsx)("line",{x1:d.x,y1:d.y,x2:e.x,y2:e.y,stroke:"var(--border)",strokeWidth:"2.5",markerEnd:"url(#arrowhead)",strokeDasharray:"work"===d.type&&"running"===d.status?"5,5":"none",className:"running"===d.status?"animate-[dash_1s_linear_infinite]":""},c):null})]}),A.map(a=>(0,b.jsx)(F,{node:a,isSelected:H?.id===a.id,onClick:I},a.id))]}):(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center text-[var(--app-shell-soft-text)] bg-[var(--card-bg)] p-16 rounded-[2.5rem] border-2 border-dashed border-[var(--border)] max-w-md text-center shadow-inner",children:[(0,b.jsx)("div",{className:"w-20 h-20 bg-[var(--secondary)] rounded-3xl flex items-center justify-center mb-6 border border-[var(--border)] shadow-sm",children:(0,b.jsx)(r,{size:40,className:"opacity-30"})}),(0,b.jsx)("h3",{className:"font-black text-xl text-[var(--secondary-foreground)] mb-3 tracking-tight",children:"Linear Task Logic"}),(0,b.jsx)("p",{className:"text-sm text-[var(--app-shell-soft-text)] font-medium leading-relaxed",children:"This task has been classified as SIMPLE. Execution runs through a predefined serial sequence without branching overhead."})]})}),(0,b.jsxs)("div",{className:"h-28 bg-[var(--card-bg)] border-t border-[var(--border)] px-8 py-4 flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("span",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em]",children:"Execution History Timeline"}),(0,b.jsx)("div",{className:"flex gap-4",children:(0,b.jsxs)("button",{className:"text-[10px] font-black text-blue-600 hover:text-blue-700 uppercase tracking-widest flex items-center gap-1.5",children:[(0,b.jsx)(m,{size:12})," View Full Logs"]})})]}),(0,b.jsxs)("div",{className:"flex items-center relative gap-24 h-full",children:[(0,b.jsx)("div",{className:"absolute top-1/2 left-0 w-full h-0.5 bg-[var(--secondary)] -translate-y-1/2"}),u.history.slice().reverse().map((a,c)=>(0,b.jsxs)("div",{className:"relative z-10 flex flex-col items-center group cursor-pointer",children:[(0,b.jsx)("div",{className:`w-3.5 h-3.5 rounded-full border-2 border-[var(--card-bg)] ring-4 ring-offset-2 transition-all group-hover:scale-125 ${c===u.history.length-1?"bg-blue-600 ring-blue-100 scale-110":"bg-[var(--app-shell-soft-text)] ring-transparent opacity-60"}`}),(0,b.jsx)("span",{className:`text-[10px] font-black mt-2 uppercase tracking-tighter ${c===u.history.length-1?"text-blue-600":"text-[var(--app-shell-soft-text)]"}`,children:a.from?`${a.from} → ${a.to}`:a.event}),(0,b.jsx)("span",{className:"text-[8px] font-bold text-[var(--app-shell-soft-text)] whitespace-nowrap",children:a.time})]},a.id)),(0,b.jsx)("div",{className:"ml-auto relative z-10 flex flex-col items-end",children:(0,b.jsxs)("div",{className:"px-4 py-1.5 bg-[var(--secondary)] border border-[var(--border)] rounded-lg text-[9px] font-black text-[var(--app-shell-soft-text)] italic tracking-widest uppercase shadow-sm",children:["Next Checkpoint: v",L+1]})})]})]})]}),(0,b.jsxs)("aside",{className:"w-90 border-l border-[var(--border)] p-8 flex flex-col gap-8 overflow-y-auto bg-[var(--card-bg)]",children:[H?(0,b.jsxs)("div",{className:"animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,b.jsxs)("button",{onClick:()=>I(null),className:"mb-6 flex items-center gap-1.5 text-[10px] font-black text-blue-600 uppercase tracking-widest hover:gap-2 transition-all",children:[(0,b.jsx)(e.ChevronLeft,{size:14,strokeWidth:3})," Back to Overview"]}),(0,b.jsxs)("div",{className:"flex items-center gap-4 mb-8",children:[(0,b.jsx)("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center border-2 ${"done"===H.status?"bg-green-50 border-green-200 text-green-600":"bg-blue-50 border-blue-200 text-blue-600"}`,children:"work"===H.type?(0,b.jsx)(w.Zap,{size:24}):"gate"===H.type?(0,b.jsx)(v.ShieldCheck,{size:24}):(0,b.jsx)(x,{size:24})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("p",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest",children:[H.type," Node"]}),(0,b.jsx)("h3",{className:"text-xl font-black tracking-tight",children:H.title})]})]}),(0,b.jsxs)("div",{className:"space-y-8",children:[(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Current Status"}),(0,b.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 bg-[var(--secondary)] rounded-xl border border-[var(--border)]",children:[(0,b.jsx)(C,{status:H.status,size:20}),(0,b.jsx)("span",{className:"text-xs font-black uppercase tracking-widest text-[var(--secondary-foreground)]",children:H.status})]})]}),"work"===H.type&&(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Performance Metrics"}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,b.jsxs)("div",{className:"p-4 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,b.jsx)("p",{className:"text-[9px] font-bold text-[var(--app-shell-soft-text)] uppercase mb-1",children:"Latency"}),(0,b.jsx)("p",{className:"text-sm font-black text-[var(--foreground)]",children:H.metrics?.latency||"32m 14s"})]}),(0,b.jsxs)("div",{className:"p-4 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,b.jsx)("p",{className:"text-[9px] font-bold text-[var(--app-shell-soft-text)] uppercase mb-1",children:"Compute"}),(0,b.jsx)("p",{className:"text-sm font-black text-[var(--foreground)]",children:H.metrics?.tokens||"14.2k tokens"})]})]})]}),"gate"===H.type&&(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Gate Requirements"}),(0,b.jsx)("div",{className:"space-y-3",children:[{label:"Unit Tests",status:"pass"},{label:"Linting",status:"pass"},{label:"Type Safety",status:"pass"},{label:"Coverage (>80%)",status:"fail"}].map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center justify-between p-3 bg-[var(--card-bg)] border border-[var(--border)] rounded-xl",children:[(0,b.jsx)("span",{className:"text-[11px] font-bold text-[var(--muted-foreground)]",children:a.label}),"pass"===a.status?(0,b.jsx)(f.CheckCircle2,{size:16,className:"text-green-500"}):(0,b.jsx)(p.AlertCircle,{size:16,className:"text-red-500"})]},c))}),"pending"===H.status&&(0,b.jsxs)("div",{className:"mt-8 grid grid-cols-2 gap-3",children:[(0,b.jsx)("button",{className:"py-3 bg-red-50 text-red-600 border border-red-100 rounded-xl font-black text-[10px] uppercase tracking-widest hover:bg-red-100 transition-all",children:"Reject"}),(0,b.jsx)("button",{className:"py-3 bg-green-600 text-white rounded-xl font-black text-[10px] uppercase tracking-widest shadow-lg shadow-green-100 hover:bg-green-700 transition-all",children:"Approve Gate"})]})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h4",{className:"text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:"Node Dependencies"}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[B.filter(a=>a.to===H.id).map((a,c)=>(0,b.jsxs)("div",{className:"px-3 py-1.5 bg-[var(--secondary)] text-[var(--muted-foreground)] text-[10px] font-bold rounded-lg border border-[var(--border)]",children:["Source: ",a.from]},c)),0===B.filter(a=>a.to===H.id).length&&(0,b.jsx)("span",{className:"text-[10px] font-bold text-[var(--app-shell-soft-text)] italic uppercase",children:"Graph Start Node"})]})]})]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("section",{children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,b.jsx)(p.AlertCircle,{size:14})," Execution Overview"]}),(0,b.jsxs)("div",{className:"bg-[var(--foreground)] p-5 rounded-2xl text-white shadow-xl shadow-[var(--border)]",children:[(0,b.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-[9px] font-black text-blue-400 uppercase tracking-widest mb-1",children:"Active Worker"}),(0,b.jsxs)("h4",{className:"text-lg font-black tracking-tight flex items-center gap-2",children:["write-tests ",(0,b.jsx)("div",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse"})]})]}),(0,b.jsx)(h,{size:20,className:"text-[var(--muted-foreground)] animate-[spin_3s_linear_infinite]"})]}),(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase",children:[(0,b.jsx)("span",{children:"Current Attempt"}),(0,b.jsx)("span",{className:"text-white",children:"2 / 3"})]}),(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase",children:[(0,b.jsx)("span",{children:"Time Elapsed"}),(0,b.jsx)("span",{className:"text-white font-mono",children:"15m 22s"})]})]})]})]}),(0,b.jsxs)("section",{children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,b.jsx)(q,{size:14})," Resource Budgets"]}),u.policy?(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(D,{label:"Replans Remaining",current:u.policy.replanBudgetRemaining,total:u.policy.replanBudgetInitial,colorClass:"bg-blue-600"}),(0,b.jsx)(D,{label:"Verify Budget",current:u.policy.verifyBudgetRemaining,total:u.policy.verifyBudgetInitial,colorClass:"bg-indigo-600"})]}):(0,b.jsx)("div",{className:"p-4 bg-[var(--secondary)] rounded-xl border border-[var(--border)] text-[10px] font-bold text-[var(--app-shell-soft-text)] uppercase text-center tracking-widest",children:"Standard Policy Applied"})]}),(0,b.jsxs)("section",{children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-6",children:[(0,b.jsx)(k,{size:14})," Gate Verification"]}),(0,b.jsxs)("div",{className:"space-y-5",children:[(0,b.jsxs)("div",{className:"flex items-start gap-4",children:[(0,b.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-orange-100 text-orange-600 border border-orange-200",children:(0,b.jsx)(i,{size:12,strokeWidth:3})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h5",{className:"text-xs font-black text-[var(--secondary-foreground)] uppercase tracking-tight",children:"quality-gate"}),(0,b.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-medium leading-relaxed mt-1",children:"Pending: Coverage metrics must meet 80% threshold before proceeding."})]})]}),(0,b.jsxs)("div",{className:"flex items-start gap-4 opacity-40",children:[(0,b.jsx)("div",{className:"mt-1 flex items-center justify-center w-6 h-6 rounded-full bg-[var(--secondary)] text-[var(--app-shell-soft-text)] border border-[var(--border)]",children:(0,b.jsx)(l,{size:12,strokeWidth:3})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h5",{className:"text-xs font-black text-[var(--secondary-foreground)] uppercase tracking-tight",children:"handoff-gate"}),(0,b.jsx)("p",{className:"text-[10px] text-[var(--app-shell-soft-text)] font-medium leading-relaxed mt-1",children:"Blocked: Human architecture review required after quality gate pass."})]})]})]})]})]}),(0,b.jsxs)("section",{className:"mt-auto pt-8 border-t border-[var(--border)]",children:[(0,b.jsxs)("h3",{className:"flex items-center gap-2 text-[10px] font-black text-[var(--app-shell-soft-text)] uppercase tracking-widest mb-4",children:[(0,b.jsx)(t,{size:14})," Global Policy"]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,b.jsx)("span",{className:"text-[var(--app-shell-soft-text)] uppercase",children:"Concurrency Limit"}),(0,b.jsx)("span",{className:"text-[var(--secondary-foreground)]",children:"3 WorkNodes"})]}),(0,b.jsxs)("div",{className:"flex justify-between text-[10px] font-bold",children:[(0,b.jsx)("span",{className:"text-[var(--app-shell-soft-text)] uppercase",children:"Mode"}),(0,b.jsx)("span",{className:"text-blue-600 uppercase",children:"Project / DAG"})]})]})]})]})]})]}))]})}a.s(["default",()=>G],19960)}];
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=app_execution-graph_page_tsx_f854185a._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[85546,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/app/global-error.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/global-error.tsx <module evaluation>","default")},53128,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/app/global-error.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/global-error.tsx","default")},16893,a=>{"use strict";a.i(85546);var b=a.i(53128);a.n(b)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=app_global-error_tsx_9170b7a0._.js.map
|
package/cloud-runtime/standalone/.next/server/chunks/ssr/app_projects_[slug]_page_tsx_e0fabf6e._.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports=[19929,a=>{"use strict";var b=a.i(90944),c=a.i(72131),d=a.i(50944),e=a.i(85552),f=a.i(53722),g=a.i(15618),h=a.i(87532),i=a.i(81560),j=a.i(59102),k=a.i(56196),l=a.i(76548),m=a.i(39874),n=a.i(77679),o=a.i(75806);function p(){let[a,d]=(0,c.useState)(null),[e,f]=(0,c.useState)(!1),g=(0,c.useCallback)(async()=>{try{let a=await fetch("/api/daemon");a.ok&&d(await a.json())}catch{}},[]);(0,c.useEffect)(()=>{g();let a=setInterval(g,1e4);return()=>clearInterval(a)},[g]);let h=async()=>{f(!0);try{a?.running?await fetch("/api/daemon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"stop"})}):await fetch("/api/daemon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workers:1})}),await g()}finally{f(!1)}},i=async b=>{if(!a)return;let c=Math.max(1,Math.min(a.maxWorkers,a.targetWorkers+b));if(c!==a.targetWorkers){f(!0);try{await fetch("/api/daemon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workers:c})}),await g()}finally{f(!1)}}};if(!a)return null;let j=a.running;return(0,b.jsxs)("div",{className:"flex items-center gap-3 py-2 text-xs text-
|
|
1
|
+
module.exports=[19929,a=>{"use strict";var b=a.i(90944),c=a.i(72131),d=a.i(50944),e=a.i(85552),f=a.i(53722),g=a.i(15618),h=a.i(87532),i=a.i(81560),j=a.i(59102),k=a.i(56196),l=a.i(76548),m=a.i(39874),n=a.i(77679),o=a.i(75806);function p(){let[a,d]=(0,c.useState)(null),[e,f]=(0,c.useState)(!1),g=(0,c.useCallback)(async()=>{try{let a=await fetch("/api/daemon");a.ok&&d(await a.json())}catch{}},[]);(0,c.useEffect)(()=>{g();let a=setInterval(g,1e4);return()=>clearInterval(a)},[g]);let h=async()=>{f(!0);try{a?.running?await fetch("/api/daemon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"stop"})}):await fetch("/api/daemon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workers:1})}),await g()}finally{f(!1)}},i=async b=>{if(!a)return;let c=Math.max(1,Math.min(a.maxWorkers,a.targetWorkers+b));if(c!==a.targetWorkers){f(!0);try{await fetch("/api/daemon",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workers:c})}),await g()}finally{f(!1)}}};if(!a)return null;let j=a.running;return(0,b.jsxs)("div",{className:"flex items-center gap-3 py-2 text-xs text-[var(--muted-foreground)]",children:[(0,b.jsxs)("button",{type:"button",onClick:h,disabled:e,className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full border border-[var(--border)] hover:border-[var(--border)] transition-colors disabled:opacity-50",children:[(0,b.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${j?"bg-emerald-500":"bg-[var(--app-shell-soft-text)]"}`}),(0,b.jsx)("span",{className:"font-medium text-[var(--muted-foreground)]",children:e?"...":j?"Daemon running":"Daemon stopped"})]}),j&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"inline-flex items-center rounded-full border border-[var(--border)] overflow-hidden",children:[(0,b.jsx)("button",{type:"button",onClick:()=>i(-1),disabled:e||a.targetWorkers<=1,className:"px-1.5 py-0.5 hover:bg-[var(--muted)] transition-colors disabled:opacity-30 text-[var(--muted-foreground)]",children:"-"}),(0,b.jsxs)("span",{className:"px-2 py-0.5 font-mono text-[var(--muted-foreground)] border-x border-[var(--border)]",children:[a.activeWorkers,"/",a.targetWorkers,"w"]}),(0,b.jsx)("button",{type:"button",onClick:()=>i(1),disabled:e||a.targetWorkers>=a.maxWorkers,className:"px-1.5 py-0.5 hover:bg-[var(--muted)] transition-colors disabled:opacity-30 text-[var(--muted-foreground)]",children:"+"})]}),a.startedAt&&(0,b.jsxs)("span",{className:"text-[var(--muted-foreground)]",children:["up since ",new Date(a.startedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]})]})}var q=a.i(4301);function r({params:a}){let{slug:r}=(0,c.use)(a),s=(0,d.useRouter)(),{tasks:t,isLoading:u,createTask:v,updateTask:w,deleteTask:x,completeTaskStage:y,cancelWorkflow:z,refetch:A,cancellingTaskId:B,fetchTask:C}=(0,j.useTasks)({realtime:!0,project:r}),{projects:D}=(0,k.useProjects)(),{workflow:E,stages:F,stageConfig:G,isValidTransition:H,isLoading:I}=(0,l.useWorkflows)(),[J,K]=(0,c.useState)(""),[L,M]=(0,c.useState)(!1),[N,O]=(0,c.useState)(!1),[P,Q]=(0,c.useState)(null),[R,S]=(0,c.useState)(!1),[T,U]=(0,c.useState)(!1),[V,W]=(0,c.useState)(""),[X,Y]=(0,c.useState)(""),[Z,$]=(0,c.useState)(""),[_,aa]=(0,c.useState)({}),[ab,ac]=(0,c.useState)([]),[ad,ae]=(0,c.useState)({}),af=D.find(a=>a.slug===r),ag=af?.id??null,{skills:ah,addSkill:ai,removeSkill:aj}=function(a){let[b,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(!0),g=(0,c.useCallback)(async()=>{if(!a){d([]),f(!1);return}try{let b=await fetch(`/api/projects/${a}/skills`);if(!b.ok)return;let c=await b.json();d(c.skills??[])}catch{}finally{f(!1)}},[a]);return(0,c.useEffect)(()=>{g()},[g]),{skills:b,isLoading:e,addSkill:(0,c.useCallback)(async(b,c)=>{if(a)try{(await fetch(`/api/projects/${a}/skills`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:b,condition:c})})).ok&&await g()}catch{}},[a,g]),removeSkill:(0,c.useCallback)(async b=>{if(a)try{(await fetch(`/api/projects/${a}/skills?skillId=${b}`,{method:"DELETE"})).ok&&d(a=>a.filter(a=>a.id!==b))}catch{}},[a]),refresh:g}}(ag),{memory:ak,addMemory:al,deleteMemory:am}=function(a){let[b,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(!0),g=(0,c.useCallback)(async()=>{if(!a){d([]),f(!1);return}try{let b=await fetch(`/api/projects/${a}/memory?producer=human`);if(!b.ok)return;let c=await b.json();d(c.memory??[])}catch{}finally{f(!1)}},[a]);return(0,c.useEffect)(()=>{g()},[g]),{memory:b,isLoading:e,addMemory:(0,c.useCallback)(async(b,c)=>{if(a)try{(await fetch(`/api/projects/${a}/memory`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:b,source:c,producer:"human"})})).ok&&await g()}catch{}},[a,g]),deleteMemory:(0,c.useCallback)(async b=>{if(a)try{(await fetch(`/api/projects/${a}/memory?memoryId=${b}`,{method:"DELETE"})).ok&&d(a=>a.filter(a=>a.id!==b))}catch{}},[a]),refresh:g}}(ag);(0,c.useEffect)(()=>{af?.repos&&aa(a=>{let b={};for(let c of af.repos)b[c.id]=a[c.id]??c.notes??"";return b})},[af?.repos]),(0,c.useEffect)(()=>{let a=!1;return async function(){let b=af?.repos??[];if(0!==b.length)try{let c=await Promise.all(b.map(async a=>{let b=await fetch(`/api/repos/${a.id}/knowledge?producer=human`),c=((b.ok?await b.json():{knowledge:[]}).knowledge??[]).map(a=>String(a.content??"").trim()).filter(Boolean).join("\n\n");return[a.id,c]}));a||aa(a=>{let b={...a};for(let[a,d]of c)d&&(b[a]=d);return b})}catch{}}(),()=>{a=!0}},[af?.repos]),(0,c.useEffect)(()=>{let a=!1;return async function(){if(!ag)return ac([]);try{let b=await fetch(`/api/projects/${ag}/memory?producer=system`);if(!b.ok)return;let c=await b.json();a||ac(c.memory??[])}catch{a||ac([])}}(),()=>{a=!0}},[ag]),(0,c.useEffect)(()=>{let a=!1;return async function(){let b=af?.repos??[];if(0===b.length)return ae({});try{let c=await Promise.all(b.map(async a=>{let b=await fetch(`/api/repos/${a.id}/knowledge?producer=system`),c=b.ok?await b.json():{knowledge:[]};return[a.id,c.knowledge??[]]}));a||ae(Object.fromEntries(c))}catch{a||ae({})}}(),()=>{a=!0}},[af?.repos]);let{processes:an}=(0,q.useProcessPolling)(af?{workspaceId:af.id}:null,{intervalMs:3e3}),ao=(0,c.useMemo)(()=>{if(!J.trim())return t;let a=J.toLowerCase();return t.filter(b=>(b.title||"").toLowerCase().includes(a)||(b.content||"").toLowerCase().includes(a))},[t,J]),ap=(0,c.useMemo)(()=>t.some(a=>!!a.graph_id),[t]),aq=(0,c.useMemo)(()=>t.filter(a=>a.graph_id).map(a=>a.id),[t]),[ar,as]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(0===aq.length)return void as(!0);let a=!1;return(0,o.prefetchGraphSummaries)(aq).then(()=>{a||as(!0)}),()=>{a=!0}},[aq]);let at=(0,c.useCallback)(a=>{let b=(0,o.getCachedGraphSummary)(a.id);if(!b)return"done"===a.stage||"completed"===a.status?"DONE":"INTAKE"===a.stage||"ideation"===a.stage||"queued"===a.status?"INTAKE":"PROGRESS";return b.derivedStatus},[]),au=(0,c.useCallback)(a=>{s.push(`/projects/${r}/graph/${a.id}`)},[s,r]),av=(0,c.useCallback)(async(a,b)=>{await w(a,b)},[w]),aw=async(a,b)=>{let c=[`status: ${"INTAKE"===b?"queued":"in_progress"}`,`stage: ${b}`];af&&(c.push(`project: ${af.slug}`),c.push(`project_id: ${af.id}`),c.push(`workflow_id: ${af.workflow_id||l.DEFAULT_WORKFLOW_ID}`));let d=`---
|
|
2
2
|
${c.join("\n")}
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# ${a}
|
|
6
|
-
`;await v(d,null),M(!1)},ax=(0,c.useCallback)(async()=>{if(!af?.id)return void Q("Project is not loaded yet.");O(!0),Q(null);try{let a=await fetch(`/api/projects/${af.id}/migrate-v2`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dryRun:!1})}),b=await a.json().catch(()=>({}));if(!a.ok)throw Error(b?.error||`Migration failed (${a.status})`);let c=Number(b?.processed??0),d=Number(b?.migrated??0),e=Number(b?.skipped??0),f=Number(b?.failed??0),g=Number(b?.backup?.backedUp??0);Q(`Migration finished: backed up ${g}, processed ${c}, migrated ${d}, skipped ${e}, failed ${f}.`),await A()}catch(b){let a=b instanceof Error?b.message:String(b);Q(`Migration failed: ${a}`)}finally{O(!1)}},[af?.id,A]);return u||I?(0,b.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,b.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,b.jsx)("span",{className:"spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"}),(0,b.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading board..."})]})}):(0,b.jsxs)("div",{className:"h-full flex flex-col",children:[(0,b.jsxs)("div",{className:"flex-shrink-0 border-b border-slate-200 bg-white/80 backdrop-blur-md px-3 sm:px-6 py-2 sm:py-0 sm:h-14 flex flex-col sm:flex-row sm:items-center justify-between gap-2 sm:gap-4",children:[(0,b.jsx)("div",{className:"flex items-center gap-3 sm:gap-4 text-sm text-slate-400 flex-shrink-0",children:(0,b.jsx)("span",{className:"font-semibold text-slate-900 truncate",children:af?.name||r})}),(0,b.jsxs)("div",{className:"flex items-center gap-3 flex-1 sm:justify-end",children:[(0,b.jsxs)("div",{className:"relative w-full sm:max-w-sm group",children:[(0,b.jsx)(h.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-indigo-500 transition-colors",size:14}),(0,b.jsx)("input",{type:"text",placeholder:"Search tasks...",value:J,onChange:a=>K(a.target.value),className:"w-full bg-slate-50 border border-slate-200 rounded-full py-1.5 pl-9 pr-4 text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 transition-all"})]}),(0,b.jsx)("button",{type:"button",onClick:()=>S(a=>!a),className:`hidden sm:inline-flex px-3 py-1.5 rounded-full text-xs font-medium border transition-colors whitespace-nowrap ${R?"bg-indigo-50 border-indigo-200 text-indigo-700":"bg-white border-slate-200 hover:border-indigo-300 hover:text-indigo-600"}`,title:"Inspect and edit project-scoped knowledge",children:R?"Hide project knowledge":"Project knowledge"}),(0,b.jsx)("button",{type:"button",onClick:()=>U(a=>!a),className:`hidden sm:inline-flex px-3 py-1.5 rounded-full text-xs font-medium border transition-colors whitespace-nowrap ${T?"bg-emerald-50 border-emerald-200 text-emerald-700":"bg-white border-slate-200 hover:border-emerald-300 hover:text-emerald-600"}`,title:"Inspect and edit repo-scoped knowledge",children:T?"Hide repo knowledge":"Repo knowledge"}),!ap&&(0,b.jsx)("button",{type:"button",onClick:ax,disabled:N||!af?.id,className:`hidden sm:inline-flex px-3 py-1.5 rounded-full text-xs font-medium border transition-colors whitespace-nowrap ${N?"bg-slate-100 border-slate-200 text-slate-400 cursor-wait":"bg-white border-slate-200 hover:border-indigo-300 hover:text-indigo-600"}`,title:"Create v2 execution graphs for tasks in this project",children:N?"Migrating...":"Migrate to v2"})]})]}),P&&(0,b.jsx)("p",{className:"text-xs text-slate-400 px-6 py-1",children:P}),R&&af&&(0,b.jsx)("div",{className:"px-3 sm:px-6 py-3",children:(0,b.jsxs)("div",{className:"rounded-3xl border border-slate-200 bg-white p-4 sm:p-6 shadow-sm",children:[(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-5",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-xs font-black text-slate-400 uppercase tracking-[0.2em] flex items-center gap-2",children:[(0,b.jsx)(e.BrainCircuit,{className:"w-4 h-4"})," Project Knowledge"]}),(0,b.jsx)("p",{className:"mt-2 text-sm text-slate-600 max-w-2xl",children:"Edit project-scoped knowledge here. This is situational context for this project, not portable agent knowledge and not durable repo truth."})]}),(0,b.jsxs)("div",{className:"text-xs text-slate-400",children:[ah.length," references, ",ak.length," notes"]})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6",children:[(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(e.BrainCircuit,{className:"w-4 h-4 text-slate-400"}),(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-900",children:"Human-Authored References"})]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"File-backed project knowledge for project-specific instructions and references."}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2",children:[(0,b.jsx)("input",{type:"text",value:V,onChange:a=>W(a.target.value),placeholder:"path/to/project-knowledge.md",className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500"}),(0,b.jsx)("input",{type:"text",value:X,onChange:a=>Y(a.target.value),placeholder:"Optional condition",className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500"}),(0,b.jsxs)("button",{type:"button",onClick:async()=>{let a=V.trim();a&&(await ai(a,X.trim()||void 0),W(""),Y(""))},className:"inline-flex items-center justify-center gap-2 rounded-xl bg-slate-900 px-3 py-2 text-sm font-medium text-white hover:bg-slate-800 transition-colors",children:[(0,b.jsx)(g.Plus,{className:"w-4 h-4"}),"Add reference"]})]}),(0,b.jsx)("div",{className:"space-y-2",children:0===ah.length?(0,b.jsx)("div",{className:"rounded-2xl border border-dashed border-slate-200 px-4 py-6 text-sm text-slate-400",children:"No project knowledge references yet."}):ah.map(a=>(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-2xl border border-slate-100 bg-slate-50 p-3",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("div",{className:"font-mono text-xs text-slate-700 break-all",children:a.file}),a.condition?(0,b.jsxs)("div",{className:"mt-1 text-xs text-slate-500",children:["Use when: ",a.condition]}):null]}),(0,b.jsx)("button",{type:"button",onClick:()=>void aj(a.id),className:"rounded-lg p-2 text-slate-400 hover:bg-white hover:text-red-600 transition-colors","aria-label":"Remove knowledge reference",children:(0,b.jsx)(i.Trash2,{className:"w-4 h-4"})})]},a.id))})]}),(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(f.BookOpen,{className:"w-4 h-4 text-slate-400"}),(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-900",children:"Human-Authored Notes"})]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"Inline project notes for current decisions, assumptions, and temporary coordination context."}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2",children:[(0,b.jsx)("textarea",{value:Z,onChange:a=>$(a.target.value),rows:4,placeholder:"Current decision, assumption, or project-specific context...",className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500"}),(0,b.jsxs)("button",{type:"button",onClick:async()=>{let a=Z.trim();a&&(await al(a,"human-authored"),$(""))},className:"inline-flex items-center justify-center gap-2 rounded-xl bg-slate-900 px-3 py-2 text-sm font-medium text-white hover:bg-slate-800 transition-colors",children:[(0,b.jsx)(g.Plus,{className:"w-4 h-4"}),"Add note"]})]}),(0,b.jsx)("div",{className:"space-y-2",children:0===ak.length?(0,b.jsx)("div",{className:"rounded-2xl border border-dashed border-slate-200 px-4 py-6 text-sm text-slate-400",children:"No project knowledge notes yet."}):ak.map(a=>(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-2xl border border-slate-100 bg-slate-50 p-3",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("div",{className:"text-sm text-slate-700 leading-relaxed",children:a.content}),(0,b.jsxs)("div",{className:"mt-1 text-[11px] text-slate-400",children:[a.source||"project"," • ",new Date(a.created_at).toLocaleString()]})]}),(0,b.jsx)("button",{type:"button",onClick:()=>void am(a.id),className:"rounded-lg p-2 text-slate-400 hover:bg-white hover:text-red-600 transition-colors","aria-label":"Remove knowledge note",children:(0,b.jsx)(i.Trash2,{className:"w-4 h-4"})})]},a.id))})]})]}),(0,b.jsxs)("div",{className:"mt-6 rounded-2xl border border-slate-200 bg-slate-50 px-4 py-4",children:[(0,b.jsx)("div",{className:"text-xs font-black uppercase tracking-[0.18em] text-slate-400",children:"System-Generated Project Knowledge"}),ab.length>0?(0,b.jsx)("div",{className:"mt-3 space-y-2",children:ab.map(a=>(0,b.jsxs)("div",{className:"rounded-xl border border-slate-200 bg-white px-3 py-3",children:[(0,b.jsx)("div",{className:"text-sm text-slate-700 leading-relaxed",children:a.content}),(0,b.jsxs)("div",{className:"mt-2 text-[11px] text-slate-400",children:[a.source?`${a.source} • `:"",new Date(a.created_at).toLocaleString()]})]},a.id))}):(0,b.jsx)("p",{className:"mt-2 text-sm text-slate-500",children:"No project-scoped system-generated knowledge candidates are surfaced yet."})]})]})}),T&&af&&(0,b.jsx)("div",{className:"px-3 sm:px-6 py-3",children:(0,b.jsxs)("div",{className:"rounded-3xl border border-slate-200 bg-white p-4 sm:p-6 shadow-sm",children:[(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-5",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-xs font-black text-slate-400 uppercase tracking-[0.2em] flex items-center gap-2",children:[(0,b.jsx)(f.BookOpen,{className:"w-4 h-4"})," Repo Knowledge"]}),(0,b.jsx)("p",{className:"mt-2 text-sm text-slate-600 max-w-2xl",children:"Edit repo-scoped knowledge here. Use this for durable codebase facts, conventions, and workflows that belong to a specific repository."})]}),(0,b.jsxs)("div",{className:"text-xs text-slate-400",children:[af.repos.length," repos"]})]}),0===af.repos.length?(0,b.jsx)("div",{className:"rounded-2xl border border-dashed border-slate-200 px-4 py-6 text-sm text-slate-400",children:"This project has no repos attached yet."}):(0,b.jsx)("div",{className:"space-y-4",children:af.repos.map(a=>(0,b.jsxs)("section",{className:"rounded-2xl border border-slate-100 bg-slate-50 p-4",children:[(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-900",children:a.name}),(0,b.jsx)("div",{className:"mt-1 text-xs text-slate-500",children:a.path||"No path set"}),(0,b.jsx)("div",{className:"mt-2 text-[10px] font-black uppercase tracking-[0.16em] text-slate-400",children:"Human-authored repo knowledge"})]}),(0,b.jsx)("button",{type:"button",onClick:async()=>{await fetch(`/api/repos/${a.id}/knowledge`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({producer:"human",content:_[a.id]??""})}).then(async a=>{if(!a.ok)throw Error((await a.json().catch(()=>({}))).error||"Failed to save repo knowledge")})},className:"inline-flex items-center justify-center rounded-xl bg-slate-900 px-3 py-2 text-xs font-medium text-white hover:bg-slate-800 transition-colors",children:"Save repo knowledge"})]}),(0,b.jsx)("textarea",{value:_[a.id]??"",onChange:b=>aa(c=>({...c,[a.id]:b.target.value})),rows:4,placeholder:"Architecture facts, repo conventions, commands, or stable gotchas...",className:"mt-3 w-full rounded-xl border border-slate-200 bg-white px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-500"}),(0,b.jsxs)("div",{className:"mt-4 rounded-xl border border-slate-200 bg-white px-3 py-3",children:[(0,b.jsx)("div",{className:"text-[10px] font-black uppercase tracking-[0.16em] text-slate-400",children:"System-Generated Repo Knowledge"}),(ad[a.id]??[]).length>0?(0,b.jsx)("div",{className:"mt-3 space-y-2",children:(ad[a.id]??[]).map(a=>(0,b.jsxs)("div",{className:"rounded-lg border border-slate-100 bg-slate-50 px-3 py-2",children:[(0,b.jsx)("div",{className:"text-sm text-slate-700 leading-relaxed",children:a.content}),(0,b.jsx)("div",{className:"mt-1 text-[11px] text-slate-400",children:new Date(a.created_at).toLocaleString()})]},a.id))}):(0,b.jsx)("p",{className:"mt-2 text-sm text-slate-500",children:"No repo-scoped system-generated knowledge candidates yet."})]})]},a.id))})]})}),(0,b.jsx)("div",{className:"flex-shrink-0 px-3 sm:px-6",children:(0,b.jsx)(p,{})}),(0,b.jsx)("div",{className:"flex-shrink-0 px-3 sm:px-6",children:(0,b.jsx)(n.default,{tasks:ao,processes:an,onTaskClick:a=>s.push(`/projects/${r}/graph/${a.id}`),onStop:async a=>{await z({taskId:a}),await A()},onRetry:async a=>{await y({taskId:a,decision:"not_done",final_result:"Manual retry requested.",explanation:"Manual retry requested."})},cancellingTaskId:B})}),(0,b.jsx)("div",{className:"flex-1 min-h-0 relative",children:(0,b.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,b.jsx)(m.default,{tasks:ao,onSelectTask:au,onTasksChange:()=>{},onTaskUpdate:av,onAddTask:(a,b)=>aw(a,b),stages:F,stageConfig:G,isValidTransition:ap?void 0:H,graphColumnFn:ap?at:void 0})})})]})}a.s(["default",()=>r],19929)}];
|
|
6
|
+
`;await v(d,null),M(!1)},ax=(0,c.useCallback)(async()=>{if(!af?.id)return void Q("Project is not loaded yet.");O(!0),Q(null);try{let a=await fetch(`/api/projects/${af.id}/migrate-v2`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dryRun:!1})}),b=await a.json().catch(()=>({}));if(!a.ok)throw Error(b?.error||`Migration failed (${a.status})`);let c=Number(b?.processed??0),d=Number(b?.migrated??0),e=Number(b?.skipped??0),f=Number(b?.failed??0),g=Number(b?.backup?.backedUp??0);Q(`Migration finished: backed up ${g}, processed ${c}, migrated ${d}, skipped ${e}, failed ${f}.`),await A()}catch(b){let a=b instanceof Error?b.message:String(b);Q(`Migration failed: ${a}`)}finally{O(!1)}},[af?.id,A]);return u||I?(0,b.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,b.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,b.jsx)("span",{className:"spinner w-8 h-8 border-3 border-[var(--primary)] border-t-transparent rounded-full"}),(0,b.jsx)("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading board..."})]})}):(0,b.jsxs)("div",{className:"h-full flex flex-col",children:[(0,b.jsxs)("div",{className:"flex-shrink-0 border-b border-[var(--border)] bg-[var(--card-bg)] backdrop-blur-md px-3 sm:px-6 py-2 sm:py-0 sm:h-14 flex flex-col sm:flex-row sm:items-center justify-between gap-2 sm:gap-4",children:[(0,b.jsx)("div",{className:"flex items-center gap-3 sm:gap-4 text-sm text-[var(--app-shell-soft-text)] flex-shrink-0",children:(0,b.jsx)("span",{className:"font-semibold text-[var(--foreground)] truncate",children:af?.name||r})}),(0,b.jsxs)("div",{className:"flex items-center gap-3 flex-1 sm:justify-end",children:[(0,b.jsxs)("div",{className:"relative w-full sm:max-w-sm group",children:[(0,b.jsx)(h.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--app-shell-soft-text)] group-focus-within:text-indigo-500 transition-colors",size:14}),(0,b.jsx)("input",{type:"text",placeholder:"Search tasks...",value:J,onChange:a=>K(a.target.value),className:"w-full bg-[var(--secondary)] border border-[var(--border)] rounded-full py-1.5 pl-9 pr-4 text-xs focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 transition-all"})]}),(0,b.jsx)("button",{type:"button",onClick:()=>S(a=>!a),className:`hidden sm:inline-flex px-3 py-1.5 rounded-full text-xs font-medium border transition-colors whitespace-nowrap ${R?"bg-indigo-50 border-indigo-200 text-indigo-700":"bg-[var(--card-bg)] border-[var(--border)] hover:border-indigo-300 hover:text-indigo-600"}`,title:"Inspect and edit project-scoped knowledge",children:R?"Hide project knowledge":"Project knowledge"}),(0,b.jsx)("button",{type:"button",onClick:()=>U(a=>!a),className:`hidden sm:inline-flex px-3 py-1.5 rounded-full text-xs font-medium border transition-colors whitespace-nowrap ${T?"bg-emerald-50 border-emerald-200 text-emerald-700":"bg-[var(--card-bg)] border-[var(--border)] hover:border-emerald-300 hover:text-emerald-600"}`,title:"Inspect and edit repo-scoped knowledge",children:T?"Hide repo knowledge":"Repo knowledge"}),!ap&&(0,b.jsx)("button",{type:"button",onClick:ax,disabled:N||!af?.id,className:`hidden sm:inline-flex px-3 py-1.5 rounded-full text-xs font-medium border transition-colors whitespace-nowrap ${N?"bg-[var(--secondary)] border-[var(--border)] text-[var(--app-shell-soft-text)] cursor-wait":"bg-[var(--card-bg)] border-[var(--border)] hover:border-indigo-300 hover:text-indigo-600"}`,title:"Create v2 execution graphs for tasks in this project",children:N?"Migrating...":"Migrate to v2"})]})]}),P&&(0,b.jsx)("p",{className:"text-xs text-[var(--app-shell-soft-text)] px-6 py-1",children:P}),R&&af&&(0,b.jsx)("div",{className:"px-3 sm:px-6 py-3",children:(0,b.jsxs)("div",{className:"rounded-3xl border border-[var(--border)] bg-[var(--card-bg)] p-4 sm:p-6 shadow-sm",children:[(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-5",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-xs font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em] flex items-center gap-2",children:[(0,b.jsx)(e.BrainCircuit,{className:"w-4 h-4"})," Project Knowledge"]}),(0,b.jsx)("p",{className:"mt-2 text-sm text-[var(--muted-foreground)] max-w-2xl",children:"Edit project-scoped knowledge here. This is situational context for this project, not portable agent knowledge and not durable repo truth."})]}),(0,b.jsxs)("div",{className:"text-xs text-[var(--app-shell-soft-text)]",children:[ah.length," references, ",ak.length," notes"]})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6",children:[(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(e.BrainCircuit,{className:"w-4 h-4 text-[var(--app-shell-soft-text)]"}),(0,b.jsx)("h3",{className:"text-sm font-semibold text-[var(--foreground)]",children:"Human-Authored References"})]}),(0,b.jsx)("p",{className:"text-xs text-[var(--muted-foreground)]",children:"File-backed project knowledge for project-specific instructions and references."}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2",children:[(0,b.jsx)("input",{type:"text",value:V,onChange:a=>W(a.target.value),placeholder:"path/to/project-knowledge.md",className:"w-full rounded-xl border border-[var(--border)] bg-[var(--secondary)] px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500"}),(0,b.jsx)("input",{type:"text",value:X,onChange:a=>Y(a.target.value),placeholder:"Optional condition",className:"w-full rounded-xl border border-[var(--border)] bg-[var(--secondary)] px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500"}),(0,b.jsxs)("button",{type:"button",onClick:async()=>{let a=V.trim();a&&(await ai(a,X.trim()||void 0),W(""),Y(""))},className:"inline-flex items-center justify-center gap-2 rounded-xl bg-[var(--foreground)] px-3 py-2 text-sm font-medium text-[var(--card-bg)] hover:opacity-90 transition-colors",children:[(0,b.jsx)(g.Plus,{className:"w-4 h-4"}),"Add reference"]})]}),(0,b.jsx)("div",{className:"space-y-2",children:0===ah.length?(0,b.jsx)("div",{className:"rounded-2xl border border-dashed border-[var(--border)] px-4 py-6 text-sm text-[var(--app-shell-soft-text)]",children:"No project knowledge references yet."}):ah.map(a=>(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-2xl border border-[var(--border)] bg-[var(--secondary)] p-3",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("div",{className:"font-mono text-xs text-[var(--secondary-foreground)] break-all",children:a.file}),a.condition?(0,b.jsxs)("div",{className:"mt-1 text-xs text-[var(--muted-foreground)]",children:["Use when: ",a.condition]}):null]}),(0,b.jsx)("button",{type:"button",onClick:()=>void aj(a.id),className:"rounded-lg p-2 text-[var(--app-shell-soft-text)] hover:bg-[var(--card-bg)] hover:text-red-600 transition-colors","aria-label":"Remove knowledge reference",children:(0,b.jsx)(i.Trash2,{className:"w-4 h-4"})})]},a.id))})]}),(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(f.BookOpen,{className:"w-4 h-4 text-[var(--app-shell-soft-text)]"}),(0,b.jsx)("h3",{className:"text-sm font-semibold text-[var(--foreground)]",children:"Human-Authored Notes"})]}),(0,b.jsx)("p",{className:"text-xs text-[var(--muted-foreground)]",children:"Inline project notes for current decisions, assumptions, and temporary coordination context."}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2",children:[(0,b.jsx)("textarea",{value:Z,onChange:a=>$(a.target.value),rows:4,placeholder:"Current decision, assumption, or project-specific context...",className:"w-full rounded-xl border border-[var(--border)] bg-[var(--secondary)] px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500"}),(0,b.jsxs)("button",{type:"button",onClick:async()=>{let a=Z.trim();a&&(await al(a,"human-authored"),$(""))},className:"inline-flex items-center justify-center gap-2 rounded-xl bg-[var(--foreground)] px-3 py-2 text-sm font-medium text-[var(--card-bg)] hover:opacity-90 transition-colors",children:[(0,b.jsx)(g.Plus,{className:"w-4 h-4"}),"Add note"]})]}),(0,b.jsx)("div",{className:"space-y-2",children:0===ak.length?(0,b.jsx)("div",{className:"rounded-2xl border border-dashed border-[var(--border)] px-4 py-6 text-sm text-[var(--app-shell-soft-text)]",children:"No project knowledge notes yet."}):ak.map(a=>(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-2xl border border-[var(--border)] bg-[var(--secondary)] p-3",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("div",{className:"text-sm text-[var(--secondary-foreground)] leading-relaxed",children:a.content}),(0,b.jsxs)("div",{className:"mt-1 text-[11px] text-[var(--app-shell-soft-text)]",children:[a.source||"project"," • ",new Date(a.created_at).toLocaleString()]})]}),(0,b.jsx)("button",{type:"button",onClick:()=>void am(a.id),className:"rounded-lg p-2 text-[var(--app-shell-soft-text)] hover:bg-[var(--card-bg)] hover:text-red-600 transition-colors","aria-label":"Remove knowledge note",children:(0,b.jsx)(i.Trash2,{className:"w-4 h-4"})})]},a.id))})]})]}),(0,b.jsxs)("div",{className:"mt-6 rounded-2xl border border-[var(--border)] bg-[var(--secondary)] px-4 py-4",children:[(0,b.jsx)("div",{className:"text-xs font-black uppercase tracking-[0.18em] text-[var(--app-shell-soft-text)]",children:"System-Generated Project Knowledge"}),ab.length>0?(0,b.jsx)("div",{className:"mt-3 space-y-2",children:ab.map(a=>(0,b.jsxs)("div",{className:"rounded-xl border border-[var(--border)] bg-[var(--card-bg)] px-3 py-3",children:[(0,b.jsx)("div",{className:"text-sm text-[var(--secondary-foreground)] leading-relaxed",children:a.content}),(0,b.jsxs)("div",{className:"mt-2 text-[11px] text-[var(--app-shell-soft-text)]",children:[a.source?`${a.source} • `:"",new Date(a.created_at).toLocaleString()]})]},a.id))}):(0,b.jsx)("p",{className:"mt-2 text-sm text-[var(--muted-foreground)]",children:"No project-scoped system-generated knowledge candidates are surfaced yet."})]})]})}),T&&af&&(0,b.jsx)("div",{className:"px-3 sm:px-6 py-3",children:(0,b.jsxs)("div",{className:"rounded-3xl border border-[var(--border)] bg-[var(--card-bg)] p-4 sm:p-6 shadow-sm",children:[(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-5",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-xs font-black text-[var(--app-shell-soft-text)] uppercase tracking-[0.2em] flex items-center gap-2",children:[(0,b.jsx)(f.BookOpen,{className:"w-4 h-4"})," Repo Knowledge"]}),(0,b.jsx)("p",{className:"mt-2 text-sm text-[var(--muted-foreground)] max-w-2xl",children:"Edit repo-scoped knowledge here. Use this for durable codebase facts, conventions, and workflows that belong to a specific repository."})]}),(0,b.jsxs)("div",{className:"text-xs text-[var(--app-shell-soft-text)]",children:[af.repos.length," repos"]})]}),0===af.repos.length?(0,b.jsx)("div",{className:"rounded-2xl border border-dashed border-[var(--border)] px-4 py-6 text-sm text-[var(--app-shell-soft-text)]",children:"This project has no repos attached yet."}):(0,b.jsx)("div",{className:"space-y-4",children:af.repos.map(a=>(0,b.jsxs)("section",{className:"rounded-2xl border border-[var(--border)] bg-[var(--secondary)] p-4",children:[(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-[var(--foreground)]",children:a.name}),(0,b.jsx)("div",{className:"mt-1 text-xs text-[var(--muted-foreground)]",children:a.path||"No path set"}),(0,b.jsx)("div",{className:"mt-2 text-[10px] font-black uppercase tracking-[0.16em] text-[var(--app-shell-soft-text)]",children:"Human-authored repo knowledge"})]}),(0,b.jsx)("button",{type:"button",onClick:async()=>{await fetch(`/api/repos/${a.id}/knowledge`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({producer:"human",content:_[a.id]??""})}).then(async a=>{if(!a.ok)throw Error((await a.json().catch(()=>({}))).error||"Failed to save repo knowledge")})},className:"inline-flex items-center justify-center rounded-xl bg-[var(--foreground)] px-3 py-2 text-xs font-medium text-[var(--card-bg)] hover:opacity-90 transition-colors",children:"Save repo knowledge"})]}),(0,b.jsx)("textarea",{value:_[a.id]??"",onChange:b=>aa(c=>({...c,[a.id]:b.target.value})),rows:4,placeholder:"Architecture facts, repo conventions, commands, or stable gotchas...",className:"mt-3 w-full rounded-xl border border-[var(--border)] bg-[var(--card-bg)] px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500/20 focus:border-emerald-500"}),(0,b.jsxs)("div",{className:"mt-4 rounded-xl border border-[var(--border)] bg-[var(--card-bg)] px-3 py-3",children:[(0,b.jsx)("div",{className:"text-[10px] font-black uppercase tracking-[0.16em] text-[var(--app-shell-soft-text)]",children:"System-Generated Repo Knowledge"}),(ad[a.id]??[]).length>0?(0,b.jsx)("div",{className:"mt-3 space-y-2",children:(ad[a.id]??[]).map(a=>(0,b.jsxs)("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--secondary)] px-3 py-2",children:[(0,b.jsx)("div",{className:"text-sm text-[var(--secondary-foreground)] leading-relaxed",children:a.content}),(0,b.jsx)("div",{className:"mt-1 text-[11px] text-[var(--app-shell-soft-text)]",children:new Date(a.created_at).toLocaleString()})]},a.id))}):(0,b.jsx)("p",{className:"mt-2 text-sm text-[var(--muted-foreground)]",children:"No repo-scoped system-generated knowledge candidates yet."})]})]},a.id))})]})}),(0,b.jsx)("div",{className:"flex-shrink-0 px-3 sm:px-6",children:(0,b.jsx)(p,{})}),(0,b.jsx)("div",{className:"flex-shrink-0 px-3 sm:px-6",children:(0,b.jsx)(n.default,{tasks:ao,processes:an,onTaskClick:a=>s.push(`/projects/${r}/graph/${a.id}`),onStop:async a=>{await z({taskId:a}),await A()},onRetry:async a=>{await y({taskId:a,decision:"not_done",final_result:"Manual retry requested.",explanation:"Manual retry requested."})},cancellingTaskId:B})}),(0,b.jsx)("div",{className:"flex-1 min-h-0 relative",children:(0,b.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,b.jsx)(m.default,{tasks:ao,onSelectTask:au,onTasksChange:()=>{},onTaskUpdate:av,onAddTask:(a,b)=>aw(a,b),stages:F,stageConfig:G,isValidTransition:ap?void 0:H,graphColumnFn:ap?at:void 0})})})]})}a.s(["default",()=>r],19929)}];
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=app_projects_%5Bslug%5D_page_tsx_e0fabf6e._.js.map
|