@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,3464 @@
1
+ /**
2
+ * elizaOS runtime entry point for Eliza.
3
+ *
4
+ * Starts the elizaOS agent runtime with Eliza's plugin configuration.
5
+ * Can be run directly via: node --import tsx src/runtime/eliza.ts
6
+ * Or via the CLI: eliza start
7
+ *
8
+ * @module eliza
9
+ */
10
+ import crypto from "node:crypto";
11
+ import { existsSync, mkdirSync, readFileSync, unlinkSync } from "node:fs";
12
+ import fs from "node:fs/promises";
13
+ import { createRequire } from "node:module";
14
+ import os from "node:os";
15
+ import path from "node:path";
16
+ import process from "node:process";
17
+ import * as readline from "node:readline";
18
+ import { fileURLToPath, pathToFileURL } from "node:url";
19
+ // ---------------------------------------------------------------------------
20
+ // Extracted modules — re-exported for backward compatibility
21
+ // ---------------------------------------------------------------------------
22
+ import { runFirstTimeSetup } from "./first-time-setup.js";
23
+ import { resolvePlugins } from "./plugin-resolver.js";
24
+ import { CUSTOM_PLUGINS_DIRNAME as CUSTOM_RUNTIME_PLUGINS_DIRNAME, STATIC_ELIZA_PLUGINS, } from "./plugin-types.js";
25
+ export { CHANNEL_PLUGIN_MAP, collectPluginNames, OPTIONAL_PLUGIN_MAP, PROVIDER_PLUGIN_MAP, } from "./plugin-collector.js";
26
+ import { applyAdvancedCapabilitySettings, resolveAdvancedCapabilitiesEnabled, } from "./advanced-capabilities-config.js";
27
+ export { CUSTOM_PLUGINS_DIRNAME, EJECTED_PLUGINS_DIRNAME, ensureBrowserServerLink, findPluginBrowserStagehandDir, findRuntimePluginExport, mergeDropInPlugins, repairBrokenInstallRecord, resolveElizaPluginImportSpecifier, resolvePackageEntry, STATIC_ELIZA_PLUGINS, scanDropInPlugins, shouldIgnoreMissingPluginExport, } from "./plugin-types.js";
28
+ // resolvePlugins is re-exported via index.ts from ./plugin-resolver
29
+ // `@elizaos/app-lifeops` and `@elizaos/app-companion` are NOT eagerly imported
30
+ // here. Both packages transitively import from `@elizaos/agent` (e.g.
31
+ // `hasOwnerAccess` from this package's barrel) — a top-level static import
32
+ // would form a module-init cycle that leaves named exports of the app-lifeops
33
+ // actions array as `undefined`, crashing `runtime.registerPlugin` when it
34
+ // iterates `plugin.actions`.
35
+ //
36
+ // Both apps still resolve at plugin-load time via headless dynamic-import
37
+ // entrypoints in `plugin-resolver.ts`, after the static module graph has fully
38
+ // evaluated, so the cycle never forms and browser-only UI exports stay out of
39
+ // the agent process.
40
+ // Keep this here as a single sentinel: if we ever need a static reference,
41
+ // add `as const` data only — never an `import * as` of an app-* package.
42
+ import { AgentRuntime, AutonomyService, addLogListener, ChannelType, createBasicCapabilitiesPlugin, createMessageMemory, logger,
43
+ // loggerScope, // removed
44
+ mergeCharacterDefaults, stringToUuid, } from "@elizaos/core";
45
+ import * as pluginAgentSkills from "@elizaos/plugin-agent-skills";
46
+ import * as pluginBrowserBridge from "@elizaos/plugin-browser-bridge";
47
+ import * as pluginPdf from "@elizaos/plugin-pdf";
48
+ import * as pluginSql from "@elizaos/plugin-sql";
49
+ import { getDefaultStylePreset, getOnboardingProviderOption, isElizaSettingsDebugEnabled, migrateLegacyRuntimeConfig, normalizeCharacterLanguage, normalizeOnboardingProviderId, resolveDeploymentTargetInConfig, resolveElizaCloudTopology, resolveServerOnlyPort, resolveServiceRoutingInConfig, resolveStylePresetByAvatarIndex, resolveStylePresetById, resolveStylePresetByName, settingsDebugCloudSummary, } from "@elizaos/shared";
50
+ import { debugLogResolvedContext, validateRuntimeContext, } from "../api/plugin-validation.js";
51
+ import { getWalletAddresses, syncSolanaPublicKeyEnv } from "../api/wallet.js";
52
+ import { configFileExists, loadElizaConfig, } from "../config/config.js";
53
+ import { CONNECTOR_ENV_MAP, collectConfigEnvVars, collectConnectorEnvVars, } from "../config/env-vars.js";
54
+ import { resolveStateDir, resolveUserPath } from "../config/paths.js";
55
+ import { createHookEvent, loadHooks, triggerHook, } from "../hooks/index.js";
56
+ import { ensureAgentWorkspace, resolveDefaultAgentWorkspaceDir, shouldBootstrapWorkspaceInitFiles, } from "../providers/workspace.js";
57
+ import { SandboxAuditLog } from "../security/audit-log.js";
58
+ import { SandboxManager, } from "../services/sandbox-manager.js";
59
+ import { CORE_PLUGINS, OPTIONAL_CORE_PLUGINS } from "./core-plugins.js";
60
+ import { seedBundledKnowledge } from "./default-knowledge.js";
61
+ import discordLocalPlugin from "./discord-local-plugin.js";
62
+ import { createElizaPlugin } from "./eliza-plugin.js";
63
+ import { detectEmbeddingPreset } from "./embedding-presets.js";
64
+ import { runtimeKnowledgeEnabled, runtimeTrajectoriesEnabled, } from "./native-runtime-features.js";
65
+ import { createPgliteInitError, getPgliteErrorCode, PGLITE_ERROR_CODES, } from "./pglite-error-compat.js";
66
+ import { installRuntimePluginLifecycle } from "./plugin-lifecycle.js";
67
+ import rolesPlugin from "./roles.js";
68
+ import { shouldEnableTrajectoryLoggingByDefault } from "./trajectory-persistence.js";
69
+ const require = createRequire(import.meta.url);
70
+ // plugin-local-embedding is needed when local embeddings are enabled, but
71
+ // Docker no-embedding smokes must still boot if a published package advertises
72
+ // a missing dist entry.
73
+ let pluginLocalEmbedding = null;
74
+ try {
75
+ pluginLocalEmbedding = await import("@elizaos/plugin-local-embedding");
76
+ }
77
+ catch {
78
+ pluginLocalEmbedding = null;
79
+ }
80
+ // Agent orchestrator ships as the standalone @elizaos/plugin-agent-orchestrator package.
81
+ // Use top-level dynamic import because the package is ESM-only and fails under
82
+ // createRequire() in bun runtime; the await is resolved before module consumers read the binding.
83
+ let pluginAgentOrchestrator = null;
84
+ try {
85
+ pluginAgentOrchestrator = await import("@elizaos/plugin-agent-orchestrator");
86
+ }
87
+ catch {
88
+ pluginAgentOrchestrator = null;
89
+ }
90
+ // Keep plugin-shell behind a guarded runtime require too. The published alpha
91
+ // tarball can declare dist/index.js without actually shipping it, which breaks
92
+ // CLI/bootstrap in published-only CI.
93
+ let pluginShell = null;
94
+ try {
95
+ pluginShell = require("@elizaos/plugin-shell");
96
+ }
97
+ catch {
98
+ pluginShell = null;
99
+ }
100
+ // Keep plugin-commands behind a guarded runtime require. Some published alpha
101
+ // builds advertise dist/index.js without actually shipping it, and a static
102
+ // ESM import here makes the CLI fail before it can print --help/--version.
103
+ let pluginCommands = null;
104
+ try {
105
+ pluginCommands = require("@elizaos/plugin-commands");
106
+ }
107
+ catch {
108
+ pluginCommands = null;
109
+ }
110
+ let pluginCron = null;
111
+ try {
112
+ pluginCron = require("@elizaos/plugin-cron");
113
+ }
114
+ catch {
115
+ pluginCron = null;
116
+ }
117
+ // Keep plugin-elizacloud behind a guarded runtime require as well. Some
118
+ // published alpha builds advertise dist/node/index.node.js but do not ship
119
+ // that ESM entry, which breaks CLI bootstrap in published-only CI.
120
+ let pluginElizacloud = null;
121
+ try {
122
+ pluginElizacloud = require("@elizaos/plugin-elizacloud");
123
+ }
124
+ catch {
125
+ pluginElizacloud = null;
126
+ }
127
+ // Keep plugin-ollama behind a guarded runtime require as well. Some published
128
+ // alpha builds advertise dist/node/index.node.js but do not ship that ESM
129
+ // entry, which breaks CLI bootstrap and startup smokes in published-only CI.
130
+ let pluginOllama = null;
131
+ try {
132
+ pluginOllama = require("@elizaos/plugin-ollama");
133
+ }
134
+ catch {
135
+ pluginOllama = null;
136
+ }
137
+ // Keep plugin-anthropic behind a guarded runtime require too. Some published
138
+ // alpha builds advertise dist/node/index.node.js without shipping that entry,
139
+ // which breaks no-credential Docker startup smokes before provider selection.
140
+ let pluginAnthropic = null;
141
+ try {
142
+ pluginAnthropic = require("@elizaos/plugin-anthropic");
143
+ }
144
+ catch {
145
+ pluginAnthropic = null;
146
+ }
147
+ // Keep plugin-openai behind a guarded runtime require too. Some published
148
+ // alpha builds advertise dist/node/index.node.js without shipping that entry,
149
+ // which breaks CLI bootstrap and validation in published-only CI.
150
+ let pluginOpenai = null;
151
+ try {
152
+ pluginOpenai = require("@elizaos/plugin-openai");
153
+ }
154
+ catch {
155
+ pluginOpenai = null;
156
+ }
157
+ let activeSignalShutdownContext = null;
158
+ let signalHandlersRegistered = false;
159
+ let signalShutdownPromise = null;
160
+ function registerSignalShutdownHandlers(context) {
161
+ activeSignalShutdownContext = context;
162
+ if (signalHandlersRegistered) {
163
+ return;
164
+ }
165
+ const shutdown = async () => {
166
+ if (signalShutdownPromise) {
167
+ await signalShutdownPromise;
168
+ return;
169
+ }
170
+ signalShutdownPromise = (async () => {
171
+ const current = activeSignalShutdownContext;
172
+ if (!current) {
173
+ process.exit(0);
174
+ }
175
+ try {
176
+ await current?.beforeShutdown?.();
177
+ }
178
+ catch (err) {
179
+ logger.warn(`[eliza] Pre-shutdown cleanup error: ${formatError(err)}`);
180
+ }
181
+ try {
182
+ const sandboxManager = current?.getSandboxManager();
183
+ if (sandboxManager) {
184
+ try {
185
+ await sandboxManager.stop();
186
+ logger.info("[eliza] Sandbox manager stopped");
187
+ }
188
+ catch (err) {
189
+ logger.warn(`[eliza] Sandbox stop error: ${err instanceof Error ? err.message : String(err)}`);
190
+ }
191
+ }
192
+ }
193
+ catch (err) {
194
+ logger.warn(`[eliza] Sandbox shutdown error: ${formatError(err)}`);
195
+ }
196
+ try {
197
+ const runtime = current?.getRuntime();
198
+ if (runtime) {
199
+ await shutdownRuntime(runtime, "signal shutdown");
200
+ }
201
+ }
202
+ catch (err) {
203
+ logger.warn(`[eliza] Error during shutdown: ${formatError(err)}`);
204
+ }
205
+ process.exit(0);
206
+ })();
207
+ await signalShutdownPromise;
208
+ };
209
+ process.on("SIGINT", () => void shutdown());
210
+ process.on("SIGTERM", () => void shutdown());
211
+ signalHandlersRegistered = true;
212
+ }
213
+ /**
214
+ * Map of baseline bundled @elizaos plugin names to their statically imported
215
+ * modules.
216
+ *
217
+ * Post-release plugins are intentionally excluded so the packaged runtime can
218
+ * ship a smaller baseline bundle. Those plugins fall through to dynamic
219
+ * import() and can be installed later via the plugin installer.
220
+ */
221
+ // Populate the shared STATIC_ELIZA_PLUGINS registry (defined in plugin-types.ts)
222
+ // so plugin-resolver.ts can read it without importing this module directly.
223
+ Object.assign(STATIC_ELIZA_PLUGINS, {
224
+ "@elizaos/plugin-sql": pluginSql,
225
+ ...(pluginLocalEmbedding
226
+ ? { "@elizaos/plugin-local-embedding": pluginLocalEmbedding }
227
+ : {}),
228
+ // secrets (SECRETS service): now built-in core capability (ENABLE_SECRETS_MANAGER)
229
+ ...(pluginAgentOrchestrator
230
+ ? { "agent-orchestrator": pluginAgentOrchestrator }
231
+ : {}),
232
+ ...(pluginCron ? { "@elizaos/plugin-cron": pluginCron } : {}),
233
+ ...(pluginShell ? { "@elizaos/plugin-shell": pluginShell } : {}),
234
+ // plugin-manager: now built-in core capability (ENABLE_PLUGIN_MANAGER)
235
+ "@elizaos/plugin-agent-skills": pluginAgentSkills,
236
+ ...(pluginCommands ? { "@elizaos/plugin-commands": pluginCommands } : {}),
237
+ "@elizaos/plugin-pdf": pluginPdf,
238
+ ...(pluginOpenai ? { "@elizaos/plugin-openai": pluginOpenai } : {}),
239
+ ...(pluginAnthropic
240
+ ? { "@elizaos/plugin-anthropic": pluginAnthropic }
241
+ : {}),
242
+ ...(pluginOllama ? { "@elizaos/plugin-ollama": pluginOllama } : {}),
243
+ ...(pluginElizacloud
244
+ ? { "@elizaos/plugin-elizacloud": pluginElizacloud }
245
+ : {}),
246
+ // trust: now built-in core capability (ENABLE_TRUST)
247
+ // `@elizaos/app-lifeops` and `@elizaos/app-companion` are intentionally
248
+ // omitted from the static map — see the comment near the top of this file.
249
+ // They resolve via headless dynamic-import entrypoints in plugin-resolver.ts.
250
+ "@elizaos/plugin-browser-bridge": pluginBrowserBridge,
251
+ "@elizaos/plugin-discord-local": discordLocalPlugin,
252
+ // personality: now built-in advanced capability (advancedCapabilities: true)
253
+ });
254
+ // NODE_PATH so dynamic plugin imports (e.g. @elizaos/plugin-*) resolve.
255
+ // WHY: When eliza is loaded from dist/ or by a test runner, Node's resolution does not
256
+ // search repo root node_modules; import("@elizaos/plugin-*") then fails. We prepend
257
+ // repo root node_modules only if not already in NODE_PATH (run-node.mjs may have set it)
258
+ // to avoid duplicate entries; _initPaths() makes Node re-read NODE_PATH. See docs/plugin-resolution-and-node-path.md.
259
+ // We walk up from this file to find node_modules — we do not assume a fixed depth
260
+ // (e.g. two levels for src/runtime/ or dist/runtime/) so we still work if build
261
+ // output structure changes (e.g. flat dist). First directory with node_modules wins.
262
+ const _elizaDir = path.dirname(fileURLToPath(import.meta.url));
263
+ let _dir = _elizaDir;
264
+ let _rootModules = null;
265
+ while (_dir !== path.dirname(_dir)) {
266
+ const candidate = path.join(_dir, "node_modules");
267
+ if (existsSync(candidate)) {
268
+ _rootModules = candidate;
269
+ break;
270
+ }
271
+ _dir = path.dirname(_dir);
272
+ }
273
+ if (_rootModules) {
274
+ const prev = process.env.NODE_PATH ?? "";
275
+ const entries = prev ? prev.split(path.delimiter) : [];
276
+ const normalizedRoot = path.resolve(_rootModules);
277
+ if (!entries.some((e) => path.resolve(e) === normalizedRoot)) {
278
+ process.env.NODE_PATH = prev
279
+ ? `${_rootModules}${path.delimiter}${prev}`
280
+ : _rootModules;
281
+ createRequire(import.meta.url)("node:module").Module._initPaths();
282
+ }
283
+ }
284
+ export function configureLocalEmbeddingPlugin(_plugin, config) {
285
+ const detectedPreset = detectEmbeddingPreset();
286
+ const SQL_COMPATIBLE_EMBEDDING_DIMENSIONS = new Set([
287
+ 384, 512, 768, 1024, 1536, 3072,
288
+ ]);
289
+ const normalizeEmbeddingDimensions = (rawValue) => {
290
+ if (!rawValue)
291
+ return undefined;
292
+ const parsed = Number.parseInt(rawValue, 10);
293
+ if (!Number.isInteger(parsed) || parsed <= 0)
294
+ return undefined;
295
+ return SQL_COMPATIBLE_EMBEDDING_DIMENSIONS.has(parsed)
296
+ ? String(parsed)
297
+ : "384";
298
+ };
299
+ const embeddingConfig = config?.embedding;
300
+ const configuredModel = embeddingConfig?.model?.trim();
301
+ const configuredRepo = embeddingConfig?.modelRepo?.trim();
302
+ const configuredDimensions = normalizeEmbeddingDimensions(typeof embeddingConfig?.dimensions === "number" &&
303
+ Number.isInteger(embeddingConfig.dimensions) &&
304
+ embeddingConfig.dimensions > 0
305
+ ? String(embeddingConfig.dimensions)
306
+ : undefined);
307
+ const detectedDimensions = normalizeEmbeddingDimensions(String(detectedPreset.dimensions));
308
+ const configuredContextSize = typeof embeddingConfig?.contextSize === "number" &&
309
+ Number.isInteger(embeddingConfig.contextSize) &&
310
+ embeddingConfig.contextSize > 0
311
+ ? String(embeddingConfig.contextSize)
312
+ : undefined;
313
+ const configuredGpuLayers = (() => {
314
+ const value = embeddingConfig?.gpuLayers;
315
+ if (typeof value === "number" && Number.isInteger(value) && value >= 0) {
316
+ return String(value);
317
+ }
318
+ if (value === "auto" || value === "max") {
319
+ // plugin-local-embedding understands "auto" and treats it as runtime max
320
+ return "auto";
321
+ }
322
+ return undefined;
323
+ })();
324
+ const setEnvIfMissing = (key, value) => {
325
+ if (!value || process.env[key])
326
+ return;
327
+ process.env[key] = value;
328
+ };
329
+ const setEnvFromConfig = (key, value) => {
330
+ if (!value)
331
+ return;
332
+ process.env[key] = value;
333
+ };
334
+ // Keep plugin-local-embedding aligned with Eliza's hardware-adaptive preset
335
+ // selection. Hard-coding the standard preset here forces slower first-run
336
+ // downloads on Windows and low-spec machines.
337
+ setEnvIfMissing("LOCAL_EMBEDDING_MODEL", configuredModel || detectedPreset.model);
338
+ if (configuredRepo) {
339
+ setEnvFromConfig("LOCAL_EMBEDDING_MODEL_REPO", configuredRepo);
340
+ }
341
+ else if (!configuredModel) {
342
+ setEnvIfMissing("LOCAL_EMBEDDING_MODEL_REPO", detectedPreset.modelRepo);
343
+ }
344
+ if (configuredDimensions) {
345
+ setEnvFromConfig("LOCAL_EMBEDDING_DIMENSIONS", configuredDimensions);
346
+ }
347
+ else if (!configuredModel) {
348
+ setEnvIfMissing("LOCAL_EMBEDDING_DIMENSIONS", detectedDimensions);
349
+ }
350
+ if (configuredContextSize) {
351
+ setEnvFromConfig("LOCAL_EMBEDDING_CONTEXT_SIZE", configuredContextSize);
352
+ }
353
+ else if (!configuredModel) {
354
+ setEnvIfMissing("LOCAL_EMBEDDING_CONTEXT_SIZE", String(detectedPreset.contextSize));
355
+ }
356
+ if (configuredGpuLayers) {
357
+ process.env.LOCAL_EMBEDDING_GPU_LAYERS = configuredGpuLayers;
358
+ }
359
+ else if (!process.env.LOCAL_EMBEDDING_GPU_LAYERS) {
360
+ process.env.LOCAL_EMBEDDING_GPU_LAYERS = String(detectedPreset.gpuLayers);
361
+ }
362
+ // Performance tuning
363
+ // Disable mmap on Metal to prevent "different text" errors with some models
364
+ setEnvIfMissing("LOCAL_EMBEDDING_USE_MMAP", detectedPreset.gpuLayers === "auto" ? "false" : "true");
365
+ // Set default models directory if not present
366
+ setEnvIfMissing("MODELS_DIR", path.join(os.homedir(), ".eliza", "models"));
367
+ // Normalize Google AI API key aliases — the elizaOS plugin and @google/genai
368
+ // SDK expect different env var names. Canonicalize to the long form that
369
+ // @elizaos/plugin-google-genai reads via runtime.getSetting(). Users can set
370
+ // any of: GEMINI_API_KEY, GOOGLE_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY.
371
+ setEnvIfMissing("GOOGLE_GENERATIVE_AI_API_KEY", process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY);
372
+ // Default Google model names — the Google GenAI plugin's getSetting() returns
373
+ // null (not undefined) for missing keys, but the plugin checks !== undefined
374
+ // causing String(null) = "null" to be sent as the model name. Set sensible
375
+ // defaults so the plugin always has valid model names.
376
+ setEnvIfMissing("GOOGLE_SMALL_MODEL", "gemini-3-flash-preview");
377
+ setEnvIfMissing("GOOGLE_LARGE_MODEL", "gemini-3.1-pro-preview");
378
+ // Default Groq model names — plugin-groq still ships a deprecated large-model
379
+ // fallback. Seed runtime defaults before plugin init so direct Groq provider
380
+ // sessions do not inherit the retired qwen-qwq-32b default.
381
+ const currentSharedSmallModel = process.env.OPENAI_SMALL_MODEL ?? process.env.SMALL_MODEL;
382
+ const currentSharedLargeModel = process.env.OPENAI_LARGE_MODEL ?? process.env.LARGE_MODEL;
383
+ setEnvIfMissing("GROQ_SMALL_MODEL", currentSharedSmallModel && !isLikelyOpenAiTextModel(currentSharedSmallModel)
384
+ ? currentSharedSmallModel
385
+ : "openai/gpt-oss-20b");
386
+ setEnvIfMissing("GROQ_LARGE_MODEL", currentSharedLargeModel && !isLikelyOpenAiTextModel(currentSharedLargeModel)
387
+ ? currentSharedLargeModel
388
+ : "openai/gpt-oss-120b");
389
+ logger.info(`[eliza] Configured local embedding env: ${process.env.LOCAL_EMBEDDING_MODEL} (repo: ${process.env.LOCAL_EMBEDDING_MODEL_REPO ?? "auto"}, dims: ${process.env.LOCAL_EMBEDDING_DIMENSIONS ?? "auto"}, ctx: ${process.env.LOCAL_EMBEDDING_CONTEXT_SIZE ?? "auto"}, GPU: ${process.env.LOCAL_EMBEDDING_GPU_LAYERS}, mmap: ${process.env.LOCAL_EMBEDDING_USE_MMAP})`);
390
+ }
391
+ // ---------------------------------------------------------------------------
392
+ // Helpers
393
+ // ---------------------------------------------------------------------------
394
+ /** Extract a human-readable error message from an unknown thrown value. */
395
+ function formatError(err) {
396
+ return err instanceof Error ? err.message : String(err);
397
+ }
398
+ function trimEnvString(value) {
399
+ if (typeof value !== "string")
400
+ return undefined;
401
+ const trimmed = value.trim();
402
+ return trimmed.length > 0 ? trimmed : undefined;
403
+ }
404
+ function getMutableConfigEnv(config) {
405
+ if (!config.env ||
406
+ typeof config.env !== "object" ||
407
+ Array.isArray(config.env)) {
408
+ return null;
409
+ }
410
+ return config.env;
411
+ }
412
+ function getMutableConfigEnvVars(configEnv) {
413
+ if (!configEnv.vars ||
414
+ typeof configEnv.vars !== "object" ||
415
+ Array.isArray(configEnv.vars)) {
416
+ return null;
417
+ }
418
+ return configEnv.vars;
419
+ }
420
+ function readConfigEnvValue(config, key) {
421
+ const configEnv = getMutableConfigEnv(config);
422
+ if (!configEnv)
423
+ return undefined;
424
+ const vars = getMutableConfigEnvVars(configEnv);
425
+ return trimEnvString(vars?.[key]) ?? trimEnvString(configEnv[key]);
426
+ }
427
+ function readEffectiveEnvValue(config, key, env = process.env) {
428
+ return trimEnvString(env[key]) ?? readConfigEnvValue(config, key);
429
+ }
430
+ function setConfigEnvValue(config, key, value) {
431
+ if (!config.env ||
432
+ typeof config.env !== "object" ||
433
+ Array.isArray(config.env)) {
434
+ config.env = {};
435
+ }
436
+ const configEnv = config.env;
437
+ const vars = getMutableConfigEnvVars(configEnv);
438
+ if (vars) {
439
+ vars[key] = value;
440
+ delete configEnv[key];
441
+ return;
442
+ }
443
+ configEnv[key] = value;
444
+ }
445
+ function deleteConfigEnvValue(config, key) {
446
+ const configEnv = getMutableConfigEnv(config);
447
+ if (!configEnv)
448
+ return;
449
+ const vars = getMutableConfigEnvVars(configEnv);
450
+ if (vars) {
451
+ delete vars[key];
452
+ if (Object.keys(vars).length === 0) {
453
+ delete configEnv.vars;
454
+ }
455
+ }
456
+ delete configEnv[key];
457
+ }
458
+ function detectOpenAiBaseUrlProvider(baseUrl) {
459
+ try {
460
+ const hostname = new URL(baseUrl).hostname.trim().toLowerCase();
461
+ if (hostname === "api.groq.com" || hostname.endsWith(".groq.com")) {
462
+ return "groq";
463
+ }
464
+ }
465
+ catch {
466
+ return null;
467
+ }
468
+ return null;
469
+ }
470
+ function looksLikeGroqApiKey(value) {
471
+ return Boolean(value && /^gsk[-_]/i.test(value));
472
+ }
473
+ function isLikelyOpenAiTextModel(value) {
474
+ if (!value)
475
+ return false;
476
+ const normalized = value.trim().toLowerCase();
477
+ return normalized.startsWith("gpt-") || normalized.startsWith("openai/");
478
+ }
479
+ /**
480
+ * Normalize known-bad provider compatibility shims before plugin resolution.
481
+ *
482
+ * A common failure mode is routing the OpenAI plugin through Groq's
483
+ * OpenAI-compatible base URL while leaving OpenAI defaults (`gpt-5.5`,
484
+ * `gpt-5.5-mini`) in place. Structured XML/object generation then fails during
485
+ * message handling because Groq does not serve those model IDs.
486
+ *
487
+ * When we can confidently detect that state, rewrite the effective runtime
488
+ * config to use the Groq plugin directly.
489
+ */
490
+ /** @internal Exported for testing. */
491
+ export function normalizeOpenAiCompatibleProviderConfig(config, env = process.env) {
492
+ const cloudInferenceEnabled = resolveElizaCloudTopology(config).services.inference;
493
+ if (cloudInferenceEnabled) {
494
+ return false;
495
+ }
496
+ const openaiBaseUrl = readEffectiveEnvValue(config, "OPENAI_BASE_URL", env);
497
+ if (!openaiBaseUrl) {
498
+ return false;
499
+ }
500
+ if (detectOpenAiBaseUrlProvider(openaiBaseUrl) !== "groq") {
501
+ return false;
502
+ }
503
+ const openaiApiKey = readEffectiveEnvValue(config, "OPENAI_API_KEY", env);
504
+ const groqApiKey = readEffectiveEnvValue(config, "GROQ_API_KEY", env);
505
+ const inheritedGroqApiKey = groqApiKey ??
506
+ (looksLikeGroqApiKey(openaiApiKey) ? openaiApiKey : undefined);
507
+ if (!inheritedGroqApiKey) {
508
+ return false;
509
+ }
510
+ const currentGroqSmallModel = readEffectiveEnvValue(config, "GROQ_SMALL_MODEL", env);
511
+ const currentGroqLargeModel = readEffectiveEnvValue(config, "GROQ_LARGE_MODEL", env);
512
+ const currentSharedSmallModel = readEffectiveEnvValue(config, "OPENAI_SMALL_MODEL", env) ??
513
+ readEffectiveEnvValue(config, "SMALL_MODEL", env);
514
+ const currentSharedLargeModel = readEffectiveEnvValue(config, "OPENAI_LARGE_MODEL", env) ??
515
+ readEffectiveEnvValue(config, "LARGE_MODEL", env);
516
+ const normalizedGroqSmallModel = currentGroqSmallModel ??
517
+ (currentSharedSmallModel &&
518
+ !isLikelyOpenAiTextModel(currentSharedSmallModel)
519
+ ? currentSharedSmallModel
520
+ : "llama-3.1-8b-instant");
521
+ const normalizedGroqLargeModel = currentGroqLargeModel ??
522
+ (currentSharedLargeModel &&
523
+ !isLikelyOpenAiTextModel(currentSharedLargeModel)
524
+ ? currentSharedLargeModel
525
+ : "qwen/qwen3-32b");
526
+ env.GROQ_API_KEY = inheritedGroqApiKey;
527
+ env.GROQ_SMALL_MODEL = normalizedGroqSmallModel;
528
+ env.GROQ_LARGE_MODEL = normalizedGroqLargeModel;
529
+ setConfigEnvValue(config, "GROQ_API_KEY", inheritedGroqApiKey);
530
+ setConfigEnvValue(config, "GROQ_SMALL_MODEL", normalizedGroqSmallModel);
531
+ setConfigEnvValue(config, "GROQ_LARGE_MODEL", normalizedGroqLargeModel);
532
+ delete env.OPENAI_BASE_URL;
533
+ deleteConfigEnvValue(config, "OPENAI_BASE_URL");
534
+ const shouldDisableOpenAiKey = !openaiApiKey ||
535
+ openaiApiKey === groqApiKey ||
536
+ looksLikeGroqApiKey(openaiApiKey);
537
+ if (shouldDisableOpenAiKey) {
538
+ delete env.OPENAI_API_KEY;
539
+ deleteConfigEnvValue(config, "OPENAI_API_KEY");
540
+ }
541
+ const primaryModel = trimEnvString(config.agents?.defaults?.model?.primary);
542
+ if (shouldDisableOpenAiKey &&
543
+ primaryModel &&
544
+ (primaryModel.toLowerCase() === "openai" ||
545
+ isLikelyOpenAiTextModel(primaryModel))) {
546
+ config.agents ??= {};
547
+ config.agents.defaults ??= {};
548
+ config.agents.defaults.model = {
549
+ ...config.agents.defaults.model,
550
+ primary: "groq",
551
+ };
552
+ }
553
+ logger.warn("[eliza] Detected Groq routed through OPENAI_BASE_URL; normalizing runtime settings to use @elizaos/plugin-groq");
554
+ return true;
555
+ }
556
+ /** Redact username segments from filesystem paths to avoid leaking user info in logs. */
557
+ function _redactUserSegments(filepath) {
558
+ // Replace /Users/<name>/ or /home/<name>/ with /Users/<redacted>/ etc.
559
+ return filepath.replace(/\/(Users|home)\/[^/]+\//g, "/$1/<redacted>/");
560
+ }
561
+ /**
562
+ * Best-effort runtime shutdown that also closes the database adapter.
563
+ *
564
+ * AgentRuntime.stop() only stops services. plugin-sql keeps a process-global
565
+ * PGlite manager, so restarts must close the adapter or the next runtime can
566
+ * silently reuse the same broken manager instance.
567
+ */
568
+ export async function shutdownRuntime(runtime, context) {
569
+ if (!runtime)
570
+ return;
571
+ const adapter = runtime.adapter;
572
+ let firstError = null;
573
+ try {
574
+ await runtime.stop();
575
+ }
576
+ catch (err) {
577
+ firstError = err;
578
+ logger.warn(`[eliza] ${context}: runtime stop failed: ${formatError(err)}`);
579
+ }
580
+ if (adapter && typeof adapter.close === "function") {
581
+ try {
582
+ await adapter.close();
583
+ }
584
+ catch (err) {
585
+ if (!firstError) {
586
+ firstError = err;
587
+ }
588
+ logger.warn(`[eliza] ${context}: database adapter close failed: ${formatError(err)}`);
589
+ }
590
+ }
591
+ if (firstError) {
592
+ throw firstError;
593
+ }
594
+ }
595
+ /**
596
+ * Remove duplicate actions across an ordered list of plugins.
597
+ *
598
+ * When multiple plugins define an action with the same `name`, only the first
599
+ * occurrence is kept. This prevents "Action already registered" warnings from
600
+ * elizaOS core. The function mutates each plugin's `actions` array in-place.
601
+ */
602
+ export function deduplicatePluginActions(plugins) {
603
+ const seen = new Set();
604
+ for (const plugin of plugins) {
605
+ if (plugin.actions) {
606
+ plugin.actions = plugin.actions.filter((action) => {
607
+ if (seen.has(action.name)) {
608
+ logger.debug(`[eliza] Skipping duplicate action "${action.name}" from plugin "${plugin.name}"`);
609
+ return false;
610
+ }
611
+ seen.add(action.name);
612
+ return true;
613
+ });
614
+ }
615
+ }
616
+ }
617
+ /**
618
+ * Retrieve the AutonomyService from the runtime, returning null if unavailable.
619
+ * Uses a runtime property check to safely narrow the opaque Service return.
620
+ */
621
+ function getAutonomyService(runtime) {
622
+ const svc = runtime.getService("AUTONOMY") ?? runtime.getService("autonomy");
623
+ if (svc &&
624
+ "enableAutonomy" in svc &&
625
+ typeof svc.enableAutonomy === "function") {
626
+ return svc;
627
+ }
628
+ return null;
629
+ }
630
+ async function startAndRegisterAutonomyService(runtime) {
631
+ const service = await AutonomyService.start(runtime);
632
+ runtime.services.set("AUTONOMY", [service]);
633
+ return service;
634
+ }
635
+ async function waitForTrajectoriesService(runtime, context, timeoutMs = 3000) {
636
+ if (!runtimeTrajectoriesEnabled(runtime)) {
637
+ return;
638
+ }
639
+ const runtimeLike = runtime;
640
+ // Check if already available
641
+ if (typeof runtimeLike.getService === "function") {
642
+ const existing = runtimeLike.getService("trajectories");
643
+ if (existing)
644
+ return;
645
+ }
646
+ const registrationStatus = typeof runtimeLike.getServiceRegistrationStatus === "function"
647
+ ? runtimeLike.getServiceRegistrationStatus("trajectories")
648
+ : "unknown";
649
+ if (registrationStatus !== "pending" &&
650
+ registrationStatus !== "registering") {
651
+ return;
652
+ }
653
+ if (typeof runtimeLike.getServiceLoadPromise !== "function")
654
+ return;
655
+ let timedOut = false;
656
+ let timeoutHandle;
657
+ const timeoutPromise = new Promise((resolve) => {
658
+ timeoutHandle = setTimeout(() => {
659
+ timedOut = true;
660
+ resolve();
661
+ }, timeoutMs);
662
+ });
663
+ try {
664
+ await Promise.race([
665
+ runtimeLike.getServiceLoadPromise("trajectories").then(() => { }),
666
+ timeoutPromise,
667
+ ]);
668
+ if (timedOut) {
669
+ logger.debug(`[eliza] trajectories still ${registrationStatus} after ${timeoutMs}ms (${context})`);
670
+ }
671
+ }
672
+ catch (err) {
673
+ logger.debug(`[eliza] trajectories registration failed while waiting (${context}): ${formatError(err)}`);
674
+ }
675
+ finally {
676
+ if (timeoutHandle)
677
+ clearTimeout(timeoutHandle);
678
+ }
679
+ }
680
+ function ensureTrajectoryLoggerEnabled(runtime, context) {
681
+ if (!runtimeTrajectoriesEnabled(runtime)) {
682
+ logger.info(`[eliza] Native trajectories disabled (${context})`);
683
+ return;
684
+ }
685
+ const trajectoryLogger = runtime.getService("trajectories");
686
+ if (!trajectoryLogger) {
687
+ logger.warn(`[eliza] trajectories service unavailable (${context}); trajectory capture disabled`);
688
+ return;
689
+ }
690
+ const isEnabled = typeof trajectoryLogger.isEnabled === "function"
691
+ ? trajectoryLogger.isEnabled()
692
+ : shouldEnableTrajectoryLoggingByDefault();
693
+ const shouldEnable = shouldEnableTrajectoryLoggingByDefault();
694
+ if (isEnabled !== shouldEnable &&
695
+ typeof trajectoryLogger.setEnabled === "function") {
696
+ trajectoryLogger.setEnabled(shouldEnable);
697
+ logger.info(`[eliza] trajectories defaulted ${shouldEnable ? "on" : "off"} (${context})`);
698
+ }
699
+ }
700
+ async function installPromptOptimizationLayer(runtime, context, config) {
701
+ try {
702
+ const { installPromptOptimizations } = await import("./prompt-optimization.js");
703
+ installPromptOptimizations(runtime, config);
704
+ }
705
+ catch (err) {
706
+ logger.warn(`[eliza] Failed to install prompt optimizations (${context}): ${err instanceof Error ? err.message : err}`);
707
+ }
708
+ }
709
+ async function prepareRuntimeForTrajectoryCapture(runtime, context, config) {
710
+ await waitForTrajectoriesService(runtime, context);
711
+ ensureTrajectoryLoggerEnabled(runtime, context);
712
+ await installPromptOptimizationLayer(runtime, context, config);
713
+ }
714
+ // ---------------------------------------------------------------------------
715
+ // Channel secret mapping
716
+ // ---------------------------------------------------------------------------
717
+ /**
718
+ * Maps Eliza channel config fields to the environment variable names
719
+ * that elizaOS plugins expect.
720
+ *
721
+ * Eliza stores channel credentials under `config.channels.<name>.<field>`,
722
+ * while elizaOS plugins read them from process.env.
723
+ */
724
+ const CHANNEL_ENV_MAP = CONNECTOR_ENV_MAP;
725
+ // ---------------------------------------------------------------------------
726
+ // Plugin resolution
727
+ // ---------------------------------------------------------------------------
728
+ export { CORE_PLUGINS, OPTIONAL_CORE_PLUGINS };
729
+ /**
730
+ * Optional plugins that require native binaries or specific config.
731
+ * These are only loaded when explicitly enabled via features config,
732
+ * NOT by default — they crash if their prerequisites are missing.
733
+ */
734
+ const _OPTIONAL_NATIVE_PLUGINS = [
735
+ "@elizaos/plugin-browser", // requires browser server binary
736
+ "@elizaos/plugin-vision", // requires @tensorflow/tfjs-node native addon
737
+ "@elizaos/plugin-computeruse", // requires platform-specific binaries
738
+ ];
739
+ // CHANNEL_PLUGIN_MAP, PROVIDER_PLUGIN_MAP, and OPTIONAL_PLUGIN_MAP live in
740
+ // ./plugin-collector.ts and are re-exported from this module for backward compatibility.
741
+ // ---------------------------------------------------------------------------
742
+ // Custom / drop-in plugin discovery (moved to plugin-types.ts)
743
+ // ---------------------------------------------------------------------------
744
+ // ---------------------------------------------------------------------------
745
+ // Plugin resolution
746
+ // ---------------------------------------------------------------------------
747
+ // ---------------------------------------------------------------------------
748
+ // Browser server pre-flight
749
+ // ---------------------------------------------------------------------------
750
+ /**
751
+ * Returns true if the given env var key is safe to forward to runtime.settings.
752
+ * Blocks blockchain private keys, secrets, passwords, tokens, credentials,
753
+ * mnemonics, and seed phrases while allowing API keys that plugins need.
754
+ */
755
+ export function isEnvKeyAllowedForForwarding(key) {
756
+ const upper = key.toUpperCase();
757
+ if (upper === "ALLOW_NO_DATABASE")
758
+ return false;
759
+ // Block blockchain private keys
760
+ if (upper.includes("PRIVATE_KEY"))
761
+ return false;
762
+ if (upper.startsWith("EVM_") || upper.startsWith("SOLANA_"))
763
+ return false;
764
+ // Block secrets, passwords, tokens, and seed phrases (but not API_KEY which plugins need)
765
+ if (/(SECRET|PASSWORD|CREDENTIAL|MNEMONIC|SEED_PHRASE)/i.test(key))
766
+ return false;
767
+ if (/(ACCESS_TOKEN|REFRESH_TOKEN|SESSION_TOKEN|AUTH_TOKEN)$/i.test(key))
768
+ return false;
769
+ // Block elizaCloud connection keys — these must only come from config.cloud
770
+ // via applyCloudConfigToEnv(). Forwarding them from config.env.vars into
771
+ // runtime.settings would let a stale env-var shadow the live cloud key that
772
+ // the app sets when the user connects through the UI.
773
+ if (upper === "ELIZAOS_CLOUD_API_KEY" ||
774
+ upper === "ELIZAOS_CLOUD_ENABLED" ||
775
+ upper === "ELIZAOS_CLOUD_BASE_URL" ||
776
+ upper === "ELIZAOS_CLOUD_NANO_MODEL" ||
777
+ upper === "ELIZAOS_CLOUD_MEDIUM_MODEL" ||
778
+ upper === "ELIZAOS_CLOUD_SMALL_MODEL" ||
779
+ upper === "ELIZAOS_CLOUD_LARGE_MODEL" ||
780
+ upper === "ELIZAOS_CLOUD_MEGA_MODEL" ||
781
+ upper === "ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL" ||
782
+ upper === "ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL" ||
783
+ upper === "ELIZAOS_CLOUD_ACTION_PLANNER_MODEL" ||
784
+ upper === "ELIZAOS_CLOUD_PLANNER_MODEL")
785
+ return false;
786
+ return true;
787
+ }
788
+ function assertPersistentDatabaseRequired(runtime) {
789
+ const raw = runtime.getSetting("ALLOW_NO_DATABASE") ?? process.env.ALLOW_NO_DATABASE;
790
+ const normalized = String(raw ?? "")
791
+ .trim()
792
+ .toLowerCase();
793
+ if (normalized === "true" ||
794
+ normalized === "1" ||
795
+ normalized === "yes" ||
796
+ normalized === "on") {
797
+ throw new Error(`Eliza requires persistent database storage and does not permit ALLOW_NO_DATABASE (agent ${runtime.agentId}). Remove ALLOW_NO_DATABASE from config/env and use @elizaos/plugin-sql.`);
798
+ }
799
+ }
800
+ function isElizaCloudManagedProcessEnvKey(key) {
801
+ const upper = key.toUpperCase();
802
+ return (upper === "ELIZAOS_CLOUD_API_KEY" ||
803
+ upper === "ELIZAOS_CLOUD_ENABLED" ||
804
+ upper === "ELIZAOS_CLOUD_BASE_URL" ||
805
+ upper === "ELIZAOS_CLOUD_NANO_MODEL" ||
806
+ upper === "ELIZAOS_CLOUD_MEDIUM_MODEL" ||
807
+ upper === "ELIZAOS_CLOUD_SMALL_MODEL" ||
808
+ upper === "ELIZAOS_CLOUD_LARGE_MODEL" ||
809
+ upper === "ELIZAOS_CLOUD_MEGA_MODEL" ||
810
+ upper === "ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL" ||
811
+ upper === "ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL" ||
812
+ upper === "ELIZAOS_CLOUD_ACTION_PLANNER_MODEL" ||
813
+ upper === "ELIZAOS_CLOUD_PLANNER_MODEL");
814
+ }
815
+ // findPluginBrowserStagehandDir, ensureBrowserServerLink,
816
+ // repairBrokenInstallRecord, resolvePackageEntry — moved to plugin-types.ts
817
+ // ---------------------------------------------------------------------------
818
+ // Config → Character mapping
819
+ // ---------------------------------------------------------------------------
820
+ /**
821
+ * Propagate channel credentials from Eliza config into process.env so
822
+ * that elizaOS plugins can find them.
823
+ */
824
+ /** @internal Exported for testing. */
825
+ export function applyConnectorSecretsToEnv(config) {
826
+ // Prefer config.connectors, fall back to config.channels for backward compatibility
827
+ const connectors = config.connectors ?? config.channels ?? {};
828
+ for (const [channelName, channelConfig] of Object.entries(connectors)) {
829
+ if (!channelConfig || typeof channelConfig !== "object")
830
+ continue;
831
+ const configObj = channelConfig;
832
+ // Discord plugins in the ecosystem use both DISCORD_API_TOKEN and
833
+ // DISCORD_BOT_TOKEN across versions. Mirror to both when available.
834
+ if (channelName === "discord") {
835
+ const tokenValue = (typeof configObj.token === "string" && configObj.token.trim()) ||
836
+ (typeof configObj.botToken === "string" && configObj.botToken.trim()) ||
837
+ "";
838
+ if (tokenValue) {
839
+ process.env.DISCORD_API_TOKEN = tokenValue;
840
+ process.env.DISCORD_BOT_TOKEN = tokenValue;
841
+ }
842
+ }
843
+ const envMap = CHANNEL_ENV_MAP[channelName];
844
+ if (!envMap)
845
+ continue;
846
+ for (const [configField, envKey] of Object.entries(envMap)) {
847
+ const value = configObj[configField];
848
+ if (typeof value === "boolean" || typeof value === "number") {
849
+ process.env[envKey] = String(value);
850
+ }
851
+ else if (typeof value === "string" && value.trim()) {
852
+ process.env[envKey] = value;
853
+ }
854
+ }
855
+ if (channelName === "whatsapp") {
856
+ const allowFrom = configObj.allowFrom;
857
+ if (Array.isArray(allowFrom) && allowFrom.length > 0) {
858
+ const normalized = allowFrom
859
+ .map((value) => String(value).trim())
860
+ .filter(Boolean);
861
+ if (normalized.length > 0) {
862
+ process.env.WHATSAPP_ALLOW_FROM = normalized.join(",");
863
+ }
864
+ }
865
+ const groupAllowFrom = configObj.groupAllowFrom;
866
+ if (Array.isArray(groupAllowFrom) && groupAllowFrom.length > 0) {
867
+ const normalized = groupAllowFrom
868
+ .map((value) => String(value).trim())
869
+ .filter(Boolean);
870
+ if (normalized.length > 0) {
871
+ process.env.WHATSAPP_GROUP_ALLOW_FROM = normalized.join(",");
872
+ }
873
+ }
874
+ const accounts = configObj.accounts;
875
+ if (accounts &&
876
+ typeof accounts === "object" &&
877
+ !Array.isArray(accounts)) {
878
+ const firstEnabledAccount = Object.values(accounts).find((account) => {
879
+ if (!account ||
880
+ typeof account !== "object" ||
881
+ Array.isArray(account)) {
882
+ return false;
883
+ }
884
+ const candidate = account;
885
+ return (candidate.enabled !== false && typeof candidate.authDir === "string");
886
+ });
887
+ if (firstEnabledAccount &&
888
+ typeof firstEnabledAccount.authDir === "string" &&
889
+ firstEnabledAccount.authDir.trim()) {
890
+ process.env.WHATSAPP_AUTH_DIR = firstEnabledAccount.authDir.trim();
891
+ }
892
+ }
893
+ }
894
+ }
895
+ }
896
+ /**
897
+ * Auto-resolve Discord Application ID from the bot token via Discord API.
898
+ * Called during async runtime init so that users only need a bot token.
899
+ */
900
+ /** @internal Exported for testing. */
901
+ export async function autoResolveDiscordAppId() {
902
+ if (process.env.DISCORD_APPLICATION_ID)
903
+ return;
904
+ const discordToken = process.env.DISCORD_API_TOKEN || process.env.DISCORD_BOT_TOKEN;
905
+ if (!discordToken)
906
+ return;
907
+ try {
908
+ const res = await fetch("https://discord.com/api/v10/oauth2/applications/@me", { headers: { Authorization: `Bot ${discordToken}` } });
909
+ if (!res.ok) {
910
+ logger.warn(`[eliza] Failed to auto-resolve Discord Application ID: ${res.status}`);
911
+ return;
912
+ }
913
+ const app = (await res.json());
914
+ if (!app.id)
915
+ return;
916
+ process.env.DISCORD_APPLICATION_ID = app.id;
917
+ logger.info(`[eliza] Auto-resolved Discord Application ID: ${app.id}`);
918
+ }
919
+ catch (err) {
920
+ logger.warn(`[eliza] Could not auto-resolve Discord Application ID: ${err}`);
921
+ }
922
+ }
923
+ /**
924
+ * Fetch GitHub OAuth token from cloud if available and no local token is set.
925
+ * Called during async runtime init after cloud config is applied.
926
+ *
927
+ * Flow: If the agent has a managed GitHub connection in the cloud, and no
928
+ * local GITHUB_TOKEN is set, fetch the OAuth token from the cloud API and
929
+ * inject it into process.env so plugins (plugin-github, git-workspace-service)
930
+ * can use it for API calls and git credential helpers.
931
+ */
932
+ /** @internal Exported for testing. */
933
+ export async function autoFetchCloudGithubToken(agentId) {
934
+ // Skip if a local token is already configured
935
+ if (process.env.GITHUB_TOKEN || process.env.GITHUB_PAT)
936
+ return;
937
+ // Need cloud credentials and an agent ID
938
+ const cloudApiKey = process.env.ELIZAOS_CLOUD_API_KEY?.trim();
939
+ const cloudBaseUrl = process.env.ELIZAOS_CLOUD_BASE_URL?.trim() || "https://api.elizacloud.ai";
940
+ if (!cloudApiKey || !agentId)
941
+ return;
942
+ const managedNs = process.env.ELIZA_CLOUD_MANAGED_AGENTS_API_SEGMENT?.trim();
943
+ if (!managedNs)
944
+ return;
945
+ try {
946
+ const url = `${cloudBaseUrl}/api/v1/${managedNs}/agents/${encodeURIComponent(agentId)}/github/token`;
947
+ const res = await fetch(url, {
948
+ headers: {
949
+ Authorization: `Bearer ${cloudApiKey}`,
950
+ Accept: "application/json",
951
+ },
952
+ signal: AbortSignal.timeout(10_000),
953
+ });
954
+ if (!res.ok) {
955
+ // 404 = no GitHub connection for this agent, which is fine
956
+ if (res.status !== 404) {
957
+ logger.warn(`[eliza] Failed to fetch cloud GitHub token: ${res.status}`);
958
+ }
959
+ return;
960
+ }
961
+ const body = (await res.json());
962
+ if (!body.success || !body.data?.accessToken)
963
+ return;
964
+ process.env.GITHUB_TOKEN = body.data.accessToken;
965
+ logger.info(`[eliza] Fetched GitHub token from cloud for @${body.data.githubUsername || "unknown"}`);
966
+ }
967
+ catch (err) {
968
+ logger.warn(`[eliza] Could not fetch cloud GitHub token: ${err}`);
969
+ }
970
+ }
971
+ /**
972
+ * Propagate cloud config from Eliza config into process.env so the
973
+ * ElizaCloud plugin can discover settings at startup.
974
+ */
975
+ /** @internal Exported for testing. */
976
+ export function applyCloudConfigToEnv(config) {
977
+ migrateLegacyRuntimeConfig(config);
978
+ const cloud = config.cloud;
979
+ const isCloudContainer = process.env.ELIZA_CLOUD_PROVISIONED === "1";
980
+ if (!cloud && !isCloudContainer)
981
+ return;
982
+ const topology = resolveElizaCloudTopology(config);
983
+ // Cloud inference is selected from the canonical onboarding connection, not
984
+ // just from raw cloud flags. This keeps linked cloud auth from re-enabling
985
+ // Eliza Cloud after the user has switched to a local or remote provider.
986
+ const effectivelyEnabled = topology.services.inference || isCloudContainer;
987
+ const shouldLoadCloudPlugin = topology.shouldLoadPlugin || isCloudContainer;
988
+ const setCloudUsageEnv = (key, enabled) => {
989
+ if (enabled) {
990
+ process.env[key] = "true";
991
+ }
992
+ else {
993
+ delete process.env[key];
994
+ }
995
+ };
996
+ if (isElizaSettingsDebugEnabled()) {
997
+ const c = (cloud ?? {});
998
+ logger.debug(`[eliza][settings][runtime] applyCloudConfigToEnv inference=${effectivelyEnabled} shouldLoadPlugin=${shouldLoadCloudPlugin} isCloudContainer=${isCloudContainer} cloud=${JSON.stringify(settingsDebugCloudSummary(c))}`);
999
+ }
1000
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_INFERENCE", effectivelyEnabled);
1001
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_TTS", topology.services.tts || isCloudContainer);
1002
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_MEDIA", topology.services.media);
1003
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_EMBEDDINGS", topology.services.embeddings);
1004
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_RPC", topology.services.rpc);
1005
+ if (effectivelyEnabled) {
1006
+ process.env.ELIZAOS_CLOUD_ENABLED = "true";
1007
+ }
1008
+ else {
1009
+ delete process.env.ELIZAOS_CLOUD_ENABLED;
1010
+ }
1011
+ if (shouldLoadCloudPlugin) {
1012
+ logger.info(`[eliza] Cloud config: inference=${topology.services.inference}, runtime=${topology.runtime}, hasApiKey=${Boolean(cloud?.apiKey || process.env.ELIZAOS_CLOUD_API_KEY)}, baseUrl=${cloud?.baseUrl ?? "(default)"}, isCloudContainer=${isCloudContainer}`);
1013
+ // Only propagate the API key when cloud is enabled AND it is a real
1014
+ // credential — never set the literal "[REDACTED]" placeholder (which can
1015
+ // leak into the config via UI round-trips through the redacted GET → PUT
1016
+ // cycle). WHY: when enabled is false (BYOK / disconnected), leaving the key
1017
+ // in process.env still auto-loads @elizaos/plugin-elizacloud and steals
1018
+ // TEXT_LARGE even if the JSON says cloud is off.
1019
+ const isRealApiKey = cloud?.apiKey && cloud.apiKey.trim().toUpperCase() !== "[REDACTED]";
1020
+ if (isRealApiKey) {
1021
+ process.env.ELIZAOS_CLOUD_API_KEY = cloud.apiKey;
1022
+ }
1023
+ else if (!isCloudContainer) {
1024
+ delete process.env.ELIZAOS_CLOUD_API_KEY;
1025
+ }
1026
+ if (cloud?.baseUrl) {
1027
+ process.env.ELIZAOS_CLOUD_BASE_URL = cloud.baseUrl;
1028
+ }
1029
+ else if (!isCloudContainer) {
1030
+ delete process.env.ELIZAOS_CLOUD_BASE_URL;
1031
+ }
1032
+ }
1033
+ else {
1034
+ delete process.env.ELIZAOS_CLOUD_NANO_MODEL;
1035
+ delete process.env.ELIZAOS_CLOUD_MEDIUM_MODEL;
1036
+ delete process.env.ELIZAOS_CLOUD_SMALL_MODEL;
1037
+ delete process.env.ELIZAOS_CLOUD_LARGE_MODEL;
1038
+ delete process.env.ELIZAOS_CLOUD_MEGA_MODEL;
1039
+ delete process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL;
1040
+ delete process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL;
1041
+ delete process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL;
1042
+ delete process.env.ELIZAOS_CLOUD_PLANNER_MODEL;
1043
+ delete process.env.ELIZAOS_CLOUD_API_KEY;
1044
+ delete process.env.ELIZAOS_CLOUD_BASE_URL;
1045
+ }
1046
+ // Propagate model names so the cloud plugin picks them up. Falls back to
1047
+ // sensible defaults when cloud is enabled but no explicit selection exists.
1048
+ // Skip when inferenceMode is "byok"/"local" or services.inference is off —
1049
+ // user's own keys handle models.
1050
+ // If the user chose a subscription provider, treat that as "byok" unless
1051
+ // they explicitly set inferenceMode to "cloud".
1052
+ const llmText = resolveServiceRoutingInConfig(config)?.llmText;
1053
+ const models = config.models;
1054
+ if (effectivelyEnabled) {
1055
+ const nano = llmText?.nanoModel || models?.nano || "openai/gpt-5.5-nano";
1056
+ const small = llmText?.smallModel || models?.small || "minimax/minimax-m2.7";
1057
+ const medium = llmText?.mediumModel || models?.medium || small;
1058
+ const large = llmText?.largeModel || models?.large || "anthropic/claude-opus-4-7";
1059
+ const mega = llmText?.megaModel || models?.mega || large;
1060
+ const responseHandlerModel = llmText?.responseHandlerModel || llmText?.shouldRespondModel;
1061
+ const actionPlannerModel = llmText?.actionPlannerModel || llmText?.plannerModel;
1062
+ process.env.SMALL_MODEL = small;
1063
+ process.env.NANO_MODEL = nano;
1064
+ process.env.MEDIUM_MODEL = medium;
1065
+ process.env.LARGE_MODEL = large;
1066
+ process.env.MEGA_MODEL = mega;
1067
+ if (responseHandlerModel) {
1068
+ process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL = responseHandlerModel;
1069
+ process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL = responseHandlerModel;
1070
+ }
1071
+ else {
1072
+ delete process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL;
1073
+ delete process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL;
1074
+ }
1075
+ if (actionPlannerModel) {
1076
+ process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL = actionPlannerModel;
1077
+ process.env.ELIZAOS_CLOUD_PLANNER_MODEL = actionPlannerModel;
1078
+ }
1079
+ else {
1080
+ delete process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL;
1081
+ delete process.env.ELIZAOS_CLOUD_PLANNER_MODEL;
1082
+ }
1083
+ process.env.ELIZAOS_CLOUD_NANO_MODEL = nano;
1084
+ process.env.ELIZAOS_CLOUD_MEDIUM_MODEL = medium;
1085
+ process.env.ELIZAOS_CLOUD_SMALL_MODEL = small;
1086
+ process.env.ELIZAOS_CLOUD_LARGE_MODEL = large;
1087
+ process.env.ELIZAOS_CLOUD_MEGA_MODEL = mega;
1088
+ }
1089
+ else if (shouldLoadCloudPlugin) {
1090
+ // Cloud plugin may still be active for non-inference services; keep model
1091
+ // routing local by clearing the cloud model aliases.
1092
+ delete process.env.ELIZAOS_CLOUD_NANO_MODEL;
1093
+ delete process.env.ELIZAOS_CLOUD_MEDIUM_MODEL;
1094
+ delete process.env.ELIZAOS_CLOUD_SMALL_MODEL;
1095
+ delete process.env.ELIZAOS_CLOUD_LARGE_MODEL;
1096
+ delete process.env.ELIZAOS_CLOUD_MEGA_MODEL;
1097
+ delete process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL;
1098
+ delete process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL;
1099
+ delete process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL;
1100
+ delete process.env.ELIZAOS_CLOUD_PLANNER_MODEL;
1101
+ delete process.env.NANO_MODEL;
1102
+ delete process.env.MEDIUM_MODEL;
1103
+ delete process.env.SMALL_MODEL;
1104
+ delete process.env.LARGE_MODEL;
1105
+ delete process.env.MEGA_MODEL;
1106
+ }
1107
+ // Propagate per-service disable flags so downstream code can check them
1108
+ // without needing direct access to the ElizaConfig object.
1109
+ if (!topology.services.tts) {
1110
+ process.env.ELIZA_CLOUD_TTS_DISABLED = "true";
1111
+ }
1112
+ else {
1113
+ delete process.env.ELIZA_CLOUD_TTS_DISABLED;
1114
+ }
1115
+ if (!topology.services.media) {
1116
+ process.env.ELIZA_CLOUD_MEDIA_DISABLED = "true";
1117
+ }
1118
+ else {
1119
+ delete process.env.ELIZA_CLOUD_MEDIA_DISABLED;
1120
+ }
1121
+ if (!topology.services.embeddings) {
1122
+ process.env.ELIZA_CLOUD_EMBEDDINGS_DISABLED = "true";
1123
+ }
1124
+ else {
1125
+ delete process.env.ELIZA_CLOUD_EMBEDDINGS_DISABLED;
1126
+ }
1127
+ if (!topology.services.rpc) {
1128
+ process.env.ELIZA_CLOUD_RPC_DISABLED = "true";
1129
+ }
1130
+ else {
1131
+ delete process.env.ELIZA_CLOUD_RPC_DISABLED;
1132
+ }
1133
+ }
1134
+ /**
1135
+ * Translate `config.database` into the environment variables that
1136
+ * `@elizaos/plugin-sql` reads at init time (`POSTGRES_URL`, `PGLITE_DATA_DIR`).
1137
+ *
1138
+ * When the provider is "postgres", we build a connection string from the
1139
+ * credentials (or use the explicit `connectionString` field) and set
1140
+ * `POSTGRES_URL`. When the provider is "pglite" (the default), we set
1141
+ * `PGLITE_DATA_DIR` to either the configured value or the resolved default
1142
+ * workspace (`<workspace>/.eliza/.elizadb`) and remove any stale
1143
+ * `POSTGRES_URL`.
1144
+ */
1145
+ /** @internal Exported for testing. */
1146
+ export function applyX402ConfigToEnv(config) {
1147
+ const x402 = config.x402;
1148
+ if (!x402?.enabled)
1149
+ return;
1150
+ if (!process.env.X402_ENABLED)
1151
+ process.env.X402_ENABLED = "true";
1152
+ if (x402.apiKey && !process.env.X402_API_KEY)
1153
+ process.env.X402_API_KEY = x402.apiKey;
1154
+ if (x402.baseUrl && !process.env.X402_BASE_URL)
1155
+ process.env.X402_BASE_URL = x402.baseUrl;
1156
+ }
1157
+ /**
1158
+ * Resolve N8N_HOST + N8N_API_KEY for @elizaos/plugin-n8n-workflow.
1159
+ *
1160
+ * Precedence:
1161
+ * 1. Existing process.env values (user override) — respected as-is.
1162
+ * 2. Eliza Cloud authenticated (cloud.apiKey present AND cloud.enabled !== false):
1163
+ * N8N_HOST = `${cloudBaseUrl}/api/v1/agents/${agentId}/n8n`
1164
+ * N8N_API_KEY = cloud.apiKey
1165
+ * 3. Local sidecar — the sidecar lifecycle writes `config.n8n.host` and
1166
+ * `config.n8n.apiKey` when it reaches "ready". We pump those into
1167
+ * process.env here when cloud did not fire. The authoritative shape is
1168
+ * `N8nConfig` in types.eliza.ts.
1169
+ * 4. Otherwise: leave unset. The plugin's init() no-ops without credentials.
1170
+ *
1171
+ * Called from startEliza() after applyCloudConfigToEnv so cloud settings are
1172
+ * already reflected in process.env.
1173
+ *
1174
+ * @internal Exported for testing.
1175
+ */
1176
+ export function applyN8nConfigToEnv(config, agentId) {
1177
+ // 1. Respect existing process.env overrides.
1178
+ if (process.env.N8N_HOST && process.env.N8N_API_KEY)
1179
+ return;
1180
+ // Master gate — when config.n8n.enabled is false, do not pump anything.
1181
+ if (config.n8n?.enabled === false)
1182
+ return;
1183
+ const cloud = config.cloud;
1184
+ const cloudAuthed = Boolean(cloud?.apiKey) && cloud?.enabled !== false;
1185
+ if (cloudAuthed && cloud?.apiKey) {
1186
+ const rawBase = cloud.baseUrl ?? "https://www.elizacloud.ai";
1187
+ // Strip trailing /api/v1 (or /api/v1/) plus any trailing slashes so we can
1188
+ // build `${siteUrl}/api/v1/agents/${agentId}/n8n` without duplication.
1189
+ const safeBase = rawBase.length > 8192 ? rawBase.slice(0, 8192) : rawBase;
1190
+ const siteUrl = safeBase
1191
+ .replace(/\/api\/v1\/?$/, "")
1192
+ .replace(/\/{1,1024}$/, "");
1193
+ const gateway = `${siteUrl}/api/v1/agents/${agentId}/n8n`;
1194
+ if (!process.env.N8N_HOST)
1195
+ process.env.N8N_HOST = gateway;
1196
+ if (!process.env.N8N_API_KEY)
1197
+ process.env.N8N_API_KEY = cloud.apiKey;
1198
+ return;
1199
+ }
1200
+ // 2. Local sidecar path — the sidecar populates `config.n8n.host` and
1201
+ // `config.n8n.apiKey` (authoritative N8nConfig shape) when it reaches
1202
+ // "ready". Surface those to process.env for the plugin.
1203
+ const n8n = config.n8n;
1204
+ if (n8n?.host && n8n?.apiKey) {
1205
+ if (!process.env.N8N_HOST)
1206
+ process.env.N8N_HOST = n8n.host;
1207
+ if (!process.env.N8N_API_KEY)
1208
+ process.env.N8N_API_KEY = n8n.apiKey;
1209
+ return;
1210
+ }
1211
+ // 3. Fallback — leave unset. Legacy `config.env.vars` entries (N8N_HOST /
1212
+ // N8N_API_KEY) still flow through the generic env-var pump in startEliza.
1213
+ }
1214
+ function resolveDefaultPgliteDataDir(config) {
1215
+ const workspaceDir = config.agents?.defaults?.workspace ?? resolveDefaultAgentWorkspaceDir();
1216
+ return path.join(resolveUserPath(workspaceDir), ".eliza", ".elizadb");
1217
+ }
1218
+ /** @internal Exported for testing. */
1219
+ export function applyDatabaseConfigToEnv(config) {
1220
+ const db = config.database;
1221
+ const provider = db?.provider ?? "pglite";
1222
+ if (provider === "postgres" && db?.postgres) {
1223
+ const pg = db.postgres;
1224
+ let url = pg.connectionString;
1225
+ if (!url) {
1226
+ const host = pg.host ?? "localhost";
1227
+ const port = pg.port ?? 5432;
1228
+ const user = encodeURIComponent(pg.user ?? "postgres");
1229
+ const password = pg.password ? encodeURIComponent(pg.password) : "";
1230
+ const database = pg.database ?? "postgres";
1231
+ const auth = password ? `${user}:${password}` : user;
1232
+ const sslParam = pg.ssl ? "?sslmode=require" : "";
1233
+ url = `postgresql://${auth}@${host}:${port}/${database}${sslParam}`;
1234
+ }
1235
+ process.env.POSTGRES_URL = url;
1236
+ // Clear PGLite dir so plugin-sql does not fall back to PGLite
1237
+ delete process.env.PGLITE_DATA_DIR;
1238
+ }
1239
+ else {
1240
+ // PGLite mode (default): ensure no leftover POSTGRES_URL and pin
1241
+ // PGLite to the workspace path unless overridden by config/env.
1242
+ delete process.env.POSTGRES_URL;
1243
+ const configuredDataDir = db?.pglite?.dataDir?.trim();
1244
+ if (configuredDataDir) {
1245
+ process.env.PGLITE_DATA_DIR = resolveUserPath(configuredDataDir);
1246
+ // Fall through to directory creation below instead of returning early
1247
+ }
1248
+ const envDataDir = process.env.PGLITE_DATA_DIR?.trim();
1249
+ if (!envDataDir) {
1250
+ process.env.PGLITE_DATA_DIR = resolveDefaultPgliteDataDir(config);
1251
+ }
1252
+ // Ensure the PGlite data directory exists before init so PGlite does
1253
+ // not silently fall back to in-memory mode on first run.
1254
+ const dataDir = process.env.PGLITE_DATA_DIR;
1255
+ if (dataDir) {
1256
+ const alreadyExisted = existsSync(dataDir);
1257
+ mkdirSync(dataDir, { recursive: true });
1258
+ logger.info(`[eliza] PGlite data dir: ${dataDir} (${alreadyExisted ? "existed" : "created"})`);
1259
+ // Remove stale postmaster.pid left by a crashed process. Without this,
1260
+ // PGlite sees the lock and either fails or, with explicit destructive
1261
+ // recovery enabled, triggers the resetPgliteDataDir path.
1262
+ cleanStalePglitePid(dataDir);
1263
+ }
1264
+ }
1265
+ }
1266
+ function reconcilePglitePidFile(dataDir) {
1267
+ const pidPath = path.join(dataDir, "postmaster.pid");
1268
+ if (!existsSync(pidPath))
1269
+ return "missing";
1270
+ try {
1271
+ const content = readFileSync(pidPath, "utf-8");
1272
+ const firstLine = content.split("\n")[0]?.trim();
1273
+ const pid = parseInt(firstLine, 10);
1274
+ if (Number.isNaN(pid) || pid <= 0) {
1275
+ // Malformed pid file — remove it
1276
+ unlinkSync(pidPath);
1277
+ logger.info(`[eliza] Removed malformed PGlite postmaster.pid`);
1278
+ return "cleared-malformed";
1279
+ }
1280
+ // Check if the process is still alive
1281
+ try {
1282
+ process.kill(pid, 0); // signal 0 = existence check, doesn't kill
1283
+ // Process exists — pid file is NOT stale, leave it alone
1284
+ logger.info(`[eliza] PGlite postmaster.pid references running process ${pid} — leaving intact`);
1285
+ return "active";
1286
+ }
1287
+ catch (killErr) {
1288
+ const code = killErr.code;
1289
+ if (code === "ESRCH") {
1290
+ // Process doesn't exist — stale pid file, safe to remove
1291
+ unlinkSync(pidPath);
1292
+ logger.info(`[eliza] Removed stale PGlite postmaster.pid (process ${pid} not running)`);
1293
+ return "cleared-stale";
1294
+ }
1295
+ else {
1296
+ // EPERM or other — process may be alive under a different user,
1297
+ // leave the file alone to avoid data directory corruption
1298
+ logger.warn(`[eliza] Cannot confirm postmaster.pid staleness (${code}) — leaving intact`);
1299
+ return "active-unconfirmed";
1300
+ }
1301
+ }
1302
+ }
1303
+ catch (err) {
1304
+ logger.warn(`[eliza] Failed to check PGlite postmaster.pid: ${formatError(err)}`);
1305
+ return "check-failed";
1306
+ }
1307
+ }
1308
+ /**
1309
+ * Check for and remove a stale postmaster.pid in the PGlite data directory.
1310
+ * The pid file is stale if the recorded process is no longer running.
1311
+ */
1312
+ export function cleanStalePglitePid(dataDir) {
1313
+ try {
1314
+ reconcilePglitePidFile(dataDir);
1315
+ }
1316
+ catch (err) {
1317
+ logger.warn(`[eliza] PGlite PID reconciliation failed: ${err}`);
1318
+ }
1319
+ }
1320
+ function collectErrorMessages(err) {
1321
+ const messages = [];
1322
+ const seen = new Set();
1323
+ let current = err;
1324
+ while (current && !seen.has(current)) {
1325
+ seen.add(current);
1326
+ if (typeof current === "string") {
1327
+ messages.push(current);
1328
+ break;
1329
+ }
1330
+ if (current instanceof Error) {
1331
+ if (current.message)
1332
+ messages.push(current.message);
1333
+ if (current.stack)
1334
+ messages.push(current.stack);
1335
+ current = current.cause;
1336
+ continue;
1337
+ }
1338
+ if (typeof current === "object") {
1339
+ const maybeErr = current;
1340
+ if (typeof maybeErr.message === "string" && maybeErr.message) {
1341
+ messages.push(maybeErr.message);
1342
+ }
1343
+ if (maybeErr.cause !== undefined) {
1344
+ current = maybeErr.cause;
1345
+ continue;
1346
+ }
1347
+ }
1348
+ break;
1349
+ }
1350
+ return messages;
1351
+ }
1352
+ function isPgliteLockError(err) {
1353
+ const haystack = collectErrorMessages(err).join("\n").toLowerCase();
1354
+ if (!haystack)
1355
+ return false;
1356
+ const hasPglite = haystack.includes("pglite");
1357
+ const hasSqlite = haystack.includes("sqlite");
1358
+ const hasLockSignal = haystack.includes("database is locked") ||
1359
+ haystack.includes("lock file already exists");
1360
+ return hasLockSignal && (hasPglite || hasSqlite);
1361
+ }
1362
+ /** @internal Exported for testing. */
1363
+ export function isRecoverablePgliteInitError(err) {
1364
+ const code = getPgliteErrorCode(err);
1365
+ if (code === PGLITE_ERROR_CODES.ACTIVE_LOCK ||
1366
+ code === PGLITE_ERROR_CODES.CORRUPT_DATA ||
1367
+ code === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED) {
1368
+ return true;
1369
+ }
1370
+ const haystack = collectErrorMessages(err).join("\n").toLowerCase();
1371
+ if (!haystack)
1372
+ return false;
1373
+ const hasAbort = haystack.includes("aborted(). build with -sassertions");
1374
+ const hasPglite = haystack.includes("pglite");
1375
+ const _hasSqlite = haystack.includes("sqlite");
1376
+ const hasMigrationsSchema = haystack.includes("create schema if not exists migrations") ||
1377
+ haystack.includes("failed query: create schema if not exists migrations");
1378
+ const hasRecoverableStorageSignal = [
1379
+ "database disk image is malformed",
1380
+ "file is not a database",
1381
+ "malformed database schema",
1382
+ "database is locked",
1383
+ "lock file already exists",
1384
+ "wal file",
1385
+ "checkpoint failed",
1386
+ "checksum mismatch",
1387
+ "corrupt",
1388
+ "could not read blocks",
1389
+ "read only ",
1390
+ "unreachable code should not be executed",
1391
+ "_pgl_backend",
1392
+ ].some((needle) => haystack.includes(needle));
1393
+ if (hasMigrationsSchema)
1394
+ return true;
1395
+ if (hasAbort && hasPglite)
1396
+ return true;
1397
+ if (hasRecoverableStorageSignal)
1398
+ return true;
1399
+ return false;
1400
+ }
1401
+ /** @internal Exported for testing. */
1402
+ export function getPgliteRecoveryAction(err, dataDir) {
1403
+ const code = getPgliteErrorCode(err);
1404
+ if (code === PGLITE_ERROR_CODES.ACTIVE_LOCK) {
1405
+ return "fail-active-lock";
1406
+ }
1407
+ if (code === PGLITE_ERROR_CODES.CORRUPT_DATA ||
1408
+ code === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED) {
1409
+ return "fail-manual-reset";
1410
+ }
1411
+ if (!isRecoverablePgliteInitError(err))
1412
+ return "none";
1413
+ const pidStatus = reconcilePglitePidFile(dataDir);
1414
+ const treatPidAsActiveLock = code === PGLITE_ERROR_CODES.ACTIVE_LOCK || isPgliteLockError(err);
1415
+ if ((treatPidAsActiveLock && pidStatus === "active") ||
1416
+ (treatPidAsActiveLock && pidStatus === "active-unconfirmed") ||
1417
+ (treatPidAsActiveLock && pidStatus === "check-failed")) {
1418
+ return "fail-active-lock";
1419
+ }
1420
+ if (pidStatus === "cleared-stale" || pidStatus === "cleared-malformed") {
1421
+ return "retry-without-reset";
1422
+ }
1423
+ return "fail-manual-reset";
1424
+ }
1425
+ function createActivePgliteLockError(dataDir, err) {
1426
+ if (getPgliteErrorCode(err) === PGLITE_ERROR_CODES.ACTIVE_LOCK &&
1427
+ err instanceof Error) {
1428
+ return err;
1429
+ }
1430
+ return createPgliteInitError(PGLITE_ERROR_CODES.ACTIVE_LOCK, `PGLite data dir is already in use at ${dataDir}. Close the other Eliza or Eliza process, or set a different PGLITE_DATA_DIR before retrying.`, { cause: err, dataDir });
1431
+ }
1432
+ function formatPgliteFailure(err) {
1433
+ return collectErrorMessages(err)[0] ?? formatError(err);
1434
+ }
1435
+ function createManualResetRequiredPgliteError(dataDir, err) {
1436
+ if (getPgliteErrorCode(err) === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED &&
1437
+ err instanceof Error) {
1438
+ return err;
1439
+ }
1440
+ const errorText = formatPgliteFailure(err);
1441
+ const cause = getPgliteErrorCode(err) === PGLITE_ERROR_CODES.CORRUPT_DATA
1442
+ ? err
1443
+ : createPgliteInitError(PGLITE_ERROR_CODES.CORRUPT_DATA, `PGlite data dir at ${dataDir} appears corrupt or unreadable: ${errorText}`, { cause: err, dataDir });
1444
+ return createPgliteInitError(PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED, `PGlite initialization failed for ${dataDir}: ${errorText}. Stop Eliza, then rename or delete only this directory before retrying: ${dataDir}`, { cause, dataDir });
1445
+ }
1446
+ export function isFatalPgliteStartupError(err) {
1447
+ const code = getPgliteErrorCode(err);
1448
+ return (code === PGLITE_ERROR_CODES.ACTIVE_LOCK ||
1449
+ code === PGLITE_ERROR_CODES.CORRUPT_DATA ||
1450
+ code === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED);
1451
+ }
1452
+ function resolveActivePgliteDataDir(config) {
1453
+ const provider = config.database?.provider ?? "pglite";
1454
+ if (provider === "postgres")
1455
+ return null;
1456
+ const configured = process.env.PGLITE_DATA_DIR?.trim();
1457
+ const dataDir = configured || resolveDefaultPgliteDataDir(config);
1458
+ return resolveUserPath(dataDir);
1459
+ }
1460
+ /** Call whichever init method the adapter exposes (.init or .initialize). */
1461
+ async function callAdapterInit(adapter) {
1462
+ const fn = "init" in adapter &&
1463
+ typeof adapter.init === "function"
1464
+ ? adapter.init
1465
+ : adapter.initialize;
1466
+ if (typeof fn === "function")
1467
+ await fn.call(adapter);
1468
+ }
1469
+ async function initializeDatabaseAdapter(runtime, config) {
1470
+ if (!runtime.adapter || (await runtime.adapter.isReady()))
1471
+ return;
1472
+ try {
1473
+ await callAdapterInit(runtime.adapter);
1474
+ logger.info("[eliza] Database adapter initialized early (before plugin inits)");
1475
+ }
1476
+ catch (err) {
1477
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
1478
+ if (!pgliteDataDir) {
1479
+ throw err;
1480
+ }
1481
+ const recoveryAction = getPgliteRecoveryAction(err, pgliteDataDir);
1482
+ if (recoveryAction === "none") {
1483
+ throw err;
1484
+ }
1485
+ if (recoveryAction === "fail-active-lock") {
1486
+ throw createActivePgliteLockError(pgliteDataDir, err);
1487
+ }
1488
+ if (recoveryAction === "fail-manual-reset") {
1489
+ throw createManualResetRequiredPgliteError(pgliteDataDir, err);
1490
+ }
1491
+ logger.warn(`[eliza] PGLite init failed (${formatError(err)}). Cleared a stale PGLite lock in ${pgliteDataDir} and retrying without resetting data.`);
1492
+ await callAdapterInit(runtime.adapter);
1493
+ logger.info("[eliza] Database adapter recovered after clearing a stale PGLite lock");
1494
+ }
1495
+ // Health check: verify PGlite data directory has files after init.
1496
+ // Runs on BOTH the happy path and the recovery path.
1497
+ await verifyPgliteDataDir(config);
1498
+ }
1499
+ /**
1500
+ * Verify PGlite data directory contains files after init.
1501
+ * Warns if the directory is empty (suggests ephemeral/in-memory fallback).
1502
+ */
1503
+ async function verifyPgliteDataDir(config) {
1504
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
1505
+ if (!pgliteDataDir || !existsSync(pgliteDataDir))
1506
+ return;
1507
+ try {
1508
+ const files = await fs.readdir(pgliteDataDir);
1509
+ logger.info(`[eliza] PGlite health check: ${files.length} file(s) in ${pgliteDataDir}`);
1510
+ if (files.length === 0) {
1511
+ logger.warn(`[eliza] PGlite data directory is empty after init — data may not persist across restarts`);
1512
+ }
1513
+ }
1514
+ catch (err) {
1515
+ logger.warn(`[eliza] PGlite health check failed: ${formatError(err)}`);
1516
+ }
1517
+ }
1518
+ function isPluginAlreadyRegisteredError(err) {
1519
+ return formatError(err).toLowerCase().includes("already registered");
1520
+ }
1521
+ function getConstraintName(error) {
1522
+ if (!error || typeof error !== "object")
1523
+ return null;
1524
+ const err = error;
1525
+ if (typeof err.constraint === "string" && err.constraint.length > 0) {
1526
+ return err.constraint;
1527
+ }
1528
+ if (err.cause)
1529
+ return getConstraintName(err.cause);
1530
+ return null;
1531
+ }
1532
+ function isComponentsWorldFkViolation(error) {
1533
+ return getConstraintName(error) === "components_world_id_worlds_id_fk";
1534
+ }
1535
+ function toErrorDetails(error, depth = 0) {
1536
+ if (!error || typeof error !== "object") {
1537
+ return { value: String(error) };
1538
+ }
1539
+ const err = error;
1540
+ const details = {};
1541
+ for (const key of [
1542
+ "name",
1543
+ "message",
1544
+ "code",
1545
+ "detail",
1546
+ "hint",
1547
+ "constraint",
1548
+ "schema",
1549
+ "table",
1550
+ "column",
1551
+ "where",
1552
+ ]) {
1553
+ const value = err[key];
1554
+ if (typeof value === "string" || typeof value === "number") {
1555
+ details[key] = value;
1556
+ }
1557
+ }
1558
+ if (depth < 2 && err.cause) {
1559
+ details.cause = toErrorDetails(err.cause, depth + 1);
1560
+ }
1561
+ return details;
1562
+ }
1563
+ async function withEntityCreateMutex(runtimeWithBindings, fn) {
1564
+ const previous = runtimeWithBindings.__elizaEntityCreateMutex;
1565
+ let release = () => { };
1566
+ runtimeWithBindings.__elizaEntityCreateMutex = new Promise((resolve) => {
1567
+ release = resolve;
1568
+ });
1569
+ if (previous) {
1570
+ await previous;
1571
+ }
1572
+ try {
1573
+ return await fn();
1574
+ }
1575
+ finally {
1576
+ release();
1577
+ }
1578
+ }
1579
+ function summarizeComponentWrite(input) {
1580
+ if (!input || typeof input !== "object" || Array.isArray(input)) {
1581
+ return { inputType: typeof input };
1582
+ }
1583
+ const record = input;
1584
+ const data = record.data;
1585
+ const dataKeys = data && typeof data === "object" && !Array.isArray(data)
1586
+ ? Object.keys(data).slice(0, 20)
1587
+ : [];
1588
+ return {
1589
+ id: record.id,
1590
+ type: record.type,
1591
+ entityId: record.entityId ?? record.entity_id,
1592
+ sourceEntityId: record.sourceEntityId ?? record.source_entity_id,
1593
+ roomId: record.roomId ?? record.room_id,
1594
+ worldId: record.worldId ?? record.world_id,
1595
+ agentId: record.agentId ?? record.agent_id,
1596
+ dataKeys,
1597
+ };
1598
+ }
1599
+ export function installRuntimeMethodBindings(runtime) {
1600
+ const runtimeWithBindings = runtime;
1601
+ if (runtimeWithBindings.__elizaMethodBindingsInstalled) {
1602
+ return;
1603
+ }
1604
+ installRuntimePluginLifecycle(runtime);
1605
+ // Some plugin builds store this method and invoke it later without the
1606
+ // runtime receiver, which breaks private-field access in AgentRuntime.
1607
+ runtime.getConversationLength = runtime.getConversationLength.bind(runtime);
1608
+ // Wrap getSetting() to fall back to process.env for known keys when the
1609
+ // core returns null. elizaOS core returns null for missing keys, but some
1610
+ // plugins (e.g. @elizaos/plugin-google-genai) check `!== undefined` and
1611
+ // convert null to the string "null", causing API calls like `models/null`.
1612
+ // Scoped to an allowlist to avoid leaking arbitrary env vars to plugins.
1613
+ const GETSETTING_ENV_ALLOWLIST = new Set([
1614
+ // Model provider API keys
1615
+ "ANTHROPIC_API_KEY",
1616
+ "OPENAI_API_KEY",
1617
+ "GOOGLE_GENERATIVE_AI_API_KEY",
1618
+ "GOOGLE_API_KEY",
1619
+ "GEMINI_API_KEY",
1620
+ "GROQ_API_KEY",
1621
+ "XAI_API_KEY",
1622
+ "DEEPSEEK_API_KEY",
1623
+ "OPENROUTER_API_KEY",
1624
+ // Google model defaults
1625
+ "GOOGLE_SMALL_MODEL",
1626
+ "GOOGLE_LARGE_MODEL",
1627
+ // GitHub
1628
+ "GITHUB_TOKEN",
1629
+ "GITHUB_OAUTH_CLIENT_ID",
1630
+ // Coding agent model preferences
1631
+ "PARALLAX_CLAUDE_MODEL_POWERFUL",
1632
+ "PARALLAX_CLAUDE_MODEL_FAST",
1633
+ "PARALLAX_GEMINI_MODEL_POWERFUL",
1634
+ "PARALLAX_GEMINI_MODEL_FAST",
1635
+ "PARALLAX_CODEX_MODEL_POWERFUL",
1636
+ "PARALLAX_CODEX_MODEL_FAST",
1637
+ "PARALLAX_AIDER_PROVIDER",
1638
+ "PARALLAX_AIDER_MODEL_POWERFUL",
1639
+ "PARALLAX_AIDER_MODEL_FAST",
1640
+ // Custom credential forwarding — intentionally broad: users configure which env vars
1641
+ // to forward to coding agents via this comma-separated key list (e.g. MCP server tokens).
1642
+ "CUSTOM_CREDENTIAL_KEYS",
1643
+ ]);
1644
+ const originalGetSetting = runtime.getSetting.bind(runtime);
1645
+ runtime.getSetting = (key) => {
1646
+ const result = originalGetSetting(key);
1647
+ if (result !== null && result !== undefined)
1648
+ return result;
1649
+ if (GETSETTING_ENV_ALLOWLIST.has(key)) {
1650
+ const envVal = process.env[key];
1651
+ if (envVal !== undefined && envVal.trim() !== "")
1652
+ return envVal;
1653
+ }
1654
+ return result;
1655
+ };
1656
+ // Add targeted diagnostics around component writes. Relationships reflection and
1657
+ // relationship extraction rely heavily on components; when inserts fail,
1658
+ // upstream logs often hide the concrete DB cause/constraint.
1659
+ if (!runtimeWithBindings.__elizaComponentWriteDiagnosticsInstalled) {
1660
+ const runtimeWithComponentWrites = runtime;
1661
+ if (typeof runtimeWithComponentWrites.createComponent === "function") {
1662
+ const originalCreate = runtimeWithComponentWrites.createComponent.bind(runtime);
1663
+ runtimeWithComponentWrites.createComponent = async (input) => {
1664
+ try {
1665
+ return await originalCreate(input);
1666
+ }
1667
+ catch (error) {
1668
+ // Recovery path: some evaluators (e.g. relationship extraction)
1669
+ // compute a synthetic worldId that may not exist yet. If we hit the
1670
+ // components->worlds FK, retry once with the room's canonical worldId.
1671
+ if (isComponentsWorldFkViolation(error) &&
1672
+ input.roomId &&
1673
+ typeof runtime.getRoom === "function") {
1674
+ try {
1675
+ const room = await runtime.getRoom(input.roomId);
1676
+ const fallbackWorldId = room?.worldId ?? null;
1677
+ if (fallbackWorldId !== input.worldId) {
1678
+ logger.warn(`[eliza] createComponent retry with ${fallbackWorldId ? `room worldId (${fallbackWorldId})` : "null worldId"} after FK violation`);
1679
+ const recovered = {
1680
+ ...input,
1681
+ worldId: fallbackWorldId,
1682
+ };
1683
+ return await originalCreate(recovered);
1684
+ }
1685
+ }
1686
+ catch (retryLookupError) {
1687
+ logger.warn(`[eliza] createComponent recovery lookup failed: ${formatError(retryLookupError)}`);
1688
+ }
1689
+ }
1690
+ const component = summarizeComponentWrite(input);
1691
+ logger.error(`[eliza] createComponent failed: ${formatError(error)} | component=${JSON.stringify(component)}`);
1692
+ logger.error(`[eliza] createComponent db details: ${JSON.stringify(toErrorDetails(error))}`);
1693
+ throw error;
1694
+ }
1695
+ };
1696
+ }
1697
+ if (typeof runtimeWithComponentWrites.updateComponent === "function") {
1698
+ const originalUpdate = runtimeWithComponentWrites.updateComponent.bind(runtime);
1699
+ runtimeWithComponentWrites.updateComponent = async (input) => {
1700
+ try {
1701
+ return await originalUpdate(input);
1702
+ }
1703
+ catch (error) {
1704
+ const component = summarizeComponentWrite(input);
1705
+ logger.error(`[eliza] updateComponent failed: ${formatError(error)} | component=${JSON.stringify(component)}`);
1706
+ logger.error(`[eliza] updateComponent db details: ${JSON.stringify(toErrorDetails(error))}`);
1707
+ throw error;
1708
+ }
1709
+ };
1710
+ }
1711
+ runtimeWithBindings.__elizaComponentWriteDiagnosticsInstalled = true;
1712
+ }
1713
+ // Proactive guard for plugin-sql entity creation. Some evaluators may attempt
1714
+ // to create the same entity in rapid succession; plugin-sql's batch insert is
1715
+ // non-idempotent and can fail entire writes on duplicate/conflicting rows.
1716
+ if (!runtimeWithBindings.__elizaEntityWriteDiagnosticsInstalled) {
1717
+ const runtimeWithEntityWrites = runtime;
1718
+ if (typeof runtimeWithEntityWrites.createEntities === "function") {
1719
+ const originalCreateEntities = runtimeWithEntityWrites.createEntities.bind(runtime);
1720
+ runtimeWithEntityWrites.createEntities = async (entities) => {
1721
+ return withEntityCreateMutex(runtimeWithBindings, async () => {
1722
+ const uniqueById = new Map();
1723
+ for (const entity of entities) {
1724
+ if (entity?.id)
1725
+ uniqueById.set(entity.id, entity);
1726
+ }
1727
+ const deduped = Array.from(uniqueById.values());
1728
+ if (deduped.length === 0)
1729
+ return deduped.map((e) => e.id);
1730
+ let missing = deduped;
1731
+ if (typeof runtimeWithEntityWrites.getEntitiesByIds === "function") {
1732
+ try {
1733
+ const existing = (await runtimeWithEntityWrites.getEntitiesByIds(deduped.map((e) => e.id))) ?? [];
1734
+ const existingIds = new Set();
1735
+ for (const entity of existing) {
1736
+ if (entity?.id)
1737
+ existingIds.add(entity.id);
1738
+ }
1739
+ missing = deduped.filter((entity) => !existingIds.has(entity.id));
1740
+ }
1741
+ catch (err) {
1742
+ logger.warn(`[eliza] createEntities precheck failed; proceeding with guarded insert: ${formatError(err)}`);
1743
+ }
1744
+ }
1745
+ if (missing.length === 0)
1746
+ return deduped.map((e) => e.id);
1747
+ const result = await originalCreateEntities(missing);
1748
+ if (Array.isArray(result) ? result.length > 0 : result)
1749
+ return deduped.map((e) => e.id);
1750
+ if (typeof runtimeWithEntityWrites.ensureEntityExists === "function") {
1751
+ let allRecovered = true;
1752
+ for (const entity of missing) {
1753
+ try {
1754
+ const ensured = await runtimeWithEntityWrites.ensureEntityExists(entity);
1755
+ allRecovered = allRecovered && ensured;
1756
+ }
1757
+ catch (err) {
1758
+ allRecovered = false;
1759
+ logger.warn(`[eliza] ensureEntityExists recovery failed for ${String(entity.id)}: ${formatError(err)}`);
1760
+ }
1761
+ }
1762
+ if (allRecovered)
1763
+ return deduped.map((e) => e.id);
1764
+ }
1765
+ logger.warn(`[eliza] createEntities unresolved after guarded retries (requested=${entities.length}, deduped=${deduped.length}, missing=${missing.length})`);
1766
+ return [];
1767
+ });
1768
+ };
1769
+ }
1770
+ runtimeWithBindings.__elizaEntityWriteDiagnosticsInstalled = true;
1771
+ }
1772
+ runtimeWithBindings.__elizaMethodBindingsInstalled = true;
1773
+ }
1774
+ function installActionAliases(runtime) {
1775
+ const runtimeWithAliases = runtime;
1776
+ if (runtimeWithAliases.__elizaActionAliasesInstalled) {
1777
+ return;
1778
+ }
1779
+ const actions = Array.isArray(runtimeWithAliases.actions)
1780
+ ? runtimeWithAliases.actions
1781
+ : [];
1782
+ // Keep compaction automatic-only; do not allow manual COMPACT_SESSION invokes.
1783
+ const compactSessionIndex = actions.findIndex((action) => action?.name?.toUpperCase() === "COMPACT_SESSION");
1784
+ if (compactSessionIndex !== -1) {
1785
+ actions.splice(compactSessionIndex, 1);
1786
+ logger.info("[eliza] Disabled manual COMPACT_SESSION action; auto-compaction remains enabled");
1787
+ }
1788
+ // Compatibility alias: older prompts/docs still reference CODE_TASK,
1789
+ // while agent-orchestrator exposes CREATE_TASK.
1790
+ const createTaskAction = actions.find((action) => action?.name?.toUpperCase() === "CREATE_TASK");
1791
+ if (createTaskAction) {
1792
+ const similes = Array.isArray(createTaskAction.similes)
1793
+ ? createTaskAction.similes
1794
+ : [];
1795
+ const hasCodeTaskAlias = similes.some((simile) => simile.toUpperCase() === "CODE_TASK");
1796
+ if (!hasCodeTaskAlias) {
1797
+ createTaskAction.similes = [...similes, "CODE_TASK"];
1798
+ logger.info("[eliza] Added action alias CODE_TASK -> CREATE_TASK for agent-orchestrator");
1799
+ }
1800
+ }
1801
+ runtimeWithAliases.__elizaActionAliasesInstalled = true;
1802
+ }
1803
+ async function registerSqlPluginWithRecovery(runtime, sqlPlugin, config) {
1804
+ let registerError = null;
1805
+ try {
1806
+ await runtime.registerPlugin(sqlPlugin.plugin);
1807
+ }
1808
+ catch (err) {
1809
+ registerError = err;
1810
+ }
1811
+ if (registerError) {
1812
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
1813
+ if (!pgliteDataDir) {
1814
+ throw registerError;
1815
+ }
1816
+ const recoveryAction = getPgliteRecoveryAction(registerError, pgliteDataDir);
1817
+ if (recoveryAction === "none") {
1818
+ throw registerError;
1819
+ }
1820
+ if (recoveryAction === "fail-active-lock") {
1821
+ throw createActivePgliteLockError(pgliteDataDir, registerError);
1822
+ }
1823
+ if (recoveryAction === "fail-manual-reset") {
1824
+ throw createManualResetRequiredPgliteError(pgliteDataDir, registerError);
1825
+ }
1826
+ logger.warn(`[eliza] SQL plugin registration failed (${formatError(registerError)}). Cleared a stale PGLite lock in ${pgliteDataDir} and retrying without resetting data.`);
1827
+ try {
1828
+ await runtime.registerPlugin(sqlPlugin.plugin);
1829
+ }
1830
+ catch (retryErr) {
1831
+ if (!isPluginAlreadyRegisteredError(retryErr)) {
1832
+ throw retryErr;
1833
+ }
1834
+ }
1835
+ }
1836
+ await initializeDatabaseAdapter(runtime, config);
1837
+ }
1838
+ /**
1839
+ * Build an elizaOS Character from the Eliza config.
1840
+ *
1841
+ * Resolves the agent name from `config.agents.list` (first entry) or
1842
+ * `config.ui.assistant.name`, falling back to the default bundled preset.
1843
+ * Character
1844
+ * personality data (bio, system prompt, style, etc.) is stored in the
1845
+ * database — not the config file — so we only provide sensible defaults
1846
+ * here for the initial setup.
1847
+ */
1848
+ /** @internal Exported for testing. */
1849
+ export function buildCharacterFromConfig(config) {
1850
+ const agentEntry = config.agents?.list?.[0];
1851
+ const uiConfig = (config.ui ?? {});
1852
+ const language = normalizeCharacterLanguage(uiConfig.language);
1853
+ const configuredUiName = uiConfig.assistant?.name?.trim();
1854
+ const configuredAgentName = agentEntry?.name?.trim();
1855
+ // Prefer the UI-level assistant name when it diverges from the bundled
1856
+ // preset entry so renames take effect immediately across prompts/logging.
1857
+ const configuredName = configuredUiName || configuredAgentName;
1858
+ const bundledPreset = resolveStylePresetById(uiConfig.presetId, language) ??
1859
+ resolveStylePresetByAvatarIndex(uiConfig.avatarIndex, language) ??
1860
+ resolveStylePresetByName(configuredName, language) ??
1861
+ (configuredName ? undefined : getDefaultStylePreset(language));
1862
+ const name = configuredName ??
1863
+ bundledPreset?.name ??
1864
+ getDefaultStylePreset(language).name;
1865
+ // Read personality fields from the agent config entry (set during
1866
+ // onboarding from the chosen style preset). Fall back to generic
1867
+ // defaults when the preset data is not present (e.g. pre-onboarding
1868
+ // setup or configs created before this change). For built-in default
1869
+ // characters, fall back to the bundled preset so legacy name-only configs
1870
+ // still retain their default posts/messages.
1871
+ const bio = agentEntry?.bio ??
1872
+ bundledPreset?.bio ?? [
1873
+ "{{name}} is an AI assistant powered by Eliza and elizaOS.",
1874
+ ];
1875
+ const systemPrompt = agentEntry?.system ??
1876
+ bundledPreset?.system ??
1877
+ "You are {{name}}, an autonomous AI agent powered by elizaOS.";
1878
+ const style = agentEntry?.style ?? bundledPreset?.style;
1879
+ const adjectives = agentEntry?.adjectives ?? bundledPreset?.adjectives;
1880
+ const topics = agentEntry?.topics && agentEntry.topics.length > 0
1881
+ ? agentEntry.topics
1882
+ : bundledPreset?.topics;
1883
+ const postExamples = agentEntry?.postExamples ?? bundledPreset?.postExamples;
1884
+ const messageExamples = agentEntry?.messageExamples ?? bundledPreset?.messageExamples;
1885
+ const advancedMemory = agentEntry?.advancedMemory ??
1886
+ config.agents?.defaults?.advancedMemory ??
1887
+ true;
1888
+ const advancedCapabilitiesEnabled = resolveAdvancedCapabilitiesEnabled(config);
1889
+ const settings = applyAdvancedCapabilitySettings({
1890
+ MEMORY_SUMMARY_MODEL_TYPE: process.env.MEMORY_SUMMARY_MODEL_TYPE?.trim() || "TEXT_SMALL",
1891
+ MEMORY_REFLECTION_MODEL_TYPE: process.env.MEMORY_REFLECTION_MODEL_TYPE?.trim() || "TEXT_LARGE",
1892
+ }, advancedCapabilitiesEnabled);
1893
+ // Collect secrets from process.env (API keys the plugins need)
1894
+ const secretKeys = [
1895
+ "ANTHROPIC_API_KEY",
1896
+ "OPENAI_API_KEY",
1897
+ "GEMINI_API_KEY",
1898
+ "GOOGLE_API_KEY",
1899
+ "GOOGLE_GENERATIVE_AI_API_KEY",
1900
+ "GROQ_API_KEY",
1901
+ "XAI_API_KEY",
1902
+ "OPENROUTER_API_KEY",
1903
+ "AI_GATEWAY_API_KEY",
1904
+ "AIGATEWAY_API_KEY",
1905
+ "AI_GATEWAY_BASE_URL",
1906
+ "AI_GATEWAY_SMALL_MODEL",
1907
+ "AI_GATEWAY_LARGE_MODEL",
1908
+ "AI_GATEWAY_EMBEDDING_MODEL",
1909
+ "AI_GATEWAY_EMBEDDING_DIMENSIONS",
1910
+ "AI_GATEWAY_IMAGE_MODEL",
1911
+ "AI_GATEWAY_TIMEOUT_MS",
1912
+ "OLLAMA_BASE_URL",
1913
+ "DISCORD_API_TOKEN",
1914
+ "DISCORD_APPLICATION_ID",
1915
+ "DISCORD_BOT_TOKEN",
1916
+ "TELEGRAM_BOT_TOKEN",
1917
+ "WHATSAPP_ACCESS_TOKEN",
1918
+ "WHATSAPP_PHONE_NUMBER_ID",
1919
+ "WHATSAPP_AUTH_DIR",
1920
+ "WHATSAPP_SESSION_PATH",
1921
+ "WHATSAPP_WEBHOOK_VERIFY_TOKEN",
1922
+ "WHATSAPP_API_VERSION",
1923
+ "WHATSAPP_DM_POLICY",
1924
+ "WHATSAPP_GROUP_POLICY",
1925
+ "WHATSAPP_ALLOW_FROM",
1926
+ "WHATSAPP_GROUP_ALLOW_FROM",
1927
+ "TELEGRAM_ACCOUNT_PHONE",
1928
+ "TELEGRAM_ACCOUNT_APP_ID",
1929
+ "TELEGRAM_ACCOUNT_APP_HASH",
1930
+ "TELEGRAM_ACCOUNT_DEVICE_MODEL",
1931
+ "TELEGRAM_ACCOUNT_SYSTEM_VERSION",
1932
+ "SLACK_BOT_TOKEN",
1933
+ "SLACK_APP_TOKEN",
1934
+ "SLACK_USER_TOKEN",
1935
+ "SIGNAL_ACCOUNT_NUMBER",
1936
+ "MSTEAMS_APP_ID",
1937
+ "MSTEAMS_APP_PASSWORD",
1938
+ "MATTERMOST_BOT_TOKEN",
1939
+ "MATTERMOST_BASE_URL",
1940
+ // ElizaCloud secrets
1941
+ "ELIZAOS_CLOUD_API_KEY",
1942
+ "ELIZAOS_CLOUD_BASE_URL",
1943
+ "ELIZAOS_CLOUD_ENABLED",
1944
+ // Wallet / blockchain secrets
1945
+ "EVM_PRIVATE_KEY",
1946
+ "SOLANA_PRIVATE_KEY",
1947
+ "ALCHEMY_API_KEY",
1948
+ "HELIUS_API_KEY",
1949
+ "BIRDEYE_API_KEY",
1950
+ "SOLANA_RPC_URL",
1951
+ "X402_PRIVATE_KEY",
1952
+ "X402_NETWORK",
1953
+ "X402_PAY_TO",
1954
+ "X402_FACILITATOR_URL",
1955
+ "X402_MAX_PAYMENT_USD",
1956
+ "X402_MAX_TOTAL_USD",
1957
+ "X402_ENABLED",
1958
+ "X402_DB_PATH",
1959
+ // n8n workflow plugin (resolved by applyN8nConfigToEnv)
1960
+ "N8N_HOST",
1961
+ "N8N_API_KEY",
1962
+ // GitHub access for coding agent plugin
1963
+ "GITHUB_TOKEN",
1964
+ "GITHUB_OAUTH_CLIENT_ID",
1965
+ ];
1966
+ const secrets = {};
1967
+ for (const key of secretKeys) {
1968
+ const value = process.env[key];
1969
+ if (value?.trim()) {
1970
+ secrets[key] = value;
1971
+ }
1972
+ }
1973
+ // Normalise messageExamples to the {examples: [{name,content}]} shape
1974
+ // that @elizaos/core expects. Config may contain EITHER format:
1975
+ // OLD (preset/onboarding): [[{user, content}, ...], ...]
1976
+ // NEW (@elizaos/core): [{examples: [{name, content}, ...]}, ...]
1977
+ const mappedExamples = messageExamples?.map((item) => {
1978
+ // Already in new format — pass through
1979
+ if (item &&
1980
+ typeof item === "object" &&
1981
+ "examples" in item) {
1982
+ return item;
1983
+ }
1984
+ // Old format — array of {user, content} entries
1985
+ const arr = item;
1986
+ return {
1987
+ examples: arr.map((msg) => ({
1988
+ name: msg.name ?? msg.user ?? "",
1989
+ content: msg.content,
1990
+ })),
1991
+ };
1992
+ });
1993
+ // Capability hints — append short descriptions of features the runtime has
1994
+ // auto-enabled so the model knows about new actions/tools without requiring
1995
+ // the user to hand-edit the system prompt. Kept terse (one sentence per
1996
+ // capability) to stay out of the way of the preset's voice.
1997
+ const capabilityHints = [];
1998
+ const n8nMasterEnabled = config.n8n?.enabled !== false;
1999
+ const n8nExplicitlyDisabled = config.plugins?.entries?.["n8n-workflow"]?.enabled === false;
2000
+ const n8nCloudAuthed = Boolean(config.cloud?.apiKey && config.cloud?.enabled !== false);
2001
+ const n8nLocalEnabled = config.n8n?.localEnabled !== false;
2002
+ if (n8nMasterEnabled &&
2003
+ !n8nExplicitlyDisabled &&
2004
+ (n8nCloudAuthed || n8nLocalEnabled)) {
2005
+ capabilityHints.push("You can create, activate, deactivate, and delete n8n workflows via natural language using the n8n workflow actions.");
2006
+ }
2007
+ const effectiveSystemPrompt = capabilityHints.length > 0
2008
+ ? `${systemPrompt}\n\n${capabilityHints.join("\n")}`
2009
+ : systemPrompt;
2010
+ return mergeCharacterDefaults({
2011
+ name,
2012
+ ...(agentEntry?.username ? { username: agentEntry.username } : {}),
2013
+ bio,
2014
+ system: effectiveSystemPrompt,
2015
+ ...(topics ? { topics } : {}),
2016
+ ...(style ? { style } : {}),
2017
+ ...(adjectives ? { adjectives } : {}),
2018
+ ...(postExamples ? { postExamples } : {}),
2019
+ ...(mappedExamples ? { messageExamples: mappedExamples } : {}),
2020
+ advancedMemory,
2021
+ settings,
2022
+ secrets,
2023
+ });
2024
+ }
2025
+ /**
2026
+ * Resolve the primary model identifier from Eliza config.
2027
+ *
2028
+ * Eliza stores the model under `agents.defaults.model.primary` as an
2029
+ * AgentModelListConfig object. Returns undefined when no model is
2030
+ * explicitly configured (elizaOS falls back to whichever model
2031
+ * plugin is loaded).
2032
+ */
2033
+ /** @internal Exported for testing. */
2034
+ export function resolvePrimaryModel(config) {
2035
+ const modelConfig = config.agents?.defaults?.model;
2036
+ if (!modelConfig)
2037
+ return undefined;
2038
+ // AgentDefaultsConfig.model is AgentModelListConfig: { primary?, fallbacks? }
2039
+ return modelConfig.primary;
2040
+ }
2041
+ function resolveProviderIdFromSelectionHint(value) {
2042
+ const trimmed = trimEnvString(value);
2043
+ if (!trimmed)
2044
+ return undefined;
2045
+ return (normalizeOnboardingProviderId(trimmed) ??
2046
+ normalizeOnboardingProviderId(trimmed.split("/", 1)[0]) ??
2047
+ undefined);
2048
+ }
2049
+ /** @internal Exported for testing. */
2050
+ export function resolvePreferredProviderId(config) {
2051
+ const llmText = resolveServiceRoutingInConfig(config)?.llmText;
2052
+ const backend = normalizeOnboardingProviderId(llmText?.backend);
2053
+ if (llmText?.transport === "cloud-proxy" && backend === "elizacloud") {
2054
+ return "elizacloud";
2055
+ }
2056
+ if (llmText?.transport === "direct") {
2057
+ const directProvider = backend && backend !== "elizacloud" ? backend : undefined;
2058
+ return (directProvider ?? resolveProviderIdFromSelectionHint(llmText.primaryModel));
2059
+ }
2060
+ if (llmText?.transport === "remote") {
2061
+ const remoteProvider = backend && backend !== "elizacloud" ? backend : undefined;
2062
+ return (remoteProvider ?? resolveProviderIdFromSelectionHint(llmText.primaryModel));
2063
+ }
2064
+ return resolveProviderIdFromSelectionHint(resolvePrimaryModel(config));
2065
+ }
2066
+ /** @internal Exported for testing. */
2067
+ export function resolvePreferredProviderPluginName(config) {
2068
+ const providerId = resolvePreferredProviderId(config);
2069
+ return providerId
2070
+ ? getOnboardingProviderOption(providerId)?.pluginName
2071
+ : undefined;
2072
+ }
2073
+ /**
2074
+ * Vision is a heavy optional plugin. When Eliza enables it, keep the service
2075
+ * loaded but idle until the user explicitly selects CAMERA, SCREEN, or BOTH.
2076
+ * This avoids background capture loops during normal app startup.
2077
+ */
2078
+ export function resolveVisionModeSetting(config, env = process.env) {
2079
+ const explicitMode = env.VISION_MODE?.trim();
2080
+ if (explicitMode)
2081
+ return explicitMode;
2082
+ if (config.features?.vision === true)
2083
+ return "OFF";
2084
+ return undefined;
2085
+ }
2086
+ /** @internal Exported for testing. */
2087
+ export function resolveWalletRuntimeSettings(config, env = process.env) {
2088
+ const directRpcUrl = trimEnvString(env.SOLANA_RPC_URL);
2089
+ const solanaNoActions = trimEnvString(env.SOLANA_NO_ACTIONS);
2090
+ const configEnv = config?.env;
2091
+ const configVars = configEnv?.vars &&
2092
+ typeof configEnv.vars === "object" &&
2093
+ !Array.isArray(configEnv.vars)
2094
+ ? configEnv.vars
2095
+ : undefined;
2096
+ const getConfigEnvString = (key) => {
2097
+ const value = configVars?.[key] ?? configEnv?.[key];
2098
+ return typeof value === "string" && value.trim() ? value.trim() : undefined;
2099
+ };
2100
+ const explicitSolanaPublicKey = trimEnvString(env.SOLANA_PUBLIC_KEY) ??
2101
+ trimEnvString(env.WALLET_PUBLIC_KEY) ??
2102
+ getConfigEnvString("SOLANA_PUBLIC_KEY") ??
2103
+ getConfigEnvString("WALLET_PUBLIC_KEY");
2104
+ const derivedSolanaPublicKey = trimEnvString(getWalletAddresses().solanaAddress) ??
2105
+ trimEnvString(syncSolanaPublicKeyEnv(getConfigEnvString("SOLANA_PRIVATE_KEY")));
2106
+ const solanaPublicKey = explicitSolanaPublicKey ?? derivedSolanaPublicKey;
2107
+ const settings = {};
2108
+ if (directRpcUrl) {
2109
+ settings.SOLANA_RPC_URL = directRpcUrl;
2110
+ }
2111
+ if (solanaNoActions) {
2112
+ settings.SOLANA_NO_ACTIONS = solanaNoActions;
2113
+ }
2114
+ if (!solanaPublicKey) {
2115
+ return settings;
2116
+ }
2117
+ settings.SOLANA_PUBLIC_KEY = solanaPublicKey;
2118
+ settings.WALLET_PUBLIC_KEY = solanaPublicKey;
2119
+ return settings;
2120
+ }
2121
+ /**
2122
+ * Boot the elizaOS runtime without starting the readline chat loop.
2123
+ *
2124
+ * This is a convenience wrapper around {@link startEliza} in headless mode,
2125
+ * with optional config guards.
2126
+ */
2127
+ export async function bootElizaRuntime(opts = {}) {
2128
+ if (opts.requireConfig && !configFileExists()) {
2129
+ throw new Error("No config found. Run `eliza start` once to complete setup.");
2130
+ }
2131
+ const runtime = await startEliza({ headless: true });
2132
+ if (!runtime) {
2133
+ throw new Error("Failed to boot runtime");
2134
+ }
2135
+ return runtime;
2136
+ }
2137
+ const LEVEL_TO_NAME = {
2138
+ 10: "trace",
2139
+ 20: "debug",
2140
+ 27: "success",
2141
+ 28: "progress",
2142
+ 29: "log",
2143
+ 30: "info",
2144
+ 40: "warn",
2145
+ 50: "error",
2146
+ 60: "fatal",
2147
+ };
2148
+ export const logToChatListener = (entry) => {
2149
+ if (entry.roomId && entry.runtime) {
2150
+ const runtime = entry.runtime;
2151
+ // access dynamic property
2152
+ const overrides = runtime.logLevelOverrides;
2153
+ const overrideLevel = overrides?.get(String(entry.roomId));
2154
+ if (overrideLevel) {
2155
+ const levelKey = entry.level;
2156
+ const levelName = (levelKey && LEVEL_TO_NAME[levelKey] ? LEVEL_TO_NAME[levelKey] : "log").toUpperCase();
2157
+ const prefix = `[${levelName}]`;
2158
+ const content = `${prefix} ${entry.msg}`;
2159
+ // Prevent infinite loops by suppressing logs from this action
2160
+ runtime
2161
+ .sendMessageToTarget({ roomId: entry.roomId }, {
2162
+ text: `\`\`\`\n${content}\n\`\`\``,
2163
+ source: "system",
2164
+ isLog: "true",
2165
+ })
2166
+ .catch((err) => {
2167
+ logger.debug(`[runtime] failed to send log message to target: ${err}`);
2168
+ });
2169
+ }
2170
+ }
2171
+ };
2172
+ /**
2173
+ * Start the elizaOS runtime with Eliza's configuration.
2174
+ *
2175
+ * In headless mode the runtime is returned instead of entering the
2176
+ * interactive readline loop.
2177
+ */
2178
+ export async function startEliza(opts) {
2179
+ // Start buffering logs early so startup messages appear in the UI log viewer
2180
+ const { captureEarlyLogs } = await import("../api/early-logs.js");
2181
+ captureEarlyLogs();
2182
+ // Register log listener for chat mirroring
2183
+ addLogListener(logToChatListener);
2184
+ // 1. Load Eliza config from ~/.eliza/eliza.json
2185
+ let config;
2186
+ try {
2187
+ config = loadElizaConfig();
2188
+ }
2189
+ catch (err) {
2190
+ if (err.code === "ENOENT") {
2191
+ logger.warn("[eliza] No config found, using defaults");
2192
+ // All ElizaConfig fields are optional, so an empty object is
2193
+ // structurally valid. The `as` cast is safe here.
2194
+ config = {};
2195
+ }
2196
+ else {
2197
+ throw err;
2198
+ }
2199
+ }
2200
+ // 1b. First-run onboarding — ask for agent name if not configured.
2201
+ // In headless mode (GUI) the onboarding is handled by the web UI,
2202
+ // so we skip the interactive CLI prompt and let the runtime start
2203
+ // with defaults. The GUI will restart the agent after onboarding.
2204
+ if (!opts?.headless) {
2205
+ config = await runFirstTimeSetup(config);
2206
+ }
2207
+ // 1c. Apply logging level from config to process.env so the global
2208
+ // @elizaos/core logger (used by plugins) respects it.
2209
+ // config.logging.level is guaranteed to be set (defaults to "error").
2210
+ // Users can still opt into noisy logs via config.logging.level or
2211
+ // an explicit LOG_LEVEL environment variable.
2212
+ if (!process.env.LOG_LEVEL) {
2213
+ process.env.LOG_LEVEL = config.logging?.level ?? "error";
2214
+ }
2215
+ // 2. Push channel secrets into process.env for plugin discovery
2216
+ applyConnectorSecretsToEnv(config);
2217
+ await autoResolveDiscordAppId();
2218
+ // 2b. Propagate cloud config into process.env for ElizaCloud plugin
2219
+ applyCloudConfigToEnv(config);
2220
+ // 2c. Propagate x402 config into process.env
2221
+ applyX402ConfigToEnv(config);
2222
+ // 2d. Propagate database config into process.env for plugin-sql
2223
+ applyDatabaseConfigToEnv(config);
2224
+ // 2e. Propagate arbitrary env vars from config.env into process.env.
2225
+ // Eliza stores user-defined env vars (plugin settings, API URLs, etc.)
2226
+ // in config.env; elizaOS plugins read them via process.env / getSetting.
2227
+ // Skip ELIZAOS_CLOUD_* — applyCloudConfigToEnv() owns those; otherwise a
2228
+ // stale key in config.env refills process.env after disconnect cleared it.
2229
+ if (config.env &&
2230
+ typeof config.env === "object" &&
2231
+ !Array.isArray(config.env)) {
2232
+ for (const [key, value] of Object.entries(config.env)) {
2233
+ if (isElizaCloudManagedProcessEnvKey(key))
2234
+ continue;
2235
+ if (typeof value === "string" && !process.env[key]) {
2236
+ process.env[key] = value;
2237
+ }
2238
+ }
2239
+ // Also hydrate from config.env.vars — setEnvValue writes API keys to
2240
+ // both config.env["KEY"] and config.env.vars["KEY"]. If the top-level
2241
+ // key was lost (e.g. pruneEnv, config migration), the nested form is
2242
+ // the authoritative source.
2243
+ const vars = config.env.vars;
2244
+ if (vars && typeof vars === "object" && !Array.isArray(vars)) {
2245
+ for (const [key, value] of Object.entries(vars)) {
2246
+ if (isElizaCloudManagedProcessEnvKey(key))
2247
+ continue;
2248
+ if (typeof value === "string" && !process.env[key]) {
2249
+ process.env[key] = value;
2250
+ }
2251
+ }
2252
+ }
2253
+ }
2254
+ // Keep the canonical public key env in sync for Solana plugins that still
2255
+ // read process.env directly instead of runtime settings.
2256
+ syncSolanaPublicKeyEnv();
2257
+ normalizeOpenAiCompatibleProviderConfig(config);
2258
+ // Log active database configuration for debugging persistence issues
2259
+ {
2260
+ const dbProvider = config.database?.provider ?? "pglite";
2261
+ const pgliteDir = process.env.PGLITE_DATA_DIR;
2262
+ const postgresUrl = process.env.POSTGRES_URL;
2263
+ logger.info(`[eliza] Database provider: ${dbProvider}` +
2264
+ (dbProvider === "pglite" && pgliteDir
2265
+ ? ` | data dir: ${pgliteDir}`
2266
+ : "") +
2267
+ (dbProvider === "postgres" && postgresUrl
2268
+ ? ` | connection: ${(postgresUrl.length > 4096 ? postgresUrl.slice(0, 4096) : postgresUrl).replace(/:\/\/([^:@]{1,1024}):([^@]{1,1024})@/, "://$1:***@")}`
2269
+ : ""));
2270
+ }
2271
+ // 2d-iii. OG tracking code initialization
2272
+ try {
2273
+ const { initializeOGCode } = await import("@elizaos/app-elizamaker");
2274
+ initializeOGCode();
2275
+ }
2276
+ catch {
2277
+ // Silent — OG tracking is non-critical
2278
+ }
2279
+ // 2d-ii. Allow destructive migrations (e.g. dropping tables removed between
2280
+ // plugin versions) so the runtime doesn't silently stall. Without this
2281
+ // the migration system throws an error that gets swallowed, leaving the
2282
+ // app hanging indefinitely with no output.
2283
+ if (!process.env.ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS) {
2284
+ process.env.ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS = "true";
2285
+ }
2286
+ // 2e-ii. Ensure SECRET_SALT is set to suppress the @elizaos/core default
2287
+ // warning and avoid using a predictable value in production.
2288
+ if (!process.env.SECRET_SALT) {
2289
+ process.env.SECRET_SALT = crypto.randomBytes(32).toString("hex");
2290
+ logger.info("[eliza] Generated random SECRET_SALT for this session");
2291
+ }
2292
+ // 2e-iii. Pre-flight validation for Google AI API keys. If the key looks
2293
+ // obviously invalid (too short, placeholder, wrong prefix), clear it
2294
+ // to prevent plugin-google-genai from making a failing API call.
2295
+ for (const gkey of [
2296
+ "GEMINI_API_KEY",
2297
+ "GOOGLE_API_KEY",
2298
+ "GOOGLE_GENERATIVE_AI_API_KEY",
2299
+ ]) {
2300
+ const val = process.env[gkey]?.trim();
2301
+ if (val &&
2302
+ (val.length < 20 || val === "your-key-here" || val.startsWith("sk-"))) {
2303
+ logger.warn(`[eliza] ${gkey} appears invalid (length/format), clearing to skip Google AI plugin`);
2304
+ delete process.env[gkey];
2305
+ }
2306
+ }
2307
+ // 2f. Apply subscription-based credentials (Claude Max, Codex Max).
2308
+ // Failure is non-fatal — the agent can still start with other providers.
2309
+ // Config is NOT rolled back on failure; partial mutations may persist in
2310
+ // the in-memory config but are not saved to disk until explicit save.
2311
+ try {
2312
+ const { applySubscriptionCredentials } = await import("../auth/index.js");
2313
+ await applySubscriptionCredentials(config);
2314
+ }
2315
+ catch (err) {
2316
+ logger.warn(`[eliza] Failed to apply subscription credentials (agent will continue without them): ${formatError(err)}`);
2317
+ }
2318
+ // 2g. Cloud mode — if the user chose cloud during onboarding (or on a
2319
+ // subsequent start with cloud config), skip local runtime setup and
2320
+ // connect via the thin client instead.
2321
+ const deploymentTarget = resolveDeploymentTargetInConfig(config);
2322
+ if (deploymentTarget.runtime === "cloud" &&
2323
+ deploymentTarget.provider === "elizacloud" &&
2324
+ config.cloud?.apiKey &&
2325
+ config.cloud?.agentId?.trim()) {
2326
+ return startInCloudMode(config, config.cloud.agentId, opts);
2327
+ }
2328
+ // 3. Build elizaOS Character from Eliza config
2329
+ const character = buildCharacterFromConfig(config);
2330
+ const primaryModel = resolvePrimaryModel(config);
2331
+ const preferredProviderId = resolvePreferredProviderId(config);
2332
+ const preferredProviderPluginName = resolvePreferredProviderPluginName(config);
2333
+ // 4. Ensure workspace exists with required files
2334
+ const workspaceDir = config.agents?.defaults?.workspace ?? resolveDefaultAgentWorkspaceDir();
2335
+ await ensureAgentWorkspace({
2336
+ dir: workspaceDir,
2337
+ ensureInitFiles: shouldBootstrapWorkspaceInitFiles(workspaceDir),
2338
+ });
2339
+ // 4b. Ensure custom plugins directory exists for drop-in plugins
2340
+ await fs.mkdir(path.join(resolveStateDir(), CUSTOM_RUNTIME_PLUGINS_DIRNAME), {
2341
+ recursive: true,
2342
+ });
2343
+ // 5. Create the Eliza bridge plugin (workspace context + session keys + compaction)
2344
+ const agentId = character.name?.toLowerCase().replace(/\s+/g, "-") ?? "main";
2345
+ // 5a. If cloud is configured and no local GitHub token, try fetching from cloud
2346
+ await autoFetchCloudGithubToken(config.cloud?.agentId?.trim() || agentId);
2347
+ // 5b. Pump N8N_HOST + N8N_API_KEY into process.env for
2348
+ // @elizaos/plugin-n8n-workflow. Must run AFTER applyCloudConfigToEnv
2349
+ // (2b above) and AFTER agentId is derived — the cloud gateway URL
2350
+ // embeds the agent id. Prefer the persisted cloud-agent id when set;
2351
+ // fall back to the derived local agent slug.
2352
+ applyN8nConfigToEnv(config, config.cloud?.agentId?.trim() || agentId);
2353
+ const elizaPlugin = createElizaPlugin({
2354
+ workspaceDir,
2355
+ agentId,
2356
+ });
2357
+ // 6. Resolve and load plugins
2358
+ // In headless (GUI) mode before onboarding, the user hasn't configured a
2359
+ // provider yet. Downgrade diagnostics so the expected "no AI provider"
2360
+ // state doesn't appear as a scary Error in the terminal.
2361
+ const preOnboarding = opts?.headless && !config.agents;
2362
+ const resolvedPlugins = await resolvePlugins(config, {
2363
+ quiet: preOnboarding,
2364
+ });
2365
+ if (resolvedPlugins.length === 0) {
2366
+ if (preOnboarding) {
2367
+ logger.info("[eliza] No plugins loaded yet — the onboarding wizard will configure a model provider");
2368
+ }
2369
+ else {
2370
+ logger.error("[eliza] No plugins loaded — at least one model provider plugin is required");
2371
+ logger.error("[eliza] Set an API key (e.g. ANTHROPIC_API_KEY, OPENAI_API_KEY) in your environment");
2372
+ throw new Error("No plugins loaded");
2373
+ }
2374
+ }
2375
+ // 6b. Debug logging — print full context after provider + plugin resolution
2376
+ {
2377
+ const pluginNames = resolvedPlugins.map((p) => p.name);
2378
+ const providerNames = resolvedPlugins
2379
+ .flatMap((p) => p.plugin.providers ?? [])
2380
+ .map((prov) => prov.name);
2381
+ // Build a context summary for validation
2382
+ const contextSummary = {
2383
+ agentName: character.name,
2384
+ pluginCount: resolvedPlugins.length,
2385
+ providerCount: providerNames.length,
2386
+ primaryModel: primaryModel ?? "(auto-detect)",
2387
+ preferredProvider: preferredProviderId ?? "(auto-detect)",
2388
+ workspaceDir,
2389
+ };
2390
+ debugLogResolvedContext(pluginNames, providerNames, contextSummary, (msg) => logger.debug(msg));
2391
+ // Validate the context and surface issues early
2392
+ const contextValidation = validateRuntimeContext(contextSummary);
2393
+ if (!contextValidation.valid) {
2394
+ const issues = [];
2395
+ if (contextValidation.nullFields.length > 0) {
2396
+ issues.push(`null: ${contextValidation.nullFields.join(", ")}`);
2397
+ }
2398
+ if (contextValidation.undefinedFields.length > 0) {
2399
+ issues.push(`undefined: ${contextValidation.undefinedFields.join(", ")}`);
2400
+ }
2401
+ if (contextValidation.emptyFields.length > 0) {
2402
+ issues.push(`empty: ${contextValidation.emptyFields.join(", ")}`);
2403
+ }
2404
+ logger.warn(`[eliza] Context validation issues detected: ${issues.join("; ")}`);
2405
+ }
2406
+ }
2407
+ // 7. Create the AgentRuntime with Eliza plugin + resolved plugins
2408
+ // All CORE_PLUGINS are pre-registered sequentially (in CORE_PLUGINS
2409
+ // order) before runtime.initialize() so that cross-plugin getService()
2410
+ // calls always resolve. runtime.initialize() registers remaining
2411
+ // characterPlugins (connectors, providers, custom) in parallel — those
2412
+ // are NOT core and don't have ordering dependencies.
2413
+ const PREREGISTER_PLUGINS = new Set(CORE_PLUGINS);
2414
+ const sqlPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-sql");
2415
+ const localEmbeddingPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-local-embedding");
2416
+ const otherPlugins = resolvedPlugins.filter((p) => !PREREGISTER_PLUGINS.has(p.name));
2417
+ // Resolve the runtime log level from config (AgentRuntime doesn't support
2418
+ // "silent", so we map it to "fatal" as the quietest supported level).
2419
+ const runtimeLogLevel = (() => {
2420
+ // process.env.LOG_LEVEL is already resolved (set explicitly or from
2421
+ // config.logging.level above), so prefer it to honour the dev-mode
2422
+ // LOG_LEVEL=error override set by eliza/packages/app-core/scripts/dev-ui.mjs.
2423
+ const lvl = process.env.LOG_LEVEL ?? config.logging?.level ?? "error";
2424
+ if (lvl === "silent")
2425
+ return "fatal";
2426
+ return lvl;
2427
+ })();
2428
+ // 7a. Resolve bundled skills directory from @elizaos/skills so
2429
+ // plugin-agent-skills auto-loads them on startup.
2430
+ let bundledSkillsDir = null;
2431
+ try {
2432
+ const { getSkillsDir } = (await import("@elizaos/skills"));
2433
+ bundledSkillsDir = getSkillsDir();
2434
+ logger.info(`[eliza] Bundled skills dir: ${bundledSkillsDir}`);
2435
+ }
2436
+ catch {
2437
+ logger.debug("[eliza] @elizaos/skills not available — bundled skills will not be loaded");
2438
+ }
2439
+ // Workspace skills directory (highest precedence for overrides)
2440
+ const workspaceSkillsDir = workspaceDir ? `${workspaceDir}/skills` : null;
2441
+ const managedSkillsDir = path.join(resolveStateDir(), "skills");
2442
+ // ── Sandbox mode setup ──────────────────────────────────────────────────
2443
+ const sandboxConfig = config.agents?.defaults?.sandbox;
2444
+ const sandboxModeStr = sandboxConfig
2445
+ ?.mode;
2446
+ const sandboxMode = sandboxModeStr === "light" ||
2447
+ sandboxModeStr === "standard" ||
2448
+ sandboxModeStr === "max"
2449
+ ? sandboxModeStr
2450
+ : "off";
2451
+ const isSandboxActive = sandboxMode !== "off";
2452
+ let sandboxManager = null;
2453
+ let sandboxAuditLog = null;
2454
+ if (isSandboxActive) {
2455
+ logger.info(`[eliza] Sandbox mode: ${sandboxMode}`);
2456
+ sandboxAuditLog = new SandboxAuditLog({ console: true });
2457
+ // Standard/max modes also start the container sandbox manager
2458
+ if (sandboxMode === "standard" || sandboxMode === "max") {
2459
+ const dockerSettings = sandboxConfig?.docker;
2460
+ const browserSettings = sandboxConfig?.browser;
2461
+ sandboxManager = new SandboxManager({
2462
+ mode: sandboxMode,
2463
+ image: dockerSettings?.image ?? undefined,
2464
+ containerPrefix: dockerSettings?.containerPrefix ?? undefined,
2465
+ network: dockerSettings?.network ?? undefined,
2466
+ memory: dockerSettings?.memory ?? undefined,
2467
+ cpus: dockerSettings?.cpus ?? undefined,
2468
+ workspaceRoot: workspaceDir ?? undefined,
2469
+ browser: browserSettings
2470
+ ? {
2471
+ enabled: browserSettings.enabled ?? false,
2472
+ image: browserSettings.image ?? undefined,
2473
+ cdpPort: browserSettings.cdpPort ?? undefined,
2474
+ vncPort: browserSettings.vncPort ?? undefined,
2475
+ noVncPort: browserSettings.noVncPort ?? undefined,
2476
+ headless: browserSettings.headless ?? undefined,
2477
+ enableNoVnc: browserSettings.enableNoVnc ?? undefined,
2478
+ autoStart: browserSettings.autoStart ?? true,
2479
+ autoStartTimeoutMs: browserSettings.autoStartTimeoutMs ?? undefined,
2480
+ }
2481
+ : undefined,
2482
+ });
2483
+ try {
2484
+ await sandboxManager.start();
2485
+ logger.info("[eliza] Sandbox manager started");
2486
+ }
2487
+ catch (err) {
2488
+ logger.error(`[eliza] Sandbox manager failed to start: ${err instanceof Error ? err.message : String(err)}`);
2489
+ // Non-fatal: light mode fallback
2490
+ }
2491
+ }
2492
+ sandboxAuditLog.record({
2493
+ type: "sandbox_lifecycle",
2494
+ summary: `Sandbox initialized: mode=${sandboxMode}`,
2495
+ severity: "info",
2496
+ });
2497
+ }
2498
+ // ── End sandbox setup ───────────────────────────────────────────────────
2499
+ // ── Boost preferred provider plugin priority ──────────────────────────
2500
+ // elizaOS selects the model handler with the highest `priority` for each
2501
+ // ModelType. All provider plugins default to priority 0, so whichever
2502
+ // registers first wins — essentially random when using Promise.all.
2503
+ // When the user has explicitly selected a provider or model, prefer that
2504
+ // provider's plugin so its handlers are selected over registration order.
2505
+ const pluginsForRuntime = otherPlugins.map((p) => p.plugin);
2506
+ const visionModeSetting = resolveVisionModeSetting(config);
2507
+ if (preferredProviderPluginName) {
2508
+ for (const plugin of pluginsForRuntime) {
2509
+ if (plugin.name === preferredProviderPluginName) {
2510
+ plugin.priority = (plugin.priority ?? 0) + 10;
2511
+ logger.info(`[eliza] Boosted plugin "${plugin.name}" priority to ${plugin.priority} (preferred provider: ${preferredProviderId ?? "unknown"})`);
2512
+ break;
2513
+ }
2514
+ }
2515
+ }
2516
+ // ── Strip upstream skill providers ──────────────────────────────────────
2517
+ // The upstream @elizaos/plugin-agent-skills registers providers that dump
2518
+ // ALL loaded skills into every prompt (~2000-4000 tokens). Eliza replaces
2519
+ // them with a BM25-lite dynamic provider (see providers/skill-provider.ts)
2520
+ // that injects only the most relevant skills per turn.
2521
+ //
2522
+ // We keep:
2523
+ // - agent_skills_overview (lightweight stats, ~50 tokens)
2524
+ // - all actions (USE_SKILL, SEARCH_SKILLS, INSTALL_SKILL, …)
2525
+ // - the AGENT_SKILLS_SERVICE itself
2526
+ {
2527
+ const UPSTREAM_SKILL_PROVIDERS_TO_STRIP = new Set([
2528
+ "agent_skills",
2529
+ "agent_skill_instructions",
2530
+ "agent_skills_catalog",
2531
+ ]);
2532
+ for (const plugin of pluginsForRuntime) {
2533
+ if (plugin.name === "@elizaos/plugin-agent-skills" &&
2534
+ Array.isArray(plugin.providers)) {
2535
+ const before = plugin.providers.length;
2536
+ plugin.providers = plugin.providers.filter((p) => !UPSTREAM_SKILL_PROVIDERS_TO_STRIP.has(p.name ?? ""));
2537
+ const removed = before - plugin.providers.length;
2538
+ if (removed > 0) {
2539
+ logger.info(`[eliza] Stripped ${removed} upstream skill provider(s) — using dynamic BM25-lite provider instead`);
2540
+ }
2541
+ }
2542
+ }
2543
+ }
2544
+ // Deduplicate actions across all plugins to avoid "Action already registered"
2545
+ // warnings from elizaOS core. basic-capabilities is registered first by the
2546
+ // runtime, so include it in deduplication so its actions take precedence.
2547
+ const settings = character.settings ?? {};
2548
+ const basicCapabilitiesPlugin = createBasicCapabilitiesPlugin({
2549
+ disableBasic: settings.DISABLE_BASIC_CAPABILITIES === true ||
2550
+ settings.DISABLE_BASIC_CAPABILITIES === "true",
2551
+ enableExtended: settings.ENABLE_EXTENDED_CAPABILITIES === true ||
2552
+ settings.ENABLE_EXTENDED_CAPABILITIES === "true" ||
2553
+ settings.ADVANCED_CAPABILITIES === true ||
2554
+ settings.ADVANCED_CAPABILITIES === "true",
2555
+ skipCharacterProvider: false,
2556
+ enableAutonomy: settings.ENABLE_AUTONOMY === true || settings.ENABLE_AUTONOMY === "true",
2557
+ });
2558
+ deduplicatePluginActions([
2559
+ basicCapabilitiesPlugin,
2560
+ elizaPlugin,
2561
+ ...pluginsForRuntime,
2562
+ ]);
2563
+ let runtime = new AgentRuntime({
2564
+ character,
2565
+ // advancedCapabilities: true,
2566
+ actionPlanning: true,
2567
+ // advancedMemory is enabled via character.advancedMemory
2568
+ plugins: [elizaPlugin, ...pluginsForRuntime],
2569
+ ...(runtimeLogLevel ? { logLevel: runtimeLogLevel } : {}),
2570
+ // Sandbox options — only active when mode != "off"
2571
+ ...(isSandboxActive
2572
+ ? {
2573
+ sandboxMode: true,
2574
+ sandboxAuditHandler: sandboxAuditLog
2575
+ ? (event) => {
2576
+ sandboxAuditLog.recordTokenReplacement(event.direction, event.url, event.tokenIds);
2577
+ }
2578
+ : undefined,
2579
+ }
2580
+ : {}),
2581
+ settings: {
2582
+ VALIDATION_LEVEL: "fast",
2583
+ // Forward non-sensitive Eliza config.env vars as runtime settings so
2584
+ // plugins can access them via runtime.getSetting(). This fixes a bug where
2585
+ // plugins (e.g. @elizaos/plugin-google-genai) call runtime.getSetting()
2586
+ // which returns null for keys not in settings, but the plugin checks
2587
+ // !== undefined causing it to use "null" as the model name.
2588
+ //
2589
+ // Security: Filter out blockchain private keys and secrets. API keys are
2590
+ // allowed since plugins need them via runtime.getSetting(). Private keys
2591
+ // should only be accessed via process.env by signing services.
2592
+ ...Object.fromEntries(Object.entries(collectConfigEnvVars(config)).filter(([key]) => isEnvKeyAllowedForForwarding(key))),
2593
+ // Forward connector config vars as-is. The connector env map is curated
2594
+ // and plugins need access to secrets like passwords and tokens via
2595
+ // runtime.getSetting() for real transports to boot.
2596
+ ...collectConnectorEnvVars(config),
2597
+ // Forward Eliza config env vars as runtime settings
2598
+ ...(preferredProviderId ? { MODEL_PROVIDER: preferredProviderId } : {}),
2599
+ ...(visionModeSetting ? { VISION_MODE: visionModeSetting } : {}),
2600
+ ...resolveWalletRuntimeSettings(config),
2601
+ ...(typeof config.agents?.defaults?.adminEntityId === "string" &&
2602
+ config.agents.defaults.adminEntityId.trim().length > 0
2603
+ ? {
2604
+ ELIZA_ADMIN_ENTITY_ID: config.agents.defaults.adminEntityId.trim(),
2605
+ }
2606
+ : {}),
2607
+ ...(config.agents?.defaults?.ownerContacts
2608
+ ? {
2609
+ ELIZA_OWNER_CONTACTS_JSON: JSON.stringify(config.agents.defaults.ownerContacts),
2610
+ }
2611
+ : {}),
2612
+ ...(config.roles?.connectorAdmins
2613
+ ? {
2614
+ ELIZA_ROLES_CONNECTOR_ADMINS_JSON: JSON.stringify(config.roles.connectorAdmins),
2615
+ }
2616
+ : {}),
2617
+ // Forward skills config so plugin-agent-skills can apply allow/deny filtering
2618
+ ...(config.skills?.allowBundled
2619
+ ? { SKILLS_ALLOWLIST: config.skills.allowBundled.join(",") }
2620
+ : {}),
2621
+ ...(config.skills?.denyBundled
2622
+ ? { SKILLS_DENYLIST: config.skills.denyBundled.join(",") }
2623
+ : {}),
2624
+ // Managed skills are stored in the Eliza state dir (~/.eliza/skills).
2625
+ SKILLS_DIR: managedSkillsDir,
2626
+ // Tell plugin-agent-skills where to find bundled + workspace skills
2627
+ ...(bundledSkillsDir ? { BUNDLED_SKILLS_DIRS: bundledSkillsDir } : {}),
2628
+ ...(workspaceSkillsDir
2629
+ ? { WORKSPACE_SKILLS_DIR: workspaceSkillsDir }
2630
+ : {}),
2631
+ // Also forward extra dirs from config
2632
+ ...(config.skills?.load?.extraDirs?.length
2633
+ ? { EXTRA_SKILLS_DIRS: config.skills.load.extraDirs.join(",") }
2634
+ : {}),
2635
+ // Disable image description when vision is explicitly toggled off.
2636
+ // The cloud plugin always registers IMAGE_DESCRIPTION, so we need a
2637
+ // runtime setting to prevent the message service from calling it.
2638
+ ...(config.features?.vision === false
2639
+ ? { DISABLE_IMAGE_DESCRIPTION: "true" }
2640
+ : {}),
2641
+ },
2642
+ });
2643
+ installRuntimeMethodBindings(runtime);
2644
+ // 7b. Pre-register plugin-sql so the adapter is ready before other plugins init.
2645
+ // This is OPTIONAL — without it, some features (memory, todos) won't work.
2646
+ // runtime.db is a getter that returns this.adapter.db and throws when
2647
+ // this.adapter is undefined, so plugins that use runtime.db will fail.
2648
+ if (sqlPlugin) {
2649
+ // 7c. Eagerly initialize the database adapter so it's fully ready
2650
+ // BEFORE other plugins run their init(). When legacy/corrupt PGLite
2651
+ // state causes startup aborts, reset the local DB dir and retry once.
2652
+ await registerSqlPluginWithRecovery(runtime, sqlPlugin, config);
2653
+ }
2654
+ else {
2655
+ const loadedNames = resolvedPlugins.map((p) => p.name).join(", ");
2656
+ logger.error(`[eliza] @elizaos/plugin-sql was NOT found among resolved plugins. ` +
2657
+ `Loaded: [${loadedNames}]`);
2658
+ throw new Error("@elizaos/plugin-sql is required but was not loaded. " +
2659
+ "Ensure the package is installed and built (check for import errors above).");
2660
+ }
2661
+ // 7d. Pre-register plugin-local-embedding so its TEXT_EMBEDDING handler
2662
+ // (priority 10) is available before runtime.initialize() starts all
2663
+ // plugins in parallel. Without this, the basic-capabilities plugin's services
2664
+ // (ActionFilterService, EmbeddingGenerationService) race ahead and use
2665
+ // the cloud plugin's TEXT_EMBEDDING handler — which hits a paid API —
2666
+ // because local-embedding's heavier init hasn't completed yet.
2667
+ if (localEmbeddingPlugin) {
2668
+ configureLocalEmbeddingPlugin(localEmbeddingPlugin.plugin, config);
2669
+ await runtime.registerPlugin(localEmbeddingPlugin.plugin);
2670
+ logger.info("[eliza] plugin-local-embedding pre-registered (TEXT_EMBEDDING ready)");
2671
+ }
2672
+ else {
2673
+ logger.warn("[eliza] @elizaos/plugin-local-embedding not found — embeddings " +
2674
+ "will fall back to whatever TEXT_EMBEDDING handler is registered by " +
2675
+ "other plugins (may incur cloud API costs)");
2676
+ }
2677
+ // 7e. Pre-register remaining core plugins sequentially in CORE_PLUGINS order.
2678
+ // Each registerPlugin() call runs the plugin's init() before proceeding
2679
+ // to the next, guaranteeing that cross-plugin getService() calls resolve.
2680
+ {
2681
+ try {
2682
+ logger.info("[eliza] Pre-registering roles capability...");
2683
+ await runtime.registerPlugin(rolesPlugin);
2684
+ logger.info("[eliza] ✓ roles capability pre-registered");
2685
+ }
2686
+ catch (err) {
2687
+ logger.warn(`[eliza] Roles capability pre-registration failed: ${formatError(err)}`);
2688
+ }
2689
+ const alreadyPreRegistered = new Set([
2690
+ "@elizaos/plugin-sql",
2691
+ "@elizaos/plugin-local-embedding",
2692
+ ]);
2693
+ for (const name of CORE_PLUGINS) {
2694
+ if (alreadyPreRegistered.has(name))
2695
+ continue;
2696
+ const resolved = resolvedPlugins.find((p) => p.name === name);
2697
+ if (!resolved) {
2698
+ logger.debug(`[eliza] Core plugin ${name} not resolved — skipping pre-registration`);
2699
+ continue;
2700
+ }
2701
+ try {
2702
+ const regStart = Date.now();
2703
+ logger.info(`[eliza] Pre-registering core plugin: ${name}...`);
2704
+ const PLUGIN_REG_TIMEOUT_MS = 30_000;
2705
+ await Promise.race([
2706
+ runtime.registerPlugin(resolved.plugin),
2707
+ new Promise((_resolve, reject) => setTimeout(() => reject(new Error(`Timed out after ${PLUGIN_REG_TIMEOUT_MS / 1000}s`)), PLUGIN_REG_TIMEOUT_MS)),
2708
+ ]);
2709
+ logger.info(`[eliza] ✓ ${name} pre-registered (${Date.now() - regStart}ms)`);
2710
+ }
2711
+ catch (err) {
2712
+ logger.warn(`[eliza] Core plugin ${name} pre-registration failed: ${formatError(err)}`);
2713
+ }
2714
+ }
2715
+ }
2716
+ const warmAgentSkillsService = async () => {
2717
+ // Let runtime startup complete first; this warm-up runs asynchronously
2718
+ // so API + agent come online immediately.
2719
+ try {
2720
+ const skillServicePromise = runtime.getServiceLoadPromise("AGENT_SKILLS_SERVICE");
2721
+ const timeout = new Promise((_resolve, reject) => {
2722
+ setTimeout(() => {
2723
+ reject(new Error("AgentSkillsService warm-up timed out (10s) — non-blocking, agent will function without skills"));
2724
+ }, 10_000);
2725
+ });
2726
+ await Promise.race([skillServicePromise, timeout]);
2727
+ const svc = runtime.getService("AGENT_SKILLS_SERVICE");
2728
+ if (svc?.getCatalogStats) {
2729
+ const stats = svc.getCatalogStats();
2730
+ logger.info(`[eliza] AgentSkills ready — ${stats.loaded} skills loaded, ` +
2731
+ `${stats.total} in catalog (storage: ${stats.storageType})`);
2732
+ }
2733
+ // Guard against non-string skill.description values.
2734
+ // The bundled YAML parser produces {} for multi-line descriptions, which
2735
+ // crashes findBestLocalMatch / scoreSkillMatch (call .toLowerCase() on it).
2736
+ // Instead of a one-shot sanitize (which misses skills loaded later by
2737
+ // syncCatalog / autoRefresh), we monkey-patch getLoadedSkills to always
2738
+ // return sanitized values.
2739
+ const svcAny = svc;
2740
+ const origGetLoaded = svcAny?.getLoadedSkills;
2741
+ if (origGetLoaded && svcAny) {
2742
+ svcAny.getLoadedSkills = function (...args) {
2743
+ const skills = origGetLoaded.apply(this, args);
2744
+ for (const skill of skills) {
2745
+ if (typeof skill.description !== "string") {
2746
+ skill.description =
2747
+ skill.description == null
2748
+ ? ""
2749
+ : JSON.stringify(skill.description);
2750
+ }
2751
+ }
2752
+ return skills;
2753
+ };
2754
+ logger.debug("[eliza] Patched getLoadedSkills to guard descriptions");
2755
+ }
2756
+ }
2757
+ catch (err) {
2758
+ // Non-fatal — the agent can operate without skills. This warm-up runs
2759
+ // async so it doesn't block startup.
2760
+ logger.debug(`[eliza] AgentSkillsService warm-up: ${formatError(err)}`);
2761
+ }
2762
+ };
2763
+ const initializeRuntimeServices = async () => {
2764
+ try {
2765
+ const { stewardEvmPreBoot } = await import("@elizaos/app-steward/services/steward-evm-bridge");
2766
+ await stewardEvmPreBoot(runtime);
2767
+ }
2768
+ catch (err) {
2769
+ logger.debug(`[eliza] Steward EVM pre-boot skipped: ${formatError(err)}`);
2770
+ }
2771
+ // 7f. Pre-register ConnectorSetupService so connector plugins can access
2772
+ // shared config/escalation/owner-contact helpers via runtime.getService().
2773
+ try {
2774
+ const { ConnectorSetupService } = await import("../services/connector-setup-service.js");
2775
+ await runtime.registerService(ConnectorSetupService);
2776
+ }
2777
+ catch (err) {
2778
+ logger.debug(`[eliza] ConnectorSetupService registration skipped: ${formatError(err)}`);
2779
+ }
2780
+ // 8. Initialize the runtime (registers remaining plugins, starts services)
2781
+ assertPersistentDatabaseRequired(runtime);
2782
+ await runtime.initialize();
2783
+ await prepareRuntimeForTrajectoryCapture(runtime, "runtime.initialize()", config);
2784
+ // 8a. Apply role gating to protected plugin actions/providers.
2785
+ try {
2786
+ const { applyPluginRoleGating } = await import("./plugin-role-gating.js");
2787
+ applyPluginRoleGating(runtime.plugins ?? []);
2788
+ }
2789
+ catch (err) {
2790
+ logger.debug(`[eliza] Plugin role gating skipped: ${formatError(err)}`);
2791
+ }
2792
+ // 8b. Register lightweight conversation-proximity evaluator.
2793
+ // Updates relationship strength when people post near each other in a room.
2794
+ // No LLM calls — deterministic, runs on every message.
2795
+ try {
2796
+ const { updateProximityRelationships } = await import("../services/conversation-proximity.js");
2797
+ await runtime.registerPlugin({
2798
+ name: "eliza-conversation-proximity",
2799
+ description: "Lightweight relationship updates from conversation co-occurrence",
2800
+ evaluators: [
2801
+ {
2802
+ name: "CONVERSATION_PROXIMITY",
2803
+ description: "Update relationship strength for co-participants in a room",
2804
+ similes: [],
2805
+ alwaysRun: true,
2806
+ examples: [],
2807
+ validate: async (_runtime, message) => {
2808
+ // Run for any message with text from a real user (not the agent).
2809
+ const text = message.content?.text;
2810
+ return Boolean(text) && message.entityId !== _runtime.agentId;
2811
+ },
2812
+ handler: async (_runtime, message) => {
2813
+ await updateProximityRelationships(_runtime, message);
2814
+ return undefined;
2815
+ },
2816
+ },
2817
+ ],
2818
+ });
2819
+ logger.info("[eliza] ✓ conversation-proximity evaluator registered");
2820
+ }
2821
+ catch (err) {
2822
+ logger.debug(`[eliza] Conversation-proximity evaluator skipped: ${formatError(err)}`);
2823
+ }
2824
+ try {
2825
+ if (runtimeKnowledgeEnabled(runtime)) {
2826
+ await seedBundledKnowledge(runtime);
2827
+ }
2828
+ else {
2829
+ logger.info("[eliza] Native knowledge disabled; skipping bundled knowledge seeding");
2830
+ }
2831
+ }
2832
+ catch (err) {
2833
+ logger.warn(`[eliza] Failed to seed bundled knowledge: ${formatError(err)}`);
2834
+ }
2835
+ try {
2836
+ const { stewardEvmPostBoot } = await import("@elizaos/app-steward/services/steward-evm-bridge");
2837
+ await stewardEvmPostBoot(runtime);
2838
+ }
2839
+ catch (err) {
2840
+ logger.debug(`[eliza] Steward EVM post-boot skipped: ${formatError(err)}`);
2841
+ }
2842
+ try {
2843
+ const { installAnthropicWebSearch } = await import("./web-search-tools.js");
2844
+ installAnthropicWebSearch(runtime);
2845
+ }
2846
+ catch (err) {
2847
+ logger.debug(`[eliza] Anthropic web search setup skipped: ${formatError(err)}`);
2848
+ }
2849
+ // 8b. Ensure AutonomyService is available for trigger dispatch.
2850
+ // registers this service) from loading, so we start it explicitly.
2851
+ // Respect ENABLE_AUTONOMY env var — cloud-provisioned containers may
2852
+ // disable this to prevent runaway autonomous actions.
2853
+ const autonomyEnabled = (process.env.ENABLE_AUTONOMY ?? "true").toLowerCase() !== "false";
2854
+ if (autonomyEnabled && !runtime.getService("AUTONOMY")) {
2855
+ try {
2856
+ await startAndRegisterAutonomyService(runtime);
2857
+ logger.info("[eliza] AutonomyService started for trigger dispatch");
2858
+ }
2859
+ catch (err) {
2860
+ logger.warn(`[eliza] AutonomyService failed to start: ${formatError(err)}`);
2861
+ }
2862
+ }
2863
+ else if (!autonomyEnabled) {
2864
+ logger.info("[eliza] AutonomyService skipped — ENABLE_AUTONOMY=false");
2865
+ }
2866
+ // Enable the autonomy loop so trigger/heartbeat instructions are
2867
+ // actually processed. Without this, memories created by
2868
+ // dispatchInstruction() sit in the DB and are never acted on.
2869
+ if (autonomyEnabled) {
2870
+ const autonomySvc = getAutonomyService(runtime);
2871
+ if (autonomySvc) {
2872
+ try {
2873
+ await autonomySvc.enableAutonomy();
2874
+ logger.info("[eliza] AutonomyService enabled — trigger instructions will be processed");
2875
+ }
2876
+ catch (err) {
2877
+ logger.warn(`[eliza] Failed to enable autonomy loop: ${formatError(err)}`);
2878
+ }
2879
+ }
2880
+ }
2881
+ // Do not block runtime startup on skills warm-up.
2882
+ void warmAgentSkillsService().catch((err) => {
2883
+ logger.warn(`[eliza] Skills warm-up failed: ${formatError(err)}`);
2884
+ });
2885
+ };
2886
+ try {
2887
+ await initializeRuntimeServices();
2888
+ }
2889
+ catch (err) {
2890
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
2891
+ const recoveryAction = !opts?.pgliteRecoveryAttempted && pgliteDataDir
2892
+ ? getPgliteRecoveryAction(err, pgliteDataDir)
2893
+ : "none";
2894
+ if (!pgliteDataDir || recoveryAction === "none") {
2895
+ throw err;
2896
+ }
2897
+ if (recoveryAction === "fail-active-lock") {
2898
+ throw createActivePgliteLockError(pgliteDataDir, err);
2899
+ }
2900
+ if (recoveryAction === "fail-manual-reset") {
2901
+ throw createManualResetRequiredPgliteError(pgliteDataDir, err);
2902
+ }
2903
+ logger.warn(`[eliza] Runtime migrations failed (${formatError(err)}). Cleared a stale PGLite lock in ${pgliteDataDir} and retrying startup once without resetting data.`);
2904
+ try {
2905
+ await shutdownRuntime(runtime, "PGLite recovery");
2906
+ }
2907
+ catch {
2908
+ // Ignore cleanup errors — retry creates a fresh runtime anyway.
2909
+ }
2910
+ return await startEliza({
2911
+ ...opts,
2912
+ pgliteRecoveryAttempted: true,
2913
+ });
2914
+ }
2915
+ installActionAliases(runtime);
2916
+ // 9. Graceful shutdown handler
2917
+ //
2918
+ // In headless mode the caller (dev-server / desktop shell) owns the process
2919
+ // lifecycle, so we must NOT register signal handlers here — they would
2920
+ // stack on every hot-restart, close over stale runtime references, and
2921
+ // race with bun --watch's own process teardown.
2922
+ if (!opts?.headless) {
2923
+ registerSignalShutdownHandlers({
2924
+ getRuntime: () => runtime,
2925
+ getSandboxManager: () => sandboxManager,
2926
+ });
2927
+ }
2928
+ const loadHooksSystem = async () => {
2929
+ try {
2930
+ const internalHooksConfig = config.hooks
2931
+ ?.internal;
2932
+ await loadHooks({
2933
+ workspacePath: workspaceDir,
2934
+ internalConfig: internalHooksConfig,
2935
+ elizaConfig: config,
2936
+ });
2937
+ const startupEvent = createHookEvent("gateway", "startup", "system", {
2938
+ cfg: config,
2939
+ });
2940
+ await triggerHook(startupEvent);
2941
+ }
2942
+ catch (err) {
2943
+ logger.warn(`[eliza] Hooks system could not load: ${formatError(err)}`);
2944
+ }
2945
+ };
2946
+ // ── Headless mode — return runtime for API server wiring ──────────────
2947
+ if (opts?.headless) {
2948
+ void loadHooksSystem().catch((err) => {
2949
+ logger.warn(`[eliza] Hooks system load failed: ${formatError(err)}`);
2950
+ });
2951
+ logger.info("[eliza] Runtime initialised in headless mode (autonomy enabled)");
2952
+ return runtime;
2953
+ }
2954
+ // 10. Load hooks system
2955
+ await loadHooksSystem();
2956
+ // ── Start API server for GUI access ──────────────────────────────────────
2957
+ // In CLI mode (non-headless), start the API server in the background so
2958
+ // the GUI can connect to the running agent. This ensures full feature
2959
+ // parity: whether started via `npx elizaos`, `bun run dev`, or the
2960
+ // desktop app, the API server is always available for the GUI admin
2961
+ // surface.
2962
+ try {
2963
+ const { startApiServer } = await import("../api/server.js");
2964
+ const apiPort = resolveServerOnlyPort(process.env);
2965
+ const { port: actualApiPort } = await startApiServer({
2966
+ port: apiPort,
2967
+ runtime,
2968
+ onRestart: async () => {
2969
+ logger.info("[eliza] Hot-reload: Restarting runtime...");
2970
+ try {
2971
+ // Stop the old runtime to release resources (DB connections, timers, etc.)
2972
+ //
2973
+ // WHY the 2s timeout: some services — notably PTYService —
2974
+ // shut down gracefully by awaiting each active session with a
2975
+ // per-session timeout (up to ~5s). runtime.stop() awaits every
2976
+ // service.stop() sequentially, so a single idle PTY session
2977
+ // turns a provider switch into a multi-second block. During
2978
+ // that window server.ts's providerSwitchInProgress flag +
2979
+ // agentState === "restarting" guard reject further clicks,
2980
+ // which is why flipping through providers rapidly feels stuck.
2981
+ //
2982
+ // Cap the shutdown window at 2s; if it doesn't finish, log and
2983
+ // bring the new runtime up anyway. Services that miss the
2984
+ // window get GC'd when the process unwinds. This is fine for a
2985
+ // user-initiated restart — the user asked for a new runtime;
2986
+ // in-flight work on the old one is already obsolete.
2987
+ try {
2988
+ const SHUTDOWN_TIMEOUT_MS = 2000;
2989
+ let shutdownTimedOut = false;
2990
+ await Promise.race([
2991
+ shutdownRuntime(runtime, "hot-reload cleanup"),
2992
+ new Promise((resolve) => setTimeout(() => {
2993
+ shutdownTimedOut = true;
2994
+ resolve();
2995
+ }, SHUTDOWN_TIMEOUT_MS)),
2996
+ ]);
2997
+ if (shutdownTimedOut) {
2998
+ logger.warn(`[eliza] Hot-reload: old runtime shutdown exceeded ${SHUTDOWN_TIMEOUT_MS}ms; proceeding with new runtime`);
2999
+ }
3000
+ }
3001
+ catch (stopErr) {
3002
+ logger.warn(`[eliza] Hot-reload: old runtime stop failed: ${formatError(stopErr)}`);
3003
+ }
3004
+ // Reload config from disk (updated by API)
3005
+ const freshConfig = loadElizaConfig();
3006
+ // Propagate secrets & cloud config into process.env so plugins
3007
+ // (especially plugin-elizacloud) can discover them. The initial
3008
+ // startup does this in startEliza(); the hot-reload must repeat it
3009
+ // because the config may have changed (e.g. cloud enabled during
3010
+ // onboarding).
3011
+ applyConnectorSecretsToEnv(freshConfig);
3012
+ await autoResolveDiscordAppId();
3013
+ applyCloudConfigToEnv(freshConfig);
3014
+ applyX402ConfigToEnv(freshConfig);
3015
+ applyDatabaseConfigToEnv(freshConfig);
3016
+ applyN8nConfigToEnv(freshConfig, freshConfig.cloud?.agentId?.trim() || agentId);
3017
+ await autoFetchCloudGithubToken(freshConfig.cloud?.agentId?.trim() || agentId);
3018
+ // Apply subscription-based credentials (Claude Max, Codex Max)
3019
+ // that may have been set up during onboarding.
3020
+ try {
3021
+ const { applySubscriptionCredentials } = await import("../auth/index.js");
3022
+ await applySubscriptionCredentials(freshConfig);
3023
+ }
3024
+ catch (subErr) {
3025
+ logger.warn(`[eliza] Hot-reload: subscription credentials: ${formatError(subErr)}`);
3026
+ }
3027
+ // Resolve plugins using same function as startup
3028
+ const resolvedPlugins = await resolvePlugins(freshConfig);
3029
+ // Rebuild character from the fresh config so onboarding changes
3030
+ // (name, bio, style, etc.) are picked up on restart.
3031
+ const freshCharacter = buildCharacterFromConfig(freshConfig);
3032
+ // Recreate Eliza plugin with fresh workspace
3033
+ const freshElizaPlugin = createElizaPlugin({
3034
+ workspaceDir: freshConfig.agents?.defaults?.workspace ?? workspaceDir,
3035
+ agentId: freshCharacter.name?.toLowerCase().replace(/\s+/g, "-") ?? "main",
3036
+ });
3037
+ // Create new runtime with updated plugins.
3038
+ // Filter out pre-registered plugins so they aren't double-loaded
3039
+ // inside initialize()'s Promise.all — same pattern as the initial
3040
+ // startup to avoid the TEXT_EMBEDDING race condition.
3041
+ const freshPreferredProviderId = resolvePreferredProviderId(freshConfig);
3042
+ const freshPreferredProviderPluginName = resolvePreferredProviderPluginName(freshConfig);
3043
+ const freshOtherPlugins = resolvedPlugins.filter((p) => !PREREGISTER_PLUGINS.has(p.name));
3044
+ // Boost the preferred provider plugin priority (same as initial startup)
3045
+ const freshPluginsForRuntime = freshOtherPlugins.map((p) => p.plugin);
3046
+ const freshVisionModeSetting = resolveVisionModeSetting(freshConfig);
3047
+ if (freshPreferredProviderPluginName) {
3048
+ for (const plugin of freshPluginsForRuntime) {
3049
+ if (plugin.name === freshPreferredProviderPluginName) {
3050
+ plugin.priority = (plugin.priority ?? 0) + 10;
3051
+ break;
3052
+ }
3053
+ }
3054
+ }
3055
+ const newRuntime = new AgentRuntime({
3056
+ character: freshCharacter,
3057
+ plugins: [freshElizaPlugin, ...freshPluginsForRuntime],
3058
+ ...(runtimeLogLevel ? { logLevel: runtimeLogLevel } : {}),
3059
+ settings: {
3060
+ ...(freshPreferredProviderId
3061
+ ? { MODEL_PROVIDER: freshPreferredProviderId }
3062
+ : {}),
3063
+ ...(freshVisionModeSetting
3064
+ ? { VISION_MODE: freshVisionModeSetting }
3065
+ : {}),
3066
+ // Disable image description when vision is explicitly toggled off.
3067
+ ...(freshConfig.features?.vision === false
3068
+ ? { DISABLE_IMAGE_DESCRIPTION: "true" }
3069
+ : {}),
3070
+ },
3071
+ });
3072
+ installRuntimeMethodBindings(newRuntime);
3073
+ // Pre-register plugin-sql + local-embedding before initialize()
3074
+ // to avoid the same race condition as the initial startup.
3075
+ // Re-derive from freshly resolved plugins (not outer closure) so
3076
+ // hot-reload picks up any plugin updates.
3077
+ const freshSqlPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-sql");
3078
+ const freshLocalEmbeddingPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-local-embedding");
3079
+ if (freshSqlPlugin) {
3080
+ await registerSqlPluginWithRecovery(newRuntime, freshSqlPlugin, freshConfig);
3081
+ }
3082
+ if (freshLocalEmbeddingPlugin) {
3083
+ configureLocalEmbeddingPlugin(freshLocalEmbeddingPlugin.plugin, freshConfig);
3084
+ await newRuntime.registerPlugin(freshLocalEmbeddingPlugin.plugin);
3085
+ }
3086
+ // Pre-register remaining core plugins sequentially (same as startup)
3087
+ {
3088
+ try {
3089
+ await newRuntime.registerPlugin(rolesPlugin);
3090
+ }
3091
+ catch (err) {
3092
+ logger.warn(`[eliza] Hot-reload: roles capability pre-registration failed: ${formatError(err)}`);
3093
+ }
3094
+ const alreadyPreRegistered = new Set([
3095
+ "@elizaos/plugin-sql",
3096
+ "@elizaos/plugin-local-embedding",
3097
+ ]);
3098
+ for (const name of CORE_PLUGINS) {
3099
+ if (alreadyPreRegistered.has(name))
3100
+ continue;
3101
+ const resolved = resolvedPlugins.find((p) => p.name === name);
3102
+ if (!resolved)
3103
+ continue;
3104
+ try {
3105
+ await newRuntime.registerPlugin(resolved.plugin);
3106
+ }
3107
+ catch (err) {
3108
+ logger.warn(`[eliza] Hot-reload: core plugin ${name} pre-registration failed: ${formatError(err)}`);
3109
+ }
3110
+ }
3111
+ }
3112
+ assertPersistentDatabaseRequired(newRuntime);
3113
+ try {
3114
+ const { ConnectorSetupService: CSSReload } = await import("../services/connector-setup-service.js");
3115
+ await newRuntime.registerService(CSSReload);
3116
+ }
3117
+ catch {
3118
+ // non-fatal
3119
+ }
3120
+ try {
3121
+ const { stewardEvmPreBoot: preBootHR } = await import("@elizaos/app-steward/services/steward-evm-bridge");
3122
+ await preBootHR(newRuntime);
3123
+ }
3124
+ catch {
3125
+ // non-fatal
3126
+ }
3127
+ assertPersistentDatabaseRequired(newRuntime);
3128
+ await newRuntime.initialize();
3129
+ await prepareRuntimeForTrajectoryCapture(newRuntime, "hot-reload runtime.initialize()", config);
3130
+ try {
3131
+ const { applyPluginRoleGating } = await import("./plugin-role-gating.js");
3132
+ applyPluginRoleGating(newRuntime.plugins ?? []);
3133
+ }
3134
+ catch (err) {
3135
+ logger.debug(`[eliza] Hot-reload plugin role gating skipped: ${formatError(err)}`);
3136
+ }
3137
+ try {
3138
+ const { stewardEvmPostBoot: postBootHR } = await import("@elizaos/app-steward/services/steward-evm-bridge");
3139
+ await postBootHR(newRuntime);
3140
+ }
3141
+ catch {
3142
+ // non-fatal
3143
+ }
3144
+ // Ensure AutonomyService survives hot-reload (respects ENABLE_AUTONOMY)
3145
+ const hotReloadAutonomyEnabled = (process.env.ENABLE_AUTONOMY ?? "true").toLowerCase() !== "false";
3146
+ if (hotReloadAutonomyEnabled && !newRuntime.getService("AUTONOMY")) {
3147
+ try {
3148
+ await startAndRegisterAutonomyService(newRuntime);
3149
+ }
3150
+ catch (err) {
3151
+ logger.warn(`[eliza] AutonomyService failed to start after hot-reload: ${formatError(err)}`);
3152
+ }
3153
+ }
3154
+ // Enable the autonomy loop after hot-reload (same as initial boot)
3155
+ if (hotReloadAutonomyEnabled) {
3156
+ const svc = getAutonomyService(newRuntime);
3157
+ if (svc) {
3158
+ try {
3159
+ await svc.enableAutonomy();
3160
+ }
3161
+ catch (err) {
3162
+ logger.warn(`[eliza] Failed to enable autonomy after hot-reload: ${formatError(err)}`);
3163
+ }
3164
+ }
3165
+ }
3166
+ installActionAliases(newRuntime);
3167
+ runtime = newRuntime;
3168
+ logger.info("[eliza] Hot-reload: Runtime restarted successfully");
3169
+ return newRuntime;
3170
+ }
3171
+ catch (err) {
3172
+ logger.error(`[eliza] Hot-reload failed: ${formatError(err)}`);
3173
+ return null;
3174
+ }
3175
+ },
3176
+ });
3177
+ const dashboardUrl = `http://localhost:${actualApiPort}`;
3178
+ console.log(`[eliza] Control UI: ${dashboardUrl}`);
3179
+ logger.info(`[eliza] API server listening on ${dashboardUrl}`);
3180
+ }
3181
+ catch (apiErr) {
3182
+ // Log to both stderr (visible to Electrobun agent.ts) and the in-memory
3183
+ // logger so the error is never silently swallowed in packaged builds.
3184
+ const apiErrMsg = `[eliza] Could not start API server: ${formatError(apiErr)}`;
3185
+ console.error(apiErrMsg);
3186
+ logger.warn(apiErrMsg);
3187
+ // In server-only mode (Electrobun desktop), a missing API server is fatal
3188
+ // — nothing else can serve requests. Exit so the parent process sees a
3189
+ // non-zero exit code instead of the misleading "Server running" message.
3190
+ if (opts?.serverOnly) {
3191
+ console.error("[eliza] Exiting: API server is required in server-only mode.");
3192
+ process.exit(1);
3193
+ }
3194
+ // Non-fatal in CLI mode — the interactive chat loop still works.
3195
+ }
3196
+ // ── Server-only mode — keep running without chat loop ────────────────────
3197
+ if (opts?.serverOnly) {
3198
+ logger.info("[eliza] Running in server-only mode (no interactive chat)");
3199
+ console.log("[eliza] Server running. Press Ctrl+C to stop.");
3200
+ // Keep process alive — the API server handles all interaction
3201
+ const keepAlive = setInterval(() => { }, 1 << 30); // ~12 days
3202
+ registerSignalShutdownHandlers({
3203
+ getRuntime: () => runtime,
3204
+ getSandboxManager: () => sandboxManager,
3205
+ beforeShutdown: () => {
3206
+ clearInterval(keepAlive);
3207
+ },
3208
+ });
3209
+ return runtime;
3210
+ }
3211
+ // ── Interactive chat loop ────────────────────────────────────────────────
3212
+ const agentName = character.name ?? "Eliza";
3213
+ const userId = crypto.randomUUID();
3214
+ // Use `let` so the fallback path can reassign to fresh IDs.
3215
+ let roomId = stringToUuid(`${agentName}-chat-room`);
3216
+ try {
3217
+ const worldId = stringToUuid(`${agentName}-chat-world`);
3218
+ // Use a deterministic messageServerId so the settings provider
3219
+ // can reference the world by serverId after it is found.
3220
+ const messageServerId = stringToUuid(`${agentName}-cli-server`);
3221
+ await runtime.ensureConnection({
3222
+ entityId: userId,
3223
+ roomId,
3224
+ worldId,
3225
+ userName: "User",
3226
+ source: "cli",
3227
+ channelId: `${agentName}-chat`,
3228
+ type: ChannelType.DM,
3229
+ messageServerId,
3230
+ metadata: { ownership: { ownerId: userId } },
3231
+ });
3232
+ // Ensure the world has ownership metadata so the settings
3233
+ // provider can locate it via findWorldsForOwner during onboarding.
3234
+ // This also handles worlds that already exist from a prior session
3235
+ // but were created without ownership metadata.
3236
+ const world = await runtime.getWorld(worldId);
3237
+ if (world) {
3238
+ let needsUpdate = false;
3239
+ if (!world.metadata) {
3240
+ world.metadata = {};
3241
+ needsUpdate = true;
3242
+ }
3243
+ if (!world.metadata.ownership ||
3244
+ typeof world.metadata.ownership !== "object" ||
3245
+ world.metadata.ownership.ownerId !== userId) {
3246
+ world.metadata.ownership = { ownerId: userId };
3247
+ needsUpdate = true;
3248
+ }
3249
+ if (needsUpdate) {
3250
+ await runtime.updateWorld(world);
3251
+ }
3252
+ }
3253
+ }
3254
+ catch (err) {
3255
+ logger.warn(`[eliza] Could not establish chat room, retrying with fresh IDs: ${formatError(err)}`);
3256
+ // Fall back to unique IDs if deterministic ones conflict with stale data.
3257
+ // IMPORTANT: reassign roomId so the message loop below uses the same room.
3258
+ roomId = crypto.randomUUID();
3259
+ const freshWorldId = crypto.randomUUID();
3260
+ const freshServerId = crypto.randomUUID();
3261
+ try {
3262
+ await runtime.ensureConnection({
3263
+ entityId: userId,
3264
+ roomId,
3265
+ worldId: freshWorldId,
3266
+ userName: "User",
3267
+ source: "cli",
3268
+ channelId: `${agentName}-chat`,
3269
+ type: ChannelType.DM,
3270
+ messageServerId: freshServerId,
3271
+ metadata: { ownership: { ownerId: userId } },
3272
+ });
3273
+ // Same ownership metadata fix for the fallback world.
3274
+ const fallbackWorld = await runtime.getWorld(freshWorldId);
3275
+ if (fallbackWorld) {
3276
+ let needsUpdate = false;
3277
+ if (!fallbackWorld.metadata) {
3278
+ fallbackWorld.metadata = {};
3279
+ needsUpdate = true;
3280
+ }
3281
+ if (!fallbackWorld.metadata.ownership ||
3282
+ typeof fallbackWorld.metadata.ownership !== "object" ||
3283
+ fallbackWorld.metadata.ownership.ownerId !==
3284
+ userId) {
3285
+ fallbackWorld.metadata.ownership = { ownerId: userId };
3286
+ needsUpdate = true;
3287
+ }
3288
+ if (needsUpdate) {
3289
+ await runtime.updateWorld(fallbackWorld);
3290
+ }
3291
+ }
3292
+ }
3293
+ catch (retryErr) {
3294
+ logger.error(`[eliza] Chat room setup failed after retry: ${formatError(retryErr)}`);
3295
+ throw retryErr;
3296
+ }
3297
+ }
3298
+ const rl = readline.createInterface({
3299
+ input: process.stdin,
3300
+ output: process.stdout,
3301
+ });
3302
+ console.log(`\n💬 Chat with ${agentName} (type 'exit' to quit)\n`);
3303
+ const prompt = () => {
3304
+ rl.question("You: ", async (input) => {
3305
+ const text = input.trim();
3306
+ if (text.toLowerCase() === "exit" || text.toLowerCase() === "quit") {
3307
+ console.log("\nGoodbye!");
3308
+ rl.close();
3309
+ try {
3310
+ await shutdownRuntime(runtime, "cli shutdown");
3311
+ }
3312
+ catch (err) {
3313
+ logger.warn(`[eliza] Error stopping runtime: ${formatError(err)}`);
3314
+ }
3315
+ process.exit(0);
3316
+ }
3317
+ if (!text) {
3318
+ prompt();
3319
+ return;
3320
+ }
3321
+ try {
3322
+ const message = createMessageMemory({
3323
+ id: crypto.randomUUID(),
3324
+ entityId: userId,
3325
+ roomId,
3326
+ content: {
3327
+ text,
3328
+ source: "client_chat",
3329
+ channelType: ChannelType.DM,
3330
+ },
3331
+ });
3332
+ process.stdout.write(`${agentName}: `);
3333
+ if (!runtime.messageService) {
3334
+ logger.error("[eliza] runtime.messageService is not available — cannot process messages");
3335
+ console.log("[Error: message service unavailable]\n");
3336
+ prompt();
3337
+ return;
3338
+ }
3339
+ await runtime.messageService.handleMessage(runtime, message, async (content) => {
3340
+ if (content?.text) {
3341
+ process.stdout.write(content.text);
3342
+ }
3343
+ return [];
3344
+ });
3345
+ console.log("\n");
3346
+ }
3347
+ catch (err) {
3348
+ // Log the error and continue the prompt loop — don't let a single
3349
+ // failed message kill the interactive session.
3350
+ console.log(`\n[Error: ${formatError(err)}]\n`);
3351
+ logger.error(`[eliza] Chat message handling failed: ${formatError(err)}`);
3352
+ }
3353
+ prompt();
3354
+ });
3355
+ };
3356
+ prompt();
3357
+ }
3358
+ // When run directly (not imported), start immediately.
3359
+ // Use path.resolve to normalise both sides before comparing so that
3360
+ // symlinks, trailing slashes, and relative paths don't cause false negatives.
3361
+ // ---------------------------------------------------------------------------
3362
+ // Cloud thin-client mode
3363
+ // ---------------------------------------------------------------------------
3364
+ /**
3365
+ * Start in cloud mode — connect to a remote cloud agent via the thin client.
3366
+ * Skips all local runtime construction (plugins, database, etc.).
3367
+ */
3368
+ export async function startInCloudMode(config, agentId, opts) {
3369
+ const { CloudManager } = await import("../cloud/cloud-manager.js");
3370
+ const cloudConfig = config.cloud;
3371
+ if (!cloudConfig) {
3372
+ throw new Error("Cloud mode requires a cloud configuration block in the config");
3373
+ }
3374
+ logger.info(`[eliza] Starting in cloud mode (agentId=${agentId}, baseUrl=${cloudConfig.baseUrl ?? "(default)"})`);
3375
+ const manager = new CloudManager(cloudConfig, {
3376
+ onStatusChange: (status) => {
3377
+ logger.info(`[eliza] Cloud connection: ${status}`);
3378
+ },
3379
+ });
3380
+ try {
3381
+ await manager.init();
3382
+ const proxy = await manager.connect(agentId);
3383
+ if (opts?.headless || opts?.serverOnly) {
3384
+ // In headless/server mode, start the API server with the cloud proxy.
3385
+ // The proxy exposes the same interface the API server needs.
3386
+ logger.info(`[eliza] Cloud agent connected (headless). Agent: ${proxy.agentName}`);
3387
+ // Return undefined here; GUI cloud mode is handled through the
3388
+ // dedicated cloud proxy routes instead of a local AgentRuntime.
3389
+ return undefined;
3390
+ }
3391
+ // Interactive CLI mode — simple chat loop against the cloud agent
3392
+ console.log(`\n☁️ Connected to cloud agent "${proxy.agentName}" (${agentId})\n`);
3393
+ console.log("Type a message to chat, or Ctrl+C to quit.\n");
3394
+ const rl = (await import("node:readline")).createInterface({
3395
+ input: process.stdin,
3396
+ output: process.stdout,
3397
+ });
3398
+ const prompt = () => {
3399
+ rl.question("You: ", async (input) => {
3400
+ const text = input.trim();
3401
+ if (!text) {
3402
+ prompt();
3403
+ return;
3404
+ }
3405
+ try {
3406
+ // Use streaming if available
3407
+ let response = "";
3408
+ process.stdout.write(`${proxy.agentName}: `);
3409
+ for await (const chunk of proxy.handleChatMessageStream(text)) {
3410
+ process.stdout.write(chunk);
3411
+ response += chunk;
3412
+ }
3413
+ if (!response) {
3414
+ // Fallback to non-streaming
3415
+ response = await proxy.handleChatMessage(text);
3416
+ process.stdout.write(response);
3417
+ }
3418
+ console.log("\n");
3419
+ }
3420
+ catch (err) {
3421
+ const msg = err instanceof Error ? err.message : String(err);
3422
+ console.error(`\n[error] ${msg}\n`);
3423
+ }
3424
+ prompt();
3425
+ });
3426
+ };
3427
+ rl.on("close", async () => {
3428
+ console.log("\nDisconnecting from cloud agent...");
3429
+ await manager.disconnect();
3430
+ process.exit(0);
3431
+ });
3432
+ prompt();
3433
+ // Keep the process alive
3434
+ return undefined;
3435
+ }
3436
+ catch (err) {
3437
+ const msg = err instanceof Error ? err.message : String(err);
3438
+ logger.error(`[eliza] Failed to connect to cloud agent: ${msg}`);
3439
+ throw new Error(`Failed to connect to cloud agent: ${msg}\n` +
3440
+ "You can retry with `eliza start`, or switch to local mode by setting `deploymentTarget.runtime` to `local`");
3441
+ }
3442
+ }
3443
+ const isDirectRun = (() => {
3444
+ // Mobile (bundled) builds set MILADY_DISABLE_DIRECT_RUN=1 via Bun's
3445
+ // `--define`. After bundling, `import.meta.url` and `process.argv[1]`
3446
+ // collapse to the same bundle path, so this check spuriously matches and
3447
+ // the runtime self-invokes a SECOND `startEliza()` alongside the CLI's
3448
+ // primary one. The second invocation lacks `{ serverOnly: true }` and
3449
+ // drops into the readline chat loop, which closes on stdin EOF and tears
3450
+ // the whole process down.
3451
+ if (process.env.MILADY_DISABLE_DIRECT_RUN === "1")
3452
+ return false;
3453
+ const scriptArg = process.argv[1];
3454
+ if (!scriptArg)
3455
+ return false;
3456
+ const normalised = path.resolve(scriptArg);
3457
+ return import.meta.url === pathToFileURL(normalised).href;
3458
+ })();
3459
+ if (isDirectRun) {
3460
+ startEliza().catch((err) => {
3461
+ console.error("[eliza] Fatal error:", err instanceof Error ? (err.stack ?? err.message) : err);
3462
+ process.exit(1);
3463
+ });
3464
+ }