@svadmin/ai-elements 0.7.4 → 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 (218) hide show
  1. package/README.md +31 -4
  2. package/THIRD_PARTY_NOTICES.md +67 -6
  3. package/dist/ai-workspace-contract.d.ts +14 -0
  4. package/dist/ai-workspace-contract.js +14 -0
  5. package/dist/ai.css +2 -5
  6. package/dist/ai.theme.css +1 -0
  7. package/dist/class-properties.generated.d.ts +1 -0
  8. package/dist/class-properties.generated.js +2 -0
  9. package/dist/classnames.d.ts +8 -0
  10. package/dist/classnames.js +26 -0
  11. package/dist/components/Response.svelte +2 -2
  12. package/dist/components/Response.svelte.d.ts +1 -1
  13. package/dist/components/code/index.d.ts +9 -18
  14. package/dist/components/code/index.js +8 -11
  15. package/dist/components/code-block/highlight.js +1 -1
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.js +1 -0
  18. package/dist/utilities.css +3172 -0
  19. package/dist/utils.d.ts +1 -1
  20. package/dist/utils.js +1 -1
  21. package/package.json +36 -11
  22. package/vendor/streamdown/AnimatedText.svelte +93 -0
  23. package/vendor/streamdown/AnimatedText.svelte.d.ts +6 -0
  24. package/vendor/streamdown/Block.svelte +96 -0
  25. package/vendor/streamdown/Block.svelte.d.ts +11 -0
  26. package/vendor/streamdown/Elements/Alert.svelte +69 -0
  27. package/vendor/streamdown/Elements/Alert.svelte.d.ts +10 -0
  28. package/vendor/streamdown/Elements/Citation.svelte +260 -0
  29. package/vendor/streamdown/Elements/Citation.svelte.d.ts +7 -0
  30. package/vendor/streamdown/Elements/Code.svelte +226 -0
  31. package/vendor/streamdown/Elements/Code.svelte.d.ts +9 -0
  32. package/vendor/streamdown/Elements/Element.svelte +574 -0
  33. package/vendor/streamdown/Elements/Element.svelte.d.ts +10 -0
  34. package/vendor/streamdown/Elements/FootnoteRef.svelte +30 -0
  35. package/vendor/streamdown/Elements/FootnoteRef.svelte.d.ts +7 -0
  36. package/vendor/streamdown/Elements/Footnotes.svelte +54 -0
  37. package/vendor/streamdown/Elements/Footnotes.svelte.d.ts +7 -0
  38. package/vendor/streamdown/Elements/Image.svelte +200 -0
  39. package/vendor/streamdown/Elements/Image.svelte.d.ts +10 -0
  40. package/vendor/streamdown/Elements/Link.svelte +220 -0
  41. package/vendor/streamdown/Elements/Link.svelte.d.ts +10 -0
  42. package/vendor/streamdown/Elements/LinkSafetyModal.svelte +121 -0
  43. package/vendor/streamdown/Elements/LinkSafetyModal.svelte.d.ts +4 -0
  44. package/vendor/streamdown/Elements/Math.svelte +100 -0
  45. package/vendor/streamdown/Elements/Math.svelte.d.ts +9 -0
  46. package/vendor/streamdown/Elements/Mermaid.svelte +455 -0
  47. package/vendor/streamdown/Elements/Mermaid.svelte.d.ts +9 -0
  48. package/vendor/streamdown/Elements/MermaidDownload.svelte +145 -0
  49. package/vendor/streamdown/Elements/MermaidDownload.svelte.d.ts +8 -0
  50. package/vendor/streamdown/Elements/Slot.svelte +23 -0
  51. package/vendor/streamdown/Elements/Slot.svelte.d.ts +10 -0
  52. package/vendor/streamdown/Elements/Table.svelte +195 -0
  53. package/vendor/streamdown/Elements/Table.svelte.d.ts +9 -0
  54. package/vendor/streamdown/Elements/TableDownload.svelte +221 -0
  55. package/vendor/streamdown/Elements/TableDownload.svelte.d.ts +8 -0
  56. package/vendor/streamdown/Elements/fallbacks/CodeFallback.svelte +41 -0
  57. package/vendor/streamdown/Elements/fallbacks/CodeFallback.svelte.d.ts +9 -0
  58. package/vendor/streamdown/Elements/fallbacks/MathFallback.svelte +35 -0
  59. package/vendor/streamdown/Elements/fallbacks/MathFallback.svelte.d.ts +8 -0
  60. package/vendor/streamdown/Elements/fallbacks/MermaidFallback.svelte +36 -0
  61. package/vendor/streamdown/Elements/fallbacks/MermaidFallback.svelte.d.ts +9 -0
  62. package/vendor/streamdown/Elements/fallbacks/index.d.ts +3 -0
  63. package/vendor/streamdown/Elements/fallbacks/index.js +3 -0
  64. package/vendor/streamdown/Elements/icons.d.ts +31 -0
  65. package/vendor/streamdown/Elements/icons.js +200 -0
  66. package/vendor/streamdown/Elements/index.d.ts +8 -0
  67. package/vendor/streamdown/Elements/index.js +8 -0
  68. package/vendor/streamdown/Elements/popover.svelte.d.ts +8 -0
  69. package/vendor/streamdown/Elements/popover.svelte.js +45 -0
  70. package/vendor/streamdown/Elements/stepperState.svelte.d.ts +36 -0
  71. package/vendor/streamdown/Elements/stepperState.svelte.js +92 -0
  72. package/vendor/streamdown/IconProvider.svelte +11 -0
  73. package/vendor/streamdown/IconProvider.svelte.d.ts +30 -0
  74. package/vendor/streamdown/LICENSE +202 -0
  75. package/vendor/streamdown/PluginProvider.svelte +11 -0
  76. package/vendor/streamdown/PluginProvider.svelte.d.ts +30 -0
  77. package/vendor/streamdown/README.svadmin.md +5 -0
  78. package/vendor/streamdown/Streamdown.svelte +447 -0
  79. package/vendor/streamdown/Streamdown.svelte.d.ts +25 -0
  80. package/vendor/streamdown/block/BlockTokens.svelte +45 -0
  81. package/vendor/streamdown/block/BlockTokens.svelte.d.ts +9 -0
  82. package/vendor/streamdown/block/html.d.ts +14 -0
  83. package/vendor/streamdown/block/html.js +27 -0
  84. package/vendor/streamdown/block/text.d.ts +10 -0
  85. package/vendor/streamdown/block/text.js +31 -0
  86. package/vendor/streamdown/context-key.d.ts +1 -0
  87. package/vendor/streamdown/context-key.js +1 -0
  88. package/vendor/streamdown/context.svelte.d.ts +24 -0
  89. package/vendor/streamdown/context.svelte.js +75 -0
  90. package/vendor/streamdown/contracts/plugins.d.ts +26 -0
  91. package/vendor/streamdown/contracts/plugins.js +1 -0
  92. package/vendor/streamdown/contracts/streamdown.d.ts +374 -0
  93. package/vendor/streamdown/contracts/streamdown.js +29 -0
  94. package/vendor/streamdown/detect-direction.d.ts +1 -0
  95. package/vendor/streamdown/detect-direction.js +1 -0
  96. package/vendor/streamdown/icon-context.d.ts +36 -0
  97. package/vendor/streamdown/icon-context.js +52 -0
  98. package/vendor/streamdown/incomplete-code.d.ts +6 -0
  99. package/vendor/streamdown/incomplete-code.js +23 -0
  100. package/vendor/streamdown/index.d.ts +22 -0
  101. package/vendor/streamdown/index.js +20 -0
  102. package/vendor/streamdown/markdown-parse-cache.d.ts +37 -0
  103. package/vendor/streamdown/markdown-parse-cache.js +109 -0
  104. package/vendor/streamdown/markdown.d.ts +21 -0
  105. package/vendor/streamdown/markdown.js +214 -0
  106. package/vendor/streamdown/marked/index.d.ts +44 -0
  107. package/vendor/streamdown/marked/index.js +228 -0
  108. package/vendor/streamdown/marked/marked-alert.d.ts +13 -0
  109. package/vendor/streamdown/marked/marked-alert.js +47 -0
  110. package/vendor/streamdown/marked/marked-align.d.ts +10 -0
  111. package/vendor/streamdown/marked/marked-align.js +45 -0
  112. package/vendor/streamdown/marked/marked-br.d.ts +6 -0
  113. package/vendor/streamdown/marked/marked-br.js +15 -0
  114. package/vendor/streamdown/marked/marked-citations.d.ts +8 -0
  115. package/vendor/streamdown/marked/marked-citations.js +53 -0
  116. package/vendor/streamdown/marked/marked-cjk.d.ts +2 -0
  117. package/vendor/streamdown/marked/marked-cjk.js +165 -0
  118. package/vendor/streamdown/marked/marked-dl.d.ts +23 -0
  119. package/vendor/streamdown/marked/marked-dl.js +44 -0
  120. package/vendor/streamdown/marked/marked-footnotes.d.ts +26 -0
  121. package/vendor/streamdown/marked/marked-footnotes.js +101 -0
  122. package/vendor/streamdown/marked/marked-hr.d.ts +6 -0
  123. package/vendor/streamdown/marked/marked-hr.js +18 -0
  124. package/vendor/streamdown/marked/marked-list.d.ts +31 -0
  125. package/vendor/streamdown/marked/marked-list.js +330 -0
  126. package/vendor/streamdown/marked/marked-math.d.ts +13 -0
  127. package/vendor/streamdown/marked/marked-math.js +129 -0
  128. package/vendor/streamdown/marked/marked-mdx.d.ts +12 -0
  129. package/vendor/streamdown/marked/marked-mdx.js +124 -0
  130. package/vendor/streamdown/marked/marked-subsup.d.ts +22 -0
  131. package/vendor/streamdown/marked/marked-subsup.js +40 -0
  132. package/vendor/streamdown/marked/marked-table.d.ts +80 -0
  133. package/vendor/streamdown/marked/marked-table.js +527 -0
  134. package/vendor/streamdown/plugin-context.d.ts +19 -0
  135. package/vendor/streamdown/plugin-context.js +40 -0
  136. package/vendor/streamdown/plugins/cjk-shared.d.ts +1 -0
  137. package/vendor/streamdown/plugins/cjk-shared.js +1 -0
  138. package/vendor/streamdown/plugins.d.ts +19 -0
  139. package/vendor/streamdown/plugins.js +107 -0
  140. package/vendor/streamdown/provenance.json +229 -0
  141. package/vendor/streamdown/remend.d.ts +2 -0
  142. package/vendor/streamdown/remend.js +1 -0
  143. package/vendor/streamdown/security/html.d.ts +19 -0
  144. package/vendor/streamdown/security/html.js +329 -0
  145. package/vendor/streamdown/security/preprocess-custom-tags.d.ts +1 -0
  146. package/vendor/streamdown/security/preprocess-custom-tags.js +20 -0
  147. package/vendor/streamdown/security/preprocess-literal-tag-content.d.ts +1 -0
  148. package/vendor/streamdown/security/preprocess-literal-tag-content.js +16 -0
  149. package/vendor/streamdown/security/types.d.ts +1 -0
  150. package/vendor/streamdown/security/types.js +1 -0
  151. package/vendor/streamdown/site/SiteHeader.svelte +94 -0
  152. package/vendor/streamdown/site/SiteHeader.svelte.d.ts +6 -0
  153. package/vendor/streamdown/site/home/HomeDemo.svelte +122 -0
  154. package/vendor/streamdown/site/home/HomeDemo.svelte.d.ts +3 -0
  155. package/vendor/streamdown/site/home/HomePage.svelte +293 -0
  156. package/vendor/streamdown/site/home/HomePage.svelte.d.ts +3 -0
  157. package/vendor/streamdown/site/home/content.d.ts +69 -0
  158. package/vendor/streamdown/site/home/content.js +144 -0
  159. package/vendor/streamdown/site/metadata.d.ts +4 -0
  160. package/vendor/streamdown/site/metadata.js +4 -0
  161. package/vendor/streamdown/site/navigation.d.ts +6 -0
  162. package/vendor/streamdown/site/navigation.js +22 -0
  163. package/vendor/streamdown/streamdown/config.d.ts +41 -0
  164. package/vendor/streamdown/streamdown/config.js +125 -0
  165. package/vendor/streamdown/streamdown/context.d.ts +12 -0
  166. package/vendor/streamdown/streamdown/context.js +2 -0
  167. package/vendor/streamdown/streamdown/incomplete-markdown.d.ts +5 -0
  168. package/vendor/streamdown/streamdown/incomplete-markdown.js +79 -0
  169. package/vendor/streamdown/streamdown/pipeline.d.ts +95 -0
  170. package/vendor/streamdown/streamdown/pipeline.js +138 -0
  171. package/vendor/streamdown/streamdown/runtime.d.ts +59 -0
  172. package/vendor/streamdown/streamdown/runtime.js +112 -0
  173. package/vendor/streamdown/streaming.d.ts +5 -0
  174. package/vendor/streamdown/streaming.js +5 -0
  175. package/vendor/streamdown/theme.d.ts +486 -0
  176. package/vendor/streamdown/theme.js +370 -0
  177. package/vendor/streamdown/translations.d.ts +43 -0
  178. package/vendor/streamdown/translations.js +54 -0
  179. package/vendor/streamdown/url-policy.d.ts +1 -0
  180. package/vendor/streamdown/url-policy.js +1 -0
  181. package/vendor/streamdown/utils/bind.d.ts +8 -0
  182. package/vendor/streamdown/utils/bind.js +26 -0
  183. package/vendor/streamdown/utils/bundledLanguages.d.ts +1 -0
  184. package/vendor/streamdown/utils/bundledLanguages.js +1 -0
  185. package/vendor/streamdown/utils/code-block.d.ts +8 -0
  186. package/vendor/streamdown/utils/code-block.js +38 -0
  187. package/vendor/streamdown/utils/copy.svelte.d.ts +7 -0
  188. package/vendor/streamdown/utils/copy.svelte.js +38 -0
  189. package/vendor/streamdown/utils/darkMode.svelte.d.ts +3 -0
  190. package/vendor/streamdown/utils/darkMode.svelte.js +49 -0
  191. package/vendor/streamdown/utils/detectDirection.d.ts +1 -0
  192. package/vendor/streamdown/utils/detectDirection.js +19 -0
  193. package/vendor/streamdown/utils/get.d.ts +1 -0
  194. package/vendor/streamdown/utils/get.js +25 -0
  195. package/vendor/streamdown/utils/hightlighter.svelte.d.ts +30 -0
  196. package/vendor/streamdown/utils/hightlighter.svelte.js +524 -0
  197. package/vendor/streamdown/utils/index.d.ts +3 -0
  198. package/vendor/streamdown/utils/index.js +3 -0
  199. package/vendor/streamdown/utils/mermaid.d.ts +13 -0
  200. package/vendor/streamdown/utils/mermaid.js +49 -0
  201. package/vendor/streamdown/utils/panzoom.svelte.d.ts +35 -0
  202. package/vendor/streamdown/utils/panzoom.svelte.js +556 -0
  203. package/vendor/streamdown/utils/parse-incomplete-markdown.d.ts +2 -0
  204. package/vendor/streamdown/utils/parse-incomplete-markdown.js +2 -0
  205. package/vendor/streamdown/utils/runtime-env.d.ts +1 -0
  206. package/vendor/streamdown/utils/runtime-env.js +13 -0
  207. package/vendor/streamdown/utils/save.d.ts +1 -0
  208. package/vendor/streamdown/utils/save.js +14 -0
  209. package/vendor/streamdown/utils/scroll-lock.d.ts +2 -0
  210. package/vendor/streamdown/utils/scroll-lock.js +35 -0
  211. package/vendor/streamdown/utils/table.d.ts +8 -0
  212. package/vendor/streamdown/utils/table.js +176 -0
  213. package/vendor/streamdown/utils/url.d.ts +22 -0
  214. package/vendor/streamdown/utils/url.js +98 -0
  215. package/vendor/streamdown/utils/useClickOutside.svelte.d.ts +8 -0
  216. package/vendor/streamdown/utils/useClickOutside.svelte.js +41 -0
  217. package/vendor/streamdown/utils/useKeyDown.svelte.d.ts +5 -0
  218. package/vendor/streamdown/utils/useKeyDown.svelte.js +23 -0
