@xopcai/xopc 0.0.468 → 0.0.470
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 +5 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agents-CIV2R_El.js → agents-DZftplJc.js} +3 -3
- package/dist/gateway/static/root/assets/{api-Cl08_xtM.js → api-BnS9d0p6.js} +1 -1
- package/dist/gateway/static/root/assets/{app-link-BkEO3eBe.js → app-link-CauYDM-y.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CncU5JvR.js → apps-page-CXKTWj1s.js} +1 -1
- package/dist/gateway/static/root/assets/arrow-down-to-line-C5D8Vt-L.js +1 -0
- package/dist/gateway/static/root/assets/{attachment-load-DrVGNxJm.js → attachment-load-C9iZLUHv.js} +1 -1
- package/dist/gateway/static/root/assets/attachment-preview-renderer-_6GhoCYk.js +12 -0
- package/dist/gateway/static/root/assets/attachment-utils-core-BPYdUI6y.js +1 -0
- package/dist/gateway/static/root/assets/{automation-task-card-sR61FFLn.js → automation-task-card-BNT3n0qu.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BNzj3R7A.js → automations-page-DqrAOReO.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BYmFhO8E.js +9 -0
- package/dist/gateway/static/root/assets/binary-plugins-CnFVuJtL.js +2 -0
- package/dist/gateway/static/root/assets/{block-editor-B4Yqbxab.js → block-editor-jy5CCmhH.js} +9 -9
- package/dist/gateway/static/root/assets/{capabilities-CBSMm_jo.js → capabilities-CaJjMTli.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-YmBD7oK8.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-XgIRdqCb.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DfyND0IO.js +8 -0
- package/dist/gateway/static/root/assets/channels-DwUmMnA1.js +1 -0
- package/dist/gateway/static/root/assets/{chat-chart-block-CS-cORJt.js → chat-chart-block-B_c5sy7q.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-DfFXhDRv.js +72 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-D6LH3W5H.js → chat-terminal-dock-Dn7Cm1O4.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-CxeXJKxg.js → connected-providers-grid-DUHMZjyV.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-Bsec3-eZ.js → connector-service-page-DLbBblN2.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-C0ZCUtxF.js → connectors-page-HHGB3r3Q.js} +1 -1
- package/dist/gateway/static/root/assets/constants-D5Z-mUto.js +1 -0
- package/dist/gateway/static/root/assets/{device-pairing-wizard-diuSsk-H.js → device-pairing-wizard-eWeHH6Ru.js} +1 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-BqtUnmq-.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DrpE2lQ3.js → extension-debug-page-DIAyDA-a.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-hr60GwXQ.js → extension-iframe-host-CCe4R7L7.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-aoF3x4-X.js → extension-message-router-BD0ZamBV.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BfM8zli6.js → extension-page-C09dlV3J.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-BcSgVeKW.js → extension-provider-BhluafoX.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Db5t2Mz0.js → extension-settings-page-CB8KLYoG.js} +1 -1
- package/dist/gateway/static/root/assets/file-CStvVK2S.js +1 -0
- package/dist/gateway/static/root/assets/{file-BqMS_3DT.js → file-code-corner-byQA1VfD.js} +1 -1
- package/dist/gateway/static/root/assets/file-icon-N6WjUhq_.js +1 -0
- package/dist/gateway/static/root/assets/file-tree-CYUkQR1t.js +1 -0
- package/dist/gateway/static/root/assets/{home-page-DsS2UT08.js → home-page-8KwhWlYt.js} +3 -3
- package/dist/gateway/static/root/assets/index-CQNwlXpQ.js +11 -0
- package/dist/gateway/static/root/assets/index-CZUfwwLp.css +1 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-0_PeJJqO.js → install-connector-dialog-BZjodnUC.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-DmzgjJNj.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-yBqRl5Bi.js → local-apps-page-Ct8z2B7R.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-CH9amuGc.js +2 -0
- package/dist/gateway/static/root/assets/{management-settings-D9HGIYXx.js → management-settings-CUQd0FJ3.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-CiGdWuN3.js → markdown-view-Dm01GIXv.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-C2lp7UmI.js → media-plugins-jsWNdARw.js} +1 -1
- package/dist/gateway/static/root/assets/models-hub-cache-B2QcrY4n.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-DeFb2HEC.js +7 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-DUzoWZEe.js +1 -0
- package/dist/gateway/static/root/assets/notes-api-BMSPkAm8.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-nvqpOeHp.js +8 -0
- package/dist/gateway/static/root/assets/{oauth-provider-connect-BW7zcXfb.js → oauth-provider-connect-BexlZuZ4.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-Cw58-5P3.js → page-context-capture-button-Cn4zi3Mt.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-1-lflHAx.js +1 -0
- package/dist/gateway/static/root/assets/personal-avatar-CM3vUGhL.js +1 -0
- package/dist/gateway/static/root/assets/personal-avatar-DsEp8QJ7.css +1 -0
- package/dist/gateway/static/root/assets/personal-page-HFjWZacf.js +1 -0
- package/dist/gateway/static/root/assets/{personal-profile-settings-CDrzvI35.js → personal-profile-settings-CNI5Eor6.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-CoZ3qWSr.js → personal-settings-panel-BcrpYRn9.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-UHVwbC3H.js → phone-model-connection-DKvOEjWH.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-fS2IT-dK.js → phone-settings-page-DvX6okzz.js} +1 -1
- package/dist/gateway/static/root/assets/playback-coordinator-CWHIf0wr.js +1 -0
- package/dist/gateway/static/root/assets/presentation-D-Ui_vVA.js +1 -0
- package/dist/gateway/static/root/assets/preview-runtime-RnBDP-Lq.js +15 -0
- package/dist/gateway/static/root/assets/product-automation-feedback-xAcXeJM2.js +7 -0
- package/dist/gateway/static/root/assets/product-delivery-4gEqUIsK.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-BMJ2x5m3.js → product-open-page-DXwOPgRP.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-lkkZPvMa.js → product-preview-content-DiQbeaCK.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-DtUBJGs5.js → product-preview-modal-BU7Qojpq.js} +2 -2
- package/dist/gateway/static/root/assets/project-detail-page-Dr5_WPRB.js +7 -0
- package/dist/gateway/static/root/assets/{projects-page-Dua6taaG.js → projects-page-DGATZB23.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-B6eZLEnh.js → providers-api-BXa2Aheb.js} +1 -1
- package/dist/gateway/static/root/assets/recording-upload-CQdhrRq3.js +1 -0
- package/dist/gateway/static/root/assets/{remote-access-hub-Dy3-oGK1.js → remote-access-hub-_7tmWand.js} +1 -1
- package/dist/gateway/static/root/assets/right-workspace-store-NXMrEuwH.js +1 -0
- package/dist/gateway/static/root/assets/route-preload-D-pdVwIK.js +2 -0
- package/dist/gateway/static/root/assets/routine-panel-rjq-8nZ8.js +2 -0
- package/dist/gateway/static/root/assets/scan-search-CSIGkseh.js +1 -0
- package/dist/gateway/static/root/assets/{service-recommendation-list-CsU74h1b.js → service-recommendation-list-2UOjV0Mx.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-BVS3zxRZ.js +22 -0
- package/dist/gateway/static/root/assets/{settings-page-ByFNIBfp.js → settings-page-bCW4rave.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-Bsn4Wa4p.js → setup-interaction-page-BYXDX0F2.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-CstjOb7g.js → setup-status-panel-Bhda3jS2.js} +1 -1
- package/dist/gateway/static/root/assets/share-preview-page-nzWjWhqF.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-LB3SYKFS.js +1 -0
- package/dist/gateway/static/root/assets/sheet-C2H8iR8Y.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-CkkHufmv.js → skills-page-CfhEcU8L.js} +1 -1
- package/dist/gateway/static/root/assets/space-api-DaKpHc_7.js +1 -0
- package/dist/gateway/static/root/assets/space-page-BXyQdUvp.js +2 -0
- package/dist/gateway/static/root/assets/star-BuMAkjC9.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-gffrDRvW.js +3 -0
- package/dist/gateway/static/root/assets/task-header-title-DwtjUOBg.js +1 -0
- package/dist/gateway/static/root/assets/{task-result-evidence-dtN1sSjU.js → task-result-evidence-Bmgta9z9.js} +1 -1
- package/dist/gateway/static/root/assets/tasks-BIehlq7k.js +1 -0
- package/dist/gateway/static/root/assets/turn-outcome-BSbEJx8h.js +1 -0
- package/dist/gateway/static/root/assets/use-composer-attachments-sszsCdh5.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-D4b4fDeu.js +1 -0
- package/dist/gateway/static/root/assets/use-personal-profile-CNPszzzT.js +1 -0
- package/dist/gateway/static/root/assets/use-personal-work-C-rw8XVO.js +1 -0
- package/dist/gateway/static/root/assets/{use-realtime-voice-lRHVixh4.js → use-realtime-voice-cugjs8cK.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-DrWnW1aA.js → use-workspace-tree-Crfx5ctU.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-Bw1_PGdD.js → user-model-page-BvnLbTYx.js} +1 -1
- package/dist/gateway/static/root/assets/video-generation-Cec49Jwg.js +1 -0
- package/dist/gateway/static/root/assets/voice-player-store-DZGlzjva.js +1 -0
- package/dist/gateway/static/root/assets/voice-settings-BzfNK5Jm.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DcZS4OMj.js → work-discovery-overlay-DpEYgcG2.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-CZF9iWPT.js → work-discovery-page-DappIHQq.js} +1 -1
- package/dist/gateway/static/root/assets/workspace-api-g-wCKoQU.js +2 -0
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DxaxVC3q.js +1 -0
- package/dist/gateway/static/root/assets/workspace-preview-store-DoIjn_2j.js +1 -0
- package/dist/gateway/static/root/index.html +90 -77
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/automations.js +7 -0
- package/dist/packages/gateway-contract/src/capabilities.js +1 -1
- package/dist/packages/gateway-contract/src/clarifications.js +20 -2
- package/dist/packages/gateway-contract/src/index.js +6 -4
- package/dist/packages/gateway-contract/src/space.js +23 -0
- package/dist/packages/gateway-contract/src/task-lifecycle.js +1 -0
- package/dist/packages/gateway-contract/src/task-result-delivery.js +1 -0
- package/dist/packages/gateway-contract/src/task-runs.js +1 -0
- package/dist/packages/gateway-contract/src/tasks.js +118 -6
- package/dist/packages/gateway-contract/src/turn-outcome.js +16 -2
- package/dist/packages/gateway-contract/src/video-generation.js +29 -4
- package/dist/src/agent/agent-manager.js +2 -2
- package/dist/src/agent/embedded/agent-profile-context.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/orchestration/delegation-budget.d.ts +2 -2
- package/dist/src/agent/orchestration/turn-recovery.d.ts +12 -3
- package/dist/src/agent/orchestration/turn-recovery.js +25 -6
- package/dist/src/agent/service/process-direct-streaming.js +1 -1
- package/dist/src/agent/service/webchat-tts.js +1 -1
- package/dist/src/agent/service.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +1 -1
- package/dist/src/agent/tools/apply-patch.js +1 -1
- package/dist/src/agent/tools/factory.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +1 -0
- package/dist/src/agent/tools/language-diagnostics.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.d.ts +1 -0
- package/dist/src/agent/tools/personal-task-tool.js +12 -7
- package/dist/src/agent/tools/publish-artifacts.js +2 -1
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +1 -0
- package/dist/src/agent/tools/tool-media.d.ts +3 -1
- package/dist/src/agent/tools/tool-media.js +2 -0
- package/dist/src/agent/tools/xopc-use-tool.js +21 -4
- package/dist/src/agent-catalog/test-support.js +1 -1
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/capabilities/write.d.ts +30 -6
- package/dist/src/automations/capabilities/write.js +2 -2
- package/dist/src/automations/configuration-conversation.js +1 -1
- package/dist/src/automations/domain/types.d.ts +6 -0
- package/dist/src/automations/domain/validation.d.ts +60 -12
- package/dist/src/automations/domain/validation.js +7 -0
- package/dist/src/automations/draft/automation-draft-validator.d.ts +12 -3
- package/dist/src/automations/draft/automation-draft-validator.js +1 -0
- package/dist/src/automations/service/action-executor.js +14 -2
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/computer/diagnostics.d.ts +9 -9
- package/dist/src/computer/errors.d.ts +2 -2
- package/dist/src/computer/evaluation.d.ts +7 -7
- package/dist/src/computer/runtime.d.ts +4 -4
- package/dist/src/config/schema.d.ts +2 -2
- package/dist/src/discussions/action-tasks.d.ts +2 -2
- package/dist/src/execution-environments/local-worktree-manager.js +1 -1
- package/dist/src/extensions/agent-plugins/inventory.d.ts +2 -2
- package/dist/src/extensions/agent-plugins/setup.d.ts +3 -3
- package/dist/src/gateway/hono/routes/commands-skills.js +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +2 -2
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/music-generation.js +2 -0
- package/dist/src/gateway/hono/routes/personal-agent.js +214 -5
- package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
- package/dist/src/gateway/hono/routes/space.d.ts +3 -0
- package/dist/src/gateway/hono/routes/space.js +105 -0
- package/dist/src/gateway/hono/routes/tasks.js +27 -28
- package/dist/src/gateway/hono/routes/video-generation.js +8 -5
- package/dist/src/gateway/html-preview-shell.d.ts +1 -1
- package/dist/src/gateway/html-preview-shell.js +3 -0
- package/dist/src/gateway/media-access.js +2 -2
- package/dist/src/gateway/security/gateway-scopes.js +2 -0
- package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
- package/dist/src/gateway/service.d.ts +1 -0
- package/dist/src/gateway/service.js +10 -3
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.d.ts +2 -0
- package/dist/src/gateway/xopc-cloud-capability-setup.js +18 -1
- package/dist/src/home-intelligence/follow-ups.js +2 -1
- package/dist/src/home-intelligence/routines.js +1 -1
- package/dist/src/local-apps/automation-proposals.d.ts +54 -12
- package/dist/src/local-apps/capabilities/projections.d.ts +7 -7
- package/dist/src/local-apps/preview-fixtures.d.ts +1 -1
- package/dist/src/media/session-references.d.ts +4 -1
- package/dist/src/media/session-references.js +40 -8
- package/dist/src/music-generation/artifact.js +3 -1
- package/dist/src/music-generation/providers.js +26 -15
- package/dist/src/music-generation/repository.js +8 -1
- package/dist/src/music-generation/xopc-cloud.d.ts +2 -0
- package/dist/src/music-generation/xopc-cloud.js +38 -0
- package/dist/src/personal-agent/capability-service.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +1 -1
- package/dist/src/personal-agent/prompt-context.js +1 -1
- package/dist/src/personal-agent/prompts.js +1 -1
- package/dist/src/personal-agent/reply-composer.js +16 -7
- package/dist/src/personal-agent/repository.js +1 -1
- package/dist/src/personal-agent/request-delivery.js +17 -7
- package/dist/src/personal-agent/request-service.js +6 -10
- package/dist/src/personal-agent/result-extraction.js +13 -13
- package/dist/src/personal-agent/schedules.d.ts +9 -0
- package/dist/src/personal-agent/schedules.js +44 -0
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/providers/model-catalog-persistence.js +6 -1
- package/dist/src/providers/model-catalog-store.js +1 -0
- package/dist/src/providers/model-catalog-types.d.ts +2 -0
- package/dist/src/providers/xopc-cloud-media-manifest.d.ts +24 -0
- package/dist/src/providers/xopc-cloud-media-manifest.js +28 -0
- package/dist/src/providers/xopc-cloud-media.d.ts +28 -0
- package/dist/src/providers/xopc-cloud-media.js +67 -0
- package/dist/src/providers/xopc-cloud-model-source.js +4 -0
- package/dist/src/runtime-tools/archive.js +1 -1
- package/dist/src/runtime-tools/manager.js +1 -1
- package/dist/src/runtime-tools/phone-dependencies.js +1 -1
- package/dist/src/session/client-history.d.ts +4 -1
- package/dist/src/session/client-history.js +18 -0
- package/dist/src/session/compact-history.js +30 -1
- package/dist/src/session/turn-outcome-projector.js +1 -1
- package/dist/src/space/ingest.d.ts +36 -0
- package/dist/src/space/ingest.js +149 -0
- package/dist/src/space/repository.d.ts +39 -0
- package/dist/src/space/repository.js +325 -0
- package/dist/src/space/worker.d.ts +14 -0
- package/dist/src/space/worker.js +199 -0
- package/dist/src/storage/sqlite/clarification-wait-repository.js +7 -4
- package/dist/src/storage/sqlite/row-mappers.d.ts +1 -0
- package/dist/src/storage/sqlite/row-mappers.js +9 -2
- package/dist/src/storage/sqlite/schema.d.ts +2 -2
- package/dist/src/storage/sqlite/schema.js +8 -7
- package/dist/src/storage/sqlite/schema.sql +103 -0
- package/dist/src/storage/sqlite/transcript-repository.js +8 -0
- package/dist/src/storage/sqlite/upgrades/279_task_model_cutover.sql +288 -0
- package/dist/src/storage/sqlite/upgrades/280_space.sql +61 -0
- package/dist/src/tasks/capabilities/management.d.ts +15 -2
- package/dist/src/tasks/capabilities/management.js +8 -2
- package/dist/src/tasks/capabilities/read.js +14 -2
- package/dist/src/tasks/capabilities/relations.d.ts +13 -7
- package/dist/src/tasks/capabilities/write.d.ts +118 -2
- package/dist/src/tasks/capabilities/write.js +2 -0
- package/dist/src/tasks/home-query-service.js +7 -9
- package/dist/src/tasks/task-allocation-service.js +2 -2
- package/dist/src/tasks/task-application-service.d.ts +8 -2
- package/dist/src/tasks/task-application-service.js +94 -27
- package/dist/src/tasks/task-collaboration-repository.js +12 -1
- package/dist/src/tasks/task-context-assembler.js +9 -3
- package/dist/src/tasks/task-contract-planner.js +1 -3
- package/dist/src/tasks/task-conversation-summary.d.ts +33 -2
- package/dist/src/tasks/task-conversation-summary.js +3 -1
- package/dist/src/tasks/task-criterion-review-repository.d.ts +31 -2
- package/dist/src/tasks/task-criterion-review-repository.js +70 -23
- package/dist/src/tasks/task-deliverables.d.ts +7 -0
- package/dist/src/tasks/task-deliverables.js +112 -0
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-instruction-sequence.js +10 -3
- package/dist/src/tasks/task-json-acceptance.js +3 -5
- package/dist/src/tasks/task-origin-repository.d.ts +99 -1
- package/dist/src/tasks/task-origin-repository.js +67 -5
- package/dist/src/tasks/task-read-model-projector.d.ts +4 -1
- package/dist/src/tasks/task-read-model-projector.js +123 -9
- package/dist/src/tasks/task-repository.d.ts +4 -1
- package/dist/src/tasks/task-repository.js +34 -11
- package/dist/src/tasks/task-research-repair.d.ts +2 -2
- package/dist/src/tasks/task-research-result.d.ts +1 -0
- package/dist/src/tasks/task-research-result.js +13 -3
- package/dist/src/tasks/task-result-delivery-repository.d.ts +4 -3
- package/dist/src/tasks/task-result-delivery-repository.js +35 -17
- package/dist/src/tasks/task-result-delivery-service.js +22 -7
- package/dist/src/tasks/task-result-versions.d.ts +11 -0
- package/dist/src/tasks/task-result-versions.js +34 -0
- package/dist/src/tasks/task-run-coordinator.js +28 -15
- package/dist/src/tasks/task-run-dispatcher.js +29 -4
- package/dist/src/tasks/task-run-repository.d.ts +2 -0
- package/dist/src/tasks/task-run-repository.js +62 -19
- package/dist/src/tasks/task-workspace-verification.d.ts +16 -0
- package/dist/src/tasks/task-workspace-verification.js +95 -0
- package/dist/src/tui/backends/embedded-backend.js +2 -2
- package/dist/src/video-generation/artifact.js +3 -1
- package/dist/src/video-generation/drafts.js +4 -0
- package/dist/src/video-generation/providers.d.ts +1 -0
- package/dist/src/video-generation/providers.js +37 -5
- package/dist/src/video-generation/repository.js +8 -1
- package/dist/src/video-generation/settings.d.ts +1 -0
- package/dist/src/video-generation/settings.js +10 -4
- package/dist/src/voice/realtime/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/attachment-preview-renderer-DdOEgexg.js +0 -12
- package/dist/gateway/static/root/assets/attachment-utils-core-BIOUBrpT.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-BWpA-X_S.js +0 -9
- package/dist/gateway/static/root/assets/binary-plugins-BjEE5sVq.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-EmBa4Blq.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-BQf7oyqc.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-hlByP8SE.js +0 -8
- package/dist/gateway/static/root/assets/channels-oyMymJDx.js +0 -1
- package/dist/gateway/static/root/assets/chat-page-hcsqrv-7.js +0 -71
- package/dist/gateway/static/root/assets/constants-Bg1wM2nv.js +0 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-CVQ7q0DU.js +0 -1
- package/dist/gateway/static/root/assets/file-tree-CFlZnV3Y.js +0 -1
- package/dist/gateway/static/root/assets/index-DFa0pZhC.js +0 -11
- package/dist/gateway/static/root/assets/index-DHPaL7Ku.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-OSinc6m6.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-DeqzkJiF.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-BJxQ_Jd5.js +0 -2
- package/dist/gateway/static/root/assets/models-hub-cache-CmdULYFt.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-CVEG1JdF.js +0 -7
- package/dist/gateway/static/root/assets/note-image-lightbox-WA8FiHsm.js +0 -1
- package/dist/gateway/static/root/assets/notes-api-BQXOYFQ5.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-Cc-c1Yhg.js +0 -8
- package/dist/gateway/static/root/assets/page-header-store-DwFwq_lI.js +0 -1
- package/dist/gateway/static/root/assets/personal-avatar-B-Oes3ef.js +0 -1
- package/dist/gateway/static/root/assets/personal-avatar-BUCb7OiW.css +0 -1
- package/dist/gateway/static/root/assets/personal-page-DWPu-iwK.js +0 -1
- package/dist/gateway/static/root/assets/phone-DdhTnt6X.js +0 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-DrBclzH1.js +0 -7
- package/dist/gateway/static/root/assets/product-delivery-CnvCn9L-.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-DGFUj6jS.js +0 -7
- package/dist/gateway/static/root/assets/recording-upload-DXxD6grq.js +0 -1
- package/dist/gateway/static/root/assets/right-workspace-store-BzXnZDK5.js +0 -1
- package/dist/gateway/static/root/assets/route-preload-8KCgPcjp.js +0 -2
- package/dist/gateway/static/root/assets/routine-panel-BALhliq6.js +0 -2
- package/dist/gateway/static/root/assets/session-manager-Cby6Nkib.js +0 -25
- package/dist/gateway/static/root/assets/share-preview-page-9pOnypJv.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-CJdVDQqf.js +0 -1
- package/dist/gateway/static/root/assets/star-CnYNmpLd.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-BjBkKeIf.js +0 -3
- package/dist/gateway/static/root/assets/tasks-BTLabOMp.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-BEYkb8cs.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-CQeo2Ztn.js +0 -15
- package/dist/gateway/static/root/assets/use-personal-profile-CKm5FaTl.js +0 -1
- package/dist/gateway/static/root/assets/video-generation-D08uZbsu.js +0 -1
- package/dist/gateway/static/root/assets/voice-settings-CssuMBjt.js +0 -1
- package/dist/gateway/static/root/assets/with-selector-xonYxPoM.js +0 -1
- package/dist/gateway/static/root/assets/workspace-api-BfApIXLw.js +0 -2
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-BRhsCs1S.js +0 -1
- package/dist/gateway/static/root/assets/workspace-preview-store-BrofEVle.js +0 -1
|
@@ -6,8 +6,8 @@ import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
|
6
6
|
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
7
7
|
import { persistToolMedia } from "./tool-media.js";
|
|
8
8
|
import { basename, isAbsolute, relative, sep } from "node:path";
|
|
9
|
-
import { Type } from "@sinclair/typebox";
|
|
10
9
|
import { realpath } from "node:fs/promises";
|
|
10
|
+
import { Type } from "@sinclair/typebox";
|
|
11
11
|
//#region src/agent/tools/publish-artifacts.ts
|
|
12
12
|
init_src();
|
|
13
13
|
const PublishArtifactsSchema = Type.Object({ paths: Type.Array(Type.String({ minLength: 1 }), {
|
|
@@ -49,6 +49,7 @@ async function publishArtifactPaths(params) {
|
|
|
49
49
|
kind,
|
|
50
50
|
mimeType: media.mimeType,
|
|
51
51
|
sizeBytes: media.size,
|
|
52
|
+
sha256: media.sha256,
|
|
52
53
|
availability: "available",
|
|
53
54
|
location: "artifact_store",
|
|
54
55
|
capabilities: kind === "archive" || kind === "file" ? ["download"] : ["preview", "download"],
|
|
@@ -5,8 +5,8 @@ import { checkedFilePath, readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { execFile } from "node:child_process";
|
|
7
7
|
import { promisify } from "node:util";
|
|
8
|
-
import { Type } from "@sinclair/typebox";
|
|
9
8
|
import { lstat, readlink, realpath } from "node:fs/promises";
|
|
9
|
+
import { Type } from "@sinclair/typebox";
|
|
10
10
|
//#region src/agent/tools/review-workspace.ts
|
|
11
11
|
const exec = promisify(execFile);
|
|
12
12
|
function createReviewWorkspaceTool(workspace) {
|
|
@@ -74,6 +74,7 @@ function createSendMediaTool(workspace, bus, getContext) {
|
|
|
74
74
|
kind: media.type === "photo" ? "image" : media.type === "video" ? "video" : media.type === "audio" ? "audio" : turnOutcomeKindFromFileName(media.name),
|
|
75
75
|
mimeType: media.mimeType,
|
|
76
76
|
sizeBytes: media.size,
|
|
77
|
+
sha256: media.sha256,
|
|
77
78
|
availability: "available",
|
|
78
79
|
location: "artifact_store",
|
|
79
80
|
capabilities: ["preview", "download"],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MEDIA_ARTIFACT_MAX_BYTES, mimeTypeFromMediaPath, saveMediaBuffer } from "../../media/store.js";
|
|
2
2
|
import { sniffImageMimeType } from "../image/generation/image-assets.js";
|
|
3
3
|
import { basename } from "node:path";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
4
5
|
//#region src/agent/tools/tool-media.ts
|
|
5
6
|
function hasImageMagic(buffer) {
|
|
6
7
|
if (buffer.length >= 8 && buffer.subarray(0, 8).equals(Buffer.from([
|
|
@@ -49,6 +50,7 @@ async function persistToolMedia(params) {
|
|
|
49
50
|
mimeType: saved.contentType,
|
|
50
51
|
name,
|
|
51
52
|
size: saved.size,
|
|
53
|
+
sha256: createHash("sha256").update(params.buffer).digest("hex"),
|
|
52
54
|
uri: saved.uri,
|
|
53
55
|
path: saved.path
|
|
54
56
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { runWithActivityContext } from "../../activity/context.js";
|
|
2
2
|
import { init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
3
|
-
import { normalizeSpecialistRequirements } from "../../../packages/gateway-contract/src/specialists.js";
|
|
4
|
-
import { TaskCommandSchema, TaskContextInputSchema } from "../../../packages/gateway-contract/src/tasks.js";
|
|
5
3
|
import { ChatPreviewCreateInputSchema, ChatPreviewReviseInputSchema } from "../../../packages/gateway-contract/src/chat-previews.js";
|
|
6
4
|
import { appendProductDeliveryText } from "../../../packages/gateway-contract/src/product-delivery.js";
|
|
5
|
+
import { normalizeSpecialistRequirements } from "../../../packages/gateway-contract/src/specialists.js";
|
|
6
|
+
import { TaskCommandSchema, TaskContextInputSchema, TaskWorkspaceDestinationSchema } from "../../../packages/gateway-contract/src/tasks.js";
|
|
7
7
|
import { AutomationCancelOutputSchema, AutomationDeleteOutputSchema, AutomationMutationOutputSchema, AutomationReadAllInputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRecoveryOutputSchema, AutomationRunMutationOutputSchema, CapabilityCallSchema, CapabilityResourceInputSchema, NoteDeleteOutputSchema, NoteGetOutputSchema, ProjectCreateInputSchema, ProjectDeleteInputSchema, ProjectDeleteOutputSchema, ProjectEditInputSchema, ProjectMilestoneCreateInputSchema, ProjectMilestoneDeleteInputSchema, ProjectMilestoneDeleteOutputSchema, ProjectMilestoneOutputSchema, ProjectMilestoneUpdateInputSchema, ProjectMutationOutputSchema, ProjectResolveWorkspaceInputSchema, ProjectResolveWorkspaceOutputSchema, ProjectSetPinnedInputSchema, ProjectUpdateCreateInputSchema, ProjectUpdateOutputSchema, TaskRunCancelInputSchema, TaskRunCancelOutputSchema, TaskRunFeedbackInputSchema, TaskRunFeedbackOutputSchema } from "../../../packages/gateway-contract/src/capabilities.js";
|
|
8
8
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
9
9
|
import { TaskRepository } from "../../tasks/task-repository.js";
|
|
@@ -15,9 +15,9 @@ import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-rou
|
|
|
15
15
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
16
16
|
import { hasUnlocalizedTaskText, resolveTaskLocale } from "../../tasks/task-language.js";
|
|
17
17
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
18
|
-
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
19
18
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
20
19
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
20
|
+
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
21
21
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
22
22
|
import { getAutomationSetup } from "../../automations/configuration-conversation.js";
|
|
23
23
|
import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
|
|
@@ -1433,6 +1433,7 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
|
|
|
1433
1433
|
const baseContract = defineTaskContract(objective, taskLocale);
|
|
1434
1434
|
const contractFields = [
|
|
1435
1435
|
"expectedOutputs",
|
|
1436
|
+
"workspaceOutputs",
|
|
1436
1437
|
"acceptanceCriteria",
|
|
1437
1438
|
"constraints",
|
|
1438
1439
|
"approvalRequired",
|
|
@@ -1463,6 +1464,22 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
|
|
|
1463
1464
|
error: "Invalid acceptancePolicy"
|
|
1464
1465
|
};
|
|
1465
1466
|
const originConversationId = deps.getCurrentConversationId?.();
|
|
1467
|
+
const workspaceAgentId = originConversationId ? deps.getCurrentAgentId?.() : void 0;
|
|
1468
|
+
const workspaceId = projectId ? `project:${projectId}` : workspaceAgentId ? `agent:${workspaceAgentId}` : "";
|
|
1469
|
+
const workspaceOutputs = args.workspaceOutputs === void 0 ? [] : args.workspaceOutputs;
|
|
1470
|
+
if (!Array.isArray(workspaceOutputs) || workspaceOutputs.length > 20) return {
|
|
1471
|
+
ok: false,
|
|
1472
|
+
error: "Invalid workspaceOutputs"
|
|
1473
|
+
};
|
|
1474
|
+
const outputDestinations = workspaceOutputs.map((relativePath) => TaskWorkspaceDestinationSchema.safeParse({
|
|
1475
|
+
kind: "workspace_file",
|
|
1476
|
+
workspaceId,
|
|
1477
|
+
relativePath
|
|
1478
|
+
}));
|
|
1479
|
+
if (outputDestinations.some((target) => !target.success)) return {
|
|
1480
|
+
ok: false,
|
|
1481
|
+
error: "Use explicit paths relative to the task workspace"
|
|
1482
|
+
};
|
|
1466
1483
|
const conversationId = trimString(args.conversationId) ?? originConversationId;
|
|
1467
1484
|
const config = deps.getConfig?.();
|
|
1468
1485
|
const projectService = deps.getProjectService?.();
|
|
@@ -1528,7 +1545,7 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
|
|
|
1528
1545
|
contract: {
|
|
1529
1546
|
...contract,
|
|
1530
1547
|
acceptancePolicy,
|
|
1531
|
-
outputDestinations: []
|
|
1548
|
+
outputDestinations: outputDestinations.flatMap((target) => target.success ? [target.data] : [])
|
|
1532
1549
|
},
|
|
1533
1550
|
dependencies: dependsOnTaskIds,
|
|
1534
1551
|
context: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { closeXopcDatabase, openXopcDatabase } from "../storage/sqlite/connection.js";
|
|
2
|
-
import "../storage/sqlite/index.js";
|
|
3
2
|
import { AgentCatalogRepository, init_repository } from "./repository.js";
|
|
3
|
+
import "../storage/sqlite/index.js";
|
|
4
4
|
//#region src/agent-catalog/test-support.ts
|
|
5
5
|
init_repository();
|
|
6
6
|
/** Build an isolated, ready in-memory Agent catalog for a unit test. */
|
|
@@ -65,7 +65,7 @@ function createSelectedTask(input, actor, selection) {
|
|
|
65
65
|
previousSelectionId: selection.previousSelectionId,
|
|
66
66
|
status: "task_linked"
|
|
67
67
|
});
|
|
68
|
-
const result = new TaskApplicationService().create(input, actor);
|
|
68
|
+
const result = new TaskApplicationService().create(input, actor, { resultPolicy: "selected" });
|
|
69
69
|
repository.link(record.id, {
|
|
70
70
|
taskId: result.model?.task.id,
|
|
71
71
|
runId: result.ok ? result.runId : void 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AutomationDraftOutputSchema, AutomationDraftRequestSchema, AutomationRepairDraftOutputSchema, AutomationSimulationSchema } from "../../../packages/gateway-contract/src/capabilities.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
3
4
|
import { resolveAutomationSafetyForTrust } from "../../user-context/trust-policy.js";
|
|
4
5
|
import { getUserTrustPolicy } from "../../storage/sqlite/user-trust-repository.js";
|
|
5
6
|
import "../../storage/sqlite/index.js";
|
|
6
|
-
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
7
7
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
8
8
|
import { ExternalEffectNotAppliedError } from "../../capabilities/runtime/external-operations.js";
|
|
9
9
|
import { defineExternalCapability, defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
@@ -41,6 +41,15 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
|
|
|
41
41
|
name: z.ZodString;
|
|
42
42
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
+
kind: z.ZodLiteral<"personal_task">;
|
|
45
|
+
conversationId: z.ZodString;
|
|
46
|
+
agentId: z.ZodString;
|
|
47
|
+
instruction: z.ZodString;
|
|
48
|
+
locale: z.ZodEnum<{
|
|
49
|
+
zh: "zh";
|
|
50
|
+
en: "en";
|
|
51
|
+
}>;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44
53
|
kind: z.ZodLiteral<"routine">;
|
|
45
54
|
routineId: z.ZodString;
|
|
46
55
|
version: z.ZodNumber;
|
|
@@ -62,8 +71,8 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
|
|
|
62
71
|
type: z.ZodLiteral<"move">;
|
|
63
72
|
phase: z.ZodEnum<{
|
|
64
73
|
review: "review";
|
|
65
|
-
backlog: "backlog";
|
|
66
74
|
ready: "ready";
|
|
75
|
+
backlog: "backlog";
|
|
67
76
|
active: "active";
|
|
68
77
|
closed: "closed";
|
|
69
78
|
}>;
|
|
@@ -91,6 +100,9 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
|
|
|
91
100
|
scheduleAt: z.ZodOptional<z.ZodNumber>;
|
|
92
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
93
102
|
type: z.ZodLiteral<"request_review">;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"signoff">;
|
|
105
|
+
resultId: z.ZodString;
|
|
94
106
|
}, z.core.$strip>, z.ZodObject<{
|
|
95
107
|
type: z.ZodLiteral<"close">;
|
|
96
108
|
resolution: z.ZodEnum<{
|
|
@@ -103,8 +115,8 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
|
|
|
103
115
|
type: z.ZodLiteral<"reopen">;
|
|
104
116
|
phase: z.ZodEnum<{
|
|
105
117
|
review: "review";
|
|
106
|
-
backlog: "backlog";
|
|
107
118
|
ready: "ready";
|
|
119
|
+
backlog: "backlog";
|
|
108
120
|
active: "active";
|
|
109
121
|
}>;
|
|
110
122
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -159,8 +171,8 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
|
|
|
159
171
|
description: z.ZodOptional<z.ZodString>;
|
|
160
172
|
delivery: z.ZodDefault<z.ZodObject<{
|
|
161
173
|
notificationPolicy: z.ZodDefault<z.ZodEnum<{
|
|
162
|
-
attention: "attention";
|
|
163
174
|
none: "none";
|
|
175
|
+
attention: "attention";
|
|
164
176
|
all: "all";
|
|
165
177
|
}>>;
|
|
166
178
|
destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -275,6 +287,15 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
|
|
|
275
287
|
name: z.ZodOptional<z.ZodString>;
|
|
276
288
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
277
289
|
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"personal_task">;
|
|
291
|
+
conversationId: z.ZodString;
|
|
292
|
+
agentId: z.ZodString;
|
|
293
|
+
instruction: z.ZodString;
|
|
294
|
+
locale: z.ZodEnum<{
|
|
295
|
+
zh: "zh";
|
|
296
|
+
en: "en";
|
|
297
|
+
}>;
|
|
298
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
278
299
|
kind: z.ZodLiteral<"routine">;
|
|
279
300
|
routineId: z.ZodString;
|
|
280
301
|
version: z.ZodNumber;
|
|
@@ -296,8 +317,8 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
|
|
|
296
317
|
type: z.ZodLiteral<"move">;
|
|
297
318
|
phase: z.ZodEnum<{
|
|
298
319
|
review: "review";
|
|
299
|
-
backlog: "backlog";
|
|
300
320
|
ready: "ready";
|
|
321
|
+
backlog: "backlog";
|
|
301
322
|
active: "active";
|
|
302
323
|
closed: "closed";
|
|
303
324
|
}>;
|
|
@@ -325,6 +346,9 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
|
|
|
325
346
|
scheduleAt: z.ZodOptional<z.ZodNumber>;
|
|
326
347
|
}, z.core.$strip>, z.ZodObject<{
|
|
327
348
|
type: z.ZodLiteral<"request_review">;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
type: z.ZodLiteral<"signoff">;
|
|
351
|
+
resultId: z.ZodString;
|
|
328
352
|
}, z.core.$strip>, z.ZodObject<{
|
|
329
353
|
type: z.ZodLiteral<"close">;
|
|
330
354
|
resolution: z.ZodEnum<{
|
|
@@ -337,8 +361,8 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
|
|
|
337
361
|
type: z.ZodLiteral<"reopen">;
|
|
338
362
|
phase: z.ZodEnum<{
|
|
339
363
|
review: "review";
|
|
340
|
-
backlog: "backlog";
|
|
341
364
|
ready: "ready";
|
|
365
|
+
backlog: "backlog";
|
|
342
366
|
active: "active";
|
|
343
367
|
}>;
|
|
344
368
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -409,8 +433,8 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
|
|
|
409
433
|
}>>;
|
|
410
434
|
delivery: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
411
435
|
notificationPolicy: z.ZodDefault<z.ZodEnum<{
|
|
412
|
-
attention: "attention";
|
|
413
436
|
none: "none";
|
|
437
|
+
attention: "attention";
|
|
414
438
|
all: "all";
|
|
415
439
|
}>>;
|
|
416
440
|
destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -41,13 +41,13 @@ const AutomationCreateCapabilityInputSchema = CreateAutomationSchema.omit({
|
|
|
41
41
|
state: true,
|
|
42
42
|
management: true,
|
|
43
43
|
trigger: true
|
|
44
|
-
}).extend({ trigger: triggerRequest }).refine((input) => input.action.kind !== "system", { message: "
|
|
44
|
+
}).extend({ trigger: triggerRequest }).refine((input) => input.action.kind !== "system" && input.action.kind !== "personal_task", { message: "This action requires its dedicated creation flow" });
|
|
45
45
|
const AutomationUpdatePatchSchema = z.object({
|
|
46
46
|
...UpdateAutomationSchema.shape,
|
|
47
47
|
trigger: triggerRequest.optional(),
|
|
48
48
|
state: z.never().optional(),
|
|
49
49
|
management: z.never().optional()
|
|
50
|
-
}).strict().refine((data) => Object.keys(data).length > 0, { message: "At least one field must be provided" });
|
|
50
|
+
}).strict().refine((data) => Object.keys(data).length > 0, { message: "At least one field must be provided" }).refine((data) => data.action?.kind !== "personal_task", { message: "This action requires its dedicated creation flow" });
|
|
51
51
|
function assertManagedOperation(automation, operation, patch) {
|
|
52
52
|
const management = automation.management;
|
|
53
53
|
if (!management) return;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
3
|
+
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
3
4
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
5
|
import { init_session_repository, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
5
6
|
import "../storage/sqlite/index.js";
|
|
6
|
-
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
7
7
|
import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
|
|
8
8
|
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
9
9
|
import { getAutomation } from "./storage/automation-repository.js";
|
|
@@ -39,6 +39,12 @@ export type AutomationAction = {
|
|
|
39
39
|
routineId: string;
|
|
40
40
|
version: number;
|
|
41
41
|
hash: string;
|
|
42
|
+
} | {
|
|
43
|
+
kind: 'personal_task';
|
|
44
|
+
conversationId: string;
|
|
45
|
+
agentId: string;
|
|
46
|
+
instruction: string;
|
|
47
|
+
locale: 'zh' | 'en';
|
|
42
48
|
} | {
|
|
43
49
|
kind: 'task_command';
|
|
44
50
|
taskId: string;
|
|
@@ -37,6 +37,15 @@ export declare const AutomationTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
37
37
|
payloadMatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
38
38
|
}, z.core.$strict>], "kind">;
|
|
39
39
|
export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"personal_task">;
|
|
41
|
+
conversationId: z.ZodString;
|
|
42
|
+
agentId: z.ZodString;
|
|
43
|
+
instruction: z.ZodString;
|
|
44
|
+
locale: z.ZodEnum<{
|
|
45
|
+
zh: "zh";
|
|
46
|
+
en: "en";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
49
|
kind: z.ZodLiteral<"routine">;
|
|
41
50
|
routineId: z.ZodString;
|
|
42
51
|
version: z.ZodNumber;
|
|
@@ -58,8 +67,8 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
58
67
|
type: z.ZodLiteral<"move">;
|
|
59
68
|
phase: z.ZodEnum<{
|
|
60
69
|
review: "review";
|
|
61
|
-
backlog: "backlog";
|
|
62
70
|
ready: "ready";
|
|
71
|
+
backlog: "backlog";
|
|
63
72
|
active: "active";
|
|
64
73
|
closed: "closed";
|
|
65
74
|
}>;
|
|
@@ -87,6 +96,9 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
87
96
|
scheduleAt: z.ZodOptional<z.ZodNumber>;
|
|
88
97
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
98
|
type: z.ZodLiteral<"request_review">;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
type: z.ZodLiteral<"signoff">;
|
|
101
|
+
resultId: z.ZodString;
|
|
90
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
91
103
|
type: z.ZodLiteral<"close">;
|
|
92
104
|
resolution: z.ZodEnum<{
|
|
@@ -99,8 +111,8 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
99
111
|
type: z.ZodLiteral<"reopen">;
|
|
100
112
|
phase: z.ZodEnum<{
|
|
101
113
|
review: "review";
|
|
102
|
-
backlog: "backlog";
|
|
103
114
|
ready: "ready";
|
|
115
|
+
backlog: "backlog";
|
|
104
116
|
active: "active";
|
|
105
117
|
}>;
|
|
106
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -175,8 +187,8 @@ export declare const AutomationSafetyPolicySchema: z.ZodObject<{
|
|
|
175
187
|
}, z.core.$strict>;
|
|
176
188
|
export declare const AutomationDeliveryPolicySchema: z.ZodObject<{
|
|
177
189
|
notificationPolicy: z.ZodDefault<z.ZodEnum<{
|
|
178
|
-
attention: "attention";
|
|
179
190
|
none: "none";
|
|
191
|
+
attention: "attention";
|
|
180
192
|
all: "all";
|
|
181
193
|
}>>;
|
|
182
194
|
destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -252,6 +264,15 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
252
264
|
payloadMatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
253
265
|
}, z.core.$strict>], "kind">;
|
|
254
266
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
267
|
+
kind: z.ZodLiteral<"personal_task">;
|
|
268
|
+
conversationId: z.ZodString;
|
|
269
|
+
agentId: z.ZodString;
|
|
270
|
+
instruction: z.ZodString;
|
|
271
|
+
locale: z.ZodEnum<{
|
|
272
|
+
zh: "zh";
|
|
273
|
+
en: "en";
|
|
274
|
+
}>;
|
|
275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
276
|
kind: z.ZodLiteral<"routine">;
|
|
256
277
|
routineId: z.ZodString;
|
|
257
278
|
version: z.ZodNumber;
|
|
@@ -273,8 +294,8 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
273
294
|
type: z.ZodLiteral<"move">;
|
|
274
295
|
phase: z.ZodEnum<{
|
|
275
296
|
review: "review";
|
|
276
|
-
backlog: "backlog";
|
|
277
297
|
ready: "ready";
|
|
298
|
+
backlog: "backlog";
|
|
278
299
|
active: "active";
|
|
279
300
|
closed: "closed";
|
|
280
301
|
}>;
|
|
@@ -302,6 +323,9 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
302
323
|
scheduleAt: z.ZodOptional<z.ZodNumber>;
|
|
303
324
|
}, z.core.$strip>, z.ZodObject<{
|
|
304
325
|
type: z.ZodLiteral<"request_review">;
|
|
326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"signoff">;
|
|
328
|
+
resultId: z.ZodString;
|
|
305
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
306
330
|
type: z.ZodLiteral<"close">;
|
|
307
331
|
resolution: z.ZodEnum<{
|
|
@@ -314,8 +338,8 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
314
338
|
type: z.ZodLiteral<"reopen">;
|
|
315
339
|
phase: z.ZodEnum<{
|
|
316
340
|
review: "review";
|
|
317
|
-
backlog: "backlog";
|
|
318
341
|
ready: "ready";
|
|
342
|
+
backlog: "backlog";
|
|
319
343
|
active: "active";
|
|
320
344
|
}>;
|
|
321
345
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -379,8 +403,8 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
379
403
|
}>>;
|
|
380
404
|
delivery: z.ZodDefault<z.ZodObject<{
|
|
381
405
|
notificationPolicy: z.ZodDefault<z.ZodEnum<{
|
|
382
|
-
attention: "attention";
|
|
383
406
|
none: "none";
|
|
407
|
+
attention: "attention";
|
|
384
408
|
all: "all";
|
|
385
409
|
}>>;
|
|
386
410
|
destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -446,6 +470,15 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
446
470
|
projectId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
447
471
|
name: z.ZodString;
|
|
448
472
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
473
|
+
kind: z.ZodLiteral<"personal_task">;
|
|
474
|
+
conversationId: z.ZodString;
|
|
475
|
+
agentId: z.ZodString;
|
|
476
|
+
instruction: z.ZodString;
|
|
477
|
+
locale: z.ZodEnum<{
|
|
478
|
+
zh: "zh";
|
|
479
|
+
en: "en";
|
|
480
|
+
}>;
|
|
481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
449
482
|
kind: z.ZodLiteral<"routine">;
|
|
450
483
|
routineId: z.ZodString;
|
|
451
484
|
version: z.ZodNumber;
|
|
@@ -467,8 +500,8 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
467
500
|
type: z.ZodLiteral<"move">;
|
|
468
501
|
phase: z.ZodEnum<{
|
|
469
502
|
review: "review";
|
|
470
|
-
backlog: "backlog";
|
|
471
503
|
ready: "ready";
|
|
504
|
+
backlog: "backlog";
|
|
472
505
|
active: "active";
|
|
473
506
|
closed: "closed";
|
|
474
507
|
}>;
|
|
@@ -496,6 +529,9 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
496
529
|
scheduleAt: z.ZodOptional<z.ZodNumber>;
|
|
497
530
|
}, z.core.$strip>, z.ZodObject<{
|
|
498
531
|
type: z.ZodLiteral<"request_review">;
|
|
532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
533
|
+
type: z.ZodLiteral<"signoff">;
|
|
534
|
+
resultId: z.ZodString;
|
|
499
535
|
}, z.core.$strip>, z.ZodObject<{
|
|
500
536
|
type: z.ZodLiteral<"close">;
|
|
501
537
|
resolution: z.ZodEnum<{
|
|
@@ -508,8 +544,8 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
508
544
|
type: z.ZodLiteral<"reopen">;
|
|
509
545
|
phase: z.ZodEnum<{
|
|
510
546
|
review: "review";
|
|
511
|
-
backlog: "backlog";
|
|
512
547
|
ready: "ready";
|
|
548
|
+
backlog: "backlog";
|
|
513
549
|
active: "active";
|
|
514
550
|
}>;
|
|
515
551
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -588,8 +624,8 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
588
624
|
}, z.core.$strict>], "kind">;
|
|
589
625
|
delivery: z.ZodDefault<z.ZodObject<{
|
|
590
626
|
notificationPolicy: z.ZodDefault<z.ZodEnum<{
|
|
591
|
-
attention: "attention";
|
|
592
627
|
none: "none";
|
|
628
|
+
attention: "attention";
|
|
593
629
|
all: "all";
|
|
594
630
|
}>>;
|
|
595
631
|
destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -667,6 +703,15 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
667
703
|
name: z.ZodOptional<z.ZodString>;
|
|
668
704
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
669
705
|
action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
706
|
+
kind: z.ZodLiteral<"personal_task">;
|
|
707
|
+
conversationId: z.ZodString;
|
|
708
|
+
agentId: z.ZodString;
|
|
709
|
+
instruction: z.ZodString;
|
|
710
|
+
locale: z.ZodEnum<{
|
|
711
|
+
zh: "zh";
|
|
712
|
+
en: "en";
|
|
713
|
+
}>;
|
|
714
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
670
715
|
kind: z.ZodLiteral<"routine">;
|
|
671
716
|
routineId: z.ZodString;
|
|
672
717
|
version: z.ZodNumber;
|
|
@@ -688,8 +733,8 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
688
733
|
type: z.ZodLiteral<"move">;
|
|
689
734
|
phase: z.ZodEnum<{
|
|
690
735
|
review: "review";
|
|
691
|
-
backlog: "backlog";
|
|
692
736
|
ready: "ready";
|
|
737
|
+
backlog: "backlog";
|
|
693
738
|
active: "active";
|
|
694
739
|
closed: "closed";
|
|
695
740
|
}>;
|
|
@@ -717,6 +762,9 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
717
762
|
scheduleAt: z.ZodOptional<z.ZodNumber>;
|
|
718
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
719
764
|
type: z.ZodLiteral<"request_review">;
|
|
765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
766
|
+
type: z.ZodLiteral<"signoff">;
|
|
767
|
+
resultId: z.ZodString;
|
|
720
768
|
}, z.core.$strip>, z.ZodObject<{
|
|
721
769
|
type: z.ZodLiteral<"close">;
|
|
722
770
|
resolution: z.ZodEnum<{
|
|
@@ -729,8 +777,8 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
729
777
|
type: z.ZodLiteral<"reopen">;
|
|
730
778
|
phase: z.ZodEnum<{
|
|
731
779
|
review: "review";
|
|
732
|
-
backlog: "backlog";
|
|
733
780
|
ready: "ready";
|
|
781
|
+
backlog: "backlog";
|
|
734
782
|
active: "active";
|
|
735
783
|
}>;
|
|
736
784
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -835,8 +883,8 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
835
883
|
}>>;
|
|
836
884
|
delivery: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
837
885
|
notificationPolicy: z.ZodDefault<z.ZodEnum<{
|
|
838
|
-
attention: "attention";
|
|
839
886
|
none: "none";
|
|
887
|
+
attention: "attention";
|
|
840
888
|
all: "all";
|
|
841
889
|
}>>;
|
|
842
890
|
destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -67,6 +67,13 @@ const AutomationTriggerSchema = z.discriminatedUnion("kind", [
|
|
|
67
67
|
}).strict()
|
|
68
68
|
]);
|
|
69
69
|
const AutomationActionSchema = z.discriminatedUnion("kind", [
|
|
70
|
+
z.object({
|
|
71
|
+
kind: z.literal("personal_task"),
|
|
72
|
+
conversationId: nonEmptyString.max(200),
|
|
73
|
+
agentId: nonEmptyString.max(64),
|
|
74
|
+
instruction: nonEmptyString.max(5e4),
|
|
75
|
+
locale: z.enum(["zh", "en"])
|
|
76
|
+
}).strict(),
|
|
70
77
|
z.object({
|
|
71
78
|
kind: z.literal("routine"),
|
|
72
79
|
routineId: nonEmptyString.max(100),
|
|
@@ -12,7 +12,7 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
12
12
|
automation: {
|
|
13
13
|
name: string;
|
|
14
14
|
delivery: {
|
|
15
|
-
notificationPolicy: "
|
|
15
|
+
notificationPolicy: "none" | "attention" | "all";
|
|
16
16
|
destinations: ({
|
|
17
17
|
key: string;
|
|
18
18
|
kind: "gateway_event";
|
|
@@ -41,6 +41,12 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
41
41
|
conversationMode: "new_session" | "continuous";
|
|
42
42
|
projectId?: string;
|
|
43
43
|
action?: {
|
|
44
|
+
kind: "personal_task";
|
|
45
|
+
conversationId: string;
|
|
46
|
+
agentId: string;
|
|
47
|
+
instruction: string;
|
|
48
|
+
locale: "zh" | "en";
|
|
49
|
+
} | {
|
|
44
50
|
kind: "routine";
|
|
45
51
|
routineId: string;
|
|
46
52
|
version: number;
|
|
@@ -60,7 +66,7 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
60
66
|
type: "retry_allocation";
|
|
61
67
|
} | {
|
|
62
68
|
type: "move";
|
|
63
|
-
phase: "review" | "
|
|
69
|
+
phase: "review" | "ready" | "backlog" | "active" | "closed";
|
|
64
70
|
resolution?: "cancelled" | "done" | "duplicate" | "wont_do";
|
|
65
71
|
} | {
|
|
66
72
|
type: "mark_ready";
|
|
@@ -80,12 +86,15 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
80
86
|
scheduleAt?: number;
|
|
81
87
|
} | {
|
|
82
88
|
type: "request_review";
|
|
89
|
+
} | {
|
|
90
|
+
type: "signoff";
|
|
91
|
+
resultId: string;
|
|
83
92
|
} | {
|
|
84
93
|
type: "close";
|
|
85
94
|
resolution: "cancelled" | "done" | "duplicate" | "wont_do";
|
|
86
95
|
} | {
|
|
87
96
|
type: "reopen";
|
|
88
|
-
phase: "review" | "
|
|
97
|
+
phase: "review" | "ready" | "backlog" | "active";
|
|
89
98
|
} | {
|
|
90
99
|
type: "add_wait";
|
|
91
100
|
wait: {
|
|
@@ -91,6 +91,7 @@ function summarizeTrigger(trigger) {
|
|
|
91
91
|
function summarizeAction(action) {
|
|
92
92
|
if (action.kind === "routine") return `Runs verified routine ${action.routineId}, method v${action.version}.`;
|
|
93
93
|
if (action.kind === "task_command") return `Applies ${action.command?.type ?? "a command"} to task ${action.taskId}.`;
|
|
94
|
+
if (action.kind === "personal_task") return "Starts a new task in Personal.";
|
|
94
95
|
if (action.kind === "system") return `Runs system capability ${action.capability}.`;
|
|
95
96
|
return action.agentId ? `Runs agent ${action.agentId}.` : "Runs the default agent.";
|
|
96
97
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
2
|
-
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
3
1
|
import { normalizeAgentId } from "../../agent-catalog/id.js";
|
|
4
2
|
import { init_agent_scope } from "../../agent/agent-scope.js";
|
|
3
|
+
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
4
|
+
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
5
5
|
import { init_model_usage, withModelUsageOrigin } from "../../providers/model-usage.js";
|
|
6
6
|
import { init_session_key, resolveConversationId } from "../../routing/session-key.js";
|
|
7
7
|
import { getAutomationRunRequest, listAutomationRuns } from "../storage/automation-run-repository.js";
|
|
@@ -98,6 +98,18 @@ var AutomationActionExecutor = class {
|
|
|
98
98
|
mode: "idempotent",
|
|
99
99
|
key: "run_id"
|
|
100
100
|
}, (input, action) => this.executeTaskCommand(input, action));
|
|
101
|
+
this.register("personal_task", {
|
|
102
|
+
mode: "idempotent",
|
|
103
|
+
key: "run_id"
|
|
104
|
+
}, async (input, action) => {
|
|
105
|
+
await input.hooks.onRunPatch?.({ currentPhase: "action" });
|
|
106
|
+
const { startScheduledPersonalTask } = await import("../../personal-agent/schedules.js");
|
|
107
|
+
input.signal.throwIfAborted();
|
|
108
|
+
return {
|
|
109
|
+
status: "succeeded",
|
|
110
|
+
summary: `Task ${startScheduledPersonalTask(input.automation.name, action, input.run.id)} queued`
|
|
111
|
+
};
|
|
112
|
+
});
|
|
101
113
|
this.register("system", {
|
|
102
114
|
mode: "transient_only",
|
|
103
115
|
classify: (error) => /temporar|timeout|timed out|unavailable|busy|rate limit|econn|network/i.test(String(error))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
4
|
-
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
5
|
-
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
6
4
|
import { normalizeAgentId } from "../../agent-catalog/id.js";
|
|
7
5
|
import { init_agent_scope } from "../../agent/agent-scope.js";
|
|
6
|
+
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
7
|
+
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
8
8
|
import { AutomationDeliveryPolicySchema, AutomationSchema, CreateAutomationSchema, UpdateAutomationSchema } from "../domain/validation.js";
|
|
9
9
|
import { deleteAutomation, getAutomation, getDeletedAutomationRevision, listAutomations, saveAutomation, saveAutomations } from "../storage/automation-repository.js";
|
|
10
10
|
import { appendAutomationRunEvent, getAutomationExecutionSummaries, getAutomationRun, getAutomationRunRequest, isAutomationConversationShared, listAutomationRunEvents, listAutomationRuns, listAutomationRunsForProductEvent, listUnfinishedAutomationRuns, markAllAutomationRunsRead, markAutomationRunRead, pruneAutomationHistory, saveAutomationRun, saveAutomationRunRequest, touchAutomationRunLease } from "../storage/automation-run-repository.js";
|