@geminilight/mindos-windows-arm64 1.0.6 → 1.0.8
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/_standalone/.mindos-build-version +1 -1
- package/_standalone/__next/BUILD_ID +1 -1
- package/_standalone/__next/app-path-routes-manifest.json +24 -24
- package/_standalone/__next/build-manifest.json +3 -3
- package/_standalone/__next/prerender-manifest.json +3 -3
- package/_standalone/__next/react-loadable-manifest.json +48 -7
- 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 +2 -2
- 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 +2 -2
- 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/agents/copy-skill/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/ask/route.js +2 -2
- 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/channels/verify/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/embedding/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-docx/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/raw/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/im/activity/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/inbox/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/lint/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/direct-tools/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/mcp/tools/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/uninstall/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/obsidian/compat-report/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian-plugins/settings/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/prewarm/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/space-overview/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/capture/history/page.js +1 -1
- package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/capture/page.js +1 -1
- package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/changelog/page.js +1 -1
- package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/changelog/page_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 +4 -4
- 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 +3 -3
- 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 +2 -2
- 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/inbox/history/page.js +1 -1
- package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/inbox/history/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/settings/page.js +8 -3
- package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/settings/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/todo/page.js +1 -1
- package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/trash/page.js +2 -2
- package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
- 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/wiki/page.js +1 -1
- package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app-paths-manifest.json +24 -24
- package/_standalone/__next/server/chunks/103.js +1 -1
- package/_standalone/__next/server/chunks/1976.js +1 -1
- package/_standalone/__next/server/chunks/6602.js +43 -66
- package/_standalone/__next/server/chunks/6646.js +16 -0
- package/_standalone/__next/server/chunks/8461.js +7 -7
- package/_standalone/__next/server/chunks/9868.js +2 -0
- package/_standalone/__next/server/chunks/{3219.js → 9969.js} +4 -4
- package/_standalone/__next/server/middleware-build-manifest.js +1 -1
- package/_standalone/__next/server/middleware-react-loadable-manifest.js +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/{1430-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
- package/_standalone/__next/static/chunks/1655.0a559759973b42e9.js +1 -0
- package/_standalone/__next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
- package/{static-web/_next/static/chunks/9216.d3339c27169b21bf.js → _standalone/__next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
- package/_standalone/__next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
- package/{static-web/_next/static/chunks/4937-4101fcdadacf46e3.js → _standalone/__next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
- package/_standalone/__next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
- package/_standalone/__next/static/chunks/3807-115388f118106ca8.js +1 -0
- package/_standalone/__next/static/chunks/3966.ea75f9c5490955de.js +1 -0
- package/_standalone/__next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
- package/_standalone/__next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
- package/_standalone/__next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
- package/_standalone/__next/static/chunks/577.5e448c99068f1323.js +1 -0
- package/_standalone/__next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
- package/_standalone/__next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
- package/_standalone/__next/static/chunks/6223-3fb90852221bda56.js +1 -0
- package/_standalone/__next/static/chunks/6343.582d063078c45d73.js +6 -0
- package/_standalone/__next/static/chunks/8174-50048777dc2469c0.js +1 -0
- package/_standalone/__next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
- package/_standalone/__next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
- package/_standalone/__next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
- package/_standalone/__next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
- package/_standalone/__next/static/chunks/9440-eee639175695be7d.js +33 -0
- package/_standalone/__next/static/chunks/9479-b48d19e3588823c1.js +34 -0
- package/_standalone/__next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
- package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
- package/_standalone/__next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
- package/_standalone/__next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
- package/_standalone/__next/static/chunks/app/page-d22928276c36528c.js +1 -0
- package/_standalone/__next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
- package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
- package/_standalone/__next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
- package/_standalone/__next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
- package/_standalone/__next/static/chunks/webpack-1decda0633a8a874.js +1 -0
- package/_standalone/__next/static/css/5f000212c8b2e09a.css +1 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
- package/_standalone/__node_modules/entities/LICENSE +11 -0
- package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
- package/_standalone/__node_modules/entities/dist/decode.js +544 -0
- package/_standalone/__node_modules/entities/dist/encode.js +90 -0
- package/_standalone/__node_modules/entities/dist/escape.js +132 -0
- package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
- package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
- package/_standalone/__node_modules/entities/dist/index.js +91 -0
- package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
- package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
- package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
- package/_standalone/__node_modules/entities/package.json +83 -0
- package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
- package/_standalone/__node_modules/entities/src/decode.ts +671 -0
- package/_standalone/__node_modules/entities/src/encode.ts +95 -0
- package/_standalone/__node_modules/entities/src/escape.ts +160 -0
- package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
- package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
- package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
- package/_standalone/__node_modules/entities/src/index.ts +162 -0
- package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
- package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
- package/_standalone/__node_modules/has-flag/index.js +8 -0
- package/_standalone/__node_modules/has-flag/license +9 -0
- package/_standalone/__node_modules/has-flag/package.json +46 -0
- package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
- package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
- package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
- package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
- package/_standalone/__node_modules/koffi/doc/index.md +61 -0
- package/_standalone/__node_modules/koffi/doc/input.md +471 -0
- package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
- package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
- package/_standalone/__node_modules/koffi/doc/output.md +305 -0
- package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
- package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
- package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
- package/_standalone/__node_modules/koffi/doc/start.md +118 -0
- package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
- package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
- package/_standalone/__node_modules/supports-color/browser.js +5 -0
- package/_standalone/__node_modules/supports-color/index.js +135 -0
- package/_standalone/__node_modules/supports-color/license +9 -0
- package/_standalone/__node_modules/supports-color/package.json +53 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
- package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
- package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
- package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
- package/_standalone/public/agent-icons/claude.svg +1 -0
- package/_standalone/public/agent-icons/cursor.svg +1 -0
- package/_standalone/public/agent-icons/github-copilot.svg +1 -0
- package/_standalone/public/agent-icons/google.svg +1 -0
- package/_standalone/public/agent-icons/openai.svg +1 -0
- package/_standalone/public/agent-icons/windsurf.svg +1 -0
- package/bin/lib/stop.js +45 -0
- package/bin/lib/sync.js +32 -19
- package/dist/server/handlers/file.js +5 -2
- package/dist/server/handlers/file.js.map +1 -1
- package/dist/server/handlers/mcp-restart.d.ts +2 -0
- package/dist/server/handlers/mcp-restart.d.ts.map +1 -1
- package/dist/server/handlers/mcp-restart.js +45 -2
- package/dist/server/handlers/mcp-restart.js.map +1 -1
- package/dist/server/handlers/skills.d.ts.map +1 -1
- package/dist/server/handlers/skills.js +17 -3
- package/dist/server/handlers/skills.js.map +1 -1
- package/dist/server/handlers/sync.d.ts.map +1 -1
- package/dist/server/handlers/sync.js +28 -10
- package/dist/server/handlers/sync.js.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/runtime.d.ts.map +1 -1
- package/dist/server/runtime.js +20 -21
- package/dist/server/runtime.js.map +1 -1
- package/package.json +1 -1
- package/runtime-manifest.json +1 -1
- package/scripts/build-bun-binary.mjs +139 -6
- package/scripts/prepare-standalone.mjs +0 -1
- package/scripts/prepare-static-web.mjs +52 -4
- package/scripts/release.sh +1 -1
- package/scripts/setup.js +115 -2
- package/scripts/verify-standalone.mjs +12 -0
- package/static-web/.mindos-build-version +1 -1
- package/static-web/_next/static/chunks/{1430-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
- package/static-web/_next/static/chunks/1655.0a559759973b42e9.js +1 -0
- package/static-web/_next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
- package/{_standalone/__next/static/chunks/9216.d3339c27169b21bf.js → static-web/_next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
- package/static-web/_next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
- package/{_standalone/__next/static/chunks/4937-4101fcdadacf46e3.js → static-web/_next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
- package/static-web/_next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
- package/static-web/_next/static/chunks/3807-115388f118106ca8.js +1 -0
- package/static-web/_next/static/chunks/3966.ea75f9c5490955de.js +1 -0
- package/static-web/_next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
- package/static-web/_next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
- package/static-web/_next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
- package/static-web/_next/static/chunks/577.5e448c99068f1323.js +1 -0
- package/static-web/_next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
- package/static-web/_next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
- package/static-web/_next/static/chunks/6223-3fb90852221bda56.js +1 -0
- package/static-web/_next/static/chunks/6343.582d063078c45d73.js +6 -0
- package/static-web/_next/static/chunks/8174-50048777dc2469c0.js +1 -0
- package/static-web/_next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
- package/static-web/_next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
- package/static-web/_next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
- package/static-web/_next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
- package/static-web/_next/static/chunks/9440-eee639175695be7d.js +33 -0
- package/static-web/_next/static/chunks/9479-b48d19e3588823c1.js +34 -0
- package/static-web/_next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
- package/static-web/_next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
- package/static-web/_next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
- package/static-web/_next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
- package/static-web/_next/static/chunks/app/page-d22928276c36528c.js +1 -0
- package/static-web/_next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
- package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
- package/static-web/_next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
- package/static-web/_next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
- package/static-web/_next/static/chunks/webpack-1decda0633a8a874.js +1 -0
- package/static-web/_next/static/css/5f000212c8b2e09a.css +1 -0
- package/static-web/agent-icons/claude.svg +1 -0
- package/static-web/agent-icons/cursor.svg +1 -0
- package/static-web/agent-icons/github-copilot.svg +1 -0
- package/static-web/agent-icons/google.svg +1 -0
- package/static-web/agent-icons/openai.svg +1 -0
- package/static-web/agent-icons/windsurf.svg +1 -0
- package/static-web/help/index.html +5 -20
- package/static-web/index.html +8 -22
- package/static-web/setup/index.html +5 -20
- package/static-web/static-web-manifest.json +1 -1
- package/static-web/wiki/index.html +5 -20
- package/_standalone/__next/server/chunks/2037.js +0 -2
- package/_standalone/__next/server/chunks/9350.js +0 -11
- package/_standalone/__next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
- package/_standalone/__next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
- package/_standalone/__next/static/chunks/3424-060f01a8983e438d.js +0 -1
- package/_standalone/__next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
- package/_standalone/__next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
- package/_standalone/__next/static/chunks/47-41e1a06e6d389b69.js +0 -48
- package/_standalone/__next/static/chunks/5152-2db55438be7ecb94.js +0 -1
- package/_standalone/__next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
- package/_standalone/__next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
- package/_standalone/__next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
- package/_standalone/__next/static/chunks/725-3b648bf7929ff78d.js +0 -1
- package/_standalone/__next/static/chunks/9479-7b304601a56304cd.js +0 -32
- package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
- package/_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
- package/_standalone/__next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
- package/_standalone/__next/static/chunks/app/page-5c9489e28657376e.js +0 -1
- package/_standalone/__next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
- package/_standalone/__next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
- package/_standalone/__next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
- package/_standalone/__next/static/css/0d2fd378b5449176.css +0 -1
- package/static-web/_next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
- package/static-web/_next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
- package/static-web/_next/static/chunks/3424-060f01a8983e438d.js +0 -1
- package/static-web/_next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
- package/static-web/_next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
- package/static-web/_next/static/chunks/47-41e1a06e6d389b69.js +0 -48
- package/static-web/_next/static/chunks/5152-2db55438be7ecb94.js +0 -1
- package/static-web/_next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
- package/static-web/_next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
- package/static-web/_next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
- package/static-web/_next/static/chunks/725-3b648bf7929ff78d.js +0 -1
- package/static-web/_next/static/chunks/9479-7b304601a56304cd.js +0 -32
- package/static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
- package/static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
- package/static-web/_next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
- package/static-web/_next/static/chunks/app/page-5c9489e28657376e.js +0 -1
- package/static-web/_next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
- package/static-web/_next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
- package/static-web/_next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
- package/static-web/_next/static/css/0d2fd378b5449176.css +0 -1
- /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
- /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
- /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
- /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7165],{4373:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},5038:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},7625:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var r=s(66839),a=s(44223),n=s(31082),i=s(72799),l=s(44361),o=s(21082),d=s(38688),c=s(2073);function u({open:e,onClose:t,onDiscover:s,discovering:u,error:m}){let{t:x}=(0,c.Y)(),p=x.panels.agents,[g,h]=(0,a.useState)(""),[b,f]=(0,a.useState)(null);if(!e)return null;let v=async()=>{if(!g.trim()||u)return;f(null);let e=await s(g.trim());e&&f(e)},j=()=>{h(""),f(null),t()};return(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center overlay-backdrop",onClick:j,children:(0,r.jsxs)("div",{className:"bg-popover border border-border rounded-xl shadow-lg w-full max-w-md mx-4 p-5",onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":p.a2aDiscover,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,r.jsx)(n.A,{size:15,className:"text-muted-foreground"}),p.a2aDiscover]}),(0,r.jsx)("button",{type:"button",onClick:j,className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Close",children:(0,r.jsx)(i.A,{size:14})})]}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground mb-3",children:p.a2aDiscoverHint}),(0,r.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,r.jsx)("input",{type:"url",value:g,onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"===e.key&&v(),"Escape"===e.key&&t()},placeholder:p.a2aDiscoverPlaceholder,disabled:u,className:"flex-1 px-3 py-2 text-xs rounded-lg border border-border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",autoFocus:!0}),(0,r.jsxs)("button",{type:"button",onClick:v,disabled:u||!g.trim(),className:"px-3 py-2 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 disabled:opacity-50 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring flex items-center gap-1.5 shrink-0",children:[u&&(0,r.jsx)(l.A,{size:12,className:"animate-spin"}),u?p.a2aDiscovering:p.a2aDiscover]})]}),m&&!b&&(0,r.jsx)("div",{className:"rounded-lg border border-error/30 bg-error/5 px-3 py-2.5 mb-3",children:(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.A,{size:14,className:"text-error mt-0.5 shrink-0"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-medium text-error",children:p.a2aDiscoverFailed}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground mt-0.5",children:p.a2aDiscoverFailedHint})]})]})}),b&&(0,r.jsx)("div",{className:"rounded-lg border border-success/30 bg-success/5 px-3 py-2.5",children:(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(d.A,{size:14,className:"text-success mt-0.5 shrink-0"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-xs font-medium text-success mb-1.5",children:p.a2aDiscoverSuccess}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsxs)("p",{className:"text-xs font-medium text-foreground truncate",title:b.card.name,children:[b.card.name,(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground ml-1.5",children:["v",b.card.version]})]}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground truncate",title:b.card.description,children:b.card.description}),b.card.skills.length>0&&(0,r.jsxs)("div",{className:"mt-1.5",children:[(0,r.jsxs)("p",{className:"text-2xs text-muted-foreground mb-1",children:[p.a2aSkills,":"]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:b.card.skills.map(e=>(0,r.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/80 text-muted-foreground border border-border/50",title:e.description,children:e.name},e.id))})]}),(0,r.jsxs)("p",{className:"text-2xs text-muted-foreground mt-1 truncate",title:b.endpoint,children:[p.a2aEndpoint,": ",b.endpoint]})]})]})]})})]})})}},9181:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("toggle-left",[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},12240:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},12361:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},21082:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},23505:(e,t,s)=>{Promise.resolve().then(s.bind(s,57510)),Promise.resolve().then(s.bind(s,23684))},24336:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},26732:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},28284:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]])},28971:(e,t,s)=>{"use strict";s.d(t,{z:()=>n});var r=s(44223);let a="mindos:acp-detection";function n(){let[e]=(0,r.useState)(()=>(function(){try{let e=sessionStorage.getItem(a);if(!e)return null;let t=JSON.parse(e);if("object"!=typeof t||null===t||Array.isArray(t)||!Array.isArray(t.installed)||!Array.isArray(t.notInstalled)||"number"!=typeof t.ts||Date.now()-t.ts>18e5)return null;return{installed:t.installed,notInstalled:t.notInstalled,ts:t.ts}}catch{return null}})()),t=(0,r.useRef)(e),[s,n]=(0,r.useState)(()=>e?.installed??[]),[i,l]=(0,r.useState)(()=>e?.notInstalled??[]),[o,d]=(0,r.useState)(()=>!e),[c,u]=(0,r.useState)(null),[m,x]=(0,r.useState)(0),p=(0,r.useRef)(!1),g=(0,r.useRef)(!1),h=(0,r.useCallback)(()=>{try{sessionStorage.removeItem(a)}catch{}t.current=null,g.current=!0,x(e=>e+1)},[]);return(0,r.useEffect)(()=>{let e=()=>h();return window.addEventListener("mindos:settings-changed",e),()=>window.removeEventListener("mindos:settings-changed",e)},[h]),(0,r.useEffect)(()=>{let e=g.current;if(g.current=!1,t.current&&Date.now()-t.current.ts<18e5&&0===m||p.current)return;p.current=!0;let r=s.length>0||i.length>0;r||d(!0),u(null);let o=!1;return fetch(`/api/acp/detect${e?"?force=1":""}`).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(e=>{if(o)return;let s=e.installed??[],r=e.notInstalled??[];try{sessionStorage.setItem(a,JSON.stringify({installed:s,notInstalled:r,ts:Date.now()}))}catch{}t.current={installed:s,notInstalled:r,ts:Date.now()},n(s),l(r)}).catch(e=>{!o&&(r||u(e.message))}).finally(()=>{p.current=!1,o||d(!1)}),()=>{o=!0,p.current=!1}},[m]),{installedAgents:s,notInstalledAgents:i,loading:o,error:c,refresh:h}}},30401:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},31082:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},31606:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},39966:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},41209:(e,t,s)=>{"use strict";s.d(t,{P:()=>r,u:()=>a});let r=[{id:"telegram",name:"Telegram",icon:"\uD83D\uDCF1",guide:"1. Open Telegram → search @BotFather\n2. Send /newbot → follow prompts\n3. Copy the token below",purpose:"Receive MindOS notifications and quick updates in Telegram.",purposeZh:"通过 Telegram 接收 MindOS 的通知和快速更新。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"e.g. chat ID like 123456789 or -1001234567890",recipientExampleZh:"例如 123456789 或 -1001234567890 这样的 chat ID",fields:[{key:"bot_token",label:"Bot Token",placeholder:"123456789:AABBccDD-EeFfGgHh...",hint:"Format: number:alphanumeric"}]},{id:"feishu",name:"Feishu",icon:"\uD83D\uDC26",guide:"1. open.feishu.cn → Create App\n2. Credentials page → copy App ID & Secret\n3. Enable Bot capability + add permissions",guideUrl:"https://open.feishu.cn/",editHint:"Need to update credentials? Edit and save below — MindOS will reconnect automatically.",purpose:"Receive MindOS results in Feishu, or let users message the bot directly when conversations are enabled.",purposeZh:"通过飞书接收 MindOS 的结果;开启对话后,也可以让用户直接在飞书里给机器人发消息。",useCases:["Agent completion alerts","Error notifications","Test messages","Direct bot conversations in Feishu"],useCasesZh:["Agent 完成提醒","错误通知","测试消息","在飞书里直接与机器人对话"],recipientExample:"e.g. ou_xxx, oc_xxx, or a work email",recipientExampleZh:"例如 ou_xxx、oc_xxx,或企业邮箱",fields:[{key:"app_id",label:"App ID",placeholder:"CLI_XXXXXXXXXXXXXXXXX",hint:"From Credentials page on open.feishu.cn"},{key:"app_secret",label:"App Secret",placeholder:"XXXXXXXXXXXXXXXXXXXXXXXX",hint:"Keep this secret — do not share"}]},{id:"discord",name:"Discord",icon:"\uD83D\uDCAC",guide:"1. discord.com/developers → New Application\n2. Bot tab → Reset Token → copy\n3. Enable Message Content Intent",purpose:"Send MindOS updates into Discord channels and DMs.",purposeZh:"把 MindOS 的更新发送到 Discord 频道或私信。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"e.g. Discord channel or user ID",recipientExampleZh:"例如 Discord 频道 ID 或用户 ID",fields:[{key:"bot_token",label:"Bot Token",placeholder:"MTIxNzM..."}]},{id:"slack",name:"Slack",icon:"\uD83D\uDCBC",guide:"1. api.slack.com/apps → Create New App\n2. OAuth & Permissions → add chat:write scope\n3. Install to Workspace → copy Bot Token",purpose:"Route MindOS notifications into Slack channels and direct messages.",purposeZh:"把 MindOS 的通知发送到 Slack 频道或私信。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"e.g. Slack channel or user ID like C123... or U123...",recipientExampleZh:"例如 Slack 频道 ID 或用户 ID(如 C123... / U123...)",fields:[{key:"bot_token",label:"Bot Token",placeholder:"xoxb-xxxx-xxxx-xxxx",hint:"Starts with xoxb-"}]},{id:"wecom",name:"WeCom",icon:"\uD83C\uDFE2",guide:"1. Group chat → Add Robot → Custom\n2. Copy Webhook URL\n3. Extract the key parameter from URL",purpose:"Deliver MindOS notifications into WeCom group chats.",purposeZh:"把 MindOS 通知投递到企业微信群聊。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use your configured robot or WeCom target",recipientExampleZh:"使用你配置好的机器人或企业微信目标",fields:[{key:"webhook_key",label:"Webhook Key",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",hint:"The key= value from webhook URL"}]},{id:"dingtalk",name:"DingTalk",icon:"\uD83D\uDD14",guide:"1. Group → Settings → Smart Assistant → Add Robot\n2. Select Custom (Webhook)\n3. Copy the full Webhook URL",purpose:"Push MindOS notifications into DingTalk groups.",purposeZh:"把 MindOS 通知发送到钉钉群。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use your configured DingTalk robot target",recipientExampleZh:"使用你配置好的钉钉机器人目标",fields:[{key:"webhook_url",label:"Webhook URL",placeholder:"https://oapi.dingtalk.com/robot/send?access_token=...",hint:"Full URL including access_token"}]},{id:"wechat",name:"WeChat",icon:"\uD83D\uDC9A",guide:"1. Visit ilinkai.weixin.qq.com\n2. Register & create a bot application\n3. QR login in the console → copy Bot Token from dashboard",purpose:"Send MindOS updates to WeChat via your configured bot.",purposeZh:"通过你配置好的机器人把 MindOS 更新发送到微信。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use the WeChat user or chat ID supported by your bot",recipientExampleZh:"使用你的机器人支持的微信用户或群聊 ID",fields:[{key:"bot_token",label:"Bot Token",placeholder:"wx_xxxxxxxxxxxxxxxx",hint:"From iLink Bot console after QR login"}]},{id:"qq",name:"QQ",icon:"\uD83D\uDC27",guide:"1. q.qq.com → Create Bot\n2. Development tab → copy App ID & Secret\n3. Add group/C2C intents as needed",purpose:"Deliver MindOS notifications through QQ bot channels.",purposeZh:"通过 QQ 机器人频道接收 MindOS 通知。",useCases:["Agent completion alerts","Error notifications","Test messages"],useCasesZh:["Agent 完成提醒","错误通知","测试消息"],recipientExample:"Use the QQ openid or group_openid for your target",recipientExampleZh:"使用目标 QQ 的 openid 或 group_openid",fields:[{key:"app_id",label:"App ID",placeholder:"102xxxxxx"},{key:"app_secret",label:"App Secret",placeholder:"xxxxxxxxxxxxxxxxxxxxxxxx"}]}];function a(e){return r.find(t=>t.id===e)}},44361:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},48234:(e,t,s)=>{"use strict";s.d(t,{KT:()=>c,NH:()=>d});var r=s(44223);let a={open:!1,initialMessage:"",source:"user",acpAgent:null},n=new Set;function i(){n.forEach(e=>e())}function l(e){return n.add(e),()=>{n.delete(e)}}function o(){return a}function d(e="",t="user",s=null){a={open:!0,initialMessage:e,source:t,acpAgent:s},i()}function c(){let e=(0,r.useSyncExternalStore)(l,o,o);return{open:e.open,initialMessage:e.initialMessage,source:e.source,acpAgent:e.acpAgent,openWith:(0,r.useCallback)((e,t="user",s=null)=>d(e,t,s),[]),close:(0,r.useCallback)(()=>void(a={open:!1,initialMessage:"",source:"user",acpAgent:null},i()),[])}}},52954:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},55798:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},56261:(e,t,s)=>{"use strict";var r=s(59889);s.o(r,"usePathname")&&s.d(t,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(t,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(t,{useSearchParams:function(){return r.useSearchParams}})},57510:(e,t,s)=>{"use strict";s.d(t,{default:()=>th});var r=s(66839),a=s(44223),n=s(56261),i=s(79455),l=s(2073),o=s(20677),d=s(51117),c=s(46990),u=s(98641),m=s(20538),x=s(18016),p=s.n(x),g=s(29696),h=s(73015);let b=(0,h.A)("cable",[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]);var f=s(30626),v=s(31082),j=s(5038),y=s(72615),N=s(78610),k=s(73601),w=s(52954),S=s(58221),A=s(84734),C=s(12240),z=s(8973),M=s(38688),T=s(21082),E=s(12361),D=s(75157),F=s(86386),R=s(31606),$=s(38325),_=s(19777);function L(e){return/search/.test(e)?"search":/read|list|get/.test(e)?"read":/create/.test(e)?"create":/delete/.test(e)?"delete":/write|update|insert|append/.test(e)?"write":"other"}let P={en:{read:"Read",write:"Write",create:"Create",delete:"Delete",search:"Search",other:"Other"},zh:{read:"读取",write:"写入",create:"创建",delete:"删除",search:"搜索",other:"其他"}},O={read:{bg:"rgba(138,180,216,0.10)",text:"var(--tool-read)",border:"rgba(138,180,216,0.25)"},write:{bg:"rgba(200,135,58,0.10)",text:"var(--amber)",border:"rgba(200,135,58,0.25)"},create:{bg:"rgba(122,173,128,0.10)",text:"var(--success)",border:"rgba(122,173,128,0.25)"},delete:{bg:"rgba(200,80,80,0.10)",text:"var(--error)",border:"rgba(200,80,80,0.25)"},search:{bg:"rgba(200,160,216,0.10)",text:"var(--tool-search)",border:"rgba(200,160,216,0.25)"},other:{bg:"var(--muted)",text:"var(--muted-foreground)",border:"var(--border)"}};function I({kind:e,size:t=13}){return"read"===e?(0,r.jsx)(E.A,{size:t}):"write"===e?(0,r.jsx)(D.A,{size:t}):"create"===e?(0,r.jsx)(F.A,{size:t}):"delete"===e?(0,r.jsx)(R.A,{size:t}):"search"===e?(0,r.jsx)($.A,{size:t}):(0,r.jsx)(_.A,{size:t})}function H(e){try{return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}function X(e){let t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4),r=Math.floor(t/36e5),a=Math.floor(t/864e5);return s<1?"<1m":s<60?`${s}m`:r<24?`${r}h`:`${a}d`}function K(e){return"string"==typeof e.path?e.path:null}function U({kind:e,locale:t,size:s="md"}){let a=O[e],n=P[t?.startsWith("zh")?"zh":"en"][e];return(0,r.jsxs)("span",{className:"font-display",style:{display:"inline-flex",alignItems:"center",gap:3,padding:"sm"===s?"1px 6px":"2px 8px",borderRadius:999,fontSize:"sm"===s?"0.6rem":"0.68rem",fontWeight:600,background:a.bg,color:a.text,border:`1px solid ${a.border}`,flexShrink:0,whiteSpace:"nowrap"},children:[(0,r.jsx)(I,{kind:e,size:"sm"===s?9:10}),n]})}function B(){let{t:e,locale:t}=(0,l.Y)(),[s,n]=(0,a.useState)([]),[i,o]=(0,a.useState)(!0),[d,c]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/agent-activity?limit=20").then(e=>e.json()).then(t=>{e||n(t.events??[])}).catch(()=>{}).finally(()=>{e||o(!1)})};t();let s=()=>{"visible"===document.visibilityState&&t()};return document.addEventListener("visibilitychange",s),()=>{e=!0,document.removeEventListener("visibilitychange",s)}},[]);let u=(0,a.useMemo)(()=>{let e=s.filter(e=>{let t=L(e.tool);return"write"===t||"create"===t||"delete"===t});return e.length>=3?e:s},[s]),m=d?u:u.slice(0,5),x=u.length-5;if(i)return(0,r.jsxs)("section",{className:"animate-pulse","aria-label":"Recent Activity",children:[(0,r.jsx)("div",{className:"h-4 w-36 bg-muted rounded mb-3"}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"}),(0,r.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"})]})]});if(0===s.length)return null;let g=e.agentsContent?.overview;return(0,r.jsxs)("section",{"aria-label":"Recent Activity",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 mb-5",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(C.A,{size:13})}),(0,r.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:g?.recentActivity??"Recent Activity"}),(0,r.jsx)("div",{className:"ml-auto",children:(0,r.jsxs)(p(),{href:"/agents?tab=activity",className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] hover:opacity-80 transition-colors",children:[(0,r.jsx)(z.A,{size:12}),(0,r.jsx)("span",{children:g?.viewAll??"View all"})]})})]}),(0,r.jsx)("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:m.map((e,s)=>{let a=L(e.tool),n=K(e.params);return(0,r.jsxs)("div",{className:`flex items-center gap-3 px-3.5 py-2.5 ${s>0?"border-t border-border/30":""} hover:bg-muted/30 transition-colors`,children:[(0,r.jsx)(U,{kind:a,locale:t,size:"sm"}),n?(0,r.jsx)(p(),{href:`/view/${(0,S.O0)(n)}`,className:"text-xs text-[var(--amber)]/80 hover:text-[var(--amber)] truncate min-w-0 flex-1 font-display transition-colors",title:n,children:n}):(0,r.jsx)("span",{className:"flex-1"}),e.agentName&&(0,r.jsx)("span",{className:"text-[0.6rem] font-medium text-muted-foreground/70 bg-muted/60 px-1.5 py-0.5 rounded-full shrink-0",title:e.agentName,children:e.agentName.length>20?e.agentName.slice(0,20)+"...":e.agentName}),"ok"===e.result?(0,r.jsx)(M.A,{size:11,className:"shrink-0 text-[var(--success)]/60"}):(0,r.jsx)(T.A,{size:11,className:"shrink-0 text-[var(--error)]/60"}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums shrink-0",title:e.ts,children:X(e.ts)})]},e.id??s)})}),x>0&&(0,r.jsxs)("button",{onClick:()=>c(e=>!e),className:"flex items-center gap-1.5 mt-2 text-xs font-medium text-[var(--amber)] hover:opacity-80 transition-opacity cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",children:[(0,r.jsx)(y.A,{size:12,className:`transition-transform duration-200 ${d?"rotate-180":""}`}),(0,r.jsx)("span",{children:d?g?.showLess??"Show less":`${x} more`})]})]})}function W({copy:e,buckets:t,riskQueue:s,mcpRunning:n,mcpPort:i,mcpToolCount:l,mcpEnabled:o=!0,enabledSkillCount:d,allAgents:c,pulseCopy:u,a2aCount:m,onAddCustomAgent:x,onEditCustomAgent:p,onRemoveCustomAgent:h}){s.length;let[w,A]=(0,a.useState)(!1),C=(0,a.useMemo)(()=>[...c].filter(e=>e.present||e.isCustom).sort((e,t)=>!e.installed-!t.installed||e.name.localeCompare(t.name)),[c]);return(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)("section",{className:"rounded-xl border border-border bg-gradient-to-b from-card to-card/80 overflow-hidden","aria-label":u.connected,children:(0,r.jsxs)("div",{className:"flex divide-x divide-border/50 [&>*]:flex-1",children:[(0,r.jsx)(Z,{icon:(0,r.jsx)(g.A,{size:14,"aria-hidden":"true"}),label:u.connected,value:t.connected.length,total:C.length,tone:"ok"}),(0,r.jsx)(Z,{icon:(0,r.jsx)(b,{size:14,"aria-hidden":"true"}),label:u.detected,value:t.detected.length,tone:t.detected.length>0?"warn":"muted"}),(0,r.jsx)(Z,{icon:(0,r.jsx)(g.A,{size:14,"aria-hidden":"true"}),label:u.enabledSkills,value:d,tone:"ok"}),o&&(0,r.jsx)(Z,{icon:(0,r.jsx)(f.A,{size:14,"aria-hidden":"true"}),label:e.pulseMcp,value:n?`:${i}`:"—",tone:n?"ok":"warn"}),null!=m&&(0,r.jsx)(Z,{icon:(0,r.jsx)(v.A,{size:14,"aria-hidden":"true"}),label:e.a2aLabel??"A2A",value:m,tone:m>0?"ok":"muted"})]})}),s.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("button",{type:"button",onClick:()=>A(!w),className:"inline-flex items-center gap-1.5 rounded-full border border-[var(--amber)]/25 bg-[var(--amber)]/[0.06] px-3 py-1.5 text-sm font-medium text-[var(--amber)] transition-colors duration-150 hover:bg-[var(--amber)]/[0.12] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-expanded":w,children:[(0,r.jsx)(j.A,{size:13,className:"shrink-0","aria-hidden":"true"}),e.riskQueue,(0,r.jsx)("span",{className:"tabular-nums text-2xs bg-[var(--amber-dim)] px-1.5 py-0.5 rounded-full select-none",children:s.length}),(0,r.jsx)(y.A,{size:13,className:(0,S.cn)("shrink-0 transition-transform duration-200",w&&"rotate-180"),"aria-hidden":"true"})]}),(0,r.jsx)("div",{className:(0,S.cn)("grid transition-[grid-template-rows] duration-250 ease-out",w?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,r.jsx)("div",{className:"overflow-hidden",...!w&&{inert:!0},children:(0,r.jsx)("ul",{className:"mt-3 space-y-2",role:"list",children:s.map((t,s)=>(0,r.jsxs)("li",{className:`flex items-center gap-3 px-3 py-2.5 rounded-lg border text-sm ${"error"===t.severity?"border-destructive/20 bg-destructive/[0.03]":"border-[var(--amber)]/15 bg-background"}`,style:{animationDelay:`${50*s}ms`},children:[(0,r.jsx)("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${"error"===t.severity?"bg-destructive":"bg-[var(--amber)]"}`,"aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-foreground flex-1 min-w-0",children:t.title}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 select-none ${"error"===t.severity?"bg-destructive/10 text-destructive":"bg-[var(--amber-dim)] text-[var(--amber-text)]"}`,children:"error"===t.severity?e.riskLevelError:e.riskLevelWarn})]},t.id))})})})]}),(0,r.jsx)(B,{}),C.length>0?(0,r.jsxs)("section",{"aria-label":e.usagePulse,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(N.A,{size:13})}),(0,r.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:e.usagePulse})]}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums select-none",children:e.agentCount(C.length)})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:[x&&(0,r.jsxs)("button",{type:"button",onClick:x,className:"group rounded-xl border-2 border-dashed border-border/60 bg-transparent p-3.5 hover:border-[var(--amber)]/30 hover:bg-muted/20 active:scale-[0.98] transition-all duration-150 flex flex-col items-center justify-center gap-2 min-h-[100px] cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":e.addCustomAgent,children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full border-2 border-dashed border-muted-foreground/30 flex items-center justify-center group-hover:border-[var(--amber)]/50 transition-colors duration-150",children:(0,r.jsx)(k.A,{size:16,className:"text-muted-foreground/50 group-hover:text-[var(--amber)] transition-colors duration-150"})}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground/60 group-hover:text-muted-foreground transition-colors duration-150",children:e.addCustomAgent})]}),C.map((t,s)=>(0,r.jsx)(q,{agent:t,copy:e,index:s,mcpEnabled:o,onEdit:t.isCustom?p:void 0,onRemove:t.isCustom?h:void 0},t.key))]})]}):(0,r.jsxs)("section",{className:"rounded-xl border border-border/40 bg-card/30 p-12 text-center","aria-label":e.usagePulse,children:[(0,r.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)(b,{size:22,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground/70 leading-relaxed max-w-xs mx-auto",children:e.nextActionHint})]})]})}function Z({icon:e,label:t,value:s,total:a,tone:n}){return(0,r.jsxs)("div",{className:`px-3 py-4 text-center ${"ok"===n?"hover:bg-muted/20":"warn"===n?"hover:bg-[var(--amber)]/[0.04]":"hover:bg-muted/20"} transition-colors duration-150 group/stat`,role:"group","aria-label":`${t}: ${s}${void 0!==a?`/${a}`:""}`,children:[(0,r.jsx)("div",{className:`flex items-center justify-center gap-1.5 mb-2 ${"ok"===n?"text-[var(--success)]/70":"warn"===n?"text-[var(--amber)]/70":"text-muted-foreground/40"} group-hover/stat:opacity-100 transition-all duration-150`,children:e}),(0,r.jsxs)("p",{className:`text-xl font-semibold tabular-nums leading-none mb-1.5 ${"ok"===n?"text-foreground":"warn"===n?"text-amber-600 dark:text-amber-400":"text-muted-foreground"}`,children:[s,void 0!==a&&(0,r.jsxs)("span",{className:"text-xs font-normal text-muted-foreground ml-0.5",children:["/",a]})]}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/70 truncate block",children:t})]})}function q({agent:e,copy:t,index:s,mcpEnabled:n=!0,onEdit:i,onRemove:l}){let[o,d]=(0,a.useState)(!1),c=(0,a.useRef)(null),u=(0,m.yv)(e),x=e.configuredMcpServerCount??e.configuredMcpServers?.length??0,h=e.installedSkillCount??e.installedSkillNames?.length??0,b=e.runtimeConversationSignal||e.runtimeUsageSignal,v=e.isCustom,j="connected"===u?t.connected:"detected"===u?t.detected:t.notFound,y="connected"===u?"bg-muted text-muted-foreground":"detected"===u?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-error/10 text-error";return(0,a.useEffect)(()=>{if(!o)return;let e=e=>{c.current&&!c.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[o]),(0,r.jsxs)(p(),{href:`/agents/${encodeURIComponent(e.key)}`,className:(0,S.cn)("group relative rounded-xl border border-border bg-card p-3.5","hover:border-[var(--amber)]/30 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)]","active:scale-[0.98]","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",v&&"border-l-2 border-l-[var(--amber)]/40"),children:[v&&(i||l)&&(0,r.jsxs)("div",{ref:c,className:"absolute top-2.5 right-2.5 z-10",children:[(0,r.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),d(!o)},className:"w-6 h-6 rounded-md flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted opacity-0 group-hover:opacity-100 transition-all duration-150 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:opacity-100","aria-label":"Agent options",children:(0,r.jsx)(w.A,{size:14})}),o&&(0,r.jsxs)("div",{className:"absolute right-0 top-full mt-1 w-32 bg-card border border-border rounded-lg shadow-lg py-1 animate-in fade-in-0 zoom-in-95 duration-100",children:[i&&(0,r.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),d(!1),i(e)},className:"w-full text-left px-3 py-1.5 text-sm text-foreground hover:bg-muted transition-colors duration-100 cursor-pointer",children:t.customAgentEdit}),l&&(0,r.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),d(!1),l(e)},className:"w-full text-left px-3 py-1.5 text-sm text-destructive hover:bg-muted transition-colors duration-100 cursor-pointer",children:t.customAgentRemove})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,r.jsx)(A.lx,{name:e.name,status:u,size:"sm"}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-foreground block truncate group-hover:text-[var(--amber)] transition-colors duration-150",children:e.name}),e.transport&&"connected"===u&&(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60 font-mono",children:e.transport})]}),(0,r.jsx)("span",{className:`text-2xs px-2 py-0.5 rounded-full font-medium shrink-0 select-none ${y}`,children:j})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 pt-2.5 border-t border-border/40",children:[n&&(0,r.jsx)(J,{icon:(0,r.jsx)(f.A,{size:11,"aria-hidden":"true"}),value:x,label:t.colMcp}),(0,r.jsx)(J,{icon:(0,r.jsx)(g.A,{size:11,"aria-hidden":"true"}),value:h,label:t.colSkills}),(0,r.jsx)("span",{className:"flex-1 min-w-[4px]"}),b&&(0,r.jsxs)("span",{className:"flex items-center gap-1 text-[var(--success)]",title:t.runtimeActive,children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)] animate-pulse","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-2xs font-medium",children:t.runtimeActive})]})]})]})}function J({icon:e,value:t,label:s}){return(0,r.jsxs)("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded-md ${t>0?"bg-muted/40":""}`,title:s,"aria-label":`${s}: ${t}`,children:[(0,r.jsx)("span",{className:t>0?"text-muted-foreground":"text-muted-foreground/30",children:e}),(0,r.jsx)("span",{className:`tabular-nums text-xs ${t>0?"text-foreground font-medium":"text-muted-foreground/40"}`,children:t})]})}var V=s(67885),Y=s(65264);function Q({copy:e,mcp:t,buckets:s,copyState:n,onCopySnippet:i}){let[l,o]=(0,a.useState)("byServer"),[d,c]=(0,a.useState)(""),[u,x]=(0,a.useState)("all"),[p,g]=(0,a.useState)("all"),[h,b]=(0,a.useState)(null),[v,j]=(0,a.useState)(null),y=(0,a.useMemo)(()=>(0,m.gJ)(t.agents),[t.agents]),N=(0,a.useMemo)(()=>(0,m.gJ)((0,m.fH)(t.agents,{query:d,status:u,transport:p})),[t.agents,d,u,p]),k=(0,a.useMemo)(()=>(0,m.HL)(t.agents),[t.agents]),w=(0,a.useMemo)(()=>{let e=d.trim().toLowerCase();return e?k.filter(t=>t.serverName.toLowerCase().includes(e)):k},[k,d]);async function S(e){b(`reconnect:${e.key}`);try{let s="project"===e.scope?"project":"global",r="http"===e.transport?"http":"stdio";await t.installAgent(e.key,{scope:s,transport:r}),await t.refresh()}catch(e){console.error("[mcp] reconnect failed",e)}finally{b(null)}}async function C(e){b(`install:${e}`);try{await t.installAgent(e,{scope:"global",transport:"stdio"}),await t.refresh()}catch(e){console.error("[mcp] install mindos failed",e)}finally{b(null)}}async function z(){if(null!==h||0===N.length)return;b("bulk"),j(e.bulkRunning);let s=[];for(let e of N){let r="project"===e.scope?"project":"global",a="http"===e.transport?"http":"stdio",n=await t.installAgent(e.key,{scope:r,transport:a});s.push({agentKey:e.key,ok:n})}await t.refresh();let r=(0,m.xJ)(s);j(e.bulkSummary(r.succeeded,r.failed)),b(null)}let M="refresh"===h;return(0,r.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":e.title,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(f.A,{size:13,className:"text-[var(--amber)]","aria-hidden":"true"})}),e.title]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{b("refresh"),t.refresh().finally(()=>b(null))},disabled:M,"aria-label":e.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,r.jsx)(V.A,{size:13,className:M?"animate-spin":""}),e.refresh]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":e.title,children:[(0,r.jsx)(A.KF,{active:"byServer"===l,label:e.tabs.byServer,onClick:()=>o("byServer")}),(0,r.jsx)(A.KF,{active:"byAgent"===l,label:e.tabs.byAgent,onClick:()=>o("byAgent")})]})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,r.jsx)(A.md,{tone:"ok",label:e.filters.connected,count:s.connected.length}),(0,r.jsx)(A.md,{tone:"warn",label:e.filters.detected,count:s.detected.length}),s.notFound.length>0&&(0,r.jsx)(A.md,{tone:"neutral",label:e.filters.notFound,count:s.notFound.length}),(0,r.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,r.jsx)(A.md,{tone:t.status?.running?"ok":"neutral",label:e.mcpServerLabel,count:+!!t.status?.running})]}),!t.status?.running&&(0,r.jsx)("div",{className:"mt-2 pt-2 border-t border-border/60",role:"alert",children:(0,r.jsxs)("p",{className:"text-xs text-destructive flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-destructive shrink-0","aria-hidden":"true"}),e.riskMcpStopped]})})]}),(0,r.jsx)(A.DO,{value:d,onChange:c,placeholder:"byAgent"===l?e.searchPlaceholder:e.searchServersPlaceholder,ariaLabel:e.searchPlaceholder,icon:$.A}),"byAgent"===l?(0,r.jsx)(G,{copy:e,agents:N,busyAction:h,copyState:n,bulkMessage:v,statusFilter:u,transportFilter:p,onStatusFilter:x,onTransportFilter:g,onCopySnippet:i,onReconnect:S,onInstallMindos:C,onBulkReconnect:z}):(0,r.jsx)(ee,{copy:e,servers:w,allAgents:y,busyAction:h,onInstallMindos:C,onReconnect:S})]})}function G({copy:e,agents:t,busyAction:s,copyState:a,bulkMessage:n,statusFilter:i,transportFilter:l,onStatusFilter:o,onTransportFilter:d,onCopySnippet:c,onReconnect:u,onInstallMindos:x,onBulkReconnect:g}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsxs)("div",{role:"group","aria-label":e.table.status,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(A.KF,{active:"all"===i,label:e.filters.all,onClick:()=>o("all")}),(0,r.jsx)(A.KF,{active:"connected"===i,label:e.filters.connected,onClick:()=>o("connected")}),(0,r.jsx)(A.KF,{active:"detected"===i,label:e.filters.detected,onClick:()=>o("detected")}),(0,r.jsx)(A.KF,{active:"notFound"===i,label:e.filters.notFound,onClick:()=>o("notFound")})]}),(0,r.jsxs)("div",{role:"group","aria-label":e.table.transport,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(A.KF,{active:"all"===l,label:e.transportFilters.all,onClick:()=>d("all")}),(0,r.jsx)(A.KF,{active:"stdio"===l,label:e.transportFilters.stdio,onClick:()=>d("stdio")}),(0,r.jsx)(A.KF,{active:"http"===l,label:e.transportFilters.http,onClick:()=>d("http")}),(0,r.jsx)(A.KF,{active:"other"===l,label:e.transportFilters.other,onClick:()=>d("other")})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)(A.rA,{onClick:()=>void g(),disabled:null!==s||0===t.length,busy:"bulk"===s,label:e.bulkReconnectFiltered}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:e.resultCount(t.length)}),(0,r.jsx)(A.Mv,{message:n})]}),0===t.length?(0,r.jsx)(A.pp,{message:e.emptyState}):(0,r.jsx)("div",{className:"space-y-2",children:t.map(t=>{let n=(0,m.yv)(t),i=t.configuredMcpServers??[],l=(t.installedSkillNames??[]).length;return(0,r.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"===n?"border-l-2 border-l-[var(--amber)] border-border":"notFound"===n?"border-l-2 border-l-error border-border":"border-border"}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 p-3",children:[(0,r.jsx)(A.lx,{name:t.name,status:n}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(p(),{href:`/agents/${encodeURIComponent(t.key)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:t.name}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground font-mono shrink-0",children:t.transport??t.preferredTransport}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"connected"===n?"bg-muted text-muted-foreground":"detected"===n?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-error/10 text-error"}`,children:e.status[n]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,r.jsxs)("span",{className:"tabular-nums",children:[i.length," MCP"]}),(0,r.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,r.jsxs)("span",{className:"tabular-nums",children:[l," skills"]})]})]}),(0,r.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,r.jsx)(A.rA,{onClick:()=>void c(t.key),disabled:!1,busy:!1,label:a===t.key?e.actions.copied:e.actions.copySnippet}),t.installed?(0,r.jsx)(A.rA,{onClick:()=>void u(t),disabled:null!==s,busy:s===`reconnect:${t.key}`,label:e.actions.reconnect}):(0,r.jsx)(A.rA,{onClick:()=>void x(t.key),disabled:null!==s,busy:s===`install:${t.key}`,label:e.installMindos,variant:"primary"}),!t.installed&&(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60",children:"or CLI Skill"})]})]}),i.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-1 px-3 pb-3 ml-12",children:i.map(e=>(0,r.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,r.jsx)("span",{className:"w-1 h-1 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),e]},e))})]},t.key)})})]})}function ee({copy:e,servers:t,allAgents:s,busyAction:n,onInstallMindos:i,onReconnect:l}){let[o,d]=(0,a.useState)(null),[c,u]=(0,a.useState)(null),[x,g]=(0,a.useState)(null),[h,b]=(0,a.useState)(null),[v,j]=(0,a.useState)({}),y=(0,a.useCallback)(async(e,t)=>{d(null),await i(e)},[i]),N=(0,a.useCallback)(async()=>{if(!c)return;let{agentKey:t}=c;u(null);let r=s.find(e=>e.key===t),a=r?.scope==="project"?"project":"global";try{await (0,Y.n)("/api/mcp/uninstall",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agents:[{key:t,scope:a}]})}),g(e.removeSuccess??"Removed. Restart your agent to apply.")}catch{g(e.removeFailed??"Failed to remove. Try editing the config file manually.")}setTimeout(()=>g(null),4e3)},[c,s,e]),k=(0,a.useCallback)(async(t,s)=>{b(t),j(s=>({...s,[t]:e.reconnectAllRunning}));let r=0,a=0;for(let e of s)try{await l(e),r++}catch{a++}j(s=>({...s,[t]:e.reconnectAllDone(r,a)})),b(null),setTimeout(()=>j(e=>{let s={...e};return delete s[t],s}),4e3)},[e,l]);return 0===t.length?(0,r.jsx)(A.pp,{message:e.crossAgentServersEmpty}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("p",{className:"text-2xs text-muted-foreground tabular-nums",children:e.resultCount(t.length)}),x&&(0,r.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:x}),t.map(t=>{let a=t.agents.map(e=>s.find(t=>t.name===e)).filter(Boolean),i=t.agents.filter(e=>!a.some(t=>t.name===e)),l=s.filter(e=>!t.agents.includes(e.name)),c=a.filter(e=>"connected"===(0,m.yv)(e)).length,x=a.filter(e=>"detected"===(0,m.yv)(e)).length,g=a.length-c-x+i.length;return(0,r.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,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,r.jsx)("div",{className:"w-7 h-7 rounded-lg bg-[var(--amber)]/[0.08] flex items-center justify-center shrink-0",children:(0,r.jsx)(f.A,{size:13,className:"text-[var(--amber)]","aria-hidden":"true"})}),(0,r.jsx)("span",{className:"text-sm font-semibold text-foreground truncate",children:t.serverName})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[a.length>0&&(0,r.jsx)(A.rA,{onClick:()=>void k(t.serverName,a),disabled:null!==h||null!==n,busy:h===t.serverName,label:e.reconnectAllInServer,busyLabel:e.reconnectAllRunning}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(A.ZC,{onClick:()=>d(o===t.serverName?null:t.serverName),label:e.addAgent,size:"sm"}),(0,r.jsx)(A.BK,{open:o===t.serverName,agents:l.map(e=>({key:e.key,name:e.name})),emptyLabel:e.noAvailableAgents,onSelect:e=>void y(e,t.serverName),onClose:()=>d(null)})]})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:[(0,r.jsx)("span",{className:"tabular-nums",children:e.serverAgentCount(t.agents.length)}),c>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),c]}),x>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),x]}),g>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),g]})]}),v[t.serverName]&&(0,r.jsx)("p",{role:"status",className:"text-2xs text-muted-foreground mb-2 animate-in fade-in duration-200",children:v[t.serverName]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[a.map(e=>{let s=(0,m.yv)(e);return(0,r.jsx)(p(),{href:`/agents/${encodeURIComponent(e.key)}`,className:"cursor-pointer",children:(0,r.jsx)(A.lx,{name:e.name,status:s,onRemove:()=>u({agentKey:e.key,agentName:e.name,serverName:t.serverName})})},e.key)}),i.map(e=>(0,r.jsx)(A.lx,{name:e,status:"notFound"},e))]})]},t.serverName)})]}),(0,r.jsx)(A.TM,{open:null!==c,title:e.confirmRemoveTitle,message:c?e.confirmRemoveMessage(c.agentName,c.serverName):"",confirmLabel:e.removeFromServer,cancelLabel:e.cancel,onConfirm:N,onCancel:()=>u(null),variant:"destructive"})]})}var et=s(58626),es=s(69527),er=s(45149),ea=s(98327);function en({copy:e,agents:t,skills:s,crossAgentSkills:n,query:i,onToggleSkill:l,onOpenDetail:o}){let d=i.trim().toLowerCase(),c=(0,a.useMemo)(()=>d?t.filter(e=>!!`${e.name} ${e.key}`.toLowerCase().includes(d)||(e.installedSkillNames??[]).some(e=>e.toLowerCase().includes(d))):t,[t,d]),u=(0,a.useMemo)(()=>d?s.filter(e=>e.name.toLowerCase().includes(d)||e.description.toLowerCase().includes(d)):s,[s,d]);return 0===c.length?(0,r.jsx)(A.pp,{message:e.noAgentsYet}):(0,r.jsx)("div",{className:"space-y-3",children:c.map(t=>{let s=(0,m.yv)(t),a=(t.installedSkillNames??[]).sort(),n=t.configuredMcpServers??[],i=(t.present?u:[]).slice().sort((e,t)=>e.enabled!==t.enabled?e.enabled?-1:1:e.name.localeCompare(t.name)),d=a.length+i.length;return(0,r.jsx)(ei,{agentKey:t.key,name:t.name,status:s,skillMode:t.skillMode,mcpCount:n.length,totalSkills:d,nativeSkills:a,mindosSkills:i,copy:e,onToggleSkill:l,onOpenDetail:o},t.key)})})}function ei({agentKey:e,name:t,status:s,skillMode:n,mcpCount:i,totalSkills:l,nativeSkills:o,mindosSkills:d,copy:c,onToggleSkill:u,onOpenDetail:x}){let[h,b]=(0,a.useState)(!1),f=o.length>6,v=h?o:o.slice(0,6);return(0,r.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,r.jsxs)("div",{className:"flex items-center gap-3 p-4 pb-0",children:[(0,r.jsx)(A.lx,{name:t,status:s}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(p(),{href:`/agents/${encodeURIComponent(e)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:t}),n&&(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"universal"===n?"bg-muted text-muted-foreground":"additional"===n?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-muted text-muted-foreground"}`,children:n})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,r.jsx)("span",{className:"tabular-nums",children:c.quickStatsMcp(i)}),(0,r.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,r.jsx)("span",{className:"tabular-nums",children:c.quickStatsSkills(l)})]})]})]}),(0,r.jsxs)("div",{className:"p-4 pt-3 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider",children:[c.agentNativeSkills," ",(0,r.jsxs)("span",{className:"tabular-nums",children:["(",o.length,")"]})]}),f&&(0,r.jsx)("button",{type:"button",onClick:()=>b(!h),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:h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.A,{size:12}),c.collapseNative]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ea.A,{size:12}),c.showAllNative(o.length)]})})]}),0===o.length?(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/60",children:"—"}):(0,r.jsxs)("div",{className:"space-y-0.5 max-h-[200px] overflow-y-auto",children:[v.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>x(e),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,r.jsx)(g.A,{size:12,className:"shrink-0 text-muted-foreground/50","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-xs text-foreground truncate hover:text-[var(--amber)] transition-colors duration-150",children:e})]},e)),!h&&o.length>6&&(0,r.jsxs)("button",{type:"button",onClick:()=>b(!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:["+",o.length-6]})]})]}),d.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-1.5",children:[c.agentMindosSkills," ",(0,r.jsxs)("span",{className:"tabular-nums",children:["(",d.filter(e=>e.enabled).length,"/",d.length,")"]})]}),(0,r.jsx)("div",{className:"space-y-0.5 max-h-[240px] overflow-y-auto",children:d.map(e=>(0,r.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,r.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,r.jsx)(g.A,{size:12,className:`shrink-0 ${e.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>x(e.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:e.name}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground shrink-0",children:c.groupLabels[(0,m.$2)(e)]})]}),(0,r.jsx)(es.lM,{size:"sm",checked:e.enabled,onChange:t=>void u(e.name,t)})]},e.name))})]})]})]})}function el({copy:e,mcp:t,buckets:s}){let[n,i]=(0,a.useState)("bySkill"),[l,o]=(0,a.useState)(""),[d,c]=(0,a.useState)("all"),[u,x]=(0,a.useState)("all"),[p,h]=(0,a.useState)("all"),[b,f]=(0,a.useState)(!1),[v,j]=(0,a.useState)(null),[y,N]=(0,a.useState)(null),k=(0,a.useMemo)(()=>(0,m.x3)(t.agents),[t.agents]),w=(0,a.useMemo)(()=>(0,m.gJ)(t.agents),[t.agents]),S=(0,a.useMemo)(()=>(0,m.ag)(t.skills,k),[t.skills,k]),C=(0,a.useMemo)(()=>t.skills.filter(e=>e.enabled).length,[t.skills]),z=(0,a.useMemo)(()=>t.skills.filter(e=>!e.enabled).length,[t.skills]),M=(0,a.useMemo)(()=>(0,m.IK)(t.skills).size,[t.skills]),T=(0,a.useMemo)(()=>S.filter(e=>"native"===e.kind).length,[S]),E=(0,a.useMemo)(()=>(0,m.Ri)(S,{query:l,source:d,status:u,capability:p}),[S,l,d,u,p]),D=(0,a.useMemo)(()=>(0,m.GU)(E),[E]),F=(0,a.useMemo)(()=>["research","coding","docs","ops","memory"].map(t=>({key:t,label:e.groupLabels[t]})),[e.groupLabels]),R=(0,a.useMemo)(()=>y?S.find(e=>e.name===y)??null:null,[y,S]),_=(0,a.useMemo)(()=>y?t.skills.find(e=>e.name===y)??null:null,[y,t.skills]),L=(0,a.useCallback)(async e=>{await (0,Y.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:e})}),window.dispatchEvent(new Event("mindos:skills-changed")),await t.refresh()},[t]),P=async s=>{if(b)return;let r=(0,m.G9)(E,s);if(0===r.length)return void j(e.bulkNoChanges);f(!0),j(e.bulkRunning);let a=[];for(let e of r){let r=await t.toggleSkill(e,s);a.push({skillName:e,ok:r})}let n=(0,m.xR)(a);j(0===n.failed?e.bulkAllSucceeded(n.succeeded):e.bulkPartialFailed(n.succeeded,n.failed)),f(!1)};return(0,r.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":e.title,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(g.A,{size:13,className:"text-[var(--amber)]","aria-hidden":"true"})}),e.title]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":e.title,children:[(0,r.jsx)(A.KF,{active:"bySkill"===n,label:e.tabs.bySkill,onClick:()=>i("bySkill")}),(0,r.jsx)(A.KF,{active:"byAgent"===n,label:e.tabs.byAgent,onClick:()=>i("byAgent")})]})]}),(0,r.jsx)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),e.summaryEnabled(C)]}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),e.summaryDisabled(z)]}),M>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[var(--amber)]",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),e.summaryAttention(M)]}),T>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),e.summaryNative(T)]})]})]})}),(0,r.jsx)(A.DO,{value:l,onChange:o,placeholder:e.searchPlaceholder,ariaLabel:e.searchPlaceholder,icon:$.A}),"bySkill"===n?(0,r.jsx)(eo,{copy:e,filtered:E,grouped:D,allAgents:w,source:d,status:u,capability:p,capabilityOptions:F,bulkRunning:b,bulkMessage:v,onSourceChange:c,onStatusChange:x,onCapabilityChange:h,onBulkToggle:P,onToggleSkill:t.toggleSkill,onRefresh:t.refresh,onOpenDetail:N}):(0,r.jsx)(en,{copy:e,agents:w,skills:t.skills,crossAgentSkills:k,query:l,onToggleSkill:t.toggleSkill,onOpenDetail:N}),(0,r.jsx)(er.A,{open:null!==y,skillName:y,skill:_,agentNames:R?.agents??[],isNative:R?.kind==="native",nativeSourcePath:R?.kind==="native"&&R.agents.length>0?t.agents.find(e=>e.name===R.agents[0])?.installedSkillSourcePath:void 0,copy:e.skillPopover,onClose:()=>N(null),onToggle:t.toggleSkill,onDelete:L,onRefresh:t.refresh,allAgentNames:t.agents.filter(e=>e.present&&e.installed).map(e=>e.name)})]})}function eo({copy:e,filtered:t,grouped:s,allAgents:n,source:i,status:l,capability:o,capabilityOptions:d,bulkRunning:c,bulkMessage:u,onSourceChange:m,onStatusChange:x,onCapabilityChange:p,onBulkToggle:g,onToggleSkill:h,onRefresh:b,onOpenDetail:f}){let[v,j]=(0,a.useState)(null),[y,N]=(0,a.useState)(null),[k,w]=(0,a.useState)(null),[S,C]=(0,a.useState)(null),[z,M]=(0,a.useState)(null),T=(0,a.useCallback)(()=>{j(null),C(e.manualSkillHint),setTimeout(()=>C(null),4e3)},[e.manualSkillHint]),E=(0,a.useCallback)(async t=>{N(null),M(t);try{await (0,Y.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:t})}),C(e.skillDeleted),window.dispatchEvent(new Event("mindos:skills-changed")),await b()}catch{C(e.skillDeleteFailed)}finally{M(null),setTimeout(()=>C(null),3e3)}},[e.skillDeleted,e.skillDeleteFailed,b]),D=(0,a.useMemo)(()=>{let e=[];for(let[t,r]of Object.entries(s)){if(0===r.length)continue;let s=[...r].sort((e,t)=>e.kind!==t.kind?"mindos"===e.kind?-1:1:e.enabled!==t.enabled?e.enabled?-1:1:e.name.localeCompare(t.name));e.push([t,s])}return e},[s]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.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,r.jsx)(A.KF,{active:"all"===i,label:e.sourceAll,onClick:()=>m("all")}),(0,r.jsx)(A.KF,{active:"builtin"===i,label:e.sourceBuiltin,onClick:()=>m("builtin")}),(0,r.jsx)(A.KF,{active:"user"===i,label:e.sourceUser,onClick:()=>m("user")}),(0,r.jsx)(A.KF,{active:"native"===i,label:e.sourceNative,onClick:()=>m("native")})]}),(0,r.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,r.jsx)(A.KF,{active:"all"===l,label:e.statusAll,onClick:()=>x("all")}),(0,r.jsx)(A.KF,{active:"enabled"===l,label:e.statusEnabled,onClick:()=>x("enabled")}),(0,r.jsx)(A.KF,{active:"disabled"===l,label:e.statusDisabled,onClick:()=>x("disabled")}),(0,r.jsx)(A.KF,{active:"attention"===l,label:e.statusAttention,onClick:()=>x("attention")})]}),(0,r.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,r.jsx)(A.KF,{active:"all"===o,label:e.capabilityAll,onClick:()=>p("all")}),d.map(e=>(0,r.jsx)(A.KF,{active:o===e.key,label:e.label,onClick:()=>p(e.key)},e.key))]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)(A.rA,{onClick:()=>void g(!0),disabled:c,busy:c,label:e.bulkEnableFiltered}),(0,r.jsx)(A.rA,{onClick:()=>void g(!1),disabled:c,busy:!1,label:e.bulkDisableFiltered}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:e.resultCount(t.length)}),(0,r.jsx)(A.Mv,{message:u})]}),S&&(0,r.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:S}),0===D.length?(0,r.jsx)(A.pp,{message:e.noSkillsMatchFilter}):(0,r.jsx)(ed,{sortedGrouped:D,allAgents:n,copy:e,pickerSkill:k,deleteBusy:z,onOpenDetail:f,onToggleSkill:h,setPickerSkill:w,setHintMessage:C,setConfirmSkillDelete:N,setConfirmAgentRemove:j}),(0,r.jsx)(A.TM,{open:null!==v,title:e.confirmRemoveAgentTitle,message:v?e.confirmRemoveAgentMessage(v.agentName,v.skillName):"",confirmLabel:e.removeAgentFromSkill,cancelLabel:e.cancelSkillAction,onConfirm:T,onCancel:()=>j(null),variant:"destructive"}),(0,r.jsx)(A.TM,{open:null!==y,title:e.confirmDeleteSkillTitle,message:y?e.confirmDeleteSkillMessage(y):"",confirmLabel:e.skillDeleteAction,cancelLabel:e.cancelSkillAction,onConfirm:()=>y&&void E(y),onCancel:()=>N(null),variant:"destructive"})]})}function ed({sortedGrouped:e,allAgents:t,copy:s,pickerSkill:n,deleteBusy:i,onOpenDetail:l,onToggleSkill:o,setPickerSkill:d,setHintMessage:c,setConfirmSkillDelete:u,setConfirmAgentRemove:m}){let x=(0,a.useRef)(null),p=(0,a.useMemo)(()=>{let t=[];for(let[s,r]of e)t.push({type:"header",groupKey:s,count:r.length}),r.forEach((e,s)=>{t.push({type:"card",skill:e,isLast:s===r.length-1})});return t},[e]),h=(0,a.useCallback)((e,a)=>{if("header"===a.type)return(0,r.jsxs)("div",{className:"flex items-center gap-2 pt-3 pb-2.5",children:[(0,r.jsx)("span",{className:"w-1 h-4 rounded-full bg-[var(--amber)]/40","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:s.groupLabels[a.groupKey]}),(0,r.jsxs)("span",{className:"text-2xs tabular-nums text-muted-foreground/50 font-medium",children:["(",a.count,")"]})]});let{skill:x}=a,p=t.filter(e=>!x.agents.includes(e.name)).map(e=>({key:e.key,name:e.name})),h="mindos"===x.kind&&"user"===x.source;return(0,r.jsx)("div",{className:a.isLast?"pb-0":"pb-3",children:(0,r.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,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)(g.A,{size:14,className:`shrink-0 ${x.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>l(x.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:x.name}),(0,r.jsx)("span",{className:`text-2xs shrink-0 px-1.5 py-0.5 rounded ${"native"===x.kind||"builtin"===x.source?"bg-muted text-muted-foreground":"bg-[var(--amber-dim)] text-[var(--amber-text)]"}`,children:"native"===x.kind?s.sourceNative:"builtin"===x.source?s.sourceBuiltin:s.sourceUser})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[h&&(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),u(x.name)},disabled:i===x.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":`${s.skillDeleteAction} ${x.name}`,children:(0,r.jsx)(R.A,{size:14})}),"mindos"===x.kind?(0,r.jsx)(es.lM,{size:"sm",checked:x.enabled,onChange:e=>void o(x.name,e)}):(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60 select-none","aria-label":"read-only",children:"—"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(A.ZC,{onClick:()=>d(n===x.name?null:x.name),label:s.addAgentToSkill,size:"sm"}),(0,r.jsx)(A.BK,{open:n===x.name,agents:p,emptyLabel:s.noAvailableAgentsForSkill,onSelect:()=>{d(null),c(s.manualSkillHint),setTimeout(()=>c(null),4e3)},onClose:()=>d(null)})]})]})]}),(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:(0,r.jsx)("span",{className:"tabular-nums",children:s.skillAgentCount(x.agents.length)})}),(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:x.agents.map(e=>(0,r.jsx)(A.lx,{name:e,onRemove:()=>m({agentName:e,skillName:x.name})},e))})]})})},[t,s,n,i,l,o,d,c,u,m]);return(0,r.jsx)(et.aY,{ref:x,style:{height:"calc(100vh - 340px)",minHeight:200},data:p,itemContent:h,overscan:200,increaseViewportBy:{top:100,bottom:100}})}let ec=(0,h.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 eu=s(28284),em=s(72700);let ex="mindos:acp-registry";function ep(){let[e]=(0,a.useState)(()=>(function(){try{let e=sessionStorage.getItem(ex);if(!e)return null;let t=JSON.parse(e);if("object"!=typeof t||null===t||Array.isArray(t)||!Array.isArray(t.agents)||"number"!=typeof t.ts||Date.now()-t.ts>18e5)return null;return{agents:t.agents,ts:t.ts}}catch{return null}})()),t=(0,a.useRef)(e),[s,r]=(0,a.useState)(()=>e?.agents??[]),[n,i]=(0,a.useState)(()=>!e),[l,o]=(0,a.useState)(null),[d,c]=(0,a.useState)(0),u=(0,a.useRef)(!1),m=(0,a.useCallback)(()=>{c(e=>e+1)},[]);return(0,a.useEffect)(()=>{if(t.current&&Date.now()-t.current.ts<6e5&&0===d||u.current)return;u.current=!0;let e=s.length>0;e||i(!0),o(null);let a=!1;return fetch("/api/acp/registry").then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(e=>{if(a)return;let s=e.registry?.agents??[];try{sessionStorage.setItem(ex,JSON.stringify({agents:s,ts:Date.now()}))}catch{}t.current={agents:s,ts:Date.now()},r(s)}).catch(t=>{!a&&(e||o(t.message))}).finally(()=>{u.current=!1,a||i(!1)}),()=>{a=!0,u.current=!1}},[d]),{agents:s,loading:n,error:l,retry:m}}var eg=s(7625),eh=s(26732),eb=s(71128),ef=s(78132),ev=s(39966),ej=s(46743),ey=s(52212),eN=s(76723),ek=s(80772),ew=s(28971),eS=s(48234);let eA=[{labelKey:"acpQuickReview",icon:eh.A,promptSuffix:"review the code in this project"},{labelKey:"acpQuickFix",icon:eb.A,promptSuffix:"find and fix bugs in this project"},{labelKey:"acpQuickExplain",icon:ef.A,promptSuffix:"explain the structure of this project"}];function eC(){return(0,r.jsx)("div",{className:"rounded-lg border border-border/30 bg-card/50 p-3 motion-safe:animate-pulse","aria-hidden":"true",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/60 shrink-0"}),(0,r.jsxs)("div",{className:"flex-1 space-y-1.5",children:[(0,r.jsx)("div",{className:"h-3.5 bg-muted/60 rounded w-28"}),(0,r.jsx)("div",{className:"h-2.5 bg-muted/40 rounded w-48"})]}),(0,r.jsx)("div",{className:"h-5 bg-muted/40 rounded w-10"})]})})}function ez(){let{t:e}=(0,l.Y)(),t=e.panels.agents,s=ep(),n=(0,ew.z)(),i=function(){let[e,t]=(0,a.useState)({}),[s,r]=(0,a.useState)(!0),[n,i]=(0,a.useState)(!1),[l,o]=(0,a.useState)(null),[d,c]=(0,a.useState)(0),u=(0,a.useCallback)(()=>c(e=>e+1),[]);return(0,a.useEffect)(()=>{let e=!1;return r(!0),o(null),fetch("/api/acp/config").then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(s=>{e||t(s.agents??{})}).catch(t=>{e||o(t.message)}).finally(()=>{e||r(!1)}),()=>{e=!0}},[d]),{configs:e,loading:s,saving:n,error:l,save:(0,a.useCallback)(async(e,s)=>{i(!0),o(null);try{let r=await fetch("/api/acp/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:e,config:s})});if(!r.ok)throw Error(`HTTP ${r.status}`);let a=await r.json();return t(a.agents??{}),!0}catch(e){return o(e.message),!1}finally{i(!1)}},[]),reset:(0,a.useCallback)(async e=>{i(!0),o(null);try{let s=await fetch("/api/acp/config",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:e})});if(!s.ok)throw Error(`HTTP ${s.status}`);let r=await s.json();return t(r.agents??{}),!0}catch(e){return o(e.message),!1}finally{i(!1)}},[]),refresh:u}}(),[o,d]=(0,a.useState)(!1);if(s.loading)return(0,r.jsxs)("div",{className:"space-y-2",role:"status","aria-label":t.acpLoading,children:[(0,r.jsxs)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(ec,{size:13})}),t.acpSectionTitle]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(eC,{}),(0,r.jsx)(eC,{}),(0,r.jsx)(eC,{})]}),(0,r.jsx)("p",{className:"sr-only",children:t.acpLoading})]});if(s.error)return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(ec,{size:13})}),t.acpSectionTitle]}),(0,r.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/80 p-4 text-center",role:"alert",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:t.acpLoadFailed}),(0,r.jsx)("button",{type:"button",onClick:s.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:t.acpRetry})]})]});if(0===s.agents.length)return null;let c=[],u=[];for(let e of s.agents){let t=n.installedAgents.find(t=>t.id===e.id);if(t)c.push({agent:e,info:t});else{let t=n.notInstalledAgents.find(t=>t.id===e.id);u.push({agent:e,installCmd:t?.installCmd??null,packageName:t?.packageName??e.packageName??null})}}return(0,r.jsxs)("section",{className:"space-y-3","aria-labelledby":"acp-section-title",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("h3",{id:"acp-section-title",className:"text-xs font-medium text-muted-foreground uppercase tracking-wide flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(ec,{size:13})}),t.acpSectionTitle]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>n.refresh(),disabled:n.loading,"aria-label":t.acpScan,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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:[(0,r.jsx)(V.A,{size:10,className:n.loading?"motion-safe:animate-spin":""}),t.acpScan]}),c.length>0&&(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/50",children:t.acpSectionDesc(c.length)})]})]}),n.loading?(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(eC,{}),(0,r.jsx)(eC,{})]}):c.length>0?(0,r.jsx)("ul",{role:"list",className:"space-y-2",children:c.map(({agent:e,info:t})=>(0,r.jsx)("li",{children:(0,r.jsx)(eT,{agent:e,installed:t,detectionDone:!n.loading,acpConfig:i})},e.id))}):(0,r.jsx)("div",{className:"rounded-lg border border-border/40 bg-card/30 p-4 text-center",children:(0,r.jsx)("p",{className:"text-xs text-muted-foreground/60 leading-relaxed max-w-xs mx-auto",children:t.acpNoInstalled})}),!n.loading&&u.length>0&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),"aria-expanded":o,className:"flex items-center gap-1.5 text-xs text-muted-foreground/60 hover:text-muted-foreground transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:[o?(0,r.jsx)(ev.A,{size:12}):(0,r.jsx)(y.A,{size:12}),(0,r.jsx)("span",{className:"font-medium",children:t.acpAvailableTitle}),(0,r.jsxs)("span",{className:"text-2xs",children:["(",t.acpAvailableDesc(u.length),")"]})]}),o&&(0,r.jsx)("ul",{role:"list",className:"space-y-1 motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 duration-150",children:u.map(({agent:e,installCmd:t,packageName:s})=>(0,r.jsx)("li",{children:(0,r.jsx)(eE,{agent:e,installCmd:t,packageName:s,detectionDone:!n.loading,onInstalled:n.refresh})},e.id))})]})]})}let eM={npx:"bg-muted text-muted-foreground",binary:"bg-muted text-muted-foreground",uvx:"bg-muted text-muted-foreground",stdio:"bg-muted text-muted-foreground"};function eT({agent:e,installed:t,detectionDone:s,acpConfig:n}){let{t:i}=(0,l.Y)(),o=i.panels.agents,[d,c]=(0,a.useState)(!1),[u,m]=(0,a.useState)(""),[x,p]=(0,a.useState)(""),[h,b]=(0,a.useState)("idle"),f={npx:o.acpTransportNpx,binary:o.acpTransportBinary,uvx:o.acpTransportUvx,stdio:o.acpTransportStdio},v=!!t,j=t?.resolvedCommand,y=j?.source==="user-override"?o.acpConfigSourceUser:j?.source==="descriptor"?o.acpConfigSourceBuiltin:o.acpConfigSourceRegistry,N=(0,a.useCallback)(()=>{!d&&j&&(m(j.cmd),p(j.args.join(" "))),c(e=>!e),b("idle")},[d,j]),k=(0,a.useCallback)(async()=>{let t=x.trim()?x.trim().split(/\s+/):[];await n.save(e.id,{command:u.trim()||void 0,args:t.length>0?t:void 0})&&(b("saved"),setTimeout(()=>b("idle"),3e3))},[n,e.id,u,x]),w=(0,a.useCallback)(async()=>{await n.reset(e.id),b("idle"),c(!1)},[n,e.id]);return(0,r.jsxs)("div",{className:"rounded-lg border border-[var(--amber)]/20 bg-card shadow-sm hover:border-[var(--amber)]/40 transition-colors duration-150 p-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[var(--amber)]/10 flex items-center justify-center shrink-0",children:(0,r.jsx)(ec,{size:14,className:"text-[var(--amber)]"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("p",{className:"text-base font-semibold text-foreground truncate leading-tight",children:e.name}),e.version&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/40 shrink-0",children:["v",e.version]})]}),e.description&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 truncate mt-0.5",children:e.description})]}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${eM[e.transport]??eM.stdio}`,children:f[e.transport]??e.transport}),s&&(0,r.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 bg-[var(--success)]/15 text-[var(--success)]",children:o.acpReady}),(0,r.jsx)("button",{type:"button",onClick:N,"aria-label":o.acpConfigToggle,"aria-expanded":d,className:"p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,r.jsx)(ej.A,{size:14})}),(0,r.jsxs)("button",{type:"button",onClick:()=>{(0,eS.NH)("","user",{id:e.id,name:e.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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer",children:[(0,r.jsx)(g.A,{size:10}),o.acpUseAgent]})]}),d&&j&&(0,r.jsxs)("div",{className:"mt-3 pt-3 border-t border-border/40 space-y-3 bg-muted/10 -mx-4 px-4 pb-4 rounded-b-lg",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:o.acpConfigCommand}),(0,r.jsx)("input",{type:"text",value:u,onChange:e=>{m(e.target.value),b("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2.5 py-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:j.cmd})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:o.acpConfigArgs}),(0,r.jsx)("input",{type:"text",value:x,onChange:e=>{p(e.target.value),b("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2.5 py-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:j.args.join(" ")})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-2xs text-muted-foreground/60",children:[(0,r.jsxs)("span",{children:[o.acpConfigSource,":"]}),(0,r.jsx)("span",{className:`px-1.5 py-0.5 rounded ${"user-override"===j.source?"bg-[var(--amber)]/15 text-[var(--amber)]":"bg-muted text-muted-foreground"}`,children:y}),(0,r.jsx)("span",{className:"text-muted-foreground/30",children:"|"}),(0,r.jsxs)("span",{children:[o.acpConfigPath,": ",(0,r.jsx)("span",{className:"font-mono",children:t?.binaryPath})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[n.configs[e.id]&&(0,r.jsxs)("button",{type:"button",onClick:w,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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(ey.A,{size:10}),o.acpConfigReset]}),(0,r.jsx)("button",{type:"button",onClick:k,disabled:n.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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:"saved"===h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eN.A,{size:10})," ",o.acpConfigSaved]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ek.A,{size:10})," ",o.acpConfigSave]})})]})]}),v&&!d&&(0,r.jsx)("div",{className:"mt-3 pt-2.5 border-t border-border/30 flex items-center gap-1.5 flex-wrap",children:eA.map(t=>{let s=t.icon;return(0,r.jsxs)("button",{type:"button",onClick:()=>{(0,eS.NH)(t.promptSuffix,"user",{id:e.id,name:e.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-transparent hover:border-border/50 transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(s,{size:10}),o[t.labelKey]]},t.labelKey)})})]})}function eE({agent:e,installCmd:t}){let{t:s}=(0,l.Y)(),n=s.panels.agents,[i,o]=(0,a.useState)(!1),d=t||(e.packageName?`npm install -g ${e.packageName}`:null),c=(0,a.useCallback)(()=>{d&&navigator.clipboard.writeText(d).then(()=>{o(!0),setTimeout(()=>o(!1),3e3)}).catch(()=>{})},[d]);return(0,r.jsx)("div",{className:"group rounded-md border border-border/40 bg-card/40 px-3 py-2 hover:border-border/60 transition-colors duration-150",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/30 flex items-center justify-center shrink-0",children:(0,r.jsx)(ec,{size:11,className:"text-muted-foreground/40"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.name}),e.description&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/40 truncate",children:e.description})]}),d&&(0,r.jsx)("button",{type:"button",onClick:c,"aria-label":`${n.acpCopyCmd}: ${d}`,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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring shrink-0",title:d,children:i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eN.A,{size:10})," ",n.acpCopied]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eh.A,{size:10})," ",n.acpCopyCmd]})})]})})}function eD({agents:e,discovering:t,error:s,onDiscover:n,onRemove:i}){let{t:o}=(0,l.Y)(),d=o.panels.agents,[c,u]=(0,a.useState)(!1),{delegations:m}=function(e){let[t,s]=(0,a.useState)([]),[r,n]=(0,a.useState)(!1),i=(0,a.useRef)(!0),l=(0,a.useCallback)(async()=>{n(!0);try{let e=await fetch("/api/a2a/delegations");if(!e.ok)return;let t=await e.json();i.current&&s(t.delegations??[])}catch{}finally{i.current&&n(!1)}},[]);return(0,a.useEffect)(()=>(i.current=!0,()=>{i.current=!1}),[]),(0,a.useEffect)(()=>{if(!e)return;l();let t=setInterval(l,5e3);return()=>clearInterval(t)},[e,l]),{delegations:t,loading:r,refresh:l}}(!0),x=ep(),p=0===e.length&&!x.loading&&0===x.agents.length;return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("h2",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(v.A,{size:13})}),d.a2aTabTitle]}),(0,r.jsxs)("button",{type:"button",onClick:()=>u(!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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(v.A,{size:12}),d.a2aDiscover]})]}),p?(0,r.jsx)(eF,{onDiscover:()=>u(!0),onBrowseRegistry:x.retry}):(0,r.jsxs)(r.Fragment,{children:[0===e.length?(0,r.jsxs)("div",{className:"rounded-lg border border-border/40 bg-card/30 p-8 text-center",children:[(0,r.jsx)("div",{className:"w-12 h-12 rounded-xl bg-muted/40 flex items-center justify-center mx-auto mb-3",children:(0,r.jsx)(v.A,{size:20,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,r.jsx)("p",{className:"text-sm font-medium text-muted-foreground mb-1",children:d.a2aTabEmpty}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/60 leading-relaxed max-w-xs mx-auto",children:d.a2aTabEmptyHint})]}):(0,r.jsx)("ul",{role:"list",className:"space-y-2",children:e.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(eL,{agent:e,onRemove:i,removeCopy:d.a2aRemoveAgent,skillsCopy:d.a2aSkills})},e.id))}),(0,r.jsx)(ez,{}),(0,r.jsx)(eR,{delegations:m})]}),(0,r.jsx)(eg.A,{open:c,onClose:()=>u(!1),onDiscover:n,discovering:t,error:s})]})}function eF({onDiscover:e,onBrowseRegistry:t}){let{t:s}=(0,l.Y)(),a=s.panels.agents;return(0,r.jsxs)("div",{className:"rounded-lg border border-border/40 bg-card/30 p-10 text-center",children:[(0,r.jsx)("div",{className:"w-14 h-14 rounded-xl bg-muted/40 flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)(ec,{size:22,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,r.jsx)("p",{className:"text-base font-semibold text-foreground mb-1",children:a.networkEmptyTitle}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/60 leading-relaxed max-w-sm mx-auto mb-6",children:a.networkEmptyDesc}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,r.jsxs)("button",{type:"button",onClick:e,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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(v.A,{size:12}),a.networkDiscoverBtn]}),(0,r.jsxs)("button",{type:"button",onClick:t,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 duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(ec,{size:12}),a.networkBrowseBtn]})]})]})}function eR({delegations:e}){let{t}=(0,l.Y)(),s=t.panels.agents;return(0,r.jsxs)("section",{className:"space-y-2","aria-labelledby":"delegation-section-title",children:[(0,r.jsxs)("h3",{id:"delegation-section-title",className:"text-xs font-medium text-muted-foreground uppercase tracking-wide flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(E.A,{size:13})}),s.a2aDelegations]}),0===e.length?(0,r.jsx)("p",{className:"text-xs text-muted-foreground/50 py-3",children:s.a2aDelegationsEmpty}):(0,r.jsx)("ul",{role:"list",className:"space-y-1.5",children:e.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(e_,{record:e})},e.id))})]})}let e$={pending:"bg-muted text-muted-foreground",completed:"bg-[var(--success)]/15 text-[var(--success)]",failed:"bg-[var(--error)]/15 text-[var(--error)]"};function e_({record:e}){let{t}=(0,l.Y)(),s=t.panels.agents,a={pending:s.a2aDelegationPending,completed:s.a2aDelegationCompleted,failed:s.a2aDelegationFailed},n=e.completedAt?function(e,t){let s=t.getTime()-e.getTime();if(s<1e3)return`${s}ms`;let r=Math.round(s/1e3);if(r<60)return`${r}s`;let a=Math.floor(r/60),n=r%60;return n>0?`${a}m ${n}s`:`${a}m`}(new Date(e.startedAt),new Date(e.completedAt)):null;return(0,r.jsxs)("div",{className:"rounded-lg border border-border/40 bg-card/60 px-3 py-2.5 flex items-center gap-2",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-xs font-medium text-foreground truncate",children:e.agentName}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 truncate",title:e.message,children:e.message.length>60?e.message.slice(0,60)+"...":e.message})]}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${e$[e.status]}`,children:a[e.status]}),n&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/40 shrink-0 flex items-center gap-0.5",children:[(0,r.jsx)(E.A,{size:10,"aria-hidden":"true"}),n]})]})}function eL({agent:e,onRemove:t,removeCopy:s,skillsCopy:a}){let n=e.reachable?eu.A:em.A,i=e.reachable?"text-[var(--success)]":"text-muted-foreground/50";return(0,r.jsxs)("div",{className:"group rounded-lg border border-border bg-card p-4 hover:border-[var(--amber)]/30 transition-colors duration-150",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0",children:(0,r.jsx)(v.A,{size:14,className:"text-muted-foreground"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-base font-semibold text-foreground truncate leading-tight",children:e.card.name}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 truncate mt-0.5",children:e.card.description})]}),(0,r.jsx)(n,{size:13,className:i,"aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>t(e.id),className:"p-1.5 rounded-md text-muted-foreground/50 hover:text-[var(--error)] hover:bg-[var(--error)]/10 transition-colors duration-150 opacity-0 group-hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:opacity-100","aria-label":s,title:s,children:(0,r.jsx)(R.A,{size:12})})]}),e.card.skills.length>0&&(0,r.jsxs)("div",{className:"mt-3 pt-2.5 border-t border-border/30 flex items-center gap-1.5",children:[(0,r.jsx)(g.A,{size:11,className:"text-muted-foreground/40 shrink-0","aria-hidden":"true"}),(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/60",children:[a,": ",e.card.skills.length]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-1 ml-1",children:[e.card.skills.slice(0,3).map(e=>(0,r.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/60 text-muted-foreground border border-border/30",title:e.description,children:e.name},e.id)),e.card.skills.length>3&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/40",children:["+",e.card.skills.length-3]})]})]})]})}var eP=s(11235);function eO(){let[e,t]=(0,a.useState)([]),[s,n]=(0,a.useState)(!0),[i,l]=(0,a.useState)(null),o=(0,a.useCallback)(async()=>{try{n(!0);let e=await fetch("/api/acp/session");if(!e.ok)throw Error(`Failed to fetch sessions: ${e.status}`);let s=await e.json();t(s.sessions??[]),l(null)}catch(e){l(e.message)}finally{n(!1)}},[]);(0,a.useEffect)(()=>{o();let e=()=>{"visible"===document.visibilityState&&o()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[o]);let d=(0,a.useCallback)(async e=>{try{await fetch("/api/acp/session",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),t(t=>t.filter(t=>t.id!==e))}catch(e){console.error("Failed to close session:",e)}},[]);return s?(0,r.jsx)("div",{className:"space-y-3 animate-pulse",children:Array.from({length:3}).map((e,t)=>(0,r.jsx)("div",{className:"rounded-lg border border-border bg-card p-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full bg-muted"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)("div",{className:"h-4 w-32 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-3 w-48 bg-muted rounded"})]})]})},t))}):i?(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6 text-center",children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:i}),(0,r.jsx)("button",{onClick:o,className:"text-sm text-[var(--amber)] hover:underline",children:"Retry"})]}):0===e.length?(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-8 text-center",children:[(0,r.jsx)(eP.A,{size:32,className:"mx-auto mb-3 text-muted-foreground/40"}),(0,r.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:"No active sessions"}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Sessions appear here when you chat with ACP agents.",(0,r.jsx)("br",{}),"Select an agent from the Network tab and send a message to start."]})]}):(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("p",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wider",children:["Active Sessions (",e.length,")"]}),(0,r.jsx)("button",{onClick:o,className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Refresh"})]}),e.map(e=>{var t;let s;return(0,r.jsx)("div",{className:"group rounded-lg border border-border bg-card hover:border-[var(--amber)]/30 transition-colors p-3.5",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,r.jsx)("span",{className:`inline-block w-2 h-2 rounded-full ${"active"===e.state?"bg-[var(--success)]":"error"===e.state?"bg-[var(--error)]":"bg-muted-foreground/40"}`}),(0,r.jsx)("span",{className:"text-sm font-medium text-foreground truncate",children:e.agentId}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60 px-1.5 py-0.5 rounded bg-muted/40",children:e.state})]}),e.cwd&&(0,r.jsx)("p",{className:"text-xs text-muted-foreground truncate font-mono",children:e.cwd}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/60 mt-1",children:(t=e.lastActivityAt,(s=Date.now()-new Date(t).getTime())<6e4?"just now":s<36e5?`${Math.floor(s/6e4)}m ago`:s<864e5?`${Math.floor(s/36e5)}h ago`:`${Math.floor(s/864e5)}d ago`)})]}),(0,r.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,r.jsx)("button",{onClick:()=>d(e.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,r.jsx)(R.A,{size:14})})})]})},e.id)})]})}function eI({op:e,copy:t}){let s=(0,n.useRouter)(),{locale:i}=(0,l.Y)(),[o,d]=(0,a.useState)(!1),c=L(e.tool);O[c];let u=K(e.params);return(0,r.jsxs)("div",{style:{background:"var(--card)",border:"1px solid var(--border)",borderRadius:10,overflow:"hidden",marginBottom:8},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 14px",cursor:"pointer",userSelect:"none"},onClick:()=>d(e=>!e),children:[(0,r.jsx)(U,{kind:c,locale:i}),u&&(0,r.jsx)("span",{style:{fontSize:"0.72rem",color:"var(--amber)",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"pointer"},onClick:e=>{e.stopPropagation(),s.push("/view/"+u.split("/").map(encodeURIComponent).join("/"))},title:u,className:"font-display",children:u}),(0,r.jsxs)("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:8,flexShrink:0},children:[e.agentName&&(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.62rem",fontWeight:500,padding:"1px 6px",borderRadius:999,background:"var(--muted)",color:"var(--muted-foreground)",whiteSpace:"nowrap",maxWidth:120,overflow:"hidden",textOverflow:"ellipsis"},title:e.agentName,children:e.agentName.length>30?e.agentName.slice(0,30)+"...":e.agentName}),"ok"===e.result?(0,r.jsx)(M.A,{size:13,style:{color:"var(--success)"}}):(0,r.jsx)(T.A,{size:13,style:{color:"var(--error)"}}),(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.68rem",color:"var(--muted-foreground)",opacity:.6},title:H(e.ts),children:X(e.ts)}),(0,r.jsx)(y.A,{size:12,style:{color:"var(--muted-foreground)",transform:o?"rotate(180deg)":"none",transition:"transform .15s"}})]})]}),o&&(0,r.jsxs)("div",{style:{borderTop:"1px solid var(--border)",padding:"10px 14px",background:"var(--background)"},children:[(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:8*!!e.message},children:Object.entries(e.params).map(([e,t])=>(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.68rem",color:"var(--muted-foreground)",opacity:.7,flexShrink:0,minWidth:80},children:e}),(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.72rem",color:"var(--foreground)",wordBreak:"break-all",lineHeight:1.5},children:function(e,t=120){let s="string"==typeof e?e:JSON.stringify(e);return s.length>t?s.slice(0,t)+"…":s}(t)})]},e))}),e.message&&(0,r.jsx)("div",{className:"font-display",style:{marginTop:6,padding:"5px 9px",borderRadius:5,fontSize:"0.72rem",background:"error"===e.result?"rgba(200,80,80,0.08)":"rgba(122,173,128,0.08)",color:"error"===e.result?"var(--error)":"var(--success)",border:`1px solid ${"error"===e.result?"rgba(200,80,80,0.2)":"rgba(122,173,128,0.2)"}`},children:e.message}),e.agentName&&(0,r.jsxs)("div",{className:"font-display",style:{marginTop:6,fontSize:"0.68rem",color:"var(--muted-foreground)"},children:[t?.agentLabel??"Agent",": ",(0,r.jsx)("span",{style:{color:"var(--foreground)",fontWeight:500},children:e.agentName})]}),(0,r.jsx)("div",{className:"font-display",style:{marginTop:6,fontSize:"0.65rem",color:"var(--muted-foreground)",opacity:.5},children:H(e.ts)})]})]})}let eH=["all","write","create","delete","read","search"];function eX(){let{t:e,locale:t}=(0,l.Y)(),[s,n]=(0,a.useState)([]),[i,o]=(0,a.useState)(!0),[d,c]=(0,a.useState)("all");(0,a.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/agent-activity?limit=200").then(e=>e.json()).then(t=>{e||n(t.events??[])}).catch(()=>{}).finally(()=>{e||o(!1)})};t();let s=()=>{"visible"===document.visibilityState&&t()};return document.addEventListener("visibilitychange",s),()=>{e=!0,document.removeEventListener("visibilitychange",s)}},[]);let u=(0,a.useMemo)(()=>"all"===d?s:s.filter(e=>L(e.tool)===d),[s,d]),m=(0,a.useMemo)(()=>{let e={all:s.length};for(let t of s){let s=L(t.tool);e[s]=(e[s]??0)+1}return e},[s]),x=e.agentsContent?.activity;return i?(0,r.jsx)("div",{className:"flex items-center justify-center py-16 text-muted-foreground/50",children:(0,r.jsx)("div",{className:"animate-pulse text-sm font-display",children:x?.loading??"Loading activity..."})}):0===s.length?(0,r.jsxs)("div",{className:"font-display",style:{padding:"3rem 1rem",textAlign:"center",color:"var(--muted-foreground)",fontSize:12},children:[(0,r.jsx)(_.A,{size:28,style:{margin:"0 auto 10px",opacity:.3}}),(0,r.jsx)("p",{children:x?.empty??"No agent operations logged yet."}),(0,r.jsx)("p",{style:{marginTop:6,opacity:.6,fontSize:11},children:x?.emptyHint??"Operations from connected agents will appear here."})]}):(0,r.jsxs)("div",{style:{maxWidth:760,margin:"0 auto",padding:"1.5rem 1rem"},children:[(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:"1.2rem",flexWrap:"wrap"},children:eH.map(e=>{let s=m[e]??0;if("all"!==e&&!s)return null;let a="all"!==e?O[e]:void 0,n=d===e;return(0,r.jsxs)("button",{onClick:()=>c(e),className:"font-display",style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:999,fontSize:"0.7rem",cursor:"pointer",border:"none",background:n?a?.bg??"var(--accent)":"var(--muted)",color:n?a?.text??"var(--foreground)":"var(--muted-foreground)",outline:n?`1px solid ${a?.border??"var(--border)"}`:"none",transition:"all .1s"},children:["all"!==e&&(0,r.jsx)(I,{kind:e,size:10}),"all"===e?t?.startsWith("zh")?"全部":"All":P[t?.startsWith("zh")?"zh":"en"][e]," ",(0,r.jsxs)("span",{style:{opacity:.6},children:["(",s,")"]})]},e)})}),(0,r.jsx)("div",{children:u.map((e,t)=>(0,r.jsx)(eI,{op:e,copy:x},e.id??t))})]})}var eK=s(44361),eU=s(3837),eB=s(41209),eW=s(71044);function eZ(e,t){if(!e)return t??"--";let s=new Date(e).getTime();if(Number.isNaN(s))return t??e;let r=Math.floor((Date.now()-s)/6e4);if(r<1)return"just now";if(r<60)return`${r} min ago`;let a=Math.floor(r/60);if(a<24)return`${a} hr ago`;let n=Math.floor(a/24);return n<7?`${n} day${n>1?"s":""} ago`:new Date(e).toLocaleString()}function eq({title:e,children:t,icon:s,className:a}){return(0,r.jsxs)("section",{className:`rounded-lg border border-border bg-card p-5 shadow-sm ${a??""}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[s,(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground tracking-tight",children:e})]}),t]})}function eJ({ok:e,size:t=8}){return(0,r.jsx)("span",{className:`inline-block rounded-full shrink-0 ${e?"bg-success":"bg-muted-foreground/40"}`,style:{width:t,height:t},"aria-hidden":"true"})}function eV({result:e}){return e?(0,r.jsxs)("div",{role:"alert","aria-live":"polite",className:`flex items-start gap-2 text-sm ${e.ok?"text-success":"text-error"}`,children:[(0,r.jsx)("span",{className:"shrink-0 mt-0.5",children:e.ok?"✓":"✗"}),(0,r.jsx)("span",{className:"break-all",children:e.msg})]}):null}function eY({className:e}){return(0,r.jsx)("div",{className:`rounded bg-muted animate-pulse ${e}`})}function eQ({platform:e,status:t,im:s,purpose:a,isConnected:n}){return(0,r.jsxs)("header",{className:"flex items-start gap-4",children:[(0,r.jsx)("span",{className:"text-3xl shrink-0 mt-0.5",suppressHydrationWarning:!0,children:e.icon}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 mb-1",children:[(0,r.jsx)("h2",{className:"text-lg font-semibold text-foreground tracking-tight",children:e.name}),n?(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium px-2 py-0.5 rounded-full bg-success/10 text-success",children:[(0,r.jsx)(eJ,{ok:!0,size:6}),s.statusConnected]}):(0,r.jsx)("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium px-2 py-0.5 rounded-full bg-muted text-muted-foreground",children:s.notConfigured})]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed max-w-prose",children:a}),n&&t?.botName&&(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-1 font-mono",children:t.botName})]})]})}var eG=s(4373),e0=s(9986),e1=s(55798);function e2({platform:e,im:t,locale:s,onSaved:n}){let[i,l]=(0,a.useState)({}),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),[m,x]=(0,a.useState)(null),g=e.fields.every(e=>i[e.key]?.trim()),h="zh"===s?e.purposeZh??e.purpose??"":e.purpose??"",b="zh"===s?e.useCasesZh??e.useCases??[]:e.useCases??[],f=async()=>{u(!0),x(null);try{let s=await fetch("/api/im/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({platform:e.id,credentials:i})}),r=await s.json();r.ok?(x({ok:!0,msg:t.saved}),l({}),n()):x({ok:!1,msg:r.error||"Failed"})}catch(e){x({ok:!1,msg:e instanceof Error?e.message:t.networkError??"Network error"})}u(!1)};return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("section",{className:"rounded-lg border border-border bg-card p-5 shadow-sm",children:[(0,r.jsx)("p",{className:"text-sm text-foreground leading-relaxed max-w-prose mb-4",children:h}),b.length>0&&(0,r.jsx)("ul",{className:"space-y-2",children:b.map(e=>(0,r.jsxs)("li",{className:"flex items-start gap-2.5 text-sm text-muted-foreground",children:[(0,r.jsx)("span",{className:"mt-1.5 h-1.5 w-1.5 rounded-full bg-[var(--amber)] shrink-0"}),(0,r.jsx)("span",{children:e})]},e))})]}),(0,r.jsxs)("section",{className:"rounded-lg border border-border bg-card p-5 shadow-sm",children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground tracking-tight mb-4",children:t.setupGuide}),e.guide&&(0,r.jsxs)("div",{className:"rounded-md bg-muted/30 border border-border/50 px-4 py-3 mb-5",children:[(0,r.jsx)("div",{className:"text-sm text-muted-foreground leading-7 space-y-1",children:e.guide.split("\n").map((e,t)=>(0,r.jsx)("div",{children:e},t))}),e.guideUrl&&(0,r.jsxs)(p(),{href:e.guideUrl,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 mt-3 text-xs text-[var(--amber)] hover:underline",children:[t.guideLink,(0,r.jsx)(eG.A,{size:11})]})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[e.fields.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground block mb-1.5",children:e.label}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:o?"text":"password",placeholder:e.placeholder,value:i[e.key]??"",onChange:t=>l(s=>({...s,[e.key]:t.target.value})),className:"h-10 w-full px-3 pr-10 text-sm font-mono bg-background border border-border rounded-md focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-colors",autoComplete:"off","aria-required":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>d(e=>!e),className:"absolute right-2.5 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground rounded transition-colors","aria-label":o?t.hideSecret:t.showSecret,children:o?(0,r.jsx)(e0.A,{size:15}):(0,r.jsx)(e1.A,{size:15})})]}),e.hint&&(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.hint})]},e.key)),(0,r.jsx)("div",{className:"pt-2",children:(0,r.jsxs)("button",{type:"button",onClick:f,disabled:c||!g,className:"h-10 px-5 text-sm font-medium rounded-md inline-flex items-center gap-2 bg-[var(--amber)] text-[var(--amber-foreground)] shadow-sm hover:opacity-90 hover:shadow disabled:opacity-40 disabled:cursor-not-allowed transition-all",children:[c&&(0,r.jsx)(eK.A,{size:14,className:"animate-spin"}),c?t.saving:t.saveConfig]})}),(0,r.jsx)(eV,{result:m})]})]})]})}function e5(e){return e.length<=8?"***":e.slice(0,3)+"***"+e.slice(-3)}function e3({status:e,activities:t,im:s,locale:a,isFeishu:n,webhookState:i}){let l=t[0]??null,o=l?"zh"===a?new Date(l.timestamp).toLocaleString("zh-CN"):eZ(l.timestamp):null,d=n&&"ready"===i?s.twoWayConversation:s.notificationsOnly;return(0,r.jsx)("div",{className:"rounded-lg border border-border bg-card shadow-sm overflow-hidden",children:(0,r.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 divide-x divide-border",children:[(0,r.jsx)(e4,{label:"Bot",value:e?.botName||"--",mono:!0}),(0,r.jsx)(e4,{label:s.lastActivity,value:o||s.notAvailable}),(0,r.jsx)(e4,{label:s.currentMode,badge:d}),(0,r.jsx)(e4,{label:s.lastRecipient,value:l?e5(l.recipient):"--",mono:!0})]})})}function e4({label:e,value:t,badge:s,mono:a}){return(0,r.jsxs)("div",{className:"px-4 py-3",children:[(0,r.jsx)("p",{className:"text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-1",children:e}),s?(0,r.jsx)("span",{className:"inline-flex items-center rounded-md bg-[var(--amber-dim)] px-2 py-0.5 text-xs font-medium text-[var(--amber)]",children:s}):(0,r.jsx)("p",{className:`text-sm text-foreground truncate ${a?"font-mono":""}`,children:t})]})}function e6({status:e,im:t,platform:s,onSaved:n}){let i=e?.transport??"webhook",[l,o]=(0,a.useState)(e?.state!=="disabled"),[d,c]=(0,a.useState)(i),[u,m]=(0,a.useState)(""),[x,g]=(0,a.useState)(""),[h,b]=(0,a.useState)(e?.publicBaseUrl??""),[f,v]=(0,a.useState)(!0),[j,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),w="long_connection"===d,S=e?.state==="ready",A=async()=>{y(!0),k(null);try{let e=await fetch("/api/im/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({platform:"feishu",conversation:{enabled:l,transport:d,encrypt_key:u.trim()||void 0,verification_token:x.trim()||void 0,public_base_url:w?void 0:h||void 0,allow_group_mentions:f}})}),s=await e.json();s.ok?(k({ok:!0,msg:t.conversationSaved}),m(""),g(""),n()):k({ok:!1,msg:s.error||"Failed"})}catch(e){k({ok:!1,msg:e instanceof Error?e.message:t.networkError??"Network error"})}y(!1)};return(0,r.jsx)(eq,{title:t.conversationTitle,icon:(0,r.jsx)(eJ,{ok:S}),children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground",children:t.conversationEnable}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t.conversationHint})]}),(0,r.jsxs)("label",{className:"inline-flex items-center cursor-pointer shrink-0",children:[(0,r.jsx)("input",{type:"checkbox",className:"sr-only",checked:l,onChange:e=>o(e.target.checked),"aria-label":t.conversationEnable}),(0,r.jsx)("span",{className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${l?"bg-[var(--amber)]":"bg-muted"}`,children:(0,r.jsx)("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white transition-transform ${l?"translate-x-5":"translate-x-1"}`})})]})]}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground block mb-1.5",children:"Transport"}),(0,r.jsxs)(es.l6,{value:d,onChange:e=>c(e.target.value),children:[(0,r.jsx)("option",{value:"long_connection",children:"Long Connection (recommended)"}),(0,r.jsx)("option",{value:"webhook",children:"Webhook"})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-1 leading-relaxed",children:w?t.transportLongHint:t.transportWebhookHint})]}),(0,r.jsx)("div",{className:"flex items-end",children:(0,r.jsxs)("div",{className:"rounded-md bg-muted/40 px-4 py-3 w-full",children:[(0,r.jsx)("p",{className:"text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-1",children:t.conversationStatus}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(eJ,{ok:S}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:S?t.conversationReady:e?.state==="pending"?t.conversationWaiting:t.conversationDisabled})]}),e?.lastError&&(0,r.jsx)("p",{className:"text-xs text-error mt-1",children:e.lastError})]})})]}),!w&&(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground block mb-1.5",children:t.conversationPublicBaseUrl}),(0,r.jsx)("input",{type:"url",placeholder:"https://mindos.example.com",value:h,onChange:e=>b(e.target.value),className:"h-10 w-full px-3 text-sm bg-background border border-border rounded-md focus:outline-none focus-visible:ring-1 focus-visible:ring-ring"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground block mb-1.5",children:t.conversationVerificationToken}),(0,r.jsx)("input",{type:"password",placeholder:t.conversationSecretPlaceholder,value:x,onChange:e=>g(e.target.value),className:"h-10 w-full px-3 text-sm font-mono bg-background border border-border rounded-md focus:outline-none focus-visible:ring-1 focus-visible:ring-ring"})]}),e?.webhookUrl&&(0,r.jsxs)("div",{className:"sm:col-span-2 rounded-md bg-muted/30 px-3 py-2",children:[(0,r.jsx)("p",{className:"text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-0.5",children:"Webhook URL"}),(0,r.jsx)("p",{className:"text-xs font-mono text-foreground break-all",children:e.webhookUrl})]})]}),(0,r.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",checked:f,onChange:e=>v(e.target.checked),className:"h-4 w-4 rounded border-border text-[var(--amber)] focus-visible:ring-1 focus-visible:ring-ring"}),(0,r.jsx)("span",{className:"text-sm text-foreground",children:t.conversationGroupMentions})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-3 pt-1",children:[(0,r.jsxs)("button",{type:"button",onClick:A,disabled:j,className:"h-10 px-5 text-sm font-medium rounded-md inline-flex items-center gap-2 bg-[var(--amber)] text-[var(--amber-foreground)] shadow-sm hover:opacity-90 hover:shadow disabled:opacity-40 disabled:cursor-not-allowed transition-all",children:[j&&(0,r.jsx)(eK.A,{size:14,className:"animate-spin"}),t.conversationSave]}),s.guideUrl&&(0,r.jsxs)(p(),{href:s.guideUrl,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[t.conversationOpenPlatform,(0,r.jsx)(eG.A,{size:12})]})]}),(0,r.jsx)(eV,{result:N})]})]})})}var e8=s(80016),e7=s(74576),e9=s(52364);let te=(0,h.A)("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);var tt=s(95991),ts=s(67643);function tr({type:e,status:t}){return"failed"===t?(0,r.jsx)(e9.A,{size:14,className:"text-error"}):"conversation_inbound"===e?(0,r.jsx)(ef.A,{size:14,className:"text-[var(--amber)]"}):"conversation_reply"===e?(0,r.jsx)(te,{size:14,className:"text-success"}):(0,r.jsx)(M.A,{size:14,className:"text-success"})}function ta({activity:e,im:t,locale:s}){var n;let i,l,[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),{body:m,thinking:x}=(l=(i=(n=e.messageSummary).match(/<thinking>([\s\S]*?)(<\/thinking>|$)/i))?i[1].trim():null,{body:n.replace(/<thinking>[\s\S]*?<\/thinking>/gi,"").replace(/<thinking>[\s\S]*/gi,"").trim(),thinking:l}),p=m.length>0,g=p?m:x?`(${t.showThinking??"Thinking"}...)`:e.messageSummary;return(0,r.jsxs)("div",{className:"rounded-md border border-border/50 overflow-hidden",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),className:"w-full flex items-start gap-3 px-3 py-2.5 text-left hover:bg-muted/30 transition-colors","aria-expanded":o,children:[(0,r.jsx)("span",{className:"mt-0.5 shrink-0",children:(0,r.jsx)(tr,{type:e.type,status:e.status})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-sm text-foreground truncate",children:p?g:(0,r.jsx)("span",{className:"italic text-muted-foreground",children:g})}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5 text-[11px] text-muted-foreground mt-0.5",children:[(0,r.jsx)("span",{className:"font-medium",children:function(e,t){switch(e){case"test":return t.test;case"agent":return t.agent;case"conversation_inbound":return t.inbound??"Inbound";case"conversation_reply":return t.reply??"Reply";default:return t.manual}}(e.type,{test:t.activityTypeTest,agent:t.activityTypeAgent,manual:t.activityTypeManual,inbound:t.activityTypeInbound,reply:t.activityTypeReply})}),(0,r.jsx)("span",{className:"font-mono",children:e5(e.recipient)}),e.error&&(0,r.jsx)("span",{className:"text-error",children:e.error})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0 mt-0.5",children:[(0,r.jsx)("span",{className:"text-[11px] text-muted-foreground",children:"zh"===s?new Date(e.timestamp).toLocaleString("zh-CN"):eZ(e.timestamp)}),(0,r.jsx)(ea.A,{size:12,className:`text-muted-foreground/40 transition-transform duration-150 ${o?"rotate-90":""}`})]})]}),o&&(0,r.jsxs)("div",{className:"border-t border-border/50 px-4 py-3 bg-muted/10",children:[p&&(0,r.jsx)("div",{className:"prose prose-sm max-w-none text-foreground [&_p]:my-1 [&_ul]:my-1 [&_ol]:my-1 [&_li]:my-0 [&_pre]:my-2 [&_code]:text-xs [&_pre]:bg-muted/50 [&_pre]:rounded [&_pre]:px-3 [&_pre]:py-2 [&_h1]:text-base [&_h2]:text-sm [&_h3]:text-sm [&_a]:text-[var(--amber)] break-words",children:(0,r.jsx)(e8.oz,{remarkPlugins:[e7.A],children:m})}),x&&(0,r.jsxs)("div",{className:p?"mt-3 pt-3 border-t border-border/30":"",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),className:"inline-flex items-center gap-1 text-[11px] text-muted-foreground/60 hover:text-muted-foreground transition-colors",children:[(0,r.jsx)(y.A,{size:10,className:`transition-transform ${c?"rotate-180":""}`}),c?t.hideThinking??"Hide thinking":t.showThinking??"Show thinking"]}),c&&(0,r.jsx)("div",{className:"mt-2 prose prose-sm max-w-none text-muted-foreground/70 [&_p]:my-1 [&_ul]:my-1 [&_ol]:my-1 [&_li]:my-0 [&_pre]:my-2 [&_code]:text-xs [&_pre]:bg-muted/30 [&_pre]:rounded [&_pre]:px-3 [&_pre]:py-2 break-words max-h-48 overflow-y-auto",children:(0,r.jsx)(e8.oz,{remarkPlugins:[e7.A],children:x})})]}),!p&&!x&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground italic",children:e.messageSummary})]})]})}function tn({activities:e,im:t,locale:s,onScrollToTest:a}){return(0,r.jsx)(eq,{title:t.recentActivity,icon:(0,r.jsx)(tt.A,{size:15,className:"text-muted-foreground"}),children:0===e.length?(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)(tt.A,{size:20,className:"mx-auto mb-2 text-muted-foreground/50"}),(0,r.jsx)("p",{className:"text-sm text-foreground mb-0.5",children:t.noActivityYet}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-3 max-w-[280px] mx-auto",children:t.noActivityHint}),a&&(0,r.jsxs)("button",{type:"button",onClick:a,className:"inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs bg-[var(--amber-dim)] text-[var(--amber)] hover:bg-[var(--amber-dim)]/80 transition-colors",children:[(0,r.jsx)(ts.A,{size:12}),t.sendSample]})]}):(0,r.jsx)("div",{className:"space-y-2",children:e.map(e=>(0,r.jsx)(ta,{activity:e,im:t,locale:s},e.id))})})}function ti({platformId:e,im:t,recipientExample:s,onSent:n}){let[i,l]=(0,a.useState)(""),[o,d]=(0,a.useState)("Hello from MindOS"),[c,u]=(0,a.useState)("idle"),[m,x]=(0,a.useState)(null),p=async()=>{if(i.trim()&&o.trim()){u("sending"),x(null);try{let s=await fetch("/api/im/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({platform:e,recipient_id:i,message:o})}),r=await s.json();r.ok?(u("success"),x({ok:!0,msg:r.messageId?`Sent (ID: ${r.messageId})`:t.sentOk}),n()):(u("error"),x({ok:!1,msg:r.error||"Failed"}))}catch(e){u("error"),x({ok:!1,msg:e instanceof Error?e.message:t.networkError??"Network error"})}}};return(0,r.jsxs)("details",{className:"rounded-lg border border-border bg-card shadow-sm overflow-hidden group",children:[(0,r.jsxs)("summary",{className:"flex items-center gap-2.5 px-5 py-3.5 cursor-pointer select-none text-sm font-medium text-muted-foreground hover:text-foreground transition-colors list-none [&::-webkit-details-marker]:hidden",children:[(0,r.jsx)(ts.A,{size:14,className:"text-[var(--amber)]"}),(0,r.jsx)("span",{children:t.sendSample}),(0,r.jsx)("span",{className:"ml-auto text-xs text-muted-foreground/60 group-open:hidden",children:t.expandToSee??"Click to expand"})]}),(0,r.jsxs)("div",{className:"border-t border-border px-5 py-4 space-y-3",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:t.sampleHint}),(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground block mb-1.5",children:t.recipientPlaceholder}),(0,r.jsx)("input",{type:"text",placeholder:s||t.recipientPlaceholder,value:i,onChange:e=>l(e.target.value),className:"h-10 w-full px-3 text-sm font-mono bg-background border border-border rounded-md focus:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-label":t.recipientPlaceholder})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground block mb-1.5",children:t.messagePlaceholder}),(0,r.jsx)("input",{type:"text",placeholder:t.messagePlaceholder,value:o,onChange:e=>d(e.target.value),className:"h-10 w-full px-3 text-sm bg-background border border-border rounded-md focus:outline-none focus-visible:ring-1 focus-visible:ring-ring","aria-label":t.messagePlaceholder})]})]}),(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsxs)("button",{type:"button",onClick:p,disabled:"sending"===c||!i.trim(),className:"h-10 px-5 text-sm font-medium rounded-md inline-flex items-center gap-2 bg-[var(--amber)] text-[var(--amber-foreground)] shadow-sm hover:opacity-90 hover:shadow disabled:opacity-40 disabled:cursor-not-allowed transition-all",children:["sending"===c?(0,r.jsx)(eK.A,{size:14,className:"animate-spin"}):(0,r.jsx)(ts.A,{size:14}),t.sendSample]})}),(0,r.jsx)(eV,{result:m})]})]})}function tl({platform:e,im:t,onSaved:s,onDisconnected:n}){let[i,l]=(0,a.useState)({}),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),[m,x]=(0,a.useState)(null),[p,g]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),f=e.fields.every(e=>i[e.key]?.trim()),v=async()=>{u(!0),x(null);try{let r=await fetch("/api/im/config",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({platform:e.id,credentials:i})}),a=await r.json();a.ok?(x({ok:!0,msg:t.saved}),l({}),s()):x({ok:!1,msg:a.error||"Failed"})}catch(e){x({ok:!1,msg:e instanceof Error?e.message:t.networkError??"Network error"})}u(!1)},N=async()=>{if(!h)return void b(!0);g(!0),b(!1);try{(await fetch(`/api/im/config?platform=${e.id}`,{method:"DELETE"})).ok&&n()}catch{}g(!1)};return(0,r.jsxs)("details",{className:"rounded-lg border border-border bg-card shadow-sm overflow-hidden group",children:[(0,r.jsxs)("summary",{className:"flex items-center gap-2.5 px-5 py-3.5 cursor-pointer select-none text-sm font-medium text-muted-foreground hover:text-foreground transition-colors list-none [&::-webkit-details-marker]:hidden",children:[(0,r.jsx)(y.A,{size:14,className:"transition-transform group-open:rotate-180"}),(0,r.jsx)("span",{children:t.settingsTitle}),(0,r.jsx)("span",{className:"ml-auto text-xs text-muted-foreground/60 group-open:hidden",children:t.settingsHint})]}),(0,r.jsxs)("div",{className:"border-t border-border px-5 py-4 space-y-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-foreground mb-1",children:t.editCredentials}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed mb-3",children:t.savedValuesHint}),(0,r.jsxs)("div",{className:"space-y-3",children:[e.fields.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground block mb-1.5",children:e.label}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:o?"text":"password",placeholder:e.placeholder,value:i[e.key]??"",onChange:t=>l(s=>({...s,[e.key]:t.target.value})),className:"h-10 w-full px-3 pr-10 text-sm font-mono bg-background border border-border rounded-md focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-colors",autoComplete:"off"}),(0,r.jsx)("button",{type:"button",onClick:()=>d(e=>!e),className:"absolute right-2.5 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground rounded transition-colors","aria-label":o?t.hideSecret:t.showSecret,children:o?(0,r.jsx)(e0.A,{size:15}):(0,r.jsx)(e1.A,{size:15})})]})]},e.key)),(0,r.jsx)("div",{className:"flex items-center gap-3",children:(0,r.jsxs)("button",{type:"button",onClick:v,disabled:c||!f,className:"h-10 px-5 text-sm font-medium rounded-md inline-flex items-center gap-2 bg-[var(--amber)] text-[var(--amber-foreground)] shadow-sm hover:opacity-90 hover:shadow disabled:opacity-40 disabled:cursor-not-allowed transition-all",children:[c&&(0,r.jsx)(eK.A,{size:14,className:"animate-spin"}),c?t.saving:t.saveConfig]})}),(0,r.jsx)(eV,{result:m})]})]}),(0,r.jsxs)("div",{className:"border-t border-border pt-4",children:[(0,r.jsx)("h4",{className:"text-sm font-medium text-foreground mb-1",children:t.disconnect}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-3",children:t.disconnectHint}),(0,r.jsxs)("button",{type:"button",onClick:N,disabled:p,className:`h-10 px-4 text-sm rounded-md inline-flex items-center gap-2 border transition-colors ${h?"text-error border-error/40 bg-error/5 hover:bg-error/10":"text-muted-foreground border-border hover:text-error hover:border-error/30"}`,children:[p?(0,r.jsx)(eK.A,{size:14,className:"animate-spin"}):h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.A,{size:14})," ",t.confirmDisconnect]}):(0,r.jsx)(R.A,{size:14}),!h&&!p&&(0,r.jsx)("span",{children:t.disconnect})]})]})]})]})}let to={statuses:[],activities:{},statusFetchedAt:0,activityFetchedAt:{}};function td(){let e=Date.now()-to.statusFetchedAt;return{data:to.statuses,stale:e>15e3||0===to.statuses.length}}function tc(e){to.statuses=e,to.statusFetchedAt=Date.now()}function tu(){return(0,r.jsxs)("div",{className:"max-w-3xl animate-pulse space-y-4",children:[(0,r.jsx)(eY,{className:"h-5 w-28"}),(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)(eY,{className:"h-10 w-10 rounded-lg"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)(eY,{className:"h-6 w-36"}),(0,r.jsx)(eY,{className:"h-4 w-48"})]})]}),(0,r.jsx)(eY,{className:"h-16 w-full rounded-lg"}),(0,r.jsx)(eY,{className:"h-32 w-full rounded-lg"}),(0,r.jsx)(eY,{className:"h-24 w-full rounded-lg"})]})}function tm({platformId:e}){let t,{t:s,locale:n}=(0,l.Y)(),i=s.panels.im,o=(0,eB.u)(e),d=td(),c=(t=Date.now()-(to.activityFetchedAt[e]??0),{data:to.activities[e]??[],stale:t>15e3||!to.activities[e]}),u=d.data.length>0,[m,x]=(0,a.useState)(u?"ready":"loading"),[g,h]=(0,a.useState)(u?d.data.find(t=>t.platform===e)??null:null),[b,f]=(0,a.useState)(c.data),[v,j]=(0,a.useState)(!1),y=(0,a.useRef)(!0),N=(0,a.useCallback)(async(t=!1)=>{t?j(!0):x("loading");try{let[s,r]=await Promise.all([fetch("/api/im/status"),fetch(`/api/im/activity?platform=${e}&limit=5`)]);if(!y.current)return;if(!s.ok||!r.ok){t||x("error");return}let a=await s.json(),n=await r.json(),i=a.platforms??[],l=n.activities??[];if(tc(i),to.activities[e]=l,to.activityFetchedAt[e]=Date.now(),!y.current)return;h(i.find(t=>t.platform===e)??null),f(l),x("ready")}catch{!t&&y.current&&x("error")}y.current&&j(!1)},[e]);if((0,a.useEffect)(()=>(y.current=!0,u&&d.stale?N(!0):u||N(!1),()=>{y.current=!1}),[N,u,d.stale]),!o)return(0,r.jsxs)("div",{className:"text-center py-16",children:[(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Unknown platform: ",e]}),(0,r.jsx)(p(),{href:"/agents?tab=channels",className:"text-xs text-[var(--amber)] hover:underline mt-2 inline-block",children:i.backToChannels})]});let k=g?.connected??!1,w="feishu"===e,S=g?.webhook?.state??"disabled",A="zh"===n?o.purposeZh??o.purpose??i.emptyDesc:o.purpose??i.emptyDesc,C="zh"===n?o.recipientExampleZh??o.recipientExample:o.recipientExample;return(0,r.jsxs)("div",{className:"max-w-3xl",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)(p(),{href:"/agents?tab=channels",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[(0,r.jsx)(eW.A,{size:14}),i.backToChannels]}),v&&(0,r.jsx)("span",{className:"text-xs text-muted-foreground/60 animate-pulse",children:(0,r.jsx)(V.A,{size:12,className:"inline animate-spin mr-1"})})]}),"loading"===m?(0,r.jsx)(tu,{}):"error"===m?(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-8 shadow-sm text-center",children:[(0,r.jsx)(T.A,{size:22,className:"mx-auto mb-3 text-muted-foreground"}),(0,r.jsx)("p",{className:"text-sm text-foreground mb-1",children:i.fetchError}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-4",children:i.thisIsNotChat}),(0,r.jsxs)("button",{type:"button",onClick:()=>N(!1),className:"inline-flex items-center gap-1.5 px-3 py-2 text-sm rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:[(0,r.jsx)(V.A,{size:14}),i.retry]})]}):(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)(eQ,{platform:o,status:g,im:i,purpose:A,isConnected:k}),k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e3,{status:g,activities:b,im:i,locale:n,isFeishu:w,webhookState:S}),w&&(0,r.jsx)(e6,{status:g?.webhook,im:i,platform:o,onSaved:()=>N(!0)}),(0,r.jsx)(tn,{activities:b,im:i,locale:n}),(0,r.jsx)(ti,{platformId:e,im:i,recipientExample:C,onSent:()=>N(!0)}),(0,r.jsx)(tl,{platform:o,im:i,onSaved:()=>N(!0),onDisconnected:()=>{f([]),N(!1)}})]}):(0,r.jsx)(e2,{platform:o,im:i,locale:n,onSaved:()=>N(!1)})]})]})}function tx(){let{t:e}=(0,l.Y)();e.panels.im;let t=(0,n.useSearchParams)().get("platform");return t?(0,r.jsx)(tm,{platformId:t}):(0,r.jsx)(tp,{})}function tp(){let{t:e}=(0,l.Y)(),t=e.panels.im,s=td(),[n,i]=(0,a.useState)(s.data),[o,d]=(0,a.useState)(0===s.data.length),[c,u]=(0,a.useState)(!1),m=(0,a.useCallback)(async(e=!1)=>{u(!1),e||d(!0);try{let t=await fetch("/api/im/status");if(t.ok){let e=(await t.json()).platforms??[];tc(e),i(e)}else e||u(!0)}catch{e||u(!0)}d(!1)},[]);if((0,a.useEffect)(()=>{s.stale&&m(s.data.length>0)},[m,s.stale,s.data.length]),o)return(0,r.jsx)("div",{className:"flex justify-center py-16",children:(0,r.jsx)(eK.A,{size:20,className:"animate-spin text-muted-foreground"})});if(c)return(0,r.jsxs)("div",{className:"text-center py-16",children:[(0,r.jsx)(T.A,{size:24,className:"mx-auto mb-3 text-muted-foreground"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:t.fetchError}),(0,r.jsxs)("button",{type:"button",onClick:()=>{d(!0),m()},className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:[(0,r.jsx)(V.A,{size:12})," ",t.retry]})]});let x=n.filter(e=>e.connected).length,g=eB.P.length;return(0,r.jsxs)("div",{className:"max-w-4xl",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-8",children:[(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-4 shadow-sm",children:[(0,r.jsx)("div",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.statsConnected}),(0,r.jsxs)("div",{className:"text-3xl font-semibold text-foreground tabular-nums",children:[x,(0,r.jsxs)("span",{className:"text-sm text-muted-foreground font-normal ml-1",children:["/ ",g]})]})]}),(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-4 shadow-sm",children:[(0,r.jsx)("div",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.statsSupported}),(0,r.jsx)("div",{className:"text-3xl font-semibold text-foreground tabular-nums",children:g})]}),(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-4 shadow-sm",children:[(0,r.jsx)("div",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.statsStatus}),(0,r.jsx)("div",{className:"text-sm text-foreground",children:x>0?(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-success",children:[(0,r.jsx)(M.A,{size:14})," ",t.statsReady]}):(0,r.jsx)("span",{className:"text-muted-foreground",children:t.statsNotConfigured})})]})]}),(0,r.jsx)("h2",{className:"text-sm font-medium text-foreground mb-4",children:t.platformsTitle}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:eB.P.map(({id:e,name:s,icon:a})=>{let i=n.find(t=>t.platform===e),l=i?.connected??!1;return(0,r.jsxs)(p(),{href:`/agents?tab=channels&platform=${e}`,className:"flex items-center gap-3 rounded-lg border border-border bg-card px-4 py-3 shadow-sm hover:border-[var(--amber)]/50 hover:bg-card/80 hover:shadow transition-all",children:[(0,r.jsx)("span",{className:"text-xl shrink-0",children:a}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-foreground",children:s}),l&&i?.botName?(0,r.jsx)("div",{className:"text-xs text-muted-foreground font-mono truncate",children:i.botName}):(0,r.jsx)("div",{className:"text-xs text-muted-foreground",children:l?t.statusConnected:t.notConfigured}),l&&i?.capabilities&&i.capabilities.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-1 mt-1.5",children:i.capabilities.slice(0,3).map(e=>(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded-md bg-muted text-muted-foreground",children:e},e))})]}),l?(0,r.jsx)(M.A,{size:18,className:"text-success shrink-0"}):(0,r.jsx)(eU.A,{size:18,className:"text-border shrink-0"})]},e)})})]})}var tg=s(82829);function th({tab:e}){let{t}=(0,l.Y)(),s=t.agentsContent,x=(0,o.kr)(),p=(0,d.V)(),g=(0,n.useSearchParams)(),h="channels"===e&&!!g.get("platform"),b=(0,a.useMemo)(()=>"channels"===e?{title:s.navChannels??"Channels",subtitle:s.channelsSubtitle??"Connect messaging platforms to let MindOS send messages on your behalf."}:"activity"===e?{title:s.navActivity??"Activity",subtitle:s.activitySubtitle??"Agent operations audit log."}:"sessions"===e?{title:"Sessions",subtitle:"Active ACP agent sessions."}:"a2a"===e?{title:s.navNetwork,subtitle:s.a2aTabEmptyHint}:"skills"===e?{title:s.navSkills,subtitle:s.skills.capabilityGroups}:"mcp"===e?{title:s.navMcp,subtitle:s.mcp.connectionGraph}:{title:s.title,subtitle:s.subtitle},[s,e]),f=(0,a.useMemo)(()=>(0,m.$t)(x.agents),[x.agents]),v=x.status?.connectionMode?.mcp??!1,j=(0,a.useMemo)(()=>(0,m.zK)({mcpRunning:!!x.status?.running,mcpEnabled:v,detectedCount:f.detected.length,notFoundCount:f.notFound.length,allSkillsDisabled:x.skills.length>0&&x.skills.every(e=>!e.enabled),copy:s.overview}),[x.skills,x.status?.running,v,f.detected.length,f.notFound.length,s.overview]),y=(0,a.useMemo)(()=>x.skills.filter(e=>e.enabled).length,[x.skills]),[N,k]=(0,a.useState)(!1),[w,S]=(0,a.useState)(null),[C,z]=(0,a.useState)(null),[M,T]=(0,a.useState)(!1),E=(0,a.useCallback)(()=>{S(null),k(!0)},[]),D=(0,a.useCallback)(e=>{S(e),k(!0)},[]),F=(0,a.useCallback)(e=>{z(e)},[]),R=(0,a.useCallback)(async()=>{if(C){T(!0);try{let e=await fetch("/api/agents/custom",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:C.key})});if(e.ok)i.oR.success(s.overview.customAgentRemoved(C.name)),x.refresh();else{let t=await e.json();i.oR.error(t.error||s.overview.customAgentFailedRemove)}}catch{i.oR.error(s.overview.customAgentNetworkError)}finally{T(!1),z(null)}}},[C,x,s.overview]),$=(0,a.useCallback)(()=>{x.refresh()},[x]),_=async e=>{let t=x.agents.find(t=>t.key===e);if(!t)return;let s=(0,u.$k)(t,x.status,t.preferredTransport);await (0,c.l)(s.snippet)&&i.oR.copy()};return(0,r.jsxs)("div",{className:"content-width px-4 md:px-6 py-8 md:py-10",children:[!h&&(0,r.jsxs)("header",{className:"mb-6",children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:b.title}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:b.subtitle})]}),x.loading&&"overview"===e&&(0,r.jsx)(tb,{}),!x.loading&&"overview"===e&&(0,r.jsx)(W,{copy:s.overview,buckets:f,riskQueue:j,mcpRunning:!!x.status?.running,mcpPort:x.status?.port??null,mcpToolCount:x.status?.toolCount??0,mcpEnabled:v,enabledSkillCount:y,allAgents:x.agents,pulseCopy:s.workspacePulse,a2aCount:p.agents.length,onAddCustomAgent:E,onEditCustomAgent:D,onRemoveCustomAgent:F}),"mcp"===e&&v&&(0,r.jsx)(Q,{copy:{...s.mcp,status:s.status},mcp:x,buckets:f,copyState:null,onCopySnippet:_}),"mcp"===e&&!v&&!x.loading&&(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:s.mcp?.mcpDisabledMessage??"MCP mode is not enabled."}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/60 mt-1",children:s.mcp?.mcpDisabledHint??"Enable it in Settings → Connections to use MCP agents."})]}),"skills"===e&&(0,r.jsx)(el,{copy:s.skills,mcp:x,buckets:f}),"a2a"===e&&(0,r.jsx)(eD,{agents:p.agents,discovering:p.discovering,error:p.error,onDiscover:p.discover,onRemove:p.remove}),"sessions"===e&&(0,r.jsx)(eO,{}),"activity"===e&&(0,r.jsx)(eX,{}),"channels"===e&&(0,r.jsx)(tx,{}),(0,r.jsx)(tg.A,{open:N,onClose:()=>{k(!1),S(null)},onSuccess:$,existingAgents:x.agents,editAgent:w}),(0,r.jsx)(A.TM,{open:!!C,title:C?s.overview.customAgentRemoveTitle(C.name):"",message:s.overview.customAgentRemoveMessage,confirmLabel:s.overview.customAgentRemoveConfirm,cancelLabel:s.overview.customAgentCancel,onConfirm:R,onCancel:()=>z(null),variant:"destructive"})]})}function tb(){return(0,r.jsxs)("div",{className:"space-y-5 animate-pulse","aria-busy":"true","aria-label":"Loading",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[(0,r.jsx)("div",{className:"px-4 py-2.5 border-b border-border bg-muted/10",children:(0,r.jsx)("div",{className:"h-4 w-32 bg-muted rounded"})}),(0,r.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-6 divide-x divide-border",children:Array.from({length:6}).map((e,t)=>(0,r.jsxs)("div",{className:"px-3 py-3.5 flex flex-col items-center gap-2",children:[(0,r.jsx)("div",{className:"h-3 w-16 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-5 w-8 bg-muted rounded"})]},t))})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Array.from({length:2}).map((e,t)=>(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 flex items-start gap-3.5",children:[(0,r.jsx)("div",{className:"w-10 h-10 rounded-lg bg-muted"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)("div",{className:"h-4 w-20 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-3 w-full bg-muted rounded"})]})]},t))}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsx)("div",{className:"h-4 w-24 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-3 w-16 bg-muted rounded"})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:Array.from({length:6}).map((e,t)=>(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-3.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,r.jsx)("div",{className:"w-7 h-7 rounded-full bg-muted"}),(0,r.jsx)("div",{className:"flex-1 h-4 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-4 w-16 bg-muted rounded"})]}),(0,r.jsx)("div",{className:"h-3 w-2/3 bg-muted rounded"})]},t))})]})]})}},71044:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},72799:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},73601:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},76723:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},88283:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},95991:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},98327:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(73015).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])}},e=>{e.O(0,[3940,2130,8225,4172,2073,5152,5200,1430,5018,2330,7358],()=>e(e.s=23505)),_N_E=e.O()}]);
|