package/README.md CHANGED
@@ -14,9 +14,15 @@ Import the package stylesheet once in your application CSS:
14
14
  @import '@svadmin/ai-elements/ai.css';
15
15
  ```
16
16
 
17
+ The legacy `ai.theme.css` path is a plain-CSS alias of `ai.css`, not compiler
18
+ metadata. Consumers need no Tailwind or Panda compiler plugin. Finite utility
19
+ styles are generated from `design/migrated-utilities` by the repository build.
20
+ Native conditional class composition preserves unknown host classes; it does
21
+ not interpret arbitrary new utility-language strings.
22
+
17
23
  ## Vite SSR
18
24
 
19
- Vite SSR consumers must bundle the Svelte and ESM dependency boundary used by the complete package entry:
25
+ Vite SSR consumers must bundle the Svelte and ESM dependency boundary used by the complete package entry, including the explicitly vendored Markdown renderer:
20
26
 
21
27
  ```ts
22
28
  import { defineConfig } from 'vite';
@@ -24,17 +30,18 @@ import { defineConfig } from 'vite';
24
30
  export default defineConfig({
25
31
  ssr: {
26
32
  noExternal: [
33
+ '@svadmin/ai-elements',
27
34
  '@tanstack/svelte-query',
28
35
  '@xyflow/svelte',
29
36
  '@xyflow/system',
30
37
  'katex',
31
- 'streamdown-svelte',
32
38
  ],
33
39
  },
34
40
  });
