@xopcai/xopc 0.0.394 → 0.0.396
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/src/plugin.js +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CIpp0ZG6.js → agent-avatar-dicebear-DwTaeL1e.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-D8Q9Cpge.js +1 -0
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-dWqozfQm.js → agent-plugin-dialog-C-UKhDkS.js} +1 -1
- package/dist/gateway/static/root/assets/agents-DOv68iBN.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-B5aykqg_.js → agents-admin-api-BjGOUrAf.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-SmT1HDDg.js → app-management-settings-panel-B1ApwlFh.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Da9jf0ZC.js → appearance-settings-Avd_jVji.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-Da6Ar2U3.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-D6bFXdsA.js → archive-plugin-C26WGbj9.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-CM3wI2Nr.js → automations-page-T3FSuURJ.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-B9r27rPk.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CYKGdQnF.js → binary-plugins-CLaLkM3M.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-Fx38xFF4.js → block-editor-CB4oRyM5.js} +40 -40
- package/dist/gateway/static/root/assets/{browser-automation-inputs-CQMc-Gol.js → browser-automation-inputs-0nkk3bLA.js} +1 -1
- package/dist/gateway/static/root/assets/browser-automations-page-KLG8IXvl.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-Tcejw5fF.js +3 -0
- package/dist/gateway/static/root/assets/{capabilities-pt2M56-E.js → capabilities-CTfLd_UE.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-dreSJEes.js → capabilities-page-BJlw9rhA.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-kEvUR6Yu.js +8 -0
- package/dist/gateway/static/root/assets/{capability-header-actions-AbVbg7kZ.js → capability-header-actions-Br5PchG2.js} +1 -1
- package/dist/gateway/static/root/assets/channels-DRaE6_ub.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-djkqphez.js → chat-terminal-dock-Cl0hAav9.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-B6JI2S1b.js +1 -0
- package/dist/gateway/static/root/assets/{connector-service-page--gB9vL3C.js → connector-service-page-AqsoqTnF.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-cDRZ8bqm.js +1 -0
- package/dist/gateway/static/root/assets/date-picker-CyFehuto.js +1 -0
- package/dist/gateway/static/root/assets/{dependency-picker-Ci0dApIr.js → dependency-picker-Vu_5QGGJ.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-CjaVVJDQ.js → desktop-pet-Dw9k0Z2p.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-C7TFazyr.js → desktop-pet-settings-DKqkhvxu.js} +1 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-4l4ESMon.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BpymM_E_.js → directory-picker-path-field-7svbL2tR.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-CABAv66K.js → extension-debug-page-CFa6PCBV.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-B3dACpKA.js → extension-page-BD4nZ9sf.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-B3bwBvgp.js → extension-settings-page-CxPIMrmn.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-BEePO3Wl.js → gateway-config-swr-Di9g6pE8.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-Dng_VOvI.js → gateway-realtime-2-o7qk92.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-DQ6-whg-.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-Da2CtQ7c.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CDCiy7Cd.js → gateway-startup-retry-BCUswcVy.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-53FJXO9w.js → highlighted-body-KQOG7T2V-DzEeyJpH.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-Cp4-sTfX.js +2 -0
- package/dist/gateway/static/root/assets/{image-generation-api-DWRmAkoe.js → image-generation-api-Zo56ZmKs.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-B0Y8iy6G.js → imports-page-C_PPaOFv.js} +1 -1
- package/dist/gateway/static/root/assets/index-XRbEWVyZ.js +260 -0
- package/dist/gateway/static/root/assets/index-zIgp-ZTu.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CjkACa5H.js → keyboard-shortcuts-settings-BGtrzFT6.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-DROP52YA.js → local-app-workbench-page-Cu80fCA0.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-BELUF7Pg.js → local-apps-page-Zsu8FnwP.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-CYEDUPH7.js → local-session-drafts-BjwlkAKA.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-CE7L6MlS.js → locale-store-Djl2FW6_.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DlIhfEW_.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-CDV-xItG.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-PrKvVpRh.js → markdown-view-DyO7Q0Ms.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-UU3qSAhq.js → media-plugins-Ba1_QMmZ.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-CpK57Kgp.js +1 -0
- package/dist/gateway/static/root/assets/{messages-CaeL_miw.js → messages-DPxcWxfD.js} +2 -2
- package/dist/gateway/static/root/assets/note-detail-panel-BXi6BrXd.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-ClR9R90o.js +8 -0
- package/dist/gateway/static/root/assets/{page-context-capture-button-BD7T7uqR.js → page-context-capture-button-BqNWtf_f.js} +1 -1
- package/dist/gateway/static/root/assets/personal-page-CSF-sn8w.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives--3aGeYJ5.js → preview-open-alternatives-kkbrbiVd.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-B0ZxsnFO.js → product-open-page-Dheqo_4J.js} +1 -1
- package/dist/gateway/static/root/assets/product-preview-content-B9Y6dIuh.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-l5dXxnSq.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-95Od8gLy.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-BO2Ck3aA.js → registry-api-BwR2CiR5.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-DPEpPFax.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-B1sb8nlw.js → runtime-tools-api-C_VOMhLI.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-2BnqCeNt.js → runtime-tools-settings-panel-BjyZGNP3.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-KmnpEBtP.js → schema-form-DelMOLjg.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CaAUJvu1.js → session-api-DbNNQps9.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-DoFTlgNz.js → session-manager-DfVviLTK.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-BN0nMm0w.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BvfEKyfy.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-Db5XOKMH.js → settings-form-section-DNWEDA71.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-aRM6ax6B.js → settings-page-DJ27gC7J.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DCNAcalA.js → setup-status-panel-BWA_puDN.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-DR3Esqa_.js → share-preview-page-Du4mumVM.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-C0ixka9_.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-BJBU8YgD.js → skill-api-zOxHjU7m.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-743oJIiS.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-DBYhEjP9.js +2 -0
- package/dist/gateway/static/root/assets/{style-Df_wL13k.js → style-DsnKw5jo.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-DWnyafB7.js → system-settings-panel-mz9hWo_H.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-Brp2wrEc.js +2 -0
- package/dist/gateway/static/root/assets/{task-expandable-content-DTEVoNrM.js → task-expandable-content-D3i_51Oc.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-vvREqbQ3.js → tracing-settings-page-aC-ziRbY.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-BEzsymVO.js → tunnel-api-Ch2Veztk.js} +1 -1
- package/dist/gateway/static/root/assets/usage-page-KfKZ2a3t.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-Cp4kZ3E-.js → use-autosave-BLW3t_OK.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-BSsT8WjA.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-DH3OdR-w.js → voice-api-key-field-DulF6Cm4.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-D0Wscn9W.js → voice-config-api-Ceo_hqZC.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-CICdfBBR.js → work-discovery-overlay-bBMZM8tN.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-VIJQCUY5.js → workflow-run-setup-panel-CsxXS1WI.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-a-mfjQ2h.js +6 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BTMfgVTk.js → xopc-cloud-account-card-wwIRBFCs.js} +1 -1
- package/dist/gateway/static/root/index.html +15 -15
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +10 -10
- package/dist/src/agent/background-review/run-background-review.js +5 -5
- package/dist/src/agent/context/execution-context.js +3 -3
- package/dist/src/agent/context/project-context.js +3 -3
- package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +2 -2
- package/dist/src/agent/embedded/run-turn.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +1 -1
- package/dist/src/agent/external-tools/composio-provider.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +3 -3
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +1 -1
- package/dist/src/agent/prompt/system-prompt-params.js +1 -1
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +1 -1
- package/dist/src/agent/service.js +9 -9
- package/dist/src/agent/session/session-config-service.js +2 -2
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +2 -2
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +6 -6
- package/dist/src/agent/tools/factory.js +4 -4
- package/dist/src/agent/tools/personal-attention-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +2 -2
- package/dist/src/agent/tools/personal-task-tool.js +6 -6
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +3 -3
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +4 -4
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/oauth/xopc-cloud.js +2 -2
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/capabilities/store-connector.js +2 -2
- package/dist/src/channels/index.js +1 -1
- package/dist/src/channels/manager.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/chat-commands/context.js +1 -1
- package/dist/src/cli/commands/channels.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/skills.js +1 -1
- package/dist/src/computer/flows.js +1 -1
- package/dist/src/config/agent-model-intents.js +1 -1
- package/dist/src/config/index.js +1 -1
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.js +6 -6
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-ingestion.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/extensions/agent-plugins/auth.js +1 -1
- package/dist/src/extensions/agent-plugins/credentials.js +1 -1
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- package/dist/src/extensions/api.js +1 -1
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
- package/dist/src/gateway/hono/routes/config-patch/misc.js +4 -4
- package/dist/src/gateway/hono/routes/context-sources.js +2 -2
- package/dist/src/gateway/hono/routes/memory-learning.js +2 -2
- package/dist/src/gateway/hono/routes/models.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +3 -3
- package/dist/src/gateway/hono/routes/provider-setup.js +7 -0
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +6 -6
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +3 -3
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +1 -1
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service.js +25 -25
- package/dist/src/gateway/session-context-summary.js +4 -4
- package/dist/src/gateway/xopc-cloud-capability-setup.d.ts +4 -0
- package/dist/src/gateway/xopc-cloud-capability-setup.js +90 -26
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/imports/compatibility.js +1 -1
- package/dist/src/imports/inventory.js +3 -3
- package/dist/src/imports/productImport.js +2 -2
- package/dist/src/imports/runtime.js +1 -1
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/memory-learning/source-learning.js +2 -2
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +3 -3
- package/dist/src/personal-agent/capability-service.js +2 -2
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +5 -5
- package/dist/src/personal-agent/prompt-context.js +7 -7
- package/dist/src/personal-agent/reply-composer.js +7 -7
- package/dist/src/personal-agent/request-delivery.js +2 -2
- package/dist/src/personal-agent/request-service.js +6 -6
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/platform/index.js +1 -1
- package/dist/src/projects/index.js +1 -1
- package/dist/src/projects/project-agent-suggestion.js +1 -1
- package/dist/src/projects/project-service.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/providers/setup/engine.js +12 -10
- package/dist/src/providers/setup/voice.js +24 -6
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/session/index.js +1 -1
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/store.js +2 -2
- package/dist/src/share/hosted-session-share.js +2 -2
- package/dist/src/share/session-share-service.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/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +3 -3
- package/dist/src/tasks/task-allocation-service.js +5 -5
- package/dist/src/tasks/task-application-service.js +6 -6
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +2 -2
- package/dist/src/tasks/task-contract-planner.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +5 -5
- package/dist/src/tasks/task-main-update-decision-service.js +3 -3
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-research-result.js +4 -4
- package/dist/src/tasks/task-result-delivery-repository.js +1 -1
- package/dist/src/tasks/task-result-delivery-service.js +2 -2
- package/dist/src/tasks/task-run-coordinator.js +4 -4
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +5 -5
- package/dist/src/tui/tui-commands.js +2 -2
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +3 -3
- package/dist/src/tui/tui.js +1 -1
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +1 -1
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/voice/realtime/memory-context.js +5 -5
- package/dist/src/voice/realtime/runtime.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/service.js +7 -7
- package/dist/src/workflows/context/workflow-context.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +5 -5
- package/package.json +2 -2
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DzkKx0Dv.js +0 -1
- package/dist/gateway/static/root/assets/agents-CXG8SYr5.js +0 -77
- package/dist/gateway/static/root/assets/apps-page-DYaxWrTI.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-BSMdKgxD.js +0 -6
- package/dist/gateway/static/root/assets/browser-automations-page-C4VhFvyu.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-8WZOkfL7.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-settings-panel-9DviVNpG.js +0 -8
- package/dist/gateway/static/root/assets/channels-DqGCiVmr.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-DE9zl7bK.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-Bcr2NNoX.js +0 -1
- package/dist/gateway/static/root/assets/date-picker-D9q-5a8a.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-B6S-RpNJ.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-DtlBf7oH.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CzA1bTXZ.js +0 -1
- package/dist/gateway/static/root/assets/home-page-KRPp-I4O.js +0 -2
- package/dist/gateway/static/root/assets/index-BvAvfZ5R.js +0 -260
- package/dist/gateway/static/root/assets/index-CMRCop32.css +0 -1
- package/dist/gateway/static/root/assets/logs-page-DBm3g8Mu.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-CcsW4Z-r.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-CG664NRI.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-BS9XnQ8a.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-Cfy_WnU-.js +0 -8
- package/dist/gateway/static/root/assets/personal-page-DZEh3dXq.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-CheSHKJq.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-Bm7bVHVo.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-DPA6QL_Z.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-Pxf4EiKh.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-d0anT7iK.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DfDaPyh5.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-CvEwnQch.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DEQ1bdN9.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-BXNFSIIy.js +0 -2
- package/dist/gateway/static/root/assets/task-detail-page-DyHDW8A5.js +0 -2
- package/dist/gateway/static/root/assets/usage-page-ByYOqsHo.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-D0qeCXwD.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-DDYp2Jbo.js +0 -6
|
@@ -6,10 +6,10 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
6
6
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
7
7
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
8
8
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
9
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
10
9
|
import { TaskOriginRepository } from "./task-origin-repository.js";
|
|
11
|
-
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
12
10
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
11
|
+
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
12
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
13
13
|
//#region src/tasks/task-context-assembler.ts
|
|
14
14
|
init_src();
|
|
15
15
|
init_sqlite();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
4
3
|
import { getAgentDefaultChatModelConfig, init_schema } from "../config/schema.js";
|
|
4
|
+
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
5
5
|
import { completeTaskModelCall } from "./task-model-call.js";
|
|
6
6
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
7
7
|
import { PERSONAL_WORKER_RESULT_GUIDANCE } from "../personal-agent/communication.js";
|
|
@@ -4,9 +4,9 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
5
5
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
6
6
|
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
7
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
8
7
|
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
9
8
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
9
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
10
10
|
//#region src/tasks/task-handoff-service.ts
|
|
11
11
|
init_agent_scope();
|
|
12
12
|
init_session_key();
|
|
@@ -8,17 +8,17 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
8
8
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
9
9
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
10
10
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
11
|
-
import {
|
|
11
|
+
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
12
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
12
13
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
13
14
|
import { assertPersonalResultDelegateAccess, readPersonalResult, resolvePersonalResultReference } from "../personal-agent/result-reader.js";
|
|
15
|
+
import { fileSpaceId, parseFileResourceId } from "../files/file-service.js";
|
|
16
|
+
import { NotesStore } from "../notes/store.js";
|
|
17
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
14
18
|
import { buildResultAgentContext } from "../agent/source-context/result-context.js";
|
|
15
19
|
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
16
20
|
import { parseTurnContextRefs } from "../agent/source-context/types.js";
|
|
17
21
|
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
18
|
-
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
19
|
-
import { getProjectForSession } from "../projects/workspace.js";
|
|
20
|
-
import { fileSpaceId, parseFileResourceId } from "../files/file-service.js";
|
|
21
|
-
import { NotesStore } from "../notes/store.js";
|
|
22
22
|
import { basename, isAbsolute, relative, resolve, sep } from "node:path";
|
|
23
23
|
import { constants } from "node:fs";
|
|
24
24
|
import { createHash } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
3
|
-
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
4
|
-
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
5
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
6
3
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
7
4
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
5
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
6
|
+
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
7
|
+
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
8
8
|
//#region src/tasks/task-main-update-decision-service.ts
|
|
9
9
|
init_providers();
|
|
10
10
|
init_task_repository();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { getAssistantMessageErrorReason, isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
4
3
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
5
4
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
5
|
+
import { getAssistantMessageErrorReason, isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
6
6
|
//#region src/tasks/task-model-call.ts
|
|
7
7
|
init_providers();
|
|
8
8
|
init_logger();
|
|
@@ -8,15 +8,15 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
8
8
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../storage/sqlite/session-instance-repository.js";
|
|
9
9
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
10
10
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
11
|
-
import { readMediaReference } from "../media/media-reference.js";
|
|
12
11
|
import { resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
13
|
-
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
14
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
15
12
|
import { extractAssistantText, stripCodeFences } from "../providers/model-response.js";
|
|
13
|
+
import { readMediaReference } from "../media/media-reference.js";
|
|
14
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
16
15
|
import { completeTaskModelCall } from "./task-model-call.js";
|
|
16
|
+
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
17
|
+
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
17
18
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
18
19
|
import { observedEvidenceExcerpt, suggestedEvidenceRanges } from "./task-evidence-ranges.js";
|
|
19
|
-
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
20
20
|
import { createHash } from "node:crypto";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
//#region src/tasks/task-research-result.ts
|
|
@@ -7,8 +7,8 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
7
7
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
8
8
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
9
9
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
10
|
-
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
11
10
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
11
|
+
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
12
12
|
import { hasPersonalResultFileLinks, sanitizePersonalResultFileLinks } from "../personal-agent/result-file-links.js";
|
|
13
13
|
import { taskInstructionSequence } from "./task-research-result.js";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
@@ -7,15 +7,15 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
8
8
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
9
9
|
import { appendTranscriptEntry, init_transcript_repository } from "../storage/sqlite/transcript-repository.js";
|
|
10
|
+
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
10
11
|
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
11
12
|
import { resolveTaskLocale } from "./task-language.js";
|
|
12
13
|
import { tryParseMediaUri } from "../media/uri.js";
|
|
13
14
|
import { resolveMediaBufferPath } from "../media/store.js";
|
|
14
|
-
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
15
15
|
import { warmPersonalResult } from "../personal-agent/result-reader.js";
|
|
16
16
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
17
|
-
import { taskInstructionSequence } from "./task-research-result.js";
|
|
18
17
|
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
18
|
+
import { taskInstructionSequence } from "./task-research-result.js";
|
|
19
19
|
import { recordPersonalPerformance } from "../personal-agent/performance.js";
|
|
20
20
|
import { enqueuePersonalReply } from "../personal-agent/reply-composer.js";
|
|
21
21
|
import { createReadStream } from "node:fs";
|
|
@@ -5,15 +5,15 @@ import { init_request_repository, personalRequestForTask } from "../personal-age
|
|
|
5
5
|
import { loadTranscriptRowsForSession } from "../storage/sqlite/transcript-repository.js";
|
|
6
6
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
7
7
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
8
|
-
import {
|
|
8
|
+
import { isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
9
|
+
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
9
10
|
import { resolveTaskLocale } from "./task-language.js";
|
|
10
11
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
11
12
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
12
|
-
import { isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
13
|
-
import { currentTaskResearchResult, taskInstructionSequence } from "./task-research-result.js";
|
|
14
13
|
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
14
|
+
import { currentTaskResearchResult, taskInstructionSequence } from "./task-research-result.js";
|
|
15
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
15
16
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
16
|
-
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
17
17
|
import { buildResearchRepair, inspectTaskPublications } from "./task-research-repair.js";
|
|
18
18
|
//#region src/tasks/task-run-coordinator.ts
|
|
19
19
|
init_repository();
|
|
@@ -4,9 +4,9 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
5
5
|
import { loadTranscriptRowsForSession } from "../storage/sqlite/transcript-repository.js";
|
|
6
6
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
7
|
+
import { canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
7
8
|
import { resolveTaskLocale } from "./task-language.js";
|
|
8
9
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
9
|
-
import { canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
10
10
|
import { runInIndependentAgentExecution } from "../agent/independent-execution.js";
|
|
11
11
|
//#region src/tasks/task-run-dispatcher.ts
|
|
12
12
|
init_logger();
|
|
@@ -12,14 +12,14 @@ import { normalizeAgentId } from "../../agent-catalog/id.js";
|
|
|
12
12
|
import { init_agent_scope, listAgentEntries } from "../../agent/agent-scope.js";
|
|
13
13
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
14
14
|
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../../routing/agent-session-key.js";
|
|
15
|
-
import { ProjectService } from "../../projects/project-service.js";
|
|
16
|
-
import { init_paths } from "../../config/paths.js";
|
|
17
|
-
import { inferSuggestedProjectDefaultAgentId } from "../../projects/project-agent-suggestion.js";
|
|
18
15
|
import { resolveEffectiveAgentProfile } from "../../config/agent-profile.js";
|
|
19
|
-
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
20
|
-
import "../../projects/index.js";
|
|
21
16
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
17
|
+
import { init_paths } from "../../config/paths.js";
|
|
22
18
|
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
19
|
+
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
20
|
+
import { ProjectService } from "../../projects/project-service.js";
|
|
21
|
+
import { inferSuggestedProjectDefaultAgentId } from "../../projects/project-agent-suggestion.js";
|
|
22
|
+
import "../../projects/index.js";
|
|
23
23
|
import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
24
24
|
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
25
25
|
import { createCreateShareTool, isShareToolAvailable } from "../../agent/tools/create-share-tool.js";
|
|
@@ -3,12 +3,12 @@ import { TaskRepository } from "../tasks/task-repository.js";
|
|
|
3
3
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
5
5
|
import { init_agent_session_key, isValidAgentId, normalizeAgentId } from "../routing/agent-session-key.js";
|
|
6
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
7
6
|
import { resolveConfigPath } from "../config/paths.js";
|
|
7
|
+
import { init_providers, providerSupportsOAuth } from "../providers/index.js";
|
|
8
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
8
9
|
import { isValidProjectAgentId, normalizeProjectAgentId } from "../projects/project-agent.js";
|
|
9
10
|
import { inferSuggestedProjectDefaultAgentId } from "../projects/project-agent-suggestion.js";
|
|
10
11
|
import "../projects/index.js";
|
|
11
|
-
import { init_providers, providerSupportsOAuth } from "../providers/index.js";
|
|
12
12
|
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
13
13
|
import "../tasks/index.js";
|
|
14
14
|
import { normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
|
|
3
|
-
import { loadSkills } from "../agent/skills/index.js";
|
|
4
3
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
4
|
+
import { loadSkills } from "../agent/skills/index.js";
|
|
5
5
|
import { loadConfig } from "../config/loader.js";
|
|
6
6
|
import "../config/index.js";
|
|
7
7
|
//#region src/tui/tui-skills-autocomplete.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
|
-
import { init_paths, resolveAgentProfileDir, resolveBundledSkillsDir } from "../config/paths.js";
|
|
3
|
-
import { createSkillConfigManager, isSkillEnabled } from "../agent/skills/config.js";
|
|
4
|
-
import { loadSkills } from "../agent/skills/index.js";
|
|
5
2
|
import { resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
3
|
+
import { init_paths, resolveAgentProfileDir, resolveBundledSkillsDir } from "../config/paths.js";
|
|
6
4
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
7
5
|
import { resolveBootstrapFilesSync } from "../agent/bootstrap/bootstrap-files.js";
|
|
8
6
|
import { listConnectorInstances } from "../connectors/instances.js";
|
|
7
|
+
import { createSkillConfigManager, isSkillEnabled } from "../agent/skills/config.js";
|
|
8
|
+
import { loadSkills } from "../agent/skills/index.js";
|
|
9
9
|
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
10
10
|
import "../config/index.js";
|
|
11
11
|
import { basename } from "node:path";
|
package/dist/src/tui/tui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { version } from "../../package.js";
|
|
2
2
|
import { resolveStateDir, resolveXopcDatabasePath } from "../config/paths-state.js";
|
|
3
3
|
import { init_agent_session_key, normalizeAgentId } from "../routing/agent-session-key.js";
|
|
4
|
-
import { init_paths } from "../config/paths.js";
|
|
5
4
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
5
|
+
import { init_paths } from "../config/paths.js";
|
|
6
6
|
import { getAllModels, getAllProviders, getApiKey, init_providers, isProviderConfiguredSync } from "../providers/index.js";
|
|
7
7
|
import { ProjectTrustStore, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
8
8
|
import { isTerminalWorkflowRunStatus } from "../workflows/domain/run.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
2
|
-
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
3
|
-
import { init_session_key } from "../routing/session-key.js";
|
|
4
2
|
import { isOwnerIdentity } from "./identity-bindings.js";
|
|
5
3
|
import { init_config, resolveKnowledgeReadPolicy } from "./config.js";
|
|
4
|
+
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
5
|
+
import { init_session_key } from "../routing/session-key.js";
|
|
6
6
|
//#region src/user-context/access-policy.ts
|
|
7
7
|
init_config();
|
|
8
8
|
init_session_key();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCollaborationRule, init_collaboration_rule_repository, listCollaborationRules } from "../storage/sqlite/collaboration-rule-repository.js";
|
|
2
|
+
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals } from "./goals.js";
|
|
2
3
|
import { reconcileAssertion } from "./repository.js";
|
|
3
4
|
import { applyUserProfilePatch } from "./profile.js";
|
|
4
|
-
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals } from "./goals.js";
|
|
5
5
|
//#region src/user-model/bootstrap.ts
|
|
6
6
|
init_collaboration_rule_repository();
|
|
7
7
|
function statements(values, limit) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCollaborationRule, init_collaboration_rule_repository, listCollaborationRules } from "../../storage/sqlite/collaboration-rule-repository.js";
|
|
2
2
|
import { createContextEvidence, init_context_evidence_repository } from "../../storage/sqlite/context-evidence-repository.js";
|
|
3
|
-
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, linkAssertionEvidence, mergeAssertionObservation, reconcileAssertion, setAssertionStatus } from "../repository.js";
|
|
4
3
|
import { createUserGoal, listUserGoals } from "../goals.js";
|
|
4
|
+
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, linkAssertionEvidence, mergeAssertionObservation, reconcileAssertion, setAssertionStatus } from "../repository.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
//#region src/user-model/capture/executor.ts
|
|
7
7
|
init_context_evidence_repository();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PERSONAL_DOMAINS, USER_MODEL_PRINCIPAL_ID, defaultAssertionDomain, defaultAssertionLayer, init_domain, validateCandidate, validateScope } from "./domain.js";
|
|
2
|
+
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals, setUserGoalStatus, updatePriorityWindow, updateUserGoal } from "./goals.js";
|
|
2
3
|
import { defaultReviewAt, isAssertionValidAt, requiresBoundedValidity, resolveCurrentAssertion } from "./temporal.js";
|
|
3
4
|
import { deleteUserAssertion, getActiveAssertionByPredicate, getActiveAssertionForSlot, getAssertionSlot, getUserAssertion, getUserTimezone, linkAssertionEvidence, listSlotAssertions, listUserAssertionSources, listUserAssertions, mergeAssertionObservation, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "./repository.js";
|
|
4
|
-
import { applyUserProfilePatch, getUserProfileSnapshot } from "./profile.js";
|
|
5
5
|
import { listActionRuleSuggestions } from "./action-rule-suggestions.js";
|
|
6
6
|
import { calculateExecutionValue } from "./importance.js";
|
|
7
|
-
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals, setUserGoalStatus, updatePriorityWindow, updateUserGoal } from "./goals.js";
|
|
8
7
|
import { deleteUserModelObservationsForGrant, linkUserAssertions, listUserAssertionEdges, listUserModelObservations, recordUserModelObservation } from "./observation-repository.js";
|
|
8
|
+
import { applyUserProfilePatch, getUserProfileSnapshot } from "./profile.js";
|
|
9
9
|
import { bootstrapUserModel } from "./bootstrap.js";
|
|
10
10
|
import { canUseAssertion, isWorkingAssumption } from "./usage-policy.js";
|
|
11
11
|
//#region src/user-model/index.ts
|
|
@@ -3,17 +3,17 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
5
5
|
import { getSessionConfig, init_config_repository } from "../../storage/sqlite/config-repository.js";
|
|
6
|
-
import {
|
|
6
|
+
import { canUseKnowledge } from "../../knowledge-memory/usage-policy.js";
|
|
7
|
+
import { getKnowledgeItem } from "../../knowledge-memory/repository.js";
|
|
8
|
+
import { init_config, resolveKnowledgeReadPolicy } from "../../user-context/config.js";
|
|
7
9
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
8
10
|
import { getConversation } from "../../routing/agent-session-key.js";
|
|
9
11
|
import { init_session_key } from "../../routing/session-key.js";
|
|
10
|
-
import "../../user-model/index.js";
|
|
11
|
-
import { init_config, resolveKnowledgeReadPolicy } from "../../user-context/config.js";
|
|
12
|
-
import { canUseKnowledge } from "../../knowledge-memory/usage-policy.js";
|
|
13
|
-
import { getKnowledgeItem } from "../../knowledge-memory/repository.js";
|
|
14
12
|
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
15
13
|
import "../../knowledge-memory/index.js";
|
|
16
14
|
import { stripRuntimeContextFromUserMessage } from "../../session/user-message-display.js";
|
|
15
|
+
import { getUserAssertion } from "../../user-model/repository.js";
|
|
16
|
+
import "../../user-model/index.js";
|
|
17
17
|
import { buildExecutionContext } from "../../agent/context/execution-context.js";
|
|
18
18
|
//#region src/voice/realtime/memory-context.ts
|
|
19
19
|
init_config();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_changes, onUserContextChange } from "../../user-context/changes.js";
|
|
4
|
-
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
5
4
|
import { init_model_usage, withModelUsageOrigin } from "../../providers/model-usage.js";
|
|
6
5
|
import { decodeVoiceUplinkAudioFrame, encodeVoiceAudioFrame } from "../../../packages/realtime-protocol/src/voice-audio.js";
|
|
7
6
|
import { VOICE_REALTIME_HEARTBEAT_INTERVAL_MS, VOICE_REALTIME_MAX_BINARY_FRAME_BYTES, VOICE_REALTIME_START_TIMEOUT_MS, VOICE_REALTIME_WS_PATH, init_voice, parseVoiceClientJsonFrame, parseVoiceClientMessage } from "../../../packages/realtime-protocol/src/voice.js";
|
|
8
7
|
import { getModelCatalogStore, init_model_catalog_store } from "../../providers/model-catalog-store.js";
|
|
8
|
+
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
9
9
|
import { getMediaUnderstandingProvider } from "../../media-understanding/registry.js";
|
|
10
10
|
import { resolveSTTProviderChain } from "../stt/factory.js";
|
|
11
11
|
import { mergeSttConfigFromAppConfig } from "../stt/config.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getWorkDiscoveryRun } from "./repository.js";
|
|
2
1
|
import { createUnderstandingSourceRun, listUnderstandingSourceGrants, listUnderstandingSourceRuns, updateUnderstandingSourceRun } from "../user-context/sources/repository.js";
|
|
2
|
+
import { getWorkDiscoveryRun } from "./repository.js";
|
|
3
3
|
import { workDiscoveryFingerprintsEqual } from "./incremental.js";
|
|
4
4
|
//#region src/work-discovery/incremental-repository.ts
|
|
5
5
|
function refreshFromRun(run) {
|
|
@@ -5,19 +5,19 @@ import { createContextEvidence, init_context_evidence_repository } from "../stor
|
|
|
5
5
|
import { ensureSessionRecord, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
6
6
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
7
7
|
import { ActivityService } from "../activity/service.js";
|
|
8
|
-
import {
|
|
8
|
+
import { createUnderstandingSourceRun, getUnderstandingSourceGrant, getUnderstandingSourceRun, updateUnderstandingSourceGrantCheckpoint, updateUnderstandingSourceGrantPolicies, updateUnderstandingSourceRun, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
|
|
9
|
+
import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
9
10
|
import { init_session_key, resolveConversationId } from "../routing/session-key.js";
|
|
10
|
-
import
|
|
11
|
-
import "../user-model/index.js";
|
|
12
|
-
import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
|
|
11
|
+
import "../knowledge-memory/index.js";
|
|
13
12
|
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
14
13
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
15
14
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
16
15
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
17
16
|
import { isLocalModelBaseUrl } from "../providers/model-call.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import "../
|
|
17
|
+
import { createPriorityWindow, createUserGoal } from "../user-model/goals.js";
|
|
18
|
+
import { linkAssertionEvidence, reconcileAssertion } from "../user-model/repository.js";
|
|
19
|
+
import "../user-model/index.js";
|
|
20
|
+
import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
|
|
21
21
|
import { allowsRemoteSourceProcessing } from "../user-context/sources/processing-policy.js";
|
|
22
22
|
import { analyzeUnderstandingSources, analyzeWorkContext, workDiscoveryResultMarkdown } from "./analyzer.js";
|
|
23
23
|
import { clusterActivityTopics } from "../user-context/sources/activity-clustering.js";
|
|
@@ -2,8 +2,8 @@ import { TaskRepository, init_task_repository } from "../../tasks/task-repositor
|
|
|
2
2
|
import { ObjectLinkService } from "../../activity/service.js";
|
|
3
3
|
import "../../activity/index.js";
|
|
4
4
|
import { ProjectService } from "../../projects/project-service.js";
|
|
5
|
-
import { NotesStore } from "../../notes/store.js";
|
|
6
5
|
import { buildNoteAgentContextArtifact } from "../../notes/agent-context.js";
|
|
6
|
+
import { NotesStore } from "../../notes/store.js";
|
|
7
7
|
import { NotesService } from "../../notes/service.js";
|
|
8
8
|
import "../../notes/index.js";
|
|
9
9
|
import { WorkflowContextSnapshotRepository } from "./workflow-context-snapshot-repository.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { TaskRepository, init_task_repository } from "../../tasks/task-repository.js";
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
3
|
-
import { TaskContextRepository } from "../../tasks/task-context-repository.js";
|
|
4
3
|
import { init_conversation_repository, resolveRoutedConversation } from "../../storage/sqlite/conversation-repository.js";
|
|
5
|
-
import { automationEventPublisher, getAutomationEventForRun } from "../../automations/events/event-repository.js";
|
|
6
4
|
import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-route.js";
|
|
7
5
|
import { extractProfileAgentId, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
6
|
+
import { resolveModelSelector } from "../../config/agent-model-intents.js";
|
|
7
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
8
8
|
import { getProjectWorkspacePathForSession } from "../../projects/workspace.js";
|
|
9
9
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
10
|
-
import {
|
|
11
|
-
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
12
|
-
import { resolveModelSelector } from "../../config/agent-model-intents.js";
|
|
10
|
+
import { automationEventPublisher, getAutomationEventForRun } from "../../automations/events/event-repository.js";
|
|
13
11
|
import { isTerminalWorkflowRunStatus } from "../domain/run.js";
|
|
14
12
|
import { validateWorkflowJsonSchema } from "../domain/schema-validation.js";
|
|
15
13
|
import "../domain/index.js";
|
|
14
|
+
import { TaskContextRepository } from "../../tasks/task-context-repository.js";
|
|
15
|
+
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
16
16
|
import { DelegateSubagentRunner } from "../../agent/workflow/subagent-runner.js";
|
|
17
17
|
import { preflightWorkflowConnectors } from "../../connectors/workflow-preflight.js";
|
|
18
18
|
import { CatalogWorkflowDefinitionRegistry } from "../registry/catalog-workflow-definition-registry.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xopcai/xopc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.396",
|
|
4
4
|
"description": "Local-first personal AI with Ada, task delegation, files, projects, workflows, and automations. Use cloud or local models.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
"xlsx": "file:web/vendor/xlsx-0.20.3.tgz",
|
|
171
171
|
"@xopcai/browser-control-contract": "0.1.0",
|
|
172
172
|
"@xopcai/computer-control-contract": "0.1.0",
|
|
173
|
-
"@xopcai/endpoint-tools-client": "0.0.0",
|
|
174
173
|
"@xopcai/endpoint-tools-protocol": "0.0.0",
|
|
174
|
+
"@xopcai/endpoint-tools-client": "0.0.0",
|
|
175
175
|
"@xopcai/gateway-contract": "0.0.0",
|
|
176
176
|
"@xopcai/image-providers": "0.1.0",
|
|
177
177
|
"@xopcai/realtime-client": "0.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{g as i}from"./chunk-KS7C4IRE-B2HK1psj.js";import{t as a}from"./circle-check-C23XjkUj.js";import{t as o}from"./cn-0WouolD0.js";import{c as s,n as c}from"./locale-store-CE7L6MlS.js";import{n as l,r as u}from"./cloud-credits-BMYMiiNn.js";import{i as d}from"./vendor-swr-BIWyz7Rc.js";import{Fn as f,G as ee,In as te,Kl as ne,Lc as p,Sd as m,Uc as h,Vn as g,Xu as _,Yl as v,is as y,ko as re,ls as ie,na as ae,tu as oe,uu as se,v as b}from"./index-BvAvfZ5R.js";import{t as ce}from"./number-input-DDeqHK-G.js";import{n as x,r as S}from"./settings-page-layout-Dx5S-Msc.js";import{n as C,t as w}from"./use-autosave-Cp4kZ3E-.js";var le=n(),T=e(t(),1),E=r(),D=`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg outline-none focus:border-accent focus:ring-2 focus:ring-accent/15`;function O(e){let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:void 0}function ue({draft:e,setDraft:t,zh:n}){let[r,i]=(0,T.useState)(()=>e.runtime.cloudCreditLimitPerRunMicro?l(e.runtime.cloudCreditLimitPerRunMicro):``),[a,o]=(0,T.useState)(!1);return(0,E.jsxs)(`label`,{className:`block text-xs font-medium text-fg-muted`,children:[n?`每次运行的 Cloud 消费上限(Credits)`:`Cloud spend limit per run (Credits)`,(0,E.jsx)(`input`,{type:`text`,inputMode:`decimal`,value:r,"aria-invalid":a,placeholder:n?`不设置额外上限`:`No additional limit`,className:`${D} mt-2`,onChange:n=>{let r=n.target.value;i(r);try{let n=r===``?void 0:u(r);if(n===`0`||n&&n.length>15)throw Error(`Invalid limit`);o(!1),t({...e,runtime:{...e.runtime,cloudCreditLimitPerRunMicro:n}})}catch{o(!0)}},onBlur:()=>{a&&i(e.runtime.cloudCreditLimitPerRunMicro?l(e.runtime.cloudCreditLimitPerRunMicro):``),o(!1)}}),(0,E.jsx)(`span`,{className:`mt-2 block font-normal ${a?`text-danger`:`text-fg-subtle`}`,children:a?n?`请输入大于零、最多四位小数的 Credits。无效输入不会保存。`:`Enter positive Credits with up to four decimals. Invalid input is not saved.`:n?`模型、图片和文件语音调用共享上限;不支持实时语音或 Cloud 电脑控制,不包含运行前后的后台调用。达到上限后停止,调整后需手动继续。`:`Shared by model, image and file audio calls during a run. Does not support realtime voice or Cloud computer use; excludes background calls outside the run. Stops at the limit; continue manually after adjusting it.`})]})}function k(e){let t=(0,le.c)(189),{draft:n,setDraft:r,zh:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={revalidateOnFocus:!1},t[0]=a):a=t[0];let s=d(`agent-defaults-workflows`,b,a),c;t[1]===s.data?c=t[2]:(c=s.data??[],t[1]=s.data,t[2]=c);let l;t[3]===c?l=t[4]:(l=c.map(A),t[3]=c,t[4]=l);let u=l,f=n.workflows.allowed===void 0,te;t[5]!==n||t[6]!==r?(te=(e,t)=>{let i=n.workflows.allowed??[],a=t?[...new Set([...i,e])]:i.filter(t=>t!==e);r({...n,workflows:{...n.workflows,allowed:a}})},t[5]=n,t[6]=r,t[7]=te):te=t[7];let ne=te,p=i?`费用控制`:`Spending control`,m;t[8]===p?m=t[9]:(m=(0,E.jsx)(`h2`,{className:`mb-4 text-base font-semibold text-fg`,children:p}),t[8]=p,t[9]=m);let g;t[10]!==n||t[11]!==r||t[12]!==i?(g=(0,E.jsx)(ue,{draft:n,setDraft:r,zh:i}),t[10]=n,t[11]=r,t[12]=i,t[13]=g):g=t[13];let _;t[14]!==m||t[15]!==g?(_=(0,E.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:[m,g]}),t[14]=m,t[15]=g,t[16]=_):_=t[16];let v=i?`执行与缓存策略`:`Execution and cache policy`,y=i?`轮数:${n.runtime.maxTurns??`默认`} · 超时:${n.runtime.timeoutMs??`默认`} · 缓存:${n.runtime.promptCache?.mode??`默认`} · Codemode:${n.runtime.codemode?.enabled?`开启`:`关闭`}`:`Turns: ${n.runtime.maxTurns??`default`} · Timeout: ${n.runtime.timeoutMs??`default`} · Cache: ${n.runtime.promptCache?.mode??`default`} · Codemode: ${n.runtime.codemode?.enabled?`on`:`off`}`,ae=n.runtime.codemode?.enabled??!1,oe;t[17]!==n||t[18]!==r?(oe=e=>r({...n,runtime:{...n.runtime,codemode:{...n.runtime.codemode,enabled:e.target.checked}}}),t[17]=n,t[18]=r,t[19]=oe):oe=t[19];let se;t[20]!==ae||t[21]!==oe?(se=(0,E.jsx)(`input`,{type:`checkbox`,checked:ae,onChange:oe,className:`mt-1 size-4 accent-[var(--color-accent)]`}),t[20]=ae,t[21]=oe,t[22]=se):se=t[22];let x=i?`Codemode 读取试点`:`Codemode read pilot`,S;t[23]===x?S=t[24]:(S=(0,E.jsx)(`span`,{className:`block text-base font-semibold text-fg`,children:x}),t[23]=x,t[24]=S);let C=i?`允许智能体用脚本组合已授权的读取工具。默认关闭,保留普通工具调用。`:`Let agents combine authorized reads in scripts. Off by default; ordinary tool calls stay available.`,w;t[25]===C?w=t[26]:(w=(0,E.jsx)(`span`,{className:`mt-1 block text-sm text-fg-muted`,children:C}),t[25]=C,t[26]=w);let T;t[27]!==S||t[28]!==w?(T=(0,E.jsxs)(`span`,{children:[S,w]}),t[27]=S,t[28]=w,t[29]=T):T=t[29];let k;t[30]!==se||t[31]!==T?(k=(0,E.jsx)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:(0,E.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-3`,children:[se,T]})}),t[30]=se,t[31]=T,t[32]=k):k=t[32];let j=i?`执行限制`:`Execution limits`,M;t[33]===j?M=t[34]:(M=(0,E.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:j}),t[33]=j,t[34]=M);let de=i?`为所有智能体设置安全上限;留空时使用系统默认值。`:`Set safe upper bounds for every agent. Empty fields use system defaults.`,N;t[35]===de?N=t[36]:(N=(0,E.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:de}),t[35]=de,t[36]=N);let fe=i?`每次运行最多轮数`:`Maximum turns per run`,pe=n.runtime.maxTurns??``,me=i?`系统默认`:`System default`,P;t[37]!==n||t[38]!==r?(P=e=>r({...n,runtime:{...n.runtime,maxTurns:O(e.target.value)}}),t[37]=n,t[38]=r,t[39]=P):P=t[39];let F;t[40]!==pe||t[41]!==me||t[42]!==P?(F=(0,E.jsx)(ce,{allowEmpty:!0,type:`number`,min:1,value:pe,placeholder:me,onChange:P,className:`${D} mt-2`}),t[40]=pe,t[41]=me,t[42]=P,t[43]=F):F=t[43];let I;t[44]!==fe||t[45]!==F?(I=(0,E.jsxs)(`label`,{className:`block text-xs font-medium text-fg-muted`,children:[fe,F]}),t[44]=fe,t[45]=F,t[46]=I):I=t[46];let he=i?`单轮超时(毫秒)`:`Turn timeout (ms)`,ge=n.runtime.timeoutMs??``,_e=i?`系统默认`:`System default`,L;t[47]!==n||t[48]!==r?(L=e=>r({...n,runtime:{...n.runtime,timeoutMs:O(e.target.value)}}),t[47]=n,t[48]=r,t[49]=L):L=t[49];let R;t[50]!==ge||t[51]!==_e||t[52]!==L?(R=(0,E.jsx)(ce,{allowEmpty:!0,type:`number`,min:1,value:ge,placeholder:_e,onChange:L,className:`${D} mt-2`}),t[50]=ge,t[51]=_e,t[52]=L,t[53]=R):R=t[53];let z;t[54]!==he||t[55]!==R?(z=(0,E.jsxs)(`label`,{className:`block text-xs font-medium text-fg-muted`,children:[he,R]}),t[54]=he,t[55]=R,t[56]=z):z=t[56];let B=i?`每轮最多工具失败次数`:`Maximum tool failures per turn`,V=n.runtime.maxToolFailuresPerTurn??``,H=i?`系统默认`:`System default`,U;t[57]!==n||t[58]!==r?(U=e=>r({...n,runtime:{...n.runtime,maxToolFailuresPerTurn:O(e.target.value)}}),t[57]=n,t[58]=r,t[59]=U):U=t[59];let W;t[60]!==V||t[61]!==H||t[62]!==U?(W=(0,E.jsx)(ce,{allowEmpty:!0,type:`number`,min:1,value:V,placeholder:H,onChange:U,className:`${D} mt-2`}),t[60]=V,t[61]=H,t[62]=U,t[63]=W):W=t[63];let G;t[64]!==B||t[65]!==W?(G=(0,E.jsxs)(`label`,{className:`block text-xs font-medium text-fg-muted`,children:[B,W]}),t[64]=B,t[65]=W,t[66]=G):G=t[66];let ve;t[67]!==I||t[68]!==z||t[69]!==G?(ve=(0,E.jsxs)(`div`,{className:`mt-5 grid gap-4 md:grid-cols-3`,children:[I,z,G]}),t[67]=I,t[68]=z,t[69]=G,t[70]=ve):ve=t[70];let K;t[71]!==M||t[72]!==N||t[73]!==ve?(K=(0,E.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:[M,N,ve]}),t[71]=M,t[72]=N,t[73]=ve,t[74]=K):K=t[74];let q=i?`提示词缓存`:`Prompt cache`,J;t[75]===q?J=t[76]:(J=(0,E.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:q}),t[75]=q,t[76]=J);let Y=i?`复用稳定的上下文以降低响应延迟和模型费用。`:`Reuse stable context to reduce latency and model cost.`,X;t[77]===Y?X=t[78]:(X=(0,E.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:Y}),t[77]=Y,t[78]=X);let ye=i?`缓存模式`:`Cache mode`,Z;t[79]===ye?Z=t[80]:(Z=(0,E.jsx)(`span`,{children:ye}),t[79]=ye,t[80]=Z);let be=i?`缓存模式`:`Cache mode`,Q;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(Q=[`auto`,`off`],t[81]=Q):Q=t[81];let $;t[82]!==n||t[83]!==r||t[84]!==i?($=Q.map(e=>(0,E.jsx)(h,{"aria-pressed":n.runtime.promptCache?.mode===e,variant:n.runtime.promptCache?.mode===e?`secondary`:`ghost`,className:`flex-1 py-1.5 text-xs`,onClick:()=>r({...n,runtime:{...n.runtime,promptCache:{mode:e,lifetime:n.runtime.promptCache?.lifetime??`short`}}}),children:e===`auto`?i?`自动`:`Automatic`:i?`关闭`:`Off`},e)),t[82]=n,t[83]=r,t[84]=i,t[85]=$):$=t[85];let xe;t[86]!==be||t[87]!==$?(xe=(0,E.jsx)(re,{className:`mt-1.5 flex rounded-lg bg-surface-panel p-1`,role:`group`,"aria-label":be,children:$}),t[86]=be,t[87]=$,t[88]=xe):xe=t[88];let Se;t[89]!==Z||t[90]!==xe?(Se=(0,E.jsxs)(`div`,{className:`text-xs font-medium text-fg-muted`,children:[Z,xe]}),t[89]=Z,t[90]=xe,t[91]=Se):Se=t[91];let Ce;t[92]!==n||t[93]!==r||t[94]!==i?(Ce=n.runtime.promptCache?.mode===`auto`?(0,E.jsxs)(`div`,{className:`text-xs font-medium text-fg-muted`,children:[(0,E.jsx)(`span`,{children:i?`缓存周期`:`Cache lifetime`}),(0,E.jsx)(re,{className:`mt-1.5 flex rounded-lg bg-surface-panel p-1`,role:`group`,"aria-label":i?`缓存周期`:`Cache lifetime`,children:[`short`,`long`].map(e=>(0,E.jsx)(h,{"aria-pressed":n.runtime.promptCache?.lifetime===e,variant:n.runtime.promptCache?.lifetime===e?`secondary`:`ghost`,className:`flex-1 py-1.5 text-xs`,onClick:()=>r({...n,runtime:{...n.runtime,promptCache:{mode:`auto`,lifetime:e}}}),children:e===`short`?i?`短期`:`Short`:i?`长期`:`Long`},e))})]}):null,t[92]=n,t[93]=r,t[94]=i,t[95]=Ce):Ce=t[95];let we;t[96]!==Se||t[97]!==Ce?(we=(0,E.jsxs)(`div`,{className:`mt-5 grid gap-4 sm:grid-cols-2`,children:[Se,Ce]}),t[96]=Se,t[97]=Ce,t[98]=we):we=t[98];let Te;t[99]!==J||t[100]!==X||t[101]!==we?(Te=(0,E.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:[J,X,we]}),t[99]=J,t[100]=X,t[101]=we,t[102]=Te):Te=t[102];let Ee;t[103]!==y||t[104]!==k||t[105]!==K||t[106]!==Te||t[107]!==v?(Ee=(0,E.jsxs)(ee,{title:v,summary:y,children:[k,K,Te]}),t[103]=y,t[104]=k,t[105]=K,t[106]=Te,t[107]=v,t[108]=Ee):Ee=t[108];let De=i?`工作流`:`Workflows`,Oe;t[109]===De?Oe=t[110]:(Oe=(0,E.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:De}),t[109]=De,t[110]=Oe);let ke=i?`设置默认工作流,并决定智能体可以调用哪些工作流。`:`Set a default workflow and control which workflows agents may invoke.`,Ae;t[111]===ke?Ae=t[112]:(Ae=(0,E.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:ke}),t[111]=ke,t[112]=Ae);let je=i?`默认工作流`:`Default workflow`,Me=n.workflows.default||(i?`未自动绑定工作流`:`No workflow bound automatically`),Ne=i?`默认工作流`:`Default workflow`,Pe;t[113]===Ne?Pe=t[114]:(Pe=(0,E.jsx)(`label`,{className:`block text-xs font-medium text-fg-muted`,children:Ne}),t[113]=Ne,t[114]=Pe);let Fe=n.workflows.default??``,Ie=s.isLoading?i?`正在加载…`:`Loading…`:i?`不设置默认工作流`:`No default workflow`,Le=i?`不设置默认工作流`:`No default workflow`,Re=i?`默认工作流`:`Default workflow`,ze;t[115]!==n||t[116]!==r?(ze=e=>r({...n,workflows:{...n.workflows,default:e||void 0}}),t[115]=n,t[116]=r,t[117]=ze):ze=t[117];let Be;t[118]!==Fe||t[119]!==Ie||t[120]!==Le||t[121]!==Re||t[122]!==ze||t[123]!==u||t[124]!==s.isLoading?(Be=(0,E.jsx)(ie,{value:Fe,options:u,placeholder:Ie,emptyLabel:Le,disabled:s.isLoading,ariaLabel:Re,onChange:ze,triggerClassName:`mt-2`}),t[118]=Fe,t[119]=Ie,t[120]=Le,t[121]=Re,t[122]=ze,t[123]=u,t[124]=s.isLoading,t[125]=Be):Be=t[125];let Ve;t[126]!==Pe||t[127]!==Be?(Ve=(0,E.jsxs)(`div`,{className:`mt-5 max-w-xl`,children:[Pe,Be]}),t[126]=Pe,t[127]=Be,t[128]=Ve):Ve=t[128];let He;t[129]!==je||t[130]!==Me||t[131]!==Ve?(He=(0,E.jsx)(ee,{title:je,summary:Me,children:Ve}),t[129]=je,t[130]=Me,t[131]=Ve,t[132]=He):He=t[132];let Ue;t[133]===s.error?Ue=t[134]:(Ue=s.error?(0,E.jsx)(`p`,{className:`mt-3 text-sm text-red-600`,children:s.error instanceof Error?s.error.message:String(s.error)}):null,t[133]=s.error,t[134]=Ue);let We=i?`允许调用的工作流`:`Allowed workflows`,Ge;t[135]===We?Ge=t[136]:(Ge=(0,E.jsx)(`h3`,{className:`text-sm font-medium text-fg`,children:We}),t[135]=We,t[136]=Ge);let Ke;t[137]!==n||t[138]!==r?(Ke=()=>r({...n,workflows:{...n.workflows,allowed:void 0}}),t[137]=n,t[138]=r,t[139]=Ke):Ke=t[139];let qe=f?`bg-accent-soft shadow-surface`:`hover:bg-surface-hover`,Je;t[140]===qe?Je=t[141]:(Je=o(`rounded-xl bg-surface-base/55 p-4 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,qe),t[140]=qe,t[141]=Je);let Ye=i?`允许全部工作流`:`Allow every workflow`,Xe;t[142]===Ye?Xe=t[143]:(Xe=(0,E.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:Ye}),t[142]=Ye,t[143]=Xe);let Ze=i?`新增工作流也会自动可用。`:`New workflows become available automatically.`,Qe;t[144]===Ze?Qe=t[145]:(Qe=(0,E.jsx)(`span`,{className:`mt-1 block text-xs text-fg-muted`,children:Ze}),t[144]=Ze,t[145]=Qe);let $e;t[146]!==Ke||t[147]!==Je||t[148]!==Xe||t[149]!==Qe?($e=(0,E.jsxs)(`button`,{type:`button`,onClick:Ke,className:Je,children:[Xe,Qe]}),t[146]=Ke,t[147]=Je,t[148]=Xe,t[149]=Qe,t[150]=$e):$e=t[150];let et;t[151]!==n||t[152]!==r?(et=()=>r({...n,workflows:{...n.workflows,allowed:[]}}),t[151]=n,t[152]=r,t[153]=et):et=t[153];let tt=f?`hover:bg-surface-hover`:`bg-accent-soft shadow-surface`,nt;t[154]===tt?nt=t[155]:(nt=o(`rounded-xl bg-surface-base/55 p-4 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,tt),t[154]=tt,t[155]=nt);let rt=i?`只允许选中的工作流`:`Allow selected workflows only`,it;t[156]===rt?it=t[157]:(it=(0,E.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:rt}),t[156]=rt,t[157]=it);let at=i?`未选中的工作流不能被调用。`:`Unselected workflows cannot be invoked.`,ot;t[158]===at?ot=t[159]:(ot=(0,E.jsx)(`span`,{className:`mt-1 block text-xs text-fg-muted`,children:at}),t[158]=at,t[159]=ot);let st;t[160]!==et||t[161]!==nt||t[162]!==it||t[163]!==ot?(st=(0,E.jsxs)(`button`,{type:`button`,onClick:et,className:nt,children:[it,ot]}),t[160]=et,t[161]=nt,t[162]=it,t[163]=ot,t[164]=st):st=t[164];let ct;t[165]!==$e||t[166]!==st?(ct=(0,E.jsxs)(`div`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:[$e,st]}),t[165]=$e,t[166]=st,t[167]=ct):ct=t[167];let lt;t[168]!==f||t[169]!==n.workflows.allowed||t[170]!==ne||t[171]!==s.data||t[172]!==s.isLoading||t[173]!==i?(lt=f?null:(0,E.jsxs)(`div`,{className:`mt-3 flex flex-col gap-1 rounded-xl bg-surface-base/45 p-1 [&>label]:rounded-lg [&>label]:bg-surface-panel/55`,children:[(s.data??[]).map(e=>(0,E.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-surface-hover/60`,children:[(0,E.jsx)(`input`,{type:`checkbox`,checked:n.workflows.allowed?.includes(e.id)??!1,onChange:t=>ne(e.id,t.target.checked),className:`mt-0.5 size-4 accent-[var(--color-accent)]`}),(0,E.jsxs)(`span`,{children:[(0,E.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:e.title||e.name}),e.description?(0,E.jsx)(`span`,{className:`mt-1 block text-xs text-fg-muted`,children:e.description}):null]})]},e.id)),(s.data??[]).length===0&&!s.isLoading?(0,E.jsx)(`p`,{className:`px-4 py-8 text-center text-sm text-fg-muted`,children:i?`还没有工作流。`:`No workflows yet.`}):null]}),t[168]=f,t[169]=n.workflows.allowed,t[170]=ne,t[171]=s.data,t[172]=s.isLoading,t[173]=i,t[174]=lt):lt=t[174];let ut;t[175]!==Ge||t[176]!==ct||t[177]!==lt?(ut=(0,E.jsxs)(`div`,{className:`mt-6 rounded-xl bg-surface-base/45 p-4`,children:[Ge,ct,lt]}),t[175]=Ge,t[176]=ct,t[177]=lt,t[178]=ut):ut=t[178];let dt;t[179]!==Oe||t[180]!==Ae||t[181]!==He||t[182]!==Ue||t[183]!==ut?(dt=(0,E.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:[Oe,Ae,He,Ue,ut]}),t[179]=Oe,t[180]=Ae,t[181]=He,t[182]=Ue,t[183]=ut,t[184]=dt):dt=t[184];let ft;return t[185]!==Ee||t[186]!==_||t[187]!==dt?(ft=(0,E.jsxs)(`div`,{className:`space-y-5`,children:[_,Ee,dt]}),t[185]=Ee,t[186]=_,t[187]=dt,t[188]=ft):ft=t[188],ft}function A(e){return{value:e.id,label:e.title||e.name}}function j(e){return[...new Set(e)].sort()}var M=[{id:`core`,names:[`doc-coauthoring`,`define-task`,`find-skills`,`summarize`],en:`Core`,zh:`核心`},{id:`office`,names:[`doc-coauthoring`,`define-task`,`find-skills`,`summarize`,`docx`,`pdf`,`pptx`,`xlsx`],en:`Office`,zh:`办公成果`},{id:`local-app`,names:[`doc-coauthoring`,`define-task`,`find-skills`,`summarize`,`build-xopc-local-app`,`frontend-design`,`theme-factory`],en:`Local App`,zh:`本地应用`},{id:`developer`,names:[`doc-coauthoring`,`define-task`,`find-skills`,`summarize`,`diagnose`,`github`,`tdd`,`webapp-testing`],en:`Developer`,zh:`开发者`},{id:`desktop-pet`,names:[`doc-coauthoring`,`define-task`,`find-skills`,`summarize`,`hatch-pet`],en:`Desktop Pet`,zh:`桌面宠物`}];function de(e){let t=(0,le.c)(115),{draft:n,setDraft:r,zh:i}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={revalidateOnFocus:!1},t[0]=s):s=t[0];let{data:c,error:l,isLoading:u}=d(`agent-defaults-skills-catalog`,ae,s),[f,ee]=(0,T.useState)(``),te=n.skills.mode===`selected`?n.skills.include:n.skills.exclude;c?.catalog;let ne;if(t[1]!==te||t[2]!==c?.catalog||t[3]!==f){let e=[...c?.catalog??[]],n=new Set(e.map(P));for(let t of te)n.has(t)||e.push({name:t,description:``,enabled:!0});let r=f.trim().toLowerCase();ne=e.filter(e=>!r||`${e.name} ${e.description}`.toLowerCase().includes(r)).sort(me),t[1]=te,t[2]=c?.catalog,t[3]=f,t[4]=ne}else ne=t[4];let p=ne,m;t[5]!==n.skills.exclude||t[6]!==n.skills.include||t[7]!==n.skills.mode?(m=e=>n.skills.mode===`selected`?n.skills.include.includes(e):!n.skills.exclude.includes(e),t[5]=n.skills.exclude,t[6]=n.skills.include,t[7]=n.skills.mode,t[8]=m):m=t[8];let h=m,g;t[9]!==n||t[10]!==r?(g=e=>{if(n.skills.mode===`selected`){let t=n.skills.include.includes(e)?n.skills.include.filter(t=>t!==e):j([...n.skills.include,e]);r({...n,skills:{mode:`selected`,include:t}});return}let t=n.skills.exclude.includes(e)?n.skills.exclude.filter(t=>t!==e):j([...n.skills.exclude,e]);r({...n,skills:{mode:`all-enabled`,exclude:t}})},t[9]=n,t[10]=r,t[11]=g):g=t[11];let v=g,y;t[12]===c?.catalog?y=t[13]:(y=c?.catalog??[],t[12]=c?.catalog,t[13]=y);let re;if(t[14]!==h||t[15]!==y){let e;t[17]===h?e=t[18]:(e=e=>e.enabled&&h(e.name),t[17]=h,t[18]=e),re=y.filter(e),t[14]=h,t[15]=y,t[16]=re}else re=t[16];let ie=re.length,se;t[19]!==c?.catalog||t[20]!==n||t[21]!==r?(se=e=>{let t=new Set((c?.catalog??[]).filter(pe).map(fe));r({...n,skills:{mode:`selected`,include:j(e.filter(e=>t.has(e)))}})},t[19]=c?.catalog,t[20]=n,t[21]=r,t[22]=se):se=t[22];let b=se,ce=i?`技能策略`:`Skill policy`,x;t[23]===ce?x=t[24]:(x=(0,E.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:ce}),t[23]=ce,t[24]=x);let S=i?`决定所有智能体默认可以使用哪些技能。`:`Choose which skills every agent can discover and use by default.`,C;t[25]===S?C=t[26]:(C=(0,E.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:S}),t[25]=S,t[26]=C);let w;t[27]!==n||t[28]!==r?(w=()=>r({...n,skills:{mode:`all-enabled`,exclude:[]}}),t[27]=n,t[28]=r,t[29]=w):w=t[29];let D=n.skills.mode===`all-enabled`?`bg-accent-soft shadow-surface`:`hover:bg-surface-hover`,O;t[30]===D?O=t[31]:(O=o(`flex items-start gap-3 rounded-xl bg-surface-base/55 p-4 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,D),t[30]=D,t[31]=O);let ue;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,E.jsx)(a,{className:`mt-0.5 size-5 shrink-0 text-accent`}),t[32]=ue):ue=t[32];let k=i?`使用所有已启用技能`:`Use every enabled skill`,A;t[33]===k?A=t[34]:(A=(0,E.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:k}),t[33]=k,t[34]=A);let de=i?`适合需要完整目录的高级智能体;新增技能会自动加入。`:`For advanced agents that need the full catalog; newly enabled skills are added automatically.`,F;t[35]===de?F=t[36]:(F=(0,E.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:de}),t[35]=de,t[36]=F);let I;t[37]!==A||t[38]!==F?(I=(0,E.jsxs)(`span`,{children:[A,F]}),t[37]=A,t[38]=F,t[39]=I):I=t[39];let he;t[40]!==w||t[41]!==O||t[42]!==I?(he=(0,E.jsxs)(`button`,{type:`button`,onClick:w,className:O,children:[ue,I]}),t[40]=w,t[41]=O,t[42]=I,t[43]=he):he=t[43];let ge;t[44]!==n||t[45]!==r?(ge=()=>r({...n,skills:{mode:`selected`,include:[]}}),t[44]=n,t[45]=r,t[46]=ge):ge=t[46];let _e=n.skills.mode===`selected`?`bg-accent-soft shadow-surface`:`hover:bg-surface-hover`,L;t[47]===_e?L=t[48]:(L=o(`flex items-start gap-3 rounded-xl bg-surface-base/55 p-4 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,_e),t[47]=_e,t[48]=L);let R;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,E.jsx)(_,{className:`mt-0.5 size-5 shrink-0 text-accent`}),t[49]=R):R=t[49];let z=i?`只使用选中的技能`:`Use selected skills only`,B;t[50]===z?B=t[51]:(B=(0,E.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:z}),t[50]=z,t[51]=B);let V=i?`适合严格受控的环境;新增技能不会自动加入。`:`For tightly controlled environments; new skills are not added automatically.`,H;t[52]===V?H=t[53]:(H=(0,E.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:V}),t[52]=V,t[53]=H);let U;t[54]!==B||t[55]!==H?(U=(0,E.jsxs)(`span`,{children:[B,H]}),t[54]=B,t[55]=H,t[56]=U):U=t[56];let W;t[57]!==ge||t[58]!==L||t[59]!==U?(W=(0,E.jsxs)(`button`,{type:`button`,onClick:ge,className:L,children:[R,U]}),t[57]=ge,t[58]=L,t[59]=U,t[60]=W):W=t[60];let G;t[61]!==he||t[62]!==W?(G=(0,E.jsxs)(`div`,{className:`mt-5 grid gap-3 sm:grid-cols-2`,children:[he,W]}),t[61]=he,t[62]=W,t[63]=G):G=t[63];let ve=i?`能力组合(会替换当前选择)`:`Capability packs (replaces the current selection)`,K;t[64]===ve?K=t[65]:(K=(0,E.jsx)(`p`,{className:`text-xs font-medium text-fg-muted`,children:ve}),t[64]=ve,t[65]=K);let q;t[66]!==b||t[67]!==c||t[68]!==i?(q=M.map(e=>(0,E.jsx)(`button`,{type:`button`,onClick:()=>b(e.names),disabled:!c,className:`rounded-lg border border-edge bg-surface-panel px-3 py-1.5 text-xs font-medium text-fg transition-colors hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-50`,children:i?e.zh:e.en},e.id)),t[66]=b,t[67]=c,t[68]=i,t[69]=q):q=t[69];let J;t[70]===q?J=t[71]:(J=(0,E.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:q}),t[70]=q,t[71]=J);let Y;t[72]!==K||t[73]!==J?(Y=(0,E.jsxs)(`div`,{className:`mt-4`,children:[K,J]}),t[72]=K,t[73]=J,t[74]=Y):Y=t[74];let X;t[75]!==C||t[76]!==G||t[77]!==Y||t[78]!==x?(X=(0,E.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:[x,C,G,Y]}),t[75]=C,t[76]=G,t[77]=Y,t[78]=x,t[79]=X):X=t[79];let ye=n.skills.mode===`selected`?i?`选择可用技能`:`Select available skills`:i?`管理例外`:`Manage exceptions`,Z;t[80]===ye?Z=t[81]:(Z=(0,E.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:ye}),t[80]=ye,t[81]=Z);let be=i?`当前默认可用 ${ie} 个技能。`:`${ie} skills are available by default.`,Q;t[82]===be?Q=t[83]:(Q=(0,E.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:be}),t[82]=be,t[83]=Q);let $;t[84]!==Z||t[85]!==Q?($=(0,E.jsxs)(`div`,{children:[Z,Q]}),t[84]=Z,t[85]=Q,t[86]=$):$=t[86];let xe=i?`搜索技能`:`Search skills`,Se;t[87]===xe?Se=t[88]:(Se=(0,E.jsx)(`span`,{className:`sr-only`,children:xe}),t[87]=xe,t[88]=Se);let Ce;t[89]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,E.jsx)(oe,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-fg-subtle`}),t[89]=Ce):Ce=t[89];let we;t[90]===Symbol.for(`react.memo_cache_sentinel`)?(we=e=>ee(e.target.value),t[90]=we):we=t[90];let Te=i?`搜索技能`:`Search skills`,Ee;t[91]!==f||t[92]!==Te?(Ee=(0,E.jsx)(`input`,{type:`search`,value:f,onChange:we,placeholder:Te,className:`w-full rounded-lg border border-edge bg-surface-panel py-2 pl-9 pr-3 text-sm text-fg outline-none focus:border-accent`}),t[91]=f,t[92]=Te,t[93]=Ee):Ee=t[93];let De;t[94]!==Se||t[95]!==Ee?(De=(0,E.jsxs)(`label`,{className:`relative block w-full sm:w-72`,children:[Se,Ce,Ee]}),t[94]=Se,t[95]=Ee,t[96]=De):De=t[96];let Oe;t[97]!==$||t[98]!==De?(Oe=(0,E.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-3`,children:[$,De]}),t[97]=$,t[98]=De,t[99]=Oe):Oe=t[99];let ke;t[100]===l?ke=t[101]:(ke=l?(0,E.jsx)(`p`,{className:`mt-4 rounded-lg bg-red-500/10 px-3 py-2 text-sm text-red-600`,children:l instanceof Error?l.message:String(l)}):null,t[100]=l,t[101]=ke);let Ae;t[102]!==h||t[103]!==u||t[104]!==p||t[105]!==v||t[106]!==i?(Ae=u?(0,E.jsx)(`div`,{className:`mt-4 space-y-2`,children:[0,1,2,3].map(N)}):(0,E.jsxs)(`div`,{className:`mt-4 flex max-h-[32rem] flex-col gap-1 overflow-y-auto rounded-xl bg-surface-base/45 p-1 [&>label]:rounded-lg [&>label]:bg-surface-panel/55`,children:[p.map(e=>{let t=h(e.name);return(0,E.jsxs)(`label`,{className:o(`flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-surface-hover/60`,!e.enabled&&`cursor-not-allowed opacity-55`),children:[(0,E.jsx)(`input`,{type:`checkbox`,checked:t,disabled:!e.enabled,onChange:()=>v(e.name),className:`mt-0.5 size-4 rounded border-edge accent-[var(--color-accent)]`}),(0,E.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,E.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,E.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:e.name}),e.enabled?null:(0,E.jsx)(`span`,{className:`rounded-full bg-surface-hover px-2 py-0.5 text-[10px] text-fg-muted`,children:i?`全局未启用`:`Disabled globally`})]}),e.description?(0,E.jsx)(`span`,{className:`mt-1 block line-clamp-2 text-xs leading-5 text-fg-muted`,children:e.description}):null]})]},e.name)}),p.length===0?(0,E.jsx)(`p`,{className:`px-4 py-8 text-center text-sm text-fg-muted`,children:i?`没有匹配的技能。`:`No matching skills.`}):null]}),t[102]=h,t[103]=u,t[104]=p,t[105]=v,t[106]=i,t[107]=Ae):Ae=t[107];let je;t[108]!==Oe||t[109]!==ke||t[110]!==Ae?(je=(0,E.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:[Oe,ke,Ae]}),t[108]=Oe,t[109]=ke,t[110]=Ae,t[111]=je):je=t[111];let Me;return t[112]!==X||t[113]!==je?(Me=(0,E.jsxs)(`div`,{className:`space-y-5`,children:[X,je]}),t[112]=X,t[113]=je,t[114]=Me):Me=t[114],Me}function N(e){return(0,E.jsx)(p,{className:`h-14 rounded-xl`},e)}function fe(e){return e.name}function pe(e){return e.enabled}function me(e,t){return e.name.localeCompare(t.name)}function P(e){return e.name}function F(e){let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:void 0}function I(e){let t=(0,le.c)(101),{draft:n,setDraft:r,builtinTools:i,zh:a}=e,s=g(),[c,l]=(0,T.useState)(``),[u,d]=(0,T.useState)(`all`),[f,te]=(0,T.useState)(),p;t[0]===i?p=t[1]:(p=new Map(i.map(_e)),t[0]=i,t[1]=p);let m=p,_;t[2]!==i||t[3]!==n.tools?(_=[...new Set([...i.map(ge),...Object.keys(n.tools)])].filter(he).sort(),t[2]=i,t[3]=n.tools,t[4]=_):_=t[4];let v=_,y;if(t[5]!==v||t[6]!==n.tools){let e;t[8]===n.tools?e=t[9]:(e=e=>(n.tools[e]?.mode??`allow`)===`allow`,t[8]=n.tools,t[9]=e),y=v.filter(e),t[5]=v,t[6]=n.tools,t[7]=y}else y=t[7];let ie=y.length,ae;if(t[10]!==v||t[11]!==n.tools){let e;t[13]===n.tools?e=t[14]:(e=e=>n.tools[e]?.mode===`ask`,t[13]=n.tools,t[14]=e),ae=v.filter(e),t[10]=v,t[11]=n.tools,t[12]=ae}else ae=t[12];let se=ae.length,b;if(t[15]!==v||t[16]!==n.tools){let e;t[18]===n.tools?e=t[19]:(e=e=>n.tools[e]?.mode===`deny`,t[18]=n.tools,t[19]=e),b=v.filter(e),t[15]=v,t[16]=n.tools,t[17]=b}else b=t[17];let x;t[20]!==y.length||t[21]!==ae.length||t[22]!==b.length?(x={allow:ie,ask:se,deny:b.length},t[20]=y.length,t[21]=ae.length,t[22]=b.length,t[23]=x):x=t[23];let S=x,C;if(t[24]!==v||t[25]!==m||t[26]!==n.tools||t[27]!==u||t[28]!==c){let e=c.trim().toLowerCase();C=v.filter(t=>{let r=n.tools[t]?.mode??`allow`,i=m.get(t),a=`${t} ${i?.en??``} ${i?.zh??``}`.toLowerCase();return(!e||a.includes(e))&&(u===`all`||r===u)}),t[24]=v,t[25]=m,t[26]=n.tools,t[27]=u,t[28]=c,t[29]=C}else C=t[29];let w=C,D;t[30]!==n||t[31]!==r?(D=(e,t)=>{let i=n.tools[e]??{mode:`allow`};r({...n,tools:{...n.tools,[e]:{...i,...t}}})},t[30]=n,t[31]=r,t[32]=D):D=t[32];let O=D,ue=a?`全部 ${v.length}`:`All ${v.length}`,k;t[33]===ue?k=t[34]:(k={id:`all`,label:ue},t[33]=ue,t[34]=k);let A=a?`允许 ${S.allow}`:`Allow ${S.allow}`,j;t[35]===A?j=t[36]:(j={id:`allow`,label:A},t[35]=A,t[36]=j);let M=a?`询问 ${S.ask}`:`Ask ${S.ask}`,de;t[37]===M?de=t[38]:(de={id:`ask`,label:M},t[37]=M,t[38]=de);let N=a?`禁用 ${S.deny}`:`Deny ${S.deny}`,fe;t[39]===N?fe=t[40]:(fe={id:`deny`,label:N},t[39]=N,t[40]=fe);let pe;t[41]!==k||t[42]!==j||t[43]!==de||t[44]!==fe?(pe=[k,j,de,fe],t[41]=k,t[42]=j,t[43]=de,t[44]=fe,t[45]=pe):pe=t[45];let me=pe,P=a?`默认工具权限`:`Default tool permissions`,I;t[46]===P?I=t[47]:(I=(0,E.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:P}),t[46]=P,t[47]=I);let L=a?`允许:直接执行;询问:执行前确认;禁用:智能体无法使用。`:`Allow runs directly, Ask requires confirmation, and Deny makes the tool unavailable.`,R;t[48]===L?R=t[49]:(R=(0,E.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:L}),t[48]=L,t[49]=R);let z;t[50]!==I||t[51]!==R?(z=(0,E.jsxs)(`div`,{children:[I,R]}),t[50]=I,t[51]=R,t[52]=z):z=t[52];let B=a?`工具筛选`:`Tool filter`,V;t[53]!==u||t[54]!==me?(V=me.map(e=>(0,E.jsx)(`button`,{"aria-pressed":u===e.id,type:`button`,onClick:()=>d(e.id),className:o(`rounded-lg px-3 py-1.5 text-xs font-medium`,u===e.id?`bg-surface-base text-fg shadow-surface`:`text-fg-muted hover:text-fg`),children:e.label},e.id)),t[53]=u,t[54]=me,t[55]=V):V=t[55];let H;t[56]!==B||t[57]!==V?(H=(0,E.jsx)(re,{className:`flex flex-wrap gap-1 rounded-xl bg-surface-panel p-1`,role:`group`,"aria-label":B,indicatorClassName:`rounded-lg bg-surface-base shadow-surface`,children:V}),t[56]=B,t[57]=V,t[58]=H):H=t[58];let U=a?`搜索工具`:`Search tools`,W;t[59]===U?W=t[60]:(W=(0,E.jsx)(`span`,{className:`sr-only`,children:U}),t[59]=U,t[60]=W);let G;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,E.jsx)(oe,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-fg-subtle`}),t[61]=G):G=t[61];let ve;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(ve=e=>l(e.target.value),t[62]=ve):ve=t[62];let K=a?`搜索工具`:`Search tools`,q;t[63]!==c||t[64]!==K?(q=(0,E.jsx)(`input`,{type:`search`,value:c,onChange:ve,placeholder:K,className:`w-full rounded-lg border border-edge bg-surface-panel py-2 pl-9 pr-3 text-sm text-fg outline-none focus:border-accent`}),t[63]=c,t[64]=K,t[65]=q):q=t[65];let J;t[66]!==W||t[67]!==q?(J=(0,E.jsxs)(`label`,{className:`relative block w-full sm:w-72`,children:[W,G,q]}),t[66]=W,t[67]=q,t[68]=J):J=t[68];let Y;t[69]!==H||t[70]!==J?(Y=(0,E.jsxs)(`div`,{className:`mt-5 flex flex-wrap items-center justify-between gap-3`,children:[H,J]}),t[69]=H,t[70]=J,t[71]=Y):Y=t[71];let X=a?`工具调用限制`:`Tool call limits`,ye=a?`每个工具的调用次数和超时限制继续生效;授权可在下方直接修改。`:`Call and timeout limits remain active; edit permissions below.`,Z;t[72]!==X||t[73]!==ye?(Z=(0,E.jsx)(ee,{title:X,summary:ye,children:null}),t[72]=X,t[73]=ye,t[74]=Z):Z=t[74];let be;if(t[75]!==m||t[76]!==n.tools||t[77]!==f||t[78]!==s||t[79]!==O||t[80]!==w||t[81]!==a){let e;t[83]!==m||t[84]!==n.tools||t[85]!==f||t[86]!==s||t[87]!==O||t[88]!==a?(e=e=>{let t=n.tools[e]??{mode:`allow`},r=m.get(e),i=f===e;return(0,E.jsxs)(`div`,{className:`px-4 py-3`,children:[(0,E.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,E.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,E.jsx)(`code`,{className:`text-xs font-medium text-fg`,children:e}),r?(0,E.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:a?r.zh:r.en}):null]}),(0,E.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,E.jsx)(re,{className:`flex rounded-lg bg-surface-base p-1`,role:`group`,"aria-label":e,indicatorClassName:`rounded-md bg-accent`,children:[`allow`,`ask`,`deny`].map(n=>(0,E.jsx)(`button`,{"aria-pressed":t.mode===n,type:`button`,onClick:()=>O(e,{mode:n}),className:o(`rounded-md px-2.5 py-1 text-xs font-medium capitalize`,t.mode===n?`bg-accent text-on-accent`:`text-fg-muted hover:text-fg`),children:n===`allow`?a?`允许`:`Allow`:n===`ask`?a?`询问`:`Ask`:a?`禁用`:`Deny`},n))}),s?(0,E.jsx)(h,{variant:`ghost`,className:`px-2 py-1`,"aria-label":a?`${e} 调用限制`:`${e} call limits`,onClick:()=>te(i?void 0:e),children:(0,E.jsx)(ne,{className:`size-4`})}):null]})]}),i&&s?(0,E.jsxs)(`div`,{className:`mt-3 grid gap-3 rounded-lg bg-surface-base p-3 sm:grid-cols-2`,children:[(0,E.jsxs)(`label`,{className:`block text-xs font-medium text-fg-muted`,children:[a?`每轮最多调用次数`:`Maximum calls per turn`,(0,E.jsx)(ce,{allowEmpty:!0,type:`number`,min:1,value:t.maxCallsPerTurn??``,placeholder:a?`不限制`:`Unlimited`,onChange:t=>O(e,{maxCallsPerTurn:F(t.target.value)}),className:`mt-2 w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg outline-none focus:border-accent`})]}),(0,E.jsxs)(`label`,{className:`block text-xs font-medium text-fg-muted`,children:[a?`单次超时(毫秒)`:`Call timeout (ms)`,(0,E.jsx)(ce,{allowEmpty:!0,type:`number`,min:1,value:t.timeoutMs??``,placeholder:a?`使用系统默认值`:`Use system default`,onChange:t=>O(e,{timeoutMs:F(t.target.value)}),className:`mt-2 w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg outline-none focus:border-accent`})]})]}):null]},e)},t[83]=m,t[84]=n.tools,t[85]=f,t[86]=s,t[87]=O,t[88]=a,t[89]=e):e=t[89],be=w.map(e),t[75]=m,t[76]=n.tools,t[77]=f,t[78]=s,t[79]=O,t[80]=w,t[81]=a,t[82]=be}else be=t[82];let Q;t[90]!==w.length||t[91]!==a?(Q=w.length===0?(0,E.jsx)(`p`,{className:`px-4 py-10 text-center text-sm text-fg-muted`,children:a?`没有匹配的工具。`:`No matching tools.`}):null,t[90]=w.length,t[91]=a,t[92]=Q):Q=t[92];let $;t[93]!==be||t[94]!==Q?($=(0,E.jsxs)(`div`,{className:`mt-4 flex max-h-[38rem] flex-col gap-1 overflow-y-auto rounded-xl bg-surface-base/45 p-1 [&>*]:rounded-lg [&>*]:bg-surface-panel/55`,children:[be,Q]}),t[93]=be,t[94]=Q,t[95]=$):$=t[95];let xe;return t[96]!==z||t[97]!==Y||t[98]!==Z||t[99]!==$?(xe=(0,E.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 p-5`,children:[z,Y,Z,$]}),t[96]=z,t[97]=Y,t[98]=Z,t[99]=$,t[100]=xe):xe=t[100],xe}function he(e){return e!==`computer_use`||y()}function ge(e){return e.id}function _e(e){return[e.id,e.description]}function L(){let e=(0,le.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsxs)(S,{gap:`gap-5`,children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(p,{className:`h-7 w-56`}),(0,E.jsx)(p,{className:`h-4 w-96 max-w-full`})]}),(0,E.jsx)(p,{className:`h-9 w-28`})]}),(0,E.jsx)(p,{className:`h-20 rounded-2xl`}),(0,E.jsx)(p,{className:`h-12 rounded-xl`}),(0,E.jsx)(p,{className:`h-72 rounded-2xl`})]}),e[0]=t):t=e[0],t}function R(e){let t=(0,le.c)(65),{initial:n,builtinTools:r,zh:a}=e,[s,c]=i(),l;t[0]===s?l=t[1]:(l=s.get(`panel`),t[0]=s,t[1]=l);let u=l,d=u===`skills`||u===`tools`||u===`runtime`?u:`skills`,ee;t[2]!==s||t[3]!==c?(ee=e=>{let t=new URLSearchParams(s);t.set(`panel`,e),c(t,{replace:!0})},t[2]=s,t[3]=c,t[4]=ee):ee=t[4];let ne=ee,p;t[5]===n?p=t[6]:(p=()=>structuredClone(n),t[5]=n,t[6]=p);let[g,_]=(0,T.useState)(p),y;t[7]===n?y=t[8]:(y=()=>structuredClone(n),t[7]=n,t[8]=y);let[ie,ae]=(0,T.useState)(y),oe;t[9]===g?oe=t[10]:(oe=JSON.stringify(g),t[9]=g,t[10]=oe);let b;t[11]===ie?b=t[12]:(b=JSON.stringify(ie),t[11]=ie,t[12]=b);let ce=oe!==b,D=a?`技能`:`Skills`,O;t[13]===D?O=t[14]:(O={id:`skills`,label:D,icon:se},t[13]=D,t[14]=O);let ue=a?`工具`:`Tools`,A;t[15]===ue?A=t[16]:(A={id:`tools`,label:ue,icon:v},t[15]=ue,t[16]=A);let j=a?`运行`:`Runtime`,M;t[17]===j?M=t[18]:(M={id:`runtime`,label:j,icon:m},t[17]=j,t[18]=M);let N;t[19]!==A||t[20]!==M||t[21]!==O?(N=[O,A,M],t[19]=A,t[20]=M,t[21]=O,t[22]=N):N=t[22];let fe=N,pe;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(pe=async e=>{let t=structuredClone(e),n=await f(),r=await te({...t,models:n.defaults.models},{scope:`agent`}),i=structuredClone(r.defaults);_(e=>JSON.stringify(e)===JSON.stringify(t)?i:e),ae(structuredClone(i))},t[23]=pe):pe=t[23];let me=pe,P;t[24]!==ce||t[25]!==g?(P={value:g,dirty:ce,onSave:me,delayMs:0},t[24]=ce,t[25]=g,t[26]=P):P=t[26];let F=w(P),he=F.onBlurCapture,ge=a?`智能体设置`:`Agent settings`,_e;t[27]!==F.error||t[28]!==F.status?(_e=(0,E.jsx)(C,{status:F.status,error:F.error}),t[27]=F.error,t[28]=F.status,t[29]=_e):_e=t[29];let L;t[30]!==ge||t[31]!==_e?(L=(0,E.jsx)(x,{title:ge,actions:_e}),t[30]=ge,t[31]=_e,t[32]=L):L=t[32];let R;t[33]!==F.error||t[34]!==F.retry||t[35]!==a?(R=F.error?(0,E.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2 rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600`,children:[(0,E.jsx)(`span`,{children:F.error}),(0,E.jsx)(h,{type:`button`,variant:`ghost`,className:`h-8 text-red-600`,onClick:F.retry,children:a?`重试`:`Retry`})]}):null,t[33]=F.error,t[34]=F.retry,t[35]=a,t[36]=R):R=t[36];let z=a?`默认配置分区`:`Default configuration sections`,B;t[37]!==d||t[38]!==ne||t[39]!==fe?(B=fe.map(e=>{let{id:t,label:n,icon:r}=e;return(0,E.jsxs)(`button`,{type:`button`,"aria-pressed":d===t,onClick:()=>ne(t),className:o(`flex min-w-0 items-center justify-center gap-2 rounded-lg px-3 py-2.5 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,d===t?`bg-surface-base text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover hover:text-fg`),children:[(0,E.jsx)(r,{className:o(`size-4 shrink-0`,d===t?`text-accent`:`text-fg-subtle`)}),(0,E.jsx)(`span`,{className:`text-sm font-medium`,children:n})]},t)}),t[37]=d,t[38]=ne,t[39]=fe,t[40]=B):B=t[40];let V;t[41]!==z||t[42]!==B?(V=(0,E.jsx)(re,{as:`nav`,className:`grid grid-cols-3 gap-1 rounded-xl bg-surface-hover/20 p-1`,"aria-label":z,indicatorClassName:`rounded-lg bg-surface-base shadow-surface`,children:B}),t[41]=z,t[42]=B,t[43]=V):V=t[43];let H;t[44]!==d||t[45]!==g||t[46]!==a?(H=d===`skills`?(0,E.jsx)(de,{draft:g,setDraft:_,zh:a}):null,t[44]=d,t[45]=g,t[46]=a,t[47]=H):H=t[47];let U;t[48]!==d||t[49]!==r||t[50]!==g||t[51]!==a?(U=d===`tools`?(0,E.jsx)(I,{draft:g,setDraft:_,builtinTools:r,zh:a}):null,t[48]=d,t[49]=r,t[50]=g,t[51]=a,t[52]=U):U=t[52];let W;t[53]!==d||t[54]!==g||t[55]!==a?(W=d===`runtime`?(0,E.jsx)(k,{draft:g,setDraft:_,zh:a}):null,t[53]=d,t[54]=g,t[55]=a,t[56]=W):W=t[56];let G;return t[57]!==F.onBlurCapture||t[58]!==L||t[59]!==R||t[60]!==V||t[61]!==H||t[62]!==U||t[63]!==W?(G=(0,E.jsxs)(S,{gap:`gap-5`,onBlurCapture:he,children:[L,R,V,H,U,W]}),t[57]=F.onBlurCapture,t[58]=L,t[59]=R,t[60]=V,t[61]=H,t[62]=U,t[63]=W,t[64]=G):G=t[64],G}function z(){let e=(0,le.c)(17),t=s(V),n=c(B)===`zh`,{data:r,error:i,isLoading:a,mutate:o}=d(t?`settings-agent-defaults`:null,f);if(!t){let t=n?`需要本机服务令牌。`:`Local service token required.`,r;return e[0]===t?r=e[1]:(r=(0,E.jsx)(S,{children:(0,E.jsx)(`p`,{className:`text-sm text-fg-muted`,children:t})}),e[0]=t,e[1]=r),r}if(i&&!r){let t=String(i),r;e[2]===t?r=e[3]:(r=(0,E.jsx)(`p`,{className:`rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600`,children:t}),e[2]=t,e[3]=r);let a;e[4]===o?a=e[5]:(a=()=>void o(),e[4]=o,e[5]=a);let s=n?`重试`:`Retry`,c;e[6]!==a||e[7]!==s?(c=(0,E.jsx)(h,{onClick:a,children:s}),e[6]=a,e[7]=s,e[8]=c):c=e[8];let l;return e[9]!==r||e[10]!==c?(l=(0,E.jsxs)(S,{children:[r,c]}),e[9]=r,e[10]=c,e[11]=l):l=e[11],l}if(a||!r){let t;return e[12]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsx)(L,{}),e[12]=t):t=e[12],t}let l;return e[13]!==r.builtinTools||e[14]!==r.defaults||e[15]!==n?(l=(0,E.jsx)(R,{initial:r.defaults,builtinTools:r.builtinTools,zh:n}),e[13]=r.builtinTools,e[14]=r.defaults,e[15]=n,e[16]=l):l=e[16],l}function B(e){return e.language}function V(e){return e.conversationId}export{z as AgentDefaultsSettingsPanel};
|