@elizaos/shared 2.0.0-beta.1 → 2.0.3-beta.3

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 (1101) hide show
  1. package/api/agent-api-types.d.ts +210 -0
  2. package/api/agent-api-types.d.ts.map +1 -0
  3. package/api/agent-api-types.js +11 -0
  4. package/api/agent-api-types.js.map +1 -0
  5. package/api/http-helpers.d.ts +3 -0
  6. package/api/http-helpers.d.ts.map +1 -0
  7. package/api/http-helpers.js +2 -0
  8. package/api/http-helpers.js.map +1 -0
  9. package/api/route-helpers.d.ts +2 -0
  10. package/api/route-helpers.d.ts.map +1 -0
  11. package/app-hero-art.d.ts.map +1 -0
  12. package/app-hero-art.js +344 -0
  13. package/app-hero-art.js.map +1 -0
  14. package/brand/index.d.ts +130 -0
  15. package/brand/index.d.ts.map +1 -0
  16. package/brand/index.js +126 -0
  17. package/brand/index.js.map +1 -0
  18. package/brand-classic/index.d.ts +158 -0
  19. package/brand-classic/index.d.ts.map +1 -0
  20. package/brand-classic/index.js +91 -0
  21. package/brand-classic/index.js.map +1 -0
  22. package/character-language.d.ts +16 -0
  23. package/character-language.d.ts.map +1 -0
  24. package/character-language.js +58 -0
  25. package/character-language.js.map +1 -0
  26. package/character-presets.characters.d.ts +22 -0
  27. package/character-presets.characters.d.ts.map +1 -0
  28. package/character-presets.characters.js +2617 -0
  29. package/character-presets.characters.js.map +1 -0
  30. package/character-presets.d.ts +42 -0
  31. package/character-presets.d.ts.map +1 -0
  32. package/character-presets.js +176 -0
  33. package/character-presets.js.map +1 -0
  34. package/character-presets.shared.d.ts +2 -0
  35. package/character-presets.shared.d.ts.map +1 -0
  36. package/character-presets.shared.js +8 -0
  37. package/character-presets.shared.js.map +1 -0
  38. package/checkout/index.d.ts +48 -0
  39. package/checkout/index.d.ts.map +1 -0
  40. package/checkout/index.js +59 -0
  41. package/checkout/index.js.map +1 -0
  42. package/cli/parse-duration.d.ts.map +1 -0
  43. package/cli/parse-duration.js +26 -0
  44. package/cli/parse-duration.js.map +1 -0
  45. package/config/allowed-hosts.js +44 -0
  46. package/config/allowed-hosts.js.map +1 -0
  47. package/config/api-key-prefix-hints.d.ts +24 -0
  48. package/config/api-key-prefix-hints.d.ts.map +1 -0
  49. package/config/api-key-prefix-hints.js +26 -0
  50. package/config/api-key-prefix-hints.js.map +1 -0
  51. package/config/app-config.d.ts +274 -0
  52. package/config/app-config.d.ts.map +1 -0
  53. package/config/app-config.js +64 -0
  54. package/config/app-config.js.map +1 -0
  55. package/config/app-manifest.d.ts.map +1 -0
  56. package/config/app-manifest.js +115 -0
  57. package/config/app-manifest.js.map +1 -0
  58. package/config/boot-config-store.d.ts +71 -0
  59. package/config/boot-config-store.d.ts.map +1 -0
  60. package/config/boot-config-store.js +77 -0
  61. package/config/boot-config-store.js.map +1 -0
  62. package/config/branding.d.ts +53 -0
  63. package/config/branding.d.ts.map +1 -0
  64. package/config/branding.js +23 -0
  65. package/config/branding.js.map +1 -0
  66. package/config/cloud-only.d.ts +8 -0
  67. package/config/cloud-only.d.ts.map +1 -0
  68. package/config/cloud-only.js +26 -0
  69. package/config/cloud-only.js.map +1 -0
  70. package/config/config-catalog.d.ts.map +1 -0
  71. package/config/config-catalog.js +719 -0
  72. package/config/config-catalog.js.map +1 -0
  73. package/config/config.js +23 -0
  74. package/config/config.js.map +1 -0
  75. package/config/distribution-profile.js +29 -0
  76. package/config/distribution-profile.js.map +1 -0
  77. package/config/env-vars.d.ts.map +1 -0
  78. package/config/index.d.ts +12 -0
  79. package/config/index.d.ts.map +1 -0
  80. package/config/index.js +15 -0
  81. package/config/index.js.map +1 -0
  82. package/config/plugin-auto-enable-engine.js +45 -0
  83. package/config/plugin-auto-enable-engine.js.map +1 -0
  84. package/config/plugin-manifest.d.ts.map +1 -0
  85. package/config/plugin-manifest.js +281 -0
  86. package/config/plugin-manifest.js.map +1 -0
  87. package/config/runtime-mode.d.ts.map +1 -0
  88. package/config/runtime-mode.js +107 -0
  89. package/config/runtime-mode.js.map +1 -0
  90. package/config/types.agent-defaults.d.ts +388 -0
  91. package/config/types.agent-defaults.d.ts.map +1 -0
  92. package/config/types.agents.d.ts +119 -0
  93. package/config/types.agents.d.ts.map +1 -0
  94. package/config/types.eliza.d.ts +689 -0
  95. package/config/types.eliza.d.ts.map +1 -0
  96. package/config/types.messages.d.ts +176 -0
  97. package/config/types.messages.d.ts.map +1 -0
  98. package/config/types.tools.d.ts +400 -0
  99. package/config/types.tools.d.ts.map +1 -0
  100. package/config/ui-spec.d.ts +164 -0
  101. package/config/ui-spec.d.ts.map +1 -0
  102. package/config/zod-schema.agent-runtime.d.ts +1087 -0
  103. package/config/zod-schema.core.d.ts +1048 -0
  104. package/connectors.d.ts +5 -0
  105. package/connectors.d.ts.map +1 -0
  106. package/connectors.js +73 -0
  107. package/connectors.js.map +1 -0
  108. package/contracts/agent-routes.d.ts +63 -0
  109. package/contracts/agent-routes.d.ts.map +1 -0
  110. package/contracts/agent-routes.js +55 -0
  111. package/contracts/agent-routes.js.map +1 -0
  112. package/contracts/app-permissions-routes.d.ts +148 -0
  113. package/contracts/app-permissions-routes.d.ts.map +1 -0
  114. package/contracts/app-permissions-routes.js +96 -0
  115. package/contracts/app-permissions-routes.js.map +1 -0
  116. package/contracts/app-permissions.d.ts +122 -0
  117. package/contracts/app-permissions.d.ts.map +1 -0
  118. package/contracts/app-permissions.js +163 -0
  119. package/contracts/app-permissions.js.map +1 -0
  120. package/contracts/apps-favorites-routes.d.ts +44 -0
  121. package/contracts/apps-favorites-routes.d.ts.map +1 -0
  122. package/contracts/apps-favorites-routes.js +48 -0
  123. package/contracts/apps-favorites-routes.js.map +1 -0
  124. package/contracts/apps-lifecycle-routes.d.ts +185 -0
  125. package/contracts/apps-lifecycle-routes.d.ts.map +1 -0
  126. package/contracts/apps-lifecycle-routes.js +204 -0
  127. package/contracts/apps-lifecycle-routes.js.map +1 -0
  128. package/contracts/apps-loading-routes.d.ts +64 -0
  129. package/contracts/apps-loading-routes.d.ts.map +1 -0
  130. package/contracts/apps-loading-routes.js +65 -0
  131. package/contracts/apps-loading-routes.js.map +1 -0
  132. package/contracts/apps-runs-routes.d.ts +33 -0
  133. package/contracts/apps-runs-routes.d.ts.map +1 -0
  134. package/contracts/apps-runs-routes.js +38 -0
  135. package/contracts/apps-runs-routes.js.map +1 -0
  136. package/contracts/apps.d.ts +1159 -0
  137. package/contracts/apps.d.ts.map +1 -0
  138. package/contracts/apps.js +400 -0
  139. package/contracts/apps.js.map +1 -0
  140. package/contracts/auth-routes.d.ts +23 -0
  141. package/contracts/auth-routes.d.ts.map +1 -0
  142. package/contracts/auth-routes.js +25 -0
  143. package/contracts/auth-routes.js.map +1 -0
  144. package/contracts/calendar.d.ts +181 -0
  145. package/contracts/calendar.d.ts.map +1 -0
  146. package/contracts/calendar.js +19 -0
  147. package/contracts/calendar.js.map +1 -0
  148. package/contracts/character-routes.d.ts +70 -0
  149. package/contracts/character-routes.d.ts.map +1 -0
  150. package/contracts/character-routes.js +49 -0
  151. package/contracts/character-routes.js.map +1 -0
  152. package/contracts/cloud-coding-containers.d.ts +432 -0
  153. package/contracts/cloud-coding-containers.d.ts.map +1 -0
  154. package/contracts/cloud-coding-containers.js +135 -0
  155. package/contracts/cloud-coding-containers.js.map +1 -0
  156. package/contracts/cloud-topology.js +72 -0
  157. package/contracts/cloud-topology.js.map +1 -0
  158. package/contracts/connector-routes.d.ts +39 -0
  159. package/contracts/connector-routes.d.ts.map +1 -0
  160. package/contracts/connector-routes.js +50 -0
  161. package/contracts/connector-routes.js.map +1 -0
  162. package/contracts/content-pack.d.ts +131 -0
  163. package/contracts/content-pack.d.ts.map +1 -0
  164. package/contracts/content-pack.js +103 -0
  165. package/contracts/conversation-routes.d.ts +191 -0
  166. package/contracts/conversation-routes.d.ts.map +1 -0
  167. package/contracts/conversation-routes.js +106 -0
  168. package/contracts/conversation-routes.js.map +1 -0
  169. package/contracts/diagnostics-routes.d.ts +33 -0
  170. package/contracts/diagnostics-routes.d.ts.map +1 -0
  171. package/contracts/diagnostics-routes.js +26 -0
  172. package/contracts/diagnostics-routes.js.map +1 -0
  173. package/contracts/first-run-options.d.ts +531 -0
  174. package/contracts/first-run-options.d.ts.map +1 -0
  175. package/contracts/first-run-options.js +1186 -0
  176. package/contracts/first-run-options.js.map +1 -0
  177. package/contracts/first-run-routes.d.ts +167 -0
  178. package/contracts/first-run-routes.d.ts.map +1 -0
  179. package/contracts/first-run-routes.js +115 -0
  180. package/contracts/first-run-routes.js.map +1 -0
  181. package/contracts/health.d.ts +30 -0
  182. package/contracts/health.d.ts.map +1 -0
  183. package/contracts/health.js +29 -0
  184. package/contracts/health.js.map +1 -0
  185. package/contracts/inbox-routes.d.ts +37 -0
  186. package/contracts/inbox-routes.d.ts.map +1 -0
  187. package/contracts/inbox-routes.js +44 -0
  188. package/contracts/inbox-routes.js.map +1 -0
  189. package/contracts/index.d.ts +42 -0
  190. package/contracts/index.d.ts.map +1 -0
  191. package/contracts/index.js +42 -0
  192. package/contracts/index.js.map +1 -0
  193. package/contracts/memory-routes.d.ts +27 -0
  194. package/contracts/memory-routes.d.ts.map +1 -0
  195. package/contracts/memory-routes.js +23 -0
  196. package/contracts/memory-routes.js.map +1 -0
  197. package/contracts/misc-routes.d.ts +192 -0
  198. package/contracts/misc-routes.d.ts.map +1 -0
  199. package/contracts/misc-routes.js +155 -0
  200. package/contracts/misc-routes.js.map +1 -0
  201. package/contracts/permissions-routes.d.ts +31 -0
  202. package/contracts/permissions-routes.d.ts.map +1 -0
  203. package/contracts/permissions-routes.js +34 -0
  204. package/contracts/permissions-routes.js.map +1 -0
  205. package/contracts/permissions.d.ts +109 -0
  206. package/contracts/permissions.d.ts.map +1 -0
  207. package/contracts/permissions.js +41 -0
  208. package/contracts/permissions.js.map +1 -0
  209. package/contracts/personal-assistant.d.ts +2931 -0
  210. package/contracts/personal-assistant.d.ts.map +1 -0
  211. package/contracts/personal-assistant.js +583 -0
  212. package/contracts/personal-assistant.js.map +1 -0
  213. package/contracts/plugin-routes.d.ts +105 -0
  214. package/contracts/plugin-routes.d.ts.map +1 -0
  215. package/contracts/plugin-routes.js +81 -0
  216. package/contracts/plugin-routes.js.map +1 -0
  217. package/contracts/relationships-routes.d.ts +23 -0
  218. package/contracts/relationships-routes.d.ts.map +1 -0
  219. package/contracts/relationships-routes.js +22 -0
  220. package/contracts/relationships-routes.js.map +1 -0
  221. package/contracts/service-routing.d.ts +49 -0
  222. package/contracts/service-routing.d.ts.map +1 -0
  223. package/contracts/service-routing.js +403 -0
  224. package/contracts/service-routing.js.map +1 -0
  225. package/contracts/skills-routes.d.ts +116 -0
  226. package/contracts/skills-routes.d.ts.map +1 -0
  227. package/contracts/skills-routes.js +115 -0
  228. package/contracts/skills-routes.js.map +1 -0
  229. package/contracts/subscription-routes.d.ts +47 -0
  230. package/contracts/subscription-routes.d.ts.map +1 -0
  231. package/contracts/subscription-routes.js +50 -0
  232. package/contracts/subscription-routes.js.map +1 -0
  233. package/contracts/tail-routes.d.ts +78 -0
  234. package/contracts/tail-routes.d.ts.map +1 -0
  235. package/contracts/tail-routes.js +63 -0
  236. package/contracts/tail-routes.js.map +1 -0
  237. package/contracts/theme.d.ts +134 -0
  238. package/contracts/theme.d.ts.map +1 -0
  239. package/contracts/theme.js +132 -0
  240. package/contracts/theme.js.map +1 -0
  241. package/contracts/update-status.d.ts +100 -0
  242. package/contracts/update-status.d.ts.map +1 -0
  243. package/contracts/update-status.js +45 -0
  244. package/contracts/update-status.js.map +1 -0
  245. package/contracts/wallet-routes.d.ts +82 -0
  246. package/contracts/wallet-routes.d.ts.map +1 -0
  247. package/contracts/wallet-routes.js +49 -0
  248. package/contracts/wallet-routes.js.map +1 -0
  249. package/contracts/wallet.d.ts +57 -0
  250. package/contracts/wallet.d.ts.map +1 -0
  251. package/contracts/wallet.js +200 -0
  252. package/contracts/wallet.js.map +1 -0
  253. package/contracts/workbench-routes.d.ts +231 -0
  254. package/contracts/workbench-routes.d.ts.map +1 -0
  255. package/contracts/workbench-routes.js +183 -0
  256. package/contracts/workbench-routes.js.map +1 -0
  257. package/db/drizzle-database.d.ts +13 -0
  258. package/db/drizzle-database.d.ts.map +1 -0
  259. package/db/drizzle-database.js +2 -0
  260. package/db/drizzle-database.js.map +1 -0
  261. package/dev-settings-banner-style.d.ts +14 -0
  262. package/dev-settings-banner-style.js +58 -0
  263. package/dev-settings-banner-style.js.map +1 -0
  264. package/dev-settings-figlet-heading.d.ts.map +1 -0
  265. package/dev-settings-figlet-heading.js +49 -0
  266. package/dev-settings-figlet-heading.js.map +1 -0
  267. package/elizacloud/base-url.d.ts +6 -0
  268. package/elizacloud/base-url.d.ts.map +1 -0
  269. package/elizacloud/base-url.js +65 -0
  270. package/elizacloud/base-url.js.map +1 -0
  271. package/elizacloud/cloud-provisioning.d.ts +9 -0
  272. package/elizacloud/cloud-provisioning.d.ts.map +1 -0
  273. package/elizacloud/cloud-provisioning.js +25 -0
  274. package/elizacloud/cloud-provisioning.js.map +1 -0
  275. package/elizacloud/cloud-secrets.d.ts +23 -0
  276. package/elizacloud/cloud-secrets.d.ts.map +1 -0
  277. package/elizacloud/cloud-secrets.js +51 -0
  278. package/elizacloud/cloud-secrets.js.map +1 -0
  279. package/elizacloud/index.d.ts +6 -0
  280. package/elizacloud/index.d.ts.map +1 -0
  281. package/elizacloud/index.js +6 -0
  282. package/elizacloud/index.js.map +1 -0
  283. package/elizacloud/is-cloud-reachable.d.ts +19 -0
  284. package/elizacloud/is-cloud-reachable.d.ts.map +1 -0
  285. package/elizacloud/is-cloud-reachable.js +44 -0
  286. package/elizacloud/is-cloud-reachable.js.map +1 -0
  287. package/elizacloud/server-cloud-tts.d.ts +21 -0
  288. package/elizacloud/server-cloud-tts.d.ts.map +1 -0
  289. package/elizacloud/server-cloud-tts.js +293 -0
  290. package/elizacloud/server-cloud-tts.js.map +1 -0
  291. package/email-classification/email-classifier.d.ts +57 -0
  292. package/email-classification/email-classifier.d.ts.map +1 -0
  293. package/email-classification/email-classifier.js +348 -0
  294. package/email-classification/email-classifier.js.map +1 -0
  295. package/email-classification/index.d.ts +12 -0
  296. package/email-classification/index.d.ts.map +1 -0
  297. package/email-classification/index.js +12 -0
  298. package/email-classification/index.js.map +1 -0
  299. package/email-classification/wrap-untrusted-email-content.d.ts +15 -0
  300. package/email-classification/wrap-untrusted-email-content.d.ts.map +1 -0
  301. package/email-classification/wrap-untrusted-email-content.js +24 -0
  302. package/email-classification/wrap-untrusted-email-content.js.map +1 -0
  303. package/env-utils.d.ts +11 -0
  304. package/env-utils.d.ts.map +1 -0
  305. package/env-utils.js +11 -0
  306. package/env-utils.js.map +1 -0
  307. package/events/index.d.ts +68 -0
  308. package/events/index.d.ts.map +1 -0
  309. package/events/index.js +53 -0
  310. package/events/index.js.map +1 -0
  311. package/events.d.ts +2 -0
  312. package/events.d.ts.map +1 -0
  313. package/events.js +2 -0
  314. package/events.js.map +1 -0
  315. package/format-error.d.ts +15 -0
  316. package/format-error.d.ts.map +1 -0
  317. package/format-error.js +17 -0
  318. package/format-error.js.map +1 -0
  319. package/hardware-catalog/index.d.ts +204 -0
  320. package/hardware-catalog/index.d.ts.map +1 -0
  321. package/hardware-catalog/index.js +174 -0
  322. package/hardware-catalog/index.js.map +1 -0
  323. package/i18n/generated/validation-keyword-data.d.ts +3054 -0
  324. package/i18n/generated/validation-keyword-data.d.ts.map +1 -0
  325. package/i18n/generated/validation-keyword-data.js +3058 -0
  326. package/i18n/generated/validation-keyword-data.js.map +1 -0
  327. package/i18n/keyword-matching.d.ts.map +1 -0
  328. package/i18n/keyword-matching.js +116 -0
  329. package/i18n/keyword-matching.js.map +1 -0
  330. package/index.d.ts +106 -0
  331. package/index.d.ts.map +1 -0
  332. package/index.js +139 -0
  333. package/index.js.map +1 -0
  334. package/knowledge-graph/entity-types.d.ts +135 -0
  335. package/knowledge-graph/entity-types.d.ts.map +1 -0
  336. package/knowledge-graph/entity-types.js +75 -0
  337. package/knowledge-graph/entity-types.js.map +1 -0
  338. package/knowledge-graph/index.d.ts +13 -0
  339. package/knowledge-graph/index.d.ts.map +1 -0
  340. package/knowledge-graph/index.js +13 -0
  341. package/knowledge-graph/index.js.map +1 -0
  342. package/knowledge-graph/merge.d.ts +76 -0
  343. package/knowledge-graph/merge.d.ts.map +1 -0
  344. package/knowledge-graph/merge.js +175 -0
  345. package/knowledge-graph/merge.js.map +1 -0
  346. package/knowledge-graph/relationship-types.d.ts +105 -0
  347. package/knowledge-graph/relationship-types.d.ts.map +1 -0
  348. package/knowledge-graph/relationship-types.js +114 -0
  349. package/knowledge-graph/relationship-types.js.map +1 -0
  350. package/lifeops-constants/index.d.ts +9 -0
  351. package/lifeops-constants/index.d.ts.map +1 -0
  352. package/lifeops-constants/index.js +9 -0
  353. package/lifeops-constants/index.js.map +1 -0
  354. package/lifeops-constants/service-constants.d.ts +79 -0
  355. package/lifeops-constants/service-constants.d.ts.map +1 -0
  356. package/lifeops-constants/service-constants.js +123 -0
  357. package/lifeops-constants/service-constants.js.map +1 -0
  358. package/lifeops-normalize/index.d.ts +12 -0
  359. package/lifeops-normalize/index.d.ts.map +1 -0
  360. package/lifeops-normalize/index.js +12 -0
  361. package/lifeops-normalize/index.js.map +1 -0
  362. package/lifeops-normalize/service-error.d.ts +14 -0
  363. package/lifeops-normalize/service-error.d.ts.map +1 -0
  364. package/lifeops-normalize/service-error.js +19 -0
  365. package/lifeops-normalize/service-error.js.map +1 -0
  366. package/lifeops-normalize/service-normalize.d.ts +38 -0
  367. package/lifeops-normalize/service-normalize.d.ts.map +1 -0
  368. package/lifeops-normalize/service-normalize.js +205 -0
  369. package/lifeops-normalize/service-normalize.js.map +1 -0
  370. package/lifeops-normalize/time-zone.d.ts +12 -0
  371. package/lifeops-normalize/time-zone.d.ts.map +1 -0
  372. package/lifeops-normalize/time-zone.js +29 -0
  373. package/lifeops-normalize/time-zone.js.map +1 -0
  374. package/local-inference/catalog.d.ts +122 -0
  375. package/local-inference/catalog.d.ts.map +1 -0
  376. package/local-inference/catalog.js +534 -0
  377. package/local-inference/catalog.js.map +1 -0
  378. package/local-inference/device-fit.d.ts +73 -0
  379. package/local-inference/device-fit.d.ts.map +1 -0
  380. package/local-inference/device-fit.js +155 -0
  381. package/local-inference/device-fit.js.map +1 -0
  382. package/local-inference/gpu-profiles.d.ts +110 -0
  383. package/local-inference/gpu-profiles.d.ts.map +1 -0
  384. package/local-inference/gpu-profiles.js +191 -0
  385. package/local-inference/gpu-profiles.js.map +1 -0
  386. package/local-inference/hf-proxy.d.ts +43 -0
  387. package/local-inference/hf-proxy.d.ts.map +1 -0
  388. package/local-inference/hf-proxy.js +50 -0
  389. package/local-inference/hf-proxy.js.map +1 -0
  390. package/local-inference/hub-auth.d.ts +26 -0
  391. package/local-inference/hub-auth.d.ts.map +1 -0
  392. package/local-inference/hub-auth.js +48 -0
  393. package/local-inference/hub-auth.js.map +1 -0
  394. package/local-inference/index.d.ts +26 -0
  395. package/local-inference/index.d.ts.map +1 -0
  396. package/local-inference/index.js +23 -0
  397. package/local-inference/index.js.map +1 -0
  398. package/local-inference/manifest-signature.d.ts +61 -0
  399. package/local-inference/manifest-signature.d.ts.map +1 -0
  400. package/local-inference/manifest-signature.js +129 -0
  401. package/local-inference/manifest-signature.js.map +1 -0
  402. package/local-inference/network-policy.d.ts +115 -0
  403. package/local-inference/network-policy.d.ts.map +1 -0
  404. package/local-inference/network-policy.js +154 -0
  405. package/local-inference/network-policy.js.map +1 -0
  406. package/local-inference/paths.d.ts +24 -0
  407. package/local-inference/paths.js +40 -0
  408. package/local-inference/providers-types.d.ts +56 -0
  409. package/local-inference/providers-types.d.ts.map +1 -0
  410. package/local-inference/providers-types.js +19 -0
  411. package/local-inference/providers-types.js.map +1 -0
  412. package/local-inference/routing-preferences.d.ts +42 -0
  413. package/local-inference/routing-preferences.d.ts.map +1 -0
  414. package/local-inference/routing-preferences.js +96 -0
  415. package/local-inference/routing-preferences.js.map +1 -0
  416. package/local-inference/runtime-class.d.ts +29 -0
  417. package/local-inference/runtime-class.d.ts.map +1 -0
  418. package/local-inference/runtime-class.js +30 -0
  419. package/local-inference/runtime-class.js.map +1 -0
  420. package/local-inference/throughput.d.ts +74 -0
  421. package/local-inference/throughput.d.ts.map +1 -0
  422. package/local-inference/throughput.js +84 -0
  423. package/local-inference/throughput.js.map +1 -0
  424. package/local-inference/types.d.ts +548 -0
  425. package/local-inference/types.d.ts.map +1 -0
  426. package/local-inference/types.js +22 -0
  427. package/local-inference/types.js.map +1 -0
  428. package/local-inference/voice-models.d.ts +156 -0
  429. package/local-inference/voice-models.d.ts.map +1 -0
  430. package/local-inference/voice-models.js +769 -0
  431. package/local-inference/voice-models.js.map +1 -0
  432. package/local-inference-gpu/gpu-overrides.d.ts +97 -0
  433. package/local-inference-gpu/gpu-overrides.d.ts.map +1 -0
  434. package/local-inference-gpu/gpu-overrides.js +76 -0
  435. package/local-inference-gpu/gpu-overrides.js.map +1 -0
  436. package/local-inference-gpu/gpu-profile-loader.d.ts +83 -0
  437. package/local-inference-gpu/gpu-profile-loader.d.ts.map +1 -0
  438. package/local-inference-gpu/gpu-profile-loader.js +196 -0
  439. package/local-inference-gpu/gpu-profile-loader.js.map +1 -0
  440. package/local-inference-gpu/gpu-profile-schema.d.ts +208 -0
  441. package/local-inference-gpu/gpu-profile-schema.d.ts.map +1 -0
  442. package/local-inference-gpu/gpu-profile-schema.js +123 -0
  443. package/local-inference-gpu/gpu-profile-schema.js.map +1 -0
  444. package/local-inference-gpu/gpu-tier-detect.d.ts +61 -0
  445. package/local-inference-gpu/gpu-tier-detect.d.ts.map +1 -0
  446. package/local-inference-gpu/gpu-tier-detect.js +93 -0
  447. package/local-inference-gpu/gpu-tier-detect.js.map +1 -0
  448. package/local-inference-gpu/gpu-tier-profiles.d.ts +110 -0
  449. package/local-inference-gpu/gpu-tier-profiles.d.ts.map +1 -0
  450. package/local-inference-gpu/gpu-tier-profiles.js +235 -0
  451. package/local-inference-gpu/gpu-tier-profiles.js.map +1 -0
  452. package/loopback-trust.d.ts +73 -0
  453. package/loopback-trust.d.ts.map +1 -0
  454. package/loopback-trust.js +241 -0
  455. package/loopback-trust.js.map +1 -0
  456. package/package.json +208 -30
  457. package/restart.d.ts +28 -0
  458. package/restart.d.ts.map +1 -0
  459. package/restart.js +30 -0
  460. package/restart.js.map +1 -0
  461. package/runtime-env.d.ts +84 -0
  462. package/runtime-env.d.ts.map +1 -0
  463. package/runtime-env.js +270 -0
  464. package/runtime-env.js.map +1 -0
  465. package/self-edit.d.ts +64 -0
  466. package/self-edit.d.ts.map +1 -0
  467. package/self-edit.js +133 -0
  468. package/self-edit.js.map +1 -0
  469. package/settings-debug.d.ts +9 -0
  470. package/settings-debug.d.ts.map +1 -0
  471. package/settings-debug.js +9 -0
  472. package/settings-debug.js.map +1 -0
  473. package/spoken-text.d.ts.map +1 -0
  474. package/spoken-text.js +58 -0
  475. package/spoken-text.js.map +1 -0
  476. package/steward-session-client/index.d.ts +150 -0
  477. package/steward-session-client/index.d.ts.map +1 -0
  478. package/steward-session-client/index.js +192 -0
  479. package/steward-session-client/index.js.map +1 -0
  480. package/steward-session-client/steward-oauth-pkce.d.ts +24 -0
  481. package/steward-session-client/steward-oauth-pkce.d.ts.map +1 -0
  482. package/steward-session-client/steward-oauth-pkce.js +105 -0
  483. package/steward-session-client/steward-oauth-pkce.js.map +1 -0
  484. package/test-env-config.d.ts +81 -0
  485. package/test-env-config.d.ts.map +1 -0
  486. package/test-env-config.js +125 -0
  487. package/test-env-config.js.map +1 -0
  488. package/test-support/test-helpers.d.ts +79 -0
  489. package/test-support/test-helpers.d.ts.map +1 -0
  490. package/test-support/test-helpers.js +341 -0
  491. package/test-support/test-helpers.js.map +1 -0
  492. package/transcripts.d.ts +141 -0
  493. package/transcripts.d.ts.map +1 -0
  494. package/transcripts.js +162 -0
  495. package/transcripts.js.map +1 -0
  496. package/type-guards.d.ts +7 -0
  497. package/type-guards.d.ts.map +1 -0
  498. package/type-guards.js +27 -0
  499. package/type-guards.js.map +1 -0
  500. package/types/index.d.ts +654 -0
  501. package/types/index.d.ts.map +1 -0
  502. package/utils/assistant-text.d.ts +13 -0
  503. package/utils/assistant-text.d.ts.map +1 -0
  504. package/utils/assistant-text.js +292 -0
  505. package/utils/assistant-text.js.map +1 -0
  506. package/utils/browser-tab-kit-types.d.ts +81 -0
  507. package/utils/browser-tab-kit-types.js +23 -0
  508. package/utils/browser-tabs-renderer-registry.d.ts +56 -0
  509. package/utils/browser-tabs-renderer-registry.d.ts.map +1 -0
  510. package/utils/browser-tabs-renderer-registry.js +1282 -0
  511. package/utils/browser-tabs-renderer-registry.js.map +1 -0
  512. package/utils/documents-upload-image.js +147 -0
  513. package/utils/documents-upload-image.js.map +1 -0
  514. package/utils/env.d.ts +35 -0
  515. package/utils/env.d.ts.map +1 -0
  516. package/utils/env.js +133 -0
  517. package/utils/env.js.map +1 -0
  518. package/utils/errors.d.ts +14 -0
  519. package/utils/errors.d.ts.map +1 -0
  520. package/utils/errors.js +23 -0
  521. package/utils/errors.js.map +1 -0
  522. package/utils/exec-safety.d.ts.map +1 -0
  523. package/utils/exec-safety.js +25 -0
  524. package/utils/exec-safety.js.map +1 -0
  525. package/utils/format.d.ts +85 -0
  526. package/utils/format.d.ts.map +1 -0
  527. package/utils/format.js +140 -0
  528. package/utils/format.js.map +1 -0
  529. package/utils/log-prefix.d.ts.map +1 -0
  530. package/utils/log-prefix.js +44 -0
  531. package/utils/log-prefix.js.map +1 -0
  532. package/utils/name-tokens.d.ts +24 -0
  533. package/utils/name-tokens.js +37 -0
  534. package/utils/namespace-defaults.d.ts +10 -0
  535. package/utils/namespace-defaults.d.ts.map +1 -0
  536. package/utils/namespace-defaults.js +17 -0
  537. package/utils/namespace-defaults.js.map +1 -0
  538. package/utils/number-parsing.d.ts.map +1 -0
  539. package/utils/number-parsing.js +57 -0
  540. package/utils/number-parsing.js.map +1 -0
  541. package/utils/permission-deep-links.d.ts +35 -0
  542. package/utils/permission-deep-links.d.ts.map +1 -0
  543. package/utils/permission-deep-links.js +95 -0
  544. package/utils/permission-deep-links.js.map +1 -0
  545. package/utils/serialise.js +22 -0
  546. package/utils/serialise.js.map +1 -0
  547. package/utils/sql-compat.js +112 -0
  548. package/utils/sql-compat.js.map +1 -0
  549. package/utils/streaming-text.d.ts +9 -0
  550. package/utils/streaming-text.d.ts.map +1 -0
  551. package/utils/streaming-text.js +116 -0
  552. package/utils/streaming-text.js.map +1 -0
  553. package/utils/string-hash.d.ts +11 -0
  554. package/utils/string-hash.d.ts.map +1 -0
  555. package/utils/string-hash.js +17 -0
  556. package/utils/string-hash.js.map +1 -0
  557. package/utils/tts-debug.d.ts +10 -0
  558. package/utils/tts-debug.d.ts.map +1 -0
  559. package/utils/tts-debug.js +73 -0
  560. package/utils/tts-debug.js.map +1 -0
  561. package/view-hero-art.d.ts +75 -0
  562. package/view-hero-art.d.ts.map +1 -0
  563. package/view-hero-art.js +354 -0
  564. package/view-hero-art.js.map +1 -0
  565. package/voice/first-sentence-snip.d.ts +68 -0
  566. package/voice/first-sentence-snip.d.ts.map +1 -0
  567. package/voice/first-sentence-snip.js +284 -0
  568. package/voice/first-sentence-snip.js.map +1 -0
  569. package/voice/owner-inference.d.ts +57 -0
  570. package/voice/owner-inference.d.ts.map +1 -0
  571. package/voice/owner-inference.js +73 -0
  572. package/voice/owner-inference.js.map +1 -0
  573. package/voice/respond-gate.d.ts +88 -0
  574. package/voice/respond-gate.d.ts.map +1 -0
  575. package/voice/respond-gate.js +139 -0
  576. package/voice/respond-gate.js.map +1 -0
  577. package/voice/voice-cancellation-token.d.ts +127 -0
  578. package/voice/voice-cancellation-token.d.ts.map +1 -0
  579. package/voice/voice-cancellation-token.js +186 -0
  580. package/voice/voice-cancellation-token.js.map +1 -0
  581. package/voice-eot.d.ts +42 -0
  582. package/voice-eot.d.ts.map +1 -0
  583. package/voice-eot.js +158 -0
  584. package/voice-eot.js.map +1 -0
  585. package/voice-wer.d.ts +19 -0
  586. package/voice-wer.d.ts.map +1 -0
  587. package/voice-wer.js +42 -0
  588. package/voice-wer.js.map +1 -0
  589. package/voice.d.ts +55 -0
  590. package/voice.d.ts.map +1 -0
  591. package/voice.js +337 -0
  592. package/voice.js.map +1 -0
  593. package/dist/api/chat-contracts.d.ts +0 -2
  594. package/dist/api/chat-contracts.d.ts.map +0 -1
  595. package/dist/api/chat-contracts.js +0 -2
  596. package/dist/api/chat-contracts.js.map +0 -1
  597. package/dist/api/http-helpers.d.ts +0 -50
  598. package/dist/api/http-helpers.d.ts.map +0 -1
  599. package/dist/api/http-helpers.js +0 -168
  600. package/dist/api/http-helpers.js.map +0 -1
  601. package/dist/api/route-helpers.d.ts +0 -16
  602. package/dist/api/route-helpers.d.ts.map +0 -1
  603. package/dist/app-hero-art.d.ts.map +0 -1
  604. package/dist/app-hero-art.js +0 -358
  605. package/dist/app-hero-art.js.map +0 -1
  606. package/dist/cli/parse-duration.d.ts.map +0 -1
  607. package/dist/cli/parse-duration.js +0 -28
  608. package/dist/cli/parse-duration.js.map +0 -1
  609. package/dist/config/allowed-hosts.js +0 -44
  610. package/dist/config/allowed-hosts.js.map +0 -1
  611. package/dist/config/api-key-prefix-hints.d.ts +0 -25
  612. package/dist/config/api-key-prefix-hints.d.ts.map +0 -1
  613. package/dist/config/api-key-prefix-hints.js +0 -27
  614. package/dist/config/api-key-prefix-hints.js.map +0 -1
  615. package/dist/config/app-config.d.ts +0 -273
  616. package/dist/config/app-config.d.ts.map +0 -1
  617. package/dist/config/app-config.js +0 -32
  618. package/dist/config/app-config.js.map +0 -1
  619. package/dist/config/app-manifest.d.ts.map +0 -1
  620. package/dist/config/app-manifest.js +0 -109
  621. package/dist/config/app-manifest.js.map +0 -1
  622. package/dist/config/boot-config-react.d.ts +0 -5
  623. package/dist/config/boot-config-react.d.ts.map +0 -1
  624. package/dist/config/boot-config-react.js +0 -8
  625. package/dist/config/boot-config-react.js.map +0 -1
  626. package/dist/config/boot-config-store.d.ts +0 -74
  627. package/dist/config/boot-config-store.d.ts.map +0 -1
  628. package/dist/config/boot-config-store.js +0 -121
  629. package/dist/config/boot-config-store.js.map +0 -1
  630. package/dist/config/branding-react.d.ts +0 -4
  631. package/dist/config/branding-react.d.ts.map +0 -1
  632. package/dist/config/branding-react.js +0 -12
  633. package/dist/config/branding-react.js.map +0 -1
  634. package/dist/config/branding.d.ts +0 -53
  635. package/dist/config/branding.d.ts.map +0 -1
  636. package/dist/config/branding.js +0 -23
  637. package/dist/config/branding.js.map +0 -1
  638. package/dist/config/cloud-only.d.ts +0 -6
  639. package/dist/config/cloud-only.d.ts.map +0 -1
  640. package/dist/config/cloud-only.js +0 -16
  641. package/dist/config/cloud-only.js.map +0 -1
  642. package/dist/config/config-catalog.d.ts.map +0 -1
  643. package/dist/config/config-catalog.js +0 -710
  644. package/dist/config/config-catalog.js.map +0 -1
  645. package/dist/config/config.js +0 -23
  646. package/dist/config/config.js.map +0 -1
  647. package/dist/config/distribution-profile.js +0 -29
  648. package/dist/config/distribution-profile.js.map +0 -1
  649. package/dist/config/env-vars.d.ts.map +0 -1
  650. package/dist/config/index.d.ts +0 -14
  651. package/dist/config/index.d.ts.map +0 -1
  652. package/dist/config/index.js +0 -17
  653. package/dist/config/index.js.map +0 -1
  654. package/dist/config/plugin-auto-enable-engine.js +0 -45
  655. package/dist/config/plugin-auto-enable-engine.js.map +0 -1
  656. package/dist/config/plugin-manifest.d.ts.map +0 -1
  657. package/dist/config/plugin-manifest.js +0 -272
  658. package/dist/config/plugin-manifest.js.map +0 -1
  659. package/dist/config/runtime-mode.d.ts.map +0 -1
  660. package/dist/config/runtime-mode.js +0 -103
  661. package/dist/config/runtime-mode.js.map +0 -1
  662. package/dist/config/types.agent-defaults.d.ts +0 -383
  663. package/dist/config/types.agent-defaults.d.ts.map +0 -1
  664. package/dist/config/types.agents.d.ts +0 -114
  665. package/dist/config/types.agents.d.ts.map +0 -1
  666. package/dist/config/types.eliza.d.ts +0 -689
  667. package/dist/config/types.eliza.d.ts.map +0 -1
  668. package/dist/config/types.messages.d.ts +0 -176
  669. package/dist/config/types.messages.d.ts.map +0 -1
  670. package/dist/config/types.tools.d.ts +0 -400
  671. package/dist/config/types.tools.d.ts.map +0 -1
  672. package/dist/config/ui-spec.d.ts +0 -164
  673. package/dist/config/ui-spec.d.ts.map +0 -1
  674. package/dist/config/zod-schema.agent-runtime.d.ts +0 -1087
  675. package/dist/config/zod-schema.core.d.ts +0 -1048
  676. package/dist/connectors.d.ts +0 -2
  677. package/dist/connectors.d.ts.map +0 -1
  678. package/dist/connectors.js +0 -2
  679. package/dist/connectors.js.map +0 -1
  680. package/dist/contracts/apps.d.ts +0 -279
  681. package/dist/contracts/apps.d.ts.map +0 -1
  682. package/dist/contracts/apps.js +0 -218
  683. package/dist/contracts/apps.js.map +0 -1
  684. package/dist/contracts/cloud-topology.js +0 -72
  685. package/dist/contracts/cloud-topology.js.map +0 -1
  686. package/dist/contracts/content-pack.d.ts +0 -131
  687. package/dist/contracts/content-pack.d.ts.map +0 -1
  688. package/dist/contracts/content-pack.js +0 -103
  689. package/dist/contracts/health.d.ts +0 -30
  690. package/dist/contracts/health.d.ts.map +0 -1
  691. package/dist/contracts/health.js +0 -29
  692. package/dist/contracts/health.js.map +0 -1
  693. package/dist/contracts/index.d.ts +0 -16
  694. package/dist/contracts/index.d.ts.map +0 -1
  695. package/dist/contracts/index.js +0 -16
  696. package/dist/contracts/index.js.map +0 -1
  697. package/dist/contracts/lifeops.d.ts +0 -3140
  698. package/dist/contracts/lifeops.d.ts.map +0 -1
  699. package/dist/contracts/lifeops.js +0 -587
  700. package/dist/contracts/lifeops.js.map +0 -1
  701. package/dist/contracts/onboarding.d.ts +0 -507
  702. package/dist/contracts/onboarding.d.ts.map +0 -1
  703. package/dist/contracts/onboarding.js +0 -1141
  704. package/dist/contracts/onboarding.js.map +0 -1
  705. package/dist/contracts/permissions.d.ts +0 -121
  706. package/dist/contracts/permissions.d.ts.map +0 -1
  707. package/dist/contracts/permissions.js +0 -31
  708. package/dist/contracts/permissions.js.map +0 -1
  709. package/dist/contracts/service-routing.d.ts +0 -155
  710. package/dist/contracts/service-routing.d.ts.map +0 -1
  711. package/dist/contracts/service-routing.js +0 -395
  712. package/dist/contracts/service-routing.js.map +0 -1
  713. package/dist/contracts/theme.d.ts +0 -136
  714. package/dist/contracts/theme.d.ts.map +0 -1
  715. package/dist/contracts/theme.js +0 -134
  716. package/dist/contracts/theme.js.map +0 -1
  717. package/dist/contracts/wallet.d.ts +0 -622
  718. package/dist/contracts/wallet.d.ts.map +0 -1
  719. package/dist/contracts/wallet.js +0 -194
  720. package/dist/contracts/wallet.js.map +0 -1
  721. package/dist/dev-settings-banner-style.d.ts +0 -14
  722. package/dist/dev-settings-banner-style.js +0 -58
  723. package/dist/dev-settings-banner-style.js.map +0 -1
  724. package/dist/dev-settings-figlet-heading.d.ts.map +0 -1
  725. package/dist/dev-settings-figlet-heading.js +0 -56
  726. package/dist/dev-settings-figlet-heading.js.map +0 -1
  727. package/dist/env-utils.d.ts +0 -2
  728. package/dist/env-utils.d.ts.map +0 -1
  729. package/dist/env-utils.js +0 -13
  730. package/dist/env-utils.js.map +0 -1
  731. package/dist/events/index.d.ts +0 -62
  732. package/dist/events/index.d.ts.map +0 -1
  733. package/dist/events/index.js +0 -52
  734. package/dist/events/index.js.map +0 -1
  735. package/dist/format-error.d.ts +0 -14
  736. package/dist/format-error.d.ts.map +0 -1
  737. package/dist/format-error.js +0 -18
  738. package/dist/format-error.js.map +0 -1
  739. package/dist/i18n/generated/validation-keyword-data.d.ts +0 -3080
  740. package/dist/i18n/generated/validation-keyword-data.d.ts.map +0 -1
  741. package/dist/i18n/generated/validation-keyword-data.js +0 -3084
  742. package/dist/i18n/generated/validation-keyword-data.js.map +0 -1
  743. package/dist/i18n/keyword-matching.d.ts.map +0 -1
  744. package/dist/i18n/keyword-matching.js +0 -113
  745. package/dist/i18n/keyword-matching.js.map +0 -1
  746. package/dist/index.d.ts +0 -93
  747. package/dist/index.d.ts.map +0 -1
  748. package/dist/index.js +0 -105
  749. package/dist/index.js.map +0 -1
  750. package/dist/local-inference/index.d.ts +0 -16
  751. package/dist/local-inference/index.d.ts.map +0 -1
  752. package/dist/local-inference/index.js +0 -16
  753. package/dist/local-inference/index.js.map +0 -1
  754. package/dist/local-inference/paths.d.ts +0 -24
  755. package/dist/local-inference/paths.js +0 -40
  756. package/dist/local-inference/routing-preferences.d.ts +0 -31
  757. package/dist/local-inference/routing-preferences.d.ts.map +0 -1
  758. package/dist/local-inference/routing-preferences.js +0 -73
  759. package/dist/local-inference/routing-preferences.js.map +0 -1
  760. package/dist/local-inference/types.d.ts +0 -62
  761. package/dist/local-inference/types.d.ts.map +0 -1
  762. package/dist/local-inference/types.js +0 -25
  763. package/dist/local-inference/types.js.map +0 -1
  764. package/dist/onboarding-presets.characters.d.ts +0 -22
  765. package/dist/onboarding-presets.characters.d.ts.map +0 -1
  766. package/dist/onboarding-presets.characters.js +0 -2617
  767. package/dist/onboarding-presets.characters.js.map +0 -1
  768. package/dist/onboarding-presets.d.ts +0 -40
  769. package/dist/onboarding-presets.d.ts.map +0 -1
  770. package/dist/onboarding-presets.js +0 -181
  771. package/dist/onboarding-presets.js.map +0 -1
  772. package/dist/onboarding-presets.shared.d.ts +0 -2
  773. package/dist/onboarding-presets.shared.d.ts.map +0 -1
  774. package/dist/onboarding-presets.shared.js +0 -8
  775. package/dist/onboarding-presets.shared.js.map +0 -1
  776. package/dist/package.json +0 -50
  777. package/dist/restart.d.ts +0 -27
  778. package/dist/restart.d.ts.map +0 -1
  779. package/dist/restart.js +0 -29
  780. package/dist/restart.js.map +0 -1
  781. package/dist/runtime-env.d.ts +0 -84
  782. package/dist/runtime-env.d.ts.map +0 -1
  783. package/dist/runtime-env.js +0 -262
  784. package/dist/runtime-env.js.map +0 -1
  785. package/dist/self-edit.d.ts +0 -64
  786. package/dist/self-edit.d.ts.map +0 -1
  787. package/dist/self-edit.js +0 -133
  788. package/dist/self-edit.js.map +0 -1
  789. package/dist/settings-debug.d.ts +0 -20
  790. package/dist/settings-debug.d.ts.map +0 -1
  791. package/dist/settings-debug.js +0 -122
  792. package/dist/settings-debug.js.map +0 -1
  793. package/dist/spoken-text.d.ts.map +0 -1
  794. package/dist/spoken-text.js +0 -57
  795. package/dist/spoken-text.js.map +0 -1
  796. package/dist/test-support/test-helpers.d.ts +0 -112
  797. package/dist/test-support/test-helpers.d.ts.map +0 -1
  798. package/dist/test-support/test-helpers.js +0 -416
  799. package/dist/test-support/test-helpers.js.map +0 -1
  800. package/dist/themes/index.d.ts +0 -7
  801. package/dist/themes/index.d.ts.map +0 -1
  802. package/dist/themes/index.js +0 -6
  803. package/dist/themes/index.js.map +0 -1
  804. package/dist/themes/presets.d.ts +0 -15
  805. package/dist/themes/presets.d.ts.map +0 -1
  806. package/dist/themes/presets.js +0 -789
  807. package/dist/themes/presets.js.map +0 -1
  808. package/dist/type-guards.d.ts +0 -30
  809. package/dist/type-guards.d.ts.map +0 -1
  810. package/dist/type-guards.js +0 -50
  811. package/dist/type-guards.js.map +0 -1
  812. package/dist/types/index.d.ts +0 -655
  813. package/dist/types/index.d.ts.map +0 -1
  814. package/dist/utils/assistant-text.d.ts +0 -2
  815. package/dist/utils/assistant-text.d.ts.map +0 -1
  816. package/dist/utils/assistant-text.js +0 -168
  817. package/dist/utils/assistant-text.js.map +0 -1
  818. package/dist/utils/browser-tab-kit-types.d.ts +0 -81
  819. package/dist/utils/browser-tab-kit-types.js +0 -23
  820. package/dist/utils/browser-tabs-renderer-registry.d.ts +0 -56
  821. package/dist/utils/browser-tabs-renderer-registry.d.ts.map +0 -1
  822. package/dist/utils/browser-tabs-renderer-registry.js +0 -962
  823. package/dist/utils/browser-tabs-renderer-registry.js.map +0 -1
  824. package/dist/utils/documents-upload-image.js +0 -147
  825. package/dist/utils/documents-upload-image.js.map +0 -1
  826. package/dist/utils/env.d.ts +0 -34
  827. package/dist/utils/env.d.ts.map +0 -1
  828. package/dist/utils/env.js +0 -131
  829. package/dist/utils/env.js.map +0 -1
  830. package/dist/utils/errors.d.ts +0 -13
  831. package/dist/utils/errors.d.ts.map +0 -1
  832. package/dist/utils/errors.js +0 -26
  833. package/dist/utils/errors.js.map +0 -1
  834. package/dist/utils/exec-safety.d.ts.map +0 -1
  835. package/dist/utils/exec-safety.js +0 -22
  836. package/dist/utils/exec-safety.js.map +0 -1
  837. package/dist/utils/format.d.ts +0 -66
  838. package/dist/utils/format.d.ts.map +0 -1
  839. package/dist/utils/format.js +0 -122
  840. package/dist/utils/format.js.map +0 -1
  841. package/dist/utils/index.d.ts +0 -12
  842. package/dist/utils/index.d.ts.map +0 -1
  843. package/dist/utils/index.js +0 -12
  844. package/dist/utils/index.js.map +0 -1
  845. package/dist/utils/log-prefix.d.ts.map +0 -1
  846. package/dist/utils/log-prefix.js +0 -54
  847. package/dist/utils/log-prefix.js.map +0 -1
  848. package/dist/utils/name-tokens.d.ts +0 -24
  849. package/dist/utils/name-tokens.js +0 -37
  850. package/dist/utils/namespace-defaults.d.ts +0 -6
  851. package/dist/utils/namespace-defaults.d.ts.map +0 -1
  852. package/dist/utils/namespace-defaults.js +0 -16
  853. package/dist/utils/namespace-defaults.js.map +0 -1
  854. package/dist/utils/number-parsing.d.ts.map +0 -1
  855. package/dist/utils/number-parsing.js +0 -52
  856. package/dist/utils/number-parsing.js.map +0 -1
  857. package/dist/utils/permission-deep-links.d.ts +0 -34
  858. package/dist/utils/permission-deep-links.d.ts.map +0 -1
  859. package/dist/utils/permission-deep-links.js +0 -84
  860. package/dist/utils/permission-deep-links.js.map +0 -1
  861. package/dist/utils/serialise.js +0 -22
  862. package/dist/utils/serialise.js.map +0 -1
  863. package/dist/utils/sql-compat.js +0 -112
  864. package/dist/utils/sql-compat.js.map +0 -1
  865. package/dist/utils/streaming-text.d.ts +0 -9
  866. package/dist/utils/streaming-text.d.ts.map +0 -1
  867. package/dist/utils/streaming-text.js +0 -113
  868. package/dist/utils/streaming-text.js.map +0 -1
  869. package/dist/utils/tts-debug.d.ts +0 -9
  870. package/dist/utils/tts-debug.d.ts.map +0 -1
  871. package/dist/utils/tts-debug.js +0 -70
  872. package/dist/utils/tts-debug.js.map +0 -1
  873. package/dist/voice.d.ts +0 -40
  874. package/dist/voice.d.ts.map +0 -1
  875. package/dist/voice.js +0 -296
  876. package/dist/voice.js.map +0 -1
  877. /package/{dist/api → api}/route-helpers.js +0 -0
  878. /package/{dist/api → api}/route-helpers.js.map +0 -0
  879. /package/{dist/app-hero-art.d.ts → app-hero-art.d.ts} +0 -0
  880. /package/{dist/awareness → awareness}/index.d.ts +0 -0
  881. /package/{dist/awareness → awareness}/index.d.ts.map +0 -0
  882. /package/{dist/awareness → awareness}/index.js +0 -0
  883. /package/{dist/awareness → awareness}/index.js.map +0 -0
  884. /package/{dist/awareness → awareness}/registry.d.ts +0 -0
  885. /package/{dist/awareness → awareness}/registry.d.ts.map +0 -0
  886. /package/{dist/awareness → awareness}/registry.js +0 -0
  887. /package/{dist/awareness → awareness}/registry.js.map +0 -0
  888. /package/{dist/cli → cli}/parse-duration.d.ts +0 -0
  889. /package/{dist/config → config}/allowed-hosts.d.ts +0 -0
  890. /package/{dist/config → config}/allowed-hosts.d.ts.map +0 -0
  891. /package/{dist/config → config}/app-manifest.d.ts +0 -0
  892. /package/{dist/config → config}/boot-config.d.ts +0 -0
  893. /package/{dist/config → config}/boot-config.d.ts.map +0 -0
  894. /package/{dist/config → config}/boot-config.js +0 -0
  895. /package/{dist/config → config}/boot-config.js.map +0 -0
  896. /package/{dist/config → config}/config-catalog.d.ts +0 -0
  897. /package/{dist/config → config}/config-paths.d.ts +0 -0
  898. /package/{dist/config → config}/config-paths.d.ts.map +0 -0
  899. /package/{dist/config → config}/config-paths.js +0 -0
  900. /package/{dist/config → config}/config-paths.js.map +0 -0
  901. /package/{dist/config → config}/config.d.ts +0 -0
  902. /package/{dist/config → config}/config.d.ts.map +0 -0
  903. /package/{dist/config → config}/distribution-profile.d.ts +0 -0
  904. /package/{dist/config → config}/distribution-profile.d.ts.map +0 -0
  905. /package/{dist/config → config}/env-vars.d.ts +0 -0
  906. /package/{dist/config → config}/env-vars.js +0 -0
  907. /package/{dist/config → config}/env-vars.js.map +0 -0
  908. /package/{dist/config → config}/plugin-auto-enable-engine.d.ts +0 -0
  909. /package/{dist/config → config}/plugin-auto-enable-engine.d.ts.map +0 -0
  910. /package/{dist/config → config}/plugin-auto-enable.d.ts +0 -0
  911. /package/{dist/config → config}/plugin-auto-enable.d.ts.map +0 -0
  912. /package/{dist/config → config}/plugin-auto-enable.js +0 -0
  913. /package/{dist/config → config}/plugin-auto-enable.js.map +0 -0
  914. /package/{dist/config → config}/plugin-manifest.d.ts +0 -0
  915. /package/{dist/config → config}/plugin-ui-spec.d.ts +0 -0
  916. /package/{dist/config → config}/plugin-ui-spec.d.ts.map +0 -0
  917. /package/{dist/config → config}/plugin-ui-spec.js +0 -0
  918. /package/{dist/config → config}/plugin-ui-spec.js.map +0 -0
  919. /package/{dist/config → config}/runtime-mode.d.ts +0 -0
  920. /package/{dist/config → config}/runtime-overrides.d.ts +0 -0
  921. /package/{dist/config → config}/runtime-overrides.d.ts.map +0 -0
  922. /package/{dist/config → config}/runtime-overrides.js +0 -0
  923. /package/{dist/config → config}/runtime-overrides.js.map +0 -0
  924. /package/{dist/config → config}/schema.d.ts +0 -0
  925. /package/{dist/config → config}/schema.d.ts.map +0 -0
  926. /package/{dist/config → config}/schema.js +0 -0
  927. /package/{dist/config → config}/schema.js.map +0 -0
  928. /package/{dist/config → config}/types.agent-defaults.js +0 -0
  929. /package/{dist/config → config}/types.agent-defaults.js.map +0 -0
  930. /package/{dist/config → config}/types.agents.js +0 -0
  931. /package/{dist/config → config}/types.agents.js.map +0 -0
  932. /package/{dist/config → config}/types.d.ts +0 -0
  933. /package/{dist/config → config}/types.d.ts.map +0 -0
  934. /package/{dist/config → config}/types.eliza.js +0 -0
  935. /package/{dist/config → config}/types.eliza.js.map +0 -0
  936. /package/{dist/config → config}/types.gateway.d.ts +0 -0
  937. /package/{dist/config → config}/types.gateway.d.ts.map +0 -0
  938. /package/{dist/config → config}/types.gateway.js +0 -0
  939. /package/{dist/config → config}/types.gateway.js.map +0 -0
  940. /package/{dist/config → config}/types.hooks.d.ts +0 -0
  941. /package/{dist/config → config}/types.hooks.d.ts.map +0 -0
  942. /package/{dist/config → config}/types.hooks.js +0 -0
  943. /package/{dist/config → config}/types.hooks.js.map +0 -0
  944. /package/{dist/config → config}/types.js +0 -0
  945. /package/{dist/config → config}/types.js.map +0 -0
  946. /package/{dist/config → config}/types.messages.js +0 -0
  947. /package/{dist/config → config}/types.messages.js.map +0 -0
  948. /package/{dist/config → config}/types.tools.js +0 -0
  949. /package/{dist/config → config}/types.tools.js.map +0 -0
  950. /package/{dist/config → config}/ui-spec.js +0 -0
  951. /package/{dist/config → config}/ui-spec.js.map +0 -0
  952. /package/{dist/config → config}/wechat-config.d.ts +0 -0
  953. /package/{dist/config → config}/wechat-config.d.ts.map +0 -0
  954. /package/{dist/config → config}/wechat-config.js +0 -0
  955. /package/{dist/config → config}/wechat-config.js.map +0 -0
  956. /package/{dist/config → config}/zod-schema.agent-runtime.d.ts.map +0 -0
  957. /package/{dist/config → config}/zod-schema.agent-runtime.js +0 -0
  958. /package/{dist/config → config}/zod-schema.agent-runtime.js.map +0 -0
  959. /package/{dist/config → config}/zod-schema.core.d.ts.map +0 -0
  960. /package/{dist/config → config}/zod-schema.core.js +0 -0
  961. /package/{dist/config → config}/zod-schema.core.js.map +0 -0
  962. /package/{dist/connector-cred-types.d.ts → connector-cred-types.d.ts} +0 -0
  963. /package/{dist/connector-cred-types.d.ts.map → connector-cred-types.d.ts.map} +0 -0
  964. /package/{dist/connector-cred-types.js → connector-cred-types.js} +0 -0
  965. /package/{dist/connector-cred-types.js.map → connector-cred-types.js.map} +0 -0
  966. /package/{dist/contracts → contracts}/awareness.d.ts +0 -0
  967. /package/{dist/contracts → contracts}/awareness.d.ts.map +0 -0
  968. /package/{dist/contracts → contracts}/awareness.js +0 -0
  969. /package/{dist/contracts → contracts}/awareness.js.map +0 -0
  970. /package/{dist/contracts → contracts}/cloud-topology.d.ts +0 -0
  971. /package/{dist/contracts → contracts}/cloud-topology.d.ts.map +0 -0
  972. /package/{dist/contracts → contracts}/config.d.ts +0 -0
  973. /package/{dist/contracts → contracts}/config.d.ts.map +0 -0
  974. /package/{dist/contracts → contracts}/config.js +0 -0
  975. /package/{dist/contracts → contracts}/config.js.map +0 -0
  976. /package/{dist/contracts → contracts}/content-pack.js.map +0 -0
  977. /package/{dist/contracts → contracts}/drop.d.ts +0 -0
  978. /package/{dist/contracts → contracts}/drop.d.ts.map +0 -0
  979. /package/{dist/contracts → contracts}/drop.js +0 -0
  980. /package/{dist/contracts → contracts}/drop.js.map +0 -0
  981. /package/{dist/contracts → contracts}/feature-result.d.ts +0 -0
  982. /package/{dist/contracts → contracts}/feature-result.d.ts.map +0 -0
  983. /package/{dist/contracts → contracts}/feature-result.js +0 -0
  984. /package/{dist/contracts → contracts}/feature-result.js.map +0 -0
  985. /package/{dist/contracts → contracts}/inbox.d.ts +0 -0
  986. /package/{dist/contracts → contracts}/inbox.d.ts.map +0 -0
  987. /package/{dist/contracts → contracts}/inbox.js +0 -0
  988. /package/{dist/contracts → contracts}/inbox.js.map +0 -0
  989. /package/{dist/contracts → contracts}/lifeops-connector-degradation.d.ts +0 -0
  990. /package/{dist/contracts → contracts}/lifeops-connector-degradation.d.ts.map +0 -0
  991. /package/{dist/contracts → contracts}/lifeops-connector-degradation.js +0 -0
  992. /package/{dist/contracts → contracts}/lifeops-connector-degradation.js.map +0 -0
  993. /package/{dist/contracts → contracts}/verification.d.ts +0 -0
  994. /package/{dist/contracts → contracts}/verification.d.ts.map +0 -0
  995. /package/{dist/contracts → contracts}/verification.js +0 -0
  996. /package/{dist/contracts → contracts}/verification.js.map +0 -0
  997. /package/{dist/dev-settings-banner-style.d.ts.map → dev-settings-banner-style.d.ts.map} +0 -0
  998. /package/{dist/dev-settings-figlet-heading.d.ts → dev-settings-figlet-heading.d.ts} +0 -0
  999. /package/{dist/dev-settings-table.d.ts → dev-settings-table.d.ts} +0 -0
  1000. /package/{dist/dev-settings-table.d.ts.map → dev-settings-table.d.ts.map} +0 -0
  1001. /package/{dist/dev-settings-table.js → dev-settings-table.js} +0 -0
  1002. /package/{dist/dev-settings-table.js.map → dev-settings-table.js.map} +0 -0
  1003. /package/{dist/i18n → i18n}/keyword-matching.d.ts +0 -0
  1004. /package/{dist/i18n → i18n}/validation-keywords.d.ts +0 -0
  1005. /package/{dist/i18n → i18n}/validation-keywords.d.ts.map +0 -0
  1006. /package/{dist/i18n → i18n}/validation-keywords.js +0 -0
  1007. /package/{dist/i18n → i18n}/validation-keywords.js.map +0 -0
  1008. /package/{dist/local-inference → local-inference}/paths.d.ts.map +0 -0
  1009. /package/{dist/local-inference → local-inference}/paths.js.map +0 -0
  1010. /package/{dist/local-inference → local-inference}/verify.d.ts +0 -0
  1011. /package/{dist/local-inference → local-inference}/verify.d.ts.map +0 -0
  1012. /package/{dist/local-inference → local-inference}/verify.js +0 -0
  1013. /package/{dist/local-inference → local-inference}/verify.js.map +0 -0
  1014. /package/{dist/platform → platform}/is-native-server.d.ts +0 -0
  1015. /package/{dist/platform → platform}/is-native-server.d.ts.map +0 -0
  1016. /package/{dist/platform → platform}/is-native-server.js +0 -0
  1017. /package/{dist/platform → platform}/is-native-server.js.map +0 -0
  1018. /package/{dist/recent-messages-state.d.ts → recent-messages-state.d.ts} +0 -0
  1019. /package/{dist/recent-messages-state.d.ts.map → recent-messages-state.d.ts.map} +0 -0
  1020. /package/{dist/recent-messages-state.js → recent-messages-state.js} +0 -0
  1021. /package/{dist/recent-messages-state.js.map → recent-messages-state.js.map} +0 -0
  1022. /package/{dist/spoken-text.d.ts → spoken-text.d.ts} +0 -0
  1023. /package/{dist/terminal → terminal}/links.d.ts +0 -0
  1024. /package/{dist/terminal → terminal}/links.d.ts.map +0 -0
  1025. /package/{dist/terminal → terminal}/links.js +0 -0
  1026. /package/{dist/terminal → terminal}/links.js.map +0 -0
  1027. /package/{dist/terminal → terminal}/palette.d.ts +0 -0
  1028. /package/{dist/terminal → terminal}/palette.d.ts.map +0 -0
  1029. /package/{dist/terminal → terminal}/palette.js +0 -0
  1030. /package/{dist/terminal → terminal}/palette.js.map +0 -0
  1031. /package/{dist/terminal → terminal}/theme.d.ts +0 -0
  1032. /package/{dist/terminal → terminal}/theme.d.ts.map +0 -0
  1033. /package/{dist/terminal → terminal}/theme.js +0 -0
  1034. /package/{dist/terminal → terminal}/theme.js.map +0 -0
  1035. /package/{dist/test-support → test-support}/process-helpers.d.ts +0 -0
  1036. /package/{dist/test-support → test-support}/process-helpers.d.ts.map +0 -0
  1037. /package/{dist/test-support → test-support}/process-helpers.js +0 -0
  1038. /package/{dist/test-support → test-support}/process-helpers.js.map +0 -0
  1039. /package/{dist/types → types}/index.js +0 -0
  1040. /package/{dist/types → types}/index.js.map +0 -0
  1041. /package/{dist/utils → utils}/asset-url.d.ts +0 -0
  1042. /package/{dist/utils → utils}/asset-url.d.ts.map +0 -0
  1043. /package/{dist/utils → utils}/asset-url.js +0 -0
  1044. /package/{dist/utils → utils}/asset-url.js.map +0 -0
  1045. /package/{dist/utils → utils}/browser-tab-kit-types.d.ts.map +0 -0
  1046. /package/{dist/utils → utils}/browser-tab-kit-types.js.map +0 -0
  1047. /package/{dist/utils → utils}/character-message-examples.d.ts +0 -0
  1048. /package/{dist/utils → utils}/character-message-examples.d.ts.map +0 -0
  1049. /package/{dist/utils → utils}/character-message-examples.js +0 -0
  1050. /package/{dist/utils → utils}/character-message-examples.js.map +0 -0
  1051. /package/{dist/utils → utils}/cloud-status.d.ts +0 -0
  1052. /package/{dist/utils → utils}/cloud-status.d.ts.map +0 -0
  1053. /package/{dist/utils → utils}/cloud-status.js +0 -0
  1054. /package/{dist/utils → utils}/cloud-status.js.map +0 -0
  1055. /package/{dist/utils → utils}/documents-upload-image.d.ts +0 -0
  1056. /package/{dist/utils → utils}/documents-upload-image.d.ts.map +0 -0
  1057. /package/{dist/utils → utils}/eliza-cloud-model-route.d.ts +0 -0
  1058. /package/{dist/utils → utils}/eliza-cloud-model-route.d.ts.map +0 -0
  1059. /package/{dist/utils → utils}/eliza-cloud-model-route.js +0 -0
  1060. /package/{dist/utils → utils}/eliza-cloud-model-route.js.map +0 -0
  1061. /package/{dist/utils → utils}/eliza-globals.d.ts +0 -0
  1062. /package/{dist/utils → utils}/eliza-globals.d.ts.map +0 -0
  1063. /package/{dist/utils → utils}/eliza-globals.js +0 -0
  1064. /package/{dist/utils → utils}/eliza-globals.js.map +0 -0
  1065. /package/{dist/utils → utils}/eliza-root.d.ts +0 -0
  1066. /package/{dist/utils → utils}/eliza-root.d.ts.map +0 -0
  1067. /package/{dist/utils → utils}/eliza-root.js +0 -0
  1068. /package/{dist/utils → utils}/eliza-root.js.map +0 -0
  1069. /package/{dist/utils → utils}/exec-safety.d.ts +0 -0
  1070. /package/{dist/utils → utils}/labels.d.ts +0 -0
  1071. /package/{dist/utils → utils}/labels.d.ts.map +0 -0
  1072. /package/{dist/utils → utils}/labels.js +0 -0
  1073. /package/{dist/utils → utils}/labels.js.map +0 -0
  1074. /package/{dist/utils → utils}/log-prefix.d.ts +0 -0
  1075. /package/{dist/utils → utils}/name-tokens.d.ts.map +0 -0
  1076. /package/{dist/utils → utils}/name-tokens.js.map +0 -0
  1077. /package/{dist/utils → utils}/number-parsing.d.ts +0 -0
  1078. /package/{dist/utils → utils}/owner-name.d.ts +0 -0
  1079. /package/{dist/utils → utils}/owner-name.d.ts.map +0 -0
  1080. /package/{dist/utils → utils}/owner-name.js +0 -0
  1081. /package/{dist/utils → utils}/owner-name.js.map +0 -0
  1082. /package/{dist/utils → utils}/rate-limiter.d.ts +0 -0
  1083. /package/{dist/utils → utils}/rate-limiter.d.ts.map +0 -0
  1084. /package/{dist/utils → utils}/rate-limiter.js +0 -0
  1085. /package/{dist/utils → utils}/rate-limiter.js.map +0 -0
  1086. /package/{dist/utils → utils}/serialise.d.ts +0 -0
  1087. /package/{dist/utils → utils}/serialise.d.ts.map +0 -0
  1088. /package/{dist/utils → utils}/sql-compat.d.ts +0 -0
  1089. /package/{dist/utils → utils}/sql-compat.d.ts.map +0 -0
  1090. /package/{dist/utils → utils}/subscription-auth.d.ts +0 -0
  1091. /package/{dist/utils → utils}/subscription-auth.d.ts.map +0 -0
  1092. /package/{dist/utils → utils}/subscription-auth.js +0 -0
  1093. /package/{dist/utils → utils}/subscription-auth.js.map +0 -0
  1094. /package/{dist/utils → utils}/trajectory-format.d.ts +0 -0
  1095. /package/{dist/utils → utils}/trajectory-format.d.ts.map +0 -0
  1096. /package/{dist/utils → utils}/trajectory-format.js +0 -0
  1097. /package/{dist/utils → utils}/trajectory-format.js.map +0 -0
  1098. /package/{dist/validation-keywords.d.ts → validation-keywords.d.ts} +0 -0
  1099. /package/{dist/validation-keywords.d.ts.map → validation-keywords.d.ts.map} +0 -0
  1100. /package/{dist/validation-keywords.js → validation-keywords.js} +0 -0
  1101. /package/{dist/validation-keywords.js.map → validation-keywords.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"respond-gate.js","sourceRoot":"","sources":["../../src/voice/respond-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEvD,6EAA6E;AAC7E,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,IAAI;CACL,CAAC,CAAC;AAEH,wEAAwE;AACxE,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC;AACnC,uEAAuE;AACvE,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAE1C,SAAS,KAAK,CAAC,IAAY;IACzB,OAAO,IAAI;SACR,WAAW,EAAE;SACb,OAAO,CAAC,iBAAiB,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,MAAM,WAAW,GACf,OAAO,CAAC,aAAa,KAAK,IAAI;QAC9B,CAAC,OAAO,CAAC,UAAU,IAAI,MAAM,CAAC,iBAAiB,CAAC,IAAI,cAAc,CAAC;IACrE,MAAM,WAAW,GACf,OAAO,CAAC,mBAAmB,KAAK,SAAS;QACzC,OAAO,CAAC,mBAAmB,IAAI,0BAA0B;QACzD,WAAW,CAAC;IACd,IAAI,WAAW;QAAE,gBAAgB,GAAG,KAAK,CAAC;IAE1C,MAAM,WAAW,GAAmC,CAAC,gBAAgB;QACnE,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,oBAAoB,GAAG,6BAA6B;YACpD,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO,CAAC;IAEd,MAAM,MAAM,GAAG,WAAW;QACxB,CAAC,CAAC,2BAA2B;QAC7B,CAAC,CAAC,OAAO,CAAC,cAAc;YACtB,CAAC,CAAC,yBAAyB;YAC3B,CAAC,CAAC,OAAO;gBACP,CAAC,CAAC,4BAA4B;gBAC9B,CAAC,CAAC,gBAAgB,CAAC;IAEzB,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC;AACzE,CAAC"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Canonical voice cancellation token.
3
+ *
4
+ * Wave 3 W3-9 — one token per voice turn, fanned out to every layer that can
5
+ * cancel: VAD start-of-speech (barge-in), turn-detector EOT revocation,
6
+ * planner-loop / message-handler yield points, MtpLlamaServer slot abort,
7
+ * TTS playback. Built on top of `AbortController` so any consumer that
8
+ * already understands `AbortSignal` (fetch / FFI / model calls) gets cancel
9
+ * for free.
10
+ *
11
+ * Invariants:
12
+ * - One token per `runId` (one utterance).
13
+ * - `abort()` is idempotent. The first reason wins; subsequent calls are
14
+ * ignored and leave the recorded reason unchanged.
15
+ * - `signal.aborted === true` after the first `abort()`.
16
+ * - Token is forward-compatible with the legacy `BargeInCancelToken`
17
+ * shape (`cancelled`, `reason`, `signal`) so existing voice pipeline
18
+ * consumers can adopt the canonical type without a wider refactor.
19
+ *
20
+ * This file deliberately has no runtime imports (no `@elizaos/core`, no
21
+ * voice-engine imports). It is the bottom of the cancellation stack — every
22
+ * layer above (runtime, plugin, app) imports this type, never the reverse.
23
+ */
24
+ /** Why a voice turn was cancelled. Stable enum — telemetry depends on it. */
25
+ export type VoiceCancellationReason = "barge-in" | "eot-revoked" | "user-cancel" | "timeout" | "external";
26
+ /**
27
+ * Listener fired exactly once when the token transitions from active →
28
+ * aborted. Listeners added after abort fire synchronously with the recorded
29
+ * reason.
30
+ */
31
+ export type VoiceCancellationListener = (reason: VoiceCancellationReason) => void;
32
+ /**
33
+ * Per-turn cancellation handle. Carries a stable `runId`, the optional slot
34
+ * id the LM is running against (for slot-abort), and a standard `AbortSignal`
35
+ * for fetch / model layers.
36
+ */
37
+ export interface VoiceCancellationToken {
38
+ /** Stable per-utterance id. Mirrors the voice state machine's turn id. */
39
+ readonly runId: string;
40
+ /**
41
+ * The MtpLlamaServer slot the optimistic LM is running on, when known.
42
+ * `abort()` fans this out to the slot-abort path on the inference server.
43
+ */
44
+ readonly slot?: number;
45
+ /** True once `abort()` has fired. Cheap polling field. */
46
+ readonly aborted: boolean;
47
+ /** Set when `abort()` fires; null while active. */
48
+ readonly reason: VoiceCancellationReason | null;
49
+ /** Standard `AbortSignal` for fetch / model / FFI consumers. */
50
+ readonly signal: AbortSignal;
51
+ /**
52
+ * Trip the token. Idempotent. First call wins; subsequent calls are
53
+ * ignored. Fires every registered `onAbort` listener synchronously.
54
+ */
55
+ abort(reason: VoiceCancellationReason): void;
56
+ /**
57
+ * Subscribe to abort. Returns an unsubscribe function. Listeners
58
+ * registered after the token has aborted fire synchronously with the
59
+ * recorded reason.
60
+ */
61
+ onAbort(listener: VoiceCancellationListener): () => void;
62
+ }
63
+ export interface CreateVoiceCancellationTokenOptions {
64
+ runId: string;
65
+ slot?: number;
66
+ /**
67
+ * Optional pre-existing `AbortSignal` to also honor. When this signal
68
+ * aborts (e.g. the runtime's per-turn signal from
69
+ * `TurnControllerRegistry`), the voice token aborts with reason
70
+ * `"external"` so the voice loop sees the runtime abort.
71
+ */
72
+ linkSignal?: AbortSignal;
73
+ }
74
+ /**
75
+ * Construct a fresh voice cancellation token.
76
+ *
77
+ * Implementation note: a single `AbortController` backs the public `signal`.
78
+ * Listener bookkeeping lives next to the controller (rather than via the
79
+ * `AbortSignal`'s native `addEventListener`) because we want to:
80
+ * 1. Guarantee listeners fire even when the abort was triggered by a
81
+ * linked signal (the native `addEventListener` path also works, but
82
+ * this is cheaper and gives us synchronous semantics for
83
+ * after-abort `onAbort` registrations).
84
+ * 2. Surface the `reason` enum, not a raw `DOMException` from the
85
+ * AbortSignal.
86
+ */
87
+ export declare function createVoiceCancellationToken(opts: CreateVoiceCancellationTokenOptions): VoiceCancellationToken;
88
+ /**
89
+ * Already-aborted token. Useful as a zero-cost default for code paths that
90
+ * have no live voice session but still want to type-thread a token through.
91
+ * The `runId` is the empty string — callers that depend on a stable id must
92
+ * pass their own.
93
+ */
94
+ export declare function createAbortedVoiceCancellationToken(reason?: VoiceCancellationReason): VoiceCancellationToken;
95
+ /**
96
+ * Per-room registry. Keeps the active voice token for each `roomId` so
97
+ * unrelated layers (the message handler, an HTTP route, the audio sink)
98
+ * can fetch the live token without holding a reference. Mirrors the shape
99
+ * of `TurnControllerRegistry` in `@elizaos/core/runtime/turn-controller`.
100
+ */
101
+ export declare class VoiceCancellationRegistry {
102
+ private readonly byRoom;
103
+ /**
104
+ * Replace the active token for `roomId`. The previous token (if any) is
105
+ * aborted with `"external"` so any orphaned background work cleans up.
106
+ * Returns the new token.
107
+ */
108
+ arm(roomId: string, opts: CreateVoiceCancellationTokenOptions): VoiceCancellationToken;
109
+ /** Fetch the active token for `roomId`, or null. */
110
+ current(roomId: string): VoiceCancellationToken | null;
111
+ /**
112
+ * Abort the active token for `roomId`. Returns true if a live token was
113
+ * aborted. Returns false when there is no active token or it's already aborted.
114
+ */
115
+ abort(roomId: string, reason: VoiceCancellationReason): boolean;
116
+ /**
117
+ * Abort every active token. Used by lifecycle shutdown (the runtime's
118
+ * `abortInflightInference` hook fires this so the voice loop drops in
119
+ * sync with the runtime).
120
+ */
121
+ abortAll(reason: VoiceCancellationReason): string[];
122
+ /** Snapshot of live room ids. Diagnostic. */
123
+ activeRoomIds(): string[];
124
+ /** Test seam: drop everything. */
125
+ clear(): void;
126
+ }
127
+ //# sourceMappingURL=voice-cancellation-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-cancellation-token.d.ts","sourceRoot":"","sources":["../../src/voice/voice-cancellation-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,6EAA6E;AAC7E,MAAM,MAAM,uBAAuB,GAC/B,UAAU,GACV,aAAa,GACb,aAAa,GACb,SAAS,GACT,UAAU,CAAC;AAEf;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACtC,MAAM,EAAE,uBAAuB,KAC5B,IAAI,CAAC;AAEV;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,0EAA0E;IAC1E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAChD,gEAAgE;IAChE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC7C;;;;OAIG;IACH,OAAO,CAAC,QAAQ,EAAE,yBAAyB,GAAG,MAAM,IAAI,CAAC;CAC1D;AAED,MAAM,WAAW,mCAAmC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B;AAOD;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,mCAAmC,GACxC,sBAAsB,CAgExB;AAED;;;;;GAKG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,GAAE,uBAAoC,GAC3C,sBAAsB,CAIxB;AAED;;;;;GAKG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;IAEpE;;;;OAIG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,mCAAmC,GACxC,sBAAsB;IAkBzB,oDAAoD;IACpD,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI;IAItD;;;OAGG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,GAAG,OAAO;IAO/D;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,EAAE;IAWnD,6CAA6C;IAC7C,aAAa,IAAI,MAAM,EAAE;IAOzB,kCAAkC;IAClC,KAAK,IAAI,IAAI;CAGd"}
@@ -0,0 +1,186 @@
1
+ /**
2
+ * Canonical voice cancellation token.
3
+ *
4
+ * Wave 3 W3-9 — one token per voice turn, fanned out to every layer that can
5
+ * cancel: VAD start-of-speech (barge-in), turn-detector EOT revocation,
6
+ * planner-loop / message-handler yield points, MtpLlamaServer slot abort,
7
+ * TTS playback. Built on top of `AbortController` so any consumer that
8
+ * already understands `AbortSignal` (fetch / FFI / model calls) gets cancel
9
+ * for free.
10
+ *
11
+ * Invariants:
12
+ * - One token per `runId` (one utterance).
13
+ * - `abort()` is idempotent. The first reason wins; subsequent calls are
14
+ * ignored and leave the recorded reason unchanged.
15
+ * - `signal.aborted === true` after the first `abort()`.
16
+ * - Token is forward-compatible with the legacy `BargeInCancelToken`
17
+ * shape (`cancelled`, `reason`, `signal`) so existing voice pipeline
18
+ * consumers can adopt the canonical type without a wider refactor.
19
+ *
20
+ * This file deliberately has no runtime imports (no `@elizaos/core`, no
21
+ * voice-engine imports). It is the bottom of the cancellation stack — every
22
+ * layer above (runtime, plugin, app) imports this type, never the reverse.
23
+ */
24
+ /**
25
+ * Construct a fresh voice cancellation token.
26
+ *
27
+ * Implementation note: a single `AbortController` backs the public `signal`.
28
+ * Listener bookkeeping lives next to the controller (rather than via the
29
+ * `AbortSignal`'s native `addEventListener`) because we want to:
30
+ * 1. Guarantee listeners fire even when the abort was triggered by a
31
+ * linked signal (the native `addEventListener` path also works, but
32
+ * this is cheaper and gives us synchronous semantics for
33
+ * after-abort `onAbort` registrations).
34
+ * 2. Surface the `reason` enum, not a raw `DOMException` from the
35
+ * AbortSignal.
36
+ */
37
+ export function createVoiceCancellationToken(opts) {
38
+ const controller = new AbortController();
39
+ const listeners = new Set();
40
+ const state = { aborted: false, reason: null };
41
+ const trip = (reason) => {
42
+ if (state.aborted)
43
+ return;
44
+ state.aborted = true;
45
+ state.reason = reason;
46
+ // Call listeners BEFORE aborting the controller so a listener that
47
+ // itself awaits the signal sees the same reason this token recorded
48
+ // (otherwise listeners that observe `signal.aborted` could race).
49
+ for (const listener of Array.from(listeners)) {
50
+ try {
51
+ listener(reason);
52
+ }
53
+ catch {
54
+ // Listener errors are swallowed; telemetry should not affect
55
+ // cancellation propagation.
56
+ }
57
+ }
58
+ controller.abort();
59
+ };
60
+ if (opts.linkSignal) {
61
+ if (opts.linkSignal.aborted) {
62
+ trip("external");
63
+ }
64
+ else {
65
+ const onLinkAbort = () => trip("external");
66
+ opts.linkSignal.addEventListener("abort", onLinkAbort, { once: true });
67
+ }
68
+ }
69
+ const token = {
70
+ runId: opts.runId,
71
+ ...(opts.slot !== undefined ? { slot: opts.slot } : {}),
72
+ get aborted() {
73
+ return state.aborted;
74
+ },
75
+ get reason() {
76
+ return state.reason;
77
+ },
78
+ signal: controller.signal,
79
+ abort(reason) {
80
+ trip(reason);
81
+ },
82
+ onAbort(listener) {
83
+ if (state.aborted) {
84
+ // Synchronous after-abort fan-out. Caller may still want the
85
+ // hook even though the token already aborted — fire once.
86
+ const reason = state.reason ?? "external";
87
+ try {
88
+ listener(reason);
89
+ }
90
+ catch {
91
+ // see above
92
+ }
93
+ return () => undefined;
94
+ }
95
+ listeners.add(listener);
96
+ return () => {
97
+ listeners.delete(listener);
98
+ };
99
+ },
100
+ };
101
+ return token;
102
+ }
103
+ /**
104
+ * Already-aborted token. Useful as a zero-cost default for code paths that
105
+ * have no live voice session but still want to type-thread a token through.
106
+ * The `runId` is the empty string — callers that depend on a stable id must
107
+ * pass their own.
108
+ */
109
+ export function createAbortedVoiceCancellationToken(reason = "external") {
110
+ const t = createVoiceCancellationToken({ runId: "" });
111
+ t.abort(reason);
112
+ return t;
113
+ }
114
+ /**
115
+ * Per-room registry. Keeps the active voice token for each `roomId` so
116
+ * unrelated layers (the message handler, an HTTP route, the audio sink)
117
+ * can fetch the live token without holding a reference. Mirrors the shape
118
+ * of `TurnControllerRegistry` in `@elizaos/core/runtime/turn-controller`.
119
+ */
120
+ export class VoiceCancellationRegistry {
121
+ byRoom = new Map();
122
+ /**
123
+ * Replace the active token for `roomId`. The previous token (if any) is
124
+ * aborted with `"external"` so any orphaned background work cleans up.
125
+ * Returns the new token.
126
+ */
127
+ arm(roomId, opts) {
128
+ const previous = this.byRoom.get(roomId);
129
+ if (previous && !previous.aborted) {
130
+ previous.abort("external");
131
+ }
132
+ const token = createVoiceCancellationToken(opts);
133
+ this.byRoom.set(roomId, token);
134
+ // Self-clean: when the token aborts, drop it from the map IF it is
135
+ // still the active one. (Tokens that have been replaced via a later
136
+ // `arm()` will already be evicted.)
137
+ token.onAbort(() => {
138
+ if (this.byRoom.get(roomId) === token) {
139
+ this.byRoom.delete(roomId);
140
+ }
141
+ });
142
+ return token;
143
+ }
144
+ /** Fetch the active token for `roomId`, or null. */
145
+ current(roomId) {
146
+ return this.byRoom.get(roomId) ?? null;
147
+ }
148
+ /**
149
+ * Abort the active token for `roomId`. Returns true if a live token was
150
+ * aborted. Returns false when there is no active token or it's already aborted.
151
+ */
152
+ abort(roomId, reason) {
153
+ const token = this.byRoom.get(roomId);
154
+ if (!token || token.aborted)
155
+ return false;
156
+ token.abort(reason);
157
+ return true;
158
+ }
159
+ /**
160
+ * Abort every active token. Used by lifecycle shutdown (the runtime's
161
+ * `abortInflightInference` hook fires this so the voice loop drops in
162
+ * sync with the runtime).
163
+ */
164
+ abortAll(reason) {
165
+ const aborted = [];
166
+ for (const [roomId, token] of Array.from(this.byRoom.entries())) {
167
+ if (!token.aborted) {
168
+ token.abort(reason);
169
+ aborted.push(roomId);
170
+ }
171
+ }
172
+ return aborted;
173
+ }
174
+ /** Snapshot of live room ids. Diagnostic. */
175
+ activeRoomIds() {
176
+ return Array.from(this.byRoom.keys()).filter((roomId) => {
177
+ const token = this.byRoom.get(roomId);
178
+ return token !== undefined && !token.aborted;
179
+ });
180
+ }
181
+ /** Test seam: drop everything. */
182
+ clear() {
183
+ this.byRoom.clear();
184
+ }
185
+ }
186
+ //# sourceMappingURL=voice-cancellation-token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-cancellation-token.js","sourceRoot":"","sources":["../../src/voice/voice-cancellation-token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAoEH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,4BAA4B,CAC1C,IAAyC;IAEzC,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,IAAI,GAAG,EAA6B,CAAC;IACvD,MAAM,KAAK,GAAkB,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAE9D,MAAM,IAAI,GAAG,CAAC,MAA+B,EAAQ,EAAE;QACrD,IAAI,KAAK,CAAC,OAAO;YAAE,OAAO;QAC1B,KAAK,CAAC,OAAO,GAAG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AC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACtC,OAAO,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;QAC/C,CAAC,CAAC,CAAC;IACL,CAAC;IAED,kCAAkC;IAClC,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF"}
package/voice-eot.d.ts ADDED
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Heuristic end-of-turn (EOT) scoring — the single source of truth (#8786).
3
+ *
4
+ * The semantic "is the speaker done?" syntactic heuristic used to be implemented
5
+ * twice with drifted behavior: the UI shell capture path
6
+ * (`packages/ui/src/voice/end-of-turn.ts:scoreEndOfTurn`) and the plugin's
7
+ * Tier-3 classifier (`plugin-local-inference .../voice/eot-classifier.ts:
8
+ * HeuristicEotClassifier`). The two had diverged — different rule ORDERING
9
+ * (the plugin scored a 2-word trail-off like "and so" as a complete short
10
+ * command; the UI correctly held it), a missing ellipsis rule on the plugin
11
+ * side, and a different question-tag set. This module is the one canonical
12
+ * implementation both surfaces consume.
13
+ *
14
+ * It lives in `@elizaos/shared` (which both already depend on), is pure +
15
+ * browser-safe (no Node deps), and ships via the `@elizaos/shared/voice-eot`
16
+ * subpath without pulling the whole barrel — mirroring `voice-wer`.
17
+ *
18
+ * The fused composite EOT (ABI v11, `CompositeEotClassifier`) is preferred when
19
+ * the loaded native build wires the semantic model; it blends THIS heuristic as
20
+ * its high-precision syntactic co-signal, so consolidating here also feeds the
21
+ * model path one definition.
22
+ */
23
+ /**
24
+ * Probability in [0,1] that `transcript` is a COMPLETE turn (the speaker is
25
+ * done). High → commit; low → the utterance trails off, keep listening.
26
+ *
27
+ * Rules fire in priority order; the first match wins:
28
+ *
29
+ * 1 Trailing ellipsis ("…" / "..") 0.20 (trail-off)
30
+ * 2 Sentence-final punctuation (. ! ?) 0.95
31
+ * 3 Question-tag suffix ("right?", "yeah", "correct") 0.85
32
+ * 4 Trailing conjunction (and / but / because / …) 0.15 (mid-clause)
33
+ * 5 Trailing preposition / article (to / the / with …) 0.20 (incomplete NP)
34
+ * 6 Short utterance (< 3 words, no trail-off) 0.70 (command/ack)
35
+ * 7 No signal 0.50
36
+ *
37
+ * Note the conjunction/preposition checks precede the short-utterance rule so a
38
+ * 2-word trail-off ("and so", "going to") is NOT misread as a complete short
39
+ * command.
40
+ */
41
+ export declare function scoreEndOfTurnHeuristic(transcript: string): number;
42
+ //# sourceMappingURL=voice-eot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-eot.d.ts","sourceRoot":"","sources":["../src/voice-eot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAqFH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAkClE"}
package/voice-eot.js ADDED
@@ -0,0 +1,158 @@
1
+ /**
2
+ * Heuristic end-of-turn (EOT) scoring — the single source of truth (#8786).
3
+ *
4
+ * The semantic "is the speaker done?" syntactic heuristic used to be implemented
5
+ * twice with drifted behavior: the UI shell capture path
6
+ * (`packages/ui/src/voice/end-of-turn.ts:scoreEndOfTurn`) and the plugin's
7
+ * Tier-3 classifier (`plugin-local-inference .../voice/eot-classifier.ts:
8
+ * HeuristicEotClassifier`). The two had diverged — different rule ORDERING
9
+ * (the plugin scored a 2-word trail-off like "and so" as a complete short
10
+ * command; the UI correctly held it), a missing ellipsis rule on the plugin
11
+ * side, and a different question-tag set. This module is the one canonical
12
+ * implementation both surfaces consume.
13
+ *
14
+ * It lives in `@elizaos/shared` (which both already depend on), is pure +
15
+ * browser-safe (no Node deps), and ships via the `@elizaos/shared/voice-eot`
16
+ * subpath without pulling the whole barrel — mirroring `voice-wer`.
17
+ *
18
+ * The fused composite EOT (ABI v11, `CompositeEotClassifier`) is preferred when
19
+ * the loaded native build wires the semantic model; it blends THIS heuristic as
20
+ * its high-precision syntactic co-signal, so consolidating here also feeds the
21
+ * model path one definition.
22
+ */
23
+ /** Conjunctions that strongly suggest the speaker is mid-clause. */
24
+ const TRAILING_CONJUNCTIONS = new Set([
25
+ "and",
26
+ "but",
27
+ "or",
28
+ "nor",
29
+ "yet",
30
+ "so",
31
+ "because",
32
+ "although",
33
+ "though",
34
+ "while",
35
+ "whereas",
36
+ "if",
37
+ "unless",
38
+ "until",
39
+ "since",
40
+ "when",
41
+ "where",
42
+ "which",
43
+ "that",
44
+ "who",
45
+ "whom",
46
+ "whose",
47
+ ]);
48
+ /** Prepositions / articles that imply an incomplete noun phrase follows. */
49
+ const TRAILING_INCOMPLETE = new Set([
50
+ "a",
51
+ "an",
52
+ "the",
53
+ "to",
54
+ "of",
55
+ "in",
56
+ "on",
57
+ "at",
58
+ "by",
59
+ "for",
60
+ "with",
61
+ "from",
62
+ "into",
63
+ "about",
64
+ "through",
65
+ "between",
66
+ "against",
67
+ "during",
68
+ "before",
69
+ "after",
70
+ "without",
71
+ "under",
72
+ "over",
73
+ "above",
74
+ "below",
75
+ "around",
76
+ "beside",
77
+ "beyond",
78
+ "like",
79
+ "near",
80
+ "past",
81
+ "via",
82
+ ]);
83
+ /**
84
+ * Question-tag suffixes that end an utterance (matched case-insensitively).
85
+ * The union of both prior surfaces: punctuated forms (the UI set) plus the
86
+ * bare forms (`right` / `yeah` / `correct`) the plugin relied on for the
87
+ * no-trailing-`?` case. A punctuated tag is also caught by the sentence-final
88
+ * punctuation rule, which fires first.
89
+ */
90
+ const QUESTION_TAGS = [
91
+ "right?",
92
+ "yeah?",
93
+ "ok?",
94
+ "okay?",
95
+ "correct?",
96
+ "hm?",
97
+ "huh?",
98
+ "eh?",
99
+ "right",
100
+ "yeah",
101
+ "correct",
102
+ ];
103
+ /**
104
+ * Probability in [0,1] that `transcript` is a COMPLETE turn (the speaker is
105
+ * done). High → commit; low → the utterance trails off, keep listening.
106
+ *
107
+ * Rules fire in priority order; the first match wins:
108
+ *
109
+ * 1 Trailing ellipsis ("…" / "..") 0.20 (trail-off)
110
+ * 2 Sentence-final punctuation (. ! ?) 0.95
111
+ * 3 Question-tag suffix ("right?", "yeah", "correct") 0.85
112
+ * 4 Trailing conjunction (and / but / because / …) 0.15 (mid-clause)
113
+ * 5 Trailing preposition / article (to / the / with …) 0.20 (incomplete NP)
114
+ * 6 Short utterance (< 3 words, no trail-off) 0.70 (command/ack)
115
+ * 7 No signal 0.50
116
+ *
117
+ * Note the conjunction/preposition checks precede the short-utterance rule so a
118
+ * 2-word trail-off ("and so", "going to") is NOT misread as a complete short
119
+ * command.
120
+ */
121
+ export function scoreEndOfTurnHeuristic(transcript) {
122
+ const text = transcript.trim();
123
+ if (text.length === 0)
124
+ return 0.5;
125
+ // A trailing ellipsis is the strongest trail-off signal — the speaker paused
126
+ // mid-thought. Checked BEFORE sentence-final punctuation, since "..." ends in ".".
127
+ if (/(\.{2,}|…)$/.test(text))
128
+ return 0.2;
129
+ // Sentence-final punctuation → almost certainly done.
130
+ if (/[.!?]$/.test(text))
131
+ return 0.95;
132
+ const lower = text.toLowerCase();
133
+ for (const tag of QUESTION_TAGS) {
134
+ if (lower.endsWith(tag))
135
+ return 0.85;
136
+ }
137
+ const words = lower
138
+ .replace(/[^a-z0-9'\s-]/gi, "")
139
+ .split(/\s+/)
140
+ .filter(Boolean);
141
+ if (words.length === 0)
142
+ return 0.5;
143
+ const lastWord = words[words.length - 1].replace(/[',;:-]+$/, "");
144
+ // Trailing conjunction / preposition / article → mid-clause, the speaker is
145
+ // continuing. Checked BEFORE the short-utterance rule so a 2-word trail-off
146
+ // ("going to", "and so") is NOT misread as a complete short command.
147
+ if (TRAILING_CONJUNCTIONS.has(lastWord))
148
+ return 0.15;
149
+ if (TRAILING_INCOMPLETE.has(lastWord))
150
+ return 0.2;
151
+ // Short utterance that doesn't trail off (a command / acknowledgement) →
152
+ // likely complete ("go home", "yes", "stop").
153
+ if (words.length < 3)
154
+ return 0.7;
155
+ // No strong signal either way — the recognizer's silence is enough.
156
+ return 0.5;
157
+ }
158
+ //# sourceMappingURL=voice-eot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-eot.js","sourceRoot":"","sources":["../src/voice-eot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,oEAAoE;AACpE,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACpC,KAAK;IACL,KAAK;IACL,IAAI;IACJ,KAAK;IACL,KAAK;IACL,IAAI;IACJ,SAAS;IACT,UAAU;IACV,QAAQ;IACR,OAAO;IACP,SAAS;IACT,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;CACR,CAAC,CAAC;AAEH,4EAA4E;AAC5E,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC;IAClC,GAAG;IACH,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,SAAS;IACT,SAAS;IACT,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,SAAS;IACT,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;CACN,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,aAAa,GAAG;IACpB,QAAQ;IACR,OAAO;IACP,KAAK;IACL,OAAO;IACP,UAAU;IACV,KAAK;IACL,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,SAAS;CACV,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,uBAAuB,CAAC,UAAkB;IACxD,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;IAC/B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IAElC,6EAA6E;IAC7E,mFAAmF;IACnF,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IACzC,sDAAsD;IACtD,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAErC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACjC,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;QAChC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;IACvC,CAAC;IAED,MAAM,KAAK,GAAG,KAAK;SAChB,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC;SAC9B,KAAK,CAAC,KAAK,CAAC;SACZ,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IAEnC,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAClE,4EAA4E;IAC5E,4EAA4E;IAC5E,qEAAqE;IACrE,IAAI,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO,IAAI,CAAC;IACrD,IAAI,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO,GAAG,CAAC;IAElD,yEAAyE;IACzE,8CAA8C;IAC9C,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IAEjC,oEAAoE;IACpE,OAAO,GAAG,CAAC;AACb,CAAC"}
package/voice-wer.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Word-error-rate scoring — the single source of truth (#8785).
3
+ *
4
+ * Both the headless metric library (plugin-local-inference `e2e-harness.ts`) and
5
+ * the headful self-test (ui `voice-selftest-harness.ts`) need WER; this used to
6
+ * be implemented twice with subtly different normalization. It lives in
7
+ * `@elizaos/shared` (which both already depend on) so there is exactly one
8
+ * definition. Pure + browser-safe (no Node deps), so it ships in the UI bundle
9
+ * via the `@elizaos/shared/voice-wer` subpath without pulling the whole barrel.
10
+ */
11
+ /** Lowercase, strip punctuation (keep letters/numbers/apostrophes), collapse WS. */
12
+ export declare function normalizeWerText(text: string): string;
13
+ /**
14
+ * Levenshtein word-error-rate of `hypothesis` against `reference`
15
+ * (substitutions + insertions + deletions, divided by reference word count).
16
+ * An empty reference scores 0 against an empty hypothesis, else 1.
17
+ */
18
+ export declare function wordErrorRate(reference: string, hypothesis: string): number;
19
+ //# sourceMappingURL=voice-wer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-wer.d.ts","sourceRoot":"","sources":["../src/voice-wer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAgB3E"}
package/voice-wer.js ADDED
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Word-error-rate scoring — the single source of truth (#8785).
3
+ *
4
+ * Both the headless metric library (plugin-local-inference `e2e-harness.ts`) and
5
+ * the headful self-test (ui `voice-selftest-harness.ts`) need WER; this used to
6
+ * be implemented twice with subtly different normalization. It lives in
7
+ * `@elizaos/shared` (which both already depend on) so there is exactly one
8
+ * definition. Pure + browser-safe (no Node deps), so it ships in the UI bundle
9
+ * via the `@elizaos/shared/voice-wer` subpath without pulling the whole barrel.
10
+ */
11
+ /** Lowercase, strip punctuation (keep letters/numbers/apostrophes), collapse WS. */
12
+ export function normalizeWerText(text) {
13
+ return text
14
+ .toLowerCase()
15
+ .replace(/[^\p{L}\p{N}'\s]/gu, " ")
16
+ .replace(/\s+/g, " ")
17
+ .trim();
18
+ }
19
+ /**
20
+ * Levenshtein word-error-rate of `hypothesis` against `reference`
21
+ * (substitutions + insertions + deletions, divided by reference word count).
22
+ * An empty reference scores 0 against an empty hypothesis, else 1.
23
+ */
24
+ export function wordErrorRate(reference, hypothesis) {
25
+ const refWords = normalizeWerText(reference).split(" ").filter(Boolean);
26
+ const hypWords = normalizeWerText(hypothesis).split(" ").filter(Boolean);
27
+ if (refWords.length === 0)
28
+ return hypWords.length === 0 ? 0 : 1;
29
+ const prev = Array.from({ length: hypWords.length + 1 }, (_, i) => i);
30
+ const curr = new Array(hypWords.length + 1).fill(0);
31
+ for (let i = 1; i <= refWords.length; i++) {
32
+ curr[0] = i;
33
+ for (let j = 1; j <= hypWords.length; j++) {
34
+ const cost = refWords[i - 1] === hypWords[j - 1] ? 0 : 1;
35
+ curr[j] = Math.min(prev[j] + 1, curr[j - 1] + 1, prev[j - 1] + cost);
36
+ }
37
+ for (let j = 0; j < curr.length; j++)
38
+ prev[j] = curr[j];
39
+ }
40
+ return prev[hypWords.length] / refWords.length;
41
+ }
42
+ //# sourceMappingURL=voice-wer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-wer.js","sourceRoot":"","sources":["../src/voice-wer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,oFAAoF;AACpF,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAO,IAAI;SACR,WAAW,EAAE;SACb,OAAO,CAAC,oBAAoB,EAAE,GAAG,CAAC;SAClC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,IAAI,EAAE,CAAC;AACZ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,SAAiB,EAAE,UAAkB;IACjE,MAAM,QAAQ,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC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