@runtypelabs/persona 4.32.2 → 4.34.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 (215) hide show
  1. package/dist/activity-ui.d.cts +3 -15
  2. package/dist/activity-ui.d.ts +3 -15
  3. package/dist/animations/glyph-cycle.d.cts +1 -3
  4. package/dist/animations/glyph-cycle.d.ts +1 -3
  5. package/dist/animations/wipe.d.cts +1 -3
  6. package/dist/animations/wipe.d.ts +1 -3
  7. package/dist/approval-ui.cjs +2 -2
  8. package/dist/approval-ui.d.cts +3 -15
  9. package/dist/approval-ui.d.ts +3 -15
  10. package/dist/approval-ui.js +1 -1
  11. package/dist/artifacts-ui.cjs +1 -1
  12. package/dist/artifacts-ui.d.cts +3 -21
  13. package/dist/artifacts-ui.d.ts +3 -21
  14. package/dist/background-runtime.d.cts +2 -3
  15. package/dist/background-runtime.d.ts +2 -3
  16. package/dist/{chunk-BbXc58OA.js → chunk-6CUrH_jm.js} +1 -1
  17. package/dist/{chunk-B_H0l3u2.js → chunk-BRM3bHcJ.js} +1 -1
  18. package/dist/{chunk-DNdeIFJ6.js → chunk-Brdx4NCz.js} +1 -1
  19. package/dist/chunk-C-rux8Q9.js +1 -0
  20. package/dist/{chunk-Ds_twaZn.js → chunk-C4v-HNhS.js} +1 -1
  21. package/dist/{chunk-Bkma5hIU.js → chunk-CE4seJxF.js} +1 -1
  22. package/dist/chunk-CEPM3FOp.js +1 -0
  23. package/dist/{chunk-BpjtKnGI.js → chunk-CV8EPIhT.js} +1 -1
  24. package/dist/{chunk-DVZ8ri1z.js → chunk-CWzHNuVK.js} +1 -1
  25. package/dist/{chunk-B3l7TOOv.js → chunk-CYpt7PsO.js} +1 -1
  26. package/dist/{chunk-2FnmZ9AA.js → chunk-Csr59G5V.js} +1 -1
  27. package/dist/{chunk-B9Zu-wrk.js → chunk-CxNPSY-b.js} +1 -1
  28. package/dist/{chunk-UWMfWW2a.js → chunk-D1G8tgYc.js} +1 -1
  29. package/dist/{chunk-DTGvDx8o.js → chunk-Dj2a9f9w.js} +1 -1
  30. package/dist/chunk-Dqa_GOcj.js +1 -0
  31. package/dist/chunk-DsWv3EGF.js +1 -0
  32. package/dist/{chunk-C7-m0EmI.js → chunk-NUNdcnAZ.js} +1 -1
  33. package/dist/{chunk-D0tcIZJM.js → chunk-YMkMvAsa.js} +2 -2
  34. package/dist/{chunk-C-EHtpbB.js → chunk-h5aOI_Pa.js} +1 -1
  35. package/dist/chunk-i4qGOJAL.js +1 -0
  36. package/dist/chunk-kizhspe5.js +1 -0
  37. package/dist/client-dispatch.js +1 -1
  38. package/dist/client-history.js +1 -1
  39. package/dist/client-stream.js +1 -1
  40. package/dist/{code-generators-DqauYyfX.d.cts → code-generators-DPAqTcAz.d.cts} +0 -2
  41. package/dist/{code-generators-DqauYyfX.d.ts → code-generators-DPAqTcAz.d.ts} +0 -2
  42. package/dist/codegen.cjs +1 -1
  43. package/dist/codegen.d.cts +1 -1
  44. package/dist/codegen.d.ts +1 -1
  45. package/dist/codegen.js +1 -1
  46. package/dist/composer-actions-runtime.cjs +1 -1
  47. package/dist/composer-actions-runtime.d.cts +4 -20
  48. package/dist/composer-actions-runtime.d.ts +4 -20
  49. package/dist/composer-actions-runtime.js +1 -1
  50. package/dist/{composer-input-dwg_o9Z-.d.ts → composer-input-i_FiUp6J.d.cts} +1 -7
  51. package/dist/{composer-input-dwg_o9Z-.d.cts → composer-input-i_FiUp6J.d.ts} +1 -7
  52. package/dist/{composer-store-Dw7Zbqxr.d.ts → composer-store-DhGNgG7Z.d.cts} +1 -3
  53. package/dist/{composer-store-Dw7Zbqxr.d.cts → composer-store-DhGNgG7Z.d.ts} +1 -3
  54. package/dist/config-diagnostics.d.cts +0 -2
  55. package/dist/config-diagnostics.d.ts +0 -2
  56. package/dist/{context-mention-manager-D2p0-JH-.d.ts → context-mention-manager-DL-xwGfL.d.cts} +2 -6
  57. package/dist/{context-mention-manager-D2p0-JH-.d.cts → context-mention-manager-DL-xwGfL.d.ts} +2 -6
  58. package/dist/context-mentions-inline.cjs +1 -1
  59. package/dist/context-mentions-inline.d.cts +2 -4
  60. package/dist/context-mentions-inline.d.ts +2 -4
  61. package/dist/context-mentions-inline.js +1 -1
  62. package/dist/context-mentions.cjs +1 -1
  63. package/dist/context-mentions.d.cts +3 -9
  64. package/dist/context-mentions.d.ts +3 -9
  65. package/dist/{defaults-CjX0kKzb.d.ts → defaults-Bga2Xrsp.d.cts} +2 -5
  66. package/dist/{defaults-CjX0kKzb.d.cts → defaults-Bga2Xrsp.d.ts} +2 -5
  67. package/dist/dictation-runtime.cjs +1 -1
  68. package/dist/dictation-runtime.d.cts +4 -13
  69. package/dist/dictation-runtime.d.ts +4 -13
  70. package/dist/dictation-runtime.js +1 -1
  71. package/dist/{dom-context-DHTabIn7.d.ts → dom-context-Bw-_9Evh.d.cts} +0 -2
  72. package/dist/{dom-context-DHTabIn7.d.cts → dom-context-Bw-_9Evh.d.ts} +0 -2
  73. package/dist/event-stream-view.cjs +1 -1
  74. package/dist/event-stream-view.d.cts +3 -16
  75. package/dist/event-stream-view.d.ts +3 -16
  76. package/dist/{fallback-speech-engine-DmF7MczI.d.ts → fallback-speech-engine-kLdyPcmk.d.cts} +1 -3
  77. package/dist/{fallback-speech-engine-DmF7MczI.d.cts → fallback-speech-engine-kLdyPcmk.d.ts} +1 -3
  78. package/dist/{feature-preferences-CVFDt9Xf.d.ts → feature-preferences-CmwZGKrf.d.cts} +1 -5
  79. package/dist/{feature-preferences-CVFDt9Xf.d.cts → feature-preferences-CmwZGKrf.d.ts} +1 -5
  80. package/dist/forms-ui.d.cts +2 -4
  81. package/dist/forms-ui.d.ts +2 -4
  82. package/dist/{history-confirm-dialog-DJEXsTyE.d.cts → history-confirm-dialog-i46-lPN_.d.cts} +2 -14
  83. package/dist/{history-confirm-dialog-DJEXsTyE.d.ts → history-confirm-dialog-i46-lPN_.d.ts} +2 -14
  84. package/dist/history-shell.cjs +1 -1
  85. package/dist/history-shell.d.cts +8 -27
  86. package/dist/history-shell.d.ts +8 -27
  87. package/dist/history-shell.js +1 -1
  88. package/dist/history-view.d.cts +1 -1
  89. package/dist/history-view.d.ts +1 -1
  90. package/dist/icons-extra.cjs +1 -1
  91. package/dist/icons-extra.d.cts +0 -2
  92. package/dist/icons-extra.d.ts +0 -2
  93. package/dist/index.cjs +44 -44
  94. package/dist/index.cjs.map +1 -1
  95. package/dist/index.d.cts +11 -11
  96. package/dist/index.d.ts +11 -11
  97. package/dist/index.global.js +1 -1
  98. package/dist/index.global.js.map +1 -1
  99. package/dist/index.js +46 -46
  100. package/dist/index.js.map +1 -1
  101. package/dist/install.global.js +1 -1
  102. package/dist/install.global.js.map +1 -1
  103. package/dist/launcher.global.js +2 -2
  104. package/dist/launcher.global.js.map +1 -1
  105. package/dist/{loading-label-runtime-loader-CPxnoaoi.d.ts → loading-label-runtime-loader-Ccr3ETd3.d.cts} +1 -3
  106. package/dist/{loading-label-runtime-loader-CPxnoaoi.d.cts → loading-label-runtime-loader-Ccr3ETd3.d.ts} +1 -3
  107. package/dist/loading-label-runtime.cjs +1 -1
  108. package/dist/loading-label-runtime.d.cts +1 -1
  109. package/dist/loading-label-runtime.d.ts +1 -1
  110. package/dist/loading-label-runtime.js +1 -1
  111. package/dist/markdown-parsers.js +1 -1
  112. package/dist/{message-bubble-CkZGlCLC.d.ts → message-bubble-C6AVaH7f.d.cts} +21 -4
  113. package/dist/{message-bubble-CkZGlCLC.d.cts → message-bubble-C6AVaH7f.d.ts} +21 -4
  114. package/dist/{plugin-kit-C1mRjLgW.d.cts → plugin-kit-BVggqE3C.d.cts} +0 -2
  115. package/dist/{plugin-kit-C1mRjLgW.d.ts → plugin-kit-BVggqE3C.d.ts} +0 -2
  116. package/dist/plugin-kit.d.cts +1 -1
  117. package/dist/plugin-kit.d.ts +1 -1
  118. package/dist/preferences-runtime.cjs +1 -1
  119. package/dist/preferences-runtime.d.cts +1 -1
  120. package/dist/preferences-runtime.d.ts +1 -1
  121. package/dist/preferences-runtime.js +1 -1
  122. package/dist/{preview-DdUvoLb4.d.cts → preview-BMdRffo4.d.cts} +2 -6
  123. package/dist/{preview-DdUvoLb4.d.ts → preview-BMdRffo4.d.ts} +2 -6
  124. package/dist/{registry-Dz4iHNST.d.ts → registry-B16l8s1b.d.cts} +1 -8
  125. package/dist/{registry-Dz4iHNST.d.cts → registry-B16l8s1b.d.ts} +1 -8
  126. package/dist/{session-Baxp9iRK.d.cts → session-CtZHe7fc.d.cts} +10 -93
  127. package/dist/{session-Baxp9iRK.d.ts → session-CtZHe7fc.d.ts} +10 -93
  128. package/dist/session-reconnect.d.cts +2 -4
  129. package/dist/session-reconnect.d.ts +2 -4
  130. package/dist/smart-dom-reader.d.cts +2 -8
  131. package/dist/smart-dom-reader.d.ts +2 -8
  132. package/dist/testing.d.cts +0 -2
  133. package/dist/testing.d.ts +0 -2
  134. package/dist/theme-editor-preview.cjs +42 -42
  135. package/dist/theme-editor-preview.d.cts +1 -1
  136. package/dist/theme-editor-preview.d.ts +1 -1
  137. package/dist/theme-editor-preview.js +25 -25
  138. package/dist/theme-editor.cjs +25 -5
  139. package/dist/theme-editor.d.cts +2 -22
  140. package/dist/theme-editor.d.ts +2 -22
  141. package/dist/theme-editor.js +1 -1
  142. package/dist/theme-reference.cjs +1 -1
  143. package/dist/theme-reference.d.cts +4 -4
  144. package/dist/theme-reference.d.ts +4 -4
  145. package/dist/theme-reference.js +1 -1
  146. package/dist/{tool-loading-animation-un3kA5Ur.d.ts → tool-loading-animation-D2cyFvmM.d.cts} +1 -7
  147. package/dist/{tool-loading-animation-un3kA5Ur.d.cts → tool-loading-animation-D2cyFvmM.d.ts} +1 -7
  148. package/dist/{tooltip-BkW-8MnD.d.cts → tooltip-DbXkAuJL.d.cts} +0 -2
  149. package/dist/{tooltip-BkW-8MnD.d.ts → tooltip-DbXkAuJL.d.ts} +0 -2
  150. package/dist/{turn-activity-ui-BGNhtMcH.d.cts → turn-activity-ui-Do1Nd-Ow.d.cts} +2 -12
  151. package/dist/{turn-activity-ui-BGNhtMcH.d.ts → turn-activity-ui-Do1Nd-Ow.d.ts} +2 -12
  152. package/dist/turn-activity-ui.d.cts +1 -1
  153. package/dist/turn-activity-ui.d.ts +1 -1
  154. package/dist/{types-BOZHQIk0.d.cts → types-BC7MRxO5.d.cts} +167 -36
  155. package/dist/{types-BOZHQIk0.d.ts → types-BC7MRxO5.d.ts} +167 -36
  156. package/dist/ui-extras.js +3 -3
  157. package/dist/voice-client-tools.d.cts +1 -3
  158. package/dist/voice-client-tools.d.ts +1 -3
  159. package/dist/voice-runtime.cjs +1 -1
  160. package/dist/voice-runtime.d.cts +2 -12
  161. package/dist/voice-runtime.d.ts +2 -12
  162. package/dist/voice-runtime.js +2 -2
  163. package/dist/voice-worklet-player.d.cts +2 -6
  164. package/dist/voice-worklet-player.d.ts +2 -6
  165. package/dist/{webmcp-runtime-entry-DuAG1_yF.d.ts → webmcp-runtime-entry-B8g46vS0.d.cts} +1 -5
  166. package/dist/{webmcp-runtime-entry-DuAG1_yF.d.cts → webmcp-runtime-entry-B8g46vS0.d.ts} +1 -5
  167. package/dist/webmcp-runtime.d.cts +1 -1
  168. package/dist/webmcp-runtime.d.ts +1 -1
  169. package/dist/widget.css +1 -1
  170. package/package.json +4 -4
  171. package/src/client-dispatch.ts +69 -16
  172. package/src/client.operator-role.test.ts +217 -0
  173. package/src/components/event-stream-view.test.ts +5 -0
  174. package/src/components/message-bubble.test.ts +169 -0
  175. package/src/components/message-bubble.ts +123 -34
  176. package/src/components/scroll-to-bottom.test.ts +135 -0
  177. package/src/components/scroll-to-bottom.ts +50 -13
  178. package/src/components/user-message-collapse.ts +117 -0
  179. package/src/defaults-parity.test.ts +14 -0
  180. package/src/defaults.ts +6 -0
  181. package/src/index-core.ts +7 -0
  182. package/src/session.resubmit-from.test.ts +27 -0
  183. package/src/session.test.ts +10 -0
  184. package/src/session.ts +8 -5
  185. package/src/styles/widget.css +79 -1
  186. package/src/theme-reference.ts +5 -3
  187. package/src/types/theme.ts +50 -0
  188. package/src/types.ts +120 -11
  189. package/src/ui.ask-user-question-plugin.test.ts +154 -0
  190. package/src/ui.operator-role.test.ts +336 -0
  191. package/src/ui.scroll-additive.test.ts +219 -117
  192. package/src/ui.scroll.test.ts +176 -13
  193. package/src/ui.ts +267 -119
  194. package/src/ui.turn-activity.test.ts +7 -7
  195. package/src/ui.user-message-collapse.test.ts +540 -0
  196. package/src/utils/__snapshots__/tokens-parity.test.ts.snap +236 -0
  197. package/src/utils/auto-follow.test.ts +0 -38
  198. package/src/utils/auto-follow.ts +0 -35
  199. package/src/utils/brand.test.ts +14 -0
  200. package/src/utils/brand.ts +8 -4
  201. package/src/utils/history-messages.test.ts +30 -0
  202. package/src/utils/history-messages.ts +26 -8
  203. package/src/utils/message-fingerprint.ts +4 -0
  204. package/src/utils/resubmit-turn.test.ts +13 -0
  205. package/src/utils/resubmit-turn.ts +12 -1
  206. package/src/utils/theme.test.ts +23 -0
  207. package/src/utils/tokens.ts +47 -0
  208. package/src/welcome.test.ts +16 -0
  209. package/src/welcome.ts +10 -2
  210. package/dist/chunk-BNE40cEG.js +0 -1
  211. package/dist/chunk-Bz9jAgba.js +0 -1
  212. package/dist/chunk-CVMIncEY.js +0 -1
  213. package/dist/chunk-CdpVP6LZ.js +0 -1
  214. package/dist/chunk-CjkechxR.js +0 -1
  215. package/dist/chunk-DgZZqy14.js +0 -1
