@agent-native/core 0.109.3 → 0.109.4

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 (249) hide show
  1. package/corpus/README.md +2 -2
  2. package/corpus/core/CHANGELOG.md +8 -0
  3. package/corpus/core/docs/content/agent-native-toolkit.mdx +46 -13
  4. package/corpus/core/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
  5. package/corpus/core/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
  6. package/corpus/core/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
  7. package/corpus/core/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
  8. package/corpus/core/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
  9. package/corpus/core/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
  10. package/corpus/core/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
  11. package/corpus/core/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
  12. package/corpus/core/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
  13. package/corpus/core/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
  14. package/corpus/core/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
  15. package/corpus/core/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
  16. package/corpus/core/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
  17. package/corpus/core/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
  18. package/corpus/core/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
  19. package/corpus/core/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
  20. package/corpus/core/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
  21. package/corpus/core/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
  22. package/corpus/core/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
  23. package/corpus/core/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
  24. package/corpus/core/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
  25. package/corpus/core/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
  26. package/corpus/core/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
  27. package/corpus/core/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
  28. package/corpus/core/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
  29. package/corpus/core/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
  30. package/corpus/core/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
  31. package/corpus/core/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
  32. package/corpus/core/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
  33. package/corpus/core/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
  34. package/corpus/core/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
  35. package/corpus/core/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
  36. package/corpus/core/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
  37. package/corpus/core/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
  38. package/corpus/core/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
  39. package/corpus/core/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
  40. package/corpus/core/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
  41. package/corpus/core/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
  42. package/corpus/core/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
  43. package/corpus/core/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
  44. package/corpus/core/docs/content/toolkit-capability-packages.mdx +52 -0
  45. package/corpus/core/docs/content/toolkit-context-knowledge.mdx +46 -0
  46. package/corpus/core/docs/content/toolkit-editors-canvases.mdx +55 -0
  47. package/corpus/core/package.json +35 -34
  48. package/corpus/core/src/cli/create.ts +39 -3
  49. package/corpus/core/src/cli/package-lifecycle.ts +2 -0
  50. package/corpus/core/src/cli/skills-content/visual-plan-skill.ts +2 -0
  51. package/corpus/core/src/client/context-xray/ContextMeter.tsx +31 -111
  52. package/corpus/core/src/client/context-xray/ContextSegmentRow.tsx +8 -111
  53. package/corpus/core/src/client/context-xray/ContextTreemap.tsx +6 -111
  54. package/corpus/core/src/client/context-xray/ContextXRayPanel.tsx +31 -391
  55. package/corpus/core/src/client/context-xray/SegmentProvenancePopover.tsx +4 -52
  56. package/corpus/core/src/client/context-xray/format.ts +0 -33
  57. package/corpus/core/src/client/rich-markdown-editor/index.ts +42 -57
  58. package/corpus/core/src/client/rich-markdown-editor/uploadEditorImage.ts +2 -1
  59. package/corpus/core/src/client/visual-style-controls.tsx +1 -1088
  60. package/corpus/core/src/collab/agent-identity.ts +5 -22
  61. package/corpus/core/src/collab/client.ts +1 -53
  62. package/corpus/core/src/styles/rich-markdown-editor.css +1 -510
  63. package/corpus/core/src/testing.ts +1 -1
  64. package/corpus/core/src/vite/client.ts +3 -0
  65. package/corpus/templates/content/app/components/editor/VisualEditor.tsx +5 -3
  66. package/corpus/templates/content/app/components/editor/extensions/DragHandle.tsx +4 -4
  67. package/corpus/templates/content/package.json +25 -25
  68. package/corpus/templates/design/app/components/design/TweaksPanel.tsx +2 -1
  69. package/corpus/templates/design/package.json +1 -1
  70. package/corpus/templates/mail/package.json +9 -9
  71. package/corpus/templates/plan/.agents/skills/visual-plan/SKILL.md +2 -0
  72. package/corpus/templates/plan/app/components/editor/PlanDocumentEditor.tsx +8 -8
  73. package/corpus/templates/plan/app/components/editor/planSlashCommands.ts +6 -6
  74. package/corpus/templates/plan/app/components/plan/PlanImageNode.tsx +4 -7
  75. package/corpus/templates/plan/app/components/plan/PlanMarkdownEditor.tsx +6 -4
  76. package/corpus/templates/plan/app/components/plan/PlanVisualSurface.tsx +1 -1
  77. package/corpus/templates/plan/changelog/2026-07-18-visual-plans-now-open-on-wireframes-by-default-when-a-protot.md +6 -0
  78. package/corpus/templates/plan/package.json +3 -3
  79. package/corpus/templates/slides/app/components/editor/SlideStyleInspector.tsx +2 -2
  80. package/corpus/templates/slides/app/components/editor/TweaksPanel.tsx +2 -2
  81. package/corpus/templates/slides/package.json +13 -13
  82. package/dist/catalog.json +39 -1
  83. package/dist/cli/create.d.ts.map +1 -1
  84. package/dist/cli/create.js +32 -3
  85. package/dist/cli/create.js.map +1 -1
  86. package/dist/cli/package-lifecycle.d.ts.map +1 -1
  87. package/dist/cli/package-lifecycle.js +2 -0
  88. package/dist/cli/package-lifecycle.js.map +1 -1
  89. package/dist/cli/skills-content/visual-plan-skill.d.ts +1 -1
  90. package/dist/cli/skills-content/visual-plan-skill.d.ts.map +1 -1
  91. package/dist/cli/skills-content/visual-plan-skill.js +2 -0
  92. package/dist/cli/skills-content/visual-plan-skill.js.map +1 -1
  93. package/dist/client/context-xray/ContextMeter.d.ts.map +1 -1
  94. package/dist/client/context-xray/ContextMeter.js +8 -23
  95. package/dist/client/context-xray/ContextMeter.js.map +1 -1
  96. package/dist/client/context-xray/ContextSegmentRow.d.ts.map +1 -1
  97. package/dist/client/context-xray/ContextSegmentRow.js +3 -19
  98. package/dist/client/context-xray/ContextSegmentRow.js.map +1 -1
  99. package/dist/client/context-xray/ContextTreemap.d.ts.map +1 -1
  100. package/dist/client/context-xray/ContextTreemap.js +3 -54
  101. package/dist/client/context-xray/ContextTreemap.js.map +1 -1
  102. package/dist/client/context-xray/ContextXRayPanel.d.ts.map +1 -1
  103. package/dist/client/context-xray/ContextXRayPanel.js +21 -163
  104. package/dist/client/context-xray/ContextXRayPanel.js.map +1 -1
  105. package/dist/client/context-xray/SegmentProvenancePopover.d.ts.map +1 -1
  106. package/dist/client/context-xray/SegmentProvenancePopover.js +3 -4
  107. package/dist/client/context-xray/SegmentProvenancePopover.js.map +1 -1
  108. package/dist/client/context-xray/format.d.ts +0 -4
  109. package/dist/client/context-xray/format.d.ts.map +1 -1
  110. package/dist/client/context-xray/format.js +0 -49
  111. package/dist/client/context-xray/format.js.map +1 -1
  112. package/dist/client/rich-markdown-editor/index.d.ts +1 -12
  113. package/dist/client/rich-markdown-editor/index.d.ts.map +1 -1
  114. package/dist/client/rich-markdown-editor/index.js +1 -12
  115. package/dist/client/rich-markdown-editor/index.js.map +1 -1
  116. package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts +1 -1
  117. package/dist/client/rich-markdown-editor/uploadEditorImage.d.ts.map +1 -1
  118. package/dist/client/rich-markdown-editor/uploadEditorImage.js.map +1 -1
  119. package/dist/client/visual-style-controls.d.ts +1 -89
  120. package/dist/client/visual-style-controls.d.ts.map +1 -1
  121. package/dist/client/visual-style-controls.js +1 -498
  122. package/dist/client/visual-style-controls.js.map +1 -1
  123. package/dist/collab/agent-identity.d.ts +1 -14
  124. package/dist/collab/agent-identity.d.ts.map +1 -1
  125. package/dist/collab/agent-identity.js +1 -13
  126. package/dist/collab/agent-identity.js.map +1 -1
  127. package/dist/collab/awareness.d.ts +2 -2
  128. package/dist/collab/awareness.d.ts.map +1 -1
  129. package/dist/collab/client.d.ts +1 -19
  130. package/dist/collab/client.d.ts.map +1 -1
  131. package/dist/collab/client.js +1 -53
  132. package/dist/collab/client.js.map +1 -1
  133. package/dist/collab/routes.d.ts +1 -1
  134. package/dist/file-upload/actions/upload-image.d.ts +1 -1
  135. package/dist/notifications/routes.d.ts +3 -3
  136. package/dist/server/agent-engine-api-key-route.d.ts +1 -1
  137. package/dist/styles/rich-markdown-editor.css +1 -510
  138. package/dist/testing.d.ts +1 -1
  139. package/dist/testing.d.ts.map +1 -1
  140. package/dist/testing.js +1 -1
  141. package/dist/testing.js.map +1 -1
  142. package/dist/vite/client.d.ts.map +1 -1
  143. package/dist/vite/client.js +3 -0
  144. package/dist/vite/client.js.map +1 -1
  145. package/docs/content/agent-native-toolkit.mdx +46 -13
  146. package/docs/content/locales/ar-SA/agent-native-toolkit.mdx +79 -55
  147. package/docs/content/locales/ar-SA/toolkit-capability-packages.mdx +21 -0
  148. package/docs/content/locales/ar-SA/toolkit-context-knowledge.mdx +12 -0
  149. package/docs/content/locales/ar-SA/toolkit-editors-canvases.mdx +17 -0
  150. package/docs/content/locales/de-DE/agent-native-toolkit.mdx +82 -54
  151. package/docs/content/locales/de-DE/toolkit-capability-packages.mdx +21 -0
  152. package/docs/content/locales/de-DE/toolkit-context-knowledge.mdx +12 -0
  153. package/docs/content/locales/de-DE/toolkit-editors-canvases.mdx +17 -0
  154. package/docs/content/locales/es-ES/agent-native-toolkit.mdx +81 -52
  155. package/docs/content/locales/es-ES/toolkit-capability-packages.mdx +21 -0
  156. package/docs/content/locales/es-ES/toolkit-context-knowledge.mdx +12 -0
  157. package/docs/content/locales/es-ES/toolkit-editors-canvases.mdx +21 -0
  158. package/docs/content/locales/fr-FR/agent-native-toolkit.mdx +84 -54
  159. package/docs/content/locales/fr-FR/toolkit-capability-packages.mdx +21 -0
  160. package/docs/content/locales/fr-FR/toolkit-context-knowledge.mdx +12 -0
  161. package/docs/content/locales/fr-FR/toolkit-editors-canvases.mdx +21 -0
  162. package/docs/content/locales/hi-IN/agent-native-toolkit.mdx +69 -62
  163. package/docs/content/locales/hi-IN/toolkit-capability-packages.mdx +21 -0
  164. package/docs/content/locales/hi-IN/toolkit-context-knowledge.mdx +12 -0
  165. package/docs/content/locales/hi-IN/toolkit-editors-canvases.mdx +17 -0
  166. package/docs/content/locales/ja-JP/agent-native-toolkit.mdx +69 -62
  167. package/docs/content/locales/ja-JP/toolkit-capability-packages.mdx +21 -0
  168. package/docs/content/locales/ja-JP/toolkit-context-knowledge.mdx +12 -0
  169. package/docs/content/locales/ja-JP/toolkit-editors-canvases.mdx +17 -0
  170. package/docs/content/locales/ko-KR/agent-native-toolkit.mdx +69 -62
  171. package/docs/content/locales/ko-KR/toolkit-capability-packages.mdx +21 -0
  172. package/docs/content/locales/ko-KR/toolkit-context-knowledge.mdx +12 -0
  173. package/docs/content/locales/ko-KR/toolkit-editors-canvases.mdx +17 -0
  174. package/docs/content/locales/pt-BR/agent-native-toolkit.mdx +82 -54
  175. package/docs/content/locales/pt-BR/toolkit-capability-packages.mdx +21 -0
  176. package/docs/content/locales/pt-BR/toolkit-context-knowledge.mdx +12 -0
  177. package/docs/content/locales/pt-BR/toolkit-editors-canvases.mdx +17 -0
  178. package/docs/content/locales/zh-CN/agent-native-toolkit.mdx +69 -62
  179. package/docs/content/locales/zh-CN/toolkit-capability-packages.mdx +21 -0
  180. package/docs/content/locales/zh-CN/toolkit-context-knowledge.mdx +12 -0
  181. package/docs/content/locales/zh-CN/toolkit-editors-canvases.mdx +17 -0
  182. package/docs/content/locales/zh-TW/agent-native-toolkit.mdx +69 -62
  183. package/docs/content/locales/zh-TW/toolkit-capability-packages.mdx +21 -0
  184. package/docs/content/locales/zh-TW/toolkit-context-knowledge.mdx +12 -0
  185. package/docs/content/locales/zh-TW/toolkit-editors-canvases.mdx +17 -0
  186. package/docs/content/toolkit-capability-packages.mdx +52 -0
  187. package/docs/content/toolkit-context-knowledge.mdx +46 -0
  188. package/docs/content/toolkit-editors-canvases.mdx +55 -0
  189. package/package.json +27 -26
  190. package/corpus/core/src/client/rich-markdown-editor/BubbleToolbar.tsx +0 -253
  191. package/corpus/core/src/client/rich-markdown-editor/CodeBlockNode.tsx +0 -258
  192. package/corpus/core/src/client/rich-markdown-editor/DragHandle.ts +0 -1437
  193. package/corpus/core/src/client/rich-markdown-editor/ImageExtension.ts +0 -306
  194. package/corpus/core/src/client/rich-markdown-editor/RichMarkdownEditor.tsx +0 -80
  195. package/corpus/core/src/client/rich-markdown-editor/RunId.ts +0 -61
  196. package/corpus/core/src/client/rich-markdown-editor/SharedRichEditor.tsx +0 -321
  197. package/corpus/core/src/client/rich-markdown-editor/SlashCommandMenu.tsx +0 -310
  198. package/corpus/core/src/client/rich-markdown-editor/extensions.ts +0 -402
  199. package/corpus/core/src/client/rich-markdown-editor/gfmDoc.ts +0 -92
  200. package/corpus/core/src/client/rich-markdown-editor/surgical-apply.ts +0 -192
  201. package/corpus/core/src/client/rich-markdown-editor/useCollabReconcile.ts +0 -590
  202. package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts +0 -37
  203. package/dist/client/rich-markdown-editor/BubbleToolbar.d.ts.map +0 -1
  204. package/dist/client/rich-markdown-editor/BubbleToolbar.js +0 -171
  205. package/dist/client/rich-markdown-editor/BubbleToolbar.js.map +0 -1
  206. package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts +0 -49
  207. package/dist/client/rich-markdown-editor/CodeBlockNode.d.ts.map +0 -1
  208. package/dist/client/rich-markdown-editor/CodeBlockNode.js +0 -127
  209. package/dist/client/rich-markdown-editor/CodeBlockNode.js.map +0 -1
  210. package/dist/client/rich-markdown-editor/DragHandle.d.ts +0 -97
  211. package/dist/client/rich-markdown-editor/DragHandle.d.ts.map +0 -1
  212. package/dist/client/rich-markdown-editor/DragHandle.js +0 -1066
  213. package/dist/client/rich-markdown-editor/DragHandle.js.map +0 -1
  214. package/dist/client/rich-markdown-editor/ImageExtension.d.ts +0 -63
  215. package/dist/client/rich-markdown-editor/ImageExtension.d.ts.map +0 -1
  216. package/dist/client/rich-markdown-editor/ImageExtension.js +0 -243
  217. package/dist/client/rich-markdown-editor/ImageExtension.js.map +0 -1
  218. package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts +0 -51
  219. package/dist/client/rich-markdown-editor/RichMarkdownEditor.d.ts.map +0 -1
  220. package/dist/client/rich-markdown-editor/RichMarkdownEditor.js +0 -37
  221. package/dist/client/rich-markdown-editor/RichMarkdownEditor.js.map +0 -1
  222. package/dist/client/rich-markdown-editor/RunId.d.ts +0 -28
  223. package/dist/client/rich-markdown-editor/RunId.d.ts.map +0 -1
  224. package/dist/client/rich-markdown-editor/RunId.js +0 -60
  225. package/dist/client/rich-markdown-editor/RunId.js.map +0 -1
  226. package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts +0 -110
  227. package/dist/client/rich-markdown-editor/SharedRichEditor.d.ts.map +0 -1
  228. package/dist/client/rich-markdown-editor/SharedRichEditor.js +0 -144
  229. package/dist/client/rich-markdown-editor/SharedRichEditor.js.map +0 -1
  230. package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts +0 -41
  231. package/dist/client/rich-markdown-editor/SlashCommandMenu.d.ts.map +0 -1
  232. package/dist/client/rich-markdown-editor/SlashCommandMenu.js +0 -221
  233. package/dist/client/rich-markdown-editor/SlashCommandMenu.js.map +0 -1
  234. package/dist/client/rich-markdown-editor/extensions.d.ts +0 -178
  235. package/dist/client/rich-markdown-editor/extensions.d.ts.map +0 -1
  236. package/dist/client/rich-markdown-editor/extensions.js +0 -224
  237. package/dist/client/rich-markdown-editor/extensions.js.map +0 -1
  238. package/dist/client/rich-markdown-editor/gfmDoc.d.ts +0 -24
  239. package/dist/client/rich-markdown-editor/gfmDoc.d.ts.map +0 -1
  240. package/dist/client/rich-markdown-editor/gfmDoc.js +0 -83
  241. package/dist/client/rich-markdown-editor/gfmDoc.js.map +0 -1
  242. package/dist/client/rich-markdown-editor/surgical-apply.d.ts +0 -66
  243. package/dist/client/rich-markdown-editor/surgical-apply.d.ts.map +0 -1
  244. package/dist/client/rich-markdown-editor/surgical-apply.js +0 -147
  245. package/dist/client/rich-markdown-editor/surgical-apply.js.map +0 -1
  246. package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts +0 -110
  247. package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts.map +0 -1
  248. package/dist/client/rich-markdown-editor/useCollabReconcile.js +0 -441
  249. package/dist/client/rich-markdown-editor/useCollabReconcile.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/client/context-xray/format.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,SAAU,CAAC;AAEhD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAGpE;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAO/D;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAMnE;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAUhD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAU/C"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/client/context-xray/format.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,SAAU,CAAC;AAEhD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAGpE;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAO/D"}