35
41
  ```
36
42
 
37
- The packed-package verification loads the root entry through `vite.ssrLoadModule` and renders representative components with `svelte/server` using this exact boundary.
43
+ The package's SSR verification loads the root entry through `vite.ssrLoadModule`
44
+ and renders representative components with `svelte/server`.
38
45
 
39
46
  ## Core Components
40
47
 
@@ -103,6 +110,7 @@ export const componentRegistry = {
103
110
  schema: Type.Object({
104
111
  warehouse: Type.String(),
105
112
  count: Type.Number(),
113
+ limit: Type.Optional(Type.Integer({ minimum: 1, maximum: 100 })),
106
114
  }),
107
115
  }),
108
116
  };
@@ -130,7 +138,7 @@ const searchInventory = defineAdminTool({
130
138
  await executeAdminTool(searchInventory, modelArguments);
131
139
  ```
132
140
 
133
- ## Upstream parity
141
+ ## Upstream parity and Markdown ownership
134
142
 
135
143
  `AI_ELEMENT_PARITY` pins the audited `vercel/ai-elements` commit and verifies
136
144
  the 49-family, 398-export package surface. Export presence, behavior, and visual
@@ -139,6 +147,25 @@ interaction or pixel parity. `JSXPreview` intentionally uses a restricted,
139
147
  TypeBox-validated parser instead of executing arbitrary JSX. `Tool.getStatusBadge`
