@xopcai/xopc 0.0.388 → 0.0.389
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/_locales/en/messages.json +6 -1
- package/dist/browser-ext/_locales/zh_CN/messages.json +6 -1
- package/dist/browser-ext/dist/assets/{page-context-BeworyNB.js → page-context-A5RCibM_.js} +1 -1
- package/dist/browser-ext/dist/background.js +1 -1
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +98 -53
- 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 +7 -5
- 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/{activity-store-CB2X4Gmu.js → activity-store-dvik6t7Z.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-44LqtGte.js → agent-avatar-dicebear-bWMd5TDC.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-2VA4eKPf.js → agent-defaults-settings-panel-Ds0Ue2FB.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-DRhTOw_O.js → agent-plugin-dialog-UunIxc1q.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-BemUH_Yf.js → agents-BLRM4o-U.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-BkULgC6Q.js → agents-admin-api-BlNGyXpm.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CR_cc7rj.js → app-management-settings-panel-Dmy828Pe.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-CYofu-su.js → appearance-settings-CUAdx44v.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CHjWvDjk.js → apps-page-D5zDB6gp.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-De0ND0oA.js → archive-plugin-Du6dJNcl.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BIF0skon.js → automations-page-BO8Ig5Z4.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-DOwtT4sS.js → automations-workspace-UcCneEs3.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-Do535ZGW.js → binary-plugins-D7VJjwnr.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-C_RD603p.js → block-editor-CaJlWTAn.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automation-inputs-B9M1RYTm.js → browser-automation-inputs-iyMBJmQX.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-B-Ezk_8l.js → browser-automations-page-BjvQnYfO.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-BSmmTBn4.js → browser-settings-page-D5ZghI28.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-BX1rCiVm.js → capabilities-CEH1AnXc.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-CW389yo6.js → capabilities-MCKRMZDK.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-xZgTYYDn.js → capabilities-page-MC8qIrXo.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-oqkuOjcR.js → capabilities-settings-panel-Blz3hEzp.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-Chuhscdb.js → capability-header-actions-BIA0Lwt5.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-Dq2C2k9M.js → channels-DSg_iCVC.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-srB_M-aQ.js → chat-terminal-dock-C97SJEwd.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-Af00Kjc0.js → computer-settings-page-DvY3zgyY.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-3W0_7-4L.js → connector-service-page-St2-Fj3y.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-DXk-GAsd.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DBgZBmik.js → date-picker-C0-D80ny.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-BDJ406kH.js → dependency-picker-CNd7mwMU.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-Do1XPn6U.js → desktop-pet-C-2wDANn.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-LKeVh6OH.js → desktop-pet-settings-DyhxLrdJ.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-CvZpnSVw.js → device-pairing-wizard-BeSuq__I.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BMLHoL6g.js → directory-picker-path-field-CNivVIPT.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-B0wTBCx4.js → extension-debug-page-CGYO3JPw.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-vR2r4uUB.js → extension-page-Dc51ALAg.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-CJZ5EVpQ.js → extension-provider-BXPILdlw.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-1tbWe5xQ.js → extension-settings-page-jYu6qpY2.js} +1 -1
- package/dist/gateway/static/root/assets/{fallback-models-CW6a1-GK.js → fallback-models-CoyzvDo7.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-D0tBjSgj.js → gateway-config-swr-Bc2MytsF.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-BnHraJ3O.js → gateway-realtime-BFK-vlME.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-C3vH-Iup.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-settings-vQWTUx2c.js → gateway-settings-JlT1dlSj.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-C1DQsIH3.js → gateway-startup-retry-BDPMttPx.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-BM__yiMn.js → highlighted-body-KQOG7T2V-DAlRGMge.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-hfWuVtcG.js → home-page-DOVl8s-1.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-DodU6GNC.js → image-generation-api-BZBiYDmV.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-CuR6RSUM.js → imports-page-DgdBTp_0.js} +1 -1
- package/dist/gateway/static/root/assets/{index-CNH8vwcY.js → index-CmC8JkSM.js} +108 -108
- package/dist/gateway/static/root/assets/index-Dgzc0oBu.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DpyqH2cP.js → keyboard-shortcuts-settings-BYYC9Qmw.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-B4hIoxV8.js → local-app-workbench-page-BKZfn-MS.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-S7lUpENM.js → local-apps-page-BU8pUsVM.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-Be4BGM4Z.js → local-session-drafts-kFc_MAA9.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-uRu_DsWm.js → locale-store-Dr43FCty.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-CSlZT1-L.js → logs-page-BSepiACn.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BYCL5CwV.js → management-settings-dE_ykPNY.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-CBjl-XEc.js → markdown-view-CdKlPjJM.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-BombFqsX.js → media-plugins-DE9zt88i.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-65SE6j-_.js +1 -0
- package/dist/gateway/static/root/assets/messages-DlTNQI92.js +3 -0
- package/dist/gateway/static/root/assets/models-hub-cache-C7FAsEe_.js +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-CJ5Earr_.js → note-detail-panel-D9oqhdyk.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-api-BlGP533W.js → notes-api-BHouNL6-.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-CPGk8-n1.js → notes-page-Bd4_7ph8.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-C2bSXVbz.js → page-context-capture-button-TQr8NnSc.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BjTt5R3s.js → personal-page-BvWzq4Wp.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-Cn16lm5l.js → product-open-page-BEl6syFp.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-CowgeuoG.js → product-preview-content-BxSHnbqz.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-CyKx4PyN.js → project-detail-page-D-qkIXVT.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page--_hXxUMC.js → projects-page-BQtw1Dfn.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-CYqA7bfl.js → registry-api-BD5IgDOA.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-Bq_eqQYf.js → remote-access-hub-CYFNz0Jc.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-api-zzoxjSuR.js → runtime-tools-api-CjTRoQWT.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BgCATci5.js → runtime-tools-settings-panel-Qq_NyYx_.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-DxE3jRPR.js → scenes-page-hGr-ppYk.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-I6pzJJzg.js → schema-form-ByG-R6N2.js} +1 -1
- package/dist/gateway/static/root/assets/{send-session-input-C293-Hbx.js → send-session-input-UAVStisp.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CzVTrG8n.js → session-api-DvgEiNRS.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-BOb1tC_Z.js +16 -0
- package/dist/gateway/static/root/assets/{sessions-page-CQkGFnJM.js → sessions-page-CpX1Rluw.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-D2s_MlxR.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-Dy5oQDbx.js → settings-page-C1e9m23j.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-CrAazq4r.js → setup-status-panel-BiHRYDHq.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-BKGI8Kr0.js → share-link-dialog-kE_6v5Dp.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-BF2WaO43.js → share-preview-page-BT-_yR1h.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-B0HlMAzi.js → shares-api-Dg_SqHQE.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BNMhs-Vd.js → shares-settings-DfcAu08T.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-RIjxQs-Y.js → skill-api-BslUYMnX.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-CEJx5rPd.js → skill-reload-api-BQ2rTOP1.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-XVOxILQn.js → skills-page-CvKc5nBN.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-C8aLy8T_.js → system-settings-panel-GpbPfWwo.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-o1O2IDVP.js → task-detail-page-5B5ZVAu0.js} +1 -1
- package/dist/gateway/static/root/assets/{task-expandable-content-C9ohICpw.js → task-expandable-content-DJrrEBB4.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-BUfzeDvL.js → theme-store-BKpYnggg.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-C2q5B3Kp.js → tracing-settings-page-D71w7dwV.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-JkDu1wiC.js → tunnel-api-BV46CvS8.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-B8K6Y4ro.js → usage-page-rMuwNpJi.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-DgbCgsao.js → use-autosave-CzyqRffr.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-rgW7h4sD.js → use-composer-attachments-Dviq-1f6.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-DSKIxfz9.js → use-file-preview-expanded-D5Kk7Hon.js} +2 -2
- package/dist/gateway/static/root/assets/{user-model-page-C1QX47VR.js → user-model-page-Dhqw3v_u.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-4AIkbm9R.js → voice-api-key-field-DWtbmacd.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-Kw1pYlLN.js → voice-config-api-DnIjZm_9.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BshsEDRO.js → work-discovery-overlay-ChEG71hz.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CRG3paWy.js → workflow-run-setup-panel-pdiRKLxP.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-c-AoSVzm.js → workflows-page-D9LMxINt.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-JWHOFos6.js → workspace-api-CZDvu7uA.js} +2 -2
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-PDSIicr1.js → xopc-cloud-account-card-CbUgg1SK.js} +1 -1
- package/dist/gateway/static/root/index.html +27 -27
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/clarifications.js +79 -2
- package/dist/packages/realtime-protocol/src/voice.js +13 -2
- package/dist/src/agent/agent-manager.js +25 -21
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +5 -1
- package/dist/src/agent/background-review/run-background-review.js +50 -12
- 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 +14 -14
- package/dist/src/agent/embedded/session-runner.d.ts +4 -3
- package/dist/src/agent/embedded/session-runner.js +9 -4
- 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 +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +4 -4
- package/dist/src/agent/external-tools/gateway-tools.js +2 -2
- 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 +3 -3
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/mcp/connection-drafts.d.ts +50 -0
- package/dist/src/agent/mcp/connection-drafts.js +278 -0
- package/dist/src/agent/mcp/connection-setup.d.ts +5 -2
- package/dist/src/agent/mcp/connection-setup.js +7 -5
- package/dist/src/agent/mcp/credential-store.d.ts +6 -0
- package/dist/src/agent/mcp/credential-store.js +24 -0
- package/dist/src/agent/mcp/native-mcp.d.ts +6 -1
- package/dist/src/agent/mcp/native-mcp.js +6 -0
- package/dist/src/agent/mcp/tool-catalog.d.ts +7 -2
- package/dist/src/agent/mcp/tool-catalog.js +25 -15
- 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.js +4 -4
- package/dist/src/agent/service/process-direct-streaming.js +6 -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 +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +7 -7
- package/dist/src/agent/tools/clarify-tool.d.ts +2 -3
- package/dist/src/agent/tools/clarify-tool.js +15 -9
- package/dist/src/agent/tools/cli-clarify.d.ts +0 -3
- package/dist/src/agent/tools/cli-clarify.js +18 -32
- 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/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +19 -19
- 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-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +4 -4
- package/dist/src/agent/tools/personal-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.d.ts +4 -4
- package/dist/src/agent/tools/personal-task-tool.js +6 -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 +1 -1
- package/dist/src/agent/tools/send-media.js +1 -1
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +3 -3
- 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 +4 -4
- 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/capabilities/write.d.ts +2 -2
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/domain/validation.d.ts +6 -6
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/draft/automation-draft-validator.d.ts +2 -2
- 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/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.d.ts +1 -1
- package/dist/src/cli/commands/onboard/model.js +21 -2
- 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.d.ts +7 -1
- package/dist/src/config/schema.js +7 -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 +4 -4
- 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/agents-admin.js +1 -1
- package/dist/src/gateway/chat-stream/mapper.js +2 -2
- package/dist/src/gateway/chat-stream/protocol.d.ts +2 -3
- package/dist/src/gateway/clarify-runtime.d.ts +2 -0
- package/dist/src/gateway/clarify-runtime.js +4 -1
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/ephemeral-clarification-waiter.d.ts +2 -1
- package/dist/src/gateway/ephemeral-clarification-waiter.js +19 -6
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -1
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- package/dist/src/gateway/hono/lib/config-write-lock.d.ts +2 -0
- package/dist/src/gateway/hono/lib/config-write-lock.js +14 -0
- package/dist/src/gateway/hono/routes/agent-stream.js +4 -9
- 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/config.js +7 -5
- 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/lazy-bundles.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +74 -7
- 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.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 +5 -4
- 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 +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/agent-runner.d.ts +5 -4
- package/dist/src/gateway/service/agent-runner.js +35 -19
- package/dist/src/gateway/service/config-coordinator.d.ts +619 -1
- package/dist/src/gateway/service/config-coordinator.js +38 -26
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +4 -4
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service.d.ts +6 -3
- package/dist/src/gateway/service.js +45 -44
- package/dist/src/gateway/session-context-summary.js +4 -4
- package/dist/src/gateway/side-chat/run-service.d.ts +2 -1
- package/dist/src/gateway/side-chat/run-service.js +6 -3
- package/dist/src/gateway/side-chat/types.d.ts +3 -3
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.d.ts +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +7 -4
- package/dist/src/home-intelligence/generator.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-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/memory-learning/service.js +3 -2
- 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/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +7 -7
- package/dist/src/personal-agent/prompt-context.js +7 -7
- package/dist/src/personal-agent/prompts.js +1 -1
- package/dist/src/personal-agent/reply-composer.js +9 -9
- package/dist/src/personal-agent/request-delivery.js +2 -2
- package/dist/src/personal-agent/request-service.js +6 -6
- package/dist/src/personal-agent/result-reader.js +1 -1
- 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/execution.d.ts +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/contracts.d.ts +2 -2
- package/dist/src/scenes/taskFollowUp/resources.js +2 -2
- package/dist/src/scenes/taskFollowUp/service.d.ts +5 -5
- package/dist/src/scenes/taskFollowUp/service.js +6 -6
- package/dist/src/scenes/templates.d.ts +2 -2
- 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/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/clarification-wait-repository.d.ts +3 -5
- package/dist/src/storage/sqlite/clarification-wait-repository.js +48 -28
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/tasks/capabilities/management.d.ts +2 -2
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/relations.d.ts +6 -6
- package/dist/src/tasks/capabilities/write.d.ts +6 -6
- 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 +5 -5
- package/dist/src/tasks/task-application-service.js +6 -6
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +2 -2
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +5 -5
- 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-research-result.js +4 -4
- package/dist/src/tasks/task-result-delivery-repository.js +1 -1
- package/dist/src/tasks/task-result-delivery-service.js +2 -2
- package/dist/src/tasks/task-run-coordinator.js +4 -4
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- 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-agent-events.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/gateway-lifecycle.js +1 -1
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-context/config.d.ts +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/capture/semantic.d.ts +8 -1
- package/dist/src/user-model/capture/semantic.js +26 -5
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/voice/realtime/agentEngine.js +4 -2
- package/dist/src/voice/realtime/memory-context.js +7 -7
- package/dist/src/voice/realtime/omniEngine.js +2 -2
- 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 +3 -3
- package/dist/gateway/static/root/assets/connectors-page-BZk-Gou5.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-BVriF6Zj.js +0 -1
- package/dist/gateway/static/root/assets/index-DBRwvWzm.css +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-i9N5shss.js +0 -1
- package/dist/gateway/static/root/assets/messages-DTqbfje6.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-cache-Ct6X5zmB.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-COd9RECl.js +0 -16
- package/dist/gateway/static/root/assets/settings-advanced-gate-Dtlsvsci.js +0 -1
|
@@ -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 from "node:fs/promises";
|
|
7
|
+
import fs from "node:fs";
|
|
8
|
+
import fs$1 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.access(targetPath);
|
|
22
|
+
await fs$1.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.realpath(targetPath);
|
|
30
|
+
return await fs$1.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 fs.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 fs.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.readdir(root);
|
|
209
|
+
entries = await fs$1.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.lstat(target)).isDirectory()) continue;
|
|
218
|
-
await fs.rm(target, {
|
|
217
|
+
if (!(await fs$1.lstat(target)).isDirectory()) continue;
|
|
218
|
+
await fs$1.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 { clearMemoryAudit } from "../user-context/memory-suppression.js";
|
|
9
8
|
import { getActiveUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
10
|
-
import {
|
|
9
|
+
import { clearMemoryAudit } from "../user-context/memory-suppression.js";
|
|
11
10
|
import { listKnowledgeItems, transitionKnowledgeStatus, writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
12
11
|
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 { KnowledgeIngestionService, SqliteKnowledgeSourceStateStore } from "./ingestion-service.js";
|
|
2
1
|
import { ConnectedKnowledgePipeline } from "./connected-knowledge-pipeline.js";
|
|
2
|
+
import { KnowledgeIngestionService, SqliteKnowledgeSourceStateStore } from "./ingestion-service.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 { clearMemoryAudit, isMemorySuppressed, memoryFingerprint, restoreMemory, suppressMemory } from "../user-context/memory-suppression.js";
|
|
5
4
|
import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
5
|
+
import { clearMemoryAudit, isMemorySuppressed, memoryFingerprint, restoreMemory, suppressMemory } from "../user-context/memory-suppression.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 { slugifyProjectName } from "../projects/project-store.js";
|
|
10
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
11
9
|
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
10
|
+
import { slugifyProjectName } from "../projects/project-store.js";
|
|
12
11
|
import { LocalAppStore } from "./store.js";
|
|
12
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.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 { loadConfig } from "../config/loader.js";
|
|
6
5
|
import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
|
|
6
|
+
import { loadConfig } from "../config/loader.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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { registerMediaUnderstandingProvider } from "./registry.js";
|
|
1
2
|
import { normalizeBaseUrl, postMultipartRequest } from "../media-shared/http/provider-http.js";
|
|
2
3
|
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
|
/**
|
|
@@ -85,8 +85,9 @@ var MemoryLearningService = class {
|
|
|
85
85
|
err,
|
|
86
86
|
jobId: job.job_id,
|
|
87
87
|
conversationId: job.conversation_id,
|
|
88
|
-
phase: "extract"
|
|
89
|
-
|
|
88
|
+
phase: "extract",
|
|
89
|
+
attempts: job.attempts
|
|
90
|
+
}, job.attempts >= 3 ? "Memory learning failed; retry limit reached" : "Memory learning failed; retry queued");
|
|
90
91
|
} finally {
|
|
91
92
|
clearInterval(renew);
|
|
92
93
|
}
|
|
@@ -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";
|
|
7
9
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
8
10
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
9
|
-
import {
|
|
10
|
-
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
11
|
+
import { isLoopbackModel } from "../providers/local-model.js";
|
|
11
12
|
import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
|
|
13
|
+
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
12
14
|
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 "../knowledge-memory/index.js";
|
|
8
7
|
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
8
|
+
import "../knowledge-memory/index.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 { isSTTAvailable } from "../voice/stt/availability.js";
|
|
4
|
-
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
5
|
-
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
6
|
-
import "../voice/stt/index.js";
|
|
7
3
|
import { extractDocumentText } from "../document-understanding/extract.js";
|
|
8
4
|
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
9
5
|
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
6
|
+
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
7
|
+
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
8
|
+
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
9
|
+
import "../voice/stt/index.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";
|
|
1
2
|
import { resolveNoteMediaDir, resolveNotesDir } from "./paths.js";
|
|
2
3
|
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";
|
|
12
9
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
13
10
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
11
|
+
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
14
12
|
import { partitionAttachmentsByReference } from "./note-attachment-sync.js";
|
|
15
13
|
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";
|
|
3
4
|
import { canAccessConnectorAccount, currentAccountConnections } from "../connectors/account-access.js";
|
|
4
5
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
5
|
-
import { isPersonalConversation } from "./repository.js";
|
|
6
|
-
import { assessSpecialist } from "../agent-matching/service.js";
|
|
7
6
|
import { connectionCandidates, resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
7
|
+
import { assessSpecialist } from "../agent-matching/service.js";
|
|
8
8
|
//#region src/personal-agent/capability-service.ts
|
|
9
9
|
init_repository();
|
|
10
10
|
init_connector_repository();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PersonalFeedbackSchema, PersonalProactivitySettingsSchema, PersonalStrategyRollbackSchema } from "../../../packages/gateway-contract/src/personal-proactivity.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { getPersonalAgent } from "../repository.js";
|
|
4
3
|
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
4
|
+
import { getPersonalAgent } from "../repository.js";
|
|
5
5
|
import { getProactivitySettings, listInterestCandidates, patchAttention, patchProactivitySettings, provenanceDetail, recordFeedback, rollbackStrategy, strategyState } from "./repository.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/personal-agent/proactivity/routes.ts
|
|
@@ -6,16 +6,16 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
6
6
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
|
|
7
7
|
import { appendTranscriptEntry, init_transcript_repository } from "../../storage/sqlite/transcript-repository.js";
|
|
8
8
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
9
|
-
import {
|
|
10
|
-
import { getPersonalAgent } from "../repository.js";
|
|
11
|
-
import { DurableState } from "../../storage/sqlite/durable-state.js";
|
|
12
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
|
|
9
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
13
10
|
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
14
11
|
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
12
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
|
|
13
|
+
import { getPersonalAgent } from "../repository.js";
|
|
14
|
+
import { emitSessionTranscriptUpdate } from "../../session/transcript-events.js";
|
|
15
|
+
import { DurableState } from "../../storage/sqlite/durable-state.js";
|
|
18
16
|
import { enqueueDue, enqueueWakeup, getAttention, getAttentionSources, getProactivitySettings, isQuiet, listAttention, localDay, preparationStrategy, recordFeedback, reserveModelCall, saveAttention, sourceFingerprint, userText } from "./repository.js";
|
|
17
|
+
import { PERSONAL_PERSONA_GUIDANCE } from "../persona.js";
|
|
18
|
+
import { personalConversationState } from "../conversation-state.js";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
20
20
|
import { z } from "zod";
|
|
21
21
|
//#region src/personal-agent/proactivity/service.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
4
|
+
import { isKnowledgeCurrent, knowledgeItemAllowed, listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
5
|
+
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
6
|
+
import "../knowledge-memory/index.js";
|
|
4
7
|
import { getActiveAssertionForSlot } from "../user-model/repository.js";
|
|
5
|
-
import {
|
|
6
|
-
import { listPersonalResults } from "./result-reader.js";
|
|
7
|
-
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
8
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
8
9
|
import { canUseAssertion } from "../user-model/usage-policy.js";
|
|
9
10
|
import "../user-model/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import "
|
|
13
|
-
import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
|
|
11
|
+
import { isPersonalConversation } from "./repository.js";
|
|
12
|
+
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
13
|
+
import { listPersonalResults } from "./result-reader.js";
|
|
14
14
|
//#region src/personal-agent/prompt-context.ts
|
|
15
15
|
init_sqlite();
|
|
16
16
|
const clip = (value, limit) => value && (value.length > limit ? `${value.slice(0, limit - 1)}…` : value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES, PREVIOUS_PERSONAL_REPLY_EXAMPLES, PREVIOUS_PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
2
1
|
import { PERSONAL_EMOTIONAL_STYLE_RULE, PERSONAL_IDENTITY_CONTINUITY_RULE, PERSONAL_PERSONA_GUIDANCE, PREVIOUS_PERSONAL_EMOTIONAL_STYLE_RULE, PREVIOUS_PERSONAL_IDENTITY_CONTINUITY_RULE, PREVIOUS_PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
|
|
3
2
|
import { PERSONAL_COMMUNICATION_RULES, PERSONAL_PREVIOUS_DELEGATION_COMMUNICATION, PERSONAL_PREVIOUS_RESULT_COMMUNICATION, PERSONAL_RELIABILITY_RULES } from "./communication.js";
|
|
3
|
+
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES, PREVIOUS_PERSONAL_REPLY_EXAMPLES, PREVIOUS_PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
4
4
|
//#region src/personal-agent/prompts.ts
|
|
5
5
|
const LEGACY_DELEGATION_RULE = "Answer simple requests directly. For complex work, use personal_task agents to find a suitable specialist, then create a Task and remain available to talk. Never claim a task was created before the tool confirms it.";
|
|
6
6
|
const PREVIOUS_DELEGATION_RULES = [
|
|
@@ -10,21 +10,21 @@ import { appendTranscriptEntry, init_transcript_repository, loadLlmMessagesForSe
|
|
|
10
10
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
11
11
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
12
12
|
import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
|
|
13
|
-
import {
|
|
13
|
+
import { init_providers, resolveModel } from "../providers/index.js";
|
|
14
|
+
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
15
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
14
16
|
import { getPersonalAgentByConversation } from "./repository.js";
|
|
15
|
-
import {
|
|
17
|
+
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
16
18
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
17
|
-
import {
|
|
19
|
+
import { loadProfileBootstrapFiles } from "../agent/bootstrap/load-bootstrap-files.js";
|
|
20
|
+
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
18
21
|
import { hasPersonalResultFileLinks, sanitizePersonalResultFileLinks } from "./result-file-links.js";
|
|
19
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
20
|
-
import { init_providers, resolveModel } from "../providers/index.js";
|
|
21
|
-
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
22
22
|
import { taskInstructionSequence } from "../tasks/task-research-result.js";
|
|
23
23
|
import { recordPersonalPerformance } from "./performance.js";
|
|
24
|
-
import {
|
|
25
|
-
import { personalConversationState } from "./conversation-state.js";
|
|
24
|
+
import { TaskCriterionReviewRepository } from "../tasks/task-criterion-review-repository.js";
|
|
26
25
|
import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
|
|
27
|
-
import {
|
|
26
|
+
import { personalConversationState } from "./conversation-state.js";
|
|
27
|
+
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
28
28
|
import { randomUUID } from "node:crypto";
|
|
29
29
|
import { z } from "zod";
|
|
30
30
|
//#region src/personal-agent/reply-composer.ts
|
|
@@ -7,11 +7,11 @@ import { init_session_instance_repository, readCurrentTranscriptId } from "../st
|
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-repository.js";
|
|
8
8
|
import { getPersonalRequest, init_request_repository, updatePersonalRequest } from "./request-repository.js";
|
|
9
9
|
import { appendTranscriptEntry, init_transcript_repository, loadLlmMessagesForSession } from "../storage/sqlite/transcript-repository.js";
|
|
10
|
-
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
11
10
|
import { getPersonalAgentByConversation } from "./repository.js";
|
|
11
|
+
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
12
12
|
import { warmPersonalResult } from "./result-reader.js";
|
|
13
|
-
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
14
13
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
14
|
+
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
15
15
|
import { PersonalRequestResultSchema, renderPersonalRequestResult } from "./request-result.js";
|
|
16
16
|
import { enqueuePersonalReply } from "./reply-composer.js";
|
|
17
17
|
//#region src/personal-agent/request-delivery.ts
|
|
@@ -12,19 +12,19 @@ import { getConnectorAccount, init_connector_account_repository } from "../stora
|
|
|
12
12
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
|
|
13
13
|
import { cancelConnectionObjective, init_connection_wait_repository, publishConnectionWait, requireSessionConnection } from "../storage/sqlite/connection-wait-repository.js";
|
|
14
14
|
import { getUserProfileSnapshot } from "../user-model/profile.js";
|
|
15
|
+
import { isPersonalConversation } from "./repository.js";
|
|
15
16
|
import { canAccessConnectorAccount } from "../connectors/account-access.js";
|
|
16
17
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
17
|
-
import {
|
|
18
|
+
import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
18
19
|
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
19
20
|
import { defineTaskContract } from "../tasks/task-contract-definition.js";
|
|
21
|
+
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
20
22
|
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
21
|
-
import {
|
|
23
|
+
import { PERSONAL_WORKER_RESULT_GUIDANCE } from "./communication.js";
|
|
22
24
|
import { assessSpecialist } from "../agent-matching/service.js";
|
|
23
|
-
import { assertSpecialistEligible } from "../agent-matching/delegation-service.js";
|
|
24
|
-
import { resolveConnectionCandidate } from "../connectors/connection-candidates.js";
|
|
25
25
|
import { personalCapabilities } from "./capability-service.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
26
|
+
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
27
|
+
import { assertSpecialistEligible } from "../agent-matching/delegation-service.js";
|
|
28
28
|
import { createHash, randomUUID } from "node:crypto";
|
|
29
29
|
//#region src/personal-agent/request-service.ts
|
|
30
30
|
init_src();
|
|
@@ -7,10 +7,10 @@ import { init_session_instance_repository, readCurrentTranscriptId } from "../st
|
|
|
7
7
|
import { init_request_repository, personalRequestForTask } from "./request-repository.js";
|
|
8
8
|
import { getConnectorAccount, init_connector_account_repository } from "../storage/sqlite/connector-account-repository.js";
|
|
9
9
|
import { getConnectorConnection, getConnectorInstallation, init_connector_repository } from "../storage/sqlite/connector-repository.js";
|
|
10
|
+
import { isPersonalConversation } from "./repository.js";
|
|
10
11
|
import { canAccessConnectorAccount } from "../connectors/account-access.js";
|
|
11
12
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
12
13
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
13
|
-
import { isPersonalConversation } from "./repository.js";
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
16
16
|
import { fileURLToPath } from "node:url";
|
|
@@ -6,8 +6,8 @@ import { init_agent_config } from "../agent-config/index.js";
|
|
|
6
6
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
7
7
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
8
8
|
import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
|
|
9
|
-
import { DEFAULT_PERSONAL_PREFERENCES, getPersonalAgent, personalAgentId } from "./repository.js";
|
|
10
9
|
import { getAvailableModels, init_providers } from "../providers/index.js";
|
|
10
|
+
import { DEFAULT_PERSONAL_PREFERENCES, getPersonalAgent, personalAgentId } from "./repository.js";
|
|
11
11
|
import { PERSONAL_MAIN_TOOL_IDS, PERSONAL_READ_TOOL_ALIASES } from "./policy.js";
|
|
12
12
|
import { getModelThinking } from "../providers/model-thinking.js";
|
|
13
13
|
import { personalInstructions, upgradePersonalInstructions } from "./prompts.js";
|
|
@@ -6,8 +6,8 @@ import { TaskRepository, init_task_repository } from "../tasks/task-repository.j
|
|
|
6
6
|
import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-repository.js";
|
|
7
7
|
import { TaskAllocationRepository } from "../tasks/task-allocation-repository.js";
|
|
8
8
|
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
9
|
-
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
10
9
|
import { abortEmbeddedRun, getEmbeddedRunByConversationId } from "../agent/embedded/runs.js";
|
|
10
|
+
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
11
11
|
//#region src/personal-agent/task-cancel.ts
|
|
12
12
|
init_transaction();
|
|
13
13
|
init_task_repository();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_resolution, resolveConnectedPlatformDiscovery, resolveConnectedPlatformEndpoint, setActivePlatformDiscovery } from "./resolution.js";
|
|
2
1
|
import { AgentManifestSchema, PlatformCapabilitySchema, PlatformConfigSchema, PlatformDiscoverySchema, PlatformEventSchema, init_contracts } from "./contracts.js";
|
|
2
|
+
import { init_resolution, resolveConnectedPlatformDiscovery, resolveConnectedPlatformEndpoint, setActivePlatformDiscovery } from "./resolution.js";
|
|
3
3
|
import { PLATFORM_RUNTIME_PROFILE, PLATFORM_RUNTIME_PROVIDER, PlatformRuntimeClient, RuntimeCommandSchema, discoverPlatform } from "./client.js";
|
|
4
4
|
import { processRuntimeCommand } from "./worker.js";
|
|
5
5
|
//#region src/platform/index.ts
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProjectStore, slugifyProjectName } from "./project-store.js";
|
|
2
|
+
import { getProjectForSession, getProjectWorkspacePathForSession, resolveProjectWorkspacePath } from "./workspace.js";
|
|
2
3
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, ensureWorkspaceDirectory, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
|
|
3
4
|
import { inferProjectExecutionMode, inferProjectKind } from "./project-kind.js";
|
|
4
5
|
import { bindSessionToProject, bindSessionsToProject, listProjectConversationIds, moveSessionToProject, unbindSessionFromProject } from "./session-bind.js";
|
|
@@ -10,5 +11,4 @@ import { buildProjectLoopOverview } from "./project-loop.js";
|
|
|
10
11
|
import { bindWorkflowRunToProject } from "./workflow-bind.js";
|
|
11
12
|
import { bindAutomationToProject } from "./automation-bind.js";
|
|
12
13
|
import { bindKnowledgeItemToProject } from "./knowledge-bind.js";
|
|
13
|
-
import { getProjectForSession, getProjectWorkspacePathForSession, resolveProjectWorkspacePath } from "./workspace.js";
|
|
14
14
|
export { CODING_PROJECT_AGENT_ID, ProjectDeletionBlockedError, ProjectService, ProjectSkillError, ProjectSkillService, ProjectStore, ProjectWorkspaceConflictError, ProjectWorkspaceInUseError, ProjectWorkspaceInvalidError, ProjectWorkspaceMissingError, bindAutomationToProject, bindKnowledgeItemToProject, bindSessionToProject, bindSessionsToProject, bindWorkflowRunToProject, buildProjectLoopOverview, canonicalWorkspacePath, ensureWorkspaceDirectory, getProjectForSession, getProjectWorkspacePathForSession, inferProjectExecutionMode, inferProjectKind, inferProjectNameFromWorkspaceRoot, inferSuggestedProjectDefaultAgentId, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, isValidProjectAgentId, listProjectConversationIds, moveSessionToProject, normalizeProjectAgentId, resolveProjectAgentId, resolveProjectWorkspacePath, resolveWorkspaceProjectRoot, slugifyProjectName, suggestProjectDefaultAgentId, unbindSessionFromProject, workspaceDirectoryExists };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inferProjectKind } from "./project-kind.js";
|
|
2
1
|
import { agentExists, init_resolve_route } from "../routing/resolve-route.js";
|
|
2
|
+
import { inferProjectKind } from "./project-kind.js";
|
|
3
3
|
//#region src/projects/project-agent-suggestion.ts
|
|
4
4
|
init_resolve_route();
|
|
5
5
|
const CODING_PROJECT_AGENT_ID = "coder";
|
|
@@ -2,12 +2,12 @@ import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/t
|
|
|
2
2
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
4
4
|
import { changedFieldsFromPatch, emitActivity, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
|
|
5
|
+
import { ExecutionEnvironmentStore } from "../execution-environments/store.js";
|
|
5
6
|
import { ProjectStore } from "./project-store.js";
|
|
6
7
|
import { enqueueProjectChanged } from "./project-change-events.js";
|
|
7
8
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError, canonicalWorkspacePath, inferProjectNameFromWorkspaceRoot, isPathSameOrInsideWorkspace, isSafeAutoCreateWorkspaceRoot, resolveWorkspaceProjectRoot, workspaceDirectoryExists } from "./workspace-project.js";
|
|
8
9
|
import { drainProjectWorkspaceCreation, queueProjectWorkspaceCreation } from "./project-workspace-creation.js";
|
|
9
10
|
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
10
|
-
import { ExecutionEnvironmentStore } from "../execution-environments/store.js";
|
|
11
11
|
import { listPendingProjectUnderstandingRuns } from "../work-discovery/repository.js";
|
|
12
12
|
import { inferProjectExecutionMode } from "./project-kind.js";
|
|
13
13
|
import { bindSessionToProject, listProjectConversationIds, unbindSessionFromProject } from "./session-bind.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
|
|
2
|
-
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../agent/skills/workspace-skills-dir.js";
|
|
3
|
-
import { loadSkills, loadWorkspaceSkillInventory } from "../agent/skills/index.js";
|
|
4
2
|
import { removeSkillsLockEntry } from "../agent/skills/hub-lock.js";
|
|
5
3
|
import { deleteManagedSkill, installSkillFromZip, isValidSkillId } from "../agent/skills/managed-store.js";
|
|
4
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../agent/skills/workspace-skills-dir.js";
|
|
5
|
+
import { loadSkills, loadWorkspaceSkillInventory } from "../agent/skills/index.js";
|
|
6
6
|
import { pullSkillFromSource } from "../agent/skills/hub-pull.js";
|
|
7
7
|
import { downloadFromMarketplace } from "../agent/skills/skills-marketplace.js";
|
|
8
8
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
3
3
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
4
|
-
import { ProjectStore } from "./project-store.js";
|
|
5
4
|
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
6
5
|
import { projectWorkspacePath } from "../session/session-workspace.js";
|
|
6
|
+
import { ProjectStore } from "./project-store.js";
|
|
7
7
|
//#region src/projects/workspace.ts
|
|
8
8
|
init_sqlite();
|
|
9
9
|
function resolveProjectWorkspacePath(config, conversationId, project) {
|
|
@@ -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 { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
6
5
|
import { parseImageGenerationModelRef } from "../agent/image/generation/model-ref.js";
|
|
6
|
+
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
7
7
|
//#region src/providers/model-reference-auditor.ts
|
|
8
8
|
init_repository();
|
|
9
9
|
init_model_policy();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
|
-
import { resolveModelsJsonPath } from "../config/paths.js";
|
|
5
4
|
import { init_resolve_config_value, resolveConfigValue, resolveHeaders } from "../config/resolve-config-value.js";
|
|
5
|
+
import { resolveModelsJsonPath } from "../config/paths.js";
|
|
6
6
|
import { init_provider_policy, isRetiredModelProvider } from "./provider-policy.js";
|
|
7
7
|
import { getDefaultModelValues, init_models_json, validateModelsConfig } from "../config/models-json.js";
|
|
8
8
|
import { getApiKeyFromEnv, init_env_keys } from "./env-keys.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { hasGatewayScope, init_gateway_scopes } from "../gateway/security/gateway-scopes.js";
|
|
4
|
-
import { REALTIME_CAPABILITIES, REALTIME_HEARTBEAT_INTERVAL_MS, REALTIME_HEARTBEAT_TIMEOUT_MS, REALTIME_HELLO_TIMEOUT_MS, REALTIME_MAX_CLIENT_FRAME_BYTES, parseClientRealtimeJsonFrame, parseClientRealtimeMessage } from "../../packages/realtime-protocol/src/index.js";
|
|
5
4
|
import { EndpointToolPolicyError } from "../endpoint-tools/policy.js";
|
|
5
|
+
import { REALTIME_CAPABILITIES, REALTIME_HEARTBEAT_INTERVAL_MS, REALTIME_HEARTBEAT_TIMEOUT_MS, REALTIME_HELLO_TIMEOUT_MS, REALTIME_MAX_CLIENT_FRAME_BYTES, parseClientRealtimeJsonFrame, parseClientRealtimeMessage } from "../../packages/realtime-protocol/src/index.js";
|
|
6
6
|
import { verifyDeviceConnectionProof } from "../gateway/security/device-request-proof.js";
|
|
7
7
|
import { compactRunEvent } from "./compact-run-event.js";
|
|
8
8
|
import { createPreauthConnectionBudget } from "../gateway/security/preauth-connection-budget.js";
|
|
@@ -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";
|
|
5
6
|
import { collectExposureConflicts } from "./exposure-guards.js";
|
|
6
7
|
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
|
|
@@ -2,8 +2,8 @@ import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, init_account_id, normalizeAccountId, normalizeOptionalAccountId } from "./account-id.js";
|
|
3
3
|
import { validateConversationId } from "../../packages/gateway-contract/src/conversation-identity.js";
|
|
4
4
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
|
-
import { init_string_coerce, normalizeLowercaseStringOrEmpty } from "../utils/string-coerce.js";
|
|
6
5
|
import { init_conversation_repository, requireConversation, resolveRoutedConversation } from "../storage/sqlite/conversation-repository.js";
|
|
6
|
+
import { init_string_coerce, normalizeLowercaseStringOrEmpty } from "../utils/string-coerce.js";
|
|
7
7
|
//#region src/routing/agent-session-key.ts
|
|
8
8
|
function normalizeMainKey(value) {
|
|
9
9
|
return normalizeLowercaseStringOrEmpty(value) || "main";
|
|
@@ -5,8 +5,8 @@ import { SceneRepository } from './repository.js';
|
|
|
5
5
|
import { SceneCapabilityRegistry } from './registry.js';
|
|
6
6
|
export declare const readOnlyResultSchema: z.ZodObject<{
|
|
7
7
|
kind: z.ZodEnum<{
|
|
8
|
-
artifact: "artifact";
|
|
9
8
|
decision: "decision";
|
|
9
|
+
artifact: "artifact";
|
|
10
10
|
observation: "observation";
|
|
11
11
|
no_change: "no_change";
|
|
12
12
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MessageBus } from "../../infra/bus/queue.js";
|
|
2
|
-
import "../../infra/bus/index.js";
|
|
3
|
-
import { SessionStore } from "../../session/store.js";
|
|
4
1
|
import { createSqliteTranscriptRuntime } from "../../agent/embedded/transcript-runtime.js";
|
|
5
|
-
import { createStructuredOutputTool } from "../../agent/workflow/structured-output-tool.js";
|
|
6
2
|
import { createDelegateChildHandle } from "../../agent/child-agent-factory.js";
|
|
7
3
|
import { createDelegationParentPolicy } from "../../agent/tools/delegation-parent-policy.js";
|
|
4
|
+
import { SessionStore } from "../../session/store.js";
|
|
5
|
+
import { MessageBus } from "../../infra/bus/queue.js";
|
|
6
|
+
import "../../infra/bus/index.js";
|
|
7
|
+
import { createStructuredOutputTool } from "../../agent/workflow/structured-output-tool.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";
|
|
@@ -30,7 +30,7 @@ export declare const taskFollowUpTemplate: {
|
|
|
30
30
|
maxOutputTokens: number;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
allowedOutcomeKinds: ("
|
|
33
|
+
allowedOutcomeKinds: ("decision" | "artifact" | "receipt" | "observation" | "no_change" | "state_change" | "effect_proposal")[];
|
|
34
34
|
allowedEffectHandlers: string[];
|
|
35
35
|
};
|
|
36
36
|
export declare const decisionLogTemplate: {
|
|
@@ -62,7 +62,7 @@ export declare const decisionLogTemplate: {
|
|
|
62
62
|
maxOutputTokens: number;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
allowedOutcomeKinds: ("
|
|
65
|
+
allowedOutcomeKinds: ("decision" | "artifact" | "receipt" | "observation" | "no_change" | "state_change" | "effect_proposal")[];
|
|
66
66
|
allowedEffectHandlers: string[];
|
|
67
67
|
};
|
|
68
68
|
export declare const sourceReferenceSchema: z.ZodObject<{
|