@shwfed/config 3.0.7 → 3.0.8

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 (246) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/actions/ai-l1.md +24 -0
  3. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.d.ts +1 -0
  4. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.js +2 -1
  5. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/prompt.md +8 -0
  6. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +6 -0
  7. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.js +4 -0
  8. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/prompt.md +8 -0
  9. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.d.ts +1 -0
  10. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.js +2 -1
  11. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/prompt.md +9 -0
  12. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +1 -0
  13. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.js +2 -1
  14. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/prompt.md +8 -0
  15. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/schema.d.ts +1 -0
  16. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/schema.js +2 -1
  17. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +1 -0
  18. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.js +2 -1
  19. package/dist/runtime/components/actions/utils/ai-button-tools.d.ts +29 -0
  20. package/dist/runtime/components/actions/utils/ai-button-tools.js +664 -0
  21. package/dist/runtime/components/actions/utils/resolve.d.ts +22 -0
  22. package/dist/runtime/components/actions/utils/resolve.js +23 -1
  23. package/dist/runtime/components/config/ai-generate.d.vue.ts +7 -0
  24. package/dist/runtime/components/config/ai-generate.system.md +39 -0
  25. package/dist/runtime/components/{table → config}/ai-generate.vue +55 -32
  26. package/dist/runtime/components/config/ai-generate.vue.d.ts +7 -0
  27. package/dist/runtime/components/config/ai-page-slot.l1.md +25 -0
  28. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +6 -0
  29. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.js +4 -0
  30. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +6 -0
  31. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.js +4 -0
  32. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +1 -0
  33. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.js +1 -0
  34. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +58 -58
  35. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +58 -58
  36. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +58 -58
  37. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +58 -58
  38. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +35 -29
  39. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.js +4 -0
  40. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +7 -0
  41. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.js +4 -0
  42. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +1 -0
  43. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.js +1 -0
  44. package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +1 -0
  45. package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.js +1 -0
  46. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +6 -0
  47. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.js +4 -0
  48. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.icon/schema.d.ts +1 -0
  49. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.icon/schema.js +1 -0
  50. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.d.vue.ts +18 -18
  51. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.vue.d.ts +18 -18
  52. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.d.vue.ts +18 -18
  53. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue.d.ts +18 -18
  54. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +6 -0
  55. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.js +4 -0
  56. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.d.ts +7 -0
  57. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.js +4 -0
  58. package/dist/runtime/components/config/config.vue +24 -3
  59. package/dist/runtime/components/config/use-editor.d.ts +1 -0
  60. package/dist/runtime/components/config/use-editor.js +18 -0
  61. package/dist/runtime/components/config/utils/ai-cursor.d.ts +21 -0
  62. package/dist/runtime/components/config/utils/ai-cursor.js +827 -0
  63. package/dist/runtime/components/config/utils/ai-host-manuals.d.ts +2 -0
  64. package/dist/runtime/components/config/utils/ai-host-manuals.js +19 -0
  65. package/dist/runtime/components/config/utils/linkage.d.ts +15 -6
  66. package/dist/runtime/components/config/utils/linkage.js +23 -7
  67. package/dist/runtime/components/config/utils/resolve.d.ts +19 -0
  68. package/dist/runtime/components/config/utils/resolve.js +25 -2
  69. package/dist/runtime/components/form/ai-l1.md +22 -0
  70. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +1 -0
  71. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +1 -0
  72. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +1 -0
  73. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +1 -0
  74. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +1 -0
  75. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +1 -0
  76. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +7 -0
  77. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.js +4 -0
  78. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +1 -0
  79. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +1 -0
  80. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +1 -0
  81. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +1 -0
  82. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +1 -0
  83. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +1 -0
  84. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +1 -0
  85. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +1 -0
  86. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +1 -0
  87. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.js +1 -0
  88. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +1 -0
  89. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js +1 -0
  90. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +1 -0
  91. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +1 -0
  92. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +1 -0
  93. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js +1 -0
  94. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +1 -0
  95. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js +1 -0
  96. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +1 -0
  97. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +1 -0
  98. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/prompt.md +8 -0
  99. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +7 -0
  100. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +4 -0
  101. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +1 -0
  102. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.js +1 -0
  103. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +1 -0
  104. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.js +1 -0
  105. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/prompt.md +12 -0
  106. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +6 -0
  107. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.js +4 -0
  108. package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +6 -0
  109. package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.js +4 -0
  110. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
  111. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
  112. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +1 -0
  113. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.js +1 -0
  114. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +1 -0
  115. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.js +1 -0
  116. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
  117. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
  118. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
  119. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
  120. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
  121. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
  122. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/prompt.md +7 -0
  123. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +1 -0
  124. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.js +1 -0
  125. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
  126. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
  127. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/prompt.md +7 -0
  128. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +1 -0
  129. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.js +1 -0
  130. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
  131. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
  132. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/prompt.md +9 -0
  133. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +1 -0
  134. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.js +1 -0
  135. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +26 -26
  136. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +26 -26
  137. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/prompt.md +11 -0
  138. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +1 -0
  139. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.js +1 -0
  140. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/prompt.md +12 -0
  141. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +1 -0
  142. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.js +1 -0
  143. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/prompt.md +14 -0
  144. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +1 -0
  145. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.js +1 -0
  146. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/prompt.md +19 -0
  147. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +1 -0
  148. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.js +1 -0
  149. package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +7 -0
  150. package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.js +4 -0
  151. package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/prompt.md +14 -0
  152. package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.d.ts +1 -0
  153. package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.js +1 -0
  154. package/dist/runtime/components/form/utils/ai-field-tools.d.ts +2 -2
  155. package/dist/runtime/components/form/utils/ai-field-tools.js +47 -30
  156. package/dist/runtime/components/form/utils/resolve.d.ts +11 -0
  157. package/dist/runtime/components/form/utils/resolve.js +13 -1
  158. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +1 -0
  159. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.js +2 -1
  160. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +1 -0
  161. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.js +1 -0
  162. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +1 -0
  163. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +2 -1
  164. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.navigation/schema.d.ts +1 -0
  165. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.navigation/schema.js +2 -1
  166. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.d.ts +1 -0
  167. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.js +2 -1
  168. package/dist/runtime/components/operations/utils/resolve.d.ts +17 -0
  169. package/dist/runtime/components/operations/utils/resolve.js +18 -1
  170. package/dist/runtime/components/table/ai-l1.md +38 -0
  171. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +7 -0
  172. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +5 -1
  173. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
  174. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +2 -1
  175. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
  176. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +2 -1
  177. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
  178. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +2 -1
  179. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
  180. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +2 -1
  181. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
  182. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +2 -1
  183. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
  184. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +2 -1
  185. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
  186. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +2 -1
  187. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
  188. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +2 -1
  189. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
  190. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +2 -1
  191. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
  192. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +2 -1
  193. package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.d.ts +1 -0
  194. package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.js +2 -1
  195. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
  196. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
  197. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
  198. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
  199. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
  200. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
  201. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
  202. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
  203. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/prompt.md +12 -0
  204. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  205. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.js +1 -0
  206. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/prompt.md +16 -0
  207. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  208. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.js +1 -0
  209. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
  210. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
  211. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
  212. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -0
  213. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
  214. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
  215. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
  216. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +1 -0
  217. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +1 -0
  218. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +2 -1
  219. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +1 -0
  220. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +2 -1
  221. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/prompt.md +15 -0
  222. package/dist/runtime/components/table/config.d.vue.ts +3 -3
  223. package/dist/runtime/components/table/config.vue +1 -33
  224. package/dist/runtime/components/table/config.vue.d.ts +3 -3
  225. package/dist/runtime/components/table/row-provider.vue +7 -1
  226. package/dist/runtime/components/table/schema.d.ts +58 -58
  227. package/dist/runtime/components/table/utils/ai-tools.js +16 -7
  228. package/dist/runtime/components/table/utils/resolve.d.ts +5 -0
  229. package/dist/runtime/components/table/utils/resolve.js +12 -1
  230. package/dist/runtime/share/define-registry.d.ts +66 -0
  231. package/dist/runtime/share/define-registry.js +37 -1
  232. package/dist/runtime/share/use-persisted-chat.d.ts +11 -9
  233. package/dist/runtime/share/use-persisted-chat.js +3 -3
  234. package/dist/runtime/utils/ai/index.d.ts +1 -1
  235. package/dist/runtime/utils/ai/index.js +18 -11
  236. package/dist/runtime/utils/cel-catalog.d.ts +1 -0
  237. package/dist/runtime/utils/cel-catalog.js +10 -0
  238. package/dist/runtime/utils/cel-catalog.md +42 -0
  239. package/dist/runtime/utils/cel-context.d.ts +15 -0
  240. package/dist/runtime/utils/cel-context.js +8 -0
  241. package/package.json +1 -1
  242. package/dist/runtime/components/table/ai-generate.d.vue.ts +0 -16
  243. package/dist/runtime/components/table/ai-generate.system.md +0 -101
  244. package/dist/runtime/components/table/ai-generate.vue.d.ts +0 -16
  245. /package/dist/runtime/components/{table → config}/ai-generate.system.d.ts +0 -0
  246. /package/dist/runtime/components/{table → config}/ai-generate.system.js +0 -0
