@agimon-ai/doompi-voice 0.0.1-alpha.73 → 0.0.1-alpha.76

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 (609) hide show
  1. package/README.md +11 -15
  2. package/package.json +28 -25
  3. package/src/types/clientMedia.ts +22 -9
  4. package/dist/_virtual/_rolldown/runtime.cjs +0 -1
  5. package/dist/_virtual/_rolldown/runtime.mjs +0 -1
  6. package/dist/api-contracts.cjs +0 -1
  7. package/dist/api-contracts.mjs +0 -1
  8. package/dist/apiContracts.d.cts +0 -2
  9. package/dist/apiContracts.d.mts +0 -2
  10. package/dist/clientMedia.cjs +0 -1
  11. package/dist/clientMedia.d.cts +0 -3
  12. package/dist/clientMedia.d.mts +0 -3
  13. package/dist/clientMedia.mjs +0 -1
  14. package/dist/extensions/pi.cjs +0 -2
  15. package/dist/extensions/pi.cjs.map +0 -1
  16. package/dist/extensions/pi.d.cts +0 -6
  17. package/dist/extensions/pi.d.cts.map +0 -1
  18. package/dist/extensions/pi.d.mts +0 -6
  19. package/dist/extensions/pi.d.mts.map +0 -1
  20. package/dist/extensions/pi.mjs +0 -2
  21. package/dist/extensions/pi.mjs.map +0 -1
  22. package/dist/extensions/server.cjs +0 -2
  23. package/dist/extensions/server.cjs.map +0 -1
  24. package/dist/extensions/server.d.cts +0 -5
  25. package/dist/extensions/server.d.cts.map +0 -1
  26. package/dist/extensions/server.d.mts +0 -5
  27. package/dist/extensions/server.d.mts.map +0 -1
  28. package/dist/extensions/server.mjs +0 -2
  29. package/dist/extensions/server.mjs.map +0 -1
  30. package/dist/index.cjs +0 -1
  31. package/dist/index.d.cts +0 -23
  32. package/dist/index.d.mts +0 -23
  33. package/dist/index.mjs +0 -1
  34. package/dist/src/constants/voice.cjs +0 -2
  35. package/dist/src/constants/voice.cjs.map +0 -1
  36. package/dist/src/constants/voice.mjs +0 -2
  37. package/dist/src/constants/voice.mjs.map +0 -1
  38. package/dist/src/constants/voiceRuntime.cjs +0 -2
  39. package/dist/src/constants/voiceRuntime.cjs.map +0 -1
  40. package/dist/src/constants/voiceRuntime.mjs +0 -2
  41. package/dist/src/constants/voiceRuntime.mjs.map +0 -1
  42. package/dist/src/controllers/clientMediaApi.cjs +0 -2
  43. package/dist/src/controllers/clientMediaApi.cjs.map +0 -1
  44. package/dist/src/controllers/clientMediaApi.mjs +0 -2
  45. package/dist/src/controllers/clientMediaApi.mjs.map +0 -1
  46. package/dist/src/controllers/liveVoiceController.cjs +0 -4
  47. package/dist/src/controllers/liveVoiceController.cjs.map +0 -1
  48. package/dist/src/controllers/liveVoiceController.mjs +0 -4
  49. package/dist/src/controllers/liveVoiceController.mjs.map +0 -1
  50. package/dist/src/controllers/manualTranscriptionApi.cjs +0 -2
  51. package/dist/src/controllers/manualTranscriptionApi.cjs.map +0 -1
  52. package/dist/src/controllers/manualTranscriptionApi.mjs +0 -2
  53. package/dist/src/controllers/manualTranscriptionApi.mjs.map +0 -1
  54. package/dist/src/controllers/minorModeCatalog.cjs +0 -2
  55. package/dist/src/controllers/minorModeCatalog.cjs.map +0 -1
  56. package/dist/src/controllers/minorModeCatalog.mjs +0 -2
  57. package/dist/src/controllers/minorModeCatalog.mjs.map +0 -1
  58. package/dist/src/controllers/narrationTool.cjs +0 -2
  59. package/dist/src/controllers/narrationTool.cjs.map +0 -1
  60. package/dist/src/controllers/narrationTool.d.cts +0 -7
  61. package/dist/src/controllers/narrationTool.d.mts +0 -7
  62. package/dist/src/controllers/narrationTool.mjs +0 -2
  63. package/dist/src/controllers/narrationTool.mjs.map +0 -1
  64. package/dist/src/controllers/realtimeContext.cjs +0 -2
  65. package/dist/src/controllers/realtimeContext.cjs.map +0 -1
  66. package/dist/src/controllers/realtimeContext.mjs +0 -2
  67. package/dist/src/controllers/realtimeContext.mjs.map +0 -1
  68. package/dist/src/controllers/realtimeDelivery.cjs +0 -2
  69. package/dist/src/controllers/realtimeDelivery.cjs.map +0 -1
  70. package/dist/src/controllers/realtimeDelivery.mjs +0 -2
  71. package/dist/src/controllers/realtimeDelivery.mjs.map +0 -1
  72. package/dist/src/controllers/transferVoiceTool.cjs +0 -3
  73. package/dist/src/controllers/transferVoiceTool.cjs.map +0 -1
  74. package/dist/src/controllers/transferVoiceTool.mjs +0 -3
  75. package/dist/src/controllers/transferVoiceTool.mjs.map +0 -1
  76. package/dist/src/controllers/voice.cjs +0 -2
  77. package/dist/src/controllers/voice.cjs.map +0 -1
  78. package/dist/src/controllers/voice.d.cts +0 -109
  79. package/dist/src/controllers/voice.d.cts.map +0 -1
  80. package/dist/src/controllers/voice.d.mts +0 -109
  81. package/dist/src/controllers/voice.d.mts.map +0 -1
  82. package/dist/src/controllers/voice.mjs +0 -2
  83. package/dist/src/controllers/voice.mjs.map +0 -1
  84. package/dist/src/controllers/voiceClientSettingsApi.cjs +0 -2
  85. package/dist/src/controllers/voiceClientSettingsApi.cjs.map +0 -1
  86. package/dist/src/controllers/voiceClientSettingsApi.mjs +0 -2
  87. package/dist/src/controllers/voiceClientSettingsApi.mjs.map +0 -1
  88. package/dist/src/controllers/voiceCommandContext.cjs +0 -2
  89. package/dist/src/controllers/voiceCommandContext.cjs.map +0 -1
  90. package/dist/src/controllers/voiceCommandContext.mjs +0 -2
  91. package/dist/src/controllers/voiceCommandContext.mjs.map +0 -1
  92. package/dist/src/controllers/voiceConfig.cjs +0 -2
  93. package/dist/src/controllers/voiceConfig.cjs.map +0 -1
  94. package/dist/src/controllers/voiceConfig.mjs +0 -2
  95. package/dist/src/controllers/voiceConfig.mjs.map +0 -1
  96. package/dist/src/controllers/voiceMediaHubChannel.cjs +0 -2
  97. package/dist/src/controllers/voiceMediaHubChannel.cjs.map +0 -1
  98. package/dist/src/controllers/voiceMediaHubChannel.mjs +0 -2
  99. package/dist/src/controllers/voiceMediaHubChannel.mjs.map +0 -1
  100. package/dist/src/controllers/voiceModeController.cjs +0 -2
  101. package/dist/src/controllers/voiceModeController.cjs.map +0 -1
  102. package/dist/src/controllers/voiceModeController.mjs +0 -2
  103. package/dist/src/controllers/voiceModeController.mjs.map +0 -1
  104. package/dist/src/controllers/voicePlugin.cjs +0 -2
  105. package/dist/src/controllers/voicePlugin.cjs.map +0 -1
  106. package/dist/src/controllers/voicePlugin.mjs +0 -2
  107. package/dist/src/controllers/voicePlugin.mjs.map +0 -1
  108. package/dist/src/controllers/voiceServer.cjs +0 -2
  109. package/dist/src/controllers/voiceServer.cjs.map +0 -1
  110. package/dist/src/controllers/voiceServer.mjs +0 -2
  111. package/dist/src/controllers/voiceServer.mjs.map +0 -1
  112. package/dist/src/controllers/voiceSessionApi.cjs +0 -2
  113. package/dist/src/controllers/voiceSessionApi.cjs.map +0 -1
  114. package/dist/src/controllers/voiceSessionApi.mjs +0 -2
  115. package/dist/src/controllers/voiceSessionApi.mjs.map +0 -1
  116. package/dist/src/controllers/voiceToolRender.cjs +0 -2
  117. package/dist/src/controllers/voiceToolRender.cjs.map +0 -1
  118. package/dist/src/controllers/voiceToolRender.mjs +0 -2
  119. package/dist/src/controllers/voiceToolRender.mjs.map +0 -1
  120. package/dist/src/controllers/voiceTools.cjs +0 -2
  121. package/dist/src/controllers/voiceTools.cjs.map +0 -1
  122. package/dist/src/controllers/voiceTools.d.cts +0 -3
  123. package/dist/src/controllers/voiceTools.d.mts +0 -3
  124. package/dist/src/controllers/voiceTools.mjs +0 -2
  125. package/dist/src/controllers/voiceTools.mjs.map +0 -1
  126. package/dist/src/models/autonomousVoiceMachine.cjs +0 -2
  127. package/dist/src/models/autonomousVoiceMachine.cjs.map +0 -1
  128. package/dist/src/models/autonomousVoiceMachine.d.cts +0 -2
  129. package/dist/src/models/autonomousVoiceMachine.d.mts +0 -2
  130. package/dist/src/models/autonomousVoiceMachine.mjs +0 -2
  131. package/dist/src/models/autonomousVoiceMachine.mjs.map +0 -1
  132. package/dist/src/models/autonomousVoiceUi.cjs +0 -2
  133. package/dist/src/models/autonomousVoiceUi.cjs.map +0 -1
  134. package/dist/src/models/autonomousVoiceUi.mjs +0 -2
  135. package/dist/src/models/autonomousVoiceUi.mjs.map +0 -1
  136. package/dist/src/models/narrationBargeIn.cjs +0 -2
  137. package/dist/src/models/narrationBargeIn.cjs.map +0 -1
  138. package/dist/src/models/narrationBargeIn.d.cts +0 -15
  139. package/dist/src/models/narrationBargeIn.d.cts.map +0 -1
  140. package/dist/src/models/narrationBargeIn.d.mts +0 -15
  141. package/dist/src/models/narrationBargeIn.d.mts.map +0 -1
  142. package/dist/src/models/narrationBargeIn.mjs +0 -2
  143. package/dist/src/models/narrationBargeIn.mjs.map +0 -1
  144. package/dist/src/models/voiceActivity.cjs +0 -2
  145. package/dist/src/models/voiceActivity.cjs.map +0 -1
  146. package/dist/src/models/voiceActivity.d.cts +0 -26
  147. package/dist/src/models/voiceActivity.d.cts.map +0 -1
  148. package/dist/src/models/voiceActivity.d.mts +0 -26
  149. package/dist/src/models/voiceActivity.d.mts.map +0 -1
  150. package/dist/src/models/voiceActivity.mjs +0 -2
  151. package/dist/src/models/voiceActivity.mjs.map +0 -1
  152. package/dist/src/models/voiceMode.cjs +0 -2
  153. package/dist/src/models/voiceMode.cjs.map +0 -1
  154. package/dist/src/models/voiceMode.d.cts +0 -10
  155. package/dist/src/models/voiceMode.d.cts.map +0 -1
  156. package/dist/src/models/voiceMode.d.mts +0 -10
  157. package/dist/src/models/voiceMode.d.mts.map +0 -1
  158. package/dist/src/models/voiceMode.mjs +0 -2
  159. package/dist/src/models/voiceMode.mjs.map +0 -1
  160. package/dist/src/schemas/apiContracts.cjs +0 -2
  161. package/dist/src/schemas/apiContracts.cjs.map +0 -1
  162. package/dist/src/schemas/apiContracts.d.cts +0 -53
  163. package/dist/src/schemas/apiContracts.d.cts.map +0 -1
  164. package/dist/src/schemas/apiContracts.d.mts +0 -53
  165. package/dist/src/schemas/apiContracts.d.mts.map +0 -1
  166. package/dist/src/schemas/apiContracts.mjs +0 -2
  167. package/dist/src/schemas/apiContracts.mjs.map +0 -1
  168. package/dist/src/schemas/voiceControl.cjs +0 -2
  169. package/dist/src/schemas/voiceControl.cjs.map +0 -1
  170. package/dist/src/schemas/voiceControl.mjs +0 -2
  171. package/dist/src/schemas/voiceControl.mjs.map +0 -1
  172. package/dist/src/services/autonomousEndpoint/index.cjs +0 -2
  173. package/dist/src/services/autonomousEndpoint/index.cjs.map +0 -1
  174. package/dist/src/services/autonomousEndpoint/index.mjs +0 -2
  175. package/dist/src/services/autonomousEndpoint/index.mjs.map +0 -1
  176. package/dist/src/services/autonomousTurn/index.cjs +0 -2
  177. package/dist/src/services/autonomousTurn/index.cjs.map +0 -1
  178. package/dist/src/services/autonomousTurn/index.d.cts +0 -6
  179. package/dist/src/services/autonomousTurn/index.d.cts.map +0 -1
  180. package/dist/src/services/autonomousTurn/index.d.mts +0 -6
  181. package/dist/src/services/autonomousTurn/index.d.mts.map +0 -1
  182. package/dist/src/services/autonomousTurn/index.mjs +0 -2
  183. package/dist/src/services/autonomousTurn/index.mjs.map +0 -1
  184. package/dist/src/services/autonomousVoiceSession/index.cjs +0 -2
  185. package/dist/src/services/autonomousVoiceSession/index.cjs.map +0 -1
  186. package/dist/src/services/autonomousVoiceSession/index.mjs +0 -2
  187. package/dist/src/services/autonomousVoiceSession/index.mjs.map +0 -1
  188. package/dist/src/services/autonomousVoiceTelemetry/index.cjs +0 -2
  189. package/dist/src/services/autonomousVoiceTelemetry/index.cjs.map +0 -1
  190. package/dist/src/services/autonomousVoiceTelemetry/index.d.cts +0 -8
  191. package/dist/src/services/autonomousVoiceTelemetry/index.d.cts.map +0 -1
  192. package/dist/src/services/autonomousVoiceTelemetry/index.d.mts +0 -8
  193. package/dist/src/services/autonomousVoiceTelemetry/index.d.mts.map +0 -1
  194. package/dist/src/services/autonomousVoiceTelemetry/index.mjs +0 -2
  195. package/dist/src/services/autonomousVoiceTelemetry/index.mjs.map +0 -1
  196. package/dist/src/services/captureSession/index.cjs +0 -2
  197. package/dist/src/services/captureSession/index.cjs.map +0 -1
  198. package/dist/src/services/captureSession/index.mjs +0 -2
  199. package/dist/src/services/captureSession/index.mjs.map +0 -1
  200. package/dist/src/services/catalog/index.cjs +0 -2
  201. package/dist/src/services/catalog/index.cjs.map +0 -1
  202. package/dist/src/services/catalog/index.mjs +0 -2
  203. package/dist/src/services/catalog/index.mjs.map +0 -1
  204. package/dist/src/services/clientMedia/index.cjs +0 -2
  205. package/dist/src/services/clientMedia/index.cjs.map +0 -1
  206. package/dist/src/services/clientMedia/index.d.cts +0 -24
  207. package/dist/src/services/clientMedia/index.d.cts.map +0 -1
  208. package/dist/src/services/clientMedia/index.d.mts +0 -24
  209. package/dist/src/services/clientMedia/index.d.mts.map +0 -1
  210. package/dist/src/services/clientMedia/index.mjs +0 -2
  211. package/dist/src/services/clientMedia/index.mjs.map +0 -1
  212. package/dist/src/services/codexAuth/index.cjs +0 -2
  213. package/dist/src/services/codexAuth/index.cjs.map +0 -1
  214. package/dist/src/services/codexAuth/index.mjs +0 -2
  215. package/dist/src/services/codexAuth/index.mjs.map +0 -1
  216. package/dist/src/services/codexAuthStorage/index.cjs +0 -2
  217. package/dist/src/services/codexAuthStorage/index.cjs.map +0 -1
  218. package/dist/src/services/codexAuthStorage/index.mjs +0 -2
  219. package/dist/src/services/codexAuthStorage/index.mjs.map +0 -1
  220. package/dist/src/services/codexLogin/index.cjs +0 -2
  221. package/dist/src/services/codexLogin/index.cjs.map +0 -1
  222. package/dist/src/services/codexLogin/index.mjs +0 -2
  223. package/dist/src/services/codexLogin/index.mjs.map +0 -1
  224. package/dist/src/services/codexRealtime/index.cjs +0 -2
  225. package/dist/src/services/codexRealtime/index.cjs.map +0 -1
  226. package/dist/src/services/codexRealtime/index.mjs +0 -2
  227. package/dist/src/services/codexRealtime/index.mjs.map +0 -1
  228. package/dist/src/services/commandCorrection/index.cjs +0 -7
  229. package/dist/src/services/commandCorrection/index.cjs.map +0 -1
  230. package/dist/src/services/commandCorrection/index.d.cts +0 -23
  231. package/dist/src/services/commandCorrection/index.d.cts.map +0 -1
  232. package/dist/src/services/commandCorrection/index.d.mts +0 -23
  233. package/dist/src/services/commandCorrection/index.d.mts.map +0 -1
  234. package/dist/src/services/commandCorrection/index.mjs +0 -7
  235. package/dist/src/services/commandCorrection/index.mjs.map +0 -1
  236. package/dist/src/services/commandCorrection/type.d.cts +0 -25
  237. package/dist/src/services/commandCorrection/type.d.cts.map +0 -1
  238. package/dist/src/services/commandCorrection/type.d.mts +0 -25
  239. package/dist/src/services/commandCorrection/type.d.mts.map +0 -1
  240. package/dist/src/services/controlPhraseMatcher/index.cjs +0 -2
  241. package/dist/src/services/controlPhraseMatcher/index.cjs.map +0 -1
  242. package/dist/src/services/controlPhraseMatcher/index.mjs +0 -2
  243. package/dist/src/services/controlPhraseMatcher/index.mjs.map +0 -1
  244. package/dist/src/services/download/index.cjs +0 -2
  245. package/dist/src/services/download/index.cjs.map +0 -1
  246. package/dist/src/services/download/index.mjs +0 -2
  247. package/dist/src/services/download/index.mjs.map +0 -1
  248. package/dist/src/services/encodedAudio/index.cjs +0 -2
  249. package/dist/src/services/encodedAudio/index.cjs.map +0 -1
  250. package/dist/src/services/encodedAudio/index.mjs +0 -2
  251. package/dist/src/services/encodedAudio/index.mjs.map +0 -1
  252. package/dist/src/services/fallbackNarration/index.cjs +0 -11
  253. package/dist/src/services/fallbackNarration/index.cjs.map +0 -1
  254. package/dist/src/services/fallbackNarration/index.d.cts +0 -14
  255. package/dist/src/services/fallbackNarration/index.d.cts.map +0 -1
  256. package/dist/src/services/fallbackNarration/index.d.mts +0 -14
  257. package/dist/src/services/fallbackNarration/index.d.mts.map +0 -1
  258. package/dist/src/services/fallbackNarration/index.mjs +0 -11
  259. package/dist/src/services/fallbackNarration/index.mjs.map +0 -1
  260. package/dist/src/services/fallbackNarration/type.d.cts +0 -29
  261. package/dist/src/services/fallbackNarration/type.d.cts.map +0 -1
  262. package/dist/src/services/fallbackNarration/type.d.mts +0 -29
  263. package/dist/src/services/fallbackNarration/type.d.mts.map +0 -1
  264. package/dist/src/services/fileTurnSpool/index.cjs +0 -2
  265. package/dist/src/services/fileTurnSpool/index.cjs.map +0 -1
  266. package/dist/src/services/fileTurnSpool/index.mjs +0 -2
  267. package/dist/src/services/fileTurnSpool/index.mjs.map +0 -1
  268. package/dist/src/services/infrastructure/index.cjs +0 -3
  269. package/dist/src/services/infrastructure/index.cjs.map +0 -1
  270. package/dist/src/services/infrastructure/index.d.cts +0 -64
  271. package/dist/src/services/infrastructure/index.d.cts.map +0 -1
  272. package/dist/src/services/infrastructure/index.d.mts +0 -64
  273. package/dist/src/services/infrastructure/index.d.mts.map +0 -1
  274. package/dist/src/services/infrastructure/index.mjs +0 -3
  275. package/dist/src/services/infrastructure/index.mjs.map +0 -1
  276. package/dist/src/services/install/index.cjs +0 -2
  277. package/dist/src/services/install/index.cjs.map +0 -1
  278. package/dist/src/services/install/index.mjs +0 -2
  279. package/dist/src/services/install/index.mjs.map +0 -1
  280. package/dist/src/services/manualTranscription/index.cjs +0 -2
  281. package/dist/src/services/manualTranscription/index.cjs.map +0 -1
  282. package/dist/src/services/manualTranscription/index.mjs +0 -2
  283. package/dist/src/services/manualTranscription/index.mjs.map +0 -1
  284. package/dist/src/services/manualTranscriptionConfig/index.cjs +0 -2
  285. package/dist/src/services/manualTranscriptionConfig/index.cjs.map +0 -1
  286. package/dist/src/services/manualTranscriptionConfig/index.mjs +0 -2
  287. package/dist/src/services/manualTranscriptionConfig/index.mjs.map +0 -1
  288. package/dist/src/services/narration/index.cjs +0 -2
  289. package/dist/src/services/narration/index.cjs.map +0 -1
  290. package/dist/src/services/narration/index.d.cts +0 -56
  291. package/dist/src/services/narration/index.d.cts.map +0 -1
  292. package/dist/src/services/narration/index.d.mts +0 -56
  293. package/dist/src/services/narration/index.d.mts.map +0 -1
  294. package/dist/src/services/narration/index.mjs +0 -2
  295. package/dist/src/services/narration/index.mjs.map +0 -1
  296. package/dist/src/services/narrationBargeIn/index.cjs +0 -2
  297. package/dist/src/services/narrationBargeIn/index.cjs.map +0 -1
  298. package/dist/src/services/narrationBargeIn/index.mjs +0 -2
  299. package/dist/src/services/narrationBargeIn/index.mjs.map +0 -1
  300. package/dist/src/services/narrationPlayback/index.cjs +0 -2
  301. package/dist/src/services/narrationPlayback/index.cjs.map +0 -1
  302. package/dist/src/services/narrationPlayback/index.d.cts +0 -55
  303. package/dist/src/services/narrationPlayback/index.d.cts.map +0 -1
  304. package/dist/src/services/narrationPlayback/index.d.mts +0 -55
  305. package/dist/src/services/narrationPlayback/index.d.mts.map +0 -1
  306. package/dist/src/services/narrationPlayback/index.mjs +0 -2
  307. package/dist/src/services/narrationPlayback/index.mjs.map +0 -1
  308. package/dist/src/services/pcm/index.cjs +0 -2
  309. package/dist/src/services/pcm/index.cjs.map +0 -1
  310. package/dist/src/services/pcm/index.d.cts +0 -15
  311. package/dist/src/services/pcm/index.d.cts.map +0 -1
  312. package/dist/src/services/pcm/index.d.mts +0 -15
  313. package/dist/src/services/pcm/index.d.mts.map +0 -1
  314. package/dist/src/services/pcm/index.mjs +0 -2
  315. package/dist/src/services/pcm/index.mjs.map +0 -1
  316. package/dist/src/services/playbackGate/index.cjs +0 -2
  317. package/dist/src/services/playbackGate/index.cjs.map +0 -1
  318. package/dist/src/services/playbackGate/index.mjs +0 -2
  319. package/dist/src/services/playbackGate/index.mjs.map +0 -1
  320. package/dist/src/services/realtimeHost/index.cjs +0 -2
  321. package/dist/src/services/realtimeHost/index.cjs.map +0 -1
  322. package/dist/src/services/realtimeHost/index.d.cts +0 -11
  323. package/dist/src/services/realtimeHost/index.d.cts.map +0 -1
  324. package/dist/src/services/realtimeHost/index.d.mts +0 -11
  325. package/dist/src/services/realtimeHost/index.d.mts.map +0 -1
  326. package/dist/src/services/realtimeHost/index.mjs +0 -2
  327. package/dist/src/services/realtimeHost/index.mjs.map +0 -1
  328. package/dist/src/services/realtimeMediaBroker/index.cjs +0 -2
  329. package/dist/src/services/realtimeMediaBroker/index.cjs.map +0 -1
  330. package/dist/src/services/realtimeMediaBroker/index.mjs +0 -2
  331. package/dist/src/services/realtimeMediaBroker/index.mjs.map +0 -1
  332. package/dist/src/services/realtimeProtocol/index.cjs +0 -2
  333. package/dist/src/services/realtimeProtocol/index.cjs.map +0 -1
  334. package/dist/src/services/realtimeProtocol/index.mjs +0 -2
  335. package/dist/src/services/realtimeProtocol/index.mjs.map +0 -1
  336. package/dist/src/services/realtimeRuntime/index.cjs +0 -2
  337. package/dist/src/services/realtimeRuntime/index.cjs.map +0 -1
  338. package/dist/src/services/realtimeRuntime/index.d.cts +0 -8
  339. package/dist/src/services/realtimeRuntime/index.d.cts.map +0 -1
  340. package/dist/src/services/realtimeRuntime/index.d.mts +0 -8
  341. package/dist/src/services/realtimeRuntime/index.d.mts.map +0 -1
  342. package/dist/src/services/realtimeRuntime/index.mjs +0 -2
  343. package/dist/src/services/realtimeRuntime/index.mjs.map +0 -1
  344. package/dist/src/services/realtimeSession/index.cjs +0 -2
  345. package/dist/src/services/realtimeSession/index.cjs.map +0 -1
  346. package/dist/src/services/realtimeSession/index.mjs +0 -2
  347. package/dist/src/services/realtimeSession/index.mjs.map +0 -1
  348. package/dist/src/services/semanticEcho/index.cjs +0 -2
  349. package/dist/src/services/semanticEcho/index.cjs.map +0 -1
  350. package/dist/src/services/semanticEcho/index.d.cts +0 -42
  351. package/dist/src/services/semanticEcho/index.d.cts.map +0 -1
  352. package/dist/src/services/semanticEcho/index.d.mts +0 -42
  353. package/dist/src/services/semanticEcho/index.d.mts.map +0 -1
  354. package/dist/src/services/semanticEcho/index.mjs +0 -2
  355. package/dist/src/services/semanticEcho/index.mjs.map +0 -1
  356. package/dist/src/services/semanticEcho/type.d.cts +0 -52
  357. package/dist/src/services/semanticEcho/type.d.cts.map +0 -1
  358. package/dist/src/services/semanticEcho/type.d.mts +0 -52
  359. package/dist/src/services/semanticEcho/type.d.mts.map +0 -1
  360. package/dist/src/services/sessionVoiceOwnership/index.cjs +0 -2
  361. package/dist/src/services/sessionVoiceOwnership/index.cjs.map +0 -1
  362. package/dist/src/services/sessionVoiceOwnership/index.d.cts +0 -8
  363. package/dist/src/services/sessionVoiceOwnership/index.d.cts.map +0 -1
  364. package/dist/src/services/sessionVoiceOwnership/index.d.mts +0 -8
  365. package/dist/src/services/sessionVoiceOwnership/index.d.mts.map +0 -1
  366. package/dist/src/services/sessionVoiceOwnership/index.mjs +0 -2
  367. package/dist/src/services/sessionVoiceOwnership/index.mjs.map +0 -1
  368. package/dist/src/services/silero/index.cjs +0 -2
  369. package/dist/src/services/silero/index.cjs.map +0 -1
  370. package/dist/src/services/silero/index.mjs +0 -2
  371. package/dist/src/services/silero/index.mjs.map +0 -1
  372. package/dist/src/services/transcriptAdmission/index.cjs +0 -7
  373. package/dist/src/services/transcriptAdmission/index.cjs.map +0 -1
  374. package/dist/src/services/transcriptAdmission/index.d.cts +0 -3
  375. package/dist/src/services/transcriptAdmission/index.d.mts +0 -3
  376. package/dist/src/services/transcriptAdmission/index.mjs +0 -7
  377. package/dist/src/services/transcriptAdmission/index.mjs.map +0 -1
  378. package/dist/src/services/transcriptAdmission/type.d.cts +0 -44
  379. package/dist/src/services/transcriptAdmission/type.d.cts.map +0 -1
  380. package/dist/src/services/transcriptAdmission/type.d.mts +0 -44
  381. package/dist/src/services/transcriptAdmission/type.d.mts.map +0 -1
  382. package/dist/src/services/transcriptPolicy/index.cjs +0 -2
  383. package/dist/src/services/transcriptPolicy/index.cjs.map +0 -1
  384. package/dist/src/services/transcriptPolicy/index.mjs +0 -2
  385. package/dist/src/services/transcriptPolicy/index.mjs.map +0 -1
  386. package/dist/src/services/transcriptionCoordinator/index.cjs +0 -2
  387. package/dist/src/services/transcriptionCoordinator/index.cjs.map +0 -1
  388. package/dist/src/services/transcriptionCoordinator/index.mjs +0 -2
  389. package/dist/src/services/transcriptionCoordinator/index.mjs.map +0 -1
  390. package/dist/src/services/turnTranscriber/index.cjs +0 -2
  391. package/dist/src/services/turnTranscriber/index.cjs.map +0 -1
  392. package/dist/src/services/turnTranscriber/index.mjs +0 -2
  393. package/dist/src/services/turnTranscriber/index.mjs.map +0 -1
  394. package/dist/src/services/utterance/index.cjs +0 -2
  395. package/dist/src/services/utterance/index.cjs.map +0 -1
  396. package/dist/src/services/utterance/index.d.cts +0 -44
  397. package/dist/src/services/utterance/index.d.cts.map +0 -1
  398. package/dist/src/services/utterance/index.d.mts +0 -44
  399. package/dist/src/services/utterance/index.d.mts.map +0 -1
  400. package/dist/src/services/utterance/index.mjs +0 -2
  401. package/dist/src/services/utterance/index.mjs.map +0 -1
  402. package/dist/src/services/vad/index.cjs +0 -2
  403. package/dist/src/services/vad/index.cjs.map +0 -1
  404. package/dist/src/services/vad/index.d.cts +0 -87
  405. package/dist/src/services/vad/index.d.cts.map +0 -1
  406. package/dist/src/services/vad/index.d.mts +0 -87
  407. package/dist/src/services/vad/index.d.mts.map +0 -1
  408. package/dist/src/services/vad/index.mjs +0 -2
  409. package/dist/src/services/vad/index.mjs.map +0 -1
  410. package/dist/src/services/voiceClientSettings/index.cjs +0 -2
  411. package/dist/src/services/voiceClientSettings/index.cjs.map +0 -1
  412. package/dist/src/services/voiceClientSettings/index.mjs +0 -2
  413. package/dist/src/services/voiceClientSettings/index.mjs.map +0 -1
  414. package/dist/src/services/voiceConfig/index.cjs +0 -2
  415. package/dist/src/services/voiceConfig/index.cjs.map +0 -1
  416. package/dist/src/services/voiceConfig/index.d.cts +0 -7
  417. package/dist/src/services/voiceConfig/index.d.cts.map +0 -1
  418. package/dist/src/services/voiceConfig/index.d.mts +0 -7
  419. package/dist/src/services/voiceConfig/index.d.mts.map +0 -1
  420. package/dist/src/services/voiceConfig/index.mjs +0 -2
  421. package/dist/src/services/voiceConfig/index.mjs.map +0 -1
  422. package/dist/src/services/voiceDelivery/index.cjs +0 -2
  423. package/dist/src/services/voiceDelivery/index.cjs.map +0 -1
  424. package/dist/src/services/voiceDelivery/index.d.cts +0 -5
  425. package/dist/src/services/voiceDelivery/index.d.cts.map +0 -1
  426. package/dist/src/services/voiceDelivery/index.d.mts +0 -5
  427. package/dist/src/services/voiceDelivery/index.d.mts.map +0 -1
  428. package/dist/src/services/voiceDelivery/index.mjs +0 -2
  429. package/dist/src/services/voiceDelivery/index.mjs.map +0 -1
  430. package/dist/src/services/voiceDependencies/index.cjs +0 -2
  431. package/dist/src/services/voiceDependencies/index.cjs.map +0 -1
  432. package/dist/src/services/voiceDependencies/index.d.cts +0 -5
  433. package/dist/src/services/voiceDependencies/index.d.cts.map +0 -1
  434. package/dist/src/services/voiceDependencies/index.d.mts +0 -5
  435. package/dist/src/services/voiceDependencies/index.d.mts.map +0 -1
  436. package/dist/src/services/voiceDependencies/index.mjs +0 -2
  437. package/dist/src/services/voiceDependencies/index.mjs.map +0 -1
  438. package/dist/src/services/voiceOwnershipCoordinator/index.cjs +0 -2
  439. package/dist/src/services/voiceOwnershipCoordinator/index.cjs.map +0 -1
  440. package/dist/src/services/voiceOwnershipCoordinator/index.mjs +0 -2
  441. package/dist/src/services/voiceOwnershipCoordinator/index.mjs.map +0 -1
  442. package/dist/src/services/voicePrompt/index.cjs +0 -2
  443. package/dist/src/services/voicePrompt/index.cjs.map +0 -1
  444. package/dist/src/services/voicePrompt/index.mjs +0 -2
  445. package/dist/src/services/voicePrompt/index.mjs.map +0 -1
  446. package/dist/src/services/voiceReadiness/index.cjs +0 -2
  447. package/dist/src/services/voiceReadiness/index.cjs.map +0 -1
  448. package/dist/src/services/voiceReadiness/index.mjs +0 -2
  449. package/dist/src/services/voiceReadiness/index.mjs.map +0 -1
  450. package/dist/src/services/voiceSessionController/index.cjs +0 -2
  451. package/dist/src/services/voiceSessionController/index.cjs.map +0 -1
  452. package/dist/src/services/voiceSessionController/index.d.cts +0 -33
  453. package/dist/src/services/voiceSessionController/index.d.cts.map +0 -1
  454. package/dist/src/services/voiceSessionController/index.d.mts +0 -33
  455. package/dist/src/services/voiceSessionController/index.d.mts.map +0 -1
  456. package/dist/src/services/voiceSessionController/index.mjs +0 -2
  457. package/dist/src/services/voiceSessionController/index.mjs.map +0 -1
  458. package/dist/src/services/voiceToolPrompt/index.cjs +0 -5
  459. package/dist/src/services/voiceToolPrompt/index.cjs.map +0 -1
  460. package/dist/src/services/voiceToolPrompt/index.mjs +0 -5
  461. package/dist/src/services/voiceToolPrompt/index.mjs.map +0 -1
  462. package/dist/src/services/voiceTools/index.cjs +0 -2
  463. package/dist/src/services/voiceTools/index.cjs.map +0 -1
  464. package/dist/src/services/voiceTools/index.d.cts +0 -7
  465. package/dist/src/services/voiceTools/index.d.cts.map +0 -1
  466. package/dist/src/services/voiceTools/index.d.mts +0 -7
  467. package/dist/src/services/voiceTools/index.d.mts.map +0 -1
  468. package/dist/src/services/voiceTools/index.mjs +0 -2
  469. package/dist/src/services/voiceTools/index.mjs.map +0 -1
  470. package/dist/src/services/voiceWorkerAutoCaptureController/index.cjs +0 -2
  471. package/dist/src/services/voiceWorkerAutoCaptureController/index.cjs.map +0 -1
  472. package/dist/src/services/voiceWorkerAutoCaptureController/index.d.cts +0 -72
  473. package/dist/src/services/voiceWorkerAutoCaptureController/index.d.cts.map +0 -1
  474. package/dist/src/services/voiceWorkerAutoCaptureController/index.d.mts +0 -72
  475. package/dist/src/services/voiceWorkerAutoCaptureController/index.d.mts.map +0 -1
  476. package/dist/src/services/voiceWorkerAutoCaptureController/index.mjs +0 -2
  477. package/dist/src/services/voiceWorkerAutoCaptureController/index.mjs.map +0 -1
  478. package/dist/src/services/voiceWorkerClient/index.cjs +0 -2
  479. package/dist/src/services/voiceWorkerClient/index.cjs.map +0 -1
  480. package/dist/src/services/voiceWorkerClient/index.d.cts +0 -28
  481. package/dist/src/services/voiceWorkerClient/index.d.cts.map +0 -1
  482. package/dist/src/services/voiceWorkerClient/index.d.mts +0 -28
  483. package/dist/src/services/voiceWorkerClient/index.d.mts.map +0 -1
  484. package/dist/src/services/voiceWorkerClient/index.mjs +0 -2
  485. package/dist/src/services/voiceWorkerClient/index.mjs.map +0 -1
  486. package/dist/src/services/voiceWorkerMedia/index.cjs +0 -2
  487. package/dist/src/services/voiceWorkerMedia/index.cjs.map +0 -1
  488. package/dist/src/services/voiceWorkerMedia/index.mjs +0 -2
  489. package/dist/src/services/voiceWorkerMedia/index.mjs.map +0 -1
  490. package/dist/src/services/voiceWorkerPipeline/index.cjs +0 -2
  491. package/dist/src/services/voiceWorkerPipeline/index.cjs.map +0 -1
  492. package/dist/src/services/voiceWorkerPipeline/index.mjs +0 -2
  493. package/dist/src/services/voiceWorkerPipeline/index.mjs.map +0 -1
  494. package/dist/src/services/voiceWorkerProtocol/index.cjs +0 -2
  495. package/dist/src/services/voiceWorkerProtocol/index.cjs.map +0 -1
  496. package/dist/src/services/voiceWorkerProtocol/index.d.cts +0 -149
  497. package/dist/src/services/voiceWorkerProtocol/index.d.cts.map +0 -1
  498. package/dist/src/services/voiceWorkerProtocol/index.d.mts +0 -149
  499. package/dist/src/services/voiceWorkerProtocol/index.d.mts.map +0 -1
  500. package/dist/src/services/voiceWorkerProtocol/index.mjs +0 -2
  501. package/dist/src/services/voiceWorkerProtocol/index.mjs.map +0 -1
  502. package/dist/src/services/voiceWorkerSessionController/index.cjs +0 -2
  503. package/dist/src/services/voiceWorkerSessionController/index.cjs.map +0 -1
  504. package/dist/src/services/voiceWorkerSessionController/index.d.cts +0 -21
  505. package/dist/src/services/voiceWorkerSessionController/index.d.cts.map +0 -1
  506. package/dist/src/services/voiceWorkerSessionController/index.d.mts +0 -21
  507. package/dist/src/services/voiceWorkerSessionController/index.d.mts.map +0 -1
  508. package/dist/src/services/voiceWorkerSessionController/index.mjs +0 -2
  509. package/dist/src/services/voiceWorkerSessionController/index.mjs.map +0 -1
  510. package/dist/src/services/voiceWorkerSupervisor/index.cjs +0 -2
  511. package/dist/src/services/voiceWorkerSupervisor/index.cjs.map +0 -1
  512. package/dist/src/services/voiceWorkerSupervisor/index.d.cts +0 -12
  513. package/dist/src/services/voiceWorkerSupervisor/index.d.cts.map +0 -1
  514. package/dist/src/services/voiceWorkerSupervisor/index.d.mts +0 -12
  515. package/dist/src/services/voiceWorkerSupervisor/index.d.mts.map +0 -1
  516. package/dist/src/services/voiceWorkerSupervisor/index.mjs +0 -2
  517. package/dist/src/services/voiceWorkerSupervisor/index.mjs.map +0 -1
  518. package/dist/src/services/whisper/index.cjs +0 -2
  519. package/dist/src/services/whisper/index.cjs.map +0 -1
  520. package/dist/src/services/whisper/index.d.cts +0 -34
  521. package/dist/src/services/whisper/index.d.cts.map +0 -1
  522. package/dist/src/services/whisper/index.d.mts +0 -34
  523. package/dist/src/services/whisper/index.d.mts.map +0 -1
  524. package/dist/src/services/whisper/index.mjs +0 -2
  525. package/dist/src/services/whisper/index.mjs.map +0 -1
  526. package/dist/src/types/clientCaptureActivity.cjs +0 -2
  527. package/dist/src/types/clientCaptureActivity.cjs.map +0 -1
  528. package/dist/src/types/clientCaptureActivity.d.cts +0 -38
  529. package/dist/src/types/clientCaptureActivity.d.cts.map +0 -1
  530. package/dist/src/types/clientCaptureActivity.d.mts +0 -38
  531. package/dist/src/types/clientCaptureActivity.d.mts.map +0 -1
  532. package/dist/src/types/clientCaptureActivity.mjs +0 -2
  533. package/dist/src/types/clientCaptureActivity.mjs.map +0 -1
  534. package/dist/src/types/clientMedia.cjs +0 -2
  535. package/dist/src/types/clientMedia.cjs.map +0 -1
  536. package/dist/src/types/clientMedia.d.cts +0 -164
  537. package/dist/src/types/clientMedia.d.cts.map +0 -1
  538. package/dist/src/types/clientMedia.d.mts +0 -164
  539. package/dist/src/types/clientMedia.d.mts.map +0 -1
  540. package/dist/src/types/clientMedia.mjs +0 -2
  541. package/dist/src/types/clientMedia.mjs.map +0 -1
  542. package/dist/src/types/index.d.cts +0 -210
  543. package/dist/src/types/index.d.cts.map +0 -1
  544. package/dist/src/types/index.d.mts +0 -210
  545. package/dist/src/types/index.d.mts.map +0 -1
  546. package/dist/src/types/manualTranscription.cjs +0 -2
  547. package/dist/src/types/manualTranscription.cjs.map +0 -1
  548. package/dist/src/types/manualTranscription.mjs +0 -2
  549. package/dist/src/types/manualTranscription.mjs.map +0 -1
  550. package/dist/src/types/realtime.cjs +0 -2
  551. package/dist/src/types/realtime.cjs.map +0 -1
  552. package/dist/src/types/realtime.d.cts +0 -61
  553. package/dist/src/types/realtime.d.cts.map +0 -1
  554. package/dist/src/types/realtime.d.mts +0 -61
  555. package/dist/src/types/realtime.d.mts.map +0 -1
  556. package/dist/src/types/realtime.mjs +0 -2
  557. package/dist/src/types/realtime.mjs.map +0 -1
  558. package/dist/src/types/voiceOwnership.cjs +0 -2
  559. package/dist/src/types/voiceOwnership.cjs.map +0 -1
  560. package/dist/src/types/voiceOwnership.d.cts +0 -48
  561. package/dist/src/types/voiceOwnership.d.cts.map +0 -1
  562. package/dist/src/types/voiceOwnership.d.mts +0 -48
  563. package/dist/src/types/voiceOwnership.d.mts.map +0 -1
  564. package/dist/src/types/voiceOwnership.mjs +0 -2
  565. package/dist/src/types/voiceOwnership.mjs.map +0 -1
  566. package/dist/voiceReloadHandoff.cjs +0 -1
  567. package/dist/voiceReloadHandoff.d.cts +0 -1
  568. package/dist/voiceReloadHandoff.d.mts +0 -1
  569. package/dist/voiceReloadHandoff.mjs +0 -1
  570. package/dist/voiceTools.cjs +0 -1
  571. package/dist/voiceTools.d.cts +0 -3
  572. package/dist/voiceTools.d.mts +0 -3
  573. package/dist/voiceTools.mjs +0 -1
  574. package/dist/voiceWorker.cjs +0 -2
  575. package/dist/voiceWorker.cjs.map +0 -1
  576. package/dist/voiceWorker.d.cts +0 -25
  577. package/dist/voiceWorker.d.cts.map +0 -1
  578. package/dist/voiceWorker.d.mts +0 -25
  579. package/dist/voiceWorker.d.mts.map +0 -1
  580. package/dist/voiceWorker.mjs +0 -2
  581. package/dist/voiceWorker.mjs.map +0 -1
  582. package/src/extensions/web.ts +0 -75
  583. package/src/web/api/browserMediaDevice.ts +0 -621
  584. package/src/web/api/browserRealtimeSession.ts +0 -442
  585. package/src/web/api/manualBrowserRecorder.ts +0 -276
  586. package/src/web/api/manualComposerRecorder.ts +0 -128
  587. package/src/web/api/manualTranscriptionClient.ts +0 -60
  588. package/src/web/api/sileroVadWorker.ts +0 -61
  589. package/src/web/api/voiceMediaClient.ts +0 -550
  590. package/src/web/components/VoiceActivitySection.tsx +0 -172
  591. package/src/web/components/VoiceComposerAction.tsx +0 -164
  592. package/src/web/components/VoiceMediaRuntime.tsx +0 -157
  593. package/src/web/components/VoiceToolMessage.tsx +0 -60
  594. package/src/web/lib/browserCaptureWorklet.js +0 -13
  595. package/src/web/lib/browserMediaIdentity.ts +0 -16
  596. package/src/web/lib/browserNarrationEchoDiscriminator.ts +0 -380
  597. package/src/web/lib/browserSpeechPresenceDetector.ts +0 -111
  598. package/src/web/lib/sileroVadFrames.ts +0 -54
  599. package/src/web/lib/voiceActivityView.ts +0 -193
  600. package/src/web/lib/voiceSettings.ts +0 -72
  601. package/src/web/lib/voiceToolRender.ts +0 -335
  602. package/src/web/models/silero_vad_v6.2.1.onnx +0 -0
  603. package/src/web/stores/clientMediaTransport.ts +0 -403
  604. package/src/web/stores/voiceMediaWakeStore.ts +0 -145
  605. package/src/web/stores/voiceMicrophoneStore.ts +0 -140
  606. package/src/web/tsconfig.json +0 -23
  607. package/src/web/viteAssets.d.ts +0 -9
  608. /package/src/{web → extensions/workspaces/sessions/(frontend)/lifecycle/_lib}/models/README.md +0 -0
  609. /package/src/{web → extensions/workspaces/sessions/(frontend)/lifecycle/_lib}/models/SILERO-LICENSE +0 -0
