@howaboua/pi-durable-gippity-voice 0.0.0-stage → 0.10.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.
- package/LICENSE +21 -0
- package/NOTICE +19 -0
- package/README.md +95 -2
- package/dist/activation.js +9486 -0
- package/dist/index.js +9602 -0
- package/dist/internal/buffered-dictation.d.ts +27 -0
- package/dist/internal/settings/index.d.ts +67 -0
- package/dist/packages/execution/src/forwarded-tools.d.ts +21 -0
- package/dist/packages/execution/src/forwarding.d.ts +15 -0
- package/dist/packages/execution/src/invocation-state.d.ts +26 -0
- package/dist/packages/execution/src/invocation.d.ts +35 -0
- package/dist/packages/execution/src/native-tools.d.ts +11 -0
- package/dist/packages/execution/src/nested-call.d.ts +26 -0
- package/dist/packages/execution/src/nested-result.d.ts +8 -0
- package/dist/packages/execution/src/nested.d.ts +3 -0
- package/dist/packages/execution/src/output.d.ts +48 -0
- package/dist/packages/execution/src/presentation.d.ts +59 -0
- package/dist/packages/execution/src/progress.d.ts +23 -0
- package/dist/packages/execution/src/tool-contract.d.ts +34 -0
- package/dist/packages/execution/src/tool-origin.d.ts +11 -0
- package/dist/packages/gippity-voice/src/activation.d.ts +8 -0
- package/dist/packages/gippity-voice/src/buffered-dictation.d.ts +5 -0
- package/dist/packages/gippity-voice/src/component-settings.d.ts +3 -0
- package/dist/packages/gippity-voice/src/config.d.ts +50 -0
- package/dist/packages/gippity-voice/src/controller.d.ts +164 -0
- package/dist/packages/gippity-voice/src/deferred.d.ts +6 -0
- package/dist/packages/gippity-voice/src/host.d.ts +66 -0
- package/dist/packages/gippity-voice/src/index.d.ts +13 -0
- package/dist/packages/gippity-voice/src/native.d.ts +15 -0
- package/dist/packages/gippity-voice/src/openai/types.d.ts +9 -0
- package/dist/packages/gippity-voice/src/openai/websocket-connection.d.ts +6 -0
- package/dist/packages/gippity-voice/src/preferences.d.ts +14 -0
- package/dist/packages/gippity-voice/src/voice/auth.d.ts +11 -0
- package/dist/packages/gippity-voice/src/voice/cancellation.d.ts +2 -0
- package/dist/packages/gippity-voice/src/voice/context.d.ts +29 -0
- package/dist/packages/gippity-voice/src/voice/conversation/call-setup.d.ts +27 -0
- package/dist/packages/gippity-voice/src/voice/conversation/connection.d.ts +20 -0
- package/dist/packages/gippity-voice/src/voice/conversation/end-call.d.ts +18 -0
- package/dist/packages/gippity-voice/src/voice/conversation/handoff.d.ts +43 -0
- package/dist/packages/gippity-voice/src/voice/conversation/native-peer.d.ts +18 -0
- package/dist/packages/gippity-voice/src/voice/conversation/peer.d.ts +29 -0
- package/dist/packages/gippity-voice/src/voice/conversation/playback.d.ts +17 -0
- package/dist/packages/gippity-voice/src/voice/conversation/public-turns.d.ts +59 -0
- package/dist/packages/gippity-voice/src/voice/conversation/session.d.ts +72 -0
- package/dist/packages/gippity-voice/src/voice/conversation/turn-events.d.ts +31 -0
- package/dist/packages/gippity-voice/src/voice/conversation/wire.d.ts +19 -0
- package/dist/packages/gippity-voice/src/voice/delegation-queue.d.ts +14 -0
- package/dist/packages/gippity-voice/src/voice/dictation/session.d.ts +21 -0
- package/dist/packages/gippity-voice/src/voice/dictation/transcriber.d.ts +25 -0
- package/dist/packages/gippity-voice/src/voice/handoff-contract.d.ts +25 -0
- package/dist/packages/gippity-voice/src/voice/handoff-departure.d.ts +16 -0
- package/dist/packages/gippity-voice/src/voice/handoff-peer.d.ts +67 -0
- package/dist/packages/gippity-voice/src/voice/handoff-wire.d.ts +51 -0
- package/dist/packages/gippity-voice/src/voice/helper-protocol.d.ts +83 -0
- package/dist/packages/gippity-voice/src/voice/helper.d.ts +23 -0
- package/dist/packages/gippity-voice/src/voice/lan/activity.d.ts +28 -0
- package/dist/packages/gippity-voice/src/voice/lan/app-assets.d.ts +5 -0
- package/dist/packages/gippity-voice/src/voice/lan/audio-worklet.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-audio-script.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-clients.d.ts +25 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-composer-script.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-connections.d.ts +23 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-events-script.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-peer.d.ts +26 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-script.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-session.d.ts +40 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-settings-script.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/browser-wire.d.ts +15 -0
- package/dist/packages/gippity-voice/src/voice/lan/client-audio-script.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/client-sdk-script.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/dictation.d.ts +16 -0
- package/dist/packages/gippity-voice/src/voice/lan/discovery.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/draft.d.ts +30 -0
- package/dist/packages/gippity-voice/src/voice/lan/microphone-buffer-worklet.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/microphone-level.d.ts +10 -0
- package/dist/packages/gippity-voice/src/voice/lan/protocol.d.ts +21 -0
- package/dist/packages/gippity-voice/src/voice/lan/remote-app.d.ts +37 -0
- package/dist/packages/gippity-voice/src/voice/lan/remote-json.d.ts +1 -0
- package/dist/packages/gippity-voice/src/voice/lan/server.d.ts +35 -0
- package/dist/packages/gippity-voice/src/voice/lan/takeover.d.ts +22 -0
- package/dist/packages/gippity-voice/src/voice/lan/theme.d.ts +12 -0
- package/dist/packages/gippity-voice/src/voice/lan/web-ui.d.ts +2 -0
- package/dist/packages/gippity-voice/src/voice/prompts.d.ts +4 -0
- package/dist/packages/gippity-voice/src/voice/realtime-auth.d.ts +18 -0
- package/dist/packages/gippity-voice/src/voice/realtime-tools.d.ts +7 -0
- package/dist/packages/gippity-voice/src/voice/reasoning-summary.d.ts +2 -0
- package/dist/packages/gippity-voice/src/voice/selected-call.d.ts +14 -0
- package/dist/packages/gippity-voice/src/voice/task-delegation.d.ts +8 -0
- package/dist/packages/gippity-voice/src/voice/turns.d.ts +36 -0
- package/dist/voice/bin/darwin-arm64/pi-codex-voice +0 -0
- package/dist/voice/bin/darwin-x64/pi-codex-voice +0 -0
- package/dist/voice/bin/linux-arm64/pi-codex-voice +0 -0
- package/dist/voice/bin/linux-x64/pi-codex-voice +0 -0
- package/dist/voice/bin/win32-arm64/pi-codex-voice.exe +0 -0
- package/dist/voice/bin/win32-x64/pi-codex-voice.exe +0 -0
- package/package.json +78 -5
- package/scripts/build-voice-helper.mjs +25 -0
- package/src/voice/rust/Cargo.lock +2895 -0
- package/src/voice/rust/Cargo.toml +28 -0
- package/src/voice/rust/VENDORED.md +30 -0
- package/src/voice/rust/src/audio/capture.rs +172 -0
- package/src/voice/rust/src/audio/playback.rs +218 -0
- package/src/voice/rust/src/audio.rs +277 -0
- package/src/voice/rust/src/codex_audio/buffers.rs +103 -0
- package/src/voice/rust/src/codex_audio/mod.rs +4 -0
- package/src/voice/rust/src/codex_audio/processing.rs +236 -0
- package/src/voice/rust/src/main.rs +240 -0
- package/src/voice/rust/src/playout.rs +206 -0
- package/src/voice/rust/src/protocol.rs +216 -0
- package/src/voice/rust/src/resample.rs +65 -0
- package/src/voice/rust/src/v3.rs +247 -0
- package/src/voice/rust/src/v3_capture.rs +360 -0
- package/src/voice/rust/src/v3_events.rs +96 -0
- package/src/voice/rust/src/v3_media.rs +386 -0
- package/src/voice/rust/vendor/openai-codex/LICENSE +201 -0
- package/src/voice/rust/vendor/openai-codex/NOTICE +6 -0
- package/src/voice/rust/vendor/rust-dependencies/THIRD-PARTY.md +28 -0
- package/src/voice/rust/vendor/rust-dependencies/audio-codec-algorithms/LICENSE-0BSD +14 -0
- package/src/voice/rust/vendor/rust-dependencies/audioadapter/LICENSE-MIT +19 -0
- package/src/voice/rust/vendor/rust-dependencies/bytemuck/LICENSE-MIT +9 -0
- package/src/voice/rust/vendor/rust-dependencies/cpufeatures/LICENSE-MIT +25 -0
- package/src/voice/rust/vendor/rust-dependencies/derive_more/LICENSE-MIT +21 -0
- package/src/voice/rust/vendor/rust-dependencies/num/LICENSE-MIT +25 -0
- package/src/voice/rust/vendor/rust-dependencies/opus/LICENSE-MIT +19 -0
- package/src/voice/rust/vendor/rust-dependencies/opusic-sys/LICENSE-BSD-3-CLAUSE +44 -0
- package/src/voice/rust/vendor/rust-dependencies/rubato/LICENSE-MIT +19 -0
- package/src/voice/rust/vendor/rust-dependencies/sonora/LICENSE-BSD-3-CLAUSE +31 -0
- package/src/voice/rust/vendor/rust-dependencies/tracing/LICENSE-MIT +25 -0
- package/src/voice/rust/vendor/rust-dependencies/unicode-xid/COPYRIGHT +7 -0
- package/src/voice/rust/vendor/rust-dependencies/unicode-xid/LICENSE-MIT +25 -0
- package/src/voice/rust/vendor/rust-dependencies/visibility/LICENSE-MIT +21 -0
- package/src/voice/rust/vendor/rust-dependencies/webrtc/LICENSE-MIT +21 -0
- package/src/voice/rust/vendor/rust-dependencies/windowfunctions/LICENSE-MIT +19 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Igor Warzocha
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Applicable voice changes through howaboua-pi-stuff revision
|
|
2
|
+
e4aa5bb43c560b722829a5123b3f2e05d3d9a19d are adapted from
|
|
3
|
+
pi-gippity-control and pi-codex-conversion. See docs/parity/voice.md
|
|
4
|
+
for native boundaries and validation.
|
|
5
|
+
|
|
6
|
+
GipPity voice is derived from packages/pi-gippity-control in
|
|
7
|
+
https://github.com/IgorWarzocha/howaboua-pi-stuff
|
|
8
|
+
at 69f50cf70e8a7b05c2349be6227f521b6504f80e (MIT, Igor Warzocha).
|
|
9
|
+
Alternating handoff voices and arrival greeting adopt the source delta through
|
|
10
|
+
c7ba4f1398c66d3c10c88c9326c7bddecf0202e1 (PR 490).
|
|
11
|
+
|
|
12
|
+
Native Rust source, Cargo.lock, six platform helpers, vendor notices and licenses
|
|
13
|
+
are carried from e4aa5bb43c560b722829a5123b3f2e05d3d9a19d. Vendored OpenAI Codex audio DSP
|
|
14
|
+
is Apache-2.0; see src/voice/rust/VENDORED.md and
|
|
15
|
+
src/voice/rust/vendor/openai-codex/{LICENSE,NOTICE}.
|
|
16
|
+
Provider wire, PCM, interruption epochs, transcript/delegation tracking,
|
|
17
|
+
browser scripts and bounded helper protocol retain their source implementation.
|
|
18
|
+
The Durable controller, host permissions, context service and LAN server are
|
|
19
|
+
native integrations, not a Pi ExtensionAPI compatibility layer.
|
package/README.md
CHANGED
|
@@ -1,3 +1,96 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GipPity voice for Pi Durable
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Talk through Codex Live or the OpenAI Realtime API while your Durable conversation remains the agent doing the work. Explicitly delegated requests enter normal Durable admission. Ordinary voice dialogue stays display-only. Public Realtime can also invoke the conversation's selected ordinary tools directly. Typed messages still work normally.
|
|
4
|
+
|
|
5
|
+
The component includes local WebRTC audio, manual dictation, microphone mute, device discovery, opt-in call recovery, context refresh after successful compaction, and HTTPS browser control. Browser dictation edits a revision-checked shared draft. Closing a browser leaves an established call running. Stop ends it. Authorized handoff keeps audio on its original host while work moves to another Durable conversation.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- Node 22.19 or newer and Pi Durable, Models and Chord 1.4.0.
|
|
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
|
+
- 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
|
+
- 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.
|
|
13
|
+
|
|
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
|
+
|
|
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
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Transcribe browser audio
|
|
21
|
+
|
|
22
|
+
For an app that already captures audio, use `transcribeGippityDictation({ models, audio, sampleRate, language?, signal })` on the server. It returns the final text and opens only a transcription connection. It requires no Harness, audio lease, native helper, microphone or LAN server. Nothing is submitted to a conversation.
|
|
23
|
+
|
|
24
|
+
`audio` is a `Uint8Array` containing mono signed PCM16 little-endian without a WAV header. `sampleRate` must be `16000` or `24000`. Recordings must be between 100 milliseconds and 600 seconds. The component copies the input and converts 16 kHz audio to the provider's 24 kHz format. Omitted, empty or `auto` language uses automatic detection.
|
|
25
|
+
|
|
26
|
+
Call `checkGippityDictationReadiness({ models, signal })` to check credentials before offering this engine. It returns `{ ready: true }` or `{ ready: false, reason }`. This uses the canonical Codex OAuth resolver and may refresh credentials through Models. It opens no transcription socket and does not prove network availability or account entitlement. Credentials never leave the server.
|
|
27
|
+
|
|
28
|
+
Transcription runs only when explicitly called. There are no automatic retries. Cancellation and provider errors reject the promise, including failures before audio finishes uploading. The whole request has a 60-second deadline and retains the provider's 10-second final-transcript timeout. Teardown allows up to two seconds for a close handshake before forcing the owned connection closed. An empty successful transcript returns `""`. The host owns capture permissions, upload limits, concurrent-request admission and the editable destination.
|
|
29
|
+
|
|
30
|
+
## Connect the component
|
|
31
|
+
|
|
32
|
+
Install `@howaboua/pi-durable-gippity-voice` alongside its pinned peers. In an existing Durable app:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import { createGippityVoice, createNativeGippityAudioHost } from
|
|
36
|
+
"@howaboua/pi-durable-gippity-voice";
|
|
37
|
+
|
|
38
|
+
const voice = createGippityVoice({
|
|
39
|
+
namespace: environment.id,
|
|
40
|
+
audio: createNativeGippityAudioHost({
|
|
41
|
+
namespace: environment.id,
|
|
42
|
+
executable: approvedHelperPath,
|
|
43
|
+
cwd: approvedWorkingDirectory,
|
|
44
|
+
env: approvedAudioEnvironment,
|
|
45
|
+
}),
|
|
46
|
+
lease: applicationAudioLease,
|
|
47
|
+
instructions: approvedVoiceInstructions,
|
|
48
|
+
present: event => applicationUi.showVoiceEvent(event),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
registry.install(voice.extension);
|
|
52
|
+
voice.controls.bindHarness(harness, conversation.id);
|
|
53
|
+
await voice.controls.startVoice(context);
|
|
54
|
+
voice.controls.setInputMuted(true);
|
|
55
|
+
await voice.controls.stopVoice();
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The host chooses an absolute helper path. Shipped helpers are at `voice/bin/<platform>-<arch>/pi-codex-voice`, relative to the package's emitted entry point, with `.exe` on Windows. There is no ambient binary discovery or automatic device launch. Supply a minimal audio environment without provider secrets.
|
|
59
|
+
|
|
60
|
+
Use `startDictation(context)` and `finishDictation()` for local dictation. The `draft` presentation event contains text for your editable composer. `stopVoice()` cancels either mode. `listDevices(context)` returns native microphone and speaker choices. Save their IDs with `configure(config)` before the next start. The app owns buttons, shortcuts, push-to-talk timing and its editor.
|
|
61
|
+
|
|
62
|
+
Settings are instance-local unless you pass a `settings` store with `read` and `write`. `getConfig()` returns the current normalized settings. Saving does not modify an established call. Primary voice defaults to `cove`, alternate handoff voice to `ember`. Resume and post-compaction refresh default to off.
|
|
63
|
+
|
|
64
|
+
For scoped preferences, pass `preferences: { storage, writeScope: "project" }` instead of `settings`. The explicit storage capability must use the ID `howaboua.gippity-voice`. `@howaboua/pi-durable-settings` supplies the shared contract and an optional JSON file adapter at its `/node` entry point. The app grants exact global and optional project roots. The component never discovers settings directories or stores credentials.
|
|
65
|
+
|
|
66
|
+
`voice.settingsContribution` and `voice.controls.settingsContribution` expose the same contributor. Await `read()` for defaults, separate overrides, effective values, sources and a revision. Defaults are merged with global preferences, then project preferences, independently within `voice` and `lan`. The contribution accepts partial objects and rejects unknown keys, invalid types and unsupported choices. Optional device IDs, context model, custom app path and LAN port accept `null` to clear an inherited value. Required fields do not.
|
|
67
|
+
|
|
68
|
+
Save a scope with `replaceOverride({ scope, value, expectedRevision })`. A `null` scope value restores inheritance for that whole scope. Invalid persisted settings, unavailable scopes, storage failures and stale revisions are reported rather than silently falling back. Save results report `next-use`: active calls retain their snapshots. Read the saved effective snapshot for the next call's settings.
|
|
69
|
+
|
|
70
|
+
`configure(config)`, `configureVoice(patch)` and browser settings controls use this same storage and the selected `writeScope`. Only changed effective fields become overrides, so saving a displayed full config does not pin unchanged inherited fields. `configureVoice` accepts `undefined` for an optional field to clear it. `getConfig()` is synchronous and shows the instance's current settings, initially `config` until preferences have been loaded by service startup or a configure operation. Use the contribution's asynchronous `read()` to inspect persisted settings before startup.
|
|
71
|
+
|
|
72
|
+
Use a stable, unique `instanceName` for each component when installing more than one GipPity instance in the same registry. Each instance binds to one conversation. `providerEnv` supplies explicit proxy settings such as `https_proxy` and `no_proxy`. Ambient process proxy variables are not consulted.
|
|
73
|
+
|
|
74
|
+
`voice.model` selects `codex-live-1.1`, `realtime-2.1` or `realtime-2.1-mini`. Public Realtime uses `voice.apiProvider`, `realtimeVoice` and `realtimeAlternateVoice`. Its optional `webSearch` uses the selected ordinary `web_run` registration. Codex Live prepares delegated work with `taskDelegationModel`, defaulting to `openai-codex/gpt-6-luna`, and `taskDelegationReasoning`, defaulting to `low`. Preparation failure leaves the request unsent and reports it. Dictation remains a separate Codex OAuth connection regardless of voice model.
|
|
75
|
+
|
|
76
|
+
## Context, LAN and handoff
|
|
77
|
+
|
|
78
|
+
Context summaries are off by default. Set `allowContextSummary: true` and select `voice.contextModel` only after authorizing conversation export to that Models provider. Reasoning defaults to `high`. Generated summaries are displayed and persisted separately from ordinary model history. Failed refresh leaves the established call intact. The realtime backend never changes the Durable conversation's selected model.
|
|
79
|
+
|
|
80
|
+
LAN control requires a `lan` capability with the matching namespace, TLS key and certificate, bind address, port, and exact allowed HTTPS origins. `startLan(context)` returns the supplied advertised URLs. The server validates Host and Origin. This is trusted-network control, not an internet-safe authenticated service. Do not expose its port publicly. `stopLan()` ends its browser-owned audio but leaves unrelated local audio alone.
|
|
81
|
+
|
|
82
|
+
`lanStatus()` reports the listener, advertised URLs and browser attachment. An optional host-owned `startBrowserVoice` callback enables `connectLan({ url, host?, signal? }, context)`. Choose a URL advertised by this listener. Browser's public `startBrowserVoice` API can supply the callback. The component does not discover terminal panes or write global request receipts.
|
|
83
|
+
|
|
84
|
+
For custom static apps, pass an `appFiles` capability and set `lan.customWebApp` with `lan.customWebAppPath`. `createNativeGippityAppFiles` accepts explicitly approved roots and checks real-path containment and asset bounds. Other execution environments supply their own namespace-bound reader. `registerRemoteApp(provider)` publishes one active app's bounded state and events at `/_gippity/apps/<id>/`. The returned function unregisters it. The bundled `GippityRemote` browser client supports audio, shared drafts, app events and `durable:<event>` activity.
|
|
85
|
+
|
|
86
|
+
Remote JSON controls use your explicit `rpc` callback. Only authorise named operations your app intends to expose. There is no arbitrary Pi API forwarding. Public Realtime snapshots selected ordinary Durable tools at call start. Direct calls retain argument preparation, hooks, cancellation and replay policy. `send_task`, `end_call` and `web_search` are reserved voice tool names.
|
|
87
|
+
|
|
88
|
+
The app's approval UI can call `activityWaiting(title)` and `activityPromptEnded()` to keep browser activity aligned with its prompts. Durable does not emit app UI prompt events.
|
|
89
|
+
|
|
90
|
+
`depart(channel, context)` and `arrive(channel, continuity, context)` require an application `handoff` grant for an authenticated ordered channel and the target conversation. GipPity accepts WebRTC handoff only. Incompatible PCM transport is rejected before departure. The source retains the physical audio lease until its transferred peer closes. The destination owns provider auth, work admission and a separate channel grant. Each successful handoff flips primary and alternate voice. Reconnect and context refresh preserve that selection.
|
|
91
|
+
|
|
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
|
+
|
|
94
|
+
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
|
+
|
|
96
|
+
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.
|