@xopcai/xopc 0.0.410 → 0.0.412

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.
Files changed (688) hide show
  1. package/README.md +12 -6
  2. package/README.zh-CN.md +12 -6
  3. package/dist/browser-ext/dist/assets/{page-context-A5RCibM_.js → page-context-MuzjMBlJ.js} +1 -1
  4. package/dist/browser-ext/dist/background.js +1 -1
  5. package/dist/browser-ext/dist/sidepanel.html +1 -1
  6. package/dist/browser-ext/dist/sidepanel.js +1 -1
  7. package/dist/browser-ext/manifest.json +1 -1
  8. package/dist/extensions/feishu/src/adapters/gateway-setup.js +9 -3
  9. package/dist/extensions/feishu/src/plugin.d.ts +0 -3
  10. package/dist/extensions/feishu/src/plugin.js +1 -11
  11. package/dist/extensions/feishu/src/schema/config-schema.d.ts +0 -2
  12. package/dist/extensions/feishu/src/schema/config-schema.js +9 -21
  13. package/dist/extensions/feishu/src/state/accounts.js +3 -7
  14. package/dist/extensions/telegram/src/plugin.d.ts +0 -3
  15. package/dist/extensions/telegram/src/plugin.js +0 -9
  16. package/dist/extensions/telegram/xopc.extension.json +1 -1
  17. package/dist/extensions/weixin/src/plugin.d.ts +0 -3
  18. package/dist/extensions/weixin/src/plugin.js +1 -12
  19. package/dist/gateway/static/root/assets/agent-avatar-dicebear-BrGZdh5N.js +1 -0
  20. package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BjZpom5V.js +1 -0
  21. package/dist/gateway/static/root/assets/{agents-admin-api-D0UyB0Y_.js → agents-admin-api-uGDeJR1f.js} +1 -1
  22. package/dist/gateway/static/root/assets/agents-s3ws5Qi-.js +77 -0
  23. package/dist/gateway/static/root/assets/app-management-settings-panel-C6DHuX0L.js +1 -0
  24. package/dist/gateway/static/root/assets/{appearance-settings-byEnJz9H.js → appearance-settings-DYGY92Yr.js} +1 -1
  25. package/dist/gateway/static/root/assets/apps-page-PpT_YMmD.js +1 -0
  26. package/dist/gateway/static/root/assets/{archive-plugin-BXssEuq3.js → archive-plugin-DAmsio91.js} +1 -1
  27. package/dist/gateway/static/root/assets/{automation-display-DCkjVzA0.js → automation-display-BFN7zWBg.js} +1 -1
  28. package/dist/gateway/static/root/assets/{automations-page-C-puATkS.js → automations-page-BVutrwON.js} +1 -1
  29. package/dist/gateway/static/root/assets/automations-workspace-G6-9IYbR.js +8 -0
  30. package/dist/gateway/static/root/assets/{binary-plugins-DBz_2AhG.js → binary-plugins-41QCRAxz.js} +1 -1
  31. package/dist/gateway/static/root/assets/{block-editor-BOO5kjIl.js → block-editor-BQ8AA-Ot.js} +40 -40
  32. package/dist/gateway/static/root/assets/{browser-automation-inputs-D8bZ9iz2.js → browser-automation-inputs-D4-vQc4g.js} +1 -1
  33. package/dist/gateway/static/root/assets/browser-automations-page-o3jNFlCb.js +3 -0
  34. package/dist/gateway/static/root/assets/browser-settings-page-G0dVwiX4.js +3 -0
  35. package/dist/gateway/static/root/assets/capabilities-B9b5KCBb.js +1 -0
  36. package/dist/gateway/static/root/assets/capabilities-page-BZQanmZY.js +2 -0
  37. package/dist/gateway/static/root/assets/capabilities-settings-panel-D-YadSx_.js +8 -0
  38. package/dist/gateway/static/root/assets/{capability-header-actions-yfPUz5Wt.js → capability-header-actions-CDgI-YZF.js} +1 -1
  39. package/dist/gateway/static/root/assets/channels-3WX3f0bR.js +1 -0
  40. package/dist/gateway/static/root/assets/{chat-terminal-dock-Dlzn80cK.js → chat-terminal-dock-CUkCx_9x.js} +2 -2
  41. package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-B2HK1psj.js → chunk-KS7C4IRE-BvcCCgTW.js} +2 -2
  42. package/dist/gateway/static/root/assets/computer-settings-page-CuZrL9gL.js +1 -0
  43. package/dist/gateway/static/root/assets/connector-service-page-49mgdRET.js +1 -0
  44. package/dist/gateway/static/root/assets/connectors-page-Bjj2wAeG.js +1 -0
  45. package/dist/gateway/static/root/assets/date-formatters-DukWSVwc.js +1 -0
  46. package/dist/gateway/static/root/assets/{date-picker-DGjpqOKx.js → date-picker-BpBjADAk.js} +1 -1
  47. package/dist/gateway/static/root/assets/dependency-picker-R8kdHLr3.js +1 -0
  48. package/dist/gateway/static/root/assets/desktop-pet-BpiosRqb.js +1 -0
  49. package/dist/gateway/static/root/assets/desktop-pet-settings-9h6evrKB.js +1 -0
  50. package/dist/gateway/static/root/assets/device-pairing-wizard-CZ5lwiLE.js +1 -0
  51. package/dist/gateway/static/root/assets/{directory-picker-path-field-CwT1LcLR.js → directory-picker-path-field-DwXqp_iu.js} +1 -1
  52. package/dist/gateway/static/root/assets/electron-env-Dit0bHgy.js +1 -0
  53. package/dist/gateway/static/root/assets/{extension-debug-page-DX-hX_d0.js → extension-debug-page-Bj93A2Gn.js} +1 -1
  54. package/dist/gateway/static/root/assets/{extension-page-Cji87mN9.js → extension-page-Bri62YsN.js} +1 -1
  55. package/dist/gateway/static/root/assets/{extension-settings-page-BulzpwBD.js → extension-settings-page-BSo6vRhS.js} +1 -1
  56. package/dist/gateway/static/root/assets/files-Bw4SBGdM.js +1 -0
  57. package/dist/gateway/static/root/assets/{gateway-config-swr-CTXr917C.js → gateway-config-swr-BVqYVaGy.js} +1 -1
  58. package/dist/gateway/static/root/assets/gateway-realtime-CY1LBGBS.js +1 -0
  59. package/dist/gateway/static/root/assets/gateway-realtime-store-Dafw95ol.js +1 -0
  60. package/dist/gateway/static/root/assets/gateway-settings-DgEwWJwz.js +1 -0
  61. package/dist/gateway/static/root/assets/{gateway-startup-retry-DD2fsxdd.js → gateway-startup-retry-CPKGkr6D.js} +1 -1
  62. package/dist/gateway/static/root/assets/highlight-code-CSFBakwF.js +1 -0
  63. package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-BgTqMa_d.js → highlighted-body-KQOG7T2V-Ci1QpkBn.js} +1 -1
  64. package/dist/gateway/static/root/assets/home-page-BKj-aPsL.js +2 -0
  65. package/dist/gateway/static/root/assets/image-generation-api-N5MYXlxr.js +1 -0
  66. package/dist/gateway/static/root/assets/imports-page-YfaRnpk1.js +1 -0
  67. package/dist/gateway/static/root/assets/index-CiDVRMmX.js +710 -0
  68. package/dist/gateway/static/root/assets/index-caRW34rg.css +1 -0
  69. package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-BTQcPOix.js +1 -0
  70. package/dist/gateway/static/root/assets/languages-byq_L2Ae.js +2 -0
  71. package/dist/gateway/static/root/assets/local-app-workbench-page-kCZ_fbSZ.js +1 -0
  72. package/dist/gateway/static/root/assets/local-apps-page-BjzaB1ls.js +1 -0
  73. package/dist/gateway/static/root/assets/{local-session-drafts-TqLFKwYo.js → local-session-drafts-BCaC-1rH.js} +1 -1
  74. package/dist/gateway/static/root/assets/locale-store-DAgpZxAS.js +1 -0
  75. package/dist/gateway/static/root/assets/logs-page-5Jt3uqYt.js +2 -0
  76. package/dist/gateway/static/root/assets/management-settings-DOQMLPrI.js +1 -0
  77. package/dist/gateway/static/root/assets/markdown-editor-phTQ0mox.js +1 -0
  78. package/dist/gateway/static/root/assets/{media-plugins-DQJXvbr_.js → media-plugins-8mlDAjD6.js} +1 -1
  79. package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-B4nztFE4.js +1 -0
  80. package/dist/gateway/static/root/assets/messages-DMXSIJUO.js +3 -0
  81. package/dist/gateway/static/root/assets/note-detail-panel-1wsKlkk3.js +5 -0
  82. package/dist/gateway/static/root/assets/note-image-lightbox-B82cToeV.js +1 -0
  83. package/dist/gateway/static/root/assets/notes-page-DKREWOku.js +8 -0
  84. package/dist/gateway/static/root/assets/page-context-capture-button-oSJIFF3E.js +1 -0
  85. package/dist/gateway/static/root/assets/personal-page-CoqQTkkS.js +1 -0
  86. package/dist/gateway/static/root/assets/personal-settings-panel-BgcJLmZN.js +1 -0
  87. package/dist/gateway/static/root/assets/plugin-details-dialog-CdOJ3Tir.js +1 -0
  88. package/dist/gateway/static/root/assets/preview-open-alternatives-n6Shdp3u.js +1 -0
  89. package/dist/gateway/static/root/assets/product-delivery-BqNm-8S5.js +1 -0
  90. package/dist/gateway/static/root/assets/{product-open-page-Bfqez8Je.js → product-open-page-BPF5rRTI.js} +1 -1
  91. package/dist/gateway/static/root/assets/product-preview-content-BOsGPNbw.js +1 -0
  92. package/dist/gateway/static/root/assets/project-detail-page-ZADyvA7-.js +7 -0
  93. package/dist/gateway/static/root/assets/projects-page-BkRe6Z8S.js +1 -0
  94. package/dist/gateway/static/root/assets/{registry-api-4NZOh0iz.js → registry-api-B6kqbuw8.js} +1 -1
  95. package/dist/gateway/static/root/assets/remote-access-hub-CCGf5kF4.js +1 -0
  96. package/dist/gateway/static/root/assets/runtime-tools-api-CY3R7unQ.js +5 -0
  97. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DSsANtha.js → runtime-tools-settings-panel-BxaxVlwM.js} +1 -1
  98. package/dist/gateway/static/root/assets/{schema-form-vbhv4JE6.js → schema-form-cXD1BC02.js} +1 -1
  99. package/dist/gateway/static/root/assets/session-api-D6-Vz8xK.js +1 -0
  100. package/dist/gateway/static/root/assets/{session-manager-D2sLfkw-.js → session-manager-DWbcMHcj.js} +3 -3
  101. package/dist/gateway/static/root/assets/sessions-page-B81rRu2-.js +1 -0
  102. package/dist/gateway/static/root/assets/settings-advanced-gate-DLHGV-I-.js +1 -0
  103. package/dist/gateway/static/root/assets/{settings-form-section-4nn0sb6v.js → settings-form-section-BXeszXR7.js} +1 -1
  104. package/dist/gateway/static/root/assets/{settings-page-_HB9FC08.js → settings-page-CNmh4YmR.js} +1 -1
  105. package/dist/gateway/static/root/assets/setup-status-panel-gEqkJWyw.js +1 -0
  106. package/dist/gateway/static/root/assets/share-preview-page-CS9cOCgX.js +2 -0
  107. package/dist/gateway/static/root/assets/shares-settings-D9Ul96XW.js +1 -0
  108. package/dist/gateway/static/root/assets/{skill-api-CyO89DKl.js → skill-api-B5lDCuOH.js} +1 -1
  109. package/dist/gateway/static/root/assets/skill-reload-api-NLAaNaDn.js +1 -0
  110. package/dist/gateway/static/root/assets/skills-page-dWeFt-6J.js +2 -0
  111. package/dist/gateway/static/root/assets/source-workspace-editor-BIvi89Zx.js +1 -0
  112. package/dist/gateway/static/root/assets/system-settings-panel-DdDsFdCh.js +1 -0
  113. package/dist/gateway/static/root/assets/task-detail-page-DO3FM--W.js +2 -0
  114. package/dist/gateway/static/root/assets/task-result-evidence-HJO1BlJm.js +1 -0
  115. package/dist/gateway/static/root/assets/tasks-TVRjEggr.js +1 -0
  116. package/dist/gateway/static/root/assets/tracing-settings-page-Dm3yToJ1.js +1 -0
  117. package/dist/gateway/static/root/assets/{tunnel-api-DOUyF9Ew.js → tunnel-api-DXU94F2Y.js} +1 -1
  118. package/dist/gateway/static/root/assets/{usage-page-Bv3fdfw1.js → usage-page-DJJhACRJ.js} +1 -1
  119. package/dist/gateway/static/root/assets/{use-autosave-D0MhLMD2.js → use-autosave-B1z_TIBu.js} +1 -1
  120. package/dist/gateway/static/root/assets/user-model-page-DnZ4qFaO.js +2 -0
  121. package/dist/gateway/static/root/assets/{vendor-codemirror-DFxP3B9T.js → vendor-codemirror-Qdcjid65.js} +16 -16
  122. package/dist/gateway/static/root/assets/{voice-api-key-field-Ds_ADBQH.js → voice-api-key-field-HOLjEhh3.js} +1 -1
  123. package/dist/gateway/static/root/assets/{voice-config-api-4yGMrp7J.js → voice-config-api-CPKzUb4R.js} +1 -1
  124. package/dist/gateway/static/root/assets/work-discovery-overlay-C9RklDaR.js +1 -0
  125. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Di-oEpCt.js → xopc-cloud-account-card-CWwGTBib.js} +1 -1
  126. package/dist/gateway/static/root/index.html +27 -35
  127. package/dist/package.js +1 -1
  128. package/dist/packages/endpoint-tools-protocol/src/index.js +1 -1
  129. package/dist/packages/gateway-contract/src/automations.js +0 -12
  130. package/dist/packages/gateway-contract/src/home.js +3 -3
  131. package/dist/packages/gateway-contract/src/product-delivery.js +0 -4
  132. package/dist/packages/gateway-contract/src/project-operating.js +0 -6
  133. package/dist/packages/gateway-contract/src/session-identity.js +0 -1
  134. package/dist/packages/gateway-contract/src/task-runs.js +0 -1
  135. package/dist/packages/gateway-contract/src/tasks.js +0 -6
  136. package/dist/src/activity/types.d.ts +4 -4
  137. package/dist/src/agent/agent-manager.d.ts +0 -3
  138. package/dist/src/agent/agent-manager.js +0 -43
  139. package/dist/src/agent/background-review/run-background-review.js +2 -2
  140. package/dist/src/agent/capabilities/definitions.d.ts +2 -18
  141. package/dist/src/agent/capabilities/definitions.js +0 -17
  142. package/dist/src/agent/child-agent-factory.d.ts +1 -1
  143. package/dist/src/agent/client-error-format.d.ts +1 -1
  144. package/dist/src/agent/client-error-format.js +1 -1
  145. package/dist/src/agent/commands/command-registry.js +1 -1
  146. package/dist/src/agent/context/execution-scope.d.ts +2 -8
  147. package/dist/src/agent/context/execution-scope.js +6 -23
  148. package/dist/src/agent/embedded/index.d.ts +0 -1
  149. package/dist/src/agent/embedded/index.js +1 -2
  150. package/dist/src/agent/embedded/run-turn.js +25 -2
  151. package/dist/src/agent/embedded/sqlite-hydrating-session-manager.js +0 -2
  152. package/dist/src/agent/external-tools/gateway-tools.js +6 -6
  153. package/dist/src/agent/mcp/connection-setup.js +2 -2
  154. package/dist/src/agent/memory/compaction-ledger.d.ts +1 -1
  155. package/dist/src/agent/memory/compaction-ledger.js +1 -1
  156. package/dist/src/agent/memory/compaction-promotion.js +1 -1
  157. package/dist/src/agent/memory/source-origin.js +1 -5
  158. package/dist/src/agent/memory/turn-provenance.js +1 -3
  159. package/dist/src/agent/memory/types.d.ts +1 -1
  160. package/dist/src/agent/messaging/command-handler.d.ts +0 -3
  161. package/dist/src/agent/messaging/command-handler.js +1 -4
  162. package/dist/src/agent/prompt/sections/behavior.js +2 -2
  163. package/dist/src/agent/prompt/sections/tooling.js +1 -5
  164. package/dist/src/agent/prompt/voice-presentation.d.ts +1 -1
  165. package/dist/src/agent/prompt/voice-presentation.js +1 -1
  166. package/dist/src/agent/service/direct-turn-helpers.js +1 -1
  167. package/dist/src/agent/service/process-direct-streaming.js +0 -6
  168. package/dist/src/agent/service.d.ts +0 -2
  169. package/dist/src/agent/service.js +0 -11
  170. package/dist/src/agent/service.types.d.ts +0 -2
  171. package/dist/src/agent/session/session-config-service.d.ts +0 -2
  172. package/dist/src/agent/session/session-config-service.js +1 -1
  173. package/dist/src/agent/session/session-inspector.d.ts +0 -1
  174. package/dist/src/agent/session/session-inspector.js +0 -1
  175. package/dist/src/agent/skills/required-env-vars.d.ts +1 -1
  176. package/dist/src/agent/skills/required-env-vars.js +1 -1
  177. package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
  178. package/dist/src/agent/tool-manuals/xopc-use.js +2 -5
  179. package/dist/src/agent/tools/automation-tool.js +1 -1
  180. package/dist/src/agent/tools/factory.d.ts +0 -3
  181. package/dist/src/agent/tools/factory.js +6 -9
  182. package/dist/src/agent/tools/index.d.ts +0 -2
  183. package/dist/src/agent/tools/index.js +1 -3
  184. package/dist/src/agent/tools/knowledge-memory-tool.d.ts +1 -0
  185. package/dist/src/agent/tools/knowledge-memory-tool.js +13 -4
  186. package/dist/src/agent/tools/personal-task-tool.js +8 -22
  187. package/dist/src/agent/tools/search/errors.js +2 -2
  188. package/dist/src/agent/tools/session-recall-tool.js +5 -1
  189. package/dist/src/agent/tools/user-context-tool.js +7 -1
  190. package/dist/src/agent/tools/xopc-use-tool.js +1 -1
  191. package/dist/src/agent-catalog/index.d.ts +0 -1
  192. package/dist/src/agent-catalog/index.js +1 -2
  193. package/dist/src/agent-catalog/repository.js +4 -0
  194. package/dist/src/agent-config/index.js +2 -2
  195. package/dist/src/agent-config/resolver.js +0 -6
  196. package/dist/src/agent-config/schema.d.ts +0 -16
  197. package/dist/src/agent-config/schema.js +2 -9
  198. package/dist/src/agent-matching/selection-repository.d.ts +1 -1
  199. package/dist/src/agent-matching/selection-repository.js +1 -1
  200. package/dist/src/agent-matching/service.d.ts +1 -2
  201. package/dist/src/agent-matching/service.js +3 -7
  202. package/dist/src/ai-assist/text-assist.d.ts +1 -1
  203. package/dist/src/ai-assist/text-assist.js +0 -72
  204. package/dist/src/automations/capabilities/write.d.ts +0 -40
  205. package/dist/src/automations/domain/types.d.ts +0 -15
  206. package/dist/src/automations/domain/validation.d.ts +0 -80
  207. package/dist/src/automations/domain/validation.js +0 -17
  208. package/dist/src/automations/draft/automation-draft-prompt.js +0 -3
  209. package/dist/src/automations/draft/automation-draft-validator.d.ts +0 -20
  210. package/dist/src/automations/draft/automation-draft-validator.js +0 -1
  211. package/dist/src/automations/events/event-catalog.js +0 -6
  212. package/dist/src/automations/service/action-executor.d.ts +0 -1
  213. package/dist/src/automations/service/action-executor.js +1 -110
  214. package/dist/src/automations/service/automation-service.js +0 -2
  215. package/dist/src/automations/storage/automation-run-repository.js +6 -7
  216. package/dist/src/backup/archive.js +1 -1
  217. package/dist/src/bootstrap/application-state.d.ts +2 -10
  218. package/dist/src/bootstrap/application-state.js +5 -18
  219. package/dist/src/channels/manager.d.ts +0 -2
  220. package/dist/src/channels/manager.js +0 -4
  221. package/dist/src/channels/pairing/index.d.ts +2 -1
  222. package/dist/src/channels/pairing/pairing-service.d.ts +0 -1
  223. package/dist/src/chat-commands/context.d.ts +0 -3
  224. package/dist/src/chat-commands/context.js +0 -5
  225. package/dist/src/chat-commands/index.d.ts +0 -1
  226. package/dist/src/chat-commands/index.js +1 -3
  227. package/dist/src/chat-commands/types.d.ts +0 -5
  228. package/dist/src/cli/command-manifest.js +1 -1
  229. package/dist/src/cli/commands/config.js +2 -10
  230. package/dist/src/cli/commands/doctor/checks/database-relations.js +0 -3
  231. package/dist/src/cli/commands/doctor/checks/database-schema.js +4 -25
  232. package/dist/src/cli/commands/gateway/run-foreground.js +1 -1
  233. package/dist/src/cli/commands/setup-shared/prompts.d.ts +2 -2
  234. package/dist/src/cli/commands/setup-shared/prompts.js +2 -2
  235. package/dist/src/cli/commands/tui-runner.js +2 -2
  236. package/dist/src/cli/extension-cli-register.js +1 -1
  237. package/dist/src/cli/index.d.ts +0 -1
  238. package/dist/src/cli/index.js +2 -2
  239. package/dist/src/cli/utils/init-workspace-core.js +8 -9
  240. package/dist/src/config/config-file.d.ts +6 -0
  241. package/dist/src/config/config-file.js +35 -0
  242. package/dist/src/config/index.js +2 -2
  243. package/dist/src/config/loader.d.ts +0 -1
  244. package/dist/src/config/loader.js +6 -17
  245. package/dist/src/config/paths.d.ts +1 -1
  246. package/dist/src/config/paths.js +1 -1
  247. package/dist/src/connectors/composio-catalog.js +1 -3
  248. package/dist/src/connectors/composio.js +1 -2
  249. package/dist/src/connectors/connected-source-ingestion.js +1 -1
  250. package/dist/src/connectors/connected-source-understanding.js +1 -1
  251. package/dist/src/connectors/learning-coordinator.js +1 -1
  252. package/dist/src/connectors/principal.js +1 -22
  253. package/dist/src/connectors/{workflow-preflight.d.ts → requirements-preflight.d.ts} +9 -8
  254. package/dist/src/connectors/{workflow-preflight.js → requirements-preflight.js} +2 -10
  255. package/dist/src/connectors/types.d.ts +1 -1
  256. package/dist/src/daemon/types.d.ts +0 -9
  257. package/dist/src/discussions/long-review.js +0 -11
  258. package/dist/src/endpoint-tools/policy.js +13 -14
  259. package/dist/src/extensions/agent-plugins/auth.js +1 -3
  260. package/dist/src/extensions/agent-plugins/formats.js +2 -4
  261. package/dist/src/extensions/agent-plugins/mcp-format.d.ts +1 -1
  262. package/dist/src/extensions/agent-plugins/mcp-format.js +2 -2
  263. package/dist/src/extensions/bundled-extension-activation.d.ts +0 -2
  264. package/dist/src/extensions/bundled-extension-activation.js +1 -3
  265. package/dist/src/extensions/install.js +1 -1
  266. package/dist/src/extensions/types/tui.d.ts +1 -2
  267. package/dist/src/gateway/agent-builtin-tools.d.ts +1 -7
  268. package/dist/src/gateway/agent-builtin-tools.js +0 -7
  269. package/dist/src/gateway/agents-admin.d.ts +0 -1
  270. package/dist/src/gateway/agents-admin.js +0 -1
  271. package/dist/src/gateway/global-defaults-admin.js +1 -1
  272. package/dist/src/gateway/hono/lib/config-payload.d.ts +0 -8
  273. package/dist/src/gateway/hono/lib/config-payload.js +1 -2
  274. package/dist/src/gateway/hono/lib/config-write-lock.d.ts +1 -1
  275. package/dist/src/gateway/hono/lib/config-write-lock.js +1 -1
  276. package/dist/src/gateway/hono/middleware/auth.js +2 -2
  277. package/dist/src/gateway/hono/routes/activity.js +0 -1
  278. package/dist/src/gateway/hono/routes/agents.js +2 -9
  279. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +0 -22
  280. package/dist/src/gateway/hono/routes/chat-model-config.d.ts +0 -1
  281. package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -3
  282. package/dist/src/gateway/hono/routes/config.js +2 -21
  283. package/dist/src/gateway/hono/routes/connectors.js +1 -1
  284. package/dist/src/gateway/hono/routes/context-sources.js +1 -1
  285. package/dist/src/gateway/hono/routes/devices.js +2 -2
  286. package/dist/src/gateway/hono/routes/home.js +3 -20
  287. package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -8
  288. package/dist/src/gateway/hono/routes/memory-learning.js +1 -1
  289. package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
  290. package/dist/src/gateway/hono/routes/projects.js +0 -16
  291. package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
  292. package/dist/src/gateway/hono/routes/sessions.js +0 -3
  293. package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
  294. package/dist/src/gateway/hono/routes/user-model.js +1 -1
  295. package/dist/src/gateway/index.js +1 -1
  296. package/dist/src/gateway/run-loop.js +2 -2
  297. package/dist/src/gateway/security/device-request-proof.js +1 -1
  298. package/dist/src/gateway/security/gateway-scopes.js +0 -1
  299. package/dist/src/gateway/service/active-execution.d.ts +1 -1
  300. package/dist/src/gateway/service/active-execution.js +1 -1
  301. package/dist/src/gateway/service/agent-runner.js +1 -1
  302. package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -1
  303. package/dist/src/gateway/service/sessions-api.d.ts +1 -2
  304. package/dist/src/gateway/service/sessions-api.js +1 -1
  305. package/dist/src/gateway/service/task-conversation-query-service.d.ts +0 -4
  306. package/dist/src/gateway/service/types.d.ts +2 -0
  307. package/dist/src/gateway/service.d.ts +1 -8
  308. package/dist/src/gateway/service.js +13 -60
  309. package/dist/src/history/ctx/format.js +1 -1
  310. package/dist/src/home-intelligence/capability-preflight.js +1 -1
  311. package/dist/src/infra/unhandled-rejections.js +2 -2
  312. package/dist/src/infra/update-runner.d.ts +1 -2
  313. package/dist/src/infra/update-runner.js +2 -2
  314. package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
  315. package/dist/src/knowledge/local-folder-adapter.js +2 -5
  316. package/dist/src/knowledge-memory/usage-policy.js +1 -1
  317. package/dist/src/local-apps/service.js +1 -1
  318. package/dist/src/memory-learning/forget-capture.js +3 -2
  319. package/dist/src/memory-learning/forgotten-history.d.ts +10 -0
  320. package/dist/src/memory-learning/forgotten-history.js +117 -13
  321. package/dist/src/memory-learning/owner-directive.d.ts +2 -0
  322. package/dist/src/memory-learning/owner-directive.js +10 -0
  323. package/dist/src/memory-learning/service.js +0 -2
  324. package/dist/src/memory-learning/source-learning.js +1 -1
  325. package/dist/src/memory-learning/task-receipts.js +1 -1
  326. package/dist/src/migrations/index.js +2 -2
  327. package/dist/src/migrations/runner.d.ts +1 -2
  328. package/dist/src/migrations/runner.js +2 -5
  329. package/dist/src/notes/service.js +3 -3
  330. package/dist/src/notes/types.d.ts +1 -2
  331. package/dist/src/personal-agent/communication.d.ts +0 -3
  332. package/dist/src/personal-agent/communication.js +1 -12
  333. package/dist/src/personal-agent/persona.d.ts +0 -4
  334. package/dist/src/personal-agent/persona.js +1 -5
  335. package/dist/src/personal-agent/proactivity/repository.js +2 -6
  336. package/dist/src/personal-agent/prompt-context.js +1 -1
  337. package/dist/src/personal-agent/prompts.d.ts +0 -3
  338. package/dist/src/personal-agent/prompts.js +7 -146
  339. package/dist/src/personal-agent/reply-composer.js +3 -3
  340. package/dist/src/personal-agent/reply-style.d.ts +1 -13
  341. package/dist/src/personal-agent/reply-style.js +3 -123
  342. package/dist/src/personal-agent/request-delivery.d.ts +1 -1
  343. package/dist/src/personal-agent/request-delivery.js +1 -1
  344. package/dist/src/personal-agent/request-service.js +2 -2
  345. package/dist/src/personal-agent/specialist-capabilities.js +0 -1
  346. package/dist/src/personal-agent/task-cancel.js +2 -1
  347. package/dist/src/platform/client.d.ts +0 -1
  348. package/dist/src/platform/contracts.d.ts +0 -1
  349. package/dist/src/platform/contracts.js +1 -4
  350. package/dist/src/projects/index.d.ts +0 -1
  351. package/dist/src/projects/index.js +1 -2
  352. package/dist/src/projects/project-loop.d.ts +2 -12
  353. package/dist/src/projects/project-loop.js +19 -42
  354. package/dist/src/projects/project-store.d.ts +0 -1
  355. package/dist/src/projects/project-store.js +0 -11
  356. package/dist/src/projects/types.d.ts +0 -6
  357. package/dist/src/providers/model-usage.js +0 -5
  358. package/dist/src/realtime/runtime.js +0 -1
  359. package/dist/src/routing/agent-session-key.js +1 -1
  360. package/dist/src/session/manager.js +1 -1
  361. package/dist/src/session/types.d.ts +2 -6
  362. package/dist/src/storage/sqlite/connection-wait-repository.js +0 -33
  363. package/dist/src/storage/sqlite/connection.js +2 -2
  364. package/dist/src/storage/sqlite/device-access-repository.d.ts +2 -2
  365. package/dist/src/storage/sqlite/device-access-repository.js +4 -8
  366. package/dist/src/storage/sqlite/home-attention-repository.d.ts +1 -1
  367. package/dist/src/storage/sqlite/index.d.ts +1 -3
  368. package/dist/src/storage/sqlite/index.js +4 -8
  369. package/dist/src/storage/sqlite/{migrations/conversation-backup.d.ts → offline-access.d.ts} +1 -4
  370. package/dist/src/storage/sqlite/{migrations/conversation-backup.js → offline-access.js} +6 -25
  371. package/dist/src/storage/sqlite/row-mappers.d.ts +0 -8
  372. package/dist/src/storage/sqlite/row-mappers.js +0 -8
  373. package/dist/src/storage/sqlite/{migrations/errors.d.ts → schema-errors.d.ts} +0 -6
  374. package/dist/src/storage/sqlite/schema-errors.js +28 -0
  375. package/dist/src/storage/sqlite/schema.d.ts +4 -5
  376. package/dist/src/storage/sqlite/schema.js +23 -19
  377. package/dist/src/storage/sqlite/schema.sql +1099 -427
  378. package/dist/src/storage/sqlite/session-identity-sql.js +1 -2
  379. package/dist/src/storage/sqlite/session-read-repository.d.ts +1 -1
  380. package/dist/src/storage/sqlite/session-read-repository.js +1 -2
  381. package/dist/src/storage/sqlite/session-repository.js +4 -33
  382. package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.js → windows-database-owners.js} +3 -3
  383. package/dist/src/tasks/attention-governor.d.ts +1 -0
  384. package/dist/src/tasks/attention-governor.js +2 -2
  385. package/dist/src/tasks/capabilities/management.d.ts +0 -1
  386. package/dist/src/tasks/capabilities/relations.d.ts +2 -2
  387. package/dist/src/tasks/execution-context.d.ts +1 -1
  388. package/dist/src/tasks/execution-context.js +0 -2
  389. package/dist/src/tasks/home-query-service.d.ts +2 -16
  390. package/dist/src/tasks/home-query-service.js +37 -67
  391. package/dist/src/tasks/index.d.ts +0 -1
  392. package/dist/src/tasks/index.js +1 -2
  393. package/dist/src/tasks/project-operating-view-service.js +0 -1
  394. package/dist/src/tasks/task-application-service.js +0 -5
  395. package/dist/src/tasks/task-repository.d.ts +1 -1
  396. package/dist/src/tasks/task-run-coordinator.js +4 -2
  397. package/dist/src/tui/backends/embedded-backend.d.ts +1 -4
  398. package/dist/src/tui/backends/embedded-backend.js +3 -59
  399. package/dist/src/tui/backends/gateway-realtime-backend.d.ts +1 -2
  400. package/dist/src/tui/backends/gateway-realtime-backend.js +1 -27
  401. package/dist/src/tui/components/chat-log.d.ts +0 -2
  402. package/dist/src/tui/components/chat-log.js +0 -18
  403. package/dist/src/tui/extension-host/runtime-context.js +0 -1
  404. package/dist/src/tui/tui-backend.d.ts +0 -15
  405. package/dist/src/tui/tui-command-formatters.d.ts +0 -3
  406. package/dist/src/tui/tui-command-formatters.js +1 -28
  407. package/dist/src/tui/tui-commands.d.ts +1 -14
  408. package/dist/src/tui/tui-commands.js +4 -89
  409. package/dist/src/tui/tui-startup-resources.js +0 -2
  410. package/dist/src/tui/tui-startup-text.js +2 -3
  411. package/dist/src/tui/tui.js +1 -49
  412. package/dist/src/user-context/trust-policy.js +1 -1
  413. package/dist/src/user-model/usage-policy.js +1 -1
  414. package/dist/src/utils/index.js +1 -1
  415. package/dist/src/utils/logger/index.js +1 -1
  416. package/dist/src/utils/logger.js +1 -1
  417. package/dist/src/voice/realtime/agentBroker.js +2 -3
  418. package/dist/src/voice/realtime/memory-context.js +2 -2
  419. package/dist/src/work-discovery/incremental-repository.js +1 -1
  420. package/dist/src/work-discovery/service.js +2 -2
  421. package/package.json +5 -6
  422. package/dist/extensions/feishu/src/workflow-progress.d.ts +0 -27
  423. package/dist/extensions/feishu/src/workflow-progress.js +0 -98
  424. package/dist/extensions/telegram/src/workflow-progress.d.ts +0 -24
  425. package/dist/extensions/telegram/src/workflow-progress.js +0 -72
  426. package/dist/extensions/weixin/src/workflow-progress.d.ts +0 -26
  427. package/dist/extensions/weixin/src/workflow-progress.js +0 -98
  428. package/dist/gateway/static/root/assets/agent-avatar-dicebear-ColV_Z1C.js +0 -1
  429. package/dist/gateway/static/root/assets/agent-defaults-settings-panel-rgRXzBCX.js +0 -1
  430. package/dist/gateway/static/root/assets/agents-C1rSl_yE.js +0 -77
  431. package/dist/gateway/static/root/assets/app-link-BV_eGr7l.js +0 -1
  432. package/dist/gateway/static/root/assets/app-management-settings-panel-B-Cl1lzt.js +0 -1
  433. package/dist/gateway/static/root/assets/apps-page-BfVMfjkC.js +0 -1
  434. package/dist/gateway/static/root/assets/automations-workspace-b7MTHd-X.js +0 -6
  435. package/dist/gateway/static/root/assets/browser-automations-page-DMqDOJgO.js +0 -3
  436. package/dist/gateway/static/root/assets/browser-settings-page-KZStwhX7.js +0 -3
  437. package/dist/gateway/static/root/assets/capabilities-CD6PzNK7.js +0 -1
  438. package/dist/gateway/static/root/assets/capabilities-page-DeJuO2rf.js +0 -2
  439. package/dist/gateway/static/root/assets/capabilities-settings-panel-DPxL_3Km.js +0 -8
  440. package/dist/gateway/static/root/assets/channels-Cp4F9zPz.js +0 -1
  441. package/dist/gateway/static/root/assets/code-editor-CXIH8jQw.js +0 -1
  442. package/dist/gateway/static/root/assets/computer-settings-page-BXhmUWbA.js +0 -1
  443. package/dist/gateway/static/root/assets/connector-service-page-B1oJCj74.js +0 -1
  444. package/dist/gateway/static/root/assets/connectors-page-Da_M7h3m.js +0 -1
  445. package/dist/gateway/static/root/assets/dependency-picker-BfWUD3LG.js +0 -1
  446. package/dist/gateway/static/root/assets/desktop-pet-CPEi55Vt.js +0 -1
  447. package/dist/gateway/static/root/assets/desktop-pet-settings-CmQ_H-nM.js +0 -1
  448. package/dist/gateway/static/root/assets/device-pairing-wizard-BeTjXc3C.js +0 -1
  449. package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
  450. package/dist/gateway/static/root/assets/file-archive-DanfQJNe.js +0 -1
  451. package/dist/gateway/static/root/assets/file-braces-BoAMI_k9.js +0 -1
  452. package/dist/gateway/static/root/assets/gateway-realtime-CP6L2jIR.js +0 -1
  453. package/dist/gateway/static/root/assets/gateway-realtime-store-yXB4a40_.js +0 -1
  454. package/dist/gateway/static/root/assets/gateway-settings-CIdEroWr.js +0 -1
  455. package/dist/gateway/static/root/assets/highlight-code-BH65IIbJ.js +0 -1
  456. package/dist/gateway/static/root/assets/home-page-BSbYrVda.js +0 -2
  457. package/dist/gateway/static/root/assets/image-generation-api-BfPYnMoc.js +0 -1
  458. package/dist/gateway/static/root/assets/imports-page-DYSOfHfw.js +0 -1
  459. package/dist/gateway/static/root/assets/index-D2hEKnTM.js +0 -267
  460. package/dist/gateway/static/root/assets/index-SmKNPEmJ.css +0 -1
  461. package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-BwsGM6Yd.js +0 -1
  462. package/dist/gateway/static/root/assets/languages-BFe8nIOO.js +0 -2
  463. package/dist/gateway/static/root/assets/local-app-workbench-page-K6UR6cAx.js +0 -1
  464. package/dist/gateway/static/root/assets/local-apps-page-gkdwtjDE.js +0 -1
  465. package/dist/gateway/static/root/assets/locale-store-D_migb9R.js +0 -1
  466. package/dist/gateway/static/root/assets/logs-page-BAQNYk0e.js +0 -2
  467. package/dist/gateway/static/root/assets/management-settings-CMVRLGox.js +0 -1
  468. package/dist/gateway/static/root/assets/markdown-editor-BhBJANcx.js +0 -1
  469. package/dist/gateway/static/root/assets/markdown-view-Ljt0bhfF.js +0 -324
  470. package/dist/gateway/static/root/assets/markdown-view-ixUWAmoy.css +0 -1
  471. package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Cx0bXBqu.js +0 -1
  472. package/dist/gateway/static/root/assets/mermaid-render-604gISVe.js +0 -134
  473. package/dist/gateway/static/root/assets/messages-D__oW2yE.js +0 -3
  474. package/dist/gateway/static/root/assets/note-detail-panel-1GCqp26U.js +0 -5
  475. package/dist/gateway/static/root/assets/note-image-lightbox-B7RA-WsY.js +0 -1
  476. package/dist/gateway/static/root/assets/notes-page-DnjlEdzM.js +0 -8
  477. package/dist/gateway/static/root/assets/page-context-capture-button-BAwI_3uh.js +0 -1
  478. package/dist/gateway/static/root/assets/personal-page-XoLrcR0U.js +0 -1
  479. package/dist/gateway/static/root/assets/personal-settings-panel-DzubCRqj.js +0 -1
  480. package/dist/gateway/static/root/assets/plugin-details-dialog-BjzIp3T5.js +0 -1
  481. package/dist/gateway/static/root/assets/plus-Q2yW6OE7.js +0 -1
  482. package/dist/gateway/static/root/assets/preview-open-alternatives-2YjwlRHu.js +0 -1
  483. package/dist/gateway/static/root/assets/product-delivery-DwmnNJvk.js +0 -1
  484. package/dist/gateway/static/root/assets/product-preview-content-D7wLwrqj.js +0 -1
  485. package/dist/gateway/static/root/assets/project-detail-page-1ueRCmXg.js +0 -1
  486. package/dist/gateway/static/root/assets/projects-page-CDQycMPo.js +0 -1
  487. package/dist/gateway/static/root/assets/remote-access-hub-YvVmZA4K.js +0 -1
  488. package/dist/gateway/static/root/assets/runtime-tools-api-CmEWVrOg.js +0 -5
  489. package/dist/gateway/static/root/assets/session-api-aQLptIs9.js +0 -1
  490. package/dist/gateway/static/root/assets/sessions-page-B3rPljgr.js +0 -1
  491. package/dist/gateway/static/root/assets/settings-advanced-gate-Ch20Ptzp.js +0 -1
  492. package/dist/gateway/static/root/assets/setup-status-panel-L1HHrvzi.js +0 -1
  493. package/dist/gateway/static/root/assets/share-preview-page-C4lC0W3d.js +0 -2
  494. package/dist/gateway/static/root/assets/shares-settings-DtHZ9z5K.js +0 -1
  495. package/dist/gateway/static/root/assets/skill-reload-api-Drg356Pb.js +0 -1
  496. package/dist/gateway/static/root/assets/skills-page-XhCLHKlK.js +0 -2
  497. package/dist/gateway/static/root/assets/source-workspace-editor-DunRD1gY.js +0 -1
  498. package/dist/gateway/static/root/assets/style-DTLpCnuA.js +0 -7
  499. package/dist/gateway/static/root/assets/system-settings-panel-bSogz4S-.js +0 -1
  500. package/dist/gateway/static/root/assets/tab-completion-input.utils-BP3NH_du.js +0 -1
  501. package/dist/gateway/static/root/assets/task-detail-page-CSv2x4q-.js +0 -2
  502. package/dist/gateway/static/root/assets/task-expandable-content-4s_FTl-9.js +0 -1
  503. package/dist/gateway/static/root/assets/tasks-B4bZpO6O.js +0 -1
  504. package/dist/gateway/static/root/assets/tracing-settings-page-CZ5XLQmX.js +0 -1
  505. package/dist/gateway/static/root/assets/user-model-page-BD7WvhI0.js +0 -2
  506. package/dist/gateway/static/root/assets/work-discovery-overlay-CDJp2_l2.js +0 -1
  507. package/dist/gateway/static/root/assets/workflow-run-setup-panel-CR4fRhZZ.js +0 -3
  508. package/dist/gateway/static/root/assets/workflows-page-BeJw5liC.js +0 -6
  509. package/dist/gateway/static/root/assets/x-B_N4OPjy.js +0 -1
  510. package/dist/gateway/static/root/assets/xml-_d7dTN2Q.js +0 -3
  511. package/dist/src/agent/embedded/session-manager-init.d.ts +0 -4
  512. package/dist/src/agent/embedded/session-manager-init.js +0 -48
  513. package/dist/src/agent/tools/workflow-manage-tool.d.ts +0 -2
  514. package/dist/src/agent/tools/workflow-manage-tool.js +0 -225
  515. package/dist/src/agent/tools/workflow-tool.d.ts +0 -20
  516. package/dist/src/agent/tools/workflow-tool.js +0 -155
  517. package/dist/src/agent/workflow/agent-progress.d.ts +0 -5
  518. package/dist/src/agent/workflow/agent-progress.js +0 -65
  519. package/dist/src/agent/workflow/builtins/index.d.ts +0 -2
  520. package/dist/src/agent/workflow/builtins/index.js +0 -374
  521. package/dist/src/agent/workflow/catalog.d.ts +0 -52
  522. package/dist/src/agent/workflow/catalog.js +0 -150
  523. package/dist/src/agent/workflow/channel-capability.d.ts +0 -76
  524. package/dist/src/agent/workflow/channel-capability.js +0 -1
  525. package/dist/src/agent/workflow/index.d.ts +0 -10
  526. package/dist/src/agent/workflow/index.js +0 -9
  527. package/dist/src/agent/workflow/progress-broker.d.ts +0 -80
  528. package/dist/src/agent/workflow/progress-broker.js +0 -261
  529. package/dist/src/agent/workflow/snapshot-empty.d.ts +0 -2
  530. package/dist/src/agent/workflow/snapshot-empty.js +0 -17
  531. package/dist/src/agent/workflow/snapshot.d.ts +0 -28
  532. package/dist/src/agent/workflow/snapshot.js +0 -267
  533. package/dist/src/agent/workflow/step-labels.d.ts +0 -8
  534. package/dist/src/agent/workflow/step-labels.js +0 -50
  535. package/dist/src/agent/workflow/structured-output-tool.d.ts +0 -33
  536. package/dist/src/agent/workflow/structured-output-tool.js +0 -56
  537. package/dist/src/agent/workflow/subagent-runner.d.ts +0 -46
  538. package/dist/src/agent/workflow/subagent-runner.js +0 -221
  539. package/dist/src/agent/workflow/types.d.ts +0 -252
  540. package/dist/src/agent/workflow/types.js +0 -1
  541. package/dist/src/agent/workflow/workflow-child-tools.d.ts +0 -4
  542. package/dist/src/agent/workflow/workflow-child-tools.js +0 -38
  543. package/dist/src/agent-catalog/migrations/identity-markdown-cutover.d.ts +0 -5
  544. package/dist/src/agent-catalog/migrations/identity-markdown-cutover.js +0 -94
  545. package/dist/src/agent-catalog/migrations/legacy-config-cutover.d.ts +0 -11
  546. package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +0 -194
  547. package/dist/src/chat-commands/builtins/workflow.d.ts +0 -18
  548. package/dist/src/chat-commands/builtins/workflow.js +0 -249
  549. package/dist/src/gateway/gateway-workflow-host.types.d.ts +0 -23
  550. package/dist/src/gateway/gateway-workflow-host.types.js +0 -1
  551. package/dist/src/gateway/hono/routes/workflows.d.ts +0 -3
  552. package/dist/src/gateway/hono/routes/workflows.js +0 -572
  553. package/dist/src/knowledge-memory/repair-evidence.d.ts +0 -2
  554. package/dist/src/knowledge-memory/repair-evidence.js +0 -57
  555. package/dist/src/migrations/cloud-public-models.d.ts +0 -7
  556. package/dist/src/migrations/cloud-public-models.js +0 -157
  557. package/dist/src/migrations/memory-config.d.ts +0 -2
  558. package/dist/src/migrations/memory-config.js +0 -76
  559. package/dist/src/migrations/retired-local-stt.d.ts +0 -2
  560. package/dist/src/migrations/retired-local-stt.js +0 -52
  561. package/dist/src/projects/workflow-bind.d.ts +0 -1
  562. package/dist/src/projects/workflow-bind.js +0 -15
  563. package/dist/src/storage/sqlite/migrations/218_core_relation_indexes.sql +0 -26
  564. package/dist/src/storage/sqlite/migrations/219_json_contracts.sql +0 -123
  565. package/dist/src/storage/sqlite/migrations/220_normalize_timestamps.sql +0 -339
  566. package/dist/src/storage/sqlite/migrations/221_ai_usage_retention_index.sql +0 -2
  567. package/dist/src/storage/sqlite/migrations/222_session_config_authority.sql +0 -13
  568. package/dist/src/storage/sqlite/migrations/223_session_creation_receipts.sql +0 -59
  569. package/dist/src/storage/sqlite/migrations/224_task_origin_links.sql +0 -8
  570. package/dist/src/storage/sqlite/migrations/225_task_collaboration.sql +0 -32
  571. package/dist/src/storage/sqlite/migrations/226_task_main_updates.sql +0 -9
  572. package/dist/src/storage/sqlite/migrations/227_task_main_update_decisions.sql +0 -8
  573. package/dist/src/storage/sqlite/migrations/228_task_main_agent_links.sql +0 -14
  574. package/dist/src/storage/sqlite/migrations/229_task_criterion_reviews.sql +0 -12
  575. package/dist/src/storage/sqlite/migrations/230_personal_agent_onboarding.sql +0 -8
  576. package/dist/src/storage/sqlite/migrations/231_task_result_deliveries.sql +0 -32
  577. package/dist/src/storage/sqlite/migrations/232_personal_requests.sql +0 -28
  578. package/dist/src/storage/sqlite/migrations/233_observability_usage_links.sql +0 -3
  579. package/dist/src/storage/sqlite/migrations/234_task_result_reply.sql +0 -14
  580. package/dist/src/storage/sqlite/migrations/235_personal_conversation_priority.sql +0 -3
  581. package/dist/src/storage/sqlite/migrations/236_personal_proactivity.sql +0 -53
  582. package/dist/src/storage/sqlite/migrations/237_personal_strategy_versions.sql +0 -18
  583. package/dist/src/storage/sqlite/migrations/238_browser_record_replay.sql +0 -45
  584. package/dist/src/storage/sqlite/migrations/239_clarification_notifications.sql +0 -26
  585. package/dist/src/storage/sqlite/migrations/240_device_settings.sql +0 -5
  586. package/dist/src/storage/sqlite/migrations/241_device_grant_audit.sql +0 -13
  587. package/dist/src/storage/sqlite/migrations/242_cloud_usage_receipts.sql +0 -5
  588. package/dist/src/storage/sqlite/migrations/243_voice_opening_greetings.sql +0 -12
  589. package/dist/src/storage/sqlite/migrations/244_device_request_proofs.sql +0 -8
  590. package/dist/src/storage/sqlite/migrations/245_memory_learning.sql +0 -125
  591. package/dist/src/storage/sqlite/migrations/246_personal_session_thinking.sql +0 -22
  592. package/dist/src/storage/sqlite/migrations/247_agent_selection_records.sql +0 -32
  593. package/dist/src/storage/sqlite/migrations/248_next_turn_suggestions.sql +0 -20
  594. package/dist/src/storage/sqlite/migrations/249_task_allocations.sql +0 -17
  595. package/dist/src/storage/sqlite/migrations/250_research_checkpoints.sql +0 -15
  596. package/dist/src/storage/sqlite/migrations/251_personal_result_reads.sql +0 -40
  597. package/dist/src/storage/sqlite/migrations/252_task_work_revisions.sql +0 -15
  598. package/dist/src/storage/sqlite/migrations/253_discussion_processing_recovery.sql +0 -20
  599. package/dist/src/storage/sqlite/migrations/254_discussion_annotations.sql +0 -17
  600. package/dist/src/storage/sqlite/migrations/255_discussion_chapter_progress.sql +0 -10
  601. package/dist/src/storage/sqlite/migrations/256_task_main_update_retries.sql +0 -21
  602. package/dist/src/storage/sqlite/migrations/257_session_composer_history.sql +0 -11
  603. package/dist/src/storage/sqlite/migrations/258_task_phase_changes.sql +0 -20
  604. package/dist/src/storage/sqlite/migrations/259_personal_default_style.sql +0 -10
  605. package/dist/src/storage/sqlite/migrations/discover.d.ts +0 -4
  606. package/dist/src/storage/sqlite/migrations/discover.js +0 -40
  607. package/dist/src/storage/sqlite/migrations/errors.js +0 -40
  608. package/dist/src/storage/sqlite/migrations/runner.d.ts +0 -22
  609. package/dist/src/storage/sqlite/migrations/runner.js +0 -112
  610. package/dist/src/storage/sqlite/migrations/types.d.ts +0 -12
  611. package/dist/src/storage/sqlite/migrations/types.js +0 -1
  612. package/dist/src/tasks/task-workflow-coordinator.d.ts +0 -5
  613. package/dist/src/tasks/task-workflow-coordinator.js +0 -55
  614. package/dist/src/tui/tui-workflow-slash.d.ts +0 -29
  615. package/dist/src/tui/tui-workflow-slash.js +0 -58
  616. package/dist/src/workflows/authoring/index.d.ts +0 -2
  617. package/dist/src/workflows/authoring/index.js +0 -3
  618. package/dist/src/workflows/authoring/workflow-draft-defaults.d.ts +0 -3
  619. package/dist/src/workflows/authoring/workflow-draft-defaults.js +0 -63
  620. package/dist/src/workflows/authoring/workflow-draft-store.d.ts +0 -29
  621. package/dist/src/workflows/authoring/workflow-draft-store.js +0 -52
  622. package/dist/src/workflows/context/workflow-context-snapshot-repository.d.ts +0 -21
  623. package/dist/src/workflows/context/workflow-context-snapshot-repository.js +0 -41
  624. package/dist/src/workflows/context/workflow-context.d.ts +0 -18
  625. package/dist/src/workflows/context/workflow-context.js +0 -164
  626. package/dist/src/workflows/domain/command.d.ts +0 -19
  627. package/dist/src/workflows/domain/command.js +0 -1
  628. package/dist/src/workflows/domain/definition-utils.d.ts +0 -18
  629. package/dist/src/workflows/domain/definition-utils.js +0 -90
  630. package/dist/src/workflows/domain/definition.d.ts +0 -164
  631. package/dist/src/workflows/domain/definition.js +0 -1
  632. package/dist/src/workflows/domain/event.d.ts +0 -88
  633. package/dist/src/workflows/domain/event.js +0 -1
  634. package/dist/src/workflows/domain/index.d.ts +0 -8
  635. package/dist/src/workflows/domain/index.js +0 -5
  636. package/dist/src/workflows/domain/result.d.ts +0 -68
  637. package/dist/src/workflows/domain/result.js +0 -1
  638. package/dist/src/workflows/domain/run.d.ts +0 -257
  639. package/dist/src/workflows/domain/run.js +0 -12
  640. package/dist/src/workflows/domain/schema-validation.d.ts +0 -8
  641. package/dist/src/workflows/domain/schema-validation.js +0 -26
  642. package/dist/src/workflows/domain/validation.d.ts +0 -22
  643. package/dist/src/workflows/domain/validation.js +0 -318
  644. package/dist/src/workflows/engine/index.d.ts +0 -2
  645. package/dist/src/workflows/engine/index.js +0 -3
  646. package/dist/src/workflows/engine/projector.d.ts +0 -3
  647. package/dist/src/workflows/engine/projector.js +0 -276
  648. package/dist/src/workflows/engine/workflow-engine.d.ts +0 -88
  649. package/dist/src/workflows/engine/workflow-engine.js +0 -719
  650. package/dist/src/workflows/index.d.ts +0 -11
  651. package/dist/src/workflows/index.js +0 -19
  652. package/dist/src/workflows/project-presets/project-workflow-preset-repository.d.ts +0 -20
  653. package/dist/src/workflows/project-presets/project-workflow-preset-repository.js +0 -39
  654. package/dist/src/workflows/registry/catalog-workflow-definition-registry.d.ts +0 -9
  655. package/dist/src/workflows/registry/catalog-workflow-definition-registry.js +0 -30
  656. package/dist/src/workflows/registry/index.d.ts +0 -2
  657. package/dist/src/workflows/registry/index.js +0 -2
  658. package/dist/src/workflows/registry/workflow-definition-registry.d.ts +0 -15
  659. package/dist/src/workflows/registry/workflow-definition-registry.js +0 -1
  660. package/dist/src/workflows/runtime/graph-workflow-runtime.d.ts +0 -10
  661. package/dist/src/workflows/runtime/graph-workflow-runtime.js +0 -289
  662. package/dist/src/workflows/runtime/index.d.ts +0 -2
  663. package/dist/src/workflows/runtime/index.js +0 -2
  664. package/dist/src/workflows/runtime/workflow-runtime-port.d.ts +0 -13
  665. package/dist/src/workflows/runtime/workflow-runtime-port.js +0 -1
  666. package/dist/src/workflows/service/run-view-to-snapshot.d.ts +0 -4
  667. package/dist/src/workflows/service/run-view-to-snapshot.js +0 -64
  668. package/dist/src/workflows/service/workflow-run-service.d.ts +0 -63
  669. package/dist/src/workflows/service/workflow-run-service.js +0 -892
  670. package/dist/src/workflows/service/workflow-run-service.types.d.ts +0 -62
  671. package/dist/src/workflows/service/workflow-run-service.types.js +0 -1
  672. package/dist/src/workflows/service/workflow-session-bridge.d.ts +0 -33
  673. package/dist/src/workflows/service/workflow-session-bridge.js +0 -244
  674. package/dist/src/workflows/service/workflow-session-key.d.ts +0 -3
  675. package/dist/src/workflows/service/workflow-session-key.js +0 -19
  676. package/dist/src/workflows/service/workflow-writeback-service.d.ts +0 -9
  677. package/dist/src/workflows/service/workflow-writeback-service.js +0 -107
  678. package/dist/src/workflows/store/event-store.d.ts +0 -16
  679. package/dist/src/workflows/store/event-store.js +0 -38
  680. package/dist/src/workflows/store/paths.d.ts +0 -5
  681. package/dist/src/workflows/store/paths.js +0 -18
  682. package/dist/src/workflows/store/run-index-store.d.ts +0 -9
  683. package/dist/src/workflows/store/run-index-store.js +0 -64
  684. package/dist/src/workflows/store/run-store.d.ts +0 -16
  685. package/dist/src/workflows/store/run-store.js +0 -40
  686. package/skills/engineering/workflow-authoring/SKILL.md +0 -32
  687. /package/dist/gateway/static/root/assets/{style-DLioOiRN.css → project-detail-page-DLioOiRN.css} +0 -0
  688. /package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.d.ts → windows-database-owners.d.ts} +0 -0
