@vellumai/assistant 0.10.10-dev.202607201843.29886ee → 0.10.10-dev.202607201935.4faac34

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/openapi.yaml CHANGED
@@ -33662,6 +33662,11 @@ components:
33662
33662
  - running
33663
33663
  - not_running
33664
33664
  - unreachable
33665
+ origin:
33666
+ type: string
33667
+ enum:
33668
+ - plugin
33669
+ - workspace
33665
33670
  children:
33666
33671
  type: array
33667
33672
  items:
@@ -33671,6 +33676,7 @@ components:
33671
33676
  required:
33672
33677
  - name
33673
33678
  - status
33679
+ - origin
33674
33680
  additionalProperties: false
33675
33681
  AuthOutput:
33676
33682
  oneOf:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/assistant",
3
- "version": "0.10.10-dev.202607201843.29886ee",
3
+ "version": "0.10.10-dev.202607201935.4faac34",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -133,7 +133,7 @@ describe("ps command — IPC wiring", () => {
133
133
  });
134
134
 
135
135
  describe("ps command — tree rendering", () => {
136
- test("renders parent, indented children, and status labels", async () => {
136
+ test("renders parent, indented children, and plugin/workspace origin", async () => {
137
137
  mockResponse = {
138
138
  ok: true,
139
139
  result: {
@@ -141,9 +141,14 @@ describe("ps command — tree rendering", () => {
141
141
  {
142
142
  name: "assistant",
143
143
  status: "running",
144
+ origin: "workspace",
144
145
  children: [
145
- { name: "qdrant", status: "running" },
146
- { name: "embed-worker", status: "not_running" },
146
+ { name: "qdrant", status: "running", origin: "workspace" },
147
+ {
148
+ name: "memory-worker",
149
+ status: "running",
150
+ origin: "plugin:default-memory",
151
+ },
147
152
  ],
148
153
  },
149
154
  ],
@@ -151,27 +156,83 @@ describe("ps command — tree rendering", () => {
151
156
  };
152
157
 
153
158
  await runPsCommand();
154
- const out = logLines.join("\n");
155
-
156
- expect(out).toContain("assistant [running]");
157
- expect(out).toContain(" qdrant [running]");
158
- expect(out).toContain(" embed-worker [not running]");
159
+ const lines = logLines.filter((l) => l.trim().length > 0);
160
+
161
+ // Column 1 keeps the hierarchy indentation; the origin column follows.
162
+ const root = lines.find((l) => l.startsWith("assistant"))!;
163
+ const qdrant = lines.find((l) => l.trimStart().startsWith("qdrant"))!;
164
+ const worker = lines.find((l) =>
165
+ l.trimStart().startsWith("memory-worker"),
166
+ )!;
167
+
168
+ expect(qdrant).toMatch(/^ {2}qdrant/);
169
+ expect(root).toContain("workspace");
170
+ expect(qdrant).toContain("workspace");
171
+ // The plugin's name is shown alongside the plugin tag.
172
+ expect(worker).toContain("plugin:default-memory");
173
+
174
+ // The status label is gone — no [running] anywhere.
175
+ expect(logLines.join("\n")).not.toContain("[running]");
159
176
  });
160
177
 
161
- test("appends info text when present", async () => {
178
+ test("aligns column 2 to the same start index across all rows", async () => {
162
179
  mockResponse = {
163
180
  ok: true,
164
181
  result: {
165
182
  processes: [
166
- { name: "qdrant", status: "unreachable", info: "probe timed out" },
183
+ {
184
+ name: "assistant",
185
+ status: "running",
186
+ origin: "workspace",
187
+ children: [
188
+ {
189
+ name: "qdrant",
190
+ status: "running",
191
+ origin: "workspace",
192
+ children: [
193
+ {
194
+ name: "deeply-nested-child",
195
+ status: "running",
196
+ origin: "plugin:cognee",
197
+ },
198
+ ],
199
+ },
200
+ ],
201
+ },
167
202
  ],
168
203
  },
169
204
  };
170
205
 
171
206
  await runPsCommand();
172
- expect(logLines.join("\n")).toContain(
173
- "qdrant [unreachable] — probe timed out",
207
+ const lines = logLines.filter((l) => l.trim().length > 0);
208
+
209
+ // The origin word starts at the same column on every row regardless of
210
+ // the depth-driven indentation in column 1.
211
+ const originStarts = lines.map((l) =>
212
+ l.indexOf("workspace") === -1
213
+ ? l.indexOf("plugin")
214
+ : l.indexOf("workspace"),
174
215
  );
216
+ expect(new Set(originStarts).size).toBe(1);
217
+ });
218
+
219
+ test("shows the pid info column", async () => {
220
+ mockResponse = {
221
+ ok: true,
222
+ result: {
223
+ processes: [
224
+ {
225
+ name: "qdrant",
226
+ status: "running",
227
+ origin: "workspace",
228
+ info: "pid 4242",
229
+ },
230
+ ],
231
+ },
232
+ };
233
+
234
+ await runPsCommand();
235
+ expect(logLines.join("\n")).toContain("pid 4242");
175
236
  });
176
237
 
177
238
  test("prints a placeholder when no processes are reported", async () => {
@@ -18,7 +18,10 @@ worker (when the daemon owns it), MCP servers, and any other live children.
18
18
  The tree is built from the native process table (/proc on Linux, ps on
19
19
  macOS), so it reflects what is actually running, not a fixed subsystem list.
20
20
 
21
- Each node shows its PID; every listed process is live by definition.
21
+ Each node shows its origin — 'workspace' for the daemon and its subsystems,
22
+ or 'plugin:<name>' for a process spawned from a plugin (e.g.
23
+ 'plugin:default-memory', 'plugin:cognee') — plus its PID. Every listed
24
+ process is live by definition.
22
25
 
23
26
  Examples:
24
27
  $ assistant ps
@@ -19,6 +19,8 @@ import { psHelp } from "./ps.help.js";
19
19
  interface ProcessEntry {
20
20
  name: string;
21
21
  status: "running" | "not_running" | "unreachable";
22
+ /** `workspace`, or `plugin:<name>` when spawned from a plugin. */
23
+ origin: "workspace" | `plugin:${string}`;
22
24
  children?: ProcessEntry[];
23
25
  info?: string;
24
26
  }
@@ -27,20 +29,44 @@ interface PsResponse {
27
29
  processes: ProcessEntry[];
28
30
  }
29
31
 
30
- const STATUS_LABEL: Record<ProcessEntry["status"], string> = {
31
- running: "running",
32
- not_running: "not running",
33
- unreachable: "unreachable",
34
- };
32
+ /**
33
+ * One flattened output row. Column 1 (`name`) carries the hierarchy
34
+ * indentation; the remaining columns are aligned to a common start index
35
+ * across all rows regardless of tree depth.
36
+ */
37
+ interface Row {
38
+ name: string;
39
+ origin: string;
40
+ info: string;
41
+ }
35
42
 
36
- /** Render one entry plus its children, indented to reflect tree depth. */
37
- function renderEntry(entry: ProcessEntry, depth: number): void {
38
- const indent = " ".repeat(depth);
39
- const status = STATUS_LABEL[entry.status] ?? entry.status;
40
- const info = entry.info ? ` — ${entry.info}` : "";
41
- log.info(`${indent}${entry.name} [${status}]${info}`);
43
+ /** Flatten the tree into rows, indenting each name to reflect tree depth. */
44
+ function flattenEntries(entry: ProcessEntry, depth: number, rows: Row[]): void {
45
+ rows.push({
46
+ name: " ".repeat(depth) + entry.name,
47
+ origin: entry.origin,
48
+ info: entry.info ?? "",
49
+ });
42
50
  for (const child of entry.children ?? []) {
43
- renderEntry(child, depth + 1);
51
+ flattenEntries(child, depth + 1, rows);
52
+ }
53
+ }
54
+
55
+ /**
56
+ * Render the flattened rows as aligned columns. Column 1 keeps its per-row
57
+ * indentation for hierarchy; columns 2..N are padded to a shared width so
58
+ * every row's column starts at the same index. Status is not shown — the
59
+ * daemon only ever reports live processes, so a `[running]` label carries no
60
+ * information.
61
+ */
62
+ function renderRows(rows: Row[]): void {
63
+ const nameWidth = Math.max(...rows.map((r) => r.name.length));
64
+ const originWidth = Math.max(...rows.map((r) => r.origin.length));
65
+ for (const r of rows) {
66
+ const line = `${r.name.padEnd(nameWidth)} ${r.origin.padEnd(
67
+ originWidth,
68
+ )} ${r.info}`;
69
+ log.info(line.trimEnd());
44
70
  }
45
71
  }
46
72
 
@@ -67,10 +93,13 @@ export function registerPsCommand(program: Command): void {
67
93
  return;
68
94
  }
69
95
 
70
- log.info("");
96
+ const rows: Row[] = [];
71
97
  for (const entry of processes) {
72
- renderEntry(entry, 0);
98
+ flattenEntries(entry, 0, rows);
73
99
  }
100
+
101
+ log.info("");
102
+ renderRows(rows);
74
103
  log.info("");
75
104
  });
76
105
  },
@@ -448,6 +448,19 @@
448
448
  "homepage": "https://github.com/vellum-ai/writing-coach",
449
449
  "license": "MIT",
450
450
  "icon": "✍️"
451
+ },
452
+ {
453
+ "name": "battleship",
454
+ "source": {
455
+ "source": "github",
456
+ "repo": "vellum-ai/battleship",
457
+ "ref": "32391ea3af71597b7507bb710bd29ab8308a4604"
458
+ },
459
+ "description": "Play Battleship against your assistant. Fire shots, track hits and misses, and sink the fleet before the assistant sinks yours.",
460
+ "category": "hobby",
461
+ "homepage": "https://github.com/vellum-ai/battleship",
462
+ "license": "MIT",
463
+ "icon": "⚓"
451
464
  }
452
465
  ]
453
466
  }
@@ -326,18 +326,3 @@ export function isAssistantFeatureFlagEnabled(
326
326
  ): boolean {
327
327
  return !!getAssistantFeatureFlagValue(key, config);
328
328
  }
329
-
330
- /**
331
- * Temporary rollout flag for the live-voice front-model presence layer
332
- * (semantic endpointing + spoken acks). Delete once default-on; permanent
333
- * tunables live in `liveVoice.frontModel` config.
334
- */
335
- export const VOICE_FRONT_MODEL_FLAG = "voice-front-model" as const;
336
-
337
- /**
338
- * Whether the front-model presence layer is active for live voice.
339
- * When false, every live-voice turn behaves exactly as before.
340
- */
341
- export function isVoiceFrontModelEnabled(config: AssistantConfig): boolean {
342
- return isAssistantFeatureFlagEnabled(VOICE_FRONT_MODEL_FLAG, config);
343
- }
@@ -123,14 +123,6 @@
123
123
  "description": "When a user barges in during live voice, keep the interrupted turn running as a background subagent instead of discarding it (true-duplex handoff)",
124
124
  "defaultEnabled": false
125
125
  },
126
- {
127
- "id": "voice-front-model",
128
- "scope": "assistant",
129
- "key": "voice-front-model",
130
- "label": "Voice Front Model",
131
- "description": "Front-model presence layer for live voice (semantic endpointing + spoken acks). Temporary rollout flag: delete once default-on; permanent tunables live in liveVoice.frontModel config.",
132
- "defaultEnabled": false
133
- },
134
126
  {
135
127
  "id": "fast-mode",
136
128
  "scope": "assistant",
@@ -1,14 +1,10 @@
1
- import { afterEach, describe, expect, mock, test } from "bun:test";
1
+ import { describe, expect, mock, test } from "bun:test";
2
2
 
3
3
  import { sanitizeForTts } from "../../calls/tts-text-sanitizer.js";
4
4
  import type {
5
5
  VoiceTurnCallbacks,
6
6
  VoiceTurnOptions,
7
7
  } from "../../calls/voice-session-bridge.js";
8
- import {
9
- clearCachedOverrides,
10
- setCachedOverrides,
11
- } from "../../config/feature-flag-cache.js";
12
8
  import type { LiveVoiceFrontModelConfig } from "../../config/schemas/live-voice.js";
13
9
  import type {
14
10
  StreamingTranscriber,
@@ -459,9 +455,7 @@ describe("LiveVoiceSession assistant turn", () => {
459
455
  });
460
456
  });
461
457
 
462
- describe("LiveVoiceSession tool-use spoken ack (voice-front-model)", () => {
463
- afterEach(() => clearCachedOverrides());
464
-
458
+ describe("LiveVoiceSession tool-use spoken ack", () => {
465
459
  const ACK_TIMEOUT_MS = 40;
466
460
  // Acks pass through the same TTS sanitizer as regular segments; each fresh
467
461
  // session's phrase counter starts at 0.
@@ -470,10 +464,6 @@ describe("LiveVoiceSession tool-use spoken ack (voice-front-model)", () => {
470
464
  pickAckPhrase("first_delta", 0),
471
465
  ).trim();
472
466
 
473
- function enableFrontModel(): void {
474
- setCachedOverrides({ "voice-front-model": true }, { fromGateway: true });
475
- }
476
-
477
467
  function createCapturingTurnStarter(): {
478
468
  startVoiceTurn: LiveVoiceTurnStarter;
479
469
  getCallbacks: () => VoiceTurnCallbacks | undefined;
@@ -546,7 +536,6 @@ describe("LiveVoiceSession tool-use spoken ack (voice-front-model)", () => {
546
536
  }
547
537
 
548
538
  test("tool_use_start before any delta speaks an immediate tool ack and cancels the timer", async () => {
549
- enableFrontModel();
550
539
  const { frames, session, getCallbacks, ttsTexts } = createAckHarness();
551
540
 
552
541
  await startReleasedTurn(session, getCallbacks);
@@ -571,7 +560,6 @@ describe("LiveVoiceSession tool-use spoken ack (voice-front-model)", () => {
571
560
  });
572
561
 
573
562
  test("tool_use_start after the first delta speaks no ack", async () => {
574
- enableFrontModel();
575
563
  const { frames, session, getCallbacks, ttsTexts } = createAckHarness();
576
564
 
577
565
  await startReleasedTurn(session, getCallbacks);
@@ -585,7 +573,6 @@ describe("LiveVoiceSession tool-use spoken ack (voice-front-model)", () => {
585
573
  });
586
574
 
587
575
  test("tool_use_start after a first-delta ack already spoke adds no second ack", async () => {
588
- enableFrontModel();
589
576
  const { frames, session, getCallbacks, ttsTexts } = createAckHarness();
590
577
 
591
578
  await startReleasedTurn(session, getCallbacks);
@@ -602,18 +589,4 @@ describe("LiveVoiceSession tool-use spoken ack (voice-front-model)", () => {
602
589
  await waitFor(() => frames.some((frame) => frame.type === "tts_done"));
603
590
  expect(ttsTexts).toEqual([EXPECTED_FIRST_DELTA_ACK, "Hello there."]);
604
591
  });
605
-
606
- test("tool_use_start speaks no ack when the flag is off", async () => {
607
- const { frames, session, getCallbacks, ttsTexts } = createAckHarness();
608
-
609
- await startReleasedTurn(session, getCallbacks);
610
- getCallbacks()?.tool_use_start?.("web_search");
611
- await new Promise((resolve) => setTimeout(resolve, ACK_TIMEOUT_MS + 40));
612
- expect(ttsTexts).toEqual([]);
613
-
614
- emitTextDelta(getCallbacks, "Hello there.");
615
- emitMessageComplete(getCallbacks);
616
- await waitFor(() => frames.some((frame) => frame.type === "tts_done"));
617
- expect(ttsTexts).toEqual(["Hello there."]);
618
- });
619
592
  });
@@ -765,23 +765,18 @@ describe("LiveVoiceSession TTS", () => {
765
765
  });
766
766
  });
767
767
 
768
- describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
768
+ describe("LiveVoiceSession spoken ack", () => {
769
769
  afterEach(() => clearCachedOverrides());
770
770
 
771
771
  const ACK_TIMEOUT_MS = 40;
772
772
  // The ack passes through the same TTS sanitizer as regular segments.
773
773
  const EXPECTED_ACK = sanitizeForTts(pickAckPhrase("first_delta", 0)).trim();
774
774
 
775
- function enableFrontModel(): void {
776
- setCachedOverrides({ "voice-front-model": true }, { fromGateway: true });
777
- }
778
-
779
775
  const EXPECTED_BRIDGE = sanitizeForTts(FALLBACK_ESCALATION_BRIDGE).trim();
780
776
 
781
- function enableFrontModelWithEscalation(): void {
777
+ function enableEscalation(): void {
782
778
  setCachedOverrides(
783
779
  {
784
- "voice-front-model": true,
785
780
  "voice-mode": true,
786
781
  [VOICE_TRIAGE_ESCALATE_FLAG]: true,
787
782
  },
@@ -815,7 +810,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
815
810
  }
816
811
 
817
812
  test("speaks exactly one audio-only ack before agent audio on a slow first delta", async () => {
818
- enableFrontModel();
819
813
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
820
814
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
821
815
  const { frames, session } = createSessionHarness({
@@ -858,7 +852,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
858
852
  });
859
853
 
860
854
  test("speaks no ack when the first delta beats the timeout", async () => {
861
- enableFrontModel();
862
855
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
863
856
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
864
857
  const { frames, session } = createSessionHarness({
@@ -878,7 +871,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
878
871
  });
879
872
 
880
873
  test("interrupt before the timeout clears the timer and speaks no ack", async () => {
881
- enableFrontModel();
882
874
  const { startVoiceTurn } = createCapturingTurnStarter();
883
875
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
884
876
  const { frames, session } = createSessionHarness({
@@ -895,27 +887,7 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
895
887
  expect(frames.some((frame) => frame.type === "tts_audio")).toBe(false);
896
888
  });
897
889
 
898
- test("arms no ack when the flag is off", async () => {
899
- const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
900
- const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
901
- const { frames, session } = createSessionHarness({
902
- startVoiceTurn,
903
- streamTtsAudio,
904
- frontModelConfig: { ackFirstDeltaTimeoutMs: ACK_TIMEOUT_MS },
905
- });
906
-
907
- await startReleasedTurn(session);
908
- await new Promise((resolve) => setTimeout(resolve, ACK_TIMEOUT_MS + 40));
909
- expect(ttsTexts).toEqual([]);
910
-
911
- getCallbacks()?.assistant_text_delta?.(makeTextDelta("Hello there."));
912
- getCallbacks()?.message_complete?.(makeMessageComplete());
913
- await waitFor(() => frames.some((frame) => frame.type === "tts_done"));
914
- expect(ttsTexts).toEqual(["Hello there."]);
915
- });
916
-
917
890
  test("arms no ack without a TTS streamer", async () => {
918
- enableFrontModel();
919
891
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
920
892
  const { frames, session } = createSessionHarness({
921
893
  startVoiceTurn,
@@ -934,7 +906,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
934
906
  });
935
907
 
936
908
  test("keeps the eager first-clause flush for the model's first segment after an ack", async () => {
937
- enableFrontModel();
938
909
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
939
910
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
940
911
  const { frames, session } = createSessionHarness({
@@ -981,7 +952,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
981
952
  }
982
953
 
983
954
  test("llmAckText on: speaks the front-model-phrased ack", async () => {
984
- enableFrontModel();
985
955
  const GENERATED = "Sure — one moment.";
986
956
  // The generated text passes through the same TTS sanitizer as the
987
957
  // static phrase.
@@ -1014,7 +984,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1014
984
  });
1015
985
 
1016
986
  test("llmAckText on: null generation falls back to the static phrase", async () => {
1017
- enableFrontModel();
1018
987
  const generateAckText = mock(async () => null);
1019
988
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
1020
989
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
@@ -1039,7 +1008,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1039
1008
  });
1040
1009
 
1041
1010
  test("llmAckText off (default): the decider is never consulted", async () => {
1042
- enableFrontModel();
1043
1011
  const generateAckText = mock(async () => "Never spoken.");
1044
1012
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
1045
1013
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
@@ -1061,7 +1029,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1061
1029
  });
1062
1030
 
1063
1031
  test("llmAckText on: a generation resolving around turn completion speaks no ack", async () => {
1064
- enableFrontModel();
1065
1032
  let resolveGeneration!: (text: string | null) => void;
1066
1033
  const generateAckText = mock(
1067
1034
  () =>
@@ -1099,7 +1066,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1099
1066
  });
1100
1067
 
1101
1068
  test("llmAckText on: a tool-use ack passes the tool name to the decider", async () => {
1102
- enableFrontModel();
1103
1069
  const GENERATED = "Let me search for that.";
1104
1070
  const generateAckText = mock(
1105
1071
  async (_input: VoiceAckTextInput) => GENERATED,
@@ -1131,7 +1097,7 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1131
1097
  });
1132
1098
 
1133
1099
  test("llmAckText on: a generation resolving after escalation hand-off speaks no ack", async () => {
1134
- enableFrontModelWithEscalation();
1100
+ enableEscalation();
1135
1101
  let resolveGeneration!: (text: string | null) => void;
1136
1102
  const generateAckText = mock(
1137
1103
  () =>
@@ -1176,7 +1142,7 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1176
1142
  });
1177
1143
 
1178
1144
  test("static ack: a tool started on the escalated leg speaks nothing past the bridge", async () => {
1179
- enableFrontModelWithEscalation();
1145
+ enableEscalation();
1180
1146
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
1181
1147
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
1182
1148
  const { frames, session } = createSessionHarness({
@@ -1207,7 +1173,7 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1207
1173
  });
1208
1174
 
1209
1175
  test("llmAckText on: tools started on the escalated leg trigger no ack generation", async () => {
1210
- enableFrontModelWithEscalation();
1176
+ enableEscalation();
1211
1177
  const generateAckText = mock(async () => "Never spoken.");
1212
1178
  const { startVoiceTurn, getCallbacks } = createCapturingTurnStarter();
1213
1179
  const { streamTtsAudio, ttsTexts } = createRecordingTtsStreamer();
@@ -1241,7 +1207,6 @@ describe("LiveVoiceSession spoken ack (voice-front-model)", () => {
1241
1207
  });
1242
1208
 
1243
1209
  test("llmAckText on: a first delta during generation skips the ack entirely", async () => {
1244
- enableFrontModel();
1245
1210
  let resolveGeneration!: (text: string | null) => void;
1246
1211
  const generateAckText = mock(
1247
1212
  () =>
@@ -2708,11 +2708,6 @@ function makeFrontDecider(decisions: Array<"hold" | "release">): {
2708
2708
  }
2709
2709
 
2710
2710
  describe("LiveVoiceSession semantic endpointing", () => {
2711
- afterEach(() => clearCachedOverrides());
2712
-
2713
- const enableFrontModel = () =>
2714
- setCachedOverrides({ "voice-front-model": true }, { fromGateway: true });
2715
-
2716
2711
  // Arms the harness session, waits for its transcriber, and seeds a partial
2717
2712
  // so the silence boundary has transcript text for the decider to judge.
2718
2713
  async function startWithPartial(
@@ -2728,7 +2723,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
2728
2723
  }
2729
2724
 
2730
2725
  test("a held silence boundary sends no utterance_end and replays after the extension", async () => {
2731
- enableFrontModel();
2732
2726
  const { decider, calls } = makeFrontDecider(["hold", "release"]);
2733
2727
  const turnStarter = makeAutoCompletingTurnStarter(["Hi there."]);
2734
2728
  const { frames, session, transcribers } = createHarness({
@@ -2774,7 +2768,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
2774
2768
  });
2775
2769
 
2776
2770
  test("ptt_release during a held pause still emits utterance_end", async () => {
2777
- enableFrontModel();
2778
2771
  const { decider, calls } = makeFrontDecider(["hold"]);
2779
2772
  const turnStarter = makeAutoCompletingTurnStarter(["Hi."]);
2780
2773
  const { frames, session, transcribers } = createHarness({
@@ -2802,7 +2795,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
2802
2795
  });
2803
2796
 
2804
2797
  test("speech resuming during a hold cancels the replay and the utterance keeps accumulating", async () => {
2805
- enableFrontModel();
2806
2798
  const { decider, calls } = makeFrontDecider(["hold", "release"]);
2807
2799
  const turnStarter = makeAutoCompletingTurnStarter(["Okay."]);
2808
2800
  const { frames, session, transcribers } = createHarness({
@@ -2843,7 +2835,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
2843
2835
  });
2844
2836
 
2845
2837
  test("a release decision produces the same frame sequence as the flag-off path", async () => {
2846
- enableFrontModel();
2847
2838
  const { decider, calls } = makeFrontDecider(["release"]);
2848
2839
  const turnStarter = makeAutoCompletingTurnStarter(["Hi there."]);
2849
2840
  const { frames, session, transcribers } = createHarness({
@@ -2873,7 +2864,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
2873
2864
  });
2874
2865
 
2875
2866
  test("a rejecting decider still releases the boundary with the normal frame sequence", async () => {
2876
- enableFrontModel();
2877
2867
  // The decider contract never rejects, but a buggy injected stub (or a
2878
2868
  // future regression) must not silently drop the silence boundary: the
2879
2869
  // session's belt catches the rejection and releases.
@@ -2914,7 +2904,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
2914
2904
  });
2915
2905
 
2916
2906
  test("a slow decider adds only its own bounded delay and then releases normally", async () => {
2917
- enableFrontModel();
2918
2907
  // Resolves "release" only after a delay comfortably longer than every
2919
2908
  // other timer in the flow — the boundary must wait it out and then run
2920
2909
  // the unchanged release sequence.
@@ -2961,7 +2950,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
2961
2950
  });
2962
2951
 
2963
2952
  test("endpointMaxExtensions caps consecutive holds and forces the release", async () => {
2964
- enableFrontModel();
2965
2953
  const { decider, calls } = makeFrontDecider(["hold", "hold", "hold"]);
2966
2954
  const turnStarter = makeAutoCompletingTurnStarter(["Hi there."]);
2967
2955
  const { frames, session, transcribers } = createHarness({
@@ -2983,34 +2971,7 @@ describe("LiveVoiceSession semantic endpointing", () => {
2983
2971
  expect(turnStarter.calls[0]).toMatchObject({ content: "hello world" });
2984
2972
  });
2985
2973
 
2986
- test("with the voice-front-model flag off the decider is never consulted", async () => {
2987
- const { decider, calls } = makeFrontDecider(["hold"]);
2988
- const turnStarter = makeAutoCompletingTurnStarter(["Hi there."]);
2989
- const { frames, session, transcribers } = createHarness({
2990
- finals: ["hello world"],
2991
- startVoiceTurn: turnStarter.startVoiceTurn,
2992
- frontDecider: decider,
2993
- });
2994
-
2995
- await startWithPartial(session, transcribers);
2996
- await session.handleBinaryAudio(LOUD_CHUNK);
2997
- await waitFor(() => frames.some((frame) => frame.type === "tts_done"));
2998
-
2999
- expect(calls).toHaveLength(0);
3000
- expect(frameTypes(frames)).toEqual([
3001
- "ready",
3002
- "stt_partial",
3003
- "speech_started",
3004
- "utterance_end",
3005
- "stt_final",
3006
- "thinking",
3007
- "assistant_text_delta",
3008
- "tts_done",
3009
- ]);
3010
- });
3011
-
3012
2974
  test("a max-duration boundary bypasses the decider entirely", async () => {
3013
- enableFrontModel();
3014
2975
  const { decider, calls } = makeFrontDecider(["hold"]);
3015
2976
  const turnStarter = makeAutoCompletingTurnStarter(["Hi there."]);
3016
2977
  const { frames, session, transcribers } = createHarness({
@@ -3033,7 +2994,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
3033
2994
  });
3034
2995
 
3035
2996
  test("a ptt_release forced boundary bypasses the decider and releases immediately", async () => {
3036
- enableFrontModel();
3037
2997
  // A hold-happy decider: if the manual release were routed through it,
3038
2998
  // the boundary would be deferred and the frame sequence below would gain
3039
2999
  // an extension delay (or stall entirely).
@@ -3078,7 +3038,6 @@ describe("LiveVoiceSession semantic endpointing", () => {
3078
3038
  });
3079
3039
 
3080
3040
  test("session close during a hold clears the extension timer", async () => {
3081
- enableFrontModel();
3082
3041
  const { decider, calls } = makeFrontDecider(["hold", "hold"]);
3083
3042
  const { frames, session, transcribers } = createHarness({
3084
3043
  finals: ["hello world"],
@@ -1,7 +1,7 @@
1
1
  import type { LiveVoiceSpokenAckKind } from "./live-voice-metrics.js";
2
2
 
3
3
  // Short, persona-neutral phrases spoken to hold the floor when the model is
4
- // slow to produce its first delta (voice-front-model). Pure floor-holders:
4
+ // slow to produce its first delta. Pure floor-holders:
5
5
  // they must never carry content or require domain knowledge, and they stay
6
6
  // short (≤ 6 words) so they finish before the real reply's audio arrives.
7
7
  const ACK_PHRASES: readonly string[] = [