@xopcai/xopc 0.0.391 → 0.0.393
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/dist/sidepanel.js +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CzS0TUv9.js → agent-avatar-dicebear-1AF2KGju.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CPJr7NRR.js +1 -0
- package/dist/gateway/static/root/assets/agent-plugin-dialog-cjJXJj_3.js +1 -0
- package/dist/gateway/static/root/assets/agents-DW3TlnIg.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-Bb3Kvz3X.js → agents-admin-api-B5aykqg_.js} +1 -1
- package/dist/gateway/static/root/assets/app-link-BV_eGr7l.js +1 -0
- package/dist/gateway/static/root/assets/app-management-settings-panel-B_MFhXXU.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-TYGidVnd.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-DOkyvOF0.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-DFnHPNie.js → archive-plugin-BrFfEp0u.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-CnBLPVNh.js → automations-page-B7OofUPF.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-DIod-bfm.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-BQC0Tzoi.js → binary-plugins-BfAWnYG8.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DSh5019z.js → block-editor-_Y-QwZ-3.js} +5 -5
- package/dist/gateway/static/root/assets/browser-automation-inputs-DH9QHI9m.js +1 -0
- package/dist/gateway/static/root/assets/browser-automations-page-B_SnD9B0.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-BPlqYpMM.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-page-BtzZvMIK.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-pt2M56-E.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-WzoG3oBb.js +8 -0
- package/dist/gateway/static/root/assets/capability-header-actions-CFVx3iaZ.js +1 -0
- package/dist/gateway/static/root/assets/channels-BXA55GY2.js +1 -0
- package/dist/gateway/static/root/assets/chat-terminal-dock-D3GuiG3N.js +36 -0
- package/dist/gateway/static/root/assets/{chunk-KS7C4IRE--EKdQGRF.js → chunk-KS7C4IRE-B2HK1psj.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-CIbHDlp8.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-CDyCHkpK.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-DA2b6cJu.js +1 -0
- package/dist/gateway/static/root/assets/date-picker-C424c_g9.js +1 -0
- package/dist/gateway/static/root/assets/dependency-picker-BVJh9sYc.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-Q52A8vjp.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-settings-CZr1CXxu.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-sprite-Bd-aOI7N.js +30 -0
- package/dist/gateway/static/root/assets/desktop-pet-sprite-BuB0g8zv.css +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-D_WWTsze.js +1 -0
- package/dist/gateway/static/root/assets/directory-picker-path-field-C6cUgrvg.js +1 -0
- package/dist/gateway/static/root/assets/echarts-runtime-tcHc9TOS.js +18 -0
- package/dist/gateway/static/root/assets/extension-debug-page-DyyfC4gA.js +1 -0
- package/dist/gateway/static/root/assets/extension-page-Dho9o3ZZ.js +1 -0
- package/dist/gateway/static/root/assets/extension-settings-page-CdnIGyCH.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-Dv_A5FMu.js → gateway-config-swr-BEePO3Wl.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DghCGfY_.js → gateway-realtime-Dng_VOvI.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-DtlBf7oH.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-D0KSQRNZ.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CkTVSESs.js → gateway-startup-retry-CDCiy7Cd.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-DV2wNqBn.js → highlighted-body-KQOG7T2V-BNpj_mIM.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-CH_A0W29.js +2 -0
- package/dist/gateway/static/root/assets/image-generation-api-DwkO2y46.js +1 -0
- package/dist/gateway/static/root/assets/imports-page-BrYvomnU.js +1 -0
- package/dist/gateway/static/root/assets/index-CKdOZoVu.js +260 -0
- package/dist/gateway/static/root/assets/index-Rxjt-jc3.css +1 -0
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-BveDYfYk.js +1 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-CcIi1BhT.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-page-B1a69mlV.js +1 -0
- package/dist/gateway/static/root/assets/local-session-drafts-CYEDUPH7.js +1 -0
- package/dist/gateway/static/root/assets/{locale-store-BpK9AiDq.js → locale-store-CE7L6MlS.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-Us1jv3C4.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-C9RAM7-s.js +1 -0
- package/dist/gateway/static/root/assets/markdown-view-PrKvVpRh.js +324 -0
- package/dist/gateway/static/root/assets/{media-plugins-oSChWbcP.js → media-plugins-CR1fp6IL.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-DQdcaMiu.js +1 -0
- package/dist/gateway/static/root/assets/messages-CaeL_miw.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-Q4yRx9iZ.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-C9qu16IN.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-Cn_WK68Y.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-DrP6hEcg.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-3NbiWGRG.js +1 -0
- package/dist/gateway/static/root/assets/product-delivery-DwmnNJvk.js +1 -0
- package/dist/gateway/static/root/assets/product-open-page-KKE5-V8k.js +1 -0
- package/dist/gateway/static/root/assets/product-preview-content-BM0oqNxi.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-CPZrwf8n.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-Besfx_07.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-Dsa2LvRt.js → registry-api-BO2Ck3aA.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CTDghL5L.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-C2Uw89eY.js → runtime-tools-api-B1sb8nlw.js} +1 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-W0X_Fy7b.js +1 -0
- package/dist/gateway/static/root/assets/schema-form-DNM2Zdyr.js +1 -0
- package/dist/gateway/static/root/assets/{session-api-ga-SUOq_.js → session-api-CaAUJvu1.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-DoFTlgNz.js +16 -0
- package/dist/gateway/static/root/assets/sessions-page-Dxtablvd.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-C7zklouD.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-section-DCSHPFAN.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-DPCgrICd.js → settings-page-B18UbbaJ.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-JoSfluza.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-BLnS3hoH.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-DcIuPJK3.js +1 -0
- package/dist/gateway/static/root/assets/skill-api-CcYGkRPL.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-PnUZjoPK.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-D3JAw62U.js +2 -0
- package/dist/gateway/static/root/assets/style-BQqU-1pP.js +7 -0
- package/dist/gateway/static/root/assets/system-settings-panel-C974myUM.js +1 -0
- package/dist/gateway/static/root/assets/tab-completion-input-CxtEp0aP.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-CiljFekC.js +2 -0
- package/dist/gateway/static/root/assets/{task-expandable-content-DAZGz5YC.js → task-expandable-content-DTEVoNrM.js} +1 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-DEE75MUn.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-DWyI3uA3.js +1 -0
- package/dist/gateway/static/root/assets/usage-page-DJYvbxk7.js +1 -0
- package/dist/gateway/static/root/assets/use-autosave-CY0YuljR.js +1 -0
- package/dist/gateway/static/root/assets/user-model-page-eHZJD6Fw.js +2 -0
- package/dist/gateway/static/root/assets/voice-api-key-field-BNG4ixJE.js +1 -0
- package/dist/gateway/static/root/assets/{voice-config-api-Dl39b27p.js → voice-config-api-D0Wscn9W.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-CohIoAre.js +1 -0
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-BXI8eyYh.js +3 -0
- package/dist/gateway/static/root/assets/workflows-page-CVti0u-l.js +6 -0
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-C_COnY_B.js +1 -0
- package/dist/gateway/static/root/index.html +22 -72
- package/dist/gateway/static/root/notification-sw.js +0 -15
- package/dist/package.js +1 -1
- package/dist/packages/computer-control-contract/src/index.js +8 -0
- package/dist/packages/gateway-contract/src/app-context.js +0 -1
- package/dist/packages/gateway-contract/src/capabilities.js +2 -249
- package/dist/packages/gateway-contract/src/home.js +0 -5
- package/dist/packages/gateway-contract/src/index.js +0 -4
- package/dist/packages/gateway-contract/src/notifications.js +0 -11
- package/dist/packages/gateway-contract/src/product-delivery.js +0 -2
- package/dist/src/agent/agent-instance-gateway.d.ts +2 -0
- package/dist/src/agent/agent-manager.d.ts +1 -3
- package/dist/src/agent/agent-manager.js +8 -18
- package/dist/src/agent/child-agent-factory.d.ts +2 -1
- package/dist/src/agent/child-agent-factory.js +2 -1
- package/dist/src/agent/coding/projectEvidence.d.ts +9 -0
- package/dist/src/agent/coding/projectEvidence.js +177 -0
- package/dist/src/agent/coding/repository-instructions.d.ts +8 -1
- package/dist/src/agent/coding/repository-instructions.js +9 -4
- package/dist/src/agent/coding/run-verification.d.ts +17 -2
- package/dist/src/agent/coding/run-verification.js +82 -12
- package/dist/src/agent/coding/workspace-revision.js +1 -1
- package/dist/src/agent/embedded/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/execution-context.d.ts +1 -0
- package/dist/src/agent/embedded/execution-context.js +4 -1
- package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +1 -0
- package/dist/src/agent/embedded/run-turn.js +41 -5
- package/dist/src/agent/embedded/session-runner.js +1 -1
- package/dist/src/agent/embedded/session-tool-result-guard.js +5 -0
- package/dist/src/agent/embedded/types.d.ts +2 -0
- package/dist/src/agent/embedded/xopc-tools-bridge.js +2 -1
- package/dist/src/agent/external-tools/extension-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/memory-provider.js +1 -1
- package/dist/src/agent/independent-execution.d.ts +2 -0
- package/dist/src/agent/independent-execution.js +12 -0
- package/dist/src/agent/mcp/connection-drafts.js +15 -10
- package/dist/src/agent/memory/compaction.js +1 -1
- package/dist/src/agent/orchestration/delegation-scope.d.ts +1 -0
- package/dist/src/agent/orchestration/delegation-scope.js +4 -1
- package/dist/src/agent/orchestration/loop-guard.js +6 -2
- package/dist/src/agent/prompt/sections/agent-identity.js +3 -2
- package/dist/src/agent/prompt/sections/behavior.d.ts +3 -2
- package/dist/src/agent/prompt/sections/behavior.js +35 -25
- package/dist/src/agent/prompt/sections/memory-skills.d.ts +1 -1
- package/dist/src/agent/prompt/sections/memory-skills.js +10 -11
- package/dist/src/agent/prompt/sections/messaging-runtime.d.ts +3 -2
- package/dist/src/agent/prompt/sections/messaging-runtime.js +21 -24
- package/dist/src/agent/prompt/sections/response-language.js +7 -5
- package/dist/src/agent/prompt/sections/tooling.js +11 -10
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -1
- package/dist/src/agent/prompt/system-prompt-params.d.ts +2 -1
- package/dist/src/agent/prompt/system-prompt-params.js +2 -0
- package/dist/src/agent/prompt/system-prompt.d.ts +2 -1
- package/dist/src/agent/prompt/system-prompt.js +21 -18
- package/dist/src/agent/prompt/types.d.ts +2 -0
- package/dist/src/agent/service.js +1 -1
- package/dist/src/agent/service.types.d.ts +0 -2
- package/dist/src/agent/skills/format-skills-prompt.js +5 -2
- package/dist/src/agent/tool-manuals/computer.d.ts +1 -1
- package/dist/src/agent/tool-manuals/computer.js +9 -1
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +6 -48
- package/dist/src/agent/tools/computer-use-tool.js +17 -3
- package/dist/src/agent/tools/dataBatch.d.ts +1 -0
- package/dist/src/agent/tools/dataBatch.js +4 -1
- package/dist/src/agent/tools/delegate-tool.d.ts +1 -0
- package/dist/src/agent/tools/delegate-tool.js +1 -0
- package/dist/src/agent/tools/error-tracker.js +4 -2
- package/dist/src/agent/tools/exec-command.js +4 -3
- package/dist/src/agent/tools/factory.d.ts +1 -2
- package/dist/src/agent/tools/factory.js +20 -22
- package/dist/src/agent/tools/{delegation-parent-policy.d.ts → noninteractive-tool-policy.d.ts} +1 -1
- package/dist/src/agent/tools/{delegation-parent-policy.js → noninteractive-tool-policy.js} +4 -4
- package/dist/src/agent/tools/personal-task-tool.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/search/cache.d.ts +3 -1
- package/dist/src/agent/tools/search/cache.js +4 -1
- package/dist/src/agent/tools/search/providers/deepseek-protocol.d.ts +9 -0
- package/dist/src/agent/tools/search/providers/deepseek-protocol.js +84 -0
- package/dist/src/agent/tools/search/providers/deepseek.d.ts +9 -0
- package/dist/src/agent/tools/search/providers/deepseek.js +55 -0
- package/dist/src/agent/tools/search/providers/xopc-cloud.d.ts +2 -1
- package/dist/src/agent/tools/search/providers/xopc-cloud.js +36 -1
- package/dist/src/agent/tools/search/registry.d.ts +1 -0
- package/dist/src/agent/tools/search/registry.js +32 -6
- package/dist/src/agent/tools/search/request-gate.d.ts +13 -0
- package/dist/src/agent/tools/search/request-gate.js +41 -0
- package/dist/src/agent/tools/search/resolve-config.js +1 -1
- package/dist/src/agent/tools/search/search-info.d.ts +8 -0
- package/dist/src/agent/tools/search/search-info.js +34 -0
- package/dist/src/agent/tools/search/types.d.ts +19 -1
- package/dist/src/agent/tools/toolExposure.d.ts +3 -0
- package/dist/src/agent/tools/toolExposure.js +25 -0
- package/dist/src/agent/tools/web.js +8 -1
- package/dist/src/agent/tools/xopc-use-tool.d.ts +2 -4
- package/dist/src/agent/tools/xopc-use-tool.js +11 -135
- package/dist/src/agent/workflow/builtins/index.js +98 -0
- package/dist/src/agent/workflow/subagent-runner.d.ts +1 -0
- package/dist/src/agent/workflow/subagent-runner.js +3 -3
- package/dist/src/agent/workflow/types.d.ts +3 -2
- package/dist/src/agent/workflow/workflow-child-tools.js +13 -8
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +1 -2
- package/dist/src/automations/domain/validation.d.ts +8 -8
- package/dist/src/automations/draft/automation-draft-validator.d.ts +1 -1
- package/dist/src/automations/events/event-catalog.js +0 -18
- package/dist/src/backup/archive.js +1 -2
- package/dist/src/capabilities/runtime/app-context.js +2 -6
- package/dist/src/capabilities/runtime/product.d.ts +1 -3
- package/dist/src/capabilities/runtime/product.js +0 -6
- package/dist/src/cli/command-manifest.js +1 -1
- package/dist/src/cli/commands/search.d.ts +2 -2
- package/dist/src/cli/commands/search.js +8 -6
- package/dist/src/computer/config.d.ts +1 -0
- package/dist/src/computer/config.js +1 -0
- package/dist/src/computer/diagnostics.d.ts +223 -0
- package/dist/src/computer/diagnostics.js +360 -0
- package/dist/src/computer/errors.d.ts +1 -1
- package/dist/src/computer/errors.js +8 -1
- package/dist/src/computer/evaluation-comparison.d.ts +125 -0
- package/dist/src/computer/evaluation-comparison.js +65 -0
- package/dist/src/computer/evaluation-harness.d.ts +2 -1
- package/dist/src/computer/evaluation-harness.js +59 -8
- package/dist/src/computer/evaluation.d.ts +102 -7
- package/dist/src/computer/evaluation.js +64 -15
- package/dist/src/computer/flows.d.ts +62 -0
- package/dist/src/computer/flows.js +158 -0
- package/dist/src/computer/model-adapter.d.ts +11 -0
- package/dist/src/computer/model-adapter.js +156 -11
- package/dist/src/computer/model-policy.d.ts +1 -1
- package/dist/src/computer/model-policy.js +13 -6
- package/dist/src/computer/release-gate.d.ts +11 -0
- package/dist/src/computer/runtime.d.ts +27 -2
- package/dist/src/computer/runtime.js +261 -44
- package/dist/src/computer/semantic-actions.d.ts +3 -0
- package/dist/src/computer/semantic-actions.js +29 -0
- package/dist/src/config/index.js +2 -2
- package/dist/src/config/models-json.d.ts +14 -8
- package/dist/src/config/models-json.js +2 -0
- package/dist/src/config/outbound-proxy.d.ts +11 -0
- package/dist/src/config/outbound-proxy.js +30 -0
- package/dist/src/config/rules.js +5 -0
- package/dist/src/config/schema.d.ts +25 -10
- package/dist/src/config/schema.js +21 -10
- package/dist/src/connectors/cli/authorization.d.ts +1 -1
- package/dist/src/connectors/cli/store.d.ts +1 -1
- package/dist/src/endpoint-tools/invocation-service.js +5 -0
- package/dist/src/gateway/config-tools-web.js +15 -4
- package/dist/src/gateway/gateway-workflow-host.types.d.ts +3 -0
- package/dist/src/gateway/hono/app.d.ts +0 -2
- package/dist/src/gateway/hono/app.js +1 -2
- package/dist/src/gateway/hono/lib/config-payload.d.ts +6 -3
- package/dist/src/gateway/hono/lib/config-payload.js +5 -1
- package/dist/src/gateway/hono/routes/capability-operations.js +0 -7
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +7 -0
- package/dist/src/gateway/hono/routes/deps.d.ts +0 -2
- package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -8
- package/dist/src/gateway/hono/routes/models.js +5 -2
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/service/config-coordinator.d.ts +8 -5
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service.d.ts +0 -3
- package/dist/src/gateway/service.js +10 -44
- package/dist/src/home-intelligence/generator.js +1 -1
- package/dist/src/home-intelligence/policy.js +0 -5
- package/dist/src/home-intelligence/repository.d.ts +1 -1
- package/dist/src/infra/domain-outbox-dispatcher.js +1 -1
- package/dist/src/infra/http-proxy-env.d.ts +3 -0
- package/dist/src/infra/http-proxy-env.js +22 -2
- package/dist/src/notifications/service.d.ts +2 -18
- package/dist/src/notifications/service.js +8 -39
- package/dist/src/notifications/store.d.ts +0 -1
- package/dist/src/notifications/store.js +1 -4
- package/dist/src/personal-agent/communication.d.ts +2 -1
- package/dist/src/personal-agent/communication.js +11 -2
- package/dist/src/personal-agent/persona.d.ts +2 -1
- package/dist/src/personal-agent/persona.js +3 -2
- package/dist/src/personal-agent/prompts.d.ts +2 -0
- package/dist/src/personal-agent/prompts.js +69 -7
- package/dist/src/personal-agent/reply-composer.js +2 -2
- package/dist/src/personal-agent/reply-style.d.ts +4 -2
- package/dist/src/personal-agent/reply-style.js +19 -3
- package/dist/src/personal-agent/request-service.js +14 -9
- package/dist/src/pets/loopi-artwork.d.ts +2 -0
- package/dist/src/pets/loopi-artwork.js +36 -0
- package/dist/src/pets/pointer.d.ts +6 -0
- package/dist/src/pets/pointer.js +16 -0
- package/dist/src/platform/contracts.d.ts +3 -3
- package/dist/src/project-trust/trust-store.d.ts +5 -0
- package/dist/src/project-trust/trust-store.js +7 -1
- package/dist/src/providers/index.js +3 -3
- package/dist/src/providers/model-registry.js +2 -0
- package/dist/src/providers/model-supplements.d.ts +0 -2
- package/dist/src/providers/model-supplements.js +2 -18
- package/dist/src/providers/xopc-cloud-credit-budget.d.ts +1 -0
- package/dist/src/providers/xopc-cloud-credit-budget.js +4 -1
- package/dist/src/realtime/compact-run-event.js +17 -2
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/routing/resolve-route.js +1 -1
- package/dist/src/routing/session-key.js +1 -1
- package/dist/src/session/compact-history.js +16 -6
- package/dist/src/storage/sqlite/connection.js +2 -2
- package/dist/src/storage/sqlite/conversation-repository.js +1 -1
- package/dist/src/storage/sqlite/migrations/conversation-backup.d.ts +0 -2
- package/dist/src/storage/sqlite/migrations/conversation-backup.js +8 -18
- package/dist/src/storage/sqlite/migrations/conversation-windows-owners.js +28 -33
- package/dist/src/storage/sqlite/migrations/errors.js +1 -1
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +5 -40
- package/dist/src/storage/sqlite/migrations/types.d.ts +0 -2
- package/dist/src/storage/sqlite/schema.d.ts +1 -3
- package/dist/src/storage/sqlite/schema.js +4 -8
- package/dist/src/storage/sqlite/schema.sql +1356 -1282
- package/dist/src/tasks/capabilities/management.d.ts +2 -2
- package/dist/src/tasks/capabilities/relations.d.ts +4 -4
- package/dist/src/tasks/capabilities/write.d.ts +4 -4
- package/dist/src/tasks/task-allocation-service.js +51 -40
- package/dist/src/tasks/task-application-service.js +5 -1
- package/dist/src/tasks/task-contract-planner.js +21 -6
- package/dist/src/tasks/task-language.d.ts +2 -0
- package/dist/src/tasks/task-language.js +13 -2
- package/dist/src/tasks/task-research-result.d.ts +2 -2
- package/dist/src/tasks/task-run-coordinator.js +5 -1
- package/dist/src/tasks/task-run-dispatcher.js +2 -1
- package/dist/src/tui/tui.js +1 -1
- package/dist/src/usage/scenario-registry.js +0 -5
- package/dist/src/usage/types.d.ts +1 -1
- package/dist/src/work-discovery/probe.js +1 -1
- package/dist/src/workflows/domain/definition.d.ts +1 -0
- package/dist/src/workflows/service/workflow-run-service.js +2 -1
- package/package.json +10 -6
- package/skills/THIRD_PARTY_NOTICES.md +0 -6
- package/skills/creative/chat-charts/SKILL.md +26 -0
- package/skills/creative/chat-charts/references/bar-example.json +10 -0
- package/skills/creative/chat-charts/references/chart-spec.md +25 -0
- package/skills/creative/chat-charts/references/line-example.json +13 -0
- package/dist/gateway/static/root/assets/activity-YogQEteU.js +0 -1
- package/dist/gateway/static/root/assets/activity-store-DWQCDi8M.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DE910MyU.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-0SlvsYl7.js +0 -1
- package/dist/gateway/static/root/assets/agents-BZh28Qn1.js +0 -77
- package/dist/gateway/static/root/assets/app-chrome-BeB4KgOf.js +0 -1
- package/dist/gateway/static/root/assets/app-link-4gpFbdsr.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-9A7JN5V5.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-BPdLEo6L.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-Cz7LypV9.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-BBjS-sk-.js +0 -6
- package/dist/gateway/static/root/assets/browser-automation-inputs-C5tIrIRL.js +0 -1
- package/dist/gateway/static/root/assets/browser-automations-page-CFCMNfJN.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-C__tyPwu.js +0 -3
- package/dist/gateway/static/root/assets/button-aIC072nz.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-D6RJG4QY.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-DGEmBQnF.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-B5AZa7ir.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-Dskz2_bh.js +0 -8
- package/dist/gateway/static/root/assets/capability-header-actions-xzjWZVbg.js +0 -1
- package/dist/gateway/static/root/assets/channels-DRse_dD3.js +0 -1
- package/dist/gateway/static/root/assets/chat-terminal-dock-CQF0M4kE.js +0 -36
- package/dist/gateway/static/root/assets/chevron-left-DqFhpbvK.js +0 -1
- package/dist/gateway/static/root/assets/chevron-right-BweFrslA.js +0 -1
- package/dist/gateway/static/root/assets/circle-alert-BEjgurr2.js +0 -1
- package/dist/gateway/static/root/assets/circle-dashed-8qMD7gHf.js +0 -1
- package/dist/gateway/static/root/assets/circle-dot-BAseJTrF.js +0 -1
- package/dist/gateway/static/root/assets/cloud-C4-yfnnk.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-ZfzCTS0N.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-CwAeWVLK.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-CanakKaj.js +0 -1
- package/dist/gateway/static/root/assets/copy-text-row-C7egVuKr.js +0 -1
- package/dist/gateway/static/root/assets/date-formatters-CUZAyDEg.js +0 -1
- package/dist/gateway/static/root/assets/date-picker-hmJlEAQZ.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-Us_Juz6I.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-CvOTI4uw.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-DYg-Gb8t.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-sprite-BP6iMVw1.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-B1FbZ8C1.js +0 -1
- package/dist/gateway/static/root/assets/directory-picker-path-field-DZN9EDvM.js +0 -1
- package/dist/gateway/static/root/assets/dist-C3DSFZCi.js +0 -1
- package/dist/gateway/static/root/assets/electron-env-Dit0bHgy.js +0 -1
- package/dist/gateway/static/root/assets/extension-debug-page-YIibp6Kk.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-DkcGyb28.js +0 -1
- package/dist/gateway/static/root/assets/extension-provider-B1PQGTtY.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-C_rJiSKo.js +0 -1
- package/dist/gateway/static/root/assets/form-field-width-DJw_jULe.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-CMJVSnvi.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CjCWPHNJ.js +0 -1
- package/dist/gateway/static/root/assets/globe-DSSGFWFn.js +0 -1
- package/dist/gateway/static/root/assets/home-page-fAYsd7kG.js +0 -2
- package/dist/gateway/static/root/assets/image-generation-api-B98iXt6A.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-DoBCBN8G.js +0 -1
- package/dist/gateway/static/root/assets/index-DFgXwLsv.js +0 -260
- package/dist/gateway/static/root/assets/index-a6ZvhclR.css +0 -1
- package/dist/gateway/static/root/assets/index.module-Cd9ENXfk.js +0 -1
- package/dist/gateway/static/root/assets/interaction-BdhHBbYa.js +0 -1
- package/dist/gateway/static/root/assets/is-masked-secret-DOkL5b_X.js +0 -1
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-DXVu4lqV.js +0 -1
- package/dist/gateway/static/root/assets/loader-circle-CifKLtgG.js +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-B3fz6uRi.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-page-BC6xhmUh.js +0 -1
- package/dist/gateway/static/root/assets/local-session-drafts-DFnZQu9A.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-CSqSFDRU.js +0 -2
- package/dist/gateway/static/root/assets/loopi-C09I2mNj.css +0 -1
- package/dist/gateway/static/root/assets/loopi-Djb8XU3l.js +0 -1
- package/dist/gateway/static/root/assets/management-settings-gq5L0THs.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-IsYTotu6.js +0 -324
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-C_QKwqDN.js +0 -1
- package/dist/gateway/static/root/assets/message-square-plus-XP0tGdlV.js +0 -1
- package/dist/gateway/static/root/assets/messages-CKTo_sIF.js +0 -3
- package/dist/gateway/static/root/assets/mic-CuUb7zc-.js +0 -1
- package/dist/gateway/static/root/assets/minimize-2-DtOGrlpo.js +0 -1
- package/dist/gateway/static/root/assets/models-hub-cache-TjpL7hZ5.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-CdpNXre-.js +0 -5
- package/dist/gateway/static/root/assets/notes-api-CBb944yw.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-EGvGw8MN.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-CoWb7BYP.js +0 -1
- package/dist/gateway/static/root/assets/page-tabs-HLrKIjXH.js +0 -1
- package/dist/gateway/static/root/assets/pencil-DmIY3Oa-.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-DYzbNTyN.js +0 -1
- package/dist/gateway/static/root/assets/popover-select-DHC7J4lG.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-BJU2fmPn.js +0 -1
- package/dist/gateway/static/root/assets/product-delivery-BAks11S4.js +0 -1
- package/dist/gateway/static/root/assets/product-open-page-CTyy7H7-.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-D4xqTaEy.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-DIVCw0QQ.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-B4L9VnBN.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-B8PvgLVz.js +0 -1
- package/dist/gateway/static/root/assets/rotate-ccw-JM1TBLpp.js +0 -1
- package/dist/gateway/static/root/assets/rotate-cw-LIg3Am9S.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-Bqnp3tyt.js +0 -1
- package/dist/gateway/static/root/assets/scenes-page-D50g4GM2.js +0 -2
- package/dist/gateway/static/root/assets/schema-form-h_RCNfiO.js +0 -1
- package/dist/gateway/static/root/assets/search-DA7gz22f.js +0 -1
- package/dist/gateway/static/root/assets/secret-input-BxWHx6J6.js +0 -1
- package/dist/gateway/static/root/assets/send-session-input-DypbVTT7.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-C_OiKblh.js +0 -16
- package/dist/gateway/static/root/assets/sessions-page-BsqDIbIr.js +0 -1
- package/dist/gateway/static/root/assets/settings-2-D-csvaET.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-D3zJAW4p.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-draft-Dy10ldo8.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-num14vSv.js +0 -1
- package/dist/gateway/static/root/assets/settings-shell-dialog-layer-BU3UuiJr.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-jjSYJpDd.js +0 -1
- package/dist/gateway/static/root/assets/share-link-dialog-BGicglAS.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-BORe9rLB.js +0 -2
- package/dist/gateway/static/root/assets/shares-api-Dbx3z6-1.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-C13FgfWk.js +0 -1
- package/dist/gateway/static/root/assets/skeleton-BI5TyibZ.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-Cq6O1DZK.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-utils-C7V4JVXM.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-Cq7QDjMA.js +0 -1
- package/dist/gateway/static/root/assets/skill-wire-pattern-BPpeIcCi.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-BM1ShEjx.js +0 -2
- package/dist/gateway/static/root/assets/style-TIDOdKy0.js +0 -7
- package/dist/gateway/static/root/assets/system-settings-panel-BNCGFO1e.js +0 -1
- package/dist/gateway/static/root/assets/tab-completion-input-D64VNmiA.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-4VG82wcF.js +0 -2
- package/dist/gateway/static/root/assets/theme-store-Db7hDESt.js +0 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-C6p2Mu92.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-Dw15EJp0.js +0 -1
- package/dist/gateway/static/root/assets/usage-page-DDrIqgGe.js +0 -1
- package/dist/gateway/static/root/assets/use-async-resource-GrnWNwMZ.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-DDjIdW4U.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-DNl7O3Vb.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-DMHehhwG.js +0 -2
- package/dist/gateway/static/root/assets/user-model-page-CaS9dOIr.js +0 -2
- package/dist/gateway/static/root/assets/voice-api-key-field-ByAxHE4P.js +0 -1
- package/dist/gateway/static/root/assets/voice-transcribe-api-CVaU83Jc.js +0 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-BvVvPA1T.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-BcFm9QcC.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-DMec_XZB.js +0 -6
- package/dist/gateway/static/root/assets/workspace-api-BpfKsrtP.js +0 -2
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-CU5lzzE9.js +0 -1
- package/dist/packages/gateway-contract/src/project-monitoring.js +0 -36
- package/dist/packages/gateway-contract/src/scenes.js +0 -200
- package/dist/src/agent/bootstrap/project-agents-context.d.ts +0 -2
- package/dist/src/agent/bootstrap/project-agents-context.js +0 -30
- package/dist/src/gateway/hono/routes/scenes.d.ts +0 -3
- package/dist/src/gateway/hono/routes/scenes.js +0 -271
- package/dist/src/gateway/scenes/browserNotifications.d.ts +0 -4
- package/dist/src/gateway/scenes/browserNotifications.js +0 -54
- package/dist/src/gateway/scenes/host.d.ts +0 -34
- package/dist/src/gateway/scenes/host.js +0 -154
- package/dist/src/gateway/scenes/mailContext.d.ts +0 -32
- package/dist/src/gateway/scenes/mailContext.js +0 -235
- package/dist/src/gateway/scenes/slackThreadSource.d.ts +0 -41
- package/dist/src/gateway/scenes/slackThreadSource.js +0 -168
- package/dist/src/notifications/browser-endpoint.d.ts +0 -2
- package/dist/src/notifications/browser-endpoint.js +0 -13
- package/dist/src/notifications/browserSubscriptions.d.ts +0 -20
- package/dist/src/notifications/browserSubscriptions.js +0 -59
- package/dist/src/notifications/browserTransport.d.ts +0 -9
- package/dist/src/notifications/browserTransport.js +0 -64
- package/dist/src/notifications/dispatch.d.ts +0 -46
- package/dist/src/notifications/dispatch.js +0 -109
- package/dist/src/notifications/domain-delivery.d.ts +0 -21
- package/dist/src/notifications/domain-delivery.js +0 -1
- package/dist/src/notifications/quietHours.d.ts +0 -6
- package/dist/src/notifications/quietHours.js +0 -23
- package/dist/src/notifications/resultOutbox.d.ts +0 -23
- package/dist/src/notifications/resultOutbox.js +0 -49
- package/dist/src/scenes/activationAdapter.d.ts +0 -19
- package/dist/src/scenes/activationAdapter.js +0 -1
- package/dist/src/scenes/agentExecutor.d.ts +0 -9
- package/dist/src/scenes/agentExecutor.js +0 -61
- package/dist/src/scenes/capabilities/read.d.ts +0 -3
- package/dist/src/scenes/capabilities/read.js +0 -187
- package/dist/src/scenes/capabilities/write.d.ts +0 -3
- package/dist/src/scenes/capabilities/write.js +0 -151
- package/dist/src/scenes/contracts.d.ts +0 -9
- package/dist/src/scenes/contracts.js +0 -61
- package/dist/src/scenes/execution.d.ts +0 -62
- package/dist/src/scenes/execution.js +0 -169
- package/dist/src/scenes/httpServices.d.ts +0 -39
- package/dist/src/scenes/httpServices.js +0 -1
- package/dist/src/scenes/inbox.d.ts +0 -17
- package/dist/src/scenes/inbox.js +0 -68
- package/dist/src/scenes/mailContext.d.ts +0 -24
- package/dist/src/scenes/mailContext.js +0 -115
- package/dist/src/scenes/mailObservations.d.ts +0 -20
- package/dist/src/scenes/mailObservations.js +0 -107
- package/dist/src/scenes/maintenance.d.ts +0 -3
- package/dist/src/scenes/maintenance.js +0 -20
- package/dist/src/scenes/metrics.d.ts +0 -31
- package/dist/src/scenes/metrics.js +0 -89
- package/dist/src/scenes/model.d.ts +0 -3
- package/dist/src/scenes/model.js +0 -10
- package/dist/src/scenes/notificationEligibility.d.ts +0 -17
- package/dist/src/scenes/notificationEligibility.js +0 -72
- package/dist/src/scenes/notificationPublication.d.ts +0 -7
- package/dist/src/scenes/notificationPublication.js +0 -43
- package/dist/src/scenes/preferences.d.ts +0 -19
- package/dist/src/scenes/preferences.js +0 -86
- package/dist/src/scenes/readiness.d.ts +0 -7
- package/dist/src/scenes/readiness.js +0 -20
- package/dist/src/scenes/registry.d.ts +0 -11
- package/dist/src/scenes/registry.js +0 -28
- package/dist/src/scenes/repository.d.ts +0 -178
- package/dist/src/scenes/repository.js +0 -782
- package/dist/src/scenes/resultNotifications.d.ts +0 -17
- package/dist/src/scenes/resultNotifications.js +0 -204
- package/dist/src/scenes/runtime.d.ts +0 -25
- package/dist/src/scenes/runtime.js +0 -101
- package/dist/src/scenes/schedule.d.ts +0 -2
- package/dist/src/scenes/schedule.js +0 -33
- package/dist/src/scenes/service.d.ts +0 -36
- package/dist/src/scenes/service.js +0 -122
- package/dist/src/scenes/taskFollowUp/agentExecutor.d.ts +0 -36
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +0 -149
- package/dist/src/scenes/taskFollowUp/branchInventory.d.ts +0 -38
- package/dist/src/scenes/taskFollowUp/branchInventory.js +0 -70
- package/dist/src/scenes/taskFollowUp/contracts.d.ts +0 -121
- package/dist/src/scenes/taskFollowUp/contracts.js +0 -119
- package/dist/src/scenes/taskFollowUp/resources.d.ts +0 -19
- package/dist/src/scenes/taskFollowUp/resources.js +0 -97
- package/dist/src/scenes/taskFollowUp/service.d.ts +0 -848
- package/dist/src/scenes/taskFollowUp/service.js +0 -770
- package/dist/src/scenes/taskFollowUp/workspaceFingerprint.d.ts +0 -2
- package/dist/src/scenes/taskFollowUp/workspaceFingerprint.js +0 -46
- package/dist/src/scenes/templates.d.ts +0 -64
- package/dist/src/scenes/templates.js +0 -76
- package/dist/src/scenes/userNotes.d.ts +0 -13
- package/dist/src/scenes/userNotes.js +0 -40
- package/dist/src/storage/sqlite/migrations/166_remove_proactive_previews.sql +0 -1
- package/dist/src/storage/sqlite/migrations/167_discussion_recording_chunks.sql +0 -7
- package/dist/src/storage/sqlite/migrations/168_discussion_evidence.sql +0 -16
- package/dist/src/storage/sqlite/migrations/169_discussion_action_tasks.sql +0 -8
- package/dist/src/storage/sqlite/migrations/170_discussion_edits.sql +0 -8
- package/dist/src/storage/sqlite/migrations/171_discussion_recording_jobs.sql +0 -14
- package/dist/src/storage/sqlite/migrations/172_project_understanding.sql +0 -3
- package/dist/src/storage/sqlite/migrations/173_mobile_discussion_source.sql +0 -5
- package/dist/src/storage/sqlite/migrations/174_capability_imports.sql +0 -11
- package/dist/src/storage/sqlite/migrations/175_import_selections.sql +0 -8
- package/dist/src/storage/sqlite/migrations/176_proactive_quality.sql +0 -5
- package/dist/src/storage/sqlite/migrations/177_proactive_check_controls.sql +0 -25
- package/dist/src/storage/sqlite/migrations/178_conversation_uuid.sql +0 -2
- package/dist/src/storage/sqlite/migrations/179_harmonyos_devices.sql +0 -41
- package/dist/src/storage/sqlite/migrations/180_execution_environment_ownership.sql +0 -7
- package/dist/src/storage/sqlite/migrations/181_knowledge_item_status_events.sql +0 -12
- package/dist/src/storage/sqlite/migrations/182_connector_account_policies.sql +0 -92
- package/dist/src/storage/sqlite/migrations/183_connector_backend_consistency.sql +0 -20
- package/dist/src/storage/sqlite/migrations/184_memory_suppressions.sql +0 -12
- package/dist/src/storage/sqlite/migrations/185_understanding_refresh_batches.sql +0 -6
- package/dist/src/storage/sqlite/migrations/186_sidebar_layout.sql +0 -16
- package/dist/src/storage/sqlite/migrations/187_cli_connectors.sql +0 -34
- package/dist/src/storage/sqlite/migrations/188_scene_storage.sql +0 -2
- package/dist/src/storage/sqlite/migrations/189_scene_source_health.sql +0 -8
- package/dist/src/storage/sqlite/migrations/190_scene_development.sql +0 -37
- package/dist/src/storage/sqlite/migrations/191_scene_task_follow_up.sql +0 -27
- package/dist/src/storage/sqlite/migrations/192_capability_operations.sql +0 -20
- package/dist/src/storage/sqlite/migrations/193_note_file_cleanup.sql +0 -8
- package/dist/src/storage/sqlite/migrations/194_capability_external_outcomes.sql +0 -11
- package/dist/src/storage/sqlite/migrations/195_automation_deleted_revisions.sql +0 -4
- package/dist/src/storage/sqlite/migrations/196_automation_run_requests.sql +0 -23
- package/dist/src/storage/sqlite/migrations/197_note_deletion_cleanup.sql +0 -8
- package/dist/src/storage/sqlite/migrations/198_project_workspace_creation.sql +0 -7
- package/dist/src/storage/sqlite/migrations/199_scene_resource_events.sql +0 -488
- package/dist/src/storage/sqlite/migrations/200_connected_work_threads.sql +0 -92
- package/dist/src/storage/sqlite/migrations/201_connector_extraction_audit.sql +0 -127
- package/dist/src/storage/sqlite/migrations/202_chat_previews.sql +0 -26
- package/dist/src/storage/sqlite/migrations/203_remove_retired_proactive_contracts.sql +0 -70
- package/dist/src/storage/sqlite/migrations/204_home_intelligence.sql +0 -78
- package/dist/src/storage/sqlite/migrations/205_agent_catalog.sql +0 -66
- package/dist/src/storage/sqlite/migrations/206_home_advice_strategy_version.sql +0 -3
- package/dist/src/storage/sqlite/migrations/207_user_model_policy_contract.sql +0 -121
- package/dist/src/storage/sqlite/migrations/208_automation_management.sql +0 -2
- package/dist/src/storage/sqlite/migrations/209_automation_event_hub.sql +0 -48
- package/dist/src/storage/sqlite/migrations/210_remove_legacy_automation_timeout.sql +0 -14
- package/dist/src/storage/sqlite/migrations/211_automation_result_deliveries.sql +0 -16
- package/dist/src/storage/sqlite/migrations/212_automation_delivery_policy.sql +0 -30
- package/dist/src/storage/sqlite/migrations/213_automation_reliability_contract.sql +0 -188
- package/dist/src/storage/sqlite/migrations/214_ai_usage_ledger.sql +0 -41
- package/dist/src/storage/sqlite/migrations/215_scene_execution_adapters.sql +0 -6
- package/dist/src/storage/sqlite/migrations/216_remove_scene_model_usage.sql +0 -1
- package/dist/src/storage/sqlite/migrations/217_remove_legacy_memory_tables.sql +0 -4
- package/dist/src/storage/sqlite/migrations/conversation-key-decoder.d.ts +0 -8
- package/dist/src/storage/sqlite/migrations/conversation-key-decoder.js +0 -87
- package/dist/src/storage/sqlite/migrations/conversation-uuid.d.ts +0 -8
- package/dist/src/storage/sqlite/migrations/conversation-uuid.js +0 -366
- package/dist/src/storage/sqlite/migrations/scene-reset.d.ts +0 -5
- package/dist/src/storage/sqlite/migrations/scene-reset.js +0 -40
- package/dist/src/storage/sqlite/scenes-schema.d.ts +0 -8
- package/dist/src/storage/sqlite/scenes-schema.js +0 -60
- package/dist/src/storage/sqlite/schemas/notifications.sql +0 -65
- package/dist/src/storage/sqlite/schemas/scenes.sql +0 -205
- package/skills/engineering/design-recurring-work/SKILL.md +0 -75
|
@@ -3,6 +3,12 @@ import { buildWorkflowDefinition } from "../../../workflows/domain/definition-ut
|
|
|
3
3
|
const BUILTIN_SPECS = [
|
|
4
4
|
{
|
|
5
5
|
name: "audit_repo",
|
|
6
|
+
title: "Repository Audit",
|
|
7
|
+
zh: {
|
|
8
|
+
title: "代码仓库审查",
|
|
9
|
+
description: "全面审查代码仓库的架构、质量、安全与运维,输出按优先级排序的报告。",
|
|
10
|
+
whenToUse: "适合全面检查代码仓库或核心子系统。"
|
|
11
|
+
},
|
|
6
12
|
description: "Audit a repository across architecture, quality, security, and operations, then produce a prioritized report.",
|
|
7
13
|
whenToUse: "Use for a thorough review of a repository or major subsystem.",
|
|
8
14
|
tags: ["code-review", "audit"],
|
|
@@ -10,6 +16,12 @@ const BUILTIN_SPECS = [
|
|
|
10
16
|
},
|
|
11
17
|
{
|
|
12
18
|
name: "client_proposal",
|
|
19
|
+
title: "Client Proposal",
|
|
20
|
+
zh: {
|
|
21
|
+
title: "客户提案",
|
|
22
|
+
description: "将客户需求整理为清晰的提案,涵盖范围、交付、定价依据与风险。",
|
|
23
|
+
whenToUse: "适合准备面向客户的项目提案或工作说明书。"
|
|
24
|
+
},
|
|
13
25
|
description: "Turn a client brief into a clear proposal covering scope, delivery, pricing logic, and risks.",
|
|
14
26
|
whenToUse: "Use when preparing a client-ready proposal or statement of work.",
|
|
15
27
|
tags: [
|
|
@@ -21,6 +33,12 @@ const BUILTIN_SPECS = [
|
|
|
21
33
|
},
|
|
22
34
|
{
|
|
23
35
|
name: "competitor_scan",
|
|
36
|
+
title: "Competitor Scan",
|
|
37
|
+
zh: {
|
|
38
|
+
title: "竞品分析",
|
|
39
|
+
description: "对比竞争产品,识别市场定位、定价与差异化机会。",
|
|
40
|
+
whenToUse: "适合在市场定位、定价或产品推广决策前使用。"
|
|
41
|
+
},
|
|
24
42
|
description: "Compare competitors and identify positioning, pricing, and differentiation opportunities.",
|
|
25
43
|
whenToUse: "Use before positioning, pricing, or go-to-market decisions.",
|
|
26
44
|
tags: ["research", "investigation"],
|
|
@@ -28,6 +46,12 @@ const BUILTIN_SPECS = [
|
|
|
28
46
|
},
|
|
29
47
|
{
|
|
30
48
|
name: "content_draft",
|
|
49
|
+
title: "Content Draft",
|
|
50
|
+
zh: {
|
|
51
|
+
title: "内容起草",
|
|
52
|
+
description: "从不同受众与语气角度起草内容,选出最合适的版本。",
|
|
53
|
+
whenToUse: "适合撰写邮件、帖子、公告、文档等非代码内容。"
|
|
54
|
+
},
|
|
31
55
|
description: "Draft polished content from multiple audience and tone perspectives, then select the strongest version.",
|
|
32
56
|
whenToUse: "Use for emails, posts, announcements, documentation, or other non-code writing.",
|
|
33
57
|
tags: [
|
|
@@ -39,6 +63,12 @@ const BUILTIN_SPECS = [
|
|
|
39
63
|
},
|
|
40
64
|
{
|
|
41
65
|
name: "content_repurpose",
|
|
66
|
+
title: "Content Repurposing",
|
|
67
|
+
zh: {
|
|
68
|
+
title: "内容改编",
|
|
69
|
+
description: "将一份素材改编为适合不同渠道的内容,保留核心信息。",
|
|
70
|
+
whenToUse: "适合将已有素材用于多个平台。"
|
|
71
|
+
},
|
|
42
72
|
description: "Turn one source into channel-specific content without losing the core message.",
|
|
43
73
|
whenToUse: "Use when adapting existing material for multiple platforms.",
|
|
44
74
|
tags: ["writing", "content"],
|
|
@@ -46,6 +76,12 @@ const BUILTIN_SPECS = [
|
|
|
46
76
|
},
|
|
47
77
|
{
|
|
48
78
|
name: "debug_incident",
|
|
79
|
+
title: "Incident Debugging",
|
|
80
|
+
zh: {
|
|
81
|
+
title: "故障排查",
|
|
82
|
+
description: "通过独立假设排查故障,输出按可能性排序的原因与验证步骤。",
|
|
83
|
+
whenToUse: "适合排查缺陷、崩溃、错误信息与异常行为。"
|
|
84
|
+
},
|
|
49
85
|
description: "Triage an incident using independent hypotheses and produce ranked causes and verification steps.",
|
|
50
86
|
whenToUse: "Use for bugs, crashes, error messages, and unexpected behavior.",
|
|
51
87
|
tags: [
|
|
@@ -57,6 +93,12 @@ const BUILTIN_SPECS = [
|
|
|
57
93
|
},
|
|
58
94
|
{
|
|
59
95
|
name: "decision_compare",
|
|
96
|
+
title: "Decision Comparison",
|
|
97
|
+
zh: {
|
|
98
|
+
title: "方案对比",
|
|
99
|
+
description: "依据多项独立标准对比备选方案,明确取舍并给出建议。",
|
|
100
|
+
whenToUse: "适合在多个可行方案之间做决策。"
|
|
101
|
+
},
|
|
60
102
|
description: "Compare options through independent criteria and recommend with explicit trade-offs.",
|
|
61
103
|
whenToUse: "Use for decisions with multiple viable choices.",
|
|
62
104
|
tags: [
|
|
@@ -68,6 +110,12 @@ const BUILTIN_SPECS = [
|
|
|
68
110
|
},
|
|
69
111
|
{
|
|
70
112
|
name: "implementation_plan",
|
|
113
|
+
title: "Implementation Plan",
|
|
114
|
+
zh: {
|
|
115
|
+
title: "实施计划",
|
|
116
|
+
description: "将功能、重构或缺陷修复需求转化为可执行的实施计划。",
|
|
117
|
+
whenToUse: "适合在修改多个文件或不熟悉的代码前使用。"
|
|
118
|
+
},
|
|
71
119
|
description: "Convert a feature, refactor, or bugfix request into an actionable implementation plan.",
|
|
72
120
|
whenToUse: "Use before multi-file or unfamiliar code changes.",
|
|
73
121
|
tags: [
|
|
@@ -79,6 +127,12 @@ const BUILTIN_SPECS = [
|
|
|
79
127
|
},
|
|
80
128
|
{
|
|
81
129
|
name: "inbox_triage",
|
|
130
|
+
title: "Inbox Triage",
|
|
131
|
+
zh: {
|
|
132
|
+
title: "收件箱整理",
|
|
133
|
+
description: "将杂乱的消息与任务归为执行、委派、延后或舍弃,并明确优先级。",
|
|
134
|
+
whenToUse: "适合从混杂的消息与任务中安排一天的工作。"
|
|
135
|
+
},
|
|
82
136
|
description: "Sort messy inbox input into do, delegate, defer, and drop with clear priorities.",
|
|
83
137
|
whenToUse: "Use to plan a day from mixed messages and tasks.",
|
|
84
138
|
tags: ["productivity", "brainstorm"],
|
|
@@ -86,6 +140,12 @@ const BUILTIN_SPECS = [
|
|
|
86
140
|
},
|
|
87
141
|
{
|
|
88
142
|
name: "meeting_prep",
|
|
143
|
+
title: "Meeting Preparation",
|
|
144
|
+
zh: {
|
|
145
|
+
title: "会议准备",
|
|
146
|
+
description: "整理会议背景、聚焦议程,以及按优先级排列的讨论要点。",
|
|
147
|
+
whenToUse: "适合在重要会议前使用。"
|
|
148
|
+
},
|
|
89
149
|
description: "Build meeting context, a focused agenda, and prioritized talking points.",
|
|
90
150
|
whenToUse: "Use before an important meeting.",
|
|
91
151
|
tags: ["meeting", "productivity"],
|
|
@@ -93,6 +153,12 @@ const BUILTIN_SPECS = [
|
|
|
93
153
|
},
|
|
94
154
|
{
|
|
95
155
|
name: "multi_perspective_review",
|
|
156
|
+
title: "Multi-Perspective Review",
|
|
157
|
+
zh: {
|
|
158
|
+
title: "多视角评审",
|
|
159
|
+
description: "从用户、运营者与维护者的视角审视目标,发现潜在问题。",
|
|
160
|
+
whenToUse: "适合在确定设计、计划、拉取请求或提案前使用。"
|
|
161
|
+
},
|
|
96
162
|
description: "Stress-test a target from user, operator, and maintainer perspectives.",
|
|
97
163
|
whenToUse: "Use before committing to a design, plan, pull request, or proposal.",
|
|
98
164
|
tags: [
|
|
@@ -104,6 +170,12 @@ const BUILTIN_SPECS = [
|
|
|
104
170
|
},
|
|
105
171
|
{
|
|
106
172
|
name: "offer_design",
|
|
173
|
+
title: "Offer Design",
|
|
174
|
+
zh: {
|
|
175
|
+
title: "服务方案设计",
|
|
176
|
+
description: "将专业能力打包为可销售的服务,明确分层、定价、边界与定位。",
|
|
177
|
+
whenToUse: "适合设计标准化服务或订阅产品。"
|
|
178
|
+
},
|
|
107
179
|
description: "Package expertise into sellable offers with tiers, pricing, boundaries, and positioning.",
|
|
108
180
|
whenToUse: "Use when productizing a service or subscription.",
|
|
109
181
|
tags: ["planning", "architecture"],
|
|
@@ -111,6 +183,12 @@ const BUILTIN_SPECS = [
|
|
|
111
183
|
},
|
|
112
184
|
{
|
|
113
185
|
name: "pr_review",
|
|
186
|
+
title: "Pull Request Review",
|
|
187
|
+
zh: {
|
|
188
|
+
title: "代码变更评审",
|
|
189
|
+
description: "由多个专注不同领域的评审者检查代码变更,给出通过或阻止合入的结论。",
|
|
190
|
+
whenToUse: "适合评审拉取请求、代码差异或一组提交。"
|
|
191
|
+
},
|
|
114
192
|
description: "Review a change set with focused reviewers and produce a ship or block verdict.",
|
|
115
193
|
whenToUse: "Use for a pull request, diff, or commit range.",
|
|
116
194
|
tags: ["code-review", "pr"],
|
|
@@ -118,6 +196,12 @@ const BUILTIN_SPECS = [
|
|
|
118
196
|
},
|
|
119
197
|
{
|
|
120
198
|
name: "release_check",
|
|
199
|
+
title: "Release Readiness Check",
|
|
200
|
+
zh: {
|
|
201
|
+
title: "发布检查",
|
|
202
|
+
description: "并行检查发布风险,评估就绪程度并给出是否发布的结论。",
|
|
203
|
+
whenToUse: "适合在发布已完成的变更前使用。"
|
|
204
|
+
},
|
|
121
205
|
description: "Assess release readiness through parallel risk checks and a go or no-go verdict.",
|
|
122
206
|
whenToUse: "Use before shipping a completed change.",
|
|
123
207
|
tags: [
|
|
@@ -129,6 +213,12 @@ const BUILTIN_SPECS = [
|
|
|
129
213
|
},
|
|
130
214
|
{
|
|
131
215
|
name: "research",
|
|
216
|
+
title: "Research",
|
|
217
|
+
zh: {
|
|
218
|
+
title: "专题研究",
|
|
219
|
+
description: "从多个角度研究问题,综合结论并关注证据来源。",
|
|
220
|
+
whenToUse: "适合需要独立调查的复杂问题。"
|
|
221
|
+
},
|
|
132
222
|
description: "Research a question from multiple angles and produce a source-conscious synthesis.",
|
|
133
223
|
whenToUse: "Use for non-trivial questions that benefit from independent investigation.",
|
|
134
224
|
tags: ["research", "investigation"],
|
|
@@ -136,6 +226,12 @@ const BUILTIN_SPECS = [
|
|
|
136
226
|
},
|
|
137
227
|
{
|
|
138
228
|
name: "weekly_review",
|
|
229
|
+
title: "Weekly Review",
|
|
230
|
+
zh: {
|
|
231
|
+
title: "每周复盘",
|
|
232
|
+
description: "回顾本周工作,为下周制定简短且有优先级的行动计划。",
|
|
233
|
+
whenToUse: "适合每周复盘与计划安排。"
|
|
234
|
+
},
|
|
139
235
|
description: "Review the week and produce a short, prioritized action plan for next week.",
|
|
140
236
|
whenToUse: "Use for a weekly retrospective and planning session.",
|
|
141
237
|
tags: ["productivity", "brainstorm"],
|
|
@@ -154,6 +250,8 @@ function createBuiltinWorkflow(spec) {
|
|
|
154
250
|
source: "builtin",
|
|
155
251
|
graph,
|
|
156
252
|
manifest: {
|
|
253
|
+
title: spec.title,
|
|
254
|
+
i18n: { zh: spec.zh },
|
|
157
255
|
description: spec.description,
|
|
158
256
|
whenToUse: spec.whenToUse,
|
|
159
257
|
tags: spec.tags,
|
|
@@ -20,6 +20,7 @@ import { type BuildChildToolsOptions } from '../child-agent-factory.js';
|
|
|
20
20
|
import type { ToolExecutorConfig } from '../tools/executor.js';
|
|
21
21
|
import type { SubagentRunOptions, SubagentRunner } from './types.js';
|
|
22
22
|
export interface DelegateSubagentRunnerDeps {
|
|
23
|
+
isWorkspaceTrusted?: (workspaceDir: string) => boolean | null | undefined;
|
|
23
24
|
workspace: string;
|
|
24
25
|
bus: MessageBus;
|
|
25
26
|
agentId?: string;
|
|
@@ -4,7 +4,7 @@ import { createSqliteTranscriptRuntime } from "../embedded/transcript-runtime.js
|
|
|
4
4
|
import { createDelegateChildHandle } from "../child-agent-factory.js";
|
|
5
5
|
import { DELEGATION_TOOL_CAPABILITIES, protectDelegatedTool, resolveDelegationTools } from "../tools/delegation-policy.js";
|
|
6
6
|
import { DELEGATE_BLOCKED_TOOLS } from "../tools/delegate-tool.js";
|
|
7
|
-
import {
|
|
7
|
+
import { createNoninteractiveToolPolicy } from "../tools/noninteractive-tool-policy.js";
|
|
8
8
|
import { STRUCTURED_OUTPUT_TOOL_NAME, createStructuredOutputTool } from "./structured-output-tool.js";
|
|
9
9
|
//#region src/agent/workflow/subagent-runner.ts
|
|
10
10
|
init_logger();
|
|
@@ -30,6 +30,7 @@ var DelegateSubagentRunner = class {
|
|
|
30
30
|
const fullPrompt = buildPrompt(prompt, opts, wantStructured);
|
|
31
31
|
const streamMode = resolveSubagentStreamMode(this.deps.getConfig);
|
|
32
32
|
const childOptions = {
|
|
33
|
+
isWorkspaceTrusted: this.deps.isWorkspaceTrusted,
|
|
33
34
|
workspace: this.deps.workspace,
|
|
34
35
|
goal: fullPrompt,
|
|
35
36
|
requesterConversationId: opts.sessionMetadata?.parentConversationId,
|
|
@@ -41,9 +42,8 @@ var DelegateSubagentRunner = class {
|
|
|
41
42
|
agentId: this.deps.agentId,
|
|
42
43
|
getConfig: this.deps.getConfig,
|
|
43
44
|
toolExecutorConfig: this.deps.toolExecutorConfig,
|
|
44
|
-
authorizeToolCall:
|
|
45
|
+
authorizeToolCall: createNoninteractiveToolPolicy({
|
|
45
46
|
getConfig: this.deps.getConfig,
|
|
46
|
-
conversationId: opts.sessionMetadata?.parentConversationId,
|
|
47
47
|
agentId: this.deps.agentId
|
|
48
48
|
}).beforeToolCall,
|
|
49
49
|
buildChildTools: (childOpts) => {
|
|
@@ -34,8 +34,9 @@ export interface WorkflowExamplePrompt {
|
|
|
34
34
|
field: string;
|
|
35
35
|
text: string;
|
|
36
36
|
}
|
|
37
|
-
/** Locale-specific copy overrides; top-level
|
|
37
|
+
/** Locale-specific display copy overrides; top-level fields provide the default copy. */
|
|
38
38
|
export interface WorkflowLocaleCopy {
|
|
39
|
+
title?: string;
|
|
39
40
|
description?: string;
|
|
40
41
|
whenToUse?: string;
|
|
41
42
|
examplePrompts?: WorkflowExamplePrompt[];
|
|
@@ -51,7 +52,7 @@ export interface WorkflowSnapshotDefinition {
|
|
|
51
52
|
estimatedAgents?: WorkflowEstimatedAgents;
|
|
52
53
|
/** English-default example prompts for the gateway start dialog. */
|
|
53
54
|
examplePrompts?: WorkflowExamplePrompt[];
|
|
54
|
-
/**
|
|
55
|
+
/** Locale bundles keyed by BCP-47 language tag (e.g. `zh`). */
|
|
55
56
|
i18n?: Record<string, WorkflowLocaleCopy>;
|
|
56
57
|
}
|
|
57
58
|
export type WorkflowAgentStatus = 'queued' | 'running' | 'done' | 'error' | 'skipped';
|
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import { resolveEffectiveAgentProfile
|
|
1
|
+
import { resolveEffectiveAgentProfile } from "../../config/agent-profile.js";
|
|
2
2
|
import { AgentToolsFactory } from "../tools/factory.js";
|
|
3
3
|
//#region src/agent/workflow/workflow-child-tools.ts
|
|
4
4
|
/** Builds the tool set for workflow child agents (wired from gateway to avoid cycles). */
|
|
5
5
|
function buildWorkflowChildTools(childOptions) {
|
|
6
|
-
const
|
|
6
|
+
const config = childOptions.getConfig();
|
|
7
|
+
if (config && !childOptions.agentId) throw new Error("Workflow execution requires a configured Agent");
|
|
8
|
+
const profile = config && childOptions.agentId ? resolveEffectiveAgentProfile(childOptions.agentId) : void 0;
|
|
7
9
|
return new AgentToolsFactory({
|
|
8
10
|
workspace: childOptions.workspace,
|
|
9
11
|
bus: childOptions.bus,
|
|
10
|
-
getCurrentContext: () =>
|
|
11
|
-
conversationId: childOptions.
|
|
12
|
+
getCurrentContext: () => ({
|
|
13
|
+
conversationId: childOptions.conversationId,
|
|
12
14
|
channel: "workflow",
|
|
13
|
-
chatId: childOptions.
|
|
15
|
+
chatId: childOptions.conversationId,
|
|
14
16
|
origin: {
|
|
15
17
|
type: "system",
|
|
16
18
|
source: "workflow"
|
|
17
19
|
}
|
|
18
|
-
}
|
|
20
|
+
}),
|
|
19
21
|
getConfig: childOptions.getConfig,
|
|
20
22
|
getPrimaryModel: () => childOptions.model,
|
|
21
23
|
endpointTools: childOptions.endpointTools,
|
|
22
|
-
toolExecutorConfig:
|
|
24
|
+
toolExecutorConfig: {
|
|
25
|
+
...childOptions.toolExecutorConfig,
|
|
26
|
+
resolveTimeoutMs: (name) => childOptions.getConfig() && childOptions.agentId ? resolveEffectiveAgentProfile(childOptions.agentId).config.tools[name]?.timeoutMs : void 0
|
|
27
|
+
}
|
|
23
28
|
}).createAllTools({
|
|
24
29
|
workspace: childOptions.workspace,
|
|
25
30
|
getPrimaryModel: () => childOptions.model,
|
|
26
31
|
agentId: childOptions.agentId,
|
|
27
|
-
conversationId: childOptions.
|
|
32
|
+
conversationId: childOptions.conversationId,
|
|
28
33
|
disabledTools: profile?.tools.denied,
|
|
29
34
|
toolAllowlist: profile?.config.toolAllowlist
|
|
30
35
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { backupDatabaseBeforeCutover, init_conversation_backup } from "../../storage/sqlite/migrations/conversation-backup.js";
|
|
2
1
|
import { getXopcDatabase } from "../../storage/sqlite/connection.js";
|
|
3
2
|
import { runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
4
3
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
@@ -7,6 +6,7 @@ import { init_agent_config } from "../../agent-config/index.js";
|
|
|
7
6
|
import { BindingsSchema, init_binding_schema } from "../../routing/binding-schema.js";
|
|
8
7
|
import { AgentCatalogRepository, init_repository } from "../repository.js";
|
|
9
8
|
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
9
|
+
import { backupDatabaseBeforeCutover } from "../../storage/sqlite/migrations/conversation-backup.js";
|
|
10
10
|
import { copyFileSync, existsSync, readFileSync } from "node:fs";
|
|
11
11
|
import { createHash, randomUUID } from "node:crypto";
|
|
12
12
|
import { z } from "zod";
|
|
@@ -15,7 +15,6 @@ init_agent_config();
|
|
|
15
15
|
init_write_file_atomic();
|
|
16
16
|
init_binding_schema();
|
|
17
17
|
init_sqlite();
|
|
18
|
-
init_conversation_backup();
|
|
19
18
|
init_repository();
|
|
20
19
|
const MIGRATION_ID = "agent-catalog-sqlite-v1";
|
|
21
20
|
const LegacyAgentsConfigSchema = z.object({
|
|
@@ -217,10 +217,10 @@ export declare const AutomationStateSchema: z.ZodObject<{
|
|
|
217
217
|
runningRunId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
218
218
|
lastRunAtMs: z.ZodOptional<z.ZodNumber>;
|
|
219
219
|
lastRunStatus: z.ZodOptional<z.ZodEnum<{
|
|
220
|
-
failed: "failed";
|
|
221
|
-
succeeded: "succeeded";
|
|
222
220
|
queued: "queued";
|
|
223
221
|
cancelled: "cancelled";
|
|
222
|
+
failed: "failed";
|
|
223
|
+
succeeded: "succeeded";
|
|
224
224
|
running: "running";
|
|
225
225
|
cancelling: "cancelling";
|
|
226
226
|
timeout: "timeout";
|
|
@@ -444,10 +444,10 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
444
444
|
runningRunId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
445
445
|
lastRunAtMs: z.ZodOptional<z.ZodNumber>;
|
|
446
446
|
lastRunStatus: z.ZodOptional<z.ZodEnum<{
|
|
447
|
-
failed: "failed";
|
|
448
|
-
succeeded: "succeeded";
|
|
449
447
|
queued: "queued";
|
|
450
448
|
cancelled: "cancelled";
|
|
449
|
+
failed: "failed";
|
|
450
|
+
succeeded: "succeeded";
|
|
451
451
|
running: "running";
|
|
452
452
|
cancelling: "cancelling";
|
|
453
453
|
timeout: "timeout";
|
|
@@ -674,10 +674,10 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
674
674
|
runningRunId: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>>;
|
|
675
675
|
lastRunAtMs: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
676
676
|
lastRunStatus: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
677
|
-
failed: "failed";
|
|
678
|
-
succeeded: "succeeded";
|
|
679
677
|
queued: "queued";
|
|
680
678
|
cancelled: "cancelled";
|
|
679
|
+
failed: "failed";
|
|
680
|
+
succeeded: "succeeded";
|
|
681
681
|
running: "running";
|
|
682
682
|
cancelling: "cancelling";
|
|
683
683
|
timeout: "timeout";
|
|
@@ -901,10 +901,10 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
901
901
|
runningRunId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
902
902
|
lastRunAtMs: z.ZodOptional<z.ZodNumber>;
|
|
903
903
|
lastRunStatus: z.ZodOptional<z.ZodEnum<{
|
|
904
|
-
failed: "failed";
|
|
905
|
-
succeeded: "succeeded";
|
|
906
904
|
queued: "queued";
|
|
907
905
|
cancelled: "cancelled";
|
|
906
|
+
failed: "failed";
|
|
907
|
+
succeeded: "succeeded";
|
|
908
908
|
running: "running";
|
|
909
909
|
cancelling: "cancelling";
|
|
910
910
|
timeout: "timeout";
|
|
@@ -177,7 +177,7 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
177
177
|
nextRunAtMs?: number;
|
|
178
178
|
runningRunId?: string;
|
|
179
179
|
lastRunAtMs?: number;
|
|
180
|
-
lastRunStatus?: "
|
|
180
|
+
lastRunStatus?: "queued" | "cancelled" | "failed" | "succeeded" | "running" | "cancelling" | "timeout";
|
|
181
181
|
lastError?: string;
|
|
182
182
|
consecutiveFailures?: number;
|
|
183
183
|
};
|
|
@@ -68,24 +68,6 @@ for (const definition of [
|
|
|
68
68
|
"project",
|
|
69
69
|
"A Project was deleted."
|
|
70
70
|
],
|
|
71
|
-
[
|
|
72
|
-
"scenes",
|
|
73
|
-
"scene.created",
|
|
74
|
-
"scene",
|
|
75
|
-
"A Scene was created."
|
|
76
|
-
],
|
|
77
|
-
[
|
|
78
|
-
"scenes",
|
|
79
|
-
"scene.changed",
|
|
80
|
-
"scene",
|
|
81
|
-
"A Scene changed."
|
|
82
|
-
],
|
|
83
|
-
[
|
|
84
|
-
"scenes",
|
|
85
|
-
"scene.deleted",
|
|
86
|
-
"scene",
|
|
87
|
-
"A Scene was deleted."
|
|
88
|
-
],
|
|
89
71
|
[
|
|
90
72
|
"discussions",
|
|
91
73
|
"discussion.completed",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_node_sqlite, requireNodeSqlite } from "../infra/node-sqlite.js";
|
|
2
|
-
import { assertDatabaseOffline, init_conversation_backup } from "../storage/sqlite/migrations/conversation-backup.js";
|
|
3
2
|
import { expandWorkspacePathString, init_workspace_path } from "../config/workspace-path.js";
|
|
3
|
+
import { assertDatabaseOffline } from "../storage/sqlite/migrations/conversation-backup.js";
|
|
4
4
|
import { tmpdir } from "node:os";
|
|
5
5
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
6
6
|
import { constants, createReadStream, createWriteStream } from "node:fs";
|
|
@@ -10,7 +10,6 @@ import { pipeline } from "node:stream/promises";
|
|
|
10
10
|
import { Transform } from "node:stream";
|
|
11
11
|
//#region src/backup/archive.ts
|
|
12
12
|
init_node_sqlite();
|
|
13
|
-
init_conversation_backup();
|
|
14
13
|
init_workspace_path();
|
|
15
14
|
const FORMAT = "xopc-state-backup";
|
|
16
15
|
const VERSION = 1;
|
|
@@ -26,7 +26,7 @@ function registerAppContextCapability(dispatcher) {
|
|
|
26
26
|
const quota = Math.floor(16e3 / Math.max(1, snapshot.resourceRefs.length));
|
|
27
27
|
for (const reference of snapshot.resourceRefs) {
|
|
28
28
|
const domain = reference.kind === "local_app" ? "local_apps" : `${reference.kind}s`;
|
|
29
|
-
const row = (await dispatcher.call(`xopc.${domain}.get`, { id: reference.id }, context))[reference.kind === "
|
|
29
|
+
const row = (await dispatcher.call(`xopc.${domain}.get`, { id: reference.id }, context))[reference.kind === "local_app" ? "app" : reference.kind];
|
|
30
30
|
if (!row) throw new CapabilityError("INTERNAL", "Resource returned no context object");
|
|
31
31
|
let revision;
|
|
32
32
|
let text;
|
|
@@ -43,10 +43,6 @@ function registerAppContextCapability(dispatcher) {
|
|
|
43
43
|
revision = row.version;
|
|
44
44
|
text = String(row.brief ?? row.description ?? "");
|
|
45
45
|
break;
|
|
46
|
-
case "scene":
|
|
47
|
-
revision = row.revision;
|
|
48
|
-
text = String(row.goal ?? "");
|
|
49
|
-
break;
|
|
50
46
|
case "local_app":
|
|
51
47
|
revision = (await dispatcher.call("xopc.local_apps.validate", { id: reference.id }, context)).validation.sourceHash;
|
|
52
48
|
text = String(row.idea ?? row.description ?? "");
|
|
@@ -55,7 +51,7 @@ function registerAppContextCapability(dispatcher) {
|
|
|
55
51
|
if (revision === void 0 || String(revision) !== reference.revision) throw new CapabilityError("REVISION_CONFLICT", "A page resource changed; capture its current revision again");
|
|
56
52
|
resources.push({
|
|
57
53
|
reference,
|
|
58
|
-
title: String(row.title ?? row.name ??
|
|
54
|
+
title: String(row.title ?? row.name ?? reference.id),
|
|
59
55
|
text: text.slice(0, quota),
|
|
60
56
|
truncated: text.length > quota
|
|
61
57
|
});
|
|
@@ -3,10 +3,8 @@ import type { LocalAppService } from '../../local-apps/service.js';
|
|
|
3
3
|
import { type ProjectWriteCapabilityDeps } from '../../projects/capabilities/write.js';
|
|
4
4
|
import type { AutomationService } from '../../automations/service/automation-service.js';
|
|
5
5
|
import { type TaskWriteCapabilityDeps } from '../../tasks/capabilities/write.js';
|
|
6
|
-
import { CapabilityDispatcher
|
|
7
|
-
import type { SceneAccess } from '../../scenes/httpServices.js';
|
|
6
|
+
import { CapabilityDispatcher } from './dispatcher.js';
|
|
8
7
|
export declare function createProductDispatcher(getNotes?: () => NotesService | undefined, taskWrites?: TaskWriteCapabilityDeps & ProjectWriteCapabilityDeps & {
|
|
9
8
|
getAutomations?: () => AutomationService | undefined;
|
|
10
9
|
getLocalApps?: () => LocalAppService | undefined;
|
|
11
|
-
getSceneAccess?: (context: CapabilityContext) => SceneAccess | undefined;
|
|
12
10
|
}): CapabilityDispatcher;
|
|
@@ -15,8 +15,6 @@ import { registerAutomationReadCapabilities } from "../../automations/capabiliti
|
|
|
15
15
|
import { registerAutomationWriteCapabilities } from "../../automations/capabilities/write.js";
|
|
16
16
|
import { registerAutomationDraftCapabilities } from "../../automations/capabilities/drafts.js";
|
|
17
17
|
import { registerTaskWriteCapabilities } from "../../tasks/capabilities/write.js";
|
|
18
|
-
import { registerSceneReadCapabilities } from "../../scenes/capabilities/read.js";
|
|
19
|
-
import { registerSceneWriteCapabilities } from "../../scenes/capabilities/write.js";
|
|
20
18
|
import { registerSettingsCapability } from "./settings.js";
|
|
21
19
|
import { registerAppContextCapability } from "./app-context.js";
|
|
22
20
|
//#region src/capabilities/runtime/product.ts
|
|
@@ -25,10 +23,6 @@ function createProductDispatcher(getNotes, taskWrites) {
|
|
|
25
23
|
registerSettingsCapability(dispatcher);
|
|
26
24
|
registerAppContextCapability(dispatcher);
|
|
27
25
|
registerAgentCapabilities(dispatcher);
|
|
28
|
-
if (taskWrites?.getSceneAccess) {
|
|
29
|
-
registerSceneReadCapabilities(dispatcher, taskWrites.getSceneAccess);
|
|
30
|
-
registerSceneWriteCapabilities(dispatcher, taskWrites.getSceneAccess);
|
|
31
|
-
}
|
|
32
26
|
const localApps = taskWrites?.getLocalApps?.();
|
|
33
27
|
if (localApps) {
|
|
34
28
|
registerLocalAppReadCapabilities(dispatcher, localApps);
|
|
@@ -133,7 +133,7 @@ const ROOT_HELP_COMMANDS = [
|
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
name: "search",
|
|
136
|
-
description: "Manage web-search providers (brave / tavily / bing / searxng)"
|
|
136
|
+
description: "Manage web-search providers (brave / tavily / bing / searxng / deepseek)"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
name: "import [options] [source]",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* `xopc search` — manage web-search providers.
|
|
3
3
|
*
|
|
4
4
|
* Backed by `cfg.tools.web.search.providers[]` per `SearchProviderEntrySchema`.
|
|
5
|
-
* Adds entries idempotently keyed by `type` (brave / tavily / bing / searxng).
|
|
5
|
+
* Adds entries idempotently keyed by `type` (brave / tavily / bing / searxng / deepseek).
|
|
6
6
|
*/
|
|
7
7
|
import type { Config, SearchProviderEntry } from '../../config/schema.js';
|
|
8
|
-
declare const SEARCH_TYPES: readonly ["brave", "tavily", "bing", "searxng"];
|
|
8
|
+
declare const SEARCH_TYPES: readonly ["brave", "tavily", "bing", "searxng", "deepseek"];
|
|
9
9
|
type SearchType = (typeof SEARCH_TYPES)[number];
|
|
10
10
|
export declare function applySearchProviderUpsert(cfg: Config, entry: SearchProviderEntry): Config;
|
|
11
11
|
export declare function applySearchProviderRemove(cfg: Config, type: SearchType): Config;
|
|
@@ -13,14 +13,15 @@ import { Command } from "commander";
|
|
|
13
13
|
* `xopc search` — manage web-search providers.
|
|
14
14
|
*
|
|
15
15
|
* Backed by `cfg.tools.web.search.providers[]` per `SearchProviderEntrySchema`.
|
|
16
|
-
* Adds entries idempotently keyed by `type` (brave / tavily / bing / searxng).
|
|
16
|
+
* Adds entries idempotently keyed by `type` (brave / tavily / bing / searxng / deepseek).
|
|
17
17
|
*/
|
|
18
18
|
init_paths();
|
|
19
19
|
const SEARCH_TYPES = [
|
|
20
20
|
"brave",
|
|
21
21
|
"tavily",
|
|
22
22
|
"bing",
|
|
23
|
-
"searxng"
|
|
23
|
+
"searxng",
|
|
24
|
+
"deepseek"
|
|
24
25
|
];
|
|
25
26
|
function isSearchType(value) {
|
|
26
27
|
return SEARCH_TYPES.includes(value);
|
|
@@ -82,7 +83,7 @@ function summarizeEntry(entry) {
|
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
function createSearchCommand(_ctx) {
|
|
85
|
-
const cmd = new Command("search").description("Manage web-search providers (brave / tavily / bing / searxng)").addHelpText("after", formatExamples([
|
|
86
|
+
const cmd = new Command("search").description("Manage web-search providers (brave / tavily / bing / searxng / deepseek)").addHelpText("after", formatExamples([
|
|
86
87
|
"xopc search list",
|
|
87
88
|
"xopc search list --json",
|
|
88
89
|
"xopc search add brave --key brv-xxx",
|
|
@@ -114,7 +115,7 @@ function createSearchCommand(_ctx) {
|
|
|
114
115
|
console.log("");
|
|
115
116
|
console.log(colors.gray(`Supported: ${SEARCH_TYPES.join(", ")}`));
|
|
116
117
|
});
|
|
117
|
-
cmd.command("add <type>").description("Add or replace a search provider entry (idempotent by type)").option("--key <value>", "API key (brave / tavily / bing). Prompts securely if omitted.").option("--url <value>", "SearXNG instance URL
|
|
118
|
+
cmd.command("add <type>").description("Add or replace a search provider entry (idempotent by type)").option("--key <value>", "API key (brave / tavily / bing / deepseek). Prompts securely if omitted.").option("--url <value>", "SearXNG instance URL or optional DeepSeek API base URL").option("--dry-run", "Show the change without writing", false).option("--json", "Emit a single JSON task line", false).action(async (type, opts, command) => {
|
|
118
119
|
const dryRun = Boolean(opts.dryRun);
|
|
119
120
|
const json = Boolean(opts.json);
|
|
120
121
|
const t = type.trim().toLowerCase();
|
|
@@ -171,6 +172,7 @@ function createSearchCommand(_ctx) {
|
|
|
171
172
|
throw error;
|
|
172
173
|
}
|
|
173
174
|
entry.apiKey = key;
|
|
175
|
+
if (t === "deepseek" && opts.url) entry.url = opts.url.trim();
|
|
174
176
|
}
|
|
175
177
|
await runSetup({
|
|
176
178
|
configPath: resolveConfigPathFromCommand(command),
|
|
@@ -234,11 +236,11 @@ function createSearchCommand(_ctx) {
|
|
|
234
236
|
key: {
|
|
235
237
|
type: "string",
|
|
236
238
|
secret: true,
|
|
237
|
-
description: "API key (brave / tavily / bing)."
|
|
239
|
+
description: "API key (brave / tavily / bing / deepseek)."
|
|
238
240
|
},
|
|
239
241
|
url: {
|
|
240
242
|
type: "url",
|
|
241
|
-
description: "SearXNG instance URL
|
|
243
|
+
description: "SearXNG instance URL or optional DeepSeek HTTPS API base URL."
|
|
242
244
|
}
|
|
243
245
|
}
|
|
244
246
|
}
|
|
@@ -3,6 +3,7 @@ export declare const ComputerConfigSchema: z.ZodPrefault<z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4
4
|
maxActionsPerSession: z.ZodDefault<z.ZodNumber>;
|
|
5
5
|
maxModelRequests: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
maxRescuesPerSession: z.ZodDefault<z.ZodNumber>;
|
|
6
7
|
maxSessionDurationMs: z.ZodDefault<z.ZodNumber>;
|
|
7
8
|
idleGrantTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
8
9
|
}, z.core.$strict>>;
|
|
@@ -7,6 +7,7 @@ var init_config = __esmMin((() => {
|
|
|
7
7
|
enabled: z.boolean().default(false),
|
|
8
8
|
maxActionsPerSession: z.number().int().min(1).max(80).default(80),
|
|
9
9
|
maxModelRequests: z.number().int().min(1).max(120).default(120),
|
|
10
|
+
maxRescuesPerSession: z.number().int().min(0).max(3).default(1),
|
|
10
11
|
maxSessionDurationMs: z.number().int().min(1e3).max(9e5).default(9e5),
|
|
11
12
|
idleGrantTtlMs: z.number().int().min(1e3).max(3e5).default(3e5)
|
|
12
13
|
}).strict().prefault({});
|