@xopcai/xopc 0.0.409 → 0.0.411
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/README.md +12 -6
- package/README.zh-CN.md +12 -6
- package/dist/browser-ext/dist/assets/{page-context-A5RCibM_.js → page-context-MuzjMBlJ.js} +1 -1
- package/dist/browser-ext/dist/background.js +1 -1
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/gateway-setup.js +9 -3
- package/dist/extensions/feishu/src/plugin.d.ts +0 -3
- package/dist/extensions/feishu/src/plugin.js +1 -11
- package/dist/extensions/feishu/src/schema/config-schema.d.ts +0 -2
- package/dist/extensions/feishu/src/schema/config-schema.js +9 -21
- package/dist/extensions/feishu/src/state/accounts.js +3 -7
- package/dist/extensions/telegram/src/plugin.d.ts +0 -3
- package/dist/extensions/telegram/src/plugin.js +0 -9
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/plugin.d.ts +0 -3
- package/dist/extensions/weixin/src/plugin.js +1 -12
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-sGJnq-SA.js +1 -0
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BI7OTo-T.js +1 -0
- package/dist/gateway/static/root/assets/agents-RIXL0p7_.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-D0UyB0Y_.js → agents-admin-api-uGDeJR1f.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-BGzhSS6H.js +1 -0
- package/dist/gateway/static/root/assets/{appearance-settings-Dzhmj_ZO.js → appearance-settings-DtEZq4b2.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-DZqBof2D.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-D4r4P5uG.js → archive-plugin-CGdU_E5B.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-display-DCkjVzA0.js → automation-display-BFN7zWBg.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BlNe3DXU.js → automations-page-BAPZY56r.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-CI-yQnSj.js +8 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DuN5L6lm.js → binary-plugins-B0ispXo2.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DUSVn51h.js → block-editor-B9Ci-prO.js} +40 -40
- package/dist/gateway/static/root/assets/{browser-automation-inputs-D8bZ9iz2.js → browser-automation-inputs-D4-vQc4g.js} +1 -1
- package/dist/gateway/static/root/assets/browser-automations-page-Xzdif447.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-Bhu-83eC.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-B9b5KCBb.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-BIc0Zlsw.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CQEfpLdj.js +8 -0
- package/dist/gateway/static/root/assets/{capability-header-actions-oBPqUlbj.js → capability-header-actions-Cic05oWh.js} +1 -1
- package/dist/gateway/static/root/assets/channels-DQbEoo_o.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BLs3NaOP.js → chat-terminal-dock-Bm-IGeDe.js} +2 -2
- package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-B2HK1psj.js → chunk-KS7C4IRE-BvcCCgTW.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-C9xMfwXK.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-DcdASUU9.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-eh-xpMPK.js +1 -0
- package/dist/gateway/static/root/assets/date-formatters-DukWSVwc.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DVlbwrYg.js → date-picker-gVLWu9R0.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-C0LARyok.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-settings-B_-j-D4W.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-v_le3sCs.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-CxG_FcQ6.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-QZ0p-uNa.js → directory-picker-path-field-CBefVUPR.js} +1 -1
- package/dist/gateway/static/root/assets/electron-env-Dit0bHgy.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DoVPUHu_.js → extension-debug-page-CTe7Molh.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BNe8n3iJ.js → extension-page-C0-oP7S_.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DxNpjGJD.js → extension-settings-page-DYJmgMUg.js} +1 -1
- package/dist/gateway/static/root/assets/files-Bw4SBGdM.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-CTXr917C.js → gateway-config-swr-BVqYVaGy.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CY1LBGBS.js +1 -0
- package/dist/gateway/static/root/assets/gateway-realtime-store-Dafw95ol.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-C13P4lQd.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DD2fsxdd.js → gateway-startup-retry-CPKGkr6D.js} +1 -1
- package/dist/gateway/static/root/assets/highlight-code-CslBKXdS.js +1 -0
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-DrZq5KTj.js → highlighted-body-KQOG7T2V-CN5PNRN3.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-B_XrkGmA.js +2 -0
- package/dist/gateway/static/root/assets/image-generation-api-DRLXG9Ws.js +1 -0
- package/dist/gateway/static/root/assets/imports-page--cuF5vwU.js +1 -0
- package/dist/gateway/static/root/assets/index-6YjAt50A.js +710 -0
- package/dist/gateway/static/root/assets/index-caRW34rg.css +1 -0
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-5g2PxgBs.js +1 -0
- package/dist/gateway/static/root/assets/languages-byq_L2Ae.js +2 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-B6U1HQpp.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-page-BChE6nUD.js +1 -0
- package/dist/gateway/static/root/assets/{local-session-drafts-TqLFKwYo.js → local-session-drafts-BCaC-1rH.js} +1 -1
- package/dist/gateway/static/root/assets/locale-store-DAgpZxAS.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-B9mq03SK.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-2W_qJsha.js +1 -0
- package/dist/gateway/static/root/assets/markdown-editor-phTQ0mox.js +1 -0
- package/dist/gateway/static/root/assets/{media-plugins-s6EqtAUQ.js → media-plugins-BmLuWkkZ.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-61Il2HQR.js +1 -0
- package/dist/gateway/static/root/assets/messages-DMXSIJUO.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-C4gZsNBL.js +5 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-XqJIaaRV.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-Chdwrjni.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-B7rDRlS7.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-mQl9BftY.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-BgcJLmZN.js +1 -0
- package/dist/gateway/static/root/assets/plugin-details-dialog-FvwSxZPB.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-Z4NM7_Dn.js +1 -0
- package/dist/gateway/static/root/assets/product-delivery-BqNm-8S5.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-BPWSqtRt.js → product-open-page-C5TcIaJj.js} +1 -1
- package/dist/gateway/static/root/assets/product-preview-content-5xID6jIj.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-CGOyx7zX.js +7 -0
- package/dist/gateway/static/root/assets/projects-page-Dd11tbRX.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-4NZOh0iz.js → registry-api-B6kqbuw8.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-Bintk9nL.js +1 -0
- package/dist/gateway/static/root/assets/runtime-tools-api-CY3R7unQ.js +5 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-CNCx2RnO.js → runtime-tools-settings-panel-CbmiiLsq.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-nRDA2XfI.js → schema-form-DtPkiYwm.js} +1 -1
- package/dist/gateway/static/root/assets/session-api-D6-Vz8xK.js +1 -0
- package/dist/gateway/static/root/assets/{session-manager-D2sLfkw-.js → session-manager-DWbcMHcj.js} +3 -3
- package/dist/gateway/static/root/assets/sessions-page-BBlEP7y3.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BCQUth4g.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-_ALUREPr.js → settings-form-section-DD3iD5t5.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-29ptuMYZ.js → settings-page-iLY3LRDq.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-v4P0IAkG.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-B8h9lqDL.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-DMzej6z2.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-C-T0K7Oo.js → skill-api-C9RsrvOp.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-B20x7EE9.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-C_ulsnv7.js +2 -0
- package/dist/gateway/static/root/assets/source-workspace-editor-BIvi89Zx.js +1 -0
- package/dist/gateway/static/root/assets/system-settings-panel-PTRGMKkq.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-DEPwo4vf.js +2 -0
- package/dist/gateway/static/root/assets/task-result-evidence-DjNWPpn_.js +1 -0
- package/dist/gateway/static/root/assets/tasks-TVRjEggr.js +1 -0
- package/dist/gateway/static/root/assets/tracing-settings-page-CVJt7IXC.js +1 -0
- package/dist/gateway/static/root/assets/{tunnel-api-DcDUSAjv.js → tunnel-api-C6XfsSWy.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-Hut0SDqn.js → usage-page-DgqLD8Y5.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-C4TUlpsu.js → use-autosave-DO-Twmbm.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-BwK37aob.js +2 -0
- package/dist/gateway/static/root/assets/{vendor-codemirror-DFxP3B9T.js → vendor-codemirror-Qdcjid65.js} +16 -16
- package/dist/gateway/static/root/assets/{voice-api-key-field-CMdihbPb.js → voice-api-key-field-MGe3HkS_.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-4yGMrp7J.js → voice-config-api-CPKzUb4R.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-DptHqYh5.js +1 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-ClQKM2RA.js → xopc-cloud-account-card-Y_UIryBH.js} +1 -1
- package/dist/gateway/static/root/index.html +27 -35
- package/dist/package.js +1 -1
- package/dist/packages/endpoint-tools-protocol/src/index.js +1 -1
- package/dist/packages/gateway-contract/src/automations.js +0 -12
- package/dist/packages/gateway-contract/src/home.js +3 -3
- package/dist/packages/gateway-contract/src/product-delivery.js +0 -4
- package/dist/packages/gateway-contract/src/project-operating.js +0 -6
- package/dist/packages/gateway-contract/src/session-identity.js +0 -1
- package/dist/packages/gateway-contract/src/task-runs.js +0 -1
- package/dist/packages/gateway-contract/src/tasks.js +0 -6
- package/dist/src/activity/types.d.ts +4 -4
- package/dist/src/agent/agent-manager.d.ts +0 -3
- package/dist/src/agent/agent-manager.js +0 -43
- package/dist/src/agent/background-review/prompts.d.ts +8 -0
- package/dist/src/agent/background-review/prompts.js +9 -2
- package/dist/src/agent/background-review/run-background-review.js +73 -11
- package/dist/src/agent/capabilities/definitions.d.ts +2 -18
- package/dist/src/agent/capabilities/definitions.js +0 -17
- package/dist/src/agent/child-agent-factory.d.ts +1 -1
- package/dist/src/agent/client-error-format.d.ts +1 -1
- package/dist/src/agent/client-error-format.js +1 -1
- package/dist/src/agent/commands/command-registry.js +1 -1
- package/dist/src/agent/context/execution-scope.d.ts +2 -8
- package/dist/src/agent/context/execution-scope.js +6 -23
- package/dist/src/agent/embedded/index.d.ts +0 -1
- package/dist/src/agent/embedded/index.js +1 -2
- package/dist/src/agent/embedded/run-turn.js +25 -2
- package/dist/src/agent/embedded/sqlite-hydrating-session-manager.js +0 -2
- package/dist/src/agent/external-tools/gateway-tools.js +6 -6
- package/dist/src/agent/inbound/attachment-pipeline.d.ts +2 -0
- package/dist/src/agent/inbound/attachment-pipeline.js +10 -5
- package/dist/src/agent/mcp/connection-setup.js +2 -2
- package/dist/src/agent/memory/compaction-ledger.d.ts +1 -1
- package/dist/src/agent/memory/compaction-ledger.js +1 -1
- package/dist/src/agent/memory/compaction-promotion.js +1 -1
- package/dist/src/agent/memory/source-origin.js +1 -5
- package/dist/src/agent/memory/turn-provenance.js +1 -3
- package/dist/src/agent/memory/types.d.ts +1 -1
- package/dist/src/agent/messaging/command-handler.d.ts +0 -3
- package/dist/src/agent/messaging/command-handler.js +1 -4
- package/dist/src/agent/prompt/sections/behavior.js +2 -2
- package/dist/src/agent/prompt/sections/tooling.js +1 -5
- package/dist/src/agent/prompt/voice-presentation.d.ts +1 -1
- package/dist/src/agent/prompt/voice-presentation.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +0 -6
- package/dist/src/agent/service.d.ts +0 -2
- package/dist/src/agent/service.js +0 -11
- package/dist/src/agent/service.types.d.ts +0 -2
- package/dist/src/agent/session/session-config-service.d.ts +0 -2
- package/dist/src/agent/session/session-config-service.js +1 -1
- package/dist/src/agent/session/session-inspector.d.ts +0 -1
- package/dist/src/agent/session/session-inspector.js +0 -1
- package/dist/src/agent/skills/required-env-vars.d.ts +1 -1
- package/dist/src/agent/skills/required-env-vars.js +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +2 -5
- package/dist/src/agent/tools/automation-tool.js +1 -1
- package/dist/src/agent/tools/factory.d.ts +0 -3
- package/dist/src/agent/tools/factory.js +21 -10
- package/dist/src/agent/tools/index.d.ts +0 -2
- package/dist/src/agent/tools/index.js +1 -3
- package/dist/src/agent/tools/knowledge-memory-tool.d.ts +1 -0
- package/dist/src/agent/tools/knowledge-memory-tool.js +13 -4
- package/dist/src/agent/tools/personal-task-tool.js +8 -22
- package/dist/src/agent/tools/search/errors.js +2 -2
- package/dist/src/agent/tools/session-recall-tool.d.ts +3 -0
- package/dist/src/agent/tools/session-recall-tool.js +7 -0
- package/dist/src/agent/tools/session-search-tool.d.ts +3 -0
- package/dist/src/agent/tools/session-search-tool.js +20 -4
- package/dist/src/agent/tools/user-context-tool.js +7 -1
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent-catalog/index.d.ts +0 -1
- package/dist/src/agent-catalog/index.js +1 -2
- package/dist/src/agent-config/index.js +2 -2
- package/dist/src/agent-config/resolver.js +0 -6
- package/dist/src/agent-config/schema.d.ts +0 -16
- package/dist/src/agent-config/schema.js +2 -9
- package/dist/src/agent-matching/selection-repository.d.ts +1 -1
- package/dist/src/agent-matching/selection-repository.js +1 -1
- package/dist/src/agent-matching/service.d.ts +1 -2
- package/dist/src/agent-matching/service.js +3 -7
- package/dist/src/ai-assist/text-assist.d.ts +1 -1
- package/dist/src/ai-assist/text-assist.js +0 -72
- package/dist/src/automations/capabilities/write.d.ts +0 -40
- package/dist/src/automations/domain/types.d.ts +0 -15
- package/dist/src/automations/domain/validation.d.ts +0 -80
- package/dist/src/automations/domain/validation.js +0 -17
- package/dist/src/automations/draft/automation-draft-prompt.js +0 -3
- package/dist/src/automations/draft/automation-draft-validator.d.ts +0 -20
- package/dist/src/automations/draft/automation-draft-validator.js +0 -1
- package/dist/src/automations/events/event-catalog.js +0 -6
- package/dist/src/automations/service/action-executor.d.ts +0 -1
- package/dist/src/automations/service/action-executor.js +1 -110
- package/dist/src/automations/service/automation-service.js +0 -2
- package/dist/src/automations/storage/automation-run-repository.js +6 -7
- package/dist/src/backup/archive.js +1 -1
- package/dist/src/bootstrap/application-state.d.ts +2 -10
- package/dist/src/bootstrap/application-state.js +5 -18
- package/dist/src/channels/manager.d.ts +0 -2
- package/dist/src/channels/manager.js +0 -4
- package/dist/src/channels/pairing/index.d.ts +2 -1
- package/dist/src/channels/pairing/pairing-service.d.ts +0 -1
- package/dist/src/chat-commands/context.d.ts +0 -3
- package/dist/src/chat-commands/context.js +0 -5
- package/dist/src/chat-commands/index.d.ts +0 -1
- package/dist/src/chat-commands/index.js +1 -3
- package/dist/src/chat-commands/types.d.ts +0 -5
- package/dist/src/cli/command-manifest.js +1 -1
- package/dist/src/cli/commands/config.js +2 -10
- package/dist/src/cli/commands/doctor/checks/database-relations.js +0 -3
- package/dist/src/cli/commands/doctor/checks/database-schema.js +4 -25
- package/dist/src/cli/commands/gateway/run-foreground.js +1 -1
- package/dist/src/cli/commands/setup-shared/prompts.d.ts +2 -2
- package/dist/src/cli/commands/setup-shared/prompts.js +2 -2
- package/dist/src/cli/commands/tui-runner.js +2 -2
- package/dist/src/cli/extension-cli-register.js +1 -1
- package/dist/src/cli/index.d.ts +0 -1
- package/dist/src/cli/index.js +2 -2
- package/dist/src/cli/utils/init-workspace-core.js +3 -6
- package/dist/src/config/index.js +2 -2
- package/dist/src/config/loader.d.ts +0 -1
- package/dist/src/config/loader.js +1 -13
- package/dist/src/config/paths.d.ts +1 -1
- package/dist/src/config/paths.js +1 -1
- package/dist/src/connectors/composio-catalog.js +1 -3
- package/dist/src/connectors/composio.js +1 -2
- package/dist/src/connectors/connected-source-ingestion.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +1 -1
- package/dist/src/connectors/learning-coordinator.js +1 -1
- package/dist/src/connectors/principal.js +1 -22
- package/dist/src/connectors/{workflow-preflight.d.ts → requirements-preflight.d.ts} +9 -8
- package/dist/src/connectors/{workflow-preflight.js → requirements-preflight.js} +2 -10
- package/dist/src/connectors/types.d.ts +1 -1
- package/dist/src/daemon/types.d.ts +0 -9
- package/dist/src/discussions/long-review.js +0 -11
- package/dist/src/endpoint-tools/policy.js +13 -14
- package/dist/src/extensions/agent-plugins/auth.js +1 -3
- package/dist/src/extensions/agent-plugins/formats.js +2 -4
- package/dist/src/extensions/agent-plugins/mcp-format.d.ts +1 -1
- package/dist/src/extensions/agent-plugins/mcp-format.js +2 -2
- package/dist/src/extensions/bundled-extension-activation.d.ts +0 -2
- package/dist/src/extensions/bundled-extension-activation.js +1 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/types/tui.d.ts +1 -2
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -7
- package/dist/src/gateway/agent-builtin-tools.js +0 -7
- package/dist/src/gateway/agents-admin.d.ts +0 -1
- package/dist/src/gateway/agents-admin.js +0 -1
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +0 -8
- package/dist/src/gateway/hono/lib/config-payload.js +1 -2
- package/dist/src/gateway/hono/lib/config-write-lock.d.ts +1 -1
- package/dist/src/gateway/hono/lib/config-write-lock.js +1 -1
- package/dist/src/gateway/hono/middleware/auth.js +2 -2
- package/dist/src/gateway/hono/routes/activity.js +0 -1
- package/dist/src/gateway/hono/routes/agents.js +2 -9
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +0 -22
- package/dist/src/gateway/hono/routes/chat-model-config.d.ts +0 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -3
- package/dist/src/gateway/hono/routes/config.js +2 -21
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/devices.js +2 -2
- package/dist/src/gateway/hono/routes/home.js +3 -20
- package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -8
- package/dist/src/gateway/hono/routes/memory-learning.js +1 -1
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +0 -16
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +0 -3
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +1 -1
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/run-loop.js +2 -2
- package/dist/src/gateway/security/device-request-proof.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +0 -1
- package/dist/src/gateway/service/active-execution.d.ts +1 -1
- package/dist/src/gateway/service/active-execution.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -1
- package/dist/src/gateway/service/sessions-api.d.ts +1 -2
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service/task-conversation-query-service.d.ts +0 -4
- package/dist/src/gateway/service/types.d.ts +2 -0
- package/dist/src/gateway/service.d.ts +1 -8
- package/dist/src/gateway/service.js +20 -67
- package/dist/src/history/ctx/format.js +1 -1
- package/dist/src/home-intelligence/capability-preflight.js +1 -1
- package/dist/src/infra/unhandled-rejections.js +2 -2
- package/dist/src/infra/update-runner.d.ts +1 -2
- package/dist/src/infra/update-runner.js +2 -2
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge/local-folder-adapter.js +2 -5
- package/dist/src/knowledge-memory/repository.d.ts +3 -1
- package/dist/src/knowledge-memory/repository.js +10 -3
- package/dist/src/knowledge-memory/usage-policy.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/memory-learning/forget-capture.d.ts +14 -0
- package/dist/src/memory-learning/forget-capture.js +101 -0
- package/dist/src/memory-learning/forgotten-history.d.ts +15 -0
- package/dist/src/memory-learning/forgotten-history.js +137 -0
- package/dist/src/memory-learning/owner-directive.d.ts +2 -0
- package/dist/src/memory-learning/owner-directive.js +10 -0
- package/dist/src/memory-learning/service.js +0 -2
- package/dist/src/memory-learning/source-learning.js +1 -1
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/memory-learning/work-capture.js +2 -1
- package/dist/src/migrations/index.js +2 -2
- package/dist/src/migrations/runner.d.ts +1 -2
- package/dist/src/migrations/runner.js +2 -5
- package/dist/src/notes/service.js +3 -3
- package/dist/src/notes/types.d.ts +1 -2
- package/dist/src/personal-agent/communication.d.ts +0 -3
- package/dist/src/personal-agent/communication.js +1 -12
- package/dist/src/personal-agent/persona.d.ts +0 -4
- package/dist/src/personal-agent/persona.js +1 -5
- package/dist/src/personal-agent/proactivity/repository.js +2 -6
- package/dist/src/personal-agent/prompt-context.js +1 -1
- package/dist/src/personal-agent/prompts.d.ts +0 -3
- package/dist/src/personal-agent/prompts.js +7 -146
- package/dist/src/personal-agent/reply-composer.js +3 -3
- package/dist/src/personal-agent/reply-style.d.ts +1 -13
- package/dist/src/personal-agent/reply-style.js +3 -123
- package/dist/src/personal-agent/request-delivery.d.ts +1 -1
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +2 -2
- package/dist/src/personal-agent/specialist-capabilities.js +0 -1
- package/dist/src/personal-agent/task-cancel.js +2 -1
- package/dist/src/platform/client.d.ts +0 -1
- package/dist/src/platform/contracts.d.ts +0 -1
- package/dist/src/platform/contracts.js +1 -4
- package/dist/src/projects/index.d.ts +0 -1
- package/dist/src/projects/index.js +1 -2
- package/dist/src/projects/project-loop.d.ts +2 -12
- package/dist/src/projects/project-loop.js +19 -42
- package/dist/src/projects/project-store.d.ts +0 -1
- package/dist/src/projects/project-store.js +0 -11
- package/dist/src/projects/types.d.ts +0 -6
- package/dist/src/providers/model-usage.js +0 -5
- package/dist/src/realtime/runtime.js +0 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/session/manager.js +1 -1
- package/dist/src/session/store.d.ts +1 -0
- package/dist/src/session/types.d.ts +2 -6
- package/dist/src/storage/sqlite/connection-wait-repository.js +0 -33
- package/dist/src/storage/sqlite/connection.js +2 -2
- package/dist/src/storage/sqlite/device-access-repository.d.ts +2 -2
- package/dist/src/storage/sqlite/device-access-repository.js +4 -8
- package/dist/src/storage/sqlite/fts.d.ts +4 -0
- package/dist/src/storage/sqlite/fts.js +13 -4
- package/dist/src/storage/sqlite/home-attention-repository.d.ts +1 -1
- package/dist/src/storage/sqlite/index.d.ts +1 -3
- package/dist/src/storage/sqlite/index.js +4 -8
- package/dist/src/storage/sqlite/{migrations/conversation-backup.d.ts → offline-access.d.ts} +1 -4
- package/dist/src/storage/sqlite/{migrations/conversation-backup.js → offline-access.js} +6 -25
- package/dist/src/storage/sqlite/row-mappers.d.ts +0 -8
- package/dist/src/storage/sqlite/row-mappers.js +0 -8
- package/dist/src/storage/sqlite/{migrations/errors.d.ts → schema-errors.d.ts} +0 -6
- package/dist/src/storage/sqlite/schema-errors.js +28 -0
- package/dist/src/storage/sqlite/schema.d.ts +4 -5
- package/dist/src/storage/sqlite/schema.js +23 -19
- package/dist/src/storage/sqlite/schema.sql +1099 -427
- package/dist/src/storage/sqlite/session-identity-sql.js +1 -2
- package/dist/src/storage/sqlite/session-read-repository.d.ts +1 -1
- package/dist/src/storage/sqlite/session-read-repository.js +1 -2
- package/dist/src/storage/sqlite/session-repository.js +10 -36
- package/dist/src/storage/sqlite/transcript-repository.d.ts +1 -0
- package/dist/src/storage/sqlite/transcript-repository.js +14 -12
- package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.js → windows-database-owners.js} +3 -3
- package/dist/src/tasks/attention-governor.d.ts +1 -0
- package/dist/src/tasks/attention-governor.js +2 -2
- package/dist/src/tasks/capabilities/management.d.ts +0 -1
- package/dist/src/tasks/capabilities/relations.d.ts +2 -2
- package/dist/src/tasks/execution-context.d.ts +1 -1
- package/dist/src/tasks/execution-context.js +0 -2
- package/dist/src/tasks/home-query-service.d.ts +2 -16
- package/dist/src/tasks/home-query-service.js +37 -67
- package/dist/src/tasks/index.d.ts +0 -1
- package/dist/src/tasks/index.js +1 -2
- package/dist/src/tasks/project-operating-view-service.js +0 -1
- package/dist/src/tasks/task-application-service.js +0 -5
- package/dist/src/tasks/task-repository.d.ts +1 -1
- package/dist/src/tasks/task-run-coordinator.js +4 -2
- package/dist/src/tui/backends/embedded-backend.d.ts +1 -4
- package/dist/src/tui/backends/embedded-backend.js +3 -59
- package/dist/src/tui/backends/gateway-realtime-backend.d.ts +1 -2
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -27
- package/dist/src/tui/components/chat-log.d.ts +0 -2
- package/dist/src/tui/components/chat-log.js +0 -18
- package/dist/src/tui/extension-host/runtime-context.js +0 -1
- package/dist/src/tui/tui-backend.d.ts +0 -15
- package/dist/src/tui/tui-command-formatters.d.ts +0 -3
- package/dist/src/tui/tui-command-formatters.js +1 -28
- package/dist/src/tui/tui-commands.d.ts +1 -14
- package/dist/src/tui/tui-commands.js +4 -89
- package/dist/src/tui/tui-startup-resources.js +0 -2
- package/dist/src/tui/tui-startup-text.js +2 -3
- package/dist/src/tui/tui.js +1 -49
- package/dist/src/user-context/trust-policy.js +1 -1
- package/dist/src/user-model/capture/semantic.d.ts +18 -1
- package/dist/src/user-model/capture/semantic.js +26 -1
- package/dist/src/user-model/usage-policy.js +1 -1
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/logger/index.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/dist/src/voice/realtime/agentBroker.js +2 -3
- package/dist/src/voice/realtime/memory-context.js +2 -2
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/service.js +2 -2
- package/package.json +5 -6
- package/dist/extensions/feishu/src/workflow-progress.d.ts +0 -27
- package/dist/extensions/feishu/src/workflow-progress.js +0 -98
- package/dist/extensions/telegram/src/workflow-progress.d.ts +0 -24
- package/dist/extensions/telegram/src/workflow-progress.js +0 -72
- package/dist/extensions/weixin/src/workflow-progress.d.ts +0 -26
- package/dist/extensions/weixin/src/workflow-progress.js +0 -98
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-lMrejpsz.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-lXwR3Rff.js +0 -1
- package/dist/gateway/static/root/assets/agents-DFwBf95X.js +0 -77
- package/dist/gateway/static/root/assets/app-link-BV_eGr7l.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-Cja3eV7H.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-C3xbCdYa.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-CWvHbJBK.js +0 -6
- package/dist/gateway/static/root/assets/browser-automations-page-BtvOURHQ.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-C_OeE79S.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-CD6PzNK7.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-BKF6q_tC.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-B7qOaUZs.js +0 -8
- package/dist/gateway/static/root/assets/channels-3M9-anCN.js +0 -1
- package/dist/gateway/static/root/assets/code-editor-CXIH8jQw.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-LaekhDG6.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-DJP1n1_n.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-DmQqMy6l.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-BhElpD_6.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-ByvV-cDD.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-BBruQu-_.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-C3zOy8PO.js +0 -1
- package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
- package/dist/gateway/static/root/assets/file-archive-DanfQJNe.js +0 -1
- package/dist/gateway/static/root/assets/file-braces-BoAMI_k9.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CP6L2jIR.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-yXB4a40_.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CzrFZ0lB.js +0 -1
- package/dist/gateway/static/root/assets/highlight-code-BH65IIbJ.js +0 -1
- package/dist/gateway/static/root/assets/home-page-cXmd8x0S.js +0 -2
- package/dist/gateway/static/root/assets/image-generation-api-C6su4n9B.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-CsXYryWS.js +0 -1
- package/dist/gateway/static/root/assets/index-BZlryZm8.css +0 -1
- package/dist/gateway/static/root/assets/index-uAJlrGvo.js +0 -267
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-GYKLt0oF.js +0 -1
- package/dist/gateway/static/root/assets/languages-BFe8nIOO.js +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-Dw-i6VkX.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-page-DslilwNE.js +0 -1
- package/dist/gateway/static/root/assets/locale-store-D_migb9R.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-4N8bGPIE.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-CPmxI1k0.js +0 -1
- package/dist/gateway/static/root/assets/markdown-editor-BhBJANcx.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-Ljt0bhfF.js +0 -324
- package/dist/gateway/static/root/assets/markdown-view-ixUWAmoy.css +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Ba-WQCki.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-render-604gISVe.js +0 -134
- package/dist/gateway/static/root/assets/messages-D__oW2yE.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-CjTm5gxS.js +0 -5
- package/dist/gateway/static/root/assets/note-image-lightbox-hbSbEEfN.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-DkESStKc.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-eyzTNrCe.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-DZxbFQvF.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-DzubCRqj.js +0 -1
- package/dist/gateway/static/root/assets/plugin-details-dialog-BjVLbxZM.js +0 -1
- package/dist/gateway/static/root/assets/plus-Q2yW6OE7.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-7pUtUL4O.js +0 -1
- package/dist/gateway/static/root/assets/product-delivery-DwmnNJvk.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-COo4zwp9.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CrIH6nEy.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-D4swvBmH.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-DltfIMtv.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-api-CmEWVrOg.js +0 -5
- package/dist/gateway/static/root/assets/session-api-aQLptIs9.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-CfYU53aw.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BJBoWYbO.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DZgVMRXr.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-C2LHd_Nl.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-C5MTc6t-.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BcdA9ezU.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-BMw8XbKL.js +0 -2
- package/dist/gateway/static/root/assets/source-workspace-editor-DunRD1gY.js +0 -1
- package/dist/gateway/static/root/assets/style-DR0-RKaL.js +0 -7
- package/dist/gateway/static/root/assets/system-settings-panel-2Kr9Y-FJ.js +0 -1
- package/dist/gateway/static/root/assets/tab-completion-input.utils-BP3NH_du.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-7kPco8Ys.js +0 -2
- package/dist/gateway/static/root/assets/task-expandable-content-4s_FTl-9.js +0 -1
- package/dist/gateway/static/root/assets/tasks-B4bZpO6O.js +0 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-D53wxq60.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-KRy50OBd.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-Bd9HLsds.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-C9mAiHBd.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-CGg4GWwt.js +0 -6
- package/dist/gateway/static/root/assets/x-B_N4OPjy.js +0 -1
- package/dist/gateway/static/root/assets/xml-_d7dTN2Q.js +0 -3
- package/dist/src/agent/embedded/session-manager-init.d.ts +0 -4
- package/dist/src/agent/embedded/session-manager-init.js +0 -48
- package/dist/src/agent/tools/workflow-manage-tool.d.ts +0 -2
- package/dist/src/agent/tools/workflow-manage-tool.js +0 -225
- package/dist/src/agent/tools/workflow-tool.d.ts +0 -20
- package/dist/src/agent/tools/workflow-tool.js +0 -155
- package/dist/src/agent/workflow/agent-progress.d.ts +0 -5
- package/dist/src/agent/workflow/agent-progress.js +0 -65
- package/dist/src/agent/workflow/builtins/index.d.ts +0 -2
- package/dist/src/agent/workflow/builtins/index.js +0 -374
- package/dist/src/agent/workflow/catalog.d.ts +0 -52
- package/dist/src/agent/workflow/catalog.js +0 -150
- package/dist/src/agent/workflow/channel-capability.d.ts +0 -76
- package/dist/src/agent/workflow/channel-capability.js +0 -1
- package/dist/src/agent/workflow/index.d.ts +0 -10
- package/dist/src/agent/workflow/index.js +0 -9
- package/dist/src/agent/workflow/progress-broker.d.ts +0 -80
- package/dist/src/agent/workflow/progress-broker.js +0 -261
- package/dist/src/agent/workflow/snapshot-empty.d.ts +0 -2
- package/dist/src/agent/workflow/snapshot-empty.js +0 -17
- package/dist/src/agent/workflow/snapshot.d.ts +0 -28
- package/dist/src/agent/workflow/snapshot.js +0 -267
- package/dist/src/agent/workflow/step-labels.d.ts +0 -8
- package/dist/src/agent/workflow/step-labels.js +0 -50
- package/dist/src/agent/workflow/structured-output-tool.d.ts +0 -33
- package/dist/src/agent/workflow/structured-output-tool.js +0 -56
- package/dist/src/agent/workflow/subagent-runner.d.ts +0 -46
- package/dist/src/agent/workflow/subagent-runner.js +0 -221
- package/dist/src/agent/workflow/types.d.ts +0 -252
- package/dist/src/agent/workflow/types.js +0 -1
- package/dist/src/agent/workflow/workflow-child-tools.d.ts +0 -4
- package/dist/src/agent/workflow/workflow-child-tools.js +0 -38
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.d.ts +0 -5
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.js +0 -94
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.d.ts +0 -11
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +0 -194
- package/dist/src/chat-commands/builtins/workflow.d.ts +0 -18
- package/dist/src/chat-commands/builtins/workflow.js +0 -249
- package/dist/src/gateway/gateway-workflow-host.types.d.ts +0 -23
- package/dist/src/gateway/gateway-workflow-host.types.js +0 -1
- package/dist/src/gateway/hono/routes/workflows.d.ts +0 -3
- package/dist/src/gateway/hono/routes/workflows.js +0 -572
- package/dist/src/knowledge-memory/repair-evidence.d.ts +0 -2
- package/dist/src/knowledge-memory/repair-evidence.js +0 -57
- package/dist/src/migrations/cloud-public-models.d.ts +0 -7
- package/dist/src/migrations/cloud-public-models.js +0 -157
- package/dist/src/migrations/memory-config.d.ts +0 -2
- package/dist/src/migrations/memory-config.js +0 -76
- package/dist/src/migrations/retired-local-stt.d.ts +0 -2
- package/dist/src/migrations/retired-local-stt.js +0 -52
- package/dist/src/projects/workflow-bind.d.ts +0 -1
- package/dist/src/projects/workflow-bind.js +0 -15
- package/dist/src/storage/sqlite/migrations/218_core_relation_indexes.sql +0 -26
- package/dist/src/storage/sqlite/migrations/219_json_contracts.sql +0 -123
- package/dist/src/storage/sqlite/migrations/220_normalize_timestamps.sql +0 -339
- package/dist/src/storage/sqlite/migrations/221_ai_usage_retention_index.sql +0 -2
- package/dist/src/storage/sqlite/migrations/222_session_config_authority.sql +0 -13
- package/dist/src/storage/sqlite/migrations/223_session_creation_receipts.sql +0 -59
- package/dist/src/storage/sqlite/migrations/224_task_origin_links.sql +0 -8
- package/dist/src/storage/sqlite/migrations/225_task_collaboration.sql +0 -32
- package/dist/src/storage/sqlite/migrations/226_task_main_updates.sql +0 -9
- package/dist/src/storage/sqlite/migrations/227_task_main_update_decisions.sql +0 -8
- package/dist/src/storage/sqlite/migrations/228_task_main_agent_links.sql +0 -14
- package/dist/src/storage/sqlite/migrations/229_task_criterion_reviews.sql +0 -12
- package/dist/src/storage/sqlite/migrations/230_personal_agent_onboarding.sql +0 -8
- package/dist/src/storage/sqlite/migrations/231_task_result_deliveries.sql +0 -32
- package/dist/src/storage/sqlite/migrations/232_personal_requests.sql +0 -28
- package/dist/src/storage/sqlite/migrations/233_observability_usage_links.sql +0 -3
- package/dist/src/storage/sqlite/migrations/234_task_result_reply.sql +0 -14
- package/dist/src/storage/sqlite/migrations/235_personal_conversation_priority.sql +0 -3
- package/dist/src/storage/sqlite/migrations/236_personal_proactivity.sql +0 -53
- package/dist/src/storage/sqlite/migrations/237_personal_strategy_versions.sql +0 -18
- package/dist/src/storage/sqlite/migrations/238_browser_record_replay.sql +0 -45
- package/dist/src/storage/sqlite/migrations/239_clarification_notifications.sql +0 -26
- package/dist/src/storage/sqlite/migrations/240_device_settings.sql +0 -5
- package/dist/src/storage/sqlite/migrations/241_device_grant_audit.sql +0 -13
- package/dist/src/storage/sqlite/migrations/242_cloud_usage_receipts.sql +0 -5
- package/dist/src/storage/sqlite/migrations/243_voice_opening_greetings.sql +0 -12
- package/dist/src/storage/sqlite/migrations/244_device_request_proofs.sql +0 -8
- package/dist/src/storage/sqlite/migrations/245_memory_learning.sql +0 -125
- package/dist/src/storage/sqlite/migrations/246_personal_session_thinking.sql +0 -22
- package/dist/src/storage/sqlite/migrations/247_agent_selection_records.sql +0 -32
- package/dist/src/storage/sqlite/migrations/248_next_turn_suggestions.sql +0 -20
- package/dist/src/storage/sqlite/migrations/249_task_allocations.sql +0 -17
- package/dist/src/storage/sqlite/migrations/250_research_checkpoints.sql +0 -15
- package/dist/src/storage/sqlite/migrations/251_personal_result_reads.sql +0 -40
- package/dist/src/storage/sqlite/migrations/252_task_work_revisions.sql +0 -15
- package/dist/src/storage/sqlite/migrations/253_discussion_processing_recovery.sql +0 -20
- package/dist/src/storage/sqlite/migrations/254_discussion_annotations.sql +0 -17
- package/dist/src/storage/sqlite/migrations/255_discussion_chapter_progress.sql +0 -10
- package/dist/src/storage/sqlite/migrations/256_task_main_update_retries.sql +0 -21
- package/dist/src/storage/sqlite/migrations/257_session_composer_history.sql +0 -11
- package/dist/src/storage/sqlite/migrations/258_task_phase_changes.sql +0 -20
- package/dist/src/storage/sqlite/migrations/259_personal_default_style.sql +0 -10
- package/dist/src/storage/sqlite/migrations/discover.d.ts +0 -4
- package/dist/src/storage/sqlite/migrations/discover.js +0 -40
- package/dist/src/storage/sqlite/migrations/errors.js +0 -40
- package/dist/src/storage/sqlite/migrations/runner.d.ts +0 -22
- package/dist/src/storage/sqlite/migrations/runner.js +0 -112
- package/dist/src/storage/sqlite/migrations/types.d.ts +0 -12
- package/dist/src/storage/sqlite/migrations/types.js +0 -1
- package/dist/src/tasks/task-workflow-coordinator.d.ts +0 -5
- package/dist/src/tasks/task-workflow-coordinator.js +0 -55
- package/dist/src/tui/tui-workflow-slash.d.ts +0 -29
- package/dist/src/tui/tui-workflow-slash.js +0 -58
- package/dist/src/workflows/authoring/index.d.ts +0 -2
- package/dist/src/workflows/authoring/index.js +0 -3
- package/dist/src/workflows/authoring/workflow-draft-defaults.d.ts +0 -3
- package/dist/src/workflows/authoring/workflow-draft-defaults.js +0 -63
- package/dist/src/workflows/authoring/workflow-draft-store.d.ts +0 -29
- package/dist/src/workflows/authoring/workflow-draft-store.js +0 -52
- package/dist/src/workflows/context/workflow-context-snapshot-repository.d.ts +0 -21
- package/dist/src/workflows/context/workflow-context-snapshot-repository.js +0 -41
- package/dist/src/workflows/context/workflow-context.d.ts +0 -18
- package/dist/src/workflows/context/workflow-context.js +0 -164
- package/dist/src/workflows/domain/command.d.ts +0 -19
- package/dist/src/workflows/domain/command.js +0 -1
- package/dist/src/workflows/domain/definition-utils.d.ts +0 -18
- package/dist/src/workflows/domain/definition-utils.js +0 -90
- package/dist/src/workflows/domain/definition.d.ts +0 -164
- package/dist/src/workflows/domain/definition.js +0 -1
- package/dist/src/workflows/domain/event.d.ts +0 -88
- package/dist/src/workflows/domain/event.js +0 -1
- package/dist/src/workflows/domain/index.d.ts +0 -8
- package/dist/src/workflows/domain/index.js +0 -5
- package/dist/src/workflows/domain/result.d.ts +0 -68
- package/dist/src/workflows/domain/result.js +0 -1
- package/dist/src/workflows/domain/run.d.ts +0 -257
- package/dist/src/workflows/domain/run.js +0 -12
- package/dist/src/workflows/domain/schema-validation.d.ts +0 -8
- package/dist/src/workflows/domain/schema-validation.js +0 -26
- package/dist/src/workflows/domain/validation.d.ts +0 -22
- package/dist/src/workflows/domain/validation.js +0 -318
- package/dist/src/workflows/engine/index.d.ts +0 -2
- package/dist/src/workflows/engine/index.js +0 -3
- package/dist/src/workflows/engine/projector.d.ts +0 -3
- package/dist/src/workflows/engine/projector.js +0 -276
- package/dist/src/workflows/engine/workflow-engine.d.ts +0 -88
- package/dist/src/workflows/engine/workflow-engine.js +0 -719
- package/dist/src/workflows/index.d.ts +0 -11
- package/dist/src/workflows/index.js +0 -19
- package/dist/src/workflows/project-presets/project-workflow-preset-repository.d.ts +0 -20
- package/dist/src/workflows/project-presets/project-workflow-preset-repository.js +0 -39
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.d.ts +0 -9
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.js +0 -30
- package/dist/src/workflows/registry/index.d.ts +0 -2
- package/dist/src/workflows/registry/index.js +0 -2
- package/dist/src/workflows/registry/workflow-definition-registry.d.ts +0 -15
- package/dist/src/workflows/registry/workflow-definition-registry.js +0 -1
- package/dist/src/workflows/runtime/graph-workflow-runtime.d.ts +0 -10
- package/dist/src/workflows/runtime/graph-workflow-runtime.js +0 -289
- package/dist/src/workflows/runtime/index.d.ts +0 -2
- package/dist/src/workflows/runtime/index.js +0 -2
- package/dist/src/workflows/runtime/workflow-runtime-port.d.ts +0 -13
- package/dist/src/workflows/runtime/workflow-runtime-port.js +0 -1
- package/dist/src/workflows/service/run-view-to-snapshot.d.ts +0 -4
- package/dist/src/workflows/service/run-view-to-snapshot.js +0 -64
- package/dist/src/workflows/service/workflow-run-service.d.ts +0 -63
- package/dist/src/workflows/service/workflow-run-service.js +0 -892
- package/dist/src/workflows/service/workflow-run-service.types.d.ts +0 -62
- package/dist/src/workflows/service/workflow-run-service.types.js +0 -1
- package/dist/src/workflows/service/workflow-session-bridge.d.ts +0 -33
- package/dist/src/workflows/service/workflow-session-bridge.js +0 -244
- package/dist/src/workflows/service/workflow-session-key.d.ts +0 -3
- package/dist/src/workflows/service/workflow-session-key.js +0 -19
- package/dist/src/workflows/service/workflow-writeback-service.d.ts +0 -9
- package/dist/src/workflows/service/workflow-writeback-service.js +0 -107
- package/dist/src/workflows/store/event-store.d.ts +0 -16
- package/dist/src/workflows/store/event-store.js +0 -38
- package/dist/src/workflows/store/paths.d.ts +0 -5
- package/dist/src/workflows/store/paths.js +0 -18
- package/dist/src/workflows/store/run-index-store.d.ts +0 -9
- package/dist/src/workflows/store/run-index-store.js +0 -64
- package/dist/src/workflows/store/run-store.d.ts +0 -16
- package/dist/src/workflows/store/run-store.js +0 -40
- package/skills/engineering/workflow-authoring/SKILL.md +0 -32
- /package/dist/gateway/static/root/assets/{style-DLioOiRN.css → project-detail-page-DLioOiRN.css} +0 -0
- /package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.d.ts → windows-database-owners.d.ts} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { WorkflowRunInputEnvelope } from '../../workflows/domain/index.js';
|
|
2
1
|
import type { TaskCommand } from '@xopcai/gateway-contract';
|
|
3
2
|
import type { TurnOrigin } from '@xopcai/endpoint-tools-protocol';
|
|
4
|
-
import type { WorkflowRunServiceLike } from '../../workflows/service/workflow-run-service.types.js';
|
|
5
3
|
export type AutomationSchedule = {
|
|
6
4
|
kind: 'once';
|
|
7
5
|
at: string;
|
|
@@ -35,16 +33,6 @@ export type AutomationAction = {
|
|
|
35
33
|
workingDirectory?: string;
|
|
36
34
|
model?: string;
|
|
37
35
|
timeoutSeconds?: number;
|
|
38
|
-
} | {
|
|
39
|
-
kind: 'workflow';
|
|
40
|
-
workflowId: string;
|
|
41
|
-
agentId?: string;
|
|
42
|
-
input?: unknown;
|
|
43
|
-
inputEnvelope?: WorkflowRunInputEnvelope;
|
|
44
|
-
goal?: string;
|
|
45
|
-
concurrency?: number;
|
|
46
|
-
maxSubagents?: number;
|
|
47
|
-
timeoutSeconds?: number;
|
|
48
36
|
} | {
|
|
49
37
|
kind: 'browser_automation';
|
|
50
38
|
automationId: string;
|
|
@@ -154,7 +142,6 @@ export interface AutomationRun {
|
|
|
154
142
|
summary?: string;
|
|
155
143
|
error?: string;
|
|
156
144
|
conversationId?: string;
|
|
157
|
-
workflowRunId?: string;
|
|
158
145
|
model?: string;
|
|
159
146
|
deadlineAtMs?: number;
|
|
160
147
|
currentPhase?: AutomationRunPhase;
|
|
@@ -341,7 +328,6 @@ export interface AutomationDeps {
|
|
|
341
328
|
};
|
|
342
329
|
getDefaultAgentId?: () => string;
|
|
343
330
|
prepareAgentSession?: (input: PrepareAutomationAgentSessionInput) => Promise<void>;
|
|
344
|
-
workflowRunService?: WorkflowRunServiceLike;
|
|
345
331
|
browserAutomationService?: {
|
|
346
332
|
get(id: string): {
|
|
347
333
|
revision: number;
|
|
@@ -399,7 +385,6 @@ export interface AutomationActionTask {
|
|
|
399
385
|
summary?: string;
|
|
400
386
|
error?: string;
|
|
401
387
|
conversationId?: string;
|
|
402
|
-
workflowRunId?: string;
|
|
403
388
|
model?: string;
|
|
404
389
|
deadlineAtMs?: number;
|
|
405
390
|
termination?: AutomationRunTermination;
|
|
@@ -43,21 +43,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
43
43
|
workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
44
44
|
model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
45
45
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
47
|
-
kind: z.ZodLiteral<"workflow">;
|
|
48
|
-
workflowId: z.ZodString;
|
|
49
|
-
agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
50
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
51
|
-
inputEnvelope: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
payload: z.ZodUnknown;
|
|
53
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
54
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
-
}, z.core.$strict>>;
|
|
57
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
58
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
59
|
-
maxSubagents: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
61
46
|
}, z.core.$strict>, z.ZodObject<{
|
|
62
47
|
kind: z.ZodLiteral<"browser_automation">;
|
|
63
48
|
automationId: z.ZodString;
|
|
@@ -91,11 +76,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
91
76
|
executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
77
|
kind: z.ZodLiteral<"agent">;
|
|
93
78
|
agentId: z.ZodString;
|
|
94
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
kind: z.ZodLiteral<"workflow">;
|
|
96
|
-
workflowId: z.ZodString;
|
|
97
|
-
workflowVersion: z.ZodOptional<z.ZodString>;
|
|
98
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
99
79
|
}, z.core.$strip>, z.ZodObject<{
|
|
100
80
|
kind: z.ZodLiteral<"human">;
|
|
101
81
|
actorId: z.ZodString;
|
|
@@ -273,21 +253,6 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
273
253
|
workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
274
254
|
model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
275
255
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
276
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
277
|
-
kind: z.ZodLiteral<"workflow">;
|
|
278
|
-
workflowId: z.ZodString;
|
|
279
|
-
agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
280
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
281
|
-
inputEnvelope: z.ZodOptional<z.ZodObject<{
|
|
282
|
-
payload: z.ZodUnknown;
|
|
283
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
284
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
285
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
286
|
-
}, z.core.$strict>>;
|
|
287
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
288
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
maxSubagents: z.ZodOptional<z.ZodNumber>;
|
|
290
|
-
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
291
256
|
}, z.core.$strict>, z.ZodObject<{
|
|
292
257
|
kind: z.ZodLiteral<"browser_automation">;
|
|
293
258
|
automationId: z.ZodString;
|
|
@@ -321,11 +286,6 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
321
286
|
executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
322
287
|
kind: z.ZodLiteral<"agent">;
|
|
323
288
|
agentId: z.ZodString;
|
|
324
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
325
|
-
kind: z.ZodLiteral<"workflow">;
|
|
326
|
-
workflowId: z.ZodString;
|
|
327
|
-
workflowVersion: z.ZodOptional<z.ZodString>;
|
|
328
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
329
289
|
}, z.core.$strip>, z.ZodObject<{
|
|
330
290
|
kind: z.ZodLiteral<"human">;
|
|
331
291
|
actorId: z.ZodString;
|
|
@@ -482,21 +442,6 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
482
442
|
workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
483
443
|
model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
484
444
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
485
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
486
|
-
kind: z.ZodLiteral<"workflow">;
|
|
487
|
-
workflowId: z.ZodString;
|
|
488
|
-
agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
489
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
490
|
-
inputEnvelope: z.ZodOptional<z.ZodObject<{
|
|
491
|
-
payload: z.ZodUnknown;
|
|
492
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
493
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
494
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
495
|
-
}, z.core.$strict>>;
|
|
496
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
497
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
498
|
-
maxSubagents: z.ZodOptional<z.ZodNumber>;
|
|
499
|
-
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
500
445
|
}, z.core.$strict>, z.ZodObject<{
|
|
501
446
|
kind: z.ZodLiteral<"browser_automation">;
|
|
502
447
|
automationId: z.ZodString;
|
|
@@ -530,11 +475,6 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
530
475
|
executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
531
476
|
kind: z.ZodLiteral<"agent">;
|
|
532
477
|
agentId: z.ZodString;
|
|
533
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
534
|
-
kind: z.ZodLiteral<"workflow">;
|
|
535
|
-
workflowId: z.ZodString;
|
|
536
|
-
workflowVersion: z.ZodOptional<z.ZodString>;
|
|
537
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
538
478
|
}, z.core.$strip>, z.ZodObject<{
|
|
539
479
|
kind: z.ZodLiteral<"human">;
|
|
540
480
|
actorId: z.ZodString;
|
|
@@ -718,21 +658,6 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
718
658
|
workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
719
659
|
model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
720
660
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
721
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
722
|
-
kind: z.ZodLiteral<"workflow">;
|
|
723
|
-
workflowId: z.ZodString;
|
|
724
|
-
agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
725
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
726
|
-
inputEnvelope: z.ZodOptional<z.ZodObject<{
|
|
727
|
-
payload: z.ZodUnknown;
|
|
728
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
729
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
730
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
731
|
-
}, z.core.$strict>>;
|
|
732
|
-
goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
|
|
733
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
734
|
-
maxSubagents: z.ZodOptional<z.ZodNumber>;
|
|
735
|
-
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
736
661
|
}, z.core.$strict>, z.ZodObject<{
|
|
737
662
|
kind: z.ZodLiteral<"browser_automation">;
|
|
738
663
|
automationId: z.ZodString;
|
|
@@ -766,11 +691,6 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
766
691
|
executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
767
692
|
kind: z.ZodLiteral<"agent">;
|
|
768
693
|
agentId: z.ZodString;
|
|
769
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
770
|
-
kind: z.ZodLiteral<"workflow">;
|
|
771
|
-
workflowId: z.ZodString;
|
|
772
|
-
workflowVersion: z.ZodOptional<z.ZodString>;
|
|
773
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
774
694
|
}, z.core.$strip>, z.ZodObject<{
|
|
775
695
|
kind: z.ZodLiteral<"human">;
|
|
776
696
|
actorId: z.ZodString;
|
|
@@ -66,12 +66,6 @@ const AutomationTriggerSchema = z.discriminatedUnion("kind", [
|
|
|
66
66
|
])).optional()
|
|
67
67
|
}).strict()
|
|
68
68
|
]);
|
|
69
|
-
const WorkflowRunInputEnvelopeSchema = z.object({
|
|
70
|
-
payload: z.unknown(),
|
|
71
|
-
goal: optionalTrimmedString(5e3),
|
|
72
|
-
variables: z.record(z.string(), z.unknown()).optional(),
|
|
73
|
-
context: z.record(z.string(), z.unknown()).optional()
|
|
74
|
-
}).strict();
|
|
75
69
|
const AutomationActionSchema = z.discriminatedUnion("kind", [
|
|
76
70
|
z.object({
|
|
77
71
|
kind: z.literal("agent"),
|
|
@@ -81,17 +75,6 @@ const AutomationActionSchema = z.discriminatedUnion("kind", [
|
|
|
81
75
|
model: optionalTrimmedString(100),
|
|
82
76
|
timeoutSeconds: z.number().int().min(1).max(86400).optional()
|
|
83
77
|
}).strict(),
|
|
84
|
-
z.object({
|
|
85
|
-
kind: z.literal("workflow"),
|
|
86
|
-
workflowId: nonEmptyString.max(200),
|
|
87
|
-
agentId: optionalTrimmedString(64),
|
|
88
|
-
input: z.unknown().optional(),
|
|
89
|
-
inputEnvelope: WorkflowRunInputEnvelopeSchema.optional(),
|
|
90
|
-
goal: optionalTrimmedString(5e3),
|
|
91
|
-
concurrency: z.number().int().min(1).max(50).optional(),
|
|
92
|
-
maxSubagents: z.number().int().min(1).max(100).optional(),
|
|
93
|
-
timeoutSeconds: z.number().int().min(1).max(86400).optional()
|
|
94
|
-
}).strict(),
|
|
95
78
|
z.object({
|
|
96
79
|
kind: z.literal("browser_automation"),
|
|
97
80
|
automationId: nonEmptyString.max(100),
|
|
@@ -33,12 +33,10 @@ Useful product events:
|
|
|
33
33
|
- note.updated
|
|
34
34
|
- task.created
|
|
35
35
|
- task.attention_required.v2
|
|
36
|
-
- workflow.run.completed
|
|
37
36
|
- channel.message.received
|
|
38
37
|
|
|
39
38
|
Allowed actions:
|
|
40
39
|
- Agent: { "kind": "agent", "agentId": "optional", "instruction": "what to do", "timeoutSeconds": 300 }
|
|
41
|
-
- Workflow: { "kind": "workflow", "workflowId": "known_workflow_id", "input": {}, "goal": "optional", "timeoutSeconds": 300 }
|
|
42
40
|
|
|
43
41
|
Safety modes:
|
|
44
42
|
- { "mode": "suggest_only" }: safest default, generate recommendations only.
|
|
@@ -46,7 +44,6 @@ Safety modes:
|
|
|
46
44
|
- { "mode": "auto_apply" }: trusted automation may act automatically.
|
|
47
45
|
|
|
48
46
|
Rules:
|
|
49
|
-
- Prefer agent actions unless the user names a specific existing workflow id.
|
|
50
47
|
- Default to safety { "mode": "suggest_only" } unless the user explicitly asks for fully automatic execution.
|
|
51
48
|
- Do not invent destructive actions. For deletion, external sending, or irreversible changes, include a risk and make the instruction ask for confirmation.
|
|
52
49
|
- Use cron for daily/weekly schedules. Use standard 5-field cron.
|
|
@@ -42,21 +42,6 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
42
42
|
workingDirectory?: string;
|
|
43
43
|
model?: string;
|
|
44
44
|
timeoutSeconds?: number;
|
|
45
|
-
} | {
|
|
46
|
-
kind: "workflow";
|
|
47
|
-
workflowId: string;
|
|
48
|
-
agentId?: string;
|
|
49
|
-
input?: unknown;
|
|
50
|
-
inputEnvelope?: {
|
|
51
|
-
payload: unknown;
|
|
52
|
-
goal?: string;
|
|
53
|
-
variables?: Record<string, unknown>;
|
|
54
|
-
context?: Record<string, unknown>;
|
|
55
|
-
};
|
|
56
|
-
goal?: string;
|
|
57
|
-
concurrency?: number;
|
|
58
|
-
maxSubagents?: number;
|
|
59
|
-
timeoutSeconds?: number;
|
|
60
45
|
} | {
|
|
61
46
|
kind: "browser_automation";
|
|
62
47
|
automationId: string;
|
|
@@ -79,11 +64,6 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
79
64
|
executor?: {
|
|
80
65
|
kind: "agent";
|
|
81
66
|
agentId: string;
|
|
82
|
-
} | {
|
|
83
|
-
kind: "workflow";
|
|
84
|
-
workflowId: string;
|
|
85
|
-
workflowVersion?: string;
|
|
86
|
-
input?: unknown;
|
|
87
67
|
} | {
|
|
88
68
|
kind: "human";
|
|
89
69
|
actorId: string;
|
|
@@ -89,7 +89,6 @@ function summarizeTrigger(trigger) {
|
|
|
89
89
|
return `Runs on cron schedule ${schedule.expr}.`;
|
|
90
90
|
}
|
|
91
91
|
function summarizeAction(action) {
|
|
92
|
-
if (action.kind === "workflow") return `Starts workflow ${action.workflowId}.`;
|
|
93
92
|
if (action.kind === "browser_automation") return `Runs browser automation ${action.automationId}.`;
|
|
94
93
|
if (action.kind === "task_command") return `Applies ${action.command?.type ?? "a command"} to task ${action.taskId}.`;
|
|
95
94
|
if (action.kind === "system") return `Runs system capability ${action.capability}.`;
|
|
@@ -79,12 +79,6 @@ for (const definition of [
|
|
|
79
79
|
"session.transcript.updated",
|
|
80
80
|
"session",
|
|
81
81
|
"A Session transcript changed."
|
|
82
|
-
],
|
|
83
|
-
[
|
|
84
|
-
"workflows",
|
|
85
|
-
"workflow.run.completed",
|
|
86
|
-
"workflow_run",
|
|
87
|
-
"A Workflow run completed."
|
|
88
82
|
]
|
|
89
83
|
]) registerBusinessEvent({
|
|
90
84
|
source: definition[0],
|
|
@@ -75,10 +75,6 @@ var AutomationActionExecutor = class {
|
|
|
75
75
|
handlers = /* @__PURE__ */ new Map();
|
|
76
76
|
constructor() {
|
|
77
77
|
this.register("agent", { mode: "never" }, (input, action) => this.executeAgent(input.automation, action, input.run, input.signal, input.hooks, input.deadlineAtMs, input.context));
|
|
78
|
-
this.register("workflow", {
|
|
79
|
-
mode: "idempotent",
|
|
80
|
-
key: "run_id"
|
|
81
|
-
}, (input, action) => this.executeWorkflow(input.automation, action, input.run, input.signal, input.hooks, input.context));
|
|
82
78
|
this.register("browser_automation", { mode: "never" }, (input, action) => this.executeBrowserAutomation(input.automation, action, input.signal, input.hooks, input.context, input.run.id));
|
|
83
79
|
this.register("task_command", {
|
|
84
80
|
mode: "idempotent",
|
|
@@ -270,97 +266,6 @@ var AutomationActionExecutor = class {
|
|
|
270
266
|
model
|
|
271
267
|
};
|
|
272
268
|
}
|
|
273
|
-
async executeWorkflow(automation, action, run, signal, hooks, context) {
|
|
274
|
-
const safetyMode = automation.safety?.mode ?? "auto_apply";
|
|
275
|
-
if (safetyMode === "suggest_only") return {
|
|
276
|
-
status: "succeeded",
|
|
277
|
-
summary: `Suggest only: workflow ${action.workflowId} was not started. Review the automation and upgrade safety mode to run it automatically.`
|
|
278
|
-
};
|
|
279
|
-
if (safetyMode === "ask_before_apply") return {
|
|
280
|
-
status: "succeeded",
|
|
281
|
-
summary: `Ask before applying: workflow ${action.workflowId} is ready, but was not started automatically. Upgrade to Auto apply when you trust this automation.`
|
|
282
|
-
};
|
|
283
|
-
const workflowRunService = this.deps.workflowRunService;
|
|
284
|
-
if (!workflowRunService) return {
|
|
285
|
-
status: "failed",
|
|
286
|
-
error: "Workflow service is not available"
|
|
287
|
-
};
|
|
288
|
-
const agentId = normalizeAgentId(action.agentId || this.deps.getDefaultAgentId?.() || "main");
|
|
289
|
-
const idempotencyKey = `automation:${automation.id}:${run.id}`;
|
|
290
|
-
const inputEnvelope = context.triggerEvent ? {
|
|
291
|
-
...action.inputEnvelope ?? {
|
|
292
|
-
payload: action.input ?? {},
|
|
293
|
-
goal: action.goal
|
|
294
|
-
},
|
|
295
|
-
context: {
|
|
296
|
-
...action.inputEnvelope?.context ?? {},
|
|
297
|
-
automationTrigger: context.triggerEvent
|
|
298
|
-
}
|
|
299
|
-
} : action.inputEnvelope;
|
|
300
|
-
const result = await workflowRunService.startWorkflowRun({
|
|
301
|
-
agentId,
|
|
302
|
-
definitionId: action.workflowId,
|
|
303
|
-
input: action.input,
|
|
304
|
-
inputEnvelope,
|
|
305
|
-
goal: action.goal,
|
|
306
|
-
projectId: automation.projectId,
|
|
307
|
-
concurrency: action.concurrency,
|
|
308
|
-
maxSubagents: action.maxSubagents,
|
|
309
|
-
source: {
|
|
310
|
-
kind: "automation",
|
|
311
|
-
automationId: automation.id,
|
|
312
|
-
runId: run.id
|
|
313
|
-
},
|
|
314
|
-
idempotencyKey
|
|
315
|
-
});
|
|
316
|
-
if (result.ok === false) return {
|
|
317
|
-
status: "failed",
|
|
318
|
-
error: result.message
|
|
319
|
-
};
|
|
320
|
-
await hooks.onRunPatch?.({
|
|
321
|
-
conversationId: result.conversationId,
|
|
322
|
-
workflowRunId: result.runId,
|
|
323
|
-
currentPhase: "action"
|
|
324
|
-
});
|
|
325
|
-
if (!workflowRunService.readWorkflowRunView) return {
|
|
326
|
-
status: "succeeded",
|
|
327
|
-
summary: `Started workflow run ${result.runId}`,
|
|
328
|
-
conversationId: result.conversationId,
|
|
329
|
-
workflowRunId: result.runId
|
|
330
|
-
};
|
|
331
|
-
while (!signal.aborted) {
|
|
332
|
-
const view = await workflowRunService.readWorkflowRunView(agentId, result.runId);
|
|
333
|
-
if (!view) return {
|
|
334
|
-
status: "failed",
|
|
335
|
-
error: `Workflow run ${result.runId} disappeared`
|
|
336
|
-
};
|
|
337
|
-
const workflowStatus = view.run.status;
|
|
338
|
-
if (workflowStatus === "succeeded") return {
|
|
339
|
-
status: "succeeded",
|
|
340
|
-
summary: `Workflow run ${result.runId} completed`,
|
|
341
|
-
conversationId: result.conversationId,
|
|
342
|
-
workflowRunId: result.runId
|
|
343
|
-
};
|
|
344
|
-
if (workflowStatus === "failed" || workflowStatus === "cancelled" || workflowStatus === "timeout") return {
|
|
345
|
-
status: workflowStatus,
|
|
346
|
-
error: view.run.error?.message ?? `Workflow run ${result.runId} ${workflowStatus}`,
|
|
347
|
-
conversationId: result.conversationId,
|
|
348
|
-
workflowRunId: result.runId
|
|
349
|
-
};
|
|
350
|
-
await waitForSignalOrDelay(signal, 500);
|
|
351
|
-
}
|
|
352
|
-
await workflowRunService.cancelWorkflowRun?.({
|
|
353
|
-
agentId,
|
|
354
|
-
runId: result.runId,
|
|
355
|
-
reason: "Parent automation was cancelled or reached its deadline"
|
|
356
|
-
});
|
|
357
|
-
return {
|
|
358
|
-
status: "cancelled",
|
|
359
|
-
error: "Parent automation stopped while the workflow was running",
|
|
360
|
-
conversationId: result.conversationId,
|
|
361
|
-
workflowRunId: result.runId
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
269
|
};
|
|
365
270
|
function appendTriggerContext(instruction, event) {
|
|
366
271
|
if (!event) return instruction;
|
|
@@ -374,26 +279,12 @@ function appendTriggerContext(instruction, event) {
|
|
|
374
279
|
"</automation_trigger_context>"
|
|
375
280
|
].join("\n");
|
|
376
281
|
}
|
|
377
|
-
function waitForSignalOrDelay(signal, delayMs) {
|
|
378
|
-
return new Promise((resolve) => {
|
|
379
|
-
const timer = setTimeout(() => {
|
|
380
|
-
signal.removeEventListener("abort", onAbort);
|
|
381
|
-
resolve();
|
|
382
|
-
}, delayMs);
|
|
383
|
-
const onAbort = () => {
|
|
384
|
-
clearTimeout(timer);
|
|
385
|
-
resolve();
|
|
386
|
-
};
|
|
387
|
-
if (signal.aborted) onAbort();
|
|
388
|
-
else signal.addEventListener("abort", onAbort, { once: true });
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
282
|
function buildSafetyInstruction(automation, instruction) {
|
|
392
283
|
const mode = automation.safety?.mode ?? "auto_apply";
|
|
393
284
|
if (mode === "suggest_only") return [
|
|
394
285
|
"Automation safety mode: Suggest only.",
|
|
395
286
|
"Only analyze the situation and produce a concise recommendation.",
|
|
396
|
-
"Do not modify files, notes, Tasks,
|
|
287
|
+
"Do not modify files, notes, Tasks, external systems, or persistent state.",
|
|
397
288
|
"If a change seems useful, describe the exact change for the user to review.",
|
|
398
289
|
"",
|
|
399
290
|
instruction
|
|
@@ -622,7 +622,6 @@ var AutomationService = class {
|
|
|
622
622
|
summary: task.summary,
|
|
623
623
|
error: task.error,
|
|
624
624
|
conversationId: task.conversationId ?? run.conversationId,
|
|
625
|
-
workflowRunId: task.workflowRunId,
|
|
626
625
|
model: task.model
|
|
627
626
|
});
|
|
628
627
|
run = {
|
|
@@ -631,7 +630,6 @@ var AutomationService = class {
|
|
|
631
630
|
summary: task.summary,
|
|
632
631
|
error,
|
|
633
632
|
conversationId: task.conversationId ?? run.conversationId,
|
|
634
|
-
workflowRunId: task.workflowRunId,
|
|
635
633
|
model: task.model,
|
|
636
634
|
deadlineAtMs: task.deadlineAtMs ?? run.deadlineAtMs,
|
|
637
635
|
termination: task.termination ?? (status === "succeeded" ? {
|
|
@@ -20,7 +20,6 @@ function rowToRun(row) {
|
|
|
20
20
|
summary: row.summary ?? void 0,
|
|
21
21
|
error: row.error ?? void 0,
|
|
22
22
|
conversationId: row.conversation_id ?? void 0,
|
|
23
|
-
workflowRunId: row.workflow_run_id ?? void 0,
|
|
24
23
|
model: row.model ?? void 0,
|
|
25
24
|
deadlineAtMs: row.deadline_at_ms ?? void 0,
|
|
26
25
|
currentPhase: row.current_phase ?? void 0,
|
|
@@ -86,11 +85,11 @@ function saveAutomationRun(run) {
|
|
|
86
85
|
db.prepare(`INSERT OR REPLACE INTO automation_runs (
|
|
87
86
|
run_id, automation_id, automation_name, status, trigger_snapshot_json,
|
|
88
87
|
action_snapshot_json, manual, created_at_ms, started_at_ms, ended_at_ms,
|
|
89
|
-
duration_ms, summary, error, conversation_id,
|
|
88
|
+
duration_ms, summary, error, conversation_id, model,
|
|
90
89
|
deadline_at_ms, current_phase, cancel_requested_at_ms, cancel_confirmed_at_ms,
|
|
91
90
|
termination_json, heartbeat_at_ms, lease_owner, lease_expires_at_ms,
|
|
92
91
|
attempt_number, root_run_id, read_at_ms
|
|
93
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
|
|
92
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(run.id, run.automationId, run.automationName, run.status, JSON.stringify(run.triggerSnapshot), JSON.stringify(run.actionSnapshot), run.manual ? 1 : 0, run.createdAtMs, run.startedAtMs ?? null, run.endedAtMs ?? null, run.durationMs ?? null, run.summary ?? null, run.error ?? null, run.conversationId ?? null, run.model ?? null, run.deadlineAtMs ?? null, run.currentPhase ?? null, run.cancelRequestedAtMs ?? null, run.cancelConfirmedAtMs ?? null, run.termination ? JSON.stringify(run.termination) : null, run.heartbeatAtMs ?? null, run.leaseOwner ?? null, run.leaseExpiresAtMs ?? null, run.attemptNumber ?? 1, run.rootRunId ?? run.id, run.readAtMs ?? null);
|
|
94
93
|
trimRuns(db, run.automationId);
|
|
95
94
|
});
|
|
96
95
|
}
|
|
@@ -108,7 +107,7 @@ function listAutomationRunEvents(runId) {
|
|
|
108
107
|
function getAutomationRun(runId) {
|
|
109
108
|
const row = getSqliteDatabase().prepare(`SELECT run_id, automation_id, automation_name, status, trigger_snapshot_json,
|
|
110
109
|
action_snapshot_json, manual, created_at_ms, started_at_ms, ended_at_ms,
|
|
111
|
-
duration_ms, summary, error, conversation_id,
|
|
110
|
+
duration_ms, summary, error, conversation_id, model,
|
|
112
111
|
deadline_at_ms, current_phase, cancel_requested_at_ms, cancel_confirmed_at_ms,
|
|
113
112
|
termination_json, heartbeat_at_ms, lease_owner, lease_expires_at_ms,
|
|
114
113
|
attempt_number, root_run_id, read_at_ms
|
|
@@ -121,7 +120,7 @@ function listAutomationRuns(options) {
|
|
|
121
120
|
const db = getSqliteDatabase();
|
|
122
121
|
const base = `SELECT run_id, automation_id, automation_name, status, trigger_snapshot_json,
|
|
123
122
|
action_snapshot_json, manual, created_at_ms, started_at_ms, ended_at_ms,
|
|
124
|
-
duration_ms, summary, error, conversation_id,
|
|
123
|
+
duration_ms, summary, error, conversation_id, model,
|
|
125
124
|
deadline_at_ms, current_phase, cancel_requested_at_ms, cancel_confirmed_at_ms,
|
|
126
125
|
termination_json, heartbeat_at_ms, lease_owner, lease_expires_at_ms,
|
|
127
126
|
attempt_number, root_run_id, read_at_ms
|
|
@@ -130,7 +129,7 @@ function listAutomationRuns(options) {
|
|
|
130
129
|
if (options?.automationId) rows = db.prepare(`${base} WHERE automation_id = ? ORDER BY created_at_ms DESC LIMIT ?`).all(options.automationId, limit);
|
|
131
130
|
else if (options?.projectId) rows = db.prepare(`SELECT r.run_id, r.automation_id, r.automation_name, r.status, r.trigger_snapshot_json,
|
|
132
131
|
r.action_snapshot_json, r.manual, r.created_at_ms, r.started_at_ms, r.ended_at_ms,
|
|
133
|
-
r.duration_ms, r.summary, r.error, r.conversation_id, r.
|
|
132
|
+
r.duration_ms, r.summary, r.error, r.conversation_id, r.model,
|
|
134
133
|
r.deadline_at_ms, r.current_phase, r.cancel_requested_at_ms, r.cancel_confirmed_at_ms,
|
|
135
134
|
r.termination_json, r.heartbeat_at_ms, r.lease_owner, r.lease_expires_at_ms,
|
|
136
135
|
r.attempt_number, r.root_run_id, r.read_at_ms
|
|
@@ -156,7 +155,7 @@ function listAutomationRunsForProductEvent(options) {
|
|
|
156
155
|
}
|
|
157
156
|
return getSqliteDatabase().prepare(`SELECT r.run_id, r.automation_id, r.automation_name, r.status, r.trigger_snapshot_json,
|
|
158
157
|
r.action_snapshot_json, r.manual, r.created_at_ms, r.started_at_ms, r.ended_at_ms,
|
|
159
|
-
r.duration_ms, r.summary, r.error, r.conversation_id, r.
|
|
158
|
+
r.duration_ms, r.summary, r.error, r.conversation_id, r.model,
|
|
160
159
|
r.deadline_at_ms, r.current_phase, r.cancel_requested_at_ms, r.cancel_confirmed_at_ms,
|
|
161
160
|
r.termination_json, r.heartbeat_at_ms, r.lease_owner, r.lease_expires_at_ms,
|
|
162
161
|
r.attempt_number, r.root_run_id, r.read_at_ms,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_node_sqlite, requireNodeSqlite } from "../infra/node-sqlite.js";
|
|
2
2
|
import { expandWorkspacePathString, init_workspace_path } from "../config/workspace-path.js";
|
|
3
|
-
import { assertDatabaseOffline } from "../storage/sqlite/
|
|
3
|
+
import { assertDatabaseOffline } from "../storage/sqlite/offline-access.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";
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
agentCatalog: AgentCatalogCutoverResult;
|
|
4
|
-
configChanged: boolean;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Bring durable application state to the current shape before strict config loading.
|
|
8
|
-
* Ordering is intentional: legacy Agent fields must leave JSON before ConfigSchema sees it.
|
|
9
|
-
*/
|
|
10
|
-
export declare function bootstrapApplicationStateSync(configPath: string): ApplicationStateBootstrapResult;
|
|
1
|
+
/** Initialize current application state without importing retired configuration. */
|
|
2
|
+
export declare function bootstrapApplicationStateSync(): void;
|
|
@@ -1,30 +1,17 @@
|
|
|
1
1
|
import { requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
3
|
+
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
3
4
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
4
|
-
import { cutoverLegacyAgentConfig } from "../agent-catalog/migrations/legacy-config-cutover.js";
|
|
5
|
-
import "../agent-catalog/index.js";
|
|
6
5
|
import { ensureStarterAgentsInitialized } from "../agent/starter-agents.js";
|
|
7
|
-
import { migrateIdentityMarkdownToCatalog } from "../agent-catalog/migrations/identity-markdown-cutover.js";
|
|
8
|
-
import { migrateCloudPublicModelsSync } from "../migrations/cloud-public-models.js";
|
|
9
|
-
import { runBootstrapMigrationsSync } from "../migrations/runner.js";
|
|
10
6
|
//#region src/bootstrap/application-state.ts
|
|
7
|
+
init_repository();
|
|
11
8
|
init_sqlite();
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
* Ordering is intentional: legacy Agent fields must leave JSON before ConfigSchema sees it.
|
|
15
|
-
*/
|
|
16
|
-
function bootstrapApplicationStateSync(configPath) {
|
|
9
|
+
/** Initialize current application state without importing retired configuration. */
|
|
10
|
+
function bootstrapApplicationStateSync() {
|
|
17
11
|
requireXopcDatabase();
|
|
18
|
-
|
|
19
|
-
const configMigration = runBootstrapMigrationsSync(configPath);
|
|
20
|
-
const cloudModelsChanged = migrateCloudPublicModelsSync(configPath);
|
|
12
|
+
new AgentCatalogRepository().ensureInitialized();
|
|
21
13
|
ensureStarterAgentsInitialized();
|
|
22
|
-
migrateIdentityMarkdownToCatalog();
|
|
23
14
|
new AgentCatalogService().resumePendingProvisioningSync();
|
|
24
|
-
return {
|
|
25
|
-
agentCatalog,
|
|
26
|
-
configChanged: configMigration.changed || cloudModelsChanged
|
|
27
|
-
};
|
|
28
15
|
}
|
|
29
16
|
//#endregion
|
|
30
17
|
export { bootstrapApplicationStateSync };
|
|
@@ -36,8 +36,6 @@ export declare class ChannelManager {
|
|
|
36
36
|
registerPlugin(plugin: ChannelPlugin): void;
|
|
37
37
|
getPlugin(id: string): ChannelPlugin | undefined;
|
|
38
38
|
getAllPlugins(): ChannelPlugin[];
|
|
39
|
-
/** Backward-compat alias for `getAllPlugins`. */
|
|
40
|
-
getAllChannels(): ChannelPlugin[];
|
|
41
39
|
/** Channel IDs whose runtime reports connected (e.g. Telegram polling active). */
|
|
42
40
|
getRunningChannels(): string[];
|
|
43
41
|
initialize(): Promise<void>;
|
|
@@ -57,10 +57,6 @@ var ChannelManager = class {
|
|
|
57
57
|
getAllPlugins() {
|
|
58
58
|
return this.registry.all();
|
|
59
59
|
}
|
|
60
|
-
/** Backward-compat alias for `getAllPlugins`. */
|
|
61
|
-
getAllChannels() {
|
|
62
|
-
return this.registry.all();
|
|
63
|
-
}
|
|
64
60
|
/** Channel IDs whose runtime reports connected (e.g. Telegram polling active). */
|
|
65
61
|
getRunningChannels() {
|
|
66
62
|
return this.registry.runningChannelIds(this.config, (id) => this.lifecycle.isInitialized(id));
|
|
@@ -10,7 +10,8 @@ export { approveChannelPairingFromCli } from './approve-cli.js';
|
|
|
10
10
|
export { PAIRING_PENDING_MAX, PAIRING_STALE_PENDING_MS } from './pairing-constants.js';
|
|
11
11
|
export { createStandardPairingAdapter } from './pairing-store-adapter.js';
|
|
12
12
|
export { approveChannelPairing, approveChannelPairingBySender, listChannelPairingState, listChannelPairingSummary, collectPairingPendingIssues, revokeChannelPairingPaired, dismissChannelPairingPending, registerPairingChannelResolver, } from './pairing-service.js';
|
|
13
|
-
export type { ChannelPairingState, ChannelPairingSummary, ChannelPairingSummaryEntry, PairingChannelConfigResolver, PairingPaths, PairingPendingIssue,
|
|
13
|
+
export type { ChannelPairingState, ChannelPairingSummary, ChannelPairingSummaryEntry, PairingChannelConfigResolver, PairingPaths, PairingPendingIssue, } from './pairing-service.js';
|
|
14
14
|
export { setPairingBroadcastSink, broadcastPairingEvent } from './pairing-events.js';
|
|
15
15
|
export type { PairingBroadcastPayload } from './pairing-events.js';
|
|
16
16
|
export { mergeDistinctSenderIds } from './preseed-allow-from.js';
|
|
17
|
+
export type { PairingPendingView } from './pairing-types.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Config } from '../../config/schema.js';
|
|
2
2
|
import type { DmPolicy } from '../channel-domain.js';
|
|
3
3
|
import type { PairingCliChannel } from './pairing-channel.js';
|
|
4
|
-
export { type PairingPendingView } from './pairing-types.js';
|
|
5
4
|
import type { PairingPendingView } from './pairing-types.js';
|
|
6
5
|
export type ChannelPairingState = {
|
|
7
6
|
channel: PairingCliChannel;
|
|
@@ -11,7 +11,6 @@ import type { MessageBus } from '../infra/bus/index.js';
|
|
|
11
11
|
import type { SessionStore, SessionConfigStore } from '../session/index.js';
|
|
12
12
|
import type { ThinkLevel, ReasoningLevel, VerboseLevel } from '../agent/transcript/thinking-types.js';
|
|
13
13
|
import type { CompactionResult } from '../agent/memory/compaction.js';
|
|
14
|
-
import type { WorkflowRunServiceLike } from '../workflows/service/workflow-run-service.types.js';
|
|
15
14
|
export interface CommandContextDeps {
|
|
16
15
|
conversationId: string;
|
|
17
16
|
source: MessageSource;
|
|
@@ -55,7 +54,6 @@ export interface CommandContextDeps {
|
|
|
55
54
|
}>;
|
|
56
55
|
emitEvent?: (event: CommandStreamEvent) => void | Promise<void>;
|
|
57
56
|
getSessionContextReport?: (conversationId: string, mode: 'list' | 'detail' | 'json') => Promise<string>;
|
|
58
|
-
workflowRunService?: WorkflowRunServiceLike;
|
|
59
57
|
}
|
|
60
58
|
export declare class CommandContextImpl implements CommandContext {
|
|
61
59
|
readonly conversationId: string;
|
|
@@ -70,7 +68,6 @@ export declare class CommandContextImpl implements CommandContext {
|
|
|
70
68
|
readonly abortCurrentTurn?: () => Promise<void>;
|
|
71
69
|
readonly reloadSkills?: () => Promise<void>;
|
|
72
70
|
readonly installSkillFromSource?: CommandContext['installSkillFromSource'];
|
|
73
|
-
readonly workflowRunApis?: CommandContext['workflowRunApis'];
|
|
74
71
|
private deps;
|
|
75
72
|
constructor(deps: CommandContextDeps);
|
|
76
73
|
private outboundMetadata;
|