package/README.md CHANGED
@@ -7,23 +7,19 @@ config API, including file hashes, atomic saves, numeric values, and scope valid
7
7
  remain global settings. Browser input selection is separate from the host ffmpeg
8
8
  `voice.recorder.device` option.
9
9
 
10
- Choose a microphone beside the composer Voice button. The browser registers physical inputs
11
- after microphone permission and saves the choice under the server home's
12
- `.pi/.doom/voice/clients.json`. The preference identity survives browser reloads; each tab
13
- keeps its own media connection lease. If no choice is saved, the default alias is resolved only
14
- when it matches exactly one physical device. Manual dictation appends to the draft until Send.
10
+ The composer Voice button records on whatever input the browser is already using; there is no
11
+ device picker. Autonomous voice asks which input to open only when the browser reports more than
12
+ one, and remembers the answer in that browser's local storage until the set of inputs changes.
13
+ Dismissing that dialog uses the browser's own default input. Each tab keeps its own media
14
+ connection lease. Manual dictation appends to the draft until Send.
15
15
 
16
16
  Voice owns these authenticated server endpoints:
17
17
 
18
- | Mount | Endpoint | Purpose |
19
- | --------------------------------------- | ------------------------------- | -------------------------------------------------------- |
20
- | `/api/plugins/voice` | `GET /readiness` | Check configuration and local transcription dependencies |
21
- | same | `GET /clients/:clientId` | Read browser microphone preferences |
22
- | same | `PUT /clients/:clientId/inputs` | Register `{inputs: [{deviceId, groupId, label}]}` |
23
- | same | `PUT /clients/:clientId` | Save `{deviceId}`; null clears selection |
24
- | same | `DELETE /clients/:clientId` | Clear the saved selection |
25
- | `/api/sessions/:sessionId/plugin/voice` | `GET /status` | Read lifecycle and media readiness |
26
- | same | `POST /control` | Send `{action, target?}` |
18
+ | Mount | Endpoint | Purpose |
19
+ | --------------------------------------- | ---------------- | -------------------------------------------------------- |
20
+ | `/api/plugins/voice` | `GET /readiness` | Check configuration and local transcription dependencies |
21
+ | `/api/sessions/:sessionId/plugin/voice` | `GET /status` | Read lifecycle and media readiness |
22
+ | same | `POST /control` | Send `{action, target?}` |
27
23
 
