@absolutejs/voice 0.0.22-beta.153 → 0.0.22-beta.155

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 CHANGED
@@ -671,6 +671,56 @@ For HTML or HTMX pages:
671
671
  </script>
672
672
  ```
673
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
+ Mount `createVoiceOpsActionAuditRoutes(...)` to make every action-center click auditable. The client posts successful and failed action results to `/api/voice/ops-actions/audit` by default, and the route records both `operator.action` audit events and `operator.action` trace events.
694
+
695
+ ```ts
696
+ import { createVoiceOpsActionAuditRoutes } from '@absolutejs/voice';
697
+
698
+ app.use(
699
+ createVoiceOpsActionAuditRoutes({
700
+ audit: runtimeStorage.audit,
701
+ trace: runtimeStorage.traces
702
+ })
703
+ );
704
+ ```
705
+
706
+ For HTML or HTMX pages:
707
+
708
+ ```html
709
+ <div id="voice-ops-actions"></div>
710
+ <script type="module">
711
+ import {
712
+ createVoiceOpsActionCenterActions,
713
+ mountVoiceOpsActionCenter
714
+ } from '@absolutejs/voice/client';
715
+
716
+ mountVoiceOpsActionCenter(document.querySelector('#voice-ops-actions'), {
717
+ actions: createVoiceOpsActionCenterActions({
718
+ providers: ['deepgram']
719
+ })
720
+ });
721
+ </script>
722
+ ```
723
+
674
724
  ## Voice Assistants
675
725
 
676
726
  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(...)`.
@@ -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';