@hearsay-tools/squawk 0.18.0-pr3583.6469 → 0.18.0-pr3586.6470

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 (144) hide show
  1. package/README.md +4 -4
  2. package/dist/ci-wait/controller.d.ts +37 -37
  3. package/dist/ci-wait/tools.d.ts +4 -4
  4. package/dist/contract/health.d.ts +2 -0
  5. package/dist/contract/index.d.ts +1 -0
  6. package/dist/contract/index.js +591 -461
  7. package/dist/contract/projects.d.ts +1 -9
  8. package/dist/contract/voice.d.ts +213 -0
  9. package/dist/data-gitignore.js +1 -1
  10. package/dist/data-gitignore.js.map +1 -1
  11. package/dist/delegation/routes.d.ts +11 -11
  12. package/dist/delegation/transport.d.ts +4 -4
  13. package/dist/server/capabilities.d.ts +1 -0
  14. package/dist/server/capabilities.js +3 -0
  15. package/dist/server/capabilities.js.map +1 -1
  16. package/dist/server/forge/github.d.ts +1 -2
  17. package/dist/server/forge/github.js +1 -2
  18. package/dist/server/forge/github.js.map +1 -1
  19. package/dist/server/forge/types.d.ts +1 -1
  20. package/dist/server/live-routes.d.ts +6 -6
  21. package/dist/server/project-context.d.ts +1 -3
  22. package/dist/server/project-context.js +1 -3
  23. package/dist/server/project-context.js.map +1 -1
  24. package/dist/server/reports-api.d.ts +2 -2
  25. package/dist/server/server-deps.d.ts +1 -1
  26. package/dist/server/server-deps.js +1 -3
  27. package/dist/server/server-deps.js.map +1 -1
  28. package/dist/server/server.d.ts +195 -22
  29. package/dist/server/server.js +17 -13
  30. package/dist/server/server.js.map +1 -1
  31. package/dist/server/workspace-live-routes.d.ts +6 -6
  32. package/dist/voice/decide.d.ts +35 -0
  33. package/dist/voice/decide.js +329 -0
  34. package/dist/voice/decide.js.map +1 -0
  35. package/dist/voice/decision-log.d.ts +48 -0
  36. package/dist/voice/decision-log.js +117 -0
  37. package/dist/voice/decision-log.js.map +1 -0
  38. package/dist/voice/engine.d.ts +119 -0
  39. package/dist/voice/engine.js +61 -0
  40. package/dist/voice/engine.js.map +1 -0
  41. package/dist/voice/fake-engine.d.ts +10 -0
  42. package/dist/voice/fake-engine.js +192 -0
  43. package/dist/voice/fake-engine.js.map +1 -0
  44. package/dist/voice/jev-engine.d.ts +17 -0
  45. package/dist/voice/jev-engine.js +110 -0
  46. package/dist/voice/jev-engine.js.map +1 -0
  47. package/dist/voice/pending-ask.d.ts +17 -0
  48. package/dist/voice/pending-ask.js +51 -0
  49. package/dist/voice/pending-ask.js.map +1 -0
  50. package/dist/voice/routes.d.ts +115 -0
  51. package/dist/voice/routes.js +92 -0
  52. package/dist/voice/routes.js.map +1 -0
  53. package/dist/voice/sentence.d.ts +21 -0
  54. package/dist/voice/sentence.js +61 -0
  55. package/dist/voice/sentence.js.map +1 -0
  56. package/dist/voice/thresholds.d.ts +28 -0
  57. package/dist/voice/thresholds.js +29 -0
  58. package/dist/voice/thresholds.js.map +1 -0
  59. package/dist/workflows/continuation-admission.d.ts +72 -72
  60. package/dist/workflows/run/wait-engine.d.ts +72 -72
  61. package/package.json +4 -4
  62. package/scripts/voice-replay.ts +50 -0
  63. package/web/dist/assets/activity-motion-CbA_TAx4.js +2 -0
  64. package/web/dist/assets/{activity-route-DURvhLQf.js → activity-route-Cq5GO6rp.js} +1 -1
  65. package/web/dist/assets/agent-accounts-Cof8AiVl.js +18 -0
  66. package/web/dist/assets/{alert-dialog-CPBKJTj_.js → alert-dialog-CH4SXGfX.js} +1 -1
  67. package/web/dist/assets/attention-BjWQsJVw.js +1 -0
  68. package/web/dist/assets/button-DGwhwRuD.js +3 -0
  69. package/web/dist/assets/{centered-state-8l6wvu0C.js → centered-state-B5QmAy2y.js} +1 -1
  70. package/web/dist/assets/{cez-idle-TVRD1sce.js → cez-idle-xv7f96fc.js} +1 -1
  71. package/web/dist/assets/{commit-diff-panel-BbM4GEgm.js → commit-diff-panel-BInf9r-P.js} +1 -1
  72. package/web/dist/assets/{dialog-CkU56ywj.js → dialog-B7p5oc5r.js} +1 -1
  73. package/web/dist/assets/diff-BvCB85J2.js +3 -0
  74. package/web/dist/assets/{diff-controls-DzcrZF8L.js → diff-controls-CeYlCm_y.js} +1 -1
  75. package/web/dist/assets/{diff-view--NwKwseV.js → diff-view-Cnlbd7ej.js} +4 -4
  76. package/web/dist/assets/{dist-D4TujV9O.js → dist-ClnpAEgV.js} +1 -1
  77. package/web/dist/assets/{dropdown-menu-BN2BI4R1.js → dropdown-menu-DPrTX-zi.js} +1 -1
  78. package/web/dist/assets/{es2015-DnySZnV4.js → es2015-DTn4s5Lh.js} +1 -1
  79. package/web/dist/assets/{file-preview-B36xoAJ8.js → file-preview-EiGdhbDV.js} +2 -2
  80. package/web/dist/assets/git-toolbar-D6W3lamH.js +1 -0
  81. package/web/dist/assets/{github-CA0qpTLt.js → github-DQe-Ussy.js} +1 -1
  82. package/web/dist/assets/{global-activity-route-DRc_wjkF.js → global-activity-route-_1mbn6gk.js} +1 -1
  83. package/web/dist/assets/{image-preview-DpaJAUA9.js → image-preview-cn57tA1m.js} +1 -1
  84. package/web/dist/assets/index-Cs-8u_FQ.js +17 -0
  85. package/web/dist/assets/index-WLruDkjz.css +1 -0
  86. package/web/dist/assets/{live-protocol-aMLJJ0MQ.js → live-protocol-DjH6ZQwI.js} +1 -1
  87. package/web/dist/assets/{nav-row-styles-DoZBu-jT.js → nav-row-styles-DSBuSnEE.js} +1 -1
  88. package/web/dist/assets/preview-pane-connected-DgZ5q0xy.js +3 -0
  89. package/web/dist/assets/project-router-iGGf0Wcy.js +1 -0
  90. package/web/dist/assets/project-scope-context-DK2mtfmt.js +4 -0
  91. package/web/dist/assets/{prompt-template-menu-BJlLqUsI.js → prompt-template-menu-D1AqFsnv.js} +1 -1
  92. package/web/dist/assets/queries-CMLTX79n.js +1 -0
  93. package/web/dist/assets/{reference-chip-pp1FgLpK.js → reference-chip-uYFiC2FE.js} +1 -1
  94. package/web/dist/assets/repo-git-B_xucWJR.js +1 -0
  95. package/web/dist/assets/{report-reader-C_r69KvS.js → report-reader-Csv7xOrn.js} +1 -1
  96. package/web/dist/assets/reports-BVp32fGs.js +1 -0
  97. package/web/dist/assets/run-header-C941_3eU.js +2 -0
  98. package/web/dist/assets/skills-PpSAbEYS.js +1 -0
  99. package/web/dist/assets/{tab-link-92W6MWDZ.js → tab-link-dVF0beIK.js} +1 -1
  100. package/web/dist/assets/task-changes-BaCA5Izd.js +1 -0
  101. package/web/dist/assets/task-commits-B4oZHsub.js +1 -0
  102. package/web/dist/assets/task-files-Bg_J255X.js +1 -0
  103. package/web/dist/assets/task-github-item-DyBh5-Q_.js +1 -0
  104. package/web/dist/assets/task-thread-D6wp7G61.js +9 -0
  105. package/web/dist/assets/{thread-state-DBalnt7M.js → thread-state-DA5kehiy.js} +1 -1
  106. package/web/dist/assets/{toaster-2NK3PogQ.js → toaster-CoMJoQvk.js} +1 -1
  107. package/web/dist/assets/use-desktop-BL6xT4Rz.js +1 -0
  108. package/web/dist/assets/use-hand-to-agent-state-CPhF3TRe.js +1 -0
  109. package/web/dist/assets/{useInfiniteQuery-C22IahAC.js → useInfiniteQuery-CYsKbsRE.js} +1 -1
  110. package/web/dist/assets/useQuery-DMywwX-_.js +1 -0
  111. package/web/dist/assets/workflows-CsCKM6GN.js +7 -0
  112. package/web/dist/assets/{ws-D9whCwIN.js → ws-DdguL17F.js} +1 -1
  113. package/web/dist/assets/{zoomable-image-D0zshpve.js → zoomable-image-C7mEDZaS.js} +1 -1
  114. package/web/dist/index.html +24 -25
  115. package/web/dist/live-worker.js +1 -1
  116. package/dist/server/launch-key.d.ts +0 -5
  117. package/dist/server/launch-key.js +0 -35
  118. package/dist/server/launch-key.js.map +0 -1
  119. package/web/dist/assets/activity-motion-CSe8gVgw.js +0 -2
  120. package/web/dist/assets/agent-accounts-BrFoXDpa.js +0 -18
  121. package/web/dist/assets/attention-BeBfNOUJ.js +0 -1
  122. package/web/dist/assets/button-Czdi8NqC.js +0 -3
  123. package/web/dist/assets/diff-DgAd6acp.js +0 -3
  124. package/web/dist/assets/git-toolbar-Db0h7gTI.js +0 -1
  125. package/web/dist/assets/index-De7eAZ5M.js +0 -17
  126. package/web/dist/assets/index-Dps0ABGp.css +0 -1
  127. package/web/dist/assets/input-Dilvz-YI.js +0 -1
  128. package/web/dist/assets/preview-pane-connected-CU_lEf11.js +0 -3
  129. package/web/dist/assets/project-router-ir-bfT5a.js +0 -1
  130. package/web/dist/assets/project-scope-context-BSdXJd3m.js +0 -4
  131. package/web/dist/assets/queries-BXo4WfX0.js +0 -1
  132. package/web/dist/assets/repo-git-BOfsABl4.js +0 -1
  133. package/web/dist/assets/reports-CWIvS-PA.js +0 -1
  134. package/web/dist/assets/run-header-CSEAFAfa.js +0 -2
  135. package/web/dist/assets/skills-jwrn7yXY.js +0 -1
  136. package/web/dist/assets/task-changes-EalDx6wh.js +0 -1
  137. package/web/dist/assets/task-commits-ZWjrQSnF.js +0 -1
  138. package/web/dist/assets/task-files-Cg-INsaD.js +0 -1
  139. package/web/dist/assets/task-github-item-B8yO5uo1.js +0 -1
  140. package/web/dist/assets/task-thread-Bs6ZnRXz.js +0 -9
  141. package/web/dist/assets/use-desktop-BYMCVpyw.js +0 -1
  142. package/web/dist/assets/use-hand-to-agent-state-Bhmmem1E.js +0 -1
  143. package/web/dist/assets/useQuery-C0rYnV6X.js +0 -1
  144. package/web/dist/assets/workflows-BRhGKY_0.js +0 -7
