@ouro.bot/cli 0.1.0-alpha.582 → 0.1.0-alpha.584

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.
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const realtime_eval_1 = require("./voice/realtime-eval");
4
+ const runtime_1 = require("../nerves/runtime");
5
+ (0, runtime_1.emitNervesEvent)({
6
+ component: "senses",
7
+ event: "senses.voice_realtime_eval_start",
8
+ message: "starting Voice realtime eval command",
9
+ meta: { scenarioId: "built-in-suite", events: 0 },
10
+ });
11
+ const reports = (0, realtime_eval_1.runBuiltInVoiceRealtimeEvalSuite)();
12
+ const summary = (0, realtime_eval_1.summarizeVoiceRealtimeEvalSuite)(reports);
13
+ const expectedKnownBadFailed = summary.failed === 1 && summary.failedScenarioIds[0] === "voice-known-bad-latency";
14
+ const happyPathPassed = reports.some((report) => report.scenarioId === "voice-happy-path" && report.passed);
15
+ (0, runtime_1.emitNervesEvent)({
16
+ component: "senses",
17
+ event: "senses.voice_realtime_eval_end",
18
+ message: "finished Voice realtime eval command",
19
+ meta: { scenarioId: "built-in-suite", passed: expectedKnownBadFailed && happyPathPassed, findings: summary.failed },
20
+ });
21
+ // eslint-disable-next-line no-console -- terminal UX: eval command summary
22
+ console.log(JSON.stringify({ summary, expectedKnownBadFailed, happyPathPassed }, null, 2));
23
+ if (!expectedKnownBadFailed || !happyPathPassed) {
24
+ process.exit(1);
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.582",
3
+ "version": "0.1.0-alpha.584",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",
@@ -26,6 +26,7 @@
26
26
  "ouro": "tsc && node dist/heart/daemon/ouro-entry.js",
27
27
  "teams": "tsc && node dist/senses/teams-entry.js --agent ouroboros",
28
28
  "bluebubbles": "tsc && node dist/senses/bluebubbles/entry.js --agent ouroboros",
29
+ "voice:eval": "npm run build && node dist/senses/voice-realtime-eval-entry.js",
29
30
  "test": "vitest run",
30
31
  "test:integration": "npm run build && vitest run --config vitest.integration.config.ts",
31
32
  "test:e2e:package": "npm run build && node scripts/package-e2e.cjs",