@absolutejs/voice 0.0.22-beta.152 → 0.0.22-beta.154
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/README.md +39 -0
- package/dist/angular/index.d.ts +1 -0
- package/dist/angular/index.js +471 -137
- package/dist/angular/voice-delivery-runtime.component.d.ts +3 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +4 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/client/deliveryRuntime.d.ts +15 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +3 -0
- package/dist/client/index.d.ts +6 -2
- package/dist/client/index.js +454 -114
- package/dist/client/opsActionCenter.d.ts +50 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/deliveryRuntime.d.ts +13 -1
- package/dist/index.js +44 -1
- package/dist/react/VoiceDeliveryRuntime.d.ts +2 -1
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +720 -286
- package/dist/react/useVoiceDeliveryRuntime.d.ts +5 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +2 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +464 -115
- package/dist/vue/VoiceDeliveryRuntime.d.ts +9 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.js +748 -292
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +4 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -653,6 +653,8 @@ export function DeliveryWorkers() {
|
|
|
653
653
|
}
|
|
654
654
|
```
|
|
655
655
|
|
|
656
|
+
The widget includes operator actions by default: `Tick workers` drains pending/failed deliveries, and `Requeue dead letters` moves reviewed dead-lettered audit/trace deliveries back into the live queues. Pass `includeActions={false}` when you only want a read-only status card.
|
|
657
|
+
|
|
656
658
|
```ts
|
|
657
659
|
import { VoiceDeliveryRuntime } from '@absolutejs/voice/vue';
|
|
658
660
|
import { createVoiceDeliveryRuntime } from '@absolutejs/voice/svelte';
|
|
@@ -669,6 +671,43 @@ For HTML or HTMX pages:
|
|
|
669
671
|
</script>
|
|
670
672
|
```
|
|
671
673
|
|
|
674
|
+
## Voice Ops Action Center
|
|
675
|
+
|
|
676
|
+
Use `VoiceOpsActionCenter` when you want one primitive operator panel for production proofs and recovery actions without building a dashboard. The default action builder can include production readiness refresh, delivery worker ticks, dead-letter requeue, turn-latency proof, and provider failover simulation.
|
|
677
|
+
|
|
678
|
+
```tsx
|
|
679
|
+
import { VoiceOpsActionCenter } from '@absolutejs/voice/react';
|
|
680
|
+
import { createVoiceOpsActionCenterActions } from '@absolutejs/voice/client';
|
|
681
|
+
|
|
682
|
+
export function OperatorPanel() {
|
|
683
|
+
return (
|
|
684
|
+
<VoiceOpsActionCenter
|
|
685
|
+
actions={createVoiceOpsActionCenterActions({
|
|
686
|
+
providers: ['deepgram', 'assemblyai']
|
|
687
|
+
})}
|
|
688
|
+
/>
|
|
689
|
+
);
|
|
690
|
+
}
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
For HTML or HTMX pages:
|
|
694
|
+
|
|
695
|
+
```html
|
|
696
|
+
<div id="voice-ops-actions"></div>
|
|
697
|
+
<script type="module">
|
|
698
|
+
import {
|
|
699
|
+
createVoiceOpsActionCenterActions,
|
|
700
|
+
mountVoiceOpsActionCenter
|
|
701
|
+
} from '@absolutejs/voice/client';
|
|
702
|
+
|
|
703
|
+
mountVoiceOpsActionCenter(document.querySelector('#voice-ops-actions'), {
|
|
704
|
+
actions: createVoiceOpsActionCenterActions({
|
|
705
|
+
providers: ['deepgram']
|
|
706
|
+
})
|
|
707
|
+
});
|
|
708
|
+
</script>
|
|
709
|
+
```
|
|
710
|
+
|
|
672
711
|
## Voice Assistants
|
|
673
712
|
|
|
674
713
|
Use `createVoiceAssistant(...)` when you want one product-level surface for a voice agent instead of wiring tools, guardrails, experiments, traces, and ops recipes separately. It returns a standard `onTurn` handler, plus an `ops` object you can pass to `voice(...)`.
|
package/dist/angular/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { VoiceOpsStatusService } from './voice-ops-status.service';
|
|
2
|
+
export { VoiceOpsActionCenterService } from './voice-ops-action-center.service';
|
|
2
3
|
export { VoiceDeliveryRuntimeService } from './voice-delivery-runtime.service';
|
|
3
4
|
export { VoiceCampaignDialerProofService } from './voice-campaign-dialer-proof.service';
|
|
4
5
|
export { VoiceStreamService } from './voice-stream.service';
|