@euraika-labs/pan-ui 0.5.2 → 0.7.0
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/.next/standalone/node_modules/next/node_modules/postcss/package.json +0 -0
- package/.next/standalone/package.json +3 -2
- package/.next/standalone/server.js +1 -1
- package/.next/static/1rIKKfgwcoD-Sz4I0QlZE/_buildManifest.js +1 -0
- package/.next/static/chunks/1257.5a9a3f3bc1e6e4ed.js +1 -0
- package/.next/static/chunks/1635-44de098967ff5444.js +1 -0
- package/.next/static/chunks/3140.a3aebdd856baf0d3.js +1 -0
- package/.next/static/chunks/5097-d987432c8a1ddd83.js +1 -0
- package/.next/static/chunks/9475-c598640ff854b528.js +1 -0
- package/.next/static/chunks/9860-b632f9e287faaf54.js +1 -0
- package/.next/{standalone/.next/static/chunks/app/_not-found/page-9c90a6b39424f003.js → static/chunks/app/_not-found/page-c4591bba1afe868d.js} +1 -1
- package/.next/static/chunks/app/api/audit/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/auth/login/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/chat/sessions/[id]/fork/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/chat/sessions/[id]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/chat/sessions/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/chat/stream/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/extensions/[id]/capabilities/[capabilityId]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/extensions/[id]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/extensions/[id]/test/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/extensions/hub/install/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/extensions/hub/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/extensions/mcp/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/extensions/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/memory/agent/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/memory/context-inspector/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/memory/session-search/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/memory/user/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/plugins/[id]/enable/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/plugins/[id]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/plugins/install/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/profiles/[id]/config/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/profiles/[id]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/profiles/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/approvals/[toolCallId]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/approvals/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/artifacts/download/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/artifacts/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/export/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/health/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/mcp-probes/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/runs/[id]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/runs/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/status/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/telemetry/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/timeline/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/runtime/update-check/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/[id]/disable/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/[id]/enable/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/[id]/files/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/[id]/install/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/[id]/load/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/[id]/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/catalog/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/categories/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/hub/install/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/hub/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/skills/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/telemetry/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/api/uploads/route-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/chat/page-f3942a49cfe4b77b.js +1 -0
- package/.next/{standalone/.next/static/chunks/app/extensions/[id]/page-fa0248fe2425f7fa.js → static/chunks/app/extensions/[id]/page-0f477dc304d1d5cf.js} +1 -1
- package/.next/static/chunks/app/extensions/page-e0ed118aa408f2e3.js +1 -0
- package/.next/static/chunks/app/layout-f3c578dd4202f2f5.js +1 -0
- package/.next/static/chunks/app/login/page-d23b3ef0f354f117.js +1 -0
- package/.next/static/chunks/app/marketplace/page-e9f839ad75b7f4a8.js +1 -0
- package/.next/static/chunks/app/memory/{page-96f1f3655df208d2.js → page-f95977739323e68e.js} +1 -1
- package/.next/static/chunks/app/page-0fde5fa85ae3ec46.js +1 -0
- package/.next/static/chunks/app/plugins/page-12765968a2205454.js +1 -0
- package/.next/static/chunks/app/profiles/page-97406601ee76c29f.js +1 -0
- package/.next/{standalone/.next/static/chunks/app/settings/approvals/page-32a14ddc05425eac.js → static/chunks/app/settings/approvals/page-1896332d180b6b0b.js} +1 -1
- package/.next/static/chunks/app/settings/artifacts/page-81d011d52fa461cc.js +1 -0
- package/.next/static/chunks/app/settings/audit/page-bfb44fd8063d016e.js +1 -0
- package/.next/static/chunks/app/settings/health/page-61496548509805ea.js +1 -0
- package/.next/static/chunks/app/settings/mcp-diagnostics/page-9ebfa25825168715.js +1 -0
- package/.next/static/chunks/app/settings/page-c2f930a6fe7cde0f.js +1 -0
- package/.next/static/chunks/app/settings/runs/[id]/page-734dea18f0ca8aaa.js +1 -0
- package/.next/static/chunks/app/settings/runs/{page-0cef3d042476b94a.js → page-e0160a1bd8df943a.js} +1 -1
- package/.next/{standalone/.next/static/chunks/app/settings/telemetry/page-e7d50b61ed3a4d22.js → static/chunks/app/settings/telemetry/page-029bd254b2dd0864.js} +1 -1
- package/.next/static/chunks/app/skills/[id]/page-241027df81583175.js +1 -0
- package/.next/static/chunks/app/skills/page-cdeae1ae5c2ca918.js +1 -0
- package/.next/{standalone/.next/static/chunks/main-app-a9e2c007d433eaf9.js → static/chunks/main-app-f0e3f2828aa879c4.js} +1 -1
- package/.next/static/chunks/webpack-3f60b0ecd96bfc29.js +1 -0
- package/.next/static/css/371b679522737b32.css +3 -0
- package/README.md +20 -13
- package/bin/pan-ui.mjs +0 -0
- package/package.json +3 -2
- package/.env.example +0 -33
- package/.next/standalone/.next/BUILD_ID +0 -1
- package/.next/standalone/.next/app-build-manifest.json +0 -515
- package/.next/standalone/.next/app-path-routes-manifest.json +0 -68
- package/.next/standalone/.next/build-manifest.json +0 -33
- package/.next/standalone/.next/package.json +0 -1
- package/.next/standalone/.next/prerender-manifest.json +0 -119
- package/.next/standalone/.next/react-loadable-manifest.json +0 -1
- package/.next/standalone/.next/required-server-files.json +0 -322
- package/.next/standalone/.next/routes-manifest.json +0 -295
- package/.next/standalone/.next/server/app/_not-found/page.js +0 -2
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/_not-found.html +0 -1
- package/.next/standalone/.next/server/app/_not-found.meta +0 -8
- package/.next/standalone/.next/server/app/_not-found.rsc +0 -18
- package/.next/standalone/.next/server/app/api/audit/route.js +0 -36
- package/.next/standalone/.next/server/app/api/audit/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/audit/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/auth/login/route.js +0 -1
- package/.next/standalone/.next/server/app/api/auth/login/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/auth/login/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js +0 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/[id]/fork/route.js +0 -145
- package/.next/standalone/.next/server/app/api/chat/sessions/[id]/fork/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/[id]/fork/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/[id]/route.js +0 -145
- package/.next/standalone/.next/server/app/api/chat/sessions/[id]/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/[id]/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/route.js +0 -145
- package/.next/standalone/.next/server/app/api/chat/sessions/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/chat/stream/route.js +0 -314
- package/.next/standalone/.next/server/app/api/chat/stream/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/chat/stream/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/capabilities/[capabilityId]/route.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/capabilities/[capabilityId]/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/capabilities/[capabilityId]/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/route.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/test/route.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/test/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/extensions/[id]/test/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/mcp/route.js +0 -11
- package/.next/standalone/.next/server/app/api/extensions/mcp/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/extensions/mcp/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/route.js +0 -1
- package/.next/standalone/.next/server/app/api/extensions/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/extensions/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/memory/agent/route.js +0 -36
- package/.next/standalone/.next/server/app/api/memory/agent/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/memory/agent/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/memory/context-inspector/route.js +0 -1
- package/.next/standalone/.next/server/app/api/memory/context-inspector/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/memory/context-inspector/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/memory/session-search/route.js +0 -1
- package/.next/standalone/.next/server/app/api/memory/session-search/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/memory/session-search/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/memory/user/route.js +0 -36
- package/.next/standalone/.next/server/app/api/memory/user/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/memory/user/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/profiles/[id]/config/route.js +0 -92
- package/.next/standalone/.next/server/app/api/profiles/[id]/config/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/profiles/[id]/config/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/profiles/[id]/route.js +0 -11
- package/.next/standalone/.next/server/app/api/profiles/[id]/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/profiles/[id]/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/profiles/route.js +0 -11
- package/.next/standalone/.next/server/app/api/profiles/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/profiles/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/approvals/[toolCallId]/route.js +0 -133
- package/.next/standalone/.next/server/app/api/runtime/approvals/[toolCallId]/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/approvals/[toolCallId]/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/approvals/route.js +0 -133
- package/.next/standalone/.next/server/app/api/runtime/approvals/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/approvals/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/artifacts/download/route.js +0 -133
- package/.next/standalone/.next/server/app/api/runtime/artifacts/download/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/artifacts/download/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/artifacts/route.js +0 -133
- package/.next/standalone/.next/server/app/api/runtime/artifacts/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/artifacts/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/export/route.js +0 -143
- package/.next/standalone/.next/server/app/api/runtime/export/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/export/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/health/route.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/health/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/health/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/mcp-probes/route.js +0 -133
- package/.next/standalone/.next/server/app/api/runtime/mcp-probes/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/mcp-probes/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/runs/[id]/route.js +0 -51
- package/.next/standalone/.next/server/app/api/runtime/runs/[id]/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/runs/[id]/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/runs/route.js +0 -51
- package/.next/standalone/.next/server/app/api/runtime/runs/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/runs/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/status/route.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/status/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/status/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/telemetry/route.js +0 -133
- package/.next/standalone/.next/server/app/api/runtime/telemetry/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/telemetry/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/timeline/route.js +0 -133
- package/.next/standalone/.next/server/app/api/runtime/timeline/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/timeline/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/update-check/route.js +0 -1
- package/.next/standalone/.next/server/app/api/runtime/update-check/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/runtime/update-check/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/disable/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/disable/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/disable/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/enable/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/enable/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/enable/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/files/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/files/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/files/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/install/route.js +0 -36
- package/.next/standalone/.next/server/app/api/skills/[id]/install/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/install/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/load/route.js +0 -141
- package/.next/standalone/.next/server/app/api/skills/[id]/load/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/load/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/catalog/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/catalog/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/catalog/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/categories/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/categories/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/categories/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/hub/install/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/hub/install/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/hub/install/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/hub/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/hub/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/hub/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/route.js +0 -1
- package/.next/standalone/.next/server/app/api/skills/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/skills/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/telemetry/route.js +0 -133
- package/.next/standalone/.next/server/app/api/telemetry/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/telemetry/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/api/uploads/route.js +0 -36
- package/.next/standalone/.next/server/app/api/uploads/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/api/uploads/route_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/chat/page.js +0 -4
- package/.next/standalone/.next/server/app/chat/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/chat/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/extensions/[id]/page.js +0 -2
- package/.next/standalone/.next/server/app/extensions/[id]/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/extensions/[id]/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/extensions/page.js +0 -2
- package/.next/standalone/.next/server/app/extensions/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/extensions/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/favicon.ico/route.js +0 -1
- package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/favicon.ico.body +0 -0
- package/.next/standalone/.next/server/app/favicon.ico.meta +0 -1
- package/.next/standalone/.next/server/app/icon.svg/route.js +0 -1
- package/.next/standalone/.next/server/app/icon.svg/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/icon.svg.body +0 -10
- package/.next/standalone/.next/server/app/icon.svg.meta +0 -1
- package/.next/standalone/.next/server/app/index.html +0 -1
- package/.next/standalone/.next/server/app/index.meta +0 -9
- package/.next/standalone/.next/server/app/index.rsc +0 -19
- package/.next/standalone/.next/server/app/login/page.js +0 -2
- package/.next/standalone/.next/server/app/login/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/memory/page.js +0 -2
- package/.next/standalone/.next/server/app/memory/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/memory/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/page.js +0 -2
- package/.next/standalone/.next/server/app/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/profiles/page.js +0 -2
- package/.next/standalone/.next/server/app/profiles/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/profiles/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/approvals/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/approvals/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/approvals/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/artifacts/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/artifacts/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/artifacts/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/audit/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/audit/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/audit/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/health/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/health/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/health/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/mcp-diagnostics/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/mcp-diagnostics/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/mcp-diagnostics/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/runs/[id]/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/runs/[id]/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/runs/[id]/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/runs/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/runs/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/runs/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/settings/telemetry/page.js +0 -2
- package/.next/standalone/.next/server/app/settings/telemetry/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/settings/telemetry/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/skills/[id]/page.js +0 -2
- package/.next/standalone/.next/server/app/skills/[id]/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/skills/[id]/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app/skills/page.js +0 -2
- package/.next/standalone/.next/server/app/skills/page.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/skills/page_client-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +0 -68
- package/.next/standalone/.next/server/chunks/1318.js +0 -1
- package/.next/standalone/.next/server/chunks/1331.js +0 -22
- package/.next/standalone/.next/server/chunks/1692.js +0 -1
- package/.next/standalone/.next/server/chunks/4455.js +0 -18
- package/.next/standalone/.next/server/chunks/4561.js +0 -1
- package/.next/standalone/.next/server/chunks/4679.js +0 -1
- package/.next/standalone/.next/server/chunks/4689.js +0 -25
- package/.next/standalone/.next/server/chunks/5611.js +0 -6
- package/.next/standalone/.next/server/chunks/6143.js +0 -9
- package/.next/standalone/.next/server/chunks/671.js +0 -1
- package/.next/standalone/.next/server/chunks/6802.js +0 -1
- package/.next/standalone/.next/server/chunks/7127.js +0 -145
- package/.next/standalone/.next/server/chunks/8574.js +0 -21
- package/.next/standalone/.next/server/chunks/9350.js +0 -143
- package/.next/standalone/.next/server/chunks/9546.js +0 -1
- package/.next/standalone/.next/server/functions-config-manifest.json +0 -4
- package/.next/standalone/.next/server/instrumentation.js +0 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +0 -1
- package/.next/standalone/.next/server/middleware-manifest.json +0 -6
- package/.next/standalone/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/.next/standalone/.next/server/next-font-manifest.js +0 -1
- package/.next/standalone/.next/server/next-font-manifest.json +0 -1
- package/.next/standalone/.next/server/pages/404.html +0 -1
- package/.next/standalone/.next/server/pages/500.html +0 -1
- package/.next/standalone/.next/server/pages/_app.js +0 -1
- package/.next/standalone/.next/server/pages/_app.js.nft.json +0 -1
- package/.next/standalone/.next/server/pages/_document.js +0 -1
- package/.next/standalone/.next/server/pages/_document.js.nft.json +0 -1
- package/.next/standalone/.next/server/pages/_error.js +0 -19
- package/.next/standalone/.next/server/pages/_error.js.nft.json +0 -1
- package/.next/standalone/.next/server/pages-manifest.json +0 -6
- package/.next/standalone/.next/server/server-reference-manifest.js +0 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +0 -1
- package/.next/standalone/.next/server/webpack-runtime.js +0 -1
- package/.next/standalone/.next/static/XMv0qC_omPPK6ae6-5hb_/_buildManifest.js +0 -1
- package/.next/standalone/.next/static/chunks/1255-aadf393aa3a56bfa.js +0 -1
- package/.next/standalone/.next/static/chunks/1309-d826505bfad78fd1.js +0 -1
- package/.next/standalone/.next/static/chunks/2231-e0d8768bfce5fe57.js +0 -1
- package/.next/standalone/.next/static/chunks/4611-6b95c4a66713a3f3.js +0 -1
- package/.next/standalone/.next/static/chunks/4879-36321f505e9ce82a.js +0 -1
- package/.next/standalone/.next/static/chunks/4bd1b696-f785427dddbba9fb.js +0 -1
- package/.next/standalone/.next/static/chunks/5097-0a676d90b3a410e0.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/audit/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/auth/login/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/auth/logout/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/chat/sessions/[id]/fork/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/chat/sessions/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/chat/sessions/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/chat/stream/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/extensions/[id]/capabilities/[capabilityId]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/extensions/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/extensions/[id]/test/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/extensions/mcp/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/extensions/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/memory/agent/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/memory/context-inspector/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/memory/session-search/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/memory/user/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/profiles/[id]/config/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/profiles/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/profiles/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/approvals/[toolCallId]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/approvals/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/artifacts/download/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/artifacts/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/export/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/health/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/mcp-probes/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/runs/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/runs/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/status/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/telemetry/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/timeline/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runtime/update-check/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/[id]/disable/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/[id]/enable/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/[id]/files/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/[id]/install/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/[id]/load/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/catalog/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/categories/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/hub/install/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/hub/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/skills/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/telemetry/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/uploads/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/chat/page-5d2391a8c8b9a728.js +0 -1
- package/.next/standalone/.next/static/chunks/app/extensions/page-e19f9f9185ac856e.js +0 -1
- package/.next/standalone/.next/static/chunks/app/layout-0bc970399be389b5.js +0 -1
- package/.next/standalone/.next/static/chunks/app/login/page-71ffcdccc7fef050.js +0 -1
- package/.next/standalone/.next/static/chunks/app/memory/page-96f1f3655df208d2.js +0 -1
- package/.next/standalone/.next/static/chunks/app/page-bc3ee2d6661cba9d.js +0 -1
- package/.next/standalone/.next/static/chunks/app/profiles/page-72df7a1270e2e640.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/artifacts/page-957ad89f696d54f3.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/audit/page-81e2c0c9fd2aca21.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/health/page-d0356eadc77529ab.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/mcp-diagnostics/page-126f59c48d7080f3.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/page-2ad973088b08a019.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/runs/[id]/page-59db2e03bade75a5.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/runs/page-0cef3d042476b94a.js +0 -1
- package/.next/standalone/.next/static/chunks/app/skills/[id]/page-519e15c835a874a8.js +0 -1
- package/.next/standalone/.next/static/chunks/app/skills/page-68d9b51f5efc768c.js +0 -1
- package/.next/standalone/.next/static/chunks/framework-f31701c9d93f12a4.js +0 -1
- package/.next/standalone/.next/static/chunks/main-1ac9e0711a0eb944.js +0 -1
- package/.next/standalone/.next/static/chunks/pages/_app-6c8c2371b16a04b8.js +0 -1
- package/.next/standalone/.next/static/chunks/pages/_error-94812ad32cad7365.js +0 -1
- package/.next/standalone/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/.next/standalone/.next/static/chunks/webpack-0100acb42ec0d4c7.js +0 -1
- package/.next/standalone/.next/static/css/c673dd080485d07a.css +0 -3
- package/.next/static/XMv0qC_omPPK6ae6-5hb_/_buildManifest.js +0 -1
- package/.next/static/XMv0qC_omPPK6ae6-5hb_/_ssgManifest.js +0 -1
- package/.next/static/chunks/1309-d826505bfad78fd1.js +0 -1
- package/.next/static/chunks/4611-6b95c4a66713a3f3.js +0 -1
- package/.next/static/chunks/5097-0a676d90b3a410e0.js +0 -1
- package/.next/static/chunks/app/_not-found/page-9c90a6b39424f003.js +0 -1
- package/.next/static/chunks/app/api/audit/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/auth/login/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/chat/sessions/[id]/fork/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/chat/sessions/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/chat/sessions/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/chat/stream/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/extensions/[id]/capabilities/[capabilityId]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/extensions/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/extensions/[id]/test/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/extensions/mcp/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/extensions/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/memory/agent/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/memory/context-inspector/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/memory/session-search/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/memory/user/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/profiles/[id]/config/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/profiles/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/profiles/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/approvals/[toolCallId]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/approvals/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/artifacts/download/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/artifacts/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/export/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/health/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/mcp-probes/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/runs/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/runs/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/status/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/telemetry/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/timeline/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/runtime/update-check/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/[id]/disable/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/[id]/enable/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/[id]/files/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/[id]/install/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/[id]/load/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/[id]/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/catalog/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/categories/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/hub/install/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/hub/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/skills/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/telemetry/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/api/uploads/route-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/chat/page-5d2391a8c8b9a728.js +0 -1
- package/.next/static/chunks/app/extensions/[id]/page-fa0248fe2425f7fa.js +0 -1
- package/.next/static/chunks/app/extensions/page-e19f9f9185ac856e.js +0 -1
- package/.next/static/chunks/app/layout-0bc970399be389b5.js +0 -1
- package/.next/static/chunks/app/login/page-71ffcdccc7fef050.js +0 -1
- package/.next/static/chunks/app/page-bc3ee2d6661cba9d.js +0 -1
- package/.next/static/chunks/app/profiles/page-72df7a1270e2e640.js +0 -1
- package/.next/static/chunks/app/settings/approvals/page-32a14ddc05425eac.js +0 -1
- package/.next/static/chunks/app/settings/artifacts/page-957ad89f696d54f3.js +0 -1
- package/.next/static/chunks/app/settings/audit/page-81e2c0c9fd2aca21.js +0 -1
- package/.next/static/chunks/app/settings/health/page-d0356eadc77529ab.js +0 -1
- package/.next/static/chunks/app/settings/mcp-diagnostics/page-126f59c48d7080f3.js +0 -1
- package/.next/static/chunks/app/settings/page-2ad973088b08a019.js +0 -1
- package/.next/static/chunks/app/settings/runs/[id]/page-59db2e03bade75a5.js +0 -1
- package/.next/static/chunks/app/settings/telemetry/page-e7d50b61ed3a4d22.js +0 -1
- package/.next/static/chunks/app/skills/[id]/page-519e15c835a874a8.js +0 -1
- package/.next/static/chunks/app/skills/page-68d9b51f5efc768c.js +0 -1
- package/.next/static/chunks/main-app-a9e2c007d433eaf9.js +0 -1
- package/.next/static/chunks/webpack-0100acb42ec0d4c7.js +0 -1
- package/.next/static/css/c673dd080485d07a.css +0 -3
- /package/.next/{standalone/.next/static/XMv0qC_omPPK6ae6-5hb_ → static/1rIKKfgwcoD-Sz4I0QlZE}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5094],{962:(e,s,t)=>{"use strict";t.d(s,{Ho:()=>o,P4:()=>c,c$:()=>d,qw:()=>i});var l=t(2454),r=t(9776),n=t(549),a=t(9678);function i(){return(0,l.I)({queryKey:["plugins"],queryFn:()=>(0,a.n)("/api/plugins"),select:e=>e.plugins})}function d(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,a.n)("/api/plugins/install",{method:"POST",body:JSON.stringify(e)}),onSuccess:()=>{e.invalidateQueries({queryKey:["plugins"]})}})}function o(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,a.n)("/api/plugins/".concat(e),{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["plugins"]})}})}function c(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{id:s,enabled:t}=e;return(0,a.n)("/api/plugins/".concat(s,"/enable"),{method:"POST",body:JSON.stringify({enabled:t})})},onSuccess:()=>{e.invalidateQueries({queryKey:["plugins"]})}})}},1339:(e,s,t)=>{"use strict";t.d(s,{MarketplaceScreen:()=>L});var l=t(5155),r=t(2115),n=t(8486),a=t(8192),i=t(8599),d=t(5136),o=t(6651),c=t(5229),u=t(5740),m=t(3842),x=t(4269),p=t(4412),h=t(1375),g=t(2454),f=t(9678);async function b(e){let s=encodeURIComponent(e),[t,l,r]=await Promise.all([(0,f.n)("/api/skills/hub?q=".concat(s)),(0,f.n)("/api/extensions/hub?q=".concat(s)),(0,f.n)("/api/plugins")]),n=e.toLowerCase(),a=r.plugins.filter(e=>e.name.toLowerCase().includes(n)||e.description.toLowerCase().includes(n));return{skills:t.skills,mcpServers:l.servers,plugins:a,total:t.skills.length+l.servers.length+a.length}}var y=t(6670),v=t(962),j=t(9318);let N=(0,r.lazy)(()=>t.e(9475).then(t.bind(t,9475)).then(e=>({default:e.McpHub}))),k=(0,r.lazy)(()=>t.e(3140).then(t.bind(t,3140)).then(e=>({default:e.PluginsScreen}))),w=(0,r.lazy)(()=>t.e(1257).then(t.bind(t,1257)).then(e=>({default:e.SkillsScreen}))),S=[{id:"skills",label:"Skills",icon:n.A,discoverLabel:"Reusable procedures, references, and templates ready to install.",inventoryLabel:"Review the skills already installed in this workspace."},{id:"mcp-servers",label:"MCP servers",icon:a.A,discoverLabel:"Connect live tools and external systems through the MCP ecosystem.",inventoryLabel:"See which MCP servers are available to this profile right now."},{id:"plugins",label:"Plugins",icon:i.A,discoverLabel:"Extend Pan with custom tool bundles, hooks, and integrations.",inventoryLabel:"Manage installed plugins and add more when needed."}];function P(e){let{icon:s,eyebrow:t,title:r,description:n,meta:a,onOpen:i}=e;return(0,l.jsxs)("button",{type:"button",onClick:i,className:"rounded-2xl border border-border/70 bg-card/70 p-4 text-left shadow-[var(--shadow-card)] transition hover:-translate-y-0.5 hover:bg-card",children:[(0,l.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary/10 text-primary",children:(0,l.jsx)(s,{className:"h-5 w-5"})}),(0,l.jsx)("p",{className:"mt-4 text-2xs font-semibold uppercase tracking-label text-muted-foreground",children:t}),(0,l.jsx)("h3",{className:"mt-1 text-base font-semibold text-foreground",children:r}),(0,l.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:n}),(0,l.jsx)("p",{className:"mt-4 text-xs font-medium text-foreground",children:a})]})}function q(e){var s;let{skill:t}=e;return(0,l.jsxs)("div",{className:"rounded-2xl border border-border/70 bg-card/70 p-4 shadow-[var(--shadow-card)]",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h3",{className:"truncate text-sm font-semibold text-foreground",children:t.name}),(0,l.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:t.repo})]}),(0,l.jsx)("span",{className:"rounded-full border border-border/70 bg-background/70 px-2 py-1 text-2xs font-medium text-foreground",children:t.trustLevel})]}),(0,l.jsx)("p",{className:"mt-3 line-clamp-3 text-sm leading-6 text-muted-foreground",children:(null==(s=t.detail)?void 0:s.summary)||t.description}),(0,l.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[null!=t.installs?(0,l.jsxs)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:[t.installs.toLocaleString()," installs"]}):null,t.tags.slice(0,2).map(e=>(0,l.jsx)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:e},e))]})]})}function C(e){let{server:s}=e;return(0,l.jsxs)("div",{className:"rounded-2xl border border-border/70 bg-card/70 p-4 shadow-[var(--shadow-card)]",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h3",{className:"truncate text-sm font-semibold text-foreground",children:s.title||s.name}),(0,l.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s.author||s.category})]}),(0,l.jsx)("span",{className:"rounded-full border border-border/70 bg-background/70 px-2 py-1 text-2xs font-medium text-foreground",children:s.verified?"verified":s.transport})]}),(0,l.jsx)("p",{className:"mt-3 line-clamp-3 text-sm leading-6 text-muted-foreground",children:s.description}),(0,l.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,l.jsx)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:s.transport}),(0,l.jsx)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:s.category}),s.tools.length?(0,l.jsxs)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:[s.tools.length," tools"]}):null]})]})}function A(e){let{plugin:s}=e;return(0,l.jsxs)("div",{className:"rounded-2xl border border-border/70 bg-card/70 p-4 shadow-[var(--shadow-card)]",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h3",{className:"truncate text-sm font-semibold text-foreground",children:s.name}),(0,l.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["v",s.version]})]}),(0,l.jsx)("span",{className:"rounded-full border border-border/70 bg-background/70 px-2 py-1 text-2xs font-medium text-foreground",children:s.enabled?"enabled":"installed"})]}),(0,l.jsx)("p",{className:"mt-3 line-clamp-3 text-sm leading-6 text-muted-foreground",children:s.description}),(0,l.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,l.jsx)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:s.source}),s.providedTools.length?(0,l.jsxs)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:[s.providedTools.length," tools"]}):null,s.providedHooks.length?(0,l.jsxs)("span",{className:"rounded-full bg-muted/60 px-2 py-1 text-2xs text-muted-foreground",children:[s.providedHooks.length," hooks"]}):null]})]})}function L(){var e,s,t,f,L,O,E,F,M;let[I,T]=(0,r.useState)("skills"),[K,Q]=(0,r.useState)("discover"),[R,J]=(0,r.useState)(""),[_,D]=(0,r.useState)(""),z=(0,r.useRef)(null);(0,r.useEffect)(()=>(z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{D(R.trim())},300),()=>{z.current&&clearTimeout(z.current)}),[R]);let H=_.length>0,U=(0,g.I)({queryKey:["marketplace-search",_],queryFn:()=>b(_),enabled:_.trim().length>0}),W=(0,j.vb)(),$=(0,y.J)(),B=(0,v.qw)(),G=(0,r.useMemo)(()=>{var e,s;return(null!=(s=null==(e=W.data)?void 0:e.skills)?s:[]).slice(0,3)},[null==(e=W.data)?void 0:e.skills]),V=(0,r.useMemo)(()=>{var e,s;return(null!=(s=null==(e=$.data)?void 0:e.servers)?s:[]).filter(e=>e.verified).slice(0,3)},[null==(s=$.data)?void 0:s.servers]),X=(0,r.useMemo)(()=>{var e;return(null!=(e=B.data)?e:[]).slice(0,3)},[B.data]),Y=null!=(O=S.find(e=>e.id===I))?O:S[0];return(0,l.jsxs)("div",{className:"h-full space-y-5 overflow-y-auto p-4 pb-8 lg:p-6 lg:pb-10",children:[(0,l.jsx)("section",{className:"rounded-3xl border border-border/70 bg-[linear-gradient(135deg,rgba(7,52,85,0.14),rgba(9,70,104,0.08),rgba(233,200,25,0.08))] p-5 shadow-[var(--shadow-elevated)] lg:p-6",children:(0,l.jsxs)("div",{className:"flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between",children:[(0,l.jsxs)("div",{className:"max-w-3xl",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"flex h-11 w-11 items-center justify-center rounded-2xl bg-primary/12 text-primary",children:(0,l.jsx)(d.A,{className:"h-5 w-5"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-xs font-semibold uppercase tracking-label text-muted-foreground",children:"Marketplace"}),(0,l.jsx)("h1",{className:"text-2xl font-semibold text-foreground",children:"Discover what to add next"})]})]}),(0,l.jsx)("p",{className:"mt-4 text-sm leading-6 text-muted-foreground",children:"Browse skills, MCP servers, and plugins from one place. Use the search bar for the full marketplace, then switch into a section only when you want local filters and deeper inventory controls."})]}),(0,l.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3 lg:min-w-[420px]",children:[(0,l.jsx)(P,{icon:n.A,eyebrow:"Skills",title:"Reusable know-how",description:"Install proven procedures, references, and templates for recurring work.",meta:"".concat(null!=(E=null==(t=W.data)?void 0:t.skills.length)?E:0," discoverable now"),onOpen:()=>{Q("discover"),T("skills")}}),(0,l.jsx)(P,{icon:a.A,eyebrow:"MCP servers",title:"Live tools",description:"Connect external systems and tool surfaces through the MCP ecosystem.",meta:"".concat(null!=(F=null==(f=$.data)?void 0:f.servers.length)?F:0," listed right now"),onOpen:()=>{Q("discover"),T("mcp-servers")}}),(0,l.jsx)(P,{icon:i.A,eyebrow:"Plugins",title:"Agent extensions",description:"Add custom tool bundles, hooks, and runtime integrations when you need them.",meta:"".concat(null!=(M=null==(L=B.data)?void 0:L.length)?M:0," installed in this workspace"),onOpen:()=>{Q("installed"),T("plugins")}})]})]})}),(0,l.jsxs)("section",{className:"space-y-3 rounded-2xl border border-border/70 bg-card/60 p-4 shadow-[var(--shadow-card)]",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-xs font-semibold uppercase tracking-label text-muted-foreground",children:"Marketplace search"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"This searches across skills, MCP servers, and plugins. Any extra search controls below only filter the current section."})]}),(0,l.jsxs)("div",{className:"relative max-w-2xl",children:[(0,l.jsx)(o.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,l.jsx)("input",{type:"text",placeholder:"Search the full marketplace catalog…",value:R,onChange:e=>J(e.target.value),className:"w-full rounded-xl border border-border/70 bg-background/80 py-2.5 pl-9 pr-9 text-sm outline-none placeholder:text-muted-foreground focus:ring-2 focus:ring-primary/30"}),R?(0,l.jsx)("button",{type:"button",onClick:()=>J(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:(0,l.jsx)(c.A,{className:"h-4 w-4"})}):null]})]}),H?(0,l.jsxs)("section",{className:"space-y-6",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsx)("span",{className:"rounded-full bg-primary/10 px-3 py-1 text-xs font-medium text-primary",children:"Searching across the marketplace"}),(0,l.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Results for “",_,"” are grouped by type so discovery and inventory do not blur together."]})]}),U.isLoading?(0,l.jsx)(p.O,{}):null,U.isError?(0,l.jsx)(h.W5,{title:"Search failed",error:U.error,description:"We could not load marketplace results right now. Try again in a moment."}):null,U.data&&0===U.data.total?(0,l.jsx)(h.pp,{title:"No marketplace results",description:(0,l.jsxs)(l.Fragment,{children:["No results found for “",_,"”. Try a broader term or clear the marketplace search."]})}):null,U.data&&U.data.skills.length>0?(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(n.A,{className:"h-4 w-4 text-primary"}),(0,l.jsx)("h2",{className:"text-sm font-semibold text-foreground",children:"Skills"}),(0,l.jsx)("span",{className:"rounded-full bg-muted/60 px-2 py-0.5 text-2xs text-muted-foreground",children:U.data.skills.length})]}),(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:U.data.skills.map(e=>(0,l.jsx)(q,{skill:e},e.id))})]}):null,U.data&&U.data.mcpServers.length>0?(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(a.A,{className:"h-4 w-4 text-primary"}),(0,l.jsx)("h2",{className:"text-sm font-semibold text-foreground",children:"MCP servers"}),(0,l.jsx)("span",{className:"rounded-full bg-muted/60 px-2 py-0.5 text-2xs text-muted-foreground",children:U.data.mcpServers.length})]}),(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:U.data.mcpServers.map(e=>(0,l.jsx)(C,{server:e},e.id))})]}):null,U.data&&U.data.plugins.length>0?(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(i.A,{className:"h-4 w-4 text-primary"}),(0,l.jsx)("h2",{className:"text-sm font-semibold text-foreground",children:"Plugins"}),(0,l.jsx)("span",{className:"rounded-full bg-muted/60 px-2 py-0.5 text-2xs text-muted-foreground",children:U.data.plugins.length})]}),(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:U.data.plugins.map(e=>(0,l.jsx)(A,{plugin:e},e.id))})]}):null]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("section",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>Q("discover"),className:(0,x.cn)("inline-flex items-center gap-2 rounded-2xl px-4 py-2 text-sm font-medium transition","discover"===K?"bg-primary text-primary-foreground shadow-sm":"border border-border/70 text-muted-foreground hover:bg-card"),children:[(0,l.jsx)(u.A,{className:"h-4 w-4"}),"Discover"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>Q("installed"),className:(0,x.cn)("inline-flex items-center gap-2 rounded-2xl px-4 py-2 text-sm font-medium transition","installed"===K?"bg-primary text-primary-foreground shadow-sm":"border border-border/70 text-muted-foreground hover:bg-card"),children:[(0,l.jsx)(m.A,{className:"h-4 w-4"}),"Installed inventory"]})]}),"discover"===K?(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsxs)("section",{className:"grid gap-6 xl:grid-cols-3",children:[(0,l.jsxs)("div",{className:"space-y-3 xl:col-span-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(n.A,{className:"h-4 w-4 text-primary"}),(0,l.jsx)("h2",{className:"text-sm font-semibold text-foreground",children:"Featured skills"})]}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Start with reusable instructions and references before you reach for lower-level wiring."}),W.isLoading?(0,l.jsx)(p.O,{}):null,!W.isLoading&&G.length?(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:G.map(e=>(0,l.jsx)(q,{skill:e},e.id))}):null]}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(i.A,{className:"h-4 w-4 text-primary"}),(0,l.jsx)("h2",{className:"text-sm font-semibold text-foreground",children:"Plugin posture"})]}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Plugins are the most opinionated extensions. Keep them secondary to discovery, but visible when you need deeper customization."}),X.length?(0,l.jsx)("div",{className:"space-y-4",children:X.map(e=>(0,l.jsx)(A,{plugin:e},e.id))}):(0,l.jsx)(h.pp,{title:"No plugins installed yet",description:"Use plugins when you need custom tool bundles, lifecycle hooks, or repo-based extensions. They stay secondary to skills and MCP discovery by design."})]})]}),(0,l.jsxs)("section",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(a.A,{className:"h-4 w-4 text-primary"}),(0,l.jsx)("h2",{className:"text-sm font-semibold text-foreground",children:"Recommended MCP servers"})]}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"These cards surface trust, transport, and tool scope before you dive into the full catalog."}),$.isLoading?(0,l.jsx)(p.O,{}):null,!$.isLoading&&V.length?(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:V.map(e=>(0,l.jsx)(C,{server:e},e.id))}):null]})]}):null,(0,l.jsxs)("section",{className:"space-y-4 rounded-2xl border border-border/70 bg-card/60 p-4 shadow-[var(--shadow-card)]",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:S.map(e=>{let{id:s,label:t,icon:r}=e;return(0,l.jsxs)("button",{type:"button",onClick:()=>T(s),className:(0,x.cn)("inline-flex items-center gap-1.5 rounded-2xl px-4 py-2 text-sm font-medium transition",I===s?"bg-primary text-primary-foreground shadow-sm":"border border-border/70 text-muted-foreground hover:bg-card"),children:[(0,l.jsx)(r,{className:"h-3.5 w-3.5"}),t]},s)})}),(0,l.jsxs)("p",{className:"text-sm text-muted-foreground",children:["discover"===K?Y.discoverLabel:Y.inventoryLabel," Local controls below only affect this section."]})]}),(0,l.jsxs)(r.Suspense,{fallback:(0,l.jsx)(p.O,{}),children:["skills"===I?(0,l.jsx)(w,{}):null,"mcp-servers"===I?(0,l.jsx)(N,{}):null,"plugins"===I?(0,l.jsx)(k,{}):null]})]})]})]})}},3842:(e,s,t)=>{"use strict";t.d(s,{A:()=>l});let l=(0,t(1847).A)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},5971:(e,s,t)=>{Promise.resolve().then(t.bind(t,1935)),Promise.resolve().then(t.bind(t,9136)),Promise.resolve().then(t.bind(t,6981)),Promise.resolve().then(t.bind(t,1339))},9318:(e,s,t)=>{"use strict";t.d(s,{$P:()=>g,F8:()=>p,I3:()=>u,Pt:()=>o,Qc:()=>f,a$:()=>d,aO:()=>m,b_:()=>x,hL:()=>h,jM:()=>y,vb:()=>b});var l=t(2454),r=t(9776),n=t(549),a=t(9678),i=t(9054);function d(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,l.I)({queryKey:["skills",e],queryFn:()=>(0,a.n)("/api/skills".concat(e?"?installed=true":"")),select:e=>(0,i.iF)(e.skills)})}function o(e){return(0,l.I)({queryKey:["skill",e],queryFn:()=>(0,a.n)("/api/skills/".concat(e)),select:e=>(0,i.d)(e.skill),enabled:!!e})}function c(e,s){let t=(0,i.d)(s);e.invalidateQueries({queryKey:["skills"]}),e.setQueryData(["skill",t.id],{skill:t})}function u(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,a.n)("/api/skills/".concat(e,"/install"),{method:"POST"}),onSuccess:s=>{let{skill:t}=s;return c(e,t)}})}function m(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{skillId:s,enabled:t}=e;return(0,a.n)("/api/skills/".concat(s,"/enable"),{method:"POST",body:JSON.stringify({enabled:t})})},onSuccess:s=>{let{skill:t}=s;return c(e,t)}})}function x(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{skillId:s,content:t}=e;return(0,a.n)("/api/skills/".concat(s),{method:"PATCH",body:JSON.stringify({content:t})})},onSuccess:s=>{let{skill:t}=s;return c(e,t)}})}function p(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{skillId:s,sessionId:t}=e;return(0,a.n)("/api/skills/".concat(s,"/load"),{method:"POST",body:JSON.stringify({sessionId:t})})},onSuccess:(s,t)=>{let{skill:l}=s;c(e,l),e.setQueryData(["session",t.sessionId],e=>{var s;if(!(null==e?void 0:e.session))return e;let l=null!=(s=e.session.loadedSkillIds)?s:[];return{...e,session:{...e.session,loadedSkillIds:l.includes(t.skillId)?l:[t.skillId,...l]}}}),e.invalidateQueries({queryKey:["session",t.sessionId]})}})}function h(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>(0,a.n)("/api/skills/".concat(e),{method:"DELETE"}),onSuccess:s=>{let{skill:t}=s;return c(e,t)}})}function g(){return(0,l.I)({queryKey:["skill-categories"],queryFn:()=>(0,a.n)("/api/skills/categories"),select:e=>e.categories})}function f(e,s){return(0,l.I)({queryKey:["skill-file",e,s],queryFn:()=>(0,a.n)("/api/skills/".concat(e,"/files?path=").concat(encodeURIComponent(s))),enabled:!!(e&&s)})}function b(e){let s=e?"?q=".concat(encodeURIComponent(e)):"";return(0,l.I)({queryKey:["hub-skills",null!=e?e:""],queryFn:()=>(0,a.n)("/api/skills/hub".concat(s))})}function y(){let e=(0,r.jE)();return(0,n.n)({mutationFn:e=>{let{identifier:s,category:t}=e;return(0,a.n)("/api/skills/hub/install",{method:"POST",body:JSON.stringify({identifier:s,category:t})})},onSuccess:()=>{e.invalidateQueries({queryKey:["skills"]}),e.invalidateQueries({queryKey:["hub-skills"]}),e.invalidateQueries({queryKey:["skill-categories"]})}})}}},e=>{e.O(0,[2231,1635,4879,5097,9860,8441,1255,7358],()=>e(e.s=5971)),_N_E=e.O()}]);
|
package/.next/static/chunks/app/memory/{page-96f1f3655df208d2.js → page-f95977739323e68e.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7620],{8684:(e,r,s)=>{Promise.resolve().then(s.bind(s,1935)),Promise.resolve().then(s.bind(s,9136)),Promise.resolve().then(s.bind(s,6981)),Promise.resolve().then(s.bind(s,9026))},9026:(e,r,s)=>{"use strict";s.d(r,{MemoryScreen:()=>u});var d=s(5155),t=s(2115),n=s(8584),o=s(2604);function l(){var e,r,s,t,l,a,i,c;let{selectedProfileId:m,activeSessionId:x}=(0,o.j)(),u=(0,n.Ux)(m,x).data;return(0,d.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Context inspector"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"See what the agent is currently using as session and profile context."}),u?(0,d.jsxs)("div",{className:"mt-4 space-y-4 text-sm",children:[(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Profile:"})," ",null!=(e=u.activeProfileId)?e:"none"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Session:"})," ",null!=(s=null!=(r=u.activeSessionTitle)?r:u.activeSessionId)?s:"none"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Preview:"})," ",null!=(t=u.activeSessionPreview)?t:"No preview captured yet."]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Model:"})," ",null!=(l=u.model)?l:"n/a"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Provider:"})," ",null!=(a=u.provider)?a:"n/a"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Policy:"})," ",null!=(i=u.policyPreset)?i:"n/a"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Memory mode:"})," ",null!=(c=u.memoryMode)?c:"n/a"]})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium",children:"Loaded skills"}),(0,d.jsx)("p",{className:"mt-1 text-muted-foreground",children:u.loadedSkillIds.length?u.loadedSkillIds.join(", "):"None"})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium",children:"User memory injected"}),(0,d.jsx)("p",{className:"mt-1 text-muted-foreground",children:u.userMemory.length?u.userMemory.join(" \xb7 "):"None"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium",children:"Agent memory injected"}),(0,d.jsx)("p",{className:"mt-1 text-muted-foreground",children:u.agentMemory.length?u.agentMemory.join(" \xb7 "):"None"})]})]})]}):null]})}var a=s(9068);let i=(0,s(1847).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function c(e){var r,s,o;let{scope:l}=e,c=(0,n.PA)(l),m=(0,n.I8)(l),[x,u]=(0,t.useState)(""),[h,b]=(0,t.useState)(!1),p=c.data,g=null!=(r=null==p?void 0:p.entries)?r:[],j=null!=(s=null==p?void 0:p.globalEntries)?s:[],f=null!=(o=null==p?void 0:p.raw)?o:"";async function N(){await m.mutateAsync(x),b(!0),setTimeout(()=>b(!1),2e3)}return(0,t.useEffect)(()=>{u(f)},[f]),(0,d.jsxs)("div",{className:"space-y-5",children:[j.length>0?(0,d.jsxs)("section",{className:"rounded-2xl border border-border/70 bg-card/60 p-5 shadow-sm",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(a.A,{className:"h-4 w-4 text-blue-400"}),(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Global ","user"===l?"user":"agent"," memory"]}),(0,d.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-3xs font-medium text-blue-400",children:"shared"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-2 text-sm text-muted-foreground",children:[(0,d.jsx)("strong",{className:"text-foreground",children:j.length})," ",1===j.length?"entry":"entries"]})]}),(0,d.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Applies to all profiles. Stored at ~/.hermes/memories/. Read-only in this view."}),(0,d.jsx)("div",{className:"mt-3 space-y-2",children:j.map(e=>(0,d.jsx)("div",{className:"rounded-xl border border-border/50 bg-background/60 p-3 text-sm leading-relaxed text-muted-foreground",children:e.content},e.id))})]}):null,(0,d.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(i,{className:"h-4 w-4 text-primary"}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Profile ","user"===l?"user":"agent"," memory"]}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Scoped to the current profile. Editable. Use \xa7 on its own line to separate entries."})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3 text-sm text-muted-foreground",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Entries:"})," ",g.length]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Audience:"})," ","user"===l?"About the user":"About the agent and the environment"]})]})]}),(0,d.jsx)("div",{className:"mt-4 rounded-xl border border-border bg-background p-4 text-sm text-muted-foreground",children:"user"===l?"Keep only stable user preferences and facts that reduce future repetition. Avoid transient task details.":"Keep stable environment notes, conventions, and recurring workflow facts. Avoid one-off progress notes."}),(0,d.jsx)("textarea",{value:x,onChange:e=>u(e.target.value),className:"mt-4 min-h-64 w-full rounded-2xl border border-border bg-background p-4 font-mono text-sm leading-6 outline-none focus:border-primary"}),(0,d.jsxs)("div",{className:"mt-4 flex items-center justify-end gap-3",children:[h?(0,d.jsx)("span",{className:"text-sm text-emerald-400",children:"✓ Saved"}):null,m.isPending?(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:"Saving…"}):null,(0,d.jsxs)("button",{type:"button",onClick:()=>void N(),disabled:m.isPending,className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50",children:["Save ",l," memory"]})]})]})]})}var m=s(63);function x(){var e,r,s;let l=(0,m.useRouter)(),{setActiveSessionId:a}=(0,o.j)(),[i,c]=(0,t.useState)(""),x=(0,n.SS)(i);return(0,d.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Session search"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Search prior conversations independently from prompt memory."}),(0,d.jsx)("input",{value:i,onChange:e=>c(e.target.value),placeholder:"Search prior sessions…",className:"mt-4 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,d.jsxs)("div",{className:"mt-4 space-y-3",children:[(null!=(r=x.data)?r:[]).map(e=>(0,d.jsxs)("button",{type:"button",onClick:()=>{a(e.id),l.push("/chat")},className:"block w-full rounded-xl border border-border bg-background p-4 text-left",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:e.title}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e.preview})]},e.id)),i.trim()&&!x.isLoading&&(null!=(s=null==(e=x.data)?void 0:e.length)?s:0)===0?(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No prior sessions matched that search."}):null]})]})}function u(){var e,r,s,a,i,m;let[u,h]=(0,t.useState)("user"),{selectedProfileId:b,activeSessionId:p}=(0,o.j)(),g=(0,n.Ux)(b,p).data;return(0,d.jsxs)("div",{className:"h-full overflow-y-auto space-y-6 p-4 lg:p-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold",children:"Memory"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect prompt memory, search prior sessions, and review current context state."})]}),(0,d.jsxs)("section",{className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:[(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Selected profile"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(r=null!=(e=null==g?void 0:g.activeProfileId)?e:b)?r:"No profile"})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Active session"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(a=null!=(s=null==g?void 0:g.activeSessionTitle)?s:p)?a:"No session"})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Loaded skills"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(i=null==g?void 0:g.loadedSkillIds.length)?i:0})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Memory mode"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(m=null==g?void 0:g.memoryMode)?m:"standard"})]})]}),(0,d.jsxs)("section",{className:"grid gap-4 lg:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm text-sm text-muted-foreground",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Memory semantics"}),(0,d.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"User memory"}),(0,d.jsx)("p",{className:"mt-1",children:"Durable facts about the human on the other side: preferences, identity, and stable habits worth carrying into future sessions."})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"Agent memory"}),(0,d.jsx)("p",{className:"mt-1",children:"Operational notes about the environment, conventions, and workflow details that help the agent behave consistently later."})]})]})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm text-sm text-muted-foreground",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Important behavior"}),(0,d.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"Editing memory is durable"}),(0,d.jsx)("p",{className:"mt-1",children:"Changes are saved immediately and affect future sessions. The current session context remains what was already loaded unless you start a fresh thread."})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"Session search is not memory"}),(0,d.jsx)("p",{className:"mt-1",children:"Search lets you recover prior conversations without promoting them into persistent memory."})]})]})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:[["user","User memory"],["agent","Agent memory"],["search","Session search"],["context","Context inspector"]].map(e=>{let[r,s]=e;return(0,d.jsx)("button",{type:"button",onClick:()=>h(r),className:"rounded-lg px-4 py-2 text-sm ".concat(u===r?"bg-primary text-primary-foreground":"border border-border text-muted-foreground"),children:s},r)})}),"user"===u?(0,d.jsx)(c,{scope:"user"}):null,"agent"===u?(0,d.jsx)(c,{scope:"agent"}):null,"search"===u?(0,d.jsx)(x,{}):null,"context"===u?(0,d.jsx)(l,{}):null]})}},9068:(e,r,s)=>{"use strict";s.d(r,{A:()=>d});let d=(0,s(1847).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"}]])}},e=>{e.O(0,[2231,4611,5097,8441,1255,7358],()=>e(e.s=8684)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7620],{6718:(e,r,s)=>{Promise.resolve().then(s.bind(s,1935)),Promise.resolve().then(s.bind(s,9136)),Promise.resolve().then(s.bind(s,6981)),Promise.resolve().then(s.bind(s,9026))},9026:(e,r,s)=>{"use strict";s.d(r,{MemoryScreen:()=>u});var d=s(5155),t=s(2115),n=s(8584),o=s(2604);function l(){var e,r,s,t,l,a,i,c;let{selectedProfileId:m,activeSessionId:x}=(0,o.j)(),u=(0,n.Ux)(m,x).data;return(0,d.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Context inspector"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"See what the agent is currently using as session and profile context."}),u?(0,d.jsxs)("div",{className:"mt-4 space-y-4 text-sm",children:[(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Profile:"})," ",null!=(e=u.activeProfileId)?e:"none"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Session:"})," ",null!=(s=null!=(r=u.activeSessionTitle)?r:u.activeSessionId)?s:"none"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Preview:"})," ",null!=(t=u.activeSessionPreview)?t:"No preview captured yet."]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Model:"})," ",null!=(l=u.model)?l:"n/a"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Provider:"})," ",null!=(a=u.provider)?a:"n/a"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Policy:"})," ",null!=(i=u.policyPreset)?i:"n/a"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Memory mode:"})," ",null!=(c=u.memoryMode)?c:"n/a"]})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium",children:"Loaded skills"}),(0,d.jsx)("p",{className:"mt-1 text-muted-foreground",children:u.loadedSkillIds.length?u.loadedSkillIds.join(", "):"None"})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium",children:"User memory injected"}),(0,d.jsx)("p",{className:"mt-1 text-muted-foreground",children:u.userMemory.length?u.userMemory.join(" \xb7 "):"None"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium",children:"Agent memory injected"}),(0,d.jsx)("p",{className:"mt-1 text-muted-foreground",children:u.agentMemory.length?u.agentMemory.join(" \xb7 "):"None"})]})]})]}):null]})}var a=s(9068);let i=(0,s(1847).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function c(e){var r,s,o;let{scope:l}=e,c=(0,n.PA)(l),m=(0,n.I8)(l),[x,u]=(0,t.useState)(""),[h,b]=(0,t.useState)(!1),p=c.data,g=null!=(r=null==p?void 0:p.entries)?r:[],j=null!=(s=null==p?void 0:p.globalEntries)?s:[],f=null!=(o=null==p?void 0:p.raw)?o:"";async function N(){await m.mutateAsync(x),b(!0),setTimeout(()=>b(!1),2e3)}return(0,t.useEffect)(()=>{u(f)},[f]),(0,d.jsxs)("div",{className:"space-y-5",children:[j.length>0?(0,d.jsxs)("section",{className:"rounded-2xl border border-border/70 bg-card/60 p-5 shadow-sm",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(a.A,{className:"h-4 w-4 text-blue-400"}),(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Global ","user"===l?"user":"agent"," memory"]}),(0,d.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-3xs font-medium text-blue-400",children:"shared"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-2 text-sm text-muted-foreground",children:[(0,d.jsx)("strong",{className:"text-foreground",children:j.length})," ",1===j.length?"entry":"entries"]})]}),(0,d.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Applies to all profiles. Stored at ~/.hermes/memories/. Read-only in this view."}),(0,d.jsx)("div",{className:"mt-3 space-y-2",children:j.map(e=>(0,d.jsx)("div",{className:"rounded-xl border border-border/50 bg-background/60 p-3 text-sm leading-relaxed text-muted-foreground",children:e.content},e.id))})]}):null,(0,d.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(i,{className:"h-4 w-4 text-primary"}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Profile ","user"===l?"user":"agent"," memory"]}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Scoped to the current profile. Editable. Use \xa7 on its own line to separate entries."})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3 text-sm text-muted-foreground",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Entries:"})," ",g.length]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Audience:"})," ","user"===l?"About the user":"About the agent and the environment"]})]})]}),(0,d.jsx)("div",{className:"mt-4 rounded-xl border border-border bg-background p-4 text-sm text-muted-foreground",children:"user"===l?"Keep only stable user preferences and facts that reduce future repetition. Avoid transient task details.":"Keep stable environment notes, conventions, and recurring workflow facts. Avoid one-off progress notes."}),(0,d.jsx)("textarea",{value:x,onChange:e=>u(e.target.value),className:"mt-4 min-h-64 w-full rounded-2xl border border-border bg-background p-4 font-mono text-sm leading-6 outline-none focus:border-primary"}),(0,d.jsxs)("div",{className:"mt-4 flex items-center justify-end gap-3",children:[h?(0,d.jsx)("span",{className:"text-sm text-emerald-400",children:"✓ Saved"}):null,m.isPending?(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:"Saving…"}):null,(0,d.jsxs)("button",{type:"button",onClick:()=>void N(),disabled:m.isPending,className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50",children:["Save ",l," memory"]})]})]})]})}var m=s(63);function x(){var e,r,s;let l=(0,m.useRouter)(),{setActiveSessionId:a}=(0,o.j)(),[i,c]=(0,t.useState)(""),x=(0,n.SS)(i);return(0,d.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Session search"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Search prior conversations independently from prompt memory."}),(0,d.jsx)("input",{value:i,onChange:e=>c(e.target.value),placeholder:"Search prior sessions…",className:"mt-4 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,d.jsxs)("div",{className:"mt-4 space-y-3",children:[(null!=(r=x.data)?r:[]).map(e=>(0,d.jsxs)("button",{type:"button",onClick:()=>{a(e.id),l.push("/chat")},className:"block w-full rounded-xl border border-border bg-background p-4 text-left",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:e.title}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e.preview})]},e.id)),i.trim()&&!x.isLoading&&(null!=(s=null==(e=x.data)?void 0:e.length)?s:0)===0?(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No prior sessions matched that search."}):null]})]})}function u(){var e,r,s,a,i,m;let[u,h]=(0,t.useState)("user"),{selectedProfileId:b,activeSessionId:p}=(0,o.j)(),g=(0,n.Ux)(b,p).data;return(0,d.jsxs)("div",{className:"h-full overflow-y-auto space-y-6 p-4 lg:p-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold",children:"Memory"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect prompt memory, search prior sessions, and review current context state."})]}),(0,d.jsxs)("section",{className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:[(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Selected profile"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(r=null!=(e=null==g?void 0:g.activeProfileId)?e:b)?r:"No profile"})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Active session"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(a=null!=(s=null==g?void 0:g.activeSessionTitle)?s:p)?a:"No session"})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Loaded skills"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(i=null==g?void 0:g.loadedSkillIds.length)?i:0})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Memory mode"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:null!=(m=null==g?void 0:g.memoryMode)?m:"standard"})]})]}),(0,d.jsxs)("section",{className:"grid gap-4 lg:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm text-sm text-muted-foreground",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Memory semantics"}),(0,d.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"User memory"}),(0,d.jsx)("p",{className:"mt-1",children:"Durable facts about the human on the other side: preferences, identity, and stable habits worth carrying into future sessions."})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"Agent memory"}),(0,d.jsx)("p",{className:"mt-1",children:"Operational notes about the environment, conventions, and workflow details that help the agent behave consistently later."})]})]})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm text-sm text-muted-foreground",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Important behavior"}),(0,d.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"Editing memory is durable"}),(0,d.jsx)("p",{className:"mt-1",children:"Changes are saved immediately and affect future sessions. The current session context remains what was already loaded unless you start a fresh thread."})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,d.jsx)("p",{className:"font-medium text-foreground",children:"Session search is not memory"}),(0,d.jsx)("p",{className:"mt-1",children:"Search lets you recover prior conversations without promoting them into persistent memory."})]})]})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:[["user","User memory"],["agent","Agent memory"],["search","Session search"],["context","Context inspector"]].map(e=>{let[r,s]=e;return(0,d.jsx)("button",{type:"button",onClick:()=>h(r),className:"rounded-lg px-4 py-2 text-sm ".concat(u===r?"bg-primary text-primary-foreground":"border border-border text-muted-foreground"),children:s},r)})}),"user"===u?(0,d.jsx)(c,{scope:"user"}):null,"agent"===u?(0,d.jsx)(c,{scope:"agent"}):null,"search"===u?(0,d.jsx)(x,{}):null,"context"===u?(0,d.jsx)(l,{}):null]})}},9068:(e,r,s)=>{"use strict";s.d(r,{A:()=>d});let d=(0,s(1847).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"}]])}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=6718)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[648,827,855,1090,1138,1207,1209,1237,1672,1903,1955,1979,2016,2039,2299,2533,2851,3887,3994,4042,4311,4352,4817,4914,5156,5187,5281,5435,5936,6018,6120,6194,6828,6916,7207,7224,7758,7768,7870,8034,8413,8489,8937,8972,8974,8994,9049,9419,9742,9945,9961,9968],{4441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=4441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3140,8153],{140:(e,s,t)=>{Promise.resolve().then(t.bind(t,1935)),Promise.resolve().then(t.bind(t,9136)),Promise.resolve().then(t.bind(t,6981)),Promise.resolve().then(t.bind(t,3140))},962:(e,s,t)=>{"use strict";t.d(s,{Ho:()=>o,P4:()=>c,c$:()=>i,qw:()=>d});var n=t(2454),r=t(9776),l=t(549),a=t(9678);function d(){return(0,n.I)({queryKey:["plugins"],queryFn:()=>(0,a.n)("/api/plugins"),select:e=>e.plugins})}function i(){let e=(0,r.jE)();return(0,l.n)({mutationFn:e=>(0,a.n)("/api/plugins/install",{method:"POST",body:JSON.stringify(e)}),onSuccess:()=>{e.invalidateQueries({queryKey:["plugins"]})}})}function o(){let e=(0,r.jE)();return(0,l.n)({mutationFn:e=>(0,a.n)("/api/plugins/".concat(e),{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["plugins"]})}})}function c(){let e=(0,r.jE)();return(0,l.n)({mutationFn:e=>{let{id:s,enabled:t}=e;return(0,a.n)("/api/plugins/".concat(s,"/enable"),{method:"POST",body:JSON.stringify({enabled:t})})},onSuccess:()=>{e.invalidateQueries({queryKey:["plugins"]})}})}},1375:(e,s,t)=>{"use strict";t.d(s,{eS:()=>m,pp:()=>u,W5:()=>x,Gu:()=>c});var n=t(5155),r=t(5299),l=t(1847);let a=(0,l.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"}]]),d=(0,l.A)("TriangleAlert",[["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"}]]);var i=t(4269);function o(e){return"banner"===e?"rounded-xl border border-border/60 bg-card/50 p-4 shadow-[var(--shadow-card)]":"rounded-2xl border border-border/60 bg-card/55 p-6 shadow-[var(--shadow-card)]"}function c(e){var s;let{title:t,message:l,description:a,layout:d="card",className:c,children:u}=e,m=null!=(s=null!=t?t:l)?s:"Loading…";return(0,n.jsxs)("div",{className:(0,i.cn)(o(d),c),children:[(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)(r.A,{className:"mt-0.5 h-4 w-4 animate-spin text-primary"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:m}),a?(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:a}):null]})]}),u?(0,n.jsx)("div",{className:"mt-4",children:u}):null]})}function u(e){let{title:s,description:t,icon:r,primaryAction:l,secondaryAction:d,action:c,layout:u="card",className:m}=e,x=null!=l?l:c;return(0,n.jsx)("div",{className:(0,i.cn)(o(u),"border-dashed",m),children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:"mt-0.5 text-primary",children:null!=r?r:(0,n.jsx)(a,{className:"h-4 w-4"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:s}),(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:t}),x||d?(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[x,d]}):null]})]})})}function m(e){let{title:s,description:t,severity:r="warning",icon:l,details:a,primaryAction:c,secondaryAction:u,layout:m="card",className:x}=e;return(0,n.jsx)("div",{className:(0,i.cn)(o(m),"danger"===r?"border-danger/35 bg-danger/10":"border-warning/35 bg-warning/10",x),children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:(0,i.cn)("mt-0.5","danger"===r?"text-danger":"text-warning"),children:null!=l?l:(0,n.jsx)(d,{className:"h-4 w-4"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:s}),(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:t}),a?(0,n.jsx)("div",{className:"mt-2 text-xs leading-5 text-muted-foreground",children:a}):null,c||u?(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[c,u]}):null]})]})})}function x(e){let{title:s="Something went wrong",error:t,message:r,description:l,primaryAction:a,secondaryAction:c,layout:u="card",className:m}=e,x=null!=r?r:t,p="string"==typeof x?x:x instanceof Error?x.message:null;return(0,n.jsx)("div",{className:(0,i.cn)(o(u),"border-danger/35 bg-danger/10",m),children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)(d,{className:"mt-0.5 h-4 w-4 text-danger"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:s}),l?(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:l}):null,p?(0,n.jsx)("p",{className:"mt-1 text-sm leading-6 text-foreground",children:p}):null,a||c?(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[a,c]}):null]})]})})}},3140:(e,s,t)=>{"use strict";t.r(s),t.d(s,{PluginsScreen:()=>f});var n=t(5155),r=t(2115),l=t(8599),a=t(1375),d=t(962),i=t(1847);let o=(0,i.A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var c=t(4269);let u={user:"bg-blue-500/15 text-blue-400",builtin:"bg-emerald-500/15 text-emerald-400",pip:"bg-amber-500/15 text-amber-400"};function m(e){let{plugin:s,onToggle:t,onRemove:r}=e;return(0,n.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("h3",{className:"truncate text-lg font-semibold",children:s.name}),(0,n.jsxs)("span",{className:"shrink-0 rounded-full bg-muted/70 px-2 py-0.5 text-2xs text-muted-foreground",children:["v",s.version]})]}),s.author&&(0,n.jsxs)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:["by ",s.author]})]}),(0,n.jsx)("span",{className:(0,c.cn)("shrink-0 rounded-full px-2 py-0.5 text-2xs font-medium",u[s.source]),children:s.source})]}),s.description&&(0,n.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground",children:s.description}),s.providedTools.length>0&&(0,n.jsxs)("div",{className:"mt-3",children:[(0,n.jsx)("p",{className:"text-2xs font-medium uppercase tracking-label text-muted-foreground",children:"Tools"}),(0,n.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:s.providedTools.map(e=>(0,n.jsx)("span",{className:"rounded-md bg-muted/50 px-1.5 py-0.5 text-2xs text-muted-foreground",children:e},e))})]}),s.providedHooks.length>0&&(0,n.jsxs)("div",{className:"mt-2",children:[(0,n.jsx)("p",{className:"text-2xs font-medium uppercase tracking-label text-muted-foreground",children:"Hooks"}),(0,n.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:s.providedHooks.map(e=>(0,n.jsx)("span",{className:"rounded-md bg-muted/50 px-1.5 py-0.5 text-2xs text-muted-foreground",children:e},e))})]}),(0,n.jsxs)("div",{className:"mt-4 flex items-center justify-between border-t border-border/70 pt-4",children:[(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2",children:[(0,n.jsx)("button",{type:"button",role:"switch","aria-checked":s.enabled,onClick:()=>t(s.id,!s.enabled),className:(0,c.cn)("relative inline-flex h-5 w-9 shrink-0 items-center rounded-full transition-colors",s.enabled?"bg-primary":"bg-muted"),children:(0,n.jsx)("span",{className:(0,c.cn)("pointer-events-none block h-4 w-4 rounded-full bg-white shadow-sm transition-transform",s.enabled?"translate-x-[18px]":"translate-x-0.5")})}),(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:s.enabled?"Enabled":"Disabled"})]}),"user"===s.source&&r&&(0,n.jsxs)("button",{type:"button",onClick:()=>r(s.id),className:"flex items-center gap-1.5 rounded-lg border border-danger/30 bg-danger/10 px-2.5 py-1.5 text-xs text-danger transition hover:bg-danger/20",children:[(0,n.jsx)(o,{className:"h-3.5 w-3.5"}),"Remove"]})]})]})}let x=(0,i.A)("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var p=t(5299);let g=/^[a-zA-Z0-9][a-zA-Z0-9._-]*\/[a-zA-Z0-9._-]+$/;function h(e){let{open:s,onClose:t}=e,[l,a]=(0,r.useState)(""),[i,o]=(0,r.useState)(null),c=(0,d.c$)();if(!s)return null;let u=g.test(l);async function m(){if(!l.trim())return void o("Repository is required.");if(!u)return void o("Invalid format. Use owner/repo (for example nousresearch/hermes-plugin-web).");o(null);try{await c.mutateAsync({identifier:l.trim()}),a(""),o(null),t()}catch(e){o(function(e){let s=e.toLowerCase();return s.includes("plugin.yaml")?"This repository cloned successfully, but it is not a valid Hermes plugin yet. A valid plugin repo must include a plugin.yaml manifest.":s.includes("__init__.py")?"This repository is missing the required __init__.py plugin entrypoint, so Pan cannot treat it as a real plugin.":s.includes("already exists")||s.includes("already installed")?"That plugin is already installed in this workspace.":e}(e instanceof Error?e.message:String(e)))}}return(0,n.jsx)("div",{className:"fixed inset-0 z-30 flex items-center justify-center bg-black/50 p-4",children:(0,n.jsxs)("div",{className:"w-full max-w-md rounded-2xl border border-border bg-background p-5 shadow-xl",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(x,{className:"h-5 w-5 text-primary"}),(0,n.jsx)("h3",{className:"text-lg font-semibold",children:"Install plugin"})]}),(0,n.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Install a repo-based plugin when you need custom hooks or tool bundles beyond MCP servers and built-in integrations."}),(0,n.jsxs)("div",{className:"mt-4 rounded-xl border border-border/70 bg-card/60 p-3 text-sm text-muted-foreground",children:[(0,n.jsx)("p",{className:"font-medium text-foreground",children:"What counts as a valid plugin repo?"}),(0,n.jsxs)("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-xs leading-5",children:[(0,n.jsxs)("li",{children:["Use the GitHub format ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:"owner/repo"}),"."]}),(0,n.jsxs)("li",{children:["The repository must contain a ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:"plugin.yaml"})," manifest."]}),(0,n.jsxs)("li",{children:["The repository must also include the required ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:"__init__.py"})," entrypoint."]})]})]}),(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-muted-foreground",children:"GitHub repository"}),(0,n.jsx)("input",{value:l,onChange:e=>{a(e.target.value),o(null)},placeholder:"owner/repo",className:"mt-1 w-full rounded-lg border bg-background px-3 py-2 text-sm outline-none placeholder:text-muted-foreground/50 focus:border-primary/50 ".concat(i?"border-red-500/70":"border-input"),autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&m()}}),!l||u||i?null:(0,n.jsx)("p",{className:"mt-1 text-xs text-amber-400",children:"Format: owner/repo (for example nousresearch/hermes-plugin-web)"}),l||i?null:(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Pan validates the repo before counting the install as successful."})]}),i?(0,n.jsx)("div",{className:"mt-3 rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-400",children:i}):null,c.isSuccess?(0,n.jsx)("div",{className:"mt-3 rounded-lg border border-emerald-500/30 bg-emerald-500/10 px-3 py-2 text-sm text-emerald-400",children:"Plugin installed successfully."}):null,(0,n.jsxs)("div",{className:"mt-5 flex justify-end gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:function(){a(""),o(null),c.reset(),t()},className:"rounded-lg border border-border px-4 py-2 text-sm",children:"Cancel"}),(0,n.jsxs)("button",{type:"button",onClick:()=>void m(),disabled:c.isPending||!l.trim()||!u,className:"flex items-center gap-2 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50",children:[c.isPending?(0,n.jsx)(p.A,{className:"h-4 w-4 animate-spin"}):null,c.isPending?"Installing…":"Install plugin"]})]})]})})}function f(){var e;let s=(0,d.qw)(),t=(0,d.P4)(),i=(0,d.Ho)(),[o,c]=(0,r.useState)(!1),u=null!=(e=s.data)?e:[];function x(e,s){t.mutateAsync({id:e,enabled:s})}function p(e){i.mutateAsync(e)}return(0,n.jsxs)("div",{className:"h-full overflow-y-auto space-y-6 p-4 pb-8 lg:p-6 lg:pb-10",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-2xl font-semibold",children:"Plugins"}),(0,n.jsx)("p",{className:"mt-2 max-w-3xl text-sm text-muted-foreground",children:"Plugins are repo-based extensions for custom hooks and bundled tools. Use MCP servers for live external systems, and use plugins when you need deeper runtime customization."})]}),(0,n.jsx)("button",{type:"button",onClick:()=>c(!0),className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:"Install plugin"})]}),(0,n.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-card/55 p-4 text-sm text-muted-foreground shadow-sm",children:[(0,n.jsx)("p",{className:"font-medium text-foreground",children:"How plugins differ from integrations"}),(0,n.jsx)("p",{className:"mt-2",children:"Integrations and MCP servers focus on what the agent can reach right now. Plugins focus on adding custom hooks, packaged tools, and deeper behavior changes to the runtime."})]}),s.isLoading?(0,n.jsx)(a.Gu,{title:"Loading plugins…",description:"Reading installed plugins and their tool/hook metadata for this workspace."}):null,s.isError?(0,n.jsx)(a.W5,{title:"Could not load plugins",error:s.error,description:"Pan could not read the installed plugin inventory right now."}):null,s.isSuccess&&0===u.length?(0,n.jsx)(a.pp,{title:"No plugins installed",description:"Plugins are optional and usually come after skills and MCP servers. Install one when you need repo-based hooks, tool bundles, or runtime customization.",icon:(0,n.jsx)(l.A,{className:"h-5 w-5"}),primaryAction:(0,n.jsx)("button",{type:"button",onClick:()=>c(!0),className:"rounded-2xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:"Install your first plugin"})}):null,s.isSuccess&&u.length>0?(0,n.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:u.map(e=>(0,n.jsx)(m,{plugin:e,onToggle:x,onRemove:p},e.id))}):null,(0,n.jsx)(h,{open:o,onClose:()=>c(!1)})]})}},5299:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});let n=(0,t(1847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=140)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5861],{515:(e,s,l)=>{Promise.resolve().then(l.bind(l,1935)),Promise.resolve().then(l.bind(l,9136)),Promise.resolve().then(l.bind(l,6981)),Promise.resolve().then(l.bind(l,5135))},5135:(e,s,l)=>{"use strict";l.d(s,{ProfilesScreen:()=>C});var r=l(5155),t=l(2115),a=l(1847);let n=(0,a.A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var o=l(5740),d=l(5299),i=l(8192),c=l(7510);function u(e){let{open:s,onClose:l,onSubmit:a}=e,[n,u]=(0,t.useState)(""),[m,x]=(0,t.useState)("safe-chat"),[p,h]=(0,t.useState)(""),[b,g]=(0,t.useState)(null),[f,j]=(0,t.useState)(!1),[y,v]=(0,t.useState)(!1),[N,w]=(0,t.useState)(null),k=(0,c.eJ)();if(!s)return null;let C=/^[a-z0-9][a-z0-9_-]{0,63}$/.test(n);async function P(){if(p.trim()){v(!0);try{let e=await k.mutateAsync({profileId:"default",purpose:p,mode:"create"}),s=e.suggestion;if(s.policyPreset&&["safe-chat","research","builder","full-power"].includes(s.policyPreset)&&x(s.policyPreset),!n&&p){let e=p.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,32);e&&u(e)}w({policy:s.policyPreset,explanation:e.explanation})}catch(e){w({explanation:"AI suggestion failed. You can still create the profile manually."})}finally{v(!1)}}}async function S(){if(!n.trim())return void g("Profile name is required.");if(!C)return void g("Name must be lowercase alphanumeric (a-z, 0-9, hyphens, underscores). Max 64 chars.");g(null),j(!0);try{await a({name:n,policyPreset:m,aiPurpose:p||void 0}),u(""),h(""),g(null),w(null)}catch(s){let e=s instanceof Error?s.message:String(s);g(e.includes("already exists")?"Profile '".concat(n,"' already exists."):e)}finally{j(!1)}}return(0,r.jsx)("div",{className:"fixed inset-0 z-30 flex items-center justify-center bg-black/50 p-4",children:(0,r.jsxs)("div",{className:"w-full max-w-md rounded-2xl border border-border bg-background p-5 shadow-xl",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold",children:"Create profile"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Each profile is an isolated workspace with its own sessions, skills, memory, and API keys."}),(0,r.jsxs)("div",{className:"mt-4 rounded-xl border border-purple-500/20 bg-purple-500/5 p-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(o.A,{className:"h-4 w-4 text-purple-400"}),(0,r.jsx)("p",{className:"text-xs font-medium text-purple-300",children:"AI-Assisted Setup"})]}),(0,r.jsx)("p",{className:"mt-1 text-2xs text-muted-foreground",children:"Describe what this profile is for and AI will suggest the best settings."}),(0,r.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,r.jsx)("input",{value:p,onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"===e.key&&p.trim()&&!y&&P()},placeholder:"e.g. 'React developer with full terminal access'",className:"flex-1 rounded-lg border border-purple-500/20 bg-background px-3 py-2 text-sm outline-none placeholder:text-muted-foreground/50 focus:border-purple-500/40"}),(0,r.jsxs)("button",{type:"button",onClick:()=>void P(),disabled:y||!p.trim(),className:"flex items-center gap-1.5 rounded-lg bg-purple-600 px-3 py-2 text-xs font-medium text-white transition hover:bg-purple-500 disabled:opacity-50",children:[y?(0,r.jsx)(d.A,{className:"h-3 w-3 animate-spin"}):(0,r.jsx)(i.A,{className:"h-3 w-3"}),y?"Thinking…":"Suggest"]})]}),(null==N?void 0:N.explanation)&&(0,r.jsxs)("div",{className:"mt-2 rounded-lg border border-purple-500/20 bg-purple-500/10 p-2 text-xs text-purple-200",children:[(0,r.jsx)(o.A,{className:"mr-1 inline h-3 w-3"}),N.explanation]})]}),(0,r.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs font-medium text-muted-foreground",children:"Profile name"}),(0,r.jsx)("input",{value:n,onChange:e=>{u(e.target.value.toLowerCase().replace(/[^a-z0-9_-]/g,"")),g(null)},placeholder:"my-project",className:"mt-1 w-full rounded-lg border bg-background px-3 py-2 text-sm ".concat(b?"border-red-500/70":"border-input"),autoFocus:!0,onKeyDown:e=>"Enter"===e.key&&void S()}),n&&!C?(0,r.jsx)("p",{className:"mt-1 text-xs text-amber-400",children:"Must start with a letter or number. Only a-z, 0-9, hyphens, underscores."}):null]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"text-xs font-medium text-muted-foreground",children:["Policy preset ",(null==N?void 0:N.policy)&&(0,r.jsxs)("span",{className:"text-purple-400",children:["(AI suggested: ",N.policy,")"]})]}),(0,r.jsxs)("select",{value:m,onChange:e=>x(e.target.value),className:"mt-1 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm",children:[(0,r.jsx)("option",{value:"safe-chat",children:"Safe Chat — read-only tools, no filesystem writes"}),(0,r.jsx)("option",{value:"research",children:"Research — web access, read files, no installs"}),(0,r.jsx)("option",{value:"builder",children:"Builder — full dev workflow, requires approval for risky ops"}),(0,r.jsx)("option",{value:"full-power",children:"Full Power — all tools enabled, no guardrails"})]})]})]}),b?(0,r.jsx)("div",{className:"mt-3 rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-400",children:b}):null,(0,r.jsxs)("div",{className:"mt-5 flex justify-end gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:function(){l(),u(""),h(""),g(null),w(null)},className:"rounded-lg border border-border px-4 py-2 text-sm",children:"Cancel"}),(0,r.jsx)("button",{type:"button",onClick:()=>void S(),disabled:f||!n.trim(),className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50",children:f?"Creating…":"Create"})]})]})})}var m=l(5229);let x=(0,a.A)("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),p=(0,a.A)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),h=[{value:"safe-chat",label:"Safe Chat",desc:"Read-only tools, no filesystem writes"},{value:"research",label:"Research",desc:"Web access, read files, no installs"},{value:"builder",label:"Builder",desc:"Full dev workflow, approval for risky ops"},{value:"full-power",label:"Full Power",desc:"All tools enabled, no guardrails"}],b=["low","medium","high"],g=["local","docker","modal"],f=["manual","auto"];function j(e){var s,l,a,n,u,j,N,w,k,C,P,S,A,E,M,T;let{profileId:I,profileName:z,open:D,onClose:R}=e,U=(0,c.zO)(D?I:null),O=(0,c.Oq)(),B=(0,c.eJ)(),[L,_]=(0,t.useState)({}),[q,F]=(0,t.useState)(""),[H,K]=(0,t.useState)(""),[J,V]=(0,t.useState)(null),[Y,$]=(0,t.useState)(!1),[W,G]=(0,t.useState)("model");if((0,t.useEffect)(()=>{U.data&&(_({...U.data}),V(null),K(""))},[U.data]),!D)return null;function Q(e,s){_(l=>({...l,[e]:s}))}async function X(){await O.mutateAsync({profileId:I,config:L}),$(!0),setTimeout(()=>$(!1),2500)}async function Z(){let e=await B.mutateAsync({profileId:I,purpose:q,mode:"optimize"});V(e.suggestion),K(e.explanation)}return(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:R,children:(0,r.jsxs)("div",{className:"relative mx-4 flex max-h-[90vh] w-full max-w-3xl flex-col rounded-2xl border border-border bg-card shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-6 py-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-lg font-semibold",children:["Edit Profile — ",z]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"config.yaml + SOUL.md"})]}),(0,r.jsx)("button",{type:"button",onClick:R,className:"rounded-lg p-2 hover:bg-muted",children:(0,r.jsx)(m.A,{className:"h-4 w-4"})})]}),(0,r.jsx)("div",{className:"border-b border-border bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 px-6 py-3",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(o.A,{className:"h-4 w-4 text-purple-400"}),(0,r.jsx)("input",{type:"text",value:q,onChange:e=>F(e.target.value),onKeyDown:e=>{"Enter"!==e.key||B.isPending||Z()},placeholder:"Describe what this profile is for… (e.g. 'coding assistant for React projects')",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}),(0,r.jsxs)("button",{type:"button",onClick:()=>void Z(),disabled:B.isPending,className:"flex items-center gap-1.5 rounded-lg bg-purple-600 px-3 py-1.5 text-xs font-medium text-white transition hover:bg-purple-500 disabled:opacity-50",children:[B.isPending?(0,r.jsx)(d.A,{className:"h-3 w-3 animate-spin"}):(0,r.jsx)(i.A,{className:"h-3 w-3"}),B.isPending?"Thinking…":"AI Optimize"]})]})}),J&&(0,r.jsx)("div",{className:"border-b border-purple-500/20 bg-purple-500/10 px-6 py-3",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-purple-300",children:[(0,r.jsx)(o.A,{className:"mr-1 inline h-3.5 w-3.5"}),"AI Suggestion Ready"]}),(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:H}),(0,r.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:Object.keys(J).map(e=>(0,r.jsx)("span",{className:"rounded-md bg-purple-500/20 px-2 py-0.5 text-3xs font-medium text-purple-300",children:e},e))})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:function(){J&&(_(e=>({...e,...J})),V(null))},className:"flex items-center gap-1 rounded-lg bg-purple-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-purple-500",children:[(0,r.jsx)(o.A,{className:"h-3 w-3"})," Apply"]}),(0,r.jsxs)("button",{type:"button",onClick:function(){V(null),K("")},className:"flex items-center gap-1 rounded-lg border border-border px-3 py-1.5 text-xs text-muted-foreground hover:bg-muted",children:[(0,r.jsx)(x,{className:"h-3 w-3"})," Dismiss"]})]})]})}),(0,r.jsx)("div",{className:"flex gap-1 border-b border-border px-6 pt-2",children:[{id:"model",label:"Model & Provider"},{id:"agent",label:"Agent Behavior"},{id:"display",label:"Display & Memory"},{id:"soul",label:"Soul / Persona"}].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>G(e.id),className:"rounded-t-lg px-4 py-2 text-sm font-medium transition ".concat(W===e.id?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"),children:e.label},e.id))}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto px-6 py-5",children:U.isLoading?(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)(d.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):(0,r.jsxs)(r.Fragment,{children:["model"===W&&(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)(y,{label:"Default Model",hint:"e.g. claude-sonnet-4-20250514, gpt-4o, claude-opus-4-20250514",children:(0,r.jsx)("input",{type:"text",value:null!=(s=L.modelDefault)?s:"",onChange:e=>Q("modelDefault",e.target.value),className:"field-input"})}),(0,r.jsx)(y,{label:"Provider",hint:"e.g. anthropic, openai, copilot, ollama",children:(0,r.jsx)("input",{type:"text",value:null!=(l=L.modelProvider)?l:"",onChange:e=>Q("modelProvider",e.target.value),className:"field-input"})}),(0,r.jsx)(y,{label:"Base URL",hint:"Custom API endpoint (leave empty for default)",children:(0,r.jsx)("input",{type:"text",value:null!=(a=L.modelBaseUrl)?a:"",onChange:e=>Q("modelBaseUrl",e.target.value),className:"field-input",placeholder:"https://..."})}),(0,r.jsx)(y,{label:"Policy Preset",children:(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2",children:h.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>Q("policyPreset",e.value),className:"rounded-xl border p-3 text-left transition ".concat(L.policyPreset===e.value?"border-primary bg-primary/10 text-foreground":"border-border text-muted-foreground hover:border-primary/40"),children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:e.label}),(0,r.jsx)("p",{className:"mt-0.5 text-2xs text-muted-foreground",children:e.desc})]},e.value))})})]}),"agent"===W&&(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)(y,{label:"Max Turns",hint:"Maximum autonomous tool-use turns (5–200)",children:(0,r.jsx)("input",{type:"number",min:5,max:200,value:null!=(n=L.maxTurns)?n:50,onChange:e=>Q("maxTurns",Number(e.target.value)),className:"field-input w-32"})}),(0,r.jsx)(y,{label:"Reasoning Effort",children:(0,r.jsx)("div",{className:"flex gap-2",children:b.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>Q("reasoningEffort",e),className:"rounded-lg border px-4 py-2 text-sm font-medium capitalize transition ".concat(L.reasoningEffort===e?"border-primary bg-primary/10 text-foreground":"border-border text-muted-foreground hover:border-primary/40"),children:e},e))})}),(0,r.jsx)(y,{label:"Tool Use Enforcement",children:(0,r.jsxs)("select",{value:null!=(u=L.toolUseEnforcement)?u:"auto",onChange:e=>Q("toolUseEnforcement",e.target.value),className:"field-input w-48",children:[(0,r.jsx)("option",{value:"auto",children:"Auto"}),(0,r.jsx)("option",{value:"required",children:"Required"}),(0,r.jsx)("option",{value:"none",children:"None"})]})}),(0,r.jsx)(y,{label:"Terminal Backend",children:(0,r.jsx)("div",{className:"flex gap-2",children:g.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>Q("terminalBackend",e),className:"rounded-lg border px-4 py-2 text-sm font-medium capitalize transition ".concat(L.terminalBackend===e?"border-primary bg-primary/10 text-foreground":"border-border text-muted-foreground hover:border-primary/40"),children:e},e))})}),(0,r.jsx)(y,{label:"Approvals Mode",children:(0,r.jsx)("div",{className:"flex gap-2",children:f.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>Q("approvalsMode",e),className:"rounded-lg border px-4 py-2 text-sm font-medium capitalize transition ".concat(L.approvalsMode===e?"border-primary bg-primary/10 text-foreground":"border-border text-muted-foreground hover:border-primary/40"),children:e},e))})}),(0,r.jsx)(y,{label:"Terminal Timeout",hint:"Seconds before terminal commands time out",children:(0,r.jsx)("input",{type:"number",min:10,max:600,value:null!=(j=L.terminalTimeout)?j:180,onChange:e=>Q("terminalTimeout",Number(e.target.value)),className:"field-input w-32"})})]}),"display"===W&&(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)(y,{label:"Display Options",children:(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(v,{label:"Streaming",desc:"Stream tokens as they're generated",checked:null==(N=L.displayStreaming)||N,onChange:e=>Q("displayStreaming",e)}),(0,r.jsx)(v,{label:"Compact Mode",desc:"Reduce visual whitespace",checked:null!=(w=L.displayCompact)&&w,onChange:e=>Q("displayCompact",e)}),(0,r.jsx)(v,{label:"Show Cost",desc:"Display token costs after each response",checked:null!=(k=L.displayShowCost)&&k,onChange:e=>Q("displayShowCost",e)})]})}),(0,r.jsx)(y,{label:"Display Personality",hint:"Named personality preset",children:(0,r.jsx)("input",{type:"text",value:null!=(C=L.displayPersonality)?C:"",onChange:e=>Q("displayPersonality",e.target.value),className:"field-input",placeholder:"default"})}),(0,r.jsx)(y,{label:"Memory",children:(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(v,{label:"Agent Memory",desc:"Persistent notes about the environment and workflows",checked:null==(P=L.memoryEnabled)||P,onChange:e=>Q("memoryEnabled",e)}),(0,r.jsx)(v,{label:"User Profile",desc:"Remember user preferences and personal details",checked:null==(S=L.userProfileEnabled)||S,onChange:e=>Q("userProfileEnabled",e)})]})}),(0,r.jsx)(y,{label:"Context Compression",children:(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(v,{label:"Compression",desc:"Compress old context to save tokens",checked:null==(A=L.compressionEnabled)||A,onChange:e=>Q("compressionEnabled",e)}),!1!==L.compressionEnabled&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{className:"text-xs text-muted-foreground",children:["Threshold: ",null!=(E=L.compressionThreshold)?E:.7]}),(0,r.jsx)("input",{type:"range",min:.1,max:1,step:.05,value:null!=(M=L.compressionThreshold)?M:.7,onChange:e=>Q("compressionThreshold",Number(e.target.value)),className:"mt-1 w-full accent-primary"}),(0,r.jsxs)("div",{className:"flex justify-between text-3xs text-muted-foreground",children:[(0,r.jsx)("span",{children:"Aggressive"}),(0,r.jsx)("span",{children:"Conservative"})]})]})]})})]}),"soul"===W&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-background/50 p-4 text-sm text-muted-foreground",children:[(0,r.jsx)("strong",{className:"text-foreground",children:"SOUL.md"})," defines the agent's personality, values, and behavioral boundaries. This is the system prompt that shapes every interaction."]}),(0,r.jsx)("textarea",{value:null!=(T=L.soul)?T:"",onChange:e=>Q("soul",e.target.value),className:"min-h-72 w-full rounded-2xl border border-border bg-background p-4 font-mono text-sm leading-6 outline-none focus:border-primary",placeholder:"You are Pan, an AI workspace assistant by Euraika..."})]})]})}),(0,r.jsxs)("div",{className:"flex items-center justify-between border-t border-border px-6 py-4",children:[(0,r.jsxs)("div",{className:"text-sm text-muted-foreground",children:[Y&&(0,r.jsx)("span",{className:"text-emerald-400",children:"✓ Saved to config.yaml"}),O.isPending&&(0,r.jsx)("span",{children:"Saving…"}),O.isError&&(0,r.jsx)("span",{className:"text-red-400",children:"Failed to save"})]}),(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("button",{type:"button",onClick:R,className:"rounded-lg border border-border px-4 py-2 text-sm text-muted-foreground hover:bg-muted",children:"Cancel"}),(0,r.jsxs)("button",{type:"button",onClick:()=>void X(),disabled:O.isPending,className:"flex items-center gap-2 rounded-lg bg-primary px-5 py-2 text-sm font-medium text-primary-foreground transition hover:opacity-90 disabled:opacity-50",children:[(0,r.jsx)(p,{className:"h-3.5 w-3.5"}),"Save Profile"]})]})]})]})})}function y(e){let{label:s,hint:l,children:t}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-foreground",children:s}),l&&(0,r.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:l}),!l&&(0,r.jsx)("div",{className:"mb-2"}),t]})}function v(e){let{label:s,desc:l,checked:t,onChange:a}=e;return(0,r.jsxs)("label",{className:"flex cursor-pointer items-center justify-between rounded-xl border border-border p-3 transition hover:bg-muted/30",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:s}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground",children:l})]}),(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>a(!t),className:"relative h-6 w-11 rounded-full transition ".concat(t?"bg-primary":"bg-muted"),children:(0,r.jsx)("span",{className:"absolute top-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform ".concat(t?"translate-x-[22px]":"translate-x-0.5")})})]})}var N=l(9896),w=l(592),k=l(2604);function C(){var e,s,l,a,d,i,m,x,p,h,b,g,f,y;let{selectedProfileId:v,setSelectedProfileId:C}=(0,k.j)(),P=(0,c.Sj)(),S=(0,w.w)(),A=(0,c.bL)(),E=(0,c.Sn)(),M=(0,c.OK)(),T=(0,c.eJ)(),I=(0,c.Oq)(),[z,D]=(0,t.useState)(!1),[R,U]=(0,t.useState)(null),O=null!=(d=P.data)?d:[],B=(0,t.useMemo)(()=>{var e,s;return null!=(s=null!=(e=O.find(e=>e.id===v))?e:O.find(e=>e.active))?s:O[0]},[O,v]);async function L(e){var s;if(await A.mutateAsync({name:e.name,policyPreset:e.policyPreset}),null==(s=e.aiPurpose)?void 0:s.trim())try{let s=await T.mutateAsync({profileId:e.name,purpose:e.aiPurpose,mode:"create"});s.suggestion&&Object.keys(s.suggestion).length>0&&await I.mutateAsync({profileId:e.name,config:s.suggestion})}catch(e){}D(!1)}return(0,r.jsxs)("div",{className:"h-full overflow-y-auto space-y-6 p-4 lg:p-6 pb-8 lg:pb-10",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold",children:"Profiles"}),(0,r.jsx)("p",{className:"mt-2 max-w-3xl text-sm text-muted-foreground",children:"Each profile is its own workspace boundary. Keep identity, policy, model defaults, and integration trust visible before you start a run."})]}),(0,r.jsx)("button",{type:"button",onClick:()=>D(!0),className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:"Create profile"})]}),(0,r.jsxs)("section",{className:"grid gap-4 lg:grid-cols-[1.1fr_0.9fr]",children:[(0,r.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,r.jsx)("h2",{className:"text-lg font-semibold",children:"Selected profile posture"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"The UI selection and the runtime-selected profile should match. This panel makes any drift obvious."}),(0,r.jsxs)("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,r.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"UI selection"}),(0,r.jsx)("p",{className:"mt-2 font-semibold",children:null!=(i=null==B?void 0:B.name)?i:"No profile selected"})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,r.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Runtime context"}),(0,r.jsx)("p",{className:"mt-2 font-semibold",children:null!=(x=null!=(m=null==(s=S.data)||null==(e=s.profileContext)?void 0:e.label)?m:null==(l=S.data)?void 0:l.activeProfile)?x:"Unknown runtime profile"})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,r.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Profiles available"}),(0,r.jsx)("p",{className:"mt-2 font-semibold",children:O.length})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,r.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Runtime health"}),(0,r.jsx)("p",{className:"mt-2 font-semibold",children:null!=(p=null==B?void 0:B.runtimeHealth)?p:"offline"})]})]}),B?(0,r.jsxs)("div",{className:"mt-4 rounded-xl border border-border bg-background p-4 text-sm text-muted-foreground",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Policy:"})," ",null!=(h=B.policyPreset)?h:"safe-chat"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Model:"})," ",null!=(b=B.modelDefault)?b:"n/a"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{className:"text-foreground",children:"Provider:"})," ",null!=(g=B.runtimeProvider)?g:"unknown"]}),(0,r.jsx)("p",{className:"mt-2",children:null!=(f=B.runtimeSummary)?f:"No runtime summary available."})]}):null]}),(0,r.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,r.jsx)("h2",{className:"text-lg font-semibold",children:"Scope semantics"}),(0,r.jsxs)("div",{className:"mt-4 space-y-3 text-sm text-muted-foreground",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,r.jsx)("p",{className:"font-medium text-foreground",children:"Profile switches requery runtime-backed data"}),(0,r.jsx)("p",{className:"mt-1",children:"Sessions, skills, extensions, memory context, approvals, and diagnostics are invalidated together when you activate a new profile."})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,r.jsx)("p",{className:"font-medium text-foreground",children:"Policy presets are defaults, not hidden magic"}),(0,r.jsx)("p",{className:"mt-1",children:"Every preset influences tool approvals, memory behavior, and extension access. The rest of the workspace should reflect the same selected profile immediately."})]})]})]})]}),(0,r.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:O.map(e=>{var s,l,t,a,d,i,c,u,m,x,p;let h=v===e.id,b=e.active;return(0,r.jsxs)("div",{className:"rounded-2xl border bg-card p-5 shadow-sm ".concat(h?"border-primary/50":"border-border"),children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-lg font-semibold",children:e.name}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e.profileContextLabel||"Profile context unavailable"})]}),(0,r.jsxs)("div",{className:"flex flex-col items-end gap-2 text-xs",children:[b?(0,r.jsx)("span",{className:"rounded-full bg-success/15 px-2 py-1 text-foreground",children:"Active runtime"}):null,h?(0,r.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-1 text-foreground",children:"Selected in UI"}):null]})]}),(0,r.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-3 text-sm text-muted-foreground",children:[(0,r.jsxs)("p",{children:["Sessions: ",null!=(s=e.sessionCount)?s:0]}),(0,r.jsxs)("p",{children:["Skills: ",null!=(l=e.skillCount)?l:0]}),(0,r.jsxs)("p",{children:["Integrations: ",null!=(a=null!=(t=e.integrationsCount)?t:e.extensionCount)?a:0]}),(0,r.jsxs)("p",{children:["Runtime: ",null!=(d=e.runtimeHealth)?d:"offline"]})]}),(0,r.jsxs)("div",{className:"mt-4 rounded-xl border border-border bg-background p-3 text-sm",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Model:"})," ",null!=(i=e.modelDefault)?i:"n/a"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Trust:"})," ",null!=(u=null!=(c=e.trustMode)?c:e.policyPreset)?u:"safe-chat"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Provider:"})," ",null!=(m=e.runtimeProvider)?m:"unknown"]}),(0,r.jsx)("p",{className:"mt-2 text-muted-foreground",children:null!=(x=e.runtimeSummary)?x:"No runtime summary available."})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("label",{className:"text-xs text-muted-foreground",children:"Policy preset"}),(0,r.jsx)("div",{className:"mt-1",children:(0,r.jsx)(N.j,{value:null!=(p=e.policyPreset)?p:"safe-chat",onChange:s=>void E.mutateAsync({profileId:e.id,policyPreset:s})})})]}),(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>U(e.id),className:"flex items-center gap-1.5 rounded-lg border border-purple-500/30 bg-purple-500/10 px-3 py-2 text-sm font-medium text-purple-300 transition hover:bg-purple-500/20",children:[(0,r.jsx)(n,{className:"h-3.5 w-3.5"}),"Edit",(0,r.jsx)(o.A,{className:"h-3 w-3 text-purple-400"})]}),(0,r.jsx)("button",{type:"button",onClick:async()=>{C(e.id),await E.mutateAsync({profileId:e.id,action:"activate"})},className:"rounded-lg border border-border px-3 py-2 text-sm",children:"Switch"}),(0,r.jsx)("button",{type:"button",onClick:()=>void E.mutateAsync({profileId:e.id,action:"clone"}),className:"rounded-lg border border-border px-3 py-2 text-sm",children:"Clone"}),(0,r.jsx)("button",{type:"button",onClick:()=>void M.mutateAsync(e.id),className:"rounded-lg border border-border px-3 py-2 text-sm text-danger",children:"Delete"})]})]},e.id)})}),(0,r.jsx)(u,{open:z,onClose:()=>D(!1),onSubmit:L}),R&&(0,r.jsx)(j,{profileId:R,profileName:null!=(y=null==(a=O.find(e=>e.id===R))?void 0:a.name)?y:R,open:!!R,onClose:()=>U(null)})]})}},5299:(e,s,l)=>{"use strict";l.d(s,{A:()=>r});let r=(0,l(1847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},9896:(e,s,l)=>{"use strict";l.d(s,{j:()=>t});var r=l(5155);function t(e){let{value:s,onChange:l}=e;return(0,r.jsxs)("select",{value:s,onChange:e=>l(e.target.value),className:"w-full rounded-lg border border-input bg-background px-3 py-2 text-sm","aria-label":"Policy preset selector",children:[(0,r.jsx)("option",{value:"safe-chat",children:"Safe Chat"}),(0,r.jsx)("option",{value:"research",children:"Research"}),(0,r.jsx)("option",{value:"builder",children:"Builder"}),(0,r.jsx)("option",{value:"full-power",children:"Full Power"})]})}}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=515)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[501],{954:(e,s,r)=>{"use strict";r.d(s,{ApprovalsBrowser:()=>o});var d=r(5155),t=r(2115),l=r(5050),a=r(2604);function o(){var e;let{activeSessionId:s}=(0,a.j)(),[r,o]=(0,t.useState)(""),[n,i]=(0,t.useState)("pending"),c=(0,l.kv)(s,r,n),p=null!=(e=c.data)?e:[],m=(0,t.useMemo)(()=>p.filter(e=>"pending"===e.status).length,[p]),x=p.length-m;async function u(e,s){await fetch("/api/runtime/approvals/".concat(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:s})}),await c.refetch()}return(0,d.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold",children:"Approvals"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect and resolve pending approvals for the active session or across the runtime if no session is selected."})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Scope"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:s?"Active session":"All runtime sessions"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Pending"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:m})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Resolved"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:x})]})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsx)("input",{value:r,onChange:e=>o(e.target.value),placeholder:"Filter approvals",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,d.jsxs)("select",{value:n,onChange:e=>i(e.target.value),className:"rounded-lg border border-input bg-background px-3 py-2 text-sm",children:[(0,d.jsx)("option",{value:"",children:"All statuses"}),(0,d.jsx)("option",{value:"pending",children:"Pending"}),(0,d.jsx)("option",{value:"approved",children:"Approved"}),(0,d.jsx)("option",{value:"rejected",children:"Rejected"})]})]}),(0,d.jsxs)("div",{className:"space-y-3",children:[p.map(e=>(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:e.toolName}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e.summary})]}),(0,d.jsx)("span",{className:"rounded-full border border-border px-2 py-1 text-xs text-muted-foreground",children:e.status})]}),(0,d.jsxs)("div",{className:"mt-3 grid gap-2 text-xs text-muted-foreground md:grid-cols-2",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Session:"})," ",e.sessionId||"none"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Tool call:"})," ",e.toolCallId]})]}),"pending"===e.status?(0,d.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,d.jsx)("button",{type:"button",onClick:()=>void u(e.toolCallId,"approved"),className:"rounded-lg border border-border px-3 py-2 text-sm",children:"Approve"}),(0,d.jsx)("button",{type:"button",onClick:()=>void u(e.toolCallId,"rejected"),className:"rounded-lg border border-border px-3 py-2 text-sm text-danger",children:"Reject"})]}):null]},e.toolCallId)),p.length?null:(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No approvals matched the current filter."})]})]})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[501],{954:(e,s,r)=>{"use strict";r.d(s,{ApprovalsBrowser:()=>o});var d=r(5155),t=r(2115),l=r(5050),a=r(2604);function o(){var e;let{activeSessionId:s}=(0,a.j)(),[r,o]=(0,t.useState)(""),[n,i]=(0,t.useState)("pending"),c=(0,l.kv)(s,r,n),p=null!=(e=c.data)?e:[],m=(0,t.useMemo)(()=>p.filter(e=>"pending"===e.status).length,[p]),x=p.length-m;async function u(e,s){await fetch("/api/runtime/approvals/".concat(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:s})}),await c.refetch()}return(0,d.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold",children:"Approvals"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect and resolve pending approvals for the active session or across the runtime if no session is selected."})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Scope"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:s?"Active session":"All runtime sessions"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Pending"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:m})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Resolved"}),(0,d.jsx)("p",{className:"mt-2 font-semibold",children:x})]})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsx)("input",{value:r,onChange:e=>o(e.target.value),placeholder:"Filter approvals",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,d.jsxs)("select",{value:n,onChange:e=>i(e.target.value),className:"rounded-lg border border-input bg-background px-3 py-2 text-sm",children:[(0,d.jsx)("option",{value:"",children:"All statuses"}),(0,d.jsx)("option",{value:"pending",children:"Pending"}),(0,d.jsx)("option",{value:"approved",children:"Approved"}),(0,d.jsx)("option",{value:"rejected",children:"Rejected"})]})]}),(0,d.jsxs)("div",{className:"space-y-3",children:[p.map(e=>(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:e.toolName}),(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e.summary})]}),(0,d.jsx)("span",{className:"rounded-full border border-border px-2 py-1 text-xs text-muted-foreground",children:e.status})]}),(0,d.jsxs)("div",{className:"mt-3 grid gap-2 text-xs text-muted-foreground md:grid-cols-2",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Session:"})," ",e.sessionId||"none"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{className:"text-foreground",children:"Tool call:"})," ",e.toolCallId]})]}),"pending"===e.status?(0,d.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,d.jsx)("button",{type:"button",onClick:()=>void u(e.toolCallId,"approved"),className:"rounded-lg border border-border px-3 py-2 text-sm",children:"Approve"}),(0,d.jsx)("button",{type:"button",onClick:()=>void u(e.toolCallId,"rejected"),className:"rounded-lg border border-border px-3 py-2 text-sm text-danger",children:"Reject"})]}):null]},e.toolCallId)),p.length?null:(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No approvals matched the current filter."})]})]})}},2868:(e,s,r)=>{Promise.resolve().then(r.bind(r,1935)),Promise.resolve().then(r.bind(r,9136)),Promise.resolve().then(r.bind(r,6981)),Promise.resolve().then(r.bind(r,954))}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=2868)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7854],{5478:(e,s,r)=>{Promise.resolve().then(r.bind(r,1935)),Promise.resolve().then(r.bind(r,9136)),Promise.resolve().then(r.bind(r,6981)),Promise.resolve().then(r.bind(r,7031))},7031:(e,s,r)=>{"use strict";r.d(s,{ArtifactsBrowser:()=>n});var t=r(5155),a=r(2115),d=r(2604),l=r(5050);function n(){var e;let{activeSessionId:s}=(0,d.j)(),[r,n]=(0,a.useState)(""),c=null!=(e=(0,l.$Q)(s,r).data)?e:[];return(0,t.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:"Artifacts"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Browse persisted artifacts for the active session."})]}),(0,t.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Active session"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:null!=s?s:"No active session"})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Artifacts returned"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:c.length})]})]}),(0,t.jsx)("input",{value:r,onChange:e=>n(e.target.value),placeholder:"Filter artifacts",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,t.jsxs)("div",{className:"space-y-3",children:[c.map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.label}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e.artifactType})]}),(0,t.jsx)("a",{href:"/api/runtime/artifacts/download?sessionId=".concat(encodeURIComponent(s||""),"&artifactId=").concat(encodeURIComponent(e.artifactId)),className:"rounded-lg border border-border px-3 py-2 text-xs",children:"Download"})]}),(0,t.jsx)("pre",{className:"mt-3 overflow-x-auto whitespace-pre-wrap text-xs text-muted-foreground",children:e.content})]},e.artifactId)),c.length?null:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No artifacts matched the current filter."})]})]})}}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=5478)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3014],{238:(e,t,s)=>{Promise.resolve().then(s.bind(s,1935)),Promise.resolve().then(s.bind(s,9136)),Promise.resolve().then(s.bind(s,6981)),Promise.resolve().then(s.bind(s,5591))},492:(e,t,s)=>{"use strict";s.d(t,{$:()=>a});var r=s(2454),d=s(9678);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,r.I)({queryKey:["audit",e],queryFn:()=>(0,d.n)("/api/audit?query=".concat(encodeURIComponent(e))),select:e=>e.events})}},5591:(e,t,s)=>{"use strict";s.d(t,{AuditBrowser:()=>n});var r=s(5155),d=s(2115),a=s(492);function n(){var e;let[t,s]=(0,d.useState)(""),n=null!=(e=(0,a.$)(t).data)?e:[],l=(0,d.useMemo)(()=>n.reduce((e,t)=>{var s;return e[t.action]=(null!=(s=e[t.action])?s:0)+1,e},{}),[n]);return(0,r.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold",children:"Audit browser"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Search durable audit events and operational history."})]}),(0,r.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,r.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Events"}),(0,r.jsx)("p",{className:"mt-2 font-semibold",children:n.length})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,r.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Actions seen"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:Object.entries(l).map(e=>{let[t,s]=e;return"".concat(t,": ").concat(s)}).join(" \xb7 ")||"No audit actions yet"})]})]}),(0,r.jsx)("input",{value:t,onChange:e=>s(e.target.value),placeholder:"Filter audit events",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,r.jsxs)("div",{className:"space-y-3",children:[n.map(e=>(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,r.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:e.action}),(0,r.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.targetType," \xb7 ",e.targetId," \xb7 ",new Date(e.createdAt).toLocaleString()]})]})}),(0,r.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:e.detail})]},e.id)),n.length?null:(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"No audit events matched the current filter."})]})]})}}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=238)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7805],{586:(e,r,s)=>{Promise.resolve().then(s.bind(s,1935)),Promise.resolve().then(s.bind(s,9136)),Promise.resolve().then(s.bind(s,6981)),Promise.resolve().then(s.bind(s,3111))},1375:(e,r,s)=>{"use strict";s.d(r,{eS:()=>x,pp:()=>m,W5:()=>u,Gu:()=>c});var n=s(5155),t=s(5299),d=s(1847);let a=(0,d.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"}]]),l=(0,d.A)("TriangleAlert",[["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"}]]);var o=s(4269);function i(e){return"banner"===e?"rounded-xl border border-border/60 bg-card/50 p-4 shadow-[var(--shadow-card)]":"rounded-2xl border border-border/60 bg-card/55 p-6 shadow-[var(--shadow-card)]"}function c(e){var r;let{title:s,message:d,description:a,layout:l="card",className:c,children:m}=e,x=null!=(r=null!=s?s:d)?r:"Loading…";return(0,n.jsxs)("div",{className:(0,o.cn)(i(l),c),children:[(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)(t.A,{className:"mt-0.5 h-4 w-4 animate-spin text-primary"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:x}),a?(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:a}):null]})]}),m?(0,n.jsx)("div",{className:"mt-4",children:m}):null]})}function m(e){let{title:r,description:s,icon:t,primaryAction:d,secondaryAction:l,action:c,layout:m="card",className:x}=e,u=null!=d?d:c;return(0,n.jsx)("div",{className:(0,o.cn)(i(m),"border-dashed",x),children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:"mt-0.5 text-primary",children:null!=t?t:(0,n.jsx)(a,{className:"h-4 w-4"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:r}),(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:s}),u||l?(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[u,l]}):null]})]})})}function x(e){let{title:r,description:s,severity:t="warning",icon:d,details:a,primaryAction:c,secondaryAction:m,layout:x="card",className:u}=e;return(0,n.jsx)("div",{className:(0,o.cn)(i(x),"danger"===t?"border-danger/35 bg-danger/10":"border-warning/35 bg-warning/10",u),children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:(0,o.cn)("mt-0.5","danger"===t?"text-danger":"text-warning"),children:null!=d?d:(0,n.jsx)(l,{className:"h-4 w-4"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:r}),(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:s}),a?(0,n.jsx)("div",{className:"mt-2 text-xs leading-5 text-muted-foreground",children:a}):null,c||m?(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[c,m]}):null]})]})})}function u(e){let{title:r="Something went wrong",error:s,message:t,description:d,primaryAction:a,secondaryAction:c,layout:m="card",className:x}=e,u=null!=t?t:s,p="string"==typeof u?u:u instanceof Error?u.message:null;return(0,n.jsx)("div",{className:(0,o.cn)(i(m),"border-danger/35 bg-danger/10",x),children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)(l,{className:"mt-0.5 h-4 w-4 text-danger"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-foreground",children:r}),d?(0,n.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:d}):null,p?(0,n.jsx)("p",{className:"mt-1 text-sm leading-6 text-foreground",children:p}):null,a||c?(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[a,c]}):null]})]})})}},3111:(e,r,s)=>{"use strict";s.d(r,{RuntimeHealthPanel:()=>c});var n=s(5155),t=s(2115),d=s(1375),a=s(2454),l=s(9678),o=s(2604);function i(){let{activeSessionId:e}=(0,o.j)(),[r,s]=(0,t.useState)(""),[d,i]=(0,t.useState)(""),c=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,a.I)({queryKey:["runtime-export",e,r,s],queryFn:()=>(0,l.n)("/api/runtime/export?sessionId=".concat(encodeURIComponent(e||""),"&query=").concat(encodeURIComponent(r),"&status=").concat(encodeURIComponent(s))),enabled:!!e})}(e,r,d),m=(0,t.useMemo)(()=>{var e;return JSON.stringify(null!=(e=c.data)?e:{},null,2)},[c.data]);return(0,n.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold",children:"Runtime exports"}),(0,n.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Filter and export runtime timeline, artifacts, approvals, and telemetry for the active session."}),(0,n.jsxs)("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:[(0,n.jsx)("input",{value:r,onChange:e=>s(e.target.value),placeholder:"Filter query",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,n.jsxs)("select",{value:d,onChange:e=>i(e.target.value),className:"rounded-lg border border-input bg-background px-3 py-2 text-sm",children:[(0,n.jsx)("option",{value:"",children:"All approval states"}),(0,n.jsx)("option",{value:"pending",children:"Pending"}),(0,n.jsx)("option",{value:"approved",children:"Approved"}),(0,n.jsx)("option",{value:"rejected",children:"Rejected"})]})]}),(0,n.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,n.jsx)("a",{href:"data:application/json;charset=utf-8,".concat(encodeURIComponent(m)),download:"runtime-export-".concat(e||"global",".json"),className:"rounded-lg border border-border px-4 py-2 text-sm",children:"Download JSON"}),(0,n.jsx)("a",{href:"/api/runtime/export?sessionId=".concat(encodeURIComponent(e||""),"&query=").concat(encodeURIComponent(r),"&status=").concat(encodeURIComponent(d),"&format=csv"),className:"rounded-lg border border-border px-4 py-2 text-sm",children:"Download CSV"})]}),(0,n.jsx)("pre",{className:"mt-4 overflow-x-auto rounded-xl border border-border bg-background p-4 text-xs text-muted-foreground",children:m})]})}function c(){let[e,r]=(0,t.useState)(""),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,a.I)({queryKey:["runtime-health",e],queryFn:()=>(0,l.n)("/api/runtime/health?query=".concat(encodeURIComponent(e)))})}(e);if(s.isLoading)return(0,n.jsx)(d.Gu,{message:"Running health diagnostics…"});let o=s.data;return o?(0,n.jsxs)("div",{className:"space-y-6 p-4 lg:p-6",children:[(0,n.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-lg font-semibold",children:"Runtime health"}),(0,n.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Configuration, provider, MCP, profile context, memory files, and runtime diagnostics."})]}),(0,n.jsxs)("div",{className:"grid gap-3 text-sm sm:grid-cols-2",children:[(0,n.jsx)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Passing:"})," ",o.summary.okCount]})}),(0,n.jsx)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Needs attention:"})," ",o.summary.failingCount]})})]})]}),(0,n.jsx)("input",{value:e,onChange:e=>r(e.target.value),placeholder:"Filter checks",className:"mt-4 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,n.jsx)("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:o.checks.map(e=>(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4 text-sm",children:[(0,n.jsx)("p",{className:"font-medium",children:e.key}),(0,n.jsx)("p",{className:"mt-1 text-muted-foreground",children:e.detail}),(0,n.jsxs)("p",{className:"mt-2 text-xs",children:["Status: ",e.ok?"ok":"needs attention"]}),e.remediation?(0,n.jsxs)("p",{className:"mt-2 text-xs text-muted-foreground",children:["Hint: ",e.remediation]}):null]},e.key))}),(0,n.jsx)("pre",{className:"mt-4 overflow-x-auto rounded-xl border border-border bg-background p-4 text-xs text-muted-foreground",children:o.doctorOutput})]}),(0,n.jsx)(i,{})]}):null}},5299:(e,r,s)=>{"use strict";s.d(r,{A:()=>n});let n=(0,s(1847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=586)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1208],{2596:(e,r,s)=>{"use strict";s.d(r,{G:()=>d,o:()=>t});var n=s(2454),l=s(9678);function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,n.I)({queryKey:["runtime-runs",e],queryFn:()=>(0,l.n)("/api/runtime/runs".concat(e?"?sessionId=".concat(encodeURIComponent(e)):"")),select:e=>e.runs})}function d(){return(0,n.I)({queryKey:["mcp-probe-results"],queryFn:()=>(0,l.n)("/api/runtime/mcp-probes"),select:e=>e.results})}},4362:(e,r,s)=>{Promise.resolve().then(s.bind(s,1935)),Promise.resolve().then(s.bind(s,9136)),Promise.resolve().then(s.bind(s,6981)),Promise.resolve().then(s.bind(s,7102))},7102:(e,r,s)=>{"use strict";s.d(r,{McpDiagnosticsPanel:()=>d});var n=s(5155),l=s(2596),t=s(592);function d(){var e,r,s,d,o,a,c;let i=(0,t.w)(),u=(0,l.G)(),m=i.data,x=null!=(r=u.data)?r:[];return(0,n.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-2xl font-semibold",children:"MCP diagnostics"}),(0,n.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect configured MCP servers, last probe results, active profile context, and remediation hints."})]}),(0,n.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 text-sm shadow-sm",children:[(0,n.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Runtime profile"}),(0,n.jsx)("p",{className:"mt-2 font-semibold",children:null!=(d=null!=(s=null==m||null==(e=m.profileContext)?void 0:e.label)?s:null==m?void 0:m.activeProfile)?d:"unknown"})]}),(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 text-sm shadow-sm",children:[(0,n.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Configured servers"}),(0,n.jsx)("p",{className:"mt-2 font-semibold",children:null!=(o=null==m?void 0:m.mcpServers.length)?o:0})]}),(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 text-sm shadow-sm",children:[(0,n.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Probe records"}),(0,n.jsx)("p",{className:"mt-2 font-semibold",children:x.length})]})]}),(0,n.jsxs)("div",{className:"space-y-3",children:[(null!=(a=null==m?void 0:m.mcpServers)?a:[]).map(e=>{let r=x.find(r=>r.serverName===e.name);return(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e.url||e.command||"No transport configured"})]}),(0,n.jsx)("span",{className:"rounded-full border border-border px-2 py-1 text-xs text-muted-foreground",children:r?r.success?"success":"failed":"unknown"})]}),(0,n.jsxs)("div",{className:"mt-3 rounded-lg border border-border bg-background p-3 text-xs text-muted-foreground",children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Last probe:"})," ",r?String(r.probedAt):"never"]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Error:"})," ",r&&r.errorText?String(r.errorText):"none captured"]}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Tools seen:"})," ",r&&Array.isArray(r.tools)?r.tools.length:0]})]})]},e.name)}),(null!=(c=null==m?void 0:m.mcpServers.length)?c:0)?null:(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"No MCP servers are currently configured."})]})]})}}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=4362)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4662],{492:(e,s,r)=>{"use strict";r.d(s,{$:()=>l});var t=r(2454),d=r(9678);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,t.I)({queryKey:["audit",e],queryFn:()=>(0,d.n)("/api/audit?query=".concat(encodeURIComponent(e))),select:e=>e.events})}},1375:(e,s,r)=>{"use strict";r.d(s,{eS:()=>x,pp:()=>m,W5:()=>u,Gu:()=>c});var t=r(5155),d=r(5299),l=r(1847);let n=(0,l.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"}]]),a=(0,l.A)("TriangleAlert",[["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"}]]);var i=r(4269);function o(e){return"banner"===e?"rounded-xl border border-border/60 bg-card/50 p-4 shadow-[var(--shadow-card)]":"rounded-2xl border border-border/60 bg-card/55 p-6 shadow-[var(--shadow-card)]"}function c(e){var s;let{title:r,message:l,description:n,layout:a="card",className:c,children:m}=e,x=null!=(s=null!=r?r:l)?s:"Loading…";return(0,t.jsxs)("div",{className:(0,i.cn)(o(a),c),children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(d.A,{className:"mt-0.5 h-4 w-4 animate-spin text-primary"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-semibold text-foreground",children:x}),n?(0,t.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:n}):null]})]}),m?(0,t.jsx)("div",{className:"mt-4",children:m}):null]})}function m(e){let{title:s,description:r,icon:d,primaryAction:l,secondaryAction:a,action:c,layout:m="card",className:x}=e,u=null!=l?l:c;return(0,t.jsx)("div",{className:(0,i.cn)(o(m),"border-dashed",x),children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-0.5 text-primary",children:null!=d?d:(0,t.jsx)(n,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-semibold text-foreground",children:s}),(0,t.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:r}),u||a?(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[u,a]}):null]})]})})}function x(e){let{title:s,description:r,severity:d="warning",icon:l,details:n,primaryAction:c,secondaryAction:m,layout:x="card",className:u}=e;return(0,t.jsx)("div",{className:(0,i.cn)(o(x),"danger"===d?"border-danger/35 bg-danger/10":"border-warning/35 bg-warning/10",u),children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:(0,i.cn)("mt-0.5","danger"===d?"text-danger":"text-warning"),children:null!=l?l:(0,t.jsx)(a,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-semibold text-foreground",children:s}),(0,t.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:r}),n?(0,t.jsx)("div",{className:"mt-2 text-xs leading-5 text-muted-foreground",children:n}):null,c||m?(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[c,m]}):null]})]})})}function u(e){let{title:s="Something went wrong",error:r,message:d,description:l,primaryAction:n,secondaryAction:c,layout:m="card",className:x}=e,u=null!=d?d:r,h="string"==typeof u?u:u instanceof Error?u.message:null;return(0,t.jsx)("div",{className:(0,i.cn)(o(m),"border-danger/35 bg-danger/10",x),children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(a,{className:"mt-0.5 h-4 w-4 text-danger"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-semibold text-foreground",children:s}),l?(0,t.jsx)("div",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:l}):null,h?(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-foreground",children:h}):null,n||c?(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[n,c]}):null]})]})})}},2841:(e,s,r)=>{"use strict";r.d(s,{SettingsScreen:()=>b});var t=r(5155),d=r(2619),l=r.n(d),n=r(7510),a=r(492);function i(){var e;let s=(0,a.$)();return(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Audit log"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Recent approvals, config changes, and profile or memory updates."}),(0,t.jsx)("div",{className:"mt-4 space-y-3",children:(null!=(e=s.data)?e:[]).map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.action}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.targetType," \xb7 ",e.targetId," \xb7 ",new Date(e.createdAt).toLocaleString()]}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:e.detail})]},e.id))})]})}var o=r(9896),c=r(3804),m=r(1375),x=r(592),u=r(4269);function h(){var e,s,r,d,l,n,a,i;let o=(0,x.w)();if(o.isLoading)return(0,t.jsx)(m.Gu,{message:"Inspecting runtime…"});if(o.isError)return(0,t.jsx)(m.W5,{message:o.error.message});if(!(null==(e=o.data)?void 0:e.available))return(0,t.jsx)(m.pp,{title:"Runtime not detected",description:"Set HERMES_HOME and install the Hermes runtime to enable live chat, skill, and extension views.",action:(0,t.jsx)("button",{type:"button",onClick:()=>void o.refetch(),className:"rounded-2xl border border-border/70 bg-background/80 px-4 py-2 text-sm font-medium text-foreground",children:"Retry detection"})});let h=o.data;return(0,t.jsxs)("section",{className:"rounded-xl border border-border/70 bg-card/60 p-5 shadow-[var(--shadow-soft)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Runtime status"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Installed runtime, profile context, API reachability, memory files, and recent persisted sessions."})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:(0,u.cn)("inline-flex items-center rounded-full border px-3 py-1 text-xs font-medium",h.apiReachable?"border-success/30 bg-success/10 text-foreground":"border-warning/30 bg-warning/10 text-foreground"),children:h.apiReachable?"API reachable":"API unavailable"}),(0,t.jsxs)("button",{type:"button",onClick:()=>void o.refetch(),className:"inline-flex items-center gap-2 rounded-2xl border border-border/70 bg-background/80 px-3 py-2 text-sm font-medium text-foreground",children:[(0,t.jsx)(c.A,{className:"h-4 w-4"}),"Refresh"]})]})]}),(0,t.jsxs)("div",{className:"mt-4 grid gap-4 md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 p-4 text-sm shadow-[var(--shadow-card)]",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Version:"})," ",h.hermesVersion]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Binary:"})," ",h.hermesPath]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Home:"})," ",h.hermesHome]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Config:"})," ",h.configPath]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Profile context:"})," ",null!=(l=null==(s=h.profileContext)?void 0:s.label)?l:"n/a"]})]}),(0,t.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 p-4 text-sm shadow-[var(--shadow-card)]",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Default model:"})," ",null!=(n=h.modelDefault)?n:"n/a"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Provider:"})," ",null!=(a=h.provider)?a:"n/a"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Memory provider:"})," ",null!=(i=h.memoryProvider)?i:"n/a"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Memory files:"})," ",(null==(r=h.memoryFilesPresent)?void 0:r.join(", "))||"none detected"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"API status:"})," ",h.apiMessage]})]})]}),(null==(d=h.remediationHints)?void 0:d.length)?(0,t.jsxs)("div",{className:"mt-4 rounded-lg border border-border/70 bg-background/80 p-4 text-sm shadow-[var(--shadow-card)]",children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Remediation hints"}),(0,t.jsx)("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-muted-foreground",children:h.remediationHints.map(e=>(0,t.jsx)("li",{children:e},e))})]}):null]})}var p=r(2604);let g=[{href:"/settings/approvals",title:"Approvals browser",description:"Review blocked actions, reasons, and operator decisions."},{href:"/settings/runs",title:"Runs explorer",description:"Inspect durable run state, phases, artifacts, and failures."},{href:"/settings/telemetry",title:"Telemetry browser",description:"Trace client and server events for debugging and product insight."},{href:"/settings/audit",title:"Audit browser",description:"Search persistent governance and configuration changes."},{href:"/settings/health",title:"Runtime health",description:"Check runtime, provider, memory, and MCP remediation signals."},{href:"/settings/mcp-diagnostics",title:"MCP diagnostics",description:"Validate MCP servers, discovered tools, and probe failures."},{href:"/settings/artifacts",title:"Artifacts browser",description:"Browse files, plans, and outputs emitted by prior runs."}];function b(){var e,s,r,d,a,c,m,u,b,f,j,v;let{selectedProfileId:N}=(0,p.j)(),w=(0,n.Sj)(),y=(0,x.w)(),k=(0,n.Sn)(),P=null!=(m=null!=(a=(null!=(r=w.data)?r:[]).find(e=>e.id===N))?a:(null!=(d=w.data)?d:[]).find(e=>e.active))?m:(null!=(c=w.data)?c:[])[0],A=y.data;return(0,t.jsxs)("div",{className:"h-full overflow-y-auto space-y-6 p-4 lg:p-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:"Settings cockpit"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Operate with explicit visibility into runtime state, policy posture, diagnostics, and durable history."})]}),(0,t.jsxs)("section",{className:"grid gap-4 lg:grid-cols-[1.2fr_0.8fr]",children:[(0,t.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Runtime posture"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"This panel tells you whether the runtime is live, which profile is active, and what the workspace can safely do right now."})]}),(0,t.jsxs)("div",{className:"grid gap-2 text-sm sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Connection"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:(null==A?void 0:A.apiReachable)?"Runtime live":(null==A?void 0:A.available)?"Runtime degraded":"Runtime unavailable"})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Profile context"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:null!=(b=null!=(u=null==A||null==(e=A.profileContext)?void 0:e.label)?u:null==A?void 0:A.activeProfile)?b:"Loading"})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"MCP servers"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:null!=(f=null==A?void 0:A.mcpServers.length)?f:0})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Skills indexed"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:null!=(j=null==A?void 0:A.skillsCount)?j:0})]})]})]}),(null==A||null==(s=A.remediationHints)?void 0:s.length)?(0,t.jsxs)("div",{className:"mt-4 rounded-xl border border-warning/30 bg-warning/10 p-4 text-sm text-foreground",children:[(0,t.jsx)("p",{className:"font-medium",children:"Recommended remediation"}),(0,t.jsx)("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-muted-foreground",children:A.remediationHints.slice(0,4).map(e=>(0,t.jsx)("li",{children:e},e))})]}):null]}),P?(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Active profile policy"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"The selected profile controls memory scope, default guardrails, and which integrations are visible across the workspace."}),(0,t.jsxs)("div",{className:"mt-4 space-y-3 text-sm text-muted-foreground",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Selected profile"}),(0,t.jsx)("p",{className:"mt-2 font-semibold text-foreground",children:P.name})]}),(0,t.jsx)(o.j,{value:null!=(v=P.policyPreset)?v:"safe-chat",onChange:e=>void k.mutateAsync({profileId:P.id,policyPreset:e})})]})]}):null]}),(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Operational browsers"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Dedicated operator views for approvals, runs, telemetry, audit, diagnostics, and generated outputs."})]}),(0,t.jsx)(l(),{href:"/settings/health",className:"rounded-xl border border-border bg-background px-4 py-2 text-sm font-medium",children:"Open diagnostics first"})]}),(0,t.jsx)("div",{className:"mt-4 grid gap-3 md:grid-cols-2 xl:grid-cols-3",children:g.map(e=>(0,t.jsxs)(l(),{href:e.href,className:"rounded-xl border border-border bg-background p-4 transition hover:bg-muted/40",children:[(0,t.jsx)("p",{className:"text-sm font-semibold",children:e.title}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:e.description})]},e.href))})]}),(0,t.jsx)(h,{}),(0,t.jsx)(i,{})]})}},3804:(e,s,r)=>{"use strict";r.d(s,{A:()=>t});let t=(0,r(1847).A)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},5299:(e,s,r)=>{"use strict";r.d(s,{A:()=>t});let t=(0,r(1847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},6116:(e,s,r)=>{Promise.resolve().then(r.bind(r,1935)),Promise.resolve().then(r.bind(r,9136)),Promise.resolve().then(r.bind(r,6981)),Promise.resolve().then(r.bind(r,2841))},9896:(e,s,r)=>{"use strict";r.d(s,{j:()=>d});var t=r(5155);function d(e){let{value:s,onChange:r}=e;return(0,t.jsxs)("select",{value:s,onChange:e=>r(e.target.value),className:"w-full rounded-lg border border-input bg-background px-3 py-2 text-sm","aria-label":"Policy preset selector",children:[(0,t.jsx)("option",{value:"safe-chat",children:"Safe Chat"}),(0,t.jsx)("option",{value:"research",children:"Research"}),(0,t.jsx)("option",{value:"builder",children:"Builder"}),(0,t.jsx)("option",{value:"full-power",children:"Full Power"})]})}}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=6116)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5613],{4810:(e,s,r)=>{Promise.resolve().then(r.bind(r,1935)),Promise.resolve().then(r.bind(r,9136)),Promise.resolve().then(r.bind(r,6981)),Promise.resolve().then(r.bind(r,6157))},6157:(e,s,r)=>{"use strict";r.d(s,{RunDetail:()=>c});var t=r(5155),d=r(2619),n=r.n(d),l=r(2115),a=r(5050),o=r(2454),i=r(9678);function c(e){var s,r,d,c,m,u,x,h,p,g;let{runId:b}=e,j=(0,o.I)({queryKey:["runtime-run",b],queryFn:()=>(0,i.n)("/api/runtime/runs/".concat(b)),select:e=>e.run,enabled:!!b}).data,[N,f]=(0,l.useState)(""),v=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,o.I)({queryKey:["runtime-run-events",e,s],queryFn:()=>(0,i.n)("/api/runtime/timeline?sessionId=".concat(encodeURIComponent(e||""),"&query=").concat(encodeURIComponent(s))),select:e=>e.events,enabled:!!e})}(null!=(s=null==j?void 0:j.session_id)?s:null,N),y=(0,a.$Q)(null!=(r=null==j?void 0:j.session_id)?r:null),w=(0,a.kv)(null!=(d=null==j?void 0:j.session_id)?d:null),S=null!=(c=v.data)?c:[],k=(0,l.useMemo)(()=>S.map((e,s)=>({key:"".concat(e.type,"-").concat(s),event:e})),[S]);return j?(0,t.jsxs)("div",{className:"space-y-6 p-4 lg:p-6",children:[(0,t.jsx)(n(),{href:"/settings/runs",className:"text-sm text-muted-foreground hover:text-foreground",children:"← Back to runs"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:"Run detail"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect run state, artifacts, approvals, and related runtime events."})]}),(0,t.jsxs)("section",{className:"grid gap-3 md:grid-cols-4",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Run"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:String(j.id).slice(0,8)})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Status"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:String(j.status)})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Approvals"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:(null!=(m=w.data)?m:[]).length})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Artifacts"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:(null!=(u=y.data)?u:[]).length})]})]}),(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm text-sm",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Run:"})," ",String(j.id)]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Session:"})," ",String(j.session_id)]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Status:"})," ",String(j.status)]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Source:"})," ",String(j.source)]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Started:"})," ",String(j.started_at)]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Updated:"})," ",String(j.updated_at)]}),j.last_error?(0,t.jsxs)("p",{className:"text-danger",children:[(0,t.jsx)("strong",{children:"Error:"})," ",String(j.last_error)]}):null]}),(0,t.jsxs)("section",{className:"grid gap-4 xl:grid-cols-[1.2fr_0.8fr]",children:[(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Event drilldown"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Filter runtime events associated with this run’s session."})]}),(0,t.jsx)("input",{value:N,onChange:e=>f(e.target.value),placeholder:"Filter events",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"})]}),(0,t.jsxs)("div",{className:"mt-4 space-y-3",children:[k.map(e=>{let{key:s,event:r}=e;return(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:r.type}),(0,t.jsx)("pre",{className:"mt-2 overflow-x-auto whitespace-pre-wrap text-xs text-muted-foreground",children:JSON.stringify(r,null,2)})]},s)}),k.length?null:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No events matched this filter."})]})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Approvals encountered"}),(0,t.jsxs)("div",{className:"mt-4 space-y-3 text-sm text-muted-foreground",children:[(null!=(x=w.data)?x:[]).slice(0,5).map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:e.toolName}),(0,t.jsx)("p",{className:"mt-1",children:e.summary}),(0,t.jsx)("p",{className:"mt-2 text-xs",children:e.status})]},e.toolCallId)),(null!=(h=w.data)?h:[]).length?null:(0,t.jsx)("p",{children:"No approvals were recorded for this run."})]})]}),(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"Artifacts emitted"}),(0,t.jsxs)("div",{className:"mt-4 space-y-3 text-sm text-muted-foreground",children:[(null!=(p=y.data)?p:[]).slice(0,5).map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4",children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:e.label}),(0,t.jsx)("p",{className:"mt-1",children:e.artifactType})]},e.artifactId)),(null!=(g=y.data)?g:[]).length?null:(0,t.jsx)("p",{children:"No artifacts were emitted for this run."})]})]})]})]})]}):(0,t.jsx)("div",{className:"p-4 lg:p-6 text-sm text-muted-foreground",children:"Loading run…"})}}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=4810)),_N_E=e.O()}]);
|
package/.next/static/chunks/app/settings/runs/{page-0cef3d042476b94a.js → page-e0160a1bd8df943a.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8777],{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8777],{2382:(e,s,r)=>{Promise.resolve().then(r.bind(r,1935)),Promise.resolve().then(r.bind(r,9136)),Promise.resolve().then(r.bind(r,6981)),Promise.resolve().then(r.bind(r,3526))},2596:(e,s,r)=>{"use strict";r.d(s,{G:()=>l,o:()=>d});var t=r(2454),n=r(9678);function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,t.I)({queryKey:["runtime-runs",e],queryFn:()=>(0,n.n)("/api/runtime/runs".concat(e?"?sessionId=".concat(encodeURIComponent(e)):"")),select:e=>e.runs})}function l(){return(0,t.I)({queryKey:["mcp-probe-results"],queryFn:()=>(0,n.n)("/api/runtime/mcp-probes"),select:e=>e.results})}},3526:(e,s,r)=>{"use strict";r.d(s,{RunsBrowser:()=>o});var t=r(5155),n=r(2619),d=r.n(n),l=r(2115),a=r(2604),i=r(2596);function o(){var e;let{activeSessionId:s}=(0,a.j)(),r=(0,i.o)(s),[n,o]=(0,l.useState)(""),c=null!=(e=r.data)?e:[],u=(0,l.useMemo)(()=>c.filter(e=>JSON.stringify(e).toLowerCase().includes(n.toLowerCase())),[n,c]),m=u.filter(e=>"failed"===e.status).length;return(0,t.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:"Runs explorer"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect durable run state for the active session or the wider runtime."})]}),(0,t.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Scope"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:s?"Active session":"All sessions"})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Runs"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:u.length})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Failures"}),(0,t.jsx)("p",{className:"mt-2 font-semibold",children:m})]})]}),(0,t.jsx)("input",{value:n,onChange:e=>o(e.target.value),placeholder:"Filter runs",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,t.jsxs)("div",{className:"space-y-3",children:[u.map(e=>{var s;return(0,t.jsxs)(d(),{href:"/settings/runs/".concat(String(e.id)),className:"block rounded-xl border border-border bg-card p-4 shadow-sm transition hover:bg-muted/30",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:["Run ",String(e.id).slice(0,8)]}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["Source: ",String(e.source)," \xb7 Session: ",String(null!=(s=e.session_id)?s:"n/a")]})]}),(0,t.jsx)("span",{className:"rounded-full border border-border px-2 py-1 text-xs text-muted-foreground",children:String(e.status)})]}),(0,t.jsxs)("p",{className:"mt-2 text-xs text-muted-foreground",children:["Started: ",String(e.started_at)," \xb7 Updated: ",String(e.updated_at)]}),e.last_error?(0,t.jsx)("p",{className:"mt-2 text-sm text-danger",children:String(e.last_error)}):null]},String(e.id))}),u.length?null:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No runs matched the current filter."})]})]})}}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=2382)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3726],{3649:(e,r,t)=>{"use strict";t.d(r,{TelemetryBrowser:()=>a});var s=t(5155),n=t(2115),l=t(2454),d=t(9678);function a(){var e;let[r,t]=(0,n.useState)(""),a=null!=(e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return(0,l.I)({queryKey:["telemetry",e,r],queryFn:()=>(0,d.n)("/api/runtime/telemetry?query=".concat(encodeURIComponent(e),"&limit=").concat(r)),select:e=>e.events})}(r,200).data)?e:[],c=(0,n.useMemo)(()=>a.reduce((e,r)=>{var t,s;let n=String(null!=(t=r.source)?t:"unknown");return e[n]=(null!=(s=e[n])?s:0)+1,e},{}),[a]);return(0,s.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl font-semibold",children:"Telemetry browser"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect persisted client and server telemetry events."})]}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,s.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Events returned"}),(0,s.jsx)("p",{className:"mt-2 font-semibold",children:a.length})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm md:col-span-2",children:[(0,s.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Sources"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:Object.entries(c).map(e=>{let[r,t]=e;return"".concat(r,": ").concat(t)}).join(" \xb7 ")||"No telemetry sources yet"})]})]}),(0,s.jsx)("input",{value:r,onChange:e=>t(e.target.value),placeholder:"Filter telemetry",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,s.jsxs)("div",{className:"space-y-3",children:[a.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,s.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:String(e.event)}),(0,s.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[String(e.source)," \xb7 ",String(e.createdAt)]})]})}),(0,s.jsx)("pre",{className:"mt-2 overflow-x-auto whitespace-pre-wrap text-xs text-muted-foreground",children:JSON.stringify(e.payload,null,2)})]},String(e.id))),a.length?null:(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"No telemetry matched the current filter."})]})]})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3726],{3649:(e,r,t)=>{"use strict";t.d(r,{TelemetryBrowser:()=>a});var s=t(5155),n=t(2115),l=t(2454),d=t(9678);function a(){var e;let[r,t]=(0,n.useState)(""),a=null!=(e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return(0,l.I)({queryKey:["telemetry",e,r],queryFn:()=>(0,d.n)("/api/runtime/telemetry?query=".concat(encodeURIComponent(e),"&limit=").concat(r)),select:e=>e.events})}(r,200).data)?e:[],c=(0,n.useMemo)(()=>a.reduce((e,r)=>{var t,s;let n=String(null!=(t=r.source)?t:"unknown");return e[n]=(null!=(s=e[n])?s:0)+1,e},{}),[a]);return(0,s.jsxs)("div",{className:"space-y-4 p-4 lg:p-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl font-semibold",children:"Telemetry browser"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Inspect persisted client and server telemetry events."})]}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,s.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Events returned"}),(0,s.jsx)("p",{className:"mt-2 font-semibold",children:a.length})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm md:col-span-2",children:[(0,s.jsx)("p",{className:"text-xs uppercase tracking-label text-muted-foreground",children:"Sources"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:Object.entries(c).map(e=>{let[r,t]=e;return"".concat(r,": ").concat(t)}).join(" \xb7 ")||"No telemetry sources yet"})]})]}),(0,s.jsx)("input",{value:r,onChange:e=>t(e.target.value),placeholder:"Filter telemetry",className:"rounded-lg border border-input bg-background px-3 py-2 text-sm"}),(0,s.jsxs)("div",{className:"space-y-3",children:[a.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-sm",children:[(0,s.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:String(e.event)}),(0,s.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[String(e.source)," \xb7 ",String(e.createdAt)]})]})}),(0,s.jsx)("pre",{className:"mt-2 overflow-x-auto whitespace-pre-wrap text-xs text-muted-foreground",children:JSON.stringify(e.payload,null,2)})]},String(e.id))),a.length?null:(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"No telemetry matched the current filter."})]})]})}},3658:(e,r,t)=>{Promise.resolve().then(t.bind(t,1935)),Promise.resolve().then(t.bind(t,9136)),Promise.resolve().then(t.bind(t,6981)),Promise.resolve().then(t.bind(t,3649))}},e=>{e.O(0,[2231,1635,5097,8441,1255,7358],()=>e(e.s=3658)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7809],{685:(e,t,l)=>{"use strict";function s(e,t){return"builtin"===e?"Built in for every workspace":"global"===e?"Installed for all profiles":t?"Profile scoped \xb7 ".concat(t):"Profile scoped"}function n(e){switch(e){case"built-in":return"Official";case"verified":return"Verified";case"custom":return"Community";case"local-process":return"Local";default:return e}}function r(e){switch(e){case"built-in":return"Official";case"verified":return"Verified";case"custom":return"Community";case"self-hosted":return"Self-hosted";case"local-process":return"Local process";default:return"Unknown source"}}function o(e){switch(e){case"read":case"low":return"Low risk";case"write":case"medium":return"Writes data";case"execute":return"Executes commands";case"admin":case"high":return"High privilege";default:return e}}function a(e){let t=String(null!=e?e:"unknown");return"needs-auth"===t?"Needs auth":"expired"===t?"Auth expired":"none"===t?"No auth required":"unknown"===t?"Auth unknown":"Auth connected"}function i(e){switch(e){case"enabled":return"Enabled by policy";case"blocked":return"Blocked by policy";case"approval-gated":return"Approval required";case"policy-limited":return"Policy limited";default:return"Governance unknown"}}function d(e){switch(e){case"auto":return"Auto approve";case"on-request":return"On request";case"always":return"Always ask";default:return"Policy inherited"}}function c(e){switch(e){case"global":return"Visible to every profile";case"profile":return"Visible only in this profile";case"session":return"Loaded only in the active session";default:return e}}l.d(t,{B6:()=>d,BX:()=>a,CF:()=>r,CV:()=>n,Ow:()=>i,VJ:()=>s,b:()=>o,mF:()=>c})},803:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});let s=(0,l(1847).A)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]])},1613:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});let s=(0,l(1847).A)("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])},3705:(e,t,l)=>{"use strict";l.d(t,{SkillDetail:()=>y});var s=l(5155),n=l(2115),r=l(2619),o=l.n(r),a=l(63),i=l(1613),d=l(9715),c=l(8734),u=l(803),p=l(7726),m=l(6288),x=l(9318);function h(e){let{skill:t,hasActiveSession:l,onInstall:n,onEnableToggle:r,onLoadIntoSession:o,onUninstall:a}=e,i="builtin"!==t.scope;return(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:["builtin"===t.scope?(0,s.jsx)("button",{type:"button",onClick:n,className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",children:i?"Install":"Copy to profile scope"}):null,t.scope&&"builtin"===t.scope?null:(0,s.jsx)("button",{type:"button",onClick:r,className:"rounded-lg border border-border px-4 py-2 text-sm",children:t.enabled?"Disable":"Enable"}),(0,s.jsx)("button",{type:"button",onClick:o,disabled:!l,className:"rounded-lg border border-border px-4 py-2 text-sm disabled:cursor-not-allowed disabled:opacity-50",children:"Load into current session"}),"builtin"!==t.scope?(0,s.jsx)("button",{type:"button",onClick:a,className:"rounded-lg border border-border px-4 py-2 text-sm text-danger",children:"Remove local copy"}):null]})}function b(e){let{content:t,readOnly:l,targetPath:r,scopeLabel:o,onSave:a}=e,[i,d]=(0,n.useState)(t),[c,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>{d(t)},[t]);let p=i!==t,m=(0,n.useMemo)(()=>i.split("\n").length,[i]);return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-background p-3 text-xs text-muted-foreground",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Edit mode:"})," ",l?"Read-only until copied into profile scope.":"Saving writes the local SKILL.md file directly."]}),o?(0,s.jsxs)("p",{className:"mt-1",children:[(0,s.jsx)("strong",{children:"Target scope:"})," ",o]}):null,r?(0,s.jsxs)("p",{className:"mt-1 break-all",children:[(0,s.jsx)("strong",{children:"Target path:"})," ",r]}):null,(0,s.jsxs)("p",{className:"mt-1",children:[(0,s.jsx)("strong",{children:"Validation:"})," YAML frontmatter and body content are checked before save."]})]}),(0,s.jsx)("textarea",{value:i,onChange:e=>d(e.target.value),readOnly:l,className:"min-h-72 w-full rounded-2xl border border-border bg-card p-4 font-mono text-sm outline-none focus:border-primary"}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:[m," lines ",p?"\xb7 unsaved changes":"\xb7 no local changes"]}),(0,s.jsx)("button",{type:"button",onClick:async()=>{u(!0);try{await a(i)}finally{u(!1)}},disabled:l||!p||c,className:"rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50",children:c?"Saving…":"Save skill"})]})]})}var j=l(685),f=l(2604);function g(e){let{skillId:t,filePath:l}=e,n=(0,x.Qc)(t,l);return n.isLoading?(0,s.jsxs)("div",{className:"rounded-xl border border-border/70 bg-background/60 p-4 text-sm text-muted-foreground",children:["Loading ",l,"…"]}):n.error||!n.data?(0,s.jsxs)("div",{className:"rounded-xl border border-danger/30 bg-danger/5 p-4 text-sm text-muted-foreground",children:["Failed to load ",l]}):(0,s.jsxs)("div",{className:"rounded-xl border border-border/70 bg-background/60",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/50 px-4 py-2 text-xs text-muted-foreground",children:[(0,s.jsx)(i.A,{className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{className:"font-medium text-foreground",children:l}),(0,s.jsxs)("span",{className:"ml-auto",children:[n.data.content.split("\n").length," lines"]})]}),(0,s.jsx)("pre",{className:"max-h-[400px] overflow-auto px-4 py-3 text-xs leading-6",children:(0,s.jsx)("code",{children:n.data.content})})]})}let k={references:(0,s.jsx)(d.A,{className:"h-3.5 w-3.5"}),templates:(0,s.jsx)(c.A,{className:"h-3.5 w-3.5"}),scripts:(0,s.jsx)(u.A,{className:"h-3.5 w-3.5"}),assets:(0,s.jsx)(i.A,{className:"h-3.5 w-3.5"})};function y(e){var t,l,r,d,u,y,v;let{skillId:Y}=e,N=(0,a.useRouter)(),w=(0,a.useSearchParams)().get("session"),I=(0,x.Pt)(Y),S=(0,x.I3)(),A=(0,x.aO)(),O=(0,x.b_)(),P=(0,x.F8)(),C=(0,x.hL)(),{activeSessionId:L,setActiveSessionId:q,rememberLoadedSkillInSession:F}=(0,f.j)(),E=null!=w?w:L,[T,M]=(0,n.useState)(null);(0,n.useEffect)(()=>{w&&(w!==L&&q(w),N.replace("/skills/".concat(Y),{scroll:!1}))},[L,w,N,q,Y]);let V=(0,m.wV)(E);if(I.isLoading||!I.data)return(0,s.jsx)("div",{className:"p-4 text-sm text-muted-foreground lg:p-6",children:"Loading skill…"});let K=I.data,U=!!(null==(l=V.data)||null==(t=l.loadedSkillIds)?void 0:t.includes(K.id)),R="builtin"===K.scope,_={};for(let e of null!=(y=K.linkedFiles)?y:[])_[e.group]||(_[e.group]=[]),_[e.group].push(e);return(0,s.jsxs)("div",{className:"h-full overflow-y-auto space-y-6 p-4 lg:p-6",children:[(0,s.jsx)(o(),{href:E?"/skills?session=".concat(encodeURIComponent(E)):"/skills",className:"text-sm text-muted-foreground hover:text-foreground",children:"← Back to Skills"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[(0,s.jsx)("span",{className:"rounded-full border border-border px-2 py-1",children:(0,j.VJ)(K.scope,K.ownerProfileId)}),(0,s.jsx)("span",{className:"rounded-full border border-border px-2 py-1",children:(0,j.CV)(K.provenance)}),(0,s.jsxs)("span",{className:"rounded-full border border-border px-2 py-1",children:["v",null!=(v=K.version)?v:"unversioned"]}),(0,s.jsx)("span",{className:"rounded-full border border-border px-2 py-1",children:K.enabled?"Enabled":"Disabled"}),U?(0,s.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-1 text-foreground",children:"Loaded in current session"}):null,K.category?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-primary/20 bg-primary/5 px-2 py-1",children:[(0,s.jsx)(c.A,{className:"h-3 w-3"}),K.category]}):null,K.author?(0,s.jsxs)("span",{className:"rounded-full border border-border px-2 py-1",children:["by ",K.author]}):null]}),(0,s.jsx)("h1",{className:"text-2xl font-semibold",children:K.name}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:K.description}),K.tags&&K.tags.length>0?(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:K.tags.map(e=>(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-lg bg-primary/8 px-2 py-1 text-xs text-muted-foreground",children:[(0,s.jsx)(p.A,{className:"h-3 w-3"}),e]},e))}):null,(0,s.jsx)(h,{skill:K,hasActiveSession:!!E,onInstall:()=>void S.mutateAsync(K.id),onEnableToggle:()=>void A.mutateAsync({skillId:K.id,enabled:!K.enabled}),onLoadIntoSession:()=>{E&&(q(E),F(E,K.id),N.replace("/skills/".concat(Y,"?session=").concat(encodeURIComponent(E),"&loadedSkill=").concat(encodeURIComponent(K.id)),{scroll:!1}),P.mutateAsync({skillId:K.id,sessionId:E}))},onUninstall:()=>void C.mutateAsync(K.id)}),E?(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Current chat session available: ",E,U?" \xb7 skill already loaded":""]}):(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Open Chat and select a session before loading a skill into it."})]}),(0,s.jsxs)("section",{className:"grid gap-4 xl:grid-cols-[1.2fr_0.8fr]",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Skill source"}),(0,s.jsxs)("p",{className:"mt-1 text-sm text-muted-foreground",children:["SKILL.md — ",K.content.split("\n").length," lines",K.filePath?" \xb7 ".concat(K.filePath):""]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(b,{content:K.content,readOnly:R,targetPath:K.filePath,scopeLabel:(0,j.VJ)(K.scope,K.ownerProfileId),onSave:async e=>{await O.mutateAsync({skillId:K.id,content:e})}})})]}),Object.keys(_).length>0?(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Linked files"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Supporting references, templates, and scripts bundled with this skill."}),(0,s.jsx)("div",{className:"mt-4 space-y-3",children:Object.entries(_).map(e=>{var t;let[l,n]=e;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:[null!=(t=k[l])?t:(0,s.jsx)(i.A,{className:"h-3.5 w-3.5"}),l," (",n.length,")"]}),(0,s.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:n.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>M(T===e.path?null:e.path),className:"rounded-lg border px-3 py-1.5 text-xs font-medium transition ".concat(T===e.path?"border-primary/40 bg-primary/10 text-foreground":"border-border/60 text-muted-foreground hover:bg-muted/40"),children:e.name},e.path))})]},l)})}),T?(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(g,{skillId:Y,filePath:T})}):null]}):null]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Session impact"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Skills attach reusable instructions and can imply tool requirements for the current workspace."}),(0,s.jsxs)("div",{className:"mt-4 space-y-2 text-sm text-muted-foreground",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{className:"text-foreground",children:"Owner:"})," ",(0,j.VJ)(K.scope,K.ownerProfileId)]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{className:"text-foreground",children:"Updated:"})," ",K.updatedAt?new Date(K.updatedAt).toLocaleString():"Unknown"]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{className:"text-foreground",children:"Loaded sessions:"})," ",(null==(r=K.loadedInSessions)?void 0:r.length)?K.loadedInSessions.join(", "):"None recorded yet"]}),(null==(d=K.linkedFiles)?void 0:d.length)?(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{className:"text-foreground",children:"Linked files:"})," ",K.linkedFiles.length," (",Object.entries(_).map(e=>{let[t,l]=e;return"".concat(l.length," ").concat(t)}).join(", "),")"]}):null]})]}),(0,s.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Tool expectations"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Rendered only from available metadata. No capability assumptions are fabricated."}),(0,s.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:((null==(u=K.impliedTools)?void 0:u.length)?K.impliedTools:["No declared tool dependencies"]).map(e=>(0,s.jsx)("span",{className:"rounded-full border border-border px-2 py-1 text-xs text-muted-foreground",children:e},e))})]}),K.relatedSkills&&K.relatedSkills.length>0?(0,s.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Related skills"}),(0,s.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:K.relatedSkills.map(e=>(0,s.jsx)(o(),{href:"/skills/".concat(e),className:"rounded-lg border border-border/60 px-3 py-1.5 text-xs font-medium text-muted-foreground transition hover:bg-muted/40 hover:text-foreground",children:e},e))})]}):null]})]})]})}},7191:(e,t,l)=>{Promise.resolve().then(l.bind(l,1935)),Promise.resolve().then(l.bind(l,9136)),Promise.resolve().then(l.bind(l,6981)),Promise.resolve().then(l.bind(l,3705))},7726:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});let s=(0,l(1847).A)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},8734:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});let s=(0,l(1847).A)("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},9054:(e,t,l)=>{"use strict";l.d(t,{HB:()=>m,C5:()=>x,d:()=>u,iF:()=>p,YM:()=>h});var s=l(4879);s.gM("type",[s.Ik({type:s.eu("assistant.delta"),delta:s.Yj()}),s.Ik({type:s.eu("run.phase"),phase:s.k5(["drafting","tool-started","waiting-approval","completed"]),label:s.Yj()}),s.Ik({type:s.eu("tool.started"),toolCallId:s.Yj(),toolName:s.Yj(),riskLevel:s.k5(["read","write","execute","admin"]).optional(),provenance:s.k5(["built-in","verified","custom","self-hosted","local-process"]).optional()}),s.Ik({type:s.eu("tool.awaiting_approval"),toolCallId:s.Yj(),toolName:s.Yj(),summary:s.Yj(),riskLevel:s.k5(["read","write","execute","admin"]).optional(),governance:s.k5(["enabled","blocked","approval-gated","policy-limited"]).optional()}),s.Ik({type:s.eu("tool.completed"),toolCallId:s.Yj(),toolName:s.Yj(),output:s.Yj().optional(),riskLevel:s.k5(["read","write","execute","admin"]).optional()}),s.Ik({type:s.eu("artifact.emitted"),artifactId:s.Yj(),artifactType:s.Yj(),label:s.Yj(),content:s.Yj().optional()}),s.Ik({type:s.eu("source.emitted"),source:s.Ik({id:s.Yj(),title:s.Yj(),href:s.Yj().optional(),snippet:s.Yj().optional(),sourceType:s.k5(["web","file","workspace","integration","unknown"]),provenance:s.k5(["built-in","verified","custom","self-hosted","local-process"]),note:s.Yj().optional(),label:s.Yj().optional()})}),s.Ik({type:s.eu("error"),message:s.Yj()})]),s.Ik({model:s.Yj(),provider:s.Yj(),policyPreset:s.k5(["safe-chat","research","builder","full-power"]),memoryMode:s.k5(["standard","minimal"])}),s.Ik({id:s.Yj(),title:s.Yj(),updatedAt:s.Yj(),preview:s.Yj().optional()});let n=s.Ik({id:s.Yj(),name:s.Yj(),description:s.Yj(),enabled:s.zM(),riskLevel:s.k5(["read","write","execute","admin"]),scope:s.k5(["global","profile","session"]),approvalPolicy:s.k5(["auto","on-request","always"]).optional(),lastUsedAt:s.Yj().optional()}),r=s.Ik({command:s.Yj().optional(),url:s.Yj().optional(),authType:s.k5(["none","api-key","oauth"]).optional(),token:s.Yj().optional()}),o=s.Ik({source:s.k5(["live","cache","persisted","failed"]),errorText:s.Yj().nullable().optional(),remediation:s.YO(s.Yj()).optional(),discoveredTools:s.ai().optional(),probedAt:s.Yj().optional()}),a=s.Ik({id:s.Yj(),name:s.Yj(),description:s.Yj(),health:s.k5(["healthy","degraded","blocked","failed"]),riskLevel:s.k5(["read","write","execute","admin"]),authState:s.k5(["connected","needs-auth","expired"]),governance:s.k5(["enabled","blocked","approval-gated","policy-limited"]),provenance:s.k5(["built-in","verified","custom","self-hosted","local-process"]),approvalPolicy:s.k5(["auto","on-request","always"]),type:s.k5(["mcp","native","builtin"]),installed:s.zM(),config:r,capabilities:s.YO(n),toolCount:s.ai(),profilesUsing:s.YO(s.Yj()),diagnostics:o.optional(),version:s.Yj().optional(),updatedAt:s.Yj().optional()}),i=s.Ik({id:s.Yj(),name:s.Yj(),sourceExtensionId:s.Yj(),sourceExtensionName:s.Yj(),category:s.k5(["mcp","builtin","native"]),riskLevel:s.k5(["read","write","execute","admin"]),enabled:s.zM(),approvalPolicy:s.k5(["auto","on-request","always"]),lastUsedAt:s.Yj().optional(),scope:s.k5(["global","profile","session"])});s.Ik({id:s.Yj(),createdAt:s.Yj(),action:s.Yj(),targetType:s.Yj(),targetId:s.Yj(),detail:s.Yj()}),s.Ik({id:s.Yj(),content:s.Yj(),updatedAt:s.Yj().optional(),scope:s.k5(["user","agent"])}),s.Ik({activeProfileId:s.Yj().nullable(),activeSessionId:s.Yj().nullable(),activeSessionTitle:s.Yj().optional(),activeSessionPreview:s.Yj().optional(),loadedSkillIds:s.YO(s.Yj()),model:s.Yj().optional(),provider:s.Yj().optional(),policyPreset:s.k5(["safe-chat","research","builder","full-power"]).optional(),memoryMode:s.k5(["standard","minimal"]).optional(),userMemory:s.YO(s.Yj()),agentMemory:s.YO(s.Yj())}),s.Ik({id:s.Yj(),name:s.Yj(),modelDefault:s.Yj().optional(),policyPreset:s.k5(["safe-chat","research","builder","full-power"]).optional(),sessionCount:s.ai().optional(),skillCount:s.ai().optional(),extensionCount:s.ai().optional(),active:s.zM().optional()}),s.Ik({id:s.Yj(),title:s.Yj(),updatedAt:s.Yj(),status:s.k5(["active","archived"]),preview:s.Yj().optional(),parentSessionId:s.Yj().optional()});let d=s.Ik({path:s.Yj(),name:s.Yj(),group:s.Yj()}),c=s.Ik({id:s.Yj(),name:s.Yj(),description:s.Yj(),source:s.k5(["bundled","local","hub","agent-created"]),scope:s.k5(["builtin","global","profile"]),provenance:s.k5(["built-in","verified","custom","local-process"]),installed:s.zM(),enabled:s.zM(),content:s.Yj(),loadedInSessions:s.YO(s.Yj()).optional(),ownerProfileId:s.Yj().nullable().optional(),filePath:s.Yj().optional(),version:s.Yj().optional(),updatedAt:s.Yj().optional(),impliedTools:s.YO(s.Yj()).optional(),category:s.Yj().optional(),tags:s.YO(s.Yj()).optional(),relatedSkills:s.YO(s.Yj()).optional(),linkedFiles:s.YO(d).optional(),author:s.Yj().optional()}),u=e=>c.parse(e),p=e=>c.array().parse(e),m=e=>a.parse(e),x=e=>a.array().parse(e),h=e=>i.array().parse(e)},9318:(e,t,l)=>{"use strict";l.d(t,{$P:()=>b,F8:()=>x,I3:()=>u,Pt:()=>d,Qc:()=>j,a$:()=>i,aO:()=>p,b_:()=>m,hL:()=>h,jM:()=>g,vb:()=>f});var s=l(2454),n=l(9776),r=l(549),o=l(9678),a=l(9054);function i(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,s.I)({queryKey:["skills",e],queryFn:()=>(0,o.n)("/api/skills".concat(e?"?installed=true":"")),select:e=>(0,a.iF)(e.skills)})}function d(e){return(0,s.I)({queryKey:["skill",e],queryFn:()=>(0,o.n)("/api/skills/".concat(e)),select:e=>(0,a.d)(e.skill),enabled:!!e})}function c(e,t){let l=(0,a.d)(t);e.invalidateQueries({queryKey:["skills"]}),e.setQueryData(["skill",l.id],{skill:l})}function u(){let e=(0,n.jE)();return(0,r.n)({mutationFn:e=>(0,o.n)("/api/skills/".concat(e,"/install"),{method:"POST"}),onSuccess:t=>{let{skill:l}=t;return c(e,l)}})}function p(){let e=(0,n.jE)();return(0,r.n)({mutationFn:e=>{let{skillId:t,enabled:l}=e;return(0,o.n)("/api/skills/".concat(t,"/enable"),{method:"POST",body:JSON.stringify({enabled:l})})},onSuccess:t=>{let{skill:l}=t;return c(e,l)}})}function m(){let e=(0,n.jE)();return(0,r.n)({mutationFn:e=>{let{skillId:t,content:l}=e;return(0,o.n)("/api/skills/".concat(t),{method:"PATCH",body:JSON.stringify({content:l})})},onSuccess:t=>{let{skill:l}=t;return c(e,l)}})}function x(){let e=(0,n.jE)();return(0,r.n)({mutationFn:e=>{let{skillId:t,sessionId:l}=e;return(0,o.n)("/api/skills/".concat(t,"/load"),{method:"POST",body:JSON.stringify({sessionId:l})})},onSuccess:(t,l)=>{let{skill:s}=t;c(e,s),e.setQueryData(["session",l.sessionId],e=>{var t;if(!(null==e?void 0:e.session))return e;let s=null!=(t=e.session.loadedSkillIds)?t:[];return{...e,session:{...e.session,loadedSkillIds:s.includes(l.skillId)?s:[l.skillId,...s]}}}),e.invalidateQueries({queryKey:["session",l.sessionId]})}})}function h(){let e=(0,n.jE)();return(0,r.n)({mutationFn:e=>(0,o.n)("/api/skills/".concat(e),{method:"DELETE"}),onSuccess:t=>{let{skill:l}=t;return c(e,l)}})}function b(){return(0,s.I)({queryKey:["skill-categories"],queryFn:()=>(0,o.n)("/api/skills/categories"),select:e=>e.categories})}function j(e,t){return(0,s.I)({queryKey:["skill-file",e,t],queryFn:()=>(0,o.n)("/api/skills/".concat(e,"/files?path=").concat(encodeURIComponent(t))),enabled:!!(e&&t)})}function f(e){let t=e?"?q=".concat(encodeURIComponent(e)):"";return(0,s.I)({queryKey:["hub-skills",null!=e?e:""],queryFn:()=>(0,o.n)("/api/skills/hub".concat(t))})}function g(){let e=(0,n.jE)();return(0,r.n)({mutationFn:e=>{let{identifier:t,category:l}=e;return(0,o.n)("/api/skills/hub/install",{method:"POST",body:JSON.stringify({identifier:t,category:l})})},onSuccess:()=>{e.invalidateQueries({queryKey:["skills"]}),e.invalidateQueries({queryKey:["hub-skills"]}),e.invalidateQueries({queryKey:["skill-categories"]})}})}}},e=>{e.O(0,[2231,1635,4879,5097,8441,1255,7358],()=>e(e.s=7191)),_N_E=e.O()}]);
|