@@ -23,53 +23,4 @@ export function formatTokens(tokens) {
23
23
  }
24
24
  return String(value);
25
25
  }
26
- export function statusLabel(segment) {
27
- if (segment.protected)
28
- return "Protected";
29
- if (segment.status === "pinned")
30
- return "Pinned";
31
- if (segment.status === "evicted")
32
- return "Evicted";
33
- if (segment.status === "summarized")
34
- return "Summarized";
35
- return "Active";
36
- }
37
- export function groupColor(group) {
38
- if (group === "Pinned")
39
- return "bg-emerald-500";
40
- if (group === "Tool results")
41
- return "bg-amber-500";
42
- if (group === "Files read")
43
- return "bg-sky-500";
44
- if (group === "Thinking")
45
- return "bg-violet-500";
46
- if (group === "Task & instructions")
47
- return "bg-rose-500";
48
- if (group === "System · required")
49
- return "bg-slate-700";
50
- if (group === "System · inherited")
51
- return "bg-indigo-500";
52
- if (group === "System · user")
53
- return "bg-teal-500";
54
- return "bg-slate-400";
55
- }
56
- export function groupFill(group) {
57
- if (group === "Pinned")
58
- return "#10b981";
59
- if (group === "Tool results")
60
- return "#f59e0b";
61
- if (group === "Files read")
62
- return "#0ea5e9";
63
- if (group === "Thinking")
64
- return "#8b5cf6";
65
- if (group === "Task & instructions")
66
- return "#f43f5e";
67
- if (group === "System · required")
68
- return "#334155";
69
- if (group === "System · inherited")
70
- return "#6366f1";
71
- if (group === "System · user")
72
- return "#14b8a6";
73
- return "#94a3b8";
74
- }
75
26
  //# sourceMappingURL=format.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/client/context-xray/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAGvE;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEhD;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAuB;IAC1D,IAAI,CAAC,OAAO;QAAE,OAAO,wBAAwB,CAAC;IAC9C,OAAO,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC;IACnD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;QAC7B,OAAO,GAAG,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IACxE,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAA+B;IACzD,IAAI,OAA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,KAAK,KAAK,eAAe;QAAE,OAAO,SAAS,CAAC;IAChD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import { getContextWindowForModel } from \"../../agent/model-config.js\";\nimport type { ContextManifestSegment } from \"../../shared/context-xray.js\";\n\n/**\n * Fallback context-window limit used when no model ID is available.\n * Kept as a named export so existing callers that import this constant\n * directly still compile without changes.\n */\nexport const CONTEXT_XRAY_MODEL_LIMIT = 200_000;\n\n/**\n * Resolve the effective context-window limit for the given model ID.\n * Falls back to {@link CONTEXT_XRAY_MODEL_LIMIT} (200 K) when the model is\n * unknown or not provided — matching the pre-existing hard-coded behaviour.\n */\nexport function resolveContextWindow(modelId?: string | null): number {\n if (!modelId) return CONTEXT_XRAY_MODEL_LIMIT;\n return getContextWindowForModel(modelId);\n}\n\nexport function formatTokens(tokens: number | undefined): string {\n const value = Math.max(0, Math.round(tokens ?? 0));\n if (value >= 1000) {\n const compact = value / 1000;\n return `${compact >= 100 ? compact.toFixed(0) : compact.toFixed(1)}k`;\n }\n return String(value);\n}\n\nexport function statusLabel(segment: ContextManifestSegment): string {\n if (segment.protected) return \"Protected\";\n if (segment.status === \"pinned\") return \"Pinned\";\n if (segment.status === \"evicted\") return \"Evicted\";\n if (segment.status === \"summarized\") return \"Summarized\";\n return \"Active\";\n}\n\nexport function groupColor(group: string): string {\n if (group === \"Pinned\") return \"bg-emerald-500\";\n if (group === \"Tool results\") return \"bg-amber-500\";\n if (group === \"Files read\") return \"bg-sky-500\";\n if (group === \"Thinking\") return \"bg-violet-500\";\n if (group === \"Task & instructions\") return \"bg-rose-500\";\n if (group === \"System · required\") return \"bg-slate-700\";\n if (group === \"System · inherited\") return \"bg-indigo-500\";\n if (group === \"System · user\") return \"bg-teal-500\";\n return \"bg-slate-400\";\n}\n\nexport function groupFill(group: string): string {\n if (group === \"Pinned\") return \"#10b981\";\n if (group === \"Tool results\") return \"#f59e0b\";\n if (group === \"Files read\") return \"#0ea5e9\";\n if (group === \"Thinking\") return \"#8b5cf6\";\n if (group === \"Task & instructions\") return \"#f43f5e\";\n if (group === \"System · required\") return \"#334155\";\n if (group === \"System · inherited\") return \"#6366f1\";\n if (group === \"System · user\") return \"#14b8a6\";\n return \"#94a3b8\";\n}\n"]}
