@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.
Files changed (58) hide show
  1. package/dist/approval-ui.d.cts +11 -0
  2. package/dist/approval-ui.d.ts +11 -0
  3. package/dist/artifacts-ui.d.cts +11 -0
  4. package/dist/artifacts-ui.d.ts +11 -0
  5. package/dist/chunk-3255TNY7.js +1 -0
  6. package/dist/{client-history-YPEG45Q4.js → client-history-HTRKHBAF.js} +1 -1
  7. package/dist/client-history.js +1 -1
  8. package/dist/client-stream-N22JHTLE.js +4 -0
  9. package/dist/client-stream.js +3 -3
  10. package/dist/codegen.cjs +1 -1
  11. package/dist/codegen.js +1 -1
  12. package/dist/context-mentions.d.cts +11 -0
  13. package/dist/context-mentions.d.ts +11 -0
  14. package/dist/event-stream-view.d.cts +11 -0
  15. package/dist/event-stream-view.d.ts +11 -0
  16. package/dist/forms-ui.d.cts +13 -0
  17. package/dist/forms-ui.d.ts +13 -0
  18. package/dist/index.cjs +57 -57
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +13 -0
  21. package/dist/index.d.ts +13 -0
  22. package/dist/index.global.js +1 -1
  23. package/dist/index.global.js.map +1 -1
  24. package/dist/index.js +58 -58
  25. package/dist/index.js.map +1 -1
  26. package/dist/session-reconnect.d.cts +11 -0
  27. package/dist/session-reconnect.d.ts +11 -0
  28. package/dist/smart-dom-reader.d.cts +11 -0
  29. package/dist/smart-dom-reader.d.ts +11 -0
  30. package/dist/theme-editor-preview.cjs +59 -59
  31. package/dist/theme-editor-preview.d.cts +11 -0
  32. package/dist/theme-editor-preview.d.ts +11 -0
  33. package/dist/theme-editor-preview.js +31 -31
  34. package/dist/theme-editor.d.cts +11 -0
  35. package/dist/theme-editor.d.ts +11 -0
  36. package/dist/voice-runtime-RHRX4F3T.js +17 -0
  37. package/dist/voice-runtime.cjs +8 -8
  38. package/dist/voice-runtime.d.cts +15 -0
  39. package/dist/voice-runtime.d.ts +15 -0
  40. package/dist/voice-runtime.js +8 -8
  41. package/package.json +1 -1
  42. package/src/approval-paused-tool-settle.test.ts +108 -4
  43. package/src/client-stream.ts +10 -3
  44. package/src/client.test.ts +20 -0
  45. package/src/session.ts +56 -10
  46. package/src/session.voice.test.ts +60 -3
  47. package/src/types.ts +11 -0
  48. package/src/ui.composer-defer-one.test.ts +17 -0
  49. package/src/ui.ts +49 -12
  50. package/src/voice/__fixtures__/voice-wire/server/session_end-provider-error.json +6 -0
  51. package/src/voice/__fixtures__/voice-wire/server/session_end-unknown-reason.json +4 -0
  52. package/src/voice/__fixtures__/voice-wire/server/session_end.json +5 -0
  53. package/src/voice/runtype-voice-provider.ts +131 -19
  54. package/src/voice/voice-delegation.ts +27 -11
  55. package/src/voice/voice.test.ts +257 -2
  56. package/dist/chunk-QPPJUSZH.js +0 -1
  57. package/dist/client-stream-42FOI3EC.js +0 -4
  58. package/dist/voice-runtime-UOQOFAFY.js +0 -17
@@ -7089,6 +7089,11 @@ interface VoiceProvider {
7089
7089
  setSessionBridge?(bridge: VoiceSessionBridge): void;
7090
7090
  /** The AI-disclosure notice for the live call, if one should show (speech-to-speech). */
7091
7091
  getDisclosure?(): string | null;
7092
+ /**
7093
+ * Status-line text for the call, returned once: why the server ended it
7094
+ * (`session_end`) or that it is reconnecting. `null` when there is none.
7095
+ */
7096
+ takeNotice?(): string | null;
7092
7097
  }
7093
7098
  /** Metadata on a {@link VoiceProvider.onTranscript} update. */
