@xopcai/xopc 0.0.352 → 0.0.354
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/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/activity-YogQEteU.js +1 -0
- package/dist/gateway/static/root/assets/activity-store-X7CG9pzB.js +1 -0
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-ChlaFmiD.js → agent-avatar-dicebear-B8PS1eLP.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CLBSL9hl.js +1 -0
- package/dist/gateway/static/root/assets/agent-plugin-dialog-BninweSg.js +1 -0
- package/dist/gateway/static/root/assets/agents-CcVLP_WP.js +66 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-C_3ucZGI.js → agents-admin-api-Ck2x78jq.js} +1 -1
- package/dist/gateway/static/root/assets/app-chrome-BeB4KgOf.js +1 -0
- package/dist/gateway/static/root/assets/app-management-settings-panel-COdQOmdT.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-CDNjc2yy.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-C-kvpPj8.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-D4EiLLyl.js → archive-plugin-QfOaQPL_.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-CMxBpT5v.js → automations-page-87DN5nXX.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BdZ8NO8k.js +7 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DQc_BlYP.js → binary-plugins-BF2lVwR9.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-C3S6gqnS.js → block-editor-B04Kv5DU.js} +39 -39
- package/dist/gateway/static/root/assets/bot-DjLkhyZL.js +1 -0
- package/dist/gateway/static/root/assets/{browser-automation-inputs-D2SwaQ2F.js → browser-automation-inputs-FW3bYZ-z.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-CGG1740U.js → browser-automations-page-Ck6Zb9aU.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-DHlyYItE.js +3 -0
- package/dist/gateway/static/root/assets/{capabilities-D4qdO980.js → capabilities-BCF_160Z.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-CF4-mrIa.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-C-6RLFNh.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CST_HBkR.js +8 -0
- package/dist/gateway/static/root/assets/capability-header-actions-PBPJJsp6.js +1 -0
- package/dist/gateway/static/root/assets/channels-CM4sIvcP.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-DfTUgrey.js → chat-terminal-dock-DTd7mWyE.js} +2 -2
- package/dist/gateway/static/root/assets/chevron-right-BweFrslA.js +1 -0
- package/dist/gateway/static/root/assets/circle-alert-BEjgurr2.js +1 -0
- package/dist/gateway/static/root/assets/circle-dashed-8qMD7gHf.js +1 -0
- package/dist/gateway/static/root/assets/circle-dot-BAseJTrF.js +1 -0
- package/dist/gateway/static/root/assets/circle-pause-CN9jYH2s.js +1 -0
- package/dist/gateway/static/root/assets/clock-3-DnrAnuyZ.js +1 -0
- package/dist/gateway/static/root/assets/cloud-C4-yfnnk.js +1 -0
- package/dist/gateway/static/root/assets/computer-settings-page--9rh1mvu.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-v6Is0BOO.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-CryQzmEZ.js +2 -0
- package/dist/gateway/static/root/assets/copy-text-row-BHDs3cBa.js +1 -0
- package/dist/gateway/static/root/assets/date-picker-DTsMzjoZ.js +1 -0
- package/dist/gateway/static/root/assets/{dependency-picker-CV2ybJJd.js → dependency-picker-Y1QYCcLp.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-DipFHe4X.js → desktop-pet-D9dfZrOp.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-BHVOHZUL.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-Cy5YDZ2b.js +1 -0
- package/dist/gateway/static/root/assets/directory-picker-path-field-DeMo9KlE.js +1 -0
- package/dist/gateway/static/root/assets/dist-3h6cXXhT.js +1 -0
- package/dist/gateway/static/root/assets/dist-Che_jiQF.js +1 -0
- package/dist/gateway/static/root/assets/extension-debug-page-BrGWLJg9.js +1 -0
- package/dist/gateway/static/root/assets/extension-page-AWrvy1Nb.js +1 -0
- package/dist/gateway/static/root/assets/extension-provider-CUpbXB2k.js +1 -0
- package/dist/gateway/static/root/assets/extension-settings-page-C5KgmhYu.js +1 -0
- package/dist/gateway/static/root/assets/form-field-width-DJw_jULe.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-DZWFlfJr.js → gateway-config-swr-B31I6Gbq.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-HO9tL9xo.js → gateway-realtime-D6ffOiPe.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-DQuFWNjA.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-DC-lok0J.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-Cg1nbxJR.js → gateway-startup-retry-DVol958v.js} +1 -1
- package/dist/gateway/static/root/assets/git-branch-Dh9uxTot.js +1 -0
- package/dist/gateway/static/root/assets/home-page-C29_VFAs.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-DSnPfr_U.js → image-generation-api-TVgJfz9r.js} +1 -1
- package/dist/gateway/static/root/assets/imports-page-BKVKfVMA.js +1 -0
- package/dist/gateway/static/root/assets/index-BJh5gU04.css +1 -0
- package/dist/gateway/static/root/assets/index-ByFXhQ-T.js +107 -0
- package/dist/gateway/static/root/assets/index.module-Cd9ENXfk.js +1 -0
- package/dist/gateway/static/root/assets/interaction-BdhHBbYa.js +1 -0
- package/dist/gateway/static/root/assets/is-masked-secret-DOkL5b_X.js +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-ixQ8_6ad.js → keyboard-shortcuts-settings-DiwE4gKU.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-Dt3TC64L.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BV3NFUJQ.js → local-apps-page-DFPhWkxU.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-CuyTzbfW.js → local-session-drafts-wiq_12oN.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-qcYD05PF.js → locale-store-Y1aBayM_.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-C4faHZHj.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-pZLdvIiw.js +1 -0
- package/dist/gateway/static/root/assets/markdown-view-7tzqIp_G.js +201 -0
- package/dist/gateway/static/root/assets/{media-plugins-cpalRgVI.js → media-plugins-cjgrKnne.js} +1 -1
- package/dist/gateway/static/root/assets/message-square-fVE7Ghj1.js +1 -0
- package/dist/gateway/static/root/assets/messages-DPw2X06D.js +3 -0
- package/dist/gateway/static/root/assets/mic-CuUb7zc-.js +1 -0
- package/dist/gateway/static/root/assets/model-display-name-DXhO9rcM.js +1 -0
- package/dist/gateway/static/root/assets/models-hub-cache-HGrORbzR.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-BLnT1tYJ.js +5 -0
- package/dist/gateway/static/root/assets/notes-api-J0yhflxC.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-BawArJvP.js +8 -0
- package/dist/gateway/static/root/assets/oauth-api-CYe61zfD.js +1 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-CiBUm2Br.js +1 -0
- package/dist/gateway/static/root/assets/page-tabs-D2xpUV26.js +1 -0
- package/dist/gateway/static/root/assets/pause-DuPxgSxk.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-Cng583RH.js +1 -0
- package/dist/gateway/static/root/assets/play-kxZvpBg8.js +1 -0
- package/dist/gateway/static/root/assets/popover-select-DcsFzD_i.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-Dvey7GwU.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-BJwEshPw.js → product-open-page-B8_w6c3J.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-CDZdKiTz.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-BvahSrZi.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-C0j3sKT4.js → registry-api-DqDOrPQ0.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CU_UdkuI.js +1 -0
- package/dist/gateway/static/root/assets/rotate-ccw-JM1TBLpp.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-SbIgL9Ya.js → runtime-tools-settings-panel-BnMS50vK.js} +2 -2
- package/dist/gateway/static/root/assets/scenes-page-CDR1-q25.js +2 -0
- package/dist/gateway/static/root/assets/schema-form-B4Xa8w8S.js +1 -0
- package/dist/gateway/static/root/assets/secret-input-DPl3VYM8.js +1 -0
- package/dist/gateway/static/root/assets/send-session-input-C7Nqy0sK.js +1 -0
- package/dist/gateway/static/root/assets/{session-api-iR1SFNHe.js → session-api-CTN4qwiN.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-3YOU74jt.js → session-manager-DsH1DZI_.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-Ymyg98G-.js +1 -0
- package/dist/gateway/static/root/assets/settings-2-D-csvaET.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-wMZhxwTM.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-draft-Dy10ldo8.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-section-exRhP9xn.js +1 -0
- package/dist/gateway/static/root/assets/settings-page-CHZdpvkT.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-HESfALIF.js +1 -0
- package/dist/gateway/static/root/assets/share-link-dialog-COlX10Dc.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-NtRLUieq.js +2 -0
- package/dist/gateway/static/root/assets/shares-api-DICV5EKH.js +1 -0
- package/dist/gateway/static/root/assets/shares-settings-CXEBo5YL.js +1 -0
- package/dist/gateway/static/root/assets/skill-api-DYgcO7y0.js +1 -0
- package/dist/gateway/static/root/assets/skill-api-utils-C7V4JVXM.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-CWH3Fmx4.js +1 -0
- package/dist/gateway/static/root/assets/skill-wire-pattern-BPpeIcCi.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-Dx5v64jU.js +2 -0
- package/dist/gateway/static/root/assets/sparkles-DHlfQFAF.js +1 -0
- package/dist/gateway/static/root/assets/system-settings-panel-wXCBwYwE.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-hoIyr7tp.js +1 -0
- package/dist/gateway/static/root/assets/tasks-Buv1mgPF.js +1 -0
- package/dist/gateway/static/root/assets/theme-store-BKgBPLH4.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-C0t8y3Mi.js +1 -0
- package/dist/gateway/static/root/assets/usage-page-A2DZAidl.js +1 -0
- package/dist/gateway/static/root/assets/use-async-resource-GrnWNwMZ.js +1 -0
- package/dist/gateway/static/root/assets/use-autosave-Cn6hqqyM.js +1 -0
- package/dist/gateway/static/root/assets/use-composer-attachments-DL61XeSu.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-Cl9mU32w.js +2 -0
- package/dist/gateway/static/root/assets/user-model-page-C1jGTwjK.js +2 -0
- package/dist/gateway/static/root/assets/voice-api-key-field-Bw05QB_V.js +1 -0
- package/dist/gateway/static/root/assets/{voice-config-api-CylVelIb.js → voice-config-api-BM75K3mR.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-9bULjfGk.js → work-discovery-overlay-xB0QpOFk.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-VYQHBiz3.js → workflow-run-setup-panel-rM4U1FXc.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-QKC34FzQ.js +6 -0
- package/dist/gateway/static/root/assets/workspace-api-BbBT75Kg.js +2 -0
- package/dist/gateway/static/root/index.html +68 -26
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/tasks.js +19 -2
- package/dist/src/agent/agent-manager.js +27 -22
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +4 -4
- package/dist/src/agent/bootstrap/bootstrap-files.d.ts +0 -4
- package/dist/src/agent/bootstrap/bootstrap-files.js +3 -9
- package/dist/src/agent/bootstrap/load-bootstrap-files.js +2 -4
- package/dist/src/agent/coding/repository-instructions.js +1 -1
- package/dist/src/agent/context/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +2 -2
- package/dist/src/agent/context/project-context.js +3 -3
- package/dist/src/agent/context/workspace-seed.d.ts +1 -7
- package/dist/src/agent/context/workspace-seed.js +4 -13
- package/dist/src/agent/context/workspace-templates/AGENTS.md +1 -1
- package/dist/src/agent/context/workspace.d.ts +1 -3
- package/dist/src/agent/context/workspace.js +3 -7
- package/dist/src/agent/data-acquisition/service.js +1 -1
- package/dist/src/agent/embedded/index.js +2 -2
- package/dist/src/agent/embedded/model-runtime.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +4 -4
- package/dist/src/agent/embedded/run-turn.js +15 -5
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +3 -3
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
- package/dist/src/agent/image/generation/providers/fal.js +1 -1
- package/dist/src/agent/image/generation/providers/google.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +2 -2
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-config.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +2 -2
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-stdio-transport.js +1 -1
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +1 -1
- package/dist/src/agent/mcp/plugin-http-fetch.js +1 -1
- package/dist/src/agent/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/messaging/no-reply.d.ts +1 -0
- package/dist/src/agent/messaging/no-reply.js +4 -0
- package/dist/src/agent/messaging/outbound-coordinator.d.ts +0 -4
- package/dist/src/agent/messaging/outbound-coordinator.js +2 -4
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/prompt/sections/agent-identity.d.ts +3 -0
- package/dist/src/agent/prompt/sections/agent-identity.js +13 -0
- package/dist/src/agent/prompt/sections/messaging-runtime.d.ts +0 -5
- package/dist/src/agent/prompt/sections/messaging-runtime.js +2 -16
- package/dist/src/agent/prompt/sections/project-context.d.ts +0 -3
- package/dist/src/agent/prompt/sections/project-context.js +2 -9
- package/dist/src/agent/prompt/sections/tooling.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.d.ts +2 -0
- package/dist/src/agent/prompt/service-prompt-builder.js +5 -10
- package/dist/src/agent/prompt/subagent-context.js +1 -1
- package/dist/src/agent/prompt/system-prompt-params.d.ts +0 -4
- package/dist/src/agent/prompt/system-prompt-params.js +0 -2
- package/dist/src/agent/prompt/system-prompt.d.ts +2 -2
- package/dist/src/agent/prompt/system-prompt.js +8 -9
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +4 -4
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +5 -5
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +24 -22
- package/dist/src/agent/session/session-config-service.js +27 -1
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/source-context/index.js +2 -2
- package/dist/src/agent/starter-agents.d.ts +0 -4
- package/dist/src/agent/starter-agents.js +57 -98
- package/dist/src/agent/tasks/task-judge-service.js +4 -4
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +7 -4
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- package/dist/src/agent/tools/dataBatch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/delegation-parent-policy.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.d.ts +1 -1
- package/dist/src/agent/tools/factory.js +37 -30
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +6 -6
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/personal-preference-tool.d.ts +10 -0
- package/dist/src/agent/tools/personal-preference-tool.js +43 -0
- package/dist/src/agent/tools/personal-task-tool.d.ts +28 -0
- package/dist/src/agent/tools/personal-task-tool.js +165 -0
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +2 -2
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +8 -7
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.d.ts +5 -0
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.js +94 -0
- package/dist/src/agent-catalog/repository.js +7 -1
- package/dist/src/agent-catalog/service.d.ts +1 -1
- package/dist/src/agent-catalog/service.js +4 -3
- package/dist/src/agent-config/index.js +2 -2
- package/dist/src/agent-config/schema.d.ts +167 -0
- package/dist/src/agent-config/schema.js +47 -6
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- 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 +2 -2
- package/dist/src/automations/index.js +4 -4
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/backup/archive.js +1 -1
- package/dist/src/bootstrap/application-state.js +3 -1
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/agent-edit.js +4 -7
- package/dist/src/chat-commands/builtins/config.js +4 -4
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +13 -3
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +2 -2
- package/dist/src/chat-commands/context.js +10 -4
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +7 -7
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +2 -2
- package/dist/src/cli/commands/doctor/checks/tool-runtimes.js +1 -1
- package/dist/src/cli/commands/doctor/checks/workspace-status.js +0 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +2 -2
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/extension.js +4 -4
- package/dist/src/cli/commands/gateway/shared.js +1 -1
- package/dist/src/cli/commands/gateway/token.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -34
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +2 -2
- package/dist/src/cli/commands/runtime.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tunnel.js +4 -4
- package/dist/src/cli/extension-cli-register.js +5 -5
- package/dist/src/cli/templates.d.ts +1 -1
- package/dist/src/cli/templates.js +1 -23
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +2 -2
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +2 -2
- package/dist/src/config/index.js +8 -8
- package/dist/src/config/loader.js +3 -3
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/paths.d.ts +0 -2
- package/dist/src/config/paths.js +1 -3
- package/dist/src/config/reload.d.ts +0 -1
- package/dist/src/config/reload.js +0 -4
- package/dist/src/config/rules.js +0 -5
- package/dist/src/config/schema.d.ts +0 -45
- package/dist/src/config/schema.js +3 -24
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +3 -3
- package/dist/src/connectors/connection-recovery-service.js +5 -5
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/plugin-mcp-recovery.js +1 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +4 -4
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.d.ts +1 -9
- package/dist/src/gateway/agents-admin.js +9 -34
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/browser.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/personal-agent.d.ts +3 -0
- package/dist/src/gateway/hono/routes/personal-agent.js +107 -0
- package/dist/src/gateway/hono/routes/projects.js +4 -4
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.js +4 -4
- package/dist/src/gateway/hono/routes/sessions.js +6 -1
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +66 -3
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +5 -5
- package/dist/src/gateway/hono/routes/voice.js +14 -6
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/image-generation-setup.js +3 -3
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/run-loop.js +1 -1
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service/session-command-service.js +7 -1
- package/dist/src/gateway/service/sessions-api.js +12 -2
- package/dist/src/gateway/service.js +49 -49
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/session-reset-service.js +5 -0
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/generator.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +10 -10
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/store.js +1 -1
- package/dist/src/personal-agent/policy.d.ts +1 -0
- package/dist/src/personal-agent/policy.js +13 -0
- package/dist/src/personal-agent/repository.d.ts +25 -0
- package/dist/src/personal-agent/repository.js +68 -0
- package/dist/src/personal-agent/service.d.ts +48 -0
- package/dist/src/personal-agent/service.js +222 -0
- package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/resources.js +1 -1
- package/dist/src/scenes/taskFollowUp/service.js +4 -4
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/resolve-session.js +4 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +4 -4
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/share-zip.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/storage/sqlite/migrations/229_task_criterion_reviews.sql +12 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/schema.sql +13 -0
- package/dist/src/storage/sqlite/session-repository.js +6 -2
- package/dist/src/storage/sqlite/transcript-repository.js +2 -1
- package/dist/src/tasks/capabilities/read.js +5 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +3 -3
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-application-service.js +8 -3
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-criterion-review-repository.d.ts +22 -0
- package/dist/src/tasks/task-criterion-review-repository.js +74 -0
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-main-update-decision-service.js +7 -1
- package/dist/src/tui/backends/embedded-backend.js +12 -12
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +1 -1
- package/dist/src/tui/tui-commands.js +6 -6
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +4 -4
- package/dist/src/tui/tui.js +7 -7
- package/dist/src/tunnel/frpc-binary.js +1 -1
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/realtime/persona-context.d.ts +2 -2
- package/dist/src/voice/realtime/persona-context.js +19 -33
- package/dist/src/voice/realtime/runtime.js +3 -3
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/index.js +1 -1
- package/dist/src/work-discovery/service.js +5 -5
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +8 -8
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CgNagNMG.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-CDhtsMpV.js +0 -1
- package/dist/gateway/static/root/assets/agents-BLP0zRru.js +0 -70
- package/dist/gateway/static/root/assets/app-management-settings-panel-DqC-oj5_.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-Cfhepf6U.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-C6n5r8AP.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-DJ_-_kGh.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page-COTo7btH.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-page-BsC346Ym.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CRL4gfk5.js +0 -8
- package/dist/gateway/static/root/assets/capability-header-actions-B_60-buR.js +0 -1
- package/dist/gateway/static/root/assets/channels-DNxr72oD.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-Bk84TKyF.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-B2pC--2X.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-Bu15_14O.js +0 -2
- package/dist/gateway/static/root/assets/date-picker-CCN30yiy.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-Dg3RM_vY.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-DUy1HymM.js +0 -1
- package/dist/gateway/static/root/assets/directory-picker-path-field-BTuFpGIK.js +0 -1
- package/dist/gateway/static/root/assets/dist-CKkafhaS.js +0 -1
- package/dist/gateway/static/root/assets/dist-io9jFpN72.js +0 -1
- package/dist/gateway/static/root/assets/extension-debug-page-xM8vfbRZ.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-Cl8zlion.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-DODk0nOi.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B01fiKrV.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-BL3C7Q9w.js +0 -1
- package/dist/gateway/static/root/assets/home-page-CjJVq_Ff.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-By9oc8sD.js +0 -1
- package/dist/gateway/static/root/assets/index-B-w6Rk9Z.css +0 -1
- package/dist/gateway/static/root/assets/index-S4z-eKe-.js +0 -106
- package/dist/gateway/static/root/assets/local-app-workbench-page-Bnz5YOks.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-DVqwybaT.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-CUoDWFg7.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-BhFHoVtG.js +0 -201
- package/dist/gateway/static/root/assets/messages-vL3EpIrL.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-CxbZWvj1.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-DkEOEza6.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-CjCYNkVb.js +0 -1
- package/dist/gateway/static/root/assets/page-tabs-Dnzie6QW.js +0 -1
- package/dist/gateway/static/root/assets/popover-select-0p9PIHRy.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-D1H4_Nfl.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-BWC89e7l.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-BYmHC91B.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-DuVzpZ9R.js +0 -1
- package/dist/gateway/static/root/assets/scenes-page-BBl_4U1U.js +0 -2
- package/dist/gateway/static/root/assets/schema-form-Rj-wi9sm.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-BnipzwJ6.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-C7oNKVxC.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-6gOr-ype.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-D1tVcmlR.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-CR0VBBw3.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-CK0Bg_-o.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-B3Ghvh3c.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-CoIsCPbI.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DMIwfISw.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-CDkm7yig.js +0 -2
- package/dist/gateway/static/root/assets/system-settings-panel-Cfv-jDmY.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-eYs6qgcW.js +0 -1
- package/dist/gateway/static/root/assets/tasks-BH8_WMUF.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-CpOQaCFN.js +0 -1
- package/dist/gateway/static/root/assets/usage-page-Cye-2eKA.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-o6YLrkpO.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-Bg-jeU7W.js +0 -2
- package/dist/gateway/static/root/assets/voice-api-key-field-FMNwQIho.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-KnoMMEDN.js +0 -6
- package/dist/src/agent/bootstrap/filter-bootstrap-files.d.ts +0 -3
- package/dist/src/agent/bootstrap/filter-bootstrap-files.js +0 -18
- package/dist/src/agent/context/workspace-templates/HEARTBEAT.md +0 -26
- package/dist/src/agent/context/workspace-templates/IDENTITY.md +0 -30
- package/dist/src/agent/service/parse-outbound-session-key.d.ts +0 -8
- package/dist/src/agent/service/parse-outbound-session-key.js +0 -44
- package/dist/src/heartbeat/active-hours.d.ts +0 -11
- package/dist/src/heartbeat/active-hours.js +0 -40
- package/dist/src/heartbeat/content-check.d.ts +0 -4
- package/dist/src/heartbeat/content-check.js +0 -17
- package/dist/src/heartbeat/event-prompt.d.ts +0 -4
- package/dist/src/heartbeat/event-prompt.js +0 -11
- package/dist/src/heartbeat/index.d.ts +0 -5
- package/dist/src/heartbeat/index.js +0 -6
- package/dist/src/heartbeat/tokens.d.ts +0 -15
- package/dist/src/heartbeat/tokens.js +0 -25
- package/dist/src/heartbeat/wake.d.ts +0 -13
- package/dist/src/heartbeat/wake.js +0 -46
- /package/dist/gateway/static/root/assets/{dist-CI_fqRk-2.js → dist-CI_fqRk-.js} +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { getXopcDatabase } from "../../storage/sqlite/connection.js";
|
|
2
|
+
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
3
|
+
import { AgentCatalogRepository, init_repository } from "../repository.js";
|
|
4
|
+
import { init_agent_scope, resolveAgentProfileDir } from "../../agent/agent-scope.js";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import { existsSync, readFileSync, renameSync } from "node:fs";
|
|
7
|
+
//#region src/agent-catalog/migrations/identity-markdown-cutover.ts
|
|
8
|
+
init_agent_scope();
|
|
9
|
+
init_sqlite();
|
|
10
|
+
init_repository();
|
|
11
|
+
const MIGRATION_ID = "agent-identity-structured-v1";
|
|
12
|
+
const FIELDS = {
|
|
13
|
+
name: "name",
|
|
14
|
+
名称: "name",
|
|
15
|
+
description: "description",
|
|
16
|
+
简介: "description",
|
|
17
|
+
一句话介绍: "description",
|
|
18
|
+
职责: "description",
|
|
19
|
+
creature: "creature",
|
|
20
|
+
type: "creature",
|
|
21
|
+
role: "creature",
|
|
22
|
+
类型: "creature",
|
|
23
|
+
角色: "creature",
|
|
24
|
+
vibe: "style",
|
|
25
|
+
style: "style",
|
|
26
|
+
风格: "style",
|
|
27
|
+
表达风格: "style",
|
|
28
|
+
language: "language",
|
|
29
|
+
语言: "language",
|
|
30
|
+
主要语言: "language",
|
|
31
|
+
emoji: "emoji",
|
|
32
|
+
签名表情: "emoji",
|
|
33
|
+
表情: "emoji",
|
|
34
|
+
avatar: "avatar",
|
|
35
|
+
头像: "avatar",
|
|
36
|
+
头像地址: "avatar"
|
|
37
|
+
};
|
|
38
|
+
/** Parse only known identity fields. The original document is archived after migration. */
|
|
39
|
+
function parseIdentityFieldsForCutover(content) {
|
|
40
|
+
const fields = {};
|
|
41
|
+
for (const line of content.split(/\r?\n/)) {
|
|
42
|
+
const match = /^\s*[-*]\s+\*\*([^*::]+?)(?:[::]\*\*|\*\*[::])\s*(.*)$/.exec(line);
|
|
43
|
+
if (!match) continue;
|
|
44
|
+
const key = FIELDS[match[1].trim().toLowerCase()];
|
|
45
|
+
const value = match[2].trim();
|
|
46
|
+
if (key && value && !/^_\(.*\)_$/.test(value)) fields[key] = value;
|
|
47
|
+
}
|
|
48
|
+
return fields;
|
|
49
|
+
}
|
|
50
|
+
/** One-time upgrade. Runtime never reads the retired identity document. */
|
|
51
|
+
function migrateIdentityMarkdownToCatalog() {
|
|
52
|
+
const database = getXopcDatabase().db;
|
|
53
|
+
if (database.prepare("SELECT state FROM application_migrations WHERE id = ?").get(MIGRATION_ID)?.state === "completed") return;
|
|
54
|
+
const repository = new AgentCatalogRepository();
|
|
55
|
+
const migratedPaths = [];
|
|
56
|
+
for (const agent of repository.list()) {
|
|
57
|
+
const source = join(resolveAgentProfileDir(agent.id), "IDENTITY.md");
|
|
58
|
+
if (!existsSync(source)) continue;
|
|
59
|
+
const fields = parseIdentityFieldsForCutover(readFileSync(source, "utf8"));
|
|
60
|
+
const current = agent.profile;
|
|
61
|
+
const profile = {
|
|
62
|
+
name: current?.name || fields.name || agent.id,
|
|
63
|
+
...Object.fromEntries([
|
|
64
|
+
"description",
|
|
65
|
+
"creature",
|
|
66
|
+
"style",
|
|
67
|
+
"language",
|
|
68
|
+
"emoji",
|
|
69
|
+
"avatar"
|
|
70
|
+
].filter((key) => current?.[key] || fields[key]).map((key) => [key, current?.[key] || fields[key]])),
|
|
71
|
+
...current?.instructions ? { instructions: current.instructions } : {}
|
|
72
|
+
};
|
|
73
|
+
const { revision, provisioningState: _provisioningState, provisioningError: _provisioningError, createdAt: _createdAt, updatedAt: _updatedAt, deletedAt: _deletedAt, ...entry } = agent;
|
|
74
|
+
repository.update(agent.id, revision, {
|
|
75
|
+
...entry,
|
|
76
|
+
profile
|
|
77
|
+
});
|
|
78
|
+
migratedPaths.push({
|
|
79
|
+
source,
|
|
80
|
+
backup: join(resolveAgentProfileDir(agent.id), ".identity-migration-backup")
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
for (const { source, backup } of migratedPaths) {
|
|
84
|
+
if (existsSync(backup)) throw new Error(`Identity migration backup already exists: ${backup}`);
|
|
85
|
+
renameSync(source, backup);
|
|
86
|
+
}
|
|
87
|
+
const now = Date.now();
|
|
88
|
+
database.prepare(`INSERT INTO application_migrations
|
|
89
|
+
(id, state, source_digest, source_backup_path, database_backup_path, error_json,
|
|
90
|
+
started_at, completed_at, updated_at)
|
|
91
|
+
VALUES (?, 'completed', NULL, NULL, NULL, NULL, ?, ?, ?)`).run(MIGRATION_ID, now, now, now);
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { migrateIdentityMarkdownToCatalog, parseIdentityFieldsForCutover };
|
|
@@ -81,7 +81,13 @@ var init_repository = __esmMin((() => {
|
|
|
81
81
|
db.prepare(`INSERT OR IGNORE INTO agents
|
|
82
82
|
(id, enabled, workspace_override, profile_json, overrides_json, provisioning_state,
|
|
83
83
|
provisioning_error, revision, created_at, updated_at, deleted_at)
|
|
84
|
-
VALUES (?, 1, NULL, ?, '{}', 'pending', NULL, 1, ?, ?, NULL)`).run(DEFAULT_AGENT_ID, JSON.stringify({
|
|
84
|
+
VALUES (?, 1, NULL, ?, '{}', 'pending', NULL, 1, ?, ?, NULL)`).run(DEFAULT_AGENT_ID, JSON.stringify({
|
|
85
|
+
name: "Smart Assistant",
|
|
86
|
+
description: "General-purpose personal assistant.",
|
|
87
|
+
creature: "assistant",
|
|
88
|
+
language: "en",
|
|
89
|
+
emoji: "✨"
|
|
90
|
+
}), now, now);
|
|
85
91
|
db.prepare(`INSERT OR IGNORE INTO agent_catalog_settings
|
|
86
92
|
(singleton_id, default_agent_id, defaults_json, revision, created_at, updated_at)
|
|
87
93
|
VALUES (1, ?, ?, 1, ?, ?)`).run(DEFAULT_AGENT_ID, JSON.stringify(AgentDefaultsSchema.parse(defaults)), now, now);
|
|
@@ -9,7 +9,7 @@ export declare class AgentCatalogService {
|
|
|
9
9
|
resumePendingProvisioning(): Promise<void>;
|
|
10
10
|
/** Startup recovery for catalog rows committed before their directories were provisioned. */
|
|
11
11
|
resumePendingProvisioningSync(): void;
|
|
12
|
-
update(agentIdRaw: string, patch: Partial<Omit<AgentEntry, 'id'
|
|
12
|
+
update(agentIdRaw: string, patch: Partial<Omit<AgentEntry, 'id'>>, expectedRevision?: number): Promise<StoredAgent>;
|
|
13
13
|
/** Remove data for an Agent that has already been deleted from the catalog. */
|
|
14
14
|
purgeEntryData(entry: AgentEntry, defaultAgentId: string): Promise<void>;
|
|
15
15
|
validatePurgeEntry(entry: AgentEntry, defaultAgentId: string): void;
|
|
@@ -59,10 +59,11 @@ var AgentCatalogService = class {
|
|
|
59
59
|
}
|
|
60
60
|
this.resumePendingPurgeSync();
|
|
61
61
|
}
|
|
62
|
-
async update(agentIdRaw, patch) {
|
|
62
|
+
async update(agentIdRaw, patch, expectedRevision) {
|
|
63
63
|
const agentId = normalizeAgentId(agentIdRaw);
|
|
64
64
|
const current = this.repository.get(agentId);
|
|
65
65
|
if (!current) throw new Error(`Agent "${agentId}" not found`);
|
|
66
|
+
if (expectedRevision !== void 0 && current.revision !== expectedRevision) throw new Error("Agent revision conflict");
|
|
66
67
|
const { revision, provisioningState: _state, provisioningError: _error, createdAt: _created, updatedAt: _updated, deletedAt: _deleted, ...entry } = current;
|
|
67
68
|
const next = {
|
|
68
69
|
...entry,
|
|
@@ -155,7 +156,7 @@ var AgentCatalogService = class {
|
|
|
155
156
|
await mkdir(workspace, { recursive: true });
|
|
156
157
|
await mkdir(resolveAgentDir(entry.id), { recursive: true });
|
|
157
158
|
await mkdir(profileDir, { recursive: true });
|
|
158
|
-
seedAgentProfileMarkdownFiles(profileDir, workspace
|
|
159
|
+
seedAgentProfileMarkdownFiles(profileDir, workspace);
|
|
159
160
|
}
|
|
160
161
|
provisionSync(entry) {
|
|
161
162
|
const workspace = workspaceForEntry(entry, this.repository.getSettings().defaultAgentId);
|
|
@@ -163,7 +164,7 @@ var AgentCatalogService = class {
|
|
|
163
164
|
mkdirSync(workspace, { recursive: true });
|
|
164
165
|
mkdirSync(resolveAgentDir(entry.id), { recursive: true });
|
|
165
166
|
mkdirSync(profileDir, { recursive: true });
|
|
166
|
-
seedAgentProfileMarkdownFiles(profileDir, workspace
|
|
167
|
+
seedAgentProfileMarkdownFiles(profileDir, workspace);
|
|
167
168
|
}
|
|
168
169
|
purgeEntryDataSync(entry, defaultAgentId) {
|
|
169
170
|
if (entry.id === "main") throw new Error("Refusing to purge the primary Agent");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { AgentDefaultsSchema, AgentEntrySchema, AgentIdSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, AgentProfileSchema, ComputerModelRouteSchema, DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, EffectiveAgentConfigSchema, ImageGenerationRouteSchema, ModelIntentSchema, ModelRefSchema, ModelRouteSchema, RuntimePolicySchema, SkillDefaultsSchema, SkillOverrideSchema, ToolModeSchema, ToolPoliciesSchema, ToolPolicySchema, WorkflowPolicySchema, init_schema } from "./schema.js";
|
|
2
|
+
import { AgentDefaultsSchema, AgentEntrySchema, AgentIdSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, AgentProfileSchema, ComputerModelRouteSchema, DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, EffectiveAgentConfigSchema, ImageGenerationRouteSchema, ModelIntentSchema, ModelRefSchema, ModelRouteSchema, ResponsePreferencesSchema, RuntimePolicySchema, SkillDefaultsSchema, SkillOverrideSchema, ToolModeSchema, ToolPoliciesSchema, ToolPolicySchema, WorkflowPolicySchema, init_schema } from "./schema.js";
|
|
3
3
|
import { init_resolver, resolveEffectiveAgentConfig } from "./resolver.js";
|
|
4
4
|
//#region src/agent-config/index.ts
|
|
5
5
|
var init_agent_config = __esmMin((() => {
|
|
@@ -8,4 +8,4 @@ var init_agent_config = __esmMin((() => {
|
|
|
8
8
|
}));
|
|
9
9
|
//#endregion
|
|
10
10
|
init_agent_config();
|
|
11
|
-
export { AgentDefaultsSchema, AgentEntrySchema, AgentIdSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, AgentProfileSchema, ComputerModelRouteSchema, DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, EffectiveAgentConfigSchema, ImageGenerationRouteSchema, ModelIntentSchema, ModelRefSchema, ModelRouteSchema, RuntimePolicySchema, SkillDefaultsSchema, SkillOverrideSchema, ToolModeSchema, ToolPoliciesSchema, ToolPolicySchema, WorkflowPolicySchema, init_agent_config, resolveEffectiveAgentConfig };
|
|
11
|
+
export { AgentDefaultsSchema, AgentEntrySchema, AgentIdSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, AgentProfileSchema, ComputerModelRouteSchema, DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, EffectiveAgentConfigSchema, ImageGenerationRouteSchema, ModelIntentSchema, ModelRefSchema, ModelRouteSchema, ResponsePreferencesSchema, RuntimePolicySchema, SkillDefaultsSchema, SkillOverrideSchema, ToolModeSchema, ToolPoliciesSchema, ToolPolicySchema, WorkflowPolicySchema, init_agent_config, resolveEffectiveAgentConfig };
|
|
@@ -136,6 +136,15 @@ export declare const WorkflowPolicySchema: z.ZodObject<{
|
|
|
136
136
|
allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
137
|
}, z.core.$strict>;
|
|
138
138
|
export declare const RuntimePolicySchema: z.ZodObject<{
|
|
139
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
low: "low";
|
|
141
|
+
high: "high";
|
|
142
|
+
off: "off";
|
|
143
|
+
medium: "medium";
|
|
144
|
+
minimal: "minimal";
|
|
145
|
+
xhigh: "xhigh";
|
|
146
|
+
max: "max";
|
|
147
|
+
}>>;
|
|
139
148
|
commandIsolation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
140
149
|
mode: z.ZodLiteral<"host">;
|
|
141
150
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -215,6 +224,15 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
|
|
|
215
224
|
allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
216
225
|
}, z.core.$strict>>;
|
|
217
226
|
runtime: z.ZodDefault<z.ZodObject<{
|
|
227
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
low: "low";
|
|
229
|
+
high: "high";
|
|
230
|
+
off: "off";
|
|
231
|
+
medium: "medium";
|
|
232
|
+
minimal: "minimal";
|
|
233
|
+
xhigh: "xhigh";
|
|
234
|
+
max: "max";
|
|
235
|
+
}>>;
|
|
218
236
|
commandIsolation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
219
237
|
mode: z.ZodLiteral<"host">;
|
|
220
238
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -241,8 +259,70 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
|
|
|
241
259
|
}, z.core.$strict>>;
|
|
242
260
|
}, z.core.$strict>>;
|
|
243
261
|
}, z.core.$strict>;
|
|
262
|
+
export declare const ResponsePreferencesSchema: z.ZodObject<{
|
|
263
|
+
addressAs: z.ZodOptional<z.ZodString>;
|
|
264
|
+
warmth: z.ZodOptional<z.ZodEnum<{
|
|
265
|
+
balanced: "balanced";
|
|
266
|
+
reserved: "reserved";
|
|
267
|
+
gentle: "gentle";
|
|
268
|
+
}>>;
|
|
269
|
+
humor: z.ZodOptional<z.ZodEnum<{
|
|
270
|
+
none: "none";
|
|
271
|
+
occasional: "occasional";
|
|
272
|
+
playful: "playful";
|
|
273
|
+
}>>;
|
|
274
|
+
supportMode: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
listen: "listen";
|
|
276
|
+
untangle: "untangle";
|
|
277
|
+
solutions: "solutions";
|
|
278
|
+
}>>;
|
|
279
|
+
detailLevel: z.ZodOptional<z.ZodEnum<{
|
|
280
|
+
brief: "brief";
|
|
281
|
+
balanced: "balanced";
|
|
282
|
+
detailed: "detailed";
|
|
283
|
+
}>>;
|
|
284
|
+
proactivity: z.ZodOptional<z.ZodEnum<{
|
|
285
|
+
open: "open";
|
|
286
|
+
decisions: "decisions";
|
|
287
|
+
important: "important";
|
|
288
|
+
}>>;
|
|
289
|
+
}, z.core.$strict>;
|
|
244
290
|
export declare const AgentProfileSchema: z.ZodObject<{
|
|
245
291
|
name: z.ZodString;
|
|
292
|
+
description: z.ZodOptional<z.ZodString>;
|
|
293
|
+
creature: z.ZodOptional<z.ZodString>;
|
|
294
|
+
style: z.ZodOptional<z.ZodString>;
|
|
295
|
+
language: z.ZodOptional<z.ZodString>;
|
|
296
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
297
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
298
|
+
responsePreferences: z.ZodOptional<z.ZodObject<{
|
|
299
|
+
addressAs: z.ZodOptional<z.ZodString>;
|
|
300
|
+
warmth: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
balanced: "balanced";
|
|
302
|
+
reserved: "reserved";
|
|
303
|
+
gentle: "gentle";
|
|
304
|
+
}>>;
|
|
305
|
+
humor: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
none: "none";
|
|
307
|
+
occasional: "occasional";
|
|
308
|
+
playful: "playful";
|
|
309
|
+
}>>;
|
|
310
|
+
supportMode: z.ZodOptional<z.ZodEnum<{
|
|
311
|
+
listen: "listen";
|
|
312
|
+
untangle: "untangle";
|
|
313
|
+
solutions: "solutions";
|
|
314
|
+
}>>;
|
|
315
|
+
detailLevel: z.ZodOptional<z.ZodEnum<{
|
|
316
|
+
brief: "brief";
|
|
317
|
+
balanced: "balanced";
|
|
318
|
+
detailed: "detailed";
|
|
319
|
+
}>>;
|
|
320
|
+
proactivity: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
open: "open";
|
|
322
|
+
decisions: "decisions";
|
|
323
|
+
important: "important";
|
|
324
|
+
}>>;
|
|
325
|
+
}, z.core.$strict>>;
|
|
246
326
|
instructions: z.ZodOptional<z.ZodString>;
|
|
247
327
|
}, z.core.$strict>;
|
|
248
328
|
export declare const AgentEntrySchema: z.ZodObject<{
|
|
@@ -251,6 +331,40 @@ export declare const AgentEntrySchema: z.ZodObject<{
|
|
|
251
331
|
workspace: z.ZodOptional<z.ZodString>;
|
|
252
332
|
profile: z.ZodOptional<z.ZodObject<{
|
|
253
333
|
name: z.ZodString;
|
|
334
|
+
description: z.ZodOptional<z.ZodString>;
|
|
335
|
+
creature: z.ZodOptional<z.ZodString>;
|
|
336
|
+
style: z.ZodOptional<z.ZodString>;
|
|
337
|
+
language: z.ZodOptional<z.ZodString>;
|
|
338
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
339
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
340
|
+
responsePreferences: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
addressAs: z.ZodOptional<z.ZodString>;
|
|
342
|
+
warmth: z.ZodOptional<z.ZodEnum<{
|
|
343
|
+
balanced: "balanced";
|
|
344
|
+
reserved: "reserved";
|
|
345
|
+
gentle: "gentle";
|
|
346
|
+
}>>;
|
|
347
|
+
humor: z.ZodOptional<z.ZodEnum<{
|
|
348
|
+
none: "none";
|
|
349
|
+
occasional: "occasional";
|
|
350
|
+
playful: "playful";
|
|
351
|
+
}>>;
|
|
352
|
+
supportMode: z.ZodOptional<z.ZodEnum<{
|
|
353
|
+
listen: "listen";
|
|
354
|
+
untangle: "untangle";
|
|
355
|
+
solutions: "solutions";
|
|
356
|
+
}>>;
|
|
357
|
+
detailLevel: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
brief: "brief";
|
|
359
|
+
balanced: "balanced";
|
|
360
|
+
detailed: "detailed";
|
|
361
|
+
}>>;
|
|
362
|
+
proactivity: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
open: "open";
|
|
364
|
+
decisions: "decisions";
|
|
365
|
+
important: "important";
|
|
366
|
+
}>>;
|
|
367
|
+
}, z.core.$strict>>;
|
|
254
368
|
instructions: z.ZodOptional<z.ZodString>;
|
|
255
369
|
}, z.core.$strict>>;
|
|
256
370
|
models: z.ZodOptional<z.ZodObject<{
|
|
@@ -308,6 +422,15 @@ export declare const AgentEntrySchema: z.ZodObject<{
|
|
|
308
422
|
allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
309
423
|
}, z.core.$strict>>;
|
|
310
424
|
runtime: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<{
|
|
426
|
+
low: "low";
|
|
427
|
+
high: "high";
|
|
428
|
+
off: "off";
|
|
429
|
+
medium: "medium";
|
|
430
|
+
minimal: "minimal";
|
|
431
|
+
xhigh: "xhigh";
|
|
432
|
+
max: "max";
|
|
433
|
+
}>>;
|
|
311
434
|
commandIsolation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
312
435
|
mode: z.ZodLiteral<"host">;
|
|
313
436
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -340,6 +463,40 @@ export declare const EffectiveAgentConfigSchema: z.ZodObject<{
|
|
|
340
463
|
workspace: z.ZodString;
|
|
341
464
|
profile: z.ZodOptional<z.ZodObject<{
|
|
342
465
|
name: z.ZodString;
|
|
466
|
+
description: z.ZodOptional<z.ZodString>;
|
|
467
|
+
creature: z.ZodOptional<z.ZodString>;
|
|
468
|
+
style: z.ZodOptional<z.ZodString>;
|
|
469
|
+
language: z.ZodOptional<z.ZodString>;
|
|
470
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
471
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
472
|
+
responsePreferences: z.ZodOptional<z.ZodObject<{
|
|
473
|
+
addressAs: z.ZodOptional<z.ZodString>;
|
|
474
|
+
warmth: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
balanced: "balanced";
|
|
476
|
+
reserved: "reserved";
|
|
477
|
+
gentle: "gentle";
|
|
478
|
+
}>>;
|
|
479
|
+
humor: z.ZodOptional<z.ZodEnum<{
|
|
480
|
+
none: "none";
|
|
481
|
+
occasional: "occasional";
|
|
482
|
+
playful: "playful";
|
|
483
|
+
}>>;
|
|
484
|
+
supportMode: z.ZodOptional<z.ZodEnum<{
|
|
485
|
+
listen: "listen";
|
|
486
|
+
untangle: "untangle";
|
|
487
|
+
solutions: "solutions";
|
|
488
|
+
}>>;
|
|
489
|
+
detailLevel: z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
brief: "brief";
|
|
491
|
+
balanced: "balanced";
|
|
492
|
+
detailed: "detailed";
|
|
493
|
+
}>>;
|
|
494
|
+
proactivity: z.ZodOptional<z.ZodEnum<{
|
|
495
|
+
open: "open";
|
|
496
|
+
decisions: "decisions";
|
|
497
|
+
important: "important";
|
|
498
|
+
}>>;
|
|
499
|
+
}, z.core.$strict>>;
|
|
343
500
|
instructions: z.ZodOptional<z.ZodString>;
|
|
344
501
|
}, z.core.$strict>>;
|
|
345
502
|
models: z.ZodObject<{
|
|
@@ -396,6 +553,15 @@ export declare const EffectiveAgentConfigSchema: z.ZodObject<{
|
|
|
396
553
|
allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
397
554
|
}, z.core.$strict>;
|
|
398
555
|
runtime: z.ZodObject<{
|
|
556
|
+
thinkingLevel: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
low: "low";
|
|
558
|
+
high: "high";
|
|
559
|
+
off: "off";
|
|
560
|
+
medium: "medium";
|
|
561
|
+
minimal: "minimal";
|
|
562
|
+
xhigh: "xhigh";
|
|
563
|
+
max: "max";
|
|
564
|
+
}>>;
|
|
399
565
|
commandIsolation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
400
566
|
mode: z.ZodLiteral<"host">;
|
|
401
567
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -426,6 +592,7 @@ export type AgentModelsDefaults = z.infer<typeof AgentModelsDefaultsSchema>;
|
|
|
426
592
|
export type AgentModelsOverride = z.infer<typeof AgentModelsOverrideSchema>;
|
|
427
593
|
export type ModelIntent = z.infer<typeof ModelIntentSchema>;
|
|
428
594
|
export type AgentDefaults = z.infer<typeof AgentDefaultsSchema>;
|
|
595
|
+
export type AgentProfile = z.infer<typeof AgentProfileSchema>;
|
|
429
596
|
export type AgentEntry = z.infer<typeof AgentEntrySchema>;
|
|
430
597
|
export type EffectiveAgentConfig = z.infer<typeof EffectiveAgentConfigSchema>;
|
|
431
598
|
export type SkillDefaults = z.infer<typeof SkillDefaultsSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/agent-config/schema.ts
|
|
4
|
-
var DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, AgentIdSchema, ModelRefSchema, ModelRouteSchema, ImageGenerationRouteSchema, ComputerModelRouteSchema, ModelIntentSchema, ModelIntentRoutesSchema, ModelIntentOverridesSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, ToolModeSchema, ToolPolicySchema, ToolPoliciesSchema, SkillDefaultsSchema, SkillOverrideSchema, WorkflowPolicySchema, RuntimePolicySchema, AgentDefaultsSchema, AgentProfileSchema, AgentEntrySchema, EffectiveAgentConfigSchema;
|
|
4
|
+
var DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, AgentIdSchema, ModelRefSchema, ModelRouteSchema, ImageGenerationRouteSchema, ComputerModelRouteSchema, ModelIntentSchema, ModelIntentRoutesSchema, ModelIntentOverridesSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, ToolModeSchema, ToolPolicySchema, ToolPoliciesSchema, SkillDefaultsSchema, SkillOverrideSchema, WorkflowPolicySchema, RuntimePolicySchema, AgentDefaultsSchema, ResponsePreferencesSchema, AgentProfileSchema, AgentEntrySchema, EffectiveAgentConfigSchema;
|
|
5
5
|
var init_schema = __esmMin((() => {
|
|
6
6
|
DEFAULT_AGENT_MODEL_REF = "deepseek/deepseek-v4-flash";
|
|
7
7
|
DEFAULT_CORE_SKILLS = [
|
|
@@ -92,6 +92,15 @@ var init_schema = __esmMin((() => {
|
|
|
92
92
|
allowed: z.array(z.string().min(1)).optional()
|
|
93
93
|
}).strict();
|
|
94
94
|
RuntimePolicySchema = z.object({
|
|
95
|
+
thinkingLevel: z.enum([
|
|
96
|
+
"off",
|
|
97
|
+
"minimal",
|
|
98
|
+
"low",
|
|
99
|
+
"medium",
|
|
100
|
+
"high",
|
|
101
|
+
"xhigh",
|
|
102
|
+
"max"
|
|
103
|
+
]).optional(),
|
|
95
104
|
commandIsolation: z.discriminatedUnion("mode", [z.object({ mode: z.literal("host") }).strict(), z.object({
|
|
96
105
|
mode: z.literal("docker"),
|
|
97
106
|
image: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9./:_-]*@sha256:[a-f0-9]{64}$/),
|
|
@@ -113,8 +122,43 @@ var init_schema = __esmMin((() => {
|
|
|
113
122
|
workflows: WorkflowPolicySchema.default({}),
|
|
114
123
|
runtime: RuntimePolicySchema.default({})
|
|
115
124
|
}).strict();
|
|
125
|
+
ResponsePreferencesSchema = z.object({
|
|
126
|
+
addressAs: z.string().trim().max(60).optional(),
|
|
127
|
+
warmth: z.enum([
|
|
128
|
+
"reserved",
|
|
129
|
+
"balanced",
|
|
130
|
+
"gentle"
|
|
131
|
+
]).optional(),
|
|
132
|
+
humor: z.enum([
|
|
133
|
+
"none",
|
|
134
|
+
"occasional",
|
|
135
|
+
"playful"
|
|
136
|
+
]).optional(),
|
|
137
|
+
supportMode: z.enum([
|
|
138
|
+
"listen",
|
|
139
|
+
"untangle",
|
|
140
|
+
"solutions"
|
|
141
|
+
]).optional(),
|
|
142
|
+
detailLevel: z.enum([
|
|
143
|
+
"brief",
|
|
144
|
+
"balanced",
|
|
145
|
+
"detailed"
|
|
146
|
+
]).optional(),
|
|
147
|
+
proactivity: z.enum([
|
|
148
|
+
"decisions",
|
|
149
|
+
"important",
|
|
150
|
+
"open"
|
|
151
|
+
]).optional()
|
|
152
|
+
}).strict();
|
|
116
153
|
AgentProfileSchema = z.object({
|
|
117
154
|
name: z.string().trim().min(1),
|
|
155
|
+
description: z.string().trim().optional(),
|
|
156
|
+
creature: z.string().trim().optional(),
|
|
157
|
+
style: z.string().trim().optional(),
|
|
158
|
+
language: z.string().trim().optional(),
|
|
159
|
+
emoji: z.string().trim().optional(),
|
|
160
|
+
avatar: z.string().trim().optional(),
|
|
161
|
+
responsePreferences: ResponsePreferencesSchema.optional(),
|
|
118
162
|
instructions: z.string().trim().min(1).optional()
|
|
119
163
|
}).strict();
|
|
120
164
|
AgentEntrySchema = z.object({
|
|
@@ -133,10 +177,7 @@ var init_schema = __esmMin((() => {
|
|
|
133
177
|
id: AgentIdSchema,
|
|
134
178
|
enabled: z.boolean(),
|
|
135
179
|
workspace: z.string().min(1),
|
|
136
|
-
profile:
|
|
137
|
-
name: z.string().min(1),
|
|
138
|
-
instructions: z.string().optional()
|
|
139
|
-
}).strict().optional(),
|
|
180
|
+
profile: AgentProfileSchema.optional(),
|
|
140
181
|
models: AgentModelsDefaultsSchema,
|
|
141
182
|
skills: SkillDefaultsSchema,
|
|
142
183
|
tools: ToolPoliciesSchema,
|
|
@@ -147,4 +188,4 @@ var init_schema = __esmMin((() => {
|
|
|
147
188
|
}));
|
|
148
189
|
//#endregion
|
|
149
190
|
init_schema();
|
|
150
|
-
export { AgentDefaultsSchema, AgentEntrySchema, AgentIdSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, AgentProfileSchema, ComputerModelRouteSchema, DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, EffectiveAgentConfigSchema, ImageGenerationRouteSchema, ModelIntentSchema, ModelRefSchema, ModelRouteSchema, RuntimePolicySchema, SkillDefaultsSchema, SkillOverrideSchema, ToolModeSchema, ToolPoliciesSchema, ToolPolicySchema, WorkflowPolicySchema, init_schema };
|
|
191
|
+
export { AgentDefaultsSchema, AgentEntrySchema, AgentIdSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, AgentProfileSchema, ComputerModelRouteSchema, DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, EffectiveAgentConfigSchema, ImageGenerationRouteSchema, ModelIntentSchema, ModelRefSchema, ModelRouteSchema, ResponsePreferencesSchema, RuntimePolicySchema, SkillDefaultsSchema, SkillOverrideSchema, ToolModeSchema, ToolPoliciesSchema, ToolPolicySchema, WorkflowPolicySchema, init_schema };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
4
3
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
5
4
|
import { createExtensionAwareStreamFn } from "../providers/extension-stream-bridge.js";
|
|
6
5
|
import { trackAiUsageStream } from "../usage/recorder.js";
|
|
7
6
|
import { isLocalModelBaseUrl, resolveModelCallApiKey, resolveModelCallOptions } from "../providers/model-call.js";
|
|
7
|
+
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
8
8
|
import { normalizeContext } from "@earendil-works/pi-ai";
|
|
9
9
|
//#region src/ai-assist/text-assist.ts
|
|
10
10
|
init_providers();
|
|
@@ -2,9 +2,9 @@ import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveCredentialsDir, resolveOAuthPath } from "../config/paths.js";
|
|
5
|
+
import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
|
|
5
6
|
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
6
7
|
import { getApiKeyFromEnv, init_env_keys } from "../providers/env-keys.js";
|
|
7
|
-
import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
|
|
8
8
|
import { init_oauth_provider_lock, withOAuthProviderLock } from "./oauth-provider-lock.js";
|
|
9
9
|
import { dirname, join } from "path";
|
|
10
10
|
import { mkdir, readFile, readdir, rm } from "fs/promises";
|
|
@@ -3,8 +3,8 @@ import { init_paths, resolveOAuthPath } from "../config/paths.js";
|
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { dirname } from "node:path";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
|
-
import { mkdir, open, readFile, rm, stat } from "node:fs/promises";
|
|
7
6
|
import { setTimeout } from "node:timers/promises";
|
|
7
|
+
import { mkdir, open, readFile, rm, stat } from "node:fs/promises";
|
|
8
8
|
//#region src/auth/oauth-provider-lock.ts
|
|
9
9
|
function lockPath(providerId) {
|
|
10
10
|
return `${resolveOAuthPath(providerId.toLowerCase())}.lock`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
2
3
|
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveOAuthPath } from "../config/paths.js";
|
|
3
4
|
import { init_registry, isOAuthOnlyProvider } from "./oauth/registry.js";
|
|
4
|
-
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
//#region src/auth/sync-provider-auth.ts
|
|
7
7
|
/**
|
|
@@ -3,10 +3,10 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
|
3
3
|
import { init_trust_policy, resolveAutomationSafetyForTrust } from "../../user-context/trust-policy.js";
|
|
4
4
|
import { getUserTrustPolicy } from "../../storage/sqlite/user-trust-repository.js";
|
|
5
5
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
6
|
+
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
6
7
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
7
8
|
import { ExternalEffectNotAppliedError } from "../../capabilities/runtime/external-operations.js";
|
|
8
9
|
import { defineExternalCapability, defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
9
|
-
import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
|
|
10
10
|
import { AutomationCreateCapabilityInputSchema } from "./write.js";
|
|
11
11
|
import { simulateAutomation } from "../draft/automation-draft-validator.js";
|
|
12
12
|
import { AutomationDraftService } from "../draft/automation-draft-service.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./defaults.js";
|
|
2
|
-
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./schedule.js";
|
|
3
1
|
import { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "./validation.js";
|
|
2
|
+
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./schedule.js";
|
|
3
|
+
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./defaults.js";
|
|
4
4
|
export { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, UpdateAutomationSchema, computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds, timerDelayUntil };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./domain/defaults.js";
|
|
2
|
-
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./domain/schedule.js";
|
|
3
1
|
import { AutomationActionSchema, AutomationDeliveryPolicySchema, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "./domain/validation.js";
|
|
4
|
-
import "./domain/index.js";
|
|
5
|
-
import { AutomationActionExecutor } from "./service/action-executor.js";
|
|
6
2
|
import { listBusinessEventDefinitions, registerBusinessEvent, validateCatalogedBusinessEvent } from "./events/event-catalog.js";
|
|
7
3
|
import { automationEventPublisher, claimAutomationEventDeliveries, claimAutomationEventsForProjection, completeAutomationEventDelivery, completeAutomationEventProjection, deferAutomationEventDelivery, expireAutomationEventProjectionLeases, failAutomationEventProjection, getAutomationEventDeliveryRunId, getAutomationEventForRun, getAutomationEventQueueMetrics, ingestAutomationEvent, listAutomationEventRecords, listAutomationEvents, markAutomationEventDeliveryQueued, reconcileAutomationEventDeliveries, releaseAutomationEventDelivery, releaseAutomationEventProjection, replayAutomationEvent, skipAutomationEventDelivery } from "./events/event-repository.js";
|
|
4
|
+
import { computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, timerDelayUntil } from "./domain/schedule.js";
|
|
5
|
+
import { DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, defaultAutomationTimeoutSeconds, resolveAutomationTimeoutSeconds } from "./domain/defaults.js";
|
|
6
|
+
import { AutomationActionExecutor } from "./service/action-executor.js";
|
|
8
7
|
import { AutomationEventDispatcher } from "./events/event-dispatcher.js";
|
|
9
8
|
import "./events/index.js";
|
|
10
9
|
import { resolveAutomationWebhookSecret } from "./webhook-secrets.js";
|
|
11
10
|
import { AutomationDeliveryRouter, getAutomationResultDeliveryMetrics, listAutomationResultDeliveries, retryAutomationResultDelivery } from "./delivery/delivery-router.js";
|
|
12
11
|
import "./delivery/index.js";
|
|
13
12
|
import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationService } from "./service/automation-service.js";
|
|
13
|
+
import "./domain/index.js";
|
|
14
14
|
import "./service/index.js";
|
|
15
15
|
export { AutomationActionExecutor, AutomationActionSchema, AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationDeliveryPolicySchema, AutomationDeliveryRouter, AutomationEventDispatcher, AutomationManagementSchema, AutomationReliabilitySchema, AutomationSafetyPolicySchema, AutomationScheduleSchema, AutomationSchema, AutomationService, AutomationStateSchema, AutomationTriggerSchema, CreateAutomationSchema, DEFAULT_AUTOMATION_TIMEOUT_SECONDS, DEFAULT_BROWSER_AUTOMATION_TIMEOUT_SECONDS, UpdateAutomationSchema, automationEventPublisher, claimAutomationEventDeliveries, claimAutomationEventsForProjection, completeAutomationEventDelivery, completeAutomationEventProjection, computeNextAutomationRunAtMs, computeNextScheduleRunAtMs, defaultAutomationTimeoutSeconds, deferAutomationEventDelivery, expireAutomationEventProjectionLeases, failAutomationEventProjection, getAutomationEventDeliveryRunId, getAutomationEventForRun, getAutomationEventQueueMetrics, getAutomationResultDeliveryMetrics, ingestAutomationEvent, listAutomationEventRecords, listAutomationEvents, listAutomationResultDeliveries, listBusinessEventDefinitions, markAutomationEventDeliveryQueued, reconcileAutomationEventDeliveries, registerBusinessEvent, releaseAutomationEventDelivery, releaseAutomationEventProjection, replayAutomationEvent, resolveAutomationTimeoutSeconds, resolveAutomationWebhookSecret, retryAutomationResultDelivery, skipAutomationEventDelivery, timerDelayUntil, validateCatalogedBusinessEvent };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
4
|
-
import { computeNextAutomationRunAtMs, timerDelayUntil } from "../domain/schedule.js";
|
|
5
4
|
import { AutomationSchema, CreateAutomationSchema, UpdateAutomationSchema } from "../domain/validation.js";
|
|
6
|
-
import { AutomationActionExecutor } from "./action-executor.js";
|
|
7
5
|
import { deleteAutomation, getAutomation, getDeletedAutomationRevision, listAutomations, saveAutomation, saveAutomations } from "../storage/automation-repository.js";
|
|
8
6
|
import { appendAutomationRunEvent, getAutomationRun, getAutomationRunRequest, listAutomationRunEvents, listAutomationRuns, listAutomationRunsForProductEvent, listUnfinishedAutomationRuns, markAllAutomationRunsRead, markAutomationRunRead, pruneAutomationHistory, saveAutomationRun, saveAutomationRunRequest, touchAutomationRunLease } from "../storage/automation-run-repository.js";
|
|
9
7
|
import "../storage/index.js";
|
|
10
8
|
import { getAutomationEventDeliveryRunId, getAutomationEventForRun, getAutomationEventQueueMetrics, ingestAutomationEvent, listAutomationEventRecords, markAutomationEventDeliveryQueued, replayAutomationEvent } from "../events/event-repository.js";
|
|
9
|
+
import { computeNextAutomationRunAtMs, timerDelayUntil } from "../domain/schedule.js";
|
|
10
|
+
import { AutomationActionExecutor } from "./action-executor.js";
|
|
11
11
|
import { AutomationEventDispatcher } from "../events/event-dispatcher.js";
|
|
12
12
|
import { AutomationDeliveryRouter, getAutomationResultDeliveryMetrics, listAutomationResultDeliveries, retryAutomationResultDelivery } from "../delivery/delivery-router.js";
|
|
13
13
|
import "../delivery/index.js";
|
|
@@ -6,8 +6,8 @@ import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "nod
|
|
|
6
6
|
import { constants, createReadStream, createWriteStream } from "node:fs";
|
|
7
7
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, randomUUID, scryptSync } from "node:crypto";
|
|
8
8
|
import { chmod, lstat, mkdir, mkdtemp, open, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
|
|
9
|
-
import { Transform } from "node:stream";
|
|
10
9
|
import { pipeline } from "node:stream/promises";
|
|
10
|
+
import { Transform } from "node:stream";
|
|
11
11
|
//#region src/backup/archive.ts
|
|
12
12
|
init_node_sqlite();
|
|
13
13
|
init_conversation_backup();
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { requireXopcDatabase } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
3
3
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
4
|
+
import { ensureStarterAgentsInitialized } from "../agent/starter-agents.js";
|
|
4
5
|
import { cutoverLegacyAgentConfig } from "../agent-catalog/migrations/legacy-config-cutover.js";
|
|
5
6
|
import "../agent-catalog/index.js";
|
|
6
|
-
import {
|
|
7
|
+
import { migrateIdentityMarkdownToCatalog } from "../agent-catalog/migrations/identity-markdown-cutover.js";
|
|
7
8
|
import { runBootstrapMigrationsSync } from "../migrations/runner.js";
|
|
8
9
|
//#region src/bootstrap/application-state.ts
|
|
9
10
|
init_sqlite();
|
|
@@ -16,6 +17,7 @@ function bootstrapApplicationStateSync(configPath) {
|
|
|
16
17
|
const agentCatalog = cutoverLegacyAgentConfig({ configPath });
|
|
17
18
|
const configMigration = runBootstrapMigrationsSync(configPath);
|
|
18
19
|
ensureStarterAgentsInitialized();
|
|
20
|
+
migrateIdentityMarkdownToCatalog();
|
|
19
21
|
new AgentCatalogService().resumePendingProvisioningSync();
|
|
20
22
|
return {
|
|
21
23
|
agentCatalog,
|
|
@@ -3,9 +3,9 @@ import { browserPairingInvitationPayloadSchema, formatBrowserPairingInvitation }
|
|
|
3
3
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
4
4
|
import { getGatewayIdentityPublicKeyRaw, getOrCreateGatewayIdentity, init_gateway_identity_repository } from "../storage/sqlite/gateway-identity-repository.js";
|
|
5
5
|
import { createDevicePairingSetup, init_device_pairing_repository } from "../storage/sqlite/device-pairing-repository.js";
|
|
6
|
+
import { loadConfig } from "../config/loader.js";
|
|
6
7
|
import { browserEnrollmentPublicKeyThumbprint } from "./enrollment.js";
|
|
7
8
|
import { BROWSER_EXTENSION_ID, BROWSER_NATIVE_HOST_NAME } from "./extension-identity.js";
|
|
8
|
-
import { loadConfig } from "../config/loader.js";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
//#region src/browser/native-messaging-host.ts
|
|
11
11
|
init_src();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SqliteCommitEffectError, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
-
import { OperationConflictError, executeAtomicOperation } from "./atomic-operations.js";
|
|
3
2
|
import { CapabilityError } from "./errors.js";
|
|
4
3
|
import { executeExternalOperation } from "./external-operations.js";
|
|
4
|
+
import { OperationConflictError, executeAtomicOperation } from "./atomic-operations.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/capabilities/runtime/dispatcher.ts
|