@@ -32,15 +32,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly locale: "en" | "ja" | "ko";
33
33
  readonly message: string;
34
34
  }[]];
35
- readonly nodeTooltip?: readonly [{
36
- readonly locale: "zh";
37
- readonly message: string;
38
- }, ...{
39
- readonly locale: "en" | "ja" | "ko";
40
- readonly message: string;
41
- }[]] | undefined;
42
- readonly nodeSelectable?: string | undefined;
43
- readonly expandAll: boolean;
44
35
  readonly nodeActions: {
45
36
  readonly size: "default" | "sm" | "xs";
46
37
  readonly style?: string | undefined;
@@ -109,6 +100,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
109
100
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
110
101
  }[];
111
102
  };
103
+ readonly nodeTooltip?: readonly [{
104
+ readonly locale: "zh";
105
+ readonly message: string;
106
+ }, ...{
107
+ readonly locale: "en" | "ja" | "ko";
108
+ readonly message: string;
109
+ }[]] | undefined;
110
+ readonly nodeSelectable?: string | undefined;
111
+ readonly expandAll: boolean;
112
112
  }) => any;
113
113
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
114
114
  "onUpdate:modelValue"?: ((value: {
@@ -140,15 +140,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
140
140
  readonly locale: "en" | "ja" | "ko";
141
141
  readonly message: string;
142
142
  }[]];
143
- readonly nodeTooltip?: readonly [{
144
- readonly locale: "zh";
145
- readonly message: string;
146
- }, ...{
147
- readonly locale: "en" | "ja" | "ko";
148
- readonly message: string;
149
- }[]] | undefined;
150
- readonly nodeSelectable?: string | undefined;
151
- readonly expandAll: boolean;
152
143
  readonly nodeActions: {
153
144
  readonly size: "default" | "sm" | "xs";
154
145
  readonly style?: string | undefined;
@@ -217,6 +208,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
217
208
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
218
209
  }[];
219
210
  };