28
24
  Control actions are `status`, `manual`, `activate`, `deactivate`, `mute`, `unmute`, `interrupt`,
29
25
  and `transfer` (with a target catalog order). The typed session method `voice.control` uses the
@@ -164,7 +160,7 @@ reload that switch already performs.
164
160
  Autonomous voice can also change profile. The `profile` capability on the voice tool facade lists
165
161
  the configured personas and queues a switch, which reloads the session with the new persona, its
166
162
  voice, and its avatar. See
167
- [@agimon-ai/doompi-profile](../../core/doompi-profile/README.md) for authoring personas.
163
+ [@agimon-ai/doompi-profile](../../foundations/doompi-profile/README.md) for authoring personas.
168
164
 
169
165
  When the agent is launched by `doompi-server`, capture and narration use the connected media client.
170
166
  The protocol is capability-driven rather than browser-specific. A client can own microphone capture,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/doompi-voice",
3
- "version": "0.0.1-alpha.73",
3
+ "version": "0.0.1-alpha.76",
4
4
  "description": "Client audio capture, host transcription, and autonomous narration for Pi agents.",
5
5
  "keywords": [
6
6
  "ai",
@@ -27,8 +27,6 @@
27
27
  },
28
28
  "files": [
29
29
  "dist",
30
- "src/web",
31
- "src/extensions/web.ts",
32
30
  "llms.txt",
33
31
  "src/prompts",
34
32
  "src/types/clientMedia.ts",
@@ -36,12 +34,13 @@
36
34
  "src/types/clientCaptureActivity.ts",
37
35
  "src/types/manualTranscription.ts",
38
36
  "src/types/realtime.ts",
37
+ "src/extensions/workspaces/sessions/(frontend)/lifecycle/_lib/models/SILERO-LICENSE",
38
+ "src/extensions/workspaces/sessions/(frontend)/lifecycle/_lib/models/README.md",
39
39
  "licenses",
40
40
  "NOTICE",
41
41
  "README.md",
42
42
  "LICENSE",
43
- "package.json",
44
- "!src/web/**/*.stories.tsx"
43
+ "package.json"
45
44
  ],
