@monkey-mini-app/dsh-mini-app 0.1.1 → 0.1.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 (312) hide show
  1. package/README.md +29 -27
  2. package/lib/client.js +2024 -783
  3. package/lib/index.d.ts +2 -0
  4. package/lib/index.js +20 -7
  5. package/package.json +10 -9
  6. package/skills/monkey-mini-app/SKILL.md +181 -114
  7. package/skills/monkey-mini-app/references/catalog.md +236 -99
  8. package/skills/monkey-mini-app/references/contracts/accordion.md +30 -0
  9. package/skills/monkey-mini-app/references/contracts/activity-feed.md +12 -2
  10. package/skills/monkey-mini-app/references/contracts/alert-dialog.md +38 -0
  11. package/skills/monkey-mini-app/references/contracts/alert.md +38 -0
  12. package/skills/monkey-mini-app/references/contracts/app-shell.md +2 -2
  13. package/skills/monkey-mini-app/references/contracts/aspect-ratio.md +25 -0
  14. package/skills/monkey-mini-app/references/contracts/attachment-gallery.md +12 -2
  15. package/skills/monkey-mini-app/references/contracts/attachment.md +35 -0
  16. package/skills/monkey-mini-app/references/contracts/autocomplete.md +12 -2
  17. package/skills/monkey-mini-app/references/contracts/avatar.md +24 -0
  18. package/skills/monkey-mini-app/references/contracts/badge.md +26 -0
  19. package/skills/monkey-mini-app/references/contracts/breadcrumb.md +33 -0
  20. package/skills/monkey-mini-app/references/contracts/bubble.md +30 -0
  21. package/skills/monkey-mini-app/references/contracts/button-group.md +36 -0
  22. package/skills/monkey-mini-app/references/contracts/button.md +26 -0
  23. package/skills/monkey-mini-app/references/contracts/calendar.md +20 -0
  24. package/skills/monkey-mini-app/references/contracts/card.md +41 -0
  25. package/skills/monkey-mini-app/references/contracts/cascader.md +12 -2
  26. package/skills/monkey-mini-app/references/contracts/chart.md +32 -0
  27. package/skills/monkey-mini-app/references/contracts/checkbox.md +19 -0
  28. package/skills/monkey-mini-app/references/contracts/code-block.md +20 -2
  29. package/skills/monkey-mini-app/references/contracts/code-editor.md +30 -4
  30. package/skills/monkey-mini-app/references/contracts/collapsible.md +21 -0
  31. package/skills/monkey-mini-app/references/contracts/color-picker.md +12 -2
  32. package/skills/monkey-mini-app/references/contracts/combobox.md +34 -0
  33. package/skills/monkey-mini-app/references/contracts/command.md +41 -0
  34. package/skills/monkey-mini-app/references/contracts/comment-thread.md +12 -2
  35. package/skills/monkey-mini-app/references/contracts/commit-graph.md +50 -0
  36. package/skills/monkey-mini-app/references/contracts/confirm-dialog.md +20 -2
  37. package/skills/monkey-mini-app/references/contracts/context-menu.md +41 -0
  38. package/skills/monkey-mini-app/references/contracts/copyable.md +12 -2
  39. package/skills/monkey-mini-app/references/contracts/currency-input.md +12 -2
  40. package/skills/monkey-mini-app/references/contracts/dashboard-shell.md +41 -0
  41. package/skills/monkey-mini-app/references/contracts/data-grid.md +13 -6
  42. package/skills/monkey-mini-app/references/contracts/date-picker.md +20 -2
  43. package/skills/monkey-mini-app/references/contracts/date-range-picker.md +10 -2
  44. package/skills/monkey-mini-app/references/contracts/date-time-picker.md +20 -2
  45. package/skills/monkey-mini-app/references/contracts/date-time-range-picker.md +20 -2
  46. package/skills/monkey-mini-app/references/contracts/description-list.md +12 -2
  47. package/skills/monkey-mini-app/references/contracts/detail-panel.md +10 -2
  48. package/skills/monkey-mini-app/references/contracts/dialog.md +44 -0
  49. package/skills/monkey-mini-app/references/contracts/diff-viewer.md +21 -2
  50. package/skills/monkey-mini-app/references/contracts/donut-chart.md +12 -2
  51. package/skills/monkey-mini-app/references/contracts/drawer.md +29 -0
  52. package/skills/monkey-mini-app/references/contracts/dropdown-menu.md +49 -0
  53. package/skills/monkey-mini-app/references/contracts/duration-input.md +20 -2
  54. package/skills/monkey-mini-app/references/contracts/empty.md +40 -0
  55. package/skills/monkey-mini-app/references/contracts/env-badge.md +12 -2
  56. package/skills/monkey-mini-app/references/contracts/env-table.md +46 -0
  57. package/skills/monkey-mini-app/references/contracts/event-calendar.md +28 -20
  58. package/skills/monkey-mini-app/references/contracts/field.md +34 -0
  59. package/skills/monkey-mini-app/references/contracts/file-dropzone.md +20 -2
  60. package/skills/monkey-mini-app/references/contracts/file-tree.md +12 -2
  61. package/skills/monkey-mini-app/references/contracts/filter-bar.md +2 -2
  62. package/skills/monkey-mini-app/references/contracts/form-sheet.md +51 -0
  63. package/skills/monkey-mini-app/references/contracts/gantt.md +20 -2
  64. package/skills/monkey-mini-app/references/contracts/gauge.md +12 -2
  65. package/skills/monkey-mini-app/references/contracts/hover-card.md +21 -0
  66. package/skills/monkey-mini-app/references/contracts/input-group.md +24 -0
  67. package/skills/monkey-mini-app/references/contracts/input.md +33 -0
  68. package/skills/monkey-mini-app/references/contracts/item.md +36 -0
  69. package/skills/monkey-mini-app/references/contracts/jira-wiki.md +3 -4
  70. package/skills/monkey-mini-app/references/contracts/jql-input.md +15 -8
  71. package/skills/monkey-mini-app/references/contracts/json-viewer.md +20 -2
  72. package/skills/monkey-mini-app/references/contracts/kanban-issue-panel.md +12 -2
  73. package/skills/monkey-mini-app/references/contracts/kanban.md +10 -2
  74. package/skills/monkey-mini-app/references/contracts/kbd.md +20 -0
  75. package/skills/monkey-mini-app/references/contracts/label.md +33 -0
  76. package/skills/monkey-mini-app/references/contracts/list-detail.md +46 -0
  77. package/skills/monkey-mini-app/references/contracts/log-viewer.md +45 -4
  78. package/skills/monkey-mini-app/references/contracts/markdown-editor.md +20 -2
  79. package/skills/monkey-mini-app/references/contracts/markdown.md +12 -2
  80. package/skills/monkey-mini-app/references/contracts/marker.md +30 -0
  81. package/skills/monkey-mini-app/references/contracts/menubar.md +34 -0
  82. package/skills/monkey-mini-app/references/contracts/message-scroller.md +24 -0
  83. package/skills/monkey-mini-app/references/contracts/message.md +24 -0
  84. package/skills/monkey-mini-app/references/contracts/mini-calendar.md +20 -2
  85. package/skills/monkey-mini-app/references/contracts/native-select.md +21 -0
  86. package/skills/monkey-mini-app/references/contracts/navigation-menu.md +27 -0
  87. package/skills/monkey-mini-app/references/contracts/notification-center.md +12 -2
  88. package/skills/monkey-mini-app/references/contracts/number-field.md +20 -2
  89. package/skills/monkey-mini-app/references/contracts/page-header.md +2 -2
  90. package/skills/monkey-mini-app/references/contracts/pagination.md +33 -0
  91. package/skills/monkey-mini-app/references/contracts/password-field.md +12 -2
  92. package/skills/monkey-mini-app/references/contracts/phone-input.md +12 -2
  93. package/skills/monkey-mini-app/references/contracts/popover.md +32 -0
  94. package/skills/monkey-mini-app/references/contracts/progress-ring.md +12 -2
  95. package/skills/monkey-mini-app/references/contracts/progress.md +39 -0
  96. package/skills/monkey-mini-app/references/contracts/questionnaire.md +33 -0
  97. package/skills/monkey-mini-app/references/contracts/radar-chart.md +12 -2
  98. package/skills/monkey-mini-app/references/contracts/radio-group.md +20 -0
  99. package/skills/monkey-mini-app/references/contracts/rating.md +12 -2
  100. package/skills/monkey-mini-app/references/contracts/relative-date-picker.md +20 -2
  101. package/skills/monkey-mini-app/references/contracts/request-inspector.md +12 -2
  102. package/skills/monkey-mini-app/references/contracts/resizable.md +29 -0
  103. package/skills/monkey-mini-app/references/contracts/reveal.md +31 -0
  104. package/skills/monkey-mini-app/references/contracts/rich-text-editor.md +14 -2
  105. package/skills/monkey-mini-app/references/contracts/run-timeline.md +20 -2
  106. package/skills/monkey-mini-app/references/contracts/scroll-area.md +20 -0
  107. package/skills/monkey-mini-app/references/contracts/scrollspy.md +20 -2
  108. package/skills/monkey-mini-app/references/contracts/search-input.md +12 -2
  109. package/skills/monkey-mini-app/references/contracts/select.md +36 -0
  110. package/skills/monkey-mini-app/references/contracts/separator.md +27 -0
  111. package/skills/monkey-mini-app/references/contracts/settings-split.md +53 -0
  112. package/skills/monkey-mini-app/references/contracts/severity-chip.md +12 -2
  113. package/skills/monkey-mini-app/references/contracts/sheet.md +34 -0
  114. package/skills/monkey-mini-app/references/contracts/sidebar.md +42 -0
  115. package/skills/monkey-mini-app/references/contracts/skeleton.md +33 -0
  116. package/skills/monkey-mini-app/references/contracts/slider-range.md +12 -2
  117. package/skills/monkey-mini-app/references/contracts/slider.md +25 -0
  118. package/skills/monkey-mini-app/references/contracts/sortable-list.md +20 -2
  119. package/skills/monkey-mini-app/references/contracts/sparkline.md +12 -2
  120. package/skills/monkey-mini-app/references/contracts/spinner.md +31 -0
  121. package/skills/monkey-mini-app/references/contracts/stacked-bar-chart.md +16 -2
  122. package/skills/monkey-mini-app/references/contracts/stat-card.md +2 -2
  123. package/skills/monkey-mini-app/references/contracts/status-badge.md +2 -2
  124. package/skills/monkey-mini-app/references/contracts/stepper-item.md +39 -0
  125. package/skills/monkey-mini-app/references/contracts/stepper.md +38 -11
  126. package/skills/monkey-mini-app/references/contracts/switch.md +25 -0
  127. package/skills/monkey-mini-app/references/contracts/table-page.md +41 -0
  128. package/skills/monkey-mini-app/references/contracts/table.md +42 -0
  129. package/skills/monkey-mini-app/references/contracts/tabs.md +31 -0
  130. package/skills/monkey-mini-app/references/contracts/tag-input.md +12 -2
  131. package/skills/monkey-mini-app/references/contracts/terminal.md +13 -2
  132. package/skills/monkey-mini-app/references/contracts/test-step-list.md +12 -2
  133. package/skills/monkey-mini-app/references/contracts/textarea.md +25 -0
  134. package/skills/monkey-mini-app/references/contracts/time-picker.md +18 -2
  135. package/skills/monkey-mini-app/references/contracts/time-range-picker.md +20 -2
  136. package/skills/monkey-mini-app/references/contracts/time-wheel.md +6 -2
  137. package/skills/monkey-mini-app/references/contracts/timeline.md +20 -2
  138. package/skills/monkey-mini-app/references/contracts/timezone-select.md +20 -2
  139. package/skills/monkey-mini-app/references/contracts/toast.md +39 -0
  140. package/skills/monkey-mini-app/references/contracts/toggle-group.md +28 -0
  141. package/skills/monkey-mini-app/references/contracts/toggle.md +26 -0
  142. package/skills/monkey-mini-app/references/contracts/tooltip.md +30 -0
  143. package/skills/monkey-mini-app/references/contracts/transfer.md +12 -2
  144. package/skills/monkey-mini-app/references/contracts/tree-view.md +20 -2
  145. package/skills/monkey-mini-app/references/contracts/trend-card.md +12 -2
  146. package/skills/monkey-mini-app/references/contracts/user-picker.md +12 -2
  147. package/skills/monkey-mini-app/references/contracts/wizard-shell.md +56 -0
  148. package/skills/monkey-mini-app/references/ctx.md +123 -53
  149. package/skills/monkey-mini-app/references/eval.md +115 -0
  150. package/skills/monkey-mini-app/references/examples/alert/alert-01.tsx +17 -0
  151. package/skills/monkey-mini-app/references/examples/aspect-ratio/aspect-ratio-01.tsx +16 -0
  152. package/skills/monkey-mini-app/references/examples/attachment/attachment-01.tsx +19 -0
  153. package/skills/monkey-mini-app/references/examples/breadcrumb/breadcrumb-01.tsx +31 -0
  154. package/skills/monkey-mini-app/references/examples/bubble/bubble-01.tsx +16 -0
  155. package/skills/monkey-mini-app/references/examples/button-group/button-group-01.tsx +23 -0
  156. package/skills/monkey-mini-app/references/examples/card/card-01.tsx +19 -0
  157. package/skills/monkey-mini-app/references/examples/charts-blocks.md +15 -0
  158. package/skills/monkey-mini-app/references/examples/code-block/code-block-01.tsx +14 -0
  159. package/skills/monkey-mini-app/references/examples/code-editor/code-editor-01.tsx +15 -0
  160. package/skills/monkey-mini-app/references/examples/command/command-01.tsx +30 -0
  161. package/skills/monkey-mini-app/references/examples/confirm-dialog/confirm-dialog-01.tsx +33 -0
  162. package/skills/monkey-mini-app/references/examples/context-menu/context-menu-01.tsx +29 -0
  163. package/skills/monkey-mini-app/references/examples/dashboard-shell/dashboard-shell-01.tsx +78 -0
  164. package/skills/monkey-mini-app/references/examples/data-grid/data-grid-01.tsx +34 -0
  165. package/skills/monkey-mini-app/references/examples/data-grid/data-grid-02.tsx +88 -0
  166. package/skills/monkey-mini-app/references/examples/date-picker/date-picker-01.tsx +14 -0
  167. package/skills/monkey-mini-app/references/examples/date-range-picker/date-range-picker-01.tsx +14 -0
  168. package/skills/monkey-mini-app/references/examples/date-time-picker/date-time-picker-01.tsx +16 -0
  169. package/skills/monkey-mini-app/references/examples/date-time-range-picker/date-time-range-picker-01.tsx +15 -0
  170. package/skills/monkey-mini-app/references/examples/detail-panel/detail-panel-01.tsx +21 -0
  171. package/skills/monkey-mini-app/references/examples/dialog/dialog-01.tsx +30 -0
  172. package/skills/monkey-mini-app/references/examples/diff-viewer/diff-viewer-01.tsx +10 -0
  173. package/skills/monkey-mini-app/references/examples/dropdown-menu/dropdown-menu-01.tsx +31 -0
  174. package/skills/monkey-mini-app/references/examples/duration-input/duration-input-01.tsx +20 -0
  175. package/skills/monkey-mini-app/references/examples/editors.md +11 -0
  176. package/skills/monkey-mini-app/references/examples/empty/empty-01.tsx +19 -0
  177. package/skills/monkey-mini-app/references/examples/event-calendar/event-calendar-01.tsx +53 -0
  178. package/skills/monkey-mini-app/references/examples/file-dropzone/file-dropzone-01.tsx +14 -0
  179. package/skills/monkey-mini-app/references/examples/form-sheet/form-sheet-01.tsx +85 -0
  180. package/skills/monkey-mini-app/references/examples/forms.md +16 -0
  181. package/skills/monkey-mini-app/references/examples/gantt/gantt-01.tsx +29 -0
  182. package/skills/monkey-mini-app/references/examples/input/input-01.tsx +10 -0
  183. package/skills/monkey-mini-app/references/examples/item/item-01.tsx +19 -0
  184. package/skills/monkey-mini-app/references/examples/jql-input/jql-input-01.tsx +33 -0
  185. package/skills/monkey-mini-app/references/examples/json-viewer/json-viewer-01.tsx +10 -0
  186. package/skills/monkey-mini-app/references/examples/kanban/kanban-01.tsx +60 -0
  187. package/skills/monkey-mini-app/references/examples/label/label-01.tsx +10 -0
  188. package/skills/monkey-mini-app/references/examples/list-detail/list-detail-01.tsx +117 -0
  189. package/skills/monkey-mini-app/references/examples/log-viewer/log-viewer-01.tsx +20 -0
  190. package/skills/monkey-mini-app/references/examples/markdown-editor/markdown-editor-01.tsx +18 -0
  191. package/skills/monkey-mini-app/references/examples/marker/marker-01.tsx +16 -0
  192. package/skills/monkey-mini-app/references/examples/mini-calendar/mini-calendar-01.tsx +14 -0
  193. package/skills/monkey-mini-app/references/examples/misc-charts-blocks/misc-charts-blocks-01.tsx +20 -0
  194. package/skills/monkey-mini-app/references/examples/misc-charts-blocks/misc-charts-blocks-02.tsx +32 -0
  195. package/skills/monkey-mini-app/references/examples/misc-charts-blocks/misc-charts-blocks-03.tsx +47 -0
  196. package/skills/monkey-mini-app/references/examples/misc-charts-blocks/misc-charts-blocks-04.tsx +20 -0
  197. package/skills/monkey-mini-app/references/examples/misc-charts-blocks/misc-charts-blocks-05.tsx +24 -0
  198. package/skills/monkey-mini-app/references/examples/misc-charts-blocks/misc-charts-blocks-06.tsx +89 -0
  199. package/skills/monkey-mini-app/references/examples/misc-editors/misc-editors-01.tsx +114 -0
  200. package/skills/monkey-mini-app/references/examples/misc-editors/misc-editors-02.tsx +33 -0
  201. package/skills/monkey-mini-app/references/examples/misc-forms/misc-forms-01.tsx +22 -0
  202. package/skills/monkey-mini-app/references/examples/misc-forms/misc-forms-02.tsx +37 -0
  203. package/skills/monkey-mini-app/references/examples/misc-forms/misc-forms-03.tsx +42 -0
  204. package/skills/monkey-mini-app/references/examples/misc-forms/misc-forms-04.tsx +25 -0
  205. package/skills/monkey-mini-app/references/examples/misc-forms/misc-forms-05.tsx +27 -0
  206. package/skills/monkey-mini-app/references/examples/misc-forms/misc-forms-06.tsx +33 -0
  207. package/skills/monkey-mini-app/references/examples/misc-forms/misc-forms-07.tsx +44 -0
  208. package/skills/monkey-mini-app/references/examples/misc-overlays/misc-overlays-01.tsx +43 -0
  209. package/skills/monkey-mini-app/references/examples/misc-overlays/misc-overlays-02.tsx +38 -0
  210. package/skills/monkey-mini-app/references/examples/misc-primitives/misc-primitives-01.tsx +21 -0
  211. package/skills/monkey-mini-app/references/examples/misc-primitives/misc-primitives-02.tsx +52 -0
  212. package/skills/monkey-mini-app/references/examples/misc-primitives/misc-primitives-03.tsx +44 -0
  213. package/skills/monkey-mini-app/references/examples/number-field/number-field-01.tsx +22 -0
  214. package/skills/monkey-mini-app/references/examples/overlays.md +11 -0
  215. package/skills/monkey-mini-app/references/examples/pagination/pagination-01.tsx +51 -0
  216. package/skills/monkey-mini-app/references/examples/primitives.md +12 -0
  217. package/skills/monkey-mini-app/references/examples/progress/progress-01.tsx +10 -0
  218. package/skills/monkey-mini-app/references/examples/relative-date-picker/relative-date-picker-01.tsx +19 -0
  219. package/skills/monkey-mini-app/references/examples/rich-text-editor/rich-text-editor-01.tsx +15 -0
  220. package/skills/monkey-mini-app/references/examples/run-timeline/run-timeline-01.tsx +17 -0
  221. package/skills/monkey-mini-app/references/examples/scrollspy/scrollspy-01.tsx +29 -0
  222. package/skills/monkey-mini-app/references/examples/separator/separator-01.tsx +10 -0
  223. package/skills/monkey-mini-app/references/examples/settings-split/settings-split-01.tsx +84 -0
  224. package/skills/monkey-mini-app/references/examples/shared/jira-wiki-sample.ts +38 -0
  225. package/skills/monkey-mini-app/references/examples/skeleton/skeleton-01.tsx +10 -0
  226. package/skills/monkey-mini-app/references/examples/slider/slider-01.tsx +22 -0
  227. package/skills/monkey-mini-app/references/examples/sortable-list/sortable-list-01.tsx +18 -0
  228. package/skills/monkey-mini-app/references/examples/spinner/spinner-01.tsx +10 -0
  229. package/skills/monkey-mini-app/references/examples/stepper/stepper-01.tsx +41 -0
  230. package/skills/monkey-mini-app/references/examples/table/table-01.tsx +25 -0
  231. package/skills/monkey-mini-app/references/examples/table-page/table-page-01.tsx +103 -0
  232. package/skills/monkey-mini-app/references/examples/time-picker/time-picker-01.tsx +19 -0
  233. package/skills/monkey-mini-app/references/examples/time-range-picker/time-range-picker-01.tsx +14 -0
  234. package/skills/monkey-mini-app/references/examples/timeline/timeline-01.tsx +18 -0
  235. package/skills/monkey-mini-app/references/examples/timezone-select/timezone-select-01.tsx +15 -0
  236. package/skills/monkey-mini-app/references/examples/toggle/toggle-01.tsx +20 -0
  237. package/skills/monkey-mini-app/references/examples/toggle-group/toggle-group-01.tsx +22 -0
  238. package/skills/monkey-mini-app/references/examples/tree-view/tree-view-01.tsx +25 -0
  239. package/skills/monkey-mini-app/references/examples/wizard-shell/wizard-shell-01.tsx +58 -0
  240. package/skills/monkey-mini-app/references/history.md +23 -7
  241. package/skills/monkey-mini-app/references/icons.md +99 -69
  242. package/skills/monkey-mini-app/references/llm-json.md +39 -26
  243. package/skills/monkey-mini-app/references/loader.md +47 -20
  244. package/skills/monkey-mini-app/references/looks/aurora-bento.md +88 -0
  245. package/skills/monkey-mini-app/references/looks/desk-split.md +89 -0
  246. package/skills/monkey-mini-app/references/looks/editorial.md +78 -0
  247. package/skills/monkey-mini-app/references/looks/glass-island.md +90 -0
  248. package/skills/monkey-mini-app/references/looks/index.md +18 -0
  249. package/skills/monkey-mini-app/references/looks/signage.md +74 -0
  250. package/skills/monkey-mini-app/references/looks/tape.md +22 -0
  251. package/skills/monkey-mini-app/references/looks/terminal.md +88 -0
  252. package/skills/monkey-mini-app/references/looks/void.md +22 -0
  253. package/skills/monkey-mini-app/references/styling.md +189 -0
  254. package/skills/monkey-mini-app/references/test.md +12 -12
  255. package/skills/monkey-mini-app/references/theme.md +197 -0
  256. package/skills/monkey-mini-app/references/tools.md +12 -12
  257. package/skills/monkey-mini-app/references/troubleshoot.md +165 -12
  258. package/skills/monkey-mini-app/templates/README.md +33 -21
  259. package/skills/monkey-mini-app/templates/{jira → board}/main.api.ts +11 -11
  260. package/skills/monkey-mini-app/templates/board/manifest.json +8 -0
  261. package/skills/monkey-mini-app/templates/board/theme.css +46 -0
  262. package/skills/monkey-mini-app/templates/board/ui.tsx +546 -0
  263. package/skills/monkey-mini-app/templates/chores/main.api.ts +35 -0
  264. package/skills/monkey-mini-app/templates/chores/manifest.json +8 -0
  265. package/skills/monkey-mini-app/templates/chores/theme.css +46 -0
  266. package/skills/monkey-mini-app/templates/chores/ui.tsx +117 -0
  267. package/skills/monkey-mini-app/templates/minimal/main.api.ts +5 -5
  268. package/skills/monkey-mini-app/templates/minimal/manifest.json +1 -2
  269. package/skills/monkey-mini-app/templates/minimal/ui.tsx +17 -8
  270. package/skills/monkey-mini-app/templates/radar/api/scan.ts +79 -0
  271. package/skills/monkey-mini-app/templates/radar/main.api.ts +29 -0
  272. package/skills/monkey-mini-app/templates/radar/manifest.json +8 -0
  273. package/skills/monkey-mini-app/templates/radar/shared/events.ts +25 -0
  274. package/skills/monkey-mini-app/templates/{insights/lib → radar/shared}/sample.ts +1 -1
  275. package/skills/monkey-mini-app/templates/radar/theme.css +47 -0
  276. package/skills/monkey-mini-app/templates/radar/ui/brief.tsx +31 -0
  277. package/skills/monkey-mini-app/templates/radar/ui.tsx +131 -0
  278. package/skills/monkey-mini-app/templates/runner/main.api.ts +91 -0
  279. package/skills/monkey-mini-app/templates/runner/manifest.json +8 -0
  280. package/skills/monkey-mini-app/templates/runner/shared/events.ts +14 -0
  281. package/skills/monkey-mini-app/templates/runner/theme.css +46 -0
  282. package/skills/monkey-mini-app/templates/runner/ui.tsx +213 -0
  283. package/skills/monkey-mini-app/templates/sheets/main.api.ts +276 -0
  284. package/skills/monkey-mini-app/templates/sheets/manifest.json +8 -0
  285. package/skills/monkey-mini-app/templates/sheets/theme.css +46 -0
  286. package/skills/monkey-mini-app/templates/sheets/ui.tsx +419 -0
  287. package/skills/monkey-mini-app/templates/{todo → today}/main.api.ts +8 -8
  288. package/skills/monkey-mini-app/templates/today/manifest.json +8 -0
  289. package/skills/monkey-mini-app/templates/today/theme.css +45 -0
  290. package/skills/monkey-mini-app/templates/today/ui/item-row.tsx +25 -0
  291. package/skills/monkey-mini-app/templates/today/ui.tsx +406 -0
  292. package/skills/monkey-mini-app/templates/{monitor → watch}/main.api.ts +8 -8
  293. package/skills/monkey-mini-app/templates/watch/manifest.json +8 -0
  294. package/skills/monkey-mini-app/templates/watch/ui.tsx +187 -0
  295. package/skills/monkey-mini-app/tsconfig.json +31 -0
  296. package/skills/monkey-mini-app/types/cdn.d.ts +1 -0
  297. package/tsup.config.ts +1 -0
  298. package/skills/monkey-mini-app/templates/agentrun/main.api.ts +0 -78
  299. package/skills/monkey-mini-app/templates/agentrun/manifest.json +0 -9
  300. package/skills/monkey-mini-app/templates/agentrun/ui.tsx +0 -125
  301. package/skills/monkey-mini-app/templates/insights/main.api.ts +0 -101
  302. package/skills/monkey-mini-app/templates/insights/manifest.json +0 -9
  303. package/skills/monkey-mini-app/templates/insights/ui.tsx +0 -138
  304. package/skills/monkey-mini-app/templates/jira/manifest.json +0 -9
  305. package/skills/monkey-mini-app/templates/jira/ui.tsx +0 -318
  306. package/skills/monkey-mini-app/templates/monitor/manifest.json +0 -9
  307. package/skills/monkey-mini-app/templates/monitor/ui.tsx +0 -176
  308. package/skills/monkey-mini-app/templates/review/main.api.ts +0 -68
  309. package/skills/monkey-mini-app/templates/review/manifest.json +0 -9
  310. package/skills/monkey-mini-app/templates/review/ui.tsx +0 -159
  311. package/skills/monkey-mini-app/templates/todo/manifest.json +0 -8
  312. package/skills/monkey-mini-app/templates/todo/ui.tsx +0 -177