1
+ {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/client/context-xray/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEhD;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAuB;IAC1D,IAAI,CAAC,OAAO;QAAE,OAAO,wBAAwB,CAAC;IAC9C,OAAO,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC;IACnD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;QAC7B,OAAO,GAAG,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IACxE,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC","sourcesContent":["import { getContextWindowForModel } from \"../../agent/model-config.js\";\n\n/**\n * Fallback context-window limit used when no model ID is available.\n * Kept as a named export so existing callers that import this constant\n * directly still compile without changes.\n */\nexport const CONTEXT_XRAY_MODEL_LIMIT = 200_000;\n\n/**\n * Resolve the effective context-window limit for the given model ID.\n * Falls back to {@link CONTEXT_XRAY_MODEL_LIMIT} (200 K) when the model is\n * unknown or not provided — matching the pre-existing hard-coded behaviour.\n */\nexport function resolveContextWindow(modelId?: string | null): number {\n if (!modelId) return CONTEXT_XRAY_MODEL_LIMIT;\n return getContextWindowForModel(modelId);\n}\n\nexport function formatTokens(tokens: number | undefined): string {\n const value = Math.max(0, Math.round(tokens ?? 0));\n if (value >= 1000) {\n const compact = value / 1000;\n return `${compact >= 100 ? compact.toFixed(0) : compact.toFixed(1)}k`;\n }\n return String(value);\n}\n"]}
@@ -1,16 +1,5 @@
1
- export { createSharedEditorExtensions, MARKDOWN_DIALECT_CONFIG, type RichMarkdownDialect, type RichMarkdownEditorPreset, type RichMarkdownCollabUser, type SharedEditorCollab, type SharedEditorFeatures, type CreateSharedEditorExtensionsOptions, } from "./extensions.js";
2
- export { useCollabReconcile, getEditorMarkdown, RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION, type UseCollabReconcileOptions, type UseCollabReconcileResult, } from "./useCollabReconcile.js";
3
- export { applyDocSurgically, defaultParseValue, diffTopLevel, type TopLevelDiff, } from "./surgical-apply.js";
4
- export { SlashCommandMenu, DEFAULT_SLASH_COMMANDS, createImageSlashCommand, type SlashCommandItem, type SlashCommandMenuProps, } from "./SlashCommandMenu.js";
5
- export { SharedImage, createImageExtension, pickAndInsertImage, type ImageUploadFn, type SharedImageOptions, } from "./ImageExtension.js";
1
+ export { applyDocSurgically, BubbleToolbar, buildDefaultBubbleItems, createCodeBlockNode, createImageExtension, createImageSlashCommand, createRichMarkdownExtensions, createSharedEditorExtensions, DEFAULT_CODE_LANGUAGES, DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR, DEFAULT_SLASH_COMMANDS, defaultParseValue, diffTopLevel, DragHandle, getEditorMarkdown, gfmToProseJSON, MARKDOWN_DIALECT_CONFIG, pickAndInsertImage, proseJSONToGfm, RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION, RichMarkdownEditor, RunId, RUN_ID_NODE_TYPES, SharedImage, SharedRichEditor, SlashCommandMenu, useCollabReconcile, type BubbleToolbarItem, type BubbleToolbarProps, type CodeBlockClassNames, type CodeLanguageOption, type CreateCodeBlockNodeOptions, type CreateRichMarkdownExtensionsOptions, type CreateSharedEditorExtensionsOptions, type DragHandleDropContext, type DragHandleDropPlacement, type DragHandleOptions, type ImageUploadFn, type RichMarkdownCollabUser, type RichMarkdownDialect, type RichMarkdownEditorPreset, type RichMarkdownEditorProps, type SharedEditorCollab, type SharedEditorFeatures, type SharedImageOptions, type SharedRichEditorProps, type SlashCommandItem, type SlashCommandMenuProps, type TopLevelDiff, type UseCollabReconcileOptions, type UseCollabReconcileResult, } from "@agent-native/toolkit/editor";
6
2
  export { uploadEditorImage } from "./uploadEditorImage.js";
