@kabmo-labs/kabmo 0.57.0 → 0.57.1
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.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/static/js/{Body-k96gtstv.js → Body-p6zwk0nx.js} +1 -1
- package/dist/client/static/js/{CsvGrid-t84xmbk9.js → CsvGrid-563qmmmr.js} +1 -1
- package/dist/client/static/js/{DocxView-4jda3szm.js → DocxView-5j69q3s0.js} +1 -1
- package/dist/client/static/js/{DrawioView-9qvvtnvt.js → DrawioView-gd6k3hvn.js} +1 -1
- package/dist/client/static/js/{HtmlPreview-4pba1ys5.js → HtmlPreview-6gnktzzp.js} +1 -1
- package/dist/client/static/js/{ImageView-0gf5xdsv.js → ImageView-fkfq3fwv.js} +1 -1
- package/dist/client/static/js/{LayoutWrapper-pwbq5syv.js → LayoutWrapper-mdb1qm26.js} +1 -1
- package/dist/client/static/js/MergeDiffView-7kpjxcg9.js +1 -0
- package/dist/client/static/js/{Modal-yjszc3vy.js → Modal-0p9cr2tn.js} +1 -1
- package/dist/client/static/js/{PdfView-sny55sne.js → PdfView-n1zq27td.js} +1 -1
- package/dist/client/static/js/{SessionsView-q3800n83.js → SessionsView-gptt0rq8.js} +1 -1
- package/dist/client/static/js/{SheetView-ezqak2b4.js → SheetView-nes7j86v.js} +1 -1
- package/dist/client/static/js/{SvgPreview-q1cvdf4s.js → SvgPreview-vv0qzkt7.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-ftm2qwa3.js → abnfDiagram-O67JEVCF-02g96sn6.js} +1 -1
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-j8kqfzmf.js → architectureDiagram-NJMV4G6O-7qj2fpwt.js} +1 -1
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-m3zpsp9h.js → blockDiagram-BEXU5L5S-grdr1j2h.js} +1 -1
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-myshvbrx.js → c4Diagram-YGBWAQC7-7y980xpx.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-s0cwmsj4.js → classDiagram-v2-NBCMYWYE-29ag4js1.js} +1 -1
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-t5t02sfr.js → cose-bilkent-JH36ORCC-e5dvgehd.js} +1 -1
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-6yxd72sh.js → cynefinDiagram-VND7K2PF-eq6fmx0b.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-vft5103m.js → dagre-6A5THRUB-xfhwp8ha.js} +1 -1
- package/dist/client/static/js/{diagram-22UHCM2B-yy2jfvxt.js → diagram-22UHCM2B-1bw6x6zt.js} +1 -1
- package/dist/client/static/js/{diagram-3UASUU5V-1xqhzq20.js → diagram-3UASUU5V-076ej5n5.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-f11cxgvm.js → diagram-ATOU4E4O-cvf9fhdq.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-gqmkfcp7.js → diagram-CDSNMT55-hn1wdx54.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-1fg7304a.js → diagram-MLGK6HIB-76gk27b5.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-mem80369.js → diagram-MPIPVDR6-0cbajhpx.js} +1 -1
- package/dist/client/static/js/{dockerfile-jarjwxp9.js → dockerfile-7atfjhnf.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-4rcbvfrj.js → ebnfDiagram-ZINNZB2B-n0g3b9m2.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-ykd0stxz.js → elk-276RUBZZ-f6wrjcv9.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-b2th9bk4.js → erDiagram-OPXOYQCR-jz622yrg.js} +1 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-5bvd5k2t.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-64p5r7cx.js → ganttDiagram-FUAMR5RP-2ex4nxyg.js} +1 -1
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-z3yc333r.js → gitGraphDiagram-X574FWY7-38eyay6g.js} +1 -1
- package/dist/client/static/js/{index-c2vc6znd.js → index-1q934wfk.js} +1 -1
- package/dist/client/static/js/{index-yktwxghr.js → index-28wv94gz.js} +1 -1
- package/dist/client/static/js/{index-3w18s59k.js → index-3wgjtp2k.js} +1 -1
- package/dist/client/static/js/{index-wgcgshdh.js → index-4cff0zg2.js} +1 -1
- package/dist/client/static/js/{index-t415df0c.js → index-55v3qv04.js} +1 -1
- package/dist/client/static/js/{index-hmjb96kb.js → index-63mk2qk6.js} +1 -1
- package/dist/client/static/js/{index-2gf593e3.js → index-6z30g3ha.js} +1 -1
- package/dist/client/static/js/{index-gr07t5c4.js → index-7trfm17d.js} +1 -1
- package/dist/client/static/js/{index-h4qmywn5.js → index-8444mec5.js} +1 -1
- package/dist/client/static/js/{index-5m0se6fk.js → index-9gfn1a3h.js} +1 -1
- package/dist/client/static/js/{index-n71ffk62.js → index-ays8t3t3.js} +2 -2
- package/dist/client/static/js/{index-jd2h5tvh.js → index-cxe75e06.js} +1 -1
- package/dist/client/static/js/{index-w659dhe5.js → index-db7vsjkd.js} +1 -1
- package/dist/client/static/js/{index-k9v6477a.js → index-dmb1pykr.js} +1 -1
- package/dist/client/static/js/{index-3x3nhs8n.js → index-ep99arz1.js} +1 -1
- package/dist/client/static/js/{index-k57bandz.js → index-ewst55j2.js} +1 -1
- package/dist/client/static/js/{index-mv83hpva.js → index-fqc1snjw.js} +1 -1
- package/dist/client/static/js/{index-q9gbwqbe.js → index-g2e0m757.js} +1 -1
- package/dist/client/static/js/{index-mdmtxh1c.js → index-jaxhfk9x.js} +1 -1
- package/dist/client/static/js/{index-y5mf2w81.js → index-jsn2kedv.js} +1 -1
- package/dist/client/static/js/{index-ebnd5hnr.js → index-n1xmkf2g.js} +1 -1
- package/dist/client/static/js/{index-1mm7kyjd.js → index-pe4d9wht.js} +1 -1
- package/dist/client/static/js/{index-bwwgtesb.js → index-pjf5wak8.js} +1 -1
- package/dist/client/static/js/{index-zj65csnm.js → index-sm8gpk3g.js} +1 -1
- package/dist/client/static/js/{index-nr5gwny1.js → index-st6a8q5z.js} +147 -147
- package/dist/client/static/js/{index-k6wms0kx.js → index-stmwbavz.js} +1 -1
- package/dist/client/static/js/index-swaveqxg.css +1 -0
- package/dist/client/static/js/{index-y6qtx68e.js → index-t82q5t6m.js} +1 -1
- package/dist/client/static/js/{index-ewtv8gg7.js → index-t9zjfxvc.js} +1 -1
- package/dist/client/static/js/{index-y69cbdvd.js → index-tdbcp70z.js} +1 -1
- package/dist/client/static/js/{index-6m5n8b6w.js → index-tdryzzy9.js} +1 -1
- package/dist/client/static/js/{index-g71wn1pr.js → index-tksrpqkh.js} +1 -1
- package/dist/client/static/js/{index-ep353yxd.js → index-v38j2zxn.js} +1 -1
- package/dist/client/static/js/{index-rqpbva78.js → index-x17y7xdr.js} +1 -1
- package/dist/client/static/js/{index-kbaffwp1.js → index-xfnjwhan.js} +2 -2
- package/dist/client/static/js/{index-x6945djv.js → index-xrb4kjr3.js} +1 -1
- package/dist/client/static/js/{index-dxx49b9m.js → index-zv8wrvha.js} +1 -1
- package/dist/client/static/js/{index-sw370sk7.js → index-zynbvm7x.js} +1 -1
- package/dist/client/static/js/{index-77wznmg5.js → index-zzggk17b.js} +1 -1
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-59xq3n1b.js → infoDiagram-VRGFBTTK-c55t0tvd.js} +1 -1
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-v18q4qt7.js → ishikawaDiagram-OU5B5YK6-r9kg5kg5.js} +1 -1
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-etazj0p8.js → journeyDiagram-ZHPQQLJL-zmmst4v8.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-ph15e5p2.js → kanban-definition-PNTS6WVX-3tt6sc9a.js} +1 -1
- package/dist/client/static/js/{mermaid.core-7ygd161b.js → mermaid.core-pkrs8zp5.js} +2 -2
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-j5xsftrf.js → mindmap-definition-NLK3R4M7-b4c6gxg4.js} +1 -1
- package/dist/client/static/js/one-dark-pro-sstqnzcf.js +1 -0
- package/dist/client/static/js/one-light-6fpxxq2j.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-09nvb70v.js → pegDiagram-GJSIUBJH-9jkat1mz.js} +1 -1
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6ymh1960.js → pieDiagram-5QR66LMP-6pbchjh7.js} +1 -1
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-hk61avw2.js → quadrantDiagram-O4NWA36T-p9brea19.js} +1 -1
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3jvqrfnb.js → railroadDiagram-XR7U4H2S-3cep8css.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-zthfj48k.js → requirementDiagram-PLB6GJNP-x1yjgsrr.js} +1 -1
- package/dist/client/static/js/{rust-q7n7q6dy.js → rust-yy8gekx8.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nh5d6xte.js → sankeyDiagram-IPEJSGJF-23wzf4aj.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-crej9b40.js → sequenceDiagram-PO4LG4MO-w4wr3zzr.js} +1 -1
- package/dist/client/static/js/{sizeCapture-INFHLROL-nvvxw58j.js → sizeCapture-INFHLROL-aabfesnr.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-e6tztjnj.js → stateDiagram-v2-GCMORJYK-t0n288xw.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-xhdqjqmf.js → swimlanes-2SLR337P-1nnm0p7h.js} +1 -1
- package/dist/client/static/js/{swimlanesDiagram-TC7HE7FX-hbwg3m3k.js → swimlanesDiagram-TC7HE7FX-cx3f29mq.js} +1 -1
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-9cve31zc.js → timeline-definition-EJHVYXUP-8pyssn0q.js} +1 -1
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-asycstwe.js → usecaseDiagram-POWQR4AR-vveepvt6.js} +1 -1
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-gbzk6era.js → vennDiagram-UO4OBE2U-tqyvmqxc.js} +1 -1
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-1swwfszr.js → wardleyDiagram-VNRHLVJA-p8rs34em.js} +1 -1
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-v7qkwv0b.js → xychartDiagram-PMCCYNJV-pgnvxtps.js} +1 -1
- package/package.json +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +10 -8
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.test.ts +37 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.ts +17 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +18 -15
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +7 -8
- package/src/server/lib/dictation/capability.server.test.ts +9 -6
- package/src/server/lib/dictation/worker-process.ts +9 -2
- package/dist/client/static/js/MergeDiffView-m4jkr786.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-f3bdtc1z.js +0 -1
- package/dist/client/static/js/index-taz2nfym.css +0 -1
- package/dist/client/static/js/one-dark-pro-4s2rr12v.js +0 -1
- package/dist/client/static/js/one-light-3bkk59ww.js +0 -1
|
@@ -14,6 +14,22 @@
|
|
|
14
14
|
* — calls it.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* The accessible name's subject budget.
|
|
19
|
+
*
|
|
20
|
+
* The VISIBLE subject is not capped: the row clips it with CSS so the ellipsis
|
|
21
|
+
* lands at the row's edge. The label is read, not laid out, so a long command
|
|
22
|
+
* is bounded here — a `bash` call can name a whole inline script, and a screen
|
|
23
|
+
* reader should not spell all of it.
|
|
24
|
+
*/
|
|
25
|
+
const MAX_LABEL_SUBJECT = 80;
|
|
26
|
+
|
|
27
|
+
function labelSubject(subtitle: string): string {
|
|
28
|
+
return subtitle.length > MAX_LABEL_SUBJECT
|
|
29
|
+
? `${subtitle.slice(0, MAX_LABEL_SUBJECT - 1)}…`
|
|
30
|
+
: subtitle;
|
|
31
|
+
}
|
|
32
|
+
|
|
17
33
|
export function toolToggleLabel(title: string, subtitle: string | undefined, isExpanded: boolean): string {
|
|
18
|
-
return `${isExpanded ? 'Collapse' : 'Expand'} ${title}${subtitle ? ` — ${subtitle}` : ''}`;
|
|
34
|
+
return `${isExpanded ? 'Collapse' : 'Expand'} ${title}${subtitle ? ` — ${labelSubject(subtitle)}` : ''}`;
|
|
19
35
|
}
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* defect — the head then reads as one undifferentiated run of text.
|
|
20
20
|
* - Facts are terminal text (`599ms · exit 0`), not pills, and a diff keeps
|
|
21
21
|
* `+4` green and `−1` red inside one statement.
|
|
22
|
-
* - The
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* - The trailing group (`[done]`, facts, toggle) is FLUSH RIGHT: the subject
|
|
23
|
+
* fills the gap and the browser ellipsizes it there. The subject is never
|
|
24
|
+
* pre-clipped — a literal `…` mid-row left the group short of the edge.
|
|
25
25
|
* - The head is the toggle, with the SHARED wording (`toolToggleLabel`), so
|
|
26
26
|
* `chat.e2e.ts`'s `[aria-label^="Expand "]` collection and `mobile.e2e.ts`'s
|
|
27
27
|
* `/^Expand Bash/` click still work, and the section's per-call intent
|
|
@@ -102,17 +102,18 @@ const EDIT_TOOL: ToolCallData = {
|
|
|
102
102
|
details: { diff: 'a\n+b\n+c\n-d\n' },
|
|
103
103
|
} as ToolCallData;
|
|
104
104
|
|
|
105
|
-
/** A command longer than
|
|
106
|
-
*
|
|
105
|
+
/** A command longer than any row can show, so the browser must ellipsize it
|
|
106
|
+
* (its text is never pre-clipped in the header). */
|
|
107
|
+
const LONG_COMMAND = `bun test ${'--filter '.repeat(14)}`;
|
|
107
108
|
const LONG_COMMAND_TOOL: ToolCallData = {
|
|
108
109
|
id: 'tui-long',
|
|
109
110
|
type: 'bash',
|
|
110
111
|
name: 'bash',
|
|
111
112
|
title: 'Bash',
|
|
112
113
|
status: 'success',
|
|
113
|
-
command:
|
|
114
|
-
detail:
|
|
115
|
-
input: { command:
|
|
114
|
+
command: LONG_COMMAND,
|
|
115
|
+
detail: LONG_COMMAND,
|
|
116
|
+
input: { command: LONG_COMMAND },
|
|
116
117
|
output: '',
|
|
117
118
|
} as ToolCallData;
|
|
118
119
|
|
|
@@ -172,19 +173,21 @@ describe('the tui style', () => {
|
|
|
172
173
|
expect(head(el).querySelector('.sr-only')?.textContent).toBe('Done');
|
|
173
174
|
});
|
|
174
175
|
|
|
175
|
-
test('the subject
|
|
176
|
+
test('the subject fills up to a flush-right outcome, facts and toggle', async () => {
|
|
176
177
|
const el = await mount([LONG_COMMAND_TOOL]);
|
|
177
178
|
const children = Array.from(head(el).children) as HTMLElement[];
|
|
178
179
|
const subject = children.find((node) => node.className.includes('text-meta'));
|
|
179
180
|
if (!subject) throw new Error('no subject span in the head');
|
|
180
|
-
//
|
|
181
|
-
//
|
|
182
|
-
expect(subject.className).
|
|
181
|
+
// The subject fills the gap so the browser ellipsizes it at the trailing
|
|
182
|
+
// group's edge; a shrinking box left that group short of the row's edge.
|
|
183
|
+
expect(subject.className).toContain('flex-1');
|
|
183
184
|
expect(subject.className).toContain('truncate');
|
|
184
|
-
|
|
185
|
+
// No literal `…` from the header: the full command reaches the row.
|
|
186
|
+
expect(subject.textContent).toBe(LONG_COMMAND);
|
|
187
|
+
expect(subject.textContent?.endsWith('…')).toBe(false);
|
|
185
188
|
expect(subject.nextElementSibling?.textContent).toContain('[done]');
|
|
186
|
-
// The toggle
|
|
187
|
-
expect(children.at(-1)?.className).
|
|
189
|
+
// The toggle is pinned to the right edge, beside the facts.
|
|
190
|
+
expect(children.at(-1)?.className).toContain('ml-auto');
|
|
188
191
|
});
|
|
189
192
|
|
|
190
193
|
test('title and subject are different colours', async () => {
|
|
@@ -144,7 +144,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
|
|
|
144
144
|
aria-label={
|
|
145
145
|
canToggle ? toolToggleLabel(view.header.title, view.subtitle, isExpanded) : undefined
|
|
146
146
|
}
|
|
147
|
-
className={`flex min-w-0 flex-1 flex-
|
|
147
|
+
className={`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-1 gap-y-0 rounded px-1 py-0.5 text-left text-[12px] leading-[1.55] transition-colors ${
|
|
148
148
|
canToggle ? 'cursor-pointer hover:bg-ink/[0.03]' : 'cursor-default'
|
|
149
149
|
} focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink/20`}
|
|
150
150
|
>
|
|
@@ -156,12 +156,11 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
|
|
|
156
156
|
{view.subtitle && (
|
|
157
157
|
<>
|
|
158
158
|
<span className="shrink-0 text-ink/25">:</span>
|
|
159
|
-
{/* The subject
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
<span className="min-w-0 shrink truncate font-mono text-[10.5px] text-meta">{view.subtitle}</span>
|
|
159
|
+
{/* The subject FILLS the gap up to the trailing group, which is
|
|
160
|
+
flush right; the browser ellipsizes it at that group's edge.
|
|
161
|
+
The row must not pre-clip the text (a literal `…` sat far
|
|
162
|
+
from `[done]` and left the group short of the row's edge). */}
|
|
163
|
+
<span className="min-w-0 flex-1 truncate font-mono text-[10.5px] text-meta">{view.subtitle}</span>
|
|
165
164
|
</>
|
|
166
165
|
)}
|
|
167
166
|
<span className={`shrink-0 font-semibold ${tone}`}>{`[${status.word.toLowerCase()}]`}</span>
|
|
@@ -180,7 +179,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
|
|
|
180
179
|
</span>
|
|
181
180
|
)}
|
|
182
181
|
{canToggle && (
|
|
183
|
-
<span className="shrink-0 pl-1 text-ink/40" aria-hidden="true">
|
|
182
|
+
<span className="ml-auto shrink-0 pl-1 text-ink/40" aria-hidden="true">
|
|
184
183
|
{isExpanded ? '▾' : '▸'}
|
|
185
184
|
</span>
|
|
186
185
|
)}
|
|
@@ -33,12 +33,14 @@ import {
|
|
|
33
33
|
* A worker that exits before answering anything — the 19.1.1 failure mode with
|
|
34
34
|
* the 18.x transport. Constant source (the fixture cache is keyed by it); the
|
|
35
35
|
* run counter arrives through the environment.
|
|
36
|
+
*
|
|
37
|
+
* APPEND one mark per run, never read-modify-write: a mark is a single write
|
|
38
|
+
* syscall, while a rewrite would truncate first, and a child killed inside that
|
|
39
|
+
* window (measured on Windows) left an empty file that read back as 0 spawns.
|
|
36
40
|
*/
|
|
37
|
-
const STUB_SOURCE = `
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
await Bun.write(counter, String(Number(previous || '0') + 1));
|
|
41
|
-
}
|
|
41
|
+
const STUB_SOURCE = `import { appendFileSync } from 'node:fs';
|
|
42
|
+
const counter = process.env.FAKE_STT_SPAWN_FILE;
|
|
43
|
+
if (counter) appendFileSync(counter, 'x');
|
|
42
44
|
process.exit(0);
|
|
43
45
|
`;
|
|
44
46
|
|
|
@@ -47,9 +49,10 @@ const originalCounter = Bun.env.FAKE_STT_SPAWN_FILE;
|
|
|
47
49
|
let dir = '';
|
|
48
50
|
let counter = '';
|
|
49
51
|
|
|
52
|
+
/** One mark per spawn the stub has recorded. */
|
|
50
53
|
function spawns(): number {
|
|
51
54
|
try {
|
|
52
|
-
return
|
|
55
|
+
return fs.readFileSync(counter, 'utf8').length;
|
|
53
56
|
} catch {
|
|
54
57
|
return 0;
|
|
55
58
|
}
|
|
@@ -102,10 +102,17 @@ export function startSttWorkerProcess(bin: string, handlers: SttWorkerHandlers):
|
|
|
102
102
|
return {
|
|
103
103
|
send: (frame) => {
|
|
104
104
|
try {
|
|
105
|
-
child.stdin.write(encodeSpeechFrame(frame));
|
|
106
105
|
// Buffered writes stay ordered; the flush is what puts the frame on the
|
|
107
106
|
// wire before a decode that can take a second.
|
|
108
|
-
|
|
107
|
+
//
|
|
108
|
+
// Both type as `number`, but a failed write/flush is reported as a
|
|
109
|
+
// REJECTED PROMISE rather than a throw. On Windows the write that races
|
|
110
|
+
// the child's pipe setup comes back EPIPE that way, and the unhandled
|
|
111
|
+
// rejection took down the `Gates / Checks (Windows)` job even though the
|
|
112
|
+
// probe reported the failure correctly. A closed pipe is the exit
|
|
113
|
+
// handler's news, not an error here.
|
|
114
|
+
void Promise.resolve(child.stdin.write(encodeSpeechFrame(frame))).catch(() => {});
|
|
115
|
+
void Promise.resolve(child.stdin.flush()).catch(() => {});
|
|
109
116
|
} catch {
|
|
110
117
|
// Closed pipe: the exit handler is what reports it.
|
|
111
118
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{pg}from"./index-6m5n8b6w.js";import"./index-e4yj4kbe.js";import"./index-k57bandz.js";export{pg as MergeDiffView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./index-kbaffwp1.js";import"./index-sw370sk7.js";import{eb}from"./index-t415df0c.js";export{eb as diagram};
|