211
+ readonly nodeTooltip?: readonly [{
212
+ readonly locale: "zh";
213
+ readonly message: string;
214
+ }, ...{
215
+ readonly locale: "en" | "ja" | "ko";
216
+ readonly message: string;
217
+ }[]] | undefined;
218
+ readonly nodeSelectable?: string | undefined;
219
+ readonly expandAll: boolean;
220
220
  }) => any) | undefined;
221
221
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
222
222
  declare const _default: typeof __VLS_export;
@@ -32,15 +32,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly locale: "en" | "ja" | "ko";
33
33
  readonly message: string;
34
34
  }[]];
35
- readonly nodeTooltip?: readonly [{
36
- readonly locale: "zh";
37
- readonly message: string;
38
- }, ...{
39
- readonly locale: "en" | "ja" | "ko";
40
- readonly message: string;
41
- }[]] | undefined;
42
- readonly nodeSelectable?: string | undefined;
43
- readonly expandAll: boolean;
44
35
  readonly nodeActions: {
45
36
  readonly size: "default" | "sm" | "xs";
46
37
  readonly style?: string | undefined;
@@ -109,6 +100,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
109
100
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
110
101
  }[];
111
102
  };
103
+ readonly nodeTooltip?: readonly [{
104
+ readonly locale: "zh";
105
+ readonly message: string;
106
+ }, ...{
107
+ readonly locale: "en" | "ja" | "ko";
108
+ readonly message: string;
109
+ }[]] | undefined;
110
+ readonly nodeSelectable?: string | undefined;
111
+ readonly expandAll: boolean;
112
112
  }) => any;
