@howaboua/pi-durable-gippity-voice 0.10.0 → 0.13.0

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.
Files changed (57) hide show
  1. package/NOTICE +5 -0
  2. package/README.md +4 -2
  3. package/dist/activation.js +2108 -989
  4. package/dist/index.js +2115 -996
  5. package/dist/internal/voice/agent-observation.d.ts +13 -0
  6. package/dist/internal/voice/browser-provider.d.ts +65 -0
  7. package/dist/internal/voice/browser-settings.d.ts +24 -0
  8. package/dist/internal/voice/handoff-contract.d.ts +28 -0
  9. package/dist/internal/voice/lan-client-sdk.d.ts +1 -0
  10. package/dist/internal/voice/lan-listener-proof.d.ts +2 -0
  11. package/dist/packages/execution/src/invocation-state.d.ts +1 -1
  12. package/dist/packages/execution/src/invocation.d.ts +79 -2
  13. package/dist/packages/execution/src/native-tools.d.ts +18 -7
  14. package/dist/packages/execution/src/nested-call.d.ts +11 -3
  15. package/dist/packages/execution/src/nested-park.d.ts +9 -0
  16. package/dist/packages/execution/src/nested-result.d.ts +1 -1
  17. package/dist/packages/execution/src/tool-contract.d.ts +10 -3
  18. package/dist/packages/execution/src/tool-namespaces.d.ts +31 -0
  19. package/dist/packages/execution/src/tool-origin.d.ts +9 -1
  20. package/dist/packages/gippity-voice/src/controller.d.ts +10 -3
  21. package/dist/packages/gippity-voice/src/host.d.ts +6 -0
  22. package/dist/packages/gippity-voice/src/index.d.ts +2 -1
  23. package/dist/packages/gippity-voice/src/voice/browser-reservation.d.ts +30 -0
  24. package/dist/packages/gippity-voice/src/voice/conversation/peer.d.ts +6 -0
  25. package/dist/packages/gippity-voice/src/voice/conversation/public-turns.d.ts +2 -1
  26. package/dist/packages/gippity-voice/src/voice/conversation/session.d.ts +2 -0
  27. package/dist/packages/gippity-voice/src/voice/handoff-departure.d.ts +5 -0
  28. package/dist/packages/gippity-voice/src/voice/handoff-peer.d.ts +12 -0
  29. package/dist/packages/gippity-voice/src/voice/handoff-wire.d.ts +1 -1
  30. package/dist/packages/gippity-voice/src/voice/helper-protocol.d.ts +35 -0
  31. package/dist/packages/gippity-voice/src/voice/lan/browser-clients.d.ts +2 -1
  32. package/dist/packages/gippity-voice/src/voice/lan/browser-connections.d.ts +17 -0
  33. package/dist/packages/gippity-voice/src/voice/lan/browser-peer.d.ts +4 -0
  34. package/dist/packages/gippity-voice/src/voice/lan/browser-session.d.ts +10 -4
  35. package/dist/packages/gippity-voice/src/voice/lan/pcm-bridge.d.ts +25 -0
  36. package/dist/packages/gippity-voice/src/voice/lan/playback-drain.d.ts +8 -0
  37. package/dist/packages/gippity-voice/src/voice/lan/protocol.d.ts +4 -0
  38. package/dist/packages/gippity-voice/src/voice/lan/server.d.ts +5 -3
  39. package/dist/packages/gippity-voice/src/voice/lan/takeover.d.ts +2 -3
  40. package/dist/packages/gippity-voice/src/voice/lan/unified-settings.d.ts +3 -0
  41. package/dist/packages/gippity-voice/src/voice/realtime-auth.d.ts +3 -2
  42. package/dist/packages/gippity-voice/src/voice/turns.d.ts +2 -1
  43. package/dist/voice/bin/darwin-arm64/pi-codex-voice +0 -0
  44. package/dist/voice/bin/darwin-x64/pi-codex-voice +0 -0
  45. package/dist/voice/bin/linux-arm64/pi-codex-voice +0 -0
  46. package/dist/voice/bin/linux-x64/pi-codex-voice +0 -0
  47. package/dist/voice/bin/win32-arm64/pi-codex-voice.exe +0 -0
  48. package/dist/voice/bin/win32-x64/pi-codex-voice.exe +0 -0
  49. package/package.json +10 -9
  50. package/src/voice/rust/src/audio.rs +2 -2
  51. package/src/voice/rust/src/playout.rs +68 -8
  52. package/src/voice/rust/src/protocol.rs +43 -1
  53. package/src/voice/rust/src/v3_media.rs +138 -31
  54. /package/dist/{packages/gippity-voice/src → internal/voice}/deferred.d.ts +0 -0
  55. /package/dist/{packages/gippity-voice/src/voice/lan/activity.d.ts → internal/voice/lan-activity.d.ts} +0 -0
  56. /package/dist/{packages/gippity-voice/src/voice/lan/draft.d.ts → internal/voice/lan-draft.d.ts} +0 -0
  57. /package/dist/{packages/gippity-voice/src/voice/lan → internal/voice}/remote-json.d.ts +0 -0
