@elizaos/ui 2.0.0-alpha.52 → 2.0.0-alpha.521

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 (3934) hide show
  1. package/apps/app-companion/src/emotes/catalog.d.ts +31 -0
  2. package/apps/app-companion/src/emotes/catalog.d.ts.map +1 -0
  3. package/apps/app-companion/src/emotes/catalog.js +402 -0
  4. package/apps/app-companion/src/emotes/index.d.ts +2 -0
  5. package/apps/app-companion/src/emotes/index.d.ts.map +1 -0
  6. package/apps/app-companion/src/emotes/index.js +1 -0
  7. package/apps/app-elizamaker/src/drop-routes.d.ts +22 -0
  8. package/apps/app-elizamaker/src/drop-routes.d.ts.map +1 -0
  9. package/apps/app-elizamaker/src/drop-routes.js +155 -0
  10. package/apps/app-elizamaker/src/drop-service-registry.d.ts +4 -0
  11. package/apps/app-elizamaker/src/drop-service-registry.d.ts.map +1 -0
  12. package/apps/app-elizamaker/src/drop-service-registry.js +7 -0
  13. package/apps/app-elizamaker/src/drop-service.d.ts +31 -0
  14. package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -0
  15. package/apps/app-elizamaker/src/drop-service.js +134 -0
  16. package/apps/app-elizamaker/src/index.d.ts +10 -0
  17. package/apps/app-elizamaker/src/index.d.ts.map +1 -0
  18. package/apps/app-elizamaker/src/index.js +7 -0
  19. package/apps/app-elizamaker/src/merkle-tree.d.ts +90 -0
  20. package/apps/app-elizamaker/src/merkle-tree.d.ts.map +1 -0
  21. package/apps/app-elizamaker/src/merkle-tree.js +174 -0
  22. package/apps/app-elizamaker/src/og-tracker.d.ts +28 -0
  23. package/apps/app-elizamaker/src/og-tracker.d.ts.map +1 -0
  24. package/apps/app-elizamaker/src/og-tracker.js +60 -0
  25. package/apps/app-elizamaker/src/plugin.d.ts +4 -0
  26. package/apps/app-elizamaker/src/plugin.d.ts.map +1 -0
  27. package/apps/app-elizamaker/src/plugin.js +80 -0
  28. package/apps/app-elizamaker/src/twitter-verify.d.ts +25 -0
  29. package/apps/app-elizamaker/src/twitter-verify.d.ts.map +1 -0
  30. package/apps/app-elizamaker/src/twitter-verify.js +167 -0
  31. package/apps/app-lifeops/src/actions/website-blocker.d.ts +8 -0
  32. package/apps/app-lifeops/src/actions/website-blocker.d.ts.map +1 -0
  33. package/apps/app-lifeops/src/actions/website-blocker.js +832 -0
  34. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts +28 -0
  35. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts.map +1 -0
  36. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.js +62 -0
  37. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts +52 -0
  38. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts.map +1 -0
  39. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.js +129 -0
  40. package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts +10 -0
  41. package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts.map +1 -0
  42. package/apps/app-lifeops/src/activity-profile/profile-metadata.js +25 -0
  43. package/apps/app-lifeops/src/activity-profile/redactor.d.ts +18 -0
  44. package/apps/app-lifeops/src/activity-profile/redactor.d.ts.map +1 -0
  45. package/apps/app-lifeops/src/activity-profile/redactor.js +39 -0
  46. package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts +8 -0
  47. package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts.map +1 -0
  48. package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.js +75 -0
  49. package/apps/app-lifeops/src/activity-profile/types.d.ts +89 -0
  50. package/apps/app-lifeops/src/activity-profile/types.d.ts.map +1 -0
  51. package/apps/app-lifeops/src/activity-profile/types.js +29 -0
  52. package/apps/app-lifeops/src/contracts/index.d.ts +3 -0
  53. package/apps/app-lifeops/src/contracts/index.d.ts.map +1 -0
  54. package/apps/app-lifeops/src/contracts/index.js +2 -0
  55. package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts +7 -0
  56. package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
  57. package/apps/app-lifeops/src/inbox/channel-deep-links.js +108 -0
  58. package/apps/app-lifeops/src/inbox/message-fetcher.d.ts +47 -0
  59. package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
  60. package/apps/app-lifeops/src/inbox/message-fetcher.js +445 -0
  61. package/apps/app-lifeops/src/inbox/types.d.ts +118 -0
  62. package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
  63. package/apps/app-lifeops/src/inbox/types.js +1 -0
  64. package/apps/app-lifeops/src/lifeops/app-state.d.ts +22 -0
  65. package/apps/app-lifeops/src/lifeops/app-state.d.ts.map +1 -0
  66. package/apps/app-lifeops/src/lifeops/app-state.js +72 -0
  67. package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts +58 -0
  68. package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts.map +1 -0
  69. package/apps/app-lifeops/src/lifeops/apple-reminders.js +325 -0
  70. package/apps/app-lifeops/src/lifeops/awake-probability.d.ts +11 -0
  71. package/apps/app-lifeops/src/lifeops/awake-probability.d.ts.map +1 -0
  72. package/apps/app-lifeops/src/lifeops/awake-probability.js +169 -0
  73. package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts +47 -0
  74. package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts.map +1 -0
  75. package/apps/app-lifeops/src/lifeops/bill-extraction.js +355 -0
  76. package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts +61 -0
  77. package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts.map +1 -0
  78. package/apps/app-lifeops/src/lifeops/browser-extension-store.js +181 -0
  79. package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts +16 -0
  80. package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts.map +1 -0
  81. package/apps/app-lifeops/src/lifeops/browser-readiness.js +74 -0
  82. package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts +57 -0
  83. package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts.map +1 -0
  84. package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.js +267 -0
  85. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts +61 -0
  86. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts.map +1 -0
  87. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.js +975 -0
  88. package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts +18 -0
  89. package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts.map +1 -0
  90. package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.js +26 -0
  91. package/apps/app-lifeops/src/lifeops/checkin/types.d.ts +78 -0
  92. package/apps/app-lifeops/src/lifeops/checkin/types.d.ts.map +1 -0
  93. package/apps/app-lifeops/src/lifeops/checkin/types.js +7 -0
  94. package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts +45 -0
  95. package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts.map +1 -0
  96. package/apps/app-lifeops/src/lifeops/circadian-rules.js +291 -0
  97. package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts +31 -0
  98. package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts.map +1 -0
  99. package/apps/app-lifeops/src/lifeops/continuity-probe.js +187 -0
  100. package/apps/app-lifeops/src/lifeops/defaults.d.ts +24 -0
  101. package/apps/app-lifeops/src/lifeops/defaults.d.ts.map +1 -0
  102. package/apps/app-lifeops/src/lifeops/defaults.js +212 -0
  103. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts +109 -0
  104. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts.map +1 -0
  105. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.js +536 -0
  106. package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts +33 -0
  107. package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts.map +1 -0
  108. package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.js +521 -0
  109. package/apps/app-lifeops/src/lifeops/email-classifier.d.ts +57 -0
  110. package/apps/app-lifeops/src/lifeops/email-classifier.d.ts.map +1 -0
  111. package/apps/app-lifeops/src/lifeops/email-classifier.js +337 -0
  112. package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts +64 -0
  113. package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts.map +1 -0
  114. package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.js +273 -0
  115. package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts +67 -0
  116. package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts.map +1 -0
  117. package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.js +1 -0
  118. package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts +34 -0
  119. package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts.map +1 -0
  120. package/apps/app-lifeops/src/lifeops/enforcement-windows.js +103 -0
  121. package/apps/app-lifeops/src/lifeops/engine.d.ts +8 -0
  122. package/apps/app-lifeops/src/lifeops/engine.d.ts.map +1 -0
  123. package/apps/app-lifeops/src/lifeops/engine.js +393 -0
  124. package/apps/app-lifeops/src/lifeops/fda-probe.d.ts +23 -0
  125. package/apps/app-lifeops/src/lifeops/fda-probe.d.ts.map +1 -0
  126. package/apps/app-lifeops/src/lifeops/fda-probe.js +70 -0
  127. package/apps/app-lifeops/src/lifeops/feature-flags.d.ts +20 -0
  128. package/apps/app-lifeops/src/lifeops/feature-flags.d.ts.map +1 -0
  129. package/apps/app-lifeops/src/lifeops/feature-flags.js +241 -0
  130. package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts +144 -0
  131. package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts.map +1 -0
  132. package/apps/app-lifeops/src/lifeops/feature-flags.types.js +178 -0
  133. package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts +54 -0
  134. package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts.map +1 -0
  135. package/apps/app-lifeops/src/lifeops/goal-grounding.js +151 -0
  136. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts +12 -0
  137. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -0
  138. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.js +160 -0
  139. package/apps/app-lifeops/src/lifeops/google-api-error.d.ts +7 -0
  140. package/apps/app-lifeops/src/lifeops/google-api-error.d.ts.map +1 -0
  141. package/apps/app-lifeops/src/lifeops/google-api-error.js +35 -0
  142. package/apps/app-lifeops/src/lifeops/google-calendar.d.ts +67 -0
  143. package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -0
  144. package/apps/app-lifeops/src/lifeops/google-calendar.js +299 -0
  145. package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts +32 -0
  146. package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts.map +1 -0
  147. package/apps/app-lifeops/src/lifeops/google-connector-gateway.js +88 -0
  148. package/apps/app-lifeops/src/lifeops/google-drive.d.ts +103 -0
  149. package/apps/app-lifeops/src/lifeops/google-drive.d.ts.map +1 -0
  150. package/apps/app-lifeops/src/lifeops/google-drive.js +271 -0
  151. package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +16 -0
  152. package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -0
  153. package/apps/app-lifeops/src/lifeops/google-fetch.js +122 -0
  154. package/apps/app-lifeops/src/lifeops/google-gmail.d.ts +76 -0
  155. package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -0
  156. package/apps/app-lifeops/src/lifeops/google-gmail.js +691 -0
  157. package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts +172 -0
  158. package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts.map +1 -0
  159. package/apps/app-lifeops/src/lifeops/google-managed-client.js +351 -0
  160. package/apps/app-lifeops/src/lifeops/google-oauth.d.ts +65 -0
  161. package/apps/app-lifeops/src/lifeops/google-oauth.d.ts.map +1 -0
  162. package/apps/app-lifeops/src/lifeops/google-oauth.js +614 -0
  163. package/apps/app-lifeops/src/lifeops/google-scopes.d.ts +15 -0
  164. package/apps/app-lifeops/src/lifeops/google-scopes.d.ts.map +1 -0
  165. package/apps/app-lifeops/src/lifeops/google-scopes.js +107 -0
  166. package/apps/app-lifeops/src/lifeops/health-bridge.d.ts +57 -0
  167. package/apps/app-lifeops/src/lifeops/health-bridge.d.ts.map +1 -0
  168. package/apps/app-lifeops/src/lifeops/health-bridge.js +556 -0
  169. package/apps/app-lifeops/src/lifeops/health-connectors.d.ts +23 -0
  170. package/apps/app-lifeops/src/lifeops/health-connectors.d.ts.map +1 -0
  171. package/apps/app-lifeops/src/lifeops/health-connectors.js +962 -0
  172. package/apps/app-lifeops/src/lifeops/health-oauth.d.ts +62 -0
  173. package/apps/app-lifeops/src/lifeops/health-oauth.d.ts.map +1 -0
  174. package/apps/app-lifeops/src/lifeops/health-oauth.js +496 -0
  175. package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts +99 -0
  176. package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts.map +1 -0
  177. package/apps/app-lifeops/src/lifeops/imessage-bridge.js +556 -0
  178. package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts +7 -0
  179. package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts.map +1 -0
  180. package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.js +67 -0
  181. package/apps/app-lifeops/src/lifeops/owner-profile.d.ts +61 -0
  182. package/apps/app-lifeops/src/lifeops/owner-profile.d.ts.map +1 -0
  183. package/apps/app-lifeops/src/lifeops/owner-profile.js +426 -0
  184. package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts +23 -0
  185. package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts.map +1 -0
  186. package/apps/app-lifeops/src/lifeops/payment-csv-import.js +244 -0
  187. package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts +14 -0
  188. package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts.map +1 -0
  189. package/apps/app-lifeops/src/lifeops/payment-recurrence.js +218 -0
  190. package/apps/app-lifeops/src/lifeops/payment-types.d.ts +158 -0
  191. package/apps/app-lifeops/src/lifeops/payment-types.d.ts.map +1 -0
  192. package/apps/app-lifeops/src/lifeops/payment-types.js +1 -0
  193. package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts +110 -0
  194. package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts.map +1 -0
  195. package/apps/app-lifeops/src/lifeops/paypal-managed-client.js +148 -0
  196. package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts +86 -0
  197. package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts.map +1 -0
  198. package/apps/app-lifeops/src/lifeops/plaid-managed-client.js +134 -0
  199. package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts +51 -0
  200. package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts.map +1 -0
  201. package/apps/app-lifeops/src/lifeops/priority-scoring.js +220 -0
  202. package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts +32 -0
  203. package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts.map +1 -0
  204. package/apps/app-lifeops/src/lifeops/redact-sensitive-data.js +123 -0
  205. package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts +13 -0
  206. package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts.map +1 -0
  207. package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.js +111 -0
  208. package/apps/app-lifeops/src/lifeops/relative-time.d.ts +15 -0
  209. package/apps/app-lifeops/src/lifeops/relative-time.d.ts.map +1 -0
  210. package/apps/app-lifeops/src/lifeops/relative-time.js +233 -0
  211. package/apps/app-lifeops/src/lifeops/repository.d.ts +506 -0
  212. package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -0
  213. package/apps/app-lifeops/src/lifeops/repository.js +5204 -0
  214. package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts +133 -0
  215. package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts.map +1 -0
  216. package/apps/app-lifeops/src/lifeops/schedule-insight.js +769 -0
  217. package/apps/app-lifeops/src/lifeops/schedule-state.d.ts +39 -0
  218. package/apps/app-lifeops/src/lifeops/schedule-state.d.ts.map +1 -0
  219. package/apps/app-lifeops/src/lifeops/schedule-state.js +651 -0
  220. package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts +35 -0
  221. package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts.map +1 -0
  222. package/apps/app-lifeops/src/lifeops/schedule-sync-client.js +184 -0
  223. package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts +89 -0
  224. package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts.map +1 -0
  225. package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.js +13 -0
  226. package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts +11 -0
  227. package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts.map +1 -0
  228. package/apps/app-lifeops/src/lifeops/scheduler-task.js +165 -0
  229. package/apps/app-lifeops/src/lifeops/schema.d.ts +28558 -0
  230. package/apps/app-lifeops/src/lifeops/schema.d.ts.map +1 -0
  231. package/apps/app-lifeops/src/lifeops/schema.js +1148 -0
  232. package/apps/app-lifeops/src/lifeops/seed-routines.d.ts +20 -0
  233. package/apps/app-lifeops/src/lifeops/seed-routines.d.ts.map +1 -0
  234. package/apps/app-lifeops/src/lifeops/seed-routines.js +133 -0
  235. package/apps/app-lifeops/src/lifeops/service-constants.d.ts +68 -0
  236. package/apps/app-lifeops/src/lifeops/service-constants.d.ts.map +1 -0
  237. package/apps/app-lifeops/src/lifeops/service-constants.js +130 -0
  238. package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts +41 -0
  239. package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts.map +1 -0
  240. package/apps/app-lifeops/src/lifeops/service-helpers-browser.js +296 -0
  241. package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts +68 -0
  242. package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts.map +1 -0
  243. package/apps/app-lifeops/src/lifeops/service-helpers-misc.js +493 -0
  244. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts +23 -0
  245. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts.map +1 -0
  246. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.js +240 -0
  247. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts +76 -0
  248. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts.map +1 -0
  249. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.js +376 -0
  250. package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts +26 -0
  251. package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts.map +1 -0
  252. package/apps/app-lifeops/src/lifeops/service-mixin-browser.js +689 -0
  253. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts +44 -0
  254. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts.map +1 -0
  255. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.js +737 -0
  256. package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts +55 -0
  257. package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts.map +1 -0
  258. package/apps/app-lifeops/src/lifeops/service-mixin-core.js +443 -0
  259. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts +21 -0
  260. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts.map +1 -0
  261. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.js +375 -0
  262. package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts +2 -0
  263. package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts.map +1 -0
  264. package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +1115 -0
  265. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts +2 -0
  266. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts.map +1 -0
  267. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.js +262 -0
  268. package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts +12 -0
  269. package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts.map +1 -0
  270. package/apps/app-lifeops/src/lifeops/service-mixin-drive.js +231 -0
  271. package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts +2 -0
  272. package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts.map +1 -0
  273. package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.js +394 -0
  274. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts +42 -0
  275. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts.map +1 -0
  276. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.js +1570 -0
  277. package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts +22 -0
  278. package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts.map +1 -0
  279. package/apps/app-lifeops/src/lifeops/service-mixin-goals.js +896 -0
  280. package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts +10 -0
  281. package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts.map +1 -0
  282. package/apps/app-lifeops/src/lifeops/service-mixin-google.js +873 -0
  283. package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts +2 -0
  284. package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts.map +1 -0
  285. package/apps/app-lifeops/src/lifeops/service-mixin-health.js +582 -0
  286. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts +3 -0
  287. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts.map +1 -0
  288. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.js +423 -0
  289. package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts +46 -0
  290. package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts.map +1 -0
  291. package/apps/app-lifeops/src/lifeops/service-mixin-inbox.js +608 -0
  292. package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts +6 -0
  293. package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts.map +1 -0
  294. package/apps/app-lifeops/src/lifeops/service-mixin-payments.js +1047 -0
  295. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts +2 -0
  296. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts.map +1 -0
  297. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.js +109 -0
  298. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts +78 -0
  299. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts.map +1 -0
  300. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.js +3170 -0
  301. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts +2 -0
  302. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts.map +1 -0
  303. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.js +335 -0
  304. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts +2 -0
  305. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts.map +1 -0
  306. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.js +873 -0
  307. package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts +2 -0
  308. package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts.map +1 -0
  309. package/apps/app-lifeops/src/lifeops/service-mixin-signal.js +424 -0
  310. package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts +2 -0
  311. package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts.map +1 -0
  312. package/apps/app-lifeops/src/lifeops/service-mixin-sleep.js +174 -0
  313. package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts +26 -0
  314. package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts.map +1 -0
  315. package/apps/app-lifeops/src/lifeops/service-mixin-status.js +433 -0
  316. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts +2 -0
  317. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts.map +1 -0
  318. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.js +826 -0
  319. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts +2 -0
  320. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts.map +1 -0
  321. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.js +325 -0
  322. package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts +33 -0
  323. package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts.map +1 -0
  324. package/apps/app-lifeops/src/lifeops/service-mixin-travel.js +274 -0
  325. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts +2 -0
  326. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts.map +1 -0
  327. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.js +243 -0
  328. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts +15 -0
  329. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts.map +1 -0
  330. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.js +775 -0
  331. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts +2 -0
  332. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts.map +1 -0
  333. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.js +350 -0
  334. package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts +65 -0
  335. package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts.map +1 -0
  336. package/apps/app-lifeops/src/lifeops/service-mixin-x.js +569 -0
  337. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts +43 -0
  338. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts.map +1 -0
  339. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.js +305 -0
  340. package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts +19 -0
  341. package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts.map +1 -0
  342. package/apps/app-lifeops/src/lifeops/service-normalize-connector.js +601 -0
  343. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts +95 -0
  344. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts.map +1 -0
  345. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.js +977 -0
  346. package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts +3 -0
  347. package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts.map +1 -0
  348. package/apps/app-lifeops/src/lifeops/service-normalize-health.js +56 -0
  349. package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts +9 -0
  350. package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts.map +1 -0
  351. package/apps/app-lifeops/src/lifeops/service-normalize-task.js +361 -0
  352. package/apps/app-lifeops/src/lifeops/service-normalize.d.ts +27 -0
  353. package/apps/app-lifeops/src/lifeops/service-normalize.d.ts.map +1 -0
  354. package/apps/app-lifeops/src/lifeops/service-normalize.js +193 -0
  355. package/apps/app-lifeops/src/lifeops/service-types.d.ts +59 -0
  356. package/apps/app-lifeops/src/lifeops/service-types.d.ts.map +1 -0
  357. package/apps/app-lifeops/src/lifeops/service-types.js +8 -0
  358. package/apps/app-lifeops/src/lifeops/service.d.ts +1345 -0
  359. package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -0
  360. package/apps/app-lifeops/src/lifeops/service.js +64 -0
  361. package/apps/app-lifeops/src/lifeops/signal-auth.d.ts +36 -0
  362. package/apps/app-lifeops/src/lifeops/signal-auth.d.ts.map +1 -0
  363. package/apps/app-lifeops/src/lifeops/signal-auth.js +348 -0
  364. package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts +68 -0
  365. package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts.map +1 -0
  366. package/apps/app-lifeops/src/lifeops/signal-local-client.js +236 -0
  367. package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts +13 -0
  368. package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts.map +1 -0
  369. package/apps/app-lifeops/src/lifeops/signal-runtime-config.js +42 -0
  370. package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts +38 -0
  371. package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts.map +1 -0
  372. package/apps/app-lifeops/src/lifeops/sleep-cycle.js +448 -0
  373. package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts +25 -0
  374. package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts.map +1 -0
  375. package/apps/app-lifeops/src/lifeops/sleep-episode-store.js +54 -0
  376. package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts +19 -0
  377. package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts.map +1 -0
  378. package/apps/app-lifeops/src/lifeops/sleep-regularity.js +221 -0
  379. package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts +48 -0
  380. package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts.map +1 -0
  381. package/apps/app-lifeops/src/lifeops/sleep-wake-events.js +150 -0
  382. package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts +21 -0
  383. package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts.map +1 -0
  384. package/apps/app-lifeops/src/lifeops/social-taxonomy.js +273 -0
  385. package/apps/app-lifeops/src/lifeops/source-reliability.d.ts +38 -0
  386. package/apps/app-lifeops/src/lifeops/source-reliability.d.ts.map +1 -0
  387. package/apps/app-lifeops/src/lifeops/source-reliability.js +66 -0
  388. package/apps/app-lifeops/src/lifeops/sql.d.ts +26 -0
  389. package/apps/app-lifeops/src/lifeops/sql.d.ts.map +1 -0
  390. package/apps/app-lifeops/src/lifeops/sql.js +140 -0
  391. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts +79 -0
  392. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts.map +1 -0
  393. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +852 -0
  394. package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts +80 -0
  395. package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts.map +1 -0
  396. package/apps/app-lifeops/src/lifeops/subscriptions-types.js +1 -0
  397. package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts +69 -0
  398. package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts.map +1 -0
  399. package/apps/app-lifeops/src/lifeops/telegram-auth.js +597 -0
  400. package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts +122 -0
  401. package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts.map +1 -0
  402. package/apps/app-lifeops/src/lifeops/telegram-local-client.js +561 -0
  403. package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts +14 -0
  404. package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts.map +1 -0
  405. package/apps/app-lifeops/src/lifeops/telemetry-mapping.js +139 -0
  406. package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts +21 -0
  407. package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts.map +1 -0
  408. package/apps/app-lifeops/src/lifeops/telemetry-retention.js +19 -0
  409. package/apps/app-lifeops/src/lifeops/time-util.d.ts +10 -0
  410. package/apps/app-lifeops/src/lifeops/time-util.d.ts.map +1 -0
  411. package/apps/app-lifeops/src/lifeops/time-util.js +18 -0
  412. package/apps/app-lifeops/src/lifeops/time.d.ts +17 -0
  413. package/apps/app-lifeops/src/lifeops/time.d.ts.map +1 -0
  414. package/apps/app-lifeops/src/lifeops/time.js +132 -0
  415. package/apps/app-lifeops/src/lifeops/token-encryption.d.ts +49 -0
  416. package/apps/app-lifeops/src/lifeops/token-encryption.d.ts.map +1 -0
  417. package/apps/app-lifeops/src/lifeops/token-encryption.js +123 -0
  418. package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts +181 -0
  419. package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts.map +1 -0
  420. package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.js +422 -0
  421. package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts +46 -0
  422. package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts.map +1 -0
  423. package/apps/app-lifeops/src/lifeops/travel-booking.types.js +1 -0
  424. package/apps/app-lifeops/src/lifeops/twilio.d.ts +34 -0
  425. package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -0
  426. package/apps/app-lifeops/src/lifeops/twilio.js +200 -0
  427. package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts +54 -0
  428. package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -0
  429. package/apps/app-lifeops/src/lifeops/whatsapp-client.js +234 -0
  430. package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts +124 -0
  431. package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts.map +1 -0
  432. package/apps/app-lifeops/src/lifeops/x-managed-client.js +238 -0
  433. package/apps/app-lifeops/src/lifeops/x-poster.d.ts +41 -0
  434. package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -0
  435. package/apps/app-lifeops/src/lifeops/x-poster.js +334 -0
  436. package/apps/app-lifeops/src/lifeops/x-reader.d.ts +70 -0
  437. package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -0
  438. package/apps/app-lifeops/src/lifeops/x-reader.js +269 -0
  439. package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts +85 -0
  440. package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts.map +1 -0
  441. package/apps/app-lifeops/src/lifeops/x402-payment-handler.js +142 -0
  442. package/apps/app-lifeops/src/providers/website-blocker.d.ts +3 -0
  443. package/apps/app-lifeops/src/providers/website-blocker.d.ts.map +1 -0
  444. package/apps/app-lifeops/src/providers/website-blocker.js +116 -0
  445. package/apps/app-lifeops/src/public.d.ts +4 -0
  446. package/apps/app-lifeops/src/public.d.ts.map +1 -0
  447. package/apps/app-lifeops/src/public.js +3 -0
  448. package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts +9 -0
  449. package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts.map +1 -0
  450. package/apps/app-lifeops/src/routes/cloud-features-routes.js +171 -0
  451. package/apps/app-lifeops/src/routes/lifeops-routes.d.ts +20 -0
  452. package/apps/app-lifeops/src/routes/lifeops-routes.d.ts.map +1 -0
  453. package/apps/app-lifeops/src/routes/lifeops-routes.js +2411 -0
  454. package/apps/app-lifeops/src/routes/plugin.d.ts +3 -0
  455. package/apps/app-lifeops/src/routes/plugin.d.ts.map +1 -0
  456. package/apps/app-lifeops/src/routes/plugin.js +415 -0
  457. package/apps/app-lifeops/src/routes/sleep-routes.d.ts +3 -0
  458. package/apps/app-lifeops/src/routes/sleep-routes.d.ts.map +1 -0
  459. package/apps/app-lifeops/src/routes/sleep-routes.js +109 -0
  460. package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts +9 -0
  461. package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts.map +1 -0
  462. package/apps/app-lifeops/src/routes/travel-provider-relay-routes.js +144 -0
  463. package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts +7 -0
  464. package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts.map +1 -0
  465. package/apps/app-lifeops/src/routes/website-blocker-routes.js +169 -0
  466. package/apps/app-lifeops/src/website-blocker/access.d.ts +8 -0
  467. package/apps/app-lifeops/src/website-blocker/access.d.ts.map +1 -0
  468. package/apps/app-lifeops/src/website-blocker/access.js +45 -0
  469. package/apps/app-lifeops/src/website-blocker/engine.d.ts +137 -0
  470. package/apps/app-lifeops/src/website-blocker/engine.d.ts.map +1 -0
  471. package/apps/app-lifeops/src/website-blocker/engine.js +1256 -0
  472. package/apps/app-lifeops/src/website-blocker/permissions.d.ts +9 -0
  473. package/apps/app-lifeops/src/website-blocker/permissions.d.ts.map +1 -0
  474. package/apps/app-lifeops/src/website-blocker/permissions.js +1 -0
  475. package/apps/app-lifeops/src/website-blocker/public.d.ts +13 -0
  476. package/apps/app-lifeops/src/website-blocker/public.d.ts.map +1 -0
  477. package/apps/app-lifeops/src/website-blocker/public.js +10 -0
  478. package/apps/app-lifeops/src/website-blocker/roles.d.ts +11 -0
  479. package/apps/app-lifeops/src/website-blocker/roles.d.ts.map +1 -0
  480. package/apps/app-lifeops/src/website-blocker/roles.js +17 -0
  481. package/apps/app-lifeops/src/website-blocker/service.d.ts +21 -0
  482. package/apps/app-lifeops/src/website-blocker/service.d.ts.map +1 -0
  483. package/apps/app-lifeops/src/website-blocker/service.js +268 -0
  484. package/apps/app-steward/src/api/wallet-capability.d.ts +2 -0
  485. package/apps/app-steward/src/api/wallet-capability.d.ts.map +1 -0
  486. package/apps/app-steward/src/api/wallet-capability.js +1 -0
  487. package/apps/app-steward/src/api/wallet-dex-prices.d.ts +43 -0
  488. package/apps/app-steward/src/api/wallet-dex-prices.d.ts.map +1 -0
  489. package/apps/app-steward/src/api/wallet-dex-prices.js +149 -0
  490. package/apps/app-steward/src/api/wallet-evm-balance.d.ts +66 -0
  491. package/apps/app-steward/src/api/wallet-evm-balance.d.ts.map +1 -0
  492. package/apps/app-steward/src/api/wallet-evm-balance.js +666 -0
  493. package/apps/app-steward/src/api/wallet-routes.d.ts +28 -0
  494. package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -0
  495. package/apps/app-steward/src/api/wallet-routes.js +525 -0
  496. package/apps/app-steward/src/api/wallet-rpc.d.ts +67 -0
  497. package/apps/app-steward/src/api/wallet-rpc.d.ts.map +1 -0
  498. package/apps/app-steward/src/api/wallet-rpc.js +452 -0
  499. package/apps/app-steward/src/api/wallet.d.ts +60 -0
  500. package/apps/app-steward/src/api/wallet.d.ts.map +1 -0
  501. package/apps/app-steward/src/api/wallet.js +641 -0
  502. package/apps/app-steward/src/routes/server-wallet-trade.d.ts +27 -0
  503. package/apps/app-steward/src/routes/server-wallet-trade.d.ts.map +1 -0
  504. package/apps/app-steward/src/routes/server-wallet-trade.js +56 -0
  505. package/apps/app-steward/src/routes/wallet-core-routes.d.ts +16 -0
  506. package/apps/app-steward/src/routes/wallet-core-routes.d.ts.map +1 -0
  507. package/apps/app-steward/src/routes/wallet-core-routes.js +57 -0
  508. package/apps/app-steward/src/routes/wallet-export-guard.d.ts +44 -0
  509. package/apps/app-steward/src/routes/wallet-export-guard.d.ts.map +1 -0
  510. package/apps/app-steward/src/routes/wallet-export-guard.js +248 -0
  511. package/apps/app-steward/src/services/privy-wallets.d.ts +18 -0
  512. package/apps/app-steward/src/services/privy-wallets.d.ts.map +1 -0
  513. package/apps/app-steward/src/services/privy-wallets.js +225 -0
  514. package/apps/app-steward/src/services/steward-evm-account.d.ts +67 -0
  515. package/apps/app-steward/src/services/steward-evm-account.d.ts.map +1 -0
  516. package/apps/app-steward/src/services/steward-evm-account.js +309 -0
  517. package/apps/app-steward/src/services/steward-evm-bridge.d.ts +35 -0
  518. package/apps/app-steward/src/services/steward-evm-bridge.d.ts.map +1 -0
  519. package/apps/app-steward/src/services/steward-evm-bridge.js +101 -0
  520. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts +23 -0
  521. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts.map +1 -0
  522. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.js +39 -0
  523. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts +29 -0
  524. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts.map +1 -0
  525. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.js +45 -0
  526. package/apps/app-task-coordinator/src/api/coordinator-types.d.ts +49 -0
  527. package/apps/app-task-coordinator/src/api/coordinator-types.d.ts.map +1 -0
  528. package/apps/app-task-coordinator/src/api/coordinator-types.js +1 -0
  529. package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts +46 -0
  530. package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts.map +1 -0
  531. package/apps/app-task-coordinator/src/api/coordinator-wiring.js +108 -0
  532. package/apps/app-training/src/backends/atropos.d.ts +31 -0
  533. package/apps/app-training/src/backends/atropos.d.ts.map +1 -0
  534. package/apps/app-training/src/backends/atropos.js +61 -0
  535. package/apps/app-training/src/backends/native.d.ts +50 -0
  536. package/apps/app-training/src/backends/native.d.ts.map +1 -0
  537. package/apps/app-training/src/backends/native.js +130 -0
  538. package/apps/app-training/src/backends/tinker.d.ts +27 -0
  539. package/apps/app-training/src/backends/tinker.d.ts.map +1 -0
  540. package/apps/app-training/src/backends/tinker.js +56 -0
  541. package/apps/app-training/src/core/context-audit.d.ts +51 -0
  542. package/apps/app-training/src/core/context-audit.d.ts.map +1 -0
  543. package/apps/app-training/src/core/context-audit.js +141 -0
  544. package/apps/app-training/src/core/context-catalog.d.ts +47 -0
  545. package/apps/app-training/src/core/context-catalog.d.ts.map +1 -0
  546. package/apps/app-training/src/core/context-catalog.js +265 -0
  547. package/apps/app-training/src/core/context-types.d.ts +3 -0
  548. package/apps/app-training/src/core/context-types.d.ts.map +1 -0
  549. package/apps/app-training/src/core/context-types.js +11 -0
  550. package/apps/app-training/src/core/dataset-generator.d.ts +125 -0
  551. package/apps/app-training/src/core/dataset-generator.d.ts.map +1 -0
  552. package/apps/app-training/src/core/dataset-generator.js +703 -0
  553. package/apps/app-training/src/core/index.d.ts +13 -0
  554. package/apps/app-training/src/core/index.d.ts.map +1 -0
  555. package/apps/app-training/src/core/index.js +12 -0
  556. package/apps/app-training/src/core/privacy-filter.d.ts +73 -0
  557. package/apps/app-training/src/core/privacy-filter.d.ts.map +1 -0
  558. package/apps/app-training/src/core/privacy-filter.js +169 -0
  559. package/apps/app-training/src/core/replay-validator.d.ts +136 -0
  560. package/apps/app-training/src/core/replay-validator.d.ts.map +1 -0
  561. package/apps/app-training/src/core/replay-validator.js +305 -0
  562. package/apps/app-training/src/core/roleplay-executor.d.ts +123 -0
  563. package/apps/app-training/src/core/roleplay-executor.d.ts.map +1 -0
  564. package/apps/app-training/src/core/roleplay-executor.js +645 -0
  565. package/apps/app-training/src/core/roleplay-trajectories.d.ts +54 -0
  566. package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +1 -0
  567. package/apps/app-training/src/core/roleplay-trajectories.js +73 -0
  568. package/apps/app-training/src/core/scenario-blueprints.d.ts +62 -0
  569. package/apps/app-training/src/core/scenario-blueprints.d.ts.map +1 -0
  570. package/apps/app-training/src/core/scenario-blueprints.js +790 -0
  571. package/apps/app-training/src/core/training-config.d.ts +52 -0
  572. package/apps/app-training/src/core/training-config.d.ts.map +1 -0
  573. package/apps/app-training/src/core/training-config.js +135 -0
  574. package/apps/app-training/src/core/training-orchestrator.d.ts +107 -0
  575. package/apps/app-training/src/core/training-orchestrator.d.ts.map +1 -0
  576. package/apps/app-training/src/core/training-orchestrator.js +413 -0
  577. package/apps/app-training/src/core/trajectory-task-datasets.d.ts +38 -0
  578. package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +1 -0
  579. package/apps/app-training/src/core/trajectory-task-datasets.js +300 -0
  580. package/apps/app-training/src/core/vertex-tuning.d.ts +139 -0
  581. package/apps/app-training/src/core/vertex-tuning.d.ts.map +1 -0
  582. package/apps/app-training/src/core/vertex-tuning.js +268 -0
  583. package/apps/app-training/src/index.d.ts +4 -0
  584. package/apps/app-training/src/index.d.ts.map +1 -0
  585. package/apps/app-training/src/index.js +3 -0
  586. package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts +42 -0
  587. package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts.map +1 -0
  588. package/apps/app-training/src/optimizers/bootstrap-fewshot.js +94 -0
  589. package/apps/app-training/src/optimizers/index.d.ts +6 -0
  590. package/apps/app-training/src/optimizers/index.d.ts.map +1 -0
  591. package/apps/app-training/src/optimizers/index.js +4 -0
  592. package/apps/app-training/src/optimizers/instruction-search.d.ts +39 -0
  593. package/apps/app-training/src/optimizers/instruction-search.d.ts.map +1 -0
  594. package/apps/app-training/src/optimizers/instruction-search.js +87 -0
  595. package/apps/app-training/src/optimizers/prompt-evolution.d.ts +39 -0
  596. package/apps/app-training/src/optimizers/prompt-evolution.d.ts.map +1 -0
  597. package/apps/app-training/src/optimizers/prompt-evolution.js +116 -0
  598. package/apps/app-training/src/optimizers/scoring.d.ts +80 -0
  599. package/apps/app-training/src/optimizers/scoring.d.ts.map +1 -0
  600. package/apps/app-training/src/optimizers/scoring.js +151 -0
  601. package/apps/app-training/src/optimizers/types.d.ts +105 -0
  602. package/apps/app-training/src/optimizers/types.d.ts.map +1 -0
  603. package/apps/app-training/src/optimizers/types.js +17 -0
  604. package/apps/app-training/src/routes/index.d.ts +3 -0
  605. package/apps/app-training/src/routes/index.d.ts.map +1 -0
  606. package/apps/app-training/src/routes/index.js +2 -0
  607. package/apps/app-training/src/routes/training-routes.d.ts +11 -0
  608. package/apps/app-training/src/routes/training-routes.d.ts.map +1 -0
  609. package/apps/app-training/src/routes/training-routes.js +777 -0
  610. package/apps/app-training/src/routes/trajectory-routes.d.ts +19 -0
  611. package/apps/app-training/src/routes/trajectory-routes.d.ts.map +1 -0
  612. package/apps/app-training/src/routes/trajectory-routes.js +912 -0
  613. package/apps/app-training/src/services/index.d.ts +5 -0
  614. package/apps/app-training/src/services/index.d.ts.map +1 -0
  615. package/apps/app-training/src/services/index.js +3 -0
  616. package/apps/app-training/src/services/training-backend-check.d.ts +8 -0
  617. package/apps/app-training/src/services/training-backend-check.d.ts.map +1 -0
  618. package/apps/app-training/src/services/training-backend-check.js +28 -0
  619. package/apps/app-training/src/services/training-service-like.d.ts +39 -0
  620. package/apps/app-training/src/services/training-service-like.d.ts.map +1 -0
  621. package/apps/app-training/src/services/training-service-like.js +1 -0
  622. package/apps/app-training/src/services/training-service.d.ts +46 -0
  623. package/apps/app-training/src/services/training-service.d.ts.map +1 -0
  624. package/apps/app-training/src/services/training-service.js +109 -0
  625. package/apps/app-training/src/services/training-trigger.d.ts +180 -0
  626. package/apps/app-training/src/services/training-trigger.d.ts.map +1 -0
  627. package/apps/app-training/src/services/training-trigger.js +385 -0
  628. package/package.json +78 -51
  629. package/packages/agent/src/actions/agent-inbox.d.ts +14 -0
  630. package/packages/agent/src/actions/agent-inbox.d.ts.map +1 -0
  631. package/packages/agent/src/actions/agent-inbox.js +124 -0
  632. package/packages/agent/src/actions/browser-session.d.ts +3 -0
  633. package/packages/agent/src/actions/browser-session.d.ts.map +1 -0
  634. package/packages/agent/src/actions/browser-session.js +305 -0
  635. package/packages/agent/src/actions/configure-plugin.d.ts +11 -0
  636. package/packages/agent/src/actions/configure-plugin.d.ts.map +1 -0
  637. package/packages/agent/src/actions/configure-plugin.js +137 -0
  638. package/packages/agent/src/actions/connector-control.d.ts +24 -0
  639. package/packages/agent/src/actions/connector-control.d.ts.map +1 -0
  640. package/packages/agent/src/actions/connector-control.js +479 -0
  641. package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
  642. package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
  643. package/packages/agent/src/actions/connector-resolver.js +256 -0
  644. package/packages/agent/src/actions/context-signal-lexicon.d.ts +17 -0
  645. package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -0
  646. package/packages/agent/src/actions/context-signal-lexicon.js +212 -0
  647. package/packages/agent/src/actions/context-signal.d.ts +46 -0
  648. package/packages/agent/src/actions/context-signal.d.ts.map +1 -0
  649. package/packages/agent/src/actions/context-signal.js +134 -0
  650. package/packages/agent/src/actions/database.d.ts +15 -0
  651. package/packages/agent/src/actions/database.d.ts.map +1 -0
  652. package/packages/agent/src/actions/database.js +473 -0
  653. package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
  654. package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
  655. package/packages/agent/src/actions/eject-plugin.js +80 -0
  656. package/packages/agent/src/actions/entity-actions.d.ts +7 -0
  657. package/packages/agent/src/actions/entity-actions.d.ts.map +1 -0
  658. package/packages/agent/src/actions/entity-actions.js +1016 -0
  659. package/packages/agent/src/actions/extract-page.d.ts +3 -0
  660. package/packages/agent/src/actions/extract-page.d.ts.map +1 -0
  661. package/packages/agent/src/actions/extract-page.js +162 -0
  662. package/packages/agent/src/actions/extract-params.d.ts +87 -0
  663. package/packages/agent/src/actions/extract-params.d.ts.map +1 -0
  664. package/packages/agent/src/actions/extract-params.js +194 -0
  665. package/packages/agent/src/actions/get-self-status.d.ts +13 -0
  666. package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
  667. package/packages/agent/src/actions/get-self-status.js +107 -0
  668. package/packages/agent/src/actions/grounded-action-reply.d.ts +22 -0
  669. package/packages/agent/src/actions/grounded-action-reply.d.ts.map +1 -0
  670. package/packages/agent/src/actions/grounded-action-reply.js +288 -0
  671. package/packages/agent/src/actions/index.d.ts +26 -0
  672. package/packages/agent/src/actions/index.d.ts.map +1 -0
  673. package/packages/agent/src/actions/index.js +25 -0
  674. package/packages/agent/src/actions/install-plugin.d.ts +3 -0
  675. package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
  676. package/packages/agent/src/actions/install-plugin.js +97 -0
  677. package/packages/agent/src/actions/launchpad-launch.d.ts +16 -0
  678. package/packages/agent/src/actions/launchpad-launch.d.ts.map +1 -0
  679. package/packages/agent/src/actions/launchpad-launch.js +207 -0
  680. package/packages/agent/src/actions/list-ejected.d.ts +3 -0
  681. package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
  682. package/packages/agent/src/actions/list-ejected.js +79 -0
  683. package/packages/agent/src/actions/list-installed-plugins.d.ts +11 -0
  684. package/packages/agent/src/actions/list-installed-plugins.d.ts.map +1 -0
  685. package/packages/agent/src/actions/list-installed-plugins.js +142 -0
  686. package/packages/agent/src/actions/log-level.d.ts +3 -0
  687. package/packages/agent/src/actions/log-level.d.ts.map +1 -0
  688. package/packages/agent/src/actions/log-level.js +126 -0
  689. package/packages/agent/src/actions/logs.d.ts +12 -0
  690. package/packages/agent/src/actions/logs.d.ts.map +1 -0
  691. package/packages/agent/src/actions/logs.js +317 -0
  692. package/packages/agent/src/actions/manage-tasks.d.ts +8 -0
  693. package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -0
  694. package/packages/agent/src/actions/manage-tasks.js +323 -0
  695. package/packages/agent/src/actions/media.d.ts +21 -0
  696. package/packages/agent/src/actions/media.d.ts.map +1 -0
  697. package/packages/agent/src/actions/media.js +504 -0
  698. package/packages/agent/src/actions/memories.d.ts +12 -0
  699. package/packages/agent/src/actions/memories.d.ts.map +1 -0
  700. package/packages/agent/src/actions/memories.js +310 -0
  701. package/packages/agent/src/actions/page-action-groups.d.ts +17 -0
  702. package/packages/agent/src/actions/page-action-groups.d.ts.map +1 -0
  703. package/packages/agent/src/actions/page-action-groups.js +171 -0
  704. package/packages/agent/src/actions/read-channel.d.ts +3 -0
  705. package/packages/agent/src/actions/read-channel.d.ts.map +1 -0
  706. package/packages/agent/src/actions/read-channel.js +265 -0
  707. package/packages/agent/src/actions/read-messages.d.ts +14 -0
  708. package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
  709. package/packages/agent/src/actions/read-messages.js +269 -0
  710. package/packages/agent/src/actions/recent-conversation-texts.d.ts +9 -0
  711. package/packages/agent/src/actions/recent-conversation-texts.d.ts.map +1 -0
  712. package/packages/agent/src/actions/recent-conversation-texts.js +76 -0
  713. package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
  714. package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
  715. package/packages/agent/src/actions/reinject-plugin.js +79 -0
  716. package/packages/agent/src/actions/restart.d.ts +19 -0
  717. package/packages/agent/src/actions/restart.d.ts.map +1 -0
  718. package/packages/agent/src/actions/restart.js +139 -0
  719. package/packages/agent/src/actions/runtime.d.ts +14 -0
  720. package/packages/agent/src/actions/runtime.d.ts.map +1 -0
  721. package/packages/agent/src/actions/runtime.js +287 -0
  722. package/packages/agent/src/actions/scratchpad.d.ts +7 -0
  723. package/packages/agent/src/actions/scratchpad.d.ts.map +1 -0
  724. package/packages/agent/src/actions/scratchpad.js +409 -0
  725. package/packages/agent/src/actions/search-conversations.d.ts +3 -0
  726. package/packages/agent/src/actions/search-conversations.d.ts.map +1 -0
  727. package/packages/agent/src/actions/search-conversations.js +222 -0
  728. package/packages/agent/src/actions/send-admin-message.d.ts +3 -0
  729. package/packages/agent/src/actions/send-admin-message.d.ts.map +1 -0
  730. package/packages/agent/src/actions/send-admin-message.js +136 -0
  731. package/packages/agent/src/actions/send-message.d.ts +4 -0
  732. package/packages/agent/src/actions/send-message.d.ts.map +1 -0
  733. package/packages/agent/src/actions/send-message.js +410 -0
  734. package/packages/agent/src/actions/set-user-name.d.ts +13 -0
  735. package/packages/agent/src/actions/set-user-name.d.ts.map +1 -0
  736. package/packages/agent/src/actions/set-user-name.js +106 -0
  737. package/packages/agent/src/actions/settings-actions.d.ts +28 -0
  738. package/packages/agent/src/actions/settings-actions.d.ts.map +1 -0
  739. package/packages/agent/src/actions/settings-actions.js +564 -0
  740. package/packages/agent/src/actions/skill-command.d.ts +20 -0
  741. package/packages/agent/src/actions/skill-command.d.ts.map +1 -0
  742. package/packages/agent/src/actions/skill-command.js +142 -0
  743. package/packages/agent/src/actions/stream-control.d.ts +11 -0
  744. package/packages/agent/src/actions/stream-control.d.ts.map +1 -0
  745. package/packages/agent/src/actions/stream-control.js +182 -0
  746. package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
  747. package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
  748. package/packages/agent/src/actions/sync-plugin.js +76 -0
  749. package/packages/agent/src/actions/tasks-coding.d.ts +10 -0
  750. package/packages/agent/src/actions/tasks-coding.d.ts.map +1 -0
  751. package/packages/agent/src/actions/tasks-coding.js +171 -0
  752. package/packages/agent/src/actions/terminal.d.ts +15 -0
  753. package/packages/agent/src/actions/terminal.d.ts.map +1 -0
  754. package/packages/agent/src/actions/terminal.js +283 -0
  755. package/packages/agent/src/actions/toggle-plugin.d.ts +11 -0
  756. package/packages/agent/src/actions/toggle-plugin.d.ts.map +1 -0
  757. package/packages/agent/src/actions/toggle-plugin.js +125 -0
  758. package/packages/agent/src/actions/trajectories.d.ts +12 -0
  759. package/packages/agent/src/actions/trajectories.d.ts.map +1 -0
  760. package/packages/agent/src/actions/trajectories.js +347 -0
  761. package/packages/agent/src/actions/uninstall-plugin.d.ts +12 -0
  762. package/packages/agent/src/actions/uninstall-plugin.d.ts.map +1 -0
  763. package/packages/agent/src/actions/uninstall-plugin.js +110 -0
  764. package/packages/agent/src/actions/update-owner-name.d.ts +12 -0
  765. package/packages/agent/src/actions/update-owner-name.d.ts.map +1 -0
  766. package/packages/agent/src/actions/update-owner-name.js +83 -0
  767. package/packages/agent/src/actions/update-plugin.d.ts +10 -0
  768. package/packages/agent/src/actions/update-plugin.d.ts.map +1 -0
  769. package/packages/agent/src/actions/update-plugin.js +131 -0
  770. package/packages/agent/src/actions/web-search.d.ts +10 -0
  771. package/packages/agent/src/actions/web-search.d.ts.map +1 -0
  772. package/packages/agent/src/actions/web-search.js +282 -0
  773. package/packages/agent/src/actions/workflow/api.d.ts +24 -0
  774. package/packages/agent/src/actions/workflow/api.d.ts.map +1 -0
  775. package/packages/agent/src/actions/workflow/api.js +42 -0
  776. package/packages/agent/src/actions/workflow/create-workflow.d.ts +11 -0
  777. package/packages/agent/src/actions/workflow/create-workflow.d.ts.map +1 -0
  778. package/packages/agent/src/actions/workflow/create-workflow.js +120 -0
  779. package/packages/agent/src/actions/workflow/delete-workflow.d.ts +11 -0
  780. package/packages/agent/src/actions/workflow/delete-workflow.d.ts.map +1 -0
  781. package/packages/agent/src/actions/workflow/delete-workflow.js +100 -0
  782. package/packages/agent/src/actions/workflow/index.d.ts +5 -0
  783. package/packages/agent/src/actions/workflow/index.d.ts.map +1 -0
  784. package/packages/agent/src/actions/workflow/index.js +4 -0
  785. package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts +12 -0
  786. package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts.map +1 -0
  787. package/packages/agent/src/actions/workflow/promote-task-to-workflow.js +154 -0
  788. package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts +10 -0
  789. package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts.map +1 -0
  790. package/packages/agent/src/actions/workflow/toggle-workflow-active.js +132 -0
  791. package/packages/agent/src/api/accounts-routes.d.ts +39 -0
  792. package/packages/agent/src/api/accounts-routes.d.ts.map +1 -0
  793. package/packages/agent/src/api/accounts-routes.js +701 -0
  794. package/packages/agent/src/api/agent-admin-routes.d.ts +39 -0
  795. package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -0
  796. package/packages/agent/src/api/agent-admin-routes.js +155 -0
  797. package/packages/agent/src/api/agent-lifecycle-routes.d.ts +16 -0
  798. package/packages/agent/src/api/agent-lifecycle-routes.d.ts.map +1 -0
  799. package/packages/agent/src/api/agent-lifecycle-routes.js +94 -0
  800. package/packages/agent/src/api/agent-model.d.ts +5 -0
  801. package/packages/agent/src/api/agent-model.d.ts.map +1 -0
  802. package/packages/agent/src/api/agent-model.js +154 -0
  803. package/packages/agent/src/api/agent-status-routes.d.ts +96 -0
  804. package/packages/agent/src/api/agent-status-routes.d.ts.map +1 -0
  805. package/packages/agent/src/api/agent-status-routes.js +274 -0
  806. package/packages/agent/src/api/agent-transfer-routes.d.ts +16 -0
  807. package/packages/agent/src/api/agent-transfer-routes.d.ts.map +1 -0
  808. package/packages/agent/src/api/agent-transfer-routes.js +124 -0
  809. package/packages/agent/src/api/app-package-routes.d.ts +7 -0
  810. package/packages/agent/src/api/app-package-routes.d.ts.map +1 -0
  811. package/packages/agent/src/api/app-package-routes.js +59 -0
  812. package/packages/agent/src/api/apps-routes.d.ts +32 -0
  813. package/packages/agent/src/api/apps-routes.d.ts.map +1 -0
  814. package/packages/agent/src/api/apps-routes.js +982 -0
  815. package/packages/agent/src/api/auth-routes.d.ts +11 -0
  816. package/packages/agent/src/api/auth-routes.d.ts.map +1 -0
  817. package/packages/agent/src/api/auth-routes.js +74 -0
  818. package/packages/agent/src/api/avatar-routes.d.ts +11 -0
  819. package/packages/agent/src/api/avatar-routes.d.ts.map +1 -0
  820. package/packages/agent/src/api/avatar-routes.js +205 -0
  821. package/packages/agent/src/api/binance-skill-helpers.d.ts +26 -0
  822. package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -0
  823. package/packages/agent/src/api/binance-skill-helpers.js +785 -0
  824. package/packages/agent/src/api/bluebubbles-routes.d.ts +10 -0
  825. package/packages/agent/src/api/bluebubbles-routes.d.ts.map +1 -0
  826. package/packages/agent/src/api/bluebubbles-routes.js +129 -0
  827. package/packages/agent/src/api/browser-workspace-routes.d.ts +5 -0
  828. package/packages/agent/src/api/browser-workspace-routes.d.ts.map +1 -0
  829. package/packages/agent/src/api/browser-workspace-routes.js +100 -0
  830. package/packages/agent/src/api/bug-report-routes.d.ts +10 -0
  831. package/packages/agent/src/api/bug-report-routes.d.ts.map +1 -0
  832. package/packages/agent/src/api/bug-report-routes.js +271 -0
  833. package/packages/agent/src/api/character-routes.d.ts +52 -0
  834. package/packages/agent/src/api/character-routes.d.ts.map +1 -0
  835. package/packages/agent/src/api/character-routes.js +377 -0
  836. package/packages/agent/src/api/chat-augmentation.d.ts +70 -0
  837. package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -0
  838. package/packages/agent/src/api/chat-augmentation.js +465 -0
  839. package/packages/agent/src/api/chat-routes.d.ts +110 -0
  840. package/packages/agent/src/api/chat-routes.d.ts.map +1 -0
  841. package/packages/agent/src/api/chat-routes.js +1516 -0
  842. package/packages/agent/src/api/chat-text-helpers.d.ts +11 -0
  843. package/packages/agent/src/api/chat-text-helpers.d.ts.map +1 -0
  844. package/packages/agent/src/api/chat-text-helpers.js +184 -0
  845. package/packages/agent/src/api/client-chat-admin.d.ts +19 -0
  846. package/packages/agent/src/api/client-chat-admin.d.ts.map +1 -0
  847. package/packages/agent/src/api/client-chat-admin.js +27 -0
  848. package/packages/agent/src/api/cloud-billing-routes.d.ts +9 -0
  849. package/packages/agent/src/api/cloud-billing-routes.d.ts.map +1 -0
  850. package/packages/agent/src/api/cloud-billing-routes.js +388 -0
  851. package/packages/agent/src/api/cloud-compat-routes.d.ts +10 -0
  852. package/packages/agent/src/api/cloud-compat-routes.d.ts.map +1 -0
  853. package/packages/agent/src/api/cloud-compat-routes.js +212 -0
  854. package/packages/agent/src/api/cloud-provisioning.d.ts +14 -0
  855. package/packages/agent/src/api/cloud-provisioning.d.ts.map +1 -0
  856. package/packages/agent/src/api/cloud-provisioning.js +30 -0
  857. package/packages/agent/src/api/cloud-relay-routes.d.ts +22 -0
  858. package/packages/agent/src/api/cloud-relay-routes.d.ts.map +1 -0
  859. package/packages/agent/src/api/cloud-relay-routes.js +53 -0
  860. package/packages/agent/src/api/cloud-routes.d.ts +83 -0
  861. package/packages/agent/src/api/cloud-routes.d.ts.map +1 -0
  862. package/packages/agent/src/api/cloud-routes.js +635 -0
  863. package/packages/agent/src/api/cloud-status-routes.d.ts +15 -0
  864. package/packages/agent/src/api/cloud-status-routes.d.ts.map +1 -0
  865. package/packages/agent/src/api/cloud-status-routes.js +152 -0
  866. package/packages/agent/src/api/coding-agents-fallback-routes.d.ts +12 -0
  867. package/packages/agent/src/api/coding-agents-fallback-routes.d.ts.map +1 -0
  868. package/packages/agent/src/api/coding-agents-fallback-routes.js +523 -0
  869. package/packages/agent/src/api/compat-utils.d.ts +49 -0
  870. package/packages/agent/src/api/compat-utils.d.ts.map +1 -0
  871. package/packages/agent/src/api/compat-utils.js +122 -0
  872. package/packages/agent/src/api/config-env.d.ts +43 -0
  873. package/packages/agent/src/api/config-env.d.ts.map +1 -0
  874. package/packages/agent/src/api/config-env.js +284 -0
  875. package/packages/agent/src/api/config-routes.d.ts +40 -0
  876. package/packages/agent/src/api/config-routes.d.ts.map +1 -0
  877. package/packages/agent/src/api/config-routes.js +433 -0
  878. package/packages/agent/src/api/connector-health.d.ts +42 -0
  879. package/packages/agent/src/api/connector-health.d.ts.map +1 -0
  880. package/packages/agent/src/api/connector-health.js +132 -0
  881. package/packages/agent/src/api/connector-routes.d.ts +29 -0
  882. package/packages/agent/src/api/connector-routes.d.ts.map +1 -0
  883. package/packages/agent/src/api/connector-routes.js +137 -0
  884. package/packages/agent/src/api/conversation-metadata.d.ts +10 -0
  885. package/packages/agent/src/api/conversation-metadata.d.ts.map +1 -0
  886. package/packages/agent/src/api/conversation-metadata.js +107 -0
  887. package/packages/agent/src/api/conversation-routes.d.ts +43 -0
  888. package/packages/agent/src/api/conversation-routes.d.ts.map +1 -0
  889. package/packages/agent/src/api/conversation-routes.js +1198 -0
  890. package/packages/agent/src/api/credit-detection.d.ts +9 -0
  891. package/packages/agent/src/api/credit-detection.d.ts.map +1 -0
  892. package/packages/agent/src/api/credit-detection.js +47 -0
  893. package/packages/agent/src/api/curated-skills-routes.d.ts +22 -0
  894. package/packages/agent/src/api/curated-skills-routes.d.ts.map +1 -0
  895. package/packages/agent/src/api/curated-skills-routes.js +295 -0
  896. package/packages/agent/src/api/database.d.ts +35 -0
  897. package/packages/agent/src/api/database.d.ts.map +1 -0
  898. package/packages/agent/src/api/database.js +1141 -0
  899. package/packages/agent/src/api/diagnostics-routes.d.ts +60 -0
  900. package/packages/agent/src/api/diagnostics-routes.d.ts.map +1 -0
  901. package/packages/agent/src/api/diagnostics-routes.js +365 -0
  902. package/packages/agent/src/api/discord-avatar-cache.d.ts +10 -0
  903. package/packages/agent/src/api/discord-avatar-cache.d.ts.map +1 -0
  904. package/packages/agent/src/api/discord-avatar-cache.js +149 -0
  905. package/packages/agent/src/api/discord-profiles.d.ts +26 -0
  906. package/packages/agent/src/api/discord-profiles.d.ts.map +1 -0
  907. package/packages/agent/src/api/discord-profiles.js +279 -0
  908. package/packages/agent/src/api/early-logs.d.ts +29 -0
  909. package/packages/agent/src/api/early-logs.d.ts.map +1 -0
  910. package/packages/agent/src/api/early-logs.js +96 -0
  911. package/packages/agent/src/api/experience-routes.d.ts +8 -0
  912. package/packages/agent/src/api/experience-routes.d.ts.map +1 -0
  913. package/packages/agent/src/api/experience-routes.js +433 -0
  914. package/packages/agent/src/api/health-routes.d.ts +44 -0
  915. package/packages/agent/src/api/health-routes.d.ts.map +1 -0
  916. package/packages/agent/src/api/health-routes.js +449 -0
  917. package/packages/agent/src/api/http-helpers.d.ts +50 -0
  918. package/packages/agent/src/api/http-helpers.d.ts.map +1 -0
  919. package/packages/agent/src/api/http-helpers.js +167 -0
  920. package/packages/agent/src/api/inbox-routes.d.ts +48 -0
  921. package/packages/agent/src/api/inbox-routes.d.ts.map +1 -0
  922. package/packages/agent/src/api/inbox-routes.js +1577 -0
  923. package/packages/agent/src/api/index.d.ts +58 -0
  924. package/packages/agent/src/api/index.d.ts.map +1 -0
  925. package/packages/agent/src/api/index.js +61 -0
  926. package/packages/agent/src/api/knowledge-routes.d.ts +2 -0
  927. package/packages/agent/src/api/knowledge-routes.d.ts.map +1 -0
  928. package/packages/agent/src/api/knowledge-routes.js +2 -0
  929. package/packages/agent/src/api/knowledge-service-loader.d.ts +2 -0
  930. package/packages/agent/src/api/knowledge-service-loader.d.ts.map +1 -0
  931. package/packages/agent/src/api/knowledge-service-loader.js +2 -0
  932. package/packages/agent/src/api/mcp-routes.d.ts +33 -0
  933. package/packages/agent/src/api/mcp-routes.d.ts.map +1 -0
  934. package/packages/agent/src/api/mcp-routes.js +186 -0
  935. package/packages/agent/src/api/memory-bounds.d.ts +51 -0
  936. package/packages/agent/src/api/memory-bounds.d.ts.map +1 -0
  937. package/packages/agent/src/api/memory-bounds.js +81 -0
  938. package/packages/agent/src/api/memory-routes.d.ts +9 -0
  939. package/packages/agent/src/api/memory-routes.d.ts.map +1 -0
  940. package/packages/agent/src/api/memory-routes.js +483 -0
  941. package/packages/agent/src/api/misc-routes.d.ts +64 -0
  942. package/packages/agent/src/api/misc-routes.d.ts.map +1 -0
  943. package/packages/agent/src/api/misc-routes.js +589 -0
  944. package/packages/agent/src/api/model-provider-helpers.d.ts +84 -0
  945. package/packages/agent/src/api/model-provider-helpers.d.ts.map +1 -0
  946. package/packages/agent/src/api/model-provider-helpers.js +588 -0
  947. package/packages/agent/src/api/models-routes.d.ts +14 -0
  948. package/packages/agent/src/api/models-routes.d.ts.map +1 -0
  949. package/packages/agent/src/api/models-routes.js +37 -0
  950. package/packages/agent/src/api/music-player-route-fallback.d.ts +16 -0
  951. package/packages/agent/src/api/music-player-route-fallback.d.ts.map +1 -0
  952. package/packages/agent/src/api/music-player-route-fallback.js +65 -0
  953. package/packages/agent/src/api/nfa-routes.d.ts +5 -0
  954. package/packages/agent/src/api/nfa-routes.d.ts.map +1 -0
  955. package/packages/agent/src/api/nfa-routes.js +133 -0
  956. package/packages/agent/src/api/onboarding-routes.d.ts +50 -0
  957. package/packages/agent/src/api/onboarding-routes.d.ts.map +1 -0
  958. package/packages/agent/src/api/onboarding-routes.js +590 -0
  959. package/packages/agent/src/api/owner-contact-helpers.d.ts +39 -0
  960. package/packages/agent/src/api/owner-contact-helpers.d.ts.map +1 -0
  961. package/packages/agent/src/api/owner-contact-helpers.js +47 -0
  962. package/packages/agent/src/api/parse-action-block.d.ts +35 -0
  963. package/packages/agent/src/api/parse-action-block.d.ts.map +1 -0
  964. package/packages/agent/src/api/parse-action-block.js +113 -0
  965. package/packages/agent/src/api/permissions-routes-extra.d.ts +30 -0
  966. package/packages/agent/src/api/permissions-routes-extra.d.ts.map +1 -0
  967. package/packages/agent/src/api/permissions-routes-extra.js +78 -0
  968. package/packages/agent/src/api/permissions-routes.d.ts +28 -0
  969. package/packages/agent/src/api/permissions-routes.d.ts.map +1 -0
  970. package/packages/agent/src/api/permissions-routes.js +180 -0
  971. package/packages/agent/src/api/plugin-discovery-helpers.d.ts +147 -0
  972. package/packages/agent/src/api/plugin-discovery-helpers.d.ts.map +1 -0
  973. package/packages/agent/src/api/plugin-discovery-helpers.js +1136 -0
  974. package/packages/agent/src/api/plugin-routes.d.ts +127 -0
  975. package/packages/agent/src/api/plugin-routes.d.ts.map +1 -0
  976. package/packages/agent/src/api/plugin-routes.js +1250 -0
  977. package/packages/agent/src/api/plugin-runtime-apply.d.ts +31 -0
  978. package/packages/agent/src/api/plugin-runtime-apply.d.ts.map +1 -0
  979. package/packages/agent/src/api/plugin-runtime-apply.js +217 -0
  980. package/packages/agent/src/api/plugin-validation.d.ts +86 -0
  981. package/packages/agent/src/api/plugin-validation.d.ts.map +1 -0
  982. package/packages/agent/src/api/plugin-validation.js +259 -0
  983. package/packages/agent/src/api/provider-switch-config.d.ts +63 -0
  984. package/packages/agent/src/api/provider-switch-config.d.ts.map +1 -0
  985. package/packages/agent/src/api/provider-switch-config.js +721 -0
  986. package/packages/agent/src/api/provider-switch-routes.d.ts +28 -0
  987. package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -0
  988. package/packages/agent/src/api/provider-switch-routes.js +127 -0
  989. package/packages/agent/src/api/rate-limiter.d.ts +29 -0
  990. package/packages/agent/src/api/rate-limiter.d.ts.map +1 -0
  991. package/packages/agent/src/api/rate-limiter.js +57 -0
  992. package/packages/agent/src/api/registry-routes.d.ts +29 -0
  993. package/packages/agent/src/api/registry-routes.d.ts.map +1 -0
  994. package/packages/agent/src/api/registry-routes.js +98 -0
  995. package/packages/agent/src/api/registry-service.d.ts +77 -0
  996. package/packages/agent/src/api/registry-service.d.ts.map +1 -0
  997. package/packages/agent/src/api/registry-service.js +190 -0
  998. package/packages/agent/src/api/relationships-routes.d.ts +7 -0
  999. package/packages/agent/src/api/relationships-routes.d.ts.map +1 -0
  1000. package/packages/agent/src/api/relationships-routes.js +275 -0
  1001. package/packages/agent/src/api/route-helpers.d.ts +16 -0
  1002. package/packages/agent/src/api/route-helpers.d.ts.map +1 -0
  1003. package/packages/agent/src/api/route-helpers.js +1 -0
  1004. package/packages/agent/src/api/runtime-plugin-routes.d.ts +26 -0
  1005. package/packages/agent/src/api/runtime-plugin-routes.d.ts.map +1 -0
  1006. package/packages/agent/src/api/runtime-plugin-routes.js +196 -0
  1007. package/packages/agent/src/api/sandbox-routes.d.ts +12 -0
  1008. package/packages/agent/src/api/sandbox-routes.d.ts.map +1 -0
  1009. package/packages/agent/src/api/sandbox-routes.js +1334 -0
  1010. package/packages/agent/src/api/server-auth.d.ts +46 -0
  1011. package/packages/agent/src/api/server-auth.d.ts.map +1 -0
  1012. package/packages/agent/src/api/server-auth.js +509 -0
  1013. package/packages/agent/src/api/server-helpers-auth.d.ts +40 -0
  1014. package/packages/agent/src/api/server-helpers-auth.d.ts.map +1 -0
  1015. package/packages/agent/src/api/server-helpers-auth.js +609 -0
  1016. package/packages/agent/src/api/server-helpers-config.d.ts +37 -0
  1017. package/packages/agent/src/api/server-helpers-config.d.ts.map +1 -0
  1018. package/packages/agent/src/api/server-helpers-config.js +295 -0
  1019. package/packages/agent/src/api/server-helpers-fetch.d.ts +15 -0
  1020. package/packages/agent/src/api/server-helpers-fetch.d.ts.map +1 -0
  1021. package/packages/agent/src/api/server-helpers-fetch.js +149 -0
  1022. package/packages/agent/src/api/server-helpers-mcp.d.ts +12 -0
  1023. package/packages/agent/src/api/server-helpers-mcp.d.ts.map +1 -0
  1024. package/packages/agent/src/api/server-helpers-mcp.js +315 -0
  1025. package/packages/agent/src/api/server-helpers-plugin.d.ts +13 -0
  1026. package/packages/agent/src/api/server-helpers-plugin.d.ts.map +1 -0
  1027. package/packages/agent/src/api/server-helpers-plugin.js +158 -0
  1028. package/packages/agent/src/api/server-helpers-swarm.d.ts +59 -0
  1029. package/packages/agent/src/api/server-helpers-swarm.d.ts.map +1 -0
  1030. package/packages/agent/src/api/server-helpers-swarm.js +416 -0
  1031. package/packages/agent/src/api/server-helpers-wallet.d.ts +18 -0
  1032. package/packages/agent/src/api/server-helpers-wallet.d.ts.map +1 -0
  1033. package/packages/agent/src/api/server-helpers-wallet.js +178 -0
  1034. package/packages/agent/src/api/server-helpers.d.ts +96 -0
  1035. package/packages/agent/src/api/server-helpers.d.ts.map +1 -0
  1036. package/packages/agent/src/api/server-helpers.js +601 -0
  1037. package/packages/agent/src/api/server-types.d.ts +238 -0
  1038. package/packages/agent/src/api/server-types.d.ts.map +1 -0
  1039. package/packages/agent/src/api/server-types.js +6 -0
  1040. package/packages/agent/src/api/server.d.ts +61 -0
  1041. package/packages/agent/src/api/server.d.ts.map +1 -0
  1042. package/packages/agent/src/api/server.js +3227 -0
  1043. package/packages/agent/src/api/signal-routes.d.ts +42 -0
  1044. package/packages/agent/src/api/signal-routes.d.ts.map +1 -0
  1045. package/packages/agent/src/api/signal-routes.js +231 -0
  1046. package/packages/agent/src/api/skill-discovery-helpers.d.ts +80 -0
  1047. package/packages/agent/src/api/skill-discovery-helpers.d.ts.map +1 -0
  1048. package/packages/agent/src/api/skill-discovery-helpers.js +383 -0
  1049. package/packages/agent/src/api/skills-routes.d.ts +32 -0
  1050. package/packages/agent/src/api/skills-routes.d.ts.map +1 -0
  1051. package/packages/agent/src/api/skills-routes.js +975 -0
  1052. package/packages/agent/src/api/static-file-server.d.ts +19 -0
  1053. package/packages/agent/src/api/static-file-server.d.ts.map +1 -0
  1054. package/packages/agent/src/api/static-file-server.js +233 -0
  1055. package/packages/agent/src/api/stream-persistence.d.ts +64 -0
  1056. package/packages/agent/src/api/stream-persistence.d.ts.map +1 -0
  1057. package/packages/agent/src/api/stream-persistence.js +231 -0
  1058. package/packages/agent/src/api/stream-route-state.d.ts +56 -0
  1059. package/packages/agent/src/api/stream-route-state.d.ts.map +1 -0
  1060. package/packages/agent/src/api/stream-route-state.js +1 -0
  1061. package/packages/agent/src/api/stream-routes.d.ts +24 -0
  1062. package/packages/agent/src/api/stream-routes.d.ts.map +1 -0
  1063. package/packages/agent/src/api/stream-routes.js +728 -0
  1064. package/packages/agent/src/api/streaming-text.d.ts +9 -0
  1065. package/packages/agent/src/api/streaming-text.d.ts.map +1 -0
  1066. package/packages/agent/src/api/streaming-text.js +85 -0
  1067. package/packages/agent/src/api/streaming-types.d.ts +30 -0
  1068. package/packages/agent/src/api/streaming-types.d.ts.map +1 -0
  1069. package/packages/agent/src/api/streaming-types.js +1 -0
  1070. package/packages/agent/src/api/subscription-routes.d.ts +20 -0
  1071. package/packages/agent/src/api/subscription-routes.d.ts.map +1 -0
  1072. package/packages/agent/src/api/subscription-routes.js +268 -0
  1073. package/packages/agent/src/api/task-agent-message-routing.d.ts +10 -0
  1074. package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -0
  1075. package/packages/agent/src/api/task-agent-message-routing.js +62 -0
  1076. package/packages/agent/src/api/telegram-account-routes.d.ts +26 -0
  1077. package/packages/agent/src/api/telegram-account-routes.d.ts.map +1 -0
  1078. package/packages/agent/src/api/telegram-account-routes.js +229 -0
  1079. package/packages/agent/src/api/terminal-run-limits.d.ts +5 -0
  1080. package/packages/agent/src/api/terminal-run-limits.d.ts.map +1 -0
  1081. package/packages/agent/src/api/terminal-run-limits.js +22 -0
  1082. package/packages/agent/src/api/trade-safety.d.ts +35 -0
  1083. package/packages/agent/src/api/trade-safety.d.ts.map +1 -0
  1084. package/packages/agent/src/api/trade-safety.js +62 -0
  1085. package/packages/agent/src/api/training-backend-check.d.ts +2 -0
  1086. package/packages/agent/src/api/training-backend-check.d.ts.map +1 -0
  1087. package/packages/agent/src/api/training-backend-check.js +2 -0
  1088. package/packages/agent/src/api/training-routes.d.ts +2 -0
  1089. package/packages/agent/src/api/training-routes.d.ts.map +1 -0
  1090. package/packages/agent/src/api/training-routes.js +2 -0
  1091. package/packages/agent/src/api/training-service-like.d.ts +2 -0
  1092. package/packages/agent/src/api/training-service-like.d.ts.map +1 -0
  1093. package/packages/agent/src/api/training-service-like.js +1 -0
  1094. package/packages/agent/src/api/trajectory-routes.d.ts +3 -0
  1095. package/packages/agent/src/api/trajectory-routes.d.ts.map +1 -0
  1096. package/packages/agent/src/api/trajectory-routes.js +2 -0
  1097. package/packages/agent/src/api/trigger-routes.d.ts +64 -0
  1098. package/packages/agent/src/api/trigger-routes.d.ts.map +1 -0
  1099. package/packages/agent/src/api/trigger-routes.js +431 -0
  1100. package/packages/agent/src/api/tts-routes.d.ts +24 -0
  1101. package/packages/agent/src/api/tts-routes.d.ts.map +1 -0
  1102. package/packages/agent/src/api/tts-routes.js +200 -0
  1103. package/packages/agent/src/api/tx-service.d.ts +53 -0
  1104. package/packages/agent/src/api/tx-service.d.ts.map +1 -0
  1105. package/packages/agent/src/api/tx-service.js +217 -0
  1106. package/packages/agent/src/api/update-routes.d.ts +19 -0
  1107. package/packages/agent/src/api/update-routes.d.ts.map +1 -0
  1108. package/packages/agent/src/api/update-routes.js +54 -0
  1109. package/packages/agent/src/api/wallet-capability.d.ts +32 -0
  1110. package/packages/agent/src/api/wallet-capability.d.ts.map +1 -0
  1111. package/packages/agent/src/api/wallet-capability.js +189 -0
  1112. package/packages/agent/src/api/wallet-env-sync.d.ts +2 -0
  1113. package/packages/agent/src/api/wallet-env-sync.d.ts.map +1 -0
  1114. package/packages/agent/src/api/wallet-env-sync.js +108 -0
  1115. package/packages/agent/src/api/wallet-evm-balance.d.ts +72 -0
  1116. package/packages/agent/src/api/wallet-evm-balance.d.ts.map +1 -0
  1117. package/packages/agent/src/api/wallet-evm-balance.js +663 -0
  1118. package/packages/agent/src/api/wallet-routes.d.ts +42 -0
  1119. package/packages/agent/src/api/wallet-routes.d.ts.map +1 -0
  1120. package/packages/agent/src/api/wallet-routes.js +863 -0
  1121. package/packages/agent/src/api/wallet-rpc.d.ts +73 -0
  1122. package/packages/agent/src/api/wallet-rpc.d.ts.map +1 -0
  1123. package/packages/agent/src/api/wallet-rpc.js +471 -0
  1124. package/packages/agent/src/api/wallet-trading-profile.d.ts +31 -0
  1125. package/packages/agent/src/api/wallet-trading-profile.d.ts.map +1 -0
  1126. package/packages/agent/src/api/wallet-trading-profile.js +565 -0
  1127. package/packages/agent/src/api/wallet.d.ts +64 -0
  1128. package/packages/agent/src/api/wallet.d.ts.map +1 -0
  1129. package/packages/agent/src/api/wallet.js +782 -0
  1130. package/packages/agent/src/api/whatsapp-routes.d.ts +39 -0
  1131. package/packages/agent/src/api/whatsapp-routes.d.ts.map +1 -0
  1132. package/packages/agent/src/api/whatsapp-routes.js +275 -0
  1133. package/packages/agent/src/api/workbench-helpers.d.ts +39 -0
  1134. package/packages/agent/src/api/workbench-helpers.d.ts.map +1 -0
  1135. package/packages/agent/src/api/workbench-helpers.js +141 -0
  1136. package/packages/agent/src/api/workbench-routes.d.ts +53 -0
  1137. package/packages/agent/src/api/workbench-routes.d.ts.map +1 -0
  1138. package/packages/agent/src/api/workbench-routes.js +391 -0
  1139. package/packages/agent/src/api/x-relay-routes.d.ts +27 -0
  1140. package/packages/agent/src/api/x-relay-routes.d.ts.map +1 -0
  1141. package/packages/agent/src/api/x-relay-routes.js +135 -0
  1142. package/packages/agent/src/api/zip-utils.d.ts +8 -0
  1143. package/packages/agent/src/api/zip-utils.d.ts.map +1 -0
  1144. package/packages/agent/src/api/zip-utils.js +115 -0
  1145. package/packages/agent/src/auth/account-storage.d.ts +48 -0
  1146. package/packages/agent/src/auth/account-storage.d.ts.map +1 -0
  1147. package/packages/agent/src/auth/account-storage.js +238 -0
  1148. package/packages/agent/src/auth/anthropic.d.ts +24 -0
  1149. package/packages/agent/src/auth/anthropic.d.ts.map +1 -0
  1150. package/packages/agent/src/auth/anthropic.js +38 -0
  1151. package/packages/agent/src/auth/claude-code-stealth.d.ts +2 -0
  1152. package/packages/agent/src/auth/claude-code-stealth.d.ts.map +1 -0
  1153. package/packages/agent/src/auth/claude-code-stealth.js +114 -0
  1154. package/packages/agent/src/auth/credentials.d.ts +95 -0
  1155. package/packages/agent/src/auth/credentials.d.ts.map +1 -0
  1156. package/packages/agent/src/auth/credentials.js +444 -0
  1157. package/packages/agent/src/auth/index.d.ts +8 -0
  1158. package/packages/agent/src/auth/index.d.ts.map +1 -0
  1159. package/packages/agent/src/auth/index.js +7 -0
  1160. package/packages/agent/src/auth/oauth-flow.d.ts +106 -0
  1161. package/packages/agent/src/auth/oauth-flow.d.ts.map +1 -0
  1162. package/packages/agent/src/auth/oauth-flow.js +349 -0
  1163. package/packages/agent/src/auth/openai-codex.d.ts +27 -0
  1164. package/packages/agent/src/auth/openai-codex.d.ts.map +1 -0
  1165. package/packages/agent/src/auth/openai-codex.js +76 -0
  1166. package/packages/agent/src/auth/refresh-mutex.d.ts +19 -0
  1167. package/packages/agent/src/auth/refresh-mutex.d.ts.map +1 -0
  1168. package/packages/agent/src/auth/refresh-mutex.js +33 -0
  1169. package/packages/agent/src/auth/types.d.ts +18 -0
  1170. package/packages/agent/src/auth/types.d.ts.map +1 -0
  1171. package/packages/agent/src/auth/types.js +8 -0
  1172. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts +48 -0
  1173. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts.map +1 -0
  1174. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.js +113 -0
  1175. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts +26 -0
  1176. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts.map +1 -0
  1177. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.js +342 -0
  1178. package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts +9 -0
  1179. package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts.map +1 -0
  1180. package/packages/agent/src/auth/vendor/pi-oauth/pkce.js +21 -0
  1181. package/packages/agent/src/awareness/index.d.ts +2 -0
  1182. package/packages/agent/src/awareness/index.d.ts.map +1 -0
  1183. package/packages/agent/src/awareness/index.js +1 -0
  1184. package/packages/agent/src/awareness/registry.d.ts +27 -0
  1185. package/packages/agent/src/awareness/registry.d.ts.map +1 -0
  1186. package/packages/agent/src/awareness/registry.js +161 -0
  1187. package/packages/agent/src/cli/parse-duration.d.ts +5 -0
  1188. package/packages/agent/src/cli/parse-duration.d.ts.map +1 -0
  1189. package/packages/agent/src/cli/parse-duration.js +27 -0
  1190. package/packages/agent/src/cloud/auth.d.ts +19 -0
  1191. package/packages/agent/src/cloud/auth.d.ts.map +1 -0
  1192. package/packages/agent/src/cloud/auth.js +110 -0
  1193. package/packages/agent/src/cloud/backup.d.ts +18 -0
  1194. package/packages/agent/src/cloud/backup.d.ts.map +1 -0
  1195. package/packages/agent/src/cloud/backup.js +42 -0
  1196. package/packages/agent/src/cloud/base-url.d.ts +3 -0
  1197. package/packages/agent/src/cloud/base-url.d.ts.map +1 -0
  1198. package/packages/agent/src/cloud/base-url.js +53 -0
  1199. package/packages/agent/src/cloud/bridge-client.d.ts +126 -0
  1200. package/packages/agent/src/cloud/bridge-client.d.ts.map +1 -0
  1201. package/packages/agent/src/cloud/bridge-client.js +380 -0
  1202. package/packages/agent/src/cloud/cloud-manager.d.ts +33 -0
  1203. package/packages/agent/src/cloud/cloud-manager.d.ts.map +1 -0
  1204. package/packages/agent/src/cloud/cloud-manager.js +130 -0
  1205. package/packages/agent/src/cloud/cloud-proxy.d.ts +20 -0
  1206. package/packages/agent/src/cloud/cloud-proxy.d.ts.map +1 -0
  1207. package/packages/agent/src/cloud/cloud-proxy.js +34 -0
  1208. package/packages/agent/src/cloud/cloud-wallet.d.ts +92 -0
  1209. package/packages/agent/src/cloud/cloud-wallet.d.ts.map +1 -0
  1210. package/packages/agent/src/cloud/cloud-wallet.js +199 -0
  1211. package/packages/agent/src/cloud/index.d.ts +9 -0
  1212. package/packages/agent/src/cloud/index.d.ts.map +1 -0
  1213. package/packages/agent/src/cloud/index.js +8 -0
  1214. package/packages/agent/src/cloud/reconnect.d.ts +26 -0
  1215. package/packages/agent/src/cloud/reconnect.d.ts.map +1 -0
  1216. package/packages/agent/src/cloud/reconnect.js +89 -0
  1217. package/packages/agent/src/cloud/validate-url.d.ts +2 -0
  1218. package/packages/agent/src/cloud/validate-url.d.ts.map +1 -0
  1219. package/packages/agent/src/cloud/validate-url.js +162 -0
  1220. package/packages/agent/src/config/character-schema.d.ts +25 -0
  1221. package/packages/agent/src/config/character-schema.d.ts.map +1 -0
  1222. package/packages/agent/src/config/character-schema.js +39 -0
  1223. package/packages/agent/src/config/config.d.ts +6 -0
  1224. package/packages/agent/src/config/config.d.ts.map +1 -0
  1225. package/packages/agent/src/config/config.js +279 -0
  1226. package/packages/agent/src/config/env-vars.d.ts +9 -0
  1227. package/packages/agent/src/config/env-vars.d.ts.map +1 -0
  1228. package/packages/agent/src/config/env-vars.js +284 -0
  1229. package/packages/agent/src/config/feature-flags.d.ts +17 -0
  1230. package/packages/agent/src/config/feature-flags.d.ts.map +1 -0
  1231. package/packages/agent/src/config/feature-flags.js +37 -0
  1232. package/packages/agent/src/config/includes.d.ts +26 -0
  1233. package/packages/agent/src/config/includes.d.ts.map +1 -0
  1234. package/packages/agent/src/config/includes.js +148 -0
  1235. package/packages/agent/src/config/index.d.ts +20 -0
  1236. package/packages/agent/src/config/index.d.ts.map +1 -0
  1237. package/packages/agent/src/config/index.js +19 -0
  1238. package/packages/agent/src/config/model-metadata.d.ts +20 -0
  1239. package/packages/agent/src/config/model-metadata.d.ts.map +1 -0
  1240. package/packages/agent/src/config/model-metadata.js +133 -0
  1241. package/packages/agent/src/config/object-utils.d.ts +2 -0
  1242. package/packages/agent/src/config/object-utils.d.ts.map +1 -0
  1243. package/packages/agent/src/config/object-utils.js +6 -0
  1244. package/packages/agent/src/config/owner-contacts.d.ts +42 -0
  1245. package/packages/agent/src/config/owner-contacts.d.ts.map +1 -0
  1246. package/packages/agent/src/config/owner-contacts.js +223 -0
  1247. package/packages/agent/src/config/paths.d.ts +19 -0
  1248. package/packages/agent/src/config/paths.d.ts.map +1 -0
  1249. package/packages/agent/src/config/paths.js +115 -0
  1250. package/packages/agent/src/config/plugin-auto-enable.d.ts +44 -0
  1251. package/packages/agent/src/config/plugin-auto-enable.d.ts.map +1 -0
  1252. package/packages/agent/src/config/plugin-auto-enable.js +557 -0
  1253. package/packages/agent/src/config/plugin-widgets.d.ts +29 -0
  1254. package/packages/agent/src/config/plugin-widgets.d.ts.map +1 -0
  1255. package/packages/agent/src/config/plugin-widgets.js +61 -0
  1256. package/packages/agent/src/config/schema.d.ts +87 -0
  1257. package/packages/agent/src/config/schema.d.ts.map +1 -0
  1258. package/packages/agent/src/config/schema.js +922 -0
  1259. package/packages/agent/src/config/telegram-custom-commands.d.ts +25 -0
  1260. package/packages/agent/src/config/telegram-custom-commands.d.ts.map +1 -0
  1261. package/packages/agent/src/config/telegram-custom-commands.js +71 -0
  1262. package/packages/agent/src/config/types.agent-defaults.d.ts +363 -0
  1263. package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -0
  1264. package/packages/agent/src/config/types.agent-defaults.js +1 -0
  1265. package/packages/agent/src/config/types.agents.d.ts +114 -0
  1266. package/packages/agent/src/config/types.agents.d.ts.map +1 -0
  1267. package/packages/agent/src/config/types.agents.js +1 -0
  1268. package/packages/agent/src/config/types.d.ts +8 -0
  1269. package/packages/agent/src/config/types.d.ts.map +1 -0
  1270. package/packages/agent/src/config/types.eliza.d.ts +716 -0
  1271. package/packages/agent/src/config/types.eliza.d.ts.map +1 -0
  1272. package/packages/agent/src/config/types.eliza.js +1 -0
  1273. package/packages/agent/src/config/types.gateway.d.ts +216 -0
  1274. package/packages/agent/src/config/types.gateway.d.ts.map +1 -0
  1275. package/packages/agent/src/config/types.gateway.js +1 -0
  1276. package/packages/agent/src/config/types.hooks.d.ts +107 -0
  1277. package/packages/agent/src/config/types.hooks.d.ts.map +1 -0
  1278. package/packages/agent/src/config/types.hooks.js +1 -0
  1279. package/packages/agent/src/config/types.js +7 -0
  1280. package/packages/agent/src/config/types.messages.d.ts +176 -0
  1281. package/packages/agent/src/config/types.messages.d.ts.map +1 -0
  1282. package/packages/agent/src/config/types.messages.js +1 -0
  1283. package/packages/agent/src/config/types.tools.d.ts +400 -0
  1284. package/packages/agent/src/config/types.tools.d.ts.map +1 -0
  1285. package/packages/agent/src/config/types.tools.js +1 -0
  1286. package/packages/agent/src/config/zod-schema.agent-runtime.d.ts +1137 -0
  1287. package/packages/agent/src/config/zod-schema.agent-runtime.d.ts.map +1 -0
  1288. package/packages/agent/src/config/zod-schema.agent-runtime.js +782 -0
  1289. package/packages/agent/src/config/zod-schema.core.d.ts +1021 -0
  1290. package/packages/agent/src/config/zod-schema.core.d.ts.map +1 -0
  1291. package/packages/agent/src/config/zod-schema.core.js +701 -0
  1292. package/packages/agent/src/config/zod-schema.d.ts +3185 -0
  1293. package/packages/agent/src/config/zod-schema.d.ts.map +1 -0
  1294. package/packages/agent/src/config/zod-schema.hooks.d.ts +88 -0
  1295. package/packages/agent/src/config/zod-schema.hooks.d.ts.map +1 -0
  1296. package/packages/agent/src/config/zod-schema.hooks.js +133 -0
  1297. package/packages/agent/src/config/zod-schema.js +850 -0
  1298. package/packages/agent/src/config/zod-schema.providers-core.d.ts +2746 -0
  1299. package/packages/agent/src/config/zod-schema.providers-core.d.ts.map +1 -0
  1300. package/packages/agent/src/config/zod-schema.providers-core.js +961 -0
  1301. package/packages/agent/src/config/zod-schema.session.d.ts +183 -0
  1302. package/packages/agent/src/config/zod-schema.session.d.ts.map +1 -0
  1303. package/packages/agent/src/config/zod-schema.session.js +86 -0
  1304. package/packages/agent/src/contracts/apps.d.ts +2 -0
  1305. package/packages/agent/src/contracts/apps.d.ts.map +1 -0
  1306. package/packages/agent/src/contracts/apps.js +1 -0
  1307. package/packages/agent/src/contracts/awareness.d.ts +38 -0
  1308. package/packages/agent/src/contracts/awareness.d.ts.map +1 -0
  1309. package/packages/agent/src/contracts/awareness.js +7 -0
  1310. package/packages/agent/src/contracts/config.d.ts +160 -0
  1311. package/packages/agent/src/contracts/config.d.ts.map +1 -0
  1312. package/packages/agent/src/contracts/config.js +4 -0
  1313. package/packages/agent/src/contracts/onboarding.d.ts +2 -0
  1314. package/packages/agent/src/contracts/onboarding.d.ts.map +1 -0
  1315. package/packages/agent/src/contracts/onboarding.js +1 -0
  1316. package/packages/agent/src/contracts/service-routing.d.ts +2 -0
  1317. package/packages/agent/src/contracts/service-routing.d.ts.map +1 -0
  1318. package/packages/agent/src/contracts/service-routing.js +1 -0
  1319. package/packages/agent/src/contracts/wallet.d.ts +2 -0
  1320. package/packages/agent/src/contracts/wallet.d.ts.map +1 -0
  1321. package/packages/agent/src/contracts/wallet.js +1 -0
  1322. package/packages/agent/src/diagnostics/integration-observability.d.ts +40 -0
  1323. package/packages/agent/src/diagnostics/integration-observability.d.ts.map +1 -0
  1324. package/packages/agent/src/diagnostics/integration-observability.js +78 -0
  1325. package/packages/agent/src/evaluators/late-join-whitelist.d.ts +16 -0
  1326. package/packages/agent/src/evaluators/late-join-whitelist.d.ts.map +1 -0
  1327. package/packages/agent/src/evaluators/late-join-whitelist.js +67 -0
  1328. package/packages/agent/src/hooks/discovery.d.ts +13 -0
  1329. package/packages/agent/src/hooks/discovery.d.ts.map +1 -0
  1330. package/packages/agent/src/hooks/discovery.js +191 -0
  1331. package/packages/agent/src/hooks/eligibility.d.ts +12 -0
  1332. package/packages/agent/src/hooks/eligibility.d.ts.map +1 -0
  1333. package/packages/agent/src/hooks/eligibility.js +105 -0
  1334. package/packages/agent/src/hooks/index.d.ts +3 -0
  1335. package/packages/agent/src/hooks/index.d.ts.map +1 -0
  1336. package/packages/agent/src/hooks/index.js +2 -0
  1337. package/packages/agent/src/hooks/loader.d.ts +34 -0
  1338. package/packages/agent/src/hooks/loader.d.ts.map +1 -0
  1339. package/packages/agent/src/hooks/loader.js +214 -0
  1340. package/packages/agent/src/hooks/registry.d.ts +11 -0
  1341. package/packages/agent/src/hooks/registry.d.ts.map +1 -0
  1342. package/packages/agent/src/hooks/registry.js +58 -0
  1343. package/packages/agent/src/hooks/types.d.ts +104 -0
  1344. package/packages/agent/src/hooks/types.d.ts.map +1 -0
  1345. package/packages/agent/src/hooks/types.js +8 -0
  1346. package/packages/agent/src/index.d.ts +57 -0
  1347. package/packages/agent/src/index.d.ts.map +1 -0
  1348. package/packages/agent/src/index.js +64 -0
  1349. package/packages/agent/src/middleware/x402/payment-config.d.ts +251 -0
  1350. package/packages/agent/src/middleware/x402/payment-config.d.ts.map +1 -0
  1351. package/packages/agent/src/middleware/x402/payment-config.js +568 -0
  1352. package/packages/agent/src/middleware/x402/payment-wrapper.d.ts +42 -0
  1353. package/packages/agent/src/middleware/x402/payment-wrapper.d.ts.map +1 -0
  1354. package/packages/agent/src/middleware/x402/payment-wrapper.js +1342 -0
  1355. package/packages/agent/src/middleware/x402/startup-validator.d.ts +28 -0
  1356. package/packages/agent/src/middleware/x402/startup-validator.d.ts.map +1 -0
  1357. package/packages/agent/src/middleware/x402/startup-validator.js +225 -0
  1358. package/packages/agent/src/middleware/x402/types.d.ts +158 -0
  1359. package/packages/agent/src/middleware/x402/types.d.ts.map +1 -0
  1360. package/packages/agent/src/middleware/x402/types.js +5 -0
  1361. package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts +9 -0
  1362. package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts.map +1 -0
  1363. package/packages/agent/src/middleware/x402/x402-facilitator-binding.js +74 -0
  1364. package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts +30 -0
  1365. package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts.map +1 -0
  1366. package/packages/agent/src/middleware/x402/x402-replay-durable.js +202 -0
  1367. package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts +28 -0
  1368. package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts.map +1 -0
  1369. package/packages/agent/src/middleware/x402/x402-replay-guard.js +134 -0
  1370. package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts +21 -0
  1371. package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts.map +1 -0
  1372. package/packages/agent/src/middleware/x402/x402-replay-keys.js +141 -0
  1373. package/packages/agent/src/middleware/x402/x402-resolve.d.ts +6 -0
  1374. package/packages/agent/src/middleware/x402/x402-resolve.d.ts.map +1 -0
  1375. package/packages/agent/src/middleware/x402/x402-resolve.js +31 -0
  1376. package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts +130 -0
  1377. package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts.map +1 -0
  1378. package/packages/agent/src/middleware/x402/x402-standard-payment.js +387 -0
  1379. package/packages/agent/src/middleware/x402/x402-types.d.ts +130 -0
  1380. package/packages/agent/src/middleware/x402/x402-types.d.ts.map +1 -0
  1381. package/packages/agent/src/middleware/x402/x402-types.js +189 -0
  1382. package/packages/agent/src/plugins/custom-rtmp/index.d.ts +12 -0
  1383. package/packages/agent/src/plugins/custom-rtmp/index.d.ts.map +1 -0
  1384. package/packages/agent/src/plugins/custom-rtmp/index.js +26 -0
  1385. package/packages/agent/src/providers/admin-panel.d.ts +4 -0
  1386. package/packages/agent/src/providers/admin-panel.d.ts.map +1 -0
  1387. package/packages/agent/src/providers/admin-panel.js +83 -0
  1388. package/packages/agent/src/providers/admin-trust.d.ts +4 -0
  1389. package/packages/agent/src/providers/admin-trust.d.ts.map +1 -0
  1390. package/packages/agent/src/providers/admin-trust.js +34 -0
  1391. package/packages/agent/src/providers/automation-terminal-bridge.d.ts +3 -0
  1392. package/packages/agent/src/providers/automation-terminal-bridge.d.ts.map +1 -0
  1393. package/packages/agent/src/providers/automation-terminal-bridge.js +71 -0
  1394. package/packages/agent/src/providers/conversation-utils.d.ts +11 -0
  1395. package/packages/agent/src/providers/conversation-utils.d.ts.map +1 -0
  1396. package/packages/agent/src/providers/conversation-utils.js +69 -0
  1397. package/packages/agent/src/providers/escalation-trigger.d.ts +15 -0
  1398. package/packages/agent/src/providers/escalation-trigger.d.ts.map +1 -0
  1399. package/packages/agent/src/providers/escalation-trigger.js +165 -0
  1400. package/packages/agent/src/providers/media-provider.d.ts +192 -0
  1401. package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
  1402. package/packages/agent/src/providers/media-provider.js +1088 -0
  1403. package/packages/agent/src/providers/page-scoped-context.d.ts +3 -0
  1404. package/packages/agent/src/providers/page-scoped-context.d.ts.map +1 -0
  1405. package/packages/agent/src/providers/page-scoped-context.js +533 -0
  1406. package/packages/agent/src/providers/recent-conversations.d.ts +3 -0
  1407. package/packages/agent/src/providers/recent-conversations.d.ts.map +1 -0
  1408. package/packages/agent/src/providers/recent-conversations.js +94 -0
  1409. package/packages/agent/src/providers/relevant-conversations.d.ts +3 -0
  1410. package/packages/agent/src/providers/relevant-conversations.d.ts.map +1 -0
  1411. package/packages/agent/src/providers/relevant-conversations.js +93 -0
  1412. package/packages/agent/src/providers/role-backfill.d.ts +18 -0
  1413. package/packages/agent/src/providers/role-backfill.d.ts.map +1 -0
  1414. package/packages/agent/src/providers/role-backfill.js +84 -0
  1415. package/packages/agent/src/providers/rolodex.d.ts +3 -0
  1416. package/packages/agent/src/providers/rolodex.d.ts.map +1 -0
  1417. package/packages/agent/src/providers/rolodex.js +78 -0
  1418. package/packages/agent/src/providers/session-bridge.d.ts +24 -0
  1419. package/packages/agent/src/providers/session-bridge.d.ts.map +1 -0
  1420. package/packages/agent/src/providers/session-bridge.js +85 -0
  1421. package/packages/agent/src/providers/session-utils.d.ts +20 -0
  1422. package/packages/agent/src/providers/session-utils.d.ts.map +1 -0
  1423. package/packages/agent/src/providers/session-utils.js +33 -0
  1424. package/packages/agent/src/providers/simple-mode.d.ts +4 -0
  1425. package/packages/agent/src/providers/simple-mode.d.ts.map +1 -0
  1426. package/packages/agent/src/providers/simple-mode.js +85 -0
  1427. package/packages/agent/src/providers/skill-provider.d.ts +16 -0
  1428. package/packages/agent/src/providers/skill-provider.d.ts.map +1 -0
  1429. package/packages/agent/src/providers/skill-provider.js +331 -0
  1430. package/packages/agent/src/providers/tasks.d.ts +9 -0
  1431. package/packages/agent/src/providers/tasks.d.ts.map +1 -0
  1432. package/packages/agent/src/providers/tasks.js +113 -0
  1433. package/packages/agent/src/providers/ui-catalog.d.ts +3 -0
  1434. package/packages/agent/src/providers/ui-catalog.d.ts.map +1 -0
  1435. package/packages/agent/src/providers/ui-catalog.js +95 -0
  1436. package/packages/agent/src/providers/user-name.d.ts +11 -0
  1437. package/packages/agent/src/providers/user-name.d.ts.map +1 -0
  1438. package/packages/agent/src/providers/user-name.js +40 -0
  1439. package/packages/agent/src/providers/workspace-provider.d.ts +14 -0
  1440. package/packages/agent/src/providers/workspace-provider.d.ts.map +1 -0
  1441. package/packages/agent/src/providers/workspace-provider.js +177 -0
  1442. package/packages/agent/src/providers/workspace.d.ts +55 -0
  1443. package/packages/agent/src/providers/workspace.d.ts.map +1 -0
  1444. package/packages/agent/src/providers/workspace.js +484 -0
  1445. package/packages/agent/src/runtime/advanced-capabilities-config.d.ts +8 -0
  1446. package/packages/agent/src/runtime/advanced-capabilities-config.d.ts.map +1 -0
  1447. package/packages/agent/src/runtime/advanced-capabilities-config.js +42 -0
  1448. package/packages/agent/src/runtime/agent-event-service.d.ts +35 -0
  1449. package/packages/agent/src/runtime/agent-event-service.d.ts.map +1 -0
  1450. package/packages/agent/src/runtime/agent-event-service.js +16 -0
  1451. package/packages/agent/src/runtime/cloud-onboarding.d.ts +35 -0
  1452. package/packages/agent/src/runtime/cloud-onboarding.d.ts.map +1 -0
  1453. package/packages/agent/src/runtime/cloud-onboarding.js +279 -0
  1454. package/packages/agent/src/runtime/core-plugins.d.ts +39 -0
  1455. package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -0
  1456. package/packages/agent/src/runtime/core-plugins.js +85 -0
  1457. package/packages/agent/src/runtime/custom-actions.d.ts +43 -0
  1458. package/packages/agent/src/runtime/custom-actions.d.ts.map +1 -0
  1459. package/packages/agent/src/runtime/custom-actions.js +507 -0
  1460. package/packages/agent/src/runtime/default-knowledge.d.ts +20 -0
  1461. package/packages/agent/src/runtime/default-knowledge.d.ts.map +1 -0
  1462. package/packages/agent/src/runtime/default-knowledge.js +256 -0
  1463. package/packages/agent/src/runtime/discord-local-plugin.d.ts +86 -0
  1464. package/packages/agent/src/runtime/discord-local-plugin.d.ts.map +1 -0
  1465. package/packages/agent/src/runtime/discord-local-plugin.js +1116 -0
  1466. package/packages/agent/src/runtime/eliza-plugin.d.ts +16 -0
  1467. package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -0
  1468. package/packages/agent/src/runtime/eliza-plugin.js +235 -0
  1469. package/packages/agent/src/runtime/eliza.d.ts +91 -0
  1470. package/packages/agent/src/runtime/eliza.d.ts.map +1 -0
  1471. package/packages/agent/src/runtime/eliza.js +3464 -0
  1472. package/packages/agent/src/runtime/embedding-presets.d.ts +19 -0
  1473. package/packages/agent/src/runtime/embedding-presets.d.ts.map +1 -0
  1474. package/packages/agent/src/runtime/embedding-presets.js +60 -0
  1475. package/packages/agent/src/runtime/first-time-setup.d.ts +46 -0
  1476. package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -0
  1477. package/packages/agent/src/runtime/first-time-setup.js +693 -0
  1478. package/packages/agent/src/runtime/native-runtime-features.d.ts +4 -0
  1479. package/packages/agent/src/runtime/native-runtime-features.d.ts.map +1 -0
  1480. package/packages/agent/src/runtime/native-runtime-features.js +10 -0
  1481. package/packages/agent/src/runtime/onboarding-names.d.ts +11 -0
  1482. package/packages/agent/src/runtime/onboarding-names.d.ts.map +1 -0
  1483. package/packages/agent/src/runtime/onboarding-names.js +81 -0
  1484. package/packages/agent/src/runtime/operations/classifier.d.ts +36 -0
  1485. package/packages/agent/src/runtime/operations/classifier.d.ts.map +1 -0
  1486. package/packages/agent/src/runtime/operations/classifier.js +72 -0
  1487. package/packages/agent/src/runtime/operations/cold-strategy.d.ts +19 -0
  1488. package/packages/agent/src/runtime/operations/cold-strategy.d.ts.map +1 -0
  1489. package/packages/agent/src/runtime/operations/cold-strategy.js +83 -0
  1490. package/packages/agent/src/runtime/operations/health-checks.d.ts +24 -0
  1491. package/packages/agent/src/runtime/operations/health-checks.d.ts.map +1 -0
  1492. package/packages/agent/src/runtime/operations/health-checks.js +186 -0
  1493. package/packages/agent/src/runtime/operations/health.d.ts +32 -0
  1494. package/packages/agent/src/runtime/operations/health.d.ts.map +1 -0
  1495. package/packages/agent/src/runtime/operations/health.js +151 -0
  1496. package/packages/agent/src/runtime/operations/index.d.ts +16 -0
  1497. package/packages/agent/src/runtime/operations/index.d.ts.map +1 -0
  1498. package/packages/agent/src/runtime/operations/index.js +14 -0
  1499. package/packages/agent/src/runtime/operations/manager.d.ts +68 -0
  1500. package/packages/agent/src/runtime/operations/manager.d.ts.map +1 -0
  1501. package/packages/agent/src/runtime/operations/manager.js +182 -0
  1502. package/packages/agent/src/runtime/operations/reload-hot.d.ts +40 -0
  1503. package/packages/agent/src/runtime/operations/reload-hot.d.ts.map +1 -0
  1504. package/packages/agent/src/runtime/operations/reload-hot.js +176 -0
  1505. package/packages/agent/src/runtime/operations/repository.d.ts +44 -0
  1506. package/packages/agent/src/runtime/operations/repository.d.ts.map +1 -0
  1507. package/packages/agent/src/runtime/operations/repository.js +233 -0
  1508. package/packages/agent/src/runtime/operations/types.d.ts +201 -0
  1509. package/packages/agent/src/runtime/operations/types.d.ts.map +1 -0
  1510. package/packages/agent/src/runtime/operations/types.js +30 -0
  1511. package/packages/agent/src/runtime/owner-entity.d.ts +4 -0
  1512. package/packages/agent/src/runtime/owner-entity.d.ts.map +1 -0
  1513. package/packages/agent/src/runtime/owner-entity.js +30 -0
  1514. package/packages/agent/src/runtime/pglite-error-compat.d.ts +28 -0
  1515. package/packages/agent/src/runtime/pglite-error-compat.d.ts.map +1 -0
  1516. package/packages/agent/src/runtime/pglite-error-compat.js +54 -0
  1517. package/packages/agent/src/runtime/plugin-collector.d.ts +26 -0
  1518. package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -0
  1519. package/packages/agent/src/runtime/plugin-collector.js +443 -0
  1520. package/packages/agent/src/runtime/plugin-lifecycle.d.ts +44 -0
  1521. package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -0
  1522. package/packages/agent/src/runtime/plugin-lifecycle.js +578 -0
  1523. package/packages/agent/src/runtime/plugin-resolver.d.ts +32 -0
  1524. package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -0
  1525. package/packages/agent/src/runtime/plugin-resolver.js +971 -0
  1526. package/packages/agent/src/runtime/plugin-role-gating.d.ts +34 -0
  1527. package/packages/agent/src/runtime/plugin-role-gating.d.ts.map +1 -0
  1528. package/packages/agent/src/runtime/plugin-role-gating.js +267 -0
  1529. package/packages/agent/src/runtime/plugin-types.d.ts +65 -0
  1530. package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -0
  1531. package/packages/agent/src/runtime/plugin-types.js +331 -0
  1532. package/packages/agent/src/runtime/prompt-compaction.d.ts +80 -0
  1533. package/packages/agent/src/runtime/prompt-compaction.d.ts.map +1 -0
  1534. package/packages/agent/src/runtime/prompt-compaction.js +307 -0
  1535. package/packages/agent/src/runtime/prompt-optimization.d.ts +34 -0
  1536. package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -0
  1537. package/packages/agent/src/runtime/prompt-optimization.js +686 -0
  1538. package/packages/agent/src/runtime/release-plugin-policy.d.ts +20 -0
  1539. package/packages/agent/src/runtime/release-plugin-policy.d.ts.map +1 -0
  1540. package/packages/agent/src/runtime/release-plugin-policy.js +85 -0
  1541. package/packages/agent/src/runtime/restart.d.ts +21 -0
  1542. package/packages/agent/src/runtime/restart.d.ts.map +1 -0
  1543. package/packages/agent/src/runtime/restart.js +20 -0
  1544. package/packages/agent/src/runtime/roles/src/action.d.ts +11 -0
  1545. package/packages/agent/src/runtime/roles/src/action.d.ts.map +1 -0
  1546. package/packages/agent/src/runtime/roles/src/action.js +665 -0
  1547. package/packages/agent/src/runtime/roles/src/index.d.ts +24 -0
  1548. package/packages/agent/src/runtime/roles/src/index.d.ts.map +1 -0
  1549. package/packages/agent/src/runtime/roles/src/index.js +243 -0
  1550. package/packages/agent/src/runtime/roles/src/intent.d.ts +18 -0
  1551. package/packages/agent/src/runtime/roles/src/intent.d.ts.map +1 -0
  1552. package/packages/agent/src/runtime/roles/src/intent.js +293 -0
  1553. package/packages/agent/src/runtime/roles/src/provider.d.ts +7 -0
  1554. package/packages/agent/src/runtime/roles/src/provider.d.ts.map +1 -0
  1555. package/packages/agent/src/runtime/roles/src/provider.js +133 -0
  1556. package/packages/agent/src/runtime/roles/src/types.d.ts +3 -0
  1557. package/packages/agent/src/runtime/roles/src/types.d.ts.map +1 -0
  1558. package/packages/agent/src/runtime/roles/src/types.js +1 -0
  1559. package/packages/agent/src/runtime/roles/src/utils.d.ts +2 -0
  1560. package/packages/agent/src/runtime/roles/src/utils.d.ts.map +1 -0
  1561. package/packages/agent/src/runtime/roles/src/utils.js +1 -0
  1562. package/packages/agent/src/runtime/roles.d.ts +3 -0
  1563. package/packages/agent/src/runtime/roles.d.ts.map +1 -0
  1564. package/packages/agent/src/runtime/roles.js +5 -0
  1565. package/packages/agent/src/runtime/trajectory-internals.d.ts +226 -0
  1566. package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -0
  1567. package/packages/agent/src/runtime/trajectory-internals.js +1327 -0
  1568. package/packages/agent/src/runtime/trajectory-persistence.d.ts +15 -0
  1569. package/packages/agent/src/runtime/trajectory-persistence.d.ts.map +1 -0
  1570. package/packages/agent/src/runtime/trajectory-persistence.js +29 -0
  1571. package/packages/agent/src/runtime/trajectory-query.d.ts +8 -0
  1572. package/packages/agent/src/runtime/trajectory-query.d.ts.map +1 -0
  1573. package/packages/agent/src/runtime/trajectory-query.js +27 -0
  1574. package/packages/agent/src/runtime/trajectory-storage.d.ts +91 -0
  1575. package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -0
  1576. package/packages/agent/src/runtime/trajectory-storage.js +1155 -0
  1577. package/packages/agent/src/runtime/version.d.ts +2 -0
  1578. package/packages/agent/src/runtime/version.d.ts.map +1 -0
  1579. package/packages/agent/src/runtime/version.js +5 -0
  1580. package/packages/agent/src/runtime/web-search-tools.d.ts +22 -0
  1581. package/packages/agent/src/runtime/web-search-tools.d.ts.map +1 -0
  1582. package/packages/agent/src/runtime/web-search-tools.js +149 -0
  1583. package/packages/agent/src/security/access.d.ts +17 -0
  1584. package/packages/agent/src/security/access.d.ts.map +1 -0
  1585. package/packages/agent/src/security/access.js +129 -0
  1586. package/packages/agent/src/security/audit-log.d.ts +47 -0
  1587. package/packages/agent/src/security/audit-log.d.ts.map +1 -0
  1588. package/packages/agent/src/security/audit-log.js +161 -0
  1589. package/packages/agent/src/security/index.d.ts +4 -0
  1590. package/packages/agent/src/security/index.d.ts.map +1 -0
  1591. package/packages/agent/src/security/index.js +3 -0
  1592. package/packages/agent/src/security/network-policy.d.ts +6 -0
  1593. package/packages/agent/src/security/network-policy.d.ts.map +1 -0
  1594. package/packages/agent/src/security/network-policy.js +85 -0
  1595. package/packages/agent/src/services/agent-export.d.ts +100 -0
  1596. package/packages/agent/src/services/agent-export.d.ts.map +1 -0
  1597. package/packages/agent/src/services/agent-export.js +729 -0
  1598. package/packages/agent/src/services/app-manager.d.ts +108 -0
  1599. package/packages/agent/src/services/app-manager.d.ts.map +1 -0
  1600. package/packages/agent/src/services/app-manager.js +1623 -0
  1601. package/packages/agent/src/services/app-package-modules.d.ts +22 -0
  1602. package/packages/agent/src/services/app-package-modules.d.ts.map +1 -0
  1603. package/packages/agent/src/services/app-package-modules.js +388 -0
  1604. package/packages/agent/src/services/app-run-store.d.ts +6 -0
  1605. package/packages/agent/src/services/app-run-store.d.ts.map +1 -0
  1606. package/packages/agent/src/services/app-run-store.js +490 -0
  1607. package/packages/agent/src/services/app-session-gate.d.ts +15 -0
  1608. package/packages/agent/src/services/app-session-gate.d.ts.map +1 -0
  1609. package/packages/agent/src/services/app-session-gate.js +71 -0
  1610. package/packages/agent/src/services/browser-capture.d.ts +41 -0
  1611. package/packages/agent/src/services/browser-capture.d.ts.map +1 -0
  1612. package/packages/agent/src/services/browser-capture.js +173 -0
  1613. package/packages/agent/src/services/browser-workspace-desktop.d.ts +22 -0
  1614. package/packages/agent/src/services/browser-workspace-desktop.d.ts.map +1 -0
  1615. package/packages/agent/src/services/browser-workspace-desktop.js +1490 -0
  1616. package/packages/agent/src/services/browser-workspace-elements.d.ts +42 -0
  1617. package/packages/agent/src/services/browser-workspace-elements.d.ts.map +1 -0
  1618. package/packages/agent/src/services/browser-workspace-elements.js +508 -0
  1619. package/packages/agent/src/services/browser-workspace-forms.d.ts +19 -0
  1620. package/packages/agent/src/services/browser-workspace-forms.d.ts.map +1 -0
  1621. package/packages/agent/src/services/browser-workspace-forms.js +245 -0
  1622. package/packages/agent/src/services/browser-workspace-helpers.d.ts +20 -0
  1623. package/packages/agent/src/services/browser-workspace-helpers.d.ts.map +1 -0
  1624. package/packages/agent/src/services/browser-workspace-helpers.js +121 -0
  1625. package/packages/agent/src/services/browser-workspace-jsdom.d.ts +16 -0
  1626. package/packages/agent/src/services/browser-workspace-jsdom.d.ts.map +1 -0
  1627. package/packages/agent/src/services/browser-workspace-jsdom.js +223 -0
  1628. package/packages/agent/src/services/browser-workspace-network.d.ts +7 -0
  1629. package/packages/agent/src/services/browser-workspace-network.d.ts.map +1 -0
  1630. package/packages/agent/src/services/browser-workspace-network.js +137 -0
  1631. package/packages/agent/src/services/browser-workspace-snapshots.d.ts +14 -0
  1632. package/packages/agent/src/services/browser-workspace-snapshots.d.ts.map +1 -0
  1633. package/packages/agent/src/services/browser-workspace-snapshots.js +144 -0
  1634. package/packages/agent/src/services/browser-workspace-state.d.ts +22 -0
  1635. package/packages/agent/src/services/browser-workspace-state.d.ts.map +1 -0
  1636. package/packages/agent/src/services/browser-workspace-state.js +129 -0
  1637. package/packages/agent/src/services/browser-workspace-types.d.ts +279 -0
  1638. package/packages/agent/src/services/browser-workspace-types.d.ts.map +1 -0
  1639. package/packages/agent/src/services/browser-workspace-types.js +1 -0
  1640. package/packages/agent/src/services/browser-workspace-web.d.ts +8 -0
  1641. package/packages/agent/src/services/browser-workspace-web.d.ts.map +1 -0
  1642. package/packages/agent/src/services/browser-workspace-web.js +1152 -0
  1643. package/packages/agent/src/services/browser-workspace.d.ts +36 -0
  1644. package/packages/agent/src/services/browser-workspace.d.ts.map +1 -0
  1645. package/packages/agent/src/services/browser-workspace.js +639 -0
  1646. package/packages/agent/src/services/character-history.d.ts +69 -0
  1647. package/packages/agent/src/services/character-history.d.ts.map +1 -0
  1648. package/packages/agent/src/services/character-history.js +280 -0
  1649. package/packages/agent/src/services/character-persistence.d.ts +25 -0
  1650. package/packages/agent/src/services/character-persistence.d.ts.map +1 -0
  1651. package/packages/agent/src/services/character-persistence.js +167 -0
  1652. package/packages/agent/src/services/client-chat-sender.d.ts +19 -0
  1653. package/packages/agent/src/services/client-chat-sender.d.ts.map +1 -0
  1654. package/packages/agent/src/services/client-chat-sender.js +88 -0
  1655. package/packages/agent/src/services/coding-agent-context.d.ts +310 -0
  1656. package/packages/agent/src/services/coding-agent-context.d.ts.map +1 -0
  1657. package/packages/agent/src/services/coding-agent-context.js +281 -0
  1658. package/packages/agent/src/services/coding-task-executor.d.ts +14 -0
  1659. package/packages/agent/src/services/coding-task-executor.d.ts.map +1 -0
  1660. package/packages/agent/src/services/coding-task-executor.js +109 -0
  1661. package/packages/agent/src/services/config-plugin-manager.d.ts +6 -0
  1662. package/packages/agent/src/services/config-plugin-manager.d.ts.map +1 -0
  1663. package/packages/agent/src/services/config-plugin-manager.js +53 -0
  1664. package/packages/agent/src/services/connector-setup-service.d.ts +48 -0
  1665. package/packages/agent/src/services/connector-setup-service.d.ts.map +1 -0
  1666. package/packages/agent/src/services/connector-setup-service.js +60 -0
  1667. package/packages/agent/src/services/conversation-proximity.d.ts +27 -0
  1668. package/packages/agent/src/services/conversation-proximity.d.ts.map +1 -0
  1669. package/packages/agent/src/services/conversation-proximity.js +124 -0
  1670. package/packages/agent/src/services/escalation.d.ts +35 -0
  1671. package/packages/agent/src/services/escalation.d.ts.map +1 -0
  1672. package/packages/agent/src/services/escalation.js +376 -0
  1673. package/packages/agent/src/services/evm-signing-capability.d.ts +38 -0
  1674. package/packages/agent/src/services/evm-signing-capability.d.ts.map +1 -0
  1675. package/packages/agent/src/services/evm-signing-capability.js +60 -0
  1676. package/packages/agent/src/services/executor-registry.d.ts +4 -0
  1677. package/packages/agent/src/services/executor-registry.d.ts.map +1 -0
  1678. package/packages/agent/src/services/executor-registry.js +10 -0
  1679. package/packages/agent/src/services/hosted-tools.d.ts +70 -0
  1680. package/packages/agent/src/services/hosted-tools.d.ts.map +1 -0
  1681. package/packages/agent/src/services/hosted-tools.js +87 -0
  1682. package/packages/agent/src/services/index.d.ts +28 -0
  1683. package/packages/agent/src/services/index.d.ts.map +1 -0
  1684. package/packages/agent/src/services/index.js +34 -0
  1685. package/packages/agent/src/services/launchpads/image-generator.d.ts +22 -0
  1686. package/packages/agent/src/services/launchpads/image-generator.d.ts.map +1 -0
  1687. package/packages/agent/src/services/launchpads/image-generator.js +46 -0
  1688. package/packages/agent/src/services/launchpads/launchpad-engine.d.ts +32 -0
  1689. package/packages/agent/src/services/launchpads/launchpad-engine.d.ts.map +1 -0
  1690. package/packages/agent/src/services/launchpads/launchpad-engine.js +191 -0
  1691. package/packages/agent/src/services/launchpads/launchpad-types.d.ts +116 -0
  1692. package/packages/agent/src/services/launchpads/launchpad-types.d.ts.map +1 -0
  1693. package/packages/agent/src/services/launchpads/launchpad-types.js +19 -0
  1694. package/packages/agent/src/services/launchpads/metadata-generator.d.ts +24 -0
  1695. package/packages/agent/src/services/launchpads/metadata-generator.d.ts.map +1 -0
  1696. package/packages/agent/src/services/launchpads/metadata-generator.js +96 -0
  1697. package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts +25 -0
  1698. package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts.map +1 -0
  1699. package/packages/agent/src/services/launchpads/profiles/flap-sh.js +80 -0
  1700. package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts +11 -0
  1701. package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts.map +1 -0
  1702. package/packages/agent/src/services/launchpads/profiles/four-meme.js +70 -0
  1703. package/packages/agent/src/services/mcp-marketplace.d.ts +89 -0
  1704. package/packages/agent/src/services/mcp-marketplace.d.ts.map +1 -0
  1705. package/packages/agent/src/services/mcp-marketplace.js +200 -0
  1706. package/packages/agent/src/services/overlay-app-presence.d.ts +9 -0
  1707. package/packages/agent/src/services/overlay-app-presence.d.ts.map +1 -0
  1708. package/packages/agent/src/services/overlay-app-presence.js +18 -0
  1709. package/packages/agent/src/services/owner-name.d.ts +4 -0
  1710. package/packages/agent/src/services/owner-name.d.ts.map +1 -0
  1711. package/packages/agent/src/services/owner-name.js +46 -0
  1712. package/packages/agent/src/services/plugin-manager-types.d.ts +114 -0
  1713. package/packages/agent/src/services/plugin-manager-types.d.ts.map +1 -0
  1714. package/packages/agent/src/services/plugin-manager-types.js +18 -0
  1715. package/packages/agent/src/services/registry-client-app-meta.d.ts +6 -0
  1716. package/packages/agent/src/services/registry-client-app-meta.d.ts.map +1 -0
  1717. package/packages/agent/src/services/registry-client-app-meta.js +165 -0
  1718. package/packages/agent/src/services/registry-client-endpoints.d.ts +7 -0
  1719. package/packages/agent/src/services/registry-client-endpoints.d.ts.map +1 -0
  1720. package/packages/agent/src/services/registry-client-endpoints.js +190 -0
  1721. package/packages/agent/src/services/registry-client-local.d.ts +4 -0
  1722. package/packages/agent/src/services/registry-client-local.d.ts.map +1 -0
  1723. package/packages/agent/src/services/registry-client-local.js +546 -0
  1724. package/packages/agent/src/services/registry-client-network.d.ts +9 -0
  1725. package/packages/agent/src/services/registry-client-network.d.ts.map +1 -0
  1726. package/packages/agent/src/services/registry-client-network.js +120 -0
  1727. package/packages/agent/src/services/registry-client-queries.d.ts +26 -0
  1728. package/packages/agent/src/services/registry-client-queries.d.ts.map +1 -0
  1729. package/packages/agent/src/services/registry-client-queries.js +194 -0
  1730. package/packages/agent/src/services/registry-client-types.d.ts +92 -0
  1731. package/packages/agent/src/services/registry-client-types.d.ts.map +1 -0
  1732. package/packages/agent/src/services/registry-client-types.js +1 -0
  1733. package/packages/agent/src/services/registry-client.d.ts +39 -0
  1734. package/packages/agent/src/services/registry-client.d.ts.map +1 -0
  1735. package/packages/agent/src/services/registry-client.js +332 -0
  1736. package/packages/agent/src/services/relationships-graph.d.ts +240 -0
  1737. package/packages/agent/src/services/relationships-graph.d.ts.map +1 -0
  1738. package/packages/agent/src/services/relationships-graph.js +1642 -0
  1739. package/packages/agent/src/services/remote-signing-service.d.ts +58 -0
  1740. package/packages/agent/src/services/remote-signing-service.d.ts.map +1 -0
  1741. package/packages/agent/src/services/remote-signing-service.js +185 -0
  1742. package/packages/agent/src/services/research-task-executor.d.ts +14 -0
  1743. package/packages/agent/src/services/research-task-executor.d.ts.map +1 -0
  1744. package/packages/agent/src/services/research-task-executor.js +138 -0
  1745. package/packages/agent/src/services/sandbox-engine.d.ts +96 -0
  1746. package/packages/agent/src/services/sandbox-engine.d.ts.map +1 -0
  1747. package/packages/agent/src/services/sandbox-engine.js +604 -0
  1748. package/packages/agent/src/services/sandbox-manager.d.ts +106 -0
  1749. package/packages/agent/src/services/sandbox-manager.d.ts.map +1 -0
  1750. package/packages/agent/src/services/sandbox-manager.js +380 -0
  1751. package/packages/agent/src/services/self-updater.d.ts +21 -0
  1752. package/packages/agent/src/services/self-updater.d.ts.map +1 -0
  1753. package/packages/agent/src/services/self-updater.js +162 -0
  1754. package/packages/agent/src/services/send-handler-availability.d.ts +5 -0
  1755. package/packages/agent/src/services/send-handler-availability.d.ts.map +1 -0
  1756. package/packages/agent/src/services/send-handler-availability.js +20 -0
  1757. package/packages/agent/src/services/signal-pairing.d.ts +73 -0
  1758. package/packages/agent/src/services/signal-pairing.d.ts.map +1 -0
  1759. package/packages/agent/src/services/signal-pairing.js +514 -0
  1760. package/packages/agent/src/services/signing-policy.d.ts +44 -0
  1761. package/packages/agent/src/services/signing-policy.d.ts.map +1 -0
  1762. package/packages/agent/src/services/signing-policy.js +165 -0
  1763. package/packages/agent/src/services/skill-catalog-client.d.ts +47 -0
  1764. package/packages/agent/src/services/skill-catalog-client.d.ts.map +1 -0
  1765. package/packages/agent/src/services/skill-catalog-client.js +130 -0
  1766. package/packages/agent/src/services/skill-marketplace.d.ts +42 -0
  1767. package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -0
  1768. package/packages/agent/src/services/skill-marketplace.js +693 -0
  1769. package/packages/agent/src/services/stream-manager.d.ts +121 -0
  1770. package/packages/agent/src/services/stream-manager.d.ts.map +1 -0
  1771. package/packages/agent/src/services/stream-manager.js +609 -0
  1772. package/packages/agent/src/services/task-executor.d.ts +47 -0
  1773. package/packages/agent/src/services/task-executor.d.ts.map +1 -0
  1774. package/packages/agent/src/services/task-executor.js +31 -0
  1775. package/packages/agent/src/services/telegram-account-auth.d.ts +99 -0
  1776. package/packages/agent/src/services/telegram-account-auth.d.ts.map +1 -0
  1777. package/packages/agent/src/services/telegram-account-auth.js +611 -0
  1778. package/packages/agent/src/services/tts-stream-bridge.d.ts +83 -0
  1779. package/packages/agent/src/services/tts-stream-bridge.d.ts.map +1 -0
  1780. package/packages/agent/src/services/tts-stream-bridge.js +360 -0
  1781. package/packages/agent/src/services/update-checker.d.ts +29 -0
  1782. package/packages/agent/src/services/update-checker.d.ts.map +1 -0
  1783. package/packages/agent/src/services/update-checker.js +134 -0
  1784. package/packages/agent/src/services/version-compat.d.ts +99 -0
  1785. package/packages/agent/src/services/version-compat.d.ts.map +1 -0
  1786. package/packages/agent/src/services/version-compat.js +203 -0
  1787. package/packages/agent/src/services/whatsapp-pairing.d.ts +41 -0
  1788. package/packages/agent/src/services/whatsapp-pairing.d.ts.map +1 -0
  1789. package/packages/agent/src/services/whatsapp-pairing.js +209 -0
  1790. package/packages/agent/src/shared/ui-catalog-prompt.d.ts +52 -0
  1791. package/packages/agent/src/shared/ui-catalog-prompt.d.ts.map +1 -0
  1792. package/packages/agent/src/shared/ui-catalog-prompt.js +1028 -0
  1793. package/packages/agent/src/test-support/index.d.ts +4 -0
  1794. package/packages/agent/src/test-support/index.d.ts.map +1 -0
  1795. package/packages/agent/src/test-support/index.js +3 -0
  1796. package/packages/agent/src/test-support/process-helpers.d.ts +13 -0
  1797. package/packages/agent/src/test-support/process-helpers.d.ts.map +1 -0
  1798. package/packages/agent/src/test-support/process-helpers.js +23 -0
  1799. package/packages/agent/src/test-support/route-test-helpers.d.ts +37 -0
  1800. package/packages/agent/src/test-support/route-test-helpers.d.ts.map +1 -0
  1801. package/packages/agent/src/test-support/route-test-helpers.js +54 -0
  1802. package/packages/agent/src/test-support/test-helpers.d.ts +77 -0
  1803. package/packages/agent/src/test-support/test-helpers.d.ts.map +1 -0
  1804. package/packages/agent/src/test-support/test-helpers.js +217 -0
  1805. package/packages/agent/src/test-utils/sqlite-compat.d.ts +23 -0
  1806. package/packages/agent/src/test-utils/sqlite-compat.d.ts.map +1 -0
  1807. package/packages/agent/src/test-utils/sqlite-compat.js +214 -0
  1808. package/packages/agent/src/triggers/action.d.ts +4 -0
  1809. package/packages/agent/src/triggers/action.d.ts.map +1 -0
  1810. package/packages/agent/src/triggers/action.js +336 -0
  1811. package/packages/agent/src/triggers/delete-trigger.d.ts +10 -0
  1812. package/packages/agent/src/triggers/delete-trigger.d.ts.map +1 -0
  1813. package/packages/agent/src/triggers/delete-trigger.js +158 -0
  1814. package/packages/agent/src/triggers/run-trigger.d.ts +11 -0
  1815. package/packages/agent/src/triggers/run-trigger.d.ts.map +1 -0
  1816. package/packages/agent/src/triggers/run-trigger.js +142 -0
  1817. package/packages/agent/src/triggers/runtime.d.ts +30 -0
  1818. package/packages/agent/src/triggers/runtime.d.ts.map +1 -0
  1819. package/packages/agent/src/triggers/runtime.js +530 -0
  1820. package/packages/agent/src/triggers/scheduling.d.ts +78 -0
  1821. package/packages/agent/src/triggers/scheduling.d.ts.map +1 -0
  1822. package/packages/agent/src/triggers/scheduling.js +433 -0
  1823. package/packages/agent/src/triggers/types.d.ts +96 -0
  1824. package/packages/agent/src/triggers/types.d.ts.map +1 -0
  1825. package/packages/agent/src/triggers/types.js +1 -0
  1826. package/packages/agent/src/triggers/update-trigger.d.ts +10 -0
  1827. package/packages/agent/src/triggers/update-trigger.d.ts.map +1 -0
  1828. package/packages/agent/src/triggers/update-trigger.js +309 -0
  1829. package/packages/agent/src/types/agent-skills.d.ts +19 -0
  1830. package/packages/agent/src/types/agent-skills.d.ts.map +1 -0
  1831. package/packages/agent/src/types/agent-skills.js +7 -0
  1832. package/packages/agent/src/types/config-like.d.ts +17 -0
  1833. package/packages/agent/src/types/config-like.d.ts.map +1 -0
  1834. package/packages/agent/src/types/config-like.js +7 -0
  1835. package/packages/agent/src/types/index.d.ts +4 -0
  1836. package/packages/agent/src/types/index.d.ts.map +1 -0
  1837. package/packages/agent/src/types/index.js +3 -0
  1838. package/packages/agent/src/types/trajectory.d.ts +147 -0
  1839. package/packages/agent/src/types/trajectory.d.ts.map +1 -0
  1840. package/packages/agent/src/types/trajectory.js +8 -0
  1841. package/packages/agent/src/utils/exec-safety.d.ts +2 -0
  1842. package/packages/agent/src/utils/exec-safety.d.ts.map +1 -0
  1843. package/packages/agent/src/utils/exec-safety.js +21 -0
  1844. package/packages/agent/src/utils/number-parsing.d.ts +26 -0
  1845. package/packages/agent/src/utils/number-parsing.d.ts.map +1 -0
  1846. package/packages/agent/src/utils/number-parsing.js +51 -0
  1847. package/packages/agent/src/version-resolver.d.ts +2 -0
  1848. package/packages/agent/src/version-resolver.d.ts.map +1 -0
  1849. package/packages/agent/src/version-resolver.js +50 -0
  1850. package/packages/app-core/src/api/client-types-cloud.d.ts +805 -0
  1851. package/packages/app-core/src/api/client-types-cloud.d.ts.map +1 -0
  1852. package/packages/app-core/src/api/client-types-cloud.js +57 -0
  1853. package/packages/app-core/src/api/client-types-core.d.ts +337 -0
  1854. package/packages/app-core/src/api/client-types-core.d.ts.map +1 -0
  1855. package/packages/app-core/src/api/client-types-core.js +22 -0
  1856. package/packages/app-core/src/api/cloud-secrets.d.ts +23 -0
  1857. package/packages/app-core/src/api/cloud-secrets.d.ts.map +1 -0
  1858. package/packages/app-core/src/api/cloud-secrets.js +50 -0
  1859. package/packages/app-core/src/api/compat-route-shared.d.ts +29 -0
  1860. package/packages/app-core/src/api/compat-route-shared.d.ts.map +1 -0
  1861. package/packages/app-core/src/api/compat-route-shared.js +284 -0
  1862. package/packages/app-core/src/api/response.d.ts +12 -0
  1863. package/packages/app-core/src/api/response.d.ts.map +1 -0
  1864. package/packages/app-core/src/api/response.js +36 -0
  1865. package/packages/app-core/src/api/server-cloud-tts.d.ts +41 -0
  1866. package/packages/app-core/src/api/server-cloud-tts.d.ts.map +1 -0
  1867. package/packages/app-core/src/api/server-cloud-tts.js +471 -0
  1868. package/packages/app-core/src/config/boot-config-store.d.ts +267 -0
  1869. package/packages/app-core/src/config/boot-config-store.d.ts.map +1 -0
  1870. package/packages/app-core/src/config/boot-config-store.js +143 -0
  1871. package/packages/app-core/src/config/boot-config.d.ts +6 -0
  1872. package/packages/app-core/src/config/boot-config.d.ts.map +1 -0
  1873. package/packages/app-core/src/config/boot-config.js +5 -0
  1874. package/packages/app-core/src/config/branding.d.ts +55 -0
  1875. package/packages/app-core/src/config/branding.d.ts.map +1 -0
  1876. package/packages/app-core/src/config/branding.js +23 -0
  1877. package/packages/app-core/src/navigation/index.d.ts +70 -0
  1878. package/packages/app-core/src/navigation/index.d.ts.map +1 -0
  1879. package/packages/app-core/src/navigation/index.js +442 -0
  1880. package/packages/app-core/src/services/plugin-installer.d.ts +93 -0
  1881. package/packages/app-core/src/services/plugin-installer.d.ts.map +1 -0
  1882. package/packages/app-core/src/services/plugin-installer.js +628 -0
  1883. package/packages/app-core/src/state/action-notice.d.ts +7 -0
  1884. package/packages/app-core/src/state/action-notice.d.ts.map +1 -0
  1885. package/packages/app-core/src/state/action-notice.js +1 -0
  1886. package/packages/app-core/src/utils/env.d.ts +31 -0
  1887. package/packages/app-core/src/utils/env.d.ts.map +1 -0
  1888. package/packages/app-core/src/utils/env.js +51 -0
  1889. package/packages/app-core/src/utils/serialise.d.ts +12 -0
  1890. package/packages/app-core/src/utils/serialise.d.ts.map +1 -0
  1891. package/packages/app-core/src/utils/serialise.js +21 -0
  1892. package/packages/app-core/src/utils/tts-debug.d.ts +9 -0
  1893. package/packages/app-core/src/utils/tts-debug.d.ts.map +1 -0
  1894. package/packages/app-core/src/utils/tts-debug.js +69 -0
  1895. package/packages/shared/src/app-hero-art.d.ts +13 -0
  1896. package/packages/shared/src/app-hero-art.d.ts.map +1 -0
  1897. package/packages/shared/src/app-hero-art.js +357 -0
  1898. package/packages/shared/src/awareness/index.d.ts +2 -0
  1899. package/packages/shared/src/awareness/index.d.ts.map +1 -0
  1900. package/packages/shared/src/awareness/index.js +1 -0
  1901. package/packages/shared/src/awareness/registry.d.ts +27 -0
  1902. package/packages/shared/src/awareness/registry.d.ts.map +1 -0
  1903. package/packages/shared/src/awareness/registry.js +161 -0
  1904. package/packages/shared/src/config/types.agent-defaults.d.ts +383 -0
  1905. package/packages/shared/src/config/types.agent-defaults.d.ts.map +1 -0
  1906. package/packages/shared/src/config/types.agent-defaults.js +1 -0
  1907. package/packages/shared/src/config/types.agents.d.ts +114 -0
  1908. package/packages/shared/src/config/types.agents.d.ts.map +1 -0
  1909. package/packages/shared/src/config/types.agents.js +1 -0
  1910. package/packages/shared/src/config/types.d.ts +8 -0
  1911. package/packages/shared/src/config/types.d.ts.map +1 -0
  1912. package/packages/shared/src/config/types.eliza.d.ts +711 -0
  1913. package/packages/shared/src/config/types.eliza.d.ts.map +1 -0
  1914. package/packages/shared/src/config/types.eliza.js +1 -0
  1915. package/packages/shared/src/config/types.gateway.d.ts +216 -0
  1916. package/packages/shared/src/config/types.gateway.d.ts.map +1 -0
  1917. package/packages/shared/src/config/types.gateway.js +1 -0
  1918. package/packages/shared/src/config/types.hooks.d.ts +107 -0
  1919. package/packages/shared/src/config/types.hooks.d.ts.map +1 -0
  1920. package/packages/shared/src/config/types.hooks.js +1 -0
  1921. package/packages/shared/src/config/types.js +7 -0
  1922. package/packages/shared/src/config/types.messages.d.ts +176 -0
  1923. package/packages/shared/src/config/types.messages.d.ts.map +1 -0
  1924. package/packages/shared/src/config/types.messages.js +1 -0
  1925. package/packages/shared/src/config/types.tools.d.ts +400 -0
  1926. package/packages/shared/src/config/types.tools.d.ts.map +1 -0
  1927. package/packages/shared/src/config/types.tools.js +1 -0
  1928. package/packages/shared/src/connector-cred-types.d.ts +27 -0
  1929. package/packages/shared/src/connector-cred-types.d.ts.map +1 -0
  1930. package/packages/shared/src/connector-cred-types.js +63 -0
  1931. package/packages/shared/src/connectors.d.ts +13 -0
  1932. package/packages/shared/src/connectors.d.ts.map +1 -0
  1933. package/packages/shared/src/connectors.js +96 -0
  1934. package/packages/shared/src/contracts/apps.d.ts +259 -0
  1935. package/packages/shared/src/contracts/apps.d.ts.map +1 -0
  1936. package/packages/shared/src/contracts/apps.js +203 -0
  1937. package/packages/shared/src/contracts/awareness.d.ts +38 -0
  1938. package/packages/shared/src/contracts/awareness.d.ts.map +1 -0
  1939. package/packages/shared/src/contracts/awareness.js +7 -0
  1940. package/packages/shared/src/contracts/cloud-topology.d.ts +13 -0
  1941. package/packages/shared/src/contracts/cloud-topology.d.ts.map +1 -0
  1942. package/packages/shared/src/contracts/cloud-topology.js +71 -0
  1943. package/packages/shared/src/contracts/config.d.ts +146 -0
  1944. package/packages/shared/src/contracts/config.d.ts.map +1 -0
  1945. package/packages/shared/src/contracts/config.js +4 -0
  1946. package/packages/shared/src/contracts/content-pack.d.ts +131 -0
  1947. package/packages/shared/src/contracts/content-pack.d.ts.map +1 -0
  1948. package/packages/shared/src/contracts/content-pack.js +102 -0
  1949. package/packages/shared/src/contracts/drop.d.ts +20 -0
  1950. package/packages/shared/src/contracts/drop.d.ts.map +1 -0
  1951. package/packages/shared/src/contracts/drop.js +4 -0
  1952. package/packages/shared/src/contracts/inbox.d.ts +26 -0
  1953. package/packages/shared/src/contracts/inbox.d.ts.map +1 -0
  1954. package/packages/shared/src/contracts/inbox.js +1 -0
  1955. package/packages/shared/src/contracts/index.d.ts +15 -0
  1956. package/packages/shared/src/contracts/index.d.ts.map +1 -0
  1957. package/packages/shared/src/contracts/index.js +14 -0
  1958. package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts +9 -0
  1959. package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts.map +1 -0
  1960. package/packages/shared/src/contracts/lifeops-connector-degradation.js +13 -0
  1961. package/packages/shared/src/contracts/lifeops-extensions.d.ts +340 -0
  1962. package/packages/shared/src/contracts/lifeops-extensions.d.ts.map +1 -0
  1963. package/packages/shared/src/contracts/lifeops-extensions.js +36 -0
  1964. package/packages/shared/src/contracts/lifeops.d.ts +2729 -0
  1965. package/packages/shared/src/contracts/lifeops.d.ts.map +1 -0
  1966. package/packages/shared/src/contracts/lifeops.js +556 -0
  1967. package/packages/shared/src/contracts/onboarding.d.ts +408 -0
  1968. package/packages/shared/src/contracts/onboarding.d.ts.map +1 -0
  1969. package/packages/shared/src/contracts/onboarding.js +1021 -0
  1970. package/packages/shared/src/contracts/permissions.d.ts +38 -0
  1971. package/packages/shared/src/contracts/permissions.d.ts.map +1 -0
  1972. package/packages/shared/src/contracts/permissions.js +4 -0
  1973. package/packages/shared/src/contracts/scratchpad.d.ts +136 -0
  1974. package/packages/shared/src/contracts/scratchpad.d.ts.map +1 -0
  1975. package/packages/shared/src/contracts/scratchpad.js +90 -0
  1976. package/packages/shared/src/contracts/service-routing.d.ts +162 -0
  1977. package/packages/shared/src/contracts/service-routing.d.ts.map +1 -0
  1978. package/packages/shared/src/contracts/service-routing.js +392 -0
  1979. package/packages/shared/src/contracts/theme.d.ts +136 -0
  1980. package/packages/shared/src/contracts/theme.d.ts.map +1 -0
  1981. package/packages/shared/src/contracts/theme.js +133 -0
  1982. package/packages/shared/src/contracts/verification.d.ts +9 -0
  1983. package/packages/shared/src/contracts/verification.d.ts.map +1 -0
  1984. package/packages/shared/src/contracts/verification.js +4 -0
  1985. package/packages/shared/src/contracts/wallet.d.ts +615 -0
  1986. package/packages/shared/src/contracts/wallet.d.ts.map +1 -0
  1987. package/packages/shared/src/contracts/wallet.js +60 -0
  1988. package/packages/shared/src/dev-settings-banner-style.d.ts +14 -0
  1989. package/packages/shared/src/dev-settings-banner-style.d.ts.map +1 -0
  1990. package/packages/shared/src/dev-settings-banner-style.js +57 -0
  1991. package/packages/shared/src/dev-settings-table.d.ts +47 -0
  1992. package/packages/shared/src/dev-settings-table.d.ts.map +1 -0
  1993. package/packages/shared/src/dev-settings-table.js +188 -0
  1994. package/packages/shared/src/env-utils.d.ts +5 -0
  1995. package/packages/shared/src/env-utils.d.ts.map +1 -0
  1996. package/packages/shared/src/env-utils.impl.d.ts +2 -0
  1997. package/packages/shared/src/env-utils.impl.d.ts.map +1 -0
  1998. package/packages/shared/src/env-utils.impl.js +9 -0
  1999. package/packages/shared/src/env-utils.js +4 -0
  2000. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +1091 -0
  2001. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
  2002. package/packages/shared/src/i18n/generated/validation-keyword-data.js +1094 -0
  2003. package/packages/shared/src/i18n/keyword-matching.d.ts +23 -0
  2004. package/packages/shared/src/i18n/keyword-matching.d.ts.map +1 -0
  2005. package/packages/shared/src/i18n/keyword-matching.js +112 -0
  2006. package/packages/shared/src/i18n/validation-keywords.d.ts +13 -0
  2007. package/packages/shared/src/i18n/validation-keywords.d.ts.map +1 -0
  2008. package/packages/shared/src/i18n/validation-keywords.js +12 -0
  2009. package/packages/shared/src/index.d.ts +26 -0
  2010. package/packages/shared/src/index.d.ts.map +1 -0
  2011. package/packages/shared/src/index.js +37 -0
  2012. package/packages/shared/src/onboarding-presets.characters.d.ts +22 -0
  2013. package/packages/shared/src/onboarding-presets.characters.d.ts.map +1 -0
  2014. package/packages/shared/src/onboarding-presets.characters.js +2616 -0
  2015. package/packages/shared/src/onboarding-presets.d.ts +40 -0
  2016. package/packages/shared/src/onboarding-presets.d.ts.map +1 -0
  2017. package/packages/shared/src/onboarding-presets.js +180 -0
  2018. package/packages/shared/src/onboarding-presets.shared.d.ts +2 -0
  2019. package/packages/shared/src/onboarding-presets.shared.d.ts.map +1 -0
  2020. package/packages/shared/src/onboarding-presets.shared.js +7 -0
  2021. package/packages/shared/src/recent-messages-state.d.ts +10 -0
  2022. package/packages/shared/src/recent-messages-state.d.ts.map +1 -0
  2023. package/packages/shared/src/recent-messages-state.js +11 -0
  2024. package/packages/shared/src/restart.d.ts +27 -0
  2025. package/packages/shared/src/restart.d.ts.map +1 -0
  2026. package/packages/shared/src/restart.js +28 -0
  2027. package/packages/shared/src/runtime-env.d.ts +84 -0
  2028. package/packages/shared/src/runtime-env.d.ts.map +1 -0
  2029. package/packages/shared/src/runtime-env.js +261 -0
  2030. package/packages/shared/src/settings-debug.d.ts +20 -0
  2031. package/packages/shared/src/settings-debug.d.ts.map +1 -0
  2032. package/packages/shared/src/settings-debug.js +114 -0
  2033. package/packages/shared/src/spoken-text.d.ts +2 -0
  2034. package/packages/shared/src/spoken-text.d.ts.map +1 -0
  2035. package/packages/shared/src/spoken-text.js +56 -0
  2036. package/packages/shared/src/themes/index.d.ts +7 -0
  2037. package/packages/shared/src/themes/index.d.ts.map +1 -0
  2038. package/packages/shared/src/themes/index.js +5 -0
  2039. package/packages/shared/src/themes/presets.d.ts +15 -0
  2040. package/packages/shared/src/themes/presets.d.ts.map +1 -0
  2041. package/packages/shared/src/themes/presets.js +788 -0
  2042. package/packages/shared/src/type-guards.d.ts +29 -0
  2043. package/packages/shared/src/type-guards.d.ts.map +1 -0
  2044. package/packages/shared/src/type-guards.js +43 -0
  2045. package/packages/shared/src/validation-keywords.d.ts +2 -0
  2046. package/packages/shared/src/validation-keywords.d.ts.map +1 -0
  2047. package/packages/shared/src/validation-keywords.js +1 -0
  2048. package/packages/skills/src/formatter.d.ts +44 -0
  2049. package/packages/skills/src/formatter.d.ts.map +1 -0
  2050. package/packages/skills/src/formatter.js +182 -0
  2051. package/packages/skills/src/frontmatter.d.ts +51 -0
  2052. package/packages/skills/src/frontmatter.d.ts.map +1 -0
  2053. package/packages/skills/src/frontmatter.js +155 -0
  2054. package/packages/skills/src/index.d.ts +29 -0
  2055. package/packages/skills/src/index.d.ts.map +1 -0
  2056. package/packages/skills/src/index.js +31 -0
  2057. package/packages/skills/src/loader.d.ts +33 -0
  2058. package/packages/skills/src/loader.d.ts.map +1 -0
  2059. package/packages/skills/src/loader.js +369 -0
  2060. package/packages/skills/src/resolver.d.ts +35 -0
  2061. package/packages/skills/src/resolver.d.ts.map +1 -0
  2062. package/packages/skills/src/resolver.js +143 -0
  2063. package/packages/skills/src/types.d.ts +238 -0
  2064. package/packages/skills/src/types.d.ts.map +1 -0
  2065. package/packages/skills/src/types.js +1 -0
  2066. package/packages/typescript/src/action-docs.d.ts +26 -0
  2067. package/packages/typescript/src/action-docs.d.ts.map +1 -0
  2068. package/packages/typescript/src/action-docs.js +119 -0
  2069. package/packages/typescript/src/actions.d.ts +29 -0
  2070. package/packages/typescript/src/actions.d.ts.map +1 -0
  2071. package/packages/typescript/src/actions.js +551 -0
  2072. package/packages/typescript/src/character-utils.d.ts +138 -0
  2073. package/packages/typescript/src/character-utils.d.ts.map +1 -0
  2074. package/packages/typescript/src/character-utils.js +271 -0
  2075. package/packages/typescript/src/character.d.ts +68 -0
  2076. package/packages/typescript/src/character.d.ts.map +1 -0
  2077. package/packages/typescript/src/character.js +155 -0
  2078. package/packages/typescript/src/connection.d.ts +45 -0
  2079. package/packages/typescript/src/connection.d.ts.map +1 -0
  2080. package/packages/typescript/src/connection.js +149 -0
  2081. package/packages/typescript/src/constants/index.d.ts +7 -0
  2082. package/packages/typescript/src/constants/index.d.ts.map +1 -0
  2083. package/packages/typescript/src/constants/index.js +6 -0
  2084. package/packages/typescript/src/constants/secrets.d.ts +99 -0
  2085. package/packages/typescript/src/constants/secrets.d.ts.map +1 -0
  2086. package/packages/typescript/src/constants/secrets.js +239 -0
  2087. package/packages/typescript/src/database/inMemoryAdapter.d.ts +285 -0
  2088. package/packages/typescript/src/database/inMemoryAdapter.d.ts.map +1 -0
  2089. package/packages/typescript/src/database/inMemoryAdapter.js +1171 -0
  2090. package/packages/typescript/src/database.d.ts +426 -0
  2091. package/packages/typescript/src/database.d.ts.map +1 -0
  2092. package/packages/typescript/src/database.js +24 -0
  2093. package/packages/typescript/src/entities.d.ts +11 -0
  2094. package/packages/typescript/src/entities.d.ts.map +1 -0
  2095. package/packages/typescript/src/entities.js +437 -0
  2096. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts +3 -0
  2097. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts.map +1 -0
  2098. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.js +142 -0
  2099. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts +3 -0
  2100. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts.map +1 -0
  2101. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.js +183 -0
  2102. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts +3 -0
  2103. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts.map +1 -0
  2104. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.js +148 -0
  2105. package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts +21 -0
  2106. package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts.map +1 -0
  2107. package/packages/typescript/src/features/advanced-capabilities/actions/index.js +20 -0
  2108. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts +3 -0
  2109. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts.map +1 -0
  2110. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.js +181 -0
  2111. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts +3 -0
  2112. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts.map +1 -0
  2113. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.js +121 -0
  2114. package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts +13 -0
  2115. package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts.map +1 -0
  2116. package/packages/typescript/src/features/advanced-capabilities/actions/roles.js +317 -0
  2117. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts +3 -0
  2118. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -0
  2119. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.js +138 -0
  2120. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts +3 -0
  2121. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts.map +1 -0
  2122. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.js +178 -0
  2123. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts +15 -0
  2124. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts.map +1 -0
  2125. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.js +476 -0
  2126. package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts +22 -0
  2127. package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts.map +1 -0
  2128. package/packages/typescript/src/features/advanced-capabilities/actions/settings.js +823 -0
  2129. package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts +3 -0
  2130. package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts.map +1 -0
  2131. package/packages/typescript/src/features/advanced-capabilities/actions/think.js +84 -0
  2132. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts +3 -0
  2133. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts.map +1 -0
  2134. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.js +134 -0
  2135. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts +3 -0
  2136. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts.map +1 -0
  2137. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.js +193 -0
  2138. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts +3 -0
  2139. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts.map +1 -0
  2140. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.js +219 -0
  2141. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts +43 -0
  2142. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts.map +1 -0
  2143. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.js +372 -0
  2144. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
  2145. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
  2146. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.js +150 -0
  2147. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
  2148. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
  2149. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.js +136 -0
  2150. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
  2151. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
  2152. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.js +84 -0
  2153. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
  2154. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
  2155. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.js +120 -0
  2156. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
  2157. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
  2158. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.js +202 -0
  2159. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
  2160. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
  2161. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.js +138 -0
  2162. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
  2163. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
  2164. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +102 -0
  2165. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts +4 -0
  2166. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts.map +1 -0
  2167. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.js +134 -0
  2168. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
  2169. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
  2170. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.js +139 -0
  2171. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
  2172. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
  2173. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.js +138 -0
  2174. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts +41 -0
  2175. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts.map +1 -0
  2176. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.js +82 -0
  2177. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
  2178. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
  2179. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
  2180. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
  2181. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
  2182. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
  2183. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
  2184. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
  2185. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.js +357 -0
  2186. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
  2187. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
  2188. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
  2189. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
  2190. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
  2191. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
  2192. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts +15 -0
  2193. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
  2194. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.js +164 -0
  2195. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts +92 -0
  2196. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts.map +1 -0
  2197. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.js +4 -0
  2198. package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts +11 -0
  2199. package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts.map +1 -0
  2200. package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.js +49 -0
  2201. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts +23 -0
  2202. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts.map +1 -0
  2203. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.js +608 -0
  2204. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts +210 -0
  2205. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts.map +1 -0
  2206. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.js +114 -0
  2207. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts +11 -0
  2208. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts.map +1 -0
  2209. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.js +10 -0
  2210. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts +3 -0
  2211. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts.map +1 -0
  2212. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.js +642 -0
  2213. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts +3 -0
  2214. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts.map +1 -0
  2215. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.js +643 -0
  2216. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +25 -0
  2217. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts.map +1 -0
  2218. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +362 -0
  2219. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +21 -0
  2220. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts.map +1 -0
  2221. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +541 -0
  2222. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts +12 -0
  2223. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts.map +1 -0
  2224. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.js +14 -0
  2225. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts +3 -0
  2226. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts.map +1 -0
  2227. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.js +114 -0
  2228. package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts +3 -0
  2229. package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts.map +1 -0
  2230. package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.js +110 -0
  2231. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts +3 -0
  2232. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts.map +1 -0
  2233. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.js +296 -0
  2234. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts +12 -0
  2235. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts.map +1 -0
  2236. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.js +41 -0
  2237. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts +49 -0
  2238. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts.map +1 -0
  2239. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.js +78 -0
  2240. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts +159 -0
  2241. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts.map +1 -0
  2242. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.js +192 -0
  2243. package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts +10 -0
  2244. package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts.map +1 -0
  2245. package/packages/typescript/src/features/advanced-capabilities/experience/index.js +8 -0
  2246. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts +3 -0
  2247. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts.map +1 -0
  2248. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.js +61 -0
  2249. package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +88 -0
  2250. package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts.map +1 -0
  2251. package/packages/typescript/src/features/advanced-capabilities/experience/service.js +1194 -0
  2252. package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +141 -0
  2253. package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts.map +1 -0
  2254. package/packages/typescript/src/features/advanced-capabilities/experience/types.js +22 -0
  2255. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts +34 -0
  2256. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts.map +1 -0
  2257. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.js +106 -0
  2258. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts +24 -0
  2259. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts.map +1 -0
  2260. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.js +152 -0
  2261. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts +26 -0
  2262. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts.map +1 -0
  2263. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.js +129 -0
  2264. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts +8 -0
  2265. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts.map +1 -0
  2266. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.js +175 -0
  2267. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts +13 -0
  2268. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts.map +1 -0
  2269. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.js +152 -0
  2270. package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts +101 -0
  2271. package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts.map +1 -0
  2272. package/packages/typescript/src/features/advanced-capabilities/form/builder.js +362 -0
  2273. package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts +16 -0
  2274. package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts.map +1 -0
  2275. package/packages/typescript/src/features/advanced-capabilities/form/builtins.js +245 -0
  2276. package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts +32 -0
  2277. package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts.map +1 -0
  2278. package/packages/typescript/src/features/advanced-capabilities/form/defaults.js +98 -0
  2279. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts +12 -0
  2280. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts.map +1 -0
  2281. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.js +231 -0
  2282. package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts +24 -0
  2283. package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts.map +1 -0
  2284. package/packages/typescript/src/features/advanced-capabilities/form/extraction.js +319 -0
  2285. package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts +22 -0
  2286. package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts.map +1 -0
  2287. package/packages/typescript/src/features/advanced-capabilities/form/index.js +52 -0
  2288. package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts +41 -0
  2289. package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts.map +1 -0
  2290. package/packages/typescript/src/features/advanced-capabilities/form/intent.js +119 -0
  2291. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts +11 -0
  2292. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts.map +1 -0
  2293. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.js +166 -0
  2294. package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts +66 -0
  2295. package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts.map +1 -0
  2296. package/packages/typescript/src/features/advanced-capabilities/form/service.js +912 -0
  2297. package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts +26 -0
  2298. package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts.map +1 -0
  2299. package/packages/typescript/src/features/advanced-capabilities/form/storage.js +228 -0
  2300. package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts +10 -0
  2301. package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts.map +1 -0
  2302. package/packages/typescript/src/features/advanced-capabilities/form/template.js +56 -0
  2303. package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts +40 -0
  2304. package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts.map +1 -0
  2305. package/packages/typescript/src/features/advanced-capabilities/form/ttl.js +107 -0
  2306. package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts +589 -0
  2307. package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts.map +1 -0
  2308. package/packages/typescript/src/features/advanced-capabilities/form/types.js +71 -0
  2309. package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts +24 -0
  2310. package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts.map +1 -0
  2311. package/packages/typescript/src/features/advanced-capabilities/form/validation.js +311 -0
  2312. package/packages/typescript/src/features/advanced-capabilities/index.d.ts +47 -0
  2313. package/packages/typescript/src/features/advanced-capabilities/index.d.ts.map +1 -0
  2314. package/packages/typescript/src/features/advanced-capabilities/index.js +121 -0
  2315. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts +16 -0
  2316. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts.map +1 -0
  2317. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.js +356 -0
  2318. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts +9 -0
  2319. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts.map +1 -0
  2320. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.js +234 -0
  2321. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts +8 -0
  2322. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts.map +1 -0
  2323. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.js +290 -0
  2324. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts +7 -0
  2325. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts.map +1 -0
  2326. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.js +1299 -0
  2327. package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts +12 -0
  2328. package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts.map +1 -0
  2329. package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.js +167 -0
  2330. package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts +13 -0
  2331. package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts.map +1 -0
  2332. package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.js +193 -0
  2333. package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts +18 -0
  2334. package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts.map +1 -0
  2335. package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.js +42 -0
  2336. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts +53 -0
  2337. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts.map +1 -0
  2338. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.js +429 -0
  2339. package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts +14 -0
  2340. package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts.map +1 -0
  2341. package/packages/typescript/src/features/advanced-capabilities/personality/index.js +12 -0
  2342. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts +8 -0
  2343. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts.map +1 -0
  2344. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.js +57 -0
  2345. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts +71 -0
  2346. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts.map +1 -0
  2347. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.js +478 -0
  2348. package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +13 -0
  2349. package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts.map +1 -0
  2350. package/packages/typescript/src/features/advanced-capabilities/personality/types.js +8 -0
  2351. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts +3 -0
  2352. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts.map +1 -0
  2353. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.js +77 -0
  2354. package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts +9 -0
  2355. package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts.map +1 -0
  2356. package/packages/typescript/src/features/advanced-capabilities/providers/facts.js +272 -0
  2357. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts +3 -0
  2358. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts.map +1 -0
  2359. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.js +112 -0
  2360. package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts +13 -0
  2361. package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts.map +1 -0
  2362. package/packages/typescript/src/features/advanced-capabilities/providers/index.js +12 -0
  2363. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts +9 -0
  2364. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts.map +1 -0
  2365. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.js +83 -0
  2366. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts +15 -0
  2367. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts.map +1 -0
  2368. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.js +140 -0
  2369. package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts +19 -0
  2370. package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts.map +1 -0
  2371. package/packages/typescript/src/features/advanced-capabilities/providers/roles.js +231 -0
  2372. package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts +7 -0
  2373. package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts.map +1 -0
  2374. package/packages/typescript/src/features/advanced-capabilities/providers/settings.js +294 -0
  2375. package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts +3 -0
  2376. package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts.map +1 -0
  2377. package/packages/typescript/src/features/advanced-memory/evaluators/index.js +2 -0
  2378. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts +3 -0
  2379. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -0
  2380. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.js +199 -0
  2381. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts +3 -0
  2382. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts.map +1 -0
  2383. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.js +240 -0
  2384. package/packages/typescript/src/features/advanced-memory/index.d.ts +16 -0
  2385. package/packages/typescript/src/features/advanced-memory/index.d.ts.map +1 -0
  2386. package/packages/typescript/src/features/advanced-memory/index.js +26 -0
  2387. package/packages/typescript/src/features/advanced-memory/prompts.d.ts +2 -0
  2388. package/packages/typescript/src/features/advanced-memory/prompts.d.ts.map +1 -0
  2389. package/packages/typescript/src/features/advanced-memory/prompts.js +1 -0
  2390. package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts +3 -0
  2391. package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts.map +1 -0
  2392. package/packages/typescript/src/features/advanced-memory/providers/context-summary.js +85 -0
  2393. package/packages/typescript/src/features/advanced-memory/providers/index.d.ts +3 -0
  2394. package/packages/typescript/src/features/advanced-memory/providers/index.d.ts.map +1 -0
  2395. package/packages/typescript/src/features/advanced-memory/providers/index.js +2 -0
  2396. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts +3 -0
  2397. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts.map +1 -0
  2398. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.js +92 -0
  2399. package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts +5 -0
  2400. package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts.map +1 -0
  2401. package/packages/typescript/src/features/advanced-memory/schemas/index.js +3 -0
  2402. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts +10 -0
  2403. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts.map +1 -0
  2404. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.js +65 -0
  2405. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts +10 -0
  2406. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts.map +1 -0
  2407. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.js +45 -0
  2408. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts +10 -0
  2409. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts.map +1 -0
  2410. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.js +66 -0
  2411. package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts +38 -0
  2412. package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts.map +1 -0
  2413. package/packages/typescript/src/features/advanced-memory/services/memory-service.js +378 -0
  2414. package/packages/typescript/src/features/advanced-memory/trajectory.d.ts +10 -0
  2415. package/packages/typescript/src/features/advanced-memory/trajectory.d.ts.map +1 -0
  2416. package/packages/typescript/src/features/advanced-memory/trajectory.js +33 -0
  2417. package/packages/typescript/src/features/advanced-memory/types.d.ts +68 -0
  2418. package/packages/typescript/src/features/advanced-memory/types.d.ts.map +1 -0
  2419. package/packages/typescript/src/features/advanced-memory/types.js +6 -0
  2420. package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts +6 -0
  2421. package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts.map +1 -0
  2422. package/packages/typescript/src/features/advanced-planning/actions/chain-example.js +178 -0
  2423. package/packages/typescript/src/features/advanced-planning/index.d.ts +5 -0
  2424. package/packages/typescript/src/features/advanced-planning/index.d.ts.map +1 -0
  2425. package/packages/typescript/src/features/advanced-planning/index.js +20 -0
  2426. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts +3 -0
  2427. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts.map +1 -0
  2428. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.js +105 -0
  2429. package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts +77 -0
  2430. package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts.map +1 -0
  2431. package/packages/typescript/src/features/advanced-planning/services/planning-service.js +875 -0
  2432. package/packages/typescript/src/features/advanced-planning/types.d.ts +78 -0
  2433. package/packages/typescript/src/features/advanced-planning/types.d.ts.map +1 -0
  2434. package/packages/typescript/src/features/advanced-planning/types.js +1 -0
  2435. package/packages/typescript/src/features/autonomy/action.d.ts +14 -0
  2436. package/packages/typescript/src/features/autonomy/action.d.ts.map +1 -0
  2437. package/packages/typescript/src/features/autonomy/action.js +177 -0
  2438. package/packages/typescript/src/features/autonomy/execution-facade.d.ts +22 -0
  2439. package/packages/typescript/src/features/autonomy/execution-facade.d.ts.map +1 -0
  2440. package/packages/typescript/src/features/autonomy/execution-facade.js +150 -0
  2441. package/packages/typescript/src/features/autonomy/index.d.ts +11 -0
  2442. package/packages/typescript/src/features/autonomy/index.d.ts.map +1 -0
  2443. package/packages/typescript/src/features/autonomy/index.js +13 -0
  2444. package/packages/typescript/src/features/autonomy/providers.d.ts +21 -0
  2445. package/packages/typescript/src/features/autonomy/providers.d.ts.map +1 -0
  2446. package/packages/typescript/src/features/autonomy/providers.js +154 -0
  2447. package/packages/typescript/src/features/autonomy/routes.d.ts +11 -0
  2448. package/packages/typescript/src/features/autonomy/routes.d.ts.map +1 -0
  2449. package/packages/typescript/src/features/autonomy/routes.js +158 -0
  2450. package/packages/typescript/src/features/autonomy/service.d.ts +138 -0
  2451. package/packages/typescript/src/features/autonomy/service.d.ts.map +1 -0
  2452. package/packages/typescript/src/features/autonomy/service.js +813 -0
  2453. package/packages/typescript/src/features/autonomy/types.d.ts +31 -0
  2454. package/packages/typescript/src/features/autonomy/types.d.ts.map +1 -0
  2455. package/packages/typescript/src/features/autonomy/types.js +6 -0
  2456. package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts +4 -0
  2457. package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts.map +1 -0
  2458. package/packages/typescript/src/features/basic-capabilities/actions/choice.js +278 -0
  2459. package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts +3 -0
  2460. package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts.map +1 -0
  2461. package/packages/typescript/src/features/basic-capabilities/actions/ignore.js +23 -0
  2462. package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts +10 -0
  2463. package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts.map +1 -0
  2464. package/packages/typescript/src/features/basic-capabilities/actions/index.js +9 -0
  2465. package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts +3 -0
  2466. package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts.map +1 -0
  2467. package/packages/typescript/src/features/basic-capabilities/actions/none.js +26 -0
  2468. package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts +3 -0
  2469. package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts.map +1 -0
  2470. package/packages/typescript/src/features/basic-capabilities/actions/reply.js +81 -0
  2471. package/packages/typescript/src/features/basic-capabilities/index.d.ts +109 -0
  2472. package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
  2473. package/packages/typescript/src/features/basic-capabilities/index.js +1033 -0
  2474. package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts +7 -0
  2475. package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts.map +1 -0
  2476. package/packages/typescript/src/features/basic-capabilities/providers/actionState.js +189 -0
  2477. package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts +35 -0
  2478. package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts.map +1 -0
  2479. package/packages/typescript/src/features/basic-capabilities/providers/actions.js +142 -0
  2480. package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts +20 -0
  2481. package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts.map +1 -0
  2482. package/packages/typescript/src/features/basic-capabilities/providers/attachments.js +94 -0
  2483. package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts +17 -0
  2484. package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts.map +1 -0
  2485. package/packages/typescript/src/features/basic-capabilities/providers/character.js +190 -0
  2486. package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts +11 -0
  2487. package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts.map +1 -0
  2488. package/packages/typescript/src/features/basic-capabilities/providers/choice.js +86 -0
  2489. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts +12 -0
  2490. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts.map +1 -0
  2491. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.js +50 -0
  2492. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts +11 -0
  2493. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts.map +1 -0
  2494. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.js +56 -0
  2495. package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts +7 -0
  2496. package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts.map +1 -0
  2497. package/packages/typescript/src/features/basic-capabilities/providers/entities.js +39 -0
  2498. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts +27 -0
  2499. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts.map +1 -0
  2500. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.js +107 -0
  2501. package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts +20 -0
  2502. package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts.map +1 -0
  2503. package/packages/typescript/src/features/basic-capabilities/providers/index.js +19 -0
  2504. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts +5 -0
  2505. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts.map +1 -0
  2506. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.js +20 -0
  2507. package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts +18 -0
  2508. package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts.map +1 -0
  2509. package/packages/typescript/src/features/basic-capabilities/providers/providers.js +75 -0
  2510. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts +14 -0
  2511. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts.map +1 -0
  2512. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.js +325 -0
  2513. package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts +12 -0
  2514. package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts.map +1 -0
  2515. package/packages/typescript/src/features/basic-capabilities/providers/time.js +36 -0
  2516. package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts +3 -0
  2517. package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts.map +1 -0
  2518. package/packages/typescript/src/features/basic-capabilities/providers/uiContext.js +48 -0
  2519. package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts +8 -0
  2520. package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts.map +1 -0
  2521. package/packages/typescript/src/features/basic-capabilities/providers/world.js +212 -0
  2522. package/packages/typescript/src/features/evaluator-doc-examples.d.ts +4 -0
  2523. package/packages/typescript/src/features/evaluator-doc-examples.d.ts.map +1 -0
  2524. package/packages/typescript/src/features/evaluator-doc-examples.js +13 -0
  2525. package/packages/typescript/src/features/index.d.ts +58 -0
  2526. package/packages/typescript/src/features/index.d.ts.map +1 -0
  2527. package/packages/typescript/src/features/index.js +148 -0
  2528. package/packages/typescript/src/features/knowledge/actions.d.ts +8 -0
  2529. package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
  2530. package/packages/typescript/src/features/knowledge/actions.js +735 -0
  2531. package/packages/typescript/src/features/knowledge/config.d.ts +5 -0
  2532. package/packages/typescript/src/features/knowledge/config.d.ts.map +1 -0
  2533. package/packages/typescript/src/features/knowledge/config.js +147 -0
  2534. package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts +53 -0
  2535. package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts.map +1 -0
  2536. package/packages/typescript/src/features/knowledge/ctx-embeddings.js +412 -0
  2537. package/packages/typescript/src/features/knowledge/docs-loader.d.ts +27 -0
  2538. package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
  2539. package/packages/typescript/src/features/knowledge/docs-loader.js +226 -0
  2540. package/packages/typescript/src/features/knowledge/document-processor.d.ts +27 -0
  2541. package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
  2542. package/packages/typescript/src/features/knowledge/document-processor.js +629 -0
  2543. package/packages/typescript/src/features/knowledge/documents-provider.d.ts +3 -0
  2544. package/packages/typescript/src/features/knowledge/documents-provider.d.ts.map +1 -0
  2545. package/packages/typescript/src/features/knowledge/documents-provider.js +112 -0
  2546. package/packages/typescript/src/features/knowledge/index.d.ts +17 -0
  2547. package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
  2548. package/packages/typescript/src/features/knowledge/index.js +30 -0
  2549. package/packages/typescript/src/features/knowledge/llm.d.ts +27 -0
  2550. package/packages/typescript/src/features/knowledge/llm.d.ts.map +1 -0
  2551. package/packages/typescript/src/features/knowledge/llm.js +444 -0
  2552. package/packages/typescript/src/features/knowledge/provider.d.ts +3 -0
  2553. package/packages/typescript/src/features/knowledge/provider.d.ts.map +1 -0
  2554. package/packages/typescript/src/features/knowledge/provider.js +114 -0
  2555. package/packages/typescript/src/features/knowledge/service.d.ts +83 -0
  2556. package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
  2557. package/packages/typescript/src/features/knowledge/service.js +648 -0
  2558. package/packages/typescript/src/features/knowledge/types.d.ts +162 -0
  2559. package/packages/typescript/src/features/knowledge/types.d.ts.map +1 -0
  2560. package/packages/typescript/src/features/knowledge/types.js +57 -0
  2561. package/packages/typescript/src/features/knowledge/url-ingest.d.ts +37 -0
  2562. package/packages/typescript/src/features/knowledge/url-ingest.d.ts.map +1 -0
  2563. package/packages/typescript/src/features/knowledge/url-ingest.js +490 -0
  2564. package/packages/typescript/src/features/knowledge/utils.d.ts +22 -0
  2565. package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
  2566. package/packages/typescript/src/features/knowledge/utils.js +388 -0
  2567. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts +3 -0
  2568. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts.map +1 -0
  2569. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.js +83 -0
  2570. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts +3 -0
  2571. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts.map +1 -0
  2572. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.js +88 -0
  2573. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts +14 -0
  2574. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts.map +1 -0
  2575. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.js +48 -0
  2576. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts +32 -0
  2577. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts.map +1 -0
  2578. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.js +518 -0
  2579. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts +16 -0
  2580. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts.map +1 -0
  2581. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.js +49 -0
  2582. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts +18 -0
  2583. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts.map +1 -0
  2584. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.js +59 -0
  2585. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts +14 -0
  2586. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts.map +1 -0
  2587. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.js +31 -0
  2588. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts +14 -0
  2589. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts.map +1 -0
  2590. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.js +51 -0
  2591. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts +15 -0
  2592. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts.map +1 -0
  2593. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.js +43 -0
  2594. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts +15 -0
  2595. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts.map +1 -0
  2596. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.js +52 -0
  2597. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts +15 -0
  2598. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts.map +1 -0
  2599. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.js +48 -0
  2600. package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts +25 -0
  2601. package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts.map +1 -0
  2602. package/packages/typescript/src/features/plugin-manager/actions/plugin.js +442 -0
  2603. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts +4 -0
  2604. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts.map +1 -0
  2605. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.js +265 -0
  2606. package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts +28 -0
  2607. package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
  2608. package/packages/typescript/src/features/plugin-manager/coreExtensions.js +54 -0
  2609. package/packages/typescript/src/features/plugin-manager/index.d.ts +27 -0
  2610. package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
  2611. package/packages/typescript/src/features/plugin-manager/index.js +50 -0
  2612. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts +5 -0
  2613. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts.map +1 -0
  2614. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.js +104 -0
  2615. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts +5 -0
  2616. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts.map +1 -0
  2617. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.js +105 -0
  2618. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts +5 -0
  2619. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts.map +1 -0
  2620. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.js +93 -0
  2621. package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts +9 -0
  2622. package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts.map +1 -0
  2623. package/packages/typescript/src/features/plugin-manager/providers/relevance.js +229 -0
  2624. package/packages/typescript/src/features/plugin-manager/security.d.ts +33 -0
  2625. package/packages/typescript/src/features/plugin-manager/security.d.ts.map +1 -0
  2626. package/packages/typescript/src/features/plugin-manager/security.js +80 -0
  2627. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +76 -0
  2628. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -0
  2629. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +489 -0
  2630. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts +31 -0
  2631. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts.map +1 -0
  2632. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.js +57 -0
  2633. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts +68 -0
  2634. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts.map +1 -0
  2635. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1004 -0
  2636. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts +84 -0
  2637. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts.map +1 -0
  2638. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.js +410 -0
  2639. package/packages/typescript/src/features/plugin-manager/types.d.ts +142 -0
  2640. package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -0
  2641. package/packages/typescript/src/features/plugin-manager/types.js +13 -0
  2642. package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts +4 -0
  2643. package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts.map +1 -0
  2644. package/packages/typescript/src/features/plugin-manager/utils/paths.js +32 -0
  2645. package/packages/typescript/src/features/secrets/actions/index.d.ts +7 -0
  2646. package/packages/typescript/src/features/secrets/actions/index.d.ts.map +1 -0
  2647. package/packages/typescript/src/features/secrets/actions/index.js +6 -0
  2648. package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts +12 -0
  2649. package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts.map +1 -0
  2650. package/packages/typescript/src/features/secrets/actions/manage-secret.js +289 -0
  2651. package/packages/typescript/src/features/secrets/actions/request-secret.d.ts +3 -0
  2652. package/packages/typescript/src/features/secrets/actions/request-secret.d.ts.map +1 -0
  2653. package/packages/typescript/src/features/secrets/actions/request-secret.js +123 -0
  2654. package/packages/typescript/src/features/secrets/actions/set-secret.d.ts +12 -0
  2655. package/packages/typescript/src/features/secrets/actions/set-secret.d.ts.map +1 -0
  2656. package/packages/typescript/src/features/secrets/actions/set-secret.js +241 -0
  2657. package/packages/typescript/src/features/secrets/crypto/encryption.d.ts +184 -0
  2658. package/packages/typescript/src/features/secrets/crypto/encryption.d.ts.map +1 -0
  2659. package/packages/typescript/src/features/secrets/crypto/encryption.js +373 -0
  2660. package/packages/typescript/src/features/secrets/crypto/index.d.ts +5 -0
  2661. package/packages/typescript/src/features/secrets/crypto/index.d.ts.map +1 -0
  2662. package/packages/typescript/src/features/secrets/crypto/index.js +16 -0
  2663. package/packages/typescript/src/features/secrets/index.d.ts +22 -0
  2664. package/packages/typescript/src/features/secrets/index.d.ts.map +1 -0
  2665. package/packages/typescript/src/features/secrets/index.js +24 -0
  2666. package/packages/typescript/src/features/secrets/onboarding/action.d.ts +12 -0
  2667. package/packages/typescript/src/features/secrets/onboarding/action.d.ts.map +1 -0
  2668. package/packages/typescript/src/features/secrets/onboarding/action.js +338 -0
  2669. package/packages/typescript/src/features/secrets/onboarding/config.d.ts +99 -0
  2670. package/packages/typescript/src/features/secrets/onboarding/config.d.ts.map +1 -0
  2671. package/packages/typescript/src/features/secrets/onboarding/config.js +240 -0
  2672. package/packages/typescript/src/features/secrets/onboarding/index.d.ts +13 -0
  2673. package/packages/typescript/src/features/secrets/onboarding/index.d.ts.map +1 -0
  2674. package/packages/typescript/src/features/secrets/onboarding/index.js +12 -0
  2675. package/packages/typescript/src/features/secrets/onboarding/provider.d.ts +16 -0
  2676. package/packages/typescript/src/features/secrets/onboarding/provider.d.ts.map +1 -0
  2677. package/packages/typescript/src/features/secrets/onboarding/provider.js +231 -0
  2678. package/packages/typescript/src/features/secrets/onboarding/service.d.ts +134 -0
  2679. package/packages/typescript/src/features/secrets/onboarding/service.d.ts.map +1 -0
  2680. package/packages/typescript/src/features/secrets/onboarding/service.js +436 -0
  2681. package/packages/typescript/src/features/secrets/plugin.d.ts +70 -0
  2682. package/packages/typescript/src/features/secrets/plugin.d.ts.map +1 -0
  2683. package/packages/typescript/src/features/secrets/plugin.js +87 -0
  2684. package/packages/typescript/src/features/secrets/providers/index.d.ts +5 -0
  2685. package/packages/typescript/src/features/secrets/providers/index.d.ts.map +1 -0
  2686. package/packages/typescript/src/features/secrets/providers/index.js +4 -0
  2687. package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts +22 -0
  2688. package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts.map +1 -0
  2689. package/packages/typescript/src/features/secrets/providers/secrets-status.js +160 -0
  2690. package/packages/typescript/src/features/secrets/services/index.d.ts +7 -0
  2691. package/packages/typescript/src/features/secrets/services/index.d.ts.map +1 -0
  2692. package/packages/typescript/src/features/secrets/services/index.js +5 -0
  2693. package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts +182 -0
  2694. package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts.map +1 -0
  2695. package/packages/typescript/src/features/secrets/services/plugin-activator.js +617 -0
  2696. package/packages/typescript/src/features/secrets/services/secrets.d.ts +183 -0
  2697. package/packages/typescript/src/features/secrets/services/secrets.d.ts.map +1 -0
  2698. package/packages/typescript/src/features/secrets/services/secrets.js +566 -0
  2699. package/packages/typescript/src/features/secrets/storage/character-store.d.ts +63 -0
  2700. package/packages/typescript/src/features/secrets/storage/character-store.d.ts.map +1 -0
  2701. package/packages/typescript/src/features/secrets/storage/character-store.js +265 -0
  2702. package/packages/typescript/src/features/secrets/storage/component-store.d.ts +47 -0
  2703. package/packages/typescript/src/features/secrets/storage/component-store.d.ts.map +1 -0
  2704. package/packages/typescript/src/features/secrets/storage/component-store.js +264 -0
  2705. package/packages/typescript/src/features/secrets/storage/index.d.ts +10 -0
  2706. package/packages/typescript/src/features/secrets/storage/index.d.ts.map +1 -0
  2707. package/packages/typescript/src/features/secrets/storage/index.js +8 -0
  2708. package/packages/typescript/src/features/secrets/storage/interface.d.ts +52 -0
  2709. package/packages/typescript/src/features/secrets/storage/interface.d.ts.map +1 -0
  2710. package/packages/typescript/src/features/secrets/storage/interface.js +92 -0
  2711. package/packages/typescript/src/features/secrets/storage/memory-store.d.ts +44 -0
  2712. package/packages/typescript/src/features/secrets/storage/memory-store.d.ts.map +1 -0
  2713. package/packages/typescript/src/features/secrets/storage/memory-store.js +142 -0
  2714. package/packages/typescript/src/features/secrets/storage/world-store.d.ts +52 -0
  2715. package/packages/typescript/src/features/secrets/storage/world-store.d.ts.map +1 -0
  2716. package/packages/typescript/src/features/secrets/storage/world-store.js +292 -0
  2717. package/packages/typescript/src/features/secrets/types.d.ts +438 -0
  2718. package/packages/typescript/src/features/secrets/types.d.ts.map +1 -0
  2719. package/packages/typescript/src/features/secrets/types.js +57 -0
  2720. package/packages/typescript/src/features/secrets/validation.d.ts +33 -0
  2721. package/packages/typescript/src/features/secrets/validation.d.ts.map +1 -0
  2722. package/packages/typescript/src/features/secrets/validation.js +389 -0
  2723. package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts +10 -0
  2724. package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts.map +1 -0
  2725. package/packages/typescript/src/features/shared/schedule-follow-up-response.js +49 -0
  2726. package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts +289 -0
  2727. package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
  2728. package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1432 -0
  2729. package/packages/typescript/src/features/trajectories/action-interceptor.d.ts +23 -0
  2730. package/packages/typescript/src/features/trajectories/action-interceptor.d.ts.map +1 -0
  2731. package/packages/typescript/src/features/trajectories/action-interceptor.js +178 -0
  2732. package/packages/typescript/src/features/trajectories/art-format.d.ts +32 -0
  2733. package/packages/typescript/src/features/trajectories/art-format.d.ts.map +1 -0
  2734. package/packages/typescript/src/features/trajectories/art-format.js +221 -0
  2735. package/packages/typescript/src/features/trajectories/export.d.ts +40 -0
  2736. package/packages/typescript/src/features/trajectories/export.d.ts.map +1 -0
  2737. package/packages/typescript/src/features/trajectories/export.js +99 -0
  2738. package/packages/typescript/src/features/trajectories/game-rewards.d.ts +14 -0
  2739. package/packages/typescript/src/features/trajectories/game-rewards.d.ts.map +1 -0
  2740. package/packages/typescript/src/features/trajectories/game-rewards.js +20 -0
  2741. package/packages/typescript/src/features/trajectories/index.d.ts +24 -0
  2742. package/packages/typescript/src/features/trajectories/index.d.ts.map +1 -0
  2743. package/packages/typescript/src/features/trajectories/index.js +332 -0
  2744. package/packages/typescript/src/features/trajectories/integration.d.ts +59 -0
  2745. package/packages/typescript/src/features/trajectories/integration.d.ts.map +1 -0
  2746. package/packages/typescript/src/features/trajectories/integration.js +83 -0
  2747. package/packages/typescript/src/features/trajectories/reward-service.d.ts +24 -0
  2748. package/packages/typescript/src/features/trajectories/reward-service.d.ts.map +1 -0
  2749. package/packages/typescript/src/features/trajectories/reward-service.js +89 -0
  2750. package/packages/typescript/src/features/trajectories/types.d.ts +261 -0
  2751. package/packages/typescript/src/features/trajectories/types.d.ts.map +1 -0
  2752. package/packages/typescript/src/features/trajectories/types.js +1 -0
  2753. package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts +3 -0
  2754. package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts.map +1 -0
  2755. package/packages/typescript/src/features/trust/actions/evaluateTrust.js +230 -0
  2756. package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts +3 -0
  2757. package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts.map +1 -0
  2758. package/packages/typescript/src/features/trust/actions/hasTrustEngine.js +3 -0
  2759. package/packages/typescript/src/features/trust/actions/index.d.ts +6 -0
  2760. package/packages/typescript/src/features/trust/actions/index.d.ts.map +1 -0
  2761. package/packages/typescript/src/features/trust/actions/index.js +5 -0
  2762. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts +3 -0
  2763. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts.map +1 -0
  2764. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.js +194 -0
  2765. package/packages/typescript/src/features/trust/actions/requestElevation.d.ts +3 -0
  2766. package/packages/typescript/src/features/trust/actions/requestElevation.d.ts.map +1 -0
  2767. package/packages/typescript/src/features/trust/actions/requestElevation.js +170 -0
  2768. package/packages/typescript/src/features/trust/actions/roles.d.ts +3 -0
  2769. package/packages/typescript/src/features/trust/actions/roles.d.ts.map +1 -0
  2770. package/packages/typescript/src/features/trust/actions/roles.js +299 -0
  2771. package/packages/typescript/src/features/trust/actions/settings.d.ts +5 -0
  2772. package/packages/typescript/src/features/trust/actions/settings.d.ts.map +1 -0
  2773. package/packages/typescript/src/features/trust/actions/settings.js +616 -0
  2774. package/packages/typescript/src/features/trust/evaluators/index.d.ts +4 -0
  2775. package/packages/typescript/src/features/trust/evaluators/index.d.ts.map +1 -0
  2776. package/packages/typescript/src/features/trust/evaluators/index.js +3 -0
  2777. package/packages/typescript/src/features/trust/evaluators/reflection.d.ts +3 -0
  2778. package/packages/typescript/src/features/trust/evaluators/reflection.d.ts.map +1 -0
  2779. package/packages/typescript/src/features/trust/evaluators/reflection.js +319 -0
  2780. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts +3 -0
  2781. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts.map +1 -0
  2782. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.js +270 -0
  2783. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts +3 -0
  2784. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts.map +1 -0
  2785. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.js +201 -0
  2786. package/packages/typescript/src/features/trust/index.d.ts +23 -0
  2787. package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
  2788. package/packages/typescript/src/features/trust/index.js +96 -0
  2789. package/packages/typescript/src/features/trust/providers/adminTrust.d.ts +3 -0
  2790. package/packages/typescript/src/features/trust/providers/adminTrust.d.ts.map +1 -0
  2791. package/packages/typescript/src/features/trust/providers/adminTrust.js +49 -0
  2792. package/packages/typescript/src/features/trust/providers/index.d.ts +6 -0
  2793. package/packages/typescript/src/features/trust/providers/index.d.ts.map +1 -0
  2794. package/packages/typescript/src/features/trust/providers/index.js +5 -0
  2795. package/packages/typescript/src/features/trust/providers/roles.d.ts +4 -0
  2796. package/packages/typescript/src/features/trust/providers/roles.d.ts.map +1 -0
  2797. package/packages/typescript/src/features/trust/providers/roles.js +142 -0
  2798. package/packages/typescript/src/features/trust/providers/securityStatus.d.ts +3 -0
  2799. package/packages/typescript/src/features/trust/providers/securityStatus.d.ts.map +1 -0
  2800. package/packages/typescript/src/features/trust/providers/securityStatus.js +110 -0
  2801. package/packages/typescript/src/features/trust/providers/settings.d.ts +3 -0
  2802. package/packages/typescript/src/features/trust/providers/settings.d.ts.map +1 -0
  2803. package/packages/typescript/src/features/trust/providers/settings.js +222 -0
  2804. package/packages/typescript/src/features/trust/providers/trustProfile.d.ts +3 -0
  2805. package/packages/typescript/src/features/trust/providers/trustProfile.d.ts.map +1 -0
  2806. package/packages/typescript/src/features/trust/providers/trustProfile.js +68 -0
  2807. package/packages/typescript/src/features/trust/schema.d.ts +1170 -0
  2808. package/packages/typescript/src/features/trust/schema.d.ts.map +1 -0
  2809. package/packages/typescript/src/features/trust/schema.js +108 -0
  2810. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts +40 -0
  2811. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts.map +1 -0
  2812. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.js +317 -0
  2813. package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts +62 -0
  2814. package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts.map +1 -0
  2815. package/packages/typescript/src/features/trust/services/CredentialProtector.js +417 -0
  2816. package/packages/typescript/src/features/trust/services/SecurityModule.d.ts +142 -0
  2817. package/packages/typescript/src/features/trust/services/SecurityModule.d.ts.map +1 -0
  2818. package/packages/typescript/src/features/trust/services/SecurityModule.js +1057 -0
  2819. package/packages/typescript/src/features/trust/services/SecurityStore.d.ts +53 -0
  2820. package/packages/typescript/src/features/trust/services/SecurityStore.d.ts.map +1 -0
  2821. package/packages/typescript/src/features/trust/services/SecurityStore.js +123 -0
  2822. package/packages/typescript/src/features/trust/services/TrustEngine.d.ts +81 -0
  2823. package/packages/typescript/src/features/trust/services/TrustEngine.d.ts.map +1 -0
  2824. package/packages/typescript/src/features/trust/services/TrustEngine.js +621 -0
  2825. package/packages/typescript/src/features/trust/services/adminContext.d.ts +3 -0
  2826. package/packages/typescript/src/features/trust/services/adminContext.d.ts.map +1 -0
  2827. package/packages/typescript/src/features/trust/services/adminContext.js +32 -0
  2828. package/packages/typescript/src/features/trust/services/db.d.ts +12 -0
  2829. package/packages/typescript/src/features/trust/services/db.d.ts.map +1 -0
  2830. package/packages/typescript/src/features/trust/services/db.js +10 -0
  2831. package/packages/typescript/src/features/trust/services/wrappers.d.ts +56 -0
  2832. package/packages/typescript/src/features/trust/services/wrappers.d.ts.map +1 -0
  2833. package/packages/typescript/src/features/trust/services/wrappers.js +124 -0
  2834. package/packages/typescript/src/features/trust/types/permissions.d.ts +185 -0
  2835. package/packages/typescript/src/features/trust/types/permissions.d.ts.map +1 -0
  2836. package/packages/typescript/src/features/trust/types/permissions.js +58 -0
  2837. package/packages/typescript/src/features/trust/types/security.d.ts +114 -0
  2838. package/packages/typescript/src/features/trust/types/security.d.ts.map +1 -0
  2839. package/packages/typescript/src/features/trust/types/security.js +15 -0
  2840. package/packages/typescript/src/features/trust/types/trust.d.ts +179 -0
  2841. package/packages/typescript/src/features/trust/types/trust.d.ts.map +1 -0
  2842. package/packages/typescript/src/features/trust/types/trust.js +25 -0
  2843. package/packages/typescript/src/generated/action-docs.d.ts +2887 -0
  2844. package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
  2845. package/packages/typescript/src/generated/action-docs.js +4115 -0
  2846. package/packages/typescript/src/generated/spec-helpers.d.ts +49 -0
  2847. package/packages/typescript/src/generated/spec-helpers.d.ts.map +1 -0
  2848. package/packages/typescript/src/generated/spec-helpers.js +78 -0
  2849. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +1093 -0
  2850. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
  2851. package/packages/typescript/src/i18n/generated/validation-keyword-data.js +1093 -0
  2852. package/packages/typescript/src/i18n/validation-keywords.d.ts +25 -0
  2853. package/packages/typescript/src/i18n/validation-keywords.d.ts.map +1 -0
  2854. package/packages/typescript/src/i18n/validation-keywords.js +112 -0
  2855. package/packages/typescript/src/identity-clusters.d.ts +4 -0
  2856. package/packages/typescript/src/identity-clusters.d.ts.map +1 -0
  2857. package/packages/typescript/src/identity-clusters.js +29 -0
  2858. package/packages/typescript/src/index.d.ts +12 -0
  2859. package/packages/typescript/src/index.d.ts.map +1 -0
  2860. package/packages/typescript/src/index.js +13 -0
  2861. package/packages/typescript/src/index.node.d.ts +84 -0
  2862. package/packages/typescript/src/index.node.d.ts.map +1 -0
  2863. package/packages/typescript/src/index.node.js +118 -0
  2864. package/packages/typescript/src/lifeops-passive-connectors.d.ts +7 -0
  2865. package/packages/typescript/src/lifeops-passive-connectors.d.ts.map +1 -0
  2866. package/packages/typescript/src/lifeops-passive-connectors.js +39 -0
  2867. package/packages/typescript/src/logger.d.ts +121 -0
  2868. package/packages/typescript/src/logger.d.ts.map +1 -0
  2869. package/packages/typescript/src/logger.js +1024 -0
  2870. package/packages/typescript/src/markdown/chunk.d.ts +50 -0
  2871. package/packages/typescript/src/markdown/chunk.d.ts.map +1 -0
  2872. package/packages/typescript/src/markdown/chunk.js +268 -0
  2873. package/packages/typescript/src/markdown/code-spans.d.ts +42 -0
  2874. package/packages/typescript/src/markdown/code-spans.d.ts.map +1 -0
  2875. package/packages/typescript/src/markdown/code-spans.js +89 -0
  2876. package/packages/typescript/src/markdown/fences.d.ts +50 -0
  2877. package/packages/typescript/src/markdown/fences.d.ts.map +1 -0
  2878. package/packages/typescript/src/markdown/fences.js +90 -0
  2879. package/packages/typescript/src/markdown/frontmatter.d.ts +24 -0
  2880. package/packages/typescript/src/markdown/frontmatter.d.ts.map +1 -0
  2881. package/packages/typescript/src/markdown/frontmatter.js +151 -0
  2882. package/packages/typescript/src/markdown/index.d.ts +18 -0
  2883. package/packages/typescript/src/markdown/index.d.ts.map +1 -0
  2884. package/packages/typescript/src/markdown/index.js +17 -0
  2885. package/packages/typescript/src/markdown/ir.d.ts +101 -0
  2886. package/packages/typescript/src/markdown/ir.d.ts.map +1 -0
  2887. package/packages/typescript/src/markdown/ir.js +789 -0
  2888. package/packages/typescript/src/media/fetch.d.ts +39 -0
  2889. package/packages/typescript/src/media/fetch.d.ts.map +1 -0
  2890. package/packages/typescript/src/media/fetch.js +205 -0
  2891. package/packages/typescript/src/media/index.d.ts +8 -0
  2892. package/packages/typescript/src/media/index.d.ts.map +1 -0
  2893. package/packages/typescript/src/media/index.js +7 -0
  2894. package/packages/typescript/src/media/mime.d.ts +51 -0
  2895. package/packages/typescript/src/media/mime.d.ts.map +1 -0
  2896. package/packages/typescript/src/media/mime.js +225 -0
  2897. package/packages/typescript/src/memory.d.ts +40 -0
  2898. package/packages/typescript/src/memory.d.ts.map +1 -0
  2899. package/packages/typescript/src/memory.js +58 -0
  2900. package/packages/typescript/src/network/fetch-guard.d.ts +34 -0
  2901. package/packages/typescript/src/network/fetch-guard.d.ts.map +1 -0
  2902. package/packages/typescript/src/network/fetch-guard.js +136 -0
  2903. package/packages/typescript/src/network/index.d.ts +11 -0
  2904. package/packages/typescript/src/network/index.d.ts.map +1 -0
  2905. package/packages/typescript/src/network/index.js +10 -0
  2906. package/packages/typescript/src/network/ssrf.d.ts +58 -0
  2907. package/packages/typescript/src/network/ssrf.d.ts.map +1 -0
  2908. package/packages/typescript/src/network/ssrf.js +252 -0
  2909. package/packages/typescript/src/optimization/ab-analysis.d.ts +3 -0
  2910. package/packages/typescript/src/optimization/ab-analysis.d.ts.map +1 -0
  2911. package/packages/typescript/src/optimization/ab-analysis.js +8 -0
  2912. package/packages/typescript/src/optimization-root-dir.d.ts +8 -0
  2913. package/packages/typescript/src/optimization-root-dir.d.ts.map +1 -0
  2914. package/packages/typescript/src/optimization-root-dir.js +14 -0
  2915. package/packages/typescript/src/plugin-lifecycle.d.ts +16 -0
  2916. package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -0
  2917. package/packages/typescript/src/plugin-lifecycle.js +590 -0
  2918. package/packages/typescript/src/plugin.d.ts +13 -0
  2919. package/packages/typescript/src/plugin.d.ts.map +1 -0
  2920. package/packages/typescript/src/plugin.js +341 -0
  2921. package/packages/typescript/src/plugins/index.d.ts +9 -0
  2922. package/packages/typescript/src/plugins/index.d.ts.map +1 -0
  2923. package/packages/typescript/src/plugins/index.js +8 -0
  2924. package/packages/typescript/src/plugins/native-features.d.ts +15 -0
  2925. package/packages/typescript/src/plugins/native-features.d.ts.map +1 -0
  2926. package/packages/typescript/src/plugins/native-features.js +59 -0
  2927. package/packages/typescript/src/prompts.d.ts +90 -0
  2928. package/packages/typescript/src/prompts.d.ts.map +1 -0
  2929. package/packages/typescript/src/prompts.js +1242 -0
  2930. package/packages/typescript/src/providers/onboarding-progress.d.ts +19 -0
  2931. package/packages/typescript/src/providers/onboarding-progress.d.ts.map +1 -0
  2932. package/packages/typescript/src/providers/onboarding-progress.js +268 -0
  2933. package/packages/typescript/src/providers/skill-eligibility.d.ts +28 -0
  2934. package/packages/typescript/src/providers/skill-eligibility.d.ts.map +1 -0
  2935. package/packages/typescript/src/providers/skill-eligibility.js +179 -0
  2936. package/packages/typescript/src/provisioning.d.ts +54 -0
  2937. package/packages/typescript/src/provisioning.d.ts.map +1 -0
  2938. package/packages/typescript/src/provisioning.js +209 -0
  2939. package/packages/typescript/src/roles.d.ts +70 -0
  2940. package/packages/typescript/src/roles.d.ts.map +1 -0
  2941. package/packages/typescript/src/roles.js +544 -0
  2942. package/packages/typescript/src/runtime-composition.d.ts +129 -0
  2943. package/packages/typescript/src/runtime-composition.d.ts.map +1 -0
  2944. package/packages/typescript/src/runtime-composition.js +335 -0
  2945. package/packages/typescript/src/runtime.d.ts +927 -0
  2946. package/packages/typescript/src/runtime.d.ts.map +1 -0
  2947. package/packages/typescript/src/runtime.js +6292 -0
  2948. package/packages/typescript/src/schemas/agent.d.ts +7 -0
  2949. package/packages/typescript/src/schemas/agent.d.ts.map +1 -0
  2950. package/packages/typescript/src/schemas/agent.js +112 -0
  2951. package/packages/typescript/src/schemas/cache.d.ts +7 -0
  2952. package/packages/typescript/src/schemas/cache.d.ts.map +1 -0
  2953. package/packages/typescript/src/schemas/cache.js +55 -0
  2954. package/packages/typescript/src/schemas/channel-participant.d.ts +7 -0
  2955. package/packages/typescript/src/schemas/channel-participant.d.ts.map +1 -0
  2956. package/packages/typescript/src/schemas/channel-participant.js +49 -0
  2957. package/packages/typescript/src/schemas/channel.d.ts +7 -0
  2958. package/packages/typescript/src/schemas/channel.d.ts.map +1 -0
  2959. package/packages/typescript/src/schemas/channel.js +94 -0
  2960. package/packages/typescript/src/schemas/character.d.ts +445 -0
  2961. package/packages/typescript/src/schemas/character.d.ts.map +1 -0
  2962. package/packages/typescript/src/schemas/character.js +309 -0
  2963. package/packages/typescript/src/schemas/component.d.ts +7 -0
  2964. package/packages/typescript/src/schemas/component.d.ts.map +1 -0
  2965. package/packages/typescript/src/schemas/component.js +156 -0
  2966. package/packages/typescript/src/schemas/embedding.d.ts +7 -0
  2967. package/packages/typescript/src/schemas/embedding.d.ts.map +1 -0
  2968. package/packages/typescript/src/schemas/embedding.js +89 -0
  2969. package/packages/typescript/src/schemas/entity-identity.d.ts +29 -0
  2970. package/packages/typescript/src/schemas/entity-identity.d.ts.map +1 -0
  2971. package/packages/typescript/src/schemas/entity-identity.js +334 -0
  2972. package/packages/typescript/src/schemas/entity.d.ts +7 -0
  2973. package/packages/typescript/src/schemas/entity.d.ts.map +1 -0
  2974. package/packages/typescript/src/schemas/entity.js +69 -0
  2975. package/packages/typescript/src/schemas/index.d.ts +77 -0
  2976. package/packages/typescript/src/schemas/index.d.ts.map +1 -0
  2977. package/packages/typescript/src/schemas/index.js +75 -0
  2978. package/packages/typescript/src/schemas/log.d.ts +6 -0
  2979. package/packages/typescript/src/schemas/log.d.ts.map +1 -0
  2980. package/packages/typescript/src/schemas/log.js +93 -0
  2981. package/packages/typescript/src/schemas/memory.d.ts +7 -0
  2982. package/packages/typescript/src/schemas/memory.d.ts.map +1 -0
  2983. package/packages/typescript/src/schemas/memory.js +167 -0
  2984. package/packages/typescript/src/schemas/message-server-agent.d.ts +7 -0
  2985. package/packages/typescript/src/schemas/message-server-agent.d.ts.map +1 -0
  2986. package/packages/typescript/src/schemas/message-server-agent.js +58 -0
  2987. package/packages/typescript/src/schemas/message-server.d.ts +6 -0
  2988. package/packages/typescript/src/schemas/message-server.d.ts.map +1 -0
  2989. package/packages/typescript/src/schemas/message-server.js +62 -0
  2990. package/packages/typescript/src/schemas/message.d.ts +7 -0
  2991. package/packages/typescript/src/schemas/message.d.ts.map +1 -0
  2992. package/packages/typescript/src/schemas/message.js +106 -0
  2993. package/packages/typescript/src/schemas/pairing-allowlist.d.ts +7 -0
  2994. package/packages/typescript/src/schemas/pairing-allowlist.d.ts.map +1 -0
  2995. package/packages/typescript/src/schemas/pairing-allowlist.js +76 -0
  2996. package/packages/typescript/src/schemas/pairing-request.d.ts +7 -0
  2997. package/packages/typescript/src/schemas/pairing-request.d.ts.map +1 -0
  2998. package/packages/typescript/src/schemas/pairing-request.js +96 -0
  2999. package/packages/typescript/src/schemas/participant.d.ts +6 -0
  3000. package/packages/typescript/src/schemas/participant.d.ts.map +1 -0
  3001. package/packages/typescript/src/schemas/participant.js +91 -0
  3002. package/packages/typescript/src/schemas/relationship.d.ts +7 -0
  3003. package/packages/typescript/src/schemas/relationship.d.ts.map +1 -0
  3004. package/packages/typescript/src/schemas/relationship.js +102 -0
  3005. package/packages/typescript/src/schemas/room.d.ts +6 -0
  3006. package/packages/typescript/src/schemas/room.d.ts.map +1 -0
  3007. package/packages/typescript/src/schemas/room.js +86 -0
  3008. package/packages/typescript/src/schemas/server.d.ts +7 -0
  3009. package/packages/typescript/src/schemas/server.d.ts.map +1 -0
  3010. package/packages/typescript/src/schemas/server.js +33 -0
  3011. package/packages/typescript/src/schemas/task.d.ts +6 -0
  3012. package/packages/typescript/src/schemas/task.d.ts.map +1 -0
  3013. package/packages/typescript/src/schemas/task.js +95 -0
  3014. package/packages/typescript/src/schemas/world.d.ts +6 -0
  3015. package/packages/typescript/src/schemas/world.d.ts.map +1 -0
  3016. package/packages/typescript/src/schemas/world.js +64 -0
  3017. package/packages/typescript/src/search.d.ts +359 -0
  3018. package/packages/typescript/src/search.d.ts.map +1 -0
  3019. package/packages/typescript/src/search.js +1580 -0
  3020. package/packages/typescript/src/secrets.d.ts +6 -0
  3021. package/packages/typescript/src/secrets.d.ts.map +1 -0
  3022. package/packages/typescript/src/secrets.js +28 -0
  3023. package/packages/typescript/src/security/external-content.d.ts +96 -0
  3024. package/packages/typescript/src/security/external-content.d.ts.map +1 -0
  3025. package/packages/typescript/src/security/external-content.js +253 -0
  3026. package/packages/typescript/src/security/index.d.ts +12 -0
  3027. package/packages/typescript/src/security/index.d.ts.map +1 -0
  3028. package/packages/typescript/src/security/index.js +13 -0
  3029. package/packages/typescript/src/security/redact.d.ts +111 -0
  3030. package/packages/typescript/src/security/redact.d.ts.map +1 -0
  3031. package/packages/typescript/src/security/redact.js +254 -0
  3032. package/packages/typescript/src/services/agentEvent.d.ts +297 -0
  3033. package/packages/typescript/src/services/agentEvent.d.ts.map +1 -0
  3034. package/packages/typescript/src/services/agentEvent.js +422 -0
  3035. package/packages/typescript/src/services/approval.d.ts +169 -0
  3036. package/packages/typescript/src/services/approval.d.ts.map +1 -0
  3037. package/packages/typescript/src/services/approval.js +399 -0
  3038. package/packages/typescript/src/services/embedding.d.ts +29 -0
  3039. package/packages/typescript/src/services/embedding.d.ts.map +1 -0
  3040. package/packages/typescript/src/services/embedding.js +211 -0
  3041. package/packages/typescript/src/services/followUp.d.ts +48 -0
  3042. package/packages/typescript/src/services/followUp.d.ts.map +1 -0
  3043. package/packages/typescript/src/services/followUp.js +333 -0
  3044. package/packages/typescript/src/services/hook.d.ts +85 -0
  3045. package/packages/typescript/src/services/hook.d.ts.map +1 -0
  3046. package/packages/typescript/src/services/hook.js +396 -0
  3047. package/packages/typescript/src/services/message.d.ts +147 -0
  3048. package/packages/typescript/src/services/message.d.ts.map +1 -0
  3049. package/packages/typescript/src/services/message.js +4967 -0
  3050. package/packages/typescript/src/services/onboarding-cli.d.ts +240 -0
  3051. package/packages/typescript/src/services/onboarding-cli.d.ts.map +1 -0
  3052. package/packages/typescript/src/services/onboarding-cli.js +688 -0
  3053. package/packages/typescript/src/services/onboarding-rpc.d.ts +225 -0
  3054. package/packages/typescript/src/services/onboarding-rpc.d.ts.map +1 -0
  3055. package/packages/typescript/src/services/onboarding-rpc.js +318 -0
  3056. package/packages/typescript/src/services/onboarding-state.d.ts +155 -0
  3057. package/packages/typescript/src/services/onboarding-state.d.ts.map +1 -0
  3058. package/packages/typescript/src/services/onboarding-state.js +706 -0
  3059. package/packages/typescript/src/services/optimized-prompt-resolver.d.ts +23 -0
  3060. package/packages/typescript/src/services/optimized-prompt-resolver.d.ts.map +1 -0
  3061. package/packages/typescript/src/services/optimized-prompt-resolver.js +49 -0
  3062. package/packages/typescript/src/services/optimized-prompt.d.ts +116 -0
  3063. package/packages/typescript/src/services/optimized-prompt.d.ts.map +1 -0
  3064. package/packages/typescript/src/services/optimized-prompt.js +254 -0
  3065. package/packages/typescript/src/services/pairing-integration.d.ts +96 -0
  3066. package/packages/typescript/src/services/pairing-integration.d.ts.map +1 -0
  3067. package/packages/typescript/src/services/pairing-integration.js +145 -0
  3068. package/packages/typescript/src/services/pairing-migration.d.ts +105 -0
  3069. package/packages/typescript/src/services/pairing-migration.d.ts.map +1 -0
  3070. package/packages/typescript/src/services/pairing-migration.js +283 -0
  3071. package/packages/typescript/src/services/pairing.d.ts +80 -0
  3072. package/packages/typescript/src/services/pairing.d.ts.map +1 -0
  3073. package/packages/typescript/src/services/pairing.js +253 -0
  3074. package/packages/typescript/src/services/plugin-hooks.d.ts +112 -0
  3075. package/packages/typescript/src/services/plugin-hooks.d.ts.map +1 -0
  3076. package/packages/typescript/src/services/plugin-hooks.js +164 -0
  3077. package/packages/typescript/src/services/relationships.d.ts +350 -0
  3078. package/packages/typescript/src/services/relationships.d.ts.map +1 -0
  3079. package/packages/typescript/src/services/relationships.js +1653 -0
  3080. package/packages/typescript/src/services/task-scheduler.d.ts +28 -0
  3081. package/packages/typescript/src/services/task-scheduler.d.ts.map +1 -0
  3082. package/packages/typescript/src/services/task-scheduler.js +89 -0
  3083. package/packages/typescript/src/services/task.d.ts +133 -0
  3084. package/packages/typescript/src/services/task.d.ts.map +1 -0
  3085. package/packages/typescript/src/services/task.js +559 -0
  3086. package/packages/typescript/src/services/tool-policy.d.ts +186 -0
  3087. package/packages/typescript/src/services/tool-policy.d.ts.map +1 -0
  3088. package/packages/typescript/src/services/tool-policy.js +332 -0
  3089. package/packages/typescript/src/services/trajectories.d.ts +34 -0
  3090. package/packages/typescript/src/services/trajectories.d.ts.map +1 -0
  3091. package/packages/typescript/src/services/trajectories.js +1 -0
  3092. package/packages/typescript/src/services.d.ts +61 -0
  3093. package/packages/typescript/src/services.d.ts.map +1 -0
  3094. package/packages/typescript/src/services.js +99 -0
  3095. package/packages/typescript/src/sessions/index.d.ts +17 -0
  3096. package/packages/typescript/src/sessions/index.d.ts.map +1 -0
  3097. package/packages/typescript/src/sessions/index.js +29 -0
  3098. package/packages/typescript/src/sessions/provider.d.ts +71 -0
  3099. package/packages/typescript/src/sessions/provider.d.ts.map +1 -0
  3100. package/packages/typescript/src/sessions/provider.js +243 -0
  3101. package/packages/typescript/src/sessions/session-key.d.ts +201 -0
  3102. package/packages/typescript/src/sessions/session-key.d.ts.map +1 -0
  3103. package/packages/typescript/src/sessions/session-key.js +398 -0
  3104. package/packages/typescript/src/sessions/types.d.ts +197 -0
  3105. package/packages/typescript/src/sessions/types.d.ts.map +1 -0
  3106. package/packages/typescript/src/sessions/types.js +68 -0
  3107. package/packages/typescript/src/settings.d.ts +99 -0
  3108. package/packages/typescript/src/settings.d.ts.map +1 -0
  3109. package/packages/typescript/src/settings.js +409 -0
  3110. package/packages/typescript/src/should-respond.d.ts +2 -0
  3111. package/packages/typescript/src/should-respond.d.ts.map +1 -0
  3112. package/packages/typescript/src/should-respond.js +16 -0
  3113. package/packages/typescript/src/streaming-context.d.ts +88 -0
  3114. package/packages/typescript/src/streaming-context.d.ts.map +1 -0
  3115. package/packages/typescript/src/streaming-context.js +160 -0
  3116. package/packages/typescript/src/trajectory-context.d.ts +39 -0
  3117. package/packages/typescript/src/trajectory-context.d.ts.map +1 -0
  3118. package/packages/typescript/src/trajectory-context.js +85 -0
  3119. package/packages/typescript/src/trajectory-utils.d.ts +73 -0
  3120. package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
  3121. package/packages/typescript/src/trajectory-utils.js +124 -0
  3122. package/packages/typescript/src/types/agent.d.ts +67 -0
  3123. package/packages/typescript/src/types/agent.d.ts.map +1 -0
  3124. package/packages/typescript/src/types/agent.js +5 -0
  3125. package/packages/typescript/src/types/agentEvent.d.ts +258 -0
  3126. package/packages/typescript/src/types/agentEvent.d.ts.map +1 -0
  3127. package/packages/typescript/src/types/agentEvent.js +11 -0
  3128. package/packages/typescript/src/types/channel-config.d.ts +167 -0
  3129. package/packages/typescript/src/types/channel-config.d.ts.map +1 -0
  3130. package/packages/typescript/src/types/channel-config.js +7 -0
  3131. package/packages/typescript/src/types/components.d.ts +363 -0
  3132. package/packages/typescript/src/types/components.d.ts.map +1 -0
  3133. package/packages/typescript/src/types/components.js +1 -0
  3134. package/packages/typescript/src/types/database.d.ts +1079 -0
  3135. package/packages/typescript/src/types/database.d.ts.map +1 -0
  3136. package/packages/typescript/src/types/database.js +9 -0
  3137. package/packages/typescript/src/types/environment.d.ts +73 -0
  3138. package/packages/typescript/src/types/environment.d.ts.map +1 -0
  3139. package/packages/typescript/src/types/environment.js +16 -0
  3140. package/packages/typescript/src/types/events.d.ts +403 -0
  3141. package/packages/typescript/src/types/events.d.ts.map +1 -0
  3142. package/packages/typescript/src/types/events.js +85 -0
  3143. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts +400 -0
  3144. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts.map +1 -0
  3145. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.js +72 -0
  3146. package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts +364 -0
  3147. package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts.map +1 -0
  3148. package/packages/typescript/src/types/generated/eliza/v1/components_pb.js +68 -0
  3149. package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts +694 -0
  3150. package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts.map +1 -0
  3151. package/packages/typescript/src/types/generated/eliza/v1/database_pb.js +172 -0
  3152. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts +299 -0
  3153. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts.map +1 -0
  3154. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.js +52 -0
  3155. package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts +746 -0
  3156. package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts.map +1 -0
  3157. package/packages/typescript/src/types/generated/eliza/v1/events_pb.js +357 -0
  3158. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts +799 -0
  3159. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts.map +1 -0
  3160. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.js +172 -0
  3161. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts +63 -0
  3162. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts.map +1 -0
  3163. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.js +18 -0
  3164. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts +290 -0
  3165. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts.map +1 -0
  3166. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.js +53 -0
  3167. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts +160 -0
  3168. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts.map +1 -0
  3169. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.js +88 -0
  3170. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts +214 -0
  3171. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts.map +1 -0
  3172. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.js +78 -0
  3173. package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts +653 -0
  3174. package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts.map +1 -0
  3175. package/packages/typescript/src/types/generated/eliza/v1/model_pb.js +237 -0
  3176. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts +147 -0
  3177. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts.map +1 -0
  3178. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.js +27 -0
  3179. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts +286 -0
  3180. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts.map +1 -0
  3181. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.js +86 -0
  3182. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts +263 -0
  3183. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts.map +1 -0
  3184. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.js +38 -0
  3185. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts +137 -0
  3186. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts.map +1 -0
  3187. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.js +27 -0
  3188. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts +2687 -0
  3189. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts.map +1 -0
  3190. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.js +392 -0
  3191. package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts +144 -0
  3192. package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts.map +1 -0
  3193. package/packages/typescript/src/types/generated/eliza/v1/service_pb.js +99 -0
  3194. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts +146 -0
  3195. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts.map +1 -0
  3196. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.js +32 -0
  3197. package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts +259 -0
  3198. package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts.map +1 -0
  3199. package/packages/typescript/src/types/generated/eliza/v1/state_pb.js +44 -0
  3200. package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts +120 -0
  3201. package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts.map +1 -0
  3202. package/packages/typescript/src/types/generated/eliza/v1/task_pb.js +53 -0
  3203. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts +205 -0
  3204. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts.map +1 -0
  3205. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.js +89 -0
  3206. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts +47 -0
  3207. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts.map +1 -0
  3208. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.js +16 -0
  3209. package/packages/typescript/src/types/hook.d.ts +338 -0
  3210. package/packages/typescript/src/types/hook.d.ts.map +1 -0
  3211. package/packages/typescript/src/types/hook.js +73 -0
  3212. package/packages/typescript/src/types/index.d.ts +42 -0
  3213. package/packages/typescript/src/types/index.d.ts.map +1 -0
  3214. package/packages/typescript/src/types/index.js +50 -0
  3215. package/packages/typescript/src/types/knowledge.d.ts +49 -0
  3216. package/packages/typescript/src/types/knowledge.d.ts.map +1 -0
  3217. package/packages/typescript/src/types/knowledge.js +1 -0
  3218. package/packages/typescript/src/types/memory-storage.d.ts +28 -0
  3219. package/packages/typescript/src/types/memory-storage.d.ts.map +1 -0
  3220. package/packages/typescript/src/types/memory-storage.js +13 -0
  3221. package/packages/typescript/src/types/memory.d.ts +517 -0
  3222. package/packages/typescript/src/types/memory.d.ts.map +1 -0
  3223. package/packages/typescript/src/types/memory.js +16 -0
  3224. package/packages/typescript/src/types/message-service.d.ts +178 -0
  3225. package/packages/typescript/src/types/message-service.d.ts.map +1 -0
  3226. package/packages/typescript/src/types/message-service.js +1 -0
  3227. package/packages/typescript/src/types/messaging.d.ts +358 -0
  3228. package/packages/typescript/src/types/messaging.d.ts.map +1 -0
  3229. package/packages/typescript/src/types/messaging.js +27 -0
  3230. package/packages/typescript/src/types/model.d.ts +697 -0
  3231. package/packages/typescript/src/types/model.d.ts.map +1 -0
  3232. package/packages/typescript/src/types/model.js +247 -0
  3233. package/packages/typescript/src/types/onboarding.d.ts +319 -0
  3234. package/packages/typescript/src/types/onboarding.d.ts.map +1 -0
  3235. package/packages/typescript/src/types/onboarding.js +97 -0
  3236. package/packages/typescript/src/types/pairing.d.ts +124 -0
  3237. package/packages/typescript/src/types/pairing.d.ts.map +1 -0
  3238. package/packages/typescript/src/types/pairing.js +32 -0
  3239. package/packages/typescript/src/types/payment.d.ts +67 -0
  3240. package/packages/typescript/src/types/payment.d.ts.map +1 -0
  3241. package/packages/typescript/src/types/payment.js +1 -0
  3242. package/packages/typescript/src/types/pipeline-hooks.d.ts +234 -0
  3243. package/packages/typescript/src/types/pipeline-hooks.d.ts.map +1 -0
  3244. package/packages/typescript/src/types/pipeline-hooks.js +111 -0
  3245. package/packages/typescript/src/types/plugin-manifest.d.ts +381 -0
  3246. package/packages/typescript/src/types/plugin-manifest.d.ts.map +1 -0
  3247. package/packages/typescript/src/types/plugin-manifest.js +10 -0
  3248. package/packages/typescript/src/types/plugin-store.d.ts +173 -0
  3249. package/packages/typescript/src/types/plugin-store.d.ts.map +1 -0
  3250. package/packages/typescript/src/types/plugin-store.js +1 -0
  3251. package/packages/typescript/src/types/plugin.d.ts +374 -0
  3252. package/packages/typescript/src/types/plugin.d.ts.map +1 -0
  3253. package/packages/typescript/src/types/plugin.js +1 -0
  3254. package/packages/typescript/src/types/primitives.d.ts +176 -0
  3255. package/packages/typescript/src/types/primitives.d.ts.map +1 -0
  3256. package/packages/typescript/src/types/primitives.js +41 -0
  3257. package/packages/typescript/src/types/prompt-batcher.d.ts +126 -0
  3258. package/packages/typescript/src/types/prompt-batcher.d.ts.map +1 -0
  3259. package/packages/typescript/src/types/prompt-batcher.js +6 -0
  3260. package/packages/typescript/src/types/prompt-optimization-hooks.d.ts +41 -0
  3261. package/packages/typescript/src/types/prompt-optimization-hooks.d.ts.map +1 -0
  3262. package/packages/typescript/src/types/prompt-optimization-hooks.js +1 -0
  3263. package/packages/typescript/src/types/prompt-optimization-score-card.d.ts +22 -0
  3264. package/packages/typescript/src/types/prompt-optimization-score-card.d.ts.map +1 -0
  3265. package/packages/typescript/src/types/prompt-optimization-score-card.js +72 -0
  3266. package/packages/typescript/src/types/prompt-optimization-trace.d.ts +53 -0
  3267. package/packages/typescript/src/types/prompt-optimization-trace.d.ts.map +1 -0
  3268. package/packages/typescript/src/types/prompt-optimization-trace.js +19 -0
  3269. package/packages/typescript/src/types/prompts.d.ts +39 -0
  3270. package/packages/typescript/src/types/prompts.d.ts.map +1 -0
  3271. package/packages/typescript/src/types/prompts.js +7 -0
  3272. package/packages/typescript/src/types/proto.d.ts +60 -0
  3273. package/packages/typescript/src/types/proto.d.ts.map +1 -0
  3274. package/packages/typescript/src/types/proto.js +53 -0
  3275. package/packages/typescript/src/types/runtime.d.ts +445 -0
  3276. package/packages/typescript/src/types/runtime.d.ts.map +1 -0
  3277. package/packages/typescript/src/types/runtime.js +1 -0
  3278. package/packages/typescript/src/types/schema-builder.d.ts +43 -0
  3279. package/packages/typescript/src/types/schema-builder.d.ts.map +1 -0
  3280. package/packages/typescript/src/types/schema-builder.js +16 -0
  3281. package/packages/typescript/src/types/schema.d.ts +99 -0
  3282. package/packages/typescript/src/types/schema.d.ts.map +1 -0
  3283. package/packages/typescript/src/types/schema.js +11 -0
  3284. package/packages/typescript/src/types/service-interfaces.d.ts +1200 -0
  3285. package/packages/typescript/src/types/service-interfaces.d.ts.map +1 -0
  3286. package/packages/typescript/src/types/service-interfaces.js +81 -0
  3287. package/packages/typescript/src/types/service.d.ts +175 -0
  3288. package/packages/typescript/src/types/service.d.ts.map +1 -0
  3289. package/packages/typescript/src/types/service.js +79 -0
  3290. package/packages/typescript/src/types/settings.d.ts +36 -0
  3291. package/packages/typescript/src/types/settings.d.ts.map +1 -0
  3292. package/packages/typescript/src/types/settings.js +1 -0
  3293. package/packages/typescript/src/types/state.d.ts +251 -0
  3294. package/packages/typescript/src/types/state.d.ts.map +1 -0
  3295. package/packages/typescript/src/types/state.js +1 -0
  3296. package/packages/typescript/src/types/streaming.d.ts +93 -0
  3297. package/packages/typescript/src/types/streaming.d.ts.map +1 -0
  3298. package/packages/typescript/src/types/streaming.js +21 -0
  3299. package/packages/typescript/src/types/task.d.ts +122 -0
  3300. package/packages/typescript/src/types/task.d.ts.map +1 -0
  3301. package/packages/typescript/src/types/task.js +1 -0
  3302. package/packages/typescript/src/types/tee.d.ts +3 -0
  3303. package/packages/typescript/src/types/tee.d.ts.map +1 -0
  3304. package/packages/typescript/src/types/tee.js +1 -0
  3305. package/packages/typescript/src/types/testing.d.ts +15 -0
  3306. package/packages/typescript/src/types/testing.d.ts.map +1 -0
  3307. package/packages/typescript/src/types/testing.js +1 -0
  3308. package/packages/typescript/src/types/tools.d.ts +166 -0
  3309. package/packages/typescript/src/types/tools.d.ts.map +1 -0
  3310. package/packages/typescript/src/types/tools.js +384 -0
  3311. package/packages/typescript/src/types/trigger.d.ts +44 -0
  3312. package/packages/typescript/src/types/trigger.d.ts.map +1 -0
  3313. package/packages/typescript/src/types/trigger.js +1 -0
  3314. package/packages/typescript/src/utils/action-results.d.ts +33 -0
  3315. package/packages/typescript/src/utils/action-results.d.ts.map +1 -0
  3316. package/packages/typescript/src/utils/action-results.js +169 -0
  3317. package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts +52 -0
  3318. package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts.map +1 -0
  3319. package/packages/typescript/src/utils/batch-queue/batch-processor.js +126 -0
  3320. package/packages/typescript/src/utils/batch-queue/index.d.ts +97 -0
  3321. package/packages/typescript/src/utils/batch-queue/index.d.ts.map +1 -0
  3322. package/packages/typescript/src/utils/batch-queue/index.js +175 -0
  3323. package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts +53 -0
  3324. package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts.map +1 -0
  3325. package/packages/typescript/src/utils/batch-queue/priority-queue.js +128 -0
  3326. package/packages/typescript/src/utils/batch-queue/semaphore.d.ts +18 -0
  3327. package/packages/typescript/src/utils/batch-queue/semaphore.d.ts.map +1 -0
  3328. package/packages/typescript/src/utils/batch-queue/semaphore.js +34 -0
  3329. package/packages/typescript/src/utils/batch-queue/task-drain.d.ts +57 -0
  3330. package/packages/typescript/src/utils/batch-queue/task-drain.d.ts.map +1 -0
  3331. package/packages/typescript/src/utils/batch-queue/task-drain.js +150 -0
  3332. package/packages/typescript/src/utils/batch-queue.d.ts +20 -0
  3333. package/packages/typescript/src/utils/batch-queue.d.ts.map +1 -0
  3334. package/packages/typescript/src/utils/batch-queue.js +19 -0
  3335. package/packages/typescript/src/utils/boolean.d.ts +50 -0
  3336. package/packages/typescript/src/utils/boolean.d.ts.map +1 -0
  3337. package/packages/typescript/src/utils/boolean.js +73 -0
  3338. package/packages/typescript/src/utils/buffer.d.ts +107 -0
  3339. package/packages/typescript/src/utils/buffer.d.ts.map +1 -0
  3340. package/packages/typescript/src/utils/buffer.js +229 -0
  3341. package/packages/typescript/src/utils/channel-utils.d.ts +274 -0
  3342. package/packages/typescript/src/utils/channel-utils.d.ts.map +1 -0
  3343. package/packages/typescript/src/utils/channel-utils.js +337 -0
  3344. package/packages/typescript/src/utils/context-catalog.d.ts +6 -0
  3345. package/packages/typescript/src/utils/context-catalog.d.ts.map +1 -0
  3346. package/packages/typescript/src/utils/context-catalog.js +264 -0
  3347. package/packages/typescript/src/utils/context-routing.d.ts +28 -0
  3348. package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
  3349. package/packages/typescript/src/utils/context-routing.js +294 -0
  3350. package/packages/typescript/src/utils/crypto-compat.d.ts +92 -0
  3351. package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
  3352. package/packages/typescript/src/utils/crypto-compat.js +373 -0
  3353. package/packages/typescript/src/utils/deterministic.d.ts +9 -0
  3354. package/packages/typescript/src/utils/deterministic.d.ts.map +1 -0
  3355. package/packages/typescript/src/utils/deterministic.js +70 -0
  3356. package/packages/typescript/src/utils/environment.d.ts +125 -0
  3357. package/packages/typescript/src/utils/environment.d.ts.map +1 -0
  3358. package/packages/typescript/src/utils/environment.js +290 -0
  3359. package/packages/typescript/src/utils/example-names.d.ts +3 -0
  3360. package/packages/typescript/src/utils/example-names.d.ts.map +1 -0
  3361. package/packages/typescript/src/utils/example-names.js +30 -0
  3362. package/packages/typescript/src/utils/json-llm.d.ts +17 -0
  3363. package/packages/typescript/src/utils/json-llm.d.ts.map +1 -0
  3364. package/packages/typescript/src/utils/json-llm.js +33 -0
  3365. package/packages/typescript/src/utils/message-text.d.ts +5 -0
  3366. package/packages/typescript/src/utils/message-text.d.ts.map +1 -0
  3367. package/packages/typescript/src/utils/message-text.js +24 -0
  3368. package/packages/typescript/src/utils/model-errors.d.ts +3 -0
  3369. package/packages/typescript/src/utils/model-errors.d.ts.map +1 -0
  3370. package/packages/typescript/src/utils/model-errors.js +23 -0
  3371. package/packages/typescript/src/utils/node.d.ts +8 -0
  3372. package/packages/typescript/src/utils/node.d.ts.map +1 -0
  3373. package/packages/typescript/src/utils/node.js +12 -0
  3374. package/packages/typescript/src/utils/paths.d.ts +97 -0
  3375. package/packages/typescript/src/utils/paths.d.ts.map +1 -0
  3376. package/packages/typescript/src/utils/paths.js +204 -0
  3377. package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts +163 -0
  3378. package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts.map +1 -0
  3379. package/packages/typescript/src/utils/prompt-batcher/batcher.js +896 -0
  3380. package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts +15 -0
  3381. package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts.map +1 -0
  3382. package/packages/typescript/src/utils/prompt-batcher/dispatcher.js +230 -0
  3383. package/packages/typescript/src/utils/prompt-batcher/shared.d.ts +66 -0
  3384. package/packages/typescript/src/utils/prompt-batcher/shared.d.ts.map +1 -0
  3385. package/packages/typescript/src/utils/prompt-batcher/shared.js +101 -0
  3386. package/packages/typescript/src/utils/prompt-batcher.d.ts +5 -0
  3387. package/packages/typescript/src/utils/prompt-batcher.d.ts.map +1 -0
  3388. package/packages/typescript/src/utils/prompt-batcher.js +4 -0
  3389. package/packages/typescript/src/utils/prompt-compression.d.ts +6 -0
  3390. package/packages/typescript/src/utils/prompt-compression.d.ts.map +1 -0
  3391. package/packages/typescript/src/utils/prompt-compression.js +14 -0
  3392. package/packages/typescript/src/utils/retry.d.ts +128 -0
  3393. package/packages/typescript/src/utils/retry.d.ts.map +1 -0
  3394. package/packages/typescript/src/utils/retry.js +190 -0
  3395. package/packages/typescript/src/utils/server-health.d.ts +35 -0
  3396. package/packages/typescript/src/utils/server-health.d.ts.map +1 -0
  3397. package/packages/typescript/src/utils/server-health.js +76 -0
  3398. package/packages/typescript/src/utils/slice-to-fit-budget.d.ts +12 -0
  3399. package/packages/typescript/src/utils/slice-to-fit-budget.d.ts.map +1 -0
  3400. package/packages/typescript/src/utils/slice-to-fit-budget.js +36 -0
  3401. package/packages/typescript/src/utils/state-dir.d.ts +19 -0
  3402. package/packages/typescript/src/utils/state-dir.d.ts.map +1 -0
  3403. package/packages/typescript/src/utils/state-dir.js +24 -0
  3404. package/packages/typescript/src/utils/streaming.d.ts +275 -0
  3405. package/packages/typescript/src/utils/streaming.d.ts.map +1 -0
  3406. package/packages/typescript/src/utils/streaming.js +774 -0
  3407. package/packages/typescript/src/utils/text-normalize.d.ts +23 -0
  3408. package/packages/typescript/src/utils/text-normalize.d.ts.map +1 -0
  3409. package/packages/typescript/src/utils/text-normalize.js +42 -0
  3410. package/packages/typescript/src/utils/text-splitting.d.ts +14 -0
  3411. package/packages/typescript/src/utils/text-splitting.d.ts.map +1 -0
  3412. package/packages/typescript/src/utils/text-splitting.js +66 -0
  3413. package/packages/typescript/src/utils/toon.d.ts +8 -0
  3414. package/packages/typescript/src/utils/toon.d.ts.map +1 -0
  3415. package/packages/typescript/src/utils/toon.js +347 -0
  3416. package/packages/typescript/src/utils/type-guards.d.ts +25 -0
  3417. package/packages/typescript/src/utils/type-guards.d.ts.map +1 -0
  3418. package/packages/typescript/src/utils/type-guards.js +73 -0
  3419. package/packages/typescript/src/utils/union-find.d.ts +30 -0
  3420. package/packages/typescript/src/utils/union-find.d.ts.map +1 -0
  3421. package/packages/typescript/src/utils/union-find.js +81 -0
  3422. package/packages/typescript/src/utils.d.ts +194 -0
  3423. package/packages/typescript/src/utils.d.ts.map +1 -0
  3424. package/packages/typescript/src/utils.js +1126 -0
  3425. package/packages/typescript/src/validation/index.d.ts +8 -0
  3426. package/packages/typescript/src/validation/index.d.ts.map +1 -0
  3427. package/packages/typescript/src/validation/index.js +7 -0
  3428. package/packages/typescript/src/validation/keywords.d.ts +26 -0
  3429. package/packages/typescript/src/validation/keywords.d.ts.map +1 -0
  3430. package/packages/typescript/src/validation/keywords.js +76 -0
  3431. package/packages/typescript/src/validation/secrets.d.ts +94 -0
  3432. package/packages/typescript/src/validation/secrets.d.ts.map +1 -0
  3433. package/packages/typescript/src/validation/secrets.js +399 -0
  3434. package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +9 -0
  3435. package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +1 -0
  3436. package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +8 -0
  3437. package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +14 -0
  3438. package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +1 -0
  3439. package/packages/ui/src/components/composites/chat/chat-bubble.js +7 -0
  3440. package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +14 -0
  3441. package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +1 -0
  3442. package/packages/ui/src/components/composites/chat/chat-composer-shell.js +25 -0
  3443. package/packages/ui/src/components/composites/chat/chat-composer.d.ts +45 -0
  3444. package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +1 -0
  3445. package/packages/ui/src/components/composites/chat/chat-composer.js +297 -0
  3446. package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +21 -0
  3447. package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +1 -0
  3448. package/packages/ui/src/components/composites/chat/chat-conversation-item.js +118 -0
  3449. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +22 -0
  3450. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +1 -0
  3451. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +14 -0
  3452. package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +19 -0
  3453. package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +1 -0
  3454. package/packages/ui/src/components/composites/chat/chat-empty-state.js +8 -0
  3455. package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +14 -0
  3456. package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +1 -0
  3457. package/packages/ui/src/components/composites/chat/chat-message-actions.js +10 -0
  3458. package/packages/ui/src/components/composites/chat/chat-message.d.ts +18 -0
  3459. package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +1 -0
  3460. package/packages/ui/src/components/composites/chat/chat-message.js +260 -0
  3461. package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +54 -0
  3462. package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +1 -0
  3463. package/packages/ui/src/components/composites/chat/chat-sidebar.js +64 -0
  3464. package/packages/ui/src/components/composites/chat/chat-source.d.ts +23 -0
  3465. package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +1 -0
  3466. package/packages/ui/src/components/composites/chat/chat-source.js +60 -0
  3467. package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +22 -0
  3468. package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +1 -0
  3469. package/packages/ui/src/components/composites/chat/chat-thread-layout.js +37 -0
  3470. package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +19 -0
  3471. package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +1 -0
  3472. package/packages/ui/src/components/composites/chat/chat-transcript.js +88 -0
  3473. package/packages/ui/src/components/composites/chat/chat-types.d.ts +91 -0
  3474. package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +1 -0
  3475. package/packages/ui/src/components/composites/chat/chat-types.js +1 -0
  3476. package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +10 -0
  3477. package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +1 -0
  3478. package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +10 -0
  3479. package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +13 -0
  3480. package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +1 -0
  3481. package/packages/ui/src/components/composites/chat/create-task-popover.js +44 -0
  3482. package/packages/ui/src/components/composites/chat/index.d.ts +17 -0
  3483. package/packages/ui/src/components/composites/chat/index.d.ts.map +1 -0
  3484. package/packages/ui/src/components/composites/chat/index.js +16 -0
  3485. package/packages/ui/src/components/composites/form-field/form-field.d.ts +14 -0
  3486. package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +1 -0
  3487. package/packages/ui/src/components/composites/form-field/form-field.js +8 -0
  3488. package/packages/ui/src/components/composites/form-field/index.d.ts +2 -0
  3489. package/packages/ui/src/components/composites/form-field/index.d.ts.map +1 -0
  3490. package/packages/ui/src/components/composites/form-field/index.js +1 -0
  3491. package/packages/ui/src/components/composites/index.d.ts +27 -0
  3492. package/packages/ui/src/components/composites/index.d.ts.map +1 -0
  3493. package/packages/ui/src/components/composites/index.js +26 -0
  3494. package/packages/ui/src/components/composites/page-panel/index.d.ts +29 -0
  3495. package/packages/ui/src/components/composites/page-panel/index.d.ts.map +1 -0
  3496. package/packages/ui/src/components/composites/page-panel/index.js +28 -0
  3497. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +4 -0
  3498. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +1 -0
  3499. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +60 -0
  3500. package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +3 -0
  3501. package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +1 -0
  3502. package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +15 -0
  3503. package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +5 -0
  3504. package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +1 -0
  3505. package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +9 -0
  3506. package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +7 -0
  3507. package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +1 -0
  3508. package/packages/ui/src/components/composites/page-panel/page-panel-header.js +30 -0
  3509. package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +3 -0
  3510. package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +1 -0
  3511. package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +13 -0
  3512. package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +7 -0
  3513. package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +1 -0
  3514. package/packages/ui/src/components/composites/page-panel/page-panel-root.js +17 -0
  3515. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +4 -0
  3516. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +1 -0
  3517. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +6 -0
  3518. package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +66 -0
  3519. package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +1 -0
  3520. package/packages/ui/src/components/composites/page-panel/page-panel-types.js +1 -0
  3521. package/packages/ui/src/components/composites/search/index.d.ts +3 -0
  3522. package/packages/ui/src/components/composites/search/index.d.ts.map +1 -0
  3523. package/packages/ui/src/components/composites/search/index.js +2 -0
  3524. package/packages/ui/src/components/composites/search/search-input.d.ts.map +1 -0
  3525. package/packages/ui/src/components/composites/search/search-input.js +10 -0
  3526. package/packages/ui/src/components/composites/search/searchbar.d.ts +18 -0
  3527. package/packages/ui/src/components/composites/search/searchbar.d.ts.map +1 -0
  3528. package/packages/ui/src/components/composites/search/searchbar.js +25 -0
  3529. package/packages/ui/src/components/composites/sidebar/index.d.ts +11 -0
  3530. package/packages/ui/src/components/composites/sidebar/index.d.ts.map +1 -0
  3531. package/packages/ui/src/components/composites/sidebar/index.js +10 -0
  3532. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +15 -0
  3533. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +1 -0
  3534. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +292 -0
  3535. package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +4 -0
  3536. package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +1 -0
  3537. package/packages/ui/src/components/composites/sidebar/sidebar-body.js +7 -0
  3538. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +11 -0
  3539. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +1 -0
  3540. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +13 -0
  3541. package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +78 -0
  3542. package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -0
  3543. package/packages/ui/src/components/composites/sidebar/sidebar-content.js +94 -0
  3544. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +3 -0
  3545. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +1 -0
  3546. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +14 -0
  3547. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +3 -0
  3548. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +1 -0
  3549. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +6 -0
  3550. package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +9 -0
  3551. package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +1 -0
  3552. package/packages/ui/src/components/composites/sidebar/sidebar-header.js +6 -0
  3553. package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +3 -0
  3554. package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +1 -0
  3555. package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +18 -0
  3556. package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +4 -0
  3557. package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +1 -0
  3558. package/packages/ui/src/components/composites/sidebar/sidebar-root.js +491 -0
  3559. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +3 -0
  3560. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +1 -0
  3561. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +18 -0
  3562. package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +77 -0
  3563. package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +1 -0
  3564. package/packages/ui/src/components/composites/sidebar/sidebar-types.js +1 -0
  3565. package/packages/ui/src/components/composites/skills/index.d.ts +2 -0
  3566. package/packages/ui/src/components/composites/skills/index.d.ts.map +1 -0
  3567. package/packages/ui/src/components/composites/skills/index.js +1 -0
  3568. package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +16 -0
  3569. package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +1 -0
  3570. package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +7 -0
  3571. package/packages/ui/src/components/composites/trajectories/index.d.ts +5 -0
  3572. package/packages/ui/src/components/composites/trajectories/index.d.ts.map +1 -0
  3573. package/packages/ui/src/components/composites/trajectories/index.js +4 -0
  3574. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +13 -0
  3575. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +1 -0
  3576. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +13 -0
  3577. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +34 -0
  3578. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +1 -0
  3579. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +14 -0
  3580. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +26 -0
  3581. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +1 -0
  3582. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +46 -0
  3583. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +15 -0
  3584. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +1 -0
  3585. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +8 -0
  3586. package/packages/ui/src/components/primitives/index.d.ts +26 -0
  3587. package/packages/ui/src/components/primitives/index.d.ts.map +1 -0
  3588. package/packages/ui/src/components/primitives/index.js +25 -0
  3589. package/packages/ui/src/components/ui/admin-dialog.d.ts +50 -0
  3590. package/packages/ui/src/components/ui/admin-dialog.d.ts.map +1 -0
  3591. package/packages/ui/src/components/ui/admin-dialog.js +48 -0
  3592. package/packages/ui/src/components/ui/badge.d.ts +10 -0
  3593. package/packages/ui/src/components/ui/badge.d.ts.map +1 -0
  3594. package/packages/ui/src/components/ui/badge.js +21 -0
  3595. package/packages/ui/src/components/ui/banner.d.ts +17 -0
  3596. package/packages/ui/src/components/ui/banner.d.ts.map +1 -0
  3597. package/packages/ui/src/components/ui/banner.js +29 -0
  3598. package/packages/ui/src/components/ui/button.d.ts +13 -0
  3599. package/packages/ui/src/components/ui/button.d.ts.map +1 -0
  3600. package/packages/ui/src/components/ui/button.js +40 -0
  3601. package/packages/ui/src/components/ui/card.d.ts +15 -0
  3602. package/packages/ui/src/components/ui/card.d.ts.map +1 -0
  3603. package/packages/ui/src/components/ui/card.js +32 -0
  3604. package/packages/ui/src/components/ui/checkbox.d.ts.map +1 -0
  3605. package/packages/ui/src/components/ui/confirm-delete.d.ts +20 -0
  3606. package/packages/ui/src/components/ui/confirm-delete.d.ts.map +1 -0
  3607. package/packages/ui/src/components/ui/confirm-delete.js +16 -0
  3608. package/packages/ui/src/components/ui/confirm-dialog.d.ts +49 -0
  3609. package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +1 -0
  3610. package/packages/ui/src/components/ui/confirm-dialog.js +90 -0
  3611. package/packages/ui/src/components/ui/connection-status.d.ts +15 -0
  3612. package/packages/ui/src/components/ui/connection-status.d.ts.map +1 -0
  3613. package/packages/ui/src/components/ui/connection-status.js +25 -0
  3614. package/packages/ui/src/components/ui/copy-button.d.ts.map +1 -0
  3615. package/packages/ui/src/components/ui/dialog.d.ts +25 -0
  3616. package/packages/ui/src/components/ui/dialog.d.ts.map +1 -0
  3617. package/packages/ui/src/components/ui/dialog.js +23 -0
  3618. package/packages/ui/src/components/ui/drawer-sheet.d.ts +19 -0
  3619. package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +1 -0
  3620. package/packages/ui/src/components/ui/drawer-sheet.js +21 -0
  3621. package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +1 -0
  3622. package/packages/ui/src/components/ui/dropdown-menu.js +35 -0
  3623. package/packages/ui/src/components/ui/empty-state.d.ts.map +1 -0
  3624. package/packages/ui/src/components/ui/error-boundary.d.ts +22 -0
  3625. package/packages/ui/src/components/ui/error-boundary.d.ts.map +1 -0
  3626. package/packages/ui/src/components/ui/error-boundary.js +27 -0
  3627. package/packages/ui/src/components/ui/field-switch.d.ts +8 -0
  3628. package/packages/ui/src/components/ui/field-switch.d.ts.map +1 -0
  3629. package/packages/ui/src/components/ui/field-switch.js +10 -0
  3630. package/packages/ui/src/components/ui/field.d.ts +12 -0
  3631. package/packages/ui/src/components/ui/field.d.ts.map +1 -0
  3632. package/packages/ui/src/components/ui/field.js +21 -0
  3633. package/packages/ui/src/components/ui/form-select.d.ts +14 -0
  3634. package/packages/ui/src/components/ui/form-select.d.ts.map +1 -0
  3635. package/packages/ui/src/components/ui/form-select.js +9 -0
  3636. package/packages/ui/src/components/ui/grid.d.ts +10 -0
  3637. package/packages/ui/src/components/ui/grid.d.ts.map +1 -0
  3638. package/packages/ui/src/components/ui/grid.js +31 -0
  3639. package/packages/ui/src/components/ui/input.d.ts +12 -0
  3640. package/packages/ui/src/components/ui/input.d.ts.map +1 -0
  3641. package/packages/ui/src/components/ui/input.js +29 -0
  3642. package/packages/ui/src/components/ui/label.d.ts +5 -0
  3643. package/packages/ui/src/components/ui/label.d.ts.map +1 -0
  3644. package/packages/ui/src/components/ui/label.js +10 -0
  3645. package/packages/ui/src/components/ui/new-action-button.d.ts +7 -0
  3646. package/packages/ui/src/components/ui/new-action-button.d.ts.map +1 -0
  3647. package/packages/ui/src/components/ui/new-action-button.js +13 -0
  3648. package/packages/ui/src/components/ui/popover.d.ts.map +1 -0
  3649. package/packages/ui/src/components/ui/save-footer.d.ts.map +1 -0
  3650. package/packages/ui/src/components/ui/save-footer.js +10 -0
  3651. package/packages/ui/src/components/ui/section-card.d.ts.map +1 -0
  3652. package/packages/ui/src/components/ui/section-card.js +10 -0
  3653. package/packages/ui/src/components/ui/segmented-control.d.ts +18 -0
  3654. package/packages/ui/src/components/ui/segmented-control.d.ts.map +1 -0
  3655. package/packages/ui/src/components/ui/segmented-control.js +10 -0
  3656. package/packages/ui/src/components/ui/select.d.ts.map +1 -0
  3657. package/packages/ui/src/components/ui/select.js +27 -0
  3658. package/packages/ui/src/components/ui/separator.d.ts.map +1 -0
  3659. package/packages/ui/src/components/ui/settings-controls.d.ts +41 -0
  3660. package/packages/ui/src/components/ui/settings-controls.d.ts.map +1 -0
  3661. package/packages/ui/src/components/ui/settings-controls.js +60 -0
  3662. package/packages/ui/src/components/ui/skeleton.d.ts.map +1 -0
  3663. package/packages/ui/src/components/ui/skeleton.js +24 -0
  3664. package/packages/ui/src/components/ui/slider.d.ts.map +1 -0
  3665. package/packages/ui/src/components/ui/slider.js +7 -0
  3666. package/packages/ui/src/components/ui/sonner.d.ts +2 -0
  3667. package/packages/ui/src/components/ui/sonner.d.ts.map +1 -0
  3668. package/packages/ui/src/components/ui/sonner.js +1 -0
  3669. package/packages/ui/src/components/ui/spinner.d.ts.map +1 -0
  3670. package/packages/ui/src/components/ui/stack.d.ts +11 -0
  3671. package/packages/ui/src/components/ui/stack.d.ts.map +1 -0
  3672. package/packages/ui/src/components/ui/stack.js +40 -0
  3673. package/packages/ui/src/components/ui/status-badge.d.ts +27 -0
  3674. package/packages/ui/src/components/ui/status-badge.d.ts.map +1 -0
  3675. package/packages/ui/src/components/ui/status-badge.js +70 -0
  3676. package/packages/ui/src/components/ui/switch.d.ts.map +1 -0
  3677. package/packages/ui/src/components/ui/switch.js +7 -0
  3678. package/packages/ui/src/components/ui/tabs.d.ts.map +1 -0
  3679. package/packages/ui/src/components/ui/tabs.js +12 -0
  3680. package/packages/ui/src/components/ui/tag-editor.d.ts +12 -0
  3681. package/packages/ui/src/components/ui/tag-editor.d.ts.map +1 -0
  3682. package/packages/ui/src/components/ui/tag-editor.js +34 -0
  3683. package/packages/ui/src/components/ui/tag-input.d.ts +3 -0
  3684. package/packages/ui/src/components/ui/tag-input.d.ts.map +1 -0
  3685. package/packages/ui/src/components/ui/tag-input.js +1 -0
  3686. package/packages/ui/src/components/ui/textarea.d.ts +12 -0
  3687. package/packages/ui/src/components/ui/textarea.d.ts.map +1 -0
  3688. package/packages/ui/src/components/ui/textarea.js +29 -0
  3689. package/packages/ui/src/components/ui/themed-select.d.ts +22 -0
  3690. package/packages/ui/src/components/ui/themed-select.d.ts.map +1 -0
  3691. package/packages/ui/src/components/ui/themed-select.js +137 -0
  3692. package/packages/ui/src/components/ui/tooltip-extended.d.ts +54 -0
  3693. package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +1 -0
  3694. package/packages/ui/src/components/ui/tooltip-extended.js +114 -0
  3695. package/packages/ui/src/components/ui/tooltip.d.ts +18 -0
  3696. package/packages/ui/src/components/ui/tooltip.d.ts.map +1 -0
  3697. package/packages/ui/src/components/ui/tooltip.js +13 -0
  3698. package/packages/ui/src/components/ui/typography.d.ts +15 -0
  3699. package/packages/ui/src/components/ui/typography.d.ts.map +1 -0
  3700. package/packages/ui/src/components/ui/typography.js +46 -0
  3701. package/packages/ui/src/hooks/index.d.ts +6 -0
  3702. package/packages/ui/src/hooks/index.d.ts.map +1 -0
  3703. package/packages/ui/src/hooks/index.js +5 -0
  3704. package/packages/ui/src/hooks/useClickOutside.d.ts +3 -0
  3705. package/packages/ui/src/hooks/useClickOutside.d.ts.map +1 -0
  3706. package/packages/ui/src/hooks/useClickOutside.js +22 -0
  3707. package/packages/ui/src/hooks/useDocumentVisibility.d.ts +3 -0
  3708. package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +1 -0
  3709. package/packages/ui/src/hooks/useDocumentVisibility.js +28 -0
  3710. package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +13 -0
  3711. package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
  3712. package/packages/ui/src/hooks/useKeyboardShortcuts.js +34 -0
  3713. package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +16 -0
  3714. package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +1 -0
  3715. package/packages/ui/src/hooks/useLinkedSidebarSelection.js +117 -0
  3716. package/packages/ui/src/hooks/useTimeout.d.ts +5 -0
  3717. package/packages/ui/src/hooks/useTimeout.d.ts.map +1 -0
  3718. package/packages/ui/src/hooks/useTimeout.js +26 -0
  3719. package/packages/ui/src/index.d.ts +8 -0
  3720. package/packages/ui/src/index.d.ts.map +1 -0
  3721. package/packages/ui/src/index.js +7 -0
  3722. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +11 -0
  3723. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +1 -0
  3724. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +37 -0
  3725. package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +2 -0
  3726. package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +1 -0
  3727. package/packages/ui/src/layouts/chat-panel-layout/index.js +1 -0
  3728. package/packages/ui/src/layouts/content-layout/content-layout.d.ts +21 -0
  3729. package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +1 -0
  3730. package/packages/ui/src/layouts/content-layout/content-layout.js +5 -0
  3731. package/packages/ui/src/layouts/content-layout/index.d.ts +2 -0
  3732. package/packages/ui/src/layouts/content-layout/index.d.ts.map +1 -0
  3733. package/packages/ui/src/layouts/content-layout/index.js +1 -0
  3734. package/packages/ui/src/layouts/index.d.ts +5 -0
  3735. package/packages/ui/src/layouts/index.d.ts.map +1 -0
  3736. package/packages/ui/src/layouts/index.js +4 -0
  3737. package/packages/ui/src/layouts/layout-test-utils.d.ts +6 -0
  3738. package/packages/ui/src/layouts/layout-test-utils.d.ts.map +1 -0
  3739. package/packages/ui/src/layouts/layout-test-utils.js +36 -0
  3740. package/packages/ui/src/layouts/page-layout/index.d.ts +5 -0
  3741. package/packages/ui/src/layouts/page-layout/index.d.ts.map +1 -0
  3742. package/packages/ui/src/layouts/page-layout/index.js +4 -0
  3743. package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +287 -0
  3744. package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +1 -0
  3745. package/packages/ui/src/layouts/page-layout/page-layout-header.js +8 -0
  3746. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +3 -0
  3747. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +1 -0
  3748. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +37 -0
  3749. package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +15 -0
  3750. package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +1 -0
  3751. package/packages/ui/src/layouts/page-layout/page-layout-types.js +1 -0
  3752. package/packages/ui/src/layouts/page-layout/page-layout.d.ts +3 -0
  3753. package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +1 -0
  3754. package/packages/ui/src/layouts/page-layout/page-layout.js +5 -0
  3755. package/packages/ui/src/layouts/workspace-layout/index.d.ts +4 -0
  3756. package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +1 -0
  3757. package/packages/ui/src/layouts/workspace-layout/index.js +3 -0
  3758. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +19 -0
  3759. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +1 -0
  3760. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +1 -0
  3761. package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +3 -0
  3762. package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -0
  3763. package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +65 -0
  3764. package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts +13 -0
  3765. package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts.map +1 -0
  3766. package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.js +5 -0
  3767. package/packages/ui/src/lib/floating-layers.d.ts +17 -0
  3768. package/packages/ui/src/lib/floating-layers.d.ts.map +1 -0
  3769. package/packages/ui/src/lib/floating-layers.js +20 -0
  3770. package/packages/ui/src/lib/utils.d.ts +3 -0
  3771. package/packages/ui/src/lib/utils.d.ts.map +1 -0
  3772. package/packages/ui/src/lib/utils.js +5 -0
  3773. package/packages/ui/src/stories/layout-story-fixtures.d.ts +14 -0
  3774. package/packages/ui/src/stories/layout-story-fixtures.d.ts.map +1 -0
  3775. package/packages/ui/src/stories/layout-story-fixtures.js +33 -0
  3776. package/packages/ui/src/types/onboarding.d.ts +8 -0
  3777. package/packages/ui/src/types/onboarding.d.ts.map +1 -0
  3778. package/packages/ui/src/types/onboarding.js +17 -0
  3779. package/plugins/plugin-browser-bridge/src/actions.d.ts +44 -0
  3780. package/plugins/plugin-browser-bridge/src/actions.d.ts.map +1 -0
  3781. package/plugins/plugin-browser-bridge/src/actions.js +234 -0
  3782. package/plugins/plugin-browser-bridge/src/contracts.d.ts +272 -0
  3783. package/plugins/plugin-browser-bridge/src/contracts.d.ts.map +1 -0
  3784. package/plugins/plugin-browser-bridge/src/contracts.js +48 -0
  3785. package/plugins/plugin-browser-bridge/src/index.d.ts +19 -0
  3786. package/plugins/plugin-browser-bridge/src/index.d.ts.map +1 -0
  3787. package/plugins/plugin-browser-bridge/src/index.js +18 -0
  3788. package/plugins/plugin-browser-bridge/src/packaging.d.ts +27 -0
  3789. package/plugins/plugin-browser-bridge/src/packaging.d.ts.map +1 -0
  3790. package/plugins/plugin-browser-bridge/src/packaging.js +503 -0
  3791. package/plugins/plugin-browser-bridge/src/plugin.d.ts +10 -0
  3792. package/plugins/plugin-browser-bridge/src/plugin.d.ts.map +1 -0
  3793. package/plugins/plugin-browser-bridge/src/plugin.js +140 -0
  3794. package/plugins/plugin-browser-bridge/src/routes.d.ts +37 -0
  3795. package/plugins/plugin-browser-bridge/src/routes.d.ts.map +1 -0
  3796. package/plugins/plugin-browser-bridge/src/routes.js +496 -0
  3797. package/plugins/plugin-browser-bridge/src/schema.d.ts +2250 -0
  3798. package/plugins/plugin-browser-bridge/src/schema.d.ts.map +1 -0
  3799. package/plugins/plugin-browser-bridge/src/schema.js +111 -0
  3800. package/plugins/plugin-browser-bridge/src/service.d.ts +28 -0
  3801. package/plugins/plugin-browser-bridge/src/service.d.ts.map +1 -0
  3802. package/plugins/plugin-browser-bridge/src/service.js +1 -0
  3803. package/styles/electrobun-mac-window-drag.css +94 -0
  3804. package/styles/theme.css +73 -0
  3805. package/README.md +0 -6
  3806. package/dist/components/ui/badge.d.ts +0 -10
  3807. package/dist/components/ui/badge.d.ts.map +0 -1
  3808. package/dist/components/ui/badge.js +0 -20
  3809. package/dist/components/ui/banner.d.ts +0 -18
  3810. package/dist/components/ui/banner.d.ts.map +0 -1
  3811. package/dist/components/ui/banner.js +0 -27
  3812. package/dist/components/ui/button.d.ts +0 -12
  3813. package/dist/components/ui/button.d.ts.map +0 -1
  3814. package/dist/components/ui/button.js +0 -33
  3815. package/dist/components/ui/card.d.ts +0 -9
  3816. package/dist/components/ui/card.d.ts.map +0 -1
  3817. package/dist/components/ui/card.js +0 -16
  3818. package/dist/components/ui/chat-atoms.d.ts +0 -26
  3819. package/dist/components/ui/chat-atoms.d.ts.map +0 -1
  3820. package/dist/components/ui/chat-atoms.js +0 -17
  3821. package/dist/components/ui/checkbox.d.ts.map +0 -1
  3822. package/dist/components/ui/confirm-delete.d.ts +0 -12
  3823. package/dist/components/ui/confirm-delete.d.ts.map +0 -1
  3824. package/dist/components/ui/confirm-delete.js +0 -13
  3825. package/dist/components/ui/confirm-dialog.d.ts +0 -24
  3826. package/dist/components/ui/confirm-dialog.d.ts.map +0 -1
  3827. package/dist/components/ui/confirm-dialog.js +0 -55
  3828. package/dist/components/ui/connection-status.d.ts +0 -9
  3829. package/dist/components/ui/connection-status.d.ts.map +0 -1
  3830. package/dist/components/ui/connection-status.js +0 -25
  3831. package/dist/components/ui/copy-button.d.ts.map +0 -1
  3832. package/dist/components/ui/dialog.d.ts +0 -20
  3833. package/dist/components/ui/dialog.d.ts.map +0 -1
  3834. package/dist/components/ui/dialog.js +0 -22
  3835. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  3836. package/dist/components/ui/dropdown-menu.js +0 -35
  3837. package/dist/components/ui/empty-state.d.ts.map +0 -1
  3838. package/dist/components/ui/error-boundary.d.ts +0 -18
  3839. package/dist/components/ui/error-boundary.d.ts.map +0 -1
  3840. package/dist/components/ui/error-boundary.js +0 -27
  3841. package/dist/components/ui/grid.d.ts +0 -11
  3842. package/dist/components/ui/grid.d.ts.map +0 -1
  3843. package/dist/components/ui/grid.js +0 -30
  3844. package/dist/components/ui/input.d.ts +0 -6
  3845. package/dist/components/ui/input.d.ts.map +0 -1
  3846. package/dist/components/ui/input.js +0 -8
  3847. package/dist/components/ui/label.d.ts +0 -6
  3848. package/dist/components/ui/label.d.ts.map +0 -1
  3849. package/dist/components/ui/label.js +0 -9
  3850. package/dist/components/ui/popover.d.ts.map +0 -1
  3851. package/dist/components/ui/save-footer.d.ts.map +0 -1
  3852. package/dist/components/ui/save-footer.js +0 -9
  3853. package/dist/components/ui/search-bar.d.ts +0 -17
  3854. package/dist/components/ui/search-bar.d.ts.map +0 -1
  3855. package/dist/components/ui/search-bar.js +0 -19
  3856. package/dist/components/ui/search-input.d.ts.map +0 -1
  3857. package/dist/components/ui/search-input.js +0 -9
  3858. package/dist/components/ui/section-card.d.ts.map +0 -1
  3859. package/dist/components/ui/section-card.js +0 -9
  3860. package/dist/components/ui/select.d.ts.map +0 -1
  3861. package/dist/components/ui/select.js +0 -26
  3862. package/dist/components/ui/separator.d.ts.map +0 -1
  3863. package/dist/components/ui/skeleton.d.ts.map +0 -1
  3864. package/dist/components/ui/skeleton.js +0 -25
  3865. package/dist/components/ui/slider.d.ts.map +0 -1
  3866. package/dist/components/ui/slider.js +0 -7
  3867. package/dist/components/ui/sonner.d.ts +0 -5
  3868. package/dist/components/ui/sonner.d.ts.map +0 -1
  3869. package/dist/components/ui/sonner.js +0 -15
  3870. package/dist/components/ui/spinner.d.ts.map +0 -1
  3871. package/dist/components/ui/stack.d.ts +0 -13
  3872. package/dist/components/ui/stack.d.ts.map +0 -1
  3873. package/dist/components/ui/stack.js +0 -39
  3874. package/dist/components/ui/status-badge.d.ts +0 -20
  3875. package/dist/components/ui/status-badge.d.ts.map +0 -1
  3876. package/dist/components/ui/status-badge.js +0 -41
  3877. package/dist/components/ui/switch.d.ts.map +0 -1
  3878. package/dist/components/ui/switch.js +0 -7
  3879. package/dist/components/ui/tabs.d.ts.map +0 -1
  3880. package/dist/components/ui/tabs.js +0 -12
  3881. package/dist/components/ui/tag-editor.d.ts +0 -24
  3882. package/dist/components/ui/tag-editor.d.ts.map +0 -1
  3883. package/dist/components/ui/tag-editor.js +0 -32
  3884. package/dist/components/ui/tag-input.d.ts +0 -19
  3885. package/dist/components/ui/tag-input.d.ts.map +0 -1
  3886. package/dist/components/ui/tag-input.js +0 -28
  3887. package/dist/components/ui/textarea.d.ts +0 -6
  3888. package/dist/components/ui/textarea.d.ts.map +0 -1
  3889. package/dist/components/ui/textarea.js +0 -8
  3890. package/dist/components/ui/themed-select.d.ts +0 -27
  3891. package/dist/components/ui/themed-select.d.ts.map +0 -1
  3892. package/dist/components/ui/themed-select.js +0 -57
  3893. package/dist/components/ui/tooltip-extended.d.ts +0 -76
  3894. package/dist/components/ui/tooltip-extended.d.ts.map +0 -1
  3895. package/dist/components/ui/tooltip-extended.js +0 -128
  3896. package/dist/components/ui/tooltip.d.ts +0 -8
  3897. package/dist/components/ui/tooltip.d.ts.map +0 -1
  3898. package/dist/components/ui/tooltip.js +0 -10
  3899. package/dist/components/ui/typography.d.ts +0 -17
  3900. package/dist/components/ui/typography.d.ts.map +0 -1
  3901. package/dist/components/ui/typography.js +0 -44
  3902. package/dist/index.d.ts +0 -42
  3903. package/dist/index.d.ts.map +0 -1
  3904. package/dist/index.js +0 -43
  3905. package/dist/lib/button-styles.d.ts +0 -12
  3906. package/dist/lib/button-styles.d.ts.map +0 -1
  3907. package/dist/lib/button-styles.js +0 -11
  3908. package/dist/lib/utils.d.ts +0 -6
  3909. package/dist/lib/utils.d.ts.map +0 -1
  3910. package/dist/lib/utils.js +0 -8
  3911. package/dist/package.json +0 -65
  3912. package/dist/styles/theme.css +0 -193
  3913. package/src/styles/theme.css +0 -193
  3914. /package/{dist/components/ui → packages/ui/src/components/composites/search}/search-input.d.ts +0 -0
  3915. /package/{dist → packages/ui/src}/components/ui/checkbox.d.ts +0 -0
  3916. /package/{dist → packages/ui/src}/components/ui/checkbox.js +0 -0
  3917. /package/{dist → packages/ui/src}/components/ui/copy-button.d.ts +0 -0
  3918. /package/{dist → packages/ui/src}/components/ui/copy-button.js +0 -0
  3919. /package/{dist → packages/ui/src}/components/ui/dropdown-menu.d.ts +0 -0
  3920. /package/{dist → packages/ui/src}/components/ui/empty-state.d.ts +0 -0
  3921. /package/{dist → packages/ui/src}/components/ui/empty-state.js +0 -0
  3922. /package/{dist → packages/ui/src}/components/ui/popover.d.ts +0 -0
  3923. /package/{dist → packages/ui/src}/components/ui/popover.js +0 -0
  3924. /package/{dist → packages/ui/src}/components/ui/save-footer.d.ts +0 -0
  3925. /package/{dist → packages/ui/src}/components/ui/section-card.d.ts +0 -0
  3926. /package/{dist → packages/ui/src}/components/ui/select.d.ts +0 -0
  3927. /package/{dist → packages/ui/src}/components/ui/separator.d.ts +0 -0
  3928. /package/{dist → packages/ui/src}/components/ui/separator.js +0 -0
  3929. /package/{dist → packages/ui/src}/components/ui/skeleton.d.ts +0 -0
  3930. /package/{dist → packages/ui/src}/components/ui/slider.d.ts +0 -0
  3931. /package/{dist → packages/ui/src}/components/ui/spinner.d.ts +0 -0
  3932. /package/{dist → packages/ui/src}/components/ui/spinner.js +0 -0
  3933. /package/{dist → packages/ui/src}/components/ui/switch.d.ts +0 -0
  3934. /package/{dist → packages/ui/src}/components/ui/tabs.d.ts +0 -0
@@ -0,0 +1,3227 @@
1
+ /**
2
+ * REST API server for the Eliza Control UI.
3
+ *
4
+ * Exposes HTTP endpoints that the UI frontend expects, backed by the
5
+ * elizaOS AgentRuntime. Default port: 2138. In dev mode, the Vite UI
6
+ * dev server proxies /api and /ws here (see eliza/packages/app-core/scripts/dev-ui.mjs).
7
+ */
8
+ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
9
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
10
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
11
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
12
+ });
13
+ }
14
+ return path;
15
+ };
16
+ import crypto from "node:crypto";
17
+ // dns/promises moved to server-helpers-mcp.ts
18
+ import fs from "node:fs";
19
+ import http from "node:http";
20
+ import { createRequire } from "node:module";
21
+ function tokenMatches(expected, provided) {
22
+ const expectedBuf = Buffer.from(expected);
23
+ const providedBuf = Buffer.from(provided);
24
+ return (expectedBuf.length === providedBuf.length &&
25
+ crypto.timingSafeEqual(expectedBuf, providedBuf));
26
+ }
27
+ const MAX_BODY_BYTES = 1024 * 1024; // 1 MB
28
+ import os from "node:os";
29
+ import path from "node:path";
30
+ // Discord local routes extracted to @elizaos/plugin-discord (setup-routes.ts)
31
+ import { DropService, setElizaMakerDropService } from "@elizaos/app-elizamaker";
32
+ import { handleKnowledgeRoutes } from "@elizaos/app-knowledge/routes";
33
+ import { ensurePrivyWalletsForCustomUser, isPrivyWalletProvisioningEnabled, } from "@elizaos/app-steward/services/privy-wallets";
34
+ import { wireCoordinatorBridgesWhenReady } from "@elizaos/app-task-coordinator/api/coordinator-wiring";
35
+ // Phase 2 extraction: LifeOps routes → app-lifeops/src/routes/plugin.ts (lifeopsPlugin)
36
+ // import { handleWalletTradeExecuteRoute } from "./wallet-trade-routes.js";
37
+ // import {
38
+ // loadWalletTradingProfile,
39
+ // recordWalletTradeLedgerEntry,
40
+ // updateWalletTradeLedgerEntryStatus,
41
+ // } from "./wallet-trading-profile.js";
42
+ // Phase 2 extraction: Website-blocker routes → app-lifeops/src/routes/plugin.ts (lifeopsPlugin)
43
+ import { handleTrainingRoutes, handleTrajectoryRoute, } from "@elizaos/app-training/routes";
44
+ import { logger, stringToUuid, } from "@elizaos/core";
45
+ import { credTypesForConnector, getStylePresets, normalizeCharacterLanguage, resolveApiBindHost, resolveServerOnlyPort, resolveStylePresetByAvatarIndex, } from "@elizaos/shared";
46
+ import { WebSocketServer } from "ws";
47
+ import { getGlobalAwarenessRegistry } from "../awareness/registry.js";
48
+ import { loadElizaConfig, saveElizaConfig, } from "../config/config.js";
49
+ import { resolveModelsCacheDir, resolveStateDir } from "../config/paths.js";
50
+ import { isStreamingDestinationConfigured } from "../config/plugin-auto-enable.js";
51
+ import { CharacterSchema } from "../config/zod-schema.js";
52
+ // ONBOARDING_CLOUD_PROVIDER_OPTIONS, ONBOARDING_PROVIDER_CATALOG moved to server-helpers-config.ts
53
+ import { createIntegrationTelemetrySpan } from "../diagnostics/integration-observability.js";
54
+ import { validateX402Startup } from "../middleware/x402/startup-validator.js";
55
+ import { resolveDefaultAgentWorkspaceDir } from "../providers/workspace.js";
56
+ import { getAgentEventService, } from "../runtime/agent-event-service.js";
57
+ import { resolvePreferredProviderId, resolvePrimaryModel, } from "../runtime/eliza.js";
58
+ import { createColdStrategy, createHotStrategy, DefaultRuntimeOperationManager, defaultClassifier, getDefaultHealthChecker, getDefaultRepository, } from "../runtime/operations/index.js";
59
+ import { classifyRegistryPluginRelease } from "../runtime/release-plugin-policy.js";
60
+ import { AUDIT_EVENT_TYPES, AUDIT_SEVERITIES, getAuditFeedSize, queryAuditFeed, subscribeAuditFeed, } from "../security/audit-log.js";
61
+ import { isLoopbackHost } from "../security/network-policy.js";
62
+ import { AgentExportError, estimateExportSize, exportAgent, importAgent, } from "../services/agent-export.js";
63
+ import { AppManager } from "../services/app-manager.js";
64
+ import { registerClientChatSendHandler } from "../services/client-chat-sender.js";
65
+ import { createConfigPluginManager } from "../services/config-plugin-manager.js";
66
+ import { isCoreManagerLike, isPluginManagerLike, } from "../services/plugin-manager-types.js";
67
+ // signal-pairing: SignalPairingSession, sanitizeAccountId, signalLogout extracted to @elizaos/plugin-signal
68
+ import { signalAuthExists } from "../services/signal-pairing.js";
69
+ import { streamManager } from "../services/stream-manager.js";
70
+ import { clearTelegramAccountAuthState, clearTelegramAccountSession, TelegramAccountAuthSession, telegramAccountAuthStateExists, telegramAccountSessionExists, } from "../services/telegram-account-auth.js";
71
+ import { sanitizeAccountId as sanitizeWhatsAppAccountId, WhatsAppPairingSession, whatsappAuthExists, whatsappLogout, } from "../services/whatsapp-pairing.js";
72
+ // Telegram account auth: moved to @elizaos/plugin-telegram (account-setup-routes + account-auth-service).
73
+ // WhatsApp pairing: route handlers moved to @elizaos/plugin-whatsapp.
74
+ import { executeTriggerTask, getTriggerHealthSnapshot, getTriggerLimit, listTriggerTasks, readTriggerConfig, readTriggerRuns, TRIGGER_TASK_NAME, TRIGGER_TASK_TAGS, taskToTriggerSummary, triggersFeatureEnabled, } from "../triggers/runtime.js";
75
+ import { buildTriggerConfig, buildTriggerMetadata, DISABLED_TRIGGER_INTERVAL_MS, normalizeTriggerDraft, } from "../triggers/scheduling.js";
76
+ import { parseClampedInteger } from "../utils/number-parsing.js";
77
+ import { handleAccountsRoutes } from "./accounts-routes.js";
78
+ import { handleAgentAdminRoutes } from "./agent-admin-routes.js";
79
+ import { handleAgentLifecycleRoutes } from "./agent-lifecycle-routes.js";
80
+ import { detectRuntimeModel, resolveProviderFromModel } from "./agent-model.js";
81
+ import { handleAgentStatusRoutes } from "./agent-status-routes.js";
82
+ import { handleAgentTransferRoutes } from "./agent-transfer-routes.js";
83
+ import { handleAppPackageRoutes } from "./app-package-routes.js";
84
+ import { handleAppsRoutes } from "./apps-routes.js";
85
+ import { handleAuthRoutes } from "./auth-routes.js";
86
+ import { handleAvatarRoutes } from "./avatar-routes.js";
87
+ import { handleBlueBubblesRoute, resolveBlueBubblesWebhookPath, } from "./bluebubbles-routes.js";
88
+ import { handleBrowserWorkspaceRoutes } from "./browser-workspace-routes.js";
89
+ import { handleBugReportRoutes } from "./bug-report-routes.js";
90
+ import { handleCharacterRoutes } from "./character-routes.js";
91
+ import { handleChatRoutes, initSse as initSseFromChatRoutes, writeSseJson as writeSseJsonFromChatRoutes, } from "./chat-routes.js";
92
+ import { handleCloudBillingRoute } from "./cloud-billing-routes.js";
93
+ import { handleCloudCompatRoute } from "./cloud-compat-routes.js";
94
+ import { isCloudProvisionedContainer } from "./cloud-provisioning.js";
95
+ import { handleCloudRelayRoute } from "./cloud-relay-routes.js";
96
+ import { handleCloudRoute } from "./cloud-routes.js";
97
+ import { handleCloudStatusRoutes } from "./cloud-status-routes.js";
98
+ import { handleCodingAgentsFallback } from "./coding-agents-fallback-routes.js";
99
+ import { handleConfigRoutes } from "./config-routes.js";
100
+ import { ConnectorHealthMonitor } from "./connector-health.js";
101
+ import { handleConnectorRoutes } from "./connector-routes.js";
102
+ import { extractConversationMetadataFromRoom } from "./conversation-metadata.js";
103
+ import { handleConversationRoutes } from "./conversation-routes.js";
104
+ import { handleCuratedSkillsRoutes } from "./curated-skills-routes.js";
105
+ import { handleDatabaseRoute } from "./database.js";
106
+ import { handleDiagnosticsRoutes } from "./diagnostics-routes.js";
107
+ import { handleExperienceRoutes } from "./experience-routes.js";
108
+ import { handleHealthRoutes } from "./health-routes.js";
109
+ import { readJsonBody as parseJsonBody, readRequestBody, sendJson, sendJsonError, } from "./http-helpers.js";
110
+ // iMessage routes extracted to @elizaos/plugin-imessage setup-routes.ts (Plugin.routes)
111
+ // import { handleIMessageRoute } from "./imessage-routes.js";
112
+ import { handleInboxRoute } from "./inbox-routes.js";
113
+ import { handleMcpRoutes } from "./mcp-routes.js";
114
+ import { pushWithBatchEvict } from "./memory-bounds.js";
115
+ import { handleMemoryRoutes } from "./memory-routes.js";
116
+ import { handleMiscRoutes } from "./misc-routes.js";
117
+ import { handleModelsRoutes } from "./models-routes.js";
118
+ import { tryHandleMusicPlayerStatusFallback } from "./music-player-route-fallback.js";
119
+ import { handleOnboardingRoutes } from "./onboarding-routes.js";
120
+ import { handlePermissionRoutes } from "./permissions-routes.js";
121
+ import { handlePermissionsExtraRoutes } from "./permissions-routes-extra.js";
122
+ import { handlePluginRoutes } from "./plugin-routes.js";
123
+ import { handleProviderSwitchRoutes } from "./provider-switch-routes.js";
124
+ import { handleRegistryRoutes } from "./registry-routes.js";
125
+ import { RegistryService } from "./registry-service.js";
126
+ import { handleRelationshipsRoutes } from "./relationships-routes.js";
127
+ import { isPublicRuntimePluginRoute, tryHandleRuntimePluginRoute, } from "./runtime-plugin-routes.js";
128
+ import { handleSandboxRoute } from "./sandbox-routes.js";
129
+ import { cloneWithoutBlockedObjectKeys, decodePathComponent, getErrorMessage, hasPersistedOnboardingState, isUuidLike, patchTouchesProviderSelection, } from "./server-helpers.js";
130
+ // signal-routes: handleSignalRoute dispatch extracted to @elizaos/plugin-signal (setup-routes.ts)
131
+ import { applySignalQrOverride } from "./signal-routes.js";
132
+ import { discoverSkills } from "./skill-discovery-helpers.js";
133
+ import { handleSkillsRoutes } from "./skills-routes.js";
134
+ import { handleSubscriptionRoutes } from "./subscription-routes.js";
135
+ import { handleTelegramAccountRoute } from "./telegram-account-routes.js";
136
+ import { handleTriggerRoutes } from "./trigger-routes.js";
137
+ import { handleTtsRoutes } from "./tts-routes.js";
138
+ import { normalizeJsonRpcUrl, probeJsonRpcEndpoint, TxService, } from "./tx-service.js";
139
+ import { handleUpdateRoutes } from "./update-routes.js";
140
+ import {
141
+ // Balance/import/generate helpers moved to @elizaos/app-steward plugin routes.
142
+ // generateWalletKeys, setSolanaWalletEnv moved to server-helpers-config.ts
143
+ getWalletAddresses, initStewardWalletCache, } from "./wallet.js";
144
+ // Wallet dispatch moved to @elizaos/app-steward plugin routes.
145
+ // import { handleWalletBscRoutes } from "./wallet-bsc-routes.js";
146
+ import { EVM_PLUGIN_PACKAGE, resolveWalletAutomationMode as resolveAgentAutomationModeFromConfig, resolveWalletCapabilityStatus, } from "./wallet-capability.js";
147
+ import { handleWalletRoutes } from "./wallet-routes.js";
148
+ import { resolveWalletRpcReadiness } from "./wallet-rpc.js";
149
+ import { applyWhatsAppQrOverride, handleWhatsAppRoute, } from "./whatsapp-routes.js";
150
+ import { handleWorkbenchRoutes } from "./workbench-routes.js";
151
+ import { handleXRelayRoute } from "./x-relay-routes.js";
152
+ export { executeFallbackParsedActions, extractXmlParams, inferBalanceChainFromText, isBalanceIntent, maybeHandleDirectBinanceSkillRequest, parseFallbackActionBlocks, shouldForceCheckBalanceFallback, } from "./binance-skill-helpers.js";
153
+ export { isClientVisibleNoResponse, isNoResponsePlaceholder, stripAssistantStageDirections, } from "./chat-text-helpers.js";
154
+ // Re-export helper functions from server-helpers.ts for backwards compatibility
155
+ export { buildChatAttachments, buildUserMessages, buildWalletActionNotExecutedReply, cloneWithoutBlockedObjectKeys, decodePathComponent, findOwnPackageRoot, getErrorMessage, hasBlockedObjectKeyDeep, IMAGE_ONLY_CHAT_FALLBACK_PROMPT, isUuidLike, isWalletActionRequiredIntent, maybeAugmentChatMessageWithKnowledge, maybeAugmentChatMessageWithLanguage, maybeAugmentChatMessageWithWalletContext, normalizeIncomingChatPrompt, persistConversationRoomTitle, resolveAppUserName, resolveConversationGreetingText, resolveWalletModeGuidanceReply, trimWalletProgressPrefix, validateChatImages, WALLET_EXECUTION_INTENT_RE, WALLET_PROGRESS_ONLY_RE, } from "./server-helpers.js";
156
+ // NOTE: Internal usage of these functions is handled by individual `import`
157
+ // statements placed where each function was originally defined (see below).
158
+ // The `export { ... } from` above re-exports them for external consumers.
159
+ import { getInventoryProviderOptions, getModelOptions, getOrFetchAllProviders, getOrFetchProvider, paramKeyToCategory, providerCachePath, readProviderCache, } from "./model-provider-helpers.js";
160
+ import { AGENT_EVENT_ALLOWED_STREAMS, aggregateSecrets, BLOCKED_ENV_KEYS, CONFIG_WRITE_ALLOWED_TOP_KEYS, discoverInstalledPlugins, discoverPluginsFromManifest, getReleaseBundledPluginIds, maskValue, } from "./plugin-discovery-helpers.js";
161
+ const _nodeRequire = createRequire(import.meta.url);
162
+ // Dynamic import (not require) because the plugin is ESM-only and bun's
163
+ // createRequire cannot load ESM packages. Top-level await is settled before
164
+ // any consumer reads the binding.
165
+ let agentOrchestratorCompat = null;
166
+ try {
167
+ agentOrchestratorCompat = await import("@elizaos/plugin-agent-orchestrator");
168
+ }
169
+ catch {
170
+ agentOrchestratorCompat = null;
171
+ }
172
+ // Re-export for downstream consumers (e.g. @elizaos/app-core)
173
+ export { AGENT_EVENT_ALLOWED_STREAMS, CONFIG_WRITE_ALLOWED_TOP_KEYS, discoverInstalledPlugins, discoverPluginsFromManifest, findPrimaryEnvKey, readBundledPluginPackageMetadata, } from "./plugin-discovery-helpers.js";
174
+ function getAgentEventSvc(runtime) {
175
+ return getAgentEventService(runtime);
176
+ }
177
+ function requirePluginManager(runtime) {
178
+ const service = runtime?.getService("plugin_manager");
179
+ if (!isPluginManagerLike(service)) {
180
+ throw new Error("Plugin manager service not found");
181
+ }
182
+ return wrapPluginManagerWithLocalFallback(service);
183
+ }
184
+ /**
185
+ * The runtime plugin manager's registry client only fetches from GitHub and
186
+ * scans a `plugins/` dir for `elizaos.plugin.json`. Workspace-vendored plugins
187
+ * (under `packages/plugin-*`) are invisible to it. Wrap `installPlugin` so that
188
+ * when it returns "not found in the registry" we retry using our own
189
+ * registry-client (which discovers workspace packages and node_modules symlinks).
190
+ */
191
+ function wrapPluginManagerWithLocalFallback(pm) {
192
+ const originalInstall = pm.installPlugin.bind(pm);
193
+ const wrapped = Object.create(pm);
194
+ wrapped.installPlugin = async (pluginName, onProgress) => {
195
+ const result = await originalInstall(pluginName, onProgress);
196
+ if (result.success ||
197
+ !result.error?.includes("not found in the registry")) {
198
+ return result;
199
+ }
200
+ // Upstream registry missed it — check Eliza's own local discovery.
201
+ const { getPluginInfo } = await import("../services/registry-client.js");
202
+ const localInfo = await getPluginInfo(pluginName);
203
+ if (!localInfo?.localPath) {
204
+ return result;
205
+ }
206
+ // The plugin is a workspace package — just return success pointing at it.
207
+ // The runtime already resolves it via NODE_PATH / bun workspace links so
208
+ // there is nothing to download; the caller only needs to enable it in
209
+ // config and restart.
210
+ return {
211
+ success: true,
212
+ pluginName: localInfo.name,
213
+ version: localInfo.npm.v2Version ?? localInfo.npm.v1Version ?? "workspace",
214
+ installPath: localInfo.localPath,
215
+ requiresRestart: true,
216
+ };
217
+ };
218
+ return wrapped;
219
+ }
220
+ function getPluginManagerForState(state) {
221
+ const service = state.runtime?.getService("plugin_manager");
222
+ if (isPluginManagerLike(service)) {
223
+ return service;
224
+ }
225
+ return createConfigPluginManager(() => state.config);
226
+ }
227
+ function requireCoreManager(runtime) {
228
+ const service = runtime?.getService("core_manager");
229
+ if (!isCoreManagerLike(service)) {
230
+ throw new Error("Core manager service not found");
231
+ }
232
+ return service;
233
+ }
234
+ const OG_FILENAME = ".og";
235
+ const DELETED_CONVERSATIONS_FILENAME = "deleted-conversations.v1.json";
236
+ const MAX_DELETED_CONVERSATION_IDS = 5000;
237
+ function readDeletedConversationIdsFromState() {
238
+ const filePath = path.join(resolveStateDir(), DELETED_CONVERSATIONS_FILENAME);
239
+ if (!fs.existsSync(filePath))
240
+ return new Set();
241
+ try {
242
+ const raw = fs.readFileSync(filePath, "utf-8");
243
+ const parsed = JSON.parse(raw);
244
+ const ids = Array.isArray(parsed.ids) ? parsed.ids : [];
245
+ return new Set(ids
246
+ .map((id) => (typeof id === "string" ? id.trim() : ""))
247
+ .filter((id) => id.length > 0));
248
+ }
249
+ catch (err) {
250
+ logger.warn(`[eliza-api] Failed to read deleted conversations state: ${err instanceof Error ? err.message : String(err)}`);
251
+ return new Set();
252
+ }
253
+ }
254
+ function _persistDeletedConversationIdsToState(ids) {
255
+ const dir = resolveStateDir();
256
+ if (!fs.existsSync(dir)) {
257
+ fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
258
+ }
259
+ const normalized = Array.from(ids)
260
+ .map((id) => id.trim())
261
+ .filter((id) => id.length > 0)
262
+ .slice(-MAX_DELETED_CONVERSATION_IDS);
263
+ const filePath = path.join(dir, DELETED_CONVERSATIONS_FILENAME);
264
+ const tmpFilePath = `${filePath}.${process.pid}.tmp`;
265
+ const payload = {
266
+ version: 1,
267
+ updatedAt: new Date().toISOString(),
268
+ ids: normalized,
269
+ };
270
+ fs.writeFileSync(tmpFilePath, `${JSON.stringify(payload, null, 2)}\n`, {
271
+ encoding: "utf-8",
272
+ mode: 0o600,
273
+ });
274
+ fs.renameSync(tmpFilePath, filePath);
275
+ }
276
+ function initializeOGCodeInState() {
277
+ const dir = resolveStateDir();
278
+ const filePath = path.join(dir, OG_FILENAME);
279
+ if (fs.existsSync(filePath))
280
+ return;
281
+ if (!fs.existsSync(dir)) {
282
+ fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
283
+ }
284
+ fs.writeFileSync(filePath, crypto.randomUUID(), {
285
+ encoding: "utf-8",
286
+ mode: 0o600,
287
+ });
288
+ }
289
+ // ---------------------------------------------------------------------------
290
+ // Package root resolution (for reading bundled plugins.json)
291
+ // ---------------------------------------------------------------------------
292
+ // findOwnPackageRoot moved to server-helpers.ts; re-exported in the batch above
293
+ // Fetch/streaming helpers extracted to server-helpers-fetch.ts
294
+ import { fetchWithTimeoutGuard as _fetchWithTimeoutGuard, streamResponseBodyWithByteLimit as _streamResponseBodyWithByteLimit, isAbortError, responseContentLength, } from "./server-helpers-fetch.js";
295
+ export { fetchWithTimeoutGuard, streamResponseBodyWithByteLimit, } from "./server-helpers-fetch.js";
296
+ const fetchWithTimeoutGuard = _fetchWithTimeoutGuard;
297
+ const streamResponseBodyWithByteLimit = _streamResponseBodyWithByteLimit;
298
+ /**
299
+ * Read and parse a JSON request body with size limits and error handling.
300
+ * Returns null (and sends a 4xx response) if reading or parsing fails.
301
+ */
302
+ async function readJsonBody(req, res, options = {}) {
303
+ return parseJsonBody(req, res, {
304
+ maxBytes: MAX_BODY_BYTES,
305
+ ...options,
306
+ });
307
+ }
308
+ const readBody = (req) => readRequestBody(req, { maxBytes: MAX_BODY_BYTES }).then((value) => value ?? "");
309
+ let activeTerminalRunCount = 0;
310
+ function json(res, data, status = 200) {
311
+ sendJson(res, data, status);
312
+ }
313
+ function error(res, message, status = 400) {
314
+ sendJsonError(res, message, status);
315
+ }
316
+ function isModuleResolutionFailure(err) {
317
+ if (typeof err !== "object" || err === null) {
318
+ return false;
319
+ }
320
+ const code = "code" in err ? err.code : undefined;
321
+ if (code === "MODULE_NOT_FOUND" ||
322
+ code === "ERR_MODULE_NOT_FOUND" ||
323
+ code === "ERR_PACKAGE_PATH_NOT_EXPORTED") {
324
+ return true;
325
+ }
326
+ if (!("message" in err) || typeof err.message !== "string") {
327
+ return false;
328
+ }
329
+ return (err.message.includes("Cannot find module") ||
330
+ err.message.includes("Cannot find package") ||
331
+ err.message.includes("ERR_MODULE_NOT_FOUND") ||
332
+ err.message.includes('is not defined by "exports"'));
333
+ }
334
+ function isWalletBridgeImportFailure(err) {
335
+ if (isModuleResolutionFailure(err)) {
336
+ return true;
337
+ }
338
+ if (typeof err !== "object" || err === null) {
339
+ return false;
340
+ }
341
+ const code = "code" in err ? err.code : undefined;
342
+ if (code === "ERR_UNKNOWN_FILE_EXTENSION") {
343
+ return true;
344
+ }
345
+ if (!("message" in err) || typeof err.message !== "string") {
346
+ return false;
347
+ }
348
+ return err.message.includes('Unknown file extension ".css"');
349
+ }
350
+ // ---------------------------------------------------------------------------
351
+ // Static UI serving — extracted to static-file-server.ts
352
+ // ---------------------------------------------------------------------------
353
+ import { injectApiBaseIntoHtml, isAuthProtectedRoute, serveStaticUi, } from "./static-file-server.js";
354
+ export { injectApiBaseIntoHtml };
355
+ // Preserved for backward-compat — unused locally after extraction.
356
+ const _STATIC_MIME = {};
357
+ // (static file serving functions moved to static-file-server.ts)
358
+ function coerce(value) {
359
+ return value;
360
+ }
361
+ // buildChatAttachments, buildUserMessages, etc. imported in the consolidated import at the top
362
+ function parseBoundedLimit(rawLimit, fallback = 15) {
363
+ return parseClampedInteger(rawLimit, {
364
+ min: 1,
365
+ max: 50,
366
+ fallback,
367
+ });
368
+ }
369
+ function sanitizeFavoriteAppList(value) {
370
+ if (!Array.isArray(value))
371
+ return [];
372
+ const seen = new Set();
373
+ const apps = [];
374
+ for (const item of value) {
375
+ if (typeof item !== "string")
376
+ continue;
377
+ const trimmed = item.trim();
378
+ if (!trimmed || seen.has(trimmed))
379
+ continue;
380
+ seen.add(trimmed);
381
+ apps.push(trimmed);
382
+ }
383
+ return apps;
384
+ }
385
+ function readFavoriteAppsFromConfig(config) {
386
+ const ui = (config.ui ?? {});
387
+ return sanitizeFavoriteAppList(ui.favoriteApps);
388
+ }
389
+ function writeFavoriteAppsToConfig(config, apps) {
390
+ const sanitized = sanitizeFavoriteAppList(apps);
391
+ const ui = (config.ui ?? {});
392
+ ui.favoriteApps = sanitized;
393
+ config.ui = ui;
394
+ saveElizaConfig(config);
395
+ return sanitized;
396
+ }
397
+ // Config redaction, skill validation extracted to server-helpers-config.ts
398
+ // isBlockedObjectKey, redactDeep, redactConfigSecrets, isRedactedSecretValue,
399
+ // stripRedactedPlaceholderValuesDeep imported from server-helpers-config.ts above.
400
+ // isBlockedObjectKey alias for local usage:
401
+ const isBlockedObjectKey = isBlockedObjectKeyFromConfig;
402
+ // MCP validation helpers extracted to server-helpers-mcp.ts
403
+ import { resolveMcpServersRejection as _resolveMcpServersRejection, resolveMcpTerminalAuthorizationRejection as _resolveMcpTerminalAuthorizationRejection, } from "./server-helpers-mcp.js";
404
+ export { resolveMcpServersRejection, resolveMcpTerminalAuthorizationRejection, validateMcpServerConfig, } from "./server-helpers-mcp.js";
405
+ const resolveMcpServersRejection = _resolveMcpServersRejection;
406
+ // ---------------------------------------------------------------------------
407
+ // Onboarding / config helpers — extracted to server-helpers-config.ts
408
+ // ---------------------------------------------------------------------------
409
+ import { pickRandomNames } from "../runtime/onboarding-names.js";
410
+ import { applyOnboardingVoicePreset, ensureWalletKeysInEnvAndConfig, getCloudProviderOptions, getProviderOptions, isBlockedObjectKey as isBlockedObjectKeyFromConfig, isRedactedSecretValue, isSafeResetStateDir, readUiLanguageHeader, redactConfigSecrets, redactDeep, resolveConfiguredCharacterLanguage, resolveDefaultAgentName, stripRedactedPlaceholderValuesDeep, } from "./server-helpers-config.js";
411
+ export { isSafeResetStateDir } from "./server-helpers-config.js";
412
+ // ---------------------------------------------------------------------------
413
+ // Trade permission helpers (exported for use by awareness contributors)
414
+ // ---------------------------------------------------------------------------
415
+ /**
416
+ * Resolve the active trade permission mode from config.
417
+ * Falls back to "user-sign-only" when not configured.
418
+ */
419
+ export function resolveTradePermissionMode(config) {
420
+ const raw = config.features
421
+ ?.tradePermissionMode;
422
+ if (raw === "user-sign-only" ||
423
+ raw === "manual-local-key" ||
424
+ raw === "agent-auto") {
425
+ return raw;
426
+ }
427
+ return "user-sign-only";
428
+ }
429
+ /**
430
+ * Maximum number of autonomous agent trades allowed per calendar day.
431
+ * Acts as a safety rail when `agent-auto` mode is enabled.
432
+ */
433
+ // Trade safety utilities (defined in trade-safety.ts for testability)
434
+ import { canUseLocalTradeExecution, } from "./trade-safety.js";
435
+ export { AGENT_AUTO_MAX_DAILY_TRADES, agentAutoDailyTrades, assertQuoteFresh, canUseLocalTradeExecution, getAgentAutoTradeDate, QUOTE_MAX_AGE_MS, recordAgentAutoTrade, } from "./trade-safety.js";
436
+ const AGENT_AUTOMATION_HEADER = "x-eliza-agent-action";
437
+ const AGENT_AUTOMATION_MODES = new Set([
438
+ "connectors-only",
439
+ "full",
440
+ ]);
441
+ function parseAgentAutomationMode(value) {
442
+ if (typeof value !== "string")
443
+ return null;
444
+ const normalized = value.trim().toLowerCase();
445
+ if (!AGENT_AUTOMATION_MODES.has(normalized)) {
446
+ return null;
447
+ }
448
+ return normalized;
449
+ }
450
+ function _isAgentAutomationRequest(req) {
451
+ const raw = req.headers[AGENT_AUTOMATION_HEADER];
452
+ if (typeof raw !== "string")
453
+ return false;
454
+ return /^(1|true|yes|agent)$/i.test(raw.trim());
455
+ }
456
+ function persistAgentAutomationMode(state, mode) {
457
+ state.agentAutomationMode = mode;
458
+ if (!state.config.features) {
459
+ state.config.features = {};
460
+ }
461
+ const features = state.config.features;
462
+ const current = features.agentAutomation;
463
+ const currentObject = current && typeof current === "object" && !Array.isArray(current)
464
+ ? current
465
+ : {};
466
+ features.agentAutomation = {
467
+ ...currentObject,
468
+ enabled: true,
469
+ mode,
470
+ };
471
+ }
472
+ function buildPluginEvmDiagnosticEntry(state) {
473
+ const capability = resolveWalletCapabilityStatus(state);
474
+ const enabled = capability.pluginEvmLoaded ||
475
+ capability.pluginEvmRequired ||
476
+ (state.config.plugins?.allow ?? []).some((entry) => {
477
+ return entry === EVM_PLUGIN_PACKAGE || entry === "evm";
478
+ });
479
+ const capabilityStatus = capability.pluginEvmLoaded
480
+ ? capability.pluginEvmRequired
481
+ ? "loaded"
482
+ : "auto-enabled"
483
+ : enabled
484
+ ? capability.evmAddress || capability.localSignerAvailable
485
+ ? "blocked"
486
+ : "missing-prerequisites"
487
+ : "disabled";
488
+ return {
489
+ id: "evm",
490
+ name: "Plugin EVM",
491
+ description: "EVM wallet runtime for balance, transfer, and trade actions. Required for wallet execution in chat.",
492
+ tags: ["wallet", "evm", "bsc", "onchain"],
493
+ enabled,
494
+ configured: capability.pluginEvmRequired,
495
+ envKey: "EVM_PRIVATE_KEY",
496
+ category: "feature",
497
+ source: "bundled",
498
+ configKeys: [
499
+ "EVM_PRIVATE_KEY",
500
+ "BSC_RPC_URL",
501
+ "BSC_TESTNET_RPC_URL",
502
+ "ELIZA_WALLET_NETWORK",
503
+ ],
504
+ parameters: [],
505
+ validationErrors: [],
506
+ validationWarnings: [],
507
+ npmName: EVM_PLUGIN_PACKAGE,
508
+ isActive: capability.pluginEvmLoaded,
509
+ autoEnabled: capability.pluginEvmRequired && !capability.pluginEvmLoaded,
510
+ managementMode: "core-optional",
511
+ capabilityStatus,
512
+ capabilityReason: capability.executionReady
513
+ ? "Wallet execution is ready."
514
+ : capability.executionBlockedReason,
515
+ prerequisites: [
516
+ { label: "wallet present", met: Boolean(capability.evmAddress) },
517
+ { label: "rpc ready", met: capability.rpcReady },
518
+ { label: "plugin loaded", met: capability.pluginEvmLoaded },
519
+ ],
520
+ };
521
+ }
522
+ // Wallet intent/export helpers extracted to server-helpers-wallet.ts
523
+ import { resolveWalletExportRejection as _resolveWalletExportRejection } from "./server-helpers-wallet.js";
524
+ export { hasUsableWalletFallbackParams, inferWalletExecutionFallback, resolveWalletExportRejection, } from "./server-helpers-wallet.js";
525
+ const resolveWalletExportRejection = _resolveWalletExportRejection;
526
+ // Plugin config helpers extracted to server-helpers-plugin.ts
527
+ import { resolvePluginConfigMutationRejections as _resolvePluginConfigMutationRejections } from "./server-helpers-plugin.js";
528
+ export { resolvePluginConfigMutationRejections, resolvePluginConfigReply, } from "./server-helpers-plugin.js";
529
+ const resolvePluginConfigMutationRejections = _resolvePluginConfigMutationRejections;
530
+ async function resolveTrainingServiceCtor() {
531
+ const candidates = [
532
+ "../services/training-service",
533
+ "@elizaos/app-training",
534
+ "@elizaos/plugin-training",
535
+ ];
536
+ for (const specifier of candidates) {
537
+ try {
538
+ const loaded = (await import(__rewriteRelativeImportExtension(/* @vite-ignore */ specifier)));
539
+ const ctor = loaded.TrainingService;
540
+ if (typeof ctor === "function") {
541
+ return ctor;
542
+ }
543
+ }
544
+ catch {
545
+ // Keep trying fallbacks.
546
+ }
547
+ }
548
+ return null;
549
+ }
550
+ // mcpServersIncludeStdio, resolveMcpTerminalAuthorizationRejection extracted to server-helpers-mcp.ts
551
+ const resolveMcpTerminalAuthorizationRejection = _resolveMcpTerminalAuthorizationRejection;
552
+ // Auth, CORS, pairing, terminal, WebSocket auth helpers extracted to server-helpers-auth.ts
553
+ import { applyCors as _applyCors, clearPairing as _clearPairing, ensureApiTokenForBindHost as _ensureApiTokenForBindHost, ensurePairingCode as _ensurePairingCode, getConfiguredApiToken as _getConfiguredApiToken, getPairingExpiresAt as _getPairingExpiresAt, isAllowedHost as _isAllowedHost, isAuthorized as _isAuthorized, isSharedTerminalClientId as _isSharedTerminalClientId, isWebSocketAuthorized as _isWebSocketAuthorized, normalizePairingCode as _normalizePairingCode, normalizeWsClientId as _normalizeWsClientId, pairingEnabled as _pairingEnabled, rateLimitPairing as _rateLimitPairing, rejectWebSocketUpgrade as _rejectWebSocketUpgrade, resolveTerminalRunClientId as _resolveTerminalRunClientId, resolveTerminalRunRejection as _resolveTerminalRunRejection, resolveWebSocketUpgradeRejection as _resolveWebSocketUpgradeRejection, } from "./server-helpers-auth.js";
554
+ export { ensureApiTokenForBindHost, extractAuthToken, isAllowedHost, isAuthorized, normalizeWsClientId, resolveCorsOrigin, resolveTerminalRunClientId, resolveTerminalRunRejection, resolveWebSocketUpgradeRejection, } from "./server-helpers-auth.js";
555
+ const isAllowedHost = _isAllowedHost;
556
+ const applyCors = _applyCors;
557
+ const isAuthorized = _isAuthorized;
558
+ const ensureApiTokenForBindHost = _ensureApiTokenForBindHost;
559
+ const normalizeWsClientId = _normalizeWsClientId;
560
+ const resolveTerminalRunClientId = _resolveTerminalRunClientId;
561
+ const isSharedTerminalClientId = _isSharedTerminalClientId;
562
+ const resolveTerminalRunRejection = _resolveTerminalRunRejection;
563
+ const resolveWebSocketUpgradeRejection = _resolveWebSocketUpgradeRejection;
564
+ const rejectWebSocketUpgrade = _rejectWebSocketUpgrade;
565
+ const isWebSocketAuthorized = _isWebSocketAuthorized;
566
+ const getConfiguredApiToken = _getConfiguredApiToken;
567
+ const pairingEnabled = _pairingEnabled;
568
+ function isLifeOpsCloudPluginRoute(pathname) {
569
+ return (pathname === "/api/cloud/features" ||
570
+ pathname === "/api/cloud/features/sync" ||
571
+ pathname.startsWith("/api/cloud/travel-providers/"));
572
+ }
573
+ const ensurePairingCode = _ensurePairingCode;
574
+ const normalizePairingCode = _normalizePairingCode;
575
+ const rateLimitPairing = _rateLimitPairing;
576
+ const getPairingExpiresAt = _getPairingExpiresAt;
577
+ const clearPairing = _clearPairing;
578
+ /** Guard against concurrent provider switch requests (P0 §3). */
579
+ let providerSwitchInProgress = false;
580
+ /**
581
+ * Lazy per-process runtime operation manager. Constructed on first
582
+ * request because it needs the per-server `state` reference + the
583
+ * `onRestart` closure. Cached so subsequent requests see the same
584
+ * active-op slot and execution chain.
585
+ */
586
+ let cachedRuntimeOperationManager = null;
587
+ function getOrCreateRuntimeOperationManager(state, restartRuntime) {
588
+ if (cachedRuntimeOperationManager) {
589
+ return cachedRuntimeOperationManager;
590
+ }
591
+ const repository = getDefaultRepository();
592
+ const healthChecker = getDefaultHealthChecker();
593
+ const coldStrategy = createColdStrategy({
594
+ restartRuntime: async (reason) => {
595
+ const ok = await restartRuntime(reason);
596
+ if (!ok)
597
+ return null;
598
+ return state.runtime;
599
+ },
600
+ });
601
+ const hotStrategy = createHotStrategy({});
602
+ const classifyContext = () => ({
603
+ currentProvider: resolvePreferredProviderId(state.config),
604
+ currentPrimaryModel: resolvePrimaryModel(state.config),
605
+ });
606
+ cachedRuntimeOperationManager = new DefaultRuntimeOperationManager({
607
+ repository,
608
+ runtime: () => state.runtime,
609
+ classifyContext,
610
+ classifier: defaultClassifier,
611
+ healthChecker,
612
+ strategies: { cold: coldStrategy, hot: hotStrategy },
613
+ });
614
+ return cachedRuntimeOperationManager;
615
+ }
616
+ // PluginConfigMutationRejection, resolvePluginConfigMutationRejections,
617
+ // WalletExportRejection, resolveWalletExportRejection
618
+ // extracted to server-helpers-plugin.ts and server-helpers-wallet.ts respectively.
619
+ // Re-exported above.
620
+ // Terminal/WS/state-dir helpers extracted to server-helpers-auth.ts; re-exported above.
621
+ // decodePathComponent imported in the consolidated import at the top
622
+ // Workbench task/todo helpers — extracted to workbench-helpers.ts
623
+ import { asObject, normalizeTags, parseNullableNumber, readTaskCompleted, readTaskMetadata, toWorkbenchTask, toWorkbenchTodo, WORKBENCH_TASK_TAG, WORKBENCH_TODO_TAG, } from "./workbench-helpers.js";
624
+ const _WORKBENCH_TASK_TAG = WORKBENCH_TASK_TAG;
625
+ const _WORKBENCH_TODO_TAG = WORKBENCH_TODO_TAG;
626
+ // (workbench helpers moved to workbench-helpers.ts)
627
+ // ── Autonomy / swarm / coding-agent helpers — extracted to server-helpers-swarm.ts ──
628
+ import { getCoordinatorFromRuntime, getPtyConsoleBridge, routeAutonomyTextToUser, wireCodingAgentBridgesNow, wireCodingAgentChatBridge, wireCodingAgentSwarmSynthesis, wireCodingAgentWsBridge, wireCoordinatorEventRouting, } from "./server-helpers-swarm.js";
629
+ export { handleSwarmSynthesis, routeAutonomyTextToUser, } from "./server-helpers-swarm.js";
630
+ async function maybeRouteAutonomyEventToConversation(state, event) {
631
+ if (event.stream !== "assistant")
632
+ return;
633
+ const payload = event.data && typeof event.data === "object"
634
+ ? event.data
635
+ : null;
636
+ const text = typeof payload?.text === "string" ? payload.text.trim() : "";
637
+ if (!text)
638
+ return;
639
+ const explicitSource = typeof payload?.source === "string" ? payload.source : null;
640
+ const hasExplicitSource = explicitSource !== null && explicitSource.trim().length > 0;
641
+ const source = hasExplicitSource ? explicitSource.trim() : "autonomy";
642
+ // Regular user conversation turns should never be re-routed as proactive.
643
+ // Some AGENT_EVENT payloads may omit roomId metadata, so rely on source too.
644
+ if (source === "client_chat")
645
+ return;
646
+ if (!hasExplicitSource && !event.roomId)
647
+ return;
648
+ // Keep regular conversation messages in their own room only.
649
+ if (event.roomId &&
650
+ Array.from(state.conversations.values()).some((c) => c.roomId === event.roomId)) {
651
+ return;
652
+ }
653
+ await routeAutonomyTextToUser(state, text, source);
654
+ }
655
+ async function handleRequest(req, res, state, ctx) {
656
+ const method = req.method ?? "GET";
657
+ let url;
658
+ try {
659
+ url = new URL(req.url ?? "/", `http://${req.headers.host ?? "localhost"}`);
660
+ }
661
+ catch {
662
+ error(res, "Invalid request URL", 400);
663
+ return;
664
+ }
665
+ const pathname = url.pathname;
666
+ const isAuthEndpoint = pathname.startsWith("/api/auth/");
667
+ const isHealthEndpoint = method === "GET" && pathname === "/api/health";
668
+ const isCloudProvisioned = isCloudProvisionedContainer();
669
+ const isCloudOnboardingStatusEndpoint = method === "GET" &&
670
+ pathname === "/api/onboarding/status" &&
671
+ isCloudProvisioned;
672
+ const isWhatsAppWebhookEndpoint = pathname === "/api/whatsapp/webhook";
673
+ const isBlueBubblesWebhookEndpoint = pathname ===
674
+ resolveBlueBubblesWebhookPath({
675
+ runtime: state.runtime
676
+ ? {
677
+ getService: (type) => state.runtime.getService(type),
678
+ }
679
+ : undefined,
680
+ });
681
+ const isAuthProtectedPath = isAuthProtectedRoute(pathname);
682
+ const _registryService = state.registryService;
683
+ const canonicalizeRestartReason = (reason) => {
684
+ if (reason === "primary-changed" ||
685
+ reason === "cloud-refreshed" ||
686
+ reason === "Wallet configuration updated") {
687
+ return "Wallet configuration updated";
688
+ }
689
+ return reason;
690
+ };
691
+ const scheduleRuntimeRestart = (reason) => {
692
+ const canonicalReason = canonicalizeRestartReason(reason);
693
+ if (state.pendingRestartReasons.length >= 50) {
694
+ // Prevent unbounded growth — keep only first entry + latest
695
+ state.pendingRestartReasons.splice(1, state.pendingRestartReasons.length - 1);
696
+ }
697
+ if (!state.pendingRestartReasons.includes(canonicalReason)) {
698
+ state.pendingRestartReasons.push(canonicalReason);
699
+ }
700
+ logger.info(`[eliza-api] Restart required: ${canonicalReason} (${state.pendingRestartReasons.length} pending)`);
701
+ state.broadcastWs?.({
702
+ type: "restart-required",
703
+ reasons: [...state.pendingRestartReasons],
704
+ });
705
+ };
706
+ const restartRuntime = async (reason) => {
707
+ if (!ctx?.onRestart) {
708
+ return false;
709
+ }
710
+ if (state.agentState === "restarting") {
711
+ return false;
712
+ }
713
+ const previousState = state.agentState;
714
+ logger.info(`[eliza-api] Applying runtime reload: ${reason}`);
715
+ state.agentState = "restarting";
716
+ state.startup = { ...state.startup, phase: "restarting" };
717
+ state.broadcastStatus?.();
718
+ try {
719
+ const newRuntime = await ctx.onRestart();
720
+ if (!newRuntime) {
721
+ state.agentState = previousState;
722
+ state.broadcastStatus?.();
723
+ return false;
724
+ }
725
+ state.runtime = newRuntime;
726
+ state.chatConnectionReady = null;
727
+ state.chatConnectionPromise = null;
728
+ state.agentState = "running";
729
+ state.agentName =
730
+ newRuntime.character.name ?? resolveDefaultAgentName(state.config);
731
+ state.model = detectRuntimeModel(newRuntime, state.config);
732
+ state.startedAt = Date.now();
733
+ state.pendingRestartReasons = [];
734
+ ctx.onRuntimeSwapped?.();
735
+ state.broadcastStatus?.();
736
+ return true;
737
+ }
738
+ catch (err) {
739
+ logger.warn(`[eliza-api] Runtime reload failed: ${err instanceof Error ? err.message : String(err)}`);
740
+ state.agentState = previousState;
741
+ state.broadcastStatus?.();
742
+ return false;
743
+ }
744
+ };
745
+ // ── DNS rebinding protection ──────────────────────────────────────────
746
+ // Reject requests whose Host header doesn't match a known loopback
747
+ // hostname. Without this check an attacker can rebind their domain's
748
+ // DNS to 127.0.0.1 and read the unauthenticated localhost API from a
749
+ // malicious page.
750
+ if (!isAllowedHost(req)) {
751
+ const incomingHost = req.headers.host ?? "your-hostname";
752
+ json(res, {
753
+ error: "Forbidden — invalid Host header",
754
+ hint: `To allow this host, set ELIZA_ALLOWED_HOSTS=${incomingHost} (or ELIZA_ALLOWED_HOSTS) in your environment, or access via http://localhost`,
755
+ docs: "https://docs.eliza.ai/configuration#allowed-hosts",
756
+ }, 403);
757
+ return;
758
+ }
759
+ if (!applyCors(req, res, pathname)) {
760
+ json(res, { error: "Origin not allowed" }, 403);
761
+ return;
762
+ }
763
+ // Serve dashboard static assets before the auth gates. serveStaticUi already
764
+ // refuses /api/, /v1/, and /ws paths, so API endpoints remain protected
765
+ // while steward-managed containers can still reach the built-in dashboard.
766
+ if (method === "GET" || method === "HEAD") {
767
+ if (serveStaticUi(req, res, pathname))
768
+ return;
769
+ }
770
+ // Single auth gate. The previous two-block arrangement (a cloud-provisioned
771
+ // copy followed by an unconditional copy) was redundant: the unconditional
772
+ // block already applied to cloud-provisioned requests because
773
+ // `isAuthorized` consults `isCloudProvisionedContainer()` when no token is
774
+ // configured.
775
+ if (method !== "OPTIONS" &&
776
+ isAuthProtectedPath &&
777
+ !isAuthEndpoint &&
778
+ !isHealthEndpoint &&
779
+ !isCloudOnboardingStatusEndpoint &&
780
+ !isWhatsAppWebhookEndpoint &&
781
+ !isBlueBubblesWebhookEndpoint &&
782
+ !isPublicRuntimePluginRoute({
783
+ runtime: state.runtime,
784
+ method,
785
+ pathname,
786
+ }) &&
787
+ !isAuthorized(req)) {
788
+ json(res, { error: "Unauthorized" }, 401);
789
+ return;
790
+ }
791
+ // CORS preflight
792
+ if (method === "OPTIONS") {
793
+ res.statusCode = 204;
794
+ res.end();
795
+ return;
796
+ }
797
+ // ── Provider inference helpers ────────────────────────────────────────
798
+ const _disableCloudInference = () => {
799
+ delete process.env.ANTHROPIC_BASE_URL;
800
+ delete process.env.OPENAI_BASE_URL;
801
+ delete process.env.ANTHROPIC_API_KEY;
802
+ delete process.env.OPENAI_API_KEY;
803
+ };
804
+ const _enableCloudInference = (cloudApiKey, baseUrl) => {
805
+ // Configure coding agent CLIs to proxy through ElizaCloud /api/v1
806
+ process.env.ANTHROPIC_BASE_URL = `${baseUrl}/api/v1`;
807
+ process.env.ANTHROPIC_API_KEY = cloudApiKey;
808
+ process.env.OPENAI_BASE_URL = `${baseUrl}/api/v1`;
809
+ process.env.OPENAI_API_KEY = cloudApiKey;
810
+ // Gemini CLI and Aider — no proxy support via ElizaCloud inference
811
+ };
812
+ // ── POST /api/provider/switch (extracted to provider-switch-routes.ts) ──
813
+ const runtimeOperationManager = getOrCreateRuntimeOperationManager(state, restartRuntime);
814
+ if (await handleProviderSwitchRoutes({
815
+ req,
816
+ res,
817
+ method,
818
+ pathname,
819
+ state,
820
+ json,
821
+ error,
822
+ readJsonBody,
823
+ saveElizaConfig,
824
+ scheduleRuntimeRestart,
825
+ providerSwitchInProgress,
826
+ setProviderSwitchInProgress: (v) => {
827
+ providerSwitchInProgress = v;
828
+ },
829
+ runtimeOperationManager,
830
+ })) {
831
+ return;
832
+ }
833
+ if (await handleAuthRoutes({
834
+ req,
835
+ res,
836
+ method,
837
+ pathname,
838
+ readJsonBody,
839
+ json,
840
+ error,
841
+ pairingEnabled,
842
+ ensurePairingCode,
843
+ normalizePairingCode,
844
+ rateLimitPairing,
845
+ getPairingExpiresAt,
846
+ clearPairing,
847
+ })) {
848
+ return;
849
+ }
850
+ if (await handleSubscriptionRoutes({
851
+ req,
852
+ res,
853
+ method,
854
+ pathname,
855
+ state,
856
+ readJsonBody,
857
+ json,
858
+ error,
859
+ saveConfig: saveElizaConfig,
860
+ loadSubscriptionAuth: async () => (await import("../auth/index.js")),
861
+ })) {
862
+ return;
863
+ }
864
+ if (await handleAccountsRoutes({
865
+ req,
866
+ res,
867
+ method,
868
+ pathname,
869
+ readJsonBody,
870
+ json,
871
+ error,
872
+ state: { config: state.config },
873
+ saveConfig: saveElizaConfig,
874
+ })) {
875
+ return;
876
+ }
877
+ // ═══════════════════════════════════════════════════════════════════════
878
+ // Health / status / runtime routes (extracted to health-routes.ts)
879
+ // ═══════════════════════════════════════════════════════════════════════
880
+ if (await handleHealthRoutes({
881
+ req,
882
+ res,
883
+ method,
884
+ pathname,
885
+ url,
886
+ state,
887
+ json,
888
+ error,
889
+ })) {
890
+ return;
891
+ }
892
+ // ── Onboarding GET routes (extracted to onboarding-routes.ts) ─────────
893
+ if (await handleOnboardingRoutes({
894
+ req,
895
+ res,
896
+ method,
897
+ pathname,
898
+ url,
899
+ state: coerce(state),
900
+ json,
901
+ error,
902
+ readJsonBody,
903
+ isCloudProvisionedContainer,
904
+ hasPersistedOnboardingState,
905
+ ensureWalletKeysInEnvAndConfig,
906
+ getWalletAddresses: coerce(getWalletAddresses),
907
+ pickRandomNames,
908
+ getStylePresets: coerce(getStylePresets),
909
+ getProviderOptions: coerce(getProviderOptions),
910
+ getCloudProviderOptions: coerce(getCloudProviderOptions),
911
+ getModelOptions: coerce(getModelOptions),
912
+ getInventoryProviderOptions: coerce(getInventoryProviderOptions),
913
+ resolveConfiguredCharacterLanguage: coerce(resolveConfiguredCharacterLanguage),
914
+ normalizeCharacterLanguage: coerce(normalizeCharacterLanguage),
915
+ readUiLanguageHeader: coerce(readUiLanguageHeader),
916
+ applyOnboardingVoicePreset: coerce(applyOnboardingVoicePreset),
917
+ saveElizaConfig,
918
+ })) {
919
+ return;
920
+ }
921
+ // POST /api/onboarding is now handled by onboarding-routes.ts above.
922
+ if (await handleAgentLifecycleRoutes({
923
+ req,
924
+ res,
925
+ method,
926
+ pathname,
927
+ state,
928
+ error,
929
+ json,
930
+ readJsonBody,
931
+ })) {
932
+ return;
933
+ }
934
+ const triggerHandled = await handleTriggerRoutes({
935
+ req,
936
+ res,
937
+ method,
938
+ pathname,
939
+ runtime: state.runtime,
940
+ readJsonBody,
941
+ json,
942
+ error,
943
+ executeTriggerTask,
944
+ getTriggerHealthSnapshot,
945
+ getTriggerLimit,
946
+ listTriggerTasks,
947
+ readTriggerConfig,
948
+ readTriggerRuns,
949
+ taskToTriggerSummary,
950
+ triggersFeatureEnabled,
951
+ buildTriggerConfig,
952
+ buildTriggerMetadata,
953
+ normalizeTriggerDraft,
954
+ DISABLED_TRIGGER_INTERVAL_MS,
955
+ TRIGGER_TASK_NAME,
956
+ TRIGGER_TASK_TAGS: [...TRIGGER_TASK_TAGS],
957
+ });
958
+ if (triggerHandled) {
959
+ return;
960
+ }
961
+ if (pathname.startsWith("/api/training")) {
962
+ if (!state.trainingService) {
963
+ error(res, "Training service is not available", 503);
964
+ return;
965
+ }
966
+ const trainingHandled = await handleTrainingRoutes({
967
+ req,
968
+ res,
969
+ method,
970
+ pathname,
971
+ runtime: state.runtime,
972
+ trainingService: state.trainingService,
973
+ readJsonBody,
974
+ json,
975
+ error,
976
+ isLoopbackHost,
977
+ });
978
+ if (trainingHandled)
979
+ return;
980
+ }
981
+ // ── Knowledge routes (/api/knowledge/*) ─────────────────────────────────
982
+ if (pathname.startsWith("/api/knowledge")) {
983
+ const knowledgeHandled = await handleKnowledgeRoutes({
984
+ req,
985
+ res,
986
+ method,
987
+ pathname,
988
+ url,
989
+ runtime: state.runtime,
990
+ readJsonBody,
991
+ json,
992
+ error,
993
+ });
994
+ if (knowledgeHandled)
995
+ return;
996
+ }
997
+ if (pathname.startsWith("/api/memory") ||
998
+ pathname.startsWith("/api/memories") ||
999
+ pathname === "/api/context/quick") {
1000
+ const memoryHandled = await handleMemoryRoutes({
1001
+ req,
1002
+ res,
1003
+ method,
1004
+ pathname,
1005
+ url,
1006
+ runtime: state.runtime,
1007
+ agentName: state.agentName,
1008
+ readJsonBody,
1009
+ json,
1010
+ error,
1011
+ });
1012
+ if (memoryHandled)
1013
+ return;
1014
+ }
1015
+ if (await handleAgentAdminRoutes({
1016
+ req,
1017
+ res,
1018
+ method,
1019
+ pathname,
1020
+ state,
1021
+ onRestart: ctx?.onRestart ?? undefined,
1022
+ onRuntimeSwapped: ctx?.onRuntimeSwapped,
1023
+ json,
1024
+ error,
1025
+ resolveStateDir,
1026
+ resolvePath: path.resolve,
1027
+ getHomeDir: os.homedir,
1028
+ isSafeResetStateDir,
1029
+ stateDirExists: fs.existsSync,
1030
+ removeStateDir: (resolvedState) => {
1031
+ fs.rmSync(resolvedState, { recursive: true, force: true });
1032
+ },
1033
+ logWarn: (message) => logger.warn(message),
1034
+ })) {
1035
+ return;
1036
+ }
1037
+ if (await handleAgentTransferRoutes({
1038
+ req,
1039
+ res,
1040
+ method,
1041
+ pathname,
1042
+ state,
1043
+ readJsonBody,
1044
+ json,
1045
+ error,
1046
+ exportAgent,
1047
+ estimateExportSize,
1048
+ importAgent,
1049
+ isAgentExportError: (err) => err instanceof AgentExportError,
1050
+ })) {
1051
+ return;
1052
+ }
1053
+ if (await handleCharacterRoutes({
1054
+ req,
1055
+ res,
1056
+ method,
1057
+ pathname,
1058
+ state,
1059
+ readJsonBody,
1060
+ json,
1061
+ error,
1062
+ pickRandomNames,
1063
+ saveConfig: saveElizaConfig,
1064
+ validateCharacter: (body) => CharacterSchema.safeParse(body),
1065
+ })) {
1066
+ return;
1067
+ }
1068
+ if (await handleExperienceRoutes({
1069
+ req,
1070
+ res,
1071
+ method,
1072
+ pathname,
1073
+ runtime: state.runtime,
1074
+ url,
1075
+ readJsonBody,
1076
+ json,
1077
+ error,
1078
+ })) {
1079
+ return;
1080
+ }
1081
+ // Compatibility route used by legacy health probes and desktop name lookup.
1082
+ if (method === "GET" && pathname === "/api/agents") {
1083
+ const runtimeAgentId = typeof state.runtime?.agentId === "string" &&
1084
+ state.runtime.agentId.trim().length > 0
1085
+ ? state.runtime.agentId.trim()
1086
+ : null;
1087
+ const configuredAgentId = typeof state.config.agents?.list?.[0]?.id === "string" &&
1088
+ state.config.agents.list[0].id.trim().length > 0
1089
+ ? state.config.agents.list[0].id.trim()
1090
+ : null;
1091
+ const agentName = state.runtime?.character.name?.trim() ||
1092
+ state.agentName?.trim() ||
1093
+ "Eliza";
1094
+ json(res, {
1095
+ agents: [
1096
+ {
1097
+ id: runtimeAgentId ??
1098
+ configuredAgentId ??
1099
+ "00000000-0000-0000-0000-000000000000",
1100
+ name: agentName,
1101
+ status: state.agentState,
1102
+ },
1103
+ ],
1104
+ });
1105
+ return;
1106
+ }
1107
+ if (await handleModelsRoutes({
1108
+ req,
1109
+ res,
1110
+ method,
1111
+ pathname,
1112
+ url,
1113
+ json,
1114
+ providerCachePath,
1115
+ getOrFetchProvider,
1116
+ getOrFetchAllProviders,
1117
+ resolveModelsCacheDir,
1118
+ pathExists: fs.existsSync,
1119
+ readDir: fs.readdirSync,
1120
+ unlinkFile: fs.unlinkSync,
1121
+ joinPath: path.join,
1122
+ })) {
1123
+ return;
1124
+ }
1125
+ // ── NFA routes (/api/nfa/*) ─────────────────────────────────────────
1126
+ // Extracted — will move to @elizaos/plugin-bnb-identity (Plugin.routes)
1127
+ // when the plugin directory is created. Until then, NFA routes are
1128
+ // served inline from nfa-routes.ts if needed, or disabled.
1129
+ if (await handleRegistryRoutes({
1130
+ req,
1131
+ res,
1132
+ method,
1133
+ pathname,
1134
+ url,
1135
+ json,
1136
+ error,
1137
+ getPluginManager: () => getPluginManagerForState(state),
1138
+ getLoadedPluginNames: () => state.runtime?.plugins.map((plugin) => plugin.name) ?? [],
1139
+ getBundledPluginIds: () => getReleaseBundledPluginIds(),
1140
+ classifyRegistryPluginRelease,
1141
+ })) {
1142
+ return;
1143
+ }
1144
+ // ═══════════════════════════════════════════════════════════════════════
1145
+ // Plugin routes (extracted to plugin-routes.ts)
1146
+ // ═══════════════════════════════════════════════════════════════════════
1147
+ if (pathname === "/api/plugins" ||
1148
+ pathname.startsWith("/api/plugins/") ||
1149
+ pathname === "/api/secrets" ||
1150
+ pathname === "/api/core/status") {
1151
+ if (await handlePluginRoutes({
1152
+ req,
1153
+ res,
1154
+ method,
1155
+ pathname,
1156
+ url,
1157
+ state,
1158
+ json,
1159
+ error,
1160
+ readJsonBody,
1161
+ scheduleRuntimeRestart,
1162
+ restartRuntime,
1163
+ BLOCKED_ENV_KEYS,
1164
+ discoverInstalledPlugins,
1165
+ maskValue,
1166
+ aggregateSecrets,
1167
+ readProviderCache,
1168
+ paramKeyToCategory,
1169
+ buildPluginEvmDiagnosticEntry,
1170
+ EVM_PLUGIN_PACKAGE,
1171
+ applyWhatsAppQrOverride,
1172
+ applySignalQrOverride,
1173
+ signalAuthExists,
1174
+ resolvePluginConfigMutationRejections,
1175
+ requirePluginManager,
1176
+ requireCoreManager,
1177
+ })) {
1178
+ return;
1179
+ }
1180
+ }
1181
+ // ═══════════════════════════════════════════════════════════════════════
1182
+ // Skills routes (extracted to skills-routes.ts)
1183
+ // Curated-skills routes live at /api/skills/curated/* and must be dispatched
1184
+ // before the generic skills routes (which reject "/" in skill IDs).
1185
+ // ═══════════════════════════════════════════════════════════════════════
1186
+ if (pathname.startsWith("/api/skills/curated")) {
1187
+ if (await handleCuratedSkillsRoutes({
1188
+ req,
1189
+ res,
1190
+ method,
1191
+ pathname,
1192
+ url,
1193
+ json,
1194
+ error,
1195
+ readJsonBody,
1196
+ })) {
1197
+ return;
1198
+ }
1199
+ }
1200
+ if (pathname.startsWith("/api/skills")) {
1201
+ if (await handleSkillsRoutes({
1202
+ req,
1203
+ res,
1204
+ method,
1205
+ pathname,
1206
+ url,
1207
+ state,
1208
+ json,
1209
+ error,
1210
+ readJsonBody,
1211
+ readBody,
1212
+ discoverSkills,
1213
+ saveElizaConfig,
1214
+ })) {
1215
+ return;
1216
+ }
1217
+ }
1218
+ if (await handleDiagnosticsRoutes({
1219
+ req,
1220
+ res,
1221
+ method,
1222
+ pathname,
1223
+ url,
1224
+ logBuffer: state.logBuffer,
1225
+ clearLogBuffer: () => {
1226
+ const previous = state.logBuffer.length;
1227
+ state.logBuffer.length = 0;
1228
+ return previous;
1229
+ },
1230
+ readJsonBody,
1231
+ error,
1232
+ eventBuffer: state.eventBuffer,
1233
+ initSse: initSseFromChatRoutes,
1234
+ writeSseJson: writeSseJsonFromChatRoutes,
1235
+ json,
1236
+ auditEventTypes: AUDIT_EVENT_TYPES,
1237
+ auditSeverities: AUDIT_SEVERITIES,
1238
+ getAuditFeedSize,
1239
+ queryAuditFeed: (query) => queryAuditFeed({
1240
+ type: AUDIT_EVENT_TYPES.includes(query.type ?? "")
1241
+ ? query.type
1242
+ : undefined,
1243
+ severity: AUDIT_SEVERITIES.includes(query.severity ?? "")
1244
+ ? query.severity
1245
+ : undefined,
1246
+ sinceMs: query.sinceMs,
1247
+ limit: query.limit,
1248
+ }).map((entry) => ({
1249
+ timestamp: entry.timestamp,
1250
+ type: entry.type,
1251
+ summary: entry.summary,
1252
+ severity: entry.severity,
1253
+ metadata: entry.metadata,
1254
+ })),
1255
+ subscribeAuditFeed,
1256
+ })) {
1257
+ return;
1258
+ }
1259
+ // ═══════════════════════════════════════════════════════════════════════
1260
+ // Bug report routes
1261
+ // ═══════════════════════════════════════════════════════════════════════
1262
+ if (await handleBugReportRoutes({
1263
+ req,
1264
+ res,
1265
+ method,
1266
+ pathname,
1267
+ readJsonBody,
1268
+ json,
1269
+ error,
1270
+ })) {
1271
+ return;
1272
+ }
1273
+ // ═══════════════════════════════════════════════════════════════════════
1274
+ // Wallet core routes (addresses, balances, generate, config, export)
1275
+ // Canonical implementation lives in @elizaos/app-steward; wired here
1276
+ // so the API server exposes them without requiring plugin registration.
1277
+ // ═══════════════════════════════════════════════════════════════════════
1278
+ if (pathname.startsWith("/api/wallet/")) {
1279
+ let stewardWalletCoreRoutes = null;
1280
+ try {
1281
+ const { handleWalletCoreRoutes } = await import("@elizaos/app-steward/routes/wallet-core-routes");
1282
+ stewardWalletCoreRoutes = handleWalletCoreRoutes;
1283
+ }
1284
+ catch (err) {
1285
+ if (isWalletBridgeImportFailure(err)) {
1286
+ logger.debug({ err }, "[eliza-api] Wallet core routes unavailable from @elizaos/app-steward; falling back to local bridge");
1287
+ }
1288
+ else {
1289
+ logger.error({ err }, "[eliza-api] Wallet core route bridge failed");
1290
+ error(res, getErrorMessage(err), 500);
1291
+ return;
1292
+ }
1293
+ }
1294
+ if (stewardWalletCoreRoutes) {
1295
+ try {
1296
+ if (await stewardWalletCoreRoutes(req, res, {
1297
+ runtime: state.runtime ?? null,
1298
+ restartRuntime,
1299
+ scheduleRuntimeRestart,
1300
+ })) {
1301
+ return;
1302
+ }
1303
+ }
1304
+ catch (err) {
1305
+ logger.error({ err }, "[eliza-api] Wallet core route bridge failed");
1306
+ error(res, getErrorMessage(err), 500);
1307
+ return;
1308
+ }
1309
+ }
1310
+ if (await handleWalletRoutes({
1311
+ req,
1312
+ res,
1313
+ method,
1314
+ pathname,
1315
+ config: loadElizaConfig(),
1316
+ saveConfig: saveElizaConfig,
1317
+ ensureWalletKeysInEnvAndConfig,
1318
+ resolveWalletExportRejection,
1319
+ restartRuntime,
1320
+ scheduleRuntimeRestart,
1321
+ readJsonBody,
1322
+ json,
1323
+ error,
1324
+ runtime: state.runtime ?? null,
1325
+ })) {
1326
+ return;
1327
+ }
1328
+ }
1329
+ // ═══════════════════════════════════════════════════════════════════════
1330
+ // ERC-8004 Registry, Agent self-status, Privy — delegated to agent-status-routes.ts
1331
+ // ═══════════════════════════════════════════════════════════════════════
1332
+ if (await handleAgentStatusRoutes({
1333
+ req,
1334
+ res,
1335
+ method,
1336
+ pathname,
1337
+ url,
1338
+ state: coerce(state),
1339
+ json,
1340
+ error,
1341
+ readJsonBody,
1342
+ deps: {
1343
+ getWalletAddresses,
1344
+ resolveWalletCapabilityStatus: coerce(resolveWalletCapabilityStatus),
1345
+ resolveWalletRpcReadiness: coerce(resolveWalletRpcReadiness),
1346
+ resolveTradePermissionMode,
1347
+ canUseLocalTradeExecution: coerce(canUseLocalTradeExecution),
1348
+ detectRuntimeModel: coerce(detectRuntimeModel),
1349
+ resolveProviderFromModel,
1350
+ getGlobalAwarenessRegistry: coerce(getGlobalAwarenessRegistry),
1351
+ isPrivyWalletProvisioningEnabled,
1352
+ ensurePrivyWalletsForCustomUser: coerce(ensurePrivyWalletsForCustomUser),
1353
+ RegistryService,
1354
+ },
1355
+ })) {
1356
+ return;
1357
+ }
1358
+ // ── Update routes (extracted to update-routes.ts) ─────────────────────
1359
+ if (await handleUpdateRoutes({
1360
+ req,
1361
+ res,
1362
+ method,
1363
+ pathname,
1364
+ url,
1365
+ state,
1366
+ json,
1367
+ error,
1368
+ readJsonBody,
1369
+ saveElizaConfig,
1370
+ })) {
1371
+ return;
1372
+ }
1373
+ // ── Connector routes (extracted to connector-routes.ts) ──────────────
1374
+ if (await handleConnectorRoutes({
1375
+ req,
1376
+ res,
1377
+ method,
1378
+ pathname,
1379
+ state,
1380
+ json,
1381
+ error,
1382
+ readJsonBody,
1383
+ saveElizaConfig,
1384
+ redactConfigSecrets,
1385
+ isBlockedObjectKey,
1386
+ cloneWithoutBlockedObjectKeys,
1387
+ onConnectorDisconnect: async (connectorName) => {
1388
+ // Disconnect cascades to the n8n credential cache: without this,
1389
+ // credStore.get() returns a stale n8n credential id and the next
1390
+ // workflow generation silently bypasses the missing-credentials
1391
+ // banner.
1392
+ const credTypes = credTypesForConnector(connectorName);
1393
+ if (credTypes.length === 0)
1394
+ return;
1395
+ const runtime = state.runtime;
1396
+ if (!runtime)
1397
+ return;
1398
+ const credStore = runtime.getService("n8n_credential_store");
1399
+ const deleteCred = credStore?.delete;
1400
+ if (!deleteCred)
1401
+ return;
1402
+ const userId = runtime.agentId;
1403
+ await Promise.all(credTypes.map((credType) => deleteCred(userId, credType).catch(() => {
1404
+ /* per-credType failure shouldn't block siblings */
1405
+ })));
1406
+ },
1407
+ })) {
1408
+ return;
1409
+ }
1410
+ // ── WhatsApp routes (/api/whatsapp/*) ────────────────────────────────────
1411
+ // Moved to @elizaos/plugin-whatsapp setup-routes.ts (registered via Plugin.routes).
1412
+ // ── Inbox routes (/api/inbox/*) ───────────────────────────────
1413
+ // Cross-channel read-only feed that merges connector messages
1414
+ // (imessage, telegram, discord, whatsapp, etc.) into a single
1415
+ // time-ordered view. See api/inbox-routes.ts for details.
1416
+ const blueBubblesHandled = await handleBlueBubblesRoute(req, res, pathname, method, {
1417
+ runtime: state.runtime
1418
+ ? {
1419
+ getService: (type) => state.runtime.getService(type),
1420
+ }
1421
+ : undefined,
1422
+ }, { json, error, readJsonBody });
1423
+ if (blueBubblesHandled)
1424
+ return;
1425
+ if (pathname.startsWith("/api/inbox")) {
1426
+ const handled = await handleInboxRoute(req, res, pathname, method, { runtime: state.runtime ?? null }, { json, error, readJsonBody });
1427
+ if (handled)
1428
+ return;
1429
+ }
1430
+ // ── iMessage routes (/api/imessage/*) ─────────────────────────────────
1431
+ // Extracted to @elizaos/plugin-imessage setup-routes.ts (Plugin.routes).
1432
+ // The plugin registers rawPath routes that serve the same legacy paths.
1433
+ // ── Cloud relay status (/api/cloud/relay-status) ──────────────────────
1434
+ if (pathname === "/api/cloud/relay-status") {
1435
+ const handled = await handleCloudRelayRoute(req, res, pathname, method, {
1436
+ runtime: state.runtime
1437
+ ? {
1438
+ getService: (type) => state.runtime.getService(type),
1439
+ }
1440
+ : undefined,
1441
+ }, { json, error, readJsonBody });
1442
+ if (handled)
1443
+ return;
1444
+ }
1445
+ // Telegram setup routes: now handled by @elizaos/plugin-telegram via
1446
+ // runtime plugin routes (rawPath: true). See plugin-telegram/src/setup-routes.ts.
1447
+ // ── Telegram account routes (/api/telegram-account/*) ────────────────
1448
+ if (pathname.startsWith("/api/telegram-account")) {
1449
+ const routeState = {
1450
+ config: state.config,
1451
+ saveConfig: () => saveElizaConfig(state.config),
1452
+ runtime: state.runtime
1453
+ ? {
1454
+ getService: (type) => state.runtime.getService(type),
1455
+ getSetting: (key) => state.runtime.getSetting(key),
1456
+ }
1457
+ : undefined,
1458
+ telegramAccountAuthSession: state.telegramAccountAuthSession,
1459
+ };
1460
+ const handled = await handleTelegramAccountRoute(req, res, pathname, method, routeState, { json, error, readJsonBody }, {
1461
+ createAuthSession: (options) => new TelegramAccountAuthSession(options),
1462
+ authStateExists: telegramAccountAuthStateExists,
1463
+ sessionExists: telegramAccountSessionExists,
1464
+ clearAuthState: clearTelegramAccountAuthState,
1465
+ clearSession: clearTelegramAccountSession,
1466
+ });
1467
+ state.telegramAccountAuthSession =
1468
+ routeState.telegramAccountAuthSession ?? null;
1469
+ if (handled)
1470
+ return;
1471
+ }
1472
+ // ── Discord Local routes (/api/discord-local/*) — extracted to @elizaos/plugin-discord (setup-routes.ts) ──
1473
+ // ── Signal routes (/api/signal/*) — extracted to @elizaos/plugin-signal (setup-routes.ts) ──
1474
+ // ── Restart ──────────────────────────────────────────────────────────
1475
+ if (method === "POST" && pathname === "/api/restart") {
1476
+ state.agentState = "restarting";
1477
+ state.startup = { ...state.startup, phase: "restarting" };
1478
+ state.broadcastStatus?.();
1479
+ json(res, { ok: true, message: "Restarting...", restarting: true });
1480
+ setTimeout(() => process.exit(0), 1000);
1481
+ return;
1482
+ }
1483
+ // ── TTS routes (extracted to tts-routes.ts) ──────────────────────────
1484
+ if (await handleTtsRoutes({
1485
+ req,
1486
+ res,
1487
+ method,
1488
+ pathname,
1489
+ state,
1490
+ json,
1491
+ error,
1492
+ readJsonBody,
1493
+ isRedactedSecretValue,
1494
+ fetchWithTimeoutGuard,
1495
+ streamResponseBodyWithByteLimit: coerce(streamResponseBodyWithByteLimit),
1496
+ responseContentLength,
1497
+ isAbortError,
1498
+ ELEVENLABS_FETCH_TIMEOUT_MS: 30_000,
1499
+ ELEVENLABS_AUDIO_MAX_BYTES: 20 * 1_048_576,
1500
+ })) {
1501
+ return;
1502
+ }
1503
+ // ── Avatar routes (extracted to avatar-routes.ts) ───────────────────
1504
+ if (await handleAvatarRoutes({
1505
+ req,
1506
+ res,
1507
+ method,
1508
+ pathname,
1509
+ json,
1510
+ error,
1511
+ })) {
1512
+ return;
1513
+ }
1514
+ // ═══════════════════════════════════════════════════════════════════════
1515
+ // Config routes (extracted to config-routes.ts)
1516
+ // ═══════════════════════════════════════════════════════════════════════
1517
+ if (pathname === "/api/config" ||
1518
+ pathname === "/api/config/schema" ||
1519
+ pathname === "/api/config/reload") {
1520
+ if (await handleConfigRoutes({
1521
+ req,
1522
+ res,
1523
+ method,
1524
+ pathname,
1525
+ url,
1526
+ config: state.config,
1527
+ runtime: state.runtime,
1528
+ json,
1529
+ error,
1530
+ readJsonBody,
1531
+ redactConfigSecrets,
1532
+ isBlockedObjectKey,
1533
+ stripRedactedPlaceholderValuesDeep,
1534
+ patchTouchesProviderSelection,
1535
+ BLOCKED_ENV_KEYS,
1536
+ CONFIG_WRITE_ALLOWED_TOP_KEYS,
1537
+ resolveMcpServersRejection,
1538
+ resolveMcpTerminalAuthorizationRejection,
1539
+ })) {
1540
+ return;
1541
+ }
1542
+ }
1543
+ // ── Permissions extra routes (extracted to permissions-routes-extra.ts) ──
1544
+ if (await handlePermissionsExtraRoutes({
1545
+ req,
1546
+ res,
1547
+ method,
1548
+ pathname,
1549
+ state: coerce(state),
1550
+ json,
1551
+ error,
1552
+ readJsonBody,
1553
+ saveElizaConfig,
1554
+ resolveTradePermissionMode: coerce(resolveTradePermissionMode),
1555
+ canUseLocalTradeExecution: coerce(canUseLocalTradeExecution),
1556
+ parseAgentAutomationMode,
1557
+ persistAgentAutomationMode: coerce(persistAgentAutomationMode),
1558
+ })) {
1559
+ return;
1560
+ }
1561
+ if (await handlePermissionRoutes({
1562
+ req,
1563
+ res,
1564
+ method,
1565
+ pathname,
1566
+ state,
1567
+ readJsonBody,
1568
+ json,
1569
+ error,
1570
+ saveConfig: (config) => {
1571
+ saveElizaConfig(config);
1572
+ },
1573
+ scheduleRuntimeRestart,
1574
+ })) {
1575
+ return;
1576
+ }
1577
+ if (await handleRelationshipsRoutes({
1578
+ req,
1579
+ res,
1580
+ method,
1581
+ pathname,
1582
+ runtime: state.runtime ?? undefined,
1583
+ readJsonBody,
1584
+ json,
1585
+ error,
1586
+ })) {
1587
+ return;
1588
+ }
1589
+ if (await handleBrowserWorkspaceRoutes({
1590
+ req,
1591
+ res,
1592
+ method,
1593
+ pathname,
1594
+ readJsonBody,
1595
+ json,
1596
+ error,
1597
+ })) {
1598
+ return;
1599
+ }
1600
+ // Agent self-status, Privy, and ERC-8004 registry routes are now handled
1601
+ // by handleAgentStatusRoutes above.
1602
+ // ═══════════════════════════════════════════════════════════════════════
1603
+ // Subscription status route
1604
+ // ═══════════════════════════════════════════════════════════════════════
1605
+ // ── GET /api/subscription/status (direct handler fallback) ─────────────
1606
+ // Note: subscription-routes.ts handles /api/subscription/* but this is
1607
+ // kept here in case the prefix routing is not active.
1608
+ // (handleSubscriptionRoutes already covers this, so no duplicate needed.)
1609
+ // ═══════════════════════════════════════════════════════════════════════
1610
+ // BSC trade routes and wallet trade execute — now handled by
1611
+ // @elizaos/app-steward plugin routes. See apps/app-steward/src/plugin.ts.
1612
+ // ═══════════════════════════════════════════════════════════════════════
1613
+ if (isLifeOpsCloudPluginRoute(pathname) &&
1614
+ (await tryHandleRuntimePluginRoute({
1615
+ req,
1616
+ res,
1617
+ method,
1618
+ pathname,
1619
+ url,
1620
+ runtime: state.runtime,
1621
+ isAuthorized: () => isAuthorized(req),
1622
+ }))) {
1623
+ return;
1624
+ }
1625
+ // ── Cloud routes (/api/cloud/*) ─────────────────────────────────────────
1626
+ if (pathname.startsWith("/api/cloud/")) {
1627
+ const xRelayHandled = await handleXRelayRoute(req, res, pathname, method, {
1628
+ config: state.config,
1629
+ runtime: state.runtime,
1630
+ });
1631
+ if (xRelayHandled)
1632
+ return;
1633
+ const billingHandled = await handleCloudBillingRoute(req, res, pathname, method, { config: state.config, runtime: state.runtime });
1634
+ if (billingHandled)
1635
+ return;
1636
+ // Compat proxy routes — transparent proxy to Eliza Cloud v2 /api/compat/*
1637
+ const compatHandled = await handleCloudCompatRoute(req, res, pathname, method, { config: state.config, runtime: state.runtime });
1638
+ if (compatHandled)
1639
+ return;
1640
+ const cloudState = {
1641
+ config: state.config,
1642
+ cloudManager: state.cloudManager,
1643
+ runtime: state.runtime,
1644
+ saveConfig: saveElizaConfig,
1645
+ createTelemetrySpan: createIntegrationTelemetrySpan,
1646
+ restartRuntime,
1647
+ };
1648
+ const handled = await handleCloudRoute(req, res, pathname, method, cloudState);
1649
+ if (handled)
1650
+ return;
1651
+ }
1652
+ // ── Sandbox routes (/api/sandbox/*) ────────────────────────────────────
1653
+ if (pathname.startsWith("/api/sandbox")) {
1654
+ const handled = await handleSandboxRoute(req, res, pathname, method, {
1655
+ sandboxManager: state.sandboxManager,
1656
+ });
1657
+ if (handled)
1658
+ return;
1659
+ }
1660
+ // ═══════════════════════════════════════════════════════════════════════
1661
+ // Conversation routes (/api/conversations/*) — delegated to conversation-routes.ts
1662
+ // ═══════════════════════════════════════════════════════════════════════
1663
+ if (pathname.startsWith("/api/conversations")) {
1664
+ // Cast state — ConversationRouteState is a compatible subset of ServerState
1665
+ const handled = await handleConversationRoutes({
1666
+ req,
1667
+ res,
1668
+ method,
1669
+ pathname,
1670
+ readJsonBody,
1671
+ json,
1672
+ error,
1673
+ state: coerce(state),
1674
+ });
1675
+ if (handled)
1676
+ return;
1677
+ }
1678
+ // ═══════════════════════════════════════════════════════════════════════
1679
+ // OpenAI-compatible routes (/v1/*) — delegated to chat-routes.ts
1680
+ // ═══════════════════════════════════════════════════════════════════════
1681
+ if (pathname.startsWith("/v1/")) {
1682
+ // Cast state — ChatRouteState is a compatible subset of ServerState
1683
+ const handled = await handleChatRoutes({
1684
+ req,
1685
+ res,
1686
+ method,
1687
+ pathname,
1688
+ readJsonBody,
1689
+ json,
1690
+ error,
1691
+ state: coerce(state),
1692
+ });
1693
+ if (handled)
1694
+ return;
1695
+ }
1696
+ // ── Database management API ─────────────────────────────────────────────
1697
+ if (pathname.startsWith("/api/database/")) {
1698
+ const handled = await handleDatabaseRoute(req, res, state.runtime, pathname);
1699
+ if (handled)
1700
+ return;
1701
+ }
1702
+ // ── Trajectory management API ──────────────────────────────────────────
1703
+ if (pathname.startsWith("/api/trajectories")) {
1704
+ if (!state.runtime) {
1705
+ sendJsonError(res, "Agent runtime not started yet", 503);
1706
+ return;
1707
+ }
1708
+ const handled = await handleTrajectoryRoute(req, res, state.runtime, pathname, method);
1709
+ if (handled)
1710
+ return;
1711
+ }
1712
+ // ── Coding Agent API (/api/coding-agents/*, /api/workspace/*, /api/issues/*) ──
1713
+ if (!state.runtime &&
1714
+ method === "GET" &&
1715
+ pathname === "/api/coding-agents/coordinator/status") {
1716
+ error(res, "Coding agent runtime unavailable", 503);
1717
+ return;
1718
+ }
1719
+ if (!state.runtime &&
1720
+ method === "GET" &&
1721
+ pathname === "/api/coding-agents/preflight") {
1722
+ error(res, "Coding agent runtime unavailable", 503);
1723
+ return;
1724
+ }
1725
+ if (!state.runtime &&
1726
+ method === "GET" &&
1727
+ pathname.startsWith("/api/coding-agents")) {
1728
+ error(res, "Coding agent runtime unavailable", 503);
1729
+ return;
1730
+ }
1731
+ if (state.runtime &&
1732
+ (pathname.startsWith("/api/coding-agents") ||
1733
+ pathname.startsWith("/api/workspace") ||
1734
+ pathname.startsWith("/api/issues"))) {
1735
+ const isCoordinatorStatusRoute = method === "GET" && pathname === "/api/coding-agents/coordinator/status";
1736
+ const isPreflightRoute = method === "GET" && pathname === "/api/coding-agents/preflight";
1737
+ // Try to dynamically load the route handler from the local plugin first
1738
+ let handled = false;
1739
+ // Lazily start PTY_SERVICE if it was registered but not yet started.
1740
+ // The core runtime only starts services on-demand via getServiceLoadPromise,
1741
+ // but the orchestrator plugin's route handler checks getService() (which
1742
+ // only returns already-started instances). Without this kick, the plugin
1743
+ // sees null and returns 503 for every route.
1744
+ if (!state.runtime.getService("PTY_SERVICE") &&
1745
+ state.runtime.hasService("PTY_SERVICE")) {
1746
+ try {
1747
+ await state.runtime.getServiceLoadPromise("PTY_SERVICE");
1748
+ wireCodingAgentBridgesNow(state);
1749
+ }
1750
+ catch {
1751
+ // Service start failed — the fallback handler will surface 503 unavailability.
1752
+ }
1753
+ }
1754
+ const ptyService = state.runtime.getService("PTY_SERVICE");
1755
+ const coordinator = getCoordinatorFromRuntime(state.runtime);
1756
+ const codeTaskService = state.runtime.getService("CODE_TASK");
1757
+ const isTaskRoute = method === "GET" && pathname === "/api/coding-agents/tasks";
1758
+ const isTaskDetailRoute = method === "GET" && /^\/api\/coding-agents\/tasks\/[^/]+$/.test(pathname);
1759
+ const isSessionsRoute = method === "GET" && pathname === "/api/coding-agents/sessions";
1760
+ const isSessionDetailRoute = method === "GET" &&
1761
+ /^\/api\/coding-agents\/sessions\/[^/]+$/.test(pathname);
1762
+ const isScratchRoute = method === "GET" && pathname === "/api/coding-agents/scratch";
1763
+ const isAgentListRoute = method === "GET" && pathname === "/api/coding-agents";
1764
+ // The settings UI and startup hydration poll these routes early. When the
1765
+ // PTY/coordinator services are not ready yet, surface explicit 503
1766
+ // unavailability rather than synthesizing success-shaped empty payloads.
1767
+ if ((isCoordinatorStatusRoute && !coordinator) ||
1768
+ (isPreflightRoute && !ptyService) ||
1769
+ ((isTaskRoute ||
1770
+ isTaskDetailRoute ||
1771
+ isScratchRoute ||
1772
+ isAgentListRoute) &&
1773
+ !codeTaskService) ||
1774
+ ((isSessionsRoute || isSessionDetailRoute) && !ptyService)) {
1775
+ handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
1776
+ }
1777
+ // Prefer @elizaos/plugin-agent-orchestrator route handler so the full coordinator
1778
+ // contract is served from the embedded runtime (replaces the old plugin).
1779
+ if (!handled)
1780
+ try {
1781
+ const orchestratorPlugin = agentOrchestratorCompat;
1782
+ if (orchestratorPlugin?.createCodingAgentRouteHandler) {
1783
+ const coordinator = orchestratorPlugin.getCoordinator?.(state.runtime);
1784
+ const handler = orchestratorPlugin.createCodingAgentRouteHandler(state.runtime, coordinator);
1785
+ handled = await handler(req, res, pathname, req.method ?? "GET");
1786
+ }
1787
+ }
1788
+ catch {
1789
+ // Compat layer unavailable — final fallback below handles coding-agents routes.
1790
+ }
1791
+ // Final fallback: handle coding-agents routes using the plugin's CODE_TASK compatibility service.
1792
+ if (!handled && pathname.startsWith("/api/coding-agents")) {
1793
+ handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
1794
+ }
1795
+ if (handled)
1796
+ return;
1797
+ }
1798
+ if (await handleCloudStatusRoutes({
1799
+ req,
1800
+ res,
1801
+ method,
1802
+ pathname,
1803
+ config: state.config,
1804
+ runtime: state.runtime,
1805
+ json,
1806
+ })) {
1807
+ return;
1808
+ }
1809
+ // ── App routes (/api/apps/*) ──────────────────────────────────────────
1810
+ if (await handleAppsRoutes({
1811
+ req,
1812
+ res,
1813
+ method,
1814
+ pathname,
1815
+ url,
1816
+ appManager: {
1817
+ listAvailable: (pluginManager) => state.appManager.listAvailable(pluginManager),
1818
+ search: (pluginManager, query, limit) => state.appManager.search(pluginManager, query, limit),
1819
+ listInstalled: (pluginManager) => state.appManager.listInstalled(pluginManager),
1820
+ listRuns: (runtime) => state.appManager.listRuns(runtime && typeof runtime === "object"
1821
+ ? runtime
1822
+ : null),
1823
+ getRun: (runId, runtime) => state.appManager.getRun(runId, runtime && typeof runtime === "object"
1824
+ ? runtime
1825
+ : null),
1826
+ attachRun: (runId, runtime) => state.appManager.attachRun(runId, runtime && typeof runtime === "object"
1827
+ ? runtime
1828
+ : null),
1829
+ detachRun: (runId) => state.appManager.detachRun(runId),
1830
+ launch: (pluginManager, name, onProgress, runtime) => state.appManager.launch(pluginManager, name, onProgress, runtime && typeof runtime === "object"
1831
+ ? runtime
1832
+ : null),
1833
+ stop: (pluginManager, name, runId, runtime) => state.appManager.stop(pluginManager, name, runId, runtime && typeof runtime === "object"
1834
+ ? runtime
1835
+ : null),
1836
+ recordHeartbeat: (runId) => state.appManager.recordHeartbeat(runId),
1837
+ getInfo: (pluginManager, name) => state.appManager.getInfo(pluginManager, name),
1838
+ },
1839
+ getPluginManager: () => getPluginManagerForState(state),
1840
+ parseBoundedLimit,
1841
+ readJsonBody,
1842
+ json,
1843
+ error,
1844
+ runtime: state.runtime,
1845
+ favoriteApps: {
1846
+ read: () => readFavoriteAppsFromConfig(state.config),
1847
+ write: (apps) => writeFavoriteAppsToConfig(state.config, apps),
1848
+ },
1849
+ })) {
1850
+ return;
1851
+ }
1852
+ if (await handleAppPackageRoutes({
1853
+ req,
1854
+ res,
1855
+ method,
1856
+ pathname,
1857
+ url,
1858
+ readJsonBody,
1859
+ json,
1860
+ error,
1861
+ runtime: state.runtime,
1862
+ })) {
1863
+ return;
1864
+ }
1865
+ // ═══════════════════════════════════════════════════════════════════════
1866
+ // ═══════════════════════════════════════════════════════════════════════
1867
+ // Workbench routes (extracted to workbench-routes.ts)
1868
+ // ═══════════════════════════════════════════════════════════════════════
1869
+ if (pathname.startsWith("/api/workbench")) {
1870
+ if (await handleWorkbenchRoutes({
1871
+ req,
1872
+ res,
1873
+ method,
1874
+ pathname,
1875
+ url,
1876
+ state: coerce(state),
1877
+ json,
1878
+ error,
1879
+ readJsonBody,
1880
+ toWorkbenchTask: coerce(toWorkbenchTask),
1881
+ toWorkbenchTodo: coerce(toWorkbenchTodo),
1882
+ normalizeTags,
1883
+ readTaskMetadata,
1884
+ readTaskCompleted,
1885
+ parseNullableNumber,
1886
+ asObject,
1887
+ decodePathComponent,
1888
+ taskToTriggerSummary: coerce(taskToTriggerSummary),
1889
+ listTriggerTasks: coerce(listTriggerTasks),
1890
+ })) {
1891
+ return;
1892
+ }
1893
+ }
1894
+ // ═══════════════════════════════════════════════════════════════════════
1895
+ // Life-ops routes: now served via lifeopsPlugin.routes (rawPath) on the
1896
+ // runtime plugin route system. See app-lifeops/src/routes/plugin.ts.
1897
+ // ═══════════════════════════════════════════════════════════════════════
1898
+ // ═══════════════════════════════════════════════════════════════════════
1899
+ // MCP routes (extracted to mcp-routes.ts)
1900
+ // ═══════════════════════════════════════════════════════════════════════
1901
+ if (pathname.startsWith("/api/mcp")) {
1902
+ if (await handleMcpRoutes({
1903
+ req,
1904
+ res,
1905
+ method,
1906
+ pathname,
1907
+ url,
1908
+ state,
1909
+ json,
1910
+ error,
1911
+ readJsonBody,
1912
+ saveElizaConfig,
1913
+ redactDeep,
1914
+ isBlockedObjectKey,
1915
+ cloneWithoutBlockedObjectKeys,
1916
+ resolveMcpServersRejection,
1917
+ resolveMcpTerminalAuthorizationRejection,
1918
+ decodePathComponent,
1919
+ })) {
1920
+ return;
1921
+ }
1922
+ }
1923
+ // ═══════════════════════════════════════════════════════════════════════
1924
+ // Misc routes (extracted to misc-routes.ts)
1925
+ // ═══════════════════════════════════════════════════════════════════════
1926
+ if (await handleMiscRoutes({
1927
+ req,
1928
+ res,
1929
+ method,
1930
+ pathname,
1931
+ url,
1932
+ state: coerce(state),
1933
+ json,
1934
+ error,
1935
+ readJsonBody,
1936
+ AGENT_EVENT_ALLOWED_STREAMS,
1937
+ resolveTerminalRunRejection,
1938
+ resolveTerminalRunClientId,
1939
+ isSharedTerminalClientId,
1940
+ activeTerminalRunCount,
1941
+ setActiveTerminalRunCount: (delta) => {
1942
+ activeTerminalRunCount = Math.max(0, activeTerminalRunCount + delta);
1943
+ },
1944
+ })) {
1945
+ return;
1946
+ }
1947
+ if (await handleWhatsAppRoute(req, res, pathname, method, {
1948
+ whatsappPairingSessions: state.whatsappPairingSessions ?? new Map(),
1949
+ broadcastWs: state.broadcastWs ?? undefined,
1950
+ config: state.config,
1951
+ runtime: state.runtime ?? undefined,
1952
+ saveConfig: () => saveElizaConfig(state.config),
1953
+ workspaceDir: resolveDefaultAgentWorkspaceDir(),
1954
+ }, {
1955
+ sanitizeAccountId: sanitizeWhatsAppAccountId,
1956
+ whatsappAuthExists,
1957
+ whatsappLogout,
1958
+ createWhatsAppPairingSession: (options) => new WhatsAppPairingSession(options),
1959
+ })) {
1960
+ return;
1961
+ }
1962
+ // ── elizaOS plugin HTTP routes (runtime.routes, e.g. /music-player/*) ───
1963
+ if (await tryHandleRuntimePluginRoute({
1964
+ req,
1965
+ res,
1966
+ method,
1967
+ pathname,
1968
+ url,
1969
+ runtime: state.runtime,
1970
+ isAuthorized: () => isAuthorized(req),
1971
+ })) {
1972
+ return;
1973
+ }
1974
+ // ── Connector plugin routes (dynamically registered) ────────────────────
1975
+ for (const handler of state.connectorRouteHandlers) {
1976
+ const handled = await handler(req, res, pathname, method);
1977
+ if (handled)
1978
+ return;
1979
+ }
1980
+ // ── Music player compatibility fallback ─────────────────────────────────
1981
+ if (tryHandleMusicPlayerStatusFallback({
1982
+ pathname,
1983
+ method,
1984
+ runtime: state.runtime,
1985
+ res,
1986
+ })) {
1987
+ return;
1988
+ }
1989
+ // ── Fallback ────────────────────────────────────────────────────────────
1990
+ error(res, "Not found", 404);
1991
+ }
1992
+ // ---------------------------------------------------------------------------
1993
+ // Early log capture — re-exported from the standalone module so existing
1994
+ // callers that `import { captureEarlyLogs } from "../../../../src/api/server"` keep
1995
+ // working. The implementation lives in `./early-logs.ts` to avoid pulling
1996
+ // the entire server dependency graph into lightweight consumers (e.g. the
1997
+ // headless `startEliza()` path).
1998
+ // ---------------------------------------------------------------------------
1999
+ import { flushEarlyLogs } from "./early-logs.js";
2000
+ // ---------------------------------------------------------------------------
2001
+ // Server start
2002
+ // ---------------------------------------------------------------------------
2003
+ export async function startApiServer(opts) {
2004
+ const apiStartTime = Date.now();
2005
+ console.log(`[eliza-api] startApiServer called`);
2006
+ const port = opts?.port ?? resolveServerOnlyPort(process.env);
2007
+ const host = resolveApiBindHost(process.env);
2008
+ ensureApiTokenForBindHost(host);
2009
+ console.log(`[eliza-api] Token check done (${Date.now() - apiStartTime}ms)`);
2010
+ let config;
2011
+ try {
2012
+ config = loadElizaConfig();
2013
+ }
2014
+ catch (err) {
2015
+ logger.warn(`[eliza-api] Failed to load config, starting with defaults: ${err instanceof Error ? err.message : err}`);
2016
+ config = {};
2017
+ }
2018
+ console.log(`[eliza-api] Config loaded (${Date.now() - apiStartTime}ms)`);
2019
+ // Wallet/inventory routes read from process.env at request-time.
2020
+ // Hydrate persisted config.env values so addresses remain visible after restarts.
2021
+ const persistedEnv = config.env;
2022
+ const envKeysToHydrate = [
2023
+ "ELIZA_WALLET_OS_STORE",
2024
+ "EVM_PRIVATE_KEY",
2025
+ "SOLANA_PRIVATE_KEY",
2026
+ "ALCHEMY_API_KEY",
2027
+ "INFURA_API_KEY",
2028
+ "ANKR_API_KEY",
2029
+ "HELIUS_API_KEY",
2030
+ "BIRDEYE_API_KEY",
2031
+ "SOLANA_RPC_URL",
2032
+ ];
2033
+ for (const key of envKeysToHydrate) {
2034
+ const value = persistedEnv?.[key];
2035
+ if (typeof value === "string" && value.trim() && !process.env[key]) {
2036
+ process.env[key] = value.trim();
2037
+ }
2038
+ }
2039
+ // Optional auto-provision mode for legacy environments. Disabled by default
2040
+ // so startup does not silently create new wallets when keys are missing.
2041
+ const walletAutoProvisionRaw = process.env.ELIZA_WALLET_AUTO_PROVISION?.trim().toLowerCase();
2042
+ const walletAutoProvisionEnabled = walletAutoProvisionRaw === "1" ||
2043
+ walletAutoProvisionRaw === "true" ||
2044
+ walletAutoProvisionRaw === "on" ||
2045
+ walletAutoProvisionRaw === "yes";
2046
+ if (walletAutoProvisionEnabled && ensureWalletKeysInEnvAndConfig(config)) {
2047
+ try {
2048
+ saveElizaConfig(config);
2049
+ }
2050
+ catch (err) {
2051
+ logger.warn(`[eliza-api] Failed to persist generated wallet keys: ${err instanceof Error ? err.message : err}`);
2052
+ }
2053
+ }
2054
+ // Pre-load steward wallet addresses so getWalletAddresses() has them
2055
+ // available synchronously from the start (cloud-provisioned containers).
2056
+ await initStewardWalletCache();
2057
+ // Warn when wallet private keys live in plaintext config and the OS secure
2058
+ // store is not enabled. This nudges operators toward ELIZA_WALLET_OS_STORE=1.
2059
+ {
2060
+ const hasPlaintextKeys = (typeof persistedEnv?.EVM_PRIVATE_KEY === "string" &&
2061
+ persistedEnv.EVM_PRIVATE_KEY.trim()) ||
2062
+ (typeof persistedEnv?.SOLANA_PRIVATE_KEY === "string" &&
2063
+ persistedEnv.SOLANA_PRIVATE_KEY.trim());
2064
+ const osStoreRaw = process.env.ELIZA_WALLET_OS_STORE?.trim().toLowerCase();
2065
+ const osStoreEnabled = osStoreRaw === "1" ||
2066
+ osStoreRaw === "true" ||
2067
+ osStoreRaw === "on" ||
2068
+ osStoreRaw === "yes";
2069
+ if (hasPlaintextKeys && !osStoreEnabled) {
2070
+ logger.warn("[wallet] Private keys are stored in plaintext config. " +
2071
+ "Set ELIZA_WALLET_OS_STORE=1 to use the OS secure store instead.");
2072
+ }
2073
+ }
2074
+ const plugins = discoverPluginsFromManifest();
2075
+ console.log(`[eliza-api] Plugins discovered (${Date.now() - apiStartTime}ms)`);
2076
+ const workspaceDir = config.agents?.defaults?.workspace ?? resolveDefaultAgentWorkspaceDir();
2077
+ const hasRuntime = opts?.runtime != null;
2078
+ const initialAgentState = hasRuntime
2079
+ ? "running"
2080
+ : (opts?.initialAgentState ?? "not_started");
2081
+ const initialStartup = initialAgentState === "running"
2082
+ ? { phase: "running", attempt: 0 }
2083
+ : initialAgentState === "starting"
2084
+ ? { phase: "starting", attempt: 0 }
2085
+ : { phase: "idle", attempt: 0 };
2086
+ const agentName = hasRuntime
2087
+ ? (opts.runtime?.character.name ?? resolveDefaultAgentName(config))
2088
+ : resolveDefaultAgentName(config);
2089
+ const deletedConversationIds = readDeletedConversationIdsFromState();
2090
+ const state = {
2091
+ runtime: opts?.runtime ?? null,
2092
+ config,
2093
+ agentState: initialAgentState,
2094
+ agentName,
2095
+ model: hasRuntime
2096
+ ? detectRuntimeModel(opts.runtime ?? null, config)
2097
+ : undefined,
2098
+ startedAt: hasRuntime || initialAgentState === "starting" ? Date.now() : undefined,
2099
+ startup: initialStartup,
2100
+ plugins,
2101
+ // Filled asynchronously after server start to keep startup latency low.
2102
+ skills: [],
2103
+ logBuffer: [],
2104
+ eventBuffer: [],
2105
+ nextEventId: 1,
2106
+ chatRoomId: null,
2107
+ chatUserId: null,
2108
+ chatConnectionReady: null,
2109
+ chatConnectionPromise: null,
2110
+ adminEntityId: null,
2111
+ conversations: new Map(),
2112
+ conversationRestorePromise: null,
2113
+ deletedConversationIds,
2114
+ cloudManager: null,
2115
+ sandboxManager: null,
2116
+ appManager: new AppManager(),
2117
+ trainingService: null,
2118
+ registryService: null,
2119
+ dropService: null,
2120
+ shareIngestQueue: [],
2121
+ broadcastStatus: null,
2122
+ broadcastWs: null,
2123
+ broadcastWsToClientId: null,
2124
+ activeConversationId: null,
2125
+ permissionStates: {},
2126
+ shellEnabled: config.features?.shellEnabled !== false,
2127
+ agentAutomationMode: resolveAgentAutomationModeFromConfig(config),
2128
+ tradePermissionMode: resolveTradePermissionMode(config),
2129
+ pendingRestartReasons: [],
2130
+ connectorRouteHandlers: [],
2131
+ connectorHealthMonitor: null,
2132
+ whatsappPairingSessions: new Map(),
2133
+ };
2134
+ const trainingServiceCtor = await resolveTrainingServiceCtor();
2135
+ const trainingServiceOptions = {
2136
+ getRuntime: () => state.runtime,
2137
+ getConfig: () => state.config,
2138
+ setConfig: (nextConfig) => {
2139
+ state.config = nextConfig;
2140
+ saveElizaConfig(nextConfig);
2141
+ },
2142
+ };
2143
+ if (trainingServiceCtor) {
2144
+ state.trainingService = new trainingServiceCtor(trainingServiceOptions);
2145
+ }
2146
+ else {
2147
+ logger.info("[eliza-api] Training service package unavailable; training routes will be disabled");
2148
+ }
2149
+ // Register immediately so /api/training routes are available without a startup race.
2150
+ const configuredAdminEntityId = config.agents?.defaults?.adminEntityId;
2151
+ if (configuredAdminEntityId && isUuidLike(configuredAdminEntityId)) {
2152
+ state.adminEntityId = configuredAdminEntityId;
2153
+ state.chatUserId = state.adminEntityId;
2154
+ }
2155
+ else if (configuredAdminEntityId) {
2156
+ logger.warn(`[eliza-api] Ignoring invalid agents.defaults.adminEntityId "${configuredAdminEntityId}"`);
2157
+ }
2158
+ // Wire the app manager to the runtime if already running
2159
+ if (state.runtime) {
2160
+ // AppManager doesn't need a runtime reference — it just installs plugins
2161
+ }
2162
+ // Start the periodic stale-run sweeper that stops app runs whose UI
2163
+ // heartbeat has gone silent (e.g. the user closed the tab without
2164
+ // pressing Stop). Without this, plugins that own a setInterval — like
2165
+ // the Defense-of-the-Agents game loop — would tick forever after the
2166
+ // browser disappeared. The sweeper invokes the same `stopRun` route
2167
+ // hook the Stop button uses so plugins have one shutdown path.
2168
+ state.appManager.startStaleRunSweeper(() => state.runtime);
2169
+ const addLog = (level, message, source = "system", tags = []) => {
2170
+ let resolvedSource = source;
2171
+ if (source === "auto" || source === "system") {
2172
+ const bracketMatch = /^\[([^\]]+)\]\s*/.exec(message);
2173
+ if (bracketMatch)
2174
+ resolvedSource = bracketMatch[1];
2175
+ }
2176
+ // Auto-tag based on source when no explicit tags provided
2177
+ const resolvedTags = tags.length > 0
2178
+ ? tags
2179
+ : resolvedSource === "runtime" || resolvedSource === "autonomy"
2180
+ ? ["agent"]
2181
+ : resolvedSource === "api" || resolvedSource === "websocket"
2182
+ ? ["server"]
2183
+ : resolvedSource === "cloud"
2184
+ ? ["server", "cloud"]
2185
+ : ["system"];
2186
+ pushWithBatchEvict(state.logBuffer, {
2187
+ timestamp: Date.now(),
2188
+ level,
2189
+ message,
2190
+ source: resolvedSource,
2191
+ tags: resolvedTags,
2192
+ }, 1200, 200);
2193
+ };
2194
+ // ── Flush early-captured logs into the main buffer ────────────────────
2195
+ const earlyEntries = flushEarlyLogs();
2196
+ if (earlyEntries.length > 0) {
2197
+ for (const entry of earlyEntries) {
2198
+ state.logBuffer.push(entry);
2199
+ }
2200
+ if (state.logBuffer.length > 1000) {
2201
+ state.logBuffer.splice(0, state.logBuffer.length - 1000);
2202
+ }
2203
+ addLog("info", `Flushed ${earlyEntries.length} early startup log entries`, "system", ["system"]);
2204
+ }
2205
+ addLog("info", `Discovered ${plugins.length} plugins, loading skills in background`, "system", ["system", "plugins"]);
2206
+ // Warm per-provider model caches in background (non-blocking)
2207
+ void getOrFetchAllProviders().catch((err) => {
2208
+ logger.warn("[api] Provider cache warm-up failed:", err);
2209
+ });
2210
+ // ── Intercept loggers so ALL agent/plugin/service logs appear in the UI ──
2211
+ // We patch both the global `logger` singleton from @elizaos/core (used by
2212
+ // eliza.ts, services, plugins, etc.) AND the runtime instance logger.
2213
+ // A marker prevents double-patching on hot-restart and avoids stacking
2214
+ // wrapper functions that would leak memory.
2215
+ const PATCHED_MARKER = "__elizaLogPatched";
2216
+ const LEVELS = ["debug", "info", "warn", "error"];
2217
+ /**
2218
+ * Patch a logger object so every log call also feeds into the UI log buffer.
2219
+ * Returns true if patching was performed, false if already patched.
2220
+ */
2221
+ const patchLogger = (target, defaultSource, defaultTags) => {
2222
+ const patchedTarget = target;
2223
+ if (patchedTarget[PATCHED_MARKER]) {
2224
+ return false;
2225
+ }
2226
+ for (const lvl of LEVELS) {
2227
+ const original = target[lvl].bind(target);
2228
+ // pino / adze signature: logger.info(obj, msg) or logger.info(msg)
2229
+ const patched = (...args) => {
2230
+ let msg = "";
2231
+ let source = defaultSource;
2232
+ let tags = [...defaultTags];
2233
+ if (typeof args[0] === "string") {
2234
+ msg = args[0];
2235
+ }
2236
+ else if (args[0] && typeof args[0] === "object") {
2237
+ const obj = args[0];
2238
+ if (typeof obj.src === "string")
2239
+ source = obj.src;
2240
+ // Extract tags from structured log objects
2241
+ if (Array.isArray(obj.tags)) {
2242
+ tags = [...tags, ...obj.tags];
2243
+ }
2244
+ msg = typeof args[1] === "string" ? args[1] : JSON.stringify(obj);
2245
+ }
2246
+ // Auto-extract source from [bracket] prefixes (e.g. "[eliza] ...")
2247
+ const bracketMatch = /^\[([^\]]+)\]\s*/.exec(msg);
2248
+ if (bracketMatch && source === defaultSource) {
2249
+ source = bracketMatch[1];
2250
+ }
2251
+ // Auto-tag based on source context
2252
+ if (source !== defaultSource && !tags.includes(source)) {
2253
+ tags.push(source);
2254
+ }
2255
+ if (msg)
2256
+ addLog(lvl, msg, source, tags);
2257
+ return original(...args);
2258
+ };
2259
+ target[lvl] = patched;
2260
+ }
2261
+ patchedTarget[PATCHED_MARKER] = true;
2262
+ return true;
2263
+ };
2264
+ // 1) Patch the global @elizaos/core logger — this captures ALL log calls
2265
+ // from eliza.ts, services, plugins, cloud, hooks, etc.
2266
+ if (patchLogger(logger, "agent", ["agent"])) {
2267
+ addLog("info", "Global logger connected — all agent logs will stream to the UI", "system", ["system", "agent"]);
2268
+ }
2269
+ // 2) Patch the runtime instance logger (if it's a different object)
2270
+ // This catches logs from runtime internals that use their own logger child.
2271
+ if (opts?.runtime?.logger && opts.runtime.logger !== logger) {
2272
+ if (patchLogger(opts.runtime.logger, "runtime", ["agent", "runtime"])) {
2273
+ addLog("info", "Runtime logger connected — runtime logs will stream to the UI", "system", ["system", "agent"]);
2274
+ }
2275
+ }
2276
+ // Store the restart callback on the state so the route handler can access it.
2277
+ const onRestart = opts?.onRestart ?? null;
2278
+ console.log(`[eliza-api] Creating http server (${Date.now() - apiStartTime}ms)`);
2279
+ const server = http.createServer(async (req, res) => {
2280
+ try {
2281
+ await handleRequest(req, res, state, {
2282
+ onRestart,
2283
+ onRuntimeSwapped: () => {
2284
+ bindRuntimeStreams(state.runtime);
2285
+ void wireCoordinatorBridgesWhenReady(state, {
2286
+ wireChatBridge: wireCodingAgentChatBridge,
2287
+ wireWsBridge: wireCodingAgentWsBridge,
2288
+ wireEventRouting: wireCoordinatorEventRouting,
2289
+ wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
2290
+ context: "restart",
2291
+ logger,
2292
+ });
2293
+ },
2294
+ });
2295
+ }
2296
+ catch (err) {
2297
+ const msg = err instanceof Error ? err.message : "internal error";
2298
+ addLog("error", msg, "api", ["server", "api"]);
2299
+ error(res, msg, 500);
2300
+ }
2301
+ });
2302
+ console.log(`[eliza-api] Server created (${Date.now() - apiStartTime}ms)`);
2303
+ const broadcastWs = (payload) => {
2304
+ const message = JSON.stringify(payload);
2305
+ for (const client of wsClients) {
2306
+ if (client.readyState === 1) {
2307
+ try {
2308
+ client.send(message);
2309
+ }
2310
+ catch (err) {
2311
+ logger.error(`[eliza-api] WebSocket broadcast error: ${err instanceof Error ? err.message : err}`);
2312
+ }
2313
+ }
2314
+ }
2315
+ };
2316
+ const pushEvent = (event) => {
2317
+ const envelope = {
2318
+ ...event,
2319
+ eventId: `evt-${state.nextEventId}`,
2320
+ version: 1,
2321
+ };
2322
+ state.nextEventId += 1;
2323
+ state.eventBuffer.push(envelope);
2324
+ if (state.eventBuffer.length > 1500) {
2325
+ state.eventBuffer.splice(0, state.eventBuffer.length - 1500);
2326
+ }
2327
+ broadcastWs(envelope);
2328
+ };
2329
+ let detachRuntimeStreams = null;
2330
+ let detachTrainingStream = null;
2331
+ const bindRuntimeStreams = (runtime) => {
2332
+ if (detachRuntimeStreams) {
2333
+ detachRuntimeStreams();
2334
+ detachRuntimeStreams = null;
2335
+ }
2336
+ const svc = getAgentEventSvc(runtime);
2337
+ if (!svc) {
2338
+ if (runtime) {
2339
+ logger.warn("[eliza-api] AGENT_EVENT service not found on runtime — event streaming will be unavailable");
2340
+ }
2341
+ return;
2342
+ }
2343
+ const unsubAgentEvents = svc.subscribe((event) => {
2344
+ pushEvent({
2345
+ type: "agent_event",
2346
+ ts: event.ts,
2347
+ runId: event.runId,
2348
+ seq: event.seq,
2349
+ stream: event.stream,
2350
+ sessionKey: event.sessionKey,
2351
+ agentId: event.agentId,
2352
+ roomId: event.roomId,
2353
+ payload: event.data,
2354
+ });
2355
+ void maybeRouteAutonomyEventToConversation(state, event).catch((err) => {
2356
+ logger.warn(`[autonomy-route] Failed to route proactive event: ${err instanceof Error ? err.message : String(err)}`);
2357
+ });
2358
+ });
2359
+ const unsubHeartbeat = svc.subscribeHeartbeat((event) => {
2360
+ pushEvent({
2361
+ type: "heartbeat_event",
2362
+ ts: event.ts,
2363
+ payload: event,
2364
+ });
2365
+ });
2366
+ detachRuntimeStreams = () => {
2367
+ unsubAgentEvents();
2368
+ unsubHeartbeat();
2369
+ };
2370
+ };
2371
+ const bindTrainingStream = () => {
2372
+ if (detachTrainingStream) {
2373
+ detachTrainingStream();
2374
+ detachTrainingStream = null;
2375
+ }
2376
+ if (!state.trainingService)
2377
+ return;
2378
+ detachTrainingStream = state.trainingService.subscribe((event) => {
2379
+ const payload = typeof event === "object" && event !== null ? event : { value: event };
2380
+ pushEvent({
2381
+ type: "training_event",
2382
+ ts: Date.now(),
2383
+ payload,
2384
+ });
2385
+ });
2386
+ };
2387
+ // ── Deferred startup work (non-blocking) ────────────────────────────────
2388
+ // Keep API startup fast: listen first, then warm optional subsystems.
2389
+ const startDeferredStartupWork = () => {
2390
+ void (async () => {
2391
+ try {
2392
+ const discoveredSkills = await discoverSkills(workspaceDir, state.config, state.runtime);
2393
+ state.skills = discoveredSkills;
2394
+ addLog("info", `Discovered ${discoveredSkills.length} skills`, "system", ["system", "plugins"]);
2395
+ }
2396
+ catch (err) {
2397
+ logger.warn(`[eliza-api] Skill discovery failed during startup: ${err instanceof Error ? err.message : String(err)}`);
2398
+ }
2399
+ })();
2400
+ void (async () => {
2401
+ const trainingService = state.trainingService;
2402
+ if (!trainingService)
2403
+ return;
2404
+ try {
2405
+ await trainingService.initialize();
2406
+ bindTrainingStream();
2407
+ addLog("info", "Training service initialised", "system", [
2408
+ "system",
2409
+ "training",
2410
+ ]);
2411
+ }
2412
+ catch (err) {
2413
+ logger.error(`[eliza-api] Training service init failed: ${err instanceof Error ? err.message : String(err)}`);
2414
+ }
2415
+ })();
2416
+ void (async () => {
2417
+ initializeOGCodeInState();
2418
+ // Get EVM private key from runtime secrets (preferred) or config.env (fallback)
2419
+ const runtime = state.runtime;
2420
+ const evmKey = runtime?.getSetting?.("EVM_PRIVATE_KEY") ??
2421
+ state.config.env
2422
+ ?.EVM_PRIVATE_KEY;
2423
+ const registryConfig = state.config.registry;
2424
+ if (!evmKey ||
2425
+ !registryConfig?.registryAddress ||
2426
+ !registryConfig.mainnetRpc) {
2427
+ return;
2428
+ }
2429
+ try {
2430
+ const registryRpcUrl = normalizeJsonRpcUrl(registryConfig.mainnetRpc);
2431
+ const registryRpcProbe = await probeJsonRpcEndpoint(registryRpcUrl);
2432
+ if (!registryRpcProbe.ok) {
2433
+ addLog("warn", `ERC-8004 registry service disabled: RPC unavailable (${registryRpcProbe.reason ?? "unknown error"})`, "system", ["system"]);
2434
+ logger.warn({
2435
+ reason: registryRpcProbe.reason,
2436
+ }, "ERC-8004 registry service disabled because mainnetRpc is unavailable");
2437
+ return;
2438
+ }
2439
+ const txService = new TxService(registryRpcUrl, evmKey);
2440
+ state.registryService = new RegistryService(txService, registryConfig.registryAddress);
2441
+ if (registryConfig.collectionAddress) {
2442
+ const dropEnabled = state.config.features?.dropEnabled === true;
2443
+ state.dropService = new DropService(txService, registryConfig.collectionAddress, dropEnabled);
2444
+ setElizaMakerDropService(state.dropService);
2445
+ }
2446
+ else {
2447
+ state.dropService = null;
2448
+ setElizaMakerDropService(null);
2449
+ }
2450
+ addLog("info", `ERC-8004 registry service initialised (${registryConfig.registryAddress})`, "system", ["system"]);
2451
+ }
2452
+ catch (err) {
2453
+ const msg = err instanceof Error ? err.message : String(err);
2454
+ addLog("warn", `ERC-8004 registry service disabled: ${msg}`, "system", [
2455
+ "system",
2456
+ ]);
2457
+ logger.warn({ err }, "Failed to initialize ERC-8004 registry service");
2458
+ }
2459
+ })();
2460
+ // ── Connector health monitoring ──────────────────────────────────────────
2461
+ if (state.runtime && state.config.connectors) {
2462
+ state.connectorHealthMonitor = new ConnectorHealthMonitor({
2463
+ runtime: state.runtime,
2464
+ config: state.config,
2465
+ broadcastWs,
2466
+ });
2467
+ state.connectorHealthMonitor.start();
2468
+ }
2469
+ // ── Dynamic streaming + connector route loading ────────────────────────
2470
+ // Always register generic stream routes. If a streaming destination is
2471
+ // configured, inject it so /api/stream/live can fetch credentials.
2472
+ void (async () => {
2473
+ try {
2474
+ const { handleStreamRoute } = await import("./stream-routes.js");
2475
+ // Screen capture manager is injected by the desktop host via globalThis
2476
+ const screenCapture = globalThis
2477
+ .__elizaScreenCapture;
2478
+ // Build destination registry — all configured destinations
2479
+ const _connectors = state.config.connectors ?? {};
2480
+ const streaming = state.config.streaming;
2481
+ const destinations = new Map();
2482
+ // Custom RTMP
2483
+ if (isStreamingDestinationConfigured("customRtmp", streaming?.customRtmp)) {
2484
+ try {
2485
+ const { createCustomRtmpDestination } = await import("../plugins/custom-rtmp/index.js");
2486
+ destinations.set("custom-rtmp", createCustomRtmpDestination(streaming?.customRtmp));
2487
+ }
2488
+ catch (err) {
2489
+ logger.warn(`[eliza-api] Failed to load custom-rtmp destination: ${err instanceof Error ? err.message : String(err)}`);
2490
+ }
2491
+ }
2492
+ // Twitch
2493
+ if (isStreamingDestinationConfigured("twitch", streaming?.twitch)) {
2494
+ try {
2495
+ const twitchMod = "@elizaos/plugin-twitch-streaming";
2496
+ const { createTwitchDestination } = await import(__rewriteRelativeImportExtension(twitchMod));
2497
+ destinations.set("twitch", createTwitchDestination(streaming?.twitch));
2498
+ }
2499
+ catch (err) {
2500
+ logger.warn(`[eliza-api] Failed to load twitch destination: ${err instanceof Error ? err.message : String(err)}`);
2501
+ }
2502
+ }
2503
+ // YouTube
2504
+ if (isStreamingDestinationConfigured("youtube", streaming?.youtube)) {
2505
+ try {
2506
+ const youtubeMod = "@elizaos/plugin-youtube-streaming";
2507
+ const { createYoutubeDestination } = await import(__rewriteRelativeImportExtension(youtubeMod));
2508
+ destinations.set("youtube", createYoutubeDestination(streaming?.youtube));
2509
+ }
2510
+ catch (err) {
2511
+ logger.warn(`[eliza-api] Failed to load youtube destination: ${err instanceof Error ? err.message : String(err)}`);
2512
+ }
2513
+ }
2514
+ // pump.fun
2515
+ if (isStreamingDestinationConfigured("pumpfun", streaming?.pumpfun)) {
2516
+ try {
2517
+ const pumpfunMod = "@elizaos/plugin-pumpfun-streaming";
2518
+ const { createPumpfunDestination } = await import(__rewriteRelativeImportExtension(pumpfunMod));
2519
+ destinations.set("pumpfun", createPumpfunDestination(streaming?.pumpfun));
2520
+ }
2521
+ catch (err) {
2522
+ logger.warn(`[eliza-api] Failed to load pumpfun destination: ${err instanceof Error ? err.message : String(err)}`);
2523
+ }
2524
+ }
2525
+ // X (Twitter)
2526
+ if (isStreamingDestinationConfigured("x", streaming?.x)) {
2527
+ try {
2528
+ const xMod = "@elizaos/plugin-x-streaming";
2529
+ const { createXStreamDestination } = await import(__rewriteRelativeImportExtension(xMod));
2530
+ destinations.set("x", createXStreamDestination(streaming?.x));
2531
+ }
2532
+ catch (err) {
2533
+ logger.warn(`[eliza-api] Failed to load x destination: ${err instanceof Error ? err.message : String(err)}`);
2534
+ }
2535
+ }
2536
+ // Active destination: config preference → first available
2537
+ const activeDestinationId = streaming?.activeDestination ??
2538
+ (destinations.size > 0
2539
+ ? destinations.keys().next().value
2540
+ : undefined);
2541
+ const streamState = {
2542
+ streamManager,
2543
+ port,
2544
+ screenCapture,
2545
+ captureUrl: undefined,
2546
+ destinations,
2547
+ activeDestinationId,
2548
+ activeStreamSource: { type: "stream-tab" },
2549
+ mirrorStreamAvatarToElizaConfig: (avatarIndex) => {
2550
+ try {
2551
+ if (!Number.isFinite(avatarIndex)) {
2552
+ return;
2553
+ }
2554
+ const diskCfg = loadElizaConfig();
2555
+ const lang = state.config.ui?.language ?? diskCfg.ui?.language;
2556
+ const preset = resolveStylePresetByAvatarIndex(avatarIndex, lang);
2557
+ const nextUi = {
2558
+ ...(state.config.ui ?? {}),
2559
+ avatarIndex,
2560
+ ...(preset?.id ? { presetId: preset.id } : {}),
2561
+ };
2562
+ state.config = {
2563
+ ...state.config,
2564
+ ui: nextUi,
2565
+ };
2566
+ // Merge disk + live server config so we never persist a minimal
2567
+ // snapshot (e.g. ENOENT default) and clobber eliza.json during
2568
+ // onboarding while state.config still holds the full boot payload.
2569
+ const toSave = {
2570
+ ...diskCfg,
2571
+ ...state.config,
2572
+ ui: {
2573
+ ...(diskCfg.ui ?? {}),
2574
+ ...(state.config.ui ?? {}),
2575
+ ...nextUi,
2576
+ },
2577
+ };
2578
+ saveElizaConfig(toSave);
2579
+ state.config = {
2580
+ ...state.config,
2581
+ ui: toSave.ui,
2582
+ };
2583
+ }
2584
+ catch (err) {
2585
+ logger.warn(`[eliza-api] mirrorStreamAvatarToElizaConfig failed: ${err instanceof Error ? err.message : String(err)}`);
2586
+ }
2587
+ },
2588
+ get config() {
2589
+ const cfg = state.config;
2590
+ const msgs = cfg?.messages;
2591
+ return msgs
2592
+ ? {
2593
+ messages: {
2594
+ tts: msgs.tts,
2595
+ },
2596
+ }
2597
+ : undefined;
2598
+ },
2599
+ };
2600
+ state.connectorRouteHandlers.push((req, res, pathname, method) => handleStreamRoute(req, res, pathname, method, streamState));
2601
+ const destNames = Array.from(destinations.values())
2602
+ .map((d) => d.name)
2603
+ .join(", ");
2604
+ const destLabel = destinations.size > 0
2605
+ ? `destinations: ${destNames}`
2606
+ : "no destinations";
2607
+ addLog("info", `Stream routes registered (${destLabel})`, "system", [
2608
+ "system",
2609
+ "streaming",
2610
+ ]);
2611
+ }
2612
+ catch (err) {
2613
+ logger.warn(`[eliza-api] Failed to load stream routes: ${err instanceof Error ? err.message : String(err)}`);
2614
+ }
2615
+ })();
2616
+ };
2617
+ // ── WebSocket Server ─────────────────────────────────────────────────────
2618
+ const wss = new WebSocketServer({ noServer: true, maxPayload: 64 * 1024 });
2619
+ const wsClients = new Set();
2620
+ const wsClientIds = new WeakMap();
2621
+ /** Per-WS-client PTY output subscriptions: sessionId → unsubscribe */
2622
+ const wsClientPtySubscriptions = new WeakMap();
2623
+ bindRuntimeStreams(opts?.runtime ?? null);
2624
+ bindTrainingStream();
2625
+ // Wire coding-agent bridges at initial boot (event-driven via getServiceLoadPromise)
2626
+ if (opts?.runtime) {
2627
+ void wireCoordinatorBridgesWhenReady(state, {
2628
+ wireChatBridge: wireCodingAgentChatBridge,
2629
+ wireWsBridge: wireCodingAgentWsBridge,
2630
+ wireEventRouting: wireCoordinatorEventRouting,
2631
+ wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
2632
+ context: "boot",
2633
+ logger,
2634
+ });
2635
+ }
2636
+ // Handle upgrade requests for WebSocket
2637
+ server.on("upgrade", (request, socket, head) => {
2638
+ try {
2639
+ const wsUrl = new URL(request.url ?? "/", `http://${request.headers.host ?? "localhost"}`);
2640
+ const rejection = resolveWebSocketUpgradeRejection(request, wsUrl);
2641
+ if (rejection) {
2642
+ rejectWebSocketUpgrade(socket, rejection.status, rejection.reason);
2643
+ return;
2644
+ }
2645
+ wss.handleUpgrade(request, socket, head, (ws) => {
2646
+ wss.emit("connection", ws, request);
2647
+ });
2648
+ }
2649
+ catch (err) {
2650
+ logger.error(`[eliza-api] WebSocket upgrade error: ${err instanceof Error ? err.message : err}`);
2651
+ rejectWebSocketUpgrade(socket, 404, "Not found");
2652
+ }
2653
+ });
2654
+ // Handle WebSocket connections
2655
+ wss.on("connection", (ws, request) => {
2656
+ let wsUrl;
2657
+ try {
2658
+ wsUrl = new URL(request.url ?? "/", `http://${request.headers.host ?? "localhost"}`);
2659
+ const clientId = normalizeWsClientId(wsUrl.searchParams.get("clientId"));
2660
+ if (clientId)
2661
+ wsClientIds.set(ws, clientId);
2662
+ }
2663
+ catch {
2664
+ // Ignore malformed WS URL metadata; auth/path were already validated.
2665
+ wsUrl = new URL("ws://localhost/ws");
2666
+ }
2667
+ let isAuthenticated = isWebSocketAuthorized(request, wsUrl);
2668
+ const activateAuthenticatedConnection = () => {
2669
+ wsClients.add(ws);
2670
+ addLog("info", "WebSocket client connected", "websocket", [
2671
+ "server",
2672
+ "websocket",
2673
+ ]);
2674
+ try {
2675
+ ws.send(JSON.stringify({
2676
+ type: "status",
2677
+ state: state.agentState,
2678
+ agentName: state.agentName,
2679
+ model: state.model,
2680
+ startedAt: state.startedAt,
2681
+ startup: state.startup,
2682
+ pendingRestart: state.pendingRestartReasons.length > 0,
2683
+ pendingRestartReasons: state.pendingRestartReasons,
2684
+ }));
2685
+ const replay = state.eventBuffer.slice(-120);
2686
+ for (const event of replay) {
2687
+ ws.send(JSON.stringify(event));
2688
+ }
2689
+ }
2690
+ catch (err) {
2691
+ logger.error(`[eliza-api] WebSocket send error: ${err instanceof Error ? err.message : err}`);
2692
+ }
2693
+ };
2694
+ if (isAuthenticated) {
2695
+ activateAuthenticatedConnection();
2696
+ }
2697
+ ws.on("message", (data) => {
2698
+ try {
2699
+ const msg = JSON.parse(String(data));
2700
+ if (!isAuthenticated) {
2701
+ const expected = getConfiguredApiToken();
2702
+ if (expected &&
2703
+ msg.type === "auth" &&
2704
+ typeof msg.token === "string" &&
2705
+ tokenMatches(expected, msg.token.trim())) {
2706
+ isAuthenticated = true;
2707
+ ws.send(JSON.stringify({ type: "auth-ok" }));
2708
+ activateAuthenticatedConnection();
2709
+ }
2710
+ else {
2711
+ logger.warn("[eliza-api] WebSocket message rejected before auth");
2712
+ ws.close(1008, "Unauthorized");
2713
+ }
2714
+ return;
2715
+ }
2716
+ if (msg.type === "ping") {
2717
+ ws.send(JSON.stringify({ type: "pong" }));
2718
+ }
2719
+ else if (msg.type === "active-conversation") {
2720
+ state.activeConversationId =
2721
+ typeof msg.conversationId === "string" ? msg.conversationId : null;
2722
+ }
2723
+ else if (msg.type === "pty-subscribe" &&
2724
+ typeof msg.sessionId === "string") {
2725
+ const bridge = getPtyConsoleBridge(state);
2726
+ if (bridge) {
2727
+ let subs = wsClientPtySubscriptions.get(ws);
2728
+ if (!subs) {
2729
+ subs = new Map();
2730
+ wsClientPtySubscriptions.set(ws, subs);
2731
+ }
2732
+ // Don't double-subscribe
2733
+ if (!subs.has(msg.sessionId)) {
2734
+ const targetId = msg.sessionId;
2735
+ const listener = (evt) => {
2736
+ if (evt.sessionId !== targetId)
2737
+ return;
2738
+ if (ws.readyState === 1) {
2739
+ ws.send(JSON.stringify({
2740
+ type: "pty-output",
2741
+ sessionId: targetId,
2742
+ data: evt.data,
2743
+ }));
2744
+ }
2745
+ };
2746
+ bridge.on("session_output", listener);
2747
+ subs.set(targetId, () => bridge.off("session_output", listener));
2748
+ }
2749
+ }
2750
+ }
2751
+ else if (msg.type === "pty-unsubscribe" &&
2752
+ typeof msg.sessionId === "string") {
2753
+ const subs = wsClientPtySubscriptions.get(ws);
2754
+ const unsub = subs?.get(msg.sessionId);
2755
+ if (unsub) {
2756
+ unsub();
2757
+ subs?.delete(msg.sessionId);
2758
+ }
2759
+ }
2760
+ else if (msg.type === "pty-input" &&
2761
+ typeof msg.sessionId === "string" &&
2762
+ typeof msg.data === "string") {
2763
+ // Only allow input to sessions this client has subscribed to
2764
+ const subs = wsClientPtySubscriptions.get(ws);
2765
+ if (!subs?.has(msg.sessionId)) {
2766
+ logger.warn(`[eliza-api] pty-input rejected: client not subscribed to session ${msg.sessionId}`);
2767
+ }
2768
+ else if (msg.data.length > 4096) {
2769
+ logger.warn(`[eliza-api] pty-input rejected: payload too large (${msg.data.length} bytes) for session ${msg.sessionId}`);
2770
+ }
2771
+ else {
2772
+ const bridge = getPtyConsoleBridge(state);
2773
+ if (bridge) {
2774
+ logger.debug(`[eliza-api] pty-input: session=${msg.sessionId} len=${msg.data.length}`);
2775
+ bridge.writeRaw(msg.sessionId, msg.data);
2776
+ }
2777
+ }
2778
+ }
2779
+ else if (msg.type === "pty-resize" &&
2780
+ typeof msg.sessionId === "string") {
2781
+ // Only allow resize for sessions this client has subscribed to
2782
+ const subs = wsClientPtySubscriptions.get(ws);
2783
+ if (!subs?.has(msg.sessionId)) {
2784
+ logger.warn(`[eliza-api] pty-resize rejected: client not subscribed to session ${msg.sessionId}`);
2785
+ }
2786
+ else {
2787
+ const bridge = getPtyConsoleBridge(state);
2788
+ if (bridge &&
2789
+ typeof msg.cols === "number" &&
2790
+ typeof msg.rows === "number" &&
2791
+ Number.isFinite(msg.cols) &&
2792
+ Number.isFinite(msg.rows) &&
2793
+ Number.isInteger(msg.cols) &&
2794
+ Number.isInteger(msg.rows) &&
2795
+ msg.cols >= 1 &&
2796
+ msg.cols <= 500 &&
2797
+ msg.rows >= 1 &&
2798
+ msg.rows <= 500) {
2799
+ bridge.resize(msg.sessionId, msg.cols, msg.rows);
2800
+ }
2801
+ else {
2802
+ logger.warn(`[eliza-api] pty-resize rejected: invalid dimensions cols=${msg.cols} rows=${msg.rows}`);
2803
+ }
2804
+ }
2805
+ }
2806
+ }
2807
+ catch (err) {
2808
+ logger.error(`[eliza-api] WebSocket message error: ${err instanceof Error ? err.message : err}`);
2809
+ }
2810
+ });
2811
+ ws.on("close", () => {
2812
+ wsClients.delete(ws);
2813
+ // Clean up any PTY output subscriptions for this client
2814
+ const subs = wsClientPtySubscriptions.get(ws);
2815
+ if (subs) {
2816
+ for (const unsub of subs.values())
2817
+ unsub();
2818
+ subs.clear();
2819
+ }
2820
+ addLog("info", "WebSocket client disconnected", "websocket", [
2821
+ "server",
2822
+ "websocket",
2823
+ ]);
2824
+ });
2825
+ ws.on("error", (err) => {
2826
+ logger.error(`[eliza-api] WebSocket error: ${err instanceof Error ? err.message : err}`);
2827
+ wsClients.delete(ws);
2828
+ // Clean up PTY subscriptions on error too
2829
+ const subs = wsClientPtySubscriptions.get(ws);
2830
+ if (subs) {
2831
+ for (const unsub of subs.values())
2832
+ unsub();
2833
+ subs.clear();
2834
+ }
2835
+ });
2836
+ });
2837
+ // Broadcast status to all connected WebSocket clients (flattened — PR #36 fix)
2838
+ const broadcastStatus = () => {
2839
+ broadcastWs({
2840
+ type: "status",
2841
+ state: state.agentState,
2842
+ agentName: state.agentName,
2843
+ model: state.model,
2844
+ startedAt: state.startedAt,
2845
+ startup: state.startup,
2846
+ pendingRestart: state.pendingRestartReasons.length > 0,
2847
+ pendingRestartReasons: state.pendingRestartReasons,
2848
+ });
2849
+ };
2850
+ // Make broadcastStatus accessible to route handlers via state
2851
+ state.broadcastStatus = broadcastStatus;
2852
+ // Generic broadcast — sends an arbitrary JSON payload to all WS clients.
2853
+ state.broadcastWs = (data) => {
2854
+ const message = JSON.stringify(data);
2855
+ for (const client of wsClients) {
2856
+ if (client.readyState === 1) {
2857
+ try {
2858
+ client.send(message);
2859
+ }
2860
+ catch (err) {
2861
+ logger.error(`[eliza-api] WebSocket broadcast error: ${err instanceof Error ? err.message : err}`);
2862
+ }
2863
+ }
2864
+ }
2865
+ };
2866
+ state.broadcastWsToClientId = (clientId, data) => {
2867
+ const message = JSON.stringify(data);
2868
+ let delivered = 0;
2869
+ for (const client of wsClients) {
2870
+ if (client.readyState !== 1)
2871
+ continue;
2872
+ if (wsClientIds.get(client) !== clientId)
2873
+ continue;
2874
+ try {
2875
+ client.send(message);
2876
+ delivered += 1;
2877
+ }
2878
+ catch (err) {
2879
+ logger.error(`[eliza-api] WebSocket targeted send error: ${err instanceof Error ? err.message : err}`);
2880
+ }
2881
+ }
2882
+ return delivered;
2883
+ };
2884
+ // Wire up ConnectorSetupService broadcastWs so connector plugins
2885
+ // (Signal, WhatsApp) can broadcast pairing events via the service.
2886
+ if (state.runtime) {
2887
+ try {
2888
+ const setupSvc = state.runtime.getService("connector-setup");
2889
+ setupSvc?.setBroadcastWs?.(state.broadcastWs);
2890
+ }
2891
+ catch {
2892
+ // non-fatal — service may not be registered yet
2893
+ }
2894
+ }
2895
+ // Broadcast status every 5 seconds
2896
+ const statusInterval = setInterval(broadcastStatus, 5000);
2897
+ /**
2898
+ * Restore the in-memory conversation list from the database.
2899
+ * Web-chat rooms live in a deterministic world; we scan it for rooms
2900
+ * whose channelId starts with "web-conv-" and reconstruct the metadata.
2901
+ */
2902
+ const restoreConversationsFromDb = async (rt) => {
2903
+ try {
2904
+ const agentName = rt.character.name ?? "Eliza";
2905
+ const worldId = stringToUuid(`${agentName}-web-chat-world`);
2906
+ const rooms = await rt.getRoomsByWorld(worldId);
2907
+ if (!rooms?.length)
2908
+ return;
2909
+ let restored = 0;
2910
+ for (const room of rooms) {
2911
+ // channelId is "web-conv-{uuid}" — extract the conversation id
2912
+ const channelId = typeof room.channelId === "string" ? room.channelId : "";
2913
+ if (!channelId.startsWith("web-conv-"))
2914
+ continue;
2915
+ const convId = channelId.replace("web-conv-", "");
2916
+ if (!convId || state.conversations.has(convId))
2917
+ continue;
2918
+ if (state.deletedConversationIds.has(convId))
2919
+ continue;
2920
+ // Peek at the latest message to get a timestamp
2921
+ let updatedAt = new Date().toISOString();
2922
+ try {
2923
+ const msgs = await rt.getMemories({
2924
+ roomId: room.id,
2925
+ tableName: "messages",
2926
+ limit: 1,
2927
+ });
2928
+ if (msgs.length > 0 && msgs[0].createdAt) {
2929
+ updatedAt = new Date(msgs[0].createdAt).toISOString();
2930
+ }
2931
+ }
2932
+ catch {
2933
+ // non-fatal — use current time
2934
+ }
2935
+ const conversationMetadata = extractConversationMetadataFromRoom(room, convId);
2936
+ state.conversations.set(convId, {
2937
+ id: convId,
2938
+ title: room.name || "Chat",
2939
+ roomId: room.id,
2940
+ ...(conversationMetadata ? { metadata: conversationMetadata } : {}),
2941
+ createdAt: updatedAt,
2942
+ updatedAt,
2943
+ });
2944
+ restored++;
2945
+ }
2946
+ if (restored > 0) {
2947
+ addLog("info", `Restored ${restored} conversation(s) from database`, "system", ["system"]);
2948
+ }
2949
+ }
2950
+ catch (err) {
2951
+ logger.warn(`[eliza-api] Failed to restore conversations from DB: ${err instanceof Error ? err.message : err}`);
2952
+ }
2953
+ };
2954
+ const beginConversationRestore = (rt) => {
2955
+ const restorePromise = restoreConversationsFromDb(rt).finally(() => {
2956
+ if (state.conversationRestorePromise === restorePromise) {
2957
+ state.conversationRestorePromise = null;
2958
+ }
2959
+ });
2960
+ state.conversationRestorePromise = restorePromise;
2961
+ return restorePromise;
2962
+ };
2963
+ /**
2964
+ * Load the agent's DB-persisted character data and overlay onto the
2965
+ * in-memory runtime.character. This ensures Character Editor edits
2966
+ * survive server restarts without depending on eliza.json persistence.
2967
+ */
2968
+ const overlayDbCharacter = async (rt, st) => {
2969
+ try {
2970
+ const dbAgent = await rt.getAgent(rt.agentId);
2971
+ const agentRecord = dbAgent && typeof dbAgent === "object" && !Array.isArray(dbAgent)
2972
+ ? Object.fromEntries(Object.entries(dbAgent))
2973
+ : null;
2974
+ const saved = agentRecord?.character;
2975
+ if (!saved || typeof saved !== "object")
2976
+ return;
2977
+ const c = rt.character;
2978
+ // Only overlay fields that were explicitly saved (non-empty)
2979
+ if (typeof saved.name === "string" && saved.name)
2980
+ c.name = saved.name;
2981
+ if (Array.isArray(saved.bio) && saved.bio.length > 0) {
2982
+ c.bio = saved.bio;
2983
+ }
2984
+ if (typeof saved.system === "string" && saved.system) {
2985
+ c.system = saved.system;
2986
+ }
2987
+ if (Array.isArray(saved.adjectives)) {
2988
+ c.adjectives = saved.adjectives;
2989
+ }
2990
+ if (Array.isArray(saved.topics)) {
2991
+ c.topics = saved.topics;
2992
+ }
2993
+ if (saved.style && typeof saved.style === "object") {
2994
+ c.style = saved.style;
2995
+ }
2996
+ if (Array.isArray(saved.messageExamples)) {
2997
+ c.messageExamples = saved.messageExamples;
2998
+ }
2999
+ if (Array.isArray(saved.postExamples) && saved.postExamples.length > 0) {
3000
+ c.postExamples = saved.postExamples;
3001
+ }
3002
+ // Update agent name on state
3003
+ st.agentName = c.name ?? st.agentName;
3004
+ logger.info(`[character-db] Overlaid DB-persisted character "${c.name}" onto runtime`);
3005
+ }
3006
+ catch (err) {
3007
+ logger.warn(`[character-db] Failed to load character from DB: ${err instanceof Error ? err.message : err}`);
3008
+ }
3009
+ };
3010
+ // Restore conversations from DB at initial boot (if runtime was passed in)
3011
+ if (opts?.runtime) {
3012
+ void beginConversationRestore(opts.runtime).catch((err) => {
3013
+ logger.warn("[api] Conversation restore failed:", err);
3014
+ });
3015
+ void overlayDbCharacter(opts.runtime, state).catch((err) => {
3016
+ logger.warn("[api] Character overlay restore failed:", err);
3017
+ });
3018
+ registerClientChatSendHandler(opts.runtime, state);
3019
+ }
3020
+ const assertX402RoutesValid = (rt) => {
3021
+ if (!rt?.routes?.length)
3022
+ return;
3023
+ const agentId = rt.agentId != null && String(rt.agentId).length > 0
3024
+ ? String(rt.agentId)
3025
+ : undefined;
3026
+ const result = validateX402Startup(rt.routes, rt.character, {
3027
+ agentId,
3028
+ });
3029
+ if (!result.valid) {
3030
+ throw new Error(`x402 configuration invalid:\n${result.errors.map((e) => ` • ${e}`).join("\n")}`);
3031
+ }
3032
+ for (const w of result.warnings) {
3033
+ logger.warn(`[x402] ${w}`);
3034
+ }
3035
+ };
3036
+ /** Hot-swap the runtime reference (used after an in-process restart). */
3037
+ const updateRuntime = (rt) => {
3038
+ assertX402RoutesValid(rt);
3039
+ state.runtime = rt;
3040
+ state.chatConnectionReady = null;
3041
+ state.chatConnectionPromise = null;
3042
+ bindRuntimeStreams(rt);
3043
+ // AppManager doesn't need a runtime reference
3044
+ state.agentState = "running";
3045
+ state.agentName =
3046
+ rt.character.name ?? resolveDefaultAgentName(state.config);
3047
+ state.model = detectRuntimeModel(rt, state.config);
3048
+ state.startedAt = Date.now();
3049
+ state.startup = {
3050
+ phase: "running",
3051
+ attempt: 0,
3052
+ };
3053
+ addLog("info", `Runtime restarted — agent: ${state.agentName}`, "system", [
3054
+ "system",
3055
+ "agent",
3056
+ ]);
3057
+ // Restore conversations from DB so they survive restarts
3058
+ void beginConversationRestore(rt).catch((err) => {
3059
+ logger.warn("[api] Conversation restore failed on restart:", err);
3060
+ });
3061
+ // Overlay DB-persisted character data (from Character Editor saves)
3062
+ void overlayDbCharacter(rt, state).catch((err) => {
3063
+ logger.warn("[api] Character overlay restore failed on restart:", err);
3064
+ });
3065
+ // Broadcast status update immediately after restart
3066
+ broadcastStatus();
3067
+ // Re-register client_chat send handler on the new runtime
3068
+ registerClientChatSendHandler(rt, state);
3069
+ // Wire coding-agent bridges (event-driven via getServiceLoadPromise)
3070
+ void wireCoordinatorBridgesWhenReady(state, {
3071
+ wireChatBridge: wireCodingAgentChatBridge,
3072
+ wireWsBridge: wireCodingAgentWsBridge,
3073
+ wireEventRouting: wireCoordinatorEventRouting,
3074
+ wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
3075
+ context: "restart",
3076
+ logger,
3077
+ });
3078
+ };
3079
+ const updateStartup = (update) => {
3080
+ const { state: nextState, ...startupUpdate } = update;
3081
+ state.startup = {
3082
+ ...state.startup,
3083
+ ...startupUpdate,
3084
+ };
3085
+ if (nextState) {
3086
+ state.agentState = nextState;
3087
+ if (nextState === "error") {
3088
+ state.startedAt = undefined;
3089
+ }
3090
+ else if ((nextState === "starting" || nextState === "running") &&
3091
+ !state.startedAt) {
3092
+ state.startedAt = Date.now();
3093
+ }
3094
+ }
3095
+ broadcastStatus();
3096
+ };
3097
+ console.log(`[eliza-api] Calling server.listen (${Date.now() - apiStartTime}ms)`);
3098
+ try {
3099
+ assertX402RoutesValid(state.runtime);
3100
+ }
3101
+ catch (err) {
3102
+ return Promise.reject(err);
3103
+ }
3104
+ return new Promise((resolve, reject) => {
3105
+ let currentPort = port;
3106
+ server.on("error", (err) => {
3107
+ if (err.code === "EADDRINUSE") {
3108
+ console.warn(`[eliza-api] Port ${currentPort} is already in use. Checking fallback...`);
3109
+ if (currentPort !== 0) {
3110
+ console.warn(`[eliza-api] Retrying with dynamic port (0)...`);
3111
+ currentPort = 0;
3112
+ server.listen(0, host);
3113
+ return;
3114
+ }
3115
+ }
3116
+ else {
3117
+ console.error(`[eliza-api] Server error: ${err.message} (code: ${err.code})`);
3118
+ }
3119
+ reject(err);
3120
+ });
3121
+ server.listen(port, host, () => {
3122
+ console.log(`[eliza-api] server.listen callback fired (${Date.now() - apiStartTime}ms)`);
3123
+ const addr = server.address();
3124
+ const actualPort = typeof addr === "object" && addr ? addr.port : currentPort;
3125
+ const displayHost = typeof addr === "object" && addr ? addr.address : host;
3126
+ addLog("info", `API server listening on http://${displayHost}:${actualPort}`, "system", ["server", "system"]);
3127
+ // Log to both stdout (for agent.ts port detection) and the in-memory
3128
+ // logger. agent.ts watches stdout for "Listening on http://host:PORT"
3129
+ // to detect dynamic port reassignment when the default port is in use.
3130
+ console.log(`[eliza-api] Listening on http://${displayHost}:${actualPort}`);
3131
+ logger.info(`[eliza-api] Listening on http://${displayHost}:${actualPort}`);
3132
+ if (!opts?.skipDeferredStartupWork) {
3133
+ startDeferredStartupWork();
3134
+ }
3135
+ resolve({
3136
+ port: actualPort,
3137
+ close: async () => await new Promise((r) => {
3138
+ void (async () => {
3139
+ const closeAllConnections = server.closeAllConnections;
3140
+ const closeIdleConnections = server.closeIdleConnections;
3141
+ clearInterval(statusInterval);
3142
+ if (state.connectorHealthMonitor) {
3143
+ state.connectorHealthMonitor.stop();
3144
+ state.connectorHealthMonitor = null;
3145
+ }
3146
+ if (detachRuntimeStreams) {
3147
+ detachRuntimeStreams();
3148
+ detachRuntimeStreams = null;
3149
+ }
3150
+ if (detachTrainingStream) {
3151
+ detachTrainingStream();
3152
+ detachTrainingStream = null;
3153
+ }
3154
+ for (const ws of wsClients) {
3155
+ if (ws.readyState === 1 || ws.readyState === 0) {
3156
+ ws.terminate();
3157
+ }
3158
+ }
3159
+ wsClients.clear();
3160
+ // Clean up WhatsApp pairing sessions
3161
+ if (state.whatsappPairingSessions) {
3162
+ for (const s of state.whatsappPairingSessions.values()) {
3163
+ try {
3164
+ s.stop();
3165
+ }
3166
+ catch {
3167
+ /* non-fatal */
3168
+ }
3169
+ }
3170
+ state.whatsappPairingSessions.clear();
3171
+ }
3172
+ // Clean up Signal pairing sessions
3173
+ if (state.signalPairingSessions) {
3174
+ for (const s of state.signalPairingSessions.values()) {
3175
+ try {
3176
+ s.stop();
3177
+ }
3178
+ catch {
3179
+ /* non-fatal */
3180
+ }
3181
+ }
3182
+ state.signalPairingSessions.clear();
3183
+ }
3184
+ if (state.telegramAccountAuthSession) {
3185
+ try {
3186
+ await state.telegramAccountAuthSession.stop();
3187
+ }
3188
+ catch {
3189
+ /* non-fatal */
3190
+ }
3191
+ state.telegramAccountAuthSession = null;
3192
+ }
3193
+ wss.close();
3194
+ const closeTimeout = setTimeout(() => r(), 5_000);
3195
+ const resolved = { done: false };
3196
+ const finalize = () => {
3197
+ if (!resolved.done) {
3198
+ resolved.done = true;
3199
+ clearTimeout(closeTimeout);
3200
+ r();
3201
+ }
3202
+ };
3203
+ if (typeof closeAllConnections === "function") {
3204
+ try {
3205
+ closeAllConnections();
3206
+ }
3207
+ catch {
3208
+ // Bun/Node server internals vary by runtime; non-fatal on shutdown.
3209
+ }
3210
+ }
3211
+ if (typeof closeIdleConnections === "function") {
3212
+ try {
3213
+ closeIdleConnections();
3214
+ }
3215
+ catch {
3216
+ // Bun/Node server internals vary by runtime; non-fatal on shutdown.
3217
+ }
3218
+ }
3219
+ server.close(finalize);
3220
+ })();
3221
+ }),
3222
+ updateRuntime,
3223
+ updateStartup,
3224
+ });
3225
+ });
3226
+ });
3227
+ }