@@ -1,6 +1,5 @@
1
- import { Ca as WidgetPreferenceSlice, Sa as WidgetPreferenceCapabilities, co as ColorShade, fo as DeepPartial, go as PersonaTheme, k as AgentWidgetConfig } from "./types-BOZHQIk0.cjs";
2
- import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-DdUvoLb4.cjs";
3
- //#region src/theme-editor/types.d.ts
1
+ import { Da as WidgetPreferenceCapabilities, Oa as WidgetPreferenceSlice, So as PersonaTheme, _o as DeepPartial, k as AgentWidgetConfig, po as ColorShade } from "./types-BC7MRxO5.cjs";
2
+ import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-BMdRffo4.cjs";
4
3
  type FieldType = 'color' | 'slider' | 'toggle' | 'select' | 'text' | 'chip-list' | 'color-scale' | 'token-ref' | 'role-assignment';
5
4
  interface SliderOptions {
6
5
  min: number;
@@ -153,8 +152,6 @@ interface ConfiguratorSnapshot {
153
152
  type ConfigChangeListener = (config: AgentWidgetConfig, theme: PersonaTheme) => void;
154
153
  /** Callback for when a control value changes */
155
154
  type OnChangeCallback = (path: string, value: unknown) => void;
156
- //#endregion
157
- //#region src/theme-editor/state.d.ts
158
155
  export declare class ThemeEditorState {
159
156
  #private;
160
157
  private config;
@@ -207,8 +204,6 @@ export declare class ThemeEditorState {
207
204
  exportSnapshot(): ConfiguratorSnapshot;
208
205
  onChange(listener: ConfigChangeListener): () => void;
209
206
  }
210
- //#endregion
211
- //#region src/theme-editor/sections.d.ts
212
207
  export declare const STYLE_SECTIONS: SectionDef[];
213
208
  export declare const PALETTE_SECTION: SectionDef;
214
209
  export declare const SEMANTIC_COLORS_SECTION: SectionDef;
@@ -254,15 +249,11 @@ type ThemeVariant = 'light' | 'dark';
254
249
  export declare function findSection(sections: SectionDef[], id: string): SectionDef;
255
250
  /** Create a light/dark scoped copy of a section */
256
251
  export declare function scopeSection(section: SectionDef, scope: ThemeScope, variant: ThemeVariant, collapsed?: boolean | undefined): SectionDef;
257
- //#endregion
258
- //#region src/theme-editor/presets.d.ts
259
252
  export declare const BUILT_IN_PRESETS: ThemeEditorPreset[];
260
253
  /** All built-in presets */
261
254
  export declare const THEME_EDITOR_PRESETS: ThemeEditorPreset[];
262
255
  /** Look up a preset by ID */
263
256
  export declare function getThemeEditorPreset(id: string): ThemeEditorPreset | undefined;
264
- //#endregion
265
- //#region src/theme-editor/role-mappings.d.ts
266
257
  export declare const ROLE_INTENSITIES: RoleIntensity[];
267
258
  export declare const ROLE_FAMILIES: readonly ['primary', 'secondary', 'accent', 'gray'];
268
259
  type RoleFamily = (typeof ROLE_FAMILIES)[number];
@@ -301,8 +292,6 @@ interface DetectedRoleAssignment {
301
292
  * @returns Detected assignment or null if tokens don't match a known pattern
302
293
  */
303
294
  export declare function detectRoleAssignment(getValue: (path: string) => unknown, role: RoleAssignmentOptions): DetectedRoleAssignment | null;
304
- //#endregion
305
- //#region src/theme-editor/color-utils.d.ts
306
295
  interface ParsedCssValue {
307
296
  value: number;
308
297
  unit: 'px' | 'rem';
@@ -346,8 +335,6 @@ export declare function paletteColorPath(family: string, shade: string): string;
346
335
  */
347
336
  export declare function resolveThemeColorPath(get: (path: string) => unknown, path: string, depth?: number): string;
348
337
  export declare function tokenRefDisplayName(path: string): string;
349
- //#endregion
350
- //#region src/theme-editor/webmcp/types.d.ts
351
338
  interface ToolTextContent {
352
339
  type: 'text';
353
340
  text: string;
@@ -414,11 +401,7 @@ interface CreateThemeEditorToolsOptions {
414
401
  /** Default variant for styling writes. Defaults to `'both'`. */
415
402
  editTarget?: EditTarget;
416
403
  }
417
- //#endregion
418
- //#region src/theme-editor/webmcp/tools.d.ts
419
404
  export declare function createThemeEditorTools(state: ThemeEditorLike, options?: CreateThemeEditorToolsOptions): WebMcpTool[];
420
- //#endregion
421
- //#region src/theme-editor/webmcp/coerce.d.ts
422
405
  /**
423
406
  * Input coercion for the WebMCP theme tools.
424
407
  *
@@ -444,8 +427,6 @@ type RoundnessStyle = 'sharp' | 'default' | 'rounded' | 'pill';
444
427
  export declare function coerceRoundnessStyle(input: unknown): RoundnessStyle;
445
428
  /** Coerce a radius value: numbers become `${n}px`; CSS strings are normalized. */
446
429
  export declare function coerceRadius(input: unknown): string;
447
- //#endregion
448
- //#region src/theme-editor/webmcp/summary.d.ts
449
430
  export declare const RADIUS_PRESETS: Record<string, Record<string, string>>;
450
431
  interface RoleState {
451
432
  family: string;
@@ -518,6 +499,5 @@ interface ContrastReport {
518
499
  export declare function runContrastChecks(state: ThemeEditorLike, level?: ContrastLevel, variant?: 'light' | 'dark' | 'both', pairKeys?: string[]): ContrastReport;
519
500
  /** Compact contrast warnings for the regions a mutation touched. */
520
501
  export declare function quickContrastWarnings(state: ThemeEditorLike, pairKeys: string[], variant?: 'light' | 'dark' | 'both', level?: ContrastLevel): ContrastWarning[];
521
- //#endregion
522
502
  export { type AuthoredConfigExport, type BuildTranscriptStreamFramesOptions, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, type ContrastCheck, type ContrastLevel, type ContrastReport, type ContrastWarning, type CreateThemeEditorToolsOptions, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type EditTarget, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, type PreviewTranscriptEntryPreset, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleState, type RoleTarget, type RoleTargetKind, SHELL_STYLE_ID, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, type TabDef, type ThemeEditorLike, type ThemeEditorPreset, type ThemeSummary, type TokenRefOptions, type ToolAnnotations, type ToolContent, type ToolExecute, type ToolImageContent, type ToolResult, type ToolTextContent, type TranscriptStreamFrame, type WebMcpTool, ZOOM_MAX, ZOOM_MIN, appendPreviewTranscriptEntry, applySceneConfig, applyShellTheme, buildPreviewConfig, buildPreviewConfigWithMessages, buildShellCss, buildSrcdoc, buildTranscriptStreamFrames, createPreviewMessages, createPreviewTranscriptEntry, escapeHtml, getPreviewTranscriptPresetLabel, getShellPalette, presetStreamsText };
523
503
  export {}
@@ -1,6 +1,5 @@
1
- import { Ca as WidgetPreferenceSlice, Sa as WidgetPreferenceCapabilities, co as ColorShade, fo as DeepPartial, go as PersonaTheme, k as AgentWidgetConfig } from "./types-BOZHQIk0.js";
2
- import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-DdUvoLb4.js";
3
- //#region src/theme-editor/types.d.ts
1
+ import { Da as WidgetPreferenceCapabilities, Oa as WidgetPreferenceSlice, So as PersonaTheme, _o as DeepPartial, k as AgentWidgetConfig, po as ColorShade } from "./types-BC7MRxO5.js";
2
+ import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-BMdRffo4.js";
4
3
  type FieldType = 'color' | 'slider' | 'toggle' | 'select' | 'text' | 'chip-list' | 'color-scale' | 'token-ref' | 'role-assignment';
5
4
  interface SliderOptions {
6
5
  min: number;
@@ -153,8 +152,6 @@ interface ConfiguratorSnapshot {
153
152
  type ConfigChangeListener = (config: AgentWidgetConfig, theme: PersonaTheme) => void;
154
153
  /** Callback for when a control value changes */
155
154
  type OnChangeCallback = (path: string, value: unknown) => void;
156
- //#endregion
157
- //#region src/theme-editor/state.d.ts
158
155
  export declare class ThemeEditorState {
159
156
  #private;
160
157
  private config;
@@ -207,8 +204,6 @@ export declare class ThemeEditorState {
207
204
  exportSnapshot(): ConfiguratorSnapshot;
208
205
  onChange(listener: ConfigChangeListener): () => void;
209
206
  }
210
- //#endregion
211
- //#region src/theme-editor/sections.d.ts
212
207
  export declare const STYLE_SECTIONS: SectionDef[];
213
208
  export declare const PALETTE_SECTION: SectionDef;
214
209
  export declare const SEMANTIC_COLORS_SECTION: SectionDef;
@@ -254,15 +249,11 @@ type ThemeVariant = 'light' | 'dark';
254
249
  export declare function findSection(sections: SectionDef[], id: string): SectionDef;
255
250
  /** Create a light/dark scoped copy of a section */
256
251
  export declare function scopeSection(section: SectionDef, scope: ThemeScope, variant: ThemeVariant, collapsed?: boolean | undefined): SectionDef;
257
- //#endregion
258
- //#region src/theme-editor/presets.d.ts
259
252
  export declare const BUILT_IN_PRESETS: ThemeEditorPreset[];
260
253
  /** All built-in presets */
261
254
  export declare const THEME_EDITOR_PRESETS: ThemeEditorPreset[];
262
255
  /** Look up a preset by ID */
263
256
  export declare function getThemeEditorPreset(id: string): ThemeEditorPreset | undefined;
264
- //#endregion
265
- //#region src/theme-editor/role-mappings.d.ts
266
257
  export declare const ROLE_INTENSITIES: RoleIntensity[];
267
258
  export declare const ROLE_FAMILIES: readonly ['primary', 'secondary', 'accent', 'gray'];
268
259
  type RoleFamily = (typeof ROLE_FAMILIES)[number];
@@ -301,8 +292,6 @@ interface DetectedRoleAssignment {
301
292
  * @returns Detected assignment or null if tokens don't match a known pattern
302
293
  */
303
294
  export declare function detectRoleAssignment(getValue: (path: string) => unknown, role: RoleAssignmentOptions): DetectedRoleAssignment | null;
304
- //#endregion
305
- //#region src/theme-editor/color-utils.d.ts
306
295
  interface ParsedCssValue {
307
296
  value: number;
308
297
  unit: 'px' | 'rem';
@@ -346,8 +335,6 @@ export declare function paletteColorPath(family: string, shade: string): string;
346
335
  */
347
336
  export declare function resolveThemeColorPath(get: (path: string) => unknown, path: string, depth?: number): string;
348
337
  export declare function tokenRefDisplayName(path: string): string;
349
- //#endregion
350
- //#region src/theme-editor/webmcp/types.d.ts
351
338
  interface ToolTextContent {
352
339
  type: 'text';
353
340
  text: string;
@@ -414,11 +401,7 @@ interface CreateThemeEditorToolsOptions {
414
401
  /** Default variant for styling writes. Defaults to `'both'`. */
415
402
  editTarget?: EditTarget;
416
403
  }
417
- //#endregion
418
- //#region src/theme-editor/webmcp/tools.d.ts
419
404
  export declare function createThemeEditorTools(state: ThemeEditorLike, options?: CreateThemeEditorToolsOptions): WebMcpTool[];
420
- //#endregion
421
- //#region src/theme-editor/webmcp/coerce.d.ts
422
405
  /**
423
406
  * Input coercion for the WebMCP theme tools.
424
407
  *
@@ -444,8 +427,6 @@ type RoundnessStyle = 'sharp' | 'default' | 'rounded' | 'pill';
444
427
  export declare function coerceRoundnessStyle(input: unknown): RoundnessStyle;
445
428
  /** Coerce a radius value: numbers become `${n}px`; CSS strings are normalized. */
446
429
  export declare function coerceRadius(input: unknown): string;
447
- //#endregion
448
- //#region src/theme-editor/webmcp/summary.d.ts
449
430
  export declare const RADIUS_PRESETS: Record<string, Record<string, string>>;
450
431
  interface RoleState {
451
432
  family: string;
@@ -518,6 +499,5 @@ interface ContrastReport {
518
499
  export declare function runContrastChecks(state: ThemeEditorLike, level?: ContrastLevel, variant?: 'light' | 'dark' | 'both', pairKeys?: string[]): ContrastReport;
519
500
  /** Compact contrast warnings for the regions a mutation touched. */
520
501
  export declare function quickContrastWarnings(state: ThemeEditorLike, pairKeys: string[], variant?: 'light' | 'dark' | 'both', level?: ContrastLevel): ContrastWarning[];
521
- //#endregion
522
502
  export { type AuthoredConfigExport, type BuildTranscriptStreamFramesOptions, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, type ContrastCheck, type ContrastLevel, type ContrastReport, type ContrastWarning, type CreateThemeEditorToolsOptions, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type EditTarget, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, type PreviewTranscriptEntryPreset, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleState, type RoleTarget, type RoleTargetKind, SHELL_STYLE_ID, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, type TabDef, type ThemeEditorLike, type ThemeEditorPreset, type ThemeSummary, type TokenRefOptions, type ToolAnnotations, type ToolContent, type ToolExecute, type ToolImageContent, type ToolResult, type ToolTextContent, type TranscriptStreamFrame, type WebMcpTool, ZOOM_MAX, ZOOM_MIN, appendPreviewTranscriptEntry, applySceneConfig, applyShellTheme, buildPreviewConfig, buildPreviewConfigWithMessages, buildShellCss, buildSrcdoc, buildTranscriptStreamFrames, createPreviewMessages, createPreviewTranscriptEntry, escapeHtml, getPreviewTranscriptPresetLabel, getShellPalette, presetStreamsText };
523
503
  export {}