113
113
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
114
114
  "onUpdate:modelValue"?: ((value: {
@@ -140,15 +140,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
140
140
  readonly locale: "en" | "ja" | "ko";
141
141
  readonly message: string;
142
142
  }[]];
143
- readonly nodeTooltip?: readonly [{
144
- readonly locale: "zh";
145
- readonly message: string;
146
- }, ...{
147
- readonly locale: "en" | "ja" | "ko";
148
- readonly message: string;
149
- }[]] | undefined;
150
- readonly nodeSelectable?: string | undefined;
151
- readonly expandAll: boolean;
152
143
  readonly nodeActions: {
153
144
  readonly size: "default" | "sm" | "xs";
154
145
  readonly style?: string | undefined;
@@ -217,6 +208,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
217
208
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
218
209
  }[];
219
210
  };
211
+ readonly nodeTooltip?: readonly [{
212
+ readonly locale: "zh";
213
+ readonly message: string;
214
+ }, ...{
215
+ readonly locale: "en" | "ja" | "ko";
216
+ readonly message: string;
217
+ }[]] | undefined;
218
+ readonly nodeSelectable?: string | undefined;
219
+ readonly expandAll: boolean;
220
220
  }) => any) | undefined;
221
221
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
222
222
  declare const _default: typeof __VLS_export;
@@ -37,15 +37,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
37
37
  readonly locale: "en" | "ja" | "ko";
38
38
  readonly message: string;
39
39
  }[]];
40
- readonly nodeTooltip?: readonly [{
41
- readonly locale: "zh";
42
- readonly message: string;
43
- }, ...{
44
- readonly locale: "en" | "ja" | "ko";
45
- readonly message: string;
46
- }[]] | undefined;
47
- readonly nodeSelectable?: string | undefined;
48
- readonly expandAll: boolean;
49
40
  readonly nodeActions: {
50
41
  readonly size: "default" | "sm" | "xs";
51
42
  readonly style?: string | undefined;
@@ -114,6 +105,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
114
105
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
115
106
  }[];
116
107
  };
108
+ readonly nodeTooltip?: readonly [{
109
+ readonly locale: "zh";
110
+ readonly message: string;
111
+ }, ...{
112
+ readonly locale: "en" | "ja" | "ko";
113
+ readonly message: string;
114
+ }[]] | undefined;
115
+ readonly nodeSelectable?: string | undefined;
116
+ readonly expandAll: boolean;
117
117
  }) => any;
118
118
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
119
119
  "onUpdate:block"?: ((value: {
@@ -145,15 +145,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
145
145
  readonly locale: "en" | "ja" | "ko";
146
146
  readonly message: string;
147
147
  }[]];
148
- readonly nodeTooltip?: readonly [{
149
- readonly locale: "zh";
150
- readonly message: string;
151
- }, ...{
152
- readonly locale: "en" | "ja" | "ko";
153
- readonly message: string;
154
- }[]] | undefined;
155
- readonly nodeSelectable?: string | undefined;
156
- readonly expandAll: boolean;
157
148
  readonly nodeActions: {
158
149
  readonly size: "default" | "sm" | "xs";
159
150
  readonly style?: string | undefined;
@@ -222,6 +213,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
222
213
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
223
214
  }[];
224
215
  };
216
+ readonly nodeTooltip?: readonly [{
217
+ readonly locale: "zh";
218
+ readonly message: string;
219
+ }, ...{
220
+ readonly locale: "en" | "ja" | "ko";
221
+ readonly message: string;
222
+ }[]] | undefined;
223
+ readonly nodeSelectable?: string | undefined;
224
+ readonly expandAll: boolean;
225
225
  }) => any) | undefined;
