@elizaos/ui 2.0.0-alpha.21 → 2.0.0-alpha.211

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 (4868) hide show
  1. package/apps/app-companion/src/actions/emote.d.ts +10 -0
  2. package/apps/app-companion/src/actions/emote.d.ts.map +1 -0
  3. package/apps/app-companion/src/actions/emote.js +80 -0
  4. package/apps/app-companion/src/components/avatar/MathEnvironment.d.ts +38 -0
  5. package/apps/app-companion/src/components/avatar/MathEnvironment.d.ts.map +1 -0
  6. package/apps/app-companion/src/components/avatar/MathEnvironment.js +295 -0
  7. package/apps/app-companion/src/components/avatar/SceneOverlayManager.d.ts +36 -0
  8. package/apps/app-companion/src/components/avatar/SceneOverlayManager.d.ts.map +1 -0
  9. package/apps/app-companion/src/components/avatar/SceneOverlayManager.js +305 -0
  10. package/apps/app-companion/src/components/avatar/VrmAnimationLoader.d.ts +30 -0
  11. package/apps/app-companion/src/components/avatar/VrmAnimationLoader.d.ts.map +1 -0
  12. package/apps/app-companion/src/components/avatar/VrmAnimationLoader.js +100 -0
  13. package/apps/app-companion/src/components/avatar/VrmBlinkController.d.ts +37 -0
  14. package/apps/app-companion/src/components/avatar/VrmBlinkController.d.ts.map +1 -0
  15. package/apps/app-companion/src/components/avatar/VrmBlinkController.js +98 -0
  16. package/apps/app-companion/src/components/avatar/VrmCameraManager.d.ts +57 -0
  17. package/apps/app-companion/src/components/avatar/VrmCameraManager.d.ts.map +1 -0
  18. package/apps/app-companion/src/components/avatar/VrmCameraManager.js +256 -0
  19. package/apps/app-companion/src/components/avatar/VrmEngine.d.ts +283 -0
  20. package/apps/app-companion/src/components/avatar/VrmEngine.d.ts.map +1 -0
  21. package/apps/app-companion/src/components/avatar/VrmEngine.js +2003 -0
  22. package/apps/app-companion/src/components/avatar/VrmFootShadow.d.ts +18 -0
  23. package/apps/app-companion/src/components/avatar/VrmFootShadow.d.ts.map +1 -0
  24. package/apps/app-companion/src/components/avatar/VrmFootShadow.js +83 -0
  25. package/apps/app-companion/src/components/avatar/VrmTeleportEffect.d.ts +49 -0
  26. package/apps/app-companion/src/components/avatar/VrmTeleportEffect.d.ts.map +1 -0
  27. package/apps/app-companion/src/components/avatar/VrmTeleportEffect.js +390 -0
  28. package/apps/app-companion/src/components/avatar/VrmViewer.d.ts +64 -0
  29. package/apps/app-companion/src/components/avatar/VrmViewer.d.ts.map +1 -0
  30. package/apps/app-companion/src/components/avatar/VrmViewer.js +436 -0
  31. package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.d.ts +3 -0
  32. package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.d.ts.map +1 -0
  33. package/apps/app-companion/src/components/avatar/mixamoVRMRigMap.js +56 -0
  34. package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.d.ts +9 -0
  35. package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.d.ts.map +1 -0
  36. package/apps/app-companion/src/components/avatar/retargetMixamoFbxToVrm.js +127 -0
  37. package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.d.ts +11 -0
  38. package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.d.ts.map +1 -0
  39. package/apps/app-companion/src/components/avatar/retargetMixamoGltfToVrm.js +97 -0
  40. package/apps/app-companion/src/components/avatar/scene-overlay-renderer.d.ts +37 -0
  41. package/apps/app-companion/src/components/avatar/scene-overlay-renderer.d.ts.map +1 -0
  42. package/apps/app-companion/src/components/avatar/scene-overlay-renderer.js +337 -0
  43. package/apps/app-companion/src/components/avatar/scene-theme-tokens.d.ts +26 -0
  44. package/apps/app-companion/src/components/avatar/scene-theme-tokens.d.ts.map +1 -0
  45. package/apps/app-companion/src/components/avatar/scene-theme-tokens.js +48 -0
  46. package/apps/app-companion/src/components/avatar/vector-browser-three.d.ts +9 -0
  47. package/apps/app-companion/src/components/avatar/vector-browser-three.d.ts.map +1 -0
  48. package/apps/app-companion/src/components/avatar/vector-browser-three.js +21 -0
  49. package/apps/app-companion/src/components/avatar/vrm-desktop-energy.d.ts +40 -0
  50. package/apps/app-companion/src/components/avatar/vrm-desktop-energy.d.ts.map +1 -0
  51. package/apps/app-companion/src/components/avatar/vrm-desktop-energy.js +74 -0
  52. package/apps/app-companion/src/components/chat/ChatAvatar.d.ts +3 -0
  53. package/apps/app-companion/src/components/chat/ChatAvatar.d.ts.map +1 -0
  54. package/apps/app-companion/src/components/chat/ChatAvatar.js +80 -0
  55. package/apps/app-companion/src/components/companion/CompanionAppView.d.ts +9 -0
  56. package/apps/app-companion/src/components/companion/CompanionAppView.d.ts.map +1 -0
  57. package/apps/app-companion/src/components/companion/CompanionAppView.js +114 -0
  58. package/apps/app-companion/src/components/companion/CompanionHeader.d.ts +25 -0
  59. package/apps/app-companion/src/components/companion/CompanionHeader.d.ts.map +1 -0
  60. package/apps/app-companion/src/components/companion/CompanionHeader.js +61 -0
  61. package/apps/app-companion/src/components/companion/CompanionSceneHost.d.ts +15 -0
  62. package/apps/app-companion/src/components/companion/CompanionSceneHost.d.ts.map +1 -0
  63. package/apps/app-companion/src/components/companion/CompanionSceneHost.js +476 -0
  64. package/apps/app-companion/src/components/companion/CompanionShell.d.ts +8 -0
  65. package/apps/app-companion/src/components/companion/CompanionShell.d.ts.map +1 -0
  66. package/apps/app-companion/src/components/companion/CompanionShell.js +9 -0
  67. package/apps/app-companion/src/components/companion/CompanionView.d.ts +7 -0
  68. package/apps/app-companion/src/components/companion/CompanionView.d.ts.map +1 -0
  69. package/apps/app-companion/src/components/companion/CompanionView.js +119 -0
  70. package/apps/app-companion/src/components/companion/EmotePicker.d.ts +2 -0
  71. package/apps/app-companion/src/components/companion/EmotePicker.d.ts.map +1 -0
  72. package/apps/app-companion/src/components/companion/EmotePicker.js +354 -0
  73. package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.d.ts +2 -0
  74. package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.d.ts.map +1 -0
  75. package/apps/app-companion/src/components/companion/GlobalEmoteOverlay.js +113 -0
  76. package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.d.ts +9 -0
  77. package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.d.ts.map +1 -0
  78. package/apps/app-companion/src/components/companion/InferenceCloudAlertButton.js +17 -0
  79. package/apps/app-companion/src/components/companion/VrmStage.d.ts +27 -0
  80. package/apps/app-companion/src/components/companion/VrmStage.d.ts.map +1 -0
  81. package/apps/app-companion/src/components/companion/VrmStage.js +179 -0
  82. package/apps/app-companion/src/components/companion/companion-app.d.ts +6 -0
  83. package/apps/app-companion/src/components/companion/companion-app.d.ts.map +1 -0
  84. package/apps/app-companion/src/components/companion/companion-app.js +15 -0
  85. package/apps/app-companion/src/components/companion/companion-scene-status-context.d.ts +7 -0
  86. package/apps/app-companion/src/components/companion/companion-scene-status-context.d.ts.map +1 -0
  87. package/apps/app-companion/src/components/companion/companion-scene-status-context.js +8 -0
  88. package/apps/app-companion/src/components/companion/companion-shell-styles.d.ts +38 -0
  89. package/apps/app-companion/src/components/companion/companion-shell-styles.d.ts.map +1 -0
  90. package/apps/app-companion/src/components/companion/companion-shell-styles.js +237 -0
  91. package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.d.ts +19 -0
  92. package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.d.ts.map +1 -0
  93. package/apps/app-companion/src/components/companion/resolve-companion-inference-notice.js +31 -0
  94. package/apps/app-companion/src/components/companion/scene-overlay-bridge.d.ts +6 -0
  95. package/apps/app-companion/src/components/companion/scene-overlay-bridge.d.ts.map +1 -0
  96. package/apps/app-companion/src/components/companion/scene-overlay-bridge.js +82 -0
  97. package/apps/app-companion/src/components/companion/shared-companion-scene-context.d.ts +3 -0
  98. package/apps/app-companion/src/components/companion/shared-companion-scene-context.d.ts.map +1 -0
  99. package/apps/app-companion/src/components/companion/shared-companion-scene-context.js +13 -0
  100. package/apps/app-companion/src/components/companion/shell-control-styles.d.ts +12 -0
  101. package/apps/app-companion/src/components/companion/shell-control-styles.d.ts.map +1 -0
  102. package/apps/app-companion/src/components/companion/shell-control-styles.js +11 -0
  103. package/apps/app-companion/src/components/companion/walletUtils.d.ts +91 -0
  104. package/apps/app-companion/src/components/companion/walletUtils.d.ts.map +1 -0
  105. package/apps/app-companion/src/components/companion/walletUtils.js +151 -0
  106. package/apps/app-companion/src/emotes/catalog.d.ts +31 -0
  107. package/apps/app-companion/src/emotes/catalog.d.ts.map +1 -0
  108. package/apps/app-companion/src/emotes/catalog.js +402 -0
  109. package/apps/app-companion/src/plugin.d.ts +9 -0
  110. package/apps/app-companion/src/plugin.d.ts.map +1 -0
  111. package/apps/app-companion/src/plugin.js +15 -0
  112. package/apps/app-companion/src/types/render-modes.d.ts +4 -0
  113. package/apps/app-companion/src/types/render-modes.d.ts.map +1 -0
  114. package/apps/app-companion/src/types/render-modes.js +6 -0
  115. package/apps/app-companion/src/ui.d.ts +34 -0
  116. package/apps/app-companion/src/ui.d.ts.map +1 -0
  117. package/apps/app-companion/src/ui.js +33 -0
  118. package/apps/app-elizamaker/src/drop-routes.d.ts +22 -0
  119. package/apps/app-elizamaker/src/drop-routes.d.ts.map +1 -0
  120. package/apps/app-elizamaker/src/drop-routes.js +155 -0
  121. package/apps/app-elizamaker/src/drop-service.d.ts +26 -0
  122. package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -0
  123. package/apps/app-elizamaker/src/drop-service.js +134 -0
  124. package/apps/app-elizamaker/src/index.d.ts +8 -0
  125. package/apps/app-elizamaker/src/index.d.ts.map +1 -0
  126. package/apps/app-elizamaker/src/index.js +5 -0
  127. package/apps/app-elizamaker/src/merkle-tree.d.ts +90 -0
  128. package/apps/app-elizamaker/src/merkle-tree.d.ts.map +1 -0
  129. package/apps/app-elizamaker/src/merkle-tree.js +174 -0
  130. package/apps/app-elizamaker/src/og-tracker.d.ts +28 -0
  131. package/apps/app-elizamaker/src/og-tracker.d.ts.map +1 -0
  132. package/apps/app-elizamaker/src/og-tracker.js +60 -0
  133. package/apps/app-elizamaker/src/twitter-verify.d.ts +25 -0
  134. package/apps/app-elizamaker/src/twitter-verify.d.ts.map +1 -0
  135. package/apps/app-elizamaker/src/twitter-verify.js +168 -0
  136. package/apps/app-lifeops/src/action.d.ts +3 -0
  137. package/apps/app-lifeops/src/action.d.ts.map +1 -0
  138. package/apps/app-lifeops/src/action.js +351 -0
  139. package/apps/app-lifeops/src/actions/activity-report.d.ts +13 -0
  140. package/apps/app-lifeops/src/actions/activity-report.d.ts.map +1 -0
  141. package/apps/app-lifeops/src/actions/activity-report.js +287 -0
  142. package/apps/app-lifeops/src/actions/app-blocker.d.ts +7 -0
  143. package/apps/app-lifeops/src/actions/app-blocker.d.ts.map +1 -0
  144. package/apps/app-lifeops/src/actions/app-blocker.js +448 -0
  145. package/apps/app-lifeops/src/actions/autofill.d.ts +35 -0
  146. package/apps/app-lifeops/src/actions/autofill.d.ts.map +1 -0
  147. package/apps/app-lifeops/src/actions/autofill.js +340 -0
  148. package/apps/app-lifeops/src/actions/browser-extension.d.ts +19 -0
  149. package/apps/app-lifeops/src/actions/browser-extension.d.ts.map +1 -0
  150. package/apps/app-lifeops/src/actions/browser-extension.js +88 -0
  151. package/apps/app-lifeops/src/actions/calendar.d.ts +19 -0
  152. package/apps/app-lifeops/src/actions/calendar.d.ts.map +1 -0
  153. package/apps/app-lifeops/src/actions/calendar.js +3024 -0
  154. package/apps/app-lifeops/src/actions/calendly.d.ts +3 -0
  155. package/apps/app-lifeops/src/actions/calendly.d.ts.map +1 -0
  156. package/apps/app-lifeops/src/actions/calendly.js +242 -0
  157. package/apps/app-lifeops/src/actions/checkin.d.ts +4 -0
  158. package/apps/app-lifeops/src/actions/checkin.d.ts.map +1 -0
  159. package/apps/app-lifeops/src/actions/checkin.js +72 -0
  160. package/apps/app-lifeops/src/actions/computer-use.d.ts +14 -0
  161. package/apps/app-lifeops/src/actions/computer-use.d.ts.map +1 -0
  162. package/apps/app-lifeops/src/actions/computer-use.js +380 -0
  163. package/apps/app-lifeops/src/actions/cross-channel-send.d.ts +24 -0
  164. package/apps/app-lifeops/src/actions/cross-channel-send.d.ts.map +1 -0
  165. package/apps/app-lifeops/src/actions/cross-channel-send.js +580 -0
  166. package/apps/app-lifeops/src/actions/device-bus.d.ts +19 -0
  167. package/apps/app-lifeops/src/actions/device-bus.d.ts.map +1 -0
  168. package/apps/app-lifeops/src/actions/device-bus.js +274 -0
  169. package/apps/app-lifeops/src/actions/dossier.d.ts +5 -0
  170. package/apps/app-lifeops/src/actions/dossier.d.ts.map +1 -0
  171. package/apps/app-lifeops/src/actions/dossier.js +212 -0
  172. package/apps/app-lifeops/src/actions/gmail.d.ts +33 -0
  173. package/apps/app-lifeops/src/actions/gmail.d.ts.map +1 -0
  174. package/apps/app-lifeops/src/actions/gmail.js +1775 -0
  175. package/apps/app-lifeops/src/actions/health.d.ts +9 -0
  176. package/apps/app-lifeops/src/actions/health.d.ts.map +1 -0
  177. package/apps/app-lifeops/src/actions/health.js +397 -0
  178. package/apps/app-lifeops/src/actions/inbox.d.ts +5 -0
  179. package/apps/app-lifeops/src/actions/inbox.d.ts.map +1 -0
  180. package/apps/app-lifeops/src/actions/inbox.js +990 -0
  181. package/apps/app-lifeops/src/actions/intent-sync.d.ts +3 -0
  182. package/apps/app-lifeops/src/actions/intent-sync.d.ts.map +1 -0
  183. package/apps/app-lifeops/src/actions/intent-sync.js +371 -0
  184. package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts +69 -0
  185. package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts.map +1 -0
  186. package/apps/app-lifeops/src/actions/life-goal-extractor.js +354 -0
  187. package/apps/app-lifeops/src/actions/life-param-extractor.d.ts +78 -0
  188. package/apps/app-lifeops/src/actions/life-param-extractor.d.ts.map +1 -0
  189. package/apps/app-lifeops/src/actions/life-param-extractor.js +423 -0
  190. package/apps/app-lifeops/src/actions/life-recent-context.d.ts +9 -0
  191. package/apps/app-lifeops/src/actions/life-recent-context.d.ts.map +1 -0
  192. package/apps/app-lifeops/src/actions/life-recent-context.js +84 -0
  193. package/apps/app-lifeops/src/actions/life-update-extractor.d.ts +27 -0
  194. package/apps/app-lifeops/src/actions/life-update-extractor.d.ts.map +1 -0
  195. package/apps/app-lifeops/src/actions/life-update-extractor.js +195 -0
  196. package/apps/app-lifeops/src/actions/life.d.ts +5 -0
  197. package/apps/app-lifeops/src/actions/life.d.ts.map +1 -0
  198. package/apps/app-lifeops/src/actions/life.extractor.d.ts +18 -0
  199. package/apps/app-lifeops/src/actions/life.extractor.d.ts.map +1 -0
  200. package/apps/app-lifeops/src/actions/life.extractor.js +363 -0
  201. package/apps/app-lifeops/src/actions/life.js +3323 -0
  202. package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts +16 -0
  203. package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts.map +1 -0
  204. package/apps/app-lifeops/src/actions/lifeops-extraction-config.js +25 -0
  205. package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts +62 -0
  206. package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts.map +1 -0
  207. package/apps/app-lifeops/src/actions/lifeops-google-helpers.js +615 -0
  208. package/apps/app-lifeops/src/actions/list-remote-sessions.d.ts +6 -0
  209. package/apps/app-lifeops/src/actions/list-remote-sessions.d.ts.map +1 -0
  210. package/apps/app-lifeops/src/actions/list-remote-sessions.js +45 -0
  211. package/apps/app-lifeops/src/actions/non-actionable-request.d.ts +6 -0
  212. package/apps/app-lifeops/src/actions/non-actionable-request.d.ts.map +1 -0
  213. package/apps/app-lifeops/src/actions/non-actionable-request.js +33 -0
  214. package/apps/app-lifeops/src/actions/password-manager.d.ts +3 -0
  215. package/apps/app-lifeops/src/actions/password-manager.d.ts.map +1 -0
  216. package/apps/app-lifeops/src/actions/password-manager.js +233 -0
  217. package/apps/app-lifeops/src/actions/relationships.d.ts +11 -0
  218. package/apps/app-lifeops/src/actions/relationships.d.ts.map +1 -0
  219. package/apps/app-lifeops/src/actions/relationships.js +666 -0
  220. package/apps/app-lifeops/src/actions/remote-desktop.d.ts +3 -0
  221. package/apps/app-lifeops/src/actions/remote-desktop.d.ts.map +1 -0
  222. package/apps/app-lifeops/src/actions/remote-desktop.js +283 -0
  223. package/apps/app-lifeops/src/actions/revoke-remote-session.d.ts +6 -0
  224. package/apps/app-lifeops/src/actions/revoke-remote-session.d.ts.map +1 -0
  225. package/apps/app-lifeops/src/actions/revoke-remote-session.js +73 -0
  226. package/apps/app-lifeops/src/actions/scheduling.d.ts +55 -0
  227. package/apps/app-lifeops/src/actions/scheduling.d.ts.map +1 -0
  228. package/apps/app-lifeops/src/actions/scheduling.js +921 -0
  229. package/apps/app-lifeops/src/actions/screen-time.d.ts +8 -0
  230. package/apps/app-lifeops/src/actions/screen-time.d.ts.map +1 -0
  231. package/apps/app-lifeops/src/actions/screen-time.js +237 -0
  232. package/apps/app-lifeops/src/actions/search-across-channels.d.ts +13 -0
  233. package/apps/app-lifeops/src/actions/search-across-channels.d.ts.map +1 -0
  234. package/apps/app-lifeops/src/actions/search-across-channels.js +340 -0
  235. package/apps/app-lifeops/src/actions/start-remote-session.d.ts +14 -0
  236. package/apps/app-lifeops/src/actions/start-remote-session.d.ts.map +1 -0
  237. package/apps/app-lifeops/src/actions/start-remote-session.js +138 -0
  238. package/apps/app-lifeops/src/actions/subscriptions.d.ts +5 -0
  239. package/apps/app-lifeops/src/actions/subscriptions.d.ts.map +1 -0
  240. package/apps/app-lifeops/src/actions/subscriptions.js +305 -0
  241. package/apps/app-lifeops/src/actions/timezone-normalization.d.ts +3 -0
  242. package/apps/app-lifeops/src/actions/timezone-normalization.d.ts.map +1 -0
  243. package/apps/app-lifeops/src/actions/timezone-normalization.js +105 -0
  244. package/apps/app-lifeops/src/actions/twilio-call.d.ts +20 -0
  245. package/apps/app-lifeops/src/actions/twilio-call.d.ts.map +1 -0
  246. package/apps/app-lifeops/src/actions/twilio-call.js +602 -0
  247. package/apps/app-lifeops/src/actions/update-owner-profile.d.ts +5 -0
  248. package/apps/app-lifeops/src/actions/update-owner-profile.d.ts.map +1 -0
  249. package/apps/app-lifeops/src/actions/update-owner-profile.js +153 -0
  250. package/apps/app-lifeops/src/actions/website-blocker.d.ts +14 -0
  251. package/apps/app-lifeops/src/actions/website-blocker.d.ts.map +1 -0
  252. package/apps/app-lifeops/src/actions/website-blocker.js +624 -0
  253. package/apps/app-lifeops/src/actions/x-read.d.ts +3 -0
  254. package/apps/app-lifeops/src/actions/x-read.d.ts.map +1 -0
  255. package/apps/app-lifeops/src/actions/x-read.js +391 -0
  256. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts +28 -0
  257. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts.map +1 -0
  258. package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.js +62 -0
  259. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts +45 -0
  260. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts.map +1 -0
  261. package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.js +112 -0
  262. package/apps/app-lifeops/src/activity-profile/activity-tracker-service.d.ts +26 -0
  263. package/apps/app-lifeops/src/activity-profile/activity-tracker-service.d.ts.map +1 -0
  264. package/apps/app-lifeops/src/activity-profile/activity-tracker-service.js +84 -0
  265. package/apps/app-lifeops/src/activity-profile/analyzer.d.ts +23 -0
  266. package/apps/app-lifeops/src/activity-profile/analyzer.d.ts.map +1 -0
  267. package/apps/app-lifeops/src/activity-profile/analyzer.js +544 -0
  268. package/apps/app-lifeops/src/activity-profile/proactive-planner.d.ts +49 -0
  269. package/apps/app-lifeops/src/activity-profile/proactive-planner.d.ts.map +1 -0
  270. package/apps/app-lifeops/src/activity-profile/proactive-planner.js +458 -0
  271. package/apps/app-lifeops/src/activity-profile/proactive-worker.d.ts +32 -0
  272. package/apps/app-lifeops/src/activity-profile/proactive-worker.d.ts.map +1 -0
  273. package/apps/app-lifeops/src/activity-profile/proactive-worker.js +571 -0
  274. package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts +10 -0
  275. package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts.map +1 -0
  276. package/apps/app-lifeops/src/activity-profile/profile-metadata.js +25 -0
  277. package/apps/app-lifeops/src/activity-profile/redactor.d.ts +18 -0
  278. package/apps/app-lifeops/src/activity-profile/redactor.d.ts.map +1 -0
  279. package/apps/app-lifeops/src/activity-profile/redactor.js +39 -0
  280. package/apps/app-lifeops/src/activity-profile/service.d.ts +11 -0
  281. package/apps/app-lifeops/src/activity-profile/service.d.ts.map +1 -0
  282. package/apps/app-lifeops/src/activity-profile/service.js +229 -0
  283. package/apps/app-lifeops/src/activity-profile/types.d.ts +89 -0
  284. package/apps/app-lifeops/src/activity-profile/types.d.ts.map +1 -0
  285. package/apps/app-lifeops/src/activity-profile/types.js +29 -0
  286. package/apps/app-lifeops/src/app-blocker/access.d.ts +8 -0
  287. package/apps/app-lifeops/src/app-blocker/access.d.ts.map +1 -0
  288. package/apps/app-lifeops/src/app-blocker/access.js +28 -0
  289. package/apps/app-lifeops/src/app-blocker/engine.d.ts +10 -0
  290. package/apps/app-lifeops/src/app-blocker/engine.d.ts.map +1 -0
  291. package/apps/app-lifeops/src/app-blocker/engine.js +43 -0
  292. package/apps/app-lifeops/src/dossier/action.d.ts +9 -0
  293. package/apps/app-lifeops/src/dossier/action.d.ts.map +1 -0
  294. package/apps/app-lifeops/src/dossier/action.js +88 -0
  295. package/apps/app-lifeops/src/dossier/service.d.ts +145 -0
  296. package/apps/app-lifeops/src/dossier/service.d.ts.map +1 -0
  297. package/apps/app-lifeops/src/dossier/service.js +346 -0
  298. package/apps/app-lifeops/src/followup/actions/listOverdueFollowups.d.ts +3 -0
  299. package/apps/app-lifeops/src/followup/actions/listOverdueFollowups.d.ts.map +1 -0
  300. package/apps/app-lifeops/src/followup/actions/listOverdueFollowups.js +48 -0
  301. package/apps/app-lifeops/src/followup/actions/markFollowupDone.d.ts +3 -0
  302. package/apps/app-lifeops/src/followup/actions/markFollowupDone.d.ts.map +1 -0
  303. package/apps/app-lifeops/src/followup/actions/markFollowupDone.js +173 -0
  304. package/apps/app-lifeops/src/followup/actions/setFollowupThreshold.d.ts +3 -0
  305. package/apps/app-lifeops/src/followup/actions/setFollowupThreshold.d.ts.map +1 -0
  306. package/apps/app-lifeops/src/followup/actions/setFollowupThreshold.js +172 -0
  307. package/apps/app-lifeops/src/followup/followup-tracker.d.ts +81 -0
  308. package/apps/app-lifeops/src/followup/followup-tracker.d.ts.map +1 -0
  309. package/apps/app-lifeops/src/followup/followup-tracker.js +251 -0
  310. package/apps/app-lifeops/src/followup/index.d.ts +5 -0
  311. package/apps/app-lifeops/src/followup/index.d.ts.map +1 -0
  312. package/apps/app-lifeops/src/followup/index.js +4 -0
  313. package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts +20 -0
  314. package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
  315. package/apps/app-lifeops/src/inbox/channel-deep-links.js +185 -0
  316. package/apps/app-lifeops/src/inbox/config.d.ts +7 -0
  317. package/apps/app-lifeops/src/inbox/config.d.ts.map +1 -0
  318. package/apps/app-lifeops/src/inbox/config.js +59 -0
  319. package/apps/app-lifeops/src/inbox/message-fetcher.d.ts +33 -0
  320. package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
  321. package/apps/app-lifeops/src/inbox/message-fetcher.js +252 -0
  322. package/apps/app-lifeops/src/inbox/reflection.d.ts +40 -0
  323. package/apps/app-lifeops/src/inbox/reflection.d.ts.map +1 -0
  324. package/apps/app-lifeops/src/inbox/reflection.js +115 -0
  325. package/apps/app-lifeops/src/inbox/repository.d.ts +52 -0
  326. package/apps/app-lifeops/src/inbox/repository.d.ts.map +1 -0
  327. package/apps/app-lifeops/src/inbox/repository.js +262 -0
  328. package/apps/app-lifeops/src/inbox/triage-classifier.d.ts +15 -0
  329. package/apps/app-lifeops/src/inbox/triage-classifier.d.ts.map +1 -0
  330. package/apps/app-lifeops/src/inbox/triage-classifier.js +176 -0
  331. package/apps/app-lifeops/src/inbox/types.d.ts +92 -0
  332. package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
  333. package/apps/app-lifeops/src/inbox/types.js +1 -0
  334. package/apps/app-lifeops/src/lifeops/app-state.d.ts +11 -0
  335. package/apps/app-lifeops/src/lifeops/app-state.d.ts.map +1 -0
  336. package/apps/app-lifeops/src/lifeops/app-state.js +35 -0
  337. package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts +58 -0
  338. package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts.map +1 -0
  339. package/apps/app-lifeops/src/lifeops/apple-reminders.js +325 -0
  340. package/apps/app-lifeops/src/lifeops/approval-queue.types.d.ts +162 -0
  341. package/apps/app-lifeops/src/lifeops/approval-queue.types.d.ts.map +1 -0
  342. package/apps/app-lifeops/src/lifeops/approval-queue.types.js +41 -0
  343. package/apps/app-lifeops/src/lifeops/autofill-whitelist.d.ts +24 -0
  344. package/apps/app-lifeops/src/lifeops/autofill-whitelist.d.ts.map +1 -0
  345. package/apps/app-lifeops/src/lifeops/autofill-whitelist.js +125 -0
  346. package/apps/app-lifeops/src/lifeops/background-planner-dispatch.d.ts +59 -0
  347. package/apps/app-lifeops/src/lifeops/background-planner-dispatch.d.ts.map +1 -0
  348. package/apps/app-lifeops/src/lifeops/background-planner-dispatch.js +129 -0
  349. package/apps/app-lifeops/src/lifeops/background-planner.d.ts +141 -0
  350. package/apps/app-lifeops/src/lifeops/background-planner.d.ts.map +1 -0
  351. package/apps/app-lifeops/src/lifeops/background-planner.js +308 -0
  352. package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts +61 -0
  353. package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts.map +1 -0
  354. package/apps/app-lifeops/src/lifeops/browser-extension-store.js +181 -0
  355. package/apps/app-lifeops/src/lifeops/calendly-client.d.ts +61 -0
  356. package/apps/app-lifeops/src/lifeops/calendly-client.d.ts.map +1 -0
  357. package/apps/app-lifeops/src/lifeops/calendly-client.js +220 -0
  358. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts +24 -0
  359. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts.map +1 -0
  360. package/apps/app-lifeops/src/lifeops/checkin/checkin-service.js +216 -0
  361. package/apps/app-lifeops/src/lifeops/checkin/schedule-resolver.d.ts +14 -0
  362. package/apps/app-lifeops/src/lifeops/checkin/schedule-resolver.d.ts.map +1 -0
  363. package/apps/app-lifeops/src/lifeops/checkin/schedule-resolver.js +33 -0
  364. package/apps/app-lifeops/src/lifeops/checkin/types.d.ts +42 -0
  365. package/apps/app-lifeops/src/lifeops/checkin/types.d.ts.map +1 -0
  366. package/apps/app-lifeops/src/lifeops/checkin/types.js +7 -0
  367. package/apps/app-lifeops/src/lifeops/defaults.d.ts +24 -0
  368. package/apps/app-lifeops/src/lifeops/defaults.d.ts.map +1 -0
  369. package/apps/app-lifeops/src/lifeops/defaults.js +212 -0
  370. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts +106 -0
  371. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts.map +1 -0
  372. package/apps/app-lifeops/src/lifeops/discord-browser-scraper.js +489 -0
  373. package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts +34 -0
  374. package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts.map +1 -0
  375. package/apps/app-lifeops/src/lifeops/enforcement-windows.js +110 -0
  376. package/apps/app-lifeops/src/lifeops/engine.d.ts +8 -0
  377. package/apps/app-lifeops/src/lifeops/engine.d.ts.map +1 -0
  378. package/apps/app-lifeops/src/lifeops/engine.js +389 -0
  379. package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts +54 -0
  380. package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts.map +1 -0
  381. package/apps/app-lifeops/src/lifeops/goal-grounding.js +147 -0
  382. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts +12 -0
  383. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -0
  384. package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.js +154 -0
  385. package/apps/app-lifeops/src/lifeops/google-api-error.d.ts +7 -0
  386. package/apps/app-lifeops/src/lifeops/google-api-error.d.ts.map +1 -0
  387. package/apps/app-lifeops/src/lifeops/google-api-error.js +35 -0
  388. package/apps/app-lifeops/src/lifeops/google-calendar.d.ts +53 -0
  389. package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -0
  390. package/apps/app-lifeops/src/lifeops/google-calendar.js +268 -0
  391. package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts +32 -0
  392. package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts.map +1 -0
  393. package/apps/app-lifeops/src/lifeops/google-connector-gateway.js +88 -0
  394. package/apps/app-lifeops/src/lifeops/google-drive.d.ts +103 -0
  395. package/apps/app-lifeops/src/lifeops/google-drive.d.ts.map +1 -0
  396. package/apps/app-lifeops/src/lifeops/google-drive.js +265 -0
  397. package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +16 -0
  398. package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -0
  399. package/apps/app-lifeops/src/lifeops/google-fetch.js +96 -0
  400. package/apps/app-lifeops/src/lifeops/google-gmail.d.ts +54 -0
  401. package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -0
  402. package/apps/app-lifeops/src/lifeops/google-gmail.js +456 -0
  403. package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts +138 -0
  404. package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts.map +1 -0
  405. package/apps/app-lifeops/src/lifeops/google-managed-client.js +314 -0
  406. package/apps/app-lifeops/src/lifeops/google-oauth.d.ts +65 -0
  407. package/apps/app-lifeops/src/lifeops/google-oauth.d.ts.map +1 -0
  408. package/apps/app-lifeops/src/lifeops/google-oauth.js +577 -0
  409. package/apps/app-lifeops/src/lifeops/google-scopes.d.ts +13 -0
  410. package/apps/app-lifeops/src/lifeops/google-scopes.d.ts.map +1 -0
  411. package/apps/app-lifeops/src/lifeops/google-scopes.js +96 -0
  412. package/apps/app-lifeops/src/lifeops/health-bridge.d.ts +57 -0
  413. package/apps/app-lifeops/src/lifeops/health-bridge.d.ts.map +1 -0
  414. package/apps/app-lifeops/src/lifeops/health-bridge.js +514 -0
  415. package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts +98 -0
  416. package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts.map +1 -0
  417. package/apps/app-lifeops/src/lifeops/imessage-bridge.js +537 -0
  418. package/apps/app-lifeops/src/lifeops/intent-sync.d.ts +56 -0
  419. package/apps/app-lifeops/src/lifeops/intent-sync.d.ts.map +1 -0
  420. package/apps/app-lifeops/src/lifeops/intent-sync.js +223 -0
  421. package/apps/app-lifeops/src/lifeops/notifications-push.d.ts +37 -0
  422. package/apps/app-lifeops/src/lifeops/notifications-push.d.ts.map +1 -0
  423. package/apps/app-lifeops/src/lifeops/notifications-push.js +90 -0
  424. package/apps/app-lifeops/src/lifeops/owner-profile.d.ts +43 -0
  425. package/apps/app-lifeops/src/lifeops/owner-profile.d.ts.map +1 -0
  426. package/apps/app-lifeops/src/lifeops/owner-profile.js +300 -0
  427. package/apps/app-lifeops/src/lifeops/password-manager-bridge.d.ts +49 -0
  428. package/apps/app-lifeops/src/lifeops/password-manager-bridge.d.ts.map +1 -0
  429. package/apps/app-lifeops/src/lifeops/password-manager-bridge.js +452 -0
  430. package/apps/app-lifeops/src/lifeops/remote-desktop.d.ts +37 -0
  431. package/apps/app-lifeops/src/lifeops/remote-desktop.d.ts.map +1 -0
  432. package/apps/app-lifeops/src/lifeops/remote-desktop.js +371 -0
  433. package/apps/app-lifeops/src/lifeops/repository.d.ts +290 -0
  434. package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -0
  435. package/apps/app-lifeops/src/lifeops/repository.js +3958 -0
  436. package/apps/app-lifeops/src/lifeops/runtime.d.ts +15 -0
  437. package/apps/app-lifeops/src/lifeops/runtime.d.ts.map +1 -0
  438. package/apps/app-lifeops/src/lifeops/runtime.js +230 -0
  439. package/apps/app-lifeops/src/lifeops/schema.d.ts +5022 -0
  440. package/apps/app-lifeops/src/lifeops/schema.d.ts.map +1 -0
  441. package/apps/app-lifeops/src/lifeops/schema.js +213 -0
  442. package/apps/app-lifeops/src/lifeops/screen-context.d.ts +52 -0
  443. package/apps/app-lifeops/src/lifeops/screen-context.d.ts.map +1 -0
  444. package/apps/app-lifeops/src/lifeops/screen-context.js +332 -0
  445. package/apps/app-lifeops/src/lifeops/seed-routines.d.ts +20 -0
  446. package/apps/app-lifeops/src/lifeops/seed-routines.d.ts.map +1 -0
  447. package/apps/app-lifeops/src/lifeops/seed-routines.js +111 -0
  448. package/apps/app-lifeops/src/lifeops/service-constants.d.ts +51 -0
  449. package/apps/app-lifeops/src/lifeops/service-constants.d.ts.map +1 -0
  450. package/apps/app-lifeops/src/lifeops/service-constants.js +111 -0
  451. package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts +40 -0
  452. package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts.map +1 -0
  453. package/apps/app-lifeops/src/lifeops/service-helpers-browser.js +288 -0
  454. package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts +68 -0
  455. package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts.map +1 -0
  456. package/apps/app-lifeops/src/lifeops/service-helpers-misc.js +493 -0
  457. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts +17 -0
  458. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts.map +1 -0
  459. package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.js +214 -0
  460. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts +24 -0
  461. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts.map +1 -0
  462. package/apps/app-lifeops/src/lifeops/service-helpers-reminder.js +170 -0
  463. package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts +2 -0
  464. package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts.map +1 -0
  465. package/apps/app-lifeops/src/lifeops/service-mixin-browser.js +769 -0
  466. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts +2 -0
  467. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts.map +1 -0
  468. package/apps/app-lifeops/src/lifeops/service-mixin-calendar.js +540 -0
  469. package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts +49 -0
  470. package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts.map +1 -0
  471. package/apps/app-lifeops/src/lifeops/service-mixin-core.js +433 -0
  472. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts +2 -0
  473. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts.map +1 -0
  474. package/apps/app-lifeops/src/lifeops/service-mixin-definitions.js +353 -0
  475. package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts +2 -0
  476. package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts.map +1 -0
  477. package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +783 -0
  478. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts +2 -0
  479. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts.map +1 -0
  480. package/apps/app-lifeops/src/lifeops/service-mixin-dossier.js +262 -0
  481. package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts +12 -0
  482. package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts.map +1 -0
  483. package/apps/app-lifeops/src/lifeops/service-mixin-drive.js +230 -0
  484. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts +2 -0
  485. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts.map +1 -0
  486. package/apps/app-lifeops/src/lifeops/service-mixin-gmail.js +1013 -0
  487. package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts +2 -0
  488. package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts.map +1 -0
  489. package/apps/app-lifeops/src/lifeops/service-mixin-goals.js +714 -0
  490. package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts +2 -0
  491. package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts.map +1 -0
  492. package/apps/app-lifeops/src/lifeops/service-mixin-google.js +793 -0
  493. package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts +2 -0
  494. package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts.map +1 -0
  495. package/apps/app-lifeops/src/lifeops/service-mixin-health.js +55 -0
  496. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts +3 -0
  497. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts.map +1 -0
  498. package/apps/app-lifeops/src/lifeops/service-mixin-imessage.js +106 -0
  499. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts +2 -0
  500. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts.map +1 -0
  501. package/apps/app-lifeops/src/lifeops/service-mixin-relationships.js +109 -0
  502. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts +37 -0
  503. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts.map +1 -0
  504. package/apps/app-lifeops/src/lifeops/service-mixin-reminders.js +2436 -0
  505. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts +2 -0
  506. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts.map +1 -0
  507. package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.js +149 -0
  508. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts +2 -0
  509. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts.map +1 -0
  510. package/apps/app-lifeops/src/lifeops/service-mixin-screentime.js +97 -0
  511. package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts +2 -0
  512. package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts.map +1 -0
  513. package/apps/app-lifeops/src/lifeops/service-mixin-signal.js +264 -0
  514. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts +2 -0
  515. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts.map +1 -0
  516. package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.js +763 -0
  517. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts +2 -0
  518. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts.map +1 -0
  519. package/apps/app-lifeops/src/lifeops/service-mixin-telegram.js +270 -0
  520. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts +2 -0
  521. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts.map +1 -0
  522. package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.js +56 -0
  523. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts +2 -0
  524. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts.map +1 -0
  525. package/apps/app-lifeops/src/lifeops/service-mixin-workflows.js +411 -0
  526. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts +2 -0
  527. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts.map +1 -0
  528. package/apps/app-lifeops/src/lifeops/service-mixin-x-read.js +190 -0
  529. package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts +2 -0
  530. package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts.map +1 -0
  531. package/apps/app-lifeops/src/lifeops/service-mixin-x.js +120 -0
  532. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts +42 -0
  533. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts.map +1 -0
  534. package/apps/app-lifeops/src/lifeops/service-normalize-calendar.js +294 -0
  535. package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts +18 -0
  536. package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts.map +1 -0
  537. package/apps/app-lifeops/src/lifeops/service-normalize-connector.js +317 -0
  538. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts +63 -0
  539. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts.map +1 -0
  540. package/apps/app-lifeops/src/lifeops/service-normalize-gmail.js +553 -0
  541. package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts +8 -0
  542. package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts.map +1 -0
  543. package/apps/app-lifeops/src/lifeops/service-normalize-task.js +333 -0
  544. package/apps/app-lifeops/src/lifeops/service-normalize.d.ts +27 -0
  545. package/apps/app-lifeops/src/lifeops/service-normalize.d.ts.map +1 -0
  546. package/apps/app-lifeops/src/lifeops/service-normalize.js +193 -0
  547. package/apps/app-lifeops/src/lifeops/service-types.d.ts +43 -0
  548. package/apps/app-lifeops/src/lifeops/service-types.d.ts.map +1 -0
  549. package/apps/app-lifeops/src/lifeops/service-types.js +8 -0
  550. package/apps/app-lifeops/src/lifeops/service.d.ts +1632 -0
  551. package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -0
  552. package/apps/app-lifeops/src/lifeops/service.js +43 -0
  553. package/apps/app-lifeops/src/lifeops/signal-auth.d.ts +26 -0
  554. package/apps/app-lifeops/src/lifeops/signal-auth.d.ts.map +1 -0
  555. package/apps/app-lifeops/src/lifeops/signal-auth.js +300 -0
  556. package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts +13 -0
  557. package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts.map +1 -0
  558. package/apps/app-lifeops/src/lifeops/signal-runtime-config.js +42 -0
  559. package/apps/app-lifeops/src/lifeops/sql.d.ts +26 -0
  560. package/apps/app-lifeops/src/lifeops/sql.d.ts.map +1 -0
  561. package/apps/app-lifeops/src/lifeops/sql.js +127 -0
  562. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts +54 -0
  563. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts.map +1 -0
  564. package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +213 -0
  565. package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts +80 -0
  566. package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts.map +1 -0
  567. package/apps/app-lifeops/src/lifeops/subscriptions-types.js +1 -0
  568. package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts +62 -0
  569. package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts.map +1 -0
  570. package/apps/app-lifeops/src/lifeops/telegram-auth.js +496 -0
  571. package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts +118 -0
  572. package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts.map +1 -0
  573. package/apps/app-lifeops/src/lifeops/telegram-local-client.js +376 -0
  574. package/apps/app-lifeops/src/lifeops/time.d.ts +17 -0
  575. package/apps/app-lifeops/src/lifeops/time.d.ts.map +1 -0
  576. package/apps/app-lifeops/src/lifeops/time.js +132 -0
  577. package/apps/app-lifeops/src/lifeops/twilio.d.ts +25 -0
  578. package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -0
  579. package/apps/app-lifeops/src/lifeops/twilio.js +160 -0
  580. package/apps/app-lifeops/src/lifeops/unified-search.d.ts +88 -0
  581. package/apps/app-lifeops/src/lifeops/unified-search.d.ts.map +1 -0
  582. package/apps/app-lifeops/src/lifeops/unified-search.js +431 -0
  583. package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts +47 -0
  584. package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -0
  585. package/apps/app-lifeops/src/lifeops/whatsapp-client.js +200 -0
  586. package/apps/app-lifeops/src/lifeops/x-poster.d.ts +41 -0
  587. package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -0
  588. package/apps/app-lifeops/src/lifeops/x-poster.js +218 -0
  589. package/apps/app-lifeops/src/lifeops/x-reader.d.ts +70 -0
  590. package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -0
  591. package/apps/app-lifeops/src/lifeops/x-reader.js +262 -0
  592. package/apps/app-lifeops/src/plugin.d.ts +33 -0
  593. package/apps/app-lifeops/src/plugin.d.ts.map +1 -0
  594. package/apps/app-lifeops/src/plugin.js +318 -0
  595. package/apps/app-lifeops/src/provider.d.ts +3 -0
  596. package/apps/app-lifeops/src/provider.d.ts.map +1 -0
  597. package/apps/app-lifeops/src/provider.js +76 -0
  598. package/apps/app-lifeops/src/providers/activity-profile.d.ts +3 -0
  599. package/apps/app-lifeops/src/providers/activity-profile.d.ts.map +1 -0
  600. package/apps/app-lifeops/src/providers/activity-profile.js +140 -0
  601. package/apps/app-lifeops/src/providers/app-blocker.d.ts +3 -0
  602. package/apps/app-lifeops/src/providers/app-blocker.d.ts.map +1 -0
  603. package/apps/app-lifeops/src/providers/app-blocker.js +86 -0
  604. package/apps/app-lifeops/src/providers/cross-channel-context.d.ts +29 -0
  605. package/apps/app-lifeops/src/providers/cross-channel-context.d.ts.map +1 -0
  606. package/apps/app-lifeops/src/providers/cross-channel-context.js +193 -0
  607. package/apps/app-lifeops/src/providers/inbox-triage.d.ts +3 -0
  608. package/apps/app-lifeops/src/providers/inbox-triage.d.ts.map +1 -0
  609. package/apps/app-lifeops/src/providers/inbox-triage.js +90 -0
  610. package/apps/app-lifeops/src/providers/lifeops.d.ts +3 -0
  611. package/apps/app-lifeops/src/providers/lifeops.d.ts.map +1 -0
  612. package/apps/app-lifeops/src/providers/lifeops.js +194 -0
  613. package/apps/app-lifeops/src/providers/website-blocker.d.ts +4 -0
  614. package/apps/app-lifeops/src/providers/website-blocker.d.ts.map +1 -0
  615. package/apps/app-lifeops/src/providers/website-blocker.js +117 -0
  616. package/apps/app-lifeops/src/public.d.ts +4 -0
  617. package/apps/app-lifeops/src/public.d.ts.map +1 -0
  618. package/apps/app-lifeops/src/public.js +3 -0
  619. package/apps/app-lifeops/src/remote/pairing-code.d.ts +39 -0
  620. package/apps/app-lifeops/src/remote/pairing-code.d.ts.map +1 -0
  621. package/apps/app-lifeops/src/remote/pairing-code.js +76 -0
  622. package/apps/app-lifeops/src/remote/remote-session-service.d.ts +107 -0
  623. package/apps/app-lifeops/src/remote/remote-session-service.d.ts.map +1 -0
  624. package/apps/app-lifeops/src/remote/remote-session-service.js +253 -0
  625. package/apps/app-lifeops/src/routes/lifeops-browser-packaging.d.ts +16 -0
  626. package/apps/app-lifeops/src/routes/lifeops-browser-packaging.d.ts.map +1 -0
  627. package/apps/app-lifeops/src/routes/lifeops-browser-packaging.js +311 -0
  628. package/apps/app-lifeops/src/routes/lifeops-routes.d.ts +20 -0
  629. package/apps/app-lifeops/src/routes/lifeops-routes.d.ts.map +1 -0
  630. package/apps/app-lifeops/src/routes/lifeops-routes.js +1409 -0
  631. package/apps/app-lifeops/src/routes/plugin.d.ts +18 -0
  632. package/apps/app-lifeops/src/routes/plugin.d.ts.map +1 -0
  633. package/apps/app-lifeops/src/routes/plugin.js +270 -0
  634. package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts +7 -0
  635. package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts.map +1 -0
  636. package/apps/app-lifeops/src/routes/website-blocker-routes.js +170 -0
  637. package/apps/app-lifeops/src/service.d.ts +8 -0
  638. package/apps/app-lifeops/src/service.d.ts.map +1 -0
  639. package/apps/app-lifeops/src/service.js +11 -0
  640. package/apps/app-lifeops/src/travel-time/action.d.ts +6 -0
  641. package/apps/app-lifeops/src/travel-time/action.d.ts.map +1 -0
  642. package/apps/app-lifeops/src/travel-time/action.js +81 -0
  643. package/apps/app-lifeops/src/travel-time/service.d.ts +61 -0
  644. package/apps/app-lifeops/src/travel-time/service.d.ts.map +1 -0
  645. package/apps/app-lifeops/src/travel-time/service.js +145 -0
  646. package/apps/app-lifeops/src/website-blocker/access.d.ts +8 -0
  647. package/apps/app-lifeops/src/website-blocker/access.d.ts.map +1 -0
  648. package/apps/app-lifeops/src/website-blocker/access.js +32 -0
  649. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/blockUntilTaskComplete.d.ts +3 -0
  650. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/blockUntilTaskComplete.d.ts.map +1 -0
  651. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/blockUntilTaskComplete.js +228 -0
  652. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/listActiveBlocks.d.ts +3 -0
  653. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/listActiveBlocks.d.ts.map +1 -0
  654. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/listActiveBlocks.js +57 -0
  655. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/releaseBlock.d.ts +3 -0
  656. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/releaseBlock.d.ts.map +1 -0
  657. package/apps/app-lifeops/src/website-blocker/chat-integration/actions/releaseBlock.js +98 -0
  658. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-reconciler.d.ts +7 -0
  659. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-reconciler.d.ts.map +1 -0
  660. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-reconciler.js +111 -0
  661. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-schema.d.ts +39 -0
  662. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-schema.d.ts.map +1 -0
  663. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-schema.js +123 -0
  664. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-service.d.ts +21 -0
  665. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-service.d.ts.map +1 -0
  666. package/apps/app-lifeops/src/website-blocker/chat-integration/block-rule-service.js +268 -0
  667. package/apps/app-lifeops/src/website-blocker/chat-integration/index.d.ts +8 -0
  668. package/apps/app-lifeops/src/website-blocker/chat-integration/index.d.ts.map +1 -0
  669. package/apps/app-lifeops/src/website-blocker/chat-integration/index.js +6 -0
  670. package/apps/app-lifeops/src/website-blocker/engine.d.ts +116 -0
  671. package/apps/app-lifeops/src/website-blocker/engine.d.ts.map +1 -0
  672. package/apps/app-lifeops/src/website-blocker/engine.js +934 -0
  673. package/apps/app-lifeops/src/website-blocker/permissions.d.ts +9 -0
  674. package/apps/app-lifeops/src/website-blocker/permissions.d.ts.map +1 -0
  675. package/apps/app-lifeops/src/website-blocker/permissions.js +1 -0
  676. package/apps/app-lifeops/src/website-blocker/public.d.ts +13 -0
  677. package/apps/app-lifeops/src/website-blocker/public.d.ts.map +1 -0
  678. package/apps/app-lifeops/src/website-blocker/public.js +10 -0
  679. package/apps/app-lifeops/src/website-blocker/roles.d.ts +13 -0
  680. package/apps/app-lifeops/src/website-blocker/roles.d.ts.map +1 -0
  681. package/apps/app-lifeops/src/website-blocker/roles.js +20 -0
  682. package/apps/app-lifeops/src/website-blocker/service.d.ts +21 -0
  683. package/apps/app-lifeops/src/website-blocker/service.d.ts.map +1 -0
  684. package/apps/app-lifeops/src/website-blocker/service.js +268 -0
  685. package/apps/app-steward/src/ApprovalQueue.d.ts +18 -0
  686. package/apps/app-steward/src/ApprovalQueue.d.ts.map +1 -0
  687. package/apps/app-steward/src/ApprovalQueue.js +139 -0
  688. package/apps/app-steward/src/StewardLogo.d.ts +11 -0
  689. package/apps/app-steward/src/StewardLogo.d.ts.map +1 -0
  690. package/apps/app-steward/src/StewardLogo.js +4 -0
  691. package/apps/app-steward/src/TransactionHistory.d.ts +22 -0
  692. package/apps/app-steward/src/TransactionHistory.d.ts.map +1 -0
  693. package/apps/app-steward/src/TransactionHistory.js +100 -0
  694. package/apps/app-steward/src/api/tx-service.d.ts +47 -0
  695. package/apps/app-steward/src/api/tx-service.d.ts.map +1 -0
  696. package/apps/app-steward/src/api/tx-service.js +156 -0
  697. package/apps/app-steward/src/api/wallet-capability.d.ts +28 -0
  698. package/apps/app-steward/src/api/wallet-capability.d.ts.map +1 -0
  699. package/apps/app-steward/src/api/wallet-capability.js +94 -0
  700. package/apps/app-steward/src/api/wallet-dex-prices.d.ts +43 -0
  701. package/apps/app-steward/src/api/wallet-dex-prices.d.ts.map +1 -0
  702. package/apps/app-steward/src/api/wallet-dex-prices.js +149 -0
  703. package/apps/app-steward/src/api/wallet-evm-balance.d.ts +66 -0
  704. package/apps/app-steward/src/api/wallet-evm-balance.d.ts.map +1 -0
  705. package/apps/app-steward/src/api/wallet-evm-balance.js +666 -0
  706. package/apps/app-steward/src/api/wallet-routes.d.ts +27 -0
  707. package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -0
  708. package/apps/app-steward/src/api/wallet-routes.js +470 -0
  709. package/apps/app-steward/src/api/wallet-rpc.d.ts +67 -0
  710. package/apps/app-steward/src/api/wallet-rpc.d.ts.map +1 -0
  711. package/apps/app-steward/src/api/wallet-rpc.js +453 -0
  712. package/apps/app-steward/src/api/wallet.d.ts +60 -0
  713. package/apps/app-steward/src/api/wallet.d.ts.map +1 -0
  714. package/apps/app-steward/src/api/wallet.js +639 -0
  715. package/apps/app-steward/src/browser-workspace-wallet.d.ts +66 -0
  716. package/apps/app-steward/src/browser-workspace-wallet.d.ts.map +1 -0
  717. package/apps/app-steward/src/browser-workspace-wallet.js +129 -0
  718. package/apps/app-steward/src/chain-utils.d.ts +10 -0
  719. package/apps/app-steward/src/chain-utils.d.ts.map +1 -0
  720. package/apps/app-steward/src/chain-utils.js +83 -0
  721. package/apps/app-steward/src/routes/server-wallet-trade.d.ts +27 -0
  722. package/apps/app-steward/src/routes/server-wallet-trade.d.ts.map +1 -0
  723. package/apps/app-steward/src/routes/server-wallet-trade.js +69 -0
  724. package/apps/app-steward/src/routes/wallet-core-routes.d.ts +16 -0
  725. package/apps/app-steward/src/routes/wallet-core-routes.d.ts.map +1 -0
  726. package/apps/app-steward/src/routes/wallet-core-routes.js +46 -0
  727. package/apps/app-steward/src/routes/wallet-export-guard.d.ts +44 -0
  728. package/apps/app-steward/src/routes/wallet-export-guard.d.ts.map +1 -0
  729. package/apps/app-steward/src/routes/wallet-export-guard.js +248 -0
  730. package/apps/app-steward/src/services/steward-evm-account.d.ts +58 -0
  731. package/apps/app-steward/src/services/steward-evm-account.d.ts.map +1 -0
  732. package/apps/app-steward/src/services/steward-evm-account.js +302 -0
  733. package/apps/app-steward/src/services/steward-evm-bridge.d.ts +35 -0
  734. package/apps/app-steward/src/services/steward-evm-bridge.d.ts.map +1 -0
  735. package/apps/app-steward/src/services/steward-evm-bridge.js +99 -0
  736. package/apps/app-steward/src/services/steward-sidecar/health-check.d.ts +9 -0
  737. package/apps/app-steward/src/services/steward-sidecar/health-check.d.ts.map +1 -0
  738. package/apps/app-steward/src/services/steward-sidecar/health-check.js +34 -0
  739. package/apps/app-steward/src/services/steward-sidecar/helpers.d.ts +12 -0
  740. package/apps/app-steward/src/services/steward-sidecar/helpers.d.ts.map +1 -0
  741. package/apps/app-steward/src/services/steward-sidecar/helpers.js +59 -0
  742. package/apps/app-steward/src/services/steward-sidecar/process-management.d.ts +19 -0
  743. package/apps/app-steward/src/services/steward-sidecar/process-management.d.ts.map +1 -0
  744. package/apps/app-steward/src/services/steward-sidecar/process-management.js +144 -0
  745. package/apps/app-steward/src/services/steward-sidecar/types.d.ts +60 -0
  746. package/apps/app-steward/src/services/steward-sidecar/types.d.ts.map +1 -0
  747. package/apps/app-steward/src/services/steward-sidecar/types.js +17 -0
  748. package/apps/app-steward/src/services/steward-sidecar/wallet-setup.d.ts +9 -0
  749. package/apps/app-steward/src/services/steward-sidecar/wallet-setup.d.ts.map +1 -0
  750. package/apps/app-steward/src/services/steward-sidecar/wallet-setup.js +118 -0
  751. package/apps/app-steward/src/services/steward-sidecar.d.ts +69 -0
  752. package/apps/app-steward/src/services/steward-sidecar.d.ts.map +1 -0
  753. package/apps/app-steward/src/services/steward-sidecar.js +381 -0
  754. package/apps/app-steward/src/types/bsc-trade.d.ts +181 -0
  755. package/apps/app-steward/src/types/bsc-trade.d.ts.map +1 -0
  756. package/apps/app-steward/src/types/bsc-trade.js +8 -0
  757. package/apps/app-steward/src/types/index.d.ts +3 -0
  758. package/apps/app-steward/src/types/index.d.ts.map +1 -0
  759. package/apps/app-steward/src/types/index.js +2 -0
  760. package/apps/app-steward/src/types/steward.d.ts +85 -0
  761. package/apps/app-steward/src/types/steward.d.ts.map +1 -0
  762. package/apps/app-steward/src/types/steward.js +9 -0
  763. package/apps/app-task-coordinator/src/AgentTabsSection.d.ts +18 -0
  764. package/apps/app-task-coordinator/src/AgentTabsSection.d.ts.map +1 -0
  765. package/apps/app-task-coordinator/src/AgentTabsSection.js +52 -0
  766. package/apps/app-task-coordinator/src/CodingAgentControlChip.d.ts +6 -0
  767. package/apps/app-task-coordinator/src/CodingAgentControlChip.d.ts.map +1 -0
  768. package/apps/app-task-coordinator/src/CodingAgentControlChip.js +26 -0
  769. package/apps/app-task-coordinator/src/CodingAgentSettingsSection.d.ts +2 -0
  770. package/apps/app-task-coordinator/src/CodingAgentSettingsSection.d.ts.map +1 -0
  771. package/apps/app-task-coordinator/src/CodingAgentSettingsSection.js +343 -0
  772. package/apps/app-task-coordinator/src/CodingAgentTasksPanel.d.ts +4 -0
  773. package/apps/app-task-coordinator/src/CodingAgentTasksPanel.d.ts.map +1 -0
  774. package/apps/app-task-coordinator/src/CodingAgentTasksPanel.js +294 -0
  775. package/apps/app-task-coordinator/src/GlobalPrefsSection.d.ts +10 -0
  776. package/apps/app-task-coordinator/src/GlobalPrefsSection.d.ts.map +1 -0
  777. package/apps/app-task-coordinator/src/GlobalPrefsSection.js +47 -0
  778. package/apps/app-task-coordinator/src/LlmProviderSection.d.ts +10 -0
  779. package/apps/app-task-coordinator/src/LlmProviderSection.d.ts.map +1 -0
  780. package/apps/app-task-coordinator/src/LlmProviderSection.js +42 -0
  781. package/apps/app-task-coordinator/src/ModelConfigSection.d.ts +16 -0
  782. package/apps/app-task-coordinator/src/ModelConfigSection.d.ts.map +1 -0
  783. package/apps/app-task-coordinator/src/ModelConfigSection.js +10 -0
  784. package/apps/app-task-coordinator/src/PtyConsoleBase.d.ts +15 -0
  785. package/apps/app-task-coordinator/src/PtyConsoleBase.d.ts.map +1 -0
  786. package/apps/app-task-coordinator/src/PtyConsoleBase.js +37 -0
  787. package/apps/app-task-coordinator/src/PtyConsoleDrawer.d.ts +16 -0
  788. package/apps/app-task-coordinator/src/PtyConsoleDrawer.d.ts.map +1 -0
  789. package/apps/app-task-coordinator/src/PtyConsoleDrawer.js +18 -0
  790. package/apps/app-task-coordinator/src/PtyConsoleSidePanel.d.ts +9 -0
  791. package/apps/app-task-coordinator/src/PtyConsoleSidePanel.d.ts.map +1 -0
  792. package/apps/app-task-coordinator/src/PtyConsoleSidePanel.js +6 -0
  793. package/apps/app-task-coordinator/src/PtyTerminalPane.d.ts +10 -0
  794. package/apps/app-task-coordinator/src/PtyTerminalPane.d.ts.map +1 -0
  795. package/apps/app-task-coordinator/src/PtyTerminalPane.js +174 -0
  796. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts +23 -0
  797. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts.map +1 -0
  798. package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.js +39 -0
  799. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts +29 -0
  800. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts.map +1 -0
  801. package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.js +45 -0
  802. package/apps/app-task-coordinator/src/api/coordinator-types.d.ts +47 -0
  803. package/apps/app-task-coordinator/src/api/coordinator-types.d.ts.map +1 -0
  804. package/apps/app-task-coordinator/src/api/coordinator-types.js +1 -0
  805. package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts +46 -0
  806. package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts.map +1 -0
  807. package/apps/app-task-coordinator/src/api/coordinator-wiring.js +108 -0
  808. package/apps/app-task-coordinator/src/api/task-agent-message-routing.d.ts +10 -0
  809. package/apps/app-task-coordinator/src/api/task-agent-message-routing.d.ts.map +1 -0
  810. package/apps/app-task-coordinator/src/api/task-agent-message-routing.js +62 -0
  811. package/apps/app-task-coordinator/src/coding-agent-settings-shared.d.ts +38 -0
  812. package/apps/app-task-coordinator/src/coding-agent-settings-shared.d.ts.map +1 -0
  813. package/apps/app-task-coordinator/src/coding-agent-settings-shared.js +92 -0
  814. package/apps/app-task-coordinator/src/index.d.ts +15 -0
  815. package/apps/app-task-coordinator/src/index.d.ts.map +1 -0
  816. package/apps/app-task-coordinator/src/index.js +14 -0
  817. package/apps/app-task-coordinator/src/pty-status-dots.d.ts +2 -0
  818. package/apps/app-task-coordinator/src/pty-status-dots.d.ts.map +1 -0
  819. package/apps/app-task-coordinator/src/pty-status-dots.js +1 -0
  820. package/apps/app-task-coordinator/src/session-hydration.d.ts +2 -0
  821. package/apps/app-task-coordinator/src/session-hydration.d.ts.map +1 -0
  822. package/apps/app-task-coordinator/src/session-hydration.js +1 -0
  823. package/apps/app-training/src/services/training-service-like.d.ts +39 -0
  824. package/apps/app-training/src/services/training-service-like.d.ts.map +1 -0
  825. package/apps/app-training/src/services/training-service-like.js +1 -0
  826. package/apps/app-training/src/ui/FineTuningView.d.ts +5 -0
  827. package/apps/app-training/src/ui/FineTuningView.d.ts.map +1 -0
  828. package/apps/app-training/src/ui/FineTuningView.js +388 -0
  829. package/apps/app-training/src/ui/fine-tuning-panels.d.ts +111 -0
  830. package/apps/app-training/src/ui/fine-tuning-panels.d.ts.map +1 -0
  831. package/apps/app-training/src/ui/fine-tuning-panels.js +130 -0
  832. package/apps/app-vincent/src/client.d.ts +29 -0
  833. package/apps/app-vincent/src/client.d.ts.map +1 -0
  834. package/apps/app-vincent/src/client.js +30 -0
  835. package/apps/app-vincent/src/useVincentState.d.ts +26 -0
  836. package/apps/app-vincent/src/useVincentState.d.ts.map +1 -0
  837. package/apps/app-vincent/src/useVincentState.js +124 -0
  838. package/package.json +78 -51
  839. package/packages/agent/src/actions/app-control.d.ts +17 -0
  840. package/packages/agent/src/actions/app-control.d.ts.map +1 -0
  841. package/packages/agent/src/actions/app-control.js +212 -0
  842. package/packages/agent/src/actions/browser-session.d.ts +3 -0
  843. package/packages/agent/src/actions/browser-session.d.ts.map +1 -0
  844. package/packages/agent/src/actions/browser-session.js +207 -0
  845. package/packages/agent/src/actions/connector-resolver.d.ts +75 -0
  846. package/packages/agent/src/actions/connector-resolver.d.ts.map +1 -0
  847. package/packages/agent/src/actions/connector-resolver.js +255 -0
  848. package/packages/agent/src/actions/context-signal-lexicon.d.ts +17 -0
  849. package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -0
  850. package/packages/agent/src/actions/context-signal-lexicon.js +213 -0
  851. package/packages/agent/src/actions/context-signal.d.ts +46 -0
  852. package/packages/agent/src/actions/context-signal.d.ts.map +1 -0
  853. package/packages/agent/src/actions/context-signal.js +134 -0
  854. package/packages/agent/src/actions/entity-actions.d.ts +5 -0
  855. package/packages/agent/src/actions/entity-actions.d.ts.map +1 -0
  856. package/packages/agent/src/actions/entity-actions.js +576 -0
  857. package/packages/agent/src/actions/extract-page.d.ts +3 -0
  858. package/packages/agent/src/actions/extract-page.d.ts.map +1 -0
  859. package/packages/agent/src/actions/extract-page.js +124 -0
  860. package/packages/agent/src/actions/grounded-action-reply.d.ts +22 -0
  861. package/packages/agent/src/actions/grounded-action-reply.d.ts.map +1 -0
  862. package/packages/agent/src/actions/grounded-action-reply.js +309 -0
  863. package/packages/agent/src/actions/manage-tasks.d.ts +8 -0
  864. package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -0
  865. package/packages/agent/src/actions/manage-tasks.js +289 -0
  866. package/packages/agent/src/actions/read-channel.d.ts +3 -0
  867. package/packages/agent/src/actions/read-channel.d.ts.map +1 -0
  868. package/packages/agent/src/actions/read-channel.js +224 -0
  869. package/packages/agent/src/actions/recent-conversation-texts.d.ts +9 -0
  870. package/packages/agent/src/actions/recent-conversation-texts.d.ts.map +1 -0
  871. package/packages/agent/src/actions/recent-conversation-texts.js +81 -0
  872. package/packages/agent/src/actions/restart.d.ts +19 -0
  873. package/packages/agent/src/actions/restart.d.ts.map +1 -0
  874. package/packages/agent/src/actions/restart.js +109 -0
  875. package/packages/agent/src/actions/search-conversations.d.ts +3 -0
  876. package/packages/agent/src/actions/search-conversations.d.ts.map +1 -0
  877. package/packages/agent/src/actions/search-conversations.js +181 -0
  878. package/packages/agent/src/actions/send-admin-message.d.ts +3 -0
  879. package/packages/agent/src/actions/send-admin-message.d.ts.map +1 -0
  880. package/packages/agent/src/actions/send-admin-message.js +106 -0
  881. package/packages/agent/src/actions/send-message.d.ts +4 -0
  882. package/packages/agent/src/actions/send-message.d.ts.map +1 -0
  883. package/packages/agent/src/actions/send-message.js +364 -0
  884. package/packages/agent/src/actions/set-user-name.d.ts +13 -0
  885. package/packages/agent/src/actions/set-user-name.d.ts.map +1 -0
  886. package/packages/agent/src/actions/set-user-name.js +82 -0
  887. package/packages/agent/src/actions/skill-command.d.ts +20 -0
  888. package/packages/agent/src/actions/skill-command.d.ts.map +1 -0
  889. package/packages/agent/src/actions/skill-command.js +141 -0
  890. package/packages/agent/src/actions/terminal.d.ts +15 -0
  891. package/packages/agent/src/actions/terminal.d.ts.map +1 -0
  892. package/packages/agent/src/actions/terminal.js +453 -0
  893. package/packages/agent/src/actions/web-search.d.ts +10 -0
  894. package/packages/agent/src/actions/web-search.d.ts.map +1 -0
  895. package/packages/agent/src/actions/web-search.js +266 -0
  896. package/packages/agent/src/api/agent-admin-routes.d.ts +39 -0
  897. package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -0
  898. package/packages/agent/src/api/agent-admin-routes.js +155 -0
  899. package/packages/agent/src/api/agent-lifecycle-routes.d.ts +16 -0
  900. package/packages/agent/src/api/agent-lifecycle-routes.d.ts.map +1 -0
  901. package/packages/agent/src/api/agent-lifecycle-routes.js +94 -0
  902. package/packages/agent/src/api/agent-model.d.ts +5 -0
  903. package/packages/agent/src/api/agent-model.d.ts.map +1 -0
  904. package/packages/agent/src/api/agent-model.js +154 -0
  905. package/packages/agent/src/api/agent-status-routes.d.ts +96 -0
  906. package/packages/agent/src/api/agent-status-routes.d.ts.map +1 -0
  907. package/packages/agent/src/api/agent-status-routes.js +274 -0
  908. package/packages/agent/src/api/agent-transfer-routes.d.ts +16 -0
  909. package/packages/agent/src/api/agent-transfer-routes.d.ts.map +1 -0
  910. package/packages/agent/src/api/agent-transfer-routes.js +124 -0
  911. package/packages/agent/src/api/app-package-routes.d.ts +7 -0
  912. package/packages/agent/src/api/app-package-routes.d.ts.map +1 -0
  913. package/packages/agent/src/api/app-package-routes.js +59 -0
  914. package/packages/agent/src/api/apps-routes.d.ts +25 -0
  915. package/packages/agent/src/api/apps-routes.d.ts.map +1 -0
  916. package/packages/agent/src/api/apps-routes.js +627 -0
  917. package/packages/agent/src/api/auth-routes.d.ts +11 -0
  918. package/packages/agent/src/api/auth-routes.d.ts.map +1 -0
  919. package/packages/agent/src/api/auth-routes.js +74 -0
  920. package/packages/agent/src/api/avatar-routes.d.ts +11 -0
  921. package/packages/agent/src/api/avatar-routes.d.ts.map +1 -0
  922. package/packages/agent/src/api/avatar-routes.js +205 -0
  923. package/packages/agent/src/api/binance-skill-helpers.d.ts +26 -0
  924. package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -0
  925. package/packages/agent/src/api/binance-skill-helpers.js +782 -0
  926. package/packages/agent/src/api/bluebubbles-routes.d.ts +10 -0
  927. package/packages/agent/src/api/bluebubbles-routes.d.ts.map +1 -0
  928. package/packages/agent/src/api/bluebubbles-routes.js +129 -0
  929. package/packages/agent/src/api/browser-workspace-routes.d.ts +5 -0
  930. package/packages/agent/src/api/browser-workspace-routes.d.ts.map +1 -0
  931. package/packages/agent/src/api/browser-workspace-routes.js +100 -0
  932. package/packages/agent/src/api/bug-report-routes.d.ts +10 -0
  933. package/packages/agent/src/api/bug-report-routes.d.ts.map +1 -0
  934. package/packages/agent/src/api/bug-report-routes.js +264 -0
  935. package/packages/agent/src/api/character-routes.d.ts +52 -0
  936. package/packages/agent/src/api/character-routes.d.ts.map +1 -0
  937. package/packages/agent/src/api/character-routes.js +367 -0
  938. package/packages/agent/src/api/chat-augmentation.d.ts +70 -0
  939. package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -0
  940. package/packages/agent/src/api/chat-augmentation.js +451 -0
  941. package/packages/agent/src/api/chat-routes.d.ts +106 -0
  942. package/packages/agent/src/api/chat-routes.d.ts.map +1 -0
  943. package/packages/agent/src/api/chat-routes.js +1415 -0
  944. package/packages/agent/src/api/chat-text-helpers.d.ts +11 -0
  945. package/packages/agent/src/api/chat-text-helpers.d.ts.map +1 -0
  946. package/packages/agent/src/api/chat-text-helpers.js +183 -0
  947. package/packages/agent/src/api/cloud-billing-routes.d.ts +9 -0
  948. package/packages/agent/src/api/cloud-billing-routes.d.ts.map +1 -0
  949. package/packages/agent/src/api/cloud-billing-routes.js +388 -0
  950. package/packages/agent/src/api/cloud-compat-routes.d.ts +10 -0
  951. package/packages/agent/src/api/cloud-compat-routes.d.ts.map +1 -0
  952. package/packages/agent/src/api/cloud-compat-routes.js +212 -0
  953. package/packages/agent/src/api/cloud-provisioning.d.ts +14 -0
  954. package/packages/agent/src/api/cloud-provisioning.d.ts.map +1 -0
  955. package/packages/agent/src/api/cloud-provisioning.js +30 -0
  956. package/packages/agent/src/api/cloud-relay-routes.d.ts +22 -0
  957. package/packages/agent/src/api/cloud-relay-routes.d.ts.map +1 -0
  958. package/packages/agent/src/api/cloud-relay-routes.js +52 -0
  959. package/packages/agent/src/api/cloud-routes.d.ts +80 -0
  960. package/packages/agent/src/api/cloud-routes.d.ts.map +1 -0
  961. package/packages/agent/src/api/cloud-routes.js +582 -0
  962. package/packages/agent/src/api/cloud-status-routes.d.ts +15 -0
  963. package/packages/agent/src/api/cloud-status-routes.d.ts.map +1 -0
  964. package/packages/agent/src/api/cloud-status-routes.js +143 -0
  965. package/packages/agent/src/api/compat-utils.d.ts +49 -0
  966. package/packages/agent/src/api/compat-utils.d.ts.map +1 -0
  967. package/packages/agent/src/api/compat-utils.js +126 -0
  968. package/packages/agent/src/api/config-env.d.ts +43 -0
  969. package/packages/agent/src/api/config-env.d.ts.map +1 -0
  970. package/packages/agent/src/api/config-env.js +284 -0
  971. package/packages/agent/src/api/config-routes.d.ts +33 -0
  972. package/packages/agent/src/api/config-routes.d.ts.map +1 -0
  973. package/packages/agent/src/api/config-routes.js +253 -0
  974. package/packages/agent/src/api/connector-health.d.ts +42 -0
  975. package/packages/agent/src/api/connector-health.d.ts.map +1 -0
  976. package/packages/agent/src/api/connector-health.js +132 -0
  977. package/packages/agent/src/api/connector-routes.d.ts +21 -0
  978. package/packages/agent/src/api/connector-routes.d.ts.map +1 -0
  979. package/packages/agent/src/api/connector-routes.js +79 -0
  980. package/packages/agent/src/api/conversation-metadata.d.ts +9 -0
  981. package/packages/agent/src/api/conversation-metadata.d.ts.map +1 -0
  982. package/packages/agent/src/api/conversation-metadata.js +98 -0
  983. package/packages/agent/src/api/conversation-routes.d.ts +42 -0
  984. package/packages/agent/src/api/conversation-routes.d.ts.map +1 -0
  985. package/packages/agent/src/api/conversation-routes.js +1159 -0
  986. package/packages/agent/src/api/credit-detection.d.ts +9 -0
  987. package/packages/agent/src/api/credit-detection.d.ts.map +1 -0
  988. package/packages/agent/src/api/credit-detection.js +41 -0
  989. package/packages/agent/src/api/curated-skills-routes.d.ts +22 -0
  990. package/packages/agent/src/api/curated-skills-routes.d.ts.map +1 -0
  991. package/packages/agent/src/api/curated-skills-routes.js +295 -0
  992. package/packages/agent/src/api/database.d.ts +33 -0
  993. package/packages/agent/src/api/database.d.ts.map +1 -0
  994. package/packages/agent/src/api/database.js +1027 -0
  995. package/packages/agent/src/api/diagnostics-routes.d.ts +53 -0
  996. package/packages/agent/src/api/diagnostics-routes.d.ts.map +1 -0
  997. package/packages/agent/src/api/diagnostics-routes.js +250 -0
  998. package/packages/agent/src/api/discord-avatar-cache.d.ts +10 -0
  999. package/packages/agent/src/api/discord-avatar-cache.d.ts.map +1 -0
  1000. package/packages/agent/src/api/discord-avatar-cache.js +149 -0
  1001. package/packages/agent/src/api/discord-profiles.d.ts +26 -0
  1002. package/packages/agent/src/api/discord-profiles.d.ts.map +1 -0
  1003. package/packages/agent/src/api/discord-profiles.js +279 -0
  1004. package/packages/agent/src/api/early-logs.d.ts +29 -0
  1005. package/packages/agent/src/api/early-logs.d.ts.map +1 -0
  1006. package/packages/agent/src/api/early-logs.js +96 -0
  1007. package/packages/agent/src/api/health-routes.d.ts +44 -0
  1008. package/packages/agent/src/api/health-routes.d.ts.map +1 -0
  1009. package/packages/agent/src/api/health-routes.js +449 -0
  1010. package/packages/agent/src/api/http-helpers.d.ts +50 -0
  1011. package/packages/agent/src/api/http-helpers.d.ts.map +1 -0
  1012. package/packages/agent/src/api/http-helpers.js +148 -0
  1013. package/packages/agent/src/api/inbox-routes.d.ts +48 -0
  1014. package/packages/agent/src/api/inbox-routes.d.ts.map +1 -0
  1015. package/packages/agent/src/api/inbox-routes.js +1547 -0
  1016. package/packages/agent/src/api/knowledge-service-loader.d.ts +2 -0
  1017. package/packages/agent/src/api/knowledge-service-loader.d.ts.map +1 -0
  1018. package/packages/agent/src/api/knowledge-service-loader.js +2 -0
  1019. package/packages/agent/src/api/mcp-routes.d.ts +33 -0
  1020. package/packages/agent/src/api/mcp-routes.d.ts.map +1 -0
  1021. package/packages/agent/src/api/mcp-routes.js +186 -0
  1022. package/packages/agent/src/api/memory-bounds.d.ts +51 -0
  1023. package/packages/agent/src/api/memory-bounds.d.ts.map +1 -0
  1024. package/packages/agent/src/api/memory-bounds.js +81 -0
  1025. package/packages/agent/src/api/memory-routes.d.ts +9 -0
  1026. package/packages/agent/src/api/memory-routes.d.ts.map +1 -0
  1027. package/packages/agent/src/api/memory-routes.js +420 -0
  1028. package/packages/agent/src/api/misc-routes.d.ts +64 -0
  1029. package/packages/agent/src/api/misc-routes.d.ts.map +1 -0
  1030. package/packages/agent/src/api/misc-routes.js +594 -0
  1031. package/packages/agent/src/api/model-provider-helpers.d.ts +84 -0
  1032. package/packages/agent/src/api/model-provider-helpers.d.ts.map +1 -0
  1033. package/packages/agent/src/api/model-provider-helpers.js +588 -0
  1034. package/packages/agent/src/api/models-routes.d.ts +14 -0
  1035. package/packages/agent/src/api/models-routes.d.ts.map +1 -0
  1036. package/packages/agent/src/api/models-routes.js +37 -0
  1037. package/packages/agent/src/api/music-player-route-fallback.d.ts +16 -0
  1038. package/packages/agent/src/api/music-player-route-fallback.d.ts.map +1 -0
  1039. package/packages/agent/src/api/music-player-route-fallback.js +65 -0
  1040. package/packages/agent/src/api/onboarding-routes.d.ts +50 -0
  1041. package/packages/agent/src/api/onboarding-routes.d.ts.map +1 -0
  1042. package/packages/agent/src/api/onboarding-routes.js +594 -0
  1043. package/packages/agent/src/api/owner-contact-helpers.d.ts +39 -0
  1044. package/packages/agent/src/api/owner-contact-helpers.d.ts.map +1 -0
  1045. package/packages/agent/src/api/owner-contact-helpers.js +47 -0
  1046. package/packages/agent/src/api/parse-action-block.d.ts +35 -0
  1047. package/packages/agent/src/api/parse-action-block.d.ts.map +1 -0
  1048. package/packages/agent/src/api/parse-action-block.js +110 -0
  1049. package/packages/agent/src/api/permissions-routes-extra.d.ts +30 -0
  1050. package/packages/agent/src/api/permissions-routes-extra.d.ts.map +1 -0
  1051. package/packages/agent/src/api/permissions-routes-extra.js +78 -0
  1052. package/packages/agent/src/api/permissions-routes.d.ts +28 -0
  1053. package/packages/agent/src/api/permissions-routes.d.ts.map +1 -0
  1054. package/packages/agent/src/api/permissions-routes.js +180 -0
  1055. package/packages/agent/src/api/plugin-discovery-helpers.d.ts +147 -0
  1056. package/packages/agent/src/api/plugin-discovery-helpers.d.ts.map +1 -0
  1057. package/packages/agent/src/api/plugin-discovery-helpers.js +1015 -0
  1058. package/packages/agent/src/api/plugin-routes.d.ts +127 -0
  1059. package/packages/agent/src/api/plugin-routes.d.ts.map +1 -0
  1060. package/packages/agent/src/api/plugin-routes.js +1211 -0
  1061. package/packages/agent/src/api/plugin-runtime-apply.d.ts +31 -0
  1062. package/packages/agent/src/api/plugin-runtime-apply.d.ts.map +1 -0
  1063. package/packages/agent/src/api/plugin-runtime-apply.js +217 -0
  1064. package/packages/agent/src/api/plugin-validation.d.ts +86 -0
  1065. package/packages/agent/src/api/plugin-validation.d.ts.map +1 -0
  1066. package/packages/agent/src/api/plugin-validation.js +259 -0
  1067. package/packages/agent/src/api/provider-switch-config.d.ts +60 -0
  1068. package/packages/agent/src/api/provider-switch-config.d.ts.map +1 -0
  1069. package/packages/agent/src/api/provider-switch-config.js +724 -0
  1070. package/packages/agent/src/api/provider-switch-routes.d.ts +22 -0
  1071. package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -0
  1072. package/packages/agent/src/api/provider-switch-routes.js +92 -0
  1073. package/packages/agent/src/api/rate-limiter.d.ts +29 -0
  1074. package/packages/agent/src/api/rate-limiter.d.ts.map +1 -0
  1075. package/packages/agent/src/api/rate-limiter.js +54 -0
  1076. package/packages/agent/src/api/registry-routes.d.ts +29 -0
  1077. package/packages/agent/src/api/registry-routes.d.ts.map +1 -0
  1078. package/packages/agent/src/api/registry-routes.js +98 -0
  1079. package/packages/agent/src/api/registry-service.d.ts +77 -0
  1080. package/packages/agent/src/api/registry-service.d.ts.map +1 -0
  1081. package/packages/agent/src/api/registry-service.js +190 -0
  1082. package/packages/agent/src/api/relationships-routes.d.ts +7 -0
  1083. package/packages/agent/src/api/relationships-routes.d.ts.map +1 -0
  1084. package/packages/agent/src/api/relationships-routes.js +248 -0
  1085. package/packages/agent/src/api/route-helpers.d.ts +16 -0
  1086. package/packages/agent/src/api/route-helpers.d.ts.map +1 -0
  1087. package/packages/agent/src/api/route-helpers.js +1 -0
  1088. package/packages/agent/src/api/runtime-plugin-routes.d.ts +21 -0
  1089. package/packages/agent/src/api/runtime-plugin-routes.d.ts.map +1 -0
  1090. package/packages/agent/src/api/runtime-plugin-routes.js +132 -0
  1091. package/packages/agent/src/api/sandbox-routes.d.ts +12 -0
  1092. package/packages/agent/src/api/sandbox-routes.d.ts.map +1 -0
  1093. package/packages/agent/src/api/sandbox-routes.js +1334 -0
  1094. package/packages/agent/src/api/server-auth.d.ts +45 -0
  1095. package/packages/agent/src/api/server-auth.d.ts.map +1 -0
  1096. package/packages/agent/src/api/server-auth.js +332 -0
  1097. package/packages/agent/src/api/server-helpers-auth.d.ts +39 -0
  1098. package/packages/agent/src/api/server-helpers-auth.d.ts.map +1 -0
  1099. package/packages/agent/src/api/server-helpers-auth.js +432 -0
  1100. package/packages/agent/src/api/server-helpers-config.d.ts +37 -0
  1101. package/packages/agent/src/api/server-helpers-config.d.ts.map +1 -0
  1102. package/packages/agent/src/api/server-helpers-config.js +295 -0
  1103. package/packages/agent/src/api/server-helpers-mcp.d.ts +12 -0
  1104. package/packages/agent/src/api/server-helpers-mcp.d.ts.map +1 -0
  1105. package/packages/agent/src/api/server-helpers-mcp.js +315 -0
  1106. package/packages/agent/src/api/server-helpers-plugin.d.ts +13 -0
  1107. package/packages/agent/src/api/server-helpers-plugin.d.ts.map +1 -0
  1108. package/packages/agent/src/api/server-helpers-plugin.js +158 -0
  1109. package/packages/agent/src/api/server-helpers-swarm.d.ts +57 -0
  1110. package/packages/agent/src/api/server-helpers-swarm.d.ts.map +1 -0
  1111. package/packages/agent/src/api/server-helpers-swarm.js +325 -0
  1112. package/packages/agent/src/api/server-helpers-wallet.d.ts +18 -0
  1113. package/packages/agent/src/api/server-helpers-wallet.d.ts.map +1 -0
  1114. package/packages/agent/src/api/server-helpers-wallet.js +178 -0
  1115. package/packages/agent/src/api/server-helpers.d.ts +96 -0
  1116. package/packages/agent/src/api/server-helpers.d.ts.map +1 -0
  1117. package/packages/agent/src/api/server-helpers.js +601 -0
  1118. package/packages/agent/src/api/server-types.d.ts +236 -0
  1119. package/packages/agent/src/api/server-types.d.ts.map +1 -0
  1120. package/packages/agent/src/api/server-types.js +6 -0
  1121. package/packages/agent/src/api/server.d.ts +98 -0
  1122. package/packages/agent/src/api/server.d.ts.map +1 -0
  1123. package/packages/agent/src/api/server.js +4156 -0
  1124. package/packages/agent/src/api/signal-routes.d.ts +42 -0
  1125. package/packages/agent/src/api/signal-routes.d.ts.map +1 -0
  1126. package/packages/agent/src/api/signal-routes.js +231 -0
  1127. package/packages/agent/src/api/skill-discovery-helpers.d.ts +80 -0
  1128. package/packages/agent/src/api/skill-discovery-helpers.d.ts.map +1 -0
  1129. package/packages/agent/src/api/skill-discovery-helpers.js +383 -0
  1130. package/packages/agent/src/api/skills-routes.d.ts +32 -0
  1131. package/packages/agent/src/api/skills-routes.d.ts.map +1 -0
  1132. package/packages/agent/src/api/skills-routes.js +972 -0
  1133. package/packages/agent/src/api/static-file-server.d.ts +19 -0
  1134. package/packages/agent/src/api/static-file-server.d.ts.map +1 -0
  1135. package/packages/agent/src/api/static-file-server.js +233 -0
  1136. package/packages/agent/src/api/stream-persistence.d.ts +64 -0
  1137. package/packages/agent/src/api/stream-persistence.d.ts.map +1 -0
  1138. package/packages/agent/src/api/stream-persistence.js +231 -0
  1139. package/packages/agent/src/api/stream-route-state.d.ts +56 -0
  1140. package/packages/agent/src/api/stream-route-state.d.ts.map +1 -0
  1141. package/packages/agent/src/api/stream-route-state.js +1 -0
  1142. package/packages/agent/src/api/stream-routes.d.ts +24 -0
  1143. package/packages/agent/src/api/stream-routes.d.ts.map +1 -0
  1144. package/packages/agent/src/api/stream-routes.js +728 -0
  1145. package/packages/agent/src/api/streaming-text.d.ts +9 -0
  1146. package/packages/agent/src/api/streaming-text.d.ts.map +1 -0
  1147. package/packages/agent/src/api/streaming-text.js +85 -0
  1148. package/packages/agent/src/api/streaming-types.d.ts +30 -0
  1149. package/packages/agent/src/api/streaming-types.d.ts.map +1 -0
  1150. package/packages/agent/src/api/streaming-types.js +1 -0
  1151. package/packages/agent/src/api/subscription-routes.d.ts +20 -0
  1152. package/packages/agent/src/api/subscription-routes.d.ts.map +1 -0
  1153. package/packages/agent/src/api/subscription-routes.js +213 -0
  1154. package/packages/agent/src/api/telegram-account-routes.d.ts +26 -0
  1155. package/packages/agent/src/api/telegram-account-routes.d.ts.map +1 -0
  1156. package/packages/agent/src/api/telegram-account-routes.js +229 -0
  1157. package/packages/agent/src/api/terminal-run-limits.d.ts +5 -0
  1158. package/packages/agent/src/api/terminal-run-limits.d.ts.map +1 -0
  1159. package/packages/agent/src/api/terminal-run-limits.js +22 -0
  1160. package/packages/agent/src/api/trade-safety.d.ts +35 -0
  1161. package/packages/agent/src/api/trade-safety.d.ts.map +1 -0
  1162. package/packages/agent/src/api/trade-safety.js +62 -0
  1163. package/packages/agent/src/api/trigger-routes.d.ts +63 -0
  1164. package/packages/agent/src/api/trigger-routes.d.ts.map +1 -0
  1165. package/packages/agent/src/api/trigger-routes.js +379 -0
  1166. package/packages/agent/src/api/tts-routes.d.ts +24 -0
  1167. package/packages/agent/src/api/tts-routes.d.ts.map +1 -0
  1168. package/packages/agent/src/api/tts-routes.js +200 -0
  1169. package/packages/agent/src/api/update-routes.d.ts +19 -0
  1170. package/packages/agent/src/api/update-routes.d.ts.map +1 -0
  1171. package/packages/agent/src/api/update-routes.js +54 -0
  1172. package/packages/agent/src/api/wallet-capability.d.ts +28 -0
  1173. package/packages/agent/src/api/wallet-capability.d.ts.map +1 -0
  1174. package/packages/agent/src/api/wallet-capability.js +119 -0
  1175. package/packages/agent/src/api/wallet-dex-prices.d.ts +43 -0
  1176. package/packages/agent/src/api/wallet-dex-prices.d.ts.map +1 -0
  1177. package/packages/agent/src/api/wallet-dex-prices.js +149 -0
  1178. package/packages/agent/src/api/wallet-env-sync.d.ts +2 -0
  1179. package/packages/agent/src/api/wallet-env-sync.d.ts.map +1 -0
  1180. package/packages/agent/src/api/wallet-env-sync.js +108 -0
  1181. package/packages/agent/src/api/wallet-evm-balance.d.ts +66 -0
  1182. package/packages/agent/src/api/wallet-evm-balance.d.ts.map +1 -0
  1183. package/packages/agent/src/api/wallet-evm-balance.js +663 -0
  1184. package/packages/agent/src/api/wallet-routes.d.ts +42 -0
  1185. package/packages/agent/src/api/wallet-routes.d.ts.map +1 -0
  1186. package/packages/agent/src/api/wallet-routes.js +827 -0
  1187. package/packages/agent/src/api/wallet-rpc.d.ts +73 -0
  1188. package/packages/agent/src/api/wallet-rpc.d.ts.map +1 -0
  1189. package/packages/agent/src/api/wallet-rpc.js +471 -0
  1190. package/packages/agent/src/api/wallet.d.ts +64 -0
  1191. package/packages/agent/src/api/wallet.d.ts.map +1 -0
  1192. package/packages/agent/src/api/wallet.js +670 -0
  1193. package/packages/agent/src/api/whatsapp-routes.d.ts +39 -0
  1194. package/packages/agent/src/api/whatsapp-routes.d.ts.map +1 -0
  1195. package/packages/agent/src/api/whatsapp-routes.js +225 -0
  1196. package/packages/agent/src/api/workbench-helpers.d.ts +39 -0
  1197. package/packages/agent/src/api/workbench-helpers.d.ts.map +1 -0
  1198. package/packages/agent/src/api/workbench-helpers.js +134 -0
  1199. package/packages/agent/src/api/workbench-routes.d.ts +53 -0
  1200. package/packages/agent/src/api/workbench-routes.d.ts.map +1 -0
  1201. package/packages/agent/src/api/workbench-routes.js +391 -0
  1202. package/packages/agent/src/auth/anthropic.d.ts +24 -0
  1203. package/packages/agent/src/auth/anthropic.d.ts.map +1 -0
  1204. package/packages/agent/src/auth/anthropic.js +38 -0
  1205. package/packages/agent/src/auth/claude-code-stealth.d.ts +2 -0
  1206. package/packages/agent/src/auth/claude-code-stealth.d.ts.map +1 -0
  1207. package/packages/agent/src/auth/claude-code-stealth.js +114 -0
  1208. package/packages/agent/src/auth/credentials.d.ts +74 -0
  1209. package/packages/agent/src/auth/credentials.d.ts.map +1 -0
  1210. package/packages/agent/src/auth/credentials.js +387 -0
  1211. package/packages/agent/src/auth/index.d.ts +6 -0
  1212. package/packages/agent/src/auth/index.d.ts.map +1 -0
  1213. package/packages/agent/src/auth/index.js +5 -0
  1214. package/packages/agent/src/auth/openai-codex.d.ts +27 -0
  1215. package/packages/agent/src/auth/openai-codex.d.ts.map +1 -0
  1216. package/packages/agent/src/auth/openai-codex.js +76 -0
  1217. package/packages/agent/src/auth/types.d.ts +18 -0
  1218. package/packages/agent/src/auth/types.d.ts.map +1 -0
  1219. package/packages/agent/src/auth/types.js +8 -0
  1220. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts +16 -0
  1221. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts.map +1 -0
  1222. package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.js +78 -0
  1223. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts +26 -0
  1224. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts.map +1 -0
  1225. package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.js +342 -0
  1226. package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts +9 -0
  1227. package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts.map +1 -0
  1228. package/packages/agent/src/auth/vendor/pi-oauth/pkce.js +21 -0
  1229. package/packages/agent/src/awareness/registry.d.ts +27 -0
  1230. package/packages/agent/src/awareness/registry.d.ts.map +1 -0
  1231. package/packages/agent/src/awareness/registry.js +161 -0
  1232. package/packages/agent/src/cli/parse-duration.d.ts +5 -0
  1233. package/packages/agent/src/cli/parse-duration.d.ts.map +1 -0
  1234. package/packages/agent/src/cli/parse-duration.js +27 -0
  1235. package/packages/agent/src/cloud/auth.d.ts +19 -0
  1236. package/packages/agent/src/cloud/auth.d.ts.map +1 -0
  1237. package/packages/agent/src/cloud/auth.js +110 -0
  1238. package/packages/agent/src/cloud/backup.d.ts +18 -0
  1239. package/packages/agent/src/cloud/backup.d.ts.map +1 -0
  1240. package/packages/agent/src/cloud/backup.js +42 -0
  1241. package/packages/agent/src/cloud/base-url.d.ts +3 -0
  1242. package/packages/agent/src/cloud/base-url.d.ts.map +1 -0
  1243. package/packages/agent/src/cloud/base-url.js +52 -0
  1244. package/packages/agent/src/cloud/bridge-client.d.ts +126 -0
  1245. package/packages/agent/src/cloud/bridge-client.d.ts.map +1 -0
  1246. package/packages/agent/src/cloud/bridge-client.js +380 -0
  1247. package/packages/agent/src/cloud/cloud-manager.d.ts +32 -0
  1248. package/packages/agent/src/cloud/cloud-manager.d.ts.map +1 -0
  1249. package/packages/agent/src/cloud/cloud-manager.js +121 -0
  1250. package/packages/agent/src/cloud/cloud-proxy.d.ts +20 -0
  1251. package/packages/agent/src/cloud/cloud-proxy.d.ts.map +1 -0
  1252. package/packages/agent/src/cloud/cloud-proxy.js +34 -0
  1253. package/packages/agent/src/cloud/cloud-wallet.d.ts +92 -0
  1254. package/packages/agent/src/cloud/cloud-wallet.d.ts.map +1 -0
  1255. package/packages/agent/src/cloud/cloud-wallet.js +199 -0
  1256. package/packages/agent/src/cloud/reconnect.d.ts +26 -0
  1257. package/packages/agent/src/cloud/reconnect.d.ts.map +1 -0
  1258. package/packages/agent/src/cloud/reconnect.js +89 -0
  1259. package/packages/agent/src/cloud/validate-url.d.ts +2 -0
  1260. package/packages/agent/src/cloud/validate-url.d.ts.map +1 -0
  1261. package/packages/agent/src/cloud/validate-url.js +162 -0
  1262. package/packages/agent/src/config/character-schema.d.ts +25 -0
  1263. package/packages/agent/src/config/character-schema.d.ts.map +1 -0
  1264. package/packages/agent/src/config/character-schema.js +39 -0
  1265. package/packages/agent/src/config/config.d.ts +6 -0
  1266. package/packages/agent/src/config/config.d.ts.map +1 -0
  1267. package/packages/agent/src/config/config.js +277 -0
  1268. package/packages/agent/src/config/env-vars.d.ts +9 -0
  1269. package/packages/agent/src/config/env-vars.d.ts.map +1 -0
  1270. package/packages/agent/src/config/env-vars.js +284 -0
  1271. package/packages/agent/src/config/feature-flags.d.ts +17 -0
  1272. package/packages/agent/src/config/feature-flags.d.ts.map +1 -0
  1273. package/packages/agent/src/config/feature-flags.js +37 -0
  1274. package/packages/agent/src/config/includes.d.ts +26 -0
  1275. package/packages/agent/src/config/includes.d.ts.map +1 -0
  1276. package/packages/agent/src/config/includes.js +148 -0
  1277. package/packages/agent/src/config/object-utils.d.ts +2 -0
  1278. package/packages/agent/src/config/object-utils.d.ts.map +1 -0
  1279. package/packages/agent/src/config/object-utils.js +6 -0
  1280. package/packages/agent/src/config/owner-contacts.d.ts +42 -0
  1281. package/packages/agent/src/config/owner-contacts.d.ts.map +1 -0
  1282. package/packages/agent/src/config/owner-contacts.js +223 -0
  1283. package/packages/agent/src/config/paths.d.ts +13 -0
  1284. package/packages/agent/src/config/paths.d.ts.map +1 -0
  1285. package/packages/agent/src/config/paths.js +106 -0
  1286. package/packages/agent/src/config/plugin-auto-enable.d.ts +44 -0
  1287. package/packages/agent/src/config/plugin-auto-enable.d.ts.map +1 -0
  1288. package/packages/agent/src/config/plugin-auto-enable.js +559 -0
  1289. package/packages/agent/src/config/plugin-widgets.d.ts +29 -0
  1290. package/packages/agent/src/config/plugin-widgets.d.ts.map +1 -0
  1291. package/packages/agent/src/config/plugin-widgets.js +70 -0
  1292. package/packages/agent/src/config/schema.d.ts +87 -0
  1293. package/packages/agent/src/config/schema.d.ts.map +1 -0
  1294. package/packages/agent/src/config/schema.js +922 -0
  1295. package/packages/agent/src/config/telegram-custom-commands.d.ts +25 -0
  1296. package/packages/agent/src/config/telegram-custom-commands.d.ts.map +1 -0
  1297. package/packages/agent/src/config/telegram-custom-commands.js +71 -0
  1298. package/packages/agent/src/config/types.agent-defaults.d.ts +363 -0
  1299. package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -0
  1300. package/packages/agent/src/config/types.agent-defaults.js +1 -0
  1301. package/packages/agent/src/config/types.agents.d.ts +114 -0
  1302. package/packages/agent/src/config/types.agents.d.ts.map +1 -0
  1303. package/packages/agent/src/config/types.agents.js +1 -0
  1304. package/packages/agent/src/config/types.d.ts +8 -0
  1305. package/packages/agent/src/config/types.d.ts.map +1 -0
  1306. package/packages/agent/src/config/types.eliza.d.ts +706 -0
  1307. package/packages/agent/src/config/types.eliza.d.ts.map +1 -0
  1308. package/packages/agent/src/config/types.eliza.js +1 -0
  1309. package/packages/agent/src/config/types.gateway.d.ts +216 -0
  1310. package/packages/agent/src/config/types.gateway.d.ts.map +1 -0
  1311. package/packages/agent/src/config/types.gateway.js +1 -0
  1312. package/packages/agent/src/config/types.hooks.d.ts +107 -0
  1313. package/packages/agent/src/config/types.hooks.d.ts.map +1 -0
  1314. package/packages/agent/src/config/types.hooks.js +1 -0
  1315. package/packages/agent/src/config/types.js +7 -0
  1316. package/packages/agent/src/config/types.messages.d.ts +176 -0
  1317. package/packages/agent/src/config/types.messages.d.ts.map +1 -0
  1318. package/packages/agent/src/config/types.messages.js +1 -0
  1319. package/packages/agent/src/config/types.tools.d.ts +400 -0
  1320. package/packages/agent/src/config/types.tools.d.ts.map +1 -0
  1321. package/packages/agent/src/config/types.tools.js +1 -0
  1322. package/packages/agent/src/config/zod-schema.agent-runtime.d.ts +1137 -0
  1323. package/packages/agent/src/config/zod-schema.agent-runtime.d.ts.map +1 -0
  1324. package/packages/agent/src/config/zod-schema.agent-runtime.js +782 -0
  1325. package/packages/agent/src/config/zod-schema.core.d.ts +1021 -0
  1326. package/packages/agent/src/config/zod-schema.core.d.ts.map +1 -0
  1327. package/packages/agent/src/config/zod-schema.core.js +694 -0
  1328. package/packages/agent/src/config/zod-schema.d.ts +3185 -0
  1329. package/packages/agent/src/config/zod-schema.d.ts.map +1 -0
  1330. package/packages/agent/src/config/zod-schema.hooks.d.ts +88 -0
  1331. package/packages/agent/src/config/zod-schema.hooks.d.ts.map +1 -0
  1332. package/packages/agent/src/config/zod-schema.hooks.js +133 -0
  1333. package/packages/agent/src/config/zod-schema.js +850 -0
  1334. package/packages/agent/src/config/zod-schema.providers-core.d.ts +2746 -0
  1335. package/packages/agent/src/config/zod-schema.providers-core.d.ts.map +1 -0
  1336. package/packages/agent/src/config/zod-schema.providers-core.js +961 -0
  1337. package/packages/agent/src/config/zod-schema.session.d.ts +183 -0
  1338. package/packages/agent/src/config/zod-schema.session.d.ts.map +1 -0
  1339. package/packages/agent/src/config/zod-schema.session.js +86 -0
  1340. package/packages/agent/src/contracts/apps.d.ts +2 -0
  1341. package/packages/agent/src/contracts/apps.d.ts.map +1 -0
  1342. package/packages/agent/src/contracts/apps.js +1 -0
  1343. package/packages/agent/src/contracts/awareness.d.ts +38 -0
  1344. package/packages/agent/src/contracts/awareness.d.ts.map +1 -0
  1345. package/packages/agent/src/contracts/awareness.js +7 -0
  1346. package/packages/agent/src/contracts/config.d.ts +148 -0
  1347. package/packages/agent/src/contracts/config.d.ts.map +1 -0
  1348. package/packages/agent/src/contracts/config.js +4 -0
  1349. package/packages/agent/src/contracts/drop.d.ts +2 -0
  1350. package/packages/agent/src/contracts/drop.d.ts.map +1 -0
  1351. package/packages/agent/src/contracts/drop.js +1 -0
  1352. package/packages/agent/src/contracts/onboarding.d.ts +2 -0
  1353. package/packages/agent/src/contracts/onboarding.d.ts.map +1 -0
  1354. package/packages/agent/src/contracts/onboarding.js +1 -0
  1355. package/packages/agent/src/contracts/permissions.d.ts +2 -0
  1356. package/packages/agent/src/contracts/permissions.d.ts.map +1 -0
  1357. package/packages/agent/src/contracts/permissions.js +1 -0
  1358. package/packages/agent/src/contracts/service-routing.d.ts +2 -0
  1359. package/packages/agent/src/contracts/service-routing.d.ts.map +1 -0
  1360. package/packages/agent/src/contracts/service-routing.js +1 -0
  1361. package/packages/agent/src/contracts/verification.d.ts +2 -0
  1362. package/packages/agent/src/contracts/verification.d.ts.map +1 -0
  1363. package/packages/agent/src/contracts/verification.js +1 -0
  1364. package/packages/agent/src/contracts/wallet.d.ts +2 -0
  1365. package/packages/agent/src/contracts/wallet.d.ts.map +1 -0
  1366. package/packages/agent/src/contracts/wallet.js +1 -0
  1367. package/packages/agent/src/diagnostics/integration-observability.d.ts +40 -0
  1368. package/packages/agent/src/diagnostics/integration-observability.d.ts.map +1 -0
  1369. package/packages/agent/src/diagnostics/integration-observability.js +75 -0
  1370. package/packages/agent/src/evaluators/late-join-whitelist.d.ts +16 -0
  1371. package/packages/agent/src/evaluators/late-join-whitelist.d.ts.map +1 -0
  1372. package/packages/agent/src/evaluators/late-join-whitelist.js +67 -0
  1373. package/packages/agent/src/hooks/discovery.d.ts +13 -0
  1374. package/packages/agent/src/hooks/discovery.d.ts.map +1 -0
  1375. package/packages/agent/src/hooks/discovery.js +191 -0
  1376. package/packages/agent/src/hooks/eligibility.d.ts +12 -0
  1377. package/packages/agent/src/hooks/eligibility.d.ts.map +1 -0
  1378. package/packages/agent/src/hooks/eligibility.js +105 -0
  1379. package/packages/agent/src/hooks/index.d.ts +3 -0
  1380. package/packages/agent/src/hooks/index.d.ts.map +1 -0
  1381. package/packages/agent/src/hooks/index.js +2 -0
  1382. package/packages/agent/src/hooks/loader.d.ts +34 -0
  1383. package/packages/agent/src/hooks/loader.d.ts.map +1 -0
  1384. package/packages/agent/src/hooks/loader.js +214 -0
  1385. package/packages/agent/src/hooks/registry.d.ts +11 -0
  1386. package/packages/agent/src/hooks/registry.d.ts.map +1 -0
  1387. package/packages/agent/src/hooks/registry.js +58 -0
  1388. package/packages/agent/src/hooks/types.d.ts +104 -0
  1389. package/packages/agent/src/hooks/types.d.ts.map +1 -0
  1390. package/packages/agent/src/hooks/types.js +8 -0
  1391. package/packages/agent/src/plugins/custom-rtmp/index.d.ts +12 -0
  1392. package/packages/agent/src/plugins/custom-rtmp/index.d.ts.map +1 -0
  1393. package/packages/agent/src/plugins/custom-rtmp/index.js +26 -0
  1394. package/packages/agent/src/providers/admin-panel.d.ts +4 -0
  1395. package/packages/agent/src/providers/admin-panel.d.ts.map +1 -0
  1396. package/packages/agent/src/providers/admin-panel.js +83 -0
  1397. package/packages/agent/src/providers/admin-trust.d.ts +4 -0
  1398. package/packages/agent/src/providers/admin-trust.d.ts.map +1 -0
  1399. package/packages/agent/src/providers/admin-trust.js +34 -0
  1400. package/packages/agent/src/providers/automation-terminal-bridge.d.ts +3 -0
  1401. package/packages/agent/src/providers/automation-terminal-bridge.d.ts.map +1 -0
  1402. package/packages/agent/src/providers/automation-terminal-bridge.js +71 -0
  1403. package/packages/agent/src/providers/conversation-utils.d.ts +11 -0
  1404. package/packages/agent/src/providers/conversation-utils.d.ts.map +1 -0
  1405. package/packages/agent/src/providers/conversation-utils.js +78 -0
  1406. package/packages/agent/src/providers/escalation-trigger.d.ts +15 -0
  1407. package/packages/agent/src/providers/escalation-trigger.d.ts.map +1 -0
  1408. package/packages/agent/src/providers/escalation-trigger.js +165 -0
  1409. package/packages/agent/src/providers/recent-conversations.d.ts +3 -0
  1410. package/packages/agent/src/providers/recent-conversations.d.ts.map +1 -0
  1411. package/packages/agent/src/providers/recent-conversations.js +92 -0
  1412. package/packages/agent/src/providers/relevant-conversations.d.ts +3 -0
  1413. package/packages/agent/src/providers/relevant-conversations.d.ts.map +1 -0
  1414. package/packages/agent/src/providers/relevant-conversations.js +93 -0
  1415. package/packages/agent/src/providers/role-backfill.d.ts +18 -0
  1416. package/packages/agent/src/providers/role-backfill.d.ts.map +1 -0
  1417. package/packages/agent/src/providers/role-backfill.js +84 -0
  1418. package/packages/agent/src/providers/rolodex.d.ts +3 -0
  1419. package/packages/agent/src/providers/rolodex.d.ts.map +1 -0
  1420. package/packages/agent/src/providers/rolodex.js +77 -0
  1421. package/packages/agent/src/providers/session-bridge.d.ts +24 -0
  1422. package/packages/agent/src/providers/session-bridge.d.ts.map +1 -0
  1423. package/packages/agent/src/providers/session-bridge.js +85 -0
  1424. package/packages/agent/src/providers/session-utils.d.ts +20 -0
  1425. package/packages/agent/src/providers/session-utils.d.ts.map +1 -0
  1426. package/packages/agent/src/providers/session-utils.js +33 -0
  1427. package/packages/agent/src/providers/simple-mode.d.ts +4 -0
  1428. package/packages/agent/src/providers/simple-mode.d.ts.map +1 -0
  1429. package/packages/agent/src/providers/simple-mode.js +85 -0
  1430. package/packages/agent/src/providers/skill-provider.d.ts +16 -0
  1431. package/packages/agent/src/providers/skill-provider.d.ts.map +1 -0
  1432. package/packages/agent/src/providers/skill-provider.js +336 -0
  1433. package/packages/agent/src/providers/tasks.d.ts +9 -0
  1434. package/packages/agent/src/providers/tasks.d.ts.map +1 -0
  1435. package/packages/agent/src/providers/tasks.js +113 -0
  1436. package/packages/agent/src/providers/ui-catalog.d.ts +3 -0
  1437. package/packages/agent/src/providers/ui-catalog.d.ts.map +1 -0
  1438. package/packages/agent/src/providers/ui-catalog.js +95 -0
  1439. package/packages/agent/src/providers/user-name.d.ts +11 -0
  1440. package/packages/agent/src/providers/user-name.d.ts.map +1 -0
  1441. package/packages/agent/src/providers/user-name.js +40 -0
  1442. package/packages/agent/src/providers/workspace-provider.d.ts +14 -0
  1443. package/packages/agent/src/providers/workspace-provider.d.ts.map +1 -0
  1444. package/packages/agent/src/providers/workspace-provider.js +177 -0
  1445. package/packages/agent/src/providers/workspace.d.ts +54 -0
  1446. package/packages/agent/src/providers/workspace.d.ts.map +1 -0
  1447. package/packages/agent/src/providers/workspace.js +481 -0
  1448. package/packages/agent/src/runtime/agent-event-service.d.ts +35 -0
  1449. package/packages/agent/src/runtime/agent-event-service.d.ts.map +1 -0
  1450. package/packages/agent/src/runtime/agent-event-service.js +16 -0
  1451. package/packages/agent/src/runtime/cloud-onboarding.d.ts +35 -0
  1452. package/packages/agent/src/runtime/cloud-onboarding.d.ts.map +1 -0
  1453. package/packages/agent/src/runtime/cloud-onboarding.js +279 -0
  1454. package/packages/agent/src/runtime/core-plugins.d.ts +19 -0
  1455. package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -0
  1456. package/packages/agent/src/runtime/core-plugins.js +63 -0
  1457. package/packages/agent/src/runtime/custom-actions.d.ts +43 -0
  1458. package/packages/agent/src/runtime/custom-actions.d.ts.map +1 -0
  1459. package/packages/agent/src/runtime/custom-actions.js +507 -0
  1460. package/packages/agent/src/runtime/default-knowledge.d.ts +20 -0
  1461. package/packages/agent/src/runtime/default-knowledge.d.ts.map +1 -0
  1462. package/packages/agent/src/runtime/default-knowledge.js +256 -0
  1463. package/packages/agent/src/runtime/discord-local-plugin.d.ts +86 -0
  1464. package/packages/agent/src/runtime/discord-local-plugin.d.ts.map +1 -0
  1465. package/packages/agent/src/runtime/discord-local-plugin.js +884 -0
  1466. package/packages/agent/src/runtime/eliza-plugin.d.ts +16 -0
  1467. package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -0
  1468. package/packages/agent/src/runtime/eliza-plugin.js +172 -0
  1469. package/packages/agent/src/runtime/eliza.d.ts +91 -0
  1470. package/packages/agent/src/runtime/eliza.d.ts.map +1 -0
  1471. package/packages/agent/src/runtime/eliza.js +3383 -0
  1472. package/packages/agent/src/runtime/embedding-presets.d.ts +19 -0
  1473. package/packages/agent/src/runtime/embedding-presets.d.ts.map +1 -0
  1474. package/packages/agent/src/runtime/embedding-presets.js +60 -0
  1475. package/packages/agent/src/runtime/first-time-setup.d.ts +45 -0
  1476. package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -0
  1477. package/packages/agent/src/runtime/first-time-setup.js +692 -0
  1478. package/packages/agent/src/runtime/index.d.ts +13 -0
  1479. package/packages/agent/src/runtime/index.d.ts.map +1 -0
  1480. package/packages/agent/src/runtime/index.js +12 -0
  1481. package/packages/agent/src/runtime/native-runtime-features.d.ts +4 -0
  1482. package/packages/agent/src/runtime/native-runtime-features.d.ts.map +1 -0
  1483. package/packages/agent/src/runtime/native-runtime-features.js +10 -0
  1484. package/packages/agent/src/runtime/onboarding-names.d.ts +11 -0
  1485. package/packages/agent/src/runtime/onboarding-names.d.ts.map +1 -0
  1486. package/packages/agent/src/runtime/onboarding-names.js +74 -0
  1487. package/packages/agent/src/runtime/owner-entity.d.ts +4 -0
  1488. package/packages/agent/src/runtime/owner-entity.d.ts.map +1 -0
  1489. package/packages/agent/src/runtime/owner-entity.js +30 -0
  1490. package/packages/agent/src/runtime/pglite-error-compat.d.ts +28 -0
  1491. package/packages/agent/src/runtime/pglite-error-compat.d.ts.map +1 -0
  1492. package/packages/agent/src/runtime/pglite-error-compat.js +54 -0
  1493. package/packages/agent/src/runtime/plugin-collector.d.ts +26 -0
  1494. package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -0
  1495. package/packages/agent/src/runtime/plugin-collector.js +397 -0
  1496. package/packages/agent/src/runtime/plugin-lifecycle.d.ts +44 -0
  1497. package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -0
  1498. package/packages/agent/src/runtime/plugin-lifecycle.js +578 -0
  1499. package/packages/agent/src/runtime/plugin-resolver.d.ts +31 -0
  1500. package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -0
  1501. package/packages/agent/src/runtime/plugin-resolver.js +942 -0
  1502. package/packages/agent/src/runtime/plugin-role-gating.d.ts +34 -0
  1503. package/packages/agent/src/runtime/plugin-role-gating.d.ts.map +1 -0
  1504. package/packages/agent/src/runtime/plugin-role-gating.js +232 -0
  1505. package/packages/agent/src/runtime/plugin-types.d.ts +65 -0
  1506. package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -0
  1507. package/packages/agent/src/runtime/plugin-types.js +318 -0
  1508. package/packages/agent/src/runtime/prompt-compaction.d.ts +80 -0
  1509. package/packages/agent/src/runtime/prompt-compaction.d.ts.map +1 -0
  1510. package/packages/agent/src/runtime/prompt-compaction.js +307 -0
  1511. package/packages/agent/src/runtime/prompt-optimization.d.ts +11 -0
  1512. package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -0
  1513. package/packages/agent/src/runtime/prompt-optimization.js +421 -0
  1514. package/packages/agent/src/runtime/release-plugin-policy.d.ts +20 -0
  1515. package/packages/agent/src/runtime/release-plugin-policy.d.ts.map +1 -0
  1516. package/packages/agent/src/runtime/release-plugin-policy.js +85 -0
  1517. package/packages/agent/src/runtime/restart.d.ts +45 -0
  1518. package/packages/agent/src/runtime/restart.d.ts.map +1 -0
  1519. package/packages/agent/src/runtime/restart.js +45 -0
  1520. package/packages/agent/src/runtime/roles/src/action.d.ts +11 -0
  1521. package/packages/agent/src/runtime/roles/src/action.d.ts.map +1 -0
  1522. package/packages/agent/src/runtime/roles/src/action.js +676 -0
  1523. package/packages/agent/src/runtime/roles/src/index.d.ts +24 -0
  1524. package/packages/agent/src/runtime/roles/src/index.d.ts.map +1 -0
  1525. package/packages/agent/src/runtime/roles/src/index.js +243 -0
  1526. package/packages/agent/src/runtime/roles/src/intent.d.ts +18 -0
  1527. package/packages/agent/src/runtime/roles/src/intent.d.ts.map +1 -0
  1528. package/packages/agent/src/runtime/roles/src/intent.js +299 -0
  1529. package/packages/agent/src/runtime/roles/src/provider.d.ts +7 -0
  1530. package/packages/agent/src/runtime/roles/src/provider.d.ts.map +1 -0
  1531. package/packages/agent/src/runtime/roles/src/provider.js +133 -0
  1532. package/packages/agent/src/runtime/roles/src/types.d.ts +3 -0
  1533. package/packages/agent/src/runtime/roles/src/types.d.ts.map +1 -0
  1534. package/packages/agent/src/runtime/roles/src/types.js +1 -0
  1535. package/packages/agent/src/runtime/roles/src/utils.d.ts +2 -0
  1536. package/packages/agent/src/runtime/roles/src/utils.d.ts.map +1 -0
  1537. package/packages/agent/src/runtime/roles/src/utils.js +1 -0
  1538. package/packages/agent/src/runtime/roles.d.ts +3 -0
  1539. package/packages/agent/src/runtime/roles.d.ts.map +1 -0
  1540. package/packages/agent/src/runtime/roles.js +5 -0
  1541. package/packages/agent/src/runtime/subagent-output.d.ts +51 -0
  1542. package/packages/agent/src/runtime/subagent-output.d.ts.map +1 -0
  1543. package/packages/agent/src/runtime/subagent-output.js +173 -0
  1544. package/packages/agent/src/runtime/task-heartbeat.d.ts +22 -0
  1545. package/packages/agent/src/runtime/task-heartbeat.d.ts.map +1 -0
  1546. package/packages/agent/src/runtime/task-heartbeat.js +84 -0
  1547. package/packages/agent/src/runtime/trajectory-internals.d.ts +224 -0
  1548. package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -0
  1549. package/packages/agent/src/runtime/trajectory-internals.js +1322 -0
  1550. package/packages/agent/src/runtime/trajectory-persistence.d.ts +15 -0
  1551. package/packages/agent/src/runtime/trajectory-persistence.d.ts.map +1 -0
  1552. package/packages/agent/src/runtime/trajectory-persistence.js +29 -0
  1553. package/packages/agent/src/runtime/trajectory-query.d.ts +8 -0
  1554. package/packages/agent/src/runtime/trajectory-query.d.ts.map +1 -0
  1555. package/packages/agent/src/runtime/trajectory-query.js +27 -0
  1556. package/packages/agent/src/runtime/trajectory-storage.d.ts +91 -0
  1557. package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -0
  1558. package/packages/agent/src/runtime/trajectory-storage.js +1149 -0
  1559. package/packages/agent/src/runtime/version.d.ts +2 -0
  1560. package/packages/agent/src/runtime/version.d.ts.map +1 -0
  1561. package/packages/agent/src/runtime/version.js +5 -0
  1562. package/packages/agent/src/runtime/web-search-tools.d.ts +22 -0
  1563. package/packages/agent/src/runtime/web-search-tools.d.ts.map +1 -0
  1564. package/packages/agent/src/runtime/web-search-tools.js +149 -0
  1565. package/packages/agent/src/security/access.d.ts +17 -0
  1566. package/packages/agent/src/security/access.d.ts.map +1 -0
  1567. package/packages/agent/src/security/access.js +129 -0
  1568. package/packages/agent/src/security/audit-log.d.ts +47 -0
  1569. package/packages/agent/src/security/audit-log.d.ts.map +1 -0
  1570. package/packages/agent/src/security/audit-log.js +161 -0
  1571. package/packages/agent/src/security/network-policy.d.ts +6 -0
  1572. package/packages/agent/src/security/network-policy.d.ts.map +1 -0
  1573. package/packages/agent/src/security/network-policy.js +85 -0
  1574. package/packages/agent/src/services/agent-export.d.ts +100 -0
  1575. package/packages/agent/src/services/agent-export.d.ts.map +1 -0
  1576. package/packages/agent/src/services/agent-export.js +729 -0
  1577. package/packages/agent/src/services/app-manager.d.ts +108 -0
  1578. package/packages/agent/src/services/app-manager.d.ts.map +1 -0
  1579. package/packages/agent/src/services/app-manager.js +2223 -0
  1580. package/packages/agent/src/services/app-package-modules.d.ts +21 -0
  1581. package/packages/agent/src/services/app-package-modules.d.ts.map +1 -0
  1582. package/packages/agent/src/services/app-package-modules.js +415 -0
  1583. package/packages/agent/src/services/app-run-store.d.ts +6 -0
  1584. package/packages/agent/src/services/app-run-store.d.ts.map +1 -0
  1585. package/packages/agent/src/services/app-run-store.js +490 -0
  1586. package/packages/agent/src/services/app-session-gate.d.ts +15 -0
  1587. package/packages/agent/src/services/app-session-gate.d.ts.map +1 -0
  1588. package/packages/agent/src/services/app-session-gate.js +71 -0
  1589. package/packages/agent/src/services/browser-capture.d.ts +41 -0
  1590. package/packages/agent/src/services/browser-capture.d.ts.map +1 -0
  1591. package/packages/agent/src/services/browser-capture.js +173 -0
  1592. package/packages/agent/src/services/browser-workspace-desktop.d.ts +22 -0
  1593. package/packages/agent/src/services/browser-workspace-desktop.d.ts.map +1 -0
  1594. package/packages/agent/src/services/browser-workspace-desktop.js +1379 -0
  1595. package/packages/agent/src/services/browser-workspace-elements.d.ts +42 -0
  1596. package/packages/agent/src/services/browser-workspace-elements.d.ts.map +1 -0
  1597. package/packages/agent/src/services/browser-workspace-elements.js +508 -0
  1598. package/packages/agent/src/services/browser-workspace-forms.d.ts +19 -0
  1599. package/packages/agent/src/services/browser-workspace-forms.d.ts.map +1 -0
  1600. package/packages/agent/src/services/browser-workspace-forms.js +244 -0
  1601. package/packages/agent/src/services/browser-workspace-helpers.d.ts +20 -0
  1602. package/packages/agent/src/services/browser-workspace-helpers.d.ts.map +1 -0
  1603. package/packages/agent/src/services/browser-workspace-helpers.js +121 -0
  1604. package/packages/agent/src/services/browser-workspace-jsdom.d.ts +16 -0
  1605. package/packages/agent/src/services/browser-workspace-jsdom.d.ts.map +1 -0
  1606. package/packages/agent/src/services/browser-workspace-jsdom.js +223 -0
  1607. package/packages/agent/src/services/browser-workspace-network.d.ts +7 -0
  1608. package/packages/agent/src/services/browser-workspace-network.d.ts.map +1 -0
  1609. package/packages/agent/src/services/browser-workspace-network.js +137 -0
  1610. package/packages/agent/src/services/browser-workspace-snapshots.d.ts +14 -0
  1611. package/packages/agent/src/services/browser-workspace-snapshots.d.ts.map +1 -0
  1612. package/packages/agent/src/services/browser-workspace-snapshots.js +144 -0
  1613. package/packages/agent/src/services/browser-workspace-state.d.ts +22 -0
  1614. package/packages/agent/src/services/browser-workspace-state.d.ts.map +1 -0
  1615. package/packages/agent/src/services/browser-workspace-state.js +129 -0
  1616. package/packages/agent/src/services/browser-workspace-types.d.ts +266 -0
  1617. package/packages/agent/src/services/browser-workspace-types.d.ts.map +1 -0
  1618. package/packages/agent/src/services/browser-workspace-types.js +1 -0
  1619. package/packages/agent/src/services/browser-workspace-web.d.ts +8 -0
  1620. package/packages/agent/src/services/browser-workspace-web.d.ts.map +1 -0
  1621. package/packages/agent/src/services/browser-workspace-web.js +1141 -0
  1622. package/packages/agent/src/services/browser-workspace.d.ts +36 -0
  1623. package/packages/agent/src/services/browser-workspace.d.ts.map +1 -0
  1624. package/packages/agent/src/services/browser-workspace.js +806 -0
  1625. package/packages/agent/src/services/character-persistence.d.ts +39 -0
  1626. package/packages/agent/src/services/character-persistence.d.ts.map +1 -0
  1627. package/packages/agent/src/services/character-persistence.js +158 -0
  1628. package/packages/agent/src/services/client-chat-sender.d.ts +19 -0
  1629. package/packages/agent/src/services/client-chat-sender.d.ts.map +1 -0
  1630. package/packages/agent/src/services/client-chat-sender.js +88 -0
  1631. package/packages/agent/src/services/coding-agent-context.d.ts +310 -0
  1632. package/packages/agent/src/services/coding-agent-context.d.ts.map +1 -0
  1633. package/packages/agent/src/services/coding-agent-context.js +281 -0
  1634. package/packages/agent/src/services/config-plugin-manager.d.ts +6 -0
  1635. package/packages/agent/src/services/config-plugin-manager.d.ts.map +1 -0
  1636. package/packages/agent/src/services/config-plugin-manager.js +53 -0
  1637. package/packages/agent/src/services/connector-setup-service.d.ts +48 -0
  1638. package/packages/agent/src/services/connector-setup-service.d.ts.map +1 -0
  1639. package/packages/agent/src/services/connector-setup-service.js +60 -0
  1640. package/packages/agent/src/services/conversation-proximity.d.ts +27 -0
  1641. package/packages/agent/src/services/conversation-proximity.d.ts.map +1 -0
  1642. package/packages/agent/src/services/conversation-proximity.js +124 -0
  1643. package/packages/agent/src/services/credential-words.d.ts +26 -0
  1644. package/packages/agent/src/services/credential-words.d.ts.map +1 -0
  1645. package/packages/agent/src/services/credential-words.js +116 -0
  1646. package/packages/agent/src/services/escalation.d.ts +35 -0
  1647. package/packages/agent/src/services/escalation.d.ts.map +1 -0
  1648. package/packages/agent/src/services/escalation.js +376 -0
  1649. package/packages/agent/src/services/hosted-tools.d.ts +70 -0
  1650. package/packages/agent/src/services/hosted-tools.d.ts.map +1 -0
  1651. package/packages/agent/src/services/hosted-tools.js +87 -0
  1652. package/packages/agent/src/services/mcp-marketplace.d.ts +89 -0
  1653. package/packages/agent/src/services/mcp-marketplace.d.ts.map +1 -0
  1654. package/packages/agent/src/services/mcp-marketplace.js +200 -0
  1655. package/packages/agent/src/services/overlay-app-presence.d.ts +9 -0
  1656. package/packages/agent/src/services/overlay-app-presence.d.ts.map +1 -0
  1657. package/packages/agent/src/services/overlay-app-presence.js +18 -0
  1658. package/packages/agent/src/services/owner-name.d.ts +4 -0
  1659. package/packages/agent/src/services/owner-name.d.ts.map +1 -0
  1660. package/packages/agent/src/services/owner-name.js +46 -0
  1661. package/packages/agent/src/services/plugin-manager-types.d.ts +114 -0
  1662. package/packages/agent/src/services/plugin-manager-types.d.ts.map +1 -0
  1663. package/packages/agent/src/services/plugin-manager-types.js +18 -0
  1664. package/packages/agent/src/services/privy-wallets.d.ts +18 -0
  1665. package/packages/agent/src/services/privy-wallets.d.ts.map +1 -0
  1666. package/packages/agent/src/services/privy-wallets.js +225 -0
  1667. package/packages/agent/src/services/registry-client-app-meta.d.ts +6 -0
  1668. package/packages/agent/src/services/registry-client-app-meta.d.ts.map +1 -0
  1669. package/packages/agent/src/services/registry-client-app-meta.js +226 -0
  1670. package/packages/agent/src/services/registry-client-endpoints.d.ts +7 -0
  1671. package/packages/agent/src/services/registry-client-endpoints.d.ts.map +1 -0
  1672. package/packages/agent/src/services/registry-client-endpoints.js +190 -0
  1673. package/packages/agent/src/services/registry-client-local.d.ts +4 -0
  1674. package/packages/agent/src/services/registry-client-local.d.ts.map +1 -0
  1675. package/packages/agent/src/services/registry-client-local.js +546 -0
  1676. package/packages/agent/src/services/registry-client-network.d.ts +9 -0
  1677. package/packages/agent/src/services/registry-client-network.d.ts.map +1 -0
  1678. package/packages/agent/src/services/registry-client-network.js +120 -0
  1679. package/packages/agent/src/services/registry-client-queries.d.ts +26 -0
  1680. package/packages/agent/src/services/registry-client-queries.d.ts.map +1 -0
  1681. package/packages/agent/src/services/registry-client-queries.js +195 -0
  1682. package/packages/agent/src/services/registry-client-types.d.ts +101 -0
  1683. package/packages/agent/src/services/registry-client-types.d.ts.map +1 -0
  1684. package/packages/agent/src/services/registry-client-types.js +1 -0
  1685. package/packages/agent/src/services/registry-client.d.ts +39 -0
  1686. package/packages/agent/src/services/registry-client.d.ts.map +1 -0
  1687. package/packages/agent/src/services/registry-client.js +332 -0
  1688. package/packages/agent/src/services/relationships-graph.d.ts +195 -0
  1689. package/packages/agent/src/services/relationships-graph.d.ts.map +1 -0
  1690. package/packages/agent/src/services/relationships-graph.js +1442 -0
  1691. package/packages/agent/src/services/remote-signing-service.d.ts +58 -0
  1692. package/packages/agent/src/services/remote-signing-service.d.ts.map +1 -0
  1693. package/packages/agent/src/services/remote-signing-service.js +185 -0
  1694. package/packages/agent/src/services/sandbox-engine.d.ts +96 -0
  1695. package/packages/agent/src/services/sandbox-engine.d.ts.map +1 -0
  1696. package/packages/agent/src/services/sandbox-engine.js +604 -0
  1697. package/packages/agent/src/services/sandbox-manager.d.ts +106 -0
  1698. package/packages/agent/src/services/sandbox-manager.d.ts.map +1 -0
  1699. package/packages/agent/src/services/sandbox-manager.js +380 -0
  1700. package/packages/agent/src/services/self-updater.d.ts +21 -0
  1701. package/packages/agent/src/services/self-updater.d.ts.map +1 -0
  1702. package/packages/agent/src/services/self-updater.js +162 -0
  1703. package/packages/agent/src/services/send-handler-availability.d.ts +5 -0
  1704. package/packages/agent/src/services/send-handler-availability.d.ts.map +1 -0
  1705. package/packages/agent/src/services/send-handler-availability.js +20 -0
  1706. package/packages/agent/src/services/signal-pairing.d.ts +57 -0
  1707. package/packages/agent/src/services/signal-pairing.d.ts.map +1 -0
  1708. package/packages/agent/src/services/signal-pairing.js +407 -0
  1709. package/packages/agent/src/services/signing-policy.d.ts +44 -0
  1710. package/packages/agent/src/services/signing-policy.d.ts.map +1 -0
  1711. package/packages/agent/src/services/signing-policy.js +165 -0
  1712. package/packages/agent/src/services/skill-catalog-client.d.ts +47 -0
  1713. package/packages/agent/src/services/skill-catalog-client.d.ts.map +1 -0
  1714. package/packages/agent/src/services/skill-catalog-client.js +130 -0
  1715. package/packages/agent/src/services/skill-marketplace.d.ts +42 -0
  1716. package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -0
  1717. package/packages/agent/src/services/skill-marketplace.js +689 -0
  1718. package/packages/agent/src/services/steward-evm-account.d.ts +58 -0
  1719. package/packages/agent/src/services/steward-evm-account.d.ts.map +1 -0
  1720. package/packages/agent/src/services/steward-evm-account.js +304 -0
  1721. package/packages/agent/src/services/steward-evm-bridge.d.ts +35 -0
  1722. package/packages/agent/src/services/steward-evm-bridge.d.ts.map +1 -0
  1723. package/packages/agent/src/services/steward-evm-bridge.js +99 -0
  1724. package/packages/agent/src/services/stream-manager.d.ts +121 -0
  1725. package/packages/agent/src/services/stream-manager.d.ts.map +1 -0
  1726. package/packages/agent/src/services/stream-manager.js +609 -0
  1727. package/packages/agent/src/services/telegram-account-auth.d.ts +99 -0
  1728. package/packages/agent/src/services/telegram-account-auth.d.ts.map +1 -0
  1729. package/packages/agent/src/services/telegram-account-auth.js +611 -0
  1730. package/packages/agent/src/services/tts-stream-bridge.d.ts +83 -0
  1731. package/packages/agent/src/services/tts-stream-bridge.d.ts.map +1 -0
  1732. package/packages/agent/src/services/tts-stream-bridge.js +360 -0
  1733. package/packages/agent/src/services/update-checker.d.ts +29 -0
  1734. package/packages/agent/src/services/update-checker.d.ts.map +1 -0
  1735. package/packages/agent/src/services/update-checker.js +134 -0
  1736. package/packages/agent/src/services/version-compat.d.ts +99 -0
  1737. package/packages/agent/src/services/version-compat.d.ts.map +1 -0
  1738. package/packages/agent/src/services/version-compat.js +203 -0
  1739. package/packages/agent/src/services/whatsapp-pairing.d.ts +41 -0
  1740. package/packages/agent/src/services/whatsapp-pairing.d.ts.map +1 -0
  1741. package/packages/agent/src/services/whatsapp-pairing.js +209 -0
  1742. package/packages/agent/src/shared/ui-catalog-prompt.d.ts +52 -0
  1743. package/packages/agent/src/shared/ui-catalog-prompt.d.ts.map +1 -0
  1744. package/packages/agent/src/shared/ui-catalog-prompt.js +1028 -0
  1745. package/packages/agent/src/triggers/action.d.ts +4 -0
  1746. package/packages/agent/src/triggers/action.d.ts.map +1 -0
  1747. package/packages/agent/src/triggers/action.js +316 -0
  1748. package/packages/agent/src/triggers/runtime.d.ts +26 -0
  1749. package/packages/agent/src/triggers/runtime.d.ts.map +1 -0
  1750. package/packages/agent/src/triggers/runtime.js +507 -0
  1751. package/packages/agent/src/triggers/scheduling.d.ts +76 -0
  1752. package/packages/agent/src/triggers/scheduling.d.ts.map +1 -0
  1753. package/packages/agent/src/triggers/scheduling.js +401 -0
  1754. package/packages/agent/src/triggers/types.d.ts +92 -0
  1755. package/packages/agent/src/triggers/types.d.ts.map +1 -0
  1756. package/packages/agent/src/triggers/types.js +1 -0
  1757. package/packages/agent/src/types/agent-skills.d.ts +19 -0
  1758. package/packages/agent/src/types/agent-skills.d.ts.map +1 -0
  1759. package/packages/agent/src/types/agent-skills.js +7 -0
  1760. package/packages/agent/src/types/config-like.d.ts +17 -0
  1761. package/packages/agent/src/types/config-like.d.ts.map +1 -0
  1762. package/packages/agent/src/types/config-like.js +7 -0
  1763. package/packages/agent/src/types/trajectory.d.ts +147 -0
  1764. package/packages/agent/src/types/trajectory.d.ts.map +1 -0
  1765. package/packages/agent/src/types/trajectory.js +8 -0
  1766. package/packages/agent/src/utils/exec-safety.d.ts +2 -0
  1767. package/packages/agent/src/utils/exec-safety.d.ts.map +1 -0
  1768. package/packages/agent/src/utils/exec-safety.js +21 -0
  1769. package/packages/agent/src/utils/number-parsing.d.ts +26 -0
  1770. package/packages/agent/src/utils/number-parsing.d.ts.map +1 -0
  1771. package/packages/agent/src/utils/number-parsing.js +52 -0
  1772. package/packages/agent/src/version-resolver.d.ts +2 -0
  1773. package/packages/agent/src/version-resolver.d.ts.map +1 -0
  1774. package/packages/agent/src/version-resolver.js +50 -0
  1775. package/packages/app-core/src/App.d.ts +5 -0
  1776. package/packages/app-core/src/App.d.ts.map +1 -0
  1777. package/packages/app-core/src/App.js +374 -0
  1778. package/packages/app-core/src/api/auth.d.ts +46 -0
  1779. package/packages/app-core/src/api/auth.d.ts.map +1 -0
  1780. package/packages/app-core/src/api/auth.js +149 -0
  1781. package/packages/app-core/src/api/client-agent.d.ts +507 -0
  1782. package/packages/app-core/src/api/client-agent.d.ts.map +1 -0
  1783. package/packages/app-core/src/api/client-agent.js +1180 -0
  1784. package/packages/app-core/src/api/client-automations.d.ts +8 -0
  1785. package/packages/app-core/src/api/client-automations.d.ts.map +1 -0
  1786. package/packages/app-core/src/api/client-automations.js +7 -0
  1787. package/packages/app-core/src/api/client-base.d.ts +82 -0
  1788. package/packages/app-core/src/api/client-base.d.ts.map +1 -0
  1789. package/packages/app-core/src/api/client-base.js +684 -0
  1790. package/packages/app-core/src/api/client-browser-workspace.d.ts +25 -0
  1791. package/packages/app-core/src/api/client-browser-workspace.d.ts.map +1 -0
  1792. package/packages/app-core/src/api/client-browser-workspace.js +34 -0
  1793. package/packages/app-core/src/api/client-chat.d.ts +333 -0
  1794. package/packages/app-core/src/api/client-chat.d.ts.map +1 -0
  1795. package/packages/app-core/src/api/client-chat.js +534 -0
  1796. package/packages/app-core/src/api/client-cloud.d.ts +281 -0
  1797. package/packages/app-core/src/api/client-cloud.d.ts.map +1 -0
  1798. package/packages/app-core/src/api/client-cloud.js +397 -0
  1799. package/packages/app-core/src/api/client-computeruse.d.ts +32 -0
  1800. package/packages/app-core/src/api/client-computeruse.d.ts.map +1 -0
  1801. package/packages/app-core/src/api/client-computeruse.js +16 -0
  1802. package/packages/app-core/src/api/client-local-inference.d.ts +62 -0
  1803. package/packages/app-core/src/api/client-local-inference.d.ts.map +1 -0
  1804. package/packages/app-core/src/api/client-local-inference.js +87 -0
  1805. package/packages/app-core/src/api/client-n8n.d.ts +23 -0
  1806. package/packages/app-core/src/api/client-n8n.d.ts.map +1 -0
  1807. package/packages/app-core/src/api/client-n8n.js +34 -0
  1808. package/packages/app-core/src/api/client-skills.d.ts +460 -0
  1809. package/packages/app-core/src/api/client-skills.d.ts.map +1 -0
  1810. package/packages/app-core/src/api/client-skills.js +599 -0
  1811. package/packages/app-core/src/api/client-types-babylon.d.ts +254 -0
  1812. package/packages/app-core/src/api/client-types-babylon.d.ts.map +1 -0
  1813. package/packages/app-core/src/api/client-types-babylon.js +2 -0
  1814. package/packages/app-core/src/api/client-types-chat.d.ts +318 -0
  1815. package/packages/app-core/src/api/client-types-chat.d.ts.map +1 -0
  1816. package/packages/app-core/src/api/client-types-chat.js +5 -0
  1817. package/packages/app-core/src/api/client-types-cloud.d.ts +799 -0
  1818. package/packages/app-core/src/api/client-types-cloud.d.ts.map +1 -0
  1819. package/packages/app-core/src/api/client-types-cloud.js +57 -0
  1820. package/packages/app-core/src/api/client-types-config.d.ts +554 -0
  1821. package/packages/app-core/src/api/client-types-config.d.ts.map +1 -0
  1822. package/packages/app-core/src/api/client-types-config.js +5 -0
  1823. package/packages/app-core/src/api/client-types-core.d.ts +334 -0
  1824. package/packages/app-core/src/api/client-types-core.d.ts.map +1 -0
  1825. package/packages/app-core/src/api/client-types-core.js +22 -0
  1826. package/packages/app-core/src/api/client-types-relationships.d.ts +133 -0
  1827. package/packages/app-core/src/api/client-types-relationships.d.ts.map +1 -0
  1828. package/packages/app-core/src/api/client-types-relationships.js +1 -0
  1829. package/packages/app-core/src/api/client-types.d.ts +7 -0
  1830. package/packages/app-core/src/api/client-types.d.ts.map +1 -0
  1831. package/packages/app-core/src/api/client-types.js +10 -0
  1832. package/packages/app-core/src/api/client-wallet.d.ts +125 -0
  1833. package/packages/app-core/src/api/client-wallet.d.ts.map +1 -0
  1834. package/packages/app-core/src/api/client-wallet.js +219 -0
  1835. package/packages/app-core/src/api/client.d.ts +40 -0
  1836. package/packages/app-core/src/api/client.d.ts.map +1 -0
  1837. package/packages/app-core/src/api/client.js +36 -0
  1838. package/packages/app-core/src/api/cloud-secrets.d.ts +23 -0
  1839. package/packages/app-core/src/api/cloud-secrets.d.ts.map +1 -0
  1840. package/packages/app-core/src/api/cloud-secrets.js +50 -0
  1841. package/packages/app-core/src/api/compat-route-shared.d.ts +16 -0
  1842. package/packages/app-core/src/api/compat-route-shared.d.ts.map +1 -0
  1843. package/packages/app-core/src/api/compat-route-shared.js +99 -0
  1844. package/packages/app-core/src/api/index.d.ts +2 -0
  1845. package/packages/app-core/src/api/index.d.ts.map +1 -0
  1846. package/packages/app-core/src/api/index.js +1 -0
  1847. package/packages/app-core/src/api/response.d.ts +12 -0
  1848. package/packages/app-core/src/api/response.d.ts.map +1 -0
  1849. package/packages/app-core/src/api/response.js +18 -0
  1850. package/packages/app-core/src/api/server-cloud-tts.d.ts +41 -0
  1851. package/packages/app-core/src/api/server-cloud-tts.d.ts.map +1 -0
  1852. package/packages/app-core/src/api/server-cloud-tts.js +469 -0
  1853. package/packages/app-core/src/autonomy/index.d.ts +48 -0
  1854. package/packages/app-core/src/autonomy/index.d.ts.map +1 -0
  1855. package/packages/app-core/src/autonomy/index.js +330 -0
  1856. package/packages/app-core/src/bridge/capacitor-bridge.d.ts +153 -0
  1857. package/packages/app-core/src/bridge/capacitor-bridge.d.ts.map +1 -0
  1858. package/packages/app-core/src/bridge/capacitor-bridge.js +195 -0
  1859. package/packages/app-core/src/bridge/electrobun-rpc.d.ts +57 -0
  1860. package/packages/app-core/src/bridge/electrobun-rpc.d.ts.map +1 -0
  1861. package/packages/app-core/src/bridge/electrobun-rpc.js +87 -0
  1862. package/packages/app-core/src/bridge/electrobun-runtime.d.ts +3 -0
  1863. package/packages/app-core/src/bridge/electrobun-runtime.d.ts.map +1 -0
  1864. package/packages/app-core/src/bridge/electrobun-runtime.js +34 -0
  1865. package/packages/app-core/src/bridge/gateway-discovery.d.ts +17 -0
  1866. package/packages/app-core/src/bridge/gateway-discovery.d.ts.map +1 -0
  1867. package/packages/app-core/src/bridge/gateway-discovery.js +49 -0
  1868. package/packages/app-core/src/bridge/index.d.ts +6 -0
  1869. package/packages/app-core/src/bridge/index.d.ts.map +1 -0
  1870. package/packages/app-core/src/bridge/index.js +5 -0
  1871. package/packages/app-core/src/bridge/native-plugins.d.ts +290 -0
  1872. package/packages/app-core/src/bridge/native-plugins.d.ts.map +1 -0
  1873. package/packages/app-core/src/bridge/native-plugins.js +55 -0
  1874. package/packages/app-core/src/bridge/plugin-bridge.d.ts +109 -0
  1875. package/packages/app-core/src/bridge/plugin-bridge.d.ts.map +1 -0
  1876. package/packages/app-core/src/bridge/plugin-bridge.js +201 -0
  1877. package/packages/app-core/src/bridge/storage-bridge.d.ts +39 -0
  1878. package/packages/app-core/src/bridge/storage-bridge.d.ts.map +1 -0
  1879. package/packages/app-core/src/bridge/storage-bridge.js +140 -0
  1880. package/packages/app-core/src/character/character-draft-helpers.d.ts +35 -0
  1881. package/packages/app-core/src/character/character-draft-helpers.d.ts.map +1 -0
  1882. package/packages/app-core/src/character/character-draft-helpers.js +245 -0
  1883. package/packages/app-core/src/character-catalog.d.ts +17 -0
  1884. package/packages/app-core/src/character-catalog.d.ts.map +1 -0
  1885. package/packages/app-core/src/character-catalog.js +39 -0
  1886. package/packages/app-core/src/chat/coding-agent-session-state.d.ts +16 -0
  1887. package/packages/app-core/src/chat/coding-agent-session-state.d.ts.map +1 -0
  1888. package/packages/app-core/src/chat/coding-agent-session-state.js +27 -0
  1889. package/packages/app-core/src/chat/index.d.ts +66 -0
  1890. package/packages/app-core/src/chat/index.d.ts.map +1 -0
  1891. package/packages/app-core/src/chat/index.js +239 -0
  1892. package/packages/app-core/src/components/apps/AppsCatalogGrid.d.ts +16 -0
  1893. package/packages/app-core/src/components/apps/AppsCatalogGrid.d.ts.map +1 -0
  1894. package/packages/app-core/src/components/apps/AppsCatalogGrid.js +26 -0
  1895. package/packages/app-core/src/components/apps/GameView.d.ts +18 -0
  1896. package/packages/app-core/src/components/apps/GameView.d.ts.map +1 -0
  1897. package/packages/app-core/src/components/apps/GameView.js +1055 -0
  1898. package/packages/app-core/src/components/apps/GameViewOverlay.d.ts +2 -0
  1899. package/packages/app-core/src/components/apps/GameViewOverlay.d.ts.map +1 -0
  1900. package/packages/app-core/src/components/apps/GameViewOverlay.js +120 -0
  1901. package/packages/app-core/src/components/apps/RunningAppsRow.d.ts +12 -0
  1902. package/packages/app-core/src/components/apps/RunningAppsRow.d.ts.map +1 -0
  1903. package/packages/app-core/src/components/apps/RunningAppsRow.js +34 -0
  1904. package/packages/app-core/src/components/apps/app-identity.d.ts +32 -0
  1905. package/packages/app-core/src/components/apps/app-identity.d.ts.map +1 -0
  1906. package/packages/app-core/src/components/apps/app-identity.js +133 -0
  1907. package/packages/app-core/src/components/apps/helpers.d.ts +39 -0
  1908. package/packages/app-core/src/components/apps/helpers.d.ts.map +1 -0
  1909. package/packages/app-core/src/components/apps/helpers.js +242 -0
  1910. package/packages/app-core/src/components/apps/internal-tool-apps.d.ts +7 -0
  1911. package/packages/app-core/src/components/apps/internal-tool-apps.d.ts.map +1 -0
  1912. package/packages/app-core/src/components/apps/internal-tool-apps.js +116 -0
  1913. package/packages/app-core/src/components/apps/overlay-app-api.d.ts +53 -0
  1914. package/packages/app-core/src/components/apps/overlay-app-api.d.ts.map +1 -0
  1915. package/packages/app-core/src/components/apps/overlay-app-api.js +8 -0
  1916. package/packages/app-core/src/components/apps/overlay-app-registry.d.ts +19 -0
  1917. package/packages/app-core/src/components/apps/overlay-app-registry.d.ts.map +1 -0
  1918. package/packages/app-core/src/components/apps/overlay-app-registry.js +47 -0
  1919. package/packages/app-core/src/components/apps/run-attention.d.ts +3 -0
  1920. package/packages/app-core/src/components/apps/run-attention.d.ts.map +1 -0
  1921. package/packages/app-core/src/components/apps/run-attention.js +77 -0
  1922. package/packages/app-core/src/components/apps/surfaces/registry.d.ts +11 -0
  1923. package/packages/app-core/src/components/apps/surfaces/registry.d.ts.map +1 -0
  1924. package/packages/app-core/src/components/apps/surfaces/registry.js +23 -0
  1925. package/packages/app-core/src/components/apps/surfaces/types.d.ts +10 -0
  1926. package/packages/app-core/src/components/apps/surfaces/types.d.ts.map +1 -0
  1927. package/packages/app-core/src/components/apps/surfaces/types.js +1 -0
  1928. package/packages/app-core/src/components/apps/viewer-auth.d.ts +7 -0
  1929. package/packages/app-core/src/components/apps/viewer-auth.d.ts.map +1 -0
  1930. package/packages/app-core/src/components/apps/viewer-auth.js +55 -0
  1931. package/packages/app-core/src/components/character/CharacterEditor.d.ts +12 -0
  1932. package/packages/app-core/src/components/character/CharacterEditor.d.ts.map +1 -0
  1933. package/packages/app-core/src/components/character/CharacterEditor.js +1034 -0
  1934. package/packages/app-core/src/components/character/CharacterEditorPanels.d.ts +66 -0
  1935. package/packages/app-core/src/components/character/CharacterEditorPanels.d.ts.map +1 -0
  1936. package/packages/app-core/src/components/character/CharacterEditorPanels.js +310 -0
  1937. package/packages/app-core/src/components/character/CharacterRoster.d.ts +32 -0
  1938. package/packages/app-core/src/components/character/CharacterRoster.d.ts.map +1 -0
  1939. package/packages/app-core/src/components/character/CharacterRoster.js +111 -0
  1940. package/packages/app-core/src/components/character/character-editor-helpers.d.ts +42 -0
  1941. package/packages/app-core/src/components/character/character-editor-helpers.d.ts.map +1 -0
  1942. package/packages/app-core/src/components/character/character-editor-helpers.js +58 -0
  1943. package/packages/app-core/src/components/character/character-greeting.d.ts +5 -0
  1944. package/packages/app-core/src/components/character/character-greeting.d.ts.map +1 -0
  1945. package/packages/app-core/src/components/character/character-greeting.js +22 -0
  1946. package/packages/app-core/src/components/character/character-voice-config.d.ts +33 -0
  1947. package/packages/app-core/src/components/character/character-voice-config.d.ts.map +1 -0
  1948. package/packages/app-core/src/components/character/character-voice-config.js +95 -0
  1949. package/packages/app-core/src/components/chat/AgentActivityBox.d.ts +8 -0
  1950. package/packages/app-core/src/components/chat/AgentActivityBox.d.ts.map +1 -0
  1951. package/packages/app-core/src/components/chat/AgentActivityBox.js +33 -0
  1952. package/packages/app-core/src/components/chat/AppsSection.d.ts +8 -0
  1953. package/packages/app-core/src/components/chat/AppsSection.d.ts.map +1 -0
  1954. package/packages/app-core/src/components/chat/AppsSection.js +133 -0
  1955. package/packages/app-core/src/components/chat/MessageContent.d.ts +41 -0
  1956. package/packages/app-core/src/components/chat/MessageContent.d.ts.map +1 -0
  1957. package/packages/app-core/src/components/chat/MessageContent.js +666 -0
  1958. package/packages/app-core/src/components/chat/SaveCommandModal.d.ts +9 -0
  1959. package/packages/app-core/src/components/chat/SaveCommandModal.d.ts.map +1 -0
  1960. package/packages/app-core/src/components/chat/SaveCommandModal.js +59 -0
  1961. package/packages/app-core/src/components/chat/TasksEventsPanel.d.ts +20 -0
  1962. package/packages/app-core/src/components/chat/TasksEventsPanel.d.ts.map +1 -0
  1963. package/packages/app-core/src/components/chat/TasksEventsPanel.js +11 -0
  1964. package/packages/app-core/src/components/chat/widgets/plugins/agent-orchestrator.d.ts +3 -0
  1965. package/packages/app-core/src/components/chat/widgets/plugins/agent-orchestrator.d.ts.map +1 -0
  1966. package/packages/app-core/src/components/chat/widgets/plugins/agent-orchestrator.js +165 -0
  1967. package/packages/app-core/src/components/chat/widgets/plugins/todo.d.ts +3 -0
  1968. package/packages/app-core/src/components/chat/widgets/plugins/todo.d.ts.map +1 -0
  1969. package/packages/app-core/src/components/chat/widgets/plugins/todo.js +109 -0
  1970. package/packages/app-core/src/components/chat/widgets/shared.d.ts +15 -0
  1971. package/packages/app-core/src/components/chat/widgets/shared.d.ts.map +1 -0
  1972. package/packages/app-core/src/components/chat/widgets/shared.js +7 -0
  1973. package/packages/app-core/src/components/chat/widgets/types.d.ts +16 -0
  1974. package/packages/app-core/src/components/chat/widgets/types.d.ts.map +1 -0
  1975. package/packages/app-core/src/components/chat/widgets/types.js +1 -0
  1976. package/packages/app-core/src/components/cloud/CloudSourceControls.d.ts +13 -0
  1977. package/packages/app-core/src/components/cloud/CloudSourceControls.d.ts.map +1 -0
  1978. package/packages/app-core/src/components/cloud/CloudSourceControls.js +18 -0
  1979. package/packages/app-core/src/components/cloud/CloudStatusBadge.d.ts +33 -0
  1980. package/packages/app-core/src/components/cloud/CloudStatusBadge.d.ts.map +1 -0
  1981. package/packages/app-core/src/components/cloud/CloudStatusBadge.js +93 -0
  1982. package/packages/app-core/src/components/cloud/FlaminaGuide.d.ts +10 -0
  1983. package/packages/app-core/src/components/cloud/FlaminaGuide.d.ts.map +1 -0
  1984. package/packages/app-core/src/components/cloud/FlaminaGuide.js +86 -0
  1985. package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.d.ts +24 -0
  1986. package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.d.ts.map +1 -0
  1987. package/packages/app-core/src/components/cloud/StripeEmbeddedCheckout.js +101 -0
  1988. package/packages/app-core/src/components/config-ui/config-control-primitives.d.ts +14 -0
  1989. package/packages/app-core/src/components/config-ui/config-control-primitives.d.ts.map +1 -0
  1990. package/packages/app-core/src/components/config-ui/config-control-primitives.js +22 -0
  1991. package/packages/app-core/src/components/config-ui/config-field.d.ts +58 -0
  1992. package/packages/app-core/src/components/config-ui/config-field.d.ts.map +1 -0
  1993. package/packages/app-core/src/components/config-ui/config-field.js +873 -0
  1994. package/packages/app-core/src/components/config-ui/config-renderer.d.ts +164 -0
  1995. package/packages/app-core/src/components/config-ui/config-renderer.d.ts.map +1 -0
  1996. package/packages/app-core/src/components/config-ui/config-renderer.js +397 -0
  1997. package/packages/app-core/src/components/config-ui/index.d.ts +5 -0
  1998. package/packages/app-core/src/components/config-ui/index.d.ts.map +1 -0
  1999. package/packages/app-core/src/components/config-ui/index.js +4 -0
  2000. package/packages/app-core/src/components/config-ui/ui-renderer.d.ts +15 -0
  2001. package/packages/app-core/src/components/config-ui/ui-renderer.d.ts.map +1 -0
  2002. package/packages/app-core/src/components/config-ui/ui-renderer.js +824 -0
  2003. package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.d.ts +2 -0
  2004. package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.d.ts.map +1 -0
  2005. package/packages/app-core/src/components/connectors/BlueBubblesStatusPanel.js +61 -0
  2006. package/packages/app-core/src/components/connectors/ConnectorSetupPanel.d.ts +12 -0
  2007. package/packages/app-core/src/components/connectors/ConnectorSetupPanel.d.ts.map +1 -0
  2008. package/packages/app-core/src/components/connectors/ConnectorSetupPanel.js +90 -0
  2009. package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.d.ts +2 -0
  2010. package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.d.ts.map +1 -0
  2011. package/packages/app-core/src/components/connectors/DiscordLocalConnectorPanel.js +249 -0
  2012. package/packages/app-core/src/components/connectors/IMessageStatusPanel.d.ts +2 -0
  2013. package/packages/app-core/src/components/connectors/IMessageStatusPanel.d.ts.map +1 -0
  2014. package/packages/app-core/src/components/connectors/IMessageStatusPanel.js +44 -0
  2015. package/packages/app-core/src/components/connectors/SignalQrOverlay.d.ts +7 -0
  2016. package/packages/app-core/src/components/connectors/SignalQrOverlay.d.ts.map +1 -0
  2017. package/packages/app-core/src/components/connectors/SignalQrOverlay.js +63 -0
  2018. package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.d.ts +2 -0
  2019. package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.d.ts.map +1 -0
  2020. package/packages/app-core/src/components/connectors/TelegramAccountConnectorPanel.js +202 -0
  2021. package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.d.ts +2 -0
  2022. package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.d.ts.map +1 -0
  2023. package/packages/app-core/src/components/connectors/TelegramBotSetupPanel.js +81 -0
  2024. package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.d.ts +8 -0
  2025. package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.d.ts.map +1 -0
  2026. package/packages/app-core/src/components/connectors/WhatsAppQrOverlay.js +52 -0
  2027. package/packages/app-core/src/components/conversations/ConversationRenameDialog.d.ts +9 -0
  2028. package/packages/app-core/src/components/conversations/ConversationRenameDialog.d.ts.map +1 -0
  2029. package/packages/app-core/src/components/conversations/ConversationRenameDialog.js +46 -0
  2030. package/packages/app-core/src/components/conversations/ConversationsSidebar.d.ts +9 -0
  2031. package/packages/app-core/src/components/conversations/ConversationsSidebar.d.ts.map +1 -0
  2032. package/packages/app-core/src/components/conversations/ConversationsSidebar.js +348 -0
  2033. package/packages/app-core/src/components/conversations/conversation-sidebar-model.d.ts +67 -0
  2034. package/packages/app-core/src/components/conversations/conversation-sidebar-model.d.ts.map +1 -0
  2035. package/packages/app-core/src/components/conversations/conversation-sidebar-model.js +227 -0
  2036. package/packages/app-core/src/components/conversations/conversation-utils.d.ts +9 -0
  2037. package/packages/app-core/src/components/conversations/conversation-utils.d.ts.map +1 -0
  2038. package/packages/app-core/src/components/conversations/conversation-utils.js +138 -0
  2039. package/packages/app-core/src/components/custom-actions/CustomActionEditor.d.ts +10 -0
  2040. package/packages/app-core/src/components/custom-actions/CustomActionEditor.d.ts.map +1 -0
  2041. package/packages/app-core/src/components/custom-actions/CustomActionEditor.js +385 -0
  2042. package/packages/app-core/src/components/custom-actions/CustomActionsPanel.d.ts +9 -0
  2043. package/packages/app-core/src/components/custom-actions/CustomActionsPanel.d.ts.map +1 -0
  2044. package/packages/app-core/src/components/custom-actions/CustomActionsPanel.js +158 -0
  2045. package/packages/app-core/src/components/custom-actions/CustomActionsView.d.ts +2 -0
  2046. package/packages/app-core/src/components/custom-actions/CustomActionsView.d.ts.map +1 -0
  2047. package/packages/app-core/src/components/custom-actions/CustomActionsView.js +144 -0
  2048. package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts +44 -0
  2049. package/packages/app-core/src/components/custom-actions/custom-action-form.d.ts.map +1 -0
  2050. package/packages/app-core/src/components/custom-actions/custom-action-form.js +236 -0
  2051. package/packages/app-core/src/components/index.d.ts +92 -0
  2052. package/packages/app-core/src/components/index.d.ts.map +1 -0
  2053. package/packages/app-core/src/components/index.js +92 -0
  2054. package/packages/app-core/src/components/inventory/BscTradePanel.d.ts +17 -0
  2055. package/packages/app-core/src/components/inventory/BscTradePanel.d.ts.map +1 -0
  2056. package/packages/app-core/src/components/inventory/BscTradePanel.js +279 -0
  2057. package/packages/app-core/src/components/inventory/ChainIcon.d.ts +21 -0
  2058. package/packages/app-core/src/components/inventory/ChainIcon.d.ts.map +1 -0
  2059. package/packages/app-core/src/components/inventory/ChainIcon.js +69 -0
  2060. package/packages/app-core/src/components/inventory/CopyableAddress.d.ts +5 -0
  2061. package/packages/app-core/src/components/inventory/CopyableAddress.d.ts.map +1 -0
  2062. package/packages/app-core/src/components/inventory/CopyableAddress.js +14 -0
  2063. package/packages/app-core/src/components/inventory/InventoryToolbar.d.ts +29 -0
  2064. package/packages/app-core/src/components/inventory/InventoryToolbar.d.ts.map +1 -0
  2065. package/packages/app-core/src/components/inventory/InventoryToolbar.js +30 -0
  2066. package/packages/app-core/src/components/inventory/NftGrid.d.ts +10 -0
  2067. package/packages/app-core/src/components/inventory/NftGrid.d.ts.map +1 -0
  2068. package/packages/app-core/src/components/inventory/NftGrid.js +29 -0
  2069. package/packages/app-core/src/components/inventory/TokenLogo.d.ts +12 -0
  2070. package/packages/app-core/src/components/inventory/TokenLogo.d.ts.map +1 -0
  2071. package/packages/app-core/src/components/inventory/TokenLogo.js +33 -0
  2072. package/packages/app-core/src/components/inventory/TokensTable.d.ts +14 -0
  2073. package/packages/app-core/src/components/inventory/TokensTable.d.ts.map +1 -0
  2074. package/packages/app-core/src/components/inventory/TokensTable.js +25 -0
  2075. package/packages/app-core/src/components/inventory/chainConfig.d.ts +89 -0
  2076. package/packages/app-core/src/components/inventory/chainConfig.d.ts.map +1 -0
  2077. package/packages/app-core/src/components/inventory/chainConfig.js +287 -0
  2078. package/packages/app-core/src/components/inventory/constants.d.ts +52 -0
  2079. package/packages/app-core/src/components/inventory/constants.d.ts.map +1 -0
  2080. package/packages/app-core/src/components/inventory/constants.js +121 -0
  2081. package/packages/app-core/src/components/inventory/index.d.ts +9 -0
  2082. package/packages/app-core/src/components/inventory/index.d.ts.map +1 -0
  2083. package/packages/app-core/src/components/inventory/index.js +8 -0
  2084. package/packages/app-core/src/components/inventory/inventory-chain-filters.d.ts +11 -0
  2085. package/packages/app-core/src/components/inventory/inventory-chain-filters.d.ts.map +1 -0
  2086. package/packages/app-core/src/components/inventory/inventory-chain-filters.js +34 -0
  2087. package/packages/app-core/src/components/inventory/media-url.d.ts +6 -0
  2088. package/packages/app-core/src/components/inventory/media-url.d.ts.map +1 -0
  2089. package/packages/app-core/src/components/inventory/media-url.js +28 -0
  2090. package/packages/app-core/src/components/inventory/useInventoryData.d.ts +40 -0
  2091. package/packages/app-core/src/components/inventory/useInventoryData.d.ts.map +1 -0
  2092. package/packages/app-core/src/components/inventory/useInventoryData.js +355 -0
  2093. package/packages/app-core/src/components/local-inference/ActiveModelBar.d.ts +15 -0
  2094. package/packages/app-core/src/components/local-inference/ActiveModelBar.d.ts.map +1 -0
  2095. package/packages/app-core/src/components/local-inference/ActiveModelBar.js +14 -0
  2096. package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.d.ts +10 -0
  2097. package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.d.ts.map +1 -0
  2098. package/packages/app-core/src/components/local-inference/DeviceBridgeStatus.js +47 -0
  2099. package/packages/app-core/src/components/local-inference/DevicesPanel.d.ts +8 -0
  2100. package/packages/app-core/src/components/local-inference/DevicesPanel.d.ts.map +1 -0
  2101. package/packages/app-core/src/components/local-inference/DevicesPanel.js +44 -0
  2102. package/packages/app-core/src/components/local-inference/DownloadProgress.d.ts +7 -0
  2103. package/packages/app-core/src/components/local-inference/DownloadProgress.d.ts.map +1 -0
  2104. package/packages/app-core/src/components/local-inference/DownloadProgress.js +8 -0
  2105. package/packages/app-core/src/components/local-inference/DownloadQueue.d.ts +15 -0
  2106. package/packages/app-core/src/components/local-inference/DownloadQueue.d.ts.map +1 -0
  2107. package/packages/app-core/src/components/local-inference/DownloadQueue.js +21 -0
  2108. package/packages/app-core/src/components/local-inference/FirstRunOffer.d.ts +17 -0
  2109. package/packages/app-core/src/components/local-inference/FirstRunOffer.d.ts.map +1 -0
  2110. package/packages/app-core/src/components/local-inference/FirstRunOffer.js +57 -0
  2111. package/packages/app-core/src/components/local-inference/HardwareBadge.d.ts +12 -0
  2112. package/packages/app-core/src/components/local-inference/HardwareBadge.d.ts.map +1 -0
  2113. package/packages/app-core/src/components/local-inference/HardwareBadge.js +14 -0
  2114. package/packages/app-core/src/components/local-inference/HuggingFaceSearch.d.ts +22 -0
  2115. package/packages/app-core/src/components/local-inference/HuggingFaceSearch.d.ts.map +1 -0
  2116. package/packages/app-core/src/components/local-inference/HuggingFaceSearch.js +68 -0
  2117. package/packages/app-core/src/components/local-inference/LocalInferencePanel.d.ts +8 -0
  2118. package/packages/app-core/src/components/local-inference/LocalInferencePanel.d.ts.map +1 -0
  2119. package/packages/app-core/src/components/local-inference/LocalInferencePanel.js +240 -0
  2120. package/packages/app-core/src/components/local-inference/ModelCard.d.ts +20 -0
  2121. package/packages/app-core/src/components/local-inference/ModelCard.d.ts.map +1 -0
  2122. package/packages/app-core/src/components/local-inference/ModelCard.js +21 -0
  2123. package/packages/app-core/src/components/local-inference/ModelHubView.d.ts +24 -0
  2124. package/packages/app-core/src/components/local-inference/ModelHubView.d.ts.map +1 -0
  2125. package/packages/app-core/src/components/local-inference/ModelHubView.js +21 -0
  2126. package/packages/app-core/src/components/local-inference/ProvidersList.d.ts +15 -0
  2127. package/packages/app-core/src/components/local-inference/ProvidersList.d.ts.map +1 -0
  2128. package/packages/app-core/src/components/local-inference/ProvidersList.js +62 -0
  2129. package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts +13 -0
  2130. package/packages/app-core/src/components/local-inference/RoutingMatrix.d.ts.map +1 -0
  2131. package/packages/app-core/src/components/local-inference/RoutingMatrix.js +105 -0
  2132. package/packages/app-core/src/components/local-inference/SlotAssignments.d.ts +15 -0
  2133. package/packages/app-core/src/components/local-inference/SlotAssignments.d.ts.map +1 -0
  2134. package/packages/app-core/src/components/local-inference/SlotAssignments.js +58 -0
  2135. package/packages/app-core/src/components/local-inference/hub-utils.d.ts +27 -0
  2136. package/packages/app-core/src/components/local-inference/hub-utils.d.ts.map +1 -0
  2137. package/packages/app-core/src/components/local-inference/hub-utils.js +86 -0
  2138. package/packages/app-core/src/components/music/MusicPlayerGlobal.d.ts +19 -0
  2139. package/packages/app-core/src/components/music/MusicPlayerGlobal.d.ts.map +1 -0
  2140. package/packages/app-core/src/components/music/MusicPlayerGlobal.js +128 -0
  2141. package/packages/app-core/src/components/onboarding/ConnectionStep.d.ts +2 -0
  2142. package/packages/app-core/src/components/onboarding/ConnectionStep.d.ts.map +1 -0
  2143. package/packages/app-core/src/components/onboarding/ConnectionStep.js +265 -0
  2144. package/packages/app-core/src/components/onboarding/DeploymentStep.d.ts +6 -0
  2145. package/packages/app-core/src/components/onboarding/DeploymentStep.d.ts.map +1 -0
  2146. package/packages/app-core/src/components/onboarding/DeploymentStep.js +374 -0
  2147. package/packages/app-core/src/components/onboarding/FeaturesStep.d.ts +2 -0
  2148. package/packages/app-core/src/components/onboarding/FeaturesStep.d.ts.map +1 -0
  2149. package/packages/app-core/src/components/onboarding/FeaturesStep.js +136 -0
  2150. package/packages/app-core/src/components/onboarding/OnboardingPanel.d.ts +10 -0
  2151. package/packages/app-core/src/components/onboarding/OnboardingPanel.d.ts.map +1 -0
  2152. package/packages/app-core/src/components/onboarding/OnboardingPanel.js +30 -0
  2153. package/packages/app-core/src/components/onboarding/OnboardingStepNav.d.ts +2 -0
  2154. package/packages/app-core/src/components/onboarding/OnboardingStepNav.d.ts.map +1 -0
  2155. package/packages/app-core/src/components/onboarding/OnboardingStepNav.js +45 -0
  2156. package/packages/app-core/src/components/onboarding/OnboardingTabs.d.ts +10 -0
  2157. package/packages/app-core/src/components/onboarding/OnboardingTabs.d.ts.map +1 -0
  2158. package/packages/app-core/src/components/onboarding/OnboardingTabs.js +10 -0
  2159. package/packages/app-core/src/components/onboarding/OnboardingWizard.d.ts +2 -0
  2160. package/packages/app-core/src/components/onboarding/OnboardingWizard.d.ts.map +1 -0
  2161. package/packages/app-core/src/components/onboarding/OnboardingWizard.js +63 -0
  2162. package/packages/app-core/src/components/onboarding/connection/ConnectionElizaCloudPreProviderScreen.d.ts +5 -0
  2163. package/packages/app-core/src/components/onboarding/connection/ConnectionElizaCloudPreProviderScreen.d.ts.map +1 -0
  2164. package/packages/app-core/src/components/onboarding/connection/ConnectionElizaCloudPreProviderScreen.js +48 -0
  2165. package/packages/app-core/src/components/onboarding/connection/ConnectionHostingScreen.d.ts +6 -0
  2166. package/packages/app-core/src/components/onboarding/connection/ConnectionHostingScreen.d.ts.map +1 -0
  2167. package/packages/app-core/src/components/onboarding/connection/ConnectionHostingScreen.js +13 -0
  2168. package/packages/app-core/src/components/onboarding/connection/ConnectionProviderDetailScreen.d.ts +5 -0
  2169. package/packages/app-core/src/components/onboarding/connection/ConnectionProviderDetailScreen.d.ts.map +1 -0
  2170. package/packages/app-core/src/components/onboarding/connection/ConnectionProviderDetailScreen.js +504 -0
  2171. package/packages/app-core/src/components/onboarding/connection/ConnectionProviderGridScreen.d.ts +17 -0
  2172. package/packages/app-core/src/components/onboarding/connection/ConnectionProviderGridScreen.d.ts.map +1 -0
  2173. package/packages/app-core/src/components/onboarding/connection/ConnectionProviderGridScreen.js +38 -0
  2174. package/packages/app-core/src/components/onboarding/connection/ConnectionRemoteBackendScreen.d.ts +6 -0
  2175. package/packages/app-core/src/components/onboarding/connection/ConnectionRemoteBackendScreen.d.ts.map +1 -0
  2176. package/packages/app-core/src/components/onboarding/connection/ConnectionRemoteBackendScreen.js +25 -0
  2177. package/packages/app-core/src/components/onboarding/connection/ConnectionUiRoot.d.ts +30 -0
  2178. package/packages/app-core/src/components/onboarding/connection/ConnectionUiRoot.d.ts.map +1 -0
  2179. package/packages/app-core/src/components/onboarding/connection/ConnectionUiRoot.js +19 -0
  2180. package/packages/app-core/src/components/onboarding/connection/useAdvanceOnboardingWhenElizaCloudOAuthConnected.d.ts +23 -0
  2181. package/packages/app-core/src/components/onboarding/connection/useAdvanceOnboardingWhenElizaCloudOAuthConnected.d.ts.map +1 -0
  2182. package/packages/app-core/src/components/onboarding/connection/useAdvanceOnboardingWhenElizaCloudOAuthConnected.js +31 -0
  2183. package/packages/app-core/src/components/onboarding/features/FeatureCard.d.ts +14 -0
  2184. package/packages/app-core/src/components/onboarding/features/FeatureCard.d.ts.map +1 -0
  2185. package/packages/app-core/src/components/onboarding/features/FeatureCard.js +17 -0
  2186. package/packages/app-core/src/components/onboarding/onboarding-form-primitives.d.ts +54 -0
  2187. package/packages/app-core/src/components/onboarding/onboarding-form-primitives.d.ts.map +1 -0
  2188. package/packages/app-core/src/components/onboarding/onboarding-form-primitives.js +55 -0
  2189. package/packages/app-core/src/components/onboarding/onboarding-step-chrome.d.ts +40 -0
  2190. package/packages/app-core/src/components/onboarding/onboarding-step-chrome.d.ts.map +1 -0
  2191. package/packages/app-core/src/components/onboarding/onboarding-step-chrome.js +74 -0
  2192. package/packages/app-core/src/components/pages/AdvancedPageView.d.ts +4 -0
  2193. package/packages/app-core/src/components/pages/AdvancedPageView.d.ts.map +1 -0
  2194. package/packages/app-core/src/components/pages/AdvancedPageView.js +72 -0
  2195. package/packages/app-core/src/components/pages/AppsPageView.d.ts +12 -0
  2196. package/packages/app-core/src/components/pages/AppsPageView.d.ts.map +1 -0
  2197. package/packages/app-core/src/components/pages/AppsPageView.js +59 -0
  2198. package/packages/app-core/src/components/pages/AppsView.d.ts +3 -0
  2199. package/packages/app-core/src/components/pages/AppsView.d.ts.map +1 -0
  2200. package/packages/app-core/src/components/pages/AppsView.js +329 -0
  2201. package/packages/app-core/src/components/pages/AutomationRoomChatPane.d.ts +16 -0
  2202. package/packages/app-core/src/components/pages/AutomationRoomChatPane.d.ts.map +1 -0
  2203. package/packages/app-core/src/components/pages/AutomationRoomChatPane.js +202 -0
  2204. package/packages/app-core/src/components/pages/AutomationsView.d.ts +6 -0
  2205. package/packages/app-core/src/components/pages/AutomationsView.d.ts.map +1 -0
  2206. package/packages/app-core/src/components/pages/AutomationsView.js +1024 -0
  2207. package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts +3 -0
  2208. package/packages/app-core/src/components/pages/BrowserWorkspaceView.d.ts.map +1 -0
  2209. package/packages/app-core/src/components/pages/BrowserWorkspaceView.js +494 -0
  2210. package/packages/app-core/src/components/pages/ChatModalView.d.ts +12 -0
  2211. package/packages/app-core/src/components/pages/ChatModalView.d.ts.map +1 -0
  2212. package/packages/app-core/src/components/pages/ChatModalView.js +16 -0
  2213. package/packages/app-core/src/components/pages/ChatView.d.ts +11 -0
  2214. package/packages/app-core/src/components/pages/ChatView.d.ts.map +1 -0
  2215. package/packages/app-core/src/components/pages/ChatView.js +489 -0
  2216. package/packages/app-core/src/components/pages/ConfigPageView.d.ts +12 -0
  2217. package/packages/app-core/src/components/pages/ConfigPageView.d.ts.map +1 -0
  2218. package/packages/app-core/src/components/pages/ConfigPageView.js +279 -0
  2219. package/packages/app-core/src/components/pages/ConnectorsPageView.d.ts +8 -0
  2220. package/packages/app-core/src/components/pages/ConnectorsPageView.d.ts.map +1 -0
  2221. package/packages/app-core/src/components/pages/ConnectorsPageView.js +8 -0
  2222. package/packages/app-core/src/components/pages/DatabasePageView.d.ts +5 -0
  2223. package/packages/app-core/src/components/pages/DatabasePageView.d.ts.map +1 -0
  2224. package/packages/app-core/src/components/pages/DatabasePageView.js +33 -0
  2225. package/packages/app-core/src/components/pages/DatabaseView.d.ts +6 -0
  2226. package/packages/app-core/src/components/pages/DatabaseView.d.ts.map +1 -0
  2227. package/packages/app-core/src/components/pages/DatabaseView.js +250 -0
  2228. package/packages/app-core/src/components/pages/ElizaCloudDashboard.d.ts +12 -0
  2229. package/packages/app-core/src/components/pages/ElizaCloudDashboard.d.ts.map +1 -0
  2230. package/packages/app-core/src/components/pages/ElizaCloudDashboard.js +385 -0
  2231. package/packages/app-core/src/components/pages/HeartbeatForm.d.ts +48 -0
  2232. package/packages/app-core/src/components/pages/HeartbeatForm.d.ts.map +1 -0
  2233. package/packages/app-core/src/components/pages/HeartbeatForm.js +117 -0
  2234. package/packages/app-core/src/components/pages/HeartbeatsView.d.ts +3 -0
  2235. package/packages/app-core/src/components/pages/HeartbeatsView.d.ts.map +1 -0
  2236. package/packages/app-core/src/components/pages/HeartbeatsView.js +396 -0
  2237. package/packages/app-core/src/components/pages/InventoryView.d.ts +2 -0
  2238. package/packages/app-core/src/components/pages/InventoryView.d.ts.map +1 -0
  2239. package/packages/app-core/src/components/pages/InventoryView.js +490 -0
  2240. package/packages/app-core/src/components/pages/KnowledgeView.d.ts +6 -0
  2241. package/packages/app-core/src/components/pages/KnowledgeView.d.ts.map +1 -0
  2242. package/packages/app-core/src/components/pages/KnowledgeView.js +502 -0
  2243. package/packages/app-core/src/components/pages/LogsPageView.d.ts +6 -0
  2244. package/packages/app-core/src/components/pages/LogsPageView.d.ts.map +1 -0
  2245. package/packages/app-core/src/components/pages/LogsPageView.js +6 -0
  2246. package/packages/app-core/src/components/pages/LogsView.d.ts +2 -0
  2247. package/packages/app-core/src/components/pages/LogsView.d.ts.map +1 -0
  2248. package/packages/app-core/src/components/pages/LogsView.js +85 -0
  2249. package/packages/app-core/src/components/pages/MediaGalleryView.d.ts +6 -0
  2250. package/packages/app-core/src/components/pages/MediaGalleryView.d.ts.map +1 -0
  2251. package/packages/app-core/src/components/pages/MediaGalleryView.js +272 -0
  2252. package/packages/app-core/src/components/pages/MemoryDetailPanel.d.ts +5 -0
  2253. package/packages/app-core/src/components/pages/MemoryDetailPanel.d.ts.map +1 -0
  2254. package/packages/app-core/src/components/pages/MemoryDetailPanel.js +17 -0
  2255. package/packages/app-core/src/components/pages/MemoryViewerView.d.ts +5 -0
  2256. package/packages/app-core/src/components/pages/MemoryViewerView.d.ts.map +1 -0
  2257. package/packages/app-core/src/components/pages/MemoryViewerView.js +233 -0
  2258. package/packages/app-core/src/components/pages/PluginCard.d.ts +36 -0
  2259. package/packages/app-core/src/components/pages/PluginCard.d.ts.map +1 -0
  2260. package/packages/app-core/src/components/pages/PluginCard.js +128 -0
  2261. package/packages/app-core/src/components/pages/PluginConfigForm.d.ts +29 -0
  2262. package/packages/app-core/src/components/pages/PluginConfigForm.d.ts.map +1 -0
  2263. package/packages/app-core/src/components/pages/PluginConfigForm.js +133 -0
  2264. package/packages/app-core/src/components/pages/PluginsPageView.d.ts +9 -0
  2265. package/packages/app-core/src/components/pages/PluginsPageView.d.ts.map +1 -0
  2266. package/packages/app-core/src/components/pages/PluginsPageView.js +5 -0
  2267. package/packages/app-core/src/components/pages/PluginsView.d.ts +11 -0
  2268. package/packages/app-core/src/components/pages/PluginsView.d.ts.map +1 -0
  2269. package/packages/app-core/src/components/pages/PluginsView.js +839 -0
  2270. package/packages/app-core/src/components/pages/RelationshipsGraphPanel.d.ts +7 -0
  2271. package/packages/app-core/src/components/pages/RelationshipsGraphPanel.d.ts.map +1 -0
  2272. package/packages/app-core/src/components/pages/RelationshipsGraphPanel.js +395 -0
  2273. package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.d.ts +5 -0
  2274. package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.d.ts.map +1 -0
  2275. package/packages/app-core/src/components/pages/RelationshipsIdentityCluster.js +44 -0
  2276. package/packages/app-core/src/components/pages/RelationshipsView.d.ts +5 -0
  2277. package/packages/app-core/src/components/pages/RelationshipsView.d.ts.map +1 -0
  2278. package/packages/app-core/src/components/pages/RelationshipsView.js +391 -0
  2279. package/packages/app-core/src/components/pages/ReleaseCenterView.d.ts +2 -0
  2280. package/packages/app-core/src/components/pages/ReleaseCenterView.d.ts.map +1 -0
  2281. package/packages/app-core/src/components/pages/ReleaseCenterView.js +192 -0
  2282. package/packages/app-core/src/components/pages/RuntimeView.d.ts +5 -0
  2283. package/packages/app-core/src/components/pages/RuntimeView.d.ts.map +1 -0
  2284. package/packages/app-core/src/components/pages/RuntimeView.js +282 -0
  2285. package/packages/app-core/src/components/pages/SecretsView.d.ts +5 -0
  2286. package/packages/app-core/src/components/pages/SecretsView.d.ts.map +1 -0
  2287. package/packages/app-core/src/components/pages/SecretsView.js +245 -0
  2288. package/packages/app-core/src/components/pages/SettingsView.d.ts +6 -0
  2289. package/packages/app-core/src/components/pages/SettingsView.d.ts.map +1 -0
  2290. package/packages/app-core/src/components/pages/SettingsView.js +471 -0
  2291. package/packages/app-core/src/components/pages/SkillsView.d.ts +6 -0
  2292. package/packages/app-core/src/components/pages/SkillsView.d.ts.map +1 -0
  2293. package/packages/app-core/src/components/pages/SkillsView.js +198 -0
  2294. package/packages/app-core/src/components/pages/SqlEditorPanel.d.ts +13 -0
  2295. package/packages/app-core/src/components/pages/SqlEditorPanel.d.ts.map +1 -0
  2296. package/packages/app-core/src/components/pages/SqlEditorPanel.js +19 -0
  2297. package/packages/app-core/src/components/pages/StreamView.d.ts +4 -0
  2298. package/packages/app-core/src/components/pages/StreamView.d.ts.map +1 -0
  2299. package/packages/app-core/src/components/pages/StreamView.js +113 -0
  2300. package/packages/app-core/src/components/pages/TrajectoriesView.d.ts +9 -0
  2301. package/packages/app-core/src/components/pages/TrajectoriesView.d.ts.map +1 -0
  2302. package/packages/app-core/src/components/pages/TrajectoriesView.js +277 -0
  2303. package/packages/app-core/src/components/pages/TrajectoryDetailView.d.ts +7 -0
  2304. package/packages/app-core/src/components/pages/TrajectoryDetailView.d.ts.map +1 -0
  2305. package/packages/app-core/src/components/pages/TrajectoryDetailView.js +173 -0
  2306. package/packages/app-core/src/components/pages/TriggersView.d.ts +3 -0
  2307. package/packages/app-core/src/components/pages/TriggersView.d.ts.map +1 -0
  2308. package/packages/app-core/src/components/pages/TriggersView.js +2 -0
  2309. package/packages/app-core/src/components/pages/VectorBrowserView.d.ts +13 -0
  2310. package/packages/app-core/src/components/pages/VectorBrowserView.d.ts.map +1 -0
  2311. package/packages/app-core/src/components/pages/VectorBrowserView.js +842 -0
  2312. package/packages/app-core/src/components/pages/automation-conversations.d.ts +15 -0
  2313. package/packages/app-core/src/components/pages/automation-conversations.d.ts.map +1 -0
  2314. package/packages/app-core/src/components/pages/automation-conversations.js +190 -0
  2315. package/packages/app-core/src/components/pages/chat-view-hooks.d.ts +63 -0
  2316. package/packages/app-core/src/components/pages/chat-view-hooks.d.ts.map +1 -0
  2317. package/packages/app-core/src/components/pages/chat-view-hooks.js +531 -0
  2318. package/packages/app-core/src/components/pages/cloud-dashboard-utils.d.ts +93 -0
  2319. package/packages/app-core/src/components/pages/cloud-dashboard-utils.d.ts.map +1 -0
  2320. package/packages/app-core/src/components/pages/cloud-dashboard-utils.js +290 -0
  2321. package/packages/app-core/src/components/pages/config-page-sections.d.ts +90 -0
  2322. package/packages/app-core/src/components/pages/config-page-sections.d.ts.map +1 -0
  2323. package/packages/app-core/src/components/pages/config-page-sections.js +215 -0
  2324. package/packages/app-core/src/components/pages/database-utils.d.ts +30 -0
  2325. package/packages/app-core/src/components/pages/database-utils.d.ts.map +1 -0
  2326. package/packages/app-core/src/components/pages/database-utils.js +133 -0
  2327. package/packages/app-core/src/components/pages/heartbeat-utils.d.ts +80 -0
  2328. package/packages/app-core/src/components/pages/heartbeat-utils.d.ts.map +1 -0
  2329. package/packages/app-core/src/components/pages/heartbeat-utils.js +307 -0
  2330. package/packages/app-core/src/components/pages/knowledge-detail.d.ts +8 -0
  2331. package/packages/app-core/src/components/pages/knowledge-detail.d.ts.map +1 -0
  2332. package/packages/app-core/src/components/pages/knowledge-detail.js +84 -0
  2333. package/packages/app-core/src/components/pages/knowledge-upload.d.ts +25 -0
  2334. package/packages/app-core/src/components/pages/knowledge-upload.d.ts.map +1 -0
  2335. package/packages/app-core/src/components/pages/knowledge-upload.js +124 -0
  2336. package/packages/app-core/src/components/pages/plugin-list-utils.d.ts +82 -0
  2337. package/packages/app-core/src/components/pages/plugin-list-utils.d.ts.map +1 -0
  2338. package/packages/app-core/src/components/pages/plugin-list-utils.js +778 -0
  2339. package/packages/app-core/src/components/pages/plugin-view-connectors.d.ts +57 -0
  2340. package/packages/app-core/src/components/pages/plugin-view-connectors.d.ts.map +1 -0
  2341. package/packages/app-core/src/components/pages/plugin-view-connectors.js +272 -0
  2342. package/packages/app-core/src/components/pages/plugin-view-dialogs.d.ts +36 -0
  2343. package/packages/app-core/src/components/pages/plugin-view-dialogs.d.ts.map +1 -0
  2344. package/packages/app-core/src/components/pages/plugin-view-dialogs.js +63 -0
  2345. package/packages/app-core/src/components/pages/plugin-view-modal.d.ts +34 -0
  2346. package/packages/app-core/src/components/pages/plugin-view-modal.d.ts.map +1 -0
  2347. package/packages/app-core/src/components/pages/plugin-view-modal.js +29 -0
  2348. package/packages/app-core/src/components/pages/plugin-view-sidebar.d.ts +37 -0
  2349. package/packages/app-core/src/components/pages/plugin-view-sidebar.d.ts.map +1 -0
  2350. package/packages/app-core/src/components/pages/plugin-view-sidebar.js +48 -0
  2351. package/packages/app-core/src/components/pages/skill-detail-panel.d.ts +13 -0
  2352. package/packages/app-core/src/components/pages/skill-detail-panel.d.ts.map +1 -0
  2353. package/packages/app-core/src/components/pages/skill-detail-panel.js +161 -0
  2354. package/packages/app-core/src/components/pages/skill-marketplace.d.ts +38 -0
  2355. package/packages/app-core/src/components/pages/skill-marketplace.d.ts.map +1 -0
  2356. package/packages/app-core/src/components/pages/skill-marketplace.js +99 -0
  2357. package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts +43 -0
  2358. package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.d.ts.map +1 -0
  2359. package/packages/app-core/src/components/pages/useBrowserWorkspaceWalletBridge.js +318 -0
  2360. package/packages/app-core/src/components/pages/vector-browser-utils.d.ts +53 -0
  2361. package/packages/app-core/src/components/pages/vector-browser-utils.d.ts.map +1 -0
  2362. package/packages/app-core/src/components/pages/vector-browser-utils.js +246 -0
  2363. package/packages/app-core/src/components/permissions/PermissionIcon.d.ts +4 -0
  2364. package/packages/app-core/src/components/permissions/PermissionIcon.d.ts.map +1 -0
  2365. package/packages/app-core/src/components/permissions/PermissionIcon.js +13 -0
  2366. package/packages/app-core/src/components/permissions/StreamingPermissions.d.ts +21 -0
  2367. package/packages/app-core/src/components/permissions/StreamingPermissions.d.ts.map +1 -0
  2368. package/packages/app-core/src/components/permissions/StreamingPermissions.js +198 -0
  2369. package/packages/app-core/src/components/plugins/showcase-data.d.ts +4 -0
  2370. package/packages/app-core/src/components/plugins/showcase-data.d.ts.map +1 -0
  2371. package/packages/app-core/src/components/plugins/showcase-data.js +461 -0
  2372. package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.d.ts +7 -0
  2373. package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.d.ts.map +1 -0
  2374. package/packages/app-core/src/components/policy-controls/ApprovedAddressesSection.js +73 -0
  2375. package/packages/app-core/src/components/policy-controls/AutoApproveSection.d.ts +7 -0
  2376. package/packages/app-core/src/components/policy-controls/AutoApproveSection.d.ts.map +1 -0
  2377. package/packages/app-core/src/components/policy-controls/AutoApproveSection.js +14 -0
  2378. package/packages/app-core/src/components/policy-controls/PolicyToggle.d.ts +15 -0
  2379. package/packages/app-core/src/components/policy-controls/PolicyToggle.d.ts.map +1 -0
  2380. package/packages/app-core/src/components/policy-controls/PolicyToggle.js +12 -0
  2381. package/packages/app-core/src/components/policy-controls/RateLimitSection.d.ts +7 -0
  2382. package/packages/app-core/src/components/policy-controls/RateLimitSection.d.ts.map +1 -0
  2383. package/packages/app-core/src/components/policy-controls/RateLimitSection.js +11 -0
  2384. package/packages/app-core/src/components/policy-controls/SpendingLimitSection.d.ts +7 -0
  2385. package/packages/app-core/src/components/policy-controls/SpendingLimitSection.d.ts.map +1 -0
  2386. package/packages/app-core/src/components/policy-controls/SpendingLimitSection.js +15 -0
  2387. package/packages/app-core/src/components/policy-controls/TimeWindowSection.d.ts +7 -0
  2388. package/packages/app-core/src/components/policy-controls/TimeWindowSection.d.ts.map +1 -0
  2389. package/packages/app-core/src/components/policy-controls/TimeWindowSection.js +40 -0
  2390. package/packages/app-core/src/components/policy-controls/constants.d.ts +11 -0
  2391. package/packages/app-core/src/components/policy-controls/constants.d.ts.map +1 -0
  2392. package/packages/app-core/src/components/policy-controls/constants.js +41 -0
  2393. package/packages/app-core/src/components/policy-controls/helpers.d.ts +12 -0
  2394. package/packages/app-core/src/components/policy-controls/helpers.d.ts.map +1 -0
  2395. package/packages/app-core/src/components/policy-controls/helpers.js +40 -0
  2396. package/packages/app-core/src/components/policy-controls/index.d.ts +10 -0
  2397. package/packages/app-core/src/components/policy-controls/index.d.ts.map +1 -0
  2398. package/packages/app-core/src/components/policy-controls/index.js +9 -0
  2399. package/packages/app-core/src/components/policy-controls/types.d.ts +58 -0
  2400. package/packages/app-core/src/components/policy-controls/types.d.ts.map +1 -0
  2401. package/packages/app-core/src/components/policy-controls/types.js +7 -0
  2402. package/packages/app-core/src/components/release-center/shared.d.ts +13 -0
  2403. package/packages/app-core/src/components/release-center/shared.d.ts.map +1 -0
  2404. package/packages/app-core/src/components/release-center/shared.js +38 -0
  2405. package/packages/app-core/src/components/release-center/types.d.ts +79 -0
  2406. package/packages/app-core/src/components/release-center/types.d.ts.map +1 -0
  2407. package/packages/app-core/src/components/release-center/types.js +5 -0
  2408. package/packages/app-core/src/components/settings/ApiKeyConfig.d.ts +21 -0
  2409. package/packages/app-core/src/components/settings/ApiKeyConfig.d.ts.map +1 -0
  2410. package/packages/app-core/src/components/settings/ApiKeyConfig.js +111 -0
  2411. package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts +9 -0
  2412. package/packages/app-core/src/components/settings/AppearanceSettingsSection.d.ts.map +1 -0
  2413. package/packages/app-core/src/components/settings/AppearanceSettingsSection.js +232 -0
  2414. package/packages/app-core/src/components/settings/DesktopWorkspaceSection.d.ts +7 -0
  2415. package/packages/app-core/src/components/settings/DesktopWorkspaceSection.d.ts.map +1 -0
  2416. package/packages/app-core/src/components/settings/DesktopWorkspaceSection.js +502 -0
  2417. package/packages/app-core/src/components/settings/LearnedSkills.d.ts +16 -0
  2418. package/packages/app-core/src/components/settings/LearnedSkills.d.ts.map +1 -0
  2419. package/packages/app-core/src/components/settings/LearnedSkills.js +90 -0
  2420. package/packages/app-core/src/components/settings/MediaSettingsSection.d.ts +4 -0
  2421. package/packages/app-core/src/components/settings/MediaSettingsSection.d.ts.map +1 -0
  2422. package/packages/app-core/src/components/settings/MediaSettingsSection.js +163 -0
  2423. package/packages/app-core/src/components/settings/MusicPlayerSettingsPanel.d.ts +7 -0
  2424. package/packages/app-core/src/components/settings/MusicPlayerSettingsPanel.d.ts.map +1 -0
  2425. package/packages/app-core/src/components/settings/MusicPlayerSettingsPanel.js +94 -0
  2426. package/packages/app-core/src/components/settings/PermissionsSection.d.ts +8 -0
  2427. package/packages/app-core/src/components/settings/PermissionsSection.d.ts.map +1 -0
  2428. package/packages/app-core/src/components/settings/PermissionsSection.js +294 -0
  2429. package/packages/app-core/src/components/settings/PolicyControlsView.d.ts +2 -0
  2430. package/packages/app-core/src/components/settings/PolicyControlsView.d.ts.map +1 -0
  2431. package/packages/app-core/src/components/settings/PolicyControlsView.js +236 -0
  2432. package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts +33 -0
  2433. package/packages/app-core/src/components/settings/ProviderSwitcher.d.ts.map +1 -0
  2434. package/packages/app-core/src/components/settings/ProviderSwitcher.js +426 -0
  2435. package/packages/app-core/src/components/settings/SubscriptionStatus.d.ts +26 -0
  2436. package/packages/app-core/src/components/settings/SubscriptionStatus.d.ts.map +1 -0
  2437. package/packages/app-core/src/components/settings/SubscriptionStatus.js +272 -0
  2438. package/packages/app-core/src/components/settings/TrainingSettings.d.ts +19 -0
  2439. package/packages/app-core/src/components/settings/TrainingSettings.d.ts.map +1 -0
  2440. package/packages/app-core/src/components/settings/TrainingSettings.js +184 -0
  2441. package/packages/app-core/src/components/settings/VoiceConfigView.d.ts +5 -0
  2442. package/packages/app-core/src/components/settings/VoiceConfigView.d.ts.map +1 -0
  2443. package/packages/app-core/src/components/settings/VoiceConfigView.js +509 -0
  2444. package/packages/app-core/src/components/settings/cloud-model-schema.d.ts +26 -0
  2445. package/packages/app-core/src/components/settings/cloud-model-schema.d.ts.map +1 -0
  2446. package/packages/app-core/src/components/settings/cloud-model-schema.js +103 -0
  2447. package/packages/app-core/src/components/settings/media-settings-providers.d.ts +13 -0
  2448. package/packages/app-core/src/components/settings/media-settings-providers.d.ts.map +1 -0
  2449. package/packages/app-core/src/components/settings/media-settings-providers.js +352 -0
  2450. package/packages/app-core/src/components/settings/media-settings-types.d.ts +33 -0
  2451. package/packages/app-core/src/components/settings/media-settings-types.d.ts.map +1 -0
  2452. package/packages/app-core/src/components/settings/media-settings-types.js +266 -0
  2453. package/packages/app-core/src/components/settings/permission-controls.d.ts +37 -0
  2454. package/packages/app-core/src/components/settings/permission-controls.d.ts.map +1 -0
  2455. package/packages/app-core/src/components/settings/permission-controls.js +403 -0
  2456. package/packages/app-core/src/components/settings/permission-types.d.ts +44 -0
  2457. package/packages/app-core/src/components/settings/permission-types.d.ts.map +1 -0
  2458. package/packages/app-core/src/components/settings/permission-types.js +215 -0
  2459. package/packages/app-core/src/components/shared/LanguageDropdown.d.ts +24 -0
  2460. package/packages/app-core/src/components/shared/LanguageDropdown.d.ts.map +1 -0
  2461. package/packages/app-core/src/components/shared/LanguageDropdown.js +29 -0
  2462. package/packages/app-core/src/components/shared/ThemeToggle.d.ts +14 -0
  2463. package/packages/app-core/src/components/shared/ThemeToggle.d.ts.map +1 -0
  2464. package/packages/app-core/src/components/shared/ThemeToggle.js +11 -0
  2465. package/packages/app-core/src/components/shared/confirm-delete-control.d.ts +19 -0
  2466. package/packages/app-core/src/components/shared/confirm-delete-control.d.ts.map +1 -0
  2467. package/packages/app-core/src/components/shared/confirm-delete-control.js +22 -0
  2468. package/packages/app-core/src/components/shell/BugReportModal.d.ts +2 -0
  2469. package/packages/app-core/src/components/shell/BugReportModal.d.ts.map +1 -0
  2470. package/packages/app-core/src/components/shell/BugReportModal.js +354 -0
  2471. package/packages/app-core/src/components/shell/CommandPalette.d.ts +2 -0
  2472. package/packages/app-core/src/components/shell/CommandPalette.d.ts.map +1 -0
  2473. package/packages/app-core/src/components/shell/CommandPalette.js +185 -0
  2474. package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.d.ts +2 -0
  2475. package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.d.ts.map +1 -0
  2476. package/packages/app-core/src/components/shell/ComputerUseApprovalOverlay.js +171 -0
  2477. package/packages/app-core/src/components/shell/ConnectionFailedBanner.d.ts +6 -0
  2478. package/packages/app-core/src/components/shell/ConnectionFailedBanner.d.ts.map +1 -0
  2479. package/packages/app-core/src/components/shell/ConnectionFailedBanner.js +23 -0
  2480. package/packages/app-core/src/components/shell/ConnectionLostOverlay.d.ts +2 -0
  2481. package/packages/app-core/src/components/shell/ConnectionLostOverlay.d.ts.map +1 -0
  2482. package/packages/app-core/src/components/shell/ConnectionLostOverlay.js +53 -0
  2483. package/packages/app-core/src/components/shell/Header.d.ts +2 -0
  2484. package/packages/app-core/src/components/shell/Header.d.ts.map +1 -0
  2485. package/packages/app-core/src/components/shell/Header.js +1 -0
  2486. package/packages/app-core/src/components/shell/LoadingScreen.d.ts +13 -0
  2487. package/packages/app-core/src/components/shell/LoadingScreen.d.ts.map +1 -0
  2488. package/packages/app-core/src/components/shell/LoadingScreen.js +86 -0
  2489. package/packages/app-core/src/components/shell/PairingView.d.ts +2 -0
  2490. package/packages/app-core/src/components/shell/PairingView.d.ts.map +1 -0
  2491. package/packages/app-core/src/components/shell/PairingView.js +41 -0
  2492. package/packages/app-core/src/components/shell/RestartBanner.d.ts +2 -0
  2493. package/packages/app-core/src/components/shell/RestartBanner.d.ts.map +1 -0
  2494. package/packages/app-core/src/components/shell/RestartBanner.js +39 -0
  2495. package/packages/app-core/src/components/shell/ShellOverlays.d.ts +5 -0
  2496. package/packages/app-core/src/components/shell/ShellOverlays.d.ts.map +1 -0
  2497. package/packages/app-core/src/components/shell/ShellOverlays.js +15 -0
  2498. package/packages/app-core/src/components/shell/ShortcutsOverlay.d.ts +2 -0
  2499. package/packages/app-core/src/components/shell/ShortcutsOverlay.d.ts.map +1 -0
  2500. package/packages/app-core/src/components/shell/ShortcutsOverlay.js +58 -0
  2501. package/packages/app-core/src/components/shell/StartupFailureView.d.ts +8 -0
  2502. package/packages/app-core/src/components/shell/StartupFailureView.d.ts.map +1 -0
  2503. package/packages/app-core/src/components/shell/StartupFailureView.js +148 -0
  2504. package/packages/app-core/src/components/shell/StartupShell.d.ts +12 -0
  2505. package/packages/app-core/src/components/shell/StartupShell.d.ts.map +1 -0
  2506. package/packages/app-core/src/components/shell/StartupShell.js +139 -0
  2507. package/packages/app-core/src/components/shell/SystemWarningBanner.d.ts +6 -0
  2508. package/packages/app-core/src/components/shell/SystemWarningBanner.d.ts.map +1 -0
  2509. package/packages/app-core/src/components/shell/SystemWarningBanner.js +44 -0
  2510. package/packages/app-core/src/components/stream/StatusBar.d.ts +10 -0
  2511. package/packages/app-core/src/components/stream/StatusBar.d.ts.map +1 -0
  2512. package/packages/app-core/src/components/stream/StatusBar.js +65 -0
  2513. package/packages/app-core/src/components/stream/helpers.d.ts +15 -0
  2514. package/packages/app-core/src/components/stream/helpers.d.ts.map +1 -0
  2515. package/packages/app-core/src/components/stream/helpers.js +16 -0
  2516. package/packages/app-core/src/config/app-config.d.ts +119 -0
  2517. package/packages/app-core/src/config/app-config.d.ts.map +1 -0
  2518. package/packages/app-core/src/config/app-config.js +44 -0
  2519. package/packages/app-core/src/config/boot-config-react.d.ts +5 -0
  2520. package/packages/app-core/src/config/boot-config-react.d.ts.map +1 -0
  2521. package/packages/app-core/src/config/boot-config-react.js +7 -0
  2522. package/packages/app-core/src/config/boot-config-store.d.ts +236 -0
  2523. package/packages/app-core/src/config/boot-config-store.d.ts.map +1 -0
  2524. package/packages/app-core/src/config/boot-config-store.js +144 -0
  2525. package/packages/app-core/src/config/boot-config.d.ts +6 -0
  2526. package/packages/app-core/src/config/boot-config.d.ts.map +1 -0
  2527. package/packages/app-core/src/config/boot-config.js +5 -0
  2528. package/packages/app-core/src/config/branding.d.ts +55 -0
  2529. package/packages/app-core/src/config/branding.d.ts.map +1 -0
  2530. package/packages/app-core/src/config/branding.js +23 -0
  2531. package/packages/app-core/src/config/cloud-only.d.ts +6 -0
  2532. package/packages/app-core/src/config/cloud-only.d.ts.map +1 -0
  2533. package/packages/app-core/src/config/cloud-only.js +15 -0
  2534. package/packages/app-core/src/config/config-catalog.d.ts +376 -0
  2535. package/packages/app-core/src/config/config-catalog.d.ts.map +1 -0
  2536. package/packages/app-core/src/config/config-catalog.js +724 -0
  2537. package/packages/app-core/src/config/index.d.ts +12 -0
  2538. package/packages/app-core/src/config/index.d.ts.map +1 -0
  2539. package/packages/app-core/src/config/index.js +11 -0
  2540. package/packages/app-core/src/config/plugin-auto-enable.d.ts +5 -0
  2541. package/packages/app-core/src/config/plugin-auto-enable.d.ts.map +1 -0
  2542. package/packages/app-core/src/config/plugin-auto-enable.js +47 -0
  2543. package/packages/app-core/src/config/plugin-ui-spec.d.ts +35 -0
  2544. package/packages/app-core/src/config/plugin-ui-spec.d.ts.map +1 -0
  2545. package/packages/app-core/src/config/plugin-ui-spec.js +256 -0
  2546. package/packages/app-core/src/config/ui-spec.d.ts +164 -0
  2547. package/packages/app-core/src/config/ui-spec.d.ts.map +1 -0
  2548. package/packages/app-core/src/config/ui-spec.js +13 -0
  2549. package/packages/app-core/src/config/wechat-config.d.ts +8 -0
  2550. package/packages/app-core/src/config/wechat-config.d.ts.map +1 -0
  2551. package/packages/app-core/src/config/wechat-config.js +23 -0
  2552. package/packages/app-core/src/content-packs/apply-pack.d.ts +33 -0
  2553. package/packages/app-core/src/content-packs/apply-pack.d.ts.map +1 -0
  2554. package/packages/app-core/src/content-packs/apply-pack.js +96 -0
  2555. package/packages/app-core/src/content-packs/bundled-packs.d.ts +14 -0
  2556. package/packages/app-core/src/content-packs/bundled-packs.d.ts.map +1 -0
  2557. package/packages/app-core/src/content-packs/bundled-packs.js +106 -0
  2558. package/packages/app-core/src/content-packs/index.d.ts +4 -0
  2559. package/packages/app-core/src/content-packs/index.d.ts.map +1 -0
  2560. package/packages/app-core/src/content-packs/index.js +3 -0
  2561. package/packages/app-core/src/content-packs/load-pack.d.ts +34 -0
  2562. package/packages/app-core/src/content-packs/load-pack.d.ts.map +1 -0
  2563. package/packages/app-core/src/content-packs/load-pack.js +151 -0
  2564. package/packages/app-core/src/events/index.d.ts +61 -0
  2565. package/packages/app-core/src/events/index.d.ts.map +1 -0
  2566. package/packages/app-core/src/events/index.js +50 -0
  2567. package/packages/app-core/src/hooks/index.d.ts +14 -0
  2568. package/packages/app-core/src/hooks/index.d.ts.map +1 -0
  2569. package/packages/app-core/src/hooks/index.js +13 -0
  2570. package/packages/app-core/src/hooks/useActivityEvents.d.ts +20 -0
  2571. package/packages/app-core/src/hooks/useActivityEvents.d.ts.map +1 -0
  2572. package/packages/app-core/src/hooks/useActivityEvents.js +126 -0
  2573. package/packages/app-core/src/hooks/useBugReport.d.ts +26 -0
  2574. package/packages/app-core/src/hooks/useBugReport.d.ts.map +1 -0
  2575. package/packages/app-core/src/hooks/useBugReport.js +28 -0
  2576. package/packages/app-core/src/hooks/useCanvasWindow.d.ts +38 -0
  2577. package/packages/app-core/src/hooks/useCanvasWindow.d.ts.map +1 -0
  2578. package/packages/app-core/src/hooks/useCanvasWindow.js +277 -0
  2579. package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.d.ts +12 -0
  2580. package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.d.ts.map +1 -0
  2581. package/packages/app-core/src/hooks/useChatAvatarVoiceBridge.js +21 -0
  2582. package/packages/app-core/src/hooks/useContextMenu.d.ts +17 -0
  2583. package/packages/app-core/src/hooks/useContextMenu.d.ts.map +1 -0
  2584. package/packages/app-core/src/hooks/useContextMenu.js +142 -0
  2585. package/packages/app-core/src/hooks/useKeyboardShortcuts.d.ts +5 -0
  2586. package/packages/app-core/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
  2587. package/packages/app-core/src/hooks/useKeyboardShortcuts.js +32 -0
  2588. package/packages/app-core/src/hooks/useMediaQuery.d.ts +4 -0
  2589. package/packages/app-core/src/hooks/useMediaQuery.d.ts.map +1 -0
  2590. package/packages/app-core/src/hooks/useMediaQuery.js +30 -0
  2591. package/packages/app-core/src/hooks/useMusicPlayer.d.ts +54 -0
  2592. package/packages/app-core/src/hooks/useMusicPlayer.d.ts.map +1 -0
  2593. package/packages/app-core/src/hooks/useMusicPlayer.js +117 -0
  2594. package/packages/app-core/src/hooks/useRenderGuard.d.ts +17 -0
  2595. package/packages/app-core/src/hooks/useRenderGuard.d.ts.map +1 -0
  2596. package/packages/app-core/src/hooks/useRenderGuard.js +36 -0
  2597. package/packages/app-core/src/hooks/useSignalPairing.d.ts +12 -0
  2598. package/packages/app-core/src/hooks/useSignalPairing.d.ts.map +1 -0
  2599. package/packages/app-core/src/hooks/useSignalPairing.js +129 -0
  2600. package/packages/app-core/src/hooks/useStreamPopoutNavigation.d.ts +3 -0
  2601. package/packages/app-core/src/hooks/useStreamPopoutNavigation.d.ts.map +1 -0
  2602. package/packages/app-core/src/hooks/useStreamPopoutNavigation.js +4 -0
  2603. package/packages/app-core/src/hooks/useVoiceChat.d.ts +37 -0
  2604. package/packages/app-core/src/hooks/useVoiceChat.d.ts.map +1 -0
  2605. package/packages/app-core/src/hooks/useVoiceChat.js +1310 -0
  2606. package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts +12 -0
  2607. package/packages/app-core/src/hooks/useWhatsAppPairing.d.ts.map +1 -0
  2608. package/packages/app-core/src/hooks/useWhatsAppPairing.js +95 -0
  2609. package/packages/app-core/src/hooks/voice-chat-playback.d.ts +32 -0
  2610. package/packages/app-core/src/hooks/voice-chat-playback.d.ts.map +1 -0
  2611. package/packages/app-core/src/hooks/voice-chat-playback.js +201 -0
  2612. package/packages/app-core/src/hooks/voice-chat-recording.d.ts +6 -0
  2613. package/packages/app-core/src/hooks/voice-chat-recording.d.ts.map +1 -0
  2614. package/packages/app-core/src/hooks/voice-chat-recording.js +46 -0
  2615. package/packages/app-core/src/hooks/voice-chat-types.d.ts +193 -0
  2616. package/packages/app-core/src/hooks/voice-chat-types.d.ts.map +1 -0
  2617. package/packages/app-core/src/hooks/voice-chat-types.js +185 -0
  2618. package/packages/app-core/src/i18n/index.d.ts +7 -0
  2619. package/packages/app-core/src/i18n/index.d.ts.map +1 -0
  2620. package/packages/app-core/src/i18n/index.js +57 -0
  2621. package/packages/app-core/src/i18n/locales/en.json +2715 -0
  2622. package/packages/app-core/src/i18n/locales/es.json +2644 -0
  2623. package/packages/app-core/src/i18n/locales/ko.json +2644 -0
  2624. package/packages/app-core/src/i18n/locales/pt.json +2644 -0
  2625. package/packages/app-core/src/i18n/locales/tl.json +2644 -0
  2626. package/packages/app-core/src/i18n/locales/vi.json +2644 -0
  2627. package/packages/app-core/src/i18n/locales/zh-CN.json +2644 -0
  2628. package/packages/app-core/src/i18n/messages.d.ts +6 -0
  2629. package/packages/app-core/src/i18n/messages.d.ts.map +1 -0
  2630. package/packages/app-core/src/i18n/messages.js +26 -0
  2631. package/packages/app-core/src/index.d.ts +50 -0
  2632. package/packages/app-core/src/index.d.ts.map +1 -0
  2633. package/packages/app-core/src/index.js +48 -0
  2634. package/packages/app-core/src/navigation/index.d.ts +52 -0
  2635. package/packages/app-core/src/navigation/index.d.ts.map +1 -0
  2636. package/packages/app-core/src/navigation/index.js +354 -0
  2637. package/packages/app-core/src/onboarding/connection-flow.d.ts +80 -0
  2638. package/packages/app-core/src/onboarding/connection-flow.d.ts.map +1 -0
  2639. package/packages/app-core/src/onboarding/connection-flow.js +321 -0
  2640. package/packages/app-core/src/onboarding/flow.d.ts +66 -0
  2641. package/packages/app-core/src/onboarding/flow.d.ts.map +1 -0
  2642. package/packages/app-core/src/onboarding/flow.js +100 -0
  2643. package/packages/app-core/src/onboarding/server-target.d.ts +3 -0
  2644. package/packages/app-core/src/onboarding/server-target.d.ts.map +1 -0
  2645. package/packages/app-core/src/onboarding/server-target.js +10 -0
  2646. package/packages/app-core/src/onboarding/types.d.ts +95 -0
  2647. package/packages/app-core/src/onboarding/types.d.ts.map +1 -0
  2648. package/packages/app-core/src/onboarding/types.js +6 -0
  2649. package/packages/app-core/src/onboarding-config.d.ts +61 -0
  2650. package/packages/app-core/src/onboarding-config.d.ts.map +1 -0
  2651. package/packages/app-core/src/onboarding-config.js +166 -0
  2652. package/packages/app-core/src/platform/browser-launch.d.ts +2 -0
  2653. package/packages/app-core/src/platform/browser-launch.d.ts.map +1 -0
  2654. package/packages/app-core/src/platform/browser-launch.js +135 -0
  2655. package/packages/app-core/src/platform/cloud-preference-patch.d.ts +11 -0
  2656. package/packages/app-core/src/platform/cloud-preference-patch.d.ts.map +1 -0
  2657. package/packages/app-core/src/platform/cloud-preference-patch.js +86 -0
  2658. package/packages/app-core/src/platform/desktop-permissions-client.d.ts +3 -0
  2659. package/packages/app-core/src/platform/desktop-permissions-client.d.ts.map +1 -0
  2660. package/packages/app-core/src/platform/desktop-permissions-client.js +128 -0
  2661. package/packages/app-core/src/platform/index.d.ts +15 -0
  2662. package/packages/app-core/src/platform/index.d.ts.map +1 -0
  2663. package/packages/app-core/src/platform/index.js +23 -0
  2664. package/packages/app-core/src/platform/init.d.ts +38 -0
  2665. package/packages/app-core/src/platform/init.d.ts.map +1 -0
  2666. package/packages/app-core/src/platform/init.js +161 -0
  2667. package/packages/app-core/src/platform/is-native-server.d.ts +14 -0
  2668. package/packages/app-core/src/platform/is-native-server.d.ts.map +1 -0
  2669. package/packages/app-core/src/platform/is-native-server.js +16 -0
  2670. package/packages/app-core/src/platform/onboarding-reset.d.ts +11 -0
  2671. package/packages/app-core/src/platform/onboarding-reset.d.ts.map +1 -0
  2672. package/packages/app-core/src/platform/onboarding-reset.js +127 -0
  2673. package/packages/app-core/src/platform/types.d.ts +28 -0
  2674. package/packages/app-core/src/platform/types.d.ts.map +1 -0
  2675. package/packages/app-core/src/platform/types.js +1 -0
  2676. package/packages/app-core/src/platform/window-shell.d.ts +28 -0
  2677. package/packages/app-core/src/platform/window-shell.d.ts.map +1 -0
  2678. package/packages/app-core/src/platform/window-shell.js +73 -0
  2679. package/packages/app-core/src/providers/index.d.ts +26 -0
  2680. package/packages/app-core/src/providers/index.d.ts.map +1 -0
  2681. package/packages/app-core/src/providers/index.js +107 -0
  2682. package/packages/app-core/src/runtime/channel-plugin-map.d.ts +6 -0
  2683. package/packages/app-core/src/runtime/channel-plugin-map.d.ts.map +1 -0
  2684. package/packages/app-core/src/runtime/channel-plugin-map.js +10 -0
  2685. package/packages/app-core/src/runtime/plugin-manager-guard.d.ts +12 -0
  2686. package/packages/app-core/src/runtime/plugin-manager-guard.d.ts.map +1 -0
  2687. package/packages/app-core/src/runtime/plugin-manager-guard.js +82 -0
  2688. package/packages/app-core/src/security/agent-vault-id.d.ts +14 -0
  2689. package/packages/app-core/src/security/agent-vault-id.d.ts.map +1 -0
  2690. package/packages/app-core/src/security/agent-vault-id.js +32 -0
  2691. package/packages/app-core/src/security/platform-secure-store-node.d.ts +15 -0
  2692. package/packages/app-core/src/security/platform-secure-store-node.d.ts.map +1 -0
  2693. package/packages/app-core/src/security/platform-secure-store-node.js +296 -0
  2694. package/packages/app-core/src/security/platform-secure-store.d.ts +47 -0
  2695. package/packages/app-core/src/security/platform-secure-store.d.ts.map +1 -0
  2696. package/packages/app-core/src/security/platform-secure-store.js +10 -0
  2697. package/packages/app-core/src/services/local-inference/active-model.d.ts +45 -0
  2698. package/packages/app-core/src/services/local-inference/active-model.d.ts.map +1 -0
  2699. package/packages/app-core/src/services/local-inference/active-model.js +120 -0
  2700. package/packages/app-core/src/services/local-inference/device-bridge.d.ts +124 -0
  2701. package/packages/app-core/src/services/local-inference/device-bridge.d.ts.map +1 -0
  2702. package/packages/app-core/src/services/local-inference/device-bridge.js +643 -0
  2703. package/packages/app-core/src/services/local-inference/engine.d.ts +52 -0
  2704. package/packages/app-core/src/services/local-inference/engine.d.ts.map +1 -0
  2705. package/packages/app-core/src/services/local-inference/engine.js +138 -0
  2706. package/packages/app-core/src/services/local-inference/external-scanner.d.ts +17 -0
  2707. package/packages/app-core/src/services/local-inference/external-scanner.d.ts.map +1 -0
  2708. package/packages/app-core/src/services/local-inference/external-scanner.js +261 -0
  2709. package/packages/app-core/src/services/local-inference/handler-registry.d.ts +42 -0
  2710. package/packages/app-core/src/services/local-inference/handler-registry.d.ts.map +1 -0
  2711. package/packages/app-core/src/services/local-inference/handler-registry.js +127 -0
  2712. package/packages/app-core/src/services/local-inference/hardware.d.ts +26 -0
  2713. package/packages/app-core/src/services/local-inference/hardware.d.ts.map +1 -0
  2714. package/packages/app-core/src/services/local-inference/hardware.js +139 -0
  2715. package/packages/app-core/src/services/local-inference/paths.d.ts +17 -0
  2716. package/packages/app-core/src/services/local-inference/paths.d.ts.map +1 -0
  2717. package/packages/app-core/src/services/local-inference/paths.js +34 -0
  2718. package/packages/app-core/src/services/local-inference/providers.d.ts +61 -0
  2719. package/packages/app-core/src/services/local-inference/providers.d.ts.map +1 -0
  2720. package/packages/app-core/src/services/local-inference/providers.js +231 -0
  2721. package/packages/app-core/src/services/local-inference/registry.d.ts +35 -0
  2722. package/packages/app-core/src/services/local-inference/registry.d.ts.map +1 -0
  2723. package/packages/app-core/src/services/local-inference/registry.js +108 -0
  2724. package/packages/app-core/src/services/local-inference/routing-preferences.d.ts +29 -0
  2725. package/packages/app-core/src/services/local-inference/routing-preferences.d.ts.map +1 -0
  2726. package/packages/app-core/src/services/local-inference/routing-preferences.js +71 -0
  2727. package/packages/app-core/src/services/local-inference/types.d.ts +121 -0
  2728. package/packages/app-core/src/services/local-inference/types.d.ts.map +1 -0
  2729. package/packages/app-core/src/services/local-inference/types.js +14 -0
  2730. package/packages/app-core/src/services/local-inference/verify.d.ts +39 -0
  2731. package/packages/app-core/src/services/local-inference/verify.d.ts.map +1 -0
  2732. package/packages/app-core/src/services/local-inference/verify.js +104 -0
  2733. package/packages/app-core/src/services/plugin-installer.d.ts +93 -0
  2734. package/packages/app-core/src/services/plugin-installer.d.ts.map +1 -0
  2735. package/packages/app-core/src/services/plugin-installer.js +611 -0
  2736. package/packages/app-core/src/services/steward-sidecar.d.ts +6 -0
  2737. package/packages/app-core/src/services/steward-sidecar.d.ts.map +1 -0
  2738. package/packages/app-core/src/services/steward-sidecar.js +5 -0
  2739. package/packages/app-core/src/shell/DesktopOnboardingRuntime.d.ts +9 -0
  2740. package/packages/app-core/src/shell/DesktopOnboardingRuntime.d.ts.map +1 -0
  2741. package/packages/app-core/src/shell/DesktopOnboardingRuntime.js +10 -0
  2742. package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.d.ts +2 -0
  2743. package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.d.ts.map +1 -0
  2744. package/packages/app-core/src/shell/DesktopSurfaceNavigationRuntime.js +48 -0
  2745. package/packages/app-core/src/shell/DesktopTrayRuntime.d.ts +11 -0
  2746. package/packages/app-core/src/shell/DesktopTrayRuntime.d.ts.map +1 -0
  2747. package/packages/app-core/src/shell/DesktopTrayRuntime.js +277 -0
  2748. package/packages/app-core/src/shell/DetachedShellRoot.d.ts +10 -0
  2749. package/packages/app-core/src/shell/DetachedShellRoot.d.ts.map +1 -0
  2750. package/packages/app-core/src/shell/DetachedShellRoot.js +92 -0
  2751. package/packages/app-core/src/shell/index.d.ts +5 -0
  2752. package/packages/app-core/src/shell/index.d.ts.map +1 -0
  2753. package/packages/app-core/src/shell/index.js +4 -0
  2754. package/packages/app-core/src/state/AppContext.d.ts +13 -0
  2755. package/packages/app-core/src/state/AppContext.d.ts.map +1 -0
  2756. package/packages/app-core/src/state/AppContext.js +1852 -0
  2757. package/packages/app-core/src/state/ChatComposerContext.d.ts +28 -0
  2758. package/packages/app-core/src/state/ChatComposerContext.d.ts.map +1 -0
  2759. package/packages/app-core/src/state/ChatComposerContext.js +30 -0
  2760. package/packages/app-core/src/state/CompanionSceneConfigContext.d.ts +27 -0
  2761. package/packages/app-core/src/state/CompanionSceneConfigContext.d.ts.map +1 -0
  2762. package/packages/app-core/src/state/CompanionSceneConfigContext.js +32 -0
  2763. package/packages/app-core/src/state/PtySessionsContext.d.ts +15 -0
  2764. package/packages/app-core/src/state/PtySessionsContext.d.ts.map +1 -0
  2765. package/packages/app-core/src/state/PtySessionsContext.js +15 -0
  2766. package/packages/app-core/src/state/TranslationContext.d.ts +29 -0
  2767. package/packages/app-core/src/state/TranslationContext.d.ts.map +1 -0
  2768. package/packages/app-core/src/state/TranslationContext.js +61 -0
  2769. package/packages/app-core/src/state/action-notice.d.ts +7 -0
  2770. package/packages/app-core/src/state/action-notice.d.ts.map +1 -0
  2771. package/packages/app-core/src/state/action-notice.js +1 -0
  2772. package/packages/app-core/src/state/agent-profile-types.d.ts +29 -0
  2773. package/packages/app-core/src/state/agent-profile-types.d.ts.map +1 -0
  2774. package/packages/app-core/src/state/agent-profile-types.js +1 -0
  2775. package/packages/app-core/src/state/agent-profiles.d.ts +16 -0
  2776. package/packages/app-core/src/state/agent-profiles.d.ts.map +1 -0
  2777. package/packages/app-core/src/state/agent-profiles.js +119 -0
  2778. package/packages/app-core/src/state/agent-startup-timing.d.ts +15 -0
  2779. package/packages/app-core/src/state/agent-startup-timing.d.ts.map +1 -0
  2780. package/packages/app-core/src/state/agent-startup-timing.js +28 -0
  2781. package/packages/app-core/src/state/chat-conversation-guards.d.ts +4 -0
  2782. package/packages/app-core/src/state/chat-conversation-guards.d.ts.map +1 -0
  2783. package/packages/app-core/src/state/chat-conversation-guards.js +15 -0
  2784. package/packages/app-core/src/state/complete-reset-local-state-after-wipe.d.ts +30 -0
  2785. package/packages/app-core/src/state/complete-reset-local-state-after-wipe.d.ts.map +1 -0
  2786. package/packages/app-core/src/state/complete-reset-local-state-after-wipe.js +24 -0
  2787. package/packages/app-core/src/state/config-readers.d.ts +6 -0
  2788. package/packages/app-core/src/state/config-readers.d.ts.map +1 -0
  2789. package/packages/app-core/src/state/config-readers.js +16 -0
  2790. package/packages/app-core/src/state/handle-reset-applied-from-main.d.ts +31 -0
  2791. package/packages/app-core/src/state/handle-reset-applied-from-main.d.ts.map +1 -0
  2792. package/packages/app-core/src/state/handle-reset-applied-from-main.js +38 -0
  2793. package/packages/app-core/src/state/index.d.ts +14 -0
  2794. package/packages/app-core/src/state/index.d.ts.map +1 -0
  2795. package/packages/app-core/src/state/index.js +13 -0
  2796. package/packages/app-core/src/state/internal.d.ts +9 -0
  2797. package/packages/app-core/src/state/internal.d.ts.map +1 -0
  2798. package/packages/app-core/src/state/internal.js +9 -0
  2799. package/packages/app-core/src/state/navigation-events.d.ts +12 -0
  2800. package/packages/app-core/src/state/navigation-events.d.ts.map +1 -0
  2801. package/packages/app-core/src/state/navigation-events.js +25 -0
  2802. package/packages/app-core/src/state/onboarding-bootstrap.d.ts +28 -0
  2803. package/packages/app-core/src/state/onboarding-bootstrap.d.ts.map +1 -0
  2804. package/packages/app-core/src/state/onboarding-bootstrap.js +76 -0
  2805. package/packages/app-core/src/state/onboarding-resume.d.ts +9 -0
  2806. package/packages/app-core/src/state/onboarding-resume.d.ts.map +1 -0
  2807. package/packages/app-core/src/state/onboarding-resume.js +91 -0
  2808. package/packages/app-core/src/state/parsers.d.ts +33 -0
  2809. package/packages/app-core/src/state/parsers.d.ts.map +1 -0
  2810. package/packages/app-core/src/state/parsers.js +343 -0
  2811. package/packages/app-core/src/state/persistence.d.ts +90 -0
  2812. package/packages/app-core/src/state/persistence.d.ts.map +1 -0
  2813. package/packages/app-core/src/state/persistence.js +632 -0
  2814. package/packages/app-core/src/state/shell-routing.d.ts +12 -0
  2815. package/packages/app-core/src/state/shell-routing.d.ts.map +1 -0
  2816. package/packages/app-core/src/state/shell-routing.js +21 -0
  2817. package/packages/app-core/src/state/startup-coordinator.d.ts +137 -0
  2818. package/packages/app-core/src/state/startup-coordinator.d.ts.map +1 -0
  2819. package/packages/app-core/src/state/startup-coordinator.js +250 -0
  2820. package/packages/app-core/src/state/startup-phase-hydrate.d.ts +74 -0
  2821. package/packages/app-core/src/state/startup-phase-hydrate.d.ts.map +1 -0
  2822. package/packages/app-core/src/state/startup-phase-hydrate.js +503 -0
  2823. package/packages/app-core/src/state/startup-phase-poll.d.ts +60 -0
  2824. package/packages/app-core/src/state/startup-phase-poll.d.ts.map +1 -0
  2825. package/packages/app-core/src/state/startup-phase-poll.js +258 -0
  2826. package/packages/app-core/src/state/startup-phase-restore.d.ts +49 -0
  2827. package/packages/app-core/src/state/startup-phase-restore.d.ts.map +1 -0
  2828. package/packages/app-core/src/state/startup-phase-restore.js +146 -0
  2829. package/packages/app-core/src/state/startup-phase-runtime.d.ts +34 -0
  2830. package/packages/app-core/src/state/startup-phase-runtime.d.ts.map +1 -0
  2831. package/packages/app-core/src/state/startup-phase-runtime.js +126 -0
  2832. package/packages/app-core/src/state/types.d.ts +614 -0
  2833. package/packages/app-core/src/state/types.d.ts.map +1 -0
  2834. package/packages/app-core/src/state/types.js +62 -0
  2835. package/packages/app-core/src/state/ui-preferences.d.ts +3 -0
  2836. package/packages/app-core/src/state/ui-preferences.d.ts.map +1 -0
  2837. package/packages/app-core/src/state/ui-preferences.js +1 -0
  2838. package/packages/app-core/src/state/useApp.d.ts +4 -0
  2839. package/packages/app-core/src/state/useApp.d.ts.map +1 -0
  2840. package/packages/app-core/src/state/useApp.js +32 -0
  2841. package/packages/app-core/src/state/useCharacterState.d.ts +52 -0
  2842. package/packages/app-core/src/state/useCharacterState.d.ts.map +1 -0
  2843. package/packages/app-core/src/state/useCharacterState.js +205 -0
  2844. package/packages/app-core/src/state/useChatCallbacks.d.ts +168 -0
  2845. package/packages/app-core/src/state/useChatCallbacks.d.ts.map +1 -0
  2846. package/packages/app-core/src/state/useChatCallbacks.js +734 -0
  2847. package/packages/app-core/src/state/useChatLifecycle.d.ts +104 -0
  2848. package/packages/app-core/src/state/useChatLifecycle.d.ts.map +1 -0
  2849. package/packages/app-core/src/state/useChatLifecycle.js +582 -0
  2850. package/packages/app-core/src/state/useChatSend.d.ts +79 -0
  2851. package/packages/app-core/src/state/useChatSend.d.ts.map +1 -0
  2852. package/packages/app-core/src/state/useChatSend.js +791 -0
  2853. package/packages/app-core/src/state/useChatState.d.ts +144 -0
  2854. package/packages/app-core/src/state/useChatState.d.ts.map +1 -0
  2855. package/packages/app-core/src/state/useChatState.js +251 -0
  2856. package/packages/app-core/src/state/useCloudState.d.ts +71 -0
  2857. package/packages/app-core/src/state/useCloudState.d.ts.map +1 -0
  2858. package/packages/app-core/src/state/useCloudState.js +529 -0
  2859. package/packages/app-core/src/state/useDataLoaders.d.ts +88 -0
  2860. package/packages/app-core/src/state/useDataLoaders.d.ts.map +1 -0
  2861. package/packages/app-core/src/state/useDataLoaders.js +391 -0
  2862. package/packages/app-core/src/state/useDisplayPreferences.d.ts +23 -0
  2863. package/packages/app-core/src/state/useDisplayPreferences.d.ts.map +1 -0
  2864. package/packages/app-core/src/state/useDisplayPreferences.js +64 -0
  2865. package/packages/app-core/src/state/useExportImportState.d.ts +32 -0
  2866. package/packages/app-core/src/state/useExportImportState.d.ts.map +1 -0
  2867. package/packages/app-core/src/state/useExportImportState.js +140 -0
  2868. package/packages/app-core/src/state/useLifecycleState.d.ts +123 -0
  2869. package/packages/app-core/src/state/useLifecycleState.d.ts.map +1 -0
  2870. package/packages/app-core/src/state/useLifecycleState.js +258 -0
  2871. package/packages/app-core/src/state/useLogsState.d.ts +24 -0
  2872. package/packages/app-core/src/state/useLogsState.d.ts.map +1 -0
  2873. package/packages/app-core/src/state/useLogsState.js +87 -0
  2874. package/packages/app-core/src/state/useMiscUiState.d.ts +85 -0
  2875. package/packages/app-core/src/state/useMiscUiState.d.ts.map +1 -0
  2876. package/packages/app-core/src/state/useMiscUiState.js +144 -0
  2877. package/packages/app-core/src/state/useNavigationState.d.ts +29 -0
  2878. package/packages/app-core/src/state/useNavigationState.d.ts.map +1 -0
  2879. package/packages/app-core/src/state/useNavigationState.js +122 -0
  2880. package/packages/app-core/src/state/useOnboardingCallbacks.d.ts +99 -0
  2881. package/packages/app-core/src/state/useOnboardingCallbacks.d.ts.map +1 -0
  2882. package/packages/app-core/src/state/useOnboardingCallbacks.js +720 -0
  2883. package/packages/app-core/src/state/useOnboardingCompat.d.ts +60 -0
  2884. package/packages/app-core/src/state/useOnboardingCompat.d.ts.map +1 -0
  2885. package/packages/app-core/src/state/useOnboardingCompat.js +110 -0
  2886. package/packages/app-core/src/state/useOnboardingState.d.ts +126 -0
  2887. package/packages/app-core/src/state/useOnboardingState.d.ts.map +1 -0
  2888. package/packages/app-core/src/state/useOnboardingState.js +257 -0
  2889. package/packages/app-core/src/state/usePairingState.d.ts +21 -0
  2890. package/packages/app-core/src/state/usePairingState.d.ts.map +1 -0
  2891. package/packages/app-core/src/state/usePairingState.js +60 -0
  2892. package/packages/app-core/src/state/usePluginsSkillsState.d.ts +131 -0
  2893. package/packages/app-core/src/state/usePluginsSkillsState.d.ts.map +1 -0
  2894. package/packages/app-core/src/state/usePluginsSkillsState.js +572 -0
  2895. package/packages/app-core/src/state/useStartupCoordinator.d.ts +40 -0
  2896. package/packages/app-core/src/state/useStartupCoordinator.d.ts.map +1 -0
  2897. package/packages/app-core/src/state/useStartupCoordinator.js +177 -0
  2898. package/packages/app-core/src/state/useTriggersState.d.ts +29 -0
  2899. package/packages/app-core/src/state/useTriggersState.d.ts.map +1 -0
  2900. package/packages/app-core/src/state/useTriggersState.js +198 -0
  2901. package/packages/app-core/src/state/useWalletState.d.ts +97 -0
  2902. package/packages/app-core/src/state/useWalletState.d.ts.map +1 -0
  2903. package/packages/app-core/src/state/useWalletState.js +492 -0
  2904. package/packages/app-core/src/state/vrm.d.ts +16 -0
  2905. package/packages/app-core/src/state/vrm.d.ts.map +1 -0
  2906. package/packages/app-core/src/state/vrm.js +88 -0
  2907. package/packages/app-core/src/test-support/test-helpers.d.ts +111 -0
  2908. package/packages/app-core/src/test-support/test-helpers.d.ts.map +1 -0
  2909. package/packages/app-core/src/test-support/test-helpers.js +401 -0
  2910. package/packages/app-core/src/themes/apply-theme.d.ts +24 -0
  2911. package/packages/app-core/src/themes/apply-theme.d.ts.map +1 -0
  2912. package/packages/app-core/src/themes/apply-theme.js +131 -0
  2913. package/packages/app-core/src/types/index.d.ts +658 -0
  2914. package/packages/app-core/src/types/index.d.ts.map +1 -0
  2915. package/packages/app-core/src/types/index.js +4 -0
  2916. package/packages/app-core/src/utils/asset-url.d.ts +24 -0
  2917. package/packages/app-core/src/utils/asset-url.d.ts.map +1 -0
  2918. package/packages/app-core/src/utils/asset-url.js +137 -0
  2919. package/packages/app-core/src/utils/assistant-text.d.ts +2 -0
  2920. package/packages/app-core/src/utils/assistant-text.d.ts.map +1 -0
  2921. package/packages/app-core/src/utils/assistant-text.js +166 -0
  2922. package/packages/app-core/src/utils/character-message-examples.d.ts +7 -0
  2923. package/packages/app-core/src/utils/character-message-examples.d.ts.map +1 -0
  2924. package/packages/app-core/src/utils/character-message-examples.js +121 -0
  2925. package/packages/app-core/src/utils/clipboard.d.ts +2 -0
  2926. package/packages/app-core/src/utils/clipboard.d.ts.map +1 -0
  2927. package/packages/app-core/src/utils/clipboard.js +38 -0
  2928. package/packages/app-core/src/utils/desktop-bug-report.d.ts +35 -0
  2929. package/packages/app-core/src/utils/desktop-bug-report.d.ts.map +1 -0
  2930. package/packages/app-core/src/utils/desktop-bug-report.js +47 -0
  2931. package/packages/app-core/src/utils/desktop-dialogs.d.ts +24 -0
  2932. package/packages/app-core/src/utils/desktop-dialogs.d.ts.map +1 -0
  2933. package/packages/app-core/src/utils/desktop-dialogs.js +149 -0
  2934. package/packages/app-core/src/utils/desktop-workspace.d.ts +86 -0
  2935. package/packages/app-core/src/utils/desktop-workspace.d.ts.map +1 -0
  2936. package/packages/app-core/src/utils/desktop-workspace.js +162 -0
  2937. package/packages/app-core/src/utils/eliza-cloud-model-route.d.ts +3 -0
  2938. package/packages/app-core/src/utils/eliza-cloud-model-route.d.ts.map +1 -0
  2939. package/packages/app-core/src/utils/eliza-cloud-model-route.js +9 -0
  2940. package/packages/app-core/src/utils/eliza-globals.d.ts +15 -0
  2941. package/packages/app-core/src/utils/eliza-globals.d.ts.map +1 -0
  2942. package/packages/app-core/src/utils/eliza-globals.js +50 -0
  2943. package/packages/app-core/src/utils/env.d.ts +31 -0
  2944. package/packages/app-core/src/utils/env.d.ts.map +1 -0
  2945. package/packages/app-core/src/utils/env.js +51 -0
  2946. package/packages/app-core/src/utils/format.d.ts +66 -0
  2947. package/packages/app-core/src/utils/format.d.ts.map +1 -0
  2948. package/packages/app-core/src/utils/format.js +121 -0
  2949. package/packages/app-core/src/utils/index.d.ts +14 -0
  2950. package/packages/app-core/src/utils/index.d.ts.map +1 -0
  2951. package/packages/app-core/src/utils/index.js +13 -0
  2952. package/packages/app-core/src/utils/knowledge-upload-image.d.ts +27 -0
  2953. package/packages/app-core/src/utils/knowledge-upload-image.d.ts.map +1 -0
  2954. package/packages/app-core/src/utils/knowledge-upload-image.js +146 -0
  2955. package/packages/app-core/src/utils/labels.d.ts +6 -0
  2956. package/packages/app-core/src/utils/labels.d.ts.map +1 -0
  2957. package/packages/app-core/src/utils/labels.js +41 -0
  2958. package/packages/app-core/src/utils/name-tokens.d.ts +6 -0
  2959. package/packages/app-core/src/utils/name-tokens.d.ts.map +1 -0
  2960. package/packages/app-core/src/utils/name-tokens.js +9 -0
  2961. package/packages/app-core/src/utils/number-parsing.d.ts +44 -0
  2962. package/packages/app-core/src/utils/number-parsing.d.ts.map +1 -0
  2963. package/packages/app-core/src/utils/number-parsing.js +56 -0
  2964. package/packages/app-core/src/utils/openExternalUrl.d.ts +21 -0
  2965. package/packages/app-core/src/utils/openExternalUrl.d.ts.map +1 -0
  2966. package/packages/app-core/src/utils/openExternalUrl.js +67 -0
  2967. package/packages/app-core/src/utils/owner-name.d.ts +3 -0
  2968. package/packages/app-core/src/utils/owner-name.d.ts.map +1 -0
  2969. package/packages/app-core/src/utils/owner-name.js +7 -0
  2970. package/packages/app-core/src/utils/serialise.d.ts +12 -0
  2971. package/packages/app-core/src/utils/serialise.d.ts.map +1 -0
  2972. package/packages/app-core/src/utils/serialise.js +21 -0
  2973. package/packages/app-core/src/utils/streaming-text.d.ts +9 -0
  2974. package/packages/app-core/src/utils/streaming-text.d.ts.map +1 -0
  2975. package/packages/app-core/src/utils/streaming-text.js +112 -0
  2976. package/packages/app-core/src/utils/subscription-auth.d.ts +9 -0
  2977. package/packages/app-core/src/utils/subscription-auth.d.ts.map +1 -0
  2978. package/packages/app-core/src/utils/subscription-auth.js +48 -0
  2979. package/packages/app-core/src/utils/trajectory-format.d.ts +6 -0
  2980. package/packages/app-core/src/utils/trajectory-format.d.ts.map +1 -0
  2981. package/packages/app-core/src/utils/trajectory-format.js +43 -0
  2982. package/packages/app-core/src/utils/tts-debug.d.ts +9 -0
  2983. package/packages/app-core/src/utils/tts-debug.d.ts.map +1 -0
  2984. package/packages/app-core/src/utils/tts-debug.js +68 -0
  2985. package/packages/app-core/src/voice/character-voice-config.d.ts +9 -0
  2986. package/packages/app-core/src/voice/character-voice-config.d.ts.map +1 -0
  2987. package/packages/app-core/src/voice/character-voice-config.js +83 -0
  2988. package/packages/app-core/src/voice/index.d.ts +3 -0
  2989. package/packages/app-core/src/voice/index.d.ts.map +1 -0
  2990. package/packages/app-core/src/voice/index.js +2 -0
  2991. package/packages/app-core/src/voice/types.d.ts +40 -0
  2992. package/packages/app-core/src/voice/types.d.ts.map +1 -0
  2993. package/packages/app-core/src/voice/types.js +295 -0
  2994. package/packages/app-core/src/wallet-rpc.d.ts +9 -0
  2995. package/packages/app-core/src/wallet-rpc.d.ts.map +1 -0
  2996. package/packages/app-core/src/wallet-rpc.js +133 -0
  2997. package/packages/app-core/src/widgets/WidgetHost.d.ts +27 -0
  2998. package/packages/app-core/src/widgets/WidgetHost.d.ts.map +1 -0
  2999. package/packages/app-core/src/widgets/WidgetHost.js +54 -0
  3000. package/packages/app-core/src/widgets/index.d.ts +6 -0
  3001. package/packages/app-core/src/widgets/index.d.ts.map +1 -0
  3002. package/packages/app-core/src/widgets/index.js +2 -0
  3003. package/packages/app-core/src/widgets/registry.d.ts +58 -0
  3004. package/packages/app-core/src/widgets/registry.d.ts.map +1 -0
  3005. package/packages/app-core/src/widgets/registry.js +170 -0
  3006. package/packages/app-core/src/widgets/types.d.ts +50 -0
  3007. package/packages/app-core/src/widgets/types.d.ts.map +1 -0
  3008. package/packages/app-core/src/widgets/types.js +1 -0
  3009. package/packages/shared/src/connectors.d.ts +13 -0
  3010. package/packages/shared/src/connectors.d.ts.map +1 -0
  3011. package/packages/shared/src/connectors.js +96 -0
  3012. package/packages/shared/src/contracts/apps.d.ts +257 -0
  3013. package/packages/shared/src/contracts/apps.d.ts.map +1 -0
  3014. package/packages/shared/src/contracts/apps.js +188 -0
  3015. package/packages/shared/src/contracts/awareness.d.ts +38 -0
  3016. package/packages/shared/src/contracts/awareness.d.ts.map +1 -0
  3017. package/packages/shared/src/contracts/awareness.js +7 -0
  3018. package/packages/shared/src/contracts/cloud-topology.d.ts +13 -0
  3019. package/packages/shared/src/contracts/cloud-topology.d.ts.map +1 -0
  3020. package/packages/shared/src/contracts/cloud-topology.js +71 -0
  3021. package/packages/shared/src/contracts/config.d.ts +146 -0
  3022. package/packages/shared/src/contracts/config.d.ts.map +1 -0
  3023. package/packages/shared/src/contracts/config.js +4 -0
  3024. package/packages/shared/src/contracts/content-pack.d.ts +131 -0
  3025. package/packages/shared/src/contracts/content-pack.d.ts.map +1 -0
  3026. package/packages/shared/src/contracts/content-pack.js +102 -0
  3027. package/packages/shared/src/contracts/drop.d.ts +20 -0
  3028. package/packages/shared/src/contracts/drop.d.ts.map +1 -0
  3029. package/packages/shared/src/contracts/drop.js +4 -0
  3030. package/packages/shared/src/contracts/index.d.ts +13 -0
  3031. package/packages/shared/src/contracts/index.d.ts.map +1 -0
  3032. package/packages/shared/src/contracts/index.js +12 -0
  3033. package/packages/shared/src/contracts/lifeops-extensions.d.ts +181 -0
  3034. package/packages/shared/src/contracts/lifeops-extensions.d.ts.map +1 -0
  3035. package/packages/shared/src/contracts/lifeops-extensions.js +30 -0
  3036. package/packages/shared/src/contracts/lifeops.d.ts +1622 -0
  3037. package/packages/shared/src/contracts/lifeops.d.ts.map +1 -0
  3038. package/packages/shared/src/contracts/lifeops.js +368 -0
  3039. package/packages/shared/src/contracts/onboarding.d.ts +448 -0
  3040. package/packages/shared/src/contracts/onboarding.d.ts.map +1 -0
  3041. package/packages/shared/src/contracts/onboarding.js +1021 -0
  3042. package/packages/shared/src/contracts/permissions.d.ts +38 -0
  3043. package/packages/shared/src/contracts/permissions.d.ts.map +1 -0
  3044. package/packages/shared/src/contracts/permissions.js +4 -0
  3045. package/packages/shared/src/contracts/service-routing.d.ts +77 -0
  3046. package/packages/shared/src/contracts/service-routing.d.ts.map +1 -0
  3047. package/packages/shared/src/contracts/service-routing.js +225 -0
  3048. package/packages/shared/src/contracts/theme.d.ts +136 -0
  3049. package/packages/shared/src/contracts/theme.d.ts.map +1 -0
  3050. package/packages/shared/src/contracts/theme.js +133 -0
  3051. package/packages/shared/src/contracts/verification.d.ts +9 -0
  3052. package/packages/shared/src/contracts/verification.d.ts.map +1 -0
  3053. package/packages/shared/src/contracts/verification.js +4 -0
  3054. package/packages/shared/src/contracts/wallet.d.ts +553 -0
  3055. package/packages/shared/src/contracts/wallet.d.ts.map +1 -0
  3056. package/packages/shared/src/contracts/wallet.js +60 -0
  3057. package/packages/shared/src/env-utils.d.ts +5 -0
  3058. package/packages/shared/src/env-utils.d.ts.map +1 -0
  3059. package/packages/shared/src/env-utils.impl.d.ts +2 -0
  3060. package/packages/shared/src/env-utils.impl.d.ts.map +1 -0
  3061. package/packages/shared/src/env-utils.impl.js +9 -0
  3062. package/packages/shared/src/env-utils.js +4 -0
  3063. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +1054 -0
  3064. package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
  3065. package/packages/shared/src/i18n/generated/validation-keyword-data.js +1057 -0
  3066. package/packages/shared/src/i18n/keyword-matching.d.ts +23 -0
  3067. package/packages/shared/src/i18n/keyword-matching.d.ts.map +1 -0
  3068. package/packages/shared/src/i18n/keyword-matching.js +112 -0
  3069. package/packages/shared/src/i18n/validation-keywords.d.ts +13 -0
  3070. package/packages/shared/src/i18n/validation-keywords.d.ts.map +1 -0
  3071. package/packages/shared/src/i18n/validation-keywords.js +12 -0
  3072. package/packages/shared/src/index.d.ts +13 -0
  3073. package/packages/shared/src/index.d.ts.map +1 -0
  3074. package/packages/shared/src/index.js +12 -0
  3075. package/packages/shared/src/onboarding-presets.characters.d.ts +22 -0
  3076. package/packages/shared/src/onboarding-presets.characters.d.ts.map +1 -0
  3077. package/packages/shared/src/onboarding-presets.characters.js +2616 -0
  3078. package/packages/shared/src/onboarding-presets.d.ts +40 -0
  3079. package/packages/shared/src/onboarding-presets.d.ts.map +1 -0
  3080. package/packages/shared/src/onboarding-presets.js +180 -0
  3081. package/packages/shared/src/onboarding-presets.shared.d.ts +2 -0
  3082. package/packages/shared/src/onboarding-presets.shared.d.ts.map +1 -0
  3083. package/packages/shared/src/onboarding-presets.shared.js +7 -0
  3084. package/packages/shared/src/restart.d.ts +27 -0
  3085. package/packages/shared/src/restart.d.ts.map +1 -0
  3086. package/packages/shared/src/restart.js +28 -0
  3087. package/packages/shared/src/runtime-env.d.ts +82 -0
  3088. package/packages/shared/src/runtime-env.d.ts.map +1 -0
  3089. package/packages/shared/src/runtime-env.js +241 -0
  3090. package/packages/shared/src/settings-debug.d.ts +20 -0
  3091. package/packages/shared/src/settings-debug.d.ts.map +1 -0
  3092. package/packages/shared/src/settings-debug.js +114 -0
  3093. package/packages/shared/src/spoken-text.d.ts +2 -0
  3094. package/packages/shared/src/spoken-text.d.ts.map +1 -0
  3095. package/packages/shared/src/spoken-text.js +56 -0
  3096. package/packages/shared/src/themes/presets.d.ts +15 -0
  3097. package/packages/shared/src/themes/presets.d.ts.map +1 -0
  3098. package/packages/shared/src/themes/presets.js +788 -0
  3099. package/packages/shared/src/types.d.ts +27 -0
  3100. package/packages/shared/src/types.d.ts.map +1 -0
  3101. package/packages/shared/src/types.js +1 -0
  3102. package/packages/shared/src/validation-keywords.d.ts +2 -0
  3103. package/packages/shared/src/validation-keywords.d.ts.map +1 -0
  3104. package/packages/shared/src/validation-keywords.js +1 -0
  3105. package/packages/skills/src/formatter.d.ts +44 -0
  3106. package/packages/skills/src/formatter.d.ts.map +1 -0
  3107. package/packages/skills/src/formatter.js +181 -0
  3108. package/packages/skills/src/frontmatter.d.ts +51 -0
  3109. package/packages/skills/src/frontmatter.d.ts.map +1 -0
  3110. package/packages/skills/src/frontmatter.js +155 -0
  3111. package/packages/skills/src/index.d.ts +29 -0
  3112. package/packages/skills/src/index.d.ts.map +1 -0
  3113. package/packages/skills/src/index.js +31 -0
  3114. package/packages/skills/src/loader.d.ts +33 -0
  3115. package/packages/skills/src/loader.d.ts.map +1 -0
  3116. package/packages/skills/src/loader.js +369 -0
  3117. package/packages/skills/src/resolver.d.ts +35 -0
  3118. package/packages/skills/src/resolver.d.ts.map +1 -0
  3119. package/packages/skills/src/resolver.js +143 -0
  3120. package/packages/skills/src/types.d.ts +238 -0
  3121. package/packages/skills/src/types.d.ts.map +1 -0
  3122. package/packages/skills/src/types.js +1 -0
  3123. package/packages/typescript/src/action-docs.d.ts +22 -0
  3124. package/packages/typescript/src/action-docs.d.ts.map +1 -0
  3125. package/packages/typescript/src/action-docs.js +95 -0
  3126. package/packages/typescript/src/actions.d.ts +29 -0
  3127. package/packages/typescript/src/actions.d.ts.map +1 -0
  3128. package/packages/typescript/src/actions.js +473 -0
  3129. package/packages/typescript/src/character-utils.d.ts +138 -0
  3130. package/packages/typescript/src/character-utils.d.ts.map +1 -0
  3131. package/packages/typescript/src/character-utils.js +271 -0
  3132. package/packages/typescript/src/character.d.ts +68 -0
  3133. package/packages/typescript/src/character.d.ts.map +1 -0
  3134. package/packages/typescript/src/character.js +155 -0
  3135. package/packages/typescript/src/connection.d.ts +45 -0
  3136. package/packages/typescript/src/connection.d.ts.map +1 -0
  3137. package/packages/typescript/src/connection.js +149 -0
  3138. package/packages/typescript/src/constants/index.d.ts +7 -0
  3139. package/packages/typescript/src/constants/index.d.ts.map +1 -0
  3140. package/packages/typescript/src/constants/index.js +6 -0
  3141. package/packages/typescript/src/constants/secrets.d.ts +99 -0
  3142. package/packages/typescript/src/constants/secrets.d.ts.map +1 -0
  3143. package/packages/typescript/src/constants/secrets.js +239 -0
  3144. package/packages/typescript/src/database/inMemoryAdapter.d.ts +285 -0
  3145. package/packages/typescript/src/database/inMemoryAdapter.d.ts.map +1 -0
  3146. package/packages/typescript/src/database/inMemoryAdapter.js +1149 -0
  3147. package/packages/typescript/src/database.d.ts +426 -0
  3148. package/packages/typescript/src/database.d.ts.map +1 -0
  3149. package/packages/typescript/src/database.js +24 -0
  3150. package/packages/typescript/src/entities.d.ts +11 -0
  3151. package/packages/typescript/src/entities.d.ts.map +1 -0
  3152. package/packages/typescript/src/entities.js +437 -0
  3153. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts +3 -0
  3154. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts.map +1 -0
  3155. package/packages/typescript/src/features/advanced-capabilities/actions/addContact.js +142 -0
  3156. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts +3 -0
  3157. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts.map +1 -0
  3158. package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.js +183 -0
  3159. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts +3 -0
  3160. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts.map +1 -0
  3161. package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.js +148 -0
  3162. package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts +21 -0
  3163. package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts.map +1 -0
  3164. package/packages/typescript/src/features/advanced-capabilities/actions/index.js +20 -0
  3165. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts +3 -0
  3166. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts.map +1 -0
  3167. package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.js +181 -0
  3168. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts +3 -0
  3169. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts.map +1 -0
  3170. package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.js +102 -0
  3171. package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts +13 -0
  3172. package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts.map +1 -0
  3173. package/packages/typescript/src/features/advanced-capabilities/actions/roles.js +317 -0
  3174. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts +3 -0
  3175. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -0
  3176. package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.js +135 -0
  3177. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts +3 -0
  3178. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts.map +1 -0
  3179. package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.js +176 -0
  3180. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts +15 -0
  3181. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts.map +1 -0
  3182. package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.js +476 -0
  3183. package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts +22 -0
  3184. package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts.map +1 -0
  3185. package/packages/typescript/src/features/advanced-capabilities/actions/settings.js +823 -0
  3186. package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts +3 -0
  3187. package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts.map +1 -0
  3188. package/packages/typescript/src/features/advanced-capabilities/actions/think.js +84 -0
  3189. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts +3 -0
  3190. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts.map +1 -0
  3191. package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.js +134 -0
  3192. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts +3 -0
  3193. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts.map +1 -0
  3194. package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.js +193 -0
  3195. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts +3 -0
  3196. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts.map +1 -0
  3197. package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.js +199 -0
  3198. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts +43 -0
  3199. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts.map +1 -0
  3200. package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.js +372 -0
  3201. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
  3202. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
  3203. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.js +150 -0
  3204. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
  3205. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
  3206. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.js +136 -0
  3207. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
  3208. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
  3209. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.js +84 -0
  3210. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
  3211. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
  3212. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.js +112 -0
  3213. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
  3214. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
  3215. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.js +192 -0
  3216. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
  3217. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
  3218. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.js +138 -0
  3219. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
  3220. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
  3221. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +96 -0
  3222. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
  3223. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
  3224. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.js +139 -0
  3225. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
  3226. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
  3227. package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.js +138 -0
  3228. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts +39 -0
  3229. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts.map +1 -0
  3230. package/packages/typescript/src/features/advanced-capabilities/clipboard/index.js +78 -0
  3231. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
  3232. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
  3233. package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
  3234. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
  3235. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
  3236. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
  3237. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
  3238. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
  3239. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.js +352 -0
  3240. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
  3241. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
  3242. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
  3243. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
  3244. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
  3245. package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
  3246. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts +15 -0
  3247. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
  3248. package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.js +164 -0
  3249. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts +92 -0
  3250. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts.map +1 -0
  3251. package/packages/typescript/src/features/advanced-capabilities/clipboard/types.js +4 -0
  3252. package/packages/typescript/src/features/advanced-capabilities/evaluators/factRefinement.d.ts +20 -0
  3253. package/packages/typescript/src/features/advanced-capabilities/evaluators/factRefinement.d.ts.map +1 -0
  3254. package/packages/typescript/src/features/advanced-capabilities/evaluators/factRefinement.js +362 -0
  3255. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts +11 -0
  3256. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts.map +1 -0
  3257. package/packages/typescript/src/features/advanced-capabilities/evaluators/index.js +10 -0
  3258. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts +3 -0
  3259. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts.map +1 -0
  3260. package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.js +633 -0
  3261. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts +3 -0
  3262. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts.map +1 -0
  3263. package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.js +640 -0
  3264. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +25 -0
  3265. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts.map +1 -0
  3266. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +362 -0
  3267. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +21 -0
  3268. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts.map +1 -0
  3269. package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +541 -0
  3270. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts +12 -0
  3271. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts.map +1 -0
  3272. package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.js +14 -0
  3273. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts +3 -0
  3274. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts.map +1 -0
  3275. package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.js +70 -0
  3276. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts +3 -0
  3277. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts.map +1 -0
  3278. package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.js +256 -0
  3279. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts +12 -0
  3280. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts.map +1 -0
  3281. package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.js +41 -0
  3282. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts +49 -0
  3283. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts.map +1 -0
  3284. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.js +78 -0
  3285. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts +159 -0
  3286. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts.map +1 -0
  3287. package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.js +192 -0
  3288. package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts +10 -0
  3289. package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts.map +1 -0
  3290. package/packages/typescript/src/features/advanced-capabilities/experience/index.js +8 -0
  3291. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts +3 -0
  3292. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts.map +1 -0
  3293. package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.js +51 -0
  3294. package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +46 -0
  3295. package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts.map +1 -0
  3296. package/packages/typescript/src/features/advanced-capabilities/experience/service.js +569 -0
  3297. package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +95 -0
  3298. package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts.map +1 -0
  3299. package/packages/typescript/src/features/advanced-capabilities/experience/types.js +22 -0
  3300. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts +34 -0
  3301. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts.map +1 -0
  3302. package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.js +106 -0
  3303. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts +25 -0
  3304. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts.map +1 -0
  3305. package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.js +116 -0
  3306. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts +13 -0
  3307. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts.map +1 -0
  3308. package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.js +152 -0
  3309. package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts +101 -0
  3310. package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts.map +1 -0
  3311. package/packages/typescript/src/features/advanced-capabilities/form/builder.js +362 -0
  3312. package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts +16 -0
  3313. package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts.map +1 -0
  3314. package/packages/typescript/src/features/advanced-capabilities/form/builtins.js +245 -0
  3315. package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts +32 -0
  3316. package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts.map +1 -0
  3317. package/packages/typescript/src/features/advanced-capabilities/form/defaults.js +98 -0
  3318. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts +12 -0
  3319. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts.map +1 -0
  3320. package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.js +231 -0
  3321. package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts +24 -0
  3322. package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts.map +1 -0
  3323. package/packages/typescript/src/features/advanced-capabilities/form/extraction.js +319 -0
  3324. package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts +22 -0
  3325. package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts.map +1 -0
  3326. package/packages/typescript/src/features/advanced-capabilities/form/index.js +52 -0
  3327. package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts +41 -0
  3328. package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts.map +1 -0
  3329. package/packages/typescript/src/features/advanced-capabilities/form/intent.js +119 -0
  3330. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts +11 -0
  3331. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts.map +1 -0
  3332. package/packages/typescript/src/features/advanced-capabilities/form/providers/context.js +166 -0
  3333. package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts +66 -0
  3334. package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts.map +1 -0
  3335. package/packages/typescript/src/features/advanced-capabilities/form/service.js +912 -0
  3336. package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts +26 -0
  3337. package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts.map +1 -0
  3338. package/packages/typescript/src/features/advanced-capabilities/form/storage.js +228 -0
  3339. package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts +10 -0
  3340. package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts.map +1 -0
  3341. package/packages/typescript/src/features/advanced-capabilities/form/template.js +56 -0
  3342. package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts +40 -0
  3343. package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts.map +1 -0
  3344. package/packages/typescript/src/features/advanced-capabilities/form/ttl.js +107 -0
  3345. package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts +589 -0
  3346. package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts.map +1 -0
  3347. package/packages/typescript/src/features/advanced-capabilities/form/types.js +71 -0
  3348. package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts +24 -0
  3349. package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts.map +1 -0
  3350. package/packages/typescript/src/features/advanced-capabilities/form/validation.js +311 -0
  3351. package/packages/typescript/src/features/advanced-capabilities/index.d.ts +47 -0
  3352. package/packages/typescript/src/features/advanced-capabilities/index.d.ts.map +1 -0
  3353. package/packages/typescript/src/features/advanced-capabilities/index.js +114 -0
  3354. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts +7 -0
  3355. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts.map +1 -0
  3356. package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.js +1299 -0
  3357. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts +53 -0
  3358. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts.map +1 -0
  3359. package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.js +429 -0
  3360. package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts +10 -0
  3361. package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts.map +1 -0
  3362. package/packages/typescript/src/features/advanced-capabilities/personality/index.js +8 -0
  3363. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts +8 -0
  3364. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts.map +1 -0
  3365. package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.js +57 -0
  3366. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts +71 -0
  3367. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts.map +1 -0
  3368. package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.js +498 -0
  3369. package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +18 -0
  3370. package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts.map +1 -0
  3371. package/packages/typescript/src/features/advanced-capabilities/personality/types.js +8 -0
  3372. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts +3 -0
  3373. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts.map +1 -0
  3374. package/packages/typescript/src/features/advanced-capabilities/providers/contacts.js +77 -0
  3375. package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts +11 -0
  3376. package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts.map +1 -0
  3377. package/packages/typescript/src/features/advanced-capabilities/providers/facts.js +162 -0
  3378. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts +3 -0
  3379. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts.map +1 -0
  3380. package/packages/typescript/src/features/advanced-capabilities/providers/followUps.js +112 -0
  3381. package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts +13 -0
  3382. package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts.map +1 -0
  3383. package/packages/typescript/src/features/advanced-capabilities/providers/index.js +12 -0
  3384. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts +9 -0
  3385. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts.map +1 -0
  3386. package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.js +83 -0
  3387. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts +15 -0
  3388. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts.map +1 -0
  3389. package/packages/typescript/src/features/advanced-capabilities/providers/relationships.js +125 -0
  3390. package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts +19 -0
  3391. package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts.map +1 -0
  3392. package/packages/typescript/src/features/advanced-capabilities/providers/roles.js +180 -0
  3393. package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts +7 -0
  3394. package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts.map +1 -0
  3395. package/packages/typescript/src/features/advanced-capabilities/providers/settings.js +294 -0
  3396. package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts +3 -0
  3397. package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts.map +1 -0
  3398. package/packages/typescript/src/features/advanced-memory/evaluators/index.js +2 -0
  3399. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts +3 -0
  3400. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -0
  3401. package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.js +198 -0
  3402. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts +3 -0
  3403. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts.map +1 -0
  3404. package/packages/typescript/src/features/advanced-memory/evaluators/summarization.js +240 -0
  3405. package/packages/typescript/src/features/advanced-memory/index.d.ts +16 -0
  3406. package/packages/typescript/src/features/advanced-memory/index.d.ts.map +1 -0
  3407. package/packages/typescript/src/features/advanced-memory/index.js +26 -0
  3408. package/packages/typescript/src/features/advanced-memory/prompts.d.ts +2 -0
  3409. package/packages/typescript/src/features/advanced-memory/prompts.d.ts.map +1 -0
  3410. package/packages/typescript/src/features/advanced-memory/prompts.js +1 -0
  3411. package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts +3 -0
  3412. package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts.map +1 -0
  3413. package/packages/typescript/src/features/advanced-memory/providers/context-summary.js +85 -0
  3414. package/packages/typescript/src/features/advanced-memory/providers/index.d.ts +3 -0
  3415. package/packages/typescript/src/features/advanced-memory/providers/index.d.ts.map +1 -0
  3416. package/packages/typescript/src/features/advanced-memory/providers/index.js +2 -0
  3417. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts +3 -0
  3418. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts.map +1 -0
  3419. package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.js +92 -0
  3420. package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts +5 -0
  3421. package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts.map +1 -0
  3422. package/packages/typescript/src/features/advanced-memory/schemas/index.js +3 -0
  3423. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts +10 -0
  3424. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts.map +1 -0
  3425. package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.js +65 -0
  3426. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts +10 -0
  3427. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts.map +1 -0
  3428. package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.js +45 -0
  3429. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts +10 -0
  3430. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts.map +1 -0
  3431. package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.js +66 -0
  3432. package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts +38 -0
  3433. package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts.map +1 -0
  3434. package/packages/typescript/src/features/advanced-memory/services/memory-service.js +367 -0
  3435. package/packages/typescript/src/features/advanced-memory/trajectory.d.ts +10 -0
  3436. package/packages/typescript/src/features/advanced-memory/trajectory.d.ts.map +1 -0
  3437. package/packages/typescript/src/features/advanced-memory/trajectory.js +33 -0
  3438. package/packages/typescript/src/features/advanced-memory/types.d.ts +68 -0
  3439. package/packages/typescript/src/features/advanced-memory/types.d.ts.map +1 -0
  3440. package/packages/typescript/src/features/advanced-memory/types.js +6 -0
  3441. package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts +6 -0
  3442. package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts.map +1 -0
  3443. package/packages/typescript/src/features/advanced-planning/actions/chain-example.js +181 -0
  3444. package/packages/typescript/src/features/advanced-planning/index.d.ts +5 -0
  3445. package/packages/typescript/src/features/advanced-planning/index.d.ts.map +1 -0
  3446. package/packages/typescript/src/features/advanced-planning/index.js +20 -0
  3447. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts +3 -0
  3448. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts.map +1 -0
  3449. package/packages/typescript/src/features/advanced-planning/providers/message-classifier.js +105 -0
  3450. package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts +77 -0
  3451. package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts.map +1 -0
  3452. package/packages/typescript/src/features/advanced-planning/services/planning-service.js +875 -0
  3453. package/packages/typescript/src/features/advanced-planning/types.d.ts +78 -0
  3454. package/packages/typescript/src/features/advanced-planning/types.d.ts.map +1 -0
  3455. package/packages/typescript/src/features/advanced-planning/types.js +1 -0
  3456. package/packages/typescript/src/features/autonomy/action.d.ts +14 -0
  3457. package/packages/typescript/src/features/autonomy/action.d.ts.map +1 -0
  3458. package/packages/typescript/src/features/autonomy/action.js +177 -0
  3459. package/packages/typescript/src/features/autonomy/execution-facade.d.ts +22 -0
  3460. package/packages/typescript/src/features/autonomy/execution-facade.d.ts.map +1 -0
  3461. package/packages/typescript/src/features/autonomy/execution-facade.js +150 -0
  3462. package/packages/typescript/src/features/autonomy/index.d.ts +11 -0
  3463. package/packages/typescript/src/features/autonomy/index.d.ts.map +1 -0
  3464. package/packages/typescript/src/features/autonomy/index.js +13 -0
  3465. package/packages/typescript/src/features/autonomy/providers.d.ts +21 -0
  3466. package/packages/typescript/src/features/autonomy/providers.d.ts.map +1 -0
  3467. package/packages/typescript/src/features/autonomy/providers.js +154 -0
  3468. package/packages/typescript/src/features/autonomy/routes.d.ts +11 -0
  3469. package/packages/typescript/src/features/autonomy/routes.d.ts.map +1 -0
  3470. package/packages/typescript/src/features/autonomy/routes.js +158 -0
  3471. package/packages/typescript/src/features/autonomy/service.d.ts +138 -0
  3472. package/packages/typescript/src/features/autonomy/service.d.ts.map +1 -0
  3473. package/packages/typescript/src/features/autonomy/service.js +813 -0
  3474. package/packages/typescript/src/features/autonomy/types.d.ts +31 -0
  3475. package/packages/typescript/src/features/autonomy/types.d.ts.map +1 -0
  3476. package/packages/typescript/src/features/autonomy/types.js +6 -0
  3477. package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts +4 -0
  3478. package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts.map +1 -0
  3479. package/packages/typescript/src/features/basic-capabilities/actions/choice.js +278 -0
  3480. package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts +3 -0
  3481. package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts.map +1 -0
  3482. package/packages/typescript/src/features/basic-capabilities/actions/ignore.js +23 -0
  3483. package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts +10 -0
  3484. package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts.map +1 -0
  3485. package/packages/typescript/src/features/basic-capabilities/actions/index.js +9 -0
  3486. package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts +3 -0
  3487. package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts.map +1 -0
  3488. package/packages/typescript/src/features/basic-capabilities/actions/none.js +26 -0
  3489. package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts +3 -0
  3490. package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts.map +1 -0
  3491. package/packages/typescript/src/features/basic-capabilities/actions/reply.js +80 -0
  3492. package/packages/typescript/src/features/basic-capabilities/index.d.ts +108 -0
  3493. package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
  3494. package/packages/typescript/src/features/basic-capabilities/index.js +1026 -0
  3495. package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts +7 -0
  3496. package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts.map +1 -0
  3497. package/packages/typescript/src/features/basic-capabilities/providers/actionState.js +232 -0
  3498. package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts +35 -0
  3499. package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts.map +1 -0
  3500. package/packages/typescript/src/features/basic-capabilities/providers/actions.js +104 -0
  3501. package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts +20 -0
  3502. package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts.map +1 -0
  3503. package/packages/typescript/src/features/basic-capabilities/providers/attachments.js +94 -0
  3504. package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts +17 -0
  3505. package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts.map +1 -0
  3506. package/packages/typescript/src/features/basic-capabilities/providers/character.js +190 -0
  3507. package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts +11 -0
  3508. package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts.map +1 -0
  3509. package/packages/typescript/src/features/basic-capabilities/providers/choice.js +86 -0
  3510. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts +12 -0
  3511. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts.map +1 -0
  3512. package/packages/typescript/src/features/basic-capabilities/providers/contextBench.js +50 -0
  3513. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts +11 -0
  3514. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts.map +1 -0
  3515. package/packages/typescript/src/features/basic-capabilities/providers/currentTime.js +56 -0
  3516. package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts +7 -0
  3517. package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts.map +1 -0
  3518. package/packages/typescript/src/features/basic-capabilities/providers/entities.js +39 -0
  3519. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts +27 -0
  3520. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts.map +1 -0
  3521. package/packages/typescript/src/features/basic-capabilities/providers/evaluators.js +107 -0
  3522. package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts +19 -0
  3523. package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts.map +1 -0
  3524. package/packages/typescript/src/features/basic-capabilities/providers/index.js +18 -0
  3525. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts +5 -0
  3526. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts.map +1 -0
  3527. package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.js +22 -0
  3528. package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts +18 -0
  3529. package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts.map +1 -0
  3530. package/packages/typescript/src/features/basic-capabilities/providers/providers.js +75 -0
  3531. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts +14 -0
  3532. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts.map +1 -0
  3533. package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.js +323 -0
  3534. package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts +12 -0
  3535. package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts.map +1 -0
  3536. package/packages/typescript/src/features/basic-capabilities/providers/time.js +36 -0
  3537. package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts +8 -0
  3538. package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts.map +1 -0
  3539. package/packages/typescript/src/features/basic-capabilities/providers/world.js +212 -0
  3540. package/packages/typescript/src/features/index.d.ts +58 -0
  3541. package/packages/typescript/src/features/index.d.ts.map +1 -0
  3542. package/packages/typescript/src/features/index.js +155 -0
  3543. package/packages/typescript/src/features/knowledge/actions.d.ts +5 -0
  3544. package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
  3545. package/packages/typescript/src/features/knowledge/actions.js +269 -0
  3546. package/packages/typescript/src/features/knowledge/config.d.ts +5 -0
  3547. package/packages/typescript/src/features/knowledge/config.d.ts.map +1 -0
  3548. package/packages/typescript/src/features/knowledge/config.js +147 -0
  3549. package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts +53 -0
  3550. package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts.map +1 -0
  3551. package/packages/typescript/src/features/knowledge/ctx-embeddings.js +412 -0
  3552. package/packages/typescript/src/features/knowledge/docs-loader.d.ts +9 -0
  3553. package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
  3554. package/packages/typescript/src/features/knowledge/docs-loader.js +202 -0
  3555. package/packages/typescript/src/features/knowledge/document-processor.d.ts +26 -0
  3556. package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
  3557. package/packages/typescript/src/features/knowledge/document-processor.js +618 -0
  3558. package/packages/typescript/src/features/knowledge/documents-provider.d.ts +3 -0
  3559. package/packages/typescript/src/features/knowledge/documents-provider.d.ts.map +1 -0
  3560. package/packages/typescript/src/features/knowledge/documents-provider.js +107 -0
  3561. package/packages/typescript/src/features/knowledge/index.d.ts +16 -0
  3562. package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
  3563. package/packages/typescript/src/features/knowledge/index.js +29 -0
  3564. package/packages/typescript/src/features/knowledge/llm.d.ts +27 -0
  3565. package/packages/typescript/src/features/knowledge/llm.d.ts.map +1 -0
  3566. package/packages/typescript/src/features/knowledge/llm.js +444 -0
  3567. package/packages/typescript/src/features/knowledge/provider.d.ts +3 -0
  3568. package/packages/typescript/src/features/knowledge/provider.d.ts.map +1 -0
  3569. package/packages/typescript/src/features/knowledge/provider.js +62 -0
  3570. package/packages/typescript/src/features/knowledge/service.d.ts +76 -0
  3571. package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
  3572. package/packages/typescript/src/features/knowledge/service.js +511 -0
  3573. package/packages/typescript/src/features/knowledge/types.d.ts +144 -0
  3574. package/packages/typescript/src/features/knowledge/types.d.ts.map +1 -0
  3575. package/packages/typescript/src/features/knowledge/types.js +57 -0
  3576. package/packages/typescript/src/features/knowledge/utils.d.ts +17 -0
  3577. package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
  3578. package/packages/typescript/src/features/knowledge/utils.js +313 -0
  3579. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts +3 -0
  3580. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts.map +1 -0
  3581. package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.js +65 -0
  3582. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts +3 -0
  3583. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts.map +1 -0
  3584. package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.js +63 -0
  3585. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts +4 -0
  3586. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts.map +1 -0
  3587. package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.js +232 -0
  3588. package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts +28 -0
  3589. package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
  3590. package/packages/typescript/src/features/plugin-manager/coreExtensions.js +54 -0
  3591. package/packages/typescript/src/features/plugin-manager/index.d.ts +25 -0
  3592. package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
  3593. package/packages/typescript/src/features/plugin-manager/index.js +53 -0
  3594. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts +5 -0
  3595. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts.map +1 -0
  3596. package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.js +104 -0
  3597. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts +5 -0
  3598. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts.map +1 -0
  3599. package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.js +105 -0
  3600. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts +5 -0
  3601. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts.map +1 -0
  3602. package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.js +93 -0
  3603. package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts +9 -0
  3604. package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts.map +1 -0
  3605. package/packages/typescript/src/features/plugin-manager/providers/relevance.js +224 -0
  3606. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +76 -0
  3607. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -0
  3608. package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +479 -0
  3609. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts +31 -0
  3610. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts.map +1 -0
  3611. package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.js +57 -0
  3612. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts +68 -0
  3613. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts.map +1 -0
  3614. package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1007 -0
  3615. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts +84 -0
  3616. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts.map +1 -0
  3617. package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.js +402 -0
  3618. package/packages/typescript/src/features/plugin-manager/types.d.ts +142 -0
  3619. package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -0
  3620. package/packages/typescript/src/features/plugin-manager/types.js +13 -0
  3621. package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts +4 -0
  3622. package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts.map +1 -0
  3623. package/packages/typescript/src/features/plugin-manager/utils/paths.js +32 -0
  3624. package/packages/typescript/src/features/secrets/actions/index.d.ts +7 -0
  3625. package/packages/typescript/src/features/secrets/actions/index.d.ts.map +1 -0
  3626. package/packages/typescript/src/features/secrets/actions/index.js +6 -0
  3627. package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts +12 -0
  3628. package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts.map +1 -0
  3629. package/packages/typescript/src/features/secrets/actions/manage-secret.js +278 -0
  3630. package/packages/typescript/src/features/secrets/actions/request-secret.d.ts +3 -0
  3631. package/packages/typescript/src/features/secrets/actions/request-secret.d.ts.map +1 -0
  3632. package/packages/typescript/src/features/secrets/actions/request-secret.js +105 -0
  3633. package/packages/typescript/src/features/secrets/actions/set-secret.d.ts +12 -0
  3634. package/packages/typescript/src/features/secrets/actions/set-secret.d.ts.map +1 -0
  3635. package/packages/typescript/src/features/secrets/actions/set-secret.js +223 -0
  3636. package/packages/typescript/src/features/secrets/crypto/encryption.d.ts +184 -0
  3637. package/packages/typescript/src/features/secrets/crypto/encryption.d.ts.map +1 -0
  3638. package/packages/typescript/src/features/secrets/crypto/encryption.js +373 -0
  3639. package/packages/typescript/src/features/secrets/crypto/index.d.ts +5 -0
  3640. package/packages/typescript/src/features/secrets/crypto/index.d.ts.map +1 -0
  3641. package/packages/typescript/src/features/secrets/crypto/index.js +16 -0
  3642. package/packages/typescript/src/features/secrets/onboarding/action.d.ts +12 -0
  3643. package/packages/typescript/src/features/secrets/onboarding/action.d.ts.map +1 -0
  3644. package/packages/typescript/src/features/secrets/onboarding/action.js +337 -0
  3645. package/packages/typescript/src/features/secrets/onboarding/config.d.ts +99 -0
  3646. package/packages/typescript/src/features/secrets/onboarding/config.d.ts.map +1 -0
  3647. package/packages/typescript/src/features/secrets/onboarding/config.js +240 -0
  3648. package/packages/typescript/src/features/secrets/onboarding/index.d.ts +13 -0
  3649. package/packages/typescript/src/features/secrets/onboarding/index.d.ts.map +1 -0
  3650. package/packages/typescript/src/features/secrets/onboarding/index.js +12 -0
  3651. package/packages/typescript/src/features/secrets/onboarding/provider.d.ts +16 -0
  3652. package/packages/typescript/src/features/secrets/onboarding/provider.d.ts.map +1 -0
  3653. package/packages/typescript/src/features/secrets/onboarding/provider.js +231 -0
  3654. package/packages/typescript/src/features/secrets/onboarding/service.d.ts +134 -0
  3655. package/packages/typescript/src/features/secrets/onboarding/service.d.ts.map +1 -0
  3656. package/packages/typescript/src/features/secrets/onboarding/service.js +436 -0
  3657. package/packages/typescript/src/features/secrets/providers/index.d.ts +5 -0
  3658. package/packages/typescript/src/features/secrets/providers/index.d.ts.map +1 -0
  3659. package/packages/typescript/src/features/secrets/providers/index.js +4 -0
  3660. package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts +22 -0
  3661. package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts.map +1 -0
  3662. package/packages/typescript/src/features/secrets/providers/secrets-status.js +160 -0
  3663. package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts +182 -0
  3664. package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts.map +1 -0
  3665. package/packages/typescript/src/features/secrets/services/plugin-activator.js +617 -0
  3666. package/packages/typescript/src/features/secrets/services/secrets.d.ts +183 -0
  3667. package/packages/typescript/src/features/secrets/services/secrets.d.ts.map +1 -0
  3668. package/packages/typescript/src/features/secrets/services/secrets.js +566 -0
  3669. package/packages/typescript/src/features/secrets/storage/character-store.d.ts +63 -0
  3670. package/packages/typescript/src/features/secrets/storage/character-store.d.ts.map +1 -0
  3671. package/packages/typescript/src/features/secrets/storage/character-store.js +265 -0
  3672. package/packages/typescript/src/features/secrets/storage/component-store.d.ts +47 -0
  3673. package/packages/typescript/src/features/secrets/storage/component-store.d.ts.map +1 -0
  3674. package/packages/typescript/src/features/secrets/storage/component-store.js +264 -0
  3675. package/packages/typescript/src/features/secrets/storage/index.d.ts +10 -0
  3676. package/packages/typescript/src/features/secrets/storage/index.d.ts.map +1 -0
  3677. package/packages/typescript/src/features/secrets/storage/index.js +8 -0
  3678. package/packages/typescript/src/features/secrets/storage/interface.d.ts +52 -0
  3679. package/packages/typescript/src/features/secrets/storage/interface.d.ts.map +1 -0
  3680. package/packages/typescript/src/features/secrets/storage/interface.js +92 -0
  3681. package/packages/typescript/src/features/secrets/storage/memory-store.d.ts +44 -0
  3682. package/packages/typescript/src/features/secrets/storage/memory-store.d.ts.map +1 -0
  3683. package/packages/typescript/src/features/secrets/storage/memory-store.js +142 -0
  3684. package/packages/typescript/src/features/secrets/storage/world-store.d.ts +52 -0
  3685. package/packages/typescript/src/features/secrets/storage/world-store.d.ts.map +1 -0
  3686. package/packages/typescript/src/features/secrets/storage/world-store.js +292 -0
  3687. package/packages/typescript/src/features/secrets/types.d.ts +438 -0
  3688. package/packages/typescript/src/features/secrets/types.d.ts.map +1 -0
  3689. package/packages/typescript/src/features/secrets/types.js +57 -0
  3690. package/packages/typescript/src/features/secrets/validation.d.ts +33 -0
  3691. package/packages/typescript/src/features/secrets/validation.d.ts.map +1 -0
  3692. package/packages/typescript/src/features/secrets/validation.js +389 -0
  3693. package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts +10 -0
  3694. package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts.map +1 -0
  3695. package/packages/typescript/src/features/shared/schedule-follow-up-response.js +49 -0
  3696. package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts +289 -0
  3697. package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
  3698. package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1423 -0
  3699. package/packages/typescript/src/features/trajectories/action-interceptor.d.ts +23 -0
  3700. package/packages/typescript/src/features/trajectories/action-interceptor.d.ts.map +1 -0
  3701. package/packages/typescript/src/features/trajectories/action-interceptor.js +178 -0
  3702. package/packages/typescript/src/features/trajectories/art-format.d.ts +32 -0
  3703. package/packages/typescript/src/features/trajectories/art-format.d.ts.map +1 -0
  3704. package/packages/typescript/src/features/trajectories/art-format.js +221 -0
  3705. package/packages/typescript/src/features/trajectories/export.d.ts +40 -0
  3706. package/packages/typescript/src/features/trajectories/export.d.ts.map +1 -0
  3707. package/packages/typescript/src/features/trajectories/export.js +99 -0
  3708. package/packages/typescript/src/features/trajectories/game-rewards.d.ts +14 -0
  3709. package/packages/typescript/src/features/trajectories/game-rewards.d.ts.map +1 -0
  3710. package/packages/typescript/src/features/trajectories/game-rewards.js +20 -0
  3711. package/packages/typescript/src/features/trajectories/index.d.ts +24 -0
  3712. package/packages/typescript/src/features/trajectories/index.d.ts.map +1 -0
  3713. package/packages/typescript/src/features/trajectories/index.js +253 -0
  3714. package/packages/typescript/src/features/trajectories/integration.d.ts +59 -0
  3715. package/packages/typescript/src/features/trajectories/integration.d.ts.map +1 -0
  3716. package/packages/typescript/src/features/trajectories/integration.js +83 -0
  3717. package/packages/typescript/src/features/trajectories/reward-service.d.ts +24 -0
  3718. package/packages/typescript/src/features/trajectories/reward-service.d.ts.map +1 -0
  3719. package/packages/typescript/src/features/trajectories/reward-service.js +89 -0
  3720. package/packages/typescript/src/features/trajectories/types.d.ts +261 -0
  3721. package/packages/typescript/src/features/trajectories/types.d.ts.map +1 -0
  3722. package/packages/typescript/src/features/trajectories/types.js +1 -0
  3723. package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts +3 -0
  3724. package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts.map +1 -0
  3725. package/packages/typescript/src/features/trust/actions/evaluateTrust.js +225 -0
  3726. package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts +3 -0
  3727. package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts.map +1 -0
  3728. package/packages/typescript/src/features/trust/actions/hasTrustEngine.js +3 -0
  3729. package/packages/typescript/src/features/trust/actions/index.d.ts +6 -0
  3730. package/packages/typescript/src/features/trust/actions/index.d.ts.map +1 -0
  3731. package/packages/typescript/src/features/trust/actions/index.js +5 -0
  3732. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts +3 -0
  3733. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts.map +1 -0
  3734. package/packages/typescript/src/features/trust/actions/recordTrustInteraction.js +189 -0
  3735. package/packages/typescript/src/features/trust/actions/requestElevation.d.ts +3 -0
  3736. package/packages/typescript/src/features/trust/actions/requestElevation.d.ts.map +1 -0
  3737. package/packages/typescript/src/features/trust/actions/requestElevation.js +165 -0
  3738. package/packages/typescript/src/features/trust/actions/roles.d.ts +3 -0
  3739. package/packages/typescript/src/features/trust/actions/roles.d.ts.map +1 -0
  3740. package/packages/typescript/src/features/trust/actions/roles.js +295 -0
  3741. package/packages/typescript/src/features/trust/actions/settings.d.ts +5 -0
  3742. package/packages/typescript/src/features/trust/actions/settings.d.ts.map +1 -0
  3743. package/packages/typescript/src/features/trust/actions/settings.js +603 -0
  3744. package/packages/typescript/src/features/trust/evaluators/index.d.ts +4 -0
  3745. package/packages/typescript/src/features/trust/evaluators/index.d.ts.map +1 -0
  3746. package/packages/typescript/src/features/trust/evaluators/index.js +3 -0
  3747. package/packages/typescript/src/features/trust/evaluators/reflection.d.ts +3 -0
  3748. package/packages/typescript/src/features/trust/evaluators/reflection.d.ts.map +1 -0
  3749. package/packages/typescript/src/features/trust/evaluators/reflection.js +290 -0
  3750. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts +3 -0
  3751. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts.map +1 -0
  3752. package/packages/typescript/src/features/trust/evaluators/securityEvaluator.js +270 -0
  3753. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts +3 -0
  3754. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts.map +1 -0
  3755. package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.js +201 -0
  3756. package/packages/typescript/src/features/trust/index.d.ts +23 -0
  3757. package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
  3758. package/packages/typescript/src/features/trust/index.js +96 -0
  3759. package/packages/typescript/src/features/trust/providers/adminTrust.d.ts +3 -0
  3760. package/packages/typescript/src/features/trust/providers/adminTrust.d.ts.map +1 -0
  3761. package/packages/typescript/src/features/trust/providers/adminTrust.js +49 -0
  3762. package/packages/typescript/src/features/trust/providers/index.d.ts +6 -0
  3763. package/packages/typescript/src/features/trust/providers/index.d.ts.map +1 -0
  3764. package/packages/typescript/src/features/trust/providers/index.js +5 -0
  3765. package/packages/typescript/src/features/trust/providers/roles.d.ts +4 -0
  3766. package/packages/typescript/src/features/trust/providers/roles.d.ts.map +1 -0
  3767. package/packages/typescript/src/features/trust/providers/roles.js +142 -0
  3768. package/packages/typescript/src/features/trust/providers/securityStatus.d.ts +3 -0
  3769. package/packages/typescript/src/features/trust/providers/securityStatus.d.ts.map +1 -0
  3770. package/packages/typescript/src/features/trust/providers/securityStatus.js +110 -0
  3771. package/packages/typescript/src/features/trust/providers/settings.d.ts +3 -0
  3772. package/packages/typescript/src/features/trust/providers/settings.d.ts.map +1 -0
  3773. package/packages/typescript/src/features/trust/providers/settings.js +222 -0
  3774. package/packages/typescript/src/features/trust/providers/trustProfile.d.ts +3 -0
  3775. package/packages/typescript/src/features/trust/providers/trustProfile.d.ts.map +1 -0
  3776. package/packages/typescript/src/features/trust/providers/trustProfile.js +68 -0
  3777. package/packages/typescript/src/features/trust/schema.d.ts +1170 -0
  3778. package/packages/typescript/src/features/trust/schema.d.ts.map +1 -0
  3779. package/packages/typescript/src/features/trust/schema.js +108 -0
  3780. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts +40 -0
  3781. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts.map +1 -0
  3782. package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.js +317 -0
  3783. package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts +62 -0
  3784. package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts.map +1 -0
  3785. package/packages/typescript/src/features/trust/services/CredentialProtector.js +417 -0
  3786. package/packages/typescript/src/features/trust/services/SecurityModule.d.ts +142 -0
  3787. package/packages/typescript/src/features/trust/services/SecurityModule.d.ts.map +1 -0
  3788. package/packages/typescript/src/features/trust/services/SecurityModule.js +1057 -0
  3789. package/packages/typescript/src/features/trust/services/SecurityStore.d.ts +53 -0
  3790. package/packages/typescript/src/features/trust/services/SecurityStore.d.ts.map +1 -0
  3791. package/packages/typescript/src/features/trust/services/SecurityStore.js +123 -0
  3792. package/packages/typescript/src/features/trust/services/TrustEngine.d.ts +81 -0
  3793. package/packages/typescript/src/features/trust/services/TrustEngine.d.ts.map +1 -0
  3794. package/packages/typescript/src/features/trust/services/TrustEngine.js +621 -0
  3795. package/packages/typescript/src/features/trust/services/adminContext.d.ts +3 -0
  3796. package/packages/typescript/src/features/trust/services/adminContext.d.ts.map +1 -0
  3797. package/packages/typescript/src/features/trust/services/adminContext.js +32 -0
  3798. package/packages/typescript/src/features/trust/services/db.d.ts +12 -0
  3799. package/packages/typescript/src/features/trust/services/db.d.ts.map +1 -0
  3800. package/packages/typescript/src/features/trust/services/db.js +10 -0
  3801. package/packages/typescript/src/features/trust/services/wrappers.d.ts +56 -0
  3802. package/packages/typescript/src/features/trust/services/wrappers.d.ts.map +1 -0
  3803. package/packages/typescript/src/features/trust/services/wrappers.js +124 -0
  3804. package/packages/typescript/src/features/trust/types/permissions.d.ts +185 -0
  3805. package/packages/typescript/src/features/trust/types/permissions.d.ts.map +1 -0
  3806. package/packages/typescript/src/features/trust/types/permissions.js +58 -0
  3807. package/packages/typescript/src/features/trust/types/security.d.ts +114 -0
  3808. package/packages/typescript/src/features/trust/types/security.d.ts.map +1 -0
  3809. package/packages/typescript/src/features/trust/types/security.js +15 -0
  3810. package/packages/typescript/src/features/trust/types/trust.d.ts +179 -0
  3811. package/packages/typescript/src/features/trust/types/trust.d.ts.map +1 -0
  3812. package/packages/typescript/src/features/trust/types/trust.js +25 -0
  3813. package/packages/typescript/src/generated/action-docs.d.ts +2799 -0
  3814. package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
  3815. package/packages/typescript/src/generated/action-docs.js +4034 -0
  3816. package/packages/typescript/src/generated/spec-helpers.d.ts +49 -0
  3817. package/packages/typescript/src/generated/spec-helpers.d.ts.map +1 -0
  3818. package/packages/typescript/src/generated/spec-helpers.js +78 -0
  3819. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +1056 -0
  3820. package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
  3821. package/packages/typescript/src/i18n/generated/validation-keyword-data.js +1056 -0
  3822. package/packages/typescript/src/i18n/validation-keywords.d.ts +25 -0
  3823. package/packages/typescript/src/i18n/validation-keywords.d.ts.map +1 -0
  3824. package/packages/typescript/src/i18n/validation-keywords.js +112 -0
  3825. package/packages/typescript/src/index.d.ts +12 -0
  3826. package/packages/typescript/src/index.d.ts.map +1 -0
  3827. package/packages/typescript/src/index.js +13 -0
  3828. package/packages/typescript/src/index.node.d.ts +82 -0
  3829. package/packages/typescript/src/index.node.d.ts.map +1 -0
  3830. package/packages/typescript/src/index.node.js +115 -0
  3831. package/packages/typescript/src/logger.d.ts +121 -0
  3832. package/packages/typescript/src/logger.d.ts.map +1 -0
  3833. package/packages/typescript/src/logger.js +1023 -0
  3834. package/packages/typescript/src/markdown/chunk.d.ts +50 -0
  3835. package/packages/typescript/src/markdown/chunk.d.ts.map +1 -0
  3836. package/packages/typescript/src/markdown/chunk.js +268 -0
  3837. package/packages/typescript/src/markdown/code-spans.d.ts +42 -0
  3838. package/packages/typescript/src/markdown/code-spans.d.ts.map +1 -0
  3839. package/packages/typescript/src/markdown/code-spans.js +89 -0
  3840. package/packages/typescript/src/markdown/fences.d.ts +50 -0
  3841. package/packages/typescript/src/markdown/fences.d.ts.map +1 -0
  3842. package/packages/typescript/src/markdown/fences.js +90 -0
  3843. package/packages/typescript/src/markdown/frontmatter.d.ts +24 -0
  3844. package/packages/typescript/src/markdown/frontmatter.d.ts.map +1 -0
  3845. package/packages/typescript/src/markdown/frontmatter.js +151 -0
  3846. package/packages/typescript/src/markdown/index.d.ts +18 -0
  3847. package/packages/typescript/src/markdown/index.d.ts.map +1 -0
  3848. package/packages/typescript/src/markdown/index.js +17 -0
  3849. package/packages/typescript/src/markdown/ir.d.ts +101 -0
  3850. package/packages/typescript/src/markdown/ir.d.ts.map +1 -0
  3851. package/packages/typescript/src/markdown/ir.js +789 -0
  3852. package/packages/typescript/src/media/fetch.d.ts +39 -0
  3853. package/packages/typescript/src/media/fetch.d.ts.map +1 -0
  3854. package/packages/typescript/src/media/fetch.js +205 -0
  3855. package/packages/typescript/src/media/index.d.ts +8 -0
  3856. package/packages/typescript/src/media/index.d.ts.map +1 -0
  3857. package/packages/typescript/src/media/index.js +7 -0
  3858. package/packages/typescript/src/media/mime.d.ts +51 -0
  3859. package/packages/typescript/src/media/mime.d.ts.map +1 -0
  3860. package/packages/typescript/src/media/mime.js +225 -0
  3861. package/packages/typescript/src/memory.d.ts +40 -0
  3862. package/packages/typescript/src/memory.d.ts.map +1 -0
  3863. package/packages/typescript/src/memory.js +58 -0
  3864. package/packages/typescript/src/network/fetch-guard.d.ts +34 -0
  3865. package/packages/typescript/src/network/fetch-guard.d.ts.map +1 -0
  3866. package/packages/typescript/src/network/fetch-guard.js +136 -0
  3867. package/packages/typescript/src/network/index.d.ts +11 -0
  3868. package/packages/typescript/src/network/index.d.ts.map +1 -0
  3869. package/packages/typescript/src/network/index.js +10 -0
  3870. package/packages/typescript/src/network/ssrf.d.ts +58 -0
  3871. package/packages/typescript/src/network/ssrf.d.ts.map +1 -0
  3872. package/packages/typescript/src/network/ssrf.js +252 -0
  3873. package/packages/typescript/src/optimization/ab-analysis.d.ts +3 -0
  3874. package/packages/typescript/src/optimization/ab-analysis.d.ts.map +1 -0
  3875. package/packages/typescript/src/optimization/ab-analysis.js +8 -0
  3876. package/packages/typescript/src/optimization-root-dir.d.ts +8 -0
  3877. package/packages/typescript/src/optimization-root-dir.d.ts.map +1 -0
  3878. package/packages/typescript/src/optimization-root-dir.js +14 -0
  3879. package/packages/typescript/src/plugin-lifecycle.d.ts +16 -0
  3880. package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -0
  3881. package/packages/typescript/src/plugin-lifecycle.js +590 -0
  3882. package/packages/typescript/src/plugin.d.ts +13 -0
  3883. package/packages/typescript/src/plugin.d.ts.map +1 -0
  3884. package/packages/typescript/src/plugin.js +341 -0
  3885. package/packages/typescript/src/plugins/index.d.ts +9 -0
  3886. package/packages/typescript/src/plugins/index.d.ts.map +1 -0
  3887. package/packages/typescript/src/plugins/index.js +8 -0
  3888. package/packages/typescript/src/plugins/native-features.d.ts +14 -0
  3889. package/packages/typescript/src/plugins/native-features.d.ts.map +1 -0
  3890. package/packages/typescript/src/plugins/native-features.js +59 -0
  3891. package/packages/typescript/src/prompts.d.ts +88 -0
  3892. package/packages/typescript/src/prompts.d.ts.map +1 -0
  3893. package/packages/typescript/src/prompts.js +1134 -0
  3894. package/packages/typescript/src/providers/onboarding-progress.d.ts +19 -0
  3895. package/packages/typescript/src/providers/onboarding-progress.d.ts.map +1 -0
  3896. package/packages/typescript/src/providers/onboarding-progress.js +268 -0
  3897. package/packages/typescript/src/providers/skill-eligibility.d.ts +28 -0
  3898. package/packages/typescript/src/providers/skill-eligibility.d.ts.map +1 -0
  3899. package/packages/typescript/src/providers/skill-eligibility.js +179 -0
  3900. package/packages/typescript/src/provisioning.d.ts +54 -0
  3901. package/packages/typescript/src/provisioning.d.ts.map +1 -0
  3902. package/packages/typescript/src/provisioning.js +209 -0
  3903. package/packages/typescript/src/roles.d.ts +70 -0
  3904. package/packages/typescript/src/roles.d.ts.map +1 -0
  3905. package/packages/typescript/src/roles.js +544 -0
  3906. package/packages/typescript/src/runtime-composition.d.ts +129 -0
  3907. package/packages/typescript/src/runtime-composition.d.ts.map +1 -0
  3908. package/packages/typescript/src/runtime-composition.js +335 -0
  3909. package/packages/typescript/src/runtime.d.ts +918 -0
  3910. package/packages/typescript/src/runtime.d.ts.map +1 -0
  3911. package/packages/typescript/src/runtime.js +5973 -0
  3912. package/packages/typescript/src/schemas/agent.d.ts +7 -0
  3913. package/packages/typescript/src/schemas/agent.d.ts.map +1 -0
  3914. package/packages/typescript/src/schemas/agent.js +112 -0
  3915. package/packages/typescript/src/schemas/cache.d.ts +7 -0
  3916. package/packages/typescript/src/schemas/cache.d.ts.map +1 -0
  3917. package/packages/typescript/src/schemas/cache.js +55 -0
  3918. package/packages/typescript/src/schemas/channel-participant.d.ts +7 -0
  3919. package/packages/typescript/src/schemas/channel-participant.d.ts.map +1 -0
  3920. package/packages/typescript/src/schemas/channel-participant.js +49 -0
  3921. package/packages/typescript/src/schemas/channel.d.ts +7 -0
  3922. package/packages/typescript/src/schemas/channel.d.ts.map +1 -0
  3923. package/packages/typescript/src/schemas/channel.js +94 -0
  3924. package/packages/typescript/src/schemas/character.d.ts +445 -0
  3925. package/packages/typescript/src/schemas/character.d.ts.map +1 -0
  3926. package/packages/typescript/src/schemas/character.js +309 -0
  3927. package/packages/typescript/src/schemas/component.d.ts +7 -0
  3928. package/packages/typescript/src/schemas/component.d.ts.map +1 -0
  3929. package/packages/typescript/src/schemas/component.js +156 -0
  3930. package/packages/typescript/src/schemas/embedding.d.ts +7 -0
  3931. package/packages/typescript/src/schemas/embedding.d.ts.map +1 -0
  3932. package/packages/typescript/src/schemas/embedding.js +89 -0
  3933. package/packages/typescript/src/schemas/entity-identity.d.ts +29 -0
  3934. package/packages/typescript/src/schemas/entity-identity.d.ts.map +1 -0
  3935. package/packages/typescript/src/schemas/entity-identity.js +334 -0
  3936. package/packages/typescript/src/schemas/entity.d.ts +7 -0
  3937. package/packages/typescript/src/schemas/entity.d.ts.map +1 -0
  3938. package/packages/typescript/src/schemas/entity.js +69 -0
  3939. package/packages/typescript/src/schemas/index.d.ts +77 -0
  3940. package/packages/typescript/src/schemas/index.d.ts.map +1 -0
  3941. package/packages/typescript/src/schemas/index.js +75 -0
  3942. package/packages/typescript/src/schemas/log.d.ts +6 -0
  3943. package/packages/typescript/src/schemas/log.d.ts.map +1 -0
  3944. package/packages/typescript/src/schemas/log.js +93 -0
  3945. package/packages/typescript/src/schemas/memory.d.ts +7 -0
  3946. package/packages/typescript/src/schemas/memory.d.ts.map +1 -0
  3947. package/packages/typescript/src/schemas/memory.js +167 -0
  3948. package/packages/typescript/src/schemas/message-server-agent.d.ts +7 -0
  3949. package/packages/typescript/src/schemas/message-server-agent.d.ts.map +1 -0
  3950. package/packages/typescript/src/schemas/message-server-agent.js +58 -0
  3951. package/packages/typescript/src/schemas/message-server.d.ts +6 -0
  3952. package/packages/typescript/src/schemas/message-server.d.ts.map +1 -0
  3953. package/packages/typescript/src/schemas/message-server.js +62 -0
  3954. package/packages/typescript/src/schemas/message.d.ts +7 -0
  3955. package/packages/typescript/src/schemas/message.d.ts.map +1 -0
  3956. package/packages/typescript/src/schemas/message.js +106 -0
  3957. package/packages/typescript/src/schemas/pairing-allowlist.d.ts +7 -0
  3958. package/packages/typescript/src/schemas/pairing-allowlist.d.ts.map +1 -0
  3959. package/packages/typescript/src/schemas/pairing-allowlist.js +76 -0
  3960. package/packages/typescript/src/schemas/pairing-request.d.ts +7 -0
  3961. package/packages/typescript/src/schemas/pairing-request.d.ts.map +1 -0
  3962. package/packages/typescript/src/schemas/pairing-request.js +96 -0
  3963. package/packages/typescript/src/schemas/participant.d.ts +6 -0
  3964. package/packages/typescript/src/schemas/participant.d.ts.map +1 -0
  3965. package/packages/typescript/src/schemas/participant.js +91 -0
  3966. package/packages/typescript/src/schemas/relationship.d.ts +7 -0
  3967. package/packages/typescript/src/schemas/relationship.d.ts.map +1 -0
  3968. package/packages/typescript/src/schemas/relationship.js +102 -0
  3969. package/packages/typescript/src/schemas/room.d.ts +6 -0
  3970. package/packages/typescript/src/schemas/room.d.ts.map +1 -0
  3971. package/packages/typescript/src/schemas/room.js +86 -0
  3972. package/packages/typescript/src/schemas/server.d.ts +7 -0
  3973. package/packages/typescript/src/schemas/server.d.ts.map +1 -0
  3974. package/packages/typescript/src/schemas/server.js +33 -0
  3975. package/packages/typescript/src/schemas/task.d.ts +6 -0
  3976. package/packages/typescript/src/schemas/task.d.ts.map +1 -0
  3977. package/packages/typescript/src/schemas/task.js +95 -0
  3978. package/packages/typescript/src/schemas/world.d.ts +6 -0
  3979. package/packages/typescript/src/schemas/world.d.ts.map +1 -0
  3980. package/packages/typescript/src/schemas/world.js +64 -0
  3981. package/packages/typescript/src/search.d.ts +359 -0
  3982. package/packages/typescript/src/search.d.ts.map +1 -0
  3983. package/packages/typescript/src/search.js +1580 -0
  3984. package/packages/typescript/src/secrets.d.ts +6 -0
  3985. package/packages/typescript/src/secrets.d.ts.map +1 -0
  3986. package/packages/typescript/src/secrets.js +28 -0
  3987. package/packages/typescript/src/security/external-content.d.ts +96 -0
  3988. package/packages/typescript/src/security/external-content.d.ts.map +1 -0
  3989. package/packages/typescript/src/security/external-content.js +252 -0
  3990. package/packages/typescript/src/security/index.d.ts +12 -0
  3991. package/packages/typescript/src/security/index.d.ts.map +1 -0
  3992. package/packages/typescript/src/security/index.js +13 -0
  3993. package/packages/typescript/src/security/redact.d.ts +111 -0
  3994. package/packages/typescript/src/security/redact.d.ts.map +1 -0
  3995. package/packages/typescript/src/security/redact.js +254 -0
  3996. package/packages/typescript/src/services/agentEvent.d.ts +297 -0
  3997. package/packages/typescript/src/services/agentEvent.d.ts.map +1 -0
  3998. package/packages/typescript/src/services/agentEvent.js +422 -0
  3999. package/packages/typescript/src/services/approval.d.ts +169 -0
  4000. package/packages/typescript/src/services/approval.d.ts.map +1 -0
  4001. package/packages/typescript/src/services/approval.js +399 -0
  4002. package/packages/typescript/src/services/embedding.d.ts +29 -0
  4003. package/packages/typescript/src/services/embedding.d.ts.map +1 -0
  4004. package/packages/typescript/src/services/embedding.js +211 -0
  4005. package/packages/typescript/src/services/followUp.d.ts +48 -0
  4006. package/packages/typescript/src/services/followUp.d.ts.map +1 -0
  4007. package/packages/typescript/src/services/followUp.js +333 -0
  4008. package/packages/typescript/src/services/hook.d.ts +85 -0
  4009. package/packages/typescript/src/services/hook.d.ts.map +1 -0
  4010. package/packages/typescript/src/services/hook.js +396 -0
  4011. package/packages/typescript/src/services/message.d.ts +107 -0
  4012. package/packages/typescript/src/services/message.d.ts.map +1 -0
  4013. package/packages/typescript/src/services/message.js +3844 -0
  4014. package/packages/typescript/src/services/onboarding-cli.d.ts +240 -0
  4015. package/packages/typescript/src/services/onboarding-cli.d.ts.map +1 -0
  4016. package/packages/typescript/src/services/onboarding-cli.js +688 -0
  4017. package/packages/typescript/src/services/onboarding-rpc.d.ts +225 -0
  4018. package/packages/typescript/src/services/onboarding-rpc.d.ts.map +1 -0
  4019. package/packages/typescript/src/services/onboarding-rpc.js +318 -0
  4020. package/packages/typescript/src/services/onboarding-state.d.ts +155 -0
  4021. package/packages/typescript/src/services/onboarding-state.d.ts.map +1 -0
  4022. package/packages/typescript/src/services/onboarding-state.js +706 -0
  4023. package/packages/typescript/src/services/optimized-prompt-resolver.d.ts +23 -0
  4024. package/packages/typescript/src/services/optimized-prompt-resolver.d.ts.map +1 -0
  4025. package/packages/typescript/src/services/optimized-prompt-resolver.js +50 -0
  4026. package/packages/typescript/src/services/optimized-prompt.d.ts +117 -0
  4027. package/packages/typescript/src/services/optimized-prompt.d.ts.map +1 -0
  4028. package/packages/typescript/src/services/optimized-prompt.js +256 -0
  4029. package/packages/typescript/src/services/pairing-integration.d.ts +96 -0
  4030. package/packages/typescript/src/services/pairing-integration.d.ts.map +1 -0
  4031. package/packages/typescript/src/services/pairing-integration.js +145 -0
  4032. package/packages/typescript/src/services/pairing-migration.d.ts +105 -0
  4033. package/packages/typescript/src/services/pairing-migration.d.ts.map +1 -0
  4034. package/packages/typescript/src/services/pairing-migration.js +283 -0
  4035. package/packages/typescript/src/services/pairing.d.ts +80 -0
  4036. package/packages/typescript/src/services/pairing.d.ts.map +1 -0
  4037. package/packages/typescript/src/services/pairing.js +253 -0
  4038. package/packages/typescript/src/services/plugin-hooks.d.ts +112 -0
  4039. package/packages/typescript/src/services/plugin-hooks.d.ts.map +1 -0
  4040. package/packages/typescript/src/services/plugin-hooks.js +163 -0
  4041. package/packages/typescript/src/services/relationships.d.ts +350 -0
  4042. package/packages/typescript/src/services/relationships.d.ts.map +1 -0
  4043. package/packages/typescript/src/services/relationships.js +1613 -0
  4044. package/packages/typescript/src/services/task-scheduler.d.ts +28 -0
  4045. package/packages/typescript/src/services/task-scheduler.d.ts.map +1 -0
  4046. package/packages/typescript/src/services/task-scheduler.js +89 -0
  4047. package/packages/typescript/src/services/task.d.ts +130 -0
  4048. package/packages/typescript/src/services/task.d.ts.map +1 -0
  4049. package/packages/typescript/src/services/task.js +536 -0
  4050. package/packages/typescript/src/services/tool-policy.d.ts +186 -0
  4051. package/packages/typescript/src/services/tool-policy.d.ts.map +1 -0
  4052. package/packages/typescript/src/services/tool-policy.js +332 -0
  4053. package/packages/typescript/src/services/trajectories.d.ts +34 -0
  4054. package/packages/typescript/src/services/trajectories.d.ts.map +1 -0
  4055. package/packages/typescript/src/services/trajectories.js +1 -0
  4056. package/packages/typescript/src/services.d.ts +61 -0
  4057. package/packages/typescript/src/services.d.ts.map +1 -0
  4058. package/packages/typescript/src/services.js +99 -0
  4059. package/packages/typescript/src/sessions/index.d.ts +17 -0
  4060. package/packages/typescript/src/sessions/index.d.ts.map +1 -0
  4061. package/packages/typescript/src/sessions/index.js +29 -0
  4062. package/packages/typescript/src/sessions/provider.d.ts +71 -0
  4063. package/packages/typescript/src/sessions/provider.d.ts.map +1 -0
  4064. package/packages/typescript/src/sessions/provider.js +243 -0
  4065. package/packages/typescript/src/sessions/session-key.d.ts +201 -0
  4066. package/packages/typescript/src/sessions/session-key.d.ts.map +1 -0
  4067. package/packages/typescript/src/sessions/session-key.js +396 -0
  4068. package/packages/typescript/src/sessions/types.d.ts +197 -0
  4069. package/packages/typescript/src/sessions/types.d.ts.map +1 -0
  4070. package/packages/typescript/src/sessions/types.js +68 -0
  4071. package/packages/typescript/src/settings.d.ts +99 -0
  4072. package/packages/typescript/src/settings.d.ts.map +1 -0
  4073. package/packages/typescript/src/settings.js +409 -0
  4074. package/packages/typescript/src/should-respond.d.ts +2 -0
  4075. package/packages/typescript/src/should-respond.d.ts.map +1 -0
  4076. package/packages/typescript/src/should-respond.js +16 -0
  4077. package/packages/typescript/src/streaming-context.d.ts +88 -0
  4078. package/packages/typescript/src/streaming-context.d.ts.map +1 -0
  4079. package/packages/typescript/src/streaming-context.js +160 -0
  4080. package/packages/typescript/src/trajectory-context.d.ts +39 -0
  4081. package/packages/typescript/src/trajectory-context.d.ts.map +1 -0
  4082. package/packages/typescript/src/trajectory-context.js +85 -0
  4083. package/packages/typescript/src/trajectory-utils.d.ts +73 -0
  4084. package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
  4085. package/packages/typescript/src/trajectory-utils.js +124 -0
  4086. package/packages/typescript/src/types/agent.d.ts +62 -0
  4087. package/packages/typescript/src/types/agent.d.ts.map +1 -0
  4088. package/packages/typescript/src/types/agent.js +5 -0
  4089. package/packages/typescript/src/types/agentEvent.d.ts +258 -0
  4090. package/packages/typescript/src/types/agentEvent.d.ts.map +1 -0
  4091. package/packages/typescript/src/types/agentEvent.js +11 -0
  4092. package/packages/typescript/src/types/channel-config.d.ts +167 -0
  4093. package/packages/typescript/src/types/channel-config.d.ts.map +1 -0
  4094. package/packages/typescript/src/types/channel-config.js +7 -0
  4095. package/packages/typescript/src/types/components.d.ts +358 -0
  4096. package/packages/typescript/src/types/components.d.ts.map +1 -0
  4097. package/packages/typescript/src/types/components.js +1 -0
  4098. package/packages/typescript/src/types/database.d.ts +1079 -0
  4099. package/packages/typescript/src/types/database.d.ts.map +1 -0
  4100. package/packages/typescript/src/types/database.js +9 -0
  4101. package/packages/typescript/src/types/environment.d.ts +73 -0
  4102. package/packages/typescript/src/types/environment.d.ts.map +1 -0
  4103. package/packages/typescript/src/types/environment.js +16 -0
  4104. package/packages/typescript/src/types/events.d.ts +403 -0
  4105. package/packages/typescript/src/types/events.d.ts.map +1 -0
  4106. package/packages/typescript/src/types/events.js +85 -0
  4107. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts +400 -0
  4108. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts.map +1 -0
  4109. package/packages/typescript/src/types/generated/eliza/v1/agent_pb.js +72 -0
  4110. package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts +364 -0
  4111. package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts.map +1 -0
  4112. package/packages/typescript/src/types/generated/eliza/v1/components_pb.js +68 -0
  4113. package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts +694 -0
  4114. package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts.map +1 -0
  4115. package/packages/typescript/src/types/generated/eliza/v1/database_pb.js +172 -0
  4116. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts +299 -0
  4117. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts.map +1 -0
  4118. package/packages/typescript/src/types/generated/eliza/v1/environment_pb.js +52 -0
  4119. package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts +746 -0
  4120. package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts.map +1 -0
  4121. package/packages/typescript/src/types/generated/eliza/v1/events_pb.js +357 -0
  4122. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts +799 -0
  4123. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts.map +1 -0
  4124. package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.js +172 -0
  4125. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts +63 -0
  4126. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts.map +1 -0
  4127. package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.js +18 -0
  4128. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts +290 -0
  4129. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts.map +1 -0
  4130. package/packages/typescript/src/types/generated/eliza/v1/memory_pb.js +53 -0
  4131. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts +160 -0
  4132. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts.map +1 -0
  4133. package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.js +88 -0
  4134. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts +214 -0
  4135. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts.map +1 -0
  4136. package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.js +78 -0
  4137. package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts +653 -0
  4138. package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts.map +1 -0
  4139. package/packages/typescript/src/types/generated/eliza/v1/model_pb.js +237 -0
  4140. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts +147 -0
  4141. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts.map +1 -0
  4142. package/packages/typescript/src/types/generated/eliza/v1/payment_pb.js +27 -0
  4143. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts +286 -0
  4144. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts.map +1 -0
  4145. package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.js +86 -0
  4146. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts +263 -0
  4147. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts.map +1 -0
  4148. package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.js +38 -0
  4149. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts +137 -0
  4150. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts.map +1 -0
  4151. package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.js +27 -0
  4152. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts +2687 -0
  4153. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts.map +1 -0
  4154. package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.js +392 -0
  4155. package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts +144 -0
  4156. package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts.map +1 -0
  4157. package/packages/typescript/src/types/generated/eliza/v1/service_pb.js +99 -0
  4158. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts +146 -0
  4159. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts.map +1 -0
  4160. package/packages/typescript/src/types/generated/eliza/v1/settings_pb.js +32 -0
  4161. package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts +259 -0
  4162. package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts.map +1 -0
  4163. package/packages/typescript/src/types/generated/eliza/v1/state_pb.js +44 -0
  4164. package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts +120 -0
  4165. package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts.map +1 -0
  4166. package/packages/typescript/src/types/generated/eliza/v1/task_pb.js +53 -0
  4167. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts +205 -0
  4168. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts.map +1 -0
  4169. package/packages/typescript/src/types/generated/eliza/v1/tee_pb.js +89 -0
  4170. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts +47 -0
  4171. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts.map +1 -0
  4172. package/packages/typescript/src/types/generated/eliza/v1/testing_pb.js +16 -0
  4173. package/packages/typescript/src/types/hook.d.ts +338 -0
  4174. package/packages/typescript/src/types/hook.d.ts.map +1 -0
  4175. package/packages/typescript/src/types/hook.js +73 -0
  4176. package/packages/typescript/src/types/index.d.ts +42 -0
  4177. package/packages/typescript/src/types/index.d.ts.map +1 -0
  4178. package/packages/typescript/src/types/index.js +50 -0
  4179. package/packages/typescript/src/types/knowledge.d.ts +49 -0
  4180. package/packages/typescript/src/types/knowledge.d.ts.map +1 -0
  4181. package/packages/typescript/src/types/knowledge.js +1 -0
  4182. package/packages/typescript/src/types/memory-storage.d.ts +28 -0
  4183. package/packages/typescript/src/types/memory-storage.d.ts.map +1 -0
  4184. package/packages/typescript/src/types/memory-storage.js +13 -0
  4185. package/packages/typescript/src/types/memory.d.ts +438 -0
  4186. package/packages/typescript/src/types/memory.d.ts.map +1 -0
  4187. package/packages/typescript/src/types/memory.js +16 -0
  4188. package/packages/typescript/src/types/message-service.d.ts +169 -0
  4189. package/packages/typescript/src/types/message-service.d.ts.map +1 -0
  4190. package/packages/typescript/src/types/message-service.js +1 -0
  4191. package/packages/typescript/src/types/messaging.d.ts +358 -0
  4192. package/packages/typescript/src/types/messaging.d.ts.map +1 -0
  4193. package/packages/typescript/src/types/messaging.js +27 -0
  4194. package/packages/typescript/src/types/model.d.ts +697 -0
  4195. package/packages/typescript/src/types/model.d.ts.map +1 -0
  4196. package/packages/typescript/src/types/model.js +247 -0
  4197. package/packages/typescript/src/types/onboarding.d.ts +319 -0
  4198. package/packages/typescript/src/types/onboarding.d.ts.map +1 -0
  4199. package/packages/typescript/src/types/onboarding.js +97 -0
  4200. package/packages/typescript/src/types/pairing.d.ts +124 -0
  4201. package/packages/typescript/src/types/pairing.d.ts.map +1 -0
  4202. package/packages/typescript/src/types/pairing.js +32 -0
  4203. package/packages/typescript/src/types/payment.d.ts +45 -0
  4204. package/packages/typescript/src/types/payment.d.ts.map +1 -0
  4205. package/packages/typescript/src/types/payment.js +1 -0
  4206. package/packages/typescript/src/types/pipeline-hooks.d.ts +234 -0
  4207. package/packages/typescript/src/types/pipeline-hooks.d.ts.map +1 -0
  4208. package/packages/typescript/src/types/pipeline-hooks.js +111 -0
  4209. package/packages/typescript/src/types/plugin-manifest.d.ts +381 -0
  4210. package/packages/typescript/src/types/plugin-manifest.d.ts.map +1 -0
  4211. package/packages/typescript/src/types/plugin-manifest.js +10 -0
  4212. package/packages/typescript/src/types/plugin-store.d.ts +173 -0
  4213. package/packages/typescript/src/types/plugin-store.d.ts.map +1 -0
  4214. package/packages/typescript/src/types/plugin-store.js +1 -0
  4215. package/packages/typescript/src/types/plugin.d.ts +336 -0
  4216. package/packages/typescript/src/types/plugin.d.ts.map +1 -0
  4217. package/packages/typescript/src/types/plugin.js +1 -0
  4218. package/packages/typescript/src/types/primitives.d.ts +176 -0
  4219. package/packages/typescript/src/types/primitives.d.ts.map +1 -0
  4220. package/packages/typescript/src/types/primitives.js +41 -0
  4221. package/packages/typescript/src/types/prompt-batcher.d.ts +126 -0
  4222. package/packages/typescript/src/types/prompt-batcher.d.ts.map +1 -0
  4223. package/packages/typescript/src/types/prompt-batcher.js +6 -0
  4224. package/packages/typescript/src/types/prompt-optimization-hooks.d.ts +41 -0
  4225. package/packages/typescript/src/types/prompt-optimization-hooks.d.ts.map +1 -0
  4226. package/packages/typescript/src/types/prompt-optimization-hooks.js +1 -0
  4227. package/packages/typescript/src/types/prompt-optimization-score-card.d.ts +22 -0
  4228. package/packages/typescript/src/types/prompt-optimization-score-card.d.ts.map +1 -0
  4229. package/packages/typescript/src/types/prompt-optimization-score-card.js +72 -0
  4230. package/packages/typescript/src/types/prompt-optimization-trace.d.ts +53 -0
  4231. package/packages/typescript/src/types/prompt-optimization-trace.d.ts.map +1 -0
  4232. package/packages/typescript/src/types/prompt-optimization-trace.js +19 -0
  4233. package/packages/typescript/src/types/prompts.d.ts +39 -0
  4234. package/packages/typescript/src/types/prompts.d.ts.map +1 -0
  4235. package/packages/typescript/src/types/prompts.js +7 -0
  4236. package/packages/typescript/src/types/proto.d.ts +60 -0
  4237. package/packages/typescript/src/types/proto.d.ts.map +1 -0
  4238. package/packages/typescript/src/types/proto.js +53 -0
  4239. package/packages/typescript/src/types/runtime.d.ts +445 -0
  4240. package/packages/typescript/src/types/runtime.d.ts.map +1 -0
  4241. package/packages/typescript/src/types/runtime.js +1 -0
  4242. package/packages/typescript/src/types/schema-builder.d.ts +43 -0
  4243. package/packages/typescript/src/types/schema-builder.d.ts.map +1 -0
  4244. package/packages/typescript/src/types/schema-builder.js +16 -0
  4245. package/packages/typescript/src/types/schema.d.ts +99 -0
  4246. package/packages/typescript/src/types/schema.d.ts.map +1 -0
  4247. package/packages/typescript/src/types/schema.js +11 -0
  4248. package/packages/typescript/src/types/service-interfaces.d.ts +1200 -0
  4249. package/packages/typescript/src/types/service-interfaces.d.ts.map +1 -0
  4250. package/packages/typescript/src/types/service-interfaces.js +81 -0
  4251. package/packages/typescript/src/types/service.d.ts +175 -0
  4252. package/packages/typescript/src/types/service.d.ts.map +1 -0
  4253. package/packages/typescript/src/types/service.js +79 -0
  4254. package/packages/typescript/src/types/settings.d.ts +36 -0
  4255. package/packages/typescript/src/types/settings.d.ts.map +1 -0
  4256. package/packages/typescript/src/types/settings.js +1 -0
  4257. package/packages/typescript/src/types/state.d.ts +251 -0
  4258. package/packages/typescript/src/types/state.d.ts.map +1 -0
  4259. package/packages/typescript/src/types/state.js +1 -0
  4260. package/packages/typescript/src/types/streaming.d.ts +93 -0
  4261. package/packages/typescript/src/types/streaming.d.ts.map +1 -0
  4262. package/packages/typescript/src/types/streaming.js +21 -0
  4263. package/packages/typescript/src/types/task.d.ts +122 -0
  4264. package/packages/typescript/src/types/task.d.ts.map +1 -0
  4265. package/packages/typescript/src/types/task.js +1 -0
  4266. package/packages/typescript/src/types/tee.d.ts +3 -0
  4267. package/packages/typescript/src/types/tee.d.ts.map +1 -0
  4268. package/packages/typescript/src/types/tee.js +1 -0
  4269. package/packages/typescript/src/types/testing.d.ts +15 -0
  4270. package/packages/typescript/src/types/testing.d.ts.map +1 -0
  4271. package/packages/typescript/src/types/testing.js +1 -0
  4272. package/packages/typescript/src/types/tools.d.ts +166 -0
  4273. package/packages/typescript/src/types/tools.d.ts.map +1 -0
  4274. package/packages/typescript/src/types/tools.js +380 -0
  4275. package/packages/typescript/src/types/trigger.d.ts +42 -0
  4276. package/packages/typescript/src/types/trigger.d.ts.map +1 -0
  4277. package/packages/typescript/src/types/trigger.js +1 -0
  4278. package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts +52 -0
  4279. package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts.map +1 -0
  4280. package/packages/typescript/src/utils/batch-queue/batch-processor.js +126 -0
  4281. package/packages/typescript/src/utils/batch-queue/index.d.ts +97 -0
  4282. package/packages/typescript/src/utils/batch-queue/index.d.ts.map +1 -0
  4283. package/packages/typescript/src/utils/batch-queue/index.js +175 -0
  4284. package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts +53 -0
  4285. package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts.map +1 -0
  4286. package/packages/typescript/src/utils/batch-queue/priority-queue.js +128 -0
  4287. package/packages/typescript/src/utils/batch-queue/semaphore.d.ts +18 -0
  4288. package/packages/typescript/src/utils/batch-queue/semaphore.d.ts.map +1 -0
  4289. package/packages/typescript/src/utils/batch-queue/semaphore.js +34 -0
  4290. package/packages/typescript/src/utils/batch-queue/task-drain.d.ts +57 -0
  4291. package/packages/typescript/src/utils/batch-queue/task-drain.d.ts.map +1 -0
  4292. package/packages/typescript/src/utils/batch-queue/task-drain.js +150 -0
  4293. package/packages/typescript/src/utils/batch-queue.d.ts +20 -0
  4294. package/packages/typescript/src/utils/batch-queue.d.ts.map +1 -0
  4295. package/packages/typescript/src/utils/batch-queue.js +19 -0
  4296. package/packages/typescript/src/utils/boolean.d.ts +50 -0
  4297. package/packages/typescript/src/utils/boolean.d.ts.map +1 -0
  4298. package/packages/typescript/src/utils/boolean.js +73 -0
  4299. package/packages/typescript/src/utils/buffer.d.ts +107 -0
  4300. package/packages/typescript/src/utils/buffer.d.ts.map +1 -0
  4301. package/packages/typescript/src/utils/buffer.js +229 -0
  4302. package/packages/typescript/src/utils/channel-utils.d.ts +274 -0
  4303. package/packages/typescript/src/utils/channel-utils.d.ts.map +1 -0
  4304. package/packages/typescript/src/utils/channel-utils.js +337 -0
  4305. package/packages/typescript/src/utils/context-catalog.d.ts +6 -0
  4306. package/packages/typescript/src/utils/context-catalog.d.ts.map +1 -0
  4307. package/packages/typescript/src/utils/context-catalog.js +126 -0
  4308. package/packages/typescript/src/utils/context-routing.d.ts +25 -0
  4309. package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
  4310. package/packages/typescript/src/utils/context-routing.js +164 -0
  4311. package/packages/typescript/src/utils/crypto-compat.d.ts +83 -0
  4312. package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
  4313. package/packages/typescript/src/utils/crypto-compat.js +368 -0
  4314. package/packages/typescript/src/utils/deterministic.d.ts +9 -0
  4315. package/packages/typescript/src/utils/deterministic.d.ts.map +1 -0
  4316. package/packages/typescript/src/utils/deterministic.js +70 -0
  4317. package/packages/typescript/src/utils/environment.d.ts +125 -0
  4318. package/packages/typescript/src/utils/environment.d.ts.map +1 -0
  4319. package/packages/typescript/src/utils/environment.js +290 -0
  4320. package/packages/typescript/src/utils/example-names.d.ts +3 -0
  4321. package/packages/typescript/src/utils/example-names.d.ts.map +1 -0
  4322. package/packages/typescript/src/utils/example-names.js +30 -0
  4323. package/packages/typescript/src/utils/json-llm.d.ts +17 -0
  4324. package/packages/typescript/src/utils/json-llm.d.ts.map +1 -0
  4325. package/packages/typescript/src/utils/json-llm.js +32 -0
  4326. package/packages/typescript/src/utils/model-errors.d.ts +3 -0
  4327. package/packages/typescript/src/utils/model-errors.d.ts.map +1 -0
  4328. package/packages/typescript/src/utils/model-errors.js +23 -0
  4329. package/packages/typescript/src/utils/node.d.ts +8 -0
  4330. package/packages/typescript/src/utils/node.d.ts.map +1 -0
  4331. package/packages/typescript/src/utils/node.js +12 -0
  4332. package/packages/typescript/src/utils/paths.d.ts +97 -0
  4333. package/packages/typescript/src/utils/paths.d.ts.map +1 -0
  4334. package/packages/typescript/src/utils/paths.js +204 -0
  4335. package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts +163 -0
  4336. package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts.map +1 -0
  4337. package/packages/typescript/src/utils/prompt-batcher/batcher.js +896 -0
  4338. package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts +15 -0
  4339. package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts.map +1 -0
  4340. package/packages/typescript/src/utils/prompt-batcher/dispatcher.js +230 -0
  4341. package/packages/typescript/src/utils/prompt-batcher/shared.d.ts +66 -0
  4342. package/packages/typescript/src/utils/prompt-batcher/shared.d.ts.map +1 -0
  4343. package/packages/typescript/src/utils/prompt-batcher/shared.js +101 -0
  4344. package/packages/typescript/src/utils/prompt-batcher.d.ts +5 -0
  4345. package/packages/typescript/src/utils/prompt-batcher.d.ts.map +1 -0
  4346. package/packages/typescript/src/utils/prompt-batcher.js +4 -0
  4347. package/packages/typescript/src/utils/retry.d.ts +128 -0
  4348. package/packages/typescript/src/utils/retry.d.ts.map +1 -0
  4349. package/packages/typescript/src/utils/retry.js +190 -0
  4350. package/packages/typescript/src/utils/server-health.d.ts +35 -0
  4351. package/packages/typescript/src/utils/server-health.d.ts.map +1 -0
  4352. package/packages/typescript/src/utils/server-health.js +76 -0
  4353. package/packages/typescript/src/utils/slice-to-fit-budget.d.ts +12 -0
  4354. package/packages/typescript/src/utils/slice-to-fit-budget.d.ts.map +1 -0
  4355. package/packages/typescript/src/utils/slice-to-fit-budget.js +36 -0
  4356. package/packages/typescript/src/utils/state-dir.d.ts +19 -0
  4357. package/packages/typescript/src/utils/state-dir.d.ts.map +1 -0
  4358. package/packages/typescript/src/utils/state-dir.js +24 -0
  4359. package/packages/typescript/src/utils/streaming.d.ts +275 -0
  4360. package/packages/typescript/src/utils/streaming.d.ts.map +1 -0
  4361. package/packages/typescript/src/utils/streaming.js +774 -0
  4362. package/packages/typescript/src/utils/text-normalize.d.ts +23 -0
  4363. package/packages/typescript/src/utils/text-normalize.d.ts.map +1 -0
  4364. package/packages/typescript/src/utils/text-normalize.js +42 -0
  4365. package/packages/typescript/src/utils/text-splitting.d.ts +14 -0
  4366. package/packages/typescript/src/utils/text-splitting.d.ts.map +1 -0
  4367. package/packages/typescript/src/utils/text-splitting.js +66 -0
  4368. package/packages/typescript/src/utils/toon.d.ts +8 -0
  4369. package/packages/typescript/src/utils/toon.d.ts.map +1 -0
  4370. package/packages/typescript/src/utils/toon.js +346 -0
  4371. package/packages/typescript/src/utils/type-guards.d.ts +25 -0
  4372. package/packages/typescript/src/utils/type-guards.d.ts.map +1 -0
  4373. package/packages/typescript/src/utils/type-guards.js +73 -0
  4374. package/packages/typescript/src/utils/union-find.d.ts +30 -0
  4375. package/packages/typescript/src/utils/union-find.d.ts.map +1 -0
  4376. package/packages/typescript/src/utils/union-find.js +81 -0
  4377. package/packages/typescript/src/utils.d.ts +192 -0
  4378. package/packages/typescript/src/utils.d.ts.map +1 -0
  4379. package/packages/typescript/src/utils.js +1120 -0
  4380. package/packages/typescript/src/validation/index.d.ts +8 -0
  4381. package/packages/typescript/src/validation/index.d.ts.map +1 -0
  4382. package/packages/typescript/src/validation/index.js +7 -0
  4383. package/packages/typescript/src/validation/keywords.d.ts +26 -0
  4384. package/packages/typescript/src/validation/keywords.d.ts.map +1 -0
  4385. package/packages/typescript/src/validation/keywords.js +76 -0
  4386. package/packages/typescript/src/validation/secrets.d.ts +94 -0
  4387. package/packages/typescript/src/validation/secrets.d.ts.map +1 -0
  4388. package/packages/typescript/src/validation/secrets.js +399 -0
  4389. package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +9 -0
  4390. package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +1 -0
  4391. package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +8 -0
  4392. package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +14 -0
  4393. package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +1 -0
  4394. package/packages/ui/src/components/composites/chat/chat-bubble.js +14 -0
  4395. package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +10 -0
  4396. package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +1 -0
  4397. package/packages/ui/src/components/composites/chat/chat-composer-shell.js +16 -0
  4398. package/packages/ui/src/components/composites/chat/chat-composer.d.ts +39 -0
  4399. package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +1 -0
  4400. package/packages/ui/src/components/composites/chat/chat-composer.js +148 -0
  4401. package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +21 -0
  4402. package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +1 -0
  4403. package/packages/ui/src/components/composites/chat/chat-conversation-item.js +120 -0
  4404. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +22 -0
  4405. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +1 -0
  4406. package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +14 -0
  4407. package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +19 -0
  4408. package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +1 -0
  4409. package/packages/ui/src/components/composites/chat/chat-empty-state.js +8 -0
  4410. package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +14 -0
  4411. package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +1 -0
  4412. package/packages/ui/src/components/composites/chat/chat-message-actions.js +10 -0
  4413. package/packages/ui/src/components/composites/chat/chat-message.d.ts +18 -0
  4414. package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +1 -0
  4415. package/packages/ui/src/components/composites/chat/chat-message.js +275 -0
  4416. package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +54 -0
  4417. package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +1 -0
  4418. package/packages/ui/src/components/composites/chat/chat-sidebar.js +64 -0
  4419. package/packages/ui/src/components/composites/chat/chat-source.d.ts +20 -0
  4420. package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +1 -0
  4421. package/packages/ui/src/components/composites/chat/chat-source.js +132 -0
  4422. package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +18 -0
  4423. package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +1 -0
  4424. package/packages/ui/src/components/composites/chat/chat-thread-layout.js +28 -0
  4425. package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +19 -0
  4426. package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +1 -0
  4427. package/packages/ui/src/components/composites/chat/chat-transcript.js +82 -0
  4428. package/packages/ui/src/components/composites/chat/chat-types.d.ts +90 -0
  4429. package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +1 -0
  4430. package/packages/ui/src/components/composites/chat/chat-types.js +1 -0
  4431. package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +10 -0
  4432. package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +1 -0
  4433. package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +11 -0
  4434. package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +8 -0
  4435. package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +1 -0
  4436. package/packages/ui/src/components/composites/chat/create-task-popover.js +44 -0
  4437. package/packages/ui/src/components/composites/chat/index.d.ts +17 -0
  4438. package/packages/ui/src/components/composites/chat/index.d.ts.map +1 -0
  4439. package/packages/ui/src/components/composites/chat/index.js +16 -0
  4440. package/packages/ui/src/components/composites/form-field/form-field.d.ts +14 -0
  4441. package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +1 -0
  4442. package/packages/ui/src/components/composites/form-field/form-field.js +8 -0
  4443. package/packages/ui/src/components/composites/form-field/index.d.ts +2 -0
  4444. package/packages/ui/src/components/composites/form-field/index.d.ts.map +1 -0
  4445. package/packages/ui/src/components/composites/form-field/index.js +1 -0
  4446. package/packages/ui/src/components/composites/index.d.ts +27 -0
  4447. package/packages/ui/src/components/composites/index.d.ts.map +1 -0
  4448. package/packages/ui/src/components/composites/index.js +26 -0
  4449. package/packages/ui/src/components/composites/page-panel/index.d.ts +29 -0
  4450. package/packages/ui/src/components/composites/page-panel/index.d.ts.map +1 -0
  4451. package/packages/ui/src/components/composites/page-panel/index.js +28 -0
  4452. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +4 -0
  4453. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +1 -0
  4454. package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +60 -0
  4455. package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +3 -0
  4456. package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +1 -0
  4457. package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +15 -0
  4458. package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +5 -0
  4459. package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +1 -0
  4460. package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +9 -0
  4461. package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +7 -0
  4462. package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +1 -0
  4463. package/packages/ui/src/components/composites/page-panel/page-panel-header.js +30 -0
  4464. package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +3 -0
  4465. package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +1 -0
  4466. package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +13 -0
  4467. package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +7 -0
  4468. package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +1 -0
  4469. package/packages/ui/src/components/composites/page-panel/page-panel-root.js +17 -0
  4470. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +4 -0
  4471. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +1 -0
  4472. package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +6 -0
  4473. package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +66 -0
  4474. package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +1 -0
  4475. package/packages/ui/src/components/composites/page-panel/page-panel-types.js +1 -0
  4476. package/packages/ui/src/components/composites/search/index.d.ts +3 -0
  4477. package/packages/ui/src/components/composites/search/index.d.ts.map +1 -0
  4478. package/packages/ui/src/components/composites/search/index.js +2 -0
  4479. package/packages/ui/src/components/composites/search/search-input.d.ts.map +1 -0
  4480. package/packages/ui/src/components/composites/search/search-input.js +10 -0
  4481. package/packages/ui/src/components/composites/search/searchbar.d.ts +18 -0
  4482. package/packages/ui/src/components/composites/search/searchbar.d.ts.map +1 -0
  4483. package/packages/ui/src/components/composites/search/searchbar.js +25 -0
  4484. package/packages/ui/src/components/composites/sidebar/index.d.ts +11 -0
  4485. package/packages/ui/src/components/composites/sidebar/index.d.ts.map +1 -0
  4486. package/packages/ui/src/components/composites/sidebar/index.js +10 -0
  4487. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +15 -0
  4488. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +1 -0
  4489. package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +292 -0
  4490. package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +4 -0
  4491. package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +1 -0
  4492. package/packages/ui/src/components/composites/sidebar/sidebar-body.js +7 -0
  4493. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +11 -0
  4494. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +1 -0
  4495. package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +13 -0
  4496. package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +78 -0
  4497. package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -0
  4498. package/packages/ui/src/components/composites/sidebar/sidebar-content.js +94 -0
  4499. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +3 -0
  4500. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +1 -0
  4501. package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +14 -0
  4502. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +3 -0
  4503. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +1 -0
  4504. package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +6 -0
  4505. package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +9 -0
  4506. package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +1 -0
  4507. package/packages/ui/src/components/composites/sidebar/sidebar-header.js +6 -0
  4508. package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +3 -0
  4509. package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +1 -0
  4510. package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +18 -0
  4511. package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +4 -0
  4512. package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +1 -0
  4513. package/packages/ui/src/components/composites/sidebar/sidebar-root.js +448 -0
  4514. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +3 -0
  4515. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +1 -0
  4516. package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +18 -0
  4517. package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +59 -0
  4518. package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +1 -0
  4519. package/packages/ui/src/components/composites/sidebar/sidebar-types.js +1 -0
  4520. package/packages/ui/src/components/composites/skills/index.d.ts +2 -0
  4521. package/packages/ui/src/components/composites/skills/index.d.ts.map +1 -0
  4522. package/packages/ui/src/components/composites/skills/index.js +1 -0
  4523. package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +16 -0
  4524. package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +1 -0
  4525. package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +7 -0
  4526. package/packages/ui/src/components/composites/trajectories/index.d.ts +5 -0
  4527. package/packages/ui/src/components/composites/trajectories/index.d.ts.map +1 -0
  4528. package/packages/ui/src/components/composites/trajectories/index.js +4 -0
  4529. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +13 -0
  4530. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +1 -0
  4531. package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +13 -0
  4532. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +34 -0
  4533. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +1 -0
  4534. package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +14 -0
  4535. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +26 -0
  4536. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +1 -0
  4537. package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +46 -0
  4538. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +15 -0
  4539. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +1 -0
  4540. package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +8 -0
  4541. package/packages/ui/src/components/primitives/index.d.ts +26 -0
  4542. package/packages/ui/src/components/primitives/index.d.ts.map +1 -0
  4543. package/packages/ui/src/components/primitives/index.js +25 -0
  4544. package/packages/ui/src/components/shell/Header.d.ts +12 -0
  4545. package/packages/ui/src/components/shell/Header.d.ts.map +1 -0
  4546. package/packages/ui/src/components/shell/Header.js +133 -0
  4547. package/packages/ui/src/components/shell/ShellHeaderControls.d.ts +39 -0
  4548. package/packages/ui/src/components/shell/ShellHeaderControls.d.ts.map +1 -0
  4549. package/packages/ui/src/components/shell/ShellHeaderControls.js +70 -0
  4550. package/packages/ui/src/components/ui/admin-dialog.d.ts +50 -0
  4551. package/packages/ui/src/components/ui/admin-dialog.d.ts.map +1 -0
  4552. package/packages/ui/src/components/ui/admin-dialog.js +48 -0
  4553. package/packages/ui/src/components/ui/badge.d.ts +10 -0
  4554. package/packages/ui/src/components/ui/badge.d.ts.map +1 -0
  4555. package/packages/ui/src/components/ui/badge.js +21 -0
  4556. package/packages/ui/src/components/ui/banner.d.ts +17 -0
  4557. package/packages/ui/src/components/ui/banner.d.ts.map +1 -0
  4558. package/packages/ui/src/components/ui/banner.js +29 -0
  4559. package/packages/ui/src/components/ui/button.d.ts +13 -0
  4560. package/packages/ui/src/components/ui/button.d.ts.map +1 -0
  4561. package/packages/ui/src/components/ui/button.js +40 -0
  4562. package/packages/ui/src/components/ui/card.d.ts +15 -0
  4563. package/packages/ui/src/components/ui/card.d.ts.map +1 -0
  4564. package/packages/ui/src/components/ui/card.js +32 -0
  4565. package/packages/ui/src/components/ui/checkbox.d.ts.map +1 -0
  4566. package/packages/ui/src/components/ui/confirm-delete.d.ts +20 -0
  4567. package/packages/ui/src/components/ui/confirm-delete.d.ts.map +1 -0
  4568. package/packages/ui/src/components/ui/confirm-delete.js +16 -0
  4569. package/packages/ui/src/components/ui/confirm-dialog.d.ts +49 -0
  4570. package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +1 -0
  4571. package/packages/ui/src/components/ui/confirm-dialog.js +90 -0
  4572. package/packages/ui/src/components/ui/connection-status.d.ts +15 -0
  4573. package/packages/ui/src/components/ui/connection-status.d.ts.map +1 -0
  4574. package/packages/ui/src/components/ui/connection-status.js +25 -0
  4575. package/packages/ui/src/components/ui/copy-button.d.ts.map +1 -0
  4576. package/packages/ui/src/components/ui/dialog.d.ts +25 -0
  4577. package/packages/ui/src/components/ui/dialog.d.ts.map +1 -0
  4578. package/packages/ui/src/components/ui/dialog.js +23 -0
  4579. package/packages/ui/src/components/ui/drawer-sheet.d.ts +19 -0
  4580. package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +1 -0
  4581. package/packages/ui/src/components/ui/drawer-sheet.js +21 -0
  4582. package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +1 -0
  4583. package/packages/ui/src/components/ui/dropdown-menu.js +35 -0
  4584. package/packages/ui/src/components/ui/empty-state.d.ts.map +1 -0
  4585. package/packages/ui/src/components/ui/error-boundary.d.ts +22 -0
  4586. package/packages/ui/src/components/ui/error-boundary.d.ts.map +1 -0
  4587. package/packages/ui/src/components/ui/error-boundary.js +27 -0
  4588. package/packages/ui/src/components/ui/field-switch.d.ts +8 -0
  4589. package/packages/ui/src/components/ui/field-switch.d.ts.map +1 -0
  4590. package/packages/ui/src/components/ui/field-switch.js +10 -0
  4591. package/packages/ui/src/components/ui/field.d.ts +12 -0
  4592. package/packages/ui/src/components/ui/field.d.ts.map +1 -0
  4593. package/packages/ui/src/components/ui/field.js +21 -0
  4594. package/packages/ui/src/components/ui/form-select.d.ts +14 -0
  4595. package/packages/ui/src/components/ui/form-select.d.ts.map +1 -0
  4596. package/packages/ui/src/components/ui/form-select.js +9 -0
  4597. package/packages/ui/src/components/ui/grid.d.ts +10 -0
  4598. package/packages/ui/src/components/ui/grid.d.ts.map +1 -0
  4599. package/packages/ui/src/components/ui/grid.js +31 -0
  4600. package/packages/ui/src/components/ui/input.d.ts +12 -0
  4601. package/packages/ui/src/components/ui/input.d.ts.map +1 -0
  4602. package/packages/ui/src/components/ui/input.js +29 -0
  4603. package/packages/ui/src/components/ui/label.d.ts +5 -0
  4604. package/packages/ui/src/components/ui/label.d.ts.map +1 -0
  4605. package/packages/ui/src/components/ui/label.js +10 -0
  4606. package/packages/ui/src/components/ui/new-action-button.d.ts +7 -0
  4607. package/packages/ui/src/components/ui/new-action-button.d.ts.map +1 -0
  4608. package/packages/ui/src/components/ui/new-action-button.js +13 -0
  4609. package/packages/ui/src/components/ui/popover.d.ts.map +1 -0
  4610. package/packages/ui/src/components/ui/save-footer.d.ts.map +1 -0
  4611. package/packages/ui/src/components/ui/save-footer.js +10 -0
  4612. package/packages/ui/src/components/ui/section-card.d.ts.map +1 -0
  4613. package/packages/ui/src/components/ui/section-card.js +10 -0
  4614. package/packages/ui/src/components/ui/segmented-control.d.ts +18 -0
  4615. package/packages/ui/src/components/ui/segmented-control.d.ts.map +1 -0
  4616. package/packages/ui/src/components/ui/segmented-control.js +10 -0
  4617. package/packages/ui/src/components/ui/select.d.ts.map +1 -0
  4618. package/packages/ui/src/components/ui/select.js +27 -0
  4619. package/packages/ui/src/components/ui/separator.d.ts.map +1 -0
  4620. package/packages/ui/src/components/ui/settings-controls.d.ts +41 -0
  4621. package/packages/ui/src/components/ui/settings-controls.d.ts.map +1 -0
  4622. package/packages/ui/src/components/ui/settings-controls.js +60 -0
  4623. package/packages/ui/src/components/ui/skeleton.d.ts.map +1 -0
  4624. package/packages/ui/src/components/ui/skeleton.js +24 -0
  4625. package/packages/ui/src/components/ui/slider.d.ts.map +1 -0
  4626. package/packages/ui/src/components/ui/slider.js +7 -0
  4627. package/packages/ui/src/components/ui/sonner.d.ts +2 -0
  4628. package/packages/ui/src/components/ui/sonner.d.ts.map +1 -0
  4629. package/packages/ui/src/components/ui/sonner.js +1 -0
  4630. package/packages/ui/src/components/ui/spinner.d.ts.map +1 -0
  4631. package/packages/ui/src/components/ui/stack.d.ts +11 -0
  4632. package/packages/ui/src/components/ui/stack.d.ts.map +1 -0
  4633. package/packages/ui/src/components/ui/stack.js +40 -0
  4634. package/packages/ui/src/components/ui/status-badge.d.ts +27 -0
  4635. package/packages/ui/src/components/ui/status-badge.d.ts.map +1 -0
  4636. package/packages/ui/src/components/ui/status-badge.js +70 -0
  4637. package/packages/ui/src/components/ui/switch.d.ts.map +1 -0
  4638. package/packages/ui/src/components/ui/switch.js +7 -0
  4639. package/packages/ui/src/components/ui/tabs.d.ts.map +1 -0
  4640. package/packages/ui/src/components/ui/tabs.js +12 -0
  4641. package/packages/ui/src/components/ui/tag-editor.d.ts +12 -0
  4642. package/packages/ui/src/components/ui/tag-editor.d.ts.map +1 -0
  4643. package/packages/ui/src/components/ui/tag-editor.js +34 -0
  4644. package/packages/ui/src/components/ui/tag-input.d.ts +3 -0
  4645. package/packages/ui/src/components/ui/tag-input.d.ts.map +1 -0
  4646. package/packages/ui/src/components/ui/tag-input.js +1 -0
  4647. package/packages/ui/src/components/ui/textarea.d.ts +12 -0
  4648. package/packages/ui/src/components/ui/textarea.d.ts.map +1 -0
  4649. package/packages/ui/src/components/ui/textarea.js +29 -0
  4650. package/packages/ui/src/components/ui/themed-select.d.ts +22 -0
  4651. package/packages/ui/src/components/ui/themed-select.d.ts.map +1 -0
  4652. package/packages/ui/src/components/ui/themed-select.js +137 -0
  4653. package/packages/ui/src/components/ui/tooltip-extended.d.ts +54 -0
  4654. package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +1 -0
  4655. package/packages/ui/src/components/ui/tooltip-extended.js +116 -0
  4656. package/packages/ui/src/components/ui/tooltip.d.ts +18 -0
  4657. package/packages/ui/src/components/ui/tooltip.d.ts.map +1 -0
  4658. package/packages/ui/src/components/ui/tooltip.js +13 -0
  4659. package/packages/ui/src/components/ui/typography.d.ts +15 -0
  4660. package/packages/ui/src/components/ui/typography.d.ts.map +1 -0
  4661. package/packages/ui/src/components/ui/typography.js +46 -0
  4662. package/packages/ui/src/hooks/index.d.ts +6 -0
  4663. package/packages/ui/src/hooks/index.d.ts.map +1 -0
  4664. package/packages/ui/src/hooks/index.js +5 -0
  4665. package/packages/ui/src/hooks/useClickOutside.d.ts +3 -0
  4666. package/packages/ui/src/hooks/useClickOutside.d.ts.map +1 -0
  4667. package/packages/ui/src/hooks/useClickOutside.js +22 -0
  4668. package/packages/ui/src/hooks/useDocumentVisibility.d.ts +3 -0
  4669. package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +1 -0
  4670. package/packages/ui/src/hooks/useDocumentVisibility.js +28 -0
  4671. package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +13 -0
  4672. package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
  4673. package/packages/ui/src/hooks/useKeyboardShortcuts.js +34 -0
  4674. package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +16 -0
  4675. package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +1 -0
  4676. package/packages/ui/src/hooks/useLinkedSidebarSelection.js +117 -0
  4677. package/packages/ui/src/hooks/useTimeout.d.ts +5 -0
  4678. package/packages/ui/src/hooks/useTimeout.d.ts.map +1 -0
  4679. package/packages/ui/src/hooks/useTimeout.js +26 -0
  4680. package/packages/ui/src/index.d.ts +8 -0
  4681. package/packages/ui/src/index.d.ts.map +1 -0
  4682. package/packages/ui/src/index.js +7 -0
  4683. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +11 -0
  4684. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +1 -0
  4685. package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +37 -0
  4686. package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +2 -0
  4687. package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +1 -0
  4688. package/packages/ui/src/layouts/chat-panel-layout/index.js +1 -0
  4689. package/packages/ui/src/layouts/content-layout/content-layout.d.ts +21 -0
  4690. package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +1 -0
  4691. package/packages/ui/src/layouts/content-layout/content-layout.js +5 -0
  4692. package/packages/ui/src/layouts/content-layout/index.d.ts +2 -0
  4693. package/packages/ui/src/layouts/content-layout/index.d.ts.map +1 -0
  4694. package/packages/ui/src/layouts/content-layout/index.js +1 -0
  4695. package/packages/ui/src/layouts/index.d.ts +5 -0
  4696. package/packages/ui/src/layouts/index.d.ts.map +1 -0
  4697. package/packages/ui/src/layouts/index.js +4 -0
  4698. package/packages/ui/src/layouts/layout-test-utils.d.ts +6 -0
  4699. package/packages/ui/src/layouts/layout-test-utils.d.ts.map +1 -0
  4700. package/packages/ui/src/layouts/layout-test-utils.js +36 -0
  4701. package/packages/ui/src/layouts/page-layout/index.d.ts +5 -0
  4702. package/packages/ui/src/layouts/page-layout/index.d.ts.map +1 -0
  4703. package/packages/ui/src/layouts/page-layout/index.js +4 -0
  4704. package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +5 -0
  4705. package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +1 -0
  4706. package/packages/ui/src/layouts/page-layout/page-layout-header.js +5 -0
  4707. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +3 -0
  4708. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +1 -0
  4709. package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +18 -0
  4710. package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +15 -0
  4711. package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +1 -0
  4712. package/packages/ui/src/layouts/page-layout/page-layout-types.js +1 -0
  4713. package/packages/ui/src/layouts/page-layout/page-layout.d.ts +3 -0
  4714. package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +1 -0
  4715. package/packages/ui/src/layouts/page-layout/page-layout.js +5 -0
  4716. package/packages/ui/src/layouts/workspace-layout/index.d.ts +3 -0
  4717. package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +1 -0
  4718. package/packages/ui/src/layouts/workspace-layout/index.js +2 -0
  4719. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +19 -0
  4720. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +1 -0
  4721. package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +1 -0
  4722. package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +3 -0
  4723. package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -0
  4724. package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +59 -0
  4725. package/packages/ui/src/lib/floating-layers.d.ts +17 -0
  4726. package/packages/ui/src/lib/floating-layers.d.ts.map +1 -0
  4727. package/packages/ui/src/lib/floating-layers.js +20 -0
  4728. package/packages/ui/src/lib/utils.d.ts +3 -0
  4729. package/packages/ui/src/lib/utils.d.ts.map +1 -0
  4730. package/packages/ui/src/lib/utils.js +5 -0
  4731. package/packages/ui/src/stories/layout-story-fixtures.d.ts +14 -0
  4732. package/packages/ui/src/stories/layout-story-fixtures.d.ts.map +1 -0
  4733. package/packages/ui/src/stories/layout-story-fixtures.js +33 -0
  4734. package/packages/ui/src/types/onboarding.d.ts +8 -0
  4735. package/packages/ui/src/types/onboarding.d.ts.map +1 -0
  4736. package/packages/ui/src/types/onboarding.js +17 -0
  4737. package/styles/electrobun-mac-window-drag.css +85 -0
  4738. package/styles/theme.css +7 -0
  4739. package/README.md +0 -6
  4740. package/dist/components/ui/badge.d.ts +0 -10
  4741. package/dist/components/ui/badge.d.ts.map +0 -1
  4742. package/dist/components/ui/badge.js +0 -20
  4743. package/dist/components/ui/banner.d.ts +0 -18
  4744. package/dist/components/ui/banner.d.ts.map +0 -1
  4745. package/dist/components/ui/banner.js +0 -27
  4746. package/dist/components/ui/button.d.ts +0 -12
  4747. package/dist/components/ui/button.d.ts.map +0 -1
  4748. package/dist/components/ui/button.js +0 -33
  4749. package/dist/components/ui/card.d.ts +0 -9
  4750. package/dist/components/ui/card.d.ts.map +0 -1
  4751. package/dist/components/ui/card.js +0 -16
  4752. package/dist/components/ui/chat-atoms.d.ts +0 -26
  4753. package/dist/components/ui/chat-atoms.d.ts.map +0 -1
  4754. package/dist/components/ui/chat-atoms.js +0 -17
  4755. package/dist/components/ui/checkbox.d.ts.map +0 -1
  4756. package/dist/components/ui/confirm-delete.d.ts +0 -12
  4757. package/dist/components/ui/confirm-delete.d.ts.map +0 -1
  4758. package/dist/components/ui/confirm-delete.js +0 -13
  4759. package/dist/components/ui/confirm-dialog.d.ts +0 -24
  4760. package/dist/components/ui/confirm-dialog.d.ts.map +0 -1
  4761. package/dist/components/ui/confirm-dialog.js +0 -55
  4762. package/dist/components/ui/connection-status.d.ts +0 -9
  4763. package/dist/components/ui/connection-status.d.ts.map +0 -1
  4764. package/dist/components/ui/connection-status.js +0 -25
  4765. package/dist/components/ui/copy-button.d.ts.map +0 -1
  4766. package/dist/components/ui/dialog.d.ts +0 -20
  4767. package/dist/components/ui/dialog.d.ts.map +0 -1
  4768. package/dist/components/ui/dialog.js +0 -22
  4769. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  4770. package/dist/components/ui/dropdown-menu.js +0 -35
  4771. package/dist/components/ui/empty-state.d.ts.map +0 -1
  4772. package/dist/components/ui/error-boundary.d.ts +0 -18
  4773. package/dist/components/ui/error-boundary.d.ts.map +0 -1
  4774. package/dist/components/ui/error-boundary.js +0 -27
  4775. package/dist/components/ui/grid.d.ts +0 -11
  4776. package/dist/components/ui/grid.d.ts.map +0 -1
  4777. package/dist/components/ui/grid.js +0 -30
  4778. package/dist/components/ui/input.d.ts +0 -6
  4779. package/dist/components/ui/input.d.ts.map +0 -1
  4780. package/dist/components/ui/input.js +0 -8
  4781. package/dist/components/ui/label.d.ts +0 -6
  4782. package/dist/components/ui/label.d.ts.map +0 -1
  4783. package/dist/components/ui/label.js +0 -9
  4784. package/dist/components/ui/popover.d.ts.map +0 -1
  4785. package/dist/components/ui/save-footer.d.ts.map +0 -1
  4786. package/dist/components/ui/save-footer.js +0 -9
  4787. package/dist/components/ui/search-bar.d.ts +0 -17
  4788. package/dist/components/ui/search-bar.d.ts.map +0 -1
  4789. package/dist/components/ui/search-bar.js +0 -19
  4790. package/dist/components/ui/search-input.d.ts.map +0 -1
  4791. package/dist/components/ui/search-input.js +0 -9
  4792. package/dist/components/ui/section-card.d.ts.map +0 -1
  4793. package/dist/components/ui/section-card.js +0 -9
  4794. package/dist/components/ui/select.d.ts.map +0 -1
  4795. package/dist/components/ui/select.js +0 -26
  4796. package/dist/components/ui/separator.d.ts.map +0 -1
  4797. package/dist/components/ui/skeleton.d.ts.map +0 -1
  4798. package/dist/components/ui/skeleton.js +0 -25
  4799. package/dist/components/ui/slider.d.ts.map +0 -1
  4800. package/dist/components/ui/slider.js +0 -7
  4801. package/dist/components/ui/sonner.d.ts +0 -5
  4802. package/dist/components/ui/sonner.d.ts.map +0 -1
  4803. package/dist/components/ui/sonner.js +0 -15
  4804. package/dist/components/ui/spinner.d.ts.map +0 -1
  4805. package/dist/components/ui/stack.d.ts +0 -13
  4806. package/dist/components/ui/stack.d.ts.map +0 -1
  4807. package/dist/components/ui/stack.js +0 -39
  4808. package/dist/components/ui/status-badge.d.ts +0 -20
  4809. package/dist/components/ui/status-badge.d.ts.map +0 -1
  4810. package/dist/components/ui/status-badge.js +0 -41
  4811. package/dist/components/ui/switch.d.ts.map +0 -1
  4812. package/dist/components/ui/switch.js +0 -7
  4813. package/dist/components/ui/tabs.d.ts.map +0 -1
  4814. package/dist/components/ui/tabs.js +0 -12
  4815. package/dist/components/ui/tag-editor.d.ts +0 -24
  4816. package/dist/components/ui/tag-editor.d.ts.map +0 -1
  4817. package/dist/components/ui/tag-editor.js +0 -32
  4818. package/dist/components/ui/tag-input.d.ts +0 -19
  4819. package/dist/components/ui/tag-input.d.ts.map +0 -1
  4820. package/dist/components/ui/tag-input.js +0 -28
  4821. package/dist/components/ui/textarea.d.ts +0 -6
  4822. package/dist/components/ui/textarea.d.ts.map +0 -1
  4823. package/dist/components/ui/textarea.js +0 -8
  4824. package/dist/components/ui/themed-select.d.ts +0 -27
  4825. package/dist/components/ui/themed-select.d.ts.map +0 -1
  4826. package/dist/components/ui/themed-select.js +0 -57
  4827. package/dist/components/ui/tooltip-extended.d.ts +0 -76
  4828. package/dist/components/ui/tooltip-extended.d.ts.map +0 -1
  4829. package/dist/components/ui/tooltip-extended.js +0 -128
  4830. package/dist/components/ui/tooltip.d.ts +0 -8
  4831. package/dist/components/ui/tooltip.d.ts.map +0 -1
  4832. package/dist/components/ui/tooltip.js +0 -10
  4833. package/dist/components/ui/typography.d.ts +0 -17
  4834. package/dist/components/ui/typography.d.ts.map +0 -1
  4835. package/dist/components/ui/typography.js +0 -44
  4836. package/dist/index.d.ts +0 -42
  4837. package/dist/index.d.ts.map +0 -1
  4838. package/dist/index.js +0 -43
  4839. package/dist/lib/button-styles.d.ts +0 -12
  4840. package/dist/lib/button-styles.d.ts.map +0 -1
  4841. package/dist/lib/button-styles.js +0 -11
  4842. package/dist/lib/utils.d.ts +0 -6
  4843. package/dist/lib/utils.d.ts.map +0 -1
  4844. package/dist/lib/utils.js +0 -8
  4845. package/dist/package.json +0 -64
  4846. package/dist/styles/theme.css +0 -193
  4847. package/src/styles/theme.css +0 -193
  4848. /package/{dist/components/ui → packages/ui/src/components/composites/search}/search-input.d.ts +0 -0
  4849. /package/{dist → packages/ui/src}/components/ui/checkbox.d.ts +0 -0
  4850. /package/{dist → packages/ui/src}/components/ui/checkbox.js +0 -0
  4851. /package/{dist → packages/ui/src}/components/ui/copy-button.d.ts +0 -0
  4852. /package/{dist → packages/ui/src}/components/ui/copy-button.js +0 -0
  4853. /package/{dist → packages/ui/src}/components/ui/dropdown-menu.d.ts +0 -0
  4854. /package/{dist → packages/ui/src}/components/ui/empty-state.d.ts +0 -0
  4855. /package/{dist → packages/ui/src}/components/ui/empty-state.js +0 -0
  4856. /package/{dist → packages/ui/src}/components/ui/popover.d.ts +0 -0
  4857. /package/{dist → packages/ui/src}/components/ui/popover.js +0 -0
  4858. /package/{dist → packages/ui/src}/components/ui/save-footer.d.ts +0 -0
  4859. /package/{dist → packages/ui/src}/components/ui/section-card.d.ts +0 -0
  4860. /package/{dist → packages/ui/src}/components/ui/select.d.ts +0 -0
  4861. /package/{dist → packages/ui/src}/components/ui/separator.d.ts +0 -0
  4862. /package/{dist → packages/ui/src}/components/ui/separator.js +0 -0
  4863. /package/{dist → packages/ui/src}/components/ui/skeleton.d.ts +0 -0
  4864. /package/{dist → packages/ui/src}/components/ui/slider.d.ts +0 -0
  4865. /package/{dist → packages/ui/src}/components/ui/spinner.d.ts +0 -0
  4866. /package/{dist → packages/ui/src}/components/ui/spinner.js +0 -0
  4867. /package/{dist → packages/ui/src}/components/ui/switch.d.ts +0 -0
  4868. /package/{dist → packages/ui/src}/components/ui/tabs.d.ts +0 -0
@@ -0,0 +1,4156 @@
1
+ /**
2
+ * REST API server for the Eliza Control UI.
3
+ *
4
+ * Exposes HTTP endpoints that the UI frontend expects, backed by the
5
+ * elizaOS AgentRuntime. Default port: 2138. In dev mode, the Vite UI
6
+ * dev server proxies /api and /ws here (see eliza/packages/app-core/scripts/dev-ui.mjs).
7
+ */
8
+ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
9
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
10
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
11
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
12
+ });
13
+ }
14
+ return path;
15
+ };
16
+ import crypto from "node:crypto";
17
+ import fs from "node:fs";
18
+ import http from "node:http";
19
+ import { createRequire } from "node:module";
20
+ function tokenMatches(expected, provided) {
21
+ const expectedBuf = Buffer.from(expected);
22
+ const providedBuf = Buffer.from(provided);
23
+ return (expectedBuf.length === providedBuf.length &&
24
+ crypto.timingSafeEqual(expectedBuf, providedBuf));
25
+ }
26
+ const MAX_BODY_BYTES = 1024 * 1024; // 1 MB
27
+ import os from "node:os";
28
+ import path from "node:path";
29
+ // Discord local routes extracted to @elizaos/plugin-discord (setup-routes.ts)
30
+ import { DropService, handleDropRoutes } from "@elizaos/app-elizamaker";
31
+ import { handleKnowledgeRoutes } from "@elizaos/app-knowledge/routes";
32
+ import { TxService } from "@elizaos/app-steward/api/tx-service";
33
+ import { wireCoordinatorBridgesWhenReady } from "@elizaos/app-task-coordinator/api/coordinator-wiring";
34
+ import { routeTaskAgentTextToConnector } from "@elizaos/app-task-coordinator/api/task-agent-message-routing";
35
+ // Phase 2 extraction: LifeOps routes → app-lifeops/src/routes/plugin.ts (lifeopsPlugin)
36
+ // import { handleWalletTradeExecuteRoute } from "./wallet-trade-routes.js";
37
+ // import {
38
+ // loadWalletTradingProfile,
39
+ // recordWalletTradeLedgerEntry,
40
+ // updateWalletTradeLedgerEntryStatus,
41
+ // } from "./wallet-trading-profile.js";
42
+ // Phase 2 extraction: Website-blocker routes → app-lifeops/src/routes/plugin.ts (lifeopsPlugin)
43
+ import { handleTrainingRoutes } from "@elizaos/app-training/routes/training";
44
+ import { handleTrajectoryRoute } from "@elizaos/app-training/routes/trajectory";
45
+ import { ChannelType, createMessageMemory, logger, stringToUuid, } from "@elizaos/core";
46
+ import { resolveApiBindHost, resolveServerOnlyPort, } from "@elizaos/shared/runtime-env";
47
+ import { WebSocketServer } from "ws";
48
+ import { getGlobalAwarenessRegistry } from "../awareness/registry.js";
49
+ import { CharacterSchema } from "../config/character-schema.js";
50
+ import { loadElizaConfig, saveElizaConfig, } from "../config/config.js";
51
+ import { resolveModelsCacheDir, resolveStateDir } from "../config/paths.js";
52
+ import { isStreamingDestinationConfigured } from "../config/plugin-auto-enable.js";
53
+ import { createIntegrationTelemetrySpan } from "../diagnostics/integration-observability.js";
54
+ import { resolveDefaultAgentWorkspaceDir } from "../providers/workspace.js";
55
+ import { getAgentEventService, } from "../runtime/agent-event-service.js";
56
+ import { classifyRegistryPluginRelease } from "../runtime/release-plugin-policy.js";
57
+ import { AUDIT_EVENT_TYPES, AUDIT_SEVERITIES, getAuditFeedSize, queryAuditFeed, subscribeAuditFeed, } from "../security/audit-log.js";
58
+ import { isLoopbackHost, } from "../security/network-policy.js";
59
+ import { AgentExportError, estimateExportSize, exportAgent, importAgent, } from "../services/agent-export.js";
60
+ import { AppManager } from "../services/app-manager.js";
61
+ import { registerClientChatSendHandler } from "../services/client-chat-sender.js";
62
+ import { createConfigPluginManager } from "../services/config-plugin-manager.js";
63
+ import { isCoreManagerLike, isPluginManagerLike, } from "../services/plugin-manager-types.js";
64
+ import { ensurePrivyWalletsForCustomUser, isPrivyWalletProvisioningEnabled, } from "../services/privy-wallets.js";
65
+ // signal-pairing: SignalPairingSession, sanitizeAccountId, signalLogout extracted to @elizaos/plugin-signal
66
+ import { signalAuthExists } from "../services/signal-pairing.js";
67
+ import { streamManager } from "../services/stream-manager.js";
68
+ import { clearTelegramAccountAuthState, clearTelegramAccountSession, TelegramAccountAuthSession, telegramAccountAuthStateExists, telegramAccountSessionExists, } from "../services/telegram-account-auth.js";
69
+ // Telegram account auth: moved to @elizaos/plugin-telegram (account-setup-routes + account-auth-service).
70
+ // WhatsApp pairing: route handlers moved to @elizaos/plugin-whatsapp.
71
+ import { executeTriggerTask, getTriggerHealthSnapshot, getTriggerLimit, listTriggerTasks, readTriggerConfig, readTriggerRuns, TRIGGER_TASK_NAME, TRIGGER_TASK_TAGS, taskToTriggerSummary, triggersFeatureEnabled, } from "../triggers/runtime.js";
72
+ import { buildTriggerConfig, buildTriggerMetadata, DISABLED_TRIGGER_INTERVAL_MS, normalizeTriggerDraft, } from "../triggers/scheduling.js";
73
+ import { parseClampedInteger } from "../utils/number-parsing.js";
74
+ import { handleAgentAdminRoutes } from "./agent-admin-routes.js";
75
+ import { handleAgentLifecycleRoutes } from "./agent-lifecycle-routes.js";
76
+ import { detectRuntimeModel, resolveProviderFromModel } from "./agent-model.js";
77
+ import { handleAgentStatusRoutes } from "./agent-status-routes.js";
78
+ import { handleAgentTransferRoutes } from "./agent-transfer-routes.js";
79
+ import { handleAppPackageRoutes } from "./app-package-routes.js";
80
+ import { handleAppsRoutes } from "./apps-routes.js";
81
+ import { handleAuthRoutes } from "./auth-routes.js";
82
+ import { handleAvatarRoutes } from "./avatar-routes.js";
83
+ import { handleBlueBubblesRoute, resolveBlueBubblesWebhookPath, } from "./bluebubbles-routes.js";
84
+ import { handleBrowserWorkspaceRoutes } from "./browser-workspace-routes.js";
85
+ // BSC trade helpers moved to @elizaos/app-steward. Kept for re-export only.
86
+ // import { buildBscApproveUnsignedTx, ... } from "./bsc-trade.js";
87
+ import { handleBugReportRoutes } from "./bug-report-routes.js";
88
+ import { handleCharacterRoutes } from "./character-routes.js";
89
+ import { generateChatResponse as generateChatResponseFromChatRoutes, handleChatRoutes, initSse as initSseFromChatRoutes, writeSseJson as writeSseJsonFromChatRoutes, } from "./chat-routes.js";
90
+ import { handleCloudBillingRoute } from "./cloud-billing-routes.js";
91
+ import { handleCloudCompatRoute } from "./cloud-compat-routes.js";
92
+ import { isCloudProvisionedContainer } from "./cloud-provisioning.js";
93
+ import { handleCloudRelayRoute } from "./cloud-relay-routes.js";
94
+ import { handleCloudRoute } from "./cloud-routes.js";
95
+ import { handleCloudStatusRoutes } from "./cloud-status-routes.js";
96
+ import { handleConfigRoutes } from "./config-routes.js";
97
+ import { ConnectorHealthMonitor } from "./connector-health.js";
98
+ import { handleConnectorRoutes } from "./connector-routes.js";
99
+ import { extractConversationMetadataFromRoom } from "./conversation-metadata.js";
100
+ import { handleConversationRoutes } from "./conversation-routes.js";
101
+ import { handleCuratedSkillsRoutes } from "./curated-skills-routes.js";
102
+ import { handleDatabaseRoute } from "./database.js";
103
+ import { handleDiagnosticsRoutes } from "./diagnostics-routes.js";
104
+ import { handleHealthRoutes } from "./health-routes.js";
105
+ import { readJsonBody as parseJsonBody, readRequestBody, sendJson, sendJsonError, } from "./http-helpers.js";
106
+ // iMessage routes extracted to @elizaos/plugin-imessage setup-routes.ts (Plugin.routes)
107
+ // import { handleIMessageRoute } from "./imessage-routes.js";
108
+ import { handleInboxRoute } from "./inbox-routes.js";
109
+ import { handleMcpRoutes } from "./mcp-routes.js";
110
+ import { pushWithBatchEvict } from "./memory-bounds.js";
111
+ import { handleMemoryRoutes } from "./memory-routes.js";
112
+ import { handleMiscRoutes } from "./misc-routes.js";
113
+ import { handleModelsRoutes } from "./models-routes.js";
114
+ import { tryHandleMusicPlayerStatusFallback } from "./music-player-route-fallback.js";
115
+ import { handleOnboardingRoutes } from "./onboarding-routes.js";
116
+ import { handlePermissionRoutes } from "./permissions-routes.js";
117
+ import { handlePermissionsExtraRoutes } from "./permissions-routes-extra.js";
118
+ import { handlePluginRoutes } from "./plugin-routes.js";
119
+ import { handleProviderSwitchRoutes } from "./provider-switch-routes.js";
120
+ import { handleRegistryRoutes } from "./registry-routes.js";
121
+ import { RegistryService } from "./registry-service.js";
122
+ import { handleRelationshipsRoutes } from "./relationships-routes.js";
123
+ import { tryHandleRuntimePluginRoute } from "./runtime-plugin-routes.js";
124
+ import { handleSandboxRoute } from "./sandbox-routes.js";
125
+ import { cloneWithoutBlockedObjectKeys, decodePathComponent, getErrorMessage, hasPersistedOnboardingState, isUuidLike, patchTouchesProviderSelection, resolveAppUserName, } from "./server-helpers.js";
126
+ // signal-routes: handleSignalRoute dispatch extracted to @elizaos/plugin-signal (setup-routes.ts)
127
+ import { applySignalQrOverride } from "./signal-routes.js";
128
+ import { discoverSkills } from "./skill-discovery-helpers.js";
129
+ import { handleSkillsRoutes } from "./skills-routes.js";
130
+ import { handleSubscriptionRoutes } from "./subscription-routes.js";
131
+ import { handleTelegramAccountRoute } from "./telegram-account-routes.js";
132
+ import { handleTriggerRoutes } from "./trigger-routes.js";
133
+ import { handleTtsRoutes } from "./tts-routes.js";
134
+ import { handleUpdateRoutes } from "./update-routes.js";
135
+ import { getWalletAddresses, initStewardWalletCache, } from "./wallet.js";
136
+ // Wallet dispatch moved to @elizaos/app-steward plugin routes.
137
+ // import { handleWalletBscRoutes } from "./wallet-bsc-routes.js";
138
+ import { EVM_PLUGIN_PACKAGE, resolveWalletAutomationMode as resolveAgentAutomationModeFromConfig, resolveWalletCapabilityStatus, } from "./wallet-capability.js";
139
+ import { handleWalletRoutes } from "./wallet-routes.js";
140
+ import { resolveWalletRpcReadiness } from "./wallet-rpc.js";
141
+ // handleWhatsAppRoute moved to @elizaos/plugin-whatsapp setup-routes.
142
+ // applyWhatsAppQrOverride is still used by plugin-status routes.
143
+ import { applyWhatsAppQrOverride } from "./whatsapp-routes.js";
144
+ import { handleWorkbenchRoutes } from "./workbench-routes.js";
145
+ export { executeFallbackParsedActions, extractXmlParams, inferBalanceChainFromText, isBalanceIntent, maybeHandleDirectBinanceSkillRequest, parseFallbackActionBlocks, shouldForceCheckBalanceFallback, } from "./binance-skill-helpers.js";
146
+ export { isClientVisibleNoResponse, isNoResponsePlaceholder, stripAssistantStageDirections, } from "./chat-text-helpers.js";
147
+ // Re-export helper functions from server-helpers.ts for backwards compatibility
148
+ export { buildChatAttachments, buildUserMessages, buildWalletActionNotExecutedReply, cloneWithoutBlockedObjectKeys, decodePathComponent, findOwnPackageRoot, getErrorMessage, hasBlockedObjectKeyDeep, IMAGE_ONLY_CHAT_FALLBACK_PROMPT, isUuidLike, isWalletActionRequiredIntent, maybeAugmentChatMessageWithKnowledge, maybeAugmentChatMessageWithLanguage, maybeAugmentChatMessageWithWalletContext, normalizeIncomingChatPrompt, persistConversationRoomTitle, resolveAppUserName, resolveConversationGreetingText, resolveWalletModeGuidanceReply, trimWalletProgressPrefix, validateChatImages, WALLET_EXECUTION_INTENT_RE, WALLET_PROGRESS_ONLY_RE, } from "./server-helpers.js";
149
+ import { getInventoryProviderOptions, getModelOptions, getOrFetchAllProviders, getOrFetchProvider, paramKeyToCategory, providerCachePath, readProviderCache, } from "./model-provider-helpers.js";
150
+ import { AGENT_EVENT_ALLOWED_STREAMS, aggregateSecrets, BLOCKED_ENV_KEYS, CONFIG_WRITE_ALLOWED_TOP_KEYS, discoverInstalledPlugins, discoverPluginsFromManifest, getReleaseBundledPluginIds, maskValue, } from "./plugin-discovery-helpers.js";
151
+ const nodeRequire = createRequire(import.meta.url);
152
+ // Dynamic import (not require) because the plugin is ESM-only and bun's
153
+ // createRequire cannot load ESM packages. Top-level await is settled before
154
+ // any consumer reads the binding.
155
+ let agentOrchestratorCompat = null;
156
+ try {
157
+ agentOrchestratorCompat = await import("@elizaos/plugin-agent-orchestrator");
158
+ }
159
+ catch {
160
+ agentOrchestratorCompat = null;
161
+ }
162
+ // Re-export for downstream consumers (e.g. @elizaos/app-core)
163
+ export { AGENT_EVENT_ALLOWED_STREAMS, CONFIG_WRITE_ALLOWED_TOP_KEYS, discoverInstalledPlugins, discoverPluginsFromManifest, findPrimaryEnvKey, readBundledPluginPackageMetadata, } from "./plugin-discovery-helpers.js";
164
+ function getAgentEventSvc(runtime) {
165
+ return getAgentEventService(runtime);
166
+ }
167
+ function requirePluginManager(runtime) {
168
+ const service = runtime?.getService("plugin_manager");
169
+ if (!isPluginManagerLike(service)) {
170
+ throw new Error("Plugin manager service not found");
171
+ }
172
+ return wrapPluginManagerWithLocalFallback(service);
173
+ }
174
+ /**
175
+ * The upstream plugin-plugin-manager has its own registry client that only
176
+ * fetches from GitHub and scans a `plugins/` dir for `elizaos.plugin.json`.
177
+ * Workspace-vendored plugins (under `packages/plugin-*`) are invisible to it.
178
+ * Wrap `installPlugin` so that when the upstream returns "not found in the
179
+ * registry" we retry using our own registry-client (which discovers workspace
180
+ * packages and node_modules symlinks).
181
+ */
182
+ function wrapPluginManagerWithLocalFallback(pm) {
183
+ const originalInstall = pm.installPlugin.bind(pm);
184
+ const wrapped = Object.create(pm);
185
+ wrapped.installPlugin = async (pluginName, onProgress) => {
186
+ const result = await originalInstall(pluginName, onProgress);
187
+ if (result.success ||
188
+ !result.error?.includes("not found in the registry")) {
189
+ return result;
190
+ }
191
+ // Upstream registry missed it — check Eliza's own local discovery.
192
+ const { getPluginInfo } = await import("../services/registry-client.js");
193
+ const localInfo = await getPluginInfo(pluginName);
194
+ if (!localInfo?.localPath) {
195
+ return result;
196
+ }
197
+ // The plugin is a workspace package — just return success pointing at it.
198
+ // The runtime already resolves it via NODE_PATH / bun workspace links so
199
+ // there is nothing to download; the caller only needs to enable it in
200
+ // config and restart.
201
+ return {
202
+ success: true,
203
+ pluginName: localInfo.name,
204
+ version: localInfo.npm.v2Version ?? localInfo.npm.v1Version ?? "workspace",
205
+ installPath: localInfo.localPath,
206
+ requiresRestart: true,
207
+ };
208
+ };
209
+ return wrapped;
210
+ }
211
+ function getPluginManagerForState(state) {
212
+ const service = state.runtime?.getService("plugin_manager");
213
+ if (isPluginManagerLike(service)) {
214
+ return service;
215
+ }
216
+ return createConfigPluginManager(() => state.config);
217
+ }
218
+ function requireCoreManager(runtime) {
219
+ const service = runtime?.getService("core_manager");
220
+ if (!isCoreManagerLike(service)) {
221
+ throw new Error("Core manager service not found");
222
+ }
223
+ return service;
224
+ }
225
+ const OG_FILENAME = ".og";
226
+ const DELETED_CONVERSATIONS_FILENAME = "deleted-conversations.v1.json";
227
+ const MAX_DELETED_CONVERSATION_IDS = 5000;
228
+ function readDeletedConversationIdsFromState() {
229
+ const filePath = path.join(resolveStateDir(), DELETED_CONVERSATIONS_FILENAME);
230
+ if (!fs.existsSync(filePath))
231
+ return new Set();
232
+ try {
233
+ const raw = fs.readFileSync(filePath, "utf-8");
234
+ const parsed = JSON.parse(raw);
235
+ const ids = Array.isArray(parsed.ids) ? parsed.ids : [];
236
+ return new Set(ids
237
+ .map((id) => (typeof id === "string" ? id.trim() : ""))
238
+ .filter((id) => id.length > 0));
239
+ }
240
+ catch (err) {
241
+ logger.warn(`[eliza-api] Failed to read deleted conversations state: ${err instanceof Error ? err.message : String(err)}`);
242
+ return new Set();
243
+ }
244
+ }
245
+ function _persistDeletedConversationIdsToState(ids) {
246
+ const dir = resolveStateDir();
247
+ if (!fs.existsSync(dir)) {
248
+ fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
249
+ }
250
+ const normalized = Array.from(ids)
251
+ .map((id) => id.trim())
252
+ .filter((id) => id.length > 0)
253
+ .slice(-MAX_DELETED_CONVERSATION_IDS);
254
+ const filePath = path.join(dir, DELETED_CONVERSATIONS_FILENAME);
255
+ const tmpFilePath = `${filePath}.${process.pid}.tmp`;
256
+ const payload = {
257
+ version: 1,
258
+ updatedAt: new Date().toISOString(),
259
+ ids: normalized,
260
+ };
261
+ fs.writeFileSync(tmpFilePath, `${JSON.stringify(payload, null, 2)}\n`, {
262
+ encoding: "utf-8",
263
+ mode: 0o600,
264
+ });
265
+ fs.renameSync(tmpFilePath, filePath);
266
+ }
267
+ function readOGCodeFromState() {
268
+ const filePath = path.join(resolveStateDir(), OG_FILENAME);
269
+ if (!fs.existsSync(filePath))
270
+ return null;
271
+ return fs.readFileSync(filePath, "utf-8").trim();
272
+ }
273
+ function initializeOGCodeInState() {
274
+ const dir = resolveStateDir();
275
+ const filePath = path.join(dir, OG_FILENAME);
276
+ if (fs.existsSync(filePath))
277
+ return;
278
+ if (!fs.existsSync(dir)) {
279
+ fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
280
+ }
281
+ fs.writeFileSync(filePath, crypto.randomUUID(), {
282
+ encoding: "utf-8",
283
+ mode: 0o600,
284
+ });
285
+ }
286
+ // ---------------------------------------------------------------------------
287
+ // Package root resolution (for reading bundled plugins.json)
288
+ // ---------------------------------------------------------------------------
289
+ // findOwnPackageRoot moved to server-helpers.ts; re-exported in the batch above
290
+ function removeResponseListener(res, event, handler) {
291
+ if (typeof res.off === "function") {
292
+ res.off(event, handler);
293
+ return;
294
+ }
295
+ if (typeof res.removeListener === "function") {
296
+ res.removeListener(event, handler);
297
+ }
298
+ }
299
+ function responseContentLength(headers) {
300
+ const raw = headers.get("content-length");
301
+ if (!raw)
302
+ return null;
303
+ const parsed = Number.parseInt(raw, 10);
304
+ if (!Number.isFinite(parsed) || parsed < 0)
305
+ return null;
306
+ return parsed;
307
+ }
308
+ function isAbortError(error) {
309
+ return error instanceof DOMException
310
+ ? error.name === "AbortError" || error.name === "TimeoutError"
311
+ : error instanceof Error &&
312
+ (error.name === "AbortError" || error.name === "TimeoutError");
313
+ }
314
+ function createTimeoutError(message) {
315
+ const timeoutError = new Error(message);
316
+ timeoutError.name = "TimeoutError";
317
+ return timeoutError;
318
+ }
319
+ export async function fetchWithTimeoutGuard(input, init, timeoutMs) {
320
+ const controller = new AbortController();
321
+ const upstreamSignal = init.signal;
322
+ let timedOut = false;
323
+ const onAbort = () => {
324
+ controller.abort();
325
+ };
326
+ if (upstreamSignal) {
327
+ if (upstreamSignal.aborted) {
328
+ controller.abort();
329
+ }
330
+ else {
331
+ upstreamSignal.addEventListener("abort", onAbort, { once: true });
332
+ }
333
+ }
334
+ const timeoutHandle = setTimeout(() => {
335
+ timedOut = true;
336
+ controller.abort();
337
+ }, timeoutMs);
338
+ try {
339
+ return await fetch(input, {
340
+ ...init,
341
+ signal: controller.signal,
342
+ });
343
+ }
344
+ catch (err) {
345
+ if (timedOut && isAbortError(err)) {
346
+ throw createTimeoutError(`Upstream request timed out after ${timeoutMs}ms`);
347
+ }
348
+ throw err;
349
+ }
350
+ finally {
351
+ clearTimeout(timeoutHandle);
352
+ if (upstreamSignal) {
353
+ upstreamSignal.removeEventListener("abort", onAbort);
354
+ }
355
+ }
356
+ }
357
+ async function waitForDrain(res) {
358
+ await new Promise((resolve, reject) => {
359
+ const onDrain = () => {
360
+ cleanup();
361
+ resolve();
362
+ };
363
+ const onError = (err) => {
364
+ cleanup();
365
+ reject(err instanceof Error ? err : new Error(String(err)));
366
+ };
367
+ const cleanup = () => {
368
+ removeResponseListener(res, "drain", onDrain);
369
+ removeResponseListener(res, "error", onError);
370
+ };
371
+ res.once("drain", onDrain);
372
+ res.once("error", onError);
373
+ });
374
+ }
375
+ /**
376
+ * Stream a web Response body to an HTTP response while enforcing a strict byte cap.
377
+ * Returns the number of bytes forwarded.
378
+ */
379
+ export async function streamResponseBodyWithByteLimit(upstream, res, maxBytes, timeoutMs) {
380
+ const declaredLength = responseContentLength(upstream.headers);
381
+ if (declaredLength !== null && declaredLength > maxBytes) {
382
+ throw new Error(`Upstream response exceeds maximum size of ${maxBytes} bytes`);
383
+ }
384
+ if (!upstream.body) {
385
+ throw new Error("Upstream response did not include a body stream");
386
+ }
387
+ const reader = upstream.body.getReader();
388
+ let totalBytes = 0;
389
+ let streamTimeoutHandle = null;
390
+ const streamTimeoutPromise = typeof timeoutMs === "number" && timeoutMs > 0
391
+ ? new Promise((_resolve, reject) => {
392
+ streamTimeoutHandle = setTimeout(() => {
393
+ reject(createTimeoutError(`Upstream response body timed out after ${timeoutMs}ms`));
394
+ }, timeoutMs);
395
+ })
396
+ : null;
397
+ try {
398
+ while (true) {
399
+ const { done, value } = streamTimeoutPromise
400
+ ? await Promise.race([reader.read(), streamTimeoutPromise])
401
+ : await reader.read();
402
+ if (done)
403
+ break;
404
+ if (!value || value.byteLength === 0)
405
+ continue;
406
+ totalBytes += value.byteLength;
407
+ if (totalBytes > maxBytes) {
408
+ throw new Error(`Upstream response exceeds maximum size of ${maxBytes} bytes`);
409
+ }
410
+ if (res.writableEnded || res.destroyed) {
411
+ throw new Error("Client connection closed while streaming response");
412
+ }
413
+ const canContinue = res.write(Buffer.from(value));
414
+ if (!canContinue) {
415
+ await waitForDrain(res);
416
+ }
417
+ }
418
+ }
419
+ catch (err) {
420
+ try {
421
+ await reader.cancel(err);
422
+ }
423
+ catch {
424
+ // Best effort cleanup; keep original error.
425
+ }
426
+ throw err;
427
+ }
428
+ finally {
429
+ if (streamTimeoutHandle !== null) {
430
+ clearTimeout(streamTimeoutHandle);
431
+ }
432
+ reader.releaseLock();
433
+ }
434
+ return totalBytes;
435
+ }
436
+ /**
437
+ * Read and parse a JSON request body with size limits and error handling.
438
+ * Returns null (and sends a 4xx response) if reading or parsing fails.
439
+ */
440
+ async function readJsonBody(req, res, options = {}) {
441
+ return parseJsonBody(req, res, {
442
+ maxBytes: MAX_BODY_BYTES,
443
+ ...options,
444
+ });
445
+ }
446
+ const readBody = (req) => readRequestBody(req, { maxBytes: MAX_BODY_BYTES }).then((value) => value ?? "");
447
+ let activeTerminalRunCount = 0;
448
+ function json(res, data, status = 200) {
449
+ sendJson(res, data, status);
450
+ }
451
+ function error(res, message, status = 400) {
452
+ sendJsonError(res, message, status);
453
+ }
454
+ function isModuleResolutionFailure(err) {
455
+ if (typeof err !== "object" || err === null) {
456
+ return false;
457
+ }
458
+ const code = "code" in err ? err.code : undefined;
459
+ if (code === "MODULE_NOT_FOUND" ||
460
+ code === "ERR_MODULE_NOT_FOUND" ||
461
+ code === "ERR_PACKAGE_PATH_NOT_EXPORTED") {
462
+ return true;
463
+ }
464
+ if (!("message" in err) || typeof err.message !== "string") {
465
+ return false;
466
+ }
467
+ return (err.message.includes("Cannot find module") ||
468
+ err.message.includes("Cannot find package") ||
469
+ err.message.includes("ERR_MODULE_NOT_FOUND") ||
470
+ err.message.includes('is not defined by "exports"'));
471
+ }
472
+ function isWalletBridgeImportFailure(err) {
473
+ if (isModuleResolutionFailure(err)) {
474
+ return true;
475
+ }
476
+ if (typeof err !== "object" || err === null) {
477
+ return false;
478
+ }
479
+ const code = "code" in err ? err.code : undefined;
480
+ if (code === "ERR_UNKNOWN_FILE_EXTENSION") {
481
+ return true;
482
+ }
483
+ if (!("message" in err) || typeof err.message !== "string") {
484
+ return false;
485
+ }
486
+ return err.message.includes('Unknown file extension ".css"');
487
+ }
488
+ // ---------------------------------------------------------------------------
489
+ // Static UI serving — extracted to static-file-server.ts
490
+ // ---------------------------------------------------------------------------
491
+ import { injectApiBaseIntoHtml, isAuthProtectedRoute, serveStaticUi, } from "./static-file-server.js";
492
+ export { injectApiBaseIntoHtml };
493
+ // Preserved for backward-compat — unused locally after extraction.
494
+ const _STATIC_MIME = {};
495
+ // (static file serving functions moved to static-file-server.ts)
496
+ function coerce(value) {
497
+ return value;
498
+ }
499
+ // buildChatAttachments, buildUserMessages, etc. imported in the consolidated import at the top
500
+ function parseBoundedLimit(rawLimit, fallback = 15) {
501
+ return parseClampedInteger(rawLimit, {
502
+ min: 1,
503
+ max: 50,
504
+ fallback,
505
+ });
506
+ }
507
+ // Config redaction, skill validation extracted to server-helpers-config.ts
508
+ // isBlockedObjectKey, redactDeep, redactConfigSecrets, isRedactedSecretValue,
509
+ // stripRedactedPlaceholderValuesDeep imported from server-helpers-config.ts above.
510
+ // isBlockedObjectKey alias for local usage:
511
+ const isBlockedObjectKey = isBlockedObjectKeyFromConfig;
512
+ // MCP validation helpers extracted to server-helpers-mcp.ts
513
+ import { resolveMcpServersRejection as _resolveMcpServersRejection, validateMcpServerConfig as _validateMcpServerConfig, } from "./server-helpers-mcp.js";
514
+ export { resolveMcpServersRejection, validateMcpServerConfig, } from "./server-helpers-mcp.js";
515
+ const validateMcpServerConfig = _validateMcpServerConfig;
516
+ const resolveMcpServersRejection = _resolveMcpServersRejection;
517
+ // ---------------------------------------------------------------------------
518
+ // Onboarding / config helpers — extracted to server-helpers-config.ts
519
+ // ---------------------------------------------------------------------------
520
+ import { getStylePresets, normalizeCharacterLanguage, resolveStylePresetByAvatarIndex, } from "@elizaos/shared/onboarding-presets";
521
+ import { pickRandomNames } from "../runtime/onboarding-names.js";
522
+ import { applyOnboardingVoicePreset, ensureWalletKeysInEnvAndConfig, getCloudProviderOptions, getProviderOptions, isBlockedObjectKey as isBlockedObjectKeyFromConfig, isRedactedSecretValue, isSafeResetStateDir, readUiLanguageHeader, redactConfigSecrets, redactDeep, resolveConfiguredCharacterLanguage, resolveDefaultAgentName, stripRedactedPlaceholderValuesDeep, } from "./server-helpers-config.js";
523
+ export { isSafeResetStateDir } from "./server-helpers-config.js";
524
+ // ---------------------------------------------------------------------------
525
+ // Trade permission helpers (exported for use by awareness contributors)
526
+ // ---------------------------------------------------------------------------
527
+ /**
528
+ * Resolve the active trade permission mode from config.
529
+ * Falls back to "user-sign-only" when not configured.
530
+ */
531
+ export function resolveTradePermissionMode(config) {
532
+ const raw = config.features
533
+ ?.tradePermissionMode;
534
+ if (raw === "user-sign-only" ||
535
+ raw === "manual-local-key" ||
536
+ raw === "agent-auto") {
537
+ return raw;
538
+ }
539
+ return "user-sign-only";
540
+ }
541
+ /**
542
+ * Maximum number of autonomous agent trades allowed per calendar day.
543
+ * Acts as a safety rail when `agent-auto` mode is enabled.
544
+ */
545
+ // Trade safety utilities (defined in trade-safety.ts for testability)
546
+ import { canUseLocalTradeExecution, } from "./trade-safety.js";
547
+ export { AGENT_AUTO_MAX_DAILY_TRADES, agentAutoDailyTrades, assertQuoteFresh, canUseLocalTradeExecution, getAgentAutoTradeDate, QUOTE_MAX_AGE_MS, recordAgentAutoTrade, } from "./trade-safety.js";
548
+ const AGENT_AUTOMATION_HEADER = "x-eliza-agent-action";
549
+ const AGENT_AUTOMATION_MODES = new Set([
550
+ "connectors-only",
551
+ "full",
552
+ ]);
553
+ function parseAgentAutomationMode(value) {
554
+ if (typeof value !== "string")
555
+ return null;
556
+ const normalized = value.trim().toLowerCase();
557
+ if (!AGENT_AUTOMATION_MODES.has(normalized)) {
558
+ return null;
559
+ }
560
+ return normalized;
561
+ }
562
+ function _isAgentAutomationRequest(req) {
563
+ const raw = req.headers[AGENT_AUTOMATION_HEADER];
564
+ if (typeof raw !== "string")
565
+ return false;
566
+ return /^(1|true|yes|agent)$/i.test(raw.trim());
567
+ }
568
+ function persistAgentAutomationMode(state, mode) {
569
+ state.agentAutomationMode = mode;
570
+ if (!state.config.features) {
571
+ state.config.features = {};
572
+ }
573
+ const features = state.config.features;
574
+ const current = features.agentAutomation;
575
+ const currentObject = current && typeof current === "object" && !Array.isArray(current)
576
+ ? current
577
+ : {};
578
+ features.agentAutomation = {
579
+ ...currentObject,
580
+ enabled: true,
581
+ mode,
582
+ };
583
+ }
584
+ function buildPluginEvmDiagnosticEntry(state) {
585
+ const capability = resolveWalletCapabilityStatus(state);
586
+ const enabled = capability.pluginEvmLoaded ||
587
+ capability.pluginEvmRequired ||
588
+ (state.config.plugins?.allow ?? []).some((entry) => {
589
+ return entry === EVM_PLUGIN_PACKAGE || entry === "evm";
590
+ });
591
+ const capabilityStatus = capability.pluginEvmLoaded
592
+ ? capability.pluginEvmRequired
593
+ ? "loaded"
594
+ : "auto-enabled"
595
+ : enabled
596
+ ? capability.evmAddress || capability.localSignerAvailable
597
+ ? "blocked"
598
+ : "missing-prerequisites"
599
+ : "disabled";
600
+ return {
601
+ id: "evm",
602
+ name: "Plugin EVM",
603
+ description: "EVM wallet runtime for balance, transfer, and trade actions. Required for wallet execution in chat.",
604
+ tags: ["wallet", "evm", "bsc", "onchain"],
605
+ enabled,
606
+ configured: capability.pluginEvmRequired,
607
+ envKey: "EVM_PRIVATE_KEY",
608
+ category: "feature",
609
+ source: "bundled",
610
+ configKeys: [
611
+ "EVM_PRIVATE_KEY",
612
+ "BSC_RPC_URL",
613
+ "BSC_TESTNET_RPC_URL",
614
+ "ELIZA_WALLET_NETWORK",
615
+ ],
616
+ parameters: [],
617
+ validationErrors: [],
618
+ validationWarnings: [],
619
+ npmName: EVM_PLUGIN_PACKAGE,
620
+ isActive: capability.pluginEvmLoaded,
621
+ autoEnabled: capability.pluginEvmRequired && !capability.pluginEvmLoaded,
622
+ managementMode: "core-optional",
623
+ capabilityStatus,
624
+ capabilityReason: capability.executionReady
625
+ ? "Wallet execution is ready."
626
+ : capability.executionBlockedReason,
627
+ prerequisites: [
628
+ { label: "wallet present", met: Boolean(capability.evmAddress) },
629
+ { label: "rpc ready", met: capability.rpcReady },
630
+ { label: "plugin loaded", met: capability.pluginEvmLoaded },
631
+ ],
632
+ };
633
+ }
634
+ // Wallet intent/export helpers extracted to server-helpers-wallet.ts
635
+ import { hasUsableWalletFallbackParams as _hasUsableWalletFallbackParams, inferWalletExecutionFallback as _inferWalletExecutionFallback, resolveWalletExportRejection as _resolveWalletExportRejection, } from "./server-helpers-wallet.js";
636
+ export { hasUsableWalletFallbackParams, inferWalletExecutionFallback, resolveWalletExportRejection, } from "./server-helpers-wallet.js";
637
+ const inferWalletExecutionFallback = _inferWalletExecutionFallback;
638
+ const hasUsableWalletFallbackParams = _hasUsableWalletFallbackParams;
639
+ const resolveWalletExportRejection = _resolveWalletExportRejection;
640
+ // Plugin config helpers extracted to server-helpers-plugin.ts
641
+ import { resolvePluginConfigMutationRejections as _resolvePluginConfigMutationRejections, resolvePluginConfigReply as _resolvePluginConfigReply, } from "./server-helpers-plugin.js";
642
+ export { resolvePluginConfigMutationRejections, resolvePluginConfigReply, } from "./server-helpers-plugin.js";
643
+ const resolvePluginConfigReply = _resolvePluginConfigReply;
644
+ const resolvePluginConfigMutationRejections = _resolvePluginConfigMutationRejections;
645
+ async function resolveTrainingServiceCtor() {
646
+ const candidates = [
647
+ "../services/training-service",
648
+ "@elizaos/plugin-training",
649
+ ];
650
+ for (const specifier of candidates) {
651
+ try {
652
+ const loaded = (await import(__rewriteRelativeImportExtension(/* @vite-ignore */ specifier)));
653
+ const ctor = loaded.TrainingService;
654
+ if (typeof ctor === "function") {
655
+ return ctor;
656
+ }
657
+ }
658
+ catch {
659
+ // Keep trying fallbacks.
660
+ }
661
+ }
662
+ return null;
663
+ }
664
+ function mcpServersIncludeStdio(servers) {
665
+ return Object.values(servers).some((serverConfig) => {
666
+ if (!serverConfig ||
667
+ typeof serverConfig !== "object" ||
668
+ Array.isArray(serverConfig)) {
669
+ return false;
670
+ }
671
+ return serverConfig.type === "stdio";
672
+ });
673
+ }
674
+ export function resolveMcpTerminalAuthorizationRejection(req, servers, body) {
675
+ if (!mcpServersIncludeStdio(servers)) {
676
+ return null;
677
+ }
678
+ return resolveTerminalRunRejection(req, body);
679
+ }
680
+ // Auth, CORS, pairing, terminal, WebSocket auth helpers extracted to server-helpers-auth.ts
681
+ import { applyCors as _applyCors, clearPairing as _clearPairing, ensureApiTokenForBindHost as _ensureApiTokenForBindHost, ensurePairingCode as _ensurePairingCode, extractAuthToken as _extractAuthToken, getConfiguredApiToken as _getConfiguredApiToken, getPairingExpiresAt as _getPairingExpiresAt, isAllowedHost as _isAllowedHost, isAuthorized as _isAuthorized, isSharedTerminalClientId as _isSharedTerminalClientId, isWebSocketAuthorized as _isWebSocketAuthorized, normalizePairingCode as _normalizePairingCode, normalizeWsClientId as _normalizeWsClientId, pairingEnabled as _pairingEnabled, rateLimitPairing as _rateLimitPairing, rejectWebSocketUpgrade as _rejectWebSocketUpgrade, resolveCorsOrigin as _resolveCorsOrigin, resolveTerminalRunClientId as _resolveTerminalRunClientId, resolveTerminalRunRejection as _resolveTerminalRunRejection, resolveWebSocketUpgradeRejection as _resolveWebSocketUpgradeRejection, } from "./server-helpers-auth.js";
682
+ export { ensureApiTokenForBindHost, extractAuthToken, isAllowedHost, isAuthorized, normalizeWsClientId, resolveCorsOrigin, resolveTerminalRunClientId, resolveTerminalRunRejection, resolveWebSocketUpgradeRejection, } from "./server-helpers-auth.js";
683
+ const isAllowedHost = _isAllowedHost;
684
+ const resolveCorsOrigin = _resolveCorsOrigin;
685
+ const applyCors = _applyCors;
686
+ const extractAuthToken = _extractAuthToken;
687
+ const isAuthorized = _isAuthorized;
688
+ const ensureApiTokenForBindHost = _ensureApiTokenForBindHost;
689
+ const normalizeWsClientId = _normalizeWsClientId;
690
+ const resolveTerminalRunClientId = _resolveTerminalRunClientId;
691
+ const isSharedTerminalClientId = _isSharedTerminalClientId;
692
+ const resolveTerminalRunRejection = _resolveTerminalRunRejection;
693
+ const resolveWebSocketUpgradeRejection = _resolveWebSocketUpgradeRejection;
694
+ const rejectWebSocketUpgrade = _rejectWebSocketUpgrade;
695
+ const isWebSocketAuthorized = _isWebSocketAuthorized;
696
+ const getConfiguredApiToken = _getConfiguredApiToken;
697
+ const pairingEnabled = _pairingEnabled;
698
+ const ensurePairingCode = _ensurePairingCode;
699
+ const normalizePairingCode = _normalizePairingCode;
700
+ const rateLimitPairing = _rateLimitPairing;
701
+ const getPairingExpiresAt = _getPairingExpiresAt;
702
+ const clearPairing = _clearPairing;
703
+ /** Guard against concurrent provider switch requests (P0 §3). */
704
+ let providerSwitchInProgress = false;
705
+ // PluginConfigMutationRejection, resolvePluginConfigMutationRejections,
706
+ // WalletExportRejection, resolveWalletExportRejection
707
+ // extracted to server-helpers-plugin.ts and server-helpers-wallet.ts respectively.
708
+ // Re-exported above.
709
+ // Terminal/WS/state-dir helpers extracted to server-helpers-auth.ts; re-exported above.
710
+ // decodePathComponent imported in the consolidated import at the top
711
+ // Workbench task/todo helpers — extracted to workbench-helpers.ts
712
+ import { asObject, normalizeTags, parseNullableNumber, readTaskCompleted, readTaskMetadata, toWorkbenchTask, toWorkbenchTodo, WORKBENCH_TASK_TAG, WORKBENCH_TODO_TAG, } from "./workbench-helpers.js";
713
+ const _WORKBENCH_TASK_TAG = WORKBENCH_TASK_TAG;
714
+ const _WORKBENCH_TODO_TAG = WORKBENCH_TODO_TAG;
715
+ // (workbench helpers moved to workbench-helpers.ts)
716
+ // ── Autonomy / swarm / coding-agent helpers — extracted to server-helpers-swarm.ts ──
717
+ import { routeAutonomyTextToUser as _routeAutonomyTextToUser } from "./server-helpers-swarm.js";
718
+ export { routeAutonomyTextToUser } from "./server-helpers-swarm.js";
719
+ const routeAutonomyTextToUser = _routeAutonomyTextToUser;
720
+ // The full autonomy/swarm/coordinator/PTY bridge implementations are now in
721
+ // server-helpers-swarm.ts. Only a compat stub remains for type checking.
722
+ const CHAT_SUPPRESSED_AUTONOMY_SOURCES = new Set([
723
+ "lifeops-reminder",
724
+ "lifeops-workflow",
725
+ "proactive-gm",
726
+ "proactive-gn",
727
+ "proactive-nudge",
728
+ ]);
729
+ async function _routeAutonomyTextToUserCompat(state, responseText, source = "autonomy") {
730
+ const runtime = state.runtime;
731
+ if (!runtime)
732
+ return;
733
+ const normalizedText = responseText.trim();
734
+ if (!normalizedText)
735
+ return;
736
+ // Find target conversation (active, or most recent)
737
+ let conv;
738
+ if (state.activeConversationId) {
739
+ conv = state.conversations.get(state.activeConversationId);
740
+ }
741
+ if (!conv) {
742
+ // Fall back to most recently updated conversation
743
+ const sorted = Array.from(state.conversations.values()).sort((a, b) => new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime());
744
+ conv = sorted[0];
745
+ }
746
+ if (!conv)
747
+ return; // No conversations exist yet
748
+ if (CHAT_SUPPRESSED_AUTONOMY_SOURCES.has(source)) {
749
+ return;
750
+ }
751
+ // Ephemeral sources: broadcast to UI but don't persist to DB.
752
+ // Coding-agent status updates and coordinator decisions are transient —
753
+ // they bloat the database without adding long-term value.
754
+ const ephemeralSources = new Set(["coding-agent", "coordinator", "action"]);
755
+ const messageId = crypto.randomUUID();
756
+ if (!ephemeralSources.has(source)) {
757
+ const agentMessage = createMessageMemory({
758
+ id: messageId,
759
+ entityId: runtime.agentId,
760
+ roomId: conv.roomId,
761
+ content: {
762
+ text: normalizedText,
763
+ source,
764
+ },
765
+ });
766
+ await runtime.createMemory(agentMessage, "messages");
767
+ }
768
+ conv.updatedAt = new Date().toISOString();
769
+ // Broadcast to all WS clients (always, even for ephemeral sources)
770
+ state.broadcastWs?.({
771
+ type: "proactive-message",
772
+ conversationId: conv.id,
773
+ message: {
774
+ id: messageId,
775
+ role: "assistant",
776
+ text: normalizedText,
777
+ timestamp: Date.now(),
778
+ source,
779
+ },
780
+ });
781
+ }
782
+ // ── Coding Agent Chat Bridge ──────────────────────────────────────────
783
+ /**
784
+ * Get the SwarmCoordinator from the runtime services (if available).
785
+ * Discovers via runtime.getService("SWARM_COORDINATOR") — the coordinator
786
+ * registers itself during PTYService.start().
787
+ */
788
+ function getCoordinatorFromRuntime(runtime) {
789
+ const coordinator = runtime.getService("SWARM_COORDINATOR");
790
+ if (coordinator) {
791
+ return coordinator;
792
+ }
793
+ const ptyService = runtime.getService("PTY_SERVICE");
794
+ if (ptyService?.coordinator) {
795
+ return ptyService.coordinator;
796
+ }
797
+ return null;
798
+ }
799
+ function wireCodingAgentBridgesNow(st) {
800
+ wireCodingAgentChatBridge(st);
801
+ wireCodingAgentWsBridge(st);
802
+ wireCoordinatorEventRouting(st);
803
+ wireCodingAgentSwarmSynthesis(st);
804
+ }
805
+ /**
806
+ * Wire the SwarmCoordinator's chatCallback so coordinator messages
807
+ * appear in the user's chat UI via the existing proactive-message flow.
808
+ * Returns true if successfully wired.
809
+ */
810
+ function wireCodingAgentChatBridge(st) {
811
+ if (!st.runtime)
812
+ return false;
813
+ const coordinator = getCoordinatorFromRuntime(st.runtime);
814
+ if (!coordinator?.setChatCallback)
815
+ return false;
816
+ const hasPtyService = Boolean(st.runtime.getService("PTY_SERVICE"));
817
+ if (hasPtyService) {
818
+ // In the real task-agent stack the PTY progress streamer + jsonl watcher
819
+ // already deliver the success path. Keep generic coordinator chatter
820
+ // suppressed, but still route task-specific issue messages when the
821
+ // coordinator includes per-task routing metadata or when the text itself
822
+ // identifies a unique task thread.
823
+ coordinator.setChatCallback(async (text, source, routing) => {
824
+ const delivered = await routeTaskAgentTextToConnector(st.runtime, text, source ?? "coding-agent", routing);
825
+ if (!delivered) {
826
+ await routeAutonomyTextToUser(st, text, source ?? "coding-agent");
827
+ }
828
+ });
829
+ return true;
830
+ }
831
+ // Minimal runtimes used by tests and lightweight embeddings do not install
832
+ // the PTY progress bridge, so the coordinator callback is the only path
833
+ // that can surface coding-agent updates back into chat.
834
+ coordinator.setChatCallback(async (text, source) => {
835
+ await routeAutonomyTextToUser(st, text, source ?? "coding-agent");
836
+ });
837
+ return true;
838
+ }
839
+ /**
840
+ * Wire the SwarmCoordinator's wsBroadcast callback so coordinator events
841
+ * are relayed to all WebSocket clients as "pty-session-event" messages.
842
+ * Returns true if successfully wired.
843
+ */
844
+ function wireCodingAgentWsBridge(st) {
845
+ if (!st.runtime)
846
+ return false;
847
+ const coordinator = getCoordinatorFromRuntime(st.runtime);
848
+ if (!coordinator?.setWsBroadcast)
849
+ return false;
850
+ coordinator.setWsBroadcast((event) => {
851
+ // Preserve the coordinator's event type (task_registered, task_complete, etc.)
852
+ // as `eventType` so it doesn't overwrite the WS message dispatch type.
853
+ const { type: eventType, ...rest } = event;
854
+ st.broadcastWs?.({ type: "pty-session-event", eventType, ...rest });
855
+ });
856
+ return true;
857
+ }
858
+ /**
859
+ * Wire the SwarmCoordinator's swarmCompleteCallback so that when all agents
860
+ * finish, we synthesize a summary via the agent's LLM and post it as a
861
+ * persisted message in the conversation.
862
+ */
863
+ function wireCodingAgentSwarmSynthesis(st) {
864
+ // The task-progress-streamer was removed from this tree but the callback
865
+ // was left as a no-op, so subagent completions never reached the user.
866
+ // Invoke handleSwarmSynthesis directly so the synthesis LLM routes the
867
+ // final answer back to the conversation. The task jsonl is already the
868
+ // source of truth for per-task completionSummary.
869
+ if (!st.runtime)
870
+ return false;
871
+ const coordinator = getCoordinatorFromRuntime(st.runtime);
872
+ if (!coordinator?.setSwarmCompleteCallback)
873
+ return false;
874
+ coordinator.setSwarmCompleteCallback(async (payload) => {
875
+ await handleSwarmSynthesis(st, payload);
876
+ });
877
+ // Same wiring path — install the task heartbeat so sessions running past
878
+ // 45s emit periodic "still working" pings that report the subagent's
879
+ // current tool activity. Synthesis delivers the final answer; heartbeat
880
+ // just tells the user the task is alive and moving.
881
+ const ptyService = st.runtime.getService("PTY_SERVICE");
882
+ if (ptyService) {
883
+ installTaskHeartbeat(st.runtime, ptyService);
884
+ logger.info("[task-heartbeat] installed");
885
+ }
886
+ return true;
887
+ }
888
+ /**
889
+ * Handle swarm completion by synthesizing a summary via the LLM.
890
+ * Extracted from wireCodingAgentSwarmSynthesis for testability.
891
+ *
892
+ * Paths: (A) LLM returns synthesis → route to user,
893
+ * (B) LLM returns empty → warn,
894
+ * (C) LLM throws → fallback generic message.
895
+ */
896
+ export async function handleSwarmSynthesis(st, payload, routeMessage = (text, source) => routeAutonomyTextToUser(st, text, source)) {
897
+ const runtime = st.runtime;
898
+ if (!runtime) {
899
+ logger.warn("[swarm-synthesis] No runtime available — skipping synthesis");
900
+ return;
901
+ }
902
+ logger.info(`[swarm-synthesis] Generating synthesis for ${payload.total} tasks (${payload.completed} completed, ${payload.stopped} stopped, ${payload.errored} errored)`);
903
+ const resultText = await buildSynthesisResultText(payload, runtime);
904
+ logger.info(`[swarm-synthesis] Synthesis generated (${resultText.length} chars), routing to user — preview: ${resultText.slice(0, 200).replace(/\n/g, " | ")}`);
905
+ // Route back to the originating chat channel via the roomId captured on
906
+ // the incoming user message (propagated through the task payload).
907
+ const roomId = payload.tasks.find((t) => t.roomId)?.roomId ?? null;
908
+ // Discord's per-message limit is 2000 chars. Deliver long answers as
909
+ // sequential chunks so the subagent's full output reaches the user.
910
+ for (const chunk of chunkForDiscord(resultText, 1900)) {
911
+ await routeMessage(chunk, "swarm_synthesis");
912
+ await routeSynthesisToConnector(runtime, chunk, roomId);
913
+ }
914
+ }
915
+ async function buildSynthesisResultText(payload, runtime) {
916
+ const parts = await Promise.all(payload.tasks.map((task) => buildTaskLine(task, runtime)));
917
+ if (parts.length === 1)
918
+ return parts[0];
919
+ return `done — ${parts.length} tasks:\n${parts.map((p) => `• ${p}`).join("\n")}`;
920
+ }
921
+ /**
922
+ * Deliver the subagent's actual final answer — the last end_turn assistant
923
+ * text from its session jsonl. Trust the agent to already have produced
924
+ * a coherent response; synthesis does not rewrite or trim it. Falls back
925
+ * to completionSummary, then a port-status check, then the original
926
+ * prompt text when no jsonl is available.
927
+ */
928
+ async function buildTaskLine(task, runtime) {
929
+ const workdir = task.workdir ?? resolveSessionWorkdir(runtime, task.sessionId);
930
+ if (workdir) {
931
+ const assistantText = await readLastAssistantTextFromJsonl(workdir);
932
+ if (assistantText)
933
+ return assistantText;
934
+ }
935
+ if (task.completionSummary)
936
+ return task.completionSummary;
937
+ const portMatch = task.originalTask.match(/port\s+(\d+)/i);
938
+ const port = portMatch?.[1];
939
+ if (!port)
940
+ return task.originalTask;
941
+ if (await isPortServing(port)) {
942
+ const host = process.env.ELIZA_PUBLIC_HOST ?? "localhost";
943
+ return `built and serving at http://${host}:${port}`;
944
+ }
945
+ return `built the files but server isn't running on port ${port} yet`;
946
+ }
947
+ function resolveSessionWorkdir(runtime, sessionId) {
948
+ const ptyService = runtime.getService("PTY_SERVICE");
949
+ return ptyService?.getSession?.(sessionId)?.workdir ?? null;
950
+ }
951
+ async function isPortServing(port) {
952
+ try {
953
+ const res = await fetch(`http://localhost:${port}/`, {
954
+ signal: AbortSignal.timeout(2000),
955
+ });
956
+ return res.ok;
957
+ }
958
+ catch {
959
+ return false;
960
+ }
961
+ }
962
+ /**
963
+ * Route the synthesis text to the user's platform (Discord, Telegram, etc.)
964
+ * via the runtime's registered send handler. Uses the source room ID stored
965
+ * on the coordinator when the task was created.
966
+ */
967
+ async function routeSynthesisToConnector(runtime, resultText, roomId) {
968
+ if (!roomId) {
969
+ logger.debug("[swarm-synthesis] No roomId available — cannot route to connector");
970
+ return;
971
+ }
972
+ try {
973
+ const room = await runtime.getRoom(roomId);
974
+ if (!room?.source) {
975
+ logger.debug(`[swarm-synthesis] Room ${roomId} has no source connector — cannot route`);
976
+ return;
977
+ }
978
+ await runtime.sendMessageToTarget({
979
+ source: room.source,
980
+ roomId: room.id,
981
+ channelId: room.channelId ?? room.id,
982
+ serverId: room.serverId,
983
+ }, { text: resultText, source: "swarm_synthesis" });
984
+ logger.info(`[swarm-synthesis] Routed result to ${room.source} room ${room.id}`);
985
+ }
986
+ catch (err) {
987
+ logger.warn(`[swarm-synthesis] Connector routing failed: ${err}`);
988
+ }
989
+ }
990
+ import { chunkForDiscord, readLastAssistantTextFromJsonl, } from "../runtime/subagent-output.js";
991
+ import { installTaskHeartbeat } from "../runtime/task-heartbeat.js";
992
+ // ── Parse Action Block from Eliza's Response ─────────────────────────
993
+ import { parseActionBlock, stripActionBlockFromDisplay, } from "./parse-action-block.js";
994
+ // ── Coordinator Event Routing ───────────────────────────────────────────
995
+ /**
996
+ * Wire the SwarmCoordinator's agentDecisionCallback so coordinator events
997
+ * (blocked prompts, turn completions) route through Eliza's full
998
+ * elizaOS pipeline (memory, personality, actions) so she has conversation
999
+ * context to make informed decisions. The pipeline's model size is
1000
+ * The pipeline's model size is temporarily overridden to TEXT_SMALL
1001
+ * via the private `runtime.llmModeOption` (no public setter exists).
1002
+ * This is intentional — coordinator decisions must be fast to avoid
1003
+ * stalling CLI agents waiting for input.
1004
+ *
1005
+ * Events are serialized (one at a time) to prevent context confusion.
1006
+ * Eliza's response appears in chat via WS broadcast, and the embedded
1007
+ * JSON action block is parsed and returned to the coordinator for execution.
1008
+ *
1009
+ * If the callback fails or Eliza's response has no action block,
1010
+ * returns null → coordinator falls back to the small LLM.
1011
+ */
1012
+ function wireCoordinatorEventRouting(st) {
1013
+ if (!st.runtime)
1014
+ return false;
1015
+ const coordinator = getCoordinatorFromRuntime(st.runtime);
1016
+ if (!coordinator?.setAgentDecisionCallback)
1017
+ return false;
1018
+ // Serialization queue — one coordinator event at a time
1019
+ let eventQueue = Promise.resolve();
1020
+ coordinator.setAgentDecisionCallback(async (eventDescription, _sessionId, _taskCtx) => {
1021
+ let resolveOuter;
1022
+ const resultPromise = new Promise((r) => {
1023
+ resolveOuter = r;
1024
+ });
1025
+ eventQueue = eventQueue.then(async () => {
1026
+ try {
1027
+ const runtime = st.runtime;
1028
+ if (!runtime) {
1029
+ resolveOuter(null);
1030
+ return;
1031
+ }
1032
+ // Ensure the legacy chat connection exists (creates room/world if needed).
1033
+ // We inline the setup here because ensureLegacyChatConnection is
1034
+ // closure-scoped in the route handler and not accessible at module level.
1035
+ const agentName = runtime.character.name ?? "Eliza";
1036
+ const existingLegacyChatRoom = st.chatRoomId
1037
+ ? await runtime.getRoom(st.chatRoomId).catch(() => null)
1038
+ : null;
1039
+ if (!st.chatUserId || !st.chatRoomId || !existingLegacyChatRoom) {
1040
+ const adminId = st.adminEntityId ??
1041
+ stringToUuid(`${st.agentName}-admin-entity`);
1042
+ st.adminEntityId = adminId;
1043
+ st.chatUserId = adminId;
1044
+ st.chatRoomId =
1045
+ st.chatRoomId ??
1046
+ stringToUuid(`${agentName}-web-chat-room`);
1047
+ const worldId = stringToUuid(`${agentName}-web-chat-world`);
1048
+ const messageServerId = stringToUuid(`${agentName}-web-server`);
1049
+ await runtime.ensureConnection({
1050
+ entityId: adminId,
1051
+ roomId: st.chatRoomId,
1052
+ worldId,
1053
+ userName: resolveAppUserName(st.config),
1054
+ source: "client_chat",
1055
+ channelId: `${agentName}-web-chat`,
1056
+ type: ChannelType.DM,
1057
+ messageServerId,
1058
+ metadata: { ownership: { ownerId: adminId } },
1059
+ });
1060
+ }
1061
+ if (!st.chatUserId || !st.chatRoomId) {
1062
+ resolveOuter(null);
1063
+ return;
1064
+ }
1065
+ // Create a message memory so the event enters Eliza's conversation history.
1066
+ const message = createMessageMemory({
1067
+ id: crypto.randomUUID(),
1068
+ entityId: st.chatUserId,
1069
+ agentId: runtime.agentId,
1070
+ roomId: st.chatRoomId,
1071
+ content: {
1072
+ text: eventDescription,
1073
+ source: "coordinator",
1074
+ channelType: "DM",
1075
+ },
1076
+ });
1077
+ // Temporarily force TEXT_SMALL — coordinator events are time-sensitive
1078
+ // and TEXT_LARGE can timeout while CLI agents stall waiting for input.
1079
+ // llmModeOption is private with no public setter; cast is intentional.
1080
+ const rt = runtime;
1081
+ const prevLlmMode = rt.llmModeOption;
1082
+ rt.llmModeOption = "SMALL";
1083
+ let result;
1084
+ try {
1085
+ result = await generateChatResponseFromChatRoutes(runtime, message, agentName, {
1086
+ resolveNoResponseText: () => "I'll look into that.",
1087
+ });
1088
+ }
1089
+ finally {
1090
+ rt.llmModeOption = prevLlmMode;
1091
+ }
1092
+ // WS broadcast the natural language portion (strip JSON action block).
1093
+ // Both fenced (```json ... ```) and bare JSON must be removed since
1094
+ // the LLM may return either format.
1095
+ if (result.text && result.text !== "(no response)") {
1096
+ const displayText = stripActionBlockFromDisplay(result.text);
1097
+ if (displayText && displayText.length > 2) {
1098
+ const conv = st.activeConversationId
1099
+ ? st.conversations.get(st.activeConversationId)
1100
+ : Array.from(st.conversations.values()).sort((a, b) => new Date(b.updatedAt).getTime() -
1101
+ new Date(a.updatedAt).getTime())[0];
1102
+ if (conv) {
1103
+ st.broadcastWs?.({
1104
+ type: "proactive-message",
1105
+ conversationId: conv.id,
1106
+ message: {
1107
+ id: `coordinator-${Date.now()}`,
1108
+ role: "assistant",
1109
+ text: displayText,
1110
+ timestamp: Date.now(),
1111
+ source: "coordinator",
1112
+ },
1113
+ });
1114
+ }
1115
+ }
1116
+ }
1117
+ resolveOuter(parseActionBlock(result.text ?? ""));
1118
+ }
1119
+ catch (err) {
1120
+ logger.error(`Coordinator event routing failed: ${err instanceof Error ? err.message : String(err)}`);
1121
+ resolveOuter(null);
1122
+ }
1123
+ });
1124
+ return resultPromise;
1125
+ });
1126
+ return true;
1127
+ }
1128
+ /**
1129
+ * Fallback handler for /api/coding-agents/* routes when the plugin
1130
+ * doesn't export createCodingAgentRouteHandler.
1131
+ * Uses the orchestrator plugin's CODE_TASK compatibility service to
1132
+ * provide task data.
1133
+ */
1134
+ async function handleCodingAgentsFallback(runtime, pathname, method, req, res) {
1135
+ const codeTaskService = runtime.getService("CODE_TASK");
1136
+ const buildEmptyCoordinatorStatus = () => ({
1137
+ supervisionLevel: "autonomous",
1138
+ taskCount: 0,
1139
+ tasks: [],
1140
+ recentTasks: [],
1141
+ taskThreadCount: 0,
1142
+ taskThreads: [],
1143
+ pendingConfirmations: 0,
1144
+ frameworks: [],
1145
+ });
1146
+ const toNumber = (value, fallback = 0) => {
1147
+ const parsed = typeof value === "number"
1148
+ ? value
1149
+ : typeof value === "string"
1150
+ ? Number(value)
1151
+ : Number.NaN;
1152
+ return Number.isFinite(parsed) ? parsed : fallback;
1153
+ };
1154
+ const toScratchStatus = (value) => {
1155
+ if (value === "kept" || value === "promoted")
1156
+ return value;
1157
+ return "pending_decision";
1158
+ };
1159
+ const toTerminalEvent = (value) => {
1160
+ if (value === "stopped" || value === "error")
1161
+ return value;
1162
+ return "task_complete";
1163
+ };
1164
+ const normalizeScratchRecord = (value) => {
1165
+ if (!value || typeof value !== "object")
1166
+ return null;
1167
+ const raw = value;
1168
+ const sessionId = typeof raw.sessionId === "string" ? raw.sessionId.trim() : "";
1169
+ const pathValue = typeof raw.path === "string" ? raw.path.trim() : "";
1170
+ if (!sessionId || !pathValue)
1171
+ return null;
1172
+ const createdAt = toNumber(raw.createdAt, Date.now());
1173
+ const terminalAt = toNumber(raw.terminalAt, createdAt);
1174
+ const expiresAt = toNumber(raw.expiresAt, 0);
1175
+ return {
1176
+ sessionId,
1177
+ label: typeof raw.label === "string" && raw.label.trim().length > 0
1178
+ ? raw.label
1179
+ : sessionId,
1180
+ path: pathValue,
1181
+ status: toScratchStatus(raw.status),
1182
+ createdAt,
1183
+ terminalAt,
1184
+ terminalEvent: toTerminalEvent(raw.terminalEvent),
1185
+ ...(expiresAt > 0 ? { expiresAt } : {}),
1186
+ };
1187
+ };
1188
+ const parseSessionId = (raw) => {
1189
+ let sessionId = "";
1190
+ try {
1191
+ sessionId = decodeURIComponent(raw);
1192
+ }
1193
+ catch {
1194
+ return null;
1195
+ }
1196
+ if (!sessionId || sessionId.includes("/") || sessionId.includes("..")) {
1197
+ return null;
1198
+ }
1199
+ return sessionId;
1200
+ };
1201
+ const parseTaskId = (raw) => {
1202
+ let taskId = "";
1203
+ try {
1204
+ taskId = decodeURIComponent(raw);
1205
+ }
1206
+ catch {
1207
+ return null;
1208
+ }
1209
+ if (!taskId || taskId.includes("/") || taskId.includes("..")) {
1210
+ return null;
1211
+ }
1212
+ return taskId;
1213
+ };
1214
+ const ptyListService = runtime.getService("PTY_SERVICE");
1215
+ // GET /api/coding-agents/tasks
1216
+ if (method === "GET" && pathname === "/api/coding-agents/tasks") {
1217
+ if (!codeTaskService?.getTasks) {
1218
+ error(res, "Coding agent task service unavailable", 503);
1219
+ return true;
1220
+ }
1221
+ try {
1222
+ const url = new URL(req.url ?? pathname, "http://localhost");
1223
+ const requestedStatus = url.searchParams.get("status");
1224
+ const requestedLimit = Number(url.searchParams.get("limit"));
1225
+ let tasks = (await codeTaskService.getTasks()) ?? [];
1226
+ if (!Array.isArray(tasks)) {
1227
+ tasks = [];
1228
+ }
1229
+ if (requestedStatus) {
1230
+ tasks = tasks.filter((task) => task.metadata?.status === requestedStatus);
1231
+ }
1232
+ if (Number.isFinite(requestedLimit) && requestedLimit > 0) {
1233
+ tasks = tasks.slice(0, requestedLimit);
1234
+ }
1235
+ json(res, { tasks });
1236
+ return true;
1237
+ }
1238
+ catch (e) {
1239
+ error(res, `Failed to list coding agent tasks: ${e}`, 500);
1240
+ return true;
1241
+ }
1242
+ }
1243
+ const taskMatch = pathname.match(/^\/api\/coding-agents\/tasks\/([^/]+)$/);
1244
+ if (method === "GET" && taskMatch) {
1245
+ const taskId = parseTaskId(taskMatch[1]);
1246
+ if (!taskId) {
1247
+ error(res, "Invalid task ID", 400);
1248
+ return true;
1249
+ }
1250
+ if (!codeTaskService?.getTasks) {
1251
+ error(res, "Coding agent task service unavailable", 503);
1252
+ return true;
1253
+ }
1254
+ try {
1255
+ const tasks = (await codeTaskService.getTasks()) ?? [];
1256
+ const task = Array.isArray(tasks)
1257
+ ? tasks.find((entry) => entry.id === taskId)
1258
+ : undefined;
1259
+ if (!task) {
1260
+ error(res, "Task not found", 404);
1261
+ return true;
1262
+ }
1263
+ json(res, { task });
1264
+ return true;
1265
+ }
1266
+ catch (e) {
1267
+ error(res, `Failed to get coding agent task: ${e}`, 500);
1268
+ return true;
1269
+ }
1270
+ }
1271
+ // GET /api/coding-agents/sessions
1272
+ if (method === "GET" && pathname === "/api/coding-agents/sessions") {
1273
+ if (!ptyListService?.listSessions) {
1274
+ error(res, "Coding agent session service unavailable", 503);
1275
+ return true;
1276
+ }
1277
+ try {
1278
+ const sessions = (await ptyListService.listSessions()) ?? [];
1279
+ json(res, { sessions: Array.isArray(sessions) ? sessions : [] });
1280
+ return true;
1281
+ }
1282
+ catch (e) {
1283
+ error(res, `Failed to list coding agent sessions: ${e}`, 500);
1284
+ return true;
1285
+ }
1286
+ }
1287
+ const sessionMatch = pathname.match(/^\/api\/coding-agents\/sessions\/([^/]+)$/);
1288
+ if (method === "GET" && sessionMatch) {
1289
+ const sessionId = parseSessionId(sessionMatch[1]);
1290
+ if (!sessionId) {
1291
+ error(res, "Invalid session ID", 400);
1292
+ return true;
1293
+ }
1294
+ if (!ptyListService?.listSessions) {
1295
+ error(res, "Coding agent session service unavailable", 503);
1296
+ return true;
1297
+ }
1298
+ try {
1299
+ const sessions = (await ptyListService.listSessions()) ?? [];
1300
+ const session = Array.isArray(sessions)
1301
+ ? sessions.find((entry) => {
1302
+ if (!entry || typeof entry !== "object")
1303
+ return false;
1304
+ const raw = entry;
1305
+ return (raw.id === sessionId ||
1306
+ raw.sessionId === sessionId ||
1307
+ raw.roomId === sessionId);
1308
+ })
1309
+ : undefined;
1310
+ if (!session) {
1311
+ error(res, "Session not found", 404);
1312
+ return true;
1313
+ }
1314
+ json(res, { session });
1315
+ return true;
1316
+ }
1317
+ catch (e) {
1318
+ error(res, `Failed to get coding agent session: ${e}`, 500);
1319
+ return true;
1320
+ }
1321
+ }
1322
+ // GET /api/coding-agents/preflight
1323
+ if (method === "GET" && pathname === "/api/coding-agents/preflight") {
1324
+ const loaders = [
1325
+ codeTaskService?.getAgentPreflight,
1326
+ codeTaskService?.listAgentPreflight,
1327
+ codeTaskService?.preflightCodingAgents,
1328
+ codeTaskService?.preflight,
1329
+ ];
1330
+ if (!loaders.some(Boolean)) {
1331
+ error(res, "Coding agent preflight unavailable", 503);
1332
+ return true;
1333
+ }
1334
+ try {
1335
+ let rows = [];
1336
+ for (const loader of loaders) {
1337
+ if (!loader)
1338
+ continue;
1339
+ const maybeRows = await loader.call(codeTaskService);
1340
+ if (Array.isArray(maybeRows)) {
1341
+ rows = maybeRows;
1342
+ break;
1343
+ }
1344
+ }
1345
+ const { normalizePreflightAuth } = await import("@elizaos/app-task-coordinator/api/coding-agents-preflight-normalize");
1346
+ const normalized = rows.flatMap((item) => {
1347
+ if (!item || typeof item !== "object")
1348
+ return [];
1349
+ const raw = item;
1350
+ const adapter = typeof raw.adapter === "string" ? raw.adapter.trim() : "";
1351
+ if (!adapter)
1352
+ return [];
1353
+ const auth = normalizePreflightAuth(raw.auth);
1354
+ return [
1355
+ {
1356
+ adapter,
1357
+ installed: Boolean(raw.installed),
1358
+ installCommand: typeof raw.installCommand === "string"
1359
+ ? raw.installCommand
1360
+ : undefined,
1361
+ docsUrl: typeof raw.docsUrl === "string" ? raw.docsUrl : undefined,
1362
+ ...(auth ? { auth } : {}),
1363
+ },
1364
+ ];
1365
+ });
1366
+ json(res, normalized);
1367
+ return true;
1368
+ }
1369
+ catch (e) {
1370
+ error(res, `Failed to get coding agent preflight: ${e}`, 500);
1371
+ return true;
1372
+ }
1373
+ }
1374
+ // GET /api/coding-agents/coordinator/status
1375
+ if (method === "GET" &&
1376
+ pathname === "/api/coding-agents/coordinator/status") {
1377
+ if (!codeTaskService?.getTasks) {
1378
+ error(res, "Coding agent coordinator unavailable", 503);
1379
+ return true;
1380
+ }
1381
+ try {
1382
+ const tasks = await codeTaskService.getTasks();
1383
+ // Map tasks to the CodingAgentSession format expected by frontend
1384
+ const mappedTasks = tasks.map((task) => {
1385
+ const meta = task.metadata ?? {};
1386
+ // Map orchestrator status to frontend status
1387
+ let status = "active";
1388
+ switch (meta.status) {
1389
+ case "completed":
1390
+ status = "completed";
1391
+ break;
1392
+ case "failed":
1393
+ case "error":
1394
+ status = "error";
1395
+ break;
1396
+ case "cancelled":
1397
+ status = "stopped";
1398
+ break;
1399
+ case "paused":
1400
+ status = "blocked";
1401
+ break;
1402
+ case "running":
1403
+ status = "active";
1404
+ break;
1405
+ case "pending":
1406
+ status = "active";
1407
+ break;
1408
+ default:
1409
+ status = "active";
1410
+ }
1411
+ return {
1412
+ sessionId: task.id ?? "",
1413
+ agentType: meta.providerId ?? "eliza",
1414
+ label: meta.providerLabel ?? task.name ?? "Task",
1415
+ originalTask: task.description ?? task.name ?? "",
1416
+ workdir: meta.workingDirectory ?? process.cwd(),
1417
+ status,
1418
+ decisionCount: meta.steps?.length ?? 0,
1419
+ autoResolvedCount: meta.steps?.filter((s) => s.status === "completed").length ?? 0,
1420
+ };
1421
+ });
1422
+ json(res, {
1423
+ ...buildEmptyCoordinatorStatus(),
1424
+ taskCount: mappedTasks.length,
1425
+ tasks: mappedTasks,
1426
+ recentTasks: mappedTasks,
1427
+ pendingConfirmations: 0,
1428
+ });
1429
+ return true;
1430
+ }
1431
+ catch (e) {
1432
+ error(res, `Failed to get coding agent status: ${e}`, 500);
1433
+ return true;
1434
+ }
1435
+ }
1436
+ // POST /api/coding-agents/:sessionId/stop - Stop a coding agent task
1437
+ const stopMatch = pathname.match(/^\/api\/coding-agents\/([^/]+)\/stop$/);
1438
+ if (method === "POST" && stopMatch) {
1439
+ const sessionId = parseSessionId(stopMatch[1]);
1440
+ if (!sessionId) {
1441
+ error(res, "Invalid session ID", 400);
1442
+ return true;
1443
+ }
1444
+ const ptyService = runtime.getService("PTY_SERVICE");
1445
+ if (!ptyService?.stopSession) {
1446
+ error(res, "PTY Service not available", 503);
1447
+ return true;
1448
+ }
1449
+ try {
1450
+ await ptyService.stopSession(sessionId);
1451
+ json(res, { ok: true });
1452
+ return true;
1453
+ }
1454
+ catch (e) {
1455
+ error(res, `Failed to stop session: ${e}`, 500);
1456
+ return true;
1457
+ }
1458
+ }
1459
+ // GET /api/coding-agents/scratch
1460
+ if (method === "GET" && pathname === "/api/coding-agents/scratch") {
1461
+ const loaders = [
1462
+ codeTaskService?.listScratchWorkspaces,
1463
+ codeTaskService?.getScratchWorkspaces,
1464
+ codeTaskService?.listScratch,
1465
+ ];
1466
+ if (!loaders.some(Boolean)) {
1467
+ error(res, "Coding agent scratch workspace service unavailable", 503);
1468
+ return true;
1469
+ }
1470
+ try {
1471
+ let rows = [];
1472
+ for (const loader of loaders) {
1473
+ if (!loader)
1474
+ continue;
1475
+ const maybeRows = await loader.call(codeTaskService);
1476
+ if (Array.isArray(maybeRows)) {
1477
+ rows = maybeRows;
1478
+ break;
1479
+ }
1480
+ }
1481
+ const normalized = rows
1482
+ .map((item) => normalizeScratchRecord(item))
1483
+ .filter((item) => item !== null);
1484
+ json(res, normalized);
1485
+ return true;
1486
+ }
1487
+ catch (e) {
1488
+ error(res, `Failed to list scratch workspaces: ${e}`, 500);
1489
+ return true;
1490
+ }
1491
+ }
1492
+ const keepMatch = pathname.match(/^\/api\/coding-agents\/([^/]+)\/scratch\/keep$/);
1493
+ if (method === "POST" && keepMatch) {
1494
+ const sessionId = parseSessionId(keepMatch[1]);
1495
+ if (!sessionId) {
1496
+ error(res, "Invalid session ID", 400);
1497
+ return true;
1498
+ }
1499
+ const keeper = codeTaskService?.keepScratchWorkspace ?? codeTaskService?.keepScratch;
1500
+ if (!keeper) {
1501
+ error(res, "Scratch keep is not available", 503);
1502
+ return true;
1503
+ }
1504
+ try {
1505
+ await keeper.call(codeTaskService, sessionId);
1506
+ json(res, { ok: true });
1507
+ return true;
1508
+ }
1509
+ catch (e) {
1510
+ error(res, `Failed to keep scratch workspace: ${e}`, 500);
1511
+ return true;
1512
+ }
1513
+ }
1514
+ const deleteMatch = pathname.match(/^\/api\/coding-agents\/([^/]+)\/scratch\/delete$/);
1515
+ if (method === "POST" && deleteMatch) {
1516
+ const sessionId = parseSessionId(deleteMatch[1]);
1517
+ if (!sessionId) {
1518
+ error(res, "Invalid session ID", 400);
1519
+ return true;
1520
+ }
1521
+ const deleter = codeTaskService?.deleteScratchWorkspace ?? codeTaskService?.deleteScratch;
1522
+ if (!deleter) {
1523
+ error(res, "Scratch delete is not available", 503);
1524
+ return true;
1525
+ }
1526
+ try {
1527
+ await deleter.call(codeTaskService, sessionId);
1528
+ json(res, { ok: true });
1529
+ return true;
1530
+ }
1531
+ catch (e) {
1532
+ error(res, `Failed to delete scratch workspace: ${e}`, 500);
1533
+ return true;
1534
+ }
1535
+ }
1536
+ const promoteMatch = pathname.match(/^\/api\/coding-agents\/([^/]+)\/scratch\/promote$/);
1537
+ if (method === "POST" && promoteMatch) {
1538
+ const sessionId = parseSessionId(promoteMatch[1]);
1539
+ if (!sessionId) {
1540
+ error(res, "Invalid session ID", 400);
1541
+ return true;
1542
+ }
1543
+ const promoter = codeTaskService?.promoteScratchWorkspace ??
1544
+ codeTaskService?.promoteScratch;
1545
+ if (!promoter) {
1546
+ error(res, "Scratch promote is not available", 503);
1547
+ return true;
1548
+ }
1549
+ const body = await readJsonBody(req, res);
1550
+ if (body === null)
1551
+ return true;
1552
+ const name = typeof body.name === "string" && body.name.trim().length > 0
1553
+ ? body.name.trim()
1554
+ : undefined;
1555
+ try {
1556
+ const promoted = await promoter.call(codeTaskService, sessionId, name);
1557
+ const scratch = normalizeScratchRecord(promoted);
1558
+ json(res, { success: true, ...(scratch ? { scratch } : {}) });
1559
+ return true;
1560
+ }
1561
+ catch (e) {
1562
+ error(res, `Failed to promote scratch workspace: ${e}`, 500);
1563
+ return true;
1564
+ }
1565
+ }
1566
+ // GET /api/coding-agents — list active PTY sessions (used by getCodingAgentStatus fallback)
1567
+ if (method === "GET" && pathname === "/api/coding-agents") {
1568
+ if (!codeTaskService?.getTasks) {
1569
+ error(res, "Coding agent task service unavailable", 503);
1570
+ return true;
1571
+ }
1572
+ try {
1573
+ const tasks = await codeTaskService.getTasks();
1574
+ json(res, Array.isArray(tasks) ? tasks : []);
1575
+ return true;
1576
+ }
1577
+ catch (e) {
1578
+ error(res, `Failed to list coding agents: ${e}`, 500);
1579
+ return true;
1580
+ }
1581
+ }
1582
+ // POST /api/coding-agents/auth/:agent — trigger CLI auth flow
1583
+ const authMatch = pathname.match(/^\/api\/coding-agents\/auth\/(\w+)$/);
1584
+ if (method === "POST" && authMatch) {
1585
+ const agentType = authMatch[1];
1586
+ // Allowlist the adapter type. The `\w+` regex on the route pattern
1587
+ // stops path traversal but still accepts arbitrary identifiers
1588
+ // like `__proto__`, `constructor`, or any future adapter name the
1589
+ // package happens to export. `createAdapter` takes an unvalidated
1590
+ // string and we don't want it to resolve a prototype-pollution
1591
+ // sentinel or an adapter we haven't audited, so gate on the four
1592
+ // shapes the UI actually ships today.
1593
+ const ALLOWED_AGENT_TYPES = new Set(["claude", "codex", "gemini", "aider"]);
1594
+ if (!ALLOWED_AGENT_TYPES.has(agentType)) {
1595
+ error(res, `Unsupported agent type: ${agentType}`, 400);
1596
+ return true;
1597
+ }
1598
+ try {
1599
+ const ptyService = runtime.getService("PTY_SERVICE");
1600
+ const triggerAuthFn = typeof ptyService?.triggerAgentAuth === "function"
1601
+ ? () => ptyService.triggerAgentAuth?.(agentType)
1602
+ : null;
1603
+ if (!triggerAuthFn) {
1604
+ const { createAdapter } = await import("coding-agent-adapters");
1605
+ const adapter = createAdapter(agentType);
1606
+ const authAdapter = adapter;
1607
+ if (typeof authAdapter.triggerAuth !== "function") {
1608
+ error(res, `Auth trigger is unavailable for ${agentType}`, 501);
1609
+ return true;
1610
+ }
1611
+ }
1612
+ // Server-side timeout: some CLI auth flows spawn an interactive
1613
+ // subprocess that can hang indefinitely in headless / Docker
1614
+ // environments. Cap the wait so we don't pin an async for
1615
+ // longer than the client is willing to poll.
1616
+ const AUTH_TIMEOUT_MS = 15_000;
1617
+ const timeoutError = new Error("auth trigger timeout");
1618
+ const triggered = await Promise.race([
1619
+ triggerAuthFn
1620
+ ? triggerAuthFn()
1621
+ : (await import("coding-agent-adapters")).createAdapter(agentType).triggerAuth?.(),
1622
+ new Promise((_, reject) => setTimeout(() => reject(timeoutError), AUTH_TIMEOUT_MS)),
1623
+ ]).catch((e) => {
1624
+ if (e === timeoutError)
1625
+ return "__timeout__";
1626
+ throw e;
1627
+ });
1628
+ if (triggered === "__timeout__") {
1629
+ error(res, `Auth trigger timed out for ${agentType}`, 504);
1630
+ }
1631
+ else if (!triggered) {
1632
+ // 4xx — otherwise the client's `res.ok` check passes and it
1633
+ // kicks off a 2-minute spurious polling loop even though no
1634
+ // auth flow was ever initiated.
1635
+ error(res, `No auth flow available for ${agentType}`, 400);
1636
+ }
1637
+ else {
1638
+ // Whitelist + URL-scheme-validate before forwarding to the
1639
+ // browser. See `coding-agents-auth-sanitize.ts` for rationale.
1640
+ const { sanitizeAuthResult } = await import("@elizaos/app-task-coordinator/api/coding-agents-auth-sanitize");
1641
+ json(res, sanitizeAuthResult(triggered));
1642
+ }
1643
+ }
1644
+ catch (e) {
1645
+ // Log the full error server-side for debugging (including stack
1646
+ // trace) but return a generic message to the client so we don't
1647
+ // leak internal adapter error strings through the HTTP surface.
1648
+ logger.error(`[coding-agents/auth] triggerAuth failed for ${agentType}: ${e instanceof Error ? (e.stack ?? e.message) : String(e)}`);
1649
+ error(res, `Auth trigger failed for ${agentType}`, 500);
1650
+ }
1651
+ return true;
1652
+ }
1653
+ // Not handled by fallback
1654
+ return false;
1655
+ }
1656
+ /**
1657
+ * Get the PTYConsoleBridge from the PTYService (if available).
1658
+ * Used by the WS PTY handlers to subscribe to output and forward input.
1659
+ */
1660
+ function getPtyConsoleBridge(st) {
1661
+ if (!st.runtime)
1662
+ return null;
1663
+ const ptyService = st.runtime.getService("PTY_SERVICE");
1664
+ return ptyService?.consoleBridge ?? null;
1665
+ }
1666
+ /**
1667
+ * Route non-conversation agent events into the active user chat.
1668
+ * This avoids monkey-patching the message service and relies on explicit
1669
+ * event stream plumbing from AGENT_EVENT.
1670
+ */
1671
+ async function maybeRouteAutonomyEventToConversation(state, event) {
1672
+ if (event.stream !== "assistant")
1673
+ return;
1674
+ const payload = event.data && typeof event.data === "object"
1675
+ ? event.data
1676
+ : null;
1677
+ const text = typeof payload?.text === "string" ? payload.text.trim() : "";
1678
+ if (!text)
1679
+ return;
1680
+ const explicitSource = typeof payload?.source === "string" ? payload.source : null;
1681
+ const hasExplicitSource = explicitSource !== null && explicitSource.trim().length > 0;
1682
+ const source = hasExplicitSource ? explicitSource.trim() : "autonomy";
1683
+ // Regular user conversation turns should never be re-routed as proactive.
1684
+ // Some AGENT_EVENT payloads may omit roomId metadata, so rely on source too.
1685
+ if (source === "client_chat")
1686
+ return;
1687
+ if (!hasExplicitSource && !event.roomId)
1688
+ return;
1689
+ // Keep regular conversation messages in their own room only.
1690
+ if (event.roomId &&
1691
+ Array.from(state.conversations.values()).some((c) => c.roomId === event.roomId)) {
1692
+ return;
1693
+ }
1694
+ await routeAutonomyTextToUser(state, text, source);
1695
+ }
1696
+ async function handleRequest(req, res, state, ctx) {
1697
+ const method = req.method ?? "GET";
1698
+ let url;
1699
+ try {
1700
+ url = new URL(req.url ?? "/", `http://${req.headers.host ?? "localhost"}`);
1701
+ }
1702
+ catch {
1703
+ error(res, "Invalid request URL", 400);
1704
+ return;
1705
+ }
1706
+ const pathname = url.pathname;
1707
+ const isAuthEndpoint = pathname.startsWith("/api/auth/");
1708
+ const isHealthEndpoint = method === "GET" && pathname === "/api/health";
1709
+ const isCloudProvisioned = isCloudProvisionedContainer();
1710
+ const isCloudOnboardingStatusEndpoint = method === "GET" &&
1711
+ pathname === "/api/onboarding/status" &&
1712
+ isCloudProvisioned;
1713
+ const isWhatsAppWebhookEndpoint = pathname === "/api/whatsapp/webhook";
1714
+ const isBlueBubblesWebhookEndpoint = pathname ===
1715
+ resolveBlueBubblesWebhookPath({
1716
+ runtime: state.runtime
1717
+ ? {
1718
+ getService: (type) => state.runtime.getService(type),
1719
+ }
1720
+ : undefined,
1721
+ });
1722
+ const isAuthProtectedPath = isAuthProtectedRoute(pathname);
1723
+ const _registryService = state.registryService;
1724
+ const dropService = state.dropService;
1725
+ const canonicalizeRestartReason = (reason) => {
1726
+ if (reason === "primary-changed" ||
1727
+ reason === "cloud-refreshed" ||
1728
+ reason === "Wallet configuration updated") {
1729
+ return "Wallet configuration updated";
1730
+ }
1731
+ return reason;
1732
+ };
1733
+ const scheduleRuntimeRestart = (reason) => {
1734
+ const canonicalReason = canonicalizeRestartReason(reason);
1735
+ if (state.pendingRestartReasons.length >= 50) {
1736
+ // Prevent unbounded growth — keep only first entry + latest
1737
+ state.pendingRestartReasons.splice(1, state.pendingRestartReasons.length - 1);
1738
+ }
1739
+ if (!state.pendingRestartReasons.includes(canonicalReason)) {
1740
+ state.pendingRestartReasons.push(canonicalReason);
1741
+ }
1742
+ logger.info(`[eliza-api] Restart required: ${canonicalReason} (${state.pendingRestartReasons.length} pending)`);
1743
+ state.broadcastWs?.({
1744
+ type: "restart-required",
1745
+ reasons: [...state.pendingRestartReasons],
1746
+ });
1747
+ };
1748
+ const restartRuntime = async (reason) => {
1749
+ if (!ctx?.onRestart) {
1750
+ return false;
1751
+ }
1752
+ if (state.agentState === "restarting") {
1753
+ return false;
1754
+ }
1755
+ const previousState = state.agentState;
1756
+ logger.info(`[eliza-api] Applying runtime reload: ${reason}`);
1757
+ state.agentState = "restarting";
1758
+ state.startup = { ...state.startup, phase: "restarting" };
1759
+ state.broadcastStatus?.();
1760
+ try {
1761
+ const newRuntime = await ctx.onRestart();
1762
+ if (!newRuntime) {
1763
+ state.agentState = previousState;
1764
+ state.broadcastStatus?.();
1765
+ return false;
1766
+ }
1767
+ state.runtime = newRuntime;
1768
+ state.chatConnectionReady = null;
1769
+ state.chatConnectionPromise = null;
1770
+ state.agentState = "running";
1771
+ state.agentName =
1772
+ newRuntime.character.name ?? resolveDefaultAgentName(state.config);
1773
+ state.model = detectRuntimeModel(newRuntime, state.config);
1774
+ state.startedAt = Date.now();
1775
+ state.pendingRestartReasons = [];
1776
+ ctx.onRuntimeSwapped?.();
1777
+ state.broadcastStatus?.();
1778
+ return true;
1779
+ }
1780
+ catch (err) {
1781
+ logger.warn(`[eliza-api] Runtime reload failed: ${err instanceof Error ? err.message : String(err)}`);
1782
+ state.agentState = previousState;
1783
+ state.broadcastStatus?.();
1784
+ return false;
1785
+ }
1786
+ };
1787
+ // ── DNS rebinding protection ──────────────────────────────────────────
1788
+ // Reject requests whose Host header doesn't match a known loopback
1789
+ // hostname. Without this check an attacker can rebind their domain's
1790
+ // DNS to 127.0.0.1 and read the unauthenticated localhost API from a
1791
+ // malicious page.
1792
+ if (!isAllowedHost(req)) {
1793
+ const incomingHost = req.headers.host ?? "your-hostname";
1794
+ json(res, {
1795
+ error: "Forbidden — invalid Host header",
1796
+ hint: `To allow this host, set ELIZA_ALLOWED_HOSTS=${incomingHost} (or ELIZA_ALLOWED_HOSTS) in your environment, or access via http://localhost`,
1797
+ docs: "https://docs.eliza.ai/configuration#allowed-hosts",
1798
+ }, 403);
1799
+ return;
1800
+ }
1801
+ if (!applyCors(req, res, pathname)) {
1802
+ json(res, { error: "Origin not allowed" }, 403);
1803
+ return;
1804
+ }
1805
+ // Serve dashboard static assets before the auth gates. serveStaticUi already
1806
+ // refuses /api/, /v1/, and /ws paths, so API endpoints remain protected
1807
+ // while steward-managed containers can still reach the built-in dashboard.
1808
+ if (method === "GET" || method === "HEAD") {
1809
+ if (serveStaticUi(req, res, pathname))
1810
+ return;
1811
+ }
1812
+ if (isCloudProvisioned &&
1813
+ method !== "OPTIONS" &&
1814
+ isAuthProtectedPath &&
1815
+ !isAuthEndpoint &&
1816
+ !isHealthEndpoint &&
1817
+ !isCloudOnboardingStatusEndpoint &&
1818
+ !isWhatsAppWebhookEndpoint &&
1819
+ !isBlueBubblesWebhookEndpoint &&
1820
+ !pathname.startsWith("/api/lifeops/browser/companions/") &&
1821
+ !isAuthorized(req)) {
1822
+ json(res, { error: "Unauthorized" }, 401);
1823
+ return;
1824
+ }
1825
+ if (method !== "OPTIONS" &&
1826
+ isAuthProtectedPath &&
1827
+ !isAuthEndpoint &&
1828
+ !isHealthEndpoint &&
1829
+ !isCloudOnboardingStatusEndpoint &&
1830
+ !isWhatsAppWebhookEndpoint &&
1831
+ !isBlueBubblesWebhookEndpoint &&
1832
+ !pathname.startsWith("/api/lifeops/browser/companions/") &&
1833
+ !isAuthorized(req)) {
1834
+ json(res, { error: "Unauthorized" }, 401);
1835
+ return;
1836
+ }
1837
+ // CORS preflight
1838
+ if (method === "OPTIONS") {
1839
+ res.statusCode = 204;
1840
+ res.end();
1841
+ return;
1842
+ }
1843
+ // ── Provider inference helpers ────────────────────────────────────────
1844
+ const _disableCloudInference = () => {
1845
+ delete process.env.ANTHROPIC_BASE_URL;
1846
+ delete process.env.OPENAI_BASE_URL;
1847
+ delete process.env.ANTHROPIC_API_KEY;
1848
+ delete process.env.OPENAI_API_KEY;
1849
+ };
1850
+ const _enableCloudInference = (cloudApiKey, baseUrl) => {
1851
+ // Configure coding agent CLIs to proxy through ElizaCloud /api/v1
1852
+ process.env.ANTHROPIC_BASE_URL = `${baseUrl}/api/v1`;
1853
+ process.env.ANTHROPIC_API_KEY = cloudApiKey;
1854
+ process.env.OPENAI_BASE_URL = `${baseUrl}/api/v1`;
1855
+ process.env.OPENAI_API_KEY = cloudApiKey;
1856
+ // Gemini CLI and Aider — no proxy support via ElizaCloud inference
1857
+ };
1858
+ // ── POST /api/provider/switch (extracted to provider-switch-routes.ts) ──
1859
+ if (await handleProviderSwitchRoutes({
1860
+ req,
1861
+ res,
1862
+ method,
1863
+ pathname,
1864
+ state,
1865
+ json,
1866
+ error,
1867
+ readJsonBody,
1868
+ saveElizaConfig,
1869
+ scheduleRuntimeRestart,
1870
+ providerSwitchInProgress,
1871
+ setProviderSwitchInProgress: (v) => {
1872
+ providerSwitchInProgress = v;
1873
+ },
1874
+ restartRuntime,
1875
+ })) {
1876
+ return;
1877
+ }
1878
+ if (await handleAuthRoutes({
1879
+ req,
1880
+ res,
1881
+ method,
1882
+ pathname,
1883
+ readJsonBody,
1884
+ json,
1885
+ error,
1886
+ pairingEnabled,
1887
+ ensurePairingCode,
1888
+ normalizePairingCode,
1889
+ rateLimitPairing,
1890
+ getPairingExpiresAt,
1891
+ clearPairing,
1892
+ })) {
1893
+ return;
1894
+ }
1895
+ if (await handleSubscriptionRoutes({
1896
+ req,
1897
+ res,
1898
+ method,
1899
+ pathname,
1900
+ state,
1901
+ readJsonBody,
1902
+ json,
1903
+ error,
1904
+ saveConfig: saveElizaConfig,
1905
+ loadSubscriptionAuth: async () => (await import("../auth/index.js")),
1906
+ })) {
1907
+ return;
1908
+ }
1909
+ // ═══════════════════════════════════════════════════════════════════════
1910
+ // Health / status / runtime routes (extracted to health-routes.ts)
1911
+ // ═══════════════════════════════════════════════════════════════════════
1912
+ if (await handleHealthRoutes({
1913
+ req,
1914
+ res,
1915
+ method,
1916
+ pathname,
1917
+ url,
1918
+ state,
1919
+ json,
1920
+ error,
1921
+ })) {
1922
+ return;
1923
+ }
1924
+ // ── Onboarding GET routes (extracted to onboarding-routes.ts) ─────────
1925
+ if (await handleOnboardingRoutes({
1926
+ req,
1927
+ res,
1928
+ method,
1929
+ pathname,
1930
+ url,
1931
+ state: coerce(state),
1932
+ json,
1933
+ error,
1934
+ readJsonBody,
1935
+ isCloudProvisionedContainer,
1936
+ hasPersistedOnboardingState,
1937
+ ensureWalletKeysInEnvAndConfig,
1938
+ getWalletAddresses: coerce(getWalletAddresses),
1939
+ pickRandomNames,
1940
+ getStylePresets: coerce(getStylePresets),
1941
+ getProviderOptions: coerce(getProviderOptions),
1942
+ getCloudProviderOptions: coerce(getCloudProviderOptions),
1943
+ getModelOptions: coerce(getModelOptions),
1944
+ getInventoryProviderOptions: coerce(getInventoryProviderOptions),
1945
+ resolveConfiguredCharacterLanguage: coerce(resolveConfiguredCharacterLanguage),
1946
+ normalizeCharacterLanguage: coerce(normalizeCharacterLanguage),
1947
+ readUiLanguageHeader: coerce(readUiLanguageHeader),
1948
+ applyOnboardingVoicePreset: coerce(applyOnboardingVoicePreset),
1949
+ saveElizaConfig,
1950
+ })) {
1951
+ return;
1952
+ }
1953
+ // POST /api/onboarding is now handled by onboarding-routes.ts above.
1954
+ if (await handleAgentLifecycleRoutes({
1955
+ req,
1956
+ res,
1957
+ method,
1958
+ pathname,
1959
+ state,
1960
+ error,
1961
+ json,
1962
+ readJsonBody,
1963
+ })) {
1964
+ return;
1965
+ }
1966
+ const triggerHandled = await handleTriggerRoutes({
1967
+ req,
1968
+ res,
1969
+ method,
1970
+ pathname,
1971
+ runtime: state.runtime,
1972
+ readJsonBody,
1973
+ json,
1974
+ error,
1975
+ executeTriggerTask,
1976
+ getTriggerHealthSnapshot,
1977
+ getTriggerLimit,
1978
+ listTriggerTasks,
1979
+ readTriggerConfig,
1980
+ readTriggerRuns,
1981
+ taskToTriggerSummary,
1982
+ triggersFeatureEnabled,
1983
+ buildTriggerConfig,
1984
+ buildTriggerMetadata,
1985
+ normalizeTriggerDraft,
1986
+ DISABLED_TRIGGER_INTERVAL_MS,
1987
+ TRIGGER_TASK_NAME,
1988
+ TRIGGER_TASK_TAGS: [...TRIGGER_TASK_TAGS],
1989
+ });
1990
+ if (triggerHandled) {
1991
+ return;
1992
+ }
1993
+ if (pathname.startsWith("/api/training")) {
1994
+ if (!state.trainingService) {
1995
+ error(res, "Training service is not available", 503);
1996
+ return;
1997
+ }
1998
+ const trainingHandled = await handleTrainingRoutes({
1999
+ req,
2000
+ res,
2001
+ method,
2002
+ pathname,
2003
+ runtime: state.runtime,
2004
+ trainingService: state.trainingService,
2005
+ readJsonBody,
2006
+ json,
2007
+ error,
2008
+ isLoopbackHost,
2009
+ });
2010
+ if (trainingHandled)
2011
+ return;
2012
+ }
2013
+ // ── Knowledge routes (/api/knowledge/*) ─────────────────────────────────
2014
+ if (pathname.startsWith("/api/knowledge")) {
2015
+ const knowledgeHandled = await handleKnowledgeRoutes({
2016
+ req,
2017
+ res,
2018
+ method,
2019
+ pathname,
2020
+ url,
2021
+ runtime: state.runtime,
2022
+ readJsonBody,
2023
+ json,
2024
+ error,
2025
+ });
2026
+ if (knowledgeHandled)
2027
+ return;
2028
+ }
2029
+ if (pathname.startsWith("/api/memory") ||
2030
+ pathname.startsWith("/api/memories") ||
2031
+ pathname === "/api/context/quick") {
2032
+ const memoryHandled = await handleMemoryRoutes({
2033
+ req,
2034
+ res,
2035
+ method,
2036
+ pathname,
2037
+ url,
2038
+ runtime: state.runtime,
2039
+ agentName: state.agentName,
2040
+ readJsonBody,
2041
+ json,
2042
+ error,
2043
+ });
2044
+ if (memoryHandled)
2045
+ return;
2046
+ }
2047
+ if (await handleAgentAdminRoutes({
2048
+ req,
2049
+ res,
2050
+ method,
2051
+ pathname,
2052
+ state,
2053
+ onRestart: ctx?.onRestart ?? undefined,
2054
+ onRuntimeSwapped: ctx?.onRuntimeSwapped,
2055
+ json,
2056
+ error,
2057
+ resolveStateDir,
2058
+ resolvePath: path.resolve,
2059
+ getHomeDir: os.homedir,
2060
+ isSafeResetStateDir,
2061
+ stateDirExists: fs.existsSync,
2062
+ removeStateDir: (resolvedState) => {
2063
+ fs.rmSync(resolvedState, { recursive: true, force: true });
2064
+ },
2065
+ logWarn: (message) => logger.warn(message),
2066
+ })) {
2067
+ return;
2068
+ }
2069
+ if (await handleAgentTransferRoutes({
2070
+ req,
2071
+ res,
2072
+ method,
2073
+ pathname,
2074
+ state,
2075
+ readJsonBody,
2076
+ json,
2077
+ error,
2078
+ exportAgent,
2079
+ estimateExportSize,
2080
+ importAgent,
2081
+ isAgentExportError: (err) => err instanceof AgentExportError,
2082
+ })) {
2083
+ return;
2084
+ }
2085
+ if (await handleCharacterRoutes({
2086
+ req,
2087
+ res,
2088
+ method,
2089
+ pathname,
2090
+ state,
2091
+ readJsonBody,
2092
+ json,
2093
+ error,
2094
+ pickRandomNames,
2095
+ saveConfig: saveElizaConfig,
2096
+ validateCharacter: (body) => CharacterSchema.safeParse(body),
2097
+ })) {
2098
+ return;
2099
+ }
2100
+ // Compatibility route used by legacy health probes and desktop name lookup.
2101
+ if (method === "GET" && pathname === "/api/agents") {
2102
+ const runtimeAgentId = typeof state.runtime?.agentId === "string" &&
2103
+ state.runtime.agentId.trim().length > 0
2104
+ ? state.runtime.agentId.trim()
2105
+ : null;
2106
+ const configuredAgentId = typeof state.config.agents?.list?.[0]?.id === "string" &&
2107
+ state.config.agents.list[0].id.trim().length > 0
2108
+ ? state.config.agents.list[0].id.trim()
2109
+ : null;
2110
+ const agentName = state.runtime?.character.name?.trim() ||
2111
+ state.agentName?.trim() ||
2112
+ "Eliza";
2113
+ json(res, {
2114
+ agents: [
2115
+ {
2116
+ id: runtimeAgentId ??
2117
+ configuredAgentId ??
2118
+ "00000000-0000-0000-0000-000000000000",
2119
+ name: agentName,
2120
+ status: state.agentState,
2121
+ },
2122
+ ],
2123
+ });
2124
+ return;
2125
+ }
2126
+ if (await handleModelsRoutes({
2127
+ req,
2128
+ res,
2129
+ method,
2130
+ pathname,
2131
+ url,
2132
+ json,
2133
+ providerCachePath,
2134
+ getOrFetchProvider,
2135
+ getOrFetchAllProviders,
2136
+ resolveModelsCacheDir,
2137
+ pathExists: fs.existsSync,
2138
+ readDir: fs.readdirSync,
2139
+ unlinkFile: fs.unlinkSync,
2140
+ joinPath: path.join,
2141
+ })) {
2142
+ return;
2143
+ }
2144
+ // ── NFA routes (/api/nfa/*) ─────────────────────────────────────────
2145
+ // Extracted — will move to @elizaos/plugin-bnb-identity (Plugin.routes)
2146
+ // when the plugin directory is created. Until then, NFA routes are
2147
+ // served inline from nfa-routes.ts if needed, or disabled.
2148
+ if (await handleRegistryRoutes({
2149
+ req,
2150
+ res,
2151
+ method,
2152
+ pathname,
2153
+ url,
2154
+ json,
2155
+ error,
2156
+ getPluginManager: () => getPluginManagerForState(state),
2157
+ getLoadedPluginNames: () => state.runtime?.plugins.map((plugin) => plugin.name) ?? [],
2158
+ getBundledPluginIds: () => getReleaseBundledPluginIds(),
2159
+ classifyRegistryPluginRelease,
2160
+ })) {
2161
+ return;
2162
+ }
2163
+ // ═══════════════════════════════════════════════════════════════════════
2164
+ // Plugin routes (extracted to plugin-routes.ts)
2165
+ // ═══════════════════════════════════════════════════════════════════════
2166
+ if (pathname === "/api/plugins" ||
2167
+ pathname.startsWith("/api/plugins/") ||
2168
+ pathname === "/api/secrets" ||
2169
+ pathname === "/api/core/status") {
2170
+ if (await handlePluginRoutes({
2171
+ req,
2172
+ res,
2173
+ method,
2174
+ pathname,
2175
+ url,
2176
+ state,
2177
+ json,
2178
+ error,
2179
+ readJsonBody,
2180
+ scheduleRuntimeRestart,
2181
+ restartRuntime,
2182
+ BLOCKED_ENV_KEYS,
2183
+ discoverInstalledPlugins,
2184
+ maskValue,
2185
+ aggregateSecrets,
2186
+ readProviderCache,
2187
+ paramKeyToCategory,
2188
+ buildPluginEvmDiagnosticEntry,
2189
+ EVM_PLUGIN_PACKAGE,
2190
+ applyWhatsAppQrOverride,
2191
+ applySignalQrOverride,
2192
+ signalAuthExists,
2193
+ resolvePluginConfigMutationRejections,
2194
+ requirePluginManager,
2195
+ requireCoreManager,
2196
+ })) {
2197
+ return;
2198
+ }
2199
+ }
2200
+ // ═══════════════════════════════════════════════════════════════════════
2201
+ // Skills routes (extracted to skills-routes.ts)
2202
+ // Curated-skills routes live at /api/skills/curated/* and must be dispatched
2203
+ // before the generic skills routes (which reject "/" in skill IDs).
2204
+ // ═══════════════════════════════════════════════════════════════════════
2205
+ if (pathname.startsWith("/api/skills/curated")) {
2206
+ if (await handleCuratedSkillsRoutes({
2207
+ req,
2208
+ res,
2209
+ method,
2210
+ pathname,
2211
+ url,
2212
+ json,
2213
+ error,
2214
+ readJsonBody,
2215
+ })) {
2216
+ return;
2217
+ }
2218
+ }
2219
+ if (pathname.startsWith("/api/skills")) {
2220
+ if (await handleSkillsRoutes({
2221
+ req,
2222
+ res,
2223
+ method,
2224
+ pathname,
2225
+ url,
2226
+ state,
2227
+ json,
2228
+ error,
2229
+ readJsonBody,
2230
+ readBody,
2231
+ discoverSkills,
2232
+ saveElizaConfig,
2233
+ })) {
2234
+ return;
2235
+ }
2236
+ }
2237
+ if (await handleDiagnosticsRoutes({
2238
+ req,
2239
+ res,
2240
+ method,
2241
+ pathname,
2242
+ url,
2243
+ logBuffer: state.logBuffer,
2244
+ eventBuffer: state.eventBuffer,
2245
+ initSse: initSseFromChatRoutes,
2246
+ writeSseJson: writeSseJsonFromChatRoutes,
2247
+ json,
2248
+ auditEventTypes: AUDIT_EVENT_TYPES,
2249
+ auditSeverities: AUDIT_SEVERITIES,
2250
+ getAuditFeedSize,
2251
+ queryAuditFeed: (query) => queryAuditFeed({
2252
+ type: AUDIT_EVENT_TYPES.includes(query.type ?? "")
2253
+ ? query.type
2254
+ : undefined,
2255
+ severity: AUDIT_SEVERITIES.includes(query.severity ?? "")
2256
+ ? query.severity
2257
+ : undefined,
2258
+ sinceMs: query.sinceMs,
2259
+ limit: query.limit,
2260
+ }).map((entry) => ({
2261
+ timestamp: entry.timestamp,
2262
+ type: entry.type,
2263
+ summary: entry.summary,
2264
+ severity: entry.severity,
2265
+ metadata: entry.metadata,
2266
+ })),
2267
+ subscribeAuditFeed,
2268
+ })) {
2269
+ return;
2270
+ }
2271
+ // ═══════════════════════════════════════════════════════════════════════
2272
+ // Bug report routes
2273
+ // ═══════════════════════════════════════════════════════════════════════
2274
+ if (await handleBugReportRoutes({
2275
+ req,
2276
+ res,
2277
+ method,
2278
+ pathname,
2279
+ readJsonBody,
2280
+ json,
2281
+ error,
2282
+ })) {
2283
+ return;
2284
+ }
2285
+ // ═══════════════════════════════════════════════════════════════════════
2286
+ // Wallet core routes (addresses, balances, generate, config, export)
2287
+ // Canonical implementation lives in @elizaos/app-steward; wired here
2288
+ // so the API server exposes them without requiring plugin registration.
2289
+ // ═══════════════════════════════════════════════════════════════════════
2290
+ if (pathname.startsWith("/api/wallet/")) {
2291
+ let stewardWalletCoreRoutes = null;
2292
+ try {
2293
+ const { handleWalletCoreRoutes } = await import("@elizaos/app-steward/routes/wallet-core-routes");
2294
+ stewardWalletCoreRoutes = handleWalletCoreRoutes;
2295
+ }
2296
+ catch (err) {
2297
+ if (isWalletBridgeImportFailure(err)) {
2298
+ logger.debug({ err }, "[eliza-api] Wallet core routes unavailable from @elizaos/app-steward; falling back to local bridge");
2299
+ }
2300
+ else {
2301
+ logger.error({ err }, "[eliza-api] Wallet core route bridge failed");
2302
+ error(res, getErrorMessage(err), 500);
2303
+ return;
2304
+ }
2305
+ }
2306
+ if (stewardWalletCoreRoutes) {
2307
+ try {
2308
+ if (await stewardWalletCoreRoutes(req, res, state)) {
2309
+ return;
2310
+ }
2311
+ }
2312
+ catch (err) {
2313
+ logger.error({ err }, "[eliza-api] Wallet core route bridge failed");
2314
+ error(res, getErrorMessage(err), 500);
2315
+ return;
2316
+ }
2317
+ }
2318
+ if (await handleWalletRoutes({
2319
+ req,
2320
+ res,
2321
+ method,
2322
+ pathname,
2323
+ config: loadElizaConfig(),
2324
+ saveConfig: saveElizaConfig,
2325
+ ensureWalletKeysInEnvAndConfig,
2326
+ resolveWalletExportRejection,
2327
+ restartRuntime,
2328
+ scheduleRuntimeRestart,
2329
+ readJsonBody,
2330
+ json,
2331
+ error,
2332
+ runtime: state.runtime ?? null,
2333
+ })) {
2334
+ return;
2335
+ }
2336
+ }
2337
+ // ═══════════════════════════════════════════════════════════════════════
2338
+ // ERC-8004 Registry, Agent self-status, Privy — delegated to agent-status-routes.ts
2339
+ // ═══════════════════════════════════════════════════════════════════════
2340
+ if (await handleAgentStatusRoutes({
2341
+ req,
2342
+ res,
2343
+ method,
2344
+ pathname,
2345
+ url,
2346
+ state: coerce(state),
2347
+ json,
2348
+ error,
2349
+ readJsonBody,
2350
+ deps: {
2351
+ getWalletAddresses,
2352
+ resolveWalletCapabilityStatus: coerce(resolveWalletCapabilityStatus),
2353
+ resolveWalletRpcReadiness: coerce(resolveWalletRpcReadiness),
2354
+ resolveTradePermissionMode,
2355
+ canUseLocalTradeExecution: coerce(canUseLocalTradeExecution),
2356
+ detectRuntimeModel: coerce(detectRuntimeModel),
2357
+ resolveProviderFromModel,
2358
+ getGlobalAwarenessRegistry: coerce(getGlobalAwarenessRegistry),
2359
+ isPrivyWalletProvisioningEnabled,
2360
+ ensurePrivyWalletsForCustomUser: coerce(ensurePrivyWalletsForCustomUser),
2361
+ RegistryService,
2362
+ },
2363
+ })) {
2364
+ return;
2365
+ }
2366
+ // ═══════════════════════════════════════════════════════════════════════
2367
+ // Drop / Mint / Whitelist Routes (extracted to drop-routes.ts)
2368
+ // ═══════════════════════════════════════════════════════════════════════
2369
+ if (await handleDropRoutes({
2370
+ req,
2371
+ res,
2372
+ method,
2373
+ pathname,
2374
+ url,
2375
+ json,
2376
+ error,
2377
+ readJsonBody,
2378
+ dropService,
2379
+ agentName: state.agentName,
2380
+ getWalletAddresses: coerce(getWalletAddresses),
2381
+ readOGCodeFromState,
2382
+ })) {
2383
+ return;
2384
+ }
2385
+ // ── Update routes (extracted to update-routes.ts) ─────────────────────
2386
+ if (await handleUpdateRoutes({
2387
+ req,
2388
+ res,
2389
+ method,
2390
+ pathname,
2391
+ url,
2392
+ state,
2393
+ json,
2394
+ error,
2395
+ readJsonBody,
2396
+ saveElizaConfig,
2397
+ })) {
2398
+ return;
2399
+ }
2400
+ // ── Connector routes (extracted to connector-routes.ts) ──────────────
2401
+ if (await handleConnectorRoutes({
2402
+ req,
2403
+ res,
2404
+ method,
2405
+ pathname,
2406
+ state,
2407
+ json,
2408
+ error,
2409
+ readJsonBody,
2410
+ saveElizaConfig,
2411
+ redactConfigSecrets,
2412
+ isBlockedObjectKey,
2413
+ cloneWithoutBlockedObjectKeys,
2414
+ })) {
2415
+ return;
2416
+ }
2417
+ // ── WhatsApp routes (/api/whatsapp/*) ────────────────────────────────────
2418
+ // Moved to @elizaos/plugin-whatsapp setup-routes.ts (registered via Plugin.routes).
2419
+ // ── Unified inbox routes (/api/inbox/*) ───────────────────────────────
2420
+ // Cross-channel read-only feed that merges connector messages
2421
+ // (imessage, telegram, discord, whatsapp, etc.) into a single
2422
+ // time-ordered view. See api/inbox-routes.ts for details.
2423
+ const blueBubblesHandled = await handleBlueBubblesRoute(req, res, pathname, method, {
2424
+ runtime: state.runtime
2425
+ ? {
2426
+ getService: (type) => state.runtime.getService(type),
2427
+ }
2428
+ : undefined,
2429
+ }, { json, error, readJsonBody });
2430
+ if (blueBubblesHandled)
2431
+ return;
2432
+ if (pathname.startsWith("/api/inbox")) {
2433
+ const handled = await handleInboxRoute(req, res, pathname, method, { runtime: state.runtime ?? null }, { json, error, readJsonBody });
2434
+ if (handled)
2435
+ return;
2436
+ }
2437
+ // ── iMessage routes (/api/imessage/*) ─────────────────────────────────
2438
+ // Extracted to @elizaos/plugin-imessage setup-routes.ts (Plugin.routes).
2439
+ // The plugin registers rawPath routes that serve the same legacy paths.
2440
+ // ── Cloud relay status (/api/cloud/relay-status) ──────────────────────
2441
+ if (pathname === "/api/cloud/relay-status") {
2442
+ const handled = await handleCloudRelayRoute(req, res, pathname, method, {
2443
+ runtime: state.runtime
2444
+ ? {
2445
+ getService: (type) => state.runtime.getService(type),
2446
+ }
2447
+ : undefined,
2448
+ }, { json, error, readJsonBody });
2449
+ if (handled)
2450
+ return;
2451
+ }
2452
+ // Telegram setup routes: now handled by @elizaos/plugin-telegram via
2453
+ // runtime plugin routes (rawPath: true). See plugin-telegram/src/setup-routes.ts.
2454
+ // ── Telegram account routes (/api/telegram-account/*) ────────────────
2455
+ if (pathname.startsWith("/api/telegram-account")) {
2456
+ const routeState = {
2457
+ config: state.config,
2458
+ saveConfig: () => saveElizaConfig(state.config),
2459
+ runtime: state.runtime
2460
+ ? {
2461
+ getService: (type) => state.runtime.getService(type),
2462
+ getSetting: (key) => state.runtime.getSetting(key),
2463
+ }
2464
+ : undefined,
2465
+ telegramAccountAuthSession: state.telegramAccountAuthSession,
2466
+ };
2467
+ const handled = await handleTelegramAccountRoute(req, res, pathname, method, routeState, { json, error, readJsonBody }, {
2468
+ createAuthSession: (options) => new TelegramAccountAuthSession(options),
2469
+ authStateExists: telegramAccountAuthStateExists,
2470
+ sessionExists: telegramAccountSessionExists,
2471
+ clearAuthState: clearTelegramAccountAuthState,
2472
+ clearSession: clearTelegramAccountSession,
2473
+ });
2474
+ state.telegramAccountAuthSession =
2475
+ routeState.telegramAccountAuthSession ?? null;
2476
+ if (handled)
2477
+ return;
2478
+ }
2479
+ // ── Discord Local routes (/api/discord-local/*) — extracted to @elizaos/plugin-discord (setup-routes.ts) ──
2480
+ // ── Signal routes (/api/signal/*) — extracted to @elizaos/plugin-signal (setup-routes.ts) ──
2481
+ // ── Restart ──────────────────────────────────────────────────────────
2482
+ if (method === "POST" && pathname === "/api/restart") {
2483
+ state.agentState = "restarting";
2484
+ state.startup = { ...state.startup, phase: "restarting" };
2485
+ state.broadcastStatus?.();
2486
+ json(res, { ok: true, message: "Restarting...", restarting: true });
2487
+ setTimeout(() => process.exit(0), 1000);
2488
+ return;
2489
+ }
2490
+ // ── TTS routes (extracted to tts-routes.ts) ──────────────────────────
2491
+ if (await handleTtsRoutes({
2492
+ req,
2493
+ res,
2494
+ method,
2495
+ pathname,
2496
+ state,
2497
+ json,
2498
+ error,
2499
+ readJsonBody,
2500
+ isRedactedSecretValue,
2501
+ fetchWithTimeoutGuard,
2502
+ streamResponseBodyWithByteLimit: coerce(streamResponseBodyWithByteLimit),
2503
+ responseContentLength,
2504
+ isAbortError,
2505
+ ELEVENLABS_FETCH_TIMEOUT_MS: 30_000,
2506
+ ELEVENLABS_AUDIO_MAX_BYTES: 20 * 1_048_576,
2507
+ })) {
2508
+ return;
2509
+ }
2510
+ // ── Avatar routes (extracted to avatar-routes.ts) ───────────────────
2511
+ if (await handleAvatarRoutes({
2512
+ req,
2513
+ res,
2514
+ method,
2515
+ pathname,
2516
+ json,
2517
+ error,
2518
+ })) {
2519
+ return;
2520
+ }
2521
+ // ═══════════════════════════════════════════════════════════════════════
2522
+ // Config routes (extracted to config-routes.ts)
2523
+ // ═══════════════════════════════════════════════════════════════════════
2524
+ if (pathname === "/api/config" || pathname === "/api/config/schema") {
2525
+ if (await handleConfigRoutes({
2526
+ req,
2527
+ res,
2528
+ method,
2529
+ pathname,
2530
+ url,
2531
+ config: state.config,
2532
+ json,
2533
+ error,
2534
+ readJsonBody,
2535
+ redactConfigSecrets,
2536
+ isBlockedObjectKey,
2537
+ stripRedactedPlaceholderValuesDeep,
2538
+ patchTouchesProviderSelection,
2539
+ BLOCKED_ENV_KEYS,
2540
+ CONFIG_WRITE_ALLOWED_TOP_KEYS,
2541
+ resolveMcpServersRejection,
2542
+ resolveMcpTerminalAuthorizationRejection,
2543
+ })) {
2544
+ return;
2545
+ }
2546
+ }
2547
+ // ── Permissions extra routes (extracted to permissions-routes-extra.ts) ──
2548
+ if (await handlePermissionsExtraRoutes({
2549
+ req,
2550
+ res,
2551
+ method,
2552
+ pathname,
2553
+ state: coerce(state),
2554
+ json,
2555
+ error,
2556
+ readJsonBody,
2557
+ saveElizaConfig,
2558
+ resolveTradePermissionMode: coerce(resolveTradePermissionMode),
2559
+ canUseLocalTradeExecution: coerce(canUseLocalTradeExecution),
2560
+ parseAgentAutomationMode,
2561
+ persistAgentAutomationMode: coerce(persistAgentAutomationMode),
2562
+ })) {
2563
+ return;
2564
+ }
2565
+ if (await handlePermissionRoutes({
2566
+ req,
2567
+ res,
2568
+ method,
2569
+ pathname,
2570
+ state,
2571
+ readJsonBody,
2572
+ json,
2573
+ error,
2574
+ saveConfig: (config) => {
2575
+ saveElizaConfig(config);
2576
+ },
2577
+ scheduleRuntimeRestart,
2578
+ })) {
2579
+ return;
2580
+ }
2581
+ if (await handleRelationshipsRoutes({
2582
+ req,
2583
+ res,
2584
+ method,
2585
+ pathname,
2586
+ runtime: state.runtime ?? undefined,
2587
+ readJsonBody,
2588
+ json,
2589
+ error,
2590
+ })) {
2591
+ return;
2592
+ }
2593
+ if (await handleBrowserWorkspaceRoutes({
2594
+ req,
2595
+ res,
2596
+ method,
2597
+ pathname,
2598
+ readJsonBody,
2599
+ json,
2600
+ error,
2601
+ })) {
2602
+ return;
2603
+ }
2604
+ // Agent self-status, Privy, and ERC-8004 registry routes are now handled
2605
+ // by handleAgentStatusRoutes above.
2606
+ // ═══════════════════════════════════════════════════════════════════════
2607
+ // Subscription status route
2608
+ // ═══════════════════════════════════════════════════════════════════════
2609
+ // ── GET /api/subscription/status (direct handler fallback) ─────────────
2610
+ // Note: subscription-routes.ts handles /api/subscription/* but this is
2611
+ // kept here in case the prefix routing is not active.
2612
+ // (handleSubscriptionRoutes already covers this, so no duplicate needed.)
2613
+ // ═══════════════════════════════════════════════════════════════════════
2614
+ // BSC trade routes and wallet trade execute — now handled by
2615
+ // @elizaos/app-steward plugin routes. See apps/app-steward/src/plugin.ts.
2616
+ // ═══════════════════════════════════════════════════════════════════════
2617
+ // ── Cloud routes (/api/cloud/*) ─────────────────────────────────────────
2618
+ if (pathname.startsWith("/api/cloud/")) {
2619
+ const billingHandled = await handleCloudBillingRoute(req, res, pathname, method, { config: state.config, runtime: state.runtime });
2620
+ if (billingHandled)
2621
+ return;
2622
+ // Compat proxy routes — transparent proxy to Eliza Cloud v2 /api/compat/*
2623
+ const compatHandled = await handleCloudCompatRoute(req, res, pathname, method, { config: state.config, runtime: state.runtime });
2624
+ if (compatHandled)
2625
+ return;
2626
+ const cloudState = {
2627
+ config: state.config,
2628
+ cloudManager: state.cloudManager,
2629
+ runtime: state.runtime,
2630
+ saveConfig: saveElizaConfig,
2631
+ createTelemetrySpan: createIntegrationTelemetrySpan,
2632
+ restartRuntime,
2633
+ };
2634
+ const handled = await handleCloudRoute(req, res, pathname, method, cloudState);
2635
+ if (handled)
2636
+ return;
2637
+ }
2638
+ // ── Sandbox routes (/api/sandbox/*) ────────────────────────────────────
2639
+ if (pathname.startsWith("/api/sandbox")) {
2640
+ const handled = await handleSandboxRoute(req, res, pathname, method, {
2641
+ sandboxManager: state.sandboxManager,
2642
+ });
2643
+ if (handled)
2644
+ return;
2645
+ }
2646
+ // ═══════════════════════════════════════════════════════════════════════
2647
+ // Conversation routes (/api/conversations/*) — delegated to conversation-routes.ts
2648
+ // ═══════════════════════════════════════════════════════════════════════
2649
+ if (pathname.startsWith("/api/conversations")) {
2650
+ // Cast state — ConversationRouteState is a compatible subset of ServerState
2651
+ const handled = await handleConversationRoutes({
2652
+ req,
2653
+ res,
2654
+ method,
2655
+ pathname,
2656
+ readJsonBody,
2657
+ json,
2658
+ error,
2659
+ state: coerce(state),
2660
+ });
2661
+ if (handled)
2662
+ return;
2663
+ }
2664
+ // ═══════════════════════════════════════════════════════════════════════
2665
+ // OpenAI-compatible routes (/v1/*) — delegated to chat-routes.ts
2666
+ // ═══════════════════════════════════════════════════════════════════════
2667
+ if (pathname.startsWith("/v1/")) {
2668
+ // Cast state — ChatRouteState is a compatible subset of ServerState
2669
+ const handled = await handleChatRoutes({
2670
+ req,
2671
+ res,
2672
+ method,
2673
+ pathname,
2674
+ readJsonBody,
2675
+ json,
2676
+ error,
2677
+ state: coerce(state),
2678
+ });
2679
+ if (handled)
2680
+ return;
2681
+ }
2682
+ // ── Database management API ─────────────────────────────────────────────
2683
+ if (pathname.startsWith("/api/database/")) {
2684
+ const handled = await handleDatabaseRoute(req, res, state.runtime, pathname);
2685
+ if (handled)
2686
+ return;
2687
+ }
2688
+ // ── Trajectory management API ──────────────────────────────────────────
2689
+ if (pathname.startsWith("/api/trajectories")) {
2690
+ if (!state.runtime) {
2691
+ sendJsonError(res, "Agent runtime not started yet", 503);
2692
+ return;
2693
+ }
2694
+ const handled = await handleTrajectoryRoute(req, res, state.runtime, pathname, method);
2695
+ if (handled)
2696
+ return;
2697
+ }
2698
+ // ── Coding Agent API (/api/coding-agents/*, /api/workspace/*, /api/issues/*) ──
2699
+ if (!state.runtime &&
2700
+ method === "GET" &&
2701
+ pathname === "/api/coding-agents/coordinator/status") {
2702
+ error(res, "Coding agent runtime unavailable", 503);
2703
+ return;
2704
+ }
2705
+ if (!state.runtime &&
2706
+ method === "GET" &&
2707
+ pathname === "/api/coding-agents/preflight") {
2708
+ error(res, "Coding agent runtime unavailable", 503);
2709
+ return;
2710
+ }
2711
+ if (!state.runtime &&
2712
+ method === "GET" &&
2713
+ pathname.startsWith("/api/coding-agents")) {
2714
+ error(res, "Coding agent runtime unavailable", 503);
2715
+ return;
2716
+ }
2717
+ if (state.runtime &&
2718
+ (pathname.startsWith("/api/coding-agents") ||
2719
+ pathname.startsWith("/api/workspace") ||
2720
+ pathname.startsWith("/api/issues"))) {
2721
+ const isCoordinatorStatusRoute = method === "GET" && pathname === "/api/coding-agents/coordinator/status";
2722
+ const isPreflightRoute = method === "GET" && pathname === "/api/coding-agents/preflight";
2723
+ // Try to dynamically load the route handler from the local plugin first
2724
+ let handled = false;
2725
+ // Lazily start PTY_SERVICE if it was registered but not yet started.
2726
+ // The core runtime only starts services on-demand via getServiceLoadPromise,
2727
+ // but the orchestrator plugin's route handler checks getService() (which
2728
+ // only returns already-started instances). Without this kick, the plugin
2729
+ // sees null and returns 503 for every route.
2730
+ if (!state.runtime.getService("PTY_SERVICE") &&
2731
+ state.runtime.hasService("PTY_SERVICE")) {
2732
+ try {
2733
+ await state.runtime.getServiceLoadPromise("PTY_SERVICE");
2734
+ wireCodingAgentBridgesNow(state);
2735
+ }
2736
+ catch {
2737
+ // Service start failed — the fallback handler will surface 503 unavailability.
2738
+ }
2739
+ }
2740
+ const ptyService = state.runtime.getService("PTY_SERVICE");
2741
+ const coordinator = getCoordinatorFromRuntime(state.runtime);
2742
+ const codeTaskService = state.runtime.getService("CODE_TASK");
2743
+ const isTaskRoute = method === "GET" && pathname === "/api/coding-agents/tasks";
2744
+ const isTaskDetailRoute = method === "GET" && /^\/api\/coding-agents\/tasks\/[^/]+$/.test(pathname);
2745
+ const isSessionsRoute = method === "GET" && pathname === "/api/coding-agents/sessions";
2746
+ const isSessionDetailRoute = method === "GET" &&
2747
+ /^\/api\/coding-agents\/sessions\/[^/]+$/.test(pathname);
2748
+ const isScratchRoute = method === "GET" && pathname === "/api/coding-agents/scratch";
2749
+ const isAgentListRoute = method === "GET" && pathname === "/api/coding-agents";
2750
+ // The settings UI and startup hydration poll these routes early. When the
2751
+ // PTY/coordinator services are not ready yet, surface explicit 503
2752
+ // unavailability rather than synthesizing success-shaped empty payloads.
2753
+ if ((isCoordinatorStatusRoute && !coordinator) ||
2754
+ (isPreflightRoute && !ptyService) ||
2755
+ ((isTaskRoute ||
2756
+ isTaskDetailRoute ||
2757
+ isScratchRoute ||
2758
+ isAgentListRoute) &&
2759
+ !codeTaskService) ||
2760
+ ((isSessionsRoute || isSessionDetailRoute) && !ptyService)) {
2761
+ handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
2762
+ }
2763
+ // Prefer @elizaos/plugin-agent-orchestrator route handler so the full coordinator
2764
+ // contract is served from the embedded runtime (replaces the old plugin).
2765
+ if (!handled)
2766
+ try {
2767
+ const orchestratorPlugin = agentOrchestratorCompat;
2768
+ if (orchestratorPlugin?.createCodingAgentRouteHandler) {
2769
+ const coordinator = orchestratorPlugin.getCoordinator?.(state.runtime);
2770
+ const handler = orchestratorPlugin.createCodingAgentRouteHandler(state.runtime, coordinator);
2771
+ handled = await handler(req, res, pathname, req.method ?? "GET");
2772
+ }
2773
+ }
2774
+ catch {
2775
+ // Compat layer unavailable — final fallback below handles coding-agents routes.
2776
+ }
2777
+ // Final fallback: handle coding-agents routes using the plugin's CODE_TASK compatibility service.
2778
+ if (!handled && pathname.startsWith("/api/coding-agents")) {
2779
+ handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
2780
+ }
2781
+ if (handled)
2782
+ return;
2783
+ }
2784
+ if (await handleCloudStatusRoutes({
2785
+ req,
2786
+ res,
2787
+ method,
2788
+ pathname,
2789
+ config: state.config,
2790
+ runtime: state.runtime,
2791
+ json,
2792
+ })) {
2793
+ return;
2794
+ }
2795
+ // ── App routes (/api/apps/*) ──────────────────────────────────────────
2796
+ if (await handleAppsRoutes({
2797
+ req,
2798
+ res,
2799
+ method,
2800
+ pathname,
2801
+ url,
2802
+ appManager: {
2803
+ listAvailable: (pluginManager) => state.appManager.listAvailable(pluginManager),
2804
+ search: (pluginManager, query, limit) => state.appManager.search(pluginManager, query, limit),
2805
+ listInstalled: (pluginManager) => state.appManager.listInstalled(pluginManager),
2806
+ listRuns: (runtime) => state.appManager.listRuns(runtime && typeof runtime === "object"
2807
+ ? runtime
2808
+ : null),
2809
+ getRun: (runId, runtime) => state.appManager.getRun(runId, runtime && typeof runtime === "object"
2810
+ ? runtime
2811
+ : null),
2812
+ attachRun: (runId, runtime) => state.appManager.attachRun(runId, runtime && typeof runtime === "object"
2813
+ ? runtime
2814
+ : null),
2815
+ detachRun: (runId) => state.appManager.detachRun(runId),
2816
+ launch: (pluginManager, name, onProgress, runtime) => state.appManager.launch(pluginManager, name, onProgress, runtime && typeof runtime === "object"
2817
+ ? runtime
2818
+ : null),
2819
+ stop: (pluginManager, name, runId, runtime) => state.appManager.stop(pluginManager, name, runId, runtime && typeof runtime === "object"
2820
+ ? runtime
2821
+ : null),
2822
+ recordHeartbeat: (runId) => state.appManager.recordHeartbeat(runId),
2823
+ getInfo: (pluginManager, name) => state.appManager.getInfo(pluginManager, name),
2824
+ },
2825
+ getPluginManager: () => getPluginManagerForState(state),
2826
+ parseBoundedLimit,
2827
+ readJsonBody,
2828
+ json,
2829
+ error,
2830
+ runtime: state.runtime,
2831
+ })) {
2832
+ return;
2833
+ }
2834
+ if (await handleAppPackageRoutes({
2835
+ req,
2836
+ res,
2837
+ method,
2838
+ pathname,
2839
+ url,
2840
+ readJsonBody,
2841
+ json,
2842
+ error,
2843
+ runtime: state.runtime,
2844
+ })) {
2845
+ return;
2846
+ }
2847
+ // ═══════════════════════════════════════════════════════════════════════
2848
+ // ═══════════════════════════════════════════════════════════════════════
2849
+ // Workbench routes (extracted to workbench-routes.ts)
2850
+ // ═══════════════════════════════════════════════════════════════════════
2851
+ if (pathname.startsWith("/api/workbench")) {
2852
+ if (await handleWorkbenchRoutes({
2853
+ req,
2854
+ res,
2855
+ method,
2856
+ pathname,
2857
+ url,
2858
+ state: coerce(state),
2859
+ json,
2860
+ error,
2861
+ readJsonBody,
2862
+ toWorkbenchTask: coerce(toWorkbenchTask),
2863
+ toWorkbenchTodo: coerce(toWorkbenchTodo),
2864
+ normalizeTags,
2865
+ readTaskMetadata,
2866
+ readTaskCompleted,
2867
+ parseNullableNumber,
2868
+ asObject,
2869
+ decodePathComponent,
2870
+ taskToTriggerSummary: coerce(taskToTriggerSummary),
2871
+ listTriggerTasks: coerce(listTriggerTasks),
2872
+ })) {
2873
+ return;
2874
+ }
2875
+ }
2876
+ // ═══════════════════════════════════════════════════════════════════════
2877
+ // Life-ops routes: now served via lifeopsPlugin.routes (rawPath) on the
2878
+ // runtime plugin route system. See app-lifeops/src/routes/plugin.ts.
2879
+ // ═══════════════════════════════════════════════════════════════════════
2880
+ // ═══════════════════════════════════════════════════════════════════════
2881
+ // MCP routes (extracted to mcp-routes.ts)
2882
+ // ═══════════════════════════════════════════════════════════════════════
2883
+ if (pathname.startsWith("/api/mcp")) {
2884
+ if (await handleMcpRoutes({
2885
+ req,
2886
+ res,
2887
+ method,
2888
+ pathname,
2889
+ url,
2890
+ state,
2891
+ json,
2892
+ error,
2893
+ readJsonBody,
2894
+ saveElizaConfig,
2895
+ redactDeep,
2896
+ isBlockedObjectKey,
2897
+ cloneWithoutBlockedObjectKeys,
2898
+ resolveMcpServersRejection,
2899
+ resolveMcpTerminalAuthorizationRejection,
2900
+ decodePathComponent,
2901
+ })) {
2902
+ return;
2903
+ }
2904
+ }
2905
+ // ═══════════════════════════════════════════════════════════════════════
2906
+ // Misc routes (extracted to misc-routes.ts)
2907
+ // ═══════════════════════════════════════════════════════════════════════
2908
+ if (await handleMiscRoutes({
2909
+ req,
2910
+ res,
2911
+ method,
2912
+ pathname,
2913
+ url,
2914
+ state: coerce(state),
2915
+ json,
2916
+ error,
2917
+ readJsonBody,
2918
+ AGENT_EVENT_ALLOWED_STREAMS,
2919
+ resolveTerminalRunRejection,
2920
+ resolveTerminalRunClientId,
2921
+ isSharedTerminalClientId,
2922
+ activeTerminalRunCount,
2923
+ setActiveTerminalRunCount: (delta) => {
2924
+ activeTerminalRunCount = Math.max(0, activeTerminalRunCount + delta);
2925
+ },
2926
+ })) {
2927
+ return;
2928
+ }
2929
+ // ── elizaOS plugin HTTP routes (runtime.routes, e.g. /music-player/*) ───
2930
+ if (await tryHandleRuntimePluginRoute({
2931
+ req,
2932
+ res,
2933
+ method,
2934
+ pathname,
2935
+ url,
2936
+ runtime: state.runtime,
2937
+ isAuthorized: () => isAuthorized(req),
2938
+ })) {
2939
+ return;
2940
+ }
2941
+ // ── Connector plugin routes (dynamically registered) ────────────────────
2942
+ for (const handler of state.connectorRouteHandlers) {
2943
+ const handled = await handler(req, res, pathname, method);
2944
+ if (handled)
2945
+ return;
2946
+ }
2947
+ // ── Music player compatibility fallback ─────────────────────────────────
2948
+ if (tryHandleMusicPlayerStatusFallback({
2949
+ pathname,
2950
+ method,
2951
+ runtime: state.runtime,
2952
+ res,
2953
+ })) {
2954
+ return;
2955
+ }
2956
+ // ── Fallback ────────────────────────────────────────────────────────────
2957
+ error(res, "Not found", 404);
2958
+ }
2959
+ // ---------------------------------------------------------------------------
2960
+ // Early log capture — re-exported from the standalone module so existing
2961
+ // callers that `import { captureEarlyLogs } from "../../../../src/api/server"` keep
2962
+ // working. The implementation lives in `./early-logs.ts` to avoid pulling
2963
+ // the entire server dependency graph into lightweight consumers (e.g. the
2964
+ // headless `startEliza()` path).
2965
+ // ---------------------------------------------------------------------------
2966
+ import { flushEarlyLogs } from "./early-logs.js";
2967
+ // ---------------------------------------------------------------------------
2968
+ // Server start
2969
+ // ---------------------------------------------------------------------------
2970
+ export async function startApiServer(opts) {
2971
+ const apiStartTime = Date.now();
2972
+ console.log(`[eliza-api] startApiServer called`);
2973
+ const port = opts?.port ?? resolveServerOnlyPort(process.env);
2974
+ const host = resolveApiBindHost(process.env);
2975
+ ensureApiTokenForBindHost(host);
2976
+ console.log(`[eliza-api] Token check done (${Date.now() - apiStartTime}ms)`);
2977
+ let config;
2978
+ try {
2979
+ config = loadElizaConfig();
2980
+ }
2981
+ catch (err) {
2982
+ logger.warn(`[eliza-api] Failed to load config, starting with defaults: ${err instanceof Error ? err.message : err}`);
2983
+ config = {};
2984
+ }
2985
+ console.log(`[eliza-api] Config loaded (${Date.now() - apiStartTime}ms)`);
2986
+ // Wallet/inventory routes read from process.env at request-time.
2987
+ // Hydrate persisted config.env values so addresses remain visible after restarts.
2988
+ const persistedEnv = config.env;
2989
+ const envKeysToHydrate = [
2990
+ "ELIZA_WALLET_OS_STORE",
2991
+ "EVM_PRIVATE_KEY",
2992
+ "SOLANA_PRIVATE_KEY",
2993
+ "ALCHEMY_API_KEY",
2994
+ "INFURA_API_KEY",
2995
+ "ANKR_API_KEY",
2996
+ "HELIUS_API_KEY",
2997
+ "BIRDEYE_API_KEY",
2998
+ "SOLANA_RPC_URL",
2999
+ ];
3000
+ for (const key of envKeysToHydrate) {
3001
+ const value = persistedEnv?.[key];
3002
+ if (typeof value === "string" && value.trim() && !process.env[key]) {
3003
+ process.env[key] = value.trim();
3004
+ }
3005
+ }
3006
+ // Optional auto-provision mode for legacy environments. Disabled by default
3007
+ // so startup does not silently create new wallets when keys are missing.
3008
+ const walletAutoProvisionRaw = process.env.ELIZA_WALLET_AUTO_PROVISION?.trim().toLowerCase();
3009
+ const walletAutoProvisionEnabled = walletAutoProvisionRaw === "1" ||
3010
+ walletAutoProvisionRaw === "true" ||
3011
+ walletAutoProvisionRaw === "on" ||
3012
+ walletAutoProvisionRaw === "yes";
3013
+ if (walletAutoProvisionEnabled && ensureWalletKeysInEnvAndConfig(config)) {
3014
+ try {
3015
+ saveElizaConfig(config);
3016
+ }
3017
+ catch (err) {
3018
+ logger.warn(`[eliza-api] Failed to persist generated wallet keys: ${err instanceof Error ? err.message : err}`);
3019
+ }
3020
+ }
3021
+ // Pre-load steward wallet addresses so getWalletAddresses() has them
3022
+ // available synchronously from the start (cloud-provisioned containers).
3023
+ await initStewardWalletCache();
3024
+ // Warn when wallet private keys live in plaintext config and the OS secure
3025
+ // store is not enabled. This nudges operators toward ELIZA_WALLET_OS_STORE=1.
3026
+ {
3027
+ const hasPlaintextKeys = (typeof persistedEnv?.EVM_PRIVATE_KEY === "string" &&
3028
+ persistedEnv.EVM_PRIVATE_KEY.trim()) ||
3029
+ (typeof persistedEnv?.SOLANA_PRIVATE_KEY === "string" &&
3030
+ persistedEnv.SOLANA_PRIVATE_KEY.trim());
3031
+ const osStoreRaw = process.env.ELIZA_WALLET_OS_STORE?.trim().toLowerCase();
3032
+ const osStoreEnabled = osStoreRaw === "1" ||
3033
+ osStoreRaw === "true" ||
3034
+ osStoreRaw === "on" ||
3035
+ osStoreRaw === "yes";
3036
+ if (hasPlaintextKeys && !osStoreEnabled) {
3037
+ logger.warn("[wallet] Private keys are stored in plaintext config. " +
3038
+ "Set ELIZA_WALLET_OS_STORE=1 to use the OS secure store instead.");
3039
+ }
3040
+ }
3041
+ const plugins = discoverPluginsFromManifest();
3042
+ console.log(`[eliza-api] Plugins discovered (${Date.now() - apiStartTime}ms)`);
3043
+ const workspaceDir = config.agents?.defaults?.workspace ?? resolveDefaultAgentWorkspaceDir();
3044
+ const hasRuntime = opts?.runtime != null;
3045
+ const initialAgentState = hasRuntime
3046
+ ? "running"
3047
+ : (opts?.initialAgentState ?? "not_started");
3048
+ const initialStartup = initialAgentState === "running"
3049
+ ? { phase: "running", attempt: 0 }
3050
+ : initialAgentState === "starting"
3051
+ ? { phase: "starting", attempt: 0 }
3052
+ : { phase: "idle", attempt: 0 };
3053
+ const agentName = hasRuntime
3054
+ ? (opts.runtime?.character.name ?? resolveDefaultAgentName(config))
3055
+ : resolveDefaultAgentName(config);
3056
+ const deletedConversationIds = readDeletedConversationIdsFromState();
3057
+ const state = {
3058
+ runtime: opts?.runtime ?? null,
3059
+ config,
3060
+ agentState: initialAgentState,
3061
+ agentName,
3062
+ model: hasRuntime
3063
+ ? detectRuntimeModel(opts.runtime ?? null, config)
3064
+ : undefined,
3065
+ startedAt: hasRuntime || initialAgentState === "starting" ? Date.now() : undefined,
3066
+ startup: initialStartup,
3067
+ plugins,
3068
+ // Filled asynchronously after server start to keep startup latency low.
3069
+ skills: [],
3070
+ logBuffer: [],
3071
+ eventBuffer: [],
3072
+ nextEventId: 1,
3073
+ chatRoomId: null,
3074
+ chatUserId: null,
3075
+ chatConnectionReady: null,
3076
+ chatConnectionPromise: null,
3077
+ adminEntityId: null,
3078
+ conversations: new Map(),
3079
+ conversationRestorePromise: null,
3080
+ deletedConversationIds,
3081
+ cloudManager: null,
3082
+ sandboxManager: null,
3083
+ appManager: new AppManager(),
3084
+ trainingService: null,
3085
+ registryService: null,
3086
+ dropService: null,
3087
+ shareIngestQueue: [],
3088
+ broadcastStatus: null,
3089
+ broadcastWs: null,
3090
+ broadcastWsToClientId: null,
3091
+ activeConversationId: null,
3092
+ permissionStates: {},
3093
+ shellEnabled: config.features?.shellEnabled !== false,
3094
+ agentAutomationMode: resolveAgentAutomationModeFromConfig(config),
3095
+ tradePermissionMode: resolveTradePermissionMode(config),
3096
+ pendingRestartReasons: [],
3097
+ connectorRouteHandlers: [],
3098
+ connectorHealthMonitor: null,
3099
+ };
3100
+ const trainingServiceCtor = await resolveTrainingServiceCtor();
3101
+ const trainingServiceOptions = {
3102
+ getRuntime: () => state.runtime,
3103
+ getConfig: () => state.config,
3104
+ setConfig: (nextConfig) => {
3105
+ state.config = nextConfig;
3106
+ saveElizaConfig(nextConfig);
3107
+ },
3108
+ };
3109
+ if (trainingServiceCtor) {
3110
+ state.trainingService = new trainingServiceCtor(trainingServiceOptions);
3111
+ }
3112
+ else {
3113
+ logger.info("[eliza-api] Training service package unavailable; training routes will be disabled");
3114
+ }
3115
+ // Register immediately so /api/training routes are available without a startup race.
3116
+ const configuredAdminEntityId = config.agents?.defaults?.adminEntityId;
3117
+ if (configuredAdminEntityId && isUuidLike(configuredAdminEntityId)) {
3118
+ state.adminEntityId = configuredAdminEntityId;
3119
+ state.chatUserId = state.adminEntityId;
3120
+ }
3121
+ else if (configuredAdminEntityId) {
3122
+ logger.warn(`[eliza-api] Ignoring invalid agents.defaults.adminEntityId "${configuredAdminEntityId}"`);
3123
+ }
3124
+ // Wire the app manager to the runtime if already running
3125
+ if (state.runtime) {
3126
+ // AppManager doesn't need a runtime reference — it just installs plugins
3127
+ }
3128
+ // Start the periodic stale-run sweeper that stops app runs whose UI
3129
+ // heartbeat has gone silent (e.g. the user closed the tab without
3130
+ // pressing Stop). Without this, plugins that own a setInterval — like
3131
+ // the Defense-of-the-Agents game loop — would tick forever after the
3132
+ // browser disappeared. The sweeper invokes the same `stopRun` route
3133
+ // hook the Stop button uses so plugins have one shutdown path.
3134
+ state.appManager.startStaleRunSweeper(() => state.runtime);
3135
+ const addLog = (level, message, source = "system", tags = []) => {
3136
+ let resolvedSource = source;
3137
+ if (source === "auto" || source === "system") {
3138
+ const bracketMatch = /^\[([^\]]+)\]\s*/.exec(message);
3139
+ if (bracketMatch)
3140
+ resolvedSource = bracketMatch[1];
3141
+ }
3142
+ // Auto-tag based on source when no explicit tags provided
3143
+ const resolvedTags = tags.length > 0
3144
+ ? tags
3145
+ : resolvedSource === "runtime" || resolvedSource === "autonomy"
3146
+ ? ["agent"]
3147
+ : resolvedSource === "api" || resolvedSource === "websocket"
3148
+ ? ["server"]
3149
+ : resolvedSource === "cloud"
3150
+ ? ["server", "cloud"]
3151
+ : ["system"];
3152
+ pushWithBatchEvict(state.logBuffer, {
3153
+ timestamp: Date.now(),
3154
+ level,
3155
+ message,
3156
+ source: resolvedSource,
3157
+ tags: resolvedTags,
3158
+ }, 1200, 200);
3159
+ };
3160
+ // ── Flush early-captured logs into the main buffer ────────────────────
3161
+ const earlyEntries = flushEarlyLogs();
3162
+ if (earlyEntries.length > 0) {
3163
+ for (const entry of earlyEntries) {
3164
+ state.logBuffer.push(entry);
3165
+ }
3166
+ if (state.logBuffer.length > 1000) {
3167
+ state.logBuffer.splice(0, state.logBuffer.length - 1000);
3168
+ }
3169
+ addLog("info", `Flushed ${earlyEntries.length} early startup log entries`, "system", ["system"]);
3170
+ }
3171
+ addLog("info", `Discovered ${plugins.length} plugins, loading skills in background`, "system", ["system", "plugins"]);
3172
+ // Warm per-provider model caches in background (non-blocking)
3173
+ void getOrFetchAllProviders().catch((err) => {
3174
+ logger.warn("[api] Provider cache warm-up failed:", err);
3175
+ });
3176
+ // ── Intercept loggers so ALL agent/plugin/service logs appear in the UI ──
3177
+ // We patch both the global `logger` singleton from @elizaos/core (used by
3178
+ // eliza.ts, services, plugins, etc.) AND the runtime instance logger.
3179
+ // A marker prevents double-patching on hot-restart and avoids stacking
3180
+ // wrapper functions that would leak memory.
3181
+ const PATCHED_MARKER = "__elizaLogPatched";
3182
+ const LEVELS = ["debug", "info", "warn", "error"];
3183
+ /**
3184
+ * Patch a logger object so every log call also feeds into the UI log buffer.
3185
+ * Returns true if patching was performed, false if already patched.
3186
+ */
3187
+ const patchLogger = (target, defaultSource, defaultTags) => {
3188
+ const patchedTarget = target;
3189
+ if (patchedTarget[PATCHED_MARKER]) {
3190
+ return false;
3191
+ }
3192
+ for (const lvl of LEVELS) {
3193
+ const original = target[lvl].bind(target);
3194
+ // pino / adze signature: logger.info(obj, msg) or logger.info(msg)
3195
+ const patched = (...args) => {
3196
+ let msg = "";
3197
+ let source = defaultSource;
3198
+ let tags = [...defaultTags];
3199
+ if (typeof args[0] === "string") {
3200
+ msg = args[0];
3201
+ }
3202
+ else if (args[0] && typeof args[0] === "object") {
3203
+ const obj = args[0];
3204
+ if (typeof obj.src === "string")
3205
+ source = obj.src;
3206
+ // Extract tags from structured log objects
3207
+ if (Array.isArray(obj.tags)) {
3208
+ tags = [...tags, ...obj.tags];
3209
+ }
3210
+ msg = typeof args[1] === "string" ? args[1] : JSON.stringify(obj);
3211
+ }
3212
+ // Auto-extract source from [bracket] prefixes (e.g. "[eliza] ...")
3213
+ const bracketMatch = /^\[([^\]]+)\]\s*/.exec(msg);
3214
+ if (bracketMatch && source === defaultSource) {
3215
+ source = bracketMatch[1];
3216
+ }
3217
+ // Auto-tag based on source context
3218
+ if (source !== defaultSource && !tags.includes(source)) {
3219
+ tags.push(source);
3220
+ }
3221
+ if (msg)
3222
+ addLog(lvl, msg, source, tags);
3223
+ return original(...args);
3224
+ };
3225
+ target[lvl] = patched;
3226
+ }
3227
+ patchedTarget[PATCHED_MARKER] = true;
3228
+ return true;
3229
+ };
3230
+ // 1) Patch the global @elizaos/core logger — this captures ALL log calls
3231
+ // from eliza.ts, services, plugins, cloud, hooks, etc.
3232
+ if (patchLogger(logger, "agent", ["agent"])) {
3233
+ addLog("info", "Global logger connected — all agent logs will stream to the UI", "system", ["system", "agent"]);
3234
+ }
3235
+ // 2) Patch the runtime instance logger (if it's a different object)
3236
+ // This catches logs from runtime internals that use their own logger child.
3237
+ if (opts?.runtime?.logger && opts.runtime.logger !== logger) {
3238
+ if (patchLogger(opts.runtime.logger, "runtime", ["agent", "runtime"])) {
3239
+ addLog("info", "Runtime logger connected — runtime logs will stream to the UI", "system", ["system", "agent"]);
3240
+ }
3241
+ }
3242
+ // Store the restart callback on the state so the route handler can access it.
3243
+ const onRestart = opts?.onRestart ?? null;
3244
+ console.log(`[eliza-api] Creating http server (${Date.now() - apiStartTime}ms)`);
3245
+ const server = http.createServer(async (req, res) => {
3246
+ try {
3247
+ await handleRequest(req, res, state, {
3248
+ onRestart,
3249
+ onRuntimeSwapped: () => {
3250
+ bindRuntimeStreams(state.runtime);
3251
+ void wireCoordinatorBridgesWhenReady(state, {
3252
+ wireChatBridge: wireCodingAgentChatBridge,
3253
+ wireWsBridge: wireCodingAgentWsBridge,
3254
+ wireEventRouting: wireCoordinatorEventRouting,
3255
+ wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
3256
+ context: "restart",
3257
+ logger,
3258
+ });
3259
+ },
3260
+ });
3261
+ }
3262
+ catch (err) {
3263
+ const msg = err instanceof Error ? err.message : "internal error";
3264
+ addLog("error", msg, "api", ["server", "api"]);
3265
+ error(res, msg, 500);
3266
+ }
3267
+ });
3268
+ console.log(`[eliza-api] Server created (${Date.now() - apiStartTime}ms)`);
3269
+ const broadcastWs = (payload) => {
3270
+ const message = JSON.stringify(payload);
3271
+ for (const client of wsClients) {
3272
+ if (client.readyState === 1) {
3273
+ try {
3274
+ client.send(message);
3275
+ }
3276
+ catch (err) {
3277
+ logger.error(`[eliza-api] WebSocket broadcast error: ${err instanceof Error ? err.message : err}`);
3278
+ }
3279
+ }
3280
+ }
3281
+ };
3282
+ const pushEvent = (event) => {
3283
+ const envelope = {
3284
+ ...event,
3285
+ eventId: `evt-${state.nextEventId}`,
3286
+ version: 1,
3287
+ };
3288
+ state.nextEventId += 1;
3289
+ state.eventBuffer.push(envelope);
3290
+ if (state.eventBuffer.length > 1500) {
3291
+ state.eventBuffer.splice(0, state.eventBuffer.length - 1500);
3292
+ }
3293
+ broadcastWs(envelope);
3294
+ };
3295
+ let detachRuntimeStreams = null;
3296
+ let detachTrainingStream = null;
3297
+ const bindRuntimeStreams = (runtime) => {
3298
+ if (detachRuntimeStreams) {
3299
+ detachRuntimeStreams();
3300
+ detachRuntimeStreams = null;
3301
+ }
3302
+ const svc = getAgentEventSvc(runtime);
3303
+ if (!svc) {
3304
+ if (runtime) {
3305
+ logger.warn("[eliza-api] AGENT_EVENT service not found on runtime — event streaming will be unavailable");
3306
+ }
3307
+ return;
3308
+ }
3309
+ const unsubAgentEvents = svc.subscribe((event) => {
3310
+ pushEvent({
3311
+ type: "agent_event",
3312
+ ts: event.ts,
3313
+ runId: event.runId,
3314
+ seq: event.seq,
3315
+ stream: event.stream,
3316
+ sessionKey: event.sessionKey,
3317
+ agentId: event.agentId,
3318
+ roomId: event.roomId,
3319
+ payload: event.data,
3320
+ });
3321
+ void maybeRouteAutonomyEventToConversation(state, event).catch((err) => {
3322
+ logger.warn(`[autonomy-route] Failed to route proactive event: ${err instanceof Error ? err.message : String(err)}`);
3323
+ });
3324
+ });
3325
+ const unsubHeartbeat = svc.subscribeHeartbeat((event) => {
3326
+ pushEvent({
3327
+ type: "heartbeat_event",
3328
+ ts: event.ts,
3329
+ payload: event,
3330
+ });
3331
+ });
3332
+ detachRuntimeStreams = () => {
3333
+ unsubAgentEvents();
3334
+ unsubHeartbeat();
3335
+ };
3336
+ };
3337
+ const bindTrainingStream = () => {
3338
+ if (detachTrainingStream) {
3339
+ detachTrainingStream();
3340
+ detachTrainingStream = null;
3341
+ }
3342
+ if (!state.trainingService)
3343
+ return;
3344
+ detachTrainingStream = state.trainingService.subscribe((event) => {
3345
+ const payload = typeof event === "object" && event !== null ? event : { value: event };
3346
+ pushEvent({
3347
+ type: "training_event",
3348
+ ts: Date.now(),
3349
+ payload,
3350
+ });
3351
+ });
3352
+ };
3353
+ // ── Deferred startup work (non-blocking) ────────────────────────────────
3354
+ // Keep API startup fast: listen first, then warm optional subsystems.
3355
+ const startDeferredStartupWork = () => {
3356
+ void (async () => {
3357
+ try {
3358
+ const discoveredSkills = await discoverSkills(workspaceDir, state.config, state.runtime);
3359
+ state.skills = discoveredSkills;
3360
+ addLog("info", `Discovered ${discoveredSkills.length} skills`, "system", ["system", "plugins"]);
3361
+ }
3362
+ catch (err) {
3363
+ logger.warn(`[eliza-api] Skill discovery failed during startup: ${err instanceof Error ? err.message : String(err)}`);
3364
+ }
3365
+ })();
3366
+ void (async () => {
3367
+ const trainingService = state.trainingService;
3368
+ if (!trainingService)
3369
+ return;
3370
+ try {
3371
+ await trainingService.initialize();
3372
+ bindTrainingStream();
3373
+ addLog("info", "Training service initialised", "system", [
3374
+ "system",
3375
+ "training",
3376
+ ]);
3377
+ }
3378
+ catch (err) {
3379
+ logger.error(`[eliza-api] Training service init failed: ${err instanceof Error ? err.message : String(err)}`);
3380
+ }
3381
+ })();
3382
+ void (async () => {
3383
+ initializeOGCodeInState();
3384
+ // Get EVM private key from runtime secrets (preferred) or config.env (fallback)
3385
+ const runtime = state.runtime;
3386
+ const evmKey = runtime?.getSetting?.("EVM_PRIVATE_KEY") ??
3387
+ state.config.env
3388
+ ?.EVM_PRIVATE_KEY;
3389
+ const registryConfig = state.config.registry;
3390
+ if (!evmKey ||
3391
+ !registryConfig?.registryAddress ||
3392
+ !registryConfig.mainnetRpc) {
3393
+ return;
3394
+ }
3395
+ try {
3396
+ const txService = new TxService(registryConfig.mainnetRpc, evmKey);
3397
+ state.registryService = new RegistryService(txService, registryConfig.registryAddress);
3398
+ if (registryConfig.collectionAddress) {
3399
+ const dropEnabled = state.config.features?.dropEnabled === true;
3400
+ state.dropService = new DropService(txService, registryConfig.collectionAddress, dropEnabled);
3401
+ }
3402
+ addLog("info", `ERC-8004 registry service initialised (${registryConfig.registryAddress})`, "system", ["system"]);
3403
+ }
3404
+ catch (err) {
3405
+ const msg = err instanceof Error ? err.message : String(err);
3406
+ addLog("warn", `ERC-8004 registry service disabled: ${msg}`, "system", [
3407
+ "system",
3408
+ ]);
3409
+ logger.warn({ err }, "Failed to initialize ERC-8004 registry service");
3410
+ }
3411
+ })();
3412
+ // ── Connector health monitoring ──────────────────────────────────────────
3413
+ if (state.runtime && state.config.connectors) {
3414
+ state.connectorHealthMonitor = new ConnectorHealthMonitor({
3415
+ runtime: state.runtime,
3416
+ config: state.config,
3417
+ broadcastWs,
3418
+ });
3419
+ state.connectorHealthMonitor.start();
3420
+ }
3421
+ // ── Dynamic streaming + connector route loading ────────────────────────
3422
+ // Always register generic stream routes. If a streaming destination is
3423
+ // configured, inject it so /api/stream/live can fetch credentials.
3424
+ void (async () => {
3425
+ try {
3426
+ const { handleStreamRoute } = await import("./stream-routes.js");
3427
+ // Screen capture manager is injected by the desktop host via globalThis
3428
+ const screenCapture = globalThis
3429
+ .__elizaScreenCapture;
3430
+ // Build destination registry — all configured destinations
3431
+ const _connectors = state.config.connectors ?? {};
3432
+ const streaming = state.config.streaming;
3433
+ const destinations = new Map();
3434
+ // Custom RTMP
3435
+ if (isStreamingDestinationConfigured("customRtmp", streaming?.customRtmp)) {
3436
+ try {
3437
+ const { createCustomRtmpDestination } = await import("../plugins/custom-rtmp/index.js");
3438
+ destinations.set("custom-rtmp", createCustomRtmpDestination(streaming?.customRtmp));
3439
+ }
3440
+ catch (err) {
3441
+ logger.warn(`[eliza-api] Failed to load custom-rtmp destination: ${err instanceof Error ? err.message : String(err)}`);
3442
+ }
3443
+ }
3444
+ // Twitch
3445
+ if (isStreamingDestinationConfigured("twitch", streaming?.twitch)) {
3446
+ try {
3447
+ const twitchMod = "@elizaos/plugin-twitch-streaming";
3448
+ const { createTwitchDestination } = await import(__rewriteRelativeImportExtension(twitchMod));
3449
+ destinations.set("twitch", createTwitchDestination(streaming?.twitch));
3450
+ }
3451
+ catch (err) {
3452
+ logger.warn(`[eliza-api] Failed to load twitch destination: ${err instanceof Error ? err.message : String(err)}`);
3453
+ }
3454
+ }
3455
+ // YouTube
3456
+ if (isStreamingDestinationConfigured("youtube", streaming?.youtube)) {
3457
+ try {
3458
+ const youtubeMod = "@elizaos/plugin-youtube-streaming";
3459
+ const { createYoutubeDestination } = await import(__rewriteRelativeImportExtension(youtubeMod));
3460
+ destinations.set("youtube", createYoutubeDestination(streaming?.youtube));
3461
+ }
3462
+ catch (err) {
3463
+ logger.warn(`[eliza-api] Failed to load youtube destination: ${err instanceof Error ? err.message : String(err)}`);
3464
+ }
3465
+ }
3466
+ // pump.fun
3467
+ if (isStreamingDestinationConfigured("pumpfun", streaming?.pumpfun)) {
3468
+ try {
3469
+ const pumpfunMod = "@elizaos/plugin-pumpfun-streaming";
3470
+ const { createPumpfunDestination } = await import(__rewriteRelativeImportExtension(pumpfunMod));
3471
+ destinations.set("pumpfun", createPumpfunDestination(streaming?.pumpfun));
3472
+ }
3473
+ catch (err) {
3474
+ logger.warn(`[eliza-api] Failed to load pumpfun destination: ${err instanceof Error ? err.message : String(err)}`);
3475
+ }
3476
+ }
3477
+ // X (Twitter)
3478
+ if (isStreamingDestinationConfigured("x", streaming?.x)) {
3479
+ try {
3480
+ const xMod = "@elizaos/plugin-x-streaming";
3481
+ const { createXStreamDestination } = await import(__rewriteRelativeImportExtension(xMod));
3482
+ destinations.set("x", createXStreamDestination(streaming?.x));
3483
+ }
3484
+ catch (err) {
3485
+ logger.warn(`[eliza-api] Failed to load x destination: ${err instanceof Error ? err.message : String(err)}`);
3486
+ }
3487
+ }
3488
+ // Active destination: config preference → first available
3489
+ const activeDestinationId = streaming?.activeDestination ??
3490
+ (destinations.size > 0
3491
+ ? destinations.keys().next().value
3492
+ : undefined);
3493
+ const streamState = {
3494
+ streamManager,
3495
+ port,
3496
+ screenCapture,
3497
+ captureUrl: undefined,
3498
+ destinations,
3499
+ activeDestinationId,
3500
+ activeStreamSource: { type: "stream-tab" },
3501
+ mirrorStreamAvatarToElizaConfig: (avatarIndex) => {
3502
+ try {
3503
+ if (!Number.isFinite(avatarIndex)) {
3504
+ return;
3505
+ }
3506
+ const diskCfg = loadElizaConfig();
3507
+ const lang = state.config.ui?.language ?? diskCfg.ui?.language;
3508
+ const preset = resolveStylePresetByAvatarIndex(avatarIndex, lang);
3509
+ const nextUi = {
3510
+ ...(state.config.ui ?? {}),
3511
+ avatarIndex,
3512
+ ...(preset?.id ? { presetId: preset.id } : {}),
3513
+ };
3514
+ state.config = {
3515
+ ...state.config,
3516
+ ui: nextUi,
3517
+ };
3518
+ // Merge disk + live server config so we never persist a minimal
3519
+ // snapshot (e.g. ENOENT default) and clobber eliza.json during
3520
+ // onboarding while state.config still holds the full boot payload.
3521
+ const toSave = {
3522
+ ...diskCfg,
3523
+ ...state.config,
3524
+ ui: {
3525
+ ...(diskCfg.ui ?? {}),
3526
+ ...(state.config.ui ?? {}),
3527
+ ...nextUi,
3528
+ },
3529
+ };
3530
+ saveElizaConfig(toSave);
3531
+ state.config = {
3532
+ ...state.config,
3533
+ ui: toSave.ui,
3534
+ };
3535
+ }
3536
+ catch (err) {
3537
+ logger.warn(`[eliza-api] mirrorStreamAvatarToElizaConfig failed: ${err instanceof Error ? err.message : String(err)}`);
3538
+ }
3539
+ },
3540
+ get config() {
3541
+ const cfg = state.config;
3542
+ const msgs = cfg?.messages;
3543
+ return msgs
3544
+ ? {
3545
+ messages: {
3546
+ tts: msgs.tts,
3547
+ },
3548
+ }
3549
+ : undefined;
3550
+ },
3551
+ };
3552
+ state.connectorRouteHandlers.push((req, res, pathname, method) => handleStreamRoute(req, res, pathname, method, streamState));
3553
+ const destNames = Array.from(destinations.values())
3554
+ .map((d) => d.name)
3555
+ .join(", ");
3556
+ const destLabel = destinations.size > 0
3557
+ ? `destinations: ${destNames}`
3558
+ : "no destinations";
3559
+ addLog("info", `Stream routes registered (${destLabel})`, "system", [
3560
+ "system",
3561
+ "streaming",
3562
+ ]);
3563
+ }
3564
+ catch (err) {
3565
+ logger.warn(`[eliza-api] Failed to load stream routes: ${err instanceof Error ? err.message : String(err)}`);
3566
+ }
3567
+ })();
3568
+ };
3569
+ // ── WebSocket Server ─────────────────────────────────────────────────────
3570
+ const wss = new WebSocketServer({ noServer: true, maxPayload: 64 * 1024 });
3571
+ const wsClients = new Set();
3572
+ const wsClientIds = new WeakMap();
3573
+ /** Per-WS-client PTY output subscriptions: sessionId → unsubscribe */
3574
+ const wsClientPtySubscriptions = new WeakMap();
3575
+ bindRuntimeStreams(opts?.runtime ?? null);
3576
+ bindTrainingStream();
3577
+ // Wire coding-agent bridges at initial boot (event-driven via getServiceLoadPromise)
3578
+ if (opts?.runtime) {
3579
+ void wireCoordinatorBridgesWhenReady(state, {
3580
+ wireChatBridge: wireCodingAgentChatBridge,
3581
+ wireWsBridge: wireCodingAgentWsBridge,
3582
+ wireEventRouting: wireCoordinatorEventRouting,
3583
+ wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
3584
+ context: "boot",
3585
+ logger,
3586
+ });
3587
+ }
3588
+ // Handle upgrade requests for WebSocket
3589
+ server.on("upgrade", (request, socket, head) => {
3590
+ try {
3591
+ const wsUrl = new URL(request.url ?? "/", `http://${request.headers.host ?? "localhost"}`);
3592
+ const rejection = resolveWebSocketUpgradeRejection(request, wsUrl);
3593
+ if (rejection) {
3594
+ rejectWebSocketUpgrade(socket, rejection.status, rejection.reason);
3595
+ return;
3596
+ }
3597
+ wss.handleUpgrade(request, socket, head, (ws) => {
3598
+ wss.emit("connection", ws, request);
3599
+ });
3600
+ }
3601
+ catch (err) {
3602
+ logger.error(`[eliza-api] WebSocket upgrade error: ${err instanceof Error ? err.message : err}`);
3603
+ rejectWebSocketUpgrade(socket, 404, "Not found");
3604
+ }
3605
+ });
3606
+ // Handle WebSocket connections
3607
+ wss.on("connection", (ws, request) => {
3608
+ let wsUrl;
3609
+ try {
3610
+ wsUrl = new URL(request.url ?? "/", `http://${request.headers.host ?? "localhost"}`);
3611
+ const clientId = normalizeWsClientId(wsUrl.searchParams.get("clientId"));
3612
+ if (clientId)
3613
+ wsClientIds.set(ws, clientId);
3614
+ }
3615
+ catch {
3616
+ // Ignore malformed WS URL metadata; auth/path were already validated.
3617
+ wsUrl = new URL("ws://localhost/ws");
3618
+ }
3619
+ let isAuthenticated = isWebSocketAuthorized(request, wsUrl);
3620
+ const activateAuthenticatedConnection = () => {
3621
+ wsClients.add(ws);
3622
+ addLog("info", "WebSocket client connected", "websocket", [
3623
+ "server",
3624
+ "websocket",
3625
+ ]);
3626
+ try {
3627
+ ws.send(JSON.stringify({
3628
+ type: "status",
3629
+ state: state.agentState,
3630
+ agentName: state.agentName,
3631
+ model: state.model,
3632
+ startedAt: state.startedAt,
3633
+ startup: state.startup,
3634
+ pendingRestart: state.pendingRestartReasons.length > 0,
3635
+ pendingRestartReasons: state.pendingRestartReasons,
3636
+ }));
3637
+ const replay = state.eventBuffer.slice(-120);
3638
+ for (const event of replay) {
3639
+ ws.send(JSON.stringify(event));
3640
+ }
3641
+ }
3642
+ catch (err) {
3643
+ logger.error(`[eliza-api] WebSocket send error: ${err instanceof Error ? err.message : err}`);
3644
+ }
3645
+ };
3646
+ if (isAuthenticated) {
3647
+ activateAuthenticatedConnection();
3648
+ }
3649
+ ws.on("message", (data) => {
3650
+ try {
3651
+ const msg = JSON.parse(String(data));
3652
+ if (!isAuthenticated) {
3653
+ const expected = getConfiguredApiToken();
3654
+ if (expected &&
3655
+ msg.type === "auth" &&
3656
+ typeof msg.token === "string" &&
3657
+ tokenMatches(expected, msg.token.trim())) {
3658
+ isAuthenticated = true;
3659
+ ws.send(JSON.stringify({ type: "auth-ok" }));
3660
+ activateAuthenticatedConnection();
3661
+ }
3662
+ else {
3663
+ logger.warn("[eliza-api] WebSocket message rejected before auth");
3664
+ ws.close(1008, "Unauthorized");
3665
+ }
3666
+ return;
3667
+ }
3668
+ if (msg.type === "ping") {
3669
+ ws.send(JSON.stringify({ type: "pong" }));
3670
+ }
3671
+ else if (msg.type === "active-conversation") {
3672
+ state.activeConversationId =
3673
+ typeof msg.conversationId === "string" ? msg.conversationId : null;
3674
+ }
3675
+ else if (msg.type === "pty-subscribe" &&
3676
+ typeof msg.sessionId === "string") {
3677
+ const bridge = getPtyConsoleBridge(state);
3678
+ if (bridge) {
3679
+ let subs = wsClientPtySubscriptions.get(ws);
3680
+ if (!subs) {
3681
+ subs = new Map();
3682
+ wsClientPtySubscriptions.set(ws, subs);
3683
+ }
3684
+ // Don't double-subscribe
3685
+ if (!subs.has(msg.sessionId)) {
3686
+ const targetId = msg.sessionId;
3687
+ const listener = (evt) => {
3688
+ if (evt.sessionId !== targetId)
3689
+ return;
3690
+ if (ws.readyState === 1) {
3691
+ ws.send(JSON.stringify({
3692
+ type: "pty-output",
3693
+ sessionId: targetId,
3694
+ data: evt.data,
3695
+ }));
3696
+ }
3697
+ };
3698
+ bridge.on("session_output", listener);
3699
+ subs.set(targetId, () => bridge.off("session_output", listener));
3700
+ }
3701
+ }
3702
+ }
3703
+ else if (msg.type === "pty-unsubscribe" &&
3704
+ typeof msg.sessionId === "string") {
3705
+ const subs = wsClientPtySubscriptions.get(ws);
3706
+ const unsub = subs?.get(msg.sessionId);
3707
+ if (unsub) {
3708
+ unsub();
3709
+ subs?.delete(msg.sessionId);
3710
+ }
3711
+ }
3712
+ else if (msg.type === "pty-input" &&
3713
+ typeof msg.sessionId === "string" &&
3714
+ typeof msg.data === "string") {
3715
+ // Only allow input to sessions this client has subscribed to
3716
+ const subs = wsClientPtySubscriptions.get(ws);
3717
+ if (!subs?.has(msg.sessionId)) {
3718
+ logger.warn(`[eliza-api] pty-input rejected: client not subscribed to session ${msg.sessionId}`);
3719
+ }
3720
+ else if (msg.data.length > 4096) {
3721
+ logger.warn(`[eliza-api] pty-input rejected: payload too large (${msg.data.length} bytes) for session ${msg.sessionId}`);
3722
+ }
3723
+ else {
3724
+ const bridge = getPtyConsoleBridge(state);
3725
+ if (bridge) {
3726
+ logger.debug(`[eliza-api] pty-input: session=${msg.sessionId} len=${msg.data.length}`);
3727
+ bridge.writeRaw(msg.sessionId, msg.data);
3728
+ }
3729
+ }
3730
+ }
3731
+ else if (msg.type === "pty-resize" &&
3732
+ typeof msg.sessionId === "string") {
3733
+ // Only allow resize for sessions this client has subscribed to
3734
+ const subs = wsClientPtySubscriptions.get(ws);
3735
+ if (!subs?.has(msg.sessionId)) {
3736
+ logger.warn(`[eliza-api] pty-resize rejected: client not subscribed to session ${msg.sessionId}`);
3737
+ }
3738
+ else {
3739
+ const bridge = getPtyConsoleBridge(state);
3740
+ if (bridge &&
3741
+ typeof msg.cols === "number" &&
3742
+ typeof msg.rows === "number" &&
3743
+ Number.isFinite(msg.cols) &&
3744
+ Number.isFinite(msg.rows) &&
3745
+ Number.isInteger(msg.cols) &&
3746
+ Number.isInteger(msg.rows) &&
3747
+ msg.cols >= 1 &&
3748
+ msg.cols <= 500 &&
3749
+ msg.rows >= 1 &&
3750
+ msg.rows <= 500) {
3751
+ bridge.resize(msg.sessionId, msg.cols, msg.rows);
3752
+ }
3753
+ else {
3754
+ logger.warn(`[eliza-api] pty-resize rejected: invalid dimensions cols=${msg.cols} rows=${msg.rows}`);
3755
+ }
3756
+ }
3757
+ }
3758
+ }
3759
+ catch (err) {
3760
+ logger.error(`[eliza-api] WebSocket message error: ${err instanceof Error ? err.message : err}`);
3761
+ }
3762
+ });
3763
+ ws.on("close", () => {
3764
+ wsClients.delete(ws);
3765
+ // Clean up any PTY output subscriptions for this client
3766
+ const subs = wsClientPtySubscriptions.get(ws);
3767
+ if (subs) {
3768
+ for (const unsub of subs.values())
3769
+ unsub();
3770
+ subs.clear();
3771
+ }
3772
+ addLog("info", "WebSocket client disconnected", "websocket", [
3773
+ "server",
3774
+ "websocket",
3775
+ ]);
3776
+ });
3777
+ ws.on("error", (err) => {
3778
+ logger.error(`[eliza-api] WebSocket error: ${err instanceof Error ? err.message : err}`);
3779
+ wsClients.delete(ws);
3780
+ // Clean up PTY subscriptions on error too
3781
+ const subs = wsClientPtySubscriptions.get(ws);
3782
+ if (subs) {
3783
+ for (const unsub of subs.values())
3784
+ unsub();
3785
+ subs.clear();
3786
+ }
3787
+ });
3788
+ });
3789
+ // Broadcast status to all connected WebSocket clients (flattened — PR #36 fix)
3790
+ const broadcastStatus = () => {
3791
+ broadcastWs({
3792
+ type: "status",
3793
+ state: state.agentState,
3794
+ agentName: state.agentName,
3795
+ model: state.model,
3796
+ startedAt: state.startedAt,
3797
+ startup: state.startup,
3798
+ pendingRestart: state.pendingRestartReasons.length > 0,
3799
+ pendingRestartReasons: state.pendingRestartReasons,
3800
+ });
3801
+ };
3802
+ // Make broadcastStatus accessible to route handlers via state
3803
+ state.broadcastStatus = broadcastStatus;
3804
+ // Generic broadcast — sends an arbitrary JSON payload to all WS clients.
3805
+ state.broadcastWs = (data) => {
3806
+ const message = JSON.stringify(data);
3807
+ for (const client of wsClients) {
3808
+ if (client.readyState === 1) {
3809
+ try {
3810
+ client.send(message);
3811
+ }
3812
+ catch (err) {
3813
+ logger.error(`[eliza-api] WebSocket broadcast error: ${err instanceof Error ? err.message : err}`);
3814
+ }
3815
+ }
3816
+ }
3817
+ };
3818
+ state.broadcastWsToClientId = (clientId, data) => {
3819
+ const message = JSON.stringify(data);
3820
+ let delivered = 0;
3821
+ for (const client of wsClients) {
3822
+ if (client.readyState !== 1)
3823
+ continue;
3824
+ if (wsClientIds.get(client) !== clientId)
3825
+ continue;
3826
+ try {
3827
+ client.send(message);
3828
+ delivered += 1;
3829
+ }
3830
+ catch (err) {
3831
+ logger.error(`[eliza-api] WebSocket targeted send error: ${err instanceof Error ? err.message : err}`);
3832
+ }
3833
+ }
3834
+ return delivered;
3835
+ };
3836
+ // Wire up ConnectorSetupService broadcastWs so connector plugins
3837
+ // (Signal, WhatsApp) can broadcast pairing events via the service.
3838
+ if (state.runtime) {
3839
+ try {
3840
+ const setupSvc = state.runtime.getService("connector-setup");
3841
+ setupSvc?.setBroadcastWs?.(state.broadcastWs);
3842
+ }
3843
+ catch {
3844
+ // non-fatal — service may not be registered yet
3845
+ }
3846
+ }
3847
+ // Broadcast status every 5 seconds
3848
+ const statusInterval = setInterval(broadcastStatus, 5000);
3849
+ /**
3850
+ * Restore the in-memory conversation list from the database.
3851
+ * Web-chat rooms live in a deterministic world; we scan it for rooms
3852
+ * whose channelId starts with "web-conv-" and reconstruct the metadata.
3853
+ */
3854
+ const restoreConversationsFromDb = async (rt) => {
3855
+ try {
3856
+ const agentName = rt.character.name ?? "Eliza";
3857
+ const worldId = stringToUuid(`${agentName}-web-chat-world`);
3858
+ const rooms = await rt.getRoomsByWorld(worldId);
3859
+ if (!rooms?.length)
3860
+ return;
3861
+ let restored = 0;
3862
+ for (const room of rooms) {
3863
+ // channelId is "web-conv-{uuid}" — extract the conversation id
3864
+ const channelId = typeof room.channelId === "string" ? room.channelId : "";
3865
+ if (!channelId.startsWith("web-conv-"))
3866
+ continue;
3867
+ const convId = channelId.replace("web-conv-", "");
3868
+ if (!convId || state.conversations.has(convId))
3869
+ continue;
3870
+ if (state.deletedConversationIds.has(convId))
3871
+ continue;
3872
+ // Peek at the latest message to get a timestamp
3873
+ let updatedAt = new Date().toISOString();
3874
+ try {
3875
+ const msgs = await rt.getMemories({
3876
+ roomId: room.id,
3877
+ tableName: "messages",
3878
+ limit: 1,
3879
+ });
3880
+ if (msgs.length > 0 && msgs[0].createdAt) {
3881
+ updatedAt = new Date(msgs[0].createdAt).toISOString();
3882
+ }
3883
+ }
3884
+ catch {
3885
+ // non-fatal — use current time
3886
+ }
3887
+ const conversationMetadata = extractConversationMetadataFromRoom(room, convId);
3888
+ state.conversations.set(convId, {
3889
+ id: convId,
3890
+ title: room.name || "Chat",
3891
+ roomId: room.id,
3892
+ ...(conversationMetadata ? { metadata: conversationMetadata } : {}),
3893
+ createdAt: updatedAt,
3894
+ updatedAt,
3895
+ });
3896
+ restored++;
3897
+ }
3898
+ if (restored > 0) {
3899
+ addLog("info", `Restored ${restored} conversation(s) from database`, "system", ["system"]);
3900
+ }
3901
+ }
3902
+ catch (err) {
3903
+ logger.warn(`[eliza-api] Failed to restore conversations from DB: ${err instanceof Error ? err.message : err}`);
3904
+ }
3905
+ };
3906
+ const beginConversationRestore = (rt) => {
3907
+ const restorePromise = restoreConversationsFromDb(rt).finally(() => {
3908
+ if (state.conversationRestorePromise === restorePromise) {
3909
+ state.conversationRestorePromise = null;
3910
+ }
3911
+ });
3912
+ state.conversationRestorePromise = restorePromise;
3913
+ return restorePromise;
3914
+ };
3915
+ /**
3916
+ * Load the agent's DB-persisted character data and overlay onto the
3917
+ * in-memory runtime.character. This ensures Character Editor edits
3918
+ * survive server restarts without depending on eliza.json persistence.
3919
+ */
3920
+ const overlayDbCharacter = async (rt, st) => {
3921
+ try {
3922
+ const dbAgent = await rt.getAgent(rt.agentId);
3923
+ const agentRecord = dbAgent && typeof dbAgent === "object" && !Array.isArray(dbAgent)
3924
+ ? Object.fromEntries(Object.entries(dbAgent))
3925
+ : null;
3926
+ const saved = agentRecord?.character;
3927
+ if (!saved || typeof saved !== "object")
3928
+ return;
3929
+ const c = rt.character;
3930
+ // Only overlay fields that were explicitly saved (non-empty)
3931
+ if (typeof saved.name === "string" && saved.name)
3932
+ c.name = saved.name;
3933
+ if (Array.isArray(saved.bio) && saved.bio.length > 0) {
3934
+ c.bio = saved.bio;
3935
+ }
3936
+ if (typeof saved.system === "string" && saved.system) {
3937
+ c.system = saved.system;
3938
+ }
3939
+ if (Array.isArray(saved.adjectives)) {
3940
+ c.adjectives = saved.adjectives;
3941
+ }
3942
+ if (Array.isArray(saved.topics)) {
3943
+ c.topics = saved.topics;
3944
+ }
3945
+ if (saved.style && typeof saved.style === "object") {
3946
+ c.style = saved.style;
3947
+ }
3948
+ if (Array.isArray(saved.messageExamples)) {
3949
+ c.messageExamples = saved.messageExamples;
3950
+ }
3951
+ if (Array.isArray(saved.postExamples) && saved.postExamples.length > 0) {
3952
+ c.postExamples = saved.postExamples;
3953
+ }
3954
+ // Update agent name on state
3955
+ st.agentName = c.name ?? st.agentName;
3956
+ logger.info(`[character-db] Overlaid DB-persisted character "${c.name}" onto runtime`);
3957
+ }
3958
+ catch (err) {
3959
+ logger.warn(`[character-db] Failed to load character from DB: ${err instanceof Error ? err.message : err}`);
3960
+ }
3961
+ };
3962
+ // Restore conversations from DB at initial boot (if runtime was passed in)
3963
+ if (opts?.runtime) {
3964
+ void beginConversationRestore(opts.runtime).catch((err) => {
3965
+ logger.warn("[api] Conversation restore failed:", err);
3966
+ });
3967
+ void overlayDbCharacter(opts.runtime, state).catch((err) => {
3968
+ logger.warn("[api] Character overlay restore failed:", err);
3969
+ });
3970
+ registerClientChatSendHandler(opts.runtime, state);
3971
+ }
3972
+ /** Hot-swap the runtime reference (used after an in-process restart). */
3973
+ const updateRuntime = (rt) => {
3974
+ state.runtime = rt;
3975
+ state.chatConnectionReady = null;
3976
+ state.chatConnectionPromise = null;
3977
+ bindRuntimeStreams(rt);
3978
+ // AppManager doesn't need a runtime reference
3979
+ state.agentState = "running";
3980
+ state.agentName =
3981
+ rt.character.name ?? resolveDefaultAgentName(state.config);
3982
+ state.model = detectRuntimeModel(rt, state.config);
3983
+ state.startedAt = Date.now();
3984
+ state.startup = {
3985
+ phase: "running",
3986
+ attempt: 0,
3987
+ };
3988
+ addLog("info", `Runtime restarted — agent: ${state.agentName}`, "system", [
3989
+ "system",
3990
+ "agent",
3991
+ ]);
3992
+ // Restore conversations from DB so they survive restarts
3993
+ void beginConversationRestore(rt).catch((err) => {
3994
+ logger.warn("[api] Conversation restore failed on restart:", err);
3995
+ });
3996
+ // Overlay DB-persisted character data (from Character Editor saves)
3997
+ void overlayDbCharacter(rt, state).catch((err) => {
3998
+ logger.warn("[api] Character overlay restore failed on restart:", err);
3999
+ });
4000
+ // Broadcast status update immediately after restart
4001
+ broadcastStatus();
4002
+ // Re-register client_chat send handler on the new runtime
4003
+ registerClientChatSendHandler(rt, state);
4004
+ // Wire coding-agent bridges (event-driven via getServiceLoadPromise)
4005
+ void wireCoordinatorBridgesWhenReady(state, {
4006
+ wireChatBridge: wireCodingAgentChatBridge,
4007
+ wireWsBridge: wireCodingAgentWsBridge,
4008
+ wireEventRouting: wireCoordinatorEventRouting,
4009
+ wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
4010
+ context: "restart",
4011
+ logger,
4012
+ });
4013
+ };
4014
+ const updateStartup = (update) => {
4015
+ const { state: nextState, ...startupUpdate } = update;
4016
+ state.startup = {
4017
+ ...state.startup,
4018
+ ...startupUpdate,
4019
+ };
4020
+ if (nextState) {
4021
+ state.agentState = nextState;
4022
+ if (nextState === "error") {
4023
+ state.startedAt = undefined;
4024
+ }
4025
+ else if ((nextState === "starting" || nextState === "running") &&
4026
+ !state.startedAt) {
4027
+ state.startedAt = Date.now();
4028
+ }
4029
+ }
4030
+ broadcastStatus();
4031
+ };
4032
+ console.log(`[eliza-api] Calling server.listen (${Date.now() - apiStartTime}ms)`);
4033
+ return new Promise((resolve, reject) => {
4034
+ let currentPort = port;
4035
+ server.on("error", (err) => {
4036
+ if (err.code === "EADDRINUSE") {
4037
+ console.warn(`[eliza-api] Port ${currentPort} is already in use. Checking fallback...`);
4038
+ if (currentPort !== 0) {
4039
+ console.warn(`[eliza-api] Retrying with dynamic port (0)...`);
4040
+ currentPort = 0;
4041
+ server.listen(0, host);
4042
+ return;
4043
+ }
4044
+ }
4045
+ else {
4046
+ console.error(`[eliza-api] Server error: ${err.message} (code: ${err.code})`);
4047
+ }
4048
+ reject(err);
4049
+ });
4050
+ server.listen(port, host, () => {
4051
+ console.log(`[eliza-api] server.listen callback fired (${Date.now() - apiStartTime}ms)`);
4052
+ const addr = server.address();
4053
+ const actualPort = typeof addr === "object" && addr ? addr.port : currentPort;
4054
+ const displayHost = typeof addr === "object" && addr ? addr.address : host;
4055
+ addLog("info", `API server listening on http://${displayHost}:${actualPort}`, "system", ["server", "system"]);
4056
+ // Log to both stdout (for agent.ts port detection) and the in-memory
4057
+ // logger. agent.ts watches stdout for "Listening on http://host:PORT"
4058
+ // to detect dynamic port reassignment when the default port is in use.
4059
+ console.log(`[eliza-api] Listening on http://${displayHost}:${actualPort}`);
4060
+ logger.info(`[eliza-api] Listening on http://${displayHost}:${actualPort}`);
4061
+ if (!opts?.skipDeferredStartupWork) {
4062
+ startDeferredStartupWork();
4063
+ }
4064
+ resolve({
4065
+ port: actualPort,
4066
+ close: async () => await new Promise((r) => {
4067
+ void (async () => {
4068
+ const closeAllConnections = server.closeAllConnections;
4069
+ const closeIdleConnections = server.closeIdleConnections;
4070
+ clearInterval(statusInterval);
4071
+ if (state.connectorHealthMonitor) {
4072
+ state.connectorHealthMonitor.stop();
4073
+ state.connectorHealthMonitor = null;
4074
+ }
4075
+ if (detachRuntimeStreams) {
4076
+ detachRuntimeStreams();
4077
+ detachRuntimeStreams = null;
4078
+ }
4079
+ if (detachTrainingStream) {
4080
+ detachTrainingStream();
4081
+ detachTrainingStream = null;
4082
+ }
4083
+ for (const ws of wsClients) {
4084
+ if (ws.readyState === 1 || ws.readyState === 0) {
4085
+ ws.terminate();
4086
+ }
4087
+ }
4088
+ wsClients.clear();
4089
+ // Clean up WhatsApp pairing sessions
4090
+ if (state.whatsappPairingSessions) {
4091
+ for (const s of state.whatsappPairingSessions.values()) {
4092
+ try {
4093
+ s.stop();
4094
+ }
4095
+ catch {
4096
+ /* non-fatal */
4097
+ }
4098
+ }
4099
+ state.whatsappPairingSessions.clear();
4100
+ }
4101
+ // Clean up Signal pairing sessions
4102
+ if (state.signalPairingSessions) {
4103
+ for (const s of state.signalPairingSessions.values()) {
4104
+ try {
4105
+ s.stop();
4106
+ }
4107
+ catch {
4108
+ /* non-fatal */
4109
+ }
4110
+ }
4111
+ state.signalPairingSessions.clear();
4112
+ }
4113
+ if (state.telegramAccountAuthSession) {
4114
+ try {
4115
+ await state.telegramAccountAuthSession.stop();
4116
+ }
4117
+ catch {
4118
+ /* non-fatal */
4119
+ }
4120
+ state.telegramAccountAuthSession = null;
4121
+ }
4122
+ wss.close();
4123
+ const closeTimeout = setTimeout(() => r(), 5_000);
4124
+ const resolved = { done: false };
4125
+ const finalize = () => {
4126
+ if (!resolved.done) {
4127
+ resolved.done = true;
4128
+ clearTimeout(closeTimeout);
4129
+ r();
4130
+ }
4131
+ };
4132
+ if (typeof closeAllConnections === "function") {
4133
+ try {
4134
+ closeAllConnections();
4135
+ }
4136
+ catch {
4137
+ // Bun/Node server internals vary by runtime; non-fatal on shutdown.
4138
+ }
4139
+ }
4140
+ if (typeof closeIdleConnections === "function") {
4141
+ try {
4142
+ closeIdleConnections();
4143
+ }
4144
+ catch {
4145
+ // Bun/Node server internals vary by runtime; non-fatal on shutdown.
4146
+ }
4147
+ }
4148
+ server.close(finalize);
4149
+ })();
4150
+ }),
4151
+ updateRuntime,
4152
+ updateStartup,
4153
+ });
4154
+ });
4155
+ });
4156
+ }