@aparte/core 0.7.1 → 0.9.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 (175) hide show
  1. package/README.md +20 -6
  2. package/dist/client/aparte-client.d.ts +113 -47
  3. package/dist/client/aparte-client.d.ts.map +1 -1
  4. package/dist/client/lifecycle-events.d.ts +55 -0
  5. package/dist/client/lifecycle-events.d.ts.map +1 -0
  6. package/dist/client/stream-adapter.d.ts +11 -5
  7. package/dist/client/stream-adapter.d.ts.map +1 -1
  8. package/dist/client/xml-artifact-feed.d.ts +76 -0
  9. package/dist/client/xml-artifact-feed.d.ts.map +1 -0
  10. package/dist/components/bubble/aparte-chat-bubble.d.ts +35 -8
  11. package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
  12. package/dist/components/bubble/bubble-sync.d.ts.map +1 -1
  13. package/dist/components/chat/aparte-chat.d.ts +0 -6
  14. package/dist/components/chat/aparte-chat.d.ts.map +1 -1
  15. package/dist/components/composer/aparte-composer-action.d.ts +18 -3
  16. package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
  17. package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
  18. package/dist/components/composer/aparte-composer-attachments.d.ts +1 -1
  19. package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
  20. package/dist/components/composer/aparte-composer-cancel.d.ts.map +1 -1
  21. package/dist/components/composer/aparte-composer-input.d.ts +0 -2
  22. package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
  23. package/dist/components/composer/aparte-composer-send.d.ts +5 -0
  24. package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
  25. package/dist/components/composer/aparte-composer-toolbar.d.ts +4 -0
  26. package/dist/components/composer/aparte-composer-toolbar.d.ts.map +1 -1
  27. package/dist/components/composer/aparte-composer.d.ts +64 -6
  28. package/dist/components/composer/aparte-composer.d.ts.map +1 -1
  29. package/dist/components/composer/index.d.ts +1 -1
  30. package/dist/components/composer/index.d.ts.map +1 -1
  31. package/dist/components/conversation-list/aparte-conversation-list.d.ts +2 -5
  32. package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
  33. package/dist/components/conversation-list/index.d.ts +1 -1
  34. package/dist/components/conversation-list/index.d.ts.map +1 -1
  35. package/dist/components/elicitation/aparte-elicitation.d.ts +63 -3
  36. package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
  37. package/dist/components/index.d.ts +2 -2
  38. package/dist/components/index.d.ts.map +1 -1
  39. package/dist/components/status/aparte-chat-status.d.ts +8 -6
  40. package/dist/components/status/aparte-chat-status.d.ts.map +1 -1
  41. package/dist/components/viewport/aparte-chat-viewport.d.ts +45 -9
  42. package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
  43. package/dist/config/action-provider.d.ts +4 -4
  44. package/dist/config/aparte-config.d.ts +124 -41
  45. package/dist/config/aparte-config.d.ts.map +1 -1
  46. package/dist/config/attachment-renderer.d.ts +1 -1
  47. package/dist/config/avatar-provider.d.ts +1 -1
  48. package/dist/config/config-context.d.ts +66 -11
  49. package/dist/config/config-context.d.ts.map +1 -1
  50. package/dist/config/elicitation-field-renderer.d.ts +73 -0
  51. package/dist/config/elicitation-field-renderer.d.ts.map +1 -0
  52. package/dist/config/error-renderer.d.ts +1 -1
  53. package/dist/config/icon-provider.d.ts +2 -2
  54. package/dist/config/icon-provider.d.ts.map +1 -1
  55. package/dist/config/index.d.ts +7 -5
  56. package/dist/config/index.d.ts.map +1 -1
  57. package/dist/config/locale.d.ts +43 -2
  58. package/dist/config/locale.d.ts.map +1 -1
  59. package/dist/config/sanitize.d.ts +1 -7
  60. package/dist/config/sanitize.d.ts.map +1 -1
  61. package/dist/config/sibling-nav-renderer.d.ts +1 -1
  62. package/dist/config/skeleton-provider.d.ts +2 -2
  63. package/dist/config/skeleton-provider.d.ts.map +1 -1
  64. package/dist/config/status-renderer.d.ts +1 -1
  65. package/dist/conversations/conversation-controller.d.ts +19 -5
  66. package/dist/conversations/conversation-controller.d.ts.map +1 -1
  67. package/dist/conversations/conversation-manager.d.ts +2 -2
  68. package/dist/conversations/conversation-manager.d.ts.map +1 -1
  69. package/dist/conversations/index.d.ts +1 -1
  70. package/dist/conversations/index.d.ts.map +1 -1
  71. package/dist/conversations/types.d.ts +1 -1
  72. package/dist/custom-elements.json +8418 -6295
  73. package/dist/elicitation/index.d.ts +1 -1
  74. package/dist/elicitation/panel.d.ts +32 -0
  75. package/dist/elicitation/panel.d.ts.map +1 -1
  76. package/dist/elicitation/types.d.ts +29 -2
  77. package/dist/elicitation/types.d.ts.map +1 -1
  78. package/dist/host/aparte-chat-host.d.ts +3 -3
  79. package/dist/host/aparte-chat-host.d.ts.map +1 -1
  80. package/dist/{index-Dn7TH14G.js → index-hQQljwfX.js} +1890 -1222
  81. package/dist/index-hQQljwfX.js.map +1 -0
  82. package/dist/index.css +299 -21
  83. package/dist/index.d.ts +22 -13
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +485 -210
  86. package/dist/index.js.map +1 -1
  87. package/dist/index.node.d.ts +23 -13
  88. package/dist/index.node.d.ts.map +1 -1
  89. package/dist/index.node.js +56 -46
  90. package/dist/index.node.js.map +1 -1
  91. package/dist/interop/element-props.d.ts +1 -1
  92. package/dist/interop/element-props.d.ts.map +1 -1
  93. package/dist/parsers/aparte-stream-parser.d.ts +25 -0
  94. package/dist/parsers/aparte-stream-parser.d.ts.map +1 -1
  95. package/dist/primitives/index.d.ts +1 -1
  96. package/dist/primitives/index.d.ts.map +1 -1
  97. package/dist/primitives/select/aparte-optgroup.d.ts +15 -4
  98. package/dist/primitives/select/aparte-optgroup.d.ts.map +1 -1
  99. package/dist/primitives/select/aparte-option.d.ts +0 -5
  100. package/dist/primitives/select/aparte-option.d.ts.map +1 -1
  101. package/dist/primitives/select/aparte-select.d.ts +17 -5
  102. package/dist/primitives/select/aparte-select.d.ts.map +1 -1
  103. package/dist/primitives/select/index.d.ts +1 -1
  104. package/dist/primitives/select/index.d.ts.map +1 -1
  105. package/dist/renderers/markdown-stream.d.ts +42 -0
  106. package/dist/renderers/markdown-stream.d.ts.map +1 -0
  107. package/dist/renderers/segment-renderers.d.ts +20 -14
  108. package/dist/renderers/segment-renderers.d.ts.map +1 -1
  109. package/dist/renderers/segments/artifact/binary-file.d.ts +45 -0
  110. package/dist/renderers/segments/artifact/binary-file.d.ts.map +1 -0
  111. package/dist/renderers/segments/artifact/card.d.ts +3 -0
  112. package/dist/renderers/segments/artifact/card.d.ts.map +1 -0
  113. package/dist/renderers/segments/artifact/preview-document.d.ts +27 -0
  114. package/dist/renderers/segments/artifact/preview-document.d.ts.map +1 -0
  115. package/dist/renderers/segments/artifact/shared.d.ts +12 -0
  116. package/dist/renderers/segments/artifact/shared.d.ts.map +1 -0
  117. package/dist/renderers/segments/code.d.ts +3 -0
  118. package/dist/renderers/segments/code.d.ts.map +1 -0
  119. package/dist/renderers/segments/error.d.ts +3 -0
  120. package/dist/renderers/segments/error.d.ts.map +1 -0
  121. package/dist/renderers/segments/file-tree.d.ts +3 -0
  122. package/dist/renderers/segments/file-tree.d.ts.map +1 -0
  123. package/dist/renderers/segments/pipeline-waiting.d.ts +3 -0
  124. package/dist/renderers/segments/pipeline-waiting.d.ts.map +1 -0
  125. package/dist/renderers/segments/progress.d.ts +3 -0
  126. package/dist/renderers/segments/progress.d.ts.map +1 -0
  127. package/dist/renderers/segments/terminal.d.ts +3 -0
  128. package/dist/renderers/segments/terminal.d.ts.map +1 -0
  129. package/dist/renderers/segments/text.d.ts +10 -0
  130. package/dist/renderers/segments/text.d.ts.map +1 -0
  131. package/dist/renderers/segments/thinking.d.ts +3 -0
  132. package/dist/renderers/segments/thinking.d.ts.map +1 -0
  133. package/dist/renderers/segments/tool-call.d.ts +3 -0
  134. package/dist/renderers/segments/tool-call.d.ts.map +1 -0
  135. package/dist/runtime/message-repository.d.ts +3 -3
  136. package/dist/runtime/message-repository.d.ts.map +1 -1
  137. package/dist/transport/backend-handler.d.ts +19 -7
  138. package/dist/transport/backend-handler.d.ts.map +1 -1
  139. package/dist/transport/backend-transport.d.ts +1 -1
  140. package/dist/transport/backend-transport.d.ts.map +1 -1
  141. package/dist/transport/direct-transport.d.ts +4 -4
  142. package/dist/transport/direct-transport.d.ts.map +1 -1
  143. package/dist/transport/index.d.ts +2 -2
  144. package/dist/transport/index.d.ts.map +1 -1
  145. package/dist/transport/types.d.ts +3 -3
  146. package/dist/types/element-map.d.ts +69 -0
  147. package/dist/types/element-map.d.ts.map +1 -0
  148. package/dist/types/event-map.d.ts +84 -23
  149. package/dist/types/event-map.d.ts.map +1 -1
  150. package/dist/types/events.d.ts +212 -64
  151. package/dist/types/events.d.ts.map +1 -1
  152. package/dist/types/index.d.ts +4 -5
  153. package/dist/types/index.d.ts.map +1 -1
  154. package/dist/types/model-provider.d.ts +100 -54
  155. package/dist/types/model-provider.d.ts.map +1 -1
  156. package/dist/types/models.d.ts +29 -7
  157. package/dist/types/models.d.ts.map +1 -1
  158. package/dist/types/segments.d.ts +33 -8
  159. package/dist/types/segments.d.ts.map +1 -1
  160. package/dist/types/theming.d.ts +25 -37
  161. package/dist/types/theming.d.ts.map +1 -1
  162. package/dist/types/tools.d.ts +60 -15
  163. package/dist/types/tools.d.ts.map +1 -1
  164. package/dist/utils/escape.d.ts +46 -0
  165. package/dist/utils/escape.d.ts.map +1 -0
  166. package/dist/utils/files-to-attachments.d.ts +18 -1
  167. package/dist/utils/files-to-attachments.d.ts.map +1 -1
  168. package/dist/utils/segments.d.ts +174 -0
  169. package/dist/utils/segments.d.ts.map +1 -0
  170. package/dist/utils/uuid.d.ts +26 -0
  171. package/dist/utils/uuid.d.ts.map +1 -0
  172. package/package.json +3 -5
  173. package/dist/index-Dn7TH14G.js.map +0 -1
  174. package/dist/types/providers.d.ts +0 -93
  175. package/dist/types/providers.d.ts.map +0 -1
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @example
8
8
  * // Register an icon provider (e.g. a FontAwesome bridge)
