@xopcai/xopc 0.0.351 → 0.0.352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- 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 +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- 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-Dc0yBlKV.js → agent-avatar-dicebear-ChlaFmiD.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BXFins6I.js → agent-defaults-settings-panel-CgNagNMG.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-B-w6bJuj.js → agent-plugin-dialog-CDhtsMpV.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CuFzMN58.js → agents-BLP0zRru.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-yUALtmym.js → agents-admin-api-C_3ucZGI.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-C7QjGlMZ.js → app-management-settings-panel-DqC-oj5_.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-CgApGxhN.js → appearance-settings-Cfhepf6U.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DWii4stP.js → apps-page-C6n5r8AP.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin--oP0UmoE.js → archive-plugin-D4EiLLyl.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DkV4w6xr.js → automations-page-CMxBpT5v.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-DT95Uk9d.js → automations-workspace-DJ_-_kGh.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-DIpBiw_8.js → binary-plugins-DQc_BlYP.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-Di4X446B.js → block-editor-C3S6gqnS.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automation-inputs-B0TlAcoB.js → browser-automation-inputs-D2SwaQ2F.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-pKPvkGW8.js → browser-automations-page-CGG1740U.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-cJ200PlY.js → browser-settings-page-COTo7btH.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-e-fO70DK.js → capabilities-D4qdO980.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-CPKbJUDL.js → capabilities-page-BsC346Ym.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-D5xUFWBJ.js → capabilities-settings-panel-CRL4gfk5.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-9qDm8ioP.js → capability-header-actions-B_60-buR.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-CO_9_oIH.js → channels-DNxr72oD.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-DCFwzHu2.js → chat-terminal-dock-DfTUgrey.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-bwWQ3axN.js → computer-settings-page-Bk84TKyF.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-BIIP-gX4.js → connector-service-page-B2pC--2X.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-C0b5Xbca.js → connectors-page-Bu15_14O.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-DBio7OE6.js → date-picker-CCN30yiy.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-hyPm_1tB.js → dependency-picker-CV2ybJJd.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BDPfot60.js → desktop-pet-DipFHe4X.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-C6IRO2iD.js → desktop-pet-settings-Dg3RM_vY.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-CUOh38IK.js → device-pairing-wizard-DUy1HymM.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-ljXXfuLL.js → directory-picker-path-field-BTuFpGIK.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DHw1dG1g.js → extension-debug-page-xM8vfbRZ.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BjLN3E6q.js → extension-page-Cl8zlion.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-BMp6v6zP.js → extension-settings-page-DODk0nOi.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-CmjHbMj7.js → gateway-config-swr-DZWFlfJr.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DzyR6LYb.js → gateway-realtime-HO9tL9xo.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B01fiKrV.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-settings-D76thCuX.js → gateway-settings-BL3C7Q9w.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CbOUnKv5.js → gateway-startup-retry-Cg1nbxJR.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-D1Tyeuul.js → home-page-CjJVq_Ff.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-BmLpVntI.js → image-generation-api-DSnPfr_U.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-CabovqRQ.js → imports-page-By9oc8sD.js} +1 -1
- package/dist/gateway/static/root/assets/index-B-w6Rk9Z.css +1 -0
- package/dist/gateway/static/root/assets/{index-Bb32g7Ll.js → index-S4z-eKe-.js} +9 -9
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DvN-2bcS.js → keyboard-shortcuts-settings-ixQ8_6ad.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-CSEzRWxs.js → local-app-workbench-page-Bnz5YOks.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-C3Wy2zG2.js → local-apps-page-BV3NFUJQ.js} +1 -1
- package/dist/gateway/static/root/assets/local-session-drafts-CuyTzbfW.js +1 -0
- package/dist/gateway/static/root/assets/{locale-store-WMaCMm3_.js → locale-store-qcYD05PF.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-YojQFX9o.js → logs-page-DVqwybaT.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-CNMk0HRn.js → management-settings-CUoDWFg7.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-Oe4rXk1N.js → markdown-view-BhFHoVtG.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-Ds7HF3EM.js → media-plugins-cpalRgVI.js} +1 -1
- package/dist/gateway/static/root/assets/messages-vL3EpIrL.js +3 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-D8vQ_INI.js → note-detail-panel-CxbZWvj1.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-CIFcEPAd.js → notes-page-DkEOEza6.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-YKiYT0q2.js → page-context-capture-button-CjCYNkVb.js} +1 -1
- package/dist/gateway/static/root/assets/{page-tabs-ZUC486EH.js → page-tabs-Dnzie6QW.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-Ca9tBmOg.js → preview-open-alternatives-D1H4_Nfl.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BuGb8QPn.js → product-open-page-BJwEshPw.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-C6Awj1Ql.js → project-detail-page-BWC89e7l.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-CmO8Gb9G.js → projects-page-BYmHC91B.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-DEePN1Rc.js → registry-api-C0j3sKT4.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BsqHroXR.js → remote-access-hub-DuVzpZ9R.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-Cva9t35o.js → runtime-tools-settings-panel-SbIgL9Ya.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-3_61bQHN.js → scenes-page-BBl_4U1U.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-DWHFyKEB.js → schema-form-Rj-wi9sm.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-Bv-hCMKS.js → session-api-iR1SFNHe.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-BcDptzCN.js → session-manager-3YOU74jt.js} +5 -5
- package/dist/gateway/static/root/assets/{sessions-page-BaHue2bK.js → sessions-page-BnipzwJ6.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-C7oNKVxC.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-BwdrtX6k.js → settings-form-section-6gOr-ype.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-B6YZFEye.js → settings-page-D1tVcmlR.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-nMWHz-ra.js → setup-status-panel-CR0VBBw3.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-DH0KHlev.js → share-preview-page-CK0Bg_-o.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-KK-VNbMw.js → shares-settings-B3Ghvh3c.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-BbNk-3Ig.js → skill-api-CoIsCPbI.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DMIwfISw.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-BQya9ygw.js → skills-page-CDkm7yig.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-akm5mc8b.js → system-settings-panel-Cfv-jDmY.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-wLGUc7Nu.js → task-detail-page-eYs6qgcW.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-vZ7P_KIQ.js → tunnel-api-CpOQaCFN.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-BV1KJ0EY.js → usage-page-Cye-2eKA.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-DQdLcZfO.js → use-autosave-o6YLrkpO.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-DnLTTyOE.js → user-model-page-Bg-jeU7W.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-CJ-FjNHr.js → voice-api-key-field-FMNwQIho.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-DbjjZkIg.js → voice-config-api-CylVelIb.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BA1AAqaW.js → work-discovery-overlay-9bULjfGk.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-BhIOKmjW.js → workflow-run-setup-panel-VYQHBiz3.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-aYoObmuS.js → workflows-page-KnoMMEDN.js} +1 -1
- package/dist/gateway/static/root/index.html +15 -15
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/session-input-command.js +2 -1
- package/dist/src/agent/agent-manager.js +29 -20
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +3 -3
- package/dist/src/agent/coding/repository-instructions.js +1 -1
- 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 +2 -2
- package/dist/src/agent/context/project-context.js +3 -3
- 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 +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +3 -3
- 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/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-config.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +2 -2
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-stdio-transport.js +1 -1
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +1 -1
- package/dist/src/agent/mcp/plugin-http-fetch.js +1 -1
- package/dist/src/agent/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/messaging/outbound-coordinator.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- 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 +4 -4
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +5 -5
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +19 -19
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/source-context/index.js +2 -2
- package/dist/src/agent/starter-agents.d.ts +3 -0
- package/dist/src/agent/starter-agents.js +57 -2
- package/dist/src/agent/tasks/task-judge-service.js +4 -4
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- 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 +3 -1
- package/dist/src/agent/tools/factory.js +22 -19
- 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/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tts-tool.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.js +3 -3
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent/workflow/workflow-child-tools.js +2 -1
- package/dist/src/agent-config/resolver.js +2 -0
- package/dist/src/agent-config/schema.d.ts +2 -0
- package/dist/src/agent-config/schema.js +2 -0
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/events/event-repository.js +2 -1
- package/dist/src/automations/index.js +4 -4
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/backup/archive.js +1 -1
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.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/builtins/config.js +3 -3
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/session.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 +3 -3
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +6 -6
- 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/channel-plugins.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +2 -2
- package/dist/src/cli/commands/doctor/checks/tool-runtimes.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +2 -2
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/extension.js +4 -4
- package/dist/src/cli/commands/gateway/lifecycle.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/onboard/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- 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 +4 -4
- package/dist/src/cli/extension-cli-register.js +5 -5
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +2 -2
- package/dist/src/config/index.js +4 -4
- package/dist/src/config/loader.js +1 -1
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +3 -3
- package/dist/src/connectors/connection-recovery-service.js +10 -5
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/plugin-mcp-recovery.js +1 -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/extensions/activation-context.js +3 -3
- package/dist/src/extensions/api.js +4 -4
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.d.ts +1 -0
- package/dist/src/gateway/agents-admin.js +2 -1
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +1 -1
- 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.js +3 -3
- package/dist/src/gateway/hono/routes/agents.js +9 -2
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/browser.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/device-push.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.js +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +1 -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 +1 -1
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +5 -5
- package/dist/src/gateway/hono/routes/voice.js +6 -6
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/host.d.ts +0 -2
- package/dist/src/gateway/host.js +2 -5
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/run-loop.js +1 -1
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.js +35 -35
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/home-intelligence/generator.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +10 -10
- package/dist/src/infra/update-restart.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/store.js +1 -1
- package/dist/src/notifications/device-store.d.ts +0 -1
- package/dist/src/notifications/device-store.js +2 -7
- package/dist/src/notifications/service.d.ts +0 -1
- package/dist/src/notifications/service.js +13 -82
- package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/resources.js +1 -1
- package/dist/src/scenes/taskFollowUp/service.js +4 -4
- package/dist/src/session/execution-detail.js +16 -0
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +4 -4
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/share-zip.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/notes-repository.js +19 -4
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +3 -3
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-application-service.js +2 -2
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-main-update-decision-service.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +9 -9
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- 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 +5 -5
- 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 +6 -6
- package/dist/src/tunnel/frpc-binary.js +1 -1
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/audio/normalize.js +34 -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/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.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/voice/tts/speak-core.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/service.js +5 -5
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +8 -8
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +12 -13
- package/dist/gateway/static/root/assets/gateway-realtime-store-KyhksZSM.js +0 -1
- package/dist/gateway/static/root/assets/index-CPi50n0l.css +0 -1
- package/dist/gateway/static/root/assets/local-session-drafts-CxXjQ5Du.js +0 -1
- package/dist/gateway/static/root/assets/messages-sXePe3LQ.js +0 -3
- package/dist/gateway/static/root/assets/settings-advanced-gate-C4y4c2M7.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DUOG2Ig1.js +0 -1
|
@@ -70,7 +70,7 @@ function getNotificationDevice(deviceId) {
|
|
|
70
70
|
}
|
|
71
71
|
function listDeliverableNotificationDevices(now = Date.now()) {
|
|
72
72
|
return getSqliteDatabase().prepare(`SELECT * FROM device_push_endpoints
|
|
73
|
-
WHERE enabled = 1 AND permissions = 'granted' AND lease_expires_at > ?
|
|
73
|
+
WHERE enabled = 1 AND permissions = 'granted' AND platform = 'harmonyos' AND lease_expires_at > ?
|
|
74
74
|
ORDER BY updated_at DESC`).all(now).map(deviceFromRow);
|
|
75
75
|
}
|
|
76
76
|
function updateNotificationDevicePreferences(deviceId, patch) {
|
|
@@ -88,10 +88,5 @@ function updateNotificationDevicePreferences(deviceId, patch) {
|
|
|
88
88
|
function removeNotificationDevice(deviceId) {
|
|
89
89
|
return runSqliteWriteTransaction((db) => db.prepare("DELETE FROM device_push_endpoints WHERE device_id = ?").run(deviceId).changes > 0);
|
|
90
90
|
}
|
|
91
|
-
function disableNotificationDeviceForPushToken(pushToken) {
|
|
92
|
-
runSqliteWriteTransaction((db) => {
|
|
93
|
-
db.prepare("UPDATE device_push_endpoints SET enabled = 0, updated_at = ? WHERE push_token = ?").run(Date.now(), pushToken);
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
91
|
//#endregion
|
|
97
|
-
export {
|
|
92
|
+
export { getNotificationDevice, listDeliverableNotificationDevices, registerNotificationDevice, removeNotificationDevice, updateNotificationDevicePreferences };
|
|
@@ -4,9 +4,9 @@ import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/t
|
|
|
4
4
|
import { localizeNotification } from "../../packages/gateway-contract/src/notifications.js";
|
|
5
5
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
6
6
|
import { getOrCreateGatewayIdentity, init_gateway_identity_repository } from "../storage/sqlite/gateway-identity-repository.js";
|
|
7
|
-
import {
|
|
7
|
+
import { listDeliverableNotificationDevices } from "./device-store.js";
|
|
8
8
|
import { notificationPlanFromGatewayEvent } from "./planner.js";
|
|
9
|
-
import { createNotificationEvent, deferNotificationDelivery, expireUndeliverableNotificationDeliveries, listDueNotificationDeliveries, markNotificationDeliveryAccepted, markNotificationDeliveryDead,
|
|
9
|
+
import { createNotificationEvent, deferNotificationDelivery, expireUndeliverableNotificationDeliveries, listDueNotificationDeliveries, markNotificationDeliveryAccepted, markNotificationDeliveryDead, pruneNotificationEvents, rescheduleNotificationDelivery } from "./store.js";
|
|
10
10
|
import { sendHarmonyPush } from "./harmony-push.js";
|
|
11
11
|
//#region src/notifications/service.ts
|
|
12
12
|
init_transaction();
|
|
@@ -14,8 +14,6 @@ init_src();
|
|
|
14
14
|
init_logger();
|
|
15
15
|
init_gateway_identity_repository();
|
|
16
16
|
const log = createLogger("Notifications");
|
|
17
|
-
const EXPO_PUSH_URL = "https://exp.host/--/api/v2/push/send";
|
|
18
|
-
const EXPO_RECEIPTS_URL = "https://exp.host/--/api/v2/push/getReceipts";
|
|
19
17
|
const MAX_DELIVERY_ATTEMPTS = 5;
|
|
20
18
|
const RETRY_DELAYS_MS = [
|
|
21
19
|
3e4,
|
|
@@ -24,7 +22,6 @@ const RETRY_DELAYS_MS = [
|
|
|
24
22
|
36e5,
|
|
25
23
|
216e5
|
|
26
24
|
];
|
|
27
|
-
const RECEIPT_DELAY_MS = 15 * 6e4;
|
|
28
25
|
const STANDARD_PREFERENCES = {
|
|
29
26
|
"chat.completed": "chatCompleted",
|
|
30
27
|
"chat.failed": "chatFailed",
|
|
@@ -45,9 +42,6 @@ function preferenceAllows(type, preferences) {
|
|
|
45
42
|
function retryAt(attempts, now) {
|
|
46
43
|
return now + RETRY_DELAYS_MS[Math.min(attempts, RETRY_DELAYS_MS.length - 1)];
|
|
47
44
|
}
|
|
48
|
-
function expoError(result) {
|
|
49
|
-
return result.details?.error || result.message || "Expo rejected the notification";
|
|
50
|
-
}
|
|
51
45
|
var NotificationService = class {
|
|
52
46
|
timer = null;
|
|
53
47
|
draining = false;
|
|
@@ -116,7 +110,6 @@ var NotificationService = class {
|
|
|
116
110
|
}
|
|
117
111
|
for (const notification of this.options.domainDelivery?.flush((plan) => this.persistPlan(plan)) ?? []) this.options.publish("notification.created", notification);
|
|
118
112
|
await this.deliverPending();
|
|
119
|
-
await this.checkReceipts();
|
|
120
113
|
await this.options.domainDelivery?.drain();
|
|
121
114
|
} catch (err) {
|
|
122
115
|
log.warn({ err }, "Notification delivery pass failed");
|
|
@@ -160,85 +153,23 @@ var NotificationService = class {
|
|
|
160
153
|
body: localized.localizedBody
|
|
161
154
|
};
|
|
162
155
|
try {
|
|
163
|
-
if (delivery.platform
|
|
164
|
-
|
|
165
|
-
pushToken: delivery.pushToken,
|
|
166
|
-
eventId: delivery.event.id,
|
|
167
|
-
gatewayId: getOrCreateGatewayIdentity().id,
|
|
168
|
-
target: delivery.event.target,
|
|
169
|
-
title: preview.title,
|
|
170
|
-
body: preview.body
|
|
171
|
-
}, fetchImpl);
|
|
172
|
-
markNotificationDeliveryAccepted(delivery.event.id, delivery.deviceId, ticket, Number.MAX_SAFE_INTEGER);
|
|
156
|
+
if (delivery.platform !== "harmonyos") {
|
|
157
|
+
markNotificationDeliveryDead(delivery.event.id, delivery.deviceId, "Native push provider is not configured");
|
|
173
158
|
return;
|
|
174
159
|
}
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
title: preview.title,
|
|
185
|
-
body: preview.body,
|
|
186
|
-
sound: delivery.event.priority === "high" ? "default" : void 0,
|
|
187
|
-
priority: delivery.event.priority,
|
|
188
|
-
data: {
|
|
189
|
-
eventId: delivery.event.id,
|
|
190
|
-
target: delivery.event.target,
|
|
191
|
-
...delivery.event.payload
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
});
|
|
195
|
-
if (!response.ok) throw new Error(`Expo push request failed (${response.status})`);
|
|
196
|
-
const body = await response.json();
|
|
197
|
-
const result = Array.isArray(body.data) ? body.data[0] : body.data;
|
|
198
|
-
if (result?.status !== "ok" || !result.id) {
|
|
199
|
-
const error = expoError(result ?? {});
|
|
200
|
-
if (result?.details?.error === "DeviceNotRegistered") {
|
|
201
|
-
disableNotificationDeviceForPushToken(delivery.pushToken);
|
|
202
|
-
markNotificationDeliveryDead(delivery.event.id, delivery.deviceId, error);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
throw new Error(error);
|
|
206
|
-
}
|
|
207
|
-
markNotificationDeliveryAccepted(delivery.event.id, delivery.deviceId, result.id, Date.now() + RECEIPT_DELAY_MS);
|
|
160
|
+
const ticket = await (this.options.sendHarmony ?? sendHarmonyPush)({
|
|
161
|
+
pushToken: delivery.pushToken,
|
|
162
|
+
eventId: delivery.event.id,
|
|
163
|
+
gatewayId: getOrCreateGatewayIdentity().id,
|
|
164
|
+
target: delivery.event.target,
|
|
165
|
+
title: preview.title,
|
|
166
|
+
body: preview.body
|
|
167
|
+
}, fetchImpl);
|
|
168
|
+
markNotificationDeliveryAccepted(delivery.event.id, delivery.deviceId, ticket, Number.MAX_SAFE_INTEGER);
|
|
208
169
|
} catch (err) {
|
|
209
170
|
this.retryOrFail(delivery, err);
|
|
210
171
|
}
|
|
211
172
|
}
|
|
212
|
-
async checkReceipts() {
|
|
213
|
-
const withTickets = listDueNotificationDeliveries("accepted").filter((delivery) => delivery.platform !== "harmonyos" && delivery.providerTicketId);
|
|
214
|
-
if (withTickets.length === 0) return;
|
|
215
|
-
const fetchImpl = this.options.fetch ?? fetch;
|
|
216
|
-
try {
|
|
217
|
-
const response = await fetchImpl(EXPO_RECEIPTS_URL, {
|
|
218
|
-
method: "POST",
|
|
219
|
-
headers: {
|
|
220
|
-
"content-type": "application/json",
|
|
221
|
-
accept: "application/json"
|
|
222
|
-
},
|
|
223
|
-
signal: AbortSignal.timeout(1e4),
|
|
224
|
-
body: JSON.stringify({ ids: withTickets.map((delivery) => delivery.providerTicketId) })
|
|
225
|
-
});
|
|
226
|
-
if (!response.ok) throw new Error(`Expo receipt request failed (${response.status})`);
|
|
227
|
-
const body = await response.json();
|
|
228
|
-
for (const delivery of withTickets) {
|
|
229
|
-
const result = body.data?.[delivery.providerTicketId];
|
|
230
|
-
if (!result) this.retryOrFail(delivery, /* @__PURE__ */ new Error("Expo receipt is not ready"), "accepted");
|
|
231
|
-
else if (result.status === "ok") markNotificationDeliveryDelivered(delivery.event.id, delivery.deviceId);
|
|
232
|
-
else {
|
|
233
|
-
const error = expoError(result);
|
|
234
|
-
if (result.details?.error === "DeviceNotRegistered") disableNotificationDeviceForPushToken(delivery.pushToken);
|
|
235
|
-
markNotificationDeliveryDead(delivery.event.id, delivery.deviceId, error);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
} catch (err) {
|
|
239
|
-
for (const delivery of withTickets) this.retryOrFail(delivery, err, "accepted");
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
173
|
retryOrFail(delivery, error, status = "pending") {
|
|
243
174
|
const message = error instanceof Error ? error.message : String(error);
|
|
244
175
|
if (delivery.attempts + 1 >= MAX_DELIVERY_ATTEMPTS) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_sync_provider_auth, resolveProviderApiKeyForAgentSync } from "../../auth/sync-provider-auth.js";
|
|
2
1
|
import { getApiKeyFromEnv, init_env_keys } from "../env-keys.js";
|
|
2
|
+
import { init_sync_provider_auth, resolveProviderApiKeyForAgentSync } from "../../auth/sync-provider-auth.js";
|
|
3
3
|
import { getDefaultAuthProfileStore } from "./auth-profile-store.js";
|
|
4
4
|
//#region src/providers/auth-runtime/resolve-auth.ts
|
|
5
5
|
init_env_keys();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __esmMin, __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
3
|
-
import { getModelOAuthProviderIds, init_registry } from "../auth/oauth/registry.js";
|
|
4
|
-
import { hasProviderAuthOnDiskSync, init_sync_provider_auth } from "../auth/sync-provider-auth.js";
|
|
5
3
|
import { PROVIDER_ENV_MAP, getApiKeyFromEnv, init_env_keys } from "./env-keys.js";
|
|
6
4
|
import { init_model_ref, splitProviderModelRef } from "./model-ref.js";
|
|
7
5
|
import { ModelRegistry, getModelRegistry, init_model_registry, prewarmModelRegistry, resetModelRegistry } from "./model-registry.js";
|
|
6
|
+
import { getModelOAuthProviderIds, init_registry } from "../auth/oauth/registry.js";
|
|
8
7
|
import { CredentialResolver, hasCredentials, init_credentials } from "../auth/credentials.js";
|
|
8
|
+
import { hasProviderAuthOnDiskSync, init_sync_provider_auth } from "../auth/sync-provider-auth.js";
|
|
9
9
|
import { EXTENSION_PROVIDER_BASE_URL, init_constants } from "./constants.js";
|
|
10
10
|
import { applyOfficialModelMetadataCorrections, getSupplementalModels, init_model_supplements } from "./model-supplements.js";
|
|
11
11
|
import { getProviderRegistry, init_plugin_registry } from "./plugin-registry.js";
|
|
@@ -2,8 +2,8 @@ import { AgentCatalogRepository, init_repository } from "../agent-catalog/reposi
|
|
|
2
2
|
import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "../computer/model-policy.js";
|
|
3
3
|
import { getModelCatalogStore, init_model_catalog_store } from "./model-catalog-store.js";
|
|
4
4
|
import { getModelRegistry, init_model_registry } from "./model-registry.js";
|
|
5
|
-
import { parseImageGenerationModelRef } from "../agent/image/generation/model-ref.js";
|
|
6
5
|
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
6
|
+
import { parseImageGenerationModelRef } from "../agent/image/generation/model-ref.js";
|
|
7
7
|
//#region src/providers/model-reference-auditor.ts
|
|
8
8
|
init_repository();
|
|
9
9
|
init_model_policy();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { getOAuthProviderDefinition, init_registry } from "../auth/oauth/registry.js";
|
|
3
2
|
import { getModelCatalogStore, init_model_catalog_store } from "./model-catalog-store.js";
|
|
3
|
+
import { getOAuthProviderDefinition, init_registry } from "../auth/oauth/registry.js";
|
|
4
4
|
import { XOPC_CLOUD_PROVIDER_ID, init_xopc_cloud_config, resolveXopcModelRouterUrl } from "./xopc-cloud-config.js";
|
|
5
5
|
//#region src/providers/register-runtime-providers.ts
|
|
6
6
|
function registerRuntimeProvider(modelRuntime, source) {
|
|
@@ -2,9 +2,9 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { isTailscaleInstalled } from "../infra/tailscale.js";
|
|
4
4
|
import { resolveGatewayBindMode } from "../config/gateway-bind.js";
|
|
5
|
-
import { getTunnelService } from "../tunnel/tunnel-service.js";
|
|
6
5
|
import { collectExposureConflicts } from "./exposure-guards.js";
|
|
7
6
|
import { getTailscaleExposureState, maybeStartTailscaleFromConfig, stopTailscaleExposure } from "../gateway/tailscale-lifecycle.js";
|
|
7
|
+
import { getTunnelService } from "../tunnel/tunnel-service.js";
|
|
8
8
|
import { getTunnelConsentState } from "../tunnel/consent.js";
|
|
9
9
|
import { maybeAutoStartTunnelFromConfig } from "../tunnel/gateway-lifecycle.js";
|
|
10
10
|
//#region src/remote-access/exposure-manager.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createSqliteTranscriptRuntime } from "../../agent/embedded/transcript-runtime.js";
|
|
2
|
-
import { createDelegateChildHandle } from "../../agent/child-agent-factory.js";
|
|
3
|
-
import { createDelegationParentPolicy } from "../../agent/tools/delegation-parent-policy.js";
|
|
4
|
-
import { SessionStore } from "../../session/store.js";
|
|
5
1
|
import { MessageBus } from "../../infra/bus/queue.js";
|
|
6
2
|
import "../../infra/bus/index.js";
|
|
3
|
+
import { SessionStore } from "../../session/store.js";
|
|
4
|
+
import { createSqliteTranscriptRuntime } from "../../agent/embedded/transcript-runtime.js";
|
|
7
5
|
import { createStructuredOutputTool } from "../../agent/workflow/structured-output-tool.js";
|
|
6
|
+
import { createDelegateChildHandle } from "../../agent/child-agent-factory.js";
|
|
7
|
+
import { createDelegationParentPolicy } from "../../agent/tools/delegation-parent-policy.js";
|
|
8
8
|
import { createScopedWorkspaceTools } from "../../agent/tools/scoped-workspace-tools.js";
|
|
9
9
|
import { taskFollowUpTemplate } from "./contracts.js";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { ExecutionEnvironmentStore } from "../../execution-environments/store.js";
|
|
3
3
|
import { ProjectStore } from "../../projects/project-store.js";
|
|
4
|
-
import { readWorkspaceFile } from "../../agent/sandbox/fileAccess.js";
|
|
5
4
|
import { LocalWorktreeManager } from "../../execution-environments/local-worktree-manager.js";
|
|
5
|
+
import { readWorkspaceFile } from "../../agent/sandbox/fileAccess.js";
|
|
6
6
|
import { workspaceFingerprint } from "./workspaceFingerprint.js";
|
|
7
7
|
import { dirname, join, resolve } from "node:path";
|
|
8
8
|
import { existsSync, lstatSync, mkdirSync, readdirSync, realpathSync } from "node:fs";
|
|
@@ -5,14 +5,14 @@ import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-ru
|
|
|
5
5
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
6
6
|
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
7
7
|
import { init_providers, isProviderConfiguredSync, resolveModel } from "../../providers/index.js";
|
|
8
|
+
import { runProcess } from "../../process/run-process.js";
|
|
8
9
|
import { ExecutionEnvironmentStore } from "../../execution-environments/store.js";
|
|
9
10
|
import { ProjectStore } from "../../projects/project-store.js";
|
|
10
|
-
import {
|
|
11
|
-
import { removeCommandContainer } from "../../agent/commands/command-isolation.js";
|
|
12
|
-
import { inspectGitRepository } from "../../execution-environments/git.js";
|
|
11
|
+
import { resolveModelSelector } from "../../config/agent-model-intents.js";
|
|
13
12
|
import { TaskContextRepository } from "../../tasks/task-context-repository.js";
|
|
14
13
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
15
|
-
import {
|
|
14
|
+
import { inspectGitRepository } from "../../execution-environments/git.js";
|
|
15
|
+
import { removeCommandContainer } from "../../agent/commands/command-isolation.js";
|
|
16
16
|
import { sceneContentHash } from "../contracts.js";
|
|
17
17
|
import { SceneConflictError, SceneNotFoundError, SceneRepository } from "../repository.js";
|
|
18
18
|
import { SceneSetupError } from "../service.js";
|
|
@@ -3,6 +3,11 @@ import { init_redact, redactSensitiveOutput } from "../utils/logger/redact.js";
|
|
|
3
3
|
init_redact();
|
|
4
4
|
function toolCategory(name, args) {
|
|
5
5
|
const key = name.split("__").pop()?.toLowerCase().replace(/-/g, "_") ?? "";
|
|
6
|
+
if (key === "run" && args && typeof args === "object" && !Array.isArray(args)) {
|
|
7
|
+
const input = args;
|
|
8
|
+
if (Array.isArray(input.search_query)) return "search";
|
|
9
|
+
if (Array.isArray(input.open)) return "fetch";
|
|
10
|
+
}
|
|
6
11
|
if (key === "skill_view" || key === "tool_manual") return key;
|
|
7
12
|
if (key === "xopc_use") {
|
|
8
13
|
let input = args;
|
|
@@ -54,6 +59,17 @@ function publicInputPreview(name, args) {
|
|
|
54
59
|
if (!args || typeof args !== "object" || Array.isArray(args)) return void 0;
|
|
55
60
|
const input = args;
|
|
56
61
|
const category = toolCategory(name, args);
|
|
62
|
+
if (category === "search" && Array.isArray(input.search_query)) {
|
|
63
|
+
const first = input.search_query[0];
|
|
64
|
+
if (first && typeof first === "object" && !Array.isArray(first) && typeof first.q === "string") return redactSensitiveOutput(first.q.trim().slice(0, 160));
|
|
65
|
+
}
|
|
66
|
+
if (category === "fetch" && Array.isArray(input.open)) {
|
|
67
|
+
const first = input.open[0];
|
|
68
|
+
if (first && typeof first === "object" && !Array.isArray(first) && typeof first.ref_id === "string") try {
|
|
69
|
+
const url = new URL(first.ref_id);
|
|
70
|
+
return `${url.origin}${url.pathname}`.slice(0, 160);
|
|
71
|
+
} catch {}
|
|
72
|
+
}
|
|
57
73
|
const keys = category === "search" ? ["query"] : category === "read" ? ["path", "file_path"] : category === "fetch" ? ["url"] : [];
|
|
58
74
|
for (const key of keys) {
|
|
59
75
|
const value = input[key];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { buildSessionContextForLlm, init_session_context_for_llm, isTranscriptContextEntry, mergeLlmMessagesPreservingContextRows, transcriptRowsFromJsonArray } from "./session-context-for-llm.js";
|
|
2
2
|
import { SessionStatus, init_types } from "./types.js";
|
|
3
3
|
import { effectiveWorkspacePathForSession, normalizeWorkingDirectoryInput, projectWorkspacePath } from "./session-workspace.js";
|
|
4
|
-
import { flattenMessageContent, messagesToClientHistory } from "./client-history.js";
|
|
5
|
-
import { emitSessionTranscriptUpdate, onSessionTranscriptUpdate } from "./transcript-events.js";
|
|
6
4
|
import { fallbackTitleFromMessages, generateSessionTitleFromMessages, getSessionTitleSource, isWebchatConversationId, maybeRefineSessionTitleWithLlm, maybeSetProvisionalSessionTitle, provisionalTitleFromUserText, sanitizeGeneratedSessionTitle, sanitizeSessionTitle, shouldAutoTitleConversationId, shouldRefineSessionTitleWithLlm } from "./session-title.js";
|
|
5
|
+
import { flattenMessageContent, messagesToClientHistory } from "./client-history.js";
|
|
7
6
|
import { SessionStore } from "./store.js";
|
|
8
7
|
import { applySessionPatchToMetadata } from "./patch-metadata.js";
|
|
9
8
|
import { SessionIndex } from "./manager.js";
|
|
9
|
+
import { emitSessionTranscriptUpdate, onSessionTranscriptUpdate } from "./transcript-events.js";
|
|
10
10
|
import { SessionConfigStore, resolveReasoningLevel, resolveThinkingLevel, resolveVerboseLevel } from "./config-store.js";
|
|
11
11
|
import { DEFAULT_ACTIVITY_DETAIL_LEVEL, resolveConfiguredActivityDetailDefault, resolveEffectiveReasoningLevel, resolveEffectiveThinkingLevel } from "./thinking-resolve.js";
|
|
12
12
|
import { DEFAULT_IDLE_MINUTES, DEFAULT_RESET_AT_HOUR, DEFAULT_RESET_MODE, evaluateSessionFreshness, resolveDailyResetAtMs, resolveSessionResetPolicy } from "./reset-policy.js";
|
|
@@ -5,8 +5,8 @@ import { isCronConversationId } from "../routing/agent-session-key.js";
|
|
|
5
5
|
import { init_session_key } from "../routing/session-key.js";
|
|
6
6
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
7
7
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
8
|
-
import { readAgentMessageContent } from "../agent/memory/agent-message-access.js";
|
|
9
8
|
import { stripRuntimeContextFromUserMessage } from "./user-message-display.js";
|
|
9
|
+
import { readAgentMessageContent } from "../agent/memory/agent-message-access.js";
|
|
10
10
|
//#region src/session/session-title.ts
|
|
11
11
|
init_session_key();
|
|
12
12
|
init_providers();
|
|
@@ -13,16 +13,16 @@ import { appendCompactionBoundaryIfUnchanged, appendTranscriptEntry, listCompact
|
|
|
13
13
|
import { getSessionConfig, setSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
14
14
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
15
15
|
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
|
|
16
|
-
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
17
16
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
18
|
-
import {
|
|
17
|
+
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
18
|
+
import { readPostCompactionContext } from "../agent/reply/post-compaction-context.js";
|
|
19
19
|
import { SessionCompactor } from "../agent/memory/compaction.js";
|
|
20
20
|
import { resolveCompactionPolicy } from "../agent/memory/compaction-policy.js";
|
|
21
|
-
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
22
|
-
import { readPostCompactionContext } from "../agent/reply/post-compaction-context.js";
|
|
23
21
|
import { promoteCompactionLedger } from "../agent/memory/compaction-promotion.js";
|
|
22
|
+
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
24
23
|
import { SlidingWindow } from "../agent/memory/window.js";
|
|
25
24
|
import { isAppendOnlyLlmTranscriptMessage } from "./transcript-stats.js";
|
|
25
|
+
import { transcriptRowsToClientHistory } from "./client-history.js";
|
|
26
26
|
import { compactHistory } from "./compact-history.js";
|
|
27
27
|
import { backfillStructuredTurnOutcomes } from "./turn-outcome-projector.js";
|
|
28
28
|
import { computeTranscriptUserRoundDeleteRange } from "./user-round-delete.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveReasoningLevel, resolveThinkingLevel } from "./config-store.js";
|
|
2
1
|
import { normalizeThinkLevel } from "../agent/transcript/thinking-types.js";
|
|
2
|
+
import { resolveReasoningLevel, resolveThinkingLevel } from "./config-store.js";
|
|
3
3
|
//#region src/session/thinking-resolve.ts
|
|
4
4
|
const FALLBACK = "medium";
|
|
5
5
|
/**
|
|
@@ -5,8 +5,8 @@ import { init_connection, requireXopcDatabase } from "../storage/sqlite/connecti
|
|
|
5
5
|
import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
6
6
|
import { init_paths } from "../config/paths.js";
|
|
7
7
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
8
|
-
import { SHARE_CONFIG_DEFAULTS } from "./share-types.js";
|
|
9
8
|
import { isPathUnderWorkspace } from "../gateway/workspace-editor-path.js";
|
|
9
|
+
import { SHARE_CONFIG_DEFAULTS } from "./share-types.js";
|
|
10
10
|
import { logShareAudit } from "./share-audit.js";
|
|
11
11
|
import { join, relative, resolve } from "node:path";
|
|
12
12
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -2,9 +2,9 @@ import { resolveStateDir } from "../config/paths-state.js";
|
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { init_paths } from "../config/paths.js";
|
|
5
|
+
import { loadPlaywrightCoreModule } from "../browser/providers/playwright-doctor.js";
|
|
5
6
|
import { getShareStore } from "./share-store.js";
|
|
6
7
|
import { getSiteShareStore } from "./site-share-store.js";
|
|
7
|
-
import { loadPlaywrightCoreModule } from "../browser/providers/playwright-doctor.js";
|
|
8
8
|
import { join } from "node:path";
|
|
9
9
|
import { mkdir, readFile, stat, unlink, writeFile } from "node:fs/promises";
|
|
10
10
|
//#region src/share/share-thumbnail.ts
|
|
@@ -2,8 +2,8 @@ import { isPathUnderWorkspace } from "../gateway/workspace-editor-path.js";
|
|
|
2
2
|
import { relative, resolve } from "node:path";
|
|
3
3
|
import { createReadStream } from "node:fs";
|
|
4
4
|
import { lstat, readdir, realpath, stat } from "node:fs/promises";
|
|
5
|
-
import { pipeline } from "node:stream/promises";
|
|
6
5
|
import { Readable, Transform } from "node:stream";
|
|
6
|
+
import { pipeline } from "node:stream/promises";
|
|
7
7
|
import { crc32, createDeflateRaw } from "node:zlib";
|
|
8
8
|
//#region src/share/share-zip.ts
|
|
9
9
|
const SIG_LOCAL = 67324752;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { request } from "undici";
|
|
4
3
|
import { Readable } from "node:stream";
|
|
5
4
|
import * as ws from "ws";
|
|
5
|
+
import { request } from "undici";
|
|
6
6
|
//#region src/share/site-proxy.ts
|
|
7
7
|
init_logger();
|
|
8
8
|
const wsAny = ws;
|
|
@@ -3,8 +3,8 @@ import { init_logger } from "../utils/logger.js";
|
|
|
3
3
|
import { init_connection, requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
4
4
|
import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
5
5
|
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
6
|
-
import { SITE_SHARE_CONFIG_DEFAULTS } from "./site-share-types.js";
|
|
7
6
|
import { isPathUnderWorkspace } from "../gateway/workspace-editor-path.js";
|
|
7
|
+
import { SITE_SHARE_CONFIG_DEFAULTS } from "./site-share-types.js";
|
|
8
8
|
import { relative, resolve } from "node:path";
|
|
9
9
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
10
10
|
import { lstat, readdir, realpath, stat } from "node:fs/promises";
|
|
@@ -7,7 +7,7 @@ import { init_node_sqlite, requireNodeSqlite } from "../../infra/node-sqlite.js"
|
|
|
7
7
|
import { ensureXopcDatabaseSchema, init_schema } from "./schema.js";
|
|
8
8
|
import { init_unhandled_rejections, installSqliteTransientRejectionHandler } from "../../infra/unhandled-rejections.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fsSync from "node:fs";
|
|
11
11
|
import childProcess from "node:child_process";
|
|
12
12
|
//#region src/storage/sqlite/connection.ts
|
|
13
13
|
function normalizeNonNegativeInteger(value, label) {
|
|
@@ -17,7 +17,7 @@ function normalizeNonNegativeInteger(value, label) {
|
|
|
17
17
|
function findExistingVolumePath(targetPath) {
|
|
18
18
|
let current = path.resolve(targetPath);
|
|
19
19
|
while (true) try {
|
|
20
|
-
return
|
|
20
|
+
return fsSync.statSync(current).isDirectory() ? current : path.dirname(current);
|
|
21
21
|
} catch {
|
|
22
22
|
const parent = path.dirname(current);
|
|
23
23
|
if (parent === current) return null;
|
|
@@ -64,7 +64,7 @@ function parseMountCommandEntries(contents) {
|
|
|
64
64
|
}
|
|
65
65
|
function readMountEntries() {
|
|
66
66
|
try {
|
|
67
|
-
return parseProcMountInfoEntries(
|
|
67
|
+
return parseProcMountInfoEntries(fsSync.readFileSync(PROC_MOUNTINFO_PATH, "utf8"));
|
|
68
68
|
} catch {}
|
|
69
69
|
try {
|
|
70
70
|
return parseMountCommandEntries(String(childProcess.execFileSync("mount", [])));
|
|
@@ -91,7 +91,7 @@ function isNetworkMountEntryPath(targetPath) {
|
|
|
91
91
|
return mountEntry ? isNetworkMountType(mountEntry.fsType) : false;
|
|
92
92
|
}
|
|
93
93
|
function isNetworkBackedPath(targetPath) {
|
|
94
|
-
if (typeof
|
|
94
|
+
if (typeof fsSync.statfsSync !== "function") return isNetworkMountEntryPath(targetPath);
|
|
95
95
|
const checkedPath = findExistingVolumePath(targetPath);
|
|
96
96
|
if (!checkedPath) return false;
|
|
97
97
|
try {
|
|
@@ -100,7 +100,7 @@ function isNetworkBackedPath(targetPath) {
|
|
|
100
100
|
4283649346,
|
|
101
101
|
4266872130,
|
|
102
102
|
20859
|
|
103
|
-
].includes(
|
|
103
|
+
].includes(fsSync.statfsSync(checkedPath).type >>> 0)) return true;
|
|
104
104
|
} catch {
|
|
105
105
|
return isNetworkMountEntryPath(checkedPath);
|
|
106
106
|
}
|
|
@@ -145,13 +145,13 @@ function ensureDatabasePermissions(pathname) {
|
|
|
145
145
|
if (pathname === ":memory:") return;
|
|
146
146
|
const dir = pathname.slice(0, Math.max(pathname.lastIndexOf("/"), pathname.lastIndexOf("\\")));
|
|
147
147
|
if (dir) {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
149
|
+
fsSync.chmodSync(dir, DB_DIR_MODE);
|
|
150
150
|
}
|
|
151
151
|
for (const suffix of DB_SIDECAR_SUFFIXES) {
|
|
152
152
|
const candidate = `${pathname}${suffix}`;
|
|
153
|
-
if (!
|
|
154
|
-
|
|
153
|
+
if (!fsSync.existsSync(candidate)) continue;
|
|
154
|
+
fsSync.chmodSync(candidate, DB_FILE_MODE);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
function openDatabaseAtPath(pathname) {
|
|
@@ -196,7 +196,7 @@ function listNoteRecords(query = {}) {
|
|
|
196
196
|
)`);
|
|
197
197
|
if (query.agentEdited) conditions.push(`json_extract(payload_json, '$.lastEditTrigger') = 'ai_edit'`);
|
|
198
198
|
const where = conditions.length > 0 ? `WHERE ${conditions.join(" AND ")}` : "";
|
|
199
|
-
const
|
|
199
|
+
const select = `SELECT note_id, title, kind, status, payload_json, created_at, updated_at,
|
|
200
200
|
pinned, tags_json, snippet, cover_attachment_id, voice_attachment_id,
|
|
201
201
|
voice_duration_sec, attachment_names_json, group_id, last_opened_at,
|
|
202
202
|
task_done, task_due_at, heading_count, task_count, unchecked_task_count, link_count,
|
|
@@ -208,7 +208,24 @@ function listNoteRecords(query = {}) {
|
|
|
208
208
|
AND l.to_kind = 'project' AND l.relation = 'belongs_to'
|
|
209
209
|
ORDER BY p.name, p.project_id
|
|
210
210
|
)) AS projects_json
|
|
211
|
-
FROM notes ${where}
|
|
211
|
+
FROM notes ${where}`;
|
|
212
|
+
const offset = query.offset || 0;
|
|
213
|
+
const limit = Math.min(query.limit || 50, 200);
|
|
214
|
+
if (!query.tag && !query.search?.trim()) {
|
|
215
|
+
const sortColumn = query.sortBy === "updatedAt" ? "updated_at" : query.sortBy === "lastOpenedAt" ? "last_opened_at" : "created_at";
|
|
216
|
+
const sortExpression = sortColumn === "last_opened_at" ? "COALESCE(last_opened_at, 0)" : sortColumn;
|
|
217
|
+
const sortDirection = query.sortOrder === "asc" ? "ASC" : "DESC";
|
|
218
|
+
const total = db.prepare(`SELECT COUNT(*) AS total FROM notes ${where}`).get(...params).total;
|
|
219
|
+
const items = db.prepare(`${select} ORDER BY ${sortExpression} ${sortDirection}, note_id LIMIT ? OFFSET ?`).all(...params, limit, offset).map(rowToIndexEntry);
|
|
220
|
+
return {
|
|
221
|
+
items,
|
|
222
|
+
total,
|
|
223
|
+
limit,
|
|
224
|
+
offset,
|
|
225
|
+
hasMore: offset + items.length < total
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
const rows = db.prepare(select).all(...params);
|
|
212
229
|
let entries = rows.map(rowToIndexEntry);
|
|
213
230
|
if (query.tag) entries = entries.filter((entry) => entry.tags?.includes(query.tag));
|
|
214
231
|
if (query.search) {
|
|
@@ -228,8 +245,6 @@ function listNoteRecords(query = {}) {
|
|
|
228
245
|
return ((a[sortField] ?? 0) - (b[sortField] ?? 0)) * sortDir;
|
|
229
246
|
});
|
|
230
247
|
const total = entries.length;
|
|
231
|
-
const offset = query.offset || 0;
|
|
232
|
-
const limit = Math.min(query.limit || 50, 200);
|
|
233
248
|
const items = entries.slice(offset, offset + limit);
|
|
234
249
|
return {
|
|
235
250
|
items,
|
|
@@ -4,10 +4,10 @@ import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
5
5
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
6
6
|
import { defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
|
-
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
8
|
-
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
9
7
|
import { TaskContextRepository } from "../task-context-repository.js";
|
|
8
|
+
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
10
9
|
import { TaskDependencyService } from "../task-dependency-service.js";
|
|
10
|
+
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
11
11
|
import { TaskValueMetricsService } from "../task-value-metrics-service.js";
|
|
12
12
|
//#region src/tasks/capabilities/read.ts
|
|
13
13
|
init_src();
|
|
@@ -4,8 +4,8 @@ import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
5
5
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
6
6
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
|
-
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
8
7
|
import { TaskApplicationService } from "../task-application-service.js";
|
|
8
|
+
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
9
9
|
import { TaskSignalService } from "../task-signal-service.js";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
//#region src/tasks/capabilities/write.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
3
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
4
3
|
import { getExecutionEnvironmentForSession } from "../execution-environments/subject.js";
|
|
4
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
5
5
|
//#region src/tasks/execution-context.ts
|
|
6
6
|
init_sqlite();
|
|
7
7
|
const ORIGINS = new Set([
|
|
@@ -2,11 +2,11 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
2
2
|
import { isHomeAttentionAcknowledged } from "../storage/sqlite/home-attention-repository.js";
|
|
3
3
|
import { listConnectorApprovals } from "../storage/sqlite/connector-repository.js";
|
|
4
4
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
5
|
-
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
6
5
|
import "../automations/domain/defaults.js";
|
|
7
|
-
import { AttentionGovernor } from "./attention-governor.js";
|
|
8
|
-
import { listGatewayAgents } from "../gateway/agents-admin.js";
|
|
9
6
|
import "../automations/index.js";
|
|
7
|
+
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
8
|
+
import { listGatewayAgents } from "../gateway/agents-admin.js";
|
|
9
|
+
import { AttentionGovernor } from "./attention-governor.js";
|
|
10
10
|
//#region src/tasks/home-query-service.ts
|
|
11
11
|
init_sqlite();
|
|
12
12
|
init_task_repository();
|
package/dist/src/tasks/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { enqueueTaskAttentionRequiredEvent, enqueueTaskChanged, enqueueTaskChangedEvent, init_task_change_events } from "./task-change-events.js";
|
|
2
2
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
3
3
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
4
|
-
import { TaskConversationConflictError, TaskConversationRepository } from "./task-conversation-repository.js";
|
|
5
|
-
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
6
4
|
import { TaskContextRepository } from "./task-context-repository.js";
|
|
5
|
+
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
7
6
|
import { TaskDependencyError, TaskDependencyService } from "./task-dependency-service.js";
|
|
7
|
+
import { TaskConversationConflictError, TaskConversationRepository } from "./task-conversation-repository.js";
|
|
8
|
+
import { TaskApplicationService } from "./task-application-service.js";
|
|
9
|
+
import { assembleTaskContext, buildDelegatedTaskDirective, buildTaskExecutionDirective, getTaskContextManifest, getTaskExecutionBrief } from "./task-context-assembler.js";
|
|
8
10
|
import { TaskValueMetricsService } from "./task-value-metrics-service.js";
|
|
9
11
|
import { TaskDeletionService } from "./task-deletion-service.js";
|
|
10
|
-
import { TaskApplicationService } from "./task-application-service.js";
|
|
11
12
|
import { TaskSignalService } from "./task-signal-service.js";
|
|
12
13
|
import { resolveExecutionContext } from "./execution-context.js";
|
|
13
14
|
import { AttentionGovernor } from "./attention-governor.js";
|
|
@@ -15,7 +16,6 @@ import { HomeQueryService, buildHomeWorkbench, decisionFromTask } from "./home-q
|
|
|
15
16
|
import { TaskWorkflowCoordinator } from "./task-workflow-coordinator.js";
|
|
16
17
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
17
18
|
import { ModelTaskContractPlanner, parseTaskContractResponse } from "./task-contract-planner.js";
|
|
18
|
-
import { assembleTaskContext, buildDelegatedTaskDirective, buildTaskExecutionDirective, getTaskContextManifest, getTaskExecutionBrief } from "./task-context-assembler.js";
|
|
19
19
|
import { TaskRunCoordinator } from "./task-run-coordinator.js";
|
|
20
20
|
import { ProjectOperatingViewService, summarizeProjectOperatingView } from "./project-operating-view-service.js";
|
|
21
21
|
import { TaskHandoffService } from "./task-handoff-service.js";
|
|
@@ -4,11 +4,11 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
4
4
|
import { enqueueTaskAttentionRequiredEvent, enqueueTaskChangedEvent, init_task_change_events } from "./task-change-events.js";
|
|
5
5
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
6
6
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
7
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
8
|
-
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
9
7
|
import { TaskContextRepository } from "./task-context-repository.js";
|
|
8
|
+
import { TaskReadModelProjector } from "./task-read-model-projector.js";
|
|
10
9
|
import { TaskDependencyService } from "./task-dependency-service.js";
|
|
11
10
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
11
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
12
12
|
import { createHash, randomUUID } from "node:crypto";
|
|
13
13
|
//#region src/tasks/task-application-service.ts
|
|
14
14
|
init_src();
|