@elizaos/agent 2.0.0-alpha.144 → 2.0.0-alpha.151

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 (598) hide show
  1. package/apps/app-lifeops/src/actions/inbox-digest.d.ts +2 -0
  2. package/apps/app-lifeops/src/actions/inbox-digest.d.ts.map +1 -0
  3. package/apps/app-lifeops/src/actions/inbox-digest.js +1 -0
  4. package/apps/app-lifeops/src/actions/inbox-respond.d.ts +2 -0
  5. package/apps/app-lifeops/src/actions/inbox-respond.d.ts.map +1 -0
  6. package/apps/app-lifeops/src/actions/inbox-respond.js +1 -0
  7. package/apps/app-lifeops/src/actions/inbox-triage.d.ts +2 -0
  8. package/apps/app-lifeops/src/actions/inbox-triage.d.ts.map +1 -0
  9. package/apps/app-lifeops/src/actions/inbox-triage.js +1 -0
  10. package/apps/app-lifeops/src/actions/inbox.d.ts +3 -0
  11. package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
  12. package/apps/app-lifeops/src/actions/inbox.js +856 -0
  13. package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +3 -0
  14. package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
  15. package/apps/app-lifeops/src/actions/update-owner-profile.js +131 -0
  16. package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
  17. package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
  18. package/{packages/agent → apps/app-lifeops}/src/inbox/config.js +1 -1
  19. package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
  20. package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
  21. package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
  22. package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
  23. package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
  24. package/apps/app-lifeops/src/lifeops/index.d.ts +25 -0
  25. package/apps/app-lifeops/src/lifeops/index.d.ts.map +1 -0
  26. package/apps/app-lifeops/src/lifeops/index.js +24 -0
  27. package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
  28. package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
  29. package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
  30. package/apps/app-lifeops/src/plugin.d.ts +3 -0
  31. package/apps/app-lifeops/src/plugin.d.ts.map +1 -1
  32. package/apps/app-lifeops/src/plugin.js +16 -3
  33. package/apps/app-lifeops/src/providers/inbox-triage.d.ts +3 -0
  34. package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
  35. package/apps/app-lifeops/src/providers/inbox-triage.js +89 -0
  36. package/package.json +6 -4
  37. package/packages/agent/src/actions/calendar.d.ts +1 -18
  38. package/packages/agent/src/actions/calendar.d.ts.map +1 -1
  39. package/packages/agent/src/actions/calendar.js +1 -3143
  40. package/packages/agent/src/actions/check-balance.d.ts +17 -0
  41. package/packages/agent/src/actions/check-balance.d.ts.map +1 -0
  42. package/packages/agent/src/actions/check-balance.js +167 -0
  43. package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
  44. package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
  45. package/packages/agent/src/actions/connector-resolver.js +245 -0
  46. package/packages/agent/src/actions/context-signal-lexicon.d.ts +1 -1
  47. package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -1
  48. package/packages/agent/src/actions/context-signal-lexicon.js +6 -0
  49. package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
  50. package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
  51. package/packages/agent/src/actions/eject-plugin.js +48 -0
  52. package/packages/agent/src/actions/execute-trade.d.ts +17 -0
  53. package/packages/agent/src/actions/execute-trade.d.ts.map +1 -0
  54. package/packages/agent/src/actions/execute-trade.js +299 -0
  55. package/packages/agent/src/actions/get-self-status.d.ts +13 -0
  56. package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
  57. package/packages/agent/src/actions/get-self-status.js +66 -0
  58. package/packages/agent/src/actions/gmail.d.ts +1 -32
  59. package/packages/agent/src/actions/gmail.d.ts.map +1 -1
  60. package/packages/agent/src/actions/gmail.js +1 -1734
  61. package/packages/agent/src/actions/inbox-digest.d.ts +1 -1
  62. package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -1
  63. package/packages/agent/src/actions/inbox-digest.js +1 -1
  64. package/packages/agent/src/actions/inbox-respond.d.ts +1 -1
  65. package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -1
  66. package/packages/agent/src/actions/inbox-respond.js +1 -1
  67. package/packages/agent/src/actions/inbox-triage.d.ts +1 -1
  68. package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -1
  69. package/packages/agent/src/actions/inbox-triage.js +1 -1
  70. package/packages/agent/src/actions/inbox.d.ts +1 -2
  71. package/packages/agent/src/actions/inbox.d.ts.map +1 -1
  72. package/packages/agent/src/actions/inbox.js +1 -856
  73. package/packages/agent/src/actions/index.d.ts +13 -0
  74. package/packages/agent/src/actions/index.d.ts.map +1 -1
  75. package/packages/agent/src/actions/index.js +13 -0
  76. package/packages/agent/src/actions/install-plugin.d.ts +3 -0
  77. package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
  78. package/packages/agent/src/actions/install-plugin.js +65 -0
  79. package/packages/agent/src/actions/life-goal-extractor.d.ts +1 -68
  80. package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -1
  81. package/packages/agent/src/actions/life-goal-extractor.js +1 -354
  82. package/packages/agent/src/actions/life-param-extractor.d.ts +1 -77
  83. package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -1
  84. package/packages/agent/src/actions/life-param-extractor.js +1 -423
  85. package/packages/agent/src/actions/life-recent-context.d.ts +1 -8
  86. package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -1
  87. package/packages/agent/src/actions/life-recent-context.js +1 -84
  88. package/packages/agent/src/actions/life-update-extractor.d.ts +1 -26
  89. package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -1
  90. package/packages/agent/src/actions/life-update-extractor.js +1 -195
  91. package/packages/agent/src/actions/life.d.ts +1 -8
  92. package/packages/agent/src/actions/life.d.ts.map +1 -1
  93. package/packages/agent/src/actions/life.extractor.d.ts +1 -17
  94. package/packages/agent/src/actions/life.extractor.d.ts.map +1 -1
  95. package/packages/agent/src/actions/life.extractor.js +1 -264
  96. package/packages/agent/src/actions/life.js +1 -3379
  97. package/packages/agent/src/actions/lifeops-extraction-config.d.ts +1 -15
  98. package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -1
  99. package/packages/agent/src/actions/lifeops-extraction-config.js +1 -25
  100. package/packages/agent/src/actions/lifeops-google-helpers.d.ts +1 -61
  101. package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -1
  102. package/packages/agent/src/actions/lifeops-google-helpers.js +1 -607
  103. package/packages/agent/src/actions/list-ejected.d.ts +3 -0
  104. package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
  105. package/packages/agent/src/actions/list-ejected.js +35 -0
  106. package/packages/agent/src/actions/log-level.d.ts +3 -0
  107. package/packages/agent/src/actions/log-level.d.ts.map +1 -0
  108. package/packages/agent/src/actions/log-level.js +125 -0
  109. package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -1
  110. package/packages/agent/src/actions/manage-tasks.js +51 -15
  111. package/packages/agent/src/actions/media.d.ts +21 -0
  112. package/packages/agent/src/actions/media.d.ts.map +1 -0
  113. package/packages/agent/src/actions/media.js +384 -0
  114. package/packages/agent/src/actions/read-messages.d.ts +14 -0
  115. package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
  116. package/packages/agent/src/actions/read-messages.js +228 -0
  117. package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
  118. package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
  119. package/packages/agent/src/actions/reinject-plugin.js +47 -0
  120. package/packages/agent/src/actions/send-message.d.ts +0 -7
  121. package/packages/agent/src/actions/send-message.d.ts.map +1 -1
  122. package/packages/agent/src/actions/send-message.js +170 -49
  123. package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
  124. package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
  125. package/packages/agent/src/actions/sync-plugin.js +47 -0
  126. package/packages/agent/src/actions/timezone-normalization.d.ts +1 -2
  127. package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -1
  128. package/packages/agent/src/actions/timezone-normalization.js +1 -107
  129. package/packages/agent/src/actions/transfer-token.d.ts +17 -0
  130. package/packages/agent/src/actions/transfer-token.d.ts.map +1 -0
  131. package/packages/agent/src/actions/transfer-token.js +470 -0
  132. package/packages/agent/src/actions/update-owner-profile.d.ts +1 -2
  133. package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -1
  134. package/packages/agent/src/actions/update-owner-profile.js +1 -131
  135. package/packages/agent/src/actions/wallet-action-shared.d.ts +15 -0
  136. package/packages/agent/src/actions/wallet-action-shared.d.ts.map +1 -0
  137. package/packages/agent/src/actions/wallet-action-shared.js +24 -0
  138. package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -1
  139. package/packages/agent/src/api/agent-admin-routes.js +1 -1
  140. package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -1
  141. package/packages/agent/src/api/binance-skill-helpers.js +8 -3
  142. package/packages/agent/src/api/chat-routes.d.ts.map +1 -1
  143. package/packages/agent/src/api/chat-routes.js +20 -5
  144. package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +1 -22
  145. package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -1
  146. package/packages/agent/src/api/coding-agents-auth-sanitize.js +1 -39
  147. package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +1 -28
  148. package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -1
  149. package/packages/agent/src/api/coding-agents-preflight-normalize.js +1 -45
  150. package/packages/agent/src/api/coordinator-types.d.ts +1 -46
  151. package/packages/agent/src/api/coordinator-types.d.ts.map +1 -1
  152. package/packages/agent/src/api/coordinator-types.js +1 -1
  153. package/packages/agent/src/api/coordinator-wiring.d.ts +1 -45
  154. package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -1
  155. package/packages/agent/src/api/coordinator-wiring.js +1 -108
  156. package/packages/agent/src/api/index.d.ts +1 -1
  157. package/packages/agent/src/api/index.d.ts.map +1 -1
  158. package/packages/agent/src/api/index.js +1 -1
  159. package/packages/agent/src/api/lifeops-browser-packaging.d.ts +1 -15
  160. package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -1
  161. package/packages/agent/src/api/lifeops-browser-packaging.js +1 -305
  162. package/packages/agent/src/api/lifeops-routes.d.ts +1 -19
  163. package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -1
  164. package/packages/agent/src/api/lifeops-routes.js +1 -1173
  165. package/packages/agent/src/api/server.d.ts.map +1 -1
  166. package/packages/agent/src/api/server.js +6 -6
  167. package/packages/agent/src/api/task-agent-message-routing.d.ts +1 -9
  168. package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -1
  169. package/packages/agent/src/api/task-agent-message-routing.js +1 -62
  170. package/packages/agent/src/api/website-blocker-routes.d.ts +1 -6
  171. package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -1
  172. package/packages/agent/src/api/website-blocker-routes.js +1 -174
  173. package/packages/agent/src/config/types.agent-defaults.d.ts +1 -1
  174. package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -1
  175. package/packages/agent/src/evals/coordinator-eval-client.d.ts +1 -38
  176. package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -1
  177. package/packages/agent/src/evals/coordinator-eval-client.js +1 -138
  178. package/packages/agent/src/evals/coordinator-live-runner.d.ts +1 -56
  179. package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -1
  180. package/packages/agent/src/evals/coordinator-live-runner.js +1 -546
  181. package/packages/agent/src/evals/coordinator-preflight.d.ts +1 -31
  182. package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -1
  183. package/packages/agent/src/evals/coordinator-preflight.js +1 -296
  184. package/packages/agent/src/evals/coordinator-scenarios.d.ts +1 -23
  185. package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -1
  186. package/packages/agent/src/evals/coordinator-scenarios.js +1 -1141
  187. package/packages/agent/src/lifeops/app-state.d.ts +1 -10
  188. package/packages/agent/src/lifeops/app-state.d.ts.map +1 -1
  189. package/packages/agent/src/lifeops/app-state.js +1 -32
  190. package/packages/agent/src/lifeops/apple-reminders.d.ts +1 -57
  191. package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -1
  192. package/packages/agent/src/lifeops/apple-reminders.js +1 -325
  193. package/packages/agent/src/lifeops/defaults.d.ts +1 -23
  194. package/packages/agent/src/lifeops/defaults.d.ts.map +1 -1
  195. package/packages/agent/src/lifeops/defaults.js +1 -205
  196. package/packages/agent/src/lifeops/engine.d.ts +1 -7
  197. package/packages/agent/src/lifeops/engine.d.ts.map +1 -1
  198. package/packages/agent/src/lifeops/engine.js +1 -389
  199. package/packages/agent/src/lifeops/goal-grounding.d.ts +1 -53
  200. package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -1
  201. package/packages/agent/src/lifeops/goal-grounding.js +1 -147
  202. package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +1 -11
  203. package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -1
  204. package/packages/agent/src/lifeops/goal-semantic-evaluator.js +1 -154
  205. package/packages/agent/src/lifeops/google-api-error.d.ts +1 -6
  206. package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -1
  207. package/packages/agent/src/lifeops/google-api-error.js +1 -35
  208. package/packages/agent/src/lifeops/google-calendar.d.ts +1 -52
  209. package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -1
  210. package/packages/agent/src/lifeops/google-calendar.js +1 -268
  211. package/packages/agent/src/lifeops/google-connector-gateway.d.ts +1 -18
  212. package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -1
  213. package/packages/agent/src/lifeops/google-connector-gateway.js +1 -65
  214. package/packages/agent/src/lifeops/google-fetch.d.ts +1 -10
  215. package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -1
  216. package/packages/agent/src/lifeops/google-fetch.js +1 -85
  217. package/packages/agent/src/lifeops/google-gmail.d.ts +1 -53
  218. package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -1
  219. package/packages/agent/src/lifeops/google-gmail.js +1 -471
  220. package/packages/agent/src/lifeops/google-managed-client.d.ts +1 -126
  221. package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -1
  222. package/packages/agent/src/lifeops/google-managed-client.js +1 -294
  223. package/packages/agent/src/lifeops/google-oauth.d.ts +1 -60
  224. package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -1
  225. package/packages/agent/src/lifeops/google-oauth.js +1 -494
  226. package/packages/agent/src/lifeops/google-scopes.d.ts +1 -12
  227. package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -1
  228. package/packages/agent/src/lifeops/google-scopes.js +1 -96
  229. package/packages/agent/src/lifeops/index.d.ts +1 -2
  230. package/packages/agent/src/lifeops/index.d.ts.map +1 -1
  231. package/packages/agent/src/lifeops/index.js +1 -2
  232. package/packages/agent/src/lifeops/owner-profile.d.ts +1 -14
  233. package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -1
  234. package/packages/agent/src/lifeops/owner-profile.js +1 -194
  235. package/packages/agent/src/lifeops/repository.d.ts +1 -208
  236. package/packages/agent/src/lifeops/repository.d.ts.map +1 -1
  237. package/packages/agent/src/lifeops/repository.js +1 -3187
  238. package/packages/agent/src/lifeops/runtime.d.ts +1 -13
  239. package/packages/agent/src/lifeops/runtime.d.ts.map +1 -1
  240. package/packages/agent/src/lifeops/runtime.js +1 -120
  241. package/packages/agent/src/lifeops/screen-context.d.ts +1 -51
  242. package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -1
  243. package/packages/agent/src/lifeops/screen-context.js +1 -332
  244. package/packages/agent/src/lifeops/seed-routines.d.ts +1 -19
  245. package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -1
  246. package/packages/agent/src/lifeops/seed-routines.js +1 -111
  247. package/packages/agent/src/lifeops/service.d.ts +1 -274
  248. package/packages/agent/src/lifeops/service.d.ts.map +1 -1
  249. package/packages/agent/src/lifeops/service.js +1 -9260
  250. package/packages/agent/src/lifeops/sql.d.ts +1 -30
  251. package/packages/agent/src/lifeops/sql.d.ts.map +1 -1
  252. package/packages/agent/src/lifeops/sql.js +1 -247
  253. package/packages/agent/src/lifeops/time.d.ts +1 -16
  254. package/packages/agent/src/lifeops/time.d.ts.map +1 -1
  255. package/packages/agent/src/lifeops/time.js +1 -132
  256. package/packages/agent/src/lifeops/twilio.d.ts +1 -24
  257. package/packages/agent/src/lifeops/twilio.d.ts.map +1 -1
  258. package/packages/agent/src/lifeops/twilio.js +1 -157
  259. package/packages/agent/src/lifeops/x-poster.d.ts +1 -18
  260. package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -1
  261. package/packages/agent/src/lifeops/x-poster.js +1 -148
  262. package/packages/agent/src/providers/inbox-triage.d.ts +1 -2
  263. package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -1
  264. package/packages/agent/src/providers/inbox-triage.js +1 -89
  265. package/packages/agent/src/providers/index.d.ts +4 -1
  266. package/packages/agent/src/providers/index.d.ts.map +1 -1
  267. package/packages/agent/src/providers/index.js +4 -1
  268. package/packages/agent/src/providers/lifeops.d.ts +1 -2
  269. package/packages/agent/src/providers/lifeops.d.ts.map +1 -1
  270. package/packages/agent/src/providers/lifeops.js +1 -157
  271. package/packages/agent/src/providers/local-models.d.ts +118 -0
  272. package/packages/agent/src/providers/local-models.d.ts.map +1 -0
  273. package/packages/agent/src/providers/local-models.js +427 -0
  274. package/packages/agent/src/providers/media-provider.d.ts +192 -0
  275. package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
  276. package/packages/agent/src/providers/media-provider.js +1088 -0
  277. package/packages/agent/src/providers/self-status.d.ts +4 -0
  278. package/packages/agent/src/providers/self-status.d.ts.map +1 -0
  279. package/packages/agent/src/providers/self-status.js +12 -0
  280. package/packages/agent/src/providers/tasks.d.ts.map +1 -1
  281. package/packages/agent/src/providers/tasks.js +7 -7
  282. package/packages/agent/src/runtime/core-plugins.js +1 -1
  283. package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -1
  284. package/packages/agent/src/runtime/eliza-plugin.js +1 -7
  285. package/packages/agent/src/runtime/eliza.js +2 -2
  286. package/packages/agent/src/runtime/plugin-collector.js +3 -3
  287. package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -1
  288. package/packages/agent/src/runtime/plugin-lifecycle.js +3 -13
  289. package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -1
  290. package/packages/agent/src/runtime/trajectory-internals.js +1 -3
  291. package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -1
  292. package/packages/agent/src/services/coding-task-executor.d.ts +3 -3
  293. package/packages/agent/src/services/coding-task-executor.js +3 -3
  294. package/packages/shared/src/awareness/index.d.ts +2 -0
  295. package/packages/shared/src/awareness/index.d.ts.map +1 -0
  296. package/packages/shared/src/awareness/index.js +1 -0
  297. package/packages/shared/src/awareness/registry.d.ts +27 -0
  298. package/packages/shared/src/awareness/registry.d.ts.map +1 -0
  299. package/packages/shared/src/awareness/registry.js +161 -0
  300. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +24 -0
  301. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
  302. package/packages/shared/src/i18n/generated/validation-keyword-data.js +24 -0
  303. package/packages/shared/src/runtime-env.d.ts.map +1 -1
  304. package/packages/shared/src/runtime-env.js +5 -1
  305. package/packages/typescript/src/generated/action-docs.d.ts +135 -0
  306. package/packages/typescript/src/generated/action-docs.d.ts.map +1 -1
  307. package/packages/typescript/src/generated/action-docs.js +237 -0
  308. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +24 -0
  309. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -1
  310. package/packages/typescript/src/i18n/generated/validation-keyword-data.js +24 -0
  311. package/packages/typescript/src/index.node.d.ts +2 -2
  312. package/packages/typescript/src/index.node.d.ts.map +1 -1
  313. package/packages/typescript/src/index.node.js +4 -3
  314. package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -1
  315. package/packages/typescript/src/plugin-lifecycle.js +42 -3
  316. package/packages/typescript/src/services/message.d.ts.map +1 -1
  317. package/packages/typescript/src/services/message.js +32 -0
  318. package/apps/app-training/src/core/cli.d.ts +0 -11
  319. package/apps/app-training/src/core/cli.d.ts.map +0 -1
  320. package/apps/app-training/src/core/cli.js +0 -302
  321. package/apps/app-training/src/core/context-audit.d.ts +0 -51
  322. package/apps/app-training/src/core/context-audit.d.ts.map +0 -1
  323. package/apps/app-training/src/core/context-audit.js +0 -141
  324. package/apps/app-training/src/core/context-catalog.d.ts +0 -47
  325. package/apps/app-training/src/core/context-catalog.d.ts.map +0 -1
  326. package/apps/app-training/src/core/context-catalog.js +0 -259
  327. package/apps/app-training/src/core/context-types.d.ts +0 -3
  328. package/apps/app-training/src/core/context-types.d.ts.map +0 -1
  329. package/apps/app-training/src/core/context-types.js +0 -11
  330. package/apps/app-training/src/core/dataset-generator.d.ts +0 -135
  331. package/apps/app-training/src/core/dataset-generator.d.ts.map +0 -1
  332. package/apps/app-training/src/core/dataset-generator.js +0 -703
  333. package/apps/app-training/src/core/replay-validator.d.ts +0 -96
  334. package/apps/app-training/src/core/replay-validator.d.ts.map +0 -1
  335. package/apps/app-training/src/core/replay-validator.js +0 -265
  336. package/apps/app-training/src/core/roleplay-executor.d.ts +0 -123
  337. package/apps/app-training/src/core/roleplay-executor.d.ts.map +0 -1
  338. package/apps/app-training/src/core/roleplay-executor.js +0 -645
  339. package/apps/app-training/src/core/roleplay-trajectories.d.ts +0 -54
  340. package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +0 -1
  341. package/apps/app-training/src/core/roleplay-trajectories.js +0 -73
  342. package/apps/app-training/src/core/scenario-blueprints.d.ts +0 -62
  343. package/apps/app-training/src/core/scenario-blueprints.d.ts.map +0 -1
  344. package/apps/app-training/src/core/scenario-blueprints.js +0 -790
  345. package/apps/app-training/src/core/trajectory-task-datasets.d.ts +0 -38
  346. package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +0 -1
  347. package/apps/app-training/src/core/trajectory-task-datasets.js +0 -281
  348. package/apps/app-training/src/core/vertex-tuning.d.ts +0 -139
  349. package/apps/app-training/src/core/vertex-tuning.d.ts.map +0 -1
  350. package/apps/app-training/src/core/vertex-tuning.js +0 -234
  351. package/packages/agent/src/inbox/channel-deep-links.d.ts.map +0 -1
  352. package/packages/agent/src/inbox/config.d.ts.map +0 -1
  353. package/packages/agent/src/inbox/message-fetcher.d.ts.map +0 -1
  354. package/packages/agent/src/inbox/reflection.d.ts.map +0 -1
  355. package/packages/agent/src/inbox/repository.d.ts.map +0 -1
  356. package/packages/agent/src/inbox/triage-classifier.d.ts.map +0 -1
  357. package/packages/agent/src/inbox/types.d.ts.map +0 -1
  358. package/packages/agent/src/training/cli.d.ts +0 -2
  359. package/packages/agent/src/training/cli.d.ts.map +0 -1
  360. package/packages/agent/src/training/cli.js +0 -2
  361. package/packages/agent/src/training/context-audit.d.ts +0 -2
  362. package/packages/agent/src/training/context-audit.d.ts.map +0 -1
  363. package/packages/agent/src/training/context-audit.js +0 -2
  364. package/packages/agent/src/training/context-catalog.d.ts +0 -2
  365. package/packages/agent/src/training/context-catalog.d.ts.map +0 -1
  366. package/packages/agent/src/training/context-catalog.js +0 -2
  367. package/packages/agent/src/training/context-types.d.ts +0 -2
  368. package/packages/agent/src/training/context-types.d.ts.map +0 -1
  369. package/packages/agent/src/training/context-types.js +0 -2
  370. package/packages/agent/src/training/dataset-generator.d.ts +0 -2
  371. package/packages/agent/src/training/dataset-generator.d.ts.map +0 -1
  372. package/packages/agent/src/training/dataset-generator.js +0 -2
  373. package/packages/agent/src/training/replay-validator.d.ts +0 -2
  374. package/packages/agent/src/training/replay-validator.d.ts.map +0 -1
  375. package/packages/agent/src/training/replay-validator.js +0 -2
  376. package/packages/agent/src/training/roleplay-executor.d.ts +0 -2
  377. package/packages/agent/src/training/roleplay-executor.d.ts.map +0 -1
  378. package/packages/agent/src/training/roleplay-executor.js +0 -2
  379. package/packages/agent/src/training/roleplay-trajectories.d.ts +0 -2
  380. package/packages/agent/src/training/roleplay-trajectories.d.ts.map +0 -1
  381. package/packages/agent/src/training/roleplay-trajectories.js +0 -2
  382. package/packages/agent/src/training/scenario-blueprints.d.ts +0 -2
  383. package/packages/agent/src/training/scenario-blueprints.d.ts.map +0 -1
  384. package/packages/agent/src/training/scenario-blueprints.js +0 -2
  385. package/packages/agent/src/training/trajectory-task-datasets.d.ts +0 -2
  386. package/packages/agent/src/training/trajectory-task-datasets.d.ts.map +0 -1
  387. package/packages/agent/src/training/trajectory-task-datasets.js +0 -2
  388. package/packages/agent/src/training/vertex-tuning.d.ts +0 -2
  389. package/packages/agent/src/training/vertex-tuning.d.ts.map +0 -1
  390. package/packages/agent/src/training/vertex-tuning.js +0 -2
  391. package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +0 -41
  392. package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +0 -1
  393. package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +0 -443
  394. package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +0 -34
  395. package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +0 -1
  396. package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +0 -171
  397. package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +0 -11
  398. package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +0 -1
  399. package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +0 -55
  400. package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +0 -11
  401. package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +0 -1
  402. package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +0 -214
  403. package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +0 -13
  404. package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +0 -1
  405. package/packages/typescript/src/features/orchestrator/actions/list-agents.js +0 -174
  406. package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +0 -11
  407. package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +0 -1
  408. package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +0 -428
  409. package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +0 -11
  410. package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +0 -1
  411. package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +0 -189
  412. package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +0 -12
  413. package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +0 -1
  414. package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +0 -265
  415. package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +0 -12
  416. package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +0 -1
  417. package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +0 -356
  418. package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +0 -22
  419. package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +0 -1
  420. package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +0 -270
  421. package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +0 -12
  422. package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +0 -1
  423. package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +0 -192
  424. package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +0 -3
  425. package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +0 -1
  426. package/packages/typescript/src/features/orchestrator/actions/task-control.js +0 -217
  427. package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +0 -3
  428. package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +0 -1
  429. package/packages/typescript/src/features/orchestrator/actions/task-history.js +0 -323
  430. package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +0 -3
  431. package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +0 -1
  432. package/packages/typescript/src/features/orchestrator/actions/task-share.js +0 -168
  433. package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +0 -11
  434. package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +0 -1
  435. package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +0 -68
  436. package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +0 -18
  437. package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +0 -1
  438. package/packages/typescript/src/features/orchestrator/api/agent-routes.js +0 -654
  439. package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +0 -22
  440. package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +0 -1
  441. package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +0 -403
  442. package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +0 -18
  443. package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +0 -1
  444. package/packages/typescript/src/features/orchestrator/api/hook-routes.js +0 -164
  445. package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +0 -17
  446. package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +0 -1
  447. package/packages/typescript/src/features/orchestrator/api/issue-routes.js +0 -132
  448. package/packages/typescript/src/features/orchestrator/api/routes.d.ts +0 -37
  449. package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +0 -1
  450. package/packages/typescript/src/features/orchestrator/api/routes.js +0 -96
  451. package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +0 -17
  452. package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +0 -1
  453. package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +0 -149
  454. package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +0 -19
  455. package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +0 -1
  456. package/packages/typescript/src/features/orchestrator/base-plugin.js +0 -75
  457. package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +0 -101
  458. package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +0 -1
  459. package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +0 -310
  460. package/packages/typescript/src/features/orchestrator/index.d.ts +0 -33
  461. package/packages/typescript/src/features/orchestrator/index.d.ts.map +0 -1
  462. package/packages/typescript/src/features/orchestrator/index.js +0 -30
  463. package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +0 -15
  464. package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +0 -1
  465. package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +0 -1449
  466. package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +0 -14
  467. package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +0 -1
  468. package/packages/typescript/src/features/orchestrator/providers/action-examples.js +0 -151
  469. package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +0 -13
  470. package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +0 -1
  471. package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +0 -142
  472. package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +0 -6
  473. package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +0 -1
  474. package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +0 -91
  475. package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +0 -30
  476. package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +0 -1
  477. package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +0 -54
  478. package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +0 -53
  479. package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +0 -1
  480. package/packages/typescript/src/features/orchestrator/services/agent-selection.js +0 -70
  481. package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +0 -61
  482. package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +0 -1
  483. package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +0 -252
  484. package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +0 -13
  485. package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +0 -1
  486. package/packages/typescript/src/features/orchestrator/services/config-env.js +0 -37
  487. package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +0 -50
  488. package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +0 -1
  489. package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +0 -184
  490. package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +0 -38
  491. package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +0 -1
  492. package/packages/typescript/src/features/orchestrator/services/debug-capture.js +0 -113
  493. package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +0 -30
  494. package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +0 -1
  495. package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +0 -146
  496. package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +0 -54
  497. package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +0 -1
  498. package/packages/typescript/src/features/orchestrator/services/pty-init.js +0 -315
  499. package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +0 -175
  500. package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +0 -1
  501. package/packages/typescript/src/features/orchestrator/services/pty-service.js +0 -1469
  502. package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +0 -49
  503. package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +0 -1
  504. package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +0 -180
  505. package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +0 -53
  506. package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +0 -1
  507. package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +0 -280
  508. package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +0 -80
  509. package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +0 -1
  510. package/packages/typescript/src/features/orchestrator/services/pty-types.js +0 -51
  511. package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +0 -16
  512. package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +0 -1
  513. package/packages/typescript/src/features/orchestrator/services/repo-input.js +0 -88
  514. package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +0 -69
  515. package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +0 -1
  516. package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +0 -446
  517. package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +0 -97
  518. package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +0 -1
  519. package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +0 -342
  520. package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +0 -421
  521. package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +0 -1
  522. package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +0 -2356
  523. package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +0 -52
  524. package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +0 -1
  525. package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +0 -1538
  526. package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +0 -49
  527. package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +0 -1
  528. package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +0 -171
  529. package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +0 -27
  530. package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +0 -1
  531. package/packages/typescript/src/features/orchestrator/services/swarm-history.js +0 -148
  532. package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +0 -22
  533. package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +0 -1
  534. package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +0 -265
  535. package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +0 -8
  536. package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +0 -1
  537. package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +0 -114
  538. package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +0 -68
  539. package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +0 -1
  540. package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +0 -559
  541. package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +0 -82
  542. package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +0 -1
  543. package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +0 -738
  544. package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +0 -3
  545. package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +0 -1
  546. package/packages/typescript/src/features/orchestrator/services/task-kind.js +0 -40
  547. package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +0 -17
  548. package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +0 -1
  549. package/packages/typescript/src/features/orchestrator/services/task-policy.js +0 -226
  550. package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +0 -550
  551. package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +0 -1
  552. package/packages/typescript/src/features/orchestrator/services/task-registry.js +0 -2182
  553. package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +0 -18
  554. package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +0 -1
  555. package/packages/typescript/src/features/orchestrator/services/task-share.js +0 -159
  556. package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +0 -69
  557. package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +0 -1
  558. package/packages/typescript/src/features/orchestrator/services/task-validation.js +0 -587
  559. package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +0 -5
  560. package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +0 -1
  561. package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +0 -372
  562. package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +0 -73
  563. package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +0 -1
  564. package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +0 -64
  565. package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +0 -53
  566. package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +0 -1
  567. package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +0 -260
  568. package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +0 -28
  569. package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +0 -1
  570. package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +0 -105
  571. package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +0 -58
  572. package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +0 -1
  573. package/packages/typescript/src/features/orchestrator/services/workspace-github.js +0 -139
  574. package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +0 -18
  575. package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +0 -1
  576. package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +0 -86
  577. package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +0 -118
  578. package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +0 -1
  579. package/packages/typescript/src/features/orchestrator/services/workspace-service.js +0 -533
  580. package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +0 -81
  581. package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +0 -1
  582. package/packages/typescript/src/features/orchestrator/services/workspace-types.js +0 -8
  583. package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +0 -38
  584. package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +0 -1
  585. package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +0 -293
  586. /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.d.ts +0 -0
  587. /package/{packages/agent → apps/app-lifeops}/src/inbox/channel-deep-links.js +0 -0
  588. /package/{packages/agent → apps/app-lifeops}/src/inbox/config.d.ts +0 -0
  589. /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.d.ts +0 -0
  590. /package/{packages/agent → apps/app-lifeops}/src/inbox/message-fetcher.js +0 -0
  591. /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.d.ts +0 -0
  592. /package/{packages/agent → apps/app-lifeops}/src/inbox/reflection.js +0 -0
  593. /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.d.ts +0 -0
  594. /package/{packages/agent → apps/app-lifeops}/src/inbox/repository.js +0 -0
  595. /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.d.ts +0 -0
  596. /package/{packages/agent → apps/app-lifeops}/src/inbox/triage-classifier.js +0 -0
  597. /package/{packages/agent → apps/app-lifeops}/src/inbox/types.d.ts +0 -0
  598. /package/{packages/agent → apps/app-lifeops}/src/inbox/types.js +0 -0