package/NOTICE CHANGED
@@ -17,3 +17,8 @@ Provider wire, PCM, interruption epochs, transcript/delegation tracking,
17
17
  browser scripts and bounded helper protocol retain their source implementation.
18
18
  The Durable controller, host permissions, context service and LAN server are
19
19
  native integrations, not a Pi ExtensionAPI compatibility layer.
20
+
21
+ OpenAI shared-browser audio, final playback across a WebRTC handoff and the
22
+ standalone LAN browser's playback marker and worklet drain adapt
23
+ packages/pi-live-voice at howaboua-agent-stuff revision e1730759
24
+ (MIT, Igor Warzocha).
package/README.md CHANGED
@@ -6,7 +6,7 @@ The component includes local WebRTC audio, manual dictation, microphone mute, de
6
6
 
7
7
  ## Requirements
8
8
 
9
- - Node 22.19 or newer and Pi Durable, Models and Chord 1.4.0.
9
+ - Node 22.19 or newer and Pi Durable, Models and Chord 1.8.0.
10
10
  - For Codex Live and dictation, a canonical `openai-codex` OAuth login supplied by Models. For public Realtime, an API key and HTTP or HTTPS endpoint belonging to the exact Models provider selected in voice settings. OAuth is not public API access.
11
11
  - Explicit native process permission matching the conversation's execution environment. Six native helpers are shipped for Linux, macOS and Windows, on x64 and arm64. Linux needs its audio runtime dependencies.
12
12
  - One application-owned exclusive audio lease, shared with every voice component, including Grok voice. Acquisition must reject conflicting ownership atomically. Aborting a waiter must not release an existing owner's hardware. Release is idempotent and occurs only after confirmed audio teardown.
@@ -14,7 +14,7 @@ The component includes local WebRTC audio, manual dictation, microphone mute, de
14
14
  Credentials stay in Models. The native helper and browser never receive provider credentials. Native devices, microphone permissions, provider entitlement and acoustic behavior need separate real-device acceptance.
15
15
 
16
16
  ```sh
17
- npm install https://github.com/IgorWarzocha/pi-durable-components/releases/download/v0.10.0/howaboua-pi-durable-gippity-voice-0.10.0.tgz
17
+ npm install @howaboua/pi-durable-gippity-voice@0.13.0
18
18
  ```
19
19
 
20
20
  ## Transcribe browser audio
@@ -91,6 +91,8 @@ The app's approval UI can call `activityWaiting(title)` and `activityPromptEnded
91
91
 
92
92
  With source-hosted audio, Stop ends the selected call while retaining its authenticated binding. Start reads fresh destination settings and context. A broken binding reports failure instead of starting on the old conversation. Compatible LAN grants can instead transfer the listener at the same address after certificate, loopback-listener and browser acknowledgement checks. The destination then owns a fresh call independently of the closed handoff channel. An unavailable takeover is reported and leaves LAN hosting at the source.
93
93
 
94
+ Voice-requested call completion waits for the connected browser to confirm that the final audio reached its output presentation clock. If the browser cannot confirm playback, reconnect with an updated client or use Stop to end the call immediately.
95
+
94
96
  Call `close(context)` before changing the component's target. Harness shutdown also cancels its background-owned service. Interrupted calls are reported as uncertain and never replayed after reopening storage. Start again explicitly. If process termination cannot be confirmed, ownership is retained and cleanup fails visibly.
95
97
 
96
98
  To rebuild a helper deliberately, run `npm run build:native` from the installed package with Rust and the platform's audio build dependencies. This builds only the current target. Native source, its lockfile and vendored notices are included. See `NOTICE` for source revisions and attribution.