@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { hasUnlocalizedTaskText, resolveTaskLocale } from "./task-language.js";
|
|
3
4
|
import { getAgentDefaultChatModelConfig, init_schema } from "../config/schema.js";
|
|
4
5
|
import { completeTaskModelCall } from "./task-model-call.js";
|
|
5
6
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
@@ -68,7 +69,12 @@ function parseTaskContractResponse(raw) {
|
|
|
68
69
|
}
|
|
69
70
|
var ModelTaskContractPlanner = class {
|
|
70
71
|
async plan(input) {
|
|
71
|
-
const
|
|
72
|
+
const locale = resolveTaskLocale({
|
|
73
|
+
locale: input.locale,
|
|
74
|
+
title: input.objective
|
|
75
|
+
});
|
|
76
|
+
const fallback = defineTaskContract(input.objective, locale);
|
|
77
|
+
const languageInstruction = `Write all user-facing JSON values in ${locale === "zh" ? "Simplified Chinese" : "English"}. Preserve schema keys, identifiers, paths, URLs, and proper nouns. The language of attached context must not change the output language.`;
|
|
72
78
|
try {
|
|
73
79
|
if ((input.taskContext?.length ?? 0) > 96e3) throw new Error("Task context exceeds planning budget");
|
|
74
80
|
const models = getAgentDefaultChatModelConfig();
|
|
@@ -85,7 +91,7 @@ var ModelTaskContractPlanner = class {
|
|
|
85
91
|
"requiredCapabilities is a minimal subset of read_input, execute_code, publish_files, web_research, browser, generate_image. Include only operations necessary for the requested inputs/outputs; this list selects registered tools and grants no permissions. Do not require browser when ordinary web fetch suffices. Preserve explicit executor/Skill and scope constraints.",
|
|
86
92
|
"List assumptions explicitly. Put only irreversible, external, financial, privacy, or permission decisions in approvalRequired.",
|
|
87
93
|
"Return one JSON object only. Every array contains flat strings, never objects or nested arrays. Schema example: {\"objective\":\"Deliver the requested work\",\"expectedOutputs\":[\"report.md\"],\"acceptanceCriteria\":[\"report.md contains the requested evidence\"],\"constraints\":[],\"approvalRequired\":[],\"assumptions\":[],\"risks\":[],\"requiredCapabilities\":[\"read_input\",\"publish_files\"]}. Capabilities must use the allowed enum values.",
|
|
88
|
-
|
|
94
|
+
languageInstruction,
|
|
89
95
|
"",
|
|
90
96
|
`User request:\n${input.objective.trim()}`,
|
|
91
97
|
input.taskContext ? `\nUser-provided task context:\n${input.taskContext.replace(PERSONAL_WORKER_RESULT_GUIDANCE, "").trim()}` : "",
|
|
@@ -96,12 +102,21 @@ var ModelTaskContractPlanner = class {
|
|
|
96
102
|
}];
|
|
97
103
|
for (let attempt = 0; attempt < 2; attempt++) {
|
|
98
104
|
input.signal?.throwIfAborted();
|
|
99
|
-
const
|
|
105
|
+
const raw = extractText((await completeTaskModelCall(models, { messages }, {
|
|
100
106
|
maxTokens: 4e3,
|
|
101
107
|
temperature: 0,
|
|
102
108
|
signal: input.signal
|
|
103
|
-
}, { operation: "task.plan_contract" })).content)
|
|
104
|
-
|
|
109
|
+
}, { operation: "task.plan_contract" })).content);
|
|
110
|
+
const planned = parseTaskContractResponse(raw);
|
|
111
|
+
const wrongLanguage = planned && hasUnlocalizedTaskText([
|
|
112
|
+
...planned.acceptanceCriteria,
|
|
113
|
+
...planned.expectedOutputs,
|
|
114
|
+
...planned.constraints,
|
|
115
|
+
...planned.approvalRequired,
|
|
116
|
+
...planned.assumptions,
|
|
117
|
+
...planned.risks
|
|
118
|
+
], locale);
|
|
119
|
+
if (planned?.requiredCapabilities && !wrongLanguage) return {
|
|
105
120
|
...planned,
|
|
106
121
|
objective: fallback.objective,
|
|
107
122
|
capabilityPlanning: "complete"
|
|
@@ -109,7 +124,7 @@ var ModelTaskContractPlanner = class {
|
|
|
109
124
|
if (attempt === 0) messages.push({
|
|
110
125
|
role: "user",
|
|
111
126
|
timestamp: Date.now(),
|
|
112
|
-
content: "Your previous response
|
|
127
|
+
content: `${wrongLanguage ? "Your previous response used the wrong language. Translate the user-facing prose while preserving every requirement and all technical identifiers. " : ""}${languageInstruction} Your previous response must satisfy both the language requirement and the required schema. Return the same task contract as one JSON object. expectedOutputs, acceptanceCriteria, constraints, approvalRequired, assumptions and risks must be flat string arrays, never objects. requiredCapabilities must be an array drawn only from read_input, execute_code, publish_files, web_research, browser, generate_image. Keep all user constraints; do not add criteria about a future chat reply. Return no commentary. Previous response (data to repair): ${raw}`
|
|
113
128
|
});
|
|
114
129
|
}
|
|
115
130
|
throw new Error("Task planning response did not contain a verifiable contract and operation requirements");
|
|
@@ -2,11 +2,11 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
5
|
-
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
6
5
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
7
6
|
import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
|
|
8
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
9
7
|
import { TaskContextRepository } from "./task-context-repository.js";
|
|
8
|
+
import { init_session_key, resolveConversationId, sanitizeSegment } from "../routing/session-key.js";
|
|
9
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
10
10
|
//#region src/tasks/task-handoff-service.ts
|
|
11
11
|
init_agent_scope();
|
|
12
12
|
init_session_key();
|
|
@@ -8,17 +8,17 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
8
8
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
9
9
|
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
10
10
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
11
|
-
import {
|
|
12
|
-
import { getProjectForSession } from "../projects/workspace.js";
|
|
11
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
13
12
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
14
13
|
import { assertPersonalResultDelegateAccess, readPersonalResult, resolvePersonalResultReference } from "../personal-agent/result-reader.js";
|
|
15
|
-
import { fileSpaceId, parseFileResourceId } from "../files/file-service.js";
|
|
16
|
-
import { NotesStore } from "../notes/store.js";
|
|
17
|
-
import { TaskContextRepository } from "./task-context-repository.js";
|
|
18
14
|
import { buildResultAgentContext } from "../agent/source-context/result-context.js";
|
|
19
15
|
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
20
16
|
import { parseTurnContextRefs } from "../agent/source-context/types.js";
|
|
21
17
|
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
18
|
+
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
19
|
+
import { getProjectForSession } from "../projects/workspace.js";
|
|
20
|
+
import { fileSpaceId, parseFileResourceId } from "../files/file-service.js";
|
|
21
|
+
import { NotesStore } from "../notes/store.js";
|
|
22
22
|
import { basename, isAbsolute, relative, resolve, sep } from "node:path";
|
|
23
23
|
import { constants } from "node:fs";
|
|
24
24
|
import { createHash } from "node:crypto";
|
|
@@ -5,3 +5,5 @@ export declare function resolveTaskLocale(task: Pick<TaskAggregate, 'locale' | '
|
|
|
5
5
|
objective: string;
|
|
6
6
|
};
|
|
7
7
|
}): TaskUiLocale;
|
|
8
|
+
/** Reject untranslated English prose while allowing paths, URLs, and identifiers. */
|
|
9
|
+
export declare function hasUnlocalizedTaskText(values: readonly string[], locale: TaskUiLocale): boolean;
|
|
@@ -6,10 +6,21 @@ init_sqlite();
|
|
|
6
6
|
/** Background tasks have no current user message from which to infer a language. */
|
|
7
7
|
function resolveTaskLocale(task) {
|
|
8
8
|
if (task.locale) return task.locale;
|
|
9
|
+
if (/[\u3400-\u9fff]/u.test(task.contract?.objective ?? task.title)) return "zh";
|
|
9
10
|
const locale = isXopcDatabaseOpen() ? getUserProfileSnapshot().locale?.toLowerCase() : void 0;
|
|
10
11
|
if (locale === "zh" || locale?.startsWith("zh-")) return "zh";
|
|
11
12
|
if (locale === "en" || locale?.startsWith("en-")) return "en";
|
|
12
|
-
return
|
|
13
|
+
return "en";
|
|
14
|
+
}
|
|
15
|
+
/** Reject untranslated English prose while allowing paths, URLs, and identifiers. */
|
|
16
|
+
function hasUnlocalizedTaskText(values, locale) {
|
|
17
|
+
if (locale !== "zh") return false;
|
|
18
|
+
return values.some((value) => {
|
|
19
|
+
const prose = value.replace(/`[^`]*`|https?:\/\/\S+|\S*[\/.]\S*/g, "");
|
|
20
|
+
const leadingProse = prose.split(/[\u3400-\u9fff]/u, 1)[0];
|
|
21
|
+
const englishSentence = /\b(?:is|are|must|should|contains?|includes?|provides?|has|have|can|will|needs?|requires?|verify|ensure|do)\b/i.test(leadingProse);
|
|
22
|
+
return (!/[\u3400-\u9fff]/u.test(prose) || englishSentence) && (prose.match(/[a-zA-Z]+/g)?.length ?? 0) >= 4;
|
|
23
|
+
});
|
|
13
24
|
}
|
|
14
25
|
//#endregion
|
|
15
|
-
export { resolveTaskLocale };
|
|
26
|
+
export { hasUnlocalizedTaskText, resolveTaskLocale };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
3
|
-
import { init_providers, resolveModel } from "../providers/index.js";
|
|
4
|
-
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
5
|
-
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
6
3
|
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
7
4
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
5
|
+
import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
6
|
+
import { init_providers, resolveModel } from "../providers/index.js";
|
|
7
|
+
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
8
8
|
//#region src/tasks/task-main-update-decision-service.ts
|
|
9
9
|
init_providers();
|
|
10
10
|
init_task_repository();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { getAssistantMessageErrorReason, isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
3
4
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
4
5
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
5
|
-
import { getAssistantMessageErrorReason, isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
6
6
|
//#region src/tasks/task-model-call.ts
|
|
7
7
|
init_providers();
|
|
8
8
|
init_logger();
|
|
@@ -8,15 +8,15 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
8
8
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../storage/sqlite/session-instance-repository.js";
|
|
9
9
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
10
10
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
11
|
-
import { resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
12
|
-
import { extractAssistantText, stripCodeFences } from "../providers/model-response.js";
|
|
13
11
|
import { readMediaReference } from "../media/media-reference.js";
|
|
12
|
+
import { resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";
|
|
13
|
+
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
14
14
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
15
|
+
import { extractAssistantText, stripCodeFences } from "../providers/model-response.js";
|
|
15
16
|
import { completeTaskModelCall } from "./task-model-call.js";
|
|
16
|
-
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
17
|
-
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
18
17
|
import { defineTaskContract } from "./task-contract-definition.js";
|
|
19
18
|
import { observedEvidenceExcerpt, suggestedEvidenceRanges } from "./task-evidence-ranges.js";
|
|
19
|
+
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
20
20
|
import { createHash } from "node:crypto";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
//#region src/tasks/task-research-result.ts
|
|
@@ -7,8 +7,8 @@ import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
|
7
7
|
import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
8
8
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
9
9
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
10
|
-
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
11
10
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
11
|
+
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
12
12
|
import { hasPersonalResultFileLinks, sanitizePersonalResultFileLinks } from "../personal-agent/result-file-links.js";
|
|
13
13
|
import { taskInstructionSequence } from "./task-research-result.js";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
@@ -7,15 +7,15 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
8
8
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
9
9
|
import { appendTranscriptEntry, init_transcript_repository } from "../storage/sqlite/transcript-repository.js";
|
|
10
|
-
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
11
10
|
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
12
11
|
import { resolveTaskLocale } from "./task-language.js";
|
|
13
12
|
import { tryParseMediaUri } from "../media/uri.js";
|
|
14
13
|
import { resolveMediaBufferPath } from "../media/store.js";
|
|
14
|
+
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
15
15
|
import { warmPersonalResult } from "../personal-agent/result-reader.js";
|
|
16
16
|
import { TaskConversationRepository } from "./task-conversation-repository.js";
|
|
17
|
-
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
18
17
|
import { taskInstructionSequence } from "./task-research-result.js";
|
|
18
|
+
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
19
19
|
import { recordPersonalPerformance } from "../personal-agent/performance.js";
|
|
20
20
|
import { enqueuePersonalReply } from "../personal-agent/reply-composer.js";
|
|
21
21
|
import { createReadStream } from "node:fs";
|
|
@@ -4,17 +4,19 @@ import { TaskRunRepository, init_task_run_repository } from "./task-run-reposito
|
|
|
4
4
|
import { init_request_repository, personalRequestForTask } from "../personal-agent/request-repository.js";
|
|
5
5
|
import { loadTranscriptRowsForSession } from "../storage/sqlite/transcript-repository.js";
|
|
6
6
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
8
|
+
import { TaskContextRepository } from "./task-context-repository.js";
|
|
9
9
|
import { resolveTaskLocale } from "./task-language.js";
|
|
10
10
|
import { TaskAllocationRepository } from "./task-allocation-repository.js";
|
|
11
11
|
import { TaskCollaborationRepository } from "./task-collaboration-repository.js";
|
|
12
|
-
import {
|
|
12
|
+
import { isTransientProviderErrorMessage } from "../providers/model-response.js";
|
|
13
13
|
import { currentTaskResearchResult, taskInstructionSequence } from "./task-research-result.js";
|
|
14
|
-
import {
|
|
14
|
+
import { TaskResultDeliveryRepository } from "./task-result-delivery-repository.js";
|
|
15
15
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
16
|
+
import { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
16
17
|
import { buildResearchRepair, inspectTaskPublications } from "./task-research-repair.js";
|
|
17
18
|
//#region src/tasks/task-run-coordinator.ts
|
|
19
|
+
init_repository();
|
|
18
20
|
init_request_repository();
|
|
19
21
|
init_transaction();
|
|
20
22
|
init_task_repository();
|
|
@@ -84,7 +86,9 @@ var TaskRunCoordinator = class TaskRunCoordinator {
|
|
|
84
86
|
}
|
|
85
87
|
if (startingQueuedRun && run.status === "running" && new TaskAllocationRepository().get(task.id)) {
|
|
86
88
|
const executorAgentId = typeof run.executorRef.agentId === "string" ? run.executorRef.agentId : task.delegateAgentId ?? input.context.agentId;
|
|
87
|
-
|
|
89
|
+
const zh = resolveTaskLocale(task) === "zh";
|
|
90
|
+
const executorName = executorAgentId ? new AgentCatalogRepository().get(executorAgentId)?.profile?.name?.trim() : void 0;
|
|
91
|
+
runSqliteWriteTransaction(() => new TaskAllocationRepository().publish(task.id, zh ? `任务「${task.title}」由 ${executorName || "执行者"} 开始执行。` : `Task “${task.title}” started by ${executorName || "the assigned executor"}.`));
|
|
88
92
|
}
|
|
89
93
|
return run.status === "running" ? new TaskRunCoordinator(run.id) : void 0;
|
|
90
94
|
}
|
|
@@ -4,9 +4,10 @@ import { TaskRepository, init_task_repository } from "./task-repository.js";
|
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "./task-run-repository.js";
|
|
5
5
|
import { loadTranscriptRowsForSession } from "../storage/sqlite/transcript-repository.js";
|
|
6
6
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
7
|
-
import { canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
8
7
|
import { resolveTaskLocale } from "./task-language.js";
|
|
9
8
|
import { TaskApplicationService } from "./task-application-service.js";
|
|
9
|
+
import { canResumeAfterModelFailure } from "../agent/orchestration/turn-recovery.js";
|
|
10
|
+
import { runInIndependentAgentExecution } from "../agent/independent-execution.js";
|
|
10
11
|
//#region src/tasks/task-run-dispatcher.ts
|
|
11
12
|
init_logger();
|
|
12
13
|
init_task_repository();
|
|
@@ -42,7 +43,7 @@ var TaskRunDispatcher = class {
|
|
|
42
43
|
this.#runs.reconcileCancelledRuns();
|
|
43
44
|
this.reconcileExpiredRuns();
|
|
44
45
|
const count = Math.max(1, Math.min(8, this.deps.maxConcurrency ?? 3));
|
|
45
|
-
await Promise.all(Array.from({ length: count }, (_, slot) => this.drainSlot(`${this.deps.workerId}:${slot}`)));
|
|
46
|
+
await Promise.all(Array.from({ length: count }, (_, slot) => runInIndependentAgentExecution(() => this.drainSlot(`${this.deps.workerId}:${slot}`))));
|
|
46
47
|
}
|
|
47
48
|
reconcileExpiredRuns() {
|
|
48
49
|
for (const run of this.#runs.listExpiredLeasedRunning()) {
|
|
@@ -8,22 +8,22 @@ import { cancelQueuedSessionInput, claimNextSessionInput, finishSessionInputRun,
|
|
|
8
8
|
import { appendComposerInputHistory, listComposerInputHistory } from "../../storage/sqlite/composer-input-history-repository.js";
|
|
9
9
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
10
10
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
11
|
-
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../../routing/agent-session-key.js";
|
|
12
11
|
import { normalizeAgentId } from "../../agent-catalog/id.js";
|
|
13
12
|
import { init_agent_scope, listAgentEntries } from "../../agent/agent-scope.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { init_paths } from "../../config/paths.js";
|
|
17
|
-
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
18
|
-
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
13
|
+
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
14
|
+
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../../routing/agent-session-key.js";
|
|
19
15
|
import { ProjectService } from "../../projects/project-service.js";
|
|
16
|
+
import { init_paths } from "../../config/paths.js";
|
|
20
17
|
import { inferSuggestedProjectDefaultAgentId } from "../../projects/project-agent-suggestion.js";
|
|
18
|
+
import { resolveEffectiveAgentProfile } from "../../config/agent-profile.js";
|
|
19
|
+
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
21
20
|
import "../../projects/index.js";
|
|
21
|
+
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
22
|
+
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
22
23
|
import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
23
24
|
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
24
25
|
import { createCreateShareTool, isShareToolAvailable } from "../../agent/tools/create-share-tool.js";
|
|
25
26
|
import { evictEmbeddedSessionRunner } from "../../agent/embedded/session-runner.js";
|
|
26
|
-
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
27
27
|
import { SessionIndex } from "../../session/manager.js";
|
|
28
28
|
import "../../session/index.js";
|
|
29
29
|
import { parseModelRef } from "../../agent/models/selection.js";
|
|
@@ -3,12 +3,12 @@ import { TaskRepository } from "../tasks/task-repository.js";
|
|
|
3
3
|
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
5
5
|
import { init_agent_session_key, isValidAgentId, normalizeAgentId } from "../routing/agent-session-key.js";
|
|
6
|
-
import { resolveConfigPath } from "../config/paths.js";
|
|
7
|
-
import { init_providers, providerSupportsOAuth } from "../providers/index.js";
|
|
8
6
|
import { ProjectService } from "../projects/project-service.js";
|
|
7
|
+
import { resolveConfigPath } from "../config/paths.js";
|
|
9
8
|
import { isValidProjectAgentId, normalizeProjectAgentId } from "../projects/project-agent.js";
|
|
10
9
|
import { inferSuggestedProjectDefaultAgentId } from "../projects/project-agent-suggestion.js";
|
|
11
10
|
import "../projects/index.js";
|
|
11
|
+
import { init_providers, providerSupportsOAuth } from "../providers/index.js";
|
|
12
12
|
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
13
13
|
import "../tasks/index.js";
|
|
14
14
|
import { normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
|
|
3
|
-
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
4
3
|
import { loadSkills } from "../agent/skills/index.js";
|
|
4
|
+
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
5
5
|
import { loadConfig } from "../config/loader.js";
|
|
6
6
|
import "../config/index.js";
|
|
7
7
|
//#region src/tui/tui-skills-autocomplete.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
|
-
import { resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
3
2
|
import { init_paths, resolveAgentProfileDir, resolveBundledSkillsDir } from "../config/paths.js";
|
|
3
|
+
import { createSkillConfigManager, isSkillEnabled } from "../agent/skills/config.js";
|
|
4
|
+
import { loadSkills } from "../agent/skills/index.js";
|
|
5
|
+
import { resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
4
6
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
5
7
|
import { resolveBootstrapFilesSync } from "../agent/bootstrap/bootstrap-files.js";
|
|
6
8
|
import { listConnectorInstances } from "../connectors/instances.js";
|
|
7
|
-
import { createSkillConfigManager, isSkillEnabled } from "../agent/skills/config.js";
|
|
8
|
-
import { loadSkills } from "../agent/skills/index.js";
|
|
9
9
|
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
10
10
|
import "../config/index.js";
|
|
11
11
|
import { basename } from "node:path";
|
package/dist/src/tui/tui.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { version } from "../../package.js";
|
|
2
2
|
import { resolveStateDir, resolveXopcDatabasePath } from "../config/paths-state.js";
|
|
3
3
|
import { init_agent_session_key, normalizeAgentId } from "../routing/agent-session-key.js";
|
|
4
|
-
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
5
4
|
import { init_paths } from "../config/paths.js";
|
|
5
|
+
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
6
6
|
import { getAllModels, getAllProviders, getApiKey, init_providers, isProviderConfiguredSync } from "../providers/index.js";
|
|
7
|
+
import { ProjectTrustStore, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
7
8
|
import { isTerminalWorkflowRunStatus } from "../workflows/domain/run.js";
|
|
8
9
|
import "../workflows/domain/index.js";
|
|
9
|
-
import { ProjectTrustStore, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
10
10
|
import { MAX_WEBCHAT_ATTACHMENT_FILE_BYTES } from "../gateway/chat-limits.js";
|
|
11
11
|
import { loadConfig } from "../config/loader.js";
|
|
12
12
|
import { renderWorkflowFinalSummary, renderWorkflowPanel } from "../agent/workflow/snapshot.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSessionConfig, init_config_repository } from "../storage/sqlite/config-repository.js";
|
|
2
|
-
import { isOwnerIdentity } from "./identity-bindings.js";
|
|
3
|
-
import { init_config, resolveKnowledgeReadPolicy } from "./config.js";
|
|
4
2
|
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
5
3
|
import { init_session_key } from "../routing/session-key.js";
|
|
4
|
+
import { isOwnerIdentity } from "./identity-bindings.js";
|
|
5
|
+
import { init_config, resolveKnowledgeReadPolicy } from "./config.js";
|
|
6
6
|
//#region src/user-context/access-policy.ts
|
|
7
7
|
init_config();
|
|
8
8
|
init_session_key();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCollaborationRule, init_collaboration_rule_repository, listCollaborationRules } from "../storage/sqlite/collaboration-rule-repository.js";
|
|
2
|
-
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals } from "./goals.js";
|
|
3
2
|
import { reconcileAssertion } from "./repository.js";
|
|
4
3
|
import { applyUserProfilePatch } from "./profile.js";
|
|
4
|
+
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals } from "./goals.js";
|
|
5
5
|
//#region src/user-model/bootstrap.ts
|
|
6
6
|
init_collaboration_rule_repository();
|
|
7
7
|
function statements(values, limit) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createCollaborationRule, init_collaboration_rule_repository, listCollaborationRules } from "../../storage/sqlite/collaboration-rule-repository.js";
|
|
2
2
|
import { createContextEvidence, init_context_evidence_repository } from "../../storage/sqlite/context-evidence-repository.js";
|
|
3
|
-
import { createUserGoal, listUserGoals } from "../goals.js";
|
|
4
3
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, linkAssertionEvidence, mergeAssertionObservation, reconcileAssertion, setAssertionStatus } from "../repository.js";
|
|
4
|
+
import { createUserGoal, listUserGoals } from "../goals.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
//#region src/user-model/capture/executor.ts
|
|
7
7
|
init_context_evidence_repository();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PERSONAL_DOMAINS, USER_MODEL_PRINCIPAL_ID, defaultAssertionDomain, defaultAssertionLayer, init_domain, validateCandidate, validateScope } from "./domain.js";
|
|
2
|
-
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals, setUserGoalStatus, updatePriorityWindow, updateUserGoal } from "./goals.js";
|
|
3
2
|
import { defaultReviewAt, isAssertionValidAt, requiresBoundedValidity, resolveCurrentAssertion } from "./temporal.js";
|
|
4
3
|
import { deleteUserAssertion, getActiveAssertionByPredicate, getActiveAssertionForSlot, getAssertionSlot, getUserAssertion, getUserTimezone, linkAssertionEvidence, listSlotAssertions, listUserAssertionSources, listUserAssertions, mergeAssertionObservation, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "./repository.js";
|
|
4
|
+
import { applyUserProfilePatch, getUserProfileSnapshot } from "./profile.js";
|
|
5
5
|
import { listActionRuleSuggestions } from "./action-rule-suggestions.js";
|
|
6
6
|
import { calculateExecutionValue } from "./importance.js";
|
|
7
|
+
import { createPriorityWindow, createUserGoal, listPriorityWindows, listUserGoals, setUserGoalStatus, updatePriorityWindow, updateUserGoal } from "./goals.js";
|
|
7
8
|
import { deleteUserModelObservationsForGrant, linkUserAssertions, listUserAssertionEdges, listUserModelObservations, recordUserModelObservation } from "./observation-repository.js";
|
|
8
|
-
import { applyUserProfilePatch, getUserProfileSnapshot } from "./profile.js";
|
|
9
9
|
import { bootstrapUserModel } from "./bootstrap.js";
|
|
10
10
|
import { canUseAssertion, isWorkingAssumption } from "./usage-policy.js";
|
|
11
11
|
//#region src/user-model/index.ts
|
|
@@ -3,17 +3,17 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
4
4
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
5
5
|
import { getSessionConfig, init_config_repository } from "../../storage/sqlite/config-repository.js";
|
|
6
|
-
import {
|
|
7
|
-
import { getKnowledgeItem } from "../../knowledge-memory/repository.js";
|
|
8
|
-
import { init_config, resolveKnowledgeReadPolicy } from "../../user-context/config.js";
|
|
6
|
+
import { getUserAssertion } from "../../user-model/repository.js";
|
|
9
7
|
import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
|
|
10
8
|
import { getConversation } from "../../routing/agent-session-key.js";
|
|
11
9
|
import { init_session_key } from "../../routing/session-key.js";
|
|
10
|
+
import "../../user-model/index.js";
|
|
11
|
+
import { init_config, resolveKnowledgeReadPolicy } from "../../user-context/config.js";
|
|
12
|
+
import { canUseKnowledge } from "../../knowledge-memory/usage-policy.js";
|
|
13
|
+
import { getKnowledgeItem } from "../../knowledge-memory/repository.js";
|
|
12
14
|
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
13
15
|
import "../../knowledge-memory/index.js";
|
|
14
16
|
import { stripRuntimeContextFromUserMessage } from "../../session/user-message-display.js";
|
|
15
|
-
import { getUserAssertion } from "../../user-model/repository.js";
|
|
16
|
-
import "../../user-model/index.js";
|
|
17
17
|
import { buildExecutionContext } from "../../agent/context/execution-context.js";
|
|
18
18
|
//#region src/voice/realtime/memory-context.ts
|
|
19
19
|
init_config();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_agent_scope, resolveAgentProfileDir } from "../../agent/agent-scope.js";
|
|
2
|
-
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
3
2
|
import { DEFAULT_SOUL_FILENAME } from "../../agent/context/workspace.js";
|
|
3
|
+
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
4
4
|
import { loadProfileBootstrapFiles } from "../../agent/bootstrap/load-bootstrap-files.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { statSync } from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_changes, onUserContextChange } from "../../user-context/changes.js";
|
|
4
|
+
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
4
5
|
import { init_model_usage, withModelUsageOrigin } from "../../providers/model-usage.js";
|
|
5
6
|
import { decodeVoiceUplinkAudioFrame, encodeVoiceAudioFrame } from "../../../packages/realtime-protocol/src/voice-audio.js";
|
|
6
7
|
import { VOICE_REALTIME_HEARTBEAT_INTERVAL_MS, VOICE_REALTIME_MAX_BINARY_FRAME_BYTES, VOICE_REALTIME_START_TIMEOUT_MS, VOICE_REALTIME_WS_PATH, init_voice, parseVoiceClientJsonFrame, parseVoiceClientMessage } from "../../../packages/realtime-protocol/src/voice.js";
|
|
7
8
|
import { getModelCatalogStore, init_model_catalog_store } from "../../providers/model-catalog-store.js";
|
|
8
|
-
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
9
9
|
import { getMediaUnderstandingProvider } from "../../media-understanding/registry.js";
|
|
10
10
|
import { resolveSTTProviderChain } from "../stt/factory.js";
|
|
11
11
|
import { mergeSttConfigFromAppConfig } from "../stt/config.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnderstandingSourceRun, listUnderstandingSourceGrants, listUnderstandingSourceRuns, updateUnderstandingSourceRun } from "../user-context/sources/repository.js";
|
|
2
1
|
import { getWorkDiscoveryRun } from "./repository.js";
|
|
2
|
+
import { createUnderstandingSourceRun, listUnderstandingSourceGrants, listUnderstandingSourceRuns, updateUnderstandingSourceRun } from "../user-context/sources/repository.js";
|
|
3
3
|
import { workDiscoveryFingerprintsEqual } from "./incremental.js";
|
|
4
4
|
//#region src/work-discovery/incremental-repository.ts
|
|
5
5
|
function refreshFromRun(run) {
|
|
@@ -5,19 +5,19 @@ import { createContextEvidence, init_context_evidence_repository } from "../stor
|
|
|
5
5
|
import { ensureSessionRecord, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
6
6
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
7
7
|
import { ActivityService } from "../activity/service.js";
|
|
8
|
-
import {
|
|
9
|
-
import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
8
|
+
import { linkAssertionEvidence, reconcileAssertion } from "../user-model/repository.js";
|
|
10
9
|
import { init_session_key, resolveConversationId } from "../routing/session-key.js";
|
|
11
|
-
import "../
|
|
10
|
+
import { createPriorityWindow, createUserGoal } from "../user-model/goals.js";
|
|
11
|
+
import "../user-model/index.js";
|
|
12
|
+
import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
|
|
12
13
|
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
13
14
|
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
14
15
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
15
16
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
16
17
|
import { isLocalModelBaseUrl } from "../providers/model-call.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "../
|
|
20
|
-
import { createWorkDiscoveryRun, getProjectUnderstandingRun, getWorkDiscoveryOnboardingState, getWorkDiscoveryRun, getWorkDiscoveryRunByIdempotencyKey, listPendingProjectUnderstandingRuns, setWorkDiscoveryFeedback, setWorkDiscoveryOnboardingState, updateWorkDiscoveryRun } from "./repository.js";
|
|
18
|
+
import { createUnderstandingSourceRun, getUnderstandingSourceGrant, getUnderstandingSourceRun, updateUnderstandingSourceGrantCheckpoint, updateUnderstandingSourceGrantPolicies, updateUnderstandingSourceRun, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
|
|
19
|
+
import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
20
|
+
import "../knowledge-memory/index.js";
|
|
21
21
|
import { allowsRemoteSourceProcessing } from "../user-context/sources/processing-policy.js";
|
|
22
22
|
import { analyzeUnderstandingSources, analyzeWorkContext, workDiscoveryResultMarkdown } from "./analyzer.js";
|
|
23
23
|
import { clusterActivityTopics } from "../user-context/sources/activity-clustering.js";
|
|
@@ -2,8 +2,8 @@ import { TaskRepository, init_task_repository } from "../../tasks/task-repositor
|
|
|
2
2
|
import { ObjectLinkService } from "../../activity/service.js";
|
|
3
3
|
import "../../activity/index.js";
|
|
4
4
|
import { ProjectService } from "../../projects/project-service.js";
|
|
5
|
-
import { buildNoteAgentContextArtifact } from "../../notes/agent-context.js";
|
|
6
5
|
import { NotesStore } from "../../notes/store.js";
|
|
6
|
+
import { buildNoteAgentContextArtifact } from "../../notes/agent-context.js";
|
|
7
7
|
import { NotesService } from "../../notes/service.js";
|
|
8
8
|
import "../../notes/index.js";
|
|
9
9
|
import { WorkflowContextSnapshotRepository } from "./workflow-context-snapshot-repository.js";
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { TaskRepository, init_task_repository } from "../../tasks/task-repository.js";
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
3
|
+
import { TaskContextRepository } from "../../tasks/task-context-repository.js";
|
|
3
4
|
import { init_conversation_repository, resolveRoutedConversation } from "../../storage/sqlite/conversation-repository.js";
|
|
4
|
-
import {
|
|
5
|
+
import { automationEventPublisher, getAutomationEventForRun } from "../../automations/events/event-repository.js";
|
|
5
6
|
import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-route.js";
|
|
6
7
|
import { extractProfileAgentId, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
7
|
-
import { resolveModelSelector } from "../../config/agent-model-intents.js";
|
|
8
|
-
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
9
8
|
import { getProjectWorkspacePathForSession } from "../../projects/workspace.js";
|
|
10
9
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
11
|
-
import {
|
|
10
|
+
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
11
|
+
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
12
|
+
import { resolveModelSelector } from "../../config/agent-model-intents.js";
|
|
12
13
|
import { isTerminalWorkflowRunStatus } from "../domain/run.js";
|
|
13
14
|
import { validateWorkflowJsonSchema } from "../domain/schema-validation.js";
|
|
14
15
|
import "../domain/index.js";
|
|
15
|
-
import { TaskContextRepository } from "../../tasks/task-context-repository.js";
|
|
16
|
-
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
17
16
|
import { DelegateSubagentRunner } from "../../agent/workflow/subagent-runner.js";
|
|
18
17
|
import { preflightWorkflowConnectors } from "../../connectors/workflow-preflight.js";
|
|
19
18
|
import { CatalogWorkflowDefinitionRegistry } from "../registry/catalog-workflow-definition-registry.js";
|
|
@@ -26,7 +25,6 @@ import { WorkflowWritebackService, resolveWorkflowWritebackPolicy } from "./work
|
|
|
26
25
|
import { randomUUID } from "node:crypto";
|
|
27
26
|
//#region src/workflows/service/workflow-run-service.ts
|
|
28
27
|
init_conversation_repository();
|
|
29
|
-
init_repository();
|
|
30
28
|
init_task_repository();
|
|
31
29
|
init_task_run_repository();
|
|
32
30
|
init_resolve_route();
|
|
@@ -602,10 +600,11 @@ var WorkflowRunService = class {
|
|
|
602
600
|
const agentWorkspace = resolveEffectiveAgentProfileForSession(params.conversationId).resolvedWorkspacePath;
|
|
603
601
|
const workspace = getProjectWorkspacePathForSession(params.conversationId) ?? agentWorkspace;
|
|
604
602
|
const runner = new DelegateSubagentRunner({
|
|
603
|
+
isWorkspaceTrusted: (path) => gatewayService.agentService.getWorkspaceTrust?.(path)?.trusted,
|
|
605
604
|
workspace,
|
|
606
605
|
bus: gatewayService.messageBusInstance,
|
|
607
606
|
agentId: profileAgentId,
|
|
608
|
-
getDefaultModel: () => resolveModel(
|
|
607
|
+
getDefaultModel: () => resolveModel(resolveEffectiveAgentProfile(profileAgentId).primaryModelRef),
|
|
609
608
|
getConfig: () => gatewayService.currentConfig,
|
|
610
609
|
sessionStore: gatewayService.sessionIndexInstance.getStore(),
|
|
611
610
|
buildChildTools: (childOptions) => this.options.buildChildTools({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xopcai/xopc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.394",
|
|
4
4
|
"description": "Local-first personal AI with Ada, task delegation, files, projects, workflows, and automations. Use cloud or local models.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -169,8 +169,8 @@
|
|
|
169
169
|
"vue": "^3.5.35",
|
|
170
170
|
"xlsx": "file:web/vendor/xlsx-0.20.3.tgz",
|
|
171
171
|
"@xopcai/browser-control-contract": "0.1.0",
|
|
172
|
-
"@xopcai/endpoint-tools-client": "0.0.0",
|
|
173
172
|
"@xopcai/computer-control-contract": "0.1.0",
|
|
173
|
+
"@xopcai/endpoint-tools-client": "0.0.0",
|
|
174
174
|
"@xopcai/endpoint-tools-protocol": "0.0.0",
|
|
175
175
|
"@xopcai/gateway-contract": "0.0.0",
|
|
176
176
|
"@xopcai/image-providers": "0.1.0",
|
|
@@ -281,6 +281,10 @@
|
|
|
281
281
|
"electron:build": "pnpm run build:node && pnpm run build:web && pnpm run electron:build:artifacts && pnpm run electron:package",
|
|
282
282
|
"electron:preview": "cross-env ELECTRON_ENTRY=out/main/index.js electron-vite preview",
|
|
283
283
|
"mobile:charts:assets": "node packages/chart-spec/scripts/build-mobile.mjs ios android harmony",
|
|
284
|
-
"mobile:math:assets": "pnpm --filter @xopcai/markdown-math build:mobile ios android harmony"
|
|
284
|
+
"mobile:math:assets": "pnpm --filter @xopcai/markdown-math build:mobile ios android harmony",
|
|
285
|
+
"eval:benchmark": "tsx evals/coder/apps/cli/src/benchmark.ts",
|
|
286
|
+
"eval:benchmark:check": "pnpm -C evals/coder run typecheck && pnpm -C evals/coder exec vitest run --configLoader native tests/benchmark-v1.test.ts tests/xopc-adapter.test.ts tests/suite-loader.test.ts",
|
|
287
|
+
"eval:benchmark:live": "node --import tsx evals/coder/scripts/run-benchmark-live.mjs",
|
|
288
|
+
"eval:benchmark:regrade": "tsx evals/coder/apps/cli/src/benchmark-regrade.ts"
|
|
285
289
|
}
|
|
286
290
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-DPHK1VkS.js";var t=e(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]);export{t};
|