140
148
  returns Svelte-renderable status metadata instead of a React element.
141
149
 
150
+ ## Ant Design X-inspired AI workspace boundary
151
+
152
+ SVAdmin adopts the interaction model of Ant Design X for enterprise admin
153
+ workflows, while keeping a Svelte-native API and the existing
154
+ `ChatProvider`/`AgentProvider` boundaries. The stable core loop is:
155
+
156
+ - welcome and suggestion entry points;
157
+ - conversation, message, sender, streaming, stop, retry, and persistence;
158
+ - reasoning and structured tool-call presentation;
159
+ - explicit confirmation before privileged or mutating operations;
160
+ - a command bar that falls back to ordinary navigation search when AI is
161
+ unavailable.
162
+
163
+ Long-running task progress is currently `experimental`. React component APIs,
164
+ direct model mutations, and visual 1:1 compatibility with Ant Design X are not
165
+ part of the SVAdmin contract. The machine-readable boundary is exported as
166
+ `AI_WORKSPACE_CAPABILITIES`; its acceptance conditions must remain satisfied
167
+ when these surfaces evolve.
168
+
142
169
  ## AdminApp Integration
143
170
 
144
171
  Pass providers through the owning Svelte tree and render the assistant through
@@ -11,16 +11,77 @@ the following projects on August 31, 2026:
11
11
  Those projects remain subject to their own licenses and trademark policies.
12
12
  Their names are used only to identify compatibility research sources.
13
13
 
14
- ## Runtime Dependencies
14
+ ## Runtime dependencies and vendored code
15
15
 
16
- - `streamdown-svelte` 3.0.6, Apache-2.0. It provides the streaming Markdown,
17
- sanitization, math, Mermaid, and code-rendering pipeline used by `Response`.
16
+ - The `streamdown-svelte` 3.0.6 distribution is an explicit Apache-2.0 vendor
17
+ copy under `vendor/streamdown`. It provides streaming Markdown, sanitization,
18
+ math, Mermaid and code rendering. Its LICENSE and modification notice are
19
+ distributed there. Only the two class-composition calls in theme.js were
20
+ changed to use SVAdmin's native finite-class helper. Original source digests
21
+ and the modification list are recorded in `vendor/streamdown/provenance.json`.
22
+ The copy requires deliberate upstream maintenance, not automatic wrapper updates.
18
23
  - `@rive-app/webgl2` 2.41.0, MIT. It renders the `.riv` persona assets and
19
24
  drives their `default` state-machine inputs.
20
25
  - `@xyflow/svelte` 1.6.5, MIT. It provides the workflow canvas primitives.
21
26
  - `@lucide/svelte` 1.35.0, ISC. It provides interface icons.
22
- - `clsx` 2.1.1, `tailwind-merge` 3.6.0, and `tailwind-variants` 3.3.1, MIT.
27
+ - `clsx` 2.1.1, MIT. It composes conditional class tokens without parsing a
28
+ utility language. The external `cn`, `tailwind-merge` and `tailwind-variants`
29
+ runtime packages are no longer dependencies.
23
30
 
24
- `streamdown-svelte` includes or loads its own documented runtime dependencies,
25
- including Shiki, KaTeX, Mermaid, Unified, Marked, and rehype/remark packages.
31
+ The vendored Markdown distribution uses explicitly declared runtime dependencies,
32
+ including Shiki, KaTeX, Mermaid, Unified, Marked and rehype/remark packages.
26
33
  Their license texts are distributed by their respective packages.
