@xopcai/xopc 0.0.386 → 0.0.388
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/dist/sidepanel.js +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-D-86VOlb.js → agent-avatar-dicebear-44LqtGte.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-SmeUVHY8.js → agent-defaults-settings-panel-2VA4eKPf.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BVT3wXq5.js → agent-plugin-dialog-DRhTOw_O.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-D7rLQFhX.js → agents-BemUH_Yf.js} +3 -3
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CUR7n5iP.js → app-management-settings-panel-CR_cc7rj.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BCotSGep.js → appearance-settings-CYofu-su.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-hk0bo9LT.js → apps-page-CHjWvDjk.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-CqxuUwox.js → automations-page-BIF0skon.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-11_Z69pr.js → automations-workspace-DOwtT4sS.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-eldB84Mj.js → block-editor-C_RD603p.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-D4TaUPYT.js → browser-automations-page-B-Ezk_8l.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-BXRlxeGV.js → browser-settings-page-BSmmTBn4.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-DVj9n65C.js → capabilities-BX1rCiVm.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-BkKgImWi.js → capabilities-CW389yo6.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-CyYlueEd.js → capabilities-page-xZgTYYDn.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-uVEgfvo0.js → capabilities-settings-panel-oqkuOjcR.js} +3 -3
- package/dist/gateway/static/root/assets/{capability-header-actions-BXv0xu56.js → capability-header-actions-Chuhscdb.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-fNb3SOzm.js → channels-Dq2C2k9M.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CnLtparQ.js → chat-terminal-dock-srB_M-aQ.js} +1 -1
- package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-BMYIfy9x.js → chunk-KS7C4IRE--EKdQGRF.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-xM0AnOlP.js → computer-settings-page-Af00Kjc0.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-CdG2WUb6.js → connector-service-page-3W0_7-4L.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-BRd08GH6.js → connectors-page-BZk-Gou5.js} +1 -1
- package/dist/gateway/static/root/assets/constants-DeXt1mV-.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DIBbE-O8.js → date-picker-DBgZBmik.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-DDD8zokD.js → dependency-picker-BDJ406kH.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-KlF390Xn.js → desktop-pet-Do1XPn6U.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-CgqQMKDC.js → desktop-pet-settings-LKeVh6OH.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-BR6isfG2.js → device-pairing-wizard-CvZpnSVw.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-vPQsW05P.js → directory-picker-path-field-BMLHoL6g.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-ZHLPrLbH.js → extension-debug-page-B0wTBCx4.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DJ42KFRN.js → extension-page-vR2r4uUB.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-6IcsyNaV.js → extension-provider-CJZ5EVpQ.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-D7-5v0V4.js → extension-settings-page-1tbWe5xQ.js} +1 -1
- package/dist/gateway/static/root/assets/{fallback-models-DnYn7qOV.js → fallback-models-CW6a1-GK.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-Bwe3JWX-.js → gateway-settings-vQWTUx2c.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-DefTxF3q.js → highlighted-body-KQOG7T2V-BM__yiMn.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-hfWuVtcG.js +2 -0
- package/dist/gateway/static/root/assets/{imports-page-CTdBYZib.js → imports-page-CuR6RSUM.js} +1 -1
- package/dist/gateway/static/root/assets/index-CNH8vwcY.js +260 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CXKp57O_.js → keyboard-shortcuts-settings-DpyqH2cP.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-DzD_OzGY.js → local-app-workbench-page-B4hIoxV8.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-B0E0vttg.js → local-apps-page-S7lUpENM.js} +1 -1
- package/dist/gateway/static/root/assets/local-session-drafts-Be4BGM4Z.js +1 -0
- package/dist/gateway/static/root/assets/{logs-page-eL4fYcMl.js → logs-page-CSlZT1-L.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-DSpjodMC.js → management-settings-BYCL5CwV.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-DHfQAvZQ.js → markdown-view-CBjl-XEc.js} +2 -2
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-i9N5shss.js +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-CsY5tQp5.js → note-detail-panel-CJ5Earr_.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-api-nqN2wKYc.js → notes-api-BlGP533W.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-D09LjNoj.js → notes-page-CPGk8-n1.js} +5 -5
- package/dist/gateway/static/root/assets/{page-context-capture-button-DO-aP3D9.js → page-context-capture-button-C2bSXVbz.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-E8F2aGNB.js → personal-page-BjTt5R3s.js} +1 -1
- package/dist/gateway/static/root/assets/product-open-page-Cn16lm5l.js +1 -0
- package/dist/gateway/static/root/assets/{product-preview-content-B-cz-pIV.js → product-preview-content-CowgeuoG.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-WhefAh8E.js → project-detail-page-CyKx4PyN.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-CyqAs0tO.js → projects-page--_hXxUMC.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BwhRGL6m.js → remote-access-hub-Bq_eqQYf.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-o26dmPNq.js → runtime-tools-settings-panel-BgCATci5.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-D_e19kv_.js → scenes-page-DxE3jRPR.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-DLLdqUC3.js → schema-form-I6pzJJzg.js} +1 -1
- package/dist/gateway/static/root/assets/{send-session-input-2I-nFJcE.js → send-session-input-C293-Hbx.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-Co5ozD0l.js → session-manager-COd9RECl.js} +2 -2
- package/dist/gateway/static/root/assets/{sessions-page-DX6INsiS.js → sessions-page-CQkGFnJM.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Dtlsvsci.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-Bc_zxxRu.js → settings-page-Dy5oQDbx.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-FpF_cPPr.js → setup-status-panel-CrAazq4r.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-C47Xgzta.js → share-link-dialog-BKGI8Kr0.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-BOCcPBqQ.js → share-preview-page-BF2WaO43.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-CInxjxgJ.js → shares-settings-BNMhs-Vd.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-Bjd8WAA4.js → skill-api-RIjxQs-Y.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-8CKS3Oo2.js → skills-page-XVOxILQn.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-BgQdsrNw.js → system-settings-panel-C8aLy8T_.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BnG5ehZ6.js → task-detail-page-o1O2IDVP.js} +2 -2
- package/dist/gateway/static/root/assets/{task-expandable-content-BCuc70Vc.js → task-expandable-content-C9ohICpw.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-CY7MoDGf.js → tunnel-api-JkDu1wiC.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-s8Sv_PIG.js → usage-page-B8K6Y4ro.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-D0S2iZF4.js → use-composer-attachments-rgW7h4sD.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-BElqELib.js → use-file-preview-expanded-DSKIxfz9.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-CyWrEtHY.js → user-model-page-C1QX47VR.js} +2 -2
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DmZXLs1v.js → work-discovery-overlay-BshsEDRO.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-BdLOzHm4.js → workflow-run-setup-panel-CRG3paWy.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-Cx3I3AV5.js → workflows-page-c-AoSVzm.js} +3 -3
- package/dist/gateway/static/root/assets/{workspace-api-Du7-xJ0q.js → workspace-api-JWHOFos6.js} +2 -2
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-D8B136vW.js → xopc-cloud-account-card-PDSIicr1.js} +1 -1
- package/dist/gateway/static/root/index.html +15 -15
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/index.js +2 -0
- package/dist/packages/gateway-contract/src/result-reference.js +25 -0
- package/dist/packages/gateway-contract/src/session-input-command.js +2 -1
- package/dist/packages/gateway-contract/src/task-research-result.js +1 -0
- package/dist/packages/gateway-contract/src/task-result-delivery.js +21 -0
- package/dist/packages/gateway-contract/src/turn-outcome.js +1 -0
- package/dist/src/agent/agent-manager.js +16 -16
- 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 +9 -9
- package/dist/src/agent/child-agent-factory.js +1 -1
- 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 +1 -1
- 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/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +5 -5
- package/dist/src/agent/embedded/run-turn.js +13 -13
- package/dist/src/agent/embedded/session-runner.js +3 -3
- package/dist/src/agent/embedded/session-tool-result-guard.js +2 -2
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.js +13 -2
- package/dist/src/agent/external-tools/cliProvider.js +4 -4
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +4 -4
- package/dist/src/agent/external-tools/gateway-tools.js +3 -3
- package/dist/src/agent/image/generation/openai-images-provider.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/inbound/attachment-pipeline.js +4 -4
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/memory/context-budget.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/orchestration/llm-turn-retry.js +1 -1
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.d.ts +2 -0
- package/dist/src/agent/service/direct-turn-helpers.js +8 -4
- package/dist/src/agent/service/process-direct-one-shot.js +4 -1
- package/dist/src/agent/service/process-direct-streaming.js +7 -6
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +21 -21
- package/dist/src/agent/session/session-config-service.js +3 -3
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +2 -2
- 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/source-context/index.js +2 -2
- package/dist/src/agent/source-context/result-context.d.ts +2 -0
- package/dist/src/agent/source-context/result-context.js +32 -0
- package/dist/src/agent/source-context/types.d.ts +2 -2
- package/dist/src/agent/source-context/types.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +7 -7
- 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/exec-command.js +47 -2
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +35 -28
- 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/personal-attention-tool.js +2 -2
- package/dist/src/agent/tools/personal-performance.d.ts +2 -0
- package/dist/src/agent/tools/personal-performance.js +82 -0
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +3 -3
- package/dist/src/agent/tools/personal-result-tool.d.ts +2 -0
- package/dist/src/agent/tools/personal-result-tool.js +106 -0
- package/dist/src/agent/tools/personal-task-tool.d.ts +11 -1
- package/dist/src/agent/tools/personal-task-tool.js +110 -6
- 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 +21 -2
- 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/task-collaboration-tool.d.ts +9 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +122 -3
- package/dist/src/agent/tools/task-evidence.d.ts +3 -0
- package/dist/src/agent/tools/task-evidence.js +71 -0
- package/dist/src/agent/tools/task-result-tool.js +24 -4
- package/dist/src/agent/tools/tool-media.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 +26 -5
- package/dist/src/agent/transcript/index.js +2 -2
- package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/oauth/xopc-cloud.js +2 -2
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/capabilities/store-connector.js +2 -2
- 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 +4 -4
- 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/context.js +2 -2
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +7 -7
- 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/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- 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 +2 -2
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/mcp.js +1 -1
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.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 +6 -6
- 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 +1 -1
- package/dist/src/config/index.js +5 -5
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.js +5 -5
- 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-ingestion.js +4 -4
- package/dist/src/connectors/connected-source-understanding.js +4 -4
- package/dist/src/connectors/connection-recovery-service.js +5 -5
- package/dist/src/connectors/content-enrichment.js +1 -1
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/learning-coordinator.js +1 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/endpoint-tools/index.js +1 -1
- package/dist/src/endpoint-tools/runtime.js +2 -2
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/auth.js +1 -1
- package/dist/src/extensions/agent-plugins/credentials.js +1 -1
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- 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/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/agents-admin.js +1 -1
- 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.js +4 -4
- package/dist/src/gateway/hono/routes/agent-stream.js +1 -1
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.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/config-patch/misc.js +4 -4
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +2 -2
- package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
- 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/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +3 -3
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
- package/dist/src/gateway/hono/routes/sessions.js +3 -3
- package/dist/src/gateway/hono/routes/shares.js +2 -2
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- 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 +7 -7
- package/dist/src/gateway/hono/routes/voice.js +7 -7
- package/dist/src/gateway/hono/routes/workflows.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 +2 -2
- 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/agent-runner.js +3 -3
- package/dist/src/gateway/service/config-coordinator.js +2 -2
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +24 -5
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service/session-input-coordinator.js +2 -2
- package/dist/src/gateway/service.js +72 -41
- package/dist/src/gateway/session-context-summary.js +4 -4
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/compatibility.js +1 -1
- package/dist/src/imports/inventory.js +3 -3
- package/dist/src/imports/productImport.js +2 -2
- package/dist/src/imports/runtime.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 +9 -9
- package/dist/src/knowledge/connected-knowledge-pipeline.js +2 -2
- package/dist/src/knowledge/index.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media/session-references.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/memory-learning/source-learning.js +4 -4
- package/dist/src/memory-learning/task-receipts.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 +3 -3
- package/dist/src/personal-agent/capability-service.js +2 -2
- package/dist/src/personal-agent/communication.js +1 -0
- package/dist/src/personal-agent/performance.d.ts +83 -0
- package/dist/src/personal-agent/performance.js +65 -0
- package/dist/src/personal-agent/policy.d.ts +1 -1
- package/dist/src/personal-agent/policy.js +1 -0
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +7 -7
- package/dist/src/personal-agent/prompt-context.js +9 -7
- package/dist/src/personal-agent/prompts.js +7 -4
- package/dist/src/personal-agent/reply-composer.js +86 -15
- package/dist/src/personal-agent/request-delivery.js +5 -3
- package/dist/src/personal-agent/request-service.js +5 -5
- package/dist/src/personal-agent/result-extraction.d.ts +42 -0
- package/dist/src/personal-agent/result-extraction.js +209 -0
- package/dist/src/personal-agent/result-read-continuations.d.ts +13 -0
- package/dist/src/personal-agent/result-read-continuations.js +78 -0
- package/dist/src/personal-agent/result-reader.d.ts +43 -0
- package/dist/src/personal-agent/result-reader.js +461 -0
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/platform/index.js +1 -1
- package/dist/src/projects/index.js +1 -1
- package/dist/src/projects/project-agent-suggestion.js +1 -1
- package/dist/src/projects/project-service.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/resources.js +2 -2
- package/dist/src/scenes/taskFollowUp/service.js +6 -6
- package/dist/src/session/client-history.d.ts +1 -1
- package/dist/src/session/client-history.js +1 -1
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/session-context-for-llm.js +2 -0
- package/dist/src/session/store.js +5 -5
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/hosted-session-share.js +2 -2
- package/dist/src/share/session-share-service.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/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/storage/sqlite/migrations/251_personal_result_reads.sql +40 -0
- package/dist/src/storage/sqlite/migrations/252_task_work_revisions.sql +15 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/home-query-service.js +2 -2
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-allocation-service.js +64 -13
- package/dist/src/tasks/task-application-service.d.ts +18 -0
- package/dist/src/tasks/task-application-service.js +135 -4
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +10 -7
- package/dist/src/tasks/task-contract-definition.d.ts +3 -0
- package/dist/src/tasks/task-contract-planner.js +50 -16
- package/dist/src/tasks/task-conversation-repository.js +1 -1
- package/dist/src/tasks/task-evidence-ranges.d.ts +7 -0
- package/dist/src/tasks/task-evidence-ranges.js +20 -0
- package/dist/src/tasks/task-execution-capabilities.d.ts +26 -0
- package/dist/src/tasks/task-execution-capabilities.js +117 -0
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.d.ts +56 -0
- package/dist/src/tasks/task-handoff.js +510 -0
- package/dist/src/tasks/task-main-update-decision-service.js +3 -3
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-read-model-projector.d.ts +6 -0
- package/dist/src/tasks/task-read-model-projector.js +12 -1
- package/dist/src/tasks/task-research-repair.js +6 -2
- package/dist/src/tasks/task-research-result.d.ts +16 -2
- package/dist/src/tasks/task-research-result.js +126 -42
- package/dist/src/tasks/task-result-delivery-repository.js +27 -4
- package/dist/src/tasks/task-result-delivery-service.js +38 -10
- package/dist/src/tasks/task-run-coordinator.js +7 -5
- package/dist/src/tasks/task-run-dispatcher.d.ts +1 -0
- package/dist/src/tasks/task-run-dispatcher.js +3 -2
- package/dist/src/tui/backends/embedded-backend.js +13 -13
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +2 -2
- 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/gateway-lifecycle.js +1 -1
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +1 -1
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/voice/realtime/memory-context.js +7 -7
- package/dist/src/voice/realtime/runtime.js +4 -4
- 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/service.js +7 -7
- package/dist/src/workflows/context/workflow-context.js +1 -1
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +7 -7
- package/dist/src/workflows/service/workflow-session-bridge.js +2 -2
- package/package.json +5 -3
- package/dist/gateway/static/root/assets/constants-CpWu0oHS.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BtSy2hRV.js +0 -2
- package/dist/gateway/static/root/assets/index-B08iR7fT.js +0 -260
- package/dist/gateway/static/root/assets/local-session-drafts-D_tYFy7d.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-BTrk2wWv.js +0 -1
- package/dist/gateway/static/root/assets/product-open-page-aUoA-uPw.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-C4_gW1vw.js +0 -1
|
@@ -22,64 +22,56 @@ import { getSessionConfig, init_config_repository } from "../storage/sqlite/conf
|
|
|
22
22
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
23
23
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
24
24
|
import { init_agent_scope, listAgentEntries, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
25
|
+
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
26
|
+
import { TaskAllocationRepository } from "../tasks/task-allocation-repository.js";
|
|
27
27
|
import { init_agent_session_key, resolveAgentMainConversationId } from "../routing/agent-session-key.js";
|
|
28
28
|
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
29
|
-
import "../
|
|
29
|
+
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
30
|
+
import { stopPersonalResultPreparations } from "../personal-agent/result-reader.js";
|
|
31
|
+
import { buildResultAgentContext } from "../agent/source-context/result-context.js";
|
|
32
|
+
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
33
|
+
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
34
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
35
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
36
|
+
import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../config/paths.js";
|
|
30
37
|
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
38
|
+
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
31
39
|
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
40
|
+
import "../projects/index.js";
|
|
41
|
+
import { NotesStore } from "../notes/store.js";
|
|
42
|
+
import { assertTaskHandoffAccess, getTaskHandoff } from "../tasks/task-handoff.js";
|
|
43
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
44
|
+
import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
|
|
32
45
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
33
|
-
import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../config/paths.js";
|
|
34
46
|
import { prewarmModelRegistry } from "../providers/model-registry.js";
|
|
35
47
|
import { init_providers, providers_exports } from "../providers/index.js";
|
|
36
48
|
import { flushTracing } from "../observability/runtime.js";
|
|
37
49
|
import { AI_USAGE_RETENTION_MS, markStaleAiUsageEventsUnknown, pruneAiUsageEvents } from "../storage/sqlite/ai-usage-repository.js";
|
|
38
|
-
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
39
|
-
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
40
|
-
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
41
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
42
|
-
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
43
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
44
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
45
|
-
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
46
|
-
import "../projects/index.js";
|
|
47
50
|
import { onTaskResultQueued } from "../tasks/task-result-delivery-repository.js";
|
|
48
|
-
import { runMemoryMaintenance } from "../memory-maintenance/service.js";
|
|
49
|
-
import "../memory-maintenance/index.js";
|
|
50
|
-
import { RealtimeExtensionBrowserProvider } from "../browser/providers/realtime-extension.js";
|
|
51
|
-
import { drainEmbeddedSessionRunnerShutdowns, evictAllEmbeddedSessionRunners } from "../agent/embedded/session-runner.js";
|
|
52
|
-
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
53
|
-
import { NotesStore } from "../notes/store.js";
|
|
54
|
-
import { NotesService } from "../notes/service.js";
|
|
55
|
-
import { LocalAppService } from "../local-apps/service.js";
|
|
56
51
|
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
57
52
|
import { AutomationService } from "../automations/service/automation-service.js";
|
|
58
|
-
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
59
|
-
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
60
53
|
import "../automations/index.js";
|
|
61
|
-
import {
|
|
62
|
-
import "../
|
|
54
|
+
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
55
|
+
import { RealtimeExtensionBrowserProvider } from "../browser/providers/realtime-extension.js";
|
|
63
56
|
import { areExtensionsGloballyDisabled } from "../extensions/discover-extensions.js";
|
|
64
|
-
import { SessionIndex } from "../session/manager.js";
|
|
65
|
-
import "../session/index.js";
|
|
66
|
-
import { ExtensionLoader } from "../extensions/loader.js";
|
|
67
57
|
import { buildExtensionMetadataSnapshot } from "../extensions/extension-metadata-snapshot.js";
|
|
68
|
-
import "../extensions/index.js";
|
|
69
58
|
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot } from "../channels/catalog/channel-catalog-service.js";
|
|
70
59
|
import { loadConfig, saveConfig } from "../config/loader.js";
|
|
71
|
-
import {
|
|
72
|
-
import "../infra/bus/index.js";
|
|
73
|
-
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
74
|
-
import { AgentService } from "../agent/service.js";
|
|
75
|
-
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
60
|
+
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
76
61
|
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
77
62
|
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
78
63
|
import { ChannelManager } from "../channels/manager.js";
|
|
79
64
|
import { ChatPreviewService } from "../chat-previews/service.js";
|
|
80
65
|
import "../chat-previews/index.js";
|
|
66
|
+
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
67
|
+
import "../infra/bus/index.js";
|
|
68
|
+
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
81
69
|
import "../config/index.js";
|
|
70
|
+
import { ExtensionLoader } from "../extensions/loader.js";
|
|
71
|
+
import "../extensions/index.js";
|
|
82
72
|
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
73
|
+
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
74
|
+
import "../knowledge-memory/index.js";
|
|
83
75
|
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
84
76
|
import "../knowledge/index.js";
|
|
85
77
|
import { PersonalReplyComposer } from "../personal-agent/reply-composer.js";
|
|
@@ -94,27 +86,37 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
94
86
|
import "../discussions/index.js";
|
|
95
87
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
96
88
|
import "../endpoint-tools/index.js";
|
|
97
|
-
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
98
|
-
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
99
|
-
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
100
|
-
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
101
89
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
102
90
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
103
91
|
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
104
92
|
import { getGatewayFileSpaceService } from "./file-space-service.js";
|
|
105
93
|
import { reconcileHomeIntelligenceAutomation } from "./home-intelligence-automation-reconciler.js";
|
|
94
|
+
import { drainPersonalResultReads } from "../personal-agent/result-read-continuations.js";
|
|
106
95
|
import { PersonalProactivityService } from "../personal-agent/proactivity/service.js";
|
|
107
96
|
import { reconcilePersonalProactivityAutomation } from "../personal-agent/proactivity/automation.js";
|
|
108
97
|
import { createBackgroundTask } from "../infra/background-task.js";
|
|
109
|
-
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
110
98
|
import { buildFileAgentContext } from "../agent/source-context/file-context.js";
|
|
111
99
|
import { buildSessionAgentContext } from "../agent/source-context/session-context.js";
|
|
112
100
|
import { buildBrowserTabAgentContext } from "../agent/source-context/browser-tab.js";
|
|
113
|
-
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
114
101
|
import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
115
102
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
116
103
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
117
104
|
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
105
|
+
import { drainEmbeddedSessionRunnerShutdowns, evictAllEmbeddedSessionRunners } from "../agent/embedded/session-runner.js";
|
|
106
|
+
import { SessionIndex } from "../session/manager.js";
|
|
107
|
+
import "../session/index.js";
|
|
108
|
+
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
109
|
+
import { runMemoryMaintenance } from "../memory-maintenance/service.js";
|
|
110
|
+
import "../memory-maintenance/index.js";
|
|
111
|
+
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
112
|
+
import { NotesService } from "../notes/service.js";
|
|
113
|
+
import { LocalAppService } from "../local-apps/service.js";
|
|
114
|
+
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
115
|
+
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
116
|
+
import { assertTaskExecutorReady } from "../tasks/task-execution-capabilities.js";
|
|
117
|
+
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
118
|
+
import "../tasks/index.js";
|
|
119
|
+
import { AgentService } from "../agent/service.js";
|
|
118
120
|
import "../notes/index.js";
|
|
119
121
|
import { buildWorkflowChildTools } from "../agent/workflow/workflow-child-tools.js";
|
|
120
122
|
import { WorkflowRunService } from "../workflows/service/workflow-run-service.js";
|
|
@@ -160,6 +162,10 @@ import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decisio
|
|
|
160
162
|
import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
|
|
161
163
|
import { checkAppContextAccess, prepareAppContext } from "./service/app-context-access.js";
|
|
162
164
|
import { applyAutomaticVoiceLanguage, inferProductLanguageFromEnvironment, initializeVoiceDefaults } from "../voice/language-profile.js";
|
|
165
|
+
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
166
|
+
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
167
|
+
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
168
|
+
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
163
169
|
import crypto from "node:crypto";
|
|
164
170
|
//#region src/gateway/service.ts
|
|
165
171
|
init_session_repository();
|
|
@@ -527,6 +533,7 @@ var GatewayService = class {
|
|
|
527
533
|
getChannelManager: () => this.channelManager,
|
|
528
534
|
getConfig: () => this.config,
|
|
529
535
|
resolveTurnContext: async (ref, conversationId) => {
|
|
536
|
+
if (ref.kind === "result") return buildResultAgentContext(conversationId, ref.sourceId, ref.expectedVersion);
|
|
530
537
|
if (ref.kind === "task") return buildTaskAgentContext(new TaskRepository().get(ref.sourceId), ref.expectedVersion);
|
|
531
538
|
if (ref.kind === "user_assertion") {
|
|
532
539
|
const metadata = await this.sessionIndex.getSessionMetadata(conversationId);
|
|
@@ -775,6 +782,18 @@ var GatewayService = class {
|
|
|
775
782
|
requestedAgentId
|
|
776
783
|
})).conversationId;
|
|
777
784
|
},
|
|
785
|
+
validateExecutor: (taskId, agentId) => {
|
|
786
|
+
const allocation = new TaskAllocationRepository().get(taskId);
|
|
787
|
+
if (!allocation || !agentId) return;
|
|
788
|
+
const handoff = getTaskHandoff(taskId);
|
|
789
|
+
if (handoff) assertTaskHandoffAccess(handoff);
|
|
790
|
+
assertTaskExecutorReady(taskId, allocation.origin_conversation_id, agentId, {
|
|
791
|
+
ownAgentId: getSessionMetadata(allocation.origin_conversation_id)?.agentId ?? "",
|
|
792
|
+
getConfig: () => this.config,
|
|
793
|
+
getAgentSkillAvailability: (id) => this.agentService.getAgentSkillAvailability(id),
|
|
794
|
+
getAgentToolAvailability: (id, tool) => this.agentService.getAgentToolAvailability(id, tool)
|
|
795
|
+
});
|
|
796
|
+
},
|
|
778
797
|
runAgent: async (runId, conversationId, message) => {
|
|
779
798
|
for (const adapter of this.sceneHost?.http.activationAdapters.list() ?? []) if (adapter.executeTask && await adapter.executeTask(runId, conversationId)) {
|
|
780
799
|
this.ensureAgentService();
|
|
@@ -914,6 +933,17 @@ var GatewayService = class {
|
|
|
914
933
|
if (reply) this.emit("personal.reply.delivered", reply);
|
|
915
934
|
};
|
|
916
935
|
await new TaskResultDeliveryService().drain(notify);
|
|
936
|
+
await drainPersonalResultReads({
|
|
937
|
+
isAvailable: (conversationId) => !this.stopping && !this.agentRunner.hasActiveRun(conversationId) && !this.agentRunner.inputs.isAcceptingInput(conversationId) && !this.voiceRealtime.hasConversation(conversationId),
|
|
938
|
+
submit: async (input) => (await this.agentRunner.submitSessionInput({
|
|
939
|
+
...input,
|
|
940
|
+
delivery: "next",
|
|
941
|
+
origin: {
|
|
942
|
+
type: "system",
|
|
943
|
+
source: "task_update"
|
|
944
|
+
}
|
|
945
|
+
})).ok
|
|
946
|
+
});
|
|
917
947
|
new PersonalReplyComposer().drain(async (conversationId, deliveryId) => {
|
|
918
948
|
const reply = personalReplyNotification(conversationId, deliveryId);
|
|
919
949
|
notify(conversationId, deliveryId);
|
|
@@ -977,7 +1007,7 @@ var GatewayService = class {
|
|
|
977
1007
|
conversation
|
|
978
1008
|
};
|
|
979
1009
|
}
|
|
980
|
-
const peerId = `task-${sanitizeSegment(task.id) || Date.now()}`;
|
|
1010
|
+
const peerId = `task-${sanitizeSegment(task.id) || Date.now()}${options.runId ? `-${sanitizeSegment(options.runId)}` : ""}`;
|
|
981
1011
|
const conversationId = resolveConversationId({
|
|
982
1012
|
agentId,
|
|
983
1013
|
source: "webchat",
|
|
@@ -1577,6 +1607,7 @@ var GatewayService = class {
|
|
|
1577
1607
|
this.taskRunDispatchTimer = null;
|
|
1578
1608
|
}
|
|
1579
1609
|
await this.sessionPreparations.stop();
|
|
1610
|
+
await stopPersonalResultPreparations();
|
|
1580
1611
|
setPairingBroadcastSink(null);
|
|
1581
1612
|
this.stopRealtimeLogBridge?.();
|
|
1582
1613
|
this.stopRealtimeLogBridge = null;
|
|
@@ -6,14 +6,14 @@ import { TaskRepository, init_task_repository } from "../tasks/task-repository.j
|
|
|
6
6
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
7
7
|
import { getCurrentTranscriptId, init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
8
8
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
9
|
+
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
10
|
+
import { isSessionSourceBinding } from "../agent/source-context/types.js";
|
|
11
|
+
import { ProjectStore } from "../projects/project-store.js";
|
|
9
12
|
import { getExecutionEnvironmentForSession } from "../execution-environments/subject.js";
|
|
10
13
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
11
|
-
import { ProjectStore } from "../projects/project-store.js";
|
|
12
|
-
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
13
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
14
14
|
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
15
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
15
16
|
import { runExec } from "../infra/exec.js";
|
|
16
|
-
import { isSessionSourceBinding } from "../agent/source-context/types.js";
|
|
17
17
|
import { realpath, stat } from "node:fs/promises";
|
|
18
18
|
//#region src/gateway/session-context-summary.ts
|
|
19
19
|
init_config_repository();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path, { relative, resolve } from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fsSync from "node:fs";
|
|
3
3
|
//#region src/gateway/workspace-editor-path.ts
|
|
4
4
|
/** Resolve a workspace-relative POSIX path safely (no `..`, stays under root). */
|
|
5
5
|
function resolveWorkspaceSafePath(workspaceRoot, rel) {
|
|
@@ -20,7 +20,7 @@ function isPathUnderWorkspace(workspaceRoot, absPath) {
|
|
|
20
20
|
function normalizeComparablePath(input) {
|
|
21
21
|
let resolved = resolve(input);
|
|
22
22
|
try {
|
|
23
|
-
resolved =
|
|
23
|
+
resolved = fsSync.realpathSync.native(resolved);
|
|
24
24
|
} catch {}
|
|
25
25
|
return process.platform === "win32" ? resolved.toLowerCase() : resolved;
|
|
26
26
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_agent_scope, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
2
|
-
import {
|
|
2
|
+
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
3
3
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
4
4
|
import { completeWithResolvedCredentials, isLocalModelBaseUrl } from "../providers/model-call.js";
|
|
5
|
-
import {
|
|
5
|
+
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/home-intelligence/generator.ts
|
|
8
8
|
init_agent_scope();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
3
4
|
import { homePatternKey } from "./strategy.js";
|
|
5
|
+
import { HomeAdvicePolicy } from "./policy.js";
|
|
4
6
|
import { HomeIntelligenceRepository } from "./repository.js";
|
|
5
7
|
import { HomeOpportunityApplicationService } from "./application-service.js";
|
|
6
|
-
import { HomeAdvicePolicy } from "./policy.js";
|
|
7
|
-
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
8
8
|
import { buildHomeOpportunityNotification } from "./notification.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/home-intelligence/host.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { McpServerSchema, init_schema } from "../config/schema.js";
|
|
2
1
|
import { isValidSkillId } from "../agent/skills/managed-store.js";
|
|
2
|
+
import { McpServerSchema, init_schema } from "../config/schema.js";
|
|
3
3
|
import { containsSecret, isCredentialPath } from "./secrets.js";
|
|
4
4
|
import { digest, fileHash } from "./files.js";
|
|
5
5
|
import yaml from "js-yaml";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
2
|
-
import "../knowledge-memory/index.js";
|
|
3
|
-
import { init_paths, resolveSkillsDir } from "../config/paths.js";
|
|
4
1
|
import { ProjectService } from "../projects/project-service.js";
|
|
2
|
+
import { init_paths, resolveSkillsDir } from "../config/paths.js";
|
|
5
3
|
import { resolveWorkspaceSkillsDir } from "../agent/skills/workspace-skills-dir.js";
|
|
4
|
+
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
5
|
+
import "../knowledge-memory/index.js";
|
|
6
6
|
import { ImportError } from "./types.js";
|
|
7
7
|
import { digest } from "./files.js";
|
|
8
8
|
import { canonicalTarget } from "./planner.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
3
|
-
import { init_paths } from "../config/paths.js";
|
|
4
3
|
import { ProjectService } from "../projects/project-service.js";
|
|
4
|
+
import { init_paths } from "../config/paths.js";
|
|
5
5
|
import { ImportError } from "./types.js";
|
|
6
6
|
import { digest, fileHash, readRegularFile, readTree } from "./files.js";
|
|
7
7
|
import { importContextDocument } from "./contextImport.js";
|
|
@@ -11,8 +11,8 @@ import { ImportSelectionRepository } from "../storage/sqlite/import-selection-re
|
|
|
11
11
|
import { existingContext, getLiveInventory } from "./inventory.js";
|
|
12
12
|
import { join } from "node:path";
|
|
13
13
|
import { mkdirSync, realpathSync, statSync } from "node:fs";
|
|
14
|
-
import { setImmediate } from "node:timers/promises";
|
|
15
14
|
import lockfile from "proper-lockfile";
|
|
15
|
+
import { setImmediate } from "node:timers/promises";
|
|
16
16
|
//#region src/imports/productImport.ts
|
|
17
17
|
init_paths();
|
|
18
18
|
init_transaction();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
|
-
import { init_paths, resolveBundledSkillsDir, resolveSkillsDir } from "../config/paths.js";
|
|
3
2
|
import { ProjectService } from "../projects/project-service.js";
|
|
3
|
+
import { init_paths, resolveBundledSkillsDir, resolveSkillsDir } from "../config/paths.js";
|
|
4
4
|
import { resolveWorkspaceSkillsDir } from "../agent/skills/workspace-skills-dir.js";
|
|
5
5
|
import { loadSkills } from "../agent/skills/index.js";
|
|
6
6
|
import { ProjectTrustStore } from "../project-trust/trust-store.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { listPortListeners } from "../gateway/ports.js";
|
|
2
2
|
import { isGatewayArgv, parseProcCmdline } from "./gateway-process-argv.js";
|
|
3
|
-
import
|
|
3
|
+
import fsSync from "node:fs";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/infra/gateway-processes.ts
|
|
6
6
|
function readGatewayProcessArgsSync(pid) {
|
|
7
7
|
if (process.platform === "linux") try {
|
|
8
|
-
return parseProcCmdline(
|
|
8
|
+
return parseProcCmdline(fsSync.readFileSync(`/proc/${pid}/cmdline`, "utf8"));
|
|
9
9
|
} catch {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveBrewPathDirs } from "./brew.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsSync from "node:fs";
|
|
5
5
|
//#region src/infra/path-env.ts
|
|
6
6
|
function isTruthyEnvValue(value) {
|
|
7
7
|
if (!value) return false;
|
|
@@ -10,7 +10,7 @@ function isTruthyEnvValue(value) {
|
|
|
10
10
|
}
|
|
11
11
|
function isExecutable(filePath) {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
fsSync.accessSync(filePath, fsSync.constants.X_OK);
|
|
14
14
|
return true;
|
|
15
15
|
} catch {
|
|
16
16
|
return false;
|
|
@@ -18,7 +18,7 @@ function isExecutable(filePath) {
|
|
|
18
18
|
}
|
|
19
19
|
function isDirectory(dirPath) {
|
|
20
20
|
try {
|
|
21
|
-
return
|
|
21
|
+
return fsSync.statSync(dirPath).isDirectory();
|
|
22
22
|
} catch {
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
@@ -4,8 +4,8 @@ import { readPackageVersion } from "./package-json.js";
|
|
|
4
4
|
import { createDefaultCommandRunner } from "./run-command.js";
|
|
5
5
|
import { verifyInstalledGatewayRuntime } from "./package-runtime-check.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
8
|
-
import fs
|
|
7
|
+
import fsSync from "node:fs";
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
//#region src/infra/update-global.ts
|
|
10
10
|
const XOPC_PACKAGE_NAME = "@xopcai/xopc";
|
|
11
11
|
const GLOBAL_RENAME_PREFIX = ".";
|
|
@@ -19,7 +19,7 @@ const NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS = ["--omit=optional", ...NPM_GLOBAL
|
|
|
19
19
|
const GLOBAL_DETECT_TIMEOUT_MS = 15e3;
|
|
20
20
|
async function pathExists(targetPath) {
|
|
21
21
|
try {
|
|
22
|
-
await fs
|
|
22
|
+
await fs.access(targetPath);
|
|
23
23
|
return true;
|
|
24
24
|
} catch {
|
|
25
25
|
return false;
|
|
@@ -27,7 +27,7 @@ async function pathExists(targetPath) {
|
|
|
27
27
|
}
|
|
28
28
|
async function tryRealpath(targetPath) {
|
|
29
29
|
try {
|
|
30
|
-
return await fs
|
|
30
|
+
return await fs.realpath(targetPath);
|
|
31
31
|
} catch {
|
|
32
32
|
return path.resolve(targetPath);
|
|
33
33
|
}
|
|
@@ -50,14 +50,14 @@ function resolvePreferredNpmCommand(pkgRoot) {
|
|
|
50
50
|
const prefix = inferNpmPrefixFromPackageRoot(pkgRoot);
|
|
51
51
|
if (!prefix) return null;
|
|
52
52
|
const candidate = process.platform === "win32" ? path.join(prefix, "npm.cmd") : path.join(prefix, "bin", "npm");
|
|
53
|
-
return
|
|
53
|
+
return fsSync.existsSync(candidate) ? candidate : null;
|
|
54
54
|
}
|
|
55
55
|
function resolveNpmFromExecPath() {
|
|
56
56
|
const execPath = process.execPath?.trim();
|
|
57
57
|
if (!execPath) return null;
|
|
58
58
|
const binDir = path.dirname(execPath);
|
|
59
59
|
const candidate = process.platform === "win32" ? path.join(binDir, "npm.cmd") : path.join(binDir, "npm");
|
|
60
|
-
return
|
|
60
|
+
return fsSync.existsSync(candidate) ? candidate : null;
|
|
61
61
|
}
|
|
62
62
|
function resolvePreferredGlobalManagerCommand(manager, pkgRoot) {
|
|
63
63
|
if (manager !== "npm") return manager;
|
|
@@ -206,7 +206,7 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
206
206
|
const prefix = `${GLOBAL_RENAME_PREFIX}${name}-`;
|
|
207
207
|
let entries = [];
|
|
208
208
|
try {
|
|
209
|
-
entries = await fs
|
|
209
|
+
entries = await fs.readdir(root);
|
|
210
210
|
} catch {
|
|
211
211
|
return { removed };
|
|
212
212
|
}
|
|
@@ -214,8 +214,8 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
214
214
|
if (!entry.startsWith(prefix)) continue;
|
|
215
215
|
const target = path.join(root, entry);
|
|
216
216
|
try {
|
|
217
|
-
if (!(await fs
|
|
218
|
-
await fs
|
|
217
|
+
if (!(await fs.lstat(target)).isDirectory()) continue;
|
|
218
|
+
await fs.rm(target, {
|
|
219
219
|
recursive: true,
|
|
220
220
|
force: true
|
|
221
221
|
});
|
|
@@ -5,11 +5,11 @@ import { createContextEvidence, init_context_evidence_repository } from "../stor
|
|
|
5
5
|
import { init_chunks, replaceKnowledgeChunks } from "./chunks.js";
|
|
6
6
|
import { claimKnowledgeSourceItems, completeKnowledgeSourceItemSynthesis, pruneBoundedKnowledgeSourceItems } from "../storage/sqlite/knowledge-repository.js";
|
|
7
7
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
8
|
-
import { getActiveUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
9
8
|
import { clearMemoryAudit } from "../user-context/memory-suppression.js";
|
|
9
|
+
import { getActiveUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
10
|
+
import { consentFilteredText } from "../user-context/sources/consent-fields.js";
|
|
10
11
|
import { listKnowledgeItems, transitionKnowledgeStatus, writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
11
12
|
import "../knowledge-memory/index.js";
|
|
12
|
-
import { consentFilteredText } from "../user-context/sources/consent-fields.js";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
14
14
|
//#region src/knowledge/connected-knowledge-pipeline.ts
|
|
15
15
|
init_chunks();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConnectedKnowledgePipeline } from "./connected-knowledge-pipeline.js";
|
|
2
1
|
import { KnowledgeIngestionService, SqliteKnowledgeSourceStateStore } from "./ingestion-service.js";
|
|
2
|
+
import { ConnectedKnowledgePipeline } from "./connected-knowledge-pipeline.js";
|
|
3
3
|
import { startConnectedKnowledgeCoordinator } from "./coordinator.js";
|
|
4
4
|
import { LocalFolderKnowledgeSourceAdapter } from "./local-folder-adapter.js";
|
|
5
5
|
export { ConnectedKnowledgePipeline, KnowledgeIngestionService, LocalFolderKnowledgeSourceAdapter, SqliteKnowledgeSourceStateStore, startConnectedKnowledgeCoordinator };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_search_text, memorySearchQuery } from "./search-text.js";
|
|
2
2
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
3
3
|
import { init_domain, validateScope } from "../user-model/domain.js";
|
|
4
|
-
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
5
4
|
import { clearMemoryAudit, isMemorySuppressed, memoryFingerprint, restoreMemory, suppressMemory } from "../user-context/memory-suppression.js";
|
|
5
|
+
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
6
6
|
import { canUseKnowledge, knowledgeContentSources } from "./usage-policy.js";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
//#region src/knowledge-memory/repository.ts
|
|
@@ -6,10 +6,10 @@ import { afterSqliteCommit, init_transaction, runSqliteWriteTransaction } from "
|
|
|
6
6
|
import { ExtensionCapabilityBindingsSchema, extensionCapabilityPermissions } from "../../packages/gateway-contract/src/extension-capabilities.js";
|
|
7
7
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
8
8
|
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
9
|
-
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
10
9
|
import { slugifyProjectName } from "../projects/project-store.js";
|
|
11
|
-
import { LocalAppStore } from "./store.js";
|
|
12
10
|
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
11
|
+
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
12
|
+
import { LocalAppStore } from "./store.js";
|
|
13
13
|
import { validateLocalAppCapabilityContracts } from "./capabilities/contracts.js";
|
|
14
14
|
import { buildLocalAppFixGuidance } from "./fix-guidance.js";
|
|
15
15
|
import { readLocalAppAcceptanceConfig } from "./acceptance.js";
|
|
@@ -2,8 +2,8 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { CapabilityErrorCodeSchema } from "../../packages/gateway-contract/src/capabilities.js";
|
|
4
4
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
|
-
import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
|
|
6
5
|
import { loadConfig } from "../config/loader.js";
|
|
6
|
+
import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
|
|
7
7
|
import { createGatewayCredential, gatewayCredentialAuthorization } from "../gateway/credential.js";
|
|
8
8
|
import { fetch } from "undici";
|
|
9
9
|
//#region src/mcp/gateway-http-client.ts
|
|
@@ -66,7 +66,7 @@ function isMediaUriReferencedByLiveSession(uri) {
|
|
|
66
66
|
UNION ALL
|
|
67
67
|
SELECT 1 AS referenced FROM task_result_deliveries d
|
|
68
68
|
JOIN sessions s ON s.conversation_id = d.conversation_id
|
|
69
|
-
WHERE d.status IN ('pending', 'delivered') AND d.payload_json LIKE ? ESCAPE '\\'
|
|
69
|
+
WHERE d.status IN ('pending', 'delivered', 'stale') AND d.payload_json LIKE ? ESCAPE '\\'
|
|
70
70
|
LIMIT 1`).get(`%${escaped}%`, `%${escaped}%`)?.referenced === 1;
|
|
71
71
|
}
|
|
72
72
|
async function deleteMediaUris(uris) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerMediaUnderstandingProvider } from "./registry.js";
|
|
2
1
|
import { normalizeBaseUrl, postMultipartRequest } from "../media-shared/http/provider-http.js";
|
|
3
2
|
import "../media-shared/http/index.js";
|
|
3
|
+
import { registerMediaUnderstandingProvider } from "./registry.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
//#region src/media-understanding/openai-compatible-audio.ts
|
|
6
6
|
/**
|
|
@@ -4,14 +4,14 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
|
|
|
4
4
|
import { claimContextExtractionRun, finishContextExtractionRun, init_context_extraction_repository } from "../storage/sqlite/context-extraction-repository.js";
|
|
5
5
|
import { getActiveUnderstandingConsent, getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
6
6
|
import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
|
|
7
|
-
import { learningPolicyHash } from "./repository.js";
|
|
8
|
-
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
9
7
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
10
8
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
11
|
-
import { isLoopbackModel } from "../providers/local-model.js";
|
|
12
|
-
import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
|
|
13
9
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
10
|
+
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
11
|
+
import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
|
|
14
12
|
import { extractionInputHash } from "../user-context/extraction/registry.js";
|
|
13
|
+
import { learningPolicyHash } from "./repository.js";
|
|
14
|
+
import { isLoopbackModel } from "../providers/local-model.js";
|
|
15
15
|
import { WorkCandidateSchema, applyWorkCandidates } from "./work-capture.js";
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
17
|
import { z } from "zod";
|
|
@@ -4,8 +4,8 @@ import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js
|
|
|
4
4
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
5
5
|
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
6
6
|
import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
7
|
-
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
8
7
|
import "../knowledge-memory/index.js";
|
|
8
|
+
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/memory-learning/task-receipts.ts
|
|
11
11
|
init_context_evidence_repository();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getNoteAgentContextRecord, upsertNoteAgentContextRecord } from "../storage/sqlite/note-agent-context-repository.js";
|
|
2
2
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
3
|
-
import { extractDocumentText } from "../document-understanding/extract.js";
|
|
4
|
-
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
5
|
-
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
6
|
-
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
7
3
|
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
4
|
+
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
8
5
|
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
9
6
|
import "../voice/stt/index.js";
|
|
7
|
+
import { extractDocumentText } from "../document-understanding/extract.js";
|
|
8
|
+
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
9
|
+
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
10
10
|
import { extname } from "node:path";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
12
12
|
//#region src/notes/agent-context.ts
|
package/dist/src/notes/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
|
|
2
1
|
import { resolveNoteMediaDir, resolveNotesDir } from "./paths.js";
|
|
3
2
|
import { NotesStore } from "./store.js";
|
|
3
|
+
import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
|
|
4
4
|
import { NotesService } from "./service.js";
|
|
5
5
|
export { NotesService, NotesStore, buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact, resolveNoteMediaDir, resolveNotesDir };
|
|
@@ -6,13 +6,13 @@ import { buildNoteAttachmentRef, init_attachment_ref } from "./attachment-ref.js
|
|
|
6
6
|
import { init_note_markdown, parseNoteMarkdown } from "./note-markdown.js";
|
|
7
7
|
import { init_notes_repository, listNoteProjectSummaries } from "../storage/sqlite/notes-repository.js";
|
|
8
8
|
import { changedFieldsFromPatch, emitActivity, previewText, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
9
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
10
|
+
import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
|
|
11
|
+
import { NotesStore } from "./store.js";
|
|
9
12
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
10
13
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
11
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
12
14
|
import { partitionAttachmentsByReference } from "./note-attachment-sync.js";
|
|
13
15
|
import { buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
|
|
14
|
-
import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
|
|
15
|
-
import { NotesStore } from "./store.js";
|
|
16
16
|
import { createHash, randomUUID } from "node:crypto";
|
|
17
17
|
//#region src/notes/service.ts
|
|
18
18
|
init_providers();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
3
|
-
import { isPersonalConversation } from "./repository.js";
|
|
4
3
|
import { canAccessConnectorAccount, currentAccountConnections } from "../connectors/account-access.js";
|
|
5
4
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
6
|
-
import {
|
|
5
|
+
import { isPersonalConversation } from "./repository.js";
|
|
7
6
|
import { assessSpecialist } from "../agent-matching/service.js";
|
|
7
|
+
import { connectionCandidates, resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
8
8
|
//#region src/personal-agent/capability-service.ts
|
|
9
9
|
init_repository();
|
|
10
10
|
init_connector_repository();
|
|
@@ -18,6 +18,7 @@ const PERSONAL_COMMUNICATION_RULES = [
|
|
|
18
18
|
];
|
|
19
19
|
const PERSONAL_WORKER_RESULT_GUIDANCE = [
|
|
20
20
|
"## Result for the originating conversation",
|
|
21
|
+
"For ordinary Tasks when publish_task_result is available, use it before completion to review the actual result. Connected Requests use their own structured result tool instead. When files were published, finalArtifactIds must select the exact final artifact IDs from publication receipts, including [] for a text-only result. Exclude intermediate, obsolete and failed files; publication history is not the final delivery manifest.",
|
|
21
22
|
"Provide a complete, evidence-grounded result for the originating conversation. The personal assistant may synthesize its final reply from your report. Match the user’s language and requested depth; preserve requested content, relevant sources, verified data cutoffs, uncertainty, and partial failures. Distinguish reported findings from verified facts. Do not invent a friendly opening or assume a new user request.",
|
|
22
23
|
"Keep internal planning, Agent names, tool logs, and task progress links out of the result unless the user specifically requested them or they are necessary to explain a blocker. Never substitute a progress page, a plan, or a promise for the requested result. Publish required files through the available artifact tools; do not repeat the same attachments or send the user to a Task page to collect them."
|
|
23
24
|
].join("\n");
|