7
- export { BubbleToolbar, buildDefaultBubbleItems, type BubbleToolbarItem, type BubbleToolbarProps, } from "./BubbleToolbar.js";
8
- export { SharedRichEditor, type SharedRichEditorProps, } from "./SharedRichEditor.js";
9
- export { createCodeBlockNode, DEFAULT_CODE_LANGUAGES, type CodeLanguageOption, type CodeBlockClassNames, type CreateCodeBlockNodeOptions, } from "./CodeBlockNode.js";
10
- export { RichMarkdownEditor, createRichMarkdownExtensions, type RichMarkdownEditorProps, type CreateRichMarkdownExtensionsOptions, } from "./RichMarkdownEditor.js";
11
- export { RunId, RUN_ID_NODE_TYPES } from "./RunId.js";
12
- export { gfmToProseJSON, proseJSONToGfm } from "./gfmDoc.js";
13
- export { DragHandle, DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR, type DragHandleDropContext, type DragHandleDropPlacement, type DragHandleOptions, } from "./DragHandle.js";
14
3
  export { createRegistryBlockNode, RegistryBlockNodeView, RegistryBlockDataProvider, useRegistryBlockData, type CreateRegistryBlockNodeOptions, type RegistryBlockDataValue, type RegistryBlockSideMapBlock, } from "./RegistryBlockNode.js";