7094
7099
  type VoiceTranscriptMetadata = {
@@ -7144,6 +7149,12 @@ type VoiceDelegationResult = {
7144
7149
  status: VoiceDelegationStatus;
7145
7150
  /** The assistant text (Markdown allowed). */
7146
7151
  text: string;
7152
+ /**
7153
+ * `false` when no chat message carries this answer (it is only spoken), so
7154
+ * the voice model's read-back of it stays visible as a caption.
7155
+ * @default true
7156
+ */
7157
+ inChat?: boolean;
7147
7158
  /**
7148
7159
  * Set when the turn parked on approvals (`text` then asks for the decision).
7149
7160
  * Resolves with the terminal result once the visitor decides (or the
@@ -7089,6 +7089,11 @@ interface VoiceProvider {
7089
7089
  setSessionBridge?(bridge: VoiceSessionBridge): void;
7090
7090
  /** The AI-disclosure notice for the live call, if one should show (speech-to-speech). */
7091
7091
  getDisclosure?(): string | null;
7092
+ /**
7093
+ * Status-line text for the call, returned once: why the server ended it
7094
+ * (`session_end`) or that it is reconnecting. `null` when there is none.
7095
+ */
7096
+ takeNotice?(): string | null;
7092
7097
  }
7093
7098
  /** Metadata on a {@link VoiceProvider.onTranscript} update. */
7094
7099
  type VoiceTranscriptMetadata = {
@@ -7144,6 +7149,12 @@ type VoiceDelegationResult = {
7144
7149
  status: VoiceDelegationStatus;
7145
7150
  /** The assistant text (Markdown allowed). */
7146
7151
  text: string;
7152
+ /**
7153
+ * `false` when no chat message carries this answer (it is only spoken), so
7154
+ * the voice model's read-back of it stays visible as a caption.
7155
+ * @default true
7156
+ */
7157
+ inChat?: boolean;
7147
7158
  /**
7148
7159
  * Set when the turn parked on approvals (`text` then asks for the decision).
7149
7160
  * Resolves with the terminal result once the visitor decides (or the
@@ -7358,6 +7358,11 @@ interface VoiceProvider {
7358
7358
  setSessionBridge?(bridge: VoiceSessionBridge): void;
7359
7359
  /** The AI-disclosure notice for the live call, if one should show (speech-to-speech). */
7360
7360
  getDisclosure?(): string | null;
7361
+ /**
7362
+ * Status-line text for the call, returned once: why the server ended it
7363
+ * (`session_end`) or that it is reconnecting. `null` when there is none.
7364
+ */
7365
+ takeNotice?(): string | null;
7361
7366
  }
7362
7367
  /** Metadata on a {@link VoiceProvider.onTranscript} update. */
7363
7368
  type VoiceTranscriptMetadata = {
@@ -7413,6 +7418,12 @@ type VoiceDelegationResult = {
7413
7418
  status: VoiceDelegationStatus;
7414
7419
  /** The assistant text (Markdown allowed). */
7415
7420
  text: string;
7421
+ /**
7422
+ * `false` when no chat message carries this answer (it is only spoken), so
7423
+ * the voice model's read-back of it stays visible as a caption.
7424
+ * @default true
7425
+ */
7426
+ inChat?: boolean;
7416
7427
  /**
7417
7428
  * Set when the turn parked on approvals (`text` then asks for the decision).
7418
7429
  * Resolves with the terminal result once the visitor decides (or the
@@ -7358,6 +7358,11 @@ interface VoiceProvider {
7358
7358
  setSessionBridge?(bridge: VoiceSessionBridge): void;
7359
7359
  /** The AI-disclosure notice for the live call, if one should show (speech-to-speech). */
7360
7360
  getDisclosure?(): string | null;
7361
+ /**
7362
+ * Status-line text for the call, returned once: why the server ended it
7363
+ * (`session_end`) or that it is reconnecting. `null` when there is none.
7364
+ */
7365
+ takeNotice?(): string | null;
7361
7366
  }
7362
7367
  /** Metadata on a {@link VoiceProvider.onTranscript} update. */
7363
7368
  type VoiceTranscriptMetadata = {
@@ -7413,6 +7418,12 @@ type VoiceDelegationResult = {
7413
7418
  status: VoiceDelegationStatus;
7414
7419
  /** The assistant text (Markdown allowed). */
7415
7420
  text: string;
7421
+ /**
7422
+ * `false` when no chat message carries this answer (it is only spoken), so
7423
+ * the voice model's read-back of it stays visible as a caption.
7424
+ * @default true
7425
+ */
7426
+ inChat?: boolean;
7416
7427
  /**
7417
7428
  * Set when the turn parked on approvals (`text` then asks for the decision).
7418
7429
  * Resolves with the terminal result once the visitor decides (or the