@runtypelabs/persona 4.26.0 → 4.27.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/dist/approval-ui.d.cts +11 -0
- package/dist/approval-ui.d.ts +11 -0
- package/dist/artifacts-ui.d.cts +11 -0
- package/dist/artifacts-ui.d.ts +11 -0
- package/dist/chunk-3255TNY7.js +1 -0
- package/dist/{client-history-YPEG45Q4.js → client-history-HTRKHBAF.js} +1 -1
- package/dist/client-history.js +1 -1
- package/dist/client-stream-N22JHTLE.js +4 -0
- package/dist/client-stream.js +3 -3
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.js +1 -1
- package/dist/context-mentions.d.cts +11 -0
- package/dist/context-mentions.d.ts +11 -0
- package/dist/event-stream-view.d.cts +11 -0
- package/dist/event-stream-view.d.ts +11 -0
- package/dist/forms-ui.d.cts +13 -0
- package/dist/forms-ui.d.ts +13 -0
- package/dist/index.cjs +57 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +58 -58
- package/dist/index.js.map +1 -1
- package/dist/session-reconnect.d.cts +11 -0
- package/dist/session-reconnect.d.ts +11 -0
- package/dist/smart-dom-reader.d.cts +11 -0
- package/dist/smart-dom-reader.d.ts +11 -0
- package/dist/theme-editor-preview.cjs +59 -59
- package/dist/theme-editor-preview.d.cts +11 -0
- package/dist/theme-editor-preview.d.ts +11 -0
- package/dist/theme-editor-preview.js +31 -31
- package/dist/theme-editor.d.cts +11 -0
- package/dist/theme-editor.d.ts +11 -0
- package/dist/voice-runtime-RHRX4F3T.js +17 -0
- package/dist/voice-runtime.cjs +8 -8
- package/dist/voice-runtime.d.cts +15 -0
- package/dist/voice-runtime.d.ts +15 -0
- package/dist/voice-runtime.js +8 -8
- package/package.json +1 -1
- package/src/approval-paused-tool-settle.test.ts +108 -4
- package/src/client-stream.ts +10 -3
- package/src/client.test.ts +20 -0
- package/src/session.ts +56 -10
- package/src/session.voice.test.ts +60 -3
- package/src/types.ts +11 -0
- package/src/ui.composer-defer-one.test.ts +17 -0
- package/src/ui.ts +49 -12
- package/src/voice/__fixtures__/voice-wire/server/session_end-provider-error.json +6 -0
- package/src/voice/__fixtures__/voice-wire/server/session_end-unknown-reason.json +4 -0
- package/src/voice/__fixtures__/voice-wire/server/session_end.json +5 -0
- package/src/voice/runtype-voice-provider.ts +131 -19
- package/src/voice/voice-delegation.ts +27 -11
- package/src/voice/voice.test.ts +257 -2
- package/dist/chunk-QPPJUSZH.js +0 -1
- package/dist/client-stream-42FOI3EC.js +0 -4
- package/dist/voice-runtime-UOQOFAFY.js +0 -17
package/dist/index.d.cts
CHANGED
|
@@ -7580,6 +7580,11 @@ interface VoiceProvider {
|
|
|
7580
7580
|
setSessionBridge?(bridge: VoiceSessionBridge): void;
|
|
7581
7581
|
/** The AI-disclosure notice for the live call, if one should show (speech-to-speech). */
|
|
7582
7582
|
getDisclosure?(): string | null;
|
|
7583
|
+
/**
|
|
7584
|
+
* Status-line text for the call, returned once: why the server ended it
|
|
7585
|
+
* (`session_end`) or that it is reconnecting. `null` when there is none.
|
|
7586
|
+
*/
|
|
7587
|
+
takeNotice?(): string | null;
|
|
7583
7588
|
}
|
|
7584
7589
|
/** Metadata on a {@link VoiceProvider.onTranscript} update. */
|
|
7585
7590
|
type VoiceTranscriptMetadata = {
|
|
@@ -7635,6 +7640,12 @@ type VoiceDelegationResult = {
|
|
|
7635
7640
|
status: VoiceDelegationStatus;
|
|
7636
7641
|
/** The assistant text (Markdown allowed). */
|
|
7637
7642
|
text: string;
|
|
7643
|
+
/**
|
|
7644
|
+
* `false` when no chat message carries this answer (it is only spoken), so
|
|
7645
|
+
* the voice model's read-back of it stays visible as a caption.
|
|
7646
|
+
* @default true
|
|
7647
|
+
*/
|
|
7648
|
+
inChat?: boolean;
|
|
7638
7649
|
/**
|
|
7639
7650
|
* Set when the turn parked on approvals (`text` then asks for the decision).
|
|
7640
7651
|
* Resolves with the terminal result once the visitor decides (or the
|
|
@@ -11436,6 +11447,8 @@ declare class AgentWidgetSession {
|
|
|
11436
11447
|
* Get current voice status
|
|
11437
11448
|
*/
|
|
11438
11449
|
getVoiceStatus(): VoiceStatus;
|
|
11450
|
+
/** The voice call's pending status-line notice (why it ended, or reconnecting), once. */
|
|
11451
|
+
getVoiceNotice(): string | null;
|
|
11439
11452
|
/** The live call's AI-disclosure notice, if it shows one. */
|
|
11440
11453
|
getVoiceDisclosure(): string | null;
|
|
11441
11454
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -7580,6 +7580,11 @@ interface VoiceProvider {
|
|
|
7580
7580
|
setSessionBridge?(bridge: VoiceSessionBridge): void;
|
|
7581
7581
|
/** The AI-disclosure notice for the live call, if one should show (speech-to-speech). */
|
|
7582
7582
|
getDisclosure?(): string | null;
|
|
7583
|
+
/**
|
|
7584
|
+
* Status-line text for the call, returned once: why the server ended it
|
|
7585
|
+
* (`session_end`) or that it is reconnecting. `null` when there is none.
|
|
7586
|
+
*/
|
|
7587
|
+
takeNotice?(): string | null;
|
|
7583
7588
|
}
|
|
7584
7589
|
/** Metadata on a {@link VoiceProvider.onTranscript} update. */
|
|
7585
7590
|
type VoiceTranscriptMetadata = {
|
|
@@ -7635,6 +7640,12 @@ type VoiceDelegationResult = {
|
|
|
7635
7640
|
status: VoiceDelegationStatus;
|
|
7636
7641
|
/** The assistant text (Markdown allowed). */
|
|
7637
7642
|
text: string;
|
|
7643
|
+
/**
|
|
7644
|
+
* `false` when no chat message carries this answer (it is only spoken), so
|
|
7645
|
+
* the voice model's read-back of it stays visible as a caption.
|
|
7646
|
+
* @default true
|
|
7647
|
+
*/
|
|
7648
|
+
inChat?: boolean;
|
|
7638
7649
|
/**
|
|
7639
7650
|
* Set when the turn parked on approvals (`text` then asks for the decision).
|
|
7640
7651
|
* Resolves with the terminal result once the visitor decides (or the
|
|
@@ -11436,6 +11447,8 @@ declare class AgentWidgetSession {
|
|
|
11436
11447
|
* Get current voice status
|
|
11437
11448
|
*/
|
|
11438
11449
|
getVoiceStatus(): VoiceStatus;
|
|
11450
|
+
/** The voice call's pending status-line notice (why it ended, or reconnecting), once. */
|
|
11451
|
+
getVoiceNotice(): string | null;
|
|
11439
11452
|
/** The live call's AI-disclosure notice, if it shows one. */
|
|
11440
11453
|
getVoiceDisclosure(): string | null;
|
|
11441
11454
|
/**
|