@@ -0,0 +1,115 @@
1
+ import type { ProjectApiEnv } from '../server/server.ts';
2
+ import { type RecentVoiceActions } from './decision-log.ts';
3
+ import { type DecisionEngine } from './engine.ts';
4
+ /** The one refusal both routes answer while voice mode is off (capability `voice`). */
5
+ export declare const VOICE_OFF: string;
6
+ export interface VoiceRouteDeps {
7
+ voiceEnabled(): boolean;
8
+ /** Read per request, so the dry-run and key rules follow the live environment. */
9
+ engine(): DecisionEngine;
10
+ recent: RecentVoiceActions;
11
+ uuid?: () => string;
12
+ }
13
+ /**
14
+ * Voice mode routes (spec 2026-10-21-voice-mode, "Architecture"). One chained family, mounted in the
15
+ * `v1` chain so they answer under `/api/v1/voice/*` and `/api/v1/p/:projectId/voice/*`. The gate runs
16
+ * before validation, so an off server never validates, decides or writes.
17
+ */
18
+ export declare function createVoiceRoutes(deps: VoiceRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
19
+ "/voice/decide": {
20
+ $post: {
21
+ output: {
22
+ action: "open";
23
+ decisionId: string;
24
+ status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
25
+ position: number | "last" | "next" | "previous";
26
+ confidence: number;
27
+ alternatives?: {
28
+ status: "archived" | "cancelled" | "done" | "failed" | "finished" | "monitoring" | "needs-permission" | "needs-review" | "needs-you" | "queued" | "running" | "scheduled" | "unread" | "waiting-for-capacity" | "waiting-for-ci" | "waiting-on-workers" | "working";
29
+ position: number | "last" | "next" | "previous";
30
+ }[] | undefined;
31
+ } | {
32
+ action: "answer";
33
+ decisionId: string;
34
+ runId: string;
35
+ askRequestId: string;
36
+ answers: ({
37
+ question: number;
38
+ kind: "option";
39
+ labels: string[];
40
+ } | {
41
+ question: number;
42
+ kind: "other";
43
+ text: string;
44
+ })[];
45
+ confidence: number;
46
+ } | {
47
+ action: "tell";
48
+ decisionId: string;
49
+ runId: string;
50
+ text: string;
51
+ confidence: number;
52
+ } | {
53
+ action: "confirm";
54
+ decisionId: string;
55
+ } | {
56
+ action: "cancel";
57
+ decisionId: string;
58
+ } | {
59
+ action: "none";
60
+ decisionId: string;
61
+ reason: "ambiguous" | "no-open-question" | "no-open-task" | "not-a-command" | "stale-context" | "unclear" | "unsupported";
62
+ };
63
+ outputFormat: "json";
64
+ status: 200;
65
+ input: {
66
+ json: {
67
+ text: string;
68
+ sidebarView: "active" | "automations";
69
+ openRunId?: string | undefined;
70
+ view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
71
+ askRequestId?: string | null | undefined;
72
+ proposal?: {
73
+ decisionId: string;
74
+ action: "answer" | "tell";
75
+ } | undefined;
76
+ };
77
+ };
78
+ } | {
79
+ output: {
80
+ error: string;
81
+ };
82
+ outputFormat: "json";
83
+ status: 503;
84
+ input: {
85
+ json: {
86
+ text: string;
87
+ sidebarView: "active" | "automations";
88
+ openRunId?: string | undefined;
89
+ view?: "automations" | "git" | "github" | "inbox" | "new-task" | "other" | "settings" | "task" | undefined;
90
+ askRequestId?: string | null | undefined;
91
+ proposal?: {
92
+ decisionId: string;
93
+ action: "answer" | "tell";
94
+ } | undefined;
95
+ };
96
+ };
97
+ };
98
+ };
99
+ } & {
100
+ "/voice/outcome": {
101
+ $post: {
102
+ output: {
103
+ ok: true;
104
+ };
105
+ outputFormat: "json";
106
+ status: 200;
107
+ input: {
108
+ json: {
109
+ decisionId: string;
110
+ outcome: "abandoned" | "cancelled" | "confirmed" | "executed" | "replaced";
111
+ };
112
+ };
113
+ };
114
+ };
115
+ }, "/", "/voice/outcome">;
@@ -0,0 +1,92 @@
1
+ import { productName } from '../home/display.js';
2
+ import { randomUUID } from 'node:crypto';
3
+ import { basename } from 'node:path';
4
+ import { Hono } from 'hono';
5
+ import { voiceDecideRequestSchema, voiceOutcomeRequestSchema, } from '../contract/index.js';
6
+ import { jsonZodValidator } from '../server/validators.js';
7
+ import { appendVoiceLog } from './decision-log.js';
8
+ import { decideVoice } from './decide.js';
9
+ import { VoiceEngineError } from './engine.js';
10
+ import { readPendingHumanAsk } from './pending-ask.js';
11
+ /** The one refusal both routes answer while voice mode is off (capability `voice`). */
12
+ export const VOICE_OFF = `Voice mode is off: set CEZ_VOICE=1 and TYPESAFE_API_KEY, then restart ${productName('cezar')}`;
13
+ /**
14
+ * Voice mode routes (spec 2026-10-21-voice-mode, "Architecture"). One chained family, mounted in the
15
+ * `v1` chain so they answer under `/api/v1/voice/*` and `/api/v1/p/:projectId/voice/*`. The gate runs
16
+ * before validation, so an off server never validates, decides or writes.
17
+ */
18
+ export function createVoiceRoutes(deps) {
19
+ const gate = async (c, next) => {
20
+ if (!deps.voiceEnabled())
21
+ return c.json({ error: VOICE_OFF }, 409);
22
+ await next();
23
+ };
24
+ return new Hono()
25
+ .use('/voice/*', gate)
26
+ .post('/voice/decide', jsonZodValidator(voiceDecideRequestSchema), async (c) => {
27
+ const project = c.get('project');
28
+ const body = c.req.valid('json');
29
+ // An id this project does not know is "no open task", not an error: the tab can outlive the run.
30
+ // Its card id goes with it, so "no open task" wins over a stale card.
31
+ const openRun = body.openRunId === undefined ? undefined : project.store.getRun(body.openRunId);
32
+ const { openRunId: _unknown, askRequestId: _card, ...rest } = body;
33
+ const request = openRun ? body : rest;
34
+ const screen = {
35
+ project: basename(project.root),
36
+ ...(openRun ? { openTask: { title: openRun.titleSummary ?? openRun.title, status: openRun.status } } : {}),
37
+ };
38
+ const ask = openRun ? readPendingHumanAsk(project.store.sourceDataDir(openRun.id), openRun) : undefined;
39
+ const decisionId = deps.uuid?.() ?? randomUUID();
40
+ deps.recent.load(project.id, project.dataDir);
41
+ const recent = deps.recent.last(project.id);
42
+ const engine = deps.engine();
43
+ try {
44
+ const { decision, answers, latencyMs, state } = await decideVoice({
45
+ request,
46
+ ...(ask ? { ask } : {}),
47
+ screen,
48
+ recent,
49
+ engine,
50
+ decisionId,
51
+ signal: c.req.raw.signal,
52
+ });
53
+ appendVoiceLog(project.dataDir, {
54
+ type: 'decision',
55
+ at: new Date().toISOString(),
56
+ decisionId,
57
+ sentence: request.text,
58
+ ...(request.openRunId !== undefined ? { openRunId: request.openRunId } : {}),
59
+ engine: engine.id,
60
+ state,
61
+ answers,
62
+ decision,
63
+ latencyMs,
64
+ });
65
+ deps.recent.record(project.id, decisionId, request.text, decision.action);
66
+ return c.json(decision, 200);
67
+ }
68
+ catch (error) {
69
+ // The caller's own abort and any bug go to Hono's error handler and write no line.
70
+ if (!(error instanceof VoiceEngineError))
71
+ throw error;
72
+ appendVoiceLog(project.dataDir, {
73
+ type: 'decision-error',
74
+ at: new Date().toISOString(),
75
+ decisionId,
76
+ sentence: request.text,
77
+ code: error.code,
78
+ });
79
+ // Only the code leaves the server: never the engine's message, status or headers.
80
+ return c.json({ error: `Voice decision unavailable (${error.code})` }, 503);
81
+ }
82
+ })
83
+ .post('/voice/outcome', jsonZodValidator(voiceOutcomeRequestSchema), async (c) => {
84
+ const project = c.get('project');
85
+ const { decisionId, outcome } = c.req.valid('json');
86
+ deps.recent.load(project.id, project.dataDir);
87
+ appendVoiceLog(project.dataDir, { type: 'outcome', at: new Date().toISOString(), decisionId, outcome });
88
+ deps.recent.settle(project.id, decisionId, outcome);
89
+ return c.json({ ok: true }, 200);
90
+ });
91
+ }
92
+ //# sourceMappingURL=routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/voice/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,IAAI,EAA2B,MAAM,MAAM,CAAC;AACrD,OAAO,EACL,wBAAwB,EACxB,yBAAyB,GAE1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAA2B,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAuB,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,uFAAuF;AACvF,MAAM,CAAC,MAAM,SAAS,GAAG,yEAAyE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;AAUzH;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IA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AW,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;QACxG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACpD,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAa,EAAE,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The dictated sentence as numbered words (hearsay-tools/cezarion#1463). The engine labels each word
3
+ * with the part of the reply it belongs to; code copies the words back out of the sentence exactly as
4
+ * said (spec 2026-10-21-voice-mode, "Answer the question card"). Pure string work; nothing here
5
+ * decides anything.
6
+ */
7
+ export interface VoiceWord {
8
+ /** `W01`, `W02`, … as the engine sees it in `words`. */
9
+ id: string;
10
+ text: string;
11
+ /** Where the word sits in the sentence: `sentence.slice(start, end) === text`. */
12
+ start: number;
13
+ end: number;
14
+ }
15
+ export declare function wordId(index: number): string;
16
+ export declare function splitWords(sentence: string): VoiceWord[];
17
+ /** The indices of the words inside a question reference: they point at a question, they never answer it. */
18
+ export declare function questionReferenceWords(sentence: string, words: readonly VoiceWord[], headers: string[]): Set<number>;
19
+ export declare function namesQuestion(sentence: string, headers: string[]): boolean;
20
+ /** The words `first`..`last` exactly as said, without a trailing sentence mark or comma. */
21
+ export declare function copyRange(sentence: string, words: readonly VoiceWord[], first: number, last: number): string;
@@ -0,0 +1,61 @@
1
+ /**
2
+ * The dictated sentence as numbered words (hearsay-tools/cezarion#1463). The engine labels each word
3
+ * with the part of the reply it belongs to; code copies the words back out of the sentence exactly as
4
+ * said (spec 2026-10-21-voice-mode, "Answer the question card"). Pure string work; nothing here
5
+ * decides anything.
6
+ */
7
+ const ORDINAL = '(?:one|two|three|four|first|second|third|fourth|[1-4])';
8
+ function escapeRegExp(text) {
9
+ return text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
10
+ }
11
+ /**
12
+ * Where the sentence names a question: by number ("to question first", "the second question") or by
13
+ * its card header ("to Library", "for the Library question", "Library question").
14
+ */
15
+ function questionAnchors(headers) {
16
+ const named = [...headers]
17
+ .filter((header) => header.trim() !== '')
18
+ .sort((a, b) => b.length - a.length)
19
+ .map((header) => {
20
+ const h = `(?<!\\w)${escapeRegExp(header.trim())}(?!\\w)`;
21
+ return `\\b(?:to|for)\\s+(?:the\\s+)?${h}(?:\\s+question\\b)?|(?:\\bthe\\s+)?${h}\\s+question\\b`;
22
+ });
23
+ const numbered = `(?:\\b(?:to|for)\\s+)?(?:\\bthe\\s+)?\\b(?:question\\s+${ORDINAL}|${ORDINAL}\\s+question)\\b`;
24
+ return new RegExp([...named, numbered].join('|'), 'gi');
25
+ }
26
+ export function wordId(index) {
27
+ return `W${String(index + 1).padStart(2, '0')}`;
28
+ }
29
+ export function splitWords(sentence) {
30
+ return [...sentence.matchAll(/\S+/g)].map((match, i) => ({
31
+ id: wordId(i),
32
+ text: match[0],
33
+ start: match.index,
34
+ end: match.index + match[0].length,
35
+ }));
36
+ }
37
+ /** The indices of the words inside a question reference: they point at a question, they never answer it. */
38
+ export function questionReferenceWords(sentence, words, headers) {
39
+ const found = new Set();
40
+ for (const anchor of sentence.matchAll(questionAnchors(headers))) {
41
+ const from = anchor.index;
42
+ const to = anchor.index + anchor[0].length;
43
+ words.forEach((word, i) => {
44
+ if (word.start < to && word.end > from)
45
+ found.add(i);
46
+ });
47
+ }
48
+ return found;
49
+ }
50
+ export function namesQuestion(sentence, headers) {
51
+ return questionAnchors(headers).test(sentence);
52
+ }
53
+ /** The words `first`..`last` exactly as said, without a trailing sentence mark or comma. */
54
+ export function copyRange(sentence, words, first, last) {
55
+ const from = words[first];
56
+ const to = words[last];
57
+ if (from === undefined || to === undefined)
58
+ return '';
59
+ return sentence.slice(from.start, to.end).replace(/[\s.!?,]+$/, '');
60
+ }
61
+ //# sourceMappingURL=sentence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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SAAS,IAAI,EAAE,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IACtD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The confidence cut-offs `decideVoice` applies to engine answers. They are tuned against one pinned
3
+ * Jev version (spec 2026-10-21-voice-mode, "How it decides"); no other file holds a threshold.
4
+ */
5
+ /**
6
+ * `is_command` noul below this reads as chatter, but only when the action is `none` or below
7
+ * `ACTION_MIN`; it never vetoes a confident action. Live jev-1.13.0 scored real commands at 0.33–0.47
8
+ * ("open second failed": 0.33 with `open` at 0.98), while chatter had no action above 0.40.
9
+ */
10
+ export declare const IS_COMMAND_MIN = 0.5;
11
+ /** The `action` choice below this confidence is not acted on. */
12
+ export declare const ACTION_MIN = 0.55;
13
+ /** A confirm or cancel needs this much confidence, since it sends or drops a proposal. */
14
+ export declare const CONFIRM_MIN = 0.7;
15
+ /** The `status` choice below this confidence comes with alternatives. */
16
+ export declare const OPEN_STATUS_SURE = 0.6;
17
+ /** A card option is taken when its probability is at least this; otherwise the words go to Other. */
18
+ export declare const ANSWER_OPTION_MIN = 0.5;
19
+ /** A multi-select option is taken when its noul is at least this. */
20
+ export declare const OPTION_SELECTED_MIN = 0.5;
21
+ /**
22
+ * A reply target (an answer to one card question, or the message) is taken when the mean confidence
23
+ * of its words is at least this. Not the minimum: live jev-1.13.0 gave correct boundary words
24
+ * 0.04–0.5 (spike for hearsay-tools/cezarion#1463). Set just below the lowest mean of a correct
25
+ * target in three live runs of the replay set (`scripts/voice-replay.ts`): 0.36, for "tell it that
26
+ * that file is fine".
27
+ */
28
+ export declare const EXTRACT_MIN = 0.3;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The confidence cut-offs `decideVoice` applies to engine answers. They are tuned against one pinned
3
+ * Jev version (spec 2026-10-21-voice-mode, "How it decides"); no other file holds a threshold.
4
+ */
5
+ /**
6
+ * `is_command` noul below this reads as chatter, but only when the action is `none` or below
7
+ * `ACTION_MIN`; it never vetoes a confident action. Live jev-1.13.0 scored real commands at 0.33–0.47
8
+ * ("open second failed": 0.33 with `open` at 0.98), while chatter had no action above 0.40.
9
+ */
10
+ export const IS_COMMAND_MIN = 0.5;
11
+ /** The `action` choice below this confidence is not acted on. */
12
+ export const ACTION_MIN = 0.55;
13
+ /** A confirm or cancel needs this much confidence, since it sends or drops a proposal. */
14
+ export const CONFIRM_MIN = 0.7;
15
+ /** The `status` choice below this confidence comes with alternatives. */
16
+ export const OPEN_STATUS_SURE = 0.6;
17
+ /** A card option is taken when its probability is at least this; otherwise the words go to Other. */
18
+ export const ANSWER_OPTION_MIN = 0.5;
19
+ /** A multi-select option is taken when its noul is at least this. */
20
+ export const OPTION_SELECTED_MIN = 0.5;
21
+ /**
22
+ * A reply target (an answer to one card question, or the message) is taken when the mean confidence
23
+ * of its words is at least this. Not the minimum: live jev-1.13.0 gave correct boundary words
24
+ * 0.04–0.5 (spike for hearsay-tools/cezarion#1463). Set just below the lowest mean of a correct
25
+ * target in three live runs of the replay set (`scripts/voice-replay.ts`): 0.36, for "tell it that
26
+ * that file is fine".
27
+ */
28
+ export const EXTRACT_MIN = 0.3;
29
+ //# sourceMappingURL=thresholds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thresholds.js","sourceRoot":"","sources":["../../src/voice/thresholds.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAClC,iEAAiE;AACjE,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC;AAC/B,yEAAyE;AACzE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AACpC,qGAAqG;AACrG,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AACrC,qEAAqE;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AACvC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC"}
@@ -281,6 +281,30 @@ export declare class ContinuationChecks {
281
281
  deadline: string;
282
282
  seconds: number;
283
283
  note?: string | undefined;
284
+ } | {
285
+ id: string;
286
+ source: "agent" | "cezar";
287
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
288
+ registeredAt: string;
289
+ phase: "cancelled" | "delivered" | "open" | "resolved";
290
+ resolvedAt?: string | undefined;
291
+ deliveredAt?: string | undefined;
292
+ cancelledAt?: string | undefined;
293
+ turnId: string;
294
+ kind: "process";
295
+ deadline: string;
296
+ timeoutSeconds: number;
297
+ pid: number;
298
+ startToken?: string | undefined;
299
+ exitFile?: string | undefined;
300
+ note?: string | undefined;
301
+ result?: {
302
+ outcome: "deadline" | "error" | "exit_file" | "exited";
303
+ observedAt: string;
304
+ exitCode?: number | undefined;
305
+ exitFileNote?: "not-an-exit-code" | undefined;
306
+ diagnostic?: string | undefined;
307
+ } | undefined;
284
308
  } | {
285
309
  id: string;
286
310
  source: "agent" | "cezar";
@@ -341,30 +365,6 @@ export declare class ContinuationChecks {
341
365
  reason: "outcome" | "timeout";
342
366
  } | undefined;
343
367
  wakeInputId?: string | undefined;
344
- } | {
345
- id: string;
346
- source: "agent" | "cezar";
347
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
348
- registeredAt: string;
349
- phase: "cancelled" | "delivered" | "open" | "resolved";
350
- resolvedAt?: string | undefined;
351
- deliveredAt?: string | undefined;
352
- cancelledAt?: string | undefined;
353
- turnId: string;
354
- kind: "process";
355
- deadline: string;
356
- timeoutSeconds: number;
357
- pid: number;
358
- startToken?: string | undefined;
359
- exitFile?: string | undefined;
360
- note?: string | undefined;
361
- result?: {
362
- outcome: "deadline" | "error" | "exit_file" | "exited";
363
- observedAt: string;
364
- exitCode?: number | undefined;
365
- exitFileNote?: "not-an-exit-code" | undefined;
366
- diagnostic?: string | undefined;
367
- } | undefined;
368
368
  } | {
369
369
  id: string;
370
370
  source: "agent" | "cezar";
@@ -475,6 +475,30 @@ export declare class ContinuationChecks {
475
475
  deadline: string;
476
476
  seconds: number;
477
477
  note?: string | undefined;
478
+ } | {
479
+ id: string;
480
+ source: "agent" | "cezar";
481
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
482
+ registeredAt: string;
483
+ phase: "cancelled" | "delivered" | "open" | "resolved";
484
+ resolvedAt?: string | undefined;
485
+ deliveredAt?: string | undefined;
486
+ cancelledAt?: string | undefined;
487
+ turnId: string;
488
+ kind: "process";
489
+ deadline: string;
490
+ timeoutSeconds: number;
491
+ pid: number;
492
+ startToken?: string | undefined;
493
+ exitFile?: string | undefined;
494
+ note?: string | undefined;
495
+ result?: {
496
+ outcome: "deadline" | "error" | "exit_file" | "exited";
497
+ observedAt: string;
498
+ exitCode?: number | undefined;
499
+ exitFileNote?: "not-an-exit-code" | undefined;
500
+ diagnostic?: string | undefined;
501
+ } | undefined;
478
502
  } | {
479
503
  id: string;
480
504
  source: "agent" | "cezar";
@@ -535,30 +559,6 @@ export declare class ContinuationChecks {
535
559
  reason: "outcome" | "timeout";
536
560
  } | undefined;
537
561
  wakeInputId?: string | undefined;
538
- } | {
539
- id: string;
540
- source: "agent" | "cezar";
541
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
542
- registeredAt: string;
543
- phase: "cancelled" | "delivered" | "open" | "resolved";
544
- resolvedAt?: string | undefined;
545
- deliveredAt?: string | undefined;
546
- cancelledAt?: string | undefined;
547
- turnId: string;
548
- kind: "process";
549
- deadline: string;
550
- timeoutSeconds: number;
551
- pid: number;
552
- startToken?: string | undefined;
553
- exitFile?: string | undefined;
554
- note?: string | undefined;
555
- result?: {
556
- outcome: "deadline" | "error" | "exit_file" | "exited";
557
- observedAt: string;
558
- exitCode?: number | undefined;
559
- exitFileNote?: "not-an-exit-code" | undefined;
560
- diagnostic?: string | undefined;
561
- } | undefined;
562
562
  } | {
563
563
  id: string;
564
564
  source: "agent" | "cezar";
@@ -668,6 +668,30 @@ export declare class ContinuationChecks {
668
668
  deadline: string;
669
669
  seconds: number;
670
670
  note?: string | undefined;
671
+ } | {
672
+ id: string;
673
+ source: "agent" | "cezar";
674
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
675
+ registeredAt: string;
676
+ phase: "cancelled" | "delivered" | "open" | "resolved";
677
+ resolvedAt?: string | undefined;
678
+ deliveredAt?: string | undefined;
679
+ cancelledAt?: string | undefined;
680
+ turnId: string;
681
+ kind: "process";
682
+ deadline: string;
683
+ timeoutSeconds: number;
684
+ pid: number;
685
+ startToken?: string | undefined;
686
+ exitFile?: string | undefined;
687
+ note?: string | undefined;
688
+ result?: {
689
+ outcome: "deadline" | "error" | "exit_file" | "exited";
690
+ observedAt: string;
691
+ exitCode?: number | undefined;
692
+ exitFileNote?: "not-an-exit-code" | undefined;
693
+ diagnostic?: string | undefined;
694
+ } | undefined;
671
695
  } | {
672
696
  id: string;
673
697
  source: "agent" | "cezar";
@@ -728,30 +752,6 @@ export declare class ContinuationChecks {
728
752
  reason: "outcome" | "timeout";
729
753
  } | undefined;
730
754
  wakeInputId?: string | undefined;
731
- } | {
732
- id: string;
733
- source: "agent" | "cezar";
734
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
735
- registeredAt: string;
736
- phase: "cancelled" | "delivered" | "open" | "resolved";
737
- resolvedAt?: string | undefined;
738
- deliveredAt?: string | undefined;
739
- cancelledAt?: string | undefined;
740
- turnId: string;
741
- kind: "process";
742
- deadline: string;
743
- timeoutSeconds: number;
744
- pid: number;
745
- startToken?: string | undefined;
746
- exitFile?: string | undefined;
747
- note?: string | undefined;
748
- result?: {
749
- outcome: "deadline" | "error" | "exit_file" | "exited";
750
- observedAt: string;
751
- exitCode?: number | undefined;
752
- exitFileNote?: "not-an-exit-code" | undefined;
753
- diagnostic?: string | undefined;
754
- } | undefined;
755
755
  } | {
756
756
  id: string;
757
757
  source: "agent" | "cezar";