46
45
  "type": "module",
47
46
  "main": "./dist/index.cjs",
@@ -53,6 +52,11 @@
53
52
  "import": "./dist/index.mjs",
54
53
  "require": "./dist/index.cjs"
55
54
  },
55
+ "./client-media": {
56
+ "types": "./dist/clientMedia.d.mts",
57
+ "import": "./dist/clientMedia.mjs",
58
+ "require": "./dist/clientMedia.cjs"
59
+ },
56
60
  "./extensions/pi": {
57
61
  "types": "./dist/extensions/pi.d.mts",
58
62
  "import": "./dist/extensions/pi.mjs",
@@ -63,35 +67,33 @@
63
67
  "import": "./dist/extensions/server.mjs",
64
68
  "require": "./dist/extensions/server.cjs"
65
69
  },
66
- "./client-media": {
67
- "types": "./dist/clientMedia.d.mts",
68
- "import": "./dist/clientMedia.mjs",
69
- "require": "./dist/clientMedia.cjs"
70
+ "./extensions/web": {
71
+ "import": "./dist/extensions/web.mjs"
72
+ },
73
+ "./voice-reload-handoff": {
74
+ "types": "./dist/voiceReloadHandoff.d.mts",
75
+ "import": "./dist/voiceReloadHandoff.mjs",
76
+ "require": "./dist/voiceReloadHandoff.cjs"
70
77
  },
71
- "./package.json": "./package.json",
72
78
  "./voice-tools": {
73
79
  "types": "./dist/voiceTools.d.mts",
74
80
  "import": "./dist/voiceTools.mjs",
75
81
  "require": "./dist/voiceTools.cjs"
76
82
  },
77
- "./voice-reload-handoff": {
78
- "types": "./dist/voiceReloadHandoff.d.mts",
79
- "import": "./dist/voiceReloadHandoff.mjs",
80
- "require": "./dist/voiceReloadHandoff.cjs"
81
- }
83
+ "./package.json": "./package.json"
82
84
  },
83
85
  "publishConfig": {
84
86
  "access": "public",
85
87
  "registry": "https://registry.npmjs.org/"
86
88
  },
87
89
  "dependencies": {
88
- "@agimon-ai/doompi-config": "0.0.1-alpha.71",
89
- "@agimon-ai/doompi-core": "0.0.1-alpha.72",
90
- "@agimon-ai/doompi-minor-mode": "0.0.1-alpha.72",
91
- "@agimon-ai/doompi-telemetry": "0.0.1-alpha.69",
92
- "@agimon-ai/doompi-ui": "0.0.1-alpha.72",
93
- "@agimon-ai/doompi-web-components": "0.0.1-alpha.30",
94
- "@agimon-ai/doompi-web-security": "0.0.1-alpha.32",
90
+ "@agimon-ai/doompi-config": "0.0.1-alpha.74",
91
+ "@agimon-ai/doompi-core": "0.0.1-alpha.75",
92
+ "@agimon-ai/doompi-minor-mode": "0.0.1-alpha.75",
93
+ "@agimon-ai/doompi-telemetry": "0.0.1-alpha.72",
94
+ "@agimon-ai/doompi-ui": "0.0.1-alpha.75",
95
+ "@agimon-ai/doompi-web-components": "0.0.1-alpha.33",
96
+ "@agimon-ai/doompi-web-security": "0.0.1-alpha.35",
95
97
  "@deepseek-ai/cordis": "4.0.2",
96
98
  "onnxruntime-web": "1.29.0",
97
99
  "sherpa-onnx-node": "1.13.8",
@@ -99,6 +101,7 @@
99
101
  "xstate": "5.32.6"
100
102
  },
101
103
  "devDependencies": {
104
+ "@agimon-ai/doompi-build": "0.0.1-alpha.4",
102
105
  "@earendil-works/pi-coding-agent": "0.85.1",
103
106
  "@tanstack/react-store": "0.11.1",
104
107
  "@tanstack/store": "0.11.1",
@@ -118,7 +121,7 @@
118
121
  "node": ">=22.19.0"
119
122
  },
