@robota-sdk/agent-core 3.0.0-beta.9 → 3.0.0-beta.90

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 (557) hide show
  1. package/CHANGELOG.md +1083 -0
  2. package/LICENSE +661 -21
  3. package/README.md +261 -50
  4. package/dist/browser/bounded-output-BdWv9SX3.js +2 -0
  5. package/dist/browser/bounded-output-BdWv9SX3.js.map +1 -0
  6. package/dist/browser/command-executor-DIXaSMrr.js +2 -0
  7. package/dist/browser/command-executor-DIXaSMrr.js.map +1 -0
  8. package/dist/browser/http-executor-B4YgCJg7.js +2 -0
  9. package/dist/browser/http-executor-B4YgCJg7.js.map +1 -0
  10. package/dist/browser/index.d.ts +6834 -3348
  11. package/dist/browser/index.d.ts.map +1 -0
  12. package/dist/browser/index.js +14 -5
  13. package/dist/browser/index.js.map +1 -0
  14. package/dist/browser/verdict-decoder-Dz_rjoIZ.js +2 -0
  15. package/dist/browser/verdict-decoder-Dz_rjoIZ.js.map +1 -0
  16. package/dist/node/bounded-output-BdWv9SX3.js +2 -0
  17. package/dist/node/bounded-output-BdWv9SX3.js.map +1 -0
  18. package/dist/node/command-executor-D_UBZHxh.js +2 -0
  19. package/dist/node/command-executor-D_UBZHxh.js.map +1 -0
  20. package/dist/node/command-executor-wBgBdWXr.cjs +1 -0
  21. package/dist/node/http-executor-ADn4locH.js +2 -0
  22. package/dist/node/http-executor-ADn4locH.js.map +1 -0
  23. package/dist/node/http-executor-CeAAZotH.cjs +1 -0
  24. package/dist/node/index-CagopdzH.d.cts +7393 -0
  25. package/dist/node/index-CagopdzH.d.cts.map +1 -0
  26. package/dist/node/index-CjyNzgQN.d.ts +7393 -0
  27. package/dist/node/index-CjyNzgQN.d.ts.map +1 -0
  28. package/dist/node/index.cjs +13 -5
  29. package/dist/node/index.d.cts +3 -4238
  30. package/dist/node/index.d.ts +3 -4238
  31. package/dist/node/index.js +14 -5
  32. package/dist/node/index.js.map +1 -0
  33. package/dist/node/node.cjs +1 -0
  34. package/dist/node/node.d.cts +247 -0
  35. package/dist/node/node.d.cts.map +1 -0
  36. package/dist/node/node.d.ts +247 -0
  37. package/dist/node/node.d.ts.map +1 -0
  38. package/dist/node/node.js +2 -0
  39. package/dist/node/node.js.map +1 -0
  40. package/dist/node/project-tool-schema-DrDjGKnH.cjs +1 -0
  41. package/dist/node/project-tool-schema-_UKfY7yO.js +2 -0
  42. package/dist/node/project-tool-schema-_UKfY7yO.js.map +1 -0
  43. package/dist/node/rolldown-runtime-DK3Fl9T5.js +1 -0
  44. package/dist/node/rolldown-runtime-DWNI8pZO.cjs +1 -0
  45. package/dist/node/testing/index.cjs +1 -0
  46. package/dist/node/testing/index.d.cts +96 -0
  47. package/dist/node/testing/index.d.cts.map +1 -0
  48. package/dist/node/testing/index.d.ts +96 -0
  49. package/dist/node/testing/index.d.ts.map +1 -0
  50. package/dist/node/testing/index.js +2 -0
  51. package/dist/node/testing/index.js.map +1 -0
  52. package/dist/node/types-Ge2XB-y-.d.cts +334 -0
  53. package/dist/node/types-Ge2XB-y-.d.cts.map +1 -0
  54. package/dist/node/types-Ge2XB-y-.d.ts +334 -0
  55. package/dist/node/types-Ge2XB-y-.d.ts.map +1 -0
  56. package/dist/node/verdict-decoder-DQqwwDE7.cjs +1 -0
  57. package/dist/node/verdict-decoder-Dz_rjoIZ.js +2 -0
  58. package/dist/node/verdict-decoder-Dz_rjoIZ.js.map +1 -0
  59. package/package.json +103 -33
  60. package/dist/abstracts/abstract-agent.d.ts +0 -56
  61. package/dist/abstracts/abstract-agent.d.ts.map +0 -1
  62. package/dist/abstracts/abstract-agent.js +0 -55
  63. package/dist/abstracts/abstract-agent.js.map +0 -1
  64. package/dist/abstracts/abstract-ai-provider.d.ts +0 -187
  65. package/dist/abstracts/abstract-ai-provider.d.ts.map +0 -1
  66. package/dist/abstracts/abstract-ai-provider.js +0 -252
  67. package/dist/abstracts/abstract-ai-provider.js.map +0 -1
  68. package/dist/abstracts/abstract-executor.d.ts +0 -110
  69. package/dist/abstracts/abstract-executor.d.ts.map +0 -1
  70. package/dist/abstracts/abstract-executor.js +0 -156
  71. package/dist/abstracts/abstract-executor.js.map +0 -1
  72. package/dist/abstracts/abstract-manager.d.ts +0 -42
  73. package/dist/abstracts/abstract-manager.d.ts.map +0 -1
  74. package/dist/abstracts/abstract-manager.js +0 -49
  75. package/dist/abstracts/abstract-manager.js.map +0 -1
  76. package/dist/abstracts/abstract-module.d.ts +0 -365
  77. package/dist/abstracts/abstract-module.d.ts.map +0 -1
  78. package/dist/abstracts/abstract-module.js +0 -474
  79. package/dist/abstracts/abstract-module.js.map +0 -1
  80. package/dist/abstracts/abstract-plugin.d.ts +0 -369
  81. package/dist/abstracts/abstract-plugin.d.ts.map +0 -1
  82. package/dist/abstracts/abstract-plugin.js +0 -258
  83. package/dist/abstracts/abstract-plugin.js.map +0 -1
  84. package/dist/abstracts/abstract-tool.d.ts +0 -175
  85. package/dist/abstracts/abstract-tool.d.ts.map +0 -1
  86. package/dist/abstracts/abstract-tool.js +0 -140
  87. package/dist/abstracts/abstract-tool.js.map +0 -1
  88. package/dist/abstracts/abstract-workflow-converter.d.ts +0 -136
  89. package/dist/abstracts/abstract-workflow-converter.d.ts.map +0 -1
  90. package/dist/abstracts/abstract-workflow-converter.js +0 -252
  91. package/dist/abstracts/abstract-workflow-converter.js.map +0 -1
  92. package/dist/abstracts/abstract-workflow-validator.d.ts +0 -203
  93. package/dist/abstracts/abstract-workflow-validator.d.ts.map +0 -1
  94. package/dist/abstracts/abstract-workflow-validator.js +0 -447
  95. package/dist/abstracts/abstract-workflow-validator.js.map +0 -1
  96. package/dist/abstracts/index.d.ts +0 -6
  97. package/dist/abstracts/index.d.ts.map +0 -1
  98. package/dist/abstracts/index.js +0 -9
  99. package/dist/abstracts/index.js.map +0 -1
  100. package/dist/agents/constants.d.ts +0 -23
  101. package/dist/agents/constants.d.ts.map +0 -1
  102. package/dist/agents/constants.js +0 -22
  103. package/dist/agents/constants.js.map +0 -1
  104. package/dist/agents/index.d.ts +0 -1
  105. package/dist/agents/index.d.ts.map +0 -1
  106. package/dist/agents/index.js +0 -4
  107. package/dist/agents/index.js.map +0 -1
  108. package/dist/agents/robota.test.d.ts +0 -2
  109. package/dist/agents/robota.test.d.ts.map +0 -1
  110. package/dist/agents/robota.test.js +0 -416
  111. package/dist/agents/robota.test.js.map +0 -1
  112. package/dist/browser/builtin-templates.json +0 -107
  113. package/dist/core/robota.d.ts +0 -694
  114. package/dist/core/robota.d.ts.map +0 -1
  115. package/dist/core/robota.js +0 -1277
  116. package/dist/core/robota.js.map +0 -1
  117. package/dist/executors/local-executor.d.ts +0 -96
  118. package/dist/executors/local-executor.d.ts.map +0 -1
  119. package/dist/executors/local-executor.js +0 -197
  120. package/dist/executors/local-executor.js.map +0 -1
  121. package/dist/executors/local-executor.test.d.ts +0 -2
  122. package/dist/executors/local-executor.test.d.ts.map +0 -1
  123. package/dist/executors/local-executor.test.js +0 -192
  124. package/dist/executors/local-executor.test.js.map +0 -1
  125. package/dist/index.d.ts +0 -274
  126. package/dist/index.d.ts.map +0 -1
  127. package/dist/index.js +0 -235
  128. package/dist/index.js.map +0 -1
  129. package/dist/interfaces/agent.d.ts +0 -198
  130. package/dist/interfaces/agent.d.ts.map +0 -1
  131. package/dist/interfaces/agent.js +0 -2
  132. package/dist/interfaces/agent.js.map +0 -1
  133. package/dist/interfaces/event-service.d.ts +0 -79
  134. package/dist/interfaces/event-service.d.ts.map +0 -1
  135. package/dist/interfaces/event-service.js +0 -2
  136. package/dist/interfaces/event-service.js.map +0 -1
  137. package/dist/interfaces/executor.d.ts +0 -128
  138. package/dist/interfaces/executor.d.ts.map +0 -1
  139. package/dist/interfaces/executor.js +0 -2
  140. package/dist/interfaces/executor.js.map +0 -1
  141. package/dist/interfaces/history-module.d.ts +0 -19
  142. package/dist/interfaces/history-module.d.ts.map +0 -1
  143. package/dist/interfaces/history-module.js +0 -2
  144. package/dist/interfaces/history-module.js.map +0 -1
  145. package/dist/interfaces/index.d.ts +0 -13
  146. package/dist/interfaces/index.d.ts.map +0 -1
  147. package/dist/interfaces/index.js +0 -4
  148. package/dist/interfaces/index.js.map +0 -1
  149. package/dist/interfaces/manager.d.ts +0 -142
  150. package/dist/interfaces/manager.d.ts.map +0 -1
  151. package/dist/interfaces/manager.js +0 -2
  152. package/dist/interfaces/manager.js.map +0 -1
  153. package/dist/interfaces/messages.d.ts +0 -75
  154. package/dist/interfaces/messages.d.ts.map +0 -1
  155. package/dist/interfaces/messages.js +0 -29
  156. package/dist/interfaces/messages.js.map +0 -1
  157. package/dist/interfaces/progress-reporting.d.ts +0 -86
  158. package/dist/interfaces/progress-reporting.d.ts.map +0 -1
  159. package/dist/interfaces/progress-reporting.js +0 -37
  160. package/dist/interfaces/progress-reporting.js.map +0 -1
  161. package/dist/interfaces/provider.d.ts +0 -217
  162. package/dist/interfaces/provider.d.ts.map +0 -1
  163. package/dist/interfaces/provider.js +0 -2
  164. package/dist/interfaces/provider.js.map +0 -1
  165. package/dist/interfaces/service.d.ts +0 -205
  166. package/dist/interfaces/service.d.ts.map +0 -1
  167. package/dist/interfaces/service.js +0 -6
  168. package/dist/interfaces/service.js.map +0 -1
  169. package/dist/interfaces/tool.d.ts +0 -248
  170. package/dist/interfaces/tool.d.ts.map +0 -1
  171. package/dist/interfaces/tool.js +0 -2
  172. package/dist/interfaces/tool.js.map +0 -1
  173. package/dist/interfaces/types.d.ts +0 -71
  174. package/dist/interfaces/types.d.ts.map +0 -1
  175. package/dist/interfaces/types.js +0 -33
  176. package/dist/interfaces/types.js.map +0 -1
  177. package/dist/interfaces/workflow-converter.d.ts +0 -193
  178. package/dist/interfaces/workflow-converter.d.ts.map +0 -1
  179. package/dist/interfaces/workflow-converter.js +0 -11
  180. package/dist/interfaces/workflow-converter.js.map +0 -1
  181. package/dist/interfaces/workflow-validator.d.ts +0 -209
  182. package/dist/interfaces/workflow-validator.d.ts.map +0 -1
  183. package/dist/interfaces/workflow-validator.js +0 -16
  184. package/dist/interfaces/workflow-validator.js.map +0 -1
  185. package/dist/managers/agent-factory.d.ts +0 -132
  186. package/dist/managers/agent-factory.d.ts.map +0 -1
  187. package/dist/managers/agent-factory.js +0 -284
  188. package/dist/managers/agent-factory.js.map +0 -1
  189. package/dist/managers/agent-factory.test.d.ts +0 -2
  190. package/dist/managers/agent-factory.test.d.ts.map +0 -1
  191. package/dist/managers/agent-factory.test.js +0 -249
  192. package/dist/managers/agent-factory.test.js.map +0 -1
  193. package/dist/managers/agent-templates.d.ts +0 -84
  194. package/dist/managers/agent-templates.d.ts.map +0 -1
  195. package/dist/managers/agent-templates.js +0 -159
  196. package/dist/managers/agent-templates.js.map +0 -1
  197. package/dist/managers/ai-provider-manager.d.ts +0 -80
  198. package/dist/managers/ai-provider-manager.d.ts.map +0 -1
  199. package/dist/managers/ai-provider-manager.js +0 -226
  200. package/dist/managers/ai-provider-manager.js.map +0 -1
  201. package/dist/managers/conversation-history-manager.d.ts +0 -455
  202. package/dist/managers/conversation-history-manager.d.ts.map +0 -1
  203. package/dist/managers/conversation-history-manager.js +0 -578
  204. package/dist/managers/conversation-history-manager.js.map +0 -1
  205. package/dist/managers/conversation-history-manager.test.d.ts +0 -2
  206. package/dist/managers/conversation-history-manager.test.d.ts.map +0 -1
  207. package/dist/managers/conversation-history-manager.test.js +0 -374
  208. package/dist/managers/conversation-history-manager.test.js.map +0 -1
  209. package/dist/managers/index.d.ts +0 -8
  210. package/dist/managers/index.d.ts.map +0 -1
  211. package/dist/managers/index.js +0 -8
  212. package/dist/managers/index.js.map +0 -1
  213. package/dist/managers/module-registry.d.ts +0 -161
  214. package/dist/managers/module-registry.d.ts.map +0 -1
  215. package/dist/managers/module-registry.js +0 -519
  216. package/dist/managers/module-registry.js.map +0 -1
  217. package/dist/managers/module-type-registry.d.ts +0 -113
  218. package/dist/managers/module-type-registry.d.ts.map +0 -1
  219. package/dist/managers/module-type-registry.js +0 -439
  220. package/dist/managers/module-type-registry.js.map +0 -1
  221. package/dist/managers/plugins.d.ts +0 -166
  222. package/dist/managers/plugins.d.ts.map +0 -1
  223. package/dist/managers/plugins.js +0 -339
  224. package/dist/managers/plugins.js.map +0 -1
  225. package/dist/managers/tool-manager.d.ts +0 -70
  226. package/dist/managers/tool-manager.d.ts.map +0 -1
  227. package/dist/managers/tool-manager.js +0 -138
  228. package/dist/managers/tool-manager.js.map +0 -1
  229. package/dist/managers/tool-manager.test.d.ts +0 -2
  230. package/dist/managers/tool-manager.test.d.ts.map +0 -1
  231. package/dist/managers/tool-manager.test.js +0 -186
  232. package/dist/managers/tool-manager.test.js.map +0 -1
  233. package/dist/node/builtin-templates.json +0 -107
  234. package/dist/plugins/conversation-history/conversation-history-plugin.d.ts +0 -67
  235. package/dist/plugins/conversation-history/conversation-history-plugin.d.ts.map +0 -1
  236. package/dist/plugins/conversation-history/conversation-history-plugin.js +0 -270
  237. package/dist/plugins/conversation-history/conversation-history-plugin.js.map +0 -1
  238. package/dist/plugins/conversation-history/index.d.ts +0 -3
  239. package/dist/plugins/conversation-history/index.d.ts.map +0 -1
  240. package/dist/plugins/conversation-history/index.js +0 -2
  241. package/dist/plugins/conversation-history/index.js.map +0 -1
  242. package/dist/plugins/conversation-history/storages/database-storage.d.ts +0 -19
  243. package/dist/plugins/conversation-history/storages/database-storage.d.ts.map +0 -1
  244. package/dist/plugins/conversation-history/storages/database-storage.js +0 -94
  245. package/dist/plugins/conversation-history/storages/database-storage.js.map +0 -1
  246. package/dist/plugins/conversation-history/storages/file-storage.d.ts +0 -15
  247. package/dist/plugins/conversation-history/storages/file-storage.d.ts.map +0 -1
  248. package/dist/plugins/conversation-history/storages/file-storage.js +0 -94
  249. package/dist/plugins/conversation-history/storages/file-storage.js.map +0 -1
  250. package/dist/plugins/conversation-history/storages/index.d.ts +0 -4
  251. package/dist/plugins/conversation-history/storages/index.d.ts.map +0 -1
  252. package/dist/plugins/conversation-history/storages/index.js +0 -4
  253. package/dist/plugins/conversation-history/storages/index.js.map +0 -1
  254. package/dist/plugins/conversation-history/storages/memory-storage.d.ts +0 -15
  255. package/dist/plugins/conversation-history/storages/memory-storage.d.ts.map +0 -1
  256. package/dist/plugins/conversation-history/storages/memory-storage.js +0 -33
  257. package/dist/plugins/conversation-history/storages/memory-storage.js.map +0 -1
  258. package/dist/plugins/conversation-history/types.d.ts +0 -61
  259. package/dist/plugins/conversation-history/types.d.ts.map +0 -1
  260. package/dist/plugins/conversation-history/types.js +0 -2
  261. package/dist/plugins/conversation-history/types.js.map +0 -1
  262. package/dist/plugins/error-handling/context-adapter.d.ts +0 -30
  263. package/dist/plugins/error-handling/context-adapter.d.ts.map +0 -1
  264. package/dist/plugins/error-handling/context-adapter.js +0 -41
  265. package/dist/plugins/error-handling/context-adapter.js.map +0 -1
  266. package/dist/plugins/error-handling/error-handling-plugin.d.ts +0 -49
  267. package/dist/plugins/error-handling/error-handling-plugin.d.ts.map +0 -1
  268. package/dist/plugins/error-handling/error-handling-plugin.js +0 -229
  269. package/dist/plugins/error-handling/error-handling-plugin.js.map +0 -1
  270. package/dist/plugins/error-handling/index.d.ts +0 -10
  271. package/dist/plugins/error-handling/index.d.ts.map +0 -1
  272. package/dist/plugins/error-handling/index.js +0 -10
  273. package/dist/plugins/error-handling/index.js.map +0 -1
  274. package/dist/plugins/error-handling/types.d.ts +0 -73
  275. package/dist/plugins/error-handling/types.d.ts.map +0 -1
  276. package/dist/plugins/error-handling/types.js +0 -14
  277. package/dist/plugins/error-handling/types.js.map +0 -1
  278. package/dist/plugins/event-emitter/metrics.d.ts +0 -17
  279. package/dist/plugins/event-emitter/metrics.d.ts.map +0 -1
  280. package/dist/plugins/event-emitter/metrics.js +0 -17
  281. package/dist/plugins/event-emitter/metrics.js.map +0 -1
  282. package/dist/plugins/event-emitter/types.d.ts +0 -112
  283. package/dist/plugins/event-emitter/types.d.ts.map +0 -1
  284. package/dist/plugins/event-emitter/types.js +0 -65
  285. package/dist/plugins/event-emitter/types.js.map +0 -1
  286. package/dist/plugins/event-emitter-plugin.d.ts +0 -222
  287. package/dist/plugins/event-emitter-plugin.d.ts.map +0 -1
  288. package/dist/plugins/event-emitter-plugin.js +0 -432
  289. package/dist/plugins/event-emitter-plugin.js.map +0 -1
  290. package/dist/plugins/event-emitter-plugin.test.d.ts +0 -2
  291. package/dist/plugins/event-emitter-plugin.test.d.ts.map +0 -1
  292. package/dist/plugins/event-emitter-plugin.test.js +0 -94
  293. package/dist/plugins/event-emitter-plugin.test.js.map +0 -1
  294. package/dist/plugins/execution/execution-analytics-plugin.d.ts +0 -129
  295. package/dist/plugins/execution/execution-analytics-plugin.d.ts.map +0 -1
  296. package/dist/plugins/execution/execution-analytics-plugin.js +0 -517
  297. package/dist/plugins/execution/execution-analytics-plugin.js.map +0 -1
  298. package/dist/plugins/execution/index.d.ts +0 -3
  299. package/dist/plugins/execution/index.d.ts.map +0 -1
  300. package/dist/plugins/execution/index.js +0 -2
  301. package/dist/plugins/execution/index.js.map +0 -1
  302. package/dist/plugins/execution/types.d.ts +0 -90
  303. package/dist/plugins/execution/types.d.ts.map +0 -1
  304. package/dist/plugins/execution/types.js +0 -2
  305. package/dist/plugins/execution/types.js.map +0 -1
  306. package/dist/plugins/index.d.ts +0 -10
  307. package/dist/plugins/index.d.ts.map +0 -1
  308. package/dist/plugins/index.js +0 -11
  309. package/dist/plugins/index.js.map +0 -1
  310. package/dist/plugins/limits/types.d.ts +0 -61
  311. package/dist/plugins/limits/types.d.ts.map +0 -1
  312. package/dist/plugins/limits/types.js +0 -2
  313. package/dist/plugins/limits/types.js.map +0 -1
  314. package/dist/plugins/limits-plugin.d.ts +0 -113
  315. package/dist/plugins/limits-plugin.d.ts.map +0 -1
  316. package/dist/plugins/limits-plugin.js +0 -380
  317. package/dist/plugins/limits-plugin.js.map +0 -1
  318. package/dist/plugins/logging/formatters.d.ts +0 -14
  319. package/dist/plugins/logging/formatters.d.ts.map +0 -1
  320. package/dist/plugins/logging/formatters.js +0 -24
  321. package/dist/plugins/logging/formatters.js.map +0 -1
  322. package/dist/plugins/logging/index.d.ts +0 -3
  323. package/dist/plugins/logging/index.d.ts.map +0 -1
  324. package/dist/plugins/logging/index.js +0 -2
  325. package/dist/plugins/logging/index.js.map +0 -1
  326. package/dist/plugins/logging/logging-plugin.d.ts +0 -91
  327. package/dist/plugins/logging/logging-plugin.d.ts.map +0 -1
  328. package/dist/plugins/logging/logging-plugin.js +0 -335
  329. package/dist/plugins/logging/logging-plugin.js.map +0 -1
  330. package/dist/plugins/logging/storages/console-storage.d.ts +0 -14
  331. package/dist/plugins/logging/storages/console-storage.d.ts.map +0 -1
  332. package/dist/plugins/logging/storages/console-storage.js +0 -38
  333. package/dist/plugins/logging/storages/console-storage.js.map +0 -1
  334. package/dist/plugins/logging/storages/file-storage.d.ts +0 -14
  335. package/dist/plugins/logging/storages/file-storage.d.ts.map +0 -1
  336. package/dist/plugins/logging/storages/file-storage.js +0 -41
  337. package/dist/plugins/logging/storages/file-storage.js.map +0 -1
  338. package/dist/plugins/logging/storages/index.d.ts +0 -5
  339. package/dist/plugins/logging/storages/index.d.ts.map +0 -1
  340. package/dist/plugins/logging/storages/index.js +0 -5
  341. package/dist/plugins/logging/storages/index.js.map +0 -1
  342. package/dist/plugins/logging/storages/remote-storage.d.ts +0 -20
  343. package/dist/plugins/logging/storages/remote-storage.d.ts.map +0 -1
  344. package/dist/plugins/logging/storages/remote-storage.js +0 -61
  345. package/dist/plugins/logging/storages/remote-storage.js.map +0 -1
  346. package/dist/plugins/logging/storages/silent-storage.d.ts +0 -10
  347. package/dist/plugins/logging/storages/silent-storage.d.ts.map +0 -1
  348. package/dist/plugins/logging/storages/silent-storage.js +0 -15
  349. package/dist/plugins/logging/storages/silent-storage.js.map +0 -1
  350. package/dist/plugins/logging/types.d.ts +0 -84
  351. package/dist/plugins/logging/types.d.ts.map +0 -1
  352. package/dist/plugins/logging/types.js +0 -2
  353. package/dist/plugins/logging/types.js.map +0 -1
  354. package/dist/plugins/performance/collectors/system-metrics-collector.d.ts +0 -12
  355. package/dist/plugins/performance/collectors/system-metrics-collector.d.ts.map +0 -1
  356. package/dist/plugins/performance/collectors/system-metrics-collector.js +0 -65
  357. package/dist/plugins/performance/collectors/system-metrics-collector.js.map +0 -1
  358. package/dist/plugins/performance/index.d.ts +0 -5
  359. package/dist/plugins/performance/index.d.ts.map +0 -1
  360. package/dist/plugins/performance/index.js +0 -4
  361. package/dist/plugins/performance/index.js.map +0 -1
  362. package/dist/plugins/performance/performance-plugin.d.ts +0 -49
  363. package/dist/plugins/performance/performance-plugin.d.ts.map +0 -1
  364. package/dist/plugins/performance/performance-plugin.js +0 -293
  365. package/dist/plugins/performance/performance-plugin.js.map +0 -1
  366. package/dist/plugins/performance/storages/index.d.ts +0 -2
  367. package/dist/plugins/performance/storages/index.d.ts.map +0 -1
  368. package/dist/plugins/performance/storages/index.js +0 -4
  369. package/dist/plugins/performance/storages/index.js.map +0 -1
  370. package/dist/plugins/performance/storages/memory-storage.d.ts +0 -19
  371. package/dist/plugins/performance/storages/memory-storage.d.ts.map +0 -1
  372. package/dist/plugins/performance/storages/memory-storage.js +0 -69
  373. package/dist/plugins/performance/storages/memory-storage.js.map +0 -1
  374. package/dist/plugins/performance/types.d.ts +0 -154
  375. package/dist/plugins/performance/types.d.ts.map +0 -1
  376. package/dist/plugins/performance/types.js +0 -2
  377. package/dist/plugins/performance/types.js.map +0 -1
  378. package/dist/plugins/usage/aggregate-usage-stats.d.ts +0 -12
  379. package/dist/plugins/usage/aggregate-usage-stats.d.ts.map +0 -1
  380. package/dist/plugins/usage/aggregate-usage-stats.js +0 -115
  381. package/dist/plugins/usage/aggregate-usage-stats.js.map +0 -1
  382. package/dist/plugins/usage/index.d.ts +0 -5
  383. package/dist/plugins/usage/index.d.ts.map +0 -1
  384. package/dist/plugins/usage/index.js +0 -4
  385. package/dist/plugins/usage/index.js.map +0 -1
  386. package/dist/plugins/usage/storages/file-storage.d.ts +0 -22
  387. package/dist/plugins/usage/storages/file-storage.d.ts.map +0 -1
  388. package/dist/plugins/usage/storages/file-storage.js +0 -111
  389. package/dist/plugins/usage/storages/file-storage.js.map +0 -1
  390. package/dist/plugins/usage/storages/index.d.ts +0 -5
  391. package/dist/plugins/usage/storages/index.d.ts.map +0 -1
  392. package/dist/plugins/usage/storages/index.js +0 -5
  393. package/dist/plugins/usage/storages/index.js.map +0 -1
  394. package/dist/plugins/usage/storages/memory-storage.d.ts +0 -22
  395. package/dist/plugins/usage/storages/memory-storage.d.ts.map +0 -1
  396. package/dist/plugins/usage/storages/memory-storage.js +0 -42
  397. package/dist/plugins/usage/storages/memory-storage.js.map +0 -1
  398. package/dist/plugins/usage/storages/remote-storage.d.ts +0 -26
  399. package/dist/plugins/usage/storages/remote-storage.d.ts.map +0 -1
  400. package/dist/plugins/usage/storages/remote-storage.js +0 -115
  401. package/dist/plugins/usage/storages/remote-storage.js.map +0 -1
  402. package/dist/plugins/usage/storages/silent-storage.d.ts +0 -19
  403. package/dist/plugins/usage/storages/silent-storage.d.ts.map +0 -1
  404. package/dist/plugins/usage/storages/silent-storage.js +0 -26
  405. package/dist/plugins/usage/storages/silent-storage.js.map +0 -1
  406. package/dist/plugins/usage/types.d.ts +0 -127
  407. package/dist/plugins/usage/types.d.ts.map +0 -1
  408. package/dist/plugins/usage/types.js +0 -2
  409. package/dist/plugins/usage/types.js.map +0 -1
  410. package/dist/plugins/usage/usage-plugin.d.ts +0 -67
  411. package/dist/plugins/usage/usage-plugin.d.ts.map +0 -1
  412. package/dist/plugins/usage/usage-plugin.js +0 -309
  413. package/dist/plugins/usage/usage-plugin.js.map +0 -1
  414. package/dist/plugins/webhook/http-client.d.ts +0 -30
  415. package/dist/plugins/webhook/http-client.d.ts.map +0 -1
  416. package/dist/plugins/webhook/http-client.js +0 -110
  417. package/dist/plugins/webhook/http-client.js.map +0 -1
  418. package/dist/plugins/webhook/index.d.ts +0 -9
  419. package/dist/plugins/webhook/index.d.ts.map +0 -1
  420. package/dist/plugins/webhook/index.js +0 -9
  421. package/dist/plugins/webhook/index.js.map +0 -1
  422. package/dist/plugins/webhook/transformer.d.ts +0 -63
  423. package/dist/plugins/webhook/transformer.d.ts.map +0 -1
  424. package/dist/plugins/webhook/transformer.js +0 -157
  425. package/dist/plugins/webhook/transformer.js.map +0 -1
  426. package/dist/plugins/webhook/types.d.ts +0 -183
  427. package/dist/plugins/webhook/types.d.ts.map +0 -1
  428. package/dist/plugins/webhook/types.js +0 -2
  429. package/dist/plugins/webhook/types.js.map +0 -1
  430. package/dist/plugins/webhook/webhook-plugin.d.ts +0 -92
  431. package/dist/plugins/webhook/webhook-plugin.d.ts.map +0 -1
  432. package/dist/plugins/webhook/webhook-plugin.js +0 -328
  433. package/dist/plugins/webhook/webhook-plugin.js.map +0 -1
  434. package/dist/schemas/agent-template-schema.d.ts +0 -137
  435. package/dist/schemas/agent-template-schema.d.ts.map +0 -1
  436. package/dist/schemas/agent-template-schema.js +0 -87
  437. package/dist/schemas/agent-template-schema.js.map +0 -1
  438. package/dist/services/conversation-service/index.d.ts +0 -88
  439. package/dist/services/conversation-service/index.d.ts.map +0 -1
  440. package/dist/services/conversation-service/index.js +0 -441
  441. package/dist/services/conversation-service/index.js.map +0 -1
  442. package/dist/services/conversation-service/types.d.ts +0 -32
  443. package/dist/services/conversation-service/types.d.ts.map +0 -1
  444. package/dist/services/conversation-service/types.js +0 -8
  445. package/dist/services/conversation-service/types.js.map +0 -1
  446. package/dist/services/event-service.d.ts +0 -61
  447. package/dist/services/event-service.d.ts.map +0 -1
  448. package/dist/services/event-service.js +0 -110
  449. package/dist/services/event-service.js.map +0 -1
  450. package/dist/services/event-service.test.d.ts +0 -2
  451. package/dist/services/event-service.test.d.ts.map +0 -1
  452. package/dist/services/event-service.test.js +0 -86
  453. package/dist/services/event-service.test.js.map +0 -1
  454. package/dist/services/execution-service.d.ts +0 -151
  455. package/dist/services/execution-service.d.ts.map +0 -1
  456. package/dist/services/execution-service.js +0 -1262
  457. package/dist/services/execution-service.js.map +0 -1
  458. package/dist/services/execution-service.test.d.ts +0 -2
  459. package/dist/services/execution-service.test.d.ts.map +0 -1
  460. package/dist/services/execution-service.test.js +0 -338
  461. package/dist/services/execution-service.test.js.map +0 -1
  462. package/dist/services/history-module.d.ts +0 -15
  463. package/dist/services/history-module.d.ts.map +0 -1
  464. package/dist/services/history-module.js +0 -42
  465. package/dist/services/history-module.js.map +0 -1
  466. package/dist/services/in-memory-history-store.d.ts +0 -12
  467. package/dist/services/in-memory-history-store.d.ts.map +0 -1
  468. package/dist/services/in-memory-history-store.js +0 -41
  469. package/dist/services/in-memory-history-store.js.map +0 -1
  470. package/dist/services/index.d.ts +0 -7
  471. package/dist/services/index.d.ts.map +0 -1
  472. package/dist/services/index.js +0 -13
  473. package/dist/services/index.js.map +0 -1
  474. package/dist/services/task-events.d.ts +0 -6
  475. package/dist/services/task-events.d.ts.map +0 -1
  476. package/dist/services/task-events.js +0 -6
  477. package/dist/services/task-events.js.map +0 -1
  478. package/dist/services/tool-execution-service.d.ts +0 -74
  479. package/dist/services/tool-execution-service.d.ts.map +0 -1
  480. package/dist/services/tool-execution-service.js +0 -189
  481. package/dist/services/tool-execution-service.js.map +0 -1
  482. package/dist/services/user-events.d.ts +0 -7
  483. package/dist/services/user-events.d.ts.map +0 -1
  484. package/dist/services/user-events.js +0 -6
  485. package/dist/services/user-events.js.map +0 -1
  486. package/dist/tools/implementations/function-tool/index.d.ts +0 -9
  487. package/dist/tools/implementations/function-tool/index.d.ts.map +0 -1
  488. package/dist/tools/implementations/function-tool/index.js +0 -13
  489. package/dist/tools/implementations/function-tool/index.js.map +0 -1
  490. package/dist/tools/implementations/function-tool/schema-converter.d.ts +0 -32
  491. package/dist/tools/implementations/function-tool/schema-converter.d.ts.map +0 -1
  492. package/dist/tools/implementations/function-tool/schema-converter.js +0 -164
  493. package/dist/tools/implementations/function-tool/schema-converter.js.map +0 -1
  494. package/dist/tools/implementations/function-tool/types.d.ts +0 -72
  495. package/dist/tools/implementations/function-tool/types.d.ts.map +0 -1
  496. package/dist/tools/implementations/function-tool/types.js +0 -14
  497. package/dist/tools/implementations/function-tool/types.js.map +0 -1
  498. package/dist/tools/implementations/function-tool.d.ts +0 -49
  499. package/dist/tools/implementations/function-tool.d.ts.map +0 -1
  500. package/dist/tools/implementations/function-tool.js +0 -223
  501. package/dist/tools/implementations/function-tool.js.map +0 -1
  502. package/dist/tools/implementations/index.d.ts +0 -4
  503. package/dist/tools/implementations/index.d.ts.map +0 -1
  504. package/dist/tools/implementations/index.js +0 -5
  505. package/dist/tools/implementations/index.js.map +0 -1
  506. package/dist/tools/implementations/mcp-tool.d.ts +0 -72
  507. package/dist/tools/implementations/mcp-tool.d.ts.map +0 -1
  508. package/dist/tools/implementations/mcp-tool.js +0 -246
  509. package/dist/tools/implementations/mcp-tool.js.map +0 -1
  510. package/dist/tools/implementations/openapi-tool.d.ts +0 -56
  511. package/dist/tools/implementations/openapi-tool.d.ts.map +0 -1
  512. package/dist/tools/implementations/openapi-tool.js +0 -324
  513. package/dist/tools/implementations/openapi-tool.js.map +0 -1
  514. package/dist/tools/implementations/relay-mcp-tool.d.ts +0 -38
  515. package/dist/tools/implementations/relay-mcp-tool.d.ts.map +0 -1
  516. package/dist/tools/implementations/relay-mcp-tool.js +0 -46
  517. package/dist/tools/implementations/relay-mcp-tool.js.map +0 -1
  518. package/dist/tools/index.d.ts +0 -3
  519. package/dist/tools/index.d.ts.map +0 -1
  520. package/dist/tools/index.js +0 -4
  521. package/dist/tools/index.js.map +0 -1
  522. package/dist/tools/registry/index.d.ts +0 -2
  523. package/dist/tools/registry/index.d.ts.map +0 -1
  524. package/dist/tools/registry/index.js +0 -3
  525. package/dist/tools/registry/index.js.map +0 -1
  526. package/dist/tools/registry/tool-registry.d.ts +0 -54
  527. package/dist/tools/registry/tool-registry.d.ts.map +0 -1
  528. package/dist/tools/registry/tool-registry.js +0 -146
  529. package/dist/tools/registry/tool-registry.js.map +0 -1
  530. package/dist/utils/errors.d.ts +0 -155
  531. package/dist/utils/errors.d.ts.map +0 -1
  532. package/dist/utils/errors.js +0 -203
  533. package/dist/utils/errors.js.map +0 -1
  534. package/dist/utils/execution-proxy.d.ts +0 -75
  535. package/dist/utils/execution-proxy.d.ts.map +0 -1
  536. package/dist/utils/execution-proxy.js +0 -230
  537. package/dist/utils/execution-proxy.js.map +0 -1
  538. package/dist/utils/index.d.ts +0 -11
  539. package/dist/utils/index.d.ts.map +0 -1
  540. package/dist/utils/index.js +0 -7
  541. package/dist/utils/index.js.map +0 -1
  542. package/dist/utils/logger.d.ts +0 -74
  543. package/dist/utils/logger.d.ts.map +0 -1
  544. package/dist/utils/logger.js +0 -143
  545. package/dist/utils/logger.js.map +0 -1
  546. package/dist/utils/message-converter.d.ts +0 -68
  547. package/dist/utils/message-converter.d.ts.map +0 -1
  548. package/dist/utils/message-converter.js +0 -87
  549. package/dist/utils/message-converter.js.map +0 -1
  550. package/dist/utils/periodic-task.d.ts +0 -14
  551. package/dist/utils/periodic-task.d.ts.map +0 -1
  552. package/dist/utils/periodic-task.js +0 -26
  553. package/dist/utils/periodic-task.js.map +0 -1
  554. package/dist/utils/validation.d.ts +0 -40
  555. package/dist/utils/validation.d.ts.map +0 -1
  556. package/dist/utils/validation.js +0 -162
  557. package/dist/utils/validation.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,1088 @@