@@ -1,10 +1,14 @@
1
- <!-- generated by scripts/generate-skill.mjs — do not edit -->
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
2
 
3
3
  # Autocomplete
4
4
 
5
+ Text input with filtered suggestions.
6
+
7
+ **when** Free text allowed but known values should be suggested. Strict pick-list → `Select`.
8
+
5
9
  `import { Autocomplete } from "@monkey-mini-app/ui"`
6
10
 
7
- `packages/ui/src/composites/autocomplete.tsx` · composites
11
+ `packages/ui/src/composites/autocomplete.tsx` · family: Form · type: composite
8
12
 
9
13
  ## Props
10
14
 
@@ -14,3 +18,9 @@
14
18
  | `options` | `string[]` | ✓ | |
15
19
  | `placeholder` | `string \| undefined` | | |
16
20
  | `value` | `string \| undefined` | | |
21
+
22
+ ## Example
23
+
24
+ ```tsx
25
+ <Autocomplete options={["main", "develop"]} onChange={(v) => set(v)} />
26
+ ```
@@ -0,0 +1,24 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Avatar (L1 primitive)
4
+
5
+ **when** User initials/photo next to a name in rows, comments, pickers.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/avatar.tsx` · family: Layout & structure · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Avatar` | `render?` `size?=default/sm/lg` |
18
+ | `AvatarBadge` | — |
19
+ | `AvatarFallback` | `delay?` `render?` |
20
+ | `AvatarGroup` | — |
21
+ | `AvatarGroupCount` | — |
22
+ | `AvatarImage` | `onLoadingStatusChange?` `render?` |
23
+
24
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
@@ -0,0 +1,26 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Badge (L1 primitive)
4
+
5
+ Inline label chip.
6
+
7
+ **when** Static tags/counts. Status → `StatusBadge`, severity → `SeverityChip`.
8
+
9
+ `import { Badge, badgeVariants } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/badge.tsx` · family: Feedback & status · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Badge` | `render?` `variant?=link/default/outline/secondary/ghost/destructive` |
18
+ | `badgeVariants` (hook/util) | `class?` `variant?=link/default/outline/secondary/ghost/destructive` |
19
+
20
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
21
+
22
+ ## Skeleton
23
+
24
+ ```tsx
25
+ <Badge variant="secondary">草稿</Badge>
26
+ ```
@@ -0,0 +1,33 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Breadcrumb (L1 primitive)
4
+
5
+ **when** Deep mini-app views; usually one level is enough — prefer `Tabs`/`AppShell` nav.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/breadcrumb.tsx` · family: Navigation · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Breadcrumb` | — |
18
+ | `BreadcrumbEllipsis` | — |
19
+ | `BreadcrumbItem` | — |
20
+ | `BreadcrumbLink` | `render?` |
21
+ | `BreadcrumbList` | — |
22
+ | `BreadcrumbPage` | — |
23
+ | `BreadcrumbSeparator` | — |
24
+
25
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
26
+
27
+ ## Examples
28
+
29
+ Runnable files under `references/examples/` — portable by construction (`react` +
30
+ `@monkey-mini-app/ui` + relatives), so copy the closest one into `ui.tsx` / `ui/`.
31
+ Pick by **scenario**, then open the file you need.
32
+
33
+ - **[breadcrumb-01.tsx](../examples/breadcrumb/breadcrumb-01.tsx)** — Breadcrumb — Deep-navigation path where the current level is not a link and separators are automatic; use for drill-down pages (org / team / project / run).
@@ -0,0 +1,30 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Bubble (L1 primitive)
4
+
5
+ **when** Conversational UI (assistant turns). Records/logs → `ActivityFeed` / `Message`.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/bubble.tsx` · family: Surface · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Bubble` | `align?=start/end` `variant?` |
18
+ | `BubbleContent` | `render?` |
19
+ | `BubbleGroup` | — |
20
+ | `BubbleReactions` | `align?=start/end` `side?=top/bottom` |
21
+
22
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
23
+
24
+ ## Examples
25
+
26
+ Runnable files under `references/examples/` — portable by construction (`react` +
27
+ `@monkey-mini-app/ui` + relatives), so copy the closest one into `ui.tsx` / `ui/`.
28
+ Pick by **scenario**, then open the file you need.
29
+
30
+ - **[bubble-01.tsx](../examples/bubble/bubble-01.tsx)** — Bubble — One side of a chat transcript — agent vs user bubble without hand-rolling alignment or spacing.
@@ -0,0 +1,36 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # ButtonGroup (L1 primitive)
4
+
5
+ **when** 2–5 mutually related actions (view switch, alignment). Tabs of content → `Tabs`.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/button-group.tsx` · family: Form · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `ButtonGroup` | `orientation?=vertical/horizontal` |
18
+ | `ButtonGroupSeparator` | `orientation?` `render?` |
19
+ | `ButtonGroupText` | `render?` |
20
+ | `buttonGroupVariants` (hook/util) | `class?` `orientation?=vertical/horizontal` |
21
+
22
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
23
+
24
+ ## Skeleton
25
+
26
+ ```tsx
27
+ <ButtonGroup><Button variant="outline">List</Button><Button variant="outline">Board</Button></ButtonGroup>
28
+ ```
29
+
30
+ ## Examples
31
+
32
+ Runnable files under `references/examples/` — portable by construction (`react` +
33
+ `@monkey-mini-app/ui` + relatives), so copy the closest one into `ui.tsx` / `ui/`.
34
+ Pick by **scenario**, then open the file you need.
35
+
36
+ - **[button-group-01.tsx](../examples/button-group/button-group-01.tsx)** — Button / ButtonGroup — Related buttons fused into one visual unit (joined borders/radius) — e.g. Save + dropdown Split action; distinct from Toolbar/ToggleGroup because there is no pressed state.
@@ -0,0 +1,26 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Button (L1 primitive)
4
+
5
+ Action button with variants and icon sizing.
6
+
7
+ **when** Every click target. `variant="destructive"` for delete, `size="icon*"` for icon-only (add aria-label).
8
+
9
+ `import { Button, buttonVariants } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/button.tsx` · family: Form · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Button` | `focusableWhenDisabled?` `nativeButton?` `render?` `size?=default/xs/sm/lg/icon/icon-xs/icon-sm/icon-lg` `variant?=link/default/outline/secondary/ghost/destructive` |
18
+ | `buttonVariants` (hook/util) | `class?` `size?=default/xs/sm/lg/icon/icon-xs/icon-sm/icon-lg` `variant?=link/default/outline/secondary/ghost/destructive` |
19
+
20
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
21
+
22
+ ## Skeleton
23
+
24
+ ```tsx
25
+ <Button variant="outline" size="sm" onClick={run}>刷新</Button>
26
+ ```
@@ -0,0 +1,20 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Calendar (L1 primitive)
4
+
5
+ **when** An inline calendar inside your own layout. As a field with input → `DatePicker`.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { Calendar, CalendarDayButton } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/calendar.tsx` · family: Calendar & date · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Calendar` | `animate?` `broadcastCalendar?` `buttonVariant?=link/default/outline/secondary/ghost/destructive` `captionLayout?=label/dropdown/dropdown-months/dropdown-years` `classNames?` `components?` `dateLib?` `defaultMonth?` `disabled?` `disableNavigation?` `endMonth?` `firstWeekContainsDate?` +39 |
18
+ | `CalendarDayButton` | `day` `locale?` `modifiers` |
19
+
20
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
@@ -0,0 +1,41 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Card (L1 primitive)
4
+
5
+ Surface with header/content/footer.
6
+
7
+ **when** The default container for a block of related UI.
8
+
9
+ Compound: compose the parts below — **do not invent part names**.
10
+
11
+ `import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@monkey-mini-app/ui"`
12
+
13
+ `packages/ui/src/components/card.tsx` · family: Surface · type: component · primitive
14
+
15
+ ## Parts
16
+
17
+ | part | own props |
18
+ |---|---|
19
+ | `Card` | `size?=default/sm` |
20
+ | `CardAction` | — |
21
+ | `CardContent` | — |
22
+ | `CardDescription` | — |
23
+ | `CardFooter` | — |
24
+ | `CardHeader` | — |
25
+ | `CardTitle` | — |
26
+
27
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
28
+
29
+ ## Skeleton
30
+
31
+ ```tsx
32
+ <Card><CardHeader><CardTitle>今日摘要</CardTitle></CardHeader><CardContent>…</CardContent></Card>
33
+ ```
34
+
35
+ ## Examples
36
+
37
+ Runnable files under `references/examples/` — portable by construction (`react` +
38
+ `@monkey-mini-app/ui` + relatives), so copy the closest one into `ui.tsx` / `ui/`.
39
+ Pick by **scenario**, then open the file you need.
40
+
41
+ - **[card-01.tsx](../examples/card/card-01.tsx)** — Card — The default content container: header (title + description), body, optional footer. Start here for any panel before writing custom borders/padding.
@@ -1,10 +1,14 @@
1
- <!-- generated by scripts/generate-skill.mjs — do not edit -->
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
2
 
