@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
|
@@ -164,11 +164,13 @@ var TaskRunCoordinator = class TaskRunCoordinator {
|
|
|
164
164
|
const status = emptySuccess ? "failed" : input.status;
|
|
165
165
|
const recoveryOptions = { allowFailedReadTools: ACCEPTANCE_REPAIR_READ_TOOLS };
|
|
166
166
|
const unconfirmedEffects = status === "failed" && Boolean(run.conversationId && !canResumeAfterModelFailure(loadTranscriptRowsForSession(run.conversationId), recoveryOptions));
|
|
167
|
-
const
|
|
167
|
+
const systemSummaries = {
|
|
168
168
|
"Message processed": "消息已处理",
|
|
169
169
|
Interrupted: "执行已中断",
|
|
170
170
|
"Agent run ended unexpectedly": "助手执行意外结束"
|
|
171
|
-
}
|
|
171
|
+
};
|
|
172
|
+
const resultSummary = status === "succeeded" && hasAssistantResult && /^Message processed(?: successfully)?$/.test(input.summary) ? input.assistantText.trim() : input.summary;
|
|
173
|
+
const summary = emptySuccess ? zh ? "助手执行未返回结果或证据" : "Agent run returned no result or evidence" : zh ? systemSummaries[resultSummary] ?? resultSummary : resultSummary;
|
|
172
174
|
const research = currentTaskResearchResult(run.id);
|
|
173
175
|
const currentResearch = research && research.contractVersion === task.latestContractVersion && research.instructionSequence === taskInstructionSequence(task.id) ? research : void 0;
|
|
174
176
|
const publications = inspectTaskPublications(run.id, currentResearch);
|
|
@@ -2,7 +2,7 @@ import type { ExtensionRegistryImpl } from '../../extensions/extension-registry-
|
|
|
2
2
|
import { type SessionTimelineItem } from '../../session/transcript-outline.js';
|
|
3
3
|
import { type Config } from '../../config/schema.js';
|
|
4
4
|
import type { ExportFormat } from '../../session/types.js';
|
|
5
|
-
import type { ChatSendOptions, HistoryMessage, TuiBackend, TuiCompactionResult, TuiComposerHistoryItem, TuiEvent, TuiModelChoice, TuiShareRequest, TuiShareResult, TuiSessionStats, TuiSessionItem, TuiTranscriptTreeEntry, TuiAgentInfo, TuiWorkspaceFileSearchEntry,
|
|
5
|
+
import type { ChatSendOptions, HistoryMessage, TuiBackend, TuiCompactionResult, TuiComposerHistoryItem, TuiEvent, TuiModelChoice, TuiShareRequest, TuiShareResult, TuiSessionStats, TuiSessionItem, TuiTranscriptTreeEntry, TuiAgentInfo, TuiWorkspaceFileSearchEntry, TuiStartupProjectResult, TuiChatInputState } from '../tui-backend.js';
|
|
6
6
|
import type { SessionInfo } from '../tui-types.js';
|
|
7
7
|
interface EmbeddedBackendOptions {
|
|
8
8
|
config?: Config;
|
|
@@ -25,7 +25,6 @@ export declare class EmbeddedBackend implements TuiBackend {
|
|
|
25
25
|
private workspace;
|
|
26
26
|
private sessionIndex;
|
|
27
27
|
private sessionIndexReady;
|
|
28
|
-
private workflowRunService;
|
|
29
28
|
private running;
|
|
30
29
|
private chatAbort;
|
|
31
30
|
private readonly chatInputStates;
|
|
@@ -45,12 +44,10 @@ export declare class EmbeddedBackend implements TuiBackend {
|
|
|
45
44
|
private refreshXopcCloudModels;
|
|
46
45
|
stop(): void;
|
|
47
46
|
getActiveSignal(): AbortSignal | undefined;
|
|
48
|
-
private getWorkflowRunService;
|
|
49
47
|
private activeConfig;
|
|
50
48
|
private isWorkspaceTrusted;
|
|
51
49
|
getStartupResources(conversationId: string): Promise<import("../tui-backend.js").TuiStartupResources>;
|
|
52
50
|
refreshWorkspaceTrust(): void;
|
|
53
|
-
startWorkflowRun(opts: TuiWorkflowRunStartRequest): Promise<TuiWorkflowRunStartResult>;
|
|
54
51
|
resolveStartupProject(opts: {
|
|
55
52
|
workspacePath: string;
|
|
56
53
|
conversationId: string;
|
|
@@ -13,7 +13,6 @@ import { init_agent_scope, listAgentEntries } from "../../agent/agent-scope.js";
|
|
|
13
13
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
14
14
|
import { init_paths } from "../../config/paths.js";
|
|
15
15
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
16
|
-
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../../routing/agent-session-key.js";
|
|
17
16
|
import { resolveEffectiveAgentProfile } from "../../config/agent-profile.js";
|
|
18
17
|
import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
|
|
19
18
|
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
@@ -33,9 +32,6 @@ import { MessageBus, MessageBusShutdownError } from "../../infra/bus/queue.js";
|
|
|
33
32
|
import "../../infra/bus/index.js";
|
|
34
33
|
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
35
34
|
import "../../config/index.js";
|
|
36
|
-
import { buildWorkflowChildTools } from "../../agent/workflow/workflow-child-tools.js";
|
|
37
|
-
import { WorkflowRunService } from "../../workflows/service/workflow-run-service.js";
|
|
38
|
-
import { WorkflowSessionBridge } from "../../workflows/service/workflow-session-bridge.js";
|
|
39
35
|
import { ChatStreamMapper } from "../../gateway/chat-stream/mapper.js";
|
|
40
36
|
import { getXopcCloudCatalogCoordinator } from "../../providers/xopc-cloud-catalog-coordinator.js";
|
|
41
37
|
import { acceptSessionCommand } from "../../storage/sqlite/session-creation-repository.js";
|
|
@@ -52,7 +48,6 @@ init_src();
|
|
|
52
48
|
init_paths();
|
|
53
49
|
init_session_input_repository();
|
|
54
50
|
init_agent_scope();
|
|
55
|
-
init_agent_session_key();
|
|
56
51
|
init_schema();
|
|
57
52
|
init_sqlite();
|
|
58
53
|
init_logger();
|
|
@@ -88,7 +83,6 @@ var EmbeddedBackend = class {
|
|
|
88
83
|
workspace = "";
|
|
89
84
|
sessionIndex = null;
|
|
90
85
|
sessionIndexReady = null;
|
|
91
|
-
workflowRunService = null;
|
|
92
86
|
running = false;
|
|
93
87
|
chatAbort = null;
|
|
94
88
|
chatInputStates = /* @__PURE__ */ new Map();
|
|
@@ -167,7 +161,6 @@ var EmbeddedBackend = class {
|
|
|
167
161
|
model: modelId,
|
|
168
162
|
config,
|
|
169
163
|
sessionStore: sessionIndex.getStore(),
|
|
170
|
-
getWorkflowRunService: () => this.getWorkflowRunService(),
|
|
171
164
|
extensionRegistry: this.opts?.extensionRegistry,
|
|
172
165
|
isWorkspaceTrusted: (workspaceDir) => this.isWorkspaceTrusted(workspaceDir)
|
|
173
166
|
});
|
|
@@ -208,33 +201,6 @@ var EmbeddedBackend = class {
|
|
|
208
201
|
const signal = this.chatAbort?.signal;
|
|
209
202
|
return signal && !signal.aborted ? signal : void 0;
|
|
210
203
|
}
|
|
211
|
-
getWorkflowRunService() {
|
|
212
|
-
if (this.workflowRunService) return this.workflowRunService;
|
|
213
|
-
if (!this.config || !this.sessionIndex || !this.agent) throw new Error("Embedded workflow runtime is not ready.");
|
|
214
|
-
const host = {
|
|
215
|
-
currentConfig: this.config,
|
|
216
|
-
currentWorkspacePath: this.workspace,
|
|
217
|
-
messageBusInstance: this.bus,
|
|
218
|
-
agentService: {
|
|
219
|
-
getModelForSession: (conversationId) => this.agent.getModelForSession(conversationId),
|
|
220
|
-
getWorkflowSkillInstructions: (agentId, names) => this.agent.getWorkflowSkillInstructions(agentId, names)
|
|
221
|
-
},
|
|
222
|
-
sessionIndexInstance: this.sessionIndex,
|
|
223
|
-
emit: (event, payload) => {
|
|
224
|
-
this.onEvent?.({
|
|
225
|
-
event,
|
|
226
|
-
data: payload,
|
|
227
|
-
source: "embedded"
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
this.workflowRunService = new WorkflowRunService({
|
|
232
|
-
service: host,
|
|
233
|
-
sessionBridge: new WorkflowSessionBridge(host),
|
|
234
|
-
buildChildTools: buildWorkflowChildTools
|
|
235
|
-
});
|
|
236
|
-
return this.workflowRunService;
|
|
237
|
-
}
|
|
238
204
|
activeConfig() {
|
|
239
205
|
return this.config ?? this.opts?.config ?? loadConfig();
|
|
240
206
|
}
|
|
@@ -254,28 +220,6 @@ var EmbeddedBackend = class {
|
|
|
254
220
|
refreshWorkspaceTrust() {
|
|
255
221
|
this.agent?.refreshSkillsAfterTrustChange();
|
|
256
222
|
}
|
|
257
|
-
async startWorkflowRun(opts) {
|
|
258
|
-
await this.materializeDraft(opts.conversationId);
|
|
259
|
-
await this.sessionIndexReady;
|
|
260
|
-
const agentId = opts.agentId?.trim() || resolveAgentIdFromConversationId(opts.conversationId);
|
|
261
|
-
const result = await this.getWorkflowRunService().startWorkflowRun({
|
|
262
|
-
agentId,
|
|
263
|
-
definitionId: opts.definitionId,
|
|
264
|
-
parentConversationId: opts.conversationId,
|
|
265
|
-
source: {
|
|
266
|
-
kind: "chat",
|
|
267
|
-
conversationId: opts.conversationId
|
|
268
|
-
},
|
|
269
|
-
goal: opts.goal,
|
|
270
|
-
input: opts.input
|
|
271
|
-
});
|
|
272
|
-
if (result.ok === false) throw new Error(result.message);
|
|
273
|
-
return {
|
|
274
|
-
runId: result.runId,
|
|
275
|
-
conversationId: result.conversationId,
|
|
276
|
-
definitionId: opts.definitionId
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
223
|
async resolveStartupProject(opts) {
|
|
280
224
|
await this.sessionIndexReady;
|
|
281
225
|
if (!this.sessionIndex) return { project: null };
|
|
@@ -924,7 +868,7 @@ var EmbeddedBackend = class {
|
|
|
924
868
|
model: parsed?.model ?? cfg.model,
|
|
925
869
|
modelProvider: parsed?.provider,
|
|
926
870
|
thinkingLevel: cfg.thinkingLevel,
|
|
927
|
-
reasoningLevel: cfg.
|
|
871
|
+
reasoningLevel: cfg.activityDetail.effective,
|
|
928
872
|
verboseLevel: cfg.verboseLevel,
|
|
929
873
|
totalTokens: usage.estimatedTokens,
|
|
930
874
|
contextWindow: usage.contextWindow,
|
|
@@ -966,7 +910,7 @@ var EmbeddedBackend = class {
|
|
|
966
910
|
if (typeof patch.model === "string") draft.creation.model = patch.model;
|
|
967
911
|
if (typeof patch.thinkingLevel === "string") draft.creation.thinkingLevel = patch.thinkingLevel;
|
|
968
912
|
if (typeof patch.workingDirectory === "string") draft.config.workingDirectoryOverride = resolve(patch.workingDirectory);
|
|
969
|
-
if (patch.
|
|
913
|
+
if (patch.activityDetailLevel === "off" || patch.activityDetailLevel === "on" || patch.activityDetailLevel === "stream") draft.config.reasoningLevel = patch.activityDetailLevel;
|
|
970
914
|
if (patch.verboseLevel === "off" || patch.verboseLevel === "on" || patch.verboseLevel === "full") draft.config.verboseLevel = patch.verboseLevel;
|
|
971
915
|
if (patch.projectId === null || typeof patch.projectId === "string") draft.creation.projectId = typeof patch.projectId === "string" ? patch.projectId : null;
|
|
972
916
|
this.drafts.save(conversationId, draft);
|
|
@@ -978,7 +922,7 @@ var EmbeddedBackend = class {
|
|
|
978
922
|
const result = await agent.sessionConfig.patch(conversationId, {
|
|
979
923
|
model: typeof patch.model === "string" ? patch.model : void 0,
|
|
980
924
|
thinkingLevel: typeof patch.thinkingLevel === "string" ? patch.thinkingLevel : void 0,
|
|
981
|
-
|
|
925
|
+
activityDetailLevel: typeof patch.activityDetailLevel === "string" ? patch.activityDetailLevel : void 0,
|
|
982
926
|
verboseLevel: typeof patch.verboseLevel === "string" ? patch.verboseLevel : void 0,
|
|
983
927
|
workingDirectory: typeof patch.workingDirectory === "string" ? patch.workingDirectory : void 0
|
|
984
928
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExportFormat } from '../../session/types.js';
|
|
2
2
|
import type { SessionTimelineItem } from '../../session/transcript-outline.js';
|
|
3
|
-
import type { ChatSendOptions, HistoryMessage, TuiBackend, TuiCompactionResult, TuiChatInputState, TuiComposerHistoryItem, TuiEvent, TuiModelChoice, TuiShareRequest, TuiShareResult, TuiSessionStats, TuiSessionItem, TuiStartupResources, TuiTranscriptTreeEntry, TuiAgentInfo, TuiWorkspaceFileSearchEntry,
|
|
3
|
+
import type { ChatSendOptions, HistoryMessage, TuiBackend, TuiCompactionResult, TuiChatInputState, TuiComposerHistoryItem, TuiEvent, TuiModelChoice, TuiShareRequest, TuiShareResult, TuiSessionStats, TuiSessionItem, TuiStartupResources, TuiTranscriptTreeEntry, TuiAgentInfo, TuiWorkspaceFileSearchEntry, TuiStartupProjectResult } from '../tui-backend.js';
|
|
4
4
|
import type { SessionInfo } from '../tui-types.js';
|
|
5
5
|
import type { ReviewContext } from '../../review/review-git.js';
|
|
6
6
|
import { type GatewayCredential } from '../../gateway/credential.js';
|
|
@@ -54,7 +54,6 @@ export declare class GatewayRealtimeBackend implements TuiBackend {
|
|
|
54
54
|
limit?: number;
|
|
55
55
|
}): Promise<TuiWorkspaceFileSearchEntry[]>;
|
|
56
56
|
getReviewContext(conversationId: string): Promise<ReviewContext>;
|
|
57
|
-
startWorkflowRun(opts: TuiWorkflowRunStartRequest): Promise<TuiWorkflowRunStartResult>;
|
|
58
57
|
resolveStartupProject(opts: {
|
|
59
58
|
workspacePath: string;
|
|
60
59
|
conversationId: string;
|
|
@@ -285,30 +285,6 @@ var GatewayRealtimeBackend = class {
|
|
|
285
285
|
if (!res.ok || !json.ok || !json.payload) throw new Error(json.error?.message ?? `Review context failed (${res.status})`);
|
|
286
286
|
return json.payload;
|
|
287
287
|
}
|
|
288
|
-
async startWorkflowRun(opts) {
|
|
289
|
-
const goal = opts.goal?.trim();
|
|
290
|
-
const res = await gatewayFetch(this.baseUrl, "/api/workflows/runs", this.credential, {
|
|
291
|
-
method: "POST",
|
|
292
|
-
body: JSON.stringify({
|
|
293
|
-
definitionId: opts.definitionId,
|
|
294
|
-
agentId: opts.agentId,
|
|
295
|
-
parentConversationId: opts.conversationId,
|
|
296
|
-
source: {
|
|
297
|
-
kind: "chat",
|
|
298
|
-
conversationId: opts.conversationId
|
|
299
|
-
},
|
|
300
|
-
...goal ? { goal } : {},
|
|
301
|
-
...opts.input !== void 0 ? { input: opts.input } : {}
|
|
302
|
-
})
|
|
303
|
-
});
|
|
304
|
-
const json = await res.json().catch(() => ({}));
|
|
305
|
-
if (!res.ok || !json.runId || !json.conversationId) throw new Error(json.error ?? `Workflow start failed (${res.status})`);
|
|
306
|
-
return {
|
|
307
|
-
runId: json.runId,
|
|
308
|
-
conversationId: json.conversationId,
|
|
309
|
-
definitionId: opts.definitionId
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
288
|
async resolveStartupProject(opts) {
|
|
313
289
|
const res = await gatewayFetch(this.baseUrl, "/api/projects/resolve-workspace", this.credential, {
|
|
314
290
|
method: "POST",
|
|
@@ -409,7 +385,6 @@ var GatewayRealtimeBackend = class {
|
|
|
409
385
|
const empty = {
|
|
410
386
|
context: [],
|
|
411
387
|
skills: [],
|
|
412
|
-
workflows: [],
|
|
413
388
|
connectors: []
|
|
414
389
|
};
|
|
415
390
|
try {
|
|
@@ -419,7 +394,6 @@ var GatewayRealtimeBackend = class {
|
|
|
419
394
|
return {
|
|
420
395
|
context: Array.isArray(json.payload?.context) ? json.payload.context : [],
|
|
421
396
|
skills: Array.isArray(json.payload?.skills) ? json.payload.skills : [],
|
|
422
|
-
workflows: Array.isArray(json.payload?.workflows) ? json.payload.workflows : [],
|
|
423
397
|
connectors: Array.isArray(json.payload?.connectors) ? json.payload.connectors : []
|
|
424
398
|
};
|
|
425
399
|
} catch (error) {
|
|
@@ -639,7 +613,7 @@ var GatewayRealtimeBackend = class {
|
|
|
639
613
|
} else out.model = p.model;
|
|
640
614
|
}
|
|
641
615
|
if (p?.thinkingLevel && typeof p.thinkingLevel === "string") out.thinkingLevel = p.thinkingLevel;
|
|
642
|
-
if (p?.
|
|
616
|
+
if (p?.activityDetail?.effective) out.reasoningLevel = p.activityDetail.effective;
|
|
643
617
|
if (p?.verboseLevel && typeof p.verboseLevel === "string") out.verboseLevel = p.verboseLevel;
|
|
644
618
|
if (p?.effectiveWorkspacePath && typeof p.effectiveWorkspacePath === "string") out.effectiveWorkspacePath = p.effectiveWorkspacePath;
|
|
645
619
|
if (typeof p?.workingDirectoryLocked === "boolean") out.workingDirectoryLocked = p.workingDirectoryLocked;
|
|
@@ -38,7 +38,6 @@ export declare class ChatLog extends Container {
|
|
|
38
38
|
private lastAssistantText;
|
|
39
39
|
private lastStatusEntry;
|
|
40
40
|
private lastStatusText;
|
|
41
|
-
private workflowStatusByRunId;
|
|
42
41
|
private entryRecords;
|
|
43
42
|
private viewportRowsProvider;
|
|
44
43
|
private historyViewDisplayIndex;
|
|
@@ -51,7 +50,6 @@ export declare class ChatLog extends Container {
|
|
|
51
50
|
private createAssistantMessage;
|
|
52
51
|
addSystem(text: string, meta?: ChatLogEntryMeta): void;
|
|
53
52
|
addStatus(text: string): void;
|
|
54
|
-
updateWorkflowRun(runId: string, text: string): void;
|
|
55
53
|
addCompactionSummary(result: TuiCompactionResult): void;
|
|
56
54
|
addBranchSummary(summary: TuiBranchSummary): void;
|
|
57
55
|
addBranchMessageSummary(summary: BranchMessageSummary): void;
|
|
@@ -42,7 +42,6 @@ var ChatLog = class extends Container {
|
|
|
42
42
|
lastAssistantText = "";
|
|
43
43
|
lastStatusEntry = null;
|
|
44
44
|
lastStatusText = null;
|
|
45
|
-
workflowStatusByRunId = /* @__PURE__ */ new Map();
|
|
46
45
|
entryRecords = [];
|
|
47
46
|
viewportRowsProvider;
|
|
48
47
|
historyViewDisplayIndex = null;
|
|
@@ -79,7 +78,6 @@ var ChatLog = class extends Container {
|
|
|
79
78
|
this.lastAssistantText = "";
|
|
80
79
|
this.lastStatusEntry = null;
|
|
81
80
|
this.lastStatusText = null;
|
|
82
|
-
this.workflowStatusByRunId.clear();
|
|
83
81
|
this.entryRecords = [];
|
|
84
82
|
this.historyViewDisplayIndex = null;
|
|
85
83
|
this.activeCells.clear();
|
|
@@ -112,22 +110,6 @@ var ChatLog = class extends Container {
|
|
|
112
110
|
this.lastStatusText = statusText;
|
|
113
111
|
this.append(entry);
|
|
114
112
|
}
|
|
115
|
-
updateWorkflowRun(runId, text) {
|
|
116
|
-
const existing = this.workflowStatusByRunId.get(runId);
|
|
117
|
-
if (existing) {
|
|
118
|
-
existing.text.setText(theme.system(text));
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
const entry = new Container();
|
|
122
|
-
const statusText = new Text(theme.system(text), 1, 0);
|
|
123
|
-
entry.addChild(new Spacer(1));
|
|
124
|
-
entry.addChild(statusText);
|
|
125
|
-
this.workflowStatusByRunId.set(runId, {
|
|
126
|
-
entry,
|
|
127
|
-
text: statusText
|
|
128
|
-
});
|
|
129
|
-
this.append(entry);
|
|
130
|
-
}
|
|
131
113
|
addCompactionSummary(result) {
|
|
132
114
|
const component = new CompactionSummaryComponent(result, this.keybindings);
|
|
133
115
|
component.setExpanded(this.toolsExpanded);
|
|
@@ -69,7 +69,6 @@ function resolveCustomOverlayOptions(component, customOpts) {
|
|
|
69
69
|
if (typeof width === "string" && /^\d+%$/.test(width)) return { width };
|
|
70
70
|
}
|
|
71
71
|
function invokeCustomFactory(factory, tui, keybindings, done) {
|
|
72
|
-
if (factory.length <= 1) return factory(done);
|
|
73
72
|
return factory(tui, theme, keybindings, done);
|
|
74
73
|
}
|
|
75
74
|
function disposeComponent(component) {
|
|
@@ -120,7 +120,6 @@ export interface TuiShareResult {
|
|
|
120
120
|
export interface TuiStartupResources {
|
|
121
121
|
context: string[];
|
|
122
122
|
skills: string[];
|
|
123
|
-
workflows: string[];
|
|
124
123
|
connectors: string[];
|
|
125
124
|
}
|
|
126
125
|
export interface TuiWorkspaceFileSearchEntry {
|
|
@@ -128,18 +127,6 @@ export interface TuiWorkspaceFileSearchEntry {
|
|
|
128
127
|
path: string;
|
|
129
128
|
isDirectory: boolean;
|
|
130
129
|
}
|
|
131
|
-
export interface TuiWorkflowRunStartRequest {
|
|
132
|
-
conversationId: string;
|
|
133
|
-
definitionId: string;
|
|
134
|
-
agentId?: string;
|
|
135
|
-
goal?: string;
|
|
136
|
-
input?: unknown;
|
|
137
|
-
}
|
|
138
|
-
export interface TuiWorkflowRunStartResult {
|
|
139
|
-
runId: string;
|
|
140
|
-
conversationId: string;
|
|
141
|
-
definitionId: string;
|
|
142
|
-
}
|
|
143
130
|
export interface TuiStartupProjectResult {
|
|
144
131
|
project: {
|
|
145
132
|
id: string;
|
|
@@ -243,8 +230,6 @@ export interface TuiBackend {
|
|
|
243
230
|
ok: boolean;
|
|
244
231
|
state?: TuiChatInputState;
|
|
245
232
|
}>;
|
|
246
|
-
/** Start a workflow run directly, without routing through the LLM. */
|
|
247
|
-
startWorkflowRun?(opts: TuiWorkflowRunStartRequest): Promise<TuiWorkflowRunStartResult>;
|
|
248
233
|
/** Resolve or create the project implied by the TUI launch workspace. */
|
|
249
234
|
resolveStartupProject?(opts: {
|
|
250
235
|
workspacePath: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { TuiCompactionResult, TuiExportFormat, TuiModelChoice, TuiShareRequest, TuiShareResult, TuiSessionStats, TuiSessionItem, TuiTranscriptTreeEntry } from './tui-backend.js';
|
|
2
2
|
import type { TuiState } from './tui-types.js';
|
|
3
|
-
import { type CatalogEntry } from '../agent/workflow/catalog.js';
|
|
4
3
|
import { type VerboseLevel } from '../agent/transcript/thinking-types.js';
|
|
5
4
|
import type { AuthProfileEntry } from '../auth/profiles/index.js';
|
|
6
5
|
import type { Config } from '../config/schema.js';
|
|
@@ -52,8 +51,6 @@ export declare function formatTuiTranscriptTreeInfo(entries: TuiTranscriptTreeEn
|
|
|
52
51
|
limit?: number;
|
|
53
52
|
allEntries?: TuiTranscriptTreeEntry[];
|
|
54
53
|
}): string;
|
|
55
|
-
export declare function formatTuiWorkflowsInfo(entries: CatalogEntry[]): string;
|
|
56
|
-
export declare function formatTuiWorkflowDetail(name: string): string;
|
|
57
54
|
export declare function formatTuiSessionInfo(state: TuiState, stats?: TuiSessionStats): string;
|
|
58
55
|
export declare function formatTuiUsageInfo(state: TuiState, stats?: TuiSessionStats): string;
|
|
59
56
|
export declare function formatTuiCompactionResult(result: TuiCompactionResult): string;
|
|
@@ -3,7 +3,6 @@ import { getRuntimeLogStats } from "../utils/logger/stats.js";
|
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { resolveConfigPath } from "../config/paths.js";
|
|
5
5
|
import { getProviderDisplayName, getSortedProviders, init_providers, providerSupportsApiKey, providerSupportsOAuth } from "../providers/index.js";
|
|
6
|
-
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
7
6
|
import { normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
8
7
|
import "../config/index.js";
|
|
9
8
|
import { countPendingChatInputs } from "./tui-chat-input-state.js";
|
|
@@ -390,32 +389,6 @@ function hasTranscriptTreeInfoFollowingSibling(entryId, parentId, childrenByPare
|
|
|
390
389
|
const siblings = childrenByParentId.get(parentId) ?? [];
|
|
391
390
|
return siblings.indexOf(entryId) < siblings.length - 1;
|
|
392
391
|
}
|
|
393
|
-
function formatTuiWorkflowsInfo(entries) {
|
|
394
|
-
if (entries.length === 0) return "Workflows\n\nNo workflows found.";
|
|
395
|
-
const lines = ["Workflows", ""];
|
|
396
|
-
for (const entry of entries) {
|
|
397
|
-
const tags = entry.tags?.length ? ` [${entry.tags.join(", ")}]` : "";
|
|
398
|
-
lines.push(` ${entry.name} (${entry.source})${tags}`);
|
|
399
|
-
if (entry.description) lines.push(` ${entry.description}`);
|
|
400
|
-
}
|
|
401
|
-
lines.push("", "Run a workflow with /<name>, or inspect one with /workflow view <name>.");
|
|
402
|
-
return lines.join("\n");
|
|
403
|
-
}
|
|
404
|
-
function formatTuiWorkflowDetail(name) {
|
|
405
|
-
const loaded = createWorkflowCatalog().load(name);
|
|
406
|
-
const lines = [
|
|
407
|
-
`Workflow: ${loaded.name}`,
|
|
408
|
-
"",
|
|
409
|
-
`Source: ${loaded.metadata.source}`,
|
|
410
|
-
`Description: ${loaded.description}`,
|
|
411
|
-
`Revision: ${loaded.revision}`
|
|
412
|
-
];
|
|
413
|
-
if (loaded.metadata.whenToUse) lines.push(`When to use: ${loaded.metadata.whenToUse}`);
|
|
414
|
-
if (loaded.metadata.tags.length) lines.push(`Tags: ${loaded.metadata.tags.join(", ")}`);
|
|
415
|
-
if (loaded.metadata.estimatedAgents) lines.push(`Agents: ${loaded.metadata.estimatedAgents.min}-${loaded.metadata.estimatedAgents.max}`);
|
|
416
|
-
lines.push("", "Flow:", loaded.graph.nodes.map((node) => `- ${node.title} (${node.kind})`).join("\n"));
|
|
417
|
-
return lines.join("\n");
|
|
418
|
-
}
|
|
419
392
|
function formatTuiSessionStatsBlock(stats) {
|
|
420
393
|
if (!stats) return [];
|
|
421
394
|
return [
|
|
@@ -581,4 +554,4 @@ function formatTuiTrustInfo(config, options = {}) {
|
|
|
581
554
|
return lines.join("\n");
|
|
582
555
|
}
|
|
583
556
|
//#endregion
|
|
584
|
-
export { formatModelLabel, formatTuiChangelogInfo, formatTuiCompactionResult, formatTuiConfigInfo, formatTuiContextInfo, formatTuiDebugInfo, formatTuiLoginInfo, formatTuiModelsInfo, formatTuiSessionInfo, formatTuiSessionListInfo, formatTuiSessionTreeInfo, formatTuiShareResult, formatTuiStoredAuthProfilesInfo, formatTuiTranscriptTreeInfo, formatTuiTrustInfo, formatTuiUsageInfo,
|
|
557
|
+
export { formatModelLabel, formatTuiChangelogInfo, formatTuiCompactionResult, formatTuiConfigInfo, formatTuiContextInfo, formatTuiDebugInfo, formatTuiLoginInfo, formatTuiModelsInfo, formatTuiSessionInfo, formatTuiSessionListInfo, formatTuiSessionTreeInfo, formatTuiShareResult, formatTuiStoredAuthProfilesInfo, formatTuiTranscriptTreeInfo, formatTuiTrustInfo, formatTuiUsageInfo, loadTuiChangelogInfo, nextVerboseLevel, parseTuiExportRequest, parseTuiImportRequest, parseTuiShareRequest, writeTuiDebugInfo };
|
|
@@ -18,7 +18,7 @@ export type TuiExtensionSlashCommandEntry = SlashCommandDef & {
|
|
|
18
18
|
getContext?: () => TuiSlashCommandContext;
|
|
19
19
|
};
|
|
20
20
|
export declare function getSlashCommands(_isLocal: boolean, keybindings?: KeybindingsManager): SlashCommandDef[];
|
|
21
|
-
export declare function formatTuiHelpText(isLocal: boolean, keybindings?: KeybindingsManager, extraSlashCommands?: SlashCommandDef[], skillSlashCommands?: SlashCommandDef[]
|
|
21
|
+
export declare function formatTuiHelpText(isLocal: boolean, keybindings?: KeybindingsManager, extraSlashCommands?: SlashCommandDef[], skillSlashCommands?: SlashCommandDef[]): string;
|
|
22
22
|
export declare function formatTuiStartText(state: TuiState, isLocal: boolean, keybindings?: KeybindingsManager, resources?: TuiStartupResources): string;
|
|
23
23
|
import { type TuiExportRequest, type TuiImportRequest } from './tui-command-formatters.js';
|
|
24
24
|
export type CommandHandlerDeps = {
|
|
@@ -75,18 +75,6 @@ export type CommandHandlerDeps = {
|
|
|
75
75
|
exportSession?: (request: TuiExportRequest) => void | Promise<void>;
|
|
76
76
|
importSession?: (request: TuiImportRequest) => void | Promise<void>;
|
|
77
77
|
createShare?: (request: TuiShareRequest) => void | Promise<void>;
|
|
78
|
-
startWorkflowRun?: (request: {
|
|
79
|
-
definitionId: string;
|
|
80
|
-
goal?: string;
|
|
81
|
-
}) => {
|
|
82
|
-
runId: string;
|
|
83
|
-
conversationId: string;
|
|
84
|
-
definitionId: string;
|
|
85
|
-
} | Promise<{
|
|
86
|
-
runId: string;
|
|
87
|
-
conversationId: string;
|
|
88
|
-
definitionId: string;
|
|
89
|
-
}>;
|
|
90
78
|
authProfiles?: {
|
|
91
79
|
listAll: () => AuthProfileEntry[] | Promise<AuthProfileEntry[]>;
|
|
92
80
|
listProvider: (provider: string) => AuthProfileEntry[] | Promise<AuthProfileEntry[]>;
|
|
@@ -104,7 +92,6 @@ export type CommandHandlerDeps = {
|
|
|
104
92
|
runBtwQuery?: (question: string) => void | Promise<void>;
|
|
105
93
|
forkSession?: (rawKey?: string) => void | Promise<void>;
|
|
106
94
|
skillSlashCommands?: SlashCommandDef[];
|
|
107
|
-
workflowSlashCommands?: SlashCommandDef[];
|
|
108
95
|
extensionSlashCommands?: TuiExtensionSlashCommandEntry[];
|
|
109
96
|
extensionShortcuts?: TuiHotkeyExtensionShortcut[];
|
|
110
97
|
currentAgentId?: string;
|
|
@@ -9,7 +9,6 @@ import { ProjectService } from "../projects/project-service.js";
|
|
|
9
9
|
import { isValidProjectAgentId, normalizeProjectAgentId } from "../projects/project-agent.js";
|
|
10
10
|
import { inferSuggestedProjectDefaultAgentId } from "../projects/project-agent-suggestion.js";
|
|
11
11
|
import "../projects/index.js";
|
|
12
|
-
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
13
12
|
import "../tasks/index.js";
|
|
14
13
|
import { normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../agent/transcript/thinking-types.js";
|
|
15
14
|
import { provenanceTracker } from "../extensions/security.js";
|
|
@@ -18,11 +17,10 @@ import "../config/index.js";
|
|
|
18
17
|
import { theme } from "./theme.js";
|
|
19
18
|
import { getTuiKeybindingsPath } from "./tui-keybindings-file.js";
|
|
20
19
|
import { formatKeyIds, formatXopcTuiHotkeys } from "./format-tui-hotkeys.js";
|
|
21
|
-
import { formatTuiConfigInfo, formatTuiContextInfo, formatTuiLoginInfo, formatTuiModelsInfo, formatTuiSessionInfo, formatTuiSessionListInfo, formatTuiSessionTreeInfo, formatTuiStoredAuthProfilesInfo, formatTuiTranscriptTreeInfo, formatTuiTrustInfo, formatTuiUsageInfo,
|
|
20
|
+
import { formatTuiConfigInfo, formatTuiContextInfo, formatTuiLoginInfo, formatTuiModelsInfo, formatTuiSessionInfo, formatTuiSessionListInfo, formatTuiSessionTreeInfo, formatTuiStoredAuthProfilesInfo, formatTuiTranscriptTreeInfo, formatTuiTrustInfo, formatTuiUsageInfo, loadTuiChangelogInfo, nextVerboseLevel, parseTuiExportRequest, parseTuiImportRequest, parseTuiShareRequest, writeTuiDebugInfo } from "./tui-command-formatters.js";
|
|
22
21
|
import { buildTuiTimelineTurns, findNearestTimelineTurnByDisplayIndex, findTimelineTurnByNumber } from "./tui-timeline.js";
|
|
23
22
|
import { getAuthStorePath, listAllProfiles, listProfilesForProvider, removeAuthProfile } from "../auth/profiles/profiles.js";
|
|
24
23
|
import "../auth/profiles/index.js";
|
|
25
|
-
import { rewriteUnknownSlashAsWorkflow } from "./tui-workflow-slash.js";
|
|
26
24
|
import { formatTuiStartupText } from "./tui-startup-text.js";
|
|
27
25
|
import { randomUUID } from "node:crypto";
|
|
28
26
|
//#region src/tui/tui-commands.ts
|
|
@@ -242,10 +240,6 @@ function getSlashCommands(_isLocal, keybindings) {
|
|
|
242
240
|
{
|
|
243
241
|
name: "changelog",
|
|
244
242
|
description: "Show version history"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
name: "workflow",
|
|
248
|
-
description: "Workflow subcommands: list, view <name>"
|
|
249
243
|
}
|
|
250
244
|
];
|
|
251
245
|
}
|
|
@@ -260,7 +254,7 @@ function formatExtraSlashCommands(commands, seen) {
|
|
|
260
254
|
}
|
|
261
255
|
return lines;
|
|
262
256
|
}
|
|
263
|
-
function formatTuiHelpText(isLocal, keybindings, extraSlashCommands = [], skillSlashCommands = []
|
|
257
|
+
function formatTuiHelpText(isLocal, keybindings, extraSlashCommands = [], skillSlashCommands = []) {
|
|
264
258
|
const commands = getSlashCommands(isLocal, keybindings);
|
|
265
259
|
const interrupt = keyLabel(keybindings, "app.interrupt", "Escape");
|
|
266
260
|
const thinkCycle = keyLabel(keybindings, "app.thinking.cycle", "Shift+Tab");
|
|
@@ -286,11 +280,6 @@ function formatTuiHelpText(isLocal, keybindings, extraSlashCommands = [], skillS
|
|
|
286
280
|
lines.push("", "Skill commands:");
|
|
287
281
|
lines.push(...skillCommandLines);
|
|
288
282
|
}
|
|
289
|
-
const workflowCommandLines = formatExtraSlashCommands(workflowSlashCommands, seenCommands);
|
|
290
|
-
if (workflowCommandLines.length > 0) {
|
|
291
|
-
lines.push("", "Workflow commands:");
|
|
292
|
-
lines.push(...workflowCommandLines);
|
|
293
|
-
}
|
|
294
283
|
const extraCommandLines = formatExtraSlashCommands(extraSlashCommands, seenCommands);
|
|
295
284
|
if (extraCommandLines.length > 0) {
|
|
296
285
|
lines.push("", "Extension commands:");
|
|
@@ -659,7 +648,7 @@ function runTuiProjectCommand(state, args) {
|
|
|
659
648
|
});
|
|
660
649
|
}
|
|
661
650
|
function createTuiCommandHandler(deps) {
|
|
662
|
-
const { state, chatLog, tui, isLocalMode, abortActive, sendMessage, requestExit, updateFooter, keybindings, uiOverlays, skillSlashCommands = [],
|
|
651
|
+
const { state, chatLog, tui, isLocalMode, abortActive, sendMessage, requestExit, updateFooter, keybindings, uiOverlays, skillSlashCommands = [], extensionSlashCommands = [], extensionShortcuts = [], setSession, resetSession } = deps;
|
|
663
652
|
const runReset = async () => {
|
|
664
653
|
await abortActive();
|
|
665
654
|
if (resetSession) {
|
|
@@ -677,7 +666,7 @@ function createTuiCommandHandler(deps) {
|
|
|
677
666
|
const commandArgs = restParts.join(" ");
|
|
678
667
|
switch (normalizedCommand) {
|
|
679
668
|
case "help":
|
|
680
|
-
chatLog.addSystem(formatTuiHelpText(isLocalMode, keybindings, extensionSlashCommands, skillSlashCommands
|
|
669
|
+
chatLog.addSystem(formatTuiHelpText(isLocalMode, keybindings, extensionSlashCommands, skillSlashCommands));
|
|
681
670
|
tui.requestRender();
|
|
682
671
|
return;
|
|
683
672
|
case "start":
|
|
@@ -911,44 +900,6 @@ function createTuiCommandHandler(deps) {
|
|
|
911
900
|
});
|
|
912
901
|
return;
|
|
913
902
|
}
|
|
914
|
-
case "workflow": {
|
|
915
|
-
const [subcommandRaw, ...workflowRest] = commandArgs.trim().split(/\s+/);
|
|
916
|
-
const subcommand = (subcommandRaw || "list").toLowerCase();
|
|
917
|
-
if (subcommand === "list" || subcommand === "ls") {
|
|
918
|
-
try {
|
|
919
|
-
chatLog.addSystem(formatTuiWorkflowsInfo(createWorkflowCatalog().list()));
|
|
920
|
-
} catch (err) {
|
|
921
|
-
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
922
|
-
chatLog.addSystem(`Workflow list failed: ${errorMessage}`);
|
|
923
|
-
}
|
|
924
|
-
tui.requestRender();
|
|
925
|
-
return;
|
|
926
|
-
}
|
|
927
|
-
if (subcommand === "view" || subcommand === "show") {
|
|
928
|
-
const name = workflowRest[0]?.trim();
|
|
929
|
-
if (!name) {
|
|
930
|
-
chatLog.addSystem("Usage: /workflow view <name>");
|
|
931
|
-
tui.requestRender();
|
|
932
|
-
return;
|
|
933
|
-
}
|
|
934
|
-
try {
|
|
935
|
-
chatLog.addSystem(formatTuiWorkflowDetail(name));
|
|
936
|
-
} catch (err) {
|
|
937
|
-
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
938
|
-
chatLog.addSystem(`Workflow view failed: ${errorMessage}`);
|
|
939
|
-
}
|
|
940
|
-
tui.requestRender();
|
|
941
|
-
return;
|
|
942
|
-
}
|
|
943
|
-
if (subcommand === "save") {
|
|
944
|
-
chatLog.addSystem("/workflow save is not a TUI command. Save generated workflows through the workflow tool.");
|
|
945
|
-
tui.requestRender();
|
|
946
|
-
return;
|
|
947
|
-
}
|
|
948
|
-
chatLog.addSystem("Usage: /workflow list | /workflow view <name>");
|
|
949
|
-
tui.requestRender();
|
|
950
|
-
return;
|
|
951
|
-
}
|
|
952
903
|
case "models":
|
|
953
904
|
Promise.resolve(deps.listModels?.() ?? []).then((models) => {
|
|
954
905
|
chatLog.addSystem(formatTuiModelsInfo(models));
|
|
@@ -1317,42 +1268,6 @@ function createTuiCommandHandler(deps) {
|
|
|
1317
1268
|
sendMessage(input);
|
|
1318
1269
|
return;
|
|
1319
1270
|
}
|
|
1320
|
-
if (normalizedCommand.startsWith("workflow:")) {
|
|
1321
|
-
const workflowName = normalizedCommand.slice(9).trim();
|
|
1322
|
-
if (!workflowName) {
|
|
1323
|
-
chatLog.addSystem("Usage: /workflow:<name> [goal]");
|
|
1324
|
-
tui.requestRender();
|
|
1325
|
-
return;
|
|
1326
|
-
}
|
|
1327
|
-
if (!deps.startWorkflowRun) {
|
|
1328
|
-
chatLog.addSystem("Workflow runs are not available in this mode.");
|
|
1329
|
-
tui.requestRender();
|
|
1330
|
-
return;
|
|
1331
|
-
}
|
|
1332
|
-
chatLog.addSystem(`▶ Starting workflow: ${workflowName}`);
|
|
1333
|
-
tui.requestRender();
|
|
1334
|
-
Promise.resolve(deps.startWorkflowRun({
|
|
1335
|
-
definitionId: workflowName,
|
|
1336
|
-
goal: commandArgs.trim() || void 0
|
|
1337
|
-
})).then((result) => {
|
|
1338
|
-
chatLog.addSystem(`Workflow started: ${result.definitionId}\nrunId: ${result.runId}\nconversationId: ${result.conversationId}`);
|
|
1339
|
-
tui.requestRender();
|
|
1340
|
-
}).catch((err) => {
|
|
1341
|
-
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
1342
|
-
chatLog.addSystem(`Workflow start failed: ${errorMessage}`);
|
|
1343
|
-
tui.requestRender();
|
|
1344
|
-
});
|
|
1345
|
-
return;
|
|
1346
|
-
}
|
|
1347
|
-
if (input.trimStart().startsWith("/")) {
|
|
1348
|
-
const rewritten = rewriteUnknownSlashAsWorkflow(normalizedCommand, commandArgs);
|
|
1349
|
-
if (rewritten) {
|
|
1350
|
-
chatLog.addSystem(`▶ Running workflow: ${normalizedCommand}`);
|
|
1351
|
-
tui.requestRender();
|
|
1352
|
-
sendMessage(rewritten);
|
|
1353
|
-
return;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
1271
|
sendMessage(input);
|
|
1357
1272
|
};
|
|
1358
1273
|
}
|
|
@@ -6,7 +6,6 @@ import { resolveBootstrapFilesSync } from "../agent/bootstrap/bootstrap-files.js
|
|
|
6
6
|
import { listConnectorInstances } from "../connectors/instances.js";
|
|
7
7
|
import { createSkillConfigManager, isSkillEnabled } from "../agent/skills/config.js";
|
|
8
8
|
import { loadSkills } from "../agent/skills/index.js";
|
|
9
|
-
import { createWorkflowCatalog } from "../agent/workflow/catalog.js";
|
|
10
9
|
import "../config/index.js";
|
|
11
10
|
import { basename } from "node:path";
|
|
12
11
|
//#region src/tui/tui-startup-resources.ts
|
|
@@ -30,7 +29,6 @@ function collectTuiStartupResources(config, conversationId, options = {}) {
|
|
|
30
29
|
builtinDir: resolveBundledSkillsDir() ?? void 0,
|
|
31
30
|
workspaceTrust: options.isWorkspaceTrusted?.(workspaceDir) === true ? "trusted" : "untrusted"
|
|
32
31
|
}).skills.filter((skill) => !skill.disableModelInvocation && isSkillEnabled(skill, skillsConfig)).map((skill) => skill.name)),
|
|
33
|
-
workflows: uniqueSorted(createWorkflowCatalog().list().map((entry) => entry.name)),
|
|
34
32
|
connectors: uniqueSorted(listConnectorInstances(config).map((instance) => instance.displayName || instance.connectorId || instance.instanceId))
|
|
35
33
|
};
|
|
36
34
|
}
|
|
@@ -38,18 +38,17 @@ function formatTuiStartupText(input) {
|
|
|
38
38
|
}
|
|
39
39
|
lines.push(compactKeyLine(input.keybindings));
|
|
40
40
|
lines.push("Press /start to show full startup help.");
|
|
41
|
-
if (expanded) lines.push("", "xopc can use skills,
|
|
41
|
+
if (expanded) lines.push("", "xopc can use skills, connectors, and project context. Ask it how to automate or connect services.", "", "Ask xopc:", " \"use a connector to check issues or docs\"", " \"what skills can help with this task?\"");
|
|
42
42
|
if (expanded) {
|
|
43
43
|
lines.push("");
|
|
44
44
|
lines.push(...formatResourceSection("Context", input.resources?.context, { expanded }));
|
|
45
45
|
lines.push("");
|
|
46
46
|
lines.push(...formatResourceSection("Skills", input.resources?.skills, { expanded }));
|
|
47
47
|
lines.push("");
|
|
48
|
-
lines.push(...formatResourceSection("Workflows", input.resources?.workflows, { expanded }));
|
|
49
48
|
lines.push("");
|
|
50
49
|
lines.push(...formatResourceSection("Connectors", input.resources?.connectors, { expanded }));
|
|
51
50
|
}
|
|
52
|
-
if (expanded) lines.push("", "Useful commands:", " /help — Show all commands and shortcuts", " /
|
|
51
|
+
if (expanded) lines.push("", "Useful commands:", " /help — Show all commands and shortcuts", " /models — List available models", " /settings — Open TUI settings", " /export — Export current session");
|
|
53
52
|
return lines.join("\n");
|
|
54
53
|
}
|
|
55
54
|
//#endregion
|