@absolutejs/voice 0.0.22-beta.674 → 0.0.22-beta.676
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/CHANGELOG.md +13 -0
- package/changelog.json +19 -0
- package/dist/angular/index.js +29 -29
- package/dist/client/htmxBootstrap.js +1 -1
- package/dist/client/index.js +181 -181
- package/dist/drizzle/index.js +40 -40
- package/dist/embed/index.js +3 -3
- package/dist/embed/voice-widget.js +8 -8
- package/dist/index.js +998 -959
- package/dist/react/index.js +863 -863
- package/dist/svelte/index.js +35 -35
- package/dist/testing/index.js +98 -72
- package/dist/vue/index.js +47 -47
- package/package.json +8 -4
package/dist/react/index.js
CHANGED
|
@@ -340,7 +340,7 @@ var renderVoiceOpsStatusHTML = (snapshot, options = {}) => {
|
|
|
340
340
|
};
|
|
341
341
|
|
|
342
342
|
// src/react/VoiceOpsStatus.tsx
|
|
343
|
-
import {
|
|
343
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
344
344
|
var VoiceOpsStatus = ({
|
|
345
345
|
className,
|
|
346
346
|
path = "/api/voice/ops-status",
|
|
@@ -348,90 +348,90 @@ var VoiceOpsStatus = ({
|
|
|
348
348
|
}) => {
|
|
349
349
|
const snapshot = useVoiceOpsStatus(path, options);
|
|
350
350
|
const model = createVoiceOpsStatusViewModel(snapshot, options);
|
|
351
|
-
return /* @__PURE__ */
|
|
351
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
352
352
|
className: [
|
|
353
353
|
"absolute-voice-ops-status",
|
|
354
354
|
`absolute-voice-ops-status--${model.status}`,
|
|
355
355
|
className
|
|
356
356
|
].filter(Boolean).join(" "),
|
|
357
357
|
children: [
|
|
358
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ jsxs("header", {
|
|
359
359
|
className: "absolute-voice-ops-status__header",
|
|
360
360
|
children: [
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ jsx("span", {
|
|
362
362
|
className: "absolute-voice-ops-status__eyebrow",
|
|
363
363
|
children: model.title
|
|
364
|
-
}
|
|
365
|
-
/* @__PURE__ */
|
|
364
|
+
}),
|
|
365
|
+
/* @__PURE__ */ jsx("strong", {
|
|
366
366
|
className: "absolute-voice-ops-status__label",
|
|
367
367
|
children: model.label
|
|
368
|
-
}
|
|
368
|
+
})
|
|
369
369
|
]
|
|
370
|
-
}
|
|
371
|
-
/* @__PURE__ */
|
|
370
|
+
}),
|
|
371
|
+
/* @__PURE__ */ jsx("p", {
|
|
372
372
|
className: "absolute-voice-ops-status__description",
|
|
373
373
|
children: model.description
|
|
374
|
-
}
|
|
375
|
-
/* @__PURE__ */
|
|
374
|
+
}),
|
|
375
|
+
/* @__PURE__ */ jsxs("div", {
|
|
376
376
|
className: "absolute-voice-ops-status__summary",
|
|
377
377
|
children: [
|
|
378
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ jsxs("span", {
|
|
379
379
|
children: [
|
|
380
380
|
model.passed,
|
|
381
381
|
" passing"
|
|
382
382
|
]
|
|
383
|
-
}
|
|
384
|
-
/* @__PURE__ */
|
|
383
|
+
}),
|
|
384
|
+
/* @__PURE__ */ jsxs("span", {
|
|
385
385
|
children: [
|
|
386
386
|
Math.max(model.total - model.passed, 0),
|
|
387
387
|
" failing"
|
|
388
388
|
]
|
|
389
|
-
}
|
|
390
|
-
/* @__PURE__ */
|
|
389
|
+
}),
|
|
390
|
+
/* @__PURE__ */ jsxs("span", {
|
|
391
391
|
children: [
|
|
392
392
|
model.total,
|
|
393
393
|
" checks"
|
|
394
394
|
]
|
|
395
|
-
}
|
|
395
|
+
})
|
|
396
396
|
]
|
|
397
|
-
}
|
|
398
|
-
/* @__PURE__ */
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ jsx("ul", {
|
|
399
399
|
className: "absolute-voice-ops-status__surfaces",
|
|
400
|
-
children: model.surfaces.length > 0 ? model.surfaces.map((surface) => /* @__PURE__ */
|
|
400
|
+
children: model.surfaces.length > 0 ? model.surfaces.map((surface) => /* @__PURE__ */ jsxs("li", {
|
|
401
401
|
className: `absolute-voice-ops-status__surface absolute-voice-ops-status__surface--${surface.status}`,
|
|
402
402
|
children: [
|
|
403
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ jsx("span", {
|
|
404
404
|
children: surface.label
|
|
405
|
-
}
|
|
406
|
-
/* @__PURE__ */
|
|
405
|
+
}),
|
|
406
|
+
/* @__PURE__ */ jsx("strong", {
|
|
407
407
|
children: surface.detail
|
|
408
|
-
}
|
|
408
|
+
})
|
|
409
409
|
]
|
|
410
|
-
}, surface.id
|
|
410
|
+
}, surface.id)) : /* @__PURE__ */ jsxs("li", {
|
|
411
411
|
className: "absolute-voice-ops-status__surface",
|
|
412
412
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ jsx("span", {
|
|
414
414
|
children: "Status"
|
|
415
|
-
}
|
|
416
|
-
/* @__PURE__ */
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ jsx("strong", {
|
|
417
417
|
children: "Waiting for first check"
|
|
418
|
-
}
|
|
418
|
+
})
|
|
419
419
|
]
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
model.error ? /* @__PURE__ */
|
|
420
|
+
})
|
|
421
|
+
}),
|
|
422
|
+
model.error ? /* @__PURE__ */ jsx("p", {
|
|
423
423
|
className: "absolute-voice-ops-status__error",
|
|
424
424
|
children: model.error
|
|
425
|
-
}
|
|
426
|
-
model.links.length > 0 ? /* @__PURE__ */
|
|
425
|
+
}) : null,
|
|
426
|
+
model.links.length > 0 ? /* @__PURE__ */ jsx("nav", {
|
|
427
427
|
className: "absolute-voice-ops-status__links",
|
|
428
|
-
children: model.links.slice(0, 4).map((link) => /* @__PURE__ */
|
|
428
|
+
children: model.links.slice(0, 4).map((link) => /* @__PURE__ */ jsx("a", {
|
|
429
429
|
href: link.href,
|
|
430
430
|
children: link.label
|
|
431
|
-
}, `${link.label}:${link.href}
|
|
432
|
-
}
|
|
431
|
+
}, `${link.label}:${link.href}`))
|
|
432
|
+
}) : null
|
|
433
433
|
]
|
|
434
|
-
}
|
|
434
|
+
});
|
|
435
435
|
};
|
|
436
436
|
// src/client/opsActionCenter.ts
|
|
437
437
|
var recordVoiceOpsActionResult = async (result, options = {}) => {
|
|
@@ -733,58 +733,58 @@ var useVoiceOpsActionCenter = (options = {}) => {
|
|
|
733
733
|
};
|
|
734
734
|
|
|
735
735
|
// src/react/VoiceOpsActionCenter.tsx
|
|
736
|
-
import {
|
|
736
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
737
737
|
var VoiceOpsActionCenter = ({
|
|
738
738
|
className,
|
|
739
739
|
...options
|
|
740
740
|
}) => {
|
|
741
741
|
const snapshot = useVoiceOpsActionCenter(options);
|
|
742
742
|
const model = createVoiceOpsActionCenterViewModel(snapshot, options);
|
|
743
|
-
return /* @__PURE__ */
|
|
743
|
+
return /* @__PURE__ */ jsxs2("section", {
|
|
744
744
|
className: [
|
|
745
745
|
"absolute-voice-ops-action-center",
|
|
746
746
|
`absolute-voice-ops-action-center--${model.status}`,
|
|
747
747
|
className
|
|
748
748
|
].filter(Boolean).join(" "),
|
|
749
749
|
children: [
|
|
750
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ jsxs2("header", {
|
|
751
751
|
className: "absolute-voice-ops-action-center__header",
|
|
752
752
|
children: [
|
|
753
|
-
/* @__PURE__ */
|
|
753
|
+
/* @__PURE__ */ jsx2("span", {
|
|
754
754
|
className: "absolute-voice-ops-action-center__eyebrow",
|
|
755
755
|
children: model.title
|
|
756
|
-
}
|
|
757
|
-
/* @__PURE__ */
|
|
756
|
+
}),
|
|
757
|
+
/* @__PURE__ */ jsx2("strong", {
|
|
758
758
|
className: "absolute-voice-ops-action-center__label",
|
|
759
759
|
children: model.label
|
|
760
|
-
}
|
|
760
|
+
})
|
|
761
761
|
]
|
|
762
|
-
}
|
|
763
|
-
/* @__PURE__ */
|
|
762
|
+
}),
|
|
763
|
+
/* @__PURE__ */ jsx2("p", {
|
|
764
764
|
className: "absolute-voice-ops-action-center__description",
|
|
765
765
|
children: model.description
|
|
766
|
-
}
|
|
767
|
-
/* @__PURE__ */
|
|
766
|
+
}),
|
|
767
|
+
/* @__PURE__ */ jsx2("div", {
|
|
768
768
|
className: "absolute-voice-ops-action-center__actions",
|
|
769
|
-
children: model.actions.map((action) => /* @__PURE__ */
|
|
769
|
+
children: model.actions.map((action) => /* @__PURE__ */ jsx2("button", {
|
|
770
770
|
disabled: action.disabled,
|
|
771
771
|
onClick: () => {
|
|
772
772
|
snapshot.run(action.id).catch(() => {});
|
|
773
773
|
},
|
|
774
774
|
type: "button",
|
|
775
775
|
children: action.isRunning ? "Working..." : action.label
|
|
776
|
-
}, action.id
|
|
777
|
-
}
|
|
778
|
-
/* @__PURE__ */
|
|
776
|
+
}, action.id))
|
|
777
|
+
}),
|
|
778
|
+
/* @__PURE__ */ jsx2("p", {
|
|
779
779
|
className: "absolute-voice-ops-action-center__result",
|
|
780
780
|
children: model.lastResultLabel
|
|
781
|
-
}
|
|
782
|
-
model.error ? /* @__PURE__ */
|
|
781
|
+
}),
|
|
782
|
+
model.error ? /* @__PURE__ */ jsx2("p", {
|
|
783
783
|
className: "absolute-voice-ops-action-center__error",
|
|
784
784
|
children: model.error
|
|
785
|
-
}
|
|
785
|
+
}) : null
|
|
786
786
|
]
|
|
787
|
-
}
|
|
787
|
+
});
|
|
788
788
|
};
|
|
789
789
|
// src/client/deliveryRuntime.ts
|
|
790
790
|
var getDefaultActionPath = (path, action, options) => {
|
|
@@ -1083,7 +1083,7 @@ var useVoiceDeliveryRuntime = (path = "/api/voice-delivery-runtime", options = {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
|
|
1085
1085
|
// src/react/VoiceDeliveryRuntime.tsx
|
|
1086
|
-
import {
|
|
1086
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1087
1087
|
var VoiceDeliveryRuntime = ({
|
|
1088
1088
|
className,
|
|
1089
1089
|
includeActions = true,
|
|
@@ -1093,83 +1093,83 @@ var VoiceDeliveryRuntime = ({
|
|
|
1093
1093
|
const snapshot = useVoiceDeliveryRuntime(path, options);
|
|
1094
1094
|
const model = createVoiceDeliveryRuntimeViewModel(snapshot, options);
|
|
1095
1095
|
const hasDeadLetters = model.surfaces.some((surface) => surface.deadLettered > 0);
|
|
1096
|
-
return /* @__PURE__ */
|
|
1096
|
+
return /* @__PURE__ */ jsxs3("section", {
|
|
1097
1097
|
className: [
|
|
1098
1098
|
"absolute-voice-delivery-runtime",
|
|
1099
1099
|
`absolute-voice-delivery-runtime--${model.status}`,
|
|
1100
1100
|
className
|
|
1101
1101
|
].filter(Boolean).join(" "),
|
|
1102
1102
|
children: [
|
|
1103
|
-
/* @__PURE__ */
|
|
1103
|
+
/* @__PURE__ */ jsxs3("header", {
|
|
1104
1104
|
className: "absolute-voice-delivery-runtime__header",
|
|
1105
1105
|
children: [
|
|
1106
|
-
/* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1107
1107
|
className: "absolute-voice-delivery-runtime__eyebrow",
|
|
1108
1108
|
children: model.title
|
|
1109
|
-
}
|
|
1110
|
-
/* @__PURE__ */
|
|
1109
|
+
}),
|
|
1110
|
+
/* @__PURE__ */ jsx3("strong", {
|
|
1111
1111
|
className: "absolute-voice-delivery-runtime__label",
|
|
1112
1112
|
children: model.label
|
|
1113
|
-
}
|
|
1113
|
+
})
|
|
1114
1114
|
]
|
|
1115
|
-
}
|
|
1116
|
-
/* @__PURE__ */
|
|
1115
|
+
}),
|
|
1116
|
+
/* @__PURE__ */ jsx3("p", {
|
|
1117
1117
|
className: "absolute-voice-delivery-runtime__description",
|
|
1118
1118
|
children: model.description
|
|
1119
|
-
}
|
|
1120
|
-
/* @__PURE__ */
|
|
1119
|
+
}),
|
|
1120
|
+
/* @__PURE__ */ jsx3("ul", {
|
|
1121
1121
|
className: "absolute-voice-delivery-runtime__surfaces",
|
|
1122
|
-
children: model.surfaces.map((surface) => /* @__PURE__ */
|
|
1122
|
+
children: model.surfaces.map((surface) => /* @__PURE__ */ jsxs3("li", {
|
|
1123
1123
|
className: `absolute-voice-delivery-runtime__surface absolute-voice-delivery-runtime__surface--${surface.status}`,
|
|
1124
1124
|
children: [
|
|
1125
|
-
/* @__PURE__ */
|
|
1125
|
+
/* @__PURE__ */ jsx3("span", {
|
|
1126
1126
|
children: surface.label
|
|
1127
|
-
}
|
|
1128
|
-
/* @__PURE__ */
|
|
1127
|
+
}),
|
|
1128
|
+
/* @__PURE__ */ jsx3("strong", {
|
|
1129
1129
|
children: surface.detail
|
|
1130
|
-
}
|
|
1131
|
-
/* @__PURE__ */
|
|
1130
|
+
}),
|
|
1131
|
+
/* @__PURE__ */ jsxs3("small", {
|
|
1132
1132
|
children: [
|
|
1133
1133
|
surface.failed,
|
|
1134
1134
|
" failed / ",
|
|
1135
1135
|
surface.deadLettered,
|
|
1136
1136
|
" dead-lettered"
|
|
1137
1137
|
]
|
|
1138
|
-
}
|
|
1138
|
+
})
|
|
1139
1139
|
]
|
|
1140
|
-
}, surface.id
|
|
1141
|
-
}
|
|
1142
|
-
includeActions ? /* @__PURE__ */
|
|
1140
|
+
}, surface.id))
|
|
1141
|
+
}),
|
|
1142
|
+
includeActions ? /* @__PURE__ */ jsxs3("div", {
|
|
1143
1143
|
className: "absolute-voice-delivery-runtime__actions",
|
|
1144
1144
|
children: [
|
|
1145
|
-
/* @__PURE__ */
|
|
1145
|
+
/* @__PURE__ */ jsx3("button", {
|
|
1146
1146
|
disabled: model.actionStatus === "running",
|
|
1147
1147
|
onClick: () => {
|
|
1148
1148
|
snapshot.tick().catch(() => {});
|
|
1149
1149
|
},
|
|
1150
1150
|
type: "button",
|
|
1151
1151
|
children: model.actionStatus === "running" ? "Working..." : "Tick workers"
|
|
1152
|
-
}
|
|
1153
|
-
/* @__PURE__ */
|
|
1152
|
+
}),
|
|
1153
|
+
/* @__PURE__ */ jsx3("button", {
|
|
1154
1154
|
disabled: model.actionStatus === "running" || !hasDeadLetters,
|
|
1155
1155
|
onClick: () => {
|
|
1156
1156
|
snapshot.requeueDeadLetters().catch(() => {});
|
|
1157
1157
|
},
|
|
1158
1158
|
type: "button",
|
|
1159
1159
|
children: "Requeue dead letters"
|
|
1160
|
-
}
|
|
1160
|
+
})
|
|
1161
1161
|
]
|
|
1162
|
-
}
|
|
1163
|
-
model.actionError ? /* @__PURE__ */
|
|
1162
|
+
}) : null,
|
|
1163
|
+
model.actionError ? /* @__PURE__ */ jsx3("p", {
|
|
1164
1164
|
className: "absolute-voice-delivery-runtime__error",
|
|
1165
1165
|
children: model.actionError
|
|
1166
|
-
}
|
|
1167
|
-
model.error ? /* @__PURE__ */
|
|
1166
|
+
}) : null,
|
|
1167
|
+
model.error ? /* @__PURE__ */ jsx3("p", {
|
|
1168
1168
|
className: "absolute-voice-delivery-runtime__error",
|
|
1169
1169
|
children: model.error
|
|
1170
|
-
}
|
|
1170
|
+
}) : null
|
|
1171
1171
|
]
|
|
1172
|
-
}
|
|
1172
|
+
});
|
|
1173
1173
|
};
|
|
1174
1174
|
// src/react/useVoicePlatformCoverage.tsx
|
|
1175
1175
|
import { useEffect as useEffect4, useRef as useRef4, useSyncExternalStore as useSyncExternalStore4 } from "react";
|
|
@@ -1383,7 +1383,7 @@ var renderVoicePlatformCoverageHTML = (snapshot, options = {}) => {
|
|
|
1383
1383
|
};
|
|
1384
1384
|
|
|
1385
1385
|
// src/react/VoicePlatformCoverage.tsx
|
|
1386
|
-
import {
|
|
1386
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1387
1387
|
var VoicePlatformCoverage = ({
|
|
1388
1388
|
className,
|
|
1389
1389
|
path = "/api/voice/platform-coverage",
|
|
@@ -1391,78 +1391,78 @@ var VoicePlatformCoverage = ({
|
|
|
1391
1391
|
}) => {
|
|
1392
1392
|
const snapshot = useVoicePlatformCoverage(path, options);
|
|
1393
1393
|
const model = createVoicePlatformCoverageViewModel(snapshot, options);
|
|
1394
|
-
return /* @__PURE__ */
|
|
1394
|
+
return /* @__PURE__ */ jsxs4("section", {
|
|
1395
1395
|
className: [
|
|
1396
1396
|
"absolute-voice-platform-coverage",
|
|
1397
1397
|
`absolute-voice-platform-coverage--${model.status}`,
|
|
1398
1398
|
className
|
|
1399
1399
|
].filter(Boolean).join(" "),
|
|
1400
1400
|
children: [
|
|
1401
|
-
/* @__PURE__ */
|
|
1401
|
+
/* @__PURE__ */ jsxs4("header", {
|
|
1402
1402
|
className: "absolute-voice-platform-coverage__header",
|
|
1403
1403
|
children: [
|
|
1404
|
-
/* @__PURE__ */
|
|
1404
|
+
/* @__PURE__ */ jsx4("span", {
|
|
1405
1405
|
className: "absolute-voice-platform-coverage__eyebrow",
|
|
1406
1406
|
children: model.title
|
|
1407
|
-
}
|
|
1408
|
-
/* @__PURE__ */
|
|
1407
|
+
}),
|
|
1408
|
+
/* @__PURE__ */ jsx4("strong", {
|
|
1409
1409
|
className: "absolute-voice-platform-coverage__label",
|
|
1410
1410
|
children: model.label
|
|
1411
|
-
}
|
|
1411
|
+
})
|
|
1412
1412
|
]
|
|
1413
|
-
}
|
|
1414
|
-
/* @__PURE__ */
|
|
1413
|
+
}),
|
|
1414
|
+
/* @__PURE__ */ jsx4("p", {
|
|
1415
1415
|
className: "absolute-voice-platform-coverage__description",
|
|
1416
1416
|
children: model.description
|
|
1417
|
-
}
|
|
1418
|
-
model.surfaces.length ? /* @__PURE__ */
|
|
1417
|
+
}),
|
|
1418
|
+
model.surfaces.length ? /* @__PURE__ */ jsx4("div", {
|
|
1419
1419
|
className: "absolute-voice-platform-coverage__surfaces",
|
|
1420
|
-
children: model.surfaces.map((surface) => /* @__PURE__ */
|
|
1420
|
+
children: model.surfaces.map((surface) => /* @__PURE__ */ jsxs4("article", {
|
|
1421
1421
|
className: [
|
|
1422
1422
|
"absolute-voice-platform-coverage__surface",
|
|
1423
1423
|
`absolute-voice-platform-coverage__surface--${surface.status}`
|
|
1424
1424
|
].join(" "),
|
|
1425
1425
|
children: [
|
|
1426
|
-
/* @__PURE__ */
|
|
1426
|
+
/* @__PURE__ */ jsxs4("header", {
|
|
1427
1427
|
children: [
|
|
1428
|
-
/* @__PURE__ */
|
|
1428
|
+
/* @__PURE__ */ jsx4("strong", {
|
|
1429
1429
|
children: surface.label
|
|
1430
|
-
}
|
|
1431
|
-
/* @__PURE__ */
|
|
1430
|
+
}),
|
|
1431
|
+
/* @__PURE__ */ jsx4("span", {
|
|
1432
1432
|
children: surface.status
|
|
1433
|
-
}
|
|
1433
|
+
})
|
|
1434
1434
|
]
|
|
1435
|
-
}
|
|
1436
|
-
/* @__PURE__ */
|
|
1435
|
+
}),
|
|
1436
|
+
/* @__PURE__ */ jsx4("p", {
|
|
1437
1437
|
children: surface.detail
|
|
1438
|
-
}
|
|
1439
|
-
/* @__PURE__ */
|
|
1438
|
+
}),
|
|
1439
|
+
/* @__PURE__ */ jsxs4("small", {
|
|
1440
1440
|
children: [
|
|
1441
1441
|
surface.evidence.filter((item) => item.ok).length,
|
|
1442
1442
|
"/",
|
|
1443
1443
|
surface.evidence.length,
|
|
1444
1444
|
" evidence checks passing"
|
|
1445
1445
|
]
|
|
1446
|
-
}
|
|
1446
|
+
})
|
|
1447
1447
|
]
|
|
1448
|
-
}, surface.surface
|
|
1449
|
-
}
|
|
1448
|
+
}, surface.surface))
|
|
1449
|
+
}) : /* @__PURE__ */ jsx4("p", {
|
|
1450
1450
|
className: "absolute-voice-platform-coverage__empty",
|
|
1451
1451
|
children: model.error ?? "Run the proof pack to populate platform coverage evidence."
|
|
1452
|
-
}
|
|
1453
|
-
model.links.length ? /* @__PURE__ */
|
|
1452
|
+
}),
|
|
1453
|
+
model.links.length ? /* @__PURE__ */ jsx4("p", {
|
|
1454
1454
|
className: "absolute-voice-platform-coverage__links",
|
|
1455
|
-
children: model.links.map((link) => /* @__PURE__ */
|
|
1455
|
+
children: model.links.map((link) => /* @__PURE__ */ jsx4("a", {
|
|
1456
1456
|
href: link.href,
|
|
1457
1457
|
children: link.label
|
|
1458
|
-
}, link.href
|
|
1459
|
-
}
|
|
1460
|
-
model.error ? /* @__PURE__ */
|
|
1458
|
+
}, link.href))
|
|
1459
|
+
}) : null,
|
|
1460
|
+
model.error ? /* @__PURE__ */ jsx4("p", {
|
|
1461
1461
|
className: "absolute-voice-platform-coverage__error",
|
|
1462
1462
|
children: model.error
|
|
1463
|
-
}
|
|
1463
|
+
}) : null
|
|
1464
1464
|
]
|
|
1465
|
-
}
|
|
1465
|
+
});
|
|
1466
1466
|
};
|
|
1467
1467
|
// src/react/useVoiceProofTrends.tsx
|
|
1468
1468
|
import { useEffect as useEffect5, useRef as useRef5, useSyncExternalStore as useSyncExternalStore5 } from "react";
|
|
@@ -6340,7 +6340,7 @@ var renderVoiceProofTrendsHTML = (snapshot, options = {}) => {
|
|
|
6340
6340
|
};
|
|
6341
6341
|
|
|
6342
6342
|
// src/react/VoiceProofTrends.tsx
|
|
6343
|
-
import {
|
|
6343
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
6344
6344
|
var VoiceProofTrends = ({
|
|
6345
6345
|
className,
|
|
6346
6346
|
path = "/api/voice/proof-trends",
|
|
@@ -6348,59 +6348,59 @@ var VoiceProofTrends = ({
|
|
|
6348
6348
|
}) => {
|
|
6349
6349
|
const snapshot = useVoiceProofTrends(path, options);
|
|
6350
6350
|
const model = createVoiceProofTrendsViewModel(snapshot, options);
|
|
6351
|
-
return /* @__PURE__ */
|
|
6351
|
+
return /* @__PURE__ */ jsxs5("section", {
|
|
6352
6352
|
className: [
|
|
6353
6353
|
"absolute-voice-proof-trends",
|
|
6354
6354
|
`absolute-voice-proof-trends--${model.status}`,
|
|
6355
6355
|
className
|
|
6356
6356
|
].filter(Boolean).join(" "),
|
|
6357
6357
|
children: [
|
|
6358
|
-
/* @__PURE__ */
|
|
6358
|
+
/* @__PURE__ */ jsxs5("header", {
|
|
6359
6359
|
className: "absolute-voice-proof-trends__header",
|
|
6360
6360
|
children: [
|
|
6361
|
-
/* @__PURE__ */
|
|
6361
|
+
/* @__PURE__ */ jsx5("span", {
|
|
6362
6362
|
className: "absolute-voice-proof-trends__eyebrow",
|
|
6363
6363
|
children: model.title
|
|
6364
|
-
}
|
|
6365
|
-
/* @__PURE__ */
|
|
6364
|
+
}),
|
|
6365
|
+
/* @__PURE__ */ jsx5("strong", {
|
|
6366
6366
|
className: "absolute-voice-proof-trends__label",
|
|
6367
6367
|
children: model.label
|
|
6368
|
-
}
|
|
6368
|
+
})
|
|
6369
6369
|
]
|
|
6370
|
-
}
|
|
6371
|
-
/* @__PURE__ */
|
|
6370
|
+
}),
|
|
6371
|
+
/* @__PURE__ */ jsx5("p", {
|
|
6372
6372
|
className: "absolute-voice-proof-trends__description",
|
|
6373
6373
|
children: model.description
|
|
6374
|
-
}
|
|
6375
|
-
model.metrics.length ? /* @__PURE__ */
|
|
6374
|
+
}),
|
|
6375
|
+
model.metrics.length ? /* @__PURE__ */ jsx5("div", {
|
|
6376
6376
|
className: "absolute-voice-proof-trends__metrics",
|
|
6377
|
-
children: model.metrics.map((metric) => /* @__PURE__ */
|
|
6377
|
+
children: model.metrics.map((metric) => /* @__PURE__ */ jsxs5("article", {
|
|
6378
6378
|
children: [
|
|
6379
|
-
/* @__PURE__ */
|
|
6379
|
+
/* @__PURE__ */ jsx5("span", {
|
|
6380
6380
|
children: metric.label
|
|
6381
|
-
}
|
|
6382
|
-
/* @__PURE__ */
|
|
6381
|
+
}),
|
|
6382
|
+
/* @__PURE__ */ jsx5("strong", {
|
|
6383
6383
|
children: metric.value
|
|
6384
|
-
}
|
|
6384
|
+
})
|
|
6385
6385
|
]
|
|
6386
|
-
}, metric.label
|
|
6387
|
-
}
|
|
6386
|
+
}, metric.label))
|
|
6387
|
+
}) : /* @__PURE__ */ jsx5("p", {
|
|
6388
6388
|
className: "absolute-voice-proof-trends__empty",
|
|
6389
6389
|
children: model.error ?? "Run the sustained proof trends script to populate evidence."
|
|
6390
|
-
}
|
|
6391
|
-
model.links.length ? /* @__PURE__ */
|
|
6390
|
+
}),
|
|
6391
|
+
model.links.length ? /* @__PURE__ */ jsx5("p", {
|
|
6392
6392
|
className: "absolute-voice-proof-trends__links",
|
|
6393
|
-
children: model.links.map((link) => /* @__PURE__ */
|
|
6393
|
+
children: model.links.map((link) => /* @__PURE__ */ jsx5("a", {
|
|
6394
6394
|
href: link.href,
|
|
6395
6395
|
children: link.label
|
|
6396
|
-
}, link.href
|
|
6397
|
-
}
|
|
6398
|
-
model.error ? /* @__PURE__ */
|
|
6396
|
+
}, link.href))
|
|
6397
|
+
}) : null,
|
|
6398
|
+
model.error ? /* @__PURE__ */ jsx5("p", {
|
|
6399
6399
|
className: "absolute-voice-proof-trends__error",
|
|
6400
6400
|
children: model.error
|
|
6401
|
-
}
|
|
6401
|
+
}) : null
|
|
6402
6402
|
]
|
|
6403
|
-
}
|
|
6403
|
+
});
|
|
6404
6404
|
};
|
|
6405
6405
|
// src/client/reconnectProfileEvidence.ts
|
|
6406
6406
|
var createVoiceReconnectProfileEvidenceStore = (path = "/api/voice/reconnect-profile-evidence", options = {}) => {
|
|
@@ -6627,7 +6627,7 @@ var useVoiceReconnectProfileEvidence = (path = "/api/voice/reconnect-profile-evi
|
|
|
6627
6627
|
};
|
|
6628
6628
|
|
|
6629
6629
|
// src/react/VoiceReconnectProfileEvidence.tsx
|
|
6630
|
-
import {
|
|
6630
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
6631
6631
|
var VoiceReconnectProfileEvidence = ({
|
|
6632
6632
|
className,
|
|
6633
6633
|
path = "/api/voice/reconnect-profile-evidence",
|
|
@@ -6635,44 +6635,44 @@ var VoiceReconnectProfileEvidence = ({
|
|
|
6635
6635
|
}) => {
|
|
6636
6636
|
const snapshot = useVoiceReconnectProfileEvidence(path, options);
|
|
6637
6637
|
const model = createVoiceReconnectProfileEvidenceViewModel(snapshot, options);
|
|
6638
|
-
return /* @__PURE__ */
|
|
6638
|
+
return /* @__PURE__ */ jsxs6("section", {
|
|
6639
6639
|
className: [
|
|
6640
6640
|
"absolute-voice-reconnect-evidence",
|
|
6641
6641
|
`absolute-voice-reconnect-evidence--${model.status}`,
|
|
6642
6642
|
className
|
|
6643
6643
|
].filter(Boolean).join(" "),
|
|
6644
6644
|
children: [
|
|
6645
|
-
/* @__PURE__ */
|
|
6645
|
+
/* @__PURE__ */ jsxs6("header", {
|
|
6646
6646
|
className: "absolute-voice-reconnect-evidence__header",
|
|
6647
6647
|
children: [
|
|
6648
|
-
/* @__PURE__ */
|
|
6648
|
+
/* @__PURE__ */ jsx6("span", {
|
|
6649
6649
|
className: "absolute-voice-reconnect-evidence__eyebrow",
|
|
6650
6650
|
children: model.title
|
|
6651
|
-
}
|
|
6652
|
-
/* @__PURE__ */
|
|
6651
|
+
}),
|
|
6652
|
+
/* @__PURE__ */ jsx6("strong", {
|
|
6653
6653
|
className: "absolute-voice-reconnect-evidence__label",
|
|
6654
6654
|
children: model.label
|
|
6655
|
-
}
|
|
6655
|
+
})
|
|
6656
6656
|
]
|
|
6657
|
-
}
|
|
6658
|
-
/* @__PURE__ */
|
|
6657
|
+
}),
|
|
6658
|
+
/* @__PURE__ */ jsx6("p", {
|
|
6659
6659
|
className: "absolute-voice-reconnect-evidence__description",
|
|
6660
6660
|
children: model.description
|
|
6661
|
-
}
|
|
6662
|
-
/* @__PURE__ */
|
|
6661
|
+
}),
|
|
6662
|
+
/* @__PURE__ */ jsx6("div", {
|
|
6663
6663
|
className: "absolute-voice-reconnect-evidence__metrics",
|
|
6664
|
-
children: model.metrics.map((metric) => /* @__PURE__ */
|
|
6664
|
+
children: model.metrics.map((metric) => /* @__PURE__ */ jsxs6("article", {
|
|
6665
6665
|
children: [
|
|
6666
|
-
/* @__PURE__ */
|
|
6666
|
+
/* @__PURE__ */ jsx6("span", {
|
|
6667
6667
|
children: metric.label
|
|
6668
|
-
}
|
|
6669
|
-
/* @__PURE__ */
|
|
6668
|
+
}),
|
|
6669
|
+
/* @__PURE__ */ jsx6("strong", {
|
|
6670
6670
|
children: metric.value
|
|
6671
|
-
}
|
|
6671
|
+
})
|
|
6672
6672
|
]
|
|
6673
|
-
}, metric.label
|
|
6674
|
-
}
|
|
6675
|
-
model.latest ? /* @__PURE__ */
|
|
6673
|
+
}, metric.label))
|
|
6674
|
+
}),
|
|
6675
|
+
model.latest ? /* @__PURE__ */ jsxs6("p", {
|
|
6676
6676
|
className: "absolute-voice-reconnect-evidence__latest",
|
|
6677
6677
|
children: [
|
|
6678
6678
|
"Latest ",
|
|
@@ -6683,23 +6683,23 @@ var VoiceReconnectProfileEvidence = ({
|
|
|
6683
6683
|
" ",
|
|
6684
6684
|
model.latest.surfaces
|
|
6685
6685
|
]
|
|
6686
|
-
}
|
|
6686
|
+
}) : /* @__PURE__ */ jsx6("p", {
|
|
6687
6687
|
className: "absolute-voice-reconnect-evidence__empty",
|
|
6688
6688
|
children: "No persisted reconnect profile evidence yet."
|
|
6689
|
-
}
|
|
6690
|
-
model.links.length ? /* @__PURE__ */
|
|
6689
|
+
}),
|
|
6690
|
+
model.links.length ? /* @__PURE__ */ jsx6("p", {
|
|
6691
6691
|
className: "absolute-voice-reconnect-evidence__links",
|
|
6692
|
-
children: model.links.map((link) => /* @__PURE__ */
|
|
6692
|
+
children: model.links.map((link) => /* @__PURE__ */ jsx6("a", {
|
|
6693
6693
|
href: link.href,
|
|
6694
6694
|
children: link.label
|
|
6695
|
-
}, link.href
|
|
6696
|
-
}
|
|
6697
|
-
model.error ? /* @__PURE__ */
|
|
6695
|
+
}, link.href))
|
|
6696
|
+
}) : null,
|
|
6697
|
+
model.error ? /* @__PURE__ */ jsx6("p", {
|
|
6698
6698
|
className: "absolute-voice-reconnect-evidence__error",
|
|
6699
6699
|
children: model.error
|
|
6700
|
-
}
|
|
6700
|
+
}) : null
|
|
6701
6701
|
]
|
|
6702
|
-
}
|
|
6702
|
+
});
|
|
6703
6703
|
};
|
|
6704
6704
|
// src/client/callDebugger.ts
|
|
6705
6705
|
var createVoiceCallDebuggerStore = (path, options = {}) => {
|
|
@@ -6914,7 +6914,7 @@ var useVoiceCallDebugger = (path, options = {}) => {
|
|
|
6914
6914
|
};
|
|
6915
6915
|
|
|
6916
6916
|
// src/react/VoiceCallDebuggerLaunch.tsx
|
|
6917
|
-
import {
|
|
6917
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
6918
6918
|
var VoiceCallDebuggerLaunch = ({
|
|
6919
6919
|
className,
|
|
6920
6920
|
path,
|
|
@@ -6922,56 +6922,56 @@ var VoiceCallDebuggerLaunch = ({
|
|
|
6922
6922
|
}) => {
|
|
6923
6923
|
const state = useVoiceCallDebugger(path, options);
|
|
6924
6924
|
const model = createVoiceCallDebuggerLaunchViewModel(path, state, options);
|
|
6925
|
-
return /* @__PURE__ */
|
|
6925
|
+
return /* @__PURE__ */ jsxs7("section", {
|
|
6926
6926
|
className: [
|
|
6927
6927
|
"absolute-voice-call-debugger-launch",
|
|
6928
6928
|
`absolute-voice-call-debugger-launch--${model.status}`,
|
|
6929
6929
|
className
|
|
6930
6930
|
].filter(Boolean).join(" "),
|
|
6931
6931
|
children: [
|
|
6932
|
-
/* @__PURE__ */
|
|
6932
|
+
/* @__PURE__ */ jsxs7("header", {
|
|
6933
6933
|
className: "absolute-voice-call-debugger-launch__header",
|
|
6934
6934
|
children: [
|
|
6935
|
-
/* @__PURE__ */
|
|
6935
|
+
/* @__PURE__ */ jsx7("span", {
|
|
6936
6936
|
className: "absolute-voice-call-debugger-launch__eyebrow",
|
|
6937
6937
|
children: model.title
|
|
6938
|
-
}
|
|
6939
|
-
/* @__PURE__ */
|
|
6938
|
+
}),
|
|
6939
|
+
/* @__PURE__ */ jsx7("strong", {
|
|
6940
6940
|
className: "absolute-voice-call-debugger-launch__label",
|
|
6941
6941
|
children: model.label
|
|
6942
|
-
}
|
|
6942
|
+
})
|
|
6943
6943
|
]
|
|
6944
|
-
}
|
|
6945
|
-
/* @__PURE__ */
|
|
6944
|
+
}),
|
|
6945
|
+
/* @__PURE__ */ jsx7("p", {
|
|
6946
6946
|
className: "absolute-voice-call-debugger-launch__description",
|
|
6947
6947
|
children: model.description
|
|
6948
|
-
}
|
|
6949
|
-
/* @__PURE__ */
|
|
6948
|
+
}),
|
|
6949
|
+
/* @__PURE__ */ jsx7("a", {
|
|
6950
6950
|
className: "absolute-voice-call-debugger-launch__link",
|
|
6951
6951
|
href: model.href,
|
|
6952
6952
|
children: options.linkLabel ?? "Open debugger"
|
|
6953
|
-
}
|
|
6954
|
-
model.rows.length ? /* @__PURE__ */
|
|
6955
|
-
children: model.rows.map((row) => /* @__PURE__ */
|
|
6953
|
+
}),
|
|
6954
|
+
model.rows.length ? /* @__PURE__ */ jsx7("dl", {
|
|
6955
|
+
children: model.rows.map((row) => /* @__PURE__ */ jsxs7("div", {
|
|
6956
6956
|
children: [
|
|
6957
|
-
/* @__PURE__ */
|
|
6957
|
+
/* @__PURE__ */ jsx7("dt", {
|
|
6958
6958
|
children: row.label
|
|
6959
|
-
}
|
|
6960
|
-
/* @__PURE__ */
|
|
6959
|
+
}),
|
|
6960
|
+
/* @__PURE__ */ jsx7("dd", {
|
|
6961
6961
|
children: row.value
|
|
6962
|
-
}
|
|
6962
|
+
})
|
|
6963
6963
|
]
|
|
6964
|
-
}, row.label
|
|
6965
|
-
}
|
|
6964
|
+
}, row.label))
|
|
6965
|
+
}) : /* @__PURE__ */ jsx7("p", {
|
|
6966
6966
|
className: "absolute-voice-call-debugger-launch__empty",
|
|
6967
6967
|
children: "Load a call debugger report to see the latest support artifact."
|
|
6968
|
-
}
|
|
6969
|
-
model.error ? /* @__PURE__ */
|
|
6968
|
+
}),
|
|
6969
|
+
model.error ? /* @__PURE__ */ jsx7("p", {
|
|
6970
6970
|
className: "absolute-voice-call-debugger-launch__error",
|
|
6971
6971
|
children: model.error
|
|
6972
|
-
}
|
|
6972
|
+
}) : null
|
|
6973
6973
|
]
|
|
6974
|
-
}
|
|
6974
|
+
});
|
|
6975
6975
|
};
|
|
6976
6976
|
// src/client/sessionSnapshot.ts
|
|
6977
6977
|
var withTurnId = (path, turnId) => {
|
|
@@ -7228,7 +7228,7 @@ var useVoiceSessionSnapshot = (path, options = {}) => {
|
|
|
7228
7228
|
};
|
|
7229
7229
|
|
|
7230
7230
|
// src/react/VoiceSessionSnapshot.tsx
|
|
7231
|
-
import {
|
|
7231
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
7232
7232
|
var VoiceSessionSnapshot = ({
|
|
7233
7233
|
className,
|
|
7234
7234
|
path,
|
|
@@ -7236,57 +7236,57 @@ var VoiceSessionSnapshot = ({
|
|
|
7236
7236
|
}) => {
|
|
7237
7237
|
const state = useVoiceSessionSnapshot(path, options);
|
|
7238
7238
|
const model = createVoiceSessionSnapshotViewModel(state, options);
|
|
7239
|
-
return /* @__PURE__ */
|
|
7239
|
+
return /* @__PURE__ */ jsxs8("section", {
|
|
7240
7240
|
className: [
|
|
7241
7241
|
"absolute-voice-session-snapshot",
|
|
7242
7242
|
`absolute-voice-session-snapshot--${model.status}`,
|
|
7243
7243
|
className
|
|
7244
7244
|
].filter(Boolean).join(" "),
|
|
7245
7245
|
children: [
|
|
7246
|
-
/* @__PURE__ */
|
|
7246
|
+
/* @__PURE__ */ jsxs8("header", {
|
|
7247
7247
|
className: "absolute-voice-session-snapshot__header",
|
|
7248
7248
|
children: [
|
|
7249
|
-
/* @__PURE__ */
|
|
7249
|
+
/* @__PURE__ */ jsx8("span", {
|
|
7250
7250
|
className: "absolute-voice-session-snapshot__eyebrow",
|
|
7251
7251
|
children: model.title
|
|
7252
|
-
}
|
|
7253
|
-
/* @__PURE__ */
|
|
7252
|
+
}),
|
|
7253
|
+
/* @__PURE__ */ jsx8("strong", {
|
|
7254
7254
|
className: "absolute-voice-session-snapshot__label",
|
|
7255
7255
|
children: model.label
|
|
7256
|
-
}
|
|
7256
|
+
})
|
|
7257
7257
|
]
|
|
7258
|
-
}
|
|
7259
|
-
/* @__PURE__ */
|
|
7258
|
+
}),
|
|
7259
|
+
/* @__PURE__ */ jsx8("p", {
|
|
7260
7260
|
className: "absolute-voice-session-snapshot__description",
|
|
7261
7261
|
children: model.description
|
|
7262
|
-
}
|
|
7263
|
-
model.showDownload ? /* @__PURE__ */
|
|
7262
|
+
}),
|
|
7263
|
+
model.showDownload ? /* @__PURE__ */ jsx8("button", {
|
|
7264
7264
|
className: "absolute-voice-session-snapshot__download",
|
|
7265
7265
|
onClick: () => state.download(),
|
|
7266
7266
|
type: "button",
|
|
7267
7267
|
children: options.downloadLabel ?? "Download snapshot"
|
|
7268
|
-
}
|
|
7269
|
-
model.rows.length ? /* @__PURE__ */
|
|
7270
|
-
children: model.rows.map((row) => /* @__PURE__ */
|
|
7268
|
+
}) : null,
|
|
7269
|
+
model.rows.length ? /* @__PURE__ */ jsx8("dl", {
|
|
7270
|
+
children: model.rows.map((row) => /* @__PURE__ */ jsxs8("div", {
|
|
7271
7271
|
children: [
|
|
7272
|
-
/* @__PURE__ */
|
|
7272
|
+
/* @__PURE__ */ jsx8("dt", {
|
|
7273
7273
|
children: row.label
|
|
7274
|
-
}
|
|
7275
|
-
/* @__PURE__ */
|
|
7274
|
+
}),
|
|
7275
|
+
/* @__PURE__ */ jsx8("dd", {
|
|
7276
7276
|
children: row.value
|
|
7277
|
-
}
|
|
7277
|
+
})
|
|
7278
7278
|
]
|
|
7279
|
-
}, row.label
|
|
7280
|
-
}
|
|
7279
|
+
}, row.label))
|
|
7280
|
+
}) : /* @__PURE__ */ jsx8("p", {
|
|
7281
7281
|
className: "absolute-voice-session-snapshot__empty",
|
|
7282
7282
|
children: "Load a session snapshot to see support diagnostics."
|
|
7283
|
-
}
|
|
7284
|
-
model.error ? /* @__PURE__ */
|
|
7283
|
+
}),
|
|
7284
|
+
model.error ? /* @__PURE__ */ jsx8("p", {
|
|
7285
7285
|
className: "absolute-voice-session-snapshot__error",
|
|
7286
7286
|
children: model.error
|
|
7287
|
-
}
|
|
7287
|
+
}) : null
|
|
7288
7288
|
]
|
|
7289
|
-
}
|
|
7289
|
+
});
|
|
7290
7290
|
};
|
|
7291
7291
|
// src/client/sessionObservability.ts
|
|
7292
7292
|
var createVoiceSessionObservabilityStore = (path, options = {}) => {
|
|
@@ -7479,7 +7479,7 @@ var useVoiceSessionObservability = (path = "/api/voice/session-observability/lat
|
|
|
7479
7479
|
};
|
|
7480
7480
|
|
|
7481
7481
|
// src/react/VoiceSessionObservability.tsx
|
|
7482
|
-
import {
|
|
7482
|
+
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
7483
7483
|
var VoiceSessionObservability = ({
|
|
7484
7484
|
className,
|
|
7485
7485
|
path = "/api/voice/session-observability/latest",
|
|
@@ -7487,71 +7487,71 @@ var VoiceSessionObservability = ({
|
|
|
7487
7487
|
}) => {
|
|
7488
7488
|
const snapshot = useVoiceSessionObservability(path, options);
|
|
7489
7489
|
const model = createVoiceSessionObservabilityViewModel(snapshot, options);
|
|
7490
|
-
return /* @__PURE__ */
|
|
7490
|
+
return /* @__PURE__ */ jsxs9("section", {
|
|
7491
7491
|
className: [
|
|
7492
7492
|
"absolute-voice-session-observability",
|
|
7493
7493
|
`absolute-voice-session-observability--${model.status}`,
|
|
7494
7494
|
className
|
|
7495
7495
|
].filter(Boolean).join(" "),
|
|
7496
7496
|
children: [
|
|
7497
|
-
/* @__PURE__ */
|
|
7497
|
+
/* @__PURE__ */ jsxs9("header", {
|
|
7498
7498
|
className: "absolute-voice-session-observability__header",
|
|
7499
7499
|
children: [
|
|
7500
|
-
/* @__PURE__ */
|
|
7500
|
+
/* @__PURE__ */ jsx9("span", {
|
|
7501
7501
|
className: "absolute-voice-session-observability__eyebrow",
|
|
7502
7502
|
children: model.title
|
|
7503
|
-
}
|
|
7504
|
-
/* @__PURE__ */
|
|
7503
|
+
}),
|
|
7504
|
+
/* @__PURE__ */ jsx9("strong", {
|
|
7505
7505
|
className: "absolute-voice-session-observability__label",
|
|
7506
7506
|
children: model.label
|
|
7507
|
-
}
|
|
7507
|
+
})
|
|
7508
7508
|
]
|
|
7509
|
-
}
|
|
7510
|
-
/* @__PURE__ */
|
|
7509
|
+
}),
|
|
7510
|
+
/* @__PURE__ */ jsx9("p", {
|
|
7511
7511
|
className: "absolute-voice-session-observability__description",
|
|
7512
7512
|
children: model.description
|
|
7513
|
-
}
|
|
7514
|
-
model.sessionId ? /* @__PURE__ */
|
|
7513
|
+
}),
|
|
7514
|
+
model.sessionId ? /* @__PURE__ */ jsx9("p", {
|
|
7515
7515
|
className: "absolute-voice-session-observability__session",
|
|
7516
7516
|
children: model.sessionId
|
|
7517
|
-
}
|
|
7518
|
-
model.links.length ? /* @__PURE__ */
|
|
7517
|
+
}) : null,
|
|
7518
|
+
model.links.length ? /* @__PURE__ */ jsx9("p", {
|
|
7519
7519
|
className: "absolute-voice-session-observability__actions",
|
|
7520
|
-
children: model.links.map((link) => /* @__PURE__ */
|
|
7520
|
+
children: model.links.map((link) => /* @__PURE__ */ jsx9("a", {
|
|
7521
7521
|
href: link.href,
|
|
7522
7522
|
children: link.label
|
|
7523
|
-
}, `${link.rel}:${link.href}
|
|
7524
|
-
}
|
|
7525
|
-
model.turns.length ? /* @__PURE__ */
|
|
7523
|
+
}, `${link.rel}:${link.href}`))
|
|
7524
|
+
}) : null,
|
|
7525
|
+
model.turns.length ? /* @__PURE__ */ jsx9("div", {
|
|
7526
7526
|
className: "absolute-voice-session-observability__turns",
|
|
7527
|
-
children: model.turns.map((turn) => /* @__PURE__ */
|
|
7527
|
+
children: model.turns.map((turn) => /* @__PURE__ */ jsxs9("article", {
|
|
7528
7528
|
className: "absolute-voice-session-observability__turn",
|
|
7529
7529
|
children: [
|
|
7530
|
-
/* @__PURE__ */
|
|
7530
|
+
/* @__PURE__ */ jsxs9("header", {
|
|
7531
7531
|
children: [
|
|
7532
|
-
/* @__PURE__ */
|
|
7532
|
+
/* @__PURE__ */ jsx9("strong", {
|
|
7533
7533
|
children: turn.turnId
|
|
7534
|
-
}
|
|
7535
|
-
/* @__PURE__ */
|
|
7534
|
+
}),
|
|
7535
|
+
/* @__PURE__ */ jsx9("span", {
|
|
7536
7536
|
children: turn.durationLabel
|
|
7537
|
-
}
|
|
7537
|
+
})
|
|
7538
7538
|
]
|
|
7539
|
-
}
|
|
7540
|
-
/* @__PURE__ */
|
|
7539
|
+
}),
|
|
7540
|
+
/* @__PURE__ */ jsx9("p", {
|
|
7541
7541
|
children: turn.label
|
|
7542
|
-
}
|
|
7542
|
+
})
|
|
7543
7543
|
]
|
|
7544
|
-
}, turn.turnId
|
|
7545
|
-
}
|
|
7544
|
+
}, turn.turnId))
|
|
7545
|
+
}) : /* @__PURE__ */ jsx9("p", {
|
|
7546
7546
|
className: "absolute-voice-session-observability__empty",
|
|
7547
7547
|
children: "Open a voice session to see turn waterfalls."
|
|
7548
|
-
}
|
|
7549
|
-
model.error ? /* @__PURE__ */
|
|
7548
|
+
}),
|
|
7549
|
+
model.error ? /* @__PURE__ */ jsx9("p", {
|
|
7550
7550
|
className: "absolute-voice-session-observability__error",
|
|
7551
7551
|
children: model.error
|
|
7552
|
-
}
|
|
7552
|
+
}) : null
|
|
7553
7553
|
]
|
|
7554
|
-
}
|
|
7554
|
+
});
|
|
7555
7555
|
};
|
|
7556
7556
|
// src/client/profileComparison.ts
|
|
7557
7557
|
var createVoiceProfileComparisonStore = (path = "/api/voice/real-call-profile-history", options = {}) => {
|
|
@@ -7755,7 +7755,7 @@ var useVoiceProfileComparison = (path = "/api/voice/real-call-profile-history",
|
|
|
7755
7755
|
};
|
|
7756
7756
|
|
|
7757
7757
|
// src/react/VoiceProfileComparison.tsx
|
|
7758
|
-
import {
|
|
7758
|
+
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
7759
7759
|
var VoiceProfileComparison = ({
|
|
7760
7760
|
className,
|
|
7761
7761
|
path = "/api/voice/real-call-profile-history",
|
|
@@ -7763,82 +7763,82 @@ var VoiceProfileComparison = ({
|
|
|
7763
7763
|
}) => {
|
|
7764
7764
|
const snapshot = useVoiceProfileComparison(path, options);
|
|
7765
7765
|
const model = createVoiceProfileComparisonViewModel(snapshot, options);
|
|
7766
|
-
return /* @__PURE__ */
|
|
7766
|
+
return /* @__PURE__ */ jsxs10("section", {
|
|
7767
7767
|
className: [
|
|
7768
7768
|
"absolute-voice-profile-comparison",
|
|
7769
7769
|
`absolute-voice-profile-comparison--${model.status}`,
|
|
7770
7770
|
className
|
|
7771
7771
|
].filter(Boolean).join(" "),
|
|
7772
7772
|
children: [
|
|
7773
|
-
/* @__PURE__ */
|
|
7773
|
+
/* @__PURE__ */ jsxs10("header", {
|
|
7774
7774
|
className: "absolute-voice-profile-comparison__header",
|
|
7775
7775
|
children: [
|
|
7776
|
-
/* @__PURE__ */
|
|
7776
|
+
/* @__PURE__ */ jsx10("span", {
|
|
7777
7777
|
className: "absolute-voice-profile-comparison__eyebrow",
|
|
7778
7778
|
children: model.title
|
|
7779
|
-
}
|
|
7780
|
-
/* @__PURE__ */
|
|
7779
|
+
}),
|
|
7780
|
+
/* @__PURE__ */ jsx10("strong", {
|
|
7781
7781
|
className: "absolute-voice-profile-comparison__label",
|
|
7782
7782
|
children: model.label
|
|
7783
|
-
}
|
|
7783
|
+
})
|
|
7784
7784
|
]
|
|
7785
|
-
}
|
|
7786
|
-
/* @__PURE__ */
|
|
7785
|
+
}),
|
|
7786
|
+
/* @__PURE__ */ jsx10("p", {
|
|
7787
7787
|
className: "absolute-voice-profile-comparison__description",
|
|
7788
7788
|
children: model.description
|
|
7789
|
-
}
|
|
7790
|
-
model.profiles.length ? /* @__PURE__ */
|
|
7789
|
+
}),
|
|
7790
|
+
model.profiles.length ? /* @__PURE__ */ jsx10("div", {
|
|
7791
7791
|
className: "absolute-voice-profile-comparison__profiles",
|
|
7792
|
-
children: model.profiles.map((profile) => /* @__PURE__ */
|
|
7792
|
+
children: model.profiles.map((profile) => /* @__PURE__ */ jsxs10("article", {
|
|
7793
7793
|
className: `absolute-voice-profile-comparison__profile absolute-voice-profile-comparison__profile--${profile.status}`,
|
|
7794
7794
|
children: [
|
|
7795
|
-
/* @__PURE__ */
|
|
7795
|
+
/* @__PURE__ */ jsxs10("header", {
|
|
7796
7796
|
children: [
|
|
7797
|
-
/* @__PURE__ */
|
|
7797
|
+
/* @__PURE__ */ jsx10("span", {
|
|
7798
7798
|
children: profile.status
|
|
7799
|
-
}
|
|
7800
|
-
/* @__PURE__ */
|
|
7799
|
+
}),
|
|
7800
|
+
/* @__PURE__ */ jsx10("strong", {
|
|
7801
7801
|
children: profile.label
|
|
7802
|
-
}
|
|
7802
|
+
})
|
|
7803
7803
|
]
|
|
7804
|
-
}
|
|
7805
|
-
/* @__PURE__ */
|
|
7804
|
+
}),
|
|
7805
|
+
/* @__PURE__ */ jsx10("p", {
|
|
7806
7806
|
children: profile.providerRoutes
|
|
7807
|
-
}
|
|
7808
|
-
/* @__PURE__ */
|
|
7809
|
-
children: profile.evidence.map((metric) => /* @__PURE__ */
|
|
7807
|
+
}),
|
|
7808
|
+
/* @__PURE__ */ jsx10("div", {
|
|
7809
|
+
children: profile.evidence.map((metric) => /* @__PURE__ */ jsxs10("span", {
|
|
7810
7810
|
children: [
|
|
7811
|
-
/* @__PURE__ */
|
|
7811
|
+
/* @__PURE__ */ jsx10("small", {
|
|
7812
7812
|
children: metric.label
|
|
7813
|
-
}
|
|
7814
|
-
/* @__PURE__ */
|
|
7813
|
+
}),
|
|
7814
|
+
/* @__PURE__ */ jsx10("b", {
|
|
7815
7815
|
children: metric.value
|
|
7816
|
-
}
|
|
7816
|
+
})
|
|
7817
7817
|
]
|
|
7818
|
-
}, metric.label
|
|
7819
|
-
}
|
|
7820
|
-
/* @__PURE__ */
|
|
7818
|
+
}, metric.label))
|
|
7819
|
+
}),
|
|
7820
|
+
/* @__PURE__ */ jsx10("em", {
|
|
7821
7821
|
children: profile.nextMove
|
|
7822
|
-
}
|
|
7822
|
+
})
|
|
7823
7823
|
]
|
|
7824
|
-
}, profile.profileId
|
|
7825
|
-
}
|
|
7824
|
+
}, profile.profileId))
|
|
7825
|
+
}) : /* @__PURE__ */ jsx10("p", {
|
|
7826
7826
|
className: "absolute-voice-profile-comparison__empty",
|
|
7827
7827
|
children: model.error ?? "Run real-call profile collection to populate profile comparisons."
|
|
7828
|
-
}
|
|
7829
|
-
model.links.length ? /* @__PURE__ */
|
|
7828
|
+
}),
|
|
7829
|
+
model.links.length ? /* @__PURE__ */ jsx10("p", {
|
|
7830
7830
|
className: "absolute-voice-profile-comparison__links",
|
|
7831
|
-
children: model.links.map((link) => /* @__PURE__ */
|
|
7831
|
+
children: model.links.map((link) => /* @__PURE__ */ jsx10("a", {
|
|
7832
7832
|
href: link.href,
|
|
7833
7833
|
children: link.label
|
|
7834
|
-
}, link.href
|
|
7835
|
-
}
|
|
7836
|
-
model.error ? /* @__PURE__ */
|
|
7834
|
+
}, link.href))
|
|
7835
|
+
}) : null,
|
|
7836
|
+
model.error ? /* @__PURE__ */ jsx10("p", {
|
|
7837
7837
|
className: "absolute-voice-profile-comparison__error",
|
|
7838
7838
|
children: model.error
|
|
7839
|
-
}
|
|
7839
|
+
}) : null
|
|
7840
7840
|
]
|
|
7841
|
-
}
|
|
7841
|
+
});
|
|
7842
7842
|
};
|
|
7843
7843
|
// src/client/profileSwitchRecommendation.ts
|
|
7844
7844
|
var createVoiceProfileSwitchRecommendationStore = (path = "/api/voice/profile-switch-recommendation", options = {}) => {
|
|
@@ -8009,7 +8009,7 @@ var useVoiceProfileSwitchRecommendation = (path = "/api/voice/profile-switch-rec
|
|
|
8009
8009
|
};
|
|
8010
8010
|
|
|
8011
8011
|
// src/react/VoiceProfileSwitchRecommendation.tsx
|
|
8012
|
-
import {
|
|
8012
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
8013
8013
|
var VoiceProfileSwitchRecommendation = ({
|
|
8014
8014
|
className,
|
|
8015
8015
|
path = "/api/voice/profile-switch-recommendation",
|
|
@@ -8017,10 +8017,10 @@ var VoiceProfileSwitchRecommendation = ({
|
|
|
8017
8017
|
}) => {
|
|
8018
8018
|
const snapshot = useVoiceProfileSwitchRecommendation(path, options);
|
|
8019
8019
|
const html = renderVoiceProfileSwitchRecommendationHTML(snapshot, options);
|
|
8020
|
-
return /* @__PURE__ */
|
|
8020
|
+
return /* @__PURE__ */ jsx11("div", {
|
|
8021
8021
|
className,
|
|
8022
8022
|
dangerouslySetInnerHTML: { __html: html }
|
|
8023
|
-
}
|
|
8023
|
+
});
|
|
8024
8024
|
};
|
|
8025
8025
|
// src/client/readinessFailures.ts
|
|
8026
8026
|
var createVoiceReadinessFailuresStore = (path = "/api/production-readiness", options = {}) => {
|
|
@@ -8230,7 +8230,7 @@ var useVoiceReadinessFailures = (path = "/api/production-readiness", options = {
|
|
|
8230
8230
|
};
|
|
8231
8231
|
|
|
8232
8232
|
// src/react/VoiceReadinessFailures.tsx
|
|
8233
|
-
import {
|
|
8233
|
+
import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
8234
8234
|
var VoiceReadinessFailures = ({
|
|
8235
8235
|
className,
|
|
8236
8236
|
path = "/api/production-readiness",
|
|
@@ -8238,42 +8238,42 @@ var VoiceReadinessFailures = ({
|
|
|
8238
8238
|
}) => {
|
|
8239
8239
|
const snapshot = useVoiceReadinessFailures(path, options);
|
|
8240
8240
|
const model = createVoiceReadinessFailuresViewModel(snapshot, options);
|
|
8241
|
-
return /* @__PURE__ */
|
|
8241
|
+
return /* @__PURE__ */ jsxs11("section", {
|
|
8242
8242
|
className: [
|
|
8243
8243
|
"absolute-voice-readiness-failures",
|
|
8244
8244
|
`absolute-voice-readiness-failures--${model.status}`,
|
|
8245
8245
|
className
|
|
8246
8246
|
].filter(Boolean).join(" "),
|
|
8247
8247
|
children: [
|
|
8248
|
-
/* @__PURE__ */
|
|
8248
|
+
/* @__PURE__ */ jsxs11("header", {
|
|
8249
8249
|
className: "absolute-voice-readiness-failures__header",
|
|
8250
8250
|
children: [
|
|
8251
|
-
/* @__PURE__ */
|
|
8251
|
+
/* @__PURE__ */ jsx12("span", {
|
|
8252
8252
|
className: "absolute-voice-readiness-failures__eyebrow",
|
|
8253
8253
|
children: model.title
|
|
8254
|
-
}
|
|
8255
|
-
/* @__PURE__ */
|
|
8254
|
+
}),
|
|
8255
|
+
/* @__PURE__ */ jsx12("strong", {
|
|
8256
8256
|
className: "absolute-voice-readiness-failures__label",
|
|
8257
8257
|
children: model.label
|
|
8258
|
-
}
|
|
8258
|
+
})
|
|
8259
8259
|
]
|
|
8260
|
-
}
|
|
8261
|
-
/* @__PURE__ */
|
|
8260
|
+
}),
|
|
8261
|
+
/* @__PURE__ */ jsx12("p", {
|
|
8262
8262
|
className: "absolute-voice-readiness-failures__description",
|
|
8263
8263
|
children: model.description
|
|
8264
|
-
}
|
|
8265
|
-
model.failures.length ? /* @__PURE__ */
|
|
8264
|
+
}),
|
|
8265
|
+
model.failures.length ? /* @__PURE__ */ jsx12("div", {
|
|
8266
8266
|
className: "absolute-voice-readiness-failures__items",
|
|
8267
|
-
children: model.failures.map((failure) => /* @__PURE__ */
|
|
8267
|
+
children: model.failures.map((failure) => /* @__PURE__ */ jsxs11("article", {
|
|
8268
8268
|
className: `absolute-voice-readiness-failures__item absolute-voice-readiness-failures__item--${failure.status}`,
|
|
8269
8269
|
children: [
|
|
8270
|
-
/* @__PURE__ */
|
|
8270
|
+
/* @__PURE__ */ jsx12("span", {
|
|
8271
8271
|
children: failure.status.toUpperCase()
|
|
8272
|
-
}
|
|
8273
|
-
/* @__PURE__ */
|
|
8272
|
+
}),
|
|
8273
|
+
/* @__PURE__ */ jsx12("strong", {
|
|
8274
8274
|
children: failure.label
|
|
8275
|
-
}
|
|
8276
|
-
/* @__PURE__ */
|
|
8275
|
+
}),
|
|
8276
|
+
/* @__PURE__ */ jsxs11("p", {
|
|
8277
8277
|
children: [
|
|
8278
8278
|
"Observed ",
|
|
8279
8279
|
failure.observed,
|
|
@@ -8283,42 +8283,42 @@ var VoiceReadinessFailures = ({
|
|
|
8283
8283
|
failure.threshold,
|
|
8284
8284
|
"."
|
|
8285
8285
|
]
|
|
8286
|
-
}
|
|
8287
|
-
/* @__PURE__ */
|
|
8286
|
+
}),
|
|
8287
|
+
/* @__PURE__ */ jsx12("p", {
|
|
8288
8288
|
children: failure.remediation
|
|
8289
|
-
}
|
|
8290
|
-
/* @__PURE__ */
|
|
8289
|
+
}),
|
|
8290
|
+
/* @__PURE__ */ jsxs11("p", {
|
|
8291
8291
|
className: "absolute-voice-readiness-failures__links",
|
|
8292
8292
|
children: [
|
|
8293
|
-
failure.evidenceHref ? /* @__PURE__ */
|
|
8293
|
+
failure.evidenceHref ? /* @__PURE__ */ jsx12("a", {
|
|
8294
8294
|
href: failure.evidenceHref,
|
|
8295
8295
|
children: "Evidence"
|
|
8296
|
-
}
|
|
8297
|
-
failure.sourceHref ? /* @__PURE__ */
|
|
8296
|
+
}) : null,
|
|
8297
|
+
failure.sourceHref ? /* @__PURE__ */ jsx12("a", {
|
|
8298
8298
|
href: failure.sourceHref,
|
|
8299
8299
|
children: "Threshold source"
|
|
8300
|
-
}
|
|
8300
|
+
}) : null
|
|
8301
8301
|
]
|
|
8302
|
-
}
|
|
8302
|
+
})
|
|
8303
8303
|
]
|
|
8304
|
-
}, failure.label
|
|
8305
|
-
}
|
|
8304
|
+
}, failure.label))
|
|
8305
|
+
}) : /* @__PURE__ */ jsx12("p", {
|
|
8306
8306
|
className: "absolute-voice-readiness-failures__empty",
|
|
8307
8307
|
children: model.error ?? "No calibrated readiness gate explanations are open."
|
|
8308
|
-
}
|
|
8309
|
-
model.links.length ? /* @__PURE__ */
|
|
8308
|
+
}),
|
|
8309
|
+
model.links.length ? /* @__PURE__ */ jsx12("p", {
|
|
8310
8310
|
className: "absolute-voice-readiness-failures__links",
|
|
8311
|
-
children: model.links.map((link) => /* @__PURE__ */
|
|
8311
|
+
children: model.links.map((link) => /* @__PURE__ */ jsx12("a", {
|
|
8312
8312
|
href: link.href,
|
|
8313
8313
|
children: link.label
|
|
8314
|
-
}, link.href
|
|
8315
|
-
}
|
|
8316
|
-
model.error ? /* @__PURE__ */
|
|
8314
|
+
}, link.href))
|
|
8315
|
+
}) : null,
|
|
8316
|
+
model.error ? /* @__PURE__ */ jsx12("p", {
|
|
8317
8317
|
className: "absolute-voice-readiness-failures__error",
|
|
8318
8318
|
children: model.error
|
|
8319
|
-
}
|
|
8319
|
+
}) : null
|
|
8320
8320
|
]
|
|
8321
|
-
}
|
|
8321
|
+
});
|
|
8322
8322
|
};
|
|
8323
8323
|
// src/client/providerSimulationControls.ts
|
|
8324
8324
|
var postSimulation = async (pathPrefix, mode, provider, fetchImpl) => {
|
|
@@ -8511,7 +8511,7 @@ var useVoiceProviderSimulationControls = (options) => {
|
|
|
8511
8511
|
};
|
|
8512
8512
|
|
|
8513
8513
|
// src/react/VoiceProviderSimulationControls.tsx
|
|
8514
|
-
import {
|
|
8514
|
+
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
8515
8515
|
var VoiceProviderSimulationControls = ({
|
|
8516
8516
|
className,
|
|
8517
8517
|
...options
|
|
@@ -8521,38 +8521,38 @@ var VoiceProviderSimulationControls = ({
|
|
|
8521
8521
|
const run = (provider, mode) => {
|
|
8522
8522
|
snapshot.run(provider, mode).catch(() => {});
|
|
8523
8523
|
};
|
|
8524
|
-
return /* @__PURE__ */
|
|
8524
|
+
return /* @__PURE__ */ jsxs12("section", {
|
|
8525
8525
|
className: [
|
|
8526
8526
|
"absolute-voice-provider-simulation",
|
|
8527
8527
|
`absolute-voice-provider-simulation--${snapshot.error ? "error" : snapshot.isRunning ? "running" : "ready"}`,
|
|
8528
8528
|
className
|
|
8529
8529
|
].filter(Boolean).join(" "),
|
|
8530
8530
|
children: [
|
|
8531
|
-
/* @__PURE__ */
|
|
8531
|
+
/* @__PURE__ */ jsxs12("header", {
|
|
8532
8532
|
className: "absolute-voice-provider-simulation__header",
|
|
8533
8533
|
children: [
|
|
8534
|
-
/* @__PURE__ */
|
|
8534
|
+
/* @__PURE__ */ jsx13("span", {
|
|
8535
8535
|
className: "absolute-voice-provider-simulation__eyebrow",
|
|
8536
8536
|
children: model.title
|
|
8537
|
-
}
|
|
8538
|
-
/* @__PURE__ */
|
|
8537
|
+
}),
|
|
8538
|
+
/* @__PURE__ */ jsx13("strong", {
|
|
8539
8539
|
className: "absolute-voice-provider-simulation__label",
|
|
8540
8540
|
children: model.label
|
|
8541
|
-
}
|
|
8541
|
+
})
|
|
8542
8542
|
]
|
|
8543
|
-
}
|
|
8544
|
-
/* @__PURE__ */
|
|
8543
|
+
}),
|
|
8544
|
+
/* @__PURE__ */ jsx13("p", {
|
|
8545
8545
|
className: "absolute-voice-provider-simulation__description",
|
|
8546
8546
|
children: model.description
|
|
8547
|
-
}
|
|
8548
|
-
model.canSimulateFailure ? null : /* @__PURE__ */
|
|
8547
|
+
}),
|
|
8548
|
+
model.canSimulateFailure ? null : /* @__PURE__ */ jsx13("p", {
|
|
8549
8549
|
className: "absolute-voice-provider-simulation__empty",
|
|
8550
8550
|
children: options.fallbackRequiredMessage ?? "Configure fallback providers before simulating failure."
|
|
8551
|
-
}
|
|
8552
|
-
/* @__PURE__ */
|
|
8551
|
+
}),
|
|
8552
|
+
/* @__PURE__ */ jsxs12("div", {
|
|
8553
8553
|
className: "absolute-voice-provider-simulation__actions",
|
|
8554
8554
|
children: [
|
|
8555
|
-
model.failureProviders.map((provider) => /* @__PURE__ */
|
|
8555
|
+
model.failureProviders.map((provider) => /* @__PURE__ */ jsxs12("button", {
|
|
8556
8556
|
disabled: !model.canSimulateFailure || snapshot.isRunning,
|
|
8557
8557
|
onClick: () => run(provider.provider, "failure"),
|
|
8558
8558
|
type: "button",
|
|
@@ -8564,8 +8564,8 @@ var VoiceProviderSimulationControls = ({
|
|
|
8564
8564
|
" ",
|
|
8565
8565
|
"failure"
|
|
8566
8566
|
]
|
|
8567
|
-
}, `fail-${provider.provider}
|
|
8568
|
-
model.providers.map((provider) => /* @__PURE__ */
|
|
8567
|
+
}, `fail-${provider.provider}`)),
|
|
8568
|
+
model.providers.map((provider) => /* @__PURE__ */ jsxs12("button", {
|
|
8569
8569
|
disabled: snapshot.isRunning,
|
|
8570
8570
|
onClick: () => run(provider.provider, "recovery"),
|
|
8571
8571
|
type: "button",
|
|
@@ -8574,19 +8574,19 @@ var VoiceProviderSimulationControls = ({
|
|
|
8574
8574
|
provider.provider,
|
|
8575
8575
|
" recovered"
|
|
8576
8576
|
]
|
|
8577
|
-
}, `recover-${provider.provider}
|
|
8577
|
+
}, `recover-${provider.provider}`))
|
|
8578
8578
|
]
|
|
8579
|
-
}
|
|
8580
|
-
snapshot.error ? /* @__PURE__ */
|
|
8579
|
+
}),
|
|
8580
|
+
snapshot.error ? /* @__PURE__ */ jsx13("p", {
|
|
8581
8581
|
className: "absolute-voice-provider-simulation__error",
|
|
8582
8582
|
children: snapshot.error
|
|
8583
|
-
}
|
|
8584
|
-
model.resultText ? /* @__PURE__ */
|
|
8583
|
+
}) : null,
|
|
8584
|
+
model.resultText ? /* @__PURE__ */ jsx13("pre", {
|
|
8585
8585
|
className: "absolute-voice-provider-simulation__result",
|
|
8586
8586
|
children: model.resultText
|
|
8587
|
-
}
|
|
8587
|
+
}) : null
|
|
8588
8588
|
]
|
|
8589
|
-
}
|
|
8589
|
+
});
|
|
8590
8590
|
};
|
|
8591
8591
|
// src/react/useVoiceProviderCapabilities.tsx
|
|
8592
8592
|
import { useEffect as useEffect14, useRef as useRef14, useSyncExternalStore as useSyncExternalStore14 } from "react";
|
|
@@ -8816,7 +8816,7 @@ var renderVoiceProviderCapabilitiesHTML = (snapshot, options = {}) => {
|
|
|
8816
8816
|
};
|
|
8817
8817
|
|
|
8818
8818
|
// src/react/VoiceProviderCapabilities.tsx
|
|
8819
|
-
import {
|
|
8819
|
+
import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
8820
8820
|
var VoiceProviderCapabilities = ({
|
|
8821
8821
|
className,
|
|
8822
8822
|
path = "/api/provider-capabilities",
|
|
@@ -8824,75 +8824,75 @@ var VoiceProviderCapabilities = ({
|
|
|
8824
8824
|
}) => {
|
|
8825
8825
|
const snapshot = useVoiceProviderCapabilities(path, options);
|
|
8826
8826
|
const model = createVoiceProviderCapabilitiesViewModel(snapshot, options);
|
|
8827
|
-
return /* @__PURE__ */
|
|
8827
|
+
return /* @__PURE__ */ jsxs13("section", {
|
|
8828
8828
|
className: [
|
|
8829
8829
|
"absolute-voice-provider-capabilities",
|
|
8830
8830
|
`absolute-voice-provider-capabilities--${model.status}`,
|
|
8831
8831
|
className
|
|
8832
8832
|
].filter(Boolean).join(" "),
|
|
8833
8833
|
children: [
|
|
8834
|
-
/* @__PURE__ */
|
|
8834
|
+
/* @__PURE__ */ jsxs13("header", {
|
|
8835
8835
|
className: "absolute-voice-provider-capabilities__header",
|
|
8836
8836
|
children: [
|
|
8837
|
-
/* @__PURE__ */
|
|
8837
|
+
/* @__PURE__ */ jsx14("span", {
|
|
8838
8838
|
className: "absolute-voice-provider-capabilities__eyebrow",
|
|
8839
8839
|
children: model.title
|
|
8840
|
-
}
|
|
8841
|
-
/* @__PURE__ */
|
|
8840
|
+
}),
|
|
8841
|
+
/* @__PURE__ */ jsx14("strong", {
|
|
8842
8842
|
className: "absolute-voice-provider-capabilities__label",
|
|
8843
8843
|
children: model.label
|
|
8844
|
-
}
|
|
8844
|
+
})
|
|
8845
8845
|
]
|
|
8846
|
-
}
|
|
8847
|
-
/* @__PURE__ */
|
|
8846
|
+
}),
|
|
8847
|
+
/* @__PURE__ */ jsx14("p", {
|
|
8848
8848
|
className: "absolute-voice-provider-capabilities__description",
|
|
8849
8849
|
children: model.description
|
|
8850
|
-
}
|
|
8851
|
-
model.capabilities.length ? /* @__PURE__ */
|
|
8850
|
+
}),
|
|
8851
|
+
model.capabilities.length ? /* @__PURE__ */ jsx14("div", {
|
|
8852
8852
|
className: "absolute-voice-provider-capabilities__providers",
|
|
8853
|
-
children: model.capabilities.map((capability) => /* @__PURE__ */
|
|
8853
|
+
children: model.capabilities.map((capability) => /* @__PURE__ */ jsxs13("article", {
|
|
8854
8854
|
className: [
|
|
8855
8855
|
"absolute-voice-provider-capabilities__provider",
|
|
8856
8856
|
`absolute-voice-provider-capabilities__provider--${capability.status}`
|
|
8857
8857
|
].join(" "),
|
|
8858
8858
|
children: [
|
|
8859
|
-
/* @__PURE__ */
|
|
8859
|
+
/* @__PURE__ */ jsxs13("header", {
|
|
8860
8860
|
children: [
|
|
8861
|
-
/* @__PURE__ */
|
|
8861
|
+
/* @__PURE__ */ jsx14("strong", {
|
|
8862
8862
|
children: capability.label
|
|
8863
|
-
}
|
|
8864
|
-
/* @__PURE__ */
|
|
8863
|
+
}),
|
|
8864
|
+
/* @__PURE__ */ jsx14("span", {
|
|
8865
8865
|
children: capability.status
|
|
8866
|
-
}
|
|
8866
|
+
})
|
|
8867
8867
|
]
|
|
8868
|
-
}
|
|
8869
|
-
/* @__PURE__ */
|
|
8868
|
+
}),
|
|
8869
|
+
/* @__PURE__ */ jsx14("p", {
|
|
8870
8870
|
children: capability.detail
|
|
8871
|
-
}
|
|
8872
|
-
/* @__PURE__ */
|
|
8873
|
-
children: capability.rows.map((row) => /* @__PURE__ */
|
|
8871
|
+
}),
|
|
8872
|
+
/* @__PURE__ */ jsx14("dl", {
|
|
8873
|
+
children: capability.rows.map((row) => /* @__PURE__ */ jsxs13("div", {
|
|
8874
8874
|
children: [
|
|
8875
|
-
/* @__PURE__ */
|
|
8875
|
+
/* @__PURE__ */ jsx14("dt", {
|
|
8876
8876
|
children: row.label
|
|
8877
|
-
}
|
|
8878
|
-
/* @__PURE__ */
|
|
8877
|
+
}),
|
|
8878
|
+
/* @__PURE__ */ jsx14("dd", {
|
|
8879
8879
|
children: row.value
|
|
8880
|
-
}
|
|
8880
|
+
})
|
|
8881
8881
|
]
|
|
8882
|
-
}, row.label
|
|
8883
|
-
}
|
|
8882
|
+
}, row.label))
|
|
8883
|
+
})
|
|
8884
8884
|
]
|
|
8885
|
-
}, `${capability.kind}:${capability.provider}
|
|
8886
|
-
}
|
|
8885
|
+
}, `${capability.kind}:${capability.provider}`))
|
|
8886
|
+
}) : /* @__PURE__ */ jsx14("p", {
|
|
8887
8887
|
className: "absolute-voice-provider-capabilities__empty",
|
|
8888
8888
|
children: "Configure provider capabilities to see deployment coverage."
|
|
8889
|
-
}
|
|
8890
|
-
model.error ? /* @__PURE__ */
|
|
8889
|
+
}),
|
|
8890
|
+
model.error ? /* @__PURE__ */ jsx14("p", {
|
|
8891
8891
|
className: "absolute-voice-provider-capabilities__error",
|
|
8892
8892
|
children: model.error
|
|
8893
|
-
}
|
|
8893
|
+
}) : null
|
|
8894
8894
|
]
|
|
8895
|
-
}
|
|
8895
|
+
});
|
|
8896
8896
|
};
|
|
8897
8897
|
// src/react/useVoiceProviderContracts.tsx
|
|
8898
8898
|
import { useEffect as useEffect15, useRef as useRef15, useSyncExternalStore as useSyncExternalStore15 } from "react";
|
|
@@ -9108,7 +9108,7 @@ var renderVoiceProviderContractsHTML = (snapshot, options = {}) => {
|
|
|
9108
9108
|
};
|
|
9109
9109
|
|
|
9110
9110
|
// src/react/VoiceProviderContracts.tsx
|
|
9111
|
-
import {
|
|
9111
|
+
import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9112
9112
|
var VoiceProviderContracts = ({
|
|
9113
9113
|
className,
|
|
9114
9114
|
path = "/api/provider-contracts",
|
|
@@ -9116,91 +9116,91 @@ var VoiceProviderContracts = ({
|
|
|
9116
9116
|
}) => {
|
|
9117
9117
|
const snapshot = useVoiceProviderContracts(path, options);
|
|
9118
9118
|
const model = createVoiceProviderContractsViewModel(snapshot, options);
|
|
9119
|
-
return /* @__PURE__ */
|
|
9119
|
+
return /* @__PURE__ */ jsxs14("section", {
|
|
9120
9120
|
className: [
|
|
9121
9121
|
"absolute-voice-provider-contracts",
|
|
9122
9122
|
`absolute-voice-provider-contracts--${model.status}`,
|
|
9123
9123
|
className
|
|
9124
9124
|
].filter(Boolean).join(" "),
|
|
9125
9125
|
children: [
|
|
9126
|
-
/* @__PURE__ */
|
|
9126
|
+
/* @__PURE__ */ jsxs14("header", {
|
|
9127
9127
|
className: "absolute-voice-provider-contracts__header",
|
|
9128
9128
|
children: [
|
|
9129
|
-
/* @__PURE__ */
|
|
9129
|
+
/* @__PURE__ */ jsx15("span", {
|
|
9130
9130
|
className: "absolute-voice-provider-contracts__eyebrow",
|
|
9131
9131
|
children: model.title
|
|
9132
|
-
}
|
|
9133
|
-
/* @__PURE__ */
|
|
9132
|
+
}),
|
|
9133
|
+
/* @__PURE__ */ jsx15("strong", {
|
|
9134
9134
|
className: "absolute-voice-provider-contracts__label",
|
|
9135
9135
|
children: model.label
|
|
9136
|
-
}
|
|
9136
|
+
})
|
|
9137
9137
|
]
|
|
9138
|
-
}
|
|
9139
|
-
/* @__PURE__ */
|
|
9138
|
+
}),
|
|
9139
|
+
/* @__PURE__ */ jsx15("p", {
|
|
9140
9140
|
className: "absolute-voice-provider-contracts__description",
|
|
9141
9141
|
children: model.description
|
|
9142
|
-
}
|
|
9143
|
-
model.rows.length ? /* @__PURE__ */
|
|
9142
|
+
}),
|
|
9143
|
+
model.rows.length ? /* @__PURE__ */ jsx15("div", {
|
|
9144
9144
|
className: "absolute-voice-provider-contracts__rows",
|
|
9145
|
-
children: model.rows.map((row) => /* @__PURE__ */
|
|
9145
|
+
children: model.rows.map((row) => /* @__PURE__ */ jsxs14("article", {
|
|
9146
9146
|
className: [
|
|
9147
9147
|
"absolute-voice-provider-contracts__row",
|
|
9148
9148
|
`absolute-voice-provider-contracts__row--${row.status}`
|
|
9149
9149
|
].join(" "),
|
|
9150
9150
|
children: [
|
|
9151
|
-
/* @__PURE__ */
|
|
9151
|
+
/* @__PURE__ */ jsxs14("header", {
|
|
9152
9152
|
children: [
|
|
9153
|
-
/* @__PURE__ */
|
|
9153
|
+
/* @__PURE__ */ jsx15("strong", {
|
|
9154
9154
|
children: row.label
|
|
9155
|
-
}
|
|
9156
|
-
/* @__PURE__ */
|
|
9155
|
+
}),
|
|
9156
|
+
/* @__PURE__ */ jsx15("span", {
|
|
9157
9157
|
children: row.status
|
|
9158
|
-
}
|
|
9158
|
+
})
|
|
9159
9159
|
]
|
|
9160
|
-
}
|
|
9161
|
-
/* @__PURE__ */
|
|
9160
|
+
}),
|
|
9161
|
+
/* @__PURE__ */ jsx15("p", {
|
|
9162
9162
|
children: row.detail
|
|
9163
|
-
}
|
|
9164
|
-
row.remediations.length ? /* @__PURE__ */
|
|
9163
|
+
}),
|
|
9164
|
+
row.remediations.length ? /* @__PURE__ */ jsx15("ul", {
|
|
9165
9165
|
className: "absolute-voice-provider-contracts__remediations",
|
|
9166
|
-
children: row.remediations.map((remediation) => /* @__PURE__ */
|
|
9166
|
+
children: row.remediations.map((remediation) => /* @__PURE__ */ jsxs14("li", {
|
|
9167
9167
|
children: [
|
|
9168
|
-
remediation.href ? /* @__PURE__ */
|
|
9168
|
+
remediation.href ? /* @__PURE__ */ jsx15("a", {
|
|
9169
9169
|
href: remediation.href,
|
|
9170
9170
|
children: remediation.label
|
|
9171
|
-
}
|
|
9171
|
+
}) : /* @__PURE__ */ jsx15("strong", {
|
|
9172
9172
|
children: remediation.label
|
|
9173
|
-
}
|
|
9174
|
-
/* @__PURE__ */
|
|
9173
|
+
}),
|
|
9174
|
+
/* @__PURE__ */ jsx15("span", {
|
|
9175
9175
|
children: remediation.detail
|
|
9176
|
-
}
|
|
9176
|
+
})
|
|
9177
9177
|
]
|
|
9178
|
-
}, `${row.kind}:${row.provider}:${remediation.label}
|
|
9179
|
-
}
|
|
9180
|
-
/* @__PURE__ */
|
|
9181
|
-
children: row.rows.map((item) => /* @__PURE__ */
|
|
9178
|
+
}, `${row.kind}:${row.provider}:${remediation.label}`))
|
|
9179
|
+
}) : null,
|
|
9180
|
+
/* @__PURE__ */ jsx15("dl", {
|
|
9181
|
+
children: row.rows.map((item) => /* @__PURE__ */ jsxs14("div", {
|
|
9182
9182
|
children: [
|
|
9183
|
-
/* @__PURE__ */
|
|
9183
|
+
/* @__PURE__ */ jsx15("dt", {
|
|
9184
9184
|
children: item.label
|
|
9185
|
-
}
|
|
9186
|
-
/* @__PURE__ */
|
|
9185
|
+
}),
|
|
9186
|
+
/* @__PURE__ */ jsx15("dd", {
|
|
9187
9187
|
children: item.value
|
|
9188
|
-
}
|
|
9188
|
+
})
|
|
9189
9189
|
]
|
|
9190
|
-
}, item.label
|
|
9191
|
-
}
|
|
9190
|
+
}, item.label))
|
|
9191
|
+
})
|
|
9192
9192
|
]
|
|
9193
|
-
}, `${row.kind}:${row.provider}
|
|
9194
|
-
}
|
|
9193
|
+
}, `${row.kind}:${row.provider}`))
|
|
9194
|
+
}) : /* @__PURE__ */ jsx15("p", {
|
|
9195
9195
|
className: "absolute-voice-provider-contracts__empty",
|
|
9196
9196
|
children: "Configure provider contracts to see production coverage."
|
|
9197
|
-
}
|
|
9198
|
-
model.error ? /* @__PURE__ */
|
|
9197
|
+
}),
|
|
9198
|
+
model.error ? /* @__PURE__ */ jsx15("p", {
|
|
9199
9199
|
className: "absolute-voice-provider-contracts__error",
|
|
9200
9200
|
children: model.error
|
|
9201
|
-
}
|
|
9201
|
+
}) : null
|
|
9202
9202
|
]
|
|
9203
|
-
}
|
|
9203
|
+
});
|
|
9204
9204
|
};
|
|
9205
9205
|
// src/react/useVoiceProviderStatus.tsx
|
|
9206
9206
|
import { useEffect as useEffect16, useRef as useRef16, useSyncExternalStore as useSyncExternalStore16 } from "react";
|
|
@@ -9432,7 +9432,7 @@ var renderVoiceProviderStatusHTML = (snapshot, options = {}) => {
|
|
|
9432
9432
|
};
|
|
9433
9433
|
|
|
9434
9434
|
// src/react/VoiceProviderStatus.tsx
|
|
9435
|
-
import {
|
|
9435
|
+
import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
9436
9436
|
var VoiceProviderStatus = ({
|
|
9437
9437
|
className,
|
|
9438
9438
|
path = "/api/provider-status",
|
|
@@ -9440,75 +9440,75 @@ var VoiceProviderStatus = ({
|
|
|
9440
9440
|
}) => {
|
|
9441
9441
|
const snapshot = useVoiceProviderStatus(path, options);
|
|
9442
9442
|
const model = createVoiceProviderStatusViewModel(snapshot, options);
|
|
9443
|
-
return /* @__PURE__ */
|
|
9443
|
+
return /* @__PURE__ */ jsxs15("section", {
|
|
9444
9444
|
className: [
|
|
9445
9445
|
"absolute-voice-provider-status",
|
|
9446
9446
|
`absolute-voice-provider-status--${model.status}`,
|
|
9447
9447
|
className
|
|
9448
9448
|
].filter(Boolean).join(" "),
|
|
9449
9449
|
children: [
|
|
9450
|
-
/* @__PURE__ */
|
|
9450
|
+
/* @__PURE__ */ jsxs15("header", {
|
|
9451
9451
|
className: "absolute-voice-provider-status__header",
|
|
9452
9452
|
children: [
|
|
9453
|
-
/* @__PURE__ */
|
|
9453
|
+
/* @__PURE__ */ jsx16("span", {
|
|
9454
9454
|
className: "absolute-voice-provider-status__eyebrow",
|
|
9455
9455
|
children: model.title
|
|
9456
|
-
}
|
|
9457
|
-
/* @__PURE__ */
|
|
9456
|
+
}),
|
|
9457
|
+
/* @__PURE__ */ jsx16("strong", {
|
|
9458
9458
|
className: "absolute-voice-provider-status__label",
|
|
9459
9459
|
children: model.label
|
|
9460
|
-
}
|
|
9460
|
+
})
|
|
9461
9461
|
]
|
|
9462
|
-
}
|
|
9463
|
-
/* @__PURE__ */
|
|
9462
|
+
}),
|
|
9463
|
+
/* @__PURE__ */ jsx16("p", {
|
|
9464
9464
|
className: "absolute-voice-provider-status__description",
|
|
9465
9465
|
children: model.description
|
|
9466
|
-
}
|
|
9467
|
-
model.providers.length ? /* @__PURE__ */
|
|
9466
|
+
}),
|
|
9467
|
+
model.providers.length ? /* @__PURE__ */ jsx16("div", {
|
|
9468
9468
|
className: "absolute-voice-provider-status__providers",
|
|
9469
|
-
children: model.providers.map((provider) => /* @__PURE__ */
|
|
9469
|
+
children: model.providers.map((provider) => /* @__PURE__ */ jsxs15("article", {
|
|
9470
9470
|
className: [
|
|
9471
9471
|
"absolute-voice-provider-status__provider",
|
|
9472
9472
|
`absolute-voice-provider-status__provider--${provider.status}`
|
|
9473
9473
|
].join(" "),
|
|
9474
9474
|
children: [
|
|
9475
|
-
/* @__PURE__ */
|
|
9475
|
+
/* @__PURE__ */ jsxs15("header", {
|
|
9476
9476
|
children: [
|
|
9477
|
-
/* @__PURE__ */
|
|
9477
|
+
/* @__PURE__ */ jsx16("strong", {
|
|
9478
9478
|
children: provider.label
|
|
9479
|
-
}
|
|
9480
|
-
/* @__PURE__ */
|
|
9479
|
+
}),
|
|
9480
|
+
/* @__PURE__ */ jsx16("span", {
|
|
9481
9481
|
children: provider.status
|
|
9482
|
-
}
|
|
9482
|
+
})
|
|
9483
9483
|
]
|
|
9484
|
-
}
|
|
9485
|
-
/* @__PURE__ */
|
|
9484
|
+
}),
|
|
9485
|
+
/* @__PURE__ */ jsx16("p", {
|
|
9486
9486
|
children: provider.detail
|
|
9487
|
-
}
|
|
9488
|
-
/* @__PURE__ */
|
|
9489
|
-
children: provider.rows.map((row) => /* @__PURE__ */
|
|
9487
|
+
}),
|
|
9488
|
+
/* @__PURE__ */ jsx16("dl", {
|
|
9489
|
+
children: provider.rows.map((row) => /* @__PURE__ */ jsxs15("div", {
|
|
9490
9490
|
children: [
|
|
9491
|
-
/* @__PURE__ */
|
|
9491
|
+
/* @__PURE__ */ jsx16("dt", {
|
|
9492
9492
|
children: row.label
|
|
9493
|
-
}
|
|
9494
|
-
/* @__PURE__ */
|
|
9493
|
+
}),
|
|
9494
|
+
/* @__PURE__ */ jsx16("dd", {
|
|
9495
9495
|
children: row.value
|
|
9496
|
-
}
|
|
9496
|
+
})
|
|
9497
9497
|
]
|
|
9498
|
-
}, row.label
|
|
9499
|
-
}
|
|
9498
|
+
}, row.label))
|
|
9499
|
+
})
|
|
9500
9500
|
]
|
|
9501
|
-
}, provider.provider
|
|
9502
|
-
}
|
|
9501
|
+
}, provider.provider))
|
|
9502
|
+
}) : /* @__PURE__ */ jsx16("p", {
|
|
9503
9503
|
className: "absolute-voice-provider-status__empty",
|
|
9504
9504
|
children: "Run voice traffic to see provider health."
|
|
9505
|
-
}
|
|
9506
|
-
model.error ? /* @__PURE__ */
|
|
9505
|
+
}),
|
|
9506
|
+
model.error ? /* @__PURE__ */ jsx16("p", {
|
|
9507
9507
|
className: "absolute-voice-provider-status__error",
|
|
9508
9508
|
children: model.error
|
|
9509
|
-
}
|
|
9509
|
+
}) : null
|
|
9510
9510
|
]
|
|
9511
|
-
}
|
|
9511
|
+
});
|
|
9512
9512
|
};
|
|
9513
9513
|
// src/react/useVoiceRoutingStatus.tsx
|
|
9514
9514
|
import { useEffect as useEffect17, useRef as useRef17, useSyncExternalStore as useSyncExternalStore17 } from "react";
|
|
@@ -9763,7 +9763,7 @@ var renderVoiceRoutingStatusHTML = (snapshot, options = {}) => {
|
|
|
9763
9763
|
};
|
|
9764
9764
|
|
|
9765
9765
|
// src/react/VoiceRoutingStatus.tsx
|
|
9766
|
-
import {
|
|
9766
|
+
import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
9767
9767
|
var VoiceRoutingStatus = ({
|
|
9768
9768
|
className,
|
|
9769
9769
|
path = "/api/routing/latest",
|
|
@@ -9771,52 +9771,52 @@ var VoiceRoutingStatus = ({
|
|
|
9771
9771
|
}) => {
|
|
9772
9772
|
const snapshot = useVoiceRoutingStatus(path, options);
|
|
9773
9773
|
const model = createVoiceRoutingStatusViewModel(snapshot, options);
|
|
9774
|
-
return /* @__PURE__ */
|
|
9774
|
+
return /* @__PURE__ */ jsxs16("section", {
|
|
9775
9775
|
className: [
|
|
9776
9776
|
"absolute-voice-routing-status",
|
|
9777
9777
|
`absolute-voice-routing-status--${model.status}`,
|
|
9778
9778
|
className
|
|
9779
9779
|
].filter(Boolean).join(" "),
|
|
9780
9780
|
children: [
|
|
9781
|
-
/* @__PURE__ */
|
|
9781
|
+
/* @__PURE__ */ jsxs16("header", {
|
|
9782
9782
|
className: "absolute-voice-routing-status__header",
|
|
9783
9783
|
children: [
|
|
9784
|
-
/* @__PURE__ */
|
|
9784
|
+
/* @__PURE__ */ jsx17("span", {
|
|
9785
9785
|
className: "absolute-voice-routing-status__eyebrow",
|
|
9786
9786
|
children: model.title
|
|
9787
|
-
}
|
|
9788
|
-
/* @__PURE__ */
|
|
9787
|
+
}),
|
|
9788
|
+
/* @__PURE__ */ jsx17("strong", {
|
|
9789
9789
|
className: "absolute-voice-routing-status__label",
|
|
9790
9790
|
children: model.label
|
|
9791
|
-
}
|
|
9791
|
+
})
|
|
9792
9792
|
]
|
|
9793
|
-
}
|
|
9794
|
-
/* @__PURE__ */
|
|
9793
|
+
}),
|
|
9794
|
+
/* @__PURE__ */ jsx17("p", {
|
|
9795
9795
|
className: "absolute-voice-routing-status__description",
|
|
9796
9796
|
children: model.description
|
|
9797
|
-
}
|
|
9798
|
-
model.rows.length ? /* @__PURE__ */
|
|
9797
|
+
}),
|
|
9798
|
+
model.rows.length ? /* @__PURE__ */ jsx17("div", {
|
|
9799
9799
|
className: "absolute-voice-routing-status__grid",
|
|
9800
|
-
children: model.rows.map((row) => /* @__PURE__ */
|
|
9800
|
+
children: model.rows.map((row) => /* @__PURE__ */ jsxs16("div", {
|
|
9801
9801
|
children: [
|
|
9802
|
-
/* @__PURE__ */
|
|
9802
|
+
/* @__PURE__ */ jsx17("span", {
|
|
9803
9803
|
children: row.label
|
|
9804
|
-
}
|
|
9805
|
-
/* @__PURE__ */
|
|
9804
|
+
}),
|
|
9805
|
+
/* @__PURE__ */ jsx17("strong", {
|
|
9806
9806
|
children: row.value
|
|
9807
|
-
}
|
|
9807
|
+
})
|
|
9808
9808
|
]
|
|
9809
|
-
}, row.label
|
|
9810
|
-
}
|
|
9809
|
+
}, row.label))
|
|
9810
|
+
}) : /* @__PURE__ */ jsx17("p", {
|
|
9811
9811
|
className: "absolute-voice-routing-status__empty",
|
|
9812
9812
|
children: "Start a voice session to see the selected provider."
|
|
9813
|
-
}
|
|
9814
|
-
model.error ? /* @__PURE__ */
|
|
9813
|
+
}),
|
|
9814
|
+
model.error ? /* @__PURE__ */ jsx17("p", {
|
|
9815
9815
|
className: "absolute-voice-routing-status__error",
|
|
9816
9816
|
children: model.error
|
|
9817
|
-
}
|
|
9817
|
+
}) : null
|
|
9818
9818
|
]
|
|
9819
|
-
}
|
|
9819
|
+
});
|
|
9820
9820
|
};
|
|
9821
9821
|
// src/client/traceTimeline.ts
|
|
9822
9822
|
var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) => {
|
|
@@ -10027,7 +10027,7 @@ var useVoiceTraceTimeline = (path = "/api/voice-traces", options = {}) => {
|
|
|
10027
10027
|
};
|
|
10028
10028
|
|
|
10029
10029
|
// src/react/VoiceTraceTimeline.tsx
|
|
10030
|
-
import {
|
|
10030
|
+
import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
10031
10031
|
var VoiceTraceTimeline = ({
|
|
10032
10032
|
className,
|
|
10033
10033
|
path = "/api/voice-traces",
|
|
@@ -10035,49 +10035,49 @@ var VoiceTraceTimeline = ({
|
|
|
10035
10035
|
}) => {
|
|
10036
10036
|
const snapshot = useVoiceTraceTimeline(path, options);
|
|
10037
10037
|
const model = createVoiceTraceTimelineViewModel(snapshot, options);
|
|
10038
|
-
return /* @__PURE__ */
|
|
10038
|
+
return /* @__PURE__ */ jsxs17("section", {
|
|
10039
10039
|
className: [
|
|
10040
10040
|
"absolute-voice-trace-timeline",
|
|
10041
10041
|
`absolute-voice-trace-timeline--${model.status}`,
|
|
10042
10042
|
className
|
|
10043
10043
|
].filter(Boolean).join(" "),
|
|
10044
10044
|
children: [
|
|
10045
|
-
/* @__PURE__ */
|
|
10045
|
+
/* @__PURE__ */ jsxs17("header", {
|
|
10046
10046
|
className: "absolute-voice-trace-timeline__header",
|
|
10047
10047
|
children: [
|
|
10048
|
-
/* @__PURE__ */
|
|
10048
|
+
/* @__PURE__ */ jsx18("span", {
|
|
10049
10049
|
className: "absolute-voice-trace-timeline__eyebrow",
|
|
10050
10050
|
children: model.title
|
|
10051
|
-
}
|
|
10052
|
-
/* @__PURE__ */
|
|
10051
|
+
}),
|
|
10052
|
+
/* @__PURE__ */ jsx18("strong", {
|
|
10053
10053
|
className: "absolute-voice-trace-timeline__label",
|
|
10054
10054
|
children: model.label
|
|
10055
|
-
}
|
|
10055
|
+
})
|
|
10056
10056
|
]
|
|
10057
|
-
}
|
|
10058
|
-
/* @__PURE__ */
|
|
10057
|
+
}),
|
|
10058
|
+
/* @__PURE__ */ jsx18("p", {
|
|
10059
10059
|
className: "absolute-voice-trace-timeline__description",
|
|
10060
10060
|
children: model.description
|
|
10061
|
-
}
|
|
10062
|
-
model.sessions.length ? /* @__PURE__ */
|
|
10061
|
+
}),
|
|
10062
|
+
model.sessions.length ? /* @__PURE__ */ jsx18("div", {
|
|
10063
10063
|
className: "absolute-voice-trace-timeline__sessions",
|
|
10064
|
-
children: model.sessions.map((session) => /* @__PURE__ */
|
|
10064
|
+
children: model.sessions.map((session) => /* @__PURE__ */ jsxs17("article", {
|
|
10065
10065
|
className: [
|
|
10066
10066
|
"absolute-voice-trace-timeline__session",
|
|
10067
10067
|
`absolute-voice-trace-timeline__session--${session.status}`
|
|
10068
10068
|
].join(" "),
|
|
10069
10069
|
children: [
|
|
10070
|
-
/* @__PURE__ */
|
|
10070
|
+
/* @__PURE__ */ jsxs17("header", {
|
|
10071
10071
|
children: [
|
|
10072
|
-
/* @__PURE__ */
|
|
10072
|
+
/* @__PURE__ */ jsx18("strong", {
|
|
10073
10073
|
children: session.sessionId
|
|
10074
|
-
}
|
|
10075
|
-
/* @__PURE__ */
|
|
10074
|
+
}),
|
|
10075
|
+
/* @__PURE__ */ jsx18("span", {
|
|
10076
10076
|
children: session.status
|
|
10077
|
-
}
|
|
10077
|
+
})
|
|
10078
10078
|
]
|
|
10079
|
-
}
|
|
10080
|
-
/* @__PURE__ */
|
|
10079
|
+
}),
|
|
10080
|
+
/* @__PURE__ */ jsxs17("p", {
|
|
10081
10081
|
children: [
|
|
10082
10082
|
session.label,
|
|
10083
10083
|
" \xB7 ",
|
|
@@ -10086,36 +10086,36 @@ var VoiceTraceTimeline = ({
|
|
|
10086
10086
|
" ",
|
|
10087
10087
|
session.providerLabel
|
|
10088
10088
|
]
|
|
10089
|
-
}
|
|
10090
|
-
/* @__PURE__ */
|
|
10089
|
+
}),
|
|
10090
|
+
/* @__PURE__ */ jsxs17("p", {
|
|
10091
10091
|
className: "absolute-voice-trace-timeline__actions",
|
|
10092
10092
|
children: [
|
|
10093
|
-
/* @__PURE__ */
|
|
10093
|
+
/* @__PURE__ */ jsx18("a", {
|
|
10094
10094
|
href: session.detailHref,
|
|
10095
10095
|
children: "Open timeline"
|
|
10096
|
-
}
|
|
10097
|
-
session.operationsRecordHref ? /* @__PURE__ */
|
|
10096
|
+
}),
|
|
10097
|
+
session.operationsRecordHref ? /* @__PURE__ */ jsx18("a", {
|
|
10098
10098
|
href: session.operationsRecordHref,
|
|
10099
10099
|
children: "Open operations record"
|
|
10100
|
-
}
|
|
10101
|
-
session.incidentBundleHref ? /* @__PURE__ */
|
|
10100
|
+
}) : null,
|
|
10101
|
+
session.incidentBundleHref ? /* @__PURE__ */ jsx18("a", {
|
|
10102
10102
|
href: session.incidentBundleHref,
|
|
10103
10103
|
children: "Export incident bundle"
|
|
10104
|
-
}
|
|
10104
|
+
}) : null
|
|
10105
10105
|
]
|
|
10106
|
-
}
|
|
10106
|
+
})
|
|
10107
10107
|
]
|
|
10108
|
-
}, session.sessionId
|
|
10109
|
-
}
|
|
10108
|
+
}, session.sessionId))
|
|
10109
|
+
}) : /* @__PURE__ */ jsx18("p", {
|
|
10110
10110
|
className: "absolute-voice-trace-timeline__empty",
|
|
10111
10111
|
children: "Run a voice session to see call timelines."
|
|
10112
|
-
}
|
|
10113
|
-
model.error ? /* @__PURE__ */
|
|
10112
|
+
}),
|
|
10113
|
+
model.error ? /* @__PURE__ */ jsx18("p", {
|
|
10114
10114
|
className: "absolute-voice-trace-timeline__error",
|
|
10115
10115
|
children: model.error
|
|
10116
|
-
}
|
|
10116
|
+
}) : null
|
|
10117
10117
|
]
|
|
10118
|
-
}
|
|
10118
|
+
});
|
|
10119
10119
|
};
|
|
10120
10120
|
// src/react/useVoiceAgentSquadStatus.tsx
|
|
10121
10121
|
import { useEffect as useEffect19, useRef as useRef19, useSyncExternalStore as useSyncExternalStore19 } from "react";
|
|
@@ -10302,7 +10302,7 @@ var renderVoiceAgentSquadStatusHTML = (snapshot, options = {}) => {
|
|
|
10302
10302
|
};
|
|
10303
10303
|
|
|
10304
10304
|
// src/react/VoiceAgentSquadStatus.tsx
|
|
10305
|
-
import {
|
|
10305
|
+
import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10306
10306
|
function VoiceAgentSquadStatus({
|
|
10307
10307
|
path = "/api/voice-traces",
|
|
10308
10308
|
...options
|
|
@@ -10310,61 +10310,61 @@ function VoiceAgentSquadStatus({
|
|
|
10310
10310
|
const snapshot = useVoiceAgentSquadStatus(path, options);
|
|
10311
10311
|
const model = createVoiceAgentSquadStatusViewModel(snapshot, options);
|
|
10312
10312
|
const { current } = model;
|
|
10313
|
-
return /* @__PURE__ */
|
|
10313
|
+
return /* @__PURE__ */ jsxs18("section", {
|
|
10314
10314
|
className: "absolute-voice-agent-squad-status",
|
|
10315
10315
|
children: [
|
|
10316
|
-
/* @__PURE__ */
|
|
10316
|
+
/* @__PURE__ */ jsxs18("header", {
|
|
10317
10317
|
children: [
|
|
10318
|
-
/* @__PURE__ */
|
|
10318
|
+
/* @__PURE__ */ jsx19("span", {
|
|
10319
10319
|
children: model.title
|
|
10320
|
-
}
|
|
10321
|
-
/* @__PURE__ */
|
|
10320
|
+
}),
|
|
10321
|
+
/* @__PURE__ */ jsx19("strong", {
|
|
10322
10322
|
children: model.label
|
|
10323
|
-
}
|
|
10323
|
+
})
|
|
10324
10324
|
]
|
|
10325
|
-
}
|
|
10326
|
-
/* @__PURE__ */
|
|
10325
|
+
}),
|
|
10326
|
+
/* @__PURE__ */ jsx19("p", {
|
|
10327
10327
|
children: model.description
|
|
10328
|
-
}
|
|
10329
|
-
/* @__PURE__ */
|
|
10328
|
+
}),
|
|
10329
|
+
/* @__PURE__ */ jsxs18("dl", {
|
|
10330
10330
|
children: [
|
|
10331
|
-
/* @__PURE__ */
|
|
10331
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
10332
10332
|
children: [
|
|
10333
|
-
/* @__PURE__ */
|
|
10333
|
+
/* @__PURE__ */ jsx19("dt", {
|
|
10334
10334
|
children: "Session"
|
|
10335
|
-
}
|
|
10336
|
-
/* @__PURE__ */
|
|
10335
|
+
}),
|
|
10336
|
+
/* @__PURE__ */ jsx19("dd", {
|
|
10337
10337
|
children: current?.sessionId ?? "n/a"
|
|
10338
|
-
}
|
|
10338
|
+
})
|
|
10339
10339
|
]
|
|
10340
|
-
}
|
|
10341
|
-
/* @__PURE__ */
|
|
10340
|
+
}),
|
|
10341
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
10342
10342
|
children: [
|
|
10343
|
-
/* @__PURE__ */
|
|
10343
|
+
/* @__PURE__ */ jsx19("dt", {
|
|
10344
10344
|
children: "Current specialist"
|
|
10345
|
-
}
|
|
10346
|
-
/* @__PURE__ */
|
|
10345
|
+
}),
|
|
10346
|
+
/* @__PURE__ */ jsx19("dd", {
|
|
10347
10347
|
children: current?.targetAgentId ?? "none"
|
|
10348
|
-
}
|
|
10348
|
+
})
|
|
10349
10349
|
]
|
|
10350
|
-
}
|
|
10351
|
-
/* @__PURE__ */
|
|
10350
|
+
}),
|
|
10351
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
10352
10352
|
children: [
|
|
10353
|
-
/* @__PURE__ */
|
|
10353
|
+
/* @__PURE__ */ jsx19("dt", {
|
|
10354
10354
|
children: "Status"
|
|
10355
|
-
}
|
|
10356
|
-
/* @__PURE__ */
|
|
10355
|
+
}),
|
|
10356
|
+
/* @__PURE__ */ jsx19("dd", {
|
|
10357
10357
|
children: current?.status ?? "idle"
|
|
10358
|
-
}
|
|
10358
|
+
})
|
|
10359
10359
|
]
|
|
10360
|
-
}
|
|
10360
|
+
})
|
|
10361
10361
|
]
|
|
10362
|
-
}
|
|
10363
|
-
model.error ? /* @__PURE__ */
|
|
10362
|
+
}),
|
|
10363
|
+
model.error ? /* @__PURE__ */ jsx19("p", {
|
|
10364
10364
|
children: model.error
|
|
10365
|
-
}
|
|
10365
|
+
}) : null
|
|
10366
10366
|
]
|
|
10367
|
-
}
|
|
10367
|
+
});
|
|
10368
10368
|
}
|
|
10369
10369
|
// src/react/useVoiceTurnLatency.tsx
|
|
10370
10370
|
import { useEffect as useEffect20, useRef as useRef20, useSyncExternalStore as useSyncExternalStore20 } from "react";
|
|
@@ -10602,7 +10602,7 @@ var renderVoiceTurnLatencyHTML = (snapshot, options = {}) => {
|
|
|
10602
10602
|
};
|
|
10603
10603
|
|
|
10604
10604
|
// src/react/VoiceTurnLatency.tsx
|
|
10605
|
-
import {
|
|
10605
|
+
import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
10606
10606
|
var VoiceTurnLatency = ({
|
|
10607
10607
|
className,
|
|
10608
10608
|
path = "/api/turn-latency",
|
|
@@ -10610,80 +10610,80 @@ var VoiceTurnLatency = ({
|
|
|
10610
10610
|
}) => {
|
|
10611
10611
|
const latency = useVoiceTurnLatency(path, options);
|
|
10612
10612
|
const model = createVoiceTurnLatencyViewModel(latency, options);
|
|
10613
|
-
return /* @__PURE__ */
|
|
10613
|
+
return /* @__PURE__ */ jsxs19("section", {
|
|
10614
10614
|
className: [
|
|
10615
10615
|
"absolute-voice-turn-latency",
|
|
10616
10616
|
`absolute-voice-turn-latency--${model.status}`,
|
|
10617
10617
|
className
|
|
10618
10618
|
].filter(Boolean).join(" "),
|
|
10619
10619
|
children: [
|
|
10620
|
-
/* @__PURE__ */
|
|
10620
|
+
/* @__PURE__ */ jsxs19("header", {
|
|
10621
10621
|
className: "absolute-voice-turn-latency__header",
|
|
10622
10622
|
children: [
|
|
10623
|
-
/* @__PURE__ */
|
|
10623
|
+
/* @__PURE__ */ jsx20("span", {
|
|
10624
10624
|
className: "absolute-voice-turn-latency__eyebrow",
|
|
10625
10625
|
children: model.title
|
|
10626
|
-
}
|
|
10627
|
-
/* @__PURE__ */
|
|
10626
|
+
}),
|
|
10627
|
+
/* @__PURE__ */ jsx20("strong", {
|
|
10628
10628
|
className: "absolute-voice-turn-latency__label",
|
|
10629
10629
|
children: model.label
|
|
10630
|
-
}
|
|
10630
|
+
})
|
|
10631
10631
|
]
|
|
10632
|
-
}
|
|
10633
|
-
/* @__PURE__ */
|
|
10632
|
+
}),
|
|
10633
|
+
/* @__PURE__ */ jsx20("p", {
|
|
10634
10634
|
className: "absolute-voice-turn-latency__description",
|
|
10635
10635
|
children: model.description
|
|
10636
|
-
}
|
|
10637
|
-
model.showProofAction ? /* @__PURE__ */
|
|
10636
|
+
}),
|
|
10637
|
+
model.showProofAction ? /* @__PURE__ */ jsx20("button", {
|
|
10638
10638
|
className: "absolute-voice-turn-latency__proof",
|
|
10639
10639
|
onClick: () => {
|
|
10640
10640
|
latency.runProof().catch(() => {});
|
|
10641
10641
|
},
|
|
10642
10642
|
type: "button",
|
|
10643
10643
|
children: model.proofLabel
|
|
10644
|
-
}
|
|
10645
|
-
model.turns.length ? /* @__PURE__ */
|
|
10644
|
+
}) : null,
|
|
10645
|
+
model.turns.length ? /* @__PURE__ */ jsx20("div", {
|
|
10646
10646
|
className: "absolute-voice-turn-latency__turns",
|
|
10647
|
-
children: model.turns.map((turn) => /* @__PURE__ */
|
|
10647
|
+
children: model.turns.map((turn) => /* @__PURE__ */ jsxs19("article", {
|
|
10648
10648
|
className: [
|
|
10649
10649
|
"absolute-voice-turn-latency__turn",
|
|
10650
10650
|
`absolute-voice-turn-latency__turn--${turn.status}`
|
|
10651
10651
|
].join(" "),
|
|
10652
10652
|
children: [
|
|
10653
|
-
/* @__PURE__ */
|
|
10653
|
+
/* @__PURE__ */ jsxs19("header", {
|
|
10654
10654
|
children: [
|
|
10655
|
-
/* @__PURE__ */
|
|
10655
|
+
/* @__PURE__ */ jsx20("strong", {
|
|
10656
10656
|
children: turn.label
|
|
10657
|
-
}
|
|
10658
|
-
/* @__PURE__ */
|
|
10657
|
+
}),
|
|
10658
|
+
/* @__PURE__ */ jsx20("span", {
|
|
10659
10659
|
children: turn.status
|
|
10660
|
-
}
|
|
10660
|
+
})
|
|
10661
10661
|
]
|
|
10662
|
-
}
|
|
10663
|
-
/* @__PURE__ */
|
|
10664
|
-
children: turn.rows.map((row) => /* @__PURE__ */
|
|
10662
|
+
}),
|
|
10663
|
+
/* @__PURE__ */ jsx20("dl", {
|
|
10664
|
+
children: turn.rows.map((row) => /* @__PURE__ */ jsxs19("div", {
|
|
10665
10665
|
children: [
|
|
10666
|
-
/* @__PURE__ */
|
|
10666
|
+
/* @__PURE__ */ jsx20("dt", {
|
|
10667
10667
|
children: row.label
|
|
10668
|
-
}
|
|
10669
|
-
/* @__PURE__ */
|
|
10668
|
+
}),
|
|
10669
|
+
/* @__PURE__ */ jsx20("dd", {
|
|
10670
10670
|
children: row.value
|
|
10671
|
-
}
|
|
10671
|
+
})
|
|
10672
10672
|
]
|
|
10673
|
-
}, row.label
|
|
10674
|
-
}
|
|
10673
|
+
}, row.label))
|
|
10674
|
+
})
|
|
10675
10675
|
]
|
|
10676
|
-
}, `${turn.sessionId}:${turn.turnId}
|
|
10677
|
-
}
|
|
10676
|
+
}, `${turn.sessionId}:${turn.turnId}`))
|
|
10677
|
+
}) : /* @__PURE__ */ jsx20("p", {
|
|
10678
10678
|
className: "absolute-voice-turn-latency__empty",
|
|
10679
10679
|
children: "Complete a voice turn to see latency diagnostics."
|
|
10680
|
-
}
|
|
10681
|
-
model.error ? /* @__PURE__ */
|
|
10680
|
+
}),
|
|
10681
|
+
model.error ? /* @__PURE__ */ jsx20("p", {
|
|
10682
10682
|
className: "absolute-voice-turn-latency__error",
|
|
10683
10683
|
children: model.error
|
|
10684
|
-
}
|
|
10684
|
+
}) : null
|
|
10685
10685
|
]
|
|
10686
|
-
}
|
|
10686
|
+
});
|
|
10687
10687
|
};
|
|
10688
10688
|
// src/react/useVoiceTurnQuality.tsx
|
|
10689
10689
|
import { useEffect as useEffect21, useRef as useRef21, useSyncExternalStore as useSyncExternalStore21 } from "react";
|
|
@@ -10914,7 +10914,7 @@ var renderVoiceTurnQualityHTML = (snapshot, options = {}) => {
|
|
|
10914
10914
|
};
|
|
10915
10915
|
|
|
10916
10916
|
// src/react/VoiceTurnQuality.tsx
|
|
10917
|
-
import {
|
|
10917
|
+
import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
10918
10918
|
var VoiceTurnQuality = ({
|
|
10919
10919
|
className,
|
|
10920
10920
|
path = "/api/turn-quality",
|
|
@@ -10922,75 +10922,75 @@ var VoiceTurnQuality = ({
|
|
|
10922
10922
|
}) => {
|
|
10923
10923
|
const snapshot = useVoiceTurnQuality(path, options);
|
|
10924
10924
|
const model = createVoiceTurnQualityViewModel(snapshot, options);
|
|
10925
|
-
return /* @__PURE__ */
|
|
10925
|
+
return /* @__PURE__ */ jsxs20("section", {
|
|
10926
10926
|
className: [
|
|
10927
10927
|
"absolute-voice-turn-quality",
|
|
10928
10928
|
`absolute-voice-turn-quality--${model.status}`,
|
|
10929
10929
|
className
|
|
10930
10930
|
].filter(Boolean).join(" "),
|
|
10931
10931
|
children: [
|
|
10932
|
-
/* @__PURE__ */
|
|
10932
|
+
/* @__PURE__ */ jsxs20("header", {
|
|
10933
10933
|
className: "absolute-voice-turn-quality__header",
|
|
10934
10934
|
children: [
|
|
10935
|
-
/* @__PURE__ */
|
|
10935
|
+
/* @__PURE__ */ jsx21("span", {
|
|
10936
10936
|
className: "absolute-voice-turn-quality__eyebrow",
|
|
10937
10937
|
children: model.title
|
|
10938
|
-
}
|
|
10939
|
-
/* @__PURE__ */
|
|
10938
|
+
}),
|
|
10939
|
+
/* @__PURE__ */ jsx21("strong", {
|
|
10940
10940
|
className: "absolute-voice-turn-quality__label",
|
|
10941
10941
|
children: model.label
|
|
10942
|
-
}
|
|
10942
|
+
})
|
|
10943
10943
|
]
|
|
10944
|
-
}
|
|
10945
|
-
/* @__PURE__ */
|
|
10944
|
+
}),
|
|
10945
|
+
/* @__PURE__ */ jsx21("p", {
|
|
10946
10946
|
className: "absolute-voice-turn-quality__description",
|
|
10947
10947
|
children: model.description
|
|
10948
|
-
}
|
|
10949
|
-
model.turns.length ? /* @__PURE__ */
|
|
10948
|
+
}),
|
|
10949
|
+
model.turns.length ? /* @__PURE__ */ jsx21("div", {
|
|
10950
10950
|
className: "absolute-voice-turn-quality__turns",
|
|
10951
|
-
children: model.turns.map((turn) => /* @__PURE__ */
|
|
10951
|
+
children: model.turns.map((turn) => /* @__PURE__ */ jsxs20("article", {
|
|
10952
10952
|
className: [
|
|
10953
10953
|
"absolute-voice-turn-quality__turn",
|
|
10954
10954
|
`absolute-voice-turn-quality__turn--${turn.status}`
|
|
10955
10955
|
].join(" "),
|
|
10956
10956
|
children: [
|
|
10957
|
-
/* @__PURE__ */
|
|
10957
|
+
/* @__PURE__ */ jsxs20("header", {
|
|
10958
10958
|
children: [
|
|
10959
|
-
/* @__PURE__ */
|
|
10959
|
+
/* @__PURE__ */ jsx21("strong", {
|
|
10960
10960
|
children: turn.label
|
|
10961
|
-
}
|
|
10962
|
-
/* @__PURE__ */
|
|
10961
|
+
}),
|
|
10962
|
+
/* @__PURE__ */ jsx21("span", {
|
|
10963
10963
|
children: turn.status
|
|
10964
|
-
}
|
|
10964
|
+
})
|
|
10965
10965
|
]
|
|
10966
|
-
}
|
|
10967
|
-
/* @__PURE__ */
|
|
10966
|
+
}),
|
|
10967
|
+
/* @__PURE__ */ jsx21("p", {
|
|
10968
10968
|
children: turn.detail
|
|
10969
|
-
}
|
|
10970
|
-
/* @__PURE__ */
|
|
10971
|
-
children: turn.rows.map((row) => /* @__PURE__ */
|
|
10969
|
+
}),
|
|
10970
|
+
/* @__PURE__ */ jsx21("dl", {
|
|
10971
|
+
children: turn.rows.map((row) => /* @__PURE__ */ jsxs20("div", {
|
|
10972
10972
|
children: [
|
|
10973
|
-
/* @__PURE__ */
|
|
10973
|
+
/* @__PURE__ */ jsx21("dt", {
|
|
10974
10974
|
children: row.label
|
|
10975
|
-
}
|
|
10976
|
-
/* @__PURE__ */
|
|
10975
|
+
}),
|
|
10976
|
+
/* @__PURE__ */ jsx21("dd", {
|
|
10977
10977
|
children: row.value
|
|
10978
|
-
}
|
|
10978
|
+
})
|
|
10979
10979
|
]
|
|
10980
|
-
}, row.label
|
|
10981
|
-
}
|
|
10980
|
+
}, row.label))
|
|
10981
|
+
})
|
|
10982
10982
|
]
|
|
10983
|
-
}, `${turn.sessionId}:${turn.turnId}
|
|
10984
|
-
}
|
|
10983
|
+
}, `${turn.sessionId}:${turn.turnId}`))
|
|
10984
|
+
}) : /* @__PURE__ */ jsx21("p", {
|
|
10985
10985
|
className: "absolute-voice-turn-quality__empty",
|
|
10986
10986
|
children: "Complete a voice turn to see STT quality diagnostics."
|
|
10987
|
-
}
|
|
10988
|
-
model.error ? /* @__PURE__ */
|
|
10987
|
+
}),
|
|
10988
|
+
model.error ? /* @__PURE__ */ jsx21("p", {
|
|
10989
10989
|
className: "absolute-voice-turn-quality__error",
|
|
10990
10990
|
children: model.error
|
|
10991
|
-
}
|
|
10991
|
+
}) : null
|
|
10992
10992
|
]
|
|
10993
|
-
}
|
|
10993
|
+
});
|
|
10994
10994
|
};
|
|
10995
10995
|
// src/react/useVoiceLiveOps.tsx
|
|
10996
10996
|
import { useEffect as useEffect22, useRef as useRef22, useSyncExternalStore as useSyncExternalStore22 } from "react";
|
|
@@ -13237,7 +13237,7 @@ var renderVoiceWidgetHTML = (model) => {
|
|
|
13237
13237
|
};
|
|
13238
13238
|
|
|
13239
13239
|
// src/react/VoiceWidget.tsx
|
|
13240
|
-
import {
|
|
13240
|
+
import { jsx as jsx22, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
13241
13241
|
var resolveRadius2 = (radius) => typeof radius === "number" ? `${radius}px` : radius;
|
|
13242
13242
|
var buttonStyle = (variant, theme) => ({
|
|
13243
13243
|
background: variant === "primary" ? theme.accent : variant === "danger" ? theme.errorAccent : "transparent",
|
|
@@ -13289,7 +13289,7 @@ var VoiceWidget = ({
|
|
|
13289
13289
|
theme,
|
|
13290
13290
|
title
|
|
13291
13291
|
]);
|
|
13292
|
-
return /* @__PURE__ */
|
|
13292
|
+
return /* @__PURE__ */ jsxs21("div", {
|
|
13293
13293
|
"aria-live": "polite",
|
|
13294
13294
|
className: className ?? model.classes.container,
|
|
13295
13295
|
"data-agent-state": model.agentState,
|
|
@@ -13303,7 +13303,7 @@ var VoiceWidget = ({
|
|
|
13303
13303
|
padding: "20px 22px"
|
|
13304
13304
|
},
|
|
13305
13305
|
children: [
|
|
13306
|
-
/* @__PURE__ */
|
|
13306
|
+
/* @__PURE__ */ jsxs21("div", {
|
|
13307
13307
|
style: {
|
|
13308
13308
|
alignItems: "center",
|
|
13309
13309
|
display: "flex",
|
|
@@ -13311,7 +13311,7 @@ var VoiceWidget = ({
|
|
|
13311
13311
|
marginBottom: 12
|
|
13312
13312
|
},
|
|
13313
13313
|
children: [
|
|
13314
|
-
/* @__PURE__ */
|
|
13314
|
+
/* @__PURE__ */ jsx22("span", {
|
|
13315
13315
|
"aria-hidden": "true",
|
|
13316
13316
|
style: {
|
|
13317
13317
|
background: model.errorMessage ? model.theme.errorAccent : model.agentState === "idle" ? "rgba(148, 163, 184, 0.6)" : model.theme.accent,
|
|
@@ -13319,22 +13319,22 @@ var VoiceWidget = ({
|
|
|
13319
13319
|
height: 10,
|
|
13320
13320
|
width: 10
|
|
13321
13321
|
}
|
|
13322
|
-
}
|
|
13323
|
-
/* @__PURE__ */
|
|
13322
|
+
}),
|
|
13323
|
+
/* @__PURE__ */ jsx22("strong", {
|
|
13324
13324
|
style: { fontSize: 15 },
|
|
13325
13325
|
children: model.title
|
|
13326
|
-
}
|
|
13327
|
-
/* @__PURE__ */
|
|
13326
|
+
}),
|
|
13327
|
+
/* @__PURE__ */ jsx22("span", {
|
|
13328
13328
|
style: {
|
|
13329
13329
|
fontSize: 13,
|
|
13330
13330
|
marginLeft: "auto",
|
|
13331
13331
|
opacity: 0.7
|
|
13332
13332
|
},
|
|
13333
13333
|
children: model.statusLabel
|
|
13334
|
-
}
|
|
13334
|
+
})
|
|
13335
13335
|
]
|
|
13336
|
-
}
|
|
13337
|
-
model.partial ? /* @__PURE__ */
|
|
13336
|
+
}),
|
|
13337
|
+
model.partial ? /* @__PURE__ */ jsxs21("p", {
|
|
13338
13338
|
style: {
|
|
13339
13339
|
fontSize: 13,
|
|
13340
13340
|
margin: "8px 0 12px",
|
|
@@ -13346,44 +13346,44 @@ var VoiceWidget = ({
|
|
|
13346
13346
|
model.partial,
|
|
13347
13347
|
"\u201D"
|
|
13348
13348
|
]
|
|
13349
|
-
}
|
|
13350
|
-
/* @__PURE__ */
|
|
13349
|
+
}) : null,
|
|
13350
|
+
/* @__PURE__ */ jsxs21("div", {
|
|
13351
13351
|
style: { display: "flex", gap: 10 },
|
|
13352
13352
|
children: [
|
|
13353
|
-
model.controls.canStart ? /* @__PURE__ */
|
|
13353
|
+
model.controls.canStart ? /* @__PURE__ */ jsx22("button", {
|
|
13354
13354
|
onClick: () => {
|
|
13355
13355
|
controller.startRecording();
|
|
13356
13356
|
},
|
|
13357
13357
|
style: buttonStyle("primary", model.theme),
|
|
13358
13358
|
type: "button",
|
|
13359
13359
|
children: model.labels.startCall
|
|
13360
|
-
}
|
|
13361
|
-
model.controls.canMute ? /* @__PURE__ */
|
|
13360
|
+
}) : null,
|
|
13361
|
+
model.controls.canMute ? /* @__PURE__ */ jsx22("button", {
|
|
13362
13362
|
onClick: () => controller.stopRecording(),
|
|
13363
13363
|
style: buttonStyle("secondary", model.theme),
|
|
13364
13364
|
type: "button",
|
|
13365
13365
|
children: model.labels.mute
|
|
13366
|
-
}
|
|
13367
|
-
model.controls.canEnd ? /* @__PURE__ */
|
|
13366
|
+
}) : null,
|
|
13367
|
+
model.controls.canEnd ? /* @__PURE__ */ jsx22("button", {
|
|
13368
13368
|
onClick: () => {
|
|
13369
13369
|
controller.close();
|
|
13370
13370
|
},
|
|
13371
13371
|
style: buttonStyle("danger", model.theme),
|
|
13372
13372
|
type: "button",
|
|
13373
13373
|
children: model.labels.endCall
|
|
13374
|
-
}
|
|
13374
|
+
}) : null
|
|
13375
13375
|
]
|
|
13376
|
-
}
|
|
13377
|
-
model.errorMessage ? /* @__PURE__ */
|
|
13376
|
+
}),
|
|
13377
|
+
model.errorMessage ? /* @__PURE__ */ jsx22("p", {
|
|
13378
13378
|
style: {
|
|
13379
13379
|
color: model.theme.errorAccent,
|
|
13380
13380
|
fontSize: 12,
|
|
13381
13381
|
marginTop: 12
|
|
13382
13382
|
},
|
|
13383
13383
|
children: model.errorMessage
|
|
13384
|
-
}
|
|
13384
|
+
}) : null
|
|
13385
13385
|
]
|
|
13386
|
-
}
|
|
13386
|
+
});
|
|
13387
13387
|
};
|
|
13388
13388
|
// src/react/VoiceCallPlayer.tsx
|
|
13389
13389
|
import { useEffect as useEffect26, useMemo as useMemo2, useRef as useRef27, useState } from "react";
|
|
@@ -13539,7 +13539,7 @@ var formatVoiceCallPlayerTimestamp = (ms) => {
|
|
|
13539
13539
|
};
|
|
13540
13540
|
|
|
13541
13541
|
// src/react/VoiceCallPlayer.tsx
|
|
13542
|
-
import {
|
|
13542
|
+
import { jsx as jsx23, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
13543
13543
|
var VoiceCallPlayer = ({
|
|
13544
13544
|
audioUrl,
|
|
13545
13545
|
className,
|
|
@@ -13612,7 +13612,7 @@ var VoiceCallPlayer = ({
|
|
|
13612
13612
|
const handleSeek = (ratio) => {
|
|
13613
13613
|
player.seekMs(state.durationMs * ratio);
|
|
13614
13614
|
};
|
|
13615
|
-
return /* @__PURE__ */
|
|
13615
|
+
return /* @__PURE__ */ jsxs22("section", {
|
|
13616
13616
|
"aria-label": "voice-call-player",
|
|
13617
13617
|
className: className ?? "absolute-voice-call-player",
|
|
13618
13618
|
style: {
|
|
@@ -13623,7 +13623,7 @@ var VoiceCallPlayer = ({
|
|
|
13623
13623
|
padding: 20
|
|
13624
13624
|
},
|
|
13625
13625
|
children: [
|
|
13626
|
-
/* @__PURE__ */
|
|
13626
|
+
/* @__PURE__ */ jsxs22("header", {
|
|
13627
13627
|
style: {
|
|
13628
13628
|
alignItems: "center",
|
|
13629
13629
|
display: "flex",
|
|
@@ -13631,11 +13631,11 @@ var VoiceCallPlayer = ({
|
|
|
13631
13631
|
marginBottom: 12
|
|
13632
13632
|
},
|
|
13633
13633
|
children: [
|
|
13634
|
-
/* @__PURE__ */
|
|
13634
|
+
/* @__PURE__ */ jsx23("strong", {
|
|
13635
13635
|
style: { fontSize: 16 },
|
|
13636
13636
|
children: title
|
|
13637
|
-
}
|
|
13638
|
-
/* @__PURE__ */
|
|
13637
|
+
}),
|
|
13638
|
+
/* @__PURE__ */ jsxs22("span", {
|
|
13639
13639
|
style: { fontSize: 13, marginLeft: "auto", opacity: 0.7 },
|
|
13640
13640
|
children: [
|
|
13641
13641
|
formatVoiceCallPlayerTimestamp(state.currentTimeMs),
|
|
@@ -13643,10 +13643,10 @@ var VoiceCallPlayer = ({
|
|
|
13643
13643
|
" ",
|
|
13644
13644
|
formatVoiceCallPlayerTimestamp(state.durationMs)
|
|
13645
13645
|
]
|
|
13646
|
-
}
|
|
13646
|
+
})
|
|
13647
13647
|
]
|
|
13648
|
-
}
|
|
13649
|
-
/* @__PURE__ */
|
|
13648
|
+
}),
|
|
13649
|
+
/* @__PURE__ */ jsx23("audio", {
|
|
13650
13650
|
onEnded: () => player.setPlaying(false),
|
|
13651
13651
|
onError: () => player.setError("Audio playback error"),
|
|
13652
13652
|
onLoadedMetadata,
|
|
@@ -13657,8 +13657,8 @@ var VoiceCallPlayer = ({
|
|
|
13657
13657
|
ref: audioRef,
|
|
13658
13658
|
src: state.audioUrl,
|
|
13659
13659
|
style: { display: "none" }
|
|
13660
|
-
}
|
|
13661
|
-
/* @__PURE__ */
|
|
13660
|
+
}),
|
|
13661
|
+
/* @__PURE__ */ jsxs22("div", {
|
|
13662
13662
|
style: {
|
|
13663
13663
|
alignItems: "center",
|
|
13664
13664
|
display: "flex",
|
|
@@ -13666,7 +13666,7 @@ var VoiceCallPlayer = ({
|
|
|
13666
13666
|
marginBottom: 14
|
|
13667
13667
|
},
|
|
13668
13668
|
children: [
|
|
13669
|
-
/* @__PURE__ */
|
|
13669
|
+
/* @__PURE__ */ jsx23("button", {
|
|
13670
13670
|
"aria-label": state.isPlaying ? "Pause" : "Play",
|
|
13671
13671
|
onClick: () => {
|
|
13672
13672
|
if (state.isPlaying) {
|
|
@@ -13687,8 +13687,8 @@ var VoiceCallPlayer = ({
|
|
|
13687
13687
|
},
|
|
13688
13688
|
type: "button",
|
|
13689
13689
|
children: state.isPlaying ? "Pause" : "Play"
|
|
13690
|
-
}
|
|
13691
|
-
/* @__PURE__ */
|
|
13690
|
+
}),
|
|
13691
|
+
/* @__PURE__ */ jsx23("input", {
|
|
13692
13692
|
"aria-label": "seek",
|
|
13693
13693
|
max: 1,
|
|
13694
13694
|
min: 0,
|
|
@@ -13697,8 +13697,8 @@ var VoiceCallPlayer = ({
|
|
|
13697
13697
|
style: { flex: 1 },
|
|
13698
13698
|
type: "range",
|
|
13699
13699
|
value: state.durationMs > 0 ? state.currentTimeMs / state.durationMs : 0
|
|
13700
|
-
}
|
|
13701
|
-
/* @__PURE__ */
|
|
13700
|
+
}),
|
|
13701
|
+
/* @__PURE__ */ jsx23("select", {
|
|
13702
13702
|
"aria-label": "playback rate",
|
|
13703
13703
|
onChange: (event) => player.setPlaybackRate(Number(event.target.value)),
|
|
13704
13704
|
style: {
|
|
@@ -13710,17 +13710,17 @@ var VoiceCallPlayer = ({
|
|
|
13710
13710
|
padding: "4px 8px"
|
|
13711
13711
|
},
|
|
13712
13712
|
value: state.playbackRate,
|
|
13713
|
-
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((rate) => /* @__PURE__ */
|
|
13713
|
+
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((rate) => /* @__PURE__ */ jsxs22("option", {
|
|
13714
13714
|
value: rate,
|
|
13715
13715
|
children: [
|
|
13716
13716
|
rate,
|
|
13717
13717
|
"\xD7"
|
|
13718
13718
|
]
|
|
13719
|
-
}, rate
|
|
13720
|
-
}
|
|
13719
|
+
}, rate))
|
|
13720
|
+
})
|
|
13721
13721
|
]
|
|
13722
|
-
}
|
|
13723
|
-
/* @__PURE__ */
|
|
13722
|
+
}),
|
|
13723
|
+
/* @__PURE__ */ jsx23("ol", {
|
|
13724
13724
|
style: {
|
|
13725
13725
|
display: "flex",
|
|
13726
13726
|
flexDirection: "column",
|
|
@@ -13734,7 +13734,7 @@ var VoiceCallPlayer = ({
|
|
|
13734
13734
|
children: player.transcripts().map((transcript) => {
|
|
13735
13735
|
const active = transcript.id === state.activeTranscriptId;
|
|
13736
13736
|
const startedAt = transcript.startedAtMs ?? 0;
|
|
13737
|
-
return /* @__PURE__ */
|
|
13737
|
+
return /* @__PURE__ */ jsxs22("li", {
|
|
13738
13738
|
onClick: () => player.seekToTranscript(transcript.id),
|
|
13739
13739
|
style: {
|
|
13740
13740
|
background: active ? "rgba(59,130,246,0.18)" : "transparent",
|
|
@@ -13744,23 +13744,23 @@ var VoiceCallPlayer = ({
|
|
|
13744
13744
|
padding: "8px 12px"
|
|
13745
13745
|
},
|
|
13746
13746
|
children: [
|
|
13747
|
-
/* @__PURE__ */
|
|
13747
|
+
/* @__PURE__ */ jsx23("div", {
|
|
13748
13748
|
style: { color: "#cbd5e1", fontSize: 12 },
|
|
13749
13749
|
children: formatVoiceCallPlayerTimestamp(startedAt)
|
|
13750
|
-
}
|
|
13751
|
-
/* @__PURE__ */
|
|
13750
|
+
}),
|
|
13751
|
+
/* @__PURE__ */ jsx23("div", {
|
|
13752
13752
|
children: transcript.text
|
|
13753
|
-
}
|
|
13753
|
+
})
|
|
13754
13754
|
]
|
|
13755
|
-
}, transcript.id
|
|
13755
|
+
}, transcript.id);
|
|
13756
13756
|
})
|
|
13757
|
-
}
|
|
13758
|
-
state.error ? /* @__PURE__ */
|
|
13757
|
+
}),
|
|
13758
|
+
state.error ? /* @__PURE__ */ jsx23("p", {
|
|
13759
13759
|
style: { color: "#ef4444", fontSize: 12, marginTop: 12 },
|
|
13760
13760
|
children: state.error
|
|
13761
|
-
}
|
|
13761
|
+
}) : null
|
|
13762
13762
|
]
|
|
13763
|
-
}
|
|
13763
|
+
});
|
|
13764
13764
|
};
|
|
13765
13765
|
// src/client/costDashboard.ts
|
|
13766
13766
|
var padTwo = (value) => String(value).padStart(2, "0");
|
|
@@ -13843,7 +13843,7 @@ var buildVoiceCostDashboardReport = (options) => {
|
|
|
13843
13843
|
};
|
|
13844
13844
|
|
|
13845
13845
|
// src/react/VoiceCostDashboard.tsx
|
|
13846
|
-
import {
|
|
13846
|
+
import { jsx as jsx24, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
13847
13847
|
var formatUsd = (value, currency = "USD") => new Intl.NumberFormat("en-US", {
|
|
13848
13848
|
currency,
|
|
13849
13849
|
maximumFractionDigits: 4,
|
|
@@ -13851,43 +13851,43 @@ var formatUsd = (value, currency = "USD") => new Intl.NumberFormat("en-US", {
|
|
|
13851
13851
|
style: "currency"
|
|
13852
13852
|
}).format(value);
|
|
13853
13853
|
var formatInteger = (value) => new Intl.NumberFormat("en-US").format(value);
|
|
13854
|
-
var renderRow = (bucket, currency, isTotal) => /* @__PURE__ */
|
|
13854
|
+
var renderRow = (bucket, currency, isTotal) => /* @__PURE__ */ jsxs23("tr", {
|
|
13855
13855
|
"data-bucket-key": bucket.bucketKey,
|
|
13856
13856
|
style: {
|
|
13857
13857
|
borderTop: isTotal ? "2px solid rgba(255,255,255,0.15)" : undefined,
|
|
13858
13858
|
fontWeight: isTotal ? 600 : undefined
|
|
13859
13859
|
},
|
|
13860
13860
|
children: [
|
|
13861
|
-
/* @__PURE__ */
|
|
13861
|
+
/* @__PURE__ */ jsx24("td", {
|
|
13862
13862
|
style: { padding: "8px 12px" },
|
|
13863
13863
|
children: bucket.bucketKey
|
|
13864
|
-
}
|
|
13865
|
-
/* @__PURE__ */
|
|
13864
|
+
}),
|
|
13865
|
+
/* @__PURE__ */ jsx24("td", {
|
|
13866
13866
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13867
13867
|
children: formatInteger(bucket.callCount)
|
|
13868
|
-
}
|
|
13869
|
-
/* @__PURE__ */
|
|
13868
|
+
}),
|
|
13869
|
+
/* @__PURE__ */ jsx24("td", {
|
|
13870
13870
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13871
13871
|
children: formatUsd(bucket.llmUsd, currency)
|
|
13872
|
-
}
|
|
13873
|
-
/* @__PURE__ */
|
|
13872
|
+
}),
|
|
13873
|
+
/* @__PURE__ */ jsx24("td", {
|
|
13874
13874
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13875
13875
|
children: formatUsd(bucket.ttsUsd, currency)
|
|
13876
|
-
}
|
|
13877
|
-
/* @__PURE__ */
|
|
13876
|
+
}),
|
|
13877
|
+
/* @__PURE__ */ jsx24("td", {
|
|
13878
13878
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13879
13879
|
children: formatUsd(bucket.sttUsd, currency)
|
|
13880
|
-
}
|
|
13881
|
-
/* @__PURE__ */
|
|
13880
|
+
}),
|
|
13881
|
+
/* @__PURE__ */ jsx24("td", {
|
|
13882
13882
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13883
13883
|
children: formatUsd(bucket.telephonyUsd, currency)
|
|
13884
|
-
}
|
|
13885
|
-
/* @__PURE__ */
|
|
13884
|
+
}),
|
|
13885
|
+
/* @__PURE__ */ jsx24("td", {
|
|
13886
13886
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13887
13887
|
children: formatUsd(bucket.totalUsd, currency)
|
|
13888
|
-
}
|
|
13888
|
+
})
|
|
13889
13889
|
]
|
|
13890
|
-
}, bucket.bucketKey
|
|
13890
|
+
}, bucket.bucketKey);
|
|
13891
13891
|
var VoiceCostDashboard = ({
|
|
13892
13892
|
className,
|
|
13893
13893
|
currency = "USD",
|
|
@@ -13896,7 +13896,7 @@ var VoiceCostDashboard = ({
|
|
|
13896
13896
|
...options
|
|
13897
13897
|
}) => {
|
|
13898
13898
|
const report = buildVoiceCostDashboardReport(options);
|
|
13899
|
-
return /* @__PURE__ */
|
|
13899
|
+
return /* @__PURE__ */ jsxs23("section", {
|
|
13900
13900
|
"aria-label": "voice-cost-dashboard",
|
|
13901
13901
|
className: className ?? "absolute-voice-cost-dashboard",
|
|
13902
13902
|
style: {
|
|
@@ -13907,7 +13907,7 @@ var VoiceCostDashboard = ({
|
|
|
13907
13907
|
padding: 20
|
|
13908
13908
|
},
|
|
13909
13909
|
children: [
|
|
13910
|
-
/* @__PURE__ */
|
|
13910
|
+
/* @__PURE__ */ jsxs23("header", {
|
|
13911
13911
|
style: {
|
|
13912
13912
|
alignItems: "baseline",
|
|
13913
13913
|
display: "flex",
|
|
@@ -13915,11 +13915,11 @@ var VoiceCostDashboard = ({
|
|
|
13915
13915
|
marginBottom: 12
|
|
13916
13916
|
},
|
|
13917
13917
|
children: [
|
|
13918
|
-
/* @__PURE__ */
|
|
13918
|
+
/* @__PURE__ */ jsx24("strong", {
|
|
13919
13919
|
style: { fontSize: 16 },
|
|
13920
13920
|
children: title
|
|
13921
|
-
}
|
|
13922
|
-
/* @__PURE__ */
|
|
13921
|
+
}),
|
|
13922
|
+
/* @__PURE__ */ jsxs23("span", {
|
|
13923
13923
|
style: { fontSize: 13, opacity: 0.7 },
|
|
13924
13924
|
children: [
|
|
13925
13925
|
report.buckets.length,
|
|
@@ -13927,64 +13927,64 @@ var VoiceCostDashboard = ({
|
|
|
13927
13927
|
" ",
|
|
13928
13928
|
formatUsd(report.grandTotal.totalUsd, currency)
|
|
13929
13929
|
]
|
|
13930
|
-
}
|
|
13930
|
+
})
|
|
13931
13931
|
]
|
|
13932
|
-
}
|
|
13933
|
-
report.buckets.length === 0 ? /* @__PURE__ */
|
|
13932
|
+
}),
|
|
13933
|
+
report.buckets.length === 0 ? /* @__PURE__ */ jsx24("p", {
|
|
13934
13934
|
style: { fontSize: 13, opacity: 0.7 },
|
|
13935
13935
|
children: emptyMessage
|
|
13936
|
-
}
|
|
13936
|
+
}) : /* @__PURE__ */ jsxs23("table", {
|
|
13937
13937
|
style: {
|
|
13938
13938
|
borderCollapse: "collapse",
|
|
13939
13939
|
fontSize: 13,
|
|
13940
13940
|
width: "100%"
|
|
13941
13941
|
},
|
|
13942
13942
|
children: [
|
|
13943
|
-
/* @__PURE__ */
|
|
13944
|
-
children: /* @__PURE__ */
|
|
13943
|
+
/* @__PURE__ */ jsx24("thead", {
|
|
13944
|
+
children: /* @__PURE__ */ jsxs23("tr", {
|
|
13945
13945
|
style: { opacity: 0.7, textAlign: "left" },
|
|
13946
13946
|
children: [
|
|
13947
|
-
/* @__PURE__ */
|
|
13947
|
+
/* @__PURE__ */ jsx24("th", {
|
|
13948
13948
|
style: { padding: "8px 12px" },
|
|
13949
13949
|
children: "Bucket"
|
|
13950
|
-
}
|
|
13951
|
-
/* @__PURE__ */
|
|
13950
|
+
}),
|
|
13951
|
+
/* @__PURE__ */ jsx24("th", {
|
|
13952
13952
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13953
13953
|
children: "Calls"
|
|
13954
|
-
}
|
|
13955
|
-
/* @__PURE__ */
|
|
13954
|
+
}),
|
|
13955
|
+
/* @__PURE__ */ jsx24("th", {
|
|
13956
13956
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13957
13957
|
children: "LLM"
|
|
13958
|
-
}
|
|
13959
|
-
/* @__PURE__ */
|
|
13958
|
+
}),
|
|
13959
|
+
/* @__PURE__ */ jsx24("th", {
|
|
13960
13960
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13961
13961
|
children: "TTS"
|
|
13962
|
-
}
|
|
13963
|
-
/* @__PURE__ */
|
|
13962
|
+
}),
|
|
13963
|
+
/* @__PURE__ */ jsx24("th", {
|
|
13964
13964
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13965
13965
|
children: "STT"
|
|
13966
|
-
}
|
|
13967
|
-
/* @__PURE__ */
|
|
13966
|
+
}),
|
|
13967
|
+
/* @__PURE__ */ jsx24("th", {
|
|
13968
13968
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13969
13969
|
children: "Tel."
|
|
13970
|
-
}
|
|
13971
|
-
/* @__PURE__ */
|
|
13970
|
+
}),
|
|
13971
|
+
/* @__PURE__ */ jsx24("th", {
|
|
13972
13972
|
style: { padding: "8px 12px", textAlign: "right" },
|
|
13973
13973
|
children: "Total"
|
|
13974
|
-
}
|
|
13974
|
+
})
|
|
13975
13975
|
]
|
|
13976
|
-
}
|
|
13977
|
-
}
|
|
13978
|
-
/* @__PURE__ */
|
|
13976
|
+
})
|
|
13977
|
+
}),
|
|
13978
|
+
/* @__PURE__ */ jsxs23("tbody", {
|
|
13979
13979
|
children: [
|
|
13980
13980
|
report.buckets.map((bucket) => renderRow(bucket, currency, false)),
|
|
13981
13981
|
renderRow(report.grandTotal, currency, true)
|
|
13982
13982
|
]
|
|
13983
|
-
}
|
|
13983
|
+
})
|
|
13984
13984
|
]
|
|
13985
|
-
}
|
|
13985
|
+
})
|
|
13986
13986
|
]
|
|
13987
|
-
}
|
|
13987
|
+
});
|
|
13988
13988
|
};
|
|
13989
13989
|
// src/react/VoiceLiveAgentConsole.tsx
|
|
13990
13990
|
import { useEffect as useEffect27, useMemo as useMemo3, useState as useState2 } from "react";
|
|
@@ -14170,7 +14170,7 @@ var createLiveAgentConsole = (options) => {
|
|
|
14170
14170
|
};
|
|
14171
14171
|
|
|
14172
14172
|
// src/react/VoiceLiveAgentConsole.tsx
|
|
14173
|
-
import {
|
|
14173
|
+
import { jsx as jsx25, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
14174
14174
|
var VoiceLiveAgentConsole = ({
|
|
14175
14175
|
className,
|
|
14176
14176
|
console: consoleProp,
|
|
@@ -14197,7 +14197,7 @@ var VoiceLiveAgentConsole = ({
|
|
|
14197
14197
|
const handleRelease = () => {
|
|
14198
14198
|
console.releaseTakeover();
|
|
14199
14199
|
};
|
|
14200
|
-
return /* @__PURE__ */
|
|
14200
|
+
return /* @__PURE__ */ jsxs24("section", {
|
|
14201
14201
|
"aria-label": "voice-live-agent-console",
|
|
14202
14202
|
className: className ?? "absolute-voice-live-agent-console",
|
|
14203
14203
|
"data-takeover": state.hasTakeover ? "true" : "false",
|
|
@@ -14209,7 +14209,7 @@ var VoiceLiveAgentConsole = ({
|
|
|
14209
14209
|
padding: 20
|
|
14210
14210
|
},
|
|
14211
14211
|
children: [
|
|
14212
|
-
/* @__PURE__ */
|
|
14212
|
+
/* @__PURE__ */ jsxs24("header", {
|
|
14213
14213
|
style: {
|
|
14214
14214
|
alignItems: "center",
|
|
14215
14215
|
display: "flex",
|
|
@@ -14217,11 +14217,11 @@ var VoiceLiveAgentConsole = ({
|
|
|
14217
14217
|
marginBottom: 12
|
|
14218
14218
|
},
|
|
14219
14219
|
children: [
|
|
14220
|
-
/* @__PURE__ */
|
|
14220
|
+
/* @__PURE__ */ jsx25("strong", {
|
|
14221
14221
|
style: { fontSize: 16 },
|
|
14222
14222
|
children: title
|
|
14223
|
-
}
|
|
14224
|
-
/* @__PURE__ */
|
|
14223
|
+
}),
|
|
14224
|
+
/* @__PURE__ */ jsx25("span", {
|
|
14225
14225
|
style: {
|
|
14226
14226
|
background: state.hasTakeover ? "rgba(239,68,68,0.18)" : "rgba(59,130,246,0.18)",
|
|
14227
14227
|
borderRadius: 999,
|
|
@@ -14230,14 +14230,14 @@ var VoiceLiveAgentConsole = ({
|
|
|
14230
14230
|
textTransform: "uppercase"
|
|
14231
14231
|
},
|
|
14232
14232
|
children: state.hasTakeover ? "Human" : "Agent"
|
|
14233
|
-
}
|
|
14234
|
-
/* @__PURE__ */
|
|
14233
|
+
}),
|
|
14234
|
+
/* @__PURE__ */ jsx25("span", {
|
|
14235
14235
|
style: { fontSize: 13, marginLeft: "auto", opacity: 0.7 },
|
|
14236
14236
|
children: state.view.sessionId
|
|
14237
|
-
}
|
|
14237
|
+
})
|
|
14238
14238
|
]
|
|
14239
|
-
}
|
|
14240
|
-
state.caller ? /* @__PURE__ */
|
|
14239
|
+
}),
|
|
14240
|
+
state.caller ? /* @__PURE__ */ jsxs24("div", {
|
|
14241
14241
|
style: {
|
|
14242
14242
|
background: "rgba(255,255,255,0.06)",
|
|
14243
14243
|
borderRadius: 12,
|
|
@@ -14246,15 +14246,15 @@ var VoiceLiveAgentConsole = ({
|
|
|
14246
14246
|
padding: 12
|
|
14247
14247
|
},
|
|
14248
14248
|
children: [
|
|
14249
|
-
/* @__PURE__ */
|
|
14249
|
+
/* @__PURE__ */ jsx25("div", {
|
|
14250
14250
|
style: { fontSize: 11, opacity: 0.7, textTransform: "uppercase" },
|
|
14251
14251
|
children: "Caller"
|
|
14252
|
-
}
|
|
14253
|
-
/* @__PURE__ */
|
|
14252
|
+
}),
|
|
14253
|
+
/* @__PURE__ */ jsx25("div", {
|
|
14254
14254
|
style: { marginTop: 4 },
|
|
14255
14255
|
children: state.caller.summary
|
|
14256
|
-
}
|
|
14257
|
-
Object.keys(state.caller.facts ?? {}).length > 0 ? /* @__PURE__ */
|
|
14256
|
+
}),
|
|
14257
|
+
Object.keys(state.caller.facts ?? {}).length > 0 ? /* @__PURE__ */ jsx25("dl", {
|
|
14258
14258
|
style: {
|
|
14259
14259
|
display: "grid",
|
|
14260
14260
|
fontSize: 12,
|
|
@@ -14262,35 +14262,35 @@ var VoiceLiveAgentConsole = ({
|
|
|
14262
14262
|
gridTemplateColumns: "auto 1fr",
|
|
14263
14263
|
margin: "8px 0 0"
|
|
14264
14264
|
},
|
|
14265
|
-
children: Object.entries(state.caller.facts).map(([key, value]) => /* @__PURE__ */
|
|
14265
|
+
children: Object.entries(state.caller.facts).map(([key, value]) => /* @__PURE__ */ jsxs24("div", {
|
|
14266
14266
|
style: { display: "contents" },
|
|
14267
14267
|
children: [
|
|
14268
|
-
/* @__PURE__ */
|
|
14268
|
+
/* @__PURE__ */ jsx25("dt", {
|
|
14269
14269
|
style: { opacity: 0.7 },
|
|
14270
14270
|
children: key
|
|
14271
|
-
}
|
|
14272
|
-
/* @__PURE__ */
|
|
14271
|
+
}),
|
|
14272
|
+
/* @__PURE__ */ jsx25("dd", {
|
|
14273
14273
|
style: { margin: 0 },
|
|
14274
14274
|
children: value
|
|
14275
|
-
}
|
|
14275
|
+
})
|
|
14276
14276
|
]
|
|
14277
|
-
}, key
|
|
14278
|
-
}
|
|
14279
|
-
state.caller.openActions.length > 0 ? /* @__PURE__ */
|
|
14277
|
+
}, key))
|
|
14278
|
+
}) : null,
|
|
14279
|
+
state.caller.openActions.length > 0 ? /* @__PURE__ */ jsx25("ul", {
|
|
14280
14280
|
style: {
|
|
14281
14281
|
fontSize: 12,
|
|
14282
14282
|
margin: "8px 0 0",
|
|
14283
14283
|
paddingLeft: 16
|
|
14284
14284
|
},
|
|
14285
|
-
children: state.caller.openActions.map((action) => /* @__PURE__ */
|
|
14285
|
+
children: state.caller.openActions.map((action) => /* @__PURE__ */ jsx25("li", {
|
|
14286
14286
|
children: action
|
|
14287
|
-
}, action
|
|
14288
|
-
}
|
|
14287
|
+
}, action))
|
|
14288
|
+
}) : null
|
|
14289
14289
|
]
|
|
14290
|
-
}
|
|
14291
|
-
/* @__PURE__ */
|
|
14290
|
+
}) : null,
|
|
14291
|
+
/* @__PURE__ */ jsx25("div", {
|
|
14292
14292
|
style: { display: "flex", gap: 10, marginBottom: 12 },
|
|
14293
|
-
children: state.hasTakeover ? /* @__PURE__ */
|
|
14293
|
+
children: state.hasTakeover ? /* @__PURE__ */ jsx25("button", {
|
|
14294
14294
|
onClick: handleRelease,
|
|
14295
14295
|
style: {
|
|
14296
14296
|
background: "rgba(255,255,255,0.08)",
|
|
@@ -14303,7 +14303,7 @@ var VoiceLiveAgentConsole = ({
|
|
|
14303
14303
|
},
|
|
14304
14304
|
type: "button",
|
|
14305
14305
|
children: "Release back to agent"
|
|
14306
|
-
}
|
|
14306
|
+
}) : /* @__PURE__ */ jsx25("button", {
|
|
14307
14307
|
onClick: handleTakeover,
|
|
14308
14308
|
style: {
|
|
14309
14309
|
background: "#ef4444",
|
|
@@ -14316,9 +14316,9 @@ var VoiceLiveAgentConsole = ({
|
|
|
14316
14316
|
},
|
|
14317
14317
|
type: "button",
|
|
14318
14318
|
children: takeoverButtonLabel
|
|
14319
|
-
}
|
|
14320
|
-
}
|
|
14321
|
-
/* @__PURE__ */
|
|
14319
|
+
})
|
|
14320
|
+
}),
|
|
14321
|
+
/* @__PURE__ */ jsx25("ol", {
|
|
14322
14322
|
style: {
|
|
14323
14323
|
display: "flex",
|
|
14324
14324
|
flexDirection: "column",
|
|
@@ -14329,7 +14329,7 @@ var VoiceLiveAgentConsole = ({
|
|
|
14329
14329
|
overflowY: "auto",
|
|
14330
14330
|
padding: 0
|
|
14331
14331
|
},
|
|
14332
|
-
children: state.recentTimeline.map((event, index) => /* @__PURE__ */
|
|
14332
|
+
children: state.recentTimeline.map((event, index) => /* @__PURE__ */ jsxs24("li", {
|
|
14333
14333
|
style: {
|
|
14334
14334
|
alignItems: "center",
|
|
14335
14335
|
display: "flex",
|
|
@@ -14338,22 +14338,22 @@ var VoiceLiveAgentConsole = ({
|
|
|
14338
14338
|
paddingLeft: 8
|
|
14339
14339
|
},
|
|
14340
14340
|
children: [
|
|
14341
|
-
/* @__PURE__ */
|
|
14341
|
+
/* @__PURE__ */ jsx25("strong", {
|
|
14342
14342
|
children: event.title
|
|
14343
|
-
}
|
|
14344
|
-
event.detail ? /* @__PURE__ */
|
|
14343
|
+
}),
|
|
14344
|
+
event.detail ? /* @__PURE__ */ jsx25("span", {
|
|
14345
14345
|
style: { opacity: 0.85 },
|
|
14346
14346
|
children: event.detail
|
|
14347
|
-
}
|
|
14347
|
+
}) : null
|
|
14348
14348
|
]
|
|
14349
|
-
}, `${event.at}-${index}
|
|
14350
|
-
}
|
|
14349
|
+
}, `${event.at}-${index}`))
|
|
14350
|
+
})
|
|
14351
14351
|
]
|
|
14352
|
-
}
|
|
14352
|
+
});
|
|
14353
14353
|
};
|
|
14354
14354
|
// src/react/VoiceLiveCallViewer.tsx
|
|
14355
14355
|
import { useEffect as useEffect28, useMemo as useMemo4, useState as useState3 } from "react";
|
|
14356
|
-
import {
|
|
14356
|
+
import { jsx as jsx26, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
14357
14357
|
var CATEGORY_COLOR = {
|
|
14358
14358
|
agent_audio: "#3b82f6",
|
|
14359
14359
|
agent_text: "#3b82f6",
|
|
@@ -14383,7 +14383,7 @@ var VoiceLiveCallViewer = ({
|
|
|
14383
14383
|
unsubscribe();
|
|
14384
14384
|
};
|
|
14385
14385
|
}, [viewer]);
|
|
14386
|
-
return /* @__PURE__ */
|
|
14386
|
+
return /* @__PURE__ */ jsxs25("section", {
|
|
14387
14387
|
"aria-label": "voice-live-call-viewer",
|
|
14388
14388
|
className: className ?? "absolute-voice-live-call-viewer",
|
|
14389
14389
|
"data-agent-state": state.agentState,
|
|
@@ -14395,7 +14395,7 @@ var VoiceLiveCallViewer = ({
|
|
|
14395
14395
|
padding: 20
|
|
14396
14396
|
},
|
|
14397
14397
|
children: [
|
|
14398
|
-
/* @__PURE__ */
|
|
14398
|
+
/* @__PURE__ */ jsxs25("header", {
|
|
14399
14399
|
style: {
|
|
14400
14400
|
alignItems: "center",
|
|
14401
14401
|
display: "flex",
|
|
@@ -14403,11 +14403,11 @@ var VoiceLiveCallViewer = ({
|
|
|
14403
14403
|
marginBottom: 12
|
|
14404
14404
|
},
|
|
14405
14405
|
children: [
|
|
14406
|
-
/* @__PURE__ */
|
|
14406
|
+
/* @__PURE__ */ jsx26("strong", {
|
|
14407
14407
|
style: { fontSize: 16 },
|
|
14408
14408
|
children: title ?? "Live call"
|
|
14409
|
-
}
|
|
14410
|
-
/* @__PURE__ */
|
|
14409
|
+
}),
|
|
14410
|
+
/* @__PURE__ */ jsx26("span", {
|
|
14411
14411
|
style: {
|
|
14412
14412
|
background: "rgba(59,130,246,0.18)",
|
|
14413
14413
|
borderRadius: 999,
|
|
@@ -14416,18 +14416,18 @@ var VoiceLiveCallViewer = ({
|
|
|
14416
14416
|
textTransform: "uppercase"
|
|
14417
14417
|
},
|
|
14418
14418
|
children: state.agentState
|
|
14419
|
-
}
|
|
14420
|
-
/* @__PURE__ */
|
|
14419
|
+
}),
|
|
14420
|
+
/* @__PURE__ */ jsxs25("span", {
|
|
14421
14421
|
style: { fontSize: 13, marginLeft: "auto", opacity: 0.7 },
|
|
14422
14422
|
children: [
|
|
14423
14423
|
state.sessionId,
|
|
14424
14424
|
" \xB7 ",
|
|
14425
14425
|
formatRelative(state.callDurationMs)
|
|
14426
14426
|
]
|
|
14427
|
-
}
|
|
14427
|
+
})
|
|
14428
14428
|
]
|
|
14429
|
-
}
|
|
14430
|
-
state.partialTranscript ? /* @__PURE__ */
|
|
14429
|
+
}),
|
|
14430
|
+
state.partialTranscript ? /* @__PURE__ */ jsxs25("p", {
|
|
14431
14431
|
style: {
|
|
14432
14432
|
background: "rgba(16,185,129,0.12)",
|
|
14433
14433
|
borderRadius: 12,
|
|
@@ -14441,8 +14441,8 @@ var VoiceLiveCallViewer = ({
|
|
|
14441
14441
|
state.partialTranscript,
|
|
14442
14442
|
"\u201D"
|
|
14443
14443
|
]
|
|
14444
|
-
}
|
|
14445
|
-
/* @__PURE__ */
|
|
14444
|
+
}) : null,
|
|
14445
|
+
/* @__PURE__ */ jsx26("ol", {
|
|
14446
14446
|
style: {
|
|
14447
14447
|
display: "flex",
|
|
14448
14448
|
flexDirection: "column",
|
|
@@ -14453,7 +14453,7 @@ var VoiceLiveCallViewer = ({
|
|
|
14453
14453
|
overflowY: "auto",
|
|
14454
14454
|
padding: 0
|
|
14455
14455
|
},
|
|
14456
|
-
children: state.events.map((event, index) => /* @__PURE__ */
|
|
14456
|
+
children: state.events.map((event, index) => /* @__PURE__ */ jsxs25("li", {
|
|
14457
14457
|
style: {
|
|
14458
14458
|
alignItems: "center",
|
|
14459
14459
|
borderLeft: `3px solid ${CATEGORY_COLOR[event.kind] ?? "#94a3b8"}`,
|
|
@@ -14463,7 +14463,7 @@ var VoiceLiveCallViewer = ({
|
|
|
14463
14463
|
paddingLeft: 12
|
|
14464
14464
|
},
|
|
14465
14465
|
children: [
|
|
14466
|
-
/* @__PURE__ */
|
|
14466
|
+
/* @__PURE__ */ jsx26("span", {
|
|
14467
14467
|
style: {
|
|
14468
14468
|
color: "#cbd5e1",
|
|
14469
14469
|
fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
@@ -14471,20 +14471,20 @@ var VoiceLiveCallViewer = ({
|
|
|
14471
14471
|
width: 60
|
|
14472
14472
|
},
|
|
14473
14473
|
children: formatRelative(event.at - (state.events[0]?.at ?? event.at))
|
|
14474
|
-
}
|
|
14475
|
-
/* @__PURE__ */
|
|
14474
|
+
}),
|
|
14475
|
+
/* @__PURE__ */ jsx26("strong", {
|
|
14476
14476
|
style: { fontSize: 13 },
|
|
14477
14477
|
children: event.title
|
|
14478
|
-
}
|
|
14479
|
-
event.detail ? /* @__PURE__ */
|
|
14478
|
+
}),
|
|
14479
|
+
event.detail ? /* @__PURE__ */ jsx26("span", {
|
|
14480
14480
|
style: { opacity: 0.85 },
|
|
14481
14481
|
children: event.detail
|
|
14482
|
-
}
|
|
14482
|
+
}) : null
|
|
14483
14483
|
]
|
|
14484
|
-
}, `${event.at}-${index}
|
|
14485
|
-
}
|
|
14484
|
+
}, `${event.at}-${index}`))
|
|
14485
|
+
})
|
|
14486
14486
|
]
|
|
14487
|
-
}
|
|
14487
|
+
});
|
|
14488
14488
|
};
|
|
14489
14489
|
// src/client/replayTimeline.ts
|
|
14490
14490
|
var categorize = (entry) => {
|
|
@@ -14538,7 +14538,7 @@ var buildReplayTimelineReport = (input) => {
|
|
|
14538
14538
|
};
|
|
14539
14539
|
|
|
14540
14540
|
// src/react/VoiceReplayTimeline.tsx
|
|
14541
|
-
import {
|
|
14541
|
+
import { jsx as jsx27, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
14542
14542
|
var CATEGORY_COLOR2 = {
|
|
14543
14543
|
agent: "#3b82f6",
|
|
14544
14544
|
lifecycle: "#94a3b8",
|
|
@@ -14557,7 +14557,7 @@ var VoiceReplayTimeline = ({
|
|
|
14557
14557
|
title
|
|
14558
14558
|
}) => {
|
|
14559
14559
|
const report = buildReplayTimelineReport({ artifact });
|
|
14560
|
-
return /* @__PURE__ */
|
|
14560
|
+
return /* @__PURE__ */ jsxs26("section", {
|
|
14561
14561
|
"aria-label": "voice-replay-timeline",
|
|
14562
14562
|
className: className ?? "absolute-voice-replay-timeline",
|
|
14563
14563
|
style: {
|
|
@@ -14568,7 +14568,7 @@ var VoiceReplayTimeline = ({
|
|
|
14568
14568
|
padding: 20
|
|
14569
14569
|
},
|
|
14570
14570
|
children: [
|
|
14571
|
-
/* @__PURE__ */
|
|
14571
|
+
/* @__PURE__ */ jsxs26("header", {
|
|
14572
14572
|
style: {
|
|
14573
14573
|
alignItems: "baseline",
|
|
14574
14574
|
display: "flex",
|
|
@@ -14576,11 +14576,11 @@ var VoiceReplayTimeline = ({
|
|
|
14576
14576
|
marginBottom: 12
|
|
14577
14577
|
},
|
|
14578
14578
|
children: [
|
|
14579
|
-
/* @__PURE__ */
|
|
14579
|
+
/* @__PURE__ */ jsx27("strong", {
|
|
14580
14580
|
style: { fontSize: 16 },
|
|
14581
14581
|
children: title ?? report.metadata.title ?? "Replay"
|
|
14582
|
-
}
|
|
14583
|
-
/* @__PURE__ */
|
|
14582
|
+
}),
|
|
14583
|
+
/* @__PURE__ */ jsxs26("span", {
|
|
14584
14584
|
style: { fontSize: 13, opacity: 0.7 },
|
|
14585
14585
|
children: [
|
|
14586
14586
|
report.events.length,
|
|
@@ -14593,13 +14593,13 @@ var VoiceReplayTimeline = ({
|
|
|
14593
14593
|
report.summary.toolCalls,
|
|
14594
14594
|
" tool"
|
|
14595
14595
|
]
|
|
14596
|
-
}
|
|
14596
|
+
})
|
|
14597
14597
|
]
|
|
14598
|
-
}
|
|
14599
|
-
report.events.length === 0 ? /* @__PURE__ */
|
|
14598
|
+
}),
|
|
14599
|
+
report.events.length === 0 ? /* @__PURE__ */ jsx27("p", {
|
|
14600
14600
|
style: { fontSize: 13, opacity: 0.7 },
|
|
14601
14601
|
children: "No timeline events."
|
|
14602
|
-
}
|
|
14602
|
+
}) : /* @__PURE__ */ jsx27("ol", {
|
|
14603
14603
|
style: {
|
|
14604
14604
|
display: "flex",
|
|
14605
14605
|
flexDirection: "column",
|
|
@@ -14608,7 +14608,7 @@ var VoiceReplayTimeline = ({
|
|
|
14608
14608
|
margin: 0,
|
|
14609
14609
|
padding: 0
|
|
14610
14610
|
},
|
|
14611
|
-
children: report.events.map((event, index) => /* @__PURE__ */
|
|
14611
|
+
children: report.events.map((event, index) => /* @__PURE__ */ jsxs26("li", {
|
|
14612
14612
|
style: {
|
|
14613
14613
|
alignItems: "center",
|
|
14614
14614
|
borderLeft: `3px solid ${CATEGORY_COLOR2[event.category]}`,
|
|
@@ -14618,7 +14618,7 @@ var VoiceReplayTimeline = ({
|
|
|
14618
14618
|
paddingLeft: 12
|
|
14619
14619
|
},
|
|
14620
14620
|
children: [
|
|
14621
|
-
/* @__PURE__ */
|
|
14621
|
+
/* @__PURE__ */ jsx27("span", {
|
|
14622
14622
|
style: {
|
|
14623
14623
|
color: "#cbd5e1",
|
|
14624
14624
|
fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
@@ -14626,20 +14626,20 @@ var VoiceReplayTimeline = ({
|
|
|
14626
14626
|
width: 60
|
|
14627
14627
|
},
|
|
14628
14628
|
children: formatRelative2(event.at - report.startedAt)
|
|
14629
|
-
}
|
|
14630
|
-
/* @__PURE__ */
|
|
14629
|
+
}),
|
|
14630
|
+
/* @__PURE__ */ jsx27("strong", {
|
|
14631
14631
|
style: { fontSize: 13 },
|
|
14632
14632
|
children: event.label
|
|
14633
|
-
}
|
|
14634
|
-
event.detail ? /* @__PURE__ */
|
|
14633
|
+
}),
|
|
14634
|
+
event.detail ? /* @__PURE__ */ jsx27("span", {
|
|
14635
14635
|
style: { opacity: 0.85 },
|
|
14636
14636
|
children: event.detail
|
|
14637
|
-
}
|
|
14637
|
+
}) : null
|
|
14638
14638
|
]
|
|
14639
|
-
}, `${event.at}-${index}
|
|
14640
|
-
}
|
|
14639
|
+
}, `${event.at}-${index}`))
|
|
14640
|
+
})
|
|
14641
14641
|
]
|
|
14642
|
-
}
|
|
14642
|
+
});
|
|
14643
14643
|
};
|
|
14644
14644
|
// src/react/useVoiceWorkflowStatus.tsx
|
|
14645
14645
|
import { useEffect as useEffect29, useRef as useRef28, useSyncExternalStore as useSyncExternalStore26 } from "react";
|
|
@@ -14745,57 +14745,57 @@ var useVoiceWorkflowStatus = (path = "/evals/scenarios/json", options = {}) => {
|
|
|
14745
14745
|
};
|
|
14746
14746
|
};
|
|
14747
14747
|
export {
|
|
14748
|
-
|
|
14749
|
-
useVoiceTurnQuality,
|
|
14750
|
-
useVoiceTurnLatency,
|
|
14751
|
-
useVoiceTraceTimeline,
|
|
14752
|
-
useVoiceStream,
|
|
14753
|
-
useVoiceSessionSnapshot,
|
|
14754
|
-
useVoiceSessionObservability,
|
|
14755
|
-
useVoiceRoutingStatus,
|
|
14756
|
-
useVoiceReconnectProfileEvidence,
|
|
14757
|
-
useVoiceReadinessFailures,
|
|
14758
|
-
useVoiceProviderStatus,
|
|
14759
|
-
useVoiceProviderSimulationControls,
|
|
14760
|
-
useVoiceProviderContracts,
|
|
14761
|
-
useVoiceProviderCapabilities,
|
|
14762
|
-
useVoiceProofTrends,
|
|
14763
|
-
useVoiceProfileSwitchRecommendation,
|
|
14764
|
-
useVoiceProfileComparison,
|
|
14765
|
-
useVoicePlatformCoverage,
|
|
14766
|
-
useVoiceOpsStatus,
|
|
14767
|
-
useVoiceOpsActionCenter,
|
|
14768
|
-
useVoiceLiveOps,
|
|
14769
|
-
useVoiceDeliveryRuntime,
|
|
14770
|
-
useVoiceController,
|
|
14771
|
-
useVoiceCampaignDialerProof,
|
|
14772
|
-
useVoiceCallDebugger,
|
|
14773
|
-
useVoiceAgentSquadStatus,
|
|
14774
|
-
VoiceWidget,
|
|
14775
|
-
VoiceTurnQuality,
|
|
14776
|
-
VoiceTurnLatency,
|
|
14777
|
-
VoiceTraceTimeline,
|
|
14778
|
-
VoiceSessionSnapshot,
|
|
14779
|
-
VoiceSessionObservability,
|
|
14780
|
-
VoiceRoutingStatus,
|
|
14781
|
-
VoiceReplayTimeline,
|
|
14782
|
-
VoiceReconnectProfileEvidence,
|
|
14783
|
-
VoiceReadinessFailures,
|
|
14784
|
-
VoiceProviderStatus,
|
|
14785
|
-
VoiceProviderSimulationControls,
|
|
14786
|
-
VoiceProviderContracts,
|
|
14787
|
-
VoiceProviderCapabilities,
|
|
14788
|
-
VoiceProofTrends,
|
|
14789
|
-
VoiceProfileSwitchRecommendation,
|
|
14790
|
-
VoiceProfileComparison,
|
|
14791
|
-
VoicePlatformCoverage,
|
|
14792
|
-
VoiceOpsStatus,
|
|
14793
|
-
VoiceOpsActionCenter,
|
|
14794
|
-
VoiceLiveCallViewer,
|
|
14795
|
-
VoiceLiveAgentConsole,
|
|
14796
|
-
VoiceDeliveryRuntime,
|
|
14797
|
-
VoiceCostDashboard,
|
|
14798
|
-
VoiceCallPlayer,
|
|
14748
|
+
VoiceAgentSquadStatus,
|
|
14799
14749
|
VoiceCallDebuggerLaunch,
|
|
14800
|
-
|
|
14750
|
+
VoiceCallPlayer,
|
|
14751
|
+
VoiceCostDashboard,
|
|
14752
|
+
VoiceDeliveryRuntime,
|
|
14753
|
+
VoiceLiveAgentConsole,
|
|
14754
|
+
VoiceLiveCallViewer,
|
|
14755
|
+
VoiceOpsActionCenter,
|
|
14756
|
+
VoiceOpsStatus,
|
|
14757
|
+
VoicePlatformCoverage,
|
|
14758
|
+
VoiceProfileComparison,
|
|
14759
|
+
VoiceProfileSwitchRecommendation,
|
|
14760
|
+
VoiceProofTrends,
|
|
14761
|
+
VoiceProviderCapabilities,
|
|
14762
|
+
VoiceProviderContracts,
|
|
14763
|
+
VoiceProviderSimulationControls,
|
|
14764
|
+
VoiceProviderStatus,
|
|
14765
|
+
VoiceReadinessFailures,
|
|
14766
|
+
VoiceReconnectProfileEvidence,
|
|
14767
|
+
VoiceReplayTimeline,
|
|
14768
|
+
VoiceRoutingStatus,
|
|
14769
|
+
VoiceSessionObservability,
|
|
14770
|
+
VoiceSessionSnapshot,
|
|
14771
|
+
VoiceTraceTimeline,
|
|
14772
|
+
VoiceTurnLatency,
|
|
14773
|
+
VoiceTurnQuality,
|
|
14774
|
+
VoiceWidget,
|
|
14775
|
+
useVoiceAgentSquadStatus,
|
|
14776
|
+
useVoiceCallDebugger,
|
|
14777
|
+
useVoiceCampaignDialerProof,
|
|
14778
|
+
useVoiceController,
|
|
14779
|
+
useVoiceDeliveryRuntime,
|
|
14780
|
+
useVoiceLiveOps,
|
|
14781
|
+
useVoiceOpsActionCenter,
|
|
14782
|
+
useVoiceOpsStatus,
|
|
14783
|
+
useVoicePlatformCoverage,
|
|
14784
|
+
useVoiceProfileComparison,
|
|
14785
|
+
useVoiceProfileSwitchRecommendation,
|
|
14786
|
+
useVoiceProofTrends,
|
|
14787
|
+
useVoiceProviderCapabilities,
|
|
14788
|
+
useVoiceProviderContracts,
|
|
14789
|
+
useVoiceProviderSimulationControls,
|
|
14790
|
+
useVoiceProviderStatus,
|
|
14791
|
+
useVoiceReadinessFailures,
|
|
14792
|
+
useVoiceReconnectProfileEvidence,
|
|
14793
|
+
useVoiceRoutingStatus,
|
|
14794
|
+
useVoiceSessionObservability,
|
|
14795
|
+
useVoiceSessionSnapshot,
|
|
14796
|
+
useVoiceStream,
|
|
14797
|
+
useVoiceTraceTimeline,
|
|
14798
|
+
useVoiceTurnLatency,
|
|
14799
|
+
useVoiceTurnQuality,
|
|
14800
|
+
useVoiceWorkflowStatus
|
|
14801
14801
|
};
|