120
123
  "doompiServer": {
121
- "entry": "./src/extensions/server.ts",
124
+ "entry": "./generated/server.ts",
122
125
  "dist": "./dist/extensions/server.mjs",
123
126
  "scopes": [
124
127
  "global",
@@ -136,7 +139,7 @@
136
139
  "voice_media_wake",
137
140
  "voice_ownership"
138
141
  ],
139
- "client": "./src/extensions/web.ts",
142
+ "client": "./dist/extensions/web.mjs",
140
143
  "scopes": [
141
144
  "global",
142
145
  "workspace",
@@ -151,7 +154,7 @@
151
154
  "scripts": {
152
155
  "build": "tsdown",
153
156
  "test": "vitest --run",
154
- "typecheck": "tsc --noEmit && tsc --noEmit -p src/web/tsconfig.json",
157
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.web.json",
155
158
  "lint": "oxlint . && oxfmt . --check",
156
159
  "fixcode": "oxlint . --fix && oxfmt ."
157
160
  }
@@ -199,15 +199,28 @@ export function voiceMediaClientUrl(sessionId: string, route: string, params: Re
199
199
  return `${sessionApiPath(sessionId)}/plugins/${VOICE_MEDIA_API_BASE_PATH}${route}?${search.toString()}`;
200
200
  }
201
201
 
202
+ /** What one capture opens. No `deviceId` means the input the browser is already on. */
202
203
  export interface VoiceMicrophoneConstraints {
203
- audio:
204
- | boolean
205
- | {
206
- deviceId: { exact: string };
207
- channelCount: number;
208
- echoCancellation: boolean;
209
- noiseSuppression: boolean;
210
- autoGainControl: boolean;
211
- };
204
+ audio: {
205
+ deviceId?: { exact: string };
206
+ channelCount: number;
207
+ echoCancellation: boolean;
208
+ noiseSuppression: boolean;
209
+ autoGainControl: boolean;
210
+ };
212
211
  video: false;
213
212
  }
213
+
214
+ /** The input the browser is already on, with the processing every capture path expects. */
215
+ export const CLIENT_DEFAULT_MICROPHONE: VoiceMicrophoneConstraints = {
216
+ audio: { channelCount: 1, echoCancellation: true, noiseSuppression: true, autoGainControl: true },
217
+ video: false,
218
+ };
219
+
220
+ /** The same processing, pinned to one input. */
221
+ export function exactMicrophone(deviceId: string): VoiceMicrophoneConstraints {
222
+ return {
223
+ ...CLIENT_DEFAULT_MICROPHONE,
224
+ audio: { ...CLIENT_DEFAULT_MICROPHONE.audio, deviceId: { exact: deviceId } },
225
+ };
226
+ }
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(e,t,n)=>(s(e,t,`default`),n&&s(n,t,`default`)),l=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));exports.__exportAll=o,exports.__reExport=c,exports.__toESM=l;
@@ -1 +0,0 @@
1
- import"node:module";var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},o=(e,t,n)=>(a(e,t,`default`),n&&a(n,t,`default`));export{i as __exportAll,o as __reExport};
@@ -1 +0,0 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./src/schemas/apiContracts.cjs");exports.apiContracts=e.apiContracts,exports.default=e.apiContracts;
@@ -1 +0,0 @@
1
- import{apiContracts as e}from"./src/schemas/apiContracts.mjs";export{e as apiContracts,e as default};
@@ -1,2 +0,0 @@
1
- import { apiContracts } from "./src/schemas/apiContracts.cjs";
2
- export { apiContracts, apiContracts as default };
@@ -1,2 +0,0 @@
1
- import { apiContracts } from "./src/schemas/apiContracts.mjs";
2
- export { apiContracts, apiContracts as default };
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./src/types/clientMedia.cjs"),t=require("./src/types/clientCaptureActivity.cjs");exports.ClientCaptureActivityLifecycle=t.ClientCaptureActivityLifecycle,exports.VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER=e.VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER,exports.VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER=e.VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER,exports.VOICE_MEDIA_ACTIVITY_EPOCH_HEADER=e.VOICE_MEDIA_ACTIVITY_EPOCH_HEADER,exports.VOICE_MEDIA_ACTIVITY_LEVEL_HEADER=e.VOICE_MEDIA_ACTIVITY_LEVEL_HEADER,exports.VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER=e.VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER,exports.VOICE_MEDIA_ACTIVITY_STATE_HEADER=e.VOICE_MEDIA_ACTIVITY_STATE_HEADER,exports.VOICE_MEDIA_API_BASE_PATH=e.VOICE_MEDIA_API_BASE_PATH,exports.VOICE_MEDIA_BITS_PER_SAMPLE=e.VOICE_MEDIA_BITS_PER_SAMPLE,exports.VOICE_MEDIA_CHANNELS=e.VOICE_MEDIA_CHANNELS,exports.VOICE_MEDIA_CONTENT_TYPE=e.VOICE_MEDIA_CONTENT_TYPE,exports.VOICE_MEDIA_EVENT_WAIT_NONE=e.VOICE_MEDIA_EVENT_WAIT_NONE,exports.VOICE_MEDIA_HEARTBEAT_MS=e.VOICE_MEDIA_HEARTBEAT_MS,exports.VOICE_MEDIA_PLAYBACK_STATE_HEADER=e.VOICE_MEDIA_PLAYBACK_STATE_HEADER,exports.VOICE_MEDIA_PROTOCOL_VERSION=e.VOICE_MEDIA_PROTOCOL_VERSION,exports.VOICE_MEDIA_ROUTES=e.VOICE_MEDIA_ROUTES,exports.VOICE_MEDIA_SAMPLE_RATE=e.VOICE_MEDIA_SAMPLE_RATE,exports.VOICE_MEDIA_WAKE_TYPE=e.VOICE_MEDIA_WAKE_TYPE,exports.calculateClientPcmDbfs=t.calculateClientPcmDbfs,exports.voiceMediaClientUrl=e.voiceMediaClientUrl;
@@ -1,3 +0,0 @@
1
- import { VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, VoiceClientKind, VoiceMediaCapabilities, VoiceMediaCapture, VoiceMediaCaptureActivity, VoiceMediaCaptureActivityState, VoiceMediaCaptureConfiguration, VoiceMediaCaptureMode, VoiceMediaCaptureSpeechAnalysis, VoiceMediaClientEvent, VoiceMediaConnectRequest, VoiceMediaConnectResult, VoiceMediaControlLocation, VoiceMediaDevice, VoiceMediaHeartbeatResult, VoiceMediaPlayback, VoiceMediaPlaybackDelivery, VoiceMediaPlaybackOutcome, VoiceMediaPlaybackResult, VoiceMediaTransport, VoiceMediaWake, voiceMediaClientUrl } from "./src/types/clientMedia.cjs";
2
- import { ClientCaptureActivityLifecycle, ClientCaptureSpeechClassification, SpeechPresenceDetector, SpeechPresenceWindow, calculateClientPcmDbfs } from "./src/types/clientCaptureActivity.cjs";
3
- export { ClientCaptureActivityLifecycle, type ClientCaptureSpeechClassification, type SpeechPresenceDetector, type SpeechPresenceWindow, VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, type VoiceClientKind, type VoiceMediaCapabilities, type VoiceMediaCapture, type VoiceMediaCaptureActivity, type VoiceMediaCaptureActivityState, type VoiceMediaCaptureConfiguration, type VoiceMediaCaptureMode, type VoiceMediaCaptureSpeechAnalysis, type VoiceMediaClientEvent, type VoiceMediaConnectRequest, type VoiceMediaConnectResult, type VoiceMediaControlLocation, type VoiceMediaDevice, type VoiceMediaHeartbeatResult, type VoiceMediaPlayback, type VoiceMediaPlaybackDelivery, type VoiceMediaPlaybackOutcome, type VoiceMediaPlaybackResult, type VoiceMediaTransport, type VoiceMediaWake, calculateClientPcmDbfs, voiceMediaClientUrl };
@@ -1,3 +0,0 @@
1
- import { VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, VoiceClientKind, VoiceMediaCapabilities, VoiceMediaCapture, VoiceMediaCaptureActivity, VoiceMediaCaptureActivityState, VoiceMediaCaptureConfiguration, VoiceMediaCaptureMode, VoiceMediaCaptureSpeechAnalysis, VoiceMediaClientEvent, VoiceMediaConnectRequest, VoiceMediaConnectResult, VoiceMediaControlLocation, VoiceMediaDevice, VoiceMediaHeartbeatResult, VoiceMediaPlayback, VoiceMediaPlaybackDelivery, VoiceMediaPlaybackOutcome, VoiceMediaPlaybackResult, VoiceMediaTransport, VoiceMediaWake, voiceMediaClientUrl } from "./src/types/clientMedia.mjs";
2
- import { ClientCaptureActivityLifecycle, ClientCaptureSpeechClassification, SpeechPresenceDetector, SpeechPresenceWindow, calculateClientPcmDbfs } from "./src/types/clientCaptureActivity.mjs";
3
- export { ClientCaptureActivityLifecycle, type ClientCaptureSpeechClassification, type SpeechPresenceDetector, type SpeechPresenceWindow, VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, type VoiceClientKind, type VoiceMediaCapabilities, type VoiceMediaCapture, type VoiceMediaCaptureActivity, type VoiceMediaCaptureActivityState, type VoiceMediaCaptureConfiguration, type VoiceMediaCaptureMode, type VoiceMediaCaptureSpeechAnalysis, type VoiceMediaClientEvent, type VoiceMediaConnectRequest, type VoiceMediaConnectResult, type VoiceMediaControlLocation, type VoiceMediaDevice, type VoiceMediaHeartbeatResult, type VoiceMediaPlayback, type VoiceMediaPlaybackDelivery, type VoiceMediaPlaybackOutcome, type VoiceMediaPlaybackResult, type VoiceMediaTransport, type VoiceMediaWake, calculateClientPcmDbfs, voiceMediaClientUrl };
@@ -1 +0,0 @@
1
- import{VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER as e,VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER as t,VOICE_MEDIA_ACTIVITY_EPOCH_HEADER as n,VOICE_MEDIA_ACTIVITY_LEVEL_HEADER as r,VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER as i,VOICE_MEDIA_ACTIVITY_STATE_HEADER as a,VOICE_MEDIA_API_BASE_PATH as o,VOICE_MEDIA_BITS_PER_SAMPLE as s,VOICE_MEDIA_CHANNELS as c,VOICE_MEDIA_CONTENT_TYPE as l,VOICE_MEDIA_EVENT_WAIT_NONE as u,VOICE_MEDIA_HEARTBEAT_MS as d,VOICE_MEDIA_PLAYBACK_STATE_HEADER as f,VOICE_MEDIA_PROTOCOL_VERSION as p,VOICE_MEDIA_ROUTES as m,VOICE_MEDIA_SAMPLE_RATE as h,VOICE_MEDIA_WAKE_TYPE as g,voiceMediaClientUrl as _}from"./src/types/clientMedia.mjs";import{ClientCaptureActivityLifecycle as v,calculateClientPcmDbfs as y}from"./src/types/clientCaptureActivity.mjs";export{v as ClientCaptureActivityLifecycle,e as VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER,t as VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER,n as VOICE_MEDIA_ACTIVITY_EPOCH_HEADER,r as VOICE_MEDIA_ACTIVITY_LEVEL_HEADER,i as VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER,a as VOICE_MEDIA_ACTIVITY_STATE_HEADER,o as VOICE_MEDIA_API_BASE_PATH,s as VOICE_MEDIA_BITS_PER_SAMPLE,c as VOICE_MEDIA_CHANNELS,l as VOICE_MEDIA_CONTENT_TYPE,u as VOICE_MEDIA_EVENT_WAIT_NONE,d as VOICE_MEDIA_HEARTBEAT_MS,f as VOICE_MEDIA_PLAYBACK_STATE_HEADER,p as VOICE_MEDIA_PROTOCOL_VERSION,m as VOICE_MEDIA_ROUTES,h as VOICE_MEDIA_SAMPLE_RATE,g as VOICE_MEDIA_WAKE_TYPE,y as calculateClientPcmDbfs,_ as voiceMediaClientUrl};
@@ -1,2 +0,0 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../src/controllers/voicePlugin.cjs"),t=(0,require("@agimon-ai/doompi-core/pi-extension").definePiExtension)(`@agimon-ai/doompi-voice`,({context:t,pi:n,options:r})=>({...e.createVoicePiRuntime(t,n,r??{}),resources:[{source:`@agimon-ai/doompi-voice`,moduleUrl:require("url").pathToFileURL(__filename).href,skills:[{name:`doompi-use-voice`,description:`Use Doom Pi Voice for manual transcription, autonomous capture, narration, configuration, and recovery on macOS.`}]}]}));exports.default=t,exports.voicePiExtension=t;
2
- //# sourceMappingURL=pi.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.cjs","names":["definePiExtension","createVoicePiRuntime"],"sources":["../../src/extensions/pi.ts"],"sourcesContent":["import { definePiExtension } from '@agimon-ai/doompi-core/pi-extension';\n\nimport type { VoiceExtensionOptions } from '../controllers/voice';\nimport { createVoicePiRuntime } from '../controllers/voicePlugin';\nexport const voicePiExtension = definePiExtension<VoiceExtensionOptions>(\n '@agimon-ai/doompi-voice',\n ({ context, pi, options }) => ({\n ...createVoicePiRuntime(context, pi, options ?? {}),\n resources: [\n {\n source: '@agimon-ai/doompi-voice',\n moduleUrl: import.meta.url,\n skills: [\n {\n name: 'doompi-use-voice',\n description:\n 'Use Doom Pi Voice for manual transcription, autonomous capture, narration, configuration, and recovery on macOS.',\n },\n ],\n },\n ],\n }),\n);\nexport default voicePiExtension;\n"],"mappings":"qJAIa,GAAA,+CAAmBA,CAAAA,CAAAA,kBAAAA,CAC9B,2BACC,CAAE,UAAS,KAAI,cAAe,CAC7B,GAAGC,EAAAA,qBAAqB,EAAS,EAAI,GAAW,CAAC,CAAC,EAClD,UAAW,CACT,CACE,OAAQ,0BACR,UAAA,QAAA,KAAA,CAAA,CAAA,cAAA,UAAA,CAAA,CAAA,KACA,OAAQ,CACN,CACE,KAAM,mBACN,YACE,kHACJ,CACF,CACF,CACF,CACF,EACF"}
@@ -1,6 +0,0 @@
1
- import { VoiceExtensionOptions } from "../src/controllers/voice.cjs";
2
- //#region src/extensions/pi.d.ts
3
- export declare const voicePiExtension: import("@agimon-ai/doompi-core/runtime-pi-extension").DefinedPiExtension<VoiceExtensionOptions>;
4
- //#endregion
5
- export { voicePiExtension as default };
6
- //# sourceMappingURL=pi.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.d.cts","names":[],"sources":["../../src/extensions/pi.ts"],"mappings":";;qBAIa,wEAAgB,mBAAA"}
@@ -1,6 +0,0 @@
1
- import { VoiceExtensionOptions } from "../src/controllers/voice.mjs";
2
- //#region src/extensions/pi.d.ts
3
- export declare const voicePiExtension: import("@agimon-ai/doompi-core/runtime-pi-extension").DefinedPiExtension<VoiceExtensionOptions>;
4
- //#endregion
5
- export { voicePiExtension as default };
6
- //# sourceMappingURL=pi.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.d.mts","names":[],"sources":["../../src/extensions/pi.ts"],"mappings":";;qBAIa,wEAAgB,mBAAA"}
@@ -1,2 +0,0 @@
1
- import{createVoicePiRuntime as e}from"../src/controllers/voicePlugin.mjs";import{definePiExtension as t}from"@agimon-ai/doompi-core/pi-extension";const n=t(`@agimon-ai/doompi-voice`,({context:t,pi:n,options:r})=>({...e(t,n,r??{}),resources:[{source:`@agimon-ai/doompi-voice`,moduleUrl:import.meta.url,skills:[{name:`doompi-use-voice`,description:`Use Doom Pi Voice for manual transcription, autonomous capture, narration, configuration, and recovery on macOS.`}]}]}));export{n as default,n as voicePiExtension};
2
- //# sourceMappingURL=pi.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.mjs","names":[],"sources":["../../src/extensions/pi.ts"],"sourcesContent":["import { definePiExtension } from '@agimon-ai/doompi-core/pi-extension';\n\nimport type { VoiceExtensionOptions } from '../controllers/voice';\nimport { createVoicePiRuntime } from '../controllers/voicePlugin';\nexport const voicePiExtension = definePiExtension<VoiceExtensionOptions>(\n '@agimon-ai/doompi-voice',\n ({ context, pi, options }) => ({\n ...createVoicePiRuntime(context, pi, options ?? {}),\n resources: [\n {\n source: '@agimon-ai/doompi-voice',\n moduleUrl: import.meta.url,\n skills: [\n {\n name: 'doompi-use-voice',\n description:\n 'Use Doom Pi Voice for manual transcription, autonomous capture, narration, configuration, and recovery on macOS.',\n },\n ],\n },\n ],\n }),\n);\nexport default voicePiExtension;\n"],"mappings":"kJAIA,MAAa,EAAmB,EAC9B,2BACC,CAAE,UAAS,KAAI,cAAe,CAC7B,GAAG,EAAqB,EAAS,EAAI,GAAW,CAAC,CAAC,EAClD,UAAW,CACT,CACE,OAAQ,0BACR,UAAW,YAAY,IACvB,OAAQ,CACN,CACE,KAAM,mBACN,YACE,kHACJ,CACF,CACF,CACF,CACF,EACF"}
@@ -1,2 +0,0 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../src/services/realtimeRuntime/index.cjs"),t=require("../src/controllers/clientMediaApi.cjs"),n=require("../src/controllers/voiceClientSettingsApi.cjs"),r=require("../src/controllers/voiceMediaHubChannel.cjs"),i=require("../src/controllers/voiceServer.cjs"),a=require("../src/controllers/voiceSessionApi.cjs");let o=require("node:path");const s=(0,require("@agimon-ai/doompi-core/server-facet").defineServerPlugin)({name:`@agimon-ai/doompi-voice`,global:{api:[n.voiceClientSettingsApi],channels:[r.createVoiceMediaWakeChannel,r.createVoiceOwnershipChannel]},workspace:{channels:[r.createVoiceMediaWakeChannel,r.createVoiceOwnershipChannel]},session:({agent:n,host:r})=>{let{directEvents:s,homeDirectory:c,sessionId:l,internalToken:u,hubToken:d}=r.context;if(!n||!s||!c)throw Error(`Voice requires a native session host, media event bus, and server home.`);let f=new t.VoiceMediaBroker({directEvents:s,sessionId:l,internalToken:u,hubToken:d,realtimeProvider:e.createRealtimeRuntime({stateDirectory:(0,o.join)(c,`.pi`,`.doom`)}).provider}),p=i.createVoiceServer(n,f,c);return{...p,api:[...p.api??[],{basePath:`voice-media`,start:()=>a.createVoiceSessionApi({directEvents:s,media:f,projectRoot:n.context.repoRoot,homeDirectory:c})}]}}});exports.default=s,exports.voiceServerFacet=s;
2
- //# sourceMappingURL=server.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.cjs","names":["defineServerPlugin","voiceClientSettingsApi","createVoiceMediaWakeChannel","createVoiceOwnershipChannel","VoiceMediaBroker","createRealtimeRuntime","join","createVoiceServer","createVoiceSessionApi"],"sources":["../../src/extensions/server.ts"],"sourcesContent":["import { join } from 'node:path';\n\nimport { defineServerPlugin } from '@agimon-ai/doompi-core/server-facet';\n\nimport { VoiceMediaBroker } from '../controllers/clientMediaApi';\nimport { voiceClientSettingsApi } from '../controllers/voiceClientSettingsApi';\nimport { createVoiceMediaWakeChannel, createVoiceOwnershipChannel } from '../controllers/voiceMediaHubChannel';\nimport { createVoiceServer } from '../controllers/voiceServer';\nimport { createVoiceSessionApi } from '../controllers/voiceSessionApi';\nimport { createRealtimeRuntime } from '../services/realtimeRuntime';\nexport const voiceServerFacet = defineServerPlugin({\n name: '@agimon-ai/doompi-voice',\n global: { api: [voiceClientSettingsApi], channels: [createVoiceMediaWakeChannel, createVoiceOwnershipChannel] },\n workspace: { channels: [createVoiceMediaWakeChannel, createVoiceOwnershipChannel] },\n session: ({ agent, host }) => {\n const { directEvents, homeDirectory, sessionId, internalToken, hubToken } = host.context;\n if (!agent || !directEvents || !homeDirectory)\n throw new Error('Voice requires a native session host, media event bus, and server home.');\n const broker = new VoiceMediaBroker({\n directEvents,\n sessionId,\n internalToken,\n hubToken,\n realtimeProvider: createRealtimeRuntime({ stateDirectory: join(homeDirectory, '.pi', '.doom') }).provider,\n });\n const voice = createVoiceServer(agent, broker, homeDirectory);\n return {\n ...voice,\n api: [\n ...(voice.api ?? []),\n {\n basePath: 'voice-media',\n start: () =>\n createVoiceSessionApi({ directEvents, media: broker, projectRoot: agent.context.repoRoot, homeDirectory }),\n },\n ],\n };\n },\n});\nexport default voiceServerFacet;\n"],"mappings":"kcAUA,MAAa,GAAA,+CAAmBA,CAAAA,CAAAA,mBAAAA,CAAmB,CACjD,KAAM,0BACN,OAAQ,CAAE,IAAK,CAACC,EAAAA,sBAAsB,EAAG,SAAU,CAACC,EAAAA,4BAA6BC,EAAAA,2BAA2B,CAAE,EAC9G,UAAW,CAAE,SAAU,CAACD,EAAAA,4BAA6BC,EAAAA,2BAA2B,CAAE,EAClF,SAAU,CAAE,QAAO,UAAW,CAC5B,GAAM,CAAE,eAAc,gBAAe,YAAW,gBAAe,YAAa,EAAK,QACjF,GAAI,CAAC,GAAS,CAAC,GAAgB,CAAC,EAC9B,MAAU,MAAM,yEAAyE,EAC3F,IAAM,EAAS,IAAIC,EAAAA,iBAAiB,CAClC,eACA,YACA,gBACA,WACA,iBAAkBC,EAAAA,sBAAsB,CAAE,gBAAA,EAAgBC,EAAAA,KAAAA,CAAK,EAAe,MAAO,OAAO,CAAE,CAAC,CAAC,CAAC,QACnG,CAAC,EACK,EAAQC,EAAAA,kBAAkB,EAAO,EAAQ,CAAa,EAC5D,MAAO,CACL,GAAG,EACH,IAAK,CACH,GAAI,EAAM,KAAO,CAAC,EAClB,CACE,SAAU,cACV,UACEC,EAAAA,sBAAsB,CAAE,eAAc,MAAO,EAAQ,YAAa,EAAM,QAAQ,SAAU,eAAc,CAAC,CAC7G,CACF,CACF,CACF,CACF,CAAC"}
@@ -1,5 +0,0 @@
1
- //#region src/extensions/server.d.ts
2
- export declare const voiceServerFacet: import("@agimon-ai/doompi-core/server-facet").DoomServerFacet;
3
- //#endregion
4
- export { voiceServerFacet as default };
5
- //# sourceMappingURL=server.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.cts","names":[],"sources":["../../src/extensions/server.ts"],"mappings":";qBAUa,gEAAgB"}
@@ -1,5 +0,0 @@
1
- //#region src/extensions/server.d.ts
2
- export declare const voiceServerFacet: import("@agimon-ai/doompi-core/server-facet").DoomServerFacet;
3
- //#endregion
4
- export { voiceServerFacet as default };
5
- //# sourceMappingURL=server.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.mts","names":[],"sources":["../../src/extensions/server.ts"],"mappings":";qBAUa,gEAAgB"}
@@ -1,2 +0,0 @@
1
- import{createRealtimeRuntime as e}from"../src/services/realtimeRuntime/index.mjs";import{VoiceMediaBroker as t}from"../src/controllers/clientMediaApi.mjs";import{voiceClientSettingsApi as n}from"../src/controllers/voiceClientSettingsApi.mjs";import{createVoiceMediaWakeChannel as r,createVoiceOwnershipChannel as i}from"../src/controllers/voiceMediaHubChannel.mjs";import{createVoiceServer as a}from"../src/controllers/voiceServer.mjs";import{createVoiceSessionApi as o}from"../src/controllers/voiceSessionApi.mjs";import{join as s}from"node:path";import{defineServerPlugin as c}from"@agimon-ai/doompi-core/server-facet";const l=c({name:`@agimon-ai/doompi-voice`,global:{api:[n],channels:[r,i]},workspace:{channels:[r,i]},session:({agent:n,host:r})=>{let{directEvents:i,homeDirectory:c,sessionId:l,internalToken:u,hubToken:d}=r.context;if(!n||!i||!c)throw Error(`Voice requires a native session host, media event bus, and server home.`);let f=new t({directEvents:i,sessionId:l,internalToken:u,hubToken:d,realtimeProvider:e({stateDirectory:s(c,`.pi`,`.doom`)}).provider}),p=a(n,f,c);return{...p,api:[...p.api??[],{basePath:`voice-media`,start:()=>o({directEvents:i,media:f,projectRoot:n.context.repoRoot,homeDirectory:c})}]}}});export{l as default,l as voiceServerFacet};
2
- //# sourceMappingURL=server.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.mjs","names":[],"sources":["../../src/extensions/server.ts"],"sourcesContent":["import { join } from 'node:path';\n\nimport { defineServerPlugin } from '@agimon-ai/doompi-core/server-facet';\n\nimport { VoiceMediaBroker } from '../controllers/clientMediaApi';\nimport { voiceClientSettingsApi } from '../controllers/voiceClientSettingsApi';\nimport { createVoiceMediaWakeChannel, createVoiceOwnershipChannel } from '../controllers/voiceMediaHubChannel';\nimport { createVoiceServer } from '../controllers/voiceServer';\nimport { createVoiceSessionApi } from '../controllers/voiceSessionApi';\nimport { createRealtimeRuntime } from '../services/realtimeRuntime';\nexport const voiceServerFacet = defineServerPlugin({\n name: '@agimon-ai/doompi-voice',\n global: { api: [voiceClientSettingsApi], channels: [createVoiceMediaWakeChannel, createVoiceOwnershipChannel] },\n workspace: { channels: [createVoiceMediaWakeChannel, createVoiceOwnershipChannel] },\n session: ({ agent, host }) => {\n const { directEvents, homeDirectory, sessionId, internalToken, hubToken } = host.context;\n if (!agent || !directEvents || !homeDirectory)\n throw new Error('Voice requires a native session host, media event bus, and server home.');\n const broker = new VoiceMediaBroker({\n directEvents,\n sessionId,\n internalToken,\n hubToken,\n realtimeProvider: createRealtimeRuntime({ stateDirectory: join(homeDirectory, '.pi', '.doom') }).provider,\n });\n const voice = createVoiceServer(agent, broker, homeDirectory);\n return {\n ...voice,\n api: [\n ...(voice.api ?? []),\n {\n basePath: 'voice-media',\n start: () =>\n createVoiceSessionApi({ directEvents, media: broker, projectRoot: agent.context.repoRoot, homeDirectory }),\n },\n ],\n };\n },\n});\nexport default voiceServerFacet;\n"],"mappings":"6mBAUA,MAAa,EAAmB,EAAmB,CACjD,KAAM,0BACN,OAAQ,CAAE,IAAK,CAAC,CAAsB,EAAG,SAAU,CAAC,EAA6B,CAA2B,CAAE,EAC9G,UAAW,CAAE,SAAU,CAAC,EAA6B,CAA2B,CAAE,EAClF,SAAU,CAAE,QAAO,UAAW,CAC5B,GAAM,CAAE,eAAc,gBAAe,YAAW,gBAAe,YAAa,EAAK,QACjF,GAAI,CAAC,GAAS,CAAC,GAAgB,CAAC,EAC9B,MAAU,MAAM,yEAAyE,EAC3F,IAAM,EAAS,IAAI,EAAiB,CAClC,eACA,YACA,gBACA,WACA,iBAAkB,EAAsB,CAAE,eAAgB,EAAK,EAAe,MAAO,OAAO,CAAE,CAAC,CAAC,CAAC,QACnG,CAAC,EACK,EAAQ,EAAkB,EAAO,EAAQ,CAAa,EAC5D,MAAO,CACL,GAAG,EACH,IAAK,CACH,GAAI,EAAM,KAAO,CAAC,EAClB,CACE,SAAU,cACV,UACE,EAAsB,CAAE,eAAc,MAAO,EAAQ,YAAa,EAAM,QAAQ,SAAU,eAAc,CAAC,CAC7G,CACF,CACF,CACF,CACF,CAAC"}
package/dist/index.cjs DELETED
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./src/types/clientMedia.cjs"),t=require("./src/services/pcm/index.cjs"),n=require("./src/services/infrastructure/index.cjs"),r=require("./src/services/clientMedia/index.cjs"),i=require("./src/models/voiceActivity.cjs"),a=require("./src/models/voiceMode.cjs"),o=require("./src/services/commandCorrection/index.cjs"),s=require("./src/services/fallbackNarration/index.cjs"),c=require("./src/services/semanticEcho/index.cjs"),l=require("./src/services/voiceConfig/index.cjs"),u=require("./src/services/whisper/index.cjs"),d=require("./src/services/voiceDependencies/index.cjs"),f=require("./src/services/narration/index.cjs"),p=require("./src/services/narrationPlayback/index.cjs"),m=require("./src/controllers/voice.cjs"),h=require("./src/services/utterance/index.cjs"),g=require("./src/services/vad/index.cjs"),_=require("./src/services/voiceSessionController/index.cjs");exports.AdaptiveVoiceActivityDetector=g.AdaptiveVoiceActivityDetector,exports.BoundedTranscriptionQueue=h.BoundedTranscriptionQueue,exports.ClientPcmAudioRecorder=r.ClientPcmAudioRecorder,exports.ClientTtsAdapter=r.ClientTtsAdapter,exports.DEFAULT_UTTERANCE_LIMITS=h.DEFAULT_UTTERANCE_LIMITS,exports.DEFAULT_VAD_CONFIGURATION=g.DEFAULT_VAD_CONFIGURATION,exports.DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS=s.DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS,exports.EchoTailTimeline=c.EchoTailTimeline,exports.ExecutableResolver=n.ExecutableResolver,exports.FfmpegAudioRecorder=n.FfmpegAudioRecorder,exports.FfmpegPcmAudioRecorder=n.FfmpegPcmAudioRecorder,exports.MAX_VOICE_COMMAND_CONTEXT_BYTES=o.MAX_VOICE_COMMAND_CONTEXT_BYTES,exports.MacOsSayPcmSynthesizer=n.MacOsSayPcmSynthesizer,exports.MacOsSayTtsAdapter=n.MacOsSayTtsAdapter,exports.MlxWhisperAdapter=u.MlxWhisperAdapter,exports.NarrationPlaybackCoordinator=f.NarrationPlaybackCoordinator,exports.NodeBinaryProcessSpawner=n.NodeBinaryProcessSpawner,exports.NodeProcessSpawner=n.NodeProcessSpawner,exports.OpenAiWhisperAdapter=u.OpenAiWhisperAdapter,exports.PCM_BITS_PER_SAMPLE=t.PCM_BITS_PER_SAMPLE,exports.PCM_BYTES_PER_SAMPLE=t.PCM_BYTES_PER_SAMPLE,exports.PCM_CHANNELS=t.PCM_CHANNELS,exports.PCM_FRAME_BYTES=t.PCM_FRAME_BYTES,exports.PCM_FRAME_MS=t.PCM_FRAME_MS,exports.PCM_SAMPLE_RATE=t.PCM_SAMPLE_RATE,exports.PcmFrameAssembler=t.PcmFrameAssembler,exports.PcmWavAnalyzer=n.PcmWavAnalyzer,exports.PiVoiceConfigService=l.PiVoiceConfigService,exports.RollingEchoProbeCoordinator=c.RollingEchoProbeCoordinator,exports.SemanticEchoAdjudicator=c.SemanticEchoAdjudicator,exports.SystemClock=n.SystemClock,exports.TemporaryWorkspace=n.TemporaryWorkspace,exports.TranscriberRegistry=u.TranscriberRegistry,exports.UtteranceAssembler=h.UtteranceAssembler,exports.VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER=e.VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER,exports.VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER=e.VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER,exports.VOICE_MEDIA_ACTIVITY_EPOCH_HEADER=e.VOICE_MEDIA_ACTIVITY_EPOCH_HEADER,exports.VOICE_MEDIA_ACTIVITY_LEVEL_HEADER=e.VOICE_MEDIA_ACTIVITY_LEVEL_HEADER,exports.VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER=e.VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER,exports.VOICE_MEDIA_ACTIVITY_STATE_HEADER=e.VOICE_MEDIA_ACTIVITY_STATE_HEADER,exports.VOICE_MEDIA_API_BASE_PATH=e.VOICE_MEDIA_API_BASE_PATH,exports.VOICE_MEDIA_BITS_PER_SAMPLE=e.VOICE_MEDIA_BITS_PER_SAMPLE,exports.VOICE_MEDIA_CHANNELS=e.VOICE_MEDIA_CHANNELS,exports.VOICE_MEDIA_CONTENT_TYPE=e.VOICE_MEDIA_CONTENT_TYPE,exports.VOICE_MEDIA_EVENT_WAIT_NONE=e.VOICE_MEDIA_EVENT_WAIT_NONE,exports.VOICE_MEDIA_HEARTBEAT_MS=e.VOICE_MEDIA_HEARTBEAT_MS,exports.VOICE_MEDIA_PLAYBACK_STATE_HEADER=e.VOICE_MEDIA_PLAYBACK_STATE_HEADER,exports.VOICE_MEDIA_PROTOCOL_VERSION=e.VOICE_MEDIA_PROTOCOL_VERSION,exports.VOICE_MEDIA_ROUTES=e.VOICE_MEDIA_ROUTES,exports.VOICE_MEDIA_SAMPLE_RATE=e.VOICE_MEDIA_SAMPLE_RATE,exports.VOICE_MEDIA_WAKE_TYPE=e.VOICE_MEDIA_WAKE_TYPE,exports.VoiceCommandCorrector=o.VoiceCommandCorrector,exports.VoiceNarrationPlayback=p.VoiceNarrationPlayback,exports.VoiceSessionController=_.VoiceSessionController,exports.VoiceTurnFallbackNarrator=s.VoiceTurnFallbackNarrator,exports.WhisperCppAdapter=u.WhisperCppAdapter,exports.alignNarrationSpan=c.alignNarrationSpan,exports.analyzePcmWav=n.analyzePcmWav,exports.calculatePcmFrameDbfs=g.calculatePcmFrameDbfs,exports.canRunVoice=a.canRunVoice,exports.compactVoiceCommandContext=o.compactVoiceCommandContext,exports.createVoiceDependencies=d.createVoiceDependencies,exports.createVoiceNarrationService=m.createVoiceNarrationService,exports.createVoiceTurnFallback=m.createVoiceTurnFallback,exports.deliverAutoCaptureInput=m.deliverAutoCaptureInput,exports.editDistance=o.editDistance,exports.encodePcm16Wav=t.encodePcm16Wav,exports.extractNovelNarrationResidual=c.extractNovelNarrationResidual,exports.extractTerminalAssistantText=m.extractTerminalAssistantText,exports.formatAutoCaptureActivity=i.formatAutoCaptureActivity,exports.formatVoiceActivity=i.formatVoiceActivity,exports.matchPlaybackStopPhrase=c.matchPlaybackStopPhrase,exports.matchStartPhrase=c.matchStartPhrase,exports.matchStopPhrase=c.matchStopPhrase,exports.normalizeEchoText=c.normalizeEchoText,exports.phoneticKey=o.phoneticKey,exports.resolveVoiceCommandCorrector=m.resolveVoiceCommandCorrector,exports.resolveVoiceFallbackNarrator=m.resolveVoiceFallbackNarrator,exports.resolveVoiceTranscriptAdjudicator=m.resolveVoiceTranscriptAdjudicator,exports.voiceLeaderBindings=m.voiceLeaderBindings,exports.voiceMediaClientUrl=e.voiceMediaClientUrl,exports.voiceMediaHostConnection=r.voiceMediaHostConnection,exports.voiceModeState=a.voiceModeState,exports.voiceOwnershipState=a.voiceOwnershipState,exports.voiceToolRestriction=m.voiceToolRestriction,exports.writePrivatePcm16Wav=n.writePrivatePcm16Wav;
package/dist/index.d.cts DELETED
@@ -1,23 +0,0 @@
1
- import { VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, VoiceClientKind, VoiceMediaCapabilities, VoiceMediaCapture, VoiceMediaCaptureActivity, VoiceMediaCaptureActivityState, VoiceMediaCaptureConfiguration, VoiceMediaCaptureMode, VoiceMediaCaptureSpeechAnalysis, VoiceMediaClientEvent, VoiceMediaConnectRequest, VoiceMediaConnectResult, VoiceMediaControlLocation, VoiceMediaDevice, VoiceMediaHeartbeatResult, VoiceMediaPlayback, VoiceMediaPlaybackDelivery, VoiceMediaPlaybackOutcome, VoiceMediaPlaybackResult, VoiceMediaTransport, VoiceMediaWake, voiceMediaClientUrl } from "./src/types/clientMedia.cjs";
2
- import { AsrDecodingEvidence, AudioAnalysis, AutoCaptureActivationState, AutoCaptureIndicatorState, AutoCaptureUi, BinaryProcessStartOptions, BinaryRunningProcess, IAudioAnalyzer, IAudioRecorder, IBinaryProcessSpawner, IClock, IExecutableResolver, IPcmAudioRecorder, IProcessSpawner, ISpeechPresenceDetector, ITemporaryWorkspace, ITranscriberAdapter, ITranscriberRegistry, ITtsAdapter, IVoiceMediaHostConnection, IVoiceSessionController, LiveRecordingHandle, NarrationKind, PcmAudioRecorderStartOptions, ProcessResult, ProcessStartOptions, RecordingHandle, RunningProcess, SelectedTranscriber, TimerHandle, TranscriptionAdapterOutput, TranscriptionRequest, TranscriptionResult, TtsPlayback, TtsPlaybackOutcome, TtsPlaybackReference, TtsPlaybackResult, TtsSpeakRequest, VoiceActivityUpdate, VoiceDependencies, VoiceMediaAudioPoll, VoiceState, VoiceUi } from "./src/types/index.cjs";
3
- import { ClientNarrationSynthesizer, ClientPcmAudioRecorder, ClientTtsAdapter, voiceMediaHostConnection } from "./src/services/clientMedia/index.cjs";
4
- import { ExecutableResolver, FfmpegAudioRecorder, FfmpegPcmAudioRecorder, MacOsSayPcmSynthesizer, MacOsSayTtsAdapter, NodeBinaryProcessSpawner, NodeProcessSpawner, PcmWavAnalyzer, SystemClock, TemporaryWorkspace, analyzePcmWav, writePrivatePcm16Wav } from "./src/services/infrastructure/index.cjs";
5
- import { AutoCaptureActivityPresentation, VoiceActivityPresentation, VoiceFooterContributionValue, formatAutoCaptureActivity, formatVoiceActivity } from "./src/models/voiceActivity.cjs";
6
- import { IVoiceCommandCorrectionModelClient, IVoiceCommandCorrector, VoiceCommandContext, VoiceCommandCorrectionInput, VoiceCommandCorrectionModelRequest } from "./src/services/commandCorrection/type.cjs";
7
- import { MAX_VOICE_COMMAND_CONTEXT_BYTES, VoiceCommandCorrector, compactVoiceCommandContext, editDistance, phoneticKey } from "./src/services/commandCorrection/index.cjs";
8
- import { FallbackNarration, FallbackNarrationModelRequest, FallbackNarrationSource, IFallbackNarrationModelClient, IVoiceNarrationCompactor, IVoiceTurnFallbackNarrator, VoiceTurnFallbackNarratorOptions } from "./src/services/fallbackNarration/type.cjs";
9
- import { DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS, VoiceTurnFallbackNarrator } from "./src/services/fallbackNarration/index.cjs";
10
- import { NarrationPlaybackCoordinator, NarrationPlaybackLifecycleErrorObserver, NarrationPlaybackLifecycleEvent, NarrationPlaybackLifecycleObserver, NarrationPlaybackOutcome, NarrationPlaybackRequest, NarrationPlaybackSettlement } from "./src/services/narration/index.cjs";
11
- import { VoiceNarrationPlayback, VoiceNarrationPlaybackDependencies, VoiceNarrationPlaybackLogger } from "./src/services/narrationPlayback/index.cjs";
12
- import { MlxWhisperAdapter, OpenAiWhisperAdapter, TranscriberRegistry, WhisperCppAdapter } from "./src/services/whisper/index.cjs";
13
- import { AutoCaptureDeliveryIntent, AutoCapturePiEventController, VoiceExtensionOptions, VoiceFooterContributionHandle, VoiceLeaderContributionHandle, VoiceNarrationServiceBinding, VoiceTurnFallbackRuntime, createVoiceNarrationService, createVoiceTurnFallback, deliverAutoCaptureInput, extractTerminalAssistantText, resolveVoiceCommandCorrector, resolveVoiceFallbackNarrator, resolveVoiceTranscriptAdjudicator, voiceLeaderBindings, voiceToolRestriction } from "./src/controllers/voice.cjs";
14
- import { PCM_BITS_PER_SAMPLE, PCM_BYTES_PER_SAMPLE, PCM_CHANNELS, PCM_FRAME_BYTES, PCM_FRAME_MS, PCM_SAMPLE_RATE, PcmFrameAssembler, encodePcm16Wav } from "./src/services/pcm/index.cjs";
15
- import { AdaptiveVoiceActivityDetector, AudioActivityBucket, AudioActivityHistogram, DEFAULT_VAD_CONFIGURATION, VadConfiguration, VadFrameMetadata, VadNoiseProfile, VadPushResult, VadSegment, calculatePcmFrameDbfs } from "./src/services/vad/index.cjs";
16
- import { ControlPhraseMatch, EchoProbeAction, EchoProbeClassification, EchoProbeInput, EchoProbeResult, EchoReference, IEchoProbeClassifier, NarrationAlignment, NarrationResidualAnalysis, RollingEchoProbeState } from "./src/services/semanticEcho/type.cjs";
17
- import { EchoTailTimeline, RollingEchoProbeCoordinator, SemanticEchoAdjudicator, alignNarrationSpan, extractNovelNarrationResidual, matchPlaybackStopPhrase, matchStartPhrase, matchStopPhrase, normalizeEchoText } from "./src/services/semanticEcho/index.cjs";
18
- import { BoundedTranscriptionQueue, DEFAULT_UTTERANCE_LIMITS, PendingUtterance, UtteranceAssembler, UtteranceFinalizationReason, UtteranceLimits } from "./src/services/utterance/index.cjs";
19
- import { VoiceSessionController } from "./src/services/voiceSessionController/index.cjs";
20
- import { PiVoiceConfigService } from "./src/services/voiceConfig/index.cjs";
21
- import { createVoiceDependencies } from "./src/services/voiceDependencies/index.cjs";
22
- import { canRunVoice, voiceModeState, voiceOwnershipState } from "./src/models/voiceMode.cjs";
23
- export { AdaptiveVoiceActivityDetector, type AsrDecodingEvidence, type AudioActivityBucket, type AudioActivityHistogram, type AudioAnalysis, type AutoCaptureActivationState, type AutoCaptureActivityPresentation, type AutoCaptureDeliveryIntent, type AutoCaptureIndicatorState, type AutoCapturePiEventController, type AutoCaptureUi, type BinaryProcessStartOptions, type BinaryRunningProcess, BoundedTranscriptionQueue, type ClientNarrationSynthesizer, ClientPcmAudioRecorder, ClientTtsAdapter, type ControlPhraseMatch, DEFAULT_UTTERANCE_LIMITS, DEFAULT_VAD_CONFIGURATION, DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS, type EchoProbeAction, type EchoProbeClassification, type EchoProbeInput, type EchoProbeResult, type EchoReference, EchoTailTimeline, ExecutableResolver, type FallbackNarration, type FallbackNarrationModelRequest, type FallbackNarrationSource, FfmpegAudioRecorder, FfmpegPcmAudioRecorder, type IAudioAnalyzer, type IAudioRecorder, type IBinaryProcessSpawner, type IClock, type IEchoProbeClassifier, type IExecutableResolver, type IFallbackNarrationModelClient, type IPcmAudioRecorder, type IProcessSpawner, type ISpeechPresenceDetector, type ITemporaryWorkspace, type ITranscriberAdapter, type ITranscriberRegistry, type ITtsAdapter, type IVoiceCommandCorrectionModelClient, type IVoiceCommandCorrector, type IVoiceMediaHostConnection, type IVoiceNarrationCompactor, type IVoiceSessionController, type IVoiceTurnFallbackNarrator, type LiveRecordingHandle, MAX_VOICE_COMMAND_CONTEXT_BYTES, MacOsSayPcmSynthesizer, MacOsSayTtsAdapter, MlxWhisperAdapter, type NarrationAlignment, type NarrationKind, NarrationPlaybackCoordinator, type NarrationPlaybackLifecycleErrorObserver, type NarrationPlaybackLifecycleEvent, type NarrationPlaybackLifecycleObserver, type NarrationPlaybackOutcome, type NarrationPlaybackRequest, type NarrationPlaybackSettlement, type NarrationResidualAnalysis, NodeBinaryProcessSpawner, NodeProcessSpawner, OpenAiWhisperAdapter, PCM_BITS_PER_SAMPLE, PCM_BYTES_PER_SAMPLE, PCM_CHANNELS, PCM_FRAME_BYTES, PCM_FRAME_MS, PCM_SAMPLE_RATE, type PcmAudioRecorderStartOptions, PcmFrameAssembler, PcmWavAnalyzer, type PendingUtterance, PiVoiceConfigService, type ProcessResult, type ProcessStartOptions, type RecordingHandle, RollingEchoProbeCoordinator, type RollingEchoProbeState, type RunningProcess, type SelectedTranscriber, SemanticEchoAdjudicator, SystemClock, TemporaryWorkspace, type TimerHandle, TranscriberRegistry, type TranscriptionAdapterOutput, type TranscriptionRequest, type TranscriptionResult, type TtsPlayback, type TtsPlaybackOutcome, type TtsPlaybackReference, type TtsPlaybackResult, type TtsSpeakRequest, UtteranceAssembler, type UtteranceFinalizationReason, type UtteranceLimits, VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, type VadConfiguration, type VadFrameMetadata, type VadNoiseProfile, type VadPushResult, type VadSegment, type VoiceActivityPresentation, type VoiceActivityUpdate, type VoiceClientKind, type VoiceCommandContext, type VoiceCommandCorrectionInput, type VoiceCommandCorrectionModelRequest, VoiceCommandCorrector, type VoiceDependencies, type VoiceExtensionOptions, type VoiceFooterContributionHandle, type VoiceFooterContributionValue, type VoiceLeaderContributionHandle, type VoiceMediaAudioPoll, type VoiceMediaCapabilities, type VoiceMediaCapture, type VoiceMediaCaptureActivity, type VoiceMediaCaptureActivityState, type VoiceMediaCaptureConfiguration, type VoiceMediaCaptureMode, type VoiceMediaCaptureSpeechAnalysis, type VoiceMediaClientEvent, type VoiceMediaConnectRequest, type VoiceMediaConnectResult, type VoiceMediaControlLocation, type VoiceMediaDevice, type VoiceMediaHeartbeatResult, type VoiceMediaPlayback, type VoiceMediaPlaybackDelivery, type VoiceMediaPlaybackOutcome, type VoiceMediaPlaybackResult, type VoiceMediaTransport, type VoiceMediaWake, VoiceNarrationPlayback, type VoiceNarrationPlaybackDependencies, type VoiceNarrationPlaybackLogger, type VoiceNarrationServiceBinding, VoiceSessionController, type VoiceState, VoiceTurnFallbackNarrator, type VoiceTurnFallbackNarratorOptions, type VoiceTurnFallbackRuntime, type VoiceUi, WhisperCppAdapter, alignNarrationSpan, analyzePcmWav, calculatePcmFrameDbfs, canRunVoice, compactVoiceCommandContext, createVoiceDependencies, createVoiceNarrationService, createVoiceTurnFallback, deliverAutoCaptureInput, editDistance, encodePcm16Wav, extractNovelNarrationResidual, extractTerminalAssistantText, formatAutoCaptureActivity, formatVoiceActivity, matchPlaybackStopPhrase, matchStartPhrase, matchStopPhrase, normalizeEchoText, phoneticKey, resolveVoiceCommandCorrector, resolveVoiceFallbackNarrator, resolveVoiceTranscriptAdjudicator, voiceLeaderBindings, voiceMediaClientUrl, voiceMediaHostConnection, voiceModeState, voiceOwnershipState, voiceToolRestriction, writePrivatePcm16Wav };
package/dist/index.d.mts DELETED
@@ -1,23 +0,0 @@
1
- import { VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, VoiceClientKind, VoiceMediaCapabilities, VoiceMediaCapture, VoiceMediaCaptureActivity, VoiceMediaCaptureActivityState, VoiceMediaCaptureConfiguration, VoiceMediaCaptureMode, VoiceMediaCaptureSpeechAnalysis, VoiceMediaClientEvent, VoiceMediaConnectRequest, VoiceMediaConnectResult, VoiceMediaControlLocation, VoiceMediaDevice, VoiceMediaHeartbeatResult, VoiceMediaPlayback, VoiceMediaPlaybackDelivery, VoiceMediaPlaybackOutcome, VoiceMediaPlaybackResult, VoiceMediaTransport, VoiceMediaWake, voiceMediaClientUrl } from "./src/types/clientMedia.mjs";
2
- import { AsrDecodingEvidence, AudioAnalysis, AutoCaptureActivationState, AutoCaptureIndicatorState, AutoCaptureUi, BinaryProcessStartOptions, BinaryRunningProcess, IAudioAnalyzer, IAudioRecorder, IBinaryProcessSpawner, IClock, IExecutableResolver, IPcmAudioRecorder, IProcessSpawner, ISpeechPresenceDetector, ITemporaryWorkspace, ITranscriberAdapter, ITranscriberRegistry, ITtsAdapter, IVoiceMediaHostConnection, IVoiceSessionController, LiveRecordingHandle, NarrationKind, PcmAudioRecorderStartOptions, ProcessResult, ProcessStartOptions, RecordingHandle, RunningProcess, SelectedTranscriber, TimerHandle, TranscriptionAdapterOutput, TranscriptionRequest, TranscriptionResult, TtsPlayback, TtsPlaybackOutcome, TtsPlaybackReference, TtsPlaybackResult, TtsSpeakRequest, VoiceActivityUpdate, VoiceDependencies, VoiceMediaAudioPoll, VoiceState, VoiceUi } from "./src/types/index.mjs";
3
- import { ClientNarrationSynthesizer, ClientPcmAudioRecorder, ClientTtsAdapter, voiceMediaHostConnection } from "./src/services/clientMedia/index.mjs";
4
- import { ExecutableResolver, FfmpegAudioRecorder, FfmpegPcmAudioRecorder, MacOsSayPcmSynthesizer, MacOsSayTtsAdapter, NodeBinaryProcessSpawner, NodeProcessSpawner, PcmWavAnalyzer, SystemClock, TemporaryWorkspace, analyzePcmWav, writePrivatePcm16Wav } from "./src/services/infrastructure/index.mjs";
5
- import { AutoCaptureActivityPresentation, VoiceActivityPresentation, VoiceFooterContributionValue, formatAutoCaptureActivity, formatVoiceActivity } from "./src/models/voiceActivity.mjs";
6
- import { IVoiceCommandCorrectionModelClient, IVoiceCommandCorrector, VoiceCommandContext, VoiceCommandCorrectionInput, VoiceCommandCorrectionModelRequest } from "./src/services/commandCorrection/type.mjs";
7
- import { MAX_VOICE_COMMAND_CONTEXT_BYTES, VoiceCommandCorrector, compactVoiceCommandContext, editDistance, phoneticKey } from "./src/services/commandCorrection/index.mjs";
8
- import { FallbackNarration, FallbackNarrationModelRequest, FallbackNarrationSource, IFallbackNarrationModelClient, IVoiceNarrationCompactor, IVoiceTurnFallbackNarrator, VoiceTurnFallbackNarratorOptions } from "./src/services/fallbackNarration/type.mjs";
9
- import { DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS, VoiceTurnFallbackNarrator } from "./src/services/fallbackNarration/index.mjs";
10
- import { NarrationPlaybackCoordinator, NarrationPlaybackLifecycleErrorObserver, NarrationPlaybackLifecycleEvent, NarrationPlaybackLifecycleObserver, NarrationPlaybackOutcome, NarrationPlaybackRequest, NarrationPlaybackSettlement } from "./src/services/narration/index.mjs";
11
- import { VoiceNarrationPlayback, VoiceNarrationPlaybackDependencies, VoiceNarrationPlaybackLogger } from "./src/services/narrationPlayback/index.mjs";
12
- import { MlxWhisperAdapter, OpenAiWhisperAdapter, TranscriberRegistry, WhisperCppAdapter } from "./src/services/whisper/index.mjs";
13
- import { AutoCaptureDeliveryIntent, AutoCapturePiEventController, VoiceExtensionOptions, VoiceFooterContributionHandle, VoiceLeaderContributionHandle, VoiceNarrationServiceBinding, VoiceTurnFallbackRuntime, createVoiceNarrationService, createVoiceTurnFallback, deliverAutoCaptureInput, extractTerminalAssistantText, resolveVoiceCommandCorrector, resolveVoiceFallbackNarrator, resolveVoiceTranscriptAdjudicator, voiceLeaderBindings, voiceToolRestriction } from "./src/controllers/voice.mjs";
14
- import { PCM_BITS_PER_SAMPLE, PCM_BYTES_PER_SAMPLE, PCM_CHANNELS, PCM_FRAME_BYTES, PCM_FRAME_MS, PCM_SAMPLE_RATE, PcmFrameAssembler, encodePcm16Wav } from "./src/services/pcm/index.mjs";
15
- import { AdaptiveVoiceActivityDetector, AudioActivityBucket, AudioActivityHistogram, DEFAULT_VAD_CONFIGURATION, VadConfiguration, VadFrameMetadata, VadNoiseProfile, VadPushResult, VadSegment, calculatePcmFrameDbfs } from "./src/services/vad/index.mjs";
16
- import { ControlPhraseMatch, EchoProbeAction, EchoProbeClassification, EchoProbeInput, EchoProbeResult, EchoReference, IEchoProbeClassifier, NarrationAlignment, NarrationResidualAnalysis, RollingEchoProbeState } from "./src/services/semanticEcho/type.mjs";
17
- import { EchoTailTimeline, RollingEchoProbeCoordinator, SemanticEchoAdjudicator, alignNarrationSpan, extractNovelNarrationResidual, matchPlaybackStopPhrase, matchStartPhrase, matchStopPhrase, normalizeEchoText } from "./src/services/semanticEcho/index.mjs";
18
- import { BoundedTranscriptionQueue, DEFAULT_UTTERANCE_LIMITS, PendingUtterance, UtteranceAssembler, UtteranceFinalizationReason, UtteranceLimits } from "./src/services/utterance/index.mjs";
19
- import { VoiceSessionController } from "./src/services/voiceSessionController/index.mjs";
20
- import { PiVoiceConfigService } from "./src/services/voiceConfig/index.mjs";
21
- import { createVoiceDependencies } from "./src/services/voiceDependencies/index.mjs";
22
- import { canRunVoice, voiceModeState, voiceOwnershipState } from "./src/models/voiceMode.mjs";
23
- export { AdaptiveVoiceActivityDetector, type AsrDecodingEvidence, type AudioActivityBucket, type AudioActivityHistogram, type AudioAnalysis, type AutoCaptureActivationState, type AutoCaptureActivityPresentation, type AutoCaptureDeliveryIntent, type AutoCaptureIndicatorState, type AutoCapturePiEventController, type AutoCaptureUi, type BinaryProcessStartOptions, type BinaryRunningProcess, BoundedTranscriptionQueue, type ClientNarrationSynthesizer, ClientPcmAudioRecorder, ClientTtsAdapter, type ControlPhraseMatch, DEFAULT_UTTERANCE_LIMITS, DEFAULT_VAD_CONFIGURATION, DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS, type EchoProbeAction, type EchoProbeClassification, type EchoProbeInput, type EchoProbeResult, type EchoReference, EchoTailTimeline, ExecutableResolver, type FallbackNarration, type FallbackNarrationModelRequest, type FallbackNarrationSource, FfmpegAudioRecorder, FfmpegPcmAudioRecorder, type IAudioAnalyzer, type IAudioRecorder, type IBinaryProcessSpawner, type IClock, type IEchoProbeClassifier, type IExecutableResolver, type IFallbackNarrationModelClient, type IPcmAudioRecorder, type IProcessSpawner, type ISpeechPresenceDetector, type ITemporaryWorkspace, type ITranscriberAdapter, type ITranscriberRegistry, type ITtsAdapter, type IVoiceCommandCorrectionModelClient, type IVoiceCommandCorrector, type IVoiceMediaHostConnection, type IVoiceNarrationCompactor, type IVoiceSessionController, type IVoiceTurnFallbackNarrator, type LiveRecordingHandle, MAX_VOICE_COMMAND_CONTEXT_BYTES, MacOsSayPcmSynthesizer, MacOsSayTtsAdapter, MlxWhisperAdapter, type NarrationAlignment, type NarrationKind, NarrationPlaybackCoordinator, type NarrationPlaybackLifecycleErrorObserver, type NarrationPlaybackLifecycleEvent, type NarrationPlaybackLifecycleObserver, type NarrationPlaybackOutcome, type NarrationPlaybackRequest, type NarrationPlaybackSettlement, type NarrationResidualAnalysis, NodeBinaryProcessSpawner, NodeProcessSpawner, OpenAiWhisperAdapter, PCM_BITS_PER_SAMPLE, PCM_BYTES_PER_SAMPLE, PCM_CHANNELS, PCM_FRAME_BYTES, PCM_FRAME_MS, PCM_SAMPLE_RATE, type PcmAudioRecorderStartOptions, PcmFrameAssembler, PcmWavAnalyzer, type PendingUtterance, PiVoiceConfigService, type ProcessResult, type ProcessStartOptions, type RecordingHandle, RollingEchoProbeCoordinator, type RollingEchoProbeState, type RunningProcess, type SelectedTranscriber, SemanticEchoAdjudicator, SystemClock, TemporaryWorkspace, type TimerHandle, TranscriberRegistry, type TranscriptionAdapterOutput, type TranscriptionRequest, type TranscriptionResult, type TtsPlayback, type TtsPlaybackOutcome, type TtsPlaybackReference, type TtsPlaybackResult, type TtsSpeakRequest, UtteranceAssembler, type UtteranceFinalizationReason, type UtteranceLimits, VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER, VOICE_MEDIA_ACTIVITY_EPOCH_HEADER, VOICE_MEDIA_ACTIVITY_LEVEL_HEADER, VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER, VOICE_MEDIA_ACTIVITY_STATE_HEADER, VOICE_MEDIA_API_BASE_PATH, VOICE_MEDIA_BITS_PER_SAMPLE, VOICE_MEDIA_CHANNELS, VOICE_MEDIA_CONTENT_TYPE, VOICE_MEDIA_EVENT_WAIT_NONE, VOICE_MEDIA_HEARTBEAT_MS, VOICE_MEDIA_PLAYBACK_STATE_HEADER, VOICE_MEDIA_PROTOCOL_VERSION, VOICE_MEDIA_ROUTES, VOICE_MEDIA_SAMPLE_RATE, VOICE_MEDIA_WAKE_TYPE, type VadConfiguration, type VadFrameMetadata, type VadNoiseProfile, type VadPushResult, type VadSegment, type VoiceActivityPresentation, type VoiceActivityUpdate, type VoiceClientKind, type VoiceCommandContext, type VoiceCommandCorrectionInput, type VoiceCommandCorrectionModelRequest, VoiceCommandCorrector, type VoiceDependencies, type VoiceExtensionOptions, type VoiceFooterContributionHandle, type VoiceFooterContributionValue, type VoiceLeaderContributionHandle, type VoiceMediaAudioPoll, type VoiceMediaCapabilities, type VoiceMediaCapture, type VoiceMediaCaptureActivity, type VoiceMediaCaptureActivityState, type VoiceMediaCaptureConfiguration, type VoiceMediaCaptureMode, type VoiceMediaCaptureSpeechAnalysis, type VoiceMediaClientEvent, type VoiceMediaConnectRequest, type VoiceMediaConnectResult, type VoiceMediaControlLocation, type VoiceMediaDevice, type VoiceMediaHeartbeatResult, type VoiceMediaPlayback, type VoiceMediaPlaybackDelivery, type VoiceMediaPlaybackOutcome, type VoiceMediaPlaybackResult, type VoiceMediaTransport, type VoiceMediaWake, VoiceNarrationPlayback, type VoiceNarrationPlaybackDependencies, type VoiceNarrationPlaybackLogger, type VoiceNarrationServiceBinding, VoiceSessionController, type VoiceState, VoiceTurnFallbackNarrator, type VoiceTurnFallbackNarratorOptions, type VoiceTurnFallbackRuntime, type VoiceUi, WhisperCppAdapter, alignNarrationSpan, analyzePcmWav, calculatePcmFrameDbfs, canRunVoice, compactVoiceCommandContext, createVoiceDependencies, createVoiceNarrationService, createVoiceTurnFallback, deliverAutoCaptureInput, editDistance, encodePcm16Wav, extractNovelNarrationResidual, extractTerminalAssistantText, formatAutoCaptureActivity, formatVoiceActivity, matchPlaybackStopPhrase, matchStartPhrase, matchStopPhrase, normalizeEchoText, phoneticKey, resolveVoiceCommandCorrector, resolveVoiceFallbackNarrator, resolveVoiceTranscriptAdjudicator, voiceLeaderBindings, voiceMediaClientUrl, voiceMediaHostConnection, voiceModeState, voiceOwnershipState, voiceToolRestriction, writePrivatePcm16Wav };
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- import{VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER as e,VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER as t,VOICE_MEDIA_ACTIVITY_EPOCH_HEADER as n,VOICE_MEDIA_ACTIVITY_LEVEL_HEADER as r,VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER as i,VOICE_MEDIA_ACTIVITY_STATE_HEADER as a,VOICE_MEDIA_API_BASE_PATH as o,VOICE_MEDIA_BITS_PER_SAMPLE as s,VOICE_MEDIA_CHANNELS as c,VOICE_MEDIA_CONTENT_TYPE as l,VOICE_MEDIA_EVENT_WAIT_NONE as u,VOICE_MEDIA_HEARTBEAT_MS as d,VOICE_MEDIA_PLAYBACK_STATE_HEADER as f,VOICE_MEDIA_PROTOCOL_VERSION as p,VOICE_MEDIA_ROUTES as m,VOICE_MEDIA_SAMPLE_RATE as h,VOICE_MEDIA_WAKE_TYPE as g,voiceMediaClientUrl as _}from"./src/types/clientMedia.mjs";import{PCM_BITS_PER_SAMPLE as v,PCM_BYTES_PER_SAMPLE as y,PCM_CHANNELS as b,PCM_FRAME_BYTES as x,PCM_FRAME_MS as S,PCM_SAMPLE_RATE as C,PcmFrameAssembler as w,encodePcm16Wav as T}from"./src/services/pcm/index.mjs";import{ExecutableResolver as E,FfmpegAudioRecorder as D,FfmpegPcmAudioRecorder as O,MacOsSayPcmSynthesizer as k,MacOsSayTtsAdapter as A,NodeBinaryProcessSpawner as j,NodeProcessSpawner as M,PcmWavAnalyzer as N,SystemClock as P,TemporaryWorkspace as F,analyzePcmWav as I,writePrivatePcm16Wav as L}from"./src/services/infrastructure/index.mjs";import{ClientPcmAudioRecorder as R,ClientTtsAdapter as z,voiceMediaHostConnection as B}from"./src/services/clientMedia/index.mjs";import{formatAutoCaptureActivity as V,formatVoiceActivity as H}from"./src/models/voiceActivity.mjs";import{canRunVoice as U,voiceModeState as W,voiceOwnershipState as G}from"./src/models/voiceMode.mjs";import{MAX_VOICE_COMMAND_CONTEXT_BYTES as K,VoiceCommandCorrector as q,compactVoiceCommandContext as J,editDistance as Y,phoneticKey as X}from"./src/services/commandCorrection/index.mjs";import{DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS as Z,VoiceTurnFallbackNarrator as Q}from"./src/services/fallbackNarration/index.mjs";import{EchoTailTimeline as $,RollingEchoProbeCoordinator as ee,SemanticEchoAdjudicator as te,alignNarrationSpan as ne,extractNovelNarrationResidual as re,matchPlaybackStopPhrase as ie,matchStartPhrase as ae,matchStopPhrase as oe,normalizeEchoText as se}from"./src/services/semanticEcho/index.mjs";import{PiVoiceConfigService as ce}from"./src/services/voiceConfig/index.mjs";import{MlxWhisperAdapter as le,OpenAiWhisperAdapter as ue,TranscriberRegistry as de,WhisperCppAdapter as fe}from"./src/services/whisper/index.mjs";import{createVoiceDependencies as pe}from"./src/services/voiceDependencies/index.mjs";import{NarrationPlaybackCoordinator as me}from"./src/services/narration/index.mjs";import{VoiceNarrationPlayback as he}from"./src/services/narrationPlayback/index.mjs";import{createVoiceNarrationService as ge,createVoiceTurnFallback as _e,deliverAutoCaptureInput as ve,extractTerminalAssistantText as ye,resolveVoiceCommandCorrector as be,resolveVoiceFallbackNarrator as xe,resolveVoiceTranscriptAdjudicator as Se,voiceLeaderBindings as Ce,voiceToolRestriction as we}from"./src/controllers/voice.mjs";import{BoundedTranscriptionQueue as Te,DEFAULT_UTTERANCE_LIMITS as Ee,UtteranceAssembler as De}from"./src/services/utterance/index.mjs";import{AdaptiveVoiceActivityDetector as Oe,DEFAULT_VAD_CONFIGURATION as ke,calculatePcmFrameDbfs as Ae}from"./src/services/vad/index.mjs";import{VoiceSessionController as je}from"./src/services/voiceSessionController/index.mjs";export{Oe as AdaptiveVoiceActivityDetector,Te as BoundedTranscriptionQueue,R as ClientPcmAudioRecorder,z as ClientTtsAdapter,Ee as DEFAULT_UTTERANCE_LIMITS,ke as DEFAULT_VAD_CONFIGURATION,Z as DETERMINISTIC_FALLBACK_THRESHOLD_CHARACTERS,$ as EchoTailTimeline,E as ExecutableResolver,D as FfmpegAudioRecorder,O as FfmpegPcmAudioRecorder,K as MAX_VOICE_COMMAND_CONTEXT_BYTES,k as MacOsSayPcmSynthesizer,A as MacOsSayTtsAdapter,le as MlxWhisperAdapter,me as NarrationPlaybackCoordinator,j as NodeBinaryProcessSpawner,M as NodeProcessSpawner,ue as OpenAiWhisperAdapter,v as PCM_BITS_PER_SAMPLE,y as PCM_BYTES_PER_SAMPLE,b as PCM_CHANNELS,x as PCM_FRAME_BYTES,S as PCM_FRAME_MS,C as PCM_SAMPLE_RATE,w as PcmFrameAssembler,N as PcmWavAnalyzer,ce as PiVoiceConfigService,ee as RollingEchoProbeCoordinator,te as SemanticEchoAdjudicator,P as SystemClock,F as TemporaryWorkspace,de as TranscriberRegistry,De as UtteranceAssembler,e as VOICE_MEDIA_ACTIVITY_ECHO_SPEECH_MS_HEADER,t as VOICE_MEDIA_ACTIVITY_ELAPSED_HEADER,n as VOICE_MEDIA_ACTIVITY_EPOCH_HEADER,r as VOICE_MEDIA_ACTIVITY_LEVEL_HEADER,i as VOICE_MEDIA_ACTIVITY_SPEECH_MS_HEADER,a as VOICE_MEDIA_ACTIVITY_STATE_HEADER,o as VOICE_MEDIA_API_BASE_PATH,s as VOICE_MEDIA_BITS_PER_SAMPLE,c as VOICE_MEDIA_CHANNELS,l as VOICE_MEDIA_CONTENT_TYPE,u as VOICE_MEDIA_EVENT_WAIT_NONE,d as VOICE_MEDIA_HEARTBEAT_MS,f as VOICE_MEDIA_PLAYBACK_STATE_HEADER,p as VOICE_MEDIA_PROTOCOL_VERSION,m as VOICE_MEDIA_ROUTES,h as VOICE_MEDIA_SAMPLE_RATE,g as VOICE_MEDIA_WAKE_TYPE,q as VoiceCommandCorrector,he as VoiceNarrationPlayback,je as VoiceSessionController,Q as VoiceTurnFallbackNarrator,fe as WhisperCppAdapter,ne as alignNarrationSpan,I as analyzePcmWav,Ae as calculatePcmFrameDbfs,U as canRunVoice,J as compactVoiceCommandContext,pe as createVoiceDependencies,ge as createVoiceNarrationService,_e as createVoiceTurnFallback,ve as deliverAutoCaptureInput,Y as editDistance,T as encodePcm16Wav,re as extractNovelNarrationResidual,ye as extractTerminalAssistantText,V as formatAutoCaptureActivity,H as formatVoiceActivity,ie as matchPlaybackStopPhrase,ae as matchStartPhrase,oe as matchStopPhrase,se as normalizeEchoText,X as phoneticKey,be as resolveVoiceCommandCorrector,xe as resolveVoiceFallbackNarrator,Se as resolveVoiceTranscriptAdjudicator,Ce as voiceLeaderBindings,_ as voiceMediaClientUrl,B as voiceMediaHostConnection,W as voiceModeState,G as voiceOwnershipState,we as voiceToolRestriction,L as writePrivatePcm16Wav};
@@ -1,2 +0,0 @@
1
- exports.COMMAND_NAME=`voice`;
2
- //# sourceMappingURL=voice.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"voice.cjs","names":[],"sources":["../../../src/constants/voice.ts"],"sourcesContent":["export const COMMAND_NAME = 'voice';\n"],"mappings":""}
@@ -1,2 +0,0 @@
1
- const e=`voice`;export{e as COMMAND_NAME};
2
- //# sourceMappingURL=voice.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"voice.mjs","names":[],"sources":["../../../src/constants/voice.ts"],"sourcesContent":["export const COMMAND_NAME = 'voice';\n"],"mappings":"AAAA,MAAa,EAAe"}
@@ -1,2 +0,0 @@
1
- const e=[`·`,`•`,`●`,`•`],t=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`],n={key:`v`,label:`voice`,detail:`dictation and narration`,order:67};exports.AUTO_LEADER_DETAIL=`autonomous capture with agent narration`,exports.AUTO_MODE_COLOR=`accent`,exports.AUTO_MODE_LABEL=`Voice`,exports.ERROR_NOTIFICATION=`error`,exports.IDLE_STATE=`idle`,exports.INFO_NOTIFICATION=`info`,exports.MAX_RECORDING_MS=3e5,exports.RECORDING_FAILED_EVENT=`doom_voice.recording_failed`,exports.RECORDING_FINISHED_EVENT=`doom_voice.recording_finished`,exports.RECORDING_FRAMES=e,exports.RECORDING_REQUESTED_EVENT=`doom_voice.recording_requested`,exports.RECORDING_STARTED_EVENT=`doom_voice.recording_started`,exports.RECORDING_STATE=`recording`,exports.STATUS_KEY=`doom-voice`,exports.TRANSCRIBING_FRAMES=t,exports.TRANSCRIBING_STATE=`transcribing`,exports.TRANSCRIPTION_FAILED_EVENT=`doom_voice.transcription_failed`,exports.TRANSCRIPTION_FINISHED_EVENT=`doom_voice.transcription_finished`,exports.TRANSCRIPTION_STARTED_EVENT=`doom_voice.transcription_started`,exports.VOICE_GROUP_SEGMENT=n;
2
- //# sourceMappingURL=voiceRuntime.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"voiceRuntime.cjs","names":[],"sources":["../../../src/constants/voiceRuntime.ts"],"sourcesContent":["export const STATUS_KEY = 'doom-voice';\n\nexport const MAX_RECORDING_MS = 300_000;\n\nexport const ACTIVITY_INTERVAL_MS = 120;\n\nexport const LEADER_GROUP_ORDER = 67;\n\nexport const AUTO_LEADER_DETAIL = 'autonomous capture with agent narration';\n\nexport const AUTO_MODE_LABEL = 'Voice';\n\nexport const AUTO_MODE_COLOR = 'accent' as const;\n\nexport const RECORDING_FRAMES = ['·', '•', '●', '•'] as const;\n\nexport const TRANSCRIBING_FRAMES = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'] as const;\n\nexport const INFO_NOTIFICATION = 'info';\n\nexport const ERROR_NOTIFICATION = 'error';\n\nexport const RECORDING_REQUESTED_EVENT = 'doom_voice.recording_requested';\n\nexport const RECORDING_STARTED_EVENT = 'doom_voice.recording_started';\n\nexport const RECORDING_FAILED_EVENT = 'doom_voice.recording_failed';\n\nexport const RECORDING_FINISHED_EVENT = 'doom_voice.recording_finished';\n\nexport const TRANSCRIPTION_STARTED_EVENT = 'doom_voice.transcription_started';\n\nexport const TRANSCRIPTION_FINISHED_EVENT = 'doom_voice.transcription_finished';\n\nexport const TRANSCRIPTION_FAILED_EVENT = 'doom_voice.transcription_failed';\n\nexport const IDLE_STATE = 'idle' as const;\n\nexport const RECORDING_STATE = 'recording' as const;\n\nexport const TRANSCRIBING_STATE = 'transcribing' as const;\n\nexport const VOICE_GROUP_SEGMENT = {\n key: 'v',\n label: 'voice',\n detail: 'dictation and narration',\n order: LEADER_GROUP_ORDER,\n} as const;\n"],"mappings":"AAAA,MAca,EAAmB,CAAC,KAAM,KAAM,KAAM,IAAI,EAE1C,EAAsB,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,IAAI,EA0BjF,EAAsB,CACjC,IAAK,IACL,MAAO,QACP,OAAQ,0BACR,MAAA,EACF"}
@@ -1,2 +0,0 @@
1
- const e=`doom-voice`,t=3e5,n=`autonomous capture with agent narration`,r=`Voice`,i=`accent`,a=[`·`,`•`,`●`,`•`],o=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`],s=`info`,c=`error`,l=`doom_voice.recording_requested`,u=`doom_voice.recording_started`,d=`doom_voice.recording_failed`,f=`doom_voice.recording_finished`,p=`doom_voice.transcription_started`,m=`doom_voice.transcription_finished`,h=`doom_voice.transcription_failed`,g=`idle`,_=`recording`,v=`transcribing`,y={key:`v`,label:`voice`,detail:`dictation and narration`,order:67};export{n as AUTO_LEADER_DETAIL,i as AUTO_MODE_COLOR,r as AUTO_MODE_LABEL,c as ERROR_NOTIFICATION,g as IDLE_STATE,s as INFO_NOTIFICATION,t as MAX_RECORDING_MS,d as RECORDING_FAILED_EVENT,f as RECORDING_FINISHED_EVENT,a as RECORDING_FRAMES,l as RECORDING_REQUESTED_EVENT,u as RECORDING_STARTED_EVENT,_ as RECORDING_STATE,e as STATUS_KEY,o as TRANSCRIBING_FRAMES,v as TRANSCRIBING_STATE,h as TRANSCRIPTION_FAILED_EVENT,m as TRANSCRIPTION_FINISHED_EVENT,p as TRANSCRIPTION_STARTED_EVENT,y as VOICE_GROUP_SEGMENT};
2
- //# sourceMappingURL=voiceRuntime.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"voiceRuntime.mjs","names":[],"sources":["../../../src/constants/voiceRuntime.ts"],"sourcesContent":["export const STATUS_KEY = 'doom-voice';\n\nexport const MAX_RECORDING_MS = 300_000;\n\nexport const ACTIVITY_INTERVAL_MS = 120;\n\nexport const LEADER_GROUP_ORDER = 67;\n\nexport const AUTO_LEADER_DETAIL = 'autonomous capture with agent narration';\n\nexport const AUTO_MODE_LABEL = 'Voice';\n\nexport const AUTO_MODE_COLOR = 'accent' as const;\n\nexport const RECORDING_FRAMES = ['·', '•', '●', '•'] as const;\n\nexport const TRANSCRIBING_FRAMES = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'] as const;\n\nexport const INFO_NOTIFICATION = 'info';\n\nexport const ERROR_NOTIFICATION = 'error';\n\nexport const RECORDING_REQUESTED_EVENT = 'doom_voice.recording_requested';\n\nexport const RECORDING_STARTED_EVENT = 'doom_voice.recording_started';\n\nexport const RECORDING_FAILED_EVENT = 'doom_voice.recording_failed';\n\nexport const RECORDING_FINISHED_EVENT = 'doom_voice.recording_finished';\n\nexport const TRANSCRIPTION_STARTED_EVENT = 'doom_voice.transcription_started';\n\nexport const TRANSCRIPTION_FINISHED_EVENT = 'doom_voice.transcription_finished';\n\nexport const TRANSCRIPTION_FAILED_EVENT = 'doom_voice.transcription_failed';\n\nexport const IDLE_STATE = 'idle' as const;\n\nexport const RECORDING_STATE = 'recording' as const;\n\nexport const TRANSCRIBING_STATE = 'transcribing' as const;\n\nexport const VOICE_GROUP_SEGMENT = {\n key: 'v',\n label: 'voice',\n detail: 'dictation and narration',\n order: LEADER_GROUP_ORDER,\n} as const;\n"],"mappings":"AAAA,MAAa,EAAa,aAEb,EAAmB,IAMnB,EAAqB,0CAErB,EAAkB,QAElB,EAAkB,SAElB,EAAmB,CAAC,KAAM,KAAM,KAAM,IAAI,EAE1C,EAAsB,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,IAAI,EAEjF,EAAoB,OAEpB,EAAqB,QAErB,EAA4B,iCAE5B,EAA0B,+BAE1B,EAAyB,8BAEzB,EAA2B,gCAE3B,EAA8B,mCAE9B,EAA+B,oCAE/B,EAA6B,kCAE7B,EAAa,OAEb,EAAkB,YAElB,EAAqB,eAErB,EAAsB,CACjC,IAAK,IACL,MAAO,QACP,OAAQ,0BACR,MAAA,EACF"}