15
4
  export { buildRegistryBlockSlashItems, getRegistryBlockSlashDescription, getRegistryBlockSlashSearchText, type BuildRegistryBlockSlashItemsOptions, } from "./registrySlashCommands.js";
16
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mCAAmC,GACzC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,sCAAsC,EACtC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,KAAK,YAAY,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,GACzC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,UAAU,EACV,oCAAoC,EACpC,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,KAAK,mCAAmC,GACzC,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,oCAAoC,EACpC,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,sCAAsC,EACtC,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,mCAAmC,EACxC,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,KAAK,mCAAmC,GACzC,MAAM,4BAA4B,CAAC"}
@@ -1,16 +1,5 @@
1
- export { createSharedEditorExtensions, MARKDOWN_DIALECT_CONFIG, } from "./extensions.js";
2
- export { useCollabReconcile, getEditorMarkdown, RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION, } from "./useCollabReconcile.js";
3
- export { applyDocSurgically, defaultParseValue, diffTopLevel, } from "./surgical-apply.js";
4
- export { SlashCommandMenu, DEFAULT_SLASH_COMMANDS, createImageSlashCommand, } from "./SlashCommandMenu.js";
5
- export { SharedImage, createImageExtension, pickAndInsertImage, } from "./ImageExtension.js";
1
+ export { applyDocSurgically, BubbleToolbar, buildDefaultBubbleItems, createCodeBlockNode, createImageExtension, createImageSlashCommand, createRichMarkdownExtensions, createSharedEditorExtensions, DEFAULT_CODE_LANGUAGES, DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR, DEFAULT_SLASH_COMMANDS, defaultParseValue, diffTopLevel, DragHandle, getEditorMarkdown, gfmToProseJSON, MARKDOWN_DIALECT_CONFIG, pickAndInsertImage, proseJSONToGfm, RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION, RichMarkdownEditor, RunId, RUN_ID_NODE_TYPES, SharedImage, SharedRichEditor, SlashCommandMenu, useCollabReconcile, } from "@agent-native/toolkit/editor";
6
2
  export { uploadEditorImage } from "./uploadEditorImage.js";
