@xopcai/xopc 0.0.396 → 0.0.398
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/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DwTaeL1e.js → agent-avatar-dicebear-Q-lKLSrc.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CobxTBV_.js +1 -0
- package/dist/gateway/static/root/assets/agents-Bgmmue5K.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-BjGOUrAf.js → agents-admin-api-DvSe10zu.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-B1ApwlFh.js → app-management-settings-panel-CB_W2ano.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Avd_jVji.js → appearance-settings-B-ppSGBm.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-3qUgsGui.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-C26WGbj9.js → archive-plugin-CeQrQ693.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-T3FSuURJ.js → automations-page-Cc9vZanv.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-Bc4c_AEq.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CLaLkM3M.js → binary-plugins-BqaVBv1R.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CB4oRyM5.js → block-editor-B4ij8nZi.js} +40 -40
- package/dist/gateway/static/root/assets/{browser-automation-inputs-0nkk3bLA.js → browser-automation-inputs-DngvcZH9.js} +1 -1
- package/dist/gateway/static/root/assets/browser-automations-page-CdqwXyYq.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-CJT0rB-I.js +3 -0
- package/dist/gateway/static/root/assets/{capabilities-CTfLd_UE.js → capabilities-glv1DeRI.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-C56VsP0Y.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DZiA8JIq.js +8 -0
- package/dist/gateway/static/root/assets/{capability-header-actions-Br5PchG2.js → capability-header-actions-Cu-ATcJq.js} +1 -1
- package/dist/gateway/static/root/assets/capability-links--dcwUjgv.js +1 -0
- package/dist/gateway/static/root/assets/channels-gIjZtYnV.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-Cl0hAav9.js → chat-terminal-dock-COdvmTgN.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-C1XHsuI8.js +1 -0
- package/dist/gateway/static/root/assets/{connector-service-page-AqsoqTnF.js → connector-service-page-Cv2bhnQ5.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-SmKItq0N.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-CyFehuto.js → date-picker-CCnqYwy0.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-Vu_5QGGJ.js → dependency-picker-nt5ruIio.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-Dw9k0Z2p.js → desktop-pet-Bn8xj1v3.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-DKqkhvxu.js → desktop-pet-settings-Cbl1J_VE.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-4l4ESMon.js → device-pairing-wizard-Tadg9co1.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-7svbL2tR.js → directory-picker-path-field-DuE5ez1E.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-CFa6PCBV.js → extension-debug-page-jsNxwqNi.js} +1 -1
- package/dist/gateway/static/root/assets/extension-page-N_rBjYX8.js +1 -0
- package/dist/gateway/static/root/assets/extension-settings-page-7qAdvlRB.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-Di9g6pE8.js → gateway-config-swr-DAir1JsW.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-2-o7qk92.js → gateway-realtime-dE0XrVAT.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-CPlVuu0d.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-ViqOhx_m.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-BCUswcVy.js → gateway-startup-retry-CqyGHM2M.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-DzEeyJpH.js → highlighted-body-KQOG7T2V-XrkWdmrk.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-C_Xn_Kkz.js +2 -0
- package/dist/gateway/static/root/assets/{image-generation-api-Zo56ZmKs.js → image-generation-api-CmHdM2uL.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-C_PPaOFv.js → imports-page-B-dnvHP_.js} +1 -1
- package/dist/gateway/static/root/assets/index-DWzv8ZoO.css +1 -0
- package/dist/gateway/static/root/assets/{index-XRbEWVyZ.js → index-DvKDT-RQ.js} +116 -116
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BGtrzFT6.js → keyboard-shortcuts-settings-mCs9cDgv.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-Cu80fCA0.js → local-app-workbench-page-B7AtlfWQ.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Zsu8FnwP.js → local-apps-page-CIJE7jME.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-BjwlkAKA.js → local-session-drafts-fhip41-L.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-Djl2FW6_.js → locale-store-Jnhw2WMv.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-DlIhfEW_.js → logs-page-HawXUKF2.js} +2 -2
- package/dist/gateway/static/root/assets/management-settings-DByEh6rq.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-DyO7Q0Ms.js → markdown-view-B58RypQ4.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-Ba1_QMmZ.js → media-plugins-B8BLxQgj.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-CZjPT7xE.js +1 -0
- package/dist/gateway/static/root/assets/messages-DBvKzlCl.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-hQHB5fCs.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-BEusEk31.js +8 -0
- package/dist/gateway/static/root/assets/{page-context-capture-button-BqNWtf_f.js → page-context-capture-button-42bq8N6-.js} +1 -1
- package/dist/gateway/static/root/assets/personal-page-DPR5gzhf.js +1 -0
- package/dist/gateway/static/root/assets/plugin-details-dialog-D8dKKIY9.js +1 -0
- package/dist/gateway/static/root/assets/plugin-presentation-BrQpVvjC.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-kkbrbiVd.js → preview-open-alternatives-DKyLVLpX.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-Dheqo_4J.js → product-open-page-DcGH0AXN.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-B9Y6dIuh.js → product-preview-content-Ck6OzP09.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-BHoQ10Eo.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-DYsq_OLJ.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-BwR2CiR5.js → registry-api-BbUEMGcj.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CU3EChY0.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-C_VOMhLI.js → runtime-tools-api-D0xtCTXr.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BjyZGNP3.js → runtime-tools-settings-panel-Bfs5zKDg.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-DelMOLjg.js → schema-form-BbI2BuSU.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-DbNNQps9.js → session-api-CAKgrbgz.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-DfVviLTK.js → session-manager-D_N7qha7.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-CjB2GOTs.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-jbVx8gcF.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-DNWEDA71.js → settings-form-section-BfBBJlr-.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-DJ27gC7J.js → settings-page-9yu4SN1j.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DhWB3feW.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-Du4mumVM.js → share-preview-page-B6lQl5xb.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-UJGjdz3F.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-zOxHjU7m.js → skill-api-y2m3k_R4.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-Bk9FqsVa.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-DLd4O-Fo.js +2 -0
- package/dist/gateway/static/root/assets/{style-DsnKw5jo.js → style-C2ptQg95.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-mz9hWo_H.js → system-settings-panel-DYzcLnVk.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-DLGtmHAH.js +2 -0
- package/dist/gateway/static/root/assets/{task-expandable-content-D3i_51Oc.js → task-expandable-content-HdEeV_0-.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-aC-ziRbY.js → tracing-settings-page-DKQYmzFn.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-Ch2Veztk.js → tunnel-api-C2VY_HTy.js} +1 -1
- package/dist/gateway/static/root/assets/usage-page-CjzunQtj.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-BLW3t_OK.js → use-autosave-BElgnGMt.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-DsOGCDTR.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-DulF6Cm4.js → voice-api-key-field-FVjX0qhn.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-Ceo_hqZC.js → voice-config-api-T3nM4buh.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-bBMZM8tN.js → work-discovery-overlay-B2S2NZuK.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CsxXS1WI.js → workflow-run-setup-panel-2Gq34KQk.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-CjeFD3mk.js +6 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-wwIRBFCs.js → xopc-cloud-account-card-BZMIZxWg.js} +1 -1
- package/dist/gateway/static/root/index.html +15 -15
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.d.ts +8 -0
- package/dist/src/agent/agent-manager.js +3 -3
- package/dist/src/agent/background-review/run-background-review.js +1 -1
- package/dist/src/agent/embedded/codemode-extension.d.ts +1 -0
- package/dist/src/agent/embedded/codemode-extension.js +6 -1
- package/dist/src/agent/embedded/run-for-session.js +1 -1
- package/dist/src/agent/embedded/run-turn.js +34 -2
- package/dist/src/agent/embedded/session-runner.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +2 -2
- package/dist/src/agent/external-tools/composio-provider.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/mcp/config.d.ts +2 -0
- package/dist/src/agent/mcp/config.js +2 -2
- package/dist/src/agent/mcp/connection-setup.js +13 -1
- package/dist/src/agent/mcp/effective-server.d.ts +3 -0
- package/dist/src/agent/mcp/effective-server.js +27 -0
- package/dist/src/agent/mcp/native-mcp.d.ts +1 -1
- package/dist/src/agent/mcp/native-mcp.js +13 -4
- package/dist/src/agent/mcp/tool-catalog.js +2 -1
- package/dist/src/agent/service/process-direct-streaming.js +1 -1
- package/dist/src/agent/service.js +2 -2
- package/dist/src/agent/skills/index.d.ts +1 -0
- package/dist/src/agent/skills/index.js +7 -3
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/skills/skill-manager.d.ts +1 -0
- package/dist/src/agent/skills/skill-manager.js +6 -1
- package/dist/src/agent/skills/skill-sources.d.ts +1 -0
- package/dist/src/agent/skills/skill-sources.js +4 -3
- package/dist/src/agent/skills/types.d.ts +1 -0
- package/dist/src/agent/tools/factory.js +1 -1
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/agent/workspace-runtime/registry.js +7 -3
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/service/action-executor.js +2 -2
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +92 -7
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/mcp.js +6 -4
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/config/agent-model-intents.js +1 -1
- package/dist/src/config/agent-profile.js +2 -2
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.js +2 -2
- package/dist/src/extensions/agent-plugins/auth.d.ts +7 -1
- package/dist/src/extensions/agent-plugins/auth.js +53 -12
- package/dist/src/extensions/agent-plugins/branding.d.ts +12 -0
- package/dist/src/extensions/agent-plugins/branding.js +54 -0
- package/dist/src/extensions/agent-plugins/cli-authorization.d.ts +33 -0
- package/dist/src/extensions/agent-plugins/cli-authorization.js +203 -0
- package/dist/src/extensions/agent-plugins/connection-reuse.d.ts +10 -0
- package/dist/src/extensions/agent-plugins/connection-reuse.js +23 -0
- package/dist/src/extensions/agent-plugins/credentials.js +24 -1
- package/dist/src/extensions/agent-plugins/formats.d.ts +27 -0
- package/dist/src/extensions/agent-plugins/formats.js +208 -0
- package/dist/src/extensions/agent-plugins/inventory.d.ts +154 -2
- package/dist/src/extensions/agent-plugins/inventory.js +40 -5
- package/dist/src/extensions/agent-plugins/mcp-adapter.d.ts +2 -1
- package/dist/src/extensions/agent-plugins/mcp-adapter.js +42 -8
- package/dist/src/extensions/agent-plugins/mcp-format.d.ts +2 -0
- package/dist/src/extensions/agent-plugins/mcp-format.js +82 -0
- package/dist/src/extensions/agent-plugins/resources.d.ts +14 -0
- package/dist/src/extensions/agent-plugins/resources.js +112 -0
- package/dist/src/extensions/agent-plugins/setup-contract.d.ts +74 -0
- package/dist/src/extensions/agent-plugins/setup-contract.js +77 -0
- package/dist/src/extensions/agent-plugins/setup.d.ts +127 -0
- package/dist/src/extensions/agent-plugins/setup.js +496 -0
- package/dist/src/extensions/agent-plugins/skill-catalog.d.ts +14 -0
- package/dist/src/extensions/agent-plugins/skill-catalog.js +95 -0
- package/dist/src/extensions/agent-plugins/source-catalog.d.ts +21 -0
- package/dist/src/extensions/agent-plugins/source-catalog.js +175 -0
- package/dist/src/extensions/agent-plugins/sources.d.ts +1 -1
- package/dist/src/extensions/agent-plugins/sources.js +12 -3
- package/dist/src/extensions/agent-plugins/store.d.ts +33 -2
- package/dist/src/extensions/agent-plugins/store.js +175 -25
- package/dist/src/extensions/agent-plugins/user-config.d.ts +5 -0
- package/dist/src/extensions/agent-plugins/user-config.js +49 -0
- package/dist/src/extensions/agent-plugins/validation.d.ts +26 -1
- package/dist/src/extensions/agent-plugins/validation.js +143 -28
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/hono/lib/config-payload.js +1 -1
- package/dist/src/gateway/hono/routes/agent-plugins.js +121 -10
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/composer-history.js +22 -4
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +6 -4
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/service/marketplace-service.js +4 -2
- package/dist/src/gateway/service.js +8 -6
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +1 -1
- package/dist/src/personal-agent/service.js +2 -2
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/routing/resolve-route.js +1 -1
- package/dist/src/routing/resolve-tui-session-key.js +1 -1
- package/dist/src/storage/sqlite/composer-input-history-repository.d.ts +4 -3
- package/dist/src/storage/sqlite/composer-input-history-repository.js +10 -8
- package/dist/src/storage/sqlite/migrations/257_session_composer_history.sql +11 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tui/backends/embedded-backend.d.ts +2 -2
- package/dist/src/tui/backends/embedded-backend.js +6 -6
- package/dist/src/tui/backends/gateway-realtime-backend.d.ts +2 -2
- package/dist/src/tui/backends/gateway-realtime-backend.js +7 -4
- package/dist/src/tui/composer-history.d.ts +14 -0
- package/dist/src/tui/composer-history.js +85 -0
- package/dist/src/tui/tui-backend.d.ts +4 -3
- package/dist/src/tui/tui.js +19 -46
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/package.json +12 -4
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-D8Q9Cpge.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-C-UKhDkS.js +0 -1
- package/dist/gateway/static/root/assets/agents-DOv68iBN.js +0 -77
- package/dist/gateway/static/root/assets/apps-page-Da6Ar2U3.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-B9r27rPk.js +0 -6
- package/dist/gateway/static/root/assets/browser-automations-page-KLG8IXvl.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-Tcejw5fF.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-page-BJlw9rhA.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-kEvUR6Yu.js +0 -8
- package/dist/gateway/static/root/assets/channels-DRaE6_ub.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-B6JI2S1b.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-cDRZ8bqm.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-BD4nZ9sf.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-CxPIMrmn.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-DQ6-whg-.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-Da2CtQ7c.js +0 -1
- package/dist/gateway/static/root/assets/home-page-Cp4-sTfX.js +0 -2
- package/dist/gateway/static/root/assets/index-zIgp-ZTu.css +0 -1
- package/dist/gateway/static/root/assets/management-settings-CDV-xItG.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-CpK57Kgp.js +0 -1
- package/dist/gateway/static/root/assets/messages-DPxcWxfD.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-BXi6BrXd.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-ClR9R90o.js +0 -8
- package/dist/gateway/static/root/assets/personal-page-CSF-sn8w.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-l5dXxnSq.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-95Od8gLy.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-DPEpPFax.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-BN0nMm0w.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BvfEKyfy.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BWA_puDN.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-C0ixka9_.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-743oJIiS.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-DBYhEjP9.js +0 -2
- package/dist/gateway/static/root/assets/task-detail-page-Brp2wrEc.js +0 -2
- package/dist/gateway/static/root/assets/usage-page-KfKZ2a3t.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-BSsT8WjA.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-a-mfjQ2h.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./rolldown-runtime-aKtaBQYM.js";import{a as e,n as t,t as n}from"./vendor-react-BOUWij0V.js";import{t as r}from"./x-B_N4OPjy.js";import{a as i,r as a}from"./locale-store-
|
|
1
|
+
import"./rolldown-runtime-aKtaBQYM.js";import{a as e,n as t,t as n}from"./vendor-react-BOUWij0V.js";import{t as r}from"./x-B_N4OPjy.js";import{a as i,r as a}from"./locale-store-Jnhw2WMv.js";import{$i as o,Rc as s}from"./index-DvKDT-RQ.js";var c=t();e();var l=n();function u(e){let t=(0,c.c)(30),{primary:n,value:i,models:a,loading:u,error:d,zh:f,onChange:p}=e,m;if(t[0]!==a||t[1]!==n||t[2]!==i){let e;t[4]!==n||t[5]!==i?(e=e=>e.id!==n&&!i.includes(e.id),t[4]=n,t[5]=i,t[6]=e):e=t[6],m=a.filter(e),t[0]=a,t[1]=n,t[2]=i,t[3]=m}else m=t[3];let h=m,g=f?`回退顺序`:`Fallback order`,_;t[7]===g?_=t[8]:(_=(0,l.jsx)(`h4`,{className:`text-sm font-medium text-fg`,children:g}),t[7]=g,t[8]=_);let v=f?`主模型不可用时,按从左到右的顺序尝试。`:`Tried from left to right when the primary model is unavailable.`,y;t[9]===v?y=t[10]:(y=(0,l.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:v}),t[9]=v,t[10]=y);let b;t[11]!==_||t[12]!==y?(b=(0,l.jsx)(`div`,{className:`flex items-center justify-between gap-3`,children:(0,l.jsxs)(`div`,{children:[_,y]})}),t[11]=_,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==a||t[15]!==p||t[16]!==i||t[17]!==f?(x=i.length>0?(0,l.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:i.map((e,t)=>(0,l.jsxs)(`span`,{className:`inline-flex items-center gap-2 rounded-full bg-surface-base/70 py-1 pl-2.5 pr-1 text-xs text-fg`,children:[(0,l.jsx)(`span`,{className:`text-fg-subtle`,children:t+1}),(0,l.jsx)(`span`,{children:a.find(t=>t.id===e)?.name??e}),(0,l.jsx)(`button`,{type:`button`,"aria-label":f?`移除 ${e}`:`Remove ${e}`,className:`rounded-full p-1 text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:()=>p(i.filter(t=>t!==e)),children:(0,l.jsx)(r,{className:`size-3`})})]},e))}):(0,l.jsx)(`p`,{className:`mt-3 text-xs text-fg-subtle`,children:f?`未设置回退模型。`:`No fallback models configured.`}),t[14]=a,t[15]=p,t[16]=i,t[17]=f,t[18]=x):x=t[18];let S;t[19]!==h||t[20]!==d||t[21]!==u||t[22]!==p||t[23]!==i||t[24]!==f?(S=u?(0,l.jsx)(s,{className:`mt-3 h-11 w-full max-w-md rounded-lg`}):(0,l.jsx)(o,{value:``,models:h,modelsLoading:u,modelsError:d,placeholder:f?`添加回退模型`:`Add fallback model`,searchPlaceholder:f?`搜索模型或服务商`:`Search models or providers`,noMatches:f?`没有可添加的模型`:`No models available to add`,showProviderInTrigger:!1,contentAlign:`start`,className:`mt-3 w-full max-w-md`,ariaLabel:f?`添加回退模型`:`Add fallback model`,onChange:e=>{e&&p([...i,e])}}),t[19]=h,t[20]=d,t[21]=u,t[22]=p,t[23]=i,t[24]=f,t[25]=S):S=t[25];let C;return t[26]!==b||t[27]!==x||t[28]!==S?(C=(0,l.jsxs)(`div`,{children:[b,x,S]}),t[26]=b,t[27]=x,t[28]=S,t[29]=C):C=t[29],C}async function d(){let e=await i(a(`/api/image-generation/catalog`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid image provider catalog`);return e.payload.providers}async function f(){let e=await i(a(`/api/image-generation/custom-providers`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid custom image provider list`);return e.payload.providers}async function p(e,t){await i(a(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`PUT`,body:JSON.stringify(t)})}async function m(e){await i(a(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`DELETE`})}async function h(e,t){await i(a(`/api/image-generation/providers/${encodeURIComponent(e)}/credential`),{method:`PUT`,body:JSON.stringify({apiKey:t})})}async function g(e,t){let n=await i(a(`/api/image-generation/providers/${encodeURIComponent(e)}/test`),{method:`POST`,body:JSON.stringify({modelId:t})});if(!Array.isArray(n.payload?.images))throw Error(`Invalid image generation test response`);return{images:n.payload.images}}export{h as a,p as i,f as n,g as o,d as r,u as s,m as t};
|
package/dist/gateway/static/root/assets/{imports-page-C_PPaOFv.js → imports-page-B-dnvHP_.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./chunk-KS7C4IRE-B2HK1psj.js";import{t as a}from"./check-DUBLcKHA.js";import{t as o}from"./download-Dk-ZjtO6.js";import{t as s}from"./x-B_N4OPjy.js";import{t as c}from"./messages-DPxcWxfD.js";import{t as l}from"./cn-0WouolD0.js";import{a as u,n as d,r as f}from"./locale-store-Djl2FW6_.js";import{a as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./dist-BGTk37IG.js";import{$l as b,Ed as x,Eu as S,On as C,Wc as w,lf as T,mf as E,mu as D,nu as O,vs as k,ys as A}from"./index-XRbEWVyZ.js";import{n as j,r as M}from"./settings-page-layout-Dx5S-Msc.js";var N=e(t(),1);async function P(e,t,n){return(await u(f(`/api/imports${e}`),{...t===void 0?{}:{method:`POST`,body:JSON.stringify(t)},signal:n})).data}var F=n();function I(e){return e.kind!==`connection`&&(e.status===`ready`||e.status===`conflict`||e.kind===`project`&&e.status===`existing`)}function L(e,t){let n=e.filter(I),r=n.filter(e=>t.has(e.id)).length;return{checked:n.length>0&&r===n.length,indeterminate:r>0&&r<n.length,selectedCount:r,availableCount:n.length}}function R(e,t,n,r){return n.reduce((t,n)=>z(e,t,n,r),new Set(t))}function z(e,t,n,r){let i=new Set(t);if(!I(n))return i;if(r){if(i.add(n.id),n.parentId&&i.add(n.parentId),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&t.kind===`skill`&&t.suggested&&I(t)&&i.add(t.id)}else if(i.delete(n.id),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&i.delete(t.id);return i}var B=r();function V(e){let t=(0,F.c)(34),{open:n,sourceName:r,inventory:i,selected:a,onSelected:o,busy:u,locked:f,error:T,onClose:D,onRefresh:O,onSubmit:j}=e,M=c(d(ue)).imports,[P,I]=(0,N.useState)(!0),[L,V]=(0,N.useState)(!1),U;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(U=()=>{I(!0),V(!1)},t[0]=U):U=t[0];let fe=i?.id,W;t[1]===fe?W=t[2]:(W=[fe],t[1]=fe,t[2]=W),(0,N.useEffect)(U,W);let G=i?.candidates.filter(le)??[],pe;t[3]===i?.candidates?pe=t[4]:(pe=i?.candidates.filter(ce)??[],t[3]=i?.candidates,t[4]=pe);let K=pe,ge;t[5]===i?.candidates?ge=t[6]:(ge=i?.candidates.filter(se)??[],t[5]=i?.candidates,t[6]=ge);let _e=ge,q;if(t[7]!==i?.candidates){q=new Map;for(let e of i?.candidates??[]){if(!e.parentId)continue;let t=q.get(e.parentId)??[];t.push(e),q.set(e.parentId,t)}t[7]=i?.candidates,t[8]=q}else q=t[8];let ye=q,be=i?.candidates.filter(e=>a.has(e.id))??[],xe=M.selected.replace(`{skills}`,String(be.filter(oe).length)).replace(`{context}`,String(be.filter(ae).length)).replace(`{projects}`,String(be.filter(ie).length)),Se;t[9]!==i||t[10]!==o||t[11]!==a?(Se=(e,t)=>{i&&o(z(i,a,e,t))},t[9]=i,t[10]=o,t[11]=a,t[12]=Se):Se=t[12];let Ce=Se,we;t[13]!==i||t[14]!==o||t[15]!==a?(we=(e,t)=>{i&&o(R(i,a,e,t))},t[13]=i,t[14]=o,t[15]=a,t[16]=we):we=t[16];let J=we,Y;t[17]===D?Y=t[18]:(Y=e=>{e||D()},t[17]=D,t[18]=Y);let X;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,B.jsx)(p,{className:`xopc-dialog-overlay fixed inset-0 bg-scrim ${A}`}),t[19]=X):X=t[19];let Z;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(Z=l(`xopc-dialog-content fixed left-1/2 top-1/2 flex h-[min(calc(100dvh-2rem),760px)] w-[min(calc(100%-2rem),720px)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay outline-none`,`max-sm:bottom-0 max-sm:left-0 max-sm:top-auto max-sm:h-[min(92dvh,760px)] max-sm:w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none`,k),t[20]=Z):Z=t[20];let Q;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,B.jsx)(s,{"aria-hidden":`true`,className:`h-4 w-4`}),t[21]=Q):Q=t[21];let Te=T&&(0,B.jsxs)(`div`,{role:`alert`,className:`space-y-3 rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg`,children:[(0,B.jsx)(`p`,{children:T}),(0,B.jsx)(w,{variant:`secondary`,disabled:f,onClick:O,children:M.refresh})]}),$;t[22]!==T||t[23]!==i?($=!i&&!T&&(0,B.jsx)(C,{sections:2}),t[22]=T,t[23]=i,t[24]=$):$=t[24];let Ee=i&&(0,B.jsxs)(B.Fragment,{children:[!i.complete&&(0,B.jsx)(`p`,{className:`rounded-lg bg-surface-inset p-3 text-sm text-fg-muted`,children:M.incomplete}),G.length>0&&(0,B.jsxs)(me,{icon:b,title:M.personalSetup,description:M.personalSetupHint,items:G,selected:a,open:P,disabled:f,onOpenChange:I,onCheckedChange:e=>J(G,e),children:[(0,B.jsx)(he,{icon:S,title:M.kinds.skill,items:G.filter(re),inventoryId:i.id,selected:a,disabled:f,onToggle:Ce,onToggleAll:e=>J(G.filter(ne),e)}),(0,B.jsx)(he,{icon:E,title:M.kinds.context,items:G.filter(te),inventoryId:i.id,selected:a,disabled:f,onToggle:Ce,onToggleAll:e=>J(G.filter(ee),e)})]}),K.length>0&&(0,B.jsx)(me,{icon:x,title:M.kinds.project,description:M.projectsHint.replace(`{count}`,String(K.length)),items:K,selected:a,open:L,disabled:f,onOpenChange:V,onCheckedChange:e=>J(K,e),children:(0,B.jsx)(ve,{inventoryId:i.id,projects:K,projectChildren:ye,selected:a,disabled:f,onToggle:Ce})}),_e.length>0&&(0,B.jsx)(de,{inventoryId:i.id,items:_e}),!i.candidates.length&&(0,B.jsx)(`p`,{className:`rounded-xl bg-surface-inset p-5 text-sm text-fg-muted`,children:M.noContent}),!!i.notices.length&&(0,B.jsxs)(`details`,{className:`rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg-muted`,children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer font-medium text-fg`,children:[M.scanNotices,` (`,i.notices.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-3 space-y-2`,children:i.notices.map(H)})]})]}),De;t[25]!==Te||t[26]!==$||t[27]!==Ee?(De=(0,B.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-4 sm:p-6`,children:[Te,$,Ee]}),t[25]=Te,t[26]=$,t[27]=Ee,t[28]=De):De=t[28];let Oe=w,ke=!i||!a.size||u,Ae=u?M.importing:f?M.retry:M.importCount.replace(`{count}`,String(a.size)),je;return t[29]!==Oe||t[30]!==j||t[31]!==ke||t[32]!==Ae?(je=(0,B.jsx)(Oe,{variant:`primary`,disabled:ke,onClick:j,children:Ae}),t[29]=Oe,t[30]=j,t[31]=ke,t[32]=Ae,t[33]=je):je=t[33],(0,B.jsx)(y,{open:n,onOpenChange:Y,children:(0,B.jsxs)(g,{children:[X,(0,B.jsxs)(_,{className:Z,children:[(0,B.jsx)(`header`,{className:`shrink-0 space-y-2 border-b border-edge p-5 sm:p-6`,children:(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,B.jsxs)(`div`,{className:`min-w-0`,children:[(0,B.jsx)(v,{className:`text-xl font-semibold text-fg`,children:M.chooseTitle.replace(`{source}`,r)}),(0,B.jsx)(m,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:M.chooseHint})]}),(0,B.jsx)(h,{asChild:!0,children:(0,B.jsx)(w,{variant:`ghost`,"aria-label":M.close,className:`h-10 w-10 shrink-0 p-0`,children:Q})})]})}),De,(0,B.jsx)(`footer`,{className:`shrink-0 border-t border-edge bg-surface-overlay p-4 sm:px-6 sm:py-5`,children:(0,B.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,B.jsxs)(`div`,{"aria-live":`polite`,className:`min-w-0`,children:[(0,B.jsx)(`p`,{className:`text-sm text-fg-muted`,children:xe}),u&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.runningHint}),f&&!u&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.retryHint})]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2`,children:[(0,B.jsx)(w,{variant:`ghost`,onClick:D,children:u?M.close:M.cancel}),je]})]})})]})]})})}function H(e,t){return(0,B.jsx)(`li`,{className:`break-words`,children:e},t)}function ee(e){return e.kind===`context`}function te(e){return e.kind===`context`}function ne(e){return e.kind===`skill`}function re(e){return e.kind===`skill`}function ie(e){return e.kind===`project`}function ae(e){return e.kind===`context`}function oe(e){return e.kind===`skill`}function se(e){return e.kind===`connection`}function ce(e){return e.kind===`project`}function le(e){return!e.parentId&&(e.kind===`skill`||e.kind===`context`)}function ue(e){return e.language}function de(e){let t=(0,F.c)(13),{inventoryId:n,items:r}=e,a=c(d(fe)).imports,[o,s]=(0,N.useState)(!1),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>s(U),t[0]=u):u=t[0];let f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(D,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[1]=f):f=t[1];let p=a.connectionsHint.replace(`{count}`,String(r.length)),m;t[2]===p?m=t[3]:(m=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:p}),t[2]=p,t[3]=m);let h=o&&`rotate-180`,g;t[4]===h?g=t[5]:(g=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,h),t[4]=h,t[5]=g);let _;t[6]===g?_=t[7]:(_=(0,B.jsx)(T,{"aria-hidden":`true`,className:g}),t[6]=g,t[7]=_);let v;return t[8]!==n||t[9]!==r||t[10]!==o||t[11]!==a?(v=o&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:[r.map(e=>(0,B.jsx)(W,{inventoryId:n,item:e},e.id)),(0,B.jsx)(w,{asChild:!0,variant:`secondary`,children:(0,B.jsx)(i,{to:`/capabilities/connectors`,children:a.connectionsAction})})]}),t[8]=n,t[9]=r,t[10]=o,t[11]=a,t[12]=v):v=t[12],(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[(0,B.jsx)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:(0,B.jsxs)(w,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":o,onClick:u,children:[f,(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:a.kinds.connection}),m]}),_]})}),v]})}function U(e){return!e}function fe(e){return e.language}function W(e){let t=(0,F.c)(34),{inventoryId:n,item:r}=e,i=d(pe),a;t[0]===i?a=t[1]:(a=c(i),t[0]=i,t[1]=a);let o=a.imports,[s,l]=(0,N.useState)(),[u,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(``),h;t[2]!==n||t[3]!==r.id||t[4]!==s?(h=async function(){if(f(G),!s)try{l(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;m(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=s,t[5]=h):h=t[5];let g=h,_;t[6]===r.name?_=t[7]:(_=(0,B.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:r.name}),t[6]=r.name,t[7]=_);let v;t[8]===r.displayPath?v=t[9]:(v=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[8]=r.displayPath,t[9]=v);let y=o.statuses[r.status],b;t[10]===y?b=t[11]:(b=(0,B.jsx)(`span`,{className:`mt-1 block text-xs text-fg-muted`,children:y}),t[10]=y,t[11]=b);let x;t[12]!==_||t[13]!==v||t[14]!==b?(x=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[_,v,b]}),t[12]=_,t[13]=v,t[14]=b,t[15]=x):x=t[15];let S;t[16]===g?S=t[17]:(S=()=>void g(),t[16]=g,t[17]=S);let T;t[18]!==o.preview||t[19]!==S?(T=(0,B.jsx)(w,{variant:`ghost`,className:`h-9 shrink-0 px-2`,onClick:S,children:o.preview}),t[18]=o.preview,t[19]=S,t[20]=T):T=t[20];let E;t[21]!==T||t[22]!==x?(E=(0,B.jsxs)(`div`,{className:`flex items-start gap-3`,children:[x,T]}),t[21]=T,t[22]=x,t[23]=E):E=t[23];let D;t[24]===r.reason?D=t[25]:(D=r.reason&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:r.reason}),t[24]=r.reason,t[25]=D);let O;t[26]!==p||t[27]!==u||t[28]!==s?(O=u&&(0,B.jsx)(`div`,{className:`mt-3 rounded-lg bg-surface-inset p-3`,children:p?(0,B.jsx)(`p`,{role:`alert`,className:`text-xs text-fg-muted`,children:p}):s?(0,B.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:s.text}):(0,B.jsx)(C,{sections:1})}),t[26]=p,t[27]=u,t[28]=s,t[29]=O):O=t[29];let k;return t[30]!==E||t[31]!==D||t[32]!==O?(k=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge p-3`,children:[E,D,O]}),t[30]=E,t[31]=D,t[32]=O,t[33]=k):k=t[33],k}function G(e){return!e}function pe(e){return e.language}function me(e){let t=(0,F.c)(40),{icon:n,title:r,description:i,items:a,selected:o,open:s,disabled:c,onOpenChange:u,onCheckedChange:d,children:f}=e,p;t[0]!==a||t[1]!==o?(p=L(a,o),t[0]=a,t[1]=o,t[2]=p):p=t[2];let m=p,h;t[3]!==u||t[4]!==s?(h=()=>u(!s),t[3]=u,t[4]=s,t[5]=h):h=t[5];let g;t[6]===n?g=t[7]:(g=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[6]=n,t[7]=g);let _;t[8]===r?_=t[9]:(_=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r}),t[8]=r,t[9]=_);let v;t[10]===i?v=t[11]:(v=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:i}),t[10]=i,t[11]=v);let y;t[12]!==_||t[13]!==v?(y=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14];let b=s&&`rotate-180`,x;t[15]===b?x=t[16]:(x=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,b),t[15]=b,t[16]=x);let S;t[17]===x?S=t[18]:(S=(0,B.jsx)(T,{"aria-hidden":`true`,className:x}),t[17]=x,t[18]=S);let C;t[19]!==s||t[20]!==h||t[21]!==g||t[22]!==y||t[23]!==S?(C=(0,B.jsxs)(w,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":s,onClick:h,children:[g,y,S]}),t[19]=s,t[20]=h,t[21]=g,t[22]=y,t[23]=S,t[24]=C):C=t[24];let E=c||!m.availableCount,D;t[25]!==d||t[26]!==m.checked||t[27]!==m.indeterminate||t[28]!==E||t[29]!==r?(D=(0,B.jsx)(X,{label:r,checked:m.checked,indeterminate:m.indeterminate,disabled:E,onChange:d}),t[25]=d,t[26]=m.checked,t[27]=m.indeterminate,t[28]=E,t[29]=r,t[30]=D):D=t[30];let O;t[31]!==C||t[32]!==D?(O=(0,B.jsxs)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:[C,D]}),t[31]=C,t[32]=D,t[33]=O):O=t[33];let k;t[34]!==f||t[35]!==s?(k=s&&(0,B.jsx)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:f}),t[34]=f,t[35]=s,t[36]=k):k=t[36];let A;return t[37]!==O||t[38]!==k?(A=(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[O,k]}),t[37]=O,t[38]=k,t[39]=A):A=t[39],A}function he(e){let t=(0,F.c)(34),{icon:n,title:r,items:i,inventoryId:a,selected:o,disabled:s,onToggle:u,onToggleAll:f}=e,p=c(d(_e)).imports,[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(``),[v,y]=(0,N.useState)(60);if(!i.length)return null;let b;t[0]!==i||t[1]!==o?(b=L(i,o),t[0]=i,t[1]=o,t[2]=b):b=t[2];let x=b,S=Y(i,g),C=S.slice(0,v),E;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>h(ge),t[3]=E):E=t[3];let D;t[4]===n?D=t[5]:(D=(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5 shrink-0 text-fg-muted`}),t[4]=n,t[5]=D);let O;t[6]!==i.length||t[7]!==r?(O=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg`,children:[r,` (`,i.length,`)`]}),t[6]=i.length,t[7]=r,t[8]=O):O=t[8];let k;t[9]!==x.availableCount||t[10]!==x.selectedCount?(k=(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[x.selectedCount,`/`,x.availableCount]}),t[9]=x.availableCount,t[10]=x.selectedCount,t[11]=k):k=t[11];let A=m&&`rotate-180`,j;t[12]===A?j=t[13]:(j=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,A),t[12]=A,t[13]=j);let M;t[14]===j?M=t[15]:(M=(0,B.jsx)(T,{"aria-hidden":`true`,className:j}),t[14]=j,t[15]=M);let P;t[16]!==m||t[17]!==D||t[18]!==O||t[19]!==k||t[20]!==M?(P=(0,B.jsxs)(w,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-1 text-left`,"aria-expanded":m,onClick:E,children:[D,O,k,M]}),t[16]=m,t[17]=D,t[18]=O,t[19]=k,t[20]=M,t[21]=P):P=t[21];let I=s||!x.availableCount,R;t[22]!==f||t[23]!==x.checked||t[24]!==x.indeterminate||t[25]!==I||t[26]!==r?(R=(0,B.jsx)(X,{label:r,checked:x.checked,indeterminate:x.indeterminate,disabled:I,onChange:f}),t[22]=f,t[23]=x.checked,t[24]=x.indeterminate,t[25]=I,t[26]=r,t[27]=R):R=t[27];let z;t[28]!==P||t[29]!==R?(z=(0,B.jsxs)(`div`,{className:`flex min-h-14 items-center gap-2 px-3 py-2`,children:[P,R]}),t[28]=P,t[29]=R,t[30]=z):z=t[30];let V=m&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge p-2`,children:[i.length>8&&(0,B.jsx)(J,{value:g,label:p.searchWithin.replace(`{group}`,r),onChange:e=>{_(e),y(60)}}),(0,B.jsx)(`div`,{className:`space-y-1`,children:C.map(e=>(0,B.jsx)(Z,{inventoryId:a,item:e,checked:o.has(e.id),disabled:s,onChange:t=>u(e,t)},e.id))}),!S.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:p.noMatches}),C.length<S.length&&(0,B.jsx)(w,{variant:`ghost`,className:`w-full`,onClick:()=>y(K),children:p.showMore.replace(`{count}`,String(S.length-C.length))})]}),H;return t[31]!==z||t[32]!==V?(H=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[z,V]}),t[31]=z,t[32]=V,t[33]=H):H=t[33],H}function K(e){return e+60}function ge(e){return!e}function _e(e){return e.language}function ve(e){let t=(0,F.c)(15),{inventoryId:n,projects:r,projectChildren:i,selected:a,disabled:o,onToggle:s}=e,l=c(d(ye)).imports,[u,f]=(0,N.useState)(``),[p,m]=(0,N.useState)(60),h;t[0]===i?h=t[1]:(h=e=>i.get(e.id)??[],t[0]=i,t[1]=h);let g=Y(r,u,h),_=g.slice(0,p),v=r.length>8&&(0,B.jsx)(J,{value:u,label:l.searchWithin.replace(`{group}`,l.kinds.project),onChange:e=>{f(e),m(60)}}),y;t[2]!==o||t[3]!==n||t[4]!==s||t[5]!==i||t[6]!==a?(y=e=>(0,B.jsx)(be,{inventoryId:n,project:e,children:i.get(e.id)??[],selected:a,disabled:o,onToggle:s},e.id),t[2]=o,t[3]=n,t[4]=s,t[5]=i,t[6]=a,t[7]=y):y=t[7];let b=_.map(y),x;t[8]===b?x=t[9]:(x=(0,B.jsx)(`div`,{className:`space-y-2`,children:b}),t[8]=b,t[9]=x);let S=!g.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:l.noMatches}),C=_.length<g.length&&(0,B.jsx)(w,{variant:`ghost`,className:`w-full`,onClick:()=>m(q),children:l.showMore.replace(`{count}`,String(g.length-_.length))}),T;return t[10]!==v||t[11]!==x||t[12]!==S||t[13]!==C?(T=(0,B.jsxs)(`div`,{className:`space-y-2`,children:[v,x,S,C]}),t[10]=v,t[11]=x,t[12]=S,t[13]=C,t[14]=T):T=t[14],T}function q(e){return e+60}function ye(e){return e.language}function be(e){let t=(0,F.c)(52),{inventoryId:n,project:r,children:i,selected:a,disabled:o,onToggle:s}=e,u=c(d(we)).imports,[f,p]=(0,N.useState)(!1),m;if(t[0]!==i||t[1]!==a){let e;t[3]===a?e=t[4]:(e=e=>a.has(e.id),t[3]=a,t[4]=e),m=i.filter(e),t[0]=i,t[1]=a,t[2]=m}else m=t[2];let h=m.length,g=w,_;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>p(Ce),t[5]=_):_=t[5];let v;t[6]===r.name?v=t[7]:(v=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r.name}),t[6]=r.name,t[7]=v);let y;t[8]===r.displayPath?y=t[9]:(y=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:r.displayPath}),t[8]=r.displayPath,t[9]=y);let b;t[10]!==v||t[11]!==y?(b=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[v,y]}),t[10]=v,t[11]=y,t[12]=b):b=t[12];let x=i.length>0&&(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[u.projectContents.replace(`{skills}`,String(i.filter(Se).length)).replace(`{context}`,String(i.filter(xe).length)),` · `,u.chosenCount.replace(`{count}`,String(h))]}),S=f&&`rotate-180`,C;t[13]===S?C=t[14]:(C=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,S),t[13]=S,t[14]=C);let E;t[15]===C?E=t[16]:(E=(0,B.jsx)(T,{"aria-hidden":`true`,className:C}),t[15]=C,t[16]=E);let D;t[17]!==g||t[18]!==f||t[19]!==x||t[20]!==E||t[21]!==_||t[22]!==b?(D=(0,B.jsxs)(g,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-2 text-left`,"aria-expanded":f,onClick:_,children:[b,x,E]}),t[17]=g,t[18]=f,t[19]=x,t[20]=E,t[21]=_,t[22]=b,t[23]=D):D=t[23];let O=r.name,k;t[24]!==r.id||t[25]!==a?(k=a.has(r.id),t[24]=r.id,t[25]=a,t[26]=k):k=t[26];let A;t[27]!==o||t[28]!==r?(A=o||!I(r),t[27]=o,t[28]=r,t[29]=A):A=t[29];let j;t[30]!==s||t[31]!==r?(j=e=>s(r,e.target.checked),t[30]=s,t[31]=r,t[32]=j):j=t[32];let M;t[33]!==r.name||t[34]!==k||t[35]!==A||t[36]!==j?(M=(0,B.jsx)(`input`,{type:`checkbox`,"aria-label":O,checked:k,disabled:A,onChange:j}),t[33]=r.name,t[34]=k,t[35]=A,t[36]=j,t[37]=M):M=t[37];let P;t[38]!==D||t[39]!==M?(P=(0,B.jsxs)(`div`,{className:`flex items-center gap-2 p-2`,children:[D,M]}),t[38]=D,t[39]=M,t[40]=P):P=t[40];let L;t[41]!==i||t[42]!==o||t[43]!==n||t[44]!==s||t[45]!==f||t[46]!==a||t[47]!==u?(L=f&&(0,B.jsx)(`div`,{className:`border-t border-edge p-2`,children:i.length?(0,B.jsx)(`div`,{className:`space-y-1`,children:i.map(e=>(0,B.jsx)(Z,{inventoryId:n,item:e,checked:a.has(e.id),disabled:o,onChange:t=>s(e,t)},e.id))}):(0,B.jsx)(`p`,{className:`p-2 text-xs text-fg-muted`,children:u.directoryOnly})}),t[41]=i,t[42]=o,t[43]=n,t[44]=s,t[45]=f,t[46]=a,t[47]=u,t[48]=L):L=t[48];let R;return t[49]!==P||t[50]!==L?(R=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[P,L]}),t[49]=P,t[50]=L,t[51]=R):R=t[51],R}function xe(e){return e.kind===`context`}function Se(e){return e.kind===`skill`}function Ce(e){return!e}function we(e){return e.language}function J(e){let t=(0,F.c)(13),{value:n,label:r,onChange:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(O,{"aria-hidden":`true`,className:`h-4 w-4 shrink-0 text-fg-muted`}),t[0]=a):a=t[0];let o;t[1]===r?o=t[2]:(o=(0,B.jsx)(`span`,{className:`sr-only`,children:r}),t[1]=r,t[2]=o);let s=`${r}…`,c;t[3]===i?c=t[4]:(c=e=>i(e.target.value),t[3]=i,t[4]=c);let l;t[5]!==r||t[6]!==s||t[7]!==c||t[8]!==n?(l=(0,B.jsx)(`input`,{type:`search`,autoComplete:`off`,value:n,placeholder:s,"aria-label":r,onChange:c,className:`min-w-0 flex-1 border-0 bg-transparent px-0 py-2 text-sm text-fg placeholder:text-fg-subtle`}),t[5]=r,t[6]=s,t[7]=c,t[8]=n,t[9]=l):l=t[9];let u;return t[10]!==o||t[11]!==l?(u=(0,B.jsxs)(`label`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-3 focus-within:border-accent focus-within:ring-1 focus-within:ring-accent`,children:[a,o,l]}),t[10]=o,t[11]=l,t[12]=u):u=t[12],u}function Y(e,t,n=()=>[]){let r=t.trim().toLocaleLowerCase();if(!r)return e;let i=e=>`${e.name} ${e.description} ${e.displayPath}`.toLocaleLowerCase().includes(r);return e.filter(e=>i(e)||n(e).some(i))}function X(e){let t=(0,F.c)(10),{label:n,checked:r,indeterminate:i,disabled:a,onChange:o}=e,s=(0,N.useRef)(null),c,l;t[0]===i?(c=t[1],l=t[2]):(c=()=>{s.current&&(s.current.indeterminate=i)},l=[i],t[0]=i,t[1]=c,t[2]=l),(0,N.useEffect)(c,l);let u;t[3]===o?u=t[4]:(u=e=>o(e.target.checked),t[3]=o,t[4]=u);let d;return t[5]!==r||t[6]!==a||t[7]!==n||t[8]!==u?(d=(0,B.jsx)(`input`,{ref:s,type:`checkbox`,"aria-label":n,checked:r,disabled:a,onChange:u}),t[5]=r,t[6]=a,t[7]=n,t[8]=u,t[9]=d):d=t[9],d}function Z(e){let t=(0,F.c)(52),{inventoryId:n,item:r,checked:i,disabled:a,onChange:o}=e,s=d(Te),l;t[0]===s?l=t[1]:(l=c(s),t[0]=s,t[1]=l);let u=l.imports,[f,p]=(0,N.useState)(),[m,h]=(0,N.useState)(``),[g,_]=(0,N.useState)(!1),v;t[2]!==n||t[3]!==r.id||t[4]!==f?(v=async function(){if(_(Q),!f)try{p(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;h(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=f,t[5]=v):v=t[5];let y=v,b;t[6]!==a||t[7]!==r?(b=a||!I(r),t[6]=a,t[7]=r,t[8]=b):b=t[8];let x;t[9]===o?x=t[10]:(x=e=>o(e.target.checked),t[9]=o,t[10]=x);let S;t[11]!==i||t[12]!==b||t[13]!==x?(S=(0,B.jsx)(`input`,{type:`checkbox`,className:`mt-0.5`,checked:i,disabled:b,onChange:x}),t[11]=i,t[12]=b,t[13]=x,t[14]=S):S=t[14];let T;t[15]===r.name?T=t[16]:(T=(0,B.jsx)(`span`,{className:`block break-words text-sm font-medium text-fg`,children:r.name}),t[15]=r.name,t[16]=T);let E;t[17]===r.displayPath?E=t[18]:(E=(0,B.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[17]=r.displayPath,t[18]=E);let D;t[19]!==T||t[20]!==E?(D=(0,B.jsxs)(`span`,{className:`min-w-0`,children:[T,E]}),t[19]=T,t[20]=E,t[21]=D):D=t[21];let O;t[22]!==S||t[23]!==D?(O=(0,B.jsxs)(`label`,{className:`flex min-w-0 flex-1 cursor-pointer items-start gap-3 py-1`,children:[S,D]}),t[22]=S,t[23]=D,t[24]=O):O=t[24];let k;t[25]!==r.name||t[26]!==r.status||t[27]!==u||t[28]!==y?(k=r.status!==`blocked`&&(0,B.jsx)(w,{variant:`ghost`,"aria-label":`${u.preview}: ${r.name}`,className:`h-9 shrink-0 px-2`,onClick:()=>void y(),children:u.preview}),t[25]=r.name,t[26]=r.status,t[27]=u,t[28]=y,t[29]=k):k=t[29];let A;t[30]!==O||t[31]!==k?(A=(0,B.jsxs)(`div`,{className:`flex items-start gap-2`,children:[O,k]}),t[30]=O,t[31]=k,t[32]=A):A=t[32];let j;t[33]===r.description?j=t[34]:(j=r.description&&(0,B.jsx)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:r.description}),t[33]=r.description,t[34]=j);let M;t[35]!==r.status||t[36]!==r.targetName||t[37]!==u?(M=r.status!==`ready`&&(0,B.jsxs)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:[u.statuses[r.status],r.status===`conflict`?` → ${r.targetName}`:``]}),t[35]=r.status,t[36]=r.targetName,t[37]=u,t[38]=M):M=t[38];let L;t[39]===r.reason?L=t[40]:(L=r.reason&&(0,B.jsx)(`p`,{className:`break-words pl-7 text-xs text-fg-muted`,children:r.reason}),t[39]=r.reason,t[40]=L);let R;t[41]!==f||t[42]!==m||t[43]!==g||t[44]!==u?(R=g&&(0,B.jsx)(`div`,{className:`ml-7 mt-2 rounded-lg border border-edge bg-surface-inset p-3`,children:m?(0,B.jsx)(`p`,{role:`alert`,className:`text-sm text-fg-muted`,children:m}):f?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`pre`,{className:`max-h-60 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:f.text}),f.truncated&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:u.previewTruncated})]}):(0,B.jsx)(C,{sections:1})}),t[41]=f,t[42]=m,t[43]=g,t[44]=u,t[45]=R):R=t[45];let z;return t[46]!==A||t[47]!==j||t[48]!==M||t[49]!==L||t[50]!==R?(z=(0,B.jsxs)(`div`,{className:`min-w-0 rounded-lg px-2 py-1.5 hover:bg-surface-hover/60`,children:[A,j,M,L,R]}),t[46]=A,t[47]=j,t[48]=M,t[49]=L,t[50]=R,t[51]=z):z=t[51],z}function Q(e){return!e}function Te(e){return e.language}function $(){let e=c(d(e=>e.language)).imports,[t,n]=(0,N.useState)(),[r,s]=(0,N.useState)(),[l,u]=(0,N.useState)(!1),[f,p]=(0,N.useState)(),[m,h]=(0,N.useState)(new Set),[g,_]=(0,N.useState)(!1),[v,y]=(0,N.useState)(),[b,x]=(0,N.useState)(),[S,T]=(0,N.useState)(``),[E,D]=(0,N.useState)(``),[O,k]=(0,N.useState)(0),A=(0,N.useRef)(null),F=(0,N.useRef)(!1);(0,N.useEffect)(()=>{let e=new AbortController;return T(``),P(`/sources`,void 0,e.signal).then(e=>n(e.sources)).catch(t=>{e.signal.aborted||T(t instanceof Error?t.message:String(t))}),()=>{e.abort(),A.current?.abort()}},[O]);let I=(t?.flatMap(e=>e.lastImport?.status===`running`?[e.lastImport.id]:[])??[]).join(`,`);(0,N.useEffect)(()=>{if(!I)return;let e=new AbortController,t,n=async()=>{for(let t of I.split(`,`))try{let n=await P(`/runs/${t}`,void 0,e.signal);e.signal.aborted||L(n)}catch{}e.signal.aborted||(t=setTimeout(()=>void n(),3e3))};return t=setTimeout(()=>void n(),1500),()=>{e.abort(),clearTimeout(t)}},[I]);function L(e){n(t=>t?.map(t=>t.id===e.source?{...t,lastImport:e}:t)),e.status!==`running`&&y(t=>t?.requestId===e.id?void 0:t)}async function R(e){A.current?.abort();let t=new AbortController;A.current=t,s(e),u(!0),p(void 0),h(new Set),D(``),x(void 0),y(void 0);try{let n=await P(`/sources/${e}/scan`,{},t.signal);t.signal.aborted||(p(n),h(new Set(n.candidates.filter(e=>!e.parentId&&e.suggested).map(e=>e.id))))}catch(e){t.signal.aborted||D(e instanceof Error?e.message:String(e))}}async function z(){if(!f||!m.size||F.current)return;F.current=!0,_(!0),D(``),T(``);let e=v??{inventoryId:f.id,candidateIds:[...m],requestId:crypto.randomUUID(),retryOf:b};y(e);try{L(await P(`/runs`,e)),u(!1)}catch(e){let t=e instanceof Error?e.message:String(e);D(t),T(t);let n=e.body?.code;n&&[`invalid_input`,`inventory_stale`,`invalid_selection`,`missing_parent`,`not_found`,`conflict`].includes(n)&&y(void 0)}finally{F.current=!1,_(!1)}}async function H(e){s(e.source),u(!0),p(void 0),h(new Set),D(``),y(void 0),x(e.id),A.current?.abort();let t=new AbortController;A.current=t;try{let n=await P(`/inventories/${e.inventoryId}`,void 0,t.signal);if(t.signal.aborted)return;let r=new Set(e.items.filter(e=>e.status===`failed`).map(e=>e.candidateId));n.candidates.forEach(e=>{r.has(e.id)&&e.parentId&&r.add(e.parentId)}),p({...n,candidates:n.candidates.filter(e=>r.has(e.id))}),h(r)}catch(e){t.signal.aborted||D(e instanceof Error?e.message:String(e))}}let ee=t?.filter(e=>e.detected||e.lastImport);return(0,B.jsxs)(M,{children:[(0,B.jsx)(j,{title:e.title,subtitle:e.subtitle}),S&&(0,B.jsxs)(`div`,{role:`alert`,className:`rounded-xl bg-danger-soft p-4 text-sm text-danger`,children:[(0,B.jsx)(`p`,{children:S}),!t&&(0,B.jsx)(w,{variant:`ghost`,onClick:()=>k(e=>e+1),children:e.retry})]}),!t&&!S&&(0,B.jsx)(C,{sections:1}),t&&(0,B.jsxs)(`section`,{className:`space-y-4`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-base font-medium text-fg`,children:e.apps}),(0,B.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:e.detectedHint})]}),ee?.length?(0,B.jsx)(`div`,{className:`flex flex-col gap-1 overflow-hidden rounded-xl bg-surface-hover/20 p-1 [&>*]:rounded-lg [&>*]:bg-surface-base/45`,children:ee.map(t=>(0,B.jsxs)(`article`,{className:`space-y-3 p-5 sm:p-6`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsx)(`div`,{"aria-hidden":`true`,className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-surface-hover text-fg`,children:(0,B.jsx)(o,{className:`h-5 w-5`})}),(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`h3`,{className:`font-medium text-fg`,children:t.name}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:e.includes})]}),(0,B.jsx)(w,{variant:`secondary`,disabled:g||!t.detected||!!v&&r!==t.id||t.lastImport?.status===`running`,onClick:()=>{T(``),v&&r===t.id?u(!0):R(t.id)},children:g&&r===t.id?e.importing:v&&r===t.id?e.retry:t.lastImport?e.importAgain:e.import})]}),t.lastImport&&(0,B.jsxs)(`div`,{role:`status`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,B.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(a,{className:`h-4 w-4 shrink-0`}),t.lastImport.status===`running`?e.importing:t.lastImport.issues.length?e.finishedWithIssues:e.finished]}),(0,B.jsxs)(`p`,{children:[e.summary.replace(`{skills}`,String(t.lastImport.skills)).replace(`{context}`,String(t.lastImport.context)).replace(`{projects}`,String(t.lastImport.projects)),t.lastImport.skipped>0&&` · ${e.skipped.replace(`{count}`,String(t.lastImport.skipped))}`]}),!!t.lastImport.issues.length&&(0,B.jsxs)(`details`,{children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer text-fg`,children:[e.details,` (`,t.lastImport.issues.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-2 space-y-2`,children:t.lastImport.issues.map((e,t)=>(0,B.jsxs)(`li`,{className:`break-words`,children:[(0,B.jsx)(`span`,{className:`font-medium`,children:e.name}),` — `,e.reason]},t))})]}),t.lastImport.status===`partial`&&(0,B.jsx)(w,{variant:`ghost`,disabled:g||!!v,onClick:()=>void H(t.lastImport),children:e.retryFailed})]})]},t.id))}):(0,B.jsxs)(`div`,{className:`rounded-xl bg-surface-hover/20 p-6 text-sm text-fg-muted`,children:[(0,B.jsx)(`p`,{children:e.empty}),(0,B.jsx)(w,{variant:`ghost`,className:`mt-3`,onClick:()=>k(e=>e+1),children:e.refresh})]}),(0,B.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:e.footnote}),ee?.some(e=>e.lastImport)&&(0,B.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,B.jsx)(i,{className:`text-accent`,to:`/capabilities/skills`,children:e.openSkills}),(0,B.jsx)(i,{className:`text-accent`,to:`/projects`,children:e.openProjects}),(0,B.jsx)(i,{className:`text-accent`,to:`/capabilities/connectors`,children:e.connections})]})]}),(0,B.jsx)(V,{open:l,sourceName:t?.find(e=>e.id===r)?.name??``,inventory:f,selected:m,onSelected:h,busy:g,locked:g||!!v,error:E,onClose:()=>{A.current?.abort(),u(!1)},onRefresh:()=>{r&&R(r)},onSubmit:()=>void z()})]})}export{$ as ImportsPage};
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./chunk-KS7C4IRE-B2HK1psj.js";import{t as a}from"./check-DUBLcKHA.js";import{t as o}from"./download-Dk-ZjtO6.js";import{t as s}from"./x-B_N4OPjy.js";import{t as c}from"./messages-DBvKzlCl.js";import{t as l}from"./cn-0WouolD0.js";import{a as u,n as d,r as f}from"./locale-store-Jnhw2WMv.js";import{a as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./dist-BGTk37IG.js";import{Dd as b,Du as x,On as S,Wc as C,eu as w,hf as T,hu as E,ru as D,uf as O,vs as k,ys as A}from"./index-DvKDT-RQ.js";import{n as j,r as M}from"./settings-page-layout-Dx5S-Msc.js";var N=e(t(),1);async function P(e,t,n){return(await u(f(`/api/imports${e}`),{...t===void 0?{}:{method:`POST`,body:JSON.stringify(t)},signal:n})).data}var F=n();function I(e){return e.kind!==`connection`&&(e.status===`ready`||e.status===`conflict`||e.kind===`project`&&e.status===`existing`)}function L(e,t){let n=e.filter(I),r=n.filter(e=>t.has(e.id)).length;return{checked:n.length>0&&r===n.length,indeterminate:r>0&&r<n.length,selectedCount:r,availableCount:n.length}}function R(e,t,n,r){return n.reduce((t,n)=>z(e,t,n,r),new Set(t))}function z(e,t,n,r){let i=new Set(t);if(!I(n))return i;if(r){if(i.add(n.id),n.parentId&&i.add(n.parentId),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&t.kind===`skill`&&t.suggested&&I(t)&&i.add(t.id)}else if(i.delete(n.id),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&i.delete(t.id);return i}var B=r();function V(e){let t=(0,F.c)(34),{open:n,sourceName:r,inventory:i,selected:a,onSelected:o,busy:u,locked:f,error:E,onClose:D,onRefresh:O,onSubmit:j}=e,M=c(d(ue)).imports,[P,I]=(0,N.useState)(!0),[L,V]=(0,N.useState)(!1),U;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(U=()=>{I(!0),V(!1)},t[0]=U):U=t[0];let fe=i?.id,W;t[1]===fe?W=t[2]:(W=[fe],t[1]=fe,t[2]=W),(0,N.useEffect)(U,W);let G=i?.candidates.filter(le)??[],pe;t[3]===i?.candidates?pe=t[4]:(pe=i?.candidates.filter(ce)??[],t[3]=i?.candidates,t[4]=pe);let K=pe,ge;t[5]===i?.candidates?ge=t[6]:(ge=i?.candidates.filter(se)??[],t[5]=i?.candidates,t[6]=ge);let _e=ge,q;if(t[7]!==i?.candidates){q=new Map;for(let e of i?.candidates??[]){if(!e.parentId)continue;let t=q.get(e.parentId)??[];t.push(e),q.set(e.parentId,t)}t[7]=i?.candidates,t[8]=q}else q=t[8];let ye=q,be=i?.candidates.filter(e=>a.has(e.id))??[],xe=M.selected.replace(`{skills}`,String(be.filter(oe).length)).replace(`{context}`,String(be.filter(ae).length)).replace(`{projects}`,String(be.filter(ie).length)),Se;t[9]!==i||t[10]!==o||t[11]!==a?(Se=(e,t)=>{i&&o(z(i,a,e,t))},t[9]=i,t[10]=o,t[11]=a,t[12]=Se):Se=t[12];let Ce=Se,we;t[13]!==i||t[14]!==o||t[15]!==a?(we=(e,t)=>{i&&o(R(i,a,e,t))},t[13]=i,t[14]=o,t[15]=a,t[16]=we):we=t[16];let J=we,Y;t[17]===D?Y=t[18]:(Y=e=>{e||D()},t[17]=D,t[18]=Y);let X;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,B.jsx)(p,{className:`xopc-dialog-overlay fixed inset-0 bg-scrim ${A}`}),t[19]=X):X=t[19];let Z;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(Z=l(`xopc-dialog-content fixed left-1/2 top-1/2 flex h-[min(calc(100dvh-2rem),760px)] w-[min(calc(100%-2rem),720px)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay outline-none`,`max-sm:bottom-0 max-sm:left-0 max-sm:top-auto max-sm:h-[min(92dvh,760px)] max-sm:w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none`,k),t[20]=Z):Z=t[20];let Q;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,B.jsx)(s,{"aria-hidden":`true`,className:`h-4 w-4`}),t[21]=Q):Q=t[21];let Te=E&&(0,B.jsxs)(`div`,{role:`alert`,className:`space-y-3 rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg`,children:[(0,B.jsx)(`p`,{children:E}),(0,B.jsx)(C,{variant:`secondary`,disabled:f,onClick:O,children:M.refresh})]}),$;t[22]!==E||t[23]!==i?($=!i&&!E&&(0,B.jsx)(S,{sections:2}),t[22]=E,t[23]=i,t[24]=$):$=t[24];let Ee=i&&(0,B.jsxs)(B.Fragment,{children:[!i.complete&&(0,B.jsx)(`p`,{className:`rounded-lg bg-surface-inset p-3 text-sm text-fg-muted`,children:M.incomplete}),G.length>0&&(0,B.jsxs)(me,{icon:w,title:M.personalSetup,description:M.personalSetupHint,items:G,selected:a,open:P,disabled:f,onOpenChange:I,onCheckedChange:e=>J(G,e),children:[(0,B.jsx)(he,{icon:x,title:M.kinds.skill,items:G.filter(re),inventoryId:i.id,selected:a,disabled:f,onToggle:Ce,onToggleAll:e=>J(G.filter(ne),e)}),(0,B.jsx)(he,{icon:T,title:M.kinds.context,items:G.filter(te),inventoryId:i.id,selected:a,disabled:f,onToggle:Ce,onToggleAll:e=>J(G.filter(ee),e)})]}),K.length>0&&(0,B.jsx)(me,{icon:b,title:M.kinds.project,description:M.projectsHint.replace(`{count}`,String(K.length)),items:K,selected:a,open:L,disabled:f,onOpenChange:V,onCheckedChange:e=>J(K,e),children:(0,B.jsx)(ve,{inventoryId:i.id,projects:K,projectChildren:ye,selected:a,disabled:f,onToggle:Ce})}),_e.length>0&&(0,B.jsx)(de,{inventoryId:i.id,items:_e}),!i.candidates.length&&(0,B.jsx)(`p`,{className:`rounded-xl bg-surface-inset p-5 text-sm text-fg-muted`,children:M.noContent}),!!i.notices.length&&(0,B.jsxs)(`details`,{className:`rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg-muted`,children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer font-medium text-fg`,children:[M.scanNotices,` (`,i.notices.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-3 space-y-2`,children:i.notices.map(H)})]})]}),De;t[25]!==Te||t[26]!==$||t[27]!==Ee?(De=(0,B.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-4 sm:p-6`,children:[Te,$,Ee]}),t[25]=Te,t[26]=$,t[27]=Ee,t[28]=De):De=t[28];let Oe=C,ke=!i||!a.size||u,Ae=u?M.importing:f?M.retry:M.importCount.replace(`{count}`,String(a.size)),je;return t[29]!==Oe||t[30]!==j||t[31]!==ke||t[32]!==Ae?(je=(0,B.jsx)(Oe,{variant:`primary`,disabled:ke,onClick:j,children:Ae}),t[29]=Oe,t[30]=j,t[31]=ke,t[32]=Ae,t[33]=je):je=t[33],(0,B.jsx)(y,{open:n,onOpenChange:Y,children:(0,B.jsxs)(g,{children:[X,(0,B.jsxs)(_,{className:Z,children:[(0,B.jsx)(`header`,{className:`shrink-0 space-y-2 border-b border-edge p-5 sm:p-6`,children:(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,B.jsxs)(`div`,{className:`min-w-0`,children:[(0,B.jsx)(v,{className:`text-xl font-semibold text-fg`,children:M.chooseTitle.replace(`{source}`,r)}),(0,B.jsx)(m,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:M.chooseHint})]}),(0,B.jsx)(h,{asChild:!0,children:(0,B.jsx)(C,{variant:`ghost`,"aria-label":M.close,className:`h-10 w-10 shrink-0 p-0`,children:Q})})]})}),De,(0,B.jsx)(`footer`,{className:`shrink-0 border-t border-edge bg-surface-overlay p-4 sm:px-6 sm:py-5`,children:(0,B.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,B.jsxs)(`div`,{"aria-live":`polite`,className:`min-w-0`,children:[(0,B.jsx)(`p`,{className:`text-sm text-fg-muted`,children:xe}),u&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.runningHint}),f&&!u&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.retryHint})]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2`,children:[(0,B.jsx)(C,{variant:`ghost`,onClick:D,children:u?M.close:M.cancel}),je]})]})})]})]})})}function H(e,t){return(0,B.jsx)(`li`,{className:`break-words`,children:e},t)}function ee(e){return e.kind===`context`}function te(e){return e.kind===`context`}function ne(e){return e.kind===`skill`}function re(e){return e.kind===`skill`}function ie(e){return e.kind===`project`}function ae(e){return e.kind===`context`}function oe(e){return e.kind===`skill`}function se(e){return e.kind===`connection`}function ce(e){return e.kind===`project`}function le(e){return!e.parentId&&(e.kind===`skill`||e.kind===`context`)}function ue(e){return e.language}function de(e){let t=(0,F.c)(13),{inventoryId:n,items:r}=e,a=c(d(fe)).imports,[o,s]=(0,N.useState)(!1),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>s(U),t[0]=u):u=t[0];let f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(E,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[1]=f):f=t[1];let p=a.connectionsHint.replace(`{count}`,String(r.length)),m;t[2]===p?m=t[3]:(m=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:p}),t[2]=p,t[3]=m);let h=o&&`rotate-180`,g;t[4]===h?g=t[5]:(g=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,h),t[4]=h,t[5]=g);let _;t[6]===g?_=t[7]:(_=(0,B.jsx)(O,{"aria-hidden":`true`,className:g}),t[6]=g,t[7]=_);let v;return t[8]!==n||t[9]!==r||t[10]!==o||t[11]!==a?(v=o&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:[r.map(e=>(0,B.jsx)(W,{inventoryId:n,item:e},e.id)),(0,B.jsx)(C,{asChild:!0,variant:`secondary`,children:(0,B.jsx)(i,{to:`/capabilities/connectors`,children:a.connectionsAction})})]}),t[8]=n,t[9]=r,t[10]=o,t[11]=a,t[12]=v):v=t[12],(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[(0,B.jsx)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:(0,B.jsxs)(C,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":o,onClick:u,children:[f,(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:a.kinds.connection}),m]}),_]})}),v]})}function U(e){return!e}function fe(e){return e.language}function W(e){let t=(0,F.c)(34),{inventoryId:n,item:r}=e,i=d(pe),a;t[0]===i?a=t[1]:(a=c(i),t[0]=i,t[1]=a);let o=a.imports,[s,l]=(0,N.useState)(),[u,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(``),h;t[2]!==n||t[3]!==r.id||t[4]!==s?(h=async function(){if(f(G),!s)try{l(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;m(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=s,t[5]=h):h=t[5];let g=h,_;t[6]===r.name?_=t[7]:(_=(0,B.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:r.name}),t[6]=r.name,t[7]=_);let v;t[8]===r.displayPath?v=t[9]:(v=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[8]=r.displayPath,t[9]=v);let y=o.statuses[r.status],b;t[10]===y?b=t[11]:(b=(0,B.jsx)(`span`,{className:`mt-1 block text-xs text-fg-muted`,children:y}),t[10]=y,t[11]=b);let x;t[12]!==_||t[13]!==v||t[14]!==b?(x=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[_,v,b]}),t[12]=_,t[13]=v,t[14]=b,t[15]=x):x=t[15];let w;t[16]===g?w=t[17]:(w=()=>void g(),t[16]=g,t[17]=w);let T;t[18]!==o.preview||t[19]!==w?(T=(0,B.jsx)(C,{variant:`ghost`,className:`h-9 shrink-0 px-2`,onClick:w,children:o.preview}),t[18]=o.preview,t[19]=w,t[20]=T):T=t[20];let E;t[21]!==T||t[22]!==x?(E=(0,B.jsxs)(`div`,{className:`flex items-start gap-3`,children:[x,T]}),t[21]=T,t[22]=x,t[23]=E):E=t[23];let D;t[24]===r.reason?D=t[25]:(D=r.reason&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:r.reason}),t[24]=r.reason,t[25]=D);let O;t[26]!==p||t[27]!==u||t[28]!==s?(O=u&&(0,B.jsx)(`div`,{className:`mt-3 rounded-lg bg-surface-inset p-3`,children:p?(0,B.jsx)(`p`,{role:`alert`,className:`text-xs text-fg-muted`,children:p}):s?(0,B.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:s.text}):(0,B.jsx)(S,{sections:1})}),t[26]=p,t[27]=u,t[28]=s,t[29]=O):O=t[29];let k;return t[30]!==E||t[31]!==D||t[32]!==O?(k=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge p-3`,children:[E,D,O]}),t[30]=E,t[31]=D,t[32]=O,t[33]=k):k=t[33],k}function G(e){return!e}function pe(e){return e.language}function me(e){let t=(0,F.c)(40),{icon:n,title:r,description:i,items:a,selected:o,open:s,disabled:c,onOpenChange:u,onCheckedChange:d,children:f}=e,p;t[0]!==a||t[1]!==o?(p=L(a,o),t[0]=a,t[1]=o,t[2]=p):p=t[2];let m=p,h;t[3]!==u||t[4]!==s?(h=()=>u(!s),t[3]=u,t[4]=s,t[5]=h):h=t[5];let g;t[6]===n?g=t[7]:(g=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[6]=n,t[7]=g);let _;t[8]===r?_=t[9]:(_=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r}),t[8]=r,t[9]=_);let v;t[10]===i?v=t[11]:(v=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:i}),t[10]=i,t[11]=v);let y;t[12]!==_||t[13]!==v?(y=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14];let b=s&&`rotate-180`,x;t[15]===b?x=t[16]:(x=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,b),t[15]=b,t[16]=x);let S;t[17]===x?S=t[18]:(S=(0,B.jsx)(O,{"aria-hidden":`true`,className:x}),t[17]=x,t[18]=S);let w;t[19]!==s||t[20]!==h||t[21]!==g||t[22]!==y||t[23]!==S?(w=(0,B.jsxs)(C,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":s,onClick:h,children:[g,y,S]}),t[19]=s,t[20]=h,t[21]=g,t[22]=y,t[23]=S,t[24]=w):w=t[24];let T=c||!m.availableCount,E;t[25]!==d||t[26]!==m.checked||t[27]!==m.indeterminate||t[28]!==T||t[29]!==r?(E=(0,B.jsx)(X,{label:r,checked:m.checked,indeterminate:m.indeterminate,disabled:T,onChange:d}),t[25]=d,t[26]=m.checked,t[27]=m.indeterminate,t[28]=T,t[29]=r,t[30]=E):E=t[30];let D;t[31]!==w||t[32]!==E?(D=(0,B.jsxs)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:[w,E]}),t[31]=w,t[32]=E,t[33]=D):D=t[33];let k;t[34]!==f||t[35]!==s?(k=s&&(0,B.jsx)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:f}),t[34]=f,t[35]=s,t[36]=k):k=t[36];let A;return t[37]!==D||t[38]!==k?(A=(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[D,k]}),t[37]=D,t[38]=k,t[39]=A):A=t[39],A}function he(e){let t=(0,F.c)(34),{icon:n,title:r,items:i,inventoryId:a,selected:o,disabled:s,onToggle:u,onToggleAll:f}=e,p=c(d(_e)).imports,[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(``),[v,y]=(0,N.useState)(60);if(!i.length)return null;let b;t[0]!==i||t[1]!==o?(b=L(i,o),t[0]=i,t[1]=o,t[2]=b):b=t[2];let x=b,S=Y(i,g),w=S.slice(0,v),T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>h(ge),t[3]=T):T=t[3];let E;t[4]===n?E=t[5]:(E=(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5 shrink-0 text-fg-muted`}),t[4]=n,t[5]=E);let D;t[6]!==i.length||t[7]!==r?(D=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg`,children:[r,` (`,i.length,`)`]}),t[6]=i.length,t[7]=r,t[8]=D):D=t[8];let k;t[9]!==x.availableCount||t[10]!==x.selectedCount?(k=(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[x.selectedCount,`/`,x.availableCount]}),t[9]=x.availableCount,t[10]=x.selectedCount,t[11]=k):k=t[11];let A=m&&`rotate-180`,j;t[12]===A?j=t[13]:(j=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,A),t[12]=A,t[13]=j);let M;t[14]===j?M=t[15]:(M=(0,B.jsx)(O,{"aria-hidden":`true`,className:j}),t[14]=j,t[15]=M);let P;t[16]!==m||t[17]!==E||t[18]!==D||t[19]!==k||t[20]!==M?(P=(0,B.jsxs)(C,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-1 text-left`,"aria-expanded":m,onClick:T,children:[E,D,k,M]}),t[16]=m,t[17]=E,t[18]=D,t[19]=k,t[20]=M,t[21]=P):P=t[21];let I=s||!x.availableCount,R;t[22]!==f||t[23]!==x.checked||t[24]!==x.indeterminate||t[25]!==I||t[26]!==r?(R=(0,B.jsx)(X,{label:r,checked:x.checked,indeterminate:x.indeterminate,disabled:I,onChange:f}),t[22]=f,t[23]=x.checked,t[24]=x.indeterminate,t[25]=I,t[26]=r,t[27]=R):R=t[27];let z;t[28]!==P||t[29]!==R?(z=(0,B.jsxs)(`div`,{className:`flex min-h-14 items-center gap-2 px-3 py-2`,children:[P,R]}),t[28]=P,t[29]=R,t[30]=z):z=t[30];let V=m&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge p-2`,children:[i.length>8&&(0,B.jsx)(J,{value:g,label:p.searchWithin.replace(`{group}`,r),onChange:e=>{_(e),y(60)}}),(0,B.jsx)(`div`,{className:`space-y-1`,children:w.map(e=>(0,B.jsx)(Z,{inventoryId:a,item:e,checked:o.has(e.id),disabled:s,onChange:t=>u(e,t)},e.id))}),!S.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:p.noMatches}),w.length<S.length&&(0,B.jsx)(C,{variant:`ghost`,className:`w-full`,onClick:()=>y(K),children:p.showMore.replace(`{count}`,String(S.length-w.length))})]}),H;return t[31]!==z||t[32]!==V?(H=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[z,V]}),t[31]=z,t[32]=V,t[33]=H):H=t[33],H}function K(e){return e+60}function ge(e){return!e}function _e(e){return e.language}function ve(e){let t=(0,F.c)(15),{inventoryId:n,projects:r,projectChildren:i,selected:a,disabled:o,onToggle:s}=e,l=c(d(ye)).imports,[u,f]=(0,N.useState)(``),[p,m]=(0,N.useState)(60),h;t[0]===i?h=t[1]:(h=e=>i.get(e.id)??[],t[0]=i,t[1]=h);let g=Y(r,u,h),_=g.slice(0,p),v=r.length>8&&(0,B.jsx)(J,{value:u,label:l.searchWithin.replace(`{group}`,l.kinds.project),onChange:e=>{f(e),m(60)}}),y;t[2]!==o||t[3]!==n||t[4]!==s||t[5]!==i||t[6]!==a?(y=e=>(0,B.jsx)(be,{inventoryId:n,project:e,children:i.get(e.id)??[],selected:a,disabled:o,onToggle:s},e.id),t[2]=o,t[3]=n,t[4]=s,t[5]=i,t[6]=a,t[7]=y):y=t[7];let b=_.map(y),x;t[8]===b?x=t[9]:(x=(0,B.jsx)(`div`,{className:`space-y-2`,children:b}),t[8]=b,t[9]=x);let S=!g.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:l.noMatches}),w=_.length<g.length&&(0,B.jsx)(C,{variant:`ghost`,className:`w-full`,onClick:()=>m(q),children:l.showMore.replace(`{count}`,String(g.length-_.length))}),T;return t[10]!==v||t[11]!==x||t[12]!==S||t[13]!==w?(T=(0,B.jsxs)(`div`,{className:`space-y-2`,children:[v,x,S,w]}),t[10]=v,t[11]=x,t[12]=S,t[13]=w,t[14]=T):T=t[14],T}function q(e){return e+60}function ye(e){return e.language}function be(e){let t=(0,F.c)(52),{inventoryId:n,project:r,children:i,selected:a,disabled:o,onToggle:s}=e,u=c(d(we)).imports,[f,p]=(0,N.useState)(!1),m;if(t[0]!==i||t[1]!==a){let e;t[3]===a?e=t[4]:(e=e=>a.has(e.id),t[3]=a,t[4]=e),m=i.filter(e),t[0]=i,t[1]=a,t[2]=m}else m=t[2];let h=m.length,g=C,_;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>p(Ce),t[5]=_):_=t[5];let v;t[6]===r.name?v=t[7]:(v=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r.name}),t[6]=r.name,t[7]=v);let y;t[8]===r.displayPath?y=t[9]:(y=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:r.displayPath}),t[8]=r.displayPath,t[9]=y);let b;t[10]!==v||t[11]!==y?(b=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[v,y]}),t[10]=v,t[11]=y,t[12]=b):b=t[12];let x=i.length>0&&(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[u.projectContents.replace(`{skills}`,String(i.filter(Se).length)).replace(`{context}`,String(i.filter(xe).length)),` · `,u.chosenCount.replace(`{count}`,String(h))]}),S=f&&`rotate-180`,w;t[13]===S?w=t[14]:(w=l(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,S),t[13]=S,t[14]=w);let T;t[15]===w?T=t[16]:(T=(0,B.jsx)(O,{"aria-hidden":`true`,className:w}),t[15]=w,t[16]=T);let E;t[17]!==g||t[18]!==f||t[19]!==x||t[20]!==T||t[21]!==_||t[22]!==b?(E=(0,B.jsxs)(g,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-2 text-left`,"aria-expanded":f,onClick:_,children:[b,x,T]}),t[17]=g,t[18]=f,t[19]=x,t[20]=T,t[21]=_,t[22]=b,t[23]=E):E=t[23];let D=r.name,k;t[24]!==r.id||t[25]!==a?(k=a.has(r.id),t[24]=r.id,t[25]=a,t[26]=k):k=t[26];let A;t[27]!==o||t[28]!==r?(A=o||!I(r),t[27]=o,t[28]=r,t[29]=A):A=t[29];let j;t[30]!==s||t[31]!==r?(j=e=>s(r,e.target.checked),t[30]=s,t[31]=r,t[32]=j):j=t[32];let M;t[33]!==r.name||t[34]!==k||t[35]!==A||t[36]!==j?(M=(0,B.jsx)(`input`,{type:`checkbox`,"aria-label":D,checked:k,disabled:A,onChange:j}),t[33]=r.name,t[34]=k,t[35]=A,t[36]=j,t[37]=M):M=t[37];let P;t[38]!==E||t[39]!==M?(P=(0,B.jsxs)(`div`,{className:`flex items-center gap-2 p-2`,children:[E,M]}),t[38]=E,t[39]=M,t[40]=P):P=t[40];let L;t[41]!==i||t[42]!==o||t[43]!==n||t[44]!==s||t[45]!==f||t[46]!==a||t[47]!==u?(L=f&&(0,B.jsx)(`div`,{className:`border-t border-edge p-2`,children:i.length?(0,B.jsx)(`div`,{className:`space-y-1`,children:i.map(e=>(0,B.jsx)(Z,{inventoryId:n,item:e,checked:a.has(e.id),disabled:o,onChange:t=>s(e,t)},e.id))}):(0,B.jsx)(`p`,{className:`p-2 text-xs text-fg-muted`,children:u.directoryOnly})}),t[41]=i,t[42]=o,t[43]=n,t[44]=s,t[45]=f,t[46]=a,t[47]=u,t[48]=L):L=t[48];let R;return t[49]!==P||t[50]!==L?(R=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[P,L]}),t[49]=P,t[50]=L,t[51]=R):R=t[51],R}function xe(e){return e.kind===`context`}function Se(e){return e.kind===`skill`}function Ce(e){return!e}function we(e){return e.language}function J(e){let t=(0,F.c)(13),{value:n,label:r,onChange:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(D,{"aria-hidden":`true`,className:`h-4 w-4 shrink-0 text-fg-muted`}),t[0]=a):a=t[0];let o;t[1]===r?o=t[2]:(o=(0,B.jsx)(`span`,{className:`sr-only`,children:r}),t[1]=r,t[2]=o);let s=`${r}…`,c;t[3]===i?c=t[4]:(c=e=>i(e.target.value),t[3]=i,t[4]=c);let l;t[5]!==r||t[6]!==s||t[7]!==c||t[8]!==n?(l=(0,B.jsx)(`input`,{type:`search`,autoComplete:`off`,value:n,placeholder:s,"aria-label":r,onChange:c,className:`min-w-0 flex-1 border-0 bg-transparent px-0 py-2 text-sm text-fg placeholder:text-fg-subtle`}),t[5]=r,t[6]=s,t[7]=c,t[8]=n,t[9]=l):l=t[9];let u;return t[10]!==o||t[11]!==l?(u=(0,B.jsxs)(`label`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-3 focus-within:border-accent focus-within:ring-1 focus-within:ring-accent`,children:[a,o,l]}),t[10]=o,t[11]=l,t[12]=u):u=t[12],u}function Y(e,t,n=()=>[]){let r=t.trim().toLocaleLowerCase();if(!r)return e;let i=e=>`${e.name} ${e.description} ${e.displayPath}`.toLocaleLowerCase().includes(r);return e.filter(e=>i(e)||n(e).some(i))}function X(e){let t=(0,F.c)(10),{label:n,checked:r,indeterminate:i,disabled:a,onChange:o}=e,s=(0,N.useRef)(null),c,l;t[0]===i?(c=t[1],l=t[2]):(c=()=>{s.current&&(s.current.indeterminate=i)},l=[i],t[0]=i,t[1]=c,t[2]=l),(0,N.useEffect)(c,l);let u;t[3]===o?u=t[4]:(u=e=>o(e.target.checked),t[3]=o,t[4]=u);let d;return t[5]!==r||t[6]!==a||t[7]!==n||t[8]!==u?(d=(0,B.jsx)(`input`,{ref:s,type:`checkbox`,"aria-label":n,checked:r,disabled:a,onChange:u}),t[5]=r,t[6]=a,t[7]=n,t[8]=u,t[9]=d):d=t[9],d}function Z(e){let t=(0,F.c)(52),{inventoryId:n,item:r,checked:i,disabled:a,onChange:o}=e,s=d(Te),l;t[0]===s?l=t[1]:(l=c(s),t[0]=s,t[1]=l);let u=l.imports,[f,p]=(0,N.useState)(),[m,h]=(0,N.useState)(``),[g,_]=(0,N.useState)(!1),v;t[2]!==n||t[3]!==r.id||t[4]!==f?(v=async function(){if(_(Q),!f)try{p(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;h(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=f,t[5]=v):v=t[5];let y=v,b;t[6]!==a||t[7]!==r?(b=a||!I(r),t[6]=a,t[7]=r,t[8]=b):b=t[8];let x;t[9]===o?x=t[10]:(x=e=>o(e.target.checked),t[9]=o,t[10]=x);let w;t[11]!==i||t[12]!==b||t[13]!==x?(w=(0,B.jsx)(`input`,{type:`checkbox`,className:`mt-0.5`,checked:i,disabled:b,onChange:x}),t[11]=i,t[12]=b,t[13]=x,t[14]=w):w=t[14];let T;t[15]===r.name?T=t[16]:(T=(0,B.jsx)(`span`,{className:`block break-words text-sm font-medium text-fg`,children:r.name}),t[15]=r.name,t[16]=T);let E;t[17]===r.displayPath?E=t[18]:(E=(0,B.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[17]=r.displayPath,t[18]=E);let D;t[19]!==T||t[20]!==E?(D=(0,B.jsxs)(`span`,{className:`min-w-0`,children:[T,E]}),t[19]=T,t[20]=E,t[21]=D):D=t[21];let O;t[22]!==w||t[23]!==D?(O=(0,B.jsxs)(`label`,{className:`flex min-w-0 flex-1 cursor-pointer items-start gap-3 py-1`,children:[w,D]}),t[22]=w,t[23]=D,t[24]=O):O=t[24];let k;t[25]!==r.name||t[26]!==r.status||t[27]!==u||t[28]!==y?(k=r.status!==`blocked`&&(0,B.jsx)(C,{variant:`ghost`,"aria-label":`${u.preview}: ${r.name}`,className:`h-9 shrink-0 px-2`,onClick:()=>void y(),children:u.preview}),t[25]=r.name,t[26]=r.status,t[27]=u,t[28]=y,t[29]=k):k=t[29];let A;t[30]!==O||t[31]!==k?(A=(0,B.jsxs)(`div`,{className:`flex items-start gap-2`,children:[O,k]}),t[30]=O,t[31]=k,t[32]=A):A=t[32];let j;t[33]===r.description?j=t[34]:(j=r.description&&(0,B.jsx)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:r.description}),t[33]=r.description,t[34]=j);let M;t[35]!==r.status||t[36]!==r.targetName||t[37]!==u?(M=r.status!==`ready`&&(0,B.jsxs)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:[u.statuses[r.status],r.status===`conflict`?` → ${r.targetName}`:``]}),t[35]=r.status,t[36]=r.targetName,t[37]=u,t[38]=M):M=t[38];let L;t[39]===r.reason?L=t[40]:(L=r.reason&&(0,B.jsx)(`p`,{className:`break-words pl-7 text-xs text-fg-muted`,children:r.reason}),t[39]=r.reason,t[40]=L);let R;t[41]!==f||t[42]!==m||t[43]!==g||t[44]!==u?(R=g&&(0,B.jsx)(`div`,{className:`ml-7 mt-2 rounded-lg border border-edge bg-surface-inset p-3`,children:m?(0,B.jsx)(`p`,{role:`alert`,className:`text-sm text-fg-muted`,children:m}):f?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`pre`,{className:`max-h-60 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:f.text}),f.truncated&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:u.previewTruncated})]}):(0,B.jsx)(S,{sections:1})}),t[41]=f,t[42]=m,t[43]=g,t[44]=u,t[45]=R):R=t[45];let z;return t[46]!==A||t[47]!==j||t[48]!==M||t[49]!==L||t[50]!==R?(z=(0,B.jsxs)(`div`,{className:`min-w-0 rounded-lg px-2 py-1.5 hover:bg-surface-hover/60`,children:[A,j,M,L,R]}),t[46]=A,t[47]=j,t[48]=M,t[49]=L,t[50]=R,t[51]=z):z=t[51],z}function Q(e){return!e}function Te(e){return e.language}function $(){let e=c(d(e=>e.language)).imports,[t,n]=(0,N.useState)(),[r,s]=(0,N.useState)(),[l,u]=(0,N.useState)(!1),[f,p]=(0,N.useState)(),[m,h]=(0,N.useState)(new Set),[g,_]=(0,N.useState)(!1),[v,y]=(0,N.useState)(),[b,x]=(0,N.useState)(),[w,T]=(0,N.useState)(``),[E,D]=(0,N.useState)(``),[O,k]=(0,N.useState)(0),A=(0,N.useRef)(null),F=(0,N.useRef)(!1);(0,N.useEffect)(()=>{let e=new AbortController;return T(``),P(`/sources`,void 0,e.signal).then(e=>n(e.sources)).catch(t=>{e.signal.aborted||T(t instanceof Error?t.message:String(t))}),()=>{e.abort(),A.current?.abort()}},[O]);let I=(t?.flatMap(e=>e.lastImport?.status===`running`?[e.lastImport.id]:[])??[]).join(`,`);(0,N.useEffect)(()=>{if(!I)return;let e=new AbortController,t,n=async()=>{for(let t of I.split(`,`))try{let n=await P(`/runs/${t}`,void 0,e.signal);e.signal.aborted||L(n)}catch{}e.signal.aborted||(t=setTimeout(()=>void n(),3e3))};return t=setTimeout(()=>void n(),1500),()=>{e.abort(),clearTimeout(t)}},[I]);function L(e){n(t=>t?.map(t=>t.id===e.source?{...t,lastImport:e}:t)),e.status!==`running`&&y(t=>t?.requestId===e.id?void 0:t)}async function R(e){A.current?.abort();let t=new AbortController;A.current=t,s(e),u(!0),p(void 0),h(new Set),D(``),x(void 0),y(void 0);try{let n=await P(`/sources/${e}/scan`,{},t.signal);t.signal.aborted||(p(n),h(new Set(n.candidates.filter(e=>!e.parentId&&e.suggested).map(e=>e.id))))}catch(e){t.signal.aborted||D(e instanceof Error?e.message:String(e))}}async function z(){if(!f||!m.size||F.current)return;F.current=!0,_(!0),D(``),T(``);let e=v??{inventoryId:f.id,candidateIds:[...m],requestId:crypto.randomUUID(),retryOf:b};y(e);try{L(await P(`/runs`,e)),u(!1)}catch(e){let t=e instanceof Error?e.message:String(e);D(t),T(t);let n=e.body?.code;n&&[`invalid_input`,`inventory_stale`,`invalid_selection`,`missing_parent`,`not_found`,`conflict`].includes(n)&&y(void 0)}finally{F.current=!1,_(!1)}}async function H(e){s(e.source),u(!0),p(void 0),h(new Set),D(``),y(void 0),x(e.id),A.current?.abort();let t=new AbortController;A.current=t;try{let n=await P(`/inventories/${e.inventoryId}`,void 0,t.signal);if(t.signal.aborted)return;let r=new Set(e.items.filter(e=>e.status===`failed`).map(e=>e.candidateId));n.candidates.forEach(e=>{r.has(e.id)&&e.parentId&&r.add(e.parentId)}),p({...n,candidates:n.candidates.filter(e=>r.has(e.id))}),h(r)}catch(e){t.signal.aborted||D(e instanceof Error?e.message:String(e))}}let ee=t?.filter(e=>e.detected||e.lastImport);return(0,B.jsxs)(M,{children:[(0,B.jsx)(j,{title:e.title,subtitle:e.subtitle}),w&&(0,B.jsxs)(`div`,{role:`alert`,className:`rounded-xl bg-danger-soft p-4 text-sm text-danger`,children:[(0,B.jsx)(`p`,{children:w}),!t&&(0,B.jsx)(C,{variant:`ghost`,onClick:()=>k(e=>e+1),children:e.retry})]}),!t&&!w&&(0,B.jsx)(S,{sections:1}),t&&(0,B.jsxs)(`section`,{className:`space-y-4`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-base font-medium text-fg`,children:e.apps}),(0,B.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:e.detectedHint})]}),ee?.length?(0,B.jsx)(`div`,{className:`flex flex-col gap-1 overflow-hidden rounded-xl bg-surface-hover/20 p-1 [&>*]:rounded-lg [&>*]:bg-surface-base/45`,children:ee.map(t=>(0,B.jsxs)(`article`,{className:`space-y-3 p-5 sm:p-6`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsx)(`div`,{"aria-hidden":`true`,className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-surface-hover text-fg`,children:(0,B.jsx)(o,{className:`h-5 w-5`})}),(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`h3`,{className:`font-medium text-fg`,children:t.name}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:e.includes})]}),(0,B.jsx)(C,{variant:`secondary`,disabled:g||!t.detected||!!v&&r!==t.id||t.lastImport?.status===`running`,onClick:()=>{T(``),v&&r===t.id?u(!0):R(t.id)},children:g&&r===t.id?e.importing:v&&r===t.id?e.retry:t.lastImport?e.importAgain:e.import})]}),t.lastImport&&(0,B.jsxs)(`div`,{role:`status`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,B.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(a,{className:`h-4 w-4 shrink-0`}),t.lastImport.status===`running`?e.importing:t.lastImport.issues.length?e.finishedWithIssues:e.finished]}),(0,B.jsxs)(`p`,{children:[e.summary.replace(`{skills}`,String(t.lastImport.skills)).replace(`{context}`,String(t.lastImport.context)).replace(`{projects}`,String(t.lastImport.projects)),t.lastImport.skipped>0&&` · ${e.skipped.replace(`{count}`,String(t.lastImport.skipped))}`]}),!!t.lastImport.issues.length&&(0,B.jsxs)(`details`,{children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer text-fg`,children:[e.details,` (`,t.lastImport.issues.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-2 space-y-2`,children:t.lastImport.issues.map((e,t)=>(0,B.jsxs)(`li`,{className:`break-words`,children:[(0,B.jsx)(`span`,{className:`font-medium`,children:e.name}),` — `,e.reason]},t))})]}),t.lastImport.status===`partial`&&(0,B.jsx)(C,{variant:`ghost`,disabled:g||!!v,onClick:()=>void H(t.lastImport),children:e.retryFailed})]})]},t.id))}):(0,B.jsxs)(`div`,{className:`rounded-xl bg-surface-hover/20 p-6 text-sm text-fg-muted`,children:[(0,B.jsx)(`p`,{children:e.empty}),(0,B.jsx)(C,{variant:`ghost`,className:`mt-3`,onClick:()=>k(e=>e+1),children:e.refresh})]}),(0,B.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:e.footnote}),ee?.some(e=>e.lastImport)&&(0,B.jsxs)(`div`,{className:`flex gap-4 text-sm`,children:[(0,B.jsx)(i,{className:`text-accent`,to:`/capabilities/skills`,children:e.openSkills}),(0,B.jsx)(i,{className:`text-accent`,to:`/projects`,children:e.openProjects}),(0,B.jsx)(i,{className:`text-accent`,to:`/capabilities/connectors`,children:e.connections})]})]}),(0,B.jsx)(V,{open:l,sourceName:t?.find(e=>e.id===r)?.name??``,inventory:f,selected:m,onSelected:h,busy:g,locked:g||!!v,error:E,onClose:()=>{A.current?.abort(),u(!1)},onRefresh:()=>{r&&R(r)},onSubmit:()=>void z()})]})}export{$ as ImportsPage};
|