@geminilight/mindos 0.6.37 → 0.6.39
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/README.md +14 -2
- package/README_zh.md +14 -2
- package/_standalone/.mindos-build-version +1 -1
- package/_standalone/.next/BUILD_ID +1 -1
- package/_standalone/.next/app-path-routes-manifest.json +16 -16
- package/_standalone/.next/build-manifest.json +2 -2
- package/_standalone/.next/cache/.previewinfo +1 -1
- package/_standalone/.next/cache/.rscinfo +1 -1
- package/_standalone/.next/cache/config.json +3 -3
- package/_standalone/.next/prerender-manifest.json +3 -3
- package/_standalone/.next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/_global-error.html +2 -2
- package/_standalone/.next/server/app/_global-error.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/_standalone/.next/server/app/_not-found/page.js +1 -1
- package/_standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/agents/[agentKey]/page.js +1 -1
- package/_standalone/.next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/agents/page.js +1 -1
- package/_standalone/.next/server/app/agents/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/ask/route.js +29 -29
- package/_standalone/.next/server/app/api/ask/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/auth/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/changes/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/export/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/file/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/graph/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/sync/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/changes/page.js +1 -1
- package/_standalone/.next/server/app/changes/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/changes/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/echo/[segment]/page.js +1 -1
- package/_standalone/.next/server/app/echo/[segment]/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/echo/page.js +1 -1
- package/_standalone/.next/server/app/echo/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/echo/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/explore/page.js +1 -1
- package/_standalone/.next/server/app/explore/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/explore/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/help/page.js +1 -1
- package/_standalone/.next/server/app/help/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/help/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/login/page.js +1 -1
- package/_standalone/.next/server/app/login/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/page.js +1 -1
- package/_standalone/.next/server/app/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/setup/page.js +1 -1
- package/_standalone/.next/server/app/setup/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/trash/page.js +3 -3
- package/_standalone/.next/server/app/trash/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/view/[...path]/page.js +2 -2
- package/_standalone/.next/server/app/view/[...path]/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app-paths-manifest.json +16 -16
- package/_standalone/.next/server/chunks/{912.js → 1473.js} +2 -2
- package/_standalone/.next/server/chunks/4931.js +12 -12
- package/_standalone/.next/server/next-font-manifest.js +1 -1
- package/_standalone/.next/server/next-font-manifest.json +1 -1
- package/_standalone/.next/server/pages/500.html +2 -2
- package/_standalone/.next/server/server-reference-manifest.js +1 -1
- package/_standalone/.next/server/server-reference-manifest.json +1 -1
- package/_standalone/.next/static/chunks/{1263-79beb8734dee7bbd.js → 1263-6df1734e4273adb1.js} +2 -2
- package/_standalone/.next/static/chunks/app/{layout-00844243aa76e1b6.js → layout-d91cdbe2ecf135e1.js} +54 -54
- package/_standalone/.next/static/chunks/app/{page-99cc295c70b85882.js → page-718fdf170428b43c.js} +2 -2
- package/_standalone/.next/static/chunks/app/trash/page-89b1430cc8a16f18.js +1 -0
- package/_standalone/.next/static/chunks/app/view/[...path]/page-6e3dc47699a01de1.js +12 -0
- package/_standalone/.next/trace +53 -53
- package/_standalone/components/ask/AskContent.tsx +6 -6
- package/_standalone/components/settings/UpdateTab.tsx +371 -107
- package/_standalone/data/skills/mindos/SKILL.md +24 -9
- package/_standalone/data/skills/mindos-zh/SKILL.md +24 -9
- package/_standalone/lib/i18n/modules/settings.ts +32 -0
- package/app/app/api/ask/route.ts +12 -2
- package/app/components/ask/AskContent.tsx +6 -6
- package/app/components/settings/UpdateTab.tsx +371 -107
- package/app/data/skills/mindos/SKILL.md +24 -9
- package/app/data/skills/mindos-zh/SKILL.md +24 -9
- package/app/lib/i18n/modules/settings.ts +32 -0
- package/bin/cli.js +2 -2
- package/bin/lib/startup.js +1 -1
- package/package.json +1 -1
- package/scripts/build-runtime-archive.sh +113 -0
- package/skills/mindos/SKILL.md +24 -9
- package/skills/mindos/references/write-supplement.md +46 -4
- package/skills/mindos-zh/SKILL.md +24 -9
- package/skills/mindos-zh/references/write-supplement.md +47 -5
- package/_standalone/.next/static/chunks/app/trash/page-83afad27eeceb4b3.js +0 -1
- package/_standalone/.next/static/chunks/app/view/[...path]/page-725df5864296687f.js +0 -12
- /package/_standalone/.next/static/{krusEkNclII1OrOrikHPD → ushZ_NJ8rE3rG5hZfaYOX}/_buildManifest.js +0 -0
- /package/_standalone/.next/static/{krusEkNclII1OrOrikHPD → ushZ_NJ8rE3rG5hZfaYOX}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/agents/[agentKey]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"7431":{"*":{"id":"7451","name":"*","chunks":[],"async":false}},"8249":{"*":{"id":"5892","name":"*","chunks":[],"async":false}},"18847":{"*":{"id":"66535","name":"*","chunks":[],"async":false}},"22952":{"*":{"id":"98302","name":"*","chunks":[],"async":false}},"23074":{"*":{"id":"80296","name":"*","chunks":[],"async":false}},"26490":{"*":{"id":"89386","name":"*","chunks":[],"async":false}},"27123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"33428":{"*":{"id":"4496","name":"*","chunks":[],"async":false}},"34367":{"*":{"id":"31296","name":"*","chunks":[],"async":false}},"35504":{"*":{"id":"72362","name":"*","chunks":[],"async":false}},"36506":{"*":{"id":"56848","name":"*","chunks":[],"async":false}},"39594":{"*":{"id":"6732","name":"*","chunks":[],"async":false}},"40430":{"*":{"id":"94416","name":"*","chunks":[],"async":false}},"46702":{"*":{"id":"86533","name":"*","chunks":[],"async":false}},"48133":{"*":{"id":"2820","name":"*","chunks":[],"async":false}},"48216":{"*":{"id":"66240","name":"*","chunks":[],"async":false}},"53788":{"*":{"id":"26902","name":"*","chunks":[],"async":false}},"56406":{"*":{"id":"51488","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61263":{"*":{"id":"77505","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"69931":{"*":{"id":"87574","name":"*","chunks":[],"async":false}},"72471":{"*":{"id":"99115","name":"*","chunks":[],"async":false}},"74120":{"*":{"id":"15352","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"86343":{"*":{"id":"67809","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"87180":{"*":{"id":"7348","name":"*","chunks":[],"async":false}},"87460":{"*":{"id":"2420","name":"*","chunks":[],"async":false}},"87500":{"*":{"id":"33378","name":"*","chunks":[],"async":false}},"88946":{"*":{"id":"78340","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"91459":{"*":{"id":"31168","name":"*","chunks":[],"async":false}},"91727":{"*":{"id":"11756","name":"*","chunks":[],"async":false}},"92306":{"*":{"id":"46427","name":"*","chunks":[],"async":false}},"92524":{"*":{"id":"10500","name":"*","chunks":[],"async":false}},"92950":{"*":{"id":"80992","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/builtin/global-error.js":{"id":27123,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":27123,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/globals.css":{"id":66872,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/app/register-sw.tsx":{"id":92524,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ErrorBoundary.tsx":{"id":86343,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/agent-inspector/AgentInspectorRenderer.tsx":{"id":18847,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/backlinks/BacklinksRenderer.tsx":{"id":88946,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/config/ConfigRenderer.tsx":{"id":35504,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/csv/CsvRenderer.tsx":{"id":92306,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/graph/GraphRenderer.tsx":{"id":92950,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/summary/SummaryRenderer.tsx":{"id":56406,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/timeline/TimelineRenderer.tsx":{"id":39594,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/todo/TodoRenderer.tsx":{"id":87500,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/workflow-yaml/WorkflowYamlRenderer.tsx":{"id":48133,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ShellLayout.tsx":{"id":74120,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ui/Toaster.tsx":{"id":26490,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ui/tooltip.tsx":{"id":91459,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/UpdateOverlay.tsx":{"id":40430,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/lib/LocaleContext.tsx":{"id":61263,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":13524,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"IBM_Plex_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"weight\":[\"400\",\"600\"],\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":89846,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"IBM_Plex_Mono\",\"arguments\":[{\"variable\":\"--font-ibm-plex-mono\",\"weight\":[\"400\",\"600\"],\"subsets\":[\"latin\"]}],\"variableName\":\"ibmPlexMono\"}":{"id":377,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"IBM_Plex_Sans\",\"arguments\":[{\"variable\":\"--font-ibm-plex-sans\",\"weight\":[\"400\",\"500\",\"600\"],\"subsets\":[\"latin\"]}],\"variableName\":\"ibmPlexSans\"}":{"id":83284,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"weight\":[\"400\",\"500\",\"600\"],\"style\":[\"normal\",\"italic\"],\"subsets\":[\"latin\"]}],\"variableName\":\"lora\"}":{"id":75282,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-00844243aa76e1b6.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/app/error.tsx":{"id":87460,"name":"*","chunks":["8039","static/chunks/app/error-fc1491d554a28327.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/echo/EchoSegmentPageClient.tsx":{"id":69931,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/login/page.tsx":{"id":91727,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/TrashPageClient.tsx":{"id":48216,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/view/[...path]/error.tsx":{"id":53788,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/view/[...path]/not-found.tsx":{"id":23074,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/view/[...path]/ViewPageClient.tsx":{"id":36506,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/DirView.tsx":{"id":34367,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/agents/AgentsContentPage.tsx":{"id":46702,"name":"*","chunks":["9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","1038","static/chunks/1038-ed04d6651ec92312.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","1384","static/chunks/1384-55276d40a9da4e88.js","7165","static/chunks/app/agents/page-b709cf3103321609.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/agents/AgentDetailContent.tsx":{"id":7431,"name":"*","chunks":["9602","static/chunks/9602-35ca17b688f1a4fe.js","1263","static/chunks/1263-79beb8734dee7bbd.js","9670","static/chunks/9670-d59e4d45ed705f58.js","1384","static/chunks/1384-55276d40a9da4e88.js","2114","static/chunks/app/agents/%5BagentKey%5D/page-519d4da1142db5ef.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/changes/ChangesContentPage.tsx":{"id":87180,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/explore/ExploreContent.tsx":{"id":33428,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/help/HelpContent.tsx":{"id":8249,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/setup/index.tsx":{"id":22952,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/HomeContent.tsx":{"id":72471,"name":"*","chunks":["9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","5637","static/chunks/5637-b97c869adf70c82e.js","1263","static/chunks/1263-79beb8734dee7bbd.js","8974","static/chunks/app/page-99cc295c70b85882.js"],"async":false}},"entryCSSFiles":{"/home/runner/work/MindOS/MindOS/app/":[],"/home/runner/work/MindOS/MindOS/app/app/layout":[{"inlined":false,"path":"static/css/f16595bc58a16d5d.css"},{"inlined":false,"path":"static/css/bbf51803eade6c50.css"}],"/home/runner/work/MindOS/MindOS/app/app/error":[],"/home/runner/work/MindOS/MindOS/app/app/page":[],"/home/runner/work/MindOS/MindOS/app/app/agents/page":[],"/home/runner/work/MindOS/MindOS/app/app/agents/[agentKey]/page":[]},"rscModuleMapping":{"7431":{"*":{"id":"73165","name":"*","chunks":[],"async":false}},"8249":{"*":{"id":"79927","name":"*","chunks":[],"async":false}},"18847":{"*":{"id":"66913","name":"*","chunks":[],"async":false}},"22952":{"*":{"id":"32873","name":"*","chunks":[],"async":false}},"23074":{"*":{"id":"74710","name":"*","chunks":[],"async":false}},"26490":{"*":{"id":"32248","name":"*","chunks":[],"async":false}},"27123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"33428":{"*":{"id":"61519","name":"*","chunks":[],"async":false}},"34367":{"*":{"id":"24449","name":"*","chunks":[],"async":false}},"35504":{"*":{"id":"63112","name":"*","chunks":[],"async":false}},"36506":{"*":{"id":"71923","name":"*","chunks":[],"async":false}},"39594":{"*":{"id":"1394","name":"*","chunks":[],"async":false}},"40430":{"*":{"id":"90598","name":"*","chunks":[],"async":false}},"46702":{"*":{"id":"3036","name":"*","chunks":[],"async":false}},"48133":{"*":{"id":"83539","name":"*","chunks":[],"async":false}},"48216":{"*":{"id":"86025","name":"*","chunks":[],"async":false}},"53788":{"*":{"id":"32984","name":"*","chunks":[],"async":false}},"56406":{"*":{"id":"45862","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61263":{"*":{"id":"41527","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"66872":{"*":{"id":"82704","name":"*","chunks":[],"async":false}},"69931":{"*":{"id":"99031","name":"*","chunks":[],"async":false}},"72471":{"*":{"id":"19543","name":"*","chunks":[],"async":false}},"74120":{"*":{"id":"5315","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"86343":{"*":{"id":"24387","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"87180":{"*":{"id":"39370","name":"*","chunks":[],"async":false}},"87460":{"*":{"id":"85034","name":"*","chunks":[],"async":false}},"87500":{"*":{"id":"18776","name":"*","chunks":[],"async":false}},"88946":{"*":{"id":"66874","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"91459":{"*":{"id":"68533","name":"*","chunks":[],"async":false}},"91727":{"*":{"id":"69613","name":"*","chunks":[],"async":false}},"92306":{"*":{"id":"60442","name":"*","chunks":[],"async":false}},"92524":{"*":{"id":"12978","name":"*","chunks":[],"async":false}},"92950":{"*":{"id":"37718","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/agents/[agentKey]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1807":{"*":{"id":"43870","name":"*","chunks":[],"async":false}},"7431":{"*":{"id":"7451","name":"*","chunks":[],"async":false}},"8249":{"*":{"id":"5892","name":"*","chunks":[],"async":false}},"18847":{"*":{"id":"66535","name":"*","chunks":[],"async":false}},"22952":{"*":{"id":"98302","name":"*","chunks":[],"async":false}},"23074":{"*":{"id":"80296","name":"*","chunks":[],"async":false}},"26490":{"*":{"id":"89386","name":"*","chunks":[],"async":false}},"27123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"28381":{"*":{"id":"1299","name":"*","chunks":[],"async":false}},"33428":{"*":{"id":"4496","name":"*","chunks":[],"async":false}},"34367":{"*":{"id":"31296","name":"*","chunks":[],"async":false}},"35504":{"*":{"id":"72362","name":"*","chunks":[],"async":false}},"36506":{"*":{"id":"56848","name":"*","chunks":[],"async":false}},"39594":{"*":{"id":"6732","name":"*","chunks":[],"async":false}},"40430":{"*":{"id":"94416","name":"*","chunks":[],"async":false}},"46702":{"*":{"id":"86533","name":"*","chunks":[],"async":false}},"48133":{"*":{"id":"2820","name":"*","chunks":[],"async":false}},"53788":{"*":{"id":"26902","name":"*","chunks":[],"async":false}},"56406":{"*":{"id":"51488","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61263":{"*":{"id":"77505","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"69931":{"*":{"id":"87574","name":"*","chunks":[],"async":false}},"72471":{"*":{"id":"99115","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"86343":{"*":{"id":"67809","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"87180":{"*":{"id":"7348","name":"*","chunks":[],"async":false}},"87460":{"*":{"id":"2420","name":"*","chunks":[],"async":false}},"87500":{"*":{"id":"33378","name":"*","chunks":[],"async":false}},"88946":{"*":{"id":"78340","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"91459":{"*":{"id":"31168","name":"*","chunks":[],"async":false}},"91727":{"*":{"id":"11756","name":"*","chunks":[],"async":false}},"92306":{"*":{"id":"46427","name":"*","chunks":[],"async":false}},"92524":{"*":{"id":"10500","name":"*","chunks":[],"async":false}},"92950":{"*":{"id":"80992","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/builtin/global-error.js":{"id":27123,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":27123,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/globals.css":{"id":66872,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/app/register-sw.tsx":{"id":92524,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ErrorBoundary.tsx":{"id":86343,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/agent-inspector/AgentInspectorRenderer.tsx":{"id":18847,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/backlinks/BacklinksRenderer.tsx":{"id":88946,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/config/ConfigRenderer.tsx":{"id":35504,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/csv/CsvRenderer.tsx":{"id":92306,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/graph/GraphRenderer.tsx":{"id":92950,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/summary/SummaryRenderer.tsx":{"id":56406,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/timeline/TimelineRenderer.tsx":{"id":39594,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/todo/TodoRenderer.tsx":{"id":87500,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/renderers/workflow-yaml/WorkflowYamlRenderer.tsx":{"id":48133,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ShellLayout.tsx":{"id":1807,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ui/Toaster.tsx":{"id":26490,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/ui/tooltip.tsx":{"id":91459,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/UpdateOverlay.tsx":{"id":40430,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/lib/LocaleContext.tsx":{"id":61263,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":13524,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"IBM_Plex_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"weight\":[\"400\",\"600\"],\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":89846,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"IBM_Plex_Mono\",\"arguments\":[{\"variable\":\"--font-ibm-plex-mono\",\"weight\":[\"400\",\"600\"],\"subsets\":[\"latin\"]}],\"variableName\":\"ibmPlexMono\"}":{"id":377,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"IBM_Plex_Sans\",\"arguments\":[{\"variable\":\"--font-ibm-plex-sans\",\"weight\":[\"400\",\"500\",\"600\"],\"subsets\":[\"latin\"]}],\"variableName\":\"ibmPlexSans\"}":{"id":83284,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"weight\":[\"400\",\"500\",\"600\"],\"style\":[\"normal\",\"italic\"],\"subsets\":[\"latin\"]}],\"variableName\":\"lora\"}":{"id":75282,"name":"*","chunks":["3862","static/chunks/1a258343-030e4d6735874dd4.js","9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","9286","static/chunks/9286-5b09baa5200318c2.js","1038","static/chunks/1038-ed04d6651ec92312.js","275","static/chunks/275-ebcaaedabe706903.js","5681","static/chunks/5681-a53362a1cd629dc6.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","7177","static/chunks/app/layout-d91cdbe2ecf135e1.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/app/error.tsx":{"id":87460,"name":"*","chunks":["8039","static/chunks/app/error-fc1491d554a28327.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/echo/EchoSegmentPageClient.tsx":{"id":69931,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/login/page.tsx":{"id":91727,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/TrashPageClient.tsx":{"id":28381,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/view/[...path]/error.tsx":{"id":53788,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/view/[...path]/not-found.tsx":{"id":23074,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/app/view/[...path]/ViewPageClient.tsx":{"id":36506,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/DirView.tsx":{"id":34367,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/agents/AgentDetailContent.tsx":{"id":7431,"name":"*","chunks":["9602","static/chunks/9602-35ca17b688f1a4fe.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","1384","static/chunks/1384-55276d40a9da4e88.js","2114","static/chunks/app/agents/%5BagentKey%5D/page-519d4da1142db5ef.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/agents/AgentsContentPage.tsx":{"id":46702,"name":"*","chunks":["9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","1038","static/chunks/1038-ed04d6651ec92312.js","1263","static/chunks/1263-6df1734e4273adb1.js","9670","static/chunks/9670-d59e4d45ed705f58.js","1384","static/chunks/1384-55276d40a9da4e88.js","7165","static/chunks/app/agents/page-b709cf3103321609.js"],"async":false},"/home/runner/work/MindOS/MindOS/app/components/changes/ChangesContentPage.tsx":{"id":87180,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/explore/ExploreContent.tsx":{"id":33428,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/help/HelpContent.tsx":{"id":8249,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/setup/index.tsx":{"id":22952,"name":"*","chunks":[],"async":false},"/home/runner/work/MindOS/MindOS/app/components/HomeContent.tsx":{"id":72471,"name":"*","chunks":["9602","static/chunks/9602-35ca17b688f1a4fe.js","8409","static/chunks/8409-de5726a4a278d28f.js","5637","static/chunks/5637-b97c869adf70c82e.js","1263","static/chunks/1263-6df1734e4273adb1.js","8974","static/chunks/app/page-718fdf170428b43c.js"],"async":false}},"entryCSSFiles":{"/home/runner/work/MindOS/MindOS/app/":[],"/home/runner/work/MindOS/MindOS/app/app/layout":[{"inlined":false,"path":"static/css/f16595bc58a16d5d.css"},{"inlined":false,"path":"static/css/bbf51803eade6c50.css"}],"/home/runner/work/MindOS/MindOS/app/app/error":[],"/home/runner/work/MindOS/MindOS/app/app/page":[],"/home/runner/work/MindOS/MindOS/app/app/agents/page":[],"/home/runner/work/MindOS/MindOS/app/app/agents/[agentKey]/page":[]},"rscModuleMapping":{"1807":{"*":{"id":"5315","name":"*","chunks":[],"async":false}},"7431":{"*":{"id":"73165","name":"*","chunks":[],"async":false}},"8249":{"*":{"id":"79927","name":"*","chunks":[],"async":false}},"18847":{"*":{"id":"66913","name":"*","chunks":[],"async":false}},"22952":{"*":{"id":"32873","name":"*","chunks":[],"async":false}},"23074":{"*":{"id":"74710","name":"*","chunks":[],"async":false}},"26490":{"*":{"id":"32248","name":"*","chunks":[],"async":false}},"27123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"28381":{"*":{"id":"86025","name":"*","chunks":[],"async":false}},"33428":{"*":{"id":"61519","name":"*","chunks":[],"async":false}},"34367":{"*":{"id":"24449","name":"*","chunks":[],"async":false}},"35504":{"*":{"id":"63112","name":"*","chunks":[],"async":false}},"36506":{"*":{"id":"71923","name":"*","chunks":[],"async":false}},"39594":{"*":{"id":"1394","name":"*","chunks":[],"async":false}},"40430":{"*":{"id":"90598","name":"*","chunks":[],"async":false}},"46702":{"*":{"id":"3036","name":"*","chunks":[],"async":false}},"48133":{"*":{"id":"83539","name":"*","chunks":[],"async":false}},"53788":{"*":{"id":"32984","name":"*","chunks":[],"async":false}},"56406":{"*":{"id":"45862","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61263":{"*":{"id":"41527","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"66872":{"*":{"id":"82704","name":"*","chunks":[],"async":false}},"69931":{"*":{"id":"99031","name":"*","chunks":[],"async":false}},"72471":{"*":{"id":"19543","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"86343":{"*":{"id":"24387","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"87180":{"*":{"id":"39370","name":"*","chunks":[],"async":false}},"87460":{"*":{"id":"85034","name":"*","chunks":[],"async":false}},"87500":{"*":{"id":"18776","name":"*","chunks":[],"async":false}},"88946":{"*":{"id":"66874","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"91459":{"*":{"id":"68533","name":"*","chunks":[],"async":false}},"91727":{"*":{"id":"69613","name":"*","chunks":[],"async":false}},"92306":{"*":{"id":"60442","name":"*","chunks":[],"async":false}},"92524":{"*":{"id":"12978","name":"*","chunks":[],"async":false}},"92950":{"*":{"id":"37718","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -3,4 +3,4 @@ see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__
|
|
|
3
3
|
hover:border-[var(--amber)]/30 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)]
|
|
4
4
|
active:scale-[0.98]
|
|
5
5
|
transition-all duration-150
|
|
6
|
-
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,d.jsx)(x.lx,{name:a.name,status:e,size:"sm"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"text-sm font-medium text-foreground block truncate group-hover:text-[var(--amber)] transition-colors duration-150",children:a.name}),a.transport&&"connected"===e&&(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60 font-mono",children:a.transport})]}),(0,d.jsx)("span",{className:`text-2xs px-2 py-0.5 rounded-full font-medium shrink-0 select-none ${j}`,children:i})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 pt-2.5 border-t border-border/40",children:[(0,d.jsx)(O,{icon:(0,d.jsx)(s.A,{size:11,"aria-hidden":"true"}),value:f,label:b.colMcp}),(0,d.jsx)(O,{icon:(0,d.jsx)(o.A,{size:11,"aria-hidden":"true"}),value:g,label:b.colSkills}),(0,d.jsx)("span",{className:"flex-1 min-w-[4px]"}),h&&(0,d.jsxs)("span",{className:"flex items-center gap-1 text-[var(--success)]",title:b.runtimeActive,children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)] animate-pulse","aria-hidden":"true"}),(0,d.jsx)("span",{className:"text-2xs font-medium",children:b.runtimeActive})]})]})]})}function O({icon:a,value:b,label:c}){return(0,d.jsxs)("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded-md ${b>0?"bg-muted/40":""}`,title:c,"aria-label":`${c}: ${b}`,children:[(0,d.jsx)("span",{className:b>0?"text-muted-foreground":"text-muted-foreground/30",children:a}),(0,d.jsx)("span",{className:`tabular-nums text-xs ${b>0?"text-foreground font-medium":"text-muted-foreground/40"}`,children:b})]})}var P=c(69924);function Q({copy:a,mcp:b,buckets:c,copyState:f,onCopySnippet:g}){let[h,i]=(0,e.useState)("byServer"),[j,k]=(0,e.useState)(""),[m,n]=(0,e.useState)("all"),[o,p]=(0,e.useState)("all"),[q,r]=(0,e.useState)(null),[t,u]=(0,e.useState)(null),v=(0,e.useMemo)(()=>(0,l.gJ)(b.agents),[b.agents]),w=(0,e.useMemo)(()=>(0,l.gJ)((0,l.fH)(b.agents,{query:j,status:m,transport:o})),[b.agents,j,m,o]),y=(0,e.useMemo)(()=>(0,l.HL)(b.agents),[b.agents]),z=(0,e.useMemo)(()=>{let a=j.trim().toLowerCase();return a?y.filter(b=>b.serverName.toLowerCase().includes(a)):y},[y,j]);async function A(a){r(`reconnect:${a.key}`);try{let c="project"===a.scope?"project":"global",d="http"===a.transport?"http":"stdio";await b.installAgent(a.key,{scope:c,transport:d}),await b.refresh()}catch(a){console.error("[mcp] reconnect failed",a)}finally{r(null)}}async function B(a){r(`install:${a}`);try{await b.installAgent(a,{scope:"global",transport:"stdio"}),await b.refresh()}catch(a){console.error("[mcp] install mindos failed",a)}finally{r(null)}}async function D(){if(null!==q||0===w.length)return;r("bulk"),u(a.bulkRunning);let c=[];for(let a of w){let d="project"===a.scope?"project":"global",e="http"===a.transport?"http":"stdio",f=await b.installAgent(a.key,{scope:d,transport:e});c.push({agentKey:a.key,ok:f})}await b.refresh();let d=(0,l.xJ)(c);u(a.bulkSummary(d.succeeded,d.failed)),r(null)}let E="refresh"===q;return(0,d.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":a.title,children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,d.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,d.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/50 flex items-center justify-center",children:(0,d.jsx)(s.A,{size:13,className:"text-muted-foreground/70","aria-hidden":"true"})}),a.title]}),(0,d.jsxs)("button",{type:"button",onClick:()=>{r("refresh"),b.refresh().finally(()=>r(null))},disabled:E,"aria-label":a.refresh,className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-md px-1.5 py-1 hover:bg-muted disabled:opacity-50 transition-colors duration-150",children:[(0,d.jsx)(P.A,{size:13,className:E?"animate-spin":""}),a.refresh]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":a.title,children:[(0,d.jsx)(x.KF,{active:"byServer"===h,label:a.tabs.byServer,onClick:()=>i("byServer")}),(0,d.jsx)(x.KF,{active:"byAgent"===h,label:a.tabs.byAgent,onClick:()=>i("byAgent")})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,d.jsx)(x.md,{tone:"ok",label:a.filters.connected,count:c.connected.length}),(0,d.jsx)(x.md,{tone:"warn",label:a.filters.detected,count:c.detected.length}),c.notFound.length>0&&(0,d.jsx)(x.md,{tone:"neutral",label:a.filters.notFound,count:c.notFound.length}),(0,d.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,d.jsx)(x.md,{tone:b.status?.running?"ok":"neutral",label:a.mcpServerLabel,count:+!!b.status?.running})]}),!b.status?.running&&(0,d.jsx)("div",{className:"mt-2 pt-2 border-t border-border/60",role:"alert",children:(0,d.jsxs)("p",{className:"text-xs text-destructive flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-destructive shrink-0","aria-hidden":"true"}),a.riskMcpStopped]})})]}),(0,d.jsx)(x.DO,{value:j,onChange:k,placeholder:"byAgent"===h?a.searchPlaceholder:a.searchServersPlaceholder,ariaLabel:a.searchPlaceholder,icon:C.A}),"byAgent"===h?(0,d.jsx)(R,{copy:a,agents:w,busyAction:q,copyState:f,bulkMessage:t,statusFilter:m,transportFilter:o,onStatusFilter:n,onTransportFilter:p,onCopySnippet:g,onReconnect:A,onInstallMindos:B,onBulkReconnect:D}):(0,d.jsx)(S,{copy:a,servers:z,allAgents:v,busyAction:q,onInstallMindos:B,onReconnect:A})]})}function R({copy:a,agents:b,busyAction:c,copyState:e,bulkMessage:f,statusFilter:g,transportFilter:h,onStatusFilter:i,onTransportFilter:j,onCopySnippet:k,onReconnect:m,onInstallMindos:o,onBulkReconnect:p}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsxs)("div",{role:"group","aria-label":a.table.status,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===g,label:a.filters.all,onClick:()=>i("all")}),(0,d.jsx)(x.KF,{active:"connected"===g,label:a.filters.connected,onClick:()=>i("connected")}),(0,d.jsx)(x.KF,{active:"detected"===g,label:a.filters.detected,onClick:()=>i("detected")}),(0,d.jsx)(x.KF,{active:"notFound"===g,label:a.filters.notFound,onClick:()=>i("notFound")})]}),(0,d.jsxs)("div",{role:"group","aria-label":a.table.transport,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===h,label:a.transportFilters.all,onClick:()=>j("all")}),(0,d.jsx)(x.KF,{active:"stdio"===h,label:a.transportFilters.stdio,onClick:()=>j("stdio")}),(0,d.jsx)(x.KF,{active:"http"===h,label:a.transportFilters.http,onClick:()=>j("http")}),(0,d.jsx)(x.KF,{active:"other"===h,label:a.transportFilters.other,onClick:()=>j("other")})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(x.rA,{onClick:()=>void p(),disabled:null!==c||0===b.length,busy:"bulk"===c,label:a.bulkReconnectFiltered}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:a.resultCount(b.length)}),(0,d.jsx)(x.Mv,{message:f})]}),0===b.length?(0,d.jsx)(x.pp,{message:a.emptyState}):(0,d.jsx)("div",{className:"space-y-2",children:b.map(b=>{let f=(0,l.yv)(b),g=b.configuredMcpServers??[],h=(b.installedSkillNames??[]).length;return(0,d.jsxs)("div",{className:`rounded-xl border bg-card group hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-150 ${"detected"===f?"border-l-2 border-l-[var(--amber)] border-border":"notFound"===f?"border-l-2 border-l-error border-border":"border-border"}`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 p-3",children:[(0,d.jsx)(x.lx,{name:b.name,status:f}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(n(),{href:`/agents/${encodeURIComponent(b.key)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:b.name}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground font-mono shrink-0",children:b.transport??b.preferredTransport}),(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"connected"===f?"bg-muted text-muted-foreground":"detected"===f?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-error/10 text-error"}`,children:a.status[f]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,d.jsxs)("span",{className:"tabular-nums",children:[g.length," MCP"]}),(0,d.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,d.jsxs)("span",{className:"tabular-nums",children:[h," skills"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0 md:opacity-0 md:group-hover:opacity-100 md:focus-within:opacity-100 transition-opacity duration-150",children:[(0,d.jsx)(x.rA,{onClick:()=>void k(b.key),disabled:!1,busy:!1,label:e===b.key?a.actions.copied:a.actions.copySnippet}),b.installed?(0,d.jsx)(x.rA,{onClick:()=>void m(b),disabled:null!==c,busy:c===`reconnect:${b.key}`,label:a.actions.reconnect}):(0,d.jsx)(x.rA,{onClick:()=>void o(b.key),disabled:null!==c,busy:c===`install:${b.key}`,label:a.installMindos,variant:"primary"})]})]}),g.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1 px-3 pb-3 ml-12",children:g.map(a=>(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-muted/40 border border-border/30 px-2.5 py-0.5 text-2xs text-muted-foreground hover:bg-muted/60 transition-colors duration-100",children:[(0,d.jsx)("span",{className:"w-1 h-1 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),a]},a))})]},b.key)})})]})}function S({copy:a,servers:b,allAgents:c,busyAction:f,onInstallMindos:g,onReconnect:h}){let[i,j]=(0,e.useState)(null),[k,m]=(0,e.useState)(null),[o,p]=(0,e.useState)(null),[q,r]=(0,e.useState)(null),[t,u]=(0,e.useState)({}),v=a=>a.toLowerCase().includes("mindos"),w=(0,e.useCallback)(async(a,b)=>{j(null),v(b)&&await g(a)},[g]),y=(0,e.useCallback)(()=>{m(null),p(a.manualRemoveHint),setTimeout(()=>p(null),4e3)},[a.manualRemoveHint]),z=(0,e.useCallback)(async(b,c)=>{r(b),u(c=>({...c,[b]:a.reconnectAllRunning}));let d=0,e=0;for(let a of c)try{await h(a),d++}catch{e++}u(c=>({...c,[b]:a.reconnectAllDone(d,e)})),r(null),setTimeout(()=>u(a=>{let c={...a};return delete c[b],c}),4e3)},[a,h]);return 0===b.length?(0,d.jsx)(x.pp,{message:a.crossAgentServersEmpty}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsx)("p",{className:"text-2xs text-muted-foreground tabular-nums",children:a.resultCount(b.length)}),o&&(0,d.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:o}),b.map(b=>{let e=b.agents.map(a=>c.find(b=>b.name===a)).filter(Boolean),g=b.agents.filter(a=>!e.some(b=>b.name===a)),h=v(b.serverName),k=h?c.filter(a=>!b.agents.includes(a.name)):[],o=e.filter(a=>"connected"===(0,l.yv)(a)).length,p=e.filter(a=>"detected"===(0,l.yv)(a)).length,r=e.length-o-p+g.length;return(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,d.jsx)("div",{className:"w-7 h-7 rounded-lg bg-[var(--amber)]/[0.08] flex items-center justify-center shrink-0",children:(0,d.jsx)(s.A,{size:13,className:"text-[var(--amber)]","aria-hidden":"true"})}),(0,d.jsx)("span",{className:"text-sm font-semibold text-foreground truncate",children:b.serverName})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[h&&e.length>0&&(0,d.jsx)(x.rA,{onClick:()=>void z(b.serverName,e),disabled:null!==q||null!==f,busy:q===b.serverName,label:a.reconnectAllInServer,busyLabel:a.reconnectAllRunning}),h&&(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(x.ZC,{onClick:()=>j(i===b.serverName?null:b.serverName),label:a.addAgent,size:"sm"}),(0,d.jsx)(x.BK,{open:i===b.serverName,agents:k.map(a=>({key:a.key,name:a.name})),emptyLabel:a.noAvailableAgents,onSelect:a=>void w(a,b.serverName),onClose:()=>j(null)})]})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:[(0,d.jsx)("span",{className:"tabular-nums",children:a.serverAgentCount(b.agents.length)}),o>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),o]}),p>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),p]}),r>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),r]})]}),t[b.serverName]&&(0,d.jsx)("p",{role:"status",className:"text-2xs text-muted-foreground mb-2 animate-in fade-in duration-200",children:t[b.serverName]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[e.map(a=>{let c=(0,l.yv)(a);return(0,d.jsx)(n(),{href:`/agents/${encodeURIComponent(a.key)}`,className:"cursor-pointer",children:(0,d.jsx)(x.lx,{name:a.name,status:c,onRemove:h?()=>m({agentName:a.name,serverName:b.serverName}):void 0})},a.key)}),g.map(a=>(0,d.jsx)(x.lx,{name:a,status:"notFound"},a))]})]},b.serverName)})]}),(0,d.jsx)(x.TM,{open:null!==k,title:a.confirmRemoveTitle,message:k?a.confirmRemoveMessage(k.agentName,k.serverName):"",confirmLabel:a.removeFromServer,cancelLabel:a.cancel,onConfirm:y,onCancel:()=>m(null),variant:"destructive"})]})}var T=c(95657),U=c(19794),V=c(81285),W=c(95054),X=c(43017);function Y({copy:a,mcp:b,buckets:c}){let[f,g]=(0,e.useState)("bySkill"),[h,i]=(0,e.useState)(""),[j,k]=(0,e.useState)("all"),[m,n]=(0,e.useState)("all"),[p,q]=(0,e.useState)("all"),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(null),y=(0,e.useMemo)(()=>(0,l.x3)(b.agents),[b.agents]),z=(0,e.useMemo)(()=>(0,l.gJ)(b.agents),[b.agents]),A=(0,e.useMemo)(()=>(0,l.ag)(b.skills,y),[b.skills,y]),B=(0,e.useMemo)(()=>b.skills.filter(a=>a.enabled).length,[b.skills]),D=(0,e.useMemo)(()=>b.skills.filter(a=>!a.enabled).length,[b.skills]),E=(0,e.useMemo)(()=>(0,l.IK)(b.skills).size,[b.skills]),F=(0,e.useMemo)(()=>A.filter(a=>"native"===a.kind).length,[A]),G=(0,e.useMemo)(()=>(0,l.Ri)(A,{query:h,source:j,status:m,capability:p}),[A,h,j,m,p]),H=(0,e.useMemo)(()=>(0,l.GU)(G),[G]),I=(0,e.useMemo)(()=>["research","coding","docs","ops","memory"].map(b=>({key:b,label:a.groupLabels[b]})),[a.groupLabels]),J=(0,e.useMemo)(()=>v?A.find(a=>a.name===v)??null:null,[v,A]),K=(0,e.useMemo)(()=>v?b.skills.find(a=>a.name===v)??null:null,[v,b.skills]),L=(0,e.useCallback)(async a=>{await (0,W.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:a})}),window.dispatchEvent(new Event("mindos:skills-changed")),await b.refresh()},[b]),M=async c=>{if(r)return;let d=(0,l.G9)(G,c);if(0===d.length)return void u(a.bulkNoChanges);s(!0),u(a.bulkRunning);let e=[];for(let a of d){let d=await b.toggleSkill(a,c);e.push({skillName:a,ok:d})}let f=(0,l.xR)(e);u(0===f.failed?a.bulkAllSucceeded(f.succeeded):a.bulkPartialFailed(f.succeeded,f.failed)),s(!1)};return(0,d.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":a.title,children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,d.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,d.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/50 flex items-center justify-center",children:(0,d.jsx)(o.A,{size:13,className:"text-muted-foreground/70","aria-hidden":"true"})}),a.title]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":a.title,children:[(0,d.jsx)(x.KF,{active:"bySkill"===f,label:a.tabs.bySkill,onClick:()=>g("bySkill")}),(0,d.jsx)(x.KF,{active:"byAgent"===f,label:a.tabs.byAgent,onClick:()=>g("byAgent")})]})]}),(0,d.jsx)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),a.summaryEnabled(B)]}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),a.summaryDisabled(D)]}),E>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[var(--amber)]",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),a.summaryAttention(E)]}),F>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),a.summaryNative(F)]})]})]})}),(0,d.jsx)(x.DO,{value:h,onChange:i,placeholder:a.searchPlaceholder,ariaLabel:a.searchPlaceholder,icon:C.A}),"bySkill"===f?(0,d.jsx)(Z,{copy:a,filtered:G,grouped:H,allAgents:z,source:j,status:m,capability:p,capabilityOptions:I,bulkRunning:r,bulkMessage:t,onSourceChange:k,onStatusChange:n,onCapabilityChange:q,onBulkToggle:M,onToggleSkill:b.toggleSkill,onRefresh:b.refresh,onOpenDetail:w}):(0,d.jsx)(_,{copy:a,agents:z,skills:b.skills,crossAgentSkills:y,query:h,onToggleSkill:b.toggleSkill,onOpenDetail:w}),(0,d.jsx)(X.A,{open:null!==v,skillName:v,skill:K,agentNames:J?.agents??[],isNative:J?.kind==="native",nativeSourcePath:J?.kind==="native"&&J.agents.length>0?b.agents.find(a=>a.name===J.agents[0])?.installedSkillSourcePath:void 0,copy:a.skillPopover,onClose:()=>w(null),onToggle:b.toggleSkill,onDelete:L,onRefresh:b.refresh,allAgentNames:b.agents.filter(a=>a.present&&a.installed).map(a=>a.name)})]})}function Z({copy:a,filtered:b,grouped:c,allAgents:f,source:g,status:h,capability:i,capabilityOptions:j,bulkRunning:k,bulkMessage:l,onSourceChange:m,onStatusChange:n,onCapabilityChange:o,onBulkToggle:p,onToggleSkill:q,onRefresh:r,onOpenDetail:s}){let[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(null),[y,z]=(0,e.useState)(null),[A,B]=(0,e.useState)(null),[C,D]=(0,e.useState)(null),E=(0,e.useCallback)(()=>{u(null),B(a.manualSkillHint),setTimeout(()=>B(null),4e3)},[a.manualSkillHint]),F=(0,e.useCallback)(async b=>{w(null),D(b);try{await (0,W.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:b})}),B(a.skillDeleted),window.dispatchEvent(new Event("mindos:skills-changed")),await r()}catch{B(a.skillDeleteFailed)}finally{D(null),setTimeout(()=>B(null),3e3)}},[a.skillDeleted,a.skillDeleteFailed,r]),G=(0,e.useMemo)(()=>{let a=[];for(let[b,d]of Object.entries(c)){if(0===d.length)continue;let c=[...d].sort((a,b)=>a.kind!==b.kind?"mindos"===a.kind?-1:1:a.enabled!==b.enabled?a.enabled?-1:1:a.name.localeCompare(b.name));a.push([b,c])}return a},[c]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsxs)("div",{role:"group","aria-label":"Source",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===g,label:a.sourceAll,onClick:()=>m("all")}),(0,d.jsx)(x.KF,{active:"builtin"===g,label:a.sourceBuiltin,onClick:()=>m("builtin")}),(0,d.jsx)(x.KF,{active:"user"===g,label:a.sourceUser,onClick:()=>m("user")}),(0,d.jsx)(x.KF,{active:"native"===g,label:a.sourceNative,onClick:()=>m("native")})]}),(0,d.jsxs)("div",{role:"group","aria-label":"Status",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===h,label:a.statusAll,onClick:()=>n("all")}),(0,d.jsx)(x.KF,{active:"enabled"===h,label:a.statusEnabled,onClick:()=>n("enabled")}),(0,d.jsx)(x.KF,{active:"disabled"===h,label:a.statusDisabled,onClick:()=>n("disabled")}),(0,d.jsx)(x.KF,{active:"attention"===h,label:a.statusAttention,onClick:()=>n("attention")})]}),(0,d.jsxs)("div",{role:"group","aria-label":"Capability",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===i,label:a.capabilityAll,onClick:()=>o("all")}),j.map(a=>(0,d.jsx)(x.KF,{active:i===a.key,label:a.label,onClick:()=>o(a.key)},a.key))]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(x.rA,{onClick:()=>void p(!0),disabled:k,busy:k,label:a.bulkEnableFiltered}),(0,d.jsx)(x.rA,{onClick:()=>void p(!1),disabled:k,busy:!1,label:a.bulkDisableFiltered}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:a.resultCount(b.length)}),(0,d.jsx)(x.Mv,{message:l})]}),A&&(0,d.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:A}),0===G.length?(0,d.jsx)(x.pp,{message:a.noSkillsMatchFilter}):(0,d.jsx)($,{sortedGrouped:G,allAgents:f,copy:a,pickerSkill:y,deleteBusy:C,onOpenDetail:s,onToggleSkill:q,setPickerSkill:z,setHintMessage:B,setConfirmSkillDelete:w,setConfirmAgentRemove:u}),(0,d.jsx)(x.TM,{open:null!==t,title:a.confirmRemoveAgentTitle,message:t?a.confirmRemoveAgentMessage(t.agentName,t.skillName):"",confirmLabel:a.removeAgentFromSkill,cancelLabel:a.cancelSkillAction,onConfirm:E,onCancel:()=>u(null),variant:"destructive"}),(0,d.jsx)(x.TM,{open:null!==v,title:a.confirmDeleteSkillTitle,message:v?a.confirmDeleteSkillMessage(v):"",confirmLabel:a.skillDeleteAction,cancelLabel:a.cancelSkillAction,onConfirm:()=>v&&void F(v),onCancel:()=>w(null),variant:"destructive"})]})}function $({sortedGrouped:a,allAgents:b,copy:c,pickerSkill:f,deleteBusy:g,onOpenDetail:h,onToggleSkill:i,setPickerSkill:j,setHintMessage:k,setConfirmSkillDelete:l,setConfirmAgentRemove:m}){let n=(0,e.useRef)(null),p=(0,e.useMemo)(()=>{let b=[];for(let[c,d]of a)b.push({type:"header",groupKey:c,count:d.length}),d.forEach((a,c)=>{b.push({type:"card",skill:a,isLast:c===d.length-1})});return b},[a]),q=(0,e.useCallback)((a,e)=>{if("header"===e.type)return(0,d.jsxs)("div",{className:"flex items-center gap-2 pt-3 pb-2.5",children:[(0,d.jsx)("span",{className:"w-1 h-4 rounded-full bg-[var(--amber)]/40","aria-hidden":"true"}),(0,d.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:c.groupLabels[e.groupKey]}),(0,d.jsxs)("span",{className:"text-2xs tabular-nums text-muted-foreground/50 font-medium",children:["(",e.count,")"]})]});let{skill:n}=e,p=b.filter(a=>!n.agents.includes(a.name)).map(a=>({key:a.key,name:a.name})),q="mindos"===n.kind&&"user"===n.source;return(0,d.jsx)("div",{className:e.isLast?"pb-0":"pb-3",children:(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(o.A,{size:14,className:`shrink-0 ${n.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,d.jsx)("button",{type:"button",onClick:()=>h(n.name),className:"text-sm font-medium text-foreground truncate hover:text-[var(--amber)] cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded text-left",children:n.name}),(0,d.jsx)("span",{className:`text-2xs shrink-0 px-1.5 py-0.5 rounded ${"native"===n.kind||"builtin"===n.source?"bg-muted text-muted-foreground":"bg-[var(--amber-dim)] text-[var(--amber-text)]"}`,children:"native"===n.kind?c.sourceNative:"builtin"===n.source?c.sourceBuiltin:c.sourceUser})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[q&&(0,d.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),l(n.name)},disabled:g===n.name,className:"text-muted-foreground hover:text-destructive cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded p-1 disabled:opacity-50 transition-colors duration-150","aria-label":`${c.skillDeleteAction} ${n.name}`,children:(0,d.jsx)(B.A,{size:14})}),"mindos"===n.kind?(0,d.jsx)(V.lM,{size:"sm",checked:n.enabled,onChange:a=>void i(n.name,a)}):(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60 select-none","aria-label":"read-only",children:"—"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(x.ZC,{onClick:()=>j(f===n.name?null:n.name),label:c.addAgentToSkill,size:"sm"}),(0,d.jsx)(x.BK,{open:f===n.name,agents:p,emptyLabel:c.noAvailableAgentsForSkill,onSelect:()=>{j(null),k(c.manualSkillHint),setTimeout(()=>k(null),4e3)},onClose:()=>j(null)})]})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:(0,d.jsx)("span",{className:"tabular-nums",children:c.skillAgentCount(n.agents.length)})}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:n.agents.map(a=>(0,d.jsx)(x.lx,{name:a,onRemove:()=>m({agentName:a,skillName:n.name})},a))})]})})},[b,c,f,g,h,i,j,k,l,m]);return(0,d.jsx)(T.aY,{ref:n,style:{height:"calc(100vh - 340px)",minHeight:200},data:p,itemContent:q,overscan:200,increaseViewportBy:{top:100,bottom:100}})}function _({copy:a,agents:b,skills:c,crossAgentSkills:f,query:g,onToggleSkill:h,onOpenDetail:i}){let j=g.trim().toLowerCase(),k=(0,e.useMemo)(()=>j?b.filter(a=>!!`${a.name} ${a.key}`.toLowerCase().includes(j)||(a.installedSkillNames??[]).some(a=>a.toLowerCase().includes(j))):b,[b,j]),m=(0,e.useMemo)(()=>j?c.filter(a=>a.name.toLowerCase().includes(j)||a.description.toLowerCase().includes(j)):c,[c,j]);return 0===k.length?(0,d.jsx)(x.pp,{message:a.noAgentsYet}):(0,d.jsx)("div",{className:"space-y-3",children:k.map(b=>{let c=(0,l.yv)(b),e=(b.installedSkillNames??[]).sort(),f=b.configuredMcpServers??[],g=(b.present?m:[]).slice().sort((a,b)=>a.enabled!==b.enabled?a.enabled?-1:1:a.name.localeCompare(b.name)),j=e.length+g.length;return(0,d.jsx)(aa,{agentKey:b.key,name:b.name,status:c,skillMode:b.skillMode,mcpCount:f.length,totalSkills:j,nativeSkills:e,mindosSkills:g,copy:a,onToggleSkill:h,onOpenDetail:i},b.key)})})}function aa({agentKey:a,name:b,status:c,skillMode:f,mcpCount:g,totalSkills:h,nativeSkills:i,mindosSkills:j,copy:k,onToggleSkill:m,onOpenDetail:p}){let[q,r]=(0,e.useState)(!1),s=i.length>6,t=q?i:i.slice(0,6);return(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200 overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 pb-0",children:[(0,d.jsx)(x.lx,{name:b,status:c}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(n(),{href:`/agents/${encodeURIComponent(a)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:b}),f&&(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"universal"===f?"bg-muted text-muted-foreground":"additional"===f?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-muted text-muted-foreground"}`,children:f})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,d.jsx)("span",{className:"tabular-nums",children:k.quickStatsMcp(g)}),(0,d.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,d.jsx)("span",{className:"tabular-nums",children:k.quickStatsSkills(h)})]})]})]}),(0,d.jsxs)("div",{className:"p-4 pt-3 space-y-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider",children:[k.agentNativeSkills," ",(0,d.jsxs)("span",{className:"tabular-nums",children:["(",i.length,")"]})]}),s&&(0,d.jsx)("button",{type:"button",onClick:()=>r(!q),className:"text-2xs text-muted-foreground hover:text-foreground cursor-pointer flex items-center gap-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded transition-colors duration-150",children:q?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.A,{size:12}),k.collapseNative]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U.A,{size:12}),k.showAllNative(i.length)]})})]}),0===i.length?(0,d.jsx)("p",{className:"text-2xs text-muted-foreground/60",children:"—"}):(0,d.jsxs)("div",{className:"space-y-0.5 max-h-[200px] overflow-y-auto",children:[t.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>p(a),className:"w-full flex items-center gap-1.5 py-1 min-h-[28px] hover:bg-muted/30 -mx-1.5 px-1.5 rounded transition-colors duration-100 cursor-pointer text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(o.A,{size:12,className:"shrink-0 text-muted-foreground/50","aria-hidden":"true"}),(0,d.jsx)("span",{className:"text-xs text-foreground truncate hover:text-[var(--amber)] transition-colors duration-150",children:a})]},a)),!q&&i.length>6&&(0,d.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"w-full text-left text-2xs text-muted-foreground hover:text-foreground py-1 px-1.5 -mx-1.5 cursor-pointer transition-colors duration-150",children:["+",i.length-6]})]})]}),j.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-1.5",children:[k.agentMindosSkills," ",(0,d.jsxs)("span",{className:"tabular-nums",children:["(",j.filter(a=>a.enabled).length,"/",j.length,")"]})]}),(0,d.jsx)("div",{className:"space-y-0.5 max-h-[240px] overflow-y-auto",children:j.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 py-1 min-h-[32px] hover:bg-muted/30 -mx-1.5 px-1.5 rounded transition-colors duration-100",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,d.jsx)(o.A,{size:12,className:`shrink-0 ${a.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,d.jsx)("button",{type:"button",onClick:()=>p(a.name),className:"text-xs text-foreground truncate hover:text-[var(--amber)] cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded text-left",children:a.name}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground shrink-0",children:k.groupLabels[(0,l.$2)(a)]})]}),(0,d.jsx)(V.lM,{size:"sm",checked:a.enabled,onChange:b=>void m(a.name,b)})]},a.name))})]})]})]})}let ab=(0,p.A)("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 ac=c(26709),ad=c(145),ae=c(22341),af=c(40560),ag=c(91282),ah=c(89165),ai=c(42742),aj=c(53549),ak=c(84248),al=c(37637),am=c(75157);function an(){let a=(0,e.useRef)(function(){try{let a=sessionStorage.getItem("mindos:acp-registry");if(!a)return null;let b=JSON.parse(a);if(!Array.isArray(b.agents)||"number"!=typeof b.ts||Date.now()-b.ts>18e5)return null;return b}catch{return null}}()),[b,c]=(0,e.useState)(a.current?.agents??[]),[d,f]=(0,e.useState)(!a.current),[g,h]=(0,e.useState)(null),[i,j]=(0,e.useState)(0);return(0,e.useRef)(!1),{agents:b,loading:d,error:g,retry:(0,e.useCallback)(()=>{j(a=>a+1)},[])}}var ao=c(17009),ap=c(92464),aq=c(2887);function ar({agents:a,discovering:b,error:c,onDiscover:f,onRemove:h}){let{t:i}=(0,g.Y)(),j=i.panels.agents,[k,l]=(0,e.useState)(!1),{delegations:m}=function(a){let[b,c]=(0,e.useState)([]),[d,f]=(0,e.useState)(!1),g=(0,e.useRef)(!0);return{delegations:b,loading:d,refresh:(0,e.useCallback)(async()=>{f(!0);try{let a=await fetch("/api/a2a/delegations");if(!a.ok)return;let b=await a.json();g.current&&c(b.delegations??[])}catch{}finally{g.current&&f(!1)}},[])}}(0),n=an(),o=0===a.length&&!n.loading&&0===n.agents.length;return(0,d.jsxs)("div",{className:"space-y-5",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h2",{className:"text-sm font-medium text-foreground",children:j.a2aTabTitle}),(0,d.jsxs)("button",{type:"button",onClick:()=>l(!0),className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(t.A,{size:12}),j.a2aDiscover]})]}),o?(0,d.jsx)(as,{onDiscover:()=>l(!0),onBrowseRegistry:n.retry}):(0,d.jsxs)(d.Fragment,{children:[0===a.length?(0,d.jsxs)("div",{className:"rounded-xl border border-dashed border-border/60 bg-gradient-to-b from-card/80 to-card/40 p-8 text-center",children:[(0,d.jsx)("div",{className:"w-12 h-12 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-3",children:(0,d.jsx)(t.A,{size:20,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,d.jsx)("p",{className:"text-sm font-medium text-muted-foreground mb-1",children:j.a2aTabEmpty}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground/70 leading-relaxed max-w-xs mx-auto",children:j.a2aTabEmptyHint})]}):(0,d.jsx)("div",{className:"space-y-2",children:a.map(a=>(0,d.jsx)(aB,{agent:a,onRemove:h,removeCopy:j.a2aRemoveAgent,skillsCopy:j.a2aSkills},a.id))}),(0,d.jsx)(au,{}),(0,d.jsx)(ay,{delegations:m})]}),(0,d.jsx)(aq.A,{open:k,onClose:()=>l(!1),onDiscover:f,discovering:b,error:c})]})}function as({onDiscover:a,onBrowseRegistry:b}){let{t:c}=(0,g.Y)(),e=c.panels.agents;return(0,d.jsxs)("div",{className:"rounded-xl border border-dashed border-border/60 bg-gradient-to-b from-card/80 to-card/40 p-12 text-center",children:[(0,d.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-4",children:(0,d.jsx)(ab,{size:22,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,d.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:e.networkEmptyTitle}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground/70 leading-relaxed max-w-sm mx-auto mb-5",children:e.networkEmptyDesc}),(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2.5",children:[(0,d.jsxs)("button",{type:"button",onClick:a,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(t.A,{size:12}),e.networkDiscoverBtn]}),(0,d.jsxs)("button",{type:"button",onClick:b,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border border-border text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(ab,{size:12}),e.networkBrowseBtn]})]})]})}let at=[{labelKey:"acpQuickReview",icon:ac.A,promptSuffix:"review the code in this project"},{labelKey:"acpQuickFix",icon:ad.A,promptSuffix:"find and fix bugs in this project"},{labelKey:"acpQuickExplain",icon:ae.A,promptSuffix:"explain the structure of this project"}];function au(){let{t:a}=(0,g.Y)(),b=a.panels.agents,c=an(),f=(0,ao.z)(),h=function(){let[a,b]=(0,e.useState)({}),[c,d]=(0,e.useState)(!0),[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(null),[j,k]=(0,e.useState)(0),l=(0,e.useCallback)(()=>k(a=>a+1),[]);return{configs:a,loading:c,saving:f,error:h,save:(0,e.useCallback)(async(a,c)=>{g(!0),i(null);try{let d=await fetch("/api/acp/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:a,config:c})});if(!d.ok)throw Error(`HTTP ${d.status}`);let e=await d.json();return b(e.agents??{}),!0}catch(a){return i(a.message),!1}finally{g(!1)}},[]),reset:(0,e.useCallback)(async a=>{g(!0),i(null);try{let c=await fetch("/api/acp/config",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:a})});if(!c.ok)throw Error(`HTTP ${c.status}`);let d=await c.json();return b(d.agents??{}),!0}catch(a){return i(a.message),!1}finally{g(!1)}},[]),refresh:l}}();if(c.loading)return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:b.acpSectionTitle}),(0,d.jsxs)("div",{className:"flex items-center justify-center py-6 gap-2",children:[(0,d.jsx)(af.A,{size:14,className:"animate-spin text-muted-foreground"}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:b.acpLoading})]})]});if(c.error)return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:b.acpSectionTitle}),(0,d.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/80 p-4 text-center",children:[(0,d.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:b.acpLoadFailed}),(0,d.jsx)("button",{type:"button",onClick:c.retry,className:"text-xs font-medium text-foreground hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:b.acpRetry})]})]});if(0===c.agents.length)return null;let i=[],j=[];for(let a of c.agents){let b=f.installedAgents.find(b=>b.id===a.id);if(b)i.push({agent:a,info:b});else{let b=f.notInstalledAgents.find(b=>b.id===a.id);j.push({agent:a,installCmd:b?.installCmd??null,packageName:b?.packageName??a.packageName??null})}}return(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:b.acpSectionTitle}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>f.refresh(),disabled:f.loading,className:"inline-flex items-center gap-1 px-2 py-1 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:[(0,d.jsx)(P.A,{size:10,className:f.loading?"animate-spin":""}),b.acpScan]}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60",children:b.acpSectionDesc(c.agents.length)})]})]}),i.length>0&&(0,d.jsx)("div",{className:"space-y-2",children:i.map(({agent:a,info:b})=>(0,d.jsx)(aw,{agent:a,installed:b,installCmd:null,packageName:null,detectionDone:!f.loading,onInstalled:f.refresh,acpConfig:h},a.id))}),j.length>0&&(0,d.jsx)("div",{className:"space-y-1",children:j.map(({agent:a,installCmd:b,packageName:c})=>(0,d.jsx)(ax,{agent:a,installCmd:b,packageName:c,detectionDone:!f.loading,onInstalled:f.refresh},a.id))})]})}let av={npx:"bg-[var(--amber)]/15 text-[var(--amber)]",binary:"bg-muted text-muted-foreground",uvx:"bg-[var(--success)]/15 text-[var(--success)]",stdio:"bg-muted text-muted-foreground"};function aw({agent:a,installed:b,detectionDone:c,acpConfig:f}){let{t:h}=(0,g.Y)(),i=h.panels.agents,[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(""),[n,p]=(0,e.useState)(""),[q,r]=(0,e.useState)("idle"),s={npx:i.acpTransportNpx,binary:i.acpTransportBinary,uvx:i.acpTransportUvx,stdio:i.acpTransportStdio},t=!!b,u=b?.resolvedCommand,v=u?.source==="user-override"?i.acpConfigSourceUser:u?.source==="descriptor"?i.acpConfigSourceBuiltin:i.acpConfigSourceRegistry,w=(0,e.useCallback)(()=>{!j&&u&&(m(u.cmd),p(u.args.join(" "))),k(a=>!a),r("idle")},[j,u]),x=(0,e.useCallback)(async()=>{let b=n.trim()?n.trim().split(/\s+/):[];await f.save(a.id,{command:l.trim()||void 0,args:b.length>0?b:void 0})&&(r("saved"),setTimeout(()=>r("idle"),2e3))},[f,a.id,l,n]),y=(0,e.useCallback)(async()=>{await f.reset(a.id),r("idle"),k(!1)},[f,a.id]);return(0,d.jsxs)("div",{className:"rounded-xl border border-[var(--amber)]/20 bg-card p-3 hover:border-[var(--amber)]/40 transition-all duration-150",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,d.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[var(--amber)]/10 flex items-center justify-center shrink-0",children:(0,d.jsx)(ab,{size:14,className:"text-[var(--amber)]"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:a.name}),a.version&&(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground/60 shrink-0",children:["v",a.version]})]}),a.description&&(0,d.jsx)("p",{className:"text-2xs text-muted-foreground truncate",children:a.description})]}),(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${av[a.transport]??av.stdio}`,children:s[a.transport]??a.transport}),c&&(0,d.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 bg-[var(--success)]/15 text-[var(--success)]",children:i.acpReady}),(0,d.jsx)("button",{type:"button",onClick:w,className:"p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:i.acpConfigToggle,"aria-expanded":j,children:(0,d.jsx)(ag.A,{size:13})}),(0,d.jsxs)("button",{type:"button",onClick:()=>{(0,ap.NH)("","user",{id:a.id,name:a.name})},className:"inline-flex items-center gap-1 px-2.5 py-1 text-2xs font-medium rounded-md border border-[var(--amber)] text-[var(--amber)] hover:bg-[var(--amber)]/10 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer",children:[(0,d.jsx)(o.A,{size:10}),i.acpUseAgent]})]}),j&&u&&(0,d.jsxs)("div",{className:"mt-2.5 pt-2.5 border-t border-border/40 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:i.acpConfigCommand}),(0,d.jsx)("input",{type:"text",value:l,onChange:a=>{m(a.target.value),r("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:u.cmd})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:i.acpConfigArgs}),(0,d.jsx)("input",{type:"text",value:n,onChange:a=>{p(a.target.value),r("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:u.args.join(" ")})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 text-2xs text-muted-foreground",children:[(0,d.jsxs)("span",{children:[i.acpConfigSource,":"]}),(0,d.jsx)("span",{className:`px-1.5 py-0.5 rounded font-medium ${"user-override"===u.source?"bg-[var(--amber)]/15 text-[var(--amber)]":"bg-muted text-muted-foreground"}`,children:v}),(0,d.jsx)("span",{className:"text-muted-foreground/50",children:"|"}),(0,d.jsxs)("span",{children:[i.acpConfigPath,": ",(0,d.jsx)("span",{className:"font-mono",children:b?.binaryPath})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[f.configs[a.id]&&(0,d.jsxs)("button",{type:"button",onClick:y,className:"inline-flex items-center gap-1 px-2 py-1 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(ah.A,{size:10}),i.acpConfigReset]}),(0,d.jsx)("button",{type:"button",onClick:x,disabled:f.saving,className:"inline-flex items-center gap-1 px-2.5 py-1 text-2xs font-medium rounded-md bg-[var(--amber)] text-[var(--amber-foreground)] hover:bg-[var(--amber)]/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:"saved"===q?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ai.A,{size:10})," ",i.acpConfigSaved]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(aj.A,{size:10})," ",i.acpConfigSave]})})]})]}),t&&!j&&(0,d.jsx)("div",{className:"mt-2.5 pt-2 border-t border-border/40 flex items-center gap-1.5 flex-wrap",children:at.map(b=>{let c=b.icon;return(0,d.jsxs)("button",{type:"button",onClick:()=>{(0,ap.NH)(b.promptSuffix,"user",{id:a.id,name:a.name})},className:"inline-flex items-center gap-1 px-2 py-0.5 text-2xs font-medium rounded-md bg-muted/60 text-muted-foreground hover:bg-muted hover:text-foreground border border-border/50 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(c,{size:10}),i[b.labelKey]]},b.labelKey)})})]})}function ax({agent:a,installCmd:b,packageName:c,detectionDone:f,onInstalled:h}){let{t:i}=(0,g.Y)(),j=i.panels.agents,[k,l]=(0,e.useState)("idle"),m=async()=>{if(c&&"installing"!==k){l("installing");try{if(!(await fetch("/api/acp/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:a.id,packageName:c})})).ok)return void l("error");await new Promise(a=>setTimeout(a,8e3)),h(),l("done")}catch{l("error")}}};return(0,d.jsx)("div",{className:"group rounded-lg border border-border/60 bg-card/60 px-3 py-2 hover:border-border transition-all duration-150",children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/40 flex items-center justify-center shrink-0",children:(0,d.jsx)(ab,{size:11,className:"text-muted-foreground/60"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:a.name})}),f&&(0,d.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 bg-muted text-muted-foreground/60",children:j.acpNotInstalled}),f&&c&&(0,d.jsx)("button",{type:"button",disabled:"installing"===k,onClick:m,className:"inline-flex items-center gap-1 px-2 py-0.5 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",title:b?j.acpInstallHint(b):void 0,children:"installing"===k?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(af.A,{size:10,className:"animate-spin"})," ",j.acpInstalling]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ak.A,{size:10})," ",j.acpInstall]})})]})})}function ay({delegations:a}){let{t:b}=(0,g.Y)(),c=b.panels.agents;return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:c.a2aDelegations}),0===a.length?(0,d.jsx)("p",{className:"text-xs text-muted-foreground/70 py-3",children:c.a2aDelegationsEmpty}):(0,d.jsx)("div",{className:"space-y-1.5",children:a.map(a=>(0,d.jsx)(aA,{record:a},a.id))})]})}let az={pending:"bg-muted text-muted-foreground",completed:"bg-[var(--success)]/15 text-[var(--success)]",failed:"bg-[var(--error)]/15 text-[var(--error)]"};function aA({record:a}){let{t:b}=(0,g.Y)(),c=b.panels.agents,e={pending:c.a2aDelegationPending,completed:c.a2aDelegationCompleted,failed:c.a2aDelegationFailed},f=a.completedAt?function(a,b){let c=b.getTime()-a.getTime();if(c<1e3)return`${c}ms`;let d=Math.round(c/1e3);if(d<60)return`${d}s`;let e=Math.floor(d/60),f=d%60;return f>0?`${e}m ${f}s`:`${e}m`}(new Date(a.startedAt),new Date(a.completedAt)):null;return(0,d.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/80 px-3 py-2.5 flex items-center gap-2.5",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-xs font-medium text-foreground truncate",children:a.agentName}),(0,d.jsx)("p",{className:"text-2xs text-muted-foreground truncate",title:a.message,children:a.message.length>60?a.message.slice(0,60)+"...":a.message})]}),(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${az[a.status]}`,children:e[a.status]}),f&&(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground/60 shrink-0 flex items-center gap-0.5",children:[(0,d.jsx)(y.A,{size:10,"aria-hidden":"true"}),f]})]})}function aB({agent:a,onRemove:b,removeCopy:c,skillsCopy:e}){let f=a.reachable?al.A:am.A,g=a.reachable?"text-[var(--success)]":"text-muted-foreground/50";return(0,d.jsxs)("div",{className:"group rounded-xl border border-border bg-card p-3.5 hover:border-[var(--amber)]/30 transition-all duration-150",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,d.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0",children:(0,d.jsx)(t.A,{size:14,className:"text-muted-foreground"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:a.card.name}),(0,d.jsx)("p",{className:"text-2xs text-muted-foreground truncate",children:a.card.description})]}),(0,d.jsx)(f,{size:13,className:g,"aria-hidden":"true"}),(0,d.jsx)("button",{type:"button",onClick:()=>b(a.id),className:"p-1.5 rounded-md text-muted-foreground/50 hover:text-error hover:bg-error/10 transition-colors opacity-0 group-hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:opacity-100","aria-label":c,title:c,children:(0,d.jsx)(B.A,{size:12})})]}),a.card.skills.length>0&&(0,d.jsxs)("div",{className:"mt-2.5 pt-2 border-t border-border/40 flex items-center gap-1.5",children:[(0,d.jsx)(o.A,{size:11,className:"text-muted-foreground/60 shrink-0","aria-hidden":"true"}),(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground",children:[e,": ",a.card.skills.length]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-1 ml-1",children:[a.card.skills.slice(0,3).map(a=>(0,d.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/80 text-muted-foreground border border-border/50",title:a.description,children:a.name},a.id)),a.card.skills.length>3&&(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground/60",children:["+",a.card.skills.length-3]})]})]})]})}var aC=c(96286);function aD(){let[a,b]=(0,e.useState)([]),[c,f]=(0,e.useState)(!0),[g,h]=(0,e.useState)(null),i=(0,e.useCallback)(async()=>{try{f(!0);let a=await fetch("/api/acp/session");if(!a.ok)throw Error(`Failed to fetch sessions: ${a.status}`);let c=await a.json();b(c.sessions??[]),h(null)}catch(a){h(a.message)}finally{f(!1)}},[]),j=(0,e.useCallback)(async a=>{try{await fetch("/api/acp/session",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:a})}),b(b=>b.filter(b=>b.id!==a))}catch(a){console.error("Failed to close session:",a)}},[]);return c?(0,d.jsx)("div",{className:"space-y-3 animate-pulse",children:Array.from({length:3}).map((a,b)=>(0,d.jsx)("div",{className:"rounded-lg border border-border bg-card p-4",children:(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"w-8 h-8 rounded-full bg-muted"}),(0,d.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,d.jsx)("div",{className:"h-4 w-32 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-3 w-48 bg-muted rounded"})]})]})},b))}):g?(0,d.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6 text-center",children:[(0,d.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:g}),(0,d.jsx)("button",{onClick:i,className:"text-sm text-[var(--amber)] hover:underline",children:"Retry"})]}):0===a.length?(0,d.jsxs)("div",{className:"rounded-lg border border-border bg-card p-8 text-center",children:[(0,d.jsx)(aC.A,{size:32,className:"mx-auto mb-3 text-muted-foreground/40"}),(0,d.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:"No active sessions"}),(0,d.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Sessions appear here when you chat with ACP agents.",(0,d.jsx)("br",{}),"Select an agent from the Network tab and send a message to start."]})]}):(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsxs)("p",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wider",children:["Active Sessions (",a.length,")"]}),(0,d.jsx)("button",{onClick:i,className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Refresh"})]}),a.map(a=>{var b;let c;return(0,d.jsx)("div",{className:"group rounded-lg border border-border bg-card hover:border-[var(--amber)]/30 transition-colors p-3.5",children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,d.jsx)("span",{className:`inline-block w-2 h-2 rounded-full ${"active"===a.state?"bg-[var(--success)]":"error"===a.state?"bg-[var(--error)]":"bg-muted-foreground/40"}`}),(0,d.jsx)("span",{className:"text-sm font-medium text-foreground truncate",children:a.agentId}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60 px-1.5 py-0.5 rounded bg-muted/40",children:a.state})]}),a.cwd&&(0,d.jsx)("p",{className:"text-xs text-muted-foreground truncate font-mono",children:a.cwd}),(0,d.jsx)("p",{className:"text-2xs text-muted-foreground/60 mt-1",children:(b=a.lastActivityAt,(c=Date.now()-new Date(b).getTime())<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:`${Math.floor(c/864e5)}d ago`)})]}),(0,d.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,d.jsx)("button",{onClick:()=>j(a.id),className:"p-1.5 rounded-md hover:bg-muted/60 text-muted-foreground hover:text-[var(--error)] transition-colors",title:"Close session",children:(0,d.jsx)(B.A,{size:14})})})]})},a.id)})]})}function aE({tab:a}){let{t:b}=(0,g.Y)(),c=b.agentsContent,m=(0,h.kr)(),n=(0,i.V)(),o=(0,e.useMemo)(()=>"sessions"===a?{title:"Sessions",subtitle:"Active ACP agent sessions."}:"a2a"===a?{title:c.navNetwork,subtitle:c.a2aTabEmptyHint}:"skills"===a?{title:c.navSkills,subtitle:c.skills.capabilityGroups}:"mcp"===a?{title:c.navMcp,subtitle:c.mcp.connectionGraph}:{title:c.title,subtitle:c.subtitle},[c,a]),p=(0,e.useMemo)(()=>(0,l.$t)(m.agents),[m.agents]),q=(0,e.useMemo)(()=>(0,l.zK)({mcpRunning:!!m.status?.running,detectedCount:p.detected.length,notFoundCount:p.notFound.length,allSkillsDisabled:m.skills.length>0&&m.skills.every(a=>!a.enabled),copy:c.overview}),[m.skills,m.status?.running,p.detected.length,p.notFound.length,c.overview]),r=(0,e.useMemo)(()=>m.skills.filter(a=>a.enabled).length,[m.skills]),s=async a=>{let b=m.agents.find(b=>b.key===a);if(!b)return;let c=(0,k.$k)(b,m.status,b.preferredTransport);await (0,j.l)(c.snippet)&&f.oR.copy()};return(0,d.jsxs)("div",{className:"content-width px-4 md:px-6 py-8 md:py-10",children:[(0,d.jsxs)("header",{className:"mb-6",children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold tracking-tight font-display text-foreground",children:o.title}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:o.subtitle})]}),m.loading&&"overview"===a&&(0,d.jsx)(aF,{}),!m.loading&&"overview"===a&&(0,d.jsx)(K,{copy:c.overview,buckets:p,riskQueue:q,mcpRunning:!!m.status?.running,mcpPort:m.status?.port??null,mcpToolCount:m.status?.toolCount??0,enabledSkillCount:r,allAgents:m.agents,pulseCopy:c.workspacePulse,a2aCount:n.agents.length}),"mcp"===a&&(0,d.jsx)(Q,{copy:{...c.mcp,status:c.status},mcp:m,buckets:p,copyState:null,onCopySnippet:s}),"skills"===a&&(0,d.jsx)(Y,{copy:c.skills,mcp:m,buckets:p}),"a2a"===a&&(0,d.jsx)(ar,{agents:n.agents,discovering:n.discovering,error:n.error,onDiscover:n.discover,onRemove:n.remove}),"sessions"===a&&(0,d.jsx)(aD,{})]})}function aF(){return(0,d.jsxs)("div",{className:"space-y-5 animate-pulse","aria-busy":"true","aria-label":"Loading",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[(0,d.jsx)("div",{className:"px-4 py-2.5 border-b border-border bg-muted/10",children:(0,d.jsx)("div",{className:"h-4 w-32 bg-muted rounded"})}),(0,d.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-6 divide-x divide-border",children:Array.from({length:6}).map((a,b)=>(0,d.jsxs)("div",{className:"px-3 py-3.5 flex flex-col items-center gap-2",children:[(0,d.jsx)("div",{className:"h-3 w-16 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-5 w-8 bg-muted rounded"})]},b))})]}),(0,d.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Array.from({length:2}).map((a,b)=>(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 flex items-start gap-3.5",children:[(0,d.jsx)("div",{className:"w-10 h-10 rounded-lg bg-muted"}),(0,d.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,d.jsx)("div",{className:"h-4 w-20 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-3 w-full bg-muted rounded"})]})]},b))}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsx)("div",{className:"h-4 w-24 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-3 w-16 bg-muted rounded"})]}),(0,d.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:Array.from({length:6}).map((a,b)=>(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-3.5",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,d.jsx)("div",{className:"w-7 h-7 rounded-full bg-muted"}),(0,d.jsx)("div",{className:"flex-1 h-4 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-4 w-16 bg-muted rounded"})]}),(0,d.jsx)("div",{className:"h-3 w-2/3 bg-muted rounded"})]},b))})]})]})}}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[3445,5592,4241,7471,359,7198,6539,953,4931,912,9414],()=>b(b.s=20485));module.exports=c})();
|
|
6
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,d.jsx)(x.lx,{name:a.name,status:e,size:"sm"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"text-sm font-medium text-foreground block truncate group-hover:text-[var(--amber)] transition-colors duration-150",children:a.name}),a.transport&&"connected"===e&&(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60 font-mono",children:a.transport})]}),(0,d.jsx)("span",{className:`text-2xs px-2 py-0.5 rounded-full font-medium shrink-0 select-none ${j}`,children:i})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 pt-2.5 border-t border-border/40",children:[(0,d.jsx)(O,{icon:(0,d.jsx)(s.A,{size:11,"aria-hidden":"true"}),value:f,label:b.colMcp}),(0,d.jsx)(O,{icon:(0,d.jsx)(o.A,{size:11,"aria-hidden":"true"}),value:g,label:b.colSkills}),(0,d.jsx)("span",{className:"flex-1 min-w-[4px]"}),h&&(0,d.jsxs)("span",{className:"flex items-center gap-1 text-[var(--success)]",title:b.runtimeActive,children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)] animate-pulse","aria-hidden":"true"}),(0,d.jsx)("span",{className:"text-2xs font-medium",children:b.runtimeActive})]})]})]})}function O({icon:a,value:b,label:c}){return(0,d.jsxs)("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded-md ${b>0?"bg-muted/40":""}`,title:c,"aria-label":`${c}: ${b}`,children:[(0,d.jsx)("span",{className:b>0?"text-muted-foreground":"text-muted-foreground/30",children:a}),(0,d.jsx)("span",{className:`tabular-nums text-xs ${b>0?"text-foreground font-medium":"text-muted-foreground/40"}`,children:b})]})}var P=c(69924);function Q({copy:a,mcp:b,buckets:c,copyState:f,onCopySnippet:g}){let[h,i]=(0,e.useState)("byServer"),[j,k]=(0,e.useState)(""),[m,n]=(0,e.useState)("all"),[o,p]=(0,e.useState)("all"),[q,r]=(0,e.useState)(null),[t,u]=(0,e.useState)(null),v=(0,e.useMemo)(()=>(0,l.gJ)(b.agents),[b.agents]),w=(0,e.useMemo)(()=>(0,l.gJ)((0,l.fH)(b.agents,{query:j,status:m,transport:o})),[b.agents,j,m,o]),y=(0,e.useMemo)(()=>(0,l.HL)(b.agents),[b.agents]),z=(0,e.useMemo)(()=>{let a=j.trim().toLowerCase();return a?y.filter(b=>b.serverName.toLowerCase().includes(a)):y},[y,j]);async function A(a){r(`reconnect:${a.key}`);try{let c="project"===a.scope?"project":"global",d="http"===a.transport?"http":"stdio";await b.installAgent(a.key,{scope:c,transport:d}),await b.refresh()}catch(a){console.error("[mcp] reconnect failed",a)}finally{r(null)}}async function B(a){r(`install:${a}`);try{await b.installAgent(a,{scope:"global",transport:"stdio"}),await b.refresh()}catch(a){console.error("[mcp] install mindos failed",a)}finally{r(null)}}async function D(){if(null!==q||0===w.length)return;r("bulk"),u(a.bulkRunning);let c=[];for(let a of w){let d="project"===a.scope?"project":"global",e="http"===a.transport?"http":"stdio",f=await b.installAgent(a.key,{scope:d,transport:e});c.push({agentKey:a.key,ok:f})}await b.refresh();let d=(0,l.xJ)(c);u(a.bulkSummary(d.succeeded,d.failed)),r(null)}let E="refresh"===q;return(0,d.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":a.title,children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,d.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,d.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/50 flex items-center justify-center",children:(0,d.jsx)(s.A,{size:13,className:"text-muted-foreground/70","aria-hidden":"true"})}),a.title]}),(0,d.jsxs)("button",{type:"button",onClick:()=>{r("refresh"),b.refresh().finally(()=>r(null))},disabled:E,"aria-label":a.refresh,className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-md px-1.5 py-1 hover:bg-muted disabled:opacity-50 transition-colors duration-150",children:[(0,d.jsx)(P.A,{size:13,className:E?"animate-spin":""}),a.refresh]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":a.title,children:[(0,d.jsx)(x.KF,{active:"byServer"===h,label:a.tabs.byServer,onClick:()=>i("byServer")}),(0,d.jsx)(x.KF,{active:"byAgent"===h,label:a.tabs.byAgent,onClick:()=>i("byAgent")})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,d.jsx)(x.md,{tone:"ok",label:a.filters.connected,count:c.connected.length}),(0,d.jsx)(x.md,{tone:"warn",label:a.filters.detected,count:c.detected.length}),c.notFound.length>0&&(0,d.jsx)(x.md,{tone:"neutral",label:a.filters.notFound,count:c.notFound.length}),(0,d.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,d.jsx)(x.md,{tone:b.status?.running?"ok":"neutral",label:a.mcpServerLabel,count:+!!b.status?.running})]}),!b.status?.running&&(0,d.jsx)("div",{className:"mt-2 pt-2 border-t border-border/60",role:"alert",children:(0,d.jsxs)("p",{className:"text-xs text-destructive flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-destructive shrink-0","aria-hidden":"true"}),a.riskMcpStopped]})})]}),(0,d.jsx)(x.DO,{value:j,onChange:k,placeholder:"byAgent"===h?a.searchPlaceholder:a.searchServersPlaceholder,ariaLabel:a.searchPlaceholder,icon:C.A}),"byAgent"===h?(0,d.jsx)(R,{copy:a,agents:w,busyAction:q,copyState:f,bulkMessage:t,statusFilter:m,transportFilter:o,onStatusFilter:n,onTransportFilter:p,onCopySnippet:g,onReconnect:A,onInstallMindos:B,onBulkReconnect:D}):(0,d.jsx)(S,{copy:a,servers:z,allAgents:v,busyAction:q,onInstallMindos:B,onReconnect:A})]})}function R({copy:a,agents:b,busyAction:c,copyState:e,bulkMessage:f,statusFilter:g,transportFilter:h,onStatusFilter:i,onTransportFilter:j,onCopySnippet:k,onReconnect:m,onInstallMindos:o,onBulkReconnect:p}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsxs)("div",{role:"group","aria-label":a.table.status,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===g,label:a.filters.all,onClick:()=>i("all")}),(0,d.jsx)(x.KF,{active:"connected"===g,label:a.filters.connected,onClick:()=>i("connected")}),(0,d.jsx)(x.KF,{active:"detected"===g,label:a.filters.detected,onClick:()=>i("detected")}),(0,d.jsx)(x.KF,{active:"notFound"===g,label:a.filters.notFound,onClick:()=>i("notFound")})]}),(0,d.jsxs)("div",{role:"group","aria-label":a.table.transport,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===h,label:a.transportFilters.all,onClick:()=>j("all")}),(0,d.jsx)(x.KF,{active:"stdio"===h,label:a.transportFilters.stdio,onClick:()=>j("stdio")}),(0,d.jsx)(x.KF,{active:"http"===h,label:a.transportFilters.http,onClick:()=>j("http")}),(0,d.jsx)(x.KF,{active:"other"===h,label:a.transportFilters.other,onClick:()=>j("other")})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(x.rA,{onClick:()=>void p(),disabled:null!==c||0===b.length,busy:"bulk"===c,label:a.bulkReconnectFiltered}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:a.resultCount(b.length)}),(0,d.jsx)(x.Mv,{message:f})]}),0===b.length?(0,d.jsx)(x.pp,{message:a.emptyState}):(0,d.jsx)("div",{className:"space-y-2",children:b.map(b=>{let f=(0,l.yv)(b),g=b.configuredMcpServers??[],h=(b.installedSkillNames??[]).length;return(0,d.jsxs)("div",{className:`rounded-xl border bg-card group hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-150 ${"detected"===f?"border-l-2 border-l-[var(--amber)] border-border":"notFound"===f?"border-l-2 border-l-error border-border":"border-border"}`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 p-3",children:[(0,d.jsx)(x.lx,{name:b.name,status:f}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(n(),{href:`/agents/${encodeURIComponent(b.key)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:b.name}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground font-mono shrink-0",children:b.transport??b.preferredTransport}),(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"connected"===f?"bg-muted text-muted-foreground":"detected"===f?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-error/10 text-error"}`,children:a.status[f]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,d.jsxs)("span",{className:"tabular-nums",children:[g.length," MCP"]}),(0,d.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,d.jsxs)("span",{className:"tabular-nums",children:[h," skills"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0 md:opacity-0 md:group-hover:opacity-100 md:focus-within:opacity-100 transition-opacity duration-150",children:[(0,d.jsx)(x.rA,{onClick:()=>void k(b.key),disabled:!1,busy:!1,label:e===b.key?a.actions.copied:a.actions.copySnippet}),b.installed?(0,d.jsx)(x.rA,{onClick:()=>void m(b),disabled:null!==c,busy:c===`reconnect:${b.key}`,label:a.actions.reconnect}):(0,d.jsx)(x.rA,{onClick:()=>void o(b.key),disabled:null!==c,busy:c===`install:${b.key}`,label:a.installMindos,variant:"primary"})]})]}),g.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1 px-3 pb-3 ml-12",children:g.map(a=>(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-muted/40 border border-border/30 px-2.5 py-0.5 text-2xs text-muted-foreground hover:bg-muted/60 transition-colors duration-100",children:[(0,d.jsx)("span",{className:"w-1 h-1 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),a]},a))})]},b.key)})})]})}function S({copy:a,servers:b,allAgents:c,busyAction:f,onInstallMindos:g,onReconnect:h}){let[i,j]=(0,e.useState)(null),[k,m]=(0,e.useState)(null),[o,p]=(0,e.useState)(null),[q,r]=(0,e.useState)(null),[t,u]=(0,e.useState)({}),v=a=>a.toLowerCase().includes("mindos"),w=(0,e.useCallback)(async(a,b)=>{j(null),v(b)&&await g(a)},[g]),y=(0,e.useCallback)(()=>{m(null),p(a.manualRemoveHint),setTimeout(()=>p(null),4e3)},[a.manualRemoveHint]),z=(0,e.useCallback)(async(b,c)=>{r(b),u(c=>({...c,[b]:a.reconnectAllRunning}));let d=0,e=0;for(let a of c)try{await h(a),d++}catch{e++}u(c=>({...c,[b]:a.reconnectAllDone(d,e)})),r(null),setTimeout(()=>u(a=>{let c={...a};return delete c[b],c}),4e3)},[a,h]);return 0===b.length?(0,d.jsx)(x.pp,{message:a.crossAgentServersEmpty}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsx)("p",{className:"text-2xs text-muted-foreground tabular-nums",children:a.resultCount(b.length)}),o&&(0,d.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:o}),b.map(b=>{let e=b.agents.map(a=>c.find(b=>b.name===a)).filter(Boolean),g=b.agents.filter(a=>!e.some(b=>b.name===a)),h=v(b.serverName),k=h?c.filter(a=>!b.agents.includes(a.name)):[],o=e.filter(a=>"connected"===(0,l.yv)(a)).length,p=e.filter(a=>"detected"===(0,l.yv)(a)).length,r=e.length-o-p+g.length;return(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,d.jsx)("div",{className:"w-7 h-7 rounded-lg bg-[var(--amber)]/[0.08] flex items-center justify-center shrink-0",children:(0,d.jsx)(s.A,{size:13,className:"text-[var(--amber)]","aria-hidden":"true"})}),(0,d.jsx)("span",{className:"text-sm font-semibold text-foreground truncate",children:b.serverName})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[h&&e.length>0&&(0,d.jsx)(x.rA,{onClick:()=>void z(b.serverName,e),disabled:null!==q||null!==f,busy:q===b.serverName,label:a.reconnectAllInServer,busyLabel:a.reconnectAllRunning}),h&&(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(x.ZC,{onClick:()=>j(i===b.serverName?null:b.serverName),label:a.addAgent,size:"sm"}),(0,d.jsx)(x.BK,{open:i===b.serverName,agents:k.map(a=>({key:a.key,name:a.name})),emptyLabel:a.noAvailableAgents,onSelect:a=>void w(a,b.serverName),onClose:()=>j(null)})]})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:[(0,d.jsx)("span",{className:"tabular-nums",children:a.serverAgentCount(b.agents.length)}),o>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),o]}),p>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),p]}),r>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),r]})]}),t[b.serverName]&&(0,d.jsx)("p",{role:"status",className:"text-2xs text-muted-foreground mb-2 animate-in fade-in duration-200",children:t[b.serverName]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[e.map(a=>{let c=(0,l.yv)(a);return(0,d.jsx)(n(),{href:`/agents/${encodeURIComponent(a.key)}`,className:"cursor-pointer",children:(0,d.jsx)(x.lx,{name:a.name,status:c,onRemove:h?()=>m({agentName:a.name,serverName:b.serverName}):void 0})},a.key)}),g.map(a=>(0,d.jsx)(x.lx,{name:a,status:"notFound"},a))]})]},b.serverName)})]}),(0,d.jsx)(x.TM,{open:null!==k,title:a.confirmRemoveTitle,message:k?a.confirmRemoveMessage(k.agentName,k.serverName):"",confirmLabel:a.removeFromServer,cancelLabel:a.cancel,onConfirm:y,onCancel:()=>m(null),variant:"destructive"})]})}var T=c(95657),U=c(19794),V=c(81285),W=c(95054),X=c(43017);function Y({copy:a,mcp:b,buckets:c}){let[f,g]=(0,e.useState)("bySkill"),[h,i]=(0,e.useState)(""),[j,k]=(0,e.useState)("all"),[m,n]=(0,e.useState)("all"),[p,q]=(0,e.useState)("all"),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(null),y=(0,e.useMemo)(()=>(0,l.x3)(b.agents),[b.agents]),z=(0,e.useMemo)(()=>(0,l.gJ)(b.agents),[b.agents]),A=(0,e.useMemo)(()=>(0,l.ag)(b.skills,y),[b.skills,y]),B=(0,e.useMemo)(()=>b.skills.filter(a=>a.enabled).length,[b.skills]),D=(0,e.useMemo)(()=>b.skills.filter(a=>!a.enabled).length,[b.skills]),E=(0,e.useMemo)(()=>(0,l.IK)(b.skills).size,[b.skills]),F=(0,e.useMemo)(()=>A.filter(a=>"native"===a.kind).length,[A]),G=(0,e.useMemo)(()=>(0,l.Ri)(A,{query:h,source:j,status:m,capability:p}),[A,h,j,m,p]),H=(0,e.useMemo)(()=>(0,l.GU)(G),[G]),I=(0,e.useMemo)(()=>["research","coding","docs","ops","memory"].map(b=>({key:b,label:a.groupLabels[b]})),[a.groupLabels]),J=(0,e.useMemo)(()=>v?A.find(a=>a.name===v)??null:null,[v,A]),K=(0,e.useMemo)(()=>v?b.skills.find(a=>a.name===v)??null:null,[v,b.skills]),L=(0,e.useCallback)(async a=>{await (0,W.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:a})}),window.dispatchEvent(new Event("mindos:skills-changed")),await b.refresh()},[b]),M=async c=>{if(r)return;let d=(0,l.G9)(G,c);if(0===d.length)return void u(a.bulkNoChanges);s(!0),u(a.bulkRunning);let e=[];for(let a of d){let d=await b.toggleSkill(a,c);e.push({skillName:a,ok:d})}let f=(0,l.xR)(e);u(0===f.failed?a.bulkAllSucceeded(f.succeeded):a.bulkPartialFailed(f.succeeded,f.failed)),s(!1)};return(0,d.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":a.title,children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,d.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,d.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/50 flex items-center justify-center",children:(0,d.jsx)(o.A,{size:13,className:"text-muted-foreground/70","aria-hidden":"true"})}),a.title]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":a.title,children:[(0,d.jsx)(x.KF,{active:"bySkill"===f,label:a.tabs.bySkill,onClick:()=>g("bySkill")}),(0,d.jsx)(x.KF,{active:"byAgent"===f,label:a.tabs.byAgent,onClick:()=>g("byAgent")})]})]}),(0,d.jsx)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),a.summaryEnabled(B)]}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),a.summaryDisabled(D)]}),E>0&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[var(--amber)]",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),a.summaryAttention(E)]}),F>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,d.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),a.summaryNative(F)]})]})]})}),(0,d.jsx)(x.DO,{value:h,onChange:i,placeholder:a.searchPlaceholder,ariaLabel:a.searchPlaceholder,icon:C.A}),"bySkill"===f?(0,d.jsx)(Z,{copy:a,filtered:G,grouped:H,allAgents:z,source:j,status:m,capability:p,capabilityOptions:I,bulkRunning:r,bulkMessage:t,onSourceChange:k,onStatusChange:n,onCapabilityChange:q,onBulkToggle:M,onToggleSkill:b.toggleSkill,onRefresh:b.refresh,onOpenDetail:w}):(0,d.jsx)(_,{copy:a,agents:z,skills:b.skills,crossAgentSkills:y,query:h,onToggleSkill:b.toggleSkill,onOpenDetail:w}),(0,d.jsx)(X.A,{open:null!==v,skillName:v,skill:K,agentNames:J?.agents??[],isNative:J?.kind==="native",nativeSourcePath:J?.kind==="native"&&J.agents.length>0?b.agents.find(a=>a.name===J.agents[0])?.installedSkillSourcePath:void 0,copy:a.skillPopover,onClose:()=>w(null),onToggle:b.toggleSkill,onDelete:L,onRefresh:b.refresh,allAgentNames:b.agents.filter(a=>a.present&&a.installed).map(a=>a.name)})]})}function Z({copy:a,filtered:b,grouped:c,allAgents:f,source:g,status:h,capability:i,capabilityOptions:j,bulkRunning:k,bulkMessage:l,onSourceChange:m,onStatusChange:n,onCapabilityChange:o,onBulkToggle:p,onToggleSkill:q,onRefresh:r,onOpenDetail:s}){let[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(null),[y,z]=(0,e.useState)(null),[A,B]=(0,e.useState)(null),[C,D]=(0,e.useState)(null),E=(0,e.useCallback)(()=>{u(null),B(a.manualSkillHint),setTimeout(()=>B(null),4e3)},[a.manualSkillHint]),F=(0,e.useCallback)(async b=>{w(null),D(b);try{await (0,W.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:b})}),B(a.skillDeleted),window.dispatchEvent(new Event("mindos:skills-changed")),await r()}catch{B(a.skillDeleteFailed)}finally{D(null),setTimeout(()=>B(null),3e3)}},[a.skillDeleted,a.skillDeleteFailed,r]),G=(0,e.useMemo)(()=>{let a=[];for(let[b,d]of Object.entries(c)){if(0===d.length)continue;let c=[...d].sort((a,b)=>a.kind!==b.kind?"mindos"===a.kind?-1:1:a.enabled!==b.enabled?a.enabled?-1:1:a.name.localeCompare(b.name));a.push([b,c])}return a},[c]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsxs)("div",{role:"group","aria-label":"Source",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===g,label:a.sourceAll,onClick:()=>m("all")}),(0,d.jsx)(x.KF,{active:"builtin"===g,label:a.sourceBuiltin,onClick:()=>m("builtin")}),(0,d.jsx)(x.KF,{active:"user"===g,label:a.sourceUser,onClick:()=>m("user")}),(0,d.jsx)(x.KF,{active:"native"===g,label:a.sourceNative,onClick:()=>m("native")})]}),(0,d.jsxs)("div",{role:"group","aria-label":"Status",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===h,label:a.statusAll,onClick:()=>n("all")}),(0,d.jsx)(x.KF,{active:"enabled"===h,label:a.statusEnabled,onClick:()=>n("enabled")}),(0,d.jsx)(x.KF,{active:"disabled"===h,label:a.statusDisabled,onClick:()=>n("disabled")}),(0,d.jsx)(x.KF,{active:"attention"===h,label:a.statusAttention,onClick:()=>n("attention")})]}),(0,d.jsxs)("div",{role:"group","aria-label":"Capability",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,d.jsx)(x.KF,{active:"all"===i,label:a.capabilityAll,onClick:()=>o("all")}),j.map(a=>(0,d.jsx)(x.KF,{active:i===a.key,label:a.label,onClick:()=>o(a.key)},a.key))]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(x.rA,{onClick:()=>void p(!0),disabled:k,busy:k,label:a.bulkEnableFiltered}),(0,d.jsx)(x.rA,{onClick:()=>void p(!1),disabled:k,busy:!1,label:a.bulkDisableFiltered}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:a.resultCount(b.length)}),(0,d.jsx)(x.Mv,{message:l})]}),A&&(0,d.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:A}),0===G.length?(0,d.jsx)(x.pp,{message:a.noSkillsMatchFilter}):(0,d.jsx)($,{sortedGrouped:G,allAgents:f,copy:a,pickerSkill:y,deleteBusy:C,onOpenDetail:s,onToggleSkill:q,setPickerSkill:z,setHintMessage:B,setConfirmSkillDelete:w,setConfirmAgentRemove:u}),(0,d.jsx)(x.TM,{open:null!==t,title:a.confirmRemoveAgentTitle,message:t?a.confirmRemoveAgentMessage(t.agentName,t.skillName):"",confirmLabel:a.removeAgentFromSkill,cancelLabel:a.cancelSkillAction,onConfirm:E,onCancel:()=>u(null),variant:"destructive"}),(0,d.jsx)(x.TM,{open:null!==v,title:a.confirmDeleteSkillTitle,message:v?a.confirmDeleteSkillMessage(v):"",confirmLabel:a.skillDeleteAction,cancelLabel:a.cancelSkillAction,onConfirm:()=>v&&void F(v),onCancel:()=>w(null),variant:"destructive"})]})}function $({sortedGrouped:a,allAgents:b,copy:c,pickerSkill:f,deleteBusy:g,onOpenDetail:h,onToggleSkill:i,setPickerSkill:j,setHintMessage:k,setConfirmSkillDelete:l,setConfirmAgentRemove:m}){let n=(0,e.useRef)(null),p=(0,e.useMemo)(()=>{let b=[];for(let[c,d]of a)b.push({type:"header",groupKey:c,count:d.length}),d.forEach((a,c)=>{b.push({type:"card",skill:a,isLast:c===d.length-1})});return b},[a]),q=(0,e.useCallback)((a,e)=>{if("header"===e.type)return(0,d.jsxs)("div",{className:"flex items-center gap-2 pt-3 pb-2.5",children:[(0,d.jsx)("span",{className:"w-1 h-4 rounded-full bg-[var(--amber)]/40","aria-hidden":"true"}),(0,d.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:c.groupLabels[e.groupKey]}),(0,d.jsxs)("span",{className:"text-2xs tabular-nums text-muted-foreground/50 font-medium",children:["(",e.count,")"]})]});let{skill:n}=e,p=b.filter(a=>!n.agents.includes(a.name)).map(a=>({key:a.key,name:a.name})),q="mindos"===n.kind&&"user"===n.source;return(0,d.jsx)("div",{className:e.isLast?"pb-0":"pb-3",children:(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)(o.A,{size:14,className:`shrink-0 ${n.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,d.jsx)("button",{type:"button",onClick:()=>h(n.name),className:"text-sm font-medium text-foreground truncate hover:text-[var(--amber)] cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded text-left",children:n.name}),(0,d.jsx)("span",{className:`text-2xs shrink-0 px-1.5 py-0.5 rounded ${"native"===n.kind||"builtin"===n.source?"bg-muted text-muted-foreground":"bg-[var(--amber-dim)] text-[var(--amber-text)]"}`,children:"native"===n.kind?c.sourceNative:"builtin"===n.source?c.sourceBuiltin:c.sourceUser})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[q&&(0,d.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),l(n.name)},disabled:g===n.name,className:"text-muted-foreground hover:text-destructive cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded p-1 disabled:opacity-50 transition-colors duration-150","aria-label":`${c.skillDeleteAction} ${n.name}`,children:(0,d.jsx)(B.A,{size:14})}),"mindos"===n.kind?(0,d.jsx)(V.lM,{size:"sm",checked:n.enabled,onChange:a=>void i(n.name,a)}):(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60 select-none","aria-label":"read-only",children:"—"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(x.ZC,{onClick:()=>j(f===n.name?null:n.name),label:c.addAgentToSkill,size:"sm"}),(0,d.jsx)(x.BK,{open:f===n.name,agents:p,emptyLabel:c.noAvailableAgentsForSkill,onSelect:()=>{j(null),k(c.manualSkillHint),setTimeout(()=>k(null),4e3)},onClose:()=>j(null)})]})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:(0,d.jsx)("span",{className:"tabular-nums",children:c.skillAgentCount(n.agents.length)})}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:n.agents.map(a=>(0,d.jsx)(x.lx,{name:a,onRemove:()=>m({agentName:a,skillName:n.name})},a))})]})})},[b,c,f,g,h,i,j,k,l,m]);return(0,d.jsx)(T.aY,{ref:n,style:{height:"calc(100vh - 340px)",minHeight:200},data:p,itemContent:q,overscan:200,increaseViewportBy:{top:100,bottom:100}})}function _({copy:a,agents:b,skills:c,crossAgentSkills:f,query:g,onToggleSkill:h,onOpenDetail:i}){let j=g.trim().toLowerCase(),k=(0,e.useMemo)(()=>j?b.filter(a=>!!`${a.name} ${a.key}`.toLowerCase().includes(j)||(a.installedSkillNames??[]).some(a=>a.toLowerCase().includes(j))):b,[b,j]),m=(0,e.useMemo)(()=>j?c.filter(a=>a.name.toLowerCase().includes(j)||a.description.toLowerCase().includes(j)):c,[c,j]);return 0===k.length?(0,d.jsx)(x.pp,{message:a.noAgentsYet}):(0,d.jsx)("div",{className:"space-y-3",children:k.map(b=>{let c=(0,l.yv)(b),e=(b.installedSkillNames??[]).sort(),f=b.configuredMcpServers??[],g=(b.present?m:[]).slice().sort((a,b)=>a.enabled!==b.enabled?a.enabled?-1:1:a.name.localeCompare(b.name)),j=e.length+g.length;return(0,d.jsx)(aa,{agentKey:b.key,name:b.name,status:c,skillMode:b.skillMode,mcpCount:f.length,totalSkills:j,nativeSkills:e,mindosSkills:g,copy:a,onToggleSkill:h,onOpenDetail:i},b.key)})})}function aa({agentKey:a,name:b,status:c,skillMode:f,mcpCount:g,totalSkills:h,nativeSkills:i,mindosSkills:j,copy:k,onToggleSkill:m,onOpenDetail:p}){let[q,r]=(0,e.useState)(!1),s=i.length>6,t=q?i:i.slice(0,6);return(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200 overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 pb-0",children:[(0,d.jsx)(x.lx,{name:b,status:c}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(n(),{href:`/agents/${encodeURIComponent(a)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:b}),f&&(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"universal"===f?"bg-muted text-muted-foreground":"additional"===f?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-muted text-muted-foreground"}`,children:f})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,d.jsx)("span",{className:"tabular-nums",children:k.quickStatsMcp(g)}),(0,d.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,d.jsx)("span",{className:"tabular-nums",children:k.quickStatsSkills(h)})]})]})]}),(0,d.jsxs)("div",{className:"p-4 pt-3 space-y-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider",children:[k.agentNativeSkills," ",(0,d.jsxs)("span",{className:"tabular-nums",children:["(",i.length,")"]})]}),s&&(0,d.jsx)("button",{type:"button",onClick:()=>r(!q),className:"text-2xs text-muted-foreground hover:text-foreground cursor-pointer flex items-center gap-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded transition-colors duration-150",children:q?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.A,{size:12}),k.collapseNative]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U.A,{size:12}),k.showAllNative(i.length)]})})]}),0===i.length?(0,d.jsx)("p",{className:"text-2xs text-muted-foreground/60",children:"—"}):(0,d.jsxs)("div",{className:"space-y-0.5 max-h-[200px] overflow-y-auto",children:[t.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>p(a),className:"w-full flex items-center gap-1.5 py-1 min-h-[28px] hover:bg-muted/30 -mx-1.5 px-1.5 rounded transition-colors duration-100 cursor-pointer text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(o.A,{size:12,className:"shrink-0 text-muted-foreground/50","aria-hidden":"true"}),(0,d.jsx)("span",{className:"text-xs text-foreground truncate hover:text-[var(--amber)] transition-colors duration-150",children:a})]},a)),!q&&i.length>6&&(0,d.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"w-full text-left text-2xs text-muted-foreground hover:text-foreground py-1 px-1.5 -mx-1.5 cursor-pointer transition-colors duration-150",children:["+",i.length-6]})]})]}),j.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-1.5",children:[k.agentMindosSkills," ",(0,d.jsxs)("span",{className:"tabular-nums",children:["(",j.filter(a=>a.enabled).length,"/",j.length,")"]})]}),(0,d.jsx)("div",{className:"space-y-0.5 max-h-[240px] overflow-y-auto",children:j.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 py-1 min-h-[32px] hover:bg-muted/30 -mx-1.5 px-1.5 rounded transition-colors duration-100",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,d.jsx)(o.A,{size:12,className:`shrink-0 ${a.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,d.jsx)("button",{type:"button",onClick:()=>p(a.name),className:"text-xs text-foreground truncate hover:text-[var(--amber)] cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded text-left",children:a.name}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground shrink-0",children:k.groupLabels[(0,l.$2)(a)]})]}),(0,d.jsx)(V.lM,{size:"sm",checked:a.enabled,onChange:b=>void m(a.name,b)})]},a.name))})]})]})]})}let ab=(0,p.A)("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 ac=c(26709),ad=c(145),ae=c(22341),af=c(40560),ag=c(91282),ah=c(89165),ai=c(42742),aj=c(53549),ak=c(84248),al=c(37637),am=c(75157);function an(){let a=(0,e.useRef)(function(){try{let a=sessionStorage.getItem("mindos:acp-registry");if(!a)return null;let b=JSON.parse(a);if(!Array.isArray(b.agents)||"number"!=typeof b.ts||Date.now()-b.ts>18e5)return null;return b}catch{return null}}()),[b,c]=(0,e.useState)(a.current?.agents??[]),[d,f]=(0,e.useState)(!a.current),[g,h]=(0,e.useState)(null),[i,j]=(0,e.useState)(0);return(0,e.useRef)(!1),{agents:b,loading:d,error:g,retry:(0,e.useCallback)(()=>{j(a=>a+1)},[])}}var ao=c(17009),ap=c(92464),aq=c(2887);function ar({agents:a,discovering:b,error:c,onDiscover:f,onRemove:h}){let{t:i}=(0,g.Y)(),j=i.panels.agents,[k,l]=(0,e.useState)(!1),{delegations:m}=function(a){let[b,c]=(0,e.useState)([]),[d,f]=(0,e.useState)(!1),g=(0,e.useRef)(!0);return{delegations:b,loading:d,refresh:(0,e.useCallback)(async()=>{f(!0);try{let a=await fetch("/api/a2a/delegations");if(!a.ok)return;let b=await a.json();g.current&&c(b.delegations??[])}catch{}finally{g.current&&f(!1)}},[])}}(0),n=an(),o=0===a.length&&!n.loading&&0===n.agents.length;return(0,d.jsxs)("div",{className:"space-y-5",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h2",{className:"text-sm font-medium text-foreground",children:j.a2aTabTitle}),(0,d.jsxs)("button",{type:"button",onClick:()=>l(!0),className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(t.A,{size:12}),j.a2aDiscover]})]}),o?(0,d.jsx)(as,{onDiscover:()=>l(!0),onBrowseRegistry:n.retry}):(0,d.jsxs)(d.Fragment,{children:[0===a.length?(0,d.jsxs)("div",{className:"rounded-xl border border-dashed border-border/60 bg-gradient-to-b from-card/80 to-card/40 p-8 text-center",children:[(0,d.jsx)("div",{className:"w-12 h-12 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-3",children:(0,d.jsx)(t.A,{size:20,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,d.jsx)("p",{className:"text-sm font-medium text-muted-foreground mb-1",children:j.a2aTabEmpty}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground/70 leading-relaxed max-w-xs mx-auto",children:j.a2aTabEmptyHint})]}):(0,d.jsx)("div",{className:"space-y-2",children:a.map(a=>(0,d.jsx)(aB,{agent:a,onRemove:h,removeCopy:j.a2aRemoveAgent,skillsCopy:j.a2aSkills},a.id))}),(0,d.jsx)(au,{}),(0,d.jsx)(ay,{delegations:m})]}),(0,d.jsx)(aq.A,{open:k,onClose:()=>l(!1),onDiscover:f,discovering:b,error:c})]})}function as({onDiscover:a,onBrowseRegistry:b}){let{t:c}=(0,g.Y)(),e=c.panels.agents;return(0,d.jsxs)("div",{className:"rounded-xl border border-dashed border-border/60 bg-gradient-to-b from-card/80 to-card/40 p-12 text-center",children:[(0,d.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-4",children:(0,d.jsx)(ab,{size:22,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,d.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:e.networkEmptyTitle}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground/70 leading-relaxed max-w-sm mx-auto mb-5",children:e.networkEmptyDesc}),(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2.5",children:[(0,d.jsxs)("button",{type:"button",onClick:a,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(t.A,{size:12}),e.networkDiscoverBtn]}),(0,d.jsxs)("button",{type:"button",onClick:b,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border border-border text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(ab,{size:12}),e.networkBrowseBtn]})]})]})}let at=[{labelKey:"acpQuickReview",icon:ac.A,promptSuffix:"review the code in this project"},{labelKey:"acpQuickFix",icon:ad.A,promptSuffix:"find and fix bugs in this project"},{labelKey:"acpQuickExplain",icon:ae.A,promptSuffix:"explain the structure of this project"}];function au(){let{t:a}=(0,g.Y)(),b=a.panels.agents,c=an(),f=(0,ao.z)(),h=function(){let[a,b]=(0,e.useState)({}),[c,d]=(0,e.useState)(!0),[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(null),[j,k]=(0,e.useState)(0),l=(0,e.useCallback)(()=>k(a=>a+1),[]);return{configs:a,loading:c,saving:f,error:h,save:(0,e.useCallback)(async(a,c)=>{g(!0),i(null);try{let d=await fetch("/api/acp/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:a,config:c})});if(!d.ok)throw Error(`HTTP ${d.status}`);let e=await d.json();return b(e.agents??{}),!0}catch(a){return i(a.message),!1}finally{g(!1)}},[]),reset:(0,e.useCallback)(async a=>{g(!0),i(null);try{let c=await fetch("/api/acp/config",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:a})});if(!c.ok)throw Error(`HTTP ${c.status}`);let d=await c.json();return b(d.agents??{}),!0}catch(a){return i(a.message),!1}finally{g(!1)}},[]),refresh:l}}();if(c.loading)return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:b.acpSectionTitle}),(0,d.jsxs)("div",{className:"flex items-center justify-center py-6 gap-2",children:[(0,d.jsx)(af.A,{size:14,className:"animate-spin text-muted-foreground"}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:b.acpLoading})]})]});if(c.error)return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:b.acpSectionTitle}),(0,d.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/80 p-4 text-center",children:[(0,d.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:b.acpLoadFailed}),(0,d.jsx)("button",{type:"button",onClick:c.retry,className:"text-xs font-medium text-foreground hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:b.acpRetry})]})]});if(0===c.agents.length)return null;let i=[],j=[];for(let a of c.agents){let b=f.installedAgents.find(b=>b.id===a.id);if(b)i.push({agent:a,info:b});else{let b=f.notInstalledAgents.find(b=>b.id===a.id);j.push({agent:a,installCmd:b?.installCmd??null,packageName:b?.packageName??a.packageName??null})}}return(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:b.acpSectionTitle}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>f.refresh(),disabled:f.loading,className:"inline-flex items-center gap-1 px-2 py-1 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:[(0,d.jsx)(P.A,{size:10,className:f.loading?"animate-spin":""}),b.acpScan]}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60",children:b.acpSectionDesc(c.agents.length)})]})]}),i.length>0&&(0,d.jsx)("div",{className:"space-y-2",children:i.map(({agent:a,info:b})=>(0,d.jsx)(aw,{agent:a,installed:b,installCmd:null,packageName:null,detectionDone:!f.loading,onInstalled:f.refresh,acpConfig:h},a.id))}),j.length>0&&(0,d.jsx)("div",{className:"space-y-1",children:j.map(({agent:a,installCmd:b,packageName:c})=>(0,d.jsx)(ax,{agent:a,installCmd:b,packageName:c,detectionDone:!f.loading,onInstalled:f.refresh},a.id))})]})}let av={npx:"bg-[var(--amber)]/15 text-[var(--amber)]",binary:"bg-muted text-muted-foreground",uvx:"bg-[var(--success)]/15 text-[var(--success)]",stdio:"bg-muted text-muted-foreground"};function aw({agent:a,installed:b,detectionDone:c,acpConfig:f}){let{t:h}=(0,g.Y)(),i=h.panels.agents,[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(""),[n,p]=(0,e.useState)(""),[q,r]=(0,e.useState)("idle"),s={npx:i.acpTransportNpx,binary:i.acpTransportBinary,uvx:i.acpTransportUvx,stdio:i.acpTransportStdio},t=!!b,u=b?.resolvedCommand,v=u?.source==="user-override"?i.acpConfigSourceUser:u?.source==="descriptor"?i.acpConfigSourceBuiltin:i.acpConfigSourceRegistry,w=(0,e.useCallback)(()=>{!j&&u&&(m(u.cmd),p(u.args.join(" "))),k(a=>!a),r("idle")},[j,u]),x=(0,e.useCallback)(async()=>{let b=n.trim()?n.trim().split(/\s+/):[];await f.save(a.id,{command:l.trim()||void 0,args:b.length>0?b:void 0})&&(r("saved"),setTimeout(()=>r("idle"),2e3))},[f,a.id,l,n]),y=(0,e.useCallback)(async()=>{await f.reset(a.id),r("idle"),k(!1)},[f,a.id]);return(0,d.jsxs)("div",{className:"rounded-xl border border-[var(--amber)]/20 bg-card p-3 hover:border-[var(--amber)]/40 transition-all duration-150",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,d.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[var(--amber)]/10 flex items-center justify-center shrink-0",children:(0,d.jsx)(ab,{size:14,className:"text-[var(--amber)]"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:a.name}),a.version&&(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground/60 shrink-0",children:["v",a.version]})]}),a.description&&(0,d.jsx)("p",{className:"text-2xs text-muted-foreground truncate",children:a.description})]}),(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${av[a.transport]??av.stdio}`,children:s[a.transport]??a.transport}),c&&(0,d.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 bg-[var(--success)]/15 text-[var(--success)]",children:i.acpReady}),(0,d.jsx)("button",{type:"button",onClick:w,className:"p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:i.acpConfigToggle,"aria-expanded":j,children:(0,d.jsx)(ag.A,{size:13})}),(0,d.jsxs)("button",{type:"button",onClick:()=>{(0,ap.NH)("","user",{id:a.id,name:a.name})},className:"inline-flex items-center gap-1 px-2.5 py-1 text-2xs font-medium rounded-md border border-[var(--amber)] text-[var(--amber)] hover:bg-[var(--amber)]/10 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer",children:[(0,d.jsx)(o.A,{size:10}),i.acpUseAgent]})]}),j&&u&&(0,d.jsxs)("div",{className:"mt-2.5 pt-2.5 border-t border-border/40 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:i.acpConfigCommand}),(0,d.jsx)("input",{type:"text",value:l,onChange:a=>{m(a.target.value),r("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:u.cmd})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:i.acpConfigArgs}),(0,d.jsx)("input",{type:"text",value:n,onChange:a=>{p(a.target.value),r("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:u.args.join(" ")})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 text-2xs text-muted-foreground",children:[(0,d.jsxs)("span",{children:[i.acpConfigSource,":"]}),(0,d.jsx)("span",{className:`px-1.5 py-0.5 rounded font-medium ${"user-override"===u.source?"bg-[var(--amber)]/15 text-[var(--amber)]":"bg-muted text-muted-foreground"}`,children:v}),(0,d.jsx)("span",{className:"text-muted-foreground/50",children:"|"}),(0,d.jsxs)("span",{children:[i.acpConfigPath,": ",(0,d.jsx)("span",{className:"font-mono",children:b?.binaryPath})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[f.configs[a.id]&&(0,d.jsxs)("button",{type:"button",onClick:y,className:"inline-flex items-center gap-1 px-2 py-1 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(ah.A,{size:10}),i.acpConfigReset]}),(0,d.jsx)("button",{type:"button",onClick:x,disabled:f.saving,className:"inline-flex items-center gap-1 px-2.5 py-1 text-2xs font-medium rounded-md bg-[var(--amber)] text-[var(--amber-foreground)] hover:bg-[var(--amber)]/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:"saved"===q?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ai.A,{size:10})," ",i.acpConfigSaved]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(aj.A,{size:10})," ",i.acpConfigSave]})})]})]}),t&&!j&&(0,d.jsx)("div",{className:"mt-2.5 pt-2 border-t border-border/40 flex items-center gap-1.5 flex-wrap",children:at.map(b=>{let c=b.icon;return(0,d.jsxs)("button",{type:"button",onClick:()=>{(0,ap.NH)(b.promptSuffix,"user",{id:a.id,name:a.name})},className:"inline-flex items-center gap-1 px-2 py-0.5 text-2xs font-medium rounded-md bg-muted/60 text-muted-foreground hover:bg-muted hover:text-foreground border border-border/50 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,d.jsx)(c,{size:10}),i[b.labelKey]]},b.labelKey)})})]})}function ax({agent:a,installCmd:b,packageName:c,detectionDone:f,onInstalled:h}){let{t:i}=(0,g.Y)(),j=i.panels.agents,[k,l]=(0,e.useState)("idle"),m=async()=>{if(c&&"installing"!==k){l("installing");try{if(!(await fetch("/api/acp/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:a.id,packageName:c})})).ok)return void l("error");await new Promise(a=>setTimeout(a,8e3)),h(),l("done")}catch{l("error")}}};return(0,d.jsx)("div",{className:"group rounded-lg border border-border/60 bg-card/60 px-3 py-2 hover:border-border transition-all duration-150",children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/40 flex items-center justify-center shrink-0",children:(0,d.jsx)(ab,{size:11,className:"text-muted-foreground/60"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:a.name})}),f&&(0,d.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 bg-muted text-muted-foreground/60",children:j.acpNotInstalled}),f&&c&&(0,d.jsx)("button",{type:"button",disabled:"installing"===k,onClick:m,className:"inline-flex items-center gap-1 px-2 py-0.5 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",title:b?j.acpInstallHint(b):void 0,children:"installing"===k?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(af.A,{size:10,className:"animate-spin"})," ",j.acpInstalling]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ak.A,{size:10})," ",j.acpInstall]})})]})})}function ay({delegations:a}){let{t:b}=(0,g.Y)(),c=b.panels.agents;return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:c.a2aDelegations}),0===a.length?(0,d.jsx)("p",{className:"text-xs text-muted-foreground/70 py-3",children:c.a2aDelegationsEmpty}):(0,d.jsx)("div",{className:"space-y-1.5",children:a.map(a=>(0,d.jsx)(aA,{record:a},a.id))})]})}let az={pending:"bg-muted text-muted-foreground",completed:"bg-[var(--success)]/15 text-[var(--success)]",failed:"bg-[var(--error)]/15 text-[var(--error)]"};function aA({record:a}){let{t:b}=(0,g.Y)(),c=b.panels.agents,e={pending:c.a2aDelegationPending,completed:c.a2aDelegationCompleted,failed:c.a2aDelegationFailed},f=a.completedAt?function(a,b){let c=b.getTime()-a.getTime();if(c<1e3)return`${c}ms`;let d=Math.round(c/1e3);if(d<60)return`${d}s`;let e=Math.floor(d/60),f=d%60;return f>0?`${e}m ${f}s`:`${e}m`}(new Date(a.startedAt),new Date(a.completedAt)):null;return(0,d.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/80 px-3 py-2.5 flex items-center gap-2.5",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-xs font-medium text-foreground truncate",children:a.agentName}),(0,d.jsx)("p",{className:"text-2xs text-muted-foreground truncate",title:a.message,children:a.message.length>60?a.message.slice(0,60)+"...":a.message})]}),(0,d.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${az[a.status]}`,children:e[a.status]}),f&&(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground/60 shrink-0 flex items-center gap-0.5",children:[(0,d.jsx)(y.A,{size:10,"aria-hidden":"true"}),f]})]})}function aB({agent:a,onRemove:b,removeCopy:c,skillsCopy:e}){let f=a.reachable?al.A:am.A,g=a.reachable?"text-[var(--success)]":"text-muted-foreground/50";return(0,d.jsxs)("div",{className:"group rounded-xl border border-border bg-card p-3.5 hover:border-[var(--amber)]/30 transition-all duration-150",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,d.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0",children:(0,d.jsx)(t.A,{size:14,className:"text-muted-foreground"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:a.card.name}),(0,d.jsx)("p",{className:"text-2xs text-muted-foreground truncate",children:a.card.description})]}),(0,d.jsx)(f,{size:13,className:g,"aria-hidden":"true"}),(0,d.jsx)("button",{type:"button",onClick:()=>b(a.id),className:"p-1.5 rounded-md text-muted-foreground/50 hover:text-error hover:bg-error/10 transition-colors opacity-0 group-hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:opacity-100","aria-label":c,title:c,children:(0,d.jsx)(B.A,{size:12})})]}),a.card.skills.length>0&&(0,d.jsxs)("div",{className:"mt-2.5 pt-2 border-t border-border/40 flex items-center gap-1.5",children:[(0,d.jsx)(o.A,{size:11,className:"text-muted-foreground/60 shrink-0","aria-hidden":"true"}),(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground",children:[e,": ",a.card.skills.length]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-1 ml-1",children:[a.card.skills.slice(0,3).map(a=>(0,d.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/80 text-muted-foreground border border-border/50",title:a.description,children:a.name},a.id)),a.card.skills.length>3&&(0,d.jsxs)("span",{className:"text-2xs text-muted-foreground/60",children:["+",a.card.skills.length-3]})]})]})]})}var aC=c(96286);function aD(){let[a,b]=(0,e.useState)([]),[c,f]=(0,e.useState)(!0),[g,h]=(0,e.useState)(null),i=(0,e.useCallback)(async()=>{try{f(!0);let a=await fetch("/api/acp/session");if(!a.ok)throw Error(`Failed to fetch sessions: ${a.status}`);let c=await a.json();b(c.sessions??[]),h(null)}catch(a){h(a.message)}finally{f(!1)}},[]),j=(0,e.useCallback)(async a=>{try{await fetch("/api/acp/session",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:a})}),b(b=>b.filter(b=>b.id!==a))}catch(a){console.error("Failed to close session:",a)}},[]);return c?(0,d.jsx)("div",{className:"space-y-3 animate-pulse",children:Array.from({length:3}).map((a,b)=>(0,d.jsx)("div",{className:"rounded-lg border border-border bg-card p-4",children:(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"w-8 h-8 rounded-full bg-muted"}),(0,d.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,d.jsx)("div",{className:"h-4 w-32 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-3 w-48 bg-muted rounded"})]})]})},b))}):g?(0,d.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6 text-center",children:[(0,d.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:g}),(0,d.jsx)("button",{onClick:i,className:"text-sm text-[var(--amber)] hover:underline",children:"Retry"})]}):0===a.length?(0,d.jsxs)("div",{className:"rounded-lg border border-border bg-card p-8 text-center",children:[(0,d.jsx)(aC.A,{size:32,className:"mx-auto mb-3 text-muted-foreground/40"}),(0,d.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:"No active sessions"}),(0,d.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Sessions appear here when you chat with ACP agents.",(0,d.jsx)("br",{}),"Select an agent from the Network tab and send a message to start."]})]}):(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsxs)("p",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wider",children:["Active Sessions (",a.length,")"]}),(0,d.jsx)("button",{onClick:i,className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Refresh"})]}),a.map(a=>{var b;let c;return(0,d.jsx)("div",{className:"group rounded-lg border border-border bg-card hover:border-[var(--amber)]/30 transition-colors p-3.5",children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,d.jsx)("span",{className:`inline-block w-2 h-2 rounded-full ${"active"===a.state?"bg-[var(--success)]":"error"===a.state?"bg-[var(--error)]":"bg-muted-foreground/40"}`}),(0,d.jsx)("span",{className:"text-sm font-medium text-foreground truncate",children:a.agentId}),(0,d.jsx)("span",{className:"text-2xs text-muted-foreground/60 px-1.5 py-0.5 rounded bg-muted/40",children:a.state})]}),a.cwd&&(0,d.jsx)("p",{className:"text-xs text-muted-foreground truncate font-mono",children:a.cwd}),(0,d.jsx)("p",{className:"text-2xs text-muted-foreground/60 mt-1",children:(b=a.lastActivityAt,(c=Date.now()-new Date(b).getTime())<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:`${Math.floor(c/864e5)}d ago`)})]}),(0,d.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,d.jsx)("button",{onClick:()=>j(a.id),className:"p-1.5 rounded-md hover:bg-muted/60 text-muted-foreground hover:text-[var(--error)] transition-colors",title:"Close session",children:(0,d.jsx)(B.A,{size:14})})})]})},a.id)})]})}function aE({tab:a}){let{t:b}=(0,g.Y)(),c=b.agentsContent,m=(0,h.kr)(),n=(0,i.V)(),o=(0,e.useMemo)(()=>"sessions"===a?{title:"Sessions",subtitle:"Active ACP agent sessions."}:"a2a"===a?{title:c.navNetwork,subtitle:c.a2aTabEmptyHint}:"skills"===a?{title:c.navSkills,subtitle:c.skills.capabilityGroups}:"mcp"===a?{title:c.navMcp,subtitle:c.mcp.connectionGraph}:{title:c.title,subtitle:c.subtitle},[c,a]),p=(0,e.useMemo)(()=>(0,l.$t)(m.agents),[m.agents]),q=(0,e.useMemo)(()=>(0,l.zK)({mcpRunning:!!m.status?.running,detectedCount:p.detected.length,notFoundCount:p.notFound.length,allSkillsDisabled:m.skills.length>0&&m.skills.every(a=>!a.enabled),copy:c.overview}),[m.skills,m.status?.running,p.detected.length,p.notFound.length,c.overview]),r=(0,e.useMemo)(()=>m.skills.filter(a=>a.enabled).length,[m.skills]),s=async a=>{let b=m.agents.find(b=>b.key===a);if(!b)return;let c=(0,k.$k)(b,m.status,b.preferredTransport);await (0,j.l)(c.snippet)&&f.oR.copy()};return(0,d.jsxs)("div",{className:"content-width px-4 md:px-6 py-8 md:py-10",children:[(0,d.jsxs)("header",{className:"mb-6",children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold tracking-tight font-display text-foreground",children:o.title}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:o.subtitle})]}),m.loading&&"overview"===a&&(0,d.jsx)(aF,{}),!m.loading&&"overview"===a&&(0,d.jsx)(K,{copy:c.overview,buckets:p,riskQueue:q,mcpRunning:!!m.status?.running,mcpPort:m.status?.port??null,mcpToolCount:m.status?.toolCount??0,enabledSkillCount:r,allAgents:m.agents,pulseCopy:c.workspacePulse,a2aCount:n.agents.length}),"mcp"===a&&(0,d.jsx)(Q,{copy:{...c.mcp,status:c.status},mcp:m,buckets:p,copyState:null,onCopySnippet:s}),"skills"===a&&(0,d.jsx)(Y,{copy:c.skills,mcp:m,buckets:p}),"a2a"===a&&(0,d.jsx)(ar,{agents:n.agents,discovering:n.discovering,error:n.error,onDiscover:n.discover,onRemove:n.remove}),"sessions"===a&&(0,d.jsx)(aD,{})]})}function aF(){return(0,d.jsxs)("div",{className:"space-y-5 animate-pulse","aria-busy":"true","aria-label":"Loading",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[(0,d.jsx)("div",{className:"px-4 py-2.5 border-b border-border bg-muted/10",children:(0,d.jsx)("div",{className:"h-4 w-32 bg-muted rounded"})}),(0,d.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-6 divide-x divide-border",children:Array.from({length:6}).map((a,b)=>(0,d.jsxs)("div",{className:"px-3 py-3.5 flex flex-col items-center gap-2",children:[(0,d.jsx)("div",{className:"h-3 w-16 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-5 w-8 bg-muted rounded"})]},b))})]}),(0,d.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Array.from({length:2}).map((a,b)=>(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 flex items-start gap-3.5",children:[(0,d.jsx)("div",{className:"w-10 h-10 rounded-lg bg-muted"}),(0,d.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,d.jsx)("div",{className:"h-4 w-20 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-3 w-full bg-muted rounded"})]})]},b))}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsx)("div",{className:"h-4 w-24 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-3 w-16 bg-muted rounded"})]}),(0,d.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:Array.from({length:6}).map((a,b)=>(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-3.5",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,d.jsx)("div",{className:"w-7 h-7 rounded-full bg-muted"}),(0,d.jsx)("div",{className:"flex-1 h-4 bg-muted rounded"}),(0,d.jsx)("div",{className:"h-4 w-16 bg-muted rounded"})]}),(0,d.jsx)("div",{className:"h-3 w-2/3 bg-muted rounded"})]},b))})]})]})}}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[3445,5592,4241,7471,359,7198,6539,953,4931,1473,9414],()=>b(b.s=20485));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../node_modules/next/dist/lib/constants.js","../../../../node_modules/next/dist/lib/interop-default.js","../../../../node_modules/next/dist/lib/is-error.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../node_modules/next/dist/server/response-cache/types.js","../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../node_modules/next/dist/shared/lib/segment.js","../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../node_modules/next/dist/shared/lib/size-limit.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/3445.js","../../chunks/359.js","../../chunks/4241.js","../../chunks/4931.js","../../chunks/5592.js","../../chunks/6539.js","../../chunks/7198.js","../../chunks/7471.js","../../chunks/
|
|
1
|
+
{"version":1,"files":["../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../node_modules/next/dist/lib/constants.js","../../../../node_modules/next/dist/lib/interop-default.js","../../../../node_modules/next/dist/lib/is-error.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../node_modules/next/dist/server/response-cache/types.js","../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../node_modules/next/dist/shared/lib/segment.js","../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../node_modules/next/dist/shared/lib/size-limit.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/1473.js","../../chunks/3445.js","../../chunks/359.js","../../chunks/4241.js","../../chunks/4931.js","../../chunks/5592.js","../../chunks/6539.js","../../chunks/7198.js","../../chunks/7471.js","../../chunks/9414.js","../../chunks/953.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
|