7
- export { BubbleToolbar, buildDefaultBubbleItems, } from "./BubbleToolbar.js";
8
- export { SharedRichEditor, } from "./SharedRichEditor.js";
9
- export { createCodeBlockNode, DEFAULT_CODE_LANGUAGES, } from "./CodeBlockNode.js";
10
- export { RichMarkdownEditor, createRichMarkdownExtensions, } from "./RichMarkdownEditor.js";
11
- export { RunId, RUN_ID_NODE_TYPES } from "./RunId.js";
12
- export { gfmToProseJSON, proseJSONToGfm } from "./gfmDoc.js";
13
- export { DragHandle, DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR, } from "./DragHandle.js";
14
3
  export { createRegistryBlockNode, RegistryBlockNodeView, RegistryBlockDataProvider, useRegistryBlockData, } from "./RegistryBlockNode.js";
15
4
  export { buildRegistryBlockSlashItems, getRegistryBlockSlashDescription, getRegistryBlockSlashSearchText, } from "./registrySlashCommands.js";
16
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,GAOxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,sCAAsC,GAGvC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,GAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,GAGxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,kBAAkB,GAGnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,aAAa,EACb,uBAAuB,GAGxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,sBAAsB,GAIvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,4BAA4B,GAG7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,UAAU,EACV,oCAAoC,GAIrC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,GAIrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,GAEhC,MAAM,4BAA4B,CAAC","sourcesContent":["export {\n createSharedEditorExtensions,\n MARKDOWN_DIALECT_CONFIG,\n type RichMarkdownDialect,\n type RichMarkdownEditorPreset,\n type RichMarkdownCollabUser,\n type SharedEditorCollab,\n type SharedEditorFeatures,\n type CreateSharedEditorExtensionsOptions,\n} from \"./extensions.js\";\nexport {\n useCollabReconcile,\n getEditorMarkdown,\n RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION,\n type UseCollabReconcileOptions,\n type UseCollabReconcileResult,\n} from \"./useCollabReconcile.js\";\nexport {\n applyDocSurgically,\n defaultParseValue,\n diffTopLevel,\n type TopLevelDiff,\n} from \"./surgical-apply.js\";\nexport {\n SlashCommandMenu,\n DEFAULT_SLASH_COMMANDS,\n createImageSlashCommand,\n type SlashCommandItem,\n type SlashCommandMenuProps,\n} from \"./SlashCommandMenu.js\";\nexport {\n SharedImage,\n createImageExtension,\n pickAndInsertImage,\n type ImageUploadFn,\n type SharedImageOptions,\n} from \"./ImageExtension.js\";\nexport { uploadEditorImage } from \"./uploadEditorImage.js\";\nexport {\n BubbleToolbar,\n buildDefaultBubbleItems,\n type BubbleToolbarItem,\n type BubbleToolbarProps,\n} from \"./BubbleToolbar.js\";\nexport {\n SharedRichEditor,\n type SharedRichEditorProps,\n} from \"./SharedRichEditor.js\";\nexport {\n createCodeBlockNode,\n DEFAULT_CODE_LANGUAGES,\n type CodeLanguageOption,\n type CodeBlockClassNames,\n type CreateCodeBlockNodeOptions,\n} from \"./CodeBlockNode.js\";\nexport {\n RichMarkdownEditor,\n createRichMarkdownExtensions,\n type RichMarkdownEditorProps,\n type CreateRichMarkdownExtensionsOptions,\n} from \"./RichMarkdownEditor.js\";\nexport { RunId, RUN_ID_NODE_TYPES } from \"./RunId.js\";\nexport { gfmToProseJSON, proseJSONToGfm } from \"./gfmDoc.js\";\nexport {\n DragHandle,\n DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR,\n type DragHandleDropContext,\n type DragHandleDropPlacement,\n type DragHandleOptions,\n} from \"./DragHandle.js\";\nexport {\n createRegistryBlockNode,\n RegistryBlockNodeView,\n RegistryBlockDataProvider,\n useRegistryBlockData,\n type CreateRegistryBlockNodeOptions,\n type RegistryBlockDataValue,\n type RegistryBlockSideMapBlock,\n} from \"./RegistryBlockNode.js\";\nexport {\n buildRegistryBlockSlashItems,\n getRegistryBlockSlashDescription,\n getRegistryBlockSlashSearchText,\n type BuildRegistryBlockSlashItemsOptions,\n} from \"./registrySlashCommands.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,oCAAoC,EACpC,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,sCAAsC,EACtC,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,GAyBnB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,GAIrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,GAEhC,MAAM,4BAA4B,CAAC","sourcesContent":["export {\n applyDocSurgically,\n BubbleToolbar,\n buildDefaultBubbleItems,\n createCodeBlockNode,\n createImageExtension,\n createImageSlashCommand,\n createRichMarkdownExtensions,\n createSharedEditorExtensions,\n DEFAULT_CODE_LANGUAGES,\n DEFAULT_DRAG_HANDLE_WRAPPER_SELECTOR,\n DEFAULT_SLASH_COMMANDS,\n defaultParseValue,\n diffTopLevel,\n DragHandle,\n getEditorMarkdown,\n gfmToProseJSON,\n MARKDOWN_DIALECT_CONFIG,\n pickAndInsertImage,\n proseJSONToGfm,\n RICH_MARKDOWN_PROGRAMMATIC_TRANSACTION,\n RichMarkdownEditor,\n RunId,\n RUN_ID_NODE_TYPES,\n SharedImage,\n SharedRichEditor,\n SlashCommandMenu,\n useCollabReconcile,\n type BubbleToolbarItem,\n type BubbleToolbarProps,\n type CodeBlockClassNames,\n type CodeLanguageOption,\n type CreateCodeBlockNodeOptions,\n type CreateRichMarkdownExtensionsOptions,\n type CreateSharedEditorExtensionsOptions,\n type DragHandleDropContext,\n type DragHandleDropPlacement,\n type DragHandleOptions,\n type ImageUploadFn,\n type RichMarkdownCollabUser,\n type RichMarkdownDialect,\n type RichMarkdownEditorPreset,\n type RichMarkdownEditorProps,\n type SharedEditorCollab,\n type SharedEditorFeatures,\n type SharedImageOptions,\n type SharedRichEditorProps,\n type SlashCommandItem,\n type SlashCommandMenuProps,\n type TopLevelDiff,\n type UseCollabReconcileOptions,\n type UseCollabReconcileResult,\n} from \"@agent-native/toolkit/editor\";\n\nexport { uploadEditorImage } from \"./uploadEditorImage.js\";\nexport {\n createRegistryBlockNode,\n RegistryBlockNodeView,\n RegistryBlockDataProvider,\n useRegistryBlockData,\n type CreateRegistryBlockNodeOptions,\n type RegistryBlockDataValue,\n type RegistryBlockSideMapBlock,\n} from \"./RegistryBlockNode.js\";\nexport {\n buildRegistryBlockSlashItems,\n getRegistryBlockSlashDescription,\n getRegistryBlockSlashSearchText,\n type BuildRegistryBlockSlashItemsOptions,\n} from \"./registrySlashCommands.js\";\n"]}
@@ -1,4 +1,4 @@
1
- import type { ImageUploadFn } from "./ImageExtension.js";
1
+ import type { ImageUploadFn } from "@agent-native/toolkit/editor";
2
2
  /**
3
3
  * The shared editor's default image uploader: upload a picked / pasted /
4
4
  * dropped image File through the framework `upload-image` action and return the
@@ -1 +1 @@
1
- {"version":3,"file":"uploadEditorImage.d.ts","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/uploadEditorImage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAgCzD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,EAAE,aAsB/B,CAAC"}
1
+ {"version":3,"file":"uploadEditorImage.d.ts","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/uploadEditorImage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAkClE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,EAAE,aAsB/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"uploadEditorImage.js","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/uploadEditorImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,C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C7D,MAAM,IAAI,KAAK,CACb,MAAM,EAAE,KAAK;YACX,qFAAqF,CACxF,CAAC;IACJ,CAAC;IAED,sEAAsE;IACtE,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;AAClC,CAAC,CAAC","sourcesContent":["import { callAction } from \"../use-action.js\";\nimport type { ImageUploadFn } from \"./ImageExtension.js\";\n\n/**\n * Read a {@link File} as a base64 data URL (`data:image/...;base64,...`).\n *\n * The framework `upload-image` action accepts a data URL (`data`) or a remote\n * URL (`url`) — not raw multipart — so a browser file-picker must convert the\n * File to a data URL first.\n */\nfunction fileToDataUrl(file: File): Promise<string> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n const result = reader.result;\n if (typeof result === \"string\") {\n resolve(result);\n } else {\n reject(new Error(\"Failed to read image file.\"));\n }\n };\n reader.onerror = () =>\n reject(reader.error ?? new Error(\"Failed to read image file.\"));\n reader.readAsDataURL(file);\n });\n}\n\ninterface UploadImageActionResult {\n url?: string;\n error?: string;\n configured?: boolean;\n}\n\n/**\n * The shared editor's default image uploader: upload a picked / pasted /\n * dropped image File through the framework `upload-image` action and return the\n * hosted CDN URL.\n *\n * This is the {@link ImageUploadFn} embedders pass to the shared image block so\n * any app gets a real uploading image block with zero per-app upload code. The\n * action re-hosts the bytes on the configured provider (Builder.io by default),\n * is session-scoped, and returns a stable `![alt](url)` source — so a plan's\n * inserted image autosaves as plain markdown through the existing\n * `update-rich-text` path with no new persistence channel.\n *\n * @throws when the file cannot be read, the action returns no URL, or upload is\n * not configured (with the action's \"connect Builder.io\" guidance).\n */\nexport const uploadEditorImage: ImageUploadFn = async (file: File) => {\n if (!file.type.startsWith(\"image/\")) {\n throw new Error(\"Only image files can be uploaded.\");\n }\n\n const dataUrl = await fileToDataUrl(file);\n\n const result = await callAction<UploadImageActionResult>(\"upload-image\", {\n data: dataUrl,\n filename: file.name || undefined,\n });\n\n if (!result || typeof result.url !== \"string\" || !result.url) {\n throw new Error(\n result?.error ||\n \"Image upload failed. Connect Builder.io in Settings → File uploads, then try again.\",\n );\n }\n\n // Use the filename (sans extension) as a reasonable default alt text.\n const alt = file.name ? file.name.replace(/\\.[^./\\\\]+$/, \"\") : \"\";\n return { src: result.url, alt };\n};\n"]}
1
+ {"version":3,"file":"uploadEditorImage.js","sourceRoot":"","sources":["../../../src/client/rich-markdown-editor/uploadEditorImage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;GAMG;AACH,SAAS,aAAa,CAAC,IAAU;IAC/B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE;YACnB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;YAC7B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC,CAAC;YAClD,CAAC;QACH,CAAC,CAAC;QACF,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE,CACpB,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC,CAAC;QAClE,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC;AAQD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAkB,KAAK,EAAE,IAAU,EAAE,EAAE;IACnE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,CAAC;IAE1C,MAAM,MAAM,GAAG,MAAM,UAAU,CAA0B,cAAc,EAAE;QACvE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,IAAI,CAAC,IAAI,IAAI,SAAS;KACjC,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAC7D,MAAM,IAAI,KAAK,CACb,MAAM,EAAE,KAAK;YACX,qFAAqF,CACxF,CAAC;IACJ,CAAC;IAED,sEAAsE;IACtE,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;AAClC,CAAC,CAAC","sourcesContent":["import type { ImageUploadFn } from \"@agent-native/toolkit/editor\";\n\nimport { callAction } from \"../use-action.js\";\n\n/**\n * Read a {@link File} as a base64 data URL (`data:image/...;base64,...`).\n *\n * The framework `upload-image` action accepts a data URL (`data`) or a remote\n * URL (`url`) — not raw multipart — so a browser file-picker must convert the\n * File to a data URL first.\n */\nfunction fileToDataUrl(file: File): Promise<string> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n const result = reader.result;\n if (typeof result === \"string\") {\n resolve(result);\n } else {\n reject(new Error(\"Failed to read image file.\"));\n }\n };\n reader.onerror = () =>\n reject(reader.error ?? new Error(\"Failed to read image file.\"));\n reader.readAsDataURL(file);\n });\n}\n\ninterface UploadImageActionResult {\n url?: string;\n error?: string;\n configured?: boolean;\n}\n\n/**\n * The shared editor's default image uploader: upload a picked / pasted /\n * dropped image File through the framework `upload-image` action and return the\n * hosted CDN URL.\n *\n * This is the {@link ImageUploadFn} embedders pass to the shared image block so\n * any app gets a real uploading image block with zero per-app upload code. The\n * action re-hosts the bytes on the configured provider (Builder.io by default),\n * is session-scoped, and returns a stable `![alt](url)` source — so a plan's\n * inserted image autosaves as plain markdown through the existing\n * `update-rich-text` path with no new persistence channel.\n *\n * @throws when the file cannot be read, the action returns no URL, or upload is\n * not configured (with the action's \"connect Builder.io\" guidance).\n */\nexport const uploadEditorImage: ImageUploadFn = async (file: File) => {\n if (!file.type.startsWith(\"image/\")) {\n throw new Error(\"Only image files can be uploaded.\");\n }\n\n const dataUrl = await fileToDataUrl(file);\n\n const result = await callAction<UploadImageActionResult>(\"upload-image\", {\n data: dataUrl,\n filename: file.name || undefined,\n });\n\n if (!result || typeof result.url !== \"string\" || !result.url) {\n throw new Error(\n result?.error ||\n \"Image upload failed. Connect Builder.io in Settings → File uploads, then try again.\",\n );\n }\n\n // Use the filename (sans extension) as a reasonable default alt text.\n const alt = file.name ? file.name.replace(/\\.[^./\\\\]+$/, \"\") : \"\";\n return { src: result.url, alt };\n};\n"]}
@@ -1,90 +1,2 @@
1
- import { type ReactNode } from "react";
2
- export type VisualControlValue = string | number | boolean;
3
- export interface VisualControlOption {
4
- label: string;
5
- value: string;
6
- color?: string;
7
- }
8
- export interface VisualTweakDefinition {
9
- id: string;
10
- label: string;
11
- type: "color-swatch" | "color-swatches" | "segment" | "slider" | "toggle";
12
- options?: VisualControlOption[];
13
- min?: number;
14
- max?: number;
15
- step?: number;
16
- defaultValue: VisualControlValue;
17
- cssVar?: string;
18
- unit?: string;
19
- }
20
- export declare function VisualInspectorPanel({ title, subtitle, children, className, headerAction, }: {
21
- title: ReactNode;
22
- subtitle?: ReactNode;
23
- children: ReactNode;
24
- className?: string;
25
- headerAction?: ReactNode;
26
- }): import("react").JSX.Element;
27
- export declare function VisualInspectorSection({ title, children, className, }: {
28
- title: ReactNode;
29
- children: ReactNode;
30
- className?: string;
31
- }): import("react").JSX.Element;
32
- export declare function VisualControlRow({ label, children, className, }: {
33
- label: ReactNode;
34
- children: ReactNode;
35
- className?: string;
36
- }): import("react").JSX.Element;
37
- export declare function VisualSwatchControl({ options, value, onChange, columns, className, }: {
38
- options: VisualControlOption[];
39
- value: string;
40
- onChange: (value: string) => void;
41
- columns?: number;
42
- className?: string;
43
- }): import("react").JSX.Element;
44
- export declare function VisualColorPicker({ label, value, onChange, documentColors, allowTransparent, hexLabel, documentColorsLabel, transparentLabel, className, }: {
45
- label: string;
46
- value: string;
47
- onChange: (value: string) => void;
48
- documentColors?: string[];
49
- allowTransparent?: boolean;
50
- hexLabel?: string;
51
- documentColorsLabel?: string;
52
- transparentLabel?: string;
53
- className?: string;
54
- }): import("react").JSX.Element;
55
- export declare function VisualSegmentedControl({ options, value, onChange, className, }: {
56
- options: VisualControlOption[];
57
- value: string;
58
- onChange: (value: string) => void;
59
- className?: string;
60
- }): import("react").JSX.Element;
61
- export declare function VisualToggleControl({ checked, onChange, label, }: {
62
- checked: boolean;
63
- onChange: (checked: boolean) => void;
64
- label?: string;
65
- }): import("react").JSX.Element;
66
- export declare function VisualSliderControl({ value, onChange, min, max, step, unit, }: {
67
- value: number;
68
- onChange: (value: number) => void;
69
- min?: number;
70
- max?: number;
71
- step?: number;
72
- unit?: string;
73
- }): import("react").JSX.Element;
74
- export declare function VisualScrubInput({ label, value, onChange, min, max, step, unit, disabled, }: {
75
- label: string;
76
- value: number;
77
- onChange: (value: number) => void;
78
- min?: number;
79
- max?: number;
80
- step?: number;
81
- unit?: string;
82
- disabled?: boolean;
83
- }): import("react").JSX.Element;
84
- export declare function VisualTweakControl({ tweak, value, onChange, className, }: {
85
- tweak: VisualTweakDefinition;
86
- value: VisualControlValue;
87
- onChange: (value: VisualControlValue) => void;
88
- className?: string;
89
- }): import("react").JSX.Element;
1
+ export * from "@agent-native/toolkit/design-tweaks";
90
2
  //# sourceMappingURL=visual-style-controls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"visual-style-controls.d.ts","sourceRoot":"","sources":["../../src/client/visual-style-controls.tsx"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AASf,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,GAAG,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC1E,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,kBAAkB,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAoMD,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,YAAY,GACb,EAAE;IACD,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,+BA0BA;AAED,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,SAAS,GACV,E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,EACR,SAAS,GACV,EAAE;IACD,KAAK,EAAE,qBAAqB,CAAC;IAC7B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BA4DA"}
1
+ {"version":3,"file":"visual-style-controls.d.ts","sourceRoot":"","sources":["../../src/client/visual-style-controls.tsx"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}