34
+
35
+ ## Historical native CSS attribution
36
+
37
+ The notices below are retained for native CSS foundations and migration baselines.
38
+ They do not indicate an active compiler or runtime dependency. Removing a compiler
39
+ does not remove the attribution obligations of retained derived CSS.
40
+
41
+ ## tailwindcss
42
+
43
+ MIT License
44
+
45
+ Copyright (c) Tailwind Labs, Inc.
46
+
47
+ Permission is hereby granted, free of charge, to any person obtaining a copy
48
+ of this software and associated documentation files (the "Software"), to deal
49
+ in the Software without restriction, including without limitation the rights
50
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
+ copies of the Software, and to permit persons to whom the Software is
52
+ furnished to do so, subject to the following conditions:
53
+
54
+ The above copyright notice and this permission notice shall be included in all
55
+ copies or substantial portions of the Software.
56
+
57
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63
+ SOFTWARE.
64
+
65
+ ## tw-animate-css
66
+
67
+ MIT License
68
+
69
+ Copyright (c) 2025 Wombosvideo
70
+
71
+ Permission is hereby granted, free of charge, to any person obtaining a copy
72
+ of this software and associated documentation files (the "Software"), to deal
73
+ in the Software without restriction, including without limitation the rights
74
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
75
+ copies of the Software, and to permit persons to whom the Software is
76
+ furnished to do so, subject to the following conditions:
77
+
78
+ The above copyright notice and this permission notice shall be included in all
79
+ copies or substantial portions of the Software.
80
+
81
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
82
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
83
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
84
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
85
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
86
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
87
+ SOFTWARE.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Ant Design X-inspired interaction capabilities for the SVAdmin AI workspace.
3
+ *
4
+ * This is a product-boundary contract, not a claim of React API compatibility.
5
+ */
6
+ export type AIWorkspaceCapabilityStage = 'stable' | 'experimental' | 'planned';
7
+ export interface AIWorkspaceCapability {
8
+ id: 'welcome' | 'suggestion' | 'conversation' | 'sender' | 'streaming' | 'reasoning' | 'tool-calling' | 'approval' | 'task-progress' | 'command-bar' | 'persistence';
9
+ stage: AIWorkspaceCapabilityStage;
10
+ localSurfaces: readonly string[];
11
+ acceptance: readonly string[];
12
+ }
13
+ export declare const AI_WORKSPACE_CAPABILITIES: readonly AIWorkspaceCapability[];
14
+ export declare const AI_WORKSPACE_STABLE_CAPABILITIES: AIWorkspaceCapability[];
@@ -0,0 +1,14 @@
1
+ export const AI_WORKSPACE_CAPABILITIES = [
2
+ { id: 'welcome', stage: 'stable', localSurfaces: ['ConversationEmptyState', 'ChatDialog'], acceptance: ['空态提供当前租户和资源范围内的下一步入口'] },
3
+ { id: 'suggestion', stage: 'stable', localSurfaces: ['Suggestion', 'Suggestions', 'SmartSuggest'], acceptance: ['建议只能提交到当前对话或字段,不得直接执行写操作'] },
4
+ { id: 'conversation', stage: 'stable', localSurfaces: ['Conversation', 'Message', 'Response'], acceptance: ['消息按当前用户、租户和资源作用域隔离'] },
5
+ { id: 'sender', stage: 'stable', localSurfaces: ['PromptInput', 'PromptInputTextarea', 'PromptInputSubmit'], acceptance: ['发送、附件、停止和失败重试可被键盘和屏幕阅读器操作'] },
6
+ { id: 'streaming', stage: 'stable', localSurfaces: ['ChatProvider', 'ChatDialog', 'Response'], acceptance: ['流式输出可中断,过期响应不得写回新会话'] },
7
+ { id: 'reasoning', stage: 'stable', localSurfaces: ['Reasoning', 'ChainOfThought'], acceptance: ['推理过程可折叠,最终回答与中间过程视觉区分'] },
8
+ { id: 'tool-calling', stage: 'stable', localSurfaces: ['AgentProvider', 'Tool', 'AdminTool'], acceptance: ['工具参数经 TypeBox 校验且服务端重新授权'] },
9
+ { id: 'approval', stage: 'stable', localSurfaces: ['Confirmation', 'needsApproval', 'executeAdminTool'], acceptance: ['破坏性、权限、计费和批量写操作确认后才执行'] },
10
+ { id: 'task-progress', stage: 'experimental', localSurfaces: ['Task', 'Plan', 'Queue', 'Checkpoint'], acceptance: ['长任务展示进度、失败原因和可恢复入口'] },
11
+ { id: 'command-bar', stage: 'stable', localSurfaces: ['AICommandBar'], acceptance: ['导航搜索与自然语言查询可区分,失败时回退到普通命令搜索'] },
12
+ { id: 'persistence', stage: 'stable', localSurfaces: ['ChatDialog', 'persistKey', 'onPersist', 'onRestore'], acceptance: ['历史恢复失败时禁止空历史覆盖远端记录'] },
13
+ ];
14
+ export const AI_WORKSPACE_STABLE_CAPABILITIES = AI_WORKSPACE_CAPABILITIES.filter(({ stage }) => stage === 'stable');
package/dist/ai.css CHANGED
@@ -1,8 +1,5 @@
1
- @source "./components";
2
- @source "../node_modules/streamdown-svelte/dist/**/*.{js,svelte,ts}";
3
- @source "../../../node_modules/streamdown-svelte/dist/**/*.{js,svelte,ts}";
4
- @source "../../../streamdown-svelte/dist/**/*.{js,svelte,ts}";
5
-
1
+ @layer theme, base, components, utilities;
2
+ @import "./utilities.css" layer(utilities.svadmin-ai);
6
3
  .svadmin-ai,