226
226
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
227
227
  declare const _default: typeof __VLS_export;
@@ -37,15 +37,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
37
37
  readonly locale: "en" | "ja" | "ko";
38
38
  readonly message: string;
39
39
  }[]];
40
- readonly nodeTooltip?: readonly [{
41
- readonly locale: "zh";
42
- readonly message: string;
43
- }, ...{
44
- readonly locale: "en" | "ja" | "ko";
45
- readonly message: string;
46
- }[]] | undefined;
47
- readonly nodeSelectable?: string | undefined;
48
- readonly expandAll: boolean;
49
40
  readonly nodeActions: {
50
41
  readonly size: "default" | "sm" | "xs";
51
42
  readonly style?: string | undefined;
@@ -114,6 +105,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
114
105
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
115
106
  }[];
116
107
  };
108
+ readonly nodeTooltip?: readonly [{
109
+ readonly locale: "zh";
110
+ readonly message: string;
111
+ }, ...{
112
+ readonly locale: "en" | "ja" | "ko";
113
+ readonly message: string;
114
+ }[]] | undefined;
115
+ readonly nodeSelectable?: string | undefined;
116
+ readonly expandAll: boolean;
117
117
  }) => any;
118
118
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
119
119
  "onUpdate:block"?: ((value: {
@@ -145,15 +145,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
145
145
  readonly locale: "en" | "ja" | "ko";
146
146
  readonly message: string;
147
147
  }[]];
148
- readonly nodeTooltip?: readonly [{
149
- readonly locale: "zh";
150
- readonly message: string;
151
- }, ...{
152
- readonly locale: "en" | "ja" | "ko";
153
- readonly message: string;
154
- }[]] | undefined;
155
- readonly nodeSelectable?: string | undefined;
156
- readonly expandAll: boolean;
157
148
  readonly nodeActions: {
158
149
  readonly size: "default" | "sm" | "xs";
159
150
  readonly style?: string | undefined;
@@ -222,6 +213,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
222
213
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
223
214
  }[];
224
215
  };
216
+ readonly nodeTooltip?: readonly [{
217
+ readonly locale: "zh";
218
+ readonly message: string;
219
+ }, ...{
220
+ readonly locale: "en" | "ja" | "ko";
221
+ readonly message: string;
222
+ }[]] | undefined;
223
+ readonly nodeSelectable?: string | undefined;
224
+ readonly expandAll: boolean;
225
225
  }) => any) | undefined;
226
226
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
227
227
  declare const _default: typeof __VLS_export;
@@ -3,9 +3,15 @@ import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
3
3
  type AnySchema = Schema.Schema<any, any, never>;
4
4
  export declare const type: "com.shwfed.block.tree.single";
5
5
  export declare const compatibilityDate: "2026-06-17";
