@elizaos/ui 2.0.0-alpha.53 → 2.0.0-alpha.533

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 (4117) hide show
  1. package/LICENSE +21 -0
  2. package/apps/app-companion/src/emotes/catalog.d.ts +31 -0
  3. package/apps/app-companion/src/emotes/catalog.d.ts.map +1 -0
  4. package/apps/app-companion/src/emotes/catalog.js +402 -0
  5. package/apps/app-companion/src/emotes/index.d.ts +2 -0
  6. package/apps/app-companion/src/emotes/index.d.ts.map +1 -0
  7. package/apps/app-companion/src/emotes/index.js +1 -0
  8. package/apps/app-elizamaker/src/drop-routes.d.ts +22 -0
  9. package/apps/app-elizamaker/src/drop-routes.d.ts.map +1 -0
  10. package/apps/app-elizamaker/src/drop-routes.js +155 -0
  11. package/apps/app-elizamaker/src/drop-service-registry.d.ts +4 -0
  12. package/apps/app-elizamaker/src/drop-service-registry.d.ts.map +1 -0
  13. package/apps/app-elizamaker/src/drop-service-registry.js +7 -0
  14. package/apps/app-elizamaker/src/drop-service.d.ts +31 -0
  15. package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -0
  16. package/apps/app-elizamaker/src/drop-service.js +134 -0
  17. package/apps/app-elizamaker/src/index.d.ts +12 -0
  18. package/apps/app-elizamaker/src/index.d.ts.map +1 -0
  19. package/apps/app-elizamaker/src/index.js +9 -0
  20. package/apps/app-elizamaker/src/init-registry-services.d.ts +18 -0
  21. package/apps/app-elizamaker/src/init-registry-services.d.ts.map +1 -0
  22. package/apps/app-elizamaker/src/init-registry-services.js +63 -0
  23. package/apps/app-elizamaker/src/merkle-tree.d.ts +90 -0
  24. package/apps/app-elizamaker/src/merkle-tree.d.ts.map +1 -0
  25. package/apps/app-elizamaker/src/merkle-tree.js +174 -0
  26. package/apps/app-elizamaker/src/og-tracker.d.ts +28 -0
  27. package/apps/app-elizamaker/src/og-tracker.d.ts.map +1 -0
  28. package/apps/app-elizamaker/src/og-tracker.js +60 -0
  29. package/apps/app-elizamaker/src/plugin.d.ts +4 -0
  30. package/apps/app-elizamaker/src/plugin.d.ts.map +1 -0
  31. package/apps/app-elizamaker/src/plugin.js +87 -0
  32. package/apps/app-elizamaker/src/registry-service-registry.d.ts +4 -0
  33. package/apps/app-elizamaker/src/registry-service-registry.d.ts.map +1 -0
  34. package/apps/app-elizamaker/src/registry-service-registry.js +7 -0
  35. package/apps/app-elizamaker/src/twitter-verify.d.ts +25 -0
  36. package/apps/app-elizamaker/src/twitter-verify.d.ts.map +1 -0
  37. package/apps/app-elizamaker/src/twitter-verify.js +167 -0
  38. package/apps/app-lifeops/src/actions/website-blocker.d.ts +8 -0
  39. package/apps/app-lifeops/src/actions/website-blocker.d.ts.map +1 -0
  40. package/apps/app-lifeops/src/actions/website-blocker.js +832 -0
  41. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts +28 -0
  42. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts.map +1 -0
  43. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.js +62 -0
  44. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts +52 -0
  45. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts.map +1 -0
  46. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.js +129 -0
  47. package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts +10 -0
  48. package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts.map +1 -0
  49. package/apps/app-lifeops/src/activity-profile/profile-metadata.js +25 -0
  50. package/apps/app-lifeops/src/activity-profile/redactor.d.ts +18 -0
  51. package/apps/app-lifeops/src/activity-profile/redactor.d.ts.map +1 -0
  52. package/apps/app-lifeops/src/activity-profile/redactor.js +39 -0
  53. package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts +8 -0
  54. package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts.map +1 -0
  55. package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.js +75 -0
  56. package/apps/app-lifeops/src/activity-profile/types.d.ts +89 -0
  57. package/apps/app-lifeops/src/activity-profile/types.d.ts.map +1 -0
  58. package/apps/app-lifeops/src/activity-profile/types.js +29 -0
  59. package/apps/app-lifeops/src/automation-node-contributor.d.ts +2 -0
  60. package/apps/app-lifeops/src/automation-node-contributor.d.ts.map +1 -0
  61. package/apps/app-lifeops/src/automation-node-contributor.js +93 -0
  62. package/apps/app-lifeops/src/contracts/index.d.ts +3 -0
  63. package/apps/app-lifeops/src/contracts/index.d.ts.map +1 -0
  64. package/apps/app-lifeops/src/contracts/index.js +2 -0
  65. package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts +7 -0
  66. package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
  67. package/apps/app-lifeops/src/inbox/channel-deep-links.js +108 -0
  68. package/apps/app-lifeops/src/inbox/message-fetcher.d.ts +47 -0
  69. package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
  70. package/apps/app-lifeops/src/inbox/message-fetcher.js +445 -0
  71. package/apps/app-lifeops/src/inbox/types.d.ts +118 -0
  72. package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
  73. package/apps/app-lifeops/src/inbox/types.js +1 -0
  74. package/apps/app-lifeops/src/lifeops/app-state.d.ts +22 -0
  75. package/apps/app-lifeops/src/lifeops/app-state.d.ts.map +1 -0
  76. package/apps/app-lifeops/src/lifeops/app-state.js +72 -0
  77. package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts +58 -0
  78. package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts.map +1 -0
  79. package/apps/app-lifeops/src/lifeops/apple-reminders.js +325 -0
  80. package/apps/app-lifeops/src/lifeops/awake-probability.d.ts +11 -0
  81. package/apps/app-lifeops/src/lifeops/awake-probability.d.ts.map +1 -0
  82. package/apps/app-lifeops/src/lifeops/awake-probability.js +169 -0
  83. package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts +47 -0
  84. package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts.map +1 -0
  85. package/apps/app-lifeops/src/lifeops/bill-extraction.js +355 -0
  86. package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts +61 -0
  87. package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts.map +1 -0
  88. package/apps/app-lifeops/src/lifeops/browser-extension-store.js +181 -0
  89. package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts +16 -0
  90. package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts.map +1 -0
  91. package/apps/app-lifeops/src/lifeops/browser-readiness.js +74 -0
  92. package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts +57 -0
  93. package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts.map +1 -0
  94. package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.js +267 -0
  95. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts +61 -0
  96. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts.map +1 -0
  97. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.js +975 -0
  98. package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts +18 -0
  99. package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts.map +1 -0
  100. package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.js +26 -0
  101. package/apps/app-lifeops/src/lifeops/checkin/types.d.ts +78 -0
  102. package/apps/app-lifeops/src/lifeops/checkin/types.d.ts.map +1 -0
  103. package/apps/app-lifeops/src/lifeops/checkin/types.js +7 -0
  104. package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts +45 -0
  105. package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts.map +1 -0
  106. package/apps/app-lifeops/src/lifeops/circadian-rules.js +291 -0
  107. package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts +31 -0
  108. package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts.map +1 -0
  109. package/apps/app-lifeops/src/lifeops/continuity-probe.js +187 -0
  110. package/apps/app-lifeops/src/lifeops/defaults.d.ts +24 -0
  111. package/apps/app-lifeops/src/lifeops/defaults.d.ts.map +1 -0
  112. package/apps/app-lifeops/src/lifeops/defaults.js +212 -0
  113. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts +109 -0
  114. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts.map +1 -0
  115. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.js +536 -0
  116. package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts +33 -0
  117. package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts.map +1 -0
  118. package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.js +521 -0
  119. package/apps/app-lifeops/src/lifeops/email-classifier.d.ts +57 -0
  120. package/apps/app-lifeops/src/lifeops/email-classifier.d.ts.map +1 -0
  121. package/apps/app-lifeops/src/lifeops/email-classifier.js +337 -0
  122. package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts +64 -0
  123. package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts.map +1 -0
  124. package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.js +273 -0
  125. package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts +67 -0
  126. package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts.map +1 -0
  127. package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.js +1 -0
  128. package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts +34 -0
  129. package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts.map +1 -0
  130. package/apps/app-lifeops/src/lifeops/enforcement-windows.js +103 -0
  131. package/apps/app-lifeops/src/lifeops/engine.d.ts +8 -0
  132. package/apps/app-lifeops/src/lifeops/engine.d.ts.map +1 -0
  133. package/apps/app-lifeops/src/lifeops/engine.js +393 -0
  134. package/apps/app-lifeops/src/lifeops/fda-probe.d.ts +23 -0
  135. package/apps/app-lifeops/src/lifeops/fda-probe.d.ts.map +1 -0
  136. package/apps/app-lifeops/src/lifeops/fda-probe.js +70 -0
  137. package/apps/app-lifeops/src/lifeops/feature-flags.d.ts +20 -0
  138. package/apps/app-lifeops/src/lifeops/feature-flags.d.ts.map +1 -0
  139. package/apps/app-lifeops/src/lifeops/feature-flags.js +241 -0
  140. package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts +144 -0
  141. package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts.map +1 -0
  142. package/apps/app-lifeops/src/lifeops/feature-flags.types.js +178 -0
  143. package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts +54 -0
  144. package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts.map +1 -0
  145. package/apps/app-lifeops/src/lifeops/goal-grounding.js +151 -0
  146. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts +12 -0
  147. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -0
  148. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.js +160 -0
  149. package/apps/app-lifeops/src/lifeops/google-api-error.d.ts +7 -0
  150. package/apps/app-lifeops/src/lifeops/google-api-error.d.ts.map +1 -0
  151. package/apps/app-lifeops/src/lifeops/google-api-error.js +35 -0
  152. package/apps/app-lifeops/src/lifeops/google-calendar.d.ts +67 -0
  153. package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -0
  154. package/apps/app-lifeops/src/lifeops/google-calendar.js +299 -0
  155. package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts +32 -0
  156. package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts.map +1 -0
  157. package/apps/app-lifeops/src/lifeops/google-connector-gateway.js +88 -0
  158. package/apps/app-lifeops/src/lifeops/google-drive.d.ts +103 -0
  159. package/apps/app-lifeops/src/lifeops/google-drive.d.ts.map +1 -0
  160. package/apps/app-lifeops/src/lifeops/google-drive.js +271 -0
  161. package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +16 -0
  162. package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -0
  163. package/apps/app-lifeops/src/lifeops/google-fetch.js +122 -0
  164. package/apps/app-lifeops/src/lifeops/google-gmail.d.ts +76 -0
  165. package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -0
  166. package/apps/app-lifeops/src/lifeops/google-gmail.js +691 -0
  167. package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts +172 -0
  168. package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts.map +1 -0
  169. package/apps/app-lifeops/src/lifeops/google-managed-client.js +351 -0
  170. package/apps/app-lifeops/src/lifeops/google-oauth.d.ts +65 -0
  171. package/apps/app-lifeops/src/lifeops/google-oauth.d.ts.map +1 -0
  172. package/apps/app-lifeops/src/lifeops/google-oauth.js +614 -0
  173. package/apps/app-lifeops/src/lifeops/google-scopes.d.ts +15 -0
  174. package/apps/app-lifeops/src/lifeops/google-scopes.d.ts.map +1 -0
  175. package/apps/app-lifeops/src/lifeops/google-scopes.js +107 -0
  176. package/apps/app-lifeops/src/lifeops/health-bridge.d.ts +57 -0
  177. package/apps/app-lifeops/src/lifeops/health-bridge.d.ts.map +1 -0
  178. package/apps/app-lifeops/src/lifeops/health-bridge.js +556 -0
  179. package/apps/app-lifeops/src/lifeops/health-connectors.d.ts +23 -0
  180. package/apps/app-lifeops/src/lifeops/health-connectors.d.ts.map +1 -0
  181. package/apps/app-lifeops/src/lifeops/health-connectors.js +962 -0
  182. package/apps/app-lifeops/src/lifeops/health-oauth.d.ts +62 -0
  183. package/apps/app-lifeops/src/lifeops/health-oauth.d.ts.map +1 -0
  184. package/apps/app-lifeops/src/lifeops/health-oauth.js +496 -0
  185. package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts +99 -0
  186. package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts.map +1 -0
  187. package/apps/app-lifeops/src/lifeops/imessage-bridge.js +556 -0
  188. package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts +7 -0
  189. package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts.map +1 -0
  190. package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.js +67 -0
  191. package/apps/app-lifeops/src/lifeops/owner-profile.d.ts +61 -0
  192. package/apps/app-lifeops/src/lifeops/owner-profile.d.ts.map +1 -0
  193. package/apps/app-lifeops/src/lifeops/owner-profile.js +426 -0
  194. package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts +23 -0
  195. package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts.map +1 -0
  196. package/apps/app-lifeops/src/lifeops/payment-csv-import.js +244 -0
  197. package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts +14 -0
  198. package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts.map +1 -0
  199. package/apps/app-lifeops/src/lifeops/payment-recurrence.js +218 -0
  200. package/apps/app-lifeops/src/lifeops/payment-types.d.ts +158 -0
  201. package/apps/app-lifeops/src/lifeops/payment-types.d.ts.map +1 -0
  202. package/apps/app-lifeops/src/lifeops/payment-types.js +1 -0
  203. package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts +110 -0
  204. package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts.map +1 -0
  205. package/apps/app-lifeops/src/lifeops/paypal-managed-client.js +148 -0
  206. package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts +86 -0
  207. package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts.map +1 -0
  208. package/apps/app-lifeops/src/lifeops/plaid-managed-client.js +134 -0
  209. package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts +51 -0
  210. package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts.map +1 -0
  211. package/apps/app-lifeops/src/lifeops/priority-scoring.js +220 -0
  212. package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts +32 -0
  213. package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts.map +1 -0
  214. package/apps/app-lifeops/src/lifeops/redact-sensitive-data.js +123 -0
  215. package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts +13 -0
  216. package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts.map +1 -0
  217. package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.js +111 -0
  218. package/apps/app-lifeops/src/lifeops/relative-time.d.ts +15 -0
  219. package/apps/app-lifeops/src/lifeops/relative-time.d.ts.map +1 -0
  220. package/apps/app-lifeops/src/lifeops/relative-time.js +233 -0
  221. package/apps/app-lifeops/src/lifeops/repository.d.ts +506 -0
  222. package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -0
  223. package/apps/app-lifeops/src/lifeops/repository.js +5204 -0
  224. package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts +133 -0
  225. package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts.map +1 -0
  226. package/apps/app-lifeops/src/lifeops/schedule-insight.js +769 -0
  227. package/apps/app-lifeops/src/lifeops/schedule-state.d.ts +39 -0
  228. package/apps/app-lifeops/src/lifeops/schedule-state.d.ts.map +1 -0
  229. package/apps/app-lifeops/src/lifeops/schedule-state.js +647 -0
  230. package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts +35 -0
  231. package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts.map +1 -0
  232. package/apps/app-lifeops/src/lifeops/schedule-sync-client.js +184 -0
  233. package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts +89 -0
  234. package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts.map +1 -0
  235. package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.js +13 -0
  236. package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts +11 -0
  237. package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts.map +1 -0
  238. package/apps/app-lifeops/src/lifeops/scheduler-task.js +165 -0
  239. package/apps/app-lifeops/src/lifeops/schema.d.ts +28558 -0
  240. package/apps/app-lifeops/src/lifeops/schema.d.ts.map +1 -0
  241. package/apps/app-lifeops/src/lifeops/schema.js +1148 -0
  242. package/apps/app-lifeops/src/lifeops/seed-routines.d.ts +20 -0
  243. package/apps/app-lifeops/src/lifeops/seed-routines.d.ts.map +1 -0
  244. package/apps/app-lifeops/src/lifeops/seed-routines.js +133 -0
  245. package/apps/app-lifeops/src/lifeops/service-constants.d.ts +68 -0
  246. package/apps/app-lifeops/src/lifeops/service-constants.d.ts.map +1 -0
  247. package/apps/app-lifeops/src/lifeops/service-constants.js +130 -0
  248. package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts +41 -0
  249. package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts.map +1 -0
  250. package/apps/app-lifeops/src/lifeops/service-helpers-browser.js +296 -0
  251. package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts +68 -0
  252. package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts.map +1 -0
  253. package/apps/app-lifeops/src/lifeops/service-helpers-misc.js +493 -0
  254. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts +23 -0
  255. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts.map +1 -0
  256. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.js +240 -0
  257. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts +76 -0
  258. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts.map +1 -0
  259. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.js +376 -0
  260. package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts +26 -0
  261. package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts.map +1 -0
  262. package/apps/app-lifeops/src/lifeops/service-mixin-browser.js +689 -0
  263. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts +44 -0
  264. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts.map +1 -0
  265. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.js +737 -0
  266. package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts +55 -0
  267. package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts.map +1 -0
  268. package/apps/app-lifeops/src/lifeops/service-mixin-core.js +443 -0
  269. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts +21 -0
  270. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts.map +1 -0
  271. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.js +375 -0
  272. package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts +2 -0
  273. package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts.map +1 -0
  274. package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +1115 -0
  275. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts +2 -0
  276. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts.map +1 -0
  277. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.js +262 -0
  278. package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts +12 -0
  279. package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts.map +1 -0
  280. package/apps/app-lifeops/src/lifeops/service-mixin-drive.js +231 -0
  281. package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts +2 -0
  282. package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts.map +1 -0
  283. package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.js +394 -0
  284. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts +42 -0
  285. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts.map +1 -0
  286. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.js +1570 -0
  287. package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts +22 -0
  288. package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts.map +1 -0
  289. package/apps/app-lifeops/src/lifeops/service-mixin-goals.js +896 -0
  290. package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts +10 -0
  291. package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts.map +1 -0
  292. package/apps/app-lifeops/src/lifeops/service-mixin-google.js +873 -0
  293. package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts +2 -0
  294. package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts.map +1 -0
  295. package/apps/app-lifeops/src/lifeops/service-mixin-health.js +582 -0
  296. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts +3 -0
  297. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts.map +1 -0
  298. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.js +423 -0
  299. package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts +46 -0
  300. package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts.map +1 -0
  301. package/apps/app-lifeops/src/lifeops/service-mixin-inbox.js +608 -0
  302. package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts +6 -0
  303. package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts.map +1 -0
  304. package/apps/app-lifeops/src/lifeops/service-mixin-payments.js +1047 -0
  305. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts +2 -0
  306. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts.map +1 -0
  307. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.js +109 -0
  308. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts +78 -0
  309. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts.map +1 -0
  310. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.js +3170 -0
  311. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts +2 -0
  312. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts.map +1 -0
  313. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.js +335 -0
  314. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts +2 -0
  315. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts.map +1 -0
  316. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.js +873 -0
  317. package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts +2 -0
  318. package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts.map +1 -0
  319. package/apps/app-lifeops/src/lifeops/service-mixin-signal.js +424 -0
  320. package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts +2 -0
  321. package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts.map +1 -0
  322. package/apps/app-lifeops/src/lifeops/service-mixin-sleep.js +174 -0
  323. package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts +26 -0
  324. package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts.map +1 -0
  325. package/apps/app-lifeops/src/lifeops/service-mixin-status.js +433 -0
  326. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts +2 -0
  327. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts.map +1 -0
  328. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.js +826 -0
  329. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts +2 -0
  330. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts.map +1 -0
  331. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.js +325 -0
  332. package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts +33 -0
  333. package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts.map +1 -0
  334. package/apps/app-lifeops/src/lifeops/service-mixin-travel.js +274 -0
  335. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts +2 -0
  336. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts.map +1 -0
  337. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.js +243 -0
  338. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts +15 -0
  339. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts.map +1 -0
  340. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.js +775 -0
  341. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts +2 -0
  342. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts.map +1 -0
  343. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.js +350 -0
  344. package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts +65 -0
  345. package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts.map +1 -0
  346. package/apps/app-lifeops/src/lifeops/service-mixin-x.js +569 -0
  347. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts +43 -0
  348. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts.map +1 -0
  349. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.js +305 -0
  350. package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts +19 -0
  351. package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts.map +1 -0
  352. package/apps/app-lifeops/src/lifeops/service-normalize-connector.js +601 -0
  353. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts +95 -0
  354. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts.map +1 -0
  355. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.js +977 -0
  356. package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts +3 -0
  357. package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts.map +1 -0
  358. package/apps/app-lifeops/src/lifeops/service-normalize-health.js +56 -0
  359. package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts +9 -0
  360. package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts.map +1 -0
  361. package/apps/app-lifeops/src/lifeops/service-normalize-task.js +361 -0
  362. package/apps/app-lifeops/src/lifeops/service-normalize.d.ts +27 -0
  363. package/apps/app-lifeops/src/lifeops/service-normalize.d.ts.map +1 -0
  364. package/apps/app-lifeops/src/lifeops/service-normalize.js +193 -0
  365. package/apps/app-lifeops/src/lifeops/service-types.d.ts +59 -0
  366. package/apps/app-lifeops/src/lifeops/service-types.d.ts.map +1 -0
  367. package/apps/app-lifeops/src/lifeops/service-types.js +8 -0
  368. package/apps/app-lifeops/src/lifeops/service.d.ts +1345 -0
  369. package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -0
  370. package/apps/app-lifeops/src/lifeops/service.js +64 -0
  371. package/apps/app-lifeops/src/lifeops/signal-auth.d.ts +36 -0
  372. package/apps/app-lifeops/src/lifeops/signal-auth.d.ts.map +1 -0
  373. package/apps/app-lifeops/src/lifeops/signal-auth.js +348 -0
  374. package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts +68 -0
  375. package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts.map +1 -0
  376. package/apps/app-lifeops/src/lifeops/signal-local-client.js +236 -0
  377. package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts +13 -0
  378. package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts.map +1 -0
  379. package/apps/app-lifeops/src/lifeops/signal-runtime-config.js +42 -0
  380. package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts +38 -0
  381. package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts.map +1 -0
  382. package/apps/app-lifeops/src/lifeops/sleep-cycle.js +448 -0
  383. package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts +25 -0
  384. package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts.map +1 -0
  385. package/apps/app-lifeops/src/lifeops/sleep-episode-store.js +54 -0
  386. package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts +19 -0
  387. package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts.map +1 -0
  388. package/apps/app-lifeops/src/lifeops/sleep-regularity.js +221 -0
  389. package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts +48 -0
  390. package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts.map +1 -0
  391. package/apps/app-lifeops/src/lifeops/sleep-wake-events.js +150 -0
  392. package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts +21 -0
  393. package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts.map +1 -0
  394. package/apps/app-lifeops/src/lifeops/social-taxonomy.js +273 -0
  395. package/apps/app-lifeops/src/lifeops/source-reliability.d.ts +38 -0
  396. package/apps/app-lifeops/src/lifeops/source-reliability.d.ts.map +1 -0
  397. package/apps/app-lifeops/src/lifeops/source-reliability.js +66 -0
  398. package/apps/app-lifeops/src/lifeops/sql.d.ts +26 -0
  399. package/apps/app-lifeops/src/lifeops/sql.d.ts.map +1 -0
  400. package/apps/app-lifeops/src/lifeops/sql.js +140 -0
  401. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts +79 -0
  402. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts.map +1 -0
  403. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +852 -0
  404. package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts +80 -0
  405. package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts.map +1 -0
  406. package/apps/app-lifeops/src/lifeops/subscriptions-types.js +1 -0
  407. package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts +69 -0
  408. package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts.map +1 -0
  409. package/apps/app-lifeops/src/lifeops/telegram-auth.js +597 -0
  410. package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts +122 -0
  411. package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts.map +1 -0
  412. package/apps/app-lifeops/src/lifeops/telegram-local-client.js +561 -0
  413. package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts +14 -0
  414. package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts.map +1 -0
  415. package/apps/app-lifeops/src/lifeops/telemetry-mapping.js +139 -0
  416. package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts +21 -0
  417. package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts.map +1 -0
  418. package/apps/app-lifeops/src/lifeops/telemetry-retention.js +19 -0
  419. package/apps/app-lifeops/src/lifeops/time-util.d.ts +10 -0
  420. package/apps/app-lifeops/src/lifeops/time-util.d.ts.map +1 -0
  421. package/apps/app-lifeops/src/lifeops/time-util.js +18 -0
  422. package/apps/app-lifeops/src/lifeops/time.d.ts +17 -0
  423. package/apps/app-lifeops/src/lifeops/time.d.ts.map +1 -0
  424. package/apps/app-lifeops/src/lifeops/time.js +132 -0
  425. package/apps/app-lifeops/src/lifeops/token-encryption.d.ts +49 -0
  426. package/apps/app-lifeops/src/lifeops/token-encryption.d.ts.map +1 -0
  427. package/apps/app-lifeops/src/lifeops/token-encryption.js +123 -0
  428. package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts +181 -0
  429. package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts.map +1 -0
  430. package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.js +422 -0
  431. package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts +46 -0
  432. package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts.map +1 -0
  433. package/apps/app-lifeops/src/lifeops/travel-booking.types.js +1 -0
  434. package/apps/app-lifeops/src/lifeops/twilio.d.ts +34 -0
  435. package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -0
  436. package/apps/app-lifeops/src/lifeops/twilio.js +198 -0
  437. package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts +54 -0
  438. package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -0
  439. package/apps/app-lifeops/src/lifeops/whatsapp-client.js +232 -0
  440. package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts +124 -0
  441. package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts.map +1 -0
  442. package/apps/app-lifeops/src/lifeops/x-managed-client.js +238 -0
  443. package/apps/app-lifeops/src/lifeops/x-poster.d.ts +41 -0
  444. package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -0
  445. package/apps/app-lifeops/src/lifeops/x-poster.js +332 -0
  446. package/apps/app-lifeops/src/lifeops/x-reader.d.ts +70 -0
  447. package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -0
  448. package/apps/app-lifeops/src/lifeops/x-reader.js +267 -0
  449. package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts +85 -0
  450. package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts.map +1 -0
  451. package/apps/app-lifeops/src/lifeops/x402-payment-handler.js +142 -0
  452. package/apps/app-lifeops/src/providers/website-blocker.d.ts +3 -0
  453. package/apps/app-lifeops/src/providers/website-blocker.d.ts.map +1 -0
  454. package/apps/app-lifeops/src/providers/website-blocker.js +116 -0
  455. package/apps/app-lifeops/src/public.d.ts +4 -0
  456. package/apps/app-lifeops/src/public.d.ts.map +1 -0
  457. package/apps/app-lifeops/src/public.js +5 -0
  458. package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts +9 -0
  459. package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts.map +1 -0
  460. package/apps/app-lifeops/src/routes/cloud-features-routes.js +171 -0
  461. package/apps/app-lifeops/src/routes/lifeops-routes.d.ts +20 -0
  462. package/apps/app-lifeops/src/routes/lifeops-routes.d.ts.map +1 -0
  463. package/apps/app-lifeops/src/routes/lifeops-routes.js +2411 -0
  464. package/apps/app-lifeops/src/routes/plugin.d.ts +3 -0
  465. package/apps/app-lifeops/src/routes/plugin.d.ts.map +1 -0
  466. package/apps/app-lifeops/src/routes/plugin.js +415 -0
  467. package/apps/app-lifeops/src/routes/sleep-routes.d.ts +3 -0
  468. package/apps/app-lifeops/src/routes/sleep-routes.d.ts.map +1 -0
  469. package/apps/app-lifeops/src/routes/sleep-routes.js +109 -0
  470. package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts +9 -0
  471. package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts.map +1 -0
  472. package/apps/app-lifeops/src/routes/travel-provider-relay-routes.js +144 -0
  473. package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts +7 -0
  474. package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts.map +1 -0
  475. package/apps/app-lifeops/src/routes/website-blocker-routes.js +169 -0
  476. package/apps/app-lifeops/src/website-blocker/access.d.ts +8 -0
  477. package/apps/app-lifeops/src/website-blocker/access.d.ts.map +1 -0
  478. package/apps/app-lifeops/src/website-blocker/access.js +45 -0
  479. package/apps/app-lifeops/src/website-blocker/engine.d.ts +137 -0
  480. package/apps/app-lifeops/src/website-blocker/engine.d.ts.map +1 -0
  481. package/apps/app-lifeops/src/website-blocker/engine.js +1256 -0
  482. package/apps/app-lifeops/src/website-blocker/permissions.d.ts +9 -0
  483. package/apps/app-lifeops/src/website-blocker/permissions.d.ts.map +1 -0
  484. package/apps/app-lifeops/src/website-blocker/permissions.js +1 -0
  485. package/apps/app-lifeops/src/website-blocker/public.d.ts +13 -0
  486. package/apps/app-lifeops/src/website-blocker/public.d.ts.map +1 -0
  487. package/apps/app-lifeops/src/website-blocker/public.js +10 -0
  488. package/apps/app-lifeops/src/website-blocker/roles.d.ts +11 -0
  489. package/apps/app-lifeops/src/website-blocker/roles.d.ts.map +1 -0
  490. package/apps/app-lifeops/src/website-blocker/roles.js +17 -0
  491. package/apps/app-lifeops/src/website-blocker/service.d.ts +21 -0
  492. package/apps/app-lifeops/src/website-blocker/service.d.ts.map +1 -0
  493. package/apps/app-lifeops/src/website-blocker/service.js +268 -0
  494. package/apps/app-steward/src/api/wallet-capability.d.ts +2 -0
  495. package/apps/app-steward/src/api/wallet-capability.d.ts.map +1 -0
  496. package/apps/app-steward/src/api/wallet-capability.js +1 -0
  497. package/apps/app-steward/src/api/wallet-dex-prices.d.ts +43 -0
  498. package/apps/app-steward/src/api/wallet-dex-prices.d.ts.map +1 -0
  499. package/apps/app-steward/src/api/wallet-dex-prices.js +149 -0
  500. package/apps/app-steward/src/api/wallet-evm-balance.d.ts +66 -0
  501. package/apps/app-steward/src/api/wallet-evm-balance.d.ts.map +1 -0
  502. package/apps/app-steward/src/api/wallet-evm-balance.js +666 -0
  503. package/apps/app-steward/src/api/wallet-routes.d.ts +28 -0
  504. package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -0
  505. package/apps/app-steward/src/api/wallet-routes.js +524 -0
  506. package/apps/app-steward/src/api/wallet-rpc.d.ts +67 -0
  507. package/apps/app-steward/src/api/wallet-rpc.d.ts.map +1 -0
  508. package/apps/app-steward/src/api/wallet-rpc.js +452 -0
  509. package/apps/app-steward/src/api/wallet.d.ts +60 -0
  510. package/apps/app-steward/src/api/wallet.d.ts.map +1 -0
  511. package/apps/app-steward/src/api/wallet.js +639 -0
  512. package/apps/app-steward/src/routes/server-wallet-trade.d.ts +27 -0
  513. package/apps/app-steward/src/routes/server-wallet-trade.d.ts.map +1 -0
  514. package/apps/app-steward/src/routes/server-wallet-trade.js +56 -0
  515. package/apps/app-steward/src/routes/wallet-core-routes.d.ts +16 -0
  516. package/apps/app-steward/src/routes/wallet-core-routes.d.ts.map +1 -0
  517. package/apps/app-steward/src/routes/wallet-core-routes.js +57 -0
  518. package/apps/app-steward/src/routes/wallet-export-guard.d.ts +44 -0
  519. package/apps/app-steward/src/routes/wallet-export-guard.d.ts.map +1 -0
  520. package/apps/app-steward/src/routes/wallet-export-guard.js +248 -0
  521. package/apps/app-steward/src/services/privy-wallets.d.ts +18 -0
  522. package/apps/app-steward/src/services/privy-wallets.d.ts.map +1 -0
  523. package/apps/app-steward/src/services/privy-wallets.js +225 -0
  524. package/apps/app-steward/src/services/steward-evm-account.d.ts +67 -0
  525. package/apps/app-steward/src/services/steward-evm-account.d.ts.map +1 -0
  526. package/apps/app-steward/src/services/steward-evm-account.js +309 -0
  527. package/apps/app-steward/src/services/steward-evm-bridge.d.ts +35 -0
  528. package/apps/app-steward/src/services/steward-evm-bridge.d.ts.map +1 -0
  529. package/apps/app-steward/src/services/steward-evm-bridge.js +101 -0
  530. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts +23 -0
  531. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts.map +1 -0
  532. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.js +39 -0
  533. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts +29 -0
  534. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts.map +1 -0
  535. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.js +45 -0
  536. package/apps/app-task-coordinator/src/api/coordinator-types.d.ts +49 -0
  537. package/apps/app-task-coordinator/src/api/coordinator-types.d.ts.map +1 -0
  538. package/apps/app-task-coordinator/src/api/coordinator-types.js +1 -0
  539. package/apps/app-training/src/backends/atropos.d.ts +31 -0
  540. package/apps/app-training/src/backends/atropos.d.ts.map +1 -0
  541. package/apps/app-training/src/backends/atropos.js +61 -0
  542. package/apps/app-training/src/backends/native.d.ts +50 -0
  543. package/apps/app-training/src/backends/native.d.ts.map +1 -0
  544. package/apps/app-training/src/backends/native.js +130 -0
  545. package/apps/app-training/src/backends/tinker.d.ts +27 -0
  546. package/apps/app-training/src/backends/tinker.d.ts.map +1 -0
  547. package/apps/app-training/src/backends/tinker.js +56 -0
  548. package/apps/app-training/src/core/context-audit.d.ts +51 -0
  549. package/apps/app-training/src/core/context-audit.d.ts.map +1 -0
  550. package/apps/app-training/src/core/context-audit.js +141 -0
  551. package/apps/app-training/src/core/context-catalog.d.ts +47 -0
  552. package/apps/app-training/src/core/context-catalog.d.ts.map +1 -0
  553. package/apps/app-training/src/core/context-catalog.js +265 -0
  554. package/apps/app-training/src/core/context-types.d.ts +3 -0
  555. package/apps/app-training/src/core/context-types.d.ts.map +1 -0
  556. package/apps/app-training/src/core/context-types.js +11 -0
  557. package/apps/app-training/src/core/dataset-generator.d.ts +125 -0
  558. package/apps/app-training/src/core/dataset-generator.d.ts.map +1 -0
  559. package/apps/app-training/src/core/dataset-generator.js +703 -0
  560. package/apps/app-training/src/core/index.d.ts +13 -0
  561. package/apps/app-training/src/core/index.d.ts.map +1 -0
  562. package/apps/app-training/src/core/index.js +12 -0
  563. package/apps/app-training/src/core/privacy-filter.d.ts +73 -0
  564. package/apps/app-training/src/core/privacy-filter.d.ts.map +1 -0
  565. package/apps/app-training/src/core/privacy-filter.js +169 -0
  566. package/apps/app-training/src/core/replay-validator.d.ts +136 -0
  567. package/apps/app-training/src/core/replay-validator.d.ts.map +1 -0
  568. package/apps/app-training/src/core/replay-validator.js +305 -0
  569. package/apps/app-training/src/core/roleplay-executor.d.ts +123 -0
  570. package/apps/app-training/src/core/roleplay-executor.d.ts.map +1 -0
  571. package/apps/app-training/src/core/roleplay-executor.js +645 -0
  572. package/apps/app-training/src/core/roleplay-trajectories.d.ts +54 -0
  573. package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +1 -0
  574. package/apps/app-training/src/core/roleplay-trajectories.js +73 -0
  575. package/apps/app-training/src/core/scenario-blueprints.d.ts +62 -0
  576. package/apps/app-training/src/core/scenario-blueprints.d.ts.map +1 -0
  577. package/apps/app-training/src/core/scenario-blueprints.js +790 -0
  578. package/apps/app-training/src/core/training-config.d.ts +52 -0
  579. package/apps/app-training/src/core/training-config.d.ts.map +1 -0
  580. package/apps/app-training/src/core/training-config.js +135 -0
  581. package/apps/app-training/src/core/training-orchestrator.d.ts +107 -0
  582. package/apps/app-training/src/core/training-orchestrator.d.ts.map +1 -0
  583. package/apps/app-training/src/core/training-orchestrator.js +413 -0
  584. package/apps/app-training/src/core/trajectory-task-datasets.d.ts +38 -0
  585. package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +1 -0
  586. package/apps/app-training/src/core/trajectory-task-datasets.js +300 -0
  587. package/apps/app-training/src/core/vertex-tuning.d.ts +139 -0
  588. package/apps/app-training/src/core/vertex-tuning.d.ts.map +1 -0
  589. package/apps/app-training/src/core/vertex-tuning.js +268 -0
  590. package/apps/app-training/src/index.d.ts +4 -0
  591. package/apps/app-training/src/index.d.ts.map +1 -0
  592. package/apps/app-training/src/index.js +3 -0
  593. package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts +42 -0
  594. package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts.map +1 -0
  595. package/apps/app-training/src/optimizers/bootstrap-fewshot.js +94 -0
  596. package/apps/app-training/src/optimizers/index.d.ts +6 -0
  597. package/apps/app-training/src/optimizers/index.d.ts.map +1 -0
  598. package/apps/app-training/src/optimizers/index.js +4 -0
  599. package/apps/app-training/src/optimizers/instruction-search.d.ts +39 -0
  600. package/apps/app-training/src/optimizers/instruction-search.d.ts.map +1 -0
  601. package/apps/app-training/src/optimizers/instruction-search.js +87 -0
  602. package/apps/app-training/src/optimizers/prompt-evolution.d.ts +39 -0
  603. package/apps/app-training/src/optimizers/prompt-evolution.d.ts.map +1 -0
  604. package/apps/app-training/src/optimizers/prompt-evolution.js +116 -0
  605. package/apps/app-training/src/optimizers/scoring.d.ts +80 -0
  606. package/apps/app-training/src/optimizers/scoring.d.ts.map +1 -0
  607. package/apps/app-training/src/optimizers/scoring.js +151 -0
  608. package/apps/app-training/src/optimizers/types.d.ts +105 -0
  609. package/apps/app-training/src/optimizers/types.d.ts.map +1 -0
  610. package/apps/app-training/src/optimizers/types.js +17 -0
  611. package/apps/app-training/src/routes/index.d.ts +3 -0
  612. package/apps/app-training/src/routes/index.d.ts.map +1 -0
  613. package/apps/app-training/src/routes/index.js +2 -0
  614. package/apps/app-training/src/routes/training-routes.d.ts +11 -0
  615. package/apps/app-training/src/routes/training-routes.d.ts.map +1 -0
  616. package/apps/app-training/src/routes/training-routes.js +777 -0
  617. package/apps/app-training/src/routes/trajectory-routes.d.ts +19 -0
  618. package/apps/app-training/src/routes/trajectory-routes.d.ts.map +1 -0
  619. package/apps/app-training/src/routes/trajectory-routes.js +912 -0
  620. package/apps/app-training/src/services/index.d.ts +5 -0
  621. package/apps/app-training/src/services/index.d.ts.map +1 -0
  622. package/apps/app-training/src/services/index.js +3 -0
  623. package/apps/app-training/src/services/training-backend-check.d.ts +8 -0
  624. package/apps/app-training/src/services/training-backend-check.d.ts.map +1 -0
  625. package/apps/app-training/src/services/training-backend-check.js +28 -0
  626. package/apps/app-training/src/services/training-service-like.d.ts +39 -0
  627. package/apps/app-training/src/services/training-service-like.d.ts.map +1 -0
  628. package/apps/app-training/src/services/training-service-like.js +1 -0
  629. package/apps/app-training/src/services/training-service-registry.d.ts +4 -0
  630. package/apps/app-training/src/services/training-service-registry.d.ts.map +1 -0
  631. package/apps/app-training/src/services/training-service-registry.js +7 -0
  632. package/apps/app-training/src/services/training-service.d.ts +46 -0
  633. package/apps/app-training/src/services/training-service.d.ts.map +1 -0
  634. package/apps/app-training/src/services/training-service.js +109 -0
  635. package/apps/app-training/src/services/training-trigger.d.ts +180 -0
  636. package/apps/app-training/src/services/training-trigger.d.ts.map +1 -0
  637. package/apps/app-training/src/services/training-trigger.js +385 -0
  638. package/package.json +78 -22
  639. package/packages/agent/src/actions/agent-inbox.d.ts +14 -0
  640. package/packages/agent/src/actions/agent-inbox.d.ts.map +1 -0
  641. package/packages/agent/src/actions/agent-inbox.js +124 -0
  642. package/packages/agent/src/actions/browser-autofill-login.d.ts +36 -0
  643. package/packages/agent/src/actions/browser-autofill-login.d.ts.map +1 -0
  644. package/packages/agent/src/actions/browser-autofill-login.js +347 -0
  645. package/packages/agent/src/actions/browser-session.d.ts +3 -0
  646. package/packages/agent/src/actions/browser-session.d.ts.map +1 -0
  647. package/packages/agent/src/actions/browser-session.js +305 -0
  648. package/packages/agent/src/actions/configure-plugin.d.ts +11 -0
  649. package/packages/agent/src/actions/configure-plugin.d.ts.map +1 -0
  650. package/packages/agent/src/actions/configure-plugin.js +137 -0
  651. package/packages/agent/src/actions/connector-control.d.ts +24 -0
  652. package/packages/agent/src/actions/connector-control.d.ts.map +1 -0
  653. package/packages/agent/src/actions/connector-control.js +479 -0
  654. package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
  655. package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
  656. package/packages/agent/src/actions/connector-resolver.js +256 -0
  657. package/packages/agent/src/actions/context-signal-lexicon.d.ts +17 -0
  658. package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -0
  659. package/packages/agent/src/actions/context-signal-lexicon.js +212 -0
  660. package/packages/agent/src/actions/context-signal.d.ts +46 -0
  661. package/packages/agent/src/actions/context-signal.d.ts.map +1 -0
  662. package/packages/agent/src/actions/context-signal.js +134 -0
  663. package/packages/agent/src/actions/database.d.ts +15 -0
  664. package/packages/agent/src/actions/database.d.ts.map +1 -0
  665. package/packages/agent/src/actions/database.js +473 -0
  666. package/packages/agent/src/actions/eject-plugin.d.ts +3 -0
  667. package/packages/agent/src/actions/eject-plugin.d.ts.map +1 -0
  668. package/packages/agent/src/actions/eject-plugin.js +80 -0
  669. package/packages/agent/src/actions/entity-actions.d.ts +7 -0
  670. package/packages/agent/src/actions/entity-actions.d.ts.map +1 -0
  671. package/packages/agent/src/actions/entity-actions.js +1016 -0
  672. package/packages/agent/src/actions/extract-page.d.ts +3 -0
  673. package/packages/agent/src/actions/extract-page.d.ts.map +1 -0
  674. package/packages/agent/src/actions/extract-page.js +162 -0
  675. package/packages/agent/src/actions/extract-params.d.ts +87 -0
  676. package/packages/agent/src/actions/extract-params.d.ts.map +1 -0
  677. package/packages/agent/src/actions/extract-params.js +194 -0
  678. package/packages/agent/src/actions/get-self-status.d.ts +13 -0
  679. package/packages/agent/src/actions/get-self-status.d.ts.map +1 -0
  680. package/packages/agent/src/actions/get-self-status.js +107 -0
  681. package/packages/agent/src/actions/grounded-action-reply.d.ts +22 -0
  682. package/packages/agent/src/actions/grounded-action-reply.d.ts.map +1 -0
  683. package/packages/agent/src/actions/grounded-action-reply.js +288 -0
  684. package/packages/agent/src/actions/index.d.ts +26 -0
  685. package/packages/agent/src/actions/index.d.ts.map +1 -0
  686. package/packages/agent/src/actions/index.js +25 -0
  687. package/packages/agent/src/actions/install-plugin.d.ts +3 -0
  688. package/packages/agent/src/actions/install-plugin.d.ts.map +1 -0
  689. package/packages/agent/src/actions/install-plugin.js +97 -0
  690. package/packages/agent/src/actions/launchpad-launch.d.ts +16 -0
  691. package/packages/agent/src/actions/launchpad-launch.d.ts.map +1 -0
  692. package/packages/agent/src/actions/launchpad-launch.js +207 -0
  693. package/packages/agent/src/actions/list-ejected.d.ts +3 -0
  694. package/packages/agent/src/actions/list-ejected.d.ts.map +1 -0
  695. package/packages/agent/src/actions/list-ejected.js +79 -0
  696. package/packages/agent/src/actions/list-installed-plugins.d.ts +11 -0
  697. package/packages/agent/src/actions/list-installed-plugins.d.ts.map +1 -0
  698. package/packages/agent/src/actions/list-installed-plugins.js +142 -0
  699. package/packages/agent/src/actions/log-level.d.ts +3 -0
  700. package/packages/agent/src/actions/log-level.d.ts.map +1 -0
  701. package/packages/agent/src/actions/log-level.js +126 -0
  702. package/packages/agent/src/actions/logs.d.ts +12 -0
  703. package/packages/agent/src/actions/logs.d.ts.map +1 -0
  704. package/packages/agent/src/actions/logs.js +317 -0
  705. package/packages/agent/src/actions/manage-tasks.d.ts +8 -0
  706. package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -0
  707. package/packages/agent/src/actions/manage-tasks.js +323 -0
  708. package/packages/agent/src/actions/media.d.ts +21 -0
  709. package/packages/agent/src/actions/media.d.ts.map +1 -0
  710. package/packages/agent/src/actions/media.js +504 -0
  711. package/packages/agent/src/actions/memories.d.ts +12 -0
  712. package/packages/agent/src/actions/memories.d.ts.map +1 -0
  713. package/packages/agent/src/actions/memories.js +310 -0
  714. package/packages/agent/src/actions/page-action-groups.d.ts +17 -0
  715. package/packages/agent/src/actions/page-action-groups.d.ts.map +1 -0
  716. package/packages/agent/src/actions/page-action-groups.js +171 -0
  717. package/packages/agent/src/actions/read-channel.d.ts +3 -0
  718. package/packages/agent/src/actions/read-channel.d.ts.map +1 -0
  719. package/packages/agent/src/actions/read-channel.js +265 -0
  720. package/packages/agent/src/actions/read-messages.d.ts +14 -0
  721. package/packages/agent/src/actions/read-messages.d.ts.map +1 -0
  722. package/packages/agent/src/actions/read-messages.js +269 -0
  723. package/packages/agent/src/actions/recent-conversation-texts.d.ts +9 -0
  724. package/packages/agent/src/actions/recent-conversation-texts.d.ts.map +1 -0
  725. package/packages/agent/src/actions/recent-conversation-texts.js +76 -0
  726. package/packages/agent/src/actions/reinject-plugin.d.ts +3 -0
  727. package/packages/agent/src/actions/reinject-plugin.d.ts.map +1 -0
  728. package/packages/agent/src/actions/reinject-plugin.js +79 -0
  729. package/packages/agent/src/actions/restart.d.ts +19 -0
  730. package/packages/agent/src/actions/restart.d.ts.map +1 -0
  731. package/packages/agent/src/actions/restart.js +139 -0
  732. package/packages/agent/src/actions/runtime.d.ts +14 -0
  733. package/packages/agent/src/actions/runtime.d.ts.map +1 -0
  734. package/packages/agent/src/actions/runtime.js +287 -0
  735. package/packages/agent/src/actions/scratchpad.d.ts +7 -0
  736. package/packages/agent/src/actions/scratchpad.d.ts.map +1 -0
  737. package/packages/agent/src/actions/scratchpad.js +409 -0
  738. package/packages/agent/src/actions/search-conversations.d.ts +3 -0
  739. package/packages/agent/src/actions/search-conversations.d.ts.map +1 -0
  740. package/packages/agent/src/actions/search-conversations.js +222 -0
  741. package/packages/agent/src/actions/send-admin-message.d.ts +3 -0
  742. package/packages/agent/src/actions/send-admin-message.d.ts.map +1 -0
  743. package/packages/agent/src/actions/send-admin-message.js +136 -0
  744. package/packages/agent/src/actions/send-message.d.ts +4 -0
  745. package/packages/agent/src/actions/send-message.d.ts.map +1 -0
  746. package/packages/agent/src/actions/send-message.js +410 -0
  747. package/packages/agent/src/actions/set-user-name.d.ts +13 -0
  748. package/packages/agent/src/actions/set-user-name.d.ts.map +1 -0
  749. package/packages/agent/src/actions/set-user-name.js +106 -0
  750. package/packages/agent/src/actions/settings-actions.d.ts +28 -0
  751. package/packages/agent/src/actions/settings-actions.d.ts.map +1 -0
  752. package/packages/agent/src/actions/settings-actions.js +564 -0
  753. package/packages/agent/src/actions/skill-command.d.ts +20 -0
  754. package/packages/agent/src/actions/skill-command.d.ts.map +1 -0
  755. package/packages/agent/src/actions/skill-command.js +142 -0
  756. package/packages/agent/src/actions/stream-control.d.ts +11 -0
  757. package/packages/agent/src/actions/stream-control.d.ts.map +1 -0
  758. package/packages/agent/src/actions/stream-control.js +182 -0
  759. package/packages/agent/src/actions/sync-plugin.d.ts +3 -0
  760. package/packages/agent/src/actions/sync-plugin.d.ts.map +1 -0
  761. package/packages/agent/src/actions/sync-plugin.js +76 -0
  762. package/packages/agent/src/actions/tasks-coding.d.ts +10 -0
  763. package/packages/agent/src/actions/tasks-coding.d.ts.map +1 -0
  764. package/packages/agent/src/actions/tasks-coding.js +171 -0
  765. package/packages/agent/src/actions/terminal.d.ts +15 -0
  766. package/packages/agent/src/actions/terminal.d.ts.map +1 -0
  767. package/packages/agent/src/actions/terminal.js +283 -0
  768. package/packages/agent/src/actions/toggle-plugin.d.ts +11 -0
  769. package/packages/agent/src/actions/toggle-plugin.d.ts.map +1 -0
  770. package/packages/agent/src/actions/toggle-plugin.js +125 -0
  771. package/packages/agent/src/actions/trajectories.d.ts +12 -0
  772. package/packages/agent/src/actions/trajectories.d.ts.map +1 -0
  773. package/packages/agent/src/actions/trajectories.js +347 -0
  774. package/packages/agent/src/actions/uninstall-plugin.d.ts +12 -0
  775. package/packages/agent/src/actions/uninstall-plugin.d.ts.map +1 -0
  776. package/packages/agent/src/actions/uninstall-plugin.js +110 -0
  777. package/packages/agent/src/actions/update-owner-name.d.ts +12 -0
  778. package/packages/agent/src/actions/update-owner-name.d.ts.map +1 -0
  779. package/packages/agent/src/actions/update-owner-name.js +83 -0
  780. package/packages/agent/src/actions/update-plugin.d.ts +10 -0
  781. package/packages/agent/src/actions/update-plugin.d.ts.map +1 -0
  782. package/packages/agent/src/actions/update-plugin.js +131 -0
  783. package/packages/agent/src/actions/web-search.d.ts +10 -0
  784. package/packages/agent/src/actions/web-search.d.ts.map +1 -0
  785. package/packages/agent/src/actions/web-search.js +282 -0
  786. package/packages/agent/src/actions/workflow/api.d.ts +24 -0
  787. package/packages/agent/src/actions/workflow/api.d.ts.map +1 -0
  788. package/packages/agent/src/actions/workflow/api.js +42 -0
  789. package/packages/agent/src/actions/workflow/create-workflow.d.ts +11 -0
  790. package/packages/agent/src/actions/workflow/create-workflow.d.ts.map +1 -0
  791. package/packages/agent/src/actions/workflow/create-workflow.js +120 -0
  792. package/packages/agent/src/actions/workflow/delete-workflow.d.ts +11 -0
  793. package/packages/agent/src/actions/workflow/delete-workflow.d.ts.map +1 -0
  794. package/packages/agent/src/actions/workflow/delete-workflow.js +100 -0
  795. package/packages/agent/src/actions/workflow/index.d.ts +5 -0
  796. package/packages/agent/src/actions/workflow/index.d.ts.map +1 -0
  797. package/packages/agent/src/actions/workflow/index.js +4 -0
  798. package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts +12 -0
  799. package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts.map +1 -0
  800. package/packages/agent/src/actions/workflow/promote-task-to-workflow.js +154 -0
  801. package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts +10 -0
  802. package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts.map +1 -0
  803. package/packages/agent/src/actions/workflow/toggle-workflow-active.js +132 -0
  804. package/packages/agent/src/api/accounts-routes.d.ts +39 -0
  805. package/packages/agent/src/api/accounts-routes.d.ts.map +1 -0
  806. package/packages/agent/src/api/accounts-routes.js +701 -0
  807. package/packages/agent/src/api/agent-admin-routes.d.ts +39 -0
  808. package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -0
  809. package/packages/agent/src/api/agent-admin-routes.js +155 -0
  810. package/packages/agent/src/api/agent-lifecycle-routes.d.ts +16 -0
  811. package/packages/agent/src/api/agent-lifecycle-routes.d.ts.map +1 -0
  812. package/packages/agent/src/api/agent-lifecycle-routes.js +94 -0
  813. package/packages/agent/src/api/agent-model.d.ts +5 -0
  814. package/packages/agent/src/api/agent-model.d.ts.map +1 -0
  815. package/packages/agent/src/api/agent-model.js +154 -0
  816. package/packages/agent/src/api/agent-status-routes.d.ts +76 -0
  817. package/packages/agent/src/api/agent-status-routes.d.ts.map +1 -0
  818. package/packages/agent/src/api/agent-status-routes.js +241 -0
  819. package/packages/agent/src/api/agent-transfer-routes.d.ts +16 -0
  820. package/packages/agent/src/api/agent-transfer-routes.d.ts.map +1 -0
  821. package/packages/agent/src/api/agent-transfer-routes.js +124 -0
  822. package/packages/agent/src/api/app-package-routes.d.ts +7 -0
  823. package/packages/agent/src/api/app-package-routes.d.ts.map +1 -0
  824. package/packages/agent/src/api/app-package-routes.js +59 -0
  825. package/packages/agent/src/api/apps-routes.d.ts +32 -0
  826. package/packages/agent/src/api/apps-routes.d.ts.map +1 -0
  827. package/packages/agent/src/api/apps-routes.js +982 -0
  828. package/packages/agent/src/api/auth-routes.d.ts +11 -0
  829. package/packages/agent/src/api/auth-routes.d.ts.map +1 -0
  830. package/packages/agent/src/api/auth-routes.js +74 -0
  831. package/packages/agent/src/api/avatar-routes.d.ts +11 -0
  832. package/packages/agent/src/api/avatar-routes.d.ts.map +1 -0
  833. package/packages/agent/src/api/avatar-routes.js +205 -0
  834. package/packages/agent/src/api/binance-skill-helpers.d.ts +26 -0
  835. package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -0
  836. package/packages/agent/src/api/binance-skill-helpers.js +785 -0
  837. package/packages/agent/src/api/bluebubbles-routes.d.ts +10 -0
  838. package/packages/agent/src/api/bluebubbles-routes.d.ts.map +1 -0
  839. package/packages/agent/src/api/bluebubbles-routes.js +129 -0
  840. package/packages/agent/src/api/browser-workspace-routes.d.ts +5 -0
  841. package/packages/agent/src/api/browser-workspace-routes.d.ts.map +1 -0
  842. package/packages/agent/src/api/browser-workspace-routes.js +100 -0
  843. package/packages/agent/src/api/bug-report-routes.d.ts +10 -0
  844. package/packages/agent/src/api/bug-report-routes.d.ts.map +1 -0
  845. package/packages/agent/src/api/bug-report-routes.js +271 -0
  846. package/packages/agent/src/api/character-routes.d.ts +52 -0
  847. package/packages/agent/src/api/character-routes.d.ts.map +1 -0
  848. package/packages/agent/src/api/character-routes.js +377 -0
  849. package/packages/agent/src/api/chat-augmentation.d.ts +70 -0
  850. package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -0
  851. package/packages/agent/src/api/chat-augmentation.js +465 -0
  852. package/packages/agent/src/api/chat-routes.d.ts +110 -0
  853. package/packages/agent/src/api/chat-routes.d.ts.map +1 -0
  854. package/packages/agent/src/api/chat-routes.js +1515 -0
  855. package/packages/agent/src/api/chat-text-helpers.d.ts +11 -0
  856. package/packages/agent/src/api/chat-text-helpers.d.ts.map +1 -0
  857. package/packages/agent/src/api/chat-text-helpers.js +184 -0
  858. package/packages/agent/src/api/client-chat-admin.d.ts +19 -0
  859. package/packages/agent/src/api/client-chat-admin.d.ts.map +1 -0
  860. package/packages/agent/src/api/client-chat-admin.js +27 -0
  861. package/packages/agent/src/api/cloud-billing-routes.d.ts +9 -0
  862. package/packages/agent/src/api/cloud-billing-routes.d.ts.map +1 -0
  863. package/packages/agent/src/api/cloud-billing-routes.js +388 -0
  864. package/packages/agent/src/api/cloud-compat-routes.d.ts +10 -0
  865. package/packages/agent/src/api/cloud-compat-routes.d.ts.map +1 -0
  866. package/packages/agent/src/api/cloud-compat-routes.js +212 -0
  867. package/packages/agent/src/api/cloud-provisioning.d.ts +14 -0
  868. package/packages/agent/src/api/cloud-provisioning.d.ts.map +1 -0
  869. package/packages/agent/src/api/cloud-provisioning.js +29 -0
  870. package/packages/agent/src/api/cloud-relay-routes.d.ts +22 -0
  871. package/packages/agent/src/api/cloud-relay-routes.d.ts.map +1 -0
  872. package/packages/agent/src/api/cloud-relay-routes.js +53 -0
  873. package/packages/agent/src/api/cloud-routes.d.ts +83 -0
  874. package/packages/agent/src/api/cloud-routes.d.ts.map +1 -0
  875. package/packages/agent/src/api/cloud-routes.js +634 -0
  876. package/packages/agent/src/api/cloud-status-routes.d.ts +15 -0
  877. package/packages/agent/src/api/cloud-status-routes.d.ts.map +1 -0
  878. package/packages/agent/src/api/cloud-status-routes.js +152 -0
  879. package/packages/agent/src/api/coding-agents-fallback-routes.d.ts +12 -0
  880. package/packages/agent/src/api/coding-agents-fallback-routes.d.ts.map +1 -0
  881. package/packages/agent/src/api/coding-agents-fallback-routes.js +523 -0
  882. package/packages/agent/src/api/compat-utils.d.ts +49 -0
  883. package/packages/agent/src/api/compat-utils.d.ts.map +1 -0
  884. package/packages/agent/src/api/compat-utils.js +122 -0
  885. package/packages/agent/src/api/config-env.d.ts +43 -0
  886. package/packages/agent/src/api/config-env.d.ts.map +1 -0
  887. package/packages/agent/src/api/config-env.js +284 -0
  888. package/packages/agent/src/api/config-routes.d.ts +40 -0
  889. package/packages/agent/src/api/config-routes.d.ts.map +1 -0
  890. package/packages/agent/src/api/config-routes.js +433 -0
  891. package/packages/agent/src/api/connector-health.d.ts +42 -0
  892. package/packages/agent/src/api/connector-health.d.ts.map +1 -0
  893. package/packages/agent/src/api/connector-health.js +132 -0
  894. package/packages/agent/src/api/connector-routes.d.ts +29 -0
  895. package/packages/agent/src/api/connector-routes.d.ts.map +1 -0
  896. package/packages/agent/src/api/connector-routes.js +137 -0
  897. package/packages/agent/src/api/conversation-metadata.d.ts +10 -0
  898. package/packages/agent/src/api/conversation-metadata.d.ts.map +1 -0
  899. package/packages/agent/src/api/conversation-metadata.js +107 -0
  900. package/packages/agent/src/api/conversation-routes.d.ts +43 -0
  901. package/packages/agent/src/api/conversation-routes.d.ts.map +1 -0
  902. package/packages/agent/src/api/conversation-routes.js +1198 -0
  903. package/packages/agent/src/api/coordinator-wiring.d.ts +46 -0
  904. package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -0
  905. package/packages/agent/src/api/coordinator-wiring.js +108 -0
  906. package/packages/agent/src/api/credit-detection.d.ts +9 -0
  907. package/packages/agent/src/api/credit-detection.d.ts.map +1 -0
  908. package/packages/agent/src/api/credit-detection.js +47 -0
  909. package/packages/agent/src/api/curated-skills-routes.d.ts +22 -0
  910. package/packages/agent/src/api/curated-skills-routes.d.ts.map +1 -0
  911. package/packages/agent/src/api/curated-skills-routes.js +295 -0
  912. package/packages/agent/src/api/database.d.ts +35 -0
  913. package/packages/agent/src/api/database.d.ts.map +1 -0
  914. package/packages/agent/src/api/database.js +1141 -0
  915. package/packages/agent/src/api/diagnostics-routes.d.ts +60 -0
  916. package/packages/agent/src/api/diagnostics-routes.d.ts.map +1 -0
  917. package/packages/agent/src/api/diagnostics-routes.js +365 -0
  918. package/packages/agent/src/api/discord-avatar-cache.d.ts +10 -0
  919. package/packages/agent/src/api/discord-avatar-cache.d.ts.map +1 -0
  920. package/packages/agent/src/api/discord-avatar-cache.js +149 -0
  921. package/packages/agent/src/api/discord-profiles.d.ts +26 -0
  922. package/packages/agent/src/api/discord-profiles.d.ts.map +1 -0
  923. package/packages/agent/src/api/discord-profiles.js +279 -0
  924. package/packages/agent/src/api/early-logs.d.ts +29 -0
  925. package/packages/agent/src/api/early-logs.d.ts.map +1 -0
  926. package/packages/agent/src/api/early-logs.js +96 -0
  927. package/packages/agent/src/api/experience-routes.d.ts +8 -0
  928. package/packages/agent/src/api/experience-routes.d.ts.map +1 -0
  929. package/packages/agent/src/api/experience-routes.js +471 -0
  930. package/packages/agent/src/api/health-routes.d.ts +44 -0
  931. package/packages/agent/src/api/health-routes.d.ts.map +1 -0
  932. package/packages/agent/src/api/health-routes.js +449 -0
  933. package/packages/agent/src/api/http-helpers.d.ts +50 -0
  934. package/packages/agent/src/api/http-helpers.d.ts.map +1 -0
  935. package/packages/agent/src/api/http-helpers.js +167 -0
  936. package/packages/agent/src/api/inbox-routes.d.ts +48 -0
  937. package/packages/agent/src/api/inbox-routes.d.ts.map +1 -0
  938. package/packages/agent/src/api/inbox-routes.js +1577 -0
  939. package/packages/agent/src/api/index.d.ts +58 -0
  940. package/packages/agent/src/api/index.d.ts.map +1 -0
  941. package/packages/agent/src/api/index.js +61 -0
  942. package/packages/agent/src/api/knowledge-routes.d.ts +2 -0
  943. package/packages/agent/src/api/knowledge-routes.d.ts.map +1 -0
  944. package/packages/agent/src/api/knowledge-routes.js +2 -0
  945. package/packages/agent/src/api/knowledge-service-loader.d.ts +2 -0
  946. package/packages/agent/src/api/knowledge-service-loader.d.ts.map +1 -0
  947. package/packages/agent/src/api/knowledge-service-loader.js +2 -0
  948. package/packages/agent/src/api/mcp-routes.d.ts +33 -0
  949. package/packages/agent/src/api/mcp-routes.d.ts.map +1 -0
  950. package/packages/agent/src/api/mcp-routes.js +186 -0
  951. package/packages/agent/src/api/memory-bounds.d.ts +51 -0
  952. package/packages/agent/src/api/memory-bounds.d.ts.map +1 -0
  953. package/packages/agent/src/api/memory-bounds.js +81 -0
  954. package/packages/agent/src/api/memory-routes.d.ts +9 -0
  955. package/packages/agent/src/api/memory-routes.d.ts.map +1 -0
  956. package/packages/agent/src/api/memory-routes.js +483 -0
  957. package/packages/agent/src/api/misc-routes.d.ts +64 -0
  958. package/packages/agent/src/api/misc-routes.d.ts.map +1 -0
  959. package/packages/agent/src/api/misc-routes.js +555 -0
  960. package/packages/agent/src/api/model-provider-helpers.d.ts +84 -0
  961. package/packages/agent/src/api/model-provider-helpers.d.ts.map +1 -0
  962. package/packages/agent/src/api/model-provider-helpers.js +588 -0
  963. package/packages/agent/src/api/models-routes.d.ts +14 -0
  964. package/packages/agent/src/api/models-routes.d.ts.map +1 -0
  965. package/packages/agent/src/api/models-routes.js +37 -0
  966. package/packages/agent/src/api/music-player-route-fallback.d.ts +16 -0
  967. package/packages/agent/src/api/music-player-route-fallback.d.ts.map +1 -0
  968. package/packages/agent/src/api/music-player-route-fallback.js +65 -0
  969. package/packages/agent/src/api/nfa-routes.d.ts +5 -0
  970. package/packages/agent/src/api/nfa-routes.d.ts.map +1 -0
  971. package/packages/agent/src/api/nfa-routes.js +125 -0
  972. package/packages/agent/src/api/onboarding-routes.d.ts +50 -0
  973. package/packages/agent/src/api/onboarding-routes.d.ts.map +1 -0
  974. package/packages/agent/src/api/onboarding-routes.js +590 -0
  975. package/packages/agent/src/api/owner-contact-helpers.d.ts +39 -0
  976. package/packages/agent/src/api/owner-contact-helpers.d.ts.map +1 -0
  977. package/packages/agent/src/api/owner-contact-helpers.js +47 -0
  978. package/packages/agent/src/api/parse-action-block.d.ts +35 -0
  979. package/packages/agent/src/api/parse-action-block.d.ts.map +1 -0
  980. package/packages/agent/src/api/parse-action-block.js +113 -0
  981. package/packages/agent/src/api/permissions-routes-extra.d.ts +30 -0
  982. package/packages/agent/src/api/permissions-routes-extra.d.ts.map +1 -0
  983. package/packages/agent/src/api/permissions-routes-extra.js +78 -0
  984. package/packages/agent/src/api/permissions-routes.d.ts +28 -0
  985. package/packages/agent/src/api/permissions-routes.d.ts.map +1 -0
  986. package/packages/agent/src/api/permissions-routes.js +180 -0
  987. package/packages/agent/src/api/plugin-discovery-helpers.d.ts +147 -0
  988. package/packages/agent/src/api/plugin-discovery-helpers.d.ts.map +1 -0
  989. package/packages/agent/src/api/plugin-discovery-helpers.js +1136 -0
  990. package/packages/agent/src/api/plugin-routes.d.ts +127 -0
  991. package/packages/agent/src/api/plugin-routes.d.ts.map +1 -0
  992. package/packages/agent/src/api/plugin-routes.js +1250 -0
  993. package/packages/agent/src/api/plugin-runtime-apply.d.ts +31 -0
  994. package/packages/agent/src/api/plugin-runtime-apply.d.ts.map +1 -0
  995. package/packages/agent/src/api/plugin-runtime-apply.js +217 -0
  996. package/packages/agent/src/api/plugin-validation.d.ts +86 -0
  997. package/packages/agent/src/api/plugin-validation.d.ts.map +1 -0
  998. package/packages/agent/src/api/plugin-validation.js +259 -0
  999. package/packages/agent/src/api/provider-switch-config.d.ts +63 -0
  1000. package/packages/agent/src/api/provider-switch-config.d.ts.map +1 -0
  1001. package/packages/agent/src/api/provider-switch-config.js +721 -0
  1002. package/packages/agent/src/api/provider-switch-routes.d.ts +29 -0
  1003. package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -0
  1004. package/packages/agent/src/api/provider-switch-routes.js +142 -0
  1005. package/packages/agent/src/api/rate-limiter.d.ts +29 -0
  1006. package/packages/agent/src/api/rate-limiter.d.ts.map +1 -0
  1007. package/packages/agent/src/api/rate-limiter.js +57 -0
  1008. package/packages/agent/src/api/registry-routes.d.ts +29 -0
  1009. package/packages/agent/src/api/registry-routes.d.ts.map +1 -0
  1010. package/packages/agent/src/api/registry-routes.js +98 -0
  1011. package/packages/agent/src/api/registry-service.d.ts +77 -0
  1012. package/packages/agent/src/api/registry-service.d.ts.map +1 -0
  1013. package/packages/agent/src/api/registry-service.js +190 -0
  1014. package/packages/agent/src/api/relationships-routes.d.ts +7 -0
  1015. package/packages/agent/src/api/relationships-routes.d.ts.map +1 -0
  1016. package/packages/agent/src/api/relationships-routes.js +275 -0
  1017. package/packages/agent/src/api/route-helpers.d.ts +16 -0
  1018. package/packages/agent/src/api/route-helpers.d.ts.map +1 -0
  1019. package/packages/agent/src/api/route-helpers.js +1 -0
  1020. package/packages/agent/src/api/runtime-plugin-routes.d.ts +26 -0
  1021. package/packages/agent/src/api/runtime-plugin-routes.d.ts.map +1 -0
  1022. package/packages/agent/src/api/runtime-plugin-routes.js +196 -0
  1023. package/packages/agent/src/api/sandbox-routes.d.ts +12 -0
  1024. package/packages/agent/src/api/sandbox-routes.d.ts.map +1 -0
  1025. package/packages/agent/src/api/sandbox-routes.js +1334 -0
  1026. package/packages/agent/src/api/server-auth.d.ts +46 -0
  1027. package/packages/agent/src/api/server-auth.d.ts.map +1 -0
  1028. package/packages/agent/src/api/server-auth.js +508 -0
  1029. package/packages/agent/src/api/server-helpers-auth.d.ts +40 -0
  1030. package/packages/agent/src/api/server-helpers-auth.d.ts.map +1 -0
  1031. package/packages/agent/src/api/server-helpers-auth.js +609 -0
  1032. package/packages/agent/src/api/server-helpers-config.d.ts +37 -0
  1033. package/packages/agent/src/api/server-helpers-config.d.ts.map +1 -0
  1034. package/packages/agent/src/api/server-helpers-config.js +295 -0
  1035. package/packages/agent/src/api/server-helpers-fetch.d.ts +15 -0
  1036. package/packages/agent/src/api/server-helpers-fetch.d.ts.map +1 -0
  1037. package/packages/agent/src/api/server-helpers-fetch.js +149 -0
  1038. package/packages/agent/src/api/server-helpers-mcp.d.ts +12 -0
  1039. package/packages/agent/src/api/server-helpers-mcp.d.ts.map +1 -0
  1040. package/packages/agent/src/api/server-helpers-mcp.js +315 -0
  1041. package/packages/agent/src/api/server-helpers-plugin.d.ts +13 -0
  1042. package/packages/agent/src/api/server-helpers-plugin.d.ts.map +1 -0
  1043. package/packages/agent/src/api/server-helpers-plugin.js +158 -0
  1044. package/packages/agent/src/api/server-helpers-swarm.d.ts +59 -0
  1045. package/packages/agent/src/api/server-helpers-swarm.d.ts.map +1 -0
  1046. package/packages/agent/src/api/server-helpers-swarm.js +416 -0
  1047. package/packages/agent/src/api/server-helpers-wallet.d.ts +18 -0
  1048. package/packages/agent/src/api/server-helpers-wallet.d.ts.map +1 -0
  1049. package/packages/agent/src/api/server-helpers-wallet.js +177 -0
  1050. package/packages/agent/src/api/server-helpers.d.ts +96 -0
  1051. package/packages/agent/src/api/server-helpers.d.ts.map +1 -0
  1052. package/packages/agent/src/api/server-helpers.js +601 -0
  1053. package/packages/agent/src/api/server-types.d.ts +232 -0
  1054. package/packages/agent/src/api/server-types.d.ts.map +1 -0
  1055. package/packages/agent/src/api/server-types.js +6 -0
  1056. package/packages/agent/src/api/server.d.ts +61 -0
  1057. package/packages/agent/src/api/server.d.ts.map +1 -0
  1058. package/packages/agent/src/api/server.js +3176 -0
  1059. package/packages/agent/src/api/signal-routes.d.ts +42 -0
  1060. package/packages/agent/src/api/signal-routes.d.ts.map +1 -0
  1061. package/packages/agent/src/api/signal-routes.js +231 -0
  1062. package/packages/agent/src/api/skill-discovery-helpers.d.ts +80 -0
  1063. package/packages/agent/src/api/skill-discovery-helpers.d.ts.map +1 -0
  1064. package/packages/agent/src/api/skill-discovery-helpers.js +383 -0
  1065. package/packages/agent/src/api/skills-routes.d.ts +32 -0
  1066. package/packages/agent/src/api/skills-routes.d.ts.map +1 -0
  1067. package/packages/agent/src/api/skills-routes.js +975 -0
  1068. package/packages/agent/src/api/static-file-server.d.ts +19 -0
  1069. package/packages/agent/src/api/static-file-server.d.ts.map +1 -0
  1070. package/packages/agent/src/api/static-file-server.js +235 -0
  1071. package/packages/agent/src/api/stream-persistence.d.ts +64 -0
  1072. package/packages/agent/src/api/stream-persistence.d.ts.map +1 -0
  1073. package/packages/agent/src/api/stream-persistence.js +231 -0
  1074. package/packages/agent/src/api/stream-route-state.d.ts +56 -0
  1075. package/packages/agent/src/api/stream-route-state.d.ts.map +1 -0
  1076. package/packages/agent/src/api/stream-route-state.js +1 -0
  1077. package/packages/agent/src/api/stream-routes.d.ts +24 -0
  1078. package/packages/agent/src/api/stream-routes.d.ts.map +1 -0
  1079. package/packages/agent/src/api/stream-routes.js +726 -0
  1080. package/packages/agent/src/api/streaming-text.d.ts +9 -0
  1081. package/packages/agent/src/api/streaming-text.d.ts.map +1 -0
  1082. package/packages/agent/src/api/streaming-text.js +85 -0
  1083. package/packages/agent/src/api/streaming-types.d.ts +30 -0
  1084. package/packages/agent/src/api/streaming-types.d.ts.map +1 -0
  1085. package/packages/agent/src/api/streaming-types.js +1 -0
  1086. package/packages/agent/src/api/subscription-routes.d.ts +20 -0
  1087. package/packages/agent/src/api/subscription-routes.d.ts.map +1 -0
  1088. package/packages/agent/src/api/subscription-routes.js +268 -0
  1089. package/packages/agent/src/api/task-agent-message-routing.d.ts +10 -0
  1090. package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -0
  1091. package/packages/agent/src/api/task-agent-message-routing.js +62 -0
  1092. package/packages/agent/src/api/telegram-account-routes.d.ts +26 -0
  1093. package/packages/agent/src/api/telegram-account-routes.d.ts.map +1 -0
  1094. package/packages/agent/src/api/telegram-account-routes.js +229 -0
  1095. package/packages/agent/src/api/terminal-run-limits.d.ts +5 -0
  1096. package/packages/agent/src/api/terminal-run-limits.d.ts.map +1 -0
  1097. package/packages/agent/src/api/terminal-run-limits.js +20 -0
  1098. package/packages/agent/src/api/trade-safety.d.ts +35 -0
  1099. package/packages/agent/src/api/trade-safety.d.ts.map +1 -0
  1100. package/packages/agent/src/api/trade-safety.js +62 -0
  1101. package/packages/agent/src/api/training-backend-check.d.ts +2 -0
  1102. package/packages/agent/src/api/training-backend-check.d.ts.map +1 -0
  1103. package/packages/agent/src/api/training-backend-check.js +2 -0
  1104. package/packages/agent/src/api/training-routes.d.ts +2 -0
  1105. package/packages/agent/src/api/training-routes.d.ts.map +1 -0
  1106. package/packages/agent/src/api/training-routes.js +2 -0
  1107. package/packages/agent/src/api/training-service-like.d.ts +2 -0
  1108. package/packages/agent/src/api/training-service-like.d.ts.map +1 -0
  1109. package/packages/agent/src/api/training-service-like.js +1 -0
  1110. package/packages/agent/src/api/trajectory-routes.d.ts +3 -0
  1111. package/packages/agent/src/api/trajectory-routes.d.ts.map +1 -0
  1112. package/packages/agent/src/api/trajectory-routes.js +2 -0
  1113. package/packages/agent/src/api/trigger-routes.d.ts +64 -0
  1114. package/packages/agent/src/api/trigger-routes.d.ts.map +1 -0
  1115. package/packages/agent/src/api/trigger-routes.js +431 -0
  1116. package/packages/agent/src/api/tts-routes.d.ts +24 -0
  1117. package/packages/agent/src/api/tts-routes.d.ts.map +1 -0
  1118. package/packages/agent/src/api/tts-routes.js +200 -0
  1119. package/packages/agent/src/api/tx-service.d.ts +53 -0
  1120. package/packages/agent/src/api/tx-service.d.ts.map +1 -0
  1121. package/packages/agent/src/api/tx-service.js +217 -0
  1122. package/packages/agent/src/api/update-routes.d.ts +19 -0
  1123. package/packages/agent/src/api/update-routes.d.ts.map +1 -0
  1124. package/packages/agent/src/api/update-routes.js +54 -0
  1125. package/packages/agent/src/api/wallet-capability.d.ts +32 -0
  1126. package/packages/agent/src/api/wallet-capability.d.ts.map +1 -0
  1127. package/packages/agent/src/api/wallet-capability.js +189 -0
  1128. package/packages/agent/src/api/wallet-env-sync.d.ts +2 -0
  1129. package/packages/agent/src/api/wallet-env-sync.d.ts.map +1 -0
  1130. package/packages/agent/src/api/wallet-env-sync.js +108 -0
  1131. package/packages/agent/src/api/wallet-evm-balance.d.ts +72 -0
  1132. package/packages/agent/src/api/wallet-evm-balance.d.ts.map +1 -0
  1133. package/packages/agent/src/api/wallet-evm-balance.js +663 -0
  1134. package/packages/agent/src/api/wallet-routes.d.ts +42 -0
  1135. package/packages/agent/src/api/wallet-routes.d.ts.map +1 -0
  1136. package/packages/agent/src/api/wallet-routes.js +862 -0
  1137. package/packages/agent/src/api/wallet-rpc.d.ts +73 -0
  1138. package/packages/agent/src/api/wallet-rpc.d.ts.map +1 -0
  1139. package/packages/agent/src/api/wallet-rpc.js +471 -0
  1140. package/packages/agent/src/api/wallet-trading-profile.d.ts +31 -0
  1141. package/packages/agent/src/api/wallet-trading-profile.d.ts.map +1 -0
  1142. package/packages/agent/src/api/wallet-trading-profile.js +544 -0
  1143. package/packages/agent/src/api/wallet.d.ts +64 -0
  1144. package/packages/agent/src/api/wallet.d.ts.map +1 -0
  1145. package/packages/agent/src/api/wallet.js +780 -0
  1146. package/packages/agent/src/api/whatsapp-routes.d.ts +39 -0
  1147. package/packages/agent/src/api/whatsapp-routes.d.ts.map +1 -0
  1148. package/packages/agent/src/api/whatsapp-routes.js +275 -0
  1149. package/packages/agent/src/api/workbench-helpers.d.ts +39 -0
  1150. package/packages/agent/src/api/workbench-helpers.d.ts.map +1 -0
  1151. package/packages/agent/src/api/workbench-helpers.js +141 -0
  1152. package/packages/agent/src/api/workbench-routes.d.ts +53 -0
  1153. package/packages/agent/src/api/workbench-routes.d.ts.map +1 -0
  1154. package/packages/agent/src/api/workbench-routes.js +391 -0
  1155. package/packages/agent/src/api/x-relay-routes.d.ts +27 -0
  1156. package/packages/agent/src/api/x-relay-routes.d.ts.map +1 -0
  1157. package/packages/agent/src/api/x-relay-routes.js +135 -0
  1158. package/packages/agent/src/api/zip-utils.d.ts +8 -0
  1159. package/packages/agent/src/api/zip-utils.d.ts.map +1 -0
  1160. package/packages/agent/src/api/zip-utils.js +115 -0
  1161. package/packages/agent/src/auth/account-storage.d.ts +48 -0
  1162. package/packages/agent/src/auth/account-storage.d.ts.map +1 -0
  1163. package/packages/agent/src/auth/account-storage.js +227 -0
  1164. package/packages/agent/src/auth/anthropic.d.ts +24 -0
  1165. package/packages/agent/src/auth/anthropic.d.ts.map +1 -0
  1166. package/packages/agent/src/auth/anthropic.js +38 -0
  1167. package/packages/agent/src/auth/claude-code-stealth.d.ts +2 -0
  1168. package/packages/agent/src/auth/claude-code-stealth.d.ts.map +1 -0
  1169. package/packages/agent/src/auth/claude-code-stealth.js +114 -0
  1170. package/packages/agent/src/auth/credentials.d.ts +95 -0
  1171. package/packages/agent/src/auth/credentials.d.ts.map +1 -0
  1172. package/packages/agent/src/auth/credentials.js +444 -0
  1173. package/packages/agent/src/auth/index.d.ts +8 -0
  1174. package/packages/agent/src/auth/index.d.ts.map +1 -0
  1175. package/packages/agent/src/auth/index.js +7 -0
  1176. package/packages/agent/src/auth/oauth-flow.d.ts +106 -0
  1177. package/packages/agent/src/auth/oauth-flow.d.ts.map +1 -0
  1178. package/packages/agent/src/auth/oauth-flow.js +349 -0
  1179. package/packages/agent/src/auth/openai-codex.d.ts +27 -0
  1180. package/packages/agent/src/auth/openai-codex.d.ts.map +1 -0
  1181. package/packages/agent/src/auth/openai-codex.js +76 -0
  1182. package/packages/agent/src/auth/refresh-mutex.d.ts +19 -0
  1183. package/packages/agent/src/auth/refresh-mutex.d.ts.map +1 -0
  1184. package/packages/agent/src/auth/refresh-mutex.js +33 -0
  1185. package/packages/agent/src/auth/types.d.ts +18 -0
  1186. package/packages/agent/src/auth/types.d.ts.map +1 -0
  1187. package/packages/agent/src/auth/types.js +8 -0
  1188. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts +48 -0
  1189. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts.map +1 -0
  1190. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.js +113 -0
  1191. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts +26 -0
  1192. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts.map +1 -0
  1193. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.js +342 -0
  1194. package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts +9 -0
  1195. package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts.map +1 -0
  1196. package/packages/agent/src/auth/vendor/pi-oauth/pkce.js +21 -0
  1197. package/packages/agent/src/awareness/index.d.ts +2 -0
  1198. package/packages/agent/src/awareness/index.d.ts.map +1 -0
  1199. package/packages/agent/src/awareness/index.js +1 -0
  1200. package/packages/agent/src/awareness/registry.d.ts +27 -0
  1201. package/packages/agent/src/awareness/registry.d.ts.map +1 -0
  1202. package/packages/agent/src/awareness/registry.js +161 -0
  1203. package/packages/agent/src/cli/parse-duration.d.ts +5 -0
  1204. package/packages/agent/src/cli/parse-duration.d.ts.map +1 -0
  1205. package/packages/agent/src/cli/parse-duration.js +27 -0
  1206. package/packages/agent/src/cloud/auth.d.ts +19 -0
  1207. package/packages/agent/src/cloud/auth.d.ts.map +1 -0
  1208. package/packages/agent/src/cloud/auth.js +110 -0
  1209. package/packages/agent/src/cloud/backup.d.ts +18 -0
  1210. package/packages/agent/src/cloud/backup.d.ts.map +1 -0
  1211. package/packages/agent/src/cloud/backup.js +42 -0
  1212. package/packages/agent/src/cloud/base-url.d.ts +3 -0
  1213. package/packages/agent/src/cloud/base-url.d.ts.map +1 -0
  1214. package/packages/agent/src/cloud/base-url.js +53 -0
  1215. package/packages/agent/src/cloud/bridge-client.d.ts +126 -0
  1216. package/packages/agent/src/cloud/bridge-client.d.ts.map +1 -0
  1217. package/packages/agent/src/cloud/bridge-client.js +380 -0
  1218. package/packages/agent/src/cloud/cloud-manager.d.ts +33 -0
  1219. package/packages/agent/src/cloud/cloud-manager.d.ts.map +1 -0
  1220. package/packages/agent/src/cloud/cloud-manager.js +130 -0
  1221. package/packages/agent/src/cloud/cloud-proxy.d.ts +20 -0
  1222. package/packages/agent/src/cloud/cloud-proxy.d.ts.map +1 -0
  1223. package/packages/agent/src/cloud/cloud-proxy.js +34 -0
  1224. package/packages/agent/src/cloud/cloud-wallet.d.ts +92 -0
  1225. package/packages/agent/src/cloud/cloud-wallet.d.ts.map +1 -0
  1226. package/packages/agent/src/cloud/cloud-wallet.js +199 -0
  1227. package/packages/agent/src/cloud/index.d.ts +9 -0
  1228. package/packages/agent/src/cloud/index.d.ts.map +1 -0
  1229. package/packages/agent/src/cloud/index.js +8 -0
  1230. package/packages/agent/src/cloud/reconnect.d.ts +26 -0
  1231. package/packages/agent/src/cloud/reconnect.d.ts.map +1 -0
  1232. package/packages/agent/src/cloud/reconnect.js +89 -0
  1233. package/packages/agent/src/cloud/validate-url.d.ts +2 -0
  1234. package/packages/agent/src/cloud/validate-url.d.ts.map +1 -0
  1235. package/packages/agent/src/cloud/validate-url.js +162 -0
  1236. package/packages/agent/src/config/character-schema.d.ts +25 -0
  1237. package/packages/agent/src/config/character-schema.d.ts.map +1 -0
  1238. package/packages/agent/src/config/character-schema.js +39 -0
  1239. package/packages/agent/src/config/config.d.ts +6 -0
  1240. package/packages/agent/src/config/config.d.ts.map +1 -0
  1241. package/packages/agent/src/config/config.js +278 -0
  1242. package/packages/agent/src/config/env-vars.d.ts +9 -0
  1243. package/packages/agent/src/config/env-vars.d.ts.map +1 -0
  1244. package/packages/agent/src/config/env-vars.js +284 -0
  1245. package/packages/agent/src/config/feature-flags.d.ts +17 -0
  1246. package/packages/agent/src/config/feature-flags.d.ts.map +1 -0
  1247. package/packages/agent/src/config/feature-flags.js +37 -0
  1248. package/packages/agent/src/config/includes.d.ts +26 -0
  1249. package/packages/agent/src/config/includes.d.ts.map +1 -0
  1250. package/packages/agent/src/config/includes.js +148 -0
  1251. package/packages/agent/src/config/index.d.ts +20 -0
  1252. package/packages/agent/src/config/index.d.ts.map +1 -0
  1253. package/packages/agent/src/config/index.js +19 -0
  1254. package/packages/agent/src/config/model-metadata.d.ts +20 -0
  1255. package/packages/agent/src/config/model-metadata.d.ts.map +1 -0
  1256. package/packages/agent/src/config/model-metadata.js +133 -0
  1257. package/packages/agent/src/config/object-utils.d.ts +2 -0
  1258. package/packages/agent/src/config/object-utils.d.ts.map +1 -0
  1259. package/packages/agent/src/config/object-utils.js +6 -0
  1260. package/packages/agent/src/config/owner-contacts.d.ts +42 -0
  1261. package/packages/agent/src/config/owner-contacts.d.ts.map +1 -0
  1262. package/packages/agent/src/config/owner-contacts.js +223 -0
  1263. package/packages/agent/src/config/paths.d.ts +19 -0
  1264. package/packages/agent/src/config/paths.d.ts.map +1 -0
  1265. package/packages/agent/src/config/paths.js +109 -0
  1266. package/packages/agent/src/config/plugin-auto-enable.d.ts +44 -0
  1267. package/packages/agent/src/config/plugin-auto-enable.d.ts.map +1 -0
  1268. package/packages/agent/src/config/plugin-auto-enable.js +557 -0
  1269. package/packages/agent/src/config/plugin-widgets.d.ts +29 -0
  1270. package/packages/agent/src/config/plugin-widgets.d.ts.map +1 -0
  1271. package/packages/agent/src/config/plugin-widgets.js +61 -0
  1272. package/packages/agent/src/config/schema.d.ts +87 -0
  1273. package/packages/agent/src/config/schema.d.ts.map +1 -0
  1274. package/packages/agent/src/config/schema.js +922 -0
  1275. package/packages/agent/src/config/telegram-custom-commands.d.ts +25 -0
  1276. package/packages/agent/src/config/telegram-custom-commands.d.ts.map +1 -0
  1277. package/packages/agent/src/config/telegram-custom-commands.js +71 -0
  1278. package/packages/agent/src/config/types.agent-defaults.d.ts +363 -0
  1279. package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -0
  1280. package/packages/agent/src/config/types.agent-defaults.js +1 -0
  1281. package/packages/agent/src/config/types.agents.d.ts +114 -0
  1282. package/packages/agent/src/config/types.agents.d.ts.map +1 -0
  1283. package/packages/agent/src/config/types.agents.js +1 -0
  1284. package/packages/agent/src/config/types.d.ts +8 -0
  1285. package/packages/agent/src/config/types.d.ts.map +1 -0
  1286. package/packages/agent/src/config/types.eliza.d.ts +716 -0
  1287. package/packages/agent/src/config/types.eliza.d.ts.map +1 -0
  1288. package/packages/agent/src/config/types.eliza.js +1 -0
  1289. package/packages/agent/src/config/types.gateway.d.ts +216 -0
  1290. package/packages/agent/src/config/types.gateway.d.ts.map +1 -0
  1291. package/packages/agent/src/config/types.gateway.js +1 -0
  1292. package/packages/agent/src/config/types.hooks.d.ts +107 -0
  1293. package/packages/agent/src/config/types.hooks.d.ts.map +1 -0
  1294. package/packages/agent/src/config/types.hooks.js +1 -0
  1295. package/packages/agent/src/config/types.js +7 -0
  1296. package/packages/agent/src/config/types.messages.d.ts +176 -0
  1297. package/packages/agent/src/config/types.messages.d.ts.map +1 -0
  1298. package/packages/agent/src/config/types.messages.js +1 -0
  1299. package/packages/agent/src/config/types.tools.d.ts +400 -0
  1300. package/packages/agent/src/config/types.tools.d.ts.map +1 -0
  1301. package/packages/agent/src/config/types.tools.js +1 -0
  1302. package/packages/agent/src/config/zod-schema.agent-runtime.d.ts +1137 -0
  1303. package/packages/agent/src/config/zod-schema.agent-runtime.d.ts.map +1 -0
  1304. package/packages/agent/src/config/zod-schema.agent-runtime.js +782 -0
  1305. package/packages/agent/src/config/zod-schema.core.d.ts +1021 -0
  1306. package/packages/agent/src/config/zod-schema.core.d.ts.map +1 -0
  1307. package/packages/agent/src/config/zod-schema.core.js +701 -0
  1308. package/packages/agent/src/config/zod-schema.d.ts +3185 -0
  1309. package/packages/agent/src/config/zod-schema.d.ts.map +1 -0
  1310. package/packages/agent/src/config/zod-schema.hooks.d.ts +88 -0
  1311. package/packages/agent/src/config/zod-schema.hooks.d.ts.map +1 -0
  1312. package/packages/agent/src/config/zod-schema.hooks.js +133 -0
  1313. package/packages/agent/src/config/zod-schema.js +850 -0
  1314. package/packages/agent/src/config/zod-schema.providers-core.d.ts +2746 -0
  1315. package/packages/agent/src/config/zod-schema.providers-core.d.ts.map +1 -0
  1316. package/packages/agent/src/config/zod-schema.providers-core.js +961 -0
  1317. package/packages/agent/src/config/zod-schema.session.d.ts +183 -0
  1318. package/packages/agent/src/config/zod-schema.session.d.ts.map +1 -0
  1319. package/packages/agent/src/config/zod-schema.session.js +86 -0
  1320. package/packages/agent/src/contracts/apps.d.ts +2 -0
  1321. package/packages/agent/src/contracts/apps.d.ts.map +1 -0
  1322. package/packages/agent/src/contracts/apps.js +1 -0
  1323. package/packages/agent/src/contracts/awareness.d.ts +38 -0
  1324. package/packages/agent/src/contracts/awareness.d.ts.map +1 -0
  1325. package/packages/agent/src/contracts/awareness.js +7 -0
  1326. package/packages/agent/src/contracts/config.d.ts +160 -0
  1327. package/packages/agent/src/contracts/config.d.ts.map +1 -0
  1328. package/packages/agent/src/contracts/config.js +4 -0
  1329. package/packages/agent/src/contracts/onboarding.d.ts +2 -0
  1330. package/packages/agent/src/contracts/onboarding.d.ts.map +1 -0
  1331. package/packages/agent/src/contracts/onboarding.js +1 -0
  1332. package/packages/agent/src/contracts/service-routing.d.ts +2 -0
  1333. package/packages/agent/src/contracts/service-routing.d.ts.map +1 -0
  1334. package/packages/agent/src/contracts/service-routing.js +1 -0
  1335. package/packages/agent/src/contracts/wallet.d.ts +2 -0
  1336. package/packages/agent/src/contracts/wallet.d.ts.map +1 -0
  1337. package/packages/agent/src/contracts/wallet.js +1 -0
  1338. package/packages/agent/src/diagnostics/integration-observability.d.ts +40 -0
  1339. package/packages/agent/src/diagnostics/integration-observability.d.ts.map +1 -0
  1340. package/packages/agent/src/diagnostics/integration-observability.js +78 -0
  1341. package/packages/agent/src/evaluators/late-join-whitelist.d.ts +16 -0
  1342. package/packages/agent/src/evaluators/late-join-whitelist.d.ts.map +1 -0
  1343. package/packages/agent/src/evaluators/late-join-whitelist.js +67 -0
  1344. package/packages/agent/src/hooks/discovery.d.ts +13 -0
  1345. package/packages/agent/src/hooks/discovery.d.ts.map +1 -0
  1346. package/packages/agent/src/hooks/discovery.js +191 -0
  1347. package/packages/agent/src/hooks/eligibility.d.ts +12 -0
  1348. package/packages/agent/src/hooks/eligibility.d.ts.map +1 -0
  1349. package/packages/agent/src/hooks/eligibility.js +105 -0
  1350. package/packages/agent/src/hooks/index.d.ts +3 -0
  1351. package/packages/agent/src/hooks/index.d.ts.map +1 -0
  1352. package/packages/agent/src/hooks/index.js +2 -0
  1353. package/packages/agent/src/hooks/loader.d.ts +34 -0
  1354. package/packages/agent/src/hooks/loader.d.ts.map +1 -0
  1355. package/packages/agent/src/hooks/loader.js +214 -0
  1356. package/packages/agent/src/hooks/registry.d.ts +11 -0
  1357. package/packages/agent/src/hooks/registry.d.ts.map +1 -0
  1358. package/packages/agent/src/hooks/registry.js +58 -0
  1359. package/packages/agent/src/hooks/types.d.ts +104 -0
  1360. package/packages/agent/src/hooks/types.d.ts.map +1 -0
  1361. package/packages/agent/src/hooks/types.js +8 -0
  1362. package/packages/agent/src/index.d.ts +57 -0
  1363. package/packages/agent/src/index.d.ts.map +1 -0
  1364. package/packages/agent/src/index.js +64 -0
  1365. package/packages/agent/src/middleware/x402/payment-config.d.ts +251 -0
  1366. package/packages/agent/src/middleware/x402/payment-config.d.ts.map +1 -0
  1367. package/packages/agent/src/middleware/x402/payment-config.js +568 -0
  1368. package/packages/agent/src/middleware/x402/payment-wrapper.d.ts +42 -0
  1369. package/packages/agent/src/middleware/x402/payment-wrapper.d.ts.map +1 -0
  1370. package/packages/agent/src/middleware/x402/payment-wrapper.js +1342 -0
  1371. package/packages/agent/src/middleware/x402/startup-validator.d.ts +28 -0
  1372. package/packages/agent/src/middleware/x402/startup-validator.d.ts.map +1 -0
  1373. package/packages/agent/src/middleware/x402/startup-validator.js +225 -0
  1374. package/packages/agent/src/middleware/x402/types.d.ts +158 -0
  1375. package/packages/agent/src/middleware/x402/types.d.ts.map +1 -0
  1376. package/packages/agent/src/middleware/x402/types.js +5 -0
  1377. package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts +9 -0
  1378. package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts.map +1 -0
  1379. package/packages/agent/src/middleware/x402/x402-facilitator-binding.js +74 -0
  1380. package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts +30 -0
  1381. package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts.map +1 -0
  1382. package/packages/agent/src/middleware/x402/x402-replay-durable.js +202 -0
  1383. package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts +28 -0
  1384. package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts.map +1 -0
  1385. package/packages/agent/src/middleware/x402/x402-replay-guard.js +134 -0
  1386. package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts +21 -0
  1387. package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts.map +1 -0
  1388. package/packages/agent/src/middleware/x402/x402-replay-keys.js +141 -0
  1389. package/packages/agent/src/middleware/x402/x402-resolve.d.ts +6 -0
  1390. package/packages/agent/src/middleware/x402/x402-resolve.d.ts.map +1 -0
  1391. package/packages/agent/src/middleware/x402/x402-resolve.js +31 -0
  1392. package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts +130 -0
  1393. package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts.map +1 -0
  1394. package/packages/agent/src/middleware/x402/x402-standard-payment.js +387 -0
  1395. package/packages/agent/src/middleware/x402/x402-types.d.ts +130 -0
  1396. package/packages/agent/src/middleware/x402/x402-types.d.ts.map +1 -0
  1397. package/packages/agent/src/middleware/x402/x402-types.js +189 -0
  1398. package/packages/agent/src/plugins/custom-rtmp/index.d.ts +12 -0
  1399. package/packages/agent/src/plugins/custom-rtmp/index.d.ts.map +1 -0
  1400. package/packages/agent/src/plugins/custom-rtmp/index.js +26 -0
  1401. package/packages/agent/src/providers/admin-panel.d.ts +4 -0
  1402. package/packages/agent/src/providers/admin-panel.d.ts.map +1 -0
  1403. package/packages/agent/src/providers/admin-panel.js +83 -0
  1404. package/packages/agent/src/providers/admin-trust.d.ts +4 -0
  1405. package/packages/agent/src/providers/admin-trust.d.ts.map +1 -0
  1406. package/packages/agent/src/providers/admin-trust.js +34 -0
  1407. package/packages/agent/src/providers/automation-terminal-bridge.d.ts +3 -0
  1408. package/packages/agent/src/providers/automation-terminal-bridge.d.ts.map +1 -0
  1409. package/packages/agent/src/providers/automation-terminal-bridge.js +71 -0
  1410. package/packages/agent/src/providers/conversation-utils.d.ts +11 -0
  1411. package/packages/agent/src/providers/conversation-utils.d.ts.map +1 -0
  1412. package/packages/agent/src/providers/conversation-utils.js +69 -0
  1413. package/packages/agent/src/providers/escalation-trigger.d.ts +15 -0
  1414. package/packages/agent/src/providers/escalation-trigger.d.ts.map +1 -0
  1415. package/packages/agent/src/providers/escalation-trigger.js +165 -0
  1416. package/packages/agent/src/providers/media-provider.d.ts +192 -0
  1417. package/packages/agent/src/providers/media-provider.d.ts.map +1 -0
  1418. package/packages/agent/src/providers/media-provider.js +1088 -0
  1419. package/packages/agent/src/providers/page-scoped-context.d.ts +3 -0
  1420. package/packages/agent/src/providers/page-scoped-context.d.ts.map +1 -0
  1421. package/packages/agent/src/providers/page-scoped-context.js +533 -0
  1422. package/packages/agent/src/providers/recent-conversations.d.ts +3 -0
  1423. package/packages/agent/src/providers/recent-conversations.d.ts.map +1 -0
  1424. package/packages/agent/src/providers/recent-conversations.js +94 -0
  1425. package/packages/agent/src/providers/relevant-conversations.d.ts +3 -0
  1426. package/packages/agent/src/providers/relevant-conversations.d.ts.map +1 -0
  1427. package/packages/agent/src/providers/relevant-conversations.js +93 -0
  1428. package/packages/agent/src/providers/role-backfill.d.ts +18 -0
  1429. package/packages/agent/src/providers/role-backfill.d.ts.map +1 -0
  1430. package/packages/agent/src/providers/role-backfill.js +84 -0
  1431. package/packages/agent/src/providers/rolodex.d.ts +3 -0
  1432. package/packages/agent/src/providers/rolodex.d.ts.map +1 -0
  1433. package/packages/agent/src/providers/rolodex.js +78 -0
  1434. package/packages/agent/src/providers/session-bridge.d.ts +24 -0
  1435. package/packages/agent/src/providers/session-bridge.d.ts.map +1 -0
  1436. package/packages/agent/src/providers/session-bridge.js +85 -0
  1437. package/packages/agent/src/providers/session-utils.d.ts +20 -0
  1438. package/packages/agent/src/providers/session-utils.d.ts.map +1 -0
  1439. package/packages/agent/src/providers/session-utils.js +33 -0
  1440. package/packages/agent/src/providers/simple-mode.d.ts +4 -0
  1441. package/packages/agent/src/providers/simple-mode.d.ts.map +1 -0
  1442. package/packages/agent/src/providers/simple-mode.js +85 -0
  1443. package/packages/agent/src/providers/skill-provider.d.ts +16 -0
  1444. package/packages/agent/src/providers/skill-provider.d.ts.map +1 -0
  1445. package/packages/agent/src/providers/skill-provider.js +331 -0
  1446. package/packages/agent/src/providers/tasks.d.ts +9 -0
  1447. package/packages/agent/src/providers/tasks.d.ts.map +1 -0
  1448. package/packages/agent/src/providers/tasks.js +113 -0
  1449. package/packages/agent/src/providers/ui-catalog.d.ts +3 -0
  1450. package/packages/agent/src/providers/ui-catalog.d.ts.map +1 -0
  1451. package/packages/agent/src/providers/ui-catalog.js +95 -0
  1452. package/packages/agent/src/providers/user-name.d.ts +11 -0
  1453. package/packages/agent/src/providers/user-name.d.ts.map +1 -0
  1454. package/packages/agent/src/providers/user-name.js +40 -0
  1455. package/packages/agent/src/providers/workspace-provider.d.ts +14 -0
  1456. package/packages/agent/src/providers/workspace-provider.d.ts.map +1 -0
  1457. package/packages/agent/src/providers/workspace-provider.js +177 -0
  1458. package/packages/agent/src/providers/workspace.d.ts +55 -0
  1459. package/packages/agent/src/providers/workspace.d.ts.map +1 -0
  1460. package/packages/agent/src/providers/workspace.js +481 -0
  1461. package/packages/agent/src/runtime/advanced-capabilities-config.d.ts +8 -0
  1462. package/packages/agent/src/runtime/advanced-capabilities-config.d.ts.map +1 -0
  1463. package/packages/agent/src/runtime/advanced-capabilities-config.js +42 -0
  1464. package/packages/agent/src/runtime/agent-event-service.d.ts +35 -0
  1465. package/packages/agent/src/runtime/agent-event-service.d.ts.map +1 -0
  1466. package/packages/agent/src/runtime/agent-event-service.js +16 -0
  1467. package/packages/agent/src/runtime/agent-wallets.d.ts +103 -0
  1468. package/packages/agent/src/runtime/agent-wallets.d.ts.map +1 -0
  1469. package/packages/agent/src/runtime/agent-wallets.js +247 -0
  1470. package/packages/agent/src/runtime/cloud-onboarding.d.ts +35 -0
  1471. package/packages/agent/src/runtime/cloud-onboarding.d.ts.map +1 -0
  1472. package/packages/agent/src/runtime/cloud-onboarding.js +279 -0
  1473. package/packages/agent/src/runtime/core-plugins.d.ts +54 -0
  1474. package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -0
  1475. package/packages/agent/src/runtime/core-plugins.js +104 -0
  1476. package/packages/agent/src/runtime/custom-actions.d.ts +43 -0
  1477. package/packages/agent/src/runtime/custom-actions.d.ts.map +1 -0
  1478. package/packages/agent/src/runtime/custom-actions.js +507 -0
  1479. package/packages/agent/src/runtime/default-knowledge.d.ts +20 -0
  1480. package/packages/agent/src/runtime/default-knowledge.d.ts.map +1 -0
  1481. package/packages/agent/src/runtime/default-knowledge.js +256 -0
  1482. package/packages/agent/src/runtime/discord-local-plugin.d.ts +86 -0
  1483. package/packages/agent/src/runtime/discord-local-plugin.d.ts.map +1 -0
  1484. package/packages/agent/src/runtime/discord-local-plugin.js +1116 -0
  1485. package/packages/agent/src/runtime/eliza-plugin.d.ts +16 -0
  1486. package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -0
  1487. package/packages/agent/src/runtime/eliza-plugin.js +237 -0
  1488. package/packages/agent/src/runtime/eliza.d.ts +91 -0
  1489. package/packages/agent/src/runtime/eliza.d.ts.map +1 -0
  1490. package/packages/agent/src/runtime/eliza.js +3524 -0
  1491. package/packages/agent/src/runtime/embedding-presets.d.ts +19 -0
  1492. package/packages/agent/src/runtime/embedding-presets.d.ts.map +1 -0
  1493. package/packages/agent/src/runtime/embedding-presets.js +60 -0
  1494. package/packages/agent/src/runtime/first-time-setup.d.ts +46 -0
  1495. package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -0
  1496. package/packages/agent/src/runtime/first-time-setup.js +687 -0
  1497. package/packages/agent/src/runtime/native-runtime-features.d.ts +4 -0
  1498. package/packages/agent/src/runtime/native-runtime-features.d.ts.map +1 -0
  1499. package/packages/agent/src/runtime/native-runtime-features.js +10 -0
  1500. package/packages/agent/src/runtime/onboarding-names.d.ts +11 -0
  1501. package/packages/agent/src/runtime/onboarding-names.d.ts.map +1 -0
  1502. package/packages/agent/src/runtime/onboarding-names.js +81 -0
  1503. package/packages/agent/src/runtime/operations/classifier.d.ts +36 -0
  1504. package/packages/agent/src/runtime/operations/classifier.d.ts.map +1 -0
  1505. package/packages/agent/src/runtime/operations/classifier.js +72 -0
  1506. package/packages/agent/src/runtime/operations/cold-strategy.d.ts +19 -0
  1507. package/packages/agent/src/runtime/operations/cold-strategy.d.ts.map +1 -0
  1508. package/packages/agent/src/runtime/operations/cold-strategy.js +50 -0
  1509. package/packages/agent/src/runtime/operations/health-checks.d.ts +25 -0
  1510. package/packages/agent/src/runtime/operations/health-checks.d.ts.map +1 -0
  1511. package/packages/agent/src/runtime/operations/health-checks.js +186 -0
  1512. package/packages/agent/src/runtime/operations/health.d.ts +32 -0
  1513. package/packages/agent/src/runtime/operations/health.d.ts.map +1 -0
  1514. package/packages/agent/src/runtime/operations/health.js +139 -0
  1515. package/packages/agent/src/runtime/operations/index.d.ts +17 -0
  1516. package/packages/agent/src/runtime/operations/index.d.ts.map +1 -0
  1517. package/packages/agent/src/runtime/operations/index.js +15 -0
  1518. package/packages/agent/src/runtime/operations/manager.d.ts +70 -0
  1519. package/packages/agent/src/runtime/operations/manager.d.ts.map +1 -0
  1520. package/packages/agent/src/runtime/operations/manager.js +202 -0
  1521. package/packages/agent/src/runtime/operations/reload-hot.d.ts +43 -0
  1522. package/packages/agent/src/runtime/operations/reload-hot.d.ts.map +1 -0
  1523. package/packages/agent/src/runtime/operations/reload-hot.js +181 -0
  1524. package/packages/agent/src/runtime/operations/repository.d.ts +66 -0
  1525. package/packages/agent/src/runtime/operations/repository.d.ts.map +1 -0
  1526. package/packages/agent/src/runtime/operations/repository.js +319 -0
  1527. package/packages/agent/src/runtime/operations/types.d.ts +203 -0
  1528. package/packages/agent/src/runtime/operations/types.d.ts.map +1 -0
  1529. package/packages/agent/src/runtime/operations/types.js +18 -0
  1530. package/packages/agent/src/runtime/operations/vault-bridge.d.ts +81 -0
  1531. package/packages/agent/src/runtime/operations/vault-bridge.d.ts.map +1 -0
  1532. package/packages/agent/src/runtime/operations/vault-bridge.js +133 -0
  1533. package/packages/agent/src/runtime/owner-entity.d.ts +4 -0
  1534. package/packages/agent/src/runtime/owner-entity.d.ts.map +1 -0
  1535. package/packages/agent/src/runtime/owner-entity.js +30 -0
  1536. package/packages/agent/src/runtime/pglite-error-compat.d.ts +28 -0
  1537. package/packages/agent/src/runtime/pglite-error-compat.d.ts.map +1 -0
  1538. package/packages/agent/src/runtime/pglite-error-compat.js +54 -0
  1539. package/packages/agent/src/runtime/plugin-collector.d.ts +26 -0
  1540. package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -0
  1541. package/packages/agent/src/runtime/plugin-collector.js +457 -0
  1542. package/packages/agent/src/runtime/plugin-lifecycle.d.ts +44 -0
  1543. package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -0
  1544. package/packages/agent/src/runtime/plugin-lifecycle.js +578 -0
  1545. package/packages/agent/src/runtime/plugin-resolver.d.ts +32 -0
  1546. package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -0
  1547. package/packages/agent/src/runtime/plugin-resolver.js +972 -0
  1548. package/packages/agent/src/runtime/plugin-role-gating.d.ts +34 -0
  1549. package/packages/agent/src/runtime/plugin-role-gating.d.ts.map +1 -0
  1550. package/packages/agent/src/runtime/plugin-role-gating.js +267 -0
  1551. package/packages/agent/src/runtime/plugin-types.d.ts +65 -0
  1552. package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -0
  1553. package/packages/agent/src/runtime/plugin-types.js +329 -0
  1554. package/packages/agent/src/runtime/prompt-compaction.d.ts +80 -0
  1555. package/packages/agent/src/runtime/prompt-compaction.d.ts.map +1 -0
  1556. package/packages/agent/src/runtime/prompt-compaction.js +307 -0
  1557. package/packages/agent/src/runtime/prompt-optimization.d.ts +34 -0
  1558. package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -0
  1559. package/packages/agent/src/runtime/prompt-optimization.js +686 -0
  1560. package/packages/agent/src/runtime/release-plugin-policy.d.ts +20 -0
  1561. package/packages/agent/src/runtime/release-plugin-policy.d.ts.map +1 -0
  1562. package/packages/agent/src/runtime/release-plugin-policy.js +85 -0
  1563. package/packages/agent/src/runtime/restart.d.ts +21 -0
  1564. package/packages/agent/src/runtime/restart.d.ts.map +1 -0
  1565. package/packages/agent/src/runtime/restart.js +20 -0
  1566. package/packages/agent/src/runtime/roles/src/action.d.ts +11 -0
  1567. package/packages/agent/src/runtime/roles/src/action.d.ts.map +1 -0
  1568. package/packages/agent/src/runtime/roles/src/action.js +665 -0
  1569. package/packages/agent/src/runtime/roles/src/index.d.ts +24 -0
  1570. package/packages/agent/src/runtime/roles/src/index.d.ts.map +1 -0
  1571. package/packages/agent/src/runtime/roles/src/index.js +243 -0
  1572. package/packages/agent/src/runtime/roles/src/intent.d.ts +18 -0
  1573. package/packages/agent/src/runtime/roles/src/intent.d.ts.map +1 -0
  1574. package/packages/agent/src/runtime/roles/src/intent.js +293 -0
  1575. package/packages/agent/src/runtime/roles/src/provider.d.ts +7 -0
  1576. package/packages/agent/src/runtime/roles/src/provider.d.ts.map +1 -0
  1577. package/packages/agent/src/runtime/roles/src/provider.js +133 -0
  1578. package/packages/agent/src/runtime/roles/src/types.d.ts +3 -0
  1579. package/packages/agent/src/runtime/roles/src/types.d.ts.map +1 -0
  1580. package/packages/agent/src/runtime/roles/src/types.js +1 -0
  1581. package/packages/agent/src/runtime/roles/src/utils.d.ts +2 -0
  1582. package/packages/agent/src/runtime/roles/src/utils.d.ts.map +1 -0
  1583. package/packages/agent/src/runtime/roles/src/utils.js +1 -0
  1584. package/packages/agent/src/runtime/roles.d.ts +3 -0
  1585. package/packages/agent/src/runtime/roles.d.ts.map +1 -0
  1586. package/packages/agent/src/runtime/roles.js +5 -0
  1587. package/packages/agent/src/runtime/trajectory-internals.d.ts +246 -0
  1588. package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -0
  1589. package/packages/agent/src/runtime/trajectory-internals.js +1318 -0
  1590. package/packages/agent/src/runtime/trajectory-persistence.d.ts +15 -0
  1591. package/packages/agent/src/runtime/trajectory-persistence.d.ts.map +1 -0
  1592. package/packages/agent/src/runtime/trajectory-persistence.js +29 -0
  1593. package/packages/agent/src/runtime/trajectory-query.d.ts +8 -0
  1594. package/packages/agent/src/runtime/trajectory-query.d.ts.map +1 -0
  1595. package/packages/agent/src/runtime/trajectory-query.js +27 -0
  1596. package/packages/agent/src/runtime/trajectory-storage.d.ts +91 -0
  1597. package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -0
  1598. package/packages/agent/src/runtime/trajectory-storage.js +1155 -0
  1599. package/packages/agent/src/runtime/vault-profile-resolver.d.ts +37 -0
  1600. package/packages/agent/src/runtime/vault-profile-resolver.d.ts.map +1 -0
  1601. package/packages/agent/src/runtime/vault-profile-resolver.js +79 -0
  1602. package/packages/agent/src/runtime/version.d.ts +2 -0
  1603. package/packages/agent/src/runtime/version.d.ts.map +1 -0
  1604. package/packages/agent/src/runtime/version.js +5 -0
  1605. package/packages/agent/src/runtime/web-search-tools.d.ts +22 -0
  1606. package/packages/agent/src/runtime/web-search-tools.d.ts.map +1 -0
  1607. package/packages/agent/src/runtime/web-search-tools.js +149 -0
  1608. package/packages/agent/src/security/access.d.ts +17 -0
  1609. package/packages/agent/src/security/access.d.ts.map +1 -0
  1610. package/packages/agent/src/security/access.js +129 -0
  1611. package/packages/agent/src/security/audit-log.d.ts +47 -0
  1612. package/packages/agent/src/security/audit-log.d.ts.map +1 -0
  1613. package/packages/agent/src/security/audit-log.js +161 -0
  1614. package/packages/agent/src/security/index.d.ts +4 -0
  1615. package/packages/agent/src/security/index.d.ts.map +1 -0
  1616. package/packages/agent/src/security/index.js +3 -0
  1617. package/packages/agent/src/security/network-policy.d.ts +6 -0
  1618. package/packages/agent/src/security/network-policy.d.ts.map +1 -0
  1619. package/packages/agent/src/security/network-policy.js +85 -0
  1620. package/packages/agent/src/services/agent-export.d.ts +100 -0
  1621. package/packages/agent/src/services/agent-export.d.ts.map +1 -0
  1622. package/packages/agent/src/services/agent-export.js +729 -0
  1623. package/packages/agent/src/services/app-manager.d.ts +108 -0
  1624. package/packages/agent/src/services/app-manager.d.ts.map +1 -0
  1625. package/packages/agent/src/services/app-manager.js +1623 -0
  1626. package/packages/agent/src/services/app-package-modules.d.ts +22 -0
  1627. package/packages/agent/src/services/app-package-modules.d.ts.map +1 -0
  1628. package/packages/agent/src/services/app-package-modules.js +381 -0
  1629. package/packages/agent/src/services/app-run-store.d.ts +6 -0
  1630. package/packages/agent/src/services/app-run-store.d.ts.map +1 -0
  1631. package/packages/agent/src/services/app-run-store.js +469 -0
  1632. package/packages/agent/src/services/app-session-gate.d.ts +15 -0
  1633. package/packages/agent/src/services/app-session-gate.d.ts.map +1 -0
  1634. package/packages/agent/src/services/app-session-gate.js +71 -0
  1635. package/packages/agent/src/services/browser-capture.d.ts +41 -0
  1636. package/packages/agent/src/services/browser-capture.d.ts.map +1 -0
  1637. package/packages/agent/src/services/browser-capture.js +173 -0
  1638. package/packages/agent/src/services/browser-workspace-desktop.d.ts +22 -0
  1639. package/packages/agent/src/services/browser-workspace-desktop.d.ts.map +1 -0
  1640. package/packages/agent/src/services/browser-workspace-desktop.js +1490 -0
  1641. package/packages/agent/src/services/browser-workspace-elements.d.ts +42 -0
  1642. package/packages/agent/src/services/browser-workspace-elements.d.ts.map +1 -0
  1643. package/packages/agent/src/services/browser-workspace-elements.js +508 -0
  1644. package/packages/agent/src/services/browser-workspace-forms.d.ts +19 -0
  1645. package/packages/agent/src/services/browser-workspace-forms.d.ts.map +1 -0
  1646. package/packages/agent/src/services/browser-workspace-forms.js +245 -0
  1647. package/packages/agent/src/services/browser-workspace-helpers.d.ts +20 -0
  1648. package/packages/agent/src/services/browser-workspace-helpers.d.ts.map +1 -0
  1649. package/packages/agent/src/services/browser-workspace-helpers.js +121 -0
  1650. package/packages/agent/src/services/browser-workspace-jsdom.d.ts +16 -0
  1651. package/packages/agent/src/services/browser-workspace-jsdom.d.ts.map +1 -0
  1652. package/packages/agent/src/services/browser-workspace-jsdom.js +223 -0
  1653. package/packages/agent/src/services/browser-workspace-network.d.ts +7 -0
  1654. package/packages/agent/src/services/browser-workspace-network.d.ts.map +1 -0
  1655. package/packages/agent/src/services/browser-workspace-network.js +137 -0
  1656. package/packages/agent/src/services/browser-workspace-snapshots.d.ts +14 -0
  1657. package/packages/agent/src/services/browser-workspace-snapshots.d.ts.map +1 -0
  1658. package/packages/agent/src/services/browser-workspace-snapshots.js +144 -0
  1659. package/packages/agent/src/services/browser-workspace-state.d.ts +22 -0
  1660. package/packages/agent/src/services/browser-workspace-state.d.ts.map +1 -0
  1661. package/packages/agent/src/services/browser-workspace-state.js +129 -0
  1662. package/packages/agent/src/services/browser-workspace-types.d.ts +279 -0
  1663. package/packages/agent/src/services/browser-workspace-types.d.ts.map +1 -0
  1664. package/packages/agent/src/services/browser-workspace-types.js +1 -0
  1665. package/packages/agent/src/services/browser-workspace-web.d.ts +8 -0
  1666. package/packages/agent/src/services/browser-workspace-web.d.ts.map +1 -0
  1667. package/packages/agent/src/services/browser-workspace-web.js +1152 -0
  1668. package/packages/agent/src/services/browser-workspace.d.ts +36 -0
  1669. package/packages/agent/src/services/browser-workspace.d.ts.map +1 -0
  1670. package/packages/agent/src/services/browser-workspace.js +639 -0
  1671. package/packages/agent/src/services/character-history.d.ts +69 -0
  1672. package/packages/agent/src/services/character-history.d.ts.map +1 -0
  1673. package/packages/agent/src/services/character-history.js +280 -0
  1674. package/packages/agent/src/services/character-persistence.d.ts +25 -0
  1675. package/packages/agent/src/services/character-persistence.d.ts.map +1 -0
  1676. package/packages/agent/src/services/character-persistence.js +167 -0
  1677. package/packages/agent/src/services/client-chat-sender.d.ts +19 -0
  1678. package/packages/agent/src/services/client-chat-sender.d.ts.map +1 -0
  1679. package/packages/agent/src/services/client-chat-sender.js +88 -0
  1680. package/packages/agent/src/services/coding-agent-context.d.ts +310 -0
  1681. package/packages/agent/src/services/coding-agent-context.d.ts.map +1 -0
  1682. package/packages/agent/src/services/coding-agent-context.js +281 -0
  1683. package/packages/agent/src/services/coding-task-executor.d.ts +14 -0
  1684. package/packages/agent/src/services/coding-task-executor.d.ts.map +1 -0
  1685. package/packages/agent/src/services/coding-task-executor.js +109 -0
  1686. package/packages/agent/src/services/config-plugin-manager.d.ts +6 -0
  1687. package/packages/agent/src/services/config-plugin-manager.d.ts.map +1 -0
  1688. package/packages/agent/src/services/config-plugin-manager.js +53 -0
  1689. package/packages/agent/src/services/connector-setup-service.d.ts +48 -0
  1690. package/packages/agent/src/services/connector-setup-service.d.ts.map +1 -0
  1691. package/packages/agent/src/services/connector-setup-service.js +60 -0
  1692. package/packages/agent/src/services/conversation-proximity.d.ts +27 -0
  1693. package/packages/agent/src/services/conversation-proximity.d.ts.map +1 -0
  1694. package/packages/agent/src/services/conversation-proximity.js +124 -0
  1695. package/packages/agent/src/services/escalation.d.ts +35 -0
  1696. package/packages/agent/src/services/escalation.d.ts.map +1 -0
  1697. package/packages/agent/src/services/escalation.js +376 -0
  1698. package/packages/agent/src/services/evm-signing-capability.d.ts +38 -0
  1699. package/packages/agent/src/services/evm-signing-capability.d.ts.map +1 -0
  1700. package/packages/agent/src/services/evm-signing-capability.js +60 -0
  1701. package/packages/agent/src/services/executor-registry.d.ts +4 -0
  1702. package/packages/agent/src/services/executor-registry.d.ts.map +1 -0
  1703. package/packages/agent/src/services/executor-registry.js +10 -0
  1704. package/packages/agent/src/services/hosted-tools.d.ts +70 -0
  1705. package/packages/agent/src/services/hosted-tools.d.ts.map +1 -0
  1706. package/packages/agent/src/services/hosted-tools.js +87 -0
  1707. package/packages/agent/src/services/index.d.ts +28 -0
  1708. package/packages/agent/src/services/index.d.ts.map +1 -0
  1709. package/packages/agent/src/services/index.js +34 -0
  1710. package/packages/agent/src/services/launchpads/image-generator.d.ts +22 -0
  1711. package/packages/agent/src/services/launchpads/image-generator.d.ts.map +1 -0
  1712. package/packages/agent/src/services/launchpads/image-generator.js +46 -0
  1713. package/packages/agent/src/services/launchpads/launchpad-engine.d.ts +32 -0
  1714. package/packages/agent/src/services/launchpads/launchpad-engine.d.ts.map +1 -0
  1715. package/packages/agent/src/services/launchpads/launchpad-engine.js +191 -0
  1716. package/packages/agent/src/services/launchpads/launchpad-types.d.ts +116 -0
  1717. package/packages/agent/src/services/launchpads/launchpad-types.d.ts.map +1 -0
  1718. package/packages/agent/src/services/launchpads/launchpad-types.js +19 -0
  1719. package/packages/agent/src/services/launchpads/metadata-generator.d.ts +24 -0
  1720. package/packages/agent/src/services/launchpads/metadata-generator.d.ts.map +1 -0
  1721. package/packages/agent/src/services/launchpads/metadata-generator.js +96 -0
  1722. package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts +25 -0
  1723. package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts.map +1 -0
  1724. package/packages/agent/src/services/launchpads/profiles/flap-sh.js +80 -0
  1725. package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts +11 -0
  1726. package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts.map +1 -0
  1727. package/packages/agent/src/services/launchpads/profiles/four-meme.js +70 -0
  1728. package/packages/agent/src/services/mcp-marketplace.d.ts +89 -0
  1729. package/packages/agent/src/services/mcp-marketplace.d.ts.map +1 -0
  1730. package/packages/agent/src/services/mcp-marketplace.js +200 -0
  1731. package/packages/agent/src/services/overlay-app-presence.d.ts +9 -0
  1732. package/packages/agent/src/services/overlay-app-presence.d.ts.map +1 -0
  1733. package/packages/agent/src/services/overlay-app-presence.js +18 -0
  1734. package/packages/agent/src/services/owner-name.d.ts +4 -0
  1735. package/packages/agent/src/services/owner-name.d.ts.map +1 -0
  1736. package/packages/agent/src/services/owner-name.js +46 -0
  1737. package/packages/agent/src/services/plugin-manager-types.d.ts +114 -0
  1738. package/packages/agent/src/services/plugin-manager-types.d.ts.map +1 -0
  1739. package/packages/agent/src/services/plugin-manager-types.js +18 -0
  1740. package/packages/agent/src/services/registry-client-app-meta.d.ts +6 -0
  1741. package/packages/agent/src/services/registry-client-app-meta.d.ts.map +1 -0
  1742. package/packages/agent/src/services/registry-client-app-meta.js +165 -0
  1743. package/packages/agent/src/services/registry-client-endpoints.d.ts +7 -0
  1744. package/packages/agent/src/services/registry-client-endpoints.d.ts.map +1 -0
  1745. package/packages/agent/src/services/registry-client-endpoints.js +190 -0
  1746. package/packages/agent/src/services/registry-client-local.d.ts +4 -0
  1747. package/packages/agent/src/services/registry-client-local.d.ts.map +1 -0
  1748. package/packages/agent/src/services/registry-client-local.js +538 -0
  1749. package/packages/agent/src/services/registry-client-network.d.ts +9 -0
  1750. package/packages/agent/src/services/registry-client-network.d.ts.map +1 -0
  1751. package/packages/agent/src/services/registry-client-network.js +120 -0
  1752. package/packages/agent/src/services/registry-client-queries.d.ts +26 -0
  1753. package/packages/agent/src/services/registry-client-queries.d.ts.map +1 -0
  1754. package/packages/agent/src/services/registry-client-queries.js +194 -0
  1755. package/packages/agent/src/services/registry-client-types.d.ts +92 -0
  1756. package/packages/agent/src/services/registry-client-types.d.ts.map +1 -0
  1757. package/packages/agent/src/services/registry-client-types.js +1 -0
  1758. package/packages/agent/src/services/registry-client.d.ts +39 -0
  1759. package/packages/agent/src/services/registry-client.d.ts.map +1 -0
  1760. package/packages/agent/src/services/registry-client.js +332 -0
  1761. package/packages/agent/src/services/relationships-graph.d.ts +240 -0
  1762. package/packages/agent/src/services/relationships-graph.d.ts.map +1 -0
  1763. package/packages/agent/src/services/relationships-graph.js +1642 -0
  1764. package/packages/agent/src/services/remote-signing-service.d.ts +58 -0
  1765. package/packages/agent/src/services/remote-signing-service.d.ts.map +1 -0
  1766. package/packages/agent/src/services/remote-signing-service.js +185 -0
  1767. package/packages/agent/src/services/research-task-executor.d.ts +14 -0
  1768. package/packages/agent/src/services/research-task-executor.d.ts.map +1 -0
  1769. package/packages/agent/src/services/research-task-executor.js +138 -0
  1770. package/packages/agent/src/services/sandbox-engine.d.ts +96 -0
  1771. package/packages/agent/src/services/sandbox-engine.d.ts.map +1 -0
  1772. package/packages/agent/src/services/sandbox-engine.js +604 -0
  1773. package/packages/agent/src/services/sandbox-manager.d.ts +106 -0
  1774. package/packages/agent/src/services/sandbox-manager.d.ts.map +1 -0
  1775. package/packages/agent/src/services/sandbox-manager.js +380 -0
  1776. package/packages/agent/src/services/self-updater.d.ts +21 -0
  1777. package/packages/agent/src/services/self-updater.d.ts.map +1 -0
  1778. package/packages/agent/src/services/self-updater.js +162 -0
  1779. package/packages/agent/src/services/send-handler-availability.d.ts +5 -0
  1780. package/packages/agent/src/services/send-handler-availability.d.ts.map +1 -0
  1781. package/packages/agent/src/services/send-handler-availability.js +20 -0
  1782. package/packages/agent/src/services/signal-pairing.d.ts +73 -0
  1783. package/packages/agent/src/services/signal-pairing.d.ts.map +1 -0
  1784. package/packages/agent/src/services/signal-pairing.js +514 -0
  1785. package/packages/agent/src/services/signing-policy.d.ts +44 -0
  1786. package/packages/agent/src/services/signing-policy.d.ts.map +1 -0
  1787. package/packages/agent/src/services/signing-policy.js +165 -0
  1788. package/packages/agent/src/services/skill-catalog-client.d.ts +47 -0
  1789. package/packages/agent/src/services/skill-catalog-client.d.ts.map +1 -0
  1790. package/packages/agent/src/services/skill-catalog-client.js +130 -0
  1791. package/packages/agent/src/services/skill-marketplace.d.ts +42 -0
  1792. package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -0
  1793. package/packages/agent/src/services/skill-marketplace.js +693 -0
  1794. package/packages/agent/src/services/stream-manager.d.ts +121 -0
  1795. package/packages/agent/src/services/stream-manager.d.ts.map +1 -0
  1796. package/packages/agent/src/services/stream-manager.js +609 -0
  1797. package/packages/agent/src/services/task-executor.d.ts +47 -0
  1798. package/packages/agent/src/services/task-executor.d.ts.map +1 -0
  1799. package/packages/agent/src/services/task-executor.js +31 -0
  1800. package/packages/agent/src/services/telegram-account-auth.d.ts +99 -0
  1801. package/packages/agent/src/services/telegram-account-auth.d.ts.map +1 -0
  1802. package/packages/agent/src/services/telegram-account-auth.js +609 -0
  1803. package/packages/agent/src/services/tts-stream-bridge.d.ts +83 -0
  1804. package/packages/agent/src/services/tts-stream-bridge.d.ts.map +1 -0
  1805. package/packages/agent/src/services/tts-stream-bridge.js +360 -0
  1806. package/packages/agent/src/services/update-checker.d.ts +29 -0
  1807. package/packages/agent/src/services/update-checker.d.ts.map +1 -0
  1808. package/packages/agent/src/services/update-checker.js +134 -0
  1809. package/packages/agent/src/services/version-compat.d.ts +99 -0
  1810. package/packages/agent/src/services/version-compat.d.ts.map +1 -0
  1811. package/packages/agent/src/services/version-compat.js +203 -0
  1812. package/packages/agent/src/services/whatsapp-pairing.d.ts +41 -0
  1813. package/packages/agent/src/services/whatsapp-pairing.d.ts.map +1 -0
  1814. package/packages/agent/src/services/whatsapp-pairing.js +209 -0
  1815. package/packages/agent/src/shared/ui-catalog-prompt.d.ts +52 -0
  1816. package/packages/agent/src/shared/ui-catalog-prompt.d.ts.map +1 -0
  1817. package/packages/agent/src/shared/ui-catalog-prompt.js +1028 -0
  1818. package/packages/agent/src/test-support/index.d.ts +4 -0
  1819. package/packages/agent/src/test-support/index.d.ts.map +1 -0
  1820. package/packages/agent/src/test-support/index.js +3 -0
  1821. package/packages/agent/src/test-support/process-helpers.d.ts +13 -0
  1822. package/packages/agent/src/test-support/process-helpers.d.ts.map +1 -0
  1823. package/packages/agent/src/test-support/process-helpers.js +23 -0
  1824. package/packages/agent/src/test-support/route-test-helpers.d.ts +37 -0
  1825. package/packages/agent/src/test-support/route-test-helpers.d.ts.map +1 -0
  1826. package/packages/agent/src/test-support/route-test-helpers.js +54 -0
  1827. package/packages/agent/src/test-support/test-helpers.d.ts +77 -0
  1828. package/packages/agent/src/test-support/test-helpers.d.ts.map +1 -0
  1829. package/packages/agent/src/test-support/test-helpers.js +217 -0
  1830. package/packages/agent/src/test-utils/sqlite-compat.d.ts +23 -0
  1831. package/packages/agent/src/test-utils/sqlite-compat.d.ts.map +1 -0
  1832. package/packages/agent/src/test-utils/sqlite-compat.js +214 -0
  1833. package/packages/agent/src/triggers/action.d.ts +4 -0
  1834. package/packages/agent/src/triggers/action.d.ts.map +1 -0
  1835. package/packages/agent/src/triggers/action.js +336 -0
  1836. package/packages/agent/src/triggers/delete-trigger.d.ts +10 -0
  1837. package/packages/agent/src/triggers/delete-trigger.d.ts.map +1 -0
  1838. package/packages/agent/src/triggers/delete-trigger.js +158 -0
  1839. package/packages/agent/src/triggers/run-trigger.d.ts +11 -0
  1840. package/packages/agent/src/triggers/run-trigger.d.ts.map +1 -0
  1841. package/packages/agent/src/triggers/run-trigger.js +142 -0
  1842. package/packages/agent/src/triggers/runtime.d.ts +30 -0
  1843. package/packages/agent/src/triggers/runtime.d.ts.map +1 -0
  1844. package/packages/agent/src/triggers/runtime.js +530 -0
  1845. package/packages/agent/src/triggers/scheduling.d.ts +78 -0
  1846. package/packages/agent/src/triggers/scheduling.d.ts.map +1 -0
  1847. package/packages/agent/src/triggers/scheduling.js +433 -0
  1848. package/packages/agent/src/triggers/types.d.ts +96 -0
  1849. package/packages/agent/src/triggers/types.d.ts.map +1 -0
  1850. package/packages/agent/src/triggers/types.js +1 -0
  1851. package/packages/agent/src/triggers/update-trigger.d.ts +10 -0
  1852. package/packages/agent/src/triggers/update-trigger.d.ts.map +1 -0
  1853. package/packages/agent/src/triggers/update-trigger.js +309 -0
  1854. package/packages/agent/src/types/agent-skills.d.ts +19 -0
  1855. package/packages/agent/src/types/agent-skills.d.ts.map +1 -0
  1856. package/packages/agent/src/types/agent-skills.js +7 -0
  1857. package/packages/agent/src/types/config-like.d.ts +17 -0
  1858. package/packages/agent/src/types/config-like.d.ts.map +1 -0
  1859. package/packages/agent/src/types/config-like.js +7 -0
  1860. package/packages/agent/src/types/index.d.ts +4 -0
  1861. package/packages/agent/src/types/index.d.ts.map +1 -0
  1862. package/packages/agent/src/types/index.js +3 -0
  1863. package/packages/agent/src/types/trajectory.d.ts +147 -0
  1864. package/packages/agent/src/types/trajectory.d.ts.map +1 -0
  1865. package/packages/agent/src/types/trajectory.js +8 -0
  1866. package/packages/agent/src/utils/atomic-json.d.ts +37 -0
  1867. package/packages/agent/src/utils/atomic-json.d.ts.map +1 -0
  1868. package/packages/agent/src/utils/atomic-json.js +98 -0
  1869. package/packages/agent/src/utils/exec-safety.d.ts +2 -0
  1870. package/packages/agent/src/utils/exec-safety.d.ts.map +1 -0
  1871. package/packages/agent/src/utils/exec-safety.js +21 -0
  1872. package/packages/agent/src/utils/number-parsing.d.ts +26 -0
  1873. package/packages/agent/src/utils/number-parsing.d.ts.map +1 -0
  1874. package/packages/agent/src/utils/number-parsing.js +51 -0
  1875. package/packages/agent/src/version-resolver.d.ts +2 -0
  1876. package/packages/agent/src/version-resolver.d.ts.map +1 -0
  1877. package/packages/agent/src/version-resolver.js +50 -0
  1878. package/packages/app-core/src/api/automation-node-contributors.d.ts +14 -0
  1879. package/packages/app-core/src/api/automation-node-contributors.d.ts.map +1 -0
  1880. package/packages/app-core/src/api/automation-node-contributors.js +14 -0
  1881. package/packages/app-core/src/api/client-agent.d.ts +628 -0
  1882. package/packages/app-core/src/api/client-agent.d.ts.map +1 -0
  1883. package/packages/app-core/src/api/client-agent.js +1442 -0
  1884. package/packages/app-core/src/api/client-automations.d.ts +8 -0
  1885. package/packages/app-core/src/api/client-automations.d.ts.map +1 -0
  1886. package/packages/app-core/src/api/client-automations.js +7 -0
  1887. package/packages/app-core/src/api/client-base.d.ts +82 -0
  1888. package/packages/app-core/src/api/client-base.d.ts.map +1 -0
  1889. package/packages/app-core/src/api/client-base.js +738 -0
  1890. package/packages/app-core/src/api/client-browser-workspace.d.ts +25 -0
  1891. package/packages/app-core/src/api/client-browser-workspace.d.ts.map +1 -0
  1892. package/packages/app-core/src/api/client-browser-workspace.js +98 -0
  1893. package/packages/app-core/src/api/client-chat.d.ts +355 -0
  1894. package/packages/app-core/src/api/client-chat.d.ts.map +1 -0
  1895. package/packages/app-core/src/api/client-chat.js +582 -0
  1896. package/packages/app-core/src/api/client-cloud.d.ts +286 -0
  1897. package/packages/app-core/src/api/client-cloud.d.ts.map +1 -0
  1898. package/packages/app-core/src/api/client-cloud.js +410 -0
  1899. package/packages/app-core/src/api/client-computeruse.d.ts +32 -0
  1900. package/packages/app-core/src/api/client-computeruse.d.ts.map +1 -0
  1901. package/packages/app-core/src/api/client-computeruse.js +16 -0
  1902. package/packages/app-core/src/api/client-imessage.d.ts +68 -0
  1903. package/packages/app-core/src/api/client-imessage.d.ts.map +1 -0
  1904. package/packages/app-core/src/api/client-imessage.js +74 -0
  1905. package/packages/app-core/src/api/client-local-inference.d.ts +62 -0
  1906. package/packages/app-core/src/api/client-local-inference.d.ts.map +1 -0
  1907. package/packages/app-core/src/api/client-local-inference.js +87 -0
  1908. package/packages/app-core/src/api/client-n8n.d.ts +27 -0
  1909. package/packages/app-core/src/api/client-n8n.d.ts.map +1 -0
  1910. package/packages/app-core/src/api/client-n8n.js +61 -0
  1911. package/packages/app-core/src/api/client-skills.d.ts +475 -0
  1912. package/packages/app-core/src/api/client-skills.d.ts.map +1 -0
  1913. package/packages/app-core/src/api/client-skills.js +608 -0
  1914. package/packages/app-core/src/api/client-types-babylon.d.ts +254 -0
  1915. package/packages/app-core/src/api/client-types-babylon.d.ts.map +1 -0
  1916. package/packages/app-core/src/api/client-types-babylon.js +2 -0
  1917. package/packages/app-core/src/api/client-types-character.d.ts +39 -0
  1918. package/packages/app-core/src/api/client-types-character.d.ts.map +1 -0
  1919. package/packages/app-core/src/api/client-types-character.js +1 -0
  1920. package/packages/app-core/src/api/client-types-chat.d.ts +428 -0
  1921. package/packages/app-core/src/api/client-types-chat.d.ts.map +1 -0
  1922. package/packages/app-core/src/api/client-types-chat.js +9 -0
  1923. package/packages/app-core/src/api/client-types-cloud.d.ts +805 -0
  1924. package/packages/app-core/src/api/client-types-cloud.d.ts.map +1 -0
  1925. package/packages/app-core/src/api/client-types-cloud.js +57 -0
  1926. package/packages/app-core/src/api/client-types-config.d.ts +587 -0
  1927. package/packages/app-core/src/api/client-types-config.d.ts.map +1 -0
  1928. package/packages/app-core/src/api/client-types-config.js +5 -0
  1929. package/packages/app-core/src/api/client-types-core.d.ts +337 -0
  1930. package/packages/app-core/src/api/client-types-core.d.ts.map +1 -0
  1931. package/packages/app-core/src/api/client-types-core.js +22 -0
  1932. package/packages/app-core/src/api/client-types-experience.d.ts +97 -0
  1933. package/packages/app-core/src/api/client-types-experience.d.ts.map +1 -0
  1934. package/packages/app-core/src/api/client-types-experience.js +1 -0
  1935. package/packages/app-core/src/api/client-types-relationships.d.ts +181 -0
  1936. package/packages/app-core/src/api/client-types-relationships.d.ts.map +1 -0
  1937. package/packages/app-core/src/api/client-types-relationships.js +1 -0
  1938. package/packages/app-core/src/api/client-types-steward.d.ts +85 -0
  1939. package/packages/app-core/src/api/client-types-steward.d.ts.map +1 -0
  1940. package/packages/app-core/src/api/client-types-steward.js +9 -0
  1941. package/packages/app-core/src/api/client-types.d.ts +9 -0
  1942. package/packages/app-core/src/api/client-types.d.ts.map +1 -0
  1943. package/packages/app-core/src/api/client-types.js +12 -0
  1944. package/packages/app-core/src/api/client-vault.d.ts +53 -0
  1945. package/packages/app-core/src/api/client-vault.d.ts.map +1 -0
  1946. package/packages/app-core/src/api/client-vault.js +48 -0
  1947. package/packages/app-core/src/api/client-wallet.d.ts +130 -0
  1948. package/packages/app-core/src/api/client-wallet.d.ts.map +1 -0
  1949. package/packages/app-core/src/api/client-wallet.js +228 -0
  1950. package/packages/app-core/src/api/client.d.ts +37 -0
  1951. package/packages/app-core/src/api/client.d.ts.map +1 -0
  1952. package/packages/app-core/src/api/client.js +37 -0
  1953. package/packages/app-core/src/api/cloud-secrets.d.ts +23 -0
  1954. package/packages/app-core/src/api/cloud-secrets.d.ts.map +1 -0
  1955. package/packages/app-core/src/api/cloud-secrets.js +50 -0
  1956. package/packages/app-core/src/api/compat-route-shared.d.ts +29 -0
  1957. package/packages/app-core/src/api/compat-route-shared.d.ts.map +1 -0
  1958. package/packages/app-core/src/api/compat-route-shared.js +284 -0
  1959. package/packages/app-core/src/api/index.d.ts +2 -0
  1960. package/packages/app-core/src/api/index.d.ts.map +1 -0
  1961. package/packages/app-core/src/api/index.js +1 -0
  1962. package/packages/app-core/src/api/response.d.ts +12 -0
  1963. package/packages/app-core/src/api/response.d.ts.map +1 -0
  1964. package/packages/app-core/src/api/response.js +36 -0
  1965. package/packages/app-core/src/api/server-cloud-tts.d.ts +41 -0
  1966. package/packages/app-core/src/api/server-cloud-tts.d.ts.map +1 -0
  1967. package/packages/app-core/src/api/server-cloud-tts.js +471 -0
  1968. package/packages/app-core/src/bridge/electrobun-rpc.d.ts +57 -0
  1969. package/packages/app-core/src/bridge/electrobun-rpc.d.ts.map +1 -0
  1970. package/packages/app-core/src/bridge/electrobun-rpc.js +87 -0
  1971. package/packages/app-core/src/bridge/electrobun-runtime.d.ts +3 -0
  1972. package/packages/app-core/src/bridge/electrobun-runtime.d.ts.map +1 -0
  1973. package/packages/app-core/src/bridge/electrobun-runtime.js +34 -0
  1974. package/packages/app-core/src/bridge/native-plugins.d.ts +504 -0
  1975. package/packages/app-core/src/bridge/native-plugins.d.ts.map +1 -0
  1976. package/packages/app-core/src/bridge/native-plugins.js +67 -0
  1977. package/packages/app-core/src/chat/coding-agent-session-state.d.ts +16 -0
  1978. package/packages/app-core/src/chat/coding-agent-session-state.d.ts.map +1 -0
  1979. package/packages/app-core/src/chat/coding-agent-session-state.js +27 -0
  1980. package/packages/app-core/src/components/pages/browser-workspace-wallet.d.ts +80 -0
  1981. package/packages/app-core/src/components/pages/browser-workspace-wallet.d.ts.map +1 -0
  1982. package/packages/app-core/src/components/pages/browser-workspace-wallet.js +135 -0
  1983. package/packages/app-core/src/config/boot-config-store.d.ts +267 -0
  1984. package/packages/app-core/src/config/boot-config-store.d.ts.map +1 -0
  1985. package/packages/app-core/src/config/boot-config-store.js +143 -0
  1986. package/packages/app-core/src/config/boot-config.d.ts +6 -0
  1987. package/packages/app-core/src/config/boot-config.d.ts.map +1 -0
  1988. package/packages/app-core/src/config/boot-config.js +5 -0
  1989. package/packages/app-core/src/config/branding.d.ts +55 -0
  1990. package/packages/app-core/src/config/branding.d.ts.map +1 -0
  1991. package/packages/app-core/src/config/branding.js +23 -0
  1992. package/packages/app-core/src/navigation/index.d.ts +70 -0
  1993. package/packages/app-core/src/navigation/index.d.ts.map +1 -0
  1994. package/packages/app-core/src/navigation/index.js +442 -0
  1995. package/packages/app-core/src/registry/index.d.ts +7 -0
  1996. package/packages/app-core/src/registry/index.d.ts.map +1 -0
  1997. package/packages/app-core/src/registry/index.js +43 -0
  1998. package/packages/app-core/src/registry/legacy-adapter.d.ts +32 -0
  1999. package/packages/app-core/src/registry/legacy-adapter.d.ts.map +1 -0
  2000. package/packages/app-core/src/registry/legacy-adapter.js +101 -0
  2001. package/packages/app-core/src/registry/loader.d.ts +27 -0
  2002. package/packages/app-core/src/registry/loader.d.ts.map +1 -0
  2003. package/packages/app-core/src/registry/loader.js +111 -0
  2004. package/packages/app-core/src/registry/schema.d.ts +986 -0
  2005. package/packages/app-core/src/registry/schema.d.ts.map +1 -0
  2006. package/packages/app-core/src/registry/schema.js +250 -0
  2007. package/packages/app-core/src/services/account-pool.d.ts +98 -0
  2008. package/packages/app-core/src/services/account-pool.d.ts.map +1 -0
  2009. package/packages/app-core/src/services/account-pool.js +506 -0
  2010. package/packages/app-core/src/services/account-usage.d.ts +75 -0
  2011. package/packages/app-core/src/services/account-usage.d.ts.map +1 -0
  2012. package/packages/app-core/src/services/account-usage.js +179 -0
  2013. package/packages/app-core/src/services/local-inference/active-model.d.ts +59 -0
  2014. package/packages/app-core/src/services/local-inference/active-model.d.ts.map +1 -0
  2015. package/packages/app-core/src/services/local-inference/active-model.js +120 -0
  2016. package/packages/app-core/src/services/local-inference/device-bridge.d.ts +131 -0
  2017. package/packages/app-core/src/services/local-inference/device-bridge.d.ts.map +1 -0
  2018. package/packages/app-core/src/services/local-inference/device-bridge.js +748 -0
  2019. package/packages/app-core/src/services/local-inference/engine.d.ts +52 -0
  2020. package/packages/app-core/src/services/local-inference/engine.d.ts.map +1 -0
  2021. package/packages/app-core/src/services/local-inference/engine.js +138 -0
  2022. package/packages/app-core/src/services/local-inference/external-scanner.d.ts +17 -0
  2023. package/packages/app-core/src/services/local-inference/external-scanner.d.ts.map +1 -0
  2024. package/packages/app-core/src/services/local-inference/external-scanner.js +261 -0
  2025. package/packages/app-core/src/services/local-inference/handler-registry.d.ts +72 -0
  2026. package/packages/app-core/src/services/local-inference/handler-registry.d.ts.map +1 -0
  2027. package/packages/app-core/src/services/local-inference/handler-registry.js +160 -0
  2028. package/packages/app-core/src/services/local-inference/paths.d.ts +24 -0
  2029. package/packages/app-core/src/services/local-inference/paths.d.ts.map +1 -0
  2030. package/packages/app-core/src/services/local-inference/paths.js +41 -0
  2031. package/packages/app-core/src/services/local-inference/providers.d.ts +61 -0
  2032. package/packages/app-core/src/services/local-inference/providers.d.ts.map +1 -0
  2033. package/packages/app-core/src/services/local-inference/providers.js +277 -0
  2034. package/packages/app-core/src/services/local-inference/registry.d.ts +35 -0
  2035. package/packages/app-core/src/services/local-inference/registry.d.ts.map +1 -0
  2036. package/packages/app-core/src/services/local-inference/registry.js +108 -0
  2037. package/packages/app-core/src/services/local-inference/routing-preferences.d.ts +31 -0
  2038. package/packages/app-core/src/services/local-inference/routing-preferences.d.ts.map +1 -0
  2039. package/packages/app-core/src/services/local-inference/routing-preferences.js +72 -0
  2040. package/packages/app-core/src/services/local-inference/types.d.ts +121 -0
  2041. package/packages/app-core/src/services/local-inference/types.d.ts.map +1 -0
  2042. package/packages/app-core/src/services/local-inference/types.js +14 -0
  2043. package/packages/app-core/src/services/local-inference/verify.d.ts +39 -0
  2044. package/packages/app-core/src/services/local-inference/verify.d.ts.map +1 -0
  2045. package/packages/app-core/src/services/local-inference/verify.js +104 -0
  2046. package/packages/app-core/src/services/plugin-installer.d.ts +93 -0
  2047. package/packages/app-core/src/services/plugin-installer.d.ts.map +1 -0
  2048. package/packages/app-core/src/services/plugin-installer.js +628 -0
  2049. package/packages/app-core/src/services/vault-bootstrap.d.ts +31 -0
  2050. package/packages/app-core/src/services/vault-bootstrap.d.ts.map +1 -0
  2051. package/packages/app-core/src/services/vault-bootstrap.js +245 -0
  2052. package/packages/app-core/src/services/vault-mirror.d.ts +44 -0
  2053. package/packages/app-core/src/services/vault-mirror.d.ts.map +1 -0
  2054. package/packages/app-core/src/services/vault-mirror.js +80 -0
  2055. package/packages/app-core/src/state/action-notice.d.ts +7 -0
  2056. package/packages/app-core/src/state/action-notice.d.ts.map +1 -0
  2057. package/packages/app-core/src/state/action-notice.js +1 -0
  2058. package/packages/app-core/src/types/index.d.ts +658 -0
  2059. package/packages/app-core/src/types/index.d.ts.map +1 -0
  2060. package/packages/app-core/src/types/index.js +4 -0
  2061. package/packages/app-core/src/utils/assistant-text.d.ts +2 -0
  2062. package/packages/app-core/src/utils/assistant-text.d.ts.map +1 -0
  2063. package/packages/app-core/src/utils/assistant-text.js +167 -0
  2064. package/packages/app-core/src/utils/eliza-globals.d.ts +13 -0
  2065. package/packages/app-core/src/utils/eliza-globals.d.ts.map +1 -0
  2066. package/packages/app-core/src/utils/eliza-globals.js +48 -0
  2067. package/packages/app-core/src/utils/env.d.ts +31 -0
  2068. package/packages/app-core/src/utils/env.d.ts.map +1 -0
  2069. package/packages/app-core/src/utils/env.js +51 -0
  2070. package/packages/app-core/src/utils/serialise.d.ts +12 -0
  2071. package/packages/app-core/src/utils/serialise.d.ts.map +1 -0
  2072. package/packages/app-core/src/utils/serialise.js +21 -0
  2073. package/packages/app-core/src/utils/streaming-text.d.ts +9 -0
  2074. package/packages/app-core/src/utils/streaming-text.d.ts.map +1 -0
  2075. package/packages/app-core/src/utils/streaming-text.js +112 -0
  2076. package/packages/app-core/src/utils/tts-debug.d.ts +9 -0
  2077. package/packages/app-core/src/utils/tts-debug.d.ts.map +1 -0
  2078. package/packages/app-core/src/utils/tts-debug.js +69 -0
  2079. package/packages/shared/src/app-hero-art.d.ts +13 -0
  2080. package/packages/shared/src/app-hero-art.d.ts.map +1 -0
  2081. package/packages/shared/src/app-hero-art.js +357 -0
  2082. package/packages/shared/src/awareness/index.d.ts +2 -0
  2083. package/packages/shared/src/awareness/index.d.ts.map +1 -0
  2084. package/packages/shared/src/awareness/index.js +1 -0
  2085. package/packages/shared/src/awareness/registry.d.ts +27 -0
  2086. package/packages/shared/src/awareness/registry.d.ts.map +1 -0
  2087. package/packages/shared/src/awareness/registry.js +161 -0
  2088. package/packages/shared/src/config/types.agent-defaults.d.ts +383 -0
  2089. package/packages/shared/src/config/types.agent-defaults.d.ts.map +1 -0
  2090. package/packages/shared/src/config/types.agent-defaults.js +1 -0
  2091. package/packages/shared/src/config/types.agents.d.ts +114 -0
  2092. package/packages/shared/src/config/types.agents.d.ts.map +1 -0
  2093. package/packages/shared/src/config/types.agents.js +1 -0
  2094. package/packages/shared/src/config/types.d.ts +8 -0
  2095. package/packages/shared/src/config/types.d.ts.map +1 -0
  2096. package/packages/shared/src/config/types.eliza.d.ts +711 -0
  2097. package/packages/shared/src/config/types.eliza.d.ts.map +1 -0
  2098. package/packages/shared/src/config/types.eliza.js +1 -0
  2099. package/packages/shared/src/config/types.gateway.d.ts +216 -0
  2100. package/packages/shared/src/config/types.gateway.d.ts.map +1 -0
  2101. package/packages/shared/src/config/types.gateway.js +1 -0
  2102. package/packages/shared/src/config/types.hooks.d.ts +107 -0
  2103. package/packages/shared/src/config/types.hooks.d.ts.map +1 -0
  2104. package/packages/shared/src/config/types.hooks.js +1 -0
  2105. package/packages/shared/src/config/types.js +7 -0
  2106. package/packages/shared/src/config/types.messages.d.ts +176 -0
  2107. package/packages/shared/src/config/types.messages.d.ts.map +1 -0
  2108. package/packages/shared/src/config/types.messages.js +1 -0
  2109. package/packages/shared/src/config/types.tools.d.ts +400 -0
  2110. package/packages/shared/src/config/types.tools.d.ts.map +1 -0
  2111. package/packages/shared/src/config/types.tools.js +1 -0
  2112. package/packages/shared/src/connector-cred-types.d.ts +27 -0
  2113. package/packages/shared/src/connector-cred-types.d.ts.map +1 -0
  2114. package/packages/shared/src/connector-cred-types.js +63 -0
  2115. package/packages/shared/src/connectors.d.ts +13 -0
  2116. package/packages/shared/src/connectors.d.ts.map +1 -0
  2117. package/packages/shared/src/connectors.js +96 -0
  2118. package/packages/shared/src/contracts/apps.d.ts +259 -0
  2119. package/packages/shared/src/contracts/apps.d.ts.map +1 -0
  2120. package/packages/shared/src/contracts/apps.js +203 -0
  2121. package/packages/shared/src/contracts/awareness.d.ts +38 -0
  2122. package/packages/shared/src/contracts/awareness.d.ts.map +1 -0
  2123. package/packages/shared/src/contracts/awareness.js +7 -0
  2124. package/packages/shared/src/contracts/cloud-topology.d.ts +13 -0
  2125. package/packages/shared/src/contracts/cloud-topology.d.ts.map +1 -0
  2126. package/packages/shared/src/contracts/cloud-topology.js +71 -0
  2127. package/packages/shared/src/contracts/config.d.ts +146 -0
  2128. package/packages/shared/src/contracts/config.d.ts.map +1 -0
  2129. package/packages/shared/src/contracts/config.js +4 -0
  2130. package/packages/shared/src/contracts/content-pack.d.ts +131 -0
  2131. package/packages/shared/src/contracts/content-pack.d.ts.map +1 -0
  2132. package/packages/shared/src/contracts/content-pack.js +102 -0
  2133. package/packages/shared/src/contracts/drop.d.ts +20 -0
  2134. package/packages/shared/src/contracts/drop.d.ts.map +1 -0
  2135. package/packages/shared/src/contracts/drop.js +4 -0
  2136. package/packages/shared/src/contracts/inbox.d.ts +26 -0
  2137. package/packages/shared/src/contracts/inbox.d.ts.map +1 -0
  2138. package/packages/shared/src/contracts/inbox.js +1 -0
  2139. package/packages/shared/src/contracts/index.d.ts +15 -0
  2140. package/packages/shared/src/contracts/index.d.ts.map +1 -0
  2141. package/packages/shared/src/contracts/index.js +14 -0
  2142. package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts +9 -0
  2143. package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts.map +1 -0
  2144. package/packages/shared/src/contracts/lifeops-connector-degradation.js +13 -0
  2145. package/packages/shared/src/contracts/lifeops-extensions.d.ts +340 -0
  2146. package/packages/shared/src/contracts/lifeops-extensions.d.ts.map +1 -0
  2147. package/packages/shared/src/contracts/lifeops-extensions.js +36 -0
  2148. package/packages/shared/src/contracts/lifeops.d.ts +2729 -0
  2149. package/packages/shared/src/contracts/lifeops.d.ts.map +1 -0
  2150. package/packages/shared/src/contracts/lifeops.js +556 -0
  2151. package/packages/shared/src/contracts/onboarding.d.ts +408 -0
  2152. package/packages/shared/src/contracts/onboarding.d.ts.map +1 -0
  2153. package/packages/shared/src/contracts/onboarding.js +1021 -0
  2154. package/packages/shared/src/contracts/permissions.d.ts +38 -0
  2155. package/packages/shared/src/contracts/permissions.d.ts.map +1 -0
  2156. package/packages/shared/src/contracts/permissions.js +4 -0
  2157. package/packages/shared/src/contracts/scratchpad.d.ts +136 -0
  2158. package/packages/shared/src/contracts/scratchpad.d.ts.map +1 -0
  2159. package/packages/shared/src/contracts/scratchpad.js +90 -0
  2160. package/packages/shared/src/contracts/service-routing.d.ts +162 -0
  2161. package/packages/shared/src/contracts/service-routing.d.ts.map +1 -0
  2162. package/packages/shared/src/contracts/service-routing.js +392 -0
  2163. package/packages/shared/src/contracts/theme.d.ts +136 -0
  2164. package/packages/shared/src/contracts/theme.d.ts.map +1 -0
  2165. package/packages/shared/src/contracts/theme.js +133 -0
  2166. package/packages/shared/src/contracts/verification.d.ts +9 -0
  2167. package/packages/shared/src/contracts/verification.d.ts.map +1 -0
  2168. package/packages/shared/src/contracts/verification.js +4 -0
  2169. package/packages/shared/src/contracts/wallet.d.ts +615 -0
  2170. package/packages/shared/src/contracts/wallet.d.ts.map +1 -0
  2171. package/packages/shared/src/contracts/wallet.js +60 -0
  2172. package/packages/shared/src/dev-settings-banner-style.d.ts +14 -0
  2173. package/packages/shared/src/dev-settings-banner-style.d.ts.map +1 -0
  2174. package/packages/shared/src/dev-settings-banner-style.js +57 -0
  2175. package/packages/shared/src/dev-settings-table.d.ts +47 -0
  2176. package/packages/shared/src/dev-settings-table.d.ts.map +1 -0
  2177. package/packages/shared/src/dev-settings-table.js +188 -0
  2178. package/packages/shared/src/env-utils.d.ts +5 -0
  2179. package/packages/shared/src/env-utils.d.ts.map +1 -0
  2180. package/packages/shared/src/env-utils.impl.d.ts +2 -0
  2181. package/packages/shared/src/env-utils.impl.d.ts.map +1 -0
  2182. package/packages/shared/src/env-utils.impl.js +9 -0
  2183. package/packages/shared/src/env-utils.js +4 -0
  2184. package/packages/shared/src/format-error.d.ts +14 -0
  2185. package/packages/shared/src/format-error.d.ts.map +1 -0
  2186. package/packages/shared/src/format-error.js +17 -0
  2187. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +1091 -0
  2188. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
  2189. package/packages/shared/src/i18n/generated/validation-keyword-data.js +1094 -0
  2190. package/packages/shared/src/i18n/keyword-matching.d.ts +23 -0
  2191. package/packages/shared/src/i18n/keyword-matching.d.ts.map +1 -0
  2192. package/packages/shared/src/i18n/keyword-matching.js +112 -0
  2193. package/packages/shared/src/i18n/validation-keywords.d.ts +13 -0
  2194. package/packages/shared/src/i18n/validation-keywords.d.ts.map +1 -0
  2195. package/packages/shared/src/i18n/validation-keywords.js +12 -0
  2196. package/packages/shared/src/index.d.ts +27 -0
  2197. package/packages/shared/src/index.d.ts.map +1 -0
  2198. package/packages/shared/src/index.js +38 -0
  2199. package/packages/shared/src/onboarding-presets.characters.d.ts +22 -0
  2200. package/packages/shared/src/onboarding-presets.characters.d.ts.map +1 -0
  2201. package/packages/shared/src/onboarding-presets.characters.js +2616 -0
  2202. package/packages/shared/src/onboarding-presets.d.ts +40 -0
  2203. package/packages/shared/src/onboarding-presets.d.ts.map +1 -0
  2204. package/packages/shared/src/onboarding-presets.js +180 -0
  2205. package/packages/shared/src/onboarding-presets.shared.d.ts +2 -0
  2206. package/packages/shared/src/onboarding-presets.shared.d.ts.map +1 -0
  2207. package/packages/shared/src/onboarding-presets.shared.js +7 -0
  2208. package/packages/shared/src/recent-messages-state.d.ts +10 -0
  2209. package/packages/shared/src/recent-messages-state.d.ts.map +1 -0
  2210. package/packages/shared/src/recent-messages-state.js +11 -0
  2211. package/packages/shared/src/restart.d.ts +27 -0
  2212. package/packages/shared/src/restart.d.ts.map +1 -0
  2213. package/packages/shared/src/restart.js +28 -0
  2214. package/packages/shared/src/runtime-env.d.ts +84 -0
  2215. package/packages/shared/src/runtime-env.d.ts.map +1 -0
  2216. package/packages/shared/src/runtime-env.js +261 -0
  2217. package/packages/shared/src/settings-debug.d.ts +20 -0
  2218. package/packages/shared/src/settings-debug.d.ts.map +1 -0
  2219. package/packages/shared/src/settings-debug.js +114 -0
  2220. package/packages/shared/src/spoken-text.d.ts +2 -0
  2221. package/packages/shared/src/spoken-text.d.ts.map +1 -0
  2222. package/packages/shared/src/spoken-text.js +56 -0
  2223. package/packages/shared/src/themes/index.d.ts +7 -0
  2224. package/packages/shared/src/themes/index.d.ts.map +1 -0
  2225. package/packages/shared/src/themes/index.js +5 -0
  2226. package/packages/shared/src/themes/presets.d.ts +15 -0
  2227. package/packages/shared/src/themes/presets.d.ts.map +1 -0
  2228. package/packages/shared/src/themes/presets.js +788 -0
  2229. package/packages/shared/src/type-guards.d.ts +29 -0
  2230. package/packages/shared/src/type-guards.d.ts.map +1 -0
  2231. package/packages/shared/src/type-guards.js +43 -0
  2232. package/packages/shared/src/validation-keywords.d.ts +2 -0
  2233. package/packages/shared/src/validation-keywords.d.ts.map +1 -0
  2234. package/packages/shared/src/validation-keywords.js +1 -0
  2235. package/packages/skills/src/formatter.d.ts +44 -0
  2236. package/packages/skills/src/formatter.d.ts.map +1 -0
  2237. package/packages/skills/src/formatter.js +182 -0
  2238. package/packages/skills/src/frontmatter.d.ts +51 -0
  2239. package/packages/skills/src/frontmatter.d.ts.map +1 -0
  2240. package/packages/skills/src/frontmatter.js +155 -0
  2241. package/packages/skills/src/index.d.ts +29 -0
  2242. package/packages/skills/src/index.d.ts.map +1 -0
  2243. package/packages/skills/src/index.js +31 -0
  2244. package/packages/skills/src/loader.d.ts +33 -0
  2245. package/packages/skills/src/loader.d.ts.map +1 -0
  2246. package/packages/skills/src/loader.js +369 -0
  2247. package/packages/skills/src/resolver.d.ts +35 -0
  2248. package/packages/skills/src/resolver.d.ts.map +1 -0
  2249. package/packages/skills/src/resolver.js +143 -0
  2250. package/packages/skills/src/types.d.ts +238 -0
  2251. package/packages/skills/src/types.d.ts.map +1 -0
  2252. package/packages/skills/src/types.js +1 -0
  2253. package/packages/typescript/src/action-docs.d.ts +26 -0
  2254. package/packages/typescript/src/action-docs.d.ts.map +1 -0
  2255. package/packages/typescript/src/action-docs.js +119 -0
  2256. package/packages/typescript/src/actions.d.ts +29 -0
  2257. package/packages/typescript/src/actions.d.ts.map +1 -0
  2258. package/packages/typescript/src/actions.js +551 -0
  2259. package/packages/typescript/src/character-utils.d.ts +138 -0
  2260. package/packages/typescript/src/character-utils.d.ts.map +1 -0
  2261. package/packages/typescript/src/character-utils.js +271 -0
  2262. package/packages/typescript/src/character.d.ts +68 -0
  2263. package/packages/typescript/src/character.d.ts.map +1 -0
  2264. package/packages/typescript/src/character.js +155 -0
  2265. package/packages/typescript/src/connection.d.ts +45 -0
  2266. package/packages/typescript/src/connection.d.ts.map +1 -0
  2267. package/packages/typescript/src/connection.js +149 -0
  2268. package/packages/typescript/src/constants/index.d.ts +7 -0
  2269. package/packages/typescript/src/constants/index.d.ts.map +1 -0
  2270. package/packages/typescript/src/constants/index.js +6 -0
  2271. package/packages/typescript/src/constants/secrets.d.ts +99 -0
  2272. package/packages/typescript/src/constants/secrets.d.ts.map +1 -0
  2273. package/packages/typescript/src/constants/secrets.js +239 -0
  2274. package/packages/typescript/src/database/inMemoryAdapter.d.ts +285 -0
  2275. package/packages/typescript/src/database/inMemoryAdapter.d.ts.map +1 -0
  2276. package/packages/typescript/src/database/inMemoryAdapter.js +1171 -0
  2277. package/packages/typescript/src/database.d.ts +426 -0
  2278. package/packages/typescript/src/database.d.ts.map +1 -0
  2279. package/packages/typescript/src/database.js +24 -0
  2280. package/packages/typescript/src/entities.d.ts +11 -0
  2281. package/packages/typescript/src/entities.d.ts.map +1 -0
  2282. package/packages/typescript/src/entities.js +437 -0
  2283. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts +3 -0
  2284. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts.map +1 -0
  2285. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.js +142 -0
  2286. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts +3 -0
  2287. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts.map +1 -0
  2288. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.js +183 -0
  2289. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts +3 -0
  2290. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts.map +1 -0
  2291. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.js +148 -0
  2292. package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts +21 -0
  2293. package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts.map +1 -0
  2294. package/packages/typescript/src/features/advanced-capabilities/actions/index.js +20 -0
  2295. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts +3 -0
  2296. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts.map +1 -0
  2297. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.js +181 -0
  2298. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts +3 -0
  2299. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts.map +1 -0
  2300. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.js +121 -0
  2301. package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts +13 -0
  2302. package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts.map +1 -0
  2303. package/packages/typescript/src/features/advanced-capabilities/actions/roles.js +317 -0
  2304. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts +3 -0
  2305. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -0
  2306. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.js +138 -0
  2307. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts +3 -0
  2308. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts.map +1 -0
  2309. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.js +178 -0
  2310. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts +15 -0
  2311. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts.map +1 -0
  2312. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.js +476 -0
  2313. package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts +22 -0
  2314. package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts.map +1 -0
  2315. package/packages/typescript/src/features/advanced-capabilities/actions/settings.js +823 -0
  2316. package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts +3 -0
  2317. package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts.map +1 -0
  2318. package/packages/typescript/src/features/advanced-capabilities/actions/think.js +84 -0
  2319. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts +3 -0
  2320. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts.map +1 -0
  2321. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.js +134 -0
  2322. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts +3 -0
  2323. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts.map +1 -0
  2324. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.js +193 -0
  2325. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts +3 -0
  2326. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts.map +1 -0
  2327. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.js +219 -0
  2328. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts +43 -0
  2329. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts.map +1 -0
  2330. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.js +372 -0
  2331. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
  2332. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
  2333. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.js +150 -0
  2334. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
  2335. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
  2336. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.js +136 -0
  2337. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
  2338. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
  2339. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.js +84 -0
  2340. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
  2341. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
  2342. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.js +120 -0
  2343. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
  2344. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
  2345. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.js +202 -0
  2346. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
  2347. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
  2348. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.js +138 -0
  2349. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
  2350. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
  2351. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +102 -0
  2352. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts +4 -0
  2353. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts.map +1 -0
  2354. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.js +134 -0
  2355. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
  2356. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
  2357. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.js +139 -0
  2358. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
  2359. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
  2360. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.js +138 -0
  2361. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts +41 -0
  2362. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts.map +1 -0
  2363. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.js +82 -0
  2364. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
  2365. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
  2366. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
  2367. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
  2368. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
  2369. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
  2370. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
  2371. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
  2372. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.js +357 -0
  2373. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
  2374. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
  2375. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
  2376. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
  2377. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
  2378. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
  2379. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts +15 -0
  2380. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
  2381. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.js +164 -0
  2382. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts +92 -0
  2383. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts.map +1 -0
  2384. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.js +4 -0
  2385. package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts +11 -0
  2386. package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts.map +1 -0
  2387. package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.js +49 -0
  2388. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts +23 -0
  2389. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts.map +1 -0
  2390. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.js +608 -0
  2391. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts +210 -0
  2392. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts.map +1 -0
  2393. package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.js +114 -0
  2394. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts +11 -0
  2395. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts.map +1 -0
  2396. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.js +10 -0
  2397. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts +3 -0
  2398. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts.map +1 -0
  2399. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.js +642 -0
  2400. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts +3 -0
  2401. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts.map +1 -0
  2402. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.js +643 -0
  2403. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +25 -0
  2404. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts.map +1 -0
  2405. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +362 -0
  2406. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +21 -0
  2407. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts.map +1 -0
  2408. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +541 -0
  2409. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts +12 -0
  2410. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts.map +1 -0
  2411. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.js +14 -0
  2412. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts +3 -0
  2413. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts.map +1 -0
  2414. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.js +114 -0
  2415. package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts +3 -0
  2416. package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts.map +1 -0
  2417. package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.js +110 -0
  2418. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts +3 -0
  2419. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts.map +1 -0
  2420. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.js +296 -0
  2421. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts +12 -0
  2422. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts.map +1 -0
  2423. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.js +41 -0
  2424. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts +49 -0
  2425. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts.map +1 -0
  2426. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.js +78 -0
  2427. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts +159 -0
  2428. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts.map +1 -0
  2429. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.js +192 -0
  2430. package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts +10 -0
  2431. package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts.map +1 -0
  2432. package/packages/typescript/src/features/advanced-capabilities/experience/index.js +8 -0
  2433. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts +3 -0
  2434. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts.map +1 -0
  2435. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.js +61 -0
  2436. package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +88 -0
  2437. package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts.map +1 -0
  2438. package/packages/typescript/src/features/advanced-capabilities/experience/service.js +1194 -0
  2439. package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +141 -0
  2440. package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts.map +1 -0
  2441. package/packages/typescript/src/features/advanced-capabilities/experience/types.js +22 -0
  2442. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts +34 -0
  2443. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts.map +1 -0
  2444. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.js +106 -0
  2445. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts +24 -0
  2446. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts.map +1 -0
  2447. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.js +152 -0
  2448. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts +26 -0
  2449. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts.map +1 -0
  2450. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.js +129 -0
  2451. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts +8 -0
  2452. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts.map +1 -0
  2453. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.js +175 -0
  2454. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts +13 -0
  2455. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts.map +1 -0
  2456. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.js +152 -0
  2457. package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts +101 -0
  2458. package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts.map +1 -0
  2459. package/packages/typescript/src/features/advanced-capabilities/form/builder.js +362 -0
  2460. package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts +16 -0
  2461. package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts.map +1 -0
  2462. package/packages/typescript/src/features/advanced-capabilities/form/builtins.js +245 -0
  2463. package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts +32 -0
  2464. package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts.map +1 -0
  2465. package/packages/typescript/src/features/advanced-capabilities/form/defaults.js +98 -0
  2466. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts +12 -0
  2467. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts.map +1 -0
  2468. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.js +231 -0
  2469. package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts +24 -0
  2470. package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts.map +1 -0
  2471. package/packages/typescript/src/features/advanced-capabilities/form/extraction.js +319 -0
  2472. package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts +22 -0
  2473. package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts.map +1 -0
  2474. package/packages/typescript/src/features/advanced-capabilities/form/index.js +52 -0
  2475. package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts +41 -0
  2476. package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts.map +1 -0
  2477. package/packages/typescript/src/features/advanced-capabilities/form/intent.js +119 -0
  2478. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts +11 -0
  2479. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts.map +1 -0
  2480. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.js +166 -0
  2481. package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts +66 -0
  2482. package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts.map +1 -0
  2483. package/packages/typescript/src/features/advanced-capabilities/form/service.js +912 -0
  2484. package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts +26 -0
  2485. package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts.map +1 -0
  2486. package/packages/typescript/src/features/advanced-capabilities/form/storage.js +228 -0
  2487. package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts +10 -0
  2488. package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts.map +1 -0
  2489. package/packages/typescript/src/features/advanced-capabilities/form/template.js +56 -0
  2490. package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts +40 -0
  2491. package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts.map +1 -0
  2492. package/packages/typescript/src/features/advanced-capabilities/form/ttl.js +107 -0
  2493. package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts +589 -0
  2494. package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts.map +1 -0
  2495. package/packages/typescript/src/features/advanced-capabilities/form/types.js +71 -0
  2496. package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts +24 -0
  2497. package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts.map +1 -0
  2498. package/packages/typescript/src/features/advanced-capabilities/form/validation.js +311 -0
  2499. package/packages/typescript/src/features/advanced-capabilities/index.d.ts +47 -0
  2500. package/packages/typescript/src/features/advanced-capabilities/index.d.ts.map +1 -0
  2501. package/packages/typescript/src/features/advanced-capabilities/index.js +121 -0
  2502. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts +16 -0
  2503. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts.map +1 -0
  2504. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.js +356 -0
  2505. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts +9 -0
  2506. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts.map +1 -0
  2507. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.js +234 -0
  2508. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts +8 -0
  2509. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts.map +1 -0
  2510. package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.js +290 -0
  2511. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts +7 -0
  2512. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts.map +1 -0
  2513. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.js +1299 -0
  2514. package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts +12 -0
  2515. package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts.map +1 -0
  2516. package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.js +167 -0
  2517. package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts +13 -0
  2518. package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts.map +1 -0
  2519. package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.js +193 -0
  2520. package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts +18 -0
  2521. package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts.map +1 -0
  2522. package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.js +42 -0
  2523. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts +53 -0
  2524. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts.map +1 -0
  2525. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.js +429 -0
  2526. package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts +14 -0
  2527. package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts.map +1 -0
  2528. package/packages/typescript/src/features/advanced-capabilities/personality/index.js +12 -0
  2529. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts +8 -0
  2530. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts.map +1 -0
  2531. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.js +57 -0
  2532. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts +71 -0
  2533. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts.map +1 -0
  2534. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.js +478 -0
  2535. package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +13 -0
  2536. package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts.map +1 -0
  2537. package/packages/typescript/src/features/advanced-capabilities/personality/types.js +8 -0
  2538. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts +3 -0
  2539. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts.map +1 -0
  2540. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.js +77 -0
  2541. package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts +9 -0
  2542. package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts.map +1 -0
  2543. package/packages/typescript/src/features/advanced-capabilities/providers/facts.js +272 -0
  2544. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts +3 -0
  2545. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts.map +1 -0
  2546. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.js +112 -0
  2547. package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts +13 -0
  2548. package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts.map +1 -0
  2549. package/packages/typescript/src/features/advanced-capabilities/providers/index.js +12 -0
  2550. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts +9 -0
  2551. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts.map +1 -0
  2552. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.js +83 -0
  2553. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts +15 -0
  2554. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts.map +1 -0
  2555. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.js +140 -0
  2556. package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts +19 -0
  2557. package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts.map +1 -0
  2558. package/packages/typescript/src/features/advanced-capabilities/providers/roles.js +231 -0
  2559. package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts +7 -0
  2560. package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts.map +1 -0
  2561. package/packages/typescript/src/features/advanced-capabilities/providers/settings.js +294 -0
  2562. package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts +3 -0
  2563. package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts.map +1 -0
  2564. package/packages/typescript/src/features/advanced-memory/evaluators/index.js +2 -0
  2565. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts +3 -0
  2566. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -0
  2567. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.js +199 -0
  2568. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts +3 -0
  2569. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts.map +1 -0
  2570. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.js +240 -0
  2571. package/packages/typescript/src/features/advanced-memory/index.d.ts +16 -0
  2572. package/packages/typescript/src/features/advanced-memory/index.d.ts.map +1 -0
  2573. package/packages/typescript/src/features/advanced-memory/index.js +26 -0
  2574. package/packages/typescript/src/features/advanced-memory/prompts.d.ts +2 -0
  2575. package/packages/typescript/src/features/advanced-memory/prompts.d.ts.map +1 -0
  2576. package/packages/typescript/src/features/advanced-memory/prompts.js +1 -0
  2577. package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts +3 -0
  2578. package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts.map +1 -0
  2579. package/packages/typescript/src/features/advanced-memory/providers/context-summary.js +85 -0
  2580. package/packages/typescript/src/features/advanced-memory/providers/index.d.ts +3 -0
  2581. package/packages/typescript/src/features/advanced-memory/providers/index.d.ts.map +1 -0
  2582. package/packages/typescript/src/features/advanced-memory/providers/index.js +2 -0
  2583. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts +3 -0
  2584. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts.map +1 -0
  2585. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.js +92 -0
  2586. package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts +5 -0
  2587. package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts.map +1 -0
  2588. package/packages/typescript/src/features/advanced-memory/schemas/index.js +3 -0
  2589. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts +10 -0
  2590. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts.map +1 -0
  2591. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.js +65 -0
  2592. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts +10 -0
  2593. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts.map +1 -0
  2594. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.js +45 -0
  2595. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts +10 -0
  2596. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts.map +1 -0
  2597. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.js +66 -0
  2598. package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts +38 -0
  2599. package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts.map +1 -0
  2600. package/packages/typescript/src/features/advanced-memory/services/memory-service.js +378 -0
  2601. package/packages/typescript/src/features/advanced-memory/trajectory.d.ts +10 -0
  2602. package/packages/typescript/src/features/advanced-memory/trajectory.d.ts.map +1 -0
  2603. package/packages/typescript/src/features/advanced-memory/trajectory.js +33 -0
  2604. package/packages/typescript/src/features/advanced-memory/types.d.ts +68 -0
  2605. package/packages/typescript/src/features/advanced-memory/types.d.ts.map +1 -0
  2606. package/packages/typescript/src/features/advanced-memory/types.js +6 -0
  2607. package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts +6 -0
  2608. package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts.map +1 -0
  2609. package/packages/typescript/src/features/advanced-planning/actions/chain-example.js +178 -0
  2610. package/packages/typescript/src/features/advanced-planning/index.d.ts +5 -0
  2611. package/packages/typescript/src/features/advanced-planning/index.d.ts.map +1 -0
  2612. package/packages/typescript/src/features/advanced-planning/index.js +20 -0
  2613. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts +3 -0
  2614. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts.map +1 -0
  2615. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.js +105 -0
  2616. package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts +77 -0
  2617. package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts.map +1 -0
  2618. package/packages/typescript/src/features/advanced-planning/services/planning-service.js +875 -0
  2619. package/packages/typescript/src/features/advanced-planning/types.d.ts +78 -0
  2620. package/packages/typescript/src/features/advanced-planning/types.d.ts.map +1 -0
  2621. package/packages/typescript/src/features/advanced-planning/types.js +1 -0
  2622. package/packages/typescript/src/features/autonomy/action.d.ts +14 -0
  2623. package/packages/typescript/src/features/autonomy/action.d.ts.map +1 -0
  2624. package/packages/typescript/src/features/autonomy/action.js +177 -0
  2625. package/packages/typescript/src/features/autonomy/execution-facade.d.ts +22 -0
  2626. package/packages/typescript/src/features/autonomy/execution-facade.d.ts.map +1 -0
  2627. package/packages/typescript/src/features/autonomy/execution-facade.js +150 -0
  2628. package/packages/typescript/src/features/autonomy/index.d.ts +11 -0
  2629. package/packages/typescript/src/features/autonomy/index.d.ts.map +1 -0
  2630. package/packages/typescript/src/features/autonomy/index.js +13 -0
  2631. package/packages/typescript/src/features/autonomy/providers.d.ts +21 -0
  2632. package/packages/typescript/src/features/autonomy/providers.d.ts.map +1 -0
  2633. package/packages/typescript/src/features/autonomy/providers.js +154 -0
  2634. package/packages/typescript/src/features/autonomy/routes.d.ts +11 -0
  2635. package/packages/typescript/src/features/autonomy/routes.d.ts.map +1 -0
  2636. package/packages/typescript/src/features/autonomy/routes.js +158 -0
  2637. package/packages/typescript/src/features/autonomy/service.d.ts +138 -0
  2638. package/packages/typescript/src/features/autonomy/service.d.ts.map +1 -0
  2639. package/packages/typescript/src/features/autonomy/service.js +813 -0
  2640. package/packages/typescript/src/features/autonomy/types.d.ts +31 -0
  2641. package/packages/typescript/src/features/autonomy/types.d.ts.map +1 -0
  2642. package/packages/typescript/src/features/autonomy/types.js +6 -0
  2643. package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts +4 -0
  2644. package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts.map +1 -0
  2645. package/packages/typescript/src/features/basic-capabilities/actions/choice.js +278 -0
  2646. package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts +3 -0
  2647. package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts.map +1 -0
  2648. package/packages/typescript/src/features/basic-capabilities/actions/ignore.js +23 -0
  2649. package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts +10 -0
  2650. package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts.map +1 -0
  2651. package/packages/typescript/src/features/basic-capabilities/actions/index.js +9 -0
  2652. package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts +3 -0
  2653. package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts.map +1 -0
  2654. package/packages/typescript/src/features/basic-capabilities/actions/none.js +26 -0
  2655. package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts +3 -0
  2656. package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts.map +1 -0
  2657. package/packages/typescript/src/features/basic-capabilities/actions/reply.js +81 -0
  2658. package/packages/typescript/src/features/basic-capabilities/index.d.ts +109 -0
  2659. package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
  2660. package/packages/typescript/src/features/basic-capabilities/index.js +1033 -0
  2661. package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts +7 -0
  2662. package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts.map +1 -0
  2663. package/packages/typescript/src/features/basic-capabilities/providers/actionState.js +189 -0
  2664. package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts +35 -0
  2665. package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts.map +1 -0
  2666. package/packages/typescript/src/features/basic-capabilities/providers/actions.js +142 -0
  2667. package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts +20 -0
  2668. package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts.map +1 -0
  2669. package/packages/typescript/src/features/basic-capabilities/providers/attachments.js +94 -0
  2670. package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts +17 -0
  2671. package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts.map +1 -0
  2672. package/packages/typescript/src/features/basic-capabilities/providers/character.js +190 -0
  2673. package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts +11 -0
  2674. package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts.map +1 -0
  2675. package/packages/typescript/src/features/basic-capabilities/providers/choice.js +86 -0
  2676. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts +12 -0
  2677. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts.map +1 -0
  2678. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.js +50 -0
  2679. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts +11 -0
  2680. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts.map +1 -0
  2681. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.js +56 -0
  2682. package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts +7 -0
  2683. package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts.map +1 -0
  2684. package/packages/typescript/src/features/basic-capabilities/providers/entities.js +39 -0
  2685. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts +27 -0
  2686. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts.map +1 -0
  2687. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.js +107 -0
  2688. package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts +20 -0
  2689. package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts.map +1 -0
  2690. package/packages/typescript/src/features/basic-capabilities/providers/index.js +19 -0
  2691. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts +5 -0
  2692. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts.map +1 -0
  2693. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.js +20 -0
  2694. package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts +18 -0
  2695. package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts.map +1 -0
  2696. package/packages/typescript/src/features/basic-capabilities/providers/providers.js +75 -0
  2697. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts +14 -0
  2698. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts.map +1 -0
  2699. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.js +325 -0
  2700. package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts +12 -0
  2701. package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts.map +1 -0
  2702. package/packages/typescript/src/features/basic-capabilities/providers/time.js +36 -0
  2703. package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts +3 -0
  2704. package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts.map +1 -0
  2705. package/packages/typescript/src/features/basic-capabilities/providers/uiContext.js +48 -0
  2706. package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts +8 -0
  2707. package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts.map +1 -0
  2708. package/packages/typescript/src/features/basic-capabilities/providers/world.js +212 -0
  2709. package/packages/typescript/src/features/evaluator-doc-examples.d.ts +4 -0
  2710. package/packages/typescript/src/features/evaluator-doc-examples.d.ts.map +1 -0
  2711. package/packages/typescript/src/features/evaluator-doc-examples.js +13 -0
  2712. package/packages/typescript/src/features/index.d.ts +58 -0
  2713. package/packages/typescript/src/features/index.d.ts.map +1 -0
  2714. package/packages/typescript/src/features/index.js +148 -0
  2715. package/packages/typescript/src/features/knowledge/actions.d.ts +8 -0
  2716. package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
  2717. package/packages/typescript/src/features/knowledge/actions.js +735 -0
  2718. package/packages/typescript/src/features/knowledge/config.d.ts +5 -0
  2719. package/packages/typescript/src/features/knowledge/config.d.ts.map +1 -0
  2720. package/packages/typescript/src/features/knowledge/config.js +147 -0
  2721. package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts +53 -0
  2722. package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts.map +1 -0
  2723. package/packages/typescript/src/features/knowledge/ctx-embeddings.js +412 -0
  2724. package/packages/typescript/src/features/knowledge/docs-loader.d.ts +27 -0
  2725. package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
  2726. package/packages/typescript/src/features/knowledge/docs-loader.js +226 -0
  2727. package/packages/typescript/src/features/knowledge/document-processor.d.ts +27 -0
  2728. package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
  2729. package/packages/typescript/src/features/knowledge/document-processor.js +629 -0
  2730. package/packages/typescript/src/features/knowledge/documents-provider.d.ts +3 -0
  2731. package/packages/typescript/src/features/knowledge/documents-provider.d.ts.map +1 -0
  2732. package/packages/typescript/src/features/knowledge/documents-provider.js +112 -0
  2733. package/packages/typescript/src/features/knowledge/index.d.ts +17 -0
  2734. package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
  2735. package/packages/typescript/src/features/knowledge/index.js +30 -0
  2736. package/packages/typescript/src/features/knowledge/llm.d.ts +27 -0
  2737. package/packages/typescript/src/features/knowledge/llm.d.ts.map +1 -0
  2738. package/packages/typescript/src/features/knowledge/llm.js +444 -0
  2739. package/packages/typescript/src/features/knowledge/provider.d.ts +3 -0
  2740. package/packages/typescript/src/features/knowledge/provider.d.ts.map +1 -0
  2741. package/packages/typescript/src/features/knowledge/provider.js +114 -0
  2742. package/packages/typescript/src/features/knowledge/service.d.ts +83 -0
  2743. package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
  2744. package/packages/typescript/src/features/knowledge/service.js +648 -0
  2745. package/packages/typescript/src/features/knowledge/types.d.ts +162 -0
  2746. package/packages/typescript/src/features/knowledge/types.d.ts.map +1 -0
  2747. package/packages/typescript/src/features/knowledge/types.js +57 -0
  2748. package/packages/typescript/src/features/knowledge/url-ingest.d.ts +37 -0
  2749. package/packages/typescript/src/features/knowledge/url-ingest.d.ts.map +1 -0
  2750. package/packages/typescript/src/features/knowledge/url-ingest.js +490 -0
  2751. package/packages/typescript/src/features/knowledge/utils.d.ts +22 -0
  2752. package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
  2753. package/packages/typescript/src/features/knowledge/utils.js +388 -0
  2754. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts +3 -0
  2755. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts.map +1 -0
  2756. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.js +83 -0
  2757. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts +3 -0
  2758. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts.map +1 -0
  2759. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.js +88 -0
  2760. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts +14 -0
  2761. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts.map +1 -0
  2762. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.js +48 -0
  2763. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts +32 -0
  2764. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts.map +1 -0
  2765. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.js +518 -0
  2766. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts +16 -0
  2767. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts.map +1 -0
  2768. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.js +49 -0
  2769. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts +18 -0
  2770. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts.map +1 -0
  2771. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.js +59 -0
  2772. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts +14 -0
  2773. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts.map +1 -0
  2774. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.js +31 -0
  2775. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts +14 -0
  2776. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts.map +1 -0
  2777. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.js +51 -0
  2778. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts +15 -0
  2779. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts.map +1 -0
  2780. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.js +43 -0
  2781. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts +15 -0
  2782. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts.map +1 -0
  2783. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.js +52 -0
  2784. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts +15 -0
  2785. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts.map +1 -0
  2786. package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.js +48 -0
  2787. package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts +25 -0
  2788. package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts.map +1 -0
  2789. package/packages/typescript/src/features/plugin-manager/actions/plugin.js +441 -0
  2790. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts +4 -0
  2791. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts.map +1 -0
  2792. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.js +265 -0
  2793. package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts +28 -0
  2794. package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
  2795. package/packages/typescript/src/features/plugin-manager/coreExtensions.js +54 -0
  2796. package/packages/typescript/src/features/plugin-manager/index.d.ts +27 -0
  2797. package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
  2798. package/packages/typescript/src/features/plugin-manager/index.js +50 -0
  2799. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts +5 -0
  2800. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts.map +1 -0
  2801. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.js +104 -0
  2802. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts +5 -0
  2803. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts.map +1 -0
  2804. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.js +105 -0
  2805. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts +5 -0
  2806. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts.map +1 -0
  2807. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.js +93 -0
  2808. package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts +9 -0
  2809. package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts.map +1 -0
  2810. package/packages/typescript/src/features/plugin-manager/providers/relevance.js +229 -0
  2811. package/packages/typescript/src/features/plugin-manager/security.d.ts +33 -0
  2812. package/packages/typescript/src/features/plugin-manager/security.d.ts.map +1 -0
  2813. package/packages/typescript/src/features/plugin-manager/security.js +80 -0
  2814. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +76 -0
  2815. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -0
  2816. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +489 -0
  2817. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts +31 -0
  2818. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts.map +1 -0
  2819. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.js +57 -0
  2820. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts +68 -0
  2821. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts.map +1 -0
  2822. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1004 -0
  2823. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts +84 -0
  2824. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts.map +1 -0
  2825. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.js +410 -0
  2826. package/packages/typescript/src/features/plugin-manager/types.d.ts +142 -0
  2827. package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -0
  2828. package/packages/typescript/src/features/plugin-manager/types.js +13 -0
  2829. package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts +4 -0
  2830. package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts.map +1 -0
  2831. package/packages/typescript/src/features/plugin-manager/utils/paths.js +32 -0
  2832. package/packages/typescript/src/features/secrets/actions/index.d.ts +7 -0
  2833. package/packages/typescript/src/features/secrets/actions/index.d.ts.map +1 -0
  2834. package/packages/typescript/src/features/secrets/actions/index.js +6 -0
  2835. package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts +12 -0
  2836. package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts.map +1 -0
  2837. package/packages/typescript/src/features/secrets/actions/manage-secret.js +289 -0
  2838. package/packages/typescript/src/features/secrets/actions/request-secret.d.ts +3 -0
  2839. package/packages/typescript/src/features/secrets/actions/request-secret.d.ts.map +1 -0
  2840. package/packages/typescript/src/features/secrets/actions/request-secret.js +123 -0
  2841. package/packages/typescript/src/features/secrets/actions/set-secret.d.ts +12 -0
  2842. package/packages/typescript/src/features/secrets/actions/set-secret.d.ts.map +1 -0
  2843. package/packages/typescript/src/features/secrets/actions/set-secret.js +241 -0
  2844. package/packages/typescript/src/features/secrets/crypto/encryption.d.ts +184 -0
  2845. package/packages/typescript/src/features/secrets/crypto/encryption.d.ts.map +1 -0
  2846. package/packages/typescript/src/features/secrets/crypto/encryption.js +373 -0
  2847. package/packages/typescript/src/features/secrets/crypto/index.d.ts +5 -0
  2848. package/packages/typescript/src/features/secrets/crypto/index.d.ts.map +1 -0
  2849. package/packages/typescript/src/features/secrets/crypto/index.js +16 -0
  2850. package/packages/typescript/src/features/secrets/index.d.ts +22 -0
  2851. package/packages/typescript/src/features/secrets/index.d.ts.map +1 -0
  2852. package/packages/typescript/src/features/secrets/index.js +24 -0
  2853. package/packages/typescript/src/features/secrets/onboarding/action.d.ts +12 -0
  2854. package/packages/typescript/src/features/secrets/onboarding/action.d.ts.map +1 -0
  2855. package/packages/typescript/src/features/secrets/onboarding/action.js +338 -0
  2856. package/packages/typescript/src/features/secrets/onboarding/config.d.ts +99 -0
  2857. package/packages/typescript/src/features/secrets/onboarding/config.d.ts.map +1 -0
  2858. package/packages/typescript/src/features/secrets/onboarding/config.js +240 -0
  2859. package/packages/typescript/src/features/secrets/onboarding/index.d.ts +13 -0
  2860. package/packages/typescript/src/features/secrets/onboarding/index.d.ts.map +1 -0
  2861. package/packages/typescript/src/features/secrets/onboarding/index.js +12 -0
  2862. package/packages/typescript/src/features/secrets/onboarding/provider.d.ts +16 -0
  2863. package/packages/typescript/src/features/secrets/onboarding/provider.d.ts.map +1 -0
  2864. package/packages/typescript/src/features/secrets/onboarding/provider.js +231 -0
  2865. package/packages/typescript/src/features/secrets/onboarding/service.d.ts +134 -0
  2866. package/packages/typescript/src/features/secrets/onboarding/service.d.ts.map +1 -0
  2867. package/packages/typescript/src/features/secrets/onboarding/service.js +436 -0
  2868. package/packages/typescript/src/features/secrets/plugin.d.ts +70 -0
  2869. package/packages/typescript/src/features/secrets/plugin.d.ts.map +1 -0
  2870. package/packages/typescript/src/features/secrets/plugin.js +87 -0
  2871. package/packages/typescript/src/features/secrets/providers/index.d.ts +5 -0
  2872. package/packages/typescript/src/features/secrets/providers/index.d.ts.map +1 -0
  2873. package/packages/typescript/src/features/secrets/providers/index.js +4 -0
  2874. package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts +22 -0
  2875. package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts.map +1 -0
  2876. package/packages/typescript/src/features/secrets/providers/secrets-status.js +160 -0
  2877. package/packages/typescript/src/features/secrets/services/index.d.ts +7 -0
  2878. package/packages/typescript/src/features/secrets/services/index.d.ts.map +1 -0
  2879. package/packages/typescript/src/features/secrets/services/index.js +5 -0
  2880. package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts +182 -0
  2881. package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts.map +1 -0
  2882. package/packages/typescript/src/features/secrets/services/plugin-activator.js +617 -0
  2883. package/packages/typescript/src/features/secrets/services/secrets.d.ts +183 -0
  2884. package/packages/typescript/src/features/secrets/services/secrets.d.ts.map +1 -0
  2885. package/packages/typescript/src/features/secrets/services/secrets.js +566 -0
  2886. package/packages/typescript/src/features/secrets/storage/character-store.d.ts +63 -0
  2887. package/packages/typescript/src/features/secrets/storage/character-store.d.ts.map +1 -0
  2888. package/packages/typescript/src/features/secrets/storage/character-store.js +265 -0
  2889. package/packages/typescript/src/features/secrets/storage/component-store.d.ts +47 -0
  2890. package/packages/typescript/src/features/secrets/storage/component-store.d.ts.map +1 -0
  2891. package/packages/typescript/src/features/secrets/storage/component-store.js +264 -0
  2892. package/packages/typescript/src/features/secrets/storage/index.d.ts +10 -0
  2893. package/packages/typescript/src/features/secrets/storage/index.d.ts.map +1 -0
  2894. package/packages/typescript/src/features/secrets/storage/index.js +8 -0
  2895. package/packages/typescript/src/features/secrets/storage/interface.d.ts +52 -0
  2896. package/packages/typescript/src/features/secrets/storage/interface.d.ts.map +1 -0
  2897. package/packages/typescript/src/features/secrets/storage/interface.js +92 -0
  2898. package/packages/typescript/src/features/secrets/storage/memory-store.d.ts +44 -0
  2899. package/packages/typescript/src/features/secrets/storage/memory-store.d.ts.map +1 -0
  2900. package/packages/typescript/src/features/secrets/storage/memory-store.js +142 -0
  2901. package/packages/typescript/src/features/secrets/storage/world-store.d.ts +52 -0
  2902. package/packages/typescript/src/features/secrets/storage/world-store.d.ts.map +1 -0
  2903. package/packages/typescript/src/features/secrets/storage/world-store.js +292 -0
  2904. package/packages/typescript/src/features/secrets/types.d.ts +438 -0
  2905. package/packages/typescript/src/features/secrets/types.d.ts.map +1 -0
  2906. package/packages/typescript/src/features/secrets/types.js +57 -0
  2907. package/packages/typescript/src/features/secrets/validation.d.ts +33 -0
  2908. package/packages/typescript/src/features/secrets/validation.d.ts.map +1 -0
  2909. package/packages/typescript/src/features/secrets/validation.js +389 -0
  2910. package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts +10 -0
  2911. package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts.map +1 -0
  2912. package/packages/typescript/src/features/shared/schedule-follow-up-response.js +49 -0
  2913. package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts +289 -0
  2914. package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
  2915. package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1432 -0
  2916. package/packages/typescript/src/features/trajectories/action-interceptor.d.ts +23 -0
  2917. package/packages/typescript/src/features/trajectories/action-interceptor.d.ts.map +1 -0
  2918. package/packages/typescript/src/features/trajectories/action-interceptor.js +178 -0
  2919. package/packages/typescript/src/features/trajectories/art-format.d.ts +32 -0
  2920. package/packages/typescript/src/features/trajectories/art-format.d.ts.map +1 -0
  2921. package/packages/typescript/src/features/trajectories/art-format.js +221 -0
  2922. package/packages/typescript/src/features/trajectories/export.d.ts +40 -0
  2923. package/packages/typescript/src/features/trajectories/export.d.ts.map +1 -0
  2924. package/packages/typescript/src/features/trajectories/export.js +99 -0
  2925. package/packages/typescript/src/features/trajectories/game-rewards.d.ts +14 -0
  2926. package/packages/typescript/src/features/trajectories/game-rewards.d.ts.map +1 -0
  2927. package/packages/typescript/src/features/trajectories/game-rewards.js +20 -0
  2928. package/packages/typescript/src/features/trajectories/index.d.ts +24 -0
  2929. package/packages/typescript/src/features/trajectories/index.d.ts.map +1 -0
  2930. package/packages/typescript/src/features/trajectories/index.js +332 -0
  2931. package/packages/typescript/src/features/trajectories/integration.d.ts +59 -0
  2932. package/packages/typescript/src/features/trajectories/integration.d.ts.map +1 -0
  2933. package/packages/typescript/src/features/trajectories/integration.js +83 -0
  2934. package/packages/typescript/src/features/trajectories/reward-service.d.ts +24 -0
  2935. package/packages/typescript/src/features/trajectories/reward-service.d.ts.map +1 -0
  2936. package/packages/typescript/src/features/trajectories/reward-service.js +89 -0
  2937. package/packages/typescript/src/features/trajectories/types.d.ts +261 -0
  2938. package/packages/typescript/src/features/trajectories/types.d.ts.map +1 -0
  2939. package/packages/typescript/src/features/trajectories/types.js +1 -0
  2940. package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts +3 -0
  2941. package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts.map +1 -0
  2942. package/packages/typescript/src/features/trust/actions/evaluateTrust.js +230 -0
  2943. package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts +3 -0
  2944. package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts.map +1 -0
  2945. package/packages/typescript/src/features/trust/actions/hasTrustEngine.js +3 -0
  2946. package/packages/typescript/src/features/trust/actions/index.d.ts +6 -0
  2947. package/packages/typescript/src/features/trust/actions/index.d.ts.map +1 -0
  2948. package/packages/typescript/src/features/trust/actions/index.js +5 -0
  2949. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts +3 -0
  2950. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts.map +1 -0
  2951. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.js +194 -0
  2952. package/packages/typescript/src/features/trust/actions/requestElevation.d.ts +3 -0
  2953. package/packages/typescript/src/features/trust/actions/requestElevation.d.ts.map +1 -0
  2954. package/packages/typescript/src/features/trust/actions/requestElevation.js +170 -0
  2955. package/packages/typescript/src/features/trust/actions/roles.d.ts +3 -0
  2956. package/packages/typescript/src/features/trust/actions/roles.d.ts.map +1 -0
  2957. package/packages/typescript/src/features/trust/actions/roles.js +299 -0
  2958. package/packages/typescript/src/features/trust/actions/settings.d.ts +5 -0
  2959. package/packages/typescript/src/features/trust/actions/settings.d.ts.map +1 -0
  2960. package/packages/typescript/src/features/trust/actions/settings.js +616 -0
  2961. package/packages/typescript/src/features/trust/evaluators/index.d.ts +4 -0
  2962. package/packages/typescript/src/features/trust/evaluators/index.d.ts.map +1 -0
  2963. package/packages/typescript/src/features/trust/evaluators/index.js +3 -0
  2964. package/packages/typescript/src/features/trust/evaluators/reflection.d.ts +3 -0
  2965. package/packages/typescript/src/features/trust/evaluators/reflection.d.ts.map +1 -0
  2966. package/packages/typescript/src/features/trust/evaluators/reflection.js +319 -0
  2967. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts +3 -0
  2968. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts.map +1 -0
  2969. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.js +270 -0
  2970. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts +3 -0
  2971. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts.map +1 -0
  2972. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.js +201 -0
  2973. package/packages/typescript/src/features/trust/index.d.ts +23 -0
  2974. package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
  2975. package/packages/typescript/src/features/trust/index.js +96 -0
  2976. package/packages/typescript/src/features/trust/providers/adminTrust.d.ts +3 -0
  2977. package/packages/typescript/src/features/trust/providers/adminTrust.d.ts.map +1 -0
  2978. package/packages/typescript/src/features/trust/providers/adminTrust.js +49 -0
  2979. package/packages/typescript/src/features/trust/providers/index.d.ts +6 -0
  2980. package/packages/typescript/src/features/trust/providers/index.d.ts.map +1 -0
  2981. package/packages/typescript/src/features/trust/providers/index.js +5 -0
  2982. package/packages/typescript/src/features/trust/providers/roles.d.ts +4 -0
  2983. package/packages/typescript/src/features/trust/providers/roles.d.ts.map +1 -0
  2984. package/packages/typescript/src/features/trust/providers/roles.js +142 -0
  2985. package/packages/typescript/src/features/trust/providers/securityStatus.d.ts +3 -0
  2986. package/packages/typescript/src/features/trust/providers/securityStatus.d.ts.map +1 -0
  2987. package/packages/typescript/src/features/trust/providers/securityStatus.js +110 -0
  2988. package/packages/typescript/src/features/trust/providers/settings.d.ts +3 -0
  2989. package/packages/typescript/src/features/trust/providers/settings.d.ts.map +1 -0
  2990. package/packages/typescript/src/features/trust/providers/settings.js +222 -0
  2991. package/packages/typescript/src/features/trust/providers/trustProfile.d.ts +3 -0
  2992. package/packages/typescript/src/features/trust/providers/trustProfile.d.ts.map +1 -0
  2993. package/packages/typescript/src/features/trust/providers/trustProfile.js +68 -0
  2994. package/packages/typescript/src/features/trust/schema.d.ts +1170 -0
  2995. package/packages/typescript/src/features/trust/schema.d.ts.map +1 -0
  2996. package/packages/typescript/src/features/trust/schema.js +108 -0
  2997. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts +40 -0
  2998. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts.map +1 -0
  2999. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.js +317 -0
  3000. package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts +62 -0
  3001. package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts.map +1 -0
  3002. package/packages/typescript/src/features/trust/services/CredentialProtector.js +417 -0
  3003. package/packages/typescript/src/features/trust/services/SecurityModule.d.ts +142 -0
  3004. package/packages/typescript/src/features/trust/services/SecurityModule.d.ts.map +1 -0
  3005. package/packages/typescript/src/features/trust/services/SecurityModule.js +1057 -0
  3006. package/packages/typescript/src/features/trust/services/SecurityStore.d.ts +53 -0
  3007. package/packages/typescript/src/features/trust/services/SecurityStore.d.ts.map +1 -0
  3008. package/packages/typescript/src/features/trust/services/SecurityStore.js +123 -0
  3009. package/packages/typescript/src/features/trust/services/TrustEngine.d.ts +81 -0
  3010. package/packages/typescript/src/features/trust/services/TrustEngine.d.ts.map +1 -0
  3011. package/packages/typescript/src/features/trust/services/TrustEngine.js +621 -0
  3012. package/packages/typescript/src/features/trust/services/adminContext.d.ts +3 -0
  3013. package/packages/typescript/src/features/trust/services/adminContext.d.ts.map +1 -0
  3014. package/packages/typescript/src/features/trust/services/adminContext.js +32 -0
  3015. package/packages/typescript/src/features/trust/services/db.d.ts +12 -0
  3016. package/packages/typescript/src/features/trust/services/db.d.ts.map +1 -0
  3017. package/packages/typescript/src/features/trust/services/db.js +10 -0
  3018. package/packages/typescript/src/features/trust/services/wrappers.d.ts +56 -0
  3019. package/packages/typescript/src/features/trust/services/wrappers.d.ts.map +1 -0
  3020. package/packages/typescript/src/features/trust/services/wrappers.js +124 -0
  3021. package/packages/typescript/src/features/trust/types/permissions.d.ts +185 -0
  3022. package/packages/typescript/src/features/trust/types/permissions.d.ts.map +1 -0
  3023. package/packages/typescript/src/features/trust/types/permissions.js +58 -0
  3024. package/packages/typescript/src/features/trust/types/security.d.ts +114 -0
  3025. package/packages/typescript/src/features/trust/types/security.d.ts.map +1 -0
  3026. package/packages/typescript/src/features/trust/types/security.js +15 -0
  3027. package/packages/typescript/src/features/trust/types/trust.d.ts +179 -0
  3028. package/packages/typescript/src/features/trust/types/trust.d.ts.map +1 -0
  3029. package/packages/typescript/src/features/trust/types/trust.js +25 -0
  3030. package/packages/typescript/src/generated/action-docs.d.ts +2887 -0
  3031. package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
  3032. package/packages/typescript/src/generated/action-docs.js +4115 -0
  3033. package/packages/typescript/src/generated/spec-helpers.d.ts +49 -0
  3034. package/packages/typescript/src/generated/spec-helpers.d.ts.map +1 -0
  3035. package/packages/typescript/src/generated/spec-helpers.js +78 -0
  3036. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +1093 -0
  3037. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
  3038. package/packages/typescript/src/i18n/generated/validation-keyword-data.js +1093 -0
  3039. package/packages/typescript/src/i18n/validation-keywords.d.ts +25 -0
  3040. package/packages/typescript/src/i18n/validation-keywords.d.ts.map +1 -0
  3041. package/packages/typescript/src/i18n/validation-keywords.js +112 -0
  3042. package/packages/typescript/src/identity-clusters.d.ts +4 -0
  3043. package/packages/typescript/src/identity-clusters.d.ts.map +1 -0
  3044. package/packages/typescript/src/identity-clusters.js +29 -0
  3045. package/packages/typescript/src/index.d.ts +12 -0
  3046. package/packages/typescript/src/index.d.ts.map +1 -0
  3047. package/packages/typescript/src/index.js +13 -0
  3048. package/packages/typescript/src/index.node.d.ts +84 -0
  3049. package/packages/typescript/src/index.node.d.ts.map +1 -0
  3050. package/packages/typescript/src/index.node.js +118 -0
  3051. package/packages/typescript/src/lifeops-passive-connectors.d.ts +7 -0
  3052. package/packages/typescript/src/lifeops-passive-connectors.d.ts.map +1 -0
  3053. package/packages/typescript/src/lifeops-passive-connectors.js +39 -0
  3054. package/packages/typescript/src/logger.d.ts +121 -0
  3055. package/packages/typescript/src/logger.d.ts.map +1 -0
  3056. package/packages/typescript/src/logger.js +1024 -0
  3057. package/packages/typescript/src/markdown/chunk.d.ts +50 -0
  3058. package/packages/typescript/src/markdown/chunk.d.ts.map +1 -0
  3059. package/packages/typescript/src/markdown/chunk.js +268 -0
  3060. package/packages/typescript/src/markdown/code-spans.d.ts +42 -0
  3061. package/packages/typescript/src/markdown/code-spans.d.ts.map +1 -0
  3062. package/packages/typescript/src/markdown/code-spans.js +89 -0
  3063. package/packages/typescript/src/markdown/fences.d.ts +50 -0
  3064. package/packages/typescript/src/markdown/fences.d.ts.map +1 -0
  3065. package/packages/typescript/src/markdown/fences.js +90 -0
  3066. package/packages/typescript/src/markdown/frontmatter.d.ts +24 -0
  3067. package/packages/typescript/src/markdown/frontmatter.d.ts.map +1 -0
  3068. package/packages/typescript/src/markdown/frontmatter.js +151 -0
  3069. package/packages/typescript/src/markdown/index.d.ts +18 -0
  3070. package/packages/typescript/src/markdown/index.d.ts.map +1 -0
  3071. package/packages/typescript/src/markdown/index.js +17 -0
  3072. package/packages/typescript/src/markdown/ir.d.ts +101 -0
  3073. package/packages/typescript/src/markdown/ir.d.ts.map +1 -0
  3074. package/packages/typescript/src/markdown/ir.js +789 -0
  3075. package/packages/typescript/src/media/fetch.d.ts +39 -0
  3076. package/packages/typescript/src/media/fetch.d.ts.map +1 -0
  3077. package/packages/typescript/src/media/fetch.js +205 -0
  3078. package/packages/typescript/src/media/index.d.ts +8 -0
  3079. package/packages/typescript/src/media/index.d.ts.map +1 -0
  3080. package/packages/typescript/src/media/index.js +7 -0
  3081. package/packages/typescript/src/media/mime.d.ts +51 -0
  3082. package/packages/typescript/src/media/mime.d.ts.map +1 -0
  3083. package/packages/typescript/src/media/mime.js +225 -0
  3084. package/packages/typescript/src/memory.d.ts +40 -0
  3085. package/packages/typescript/src/memory.d.ts.map +1 -0
  3086. package/packages/typescript/src/memory.js +58 -0
  3087. package/packages/typescript/src/network/fetch-guard.d.ts +34 -0
  3088. package/packages/typescript/src/network/fetch-guard.d.ts.map +1 -0
  3089. package/packages/typescript/src/network/fetch-guard.js +136 -0
  3090. package/packages/typescript/src/network/index.d.ts +11 -0
  3091. package/packages/typescript/src/network/index.d.ts.map +1 -0
  3092. package/packages/typescript/src/network/index.js +10 -0
  3093. package/packages/typescript/src/network/ssrf.d.ts +58 -0
  3094. package/packages/typescript/src/network/ssrf.d.ts.map +1 -0
  3095. package/packages/typescript/src/network/ssrf.js +252 -0
  3096. package/packages/typescript/src/optimization/ab-analysis.d.ts +3 -0
  3097. package/packages/typescript/src/optimization/ab-analysis.d.ts.map +1 -0
  3098. package/packages/typescript/src/optimization/ab-analysis.js +8 -0
  3099. package/packages/typescript/src/optimization-root-dir.d.ts +8 -0
  3100. package/packages/typescript/src/optimization-root-dir.d.ts.map +1 -0
  3101. package/packages/typescript/src/optimization-root-dir.js +14 -0
  3102. package/packages/typescript/src/plugin-lifecycle.d.ts +16 -0
  3103. package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -0
  3104. package/packages/typescript/src/plugin-lifecycle.js +590 -0
  3105. package/packages/typescript/src/plugin.d.ts +13 -0
  3106. package/packages/typescript/src/plugin.d.ts.map +1 -0
  3107. package/packages/typescript/src/plugin.js +341 -0
  3108. package/packages/typescript/src/plugins/index.d.ts +9 -0
  3109. package/packages/typescript/src/plugins/index.d.ts.map +1 -0
  3110. package/packages/typescript/src/plugins/index.js +8 -0
  3111. package/packages/typescript/src/plugins/native-features.d.ts +15 -0
  3112. package/packages/typescript/src/plugins/native-features.d.ts.map +1 -0
  3113. package/packages/typescript/src/plugins/native-features.js +59 -0
  3114. package/packages/typescript/src/prompts.d.ts +90 -0
  3115. package/packages/typescript/src/prompts.d.ts.map +1 -0
  3116. package/packages/typescript/src/prompts.js +1242 -0
  3117. package/packages/typescript/src/providers/onboarding-progress.d.ts +19 -0
  3118. package/packages/typescript/src/providers/onboarding-progress.d.ts.map +1 -0
  3119. package/packages/typescript/src/providers/onboarding-progress.js +268 -0
  3120. package/packages/typescript/src/providers/skill-eligibility.d.ts +28 -0
  3121. package/packages/typescript/src/providers/skill-eligibility.d.ts.map +1 -0
  3122. package/packages/typescript/src/providers/skill-eligibility.js +179 -0
  3123. package/packages/typescript/src/provisioning.d.ts +54 -0
  3124. package/packages/typescript/src/provisioning.d.ts.map +1 -0
  3125. package/packages/typescript/src/provisioning.js +209 -0
  3126. package/packages/typescript/src/roles.d.ts +70 -0
  3127. package/packages/typescript/src/roles.d.ts.map +1 -0
  3128. package/packages/typescript/src/roles.js +544 -0
  3129. package/packages/typescript/src/runtime-composition.d.ts +129 -0
  3130. package/packages/typescript/src/runtime-composition.d.ts.map +1 -0
  3131. package/packages/typescript/src/runtime-composition.js +335 -0
  3132. package/packages/typescript/src/runtime.d.ts +941 -0
  3133. package/packages/typescript/src/runtime.d.ts.map +1 -0
  3134. package/packages/typescript/src/runtime.js +6334 -0
  3135. package/packages/typescript/src/schemas/agent.d.ts +7 -0
  3136. package/packages/typescript/src/schemas/agent.d.ts.map +1 -0
  3137. package/packages/typescript/src/schemas/agent.js +112 -0
  3138. package/packages/typescript/src/schemas/cache.d.ts +7 -0
  3139. package/packages/typescript/src/schemas/cache.d.ts.map +1 -0
  3140. package/packages/typescript/src/schemas/cache.js +55 -0
  3141. package/packages/typescript/src/schemas/channel-participant.d.ts +7 -0
  3142. package/packages/typescript/src/schemas/channel-participant.d.ts.map +1 -0
  3143. package/packages/typescript/src/schemas/channel-participant.js +49 -0
  3144. package/packages/typescript/src/schemas/channel.d.ts +7 -0
  3145. package/packages/typescript/src/schemas/channel.d.ts.map +1 -0
  3146. package/packages/typescript/src/schemas/channel.js +94 -0
  3147. package/packages/typescript/src/schemas/character.d.ts +445 -0
  3148. package/packages/typescript/src/schemas/character.d.ts.map +1 -0
  3149. package/packages/typescript/src/schemas/character.js +309 -0
  3150. package/packages/typescript/src/schemas/component.d.ts +7 -0
  3151. package/packages/typescript/src/schemas/component.d.ts.map +1 -0
  3152. package/packages/typescript/src/schemas/component.js +156 -0
  3153. package/packages/typescript/src/schemas/embedding.d.ts +7 -0
  3154. package/packages/typescript/src/schemas/embedding.d.ts.map +1 -0
  3155. package/packages/typescript/src/schemas/embedding.js +89 -0
  3156. package/packages/typescript/src/schemas/entity-identity.d.ts +29 -0
  3157. package/packages/typescript/src/schemas/entity-identity.d.ts.map +1 -0
  3158. package/packages/typescript/src/schemas/entity-identity.js +334 -0
  3159. package/packages/typescript/src/schemas/entity.d.ts +7 -0
  3160. package/packages/typescript/src/schemas/entity.d.ts.map +1 -0
  3161. package/packages/typescript/src/schemas/entity.js +69 -0
  3162. package/packages/typescript/src/schemas/index.d.ts +77 -0
  3163. package/packages/typescript/src/schemas/index.d.ts.map +1 -0
  3164. package/packages/typescript/src/schemas/index.js +75 -0
  3165. package/packages/typescript/src/schemas/log.d.ts +6 -0
  3166. package/packages/typescript/src/schemas/log.d.ts.map +1 -0
  3167. package/packages/typescript/src/schemas/log.js +93 -0
  3168. package/packages/typescript/src/schemas/memory.d.ts +7 -0
  3169. package/packages/typescript/src/schemas/memory.d.ts.map +1 -0
  3170. package/packages/typescript/src/schemas/memory.js +167 -0
  3171. package/packages/typescript/src/schemas/message-server-agent.d.ts +7 -0
  3172. package/packages/typescript/src/schemas/message-server-agent.d.ts.map +1 -0
  3173. package/packages/typescript/src/schemas/message-server-agent.js +58 -0
  3174. package/packages/typescript/src/schemas/message-server.d.ts +6 -0
  3175. package/packages/typescript/src/schemas/message-server.d.ts.map +1 -0
  3176. package/packages/typescript/src/schemas/message-server.js +62 -0
  3177. package/packages/typescript/src/schemas/message.d.ts +7 -0
  3178. package/packages/typescript/src/schemas/message.d.ts.map +1 -0
  3179. package/packages/typescript/src/schemas/message.js +106 -0
  3180. package/packages/typescript/src/schemas/pairing-allowlist.d.ts +7 -0
  3181. package/packages/typescript/src/schemas/pairing-allowlist.d.ts.map +1 -0
  3182. package/packages/typescript/src/schemas/pairing-allowlist.js +76 -0
  3183. package/packages/typescript/src/schemas/pairing-request.d.ts +7 -0
  3184. package/packages/typescript/src/schemas/pairing-request.d.ts.map +1 -0
  3185. package/packages/typescript/src/schemas/pairing-request.js +96 -0
  3186. package/packages/typescript/src/schemas/participant.d.ts +6 -0
  3187. package/packages/typescript/src/schemas/participant.d.ts.map +1 -0
  3188. package/packages/typescript/src/schemas/participant.js +91 -0
  3189. package/packages/typescript/src/schemas/relationship.d.ts +7 -0
  3190. package/packages/typescript/src/schemas/relationship.d.ts.map +1 -0
  3191. package/packages/typescript/src/schemas/relationship.js +102 -0
  3192. package/packages/typescript/src/schemas/room.d.ts +6 -0
  3193. package/packages/typescript/src/schemas/room.d.ts.map +1 -0
  3194. package/packages/typescript/src/schemas/room.js +86 -0
  3195. package/packages/typescript/src/schemas/server.d.ts +7 -0
  3196. package/packages/typescript/src/schemas/server.d.ts.map +1 -0
  3197. package/packages/typescript/src/schemas/server.js +33 -0
  3198. package/packages/typescript/src/schemas/task.d.ts +6 -0
  3199. package/packages/typescript/src/schemas/task.d.ts.map +1 -0
  3200. package/packages/typescript/src/schemas/task.js +95 -0
  3201. package/packages/typescript/src/schemas/world.d.ts +6 -0
  3202. package/packages/typescript/src/schemas/world.d.ts.map +1 -0
  3203. package/packages/typescript/src/schemas/world.js +64 -0
  3204. package/packages/typescript/src/search.d.ts +359 -0
  3205. package/packages/typescript/src/search.d.ts.map +1 -0
  3206. package/packages/typescript/src/search.js +1580 -0
  3207. package/packages/typescript/src/secrets.d.ts +6 -0
  3208. package/packages/typescript/src/secrets.d.ts.map +1 -0
  3209. package/packages/typescript/src/secrets.js +28 -0
  3210. package/packages/typescript/src/security/external-content.d.ts +96 -0
  3211. package/packages/typescript/src/security/external-content.d.ts.map +1 -0
  3212. package/packages/typescript/src/security/external-content.js +253 -0
  3213. package/packages/typescript/src/security/index.d.ts +12 -0
  3214. package/packages/typescript/src/security/index.d.ts.map +1 -0
  3215. package/packages/typescript/src/security/index.js +13 -0
  3216. package/packages/typescript/src/security/redact.d.ts +111 -0
  3217. package/packages/typescript/src/security/redact.d.ts.map +1 -0
  3218. package/packages/typescript/src/security/redact.js +254 -0
  3219. package/packages/typescript/src/services/agentEvent.d.ts +297 -0
  3220. package/packages/typescript/src/services/agentEvent.d.ts.map +1 -0
  3221. package/packages/typescript/src/services/agentEvent.js +422 -0
  3222. package/packages/typescript/src/services/approval.d.ts +169 -0
  3223. package/packages/typescript/src/services/approval.d.ts.map +1 -0
  3224. package/packages/typescript/src/services/approval.js +399 -0
  3225. package/packages/typescript/src/services/embedding.d.ts +29 -0
  3226. package/packages/typescript/src/services/embedding.d.ts.map +1 -0
  3227. package/packages/typescript/src/services/embedding.js +211 -0
  3228. package/packages/typescript/src/services/followUp.d.ts +48 -0
  3229. package/packages/typescript/src/services/followUp.d.ts.map +1 -0
  3230. package/packages/typescript/src/services/followUp.js +333 -0
  3231. package/packages/typescript/src/services/hook.d.ts +85 -0
  3232. package/packages/typescript/src/services/hook.d.ts.map +1 -0
  3233. package/packages/typescript/src/services/hook.js +396 -0
  3234. package/packages/typescript/src/services/message.d.ts +155 -0
  3235. package/packages/typescript/src/services/message.d.ts.map +1 -0
  3236. package/packages/typescript/src/services/message.js +5018 -0
  3237. package/packages/typescript/src/services/onboarding-cli.d.ts +240 -0
  3238. package/packages/typescript/src/services/onboarding-cli.d.ts.map +1 -0
  3239. package/packages/typescript/src/services/onboarding-cli.js +688 -0
  3240. package/packages/typescript/src/services/onboarding-rpc.d.ts +225 -0
  3241. package/packages/typescript/src/services/onboarding-rpc.d.ts.map +1 -0
  3242. package/packages/typescript/src/services/onboarding-rpc.js +318 -0
  3243. package/packages/typescript/src/services/onboarding-state.d.ts +155 -0
  3244. package/packages/typescript/src/services/onboarding-state.d.ts.map +1 -0
  3245. package/packages/typescript/src/services/onboarding-state.js +706 -0
  3246. package/packages/typescript/src/services/optimized-prompt-resolver.d.ts +23 -0
  3247. package/packages/typescript/src/services/optimized-prompt-resolver.d.ts.map +1 -0
  3248. package/packages/typescript/src/services/optimized-prompt-resolver.js +49 -0
  3249. package/packages/typescript/src/services/optimized-prompt.d.ts +116 -0
  3250. package/packages/typescript/src/services/optimized-prompt.d.ts.map +1 -0
  3251. package/packages/typescript/src/services/optimized-prompt.js +254 -0
  3252. package/packages/typescript/src/services/pairing-integration.d.ts +96 -0
  3253. package/packages/typescript/src/services/pairing-integration.d.ts.map +1 -0
  3254. package/packages/typescript/src/services/pairing-integration.js +145 -0
  3255. package/packages/typescript/src/services/pairing-migration.d.ts +105 -0
  3256. package/packages/typescript/src/services/pairing-migration.d.ts.map +1 -0
  3257. package/packages/typescript/src/services/pairing-migration.js +283 -0
  3258. package/packages/typescript/src/services/pairing.d.ts +80 -0
  3259. package/packages/typescript/src/services/pairing.d.ts.map +1 -0
  3260. package/packages/typescript/src/services/pairing.js +253 -0
  3261. package/packages/typescript/src/services/plugin-hooks.d.ts +112 -0
  3262. package/packages/typescript/src/services/plugin-hooks.d.ts.map +1 -0
  3263. package/packages/typescript/src/services/plugin-hooks.js +164 -0
  3264. package/packages/typescript/src/services/relationships.d.ts +350 -0
  3265. package/packages/typescript/src/services/relationships.d.ts.map +1 -0
  3266. package/packages/typescript/src/services/relationships.js +1653 -0
  3267. package/packages/typescript/src/services/task-scheduler.d.ts +28 -0
  3268. package/packages/typescript/src/services/task-scheduler.d.ts.map +1 -0
  3269. package/packages/typescript/src/services/task-scheduler.js +89 -0
  3270. package/packages/typescript/src/services/task.d.ts +134 -0
  3271. package/packages/typescript/src/services/task.d.ts.map +1 -0
  3272. package/packages/typescript/src/services/task.js +582 -0
  3273. package/packages/typescript/src/services/tool-policy.d.ts +186 -0
  3274. package/packages/typescript/src/services/tool-policy.d.ts.map +1 -0
  3275. package/packages/typescript/src/services/tool-policy.js +332 -0
  3276. package/packages/typescript/src/services/trajectories.d.ts +34 -0
  3277. package/packages/typescript/src/services/trajectories.d.ts.map +1 -0
  3278. package/packages/typescript/src/services/trajectories.js +1 -0
  3279. package/packages/typescript/src/services.d.ts +61 -0
  3280. package/packages/typescript/src/services.d.ts.map +1 -0
  3281. package/packages/typescript/src/services.js +99 -0
  3282. package/packages/typescript/src/sessions/index.d.ts +17 -0
  3283. package/packages/typescript/src/sessions/index.d.ts.map +1 -0
  3284. package/packages/typescript/src/sessions/index.js +29 -0
  3285. package/packages/typescript/src/sessions/provider.d.ts +71 -0
  3286. package/packages/typescript/src/sessions/provider.d.ts.map +1 -0
  3287. package/packages/typescript/src/sessions/provider.js +243 -0
  3288. package/packages/typescript/src/sessions/session-key.d.ts +201 -0
  3289. package/packages/typescript/src/sessions/session-key.d.ts.map +1 -0
  3290. package/packages/typescript/src/sessions/session-key.js +398 -0
  3291. package/packages/typescript/src/sessions/types.d.ts +197 -0
  3292. package/packages/typescript/src/sessions/types.d.ts.map +1 -0
  3293. package/packages/typescript/src/sessions/types.js +68 -0
  3294. package/packages/typescript/src/settings.d.ts +99 -0
  3295. package/packages/typescript/src/settings.d.ts.map +1 -0
  3296. package/packages/typescript/src/settings.js +409 -0
  3297. package/packages/typescript/src/should-respond.d.ts +2 -0
  3298. package/packages/typescript/src/should-respond.d.ts.map +1 -0
  3299. package/packages/typescript/src/should-respond.js +16 -0
  3300. package/packages/typescript/src/streaming-context.d.ts +88 -0
  3301. package/packages/typescript/src/streaming-context.d.ts.map +1 -0
  3302. package/packages/typescript/src/streaming-context.js +160 -0
  3303. package/packages/typescript/src/trajectory-context.d.ts +39 -0
  3304. package/packages/typescript/src/trajectory-context.d.ts.map +1 -0
  3305. package/packages/typescript/src/trajectory-context.js +85 -0
  3306. package/packages/typescript/src/trajectory-utils.d.ts +73 -0
  3307. package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
  3308. package/packages/typescript/src/trajectory-utils.js +124 -0
  3309. package/packages/typescript/src/types/agent.d.ts +67 -0
  3310. package/packages/typescript/src/types/agent.d.ts.map +1 -0
  3311. package/packages/typescript/src/types/agent.js +5 -0
  3312. package/packages/typescript/src/types/agentEvent.d.ts +258 -0
  3313. package/packages/typescript/src/types/agentEvent.d.ts.map +1 -0
  3314. package/packages/typescript/src/types/agentEvent.js +11 -0
  3315. package/packages/typescript/src/types/channel-config.d.ts +167 -0
  3316. package/packages/typescript/src/types/channel-config.d.ts.map +1 -0
  3317. package/packages/typescript/src/types/channel-config.js +7 -0
  3318. package/packages/typescript/src/types/components.d.ts +363 -0
  3319. package/packages/typescript/src/types/components.d.ts.map +1 -0
  3320. package/packages/typescript/src/types/components.js +1 -0
  3321. package/packages/typescript/src/types/database.d.ts +1079 -0
  3322. package/packages/typescript/src/types/database.d.ts.map +1 -0
  3323. package/packages/typescript/src/types/database.js +9 -0
  3324. package/packages/typescript/src/types/environment.d.ts +73 -0
  3325. package/packages/typescript/src/types/environment.d.ts.map +1 -0
  3326. package/packages/typescript/src/types/environment.js +16 -0
  3327. package/packages/typescript/src/types/events.d.ts +403 -0
  3328. package/packages/typescript/src/types/events.d.ts.map +1 -0
  3329. package/packages/typescript/src/types/events.js +85 -0
  3330. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts +400 -0
  3331. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts.map +1 -0
  3332. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.js +72 -0
  3333. package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts +364 -0
  3334. package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts.map +1 -0
  3335. package/packages/typescript/src/types/generated/eliza/v1/components_pb.js +68 -0
  3336. package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts +694 -0
  3337. package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts.map +1 -0
  3338. package/packages/typescript/src/types/generated/eliza/v1/database_pb.js +172 -0
  3339. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts +299 -0
  3340. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts.map +1 -0
  3341. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.js +52 -0
  3342. package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts +746 -0
  3343. package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts.map +1 -0
  3344. package/packages/typescript/src/types/generated/eliza/v1/events_pb.js +357 -0
  3345. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts +799 -0
  3346. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts.map +1 -0
  3347. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.js +172 -0
  3348. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts +63 -0
  3349. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts.map +1 -0
  3350. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.js +18 -0
  3351. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts +290 -0
  3352. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts.map +1 -0
  3353. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.js +53 -0
  3354. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts +160 -0
  3355. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts.map +1 -0
  3356. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.js +88 -0
  3357. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts +214 -0
  3358. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts.map +1 -0
  3359. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.js +78 -0
  3360. package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts +653 -0
  3361. package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts.map +1 -0
  3362. package/packages/typescript/src/types/generated/eliza/v1/model_pb.js +237 -0
  3363. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts +147 -0
  3364. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts.map +1 -0
  3365. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.js +27 -0
  3366. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts +286 -0
  3367. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts.map +1 -0
  3368. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.js +86 -0
  3369. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts +263 -0
  3370. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts.map +1 -0
  3371. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.js +38 -0
  3372. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts +137 -0
  3373. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts.map +1 -0
  3374. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.js +27 -0
  3375. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts +2687 -0
  3376. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts.map +1 -0
  3377. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.js +392 -0
  3378. package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts +144 -0
  3379. package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts.map +1 -0
  3380. package/packages/typescript/src/types/generated/eliza/v1/service_pb.js +99 -0
  3381. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts +146 -0
  3382. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts.map +1 -0
  3383. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.js +32 -0
  3384. package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts +259 -0
  3385. package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts.map +1 -0
  3386. package/packages/typescript/src/types/generated/eliza/v1/state_pb.js +44 -0
  3387. package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts +120 -0
  3388. package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts.map +1 -0
  3389. package/packages/typescript/src/types/generated/eliza/v1/task_pb.js +53 -0
  3390. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts +205 -0
  3391. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts.map +1 -0
  3392. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.js +89 -0
  3393. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts +47 -0
  3394. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts.map +1 -0
  3395. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.js +16 -0
  3396. package/packages/typescript/src/types/hook.d.ts +338 -0
  3397. package/packages/typescript/src/types/hook.d.ts.map +1 -0
  3398. package/packages/typescript/src/types/hook.js +73 -0
  3399. package/packages/typescript/src/types/index.d.ts +42 -0
  3400. package/packages/typescript/src/types/index.d.ts.map +1 -0
  3401. package/packages/typescript/src/types/index.js +50 -0
  3402. package/packages/typescript/src/types/knowledge.d.ts +49 -0
  3403. package/packages/typescript/src/types/knowledge.d.ts.map +1 -0
  3404. package/packages/typescript/src/types/knowledge.js +1 -0
  3405. package/packages/typescript/src/types/memory-storage.d.ts +28 -0
  3406. package/packages/typescript/src/types/memory-storage.d.ts.map +1 -0
  3407. package/packages/typescript/src/types/memory-storage.js +13 -0
  3408. package/packages/typescript/src/types/memory.d.ts +517 -0
  3409. package/packages/typescript/src/types/memory.d.ts.map +1 -0
  3410. package/packages/typescript/src/types/memory.js +16 -0
  3411. package/packages/typescript/src/types/message-service.d.ts +178 -0
  3412. package/packages/typescript/src/types/message-service.d.ts.map +1 -0
  3413. package/packages/typescript/src/types/message-service.js +1 -0
  3414. package/packages/typescript/src/types/messaging.d.ts +358 -0
  3415. package/packages/typescript/src/types/messaging.d.ts.map +1 -0
  3416. package/packages/typescript/src/types/messaging.js +27 -0
  3417. package/packages/typescript/src/types/model.d.ts +697 -0
  3418. package/packages/typescript/src/types/model.d.ts.map +1 -0
  3419. package/packages/typescript/src/types/model.js +247 -0
  3420. package/packages/typescript/src/types/onboarding.d.ts +319 -0
  3421. package/packages/typescript/src/types/onboarding.d.ts.map +1 -0
  3422. package/packages/typescript/src/types/onboarding.js +97 -0
  3423. package/packages/typescript/src/types/pairing.d.ts +124 -0
  3424. package/packages/typescript/src/types/pairing.d.ts.map +1 -0
  3425. package/packages/typescript/src/types/pairing.js +32 -0
  3426. package/packages/typescript/src/types/payment.d.ts +67 -0
  3427. package/packages/typescript/src/types/payment.d.ts.map +1 -0
  3428. package/packages/typescript/src/types/payment.js +1 -0
  3429. package/packages/typescript/src/types/pipeline-hooks.d.ts +234 -0
  3430. package/packages/typescript/src/types/pipeline-hooks.d.ts.map +1 -0
  3431. package/packages/typescript/src/types/pipeline-hooks.js +111 -0
  3432. package/packages/typescript/src/types/plugin-manifest.d.ts +381 -0
  3433. package/packages/typescript/src/types/plugin-manifest.d.ts.map +1 -0
  3434. package/packages/typescript/src/types/plugin-manifest.js +10 -0
  3435. package/packages/typescript/src/types/plugin-store.d.ts +173 -0
  3436. package/packages/typescript/src/types/plugin-store.d.ts.map +1 -0
  3437. package/packages/typescript/src/types/plugin-store.js +1 -0
  3438. package/packages/typescript/src/types/plugin.d.ts +374 -0
  3439. package/packages/typescript/src/types/plugin.d.ts.map +1 -0
  3440. package/packages/typescript/src/types/plugin.js +1 -0
  3441. package/packages/typescript/src/types/primitives.d.ts +176 -0
  3442. package/packages/typescript/src/types/primitives.d.ts.map +1 -0
  3443. package/packages/typescript/src/types/primitives.js +41 -0
  3444. package/packages/typescript/src/types/prompt-batcher.d.ts +126 -0
  3445. package/packages/typescript/src/types/prompt-batcher.d.ts.map +1 -0
  3446. package/packages/typescript/src/types/prompt-batcher.js +6 -0
  3447. package/packages/typescript/src/types/prompt-optimization-hooks.d.ts +41 -0
  3448. package/packages/typescript/src/types/prompt-optimization-hooks.d.ts.map +1 -0
  3449. package/packages/typescript/src/types/prompt-optimization-hooks.js +1 -0
  3450. package/packages/typescript/src/types/prompt-optimization-score-card.d.ts +22 -0
  3451. package/packages/typescript/src/types/prompt-optimization-score-card.d.ts.map +1 -0
  3452. package/packages/typescript/src/types/prompt-optimization-score-card.js +72 -0
  3453. package/packages/typescript/src/types/prompt-optimization-trace.d.ts +53 -0
  3454. package/packages/typescript/src/types/prompt-optimization-trace.d.ts.map +1 -0
  3455. package/packages/typescript/src/types/prompt-optimization-trace.js +19 -0
  3456. package/packages/typescript/src/types/prompts.d.ts +39 -0
  3457. package/packages/typescript/src/types/prompts.d.ts.map +1 -0
  3458. package/packages/typescript/src/types/prompts.js +7 -0
  3459. package/packages/typescript/src/types/proto.d.ts +60 -0
  3460. package/packages/typescript/src/types/proto.d.ts.map +1 -0
  3461. package/packages/typescript/src/types/proto.js +53 -0
  3462. package/packages/typescript/src/types/runtime.d.ts +445 -0
  3463. package/packages/typescript/src/types/runtime.d.ts.map +1 -0
  3464. package/packages/typescript/src/types/runtime.js +1 -0
  3465. package/packages/typescript/src/types/schema-builder.d.ts +43 -0
  3466. package/packages/typescript/src/types/schema-builder.d.ts.map +1 -0
  3467. package/packages/typescript/src/types/schema-builder.js +16 -0
  3468. package/packages/typescript/src/types/schema.d.ts +99 -0
  3469. package/packages/typescript/src/types/schema.d.ts.map +1 -0
  3470. package/packages/typescript/src/types/schema.js +11 -0
  3471. package/packages/typescript/src/types/service-interfaces.d.ts +1200 -0
  3472. package/packages/typescript/src/types/service-interfaces.d.ts.map +1 -0
  3473. package/packages/typescript/src/types/service-interfaces.js +81 -0
  3474. package/packages/typescript/src/types/service.d.ts +175 -0
  3475. package/packages/typescript/src/types/service.d.ts.map +1 -0
  3476. package/packages/typescript/src/types/service.js +79 -0
  3477. package/packages/typescript/src/types/settings.d.ts +36 -0
  3478. package/packages/typescript/src/types/settings.d.ts.map +1 -0
  3479. package/packages/typescript/src/types/settings.js +1 -0
  3480. package/packages/typescript/src/types/state.d.ts +251 -0
  3481. package/packages/typescript/src/types/state.d.ts.map +1 -0
  3482. package/packages/typescript/src/types/state.js +1 -0
  3483. package/packages/typescript/src/types/streaming.d.ts +93 -0
  3484. package/packages/typescript/src/types/streaming.d.ts.map +1 -0
  3485. package/packages/typescript/src/types/streaming.js +21 -0
  3486. package/packages/typescript/src/types/task.d.ts +122 -0
  3487. package/packages/typescript/src/types/task.d.ts.map +1 -0
  3488. package/packages/typescript/src/types/task.js +1 -0
  3489. package/packages/typescript/src/types/tee.d.ts +3 -0
  3490. package/packages/typescript/src/types/tee.d.ts.map +1 -0
  3491. package/packages/typescript/src/types/tee.js +1 -0
  3492. package/packages/typescript/src/types/testing.d.ts +15 -0
  3493. package/packages/typescript/src/types/testing.d.ts.map +1 -0
  3494. package/packages/typescript/src/types/testing.js +1 -0
  3495. package/packages/typescript/src/types/tools.d.ts +166 -0
  3496. package/packages/typescript/src/types/tools.d.ts.map +1 -0
  3497. package/packages/typescript/src/types/tools.js +384 -0
  3498. package/packages/typescript/src/types/trigger.d.ts +44 -0
  3499. package/packages/typescript/src/types/trigger.d.ts.map +1 -0
  3500. package/packages/typescript/src/types/trigger.js +1 -0
  3501. package/packages/typescript/src/utils/action-results.d.ts +33 -0
  3502. package/packages/typescript/src/utils/action-results.d.ts.map +1 -0
  3503. package/packages/typescript/src/utils/action-results.js +169 -0
  3504. package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts +52 -0
  3505. package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts.map +1 -0
  3506. package/packages/typescript/src/utils/batch-queue/batch-processor.js +126 -0
  3507. package/packages/typescript/src/utils/batch-queue/index.d.ts +97 -0
  3508. package/packages/typescript/src/utils/batch-queue/index.d.ts.map +1 -0
  3509. package/packages/typescript/src/utils/batch-queue/index.js +175 -0
  3510. package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts +53 -0
  3511. package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts.map +1 -0
  3512. package/packages/typescript/src/utils/batch-queue/priority-queue.js +128 -0
  3513. package/packages/typescript/src/utils/batch-queue/semaphore.d.ts +18 -0
  3514. package/packages/typescript/src/utils/batch-queue/semaphore.d.ts.map +1 -0
  3515. package/packages/typescript/src/utils/batch-queue/semaphore.js +34 -0
  3516. package/packages/typescript/src/utils/batch-queue/task-drain.d.ts +57 -0
  3517. package/packages/typescript/src/utils/batch-queue/task-drain.d.ts.map +1 -0
  3518. package/packages/typescript/src/utils/batch-queue/task-drain.js +150 -0
  3519. package/packages/typescript/src/utils/batch-queue.d.ts +20 -0
  3520. package/packages/typescript/src/utils/batch-queue.d.ts.map +1 -0
  3521. package/packages/typescript/src/utils/batch-queue.js +19 -0
  3522. package/packages/typescript/src/utils/boolean.d.ts +50 -0
  3523. package/packages/typescript/src/utils/boolean.d.ts.map +1 -0
  3524. package/packages/typescript/src/utils/boolean.js +73 -0
  3525. package/packages/typescript/src/utils/buffer.d.ts +107 -0
  3526. package/packages/typescript/src/utils/buffer.d.ts.map +1 -0
  3527. package/packages/typescript/src/utils/buffer.js +229 -0
  3528. package/packages/typescript/src/utils/channel-utils.d.ts +274 -0
  3529. package/packages/typescript/src/utils/channel-utils.d.ts.map +1 -0
  3530. package/packages/typescript/src/utils/channel-utils.js +337 -0
  3531. package/packages/typescript/src/utils/context-catalog.d.ts +6 -0
  3532. package/packages/typescript/src/utils/context-catalog.d.ts.map +1 -0
  3533. package/packages/typescript/src/utils/context-catalog.js +264 -0
  3534. package/packages/typescript/src/utils/context-routing.d.ts +28 -0
  3535. package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
  3536. package/packages/typescript/src/utils/context-routing.js +294 -0
  3537. package/packages/typescript/src/utils/crypto-compat.d.ts +92 -0
  3538. package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
  3539. package/packages/typescript/src/utils/crypto-compat.js +373 -0
  3540. package/packages/typescript/src/utils/deterministic.d.ts +9 -0
  3541. package/packages/typescript/src/utils/deterministic.d.ts.map +1 -0
  3542. package/packages/typescript/src/utils/deterministic.js +70 -0
  3543. package/packages/typescript/src/utils/environment.d.ts +125 -0
  3544. package/packages/typescript/src/utils/environment.d.ts.map +1 -0
  3545. package/packages/typescript/src/utils/environment.js +290 -0
  3546. package/packages/typescript/src/utils/example-names.d.ts +3 -0
  3547. package/packages/typescript/src/utils/example-names.d.ts.map +1 -0
  3548. package/packages/typescript/src/utils/example-names.js +30 -0
  3549. package/packages/typescript/src/utils/json-llm.d.ts +17 -0
  3550. package/packages/typescript/src/utils/json-llm.d.ts.map +1 -0
  3551. package/packages/typescript/src/utils/json-llm.js +33 -0
  3552. package/packages/typescript/src/utils/message-text.d.ts +5 -0
  3553. package/packages/typescript/src/utils/message-text.d.ts.map +1 -0
  3554. package/packages/typescript/src/utils/message-text.js +24 -0
  3555. package/packages/typescript/src/utils/model-errors.d.ts +3 -0
  3556. package/packages/typescript/src/utils/model-errors.d.ts.map +1 -0
  3557. package/packages/typescript/src/utils/model-errors.js +23 -0
  3558. package/packages/typescript/src/utils/node.d.ts +8 -0
  3559. package/packages/typescript/src/utils/node.d.ts.map +1 -0
  3560. package/packages/typescript/src/utils/node.js +12 -0
  3561. package/packages/typescript/src/utils/paths.d.ts +97 -0
  3562. package/packages/typescript/src/utils/paths.d.ts.map +1 -0
  3563. package/packages/typescript/src/utils/paths.js +204 -0
  3564. package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts +163 -0
  3565. package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts.map +1 -0
  3566. package/packages/typescript/src/utils/prompt-batcher/batcher.js +896 -0
  3567. package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts +15 -0
  3568. package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts.map +1 -0
  3569. package/packages/typescript/src/utils/prompt-batcher/dispatcher.js +230 -0
  3570. package/packages/typescript/src/utils/prompt-batcher/shared.d.ts +66 -0
  3571. package/packages/typescript/src/utils/prompt-batcher/shared.d.ts.map +1 -0
  3572. package/packages/typescript/src/utils/prompt-batcher/shared.js +101 -0
  3573. package/packages/typescript/src/utils/prompt-batcher.d.ts +5 -0
  3574. package/packages/typescript/src/utils/prompt-batcher.d.ts.map +1 -0
  3575. package/packages/typescript/src/utils/prompt-batcher.js +4 -0
  3576. package/packages/typescript/src/utils/prompt-compression.d.ts +6 -0
  3577. package/packages/typescript/src/utils/prompt-compression.d.ts.map +1 -0
  3578. package/packages/typescript/src/utils/prompt-compression.js +14 -0
  3579. package/packages/typescript/src/utils/retry.d.ts +128 -0
  3580. package/packages/typescript/src/utils/retry.d.ts.map +1 -0
  3581. package/packages/typescript/src/utils/retry.js +190 -0
  3582. package/packages/typescript/src/utils/server-health.d.ts +35 -0
  3583. package/packages/typescript/src/utils/server-health.d.ts.map +1 -0
  3584. package/packages/typescript/src/utils/server-health.js +76 -0
  3585. package/packages/typescript/src/utils/slice-to-fit-budget.d.ts +12 -0
  3586. package/packages/typescript/src/utils/slice-to-fit-budget.d.ts.map +1 -0
  3587. package/packages/typescript/src/utils/slice-to-fit-budget.js +36 -0
  3588. package/packages/typescript/src/utils/state-dir.d.ts +18 -0
  3589. package/packages/typescript/src/utils/state-dir.d.ts.map +1 -0
  3590. package/packages/typescript/src/utils/state-dir.js +21 -0
  3591. package/packages/typescript/src/utils/streaming.d.ts +275 -0
  3592. package/packages/typescript/src/utils/streaming.d.ts.map +1 -0
  3593. package/packages/typescript/src/utils/streaming.js +774 -0
  3594. package/packages/typescript/src/utils/text-normalize.d.ts +23 -0
  3595. package/packages/typescript/src/utils/text-normalize.d.ts.map +1 -0
  3596. package/packages/typescript/src/utils/text-normalize.js +42 -0
  3597. package/packages/typescript/src/utils/text-splitting.d.ts +14 -0
  3598. package/packages/typescript/src/utils/text-splitting.d.ts.map +1 -0
  3599. package/packages/typescript/src/utils/text-splitting.js +66 -0
  3600. package/packages/typescript/src/utils/toon.d.ts +8 -0
  3601. package/packages/typescript/src/utils/toon.d.ts.map +1 -0
  3602. package/packages/typescript/src/utils/toon.js +347 -0
  3603. package/packages/typescript/src/utils/type-guards.d.ts +25 -0
  3604. package/packages/typescript/src/utils/type-guards.d.ts.map +1 -0
  3605. package/packages/typescript/src/utils/type-guards.js +73 -0
  3606. package/packages/typescript/src/utils/union-find.d.ts +30 -0
  3607. package/packages/typescript/src/utils/union-find.d.ts.map +1 -0
  3608. package/packages/typescript/src/utils/union-find.js +81 -0
  3609. package/packages/typescript/src/utils.d.ts +194 -0
  3610. package/packages/typescript/src/utils.d.ts.map +1 -0
  3611. package/packages/typescript/src/utils.js +1126 -0
  3612. package/packages/typescript/src/validation/index.d.ts +8 -0
  3613. package/packages/typescript/src/validation/index.d.ts.map +1 -0
  3614. package/packages/typescript/src/validation/index.js +7 -0
  3615. package/packages/typescript/src/validation/keywords.d.ts +26 -0
  3616. package/packages/typescript/src/validation/keywords.d.ts.map +1 -0
  3617. package/packages/typescript/src/validation/keywords.js +76 -0
  3618. package/packages/typescript/src/validation/secrets.d.ts +94 -0
  3619. package/packages/typescript/src/validation/secrets.d.ts.map +1 -0
  3620. package/packages/typescript/src/validation/secrets.js +399 -0
  3621. package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +9 -0
  3622. package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +1 -0
  3623. package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +8 -0
  3624. package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +14 -0
  3625. package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +1 -0
  3626. package/packages/ui/src/components/composites/chat/chat-bubble.js +7 -0
  3627. package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +14 -0
  3628. package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +1 -0
  3629. package/packages/ui/src/components/composites/chat/chat-composer-shell.js +25 -0
  3630. package/packages/ui/src/components/composites/chat/chat-composer.d.ts +45 -0
  3631. package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +1 -0
  3632. package/packages/ui/src/components/composites/chat/chat-composer.js +297 -0
  3633. package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +21 -0
  3634. package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +1 -0
  3635. package/packages/ui/src/components/composites/chat/chat-conversation-item.js +118 -0
  3636. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +22 -0
  3637. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +1 -0
  3638. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +14 -0
  3639. package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +19 -0
  3640. package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +1 -0
  3641. package/packages/ui/src/components/composites/chat/chat-empty-state.js +8 -0
  3642. package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +14 -0
  3643. package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +1 -0
  3644. package/packages/ui/src/components/composites/chat/chat-message-actions.js +10 -0
  3645. package/packages/ui/src/components/composites/chat/chat-message.d.ts +18 -0
  3646. package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +1 -0
  3647. package/packages/ui/src/components/composites/chat/chat-message.js +260 -0
  3648. package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +54 -0
  3649. package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +1 -0
  3650. package/packages/ui/src/components/composites/chat/chat-sidebar.js +64 -0
  3651. package/packages/ui/src/components/composites/chat/chat-source.d.ts +23 -0
  3652. package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +1 -0
  3653. package/packages/ui/src/components/composites/chat/chat-source.js +60 -0
  3654. package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +22 -0
  3655. package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +1 -0
  3656. package/packages/ui/src/components/composites/chat/chat-thread-layout.js +37 -0
  3657. package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +19 -0
  3658. package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +1 -0
  3659. package/packages/ui/src/components/composites/chat/chat-transcript.js +88 -0
  3660. package/packages/ui/src/components/composites/chat/chat-types.d.ts +91 -0
  3661. package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +1 -0
  3662. package/packages/ui/src/components/composites/chat/chat-types.js +1 -0
  3663. package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +10 -0
  3664. package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +1 -0
  3665. package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +10 -0
  3666. package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +13 -0
  3667. package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +1 -0
  3668. package/packages/ui/src/components/composites/chat/create-task-popover.js +44 -0
  3669. package/packages/ui/src/components/composites/chat/index.d.ts +17 -0
  3670. package/packages/ui/src/components/composites/chat/index.d.ts.map +1 -0
  3671. package/packages/ui/src/components/composites/chat/index.js +16 -0
  3672. package/packages/ui/src/components/composites/form-field/form-field.d.ts +14 -0
  3673. package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +1 -0
  3674. package/packages/ui/src/components/composites/form-field/form-field.js +8 -0
  3675. package/packages/ui/src/components/composites/form-field/index.d.ts +2 -0
  3676. package/packages/ui/src/components/composites/form-field/index.d.ts.map +1 -0
  3677. package/packages/ui/src/components/composites/form-field/index.js +1 -0
  3678. package/packages/ui/src/components/composites/index.d.ts +27 -0
  3679. package/packages/ui/src/components/composites/index.d.ts.map +1 -0
  3680. package/packages/ui/src/components/composites/index.js +26 -0
  3681. package/packages/ui/src/components/composites/page-panel/index.d.ts +29 -0
  3682. package/packages/ui/src/components/composites/page-panel/index.d.ts.map +1 -0
  3683. package/packages/ui/src/components/composites/page-panel/index.js +28 -0
  3684. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +4 -0
  3685. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +1 -0
  3686. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +60 -0
  3687. package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +3 -0
  3688. package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +1 -0
  3689. package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +15 -0
  3690. package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +5 -0
  3691. package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +1 -0
  3692. package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +9 -0
  3693. package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +7 -0
  3694. package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +1 -0
  3695. package/packages/ui/src/components/composites/page-panel/page-panel-header.js +30 -0
  3696. package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +3 -0
  3697. package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +1 -0
  3698. package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +13 -0
  3699. package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +7 -0
  3700. package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +1 -0
  3701. package/packages/ui/src/components/composites/page-panel/page-panel-root.js +17 -0
  3702. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +4 -0
  3703. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +1 -0
  3704. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +6 -0
  3705. package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +66 -0
  3706. package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +1 -0
  3707. package/packages/ui/src/components/composites/page-panel/page-panel-types.js +1 -0
  3708. package/packages/ui/src/components/composites/search/index.d.ts +3 -0
  3709. package/packages/ui/src/components/composites/search/index.d.ts.map +1 -0
  3710. package/packages/ui/src/components/composites/search/index.js +2 -0
  3711. package/packages/ui/src/components/composites/search/search-input.d.ts.map +1 -0
  3712. package/packages/ui/src/components/composites/search/search-input.js +10 -0
  3713. package/packages/ui/src/components/composites/search/searchbar.d.ts +18 -0
  3714. package/packages/ui/src/components/composites/search/searchbar.d.ts.map +1 -0
  3715. package/packages/ui/src/components/composites/search/searchbar.js +25 -0
  3716. package/packages/ui/src/components/composites/sidebar/index.d.ts +11 -0
  3717. package/packages/ui/src/components/composites/sidebar/index.d.ts.map +1 -0
  3718. package/packages/ui/src/components/composites/sidebar/index.js +10 -0
  3719. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +15 -0
  3720. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +1 -0
  3721. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +292 -0
  3722. package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +4 -0
  3723. package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +1 -0
  3724. package/packages/ui/src/components/composites/sidebar/sidebar-body.js +7 -0
  3725. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +11 -0
  3726. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +1 -0
  3727. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +13 -0
  3728. package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +78 -0
  3729. package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -0
  3730. package/packages/ui/src/components/composites/sidebar/sidebar-content.js +94 -0
  3731. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +3 -0
  3732. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +1 -0
  3733. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +14 -0
  3734. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +3 -0
  3735. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +1 -0
  3736. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +6 -0
  3737. package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +9 -0
  3738. package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +1 -0
  3739. package/packages/ui/src/components/composites/sidebar/sidebar-header.js +6 -0
  3740. package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +3 -0
  3741. package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +1 -0
  3742. package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +18 -0
  3743. package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +4 -0
  3744. package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +1 -0
  3745. package/packages/ui/src/components/composites/sidebar/sidebar-root.js +491 -0
  3746. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +3 -0
  3747. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +1 -0
  3748. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +18 -0
  3749. package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +77 -0
  3750. package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +1 -0
  3751. package/packages/ui/src/components/composites/sidebar/sidebar-types.js +1 -0
  3752. package/packages/ui/src/components/composites/skills/index.d.ts +2 -0
  3753. package/packages/ui/src/components/composites/skills/index.d.ts.map +1 -0
  3754. package/packages/ui/src/components/composites/skills/index.js +1 -0
  3755. package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +16 -0
  3756. package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +1 -0
  3757. package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +7 -0
  3758. package/packages/ui/src/components/composites/trajectories/index.d.ts +5 -0
  3759. package/packages/ui/src/components/composites/trajectories/index.d.ts.map +1 -0
  3760. package/packages/ui/src/components/composites/trajectories/index.js +4 -0
  3761. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +13 -0
  3762. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +1 -0
  3763. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +13 -0
  3764. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +34 -0
  3765. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +1 -0
  3766. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +14 -0
  3767. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +26 -0
  3768. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +1 -0
  3769. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +46 -0
  3770. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +15 -0
  3771. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +1 -0
  3772. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +8 -0
  3773. package/packages/ui/src/components/primitives/index.d.ts +26 -0
  3774. package/packages/ui/src/components/primitives/index.d.ts.map +1 -0
  3775. package/packages/ui/src/components/primitives/index.js +25 -0
  3776. package/packages/ui/src/components/ui/admin-dialog.d.ts +50 -0
  3777. package/packages/ui/src/components/ui/admin-dialog.d.ts.map +1 -0
  3778. package/packages/ui/src/components/ui/admin-dialog.js +48 -0
  3779. package/packages/ui/src/components/ui/badge.d.ts +10 -0
  3780. package/packages/ui/src/components/ui/badge.d.ts.map +1 -0
  3781. package/packages/ui/src/components/ui/badge.js +21 -0
  3782. package/packages/ui/src/components/ui/banner.d.ts +17 -0
  3783. package/packages/ui/src/components/ui/banner.d.ts.map +1 -0
  3784. package/packages/ui/src/components/ui/banner.js +29 -0
  3785. package/packages/ui/src/components/ui/button.d.ts +13 -0
  3786. package/packages/ui/src/components/ui/button.d.ts.map +1 -0
  3787. package/packages/ui/src/components/ui/button.js +40 -0
  3788. package/packages/ui/src/components/ui/card.d.ts +15 -0
  3789. package/packages/ui/src/components/ui/card.d.ts.map +1 -0
  3790. package/packages/ui/src/components/ui/card.js +32 -0
  3791. package/packages/ui/src/components/ui/checkbox.d.ts.map +1 -0
  3792. package/packages/ui/src/components/ui/confirm-delete.d.ts +20 -0
  3793. package/packages/ui/src/components/ui/confirm-delete.d.ts.map +1 -0
  3794. package/packages/ui/src/components/ui/confirm-delete.js +16 -0
  3795. package/packages/ui/src/components/ui/confirm-dialog.d.ts +49 -0
  3796. package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +1 -0
  3797. package/packages/ui/src/components/ui/confirm-dialog.js +90 -0
  3798. package/packages/ui/src/components/ui/connection-status.d.ts +15 -0
  3799. package/packages/ui/src/components/ui/connection-status.d.ts.map +1 -0
  3800. package/packages/ui/src/components/ui/connection-status.js +25 -0
  3801. package/packages/ui/src/components/ui/copy-button.d.ts.map +1 -0
  3802. package/packages/ui/src/components/ui/dialog.d.ts +25 -0
  3803. package/packages/ui/src/components/ui/dialog.d.ts.map +1 -0
  3804. package/packages/ui/src/components/ui/dialog.js +23 -0
  3805. package/packages/ui/src/components/ui/drawer-sheet.d.ts +19 -0
  3806. package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +1 -0
  3807. package/packages/ui/src/components/ui/drawer-sheet.js +21 -0
  3808. package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +1 -0
  3809. package/packages/ui/src/components/ui/dropdown-menu.js +35 -0
  3810. package/packages/ui/src/components/ui/empty-state.d.ts.map +1 -0
  3811. package/packages/ui/src/components/ui/error-boundary.d.ts +22 -0
  3812. package/packages/ui/src/components/ui/error-boundary.d.ts.map +1 -0
  3813. package/packages/ui/src/components/ui/error-boundary.js +27 -0
  3814. package/packages/ui/src/components/ui/field-switch.d.ts +8 -0
  3815. package/packages/ui/src/components/ui/field-switch.d.ts.map +1 -0
  3816. package/packages/ui/src/components/ui/field-switch.js +10 -0
  3817. package/packages/ui/src/components/ui/field.d.ts +12 -0
  3818. package/packages/ui/src/components/ui/field.d.ts.map +1 -0
  3819. package/packages/ui/src/components/ui/field.js +21 -0
  3820. package/packages/ui/src/components/ui/form-select.d.ts +14 -0
  3821. package/packages/ui/src/components/ui/form-select.d.ts.map +1 -0
  3822. package/packages/ui/src/components/ui/form-select.js +9 -0
  3823. package/packages/ui/src/components/ui/grid.d.ts +10 -0
  3824. package/packages/ui/src/components/ui/grid.d.ts.map +1 -0
  3825. package/packages/ui/src/components/ui/grid.js +31 -0
  3826. package/packages/ui/src/components/ui/input.d.ts +12 -0
  3827. package/packages/ui/src/components/ui/input.d.ts.map +1 -0
  3828. package/packages/ui/src/components/ui/input.js +29 -0
  3829. package/packages/ui/src/components/ui/label.d.ts +5 -0
  3830. package/packages/ui/src/components/ui/label.d.ts.map +1 -0
  3831. package/packages/ui/src/components/ui/label.js +10 -0
  3832. package/packages/ui/src/components/ui/new-action-button.d.ts +7 -0
  3833. package/packages/ui/src/components/ui/new-action-button.d.ts.map +1 -0
  3834. package/packages/ui/src/components/ui/new-action-button.js +13 -0
  3835. package/packages/ui/src/components/ui/popover.d.ts.map +1 -0
  3836. package/packages/ui/src/components/ui/save-footer.d.ts.map +1 -0
  3837. package/packages/ui/src/components/ui/save-footer.js +10 -0
  3838. package/packages/ui/src/components/ui/section-card.d.ts.map +1 -0
  3839. package/packages/ui/src/components/ui/section-card.js +10 -0
  3840. package/packages/ui/src/components/ui/segmented-control.d.ts +18 -0
  3841. package/packages/ui/src/components/ui/segmented-control.d.ts.map +1 -0
  3842. package/packages/ui/src/components/ui/segmented-control.js +10 -0
  3843. package/packages/ui/src/components/ui/select.d.ts.map +1 -0
  3844. package/packages/ui/src/components/ui/select.js +27 -0
  3845. package/packages/ui/src/components/ui/separator.d.ts.map +1 -0
  3846. package/packages/ui/src/components/ui/settings-controls.d.ts +41 -0
  3847. package/packages/ui/src/components/ui/settings-controls.d.ts.map +1 -0
  3848. package/packages/ui/src/components/ui/settings-controls.js +60 -0
  3849. package/packages/ui/src/components/ui/skeleton.d.ts.map +1 -0
  3850. package/packages/ui/src/components/ui/skeleton.js +24 -0
  3851. package/packages/ui/src/components/ui/slider.d.ts.map +1 -0
  3852. package/packages/ui/src/components/ui/slider.js +7 -0
  3853. package/packages/ui/src/components/ui/sonner.d.ts +2 -0
  3854. package/packages/ui/src/components/ui/sonner.d.ts.map +1 -0
  3855. package/packages/ui/src/components/ui/sonner.js +1 -0
  3856. package/packages/ui/src/components/ui/spinner.d.ts.map +1 -0
  3857. package/packages/ui/src/components/ui/stack.d.ts +11 -0
  3858. package/packages/ui/src/components/ui/stack.d.ts.map +1 -0
  3859. package/packages/ui/src/components/ui/stack.js +40 -0
  3860. package/packages/ui/src/components/ui/status-badge.d.ts +27 -0
  3861. package/packages/ui/src/components/ui/status-badge.d.ts.map +1 -0
  3862. package/packages/ui/src/components/ui/status-badge.js +70 -0
  3863. package/packages/ui/src/components/ui/switch.d.ts.map +1 -0
  3864. package/packages/ui/src/components/ui/switch.js +7 -0
  3865. package/packages/ui/src/components/ui/tabs.d.ts.map +1 -0
  3866. package/packages/ui/src/components/ui/tabs.js +12 -0
  3867. package/packages/ui/src/components/ui/tag-editor.d.ts +12 -0
  3868. package/packages/ui/src/components/ui/tag-editor.d.ts.map +1 -0
  3869. package/packages/ui/src/components/ui/tag-editor.js +34 -0
  3870. package/packages/ui/src/components/ui/tag-input.d.ts +3 -0
  3871. package/packages/ui/src/components/ui/tag-input.d.ts.map +1 -0
  3872. package/packages/ui/src/components/ui/tag-input.js +1 -0
  3873. package/packages/ui/src/components/ui/textarea.d.ts +12 -0
  3874. package/packages/ui/src/components/ui/textarea.d.ts.map +1 -0
  3875. package/packages/ui/src/components/ui/textarea.js +29 -0
  3876. package/packages/ui/src/components/ui/themed-select.d.ts +22 -0
  3877. package/packages/ui/src/components/ui/themed-select.d.ts.map +1 -0
  3878. package/packages/ui/src/components/ui/themed-select.js +137 -0
  3879. package/packages/ui/src/components/ui/tooltip-extended.d.ts +54 -0
  3880. package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +1 -0
  3881. package/packages/ui/src/components/ui/tooltip-extended.js +114 -0
  3882. package/packages/ui/src/components/ui/tooltip.d.ts +18 -0
  3883. package/packages/ui/src/components/ui/tooltip.d.ts.map +1 -0
  3884. package/packages/ui/src/components/ui/tooltip.js +13 -0
  3885. package/packages/ui/src/components/ui/typography.d.ts +15 -0
  3886. package/packages/ui/src/components/ui/typography.d.ts.map +1 -0
  3887. package/packages/ui/src/components/ui/typography.js +46 -0
  3888. package/packages/ui/src/hooks/index.d.ts +6 -0
  3889. package/packages/ui/src/hooks/index.d.ts.map +1 -0
  3890. package/packages/ui/src/hooks/index.js +5 -0
  3891. package/packages/ui/src/hooks/useClickOutside.d.ts +3 -0
  3892. package/packages/ui/src/hooks/useClickOutside.d.ts.map +1 -0
  3893. package/packages/ui/src/hooks/useClickOutside.js +22 -0
  3894. package/packages/ui/src/hooks/useDocumentVisibility.d.ts +3 -0
  3895. package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +1 -0
  3896. package/packages/ui/src/hooks/useDocumentVisibility.js +28 -0
  3897. package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +13 -0
  3898. package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
  3899. package/packages/ui/src/hooks/useKeyboardShortcuts.js +34 -0
  3900. package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +16 -0
  3901. package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +1 -0
  3902. package/packages/ui/src/hooks/useLinkedSidebarSelection.js +117 -0
  3903. package/packages/ui/src/hooks/useTimeout.d.ts +5 -0
  3904. package/packages/ui/src/hooks/useTimeout.d.ts.map +1 -0
  3905. package/packages/ui/src/hooks/useTimeout.js +26 -0
  3906. package/packages/ui/src/index.d.ts +8 -0
  3907. package/packages/ui/src/index.d.ts.map +1 -0
  3908. package/packages/ui/src/index.js +7 -0
  3909. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +11 -0
  3910. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +1 -0
  3911. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +37 -0
  3912. package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +2 -0
  3913. package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +1 -0
  3914. package/packages/ui/src/layouts/chat-panel-layout/index.js +1 -0
  3915. package/packages/ui/src/layouts/content-layout/content-layout.d.ts +21 -0
  3916. package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +1 -0
  3917. package/packages/ui/src/layouts/content-layout/content-layout.js +5 -0
  3918. package/packages/ui/src/layouts/content-layout/index.d.ts +2 -0
  3919. package/packages/ui/src/layouts/content-layout/index.d.ts.map +1 -0
  3920. package/packages/ui/src/layouts/content-layout/index.js +1 -0
  3921. package/packages/ui/src/layouts/index.d.ts +5 -0
  3922. package/packages/ui/src/layouts/index.d.ts.map +1 -0
  3923. package/packages/ui/src/layouts/index.js +4 -0
  3924. package/packages/ui/src/layouts/layout-test-utils.d.ts +6 -0
  3925. package/packages/ui/src/layouts/layout-test-utils.d.ts.map +1 -0
  3926. package/packages/ui/src/layouts/layout-test-utils.js +36 -0
  3927. package/packages/ui/src/layouts/page-layout/index.d.ts +5 -0
  3928. package/packages/ui/src/layouts/page-layout/index.d.ts.map +1 -0
  3929. package/packages/ui/src/layouts/page-layout/index.js +4 -0
  3930. package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +287 -0
  3931. package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +1 -0
  3932. package/packages/ui/src/layouts/page-layout/page-layout-header.js +8 -0
  3933. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +3 -0
  3934. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +1 -0
  3935. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +37 -0
  3936. package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +15 -0
  3937. package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +1 -0
  3938. package/packages/ui/src/layouts/page-layout/page-layout-types.js +1 -0
  3939. package/packages/ui/src/layouts/page-layout/page-layout.d.ts +3 -0
  3940. package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +1 -0
  3941. package/packages/ui/src/layouts/page-layout/page-layout.js +5 -0
  3942. package/packages/ui/src/layouts/workspace-layout/index.d.ts +4 -0
  3943. package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +1 -0
  3944. package/packages/ui/src/layouts/workspace-layout/index.js +3 -0
  3945. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +19 -0
  3946. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +1 -0
  3947. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +1 -0
  3948. package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +3 -0
  3949. package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -0
  3950. package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +65 -0
  3951. package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts +13 -0
  3952. package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts.map +1 -0
  3953. package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.js +5 -0
  3954. package/packages/ui/src/lib/floating-layers.d.ts +17 -0
  3955. package/packages/ui/src/lib/floating-layers.d.ts.map +1 -0
  3956. package/packages/ui/src/lib/floating-layers.js +20 -0
  3957. package/packages/ui/src/lib/utils.d.ts +3 -0
  3958. package/packages/ui/src/lib/utils.d.ts.map +1 -0
  3959. package/packages/ui/src/lib/utils.js +5 -0
  3960. package/packages/ui/src/stories/layout-story-fixtures.d.ts +14 -0
  3961. package/packages/ui/src/stories/layout-story-fixtures.d.ts.map +1 -0
  3962. package/packages/ui/src/stories/layout-story-fixtures.js +33 -0
  3963. package/packages/ui/src/types/onboarding.d.ts +8 -0
  3964. package/packages/ui/src/types/onboarding.d.ts.map +1 -0
  3965. package/packages/ui/src/types/onboarding.js +17 -0
  3966. package/plugins/plugin-browser-bridge/src/actions.d.ts +44 -0
  3967. package/plugins/plugin-browser-bridge/src/actions.d.ts.map +1 -0
  3968. package/plugins/plugin-browser-bridge/src/actions.js +234 -0
  3969. package/plugins/plugin-browser-bridge/src/contracts.d.ts +272 -0
  3970. package/plugins/plugin-browser-bridge/src/contracts.d.ts.map +1 -0
  3971. package/plugins/plugin-browser-bridge/src/contracts.js +48 -0
  3972. package/plugins/plugin-browser-bridge/src/index.d.ts +19 -0
  3973. package/plugins/plugin-browser-bridge/src/index.d.ts.map +1 -0
  3974. package/plugins/plugin-browser-bridge/src/index.js +18 -0
  3975. package/plugins/plugin-browser-bridge/src/packaging.d.ts +27 -0
  3976. package/plugins/plugin-browser-bridge/src/packaging.d.ts.map +1 -0
  3977. package/plugins/plugin-browser-bridge/src/packaging.js +503 -0
  3978. package/plugins/plugin-browser-bridge/src/plugin.d.ts +10 -0
  3979. package/plugins/plugin-browser-bridge/src/plugin.d.ts.map +1 -0
  3980. package/plugins/plugin-browser-bridge/src/plugin.js +140 -0
  3981. package/plugins/plugin-browser-bridge/src/routes.d.ts +37 -0
  3982. package/plugins/plugin-browser-bridge/src/routes.d.ts.map +1 -0
  3983. package/plugins/plugin-browser-bridge/src/routes.js +496 -0
  3984. package/plugins/plugin-browser-bridge/src/schema.d.ts +2250 -0
  3985. package/plugins/plugin-browser-bridge/src/schema.d.ts.map +1 -0
  3986. package/plugins/plugin-browser-bridge/src/schema.js +111 -0
  3987. package/plugins/plugin-browser-bridge/src/service.d.ts +28 -0
  3988. package/plugins/plugin-browser-bridge/src/service.d.ts.map +1 -0
  3989. package/plugins/plugin-browser-bridge/src/service.js +1 -0
  3990. package/styles/electrobun-mac-window-drag.css +94 -0
  3991. package/styles/theme.css +70 -190
  3992. package/components/ui/badge.d.ts +0 -10
  3993. package/components/ui/badge.d.ts.map +0 -1
  3994. package/components/ui/badge.js +0 -20
  3995. package/components/ui/banner.d.ts +0 -18
  3996. package/components/ui/banner.d.ts.map +0 -1
  3997. package/components/ui/banner.js +0 -27
  3998. package/components/ui/button.d.ts +0 -12
  3999. package/components/ui/button.d.ts.map +0 -1
  4000. package/components/ui/button.js +0 -33
  4001. package/components/ui/card.d.ts +0 -9
  4002. package/components/ui/card.d.ts.map +0 -1
  4003. package/components/ui/card.js +0 -16
  4004. package/components/ui/chat-atoms.d.ts +0 -26
  4005. package/components/ui/chat-atoms.d.ts.map +0 -1
  4006. package/components/ui/chat-atoms.js +0 -17
  4007. package/components/ui/checkbox.d.ts.map +0 -1
  4008. package/components/ui/confirm-delete.d.ts +0 -12
  4009. package/components/ui/confirm-delete.d.ts.map +0 -1
  4010. package/components/ui/confirm-delete.js +0 -13
  4011. package/components/ui/confirm-dialog.d.ts +0 -24
  4012. package/components/ui/confirm-dialog.d.ts.map +0 -1
  4013. package/components/ui/confirm-dialog.js +0 -55
  4014. package/components/ui/connection-status.d.ts +0 -9
  4015. package/components/ui/connection-status.d.ts.map +0 -1
  4016. package/components/ui/connection-status.js +0 -25
  4017. package/components/ui/copy-button.d.ts.map +0 -1
  4018. package/components/ui/dialog.d.ts +0 -20
  4019. package/components/ui/dialog.d.ts.map +0 -1
  4020. package/components/ui/dialog.js +0 -22
  4021. package/components/ui/dropdown-menu.d.ts.map +0 -1
  4022. package/components/ui/dropdown-menu.js +0 -35
  4023. package/components/ui/empty-state.d.ts.map +0 -1
  4024. package/components/ui/error-boundary.d.ts +0 -18
  4025. package/components/ui/error-boundary.d.ts.map +0 -1
  4026. package/components/ui/error-boundary.js +0 -27
  4027. package/components/ui/grid.d.ts +0 -11
  4028. package/components/ui/grid.d.ts.map +0 -1
  4029. package/components/ui/grid.js +0 -30
  4030. package/components/ui/input.d.ts +0 -6
  4031. package/components/ui/input.d.ts.map +0 -1
  4032. package/components/ui/input.js +0 -8
  4033. package/components/ui/label.d.ts +0 -6
  4034. package/components/ui/label.d.ts.map +0 -1
  4035. package/components/ui/label.js +0 -9
  4036. package/components/ui/popover.d.ts.map +0 -1
  4037. package/components/ui/save-footer.d.ts.map +0 -1
  4038. package/components/ui/save-footer.js +0 -9
  4039. package/components/ui/search-bar.d.ts +0 -17
  4040. package/components/ui/search-bar.d.ts.map +0 -1
  4041. package/components/ui/search-bar.js +0 -19
  4042. package/components/ui/search-input.d.ts.map +0 -1
  4043. package/components/ui/search-input.js +0 -9
  4044. package/components/ui/section-card.d.ts.map +0 -1
  4045. package/components/ui/section-card.js +0 -9
  4046. package/components/ui/select.d.ts.map +0 -1
  4047. package/components/ui/select.js +0 -26
  4048. package/components/ui/separator.d.ts.map +0 -1
  4049. package/components/ui/skeleton.d.ts.map +0 -1
  4050. package/components/ui/skeleton.js +0 -25
  4051. package/components/ui/slider.d.ts.map +0 -1
  4052. package/components/ui/slider.js +0 -7
  4053. package/components/ui/sonner.d.ts +0 -5
  4054. package/components/ui/sonner.d.ts.map +0 -1
  4055. package/components/ui/sonner.js +0 -15
  4056. package/components/ui/spinner.d.ts.map +0 -1
  4057. package/components/ui/stack.d.ts +0 -13
  4058. package/components/ui/stack.d.ts.map +0 -1
  4059. package/components/ui/stack.js +0 -39
  4060. package/components/ui/status-badge.d.ts +0 -20
  4061. package/components/ui/status-badge.d.ts.map +0 -1
  4062. package/components/ui/status-badge.js +0 -41
  4063. package/components/ui/switch.d.ts.map +0 -1
  4064. package/components/ui/switch.js +0 -7
  4065. package/components/ui/tabs.d.ts.map +0 -1
  4066. package/components/ui/tabs.js +0 -12
  4067. package/components/ui/tag-editor.d.ts +0 -24
  4068. package/components/ui/tag-editor.d.ts.map +0 -1
  4069. package/components/ui/tag-editor.js +0 -32
  4070. package/components/ui/tag-input.d.ts +0 -19
  4071. package/components/ui/tag-input.d.ts.map +0 -1
  4072. package/components/ui/tag-input.js +0 -28
  4073. package/components/ui/textarea.d.ts +0 -6
  4074. package/components/ui/textarea.d.ts.map +0 -1
  4075. package/components/ui/textarea.js +0 -8
  4076. package/components/ui/themed-select.d.ts +0 -27
  4077. package/components/ui/themed-select.d.ts.map +0 -1
  4078. package/components/ui/themed-select.js +0 -57
  4079. package/components/ui/tooltip-extended.d.ts +0 -76
  4080. package/components/ui/tooltip-extended.d.ts.map +0 -1
  4081. package/components/ui/tooltip-extended.js +0 -128
  4082. package/components/ui/tooltip.d.ts +0 -8
  4083. package/components/ui/tooltip.d.ts.map +0 -1
  4084. package/components/ui/tooltip.js +0 -10
  4085. package/components/ui/typography.d.ts +0 -17
  4086. package/components/ui/typography.d.ts.map +0 -1
  4087. package/components/ui/typography.js +0 -44
  4088. package/index.d.ts +0 -42
  4089. package/index.d.ts.map +0 -1
  4090. package/index.js +0 -43
  4091. package/lib/button-styles.d.ts +0 -12
  4092. package/lib/button-styles.d.ts.map +0 -1
  4093. package/lib/button-styles.js +0 -11
  4094. package/lib/utils.d.ts +0 -6
  4095. package/lib/utils.d.ts.map +0 -1
  4096. package/lib/utils.js +0 -8
  4097. /package/{components/ui → packages/ui/src/components/composites/search}/search-input.d.ts +0 -0
  4098. /package/{components → packages/ui/src/components}/ui/checkbox.d.ts +0 -0
  4099. /package/{components → packages/ui/src/components}/ui/checkbox.js +0 -0
  4100. /package/{components → packages/ui/src/components}/ui/copy-button.d.ts +0 -0
  4101. /package/{components → packages/ui/src/components}/ui/copy-button.js +0 -0
  4102. /package/{components → packages/ui/src/components}/ui/dropdown-menu.d.ts +0 -0
  4103. /package/{components → packages/ui/src/components}/ui/empty-state.d.ts +0 -0
  4104. /package/{components → packages/ui/src/components}/ui/empty-state.js +0 -0
  4105. /package/{components → packages/ui/src/components}/ui/popover.d.ts +0 -0
  4106. /package/{components → packages/ui/src/components}/ui/popover.js +0 -0
  4107. /package/{components → packages/ui/src/components}/ui/save-footer.d.ts +0 -0
  4108. /package/{components → packages/ui/src/components}/ui/section-card.d.ts +0 -0
  4109. /package/{components → packages/ui/src/components}/ui/select.d.ts +0 -0
  4110. /package/{components → packages/ui/src/components}/ui/separator.d.ts +0 -0
  4111. /package/{components → packages/ui/src/components}/ui/separator.js +0 -0
  4112. /package/{components → packages/ui/src/components}/ui/skeleton.d.ts +0 -0
  4113. /package/{components → packages/ui/src/components}/ui/slider.d.ts +0 -0
  4114. /package/{components → packages/ui/src/components}/ui/spinner.d.ts +0 -0
  4115. /package/{components → packages/ui/src/components}/ui/spinner.js +0 -0
  4116. /package/{components → packages/ui/src/components}/ui/switch.d.ts +0 -0
  4117. /package/{components → packages/ui/src/components}/ui/tabs.d.ts +0 -0
@@ -0,0 +1,3524 @@
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 { resolveConfigEnvForProcess } from "./operations/vault-bridge.js";
24
+ import { resolvePlugins } from "./plugin-resolver.js";
25
+ import { CUSTOM_PLUGINS_DIRNAME as CUSTOM_RUNTIME_PLUGINS_DIRNAME, STATIC_ELIZA_PLUGINS, } from "./plugin-types.js";
26
+ export { CHANNEL_PLUGIN_MAP, collectPluginNames, OPTIONAL_PLUGIN_MAP, PROVIDER_PLUGIN_MAP, } from "./plugin-collector.js";
27
+ import { applyAdvancedCapabilitySettings, resolveAdvancedCapabilitiesEnabled, } from "./advanced-capabilities-config.js";
28
+ export { CUSTOM_PLUGINS_DIRNAME, EJECTED_PLUGINS_DIRNAME, ensureBrowserServerLink, findPluginBrowserStagehandDir, findRuntimePluginExport, mergeDropInPlugins, repairBrokenInstallRecord, resolveElizaPluginImportSpecifier, resolvePackageEntry, STATIC_ELIZA_PLUGINS, scanDropInPlugins, shouldIgnoreMissingPluginExport, } from "./plugin-types.js";
29
+ // resolvePlugins is re-exported via index.ts from ./plugin-resolver
30
+ // `@elizaos/app-lifeops` and `@elizaos/app-companion` are NOT eagerly imported
31
+ // here. Both packages transitively import from `@elizaos/agent` (e.g.
32
+ // `hasOwnerAccess` from this package's barrel) — a top-level static import
33
+ // would form a module-init cycle that leaves named exports of the app-lifeops
34
+ // actions array as `undefined`, crashing `runtime.registerPlugin` when it
35
+ // iterates `plugin.actions`.
36
+ //
37
+ // Both apps still resolve at plugin-load time via headless dynamic-import
38
+ // entrypoints in `plugin-resolver.ts`, after the static module graph has fully
39
+ // evaluated, so the cycle never forms and browser-only UI exports stay out of
40
+ // the agent process.
41
+ // Keep this here as a single sentinel: if we ever need a static reference,
42
+ // add `as const` data only — never an `import * as` of an app-* package.
43
+ import { AgentRuntime, AutonomyService, addLogListener, ChannelType, createBasicCapabilitiesPlugin, createMessageMemory, logger,
44
+ // loggerScope, // removed
45
+ mergeCharacterDefaults, stringToUuid, } from "@elizaos/core";
46
+ import * as pluginAgentSkills from "@elizaos/plugin-agent-skills";
47
+ import * as pluginBrowserBridge from "@elizaos/plugin-browser-bridge";
48
+ import * as pluginPdf from "@elizaos/plugin-pdf";
49
+ import * as pluginSql from "@elizaos/plugin-sql";
50
+ import { formatError, getDefaultStylePreset, getOnboardingProviderOption, isElizaSettingsDebugEnabled, migrateLegacyRuntimeConfig, normalizeCharacterLanguage, normalizeOnboardingProviderId, resolveDeploymentTargetInConfig, resolveElizaCloudTopology, resolveServerOnlyPort, resolveServiceRoutingInConfig, resolveStylePresetByAvatarIndex, resolveStylePresetById, resolveStylePresetByName, settingsDebugCloudSummary, } from "@elizaos/shared";
51
+ import { debugLogResolvedContext, validateRuntimeContext, } from "../api/plugin-validation.js";
52
+ import { getWalletAddresses, syncSolanaPublicKeyEnv } from "../api/wallet.js";
53
+ import { configFileExists, loadElizaConfig, } from "../config/config.js";
54
+ import { CONNECTOR_ENV_MAP, collectConfigEnvVars, collectConnectorEnvVars, } from "../config/env-vars.js";
55
+ import { resolveStateDir, resolveUserPath } from "../config/paths.js";
56
+ import { createHookEvent, loadHooks, triggerHook, } from "../hooks/index.js";
57
+ import { ensureAgentWorkspace, resolveDefaultAgentWorkspaceDir, shouldBootstrapWorkspaceInitFiles, } from "../providers/workspace.js";
58
+ import { SandboxAuditLog } from "../security/audit-log.js";
59
+ import { SandboxManager, } from "../services/sandbox-manager.js";
60
+ import { CORE_PLUGINS, OPTIONAL_CORE_PLUGINS } from "./core-plugins.js";
61
+ import { seedBundledKnowledge } from "./default-knowledge.js";
62
+ import discordLocalPlugin from "./discord-local-plugin.js";
63
+ import { createElizaPlugin } from "./eliza-plugin.js";
64
+ import { detectEmbeddingPreset } from "./embedding-presets.js";
65
+ import { runtimeKnowledgeEnabled, runtimeTrajectoriesEnabled, } from "./native-runtime-features.js";
66
+ import { createPgliteInitError, getPgliteErrorCode, PGLITE_ERROR_CODES, } from "./pglite-error-compat.js";
67
+ import { installRuntimePluginLifecycle } from "./plugin-lifecycle.js";
68
+ import rolesPlugin from "./roles.js";
69
+ import { shouldEnableTrajectoryLoggingByDefault } from "./trajectory-persistence.js";
70
+ const require = createRequire(import.meta.url);
71
+ // plugin-local-embedding is needed when local embeddings are enabled, but
72
+ // Docker no-embedding smokes must still boot if a published package advertises
73
+ // a missing dist entry.
74
+ let pluginLocalEmbedding = null;
75
+ try {
76
+ pluginLocalEmbedding = await import("@elizaos/plugin-local-embedding");
77
+ }
78
+ catch {
79
+ pluginLocalEmbedding = null;
80
+ }
81
+ // Agent orchestrator ships as the standalone @elizaos/plugin-agent-orchestrator package.
82
+ // Use top-level dynamic import because the package is ESM-only and fails under
83
+ // createRequire() in bun runtime; the await is resolved before module consumers read the binding.
84
+ let pluginAgentOrchestrator = null;
85
+ try {
86
+ pluginAgentOrchestrator = await import("@elizaos/plugin-agent-orchestrator");
87
+ }
88
+ catch {
89
+ pluginAgentOrchestrator = null;
90
+ }
91
+ // Keep plugin-shell behind a guarded runtime require too. The published alpha
92
+ // tarball can declare dist/index.js without actually shipping it, which breaks
93
+ // CLI/bootstrap in published-only CI.
94
+ let pluginShell = null;
95
+ try {
96
+ pluginShell = require("@elizaos/plugin-shell");
97
+ }
98
+ catch {
99
+ pluginShell = null;
100
+ }
101
+ // Keep plugin-commands behind a guarded runtime require. Some published alpha
102
+ // builds advertise dist/index.js without actually shipping it, and a static
103
+ // ESM import here makes the CLI fail before it can print --help/--version.
104
+ let pluginCommands = null;
105
+ try {
106
+ pluginCommands = require("@elizaos/plugin-commands");
107
+ }
108
+ catch {
109
+ pluginCommands = null;
110
+ }
111
+ let pluginCron = null;
112
+ try {
113
+ pluginCron = require("@elizaos/plugin-cron");
114
+ }
115
+ catch {
116
+ pluginCron = null;
117
+ }
118
+ // Keep plugin-elizacloud behind a guarded runtime require as well. Some
119
+ // published alpha builds advertise dist/node/index.node.js but do not ship
120
+ // that ESM entry, which breaks CLI bootstrap in published-only CI.
121
+ let pluginElizacloud = null;
122
+ try {
123
+ pluginElizacloud = require("@elizaos/plugin-elizacloud");
124
+ }
125
+ catch {
126
+ pluginElizacloud = null;
127
+ }
128
+ // Keep plugin-ollama behind a guarded runtime require as well. Some published
129
+ // alpha builds advertise dist/node/index.node.js but do not ship that ESM
130
+ // entry, which breaks CLI bootstrap and startup smokes in published-only CI.
131
+ let pluginOllama = null;
132
+ try {
133
+ pluginOllama = require("@elizaos/plugin-ollama");
134
+ }
135
+ catch {
136
+ pluginOllama = null;
137
+ }
138
+ // Keep plugin-anthropic behind a guarded runtime require too. Some published
139
+ // alpha builds advertise dist/node/index.node.js without shipping that entry,
140
+ // which breaks no-credential Docker startup smokes before provider selection.
141
+ let pluginAnthropic = null;
142
+ try {
143
+ pluginAnthropic = require("@elizaos/plugin-anthropic");
144
+ }
145
+ catch {
146
+ pluginAnthropic = null;
147
+ }
148
+ // Keep plugin-openai behind a guarded runtime require too. Some published
149
+ // alpha builds advertise dist/node/index.node.js without shipping that entry,
150
+ // which breaks CLI bootstrap and validation in published-only CI.
151
+ let pluginOpenai = null;
152
+ try {
153
+ pluginOpenai = require("@elizaos/plugin-openai");
154
+ }
155
+ catch {
156
+ pluginOpenai = null;
157
+ }
158
+ let activeSignalShutdownContext = null;
159
+ let signalHandlersRegistered = false;
160
+ let signalShutdownPromise = null;
161
+ function registerSignalShutdownHandlers(context) {
162
+ activeSignalShutdownContext = context;
163
+ if (signalHandlersRegistered) {
164
+ return;
165
+ }
166
+ const shutdown = async () => {
167
+ if (signalShutdownPromise) {
168
+ await signalShutdownPromise;
169
+ return;
170
+ }
171
+ signalShutdownPromise = (async () => {
172
+ const current = activeSignalShutdownContext;
173
+ if (!current) {
174
+ process.exit(0);
175
+ }
176
+ try {
177
+ await current?.beforeShutdown?.();
178
+ }
179
+ catch (err) {
180
+ logger.warn(`[eliza] Pre-shutdown cleanup error: ${formatError(err)}`);
181
+ }
182
+ try {
183
+ const sandboxManager = current?.getSandboxManager();
184
+ if (sandboxManager) {
185
+ try {
186
+ await sandboxManager.stop();
187
+ logger.info("[eliza] Sandbox manager stopped");
188
+ }
189
+ catch (err) {
190
+ logger.warn(`[eliza] Sandbox stop error: ${err instanceof Error ? err.message : String(err)}`);
191
+ }
192
+ }
193
+ }
194
+ catch (err) {
195
+ logger.warn(`[eliza] Sandbox shutdown error: ${formatError(err)}`);
196
+ }
197
+ try {
198
+ const runtime = current?.getRuntime();
199
+ if (runtime) {
200
+ await shutdownRuntime(runtime, "signal shutdown");
201
+ }
202
+ }
203
+ catch (err) {
204
+ logger.warn(`[eliza] Error during shutdown: ${formatError(err)}`);
205
+ }
206
+ process.exit(0);
207
+ })();
208
+ await signalShutdownPromise;
209
+ };
210
+ process.on("SIGINT", () => void shutdown());
211
+ process.on("SIGTERM", () => void shutdown());
212
+ signalHandlersRegistered = true;
213
+ }
214
+ /**
215
+ * Map of baseline bundled @elizaos plugin names to their statically imported
216
+ * modules.
217
+ *
218
+ * Post-release plugins are intentionally excluded so the packaged runtime can
219
+ * ship a smaller baseline bundle. Those plugins fall through to dynamic
220
+ * import() and can be installed later via the plugin installer.
221
+ */
222
+ // Populate the shared STATIC_ELIZA_PLUGINS registry (defined in plugin-types.ts)
223
+ // so plugin-resolver.ts can read it without importing this module directly.
224
+ Object.assign(STATIC_ELIZA_PLUGINS, {
225
+ "@elizaos/plugin-sql": pluginSql,
226
+ ...(pluginLocalEmbedding
227
+ ? { "@elizaos/plugin-local-embedding": pluginLocalEmbedding }
228
+ : {}),
229
+ // secrets (SECRETS service): now built-in core capability (ENABLE_SECRETS_MANAGER)
230
+ ...(pluginAgentOrchestrator
231
+ ? { "agent-orchestrator": pluginAgentOrchestrator }
232
+ : {}),
233
+ ...(pluginCron ? { "@elizaos/plugin-cron": pluginCron } : {}),
234
+ ...(pluginShell ? { "@elizaos/plugin-shell": pluginShell } : {}),
235
+ // plugin-manager: now built-in core capability (ENABLE_PLUGIN_MANAGER)
236
+ "@elizaos/plugin-agent-skills": pluginAgentSkills,
237
+ ...(pluginCommands ? { "@elizaos/plugin-commands": pluginCommands } : {}),
238
+ "@elizaos/plugin-pdf": pluginPdf,
239
+ ...(pluginOpenai ? { "@elizaos/plugin-openai": pluginOpenai } : {}),
240
+ ...(pluginAnthropic ? { "@elizaos/plugin-anthropic": pluginAnthropic } : {}),
241
+ ...(pluginOllama ? { "@elizaos/plugin-ollama": pluginOllama } : {}),
242
+ ...(pluginElizacloud
243
+ ? { "@elizaos/plugin-elizacloud": pluginElizacloud }
244
+ : {}),
245
+ // trust: now built-in core capability (ENABLE_TRUST)
246
+ // `@elizaos/app-lifeops` and `@elizaos/app-companion` are intentionally
247
+ // omitted from the static map — see the comment near the top of this file.
248
+ // They resolve via headless dynamic-import entrypoints in plugin-resolver.ts.
249
+ "@elizaos/plugin-browser-bridge": pluginBrowserBridge,
250
+ "@elizaos/plugin-discord-local": discordLocalPlugin,
251
+ // personality: now built-in advanced capability (advancedCapabilities: true)
252
+ });
253
+ // NODE_PATH so dynamic plugin imports (e.g. @elizaos/plugin-*) resolve.
254
+ // WHY: When eliza is loaded from dist/ or by a test runner, Node's resolution does not
255
+ // search repo root node_modules; import("@elizaos/plugin-*") then fails. We prepend
256
+ // repo root node_modules only if not already in NODE_PATH (run-node.mjs may have set it)
257
+ // to avoid duplicate entries; _initPaths() makes Node re-read NODE_PATH. See docs/plugin-resolution-and-node-path.md.
258
+ // We walk up from this file to find node_modules — we do not assume a fixed depth
259
+ // (e.g. two levels for src/runtime/ or dist/runtime/) so we still work if build
260
+ // output structure changes (e.g. flat dist). First directory with node_modules wins.
261
+ const _elizaDir = path.dirname(fileURLToPath(import.meta.url));
262
+ let _dir = _elizaDir;
263
+ let _rootModules = null;
264
+ while (_dir !== path.dirname(_dir)) {
265
+ const candidate = path.join(_dir, "node_modules");
266
+ if (existsSync(candidate)) {
267
+ _rootModules = candidate;
268
+ break;
269
+ }
270
+ _dir = path.dirname(_dir);
271
+ }
272
+ if (_rootModules) {
273
+ const prev = process.env.NODE_PATH ?? "";
274
+ const entries = prev ? prev.split(path.delimiter) : [];
275
+ const normalizedRoot = path.resolve(_rootModules);
276
+ if (!entries.some((e) => path.resolve(e) === normalizedRoot)) {
277
+ process.env.NODE_PATH = prev
278
+ ? `${_rootModules}${path.delimiter}${prev}`
279
+ : _rootModules;
280
+ createRequire(import.meta.url)("node:module").Module._initPaths();
281
+ }
282
+ }
283
+ export function configureLocalEmbeddingPlugin(_plugin, config) {
284
+ const detectedPreset = detectEmbeddingPreset();
285
+ const SQL_COMPATIBLE_EMBEDDING_DIMENSIONS = new Set([
286
+ 384, 512, 768, 1024, 1536, 3072,
287
+ ]);
288
+ const normalizeEmbeddingDimensions = (rawValue) => {
289
+ if (!rawValue)
290
+ return undefined;
291
+ const parsed = Number.parseInt(rawValue, 10);
292
+ if (!Number.isInteger(parsed) || parsed <= 0)
293
+ return undefined;
294
+ return SQL_COMPATIBLE_EMBEDDING_DIMENSIONS.has(parsed)
295
+ ? String(parsed)
296
+ : "384";
297
+ };
298
+ const embeddingConfig = config?.embedding;
299
+ const configuredModel = embeddingConfig?.model?.trim();
300
+ const configuredRepo = embeddingConfig?.modelRepo?.trim();
301
+ const configuredDimensions = normalizeEmbeddingDimensions(typeof embeddingConfig?.dimensions === "number" &&
302
+ Number.isInteger(embeddingConfig.dimensions) &&
303
+ embeddingConfig.dimensions > 0
304
+ ? String(embeddingConfig.dimensions)
305
+ : undefined);
306
+ const detectedDimensions = normalizeEmbeddingDimensions(String(detectedPreset.dimensions));
307
+ const configuredContextSize = typeof embeddingConfig?.contextSize === "number" &&
308
+ Number.isInteger(embeddingConfig.contextSize) &&
309
+ embeddingConfig.contextSize > 0
310
+ ? String(embeddingConfig.contextSize)
311
+ : undefined;
312
+ const configuredGpuLayers = (() => {
313
+ const value = embeddingConfig?.gpuLayers;
314
+ if (typeof value === "number" && Number.isInteger(value) && value >= 0) {
315
+ return String(value);
316
+ }
317
+ if (value === "auto" || value === "max") {
318
+ // plugin-local-embedding understands "auto" and treats it as runtime max
319
+ return "auto";
320
+ }
321
+ return undefined;
322
+ })();
323
+ const setEnvIfMissing = (key, value) => {
324
+ if (!value || process.env[key])
325
+ return;
326
+ process.env[key] = value;
327
+ };
328
+ const setEnvFromConfig = (key, value) => {
329
+ if (!value)
330
+ return;
331
+ process.env[key] = value;
332
+ };
333
+ // Keep plugin-local-embedding aligned with Eliza's hardware-adaptive preset
334
+ // selection. Hard-coding the standard preset here forces slower first-run
335
+ // downloads on Windows and low-spec machines.
336
+ setEnvIfMissing("LOCAL_EMBEDDING_MODEL", configuredModel || detectedPreset.model);
337
+ if (configuredRepo) {
338
+ setEnvFromConfig("LOCAL_EMBEDDING_MODEL_REPO", configuredRepo);
339
+ }
340
+ else if (!configuredModel) {
341
+ setEnvIfMissing("LOCAL_EMBEDDING_MODEL_REPO", detectedPreset.modelRepo);
342
+ }
343
+ if (configuredDimensions) {
344
+ setEnvFromConfig("LOCAL_EMBEDDING_DIMENSIONS", configuredDimensions);
345
+ }
346
+ else if (!configuredModel) {
347
+ setEnvIfMissing("LOCAL_EMBEDDING_DIMENSIONS", detectedDimensions);
348
+ }
349
+ if (configuredContextSize) {
350
+ setEnvFromConfig("LOCAL_EMBEDDING_CONTEXT_SIZE", configuredContextSize);
351
+ }
352
+ else if (!configuredModel) {
353
+ setEnvIfMissing("LOCAL_EMBEDDING_CONTEXT_SIZE", String(detectedPreset.contextSize));
354
+ }
355
+ if (configuredGpuLayers) {
356
+ process.env.LOCAL_EMBEDDING_GPU_LAYERS = configuredGpuLayers;
357
+ }
358
+ else if (!process.env.LOCAL_EMBEDDING_GPU_LAYERS) {
359
+ process.env.LOCAL_EMBEDDING_GPU_LAYERS = String(detectedPreset.gpuLayers);
360
+ }
361
+ // Performance tuning
362
+ // Disable mmap on Metal to prevent "different text" errors with some models
363
+ setEnvIfMissing("LOCAL_EMBEDDING_USE_MMAP", detectedPreset.gpuLayers === "auto" ? "false" : "true");
364
+ // Set default models directory if not present
365
+ setEnvIfMissing("MODELS_DIR", path.join(os.homedir(), ".eliza", "models"));
366
+ // Normalize Google AI API key aliases — the elizaOS plugin and @google/genai
367
+ // SDK expect different env var names. Canonicalize to the long form that
368
+ // @elizaos/plugin-google-genai reads via runtime.getSetting(). Users can set
369
+ // any of: GEMINI_API_KEY, GOOGLE_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY.
370
+ setEnvIfMissing("GOOGLE_GENERATIVE_AI_API_KEY", process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY);
371
+ // Default Google model names — the Google GenAI plugin's getSetting() returns
372
+ // null (not undefined) for missing keys, but the plugin checks !== undefined
373
+ // causing String(null) = "null" to be sent as the model name. Set sensible
374
+ // defaults so the plugin always has valid model names.
375
+ setEnvIfMissing("GOOGLE_SMALL_MODEL", "gemini-3-flash-preview");
376
+ setEnvIfMissing("GOOGLE_LARGE_MODEL", "gemini-3.1-pro-preview");
377
+ // Default Groq model names — plugin-groq still ships a deprecated large-model
378
+ // fallback. Seed runtime defaults before plugin init so direct Groq provider
379
+ // sessions do not inherit the retired qwen-qwq-32b default.
380
+ const currentSharedSmallModel = process.env.OPENAI_SMALL_MODEL ?? process.env.SMALL_MODEL;
381
+ const currentSharedLargeModel = process.env.OPENAI_LARGE_MODEL ?? process.env.LARGE_MODEL;
382
+ setEnvIfMissing("GROQ_SMALL_MODEL", currentSharedSmallModel && !isLikelyOpenAiTextModel(currentSharedSmallModel)
383
+ ? currentSharedSmallModel
384
+ : "openai/gpt-oss-20b");
385
+ setEnvIfMissing("GROQ_LARGE_MODEL", currentSharedLargeModel && !isLikelyOpenAiTextModel(currentSharedLargeModel)
386
+ ? currentSharedLargeModel
387
+ : "openai/gpt-oss-120b");
388
+ 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})`);
389
+ }
390
+ // ---------------------------------------------------------------------------
391
+ // Helpers
392
+ // ---------------------------------------------------------------------------
393
+ function trimEnvString(value) {
394
+ if (typeof value !== "string")
395
+ return undefined;
396
+ const trimmed = value.trim();
397
+ return trimmed.length > 0 ? trimmed : undefined;
398
+ }
399
+ function getMutableConfigEnv(config) {
400
+ if (!config.env ||
401
+ typeof config.env !== "object" ||
402
+ Array.isArray(config.env)) {
403
+ return null;
404
+ }
405
+ return config.env;
406
+ }
407
+ function getMutableConfigEnvVars(configEnv) {
408
+ if (!configEnv.vars ||
409
+ typeof configEnv.vars !== "object" ||
410
+ Array.isArray(configEnv.vars)) {
411
+ return null;
412
+ }
413
+ return configEnv.vars;
414
+ }
415
+ function readConfigEnvValue(config, key) {
416
+ const configEnv = getMutableConfigEnv(config);
417
+ if (!configEnv)
418
+ return undefined;
419
+ const vars = getMutableConfigEnvVars(configEnv);
420
+ return trimEnvString(vars?.[key]) ?? trimEnvString(configEnv[key]);
421
+ }
422
+ function readEffectiveEnvValue(config, key, env = process.env) {
423
+ return trimEnvString(env[key]) ?? readConfigEnvValue(config, key);
424
+ }
425
+ function setConfigEnvValue(config, key, value) {
426
+ if (!config.env ||
427
+ typeof config.env !== "object" ||
428
+ Array.isArray(config.env)) {
429
+ config.env = {};
430
+ }
431
+ const configEnv = config.env;
432
+ const vars = getMutableConfigEnvVars(configEnv);
433
+ if (vars) {
434
+ vars[key] = value;
435
+ delete configEnv[key];
436
+ return;
437
+ }
438
+ configEnv[key] = value;
439
+ }
440
+ function deleteConfigEnvValue(config, key) {
441
+ const configEnv = getMutableConfigEnv(config);
442
+ if (!configEnv)
443
+ return;
444
+ const vars = getMutableConfigEnvVars(configEnv);
445
+ if (vars) {
446
+ delete vars[key];
447
+ if (Object.keys(vars).length === 0) {
448
+ delete configEnv.vars;
449
+ }
450
+ }
451
+ delete configEnv[key];
452
+ }
453
+ function detectOpenAiBaseUrlProvider(baseUrl) {
454
+ try {
455
+ const hostname = new URL(baseUrl).hostname.trim().toLowerCase();
456
+ if (hostname === "api.groq.com" || hostname.endsWith(".groq.com")) {
457
+ return "groq";
458
+ }
459
+ }
460
+ catch {
461
+ return null;
462
+ }
463
+ return null;
464
+ }
465
+ function looksLikeGroqApiKey(value) {
466
+ return Boolean(value && /^gsk[-_]/i.test(value));
467
+ }
468
+ function isLikelyOpenAiTextModel(value) {
469
+ if (!value)
470
+ return false;
471
+ const normalized = value.trim().toLowerCase();
472
+ return normalized.startsWith("gpt-") || normalized.startsWith("openai/");
473
+ }
474
+ /**
475
+ * Normalize known-bad provider compatibility shims before plugin resolution.
476
+ *
477
+ * A common failure mode is routing the OpenAI plugin through Groq's
478
+ * OpenAI-compatible base URL while leaving OpenAI defaults (`gpt-5.5`,
479
+ * `gpt-5.5-mini`) in place. Structured XML/object generation then fails during
480
+ * message handling because Groq does not serve those model IDs.
481
+ *
482
+ * When we can confidently detect that state, rewrite the effective runtime
483
+ * config to use the Groq plugin directly.
484
+ */
485
+ /** @internal Exported for testing. */
486
+ export function normalizeOpenAiCompatibleProviderConfig(config, env = process.env) {
487
+ const cloudInferenceEnabled = resolveElizaCloudTopology(config).services.inference;
488
+ if (cloudInferenceEnabled) {
489
+ return false;
490
+ }
491
+ const openaiBaseUrl = readEffectiveEnvValue(config, "OPENAI_BASE_URL", env);
492
+ if (!openaiBaseUrl) {
493
+ return false;
494
+ }
495
+ if (detectOpenAiBaseUrlProvider(openaiBaseUrl) !== "groq") {
496
+ return false;
497
+ }
498
+ const openaiApiKey = readEffectiveEnvValue(config, "OPENAI_API_KEY", env);
499
+ const groqApiKey = readEffectiveEnvValue(config, "GROQ_API_KEY", env);
500
+ const inheritedGroqApiKey = groqApiKey ??
501
+ (looksLikeGroqApiKey(openaiApiKey) ? openaiApiKey : undefined);
502
+ if (!inheritedGroqApiKey) {
503
+ return false;
504
+ }
505
+ const currentGroqSmallModel = readEffectiveEnvValue(config, "GROQ_SMALL_MODEL", env);
506
+ const currentGroqLargeModel = readEffectiveEnvValue(config, "GROQ_LARGE_MODEL", env);
507
+ const currentSharedSmallModel = readEffectiveEnvValue(config, "OPENAI_SMALL_MODEL", env) ??
508
+ readEffectiveEnvValue(config, "SMALL_MODEL", env);
509
+ const currentSharedLargeModel = readEffectiveEnvValue(config, "OPENAI_LARGE_MODEL", env) ??
510
+ readEffectiveEnvValue(config, "LARGE_MODEL", env);
511
+ const normalizedGroqSmallModel = currentGroqSmallModel ??
512
+ (currentSharedSmallModel &&
513
+ !isLikelyOpenAiTextModel(currentSharedSmallModel)
514
+ ? currentSharedSmallModel
515
+ : "llama-3.1-8b-instant");
516
+ const normalizedGroqLargeModel = currentGroqLargeModel ??
517
+ (currentSharedLargeModel &&
518
+ !isLikelyOpenAiTextModel(currentSharedLargeModel)
519
+ ? currentSharedLargeModel
520
+ : "qwen/qwen3-32b");
521
+ env.GROQ_API_KEY = inheritedGroqApiKey;
522
+ env.GROQ_SMALL_MODEL = normalizedGroqSmallModel;
523
+ env.GROQ_LARGE_MODEL = normalizedGroqLargeModel;
524
+ setConfigEnvValue(config, "GROQ_API_KEY", inheritedGroqApiKey);
525
+ setConfigEnvValue(config, "GROQ_SMALL_MODEL", normalizedGroqSmallModel);
526
+ setConfigEnvValue(config, "GROQ_LARGE_MODEL", normalizedGroqLargeModel);
527
+ delete env.OPENAI_BASE_URL;
528
+ deleteConfigEnvValue(config, "OPENAI_BASE_URL");
529
+ const shouldDisableOpenAiKey = !openaiApiKey ||
530
+ openaiApiKey === groqApiKey ||
531
+ looksLikeGroqApiKey(openaiApiKey);
532
+ if (shouldDisableOpenAiKey) {
533
+ delete env.OPENAI_API_KEY;
534
+ deleteConfigEnvValue(config, "OPENAI_API_KEY");
535
+ }
536
+ const primaryModel = trimEnvString(config.agents?.defaults?.model?.primary);
537
+ if (shouldDisableOpenAiKey &&
538
+ primaryModel &&
539
+ (primaryModel.toLowerCase() === "openai" ||
540
+ isLikelyOpenAiTextModel(primaryModel))) {
541
+ config.agents ??= {};
542
+ config.agents.defaults ??= {};
543
+ config.agents.defaults.model = {
544
+ ...config.agents.defaults.model,
545
+ primary: "groq",
546
+ };
547
+ }
548
+ logger.warn("[eliza] Detected Groq routed through OPENAI_BASE_URL; normalizing runtime settings to use @elizaos/plugin-groq");
549
+ return true;
550
+ }
551
+ /** Redact username segments from filesystem paths to avoid leaking user info in logs. */
552
+ function _redactUserSegments(filepath) {
553
+ // Replace /Users/<name>/ or /home/<name>/ with /Users/<redacted>/ etc.
554
+ return filepath.replace(/\/(Users|home)\/[^/]+\//g, "/$1/<redacted>/");
555
+ }
556
+ /**
557
+ * Best-effort runtime shutdown that also closes the database adapter.
558
+ *
559
+ * AgentRuntime.stop() only stops services. plugin-sql keeps a process-global
560
+ * PGlite manager, so restarts must close the adapter or the next runtime can
561
+ * silently reuse the same broken manager instance.
562
+ */
563
+ export async function shutdownRuntime(runtime, context) {
564
+ if (!runtime)
565
+ return;
566
+ const adapter = runtime.adapter;
567
+ let firstError = null;
568
+ try {
569
+ await runtime.stop();
570
+ }
571
+ catch (err) {
572
+ firstError = err;
573
+ logger.warn(`[eliza] ${context}: runtime stop failed: ${formatError(err)}`);
574
+ }
575
+ if (adapter && typeof adapter.close === "function") {
576
+ try {
577
+ await adapter.close();
578
+ }
579
+ catch (err) {
580
+ if (!firstError) {
581
+ firstError = err;
582
+ }
583
+ logger.warn(`[eliza] ${context}: database adapter close failed: ${formatError(err)}`);
584
+ }
585
+ }
586
+ if (firstError) {
587
+ throw firstError;
588
+ }
589
+ }
590
+ /**
591
+ * Remove duplicate actions across an ordered list of plugins.
592
+ *
593
+ * When multiple plugins define an action with the same `name`, only the first
594
+ * occurrence is kept. This prevents "Action already registered" warnings from
595
+ * elizaOS core. The function mutates each plugin's `actions` array in-place.
596
+ */
597
+ export function deduplicatePluginActions(plugins) {
598
+ const seen = new Set();
599
+ for (const plugin of plugins) {
600
+ if (plugin.actions) {
601
+ plugin.actions = plugin.actions.filter((action) => {
602
+ if (seen.has(action.name)) {
603
+ logger.debug(`[eliza] Skipping duplicate action "${action.name}" from plugin "${plugin.name}"`);
604
+ return false;
605
+ }
606
+ seen.add(action.name);
607
+ return true;
608
+ });
609
+ }
610
+ }
611
+ }
612
+ /**
613
+ * Retrieve the AutonomyService from the runtime, returning null if unavailable.
614
+ * Uses a runtime property check to safely narrow the opaque Service return.
615
+ */
616
+ function getAutonomyService(runtime) {
617
+ const svc = runtime.getService("AUTONOMY") ?? runtime.getService("autonomy");
618
+ if (svc &&
619
+ "enableAutonomy" in svc &&
620
+ typeof svc.enableAutonomy === "function") {
621
+ return svc;
622
+ }
623
+ return null;
624
+ }
625
+ async function startAndRegisterAutonomyService(runtime) {
626
+ const service = await AutonomyService.start(runtime);
627
+ runtime.services.set("AUTONOMY", [service]);
628
+ return service;
629
+ }
630
+ async function waitForTrajectoriesService(runtime, context, timeoutMs = 3000) {
631
+ if (!runtimeTrajectoriesEnabled(runtime)) {
632
+ return;
633
+ }
634
+ const runtimeLike = runtime;
635
+ // Check if already available
636
+ if (typeof runtimeLike.getService === "function") {
637
+ const existing = runtimeLike.getService("trajectories");
638
+ if (existing)
639
+ return;
640
+ }
641
+ const registrationStatus = typeof runtimeLike.getServiceRegistrationStatus === "function"
642
+ ? runtimeLike.getServiceRegistrationStatus("trajectories")
643
+ : "unknown";
644
+ if (registrationStatus !== "pending" &&
645
+ registrationStatus !== "registering") {
646
+ return;
647
+ }
648
+ if (typeof runtimeLike.getServiceLoadPromise !== "function")
649
+ return;
650
+ let timedOut = false;
651
+ let timeoutHandle;
652
+ const timeoutPromise = new Promise((resolve) => {
653
+ timeoutHandle = setTimeout(() => {
654
+ timedOut = true;
655
+ resolve();
656
+ }, timeoutMs);
657
+ });
658
+ try {
659
+ await Promise.race([
660
+ runtimeLike.getServiceLoadPromise("trajectories").then(() => { }),
661
+ timeoutPromise,
662
+ ]);
663
+ if (timedOut) {
664
+ logger.debug(`[eliza] trajectories still ${registrationStatus} after ${timeoutMs}ms (${context})`);
665
+ }
666
+ }
667
+ catch (err) {
668
+ logger.debug(`[eliza] trajectories registration failed while waiting (${context}): ${formatError(err)}`);
669
+ }
670
+ finally {
671
+ if (timeoutHandle)
672
+ clearTimeout(timeoutHandle);
673
+ }
674
+ }
675
+ function ensureTrajectoryLoggerEnabled(runtime, context) {
676
+ if (!runtimeTrajectoriesEnabled(runtime)) {
677
+ logger.info(`[eliza] Native trajectories disabled (${context})`);
678
+ return;
679
+ }
680
+ const trajectoryLogger = runtime.getService("trajectories");
681
+ if (!trajectoryLogger) {
682
+ logger.warn(`[eliza] trajectories service unavailable (${context}); trajectory capture disabled`);
683
+ return;
684
+ }
685
+ const isEnabled = typeof trajectoryLogger.isEnabled === "function"
686
+ ? trajectoryLogger.isEnabled()
687
+ : shouldEnableTrajectoryLoggingByDefault();
688
+ const shouldEnable = shouldEnableTrajectoryLoggingByDefault();
689
+ if (isEnabled !== shouldEnable &&
690
+ typeof trajectoryLogger.setEnabled === "function") {
691
+ trajectoryLogger.setEnabled(shouldEnable);
692
+ logger.info(`[eliza] trajectories defaulted ${shouldEnable ? "on" : "off"} (${context})`);
693
+ }
694
+ }
695
+ async function installPromptOptimizationLayer(runtime, context, config) {
696
+ try {
697
+ const { installPromptOptimizations } = await import("./prompt-optimization.js");
698
+ installPromptOptimizations(runtime, config);
699
+ }
700
+ catch (err) {
701
+ logger.warn(`[eliza] Failed to install prompt optimizations (${context}): ${err instanceof Error ? err.message : err}`);
702
+ }
703
+ }
704
+ async function prepareRuntimeForTrajectoryCapture(runtime, context, config) {
705
+ await waitForTrajectoriesService(runtime, context);
706
+ ensureTrajectoryLoggerEnabled(runtime, context);
707
+ await installPromptOptimizationLayer(runtime, context, config);
708
+ }
709
+ // ---------------------------------------------------------------------------
710
+ // Channel secret mapping
711
+ // ---------------------------------------------------------------------------
712
+ /**
713
+ * Maps Eliza channel config fields to the environment variable names
714
+ * that elizaOS plugins expect.
715
+ *
716
+ * Eliza stores channel credentials under `config.channels.<name>.<field>`,
717
+ * while elizaOS plugins read them from process.env.
718
+ */
719
+ const CHANNEL_ENV_MAP = CONNECTOR_ENV_MAP;
720
+ // ---------------------------------------------------------------------------
721
+ // Plugin resolution
722
+ // ---------------------------------------------------------------------------
723
+ export { CORE_PLUGINS, OPTIONAL_CORE_PLUGINS };
724
+ /**
725
+ * Optional plugins that require native binaries or specific config.
726
+ * These are only loaded when explicitly enabled via features config,
727
+ * NOT by default — they crash if their prerequisites are missing.
728
+ */
729
+ const _OPTIONAL_NATIVE_PLUGINS = [
730
+ "@elizaos/plugin-browser", // requires browser server binary
731
+ "@elizaos/plugin-vision", // requires @tensorflow/tfjs-node native addon
732
+ "@elizaos/plugin-computeruse", // requires platform-specific binaries
733
+ ];
734
+ // CHANNEL_PLUGIN_MAP, PROVIDER_PLUGIN_MAP, and OPTIONAL_PLUGIN_MAP live in
735
+ // ./plugin-collector.ts and are re-exported from this module for backward compatibility.
736
+ // ---------------------------------------------------------------------------
737
+ // Custom / drop-in plugin discovery (moved to plugin-types.ts)
738
+ // ---------------------------------------------------------------------------
739
+ // ---------------------------------------------------------------------------
740
+ // Plugin resolution
741
+ // ---------------------------------------------------------------------------
742
+ // ---------------------------------------------------------------------------
743
+ // Browser server pre-flight
744
+ // ---------------------------------------------------------------------------
745
+ /**
746
+ * Returns true if the given env var key is safe to forward to runtime.settings.
747
+ * Blocks blockchain private keys, secrets, passwords, tokens, credentials,
748
+ * mnemonics, and seed phrases while allowing API keys that plugins need.
749
+ */
750
+ export function isEnvKeyAllowedForForwarding(key) {
751
+ const upper = key.toUpperCase();
752
+ if (upper === "ALLOW_NO_DATABASE")
753
+ return false;
754
+ // Block blockchain private keys
755
+ if (upper.includes("PRIVATE_KEY"))
756
+ return false;
757
+ if (upper.startsWith("EVM_") || upper.startsWith("SOLANA_"))
758
+ return false;
759
+ // Block secrets, passwords, tokens, and seed phrases (but not API_KEY which plugins need)
760
+ if (/(SECRET|PASSWORD|CREDENTIAL|MNEMONIC|SEED_PHRASE)/i.test(key))
761
+ return false;
762
+ if (/(ACCESS_TOKEN|REFRESH_TOKEN|SESSION_TOKEN|AUTH_TOKEN)$/i.test(key))
763
+ return false;
764
+ // Block elizaCloud connection keys — these must only come from config.cloud
765
+ // via applyCloudConfigToEnv(). Forwarding them from config.env.vars into
766
+ // runtime.settings would let a stale env-var shadow the live cloud key that
767
+ // the app sets when the user connects through the UI.
768
+ if (upper === "ELIZAOS_CLOUD_API_KEY" ||
769
+ upper === "ELIZAOS_CLOUD_ENABLED" ||
770
+ upper === "ELIZAOS_CLOUD_BASE_URL" ||
771
+ upper === "ELIZAOS_CLOUD_NANO_MODEL" ||
772
+ upper === "ELIZAOS_CLOUD_MEDIUM_MODEL" ||
773
+ upper === "ELIZAOS_CLOUD_SMALL_MODEL" ||
774
+ upper === "ELIZAOS_CLOUD_LARGE_MODEL" ||
775
+ upper === "ELIZAOS_CLOUD_MEGA_MODEL" ||
776
+ upper === "ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL" ||
777
+ upper === "ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL" ||
778
+ upper === "ELIZAOS_CLOUD_ACTION_PLANNER_MODEL" ||
779
+ upper === "ELIZAOS_CLOUD_PLANNER_MODEL")
780
+ return false;
781
+ return true;
782
+ }
783
+ function assertPersistentDatabaseRequired(runtime) {
784
+ const raw = runtime.getSetting("ALLOW_NO_DATABASE") ?? process.env.ALLOW_NO_DATABASE;
785
+ const normalized = String(raw ?? "")
786
+ .trim()
787
+ .toLowerCase();
788
+ if (normalized === "true" ||
789
+ normalized === "1" ||
790
+ normalized === "yes" ||
791
+ normalized === "on") {
792
+ 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.`);
793
+ }
794
+ }
795
+ function isElizaCloudManagedProcessEnvKey(key) {
796
+ const upper = key.toUpperCase();
797
+ return (upper === "ELIZAOS_CLOUD_API_KEY" ||
798
+ upper === "ELIZAOS_CLOUD_ENABLED" ||
799
+ upper === "ELIZAOS_CLOUD_BASE_URL" ||
800
+ upper === "ELIZAOS_CLOUD_NANO_MODEL" ||
801
+ upper === "ELIZAOS_CLOUD_MEDIUM_MODEL" ||
802
+ upper === "ELIZAOS_CLOUD_SMALL_MODEL" ||
803
+ upper === "ELIZAOS_CLOUD_LARGE_MODEL" ||
804
+ upper === "ELIZAOS_CLOUD_MEGA_MODEL" ||
805
+ upper === "ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL" ||
806
+ upper === "ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL" ||
807
+ upper === "ELIZAOS_CLOUD_ACTION_PLANNER_MODEL" ||
808
+ upper === "ELIZAOS_CLOUD_PLANNER_MODEL");
809
+ }
810
+ // findPluginBrowserStagehandDir, ensureBrowserServerLink,
811
+ // repairBrokenInstallRecord, resolvePackageEntry — moved to plugin-types.ts
812
+ // ---------------------------------------------------------------------------
813
+ // Config → Character mapping
814
+ // ---------------------------------------------------------------------------
815
+ /**
816
+ * Propagate channel credentials from Eliza config into process.env so
817
+ * that elizaOS plugins can find them.
818
+ */
819
+ /** @internal Exported for testing. */
820
+ export function applyConnectorSecretsToEnv(config) {
821
+ // Prefer config.connectors, fall back to config.channels for backward compatibility
822
+ const connectors = config.connectors ?? config.channels ?? {};
823
+ for (const [channelName, channelConfig] of Object.entries(connectors)) {
824
+ if (!channelConfig || typeof channelConfig !== "object")
825
+ continue;
826
+ const configObj = channelConfig;
827
+ // Discord plugins in the ecosystem use both DISCORD_API_TOKEN and
828
+ // DISCORD_BOT_TOKEN across versions. Mirror to both when available.
829
+ if (channelName === "discord") {
830
+ const tokenValue = (typeof configObj.token === "string" && configObj.token.trim()) ||
831
+ (typeof configObj.botToken === "string" && configObj.botToken.trim()) ||
832
+ "";
833
+ if (tokenValue) {
834
+ process.env.DISCORD_API_TOKEN = tokenValue;
835
+ process.env.DISCORD_BOT_TOKEN = tokenValue;
836
+ }
837
+ }
838
+ const envMap = CHANNEL_ENV_MAP[channelName];
839
+ if (!envMap)
840
+ continue;
841
+ for (const [configField, envKey] of Object.entries(envMap)) {
842
+ const value = configObj[configField];
843
+ if (typeof value === "boolean" || typeof value === "number") {
844
+ process.env[envKey] = String(value);
845
+ }
846
+ else if (typeof value === "string" && value.trim()) {
847
+ process.env[envKey] = value;
848
+ }
849
+ }
850
+ if (channelName === "whatsapp") {
851
+ const allowFrom = configObj.allowFrom;
852
+ if (Array.isArray(allowFrom) && allowFrom.length > 0) {
853
+ const normalized = allowFrom
854
+ .map((value) => String(value).trim())
855
+ .filter(Boolean);
856
+ if (normalized.length > 0) {
857
+ process.env.WHATSAPP_ALLOW_FROM = normalized.join(",");
858
+ }
859
+ }
860
+ const groupAllowFrom = configObj.groupAllowFrom;
861
+ if (Array.isArray(groupAllowFrom) && groupAllowFrom.length > 0) {
862
+ const normalized = groupAllowFrom
863
+ .map((value) => String(value).trim())
864
+ .filter(Boolean);
865
+ if (normalized.length > 0) {
866
+ process.env.WHATSAPP_GROUP_ALLOW_FROM = normalized.join(",");
867
+ }
868
+ }
869
+ const accounts = configObj.accounts;
870
+ if (accounts &&
871
+ typeof accounts === "object" &&
872
+ !Array.isArray(accounts)) {
873
+ const firstEnabledAccount = Object.values(accounts).find((account) => {
874
+ if (!account ||
875
+ typeof account !== "object" ||
876
+ Array.isArray(account)) {
877
+ return false;
878
+ }
879
+ const candidate = account;
880
+ return (candidate.enabled !== false && typeof candidate.authDir === "string");
881
+ });
882
+ if (firstEnabledAccount &&
883
+ typeof firstEnabledAccount.authDir === "string" &&
884
+ firstEnabledAccount.authDir.trim()) {
885
+ process.env.WHATSAPP_AUTH_DIR = firstEnabledAccount.authDir.trim();
886
+ }
887
+ }
888
+ }
889
+ }
890
+ }
891
+ /**
892
+ * Auto-resolve Discord Application ID from the bot token via Discord API.
893
+ * Called during async runtime init so that users only need a bot token.
894
+ */
895
+ /** @internal Exported for testing. */
896
+ export async function autoResolveDiscordAppId() {
897
+ if (process.env.DISCORD_APPLICATION_ID)
898
+ return;
899
+ const discordToken = process.env.DISCORD_API_TOKEN || process.env.DISCORD_BOT_TOKEN;
900
+ if (!discordToken)
901
+ return;
902
+ try {
903
+ const res = await fetch("https://discord.com/api/v10/oauth2/applications/@me", { headers: { Authorization: `Bot ${discordToken}` } });
904
+ if (!res.ok) {
905
+ logger.warn(`[eliza] Failed to auto-resolve Discord Application ID: ${res.status}`);
906
+ return;
907
+ }
908
+ const app = (await res.json());
909
+ if (!app.id)
910
+ return;
911
+ process.env.DISCORD_APPLICATION_ID = app.id;
912
+ logger.info(`[eliza] Auto-resolved Discord Application ID: ${app.id}`);
913
+ }
914
+ catch (err) {
915
+ logger.warn(`[eliza] Could not auto-resolve Discord Application ID: ${err}`);
916
+ }
917
+ }
918
+ /**
919
+ * Fetch GitHub OAuth token from cloud if available and no local token is set.
920
+ * Called during async runtime init after cloud config is applied.
921
+ *
922
+ * Flow: If the agent has a managed GitHub connection in the cloud, and no
923
+ * local GITHUB_TOKEN is set, fetch the OAuth token from the cloud API and
924
+ * inject it into process.env so plugins (plugin-github, git-workspace-service)
925
+ * can use it for API calls and git credential helpers.
926
+ */
927
+ /** @internal Exported for testing. */
928
+ export async function autoFetchCloudGithubToken(agentId) {
929
+ // Skip if a local token is already configured
930
+ if (process.env.GITHUB_TOKEN || process.env.GITHUB_PAT)
931
+ return;
932
+ // Need cloud credentials and an agent ID
933
+ const cloudApiKey = process.env.ELIZAOS_CLOUD_API_KEY?.trim();
934
+ const cloudBaseUrl = process.env.ELIZAOS_CLOUD_BASE_URL?.trim() || "https://api.elizacloud.ai";
935
+ if (!cloudApiKey || !agentId)
936
+ return;
937
+ const managedNs = process.env.ELIZA_CLOUD_MANAGED_AGENTS_API_SEGMENT?.trim();
938
+ if (!managedNs)
939
+ return;
940
+ try {
941
+ const url = `${cloudBaseUrl}/api/v1/${managedNs}/agents/${encodeURIComponent(agentId)}/github/token`;
942
+ const res = await fetch(url, {
943
+ headers: {
944
+ Authorization: `Bearer ${cloudApiKey}`,
945
+ Accept: "application/json",
946
+ },
947
+ signal: AbortSignal.timeout(10_000),
948
+ });
949
+ if (!res.ok) {
950
+ // 404 = no GitHub connection for this agent, which is fine
951
+ if (res.status !== 404) {
952
+ logger.warn(`[eliza] Failed to fetch cloud GitHub token: ${res.status}`);
953
+ }
954
+ return;
955
+ }
956
+ const body = (await res.json());
957
+ if (!body.success || !body.data?.accessToken)
958
+ return;
959
+ process.env.GITHUB_TOKEN = body.data.accessToken;
960
+ logger.info(`[eliza] Fetched GitHub token from cloud for @${body.data.githubUsername || "unknown"}`);
961
+ }
962
+ catch (err) {
963
+ logger.warn(`[eliza] Could not fetch cloud GitHub token: ${err}`);
964
+ }
965
+ }
966
+ /**
967
+ * Propagate cloud config from Eliza config into process.env so the
968
+ * ElizaCloud plugin can discover settings at startup.
969
+ */
970
+ /** @internal Exported for testing. */
971
+ export function applyCloudConfigToEnv(config) {
972
+ migrateLegacyRuntimeConfig(config);
973
+ const cloud = config.cloud;
974
+ const isCloudContainer = process.env.ELIZA_CLOUD_PROVISIONED === "1";
975
+ if (!cloud && !isCloudContainer)
976
+ return;
977
+ const topology = resolveElizaCloudTopology(config);
978
+ // Cloud inference is selected from the canonical onboarding connection, not
979
+ // just from raw cloud flags. This keeps linked cloud auth from re-enabling
980
+ // Eliza Cloud after the user has switched to a local or remote provider.
981
+ const effectivelyEnabled = topology.services.inference || isCloudContainer;
982
+ const shouldLoadCloudPlugin = topology.shouldLoadPlugin || isCloudContainer;
983
+ const setCloudUsageEnv = (key, enabled) => {
984
+ if (enabled) {
985
+ process.env[key] = "true";
986
+ }
987
+ else {
988
+ delete process.env[key];
989
+ }
990
+ };
991
+ if (isElizaSettingsDebugEnabled()) {
992
+ const c = (cloud ?? {});
993
+ logger.debug(`[eliza][settings][runtime] applyCloudConfigToEnv inference=${effectivelyEnabled} shouldLoadPlugin=${shouldLoadCloudPlugin} isCloudContainer=${isCloudContainer} cloud=${JSON.stringify(settingsDebugCloudSummary(c))}`);
994
+ }
995
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_INFERENCE", effectivelyEnabled);
996
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_TTS", topology.services.tts || isCloudContainer);
997
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_MEDIA", topology.services.media);
998
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_EMBEDDINGS", topology.services.embeddings);
999
+ setCloudUsageEnv("ELIZAOS_CLOUD_USE_RPC", topology.services.rpc);
1000
+ if (effectivelyEnabled) {
1001
+ process.env.ELIZAOS_CLOUD_ENABLED = "true";
1002
+ }
1003
+ else {
1004
+ delete process.env.ELIZAOS_CLOUD_ENABLED;
1005
+ }
1006
+ if (shouldLoadCloudPlugin) {
1007
+ 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}`);
1008
+ // Only propagate the API key when cloud is enabled AND it is a real
1009
+ // credential — never set the literal "[REDACTED]" placeholder (which can
1010
+ // leak into the config via UI round-trips through the redacted GET → PUT
1011
+ // cycle). WHY: when enabled is false (BYOK / disconnected), leaving the key
1012
+ // in process.env still auto-loads @elizaos/plugin-elizacloud and steals
1013
+ // TEXT_LARGE even if the JSON says cloud is off.
1014
+ const isRealApiKey = cloud?.apiKey && cloud.apiKey.trim().toUpperCase() !== "[REDACTED]";
1015
+ if (isRealApiKey) {
1016
+ process.env.ELIZAOS_CLOUD_API_KEY = cloud.apiKey;
1017
+ }
1018
+ else if (!isCloudContainer) {
1019
+ delete process.env.ELIZAOS_CLOUD_API_KEY;
1020
+ }
1021
+ if (cloud?.baseUrl) {
1022
+ process.env.ELIZAOS_CLOUD_BASE_URL = cloud.baseUrl;
1023
+ }
1024
+ else if (!isCloudContainer) {
1025
+ delete process.env.ELIZAOS_CLOUD_BASE_URL;
1026
+ }
1027
+ }
1028
+ else {
1029
+ delete process.env.ELIZAOS_CLOUD_NANO_MODEL;
1030
+ delete process.env.ELIZAOS_CLOUD_MEDIUM_MODEL;
1031
+ delete process.env.ELIZAOS_CLOUD_SMALL_MODEL;
1032
+ delete process.env.ELIZAOS_CLOUD_LARGE_MODEL;
1033
+ delete process.env.ELIZAOS_CLOUD_MEGA_MODEL;
1034
+ delete process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL;
1035
+ delete process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL;
1036
+ delete process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL;
1037
+ delete process.env.ELIZAOS_CLOUD_PLANNER_MODEL;
1038
+ delete process.env.ELIZAOS_CLOUD_API_KEY;
1039
+ delete process.env.ELIZAOS_CLOUD_BASE_URL;
1040
+ }
1041
+ // Propagate model names so the cloud plugin picks them up. Falls back to
1042
+ // sensible defaults when cloud is enabled but no explicit selection exists.
1043
+ // Skip when inferenceMode is "byok"/"local" or services.inference is off —
1044
+ // user's own keys handle models.
1045
+ // If the user chose a subscription provider, treat that as "byok" unless
1046
+ // they explicitly set inferenceMode to "cloud".
1047
+ const llmText = resolveServiceRoutingInConfig(config)?.llmText;
1048
+ const models = config.models;
1049
+ if (effectivelyEnabled) {
1050
+ const nano = llmText?.nanoModel || models?.nano || "openai/gpt-5.5-nano";
1051
+ const small = llmText?.smallModel || models?.small || "minimax/minimax-m2.7";
1052
+ const medium = llmText?.mediumModel || models?.medium || small;
1053
+ const large = llmText?.largeModel || models?.large || "anthropic/claude-opus-4-7";
1054
+ const mega = llmText?.megaModel || models?.mega || large;
1055
+ const responseHandlerModel = llmText?.responseHandlerModel || llmText?.shouldRespondModel;
1056
+ const actionPlannerModel = llmText?.actionPlannerModel || llmText?.plannerModel;
1057
+ process.env.SMALL_MODEL = small;
1058
+ process.env.NANO_MODEL = nano;
1059
+ process.env.MEDIUM_MODEL = medium;
1060
+ process.env.LARGE_MODEL = large;
1061
+ process.env.MEGA_MODEL = mega;
1062
+ if (responseHandlerModel) {
1063
+ process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL = responseHandlerModel;
1064
+ process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL = responseHandlerModel;
1065
+ }
1066
+ else {
1067
+ delete process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL;
1068
+ delete process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL;
1069
+ }
1070
+ if (actionPlannerModel) {
1071
+ process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL = actionPlannerModel;
1072
+ process.env.ELIZAOS_CLOUD_PLANNER_MODEL = actionPlannerModel;
1073
+ }
1074
+ else {
1075
+ delete process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL;
1076
+ delete process.env.ELIZAOS_CLOUD_PLANNER_MODEL;
1077
+ }
1078
+ process.env.ELIZAOS_CLOUD_NANO_MODEL = nano;
1079
+ process.env.ELIZAOS_CLOUD_MEDIUM_MODEL = medium;
1080
+ process.env.ELIZAOS_CLOUD_SMALL_MODEL = small;
1081
+ process.env.ELIZAOS_CLOUD_LARGE_MODEL = large;
1082
+ process.env.ELIZAOS_CLOUD_MEGA_MODEL = mega;
1083
+ }
1084
+ else if (shouldLoadCloudPlugin) {
1085
+ // Cloud plugin may still be active for non-inference services; keep model
1086
+ // routing local by clearing the cloud model aliases.
1087
+ delete process.env.ELIZAOS_CLOUD_NANO_MODEL;
1088
+ delete process.env.ELIZAOS_CLOUD_MEDIUM_MODEL;
1089
+ delete process.env.ELIZAOS_CLOUD_SMALL_MODEL;
1090
+ delete process.env.ELIZAOS_CLOUD_LARGE_MODEL;
1091
+ delete process.env.ELIZAOS_CLOUD_MEGA_MODEL;
1092
+ delete process.env.ELIZAOS_CLOUD_RESPONSE_HANDLER_MODEL;
1093
+ delete process.env.ELIZAOS_CLOUD_SHOULD_RESPOND_MODEL;
1094
+ delete process.env.ELIZAOS_CLOUD_ACTION_PLANNER_MODEL;
1095
+ delete process.env.ELIZAOS_CLOUD_PLANNER_MODEL;
1096
+ delete process.env.NANO_MODEL;
1097
+ delete process.env.MEDIUM_MODEL;
1098
+ delete process.env.SMALL_MODEL;
1099
+ delete process.env.LARGE_MODEL;
1100
+ delete process.env.MEGA_MODEL;
1101
+ }
1102
+ // Propagate per-service disable flags so downstream code can check them
1103
+ // without needing direct access to the ElizaConfig object.
1104
+ if (!topology.services.tts) {
1105
+ process.env.ELIZA_CLOUD_TTS_DISABLED = "true";
1106
+ }
1107
+ else {
1108
+ delete process.env.ELIZA_CLOUD_TTS_DISABLED;
1109
+ }
1110
+ if (!topology.services.media) {
1111
+ process.env.ELIZA_CLOUD_MEDIA_DISABLED = "true";
1112
+ }
1113
+ else {
1114
+ delete process.env.ELIZA_CLOUD_MEDIA_DISABLED;
1115
+ }
1116
+ if (!topology.services.embeddings) {
1117
+ process.env.ELIZA_CLOUD_EMBEDDINGS_DISABLED = "true";
1118
+ }
1119
+ else {
1120
+ delete process.env.ELIZA_CLOUD_EMBEDDINGS_DISABLED;
1121
+ }
1122
+ if (!topology.services.rpc) {
1123
+ process.env.ELIZA_CLOUD_RPC_DISABLED = "true";
1124
+ }
1125
+ else {
1126
+ delete process.env.ELIZA_CLOUD_RPC_DISABLED;
1127
+ }
1128
+ }
1129
+ /**
1130
+ * Translate `config.database` into the environment variables that
1131
+ * `@elizaos/plugin-sql` reads at init time (`POSTGRES_URL`, `PGLITE_DATA_DIR`).
1132
+ *
1133
+ * When the provider is "postgres", we build a connection string from the
1134
+ * credentials (or use the explicit `connectionString` field) and set
1135
+ * `POSTGRES_URL`. When the provider is "pglite" (the default), we set
1136
+ * `PGLITE_DATA_DIR` to either the configured value or the resolved default
1137
+ * workspace (`<workspace>/.eliza/.elizadb`) and remove any stale
1138
+ * `POSTGRES_URL`.
1139
+ */
1140
+ /** @internal Exported for testing. */
1141
+ export function applyX402ConfigToEnv(config) {
1142
+ const x402 = config.x402;
1143
+ if (!x402?.enabled)
1144
+ return;
1145
+ if (!process.env.X402_ENABLED)
1146
+ process.env.X402_ENABLED = "true";
1147
+ if (x402.apiKey && !process.env.X402_API_KEY)
1148
+ process.env.X402_API_KEY = x402.apiKey;
1149
+ if (x402.baseUrl && !process.env.X402_BASE_URL)
1150
+ process.env.X402_BASE_URL = x402.baseUrl;
1151
+ }
1152
+ /**
1153
+ * Resolve N8N_HOST + N8N_API_KEY for @elizaos/plugin-n8n-workflow.
1154
+ *
1155
+ * Precedence:
1156
+ * 1. Existing process.env values (user override) — respected as-is.
1157
+ * 2. Eliza Cloud authenticated (cloud.apiKey present AND cloud.enabled !== false):
1158
+ * N8N_HOST = `${cloudBaseUrl}/api/v1/agents/${agentId}/n8n`
1159
+ * N8N_API_KEY = cloud.apiKey
1160
+ * 3. Local sidecar — the sidecar lifecycle writes `config.n8n.host` and
1161
+ * `config.n8n.apiKey` when it reaches "ready". We pump those into
1162
+ * process.env here when cloud did not fire. The authoritative shape is
1163
+ * `N8nConfig` in types.eliza.ts.
1164
+ * 4. Otherwise: leave unset. The plugin's init() no-ops without credentials.
1165
+ *
1166
+ * Called from startEliza() after applyCloudConfigToEnv so cloud settings are
1167
+ * already reflected in process.env.
1168
+ *
1169
+ * @internal Exported for testing.
1170
+ */
1171
+ export function applyN8nConfigToEnv(config, agentId) {
1172
+ // 1. Respect existing process.env overrides.
1173
+ if (process.env.N8N_HOST && process.env.N8N_API_KEY)
1174
+ return;
1175
+ // Master gate — when config.n8n.enabled is false, do not pump anything.
1176
+ if (config.n8n?.enabled === false)
1177
+ return;
1178
+ const cloud = config.cloud;
1179
+ const cloudAuthed = Boolean(cloud?.apiKey) && cloud?.enabled !== false;
1180
+ if (cloudAuthed && cloud?.apiKey) {
1181
+ const rawBase = cloud.baseUrl ?? "https://www.elizacloud.ai";
1182
+ // Strip trailing /api/v1 (or /api/v1/) plus any trailing slashes so we can
1183
+ // build `${siteUrl}/api/v1/agents/${agentId}/n8n` without duplication.
1184
+ const safeBase = rawBase.length > 8192 ? rawBase.slice(0, 8192) : rawBase;
1185
+ const siteUrl = safeBase
1186
+ .replace(/\/api\/v1\/?$/, "")
1187
+ .replace(/\/{1,1024}$/, "");
1188
+ const gateway = `${siteUrl}/api/v1/agents/${agentId}/n8n`;
1189
+ if (!process.env.N8N_HOST)
1190
+ process.env.N8N_HOST = gateway;
1191
+ if (!process.env.N8N_API_KEY)
1192
+ process.env.N8N_API_KEY = cloud.apiKey;
1193
+ return;
1194
+ }
1195
+ // 2. Local sidecar path — the sidecar populates `config.n8n.host` and
1196
+ // `config.n8n.apiKey` (authoritative N8nConfig shape) when it reaches
1197
+ // "ready". Surface those to process.env for the plugin.
1198
+ const n8n = config.n8n;
1199
+ if (n8n?.host && n8n?.apiKey) {
1200
+ if (!process.env.N8N_HOST)
1201
+ process.env.N8N_HOST = n8n.host;
1202
+ if (!process.env.N8N_API_KEY)
1203
+ process.env.N8N_API_KEY = n8n.apiKey;
1204
+ return;
1205
+ }
1206
+ // 3. Fallback — leave unset. Legacy `config.env.vars` entries (N8N_HOST /
1207
+ // N8N_API_KEY) still flow through the generic env-var pump in startEliza.
1208
+ }
1209
+ function resolveDefaultPgliteDataDir(config) {
1210
+ const workspaceDir = config.agents?.defaults?.workspace ?? resolveDefaultAgentWorkspaceDir();
1211
+ return path.join(resolveUserPath(workspaceDir), ".eliza", ".elizadb");
1212
+ }
1213
+ /** @internal Exported for testing. */
1214
+ export function applyDatabaseConfigToEnv(config) {
1215
+ const db = config.database;
1216
+ const provider = db?.provider ?? "pglite";
1217
+ if (provider === "postgres" && db?.postgres) {
1218
+ const pg = db.postgres;
1219
+ let url = pg.connectionString;
1220
+ if (!url) {
1221
+ const host = pg.host ?? "localhost";
1222
+ const port = pg.port ?? 5432;
1223
+ const user = encodeURIComponent(pg.user ?? "postgres");
1224
+ const password = pg.password ? encodeURIComponent(pg.password) : "";
1225
+ const database = pg.database ?? "postgres";
1226
+ const auth = password ? `${user}:${password}` : user;
1227
+ const sslParam = pg.ssl ? "?sslmode=require" : "";
1228
+ url = `postgresql://${auth}@${host}:${port}/${database}${sslParam}`;
1229
+ }
1230
+ process.env.POSTGRES_URL = url;
1231
+ // Clear PGLite dir so plugin-sql does not fall back to PGLite
1232
+ delete process.env.PGLITE_DATA_DIR;
1233
+ }
1234
+ else {
1235
+ // PGLite mode (default): ensure no leftover POSTGRES_URL and pin
1236
+ // PGLite to the workspace path unless overridden by config/env.
1237
+ delete process.env.POSTGRES_URL;
1238
+ const configuredDataDir = db?.pglite?.dataDir?.trim();
1239
+ if (configuredDataDir) {
1240
+ process.env.PGLITE_DATA_DIR = resolveUserPath(configuredDataDir);
1241
+ // Fall through to directory creation below instead of returning early
1242
+ }
1243
+ const envDataDir = process.env.PGLITE_DATA_DIR?.trim();
1244
+ if (!envDataDir) {
1245
+ process.env.PGLITE_DATA_DIR = resolveDefaultPgliteDataDir(config);
1246
+ }
1247
+ // Ensure the PGlite data directory exists before init so PGlite does
1248
+ // not silently fall back to in-memory mode on first run.
1249
+ const dataDir = process.env.PGLITE_DATA_DIR;
1250
+ if (dataDir) {
1251
+ const alreadyExisted = existsSync(dataDir);
1252
+ mkdirSync(dataDir, { recursive: true });
1253
+ logger.info(`[eliza] PGlite data dir: ${dataDir} (${alreadyExisted ? "existed" : "created"})`);
1254
+ // Remove stale postmaster.pid left by a crashed process. Without this,
1255
+ // PGlite sees the lock and either fails or, with explicit destructive
1256
+ // recovery enabled, triggers the resetPgliteDataDir path.
1257
+ cleanStalePglitePid(dataDir);
1258
+ }
1259
+ }
1260
+ }
1261
+ function reconcilePglitePidFile(dataDir) {
1262
+ const pidPath = path.join(dataDir, "postmaster.pid");
1263
+ if (!existsSync(pidPath))
1264
+ return "missing";
1265
+ try {
1266
+ const content = readFileSync(pidPath, "utf-8");
1267
+ const firstLine = content.split("\n")[0]?.trim();
1268
+ const pid = parseInt(firstLine, 10);
1269
+ if (Number.isNaN(pid) || pid <= 0) {
1270
+ // Malformed pid file — remove it
1271
+ unlinkSync(pidPath);
1272
+ logger.info(`[eliza] Removed malformed PGlite postmaster.pid`);
1273
+ return "cleared-malformed";
1274
+ }
1275
+ // Check if the process is still alive
1276
+ try {
1277
+ process.kill(pid, 0); // signal 0 = existence check, doesn't kill
1278
+ // Process exists — pid file is NOT stale, leave it alone
1279
+ logger.info(`[eliza] PGlite postmaster.pid references running process ${pid} — leaving intact`);
1280
+ return "active";
1281
+ }
1282
+ catch (killErr) {
1283
+ const code = killErr.code;
1284
+ if (code === "ESRCH") {
1285
+ // Process doesn't exist — stale pid file, safe to remove
1286
+ unlinkSync(pidPath);
1287
+ logger.info(`[eliza] Removed stale PGlite postmaster.pid (process ${pid} not running)`);
1288
+ return "cleared-stale";
1289
+ }
1290
+ else {
1291
+ // EPERM or other — process may be alive under a different user,
1292
+ // leave the file alone to avoid data directory corruption
1293
+ logger.warn(`[eliza] Cannot confirm postmaster.pid staleness (${code}) — leaving intact`);
1294
+ return "active-unconfirmed";
1295
+ }
1296
+ }
1297
+ }
1298
+ catch (err) {
1299
+ logger.warn(`[eliza] Failed to check PGlite postmaster.pid: ${formatError(err)}`);
1300
+ return "check-failed";
1301
+ }
1302
+ }
1303
+ /**
1304
+ * Check for and remove a stale postmaster.pid in the PGlite data directory.
1305
+ * The pid file is stale if the recorded process is no longer running.
1306
+ */
1307
+ export function cleanStalePglitePid(dataDir) {
1308
+ try {
1309
+ reconcilePglitePidFile(dataDir);
1310
+ }
1311
+ catch (err) {
1312
+ logger.warn(`[eliza] PGlite PID reconciliation failed: ${err}`);
1313
+ }
1314
+ }
1315
+ function collectErrorMessages(err) {
1316
+ const messages = [];
1317
+ const seen = new Set();
1318
+ let current = err;
1319
+ while (current && !seen.has(current)) {
1320
+ seen.add(current);
1321
+ if (typeof current === "string") {
1322
+ messages.push(current);
1323
+ break;
1324
+ }
1325
+ if (current instanceof Error) {
1326
+ if (current.message)
1327
+ messages.push(current.message);
1328
+ if (current.stack)
1329
+ messages.push(current.stack);
1330
+ current = current.cause;
1331
+ continue;
1332
+ }
1333
+ if (typeof current === "object") {
1334
+ const maybeErr = current;
1335
+ if (typeof maybeErr.message === "string" && maybeErr.message) {
1336
+ messages.push(maybeErr.message);
1337
+ }
1338
+ if (maybeErr.cause !== undefined) {
1339
+ current = maybeErr.cause;
1340
+ continue;
1341
+ }
1342
+ }
1343
+ break;
1344
+ }
1345
+ return messages;
1346
+ }
1347
+ function isPgliteLockError(err) {
1348
+ const haystack = collectErrorMessages(err).join("\n").toLowerCase();
1349
+ if (!haystack)
1350
+ return false;
1351
+ const hasPglite = haystack.includes("pglite");
1352
+ const hasSqlite = haystack.includes("sqlite");
1353
+ const hasLockSignal = haystack.includes("database is locked") ||
1354
+ haystack.includes("lock file already exists");
1355
+ return hasLockSignal && (hasPglite || hasSqlite);
1356
+ }
1357
+ /** @internal Exported for testing. */
1358
+ export function isRecoverablePgliteInitError(err) {
1359
+ const code = getPgliteErrorCode(err);
1360
+ if (code === PGLITE_ERROR_CODES.ACTIVE_LOCK ||
1361
+ code === PGLITE_ERROR_CODES.CORRUPT_DATA ||
1362
+ code === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED) {
1363
+ return true;
1364
+ }
1365
+ const haystack = collectErrorMessages(err).join("\n").toLowerCase();
1366
+ if (!haystack)
1367
+ return false;
1368
+ const hasAbort = haystack.includes("aborted(). build with -sassertions");
1369
+ const hasPglite = haystack.includes("pglite");
1370
+ const _hasSqlite = haystack.includes("sqlite");
1371
+ const hasMigrationsSchema = haystack.includes("create schema if not exists migrations") ||
1372
+ haystack.includes("failed query: create schema if not exists migrations");
1373
+ const hasRecoverableStorageSignal = [
1374
+ "database disk image is malformed",
1375
+ "file is not a database",
1376
+ "malformed database schema",
1377
+ "database is locked",
1378
+ "lock file already exists",
1379
+ "wal file",
1380
+ "checkpoint failed",
1381
+ "checksum mismatch",
1382
+ "corrupt",
1383
+ "could not read blocks",
1384
+ "read only ",
1385
+ "unreachable code should not be executed",
1386
+ "_pgl_backend",
1387
+ ].some((needle) => haystack.includes(needle));
1388
+ if (hasMigrationsSchema)
1389
+ return true;
1390
+ if (hasAbort && hasPglite)
1391
+ return true;
1392
+ if (hasRecoverableStorageSignal)
1393
+ return true;
1394
+ return false;
1395
+ }
1396
+ /** @internal Exported for testing. */
1397
+ export function getPgliteRecoveryAction(err, dataDir) {
1398
+ const code = getPgliteErrorCode(err);
1399
+ if (code === PGLITE_ERROR_CODES.ACTIVE_LOCK) {
1400
+ return "fail-active-lock";
1401
+ }
1402
+ if (code === PGLITE_ERROR_CODES.CORRUPT_DATA ||
1403
+ code === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED) {
1404
+ return "fail-manual-reset";
1405
+ }
1406
+ if (!isRecoverablePgliteInitError(err))
1407
+ return "none";
1408
+ const pidStatus = reconcilePglitePidFile(dataDir);
1409
+ const treatPidAsActiveLock = code === PGLITE_ERROR_CODES.ACTIVE_LOCK || isPgliteLockError(err);
1410
+ if ((treatPidAsActiveLock && pidStatus === "active") ||
1411
+ (treatPidAsActiveLock && pidStatus === "active-unconfirmed") ||
1412
+ (treatPidAsActiveLock && pidStatus === "check-failed")) {
1413
+ return "fail-active-lock";
1414
+ }
1415
+ if (pidStatus === "cleared-stale" || pidStatus === "cleared-malformed") {
1416
+ return "retry-without-reset";
1417
+ }
1418
+ return "fail-manual-reset";
1419
+ }
1420
+ function createActivePgliteLockError(dataDir, err) {
1421
+ if (getPgliteErrorCode(err) === PGLITE_ERROR_CODES.ACTIVE_LOCK &&
1422
+ err instanceof Error) {
1423
+ return err;
1424
+ }
1425
+ 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 });
1426
+ }
1427
+ function formatPgliteFailure(err) {
1428
+ return collectErrorMessages(err)[0] ?? formatError(err);
1429
+ }
1430
+ function createManualResetRequiredPgliteError(dataDir, err) {
1431
+ if (getPgliteErrorCode(err) === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED &&
1432
+ err instanceof Error) {
1433
+ return err;
1434
+ }
1435
+ const errorText = formatPgliteFailure(err);
1436
+ const cause = getPgliteErrorCode(err) === PGLITE_ERROR_CODES.CORRUPT_DATA
1437
+ ? err
1438
+ : createPgliteInitError(PGLITE_ERROR_CODES.CORRUPT_DATA, `PGlite data dir at ${dataDir} appears corrupt or unreadable: ${errorText}`, { cause: err, dataDir });
1439
+ 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 });
1440
+ }
1441
+ export function isFatalPgliteStartupError(err) {
1442
+ const code = getPgliteErrorCode(err);
1443
+ return (code === PGLITE_ERROR_CODES.ACTIVE_LOCK ||
1444
+ code === PGLITE_ERROR_CODES.CORRUPT_DATA ||
1445
+ code === PGLITE_ERROR_CODES.MANUAL_RESET_REQUIRED);
1446
+ }
1447
+ function resolveActivePgliteDataDir(config) {
1448
+ const provider = config.database?.provider ?? "pglite";
1449
+ if (provider === "postgres")
1450
+ return null;
1451
+ const configured = process.env.PGLITE_DATA_DIR?.trim();
1452
+ const dataDir = configured || resolveDefaultPgliteDataDir(config);
1453
+ return resolveUserPath(dataDir);
1454
+ }
1455
+ /** Call whichever init method the adapter exposes (.init or .initialize). */
1456
+ async function callAdapterInit(adapter) {
1457
+ const fn = "init" in adapter &&
1458
+ typeof adapter.init === "function"
1459
+ ? adapter.init
1460
+ : adapter.initialize;
1461
+ if (typeof fn === "function")
1462
+ await fn.call(adapter);
1463
+ }
1464
+ async function initializeDatabaseAdapter(runtime, config) {
1465
+ if (!runtime.adapter || (await runtime.adapter.isReady()))
1466
+ return;
1467
+ try {
1468
+ await callAdapterInit(runtime.adapter);
1469
+ logger.info("[eliza] Database adapter initialized early (before plugin inits)");
1470
+ }
1471
+ catch (err) {
1472
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
1473
+ if (!pgliteDataDir) {
1474
+ throw err;
1475
+ }
1476
+ const recoveryAction = getPgliteRecoveryAction(err, pgliteDataDir);
1477
+ if (recoveryAction === "none") {
1478
+ throw err;
1479
+ }
1480
+ if (recoveryAction === "fail-active-lock") {
1481
+ throw createActivePgliteLockError(pgliteDataDir, err);
1482
+ }
1483
+ if (recoveryAction === "fail-manual-reset") {
1484
+ throw createManualResetRequiredPgliteError(pgliteDataDir, err);
1485
+ }
1486
+ logger.warn(`[eliza] PGLite init failed (${formatError(err)}). Cleared a stale PGLite lock in ${pgliteDataDir} and retrying without resetting data.`);
1487
+ await callAdapterInit(runtime.adapter);
1488
+ logger.info("[eliza] Database adapter recovered after clearing a stale PGLite lock");
1489
+ }
1490
+ // Health check: verify PGlite data directory has files after init.
1491
+ // Runs on BOTH the happy path and the recovery path.
1492
+ await verifyPgliteDataDir(config);
1493
+ }
1494
+ /**
1495
+ * Verify PGlite data directory contains files after init.
1496
+ * Warns if the directory is empty (suggests ephemeral/in-memory fallback).
1497
+ */
1498
+ async function verifyPgliteDataDir(config) {
1499
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
1500
+ if (!pgliteDataDir || !existsSync(pgliteDataDir))
1501
+ return;
1502
+ try {
1503
+ const files = await fs.readdir(pgliteDataDir);
1504
+ logger.info(`[eliza] PGlite health check: ${files.length} file(s) in ${pgliteDataDir}`);
1505
+ if (files.length === 0) {
1506
+ logger.warn(`[eliza] PGlite data directory is empty after init — data may not persist across restarts`);
1507
+ }
1508
+ }
1509
+ catch (err) {
1510
+ logger.warn(`[eliza] PGlite health check failed: ${formatError(err)}`);
1511
+ }
1512
+ }
1513
+ function isPluginAlreadyRegisteredError(err) {
1514
+ return formatError(err).toLowerCase().includes("already registered");
1515
+ }
1516
+ function getConstraintName(error) {
1517
+ if (!error || typeof error !== "object")
1518
+ return null;
1519
+ const err = error;
1520
+ if (typeof err.constraint === "string" && err.constraint.length > 0) {
1521
+ return err.constraint;
1522
+ }
1523
+ if (err.cause)
1524
+ return getConstraintName(err.cause);
1525
+ return null;
1526
+ }
1527
+ function isComponentsWorldFkViolation(error) {
1528
+ return getConstraintName(error) === "components_world_id_worlds_id_fk";
1529
+ }
1530
+ function toErrorDetails(error, depth = 0) {
1531
+ if (!error || typeof error !== "object") {
1532
+ return { value: String(error) };
1533
+ }
1534
+ const err = error;
1535
+ const details = {};
1536
+ for (const key of [
1537
+ "name",
1538
+ "message",
1539
+ "code",
1540
+ "detail",
1541
+ "hint",
1542
+ "constraint",
1543
+ "schema",
1544
+ "table",
1545
+ "column",
1546
+ "where",
1547
+ ]) {
1548
+ const value = err[key];
1549
+ if (typeof value === "string" || typeof value === "number") {
1550
+ details[key] = value;
1551
+ }
1552
+ }
1553
+ if (depth < 2 && err.cause) {
1554
+ details.cause = toErrorDetails(err.cause, depth + 1);
1555
+ }
1556
+ return details;
1557
+ }
1558
+ async function withEntityCreateMutex(runtimeWithBindings, fn) {
1559
+ const previous = runtimeWithBindings.__elizaEntityCreateMutex;
1560
+ let release = () => { };
1561
+ runtimeWithBindings.__elizaEntityCreateMutex = new Promise((resolve) => {
1562
+ release = resolve;
1563
+ });
1564
+ if (previous) {
1565
+ await previous;
1566
+ }
1567
+ try {
1568
+ return await fn();
1569
+ }
1570
+ finally {
1571
+ release();
1572
+ }
1573
+ }
1574
+ function summarizeComponentWrite(input) {
1575
+ if (!input || typeof input !== "object" || Array.isArray(input)) {
1576
+ return { inputType: typeof input };
1577
+ }
1578
+ const record = input;
1579
+ const data = record.data;
1580
+ const dataKeys = data && typeof data === "object" && !Array.isArray(data)
1581
+ ? Object.keys(data).slice(0, 20)
1582
+ : [];
1583
+ return {
1584
+ id: record.id,
1585
+ type: record.type,
1586
+ entityId: record.entityId ?? record.entity_id,
1587
+ sourceEntityId: record.sourceEntityId ?? record.source_entity_id,
1588
+ roomId: record.roomId ?? record.room_id,
1589
+ worldId: record.worldId ?? record.world_id,
1590
+ agentId: record.agentId ?? record.agent_id,
1591
+ dataKeys,
1592
+ };
1593
+ }
1594
+ export function installRuntimeMethodBindings(runtime) {
1595
+ const runtimeWithBindings = runtime;
1596
+ if (runtimeWithBindings.__elizaMethodBindingsInstalled) {
1597
+ return;
1598
+ }
1599
+ installRuntimePluginLifecycle(runtime);
1600
+ // Some plugin builds store this method and invoke it later without the
1601
+ // runtime receiver, which breaks private-field access in AgentRuntime.
1602
+ runtime.getConversationLength = runtime.getConversationLength.bind(runtime);
1603
+ // Wrap getSetting() to fall back to process.env for known keys when the
1604
+ // core returns null. elizaOS core returns null for missing keys, but some
1605
+ // plugins (e.g. @elizaos/plugin-google-genai) check `!== undefined` and
1606
+ // convert null to the string "null", causing API calls like `models/null`.
1607
+ // Scoped to an allowlist to avoid leaking arbitrary env vars to plugins.
1608
+ const GETSETTING_ENV_ALLOWLIST = new Set([
1609
+ // Model provider API keys
1610
+ "ANTHROPIC_API_KEY",
1611
+ "OPENAI_API_KEY",
1612
+ "GOOGLE_GENERATIVE_AI_API_KEY",
1613
+ "GOOGLE_API_KEY",
1614
+ "GEMINI_API_KEY",
1615
+ "GROQ_API_KEY",
1616
+ "XAI_API_KEY",
1617
+ "DEEPSEEK_API_KEY",
1618
+ "OPENROUTER_API_KEY",
1619
+ // Google model defaults
1620
+ "GOOGLE_SMALL_MODEL",
1621
+ "GOOGLE_LARGE_MODEL",
1622
+ // GitHub
1623
+ "GITHUB_TOKEN",
1624
+ "GITHUB_OAUTH_CLIENT_ID",
1625
+ // Coding agent model preferences
1626
+ "PARALLAX_CLAUDE_MODEL_POWERFUL",
1627
+ "PARALLAX_CLAUDE_MODEL_FAST",
1628
+ "PARALLAX_GEMINI_MODEL_POWERFUL",
1629
+ "PARALLAX_GEMINI_MODEL_FAST",
1630
+ "PARALLAX_CODEX_MODEL_POWERFUL",
1631
+ "PARALLAX_CODEX_MODEL_FAST",
1632
+ "PARALLAX_AIDER_PROVIDER",
1633
+ "PARALLAX_AIDER_MODEL_POWERFUL",
1634
+ "PARALLAX_AIDER_MODEL_FAST",
1635
+ // Custom credential forwarding — intentionally broad: users configure which env vars
1636
+ // to forward to coding agents via this comma-separated key list (e.g. MCP server tokens).
1637
+ "CUSTOM_CREDENTIAL_KEYS",
1638
+ ]);
1639
+ const originalGetSetting = runtime.getSetting.bind(runtime);
1640
+ runtime.getSetting = (key) => {
1641
+ const result = originalGetSetting(key);
1642
+ if (result !== null && result !== undefined)
1643
+ return result;
1644
+ if (GETSETTING_ENV_ALLOWLIST.has(key)) {
1645
+ const envVal = process.env[key];
1646
+ if (envVal !== undefined && envVal.trim() !== "")
1647
+ return envVal;
1648
+ }
1649
+ return result;
1650
+ };
1651
+ // Add targeted diagnostics around component writes. Relationships reflection and
1652
+ // relationship extraction rely heavily on components; when inserts fail,
1653
+ // upstream logs often hide the concrete DB cause/constraint.
1654
+ if (!runtimeWithBindings.__elizaComponentWriteDiagnosticsInstalled) {
1655
+ const runtimeWithComponentWrites = runtime;
1656
+ if (typeof runtimeWithComponentWrites.createComponent === "function") {
1657
+ const originalCreate = runtimeWithComponentWrites.createComponent.bind(runtime);
1658
+ runtimeWithComponentWrites.createComponent = async (input) => {
1659
+ try {
1660
+ return await originalCreate(input);
1661
+ }
1662
+ catch (error) {
1663
+ // Recovery path: some evaluators (e.g. relationship extraction)
1664
+ // compute a synthetic worldId that may not exist yet. If we hit the
1665
+ // components->worlds FK, retry once with the room's canonical worldId.
1666
+ if (isComponentsWorldFkViolation(error) &&
1667
+ input.roomId &&
1668
+ typeof runtime.getRoom === "function") {
1669
+ try {
1670
+ const room = await runtime.getRoom(input.roomId);
1671
+ const fallbackWorldId = room?.worldId ?? null;
1672
+ if (fallbackWorldId !== input.worldId) {
1673
+ logger.warn(`[eliza] createComponent retry with ${fallbackWorldId ? `room worldId (${fallbackWorldId})` : "null worldId"} after FK violation`);
1674
+ const recovered = {
1675
+ ...input,
1676
+ worldId: fallbackWorldId,
1677
+ };
1678
+ return await originalCreate(recovered);
1679
+ }
1680
+ }
1681
+ catch (retryLookupError) {
1682
+ logger.warn(`[eliza] createComponent recovery lookup failed: ${formatError(retryLookupError)}`);
1683
+ }
1684
+ }
1685
+ const component = summarizeComponentWrite(input);
1686
+ logger.error(`[eliza] createComponent failed: ${formatError(error)} | component=${JSON.stringify(component)}`);
1687
+ logger.error(`[eliza] createComponent db details: ${JSON.stringify(toErrorDetails(error))}`);
1688
+ throw error;
1689
+ }
1690
+ };
1691
+ }
1692
+ if (typeof runtimeWithComponentWrites.updateComponent === "function") {
1693
+ const originalUpdate = runtimeWithComponentWrites.updateComponent.bind(runtime);
1694
+ runtimeWithComponentWrites.updateComponent = async (input) => {
1695
+ try {
1696
+ return await originalUpdate(input);
1697
+ }
1698
+ catch (error) {
1699
+ const component = summarizeComponentWrite(input);
1700
+ logger.error(`[eliza] updateComponent failed: ${formatError(error)} | component=${JSON.stringify(component)}`);
1701
+ logger.error(`[eliza] updateComponent db details: ${JSON.stringify(toErrorDetails(error))}`);
1702
+ throw error;
1703
+ }
1704
+ };
1705
+ }
1706
+ runtimeWithBindings.__elizaComponentWriteDiagnosticsInstalled = true;
1707
+ }
1708
+ // Proactive guard for plugin-sql entity creation. Some evaluators may attempt
1709
+ // to create the same entity in rapid succession; plugin-sql's batch insert is
1710
+ // non-idempotent and can fail entire writes on duplicate/conflicting rows.
1711
+ if (!runtimeWithBindings.__elizaEntityWriteDiagnosticsInstalled) {
1712
+ const runtimeWithEntityWrites = runtime;
1713
+ if (typeof runtimeWithEntityWrites.createEntities === "function") {
1714
+ const originalCreateEntities = runtimeWithEntityWrites.createEntities.bind(runtime);
1715
+ runtimeWithEntityWrites.createEntities = async (entities) => {
1716
+ return withEntityCreateMutex(runtimeWithBindings, async () => {
1717
+ const uniqueById = new Map();
1718
+ for (const entity of entities) {
1719
+ if (entity?.id)
1720
+ uniqueById.set(entity.id, entity);
1721
+ }
1722
+ const deduped = Array.from(uniqueById.values());
1723
+ if (deduped.length === 0)
1724
+ return deduped.map((e) => e.id);
1725
+ let missing = deduped;
1726
+ if (typeof runtimeWithEntityWrites.getEntitiesByIds === "function") {
1727
+ try {
1728
+ const existing = (await runtimeWithEntityWrites.getEntitiesByIds(deduped.map((e) => e.id))) ?? [];
1729
+ const existingIds = new Set();
1730
+ for (const entity of existing) {
1731
+ if (entity?.id)
1732
+ existingIds.add(entity.id);
1733
+ }
1734
+ missing = deduped.filter((entity) => !existingIds.has(entity.id));
1735
+ }
1736
+ catch (err) {
1737
+ logger.warn(`[eliza] createEntities precheck failed; proceeding with guarded insert: ${formatError(err)}`);
1738
+ }
1739
+ }
1740
+ if (missing.length === 0)
1741
+ return deduped.map((e) => e.id);
1742
+ const result = await originalCreateEntities(missing);
1743
+ if (Array.isArray(result) ? result.length > 0 : result)
1744
+ return deduped.map((e) => e.id);
1745
+ if (typeof runtimeWithEntityWrites.ensureEntityExists === "function") {
1746
+ let allRecovered = true;
1747
+ for (const entity of missing) {
1748
+ try {
1749
+ const ensured = await runtimeWithEntityWrites.ensureEntityExists(entity);
1750
+ allRecovered = allRecovered && ensured;
1751
+ }
1752
+ catch (err) {
1753
+ allRecovered = false;
1754
+ logger.warn(`[eliza] ensureEntityExists recovery failed for ${String(entity.id)}: ${formatError(err)}`);
1755
+ }
1756
+ }
1757
+ if (allRecovered)
1758
+ return deduped.map((e) => e.id);
1759
+ }
1760
+ logger.warn(`[eliza] createEntities unresolved after guarded retries (requested=${entities.length}, deduped=${deduped.length}, missing=${missing.length})`);
1761
+ return [];
1762
+ });
1763
+ };
1764
+ }
1765
+ runtimeWithBindings.__elizaEntityWriteDiagnosticsInstalled = true;
1766
+ }
1767
+ runtimeWithBindings.__elizaMethodBindingsInstalled = true;
1768
+ }
1769
+ function installActionAliases(runtime) {
1770
+ const runtimeWithAliases = runtime;
1771
+ if (runtimeWithAliases.__elizaActionAliasesInstalled) {
1772
+ return;
1773
+ }
1774
+ const actions = Array.isArray(runtimeWithAliases.actions)
1775
+ ? runtimeWithAliases.actions
1776
+ : [];
1777
+ // Keep compaction automatic-only; do not allow manual COMPACT_SESSION invokes.
1778
+ const compactSessionIndex = actions.findIndex((action) => action?.name?.toUpperCase() === "COMPACT_SESSION");
1779
+ if (compactSessionIndex !== -1) {
1780
+ actions.splice(compactSessionIndex, 1);
1781
+ logger.info("[eliza] Disabled manual COMPACT_SESSION action; auto-compaction remains enabled");
1782
+ }
1783
+ // Compatibility alias: older prompts/docs still reference CODE_TASK,
1784
+ // while agent-orchestrator exposes CREATE_TASK.
1785
+ const createTaskAction = actions.find((action) => action?.name?.toUpperCase() === "CREATE_TASK");
1786
+ if (createTaskAction) {
1787
+ const similes = Array.isArray(createTaskAction.similes)
1788
+ ? createTaskAction.similes
1789
+ : [];
1790
+ const hasCodeTaskAlias = similes.some((simile) => simile.toUpperCase() === "CODE_TASK");
1791
+ if (!hasCodeTaskAlias) {
1792
+ createTaskAction.similes = [...similes, "CODE_TASK"];
1793
+ logger.info("[eliza] Added action alias CODE_TASK -> CREATE_TASK for agent-orchestrator");
1794
+ }
1795
+ }
1796
+ runtimeWithAliases.__elizaActionAliasesInstalled = true;
1797
+ }
1798
+ async function registerSqlPluginWithRecovery(runtime, sqlPlugin, config) {
1799
+ let registerError = null;
1800
+ try {
1801
+ await runtime.registerPlugin(sqlPlugin.plugin);
1802
+ }
1803
+ catch (err) {
1804
+ registerError = err;
1805
+ }
1806
+ if (registerError) {
1807
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
1808
+ if (!pgliteDataDir) {
1809
+ throw registerError;
1810
+ }
1811
+ const recoveryAction = getPgliteRecoveryAction(registerError, pgliteDataDir);
1812
+ if (recoveryAction === "none") {
1813
+ throw registerError;
1814
+ }
1815
+ if (recoveryAction === "fail-active-lock") {
1816
+ throw createActivePgliteLockError(pgliteDataDir, registerError);
1817
+ }
1818
+ if (recoveryAction === "fail-manual-reset") {
1819
+ throw createManualResetRequiredPgliteError(pgliteDataDir, registerError);
1820
+ }
1821
+ logger.warn(`[eliza] SQL plugin registration failed (${formatError(registerError)}). Cleared a stale PGLite lock in ${pgliteDataDir} and retrying without resetting data.`);
1822
+ try {
1823
+ await runtime.registerPlugin(sqlPlugin.plugin);
1824
+ }
1825
+ catch (retryErr) {
1826
+ if (!isPluginAlreadyRegisteredError(retryErr)) {
1827
+ throw retryErr;
1828
+ }
1829
+ }
1830
+ }
1831
+ await initializeDatabaseAdapter(runtime, config);
1832
+ }
1833
+ /**
1834
+ * Build an elizaOS Character from the Eliza config.
1835
+ *
1836
+ * Resolves the agent name from `config.agents.list` (first entry) or
1837
+ * `config.ui.assistant.name`, falling back to the default bundled preset.
1838
+ * Character
1839
+ * personality data (bio, system prompt, style, etc.) is stored in the
1840
+ * database — not the config file — so we only provide sensible defaults
1841
+ * here for the initial setup.
1842
+ */
1843
+ /** @internal Exported for testing. */
1844
+ export function buildCharacterFromConfig(config) {
1845
+ const agentEntry = config.agents?.list?.[0];
1846
+ const uiConfig = (config.ui ?? {});
1847
+ const language = normalizeCharacterLanguage(uiConfig.language);
1848
+ const configuredUiName = uiConfig.assistant?.name?.trim();
1849
+ const configuredAgentName = agentEntry?.name?.trim();
1850
+ // Prefer the UI-level assistant name when it diverges from the bundled
1851
+ // preset entry so renames take effect immediately across prompts/logging.
1852
+ const configuredName = configuredUiName || configuredAgentName;
1853
+ const bundledPreset = resolveStylePresetById(uiConfig.presetId, language) ??
1854
+ resolveStylePresetByAvatarIndex(uiConfig.avatarIndex, language) ??
1855
+ resolveStylePresetByName(configuredName, language) ??
1856
+ (configuredName ? undefined : getDefaultStylePreset(language));
1857
+ const name = configuredName ??
1858
+ bundledPreset?.name ??
1859
+ getDefaultStylePreset(language).name;
1860
+ // Read personality fields from the agent config entry (set during
1861
+ // onboarding from the chosen style preset). Fall back to generic
1862
+ // defaults when the preset data is not present (e.g. pre-onboarding
1863
+ // setup or configs created before this change). For built-in default
1864
+ // characters, fall back to the bundled preset so legacy name-only configs
1865
+ // still retain their default posts/messages.
1866
+ const bio = agentEntry?.bio ??
1867
+ bundledPreset?.bio ?? [
1868
+ "{{name}} is an AI assistant powered by Eliza and elizaOS.",
1869
+ ];
1870
+ const systemPrompt = agentEntry?.system ??
1871
+ bundledPreset?.system ??
1872
+ "You are {{name}}, an autonomous AI agent powered by elizaOS.";
1873
+ const style = agentEntry?.style ?? bundledPreset?.style;
1874
+ const adjectives = agentEntry?.adjectives ?? bundledPreset?.adjectives;
1875
+ const topics = agentEntry?.topics && agentEntry.topics.length > 0
1876
+ ? agentEntry.topics
1877
+ : bundledPreset?.topics;
1878
+ const postExamples = agentEntry?.postExamples ?? bundledPreset?.postExamples;
1879
+ const messageExamples = agentEntry?.messageExamples ?? bundledPreset?.messageExamples;
1880
+ const advancedMemory = agentEntry?.advancedMemory ??
1881
+ config.agents?.defaults?.advancedMemory ??
1882
+ true;
1883
+ const advancedCapabilitiesEnabled = resolveAdvancedCapabilitiesEnabled(config);
1884
+ const settings = applyAdvancedCapabilitySettings({
1885
+ MEMORY_SUMMARY_MODEL_TYPE: process.env.MEMORY_SUMMARY_MODEL_TYPE?.trim() || "TEXT_SMALL",
1886
+ MEMORY_REFLECTION_MODEL_TYPE: process.env.MEMORY_REFLECTION_MODEL_TYPE?.trim() || "TEXT_LARGE",
1887
+ }, advancedCapabilitiesEnabled);
1888
+ // Collect secrets from process.env (API keys the plugins need)
1889
+ const secretKeys = [
1890
+ "ANTHROPIC_API_KEY",
1891
+ "OPENAI_API_KEY",
1892
+ "GEMINI_API_KEY",
1893
+ "GOOGLE_API_KEY",
1894
+ "GOOGLE_GENERATIVE_AI_API_KEY",
1895
+ "GROQ_API_KEY",
1896
+ "XAI_API_KEY",
1897
+ "OPENROUTER_API_KEY",
1898
+ "AI_GATEWAY_API_KEY",
1899
+ "AIGATEWAY_API_KEY",
1900
+ "AI_GATEWAY_BASE_URL",
1901
+ "AI_GATEWAY_SMALL_MODEL",
1902
+ "AI_GATEWAY_LARGE_MODEL",
1903
+ "AI_GATEWAY_EMBEDDING_MODEL",
1904
+ "AI_GATEWAY_EMBEDDING_DIMENSIONS",
1905
+ "AI_GATEWAY_IMAGE_MODEL",
1906
+ "AI_GATEWAY_TIMEOUT_MS",
1907
+ "OLLAMA_BASE_URL",
1908
+ "DISCORD_API_TOKEN",
1909
+ "DISCORD_APPLICATION_ID",
1910
+ "DISCORD_BOT_TOKEN",
1911
+ "TELEGRAM_BOT_TOKEN",
1912
+ "WHATSAPP_ACCESS_TOKEN",
1913
+ "WHATSAPP_PHONE_NUMBER_ID",
1914
+ "WHATSAPP_AUTH_DIR",
1915
+ "WHATSAPP_SESSION_PATH",
1916
+ "WHATSAPP_WEBHOOK_VERIFY_TOKEN",
1917
+ "WHATSAPP_API_VERSION",
1918
+ "WHATSAPP_DM_POLICY",
1919
+ "WHATSAPP_GROUP_POLICY",
1920
+ "WHATSAPP_ALLOW_FROM",
1921
+ "WHATSAPP_GROUP_ALLOW_FROM",
1922
+ "TELEGRAM_ACCOUNT_PHONE",
1923
+ "TELEGRAM_ACCOUNT_APP_ID",
1924
+ "TELEGRAM_ACCOUNT_APP_HASH",
1925
+ "TELEGRAM_ACCOUNT_DEVICE_MODEL",
1926
+ "TELEGRAM_ACCOUNT_SYSTEM_VERSION",
1927
+ "SLACK_BOT_TOKEN",
1928
+ "SLACK_APP_TOKEN",
1929
+ "SLACK_USER_TOKEN",
1930
+ "SIGNAL_ACCOUNT_NUMBER",
1931
+ "MSTEAMS_APP_ID",
1932
+ "MSTEAMS_APP_PASSWORD",
1933
+ "MATTERMOST_BOT_TOKEN",
1934
+ "MATTERMOST_BASE_URL",
1935
+ // ElizaCloud secrets
1936
+ "ELIZAOS_CLOUD_API_KEY",
1937
+ "ELIZAOS_CLOUD_BASE_URL",
1938
+ "ELIZAOS_CLOUD_ENABLED",
1939
+ // Wallet / blockchain secrets
1940
+ "EVM_PRIVATE_KEY",
1941
+ "SOLANA_PRIVATE_KEY",
1942
+ "ALCHEMY_API_KEY",
1943
+ "HELIUS_API_KEY",
1944
+ "BIRDEYE_API_KEY",
1945
+ "SOLANA_RPC_URL",
1946
+ "X402_PRIVATE_KEY",
1947
+ "X402_NETWORK",
1948
+ "X402_PAY_TO",
1949
+ "X402_FACILITATOR_URL",
1950
+ "X402_MAX_PAYMENT_USD",
1951
+ "X402_MAX_TOTAL_USD",
1952
+ "X402_ENABLED",
1953
+ "X402_DB_PATH",
1954
+ // n8n workflow plugin (resolved by applyN8nConfigToEnv)
1955
+ "N8N_HOST",
1956
+ "N8N_API_KEY",
1957
+ // GitHub access for coding agent plugin
1958
+ "GITHUB_TOKEN",
1959
+ "GITHUB_OAUTH_CLIENT_ID",
1960
+ ];
1961
+ const secrets = {};
1962
+ for (const key of secretKeys) {
1963
+ const value = process.env[key];
1964
+ if (value?.trim()) {
1965
+ secrets[key] = value;
1966
+ }
1967
+ }
1968
+ // Normalise messageExamples to the {examples: [{name,content}]} shape
1969
+ // that @elizaos/core expects. Config may contain EITHER format:
1970
+ // OLD (preset/onboarding): [[{user, content}, ...], ...]
1971
+ // NEW (@elizaos/core): [{examples: [{name, content}, ...]}, ...]
1972
+ const mappedExamples = messageExamples?.map((item) => {
1973
+ // Already in new format — pass through
1974
+ if (item &&
1975
+ typeof item === "object" &&
1976
+ "examples" in item) {
1977
+ return item;
1978
+ }
1979
+ // Old format — array of {user, content} entries
1980
+ const arr = item;
1981
+ return {
1982
+ examples: arr.map((msg) => ({
1983
+ name: msg.name ?? msg.user ?? "",
1984
+ content: msg.content,
1985
+ })),
1986
+ };
1987
+ });
1988
+ // Capability hints — append short descriptions of features the runtime has
1989
+ // auto-enabled so the model knows about new actions/tools without requiring
1990
+ // the user to hand-edit the system prompt. Kept terse (one sentence per
1991
+ // capability) to stay out of the way of the preset's voice.
1992
+ const capabilityHints = [];
1993
+ const n8nMasterEnabled = config.n8n?.enabled !== false;
1994
+ const n8nExplicitlyDisabled = config.plugins?.entries?.["n8n-workflow"]?.enabled === false;
1995
+ const n8nCloudAuthed = Boolean(config.cloud?.apiKey && config.cloud?.enabled !== false);
1996
+ const n8nLocalEnabled = config.n8n?.localEnabled !== false;
1997
+ if (n8nMasterEnabled &&
1998
+ !n8nExplicitlyDisabled &&
1999
+ (n8nCloudAuthed || n8nLocalEnabled)) {
2000
+ capabilityHints.push("You can create, activate, deactivate, and delete n8n workflows via natural language using the n8n workflow actions.");
2001
+ }
2002
+ const effectiveSystemPrompt = capabilityHints.length > 0
2003
+ ? `${systemPrompt}\n\n${capabilityHints.join("\n")}`
2004
+ : systemPrompt;
2005
+ return mergeCharacterDefaults({
2006
+ name,
2007
+ ...(agentEntry?.username ? { username: agentEntry.username } : {}),
2008
+ bio,
2009
+ system: effectiveSystemPrompt,
2010
+ ...(topics ? { topics } : {}),
2011
+ ...(style ? { style } : {}),
2012
+ ...(adjectives ? { adjectives } : {}),
2013
+ ...(postExamples ? { postExamples } : {}),
2014
+ ...(mappedExamples ? { messageExamples: mappedExamples } : {}),
2015
+ advancedMemory,
2016
+ settings,
2017
+ secrets,
2018
+ });
2019
+ }
2020
+ /**
2021
+ * Resolve the primary model identifier from Eliza config.
2022
+ *
2023
+ * Eliza stores the model under `agents.defaults.model.primary` as an
2024
+ * AgentModelListConfig object. Returns undefined when no model is
2025
+ * explicitly configured (elizaOS falls back to whichever model
2026
+ * plugin is loaded).
2027
+ */
2028
+ /** @internal Exported for testing. */
2029
+ export function resolvePrimaryModel(config) {
2030
+ const modelConfig = config.agents?.defaults?.model;
2031
+ if (!modelConfig)
2032
+ return undefined;
2033
+ // AgentDefaultsConfig.model is AgentModelListConfig: { primary?, fallbacks? }
2034
+ return modelConfig.primary;
2035
+ }
2036
+ function resolveProviderIdFromSelectionHint(value) {
2037
+ const trimmed = trimEnvString(value);
2038
+ if (!trimmed)
2039
+ return undefined;
2040
+ return (normalizeOnboardingProviderId(trimmed) ??
2041
+ normalizeOnboardingProviderId(trimmed.split("/", 1)[0]) ??
2042
+ undefined);
2043
+ }
2044
+ /** @internal Exported for testing. */
2045
+ export function resolvePreferredProviderId(config) {
2046
+ const llmText = resolveServiceRoutingInConfig(config)?.llmText;
2047
+ const backend = normalizeOnboardingProviderId(llmText?.backend);
2048
+ if (llmText?.transport === "cloud-proxy" && backend === "elizacloud") {
2049
+ return "elizacloud";
2050
+ }
2051
+ if (llmText?.transport === "direct") {
2052
+ const directProvider = backend && backend !== "elizacloud" ? backend : undefined;
2053
+ return (directProvider ?? resolveProviderIdFromSelectionHint(llmText.primaryModel));
2054
+ }
2055
+ if (llmText?.transport === "remote") {
2056
+ const remoteProvider = backend && backend !== "elizacloud" ? backend : undefined;
2057
+ return (remoteProvider ?? resolveProviderIdFromSelectionHint(llmText.primaryModel));
2058
+ }
2059
+ return resolveProviderIdFromSelectionHint(resolvePrimaryModel(config));
2060
+ }
2061
+ /** @internal Exported for testing. */
2062
+ export function resolvePreferredProviderPluginName(config) {
2063
+ const providerId = resolvePreferredProviderId(config);
2064
+ return providerId
2065
+ ? getOnboardingProviderOption(providerId)?.pluginName
2066
+ : undefined;
2067
+ }
2068
+ /**
2069
+ * Vision is a heavy optional plugin. When Eliza enables it, keep the service
2070
+ * loaded but idle until the user explicitly selects CAMERA, SCREEN, or BOTH.
2071
+ * This avoids background capture loops during normal app startup.
2072
+ */
2073
+ export function resolveVisionModeSetting(config, env = process.env) {
2074
+ const explicitMode = env.VISION_MODE?.trim();
2075
+ if (explicitMode)
2076
+ return explicitMode;
2077
+ if (config.features?.vision === true)
2078
+ return "OFF";
2079
+ return undefined;
2080
+ }
2081
+ /** @internal Exported for testing. */
2082
+ export function resolveWalletRuntimeSettings(config, env = process.env) {
2083
+ const directRpcUrl = trimEnvString(env.SOLANA_RPC_URL);
2084
+ const solanaNoActions = trimEnvString(env.SOLANA_NO_ACTIONS);
2085
+ const configEnv = config?.env;
2086
+ const configVars = configEnv?.vars &&
2087
+ typeof configEnv.vars === "object" &&
2088
+ !Array.isArray(configEnv.vars)
2089
+ ? configEnv.vars
2090
+ : undefined;
2091
+ const getConfigEnvString = (key) => {
2092
+ const value = configVars?.[key] ?? configEnv?.[key];
2093
+ return typeof value === "string" && value.trim() ? value.trim() : undefined;
2094
+ };
2095
+ const explicitSolanaPublicKey = trimEnvString(env.SOLANA_PUBLIC_KEY) ??
2096
+ trimEnvString(env.WALLET_PUBLIC_KEY) ??
2097
+ getConfigEnvString("SOLANA_PUBLIC_KEY") ??
2098
+ getConfigEnvString("WALLET_PUBLIC_KEY");
2099
+ const derivedSolanaPublicKey = trimEnvString(getWalletAddresses().solanaAddress) ??
2100
+ trimEnvString(syncSolanaPublicKeyEnv(getConfigEnvString("SOLANA_PRIVATE_KEY")));
2101
+ const solanaPublicKey = explicitSolanaPublicKey ?? derivedSolanaPublicKey;
2102
+ const settings = {};
2103
+ if (directRpcUrl) {
2104
+ settings.SOLANA_RPC_URL = directRpcUrl;
2105
+ }
2106
+ if (solanaNoActions) {
2107
+ settings.SOLANA_NO_ACTIONS = solanaNoActions;
2108
+ }
2109
+ if (!solanaPublicKey) {
2110
+ return settings;
2111
+ }
2112
+ settings.SOLANA_PUBLIC_KEY = solanaPublicKey;
2113
+ settings.WALLET_PUBLIC_KEY = solanaPublicKey;
2114
+ return settings;
2115
+ }
2116
+ /**
2117
+ * Boot the elizaOS runtime without starting the readline chat loop.
2118
+ *
2119
+ * This is a convenience wrapper around {@link startEliza} in headless mode,
2120
+ * with optional config guards.
2121
+ */
2122
+ export async function bootElizaRuntime(opts = {}) {
2123
+ if (opts.requireConfig && !configFileExists()) {
2124
+ throw new Error("No config found. Run `eliza start` once to complete setup.");
2125
+ }
2126
+ const runtime = await startEliza({ headless: true });
2127
+ if (!runtime) {
2128
+ throw new Error("Failed to boot runtime");
2129
+ }
2130
+ return runtime;
2131
+ }
2132
+ const LEVEL_TO_NAME = {
2133
+ 10: "trace",
2134
+ 20: "debug",
2135
+ 27: "success",
2136
+ 28: "progress",
2137
+ 29: "log",
2138
+ 30: "info",
2139
+ 40: "warn",
2140
+ 50: "error",
2141
+ 60: "fatal",
2142
+ };
2143
+ export const logToChatListener = (entry) => {
2144
+ if (entry.roomId && entry.runtime) {
2145
+ const runtime = entry.runtime;
2146
+ // access dynamic property
2147
+ const overrides = runtime.logLevelOverrides;
2148
+ const overrideLevel = overrides?.get(String(entry.roomId));
2149
+ if (overrideLevel) {
2150
+ const levelKey = entry.level;
2151
+ const levelName = (levelKey && LEVEL_TO_NAME[levelKey] ? LEVEL_TO_NAME[levelKey] : "log").toUpperCase();
2152
+ const prefix = `[${levelName}]`;
2153
+ const content = `${prefix} ${entry.msg}`;
2154
+ // Prevent infinite loops by suppressing logs from this action
2155
+ runtime
2156
+ .sendMessageToTarget({ roomId: entry.roomId }, {
2157
+ text: `\`\`\`\n${content}\n\`\`\``,
2158
+ source: "system",
2159
+ isLog: "true",
2160
+ })
2161
+ .catch((err) => {
2162
+ logger.debug(`[runtime] failed to send log message to target: ${err}`);
2163
+ });
2164
+ }
2165
+ }
2166
+ };
2167
+ /**
2168
+ * Start the elizaOS runtime with Eliza's configuration.
2169
+ *
2170
+ * In headless mode the runtime is returned instead of entering the
2171
+ * interactive readline loop.
2172
+ */
2173
+ export async function startEliza(opts) {
2174
+ // Start buffering logs early so startup messages appear in the UI log viewer
2175
+ const { captureEarlyLogs } = await import("../api/early-logs.js");
2176
+ captureEarlyLogs();
2177
+ // Register log listener for chat mirroring
2178
+ addLogListener(logToChatListener);
2179
+ // 1. Load Eliza config from ~/.eliza/eliza.json
2180
+ let config;
2181
+ try {
2182
+ config = loadElizaConfig();
2183
+ }
2184
+ catch (err) {
2185
+ if (err.code === "ENOENT") {
2186
+ logger.warn("[eliza] No config found, using defaults");
2187
+ // All ElizaConfig fields are optional, so an empty object is
2188
+ // structurally valid. The `as` cast is safe here.
2189
+ config = {};
2190
+ }
2191
+ else {
2192
+ throw err;
2193
+ }
2194
+ }
2195
+ // 1b. First-run onboarding — ask for agent name if not configured.
2196
+ // In headless mode (GUI) the onboarding is handled by the web UI,
2197
+ // so we skip the interactive CLI prompt and let the runtime start
2198
+ // with defaults. The GUI will restart the agent after onboarding.
2199
+ if (!opts?.headless) {
2200
+ config = await runFirstTimeSetup(config);
2201
+ }
2202
+ // 1c. Apply logging level from config to process.env so the global
2203
+ // @elizaos/core logger (used by plugins) respects it.
2204
+ // config.logging.level is guaranteed to be set (defaults to "error").
2205
+ // Users can still opt into noisy logs via config.logging.level or
2206
+ // an explicit LOG_LEVEL environment variable.
2207
+ if (!process.env.LOG_LEVEL) {
2208
+ process.env.LOG_LEVEL = config.logging?.level ?? "error";
2209
+ }
2210
+ // 2. Push channel secrets into process.env for plugin discovery
2211
+ applyConnectorSecretsToEnv(config);
2212
+ await autoResolveDiscordAppId();
2213
+ // 2b. Propagate cloud config into process.env for ElizaCloud plugin
2214
+ applyCloudConfigToEnv(config);
2215
+ // 2c. Propagate x402 config into process.env
2216
+ applyX402ConfigToEnv(config);
2217
+ // 2d. Propagate database config into process.env for plugin-sql
2218
+ applyDatabaseConfigToEnv(config);
2219
+ // 2e. Boot-time vault hydration. Migrate plaintext sensitive values from
2220
+ // eliza.json + config.env + sensitive process.env keys into the OS-keychain
2221
+ // vault, then resolve any vault://KEY sentinels in `config.env` so the
2222
+ // legacy hydration loop below sees real values.
2223
+ {
2224
+ const { runVaultBootstrap } = await import("@elizaos/app-core/services/vault-bootstrap");
2225
+ const { sharedVault } = await import("@elizaos/app-core/services/vault-mirror");
2226
+ const bootResult = await runVaultBootstrap();
2227
+ logger.info(`[vault-bootstrap] migrated=${bootResult.migrated} already-hydrated=${bootResult.alreadyHydrated} failed=${bootResult.failed.length}`);
2228
+ const { resolved, missing } = await resolveConfigEnvForProcess(config.env, sharedVault());
2229
+ if (missing.length > 0) {
2230
+ logger.warn(`[vault-bootstrap] sentinel(s) without vault entry: ${missing.join(", ")}`);
2231
+ }
2232
+ if (config.env &&
2233
+ typeof config.env === "object" &&
2234
+ !Array.isArray(config.env)) {
2235
+ for (const [key, value] of Object.entries(resolved)) {
2236
+ config.env[key] = value;
2237
+ }
2238
+ }
2239
+ const varsBag = config.env?.vars;
2240
+ if (varsBag && typeof varsBag === "object" && !Array.isArray(varsBag)) {
2241
+ const varsResult = await resolveConfigEnvForProcess(varsBag, sharedVault());
2242
+ for (const [key, value] of Object.entries(varsResult.resolved)) {
2243
+ varsBag[key] = value;
2244
+ }
2245
+ }
2246
+ }
2247
+ // 2f. Propagate arbitrary env vars from config.env into process.env.
2248
+ // Eliza stores user-defined env vars (plugin settings, API URLs, etc.)
2249
+ // in config.env; elizaOS plugins read them via process.env / getSetting.
2250
+ // Skip ELIZAOS_CLOUD_* — applyCloudConfigToEnv() owns those; otherwise a
2251
+ // stale key in config.env refills process.env after disconnect cleared it.
2252
+ if (config.env &&
2253
+ typeof config.env === "object" &&
2254
+ !Array.isArray(config.env)) {
2255
+ for (const [key, value] of Object.entries(config.env)) {
2256
+ if (isElizaCloudManagedProcessEnvKey(key))
2257
+ continue;
2258
+ if (typeof value === "string" && !process.env[key]) {
2259
+ process.env[key] = value;
2260
+ }
2261
+ }
2262
+ // Also hydrate from config.env.vars — setEnvValue writes API keys to
2263
+ // both config.env["KEY"] and config.env.vars["KEY"]. If the top-level
2264
+ // key was lost (e.g. pruneEnv, config migration), the nested form is
2265
+ // the authoritative source.
2266
+ const vars = config.env.vars;
2267
+ if (vars && typeof vars === "object" && !Array.isArray(vars)) {
2268
+ for (const [key, value] of Object.entries(vars)) {
2269
+ if (isElizaCloudManagedProcessEnvKey(key))
2270
+ continue;
2271
+ if (typeof value === "string" && !process.env[key]) {
2272
+ process.env[key] = value;
2273
+ }
2274
+ }
2275
+ }
2276
+ }
2277
+ // Keep the canonical public key env in sync for Solana plugins that still
2278
+ // read process.env directly instead of runtime settings.
2279
+ syncSolanaPublicKeyEnv();
2280
+ normalizeOpenAiCompatibleProviderConfig(config);
2281
+ // Log active database configuration for debugging persistence issues
2282
+ {
2283
+ const dbProvider = config.database?.provider ?? "pglite";
2284
+ const pgliteDir = process.env.PGLITE_DATA_DIR;
2285
+ const postgresUrl = process.env.POSTGRES_URL;
2286
+ logger.info(`[eliza] Database provider: ${dbProvider}` +
2287
+ (dbProvider === "pglite" && pgliteDir
2288
+ ? ` | data dir: ${pgliteDir}`
2289
+ : "") +
2290
+ (dbProvider === "postgres" && postgresUrl
2291
+ ? ` | connection: ${(postgresUrl.length > 4096 ? postgresUrl.slice(0, 4096) : postgresUrl).replace(/:\/\/([^:@]{1,1024}):([^@]{1,1024})@/, "://$1:***@")}`
2292
+ : ""));
2293
+ }
2294
+ // 2d-iii. OG tracking code initialization
2295
+ try {
2296
+ const { initializeOGCode } = await import("@elizaos/app-elizamaker");
2297
+ initializeOGCode();
2298
+ }
2299
+ catch {
2300
+ // Silent — OG tracking is non-critical
2301
+ }
2302
+ // 2d-ii. Allow destructive migrations (e.g. dropping tables removed between
2303
+ // plugin versions) so the runtime doesn't silently stall. Without this
2304
+ // the migration system throws an error that gets swallowed, leaving the
2305
+ // app hanging indefinitely with no output.
2306
+ if (!process.env.ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS) {
2307
+ process.env.ELIZA_ALLOW_DESTRUCTIVE_MIGRATIONS = "true";
2308
+ }
2309
+ // 2e-ii. Ensure SECRET_SALT is set to suppress the @elizaos/core default
2310
+ // warning and avoid using a predictable value in production.
2311
+ if (!process.env.SECRET_SALT) {
2312
+ process.env.SECRET_SALT = crypto.randomBytes(32).toString("hex");
2313
+ logger.info("[eliza] Generated random SECRET_SALT for this session");
2314
+ }
2315
+ // 2e-iii. Pre-flight validation for Google AI API keys. If the key looks
2316
+ // obviously invalid (too short, placeholder, wrong prefix), clear it
2317
+ // to prevent plugin-google-genai from making a failing API call.
2318
+ for (const gkey of [
2319
+ "GEMINI_API_KEY",
2320
+ "GOOGLE_API_KEY",
2321
+ "GOOGLE_GENERATIVE_AI_API_KEY",
2322
+ ]) {
2323
+ const val = process.env[gkey]?.trim();
2324
+ if (val &&
2325
+ (val.length < 20 || val === "your-key-here" || val.startsWith("sk-"))) {
2326
+ logger.warn(`[eliza] ${gkey} appears invalid (length/format), clearing to skip Google AI plugin`);
2327
+ delete process.env[gkey];
2328
+ }
2329
+ }
2330
+ // 2f. Apply subscription-based credentials (Claude Max, Codex Max).
2331
+ // Failure is non-fatal — the agent can still start with other providers.
2332
+ // Config is NOT rolled back on failure; partial mutations may persist in
2333
+ // the in-memory config but are not saved to disk until explicit save.
2334
+ try {
2335
+ const { applySubscriptionCredentials } = await import("../auth/index.js");
2336
+ await applySubscriptionCredentials(config);
2337
+ }
2338
+ catch (err) {
2339
+ logger.warn(`[eliza] Failed to apply subscription credentials (agent will continue without them): ${formatError(err)}`);
2340
+ }
2341
+ // 2g. Cloud mode — if the user chose cloud during onboarding (or on a
2342
+ // subsequent start with cloud config), skip local runtime setup and
2343
+ // connect via the thin client instead.
2344
+ const deploymentTarget = resolveDeploymentTargetInConfig(config);
2345
+ if (deploymentTarget.runtime === "cloud" &&
2346
+ deploymentTarget.provider === "elizacloud" &&
2347
+ config.cloud?.apiKey &&
2348
+ config.cloud?.agentId?.trim()) {
2349
+ return startInCloudMode(config, config.cloud.agentId, opts);
2350
+ }
2351
+ // 3. Build elizaOS Character from Eliza config
2352
+ const character = buildCharacterFromConfig(config);
2353
+ const primaryModel = resolvePrimaryModel(config);
2354
+ const preferredProviderId = resolvePreferredProviderId(config);
2355
+ const preferredProviderPluginName = resolvePreferredProviderPluginName(config);
2356
+ // 4. Ensure workspace exists with required files
2357
+ const workspaceDir = config.agents?.defaults?.workspace ?? resolveDefaultAgentWorkspaceDir();
2358
+ await ensureAgentWorkspace({
2359
+ dir: workspaceDir,
2360
+ ensureInitFiles: shouldBootstrapWorkspaceInitFiles(workspaceDir),
2361
+ });
2362
+ // 4b. Ensure custom plugins directory exists for drop-in plugins
2363
+ await fs.mkdir(path.join(resolveStateDir(), CUSTOM_RUNTIME_PLUGINS_DIRNAME), {
2364
+ recursive: true,
2365
+ });
2366
+ // 5. Create the Eliza bridge plugin (workspace context + session keys + compaction)
2367
+ const agentId = character.name?.toLowerCase().replace(/\s+/g, "-") ?? "main";
2368
+ // 5-pre0. Apply per-agent vault profile overrides to process.env.
2369
+ //
2370
+ // Vault keys with multiple named profiles (work / personal / throwaway)
2371
+ // resolve the active profile for THIS agent through the vault's
2372
+ // routing layer, then write the resolved value into process.env so
2373
+ // the synchronous runtime.getSetting fast path picks it up. Idempotent;
2374
+ // safe to run multiple times. Opt-out via
2375
+ // ELIZA_DISABLE_VAULT_PROFILE_RESOLVER=1.
2376
+ if (process.env.ELIZA_DISABLE_VAULT_PROFILE_RESOLVER !== "1") {
2377
+ try {
2378
+ const { sharedVault } = await import("@elizaos/app-core/services/vault-mirror");
2379
+ const { applyVaultProfilesForAgent } = await import("./vault-profile-resolver.js");
2380
+ await applyVaultProfilesForAgent(sharedVault(), agentId);
2381
+ }
2382
+ catch (err) {
2383
+ logger.warn(`[vault-profile-resolver] boot-time apply failed agent="${agentId}": ${err instanceof Error ? err.message : String(err)}`);
2384
+ }
2385
+ }
2386
+ // 5-pre. Ensure each agent has its own EVM + Solana keypair in the vault.
2387
+ // The runtime-wide EVM_PRIVATE_KEY / SOLANA_PRIVATE_KEY (process.env) is
2388
+ // the *user* wallet; per-agent wallets live inside the encrypted vault and
2389
+ // are surfaced separately in the in-app browser. Idempotent — existing
2390
+ // wallets are preserved. Opt-out via ELIZA_DISABLE_AGENT_WALLET_BOOTSTRAP=1.
2391
+ if (process.env.ELIZA_DISABLE_AGENT_WALLET_BOOTSTRAP !== "1") {
2392
+ try {
2393
+ const { sharedVault } = await import("@elizaos/app-core/services/vault-mirror");
2394
+ const { ensureAgentWallets } = await import("./agent-wallets.js");
2395
+ const descriptors = await ensureAgentWallets(sharedVault(), agentId, "agent-bootstrap");
2396
+ const summary = descriptors
2397
+ .map((d) => `${d.chain}:${d.address}`)
2398
+ .join(" ");
2399
+ logger.info(`[agent-wallets] agent="${agentId}" wallets ready (${summary})`);
2400
+ }
2401
+ catch (err) {
2402
+ logger.warn(`[agent-wallets] failed to ensure wallets for agent="${agentId}": ${err instanceof Error ? err.message : String(err)}`);
2403
+ }
2404
+ }
2405
+ // 5a. If cloud is configured and no local GitHub token, try fetching from cloud
2406
+ await autoFetchCloudGithubToken(config.cloud?.agentId?.trim() || agentId);
2407
+ // 5b. Pump N8N_HOST + N8N_API_KEY into process.env for
2408
+ // @elizaos/plugin-n8n-workflow. Must run AFTER applyCloudConfigToEnv
2409
+ // (2b above) and AFTER agentId is derived — the cloud gateway URL
2410
+ // embeds the agent id. Prefer the persisted cloud-agent id when set;
2411
+ // fall back to the derived local agent slug.
2412
+ applyN8nConfigToEnv(config, config.cloud?.agentId?.trim() || agentId);
2413
+ const elizaPlugin = createElizaPlugin({
2414
+ workspaceDir,
2415
+ agentId,
2416
+ });
2417
+ // 6. Resolve and load plugins
2418
+ // In headless (GUI) mode before onboarding, the user hasn't configured a
2419
+ // provider yet. Downgrade diagnostics so the expected "no AI provider"
2420
+ // state doesn't appear as a scary Error in the terminal.
2421
+ const preOnboarding = opts?.headless && !config.agents;
2422
+ const resolvedPlugins = await resolvePlugins(config, {
2423
+ quiet: preOnboarding,
2424
+ });
2425
+ if (resolvedPlugins.length === 0) {
2426
+ if (preOnboarding) {
2427
+ logger.info("[eliza] No plugins loaded yet — the onboarding wizard will configure a model provider");
2428
+ }
2429
+ else {
2430
+ logger.error("[eliza] No plugins loaded — at least one model provider plugin is required");
2431
+ logger.error("[eliza] Set an API key (e.g. ANTHROPIC_API_KEY, OPENAI_API_KEY) in your environment");
2432
+ throw new Error("No plugins loaded");
2433
+ }
2434
+ }
2435
+ // 6b. Debug logging — print full context after provider + plugin resolution
2436
+ {
2437
+ const pluginNames = resolvedPlugins.map((p) => p.name);
2438
+ const providerNames = resolvedPlugins
2439
+ .flatMap((p) => p.plugin.providers ?? [])
2440
+ .map((prov) => prov.name);
2441
+ // Build a context summary for validation
2442
+ const contextSummary = {
2443
+ agentName: character.name,
2444
+ pluginCount: resolvedPlugins.length,
2445
+ providerCount: providerNames.length,
2446
+ primaryModel: primaryModel ?? "(auto-detect)",
2447
+ preferredProvider: preferredProviderId ?? "(auto-detect)",
2448
+ workspaceDir,
2449
+ };
2450
+ debugLogResolvedContext(pluginNames, providerNames, contextSummary, (msg) => logger.debug(msg));
2451
+ // Validate the context and surface issues early
2452
+ const contextValidation = validateRuntimeContext(contextSummary);
2453
+ if (!contextValidation.valid) {
2454
+ const issues = [];
2455
+ if (contextValidation.nullFields.length > 0) {
2456
+ issues.push(`null: ${contextValidation.nullFields.join(", ")}`);
2457
+ }
2458
+ if (contextValidation.undefinedFields.length > 0) {
2459
+ issues.push(`undefined: ${contextValidation.undefinedFields.join(", ")}`);
2460
+ }
2461
+ if (contextValidation.emptyFields.length > 0) {
2462
+ issues.push(`empty: ${contextValidation.emptyFields.join(", ")}`);
2463
+ }
2464
+ logger.warn(`[eliza] Context validation issues detected: ${issues.join("; ")}`);
2465
+ }
2466
+ }
2467
+ // 7. Create the AgentRuntime with Eliza plugin + resolved plugins
2468
+ // All CORE_PLUGINS are pre-registered sequentially (in CORE_PLUGINS
2469
+ // order) before runtime.initialize() so that cross-plugin getService()
2470
+ // calls always resolve. runtime.initialize() registers remaining
2471
+ // characterPlugins (connectors, providers, custom) in parallel — those
2472
+ // are NOT core and don't have ordering dependencies.
2473
+ const PREREGISTER_PLUGINS = new Set(CORE_PLUGINS);
2474
+ const sqlPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-sql");
2475
+ const localEmbeddingPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-local-embedding");
2476
+ const otherPlugins = resolvedPlugins.filter((p) => !PREREGISTER_PLUGINS.has(p.name));
2477
+ // Resolve the runtime log level from config (AgentRuntime doesn't support
2478
+ // "silent", so we map it to "fatal" as the quietest supported level).
2479
+ const runtimeLogLevel = (() => {
2480
+ // process.env.LOG_LEVEL is already resolved (set explicitly or from
2481
+ // config.logging.level above), so prefer it to honour the dev-mode
2482
+ // LOG_LEVEL=error override set by eliza/packages/app-core/scripts/dev-ui.mjs.
2483
+ const lvl = process.env.LOG_LEVEL ?? config.logging?.level ?? "error";
2484
+ if (lvl === "silent")
2485
+ return "fatal";
2486
+ return lvl;
2487
+ })();
2488
+ // 7a. Resolve bundled skills directory from @elizaos/skills so
2489
+ // plugin-agent-skills auto-loads them on startup.
2490
+ let bundledSkillsDir = null;
2491
+ try {
2492
+ const { getSkillsDir } = (await import("@elizaos/skills"));
2493
+ bundledSkillsDir = getSkillsDir();
2494
+ logger.info(`[eliza] Bundled skills dir: ${bundledSkillsDir}`);
2495
+ }
2496
+ catch {
2497
+ logger.debug("[eliza] @elizaos/skills not available — bundled skills will not be loaded");
2498
+ }
2499
+ // Workspace skills directory (highest precedence for overrides)
2500
+ const workspaceSkillsDir = workspaceDir ? `${workspaceDir}/skills` : null;
2501
+ const managedSkillsDir = path.join(resolveStateDir(), "skills");
2502
+ // ── Sandbox mode setup ──────────────────────────────────────────────────
2503
+ const sandboxConfig = config.agents?.defaults?.sandbox;
2504
+ const sandboxModeStr = sandboxConfig
2505
+ ?.mode;
2506
+ const sandboxMode = sandboxModeStr === "light" ||
2507
+ sandboxModeStr === "standard" ||
2508
+ sandboxModeStr === "max"
2509
+ ? sandboxModeStr
2510
+ : "off";
2511
+ const isSandboxActive = sandboxMode !== "off";
2512
+ let sandboxManager = null;
2513
+ let sandboxAuditLog = null;
2514
+ if (isSandboxActive) {
2515
+ logger.info(`[eliza] Sandbox mode: ${sandboxMode}`);
2516
+ sandboxAuditLog = new SandboxAuditLog({ console: true });
2517
+ // Standard/max modes also start the container sandbox manager
2518
+ if (sandboxMode === "standard" || sandboxMode === "max") {
2519
+ const dockerSettings = sandboxConfig?.docker;
2520
+ const browserSettings = sandboxConfig?.browser;
2521
+ sandboxManager = new SandboxManager({
2522
+ mode: sandboxMode,
2523
+ image: dockerSettings?.image ?? undefined,
2524
+ containerPrefix: dockerSettings?.containerPrefix ?? undefined,
2525
+ network: dockerSettings?.network ?? undefined,
2526
+ memory: dockerSettings?.memory ?? undefined,
2527
+ cpus: dockerSettings?.cpus ?? undefined,
2528
+ workspaceRoot: workspaceDir ?? undefined,
2529
+ browser: browserSettings
2530
+ ? {
2531
+ enabled: browserSettings.enabled ?? false,
2532
+ image: browserSettings.image ?? undefined,
2533
+ cdpPort: browserSettings.cdpPort ?? undefined,
2534
+ vncPort: browserSettings.vncPort ?? undefined,
2535
+ noVncPort: browserSettings.noVncPort ?? undefined,
2536
+ headless: browserSettings.headless ?? undefined,
2537
+ enableNoVnc: browserSettings.enableNoVnc ?? undefined,
2538
+ autoStart: browserSettings.autoStart ?? true,
2539
+ autoStartTimeoutMs: browserSettings.autoStartTimeoutMs ?? undefined,
2540
+ }
2541
+ : undefined,
2542
+ });
2543
+ try {
2544
+ await sandboxManager.start();
2545
+ logger.info("[eliza] Sandbox manager started");
2546
+ }
2547
+ catch (err) {
2548
+ logger.error(`[eliza] Sandbox manager failed to start: ${err instanceof Error ? err.message : String(err)}`);
2549
+ // Non-fatal: light mode fallback
2550
+ }
2551
+ }
2552
+ sandboxAuditLog.record({
2553
+ type: "sandbox_lifecycle",
2554
+ summary: `Sandbox initialized: mode=${sandboxMode}`,
2555
+ severity: "info",
2556
+ });
2557
+ }
2558
+ // ── End sandbox setup ───────────────────────────────────────────────────
2559
+ // ── Boost preferred provider plugin priority ──────────────────────────
2560
+ // elizaOS selects the model handler with the highest `priority` for each
2561
+ // ModelType. All provider plugins default to priority 0, so whichever
2562
+ // registers first wins — essentially random when using Promise.all.
2563
+ // When the user has explicitly selected a provider or model, prefer that
2564
+ // provider's plugin so its handlers are selected over registration order.
2565
+ const pluginsForRuntime = otherPlugins.map((p) => p.plugin);
2566
+ const visionModeSetting = resolveVisionModeSetting(config);
2567
+ if (preferredProviderPluginName) {
2568
+ for (const plugin of pluginsForRuntime) {
2569
+ if (plugin.name === preferredProviderPluginName) {
2570
+ plugin.priority = (plugin.priority ?? 0) + 10;
2571
+ logger.info(`[eliza] Boosted plugin "${plugin.name}" priority to ${plugin.priority} (preferred provider: ${preferredProviderId ?? "unknown"})`);
2572
+ break;
2573
+ }
2574
+ }
2575
+ }
2576
+ // ── Strip upstream skill providers ──────────────────────────────────────
2577
+ // The upstream @elizaos/plugin-agent-skills registers providers that dump
2578
+ // ALL loaded skills into every prompt (~2000-4000 tokens). Eliza replaces
2579
+ // them with a BM25-lite dynamic provider (see providers/skill-provider.ts)
2580
+ // that injects only the most relevant skills per turn.
2581
+ //
2582
+ // We keep:
2583
+ // - agent_skills_overview (lightweight stats, ~50 tokens)
2584
+ // - all actions (USE_SKILL, SEARCH_SKILLS, INSTALL_SKILL, …)
2585
+ // - the AGENT_SKILLS_SERVICE itself
2586
+ {
2587
+ const UPSTREAM_SKILL_PROVIDERS_TO_STRIP = new Set([
2588
+ "agent_skills",
2589
+ "agent_skill_instructions",
2590
+ "agent_skills_catalog",
2591
+ ]);
2592
+ for (const plugin of pluginsForRuntime) {
2593
+ if (plugin.name === "@elizaos/plugin-agent-skills" &&
2594
+ Array.isArray(plugin.providers)) {
2595
+ const before = plugin.providers.length;
2596
+ plugin.providers = plugin.providers.filter((p) => !UPSTREAM_SKILL_PROVIDERS_TO_STRIP.has(p.name ?? ""));
2597
+ const removed = before - plugin.providers.length;
2598
+ if (removed > 0) {
2599
+ logger.info(`[eliza] Stripped ${removed} upstream skill provider(s) — using dynamic BM25-lite provider instead`);
2600
+ }
2601
+ }
2602
+ }
2603
+ }
2604
+ // Deduplicate actions across all plugins to avoid "Action already registered"
2605
+ // warnings from elizaOS core. basic-capabilities is registered first by the
2606
+ // runtime, so include it in deduplication so its actions take precedence.
2607
+ const settings = character.settings ?? {};
2608
+ const basicCapabilitiesPlugin = createBasicCapabilitiesPlugin({
2609
+ disableBasic: settings.DISABLE_BASIC_CAPABILITIES === true ||
2610
+ settings.DISABLE_BASIC_CAPABILITIES === "true",
2611
+ enableExtended: settings.ENABLE_EXTENDED_CAPABILITIES === true ||
2612
+ settings.ENABLE_EXTENDED_CAPABILITIES === "true" ||
2613
+ settings.ADVANCED_CAPABILITIES === true ||
2614
+ settings.ADVANCED_CAPABILITIES === "true",
2615
+ skipCharacterProvider: false,
2616
+ enableAutonomy: settings.ENABLE_AUTONOMY === true || settings.ENABLE_AUTONOMY === "true",
2617
+ });
2618
+ deduplicatePluginActions([
2619
+ basicCapabilitiesPlugin,
2620
+ elizaPlugin,
2621
+ ...pluginsForRuntime,
2622
+ ]);
2623
+ let runtime = new AgentRuntime({
2624
+ character,
2625
+ // advancedCapabilities: true,
2626
+ actionPlanning: true,
2627
+ // advancedMemory is enabled via character.advancedMemory
2628
+ plugins: [elizaPlugin, ...pluginsForRuntime],
2629
+ ...(runtimeLogLevel ? { logLevel: runtimeLogLevel } : {}),
2630
+ // Sandbox options — only active when mode != "off"
2631
+ ...(isSandboxActive
2632
+ ? {
2633
+ sandboxMode: true,
2634
+ sandboxAuditHandler: sandboxAuditLog
2635
+ ? (event) => {
2636
+ sandboxAuditLog.recordTokenReplacement(event.direction, event.url, event.tokenIds);
2637
+ }
2638
+ : undefined,
2639
+ }
2640
+ : {}),
2641
+ settings: {
2642
+ VALIDATION_LEVEL: "fast",
2643
+ // Forward non-sensitive Eliza config.env vars as runtime settings so
2644
+ // plugins can access them via runtime.getSetting(). This fixes a bug where
2645
+ // plugins (e.g. @elizaos/plugin-google-genai) call runtime.getSetting()
2646
+ // which returns null for keys not in settings, but the plugin checks
2647
+ // !== undefined causing it to use "null" as the model name.
2648
+ //
2649
+ // Security: Filter out blockchain private keys and secrets. API keys are
2650
+ // allowed since plugins need them via runtime.getSetting(). Private keys
2651
+ // should only be accessed via process.env by signing services.
2652
+ ...Object.fromEntries(Object.entries(collectConfigEnvVars(config)).filter(([key]) => isEnvKeyAllowedForForwarding(key))),
2653
+ // Forward connector config vars as-is. The connector env map is curated
2654
+ // and plugins need access to secrets like passwords and tokens via
2655
+ // runtime.getSetting() for real transports to boot.
2656
+ ...collectConnectorEnvVars(config),
2657
+ // Forward Eliza config env vars as runtime settings
2658
+ ...(preferredProviderId ? { MODEL_PROVIDER: preferredProviderId } : {}),
2659
+ ...(visionModeSetting ? { VISION_MODE: visionModeSetting } : {}),
2660
+ ...resolveWalletRuntimeSettings(config),
2661
+ ...(typeof config.agents?.defaults?.adminEntityId === "string" &&
2662
+ config.agents.defaults.adminEntityId.trim().length > 0
2663
+ ? {
2664
+ ELIZA_ADMIN_ENTITY_ID: config.agents.defaults.adminEntityId.trim(),
2665
+ }
2666
+ : {}),
2667
+ ...(config.agents?.defaults?.ownerContacts
2668
+ ? {
2669
+ ELIZA_OWNER_CONTACTS_JSON: JSON.stringify(config.agents.defaults.ownerContacts),
2670
+ }
2671
+ : {}),
2672
+ ...(config.roles?.connectorAdmins
2673
+ ? {
2674
+ ELIZA_ROLES_CONNECTOR_ADMINS_JSON: JSON.stringify(config.roles.connectorAdmins),
2675
+ }
2676
+ : {}),
2677
+ // Forward skills config so plugin-agent-skills can apply allow/deny filtering
2678
+ ...(config.skills?.allowBundled
2679
+ ? { SKILLS_ALLOWLIST: config.skills.allowBundled.join(",") }
2680
+ : {}),
2681
+ ...(config.skills?.denyBundled
2682
+ ? { SKILLS_DENYLIST: config.skills.denyBundled.join(",") }
2683
+ : {}),
2684
+ // Managed skills are stored in the Eliza state dir (~/.eliza/skills).
2685
+ SKILLS_DIR: managedSkillsDir,
2686
+ // Tell plugin-agent-skills where to find bundled + workspace skills
2687
+ ...(bundledSkillsDir ? { BUNDLED_SKILLS_DIRS: bundledSkillsDir } : {}),
2688
+ ...(workspaceSkillsDir
2689
+ ? { WORKSPACE_SKILLS_DIR: workspaceSkillsDir }
2690
+ : {}),
2691
+ // Also forward extra dirs from config
2692
+ ...(config.skills?.load?.extraDirs?.length
2693
+ ? { EXTRA_SKILLS_DIRS: config.skills.load.extraDirs.join(",") }
2694
+ : {}),
2695
+ // Disable image description when vision is explicitly toggled off.
2696
+ // The cloud plugin always registers IMAGE_DESCRIPTION, so we need a
2697
+ // runtime setting to prevent the message service from calling it.
2698
+ ...(config.features?.vision === false
2699
+ ? { DISABLE_IMAGE_DESCRIPTION: "true" }
2700
+ : {}),
2701
+ },
2702
+ });
2703
+ installRuntimeMethodBindings(runtime);
2704
+ // 7b. Pre-register plugin-sql so the adapter is ready before other plugins init.
2705
+ // This is OPTIONAL — without it, some features (memory, todos) won't work.
2706
+ // runtime.db is a getter that returns this.adapter.db and throws when
2707
+ // this.adapter is undefined, so plugins that use runtime.db will fail.
2708
+ if (sqlPlugin) {
2709
+ // 7c. Eagerly initialize the database adapter so it's fully ready
2710
+ // BEFORE other plugins run their init(). When legacy/corrupt PGLite
2711
+ // state causes startup aborts, reset the local DB dir and retry once.
2712
+ await registerSqlPluginWithRecovery(runtime, sqlPlugin, config);
2713
+ }
2714
+ else {
2715
+ const loadedNames = resolvedPlugins.map((p) => p.name).join(", ");
2716
+ logger.error(`[eliza] @elizaos/plugin-sql was NOT found among resolved plugins. ` +
2717
+ `Loaded: [${loadedNames}]`);
2718
+ throw new Error("@elizaos/plugin-sql is required but was not loaded. " +
2719
+ "Ensure the package is installed and built (check for import errors above).");
2720
+ }
2721
+ // 7d. Pre-register plugin-local-embedding so its TEXT_EMBEDDING handler
2722
+ // (priority 10) is available before runtime.initialize() starts all
2723
+ // plugins in parallel. Without this, the basic-capabilities plugin's services
2724
+ // (ActionFilterService, EmbeddingGenerationService) race ahead and use
2725
+ // the cloud plugin's TEXT_EMBEDDING handler — which hits a paid API —
2726
+ // because local-embedding's heavier init hasn't completed yet.
2727
+ if (localEmbeddingPlugin) {
2728
+ configureLocalEmbeddingPlugin(localEmbeddingPlugin.plugin, config);
2729
+ await runtime.registerPlugin(localEmbeddingPlugin.plugin);
2730
+ logger.info("[eliza] plugin-local-embedding pre-registered (TEXT_EMBEDDING ready)");
2731
+ }
2732
+ else {
2733
+ logger.warn("[eliza] @elizaos/plugin-local-embedding not found — embeddings " +
2734
+ "will fall back to whatever TEXT_EMBEDDING handler is registered by " +
2735
+ "other plugins (may incur cloud API costs)");
2736
+ }
2737
+ // 7e. Pre-register remaining core plugins sequentially in CORE_PLUGINS order.
2738
+ // Each registerPlugin() call runs the plugin's init() before proceeding
2739
+ // to the next, guaranteeing that cross-plugin getService() calls resolve.
2740
+ {
2741
+ try {
2742
+ logger.info("[eliza] Pre-registering roles capability...");
2743
+ await runtime.registerPlugin(rolesPlugin);
2744
+ logger.info("[eliza] ✓ roles capability pre-registered");
2745
+ }
2746
+ catch (err) {
2747
+ logger.warn(`[eliza] Roles capability pre-registration failed: ${formatError(err)}`);
2748
+ }
2749
+ const alreadyPreRegistered = new Set([
2750
+ "@elizaos/plugin-sql",
2751
+ "@elizaos/plugin-local-embedding",
2752
+ ]);
2753
+ for (const name of CORE_PLUGINS) {
2754
+ if (alreadyPreRegistered.has(name))
2755
+ continue;
2756
+ const resolved = resolvedPlugins.find((p) => p.name === name);
2757
+ if (!resolved) {
2758
+ logger.debug(`[eliza] Core plugin ${name} not resolved — skipping pre-registration`);
2759
+ continue;
2760
+ }
2761
+ try {
2762
+ const regStart = Date.now();
2763
+ logger.info(`[eliza] Pre-registering core plugin: ${name}...`);
2764
+ const PLUGIN_REG_TIMEOUT_MS = 30_000;
2765
+ await Promise.race([
2766
+ runtime.registerPlugin(resolved.plugin),
2767
+ new Promise((_resolve, reject) => setTimeout(() => reject(new Error(`Timed out after ${PLUGIN_REG_TIMEOUT_MS / 1000}s`)), PLUGIN_REG_TIMEOUT_MS)),
2768
+ ]);
2769
+ logger.info(`[eliza] ✓ ${name} pre-registered (${Date.now() - regStart}ms)`);
2770
+ }
2771
+ catch (err) {
2772
+ logger.warn(`[eliza] Core plugin ${name} pre-registration failed: ${formatError(err)}`);
2773
+ }
2774
+ }
2775
+ }
2776
+ const warmAgentSkillsService = async () => {
2777
+ // Let runtime startup complete first; this warm-up runs asynchronously
2778
+ // so API + agent come online immediately.
2779
+ try {
2780
+ const skillServicePromise = runtime.getServiceLoadPromise("AGENT_SKILLS_SERVICE");
2781
+ const timeout = new Promise((_resolve, reject) => {
2782
+ setTimeout(() => {
2783
+ reject(new Error("AgentSkillsService warm-up timed out (10s) — non-blocking, agent will function without skills"));
2784
+ }, 10_000);
2785
+ });
2786
+ await Promise.race([skillServicePromise, timeout]);
2787
+ const svc = runtime.getService("AGENT_SKILLS_SERVICE");
2788
+ if (svc?.getCatalogStats) {
2789
+ const stats = svc.getCatalogStats();
2790
+ logger.info(`[eliza] AgentSkills ready — ${stats.loaded} skills loaded, ` +
2791
+ `${stats.total} in catalog (storage: ${stats.storageType})`);
2792
+ }
2793
+ // Guard against non-string skill.description values.
2794
+ // The bundled YAML parser produces {} for multi-line descriptions, which
2795
+ // crashes findBestLocalMatch / scoreSkillMatch (call .toLowerCase() on it).
2796
+ // Instead of a one-shot sanitize (which misses skills loaded later by
2797
+ // syncCatalog / autoRefresh), we monkey-patch getLoadedSkills to always
2798
+ // return sanitized values.
2799
+ const svcAny = svc;
2800
+ const origGetLoaded = svcAny?.getLoadedSkills;
2801
+ if (origGetLoaded && svcAny) {
2802
+ svcAny.getLoadedSkills = function (...args) {
2803
+ const skills = origGetLoaded.apply(this, args);
2804
+ for (const skill of skills) {
2805
+ if (typeof skill.description !== "string") {
2806
+ skill.description =
2807
+ skill.description == null
2808
+ ? ""
2809
+ : JSON.stringify(skill.description);
2810
+ }
2811
+ }
2812
+ return skills;
2813
+ };
2814
+ logger.debug("[eliza] Patched getLoadedSkills to guard descriptions");
2815
+ }
2816
+ }
2817
+ catch (err) {
2818
+ // Non-fatal — the agent can operate without skills. This warm-up runs
2819
+ // async so it doesn't block startup.
2820
+ logger.debug(`[eliza] AgentSkillsService warm-up: ${formatError(err)}`);
2821
+ }
2822
+ };
2823
+ const initializeRuntimeServices = async () => {
2824
+ try {
2825
+ const { stewardEvmPreBoot } = await import("@elizaos/app-steward/services/steward-evm-bridge");
2826
+ await stewardEvmPreBoot(runtime);
2827
+ }
2828
+ catch (err) {
2829
+ logger.debug(`[eliza] Steward EVM pre-boot skipped: ${formatError(err)}`);
2830
+ }
2831
+ // 7f. Pre-register ConnectorSetupService so connector plugins can access
2832
+ // shared config/escalation/owner-contact helpers via runtime.getService().
2833
+ try {
2834
+ const { ConnectorSetupService } = await import("../services/connector-setup-service.js");
2835
+ await runtime.registerService(ConnectorSetupService);
2836
+ }
2837
+ catch (err) {
2838
+ logger.debug(`[eliza] ConnectorSetupService registration skipped: ${formatError(err)}`);
2839
+ }
2840
+ // 8. Initialize the runtime (registers remaining plugins, starts services)
2841
+ assertPersistentDatabaseRequired(runtime);
2842
+ await runtime.initialize();
2843
+ await prepareRuntimeForTrajectoryCapture(runtime, "runtime.initialize()", config);
2844
+ // 8a. Apply role gating to protected plugin actions/providers.
2845
+ try {
2846
+ const { applyPluginRoleGating } = await import("./plugin-role-gating.js");
2847
+ applyPluginRoleGating(runtime.plugins ?? []);
2848
+ }
2849
+ catch (err) {
2850
+ logger.debug(`[eliza] Plugin role gating skipped: ${formatError(err)}`);
2851
+ }
2852
+ // 8b. Register lightweight conversation-proximity evaluator.
2853
+ // Updates relationship strength when people post near each other in a room.
2854
+ // No LLM calls — deterministic, runs on every message.
2855
+ try {
2856
+ const { updateProximityRelationships } = await import("../services/conversation-proximity.js");
2857
+ await runtime.registerPlugin({
2858
+ name: "eliza-conversation-proximity",
2859
+ description: "Lightweight relationship updates from conversation co-occurrence",
2860
+ evaluators: [
2861
+ {
2862
+ name: "CONVERSATION_PROXIMITY",
2863
+ description: "Update relationship strength for co-participants in a room",
2864
+ similes: [],
2865
+ alwaysRun: true,
2866
+ examples: [],
2867
+ validate: async (_runtime, message) => {
2868
+ // Run for any message with text from a real user (not the agent).
2869
+ const text = message.content?.text;
2870
+ return Boolean(text) && message.entityId !== _runtime.agentId;
2871
+ },
2872
+ handler: async (_runtime, message) => {
2873
+ await updateProximityRelationships(_runtime, message);
2874
+ return undefined;
2875
+ },
2876
+ },
2877
+ ],
2878
+ });
2879
+ logger.info("[eliza] ✓ conversation-proximity evaluator registered");
2880
+ }
2881
+ catch (err) {
2882
+ logger.debug(`[eliza] Conversation-proximity evaluator skipped: ${formatError(err)}`);
2883
+ }
2884
+ try {
2885
+ if (runtimeKnowledgeEnabled(runtime)) {
2886
+ await seedBundledKnowledge(runtime);
2887
+ }
2888
+ else {
2889
+ logger.info("[eliza] Native knowledge disabled; skipping bundled knowledge seeding");
2890
+ }
2891
+ }
2892
+ catch (err) {
2893
+ logger.warn(`[eliza] Failed to seed bundled knowledge: ${formatError(err)}`);
2894
+ }
2895
+ try {
2896
+ const { stewardEvmPostBoot } = await import("@elizaos/app-steward/services/steward-evm-bridge");
2897
+ await stewardEvmPostBoot(runtime);
2898
+ }
2899
+ catch (err) {
2900
+ logger.debug(`[eliza] Steward EVM post-boot skipped: ${formatError(err)}`);
2901
+ }
2902
+ try {
2903
+ const { installAnthropicWebSearch } = await import("./web-search-tools.js");
2904
+ installAnthropicWebSearch(runtime);
2905
+ }
2906
+ catch (err) {
2907
+ logger.debug(`[eliza] Anthropic web search setup skipped: ${formatError(err)}`);
2908
+ }
2909
+ // 8b. Ensure AutonomyService is available for trigger dispatch.
2910
+ // registers this service) from loading, so we start it explicitly.
2911
+ // Respect ENABLE_AUTONOMY env var — cloud-provisioned containers may
2912
+ // disable this to prevent runaway autonomous actions.
2913
+ const autonomyEnabled = (process.env.ENABLE_AUTONOMY ?? "true").toLowerCase() !== "false";
2914
+ if (autonomyEnabled && !runtime.getService("AUTONOMY")) {
2915
+ try {
2916
+ await startAndRegisterAutonomyService(runtime);
2917
+ logger.info("[eliza] AutonomyService started for trigger dispatch");
2918
+ }
2919
+ catch (err) {
2920
+ logger.warn(`[eliza] AutonomyService failed to start: ${formatError(err)}`);
2921
+ }
2922
+ }
2923
+ else if (!autonomyEnabled) {
2924
+ logger.info("[eliza] AutonomyService skipped — ENABLE_AUTONOMY=false");
2925
+ }
2926
+ // Enable the autonomy loop so trigger/heartbeat instructions are
2927
+ // actually processed. Without this, memories created by
2928
+ // dispatchInstruction() sit in the DB and are never acted on.
2929
+ if (autonomyEnabled) {
2930
+ const autonomySvc = getAutonomyService(runtime);
2931
+ if (autonomySvc) {
2932
+ try {
2933
+ await autonomySvc.enableAutonomy();
2934
+ logger.info("[eliza] AutonomyService enabled — trigger instructions will be processed");
2935
+ }
2936
+ catch (err) {
2937
+ logger.warn(`[eliza] Failed to enable autonomy loop: ${formatError(err)}`);
2938
+ }
2939
+ }
2940
+ }
2941
+ // Do not block runtime startup on skills warm-up.
2942
+ void warmAgentSkillsService().catch((err) => {
2943
+ logger.warn(`[eliza] Skills warm-up failed: ${formatError(err)}`);
2944
+ });
2945
+ };
2946
+ try {
2947
+ await initializeRuntimeServices();
2948
+ }
2949
+ catch (err) {
2950
+ const pgliteDataDir = resolveActivePgliteDataDir(config);
2951
+ const recoveryAction = !opts?.pgliteRecoveryAttempted && pgliteDataDir
2952
+ ? getPgliteRecoveryAction(err, pgliteDataDir)
2953
+ : "none";
2954
+ if (!pgliteDataDir || recoveryAction === "none") {
2955
+ throw err;
2956
+ }
2957
+ if (recoveryAction === "fail-active-lock") {
2958
+ throw createActivePgliteLockError(pgliteDataDir, err);
2959
+ }
2960
+ if (recoveryAction === "fail-manual-reset") {
2961
+ throw createManualResetRequiredPgliteError(pgliteDataDir, err);
2962
+ }
2963
+ logger.warn(`[eliza] Runtime migrations failed (${formatError(err)}). Cleared a stale PGLite lock in ${pgliteDataDir} and retrying startup once without resetting data.`);
2964
+ try {
2965
+ await shutdownRuntime(runtime, "PGLite recovery");
2966
+ }
2967
+ catch {
2968
+ // Ignore cleanup errors — retry creates a fresh runtime anyway.
2969
+ }
2970
+ return await startEliza({
2971
+ ...opts,
2972
+ pgliteRecoveryAttempted: true,
2973
+ });
2974
+ }
2975
+ installActionAliases(runtime);
2976
+ // 9. Graceful shutdown handler
2977
+ //
2978
+ // In headless mode the caller (dev-server / desktop shell) owns the process
2979
+ // lifecycle, so we must NOT register signal handlers here — they would
2980
+ // stack on every hot-restart, close over stale runtime references, and
2981
+ // race with bun --watch's own process teardown.
2982
+ if (!opts?.headless) {
2983
+ registerSignalShutdownHandlers({
2984
+ getRuntime: () => runtime,
2985
+ getSandboxManager: () => sandboxManager,
2986
+ });
2987
+ }
2988
+ const loadHooksSystem = async () => {
2989
+ try {
2990
+ const internalHooksConfig = config.hooks
2991
+ ?.internal;
2992
+ await loadHooks({
2993
+ workspacePath: workspaceDir,
2994
+ internalConfig: internalHooksConfig,
2995
+ elizaConfig: config,
2996
+ });
2997
+ const startupEvent = createHookEvent("gateway", "startup", "system", {
2998
+ cfg: config,
2999
+ });
3000
+ await triggerHook(startupEvent);
3001
+ }
3002
+ catch (err) {
3003
+ logger.warn(`[eliza] Hooks system could not load: ${formatError(err)}`);
3004
+ }
3005
+ };
3006
+ // ── Headless mode — return runtime for API server wiring ──────────────
3007
+ if (opts?.headless) {
3008
+ void loadHooksSystem().catch((err) => {
3009
+ logger.warn(`[eliza] Hooks system load failed: ${formatError(err)}`);
3010
+ });
3011
+ logger.info("[eliza] Runtime initialised in headless mode (autonomy enabled)");
3012
+ return runtime;
3013
+ }
3014
+ // 10. Load hooks system
3015
+ await loadHooksSystem();
3016
+ // ── Start API server for GUI access ──────────────────────────────────────
3017
+ // In CLI mode (non-headless), start the API server in the background so
3018
+ // the GUI can connect to the running agent. This ensures full feature
3019
+ // parity: whether started via `npx elizaos`, `bun run dev`, or the
3020
+ // desktop app, the API server is always available for the GUI admin
3021
+ // surface.
3022
+ try {
3023
+ const { startApiServer } = await import("../api/server.js");
3024
+ const apiPort = resolveServerOnlyPort(process.env);
3025
+ const { port: actualApiPort } = await startApiServer({
3026
+ port: apiPort,
3027
+ runtime,
3028
+ onRestart: async () => {
3029
+ logger.info("[eliza] Hot-reload: Restarting runtime...");
3030
+ try {
3031
+ // Stop the old runtime to release resources (DB connections, timers, etc.)
3032
+ //
3033
+ // WHY the 2s timeout: some services — notably PTYService —
3034
+ // shut down gracefully by awaiting each active session with a
3035
+ // per-session timeout (up to ~5s). runtime.stop() awaits every
3036
+ // service.stop() sequentially, so a single idle PTY session
3037
+ // turns a provider switch into a multi-second block. During
3038
+ // that window the runtime-operations active-op slot +
3039
+ // agentState === "restarting" guard reject further clicks,
3040
+ // which is why flipping through providers rapidly feels stuck.
3041
+ //
3042
+ // Cap the shutdown window at 2s; if it doesn't finish, log and
3043
+ // bring the new runtime up anyway. Services that miss the
3044
+ // window get GC'd when the process unwinds. This is fine for a
3045
+ // user-initiated restart — the user asked for a new runtime;
3046
+ // in-flight work on the old one is already obsolete.
3047
+ try {
3048
+ const SHUTDOWN_TIMEOUT_MS = 2000;
3049
+ let shutdownTimedOut = false;
3050
+ await Promise.race([
3051
+ shutdownRuntime(runtime, "hot-reload cleanup"),
3052
+ new Promise((resolve) => setTimeout(() => {
3053
+ shutdownTimedOut = true;
3054
+ resolve();
3055
+ }, SHUTDOWN_TIMEOUT_MS)),
3056
+ ]);
3057
+ if (shutdownTimedOut) {
3058
+ logger.warn(`[eliza] Hot-reload: old runtime shutdown exceeded ${SHUTDOWN_TIMEOUT_MS}ms; proceeding with new runtime`);
3059
+ }
3060
+ }
3061
+ catch (stopErr) {
3062
+ logger.warn(`[eliza] Hot-reload: old runtime stop failed: ${formatError(stopErr)}`);
3063
+ }
3064
+ // Reload config from disk (updated by API)
3065
+ const freshConfig = loadElizaConfig();
3066
+ // Propagate secrets & cloud config into process.env so plugins
3067
+ // (especially plugin-elizacloud) can discover them. The initial
3068
+ // startup does this in startEliza(); the hot-reload must repeat it
3069
+ // because the config may have changed (e.g. cloud enabled during
3070
+ // onboarding).
3071
+ applyConnectorSecretsToEnv(freshConfig);
3072
+ await autoResolveDiscordAppId();
3073
+ applyCloudConfigToEnv(freshConfig);
3074
+ applyX402ConfigToEnv(freshConfig);
3075
+ applyDatabaseConfigToEnv(freshConfig);
3076
+ applyN8nConfigToEnv(freshConfig, freshConfig.cloud?.agentId?.trim() || agentId);
3077
+ await autoFetchCloudGithubToken(freshConfig.cloud?.agentId?.trim() || agentId);
3078
+ // Apply subscription-based credentials (Claude Max, Codex Max)
3079
+ // that may have been set up during onboarding.
3080
+ try {
3081
+ const { applySubscriptionCredentials } = await import("../auth/index.js");
3082
+ await applySubscriptionCredentials(freshConfig);
3083
+ }
3084
+ catch (subErr) {
3085
+ logger.warn(`[eliza] Hot-reload: subscription credentials: ${formatError(subErr)}`);
3086
+ }
3087
+ // Resolve plugins using same function as startup
3088
+ const resolvedPlugins = await resolvePlugins(freshConfig);
3089
+ // Rebuild character from the fresh config so onboarding changes
3090
+ // (name, bio, style, etc.) are picked up on restart.
3091
+ const freshCharacter = buildCharacterFromConfig(freshConfig);
3092
+ // Recreate Eliza plugin with fresh workspace
3093
+ const freshElizaPlugin = createElizaPlugin({
3094
+ workspaceDir: freshConfig.agents?.defaults?.workspace ?? workspaceDir,
3095
+ agentId: freshCharacter.name?.toLowerCase().replace(/\s+/g, "-") ?? "main",
3096
+ });
3097
+ // Create new runtime with updated plugins.
3098
+ // Filter out pre-registered plugins so they aren't double-loaded
3099
+ // inside initialize()'s Promise.all — same pattern as the initial
3100
+ // startup to avoid the TEXT_EMBEDDING race condition.
3101
+ const freshPreferredProviderId = resolvePreferredProviderId(freshConfig);
3102
+ const freshPreferredProviderPluginName = resolvePreferredProviderPluginName(freshConfig);
3103
+ const freshOtherPlugins = resolvedPlugins.filter((p) => !PREREGISTER_PLUGINS.has(p.name));
3104
+ // Boost the preferred provider plugin priority (same as initial startup)
3105
+ const freshPluginsForRuntime = freshOtherPlugins.map((p) => p.plugin);
3106
+ const freshVisionModeSetting = resolveVisionModeSetting(freshConfig);
3107
+ if (freshPreferredProviderPluginName) {
3108
+ for (const plugin of freshPluginsForRuntime) {
3109
+ if (plugin.name === freshPreferredProviderPluginName) {
3110
+ plugin.priority = (plugin.priority ?? 0) + 10;
3111
+ break;
3112
+ }
3113
+ }
3114
+ }
3115
+ const newRuntime = new AgentRuntime({
3116
+ character: freshCharacter,
3117
+ plugins: [freshElizaPlugin, ...freshPluginsForRuntime],
3118
+ ...(runtimeLogLevel ? { logLevel: runtimeLogLevel } : {}),
3119
+ settings: {
3120
+ ...(freshPreferredProviderId
3121
+ ? { MODEL_PROVIDER: freshPreferredProviderId }
3122
+ : {}),
3123
+ ...(freshVisionModeSetting
3124
+ ? { VISION_MODE: freshVisionModeSetting }
3125
+ : {}),
3126
+ // Disable image description when vision is explicitly toggled off.
3127
+ ...(freshConfig.features?.vision === false
3128
+ ? { DISABLE_IMAGE_DESCRIPTION: "true" }
3129
+ : {}),
3130
+ },
3131
+ });
3132
+ installRuntimeMethodBindings(newRuntime);
3133
+ // Pre-register plugin-sql + local-embedding before initialize()
3134
+ // to avoid the same race condition as the initial startup.
3135
+ // Re-derive from freshly resolved plugins (not outer closure) so
3136
+ // hot-reload picks up any plugin updates.
3137
+ const freshSqlPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-sql");
3138
+ const freshLocalEmbeddingPlugin = resolvedPlugins.find((p) => p.name === "@elizaos/plugin-local-embedding");
3139
+ if (freshSqlPlugin) {
3140
+ await registerSqlPluginWithRecovery(newRuntime, freshSqlPlugin, freshConfig);
3141
+ }
3142
+ if (freshLocalEmbeddingPlugin) {
3143
+ configureLocalEmbeddingPlugin(freshLocalEmbeddingPlugin.plugin, freshConfig);
3144
+ await newRuntime.registerPlugin(freshLocalEmbeddingPlugin.plugin);
3145
+ }
3146
+ // Pre-register remaining core plugins sequentially (same as startup)
3147
+ {
3148
+ try {
3149
+ await newRuntime.registerPlugin(rolesPlugin);
3150
+ }
3151
+ catch (err) {
3152
+ logger.warn(`[eliza] Hot-reload: roles capability pre-registration failed: ${formatError(err)}`);
3153
+ }
3154
+ const alreadyPreRegistered = new Set([
3155
+ "@elizaos/plugin-sql",
3156
+ "@elizaos/plugin-local-embedding",
3157
+ ]);
3158
+ for (const name of CORE_PLUGINS) {
3159
+ if (alreadyPreRegistered.has(name))
3160
+ continue;
3161
+ const resolved = resolvedPlugins.find((p) => p.name === name);
3162
+ if (!resolved)
3163
+ continue;
3164
+ try {
3165
+ await newRuntime.registerPlugin(resolved.plugin);
3166
+ }
3167
+ catch (err) {
3168
+ logger.warn(`[eliza] Hot-reload: core plugin ${name} pre-registration failed: ${formatError(err)}`);
3169
+ }
3170
+ }
3171
+ }
3172
+ assertPersistentDatabaseRequired(newRuntime);
3173
+ try {
3174
+ const { ConnectorSetupService: CSSReload } = await import("../services/connector-setup-service.js");
3175
+ await newRuntime.registerService(CSSReload);
3176
+ }
3177
+ catch {
3178
+ // non-fatal
3179
+ }
3180
+ try {
3181
+ const { stewardEvmPreBoot: preBootHR } = await import("@elizaos/app-steward/services/steward-evm-bridge");
3182
+ await preBootHR(newRuntime);
3183
+ }
3184
+ catch {
3185
+ // non-fatal
3186
+ }
3187
+ assertPersistentDatabaseRequired(newRuntime);
3188
+ await newRuntime.initialize();
3189
+ await prepareRuntimeForTrajectoryCapture(newRuntime, "hot-reload runtime.initialize()", config);
3190
+ try {
3191
+ const { applyPluginRoleGating } = await import("./plugin-role-gating.js");
3192
+ applyPluginRoleGating(newRuntime.plugins ?? []);
3193
+ }
3194
+ catch (err) {
3195
+ logger.debug(`[eliza] Hot-reload plugin role gating skipped: ${formatError(err)}`);
3196
+ }
3197
+ try {
3198
+ const { stewardEvmPostBoot: postBootHR } = await import("@elizaos/app-steward/services/steward-evm-bridge");
3199
+ await postBootHR(newRuntime);
3200
+ }
3201
+ catch {
3202
+ // non-fatal
3203
+ }
3204
+ // Ensure AutonomyService survives hot-reload (respects ENABLE_AUTONOMY)
3205
+ const hotReloadAutonomyEnabled = (process.env.ENABLE_AUTONOMY ?? "true").toLowerCase() !== "false";
3206
+ if (hotReloadAutonomyEnabled && !newRuntime.getService("AUTONOMY")) {
3207
+ try {
3208
+ await startAndRegisterAutonomyService(newRuntime);
3209
+ }
3210
+ catch (err) {
3211
+ logger.warn(`[eliza] AutonomyService failed to start after hot-reload: ${formatError(err)}`);
3212
+ }
3213
+ }
3214
+ // Enable the autonomy loop after hot-reload (same as initial boot)
3215
+ if (hotReloadAutonomyEnabled) {
3216
+ const svc = getAutonomyService(newRuntime);
3217
+ if (svc) {
3218
+ try {
3219
+ await svc.enableAutonomy();
3220
+ }
3221
+ catch (err) {
3222
+ logger.warn(`[eliza] Failed to enable autonomy after hot-reload: ${formatError(err)}`);
3223
+ }
3224
+ }
3225
+ }
3226
+ installActionAliases(newRuntime);
3227
+ runtime = newRuntime;
3228
+ logger.info("[eliza] Hot-reload: Runtime restarted successfully");
3229
+ return newRuntime;
3230
+ }
3231
+ catch (err) {
3232
+ logger.error(`[eliza] Hot-reload failed: ${formatError(err)}`);
3233
+ return null;
3234
+ }
3235
+ },
3236
+ });
3237
+ const dashboardUrl = `http://localhost:${actualApiPort}`;
3238
+ console.log(`[eliza] Control UI: ${dashboardUrl}`);
3239
+ logger.info(`[eliza] API server listening on ${dashboardUrl}`);
3240
+ }
3241
+ catch (apiErr) {
3242
+ // Log to both stderr (visible to Electrobun agent.ts) and the in-memory
3243
+ // logger so the error is never silently swallowed in packaged builds.
3244
+ const apiErrMsg = `[eliza] Could not start API server: ${formatError(apiErr)}`;
3245
+ console.error(apiErrMsg);
3246
+ logger.warn(apiErrMsg);
3247
+ // In server-only mode (Electrobun desktop), a missing API server is fatal
3248
+ // — nothing else can serve requests. Exit so the parent process sees a
3249
+ // non-zero exit code instead of the misleading "Server running" message.
3250
+ if (opts?.serverOnly) {
3251
+ console.error("[eliza] Exiting: API server is required in server-only mode.");
3252
+ process.exit(1);
3253
+ }
3254
+ // Non-fatal in CLI mode — the interactive chat loop still works.
3255
+ }
3256
+ // ── Server-only mode — keep running without chat loop ────────────────────
3257
+ if (opts?.serverOnly) {
3258
+ logger.info("[eliza] Running in server-only mode (no interactive chat)");
3259
+ console.log("[eliza] Server running. Press Ctrl+C to stop.");
3260
+ // Keep process alive — the API server handles all interaction
3261
+ const keepAlive = setInterval(() => { }, 1 << 30); // ~12 days
3262
+ registerSignalShutdownHandlers({
3263
+ getRuntime: () => runtime,
3264
+ getSandboxManager: () => sandboxManager,
3265
+ beforeShutdown: () => {
3266
+ clearInterval(keepAlive);
3267
+ },
3268
+ });
3269
+ return runtime;
3270
+ }
3271
+ // ── Interactive chat loop ────────────────────────────────────────────────
3272
+ const agentName = character.name ?? "Eliza";
3273
+ const userId = crypto.randomUUID();
3274
+ // Use `let` so the fallback path can reassign to fresh IDs.
3275
+ let roomId = stringToUuid(`${agentName}-chat-room`);
3276
+ try {
3277
+ const worldId = stringToUuid(`${agentName}-chat-world`);
3278
+ // Use a deterministic messageServerId so the settings provider
3279
+ // can reference the world by serverId after it is found.
3280
+ const messageServerId = stringToUuid(`${agentName}-cli-server`);
3281
+ await runtime.ensureConnection({
3282
+ entityId: userId,
3283
+ roomId,
3284
+ worldId,
3285
+ userName: "User",
3286
+ source: "cli",
3287
+ channelId: `${agentName}-chat`,
3288
+ type: ChannelType.DM,
3289
+ messageServerId,
3290
+ metadata: { ownership: { ownerId: userId } },
3291
+ });
3292
+ // Ensure the world has ownership metadata so the settings
3293
+ // provider can locate it via findWorldsForOwner during onboarding.
3294
+ // This also handles worlds that already exist from a prior session
3295
+ // but were created without ownership metadata.
3296
+ const world = await runtime.getWorld(worldId);
3297
+ if (world) {
3298
+ let needsUpdate = false;
3299
+ if (!world.metadata) {
3300
+ world.metadata = {};
3301
+ needsUpdate = true;
3302
+ }
3303
+ if (!world.metadata.ownership ||
3304
+ typeof world.metadata.ownership !== "object" ||
3305
+ world.metadata.ownership.ownerId !== userId) {
3306
+ world.metadata.ownership = { ownerId: userId };
3307
+ needsUpdate = true;
3308
+ }
3309
+ if (needsUpdate) {
3310
+ await runtime.updateWorld(world);
3311
+ }
3312
+ }
3313
+ }
3314
+ catch (err) {
3315
+ logger.warn(`[eliza] Could not establish chat room, retrying with fresh IDs: ${formatError(err)}`);
3316
+ // Fall back to unique IDs if deterministic ones conflict with stale data.
3317
+ // IMPORTANT: reassign roomId so the message loop below uses the same room.
3318
+ roomId = crypto.randomUUID();
3319
+ const freshWorldId = crypto.randomUUID();
3320
+ const freshServerId = crypto.randomUUID();
3321
+ try {
3322
+ await runtime.ensureConnection({
3323
+ entityId: userId,
3324
+ roomId,
3325
+ worldId: freshWorldId,
3326
+ userName: "User",
3327
+ source: "cli",
3328
+ channelId: `${agentName}-chat`,
3329
+ type: ChannelType.DM,
3330
+ messageServerId: freshServerId,
3331
+ metadata: { ownership: { ownerId: userId } },
3332
+ });
3333
+ // Same ownership metadata fix for the fallback world.
3334
+ const fallbackWorld = await runtime.getWorld(freshWorldId);
3335
+ if (fallbackWorld) {
3336
+ let needsUpdate = false;
3337
+ if (!fallbackWorld.metadata) {
3338
+ fallbackWorld.metadata = {};
3339
+ needsUpdate = true;
3340
+ }
3341
+ if (!fallbackWorld.metadata.ownership ||
3342
+ typeof fallbackWorld.metadata.ownership !== "object" ||
3343
+ fallbackWorld.metadata.ownership.ownerId !==
3344
+ userId) {
3345
+ fallbackWorld.metadata.ownership = { ownerId: userId };
3346
+ needsUpdate = true;
3347
+ }
3348
+ if (needsUpdate) {
3349
+ await runtime.updateWorld(fallbackWorld);
3350
+ }
3351
+ }
3352
+ }
3353
+ catch (retryErr) {
3354
+ logger.error(`[eliza] Chat room setup failed after retry: ${formatError(retryErr)}`);
3355
+ throw retryErr;
3356
+ }
3357
+ }
3358
+ const rl = readline.createInterface({
3359
+ input: process.stdin,
3360
+ output: process.stdout,
3361
+ });
3362
+ console.log(`\n💬 Chat with ${agentName} (type 'exit' to quit)\n`);
3363
+ const prompt = () => {
3364
+ rl.question("You: ", async (input) => {
3365
+ const text = input.trim();
3366
+ if (text.toLowerCase() === "exit" || text.toLowerCase() === "quit") {
3367
+ console.log("\nGoodbye!");
3368
+ rl.close();
3369
+ try {
3370
+ await shutdownRuntime(runtime, "cli shutdown");
3371
+ }
3372
+ catch (err) {
3373
+ logger.warn(`[eliza] Error stopping runtime: ${formatError(err)}`);
3374
+ }
3375
+ process.exit(0);
3376
+ }
3377
+ if (!text) {
3378
+ prompt();
3379
+ return;
3380
+ }
3381
+ try {
3382
+ const message = createMessageMemory({
3383
+ id: crypto.randomUUID(),
3384
+ entityId: userId,
3385
+ roomId,
3386
+ content: {
3387
+ text,
3388
+ source: "client_chat",
3389
+ channelType: ChannelType.DM,
3390
+ },
3391
+ });
3392
+ process.stdout.write(`${agentName}: `);
3393
+ if (!runtime.messageService) {
3394
+ logger.error("[eliza] runtime.messageService is not available — cannot process messages");
3395
+ console.log("[Error: message service unavailable]\n");
3396
+ prompt();
3397
+ return;
3398
+ }
3399
+ await runtime.messageService.handleMessage(runtime, message, async (content) => {
3400
+ if (content?.text) {
3401
+ process.stdout.write(content.text);
3402
+ }
3403
+ return [];
3404
+ });
3405
+ console.log("\n");
3406
+ }
3407
+ catch (err) {
3408
+ // Log the error and continue the prompt loop — don't let a single
3409
+ // failed message kill the interactive session.
3410
+ console.log(`\n[Error: ${formatError(err)}]\n`);
3411
+ logger.error(`[eliza] Chat message handling failed: ${formatError(err)}`);
3412
+ }
3413
+ prompt();
3414
+ });
3415
+ };
3416
+ prompt();
3417
+ }
3418
+ // When run directly (not imported), start immediately.
3419
+ // Use path.resolve to normalise both sides before comparing so that
3420
+ // symlinks, trailing slashes, and relative paths don't cause false negatives.
3421
+ // ---------------------------------------------------------------------------
3422
+ // Cloud thin-client mode
3423
+ // ---------------------------------------------------------------------------
3424
+ /**
3425
+ * Start in cloud mode — connect to a remote cloud agent via the thin client.
3426
+ * Skips all local runtime construction (plugins, database, etc.).
3427
+ */
3428
+ export async function startInCloudMode(config, agentId, opts) {
3429
+ const { CloudManager } = await import("../cloud/cloud-manager.js");
3430
+ const cloudConfig = config.cloud;
3431
+ if (!cloudConfig) {
3432
+ throw new Error("Cloud mode requires a cloud configuration block in the config");
3433
+ }
3434
+ logger.info(`[eliza] Starting in cloud mode (agentId=${agentId}, baseUrl=${cloudConfig.baseUrl ?? "(default)"})`);
3435
+ const manager = new CloudManager(cloudConfig, {
3436
+ onStatusChange: (status) => {
3437
+ logger.info(`[eliza] Cloud connection: ${status}`);
3438
+ },
3439
+ });
3440
+ try {
3441
+ await manager.init();
3442
+ const proxy = await manager.connect(agentId);
3443
+ if (opts?.headless || opts?.serverOnly) {
3444
+ // In headless/server mode, start the API server with the cloud proxy.
3445
+ // The proxy exposes the same interface the API server needs.
3446
+ logger.info(`[eliza] Cloud agent connected (headless). Agent: ${proxy.agentName}`);
3447
+ // Return undefined here; GUI cloud mode is handled through the
3448
+ // dedicated cloud proxy routes instead of a local AgentRuntime.
3449
+ return undefined;
3450
+ }
3451
+ // Interactive CLI mode — simple chat loop against the cloud agent
3452
+ console.log(`\n☁️ Connected to cloud agent "${proxy.agentName}" (${agentId})\n`);
3453
+ console.log("Type a message to chat, or Ctrl+C to quit.\n");
3454
+ const rl = (await import("node:readline")).createInterface({
3455
+ input: process.stdin,
3456
+ output: process.stdout,
3457
+ });
3458
+ const prompt = () => {
3459
+ rl.question("You: ", async (input) => {
3460
+ const text = input.trim();
3461
+ if (!text) {
3462
+ prompt();
3463
+ return;
3464
+ }
3465
+ try {
3466
+ // Use streaming if available
3467
+ let response = "";
3468
+ process.stdout.write(`${proxy.agentName}: `);
3469
+ for await (const chunk of proxy.handleChatMessageStream(text)) {
3470
+ process.stdout.write(chunk);
3471
+ response += chunk;
3472
+ }
3473
+ if (!response) {
3474
+ // Fallback to non-streaming
3475
+ response = await proxy.handleChatMessage(text);
3476
+ process.stdout.write(response);
3477
+ }
3478
+ console.log("\n");
3479
+ }
3480
+ catch (err) {
3481
+ const msg = err instanceof Error ? err.message : String(err);
3482
+ console.error(`\n[error] ${msg}\n`);
3483
+ }
3484
+ prompt();
3485
+ });
3486
+ };
3487
+ rl.on("close", async () => {
3488
+ console.log("\nDisconnecting from cloud agent...");
3489
+ await manager.disconnect();
3490
+ process.exit(0);
3491
+ });
3492
+ prompt();
3493
+ // Keep the process alive
3494
+ return undefined;
3495
+ }
3496
+ catch (err) {
3497
+ const msg = err instanceof Error ? err.message : String(err);
3498
+ logger.error(`[eliza] Failed to connect to cloud agent: ${msg}`);
3499
+ throw new Error(`Failed to connect to cloud agent: ${msg}\n` +
3500
+ "You can retry with `eliza start`, or switch to local mode by setting `deploymentTarget.runtime` to `local`");
3501
+ }
3502
+ }
3503
+ const isDirectRun = (() => {
3504
+ // Mobile (bundled) builds set ELIZA_DISABLE_DIRECT_RUN=1 via Bun's
3505
+ // `--define`. After bundling, `import.meta.url` and `process.argv[1]`
3506
+ // collapse to the same bundle path, so this check spuriously matches and
3507
+ // the runtime self-invokes a SECOND `startEliza()` alongside the CLI's
3508
+ // primary one. The second invocation lacks `{ serverOnly: true }` and
3509
+ // drops into the readline chat loop, which closes on stdin EOF and tears
3510
+ // the whole process down.
3511
+ if (process.env.ELIZA_DISABLE_DIRECT_RUN === "1")
3512
+ return false;
3513
+ const scriptArg = process.argv[1];
3514
+ if (!scriptArg)
3515
+ return false;
3516
+ const normalised = path.resolve(scriptArg);
3517
+ return import.meta.url === pathToFileURL(normalised).href;
3518
+ })();
3519
+ if (isDirectRun) {
3520
+ startEliza().catch((err) => {
3521
+ console.error("[eliza] Fatal error:", err instanceof Error ? (err.stack ?? err.message) : err);
3522
+ process.exit(1);
3523
+ });
3524
+ }