agent-yes 1.303.1 → 1.304.0

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 (184) hide show
  1. package/README.md +54 -0
  2. package/default.config.yaml +5 -5
  3. package/dist/{JsonlStore-BpYZZTap.js → JsonlStore-CB_0sfdT.js} +5 -4
  4. package/dist/{SUPPORTED_CLIS-Dq9Lq9WJ.js → SUPPORTED_CLIS-C_1IiOj3.js} +2 -2
  5. package/dist/SUPPORTED_CLIS-Do3GHAY1.js +12 -0
  6. package/dist/{agentShare-suB6yPgO.js → agentShare-BvpEm-Fr.js} +10 -9
  7. package/dist/{askCli-BU3CNCLU.js → askCli-KmMf-3wA.js} +6 -6
  8. package/dist/{browser-BmxN1Ur9.js → browser-BAFPmEvN.js} +2 -2
  9. package/dist/{callback-Ctj3_Wxp.js → callback-BiSUhjw7.js} +6 -6
  10. package/dist/callback-SqLD2mMX.js +17 -0
  11. package/dist/{callbackCore-DSJWhqAe.js → callbackCore-BZ_10zyc.js} +1 -1
  12. package/dist/{callbackCore-BesbQ6-Z.js → callbackCore-Deve5pv3.js} +1 -1
  13. package/dist/{channels-j5nWuzlQ.js → channels-Y36S0ccW.js} +2 -2
  14. package/dist/cli.js +118 -13
  15. package/dist/{cmdDsh-2LP0grim.js → cmdDsh-DZ8bLsH7.js} +1 -1
  16. package/dist/cmdKill-CzSBfWmx.js +116 -0
  17. package/dist/{cmdPs-wc1j85fi.js → cmdPs-DBt23Qz0.js} +11 -10
  18. package/dist/{cwdConflictWarn-skQSMwEh.js → cwdConflictWarn-y-epQyOj.js} +21 -5
  19. package/dist/{cwdPassthroughHint-BUbWMoz0.js → cwdPassthroughHint-CzWh0hrw.js} +1 -1
  20. package/dist/{expose-Dawq1LxC.js → expose-Bhsn5yUz.js} +2 -2
  21. package/dist/forceKill-BDqxx4uQ.js +44 -0
  22. package/dist/{forkNested-CavHyWzA.js → forkNested-3heLs5XC.js} +45 -5
  23. package/dist/{globalPidIndex-CRB5KtyL.js → globalPidIndex-BsjlId-h.js} +6 -5
  24. package/dist/{globalPidIndex-BftWlg2V.js → globalPidIndex-uoz8Esqz.js} +2 -2
  25. package/dist/{hist-Cs0KFSUW.js → hist-DY16wm7g.js} +1 -1
  26. package/dist/{identity-DA7YI9km.js → identity-C0MxfwI2.js} +1 -1
  27. package/dist/{identity-Bk-aG_xl.js → identity-Ckav3-Up.js} +1 -1
  28. package/dist/index.js +7 -7
  29. package/dist/{initMsg-CcTqFtsp.js → initMsg-BEVDWYnv.js} +1 -1
  30. package/dist/{initMsg-D9KJnfgC.js → initMsg-GPU52N-j.js} +1 -1
  31. package/dist/liagent/box-BSIrRRc_.js +2320 -0
  32. package/dist/liagent/box-DloywR57.d.ts +409 -0
  33. package/dist/liagent/box.d.ts +3 -0
  34. package/dist/liagent/box.js +3 -0
  35. package/dist/liagent/cli.d.ts +1 -0
  36. package/dist/liagent/cli.js +908 -0
  37. package/dist/liagent/client.d.ts +28 -0
  38. package/dist/liagent/client.js +240 -0
  39. package/dist/liagent/echo-BvzPSI0x.js +86 -0
  40. package/dist/liagent/echo-W2RcMEny.d.ts +38 -0
  41. package/dist/liagent/hub.d.ts +405 -0
  42. package/dist/liagent/hub.js +1831 -0
  43. package/dist/liagent/index.d.ts +14 -0
  44. package/dist/liagent/index.js +10 -0
  45. package/dist/liagent/liagent.js +339 -0
  46. package/dist/liagent/mic-audio-C3Shud_F.js +754 -0
  47. package/dist/liagent/mic-audio-DMCWtEI-.d.ts +317 -0
  48. package/dist/liagent/mic-button-CtZHFBSG.js +651 -0
  49. package/dist/liagent/mic-button-Y0ioPetQ.d.ts +248 -0
  50. package/dist/liagent/mic.d.ts +3 -0
  51. package/dist/liagent/mic.js +4 -0
  52. package/dist/liagent/progress-CJs08bXb.js +473 -0
  53. package/dist/liagent/progress-CfE-meHr.d.ts +205 -0
  54. package/dist/liagent/progress.d.ts +2 -0
  55. package/dist/liagent/progress.js +3 -0
  56. package/dist/liagent/protocol.d.ts +324 -0
  57. package/dist/liagent/protocol.js +504 -0
  58. package/dist/liagent/speech-rate-DXeJjRTc.js +42 -0
  59. package/dist/liagent/state-tree-BZCmAknI.js +353 -0
  60. package/dist/liagent/tree-BrR7NwMf.js +710 -0
  61. package/dist/liagent/tree-HB9RhX_H.d.ts +295 -0
  62. package/dist/liagent/tree.d.ts +2 -0
  63. package/dist/liagent/tree.js +4 -0
  64. package/dist/liagent/ui-strings-B03le3fh.d.ts +27 -0
  65. package/dist/liagent/ui-strings-CJIwW5Gf.js +794 -0
  66. package/dist/liagent/ui.d.ts +394 -0
  67. package/dist/liagent/ui.js +5 -0
  68. package/dist/liagent/voice-D7yeS9VM.js +802 -0
  69. package/dist/liagent/voice-Qo7SCgi8.d.ts +308 -0
  70. package/dist/liagent/voice.d.ts +3 -0
  71. package/dist/liagent/voice.js +4 -0
  72. package/dist/{notifyDaemon-C7GlfJ1E.js → notifyDaemon-DkUB7GV2.js} +10 -9
  73. package/dist/{openBrowser-1cIo4dJL.js → openBrowser-CQAOIrD6.js} +1 -1
  74. package/dist/oxmgrService-DlYHmqyI.js +37 -0
  75. package/dist/oxmgrService-o9L3I6FX.js +3 -0
  76. package/dist/{parentLink-DoEWVGld.js → parentLink-BcAYcO9L.js} +2 -2
  77. package/dist/{parentLink-B58V1RVd.js → parentLink-MBUD3oY2.js} +2 -2
  78. package/dist/{parentPingLoop-C73bbmCE.js → parentPingLoop-DDO592Wh.js} +5 -5
  79. package/dist/{pidStore-433kvh9D.js → pidStore-C50VPk3E.js} +3 -3
  80. package/dist/pidStore-COkPjpW8.js +6 -0
  81. package/dist/{procStats-BvmrBrOs.js → procStats-DwTxj3rs.js} +1 -1
  82. package/dist/{remotes-MfdV9M8u.js → remotes-BqLoB5GR.js} +2 -2
  83. package/dist/{remotes-DevcBeLl.js → remotes-BsMGvAay.js} +3 -3
  84. package/dist/{roomReplyAlias-DFqg_6IU.js → roomReplyAlias-B-v76TA8.js} +3 -3
  85. package/dist/roomReplyAlias-BzWUBkQy.js +6 -0
  86. package/dist/{rustBinary-7VK7oLlW.js → rustBinary-BrJ2p8wy.js} +2 -2
  87. package/dist/{rustBinary-BV4LxMMn.js → rustBinary-vpfpWj1q.js} +2 -2
  88. package/dist/{schedule-Dp0qkNO1.js → schedule-Bzjhl6-h.js} +15 -44
  89. package/dist/schedulesCli-CLqieyQZ.js +784 -0
  90. package/dist/senderAncestry-CVHeKk1Y.js +173 -0
  91. package/dist/senderAncestry-KhAUPCQs.js +3 -0
  92. package/dist/{serve-BpOIIOVc.js → serve-XwFYE0cE.js} +67 -69
  93. package/dist/{serveRust-CbBrcUrg.js → serveRust-BfWkeL6T.js} +31 -4
  94. package/dist/{setup-DdIBk6Iv.js → setup-D4-s2VZw.js} +5 -5
  95. package/dist/{share-w5oRbvlj.js → share-CbFetL5H.js} +1 -1
  96. package/dist/{share-DrS3LYqf.js → share-_TPYAGWC.js} +1 -1
  97. package/dist/{shareCmd-DDENkBW2.js → shareCmd-DUBsVI3e.js} +10 -10
  98. package/dist/spawnGate-Dfj9V76w.js +5 -0
  99. package/dist/{spawnGate-lr3tvA6U.js → spawnGate-Dj_WaS29.js} +3 -3
  100. package/dist/{subcommands-DxgvDmZX.js → subcommands-B7YZJL8n.js} +471 -307
  101. package/dist/subcommands-BZPxFgkT.js +15 -0
  102. package/dist/{systemPathLink-SjUzgSiq.js → systemPathLink-Y3iC7bYV.js} +1 -1
  103. package/dist/{terminal-C2h7tpe0.js → terminal-13cGj3h6.js} +2 -2
  104. package/dist/terminal.js +1 -1
  105. package/dist/{todoAutomation-TTp_Qz9G.js → todoAutomation-CKlrxuZv.js} +2 -2
  106. package/dist/{todoCli-BWm5nZE0.js → todoCli-CU9vSJSJ.js} +6 -6
  107. package/dist/{todoIdentity-BvXZKWJI.js → todoIdentity-CzS1e7VL.js} +2 -2
  108. package/dist/{todoStore-C9RTz0Vs.js → todoStore-msRCEUi1.js} +2 -2
  109. package/dist/{tray-BeRSozJz.js → tray-CLktEN3G.js} +1 -1
  110. package/dist/{trayApp-QQjqhDv1.js → trayApp-5_OlvQcz.js} +2 -2
  111. package/dist/trayApp-DkAPo0m6.js +5 -0
  112. package/dist/{ts-6LF7f4fx.js → ts-njuddXQz.js} +126 -57
  113. package/dist/{versionChecker-Bc62HNf6.js → versionChecker-BJycAanp.js} +2 -2
  114. package/dist/{webrtcLink-va_gAR77.js → webrtcLink-DcvacEci.js} +1 -1
  115. package/dist/{webrtcLink-SsInrVHU.js → webrtcLink-WxS1nTIs.js} +1 -1
  116. package/dist/{webrtcRemote-BlGyNZDC.js → webrtcRemote-C3xQyf3u.js} +2 -2
  117. package/dist/{widget-Crb5zeHL.js → widget-DmRwOlco.js} +3 -3
  118. package/dist/widgets.js +1 -1
  119. package/dist/{workspaceConfig-BLWB5Wu9.js → workspaceConfig-DBgsu81B.js} +1 -1
  120. package/dist/{ws-DIbwNz8Z.js → ws-ByO6JO6m.js} +3 -3
  121. package/dist/{ws-BRhPG1Vy.js → ws-D0-Jg88z.js} +9 -8
  122. package/lab/ui/index.html +1 -1
  123. package/lab/ui/lab/posts/2026-08-11-slack-term-safe-writes.md +1 -1
  124. package/package.json +73 -8
  125. package/ts/JsonlStore.ts +10 -3
  126. package/ts/cli-idle.bun.spec.ts +1 -1
  127. package/ts/cli-idle.spec.ts +1 -1
  128. package/ts/cli.ts +35 -0
  129. package/ts/cmdKill.bun.spec.ts +155 -0
  130. package/ts/cmdKill.spec.ts +155 -0
  131. package/ts/cmdKill.ts +183 -0
  132. package/ts/composerGuard.edges.spec.ts +91 -0
  133. package/ts/composerGuard.spec.ts +53 -6
  134. package/ts/composerGuard.ts +42 -13
  135. package/ts/conptyModeFilter.spec.ts +30 -0
  136. package/ts/conptyModeFilter.ts +53 -0
  137. package/ts/copyLiagent.ts +42 -0
  138. package/ts/cwdConflictWarn.io.spec.ts +50 -0
  139. package/ts/cwdConflictWarn.spec.ts +34 -1
  140. package/ts/cwdConflictWarn.ts +43 -5
  141. package/ts/cwdGuard.spec.ts +110 -0
  142. package/ts/cwdGuard.ts +118 -0
  143. package/ts/forceKill.ts +52 -0
  144. package/ts/forkNested.bun.spec.ts +41 -0
  145. package/ts/forkNested.spec.ts +41 -0
  146. package/ts/forkNested.ts +48 -1
  147. package/ts/globalPidIndex.edges.spec.ts +125 -0
  148. package/ts/globalPidIndex.ts +6 -2
  149. package/ts/index.ts +13 -1
  150. package/ts/interruptSend.bun.spec.ts +99 -0
  151. package/ts/interruptSend.spec.ts +99 -0
  152. package/ts/interruptSend.ts +51 -0
  153. package/ts/lockRegistry.spec.ts +49 -0
  154. package/ts/lsRenderCache.spec.ts +58 -0
  155. package/ts/needsInput.edges.spec.ts +23 -0
  156. package/ts/parseCliArgs.ts +7 -0
  157. package/ts/pushGatePlan.spec.ts +147 -0
  158. package/ts/roomReplyAlias.io.spec.ts +81 -0
  159. package/ts/schedule.ts +5 -1
  160. package/ts/schedules.bun.spec.ts +397 -0
  161. package/ts/schedules.spec.ts +397 -0
  162. package/ts/schedules.ts +517 -0
  163. package/ts/schedulesCli.ts +386 -0
  164. package/ts/sendControl.bun.spec.ts +12 -0
  165. package/ts/senderAncestry.ts +1 -3
  166. package/ts/serve.ts +22 -33
  167. package/ts/serveRust.spec.ts +29 -2
  168. package/ts/serveRust.ts +27 -2
  169. package/ts/sizeNego.bun.spec.ts +9 -2
  170. package/ts/sizeNego.spec.ts +9 -2
  171. package/ts/sizeNego.ts +10 -5
  172. package/ts/subcommands.spec.ts +348 -9
  173. package/ts/subcommands.ts +513 -93
  174. package/ts/suggestAgents.spec.ts +33 -0
  175. package/ts/terminal/browser.ts +1 -1
  176. package/ts/todoParse.spec.ts +22 -1
  177. package/ts/todoParse.ts +19 -0
  178. package/dist/SUPPORTED_CLIS-ByO5twge.js +0 -12
  179. package/dist/callback-D7qfh_7p.js +0 -16
  180. package/dist/pidStore-BRlKRHXY.js +0 -6
  181. package/dist/roomReplyAlias-DuEkSSDI.js +0 -6
  182. package/dist/spawnGate-DeQBTX-o.js +0 -5
  183. package/dist/subcommands-DmiswRy4.js +0 -14
  184. package/dist/trayApp-C4TAvRvU.js +0 -5
