@xopcai/xopc 0.0.409 → 0.0.411
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/README.md +12 -6
- package/README.zh-CN.md +12 -6
- package/dist/browser-ext/dist/assets/{page-context-A5RCibM_.js → page-context-MuzjMBlJ.js} +1 -1
- package/dist/browser-ext/dist/background.js +1 -1
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/gateway-setup.js +9 -3
- package/dist/extensions/feishu/src/plugin.d.ts +0 -3
- package/dist/extensions/feishu/src/plugin.js +1 -11
- package/dist/extensions/feishu/src/schema/config-schema.d.ts +0 -2
- package/dist/extensions/feishu/src/schema/config-schema.js +9 -21
- package/dist/extensions/feishu/src/state/accounts.js +3 -7
- package/dist/extensions/telegram/src/plugin.d.ts +0 -3
- package/dist/extensions/telegram/src/plugin.js +0 -9
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/plugin.d.ts +0 -3
- package/dist/extensions/weixin/src/plugin.js +1 -12
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-sGJnq-SA.js +1 -0
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BI7OTo-T.js +1 -0
- package/dist/gateway/static/root/assets/agents-RIXL0p7_.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-D0UyB0Y_.js → agents-admin-api-uGDeJR1f.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-BGzhSS6H.js +1 -0
- package/dist/gateway/static/root/assets/{appearance-settings-Dzhmj_ZO.js → appearance-settings-DtEZq4b2.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-DZqBof2D.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-D4r4P5uG.js → archive-plugin-CGdU_E5B.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-display-DCkjVzA0.js → automation-display-BFN7zWBg.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BlNe3DXU.js → automations-page-BAPZY56r.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-CI-yQnSj.js +8 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DuN5L6lm.js → binary-plugins-B0ispXo2.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DUSVn51h.js → block-editor-B9Ci-prO.js} +40 -40
- package/dist/gateway/static/root/assets/{browser-automation-inputs-D8bZ9iz2.js → browser-automation-inputs-D4-vQc4g.js} +1 -1
- package/dist/gateway/static/root/assets/browser-automations-page-Xzdif447.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-Bhu-83eC.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-B9b5KCBb.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-BIc0Zlsw.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CQEfpLdj.js +8 -0
- package/dist/gateway/static/root/assets/{capability-header-actions-oBPqUlbj.js → capability-header-actions-Cic05oWh.js} +1 -1
- package/dist/gateway/static/root/assets/channels-DQbEoo_o.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BLs3NaOP.js → chat-terminal-dock-Bm-IGeDe.js} +2 -2
- package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-B2HK1psj.js → chunk-KS7C4IRE-BvcCCgTW.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-C9xMfwXK.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-DcdASUU9.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-eh-xpMPK.js +1 -0
- package/dist/gateway/static/root/assets/date-formatters-DukWSVwc.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DVlbwrYg.js → date-picker-gVLWu9R0.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-C0LARyok.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-settings-B_-j-D4W.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-v_le3sCs.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-CxG_FcQ6.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-QZ0p-uNa.js → directory-picker-path-field-CBefVUPR.js} +1 -1
- package/dist/gateway/static/root/assets/electron-env-Dit0bHgy.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DoVPUHu_.js → extension-debug-page-CTe7Molh.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BNe8n3iJ.js → extension-page-C0-oP7S_.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DxNpjGJD.js → extension-settings-page-DYJmgMUg.js} +1 -1
- package/dist/gateway/static/root/assets/files-Bw4SBGdM.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-CTXr917C.js → gateway-config-swr-BVqYVaGy.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CY1LBGBS.js +1 -0
- package/dist/gateway/static/root/assets/gateway-realtime-store-Dafw95ol.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-C13P4lQd.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DD2fsxdd.js → gateway-startup-retry-CPKGkr6D.js} +1 -1
- package/dist/gateway/static/root/assets/highlight-code-CslBKXdS.js +1 -0
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-DrZq5KTj.js → highlighted-body-KQOG7T2V-CN5PNRN3.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-B_XrkGmA.js +2 -0
- package/dist/gateway/static/root/assets/image-generation-api-DRLXG9Ws.js +1 -0
- package/dist/gateway/static/root/assets/imports-page--cuF5vwU.js +1 -0
- package/dist/gateway/static/root/assets/index-6YjAt50A.js +710 -0
- package/dist/gateway/static/root/assets/index-caRW34rg.css +1 -0
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-5g2PxgBs.js +1 -0
- package/dist/gateway/static/root/assets/languages-byq_L2Ae.js +2 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-B6U1HQpp.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-page-BChE6nUD.js +1 -0
- package/dist/gateway/static/root/assets/{local-session-drafts-TqLFKwYo.js → local-session-drafts-BCaC-1rH.js} +1 -1
- package/dist/gateway/static/root/assets/locale-store-DAgpZxAS.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-B9mq03SK.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-2W_qJsha.js +1 -0
- package/dist/gateway/static/root/assets/markdown-editor-phTQ0mox.js +1 -0
- package/dist/gateway/static/root/assets/{media-plugins-s6EqtAUQ.js → media-plugins-BmLuWkkZ.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-61Il2HQR.js +1 -0
- package/dist/gateway/static/root/assets/messages-DMXSIJUO.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-C4gZsNBL.js +5 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-XqJIaaRV.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-Chdwrjni.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-B7rDRlS7.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-mQl9BftY.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-BgcJLmZN.js +1 -0
- package/dist/gateway/static/root/assets/plugin-details-dialog-FvwSxZPB.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-Z4NM7_Dn.js +1 -0
- package/dist/gateway/static/root/assets/product-delivery-BqNm-8S5.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-BPWSqtRt.js → product-open-page-C5TcIaJj.js} +1 -1
- package/dist/gateway/static/root/assets/product-preview-content-5xID6jIj.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-CGOyx7zX.js +7 -0
- package/dist/gateway/static/root/assets/projects-page-Dd11tbRX.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-4NZOh0iz.js → registry-api-B6kqbuw8.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-Bintk9nL.js +1 -0
- package/dist/gateway/static/root/assets/runtime-tools-api-CY3R7unQ.js +5 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-CNCx2RnO.js → runtime-tools-settings-panel-CbmiiLsq.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-nRDA2XfI.js → schema-form-DtPkiYwm.js} +1 -1
- package/dist/gateway/static/root/assets/session-api-D6-Vz8xK.js +1 -0
- package/dist/gateway/static/root/assets/{session-manager-D2sLfkw-.js → session-manager-DWbcMHcj.js} +3 -3
- package/dist/gateway/static/root/assets/sessions-page-BBlEP7y3.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BCQUth4g.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-_ALUREPr.js → settings-form-section-DD3iD5t5.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-29ptuMYZ.js → settings-page-iLY3LRDq.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-v4P0IAkG.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-B8h9lqDL.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-DMzej6z2.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-C-T0K7Oo.js → skill-api-C9RsrvOp.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-B20x7EE9.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-C_ulsnv7.js +2 -0
- package/dist/gateway/static/root/assets/source-workspace-editor-BIvi89Zx.js +1 -0
- package/dist/gateway/static/root/assets/system-settings-panel-PTRGMKkq.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-DEPwo4vf.js +2 -0
- package/dist/gateway/static/root/assets/task-result-evidence-DjNWPpn_.js +1 -0
- package/dist/gateway/static/root/assets/tasks-TVRjEggr.js +1 -0
- package/dist/gateway/static/root/assets/tracing-settings-page-CVJt7IXC.js +1 -0
- package/dist/gateway/static/root/assets/{tunnel-api-DcDUSAjv.js → tunnel-api-C6XfsSWy.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-Hut0SDqn.js → usage-page-DgqLD8Y5.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-C4TUlpsu.js → use-autosave-DO-Twmbm.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-BwK37aob.js +2 -0
- package/dist/gateway/static/root/assets/{vendor-codemirror-DFxP3B9T.js → vendor-codemirror-Qdcjid65.js} +16 -16
- package/dist/gateway/static/root/assets/{voice-api-key-field-CMdihbPb.js → voice-api-key-field-MGe3HkS_.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-4yGMrp7J.js → voice-config-api-CPKzUb4R.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-DptHqYh5.js +1 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-ClQKM2RA.js → xopc-cloud-account-card-Y_UIryBH.js} +1 -1
- package/dist/gateway/static/root/index.html +27 -35
- package/dist/package.js +1 -1
- package/dist/packages/endpoint-tools-protocol/src/index.js +1 -1
- package/dist/packages/gateway-contract/src/automations.js +0 -12
- package/dist/packages/gateway-contract/src/home.js +3 -3
- package/dist/packages/gateway-contract/src/product-delivery.js +0 -4
- package/dist/packages/gateway-contract/src/project-operating.js +0 -6
- package/dist/packages/gateway-contract/src/session-identity.js +0 -1
- package/dist/packages/gateway-contract/src/task-runs.js +0 -1
- package/dist/packages/gateway-contract/src/tasks.js +0 -6
- package/dist/src/activity/types.d.ts +4 -4
- package/dist/src/agent/agent-manager.d.ts +0 -3
- package/dist/src/agent/agent-manager.js +0 -43
- package/dist/src/agent/background-review/prompts.d.ts +8 -0
- package/dist/src/agent/background-review/prompts.js +9 -2
- package/dist/src/agent/background-review/run-background-review.js +73 -11
- package/dist/src/agent/capabilities/definitions.d.ts +2 -18
- package/dist/src/agent/capabilities/definitions.js +0 -17
- package/dist/src/agent/child-agent-factory.d.ts +1 -1
- package/dist/src/agent/client-error-format.d.ts +1 -1
- package/dist/src/agent/client-error-format.js +1 -1
- package/dist/src/agent/commands/command-registry.js +1 -1
- package/dist/src/agent/context/execution-scope.d.ts +2 -8
- package/dist/src/agent/context/execution-scope.js +6 -23
- package/dist/src/agent/embedded/index.d.ts +0 -1
- package/dist/src/agent/embedded/index.js +1 -2
- package/dist/src/agent/embedded/run-turn.js +25 -2
- package/dist/src/agent/embedded/sqlite-hydrating-session-manager.js +0 -2
- package/dist/src/agent/external-tools/gateway-tools.js +6 -6
- package/dist/src/agent/inbound/attachment-pipeline.d.ts +2 -0
- package/dist/src/agent/inbound/attachment-pipeline.js +10 -5
- package/dist/src/agent/mcp/connection-setup.js +2 -2
- package/dist/src/agent/memory/compaction-ledger.d.ts +1 -1
- package/dist/src/agent/memory/compaction-ledger.js +1 -1
- package/dist/src/agent/memory/compaction-promotion.js +1 -1
- package/dist/src/agent/memory/source-origin.js +1 -5
- package/dist/src/agent/memory/turn-provenance.js +1 -3
- package/dist/src/agent/memory/types.d.ts +1 -1
- package/dist/src/agent/messaging/command-handler.d.ts +0 -3
- package/dist/src/agent/messaging/command-handler.js +1 -4
- package/dist/src/agent/prompt/sections/behavior.js +2 -2
- package/dist/src/agent/prompt/sections/tooling.js +1 -5
- package/dist/src/agent/prompt/voice-presentation.d.ts +1 -1
- package/dist/src/agent/prompt/voice-presentation.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +0 -6
- package/dist/src/agent/service.d.ts +0 -2
- package/dist/src/agent/service.js +0 -11
- package/dist/src/agent/service.types.d.ts +0 -2
- package/dist/src/agent/session/session-config-service.d.ts +0 -2
- package/dist/src/agent/session/session-config-service.js +1 -1
- package/dist/src/agent/session/session-inspector.d.ts +0 -1
- package/dist/src/agent/session/session-inspector.js +0 -1
- package/dist/src/agent/skills/required-env-vars.d.ts +1 -1
- package/dist/src/agent/skills/required-env-vars.js +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +2 -5
- package/dist/src/agent/tools/automation-tool.js +1 -1
- package/dist/src/agent/tools/factory.d.ts +0 -3
- package/dist/src/agent/tools/factory.js +21 -10
- package/dist/src/agent/tools/index.d.ts +0 -2
- package/dist/src/agent/tools/index.js +1 -3
- package/dist/src/agent/tools/knowledge-memory-tool.d.ts +1 -0
- package/dist/src/agent/tools/knowledge-memory-tool.js +13 -4
- package/dist/src/agent/tools/personal-task-tool.js +8 -22
- package/dist/src/agent/tools/search/errors.js +2 -2
- package/dist/src/agent/tools/session-recall-tool.d.ts +3 -0
- package/dist/src/agent/tools/session-recall-tool.js +7 -0
- package/dist/src/agent/tools/session-search-tool.d.ts +3 -0
- package/dist/src/agent/tools/session-search-tool.js +20 -4
- package/dist/src/agent/tools/user-context-tool.js +7 -1
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent-catalog/index.d.ts +0 -1
- package/dist/src/agent-catalog/index.js +1 -2
- package/dist/src/agent-config/index.js +2 -2
- package/dist/src/agent-config/resolver.js +0 -6
- package/dist/src/agent-config/schema.d.ts +0 -16
- package/dist/src/agent-config/schema.js +2 -9
- package/dist/src/agent-matching/selection-repository.d.ts +1 -1
- package/dist/src/agent-matching/selection-repository.js +1 -1
- package/dist/src/agent-matching/service.d.ts +1 -2
- package/dist/src/agent-matching/service.js +3 -7
- package/dist/src/ai-assist/text-assist.d.ts +1 -1
- package/dist/src/ai-assist/text-assist.js +0 -72
- package/dist/src/automations/capabilities/write.d.ts +0 -40
- package/dist/src/automations/domain/types.d.ts +0 -15
- package/dist/src/automations/domain/validation.d.ts +0 -80
- package/dist/src/automations/domain/validation.js +0 -17
- package/dist/src/automations/draft/automation-draft-prompt.js +0 -3
- package/dist/src/automations/draft/automation-draft-validator.d.ts +0 -20
- package/dist/src/automations/draft/automation-draft-validator.js +0 -1
- package/dist/src/automations/events/event-catalog.js +0 -6
- package/dist/src/automations/service/action-executor.d.ts +0 -1
- package/dist/src/automations/service/action-executor.js +1 -110
- package/dist/src/automations/service/automation-service.js +0 -2
- package/dist/src/automations/storage/automation-run-repository.js +6 -7
- package/dist/src/backup/archive.js +1 -1
- package/dist/src/bootstrap/application-state.d.ts +2 -10
- package/dist/src/bootstrap/application-state.js +5 -18
- package/dist/src/channels/manager.d.ts +0 -2
- package/dist/src/channels/manager.js +0 -4
- package/dist/src/channels/pairing/index.d.ts +2 -1
- package/dist/src/channels/pairing/pairing-service.d.ts +0 -1
- package/dist/src/chat-commands/context.d.ts +0 -3
- package/dist/src/chat-commands/context.js +0 -5
- package/dist/src/chat-commands/index.d.ts +0 -1
- package/dist/src/chat-commands/index.js +1 -3
- package/dist/src/chat-commands/types.d.ts +0 -5
- package/dist/src/cli/command-manifest.js +1 -1
- package/dist/src/cli/commands/config.js +2 -10
- package/dist/src/cli/commands/doctor/checks/database-relations.js +0 -3
- package/dist/src/cli/commands/doctor/checks/database-schema.js +4 -25
- package/dist/src/cli/commands/gateway/run-foreground.js +1 -1
- package/dist/src/cli/commands/setup-shared/prompts.d.ts +2 -2
- package/dist/src/cli/commands/setup-shared/prompts.js +2 -2
- package/dist/src/cli/commands/tui-runner.js +2 -2
- package/dist/src/cli/extension-cli-register.js +1 -1
- package/dist/src/cli/index.d.ts +0 -1
- package/dist/src/cli/index.js +2 -2
- package/dist/src/cli/utils/init-workspace-core.js +3 -6
- package/dist/src/config/index.js +2 -2
- package/dist/src/config/loader.d.ts +0 -1
- package/dist/src/config/loader.js +1 -13
- package/dist/src/config/paths.d.ts +1 -1
- package/dist/src/config/paths.js +1 -1
- package/dist/src/connectors/composio-catalog.js +1 -3
- package/dist/src/connectors/composio.js +1 -2
- package/dist/src/connectors/connected-source-ingestion.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +1 -1
- package/dist/src/connectors/learning-coordinator.js +1 -1
- package/dist/src/connectors/principal.js +1 -22
- package/dist/src/connectors/{workflow-preflight.d.ts → requirements-preflight.d.ts} +9 -8
- package/dist/src/connectors/{workflow-preflight.js → requirements-preflight.js} +2 -10
- package/dist/src/connectors/types.d.ts +1 -1
- package/dist/src/daemon/types.d.ts +0 -9
- package/dist/src/discussions/long-review.js +0 -11
- package/dist/src/endpoint-tools/policy.js +13 -14
- package/dist/src/extensions/agent-plugins/auth.js +1 -3
- package/dist/src/extensions/agent-plugins/formats.js +2 -4
- package/dist/src/extensions/agent-plugins/mcp-format.d.ts +1 -1
- package/dist/src/extensions/agent-plugins/mcp-format.js +2 -2
- package/dist/src/extensions/bundled-extension-activation.d.ts +0 -2
- package/dist/src/extensions/bundled-extension-activation.js +1 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/types/tui.d.ts +1 -2
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -7
- package/dist/src/gateway/agent-builtin-tools.js +0 -7
- package/dist/src/gateway/agents-admin.d.ts +0 -1
- package/dist/src/gateway/agents-admin.js +0 -1
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +0 -8
- package/dist/src/gateway/hono/lib/config-payload.js +1 -2
- package/dist/src/gateway/hono/lib/config-write-lock.d.ts +1 -1
- package/dist/src/gateway/hono/lib/config-write-lock.js +1 -1
- package/dist/src/gateway/hono/middleware/auth.js +2 -2
- package/dist/src/gateway/hono/routes/activity.js +0 -1
- package/dist/src/gateway/hono/routes/agents.js +2 -9
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +0 -22
- package/dist/src/gateway/hono/routes/chat-model-config.d.ts +0 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -3
- package/dist/src/gateway/hono/routes/config.js +2 -21
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/devices.js +2 -2
- package/dist/src/gateway/hono/routes/home.js +3 -20
- package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -8
- package/dist/src/gateway/hono/routes/memory-learning.js +1 -1
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +0 -16
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +0 -3
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +1 -1
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/run-loop.js +2 -2
- package/dist/src/gateway/security/device-request-proof.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +0 -1
- package/dist/src/gateway/service/active-execution.d.ts +1 -1
- package/dist/src/gateway/service/active-execution.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -1
- package/dist/src/gateway/service/sessions-api.d.ts +1 -2
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service/task-conversation-query-service.d.ts +0 -4
- package/dist/src/gateway/service/types.d.ts +2 -0
- package/dist/src/gateway/service.d.ts +1 -8
- package/dist/src/gateway/service.js +20 -67
- package/dist/src/history/ctx/format.js +1 -1
- package/dist/src/home-intelligence/capability-preflight.js +1 -1
- package/dist/src/infra/unhandled-rejections.js +2 -2
- package/dist/src/infra/update-runner.d.ts +1 -2
- package/dist/src/infra/update-runner.js +2 -2
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge/local-folder-adapter.js +2 -5
- package/dist/src/knowledge-memory/repository.d.ts +3 -1
- package/dist/src/knowledge-memory/repository.js +10 -3
- package/dist/src/knowledge-memory/usage-policy.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/memory-learning/forget-capture.d.ts +14 -0
- package/dist/src/memory-learning/forget-capture.js +101 -0
- package/dist/src/memory-learning/forgotten-history.d.ts +15 -0
- package/dist/src/memory-learning/forgotten-history.js +137 -0
- package/dist/src/memory-learning/owner-directive.d.ts +2 -0
- package/dist/src/memory-learning/owner-directive.js +10 -0
- package/dist/src/memory-learning/service.js +0 -2
- package/dist/src/memory-learning/source-learning.js +1 -1
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/memory-learning/work-capture.js +2 -1
- package/dist/src/migrations/index.js +2 -2
- package/dist/src/migrations/runner.d.ts +1 -2
- package/dist/src/migrations/runner.js +2 -5
- package/dist/src/notes/service.js +3 -3
- package/dist/src/notes/types.d.ts +1 -2
- package/dist/src/personal-agent/communication.d.ts +0 -3
- package/dist/src/personal-agent/communication.js +1 -12
- package/dist/src/personal-agent/persona.d.ts +0 -4
- package/dist/src/personal-agent/persona.js +1 -5
- package/dist/src/personal-agent/proactivity/repository.js +2 -6
- package/dist/src/personal-agent/prompt-context.js +1 -1
- package/dist/src/personal-agent/prompts.d.ts +0 -3
- package/dist/src/personal-agent/prompts.js +7 -146
- package/dist/src/personal-agent/reply-composer.js +3 -3
- package/dist/src/personal-agent/reply-style.d.ts +1 -13
- package/dist/src/personal-agent/reply-style.js +3 -123
- package/dist/src/personal-agent/request-delivery.d.ts +1 -1
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +2 -2
- package/dist/src/personal-agent/specialist-capabilities.js +0 -1
- package/dist/src/personal-agent/task-cancel.js +2 -1
- package/dist/src/platform/client.d.ts +0 -1
- package/dist/src/platform/contracts.d.ts +0 -1
- package/dist/src/platform/contracts.js +1 -4
- package/dist/src/projects/index.d.ts +0 -1
- package/dist/src/projects/index.js +1 -2
- package/dist/src/projects/project-loop.d.ts +2 -12
- package/dist/src/projects/project-loop.js +19 -42
- package/dist/src/projects/project-store.d.ts +0 -1
- package/dist/src/projects/project-store.js +0 -11
- package/dist/src/projects/types.d.ts +0 -6
- package/dist/src/providers/model-usage.js +0 -5
- package/dist/src/realtime/runtime.js +0 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/session/manager.js +1 -1
- package/dist/src/session/store.d.ts +1 -0
- package/dist/src/session/types.d.ts +2 -6
- package/dist/src/storage/sqlite/connection-wait-repository.js +0 -33
- package/dist/src/storage/sqlite/connection.js +2 -2
- package/dist/src/storage/sqlite/device-access-repository.d.ts +2 -2
- package/dist/src/storage/sqlite/device-access-repository.js +4 -8
- package/dist/src/storage/sqlite/fts.d.ts +4 -0
- package/dist/src/storage/sqlite/fts.js +13 -4
- package/dist/src/storage/sqlite/home-attention-repository.d.ts +1 -1
- package/dist/src/storage/sqlite/index.d.ts +1 -3
- package/dist/src/storage/sqlite/index.js +4 -8
- package/dist/src/storage/sqlite/{migrations/conversation-backup.d.ts → offline-access.d.ts} +1 -4
- package/dist/src/storage/sqlite/{migrations/conversation-backup.js → offline-access.js} +6 -25
- package/dist/src/storage/sqlite/row-mappers.d.ts +0 -8
- package/dist/src/storage/sqlite/row-mappers.js +0 -8
- package/dist/src/storage/sqlite/{migrations/errors.d.ts → schema-errors.d.ts} +0 -6
- package/dist/src/storage/sqlite/schema-errors.js +28 -0
- package/dist/src/storage/sqlite/schema.d.ts +4 -5
- package/dist/src/storage/sqlite/schema.js +23 -19
- package/dist/src/storage/sqlite/schema.sql +1099 -427
- package/dist/src/storage/sqlite/session-identity-sql.js +1 -2
- package/dist/src/storage/sqlite/session-read-repository.d.ts +1 -1
- package/dist/src/storage/sqlite/session-read-repository.js +1 -2
- package/dist/src/storage/sqlite/session-repository.js +10 -36
- package/dist/src/storage/sqlite/transcript-repository.d.ts +1 -0
- package/dist/src/storage/sqlite/transcript-repository.js +14 -12
- package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.js → windows-database-owners.js} +3 -3
- package/dist/src/tasks/attention-governor.d.ts +1 -0
- package/dist/src/tasks/attention-governor.js +2 -2
- package/dist/src/tasks/capabilities/management.d.ts +0 -1
- package/dist/src/tasks/capabilities/relations.d.ts +2 -2
- package/dist/src/tasks/execution-context.d.ts +1 -1
- package/dist/src/tasks/execution-context.js +0 -2
- package/dist/src/tasks/home-query-service.d.ts +2 -16
- package/dist/src/tasks/home-query-service.js +37 -67
- package/dist/src/tasks/index.d.ts +0 -1
- package/dist/src/tasks/index.js +1 -2
- package/dist/src/tasks/project-operating-view-service.js +0 -1
- package/dist/src/tasks/task-application-service.js +0 -5
- package/dist/src/tasks/task-repository.d.ts +1 -1
- package/dist/src/tasks/task-run-coordinator.js +4 -2
- package/dist/src/tui/backends/embedded-backend.d.ts +1 -4
- package/dist/src/tui/backends/embedded-backend.js +3 -59
- package/dist/src/tui/backends/gateway-realtime-backend.d.ts +1 -2
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -27
- package/dist/src/tui/components/chat-log.d.ts +0 -2
- package/dist/src/tui/components/chat-log.js +0 -18
- package/dist/src/tui/extension-host/runtime-context.js +0 -1
- package/dist/src/tui/tui-backend.d.ts +0 -15
- package/dist/src/tui/tui-command-formatters.d.ts +0 -3
- package/dist/src/tui/tui-command-formatters.js +1 -28
- package/dist/src/tui/tui-commands.d.ts +1 -14
- package/dist/src/tui/tui-commands.js +4 -89
- package/dist/src/tui/tui-startup-resources.js +0 -2
- package/dist/src/tui/tui-startup-text.js +2 -3
- package/dist/src/tui/tui.js +1 -49
- package/dist/src/user-context/trust-policy.js +1 -1
- package/dist/src/user-model/capture/semantic.d.ts +18 -1
- package/dist/src/user-model/capture/semantic.js +26 -1
- package/dist/src/user-model/usage-policy.js +1 -1
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/logger/index.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/dist/src/voice/realtime/agentBroker.js +2 -3
- package/dist/src/voice/realtime/memory-context.js +2 -2
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/service.js +2 -2
- package/package.json +5 -6
- package/dist/extensions/feishu/src/workflow-progress.d.ts +0 -27
- package/dist/extensions/feishu/src/workflow-progress.js +0 -98
- package/dist/extensions/telegram/src/workflow-progress.d.ts +0 -24
- package/dist/extensions/telegram/src/workflow-progress.js +0 -72
- package/dist/extensions/weixin/src/workflow-progress.d.ts +0 -26
- package/dist/extensions/weixin/src/workflow-progress.js +0 -98
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-lMrejpsz.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-lXwR3Rff.js +0 -1
- package/dist/gateway/static/root/assets/agents-DFwBf95X.js +0 -77
- package/dist/gateway/static/root/assets/app-link-BV_eGr7l.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-Cja3eV7H.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-C3xbCdYa.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-CWvHbJBK.js +0 -6
- package/dist/gateway/static/root/assets/browser-automations-page-BtvOURHQ.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-C_OeE79S.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-CD6PzNK7.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-BKF6q_tC.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-B7qOaUZs.js +0 -8
- package/dist/gateway/static/root/assets/channels-3M9-anCN.js +0 -1
- package/dist/gateway/static/root/assets/code-editor-CXIH8jQw.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-LaekhDG6.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-DJP1n1_n.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-DmQqMy6l.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-BhElpD_6.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-ByvV-cDD.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-BBruQu-_.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-C3zOy8PO.js +0 -1
- package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
- package/dist/gateway/static/root/assets/file-archive-DanfQJNe.js +0 -1
- package/dist/gateway/static/root/assets/file-braces-BoAMI_k9.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CP6L2jIR.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-yXB4a40_.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CzrFZ0lB.js +0 -1
- package/dist/gateway/static/root/assets/highlight-code-BH65IIbJ.js +0 -1
- package/dist/gateway/static/root/assets/home-page-cXmd8x0S.js +0 -2
- package/dist/gateway/static/root/assets/image-generation-api-C6su4n9B.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-CsXYryWS.js +0 -1
- package/dist/gateway/static/root/assets/index-BZlryZm8.css +0 -1
- package/dist/gateway/static/root/assets/index-uAJlrGvo.js +0 -267
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-GYKLt0oF.js +0 -1
- package/dist/gateway/static/root/assets/languages-BFe8nIOO.js +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-Dw-i6VkX.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-page-DslilwNE.js +0 -1
- package/dist/gateway/static/root/assets/locale-store-D_migb9R.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-4N8bGPIE.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-CPmxI1k0.js +0 -1
- package/dist/gateway/static/root/assets/markdown-editor-BhBJANcx.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-Ljt0bhfF.js +0 -324
- package/dist/gateway/static/root/assets/markdown-view-ixUWAmoy.css +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Ba-WQCki.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-render-604gISVe.js +0 -134
- package/dist/gateway/static/root/assets/messages-D__oW2yE.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-CjTm5gxS.js +0 -5
- package/dist/gateway/static/root/assets/note-image-lightbox-hbSbEEfN.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-DkESStKc.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-eyzTNrCe.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-DZxbFQvF.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-DzubCRqj.js +0 -1
- package/dist/gateway/static/root/assets/plugin-details-dialog-BjVLbxZM.js +0 -1
- package/dist/gateway/static/root/assets/plus-Q2yW6OE7.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-7pUtUL4O.js +0 -1
- package/dist/gateway/static/root/assets/product-delivery-DwmnNJvk.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-COo4zwp9.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CrIH6nEy.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-D4swvBmH.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-DltfIMtv.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-api-CmEWVrOg.js +0 -5
- package/dist/gateway/static/root/assets/session-api-aQLptIs9.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-CfYU53aw.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BJBoWYbO.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DZgVMRXr.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-C2LHd_Nl.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-C5MTc6t-.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BcdA9ezU.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-BMw8XbKL.js +0 -2
- package/dist/gateway/static/root/assets/source-workspace-editor-DunRD1gY.js +0 -1
- package/dist/gateway/static/root/assets/style-DR0-RKaL.js +0 -7
- package/dist/gateway/static/root/assets/system-settings-panel-2Kr9Y-FJ.js +0 -1
- package/dist/gateway/static/root/assets/tab-completion-input.utils-BP3NH_du.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-7kPco8Ys.js +0 -2
- package/dist/gateway/static/root/assets/task-expandable-content-4s_FTl-9.js +0 -1
- package/dist/gateway/static/root/assets/tasks-B4bZpO6O.js +0 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-D53wxq60.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-KRy50OBd.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-Bd9HLsds.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-C9mAiHBd.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-CGg4GWwt.js +0 -6
- package/dist/gateway/static/root/assets/x-B_N4OPjy.js +0 -1
- package/dist/gateway/static/root/assets/xml-_d7dTN2Q.js +0 -3
- package/dist/src/agent/embedded/session-manager-init.d.ts +0 -4
- package/dist/src/agent/embedded/session-manager-init.js +0 -48
- package/dist/src/agent/tools/workflow-manage-tool.d.ts +0 -2
- package/dist/src/agent/tools/workflow-manage-tool.js +0 -225
- package/dist/src/agent/tools/workflow-tool.d.ts +0 -20
- package/dist/src/agent/tools/workflow-tool.js +0 -155
- package/dist/src/agent/workflow/agent-progress.d.ts +0 -5
- package/dist/src/agent/workflow/agent-progress.js +0 -65
- package/dist/src/agent/workflow/builtins/index.d.ts +0 -2
- package/dist/src/agent/workflow/builtins/index.js +0 -374
- package/dist/src/agent/workflow/catalog.d.ts +0 -52
- package/dist/src/agent/workflow/catalog.js +0 -150
- package/dist/src/agent/workflow/channel-capability.d.ts +0 -76
- package/dist/src/agent/workflow/channel-capability.js +0 -1
- package/dist/src/agent/workflow/index.d.ts +0 -10
- package/dist/src/agent/workflow/index.js +0 -9
- package/dist/src/agent/workflow/progress-broker.d.ts +0 -80
- package/dist/src/agent/workflow/progress-broker.js +0 -261
- package/dist/src/agent/workflow/snapshot-empty.d.ts +0 -2
- package/dist/src/agent/workflow/snapshot-empty.js +0 -17
- package/dist/src/agent/workflow/snapshot.d.ts +0 -28
- package/dist/src/agent/workflow/snapshot.js +0 -267
- package/dist/src/agent/workflow/step-labels.d.ts +0 -8
- package/dist/src/agent/workflow/step-labels.js +0 -50
- package/dist/src/agent/workflow/structured-output-tool.d.ts +0 -33
- package/dist/src/agent/workflow/structured-output-tool.js +0 -56
- package/dist/src/agent/workflow/subagent-runner.d.ts +0 -46
- package/dist/src/agent/workflow/subagent-runner.js +0 -221
- package/dist/src/agent/workflow/types.d.ts +0 -252
- package/dist/src/agent/workflow/types.js +0 -1
- package/dist/src/agent/workflow/workflow-child-tools.d.ts +0 -4
- package/dist/src/agent/workflow/workflow-child-tools.js +0 -38
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.d.ts +0 -5
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.js +0 -94
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.d.ts +0 -11
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +0 -194
- package/dist/src/chat-commands/builtins/workflow.d.ts +0 -18
- package/dist/src/chat-commands/builtins/workflow.js +0 -249
- package/dist/src/gateway/gateway-workflow-host.types.d.ts +0 -23
- package/dist/src/gateway/gateway-workflow-host.types.js +0 -1
- package/dist/src/gateway/hono/routes/workflows.d.ts +0 -3
- package/dist/src/gateway/hono/routes/workflows.js +0 -572
- package/dist/src/knowledge-memory/repair-evidence.d.ts +0 -2
- package/dist/src/knowledge-memory/repair-evidence.js +0 -57
- package/dist/src/migrations/cloud-public-models.d.ts +0 -7
- package/dist/src/migrations/cloud-public-models.js +0 -157
- package/dist/src/migrations/memory-config.d.ts +0 -2
- package/dist/src/migrations/memory-config.js +0 -76
- package/dist/src/migrations/retired-local-stt.d.ts +0 -2
- package/dist/src/migrations/retired-local-stt.js +0 -52
- package/dist/src/projects/workflow-bind.d.ts +0 -1
- package/dist/src/projects/workflow-bind.js +0 -15
- package/dist/src/storage/sqlite/migrations/218_core_relation_indexes.sql +0 -26
- package/dist/src/storage/sqlite/migrations/219_json_contracts.sql +0 -123
- package/dist/src/storage/sqlite/migrations/220_normalize_timestamps.sql +0 -339
- package/dist/src/storage/sqlite/migrations/221_ai_usage_retention_index.sql +0 -2
- package/dist/src/storage/sqlite/migrations/222_session_config_authority.sql +0 -13
- package/dist/src/storage/sqlite/migrations/223_session_creation_receipts.sql +0 -59
- package/dist/src/storage/sqlite/migrations/224_task_origin_links.sql +0 -8
- package/dist/src/storage/sqlite/migrations/225_task_collaboration.sql +0 -32
- package/dist/src/storage/sqlite/migrations/226_task_main_updates.sql +0 -9
- package/dist/src/storage/sqlite/migrations/227_task_main_update_decisions.sql +0 -8
- package/dist/src/storage/sqlite/migrations/228_task_main_agent_links.sql +0 -14
- package/dist/src/storage/sqlite/migrations/229_task_criterion_reviews.sql +0 -12
- package/dist/src/storage/sqlite/migrations/230_personal_agent_onboarding.sql +0 -8
- package/dist/src/storage/sqlite/migrations/231_task_result_deliveries.sql +0 -32
- package/dist/src/storage/sqlite/migrations/232_personal_requests.sql +0 -28
- package/dist/src/storage/sqlite/migrations/233_observability_usage_links.sql +0 -3
- package/dist/src/storage/sqlite/migrations/234_task_result_reply.sql +0 -14
- package/dist/src/storage/sqlite/migrations/235_personal_conversation_priority.sql +0 -3
- package/dist/src/storage/sqlite/migrations/236_personal_proactivity.sql +0 -53
- package/dist/src/storage/sqlite/migrations/237_personal_strategy_versions.sql +0 -18
- package/dist/src/storage/sqlite/migrations/238_browser_record_replay.sql +0 -45
- package/dist/src/storage/sqlite/migrations/239_clarification_notifications.sql +0 -26
- package/dist/src/storage/sqlite/migrations/240_device_settings.sql +0 -5
- package/dist/src/storage/sqlite/migrations/241_device_grant_audit.sql +0 -13
- package/dist/src/storage/sqlite/migrations/242_cloud_usage_receipts.sql +0 -5
- package/dist/src/storage/sqlite/migrations/243_voice_opening_greetings.sql +0 -12
- package/dist/src/storage/sqlite/migrations/244_device_request_proofs.sql +0 -8
- package/dist/src/storage/sqlite/migrations/245_memory_learning.sql +0 -125
- package/dist/src/storage/sqlite/migrations/246_personal_session_thinking.sql +0 -22
- package/dist/src/storage/sqlite/migrations/247_agent_selection_records.sql +0 -32
- package/dist/src/storage/sqlite/migrations/248_next_turn_suggestions.sql +0 -20
- package/dist/src/storage/sqlite/migrations/249_task_allocations.sql +0 -17
- package/dist/src/storage/sqlite/migrations/250_research_checkpoints.sql +0 -15
- package/dist/src/storage/sqlite/migrations/251_personal_result_reads.sql +0 -40
- package/dist/src/storage/sqlite/migrations/252_task_work_revisions.sql +0 -15
- package/dist/src/storage/sqlite/migrations/253_discussion_processing_recovery.sql +0 -20
- package/dist/src/storage/sqlite/migrations/254_discussion_annotations.sql +0 -17
- package/dist/src/storage/sqlite/migrations/255_discussion_chapter_progress.sql +0 -10
- package/dist/src/storage/sqlite/migrations/256_task_main_update_retries.sql +0 -21
- package/dist/src/storage/sqlite/migrations/257_session_composer_history.sql +0 -11
- package/dist/src/storage/sqlite/migrations/258_task_phase_changes.sql +0 -20
- package/dist/src/storage/sqlite/migrations/259_personal_default_style.sql +0 -10
- package/dist/src/storage/sqlite/migrations/discover.d.ts +0 -4
- package/dist/src/storage/sqlite/migrations/discover.js +0 -40
- package/dist/src/storage/sqlite/migrations/errors.js +0 -40
- package/dist/src/storage/sqlite/migrations/runner.d.ts +0 -22
- package/dist/src/storage/sqlite/migrations/runner.js +0 -112
- package/dist/src/storage/sqlite/migrations/types.d.ts +0 -12
- package/dist/src/storage/sqlite/migrations/types.js +0 -1
- package/dist/src/tasks/task-workflow-coordinator.d.ts +0 -5
- package/dist/src/tasks/task-workflow-coordinator.js +0 -55
- package/dist/src/tui/tui-workflow-slash.d.ts +0 -29
- package/dist/src/tui/tui-workflow-slash.js +0 -58
- package/dist/src/workflows/authoring/index.d.ts +0 -2
- package/dist/src/workflows/authoring/index.js +0 -3
- package/dist/src/workflows/authoring/workflow-draft-defaults.d.ts +0 -3
- package/dist/src/workflows/authoring/workflow-draft-defaults.js +0 -63
- package/dist/src/workflows/authoring/workflow-draft-store.d.ts +0 -29
- package/dist/src/workflows/authoring/workflow-draft-store.js +0 -52
- package/dist/src/workflows/context/workflow-context-snapshot-repository.d.ts +0 -21
- package/dist/src/workflows/context/workflow-context-snapshot-repository.js +0 -41
- package/dist/src/workflows/context/workflow-context.d.ts +0 -18
- package/dist/src/workflows/context/workflow-context.js +0 -164
- package/dist/src/workflows/domain/command.d.ts +0 -19
- package/dist/src/workflows/domain/command.js +0 -1
- package/dist/src/workflows/domain/definition-utils.d.ts +0 -18
- package/dist/src/workflows/domain/definition-utils.js +0 -90
- package/dist/src/workflows/domain/definition.d.ts +0 -164
- package/dist/src/workflows/domain/definition.js +0 -1
- package/dist/src/workflows/domain/event.d.ts +0 -88
- package/dist/src/workflows/domain/event.js +0 -1
- package/dist/src/workflows/domain/index.d.ts +0 -8
- package/dist/src/workflows/domain/index.js +0 -5
- package/dist/src/workflows/domain/result.d.ts +0 -68
- package/dist/src/workflows/domain/result.js +0 -1
- package/dist/src/workflows/domain/run.d.ts +0 -257
- package/dist/src/workflows/domain/run.js +0 -12
- package/dist/src/workflows/domain/schema-validation.d.ts +0 -8
- package/dist/src/workflows/domain/schema-validation.js +0 -26
- package/dist/src/workflows/domain/validation.d.ts +0 -22
- package/dist/src/workflows/domain/validation.js +0 -318
- package/dist/src/workflows/engine/index.d.ts +0 -2
- package/dist/src/workflows/engine/index.js +0 -3
- package/dist/src/workflows/engine/projector.d.ts +0 -3
- package/dist/src/workflows/engine/projector.js +0 -276
- package/dist/src/workflows/engine/workflow-engine.d.ts +0 -88
- package/dist/src/workflows/engine/workflow-engine.js +0 -719
- package/dist/src/workflows/index.d.ts +0 -11
- package/dist/src/workflows/index.js +0 -19
- package/dist/src/workflows/project-presets/project-workflow-preset-repository.d.ts +0 -20
- package/dist/src/workflows/project-presets/project-workflow-preset-repository.js +0 -39
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.d.ts +0 -9
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.js +0 -30
- package/dist/src/workflows/registry/index.d.ts +0 -2
- package/dist/src/workflows/registry/index.js +0 -2
- package/dist/src/workflows/registry/workflow-definition-registry.d.ts +0 -15
- package/dist/src/workflows/registry/workflow-definition-registry.js +0 -1
- package/dist/src/workflows/runtime/graph-workflow-runtime.d.ts +0 -10
- package/dist/src/workflows/runtime/graph-workflow-runtime.js +0 -289
- package/dist/src/workflows/runtime/index.d.ts +0 -2
- package/dist/src/workflows/runtime/index.js +0 -2
- package/dist/src/workflows/runtime/workflow-runtime-port.d.ts +0 -13
- package/dist/src/workflows/runtime/workflow-runtime-port.js +0 -1
- package/dist/src/workflows/service/run-view-to-snapshot.d.ts +0 -4
- package/dist/src/workflows/service/run-view-to-snapshot.js +0 -64
- package/dist/src/workflows/service/workflow-run-service.d.ts +0 -63
- package/dist/src/workflows/service/workflow-run-service.js +0 -892
- package/dist/src/workflows/service/workflow-run-service.types.d.ts +0 -62
- package/dist/src/workflows/service/workflow-run-service.types.js +0 -1
- package/dist/src/workflows/service/workflow-session-bridge.d.ts +0 -33
- package/dist/src/workflows/service/workflow-session-bridge.js +0 -244
- package/dist/src/workflows/service/workflow-session-key.d.ts +0 -3
- package/dist/src/workflows/service/workflow-session-key.js +0 -19
- package/dist/src/workflows/service/workflow-writeback-service.d.ts +0 -9
- package/dist/src/workflows/service/workflow-writeback-service.js +0 -107
- package/dist/src/workflows/store/event-store.d.ts +0 -16
- package/dist/src/workflows/store/event-store.js +0 -38
- package/dist/src/workflows/store/paths.d.ts +0 -5
- package/dist/src/workflows/store/paths.js +0 -18
- package/dist/src/workflows/store/run-index-store.d.ts +0 -9
- package/dist/src/workflows/store/run-index-store.js +0 -64
- package/dist/src/workflows/store/run-store.d.ts +0 -16
- package/dist/src/workflows/store/run-store.js +0 -40
- package/skills/engineering/workflow-authoring/SKILL.md +0 -32
- /package/dist/gateway/static/root/assets/{style-DLioOiRN.css → project-detail-page-DLioOiRN.css} +0 -0
- /package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.d.ts → windows-database-owners.d.ts} +0 -0
|
@@ -26,7 +26,6 @@ var CommandContextImpl = class {
|
|
|
26
26
|
abortCurrentTurn;
|
|
27
27
|
reloadSkills;
|
|
28
28
|
installSkillFromSource;
|
|
29
|
-
workflowRunApis;
|
|
30
29
|
deps;
|
|
31
30
|
constructor(deps) {
|
|
32
31
|
this.conversationId = deps.conversationId;
|
|
@@ -52,10 +51,6 @@ var CommandContextImpl = class {
|
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
53
|
if (deps.installSkillFromSource) this.installSkillFromSource = deps.installSkillFromSource;
|
|
55
|
-
if (deps.workflowRunService) this.workflowRunApis = {
|
|
56
|
-
service: deps.workflowRunService,
|
|
57
|
-
startWorkflowRun: (params) => deps.workflowRunService.startWorkflowRun(params)
|
|
58
|
-
};
|
|
59
54
|
}
|
|
60
55
|
outboundMetadata(extra) {
|
|
61
56
|
return {
|
|
@@ -17,7 +17,6 @@ export { registerTTSCommands } from './builtins/tts.js';
|
|
|
17
17
|
export { registerThinkingCommands } from './builtins/thinking.js';
|
|
18
18
|
export { registerConfigCommand } from './builtins/config.js';
|
|
19
19
|
export { registerContextCommands } from './builtins/context.js';
|
|
20
|
-
export { registerWorkflowCommands } from './builtins/workflow.js';
|
|
21
20
|
export { registerReviewCommand } from './builtins/review.js';
|
|
22
21
|
export { registerSkillCommand } from './builtins/skill.js';
|
|
23
22
|
export { registerUnderstandingCommands } from './builtins/understanding.js';
|
|
@@ -8,7 +8,6 @@ import { registerTTSCommands } from "./builtins/tts.js";
|
|
|
8
8
|
import { registerThinkingCommands } from "./builtins/thinking.js";
|
|
9
9
|
import { registerConfigCommand } from "./builtins/config.js";
|
|
10
10
|
import { registerContextCommands } from "./builtins/context.js";
|
|
11
|
-
import { registerWorkflowCommands } from "./builtins/workflow.js";
|
|
12
11
|
import { registerReviewCommand } from "./builtins/review.js";
|
|
13
12
|
import { registerSkillCommand } from "./builtins/skill.js";
|
|
14
13
|
import { registerUnderstandingCommands } from "./builtins/understanding.js";
|
|
@@ -32,11 +31,10 @@ function initializeCommands() {
|
|
|
32
31
|
registerContextCommands();
|
|
33
32
|
registerTTSCommands();
|
|
34
33
|
registerThinkingCommands();
|
|
35
|
-
registerWorkflowCommands();
|
|
36
34
|
registerReviewCommand();
|
|
37
35
|
registerSkillCommand();
|
|
38
36
|
registerUnderstandingCommands();
|
|
39
37
|
registerAgentEditCommand();
|
|
40
38
|
}
|
|
41
39
|
//#endregion
|
|
42
|
-
export { CommandContextImpl, CommandRegistry, commandRegistry, createCommandContext, generateConversationId, getSessionDisplayName, initializeCommands, normalizeTelegramCommandName, parseSlashCommand, registerAgentEditCommand, registerConfigCommand, registerContextCommands, registerModelCommands, registerReviewCommand, registerSessionCommands, registerSkillCommand, registerSystemCommands, registerTTSCommands, registerThinkingCommands, registerUnderstandingCommands
|
|
40
|
+
export { CommandContextImpl, CommandRegistry, commandRegistry, createCommandContext, generateConversationId, getSessionDisplayName, initializeCommands, normalizeTelegramCommandName, parseSlashCommand, registerAgentEditCommand, registerConfigCommand, registerContextCommands, registerModelCommands, registerReviewCommand, registerSessionCommands, registerSkillCommand, registerSystemCommands, registerTTSCommands, registerThinkingCommands, registerUnderstandingCommands };
|
|
@@ -8,7 +8,6 @@ import type { Config } from '../config/schema.js';
|
|
|
8
8
|
import type { AgentMessage } from '@earendil-works/pi-agent-core';
|
|
9
9
|
import type { ThinkLevel, ReasoningLevel, VerboseLevel } from '../agent/transcript/thinking-types.js';
|
|
10
10
|
import type { SessionConfigStore } from '../session/index.js';
|
|
11
|
-
import type { StartWorkflowRunServiceParams, WorkflowRunServiceLike, WorkflowRunServiceResult } from '../workflows/service/workflow-run-service.types.js';
|
|
12
11
|
import type { AgentSourceContext } from '../agent/source-context/types.js';
|
|
13
12
|
export type MessageSource = 'telegram' | 'weixin' | 'feishu' | 'webui' | 'cli' | 'api' | 'system' | 'gateway';
|
|
14
13
|
export interface UnifiedMessage {
|
|
@@ -221,10 +220,6 @@ export interface CommandContext {
|
|
|
221
220
|
agentContextReport?(mode?: 'list' | 'detail' | 'json'): Promise<string>;
|
|
222
221
|
/** Abort in-flight assistant generation and channel streaming for this session (e.g. /abort) */
|
|
223
222
|
abortCurrentTurn?(): Promise<void>;
|
|
224
|
-
workflowRunApis?: {
|
|
225
|
-
startWorkflowRun(params: StartWorkflowRunServiceParams): Promise<WorkflowRunServiceResult>;
|
|
226
|
-
service: WorkflowRunServiceLike;
|
|
227
|
-
};
|
|
228
223
|
}
|
|
229
224
|
export type PlatformFeature = 'buttons' | 'markdown' | 'html' | 'threads' | 'reactions' | 'edit' | 'delete' | 'typing' | 'voice';
|
|
230
225
|
export interface ReplyOptions {
|
|
@@ -73,7 +73,7 @@ function setNestedValue(obj, path, value) {
|
|
|
73
73
|
return obj;
|
|
74
74
|
}
|
|
75
75
|
function createConfigCommand(ctx) {
|
|
76
|
-
const cmd = new Command("config").description("View and edit configuration").
|
|
76
|
+
const cmd = new Command("config").description("View and edit configuration").addHelpText("after", formatExamples([
|
|
77
77
|
"xopc config get gateway.port",
|
|
78
78
|
"xopc config set commands.restart false",
|
|
79
79
|
"xopc config show",
|
|
@@ -81,15 +81,7 @@ function createConfigCommand(ctx) {
|
|
|
81
81
|
"xopc config token # Show gateway token info",
|
|
82
82
|
"xopc config token --show # Show full token",
|
|
83
83
|
"xopc config token --generate # Generate new token"
|
|
84
|
-
])).action(
|
|
85
|
-
if (options.show) {
|
|
86
|
-
await runConfigShow(ctx.configPath);
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if (options.validate) {
|
|
90
|
-
if (!await runConfigValidate(ctx.configPath)) process.exit(1);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
84
|
+
])).action(() => {
|
|
93
85
|
cmd.outputHelp();
|
|
94
86
|
});
|
|
95
87
|
cmd.command("get <path>").description("Get a config value by dot path").action(async (path) => {
|
|
@@ -17,9 +17,6 @@ const IMPLICIT_RELATION_CHECKS = [
|
|
|
17
17
|
["discussion action task", `SELECT COUNT(*) AS count FROM discussion_action_tasks a
|
|
18
18
|
LEFT JOIN tasks t ON t.task_id = a.task_id
|
|
19
19
|
WHERE t.task_id IS NULL`],
|
|
20
|
-
["workflow event run", `SELECT COUNT(*) AS count FROM workflow_events e
|
|
21
|
-
LEFT JOIN workflow_runs r ON r.run_id = e.run_id
|
|
22
|
-
WHERE r.run_id IS NULL`],
|
|
23
20
|
["local app active release", `SELECT COUNT(*) AS count FROM local_apps a
|
|
24
21
|
LEFT JOIN local_app_releases r ON r.release_id = a.active_release_id
|
|
25
22
|
WHERE a.active_release_id IS NOT NULL AND r.release_id IS NULL`],
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { readSchemaVersion } from "../../../../storage/sqlite/schema-version.js";
|
|
2
|
+
import { init_schema } from "../../../../storage/sqlite/schema.js";
|
|
2
3
|
import { requireXopcDatabase } from "../../../../storage/sqlite/connection.js";
|
|
3
4
|
import { getSqliteDatabase } from "../../../../storage/sqlite/transaction.js";
|
|
4
5
|
import { init_sqlite } from "../../../../storage/sqlite/index.js";
|
|
5
6
|
import { loadConfig } from "../../../../config/loader.js";
|
|
6
7
|
import { existsSync } from "node:fs";
|
|
7
8
|
//#region src/cli/commands/doctor/checks/database-schema.ts
|
|
8
|
-
|
|
9
|
+
init_schema();
|
|
9
10
|
init_sqlite();
|
|
10
11
|
async function checkDatabaseSchema(ctx) {
|
|
11
12
|
if (!existsSync(ctx.configPath)) return {
|
|
@@ -27,33 +28,11 @@ async function checkDatabaseSchema(ctx) {
|
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
requireXopcDatabase();
|
|
30
|
-
const status = inspectSchemaMigrationStatus(getSqliteDatabase());
|
|
31
|
-
if (status.isTooNew) return {
|
|
32
|
-
id: "database-schema",
|
|
33
|
-
label: "Database schema",
|
|
34
|
-
status: "fail",
|
|
35
|
-
message: `Database schema v${status.dbVersion} is newer than this app (v${status.appVersion}).`,
|
|
36
|
-
hints: ["Upgrade xopc to a newer release that supports this database version.", "Or restore xopc.db from a backup taken before the upgrade."]
|
|
37
|
-
};
|
|
38
|
-
if (status.hasMigrationGap) return {
|
|
39
|
-
id: "database-schema",
|
|
40
|
-
label: "Database schema",
|
|
41
|
-
status: "fail",
|
|
42
|
-
message: `Database schema v${status.dbVersion} is missing migration to v${status.missingVersion}.`,
|
|
43
|
-
hints: [`This app supports schema v${status.appVersion} but is missing migration file ${String(status.missingVersion).padStart(3, "0")}_*.sql.`, "Upgrade xopc to a release that bundles the required migration."]
|
|
44
|
-
};
|
|
45
|
-
if (status.pendingVersions.length > 0) return {
|
|
46
|
-
id: "database-schema",
|
|
47
|
-
label: "Database schema",
|
|
48
|
-
status: "warn",
|
|
49
|
-
message: `Database schema v${status.dbVersion}; pending migration to v${status.appVersion} on next gateway start.`,
|
|
50
|
-
hints: [`Pending steps: v${status.pendingVersions.join(", v")}`, "Restart the gateway (or open the Electron app) to apply migrations automatically."]
|
|
51
|
-
};
|
|
52
31
|
return {
|
|
53
32
|
id: "database-schema",
|
|
54
33
|
label: "Database schema",
|
|
55
34
|
status: "pass",
|
|
56
|
-
message: `SQLite schema v${
|
|
35
|
+
message: `SQLite schema v${readSchemaVersion(getSqliteDatabase())} (current release v259).`,
|
|
57
36
|
hints: []
|
|
58
37
|
};
|
|
59
38
|
}
|
|
@@ -45,7 +45,7 @@ async function runGatewayFromCliOptions(options, ctx) {
|
|
|
45
45
|
import("../../../bootstrap/application-state.js")
|
|
46
46
|
]);
|
|
47
47
|
const { checkPortAvailable, forceFreePortAndWait } = gatewayPorts;
|
|
48
|
-
bootstrap.bootstrapApplicationStateSync(
|
|
48
|
+
bootstrap.bootstrapApplicationStateSync();
|
|
49
49
|
const config = loadConfig(ctx.configPath);
|
|
50
50
|
const bindFromFlagRaw = typeof options.bind === "string" && options.bind.trim().length > 0 ? options.bind.trim().toLowerCase() : void 0;
|
|
51
51
|
const bindFromFlag = bindFromFlagRaw && new Set([
|
|
@@ -11,7 +11,7 @@ export declare function promptSecret(message: string): Promise<string>;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function isInteractive(): boolean;
|
|
13
13
|
/**
|
|
14
|
-
* Detect `@inquirer/prompts` Ctrl+C cancellation.
|
|
15
|
-
*
|
|
14
|
+
* Detect `@inquirer/prompts` Ctrl+C cancellation. Recognizes the external
|
|
15
|
+
* library error name and cancellation message.
|
|
16
16
|
*/
|
|
17
17
|
export declare function isPromptCancelled(error: unknown): boolean;
|
|
@@ -21,8 +21,8 @@ function isInteractive() {
|
|
|
21
21
|
return Boolean(process.stdin.isTTY && process.stdout.isTTY);
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Detect `@inquirer/prompts` Ctrl+C cancellation.
|
|
25
|
-
*
|
|
24
|
+
* Detect `@inquirer/prompts` Ctrl+C cancellation. Recognizes the external
|
|
25
|
+
* library error name and cancellation message.
|
|
26
26
|
*/
|
|
27
27
|
function isPromptCancelled(error) {
|
|
28
28
|
if (!error || typeof error !== "object") return false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { detectMigrations } from "../../migrations/runner.js";
|
|
2
1
|
import { bootstrapApplicationStateSync } from "../../bootstrap/application-state.js";
|
|
3
2
|
import { createGatewayCredential } from "../../gateway/credential.js";
|
|
3
|
+
import { detectMigrations } from "../../migrations/runner.js";
|
|
4
4
|
//#region src/cli/commands/tui-runner.ts
|
|
5
5
|
function prepareTuiStartup(configPath) {
|
|
6
|
-
bootstrapApplicationStateSync(
|
|
6
|
+
bootstrapApplicationStateSync();
|
|
7
7
|
const pendingMigrations = detectMigrations(configPath);
|
|
8
8
|
if (pendingMigrations.length > 0) console.warn(`xopc has ${pendingMigrations.length} pending migration(s). Run \`xopc doctor --fix\` or open Settings → App management.`);
|
|
9
9
|
}
|
|
@@ -20,7 +20,7 @@ function argvRequestsVersionOnly(argv) {
|
|
|
20
20
|
async function registerExtensionCliCommands(program) {
|
|
21
21
|
if (argvRequestsVersionOnly(process.argv)) return;
|
|
22
22
|
const ctx = createDefaultContext(process.argv, {});
|
|
23
|
-
bootstrapApplicationStateSync(
|
|
23
|
+
bootstrapApplicationStateSync();
|
|
24
24
|
const config = loadConfig(ctx.configPath);
|
|
25
25
|
const workspace = getWorkspacePath(config) || ctx.workspacePath;
|
|
26
26
|
const rawExt = config.extensions;
|
package/dist/src/cli/index.d.ts
CHANGED
package/dist/src/cli/index.js
CHANGED
|
@@ -28,7 +28,7 @@ function buildProgram(ctx) {
|
|
|
28
28
|
for (const k of Object.keys(parsedOpts)) delete parsedOpts[k];
|
|
29
29
|
Object.assign(parsedOpts, next);
|
|
30
30
|
if (actionCommand?.name() === "backup" || actionCommand?.parent?.name() === "backup") return;
|
|
31
|
-
bootstrapApplicationStateSync(
|
|
31
|
+
bootstrapApplicationStateSync();
|
|
32
32
|
});
|
|
33
33
|
program.hook("postAction", async (_hookOwner, actionCommand) => {
|
|
34
34
|
const cmd = actionCommand ?? program;
|
|
@@ -58,4 +58,4 @@ async function runCli(argv = process.argv) {
|
|
|
58
58
|
program.parse(argvToParse);
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
export { argvWithDefaultCommand,
|
|
61
|
+
export { argvWithDefaultCommand, runCli };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
2
2
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
3
3
|
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
4
|
-
import {
|
|
4
|
+
import { saveConfig } from "../../config/loader.js";
|
|
5
5
|
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
6
6
|
import { bootstrapApplicationStateSync } from "../../bootstrap/application-state.js";
|
|
7
7
|
import { dirname } from "node:path";
|
|
@@ -35,7 +35,7 @@ async function initWorkspaceCore(options) {
|
|
|
35
35
|
const persistedWorkspaceRoot = persistWorkspacePath ? workspacePath : void 0;
|
|
36
36
|
mkdirSync(dirname(configPath), { recursive: true });
|
|
37
37
|
const configExisted = existsSync(configPath);
|
|
38
|
-
bootstrapApplicationStateSync(
|
|
38
|
+
bootstrapApplicationStateSync();
|
|
39
39
|
const workspaceExisted = existsSync(workspacePath);
|
|
40
40
|
let config;
|
|
41
41
|
if (configExisted) config = await readDiskConfig(configPath, assertChannelPlugins);
|
|
@@ -72,10 +72,7 @@ async function initWorkspaceCore(options) {
|
|
|
72
72
|
let needsWrite = configCreated;
|
|
73
73
|
if (!needsWrite) needsWrite = await serializeConfig(await readDiskConfig(configPath, assertChannelPlugins), assertChannelPlugins) !== await serializeConfig(nextFinal, assertChannelPlugins);
|
|
74
74
|
if (needsWrite) if (assertChannelPlugins) await saveConfig(nextFinal, configPath);
|
|
75
|
-
else {
|
|
76
|
-
assertConfigRewriteSafeForRunningGateway(configPath);
|
|
77
|
-
writeFileSync(configPath, `${JSON.stringify(nextFinal, null, 2)}\n`, "utf8");
|
|
78
|
-
}
|
|
75
|
+
else writeFileSync(configPath, `${JSON.stringify(nextFinal, null, 2)}\n`, "utf8");
|
|
79
76
|
return {
|
|
80
77
|
config: nextFinal,
|
|
81
78
|
token,
|
package/dist/src/config/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { getWorkspacePath } from "./workspace-path-helpers.js";
|
|
|
13
13
|
import { applyConfigOverrides, getConfigOverrides, resetConfigOverrides, setConfigOverride, unsetConfigOverride } from "./runtime-overrides.js";
|
|
14
14
|
import { canonicalizeConfiguredMcpServer, normalizeConfiguredMcpServers } from "./mcp-config-normalize.js";
|
|
15
15
|
import { formatThinkingLevels, listThinkingLevels, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, thinkLevelToNumber } from "../agent/transcript/thinking-types.js";
|
|
16
|
-
import {
|
|
16
|
+
import { loadConfig, saveConfig } from "./loader.js";
|
|
17
17
|
import { listAgentProfileMarkdownDirs, listAgentWorkspaceDirs } from "./workspace-dirs.js";
|
|
18
18
|
import { ProfileManager, createProfile, deleteProfile, getCurrentProfile, getProfileManager, getProfileNameFromDir, getSwitchCommand, listProfiles, resolveProfileStateDir } from "./profile.js";
|
|
19
19
|
import { diffConfigPaths } from "./diff.js";
|
|
@@ -26,4 +26,4 @@ init_workspace_path();
|
|
|
26
26
|
init_models_json();
|
|
27
27
|
init_resolve_config_value();
|
|
28
28
|
//#endregion
|
|
29
|
-
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BASE_RELOAD_RULES, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides,
|
|
29
|
+
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BASE_RELOAD_RULES, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultChatModelConfig, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, hasBundledExtensionManifest, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcCloudCatalogCachePath, resolveXopcDatabasePath, saveConfig, saveModelsJson, setConfigOverride, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, validateModelsConfig };
|
|
@@ -5,7 +5,6 @@ import { init_paths, resolveConfigPath } from "./paths.js";
|
|
|
5
5
|
import { ConfigSchema, init_schema } from "./schema.js";
|
|
6
6
|
import { init_resolution, setActivePlatformDiscovery } from "../platform/resolution.js";
|
|
7
7
|
import { assertChannelPluginConfigs } from "./validate-channel-configs.js";
|
|
8
|
-
import { isGatewayConfigLockedByAnotherProcessSync } from "../gateway/lock.js";
|
|
9
8
|
import { dirname } from "path";
|
|
10
9
|
import { existsSync, mkdirSync, promises, readFileSync } from "fs";
|
|
11
10
|
import { config } from "dotenv";
|
|
@@ -18,16 +17,6 @@ init_resolution();
|
|
|
18
17
|
const log = createLogger("ConfigLoader");
|
|
19
18
|
/** Number of backup files to keep */
|
|
20
19
|
const CONFIG_BACKUP_COUNT = 10;
|
|
21
|
-
function assertConfigRewriteSafeForRunningGateway(path) {
|
|
22
|
-
if (!existsSync(path) || !isGatewayConfigLockedByAnotherProcessSync(path)) return;
|
|
23
|
-
try {
|
|
24
|
-
const raw = JSON.parse(readFileSync(path, "utf8"));
|
|
25
|
-
if (!Array.isArray(raw.userContext?.knowledgeMemory?.sources)) return;
|
|
26
|
-
} catch {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
throw new Error("Configuration update deferred: restart the running gateway before rewriting the legacy memory policy.");
|
|
30
|
-
}
|
|
31
20
|
function activateConfig(configValue) {
|
|
32
21
|
setActivePlatformDiscovery(configValue.platform.mode === "connected" ? configValue.platform.discovery : void 0);
|
|
33
22
|
return configValue;
|
|
@@ -81,7 +70,6 @@ function loadConfig(configPath) {
|
|
|
81
70
|
*/
|
|
82
71
|
async function saveConfig(config, configPath) {
|
|
83
72
|
const path = configPath || process.env.XOPC_CONFIG_PATH || resolveConfigPath();
|
|
84
|
-
assertConfigRewriteSafeForRunningGateway(path);
|
|
85
73
|
const dir = dirname(path);
|
|
86
74
|
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|
|
87
75
|
const validated = ConfigSchema.parse(config);
|
|
@@ -96,4 +84,4 @@ async function saveConfig(config, configPath) {
|
|
|
96
84
|
await writeTextAtomic(path, content);
|
|
97
85
|
}
|
|
98
86
|
//#endregion
|
|
99
|
-
export {
|
|
87
|
+
export { loadConfig, resolveConfigPath, saveConfig };
|
|
@@ -98,7 +98,7 @@ export declare function resolveExtensionsDir(): string;
|
|
|
98
98
|
export declare function resolveExtensionsLockPath(): string;
|
|
99
99
|
/**
|
|
100
100
|
* Per-agent extensions directory (`…/agents/<id>/agent/extensions/`) — used for discovery of
|
|
101
|
-
*
|
|
101
|
+
* manually placed copies. CLI, web store, and `extensions dev` symlink installs use
|
|
102
102
|
* {@link resolveExtensionsDir} (`~/.xopc/extensions`) only.
|
|
103
103
|
*/
|
|
104
104
|
export declare function resolveWorkspaceExtensionsDir(agentId: string): string;
|
package/dist/src/config/paths.js
CHANGED
|
@@ -120,7 +120,7 @@ function resolveExtensionsLockPath() {
|
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* Per-agent extensions directory (`…/agents/<id>/agent/extensions/`) — used for discovery of
|
|
123
|
-
*
|
|
123
|
+
* manually placed copies. CLI, web store, and `extensions dev` symlink installs use
|
|
124
124
|
* {@link resolveExtensionsDir} (`~/.xopc/extensions`) only.
|
|
125
125
|
*/
|
|
126
126
|
function resolveWorkspaceExtensionsDir(agentId) {
|
|
@@ -87,7 +87,7 @@ function composioLogoUrl(slug) {
|
|
|
87
87
|
}
|
|
88
88
|
const CONNECTOR_DESCRIPTIONS = {
|
|
89
89
|
gmail: "Find, draft, and send Gmail messages with explicit write confirmation.",
|
|
90
|
-
googlecalendar: "Find and manage Google Calendar events from conversations
|
|
90
|
+
googlecalendar: "Find and manage Google Calendar events from conversations.",
|
|
91
91
|
googledrive: "Search and work with approved files in Google Drive.",
|
|
92
92
|
slack: "Read conversations and send approved messages in Slack.",
|
|
93
93
|
github: "Work with repositories, issues, pull requests, and reviews on GitHub.",
|
|
@@ -177,13 +177,11 @@ function connectorDefinitionFromComposioToolkit(item) {
|
|
|
177
177
|
capabilities: item.isNoAuth ? [
|
|
178
178
|
"tools",
|
|
179
179
|
"events",
|
|
180
|
-
"workflows",
|
|
181
180
|
...knowledgeCapabilities
|
|
182
181
|
] : [
|
|
183
182
|
"tools",
|
|
184
183
|
"auth.oauth",
|
|
185
184
|
"events",
|
|
186
|
-
"workflows",
|
|
187
185
|
...knowledgeCapabilities
|
|
188
186
|
],
|
|
189
187
|
benefits: benefitsForToolkit(slug, Boolean(understanding)),
|
|
@@ -161,8 +161,7 @@ const COMPOSIO_CURATED_ACTIONS = {
|
|
|
161
161
|
GITHUB_DELETE_A_REPOSITORY: "admin",
|
|
162
162
|
GITHUB_DELETE_A_REFERENCE: "admin",
|
|
163
163
|
GITHUB_DELETE_A_FILE: "admin",
|
|
164
|
-
GITHUB_ADD_A_REPOSITORY_COLLABORATOR: "admin"
|
|
165
|
-
GITHUB_CANCEL_A_WORKFLOW_RUN: "admin"
|
|
164
|
+
GITHUB_ADD_A_REPOSITORY_COLLABORATOR: "admin"
|
|
166
165
|
},
|
|
167
166
|
linear: {
|
|
168
167
|
LINEAR_LIST_ISSUES: "read",
|
|
@@ -3,7 +3,6 @@ import { init_logger } from "../utils/logger.js";
|
|
|
3
3
|
import { getConnectorInstallation, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
|
|
4
4
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
5
5
|
import { getActiveUnderstandingConsent, grantUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
6
|
-
import { listUnderstandingSourceGrants, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
|
|
7
6
|
import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
|
|
8
7
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
9
8
|
import { canAccessConnectorAccount, currentAccountConnections } from "./account-access.js";
|
|
@@ -12,6 +11,7 @@ import { decodeConnectedSourceCursor, encodeConnectedSourceCursor } from "./conn
|
|
|
12
11
|
import { scopeForComposioAction } from "./composio.js";
|
|
13
12
|
import { getConnectorDefinition } from "./catalog.js";
|
|
14
13
|
import { getConnectorInstance } from "./instances.js";
|
|
14
|
+
import { listUnderstandingSourceGrants, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
|
|
15
15
|
import { KnowledgeIngestionService } from "../knowledge/ingestion-service.js";
|
|
16
16
|
import { LocalFolderKnowledgeSourceAdapter } from "../knowledge/local-folder-adapter.js";
|
|
17
17
|
import "../knowledge/index.js";
|
|
@@ -5,13 +5,13 @@ import { createContextEvidence, init_context_evidence_repository } from "../stor
|
|
|
5
5
|
import { getKnowledgeSourceItem } from "../storage/sqlite/knowledge-repository.js";
|
|
6
6
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
7
7
|
import { getActiveUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
8
|
-
import { getUnderstandingSourceRun } from "../user-context/sources/repository.js";
|
|
9
8
|
import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
10
9
|
import "../knowledge-memory/index.js";
|
|
11
10
|
import { consentFilteredText } from "../user-context/sources/consent-fields.js";
|
|
12
11
|
import { claimRegisteredExtraction } from "../user-context/extraction/registry.js";
|
|
13
12
|
import { reconcileAssertion } from "../user-model/repository.js";
|
|
14
13
|
import "../user-model/index.js";
|
|
14
|
+
import { getUnderstandingSourceRun } from "../user-context/sources/repository.js";
|
|
15
15
|
import { recordConnectedSourceObservations } from "./connected-source-observations.js";
|
|
16
16
|
import { allowsRemoteSourceProcessing } from "../user-context/sources/processing-policy.js";
|
|
17
17
|
import { analyzeUnderstandingSources } from "../work-discovery/analyzer.js";
|
|
@@ -7,11 +7,11 @@ import { pruneBoundedKnowledgeSourceItems } from "../storage/sqlite/knowledge-re
|
|
|
7
7
|
import { getConnectorSyncPolicyForConnection } from "../storage/sqlite/connector-sync-policy-repository.js";
|
|
8
8
|
import { init_sqlite } from "../storage/sqlite/index.js";
|
|
9
9
|
import { getActiveUnderstandingConsent, grantUnderstandingConsent } from "../user-context/sources/consent-repository.js";
|
|
10
|
-
import { getConnectorUnderstandingSourceRun, getOrCreateConnectorUnderstandingSourceRun, getUnderstandingSourceGrant, listUnderstandingSourceGrants, updateUnderstandingSourceGrantCheckpoint, updateUnderstandingSourceRun, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
|
|
11
10
|
import { connectorIdentityKey, normalizeConnectorIdentity } from "./connector-identity.js";
|
|
12
11
|
import { ComposioSessionsAdapter } from "./composio-sessions.js";
|
|
13
12
|
import { buildConnectorLearningArguments, getConnectorLearningPlan } from "./learning-recipes.js";
|
|
14
13
|
import { getConnectorDefinition } from "./catalog.js";
|
|
14
|
+
import { getConnectorUnderstandingSourceRun, getOrCreateConnectorUnderstandingSourceRun, getUnderstandingSourceGrant, listUnderstandingSourceGrants, updateUnderstandingSourceGrantCheckpoint, updateUnderstandingSourceRun, upsertUnderstandingSourceGrant } from "../user-context/sources/repository.js";
|
|
15
15
|
import { ingestComposioConnectedSource } from "./connected-source-ingestion.js";
|
|
16
16
|
import { deriveConnectedSourceUnderstanding } from "./connected-source-understanding.js";
|
|
17
17
|
import { listConnectedContentCandidates, readConnectedContent } from "./content-enrichment.js";
|
|
@@ -1,31 +1,10 @@
|
|
|
1
|
-
import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
|
|
2
|
-
import { init_session_repository } from "../storage/sqlite/session-repository.js";
|
|
3
1
|
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
|
4
2
|
import { init_session_key } from "../routing/session-key.js";
|
|
5
3
|
//#region src/connectors/principal.ts
|
|
6
4
|
init_session_key();
|
|
7
|
-
init_session_repository();
|
|
8
5
|
function connectorPrincipalForSession(conversationId) {
|
|
9
|
-
|
|
6
|
+
const parsed = getConversationRouting(conversationId);
|
|
10
7
|
const agentId = parsed?.agentId;
|
|
11
|
-
const visited = /* @__PURE__ */ new Set();
|
|
12
|
-
while (conversationId && parsed?.source === "workflow" && !visited.has(conversationId) && visited.size < 8) {
|
|
13
|
-
visited.add(conversationId);
|
|
14
|
-
const metadata = getSessionMetadata(conversationId);
|
|
15
|
-
const parent = metadata?.parentConversationId ?? metadata?.customData?.parentConversationId;
|
|
16
|
-
if (typeof parent !== "string") {
|
|
17
|
-
if (metadata?.sessionType === "workflow-run") return {
|
|
18
|
-
principalId: "local-owner",
|
|
19
|
-
agentId,
|
|
20
|
-
isLocalOwner: true
|
|
21
|
-
};
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
const parentRouting = getConversationRouting(parent);
|
|
25
|
-
if (!parentRouting) break;
|
|
26
|
-
conversationId = parent;
|
|
27
|
-
parsed = parentRouting;
|
|
28
|
-
}
|
|
29
8
|
if (!parsed || parsed.source === "cli" || parsed.source === "webchat") return {
|
|
30
9
|
principalId: "local-owner",
|
|
31
10
|
agentId,
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { Config } from '../config/schema.js';
|
|
2
|
-
|
|
2
|
+
export interface ConnectorRequirement {
|
|
3
|
+
connectorId: string;
|
|
4
|
+
accountIds?: string[];
|
|
5
|
+
scope?: 'read' | 'write' | 'admin';
|
|
6
|
+
connectionRequired?: boolean;
|
|
7
|
+
optional?: boolean;
|
|
8
|
+
reason?: string;
|
|
9
|
+
}
|
|
3
10
|
export type ConnectorPreflightIssueCode = 'not_installed' | 'disabled' | 'agent_not_allowed' | 'scope_too_narrow' | 'connection_missing' | 'account_selection_required' | 'reauthorization_required';
|
|
4
11
|
export type ConnectorPreflightIssue = {
|
|
5
12
|
connectorId: string;
|
|
@@ -14,15 +21,9 @@ export type ConnectorPreflightResult = {
|
|
|
14
21
|
optionalIssues: ConnectorPreflightIssue[];
|
|
15
22
|
};
|
|
16
23
|
export type ConnectorRequirementPreflightInput = {
|
|
17
|
-
requirements: readonly
|
|
24
|
+
requirements: readonly ConnectorRequirement[];
|
|
18
25
|
config: Config;
|
|
19
26
|
agentId: string;
|
|
20
27
|
principalId?: string;
|
|
21
28
|
};
|
|
22
29
|
export declare function preflightConnectorRequirements(input: ConnectorRequirementPreflightInput): ConnectorPreflightResult;
|
|
23
|
-
export declare function preflightWorkflowConnectors(input: {
|
|
24
|
-
definition: WorkflowDefinition;
|
|
25
|
-
config: Config;
|
|
26
|
-
agentId: string;
|
|
27
|
-
principalId?: string;
|
|
28
|
-
}): ConnectorPreflightResult;
|
|
@@ -3,7 +3,7 @@ import { canAccessConnectorAccount, currentAccountConnections } from "./account-
|
|
|
3
3
|
import { getComposioToolkitScope } from "./composio.js";
|
|
4
4
|
import { getConnectorDefinition } from "./catalog.js";
|
|
5
5
|
import { listConnectorInstances } from "./instances.js";
|
|
6
|
-
//#region src/connectors/
|
|
6
|
+
//#region src/connectors/requirements-preflight.ts
|
|
7
7
|
init_connector_repository();
|
|
8
8
|
const SCOPE_ORDER = {
|
|
9
9
|
read: 1,
|
|
@@ -85,13 +85,5 @@ function preflightConnectorRequirements(input) {
|
|
|
85
85
|
optionalIssues
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function preflightWorkflowConnectors(input) {
|
|
89
|
-
return preflightConnectorRequirements({
|
|
90
|
-
requirements: input.definition.connectors ?? [],
|
|
91
|
-
config: input.config,
|
|
92
|
-
agentId: input.agentId,
|
|
93
|
-
...input.principalId ? { principalId: input.principalId } : {}
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
88
|
//#endregion
|
|
97
|
-
export { preflightConnectorRequirements
|
|
89
|
+
export { preflightConnectorRequirements };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type ConnectorKind = 'mcp' | 'cli' | 'http' | 'browser' | 'extension' | 'builtin' | 'composio' | 'memorySource';
|
|
2
2
|
export type ConnectorCategory = 'code' | 'docs' | 'browser' | 'data' | 'automation' | 'custom';
|
|
3
|
-
export type ConnectorCapability = 'tools' | 'resources' | 'prompts' | 'context' | 'channel' | 'events' | 'ui' | 'memory_source' | '
|
|
3
|
+
export type ConnectorCapability = 'tools' | 'resources' | 'prompts' | 'context' | 'channel' | 'events' | 'ui' | 'memory_source' | 'auth.apiKey' | 'auth.oauth' | 'runtime.mcp.stdio' | 'runtime.mcp.streamableHttp';
|
|
4
4
|
export type ConnectorAuthMode = 'none' | 'apiKey' | 'oauth' | 'cli';
|
|
5
5
|
export type ConnectorAuthDefinition = {
|
|
6
6
|
mode: 'cli';
|
|
@@ -106,12 +106,3 @@ export interface GatewayService {
|
|
|
106
106
|
/** Read command configuration */
|
|
107
107
|
readCommand: (env?: GatewayServiceEnv) => Promise<GatewayServiceCommandConfig | null>;
|
|
108
108
|
}
|
|
109
|
-
export interface DaemonInstallResult {
|
|
110
|
-
success: boolean;
|
|
111
|
-
serviceName?: string;
|
|
112
|
-
error?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface DaemonActionResult {
|
|
115
|
-
success: boolean;
|
|
116
|
-
detail?: string;
|
|
117
|
-
}
|
|
@@ -191,17 +191,6 @@ async function longRecordingReview(id, notes, options = {}) {
|
|
|
191
191
|
playback: referenced.slice(0, 3).flatMap((s) => playable(s.startedAtMs, s.endedAtMs))
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
if (!organization.keyPointEvidence?.length) organization.keyPoints.forEach((text, index) => entries.push({
|
|
195
|
-
id: `keypoint:${index}`,
|
|
196
|
-
kind: "analysis",
|
|
197
|
-
title: "",
|
|
198
|
-
text,
|
|
199
|
-
provisional: false,
|
|
200
|
-
stale: revision !== capture.transcriptRevision,
|
|
201
|
-
transcriptRevision: revision,
|
|
202
|
-
segments: [],
|
|
203
|
-
playback: []
|
|
204
|
-
}));
|
|
205
194
|
}
|
|
206
195
|
for (const a of annotations.filter((a) => !a.annotation.deleted)) entries.push({
|
|
207
196
|
id: `annotation:${a.annotation.id}`,
|