@xopcai/xopc 0.0.312 → 0.0.314
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/assets/{auth-C3yV1y_l.js → auth-DKo-NMUY.js} +18 -1
- package/dist/browser-ext/dist/background.js +68 -2
- 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/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BVIJMP8w.js → agent-avatar-dicebear-BFkjfurL.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BdOZ6q8Z.js +1 -0
- package/dist/gateway/static/root/assets/{agents-D6g_SeWI.js → agents-CCcavsHq.js} +1 -1
- package/dist/gateway/static/root/assets/{api-_aHQA8bd.js → api-BYhRsTAc.js} +1 -1
- package/dist/gateway/static/root/assets/{app-link-CKueEVbT.js → app-link-nL8iPwEr.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CLg_aXYG.js → app-management-settings-panel-B4kihr-A.js} +1 -1
- package/dist/gateway/static/root/assets/appearance-settings-N9sYmNOx.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-BMcy10_s.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-CHO3heHX.js → archive-plugin-k_SuYWyV.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-BsmsBCI2.js → attachment-load-DRv5QWUK.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-CftigJlf.js → automations-page-CkJV3DN0.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BEa2doeR.js +7 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CRCLWBo2.js → binary-plugins-Dg3h3TA7.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-D0LDiOTT.js → block-editor-DVhdHntT.js} +29 -29
- package/dist/gateway/static/root/assets/{browser-automation-inputs-C611KRBx.js → browser-automation-inputs-BMRYUW8_.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-Djyv3vy-.js → browser-automations-page-Byv6-FY2.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-DRCHGFpO.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-D0S3DuAD.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-mxRP0gl0.js +8 -0
- package/dist/gateway/static/root/assets/channels-settings-DBt_6GsB.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CIsKqdET.js → chat-terminal-dock-D4AHa51o.js} +2 -2
- package/dist/gateway/static/root/assets/{computer-settings-page-C0YL9J7m.js → computer-settings-page-eXPe500D.js} +1 -1
- package/dist/gateway/static/root/assets/connector-service-page-BQTFlq_k.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-BKeBWwcI.js +2 -0
- package/dist/gateway/static/root/assets/conversation-identity-Cw0n9uzK.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-CDsfv8R0.js → date-picker-7MtovynY.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-DvhPj3CZ.js → dependency-picker-Bj_xkXID.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-Cyg8XMpL.js → desktop-pet-CTmba9zH.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-DNM_BlWN.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-C2XE0QhT.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-D-AVJU3q.js → extension-debug-page-J_olaL7e.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DrFoQ9xt.js → extension-page-pK5RvqN8.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DxWjESC1.js → extension-settings-page-BwroEN08.js} +1 -1
- package/dist/gateway/static/root/assets/files-BK6enEvD.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-DUDX42qY.js → gateway-config-swr-FuJTIg_a.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-CLLDp23J.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-Cf8OxlvY.js → gateway-startup-retry-CKg_gu8_.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-B5Epb1PH.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-D2YorS--.js → image-generation-api-Bo6NZ7zb.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BKucJlXI.js → imports-page-C8-hX8gS.js} +1 -1
- package/dist/gateway/static/root/assets/index-14F1yGJI.js +89 -0
- package/dist/gateway/static/root/assets/index-cB7rWIDY.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BxLXD-yU.js → keyboard-shortcuts-settings-BkBEjUZD.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-6jC3vQpY.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BAsQJQKJ.js → local-apps-page-CrbKIixo.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DA0Z5jM_.js → locale-store-CvGwNbml.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DBHlZts9.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-DsUWLu5m.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-DYGPxPee.js → markdown-view-nXo5nrsv.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-CQtQzLyg.js → media-plugins-upxXJ-4l.js} +1 -1
- package/dist/gateway/static/root/assets/messages-B_AwRroN.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-0Q9TOtJG.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-D0NmcwNw.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-DUyA-K4L.js +1 -0
- package/dist/gateway/static/root/assets/{page-tabs-B6DjkyMM.js → page-tabs-Cl-NFPNr.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-Dn57uLhr.js → preview-open-alternatives-DX81PwJ3.js} +1 -1
- package/dist/gateway/static/root/assets/product-delivery-chCjIpvu.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-H2YMk8TY.js → product-open-page-CrfIGwm8.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-BVfVrYmn.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-nM9a9XNS.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-C0DCx3wv.js → registry-api-CHxgohY0.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-C8b_k88G.js +1 -0
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-D3dLOW04.js +5 -0
- package/dist/gateway/static/root/assets/scenes-page-DEowreZV.js +2 -0
- package/dist/gateway/static/root/assets/{schema-form-CblI9WUA.js → schema-form-ZxuIvD2_.js} +1 -1
- package/dist/gateway/static/root/assets/schemas-88fK3zzl.js +64 -0
- package/dist/gateway/static/root/assets/sessions-page-B_nPhera.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BqhIOuus.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-BAaVyxJH.js → settings-form-section-TZRfg4yo.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-CKNPbm5q.js → settings-page-a8qcJpdZ.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-DqNCGKxQ.js → settings-page-layout-BfvlRT9q.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-CRj5Ruqn.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-BzMfp_HM.js → share-preview-page-DCt1pTWB.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-BNbXPk--.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-CNMCLbav.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-DIht92q6.js → skills-page-BIOcg44X.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page.utils-DLYRiEn3.js → skills-page.utils-CgZdzT4I.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-yYs4YgYk.js → system-settings-panel-_YaRncA6.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-CAcfAG-c.js +1 -0
- package/dist/gateway/static/root/assets/tasks-CDR_RVbQ.js +1 -0
- package/dist/gateway/static/root/assets/{tunnel-api-BasDYxvx.js → tunnel-api-uOupJOoS.js} +1 -1
- package/dist/gateway/static/root/assets/turn-outcome-D0SnyZ3Z.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-CWAUHhcb.js → use-autosave-BezzHBLE.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-BFFeneDq.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-Kc4UlxZs.js → voice-api-key-field-BmYifdwL.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-DTyMdGOR.js → voice-config-api-D_5Q2_A3.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BPC_c9dO.js → work-discovery-overlay-4DmyEckJ.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DBTciOrq.js → workflow-run-setup-panel-DeZe8bTZ.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-Sv4hEc6W.js +6 -0
- package/dist/gateway/static/root/index.html +16 -16
- package/dist/package.js +1 -1
- package/dist/packages/computer-control-contract/src/index.js +10 -1
- package/dist/packages/gateway-contract/src/app-context.js +55 -0
- package/dist/packages/gateway-contract/src/automations.js +16 -17
- package/dist/packages/gateway-contract/src/capabilities.js +1078 -0
- package/dist/packages/gateway-contract/src/extension-capabilities.js +26 -0
- package/dist/packages/gateway-contract/src/home.js +3 -3
- package/dist/packages/gateway-contract/src/index.js +8 -0
- package/dist/packages/gateway-contract/src/product-delivery.js +19 -4
- package/dist/packages/gateway-contract/src/scenes.js +199 -0
- package/dist/packages/gateway-contract/src/task-runs.js +8 -4
- package/dist/packages/gateway-contract/src/tasks.js +5 -4
- package/dist/packages/realtime-client/src/index.js +17 -4
- package/dist/src/agent/agent-manager.d.ts +1 -0
- package/dist/src/agent/agent-manager.js +1 -0
- package/dist/src/agent/child-agent-factory.d.ts +2 -0
- package/dist/src/agent/child-agent-factory.js +5 -0
- package/dist/src/agent/commands/approved-verification.d.ts +14 -0
- package/dist/src/agent/commands/approved-verification.js +48 -0
- package/dist/src/agent/context/execution-scope.js +2 -1
- package/dist/src/agent/context/project-context.js +2 -1
- package/dist/src/agent/external-tools/cliProvider.js +123 -75
- package/dist/src/agent/external-tools/composio-provider.d.ts +1 -1
- package/dist/src/agent/external-tools/composio-provider.js +70 -12
- package/dist/src/agent/external-tools/endpoint-provider.js +14 -1
- package/dist/src/agent/inbound/turn-dispatcher.d.ts +2 -0
- package/dist/src/agent/inbound/turn-dispatcher.js +2 -1
- package/dist/src/agent/memory/compaction-chunks.d.ts +6 -1
- package/dist/src/agent/memory/compaction-chunks.js +16 -3
- package/dist/src/agent/memory/compaction-ledger.d.ts +3 -1
- package/dist/src/agent/memory/compaction-ledger.js +31 -18
- package/dist/src/agent/memory/compaction-request.d.ts +2 -0
- package/dist/src/agent/memory/compaction-request.js +6 -1
- package/dist/src/agent/memory/compaction.d.ts +19 -1
- package/dist/src/agent/memory/compaction.js +112 -30
- package/dist/src/agent/service/process-direct-streaming.d.ts +3 -0
- package/dist/src/agent/service/process-direct-streaming.js +19 -10
- package/dist/src/agent/service.js +1 -0
- package/dist/src/agent/service.types.d.ts +1 -0
- package/dist/src/agent/skills/config.js +2 -0
- package/dist/src/agent/skills/format-skills-prompt.js +14 -1
- package/dist/src/agent/skills/index.js +16 -8
- package/dist/src/agent/skills/types.d.ts +1 -1
- package/dist/src/agent/source-context/app-context.d.ts +4 -0
- package/dist/src/agent/source-context/app-context.js +36 -0
- package/dist/src/agent/source-context/injector.js +1 -0
- package/dist/src/agent/source-context/types.d.ts +5 -1
- package/dist/src/agent/tasks/task-judge-service.js +2 -1
- package/dist/src/agent/tool-manuals/computer.d.ts +1 -1
- package/dist/src/agent/tool-manuals/computer.js +1 -1
- package/dist/src/agent/tools/automation-tool.d.ts +12 -1
- package/dist/src/agent/tools/automation-tool.js +106 -32
- package/dist/src/agent/tools/factory.d.ts +1 -0
- package/dist/src/agent/tools/factory.js +6 -1
- package/dist/src/agent/tools/scoped-workspace-tools.d.ts +8 -0
- package/dist/src/agent/tools/scoped-workspace-tools.js +81 -0
- package/dist/src/agent/tools/xopc-use-tool.d.ts +6 -3
- package/dist/src/agent/tools/xopc-use-tool.js +997 -908
- package/dist/src/agent/workflow/subagent-runner.js +1 -0
- package/dist/src/agent-config/index.js +2 -2
- package/dist/src/agent-config/schema.d.ts +5 -0
- package/dist/src/agent-config/schema.js +14 -10
- package/dist/src/automations/api/routes.js +244 -164
- package/dist/src/automations/capabilities/drafts.d.ts +4 -0
- package/dist/src/automations/capabilities/drafts.js +95 -0
- package/dist/src/automations/capabilities/read.d.ts +4 -0
- package/dist/src/automations/capabilities/read.js +119 -0
- package/dist/src/automations/capabilities/write.d.ts +349 -0
- package/dist/src/automations/capabilities/write.js +172 -0
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/domain/validation.d.ts +77 -77
- package/dist/src/automations/domain/validation.js +9 -6
- package/dist/src/automations/draft/automation-draft-validator.d.ts +2 -2
- package/dist/src/automations/index.js +6 -6
- package/dist/src/automations/service/automation-service.d.ts +31 -0
- package/dist/src/automations/service/automation-service.js +213 -75
- package/dist/src/automations/service/index.js +2 -2
- package/dist/src/automations/storage/automation-repository.d.ts +2 -0
- package/dist/src/automations/storage/automation-repository.js +9 -1
- package/dist/src/automations/storage/automation-run-repository.d.ts +4 -1
- package/dist/src/automations/storage/automation-run-repository.js +16 -3
- package/dist/src/automations/storage/index.js +3 -3
- package/dist/src/browser/automations/schema.d.ts +1 -1
- package/dist/src/browser/automations/service.d.ts +1 -1
- package/dist/src/browser/observation/format.js +4 -0
- package/dist/src/capabilities/adapters/http.d.ts +4 -0
- package/dist/src/capabilities/adapters/http.js +44 -0
- package/dist/src/capabilities/readiness/from-config.js +11 -7
- package/dist/src/capabilities/runtime/app-context.d.ts +3 -0
- package/dist/src/capabilities/runtime/app-context.js +72 -0
- package/dist/src/capabilities/runtime/atomic-operations.d.ts +11 -0
- package/dist/src/capabilities/runtime/atomic-operations.js +34 -0
- package/dist/src/capabilities/runtime/dispatcher.d.ts +67 -0
- package/dist/src/capabilities/runtime/dispatcher.js +170 -0
- package/dist/src/capabilities/runtime/errors.d.ts +6 -0
- package/dist/src/capabilities/runtime/errors.js +11 -0
- package/dist/src/capabilities/runtime/external-operations.d.ts +16 -0
- package/dist/src/capabilities/runtime/external-operations.js +92 -0
- package/dist/src/capabilities/runtime/product.d.ts +12 -0
- package/dist/src/capabilities/runtime/product.js +69 -0
- package/dist/src/capabilities/runtime/settings.d.ts +3 -0
- package/dist/src/capabilities/runtime/settings.js +27 -0
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/manager.js +1 -1
- package/dist/src/cli/cli-log-level-preset.d.ts +2 -0
- package/dist/src/cli/cli-log-level-preset.js +4 -0
- package/dist/src/cli/command-catalog.js +4 -0
- package/dist/src/cli/command-loaders.js +1 -0
- package/dist/src/cli/command-manifest.js +4 -0
- package/dist/src/cli/commands/channels.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/mcp.d.ts +1 -0
- package/dist/src/cli/commands/mcp.js +51 -0
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +1 -1
- package/dist/src/computer/broker.d.ts +0 -1
- package/dist/src/computer/broker.js +4 -6
- package/dist/src/computer/evaluation-harness.d.ts +45 -0
- package/dist/src/computer/evaluation-harness.js +108 -0
- package/dist/src/computer/model-adapter.d.ts +37 -2
- package/dist/src/computer/model-adapter.js +333 -42
- package/dist/src/computer/model-policy.d.ts +4 -1
- package/dist/src/computer/model-policy.js +11 -3
- package/dist/src/computer/release-gate.d.ts +22 -0
- package/dist/src/computer/release-gate.js +19 -0
- package/dist/src/computer/runtime.js +14 -10
- package/dist/src/computer/task-state.d.ts +1 -0
- package/dist/src/computer/task-state.js +1 -0
- package/dist/src/config/models-json.d.ts +14 -8
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +4 -0
- package/dist/src/config/schema.js +3 -9
- package/dist/src/connectors/composio-sessions.d.ts +4 -2
- package/dist/src/connectors/composio-sessions.js +10 -9
- package/dist/src/connectors/composio.js +10 -8
- package/dist/src/discussions/action-tasks.js +2 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/execution-environments/local-worktree-manager.d.ts +1 -0
- package/dist/src/execution-environments/local-worktree-manager.js +13 -2
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/api.js +1 -1
- package/dist/src/extensions/normalize-manifest.js +6 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/types/manifest.d.ts +3 -0
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/middleware/scopes.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +5 -2
- package/dist/src/gateway/hono/routes/capability-operations.d.ts +3 -0
- package/dist/src/gateway/hono/routes/capability-operations.js +52 -0
- package/dist/src/gateway/hono/routes/lazy-bundles.js +16 -0
- package/dist/src/gateway/hono/routes/local-app-capabilities.d.ts +4 -0
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +41 -0
- package/dist/src/gateway/hono/routes/local-apps.js +41 -9
- package/dist/src/gateway/hono/routes/models.js +2 -2
- package/dist/src/gateway/hono/routes/notes.js +215 -146
- package/dist/src/gateway/hono/routes/projects.js +217 -374
- package/dist/src/gateway/hono/routes/scenes.js +188 -75
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +60 -16
- package/dist/src/gateway/hono/routes/session-input-handler.js +43 -1
- package/dist/src/gateway/hono/routes/sessions.js +17 -0
- package/dist/src/gateway/hono/routes/status.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +182 -326
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/voice.js +4 -4
- package/dist/src/gateway/hono/routes/workflows.js +1 -1
- package/dist/src/gateway/media-access.js +2 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/scenes/host.js +14 -3
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.d.ts +41 -0
- package/dist/src/gateway/scenes/slackThreadSource.js +168 -0
- package/dist/src/gateway/security/gateway-scopes.d.ts +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +5 -0
- package/dist/src/gateway/service/app-context-access.d.ts +11 -0
- package/dist/src/gateway/service/app-context-access.js +70 -0
- package/dist/src/gateway/service/run-gateway-agent.js +11 -2
- package/dist/src/gateway/service/session-input-coordinator.js +54 -15
- package/dist/src/gateway/service/sessions-api.d.ts +1 -0
- package/dist/src/gateway/service/sessions-api.js +3 -0
- package/dist/src/gateway/service/task-conversation-query-service.d.ts +3 -1
- package/dist/src/gateway/service/task-conversation-query-service.js +32 -3
- package/dist/src/gateway/service.d.ts +3 -0
- package/dist/src/gateway/service.js +69 -15
- package/dist/src/gateway/session-context-summary.js +2 -1
- package/dist/src/{tasks/task-outbox-dispatcher.d.ts → infra/domain-outbox-dispatcher.d.ts} +2 -2
- package/dist/src/{tasks/task-outbox-dispatcher.js → infra/domain-outbox-dispatcher.js} +10 -9
- package/dist/src/infra/operation-context.d.ts +2 -0
- package/dist/src/infra/operation-context.js +16 -0
- package/dist/src/local-apps/capabilities/contracts.d.ts +2 -0
- package/dist/src/local-apps/capabilities/contracts.js +32 -0
- package/dist/src/local-apps/capabilities/read.d.ts +3 -0
- package/dist/src/local-apps/capabilities/read.js +48 -0
- package/dist/src/local-apps/capabilities/runtime.d.ts +16 -0
- package/dist/src/local-apps/capabilities/runtime.js +66 -0
- package/dist/src/local-apps/capabilities/write.d.ts +3 -0
- package/dist/src/local-apps/capabilities/write.js +35 -0
- package/dist/src/local-apps/release-lock.d.ts +2 -0
- package/dist/src/local-apps/release-lock.js +20 -0
- package/dist/src/local-apps/runtime-entry.d.ts +0 -2
- package/dist/src/local-apps/runtime-entry.js +1 -14
- package/dist/src/local-apps/scaffold.js +4 -1
- package/dist/src/local-apps/service.d.ts +24 -1
- package/dist/src/local-apps/service.js +186 -43
- package/dist/src/local-apps/store.js +0 -2
- package/dist/src/mcp/capability-server.d.ts +4 -0
- package/dist/src/mcp/capability-server.js +96 -0
- package/dist/src/mcp/channel-bridge.js +1 -1
- package/dist/src/mcp/gateway-http-client.d.ts +7 -0
- package/dist/src/mcp/gateway-http-client.js +27 -5
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/notes/capabilities/read.d.ts +3 -0
- package/dist/src/notes/capabilities/read.js +96 -0
- package/dist/src/notes/capabilities/write.d.ts +7 -0
- package/dist/src/notes/capabilities/write.js +152 -0
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.d.ts +12 -4
- package/dist/src/notes/service.js +188 -175
- package/dist/src/notes/store.d.ts +14 -9
- package/dist/src/notes/store.js +81 -21
- package/dist/src/notifications/service.d.ts +1 -0
- package/dist/src/notifications/service.js +5 -0
- package/dist/src/platform/client.d.ts +1 -1
- package/dist/src/platform/contracts.d.ts +1 -1
- package/dist/src/projects/capabilities/read.d.ts +3 -0
- package/dist/src/projects/capabilities/read.js +81 -0
- package/dist/src/projects/capabilities/write.d.ts +9 -0
- package/dist/src/projects/capabilities/write.js +260 -0
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/project-change-events.d.ts +2 -0
- package/dist/src/projects/project-change-events.js +18 -0
- package/dist/src/projects/project-service.d.ts +11 -0
- package/dist/src/projects/project-service.js +121 -42
- package/dist/src/projects/project-store.js +12 -2
- package/dist/src/projects/project-workspace-creation.d.ts +3 -0
- package/dist/src/projects/project-workspace-creation.js +45 -0
- package/dist/src/projects/workspace-project.js +6 -0
- package/dist/src/providers/model-catalog-types.d.ts +2 -1
- package/dist/src/providers/model-reference-auditor.js +4 -4
- package/dist/src/providers/model-supplements.js +13 -3
- package/dist/src/providers/presentation.js +3 -3
- package/dist/src/providers/xopc-cloud-model-source.js +4 -2
- package/dist/src/realtime/runtime.js +4 -0
- package/dist/src/scenes/capabilities/read.d.ts +3 -0
- package/dist/src/scenes/capabilities/read.js +187 -0
- package/dist/src/scenes/capabilities/write.d.ts +3 -0
- package/dist/src/scenes/capabilities/write.js +151 -0
- package/dist/src/scenes/contracts.d.ts +2 -105
- package/dist/src/scenes/contracts.js +3 -88
- package/dist/src/scenes/execution.d.ts +1 -1
- package/dist/src/scenes/httpServices.d.ts +2 -0
- package/dist/src/scenes/inbox.d.ts +1 -0
- package/dist/src/scenes/inbox.js +7 -7
- package/dist/src/scenes/preferences.d.ts +3 -24
- package/dist/src/scenes/preferences.js +8 -30
- package/dist/src/scenes/repository.d.ts +1 -0
- package/dist/src/scenes/repository.js +7 -3
- package/dist/src/scenes/resultNotifications.js +2 -2
- package/dist/src/scenes/schedule.d.ts +1 -8
- package/dist/src/scenes/schedule.js +3 -15
- package/dist/src/scenes/service.d.ts +6 -0
- package/dist/src/scenes/service.js +29 -25
- package/dist/src/scenes/taskFollowUp/agentExecutor.d.ts +36 -0
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +149 -0
- package/dist/src/scenes/taskFollowUp/branchInventory.d.ts +38 -0
- package/dist/src/scenes/taskFollowUp/branchInventory.js +70 -0
- package/dist/src/scenes/taskFollowUp/contracts.d.ts +91 -0
- package/dist/src/scenes/taskFollowUp/contracts.js +100 -0
- package/dist/src/scenes/taskFollowUp/resources.d.ts +19 -0
- package/dist/src/scenes/taskFollowUp/resources.js +97 -0
- package/dist/src/scenes/taskFollowUp/service.d.ts +810 -0
- package/dist/src/scenes/taskFollowUp/service.js +710 -0
- package/dist/src/scenes/taskFollowUp/workspaceFingerprint.d.ts +2 -0
- package/dist/src/scenes/taskFollowUp/workspaceFingerprint.js +46 -0
- package/dist/src/scenes/templates.d.ts +2 -2
- package/dist/src/scenes/templates.js +1 -1
- package/dist/src/session/session-find.d.ts +17 -0
- package/dist/src/session/session-find.js +56 -0
- package/dist/src/session/store.d.ts +4 -0
- package/dist/src/session/store.js +43 -7
- package/dist/src/share/note-share-revocation.d.ts +3 -0
- package/dist/src/share/note-share-revocation.js +26 -0
- package/dist/src/storage/sqlite/migrations/190_scene_development.sql +37 -0
- package/dist/src/storage/sqlite/migrations/191_scene_task_follow_up.sql +27 -0
- package/dist/src/storage/sqlite/migrations/192_capability_operations.sql +20 -0
- package/dist/src/storage/sqlite/migrations/193_note_file_cleanup.sql +8 -0
- package/dist/src/storage/sqlite/migrations/194_capability_external_outcomes.sql +11 -0
- package/dist/src/storage/sqlite/migrations/195_automation_deleted_revisions.sql +4 -0
- package/dist/src/storage/sqlite/migrations/196_automation_run_requests.sql +23 -0
- package/dist/src/storage/sqlite/migrations/197_note_deletion_cleanup.sql +8 -0
- package/dist/src/storage/sqlite/migrations/198_project_workspace_creation.sql +7 -0
- package/dist/src/storage/sqlite/migrations/199_scene_resource_events.sql +488 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +6 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/transaction.d.ts +5 -0
- package/dist/src/storage/sqlite/transaction.js +34 -3
- package/dist/src/tasks/capabilities/management.d.ts +195 -0
- package/dist/src/tasks/capabilities/management.js +111 -0
- package/dist/src/tasks/capabilities/read.d.ts +2 -0
- package/dist/src/tasks/capabilities/read.js +141 -0
- package/dist/src/tasks/capabilities/relations.d.ts +204 -0
- package/dist/src/tasks/capabilities/relations.js +140 -0
- package/dist/src/tasks/capabilities/runs.d.ts +2 -0
- package/dist/src/tasks/capabilities/runs.js +89 -0
- package/dist/src/tasks/capabilities/write.d.ts +207 -0
- package/dist/src/tasks/capabilities/write.js +107 -0
- package/dist/src/tasks/home-query-service.js +3 -2
- package/dist/src/tasks/index.d.ts +0 -1
- package/dist/src/tasks/index.js +9 -9
- package/dist/src/tasks/project-operating-view-service.js +2 -1
- package/dist/src/tasks/task-application-service.d.ts +1 -0
- package/dist/src/tasks/task-application-service.js +3 -2
- package/dist/src/tasks/task-change-events.js +5 -3
- package/dist/src/tasks/task-context-assembler.js +2 -1
- package/dist/src/tasks/task-deletion-service.js +2 -1
- package/dist/src/tasks/task-dependency-service.js +2 -1
- package/dist/src/tasks/task-handoff-service.js +2 -1
- package/dist/src/tasks/task-read-model-projector.js +2 -1
- package/dist/src/tasks/task-repository.d.ts +12 -7
- package/dist/src/tasks/task-repository.js +175 -154
- package/dist/src/tasks/task-run-coordinator.js +2 -1
- package/dist/src/tasks/task-run-dispatcher.js +2 -1
- package/dist/src/tasks/task-run-repository.d.ts +1 -0
- package/dist/src/tasks/task-run-repository.js +29 -14
- package/dist/src/tasks/task-signal-service.js +2 -1
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- package/dist/src/tui/tui-commands.js +1 -1
- package/dist/src/user-context/config.d.ts +13 -0
- package/dist/src/user-context/config.js +2 -0
- package/dist/src/voice/platform-catalog.d.ts +1 -1
- package/dist/src/voice/realtime/runtime.js +3 -3
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/index.js +1 -1
- package/dist/src/work-discovery/repository.d.ts +1 -1
- package/dist/src/work-discovery/repository.js +3 -2
- package/dist/src/work-discovery/service.d.ts +4 -0
- package/dist/src/work-discovery/service.js +36 -11
- package/dist/src/workflows/context/workflow-context.js +3 -2
- package/dist/src/workflows/service/workflow-run-service.js +2 -1
- package/package.json +6 -2
- package/skills/THIRD_PARTY_NOTICES.md +2 -2
- package/skills/documents/xlsx/SKILL.md +5 -0
- package/skills/engineering/build-xopc-local-app/SKILL.md +2 -0
- package/skills/tools/find-skills/SKILL.md +3 -0
- package/dist/gateway/static/root/assets/activity-store-DVUTs1fk.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-K3hTmu9d.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-CU52MfIT.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-ZpA1-6ad.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-IEAxKRME.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page-CU4VWsmX.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-settings-panel-C9XQk3HL.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-Bqlhjooi.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-BmH17JnO.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-zkx8Q-e6.js +0 -2
- package/dist/gateway/static/root/assets/desktop-pet-settings-CE4GOlMM.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-CdKJqnnw.js +0 -1
- package/dist/gateway/static/root/assets/files-Be5viEFY.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CGOW0-b4.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-D4um_sV7.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CgXp2zq4.js +0 -1
- package/dist/gateway/static/root/assets/home-page-D6Idk732.js +0 -1
- package/dist/gateway/static/root/assets/index-1wIKA-kM.css +0 -1
- package/dist/gateway/static/root/assets/index-PFQHPGgi.js +0 -79
- package/dist/gateway/static/root/assets/local-app-workbench-page-BmAqTRb4.js +0 -2
- package/dist/gateway/static/root/assets/logs-page-ZjVYXXyM.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-CSTkYVOZ.js +0 -1
- package/dist/gateway/static/root/assets/messages-4BtQKYlM.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-DuXCt-MM.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-BjOgBVq5.js +0 -8
- package/dist/gateway/static/root/assets/product-delivery-CrAI8ZEa.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-0zi4-i9X.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-B18OxmJj.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-z-DxbuaE.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-DGsBTbo6.js +0 -5
- package/dist/gateway/static/root/assets/scenes-page-Bgba03B_.js +0 -1
- package/dist/gateway/static/root/assets/schemas-BaskVM5g.js +0 -64
- package/dist/gateway/static/root/assets/sessions-page-B1t3bMsm.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CBX0Ezhf.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-Bw71C2X3.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-BoVDQolc.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DtTptpAt.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-vgkiGo-D.js +0 -1
- package/dist/gateway/static/root/assets/theme-store-CegIlB8d.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-CAGafNfP.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-CSxHVs1p.js +0 -6
- package/skills/creative/algorithmic-art/SKILL.md +0 -44
- package/skills/creative/algorithmic-art/templates/generator-template.js +0 -27
- package/skills/creative/algorithmic-art/templates/viewer.html +0 -27
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type CapabilityDispatcher } from '../../capabilities/runtime/dispatcher.js';
|
|
3
|
+
export declare const TaskDependenciesOutputSchema: z.ZodObject<{
|
|
4
|
+
ok: z.ZodLiteral<true>;
|
|
5
|
+
task: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
body: z.ZodOptional<z.ZodString>;
|
|
9
|
+
phase: z.ZodEnum<{
|
|
10
|
+
backlog: "backlog";
|
|
11
|
+
ready: "ready";
|
|
12
|
+
active: "active";
|
|
13
|
+
review: "review";
|
|
14
|
+
closed: "closed";
|
|
15
|
+
}>;
|
|
16
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
cancelled: "cancelled";
|
|
18
|
+
done: "done";
|
|
19
|
+
duplicate: "duplicate";
|
|
20
|
+
wont_do: "wont_do";
|
|
21
|
+
}>>;
|
|
22
|
+
priority: z.ZodEnum<{
|
|
23
|
+
low: "low";
|
|
24
|
+
normal: "normal";
|
|
25
|
+
high: "high";
|
|
26
|
+
critical: "critical";
|
|
27
|
+
}>;
|
|
28
|
+
dueAt: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
milestoneId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
delegateAgentId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
source: z.ZodString;
|
|
35
|
+
locale: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
en: "en";
|
|
37
|
+
zh: "zh";
|
|
38
|
+
}>>;
|
|
39
|
+
latestContractVersion: z.ZodNumber;
|
|
40
|
+
boardRank: z.ZodDefault<z.ZodNumber>;
|
|
41
|
+
version: z.ZodNumber;
|
|
42
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
taskId: z.ZodString;
|
|
44
|
+
version: z.ZodNumber;
|
|
45
|
+
objective: z.ZodString;
|
|
46
|
+
expectedOutputs: z.ZodArray<z.ZodString>;
|
|
47
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
48
|
+
constraints: z.ZodArray<z.ZodString>;
|
|
49
|
+
approvalRequired: z.ZodArray<z.ZodString>;
|
|
50
|
+
assumptions: z.ZodArray<z.ZodString>;
|
|
51
|
+
risks: z.ZodArray<z.ZodString>;
|
|
52
|
+
acceptancePolicy: z.ZodEnum<{
|
|
53
|
+
verified_auto: "verified_auto";
|
|
54
|
+
verified_then_review: "verified_then_review";
|
|
55
|
+
manual: "manual";
|
|
56
|
+
}>;
|
|
57
|
+
outputDestinations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
58
|
+
createdBy: z.ZodObject<{
|
|
59
|
+
kind: z.ZodEnum<{
|
|
60
|
+
user: "user";
|
|
61
|
+
agent: "agent";
|
|
62
|
+
system: "system";
|
|
63
|
+
integration: "integration";
|
|
64
|
+
}>;
|
|
65
|
+
id: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
createdAt: z.ZodNumber;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
createdAt: z.ZodNumber;
|
|
70
|
+
updatedAt: z.ZodNumber;
|
|
71
|
+
closedAt: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
title: z.ZodString;
|
|
76
|
+
phase: z.ZodEnum<{
|
|
77
|
+
backlog: "backlog";
|
|
78
|
+
ready: "ready";
|
|
79
|
+
active: "active";
|
|
80
|
+
review: "review";
|
|
81
|
+
closed: "closed";
|
|
82
|
+
}>;
|
|
83
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
cancelled: "cancelled";
|
|
85
|
+
done: "done";
|
|
86
|
+
duplicate: "duplicate";
|
|
87
|
+
wont_do: "wont_do";
|
|
88
|
+
}>>;
|
|
89
|
+
operationalState: z.ZodEnum<{
|
|
90
|
+
waiting: "waiting";
|
|
91
|
+
idle: "idle";
|
|
92
|
+
queued: "queued";
|
|
93
|
+
running: "running";
|
|
94
|
+
verifying: "verifying";
|
|
95
|
+
blocked: "blocked";
|
|
96
|
+
}>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
dependents: z.ZodArray<z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
title: z.ZodString;
|
|
101
|
+
phase: z.ZodEnum<{
|
|
102
|
+
backlog: "backlog";
|
|
103
|
+
ready: "ready";
|
|
104
|
+
active: "active";
|
|
105
|
+
review: "review";
|
|
106
|
+
closed: "closed";
|
|
107
|
+
}>;
|
|
108
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
cancelled: "cancelled";
|
|
110
|
+
done: "done";
|
|
111
|
+
duplicate: "duplicate";
|
|
112
|
+
wont_do: "wont_do";
|
|
113
|
+
}>>;
|
|
114
|
+
operationalState: z.ZodEnum<{
|
|
115
|
+
waiting: "waiting";
|
|
116
|
+
idle: "idle";
|
|
117
|
+
queued: "queued";
|
|
118
|
+
running: "running";
|
|
119
|
+
verifying: "verifying";
|
|
120
|
+
blocked: "blocked";
|
|
121
|
+
}>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export declare const TaskContextMutationOutputSchema: z.ZodObject<{
|
|
125
|
+
ok: z.ZodLiteral<true>;
|
|
126
|
+
taskId: z.ZodString;
|
|
127
|
+
edgeId: z.ZodString;
|
|
128
|
+
version: z.ZodNumber;
|
|
129
|
+
edge: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
taskId: z.ZodString;
|
|
132
|
+
targetKind: z.ZodEnum<{
|
|
133
|
+
session: "session";
|
|
134
|
+
task: "task";
|
|
135
|
+
file: "file";
|
|
136
|
+
memory: "memory";
|
|
137
|
+
document: "document";
|
|
138
|
+
url: "url";
|
|
139
|
+
source: "source";
|
|
140
|
+
artifact: "artifact";
|
|
141
|
+
}>;
|
|
142
|
+
targetId: z.ZodString;
|
|
143
|
+
role: z.ZodEnum<{
|
|
144
|
+
evidence: "evidence";
|
|
145
|
+
input: "input";
|
|
146
|
+
reference: "reference";
|
|
147
|
+
constraint: "constraint";
|
|
148
|
+
deliverable: "deliverable";
|
|
149
|
+
}>;
|
|
150
|
+
title: z.ZodOptional<z.ZodString>;
|
|
151
|
+
pinned: z.ZodBoolean;
|
|
152
|
+
retrievalPolicy: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
153
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
154
|
+
createdBy: z.ZodObject<{
|
|
155
|
+
kind: z.ZodEnum<{
|
|
156
|
+
user: "user";
|
|
157
|
+
agent: "agent";
|
|
158
|
+
system: "system";
|
|
159
|
+
integration: "integration";
|
|
160
|
+
}>;
|
|
161
|
+
id: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
createdAt: z.ZodNumber;
|
|
164
|
+
updatedAt: z.ZodNumber;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
context: z.ZodArray<z.ZodObject<{
|
|
167
|
+
id: z.ZodString;
|
|
168
|
+
taskId: z.ZodString;
|
|
169
|
+
targetKind: z.ZodEnum<{
|
|
170
|
+
session: "session";
|
|
171
|
+
task: "task";
|
|
172
|
+
file: "file";
|
|
173
|
+
memory: "memory";
|
|
174
|
+
document: "document";
|
|
175
|
+
url: "url";
|
|
176
|
+
source: "source";
|
|
177
|
+
artifact: "artifact";
|
|
178
|
+
}>;
|
|
179
|
+
targetId: z.ZodString;
|
|
180
|
+
role: z.ZodEnum<{
|
|
181
|
+
evidence: "evidence";
|
|
182
|
+
input: "input";
|
|
183
|
+
reference: "reference";
|
|
184
|
+
constraint: "constraint";
|
|
185
|
+
deliverable: "deliverable";
|
|
186
|
+
}>;
|
|
187
|
+
title: z.ZodOptional<z.ZodString>;
|
|
188
|
+
pinned: z.ZodBoolean;
|
|
189
|
+
retrievalPolicy: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
190
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
191
|
+
createdBy: z.ZodObject<{
|
|
192
|
+
kind: z.ZodEnum<{
|
|
193
|
+
user: "user";
|
|
194
|
+
agent: "agent";
|
|
195
|
+
system: "system";
|
|
196
|
+
integration: "integration";
|
|
197
|
+
}>;
|
|
198
|
+
id: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
createdAt: z.ZodNumber;
|
|
201
|
+
updatedAt: z.ZodNumber;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
export declare function registerTaskRelationCapabilities(dispatcher: CapabilityDispatcher, wake?: (runs: boolean) => void): void;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { getSqliteDatabase, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
+
import { TaskContextEdgeSchema, TaskContextInputSchema, TaskDependencySummarySchema, TaskDependencyUpdateRequestSchema, TaskDetailResponseSchema } from "../../../packages/gateway-contract/src/tasks.js";
|
|
3
|
+
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
4
|
+
import { enqueueTaskChangedEvent, init_task_change_events } from "../task-change-events.js";
|
|
5
|
+
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
6
|
+
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
7
|
+
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
8
|
+
import { TaskContextRepository } from "../task-context-repository.js";
|
|
9
|
+
import { TaskDependencyError, TaskDependencyService } from "../task-dependency-service.js";
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
//#region src/tasks/capabilities/relations.ts
|
|
12
|
+
init_src();
|
|
13
|
+
init_transaction();
|
|
14
|
+
init_task_change_events();
|
|
15
|
+
init_task_repository();
|
|
16
|
+
const TaskDependenciesOutputSchema = z.object({
|
|
17
|
+
ok: z.literal(true),
|
|
18
|
+
task: TaskDetailResponseSchema.shape.task,
|
|
19
|
+
dependencies: z.array(TaskDependencySummarySchema),
|
|
20
|
+
dependents: z.array(TaskDependencySummarySchema)
|
|
21
|
+
});
|
|
22
|
+
const TaskContextMutationOutputSchema = z.object({
|
|
23
|
+
ok: z.literal(true),
|
|
24
|
+
taskId: z.string(),
|
|
25
|
+
edgeId: z.string(),
|
|
26
|
+
version: z.number().int().positive(),
|
|
27
|
+
edge: TaskContextEdgeSchema.optional(),
|
|
28
|
+
context: z.array(TaskContextEdgeSchema)
|
|
29
|
+
});
|
|
30
|
+
function registerTaskRelationCapabilities(dispatcher, wake) {
|
|
31
|
+
const tasks = new TaskRepository();
|
|
32
|
+
const dependencies = new TaskDependencyService();
|
|
33
|
+
const context = new TaskContextRepository();
|
|
34
|
+
const policy = {
|
|
35
|
+
majorVersion: 1,
|
|
36
|
+
effect: "local-write",
|
|
37
|
+
surfaces: ["http", "agent"],
|
|
38
|
+
scopes: ["tasks.write"],
|
|
39
|
+
afterCommit: () => wake?.(false)
|
|
40
|
+
};
|
|
41
|
+
dispatcher.register(defineAtomicCapability({
|
|
42
|
+
...policy,
|
|
43
|
+
id: "xopc.tasks.update_dependencies",
|
|
44
|
+
description: "Replace dependencies at an exact task version.",
|
|
45
|
+
input: TaskDependencyUpdateRequestSchema.extend({ taskId: z.string().min(1) }),
|
|
46
|
+
output: TaskDependenciesOutputSchema,
|
|
47
|
+
execute(input, caller) {
|
|
48
|
+
try {
|
|
49
|
+
const task = dependencies.replace(input);
|
|
50
|
+
enqueueTaskChangedEvent(getSqliteDatabase(), {
|
|
51
|
+
taskId: task.id,
|
|
52
|
+
projectId: task.projectId,
|
|
53
|
+
version: task.version,
|
|
54
|
+
changedFields: ["dependencies"],
|
|
55
|
+
actor: caller.actor
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
ok: true,
|
|
59
|
+
task,
|
|
60
|
+
dependencies: dependencies.listDependencies(task.id),
|
|
61
|
+
dependents: dependencies.listDependents(task.id)
|
|
62
|
+
};
|
|
63
|
+
} catch (error) {
|
|
64
|
+
if (error instanceof TaskDependencyError) throw new CapabilityError(error.code === "not_found" ? "NOT_FOUND" : error.code === "conflict" ? "REVISION_CONFLICT" : "INVALID_INPUT", error.message);
|
|
65
|
+
throw error;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
dispatcher.register(defineAtomicCapability({
|
|
70
|
+
...policy,
|
|
71
|
+
id: "xopc.tasks.add_context",
|
|
72
|
+
description: "Attach task context once and advance the task revision.",
|
|
73
|
+
input: z.strictObject({
|
|
74
|
+
taskId: z.string().min(1),
|
|
75
|
+
edge: TaskContextInputSchema,
|
|
76
|
+
expectedVersion: z.number().int().positive().optional()
|
|
77
|
+
}),
|
|
78
|
+
output: TaskContextMutationOutputSchema,
|
|
79
|
+
execute(input, caller) {
|
|
80
|
+
const task = tasks.get(input.taskId);
|
|
81
|
+
if (!task) throw new CapabilityError("NOT_FOUND", "Task not found");
|
|
82
|
+
const updated = tasks.update(task.id, { expectedVersion: input.expectedVersion ?? task.version });
|
|
83
|
+
if (!updated) throw new CapabilityError("REVISION_CONFLICT", "Task changed");
|
|
84
|
+
const edge = context.add({
|
|
85
|
+
taskId: task.id,
|
|
86
|
+
...input.edge,
|
|
87
|
+
createdBy: caller.actor ?? { kind: "system" }
|
|
88
|
+
});
|
|
89
|
+
enqueueTaskChangedEvent(getSqliteDatabase(), {
|
|
90
|
+
taskId: task.id,
|
|
91
|
+
projectId: task.projectId,
|
|
92
|
+
version: updated.version,
|
|
93
|
+
changedFields: ["context"],
|
|
94
|
+
actor: caller.actor
|
|
95
|
+
});
|
|
96
|
+
return {
|
|
97
|
+
ok: true,
|
|
98
|
+
taskId: task.id,
|
|
99
|
+
edgeId: edge.id,
|
|
100
|
+
edge,
|
|
101
|
+
version: updated.version,
|
|
102
|
+
context: context.list(task.id)
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}));
|
|
106
|
+
dispatcher.register(defineAtomicCapability({
|
|
107
|
+
...policy,
|
|
108
|
+
id: "xopc.tasks.remove_context",
|
|
109
|
+
description: "Remove a task context edge once and advance the task revision.",
|
|
110
|
+
input: z.strictObject({
|
|
111
|
+
taskId: z.string().min(1),
|
|
112
|
+
edgeId: z.string().min(1),
|
|
113
|
+
expectedVersion: z.number().int().positive().optional()
|
|
114
|
+
}),
|
|
115
|
+
output: TaskContextMutationOutputSchema,
|
|
116
|
+
execute(input, caller) {
|
|
117
|
+
const task = tasks.get(input.taskId);
|
|
118
|
+
if (!task) throw new CapabilityError("NOT_FOUND", "Task not found");
|
|
119
|
+
const updated = tasks.update(task.id, { expectedVersion: input.expectedVersion ?? task.version });
|
|
120
|
+
if (!updated) throw new CapabilityError("REVISION_CONFLICT", "Task changed");
|
|
121
|
+
if (!context.remove(task.id, input.edgeId)) throw new CapabilityError("NOT_FOUND", "Task context edge not found");
|
|
122
|
+
enqueueTaskChangedEvent(getSqliteDatabase(), {
|
|
123
|
+
taskId: task.id,
|
|
124
|
+
projectId: task.projectId,
|
|
125
|
+
version: updated.version,
|
|
126
|
+
changedFields: ["context"],
|
|
127
|
+
actor: caller.actor
|
|
128
|
+
});
|
|
129
|
+
return {
|
|
130
|
+
ok: true,
|
|
131
|
+
taskId: task.id,
|
|
132
|
+
edgeId: input.edgeId,
|
|
133
|
+
version: updated.version,
|
|
134
|
+
context: context.list(task.id)
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { TaskContextMutationOutputSchema, TaskDependenciesOutputSchema, registerTaskRelationCapabilities };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { TaskRunCancelInputSchema, TaskRunCancelOutputSchema, TaskRunFeedbackInputSchema, TaskRunFeedbackOutputSchema } from "../../../packages/gateway-contract/src/capabilities.js";
|
|
2
|
+
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
4
|
+
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
5
|
+
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
6
|
+
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
|
+
import { TaskApplicationService } from "../task-application-service.js";
|
|
8
|
+
//#region src/tasks/capabilities/runs.ts
|
|
9
|
+
init_src();
|
|
10
|
+
init_task_repository();
|
|
11
|
+
init_task_run_repository();
|
|
12
|
+
function registerTaskRunWriteCapabilities(dispatcher, wake) {
|
|
13
|
+
dispatcher.register(defineAtomicCapability({
|
|
14
|
+
id: "xopc.task_runs.feedback",
|
|
15
|
+
majorVersion: 1,
|
|
16
|
+
description: "Record feedback for one task run exactly once per intent.",
|
|
17
|
+
effect: "local-write",
|
|
18
|
+
surfaces: ["http", "agent"],
|
|
19
|
+
scopes: ["tasks.write"],
|
|
20
|
+
input: TaskRunFeedbackInputSchema,
|
|
21
|
+
output: TaskRunFeedbackOutputSchema,
|
|
22
|
+
execute({ id, rating, reason }, context) {
|
|
23
|
+
const runs = new TaskRunRepository();
|
|
24
|
+
if (!runs.get(id)) throw new CapabilityError("NOT_FOUND", "TaskRun not found");
|
|
25
|
+
return {
|
|
26
|
+
ok: true,
|
|
27
|
+
feedback: runs.recordFeedback({
|
|
28
|
+
runId: id,
|
|
29
|
+
rating,
|
|
30
|
+
reason,
|
|
31
|
+
actor: context.actor
|
|
32
|
+
})
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
afterCommit() {
|
|
36
|
+
wake?.(false);
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
dispatcher.register(defineAtomicCapability({
|
|
40
|
+
id: "xopc.task_runs.cancel",
|
|
41
|
+
majorVersion: 1,
|
|
42
|
+
description: "Finalize a task run as logically cancelled at an exact version. This receipt does not confirm external execution has stopped.",
|
|
43
|
+
effect: "local-write",
|
|
44
|
+
surfaces: ["http", "agent"],
|
|
45
|
+
scopes: ["tasks.write"],
|
|
46
|
+
input: TaskRunCancelInputSchema,
|
|
47
|
+
output: TaskRunCancelOutputSchema,
|
|
48
|
+
execute({ id, expectedVersion, reason }, context) {
|
|
49
|
+
const runs = new TaskRunRepository();
|
|
50
|
+
const run = runs.get(id);
|
|
51
|
+
if (!run) throw new CapabilityError("NOT_FOUND", "TaskRun not found");
|
|
52
|
+
if (run.version !== expectedVersion) throw new CapabilityError("REVISION_CONFLICT", "TaskRun changed");
|
|
53
|
+
const task = new TaskRepository().require(run.taskId);
|
|
54
|
+
const result = new TaskApplicationService().completeRun({
|
|
55
|
+
runId: id,
|
|
56
|
+
expectedRunVersion: expectedVersion,
|
|
57
|
+
actor: context.actor,
|
|
58
|
+
terminalCode: context.actor?.kind === "agent" ? "cancelled_by_agent" : "cancelled_by_user",
|
|
59
|
+
terminalMessage: reason,
|
|
60
|
+
receipt: {
|
|
61
|
+
status: "cancelled",
|
|
62
|
+
summary: reason,
|
|
63
|
+
changes: [],
|
|
64
|
+
evidence: [],
|
|
65
|
+
verification: {
|
|
66
|
+
status: "unverified",
|
|
67
|
+
checks: []
|
|
68
|
+
},
|
|
69
|
+
remainingWork: [task.contract?.objective ?? task.title],
|
|
70
|
+
needsUser: false,
|
|
71
|
+
completionVerdict: "not_achieved"
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
if (!result.ok) throw new CapabilityError("REVISION_CONFLICT", "TaskRun cannot be cancelled in its current state");
|
|
75
|
+
return {
|
|
76
|
+
ok: true,
|
|
77
|
+
run: runs.require(id),
|
|
78
|
+
receipt: runs.getReceipt(id),
|
|
79
|
+
model: result.model,
|
|
80
|
+
executionStopConfirmed: false
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
afterCommit() {
|
|
84
|
+
wake?.(false);
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { registerTaskRunWriteCapabilities };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type CapabilityDispatcher } from '../../capabilities/runtime/dispatcher.js';
|
|
3
|
+
import type { Config } from '../../config/schema.js';
|
|
4
|
+
import type { ProjectService } from '../../projects/index.js';
|
|
5
|
+
export declare const TaskMutationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
ok: z.ZodLiteral<true>;
|
|
7
|
+
model: z.ZodObject<{
|
|
8
|
+
task: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
body: z.ZodOptional<z.ZodString>;
|
|
12
|
+
phase: z.ZodEnum<{
|
|
13
|
+
backlog: "backlog";
|
|
14
|
+
ready: "ready";
|
|
15
|
+
active: "active";
|
|
16
|
+
review: "review";
|
|
17
|
+
closed: "closed";
|
|
18
|
+
}>;
|
|
19
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
cancelled: "cancelled";
|
|
21
|
+
done: "done";
|
|
22
|
+
duplicate: "duplicate";
|
|
23
|
+
wont_do: "wont_do";
|
|
24
|
+
}>>;
|
|
25
|
+
priority: z.ZodEnum<{
|
|
26
|
+
low: "low";
|
|
27
|
+
normal: "normal";
|
|
28
|
+
high: "high";
|
|
29
|
+
critical: "critical";
|
|
30
|
+
}>;
|
|
31
|
+
dueAt: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
milestoneId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
delegateAgentId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
source: z.ZodString;
|
|
38
|
+
locale: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
en: "en";
|
|
40
|
+
zh: "zh";
|
|
41
|
+
}>>;
|
|
42
|
+
latestContractVersion: z.ZodNumber;
|
|
43
|
+
boardRank: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
version: z.ZodNumber;
|
|
45
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
taskId: z.ZodString;
|
|
47
|
+
version: z.ZodNumber;
|
|
48
|
+
objective: z.ZodString;
|
|
49
|
+
expectedOutputs: z.ZodArray<z.ZodString>;
|
|
50
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
51
|
+
constraints: z.ZodArray<z.ZodString>;
|
|
52
|
+
approvalRequired: z.ZodArray<z.ZodString>;
|
|
53
|
+
assumptions: z.ZodArray<z.ZodString>;
|
|
54
|
+
risks: z.ZodArray<z.ZodString>;
|
|
55
|
+
acceptancePolicy: z.ZodEnum<{
|
|
56
|
+
verified_auto: "verified_auto";
|
|
57
|
+
verified_then_review: "verified_then_review";
|
|
58
|
+
manual: "manual";
|
|
59
|
+
}>;
|
|
60
|
+
outputDestinations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
|
+
createdBy: z.ZodObject<{
|
|
62
|
+
kind: z.ZodEnum<{
|
|
63
|
+
user: "user";
|
|
64
|
+
agent: "agent";
|
|
65
|
+
system: "system";
|
|
66
|
+
integration: "integration";
|
|
67
|
+
}>;
|
|
68
|
+
id: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
createdAt: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
createdAt: z.ZodNumber;
|
|
73
|
+
updatedAt: z.ZodNumber;
|
|
74
|
+
closedAt: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
77
|
+
kind: z.ZodEnum<{
|
|
78
|
+
input_required: "input_required";
|
|
79
|
+
approval_required: "approval_required";
|
|
80
|
+
dependency_blocked: "dependency_blocked";
|
|
81
|
+
run_failed: "run_failed";
|
|
82
|
+
verification_failed: "verification_failed";
|
|
83
|
+
overdue: "overdue";
|
|
84
|
+
stale: "stale";
|
|
85
|
+
}>;
|
|
86
|
+
summary: z.ZodString;
|
|
87
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
operationalState: z.ZodEnum<{
|
|
90
|
+
waiting: "waiting";
|
|
91
|
+
idle: "idle";
|
|
92
|
+
queued: "queued";
|
|
93
|
+
running: "running";
|
|
94
|
+
verifying: "verifying";
|
|
95
|
+
blocked: "blocked";
|
|
96
|
+
}>;
|
|
97
|
+
allowedCommands: z.ZodArray<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
ok: z.ZodLiteral<false>;
|
|
102
|
+
reason: z.ZodEnum<{
|
|
103
|
+
blocked: "blocked";
|
|
104
|
+
conflict: "conflict";
|
|
105
|
+
not_found: "not_found";
|
|
106
|
+
invalid_transition: "invalid_transition";
|
|
107
|
+
}>;
|
|
108
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
task: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
title: z.ZodString;
|
|
112
|
+
body: z.ZodOptional<z.ZodString>;
|
|
113
|
+
phase: z.ZodEnum<{
|
|
114
|
+
backlog: "backlog";
|
|
115
|
+
ready: "ready";
|
|
116
|
+
active: "active";
|
|
117
|
+
review: "review";
|
|
118
|
+
closed: "closed";
|
|
119
|
+
}>;
|
|
120
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
cancelled: "cancelled";
|
|
122
|
+
done: "done";
|
|
123
|
+
duplicate: "duplicate";
|
|
124
|
+
wont_do: "wont_do";
|
|
125
|
+
}>>;
|
|
126
|
+
priority: z.ZodEnum<{
|
|
127
|
+
low: "low";
|
|
128
|
+
normal: "normal";
|
|
129
|
+
high: "high";
|
|
130
|
+
critical: "critical";
|
|
131
|
+
}>;
|
|
132
|
+
dueAt: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
134
|
+
milestoneId: z.ZodOptional<z.ZodString>;
|
|
135
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
ownerId: z.ZodOptional<z.ZodString>;
|
|
137
|
+
delegateAgentId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
source: z.ZodString;
|
|
139
|
+
locale: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
en: "en";
|
|
141
|
+
zh: "zh";
|
|
142
|
+
}>>;
|
|
143
|
+
latestContractVersion: z.ZodNumber;
|
|
144
|
+
boardRank: z.ZodDefault<z.ZodNumber>;
|
|
145
|
+
version: z.ZodNumber;
|
|
146
|
+
contract: z.ZodOptional<z.ZodObject<{
|
|
147
|
+
taskId: z.ZodString;
|
|
148
|
+
version: z.ZodNumber;
|
|
149
|
+
objective: z.ZodString;
|
|
150
|
+
expectedOutputs: z.ZodArray<z.ZodString>;
|
|
151
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
152
|
+
constraints: z.ZodArray<z.ZodString>;
|
|
153
|
+
approvalRequired: z.ZodArray<z.ZodString>;
|
|
154
|
+
assumptions: z.ZodArray<z.ZodString>;
|
|
155
|
+
risks: z.ZodArray<z.ZodString>;
|
|
156
|
+
acceptancePolicy: z.ZodEnum<{
|
|
157
|
+
verified_auto: "verified_auto";
|
|
158
|
+
verified_then_review: "verified_then_review";
|
|
159
|
+
manual: "manual";
|
|
160
|
+
}>;
|
|
161
|
+
outputDestinations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
162
|
+
createdBy: z.ZodObject<{
|
|
163
|
+
kind: z.ZodEnum<{
|
|
164
|
+
user: "user";
|
|
165
|
+
agent: "agent";
|
|
166
|
+
system: "system";
|
|
167
|
+
integration: "integration";
|
|
168
|
+
}>;
|
|
169
|
+
id: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
createdAt: z.ZodNumber;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
createdAt: z.ZodNumber;
|
|
174
|
+
updatedAt: z.ZodNumber;
|
|
175
|
+
closedAt: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
178
|
+
kind: z.ZodEnum<{
|
|
179
|
+
input_required: "input_required";
|
|
180
|
+
approval_required: "approval_required";
|
|
181
|
+
dependency_blocked: "dependency_blocked";
|
|
182
|
+
run_failed: "run_failed";
|
|
183
|
+
verification_failed: "verification_failed";
|
|
184
|
+
overdue: "overdue";
|
|
185
|
+
stale: "stale";
|
|
186
|
+
}>;
|
|
187
|
+
summary: z.ZodString;
|
|
188
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
operationalState: z.ZodEnum<{
|
|
191
|
+
waiting: "waiting";
|
|
192
|
+
idle: "idle";
|
|
193
|
+
queued: "queued";
|
|
194
|
+
running: "running";
|
|
195
|
+
verifying: "verifying";
|
|
196
|
+
blocked: "blocked";
|
|
197
|
+
}>;
|
|
198
|
+
allowedCommands: z.ZodArray<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
}, z.core.$strip>], "ok">;
|
|
201
|
+
export interface TaskWriteCapabilityDeps {
|
|
202
|
+
getConfig?: () => Config | undefined;
|
|
203
|
+
getProjects?: () => ProjectService | undefined;
|
|
204
|
+
wake?: (runs: boolean) => void;
|
|
205
|
+
abortConversation?: (conversationId: string) => void | Promise<void>;
|
|
206
|
+
}
|
|
207
|
+
export declare function registerTaskWriteCapabilities(dispatcher: CapabilityDispatcher, deps: TaskWriteCapabilityDeps): void;
|