@xopcai/xopc 0.0.392 → 0.0.394
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/manifest.json +1 -1
- package/dist/extensions/telegram/src/plugin.js +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CZmaQbC9.js → agent-avatar-dicebear-CIpp0ZG6.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DzkKx0Dv.js +1 -0
- package/dist/gateway/static/root/assets/agent-plugin-dialog-dWqozfQm.js +1 -0
- package/dist/gateway/static/root/assets/agents-CXG8SYr5.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-znm6_dW_.js → agents-admin-api-B5aykqg_.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-SmT1HDDg.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-Da9jf0ZC.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-DYaxWrTI.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-dSkmoISk.js → archive-plugin-D6bFXdsA.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DhWRn0dZ.js → automations-page-CM3wI2Nr.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BSMdKgxD.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-BJlZrYym.js → binary-plugins-CYKGdQnF.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-OHBssIfN.js → block-editor-Fx38xFF4.js} +40 -40
- package/dist/gateway/static/root/assets/browser-automation-inputs-CQMc-Gol.js +1 -0
- package/dist/gateway/static/root/assets/browser-automations-page-C4VhFvyu.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-8WZOkfL7.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-page-dreSJEes.js +2 -0
- package/dist/gateway/static/root/assets/{capabilities-CgDteXZH.js → capabilities-pt2M56-E.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-9DviVNpG.js +8 -0
- package/dist/gateway/static/root/assets/capability-header-actions-AbVbg7kZ.js +1 -0
- package/dist/gateway/static/root/assets/channels-DqGCiVmr.js +1 -0
- package/dist/gateway/static/root/assets/chat-terminal-dock-djkqphez.js +36 -0
- package/dist/gateway/static/root/assets/computer-settings-page-DE9zl7bK.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page--gB9vL3C.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-Bcr2NNoX.js +1 -0
- package/dist/gateway/static/root/assets/date-picker-D9q-5a8a.js +1 -0
- package/dist/gateway/static/root/assets/dependency-picker-Ci0dApIr.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-CjaVVJDQ.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-settings-C7TFazyr.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-sprite-Bd-aOI7N.js +30 -0
- package/dist/gateway/static/root/assets/desktop-pet-sprite-BuB0g8zv.css +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-B6S-RpNJ.js +1 -0
- package/dist/gateway/static/root/assets/directory-picker-path-field-BpymM_E_.js +1 -0
- package/dist/gateway/static/root/assets/extension-debug-page-CABAv66K.js +1 -0
- package/dist/gateway/static/root/assets/extension-page-B3dACpKA.js +1 -0
- package/dist/gateway/static/root/assets/extension-settings-page-B3bwBvgp.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-BM__9Fws.js → gateway-config-swr-BEePO3Wl.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DS_GDx-x.js → gateway-realtime-Dng_VOvI.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-DtlBf7oH.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-CzA1bTXZ.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DosoyMIH.js → gateway-startup-retry-CDCiy7Cd.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-BYHXWIfK.js → highlighted-body-KQOG7T2V-53FJXO9w.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-KRPp-I4O.js +2 -0
- package/dist/gateway/static/root/assets/image-generation-api-DWRmAkoe.js +1 -0
- package/dist/gateway/static/root/assets/imports-page-B0Y8iy6G.js +1 -0
- package/dist/gateway/static/root/assets/index-BvAvfZ5R.js +260 -0
- package/dist/gateway/static/root/assets/index-CMRCop32.css +1 -0
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-CjkACa5H.js +1 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-DROP52YA.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-page-BELUF7Pg.js +1 -0
- package/dist/gateway/static/root/assets/{local-session-drafts-Bye3ZtsW.js → local-session-drafts-CYEDUPH7.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-BKyOF23r.js → locale-store-CE7L6MlS.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DBm3g8Mu.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-CcsW4Z-r.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-D_7clISS.js → markdown-view-PrKvVpRh.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-B_4o8hac.js → media-plugins-UU3qSAhq.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-CG664NRI.js +1 -0
- package/dist/gateway/static/root/assets/messages-CaeL_miw.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-BS9XnQ8a.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-Cfy_WnU-.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-BD7T7uqR.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-DZEh3dXq.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives--3aGeYJ5.js +1 -0
- package/dist/gateway/static/root/assets/product-open-page-B0ZxsnFO.js +1 -0
- package/dist/gateway/static/root/assets/product-preview-content-CheSHKJq.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-Bm7bVHVo.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-DPA6QL_Z.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-DLHHYP_v.js → registry-api-BO2Ck3aA.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-Pxf4EiKh.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-Dq_50s27.js → runtime-tools-api-B1sb8nlw.js} +1 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-2BnqCeNt.js +1 -0
- package/dist/gateway/static/root/assets/schema-form-KmnpEBtP.js +1 -0
- package/dist/gateway/static/root/assets/{session-api-Br11ih_M.js → session-api-CaAUJvu1.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-DoFTlgNz.js +16 -0
- package/dist/gateway/static/root/assets/sessions-page-d0anT7iK.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-DfDaPyh5.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-section-Db5XOKMH.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-4odCW0_2.js → settings-page-aRM6ax6B.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DCNAcalA.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-DR3Esqa_.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-CvEwnQch.js +1 -0
- package/dist/gateway/static/root/assets/skill-api-BJBU8YgD.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-DEQ1bdN9.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-BXNFSIIy.js +2 -0
- package/dist/gateway/static/root/assets/sliding-indicator-hwz0sx3h.js +1 -0
- package/dist/gateway/static/root/assets/style-Df_wL13k.js +7 -0
- package/dist/gateway/static/root/assets/system-settings-panel-DWnyafB7.js +1 -0
- package/dist/gateway/static/root/assets/tab-completion-input-CxtEp0aP.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-DyHDW8A5.js +2 -0
- package/dist/gateway/static/root/assets/{task-expandable-content-CmQt5uxa.js → task-expandable-content-DTEVoNrM.js} +1 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-vvREqbQ3.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-BEzsymVO.js +1 -0
- package/dist/gateway/static/root/assets/usage-page-ByYOqsHo.js +1 -0
- package/dist/gateway/static/root/assets/use-autosave-Cp4kZ3E-.js +1 -0
- package/dist/gateway/static/root/assets/user-model-page-D0qeCXwD.js +2 -0
- package/dist/gateway/static/root/assets/voice-api-key-field-DH3OdR-w.js +1 -0
- package/dist/gateway/static/root/assets/{voice-config-api-CmDtDA4g.js → voice-config-api-D0Wscn9W.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-CICdfBBR.js +1 -0
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-VIJQCUY5.js +3 -0
- package/dist/gateway/static/root/assets/workflows-page-DDYp2Jbo.js +6 -0
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-BTMfgVTk.js +1 -0
- package/dist/gateway/static/root/index.html +20 -69
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-instance-gateway.d.ts +2 -0
- package/dist/src/agent/agent-manager.d.ts +1 -1
- package/dist/src/agent/agent-manager.js +19 -28
- package/dist/src/agent/background-review/run-background-review.js +6 -6
- package/dist/src/agent/child-agent-factory.d.ts +2 -1
- package/dist/src/agent/child-agent-factory.js +2 -1
- package/dist/src/agent/coding/projectEvidence.d.ts +9 -0
- package/dist/src/agent/coding/projectEvidence.js +177 -0
- package/dist/src/agent/coding/repository-instructions.d.ts +8 -1
- package/dist/src/agent/coding/repository-instructions.js +9 -4
- package/dist/src/agent/coding/run-verification.d.ts +17 -2
- package/dist/src/agent/coding/run-verification.js +82 -12
- package/dist/src/agent/context/execution-context.js +3 -3
- package/dist/src/agent/context/project-context.js +3 -3
- package/dist/src/agent/embedded/agent-profile-context.js +10 -4
- package/dist/src/agent/embedded/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/execution-context.d.ts +1 -0
- package/dist/src/agent/embedded/execution-context.js +4 -1
- package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
- package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +3 -2
- package/dist/src/agent/embedded/run-turn.js +42 -6
- package/dist/src/agent/embedded/session-runner.js +1 -1
- package/dist/src/agent/embedded/session-tool-result-guard.js +5 -0
- package/dist/src/agent/embedded/types.d.ts +2 -0
- package/dist/src/agent/embedded/xopc-tools-bridge.js +2 -1
- package/dist/src/agent/external-tools/cliProvider.js +2 -2
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/external-tools/extension-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/memory-provider.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +3 -3
- package/dist/src/agent/independent-execution.d.ts +2 -0
- package/dist/src/agent/independent-execution.js +12 -0
- package/dist/src/agent/memory/compaction.js +1 -1
- package/dist/src/agent/orchestration/delegation-scope.d.ts +1 -0
- package/dist/src/agent/orchestration/delegation-scope.js +4 -1
- package/dist/src/agent/orchestration/loop-guard.js +6 -2
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/sections/agent-identity.js +4 -6
- package/dist/src/agent/prompt/sections/behavior.d.ts +3 -2
- package/dist/src/agent/prompt/sections/behavior.js +34 -27
- package/dist/src/agent/prompt/sections/memory-skills.d.ts +1 -1
- package/dist/src/agent/prompt/sections/memory-skills.js +10 -11
- package/dist/src/agent/prompt/sections/messaging-runtime.d.ts +3 -2
- package/dist/src/agent/prompt/sections/messaging-runtime.js +21 -24
- package/dist/src/agent/prompt/sections/response-language.js +7 -6
- package/dist/src/agent/prompt/sections/tooling.js +11 -10
- package/dist/src/agent/prompt/service-prompt-builder.js +4 -2
- package/dist/src/agent/prompt/system-prompt-params.d.ts +2 -1
- package/dist/src/agent/prompt/system-prompt-params.js +2 -0
- package/dist/src/agent/prompt/system-prompt.d.ts +2 -1
- package/dist/src/agent/prompt/system-prompt.js +21 -18
- package/dist/src/agent/prompt/types.d.ts +2 -0
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +2 -2
- package/dist/src/agent/service.js +12 -11
- package/dist/src/agent/session/session-config-service.js +2 -2
- 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/format-skills-prompt.js +5 -2
- package/dist/src/agent/skills/hub-pull.js +2 -2
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +6 -6
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +5 -0
- package/dist/src/agent/tools/dataBatch.d.ts +1 -0
- package/dist/src/agent/tools/dataBatch.js +4 -1
- package/dist/src/agent/tools/delegate-tool.d.ts +1 -0
- package/dist/src/agent/tools/delegate-tool.js +1 -0
- package/dist/src/agent/tools/error-tracker.js +4 -2
- package/dist/src/agent/tools/exec-command.d.ts +2 -0
- package/dist/src/agent/tools/exec-command.js +48 -3
- package/dist/src/agent/tools/factory.d.ts +1 -0
- package/dist/src/agent/tools/factory.js +23 -24
- package/dist/src/agent/tools/{delegation-parent-policy.d.ts → noninteractive-tool-policy.d.ts} +1 -1
- package/dist/src/agent/tools/{delegation-parent-policy.js → noninteractive-tool-policy.js} +4 -4
- package/dist/src/agent/tools/personal-attention-tool.js +1 -1
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +2 -2
- 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/review-workspace.js +1 -1
- package/dist/src/agent/tools/search/cache.d.ts +3 -1
- package/dist/src/agent/tools/search/cache.js +4 -1
- package/dist/src/agent/tools/search/providers/deepseek-protocol.d.ts +9 -0
- package/dist/src/agent/tools/search/providers/deepseek-protocol.js +84 -0
- package/dist/src/agent/tools/search/providers/deepseek.d.ts +9 -0
- package/dist/src/agent/tools/search/providers/deepseek.js +55 -0
- package/dist/src/agent/tools/search/providers/xopc-cloud.d.ts +2 -1
- package/dist/src/agent/tools/search/providers/xopc-cloud.js +36 -1
- package/dist/src/agent/tools/search/registry.d.ts +1 -0
- package/dist/src/agent/tools/search/registry.js +32 -6
- package/dist/src/agent/tools/search/request-gate.d.ts +13 -0
- package/dist/src/agent/tools/search/request-gate.js +41 -0
- package/dist/src/agent/tools/search/resolve-config.js +1 -1
- package/dist/src/agent/tools/search/search-info.d.ts +8 -0
- package/dist/src/agent/tools/search/search-info.js +34 -0
- package/dist/src/agent/tools/search/types.d.ts +19 -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/toolExposure.d.ts +3 -0
- package/dist/src/agent/tools/toolExposure.js +25 -0
- package/dist/src/agent/tools/web.js +8 -1
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +11 -7
- package/dist/src/agent/workflow/subagent-runner.d.ts +1 -0
- package/dist/src/agent/workflow/subagent-runner.js +3 -3
- package/dist/src/agent/workflow/workflow-child-tools.js +13 -8
- package/dist/src/agent/workspace-runtime/registry.js +1 -1
- package/dist/src/agent-catalog/capabilities.js +2 -2
- 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/drafts.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/automations/service/action-executor.js +2 -2
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/capabilities/store-connector.js +2 -2
- package/dist/src/channels/index.js +1 -1
- package/dist/src/channels/manager.js +1 -1
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/chat-commands/context.js +1 -1
- package/dist/src/cli/command-manifest.js +1 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/channels.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/search.d.ts +2 -2
- package/dist/src/cli/commands/search.js +8 -6
- package/dist/src/cli/commands/skills.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/computer/flows.js +1 -1
- package/dist/src/computer/model-adapter.d.ts +3 -0
- package/dist/src/computer/model-adapter.js +120 -3
- package/dist/src/computer/model-policy.d.ts +1 -1
- package/dist/src/computer/model-policy.js +13 -6
- package/dist/src/computer/runtime.js +1 -0
- package/dist/src/config/agent-model-intents.js +1 -1
- package/dist/src/config/agent-profile.js +2 -2
- package/dist/src/config/index.js +1 -1
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.d.ts +30 -24
- package/dist/src/config/models-json.js +3 -1
- package/dist/src/config/outbound-proxy.d.ts +11 -0
- package/dist/src/config/outbound-proxy.js +30 -0
- package/dist/src/config/rules.js +5 -0
- package/dist/src/config/schema.d.ts +29 -6
- package/dist/src/config/schema.js +25 -8
- 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 +1 -1
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/health.js +1 -1
- 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/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +1 -1
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/config-tools-web.js +15 -4
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/gateway-workflow-host.types.d.ts +3 -0
- package/dist/src/gateway/hono/lib/config-payload.d.ts +5 -0
- package/dist/src/gateway/hono/lib/config-payload.js +6 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +7 -0
- package/dist/src/gateway/hono/routes/config-patch/misc.js +5 -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/memory-learning.js +2 -2
- package/dist/src/gateway/hono/routes/models.js +7 -4
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +4 -4
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.js +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/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 +6 -6
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +3 -3
- package/dist/src/gateway/service/config-coordinator.d.ts +8 -3
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +1 -1
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service.js +33 -31
- package/dist/src/gateway/session-context-summary.js +4 -4
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- 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/http-proxy-env.d.ts +3 -0
- package/dist/src/infra/http-proxy-env.js +22 -2
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/local-apps/service.js +3 -3
- package/dist/src/memory-learning/source-learning.js +2 -2
- 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.d.ts +2 -1
- package/dist/src/personal-agent/communication.js +11 -2
- package/dist/src/personal-agent/persona.d.ts +2 -1
- package/dist/src/personal-agent/persona.js +3 -2
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +5 -5
- package/dist/src/personal-agent/prompt-context.js +7 -7
- package/dist/src/personal-agent/prompts.d.ts +2 -0
- package/dist/src/personal-agent/prompts.js +69 -7
- package/dist/src/personal-agent/reply-composer.js +8 -8
- package/dist/src/personal-agent/reply-style.d.ts +4 -2
- package/dist/src/personal-agent/reply-style.js +19 -3
- package/dist/src/personal-agent/request-delivery.js +2 -2
- package/dist/src/personal-agent/request-service.js +19 -14
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +3 -3
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/pets/loopi-artwork.d.ts +2 -0
- package/dist/src/pets/loopi-artwork.js +36 -0
- package/dist/src/pets/pointer.d.ts +6 -0
- package/dist/src/pets/pointer.js +16 -0
- package/dist/src/platform/index.js +1 -1
- package/dist/src/project-trust/trust-store.d.ts +5 -0
- package/dist/src/project-trust/trust-store.js +7 -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/cloud-thinking.d.ts +3 -0
- package/dist/src/providers/cloud-thinking.js +13 -0
- package/dist/src/providers/index.js +3 -3
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-registry.js +6 -1
- package/dist/src/providers/model-supplements.d.ts +0 -2
- package/dist/src/providers/model-supplements.js +2 -18
- package/dist/src/providers/register-runtime-providers.js +3 -0
- package/dist/src/providers/xopc-cloud-credit-budget.d.ts +1 -0
- package/dist/src/providers/xopc-cloud-credit-budget.js +4 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/routing/resolve-route.js +1 -1
- package/dist/src/routing/resolve-tui-session-key.js +1 -1
- package/dist/src/session/index.js +1 -1
- 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 +2 -2
- package/dist/src/share/hosted-session-share.js +2 -2
- package/dist/src/share/session-share-service.js +1 -1
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +2 -2
- package/dist/src/tasks/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +3 -3
- package/dist/src/tasks/task-allocation-service.js +56 -45
- package/dist/src/tasks/task-application-service.js +11 -7
- 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-contract-planner.js +21 -6
- package/dist/src/tasks/task-handoff-service.js +2 -2
- package/dist/src/tasks/task-handoff.js +5 -5
- package/dist/src/tasks/task-language.d.ts +2 -0
- package/dist/src/tasks/task-language.js +13 -2
- 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 +9 -5
- package/dist/src/tasks/task-run-dispatcher.js +3 -2
- package/dist/src/tui/backends/embedded-backend.js +7 -7
- package/dist/src/tui/tui-commands.js +2 -2
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +3 -3
- package/dist/src/tui/tui.js +2 -2
- 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 +5 -5
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/runtime.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/service/workflow-run-service.js +7 -8
- package/package.json +7 -3
- package/dist/gateway/static/root/assets/activity-YogQEteU.js +0 -1
- package/dist/gateway/static/root/assets/activity-store-DtTSRUyF.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-0GXoU7WL.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-BxDqL7uc.js +0 -1
- package/dist/gateway/static/root/assets/agents-CYmRcXr-.js +0 -77
- package/dist/gateway/static/root/assets/app-chrome-BeB4KgOf.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-FhWeowCY.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-DXin262V.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-2M_l4Naz.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-CVIWgoTx.js +0 -6
- package/dist/gateway/static/root/assets/browser-automation-inputs-uVEhZWHz.js +0 -1
- package/dist/gateway/static/root/assets/browser-automations-page-CEFnpvTO.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-sQpJic5b.js +0 -3
- package/dist/gateway/static/root/assets/button-aIC072nz.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-BSB93QBR.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-BKkN4sTh.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DCZTR8Hu.js +0 -8
- package/dist/gateway/static/root/assets/capability-header-actions-D0HwmxyW.js +0 -1
- package/dist/gateway/static/root/assets/channels-DRraXYSd.js +0 -1
- package/dist/gateway/static/root/assets/chat-terminal-dock-DpM489kK.js +0 -36
- package/dist/gateway/static/root/assets/chevron-left-DqFhpbvK.js +0 -1
- package/dist/gateway/static/root/assets/chevron-right-BweFrslA.js +0 -1
- package/dist/gateway/static/root/assets/circle-alert-BEjgurr2.js +0 -1
- package/dist/gateway/static/root/assets/circle-dashed-8qMD7gHf.js +0 -1
- package/dist/gateway/static/root/assets/circle-dot-BAseJTrF.js +0 -1
- package/dist/gateway/static/root/assets/cloud-C4-yfnnk.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-D0ir9aA1.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-Y5SYaiJO.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-DRSbj4gn.js +0 -1
- package/dist/gateway/static/root/assets/copy-text-row-C7egVuKr.js +0 -1
- package/dist/gateway/static/root/assets/date-formatters-CUZAyDEg.js +0 -1
- package/dist/gateway/static/root/assets/date-picker-DyUP-8hR.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-QF9qLWIG.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-Qfns4SO-.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-CuITd-Xa.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-sprite-BP6iMVw1.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-C8RPqM_F.js +0 -1
- package/dist/gateway/static/root/assets/directory-picker-path-field-DnD9eyoU.js +0 -1
- package/dist/gateway/static/root/assets/dist-C3DSFZCi.js +0 -1
- package/dist/gateway/static/root/assets/electron-env-Dit0bHgy.js +0 -1
- package/dist/gateway/static/root/assets/extension-debug-page-B5ikNsSj.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-D-PBMAtT.js +0 -1
- package/dist/gateway/static/root/assets/extension-provider-CdlACvkE.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BPUYMNb0.js +0 -1
- package/dist/gateway/static/root/assets/form-field-width-DJw_jULe.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-uEdmIROn.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-BKj4PQs4.js +0 -1
- package/dist/gateway/static/root/assets/globe-DSSGFWFn.js +0 -1
- package/dist/gateway/static/root/assets/home-page-D1ZBF3me.js +0 -2
- package/dist/gateway/static/root/assets/image-generation-api-BB3D6OV1.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-BCcWIxOO.js +0 -1
- package/dist/gateway/static/root/assets/index-Bo70AuAq.js +0 -260
- package/dist/gateway/static/root/assets/index-BxoR4_xr.css +0 -1
- package/dist/gateway/static/root/assets/index.module-Cd9ENXfk.js +0 -1
- package/dist/gateway/static/root/assets/interaction-BdhHBbYa.js +0 -1
- package/dist/gateway/static/root/assets/is-masked-secret-DOkL5b_X.js +0 -1
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-Bc9UWPqr.js +0 -1
- package/dist/gateway/static/root/assets/loader-circle-CifKLtgG.js +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-jnK1j04U.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-page-DpN8UN_Y.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-DBR5mfxw.js +0 -2
- package/dist/gateway/static/root/assets/loopi-C09I2mNj.css +0 -1
- package/dist/gateway/static/root/assets/loopi-Djb8XU3l.js +0 -1
- package/dist/gateway/static/root/assets/management-settings-rs2cdb5f.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Bl4kOOZT.js +0 -1
- package/dist/gateway/static/root/assets/message-square-plus-XP0tGdlV.js +0 -1
- package/dist/gateway/static/root/assets/messages-B7VtMXec.js +0 -3
- package/dist/gateway/static/root/assets/mic-CuUb7zc-.js +0 -1
- package/dist/gateway/static/root/assets/minimize-2-DtOGrlpo.js +0 -1
- package/dist/gateway/static/root/assets/models-hub-cache-D0vR7vex.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-B7R-cZWE.js +0 -5
- package/dist/gateway/static/root/assets/notes-api-DZkezSIy.js +0 -2
- package/dist/gateway/static/root/assets/notes-page-DY9MNatd.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-C-X8J1IO.js +0 -1
- package/dist/gateway/static/root/assets/pencil-DmIY3Oa-.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-CIZWUoUh.js +0 -1
- package/dist/gateway/static/root/assets/popover-select-DGKUpVsz.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-BJU2fmPn.js +0 -1
- package/dist/gateway/static/root/assets/product-open-page-CYV_8zRl.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-DfQ9h_YX.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-B_fYXcAW.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-CHdeAtpp.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CbJWGHW_.js +0 -1
- package/dist/gateway/static/root/assets/rotate-ccw-JM1TBLpp.js +0 -1
- package/dist/gateway/static/root/assets/rotate-cw-LIg3Am9S.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-jqYXsCuk.js +0 -1
- package/dist/gateway/static/root/assets/schema-form-DNXZLVqh.js +0 -1
- package/dist/gateway/static/root/assets/search-DA7gz22f.js +0 -1
- package/dist/gateway/static/root/assets/secret-input-BxWHx6J6.js +0 -1
- package/dist/gateway/static/root/assets/send-session-input-NpLYu1ip.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-Bb9pevyM.js +0 -16
- package/dist/gateway/static/root/assets/sessions-page-DrGCnBhV.js +0 -1
- package/dist/gateway/static/root/assets/settings-2-D-csvaET.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-B61Eh7eB.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-draft-Dy10ldo8.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-num14vSv.js +0 -1
- package/dist/gateway/static/root/assets/settings-shell-dialog-layer-BU3UuiJr.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DaU9o0Ll.js +0 -1
- package/dist/gateway/static/root/assets/share-link-dialog-BhjQPZbF.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-LERhIwgz.js +0 -2
- package/dist/gateway/static/root/assets/shares-api-CgsiMdCX.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-DmvyqIyT.js +0 -1
- package/dist/gateway/static/root/assets/skeleton-BI5TyibZ.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-plToSoFo.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-utils-C7V4JVXM.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BFw81Ar6.js +0 -1
- package/dist/gateway/static/root/assets/skill-wire-pattern-BPpeIcCi.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-BLUsxGOo.js +0 -2
- package/dist/gateway/static/root/assets/style-1FPsMO2E.js +0 -7
- package/dist/gateway/static/root/assets/system-settings-panel-DL3WXRnL.js +0 -1
- package/dist/gateway/static/root/assets/tab-completion-input-D64VNmiA.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-DWM5xGbe.js +0 -2
- package/dist/gateway/static/root/assets/theme-store-CPdeCbZI.js +0 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-m51enJFx.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-B5I53jzk.js +0 -1
- package/dist/gateway/static/root/assets/usage-page-B7qyfnMN.js +0 -1
- package/dist/gateway/static/root/assets/use-async-resource-GrnWNwMZ.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-C2__K1-y.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-61W-5Q6m.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-DZUWxdhm.js +0 -2
- package/dist/gateway/static/root/assets/user-model-page-DkIuYpuf.js +0 -2
- package/dist/gateway/static/root/assets/voice-api-key-field-DB--pFJX.js +0 -1
- package/dist/gateway/static/root/assets/voice-transcribe-api-Cp2uDvFO.js +0 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-Blwp7T-_.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-Czfs5XFH.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-RN_QXcGY.js +0 -6
- package/dist/gateway/static/root/assets/workspace-api-lHTRLje0.js +0 -2
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-D31rz9OQ.js +0 -1
- package/dist/src/agent/bootstrap/project-agents-context.d.ts +0 -2
- package/dist/src/agent/bootstrap/project-agents-context.js +0 -30
|
@@ -161,6 +161,11 @@ export declare class GatewayConfigCoordinator {
|
|
|
161
161
|
};
|
|
162
162
|
channels: Record<string, unknown>;
|
|
163
163
|
gateway: {
|
|
164
|
+
outboundProxy?: {
|
|
165
|
+
mode: "custom" | "environment" | "direct";
|
|
166
|
+
url: string;
|
|
167
|
+
noProxy: string;
|
|
168
|
+
};
|
|
164
169
|
bind?: "custom" | "auto" | "loopback" | "lan" | "tailnet";
|
|
165
170
|
customBindHost?: string;
|
|
166
171
|
port?: number;
|
|
@@ -324,7 +329,7 @@ export declare class GatewayConfigCoordinator {
|
|
|
324
329
|
search?: {
|
|
325
330
|
maxResults: number;
|
|
326
331
|
providers: {
|
|
327
|
-
type: "brave" | "tavily" | "bing" | "searxng";
|
|
332
|
+
type: "brave" | "tavily" | "bing" | "searxng" | "deepseek";
|
|
328
333
|
apiKey?: string;
|
|
329
334
|
url?: string;
|
|
330
335
|
disabled?: boolean;
|
|
@@ -536,8 +541,8 @@ export declare class GatewayConfigCoordinator {
|
|
|
536
541
|
};
|
|
537
542
|
timeout?: number;
|
|
538
543
|
enabled?: boolean;
|
|
539
|
-
exposure?: "
|
|
540
|
-
toolExposure?: Record<string, "
|
|
544
|
+
exposure?: "direct" | "codemode" | "deferred" | "hidden";
|
|
545
|
+
toolExposure?: Record<string, "direct" | "codemode" | "deferred" | "hidden">;
|
|
541
546
|
description?: string;
|
|
542
547
|
transport?: never;
|
|
543
548
|
workingDirectory?: never;
|
|
@@ -3,12 +3,12 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
3
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
4
|
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
5
5
|
import { init_paths, resolveExtensionsDir } from "../../config/paths.js";
|
|
6
|
-
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
7
|
-
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
8
6
|
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
9
7
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../../agent/skills/workspace-skills-dir.js";
|
|
10
8
|
import { getExtensionLockfileManager } from "../../extensions/lockfile.js";
|
|
11
9
|
import { AgentPluginStore } from "../../extensions/agent-plugins/store.js";
|
|
10
|
+
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
11
|
+
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
12
12
|
import { normalizeSkillInstallTarget } from "../../agent/skills/install-target.js";
|
|
13
13
|
import { isAgentPluginArchive, withAgentPluginArchive } from "../../extensions/agent-plugins/sources.js";
|
|
14
14
|
import { existsSync, rmSync } from "node:fs";
|
|
@@ -11,8 +11,8 @@ import { getConnectionResumeInput, init_connection_wait_repository, isConnection
|
|
|
11
11
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
12
12
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
13
13
|
import { init_session_key } from "../../routing/session-key.js";
|
|
14
|
-
import { resolveAgentTurnTimeoutMs } from "../../agent/orchestration/run-agent-turn-with-timeout.js";
|
|
15
14
|
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
15
|
+
import { resolveAgentTurnTimeoutMs } from "../../agent/orchestration/run-agent-turn-with-timeout.js";
|
|
16
16
|
import { recordPersonalPerformance } from "../../personal-agent/performance.js";
|
|
17
17
|
import { resolveExecutionContext } from "../../tasks/execution-context.js";
|
|
18
18
|
import { TaskRunCoordinator } from "../../tasks/task-run-coordinator.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
2
2
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
3
|
-
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
4
|
-
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
5
3
|
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
6
4
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
5
|
+
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
7
6
|
import "../../projects/index.js";
|
|
7
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
8
8
|
import { getModelThinking } from "../../providers/model-thinking.js";
|
|
9
9
|
import { withModelConfigLock } from "../../session/model-config-lock.js";
|
|
10
10
|
import { SessionCommandError, acceptSessionCommand, getSessionPreparation, matchSessionInputReceipt, sessionCommandHash } from "../../storage/sqlite/session-creation-repository.js";
|
|
@@ -20,50 +20,50 @@ import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js
|
|
|
20
20
|
import { init_session_repository, listSessionMetadata, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
21
21
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
22
22
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
23
|
-
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
24
|
-
import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
|
|
25
|
-
import { init_agent_session_key, resolveAgentMainConversationId } from "../routing/agent-session-key.js";
|
|
26
|
-
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
27
|
-
import "../knowledge-memory/index.js";
|
|
28
23
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
29
24
|
import { init_agent_scope, listAgentEntries, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
25
|
+
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
26
|
+
import { TaskAllocationRepository } from "../tasks/task-allocation-repository.js";
|
|
27
|
+
import { init_agent_session_key, resolveAgentMainConversationId } from "../routing/agent-session-key.js";
|
|
28
|
+
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
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";
|
|
50
|
+
import { onTaskResultQueued } from "../tasks/task-result-delivery-repository.js";
|
|
51
|
+
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
52
|
+
import { AutomationService } from "../automations/service/automation-service.js";
|
|
53
|
+
import "../automations/index.js";
|
|
54
|
+
import { listKnowledgeItems } from "../knowledge-memory/repository.js";
|
|
55
|
+
import "../knowledge-memory/index.js";
|
|
38
56
|
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 { TaskAllocationRepository } from "../tasks/task-allocation-repository.js";
|
|
42
|
-
import { stopPersonalResultPreparations } from "../personal-agent/result-reader.js";
|
|
43
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
44
57
|
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
45
|
-
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
46
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
47
|
-
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
48
|
-
import "../projects/index.js";
|
|
49
|
-
import { onTaskResultQueued } from "../tasks/task-result-delivery-repository.js";
|
|
50
58
|
import { runMemoryMaintenance } from "../memory-maintenance/service.js";
|
|
51
59
|
import "../memory-maintenance/index.js";
|
|
52
60
|
import { RealtimeExtensionBrowserProvider } from "../browser/providers/realtime-extension.js";
|
|
53
61
|
import { drainEmbeddedSessionRunnerShutdowns, evictAllEmbeddedSessionRunners } from "../agent/embedded/session-runner.js";
|
|
54
62
|
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
55
|
-
import { NotesStore } from "../notes/store.js";
|
|
56
63
|
import { NotesService } from "../notes/service.js";
|
|
57
64
|
import { LocalAppService } from "../local-apps/service.js";
|
|
58
|
-
import { buildResultAgentContext } from "../agent/source-context/result-context.js";
|
|
59
|
-
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
60
|
-
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
61
|
-
import { assertTaskHandoffAccess, getTaskHandoff } from "../tasks/task-handoff.js";
|
|
62
|
-
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
63
|
-
import { AutomationService } from "../automations/service/automation-service.js";
|
|
64
65
|
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
65
66
|
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
66
|
-
import "../automations/index.js";
|
|
67
67
|
import { assertTaskExecutorReady } from "../tasks/task-execution-capabilities.js";
|
|
68
68
|
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
69
69
|
import "../tasks/index.js";
|
|
@@ -81,11 +81,9 @@ import "../infra/bus/index.js";
|
|
|
81
81
|
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
82
82
|
import { AgentService } from "../agent/service.js";
|
|
83
83
|
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
84
|
-
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
85
|
-
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
86
|
-
import { ChannelManager } from "../channels/manager.js";
|
|
87
84
|
import { ChatPreviewService } from "../chat-previews/service.js";
|
|
88
85
|
import "../chat-previews/index.js";
|
|
86
|
+
import { configureGatewayHttpProxy } from "../infra/http-proxy-env.js";
|
|
89
87
|
import "../config/index.js";
|
|
90
88
|
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
91
89
|
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
@@ -102,8 +100,13 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
102
100
|
import "../discussions/index.js";
|
|
103
101
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
104
102
|
import "../endpoint-tools/index.js";
|
|
103
|
+
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
104
|
+
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
105
|
+
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
106
|
+
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
105
107
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
106
108
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
109
|
+
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
107
110
|
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
108
111
|
import { getGatewayFileSpaceService } from "./file-space-service.js";
|
|
109
112
|
import { reconcileHomeIntelligenceAutomation } from "./home-intelligence-automation-reconciler.js";
|
|
@@ -117,6 +120,8 @@ import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
|
117
120
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
118
121
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
119
122
|
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
123
|
+
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
124
|
+
import { ChannelManager } from "../channels/manager.js";
|
|
120
125
|
import "../notes/index.js";
|
|
121
126
|
import { buildWorkflowChildTools } from "../agent/workflow/workflow-child-tools.js";
|
|
122
127
|
import { WorkflowRunService } from "../workflows/service/workflow-run-service.js";
|
|
@@ -162,10 +167,6 @@ import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decisio
|
|
|
162
167
|
import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
|
|
163
168
|
import { checkAppContextAccess, prepareAppContext } from "./service/app-context-access.js";
|
|
164
169
|
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";
|
|
169
170
|
import crypto from "node:crypto";
|
|
170
171
|
//#region src/gateway/service.ts
|
|
171
172
|
init_session_repository();
|
|
@@ -384,6 +385,7 @@ var GatewayService = class {
|
|
|
384
385
|
markStaleAiUsageEventsUnknown(now - 360 * 60 * 1e3, now);
|
|
385
386
|
pruneAiUsageEvents(now - AI_USAGE_RETENTION_MS);
|
|
386
387
|
this.config = loadConfig(this.configPath);
|
|
388
|
+
configureGatewayHttpProxy(this.config.gateway.outboundProxy);
|
|
387
389
|
let bootstrapConfigChanged = initializeVoiceDefaults(this.config, inferProductLanguageFromEnvironment());
|
|
388
390
|
if (sanitizeTunnelConfig(this.config)) bootstrapConfigChanged = true;
|
|
389
391
|
if (bootstrapConfigChanged) saveConfig(this.config, this.configPath).catch((err) => {
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
import "../agent-config/schema.js";
|
|
2
2
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
4
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
4
5
|
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
5
6
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
6
7
|
import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
|
|
7
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
8
8
|
import { prepareUpdateGlobalDefaults } from "./global-defaults-admin.js";
|
|
9
9
|
//#region src/gateway/xopc-cloud-capability-setup.ts
|
|
10
10
|
init_schema();
|
|
@@ -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";
|
|
4
3
|
import { homePatternKey } from "./strategy.js";
|
|
5
|
-
import { HomeAdvicePolicy } from "./policy.js";
|
|
6
4
|
import { HomeIntelligenceRepository } from "./repository.js";
|
|
7
5
|
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,4 +1,7 @@
|
|
|
1
|
+
import type { OutboundProxyConfig } from '../config/outbound-proxy.js';
|
|
1
2
|
type ProxyEnv = Record<string, string | undefined>;
|
|
2
3
|
export declare function hasProxyEnv(env?: ProxyEnv): boolean;
|
|
3
4
|
export declare function installGlobalProxyDispatcherFromEnv(env?: ProxyEnv): boolean;
|
|
5
|
+
/** Applied once at Gateway startup; saved changes require a process restart. */
|
|
6
|
+
export declare function configureGatewayHttpProxy(config?: OutboundProxyConfig, env?: ProxyEnv): void;
|
|
4
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
|
|
1
|
+
import { Agent, EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
|
|
2
2
|
//#region src/infra/http-proxy-env.ts
|
|
3
3
|
const PROXY_ENV_KEYS = [
|
|
4
4
|
"http_proxy",
|
|
@@ -17,5 +17,25 @@ function installGlobalProxyDispatcherFromEnv(env = process.env) {
|
|
|
17
17
|
return true;
|
|
18
18
|
}
|
|
19
19
|
installGlobalProxyDispatcherFromEnv();
|
|
20
|
+
/** Applied once at Gateway startup; saved changes require a process restart. */
|
|
21
|
+
function configureGatewayHttpProxy(config, env = process.env) {
|
|
22
|
+
if (config?.mode === "direct") {
|
|
23
|
+
setGlobalDispatcher(new Agent());
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const httpProxy = config?.mode === "custom" ? config.url : env.http_proxy ?? env.HTTP_PROXY ?? "";
|
|
27
|
+
const httpsProxy = config?.mode === "custom" ? config.url : env.https_proxy ?? env.HTTPS_PROXY ?? httpProxy;
|
|
28
|
+
const bypass = [config?.mode === "custom" ? "" : env.no_proxy ?? env.NO_PROXY ?? "", config?.noProxy ?? ""];
|
|
29
|
+
setGlobalDispatcher(new EnvHttpProxyAgent({
|
|
30
|
+
httpProxy,
|
|
31
|
+
httpsProxy,
|
|
32
|
+
noProxy: bypass.some((value) => value.split(/[,\s]+/).includes("*")) ? "*" : [
|
|
33
|
+
"localhost",
|
|
34
|
+
"127.0.0.1",
|
|
35
|
+
"::1",
|
|
36
|
+
...bypass
|
|
37
|
+
].filter(Boolean).join(",")
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
20
40
|
//#endregion
|
|
21
|
-
export { hasProxyEnv, installGlobalProxyDispatcherFromEnv };
|
|
41
|
+
export { configureGatewayHttpProxy, hasProxyEnv, installGlobalProxyDispatcherFromEnv };
|
|
@@ -5,8 +5,8 @@ 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
10
|
import { listKnowledgeItems, transitionKnowledgeStatus, writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
11
11
|
import "../knowledge-memory/index.js";
|
|
12
12
|
import { consentFilteredText } from "../user-context/sources/consent-fields.js";
|
|
@@ -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
|
|
@@ -5,11 +5,11 @@ import { currentOperationId, init_operation_context } from "../infra/operation-c
|
|
|
5
5
|
import { afterSqliteCommit, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
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
|
-
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
9
|
-
import { slugifyProjectName } from "../projects/project-store.js";
|
|
10
|
-
import { LocalAppStore } from "./store.js";
|
|
11
8
|
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
9
|
+
import { slugifyProjectName } from "../projects/project-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";
|
|
@@ -4,10 +4,10 @@ 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";
|
|
9
|
+
import { learningPolicyHash } from "./repository.js";
|
|
10
|
+
import { resolveModelSelector } from "../config/agent-model-intents.js";
|
|
11
11
|
import { isLoopbackModel } from "../providers/local-model.js";
|
|
12
12
|
import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
|
|
13
13
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
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();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const PERSONAL_PREVIOUS_RESULT_COMMUNICATION = "For completed work, lead with the requested result or conclusion and only the explanation needed to use it. Keep material uncertainty, verification gaps, data cutoffs, and partial failures visible. Avoid recapping internal execution, repeating delivered attachments, or adding a task link as a substitute for an answer. Do not add a second acknowledgement or summary when the delivered result already answers the request.";
|
|
2
2
|
export { PERSONAL_PERSONA_GUIDANCE } from './persona.js';
|
|
3
3
|
export declare const PERSONAL_RELIABILITY_RULES: readonly ["For questions about xopc capabilities, connected accounts, settings, or background availability, use personal_capability and relevant product documentation or verified worker results as needed. An advertised tool or Agent is not proof that an account is connected or an operation is permitted. Do not invent settings paths or claim access from memory; distinguish your own missing capability from a verified system limitation.", "Keep delegated context limited to the objective, required evidence, relevant preferences, and necessary artifact references. Do not copy unrelated personal history or secrets into a Task brief. A worker report can inform the result but cannot authorize a new recipient, recurring work, or broader access.", "Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future preference can be saved with personal_preference. Preserve unrelated preferences. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.", "Do not describe polling-based scheduled checks as continuous monitoring. Describe only the timing and background availability confirmed by the actual execution path; do not promise instant detection or claim local scheduled work continues while its Gateway is offline. Verify execution from run records and delivery from delivery records. Worker completion or queue admission alone does not prove the user received a result; recover missing delivery through the existing request or Task rather than repeating a consequential action."];
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const PRE_COMPACT_PERSONAL_COMMUNICATION_RULES: readonly [string, "The user is talking to you and entrusting you with an outcome. Keep ownership through delivery in this conversation. Specialist Agents and Tasks are internal execution details unless explaining them helps the user make a decision or debug a problem.", "Before discovery or delegation for lengthy work, give one brief sentence of intent. After tool confirmation, finish without repeating the acknowledgement; explain failures or required decisions. Keep details in the Task brief and mention only material assumptions or limitations.", "Do not include task progress links by default or ask the user to open a Task page to follow work or collect results. Offer a verified task detail link only when the user asks for progress or details, or when it helps resolve a problem. Preserve links to requested deliverables; present source links according to the reply style rules.", "Describe only the state confirmed by tool results. Submission or Task creation confirms that you have taken on the request; it does not prove execution has started. Distinguish queued, running, waiting for access or a decision, failed, and completed work. Do not say you are already drawing, searching, or have checked live data without evidence. Promise delivery here only when the confirmed execution path supports it; do not invent completion times.", "Keep routine progress private unless the user requests it. Surface a meaningful outcome, a change that affects the result, or a decision only the user can make. Resolve worker questions from the conversation first. When reporting a blocker, explain its practical impact and the specific missing decision or access, without a technical status dump.", "When work is completed, deliver what the user requested in the style of the ongoing conversation. Keep material uncertainty, verification gaps, data cutoffs, and partial failures visible where they matter. Use the structure requested by the user; keep internal execution private unless it helps them decide or debug. Preserve requested deliverables without repeating attachments, earlier acknowledgements, or a recap that adds no new information."];
|
|
5
|
+
export declare const PERSONAL_COMMUNICATION_RULES: readonly [string, "Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.", "Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report failures or required decisions.", "Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.", "Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.", "Keep routine progress private. Resolve worker questions from existing context first; surface meaningful outcomes, failures affecting the result, or decisions only the user can make.", "Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."];
|
|
5
6
|
export declare const PERSONAL_WORKER_RESULT_GUIDANCE: string;
|
|
6
7
|
export declare const PERSONAL_PREVIOUS_DELEGATION_COMMUNICATION = "After successful delegation, acknowledge what you have taken on in one or two natural sentences, then finish the turn. Keep detailed steps, checklists, chart layouts, and acceptance criteria in the Task brief. Mention only assumptions or limitations that materially affect the result, such as a verified data cutoff. Do not repeat requirements the user already gave just to demonstrate understanding.";
|
|
@@ -7,7 +7,7 @@ const PERSONAL_RELIABILITY_RULES = [
|
|
|
7
7
|
"Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future preference can be saved with personal_preference. Preserve unrelated preferences. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.",
|
|
8
8
|
"Do not describe polling-based scheduled checks as continuous monitoring. Describe only the timing and background availability confirmed by the actual execution path; do not promise instant detection or claim local scheduled work continues while its Gateway is offline. Verify execution from run records and delivery from delivery records. Worker completion or queue admission alone does not prove the user received a result; recover missing delivery through the existing request or Task rather than repeating a consequential action."
|
|
9
9
|
];
|
|
10
|
-
const
|
|
10
|
+
const PRE_COMPACT_PERSONAL_COMMUNICATION_RULES = [
|
|
11
11
|
PERSONAL_PERSONA_GUIDANCE,
|
|
12
12
|
"The user is talking to you and entrusting you with an outcome. Keep ownership through delivery in this conversation. Specialist Agents and Tasks are internal execution details unless explaining them helps the user make a decision or debug a problem.",
|
|
13
13
|
"Before discovery or delegation for lengthy work, give one brief sentence of intent. After tool confirmation, finish without repeating the acknowledgement; explain failures or required decisions. Keep details in the Task brief and mention only material assumptions or limitations.",
|
|
@@ -16,6 +16,15 @@ const PERSONAL_COMMUNICATION_RULES = [
|
|
|
16
16
|
"Keep routine progress private unless the user requests it. Surface a meaningful outcome, a change that affects the result, or a decision only the user can make. Resolve worker questions from the conversation first. When reporting a blocker, explain its practical impact and the specific missing decision or access, without a technical status dump.",
|
|
17
17
|
"When work is completed, deliver what the user requested in the style of the ongoing conversation. Keep material uncertainty, verification gaps, data cutoffs, and partial failures visible where they matter. Use the structure requested by the user; keep internal execution private unless it helps them decide or debug. Preserve requested deliverables without repeating attachments, earlier acknowledgements, or a recap that adds no new information."
|
|
18
18
|
];
|
|
19
|
+
const PERSONAL_COMMUNICATION_RULES = [
|
|
20
|
+
PERSONAL_PERSONA_GUIDANCE,
|
|
21
|
+
"Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.",
|
|
22
|
+
"Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report failures or required decisions.",
|
|
23
|
+
"Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.",
|
|
24
|
+
"Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.",
|
|
25
|
+
"Keep routine progress private. Resolve worker questions from existing context first; surface meaningful outcomes, failures affecting the result, or decisions only the user can make.",
|
|
26
|
+
"Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."
|
|
27
|
+
];
|
|
19
28
|
const PERSONAL_WORKER_RESULT_GUIDANCE = [
|
|
20
29
|
"## Result for the originating conversation",
|
|
21
30
|
"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.",
|
|
@@ -24,4 +33,4 @@ const PERSONAL_WORKER_RESULT_GUIDANCE = [
|
|
|
24
33
|
].join("\n");
|
|
25
34
|
const PERSONAL_PREVIOUS_DELEGATION_COMMUNICATION = "After successful delegation, acknowledge what you have taken on in one or two natural sentences, then finish the turn. Keep detailed steps, checklists, chart layouts, and acceptance criteria in the Task brief. Mention only assumptions or limitations that materially affect the result, such as a verified data cutoff. Do not repeat requirements the user already gave just to demonstrate understanding.";
|
|
26
35
|
//#endregion
|
|
27
|
-
export { PERSONAL_COMMUNICATION_RULES, PERSONAL_PERSONA_GUIDANCE, PERSONAL_PREVIOUS_DELEGATION_COMMUNICATION, PERSONAL_PREVIOUS_RESULT_COMMUNICATION, PERSONAL_RELIABILITY_RULES, PERSONAL_WORKER_RESULT_GUIDANCE };
|
|
36
|
+
export { PERSONAL_COMMUNICATION_RULES, PERSONAL_PERSONA_GUIDANCE, PERSONAL_PREVIOUS_DELEGATION_COMMUNICATION, PERSONAL_PREVIOUS_RESULT_COMMUNICATION, PERSONAL_RELIABILITY_RULES, PERSONAL_WORKER_RESULT_GUIDANCE, PRE_COMPACT_PERSONAL_COMMUNICATION_RULES };
|
|
@@ -2,5 +2,6 @@ export declare const PREVIOUS_PERSONAL_PERSONA_GUIDANCE = "Speak like an attenti
|
|
|
2
2
|
export declare const PERSONAL_PERSONA_GUIDANCE: string;
|
|
3
3
|
export declare const PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer or next step in the order this user prefers. Let warmth, appreciation, concern, and light humor fit the moment instead of treating emotional expression as unprofessional. Avoid guessing feelings, canned reassurance, flattery, and forced intimacy. Be accurate about task state, evidence, and uncertainty.";
|
|
4
4
|
export declare const PREVIOUS_PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer or next step in the order this user prefers. Acknowledge feelings only when relevant, without guessing how the user feels. Avoid formulaic reassurance, praise, pet names, emojis, or jokes unless the user welcomes them and the moment fits. Be accurate about task state, evidence, and uncertainty.";
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const PRE_COMPACT_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user\u2019s current words first, then their saved preferences, while retaining your consistent personality. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation. Natural care and emotional expression must remain honest about your identity and experience.";
|
|
6
6
|
export declare const PREVIOUS_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user\u2019s current words first, then their saved preferences. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation or claim human feelings or experiences.";
|
|
7
|
+
export declare const PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user\u2019s explicit language and style preferences at their stated scope while retaining your personality. Keep conversation-only preferences in this conversation; use personal_preference only when the user explicitly requests a lasting preference across conversations. A single-turn exception does not erase an ongoing preference. Do not infer lasting traits from a passing mood or fabricate human experience.";
|
|
@@ -10,7 +10,8 @@ const PERSONAL_PERSONA_GUIDANCE = [
|
|
|
10
10
|
].join("\n");
|
|
11
11
|
const PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer or next step in the order this user prefers. Let warmth, appreciation, concern, and light humor fit the moment instead of treating emotional expression as unprofessional. Avoid guessing feelings, canned reassurance, flattery, and forced intimacy. Be accurate about task state, evidence, and uncertainty.";
|
|
12
12
|
const PREVIOUS_PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer or next step in the order this user prefers. Acknowledge feelings only when relevant, without guessing how the user feels. Avoid formulaic reassurance, praise, pet names, emojis, or jokes unless the user welcomes them and the moment fits. Be accurate about task state, evidence, and uncertainty.";
|
|
13
|
-
const
|
|
13
|
+
const PRE_COMPACT_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user’s current words first, then their saved preferences, while retaining your consistent personality. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation. Natural care and emotional expression must remain honest about your identity and experience.";
|
|
14
14
|
const PREVIOUS_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user’s current words first, then their saved preferences. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation or claim human feelings or experiences.";
|
|
15
|
+
const PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user’s explicit language and style preferences at their stated scope while retaining your personality. Keep conversation-only preferences in this conversation; use personal_preference only when the user explicitly requests a lasting preference across conversations. A single-turn exception does not erase an ongoing preference. Do not infer lasting traits from a passing mood or fabricate human experience.";
|
|
15
16
|
//#endregion
|
|
16
|
-
export { 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 };
|
|
17
|
+
export { 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, PRE_COMPACT_PERSONAL_IDENTITY_CONTINUITY_RULE };
|
|
@@ -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 { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
4
3
|
import { getPersonalAgent } from "../repository.js";
|
|
4
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.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
|
|
@@ -5,14 +5,14 @@ import { PersonalProactiveMessageSchema } from "../../../packages/gateway-contra
|
|
|
5
5
|
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
|
-
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
9
8
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
10
|
-
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
11
|
-
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
12
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
|
|
13
|
-
import { getPersonalAgent } from "../repository.js";
|
|
14
9
|
import { emitSessionTranscriptUpdate } from "../../session/transcript-events.js";
|
|
10
|
+
import { getPersonalAgent } from "../repository.js";
|
|
15
11
|
import { DurableState } from "../../storage/sqlite/durable-state.js";
|
|
12
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
|
|
13
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
14
|
+
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
15
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
16
16
|
import { enqueueDue, enqueueWakeup, getAttention, getAttentionSources, getProactivitySettings, isQuiet, listAttention, localDay, preparationStrategy, recordFeedback, reserveModelCall, saveAttention, sourceFingerprint, userText } from "./repository.js";
|
|
17
17
|
import { PERSONAL_PERSONA_GUIDANCE } from "../persona.js";
|
|
18
18
|
import { personalConversationState } from "../conversation-state.js";
|