@@ -71,7 +71,7 @@ var AgentSelectionRepository = class {
71
71
  personal_request_id, decision_group_id, previous_selection_id, idempotency_key, request_hash,
72
72
  selected_agent_id, selected_agent_revision, matcher_version, catalog_revision, requirements_json,
73
73
  selected_profile_json, assessment_json, candidates_json, selection_source, reason_source, selection_reason, status, reason_code, created_at, updated_at)
74
- VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`).run(id, input.conversationId, readCurrentTranscriptId(db, input.conversationId) ?? null, getSessionInputState(input.conversationId).activeInputId ?? null, input.requestId ?? null, previous?.decision_group_id ?? id, previous?.id ?? null, input.key, input.requestHash, input.assessment.id, input.assessment.revision ?? null, input.assessment.matcherVersion, input.assessment.catalogRevision, JSON.stringify(input.requirements), input.assessment.specialistProfile ? JSON.stringify(input.assessment.specialistProfile) : null, JSON.stringify(input.assessment), input.candidates ? JSON.stringify(input.candidates.slice(0, 10)) : null, input.source, input.reasonSource ?? (input.reason ? "model" : "system"), (input.reason ?? "Legacy delegation; selected Agent revalidated").slice(0, 500), input.status, input.status === "rejected" ? input.assessment.checks.find((check) => check.state === "blocked" || check.state === "unknown")?.reasonCode ?? "unavailable" : null, now, now);
74
+ VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`).run(id, input.conversationId, readCurrentTranscriptId(db, input.conversationId) ?? null, getSessionInputState(input.conversationId).activeInputId ?? null, input.requestId ?? null, previous?.decision_group_id ?? id, previous?.id ?? null, input.key, input.requestHash, input.assessment.id, input.assessment.revision ?? null, input.assessment.matcherVersion, input.assessment.catalogRevision, JSON.stringify(input.requirements), input.assessment.specialistProfile ? JSON.stringify(input.assessment.specialistProfile) : null, JSON.stringify(input.assessment), input.candidates ? JSON.stringify(input.candidates.slice(0, 10)) : null, input.source, input.reasonSource ?? (input.reason ? "model" : "system"), (input.reason ?? "Selected Agent validated").slice(0, 500), input.status, input.status === "rejected" ? input.assessment.checks.find((check) => check.state === "blocked" || check.state === "unknown")?.reasonCode ?? "unavailable" : null, now, now);
75
75
  return this.find(input.conversationId, input.key);