7
4
  .svadmin-ai * {
8
5
  box-sizing: border-box;
@@ -0,0 +1 @@
1
+ @import "./ai.css";
@@ -0,0 +1 @@
1
+ export declare const classProperties: Readonly<Record<string, readonly number[]>>;
@@ -0,0 +1,2 @@
1
+ // Generated from owned finite CSS by scripts/build-native-classnames.mjs.
2
+ export const classProperties = { "-mt-10": [83], "-mx-1": [79, 80], "-translate-x-1/2": [16, 126], "-translate-y-1/2": [17, 126], "[overflow-wrap:anywhere]": [94], "absolute": [107], "accent-primary": [24], "animate-pulse": [26], "animate-spin": [26], "appearance-none": [18, 28], "backdrop-blur": [3, 19, 29], "backdrop-blur-sm": [3, 19, 29], "bg-[#ff3e00]": [30], "bg-[#ff3e00]/8": [30], "bg-[var(--sdm-bg,inherit)]": [30], "bg-background": [30], "bg-background/70": [30, 183], "bg-background/80": [30, 183], "bg-background/90": [30, 183], "bg-black/10": [30, 183], "bg-black/45": [30, 183], "bg-border": [30], "bg-border/70": [30, 183], "bg-border/80": [30, 183], "bg-card": [30], "bg-destructive/10": [30, 183], "bg-foreground": [30], "bg-gray-200": [30], "bg-gray-50": [30], "bg-gray-900": [30], "bg-info/10": [30, 183], "bg-muted": [30], "bg-muted/10": [30, 183], "bg-muted/20": [30, 183], "bg-muted/30": [30, 183], "bg-muted/50": [30, 183], "bg-muted/80": [30, 183], "bg-popover": [30], "bg-primary": [30], "bg-primary/5": [30, 183], "bg-red-100": [30], "bg-red-50": [30], "bg-secondary": [30], "bg-sidebar": [30], "bg-sidebar/20": [30, 183], "bg-sidebar/80": [30, 183], "bg-sidebar/90": [30, 183], "bg-success/10": [30, 183], "bg-transparent": [30], "bg-warning/10": [30, 183], "bg-white": [30], "block": [55], "blur": [4, 57], "border": [43, 48], "border-0": [43, 48], "border-[#ff3e00]/30": [38], "border-b": [35, 36], "border-b-2": [35, 36], "border-blue-600": [38], "border-border": [38], "border-border/70": [38, 184], "border-collapse": [37], "border-destructive": [38], "border-destructive/25": [38, 184], "border-gray-200": [38], "border-green-600": [38], "border-input": [38], "border-l": [39, 40], "border-l-2": [39, 40], "border-l-4": [39, 40], "border-muted-foreground/30": [38, 184], "border-none": [5, 43], "border-primary": [38], "border-primary/10": [38, 184], "border-purple-600": [38], "border-r": [41, 42], "border-r-0": [41, 42], "border-red-600": [38], "border-sidebar": [38], "border-t": [46, 47], "border-transparent": [38], "border-warning/40": [38, 184], "border-y": [31, 32], "border-y-0": [31, 32], "border-yellow-600": [38], "bottom-0": [49], "bottom-2": [49], "bottom-3": [49], "bottom-4": [49], "bottom-full": [49], "break-all": [131], "break-words": [94], "capitalize": [118], "container": [130, 145, 164, 170, 174, 177], "contents": [55], "cursor-pointer": [54], "cursor-zoom-in": [54], "duration-200": [0, 6, 123], "ease-in": [1, 7, 125], "ease-in-out": [1, 7, 125], "ease-out": [1, 7, 125], "fade-in": [8], "field-sizing-content": [56], "filter": [57], "fixed": [107], "flex": [55], "flex-1": [58], "flex-col": [59], "flex-wrap": [61], "font-medium": [9, 66], "font-mono": [62], "font-normal": [9, 66], "font-semibold": [9, 66], "gap-0": [53, 111], "gap-0.5": [53, 111], "gap-1": [53, 111], "gap-1.5": [53, 111], "gap-10": [53, 111], "gap-12": [53, 111], "gap-2": [53, 111], "gap-3": [53, 111], "gap-4": [53, 111], "gap-8": [53, 111], "gap-x-3": [53], "gap-y-1": [111], "grid": [55], "grid-cols-[auto_1fr]": [67], "h-3": [68], "h-4": [68], "h-5": [68], "h-6": [68], "h-7": [68], "h-8": [68], "h-80": [68], "h-[4.35rem]": [68], "h-[600px]": [68], "h-[min(42rem,calc(100dvh-1.5rem))]": [68], "h-auto": [68], "h-fit": [68], "h-full": [68], "h-px": [68], "hidden": [55], "inline": [55], "inline-block": [55], "inline-flex": [55], "inset-0": [49, 71, 109, 121], "inset-y-0": [69], "italic": [64], "items-center": [25], "items-start": [25], "justify-between": [70], "justify-center": [70], "justify-end": [70], "justify-start": [70], "leading-relaxed": [10, 73], "leading-tight": [10, 73], "left-0": [71], "left-1/2": [71], "left-2": [71], "left-4": [71], "lg:text-[40px]": [169], "line-clamp-1": [20, 22, 55, 93], "line-clamp-2": [20, 22, 55, 93], "list-disc": [75], "list-item": [55], "list-none": [75], "list-outside": [74], "lowercase": [118], "m-0": [76, 77, 78, 79, 80, 81, 82, 83], "max-h-32": [84], "max-h-48": [84], "max-h-56": [84], "max-h-72": [84], "max-h-80": [84], "max-h-[22rem]": [84], "max-h-[min(32rem,calc(100dvh-2rem))]": [84], "max-w-2xl": [85], "max-w-3xl": [85], "max-w-48": [85], "max-w-4xl": [85], "max-w-5xl": [85], "max-w-6xl": [85], "max-w-72": [85], "max-w-[400px]": [85], "max-w-[95%]": [85], "max-w-[calc(100vw-1.5rem)]": [85], "max-w-full": [85], "max-w-md": [85], "max-w-prose": [85], "max-w-sm": [85], "max-w-xl": [85], "mb-1": [78], "mb-2": [78], "mb-3": [78], "mb-4": [78], "md:flex-row": [158], "md:grid-cols-2": [160], "md:grid-cols-3": [160], "md:items-center": [157], "md:justify-between": [162], "md:min-w-[12rem]": [165], "md:px-6": [166, 167], "md:size-8": [161, 168], "md:text-3xl": [159, 163], "md:text-[1.25rem]": [159], "md:text-[1rem]": [159], "min-h-0": [86], "min-h-10": [86], "min-h-11": [86], "min-h-12": [86], "min-h-14": [86], "min-h-16": [86], "min-h-20": [86], "min-h-24": [86], "min-h-48": [86], "min-h-5": [86], "min-h-6": [86], "min-h-7": [86], "min-h-8": [86], "min-h-9": [86], "min-h-[500px]": [86], "min-h-dvh": [86], "min-w-0": [87], "min-w-10": [87], "min-w-20": [87], "min-w-24": [87], "min-w-32": [87], "min-w-40": [87], "min-w-48": [87], "min-w-5": [87], "min-w-[200px]": [87], "min-w-[250px]": [87], "min-w-full": [87], "min-w-max": [87], "ml-1": [81], "ml-2": [81], "ml-4": [81], "ml-auto": [81], "mr-2": [82], "mr-4": [82], "mt-0": [83], "mt-0.5": [83], "mt-1": [83], "mt-2": [83], "mt-3": [83], "mt-6": [83], "mx-1.5": [79, 80], "mx-auto": [79, 80], "my-0": [76, 77], "my-1": [76, 77], "my-2": [76, 77], "my-4": [76, 77], "my-6": [76, 77], "object-contain": [88], "object-cover": [88], "opacity-0": [89], "opacity-60": [89], "order-first": [90], "outline": [91, 92], "outline-none": [12, 91], "overflow-auto": [93], "overflow-hidden": [93], "overflow-visible": [93], "overflow-x-auto": [95], "overflow-y-auto": [96], "p-0": [97, 98, 99, 100, 101, 102, 103, 104], "p-0.5": [97, 98, 99, 100, 101, 102, 103, 104], "p-1": [97, 98, 99, 100, 101, 102, 103, 104], "p-2": [97, 98, 99, 100, 101, 102, 103, 104], "p-3": [97, 98, 99, 100, 101, 102, 103, 104], "p-4": [97, 98, 99, 100, 101, 102, 103, 104], "p-5": [97, 98, 99, 100, 101, 102, 103, 104], "p-6": [97, 98, 99, 100, 101, 102, 103, 104], "p-8": [97, 98, 99, 100, 101, 102, 103, 104], "pb-16": [99], "pb-2": [99], "pb-3": [99], "pb-32": [99], "pb-4": [99], "pl-2": [102], "pl-3": [102], "pl-4": [102], "place-items-center": [105], "pointer-events-auto": [106], "pointer-events-none": [106], "pr-12": [103], "pt-0": [104], "pt-16": [104], "pt-2": [104], "pt-3": [104], "px-1": [100, 101], "px-1.5": [100, 101], "px-2": [100, 101], "px-3": [100, 101], "px-4": [100, 101], "px-8": [100, 101], "py-0.5": [97, 98], "py-1": [97, 98], "py-1.5": [97, 98], "py-10": [97, 98], "py-2": [97, 98], "py-3": [97, 98], "py-4": [97, 98], "py-6": [97, 98], "py-8": [97, 98], "relative": [107], "resize": [108], "resize-y": [108], "right-0": [109], "right-0.5": [109], "right-1": [109], "right-2": [109], "right-3": [109], "right-4": [109], "rotate-180": [110], "rounded": [33, 34, 44, 45], "rounded-2xl": [33, 34, 44, 45], "rounded-full": [33, 34, 44, 45], "rounded-lg": [33, 34, 44, 45], "rounded-md": [33, 34, 44, 45], "rounded-none": [33, 34, 44, 45], "rounded-sm": [33, 34, 44, 45], "rounded-t-md": [44, 45], "rounded-xl": [33, 34, 44, 45], "running": [27], "scale-y-90": [13, 112], "scroll-mt-24": [113], "select-none": [23, 127], "shadow": [14, 50], "shadow-[0_20px_70px_-40px_rgba(15,23,42,0.45)]": [14, 50], "shadow-lg": [14, 50], "shadow-md": [14, 50], "shadow-sm": [14, 50], "shadow-xl": [14, 50], "shrink-0": [60], "size-12": [68, 130], "size-16": [68, 130], "size-3": [68, 130], "size-3.5": [68, 130], "size-4": [68, 130], "size-5": [68, 130], "size-6": [68, 130], "size-7": [68, 130], "size-8": [68, 130], "size-9": [68, 130], "size-full": [68, 130], "sm:border-x": [133, 134], "sm:bottom-6": [135], "sm:col-span-2": [141], "sm:flex-[0_1_24rem]": [138], "sm:flex-row": [139], "sm:gap-0": [136, 156], "sm:grid-cols-2": [142], "sm:grid-cols-3": [142], "sm:inline-flex": [137], "sm:justify-center": [143], "sm:min-w-[12rem]": [146], "sm:p-0": [147, 148, 149, 150, 151, 152, 153, 154], "sm:p-12": [147, 148, 149, 150, 151, 152, 153, 154], "sm:pt-24": [154], "sm:px-12": [150, 151], "sm:py-12": [147, 148], "sm:right-6": [155], "sm:text-2xl": [140, 144], "sm:text-5xl": [140, 144], "sm:text-xl": [140, 144], "sr-only": [21, 48, 51, 68, 76, 77, 78, 79, 80, 81, 82, 83, 93, 97, 98, 99, 100, 101, 102, 103, 104, 107, 129, 130], "static": [107], "sticky": [107], "stroke-blue-600": [114], "stroke-destructive": [114], "stroke-green-600": [114], "stroke-purple-600": [114], "stroke-red-600": [114], "stroke-yellow-600": [114], "supports-[backdrop-filter]:backdrop-blur": [178, 179, 180], "supports-[backdrop-filter]:backdrop-blur-sm": [178, 179, 180], "supports-[backdrop-filter]:bg-background/70": [181, 182], "supports-[backdrop-filter]:bg-background/80": [181, 182], "supports-[backdrop-filter]:bg-sidebar/70": [181, 182], "table": [55], "tabular-nums": [11, 65], "text-2xl": [63, 73], "text-3xl": [63, 73], "text-4xl": [63, 73], "text-[#ff3e00]": [52], "text-[0.95rem]": [63], "text-[0.9em]": [63], "text-[1.05rem]": [63], "text-balance": [120], "text-base": [63, 73], "text-border": [52], "text-card-foreground": [52], "text-center": [115], "text-destructive": [52], "text-foreground": [52], "text-gray-500": [52], "text-gray-600": [52], "text-gray-700": [52], "text-gray-900": [52], "text-info": [52], "text-left": [115], "text-lg": [63, 73], "text-muted-foreground": [52], "text-popover-foreground": [52], "text-primary": [52], "text-primary-foreground": [52], "text-red-600": [52], "text-red-700": [52], "text-red-800": [52], "text-right": [115], "text-sm": [63, 73], "text-success": [52], "text-transparent": [52], "text-warning": [52], "text-white": [52], "text-xl": [63, 73], "text-xs": [63, 73], "top-0": [121], "top-0.5": [121], "top-1": [121], "top-1/2": [121], "top-2": [121], "top-4": [121], "top-7": [121], "top-full": [121], "tracking-[-0.02em]": [15, 72], "tracking-[-0.035em]": [15, 72], "tracking-tight": [15, 72], "transform": [122], "transition": [0, 1, 2, 123, 124, 125], "transition-all": [0, 1, 2, 123, 124, 125], "transition-colors": [0, 1, 2, 123, 124, 125], "transition-opacity": [0, 1, 2, 123, 124, 125], "transition-transform": [0, 1, 2, 123, 124, 125], "translate-x-4": [16, 126], "truncate": [93, 117, 129], "underline": [116], "underline-offset-4": [119], "uppercase": [118], "visible": [128], "w-20": [130], "w-3": [130], "w-4": [130], "w-6": [130], "w-60": [130], "w-64": [130], "w-8": [130], "w-80": [130], "w-9": [130], "w-[min(18rem,calc(100vw-1.5rem))]": [130], "w-[min(28rem,calc(100vw-2rem))]": [130], "w-[min(32rem,100%)]": [130], "w-[min(42rem,calc(100vw-1.5rem))]": [130], "w-fit": [130], "w-full": [130], "w-px": [130], "whitespace-normal": [129], "whitespace-nowrap": [129], "whitespace-pre-wrap": [129], "wrap-anywhere": [94], "xl:grid-cols-4": [172], "xl:px-8": [175, 176], "xl:text-6xl": [171, 173], "z-10": [132], "z-30": [132], "z-40": [132], "z-50": [132], "z-[1000]": [132], "z-[9998]": [132] };
@@ -0,0 +1,8 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export type { ClassValue } from 'clsx';
3
+ /**
4
+ * Compose native classes. Only owned finite classes have conflict metadata.
5
+ * Unknown host classes are retained; arbitrary utility syntax is not interpreted.
6
+ */
7
+ export declare function composeClasses(classes: string, properties: Readonly<Record<string, readonly number[]>>): string;
8
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,26 @@
1
+ import { clsx } from 'clsx';
2
+ import { classProperties } from './class-properties.generated.js';
3
+ /**
4
+ * Compose native classes. Only owned finite classes have conflict metadata.
5
+ * Unknown host classes are retained; arbitrary utility syntax is not interpreted.
6
+ */
7
+ export function composeClasses(classes, properties) {
8
+ const covered = new Set();
9
+ const seen = new Set();
10
+ const kept = [];
11
+ for (const name of classes.split(/\s+/u).filter(Boolean).reverse()) {
12
+ if (seen.has(name))
13
+ continue;
14
+ seen.add(name);
15
+ const declarations = Object.hasOwn(properties, name) ? properties[name] : undefined;
16
+ if (declarations?.length && declarations.every((atom) => covered.has(atom)))
17
+ continue;
18
+ kept.push(name);
19
+ for (const atom of declarations ?? [])
20
+ covered.add(atom);
21
+ }
22
+ return kept.reverse().join(' ');
23
+ }
24
+ export function cn(...inputs) {
25
+ return composeClasses(clsx(inputs), classProperties);
26
+ }
@@ -1,5 +1,5 @@
1
1
  <script module lang="ts">
2
- import type { StreamdownProps } from 'streamdown-svelte';
2
+ import type { StreamdownProps } from '../../vendor/streamdown/index.js';
3
3
 
4
4
  export type ResponseProps = Omit<
5
5
  StreamdownProps<Record<string, unknown>>,
@@ -14,7 +14,7 @@
14
14
 
15
15
  <script lang="ts">
16
16
  import { definedReactiveOptions } from '@svadmin/core/options';
17
- import { Streamdown } from 'streamdown-svelte';
17
+ import { Streamdown } from '../../vendor/streamdown/index.js';
18
18
  import { cn } from '../utils.js';
19
19
 
20
20
  let {
@@ -1,4 +1,4 @@
1
- import type { StreamdownProps } from 'streamdown-svelte';
1
+ import type { StreamdownProps } from '../../vendor/streamdown/index.js';
2
2
  export type ResponseProps = Omit<StreamdownProps<Record<string, unknown>>, 'content' | 'class' | 'className' | 'mode' | 'static' | 'isAnimating' | 'caret'> & {
3
3
  content?: string;
4
4
  text?: string;
@@ -1,21 +1,12 @@
1
- import { type VariantProps } from 'tailwind-variants';
2
- export declare const codeVariants: import("tailwind-variants").TVReturnType<{
3
- variant: {
4
- default: "";
5
- secondary: "border-transparent bg-secondary";
6
- };
7
- }, undefined, "relative h-full overflow-auto rounded-md border border-border bg-background text-foreground", {
8
- variant: {
9
- default: "";
10
- secondary: "border-transparent bg-secondary";
11
- };
12
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
13
- variant: {
14
- default: "";
15
- secondary: "border-transparent bg-secondary";
16
- };
17
- }, undefined>>;
18
- export type CodeVariant = VariantProps<typeof codeVariants>['variant'];
1
+ import { cn } from '../../utils.js';
2
+ export type CodeVariant = 'default' | 'secondary' | null | undefined;
3
+ type CodeClassValue = Parameters<typeof cn>[number];
4
+ /** Select already-published utility classes without a runtime variant engine. */
5
+ export declare function codeVariants({ variant, class: className, className: extraClassName, }?: {
6
+ variant?: CodeVariant;
7
+ class?: CodeClassValue;
8
+ className?: CodeClassValue;
9
+ }): string;
19
10
  export { default, default as Root, default as Code } from './Code.svelte';
20
11
  export { default as Overflow, default as CodeOverflow } from '../code-block/CodeBlockOverflow.svelte';
21
12
  export { default as CopyButton, default as CodeCopyButton } from '../code-block/CodeBlockCopyButton.svelte';
@@ -1,14 +1,11 @@
1
- import { tv } from 'tailwind-variants';
2
- export const codeVariants = tv({
3
- base: 'relative h-full overflow-auto rounded-md border border-border bg-background text-foreground',
4
- variants: {
5
- variant: {
6
- default: '',
7
- secondary: 'border-transparent bg-secondary',
8
- },
9
- },
10
- defaultVariants: { variant: 'default' },
11
- });
1
+ import { cn } from '../../utils.js';
2
+ /** Select already-published utility classes without a runtime variant engine. */
3
+ export function codeVariants({ variant = 'default', class: className, className: extraClassName, } = {}) {
4
+ // null disables the variant, not the original recipe's base border/background.
5
+ return cn('relative h-full overflow-auto rounded-md border text-foreground', variant === 'secondary'
6
+ ? 'border-transparent bg-secondary'
7
+ : 'border-border bg-background', className, extraClassName);
8
+ }
12
9
  export { default, default as Root, default as Code } from './Code.svelte';
13
10
  export { default as Overflow, default as CodeOverflow } from '../code-block/CodeBlockOverflow.svelte';
14
11
  export { default as CopyButton, default as CodeCopyButton } from '../code-block/CodeBlockCopyButton.svelte';
@@ -1,4 +1,4 @@
1
- import { createCodePlugin } from 'streamdown-svelte/plugins';
1
+ import { createCodePlugin } from '../../../vendor/streamdown/plugins.js';
2
2
  import { definedOptions } from '@svadmin/core/options';
3
3
  const LIGHT_THEME = 'github-light';
4
4
  const DARK_THEME = 'github-dark';
package/dist/index.d.ts CHANGED
@@ -147,6 +147,8 @@ export * as SourcesParts from "./components/sources/index.js";
147
147
  export * as SpeechInputParts from "./components/speech-input/index.js";
148
148
  export * as StackTraceParts from "./components/stack-trace/index.js";
149
149
  export * as SuggestionParts from "./components/suggestion/index.js";
150
+ export { AI_WORKSPACE_CAPABILITIES, AI_WORKSPACE_STABLE_CAPABILITIES, } from "./ai-workspace-contract.js";
151
+ export type { AIWorkspaceCapability, AIWorkspaceCapabilityStage, } from "./ai-workspace-contract.js";
150
152
  export * as TaskParts from "./components/task/index.js";
151
153
  export * as TerminalParts from "./components/terminal/index.js";
152
154
  export * as TestResultsParts from "./components/test-results/index.js";
package/dist/index.js CHANGED
@@ -111,6 +111,7 @@ export * as SourcesParts from "./components/sources/index.js";
111
111
  export * as SpeechInputParts from "./components/speech-input/index.js";
112
112
  export * as StackTraceParts from "./components/stack-trace/index.js";
113
113
  export * as SuggestionParts from "./components/suggestion/index.js";
114
+ export { AI_WORKSPACE_CAPABILITIES, AI_WORKSPACE_STABLE_CAPABILITIES, } from "./ai-workspace-contract.js";
114
115
  export * as TaskParts from "./components/task/index.js";
115
116
  export * as TerminalParts from "./components/terminal/index.js";
116
117
  export * as TestResultsParts from "./components/test-results/index.js";