6
+ export declare const edges: readonly [{
7
+ readonly key: "nodeActions";
8
+ readonly host: "actions";
9
+ readonly label: "节点操作";
10
+ }];
6
11
  export declare const metadata: {
7
12
  readonly name: "树(单选)";
8
13
  readonly icon: "fluent:tree-evergreen-20-regular";
14
+ readonly description: "基于树形数据的单选导航块";
9
15
  readonly selection: true;
10
16
  readonly w: {
11
17
  readonly initial: 12;
@@ -6,9 +6,13 @@ import { DataSource } from "../../../../table/schema.js";
6
6
  import { Locale } from "../../../../../share/locale.js";
7
7
  export const type = "com.shwfed.block.tree.single";
8
8
  export const compatibilityDate = "2026-06-17";
9
+ export const edges = [
10
+ { key: "nodeActions", host: "actions", label: "\u8282\u70B9\u64CD\u4F5C" }
11
+ ];
9
12
  export const metadata = {
10
13
  name: "\u6811\uFF08\u5355\u9009\uFF09",
11
14
  icon: "fluent:tree-evergreen-20-regular",
15
+ description: "\u57FA\u4E8E\u6811\u5F62\u6570\u636E\u7684\u5355\u9009\u5BFC\u822A\u5757",
12
16
  // Publishes the picked node to the page `selections` registry under this
13
17
  // block's id (see `runtime.vue`'s `publishSelection`), so a sibling block
14
18
  // can read `selections["<block-id>"]`. The flag lists it in the page-level
@@ -5,9 +5,16 @@ type AnySchema = Schema.Schema<any, any, never>;
5
5
  type Configure = (env: Environment) => void;
6
6
  export declare const type: "com.shwfed.block.loop";
7
7
  export declare const compatibilityDate: "2026-06-25";
8
+ export declare const edges: readonly [{
9
+ readonly key: "slot";
10
+ readonly host: "slot";
11
+ readonly label: "循环内容";
12
+ readonly celScope: "loop-item";
13
+ }];
8
14
  export declare const metadata: {
9
15
  readonly name: "循环";
10
16
  readonly icon: "fluent:arrow-repeat-all-20-regular";
17
+ readonly description: "对一个 CEL 列表逐项渲染同一套内部布局,每项可访问 `item` / `index`;支持任意层级嵌套";
11
18
  readonly w: {
12
19
  readonly initial: 12;
13
20
  readonly min: 4;
@@ -5,9 +5,13 @@ import { registerLoopVariablesIfAbsent } from "../../../../../share/loop-item-va
5
5
  export { getStructFieldDescription, getStructFieldTitle } from "../../../../table/utils/schema-meta.js";
6
6
  export const type = "com.shwfed.block.loop";
7
7
  export const compatibilityDate = "2026-06-25";
8
+ export const edges = [
9
+ { key: "slot", host: "slot", label: "\u5FAA\u73AF\u5185\u5BB9", celScope: "loop-item" }
10
+ ];
8
11
  export const metadata = {
9
12
  name: "\u5FAA\u73AF",
10
13
  icon: "fluent:arrow-repeat-all-20-regular",
14
+ description: "\u5BF9\u4E00\u4E2A CEL \u5217\u8868\u9010\u9879\u6E32\u67D3\u540C\u4E00\u5957\u5185\u90E8\u5E03\u5C40\uFF0C\u6BCF\u9879\u53EF\u8BBF\u95EE `item` / `index`\uFF1B\u652F\u6301\u4EFB\u610F\u5C42\u7EA7\u5D4C\u5957",
11
15
  w: { initial: 12, min: 4, max: Infinity },
12
16
  // `grow: true`: the loop's height is content-driven (N rendered items), so its
13
17
  // row escapes the grid's `1fr` equal-share (bare `auto`) and the loop grows
@@ -16,11 +16,15 @@ import { provideSelectionRoster } from "../../utils/cel-context";
16
16
  import { BREADCRUMB_EXTENSION_KEY } from "./breadcrumb-extension";
17
17
  import { PAGE_TARGET_ID, PageConfig, getStructFieldDescription, getStructFieldTitle, metadata as pageMetadata } from "./schema";
18
18
  import { useSlotClipboard } from "./use-editor";
19
+ import ConfigAiGenerate from "./ai-generate.vue";
19
20
  defineOptions({ name: "ShwfedConfigConfig" });
20
21
  const props = defineProps({
21
22
  state: { type: Object, required: true }
22
23
  });
23
- const viewMode = ref("content");
24
+ const viewMode = ref("ai");
25
+ function selectAi() {
26
+ viewMode.value = "ai";
27
+ }
24
28
  function selectGeneral() {
25
29
  viewMode.value = "general";
26
30
  }
@@ -162,6 +166,18 @@ function findBlockMeta(type, compatibilityDate) {
162
166
  class="flex gap-2 min-h-128"
163
167
  >
164
168
  <div class="flex w-64 shrink-0 flex-col">
169
+ <div
170
+ class="row pl-2"
171
+ :class="viewMode === 'ai' ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-700 hover:bg-zinc-50'"
172
+ @click="selectAi()"
173
+ >
174
+ <Icon
175
+ icon="fluent:sparkle-20-regular"
176
+ class="size-4 shrink-0"
177
+ />
178
+ <span class="flex-1 truncate">AI 生成</span>
179
+ </div>
180
+
165
181
  <div
166
182
  class="row pl-2"
167
183
  :class="viewMode === 'general' ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-700 hover:bg-zinc-50'"
@@ -181,7 +197,7 @@ function findBlockMeta(type, compatibilityDate) {
181
197
  ref="sidebarRef"
182
198
  v-model="layouts"
183
199
  v-model:active-index="activeLayoutIndex"
184
- :active="viewMode !== 'general'"
200
+ :active="viewMode === 'content'"
185
201
  @select="selectLayout"
186
202
  />
187
203
  </ScrollArea>
@@ -199,8 +215,13 @@ function findBlockMeta(type, compatibilityDate) {
199
215
  </div>
200
216
 
201
217
  <div class="flex flex-1 flex-col gap-2">
218
+ <!-- Top-level AI agent — the default landing view. -->
219
+ <template v-if="viewMode === 'ai'">
220
+ <ConfigAiGenerate :state="props.state" />
221
+ </template>
222
+
202
223
  <!-- Page-level general settings. -->
203
- <template v-if="viewMode === 'general'">
224
+ <template v-else-if="viewMode === 'general'">
204
225
  <Field orientation="vertical">
205
226
  <FieldLabel class="text-xs text-zinc-500">
206
227
  <template
@@ -119,6 +119,7 @@ export interface ConfigEditorState {
119
119
  getBlockLabel: (b: BlockValue) => string;
120
120
  findBlockMeta: (type: string, compatibilityDate: string) => BlockEntry | undefined;
121
121
  onDrillDown: (blockId: string) => void;
122
+ replaceDraft: (next: PageConfigValue) => void;
122
123
  confirm: () => Promise<boolean>;
123
124
  dismiss: () => void;
124
125
  reset: () => void;
@@ -380,6 +380,23 @@ export function useConfigEditor(model, options = {}) {
380
380
  function onDrillDown(blockId) {
381
381
  pushBlock(blockId);
382
382
  }
383
+ function replaceDraft(next) {
384
+ draft.value = next;
385
+ const ids = new Set(topSlotEditor.blocks.value.map((b) => b.id));
386
+ let cut = stack.value.length;
387
+ for (let i = 0; i < stack.value.length; i++) {
388
+ const e = stack.value[i];
389
+ if (e.kind === "block" && !ids.has(e.blockId)) {
390
+ cut = i;
391
+ break;
392
+ }
393
+ }
394
+ if (cut !== stack.value.length) stack.value = stack.value.slice(0, cut);
395
+ const sel = topSlotEditor.selectedBlockIds.value;
396
+ if (sel.some((id) => !ids.has(id))) {
397
+ topSlotEditor.selectedBlockIds.value = sel.filter((id) => ids.has(id));
398
+ }
399
+ }
383
400
  const validationError = ref(null);
384
401
  const saveError = ref(null);
385
402
  const saving = ref(false);
@@ -509,6 +526,7 @@ export function useConfigEditor(model, options = {}) {
509
526
  getBlockLabel: topSlotEditor.getBlockLabel,
510
527
  findBlockMeta: topSlotEditor.findBlockMeta,
511
528
  onDrillDown,
529
+ replaceDraft,
512
530
  confirm,
513
531
  dismiss,
514
532
  reset
@@ -0,0 +1,21 @@
1
+ import type { Environment } from '../../../vendor/cel-js/lib/index.js';
2
+ import type { AgenticTool } from '../../../utils/ai/index.js';
3
+ type AnyRecord = Record<string, any>;
4
+ export interface ConfigAiCursorDeps {
5
+ readonly read: () => AnyRecord;
6
+ readonly write: (next: AnyRecord) => void;
7
+ readonly configure: (env: Environment) => void;
8
+ readonly genUuid: () => string;
9
+ readonly manualsDelivered?: {
10
+ readonly has: (kind: string) => boolean;
11
+ readonly add: (kind: string) => void;
12
+ };
13
+ }
14
+ export declare function createPageSlotTools(deps: ConfigAiCursorDeps): AgenticTool[];
15
+ export interface ConfigAiCursor {
16
+ tools: () => AgenticTool[];
17
+ reset: () => void;
18
+ scope: () => string;
19
+ }
20
+ export declare function createConfigAiCursor(deps: ConfigAiCursorDeps): ConfigAiCursor;
21
+ export {};