@xopcai/xopc 0.0.353 → 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/telegram/xopc.extension.json +1 -1
- 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-BVIuZcCP.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/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-BZXXJvpX.js → archive-plugin-QfOaQPL_.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-C7VKkDb5.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-DoT3g5SP.js → binary-plugins-BF2lVwR9.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-sqqrCafh.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-CZOKsAaa.js → browser-automation-inputs-FW3bYZ-z.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-TEeTmkGP.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-BOrLei_L.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-Q99iKyiO.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-BjH8XrKb.js → dependency-picker-Y1QYCcLp.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-DyGxNAVW.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-settings-DC-lok0J.js +1 -0
- 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/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-CoYdyBRh.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-CeBhXeoX.js → local-apps-page-DFPhWkxU.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-C9ya5rUH.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/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-DUPsiVP9.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/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-C25xEYTK.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/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-DqCJHcdG.js → settings-page-CHZdpvkT.js} +1 -1
- 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/{work-discovery-overlay-BnfD6w0k.js → work-discovery-overlay-xB0QpOFk.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DSy57rBr.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 +61 -19
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/tasks.js +19 -2
- package/dist/src/agent/agent-manager.js +7 -7
- package/dist/src/agent/background-review/run-background-review.js +1 -1
- package/dist/src/agent/embedded/run-turn.js +11 -1
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-store.js +1 -1
- package/dist/src/agent/service.js +6 -3
- 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/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/tools/factory.js +21 -14
- 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/xopc-use-tool.js +5 -4
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/service.d.ts +1 -1
- package/dist/src/agent-catalog/service.js +2 -1
- package/dist/src/agent-config/index.js +2 -2
- package/dist/src/agent-config/schema.d.ts +148 -0
- package/dist/src/agent-config/schema.js +40 -2
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +12 -2
- package/dist/src/chat-commands/context.js +7 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/auth.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/commands/providers.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/config/index.js +3 -3
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/lockfile.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/lib/config-payload.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/models.js +1 -1
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- 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 +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +5 -0
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +65 -2
- package/dist/src/gateway/hono/routes/voice.js +8 -0
- package/dist/src/gateway/image-generation-setup.js +2 -2
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/service/session-command-service.js +7 -1
- package/dist/src/gateway/service/sessions-api.js +11 -1
- package/dist/src/gateway/service.js +5 -5
- package/dist/src/gateway/session-reset-service.js +5 -0
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/local-apps/service.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/model-catalog-persistence.js +1 -1
- package/dist/src/session/resolve-session.js +4 -2
- 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/task-application-service.js +6 -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-main-update-decision-service.js +6 -0
- package/dist/src/tui/backends/embedded-backend.js +2 -2
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CcTnphqy.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-CdCzMPhC.js +0 -1
- package/dist/gateway/static/root/assets/agents-BiNKpndr.js +0 -66
- package/dist/gateway/static/root/assets/app-management-settings-panel-BvGDN5J6.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-BhQYkuQj.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-BQZJuM-C.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-y4qcvlg8.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page--N4P7V0l.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-page-F7OAv-iz.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CaiIo1S1.js +0 -8
- package/dist/gateway/static/root/assets/capability-header-actions-CR_O9_Vr.js +0 -1
- package/dist/gateway/static/root/assets/channels-Bb-8c4wl.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-QuXZBfky.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-BIqzVqCO.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-CZ24DSBJ.js +0 -2
- package/dist/gateway/static/root/assets/date-picker-Ck-FmYEL.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-C1rKgB-S.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-UrPcOU6Q.js +0 -1
- package/dist/gateway/static/root/assets/directory-picker-path-field-BYxUgMZb.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-CGL0jpQA.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-DPWf-tYg.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-DZWBY39d.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-D5w5aYXK.js +0 -1
- package/dist/gateway/static/root/assets/home-page-DPQwxBGy.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-CnRWDtGz.js +0 -1
- package/dist/gateway/static/root/assets/index-B-w6Rk9Z.css +0 -1
- package/dist/gateway/static/root/assets/index-DU5Eb1V8.js +0 -106
- package/dist/gateway/static/root/assets/local-app-workbench-page-hjFeYlIq.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-CzpZDjkA.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-Beu_R_Rc.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-BlzX7Ze5.js +0 -201
- package/dist/gateway/static/root/assets/note-detail-panel-D8bpTGwP.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-OmgXowUG.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-BjjjuLkz.js +0 -1
- package/dist/gateway/static/root/assets/page-tabs-_DiuzxyD.js +0 -1
- package/dist/gateway/static/root/assets/popover-select-0p9PIHRy.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-BKvUadws.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CWlCg2x5.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-NbVNo0tP.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CD8HrqGC.js +0 -1
- package/dist/gateway/static/root/assets/scenes-page-DbWaemwR.js +0 -2
- package/dist/gateway/static/root/assets/schema-form-_3LQ4hyB.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-B7ZUdXlb.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CpKzZMft.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-DS80hVSY.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-De-kC3yJ.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-T-0g_rwr.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-Dz33T3du.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-Cx6GGpSY.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DyJ-Duem.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-B2iyN-kP.js +0 -2
- package/dist/gateway/static/root/assets/system-settings-panel-By3SZQR_.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-4yHUTs4_.js +0 -1
- package/dist/gateway/static/root/assets/tasks-BH8_WMUF.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-BoH0LBkw.js +0 -1
- package/dist/gateway/static/root/assets/usage-page-dKU5X9zT.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-YKCwQvqT.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-Uht32LPP.js +0 -2
- package/dist/gateway/static/root/assets/voice-api-key-field-DiqHIA8l.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-Cq3vRUbc.js +0 -6
- /package/dist/gateway/static/root/assets/{dist-CI_fqRk-2.js → dist-CI_fqRk-.js} +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { resolveEffectiveAgentConfig } from "../../agent-config/resolver.js";
|
|
2
|
+
import { init_agent_config } from "../../agent-config/index.js";
|
|
3
|
+
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
4
|
+
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
5
|
+
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
6
|
+
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
7
|
+
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
8
|
+
import { randomUUID } from "node:crypto";
|
|
9
|
+
import { Type } from "@sinclair/typebox";
|
|
10
|
+
//#region src/agent/tools/personal-task-tool.ts
|
|
11
|
+
init_repository();
|
|
12
|
+
init_agent_config();
|
|
13
|
+
const PersonalTaskSchema = Type.Object({
|
|
14
|
+
command: Type.Union([
|
|
15
|
+
Type.Literal("agents"),
|
|
16
|
+
Type.Literal("create"),
|
|
17
|
+
Type.Literal("list"),
|
|
18
|
+
Type.Literal("get"),
|
|
19
|
+
Type.Literal("instruct")
|
|
20
|
+
]),
|
|
21
|
+
title: Type.Optional(Type.String({ description: "Short task title, ideally under 60 characters. Do not put the full instructions here." })),
|
|
22
|
+
objective: Type.Optional(Type.String({ description: "One-sentence outcome for a new delegated Task." })),
|
|
23
|
+
description: Type.Optional(Type.String({ description: "Full task brief in Markdown: background, specific requests, source material, and delivery expectations." })),
|
|
24
|
+
agentId: Type.Optional(Type.String({ description: "Specialist Agent ID. Never use your own ID." })),
|
|
25
|
+
taskId: Type.Optional(Type.String()),
|
|
26
|
+
instruction: Type.Optional(Type.String({ description: "The user’s new direction for this delegated Task." })),
|
|
27
|
+
expectedOutputs: Type.Optional(Type.Array(Type.String())),
|
|
28
|
+
acceptanceCriteria: Type.Optional(Type.Array(Type.String())),
|
|
29
|
+
constraints: Type.Optional(Type.Array(Type.String())),
|
|
30
|
+
requiredTools: Type.Optional(Type.Array(Type.String({ description: "Tool names needed for this Task. Use names returned by agents; omit when matching by role or expertise." }))),
|
|
31
|
+
idempotencyKey: Type.Optional(Type.String())
|
|
32
|
+
});
|
|
33
|
+
const MAX_PERSONAL_TASK_TITLE = 60;
|
|
34
|
+
const DISCOVERY_TOOLS = [
|
|
35
|
+
"web_search",
|
|
36
|
+
"web_fetch",
|
|
37
|
+
"browser_use",
|
|
38
|
+
"read_file",
|
|
39
|
+
"write_file",
|
|
40
|
+
"exec_command",
|
|
41
|
+
"image",
|
|
42
|
+
"image_generate",
|
|
43
|
+
"read_media",
|
|
44
|
+
"automation",
|
|
45
|
+
"workflow",
|
|
46
|
+
"xopc_use",
|
|
47
|
+
"xopc_tool_search",
|
|
48
|
+
"computer_use",
|
|
49
|
+
"send_message",
|
|
50
|
+
"text_to_speech"
|
|
51
|
+
];
|
|
52
|
+
function availableAgentTools(config, deps) {
|
|
53
|
+
return (config.toolAllowlist ? [...new Set([...DISCOVERY_TOOLS, ...config.toolAllowlist])] : DISCOVERY_TOOLS).filter((name) => (name !== "browser_use" || deps.getConfig?.()?.browser?.enabled !== false) && (!config.toolAllowlist || config.toolAllowlist.includes(name)) && config.tools[name]?.mode !== "deny");
|
|
54
|
+
}
|
|
55
|
+
function buildPersonalTaskBrief(input) {
|
|
56
|
+
const fullObjective = input.objective.trim();
|
|
57
|
+
const titleSource = (input.title?.trim() || fullObjective).replace(/\s+/g, " ");
|
|
58
|
+
const firstClause = titleSource.split(/[。!?\n]|(?<=[.!?])\s/)[0]?.trim() || titleSource;
|
|
59
|
+
const title = firstClause.length > MAX_PERSONAL_TASK_TITLE ? `${firstClause.slice(0, MAX_PERSONAL_TASK_TITLE - 1).trimEnd()}…` : firstClause;
|
|
60
|
+
const objective = fullObjective.length > 120 ? title : fullObjective;
|
|
61
|
+
const description = input.description?.trim();
|
|
62
|
+
const body = fullObjective !== objective ? [fullObjective, description].filter(Boolean).join("\n\n") : description;
|
|
63
|
+
return {
|
|
64
|
+
title,
|
|
65
|
+
objective,
|
|
66
|
+
...body ? { body } : {}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/** A narrow Task surface for the fast personal conversation. */
|
|
70
|
+
function createPersonalTaskTool(deps) {
|
|
71
|
+
const productTool = createXopcUseTool(deps);
|
|
72
|
+
return {
|
|
73
|
+
name: "personal_task",
|
|
74
|
+
label: "Personal Task",
|
|
75
|
+
description: "Find specialist Agents by role and availableTools, delegate work they can do, inspect Tasks, or send instructions. Before saying you cannot do a request, use agents to look for another Agent. If a candidate fails, try another suitable Agent or approach before reporting a blocker. agents can filter by requiredTools; if none match, inspect unfiltered Agents for another viable approach. Return to the user quickly after creation.",
|
|
76
|
+
parameters: PersonalTaskSchema,
|
|
77
|
+
mutatesWorkspace: true,
|
|
78
|
+
mutationScope: "external",
|
|
79
|
+
requiresExclusiveWorkspaceLock: true,
|
|
80
|
+
finalGuardRelevant: true,
|
|
81
|
+
async execute(toolCallId, input, signal) {
|
|
82
|
+
const conversationId = deps.getCurrentConversationId?.();
|
|
83
|
+
const ownAgentId = deps.getCurrentAgentId?.();
|
|
84
|
+
if (!conversationId || !ownAgentId || !isPersonalConversation(conversationId)) throw new Error("Personal conversation context is unavailable");
|
|
85
|
+
if (input.command === "agents") {
|
|
86
|
+
const requiredTools = input.requiredTools ?? [];
|
|
87
|
+
const catalog = new AgentCatalogRepository().snapshot();
|
|
88
|
+
const agents = catalog.agents.filter((agent) => agent.enabled !== false && agent.id !== ownAgentId && !agent.id.startsWith("personal-")).map((agent) => {
|
|
89
|
+
const config = resolveEffectiveAgentConfig({
|
|
90
|
+
defaults: catalog.defaults,
|
|
91
|
+
agent
|
|
92
|
+
}).config;
|
|
93
|
+
const availableTools = availableAgentTools(config, deps);
|
|
94
|
+
return {
|
|
95
|
+
id: agent.id,
|
|
96
|
+
name: agent.profile?.name ?? agent.id,
|
|
97
|
+
description: agent.profile?.description ?? "",
|
|
98
|
+
availableTools
|
|
99
|
+
};
|
|
100
|
+
}).filter((agent) => requiredTools.every((tool) => agent.availableTools.includes(tool)));
|
|
101
|
+
return {
|
|
102
|
+
content: [{
|
|
103
|
+
type: "text",
|
|
104
|
+
text: JSON.stringify(agents)
|
|
105
|
+
}],
|
|
106
|
+
details: {}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
let command = input.command;
|
|
110
|
+
let args = {};
|
|
111
|
+
if (command === "create") {
|
|
112
|
+
const objective = input.objective?.trim();
|
|
113
|
+
const agentId = input.agentId?.trim();
|
|
114
|
+
if (!objective || !agentId) throw new Error("objective and specialist agentId are required");
|
|
115
|
+
if (agentId === ownAgentId || agentId.startsWith("personal-")) throw new Error("Delegate to a specialist Agent, not a personal Agent");
|
|
116
|
+
const specialist = new AgentCatalogRepository().get(agentId);
|
|
117
|
+
if (!specialist || specialist.enabled === false || specialist.provisioningState !== "ready") throw new Error(`Specialist Agent is unavailable: ${agentId}`);
|
|
118
|
+
const availableTools = availableAgentTools(resolveEffectiveAgentConfigForAgent(agentId).config, deps);
|
|
119
|
+
const missingTools = (input.requiredTools ?? []).filter((tool) => !availableTools.includes(tool));
|
|
120
|
+
if (missingTools.length > 0) throw new Error(`Agent ${agentId} lacks required tools: ${missingTools.join(", ")}. Find another Agent or approach.`);
|
|
121
|
+
args = {
|
|
122
|
+
...buildPersonalTaskBrief({
|
|
123
|
+
title: input.title,
|
|
124
|
+
objective,
|
|
125
|
+
description: input.description
|
|
126
|
+
}),
|
|
127
|
+
agentId,
|
|
128
|
+
createMode: "start",
|
|
129
|
+
includeConversationContext: false,
|
|
130
|
+
expectedOutputs: input.expectedOutputs ?? [],
|
|
131
|
+
acceptanceCriteria: input.acceptanceCriteria ?? [],
|
|
132
|
+
constraints: input.constraints ?? [],
|
|
133
|
+
idempotencyKey: input.idempotencyKey?.trim() || randomUUID()
|
|
134
|
+
};
|
|
135
|
+
} else if (command === "list") {
|
|
136
|
+
command = "delegated_tasks";
|
|
137
|
+
args = { limit: 20 };
|
|
138
|
+
} else {
|
|
139
|
+
const taskId = input.taskId?.trim();
|
|
140
|
+
if (!taskId) throw new Error("taskId is required");
|
|
141
|
+
if (!new TaskOriginRepository().owns(taskId, conversationId)) throw new Error("Task does not belong to this personal conversation");
|
|
142
|
+
if (command === "instruct") {
|
|
143
|
+
const body = input.instruction?.trim();
|
|
144
|
+
if (!body) throw new Error("instruction is required");
|
|
145
|
+
command = "collaboration_post";
|
|
146
|
+
args = {
|
|
147
|
+
taskId,
|
|
148
|
+
kind: "instruction",
|
|
149
|
+
body
|
|
150
|
+
};
|
|
151
|
+
} else args = { taskId };
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
content: (await productTool.execute(toolCallId, {
|
|
155
|
+
mode: "task",
|
|
156
|
+
command,
|
|
157
|
+
args
|
|
158
|
+
}, signal, void 0)).content,
|
|
159
|
+
details: {}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
export { buildPersonalTaskBrief, createPersonalTaskTool };
|
|
@@ -10,10 +10,10 @@ import { TaskRunRepository } from "../../tasks/task-run-repository.js";
|
|
|
10
10
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
11
11
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
12
12
|
import "../../activity/index.js";
|
|
13
|
-
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
14
|
-
import "../../capabilities/runtime/dispatcher.js";
|
|
15
13
|
import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-route.js";
|
|
16
14
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
15
|
+
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
16
|
+
import "../../capabilities/runtime/dispatcher.js";
|
|
17
17
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
18
18
|
import "../../projects/index.js";
|
|
19
19
|
import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
|
|
@@ -1464,6 +1464,7 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
|
|
|
1464
1464
|
const input = {
|
|
1465
1465
|
idempotencyKey: trimString(args.idempotencyKey) ?? randomUUID(),
|
|
1466
1466
|
title: trimString(args.title) ?? objective,
|
|
1467
|
+
...trimString(args.body) ? { body: trimString(args.body) } : {},
|
|
1467
1468
|
priority: priority ?? "normal",
|
|
1468
1469
|
...dueAt === void 0 ? {} : { dueAt },
|
|
1469
1470
|
...projectId ? { projectId } : {},
|
|
@@ -1476,7 +1477,7 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
|
|
|
1476
1477
|
outputDestinations: []
|
|
1477
1478
|
},
|
|
1478
1479
|
dependencies: dependsOnTaskIds,
|
|
1479
|
-
context: conversationId ? [{
|
|
1480
|
+
context: args.includeConversationContext === false ? [] : conversationId ? [{
|
|
1480
1481
|
targetKind: "session",
|
|
1481
1482
|
targetId: conversationId,
|
|
1482
1483
|
role: "input",
|
|
@@ -1889,7 +1890,7 @@ function createXopcUseTool(deps) {
|
|
|
1889
1890
|
return {
|
|
1890
1891
|
name: "xopc_use",
|
|
1891
1892
|
label: "XOPC Use",
|
|
1892
|
-
description: "Operate first-class xopc objects through one safe entry point. To delegate work for immediate execution: mode task, command create, args {objective, createMode:\"start\", agentId:\"researcher\"}; omitting createMode creates a backlog task only. To start an existing Task: mode task, command command, args {taskId, type:\"start\", expectedVersion, commandArgs:{executor:{kind:\"agent\",agentId:\"main\"}}}. Inspect an existing Task and its run before creating another Task for the same objective. For delegated work, task delegated_tasks lists this conversation's tasks; task collaboration reads the shared board; task collaboration_post writes {taskId, kind, body, causationId?, idempotencyKey?}. Workers report progress or questions; the main Agent writes instructions and answers. Use chat_preview for lightweight UI mockups in the current conversation; do not create a Local App unless the user asks for a durable app. Local App capabilities takes extensionId and discovers already granted bindings. Local App invoke requires extensionId, the discovered manifestDigest, capabilityId and a pinned call {majorVersion, descriptorDigest, input, idempotencyKey for writes}. Never manufacture grants or change a retry key after an uncertain write. Use for Agents, scenes, projects, automations, notes, tasks, TaskRuns, chat previews, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
|
|
1893
|
+
description: "Operate first-class xopc objects through one safe entry point. To delegate work for immediate execution: mode task, command create, args {title:\"Short task name\", objective:\"One-sentence outcome\", body:\"Full Markdown task brief\", createMode:\"start\", agentId:\"researcher\"}; omitting createMode creates a backlog task only. To start an existing Task: mode task, command command, args {taskId, type:\"start\", expectedVersion, commandArgs:{executor:{kind:\"agent\",agentId:\"main\"}}}. Inspect an existing Task and its run before creating another Task for the same objective. For delegated work, task delegated_tasks lists this conversation's tasks; task collaboration reads the shared board; task collaboration_post writes {taskId, kind, body, causationId?, idempotencyKey?}. Workers report progress or questions; the main Agent writes instructions and answers. Use chat_preview for lightweight UI mockups in the current conversation; do not create a Local App unless the user asks for a durable app. Local App capabilities takes extensionId and discovers already granted bindings. Local App invoke requires extensionId, the discovered manifestDigest, capabilityId and a pinned call {majorVersion, descriptorDigest, input, idempotencyKey for writes}. Never manufacture grants or change a retry key after an uncertain write. Use for Agents, scenes, projects, automations, notes, tasks, TaskRuns, chat previews, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
|
|
1893
1894
|
parameters: XopcUseToolSchema,
|
|
1894
1895
|
mutatesWorkspace: true,
|
|
1895
1896
|
mutationScope: "external",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AgentEntrySchema, EffectiveAgentConfigSchema } from "../agent-config/schema.js";
|
|
2
2
|
import { resolveEffectiveAgentConfig } from "../agent-config/resolver.js";
|
|
3
3
|
import { init_agent_config } from "../agent-config/index.js";
|
|
4
|
-
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
5
|
-
import { defineAtomicCapability, defineReadCapability } from "../capabilities/runtime/dispatcher.js";
|
|
6
4
|
import { AgentCatalogRepository, init_repository } from "./repository.js";
|
|
7
5
|
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
6
|
+
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
7
|
+
import { defineAtomicCapability, defineReadCapability } from "../capabilities/runtime/dispatcher.js";
|
|
8
8
|
import { AgentCatalogService } from "./service.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/agent-catalog/capabilities.ts
|
|
@@ -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,
|
|
@@ -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,6 +259,34 @@ 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;
|
|
246
292
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -249,6 +295,34 @@ export declare const AgentProfileSchema: z.ZodObject<{
|
|
|
249
295
|
language: z.ZodOptional<z.ZodString>;
|
|
250
296
|
emoji: z.ZodOptional<z.ZodString>;
|
|
251
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>>;
|
|
252
326
|
instructions: z.ZodOptional<z.ZodString>;
|
|
253
327
|
}, z.core.$strict>;
|
|
254
328
|
export declare const AgentEntrySchema: z.ZodObject<{
|
|
@@ -263,6 +337,34 @@ export declare const AgentEntrySchema: z.ZodObject<{
|
|
|
263
337
|
language: z.ZodOptional<z.ZodString>;
|
|
264
338
|
emoji: z.ZodOptional<z.ZodString>;
|
|
265
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>>;
|
|
266
368
|
instructions: z.ZodOptional<z.ZodString>;
|
|
267
369
|
}, z.core.$strict>>;
|
|
268
370
|
models: z.ZodOptional<z.ZodObject<{
|
|
@@ -320,6 +422,15 @@ export declare const AgentEntrySchema: z.ZodObject<{
|
|
|
320
422
|
allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
321
423
|
}, z.core.$strict>>;
|
|
322
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
|
+
}>>;
|
|
323
434
|
commandIsolation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
324
435
|
mode: z.ZodLiteral<"host">;
|
|
325
436
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -358,6 +469,34 @@ export declare const EffectiveAgentConfigSchema: z.ZodObject<{
|
|
|
358
469
|
language: z.ZodOptional<z.ZodString>;
|
|
359
470
|
emoji: z.ZodOptional<z.ZodString>;
|
|
360
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>>;
|
|
361
500
|
instructions: z.ZodOptional<z.ZodString>;
|
|
362
501
|
}, z.core.$strict>>;
|
|
363
502
|
models: z.ZodObject<{
|
|
@@ -414,6 +553,15 @@ export declare const EffectiveAgentConfigSchema: z.ZodObject<{
|
|
|
414
553
|
allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
415
554
|
}, z.core.$strict>;
|
|
416
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
|
+
}>>;
|
|
417
565
|
commandIsolation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
418
566
|
mode: z.ZodLiteral<"host">;
|
|
419
567
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -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,6 +122,34 @@ 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),
|
|
118
155
|
description: z.string().trim().optional(),
|
|
@@ -121,6 +158,7 @@ var init_schema = __esmMin((() => {
|
|
|
121
158
|
language: z.string().trim().optional(),
|
|
122
159
|
emoji: z.string().trim().optional(),
|
|
123
160
|
avatar: z.string().trim().optional(),
|
|
161
|
+
responsePreferences: ResponsePreferencesSchema.optional(),
|
|
124
162
|
instructions: z.string().trim().min(1).optional()
|
|
125
163
|
}).strict();
|
|
126
164
|
AgentEntrySchema = z.object({
|
|
@@ -150,4 +188,4 @@ var init_schema = __esmMin((() => {
|
|
|
150
188
|
}));
|
|
151
189
|
//#endregion
|
|
152
190
|
init_schema();
|
|
153
|
-
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,9 +1,9 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
|
-
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
5
4
|
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveCredentialsDir, resolveOAuthPath } from "../config/paths.js";
|
|
6
5
|
import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
|
|
6
|
+
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
7
7
|
import { getApiKeyFromEnv, init_env_keys } from "../providers/env-keys.js";
|
|
8
8
|
import { init_oauth_provider_lock, withOAuthProviderLock } from "./oauth-provider-lock.js";
|
|
9
9
|
import { dirname, join } from "path";
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
2
1
|
import { init_paths, resolveCredentialsDir } from "../../config/paths.js";
|
|
2
|
+
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { chmodSync, existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
5
5
|
//#region src/auth/profiles/store.ts
|
|
@@ -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,9 +1,9 @@
|
|
|
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 { ensureStarterAgentsInitialized } from "../agent/starter-agents.js";
|
|
7
7
|
import { migrateIdentityMarkdownToCatalog } from "../agent-catalog/migrations/identity-markdown-cutover.js";
|
|
8
8
|
import { runBootstrapMigrationsSync } from "../migrations/runner.js";
|
|
9
9
|
//#region src/bootstrap/application-state.ts
|
|
@@ -2,8 +2,8 @@ import { PACKAGE_VERSION, init_package_version } from "../../package-version.js"
|
|
|
2
2
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
3
3
|
import { createLogger } from "../../utils/logger/index.js";
|
|
4
4
|
import { init_logger } from "../../utils/logger.js";
|
|
5
|
-
import { init_write_file_atomic, writeTextAtomic } from "../../infra/write-file-atomic.js";
|
|
6
5
|
import { init_paths, resolveBinDir, resolveConfigPath } from "../../config/paths.js";
|
|
6
|
+
import { init_write_file_atomic, writeTextAtomic } from "../../infra/write-file-atomic.js";
|
|
7
7
|
import { assertCacheDir } from "../cache-dir-policy.js";
|
|
8
8
|
import { BROWSER_EXTENSION_ID, BROWSER_NATIVE_HOST_NAME } from "../extension-identity.js";
|
|
9
9
|
import "../native-messaging-host.js";
|
|
@@ -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
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CapabilityError } from "./errors.js";
|
|
2
2
|
import { CapabilityDispatcher } from "./dispatcher.js";
|
|
3
|
-
import { registerAgentCapabilities } from "../../agent-catalog/capabilities.js";
|
|
4
3
|
import { registerLocalAppReadCapabilities } from "../../local-apps/capabilities/read.js";
|
|
5
4
|
import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
|
|
6
5
|
import { registerNoteWriteCapabilities } from "../../notes/capabilities/write.js";
|
|
@@ -19,6 +18,7 @@ import { registerSceneReadCapabilities } from "../../scenes/capabilities/read.js
|
|
|
19
18
|
import { registerSceneWriteCapabilities } from "../../scenes/capabilities/write.js";
|
|
20
19
|
import { registerSettingsCapability } from "./settings.js";
|
|
21
20
|
import { registerAppContextCapability } from "./app-context.js";
|
|
21
|
+
import { registerAgentCapabilities } from "../../agent-catalog/capabilities.js";
|
|
22
22
|
//#region src/capabilities/runtime/product.ts
|
|
23
23
|
function createProductDispatcher(getNotes, taskWrites) {
|
|
24
24
|
const dispatcher = new CapabilityDispatcher();
|