@@ -1,790 +0,0 @@
1
- /**
2
- * Scenario blueprints for synthetic training data generation.
3
- *
4
- * Each blueprint describes a canonical conversation scenario. The generator
5
- * expands each blueprint into multiple variants by randomizing:
6
- * - Agent name (prevents statistical name pollution)
7
- * - Participant names and count
8
- * - Platform (telegram, discord, slack, etc.)
9
- * - Tone, length, and distractor turns
10
- * - Context specificity (subtle → explicit)
11
- *
12
- * Blueprints are categorized by:
13
- * 1. Decision type: RESPOND | IGNORE | STOP
14
- * 2. Context domain: general, wallet, knowledge, etc.
15
- * 3. Conversation pattern: group_chat, group_noise, multi_turn_intent, etc.
16
- */
17
- import { ACTION_CONTEXT_MAP, PROVIDER_CONTEXT_MAP } from "./context-catalog.js";
18
- import { AGENT_CONTEXTS } from "./context-types.js";
19
- // ==================== RESPOND scenarios ====================
20
- const respondGeneral = [
21
- {
22
- id: "respond-general-direct-mention-001",
23
- decision: "RESPOND",
24
- primaryContext: "general",
25
- pattern: "group_direct_mention",
26
- description: "Someone directly asks the agent a general question",
27
- minContextTurns: 2,
28
- maxContextTurns: 8,
29
- groundingKeywords: ["hey", "what do you think", "can you help"],
30
- generationHint: "Generate a group chat where participants discuss random topics, then one person directly addresses the agent by name with a general question.",
31
- },
32
- {
33
- id: "respond-general-reply-chain-001",
34
- decision: "RESPOND",
35
- primaryContext: "general",
36
- pattern: "group_reply_chain",
37
- description: "Agent is in an active reply chain and should continue",
38
- minContextTurns: 4,
39
- maxContextTurns: 12,
40
- groundingKeywords: ["thanks", "follow up", "what about"],
41
- generationHint: "Generate a group chat where the agent has been actively replying, and the conversation continues with follow-up questions directed at the agent.",
42
- },
43
- {
44
- id: "respond-general-subtle-mention-001",
45
- decision: "RESPOND",
46
- primaryContext: "general",
47
- pattern: "group_subtle_mention",
48
- description: "Agent's name is mentioned subtly in a question that requires response",
49
- minContextTurns: 3,
50
- maxContextTurns: 10,
51
- groundingKeywords: ["mentioned", "asked"],
52
- generationHint: "Generate a group chat where someone mentions the agent's name mid-sentence while asking it something. The mention should be natural, not a formal address.",
53
- },
54
- ];
55
- const respondWallet = [
56
- {
57
- id: "respond-wallet-balance-001",
58
- decision: "RESPOND",
59
- primaryContext: "wallet",
60
- pattern: "group_direct_mention",
61
- description: "Someone asks the agent to check a token balance",
62
- minContextTurns: 1,
63
- maxContextTurns: 5,
64
- expectedAction: "CHECK_BALANCE",
65
- groundingKeywords: ["balance", "tokens", "how much", "wallet"],
66
- generationHint: "Generate a group chat about crypto, then someone asks the agent by name to check their token balance.",
67
- },
68
- {
69
- id: "respond-wallet-swap-001",
70
- decision: "RESPOND",
71
- primaryContext: "wallet",
72
- secondaryContexts: ["automation"],
73
- pattern: "group_direct_mention",
74
- description: "Someone asks the agent to swap tokens",
75
- minContextTurns: 2,
76
- maxContextTurns: 6,
77
- expectedAction: "SWAP_TOKEN",
78
- groundingKeywords: ["swap", "exchange", "trade", "convert"],
79
- generationHint: "Generate a group chat where users discuss token prices, then someone asks the agent to swap ETH for USDC or similar.",
80
- },
81
- {
82
- id: "respond-wallet-send-001",
83
- decision: "RESPOND",
84
- primaryContext: "wallet",
85
- pattern: "group_direct_mention",
86
- description: "Someone asks the agent to send tokens",
87
- minContextTurns: 1,
88
- maxContextTurns: 4,
89
- expectedAction: "SEND_TOKEN",
90
- groundingKeywords: ["send", "transfer", "to address"],
91
- generationHint: "Generate a group chat where someone asks the agent to send tokens to a specific address.",
92
- },
93
- {
94
- id: "respond-wallet-multi-turn-001",
95
- decision: "RESPOND",
96
- primaryContext: "wallet",
97
- pattern: "group_multi_turn_intent",
98
- description: "Wallet intent emerges over multiple turns of discussion before explicit request",
99
- minContextTurns: 6,
100
- maxContextTurns: 15,
101
- expectedAction: "SWAP_TOKEN",
102
- groundingKeywords: ["price", "market", "dip", "buy", "swap", "good time"],
103
- generationHint: "Generate a long group chat where users discuss market conditions, token prices, and eventually one person decides to ask the agent to execute a swap. The intent should emerge gradually over several messages.",
104
- },
105
- ];
106
- const respondKnowledge = [
107
- {
108
- id: "respond-knowledge-search-001",
109
- decision: "RESPOND",
110
- primaryContext: "knowledge",
111
- pattern: "group_direct_mention",
112
- description: "Someone asks the agent to look something up",
113
- minContextTurns: 2,
114
- maxContextTurns: 6,
115
- expectedAction: "SEARCH_KNOWLEDGE",
116
- groundingKeywords: ["search", "find", "look up", "what is"],
117
- generationHint: "Generate a group chat where someone asks the agent a factual question that requires knowledge lookup.",
118
- },
119
- {
120
- id: "respond-knowledge-summarize-001",
121
- decision: "RESPOND",
122
- primaryContext: "knowledge",
123
- pattern: "group_reply_chain",
124
- description: "Agent is asked to summarize a discussion",
125
- minContextTurns: 8,
126
- maxContextTurns: 20,
127
- expectedAction: "SUMMARIZE",
128
- groundingKeywords: ["summarize", "tldr", "recap", "main points"],
129
- generationHint: "Generate a long group discussion about a complex topic, then someone asks the agent to summarize the key points.",
130
- },
131
- ];
132
- const respondMedia = [
133
- {
134
- id: "respond-media-image-001",
135
- decision: "RESPOND",
136
- primaryContext: "media",
137
- pattern: "group_direct_mention",
138
- description: "Someone asks the agent to generate an image",
139
- minContextTurns: 1,
140
- maxContextTurns: 5,
141
- expectedAction: "GENERATE_IMAGE",
142
- groundingKeywords: ["generate", "create", "make", "image", "picture"],
143
- generationHint: "Generate a group chat where someone asks the agent to generate an image of something specific.",
144
- },
145
- {
146
- id: "respond-media-describe-001",
147
- decision: "RESPOND",
148
- primaryContext: "media",
149
- secondaryContexts: ["knowledge"],
150
- pattern: "group_direct_mention",
151
- description: "Someone shares an image and asks the agent to describe it",
152
- minContextTurns: 1,
153
- maxContextTurns: 4,
154
- expectedAction: "DESCRIBE_IMAGE",
155
- groundingKeywords: ["describe", "what is this", "what do you see"],
156
- generationHint: "Generate a group chat where someone shares an image attachment and asks the agent what it shows.",
157
- },
158
- ];
159
- const respondAutomation = [
160
- {
161
- id: "respond-automation-cron-001",
162
- decision: "RESPOND",
163
- primaryContext: "automation",
164
- pattern: "group_direct_mention",
165
- description: "Someone asks the agent to set up a scheduled task",
166
- minContextTurns: 2,
167
- maxContextTurns: 6,
168
- expectedAction: "CREATE_CRON",
169
- groundingKeywords: [
170
- "schedule",
171
- "every day",
172
- "remind me",
173
- "recurring",
174
- "cron",
175
- ],
176
- generationHint: "Generate a group chat where someone asks the agent to set up a daily reminder or scheduled task.",
177
- },
178
- ];
179
- const respondSocial = [
180
- {
181
- id: "respond-social-contact-001",
182
- decision: "RESPOND",
183
- primaryContext: "social",
184
- pattern: "group_direct_mention",
185
- description: "Someone asks the agent to look up contact information",
186
- minContextTurns: 1,
187
- maxContextTurns: 5,
188
- expectedAction: "SEARCH_CONTACTS",
189
- groundingKeywords: ["contact", "who is", "find", "look up"],
190
- generationHint: "Generate a group chat where someone asks the agent to find information about a contact.",
191
- },
192
- ];
193
- const respondCode = [
194
- {
195
- id: "respond-code-task-001",
196
- decision: "RESPOND",
197
- primaryContext: "code",
198
- secondaryContexts: ["automation"],
199
- pattern: "group_direct_mention",
200
- description: "Someone asks the agent to spawn a sub-agent for a task",
201
- minContextTurns: 3,
202
- maxContextTurns: 8,
203
- expectedAction: "SPAWN_AGENT",
204
- groundingKeywords: ["agent", "spawn", "create", "task", "automate"],
205
- generationHint: "Generate a group chat where developers discuss a problem, then someone asks the agent to spawn a sub-agent to handle a specific automated task.",
206
- },
207
- ];
208
- const respondSystem = [
209
- {
210
- id: "respond-system-config-001",
211
- decision: "RESPOND",
212
- primaryContext: "system",
213
- pattern: "group_direct_mention",
214
- description: "Someone asks the agent to change a configuration setting",
215
- minContextTurns: 1,
216
- maxContextTurns: 4,
217
- expectedAction: "CONFIGURE",
218
- groundingKeywords: ["config", "setting", "change", "update"],
219
- generationHint: "Generate a group chat where someone asks the agent to update a runtime configuration.",
220
- },
221
- ];
222
- // ==================== IGNORE scenarios ====================
223
- const ignoreScenarios = [
224
- {
225
- id: "ignore-noise-001",
226
- decision: "IGNORE",
227
- primaryContext: "general",
228
- pattern: "group_noise",
229
- description: "Group chat with unrelated conversation - agent not mentioned at all",
230
- minContextTurns: 5,
231
- maxContextTurns: 15,
232
- groundingKeywords: [],
233
- generationHint: "Generate a group chat where people discuss lunch plans, weekend activities, or other casual topics. The agent's name should NOT appear at all.",
234
- },
235
- {
236
- id: "ignore-noise-002",
237
- decision: "IGNORE",
238
- primaryContext: "general",
239
- pattern: "group_noise",
240
- description: "Technical discussion between humans with no agent involvement",
241
- minContextTurns: 4,
242
- maxContextTurns: 12,
243
- groundingKeywords: ["code", "bug", "fix", "deploy"],
244
- generationHint: "Generate a group chat where developers discuss code reviews and deployment issues among themselves. The agent should NOT be mentioned.",
245
- },
246
- {
247
- id: "ignore-about-agent-001",
248
- decision: "IGNORE",
249
- primaryContext: "general",
250
- pattern: "group_about_agent",
251
- description: "People talk ABOUT the agent but not TO the agent - should still IGNORE",
252
- minContextTurns: 3,
253
- maxContextTurns: 8,
254
- groundingKeywords: ["it", "the bot", "that agent"],
255
- generationHint: 'Generate a group chat where people discuss the agent in third person ("the bot did X", "I think it can do Y") but never address it directly. The agent should IGNORE this.',
256
- },
257
- {
258
- id: "ignore-about-agent-002",
259
- decision: "IGNORE",
260
- primaryContext: "wallet",
261
- pattern: "group_about_agent",
262
- description: "People discuss the agent's wallet capabilities without addressing it",
263
- minContextTurns: 4,
264
- maxContextTurns: 10,
265
- groundingKeywords: ["can it swap", "does it support", "the bot handles"],
266
- generationHint: "Generate a group chat where users discuss the agent's DeFi capabilities in third person without addressing it directly.",
267
- },
268
- {
269
- id: "ignore-wrong-agent-001",
270
- decision: "IGNORE",
271
- primaryContext: "general",
272
- pattern: "group_wrong_agent",
273
- description: "Someone addresses a DIFFERENT bot by name in the group",
274
- minContextTurns: 3,
275
- maxContextTurns: 8,
276
- groundingKeywords: ["hey", "can you"],
277
- generationHint: "Generate a group chat with TWO different bots present. Someone addresses the OTHER bot by name. The agent being tested should IGNORE this.",
278
- },
279
- {
280
- id: "ignore-wrong-agent-002",
281
- decision: "IGNORE",
282
- primaryContext: "wallet",
283
- pattern: "group_wrong_agent",
284
- description: "Someone asks a DIFFERENT bot to do a wallet operation",
285
- minContextTurns: 2,
286
- maxContextTurns: 6,
287
- groundingKeywords: ["swap", "send", "balance"],
288
- generationHint: "Generate a group chat where someone asks a DIFFERENT bot (not our agent) to check a wallet balance or swap tokens.",
289
- },
290
- {
291
- id: "ignore-long-noise-001",
292
- decision: "IGNORE",
293
- primaryContext: "general",
294
- pattern: "group_long_context",
295
- description: "Very long group conversation with no agent involvement at all",
296
- minContextTurns: 15,
297
- maxContextTurns: 30,
298
- groundingKeywords: [],
299
- generationHint: "Generate a very long group chat (20+ messages) of casual conversation between friends. The agent should NOT be mentioned at all.",
300
- },
301
- {
302
- id: "ignore-partial-name-001",
303
- decision: "IGNORE",
304
- primaryContext: "general",
305
- pattern: "group_noise",
306
- description: "Someone mentions a word that partially matches the agent's name but is a different word",
307
- minContextTurns: 3,
308
- maxContextTurns: 8,
309
- groundingKeywords: [],
310
- generationHint: "Generate a group chat where someone uses a word that partially contains the agent's name (e.g., if agent is 'Max', someone says 'maximize'). The agent should IGNORE this.",
311
- },
312
- ];
313
- // ==================== STOP scenarios ====================
314
- const stopScenarios = [
315
- {
316
- id: "stop-explicit-001",
317
- decision: "STOP",
318
- primaryContext: "general",
319
- pattern: "group_stop_request",
320
- description: "Someone explicitly tells the agent to stop talking",
321
- minContextTurns: 4,
322
- maxContextTurns: 10,
323
- groundingKeywords: ["stop", "shut up", "be quiet", "enough"],
324
- generationHint: "Generate a group chat where the agent has been participating, and then someone tells it to stop or be quiet.",
325
- },
326
- {
327
- id: "stop-polite-001",
328
- decision: "STOP",
329
- primaryContext: "general",
330
- pattern: "group_stop_request",
331
- description: "Someone politely asks the agent to stop",
332
- minContextTurns: 3,
333
- maxContextTurns: 8,
334
- groundingKeywords: [
335
- "please stop",
336
- "that's enough",
337
- "no more",
338
- "thanks but",
339
- ],
340
- generationHint: "Generate a group chat where the agent has been active, and someone politely asks it to stop responding or take a break.",
341
- },
342
- {
343
- id: "stop-mute-001",
344
- decision: "STOP",
345
- primaryContext: "general",
346
- pattern: "group_stop_request",
347
- description: "Someone asks to mute the agent in the channel",
348
- minContextTurns: 2,
349
- maxContextTurns: 6,
350
- groundingKeywords: ["mute", "disable", "turn off", "silence"],
351
- generationHint: "Generate a group chat where someone asks to mute or disable the agent in the current channel.",
352
- },
353
- ];
354
- // ==================== Multi-turn intent emergence ====================
355
- const multiTurnIntentScenarios = [
356
- {
357
- id: "respond-multi-turn-wallet-001",
358
- decision: "RESPOND",
359
- primaryContext: "wallet",
360
- pattern: "group_action_emergence",
361
- description: "Over several turns, users discuss token prices and one gradually decides to swap",
362
- minContextTurns: 8,
363
- maxContextTurns: 20,
364
- expectedAction: "SWAP_TOKEN",
365
- groundingKeywords: [
366
- "price",
367
- "market",
368
- "down",
369
- "buy the dip",
370
- "should I",
371
- "let's do it",
372
- ],
373
- generationHint: "Generate a LONG group conversation where 3-4 users discuss crypto market conditions. One user gradually moves from observing to deciding to trade. The intent to swap should emerge naturally over 5+ messages. The final message should clearly direct the agent to execute.",
374
- },
375
- {
376
- id: "respond-multi-turn-knowledge-001",
377
- decision: "RESPOND",
378
- primaryContext: "knowledge",
379
- pattern: "group_action_emergence",
380
- description: "Group debates a topic, eventually asks agent to research and settle the argument",
381
- minContextTurns: 6,
382
- maxContextTurns: 15,
383
- expectedAction: "SEARCH_KNOWLEDGE",
384
- groundingKeywords: [
385
- "actually",
386
- "I think",
387
- "no way",
388
- "look it up",
389
- "settle this",
390
- ],
391
- generationHint: "Generate a group chat where people argue about a factual question. After several turns of disagreement, someone asks the agent to look it up and settle the debate.",
392
- },
393
- {
394
- id: "respond-multi-turn-automation-001",
395
- decision: "RESPOND",
396
- primaryContext: "automation",
397
- pattern: "group_action_emergence",
398
- description: "Team discusses a recurring problem, eventually asks agent to automate a solution",
399
- minContextTurns: 6,
400
- maxContextTurns: 15,
401
- expectedAction: "CREATE_CRON",
402
- groundingKeywords: [
403
- "keeps happening",
404
- "every time",
405
- "automate",
406
- "daily",
407
- "schedule",
408
- ],
409
- generationHint: "Generate a group chat where team members discuss a recurring manual task that frustrates them. Over several turns, they realize the agent could automate it. Someone finally asks the agent to set up a scheduled job.",
410
- },
411
- ];
412
- const GENERATED_ACTION_SKIP = new Set(["NONE", "IGNORE", "STOP"]);
413
- const CONTEXT_KEYWORDS = {
414
- general: ["question", "follow up", "chat", "group"],
415
- wallet: ["wallet", "token", "swap", "balance"],
416
- knowledge: ["research", "lookup", "answer", "facts"],
417
- browser: ["link", "site", "page", "browser"],
418
- code: ["repo", "patch", "bug", "script"],
419
- media: ["image", "audio", "video", "describe"],
420
- automation: ["schedule", "workflow", "repeat", "automate"],
421
- social: ["contact", "message", "reply", "people"],
422
- system: ["setting", "runtime", "config", "permissions"],
423
- };
424
- const LEAD_IN_STYLES = [
425
- {
426
- id: "casual",
427
- description: "casual chatter",
428
- hint: "Start with lightweight group-chat banter before the key ask lands.",
429
- extraKeywords: ["hey", "lol", "anyway"],
430
- },
431
- {
432
- id: "operational",
433
- description: "operational planning",
434
- hint: "Frame the lead-in as a practical coordination thread with real constraints.",
435
- extraKeywords: ["need", "today", "ship"],
436
- },
437
- {
438
- id: "debate",
439
- description: "debate and disagreement",
440
- hint: "Make the lead-in a mild disagreement where the ask resolves uncertainty or friction.",
441
- extraKeywords: ["actually", "wait", "settle"],
442
- },
443
- ];
444
- const ACTION_RECIPES = [
445
- {
446
- id: "direct-short",
447
- pattern: "group_direct_mention",
448
- minContextTurns: 1,
449
- maxContextTurns: 5,
450
- description: "direct short request",
451
- hint: "The final message should directly address the agent by name with an explicit request.",
452
- },
453
- {
454
- id: "subtle-short",
455
- pattern: "group_subtle_mention",
456
- minContextTurns: 2,
457
- maxContextTurns: 7,
458
- description: "subtle mention request",
459
- hint: "Mention the agent naturally mid-sentence instead of using a formal command.",
460
- },
461
- {
462
- id: "reply-chain",
463
- pattern: "group_reply_chain",
464
- minContextTurns: 4,
465
- maxContextTurns: 10,
466
- description: "reply-chain continuation",
467
- hint: "Treat the ask as a continuation of an active thread where the agent has already been part of the exchange.",
468
- },
469
- {
470
- id: "multi-turn-intent",
471
- pattern: "group_multi_turn_intent",
472
- minContextTurns: 5,
473
- maxContextTurns: 12,
474
- description: "multi-turn intent buildup",
475
- hint: "The same user should build intent across several messages before finally asking the agent to act.",
476
- },
477
- {
478
- id: "action-emergence",
479
- pattern: "group_action_emergence",
480
- minContextTurns: 8,
481
- maxContextTurns: 18,
482
- description: "long action emergence",
483
- hint: "Let the action intent emerge gradually from a longer group conversation before the final explicit ask.",
484
- },
485
- {
486
- id: "long-context",
487
- pattern: "group_long_context",
488
- minContextTurns: 10,
489
- maxContextTurns: 22,
490
- description: "long-context request",
491
- hint: "Make the lead-in long and partly unrelated so the classifier must use the recent window rather than just the final line.",
492
- },
493
- ];
494
- const PROVIDER_RECIPES = [
495
- {
496
- id: "provider-direct",
497
- pattern: "group_direct_mention",
498
- minContextTurns: 2,
499
- maxContextTurns: 6,
500
- description: "direct provider request",
501
- hint: "The final ask should clearly require pulling in contextual data before answering.",
502
- },
503
- {
504
- id: "provider-subtle",
505
- pattern: "group_subtle_mention",
506
- minContextTurns: 3,
507
- maxContextTurns: 8,
508
- description: "subtle provider request",
509
- hint: "The request should be natural and indirect but still require the provider-backed context.",
510
- },
511
- ];
512
- const IGNORE_RECIPES = [
513
- {
514
- id: "noise",
515
- pattern: "group_noise",
516
- minContextTurns: 4,
517
- maxContextTurns: 12,
518
- description: "pure human conversation",
519
- hint: "The agent should not be mentioned at all.",
520
- },
521
- {
522
- id: "about-agent",
523
- pattern: "group_about_agent",
524
- minContextTurns: 4,
525
- maxContextTurns: 12,
526
- description: "people talking about the agent",
527
- hint: "Participants may reference the agent in third person, but they must not talk to it.",
528
- },
529
- {
530
- id: "wrong-agent",
531
- pattern: "group_wrong_agent",
532
- minContextTurns: 3,
533
- maxContextTurns: 10,
534
- description: "another assistant is addressed",
535
- hint: "A different assistant should be addressed directly while the trained agent should stay uninvolved.",
536
- },
537
- {
538
- id: "long-noise",
539
- pattern: "group_long_context",
540
- minContextTurns: 12,
541
- maxContextTurns: 24,
542
- description: "long unrelated thread",
543
- hint: "Keep the chat long enough that the agent has to ignore a noisy but context-heavy conversation.",
544
- },
545
- ];
546
- const STOP_RECIPES = [
547
- {
548
- id: "explicit",
549
- pattern: "group_stop_request",
550
- minContextTurns: 3,
551
- maxContextTurns: 9,
552
- description: "explicit stop request",
553
- hint: "Someone should clearly tell the agent to stop responding in the channel.",
554
- },
555
- {
556
- id: "polite",
557
- pattern: "group_stop_request",
558
- minContextTurns: 3,
559
- maxContextTurns: 8,
560
- description: "polite stop request",
561
- hint: "The stop request should be polite but unambiguous.",
562
- },
563
- {
564
- id: "moderator",
565
- pattern: "group_stop_request",
566
- minContextTurns: 4,
567
- maxContextTurns: 10,
568
- description: "moderator intervention",
569
- hint: "Frame the stop request as a moderator or channel-owner intervention.",
570
- },
571
- ];
572
- function slugify(value) {
573
- return value
574
- .toLowerCase()
575
- .replace(/[^a-z0-9]+/g, "-")
576
- .replace(/^-|-$/g, "");
577
- }
578
- function humanizeToken(value) {
579
- return value.toLowerCase().replace(/_/g, " ");
580
- }
581
- function uniqueList(values) {
582
- return [...new Set(values.filter((value) => value.trim().length > 0))];
583
- }
584
- function describeActionIntent(actionName, primaryContext) {
585
- const readable = humanizeToken(actionName);
586
- switch (primaryContext) {
587
- case "wallet":
588
- return `perform the wallet action "${readable}"`;
589
- case "knowledge":
590
- return `help with a knowledge task around "${readable}"`;
591
- case "browser":
592
- return `use browser capabilities to "${readable}"`;
593
- case "code":
594
- return `handle a coding or tooling task to "${readable}"`;
595
- case "media":
596
- return `handle a media workflow to "${readable}"`;
597
- case "automation":
598
- return `set up or run automation to "${readable}"`;
599
- case "social":
600
- return `help with a social coordination task to "${readable}"`;
601
- case "system":
602
- return `apply a runtime or system change to "${readable}"`;
603
- default:
604
- return `handle the request "${readable}"`;
605
- }
606
- }
607
- function buildGroundingKeywords(seed, primaryContext, leadIn) {
608
- return uniqueList([
609
- ...seed,
610
- ...CONTEXT_KEYWORDS[primaryContext],
611
- ...leadIn.extraKeywords,
612
- ]).slice(0, 8);
613
- }
614
- function createGeneratedActionScenarios() {
615
- const blueprints = [];
616
- for (const [actionName, contexts] of Object.entries(ACTION_CONTEXT_MAP)) {
617
- if (GENERATED_ACTION_SKIP.has(actionName))
618
- continue;
619
- const [primaryContext, ...secondaryContexts] = contexts;
620
- if (!primaryContext)
621
- continue;
622
- for (const recipe of ACTION_RECIPES) {
623
- for (const leadIn of LEAD_IN_STYLES) {
624
- const readableAction = humanizeToken(actionName);
625
- blueprints.push({
626
- id: `generated-respond-${slugify(actionName)}-${recipe.id}-${leadIn.id}`,
627
- decision: "RESPOND",
628
- primaryContext,
629
- secondaryContexts,
630
- pattern: recipe.pattern,
631
- description: `${describeActionIntent(actionName, primaryContext)} in ${leadIn.description} using ${recipe.description}`,
632
- minContextTurns: recipe.minContextTurns,
633
- maxContextTurns: recipe.maxContextTurns,
634
- expectedAction: actionName,
635
- groundingKeywords: buildGroundingKeywords(readableAction.split(" "), primaryContext, leadIn),
636
- generationHint: [
637
- `Generate a group chat where the final user intent is to ${describeActionIntent(actionName, primaryContext)}.`,
638
- `The conversation should clearly live in the ${primaryContext} context.`,
639
- recipe.hint,
640
- leadIn.hint,
641
- secondaryContexts.length > 0
642
- ? `Blend in these secondary contexts when natural: ${secondaryContexts.join(", ")}.`
643
- : "",
644
- ]
645
- .filter(Boolean)
646
- .join(" "),
647
- });
648
- }
649
- }
650
- }
651
- return blueprints;
652
- }
653
- function createGeneratedProviderScenarios() {
654
- const blueprints = [];
655
- for (const [providerName, contexts] of Object.entries(PROVIDER_CONTEXT_MAP)) {
656
- const [primaryContext, ...secondaryContexts] = contexts;
657
- if (!primaryContext)
658
- continue;
659
- for (const recipe of PROVIDER_RECIPES) {
660
- for (const leadIn of LEAD_IN_STYLES) {
661
- blueprints.push({
662
- id: `generated-provider-${slugify(providerName)}-${recipe.id}-${leadIn.id}`,
663
- decision: "RESPOND",
664
- primaryContext,
665
- secondaryContexts,
666
- pattern: recipe.pattern,
667
- description: `request that should require the "${providerName}" provider in ${leadIn.description}`,
668
- minContextTurns: recipe.minContextTurns,
669
- maxContextTurns: recipe.maxContextTurns,
670
- groundingKeywords: buildGroundingKeywords(providerName
671
- .split(/(?=[A-Z])|_/)
672
- .map((token) => token.toLowerCase()), primaryContext, leadIn),
673
- generationHint: [
674
- `Generate a group chat where answering well requires provider-backed context similar to "${providerName}".`,
675
- `Keep the primary context in ${primaryContext}.`,
676
- recipe.hint,
677
- leadIn.hint,
678
- ].join(" "),
679
- });
680
- }
681
- }
682
- }
683
- return blueprints;
684
- }
685
- function createGeneratedIgnoreScenarios() {
686
- const blueprints = [];
687
- for (const context of AGENT_CONTEXTS) {
688
- for (const recipe of IGNORE_RECIPES) {
689
- for (const leadIn of LEAD_IN_STYLES.slice(0, 2)) {
690
- blueprints.push({
691
- id: `generated-ignore-${context}-${recipe.id}-${leadIn.id}`,
692
- decision: "IGNORE",
693
- primaryContext: context,
694
- pattern: recipe.pattern,
695
- description: `ignore case for ${context} during ${recipe.description} with ${leadIn.description}`,
696
- minContextTurns: recipe.minContextTurns,
697
- maxContextTurns: recipe.maxContextTurns,
698
- groundingKeywords: buildGroundingKeywords([], context, leadIn),
699
- generationHint: [
700
- `Generate a ${context}-flavored group chat that should still be ignored by the agent.`,
701
- recipe.hint,
702
- leadIn.hint,
703
- `Do not create a valid direct ask for the agent in this sample.`,
704
- ].join(" "),
705
- });
706
- }
707
- }
708
- }
709
- return blueprints;
710
- }
711
- function createGeneratedStopScenarios() {
712
- return STOP_RECIPES.flatMap((recipe) => LEAD_IN_STYLES.map((leadIn) => ({
713
- id: `generated-stop-${recipe.id}-${leadIn.id}`,
714
- decision: "STOP",
715
- primaryContext: "general",
716
- pattern: recipe.pattern,
717
- description: `${recipe.description} after ${leadIn.description}`,
718
- minContextTurns: recipe.minContextTurns,
719
- maxContextTurns: recipe.maxContextTurns,
720
- groundingKeywords: buildGroundingKeywords(["stop", "quiet", "enough"], "general", leadIn),
721
- generationHint: [
722
- "Generate a group chat where the agent has been active enough for a stop request to make sense.",
723
- recipe.hint,
724
- leadIn.hint,
725
- ].join(" "),
726
- })));
727
- }
728
- const generatedActionScenarios = createGeneratedActionScenarios();
729
- const generatedProviderScenarios = createGeneratedProviderScenarios();
730
- const generatedIgnoreScenarios = createGeneratedIgnoreScenarios();
731
- const generatedStopScenarios = createGeneratedStopScenarios();
732
- function dedupeBlueprints(blueprints) {
733
- const seen = new Set();
734
- return blueprints.filter((blueprint) => {
735
- if (seen.has(blueprint.id))
736
- return false;
737
- seen.add(blueprint.id);
738
- return true;
739
- });
740
- }
741
- /**
742
- * All scenario blueprints, flattened.
743
- */
744
- export const ALL_BLUEPRINTS = dedupeBlueprints([
745
- ...respondGeneral,
746
- ...respondWallet,
747
- ...respondKnowledge,
748
- ...respondMedia,
749
- ...respondAutomation,
750
- ...respondSocial,
751
- ...respondCode,
752
- ...respondSystem,
753
- ...ignoreScenarios,
754
- ...stopScenarios,
755
- ...multiTurnIntentScenarios,
756
- ...generatedActionScenarios,
757
- ...generatedProviderScenarios,
758
- ...generatedIgnoreScenarios,
759
- ...generatedStopScenarios,
760
- ]);
761
- export const BLUEPRINT_STATS = {
762
- manualCount: respondGeneral.length +
763
- respondWallet.length +
764
- respondKnowledge.length +
765
- respondMedia.length +
766
- respondAutomation.length +
767
- respondSocial.length +
768
- respondCode.length +
769
- respondSystem.length +
770
- ignoreScenarios.length +
771
- stopScenarios.length +
772
- multiTurnIntentScenarios.length,
773
- generatedActionCount: generatedActionScenarios.length,
774
- generatedProviderCount: generatedProviderScenarios.length,
775
- generatedIgnoreCount: generatedIgnoreScenarios.length,
776
- generatedStopCount: generatedStopScenarios.length,
777
- totalCount: ALL_BLUEPRINTS.length,
778
- };
779
- /**
780
- * Get blueprints by decision type.
781
- */
782
- export function getBlueprintsByDecision(decision) {
783
- return ALL_BLUEPRINTS.filter((b) => b.decision === decision);
784
- }
785
- /**
786
- * Get blueprints by context.
787
- */
788
- export function getBlueprintsByContext(context) {
789
- return ALL_BLUEPRINTS.filter((b) => b.primaryContext === context || b.secondaryContexts?.includes(context));
790
- }