3
3
  # Cascader
4
4
 
5
+ Multi-level drill-down picker.
6
+
7
+ **when** Hierarchical codes (region → site → line). Flat tree → `TreeView`.
8
+
5
9
  `import { Cascader, CascaderNode } from "@monkey-mini-app/ui"`
6
10
 
7
- `packages/ui/src/composites/cascader.tsx` · composites
11
+ `packages/ui/src/composites/cascader.tsx` · family: Form · type: composite
8
12
 
9
13
  ## Props
10
14
 
@@ -23,3 +27,9 @@
23
27
  | `children` | `CascaderNode[] \| undefined` | | |
24
28
  | `label` | `string` | ✓ | |
25
29
  | `value` | `string` | ✓ | |
30
+
31
+ ## Example
32
+
33
+ ```tsx
34
+ <Cascader options={[{ label: "华东", value: "cn", children: [{ label: "上海", value: "sha" }] }]} onChange={(v) => set(v)} />
35
+ ```
@@ -0,0 +1,32 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Chart (L1 primitive)
4
+
5
+ Recharts container + theme CSS vars + tooltip/legend parts.
6
+
7
+ **when** Only when no `*Chart` block fits — then you own the series. Prefer `DonutChart` / `StackedBarChart` / `Sparkline` / `Gauge` / `RadarChart`.
8
+
9
+ Compound: compose the parts below — **do not invent part names**.
10
+
11
+ `import { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "@monkey-mini-app/ui"`
12
+
13
+ `packages/ui/src/components/chart.tsx` · family: Chart & data · type: component · primitive
14
+
15
+ ## Parts
16
+
17
+ | part | own props |
18
+ |---|---|
19
+ | `ChartContainer` | `config` `initialDimension?` |
20
+ | `ChartLegend` | `align?` `formatter?` `height?` `iconSize?` `iconType?` `inactiveColor?` `itemSorter?` `labelStyle?` `layout?` `offset?` `onBBoxUpdate?` `onPointerEnterCapture?` +7 |
21
+ | `ChartLegendContent` | `align?` `formatter?` `hideIcon?` `iconSize?` `iconType?` `inactiveColor?` `labelStyle?` `layout?` `nameKey?` `onPointerEnterCapture?` `onPointerLeaveCapture?` `payload?` +1 |
22
+ | `ChartStyle` | `config` `id` |
23
+ | `ChartTooltip` | `active?` `allowEscapeViewBox?` `animationDuration?` `animationEasing?` `axisId?` `contentStyle?` `cursor?` `defaultIndex?` `filterNull?` `formatter?` `includeHidden?` `isAnimationActive?` +16 |
24
+ | `ChartTooltipContent` | `active?` `allowEscapeViewBox?` `animationDuration?` `animationEasing?` `axisId?` `contentStyle?` `cursor?` `defaultIndex?` `filterNull?` `formatter?` `hideIndicator?` `hideLabel?` +23 |
25
+
26
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
27
+
28
+ ## Skeleton
29
+
30
+ ```tsx
31
+ <ChartContainer config={cfg} className="h-40 w-full"><Bar data={rows} dataKey="v" /></ChartContainer>
32
+ ```
@@ -0,0 +1,19 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Checkbox (L1 primitive)
4
+
5
+ Single boolean box.
6
+
7
+ **when** Multi-select rows / opt-in.
8
+
9
+ `import { Checkbox } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/checkbox.tsx` · family: Form · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Checkbox` | `checked?` `disabled?` `form?` `indeterminate?` `inputRef?` `name?` `nativeButton?` `onCheckedChange?` `parent?` `readOnly?` `render?` `required?` +2 |
18
+
19
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
@@ -1,10 +1,14 @@
1
- <!-- generated by scripts/generate-skill.mjs — do not edit -->
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
2
 
3
3
  # CodeBlock
4
4
 
5
+ Static read-only code with highlighting (shiki via CDN).
6
+
7
+ **when** Showing a snippet/command. Editable → `CodeEditor`.
8
+
5
9
  `import { CodeBlock } from "@monkey-mini-app/ui"`
6
10
 
7
- `packages/ui/src/products/code-block.tsx` · products
11
+ `packages/ui/src/products/code-block.tsx` · family: Discovery & inspect · type: product
8
12
 
9
13
  ## Props
10
14
 
@@ -13,3 +17,17 @@
13
17
  | `className` | `string \| undefined` | | |
14
18
  | `code` | `string` | ✓ | |
15
19
  | `language` | `string \| undefined` | | |
20
+
21
+ ## Example
22
+
23
+ ```tsx
24
+ <CodeBlock code="pnpm test" language="bash" />
25
+ ```
26
+
27
+ ## Examples
28
+
29
+ Runnable files under `references/examples/` — portable by construction (`react` +
30
+ `@monkey-mini-app/ui` + relatives), so copy the closest one into `ui.tsx` / `ui/`.
31
+ Pick by **scenario**, then open the file you need.
32
+
33
+ - **[code-block-01.tsx](../examples/code-block/code-block-01.tsx)** — CodeBlock — Read-only highlighted source with filename, language badge and copy button (shiki via CDN); use when the code is shown, not edited.
@@ -1,10 +1,14 @@
1
- <!-- generated by scripts/generate-skill.mjs — do not edit -->
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
2
 
3
3
  # CodeEditor
4
4
 
5
- `import { CodeEditor } from "@monkey-mini-app/ui"`
5
+ Vanilla CodeMirror 6 loaded on demand from `esm.sh` (not npm, not a React wrapper). Do not import `@codemirror/*` or `@uiw/react-codemirror` the latter pulls a second React. Highlighting needs `@codemirror/language` + a theme; lang packages only provide the parser. If the CDN fails the host stays empty (no editor), rather than requiring a peer install.
6
6
 
7
- `packages/ui/src/products/code-editor.tsx` · products
7
+ **when** Editing config/scripts in-app. Do not `import @codemirror/*` or add it to package.json.
8
+
9
+ `import { CodeEditor, LangS } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/products/code-editor.tsx` · family: Discovery & inspect · type: product
8
12
 
9
13
  ## Props
10
14
 
@@ -12,6 +16,28 @@
12
16
  |---|---|:---:|---|
13
17
  | `className` | `string \| undefined` | | |
14
18
  | `height` | `string \| undefined` | | |
15
- | `language` | `"js" \| "ts" \| "json" \| "html" \| "md" \| undefined` | | |
19
+ | `language` | `LangS \| undefined` | | |
16
20
  | `onChange` | `((value: string) => void) \| undefined` | | |
17
21
  | `value` | `string` | ✓ | |
22
+
23
+ ## Types
24
+
25
+ ### `LangS`
26
+
27
+ ```ts
28
+ "js" | "ts" | "json" | "html" | "md"
29
+ ```
30
+
31
+ ## Example
32
+
33
+ ```tsx
34
+ <CodeEditor value={src} language="ts" onChange={(v) => set(v)} />
35
+ ```
36
+
37
+ ## Examples
38
+
39
+ Runnable files under `references/examples/` — portable by construction (`react` +
40
+ `@monkey-mini-app/ui` + relatives), so copy the closest one into `ui.tsx` / `ui/`.
41
+ Pick by **scenario**, then open the file you need.
42
+
43
+ - **[code-editor-01.tsx](../examples/code-editor/code-editor-01.tsx)** — CodeEditor — Editable source with syntax highlighting and line numbers (CodeMirror 6 via CDN). Reach for it when the user changes config/scripts in-app; degrade to Textarea if the network blocks the CDN. — _*CodeMirror 6*_
@@ -0,0 +1,21 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Collapsible (L1 primitive)
4
+
5
+ **when** A single disclosure (advanced options). Several stacked → `Accordion`.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/collapsible.tsx` · family: Layout & structure · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Collapsible` | `defaultOpen?` `disabled?` `onOpenChange?` `open?` `render?` |
18
+ | `CollapsibleContent` | `hiddenUntilFound?` `keepMounted?` `render?` |
19
+ | `CollapsibleTrigger` | `nativeButton?` `render?` |
20
+
21
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
@@ -1,10 +1,14 @@
1
- <!-- generated by scripts/generate-skill.mjs — do not edit -->
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
2
 
3
3
  # ColorPicker
4
4
 
5
+ Swatch + hex colour input.
6
+
7
+ **when** Theme/label colour config. Never for secrets.
8
+
5
9
  `import { ColorPicker } from "@monkey-mini-app/ui"`
6
10
 
7
- `packages/ui/src/composites/color-picker.tsx` · composites
11
+ `packages/ui/src/composites/color-picker.tsx` · family: Form · type: composite
8
12
 
9
13
  ## Props
10
14
 
@@ -12,3 +16,9 @@
12
16
  |---|---|:---:|---|
13
17
  | `onChange` | `((value: string) => void) \| undefined` | | |
14
18
  | `value` | `string \| undefined` | | |
19
+
20
+ ## Example
21
+
22
+ ```tsx
23
+ <ColorPicker value={c} onChange={(v) => set(v)} />
24
+ ```
@@ -0,0 +1,34 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Combobox (L1 primitive)
4
+
5
+ **when** When you need full control of the popover list. Simple suggestion box → `Autocomplete`.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/combobox.tsx` · family: Form · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Combobox` | `actionsRef?` `autoComplete?` `autoHighlight?` `defaultInputValue?` `defaultOpen?` `disabled?` `filter?` `filteredItems?` `form?` `grid?` `highlightItemOnHover?` `inline?` +23 |
18
+ | `ComboboxChip` | `render?` `showRemove?` |
19
+ | `ComboboxChips` | `render?` |
20
+ | `ComboboxChipsInput` | `disabled?` `render?` |
21
+ | `ComboboxCollection` | — |
22
+ | `ComboboxContent` | `align?` `alignOffset?` `anchor?` `finalFocus?` `initialFocus?` `render?` `side?` `sideOffset?` |
23
+ | `ComboboxEmpty` | `render?` |
24
+ | `ComboboxGroup` | `items?` `render?` |
25
+ | `ComboboxInput` | `disabled?` `render?` `showClear?` `showTrigger?` |
26
+ | `ComboboxItem` | `disabled?` `index?` `nativeButton?` `render?` `value?` |
27
+ | `ComboboxLabel` | `render?` |
28
+ | `ComboboxList` | `render?` |
29
+ | `ComboboxSeparator` | `orientation?` `render?` |
30
+ | `ComboboxTrigger` | `disabled?` `nativeButton?` `render?` |
31
+ | `ComboboxValue` | `placeholder?` |
32
+ | `useComboboxAnchor` (hook/util) | — |
33
+
34
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
@@ -0,0 +1,41 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # Command (L1 primitive)
4
+
5
+ **when** Jump between views/actions inside one app.
6
+
7
+ Compound: compose the parts below — **do not invent part names**.
8
+
9
+ `import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/components/command.tsx` · family: Navigation · type: component · primitive
12
+
13
+ ## Parts
14
+
15
+ | part | own props |
16
+ |---|---|
17
+ | `Command` | `asChild?` `disablePointerSelection?` `filter?` `label?` `loop?` `onValueChange?` `shouldFilter?` `value?` `vimBindings?` |
18
+ | `CommandDialog` | `actionsRef?` `children` `className?` `defaultOpen?` `defaultTriggerId?` `description?` `disablePointerDismissal?` `handle?` `modal?` `onOpenChange?` `onOpenChangeComplete?` `open?` +3 |
19
+ | `CommandEmpty` | `asChild?` |
20
+ | `CommandGroup` | `asChild?` `forceMount?` `heading?` `value?` |
21
+ | `CommandInput` | `asChild?` `onValueChange?` `value?` |
22
+ | `CommandItem` | `asChild?` `disabled?` `forceMount?` `keywords?` `value?` |
23
+ | `CommandList` | `asChild?` `label?` |
24
+ | `CommandSeparator` | `alwaysRender?` `asChild?` |
25
+ | `CommandShortcut` | — |
26
+
27
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
28
+
29
+ ## Skeleton
30
+
31
+ ```tsx
32
+ <CommandDialog open={open} onOpenChange={setOpen}><CommandInput placeholder="跳转…" /><CommandList><CommandItem onSelect={go}>今日</CommandItem></CommandList></CommandDialog>
33
+ ```
34
+
35
+ ## Examples
36
+
37
+ Runnable files under `references/examples/` — portable by construction (`react` +
38
+ `@monkey-mini-app/ui` + relatives), so copy the closest one into `ui.tsx` / `ui/`.
39
+ Pick by **scenario**, then open the file you need.
40
+
41
+ - **[command-01.tsx](../examples/command/command-01.tsx)** — Command — Cmd-K style palette: fuzzy input over grouped actions with an empty state, mounted inline rather than as a dialog.
@@ -1,10 +1,14 @@
1
- <!-- generated by scripts/generate-skill.mjs — do not edit -->
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
2
 
3
3
  # CommentThread
4
4
 
5
+ Nested comments with author + time.
6
+
7
+ **when** Issue/ticket discussion, review comments. Editing a comment is your job, not the component's.
8
+
5
9
  `import { CommentThread, Comment } from "@monkey-mini-app/ui"`
6
10
 
7
- `packages/ui/src/blocks/comment-thread.tsx` · blocks
11
+ `packages/ui/src/blocks/comment-thread.tsx` · family: Realtime · type: block
8
12
 
9
13
  ## Props
10
14
 
@@ -22,3 +26,9 @@
22
26
  | `body` | `string` | ✓ | |
23
27
  | `id` | `string` | ✓ | |
24
28
  | `time` | `string \| undefined` | | |
29
+
30
+ ## Example
31
+
32
+ ```tsx
33
+ <CommentThread comments={[{ id: "c1", author: "P.Wang", text: "这里再确认下" }]} />
34
+ ```
@@ -0,0 +1,50 @@
1
+ <!-- generated by scripts/gen/skill — do not edit -->
2
+
3
+ # CommitGraph
4
+
5
+ Topological git commit graph (forks / merges).
6
+
7
+ **when** App history, release notes, git timeline views
8
+
9
+ `import { CommitGraph, CommitAuthor, Commit } from "@monkey-mini-app/ui"`
10
+
11
+ `packages/ui/src/products/commit-graph.tsx` · family: Chart & data · type: product
12
+
13
+ ## Props
14
+
15
+ Extends `Omit<ComponentProps<"div">, "children">` — those HTML/ARIA props are not repeated below.
16
+
17
+ | field | type | required | note |
18
+ |---|---|:---:|---|
19
+ | `commits` | `Commit[]` | ✓ | Commits in topological order (newest first). Each commit includes parent hashes. |
20
+ | `railWidth` | `number \| undefined` | | Pixel width per rail column. |
21
+ | `truncateHash` | `number \| undefined` | | Number of hash characters to display. |
22
+
23
+ _Inherited HTML/ARIA props (`className`, `style`, `id`, `onClick`, `aria-*`, …) omitted — every component takes them._
24
+
25
+ ## Types
26
+
27
+ ### `CommitAuthor`
28
+
29
+ | field | type | required | note |
30
+ |---|---|:---:|---|
31
+ | `avatarUrl` | `string \| undefined` | | |
32
+ | `name` | `string` | ✓ | |
33
+
34
+ ### `Commit`
35
+
36
+ | field | type | required | note |
37
+ |---|---|:---:|---|
38
+ | `author` | `CommitAuthor` | ✓ | Commit author. |
39
+ | `date` | `string \| Date` | ✓ | ISO date string or Date object. |
40
+ | `hash` | `string` | ✓ | Commit hash (full or abbreviated). |
41
+ | `message` | `string` | ✓ | Commit message (first line). |
42
+ | `parents` | `string[]` | ✓ | Parent commit hashes. Empty for root commits. Two parents = merge commit. |
43
+ | `refs` | `string[] \| undefined` | | Branch or ref label (e.g. "main", "feat/auth"). |
44
+ | `tag` | `string \| undefined` | | Tag label (e.g. "v1.0.0"). |
45
+
46
+ ## Example
47
+
48
+ ```tsx
49
+ <CommitGraph commits={[{ hash, message, author, date, parents }]} />
50
+ ```