76
76
  }
77
77
  link(id, result) {
@@ -19,7 +19,6 @@ export interface MatchingContext {
19
19
  unavailableReason?: string | null;
20
20
  }>;
21
21
  };
22
- legacyToolPolicyOnly?: boolean;
23
22
  getAgentToolAvailability?: (agentId: string, tool: string) => AvailabilityCheck;
24
23
  checkConnector?: (agentId: string, connector: NonNullable<SpecialistTaskRequirements['connector']>) => AvailabilityCheck;
25
24
  }
@@ -28,7 +27,7 @@ export interface SpecialistAssessment {
28
27
  revision?: number;
29
28
  name: string;
30
29
  description: string;
31
- profileSource: 'declared' | 'legacy';
30
+ profileSource: 'declared' | 'absent';
32
31
  specialistProfile?: EffectiveAgentConfig['specialistProfile'];
33
32
  availableTools: string[];
34
33
  model: {
@@ -49,11 +49,7 @@ function assessSpecialist(agentId, input, context) {
49
49
  reasonCode: "tool_verification_failed"
50
50
  };
51
51
  }
52
- check ??= context.legacyToolPolicyOnly ? {
53
- condition: `tool:${tool}`,
54
- state: availableTools.includes(tool) ? "configured" : "blocked",
55
- reasonCode: "legacy_tool_policy_only"
56
- } : {
52
+ check ??= {
57
53
  condition: `tool:${tool}`,
58
54
  state: "unknown",
59
55
  reasonCode: "tool_configured_registration_unverified"
@@ -124,7 +120,7 @@ function assessSpecialist(agentId, input, context) {
124
120
  revision: agent?.revision,
125
121
  name: agent?.profile?.name ?? agentId,
126
122
  description: (agent?.profile?.description ?? "").slice(0, 300),
127
- profileSource: profile ? "declared" : "legacy",
123
+ profileSource: profile ? "declared" : "absent",
128
124
  ...profile ? { specialistProfile: profile } : {},
129
125
  availableTools,
130
126
  model,
@@ -185,7 +181,7 @@ function summarizeSpecialist(config, context) {
185
181
  taskTypes: config.specialistProfile.taskTypes,
186
182
  outputKinds: config.specialistProfile.outputKinds,
187
183
  specialties: config.specialistProfile.specialties.slice(0, 2)
188
- } : { profileSource: "legacy" }
184
+ } : { profileSource: "absent" }
189
185
  };
190
186
  }
191
187
  //#endregion
@@ -3,7 +3,7 @@ import { resolveModel } from '../providers/index.js';
3
3
  import { isLocalModelBaseUrl } from '../providers/model-call.js';
4
4
  export type TextAssistIntent = 'improve' | 'expand' | 'shorten' | 'fix';
5
5
  export type TextAssistFormat = 'markdown' | 'plain';
6
- export type TextAssistScenario = 'generic.text' | 'cron.message' | 'cron.workflowGoal' | 'workflow.arg' | 'workflow.goal' | 'automation.instruction' | 'automation.workflowGoal' | 'automation.workflowInput';
6
+ export type TextAssistScenario = 'generic.text' | 'cron.message' | 'automation.instruction';
7
7
  export interface TextAssistRequest {
8
8
  scenario?: TextAssistScenario | string;
9
9
  intent?: TextAssistIntent;
@@ -36,48 +36,6 @@ const SCENARIOS = {
36
36
  "Do not add unsupported delivery channels, tools, or external facts."
37
37
  ]
38
38
  },
39
- "cron.workflowGoal": {
40
- id: "cron.workflowGoal",
41
- system: "You rewrite goals for workflow runs triggered by cron jobs. The workflow already defines the procedure; the field should define the desired task.",
42
- userGuidance: [
43
- "Make the goal concrete, bounded, and easy to verify.",
44
- "Include success criteria and important constraints when they are implied by the input or context.",
45
- "Avoid detailed step-by-step instructions unless the user already provided them as constraints."
46
- ],
47
- outputRules: [
48
- "Preserve workflow names, IDs, argument values, links, file paths, variables, and factual constraints.",
49
- "Do not invent business goals, external facts, or workflow capabilities.",
50
- "If the input is empty, draft a goal from the workflow description and cron context."
51
- ]
52
- },
53
- "workflow.arg": {
54
- id: "workflow.arg",
55
- system: "You improve a single workflow argument value. The argument is one input field, not the whole workflow goal.",
56
- userGuidance: [
57
- "Improve only this argument value according to its label and workflow context.",
58
- "Make the value clearer, better structured, and easier for the workflow to consume.",
59
- "Do not rewrite it as an overall goal unless the field label says it is a goal."
60
- ],
61
- outputRules: [
62
- "Preserve names, IDs, links, file paths, variables, placeholders, and factual constraints.",
63
- "Do not alter other workflow arguments.",
64
- "If the input is empty, draft a concise value only when the context gives enough signal."
65
- ]
66
- },
67
- "workflow.goal": {
68
- id: "workflow.goal",
69
- system: "You rewrite goals for workflow runs started manually by a user. The workflow already defines the procedure; the goal defines the desired task for this run.",
70
- userGuidance: [
71
- "Make the goal concrete, bounded, and easy to verify.",
72
- "Include success criteria and important constraints when implied by the input or workflow context.",
73
- "Avoid step-by-step instructions unless the user already provided them as constraints."
74
- ],
75
- outputRules: [
76
- "Preserve workflow names, IDs, argument values, links, file paths, variables, and factual constraints.",
77
- "Do not invent workflow capabilities, external facts, or hidden state.",
78
- "If the input is empty, draft a goal from the workflow description and current inputs."
79
- ]
80
- },
81
39
  "automation.instruction": {
82
40
  id: "automation.instruction",
83
41
  system: "You rewrite instructions for an automation that will run an AI agent when its trigger fires.",
@@ -91,34 +49,6 @@ const SCENARIOS = {
91
49
  "Do not invent tools, credentials, channels, or external facts.",
92
50
  "If the input is empty, draft an instruction only from the provided automation context."
93
51
  ]
94
- },
95
- "automation.workflowGoal": {
96
- id: "automation.workflowGoal",
97
- system: "You rewrite goals for workflow runs triggered by automations. The workflow defines the procedure; the goal defines the desired task.",
98
- userGuidance: [
99
- "Make the goal concrete, bounded, and easy to verify after the run.",
100
- "Include success criteria and important constraints when implied by the input or context.",
101
- "Respect the automation trigger; do not restate it unless it changes what the workflow should produce."
102
- ],
103
- outputRules: [
104
- "Preserve workflow names, IDs, argument values, links, file paths, variables, and factual constraints.",
105
- "Do not invent workflow capabilities, business goals, external facts, or hidden state.",
106
- "If the input is empty, draft a goal from the workflow description and automation context."
107
- ]
108
- },
109
- "automation.workflowInput": {
110
- id: "automation.workflowInput",
111
- system: "You improve one structured workflow input field for an automation-triggered workflow run.",
112
- userGuidance: [
113
- "Improve only this field value according to its schema, label, and workflow context.",
114
- "Make the value clear, structured, and easy for the workflow to consume.",
115
- "Avoid turning a field value into an overall goal unless the schema says the field is a goal."
116
- ],
117
- outputRules: [
118
- "Preserve names, IDs, links, file paths, variables, placeholders, and factual constraints.",
119
- "Return only the field value, not JSON, commentary, or surrounding labels.",
120
- "Do not alter other workflow inputs."
121
- ]
122
52
  }
123
53
  };