9
- * AparteConfig.setIconProvider({
9
+ * aparteGlobalConfig.setIconProvider({
10
10
  * copy: () => '<i class="fas fa-copy"></i>',
11
11
  * check: () => '<i class="fas fa-check"></i>',
12
12
  * // ...
@@ -59,5 +59,5 @@ export interface AparteIconProvider {
59
59
  /** Icon names available in the provider */
60
60
  export type AparteIconName = keyof AparteIconProvider;
61
61
  /** Default textual fallbacks - zero dependency */
62
- export declare const DEFAULT_ICON_FALLBACKS: Record<AparteIconName, string>;
62
+ export declare const APARTE_DEFAULT_ICON_FALLBACKS: Record<AparteIconName, string>;
63
63
  //# sourceMappingURL=icon-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-provider.d.ts","sourceRoot":"","sources":["../../src/config/icon-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,kBAAkB;IAM/B,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC;IACvB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC;IACtB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC;IACxB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;IACzB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;IAC1B,8BAA8B;IAC9B,KAAK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AAM,CAAC;IACxB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;IACzB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;IAC1B,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC;IACvB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;IACzB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;IAC1B,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;IAC1B,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;CACvB;AAED,2CAA2C;AAC3C,MAAM,MAAM,cAAc,GAAG,MAAM,kBAAkB,CAAC;AAEtD,kDAAkD;AAClD,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAsBxE,CAAC"}
@@ -1,19 +1,21 @@
1
- export { AparteConfig, AparteConfigClass, DEFAULT_BUBBLE_ACTIONS, DEFAULT_HOST_HANDLERS } from './aparte-config.js';
1
+ export { aparteGlobalConfig, AparteConfig, APARTE_DEFAULT_BUBBLE_ACTIONS, APARTE_DEFAULT_HOST_HANDLERS } from './aparte-config.js';
2
2
  export { resolveConfig, attachConfig, detachConfig, runWithConfig, contextConfig, APARTE_HOST_ATTR } from './config-context.js';
3
- export type { AparteMarkdownProvider, AparteStreamingMarkdownProvider, AparteStreamingMarkdownRenderer, AparteHighlightProvider, AparteSystemPromptVarsProvider, AparteModelPreference, AparteModelPreferenceProvider, AparteArtifactPreviewBuilder } from './aparte-config.js';
3
+ export type { AparteConfigAware } from './config-context.js';
4
+ export type { AparteConfigChangeEventDetail, AparteMarkdownProvider, AparteStreamingMarkdownProvider, AparteStreamingMarkdownRenderer, AparteHighlightProvider, AparteSystemPromptVarsProvider, AparteModelPreference, AparteModelPreferenceProvider, AparteArtifactPreviewBuilder } from './aparte-config.js';
4
5
  export type { AparteSanitizer } from './sanitize.js';
5
6
  export { defaultSanitizer, isSafeUrl } from './sanitize.js';
6
7
  export type { AparteIconProvider, AparteIconName } from './icon-provider.js';
7
- export { DEFAULT_ICON_FALLBACKS } from './icon-provider.js';
8
+ export { APARTE_DEFAULT_ICON_FALLBACKS } from './icon-provider.js';
8
9
  export type { AparteSkeletonType, AparteSkeletonProvider } from './skeleton-provider.js';
9
- export { DEFAULT_SKELETON_FALLBACKS } from './skeleton-provider.js';
10
+ export { APARTE_DEFAULT_SKELETON_FALLBACKS } from './skeleton-provider.js';
10
11
  export type { AparteAvatarProvider } from './avatar-provider.js';
11
12
  export type { AparteStatusRenderer } from './status-renderer.js';
12
13
  export type { AparteErrorRenderer } from './error-renderer.js';
13
14
  export type { AparteAttachmentRenderer } from './attachment-renderer.js';
15
+ export type { AparteElicitationFieldRenderer, AparteElicitationFieldContext, AparteElicitationFieldControl, } from './elicitation-field-renderer.js';
14
16
  export type { AparteSiblingNavRenderer } from './sibling-nav-renderer.js';
15
17
  export type { AparteBubbleShellRenderer } from './bubble-shell-renderer.js';
16
18
  export type { AparteLocale } from './locale.js';
17
- export { DEFAULT_LOCALE } from './locale.js';
19
+ export { APARTE_DEFAULT_LOCALE } from './locale.js';
18
20
  export type { AparteAction, AparteActionZone } from './action-provider.js';
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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BAA4B,CAAC;AAC5E,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Defines all translatable strings for the chat interface.
5
5
  * The core keeps only the English default in memory.
6
- * Other languages are injected via AparteConfig.setLocale().
6
+ * Other languages are injected via aparteGlobalConfig.setLocale().
7
7
  */
8
8
  export interface AparteLocale {
9
9
  inputPlaceholder: string;
@@ -47,6 +47,47 @@ export interface AparteLocale {
47
47
  archiveConversation?: string;
48
48
  /** Aria-label for the unarchive conversation button (default: "Unarchive conversation") */
49
49
  unarchiveConversation?: string;
50
+ /** The free-text fallback option in a choice (default: "Other…") */
51
+ elicitationOther?: string;
52
+ /** Placeholder of the free-text input that option reveals (default: "Type your answer…") */
53
+ elicitationOtherPlaceholder?: string;
54
+ /** Accessible name of that input, which has no visible label (default: "Custom answer") */
55
+ elicitationOtherLabel?: string;
56
+ /**
57
+ * The send button while a question panel is open, where it submits an ANSWER
58
+ * rather than sending a message (default: "Submit").
59
+ *
60
+ * The component has been reading this key since the panel API existed; it was
61
+ * never declared, so `t()` returned "" and the hardcoded fallback showed. A key
62
+ * read and never declared is worse than a literal: it looks translated.
63
+ */
64
+ submitButton?: string;
65
+ /**
66
+ * The send button while a form of several questions has more ahead — it advances
67
+ * instead of submitting (default: "Next").
68
+ *
69
+ * This key existed briefly for a Next button inside the panel, and went when that
70
+ * button did. It comes back because the MEANING came back, on a different element:
71
+ * the composer's one button, which is where it belonged.
72
+ */
73
+ elicitationNext?: string;
74
+ /**
75
+ * The affordance that declines the request (default: "Skip").
76
+ *
77
+ * "Skip" reads as "skip THIS one" on a form of several questions, while it
78
+ * declines the whole request — including questions already answered. That is MCP's
79
+ * `decline` and the right behaviour. It was briefly renamed to carry the warning;
80
+ * reverted, because the RECEIPT now shows the outcome unambiguously (one declined
81
+ * row, no question attached), so the label no longer has to do that work — and
82
+ * "Skip" is the short conventional word for it.
83
+ */
84
+ elicitationSkip?: string;
85
+ /** Affirmative choice of a yes/no question (default: "Yes") */
86
+ elicitationYes?: string;
87
+ /** Negative choice of a yes/no question (default: "No") */
88
+ elicitationNo?: string;
89
+ /** Last-resort accessible name for a free-text answer (default: "Your answer") */
90
+ elicitationAnswerLabel?: string;
50
91
  /** Direction of the text (ltr or rtl) - defaults to ltr */
51
92
  direction?: 'ltr' | 'rtl';
52
93
  /** Allow extensions for plugins */
@@ -56,5 +97,5 @@ export interface AparteLocale {
56
97
  * Default English Locale (Zero-dependency)
57
98
  * Hardcoded to ensure the core works out-of-the-box.
58
99
  */
59
- export declare const DEFAULT_LOCALE: AparteLocale;
100
+ export declare const APARTE_DEFAULT_LOCALE: AparteLocale;
60
101
  //# sourceMappingURL=locale.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/config/locale.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAEzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IAGnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAGhB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,iBAAiB,EAAE,MAAM,CAAC;IAG1B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IAGvB,IAAI,EAAE,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2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAGhC,2DAA2D;IAC3D,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAE1B,mCAAmC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YA2CnC,CAAC"}
@@ -12,15 +12,9 @@
12
12
  * `DOMParser.parseFromString`), the tree is rebuilt keeping only known-safe tags
13
13
  * and attributes, then re-serialized. It is deliberately conservative and covers
14
14
  * the realistic threat model (LLM-emitted markup). For hardened, audited
15
- * coverage, register DOMPurify via `AparteConfig.setHtmlSanitizer`.
15
+ * coverage, register DOMPurify via `aparteGlobalConfig.setHtmlSanitizer`.
16
16
  */
17
17
  export type AparteSanitizer = (html: string) => string;
18
- /**
19
- * True when a URL is safe to place in a `href`/`src` attribute. Exported so a
20
- * streaming renderer (which bypasses the one-shot `sanitizeHtml`) can apply the
21
- * same URL policy live. `tag` is the host element ('a', 'img', …) — `data:image`
22
- * URLs are only allowed on `img`.
23
- */
24
18
  export declare function isSafeUrl(value: string, tag: string): boolean;
25
19
  /**
26
20
  * The built-in sanitizer. Parses `html` with the platform DOMParser, rebuilds an
@@ -1 +1 @@
1
- {"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/config/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AA0DvD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ7D;AAkGD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAY9B,CAAC"}
1
+ {"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/config/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAwGvD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAQ7D;AA6GD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAY9B,CAAC"}
@@ -12,7 +12,7 @@
12
12
  * dispatch your own events / use the imperative API from your rendered output.
13
13
  *
14
14
  * @example
15
- * AparteConfig.setSiblingNavRenderer(({ count, index }) =>
15
+ * aparteGlobalConfig.setSiblingNavRenderer(({ count, index }) =>
16
16
  * Array.from({ length: count }, (_, i) =>
17
17
  * `<span class="dot${i === index ? ' active' : ''}"></span>`).join(''));
18
18
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @example
8
8
  * // Register a skeleton provider (e.g. an Angular ngx-skeleton-loader bridge)
9
- * AparteConfig.setSkeletonProvider({
9
+ * aparteGlobalConfig.setSkeletonProvider({
10
10
  * message: () => '<ngx-skeleton-loader count="3"></ngx-skeleton-loader>',
11
11
  * code: () => '<ngx-skeleton-loader appearance="line" count="5"></ngx-skeleton-loader>',
12
12
  * // ...
@@ -22,5 +22,5 @@ export interface AparteSkeletonProvider {
22
22
  * Minimal fallback skeletons - zero CSS animations, just structure
23
23
  * Used when no skeleton plugin is installed
24
24
  */
25
- export declare const DEFAULT_SKELETON_FALLBACKS: Record<AparteSkeletonType, string>;
25
+ export declare const APARTE_DEFAULT_SKELETON_FALLBACKS: Record<AparteSkeletonType, string>;
26
26
  //# sourceMappingURL=skeleton-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-provider.d.ts","sourceRoot":"","sources":["../../src/config/skeleton-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GACxB,SAAS,GACT,MAAM,GACN,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,CAAC;AAEb,MAAM,WAAW,sBAAsB;IACnC,4CAA4C;IAC5C,WAAW,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,MAAM,CAAC;CACrD;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAOzE,CAAC"}
1
+ {"version":3,"file":"skeleton-provider.d.ts","sourceRoot":"","sources":["../../src/config/skeleton-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,+CAA+C;AAC/C,MAAM,MAAM,kBAAkB,GACxB,SAAS,GACT,MAAM,GACN,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,CAAC;AAEb,MAAM,WAAW,sBAAsB;IACnC,4CAA4C;IAC5C,WAAW,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,MAAM,CAAC;CACrD;AAED;;;GAGG;AACH,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAOhF,CAAC"}
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @example
11
11
  * // A custom spinner, driven by the typing text.
12
- * AparteConfig.setStatusRenderer((text) => {
12
+ * aparteGlobalConfig.setStatusRenderer((text) => {
13
13
  * const el = document.createElement('div');
14
14
  * el.className = 'my-typing';
15
15
  * el.textContent = text;
@@ -1,5 +1,5 @@
1
1
  import type { AparteMessage } from '../types/index.js';
2
- import type { ConversationManager } from './conversation-manager.js';
2
+ import type { AparteConversationManager } from './conversation-manager.js';
3
3
  import type { ExportedMessageRepository } from '../runtime/message-repository.js';
4
4
  /**
5
5
  * Abstract binding between a chat UI and the conversation lifecycle.
@@ -24,7 +24,7 @@ export interface AparteChatBinding {
24
24
  clearMessages(): void;
25
25
  /**
26
26
  * Export the full conversation tree for persistence.
27
- * Optional: only available when the binding wraps a `MessageRepository`
27
+ * Optional: only available when the binding wraps a `AparteMessageRepository`
28
28
  * (e.g. the vanilla viewport). Returns `undefined` when not supported.
29
29
  */
30
30
  exportTree?(): ExportedMessageRepository | undefined;
@@ -39,9 +39,9 @@ export interface AparteChatBinding {
39
39
  export interface AparteConversationControllerOptions {
40
40
  /**
41
41
  * Conversation manager. If omitted, the controller resolves it from
42
- * `AparteConfig.getConversationManager()` when first needed.
42
+ * `aparteGlobalConfig.getConversationManager()` when first needed.
43
43
  */
44
- manager?: ConversationManager;
44
+ manager?: AparteConversationManager;
45
45
  /**
46
46
  * Called whenever a new conversation is created lazily (on first user
47
47
  * message in an empty thread). Useful for the parent app to sync the URL.
@@ -49,7 +49,7 @@ export interface AparteConversationControllerOptions {
49
49
  onConversationCreated?: (id: string) => void;
50
50
  }
51
51
  /**
52
- * Connects an `AparteChatBinding` to a `ConversationManager`.
52
+ * Connects an `AparteChatBinding` to a `AparteConversationManager`.
53
53
  *
54
54
  * Responsibilities:
55
55
  * - Load messages when `setConversationId(id)` is called.
@@ -92,11 +92,25 @@ export declare class AparteConversationController {
92
92
  * conversation lifecycle yet.
93
93
  */
94
94
  private _manager;
95
+ /**
96
+ * Degraded mode is legitimate — a host that never opted into the conversation
97
+ * lifecycle has no manager and should not be nagged. Registering one on the
98
+ * WRONG config is not: the four wrapper hooks used to write it to the global
99
+ * singleton unconditionally, so `config` + persistence looked like it worked
100
+ * (the optimistic UI still appends) and saved nothing at all.
101
+ *
102
+ * Warned once per controller, and only in the case that is unambiguously a
103
+ * mistake: no manager here, but one on the global.
104
+ */
105
+ private _warnedNoManager;
106
+ private _warnManagerOnTheWrongConfig;
95
107
  /**
96
108
  * Attach event listeners to the binding host. Returns an unbind function.
97
109
  */
98
110
  bind(): () => void;
99
111
  /** Detach event listeners. */
112
+ /** Release handle for the hydration-retry subscription (see setConversationId). */
113
+ private _stopHydrationRetry;
100
114
  unbind(): void;
101
115
  /**
102
116
  * Switch to (or clear) the active conversation.
@@ -1 +1 @@
1
- {"version":3,"file":"con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FAAmF;IACnF,OAAO,CAAC,mBAAmB,CAA6B;IAExD,MAAM,IAAI,IAAI;IA6Cd;;;;;;;;;;OAUG;IACG,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IA2HzD;;;;;;;;;OASG;IACH,OAAO,CAAC,cAAc;YA2BR,6BAA6B;CAiD9C"}
@@ -29,7 +29,7 @@ export declare function applyRetention(messages: AparteMessage[], tree: Exported
29
29
  *
30
30
  * Usage:
31
31
  * ```ts
32
- * const manager = new ConversationManager(myAdapter);
32
+ * const manager = new AparteConversationManager(myAdapter);
33
33
  * await manager.init(); // load from storage
34
34
  * const conv = await manager.createNew(); // returns new AparteConversation
35
35
  * ```
@@ -38,7 +38,7 @@ export declare function applyRetention(messages: AparteMessage[], tree: Exported
38
38
  * mutation so framework wrappers (Angular signals, Vue reactive, etc.) can
39
39
  * react without polling.
40
40
  */
41
- export declare class ConversationManager {
41
+ export declare class AparteConversationManager {
42
42
  private _adapter;
43
43
  private _conversations;
44
44
  private _activeId;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-manager.d.ts","sourceRoot":"","sources":["../../src/conversations/conversation-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAGlF,KAAK,QAAQ,GAAG,CAAC,aAAa,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;AAE9D,MAAM,WAAW,0BAA0B;IACvC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,QAAQ,EAAE,aAAa,EAAE,EACzB,IAAI,EAAE,yBAAyB,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AAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBxC,wCAAwC;IAClC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB1C;;;sEAGkE;IAC5D,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW3D,SAAS,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,IAAI;IAOzC,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,OAAO;IAcf,OAAO,CAAC,UAAU;CAQrB"}
@@ -1,5 +1,5 @@
1
1
  export type { AparteConversation, AparteConversationMeta, AparteStorageAdapter, AparteMemoryFact, AparteArtifactRow, AparteAttachmentRow, } from './types.js';
2
2
  export { APARTE_CONVERSATION_SCHEMA_VERSION } from './types.js';
3
- export { ConversationManager, applyRetention, type ConversationManagerOptions } from './conversation-manager.js';
3
+ export { AparteConversationManager, applyRetention, type ConversationManagerOptions } from './conversation-manager.js';
4
4
  export { AparteConversationController, type AparteChatBinding, type AparteConversationControllerOptions, } from './conversation-controller.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conversations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,KAAK,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EACH,4BAA4B,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,GAC3C,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conversations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,KAAK,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvH,OAAO,EACH,4BAA4B,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,GAC3C,MAAM,8BAA8B,CAAC"}
@@ -122,7 +122,7 @@ export interface AparteAttachmentRow {
122
122
  /**
123
123
  * Implement this interface to provide persistence for conversations.
124
124
  * All methods are async so any backend (IndexedDB, SQLite WASM, REST API…)
125
- * can be used. The ConversationManager never touches storage directly.
125
+ * can be used. The AparteConversationManager never touches storage directly.
126
126
  *
127
127
  * The first three methods (`loadAll`, `save`, `delete`) form the minimum
128
128
  * viable adapter — everything else is optional and lets richer backends