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

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,132 +0,0 @@
1
- /**
2
- * Issue Route Handlers
3
- *
4
- * Handles routes for GitHub issue management:
5
- * - List issues, create issue
6
- * - Get issue, comment on issue, close issue
7
- *
8
- * @module api/issue-routes
9
- */
10
- import { parseBody, sendError, sendJson } from "./routes.js";
11
- /**
12
- * Handle issue routes (/api/issues/*)
13
- * Returns true if the route was handled, false otherwise
14
- */
15
- export async function handleIssueRoutes(req, res, pathname, ctx) {
16
- const method = req.method?.toUpperCase();
17
- // GET /api/issues?repo=owner/repo&state=open
18
- if (method === "GET" && pathname === "/api/issues") {
19
- if (!ctx.workspaceService) {
20
- sendError(res, "Workspace Service not available", 503);
21
- return true;
22
- }
23
- try {
24
- const url = new URL(req.url || "", `http://${req.headers.host}`);
25
- const repo = url.searchParams.get("repo");
26
- if (!repo) {
27
- sendError(res, "repo query parameter required", 400);
28
- return true;
29
- }
30
- const state = url.searchParams.get("state");
31
- const labelsParam = url.searchParams.get("labels");
32
- const labels = labelsParam
33
- ? labelsParam.split(",").map((s) => s.trim())
34
- : undefined;
35
- const issues = await ctx.workspaceService.listIssues(repo, {
36
- state: state ?? "open",
37
- labels,
38
- });
39
- sendJson(res, issues);
40
- }
41
- catch (error) {
42
- sendError(res, error instanceof Error ? error.message : "Failed to list issues", 500);
43
- }
44
- return true;
45
- }
46
- // POST /api/issues
47
- if (method === "POST" && pathname === "/api/issues") {
48
- if (!ctx.workspaceService) {
49
- sendError(res, "Workspace Service not available", 503);
50
- return true;
51
- }
52
- try {
53
- const body = await parseBody(req);
54
- const { repo, title, body: issueBody, labels } = body;
55
- if (!repo || !title) {
56
- sendError(res, "repo and title are required", 400);
57
- return true;
58
- }
59
- const issue = await ctx.workspaceService.createIssue(repo, {
60
- title: title,
61
- body: issueBody ?? "",
62
- labels: labels,
63
- });
64
- sendJson(res, issue, 201);
65
- }
66
- catch (error) {
67
- sendError(res, error instanceof Error ? error.message : "Failed to create issue", 500);
68
- }
69
- return true;
70
- }
71
- // GET /api/issues/:repo/:number (e.g., /api/issues/owner/repo/42)
72
- const issueGetMatch = pathname.match(/^\/api\/issues\/([^/]+)\/([^/]+)\/(\d+)$/);
73
- if (method === "GET" && issueGetMatch) {
74
- if (!ctx.workspaceService) {
75
- sendError(res, "Workspace Service not available", 503);
76
- return true;
77
- }
78
- try {
79
- const repo = `${issueGetMatch[1]}/${issueGetMatch[2]}`;
80
- const issueNumber = parseInt(issueGetMatch[3], 10);
81
- const issue = await ctx.workspaceService.getIssue(repo, issueNumber);
82
- sendJson(res, issue);
83
- }
84
- catch (error) {
85
- sendError(res, error instanceof Error ? error.message : "Failed to get issue", 500);
86
- }
87
- return true;
88
- }
89
- // POST /api/issues/:repo/:number/comment
90
- const commentMatch = pathname.match(/^\/api\/issues\/([^/]+)\/([^/]+)\/(\d+)\/comment$/);
91
- if (method === "POST" && commentMatch) {
92
- if (!ctx.workspaceService) {
93
- sendError(res, "Workspace Service not available", 503);
94
- return true;
95
- }
96
- try {
97
- const repo = `${commentMatch[1]}/${commentMatch[2]}`;
98
- const issueNumber = parseInt(commentMatch[3], 10);
99
- const body = await parseBody(req);
100
- if (!body.body) {
101
- sendError(res, "body is required", 400);
102
- return true;
103
- }
104
- const comment = await ctx.workspaceService.addComment(repo, issueNumber, body.body);
105
- sendJson(res, comment, 201);
106
- }
107
- catch (error) {
108
- sendError(res, error instanceof Error ? error.message : "Failed to add comment", 500);
109
- }
110
- return true;
111
- }
112
- // POST /api/issues/:repo/:number/close
113
- const closeMatch = pathname.match(/^\/api\/issues\/([^/]+)\/([^/]+)\/(\d+)\/close$/);
114
- if (method === "POST" && closeMatch) {
115
- if (!ctx.workspaceService) {
116
- sendError(res, "Workspace Service not available", 503);
117
- return true;
118
- }
119
- try {
120
- const repo = `${closeMatch[1]}/${closeMatch[2]}`;
121
- const issueNumber = parseInt(closeMatch[3], 10);
122
- const issue = await ctx.workspaceService.closeIssue(repo, issueNumber);
123
- sendJson(res, issue);
124
- }
125
- catch (error) {
126
- sendError(res, error instanceof Error ? error.message : "Failed to close issue", 500);
127
- }
128
- return true;
129
- }
130
- // Route not handled
131
- return false;
132
- }
@@ -1,37 +0,0 @@
1
- /**
2
- * Task Agent API Routes — Dispatcher
3
- *
4
- * Provides shared helpers (parseBody, sendJson, sendError), types, and the
5
- * top-level route dispatcher that delegates to domain-specific route modules.
6
- *
7
- * @module api/routes
8
- */
9
- import type { IncomingMessage, ServerResponse } from "node:http";
10
- import type { IAgentRuntime } from "@elizaos/core";
11
- import type { PTYService } from "../services/pty-service.ts";
12
- import type { SwarmCoordinator } from "../services/swarm-coordinator.ts";
13
- import type { CodingWorkspaceService } from "../services/workspace-service.ts";
14
- export type JsonValue = string | number | boolean | null | JsonValue[] | {
15
- [key: string]: JsonValue;
16
- };
17
- export interface RouteContext {
18
- runtime: IAgentRuntime;
19
- ptyService: PTYService | null;
20
- workspaceService: CodingWorkspaceService | null;
21
- coordinator?: SwarmCoordinator;
22
- }
23
- export declare const MAX_BODY_SIZE: number;
24
- export declare function parseBody(req: IncomingMessage): Promise<Record<string, unknown>>;
25
- export declare function sendJson(res: ServerResponse, data: JsonValue, status?: number): void;
26
- export declare function sendError(res: ServerResponse, message: string, status?: number): void;
27
- /**
28
- * Handle task-agent routes
29
- * Returns true if the route was handled, false otherwise
30
- */
31
- export declare function handleCodingAgentRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
32
- /**
33
- * Create route handler with services from runtime
34
- */
35
- export declare function createCodingAgentRouteHandler(runtime: IAgentRuntime, coordinator?: SwarmCoordinator): (req: IncomingMessage, res: ServerResponse, pathname: string) => Promise<boolean>;
36
- export declare const createTaskAgentRouteHandler: typeof createCodingAgentRouteHandler;
37
- //# sourceMappingURL=routes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/api/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAO/E,MAAM,MAAM,SAAS,GAClB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEhC,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,gBAAgB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAGD,eAAO,MAAM,aAAa,QAAc,CAAC;AAGzC,wBAAsB,SAAS,CAC9B,GAAG,EAAE,eAAe,GAClB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAsBlC;AAGD,wBAAgB,QAAQ,CACvB,GAAG,EAAE,cAAc,EACnB,IAAI,EAAE,SAAS,EACf,MAAM,SAAM,GACV,IAAI,CAGN;AAGD,wBAAgB,SAAS,CACxB,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,SAAM,GACV,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC5C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GACf,OAAO,CAAC,OAAO,CAAC,CAgClB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC5C,OAAO,EAAE,aAAa,EACtB,WAAW,CAAC,EAAE,gBAAgB,IAEtB,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,UAAU,MAAM,sBAiBnE;AAED,eAAO,MAAM,2BAA2B,sCAAgC,CAAC"}
@@ -1,96 +0,0 @@
1
- /**
2
- * Task Agent API Routes — Dispatcher
3
- *
4
- * Provides shared helpers (parseBody, sendJson, sendError), types, and the
5
- * top-level route dispatcher that delegates to domain-specific route modules.
6
- *
7
- * @module api/routes
8
- */
9
- import { handleAgentRoutes } from "./agent-routes.js";
10
- import { handleCoordinatorRoutes } from "./coordinator-routes.js";
11
- import { handleHookRoutes } from "./hook-routes.js";
12
- import { handleIssueRoutes } from "./issue-routes.js";
13
- import { handleWorkspaceRoutes } from "./workspace-routes.js";
14
- // Max request body size (1 MB)
15
- export const MAX_BODY_SIZE = 1024 * 1024;
16
- // Helper to parse JSON body with size limit
17
- export async function parseBody(req) {
18
- return new Promise((resolve, reject) => {
19
- let body = "";
20
- let size = 0;
21
- req.on("data", (chunk) => {
22
- size += typeof chunk === "string" ? chunk.length : chunk.byteLength;
23
- if (size > MAX_BODY_SIZE) {
24
- req.destroy();
25
- reject(new Error("Request body too large"));
26
- return;
27
- }
28
- body += chunk;
29
- });
30
- req.on("end", () => {
31
- try {
32
- resolve(body ? JSON.parse(body) : {});
33
- }
34
- catch {
35
- reject(new Error("Invalid JSON body"));
36
- }
37
- });
38
- req.on("error", reject);
39
- });
40
- }
41
- // Helper to send JSON response
42
- export function sendJson(res, data, status = 200) {
43
- res.writeHead(status, { "Content-Type": "application/json" });
44
- res.end(JSON.stringify(data));
45
- }
46
- // Helper to send error
47
- export function sendError(res, message, status = 400) {
48
- sendJson(res, { error: message }, status);
49
- }
50
- /**
51
- * Handle task-agent routes
52
- * Returns true if the route was handled, false otherwise
53
- */
54
- export async function handleCodingAgentRoutes(req, res, pathname, ctx) {
55
- const normalizedPathname = pathname.startsWith("/api/task-agents")
56
- ? pathname.replace(/^\/api\/task-agents/, "/api/coding-agents")
57
- : pathname;
58
- // Delegate to hook routes first — hooks need fast responses
59
- if (await handleHookRoutes(req, res, normalizedPathname, ctx)) {
60
- return true;
61
- }
62
- // Delegate to coordinator routes (before agent routes — more specific prefix)
63
- if (await handleCoordinatorRoutes(req, res, normalizedPathname, ctx)) {
64
- return true;
65
- }
66
- // Delegate to agent routes
67
- if (await handleAgentRoutes(req, res, normalizedPathname, ctx)) {
68
- return true;
69
- }
70
- // Delegate to workspace routes
71
- if (await handleWorkspaceRoutes(req, res, normalizedPathname, ctx)) {
72
- return true;
73
- }
74
- // Delegate to issue routes
75
- if (await handleIssueRoutes(req, res, normalizedPathname, ctx)) {
76
- return true;
77
- }
78
- // Route not handled
79
- return false;
80
- }
81
- /**
82
- * Create route handler with services from runtime
83
- */
84
- export function createCodingAgentRouteHandler(runtime, coordinator) {
85
- return (req, res, pathname) => {
86
- const ctx = {
87
- runtime,
88
- ptyService: runtime.getService("PTY_SERVICE"),
89
- workspaceService: runtime.getService("CODING_WORKSPACE_SERVICE"),
90
- coordinator: coordinator ??
91
- runtime.getService("SWARM_COORDINATOR"),
92
- };
93
- return handleCodingAgentRoutes(req, res, pathname, ctx);
94
- };
95
- }
96
- export const createTaskAgentRouteHandler = createCodingAgentRouteHandler;
@@ -1,17 +0,0 @@
1
- /**
2
- * Workspace Route Handlers
3
- *
4
- * Handles routes for git workspace management:
5
- * - Provision (clone repos, create worktrees)
6
- * - Get status, commit, push, create PR, delete
7
- *
8
- * @module api/workspace-routes
9
- */
10
- import type { IncomingMessage, ServerResponse } from "node:http";
11
- import type { RouteContext } from "./routes.ts";
12
- /**
13
- * Handle workspace routes (/api/workspace/*)
14
- * Returns true if the route was handled, false otherwise
15
- */
16
- export declare function handleWorkspaceRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
17
- //# sourceMappingURL=workspace-routes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-routes.d.ts","sourceRoot":"","sources":["../../../../../../../../typescript/src/features/orchestrator/api/workspace-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAWhD;;;GAGG;AACH,wBAAsB,qBAAqB,CAC1C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GACf,OAAO,CAAC,OAAO,CAAC,CAkLlB"}
@@ -1,149 +0,0 @@
1
- /**
2
- * Workspace Route Handlers
3
- *
4
- * Handles routes for git workspace management:
5
- * - Provision (clone repos, create worktrees)
6
- * - Get status, commit, push, create PR, delete
7
- *
8
- * @module api/workspace-routes
9
- */
10
- import { parseBody, sendError, sendJson } from "./routes.js";
11
- /**
12
- * Handle workspace routes (/api/workspace/*)
13
- * Returns true if the route was handled, false otherwise
14
- */
15
- export async function handleWorkspaceRoutes(req, res, pathname, ctx) {
16
- const method = req.method?.toUpperCase();
17
- // POST /api/workspace/provision
18
- if (method === "POST" && pathname === "/api/workspace/provision") {
19
- if (!ctx.workspaceService) {
20
- sendError(res, "Workspace Service not available", 503);
21
- return true;
22
- }
23
- try {
24
- const body = await parseBody(req);
25
- const { repo, baseBranch, useWorktree, parentWorkspaceId, branchName } = body;
26
- const workspace = await ctx.workspaceService.provisionWorkspace({
27
- repo: repo,
28
- baseBranch: baseBranch,
29
- branchName: branchName,
30
- useWorktree: useWorktree,
31
- parentWorkspaceId: parentWorkspaceId,
32
- });
33
- sendJson(res, {
34
- id: workspace.id,
35
- path: workspace.path,
36
- branch: workspace.branch,
37
- isWorktree: workspace.isWorktree,
38
- }, 201);
39
- }
40
- catch (error) {
41
- sendError(res, error instanceof Error
42
- ? error.message
43
- : "Failed to provision workspace", 500);
44
- }
45
- return true;
46
- }
47
- // GET /api/workspace/:id
48
- const workspaceMatch = pathname.match(/^\/api\/workspace\/([^/]+)$/);
49
- if (method === "GET" && workspaceMatch) {
50
- if (!ctx.workspaceService) {
51
- sendError(res, "Workspace Service not available", 503);
52
- return true;
53
- }
54
- try {
55
- const workspaceId = workspaceMatch[1];
56
- const status = await ctx.workspaceService.getStatus(workspaceId);
57
- sendJson(res, status);
58
- }
59
- catch (error) {
60
- sendError(res, error instanceof Error ? error.message : "Failed to get workspace", 500);
61
- }
62
- return true;
63
- }
64
- // POST /api/workspace/:id/commit
65
- const commitMatch = pathname.match(/^\/api\/workspace\/([^/]+)\/commit$/);
66
- if (method === "POST" && commitMatch) {
67
- if (!ctx.workspaceService) {
68
- sendError(res, "Workspace Service not available", 503);
69
- return true;
70
- }
71
- try {
72
- const workspaceId = commitMatch[1];
73
- const body = await parseBody(req);
74
- const { message } = body;
75
- const result = await ctx.workspaceService.commit(workspaceId, {
76
- message: message,
77
- all: true,
78
- });
79
- sendJson(res, result);
80
- }
81
- catch (error) {
82
- sendError(res, error instanceof Error ? error.message : "Failed to commit", 500);
83
- }
84
- return true;
85
- }
86
- // POST /api/workspace/:id/push
87
- const pushMatch = pathname.match(/^\/api\/workspace\/([^/]+)\/push$/);
88
- if (method === "POST" && pushMatch) {
89
- if (!ctx.workspaceService) {
90
- sendError(res, "Workspace Service not available", 503);
91
- return true;
92
- }
93
- try {
94
- const workspaceId = pushMatch[1];
95
- const body = await parseBody(req);
96
- const result = await ctx.workspaceService.push(workspaceId, {
97
- force: body.force,
98
- setUpstream: body.setUpstream,
99
- });
100
- sendJson(res, result);
101
- }
102
- catch (error) {
103
- sendError(res, error instanceof Error ? error.message : "Failed to push", 500);
104
- }
105
- return true;
106
- }
107
- // POST /api/workspace/:id/pr
108
- const prMatch = pathname.match(/^\/api\/workspace\/([^/]+)\/pr$/);
109
- if (method === "POST" && prMatch) {
110
- if (!ctx.workspaceService) {
111
- sendError(res, "Workspace Service not available", 503);
112
- return true;
113
- }
114
- try {
115
- const workspaceId = prMatch[1];
116
- const body = await parseBody(req);
117
- const result = await ctx.workspaceService.createPR(workspaceId, {
118
- title: body.title,
119
- body: body.body,
120
- base: body.baseBranch,
121
- draft: body.draft,
122
- });
123
- sendJson(res, result, 201);
124
- }
125
- catch (error) {
126
- sendError(res, error instanceof Error ? error.message : "Failed to create PR", 500);
127
- }
128
- return true;
129
- }
130
- // DELETE /api/workspace/:id
131
- const deleteMatch = pathname.match(/^\/api\/workspace\/([^/]+)$/);
132
- if (method === "DELETE" && deleteMatch) {
133
- if (!ctx.workspaceService) {
134
- sendError(res, "Workspace Service not available", 503);
135
- return true;
136
- }
137
- try {
138
- const workspaceId = deleteMatch[1];
139
- await ctx.workspaceService.removeWorkspace(workspaceId);
140
- sendJson(res, { success: true, workspaceId });
141
- }
142
- catch (error) {
143
- sendError(res, error instanceof Error ? error.message : "Failed to remove workspace", 500);
144
- }
145
- return true;
146
- }
147
- // Route not handled
148
- return false;
149
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * Task Agent Plugin for Eliza
3
- *
4
- * Provides orchestration capabilities for CLI-based task agents:
5
- * - PTY session management (spawn, control, monitor task agents)
6
- * - Git workspace provisioning (clone, branch, PR creation)
7
- * - GitHub issue management (create, list, update, close)
8
- * - Integration with Claude Code, Codex, Gemini CLI, Aider, Pi, etc.
9
- *
10
- * @module orchestrator
11
- */
12
- import type { Plugin } from "../../types/index.ts";
13
- /** Raw plugin object; the shipped entry applies patches in `patch-agent-orchestrator-plugin.ts`. */
14
- export declare const taskAgentPluginBase: Plugin;
15
- export declare const codingAgentPluginBase: Plugin;
16
- export default taskAgentPluginBase;
17
- /** Internal: unpatched plugin; prefer `createAgentOrchestratorPlugin` from `index.ts`. */
18
- export declare function createAgentOrchestratorPluginBase(): Plugin;
19
- //# sourceMappingURL=base-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-plugin.d.ts","sourceRoot":"","sources":["../../../../../../../typescript/src/features/orchestrator/base-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAuBnD,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,EAAE,MAyCjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAsB,CAAC;AAEzD,eAAe,mBAAmB,CAAC;AAEnC,0FAA0F;AAC1F,wBAAgB,iCAAiC,IAAI,MAAM,CAE1D"}
@@ -1,75 +0,0 @@
1
- /**
2
- * Task Agent Plugin for Eliza
3
- *
4
- * Provides orchestration capabilities for CLI-based task agents:
5
- * - PTY session management (spawn, control, monitor task agents)
6
- * - Git workspace provisioning (clone, branch, PR creation)
7
- * - GitHub issue management (create, list, update, close)
8
- * - Integration with Claude Code, Codex, Gemini CLI, Aider, Pi, etc.
9
- *
10
- * @module orchestrator
11
- */
12
- import { finalizeWorkspaceAction } from "./actions/finalize-workspace.js";
13
- import { listAgentsAction } from "./actions/list-agents.js";
14
- // Actions - Issue management
15
- import { manageIssuesAction } from "./actions/manage-issues.js";
16
- // Actions - Workspace management
17
- import { provisionWorkspaceAction } from "./actions/provision-workspace.js";
18
- import { sendToAgentAction } from "./actions/send-to-agent.js";
19
- // Actions - PTY management
20
- import { spawnAgentAction } from "./actions/spawn-agent.js";
21
- // Actions - Unified task launcher
22
- import { startCodingTaskAction } from "./actions/start-coding-task.js";
23
- import { stopAgentAction } from "./actions/stop-agent.js";
24
- import { taskControlAction } from "./actions/task-control.js";
25
- import { taskHistoryAction } from "./actions/task-history.js";
26
- import { taskShareAction } from "./actions/task-share.js";
27
- // Providers
28
- import { codingAgentExamplesProvider } from "./providers/action-examples.js";
29
- import { activeWorkspaceContextProvider } from "./providers/active-workspace-context.js";
30
- // Services
31
- import { PTYService } from "./services/pty-service.js";
32
- import { CodingWorkspaceService } from "./services/workspace-service.js";
33
- /** Raw plugin object; the shipped entry applies patches in `patch-agent-orchestrator-plugin.ts`. */
34
- export const taskAgentPluginBase = {
35
- name: "@elizaos/agent-orchestrator",
36
- description: "Orchestrate open-ended task agents (Claude Code, Codex, Gemini CLI, Aider, Pi, etc.) via PTY sessions, " +
37
- "manage workspaces, track current task status, and keep background work moving while the main agent stays in conversation",
38
- // NOTE: init() is NOT reliably called by ElizaOS for workspace plugins.
39
- // SwarmCoordinator and auth callback wiring is done in PTYService.start()
40
- // which ElizaOS calls reliably via the services lifecycle.
41
- // Services manage PTY sessions and git workspaces
42
- // biome-ignore lint/suspicious/noExplicitAny: ElizaOS Plugin type expects Service[] but our classes don't extend their base Service
43
- services: [PTYService, CodingWorkspaceService],
44
- // Actions expose capabilities to the agent
45
- actions: [
46
- // Unified task launcher (provision + spawn in one step)
47
- startCodingTaskAction,
48
- // PTY session management (for direct control)
49
- spawnAgentAction,
50
- sendToAgentAction,
51
- stopAgentAction,
52
- listAgentsAction,
53
- taskHistoryAction,
54
- taskControlAction,
55
- taskShareAction,
56
- // Workspace management
57
- provisionWorkspaceAction,
58
- finalizeWorkspaceAction,
59
- // Issue management
60
- manageIssuesAction,
61
- ],
62
- // No evaluators needed for now
63
- evaluators: [],
64
- // Providers inject context into the prompt
65
- providers: [
66
- activeWorkspaceContextProvider, // Live workspace/session state
67
- codingAgentExamplesProvider, // Structured action call examples
68
- ],
69
- };
70
- export const codingAgentPluginBase = taskAgentPluginBase;
71
- export default taskAgentPluginBase;
72
- /** Internal: unpatched plugin; prefer `createAgentOrchestratorPlugin` from `index.ts`. */
73
- export function createAgentOrchestratorPluginBase() {
74
- return taskAgentPluginBase;
75
- }
@@ -1,101 +0,0 @@
1
- /**
2
- * Watches the Claude Code session jsonl for each active PTY session and
3
- * emits a synthetic `task_complete` event when the agent produces an
4
- * assistant message with `stop_reason === "end_turn"`. This is the
5
- * ground-truth completion signal from Claude Code's own session record —
6
- * independent of PTY buffer state, TUI ready events, or the stall
7
- * classifier's buffer-text heuristics.
8
- *
9
- * ## Why this exists
10
- *
11
- * The orchestrator's historical completion detection leaned on PTY-side
12
- * heuristics (buffer silence + ready event + stall-classifier LLM), all of
13
- * which misfire for long open-ended tasks. Claude Code's own hooks are a
14
- * more reliable signal and remain the primary path, but hooks can fail
15
- * silently if the user's hook config is broken or a future Claude Code
16
- * release changes the contract. The jsonl is a durable, parseable record
17
- * of every turn written by the CLI itself — using it as an additional
18
- * ground truth makes completion detection robust across those failure
19
- * modes.
20
- *
21
- * ## Dedup contract with the hook path
22
- *
23
- * pty-service.handleHookEvent emits `task_complete` on the authoritative
24
- * hook signal. This watcher emits a synthetic `task_complete` with an
25
- * `internal: { source: "jsonl-watcher" }` marker. The orchestrator's
26
- * downstream consumers (coordinator's handleTurnComplete, the eliza
27
- * task-progress-streamer) already dedupe `task_complete` per session
28
- * (`finalSent` in the streamer, `inFlightDecisions` in the coordinator).
29
- * Whichever signal fires first wins; the second is a no-op.
30
- *
31
- * ## Polling vs fs.watch
32
- *
33
- * This uses polling (1s interval) rather than `fs.watch` because:
34
- * - jsonl files are append-only and small (~KB to MB)
35
- * - polling is portable across linux / macOS file systems
36
- * - fs.watch on linux has known gotchas with multiple writers and with
37
- * files created after the watcher is established
38
- * - the jsonl doesn't exist when the session spawns — we need retry
39
- * logic anyway, which fs.watch doesn't naturally provide
40
- *
41
- * @module orchestrator/claude-jsonl-completion-watcher
42
- */
43
- import type { IAgentRuntime } from "@elizaos/core";
44
- /**
45
- * Install the jsonl completion watcher on a runtime's PTY service.
46
- * Idempotent — repeat calls on the same runtime are no-ops.
47
- *
48
- * The watcher subscribes to `onSessionEvent` to learn when sessions start
49
- * (first event) and stop (`stopped` event), and runs one poller per live
50
- * session. Pollers tear themselves down on `stopped` or after firing a
51
- * completion event.
52
- */
53
- export declare function installClaudeJsonlCompletionWatcher(runtime: IAgentRuntime, ptyService: unknown): void;
54
- /**
55
- * Locate the newest `.jsonl` file under Claude Code's project directory
56
- * for a given workdir. Returns null if the directory or any matching
57
- * file does not yet exist (e.g., the session has not produced output).
58
- *
59
- * "Newest" means most recently modified. Claude Code names session files
60
- * with UUIDs, which do NOT sort chronologically — a workspace that has
61
- * had multiple sessions will have multiple jsonl files, and picking the
62
- * lexicographically last name returns a stale file from an older session
63
- * roughly at random. We stat each file and pick the one with the greatest
64
- * mtime instead. Files that fail to stat (e.g., deleted between readdir
65
- * and stat) are skipped.
66
- *
67
- * Exported for tests.
68
- */
69
- export declare function findLatestJsonl(workdir: string): Promise<string | null>;
70
- /**
71
- * Scan a claude code session jsonl string tail-first for the latest
72
- * assistant message, returning its extracted text plus whether the turn
73
- * has finished (`stop_reason === "end_turn"`).
74
- *
75
- * - Returns `null` if no assistant message exists at all.
76
- * - Returns `{ text, isEndTurn: false }` when the latest assistant turn is
77
- * still in progress (`tool_use`, `max_tokens` mid-batch, etc.) — the
78
- * streamer uses this shape to post intermediate text without waiting.
79
- * - Returns `{ text, isEndTurn: true }` when the latest assistant turn is
80
- * finished — the watcher uses this to fire a synthetic `task_complete`.
81
- *
82
- * Exported so both the completion watcher and task-progress-streamer can
83
- * share one jsonl parser.
84
- */
85
- export declare function readLatestAssistantEntry(content: string): {
86
- text: string;
87
- isEndTurn: boolean;
88
- } | null;
89
- /**
90
- * Convenience wrapper: locate the latest session jsonl for `workdir` and
91
- * return the extracted assistant entry, or `null` if no file or no
92
- * assistant message exists yet.
93
- *
94
- * Used by the task-progress-streamer and the completion watcher so they
95
- * share one implementation of "read the latest claude assistant turn".
96
- */
97
- export declare function readLatestAssistantFromWorkdir(workdir: string): Promise<{
98
- text: string;
99
- isEndTurn: boolean;
100
- } | null>;
101
- //# sourceMappingURL=claude-jsonl-completion-watcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claude-jsonl-completion-watcher.d.ts","sourceRoot":"","sources":["../../../../../../../typescript/src/features/orchestrator/claude-jsonl-completion-watcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoBnD;;;;;;;;GAQG;AACH,wBAAgB,mCAAmC,CAClD,OAAO,EAAE,aAAa,EACtB,UAAU,EAAE,OAAO,GACjB,IAAI,CA8DN;AA6ED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAiC7E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,MAAM,GACb;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CA2B7C;AAED;;;;;;;GAOG;AACH,wBAAsB,8BAA8B,CACnD,OAAO,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC,CAUtD"}