124
54
  function sanitizeOutput(text, max) {
@@ -161,8 +91,6 @@ function scenarioFromRequest(request) {
161
91
  if (requested && requested in SCENARIOS) return SCENARIOS[requested];
162
92
  const fieldId = request.field?.id;
163
93
  if (fieldId === "cron.message") return SCENARIOS["cron.message"];
164
- if (fieldId === "workflow.goal") return SCENARIOS["cron.workflowGoal"];
165
- if (fieldId?.startsWith("workflow.arg.")) return SCENARIOS["workflow.arg"];
166
94
  if (requested) log.warn({
167
95
  scenario: requested,
168
96
  fieldId
@@ -13,21 +13,6 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
13
13
  workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
14
14
  model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
15
15
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
16
- }, z.core.$strict>, z.ZodObject<{
17
- kind: z.ZodLiteral<"workflow">;
18
- workflowId: z.ZodString;
19
- agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
20
- input: z.ZodOptional<z.ZodUnknown>;
21
- inputEnvelope: z.ZodOptional<z.ZodObject<{
22
- payload: z.ZodUnknown;
23
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
24
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
25
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
- }, z.core.$strict>>;
27
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
28
- concurrency: z.ZodOptional<z.ZodNumber>;
29
- maxSubagents: z.ZodOptional<z.ZodNumber>;
30
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
31
16
  }, z.core.$strict>, z.ZodObject<{
32
17
  kind: z.ZodLiteral<"browser_automation">;
33
18
  automationId: z.ZodString;
@@ -61,11 +46,6 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
61
46
  executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
47
  kind: z.ZodLiteral<"agent">;
63
48
  agentId: z.ZodString;
64
- }, z.core.$strip>, z.ZodObject<{
65
- kind: z.ZodLiteral<"workflow">;
66
- workflowId: z.ZodString;
67
- workflowVersion: z.ZodOptional<z.ZodString>;
68
- input: z.ZodOptional<z.ZodUnknown>;
69
49
  }, z.core.$strip>, z.ZodObject<{
70
50
  kind: z.ZodLiteral<"human">;
71
51
  actorId: z.ZodString;
@@ -223,21 +203,6 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
223
203
  workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
224
204
  model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
225
205
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
226
- }, z.core.$strict>, z.ZodObject<{
227
- kind: z.ZodLiteral<"workflow">;
228
- workflowId: z.ZodString;
229
- agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
230
- input: z.ZodOptional<z.ZodUnknown>;
231
- inputEnvelope: z.ZodOptional<z.ZodObject<{
232
- payload: z.ZodUnknown;
233
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
234
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
235
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
236
- }, z.core.$strict>>;
237
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
238
- concurrency: z.ZodOptional<z.ZodNumber>;
239
- maxSubagents: z.ZodOptional<z.ZodNumber>;
240
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
241
206
  }, z.core.$strict>, z.ZodObject<{
242
207
  kind: z.ZodLiteral<"browser_automation">;
243
208
  automationId: z.ZodString;
@@ -271,11 +236,6 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
271
236
  executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
272
237
  kind: z.ZodLiteral<"agent">;
273
238
  agentId: z.ZodString;
274
- }, z.core.$strip>, z.ZodObject<{
275
- kind: z.ZodLiteral<"workflow">;
276
- workflowId: z.ZodString;
277
- workflowVersion: z.ZodOptional<z.ZodString>;
278
- input: z.ZodOptional<z.ZodUnknown>;
279
239
  }, z.core.$strip>, z.ZodObject<{
280
240
  kind: z.ZodLiteral<"human">;
281
241
  actorId: z.ZodString;
@@ -1,7 +1,5 @@
1
- import type { WorkflowRunInputEnvelope } from '../../workflows/domain/index.js';
2
1
  import type { TaskCommand } from '@xopcai/gateway-contract';
3
2
  import type { TurnOrigin } from '@xopcai/endpoint-tools-protocol';
4
- import type { WorkflowRunServiceLike } from '../../workflows/service/workflow-run-service.types.js';
5
3
  export type AutomationSchedule = {
6
4
  kind: 'once';
7
5
  at: string;
@@ -35,16 +33,6 @@ export type AutomationAction = {
35
33
  workingDirectory?: string;
36
34
  model?: string;
37
35
  timeoutSeconds?: number;
38
- } | {
39
- kind: 'workflow';
40
- workflowId: string;
41
- agentId?: string;
42
- input?: unknown;
43
- inputEnvelope?: WorkflowRunInputEnvelope;
44
- goal?: string;
45
- concurrency?: number;
46
- maxSubagents?: number;
47
- timeoutSeconds?: number;
48
36
  } | {
49
37
  kind: 'browser_automation';
50
38
  automationId: string;
@@ -154,7 +142,6 @@ export interface AutomationRun {
154
142
  summary?: string;
155
143
  error?: string;
156
144
  conversationId?: string;
157
- workflowRunId?: string;
158
145
  model?: string;
159
146
  deadlineAtMs?: number;
160
147
  currentPhase?: AutomationRunPhase;
@@ -341,7 +328,6 @@ export interface AutomationDeps {
341
328
  };
342
329
  getDefaultAgentId?: () => string;
343
330
  prepareAgentSession?: (input: PrepareAutomationAgentSessionInput) => Promise<void>;
344
- workflowRunService?: WorkflowRunServiceLike;
345
331
  browserAutomationService?: {
346
332
  get(id: string): {
347
333
  revision: number;
@@ -399,7 +385,6 @@ export interface AutomationActionTask {
399
385
  summary?: string;
400
386
  error?: string;
401
387
  conversationId?: string;
402
- workflowRunId?: string;
403
388
  model?: string;
404
389
  deadlineAtMs?: number;
405
390
  termination?: AutomationRunTermination;
@@ -43,21 +43,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
43
43
  workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
44
44
  model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
45
45
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
46
- }, z.core.$strict>, z.ZodObject<{
47
- kind: z.ZodLiteral<"workflow">;
48
- workflowId: z.ZodString;
49
- agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
50
- input: z.ZodOptional<z.ZodUnknown>;
51
- inputEnvelope: z.ZodOptional<z.ZodObject<{
52
- payload: z.ZodUnknown;
53
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
54
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
- }, z.core.$strict>>;
57
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
58
- concurrency: z.ZodOptional<z.ZodNumber>;
59
- maxSubagents: z.ZodOptional<z.ZodNumber>;
60
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
61
46
  }, z.core.$strict>, z.ZodObject<{
62
47
  kind: z.ZodLiteral<"browser_automation">;
63
48
  automationId: z.ZodString;
@@ -91,11 +76,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
91
76
  executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
92
77
  kind: z.ZodLiteral<"agent">;
93
78
  agentId: z.ZodString;
94
- }, z.core.$strip>, z.ZodObject<{
95
- kind: z.ZodLiteral<"workflow">;
96
- workflowId: z.ZodString;
97
- workflowVersion: z.ZodOptional<z.ZodString>;
98
- input: z.ZodOptional<z.ZodUnknown>;
99
79
  }, z.core.$strip>, z.ZodObject<{
100
80
  kind: z.ZodLiteral<"human">;
101
81
  actorId: z.ZodString;
@@ -273,21 +253,6 @@ export declare const AutomationSchema: z.ZodObject<{
273
253
  workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
274
254
  model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
275
255
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
276
- }, z.core.$strict>, z.ZodObject<{
277
- kind: z.ZodLiteral<"workflow">;
278
- workflowId: z.ZodString;
279
- agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
280
- input: z.ZodOptional<z.ZodUnknown>;
281
- inputEnvelope: z.ZodOptional<z.ZodObject<{
282
- payload: z.ZodUnknown;
283
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
284
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
285
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
286
- }, z.core.$strict>>;
287
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
288
- concurrency: z.ZodOptional<z.ZodNumber>;
289
- maxSubagents: z.ZodOptional<z.ZodNumber>;
290
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
291
256
  }, z.core.$strict>, z.ZodObject<{
292
257
  kind: z.ZodLiteral<"browser_automation">;
293
258
  automationId: z.ZodString;
@@ -321,11 +286,6 @@ export declare const AutomationSchema: z.ZodObject<{
321
286
  executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
322
287
  kind: z.ZodLiteral<"agent">;
323
288
  agentId: z.ZodString;
324
- }, z.core.$strip>, z.ZodObject<{
325
- kind: z.ZodLiteral<"workflow">;
326
- workflowId: z.ZodString;
327
- workflowVersion: z.ZodOptional<z.ZodString>;
328
- input: z.ZodOptional<z.ZodUnknown>;
329
289
  }, z.core.$strip>, z.ZodObject<{
330
290
  kind: z.ZodLiteral<"human">;
331
291
  actorId: z.ZodString;
@@ -482,21 +442,6 @@ export declare const CreateAutomationSchema: z.ZodObject<{
482
442
  workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
483
443
  model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
484
444
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
485
- }, z.core.$strict>, z.ZodObject<{
486
- kind: z.ZodLiteral<"workflow">;
487
- workflowId: z.ZodString;
488
- agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
489
- input: z.ZodOptional<z.ZodUnknown>;
490
- inputEnvelope: z.ZodOptional<z.ZodObject<{
491
- payload: z.ZodUnknown;
492
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
493
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
494
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
495
- }, z.core.$strict>>;
496
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
497
- concurrency: z.ZodOptional<z.ZodNumber>;
498
- maxSubagents: z.ZodOptional<z.ZodNumber>;
499
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
500
445
  }, z.core.$strict>, z.ZodObject<{
501
446
  kind: z.ZodLiteral<"browser_automation">;
502
447
  automationId: z.ZodString;
@@ -530,11 +475,6 @@ export declare const CreateAutomationSchema: z.ZodObject<{
530
475
  executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
531
476
  kind: z.ZodLiteral<"agent">;
532
477
  agentId: z.ZodString;
533
- }, z.core.$strip>, z.ZodObject<{
534
- kind: z.ZodLiteral<"workflow">;
535
- workflowId: z.ZodString;
536
- workflowVersion: z.ZodOptional<z.ZodString>;
537
- input: z.ZodOptional<z.ZodUnknown>;
538
478
  }, z.core.$strip>, z.ZodObject<{
539
479
  kind: z.ZodLiteral<"human">;
540
480
  actorId: z.ZodString;
@@ -718,21 +658,6 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
718
658
  workingDirectory: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
719
659
  model: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
720
660
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
721
- }, z.core.$strict>, z.ZodObject<{
722
- kind: z.ZodLiteral<"workflow">;
723
- workflowId: z.ZodString;
724
- agentId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
725
- input: z.ZodOptional<z.ZodUnknown>;
726
- inputEnvelope: z.ZodOptional<z.ZodObject<{
727
- payload: z.ZodUnknown;
728
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
729
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
730
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
731
- }, z.core.$strict>>;
732
- goal: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string>>;
733
- concurrency: z.ZodOptional<z.ZodNumber>;
734
- maxSubagents: z.ZodOptional<z.ZodNumber>;
735
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
736
661
  }, z.core.$strict>, z.ZodObject<{
737
662
  kind: z.ZodLiteral<"browser_automation">;
738
663
  automationId: z.ZodString;
@@ -766,11 +691,6 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
766
691
  executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
767
692
  kind: z.ZodLiteral<"agent">;
768
693
  agentId: z.ZodString;
769
- }, z.core.$strip>, z.ZodObject<{
770
- kind: z.ZodLiteral<"workflow">;
771
- workflowId: z.ZodString;
772
- workflowVersion: z.ZodOptional<z.ZodString>;
773
- input: z.ZodOptional<z.ZodUnknown>;
774
694
  }, z.core.$strip>, z.ZodObject<{
775
695
  kind: z.ZodLiteral<"human">;
776
696
  actorId: z.ZodString;
@@ -66,12 +66,6 @@ const AutomationTriggerSchema = z.discriminatedUnion("kind", [
66
66
  ])).optional()
67
67
  }).strict()
68
68
  ]);
69
- const WorkflowRunInputEnvelopeSchema = z.object({
70
- payload: z.unknown(),
71
- goal: optionalTrimmedString(5e3),
72
- variables: z.record(z.string(), z.unknown()).optional(),
73
- context: z.record(z.string(), z.unknown()).optional()
74
- }).strict();
75
69
  const AutomationActionSchema = z.discriminatedUnion("kind", [
76
70
  z.object({
77
71
  kind: z.literal("agent"),
@@ -81,17 +75,6 @@ const AutomationActionSchema = z.discriminatedUnion("kind", [
81
75
  model: optionalTrimmedString(100),
82
76
  timeoutSeconds: z.number().int().min(1).max(86400).optional()
83
77
  }).strict(),
84
- z.object({
85
- kind: z.literal("workflow"),
86
- workflowId: nonEmptyString.max(200),
87
- agentId: optionalTrimmedString(64),
88
- input: z.unknown().optional(),
89
- inputEnvelope: WorkflowRunInputEnvelopeSchema.optional(),
90
- goal: optionalTrimmedString(5e3),
91
- concurrency: z.number().int().min(1).max(50).optional(),
92
- maxSubagents: z.number().int().min(1).max(100).optional(),
93
- timeoutSeconds: z.number().int().min(1).max(86400).optional()
94
- }).strict(),
95
78
  z.object({
96
79
  kind: z.literal("browser_automation"),
97
80
  automationId: nonEmptyString.max(100),
@@ -33,12 +33,10 @@ Useful product events:
33
33
  - note.updated
34
34
  - task.created
35
35
  - task.attention_required.v2
36
- - workflow.run.completed
37
36
  - channel.message.received
38
37
 
39
38
  Allowed actions:
40
39
  - Agent: { "kind": "agent", "agentId": "optional", "instruction": "what to do", "timeoutSeconds": 300 }
41
- - Workflow: { "kind": "workflow", "workflowId": "known_workflow_id", "input": {}, "goal": "optional", "timeoutSeconds": 300 }
42
40
 
43
41
  Safety modes:
44
42
  - { "mode": "suggest_only" }: safest default, generate recommendations only.
@@ -46,7 +44,6 @@ Safety modes:
46
44
  - { "mode": "auto_apply" }: trusted automation may act automatically.
47
45
 
48
46
  Rules:
49
- - Prefer agent actions unless the user names a specific existing workflow id.
50
47
  - Default to safety { "mode": "suggest_only" } unless the user explicitly asks for fully automatic execution.
51
48
  - Do not invent destructive actions. For deletion, external sending, or irreversible changes, include a risk and make the instruction ask for confirmation.
52
49
  - Use cron for daily/weekly schedules. Use standard 5-field cron.
@@ -42,21 +42,6 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
42
42
  workingDirectory?: string;
43
43
  model?: string;
44
44
  timeoutSeconds?: number;
45
- } | {
46
- kind: "workflow";
47
- workflowId: string;
48
- agentId?: string;
49
- input?: unknown;
50
- inputEnvelope?: {
51
- payload: unknown;
52
- goal?: string;
53
- variables?: Record<string, unknown>;
54
- context?: Record<string, unknown>;
55
- };
56
- goal?: string;
57
- concurrency?: number;
58
- maxSubagents?: number;
59
- timeoutSeconds?: number;
60
45
  } | {
61
46
  kind: "browser_automation";
62
47
  automationId: string;
@@ -79,11 +64,6 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
79
64
  executor?: {
80
65
  kind: "agent";
81
66
  agentId: string;
82
- } | {
83
- kind: "workflow";
84
- workflowId: string;
85
- workflowVersion?: string;
86
- input?: unknown;
87
67
  } | {
88
68
  kind: "human";
89
69
  actorId: string;
@@ -89,7 +89,6 @@ function summarizeTrigger(trigger) {
89
89
  return `Runs on cron schedule ${schedule.expr}.`;
90
90
  }
91
91
  function summarizeAction(action) {
92
- if (action.kind === "workflow") return `Starts workflow ${action.workflowId}.`;
93
92
  if (action.kind === "browser_automation") return `Runs browser automation ${action.automationId}.`;
94
93
  if (action.kind === "task_command") return `Applies ${action.command?.type ?? "a command"} to task ${action.taskId}.`;
95
94
  if (action.kind === "system") return `Runs system capability ${action.capability}.`;
@@ -79,12 +79,6 @@ for (const definition of [
79
79
  "session.transcript.updated",
80
80
  "session",
81
81
  "A Session transcript changed."
82
- ],
83
- [
84
- "workflows",
85
- "workflow.run.completed",
86
- "workflow_run",
87
- "A Workflow run completed."
88
82
  ]
89
83
  ]) registerBusinessEvent({
90
84
  source: definition[0],
@@ -24,6 +24,5 @@ export declare class AutomationActionExecutor {
24
24
  private executeSystemAction;
25
25
  private executeBrowserAutomation;
26
26
  private executeAgent;
27
- private executeWorkflow;
28
27
  }
29
28
  export {};