1
1
  # @robota-sdk/agent-core
2
2
 
3
+ ## 3.0.0-beta.90
4
+
5
+ ## 3.0.0-beta.89
6
+
7
+ ## 3.0.0-beta.88
8
+
9
+ ## 3.0.0-beta.87
10
+
11
+ ### Patch Changes
12
+
13
+ - Release the migrated Robota product with its public SDK namespace, robota command, compatible SDK exports, internal product configuration, and verified CLI startup and delivery corrections.
14
+ - 66af868: Accept Claude-compatible WebFetch domain permission rules during session initialization while preserving hostname boundaries and deny/ask enforcement.
15
+ - 7d9cc66: Add trusted host scheduling for model tool rounds, with dependencies, bounded independent work,
16
+ and shared-resource reader/writer exclusion. Unknown resources serialize conservatively. Failed
17
+ predecessors or invalid plans produce paired skipped receipts, while settled recovery receipts
18
+ and already running sibling outcomes remain intact.
19
+ - 7d9cc66: Retain typed text and image observations alongside structured tool data through runtime settlement, history, and recovery. Deliver tool images as native content in OpenAI Responses and Anthropic requests, retain structured error receipts, include media in bounded result admission, and reject malformed MCP image observations with reconciliation state intact.
20
+ - 7d9cc66: Preserve a result for each remaining call when a sequential tool batch stops after failure. Persist skipped calls without dispatch and reject recovery records that claim an executed action was skipped.
21
+ - 7d9cc66: Retain typed resource and audio observations alongside structured tool results through history, durable receipts, recovery, size admission, and session persistence. Preserve opaque resource references without fetching them, project embedded text and explicit unsupported binary/audio diagnostics into provider requests and compaction transcripts, and validate persisted observation shapes on reload.
22
+ - 7d9cc66: Retain registered tool source attribution in observations and preserve ordered outcome receipts independently of conversation summaries.
23
+ - 7d9cc66: Observe scheduler queue intervals separately from pre-dispatch admission, permission and tool work.
24
+ Preserve valid duration totals when live trace detail is bounded, reporting invalid evidence explicitly
25
+ through content-free console and OTLP traces without altering dispatch, recovery or settlement.
26
+ - 7d9cc66: Retain registered attribution on refused and interrupted call receipts without replacing the source of actual or recovered settlements, and project undispatched registered calls into live and restored presentation history.
27
+
28
+ ## 3.0.0-beta.86
29
+
30
+ ## 3.0.0-beta.85
31
+
32
+ ### Patch Changes
33
+
34
+ - 41cca13: Fixed `run(input, { allowToolOnlyCompletion: true })` throwing an internal `[STRICT-POLICY]` error
35
+ when a round produced neither a tool call nor any text — for example a tool-calling decision agent
36
+ whose model answered with nothing at all. `allowToolOnlyCompletion` only widens what counts as a
37
+ finished turn (a tool call alone, with no final text); an ordinary text-only reply already completes
38
+ normally and is unaffected, and a turn that ends in tool results still resolves with `''`. A turn
39
+ that ends with neither text nor a tool result now rejects with a new, catchable `EmptyCompletionError`
40
+ (`code: 'EMPTY_COMPLETION'`) instead of the internal invariant message; `resume()` of such an
41
+ execution raises the same error.
42
+ - ada3841: Dispatch tool-call plugin hooks around each decoded attempt, including unknown-tool refusals,
43
+ and emit the event emitter plugin's before-execution event. A pre-effect wait resumes the same
44
+ logical call without repeating its before hooks; recovered results do not replay call hooks.
45
+
46
+ Pair parallel tool analytics by the logical execution ID, including calls of the same tool.
47
+
48
+ - 5093a30: A `ConversationAgent` run now calls `beforeConversation`, with `beforeExecution`, and `onStreamingChunk` for
49
+ each streamed piece of text, in order; the round waits for those chunk hooks before it goes on,
50
+ whether the provider call returned, failed or was interrupted. `EventEmitterPlugin` therefore emits
51
+ `CONVERSATION_START`.
52
+
53
+ The run result's `toolCalls` now carry each executed call's id and `result: null` for one that
54
+ failed, so `EventEmitterPlugin` emits `TOOL_ERROR` instead of `TOOL_SUCCESS` for a failed call, and
55
+ `WebhookPlugin`'s `tool.executed` payload reports it as failed with its call id.
56
+
57
+ `EXECUTION_START`, `EXECUTION_COMPLETE` and `EXECUTION_ERROR` are marked deprecated: no run emits
58
+ them; the `AGENT_EXECUTION_*` events are the ones a run emits. `beforeToolCall`,
59
+ `beforeToolExecution` and `afterToolCall` are still not called.
60
+
61
+ - 94b2c87: A PreToolUse `command` hook can now steer a tool call, not only refuse it. The permission gate
62
+ applies the winning `hookSpecificOutput.permissionDecision`:
63
+
64
+ - `allow` skips the prompt a person would otherwise get. Deny rules, refusals from the mode, the
65
+ `auto` mode classifier and asks that must reach a person (an `ask` rule, a protected path, a
66
+ policy that asks about everything) still apply.
67
+ - `ask` sends the call to a person even when the mode or a remembered consent would run it. The
68
+ answer is not remembered, and with no one to ask the call is refused.
69
+ - `defer` leaves the call to the normal flow, as before.
70
+
71
+ Before this change these decisions were read and then ignored.
72
+
73
+ `updatedInput` is still not applied: the call runs the input it was made with, and an `allow` sent
74
+ with an `updatedInput` is not applied either, since it approved another input.
75
+
76
+ `runHooks` (agent-core) now reads a decision and an `updatedInput` only from `command` hooks: a
77
+ `prompt` or `agent` hook answers from a model that reads the tool input it judges, so it can only
78
+ refuse. With several hooks, `ask` now outranks `defer` (`deny` > `ask` > `defer` > `allow`), and the
79
+ reported `updatedInput` is the one sent with the winning decision.
80
+
81
+ - 3ab2eca: - External presets accept every permission mode a session does, `auto` included; `auto` used to fail validation.
82
+ - `createDagFramework({ ports: { costMeta } })` wires cost-metadata management; without it cost operations still report that they are unsupported.
83
+ - `startCli()` runs the subagent worker when a subagent starts the embedder's entry script again, as the `robota` executable already did; an embedded CLI used to start a second CLI there.
84
+ - The provider `executor` option docs no longer import a `RemoteExecutor` that does not exist, and `IRemoteExecutorConfig` is marked deprecated: nothing implements a remote executor.
85
+
86
+ ## 3.0.0-beta.84
87
+
88
+ ### Minor Changes
89
+
90
+ - 9f46375: A run can record its model calls and tool effects in a journal the host owns, and continue from it
91
+ later. Pass `executionJournal` in the run options: each model request and response, and each tool
92
+ call's intent, start and result, is written and awaited before the run moves on. If a write fails,
93
+ the run stops with an `ExecutionJournalError`, even when it is also being cancelled; the model never
94
+ sees it as a tool failure it could retry. A journaled run waits for a cancelled model call to
95
+ finish, because its late reply can still carry usage or tool calls that must be recorded.
96
+
97
+ With a journal that can also read its records back (`IRecoverableExecutionJournal`), a new `ConversationAgent`
98
+ for the same conversation continues where the old one stopped, without new user input and without
99
+ repeating calls whose results were saved:
100
+
101
+ - `ConversationAgent.resumeToolCalls()` runs the latest saved batch of tool calls without calling the model.
102
+ - `ConversationAgent.resume()` continues the whole execution, keeping its remaining round and repeated-input
103
+ limits. It refuses a different provider or model. Turn-level lifecycle hooks do not run again, and
104
+ structured output cannot be recovered. A deferred tool the execution had loaded that is no longer
105
+ registered raises `ExecutionRecoveryError`.
106
+
107
+ A tool can ask for an answer before it acts, through `continuation` on its execution context. The
108
+ request is saved and the run ends with `ExecutionSuspendedError`, without a completion or failure.
109
+ Tools already running beside it finish and save their real results; only calls not yet started wait.
110
+ Answering it through `toolResponses` on a later `resume()` continues the same action; an unanswered
111
+ request never lets the tool act. A tool call that may have started without a saved result raises
112
+ `ExecutionRecoveryError` and must be reconciled by the host: it is never run again automatically.
113
+ `isExecutionControlError` recognizes these errors. `callJournaledProvider`, with an
114
+ `IModelJournalContext`, journals a model call made outside a run.
115
+
116
+ ### Patch Changes
117
+
118
+ - 9c6a8db: Provider adapters now throw the specific typed failure a vendor response describes, instead of a
119
+ generic `ProviderError` carrying only its status. A 401/403 (or a vendor-specific authentication type)
120
+ becomes an `AuthenticationError`; a response naming an unavailable model — by code or, when the vendor
121
+ gives neither (Anthropic's and Gemini's real bodies carry no distinguishing code), by its message —
122
+ becomes a `ModelNotAvailableError`, whose `model` is now optional since a bare HTTP status does not
123
+ always name one; a transport failure becomes a `NetworkError`, which now also carries the provider
124
+ name. A 429's `retry-after` header (a delta or an HTTP-date) is read into `RateLimitError.retryAfter`
125
+ when the vendor sends one.
126
+
127
+ Vendor error text is scrubbed of anything that reads like a credential — an `Authorization`/`Bearer`
128
+ value, an API key in a header, query string or JSON body, a bare `sk-`/`AIza…` token — before it is
129
+ kept on any of these typed errors, so a misconfigured self-hosted gateway that echoes a request back
130
+ can no longer leak one into a message or a "Details" disclosure. The new `scrubSecrets` export applies
131
+ the same scrubbing to arbitrary text.
132
+
133
+ ## 3.0.0-beta.83
134
+
135
+ ### Minor Changes
136
+
137
+ - e689c8e: Follow-ups to connection approval and `/handoff`.
138
+
139
+ - `agent-transport-webrtc-web` — the browser remote client says `Waiting for the host to approve this connection…`
140
+ (`awaiting-approval`) after pairing, and `Connected` only once the host's session answers. A host that closes the
141
+ channel instead is shown as `refused` and is not retried, since a retry would only ask the operator again; a
142
+ first connection lost before the host answered is `failed`. Reconnect attempts count until the host admits a
143
+ connection, so a link that keeps dropping while approval is pending gives up instead of asking again and again.
144
+ - `agent-core`, `agent-session`, `agent-framework` — a turn that did not come from the operator stores its
145
+ `turnSource` (`peer`, `external`, `agent-wakeup`) beside `driverId` on the user message and in the display
146
+ history (`IRunOptions.turnSource`), so a session handed off keeps where each turn came from.
147
+ - `agent-cli` — a `/handoff` resent after a lost confirmation reports what stays behind as it is now, not as it was
148
+ at the first attempt, and after refusing to resend a session that changed, the hand-off status shows that refusal
149
+ instead of the earlier lost confirmation.
150
+
151
+ - be0e53c: A tool instance shared by several sessions sends each call's span to the session that made the call.
152
+
153
+ - **Before:** each session set its event service on the shared instance, so the span went to whichever session had set it last.
154
+ - **`agent-core`:** `IToolExecutionContext` gains an optional `instanceEventService`. `FunctionTool` emits its span there when a call carries one.
155
+ - **`agent-session`:** the permission wrapper keeps its session's service and passes it with every call.
156
+
157
+ ### Patch Changes
158
+
159
+ - 8bd5fac: Cached input tokens are no longer dropped (#3209 R3). The OpenAI and OpenAI-compatible adapters read
160
+ `prompt_tokens_details.cached_tokens` (Chat Completions, including the final streamed usage chunk) and
161
+ `input_tokens_details.cached_tokens` (Responses, OpenAI and Qwen) into `cacheReadTokens` on the message
162
+ usage: the part of the prompt served from the provider's prompt cache, present only when reported.
163
+ It reaches the committed assistant message, `readTokenUsageFromMessage()`, and the
164
+ `provider_call_completed` execution event, so a consumer can apply the cache discount.
165
+
166
+ New `sumMessagesUsage(messages)` sums the usage on assistant messages (with `cacheReadTokens` when any
167
+ reported it), so one run's usage is `sumMessagesUsage(agent.getHistory().slice(before))` without
168
+ converting through `messageToHistoryEntry` (#3209 S1). `sumHistoryUsage` returns the same triple as before.
169
+
170
+ A forced-summary reply now keeps the usage its provider reported the same way a tool round's reply
171
+ does: an endpoint that omits `total_tokens` no longer loses exactly the summary call's usage (#3209 N3). Counts
172
+ the adapter could not attest as a consistent total are recorded with `usageProvenance: 'partial'`.
173
+
174
+ - 57280bf: Every published package now declares `"engines": { "node": ">=22.12.0" }`. Before, 27 of the 38
175
+ packages declared no floor (`agent-core`, `agent-tools` and every provider among them),
176
+ `agent-session` and `agent-file-authority` declared `>=20.19.0`, and the other nine declared
177
+ `>=22.0.0`, so a consumer on Node 20 saw at most a warning from a transitive dependency.
178
+
179
+ Why 22.12: `agent-cli` and `agent-ui-terminal` need Node 22 through `ink` 7, and the CommonJS entries
180
+ of `agent-tools` and its dependents, `agent-transport`/`node` and its dependents, and
181
+ `agent-ui-terminal` `require()` ESM-only dependencies (`p-limit`, `jose`, `chalk`), which Node 22
182
+ supports unflagged only from 22.12. `engines` is advisory unless the consumer enables `engine-strict`.
183
+
184
+ No code changes: `tsdown` now reads `node22.12.0` as its build target from the field.
185
+
186
+ - 5033dd9: When the round cap ends a run on a tool round and the follow-up summary call fails, `run()` and
187
+ `runStream()` now reject with that call's own provider error (for example a `RateLimitError` with
188
+ `recoverable: true`, or the provider's 400 error) instead of a generic
189
+ `[STRICT-POLICY] Failed execution result missing error field` error. The failure is recorded in
190
+ history like a failed round. An aborted summary call now resolves the run as interrupted, like an aborted round, instead of failing.
191
+ - 18c0d5c: Every published package now exports `./package.json`, so `require('<package>/package.json')` and
192
+ `import('<package>/package.json', { with: { type: 'json' } })` work instead of failing with
193
+ `ERR_PACKAGE_PATH_NOT_EXPORTED`, and each tarball now ships the package's `CHANGELOG.md`.
194
+ - dbd888d: A `run()` or `runStream()` whose signal is already aborted when its turn comes now fails as an abort:
195
+ `name === 'AbortError'`, so `isAbortFailure(err)` holds without the signal. The signal's own reason is
196
+ thrown when it already is an `AbortError` (the default `controller.abort()`); any other reason,
197
+ including an error that only wraps an abort, becomes the `cause` of an abort error whose message says
198
+ `Run aborted before it started`, or `Run aborted while queued behind another run on this instance`
199
+ only when the run actually waited behind another. It still never reaches the provider or the history.
200
+ Previously it was a plain `Error` that always claimed the run had been queued.
201
+ - 1887e54: A run's answer now comes from its own turn. A turn run with `allowToolOnlyCompletion` that ends in
202
+ tool calls resolves with `''` instead of throwing a `[STRICT-POLICY]` error, and a later turn that
203
+ produces no text no longer resolves with the previous turn's answer. An aborted run resolves with the
204
+ text it committed before the abort (the same text history keeps, marked `interrupted`) instead of
205
+ `''`, and its result lists the tool calls the turn handled before the abort. `tokensUsed`, which plugins receive
206
+ after each run, counts only that run's provider calls instead of the whole conversation's.
207
+
208
+ ## 3.0.0-beta.82
209
+
210
+ ### Minor Changes
211
+
212
+ - c7f9203: Connected sessions can send each other files.
213
+
214
+ - `/peers send-file <session-id> <path>` sends a copy of any file the operator can read to another
215
+ live session on this host.
216
+ - The model sends a file only through the `peer_send_file` tool. Every call asks the user, showing
217
+ the path, size, hash and destination; no permission mode, rule or remembered consent answers it.
218
+ The tool reaches only files inside the workspace whose path does not look like it holds secrets
219
+ (`.env*`, `~/.ssh`, keys and credentials), and it does not exist in a turn a peer's message started.
220
+ - The receiving operator approves every file. A received file is kept as an inert copy (mode 0600)
221
+ under `$PRODUCT_USER_STATE_DIR/peer-files/<sender>/`. It is never run and never placed in the model's context.
222
+ The conversation is told only its name, size and sha256. A name that leaves that directory is
223
+ refused, a symbolic link is never written through, and nothing is overwritten.
224
+ - Transfers travel on a channel of their own (a separate connection on this host, a separate data
225
+ channel between devices), in chunks the receiver paces, up to 32 MiB, and are kept only when the
226
+ whole content matches the offered sha256. A transfer that ends early is discarded; there is no
227
+ resume.
228
+
229
+ **API**
230
+
231
+ - `agent-interface-session-mobility`: the `file` capability, which asks the operator for every
232
+ request; `ConnectionAuthority.authorizeFile`; `IFileOffer` and `IFileFrameChannel`.
233
+ - `agent-transport/node`: `sendFileOverChannel` and `receiveFileOverChannel`, the carrier over any
234
+ `IFileFrameChannel`; `DEFAULT_MAX_FILE_BYTES`.
235
+ - `agent-transport-webrtc`: `IDeviceMeshLink.openFileChannel` and `onFileChannel`.
236
+ - `agent-remote-pairing`: `file` joins `DEVICE_CAPABILITIES`. A device certificate that names it is
237
+ refused as malformed by an earlier version.
238
+ - `agent-core`: `IToolPermissionProfile.notInPeerTurn` withholds a tool from a turn a peer's message
239
+ started.
240
+ - `agent-framework`: `ICommandLocalPeersAdapter.prepareFile`.
241
+
242
+ ## 3.0.0-beta.81
243
+
244
+ ### Minor Changes
245
+
246
+ - 3038eb7: A message from another session is instant messaging: text from an untrusted third party that
247
+ carries no authority. What the model does with it is decided by the session's ordinary permissions —
248
+ rules, permission mode and remembered consent — exactly like the session's own work. The per-origin
249
+ peer policy is gone.
250
+
251
+ **BREAKING**
252
+
253
+ - `agent-core`: `IPermissionEvaluationContext.peerTurn` is now a boolean. It decides only whether a
254
+ `repliesToPeer` tool exists; every other call in a peer turn is decided as in any turn. Removed:
255
+ `isToolAvailableInPeerTurn`, `isSecretPath`, `IPeerTurnAuthority`, `TPeerReach` (now exported by
256
+ `agent-interface-session-mobility`) and `IToolPermissionProfile.workspacePaths`.
257
+ - `agent-tools`: `Read` and `Glob` no longer declare `workspacePaths`.
258
+ - `agent-session`: `ISessionRunOptions.peerReach` is replaced by `peerTurn?: boolean`, and
259
+ `ISessionOptions.allowPeerChanges` is removed. An ask in a peer turn is answered like any other:
260
+ a consent the operator remembered answers it, and an "always allow" given there is remembered.
261
+ - `agent-interface-session`: `IPeerTurnContext` no longer has `reach`; it carries only the reply
262
+ route.
263
+ - `agent-interface-session-mobility`: `peerReachOf` is removed; `TPeerReach` moves here. A delegated
264
+ turn carries no reach.
265
+ - `agent-framework`: the `peers.allowChanges` setting is removed (an existing value is ignored). A
266
+ peer turn is offered the ordinary tools, plus `peer_reply`.
267
+
268
+ **Changes**
269
+
270
+ - `agent-framework`: the per-turn statement tells the model the message is an opinion from an
271
+ untrusted third party, not its owner's instruction, and that it decides for itself whether and how
272
+ to act. A message still expands no `@path` and attaches no context reference, and its requests
273
+ still carry no provider-hosted tool, since no permission step can decide one. The session takes
274
+ at most 6 messages a minute and 30 an hour from each sender for a turn; a message over the limit
275
+ is refused with a reason the sender receives. A prompt answer given in the name of a `peer:` or `external:`
276
+ driver is ignored. External-event turns keep their tool-less baseline.
277
+ - `agent-cli`: incoming peer turns carry only their reply route.
278
+
279
+ - 02b7452: A reply to a peer session is decided by the permission system like any call that sends something
280
+ off this machine, and it goes only to the sender that was admitted.
281
+
282
+ - `agent-core` — a tool declaring `repliesToPeer` is still refused outside a peer turn; inside one it
283
+ is decided by the ordinary steps: deny, ask and allow rules, then the mode. It declares no risk
284
+ class, so it asks by default, is refused in plan mode and proceeds under bypass. `IPeerTurnAuthority`
285
+ no longer has `toolUsed`.
286
+ - `agent-session` — an "always allow" answer to the reply is remembered and answers later replies,
287
+ as for any tool; other asks in a peer turn still need a fresh approval each time.
288
+ - `agent-framework` — `peer_reply` asks the operator by default, showing the full text and the peer
289
+ it goes to; `permissions.allow`/`deny` rules naming `peer_reply` apply. `PeerMessageIngress`
290
+ refuses a message whose origin names a sender other than the admitted one, or whose admission names
291
+ no sender, and submits the turn with the admitted identity.
292
+ - `agent-cli` — a local peer message is taken as coming from the session it names only when that
293
+ session confirms, at its own socket, that it is sending exactly that message to this receiver.
294
+ The reply target, the driver id and the operator's notices come from the confirmed sender. A
295
+ session on an earlier version cannot confirm, so its messages are refused; both sessions need this
296
+ version to message each other.
297
+
298
+ - ec5e477: Add a credential store port (`ICredentialStore` in `agent-core`) and keep the CLI's secrets behind it: the OS keychain through the optional `@napi-rs/keyring` binding (macOS Keychain, Windows Credential Manager, Linux Secret Service), else an owner-only file under `$PRODUCT_USER_STATE_DIR/credentials`. The backend is chosen at first use, recorded, and named by `/remote-control status`; a recorded keychain that stops working fails closed instead of degrading to the file.
299
+
300
+ The remote-control host identity key moves into the store. The old `$PRODUCT_USER_STATE_DIR/remote-host-identity.json` may have been copied by backups or dotfile sync, so it is not carried over: on the first run after upgrading a new host key is generated, the old file is removed, and the operator is told once that trusted devices must pair again.
301
+
302
+ ## 3.0.0-beta.80
303
+
304
+ ### Major Changes
305
+
306
+ - 4eea54b: **`@robota-sdk/agent-core` removes `IMCPToolConfig` and `IToolFactory.createMCPTool()` with no compatibility facade.**
307
+
308
+ Both were exported with no producer and no consumer. `IToolFactory` had no implementation anywhere in
309
+ this repository — `grep -rn 'IToolFactory' packages/*/src apps/*/src` returned only the declaration
310
+ and its export line — and nothing constructed an `IMCPToolConfig`. An MCP server definition is now
311
+ owned by `@robota-sdk/agent-mcp` (MCP-001), which also absorbs the raw/validated/resolved
312
+ forms, source provenance and shadow metadata, strict foreign `mcpServers` decoding, environment
313
+ templates, whole-entry precedence, reversible disable overlays, redacted management projections and
314
+ activation identity.
315
+
316
+ `major` because an exported type and an interface member are gone. An external implementer of
317
+ `IToolFactory` — there is none in this repository — stops compiling until it removes its
318
+ `createMCPTool` member; a caller of the removed type must take the `agent-mcp` definition contract
319
+ instead. No facade is retained deliberately: keeping a deprecated alias would re-create the state
320
+ this change exists to end, two MCP contracts with one of them dead.
321
+
322
+ `@robota-sdk/agent-mcp` is the same workspace package previously named `@robota-sdk/agent-tool-mcp`,
323
+ renamed in place. It stays `private`, so the rename publishes nothing; MCP-002 owns its publication
324
+ together with the official MCP TypeScript SDK client and the first product-reachable slice.
325
+
326
+ - f336838: One permission evaluation order for every caller. The interactive session, background tasks and
327
+ subagents used to run two different resolvers, so the same call could be decided differently
328
+ depending on who made it. They now share `evaluatePermission`, and a background policy only adds a
329
+ ceiling, an ask-everything flag and the task's own lists to it:
330
+
331
+ deny → caller ceiling → unevaluable deny (ask) → never-auto-approve set (ask) → ask-everything →
332
+ bypassPermissions → allow → mode.
333
+
334
+ - **`ask` rules.** `permissions.ask` patterns always ask, in every mode including
335
+ `bypassPermissions`. They are matched per command like a deny rule, and are validated at
336
+ construction alongside `allow` and `deny`.
337
+ - **Never auto-approved, bypass included:** removing a critical path with `rm`/`rmdir` (the root, a
338
+ top-level directory, home, the working directory or a parent), and a modify-class write into
339
+ `.git`, `.Robota`, `.claude`, `.agents`, `.mcp.json`, `.gitconfig`, `.npmrc` or a shell rc file.
340
+ Files inside an isolated worktree (`$PRODUCT_PROJECT_STATE_DIR/worktrees/<name>/…`) are ordinary files. With no
341
+ approver attached, an ask is a denial.
342
+ - **A ceiling is checked before bypass and before any ask.** A subagent's `inherit-allowlist` ceiling
343
+ is now the parent's _effective_ rules, read live at spawn: settings, preset lists and command
344
+ auto-allows. It used to be the raw settings file. An unevaluable deny under a policy now asks,
345
+ like everywhere else, where it used to deny outright; with no approver it is still a denial.
346
+ - **Settings layers union `permissions.allow`**, as they already did `deny`. A checked-in project
347
+ file no longer silently discards the user's allow list.
348
+ - **Print mode, `createQuery()` and headless sessions default to `default` mode**, not
349
+ `bypassPermissions`. They have no approver, so a call that would ask is denied. Pass
350
+ `--permission-mode` / `permissionMode: 'bypassPermissions'` explicitly for unattended runs.
351
+
352
+ **Breaking:**
353
+ - `@robota-sdk/agent-core` removes `resolvePermissionByPolicy` and `TPermissionPolicyDecision` in
354
+ favour of `projectPermissionPolicy` plus `evaluatePermission`'s new `context` argument.
355
+ - `@robota-sdk/agent-framework` changes the settings merge rule for `permissions.allow`, and the
356
+ default permission mode of `createQuery()` and headless sessions.
357
+
358
+ - 475e085: **BREAKING — CORE-028: the Node-only surface moves from the main barrel to `@robota-sdk/agent-core/node`.**
359
+
360
+ `canonicalizePath`, `isPathInside`, `CommandExecutor` and `HttpExecutor` were exported from the main
361
+ barrel. Each one needs `node:fs`, `node:path` or `node:child_process`, so the package's `browser`
362
+ build had those three builtins in its static import graph — a package declaring a `browser` export
363
+ condition while statically importing Node builtins. A bundler resolves that one of two ways: it
364
+ errors, or it aliases the builtin to an empty object and the code fails later at a call site with no
365
+ useful trace. Neither is a build you want to ship.
366
+
367
+ The four now live at the `./node` subpath, which makes the dependency legible at the import site
368
+ instead of hiding it inside a barrel. The main barrel's static graph imports zero Node builtins,
369
+ which a test now holds at zero rather than at a list of known remainders.
370
+
371
+ **Migration** — change the import path; no signature changed:
372
+
373
+ ```ts
374
+ // before
375
+ import {
376
+ canonicalizePath,
377
+ isPathInside,
378
+ CommandExecutor,
379
+ HttpExecutor,
380
+ } from '@robota-sdk/agent-core';
381
+
382
+ // after
383
+ import {
384
+ canonicalizePath,
385
+ isPathInside,
386
+ CommandExecutor,
387
+ HttpExecutor,
388
+ } from '@robota-sdk/agent-core/node';
389
+ ```
390
+
391
+ `./node` carries `"browser": null`, declaring that the subpath has no browser implementation, so a
392
+ resolver that honours a null target refuses it by name instead of quietly serving the Node build.
393
+
394
+ That declaration is worth stating precisely, because it was measured rather than assumed. Bundling
395
+ `import '@robota-sdk/agent-core/node'` under `['browser', 'import', 'default']` with the repo's own
396
+ bundler does NOT stop at the null: through a workspace link it resolves the `source` entry and then
397
+ fails on `node:fs`, `node:path` and `node:child_process`. The build still breaks, and the message
398
+ still names the Node dependency, so the failure is visible either way — but by a different mechanism
399
+ than the null, and only spec-compliant resolvers give the cleaner error. The claim here is the
400
+ declaration, not a guarantee about every bundler.
401
+
402
+ ### Minor Changes
403
+
404
+ - 1698be4: A child-process subagent can no longer send the parent's provider credential to a different
405
+ endpoint.
406
+
407
+ - **Before spawning a child**, the parent compares every environment variable that decides where
408
+ the provider connects or which credential it sends. If the child's environment differs, the job
409
+ is refused before the credential leaves the parent. The error names the variable, never its
410
+ value. The variables compared are:
411
+ - the proxy and TLS variables;
412
+ - the variables the provider's SDK reads, such as `OPENAI_BASE_URL`, `ANTHROPIC_AUTH_TOKEN` and
413
+ the Vertex settings;
414
+ - the credential's own variable.
415
+ - **The child** repeats the check before it builds its provider. It builds that provider from the
416
+ parent's effective connection exactly: it no longer fills in a base URL, options or a default
417
+ credential from its own registry, and a credential reference that resolves to nothing is refused.
418
+ - **Where the effective connection comes from:** the parent applies its own definition defaults
419
+ (base URL, options). `profileName` is sent only when it names the connection actually sent.
420
+ - **New contracts:**
421
+ - `IProviderDefinition.destinationEnvironment`, declared by every built-in provider.
422
+ - `createProviderFromExactProfile`, `connectionEnvironmentNames`,
423
+ `findConnectionEnvironmentDivergence`, `sealConnectionEnvironment`,
424
+ `verifyConnectionEnvironment` and `TRANSPORT_ENVIRONMENT`.
425
+ - The start payload's `connectionCheck`.
426
+ - The child-process runner's `providerDefinitions` option, now required: a provider with no
427
+ definition there is refused, because its connection cannot be checked.
428
+
429
+ - d4189b9: The rest of the per-server MCP OAuth lifecycle: signing in to a server without a local browser,
430
+ signing out of it with token revocation, and each server's sign-in state in `/mcp`.
431
+
432
+ - **`robota mcp login <name> --no-browser`** prints the authorization URL and reads the redirect URL
433
+ the user pastes back (not echoed). `runMCPOAuthLogin` takes `readRedirect` for this; nothing
434
+ listens on the redirect URI then. The pasted URL is held to the loopback listener's rules through
435
+ `createPastedRedirectAcceptor`: it must be the registered redirect URI (same origin and path, no
436
+ user info), carry the sign-in's `state` (compared in constant time), and is accepted once; an
437
+ error redirect is `authorization-denied` without its `error_description`, and the RFC 9207 `iss`
438
+ check applies as before. `openBrowser` now also receives the redirect URI. `readRedirect` gets a
439
+ signal that aborts on cancel or at `callbackTimeoutMs` (5 minutes by default, as for the loopback
440
+ listener); a paste longer than the prompt accepts fails as `redirect-too-long`.
441
+ - **Signing out** (`runMCPOAuthLogout`; `robota mcp logout <name>`; `/mcp logout <serverId>`):
442
+ deletes the stored credential under the refresh lock, then revokes the refresh token and the
443
+ access token (RFC 7009) when the stored issuer advertises `revocation_endpoint`. Revocation is a
444
+ POST through the egress policy that never follows a redirect and is byte-bounded; it authenticates
445
+ the client by `revocation_endpoint_auth_methods_supported` when advertised, otherwise the way its
446
+ refresh does. The local delete always happens. Each token's outcome is reported in `tokens`, and
447
+ overall as `revoked`, `partial`, `unsupported`, `failed` or `not-attempted`, with fixed reasons
448
+ only (new: `revocation-failed`, and `token-type-not-revocable` for RFC 7009
449
+ `unsupported_token_type`). `/mcp logout` also makes the session's authenticator drop the token it
450
+ holds (`IMCPOAuthAuthenticator.forget`).
451
+ - **Sign-in state:** `readMCPOAuthCredentialState` answers `signed-in`, `expired-refreshable`,
452
+ `sign-in-required` or `signed-out` — never anything token-derived. `/mcp` shows it for every
453
+ OAuth server; a server this session was told needs a sign-in reads `sign-in-required`.
454
+ `ICommandMCPActivationAdapter` gains optional `oauthStatus` and `oauthLogout`
455
+ (`ICommandMCPOAuthStatus`, `ICommandMCPOAuthLogoutResult`).
456
+ - **No in-session sign-in:** signing in stays `robota mcp login <server>` in a terminal, since it
457
+ needs the terminal (browser, pasted redirect, hidden secret prompt) a running session owns. `/mcp`
458
+ names that command for a server that needs a sign-in, as does the session's sign-in notice; the
459
+ server name is shown there only when it is safe to paste into any shell — a plain token not
460
+ starting with `-` or `=` — and is otherwise replaced by `<server>` (`shellArgumentForDisplay` in
461
+ `agent-core`; nothing is quoted, since quoting rules differ between shells). Server names in OAuth
462
+ notices have control and format characters escaped.
463
+ - **Refresh hardening:** on `invalid_grant`, the store is read again under the lock; a refresh token
464
+ another holder rotated in meanwhile is kept (and used when still valid) instead of being deleted.
465
+ The expiry skew is capped at half the token's lifetime, so a short-lived token is not refreshed on
466
+ every request; credentials now record `issuedAt` for this.
467
+
468
+ - 9edae52: Remote MCP servers can authenticate with OAuth: `robota mcp login <name>` signs in, and sessions
469
+ send the stored token.
470
+
471
+ - **Declaring it:** `"oauth": { "clientId"?, "callbackPort"?, "authServerMetadataUrl"?, "scopes"? }`
472
+ on a remote server definition, decoded into `IMCPOAuthConfig`.
473
+ - `authServerMetadataUrl` must be `https`. `scopes` wins over the server's metadata and a 401's
474
+ `scope`.
475
+ - A `clientId` needs a `callbackPort`: a pre-registered client's redirect URI is fixed.
476
+ - `clientSecret`, unknown keys and `${}` templates are refused; `oauth` beside `headersHelper`,
477
+ or on a stdio server, is refused.
478
+ - `oauth` is no longer reported as unsupported authentication, and it is part of the definition
479
+ fingerprint.
480
+ - **Signing in** (`runMCPOAuthLogin`; `robota mcp login <name> [--client-secret]`):
481
+ - Discovery is done here, not by the SDK's `discoverOAuthServerInfo`: the protected-resource
482
+ metadata `resource` must be the canonical server URL, the authorization server's `issuer` must
483
+ be the server it was fetched for, the server, authorization, token and registration
484
+ endpoints must be `https`, and the authorization server must advertise PKCE `S256`
485
+ (`pkce-unsupported` otherwise). A 401's `resource_metadata` is never followed to another origin,
486
+ and a server without resource metadata is not guessed at.
487
+ `authServerMetadataUrl` skips resource discovery.
488
+ - Dynamic client registration when there is no `clientId`; PKCE, a random `state` and the
489
+ RFC 8707 resource indicator on the authorization request; the RFC 9207 `iss` checked on the
490
+ redirect when sent, and required when the server promises it.
491
+ - The loopback callback listens on `127.0.0.1`, checks `Host`, answers only `GET /callback` with
492
+ the sign-in's `state` (compared in constant time), once, within 5 minutes, and serves a static
493
+ page that never shows `error_description`.
494
+ - The browser opens by argv (`open`, `xdg-open`, `rundll32 url.dll,FileProtocolHandler`) and only
495
+ for an `https` URL. `--client-secret` asks for the secret without echo (or reads stdin's first
496
+ line) and only for a pre-registered client.
497
+ - **Network:** every OAuth request goes through the egress policy and is capped at 256 KiB.
498
+ `agent-core` adds `postWithEgressPolicy`, which refuses a redirect (`redirect_refused`) instead
499
+ of following it; registration, token and refresh requests use it.
500
+ - **Storage:** `IMCPOAuthCredentialStore` (`get`/`set`/`delete`), keyed by the server's security
501
+ identity and canonical URL together. `createFileOAuthCredentialStore` keeps 0600 files in a 0700
502
+ `$PRODUCT_USER_STATE_DIR/mcp-credentials/`. The issuer, token endpoint and client (with its secret, if any, and
503
+ the client authentication method dynamic registration returned) are stored with the tokens. A
504
+ sign-in stores its credential under the refresh lock, so a refresh in flight cannot overwrite it.
505
+ - **Sessions** (`createOAuthAuthenticator`, wired for every `oauth` definition):
506
+ - Sends the stored token as `Authorization: Bearer`, refreshing it first when expired — including
507
+ a token cached earlier in the session — and only at the stored token endpoint.
508
+ - One refresh at a time per credential: in a process through `MCPSingleFlightCache`, across
509
+ processes under `createFileOAuthRefreshLock`, re-reading the store once the lock is held. A
510
+ stale lock is taken over, and a lock released, only after it is renamed aside and proven to be
511
+ the one judged — never another process's fresh lock.
512
+ - A 401 rediscovers, then refreshes once and retries; an authorization server that changed clears
513
+ the tokens — compared, under the lock, with what is stored then, so a newer sign-in is kept. `invalid_grant`, or nothing stored, asks the user to run `robota mcp login <name>`. A 403
514
+ `insufficient_scope` fails and names the scope.
515
+ - An `oauth` definition is never connected without the authenticator (`oauth-unavailable`).
516
+ - Failures are `MCPOAuthError` with a fixed reason; no code, verifier, token, secret or
517
+ authorization-server text reaches an error, a notice or a log.
518
+
519
+ - 4078a72: Model fallback chain. `--fallback-model a,b` (or the `fallbackModel` settings array; the flag wins) names up to three models a turn moves to when its model is overloaded, unavailable or failing on the server. An entry is a provider profile, `profile:model`, a bare model on the primary's provider, or `default`. The move happens only before any output has streamed, lasts for the current turn, and is shown as a system note; entries that cannot be built are passed over and entries outside the organization's `allowedProviders` are dropped with a notice. `FallbackProvider` in agent-framework implements it over the session's provider; `IChatOptions` gains `executionId`, `onModelFallback` and `preserveContextWindow`, `IAIProvider` gains optional `resolveModelRoute`, and the execution loop emits a `provider_fallback` event and attributes requests, call observations, committed replies, the response cache and usage to the model that answered. A turn that ran on more than one model records per-model `modelShares` on its usage observation, which personal usage reports split by model and provider. A `/provider` switch keeps the chain, read again for the new primary.
520
+ - 4c73a0b: Provider failures keep the vendor's HTTP status and error type. `ProviderError` gains `status` and `type`, adapters throw `ProviderError` (or `RateLimitError` for a rate limit) instead of a bare `Error`, an Anthropic mid-stream `overloaded_error` event surfaces as a `ProviderError` with that type, and media errors carry `status`. New `classifyProviderFailure` says whether a failure is worth retrying on another model, and `toProviderError` is the shared adapter mapping.
521
+ - 196a900: Permission rules can say more than one argument per tool.
522
+
523
+ - **`Tool(name:value)` in deny and ask rules** matches a named top-level parameter, with `*` in the
524
+ value (`Bash(run_in_background:true)`, `Agent(model:opus*)`, `github__create_issue(repo:acme/*)`).
525
+ It is a parameter rule only when `name` is one of the tool's parameters, so
526
+ `WebFetch(https://…)` keeps its meaning. A parameter the call omits never matches, and a
527
+ non-scalar value is unevaluable, so the call asks. Allow rules may not use the form.
528
+ - **A rule on the primary field** (`Bash(command:rm *)`) is reported at startup and asks on every
529
+ call, instead of being silently ignored.
530
+ - **Tool-name globs.** Deny and ask rules may glob the tool name (`github__*`). Allow rules may do so
531
+ only after a literal `<server>__` prefix; an unanchored allow glob is refused at construction.
532
+ - **A bare-name deny removes the tool from the model's context.** `Tool`, `Tool(*)` or a name glob
533
+ withholds it from the offered set and the deferred-tool catalogue, live, instead of offering it
534
+ and refusing every call. `IAgentConfig.isToolVisible` is the new seam.
535
+ - **MCP canonical names keep the whole `<server>__` prefix when truncated**, so a server glob still
536
+ names every tool of that server.
537
+
538
+ - 34e50f0: A new permission mode, `auto`, lets a model classifier approve or block what would otherwise prompt.
539
+
540
+ - **What it decides:**
541
+ - Reads and in-workspace edits run as in `acceptEdits`.
542
+ - Commands and other calls the mode leaves open go to the classifier, a side call to the
543
+ session's own model. It sees the call, the working directory and the git remotes, never the
544
+ conversation.
545
+ - A block reaches the model with its reason, so it can take another route.
546
+ - **What still reaches a person, or is refused:**
547
+ - Deny rules and background ceilings apply first.
548
+ - `ask` rules, critical removals and protected paths ask a person.
549
+ - After 3 refusals in a row (blocks, or no usable verdict), or 20 blocks in the session, the
550
+ mode asks a person until one approves.
551
+ With no one to ask, the call is denied.
552
+ - **Allow rules:** in `auto` mode, allow rules that approve any command are set aside while the
553
+ mode is on. Examples are `Bash(*)`, an interpreter (`Bash(python *)`), a package runner
554
+ (`Bash(npm run *)`, `Bash(pnpm exec *)`), `Agent`, `ExecuteCommand` or `Computer`. Narrow
555
+ rules still apply.
556
+ - **Retry:** `/permissions` lists classifier blocks. `/permissions retry <n>` lets that exact call
557
+ run once, unjudged, when the model tries it again.
558
+ - **Turning it on and off:**
559
+ - `--permission-mode auto`, `/mode auto` or `/permissions auto`.
560
+ - An organization turns it off with `disableAutoMode` in the org policy.
561
+ - **New contracts:**
562
+ - `TPermissionMode` gains `'auto'`.
563
+ - `allowRulesForAutoMode` and `isBroadExecutionAllowRule`.
564
+ - `IPermissionClassifier` and `AutoModeGate`.
565
+ - The `permissionClassifier` session option.
566
+ - `Session.retryPermissionDenial`, and `retryDenial` on the permission-mode adapter.
567
+ - The `'classifier'` denial reason.
568
+ - `createModelPermissionClassifier`.
569
+ - The `disableAutoMode` option on `createSession` and `IOrgPolicy`.
570
+
571
+ - 722e88a: Shell commands can run in an OS-level sandbox: bubblewrap on Linux and WSL2, Seatbelt on macOS.
572
+
573
+ - **Confinement:** covers the command and every process it starts.
574
+ - Writes are limited to the working directory, the temporary directories and
575
+ `sandbox.filesystem.allowWrite`.
576
+ - Agent, git-hook, MCP and shell configuration inside the workspace stays read-only.
577
+ - `sandbox.filesystem.denyRead` hides paths from the command.
578
+ - The network is on or off (`sandbox.network.enabled`).
579
+ - **Modes:** `/sandbox` switches between `auto-allow`, `regular` and `off` for the next command and
580
+ saves the choice.
581
+ - In `auto-allow` (`sandbox.autoAllowBashIfSandboxed`), a confined command runs without a prompt
582
+ in `default` and `acceptEdits`.
583
+ - Deny rules, ask rules, critical removals and plan mode still apply first.
584
+ - **Exclusions:** `sandbox.excludedCommands` run unconfined, through the ordinary permission path.
585
+ - **When the sandbox cannot run:** a missing or unusable backend is reported at startup, in
586
+ `robota doctor` and in `/sandbox`, and commands then run unconfined.
587
+ `sandbox.failIfUnavailable` refuses to start instead.
588
+ - **New contracts:**
589
+ - `OsSandboxClient`, `detectOsSandbox`, `bubblewrapArguments`, `seatbeltProfile`.
590
+ - `ISandboxClient.wrapCommand` and `autoApproves`.
591
+ - `IPermissionEvaluationContext.sandboxAutoApproved`.
592
+ - The `commandSandbox` session option.
593
+ - The `sandbox` settings key and the `sandbox` command host adapter.
594
+
595
+ - d23c848: Built-in read-only shell commands run without a prompt.
596
+
597
+ A Bash call is decided like a read, and runs without a prompt in every mode (`plan` included), when
598
+ every command in it comes from the fixed read-only set (`ls`, `cat`, `grep`, `find` without actions,
599
+ `git status`/`log`/`diff`/`show` and similar) and it also:
600
+
601
+ - stays inside the workspace: every path operand resolves inside once symlinks are followed, as
602
+ `Read` requires;
603
+ - uses only printable ASCII syntax that bash, zsh, fish and PowerShell all read the same way.
604
+
605
+ Deny and ask rules still apply first. A command that writes through a redirect, expands or
606
+ substitutes anything, or runs git outside the session's repository takes the ordinary path.
607
+
608
+ New exports: `isReadOnlyCommandLine` and `TResolveInWorkspace`. `IPermissionEvaluationContext`
609
+ gains `resolveInWorkspace`, which `PermissionEnforcer` supplies.
610
+
611
+ - fec722f: Carry a trusted canonical absolute execution root from DAG product composition through worker task
612
+ input and node lifecycle context. Filesystem-capable DAG nodes now use that injected authority instead
613
+ of ambient `process.cwd()`, and authored `cwd` values may only narrow it.
614
+
615
+ BREAKING: `ITaskExecutionInput`, `INodeExecutionContext`, worker composition dependencies,
616
+ `LocalDagRuntimeProvider`, and the CLI-local runner now require an execution root at their non-convenience
617
+ boundaries. `createDagFramework()` preserves no-argument construction by validating and capturing its
618
+ current directory at the factory boundary. The filesystem-backed skill node is explicitly Node-only and
619
+ no longer advertises a browser export condition.
620
+
621
+ - 2d3b2c0: Make shell resolution executable-aware across managed and scheduled background command runners. The core
622
+ resolver now accepts one request with explicit-executable precedence, returns matching argument families
623
+ for sh/bash, PowerShell/pwsh, and cmd, and fails closed with `UnsupportedShellError` for unknown explicit
624
+ executables. Executor exposes one shared request adapter and both concrete runners consume its pair.
625
+ - 4772067: **BREAKING — ARCH-031: the subagent seam is derived from its transport SSOT instead of copied.**
626
+
627
+ One field family — what a subagent job IS — was declared three times as independent shapes and carried
628
+ between them by six hand-written object literals that nothing checked for totality. A field added to
629
+ either side had to be hand-copied at every hop, and a miss compiled clean as a silent no-op. TYPE-003
630
+ named this cause and derived one hop; the next two changes each dropped a field at a hop it had skipped
631
+ (CORE-025's permission policy, and ANALYTICS-001's `usage`, dropped in the very commit that added it).
632
+
633
+ ```ts
634
+ // now, in @robota-sdk/agent-interface-transport
635
+ export type ISubagentSpawnRequest = Omit<IAgentBackgroundTaskRequest, 'kind'>;
636
+ export type ISubagentJobResult = Omit<IBackgroundTaskResult, 'kind' | 'exitCode' | 'signalCode'>;
637
+ ```
638
+
639
+ All four projections collapse to spreads. `parentTaskId` and `providerProfile` now reach the runner
640
+ because they exist on the source, not because someone remembered them.
641
+
642
+ **Per package, classified against each barrel:**
643
+
644
+ - **`agent-executor` (major)** — the barrel loses `ISubagentSpawnRequest` and `ISubagentJobResult` (they
645
+ moved to their owner; re-publishing them here would be a pass-through re-export). `ISubagentJobStart`
646
+ and `ISubagentJobHandle` rename `jobId` → `taskId`, `ISubagentJobStart` gains `worktree?`, and
647
+ `ISubagentWorktreePrepareRequest` renames `jobId` → `taskId`.
648
+ - **`agent-framework` (major)** — the barrel loses eleven type-only re-exports of `agent-executor`-owned
649
+ types. They carried zero runtime values, so they bought none of the assembly convenience a runtime
650
+ facade exists for, while making one field family look like it had three owners. Separately,
651
+ `ISpawnAgentTaskRequest.permissionPolicy` goes optional → **required**.
652
+ - **`agent-subagent-runner` (major)** — `ISubagentWorkerStartPayload` renames `jobId` → `taskId` and gains
653
+ `worktree?`. This package is not in the item's declared `area:`; the audit that caught it is the reason
654
+ it is here.
655
+ - **`agent-interface-transport` (minor)** — two new barrel exports; nothing removed or renamed.
656
+ - **`agent-core` (minor)** — **two** new barrel exports. `DEFAULT_BACKGROUND_PERMISSION_POLICY` is the
657
+ intended one; collapsing the hand-listed permissions block to `export *` also surfaced
658
+ `clearRegisteredToolArgumentKeys`, which the old list had omitted. It is documented as public rather
659
+ than re-narrowed — a barrel that cannot fall out of step with its owner is the point of the collapse.
660
+ Nothing was removed: all nine previously-listed permission types remain on the barrel.
661
+ - **`agent-cli` (patch)** — migrated as the only in-repo implementer of `ISubagentWorktreeAdapter`; no
662
+ barrel change.
663
+
664
+ **`permissionPolicy` is now required at the spawn boundary**, and its default is one exported constant
665
+ owned by the permission SSOT. It was previously applied as `?? 'inherit-allowlist'` in the middle of a
666
+ projection, in **two** packages independently, with nothing keeping them equal — a security-relevant value
667
+ whose default was declared twice. Every spawn site now states its own policy.
668
+
669
+ **The worktree identity moved to the runner envelope.** It is runner-produced — the worktree does not
670
+ exist when a caller builds a request — so it rides on `ISubagentJobStart.worktree` and crosses the IPC
671
+ boundary there. The runner no longer also rewrites `request.cwd`, which had given ARCH-010's execution-root
672
+ rule two carriers that could disagree. `branchName` **relocated rather than being deleted**: it has no
673
+ reader in this repository today, and for a library that is not a reason to drop a legitimate contract.
674
+
675
+ **Renames are consistent across the SPI** (`type` → `agentType`, `jobId` → `taskId`) rather than applied to
676
+ one shape, which would have left two names for one identifier in a single file. The IPC validator's
677
+ string-literal keys are now typed against the contract, so the next rename is a compile error instead of a
678
+ runtime rejection of every start payload.
679
+
680
+ - 9fbab1b: Provider DIP Stage B (ARCH-PROVIDER-003), part 1: collapse infrastructure. Adds the
681
+ provider-registry-driven `@robota-sdk/dag-node-llm-text` node that supersedes the
682
+ per-vendor LLM nodes + router, relocates the provider config resolver into
683
+ `agent-core`, adds SSOT cost/allowedModels fields, inverts the `llm-text` validator
684
+ tombstone, and wires `createDagFramework({ providers })`. Additive — the per-vendor
685
+ nodes still exist; consumer migration + their removal follow in part 2.
686
+ - b6d14ce: Make the universal JSON-schema subset able to express an object, so a nested `z.object()` keeps its
687
+ properties and required fields instead of reaching the model as `{ "type": "object" }`. Tools and
688
+ structured-output schemas with one level of nesting are now advertised in full and enforced on the
689
+ tool-input path; `z.union` / `z.discriminatedUnion` / `z.literal` are supported and map to `anyOf`
690
+ and single-value enums; `.nullable()` keeps its null branch; and Zod's `strip`, `strict` and
691
+ `passthrough` modes stop collapsing into two `additionalProperties` emissions. Fixes the shipped
692
+ `Computer` and `AskUserQuestion` built-ins, whose action and question fields were being dropped
693
+ entirely.
694
+
695
+ `agent-core` is **minor**, not patch: `IObjectParameterSchema` is a new export, and
696
+ `IParameterSchema.type` became optional (a union node carries `anyOf` instead of a type), which is a
697
+ consumer-visible type change — two call sites in this repo needed editing to keep compiling.
698
+ `additionalProperties` also widened to `boolean | IParameterSchema`, and `required` and `anyOf` are
699
+ new members. The provider packages are **patch**: each adapts to the widened subset without changing
700
+ its own public surface.
701
+
702
+ ### Patch Changes
703
+
704
+ - 7b6234c: A tool call whose arguments fail to decode to a JSON object (invalid JSON, or a `null`/scalar/array
705
+ root — including a stream truncated mid-argument) no longer breaks the rest of its batch or the round
706
+ after it. Every other call in the same batch still executes and gets its real result; the malformed
707
+ call gets a clear per-call error instead, naming the tool and call id, and the run continues rather
708
+ than rejecting. The Anthropic and Gemini providers no longer throw when building the next request
709
+ from a conversation that still carries that call's original malformed arguments.
710
+ - a009f5b: Provider DIP Stage E (ARCH-PROVIDER-006): repo-hygiene + policy cleanup. Codified the
711
+ Family Decomposition Rule in project-structure.md (split driver = consumer/third-party
712
+ opt-in installability / extension-point registration, not dep-weight). Removed dangling
713
+ tracked references to deleted packages (tsconfig project refs, eslint glob, changeset
714
+ config `fixed` + pending changeset files), pruned 37 dead `.changeset/pre.json` entries,
715
+ and removed 24 untracked husk directories. Closes ARL-15 — the provider dependency-
716
+ inversion arc (Stages A–E) is complete.
717
+ - 4f3c075: Assemble complete, verified package generations before switching build output; preserve the previous generation on build failure and pack only verified regular-file images. Include copied CLI web assets in affected-build ordering and artifact transfer. Preserve the CLI version in managed build paths. Public runtime contracts remain compatible (patch).
718
+ - e477440: CORE-033: the abnormal paths now emit the required replay events, and history stays append-only
719
+
720
+ `provider_request`, `assistant_message_committed` and `history_mutation` are REQUIRED families, and
721
+ `agent-session` builds its session log from them: replaying every announced append, in order, is
722
+ supposed to reconstruct the conversation. Three engine sites appended without announcing, so the
723
+ reconstruction diverged at exactly the moments a reader goes to the log — the round cap, the
724
+ hard-capacity block, and a provider failure. On a capped run the summary the user actually read was
725
+ absent from every replay, and the provider call that produced it was invisible.
726
+
727
+ - The forced-summary call emits `provider_request` (`forcedSummary: true`, carrying the assembled
728
+ messages), then `assistant_message_committed` and `history_mutation` for the summary it commits.
729
+ - The hard-capacity block announces its diagnostic — the only message explaining why the turn stopped.
730
+ - A provider failure announces the `Request failed: …` record it appends.
731
+
732
+ The forced-summary call also **rewrote** history: it appended a synthetic round-limit instruction,
733
+ sent it, then removed it with `clear()` + re-add — a non-append mutation this vocabulary has no way
734
+ to describe. The instruction is a per-call prompt artifact, so it no longer enters the conversation
735
+ store at all; it exists only in the outgoing array, the same shape the structured-output transport
736
+ uses for a schema instruction. Nothing is added, so nothing has to be removed, and `mutation` still
737
+ needs no removal member.
738
+
739
+ The item also reported that the streaming path emitted no families at all. CORE-042 had already
740
+ fixed that by removing the second engine — `runStream` runs the same `execute()` — and this change
741
+ adds the test that says so rather than leaving it assumed.
742
+
743
+ - 9dcb5da: CORE-035: the identical-tool-input loop guard throws a named error, and the SPEC now matches it
744
+
745
+ The SPEC documented an `AbortError` thrown at the Nth identical call. The code threw a bare `Error`
746
+ at the N+1th. The type difference was behavioral, not cosmetic: `isAbortFailure` resolves an
747
+ `AbortError` as `success: true, interrupted: true`, so a run that detected a pathological loop and
748
+ produced no answer would have been reported as a SUCCESS.
749
+
750
+ Resolved toward the code's semantics and the SPEC's intent, which are not the same thing:
751
+
752
+ - **Failure, not abort.** A guard trip is the agent giving up, not the user cancelling. `AbortError`
753
+ means the caller asked the turn to stop, and here nobody did.
754
+ - **Named, not bare.** `SameToolInputLoopError` (`code: 'SAME_TOOL_INPUT_LOOP'`, `category: 'system'`,
755
+ `recoverable: true`) carries `toolName`, `callCount` and `maxSameToolInputs`. Naming a type is what
756
+ the SPEC was reaching for: a caller must be able to tell "the agent looped" from "the network died",
757
+ and CORE-027 carries those fields out intact.
758
+ - **`maxSameToolInputs` is a MAXIMUM.** The Nth identical call is allowed; the N+1th trips. The SPEC's
759
+ "N or more times" contradicted its own option name.
760
+
761
+ `ErrorUtils` moves to `utils/error-utils.ts`, split from the class taxonomy it operates on — two
762
+ responsibilities in one file, and keeping them together made the taxonomy file impossible to extend.
763
+ Both remain exported from the package entry.
764
+
765
+ - a95ca85: Apply `config.systemMessage` on the streaming path. `runStream()` built its provider request straight
766
+ from the conversation store and never entered the session initialization that attaches the system
767
+ prompt, so an agent obeyed its persona through `run()` and ignored it through `runStream()` — silently,
768
+ on the default interactive surface. An agent used through both entry points only acquired its prompt
769
+ from the first non-streaming turn onward.
770
+
771
+ The streaming path now enters the same `initializeConversationStore` the round path enters, so the
772
+ prompt, the inject-once rule and the conversation restore are owned in one place. Contained under
773
+ CORE-042, which is the duplication itself.
774
+
775
+ - 0382a51: CORE-041: `z.nativeEnum()` and `z.date()` convert; the rest of the boundary is published, not discovered
776
+
777
+ `zodToJsonSchema` threw `Unsupported Zod type: …` on five constructs, so a schema Zod accepts could
778
+ not be turned into a tool or a structured-output spec. Re-running the decision the item reserved,
779
+ those five are two different problems:
780
+
781
+ - **`ZodNativeEnum` and `ZodDate` are exactly expressible** and were missing for no reason.
782
+ A native enum becomes an `enum` of its VALUES — for a numeric TypeScript enum the compiler's
783
+ reverse mapping is filtered out, so a field accepting `0` is no longer advertised as accepting
784
+ `"Low"`. A date becomes `{ type: 'string', format: 'date-time' }`, which is not a lossy stand-in:
785
+ JSON has no date type, so a string is what the provider receives either way.
786
+ - **`ZodTuple`, `ZodIntersection` and `ZodLazy` are not expressible**, and still throw. A tuple needs
787
+ positional `items` (the subset models `items` as one schema), an intersection needs `allOf`,
788
+ recursion needs `$ref` — none of which the field-enumerated provider mappers would forward.
789
+ Adopting `zod-to-json-schema` does not dissolve this, as CORE-039 had conceded it might: the
790
+ library emits exactly those constructs. The difficulty was never parsing Zod; the target language
791
+ cannot say these things.
792
+
793
+ Mapping them lossily was rejected — a tuple flattened to `array of anyOf[...]` would tell the model
794
+ that any order and any length are acceptable, a contract the author did not write.
795
+
796
+ The error now names the construct, says why the subset cannot carry it, and names a Zod expression to
797
+ write instead. `Unsupported Zod type: ZodTuple` told a consumer the name of their own construct and
798
+ nothing they could act on.
799
+
800
+ - 93d061d: CORE-043: structured output now knows which transport can carry the schema before the first call
801
+
802
+ `run(input, { output })` asked every provider for `responseFormat: { type: 'json_schema' }`. A
803
+ provider whose surface cannot express that accepted the option and dropped it — and the schema was
804
+ stated in words only by the RETRY feedback turn, which runs on attempt two. So against such a
805
+ provider, attempt one carried nothing describing the required shape and could only succeed by luck:
806
+ the advertised three attempts were really two, and the first was spent discovering something the
807
+ capability table already knew.
808
+
809
+ A `(provider, model)` pair now resolves to a mechanism (`response_schema` / `json_object` / `none`)
810
+ and a provenance (`catalog` / `vendor-default` / `undeclared` / `unverified-endpoint`), and the
811
+ request is shaped to match at the one seam that holds both the resolved provider and the outgoing
812
+ messages. When the wire cannot carry the shape, the schema is stated in the prompt on the FIRST
813
+ attempt. Each structured request emits a `structured_output_transport` event reporting what the
814
+ request actually did.
815
+
816
+ - `IAIProvider.endpointIsVendorDefault?()` — a provider configured with a custom `baseURL` reports
817
+ it, so the runtime stops claiming enforcement a gateway may not provide. Separate from
818
+ `capabilityTable?()` on purpose: `@robota-sdk/agent-provider-openai` declares no table (nobody has
819
+ verified one) and must still be able to answer.
820
+ - DeepSeek's capability table declared `json_schema`; DeepSeek guarantees the response PARSES but
821
+ takes no schema parameter. Corrected to `json_object`.
822
+ - A provider that declares nothing is still sent the request unchanged — silence is not a denial.
823
+
824
+ - 39554a1: CORE-047: the model-configuration API is reachable before the first turn
825
+
826
+ `getModel()`, `setModel()` and `swapDefaultProvider()` refused on a freshly constructed agent with
827
+ `Agent must be fully initialized before ...`. So you had to ask the model a question before you could
828
+ ask which model you were using.
829
+
830
+ The state they guarded — the provider registry and the current `(provider, model)` pair — turned out
831
+ to be synchronous and derived entirely from config the constructor had already validated. It merely
832
+ lived inside the async initializer, next to work that genuinely is async (modules, plugins, the
833
+ execution service). Both steps now run in the constructor, so an agent knows which model it is
834
+ configured for from the moment it exists, and the readiness guard on those three methods protected
835
+ nothing and is gone.
836
+
837
+ A destroyed agent still refuses — and now says so accurately (`AIProviders was disposed`) instead of
838
+ misreporting teardown as missing initialization.
839
+
840
+ `Robota.ensureReady()` is unchanged and remains the way to complete the asynchronous half without
841
+ running a turn. It is no longer a precondition for reading or changing the model.
842
+
843
+ - d28430a: CORE-048: `resolveStructuredOutputCapability` is exported
844
+
845
+ `TStructuredOutputMechanism` and `TStructuredOutputProvenance` were already public while the function
846
+ that produces them was not — a caller could name the answer but not obtain it. Exporting it also lets
847
+ a consumer ask, before spending a call, what will happen to their schema against a given
848
+ `(provider, model)` pair.
849
+
850
+ No behaviour changed. This falls out of CORE-048, which asked whether a forced tool call should join
851
+ the mechanism vocabulary and answered no: the transport would need a provider that both lacks a
852
+ schema parameter and has enforceable strict tool arguments, and across this workspace that
853
+ intersection is empty.
854
+
855
+ - 07b627f: A local peer can now be answered, and what its turn may do depends on where it runs.
856
+
857
+ - `agent-core`: the permission evaluator takes a peer turn's authority as one more input
858
+ (`IPermissionEvaluationContext.peerTurn`), decided after the deny list and ceiling and before
859
+ bypass and allow rules. A peer on another host uses no tool. A peer on the same host may use an
860
+ inspect-class tool that declares `workspacePaths`, only when every named location resolves inside
861
+ the workspace and is not a credential (`isSecretPath`); write and execute tools are refused unless
862
+ enabled, and then every use asks. A tool declaring `repliesToPeer` exists only in a peer turn and
863
+ asks once the turn used another tool. New: `isToolAvailableInPeerTurn`, `TPeerReach`,
864
+ `IPeerTurnAuthority`. `IRunOptions.withholdHostedTools` leaves a provider's hosted tools out of a
865
+ run's requests (`nativeWebTools` with `false` withholds a hosted tool for one call).
866
+ - `agent-tools`: `Read` and `Glob` declare the arguments that say where they look. `Grep` does not:
867
+ it reads files it was never named, so a peer turn does not get it.
868
+ - `agent-session`: `ISessionRunOptions.peerReach` makes a run a peer turn for the permission policy;
869
+ every ask in it needs a fresh approval, and its requests carry no provider-hosted tool. `ISessionOptions.allowPeerChanges` enables write and execute
870
+ tools for same-host peer turns.
871
+ - `agent-interface-session`: `ISubmitOptions.peer` (`IPeerTurnContext`) carries a peer turn's reach,
872
+ the message it answers and the session a reply goes to.
873
+ - `agent-interface-session-mobility`: `IPeerMessage.inReplyTo` threads a conversation;
874
+ `peerReachOf(admission)` maps admission to a reach.
875
+ - `agent-framework`: a peer turn is offered what its origin allows, and a new `peer_reply` tool
876
+ answers the peer that sent the message, threaded to it. The setting `peers.allowChanges` enables
877
+ write and execute tools for same-host peer turns.
878
+ - `agent-ui-terminal`: a permission prompt in a peer turn names the requesting peer.
879
+ - `agent-cli`: incoming peer turns carry their reach and reply route; a conversation is limited in
880
+ depth and in how often this session answers it, and a reply over a limit is not sent and the
881
+ operator is told.
882
+ - `agent-provider-anthropic`, `agent-provider-openai-compatible` (Qwen): a request whose
883
+ `nativeWebTools` sets a hosted tool to `false` is sent without it.
884
+
885
+ - d0de5b2: A peer session's message now reaches the model as a peer's, and a peer turn runs on the external
886
+ baseline.
887
+
888
+ - `agent-core` marks every user message whose driver id starts with `peer:` as
889
+ `<peer_message from="…">…</peer_message>` in the outgoing request — both the round and the forced
890
+ summary — while the stored history keeps the text as sent. Wrapper-shaped text in user and tool
891
+ messages is escaped, and an id that is not a plain identifier is printed as `peer:unverified`.
892
+ New exports: `peerDriverOf`, `printablePeerDriver`.
893
+ - `agent-session`'s conversation transcript (compaction, advisor) labels a peer message with the same
894
+ printable id, so no rendering echoes a sender-chosen id that is not a plain identifier.
895
+ - `agent-framework` runs a `peer` turn like an `external` one — no tools (`toolChoice: 'none'`), no
896
+ `@path` expansion, no context references — and adds a per-turn system statement that the message
897
+ came from another session and carries no authority. A `peer` turn must carry a `peer:` driver id.
898
+
899
+ - d6b9404: Remove polynomial-ReDoS backtracking (SEC-003, CodeQL `js/polynomial-redos`) from three parsers whose input is not repo-controlled.
900
+
901
+ `parseStructuredResponseText` (agent-core) parses raw model output; its fenced-code-block regex used `\s*\n`, and because `\s` also matches a newline the two overlapped, so an unterminated fence containing many blank lines was rejected in O(n^2) — 12.7s for a 400 KB string, now ~1ms. The whitespace run is now restricted to horizontal whitespace, which makes the newline split point unique.
902
+
903
+ `/schedule cron` and `/monitor` (agent-command) are declared `modelInvocable: true`, so their argument string is composed by the model. Both matched the trailing instruction with `\s+(.+)$`; since `.` also matches a space the split point was ambiguous and a non-matching argument cost O(n^2) — ~15s for a 200 KB argument, now <1ms. The instruction is now required to start with a non-space character, which pins the split point without changing which inputs are accepted.
904
+
905
+ No behaviour change: the set of accepted inputs and the parsed values are identical in every case.
906
+
907
+ - 9814afc: Type-SSOT convergence (TYPE-003; re-audit CONTRACT-002/003/011/012 + RUNTIME-47 + STRUCT-04). Behavior is unchanged — this is a type-level refactor. `ITokenUsage` (agent-core) is confirmed as the usage-triple SSOT: `ISessionUsageTotals` and `IBackgroundTaskUsage` become aliases, and every inline `{ promptTokens; completionTokens; totalTokens }` copy (service/orchestration/executor/remote-client shapes) now references the SSOT (structurally identical → patch). The subagent-job contracts derive from the background-task SSOT — `TSubagentJobStatus = Exclude<TBackgroundTaskStatus, 'paused'>`, mode alias, and a `Pick`-projection `ISubagentJobState` — with a compile-enforced parity test so a drifting hand copy can no longer exist. `@robota-sdk/agent-session` is minor because the public `ISessionRecord` type is now the typed `IInteractiveSessionRecord` alias (previously a relaxed `unknown[]` mirror): runtime behavior of `SessionStore` is identical, but downstream code that assigned loose payloads to the record's fields may need explicit casts at its own trust boundary (the framework store facade's `as unknown as` cast bridge is deleted). agent-session's duplicate `@robota-sdk/agent-core` deps/devDeps declaration is also removed (STRUCT-04).
908
+
909
+ ## 3.0.0-beta.79
910
+
911
+ ## 3.0.0-beta.78
912
+
913
+ ### Patch Changes
914
+
915
+ - 6f308d1: fix(streaming): expose token usage on the streaming execution path (BEHAVIOR-005)
916
+
917
+ Token usage was silently dropped on streaming turns, so `readTokenUsageFromMessage` and Robota's usage analytics returned empty/0 for every `run()`/`runStream()` (which always stream). OpenAI-compatible streaming requests now send `stream_options: { include_usage: true }`, the stream assembler and the `runStream` commit path attach the same top-level `usage` shape the non-streaming path already emits, and both `run()` and `runStream()` now expose usage. New opt-out `IOpenAIProviderOptions.includeStreamUsage` (default `true`) for OpenAI-compatible servers that reject `stream_options`.
918
+
919
+ ## 3.0.0-beta.77
920
+
921
+ ### Patch Changes
922
+
923
+ - Coordinated beta.77 release. Runtime hardening across the session/execution/subagent stack
924
+ (CORE-019..024: compaction-failure contract, strict execution error propagation, plugin/timer
925
+ disposal, process-tree kill via the new `@robota-sdk/agent-process`, scheduler & IPC integrity),
926
+ TUI shutdown/channel hygiene (CLI-075: listener unwiring, permission-queue drain, timeout-bounded
927
+ graceful shutdown, second-signal force-quit), and agent-cli decoupled from the unpublished
928
+ DAG/workflow chain so the published CLI installs cleanly (CLI-077). First publish of
929
+ `@robota-sdk/agent-process`.
930
+
931
+ ## 3.0.0-beta.76
932
+
933
+ ### Patch Changes
934
+
935
+ - DQ-AUDIT-002 — consolidate duplicated domain data onto single owners: one model-pricing SSOT in agent-core (`MODEL_PRICES`/`lookupModelPrice`/`calculateModelCost`/`estimateBlendedCostPer1000`) consumed by agent-command and agent-plugin (drops two embedded/stale price tables); the `len/4` token estimator replaced by core `CONTEXT_ESTIMATE_CHARS_PER_TOKEN`; TUI `TContextState` derived from core `IContextWindowState`; dead pass-through re-exports removed from agent-session.
936
+ - DQ-AUDIT-006 — error/observability hygiene: replace raw `throw new Error()` on core-service and provider hot paths with typed `AgentRuntimeError` subclasses (`ConfigurationError`/`ValidationError`) so error-handling can branch on category/recoverable; surface fire-and-forget hook failures via `logger.warn` instead of silent `.catch(() => {})`; wire the error-handling plugin's `totalRetries`/`successfulRecoveries` stats to real counters.
937
+ - DQ-AUDIT-007 — remove the silent `model || 'gpt-4o-mini'` default in the OpenAI streaming handler (a missing model now throws `ConfigurationError` instead of substituting a vendor default); document `IAIProvider`'s universal (`chat`) vs raw (`generateResponse`) dual surface as intentional in the agent-core SPEC.
938
+ - 576af62: Fix `ConfigurationError: Agent must be fully initialized before changing model configuration` when running `/preset` (or any live model re-apply) on a fresh interactive session before the first message. The Robota agent initialized lazily on the first `run()`, but `setModel` requires full initialization. `Session.applyModelOptions` now awaits the new idempotent `Robota.ensureReady()` before `setModel`, and the preset live-switch path (`applyPresetToSession` → `executePresetCommand`) is async end-to-end. Adds a real cold-session regression test (no mocked Robota).
939
+
940
+ ## 3.0.0-beta.75
941
+
942
+ ### Patch Changes
943
+
944
+ - Agent preset system + live preset switching + context/history correctness fixes.
945
+
946
+ - **Preset system (PRESET-001~017):** new `@robota-sdk/agent-preset` package layering framework
947
+ assembly options into named, selectable profiles (`default`, `autonomous-builder`, `careful-reviewer`,
948
+ `neutral-executor`) plus user-authored external presets loaded from `$PRODUCT_USER_STATE_DIR/presets/*.json`.
949
+ - **Live preset switching:** `/preset` command (list + active marker + switch) and a TUI active-preset
950
+ display. Switching live re-applies permission posture, model/effort, persona, command-module
951
+ selection, parallel-subagents gating, and a self-verification system-prompt section via the single
952
+ `applyPresetToSession` engine.
953
+ - **CTX-001:** the TUI Context display + session auto-compact now use the accurate provider-based token
954
+ estimate (system prompt + tool schemas included) instead of a crude history-only char heuristic.
955
+ - **HIST-001:** conversation history is now append-only — removed the silent 100-message count cap that
956
+ could drop early context; context size is managed solely by size-based compaction.
957
+
958
+ ## 3.0.0-beta.74
959
+
960
+ ## 3.0.0-beta.73
961
+
962
+ ## 3.0.0-beta.72
963
+
964
+ ## 3.0.0-beta.71
965
+
966
+ ### Patch Changes
967
+
968
+ - fix(context): unify token estimation to single SSOT — status bar and /context list now use the same serialized JSON estimate
969
+
970
+ ## 3.0.0-beta.70
971
+
972
+ ## 3.0.0-beta.69
973
+
974
+ ## 3.0.0-beta.68
975
+
976
+ ## 3.0.0-beta.67
977
+
978
+ ## 3.0.0-beta.66
979
+
980
+ ## 3.0.0-beta.65
981
+
982
+ ## 3.0.0-beta.64
983
+
984
+ ## 3.0.0-beta.63
985
+
986
+ ## 3.0.0-beta.62
987
+
988
+ ### Patch Changes
989
+
990
+ - Add CLI second-screen browser monitor (PLG-002)
991
+ - New `@robota-sdk/agent-web` package: WebSocket client, `useWsSession` hook, `SessionMonitor` component with Markdown rendering
992
+ - `--web` flag on `agent-cli`: starts WebSocket sidecar server and auto-opens browser monitor
993
+ - `--no-open` flag and `PRODUCT_NO_OPEN` env var to suppress browser launch
994
+ - `user_message` event added to `IInteractiveSessionEvents` so user prompts stream to browser in real-time
995
+ - `TServerMessage` protocol extended with `user_message` type
996
+
997
+ ## 3.0.0-beta.61
998
+
999
+ ### Patch Changes
1000
+
1001
+ - 1c0d44c: Align context usage estimation across session display, auto-compaction, and core hard-capacity guards so mid-window sessions do not block prematurely.
1002
+ - 36eb7a9: Add provider-owned native replay payload hooks, replay validation coverage, and a session log validation command.
1003
+ - d97bdf2: Add provider-owned model catalog metadata, route `/model` suggestions through the active provider, and make `cli:dev` resolve the CLI workspace dependency closure through source export conditions.
1004
+
1005
+ ## 3.0.0-beta.60
1006
+
1007
+ ### Minor Changes
1008
+
1009
+ - 7439391: Add provider-neutral native web search/fetch capability contracts, explicit unsupported handling for OpenAI-compatible/LM Studio profiles, and local WebFetch/WebSearch permission/documentation alignment.
1010
+
1011
+ ## 3.0.0-beta.59
1012
+
1013
+ ## 3.0.0-beta.58
1014
+
1015
+ ### Patch Changes
1016
+
1017
+ - Refresh package docs and Robota.io content for the beta 57 feature set.
1018
+
1019
+ ## 3.0.0-beta.57
1020
+
1021
+ ### Minor Changes
1022
+
1023
+ - f61e2cb: Add Qwen provider-owned Responses API support for built-in web search/fetch tools and pass provider-owned profile options through generic CLI/runtime configuration.
1024
+
1025
+ ### Patch Changes
1026
+
1027
+ - 16c3b6f: Persist and render provider-neutral per-turn usage summaries with pre-send context updates in CLI sessions.
1028
+
1029
+ ## 3.0.0-beta.56
1030
+
1031
+ ### Patch Changes
1032
+
1033
+ - Prepare a coordinated beta release for batch npm publishing.
1034
+
1035
+ ## 3.0.0-beta.55
1036
+
1037
+ ### Patch Changes
1038
+
1039
+ - 38a72bf: fix: resolve ESLint tsconfig parsing errors and improve pnpm CI reliability
1040
+ - Add tsconfig.eslint.json to all packages for per-package ESLint runs
1041
+ - Migrate typecheck from pnpm -r exec tsc to per-package typecheck scripts
1042
+ - Add --if-present to all recursive pnpm run scripts
1043
+ - Fix React type imports, dynamic imports in tests, Express.Multer types
1044
+
1045
+ ## 3.0.0-beta.54
1046
+
1047
+ ### Patch Changes
1048
+
1049
+ - fix: resolve all typecheck errors across packages
1050
+
1051
+ ## 3.0.0-beta.53
1052
+
1053
+ ### Patch Changes
1054
+
1055
+ - refactor: monolith decomposition — all agent-\* files under 300 lines
1056
+ - fix: PR #69 code review — session resume tool messages, type SSOT, fork isolation, settings crash, Notification removal, chat validation
1057
+
1058
+ ## 3.0.0-beta.52
1059
+
1060
+ ## 3.0.0-beta.51
1061
+
1062
+ ## 3.0.0-beta.50
1063
+
1064
+ ## 3.0.0-beta.49
1065
+
1066
+ ## 3.0.0-beta.48
1067
+
1068
+ ## 3.0.0-beta.47
1069
+
1070
+ ## 3.0.0-beta.46
1071
+
1072
+ ## 3.0.0-beta.45
1073
+
1074
+ ## 3.0.0-beta.44
1075
+
1076
+ ### Patch Changes
1077
+
1078
+ - feat: IHistoryEntry universal history architecture + test quality cleanup
1079
+ - IHistoryEntry as universal history type across all 4 packages (core → sessions → sdk → cli)
1080
+ - Tool summary stored as event entry in history (category: 'event', type: 'tool-summary')
1081
+ - TuiStateManager pure TypeScript class for CLI rendering state
1082
+ - MessageList renders IHistoryEntry[] with Tool:/System:/You:/Robota: labels
1083
+ - Display order fixed: Tool → Robota (both streaming and abort)
1084
+ - Remove 25 tautological, duplicate, and hardcoded tests
1085
+
3
1086
  ## 2.0.9
4
1087
 
5
1088
  ### Patch Changes