@xopcai/xopc 0.0.313 → 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/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +2 -2
- package/dist/extensions/telegram/src/inbound-processor.js +1 -1
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +3 -3
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-C73s_EYF.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-Bspu1pT2.js → agents-CCcavsHq.js} +1 -1
- package/dist/gateway/static/root/assets/{api-Com7kQuw.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-DSo_SV6G.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-BWueu3Qt.js → archive-plugin-k_SuYWyV.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-DYV25sAC.js → attachment-load-DRv5QWUK.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-Du8AkHrH.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-rahoUE_-.js → binary-plugins-Dg3h3TA7.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CVbiuQ90.js → block-editor-DVhdHntT.js} +29 -29
- package/dist/gateway/static/root/assets/{browser-automation-inputs-CAC4w9KM.js → browser-automation-inputs-BMRYUW8_.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-B3-fdrAr.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-98GzKJ0K.js → chat-terminal-dock-D4AHa51o.js} +2 -2
- package/dist/gateway/static/root/assets/{computer-settings-page-CB3mySQb.js → computer-settings-page-eXPe500D.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-ZlbIXdey.js → connector-service-page-BQTFlq_k.js} +1 -1
- 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-WW3fY-ng.js → date-picker-7MtovynY.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-D1QgzM_s.js → dependency-picker-Bj_xkXID.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-D0MtbTwu.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-BOtWAAGM.js → extension-debug-page-J_olaL7e.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-FULvawj8.js → extension-page-pK5RvqN8.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Dzh6lE26.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-D7SG_ECs.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-CrHz00-9.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-DGiHzeLb.js → image-generation-api-Bo6NZ7zb.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-DiJrgu9D.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-DZ60sucF.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-Cx2YuI8E.js → local-apps-page-CrbKIixo.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-vZTDIqJB.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-DJfzcZCW.js → markdown-view-nXo5nrsv.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-COpQGcN3.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-nARdLZcP.js → page-tabs-Cl-NFPNr.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-BEJg3fTq.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-CR4Lehku.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-CF-nJ5MG.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-DOsDKbWU.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-kIV5M-9G.js → settings-form-section-TZRfg4yo.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-C2TS9mvq.js → settings-page-a8qcJpdZ.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-B39PogyD.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-CMbgRZ7w.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-DV4FX1ev.js → skills-page-BIOcg44X.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page.utils-C-2lmZHk.js → skills-page.utils-CgZdzT4I.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-CQ1Z6i28.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-tn6H0D44.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-CkEM9tXu.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-d0Fawetf.js → voice-api-key-field-BmYifdwL.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-D_8zU7Li.js → voice-config-api-D_5Q2_A3.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-C5FFSieF.js → work-discovery-overlay-4DmyEckJ.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-q5ammR4k.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 +19 -18
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/run-background-review.js +4 -4
- 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/coding/repository-instructions.js +1 -1
- 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/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +4 -3
- package/dist/src/agent/context/project-context.js +5 -4
- package/dist/src/agent/data-acquisition/service.js +1 -1
- package/dist/src/agent/embedded/index.js +2 -2
- package/dist/src/agent/embedded/model-runtime.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +4 -4
- package/dist/src/agent/embedded/run-turn.js +4 -4
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +126 -78
- package/dist/src/agent/external-tools/composio-provider.d.ts +1 -1
- package/dist/src/agent/external-tools/composio-provider.js +73 -15
- package/dist/src/agent/external-tools/endpoint-provider.js +14 -1
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +2 -2
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
- package/dist/src/agent/image/generation/providers/fal.js +1 -1
- package/dist/src/agent/image/generation/providers/google.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- 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/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +1 -1
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-store.js +1 -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/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +2 -2
- package/dist/src/agent/orchestration/agent-orchestrator.js +5 -5
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +5 -5
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.d.ts +3 -0
- package/dist/src/agent/service/process-direct-streaming.js +21 -12
- package/dist/src/agent/service/webchat-tts.js +1 -1
- package/dist/src/agent/service.js +22 -21
- package/dist/src/agent/service.types.d.ts +1 -0
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/config.js +2 -0
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/format-skills-prompt.js +14 -1
- package/dist/src/agent/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +3 -3
- package/dist/src/agent/skills/index.js +16 -8
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/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 +6 -5
- 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/create-share-tool.js +4 -4
- package/dist/src/agent/tools/dataBatch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/delegation-parent-policy.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.d.ts +1 -0
- package/dist/src/agent/tools/factory.js +22 -17
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +6 -6
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +2 -2
- package/dist/src/agent/tools/review-workspace.js +1 -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/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +2 -2
- 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 +2 -1
- 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/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +2 -2
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +2 -2
- 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/browser/providers/browser-ext-install.js +1 -1
- 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/capabilities/store-connector.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +3 -3
- package/dist/src/channels/manager.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +2 -2
- package/dist/src/chat-commands/context.js +2 -2
- package/dist/src/chat-commands/index.js +2 -2
- 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/agent.js +7 -7
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/channels.js +1 -1
- package/dist/src/cli/commands/config.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/doctor/checks/provider-auth.js +3 -3
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/gateway/shared.js +1 -1
- package/dist/src/cli/commands/gateway/token.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.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 +2 -2
- package/dist/src/cli/commands/onboard.js +2 -2
- package/dist/src/cli/commands/project.js +2 -2
- package/dist/src/cli/commands/runtime.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tunnel.js +3 -3
- package/dist/src/cli/extension-cli-register.js +4 -4
- package/dist/src/cli/utils/gateway-client.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 +16 -12
- package/dist/src/computer/task-state.d.ts +1 -0
- package/dist/src/computer/task-state.js +1 -0
- package/dist/src/config/index.js +5 -5
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.d.ts +14 -8
- package/dist/src/config/models-json.js +3 -3
- package/dist/src/config/schema.d.ts +4 -0
- package/dist/src/config/schema.js +4 -10
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.js +1 -1
- package/dist/src/connectors/composio-sessions.d.ts +4 -2
- package/dist/src/connectors/composio-sessions.js +11 -10
- package/dist/src/connectors/composio.js +11 -9
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/connection-recovery-service.js +5 -5
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/discussions/action-tasks.js +2 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/discussions/sealer.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 +3 -3
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +1 -1
- package/dist/src/extensions/loader.js +1 -1
- package/dist/src/extensions/lockfile.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/agents-admin.js +4 -4
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- package/dist/src/gateway/hono/middleware/scopes.js +1 -1
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +6 -3
- package/dist/src/gateway/hono/routes/browser.js +1 -1
- 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/commands-skills.js +3 -3
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/imports.js +1 -1
- 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/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +7 -7
- package/dist/src/gateway/hono/routes/notes.js +216 -147
- package/dist/src/gateway/hono/routes/projects.js +219 -376
- 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 +45 -3
- package/dist/src/gateway/hono/routes/sessions.js +18 -1
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/site-shares.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/user-model.js +4 -4
- package/dist/src/gateway/hono/routes/voice.js +6 -6
- package/dist/src/gateway/hono/routes/workflows.js +3 -3
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +3 -2
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- 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/server.js +1 -1
- 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/config-coordinator.js +4 -4
- package/dist/src/gateway/service/marketplace-service.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +13 -4
- 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 +4 -1
- 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 +92 -38
- package/dist/src/gateway/session-context-summary.js +3 -2
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/heartbeat/index.js +1 -1
- package/dist/src/i18n/share-tool-bundle.js +2 -2
- package/dist/src/imports/runtime.js +1 -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/gateway-processes.js +2 -2
- package/dist/src/infra/operation-context.d.ts +2 -0
- package/dist/src/infra/operation-context.js +16 -0
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +10 -10
- 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 +187 -44
- 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 +4 -4
- 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-skill-service.js +2 -2
- 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/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-catalog-types.d.ts +2 -1
- package/dist/src/providers/model-reference-auditor.js +5 -5
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/providers/model-supplements.js +13 -3
- package/dist/src/providers/presentation.js +3 -3
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/providers/xopc-cloud-model-source.js +4 -2
- package/dist/src/realtime/runtime.js +4 -0
- package/dist/src/remote-access/exposure-manager.js +1 -1
- 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/index.js +2 -2
- package/dist/src/session/session-find.d.ts +17 -0
- package/dist/src/session/session-find.js +56 -0
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.d.ts +4 -0
- package/dist/src/session/store.js +46 -10
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/note-share-revocation.d.ts +3 -0
- package/dist/src/share/note-share-revocation.js +26 -0
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- 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/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +5 -4
- 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 +4 -3
- package/dist/src/tasks/task-change-events.js +5 -3
- package/dist/src/tasks/task-context-assembler.js +3 -2
- 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 +3 -2
- 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 +10 -10
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +1 -1
- package/dist/src/tui/tui-commands.js +6 -6
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +4 -4
- package/dist/src/tui/tui.js +3 -3
- package/dist/src/tunnel/gateway-lifecycle.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/local/runtime-worker.js +1 -1
- package/dist/src/voice/platform-catalog.d.ts +1 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/realtime/runtime.js +3 -3
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/local-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/audio.js +1 -1
- package/dist/src/voice/tts/factory.js +1 -1
- package/dist/src/voice/tts/index.js +1 -1
- package/dist/src/voice/tts/payload.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 +40 -15
- package/dist/src/workflows/context/workflow-context.js +3 -2
- package/dist/src/workflows/service/workflow-run-service.js +7 -6
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +7 -3
- 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-CS_SAPwP.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-9w_YVThL.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-Jgvx-RKL.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-403o57-3.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-Dpju5KT_.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page-C0HJrpr1.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BanM86OX.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-Bhh0F9pO.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-BTqjm6eD.js +0 -2
- package/dist/gateway/static/root/assets/desktop-pet-settings-BI_sQTR_.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-BoPCEIm5.js +0 -1
- package/dist/gateway/static/root/assets/files-Be5viEFY.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-mpOw3R4d.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-Z-ErSgkD.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-Bq82yXVh.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BD1v6Uee.js +0 -1
- package/dist/gateway/static/root/assets/index-Ah5XDhOL.js +0 -79
- package/dist/gateway/static/root/assets/index-CV5b1pD1.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-BF8x3bgh.js +0 -2
- package/dist/gateway/static/root/assets/logs-page-B4vMUM7D.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-Cg0UjJpy.js +0 -1
- package/dist/gateway/static/root/assets/messages-CRH2my19.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-CWVIGctd.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-CcTzMI1K.js +0 -8
- package/dist/gateway/static/root/assets/product-delivery-CrAI8ZEa.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-BNYoV9Ac.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-CcKnYQqm.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-HIvwD5Xn.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-CFE2oX_l.js +0 -5
- package/dist/gateway/static/root/assets/scenes-page-BGKdg4uS.js +0 -1
- package/dist/gateway/static/root/assets/schemas-BaskVM5g.js +0 -64
- package/dist/gateway/static/root/assets/sessions-page-tn99saMj.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cx_uvwqz.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-1kYYg3BH.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-Du7BfwId.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BMhhXxRZ.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-vFn3xdlZ.js +0 -1
- package/dist/gateway/static/root/assets/theme-store-DdURyZ1M.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-uK9sxPUH.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-DIyd5AC9.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,1078 @@
|
|
|
1
|
+
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { TaskPhaseSchema, TaskWaitSchema, init_task_lifecycle } from "./task-lifecycle.js";
|
|
3
|
+
import { TaskRunEventSchema, TaskRunSchema, init_task_runs } from "./task-runs.js";
|
|
4
|
+
import { TaskDetailResponseSchema, TaskListResponseSchema, TaskPrioritySchema, TaskRunReceiptSchema, init_tasks } from "./tasks.js";
|
|
5
|
+
import { TaskValueMetricsSchema, init_home } from "./home.js";
|
|
6
|
+
import { AutomationMetricsSchema, AutomationRunEventSchema, AutomationRunSchema, AutomationSchema, init_automations } from "./automations.js";
|
|
7
|
+
import { AppContextEnvelopeSchema, ResolvedAppContextSchema, init_app_context } from "./app-context.js";
|
|
8
|
+
import { SceneActivationSchema, SceneConfigureSchema, SceneFeedbackSchema, ScenePreferencePatchSchema, SceneTransitionSchema, SceneWorkItemCreateSchema, SceneWorkItemSchema, SceneWorkItemUpdateSchema, activationInputSchema, init_scenes, sceneNotesSchema, scenePreferencesSchema, sceneScheduleSchema, sceneTemplateSchema } from "./scenes.js";
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
//#region packages/gateway-contract/src/capabilities.ts
|
|
11
|
+
var CapabilityErrorCodeSchema, CapabilityCallSchema, AutomationSimulationSchema, AutomationDraftRequestSchema, AutomationDraftOutputSchema, AutomationRepairDraftOutputSchema, CapabilityResourceInputSchema, LocalAppAcceptanceInputSchema, LocalAppAcceptanceOutputSchema, ScenePageInputSchema, SceneWriteContracts, SceneOutcomeReadSchema, TaskRunCancelInputSchema, TaskRunFeedbackInputSchema, TaskRunFeedbackOutputSchema, TaskRunCancelOutputSchema, AutomationSetEnabledInputSchema, AutomationMutationOutputSchema, AutomationRunMutationOutputSchema, AutomationCancelOutputSchema, AutomationReadOutputSchema, AutomationReadAllInputSchema, AutomationReadAllOutputSchema, AutomationDeleteInputSchema, AutomationDeleteOutputSchema, NoteListInputSchema, NoteRecordSchema, NoteGetOutputSchema, NoteDeleteInputSchema, NoteDeleteOutputSchema, NoteCreateInputSchema, NoteUpdateInputSchema, NoteCaptureInputSchema, NoteAppendInputSchema, NoteRestoreInputSchema, NoteListOutputSchema, TaskListInputSchema, ProjectRecordSchema, ProjectSetPinnedInputSchema, ProjectMutationOutputSchema, ProjectResolveWorkspaceInputSchema, ProjectResolveWorkspaceOutputSchema, ProjectDeleteInputSchema, ProjectDeleteOutputSchema, ProjectFields, ProjectCreateInputSchema, ProjectEditInputSchema, ProjectListInputSchema, LocalAppRecordSchema, LocalAppDetailSchema, ProjectMilestoneSchema, LocalAppValidationSchema, ProjectUpdateSchema, MilestoneFields, ProjectMilestoneCreateInputSchema, ProjectMilestoneUpdateInputSchema, ProjectMilestoneDeleteInputSchema, ProjectMilestoneOutputSchema, ProjectMilestoneDeleteOutputSchema, ProjectUpdateCreateInputSchema, ProjectUpdateOutputSchema, ProductReadContracts;
|
|
12
|
+
var init_capabilities = __esmMin((() => {
|
|
13
|
+
init_app_context();
|
|
14
|
+
init_task_lifecycle();
|
|
15
|
+
init_tasks();
|
|
16
|
+
init_task_runs();
|
|
17
|
+
init_automations();
|
|
18
|
+
init_home();
|
|
19
|
+
init_scenes();
|
|
20
|
+
z.enum([
|
|
21
|
+
"http",
|
|
22
|
+
"agent",
|
|
23
|
+
"cli",
|
|
24
|
+
"automation",
|
|
25
|
+
"mcp",
|
|
26
|
+
"extension"
|
|
27
|
+
]);
|
|
28
|
+
CapabilityErrorCodeSchema = z.enum([
|
|
29
|
+
"INVALID_INPUT",
|
|
30
|
+
"FORBIDDEN",
|
|
31
|
+
"NOT_FOUND",
|
|
32
|
+
"REVISION_CONFLICT",
|
|
33
|
+
"CONTRACT_CHANGED",
|
|
34
|
+
"APPROVAL_REQUIRED",
|
|
35
|
+
"IN_PROGRESS",
|
|
36
|
+
"UNAVAILABLE",
|
|
37
|
+
"OUTCOME_UNKNOWN",
|
|
38
|
+
"CANCELLED",
|
|
39
|
+
"INTERNAL"
|
|
40
|
+
]);
|
|
41
|
+
CapabilityCallSchema = z.strictObject({
|
|
42
|
+
majorVersion: z.number().int().positive(),
|
|
43
|
+
descriptorDigest: z.string().regex(/^[a-f0-9]{64}$/),
|
|
44
|
+
input: z.json(),
|
|
45
|
+
idempotencyKey: z.string().min(1).max(200).optional()
|
|
46
|
+
});
|
|
47
|
+
AutomationSimulationSchema = z.object({
|
|
48
|
+
triggerSummary: z.string(),
|
|
49
|
+
actionSummary: z.string(),
|
|
50
|
+
safetyNotes: z.array(z.string()),
|
|
51
|
+
requiredConfirmations: z.array(z.string()),
|
|
52
|
+
canRunNow: z.boolean(),
|
|
53
|
+
runNowBlockedReason: z.string().optional()
|
|
54
|
+
});
|
|
55
|
+
AutomationDraftRequestSchema = z.strictObject({
|
|
56
|
+
agentId: z.string().trim().min(1).max(64).optional(),
|
|
57
|
+
language: z.enum(["en", "zh"]).default("en")
|
|
58
|
+
});
|
|
59
|
+
AutomationDraftOutputSchema = z.object({
|
|
60
|
+
draftId: z.string(),
|
|
61
|
+
explanation: z.string(),
|
|
62
|
+
assumptions: z.array(z.string()),
|
|
63
|
+
risks: z.array(z.string()),
|
|
64
|
+
automation: z.looseObject({
|
|
65
|
+
name: z.string(),
|
|
66
|
+
trigger: z.json(),
|
|
67
|
+
action: z.json()
|
|
68
|
+
}),
|
|
69
|
+
simulation: AutomationSimulationSchema,
|
|
70
|
+
repairAttempts: z.number().int().nonnegative()
|
|
71
|
+
});
|
|
72
|
+
AutomationRepairDraftOutputSchema = z.object({
|
|
73
|
+
draftId: z.string(),
|
|
74
|
+
patch: z.record(z.string(), z.json()),
|
|
75
|
+
explanation: z.string(),
|
|
76
|
+
expectedEffect: z.string(),
|
|
77
|
+
risks: z.array(z.string()),
|
|
78
|
+
requiresApproval: z.boolean(),
|
|
79
|
+
repairAttempts: z.number().int().nonnegative()
|
|
80
|
+
});
|
|
81
|
+
z.strictObject({
|
|
82
|
+
eventId: z.string().min(1),
|
|
83
|
+
kind: z.enum([
|
|
84
|
+
"note",
|
|
85
|
+
"task",
|
|
86
|
+
"project",
|
|
87
|
+
"automation",
|
|
88
|
+
"scene",
|
|
89
|
+
"local_app"
|
|
90
|
+
]),
|
|
91
|
+
id: z.string().min(1),
|
|
92
|
+
revision: z.number().int().nonnegative(),
|
|
93
|
+
operation: z.enum([
|
|
94
|
+
"created",
|
|
95
|
+
"updated",
|
|
96
|
+
"deleted"
|
|
97
|
+
]),
|
|
98
|
+
operationId: z.string().optional()
|
|
99
|
+
});
|
|
100
|
+
CapabilityResourceInputSchema = z.strictObject({ id: z.string().trim().min(1).max(512) });
|
|
101
|
+
LocalAppAcceptanceInputSchema = z.strictObject({
|
|
102
|
+
sourceHash: z.string().regex(/^[a-f0-9]{64}$/),
|
|
103
|
+
status: z.enum(["passed", "failed"]),
|
|
104
|
+
interactiveCount: z.number().int().min(0).max(1e4),
|
|
105
|
+
checks: z.array(z.strictObject({
|
|
106
|
+
id: z.enum([
|
|
107
|
+
"document",
|
|
108
|
+
"content",
|
|
109
|
+
"interaction",
|
|
110
|
+
"criteria"
|
|
111
|
+
]),
|
|
112
|
+
status: z.enum([
|
|
113
|
+
"passed",
|
|
114
|
+
"failed",
|
|
115
|
+
"skipped"
|
|
116
|
+
]),
|
|
117
|
+
message: z.string().trim().min(1).max(500)
|
|
118
|
+
})).min(3).max(4)
|
|
119
|
+
});
|
|
120
|
+
LocalAppAcceptanceOutputSchema = LocalAppAcceptanceInputSchema.extend({
|
|
121
|
+
id: z.string(),
|
|
122
|
+
appId: z.string(),
|
|
123
|
+
createdAt: z.number().int().nonnegative()
|
|
124
|
+
});
|
|
125
|
+
ScenePageInputSchema = z.strictObject({
|
|
126
|
+
limit: z.number().int().min(1).max(100).default(50),
|
|
127
|
+
afterId: z.string().max(200).default("")
|
|
128
|
+
});
|
|
129
|
+
SceneWriteContracts = {
|
|
130
|
+
"xopc.scenes.start": {
|
|
131
|
+
input: activationInputSchema,
|
|
132
|
+
output: z.object({ activation: SceneActivationSchema })
|
|
133
|
+
},
|
|
134
|
+
"xopc.scenes.transition": {
|
|
135
|
+
input: SceneTransitionSchema.extend({ id: z.string().min(1).max(512) }),
|
|
136
|
+
output: z.object({ activation: SceneActivationSchema })
|
|
137
|
+
},
|
|
138
|
+
"xopc.scenes.set_preferences": {
|
|
139
|
+
input: ScenePreferencePatchSchema,
|
|
140
|
+
output: scenePreferencesSchema.extend({ revision: z.number().int().positive() })
|
|
141
|
+
},
|
|
142
|
+
"xopc.scenes.feedback": {
|
|
143
|
+
input: SceneFeedbackSchema.extend({ id: z.string().min(1).max(512) }),
|
|
144
|
+
output: z.object({ revision: z.number().int().positive() })
|
|
145
|
+
},
|
|
146
|
+
"xopc.scenes.mark_read": {
|
|
147
|
+
input: CapabilityResourceInputSchema.extend({ read: z.boolean() }),
|
|
148
|
+
output: z.object({
|
|
149
|
+
ok: z.literal(true),
|
|
150
|
+
presentationId: z.string(),
|
|
151
|
+
read: z.boolean()
|
|
152
|
+
})
|
|
153
|
+
},
|
|
154
|
+
"xopc.scenes.schedule": {
|
|
155
|
+
input: CapabilityResourceInputSchema.extend({
|
|
156
|
+
triggerKey: z.string().min(1).max(200),
|
|
157
|
+
expectedRevision: z.number().int().nonnegative(),
|
|
158
|
+
schedule: sceneScheduleSchema
|
|
159
|
+
}),
|
|
160
|
+
output: z.object({ revision: z.number().int().positive() })
|
|
161
|
+
},
|
|
162
|
+
"xopc.scenes.configure": {
|
|
163
|
+
input: SceneConfigureSchema.extend({ id: z.string().min(1).max(512) }),
|
|
164
|
+
output: z.object({ activation: SceneActivationSchema })
|
|
165
|
+
},
|
|
166
|
+
"xopc.scenes.check": {
|
|
167
|
+
input: CapabilityResourceInputSchema,
|
|
168
|
+
output: z.object({ intentId: z.string() })
|
|
169
|
+
},
|
|
170
|
+
"xopc.scenes.notes": {
|
|
171
|
+
input: sceneNotesSchema.extend({ id: z.string().min(1).max(512) }),
|
|
172
|
+
output: z.object({ revision: z.number().int().positive() })
|
|
173
|
+
},
|
|
174
|
+
"xopc.scenes.work_item": {
|
|
175
|
+
input: SceneWorkItemCreateSchema.extend({ id: z.string().min(1).max(512) }),
|
|
176
|
+
output: z.object({ workItem: SceneWorkItemSchema })
|
|
177
|
+
},
|
|
178
|
+
"xopc.scenes.update_work_item": {
|
|
179
|
+
input: SceneWorkItemUpdateSchema.safeExtend({ id: z.string().min(1).max(512) }),
|
|
180
|
+
output: z.object({ workItem: SceneWorkItemSchema })
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
SceneOutcomeReadSchema = z.looseObject({
|
|
184
|
+
id: z.string(),
|
|
185
|
+
activationId: z.string(),
|
|
186
|
+
outcomeId: z.string(),
|
|
187
|
+
status: z.string(),
|
|
188
|
+
content: z.json(),
|
|
189
|
+
readOnly: z.boolean(),
|
|
190
|
+
createdAt: z.number(),
|
|
191
|
+
sources: z.array(z.object({
|
|
192
|
+
kind: z.string(),
|
|
193
|
+
title: z.string(),
|
|
194
|
+
sender: z.string(),
|
|
195
|
+
href: z.string()
|
|
196
|
+
})),
|
|
197
|
+
sourceHealth: z.record(z.string(), z.json()).nullable()
|
|
198
|
+
});
|
|
199
|
+
TaskRunCancelInputSchema = CapabilityResourceInputSchema.extend({
|
|
200
|
+
expectedVersion: z.number().int().positive(),
|
|
201
|
+
reason: z.string().trim().min(1).max(4096).default("TaskRun cancelled")
|
|
202
|
+
});
|
|
203
|
+
TaskRunFeedbackInputSchema = CapabilityResourceInputSchema.extend({
|
|
204
|
+
rating: z.enum(["helpful", "not_helpful"]),
|
|
205
|
+
reason: z.string().trim().max(4096).optional()
|
|
206
|
+
});
|
|
207
|
+
TaskRunFeedbackOutputSchema = z.object({
|
|
208
|
+
ok: z.literal(true),
|
|
209
|
+
feedback: z.object({
|
|
210
|
+
id: z.string(),
|
|
211
|
+
runId: z.string(),
|
|
212
|
+
rating: z.enum(["helpful", "not_helpful"]),
|
|
213
|
+
reason: z.string().optional(),
|
|
214
|
+
createdAt: z.number()
|
|
215
|
+
})
|
|
216
|
+
});
|
|
217
|
+
TaskRunCancelOutputSchema = z.object({
|
|
218
|
+
ok: z.literal(true),
|
|
219
|
+
run: TaskRunSchema,
|
|
220
|
+
receipt: TaskRunReceiptSchema,
|
|
221
|
+
model: TaskDetailResponseSchema.pick({
|
|
222
|
+
task: true,
|
|
223
|
+
operationalState: true,
|
|
224
|
+
attention: true,
|
|
225
|
+
allowedCommands: true
|
|
226
|
+
}),
|
|
227
|
+
executionStopConfirmed: z.literal(false)
|
|
228
|
+
});
|
|
229
|
+
AutomationSetEnabledInputSchema = CapabilityResourceInputSchema.extend({
|
|
230
|
+
enabled: z.boolean(),
|
|
231
|
+
expectedRevision: z.number().int().nonnegative()
|
|
232
|
+
});
|
|
233
|
+
AutomationMutationOutputSchema = z.object({
|
|
234
|
+
ok: z.literal(true),
|
|
235
|
+
automation: AutomationSchema.loose()
|
|
236
|
+
});
|
|
237
|
+
AutomationRunMutationOutputSchema = AutomationMutationOutputSchema.extend({ run: AutomationRunSchema.loose() });
|
|
238
|
+
AutomationCancelOutputSchema = z.object({
|
|
239
|
+
ok: z.literal(true),
|
|
240
|
+
cancelled: z.boolean(),
|
|
241
|
+
confirmed: z.boolean()
|
|
242
|
+
});
|
|
243
|
+
AutomationReadOutputSchema = z.object({
|
|
244
|
+
ok: z.literal(true),
|
|
245
|
+
marked: z.literal(true)
|
|
246
|
+
});
|
|
247
|
+
AutomationReadAllInputSchema = z.strictObject({ projectId: z.string().trim().min(1).max(512).optional() });
|
|
248
|
+
AutomationReadAllOutputSchema = z.object({
|
|
249
|
+
ok: z.literal(true),
|
|
250
|
+
count: z.number().int().nonnegative()
|
|
251
|
+
});
|
|
252
|
+
AutomationDeleteInputSchema = CapabilityResourceInputSchema.extend({ expectedRevision: z.number().int().nonnegative().nullable() });
|
|
253
|
+
AutomationDeleteOutputSchema = z.object({
|
|
254
|
+
ok: z.literal(true),
|
|
255
|
+
removed: z.boolean(),
|
|
256
|
+
automation: AutomationSchema.loose().optional(),
|
|
257
|
+
cancelRunId: z.string().optional()
|
|
258
|
+
});
|
|
259
|
+
NoteListInputSchema = z.strictObject({
|
|
260
|
+
status: z.enum([
|
|
261
|
+
"inbox",
|
|
262
|
+
"processed",
|
|
263
|
+
"archived",
|
|
264
|
+
"trashed"
|
|
265
|
+
]).optional(),
|
|
266
|
+
kind: z.enum([
|
|
267
|
+
"thought",
|
|
268
|
+
"todo",
|
|
269
|
+
"voice",
|
|
270
|
+
"media",
|
|
271
|
+
"bookmark",
|
|
272
|
+
"mixed",
|
|
273
|
+
"task"
|
|
274
|
+
]).optional(),
|
|
275
|
+
tag: z.string().max(512).optional(),
|
|
276
|
+
projectId: z.string().min(1).max(512).optional(),
|
|
277
|
+
unassigned: z.boolean().optional(),
|
|
278
|
+
agentEdited: z.boolean().optional(),
|
|
279
|
+
search: z.string().max(4096).optional(),
|
|
280
|
+
pinned: z.boolean().optional(),
|
|
281
|
+
limit: z.number().int().min(1).max(100).default(20),
|
|
282
|
+
offset: z.number().int().min(0).default(0),
|
|
283
|
+
sortBy: z.enum([
|
|
284
|
+
"createdAt",
|
|
285
|
+
"updatedAt",
|
|
286
|
+
"lastOpenedAt"
|
|
287
|
+
]).optional(),
|
|
288
|
+
sortOrder: z.enum(["asc", "desc"]).optional()
|
|
289
|
+
});
|
|
290
|
+
NoteRecordSchema = z.looseObject({
|
|
291
|
+
id: z.string().min(1),
|
|
292
|
+
markdown: z.string(),
|
|
293
|
+
kind: z.enum([
|
|
294
|
+
"thought",
|
|
295
|
+
"todo",
|
|
296
|
+
"voice",
|
|
297
|
+
"media",
|
|
298
|
+
"bookmark",
|
|
299
|
+
"mixed",
|
|
300
|
+
"task"
|
|
301
|
+
]),
|
|
302
|
+
status: z.enum([
|
|
303
|
+
"inbox",
|
|
304
|
+
"processed",
|
|
305
|
+
"archived",
|
|
306
|
+
"trashed"
|
|
307
|
+
]),
|
|
308
|
+
createdAt: z.number(),
|
|
309
|
+
updatedAt: z.number(),
|
|
310
|
+
title: z.string().optional(),
|
|
311
|
+
localVersion: z.number().optional()
|
|
312
|
+
});
|
|
313
|
+
NoteGetOutputSchema = z.object({ note: NoteRecordSchema });
|
|
314
|
+
NoteDeleteInputSchema = CapabilityResourceInputSchema.extend({
|
|
315
|
+
expectedRevision: z.number().int().positive(),
|
|
316
|
+
revokeShares: z.boolean().default(true)
|
|
317
|
+
});
|
|
318
|
+
NoteDeleteOutputSchema = z.object({
|
|
319
|
+
deleted: z.literal(true),
|
|
320
|
+
revokedShares: z.number().int().nonnegative()
|
|
321
|
+
});
|
|
322
|
+
NoteCreateInputSchema = z.strictObject({
|
|
323
|
+
title: z.string().max(1e3).optional(),
|
|
324
|
+
markdown: z.string().max(2e6).default(""),
|
|
325
|
+
kind: NoteRecordSchema.shape.kind.optional(),
|
|
326
|
+
tags: z.array(z.string().max(512)).max(100).optional(),
|
|
327
|
+
capturedVia: z.strictObject({
|
|
328
|
+
channel: z.enum([
|
|
329
|
+
"app",
|
|
330
|
+
"web",
|
|
331
|
+
"electron",
|
|
332
|
+
"tui",
|
|
333
|
+
"telegram",
|
|
334
|
+
"wechat",
|
|
335
|
+
"feishu"
|
|
336
|
+
]),
|
|
337
|
+
platform: z.enum([
|
|
338
|
+
"ios",
|
|
339
|
+
"android",
|
|
340
|
+
"harmonyos"
|
|
341
|
+
]).optional()
|
|
342
|
+
}).default({ channel: "web" }),
|
|
343
|
+
pinned: z.boolean().default(false),
|
|
344
|
+
projectId: z.string().min(1).optional()
|
|
345
|
+
});
|
|
346
|
+
NoteUpdateInputSchema = z.strictObject({
|
|
347
|
+
id: z.string().min(1),
|
|
348
|
+
expectedRevision: z.number().int().positive(),
|
|
349
|
+
trigger: z.enum([
|
|
350
|
+
"edit",
|
|
351
|
+
"ai_edit",
|
|
352
|
+
"sync",
|
|
353
|
+
"restore"
|
|
354
|
+
]).optional(),
|
|
355
|
+
patch: z.strictObject({
|
|
356
|
+
title: z.string().max(1e3).optional(),
|
|
357
|
+
markdown: z.string().max(2e6).optional(),
|
|
358
|
+
tags: z.array(z.string().max(512)).max(100).optional(),
|
|
359
|
+
pinned: z.boolean().optional(),
|
|
360
|
+
kind: NoteRecordSchema.shape.kind.optional(),
|
|
361
|
+
status: NoteRecordSchema.shape.status.optional(),
|
|
362
|
+
localVersion: z.number().int().positive().optional(),
|
|
363
|
+
ai: z.record(z.string(), z.json()).optional(),
|
|
364
|
+
aiDeep: z.looseObject({ processedAt: z.number() }).optional()
|
|
365
|
+
})
|
|
366
|
+
});
|
|
367
|
+
NoteCaptureInputSchema = z.strictObject({
|
|
368
|
+
text: z.string().trim().min(1).max(2e6),
|
|
369
|
+
capturedVia: NoteCreateInputSchema.shape.capturedVia
|
|
370
|
+
});
|
|
371
|
+
NoteAppendInputSchema = z.strictObject({
|
|
372
|
+
id: z.string().min(1),
|
|
373
|
+
expectedRevision: z.number().int().positive().optional(),
|
|
374
|
+
content: z.string().trim().min(1).max(2e6),
|
|
375
|
+
heading: z.string().trim().min(1).max(1e3).default("AI 讨论沉淀")
|
|
376
|
+
});
|
|
377
|
+
NoteRestoreInputSchema = z.strictObject({
|
|
378
|
+
id: z.string().min(1),
|
|
379
|
+
timestamp: z.number().int().positive(),
|
|
380
|
+
expectedRevision: z.number().int().positive()
|
|
381
|
+
});
|
|
382
|
+
NoteListOutputSchema = z.looseObject({
|
|
383
|
+
items: z.array(z.looseObject({ id: z.string().min(1) })),
|
|
384
|
+
total: z.number().int().nonnegative()
|
|
385
|
+
});
|
|
386
|
+
TaskListInputSchema = z.strictObject({
|
|
387
|
+
phase: TaskPhaseSchema.optional(),
|
|
388
|
+
priority: TaskPrioritySchema.optional(),
|
|
389
|
+
projectId: z.string().min(1).max(512).optional(),
|
|
390
|
+
search: z.string().max(4096).optional(),
|
|
391
|
+
limit: z.number().int().min(1).max(200).default(50),
|
|
392
|
+
offset: z.number().int().nonnegative().default(0)
|
|
393
|
+
});
|
|
394
|
+
ProjectRecordSchema = z.looseObject({
|
|
395
|
+
id: z.string().min(1),
|
|
396
|
+
name: z.string(),
|
|
397
|
+
slug: z.string(),
|
|
398
|
+
status: z.enum([
|
|
399
|
+
"planned",
|
|
400
|
+
"active",
|
|
401
|
+
"paused",
|
|
402
|
+
"completed",
|
|
403
|
+
"cancelled",
|
|
404
|
+
"archived"
|
|
405
|
+
]),
|
|
406
|
+
executionMode: z.enum(["local_checkout", "managed_worktree"]),
|
|
407
|
+
successCriteria: z.array(z.string()),
|
|
408
|
+
scope: z.record(z.string(), z.unknown()),
|
|
409
|
+
nonGoals: z.array(z.string()),
|
|
410
|
+
health: z.enum([
|
|
411
|
+
"unknown",
|
|
412
|
+
"on_track",
|
|
413
|
+
"at_risk",
|
|
414
|
+
"off_track"
|
|
415
|
+
]),
|
|
416
|
+
version: z.number().int().positive(),
|
|
417
|
+
createdAt: z.number(),
|
|
418
|
+
updatedAt: z.number(),
|
|
419
|
+
workspaceRoot: z.string().optional(),
|
|
420
|
+
defaultAgentId: z.string().optional()
|
|
421
|
+
});
|
|
422
|
+
ProjectSetPinnedInputSchema = z.strictObject({
|
|
423
|
+
id: z.string().trim().min(1),
|
|
424
|
+
expectedVersion: z.number().int().positive(),
|
|
425
|
+
pinned: z.boolean()
|
|
426
|
+
});
|
|
427
|
+
ProjectMutationOutputSchema = z.object({
|
|
428
|
+
ok: z.literal(true),
|
|
429
|
+
project: ProjectRecordSchema
|
|
430
|
+
});
|
|
431
|
+
ProjectResolveWorkspaceInputSchema = z.strictObject({
|
|
432
|
+
workspacePath: z.string().trim().min(1).max(4096),
|
|
433
|
+
agentId: z.string().trim().min(1).max(512).optional(),
|
|
434
|
+
defaultAgentId: z.string().trim().max(512).optional(),
|
|
435
|
+
projectKind: z.enum([
|
|
436
|
+
"auto",
|
|
437
|
+
"coding",
|
|
438
|
+
"general",
|
|
439
|
+
"unknown"
|
|
440
|
+
]).optional(),
|
|
441
|
+
autoCreate: z.boolean().default(false),
|
|
442
|
+
conversationId: z.uuid().optional()
|
|
443
|
+
});
|
|
444
|
+
ProjectResolveWorkspaceOutputSchema = z.object({
|
|
445
|
+
ok: z.literal(true),
|
|
446
|
+
project: ProjectRecordSchema.nullable(),
|
|
447
|
+
reason: z.enum([
|
|
448
|
+
"exact",
|
|
449
|
+
"contained",
|
|
450
|
+
"auto_created"
|
|
451
|
+
]).optional(),
|
|
452
|
+
created: z.boolean().optional()
|
|
453
|
+
});
|
|
454
|
+
ProjectDeleteInputSchema = ProjectSetPinnedInputSchema.omit({ pinned: true });
|
|
455
|
+
ProjectDeleteOutputSchema = z.object({
|
|
456
|
+
ok: z.literal(true),
|
|
457
|
+
deleted: z.literal(true),
|
|
458
|
+
executionStopConfirmed: z.literal(false)
|
|
459
|
+
});
|
|
460
|
+
ProjectFields = {
|
|
461
|
+
name: z.string().trim().min(1).max(1e3).optional(),
|
|
462
|
+
description: z.string().max(2e4).optional(),
|
|
463
|
+
defaultAgentId: z.string().trim().max(512).optional(),
|
|
464
|
+
workspaceRoot: z.string().trim().min(1).max(4096).optional(),
|
|
465
|
+
createWorkspaceRoot: z.boolean().optional(),
|
|
466
|
+
executionMode: ProjectRecordSchema.shape.executionMode.optional(),
|
|
467
|
+
brief: z.string().max(2e4).optional(),
|
|
468
|
+
instructions: z.string().max(1e5).optional(),
|
|
469
|
+
outcome: z.string().max(2e4).optional(),
|
|
470
|
+
successCriteria: z.array(z.string().max(4096)).max(100).optional(),
|
|
471
|
+
scope: z.record(z.string(), z.json()).optional(),
|
|
472
|
+
nonGoals: z.array(z.string().max(4096)).max(100).optional(),
|
|
473
|
+
health: ProjectRecordSchema.shape.health.optional(),
|
|
474
|
+
ownerId: z.string().max(512).optional(),
|
|
475
|
+
targetAt: z.number().finite().optional()
|
|
476
|
+
};
|
|
477
|
+
ProjectCreateInputSchema = z.strictObject({
|
|
478
|
+
...ProjectFields,
|
|
479
|
+
projectKind: z.enum([
|
|
480
|
+
"auto",
|
|
481
|
+
"coding",
|
|
482
|
+
"general",
|
|
483
|
+
"unknown"
|
|
484
|
+
]).optional(),
|
|
485
|
+
autoUnderstand: z.boolean().default(false)
|
|
486
|
+
}).refine((input) => Boolean(input.name || input.workspaceRoot), "name or workspaceRoot is required");
|
|
487
|
+
ProjectEditInputSchema = z.strictObject({
|
|
488
|
+
id: z.string().trim().min(1),
|
|
489
|
+
expectedVersion: z.number().int().positive(),
|
|
490
|
+
patch: z.strictObject({
|
|
491
|
+
...ProjectFields,
|
|
492
|
+
status: ProjectRecordSchema.shape.status.optional(),
|
|
493
|
+
description: ProjectFields.description.unwrap().nullable().optional(),
|
|
494
|
+
defaultAgentId: ProjectFields.defaultAgentId.unwrap().nullable().optional(),
|
|
495
|
+
workspaceRoot: z.string().trim().max(4096).nullable().optional(),
|
|
496
|
+
brief: ProjectFields.brief.unwrap().nullable().optional(),
|
|
497
|
+
instructions: ProjectFields.instructions.unwrap().nullable().optional(),
|
|
498
|
+
outcome: ProjectFields.outcome.unwrap().nullable().optional(),
|
|
499
|
+
ownerId: ProjectFields.ownerId.unwrap().nullable().optional(),
|
|
500
|
+
targetAt: ProjectFields.targetAt.unwrap().nullable().optional()
|
|
501
|
+
}).refine((input) => Object.values(input).some((value) => value !== void 0), "Empty project patch")
|
|
502
|
+
});
|
|
503
|
+
ProjectListInputSchema = z.strictObject({
|
|
504
|
+
status: ProjectRecordSchema.shape.status.optional(),
|
|
505
|
+
search: z.string().max(4096).optional(),
|
|
506
|
+
sortBy: z.enum([
|
|
507
|
+
"updatedAt",
|
|
508
|
+
"createdAt",
|
|
509
|
+
"name"
|
|
510
|
+
]).optional(),
|
|
511
|
+
sortOrder: z.enum(["asc", "desc"]).optional(),
|
|
512
|
+
limit: z.number().int().min(1).max(500).default(50),
|
|
513
|
+
offset: z.number().int().nonnegative().default(0)
|
|
514
|
+
});
|
|
515
|
+
LocalAppRecordSchema = z.looseObject({
|
|
516
|
+
id: z.string(),
|
|
517
|
+
extensionId: z.string(),
|
|
518
|
+
projectId: z.string(),
|
|
519
|
+
name: z.string(),
|
|
520
|
+
idea: z.string(),
|
|
521
|
+
status: z.enum([
|
|
522
|
+
"preview_ready",
|
|
523
|
+
"installed",
|
|
524
|
+
"degraded"
|
|
525
|
+
]),
|
|
526
|
+
workspaceRoot: z.string(),
|
|
527
|
+
draftVersion: z.number().int(),
|
|
528
|
+
installationState: z.enum(["not_installed", "installed"]),
|
|
529
|
+
enabled: z.boolean(),
|
|
530
|
+
createdAt: z.number(),
|
|
531
|
+
updatedAt: z.number()
|
|
532
|
+
});
|
|
533
|
+
LocalAppDetailSchema = LocalAppRecordSchema.extend({
|
|
534
|
+
previewUrl: z.string(),
|
|
535
|
+
permissions: z.array(z.string()),
|
|
536
|
+
releases: z.array(z.looseObject({
|
|
537
|
+
id: z.string(),
|
|
538
|
+
appId: z.string(),
|
|
539
|
+
version: z.number().int(),
|
|
540
|
+
sourceHash: z.string(),
|
|
541
|
+
healthStatus: z.enum(["healthy", "failed"]),
|
|
542
|
+
createdAt: z.number(),
|
|
543
|
+
isActive: z.boolean()
|
|
544
|
+
})),
|
|
545
|
+
acceptanceRuns: z.array(z.looseObject({
|
|
546
|
+
id: z.string(),
|
|
547
|
+
appId: z.string(),
|
|
548
|
+
sourceHash: z.string(),
|
|
549
|
+
status: z.enum(["passed", "failed"]),
|
|
550
|
+
createdAt: z.number(),
|
|
551
|
+
interactiveCount: z.number().int().nonnegative(),
|
|
552
|
+
checks: z.array(z.object({
|
|
553
|
+
id: z.enum([
|
|
554
|
+
"document",
|
|
555
|
+
"content",
|
|
556
|
+
"interaction",
|
|
557
|
+
"criteria"
|
|
558
|
+
]),
|
|
559
|
+
status: z.enum([
|
|
560
|
+
"passed",
|
|
561
|
+
"failed",
|
|
562
|
+
"skipped"
|
|
563
|
+
]),
|
|
564
|
+
message: z.string()
|
|
565
|
+
}))
|
|
566
|
+
}))
|
|
567
|
+
});
|
|
568
|
+
ProjectMilestoneSchema = z.looseObject({
|
|
569
|
+
id: z.string(),
|
|
570
|
+
projectId: z.string(),
|
|
571
|
+
title: z.string(),
|
|
572
|
+
status: z.enum([
|
|
573
|
+
"planned",
|
|
574
|
+
"active",
|
|
575
|
+
"completed",
|
|
576
|
+
"cancelled"
|
|
577
|
+
]),
|
|
578
|
+
sortOrder: z.number(),
|
|
579
|
+
createdAt: z.number(),
|
|
580
|
+
updatedAt: z.number()
|
|
581
|
+
});
|
|
582
|
+
LocalAppValidationSchema = z.object({
|
|
583
|
+
status: z.enum(["healthy", "failed"]),
|
|
584
|
+
checkedAt: z.number(),
|
|
585
|
+
sourceHash: z.string().optional(),
|
|
586
|
+
hasDraftChanges: z.boolean(),
|
|
587
|
+
changedFiles: z.array(z.object({
|
|
588
|
+
path: z.string(),
|
|
589
|
+
status: z.enum([
|
|
590
|
+
"added",
|
|
591
|
+
"modified",
|
|
592
|
+
"deleted"
|
|
593
|
+
])
|
|
594
|
+
})),
|
|
595
|
+
changedFileCount: z.number().int().nonnegative(),
|
|
596
|
+
permissions: z.array(z.string()),
|
|
597
|
+
permissionDelta: z.object({
|
|
598
|
+
added: z.array(z.string()),
|
|
599
|
+
removed: z.array(z.string())
|
|
600
|
+
}),
|
|
601
|
+
acceptanceScenarioCount: z.number().int().nonnegative(),
|
|
602
|
+
acceptanceScenarios: z.array(z.object({
|
|
603
|
+
id: z.string(),
|
|
604
|
+
name: z.string(),
|
|
605
|
+
stepCount: z.number().int().nonnegative()
|
|
606
|
+
})),
|
|
607
|
+
issues: z.array(z.object({
|
|
608
|
+
code: z.string(),
|
|
609
|
+
severity: z.enum(["error", "warning"]),
|
|
610
|
+
message: z.string()
|
|
611
|
+
}))
|
|
612
|
+
});
|
|
613
|
+
ProjectUpdateSchema = z.looseObject({
|
|
614
|
+
id: z.string(),
|
|
615
|
+
projectId: z.string(),
|
|
616
|
+
summary: z.string(),
|
|
617
|
+
health: ProjectRecordSchema.shape.health,
|
|
618
|
+
createdAt: z.number()
|
|
619
|
+
});
|
|
620
|
+
MilestoneFields = {
|
|
621
|
+
title: z.string().trim().min(1).max(1e3),
|
|
622
|
+
description: z.string().max(2e4).optional(),
|
|
623
|
+
status: ProjectMilestoneSchema.shape.status.optional(),
|
|
624
|
+
targetAt: z.number().int().nonnegative().optional(),
|
|
625
|
+
sortOrder: z.number().int().optional()
|
|
626
|
+
};
|
|
627
|
+
ProjectMilestoneCreateInputSchema = z.strictObject({
|
|
628
|
+
projectId: z.string().trim().min(1),
|
|
629
|
+
...MilestoneFields
|
|
630
|
+
});
|
|
631
|
+
ProjectMilestoneUpdateInputSchema = z.strictObject({
|
|
632
|
+
projectId: z.string().trim().min(1),
|
|
633
|
+
id: z.string().trim().min(1),
|
|
634
|
+
expectedRevision: z.number().int().nonnegative(),
|
|
635
|
+
patch: z.strictObject({
|
|
636
|
+
...MilestoneFields,
|
|
637
|
+
description: z.string().max(2e4).nullable().optional(),
|
|
638
|
+
targetAt: z.number().int().nonnegative().nullable().optional()
|
|
639
|
+
}).partial().refine((value) => Object.values(value).some((item) => item !== void 0), "Empty milestone patch")
|
|
640
|
+
});
|
|
641
|
+
ProjectMilestoneDeleteInputSchema = ProjectMilestoneUpdateInputSchema.omit({ patch: true });
|
|
642
|
+
ProjectMilestoneOutputSchema = z.object({
|
|
643
|
+
ok: z.literal(true),
|
|
644
|
+
milestone: ProjectMilestoneSchema,
|
|
645
|
+
project: ProjectRecordSchema
|
|
646
|
+
});
|
|
647
|
+
ProjectMilestoneDeleteOutputSchema = z.object({
|
|
648
|
+
ok: z.literal(true),
|
|
649
|
+
deleted: z.literal(true)
|
|
650
|
+
});
|
|
651
|
+
ProjectUpdateCreateInputSchema = z.strictObject({
|
|
652
|
+
projectId: z.string().trim().min(1),
|
|
653
|
+
expectedVersion: z.number().int().positive(),
|
|
654
|
+
health: ProjectRecordSchema.shape.health,
|
|
655
|
+
summary: z.string().trim().min(1).max(2e4),
|
|
656
|
+
progress: z.array(z.string().max(1e4)).max(100).default([]),
|
|
657
|
+
risks: z.array(z.string().max(1e4)).max(100).default([]),
|
|
658
|
+
nextSteps: z.array(z.string().max(1e4)).max(100).default([])
|
|
659
|
+
});
|
|
660
|
+
ProjectUpdateOutputSchema = z.object({
|
|
661
|
+
ok: z.literal(true),
|
|
662
|
+
update: ProjectUpdateSchema,
|
|
663
|
+
project: ProjectRecordSchema
|
|
664
|
+
});
|
|
665
|
+
ProductReadContracts = {
|
|
666
|
+
"xopc.context.resolve": {
|
|
667
|
+
input: AppContextEnvelopeSchema,
|
|
668
|
+
output: ResolvedAppContextSchema
|
|
669
|
+
},
|
|
670
|
+
"xopc.notes.preview_edit": {
|
|
671
|
+
input: CapabilityResourceInputSchema.extend({
|
|
672
|
+
instruction: z.string().trim().min(1).max(16e3),
|
|
673
|
+
markdown: z.string().max(2e6).optional()
|
|
674
|
+
}),
|
|
675
|
+
output: z.object({
|
|
676
|
+
message: z.string(),
|
|
677
|
+
patch: z.object({
|
|
678
|
+
id: z.string(),
|
|
679
|
+
summary: z.string(),
|
|
680
|
+
operations: z.array(z.object({
|
|
681
|
+
type: z.literal("replaceRange"),
|
|
682
|
+
from: z.number().int().nonnegative(),
|
|
683
|
+
to: z.number().int().nonnegative(),
|
|
684
|
+
markdown: z.string()
|
|
685
|
+
}))
|
|
686
|
+
})
|
|
687
|
+
})
|
|
688
|
+
},
|
|
689
|
+
"xopc.automations.get_run": {
|
|
690
|
+
input: CapabilityResourceInputSchema,
|
|
691
|
+
output: z.object({
|
|
692
|
+
ok: z.literal(true),
|
|
693
|
+
run: AutomationRunSchema.loose()
|
|
694
|
+
})
|
|
695
|
+
},
|
|
696
|
+
"xopc.automations.run_events": {
|
|
697
|
+
input: CapabilityResourceInputSchema,
|
|
698
|
+
output: z.object({
|
|
699
|
+
ok: z.literal(true),
|
|
700
|
+
events: z.array(AutomationRunEventSchema.loose())
|
|
701
|
+
})
|
|
702
|
+
},
|
|
703
|
+
"xopc.automations.metrics": {
|
|
704
|
+
input: z.strictObject({}),
|
|
705
|
+
output: z.object({
|
|
706
|
+
ok: z.literal(true),
|
|
707
|
+
metrics: AutomationMetricsSchema
|
|
708
|
+
})
|
|
709
|
+
},
|
|
710
|
+
"xopc.automations.product_events": {
|
|
711
|
+
input: z.strictObject({
|
|
712
|
+
eventType: z.string().trim().min(1).max(512),
|
|
713
|
+
source: z.string().trim().min(1).max(512).optional(),
|
|
714
|
+
payloadKey: z.string().trim().min(1).max(512).optional(),
|
|
715
|
+
payloadValue: z.string().max(4096).optional(),
|
|
716
|
+
limit: z.number().int().min(1).max(100).default(10)
|
|
717
|
+
}).refine((input) => input.payloadKey === void 0 === (input.payloadValue === void 0), "payloadKey and payloadValue must be supplied together"),
|
|
718
|
+
output: z.object({
|
|
719
|
+
ok: z.literal(true),
|
|
720
|
+
items: z.array(z.object({
|
|
721
|
+
run: AutomationRunSchema.loose(),
|
|
722
|
+
triggerEvent: AutomationRunEventSchema.loose()
|
|
723
|
+
}))
|
|
724
|
+
})
|
|
725
|
+
},
|
|
726
|
+
"xopc.automations.list": {
|
|
727
|
+
input: z.strictObject({ projectId: z.string().trim().min(1).optional() }),
|
|
728
|
+
output: z.object({
|
|
729
|
+
ok: z.literal(true),
|
|
730
|
+
items: z.array(AutomationSchema.loose()),
|
|
731
|
+
projectId: z.string().optional()
|
|
732
|
+
})
|
|
733
|
+
},
|
|
734
|
+
"xopc.automations.get": {
|
|
735
|
+
input: CapabilityResourceInputSchema,
|
|
736
|
+
output: z.object({
|
|
737
|
+
ok: z.literal(true),
|
|
738
|
+
automation: AutomationSchema.loose()
|
|
739
|
+
})
|
|
740
|
+
},
|
|
741
|
+
"xopc.automations.history": {
|
|
742
|
+
input: z.strictObject({
|
|
743
|
+
automationId: z.string().trim().min(1).optional(),
|
|
744
|
+
projectId: z.string().trim().min(1).optional(),
|
|
745
|
+
limit: z.number().int().min(1).max(200).default(50)
|
|
746
|
+
}),
|
|
747
|
+
output: z.object({
|
|
748
|
+
ok: z.literal(true),
|
|
749
|
+
items: z.array(AutomationRunSchema.loose()),
|
|
750
|
+
projectId: z.string().optional()
|
|
751
|
+
})
|
|
752
|
+
},
|
|
753
|
+
"xopc.scenes.templates": {
|
|
754
|
+
input: z.strictObject({}),
|
|
755
|
+
output: z.object({ templates: z.array(sceneTemplateSchema) })
|
|
756
|
+
},
|
|
757
|
+
"xopc.scenes.mail_accounts": {
|
|
758
|
+
input: z.strictObject({}),
|
|
759
|
+
output: z.object({ accounts: z.array(z.object({
|
|
760
|
+
id: z.string(),
|
|
761
|
+
label: z.string()
|
|
762
|
+
})) })
|
|
763
|
+
},
|
|
764
|
+
"xopc.scenes.mail_sources": {
|
|
765
|
+
input: ScenePageInputSchema,
|
|
766
|
+
output: z.object({
|
|
767
|
+
sources: z.array(z.object({
|
|
768
|
+
id: z.string(),
|
|
769
|
+
accountId: z.string(),
|
|
770
|
+
subject: z.string(),
|
|
771
|
+
sender: z.string()
|
|
772
|
+
})),
|
|
773
|
+
nextCursor: z.string().nullable()
|
|
774
|
+
})
|
|
775
|
+
},
|
|
776
|
+
"xopc.scenes.results": {
|
|
777
|
+
input: ScenePageInputSchema.extend({ activationId: z.string().min(1).max(200).optional() }),
|
|
778
|
+
output: z.object({
|
|
779
|
+
outcomes: z.array(SceneOutcomeReadSchema),
|
|
780
|
+
nextCursor: z.string().nullable()
|
|
781
|
+
})
|
|
782
|
+
},
|
|
783
|
+
"xopc.scenes.get_presentation": {
|
|
784
|
+
input: CapabilityResourceInputSchema,
|
|
785
|
+
output: z.object({ outcome: SceneOutcomeReadSchema })
|
|
786
|
+
},
|
|
787
|
+
"xopc.scenes.get_feedback": {
|
|
788
|
+
input: CapabilityResourceInputSchema,
|
|
789
|
+
output: z.object({ feedback: z.object({
|
|
790
|
+
rating: z.enum(["useful", "not_useful"]),
|
|
791
|
+
note: z.string(),
|
|
792
|
+
revision: z.number().int().nonnegative()
|
|
793
|
+
}).nullable() })
|
|
794
|
+
},
|
|
795
|
+
"xopc.scenes.digest_results": {
|
|
796
|
+
input: ScenePageInputSchema.extend({ id: z.string().min(1).max(512) }),
|
|
797
|
+
output: z.object({
|
|
798
|
+
outcomes: z.array(SceneOutcomeReadSchema),
|
|
799
|
+
nextCursor: z.string().nullable()
|
|
800
|
+
})
|
|
801
|
+
},
|
|
802
|
+
"xopc.scenes.metrics": {
|
|
803
|
+
input: z.strictObject({ days: z.number().int().min(1).max(90).default(7) }),
|
|
804
|
+
output: z.object({
|
|
805
|
+
window: z.object({
|
|
806
|
+
since: z.number(),
|
|
807
|
+
until: z.number(),
|
|
808
|
+
days: z.number().int()
|
|
809
|
+
}),
|
|
810
|
+
ratedOutcomes: z.number().int().nonnegative(),
|
|
811
|
+
usefulOutcomes: z.number().int().nonnegative(),
|
|
812
|
+
unhelpfulOutcomes: z.number().int().nonnegative(),
|
|
813
|
+
scenesWithUsefulOutcomes: z.number().int().nonnegative(),
|
|
814
|
+
checks: z.number().int().nonnegative(),
|
|
815
|
+
failedChecks: z.number().int().nonnegative(),
|
|
816
|
+
skippedChecks: z.number().int().nonnegative()
|
|
817
|
+
})
|
|
818
|
+
},
|
|
819
|
+
"xopc.scenes.diagnostics": {
|
|
820
|
+
input: z.strictObject({}),
|
|
821
|
+
output: z.object({
|
|
822
|
+
checksPaused: z.boolean(),
|
|
823
|
+
currentModel: z.string().nullable(),
|
|
824
|
+
pendingChecks: z.number().int().nonnegative(),
|
|
825
|
+
oldestDueWaitMs: z.number().nonnegative(),
|
|
826
|
+
lastSevenDays: z.object({
|
|
827
|
+
modelCalls: z.number().int().nonnegative(),
|
|
828
|
+
connectorReads: z.number().int().nonnegative(),
|
|
829
|
+
tokens: z.number().nonnegative(),
|
|
830
|
+
estimatedCost: z.number().nonnegative()
|
|
831
|
+
}),
|
|
832
|
+
notifications: z.array(z.object({
|
|
833
|
+
status: z.string(),
|
|
834
|
+
count: z.number().int().nonnegative()
|
|
835
|
+
})),
|
|
836
|
+
activations: z.array(z.record(z.string(), z.json()))
|
|
837
|
+
})
|
|
838
|
+
},
|
|
839
|
+
"xopc.scenes.get_preferences": {
|
|
840
|
+
input: z.strictObject({}),
|
|
841
|
+
output: scenePreferencesSchema.extend({ revision: z.number().int().nonnegative() })
|
|
842
|
+
},
|
|
843
|
+
"xopc.scenes.preflight": {
|
|
844
|
+
input: activationInputSchema,
|
|
845
|
+
output: z.object({
|
|
846
|
+
ready: z.boolean(),
|
|
847
|
+
missing: z.array(z.string())
|
|
848
|
+
})
|
|
849
|
+
},
|
|
850
|
+
"xopc.scenes.get_template": {
|
|
851
|
+
input: z.strictObject({
|
|
852
|
+
key: z.string().min(1).max(200),
|
|
853
|
+
version: z.string().min(1).max(200)
|
|
854
|
+
}),
|
|
855
|
+
output: z.object({ template: sceneTemplateSchema })
|
|
856
|
+
},
|
|
857
|
+
"xopc.scenes.list": {
|
|
858
|
+
input: ScenePageInputSchema,
|
|
859
|
+
output: z.object({
|
|
860
|
+
activations: z.array(SceneActivationSchema),
|
|
861
|
+
nextCursor: z.string().nullable()
|
|
862
|
+
})
|
|
863
|
+
},
|
|
864
|
+
"xopc.scenes.get": {
|
|
865
|
+
input: CapabilityResourceInputSchema,
|
|
866
|
+
output: z.object({
|
|
867
|
+
activation: SceneActivationSchema,
|
|
868
|
+
runs: z.array(z.looseObject({
|
|
869
|
+
id: z.string(),
|
|
870
|
+
status: z.string(),
|
|
871
|
+
attempt: z.number().int(),
|
|
872
|
+
reason: z.string().nullable(),
|
|
873
|
+
createdAt: z.number()
|
|
874
|
+
})),
|
|
875
|
+
schedules: z.array(z.looseObject({
|
|
876
|
+
triggerKey: z.string(),
|
|
877
|
+
revision: z.number().int(),
|
|
878
|
+
nextDueAt: z.number(),
|
|
879
|
+
schedule: z.json()
|
|
880
|
+
}))
|
|
881
|
+
})
|
|
882
|
+
},
|
|
883
|
+
"xopc.scenes.read_notes": {
|
|
884
|
+
input: CapabilityResourceInputSchema,
|
|
885
|
+
output: z.object({ notes: z.object({
|
|
886
|
+
content: z.string(),
|
|
887
|
+
revision: z.number().int().nonnegative(),
|
|
888
|
+
validUntil: z.number().nullable()
|
|
889
|
+
}) })
|
|
890
|
+
},
|
|
891
|
+
"xopc.scenes.list_runs": {
|
|
892
|
+
input: ScenePageInputSchema.extend({ id: z.string().min(1).max(512) }),
|
|
893
|
+
output: z.object({
|
|
894
|
+
runs: z.array(z.looseObject({
|
|
895
|
+
id: z.string(),
|
|
896
|
+
activationId: z.string(),
|
|
897
|
+
status: z.string(),
|
|
898
|
+
attempt: z.number().int(),
|
|
899
|
+
reason: z.string().nullable(),
|
|
900
|
+
createdAt: z.number()
|
|
901
|
+
})),
|
|
902
|
+
nextCursor: z.string().nullable()
|
|
903
|
+
})
|
|
904
|
+
},
|
|
905
|
+
"xopc.scenes.list_schedules": {
|
|
906
|
+
input: CapabilityResourceInputSchema,
|
|
907
|
+
output: z.object({ schedules: z.array(z.looseObject({
|
|
908
|
+
triggerKey: z.string(),
|
|
909
|
+
revision: z.number().int(),
|
|
910
|
+
nextDueAt: z.number(),
|
|
911
|
+
schedule: z.json()
|
|
912
|
+
})) })
|
|
913
|
+
},
|
|
914
|
+
"xopc.scenes.list_work_items": {
|
|
915
|
+
input: ScenePageInputSchema.extend({ id: z.string().min(1).max(512) }),
|
|
916
|
+
output: z.object({
|
|
917
|
+
workItems: z.array(z.looseObject({
|
|
918
|
+
id: z.string(),
|
|
919
|
+
subjectId: z.string(),
|
|
920
|
+
accountId: z.string(),
|
|
921
|
+
dueAt: z.number(),
|
|
922
|
+
status: z.string(),
|
|
923
|
+
revision: z.number().int(),
|
|
924
|
+
lastCheckReason: z.string().nullable()
|
|
925
|
+
})),
|
|
926
|
+
nextCursor: z.string().nullable()
|
|
927
|
+
})
|
|
928
|
+
},
|
|
929
|
+
"xopc.settings.open": {
|
|
930
|
+
input: z.strictObject({
|
|
931
|
+
section: z.string().trim().regex(/^[a-z0-9][a-z0-9/_-]*$/i).max(512).default("overview"),
|
|
932
|
+
title: z.string().trim().min(1).max(512).default("Settings"),
|
|
933
|
+
summary: z.string().trim().max(4096).optional()
|
|
934
|
+
}),
|
|
935
|
+
output: z.object({
|
|
936
|
+
ok: z.literal(true),
|
|
937
|
+
settings: z.object({
|
|
938
|
+
section: z.string(),
|
|
939
|
+
title: z.string(),
|
|
940
|
+
summary: z.string().optional()
|
|
941
|
+
})
|
|
942
|
+
})
|
|
943
|
+
},
|
|
944
|
+
"xopc.local_apps.list": {
|
|
945
|
+
input: z.strictObject({}),
|
|
946
|
+
output: z.object({ apps: z.array(LocalAppRecordSchema) })
|
|
947
|
+
},
|
|
948
|
+
"xopc.local_apps.get": {
|
|
949
|
+
input: CapabilityResourceInputSchema,
|
|
950
|
+
output: z.object({ app: LocalAppDetailSchema })
|
|
951
|
+
},
|
|
952
|
+
"xopc.local_apps.validate": {
|
|
953
|
+
input: CapabilityResourceInputSchema,
|
|
954
|
+
output: z.object({ validation: LocalAppValidationSchema })
|
|
955
|
+
},
|
|
956
|
+
"xopc.projects.get": {
|
|
957
|
+
input: CapabilityResourceInputSchema,
|
|
958
|
+
output: z.object({
|
|
959
|
+
ok: z.literal(true),
|
|
960
|
+
project: ProjectRecordSchema
|
|
961
|
+
})
|
|
962
|
+
},
|
|
963
|
+
"xopc.projects.list": {
|
|
964
|
+
input: ProjectListInputSchema,
|
|
965
|
+
output: z.looseObject({
|
|
966
|
+
ok: z.literal(true),
|
|
967
|
+
items: z.array(ProjectRecordSchema),
|
|
968
|
+
total: z.number().int().nonnegative()
|
|
969
|
+
})
|
|
970
|
+
},
|
|
971
|
+
"xopc.projects.list_milestones": {
|
|
972
|
+
input: CapabilityResourceInputSchema,
|
|
973
|
+
output: z.object({
|
|
974
|
+
ok: z.literal(true),
|
|
975
|
+
projectId: z.string(),
|
|
976
|
+
items: z.array(ProjectMilestoneSchema)
|
|
977
|
+
})
|
|
978
|
+
},
|
|
979
|
+
"xopc.projects.list_updates": {
|
|
980
|
+
input: CapabilityResourceInputSchema.extend({ limit: z.number().int().min(1).max(500).default(20) }),
|
|
981
|
+
output: z.object({
|
|
982
|
+
ok: z.literal(true),
|
|
983
|
+
projectId: z.string(),
|
|
984
|
+
items: z.array(ProjectUpdateSchema)
|
|
985
|
+
})
|
|
986
|
+
},
|
|
987
|
+
"xopc.task_runs.get": {
|
|
988
|
+
input: CapabilityResourceInputSchema,
|
|
989
|
+
output: z.object({
|
|
990
|
+
ok: z.literal(true),
|
|
991
|
+
run: TaskRunSchema,
|
|
992
|
+
receipt: TaskRunReceiptSchema.optional(),
|
|
993
|
+
events: z.array(TaskRunEventSchema),
|
|
994
|
+
activeWaits: z.array(TaskWaitSchema)
|
|
995
|
+
})
|
|
996
|
+
},
|
|
997
|
+
"xopc.task_runs.list": {
|
|
998
|
+
input: z.strictObject({
|
|
999
|
+
taskId: z.string().trim().min(1),
|
|
1000
|
+
limit: z.number().int().min(1).max(200).default(20)
|
|
1001
|
+
}),
|
|
1002
|
+
output: z.object({
|
|
1003
|
+
ok: z.literal(true),
|
|
1004
|
+
taskId: z.string(),
|
|
1005
|
+
items: z.array(TaskRunSchema),
|
|
1006
|
+
receipts: z.array(TaskRunReceiptSchema),
|
|
1007
|
+
activeWaits: z.array(TaskWaitSchema)
|
|
1008
|
+
})
|
|
1009
|
+
},
|
|
1010
|
+
"xopc.notes.project_summaries": {
|
|
1011
|
+
input: z.strictObject({}),
|
|
1012
|
+
output: z.object({ items: z.array(z.object({
|
|
1013
|
+
id: z.string(),
|
|
1014
|
+
name: z.string(),
|
|
1015
|
+
description: z.string().optional(),
|
|
1016
|
+
noteCount: z.number().int().nonnegative(),
|
|
1017
|
+
updatedAt: z.number().optional()
|
|
1018
|
+
})) })
|
|
1019
|
+
},
|
|
1020
|
+
"xopc.notes.history": {
|
|
1021
|
+
input: CapabilityResourceInputSchema,
|
|
1022
|
+
output: z.object({ entries: z.array(z.object({
|
|
1023
|
+
timestamp: z.number().int().nonnegative(),
|
|
1024
|
+
trigger: z.enum([
|
|
1025
|
+
"edit",
|
|
1026
|
+
"ai_edit",
|
|
1027
|
+
"sync",
|
|
1028
|
+
"restore"
|
|
1029
|
+
]),
|
|
1030
|
+
snippet: z.string().optional()
|
|
1031
|
+
})) })
|
|
1032
|
+
},
|
|
1033
|
+
"xopc.notes.snapshot": {
|
|
1034
|
+
input: CapabilityResourceInputSchema.extend({ timestamp: z.number().int().nonnegative() }),
|
|
1035
|
+
output: z.object({ snapshot: z.object({
|
|
1036
|
+
noteId: z.string(),
|
|
1037
|
+
timestamp: z.number().int().nonnegative(),
|
|
1038
|
+
trigger: z.enum([
|
|
1039
|
+
"edit",
|
|
1040
|
+
"ai_edit",
|
|
1041
|
+
"sync",
|
|
1042
|
+
"restore"
|
|
1043
|
+
]),
|
|
1044
|
+
title: z.string().optional(),
|
|
1045
|
+
markdown: z.string(),
|
|
1046
|
+
tags: z.array(z.string()).optional(),
|
|
1047
|
+
kind: NoteRecordSchema.shape.kind,
|
|
1048
|
+
status: NoteRecordSchema.shape.status
|
|
1049
|
+
}) })
|
|
1050
|
+
},
|
|
1051
|
+
"xopc.notes.get": {
|
|
1052
|
+
input: CapabilityResourceInputSchema,
|
|
1053
|
+
output: NoteGetOutputSchema
|
|
1054
|
+
},
|
|
1055
|
+
"xopc.notes.list": {
|
|
1056
|
+
input: NoteListInputSchema,
|
|
1057
|
+
output: NoteListOutputSchema
|
|
1058
|
+
},
|
|
1059
|
+
"xopc.tasks.metrics": {
|
|
1060
|
+
input: z.strictObject({}),
|
|
1061
|
+
output: z.object({
|
|
1062
|
+
ok: z.literal(true),
|
|
1063
|
+
metrics: TaskValueMetricsSchema
|
|
1064
|
+
})
|
|
1065
|
+
},
|
|
1066
|
+
"xopc.tasks.get": {
|
|
1067
|
+
input: CapabilityResourceInputSchema,
|
|
1068
|
+
output: TaskDetailResponseSchema
|
|
1069
|
+
},
|
|
1070
|
+
"xopc.tasks.list": {
|
|
1071
|
+
input: TaskListInputSchema,
|
|
1072
|
+
output: TaskListResponseSchema.extend({ total: z.number().int().nonnegative() })
|
|
1073
|
+
}
|
|
1074
|
+
};
|
|
1075
|
+
}));
|
|
1076
|
+
//#endregion
|
|
1077
|
+
init_capabilities();
|
|
1078
|
+
export { AutomationCancelOutputSchema, AutomationDeleteInputSchema, AutomationDeleteOutputSchema, AutomationDraftOutputSchema, AutomationDraftRequestSchema, AutomationMutationOutputSchema, AutomationReadAllInputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRepairDraftOutputSchema, AutomationRunMutationOutputSchema, AutomationSetEnabledInputSchema, AutomationSimulationSchema, CapabilityCallSchema, CapabilityErrorCodeSchema, CapabilityResourceInputSchema, LocalAppAcceptanceInputSchema, LocalAppAcceptanceOutputSchema, LocalAppDetailSchema, LocalAppRecordSchema, LocalAppValidationSchema, NoteAppendInputSchema, NoteCaptureInputSchema, NoteCreateInputSchema, NoteDeleteInputSchema, NoteDeleteOutputSchema, NoteGetOutputSchema, NoteListInputSchema, NoteListOutputSchema, NoteRecordSchema, NoteRestoreInputSchema, NoteUpdateInputSchema, ProductReadContracts, ProjectCreateInputSchema, ProjectDeleteInputSchema, ProjectDeleteOutputSchema, ProjectEditInputSchema, ProjectListInputSchema, ProjectMilestoneCreateInputSchema, ProjectMilestoneDeleteInputSchema, ProjectMilestoneDeleteOutputSchema, ProjectMilestoneOutputSchema, ProjectMilestoneSchema, ProjectMilestoneUpdateInputSchema, ProjectMutationOutputSchema, ProjectRecordSchema, ProjectResolveWorkspaceInputSchema, ProjectResolveWorkspaceOutputSchema, ProjectSetPinnedInputSchema, ProjectUpdateCreateInputSchema, ProjectUpdateOutputSchema, ProjectUpdateSchema, ScenePageInputSchema, SceneWriteContracts, TaskListInputSchema, TaskRunCancelInputSchema, TaskRunCancelOutputSchema, TaskRunFeedbackInputSchema, TaskRunFeedbackOutputSchema, init_capabilities };
|