@@ -0,0 +1,248 @@
1
+ import { C as MicState, I as UploadInfo, M as SttResult, R as Vad, S as MicErrorStrings, o as VadSource, w as MicStatus, z as VadEvents } from "./mic-audio-DMCWtEI-.js";
2
+
3
+ //#region src/mic-session.d.ts
4
+ /** globalThis key of the session. */
5
+ declare const MIC_SESSION_KEY = "__liagentMic";
6
+ /** Bumped when the session's shape changes; an older one is migrated, its stream kept. */
7
+ declare const MIC_SESSION_V = 1;
8
+ /** sessionStorage: "1" while this tab has the mic on (cleared by an explicit off). */
9
+ declare const MIC_ON_KEY = "liagent:mic";
10
+ /** The slice of a MediaStream the session uses. */
11
+ type StreamLike = {
12
+ id: string;
13
+ getTracks(): {
14
+ readyState: string;
15
+ stop(): void;
16
+ }[];
17
+ };
18
+ /** How a reload with the mic on went: resumed by itself, or waiting for a tap (and why). */
19
+ type ResumeOutcome = {
20
+ path: "auto";
21
+ ok: true;
22
+ permission: string;
23
+ } | {
24
+ path: "tap";
25
+ reason: string;
26
+ };
27
+ /** What the mic needs to know of the agent's voice. */
28
+ type VoiceLinkState = {
29
+ /** A reply is being read (or just was: the tail). */speaking: boolean; /** Capture is held while it is (echo cancellation off). */
30
+ hold: boolean;
31
+ };
32
+ /**
33
+ * A voice output the mic works with (hands-free): told when the mic is on and
34
+ * when the user starts and stops talking, it ducks, pauses and resumes the
35
+ * reading; it says when capture must be held, and which transcripts were its
36
+ * own echo. liagent/voice's session is one; anything with this shape works.
37
+ */
38
+ interface MicVoiceLink {
39
+ /** The mic turned on (listening, loading or capturing) or off. */
40
+ setMic(on: boolean): void;
41
+ /** The VAD heard the user start. */
42
+ userSpeech(): void;
43
+ /** The user's utterance ended (or misfired). */
44
+ userIdle(): void;
45
+ /** One frame's speech probability while the user is heard. */
46
+ userFrame?(prob: number): void;
47
+ state(): VoiceLinkState;
48
+ subscribe(f: (s: VoiceLinkState) => void): () => void;
49
+ /** A tap on the mic while the agent speaks. */
50
+ interrupt?(why: "tap"): void;
51
+ /** Was this transcript the agent's own voice? (`drop`: yes.) */
52
+ echoCheck?(text: string, durationMs: number): {
53
+ drop: boolean;
54
+ };
55
+ /** A transcript was dropped as echo. */
56
+ echoDropped?(): void;
57
+ /** Called in the tap that turns the mic on (a gesture: iOS lets audio play later). */
58
+ unlock?(): void;
59
+ /** An interruption is over (a spoken line was sent, the input lost focus): read on. */
60
+ resume?(): void;
61
+ }
62
+ type MicView = {
63
+ state: MicState; /** Transcripts still out, and the dimmed partial text. */
64
+ pending: number;
65
+ interim: string; /** The last error, for the button's note (cleared on the next tap). */
66
+ error: unknown; /** Reloaded with the mic on, but it could not resume by itself: one tap does. */
67
+ resume: boolean; /** The agent is speaking (from the voice link). */
68
+ speaking: boolean; /** How the last reload's resume went (once one was tried). */
69
+ resumed?: ResumeOutcome;
70
+ };
71
+ /** One final utterance, for a host that keeps or inspects them (opt-in). */
72
+ type Utterance = UploadInfo & {
73
+ wav: Uint8Array;
74
+ text: string; /** The voice link's echo check, when there is one. */
75
+ echo?: {
76
+ drop: boolean;
77
+ };
78
+ };
79
+ /**
80
+ * The browser side. `C` is the element's configuration (the STT endpoint, the
81
+ * VAD source…), handed to every call so a session made by one element follows
82
+ * the configuration of the element attached now.
83
+ */
84
+ type MicDeps<C = unknown> = {
85
+ /** getUserMedia with the session's constraints. */getStream: (cfg: C | undefined) => Promise<StreamLike>; /** The VAD on a stream (Silero), and the fallback (an energy gate). Neither stops the stream. */
86
+ load: (ev: VadEvents, stream: StreamLike, cfg: C | undefined) => Promise<Vad>;
87
+ fallback?: (ev: VadEvents, stream: StreamLike, cfg: C | undefined) => Promise<Vad>; /** Transcribe one recording (the host's STT endpoint). */
88
+ upload: (wav: Uint8Array, info: UploadInfo, cfg: C | undefined) => Promise<string>;
89
+ onState?: (s: MicState, prev: MicState) => void; /** Each final utterance, after its echo check. */
90
+ onUtterance?: (u: Utterance, cfg: C | undefined) => void; /** A reload's resume attempt, once it is decided. */
91
+ onResume?: (r: ResumeOutcome) => void; /** sessionStorage, guarded (iOS private mode throws). */
92
+ storage?: {
93
+ get(k: string): string | null;
94
+ set(k: string, v: string): void;
95
+ remove(k: string): void;
96
+ }; /** The sessionStorage key (MIC_ON_KEY). */
97
+ storageKey?: string; /** navigator.permissions' microphone state, or "unknown" where it can't be asked. */
98
+ permission?: () => Promise<"granted" | "denied" | "prompt" | "unknown">; /** Try to get the AudioContext running without a gesture; false if it stays suspended. */
99
+ resumeAudio?: () => Promise<boolean>;
100
+ };
101
+ type Listener = (v: MicView) => void;
102
+ /** Where transcripts go: the attached element. */
103
+ type MicSink = {
104
+ onText: (t: string) => void;
105
+ onPending: (n: number, interim: string) => void;
106
+ };
107
+ type MicSession<C = unknown> = ReturnType<typeof createMicSession<C>>;
108
+ declare function createMicSession<C = unknown>(deps: MicDeps<C>, from?: {
109
+ stream: StreamLike | null;
110
+ on: boolean;
111
+ }): {
112
+ v: number;
113
+ view: () => MicView;
114
+ stream: () => StreamLike | null; /** How many times this session asked for the microphone. */
115
+ gumCalls: () => number;
116
+ subscribe(f: Listener): () => undefined; /** The connected element takes the transcripts; detaching never stops the mic. */
117
+ attach(s: MicSink): () => void;
118
+ configure(c: C): void;
119
+ config: () => C | undefined; /** The voice output to work with (null: none). Its hold state holds capture. */
120
+ setVoice(link: MicVoiceLink | null): void;
121
+ voice: () => MicVoiceLink | null; /** A tap: on (remembered for a reload), or an explicit off. */
122
+ toggle(): Promise<void>; /** The explicit off: the VAD, the stream and the reload flag all go. */
123
+ off(): Promise<void>;
124
+ hold: (on: boolean) => void;
125
+ /**
126
+ * Replaced by a newer session: the VAD goes, the stream stays (the new
127
+ * session builds its VAD on it).
128
+ */
129
+ retire(): Promise<StreamLike | null>; /** After a reload with the mic on: resume without a gesture if we may, else wait for a tap. */
130
+ autoResume(): Promise<void>;
131
+ };
132
+ /**
133
+ * The page's mic session, made once: an element that connects later (a
134
+ * remount, another copy of the module) gets the same one. An older version
135
+ * is retired and its stream handed to the new session, which resumes
136
+ * listening if it was.
137
+ */
138
+ declare function micSession<C = unknown>(deps: MicDeps<C>): MicSession<C>;
139
+ //#endregion
140
+ //#region src/mic-button.d.ts
141
+ /**
142
+ * What the mic types into: `<liagent-chat>` has this shape, and so can any
143
+ * host's own input. The mic reads `draft`, writes the dictated draft with
144
+ * `setDraft(next, { source: "stt" })`, shows partial transcripts with
145
+ * `setPartial(text)` (null: none left), sends with `submit()` when a spoken
146
+ * sentence is complete (false: it did not go out), and sets `micActive` while
147
+ * it listens (a box should not send by its typing debounce meanwhile).
148
+ */
149
+ interface DictationTarget {
150
+ readonly draft: string;
151
+ setDraft(next: string, opts?: {
152
+ source?: "stt";
153
+ }): void;
154
+ setPartial(text: string | null): void;
155
+ submit(): boolean | void;
156
+ micActive: boolean;
157
+ }
158
+ /** Is `x` something the mic can type into? */
159
+ declare const isDictationTarget: (x: unknown) => x is DictationTarget;
160
+ /**
161
+ * One final transcript into the target: appended to its draft, punctuated,
162
+ * and sent at once when it ends a sentence with words in it. True if it went
163
+ * out.
164
+ */
165
+ declare function dictate(box: DictationTarget, text: string): boolean;
166
+ /** The STT call the element makes: the host's own, or a POST to `stt-url`. */
167
+ type SttHandler = (wav: Uint8Array, info: UploadInfo) => Promise<SttResult | string>;
168
+ /** What the element hands the page's session (src/mic-session.ts). */
169
+ type MicConfig = {
170
+ stt?: SttHandler;
171
+ vad?: VadSource;
172
+ aec: boolean;
173
+ onUtterance?: (u: Utterance) => void;
174
+ };
175
+ type MicStrings = MicErrorStrings & {
176
+ dictate: string;
177
+ resume: string;
178
+ speaking: string;
179
+ recording: string;
180
+ listening: string;
181
+ rec: string;
182
+ noStt: string;
183
+ };
184
+ declare const MIC_STRINGS_EN: MicStrings;
185
+ /** The button's label for a view. */
186
+ declare function micLabel(v: Pick<MicView, "state" | "resume">, status: MicStatus, t?: MicStrings): string;
187
+ declare const Base: typeof HTMLElement;
188
+ /** The mic button. See the header for its attributes, properties and events. */
189
+ declare class MicElement extends Base {
190
+ static observedAttributes: string[];
191
+ /** The host's own STT call (else a POST to stt-url). */
192
+ stt?: SttHandler;
193
+ sttHeaders?: Record<string, string>;
194
+ sttCredentials?: RequestCredentials;
195
+ /** Silero VAD's source (else vad-src/ort-src; else the energy gate). */
196
+ vad?: VadSource;
197
+ strings: Partial<MicStrings>;
198
+ private _box;
199
+ private _voice;
200
+ private _session?;
201
+ private shadow?;
202
+ private btn?;
203
+ private path?;
204
+ private recEl?;
205
+ private noteEl?;
206
+ private off;
207
+ private last;
208
+ private lastResume?;
209
+ get sttUrl(): string;
210
+ set sttUrl(v: string);
211
+ get lang(): string;
212
+ set lang(v: string);
213
+ get storageKey(): string;
214
+ set storageKey(v: string);
215
+ /** Echo-cancelled barge-in (default: on unless localStorage `liagent:voice-aec` is "0"; `aec="off"` turns it off). */
216
+ get aec(): boolean;
217
+ set aec(v: boolean);
218
+ /** A soft tick when a spoken sentence is sent. */
219
+ get tick(): boolean;
220
+ set tick(v: boolean);
221
+ /** The target; null: the closest <liagent-chat>. */
222
+ get box(): DictationTarget | null;
223
+ set box(v: DictationTarget | null);
224
+ /** The voice output for hands-free replies (undefined: leave the session's as it is). */
225
+ get voice(): MicVoiceLink | null;
226
+ set voice(v: MicVoiceLink | null);
227
+ /** The page's mic session (undefined until connected where the browser can capture). */
228
+ get session(): MicSession<MicConfig> | undefined;
229
+ private get t();
230
+ private config;
231
+ attributeChangedCallback(): void;
232
+ connectedCallback(): void;
233
+ disconnectedCallback(): void;
234
+ /** Turn listening on or off, as a tap does (call it in a gesture). */
235
+ toggle(): void;
236
+ private fire;
237
+ private onText;
238
+ /** The soft tick, on the mic's AudioContext; never while the agent speaks. */
239
+ private playTick;
240
+ private syncActive;
241
+ private build;
242
+ private render;
243
+ }
244
+ /** Register the element (once) under `tag`. Returns the class. */
245
+ declare function defineMic(tag?: string): typeof MicElement;
246
+ //#endregion
247
+ export { createMicSession as C, VoiceLinkState as S, MicView as _, MicStrings as a, StreamLike as b, dictate as c, MIC_ON_KEY as d, MIC_SESSION_KEY as f, MicSink as g, MicSession as h, MicElement as i, isDictationTarget as l, MicDeps as m, MIC_STRINGS_EN as n, SttHandler as o, MIC_SESSION_V as p, MicConfig as r, defineMic as s, DictationTarget as t, micLabel as u, MicVoiceLink as v, micSession as w, Utterance as x, ResumeOutcome as y };
248
+ //# sourceMappingURL=mic-button-Y0ioPetQ.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { $ as resample, A as SttError, B as VadFactory, C as MicState, D as PARTIAL_OVERLAP_MS, E as PARTIAL_MIN_MS, F as TickContext, G as isDictationBurst, H as createMic, I as UploadInfo, J as mergeOverlap, K as isMicDenied, L as UtteranceQueue, M as SttResult, N as TICK_GAIN, O as PENDING_MARK, P as TICK_MS, Q as punctuate, R as Vad, S as MicErrorStrings, T as PARTIAL_EVERY_MS, U as encodeWav, V as appendDictation, W as energyGate, X as micStatus, Y as micErrorNote, Z as postStt, _ as vadFromScripts, a as VadLoader, b as MAX_UTTERANCE_MS, c as appliedSettings, d as energyVad, et as rms, f as existingCtx, g as sileroVad, h as noteTrack, i as VadConfig, j as SttRequest, k as RATE, l as audioCtx, m as micStream, n as LEGACY_CONSTRAINTS, nt as sttUrl, o as VadSource, p as micConstraints, q as joinText, r as MicVADLike, s as VadWebModule, t as AEC_CONSTRAINTS, tt as scheduleTick, u as canCapture, v as AUTO_SEND_MIN, w as MicStatus, x as MIC_ERROR_STRINGS_EN, y as ENDS_SENTENCE, z as VadEvents } from "./mic-audio-DMCWtEI-.js";
2
+ import { C as createMicSession, S as VoiceLinkState, _ as MicView, a as MicStrings, b as StreamLike, c as dictate, d as MIC_ON_KEY, f as MIC_SESSION_KEY, g as MicSink, h as MicSession, i as MicElement, l as isDictationTarget, m as MicDeps, n as MIC_STRINGS_EN, o as SttHandler, p as MIC_SESSION_V, r as MicConfig, s as defineMic, t as DictationTarget, u as micLabel, v as MicVoiceLink, w as micSession, x as Utterance, y as ResumeOutcome } from "./mic-button-Y0ioPetQ.js";
3
+ export { AEC_CONSTRAINTS, AUTO_SEND_MIN, DictationTarget, ENDS_SENTENCE, LEGACY_CONSTRAINTS, MAX_UTTERANCE_MS, MIC_ERROR_STRINGS_EN, MIC_ON_KEY, MIC_SESSION_KEY, MIC_SESSION_V, MIC_STRINGS_EN, MicConfig, MicDeps, MicElement, MicErrorStrings, MicSession, MicSink, MicState, MicStatus, MicStrings, MicVADLike, MicView, MicVoiceLink, PARTIAL_EVERY_MS, PARTIAL_MIN_MS, PARTIAL_OVERLAP_MS, PENDING_MARK, RATE, ResumeOutcome, StreamLike, SttError, SttHandler, SttRequest, SttResult, TICK_GAIN, TICK_MS, TickContext, UploadInfo, Utterance, UtteranceQueue, Vad, VadConfig, VadEvents, VadFactory, VadLoader, VadSource, VadWebModule, VoiceLinkState, appendDictation, appliedSettings, audioCtx, canCapture, createMic, createMicSession, defineMic, dictate, encodeWav, energyGate, energyVad, existingCtx, isDictationBurst, isDictationTarget, isMicDenied, joinText, mergeOverlap, micConstraints, micErrorNote, micLabel, micSession, micStatus, micStream, noteTrack, postStt, punctuate, resample, rms, scheduleTick, sileroVad, sttUrl, vadFromScripts };
@@ -0,0 +1,4 @@
1
+ import { A as isDictationBurst, B as scheduleTick, C as TICK_GAIN, D as createMic, E as appendDictation, F as micStatus, I as postStt, L as punctuate, M as joinText, N as mergeOverlap, O as encodeWav, P as micErrorNote, R as resample, S as SttError, T as UtteranceQueue, V as sttUrl, _ as PARTIAL_EVERY_MS, a as canCapture, b as PENDING_MARK, c as micConstraints, d as sileroVad, f as vadFromScripts, g as MIC_ERROR_STRINGS_EN, h as MAX_UTTERANCE_MS, i as audioCtx, j as isMicDenied, k as energyGate, l as micStream, m as ENDS_SENTENCE, n as LEGACY_CONSTRAINTS, o as energyVad, p as AUTO_SEND_MIN, r as appliedSettings, s as existingCtx, t as AEC_CONSTRAINTS, u as noteTrack, v as PARTIAL_MIN_MS, w as TICK_MS, x as RATE, y as PARTIAL_OVERLAP_MS, z as rms } from "./mic-audio-C3Shud_F.js";
2
+ import { a as isDictationTarget, c as MIC_SESSION_KEY, d as micSession, i as dictate, l as MIC_SESSION_V, n as MicElement, o as micLabel, r as defineMic, s as MIC_ON_KEY, t as MIC_STRINGS_EN, u as createMicSession } from "./mic-button-CtZHFBSG.js";
3
+
4
+ export { AEC_CONSTRAINTS, AUTO_SEND_MIN, ENDS_SENTENCE, LEGACY_CONSTRAINTS, MAX_UTTERANCE_MS, MIC_ERROR_STRINGS_EN, MIC_ON_KEY, MIC_SESSION_KEY, MIC_SESSION_V, MIC_STRINGS_EN, MicElement, PARTIAL_EVERY_MS, PARTIAL_MIN_MS, PARTIAL_OVERLAP_MS, PENDING_MARK, RATE, SttError, TICK_GAIN, TICK_MS, UtteranceQueue, appendDictation, appliedSettings, audioCtx, canCapture, createMic, createMicSession, defineMic, dictate, encodeWav, energyGate, energyVad, existingCtx, isDictationBurst, isDictationTarget, isMicDenied, joinText, mergeOverlap, micConstraints, micErrorNote, micLabel, micSession, micStatus, micStream, noteTrack, postStt, punctuate, resample, rms, scheduleTick, sileroVad, sttUrl, vadFromScripts };