bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75

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 (345) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +31 -5
  5. package/dist/ai/BbAvatar.md +86 -58
  6. package/dist/ai/BbBadge.md +5 -5
  7. package/dist/ai/BbBreadcrumbs.md +2 -2
  8. package/dist/ai/BbButton.md +2 -2
  9. package/dist/ai/BbCalendar.md +9 -5
  10. package/dist/ai/BbCheckboxGroup.md +5 -4
  11. package/dist/ai/BbColorInput.md +12 -0
  12. package/dist/ai/BbColorPalette.md +19 -15
  13. package/dist/ai/BbConfirmPortal.md +1 -1
  14. package/dist/ai/BbDatePicker.md +16 -3
  15. package/dist/ai/BbDatePickerInput.md +17 -1
  16. package/dist/ai/BbDialog.md +16 -4
  17. package/dist/ai/BbDropdown.md +175 -67
  18. package/dist/ai/BbDropdownButton.md +27 -8
  19. package/dist/ai/BbForm.md +4 -1
  20. package/dist/ai/BbHoverCardPortal.md +1 -1
  21. package/dist/ai/BbNumberInput.md +8 -4
  22. package/dist/ai/BbPopoverPortal.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +79 -67
  25. package/dist/ai/BbSelectPopover.md +24 -5
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +59 -34
  28. package/dist/ai/BbTimePicker.md +16 -3
  29. package/dist/ai/BbTimePickerInput.md +15 -1
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbToastPortal.md +1 -1
  32. package/dist/ai/BbTree.md +5 -1
  33. package/dist/ai/CommonPopover.md +1 -0
  34. package/dist/ai/FlatListBox.md +1 -0
  35. package/dist/ai/GroupedListBox.md +1 -0
  36. package/dist/ai/ListBox.md +1 -0
  37. package/dist/ai/OptionsContainer.md +4 -4
  38. package/dist/ai/changelog.json +215 -6
  39. package/dist/ai/components.json +77 -43
  40. package/dist/ai/composables/useToast.md +2 -2
  41. package/dist/ai/design-tokens.json +60 -0
  42. package/dist/ai/guides/agent-contract.md +8 -4
  43. package/dist/ai/guides/design-tokens.md +33 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/inertia-helpers.md +613 -53
  47. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  48. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  49. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  50. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  52. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  53. package/dist/ai/guides/migration/v2-to-v3.md +46 -5
  54. package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
  55. package/dist/ai/guides/passthrough.md +3 -3
  56. package/dist/ai/guides/preset-components.md +15 -2
  57. package/dist/ai/guides/reporting.md +49 -0
  58. package/dist/ai/helpers/inertia/manifest.json +33 -38
  59. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  60. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  61. package/dist/ai/helpers/inertia/utils.ts +552 -3
  62. package/dist/ai/index.md +2 -1
  63. package/dist/ai/manifest/common.json +1 -0
  64. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  65. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  66. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  67. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  68. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  69. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  70. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  71. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  72. package/dist/ai/manifest/components/BbColorPalette.json +7 -4
  73. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  74. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  75. package/dist/ai/manifest/components/BbDatePicker.json +6 -3
  76. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  77. package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
  78. package/dist/ai/manifest/components/BbDropdown.json +23 -17
  79. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  80. package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
  81. package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
  82. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  83. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  84. package/dist/ai/manifest/components/BbForm.json +1 -1
  85. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  86. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  87. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  88. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbPopover.json +1 -1
  90. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  91. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  92. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  93. package/dist/ai/manifest/components/BbSelect.json +10 -7
  94. package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
  95. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  96. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  97. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  98. package/dist/ai/manifest/components/BbTable.json +6 -6
  99. package/dist/ai/manifest/components/BbTable.tree.json +16 -6
  100. package/dist/ai/manifest/components/BbTimePicker.json +7 -4
  101. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  102. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  103. package/dist/ai/manifest/components/BbTree.json +1 -1
  104. package/dist/ai/manifest/components/CommonPopover.json +2 -1
  105. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  106. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  107. package/dist/ai/manifest/components/ListBox.json +2 -1
  108. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  109. package/dist/ai/manifest/index.json +2 -2
  110. package/dist/ai/manifest/meta.json +36 -3
  111. package/dist/ai/manifest/types.advanced.json +81 -80
  112. package/dist/ai/manifest/types.api.json +64 -65
  113. package/dist/ai/manifest/types.wrapper.json +155 -118
  114. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  115. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  116. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  117. package/dist/ai/source/BbAlert.md +16 -4
  118. package/dist/ai/source/BbAvatar.md +121 -9
  119. package/dist/ai/source/BbBadge.md +12 -5
  120. package/dist/ai/source/BbBreadcrumbs.md +56 -55
  121. package/dist/ai/source/BbButton.md +41 -25
  122. package/dist/ai/source/BbCalendar.md +22 -12
  123. package/dist/ai/source/BbCarousel.md +31 -28
  124. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  125. package/dist/ai/source/BbColorInput.md +19 -0
  126. package/dist/ai/source/BbColorPalette.md +59 -12
  127. package/dist/ai/source/BbConfirm.md +7 -0
  128. package/dist/ai/source/BbConfirmPortal.md +9 -4
  129. package/dist/ai/source/BbDatePicker.md +71 -22
  130. package/dist/ai/source/BbDatePickerInput.md +72 -9
  131. package/dist/ai/source/BbDialog.md +45 -2
  132. package/dist/ai/source/BbDropdown.md +263 -63
  133. package/dist/ai/source/BbDropdownButton.md +27 -2
  134. package/dist/ai/source/BbDropdownGroup.md +121 -59
  135. package/dist/ai/source/BbForm.md +73 -6
  136. package/dist/ai/source/BbGallery.md +76 -55
  137. package/dist/ai/source/BbHost.md +12 -0
  138. package/dist/ai/source/BbHoverCard.md +7 -0
  139. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  140. package/dist/ai/source/BbNumberInput.md +22 -16
  141. package/dist/ai/source/BbOffCanvas.md +48 -2
  142. package/dist/ai/source/BbPopover.md +7 -0
  143. package/dist/ai/source/BbPopoverPortal.md +9 -5
  144. package/dist/ai/source/BbRadio.md +4 -3
  145. package/dist/ai/source/BbRadioGroup.md +19 -10
  146. package/dist/ai/source/BbSelect.md +35 -20
  147. package/dist/ai/source/BbSelectPopover.md +116 -8
  148. package/dist/ai/source/BbSwitchGroup.md +11 -4
  149. package/dist/ai/source/BbTable.md +126 -32
  150. package/dist/ai/source/BbTag.md +10 -3
  151. package/dist/ai/source/BbTimePicker.md +69 -15
  152. package/dist/ai/source/BbTimePickerInput.md +45 -7
  153. package/dist/ai/source/BbToast.md +16 -2
  154. package/dist/ai/source/BbToastPortal.md +18 -6
  155. package/dist/ai/source/BbTree.md +1 -1
  156. package/dist/ai/source/CommonFieldInput.md +11 -5
  157. package/dist/ai/source/CommonPopover.md +28 -2
  158. package/dist/ai/source/FlatListBox.md +26 -5
  159. package/dist/ai/source/GroupedListBox.md +63 -11
  160. package/dist/ai/source/ListBox.md +4 -0
  161. package/dist/ai/source/OptionsContainer.md +29 -11
  162. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  163. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  164. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  165. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  166. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  167. package/dist/components/BbAvatar/types.d.ts +24 -5
  168. package/dist/components/BbAvatar/types.js +5 -1
  169. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  170. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  171. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  172. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  173. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  174. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  175. package/dist/components/BbCalendar/types.d.ts +2 -2
  176. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  177. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  178. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  179. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  180. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  181. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  182. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  183. package/dist/components/BbColorInput/types.d.ts +7 -0
  184. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  185. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
  186. package/dist/components/BbColorPalette/types.d.ts +8 -1
  187. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  188. package/dist/components/BbConfirm/types.d.ts +5 -0
  189. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
  190. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
  191. package/dist/components/BbDatePicker/types.d.ts +9 -2
  192. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  193. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
  194. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  195. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
  196. package/dist/components/BbDialog/leaveGhost.js +38 -0
  197. package/dist/components/BbDialog/overlayActions.js +34 -20
  198. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  199. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  200. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
  201. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
  202. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  203. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  204. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
  205. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  206. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  207. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  208. package/dist/components/BbDropdown/types.d.ts +73 -58
  209. package/dist/components/BbDropdown/types.js +1 -0
  210. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  211. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  212. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  213. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  214. package/dist/components/BbDropdownButton/types.js +2 -0
  215. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  216. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  217. package/dist/components/BbForm/types.d.ts +31 -0
  218. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  219. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  220. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  221. package/dist/components/BbHoverCard/types.d.ts +5 -0
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
  223. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  224. package/dist/components/BbNumberInput/types.d.ts +4 -3
  225. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
  226. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  227. package/dist/components/BbPopover/types.d.ts +5 -0
  228. package/dist/components/BbRadio/types.d.ts +4 -3
  229. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
  230. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  231. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  232. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  233. package/dist/components/BbSelect/types.d.ts +23 -20
  234. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  235. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  236. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  237. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  238. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  239. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  240. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
  241. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  242. package/dist/components/BbTable/types.d.ts +11 -10
  243. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  244. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  245. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
  246. package/dist/components/BbTimePicker/types.d.ts +9 -2
  247. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  248. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
  249. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  250. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  251. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  252. package/dist/components/BbToast/types.d.ts +7 -2
  253. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  254. package/dist/components/BbTree/types.d.ts +1 -1
  255. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  256. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
  257. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  258. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  259. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  260. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  261. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  262. package/dist/composables/formSubmitLock.js +2 -1
  263. package/dist/composables/overlayRegistry.js +52 -42
  264. package/dist/composables/useActiveInactiveState.js +8 -4
  265. package/dist/composables/useBbDialog.js +5 -5
  266. package/dist/composables/useItemsGetter.js +34 -32
  267. package/dist/composables/useOpenModel.js +20 -0
  268. package/dist/composables/useOwnModel.js +16 -0
  269. package/dist/composables/useSegmentedFields.js +31 -20
  270. package/dist/deprecation/ai-deprecations.json.js +1 -1
  271. package/dist/i18n/currencyDigits.js +58 -0
  272. package/dist/i18n/locales/ar.json +2 -0
  273. package/dist/i18n/locales/cs.json +2 -0
  274. package/dist/i18n/locales/da.json +2 -0
  275. package/dist/i18n/locales/de-CH.json +2 -0
  276. package/dist/i18n/locales/de.json +2 -0
  277. package/dist/i18n/locales/el.json +2 -0
  278. package/dist/i18n/locales/en-GB.json +2 -0
  279. package/dist/i18n/locales/en.json +2 -0
  280. package/dist/i18n/locales/es-MX.json +2 -0
  281. package/dist/i18n/locales/es.json +2 -0
  282. package/dist/i18n/locales/fa.json +2 -0
  283. package/dist/i18n/locales/fi.json +2 -0
  284. package/dist/i18n/locales/fr.json +2 -0
  285. package/dist/i18n/locales/he.json +2 -0
  286. package/dist/i18n/locales/hu.json +2 -0
  287. package/dist/i18n/locales/it.json +2 -0
  288. package/dist/i18n/locales/ja.json +2 -0
  289. package/dist/i18n/locales/ko.json +2 -0
  290. package/dist/i18n/locales/nb.json +2 -0
  291. package/dist/i18n/locales/nl.json +2 -0
  292. package/dist/i18n/locales/pl.json +2 -0
  293. package/dist/i18n/locales/pt-BR.json +2 -0
  294. package/dist/i18n/locales/pt-PT.json +2 -0
  295. package/dist/i18n/locales/ro.json +2 -0
  296. package/dist/i18n/locales/ru.json +2 -0
  297. package/dist/i18n/locales/sv.json +2 -0
  298. package/dist/i18n/locales/tr.json +2 -0
  299. package/dist/i18n/locales/uk.json +2 -0
  300. package/dist/i18n/locales/zh-CN.json +2 -0
  301. package/dist/i18n/locales/zh-HK.json +2 -0
  302. package/dist/i18n/locales/zh-TW.json +2 -0
  303. package/dist/i18n/regionDates.js +250 -0
  304. package/dist/i18n/regionHints.js +30 -41
  305. package/dist/icon-scan.js +68 -61
  306. package/dist/index.d.ts +35 -31
  307. package/dist/llms-full.txt +1428 -400
  308. package/dist/llms-medium.txt +8 -4
  309. package/dist/llms.txt +4 -2
  310. package/dist/locale-blueprint.json +2 -0
  311. package/dist/styles.css +2 -2
  312. package/dist/types/ActionButton.d.ts +2 -1
  313. package/dist/types/CommonProps.d.ts +8 -0
  314. package/dist/types/Option.d.ts +10 -0
  315. package/dist/types/ptComponentMap.d.ts +3 -3
  316. package/dist/utilities/functions/hash.js +97 -64
  317. package/dist/utilities/functions/isEqual.js +33 -25
  318. package/dist/utilities/functions/slotContent.js +19 -0
  319. package/dist/utils/loadRetry.js +8 -0
  320. package/dist/utils/versionCheck.js +1 -1
  321. package/dist/vite-plugin.d.ts +2 -1
  322. package/dist/vite.js +11 -4
  323. package/llms.txt +4 -2
  324. package/package.json +3 -2
  325. package/scripts/README.md +3 -1
  326. package/scripts/lib/adoption-checklist.json +6 -5
  327. package/scripts/lib/agent-manifest.mjs +33 -6
  328. package/scripts/lib/agent-setup.mjs +90 -24
  329. package/scripts/lib/cldr-pins.ts +182 -0
  330. package/scripts/lib/engines-include.d.mts +5 -0
  331. package/scripts/lib/engines-include.mjs +40 -0
  332. package/scripts/lib/eslint-plugin.mjs +8 -2
  333. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  334. package/scripts/lib/idiom-scan.mjs +30 -3
  335. package/scripts/lib/legacy-agent-files.json +152 -0
  336. package/scripts/lib/mcp-config.mjs +74 -7
  337. package/scripts/lib/portal-names.mjs +78 -8
  338. package/scripts/lib/release-results.mjs +5 -2
  339. package/scripts/lib/report.mjs +340 -0
  340. package/scripts/lib/run-beat.mjs +14 -0
  341. package/scripts/lib/run-records.mjs +313 -0
  342. package/scripts/lib/selector-log.mjs +98 -0
  343. package/scripts/lib/ticket-beat.mjs +30 -0
  344. package/scripts/lib/validate-bb-markup.mjs +37 -2
  345. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -0,0 +1,250 @@
1
+ // src/i18n/regionDates.ts
2
+ var e = {
3
+ "ar-EG": {
4
+ date: "D/M/Y",
5
+ month: "M/Y",
6
+ am: "ص",
7
+ pm: "م"
8
+ },
9
+ "cs-CZ": {
10
+ date: "D.M.Y",
11
+ month: "M/Y",
12
+ am: "dop.",
13
+ pm: "odp."
14
+ },
15
+ "da-DK": {
16
+ date: "D.M.Y",
17
+ month: "M.Y",
18
+ am: "AM",
19
+ pm: "PM"
20
+ },
21
+ "de-AT": {
22
+ date: "D.M.Y",
23
+ month: "M/Y",
24
+ am: "AM",
25
+ pm: "PM"
26
+ },
27
+ "de-CH": {
28
+ date: "D.M.Y",
29
+ month: "M/Y",
30
+ am: "AM",
31
+ pm: "PM"
32
+ },
33
+ "de-DE": {
34
+ date: "D.M.Y",
35
+ month: "M/Y",
36
+ am: "AM",
37
+ pm: "PM"
38
+ },
39
+ "el-GR": {
40
+ date: "D/M/Y",
41
+ month: "M/Y",
42
+ am: "π.μ.",
43
+ pm: "μ.μ."
44
+ },
45
+ "en-AU": {
46
+ date: "D/M/Y",
47
+ month: "M/Y",
48
+ am: "am",
49
+ pm: "pm"
50
+ },
51
+ "en-CA": {
52
+ date: "Y-M-D",
53
+ month: "Y-M",
54
+ am: "a.m.",
55
+ pm: "p.m."
56
+ },
57
+ "en-GB": {
58
+ date: "D/M/Y",
59
+ month: "M/Y",
60
+ am: "am",
61
+ pm: "pm"
62
+ },
63
+ "en-IE": {
64
+ date: "D/M/Y",
65
+ month: "M/Y",
66
+ am: "am",
67
+ pm: "pm"
68
+ },
69
+ "en-US": {
70
+ date: "M/D/Y",
71
+ month: "M/Y",
72
+ am: "AM",
73
+ pm: "PM"
74
+ },
75
+ "es-ES": {
76
+ date: "D/M/Y",
77
+ month: "M/Y",
78
+ am: "a. m.",
79
+ pm: "p. m."
80
+ },
81
+ "es-MX": {
82
+ date: "D/M/Y",
83
+ month: "M/Y",
84
+ am: "a.m.",
85
+ pm: "p.m."
86
+ },
87
+ "fa-IR": {
88
+ date: "Y/M/D",
89
+ month: "Y/M",
90
+ am: "ق.ظ.",
91
+ pm: "ب.ظ."
92
+ },
93
+ "fi-FI": {
94
+ date: "D.M.Y",
95
+ month: "M.Y",
96
+ am: "ap.",
97
+ pm: "ip."
98
+ },
99
+ "fr-BE": {
100
+ date: "D/M/Y",
101
+ month: "M/Y",
102
+ am: "AM",
103
+ pm: "PM"
104
+ },
105
+ "fr-CA": {
106
+ date: "Y-M-D",
107
+ month: "Y-M",
108
+ am: "a.m.",
109
+ pm: "p.m."
110
+ },
111
+ "fr-CH": {
112
+ date: "D.M.Y",
113
+ month: "M.Y",
114
+ am: "AM",
115
+ pm: "PM"
116
+ },
117
+ "fr-FR": {
118
+ date: "D/M/Y",
119
+ month: "M/Y",
120
+ am: "AM",
121
+ pm: "PM"
122
+ },
123
+ "he-IL": {
124
+ date: "D.M.Y",
125
+ month: "M.Y",
126
+ am: "AM",
127
+ pm: "PM"
128
+ },
129
+ "hu-HU": {
130
+ date: "Y.M.D",
131
+ month: "Y.M",
132
+ am: "de.",
133
+ pm: "du."
134
+ },
135
+ "it-CH": {
136
+ date: "D.M.Y",
137
+ month: "M/Y",
138
+ am: "AM",
139
+ pm: "PM"
140
+ },
141
+ "it-IT": {
142
+ date: "D/M/Y",
143
+ month: "M/Y",
144
+ am: "AM",
145
+ pm: "PM"
146
+ },
147
+ "ja-JP": {
148
+ date: "Y/M/D",
149
+ month: "Y/M",
150
+ am: "午前",
151
+ pm: "午後"
152
+ },
153
+ "ko-KR": {
154
+ date: "Y.M.D",
155
+ month: "Y.M",
156
+ am: "오전",
157
+ pm: "오후"
158
+ },
159
+ "nb-NO": {
160
+ date: "D.M.Y",
161
+ month: "M.Y",
162
+ am: "a.m.",
163
+ pm: "p.m."
164
+ },
165
+ "nl-BE": {
166
+ date: "D/M/Y",
167
+ month: "M/Y",
168
+ am: "a.m.",
169
+ pm: "p.m."
170
+ },
171
+ "nl-NL": {
172
+ date: "D-M-Y",
173
+ month: "M-Y",
174
+ am: "a.m.",
175
+ pm: "p.m."
176
+ },
177
+ "pl-PL": {
178
+ date: "D.M.Y",
179
+ month: "M.Y",
180
+ am: "AM",
181
+ pm: "PM"
182
+ },
183
+ "pt-BR": {
184
+ date: "D/M/Y",
185
+ month: "M/Y",
186
+ am: "AM",
187
+ pm: "PM"
188
+ },
189
+ "pt-PT": {
190
+ date: "D/M/Y",
191
+ month: "M/Y",
192
+ am: "a.m.",
193
+ pm: "p.m."
194
+ },
195
+ "ro-RO": {
196
+ date: "D.M.Y",
197
+ month: "M.Y",
198
+ am: "a.m.",
199
+ pm: "p.m."
200
+ },
201
+ "ru-RU": {
202
+ date: "D.M.Y",
203
+ month: "M.Y",
204
+ am: "AM",
205
+ pm: "PM"
206
+ },
207
+ "sv-FI": {
208
+ date: "D.M.Y",
209
+ month: "M.Y",
210
+ am: "fm",
211
+ pm: "em"
212
+ },
213
+ "sv-SE": {
214
+ date: "Y-M-D",
215
+ month: "Y-M",
216
+ am: "fm",
217
+ pm: "em"
218
+ },
219
+ "tr-TR": {
220
+ date: "D.M.Y",
221
+ month: "M.Y",
222
+ am: "ÖÖ",
223
+ pm: "ÖS"
224
+ },
225
+ "uk-UA": {
226
+ date: "D.M.Y",
227
+ month: "M.Y",
228
+ am: "дп",
229
+ pm: "пп"
230
+ },
231
+ "zh-CN": {
232
+ date: "Y/M/D",
233
+ month: "Y年M",
234
+ am: "上午",
235
+ pm: "下午"
236
+ },
237
+ "zh-HK": {
238
+ date: "D/M/Y",
239
+ month: "M/Y",
240
+ am: "上午",
241
+ pm: "下午"
242
+ },
243
+ "zh-TW": {
244
+ date: "Y/M/D",
245
+ month: "Y/M",
246
+ am: "上午",
247
+ pm: "下午"
248
+ }
249
+ };
250
+ export { e as REGION_DATES };
@@ -1,48 +1,37 @@
1
1
  import { dateLayoutFromHint as e, monthLayoutFromHint as t } from "../components/BbDatePickerInput/dateFieldLayout.js";
2
+ import { REGION_DATES as n } from "./regionDates.js";
2
3
  // src/i18n/regionHints.ts
3
- var n = /\p{L}+/gu, r = /[‎‏؜]/g, i = (e, t) => {
4
- let n = new Intl.DateTimeFormat(e, {
5
- ...t,
6
- timeZone: "UTC"
7
- }).formatToParts(new Date(Date.UTC(2026, 9, 7))), i = [], a;
8
- for (let e of n) e.type === "day" || e.type === "month" || e.type === "year" ? i.push(e.type) : e.type === "literal" && i.length === 1 && (a ??= e.value);
9
- let o = a?.replace(r, "").trim();
10
- return o && o.length <= 2 ? {
11
- order: i,
12
- separator: o
13
- } : null;
14
- }, a = (e, t) => new Intl.DateTimeFormat(e, {
15
- hour: "numeric",
16
- hourCycle: "h12",
17
- timeZone: "UTC"
18
- }).formatToParts(new Date(Date.UTC(2026, 9, 7, t))).find((e) => e.type === "dayPeriod")?.value, o = (e, t, n) => `${n}${t.startsWith(e) && t.endsWith(e) ? t.slice(e.length, t.length - e.length) : " – "}${n}`;
19
- function s(r, s) {
20
- let c = e(r.dateFormatSingle, r.monthFormatSingle), l = t(r.monthFormatSingle);
21
- if (!c || !l) return null;
22
- let u = r.dateFormatSingle.match(n) ?? [], d = r.monthFormatSingle.match(n) ?? [], f = (e, t, n) => t[n.indexOf(e)], p = i(s, {
23
- day: "2-digit",
24
- month: "2-digit",
25
- year: "numeric"
26
- }), m = i(s, {
27
- month: "2-digit",
28
- year: "numeric"
29
- });
30
- if (!p || p.order.length !== 3 || !m || m.order.length !== 2) return null;
31
- let h = p.order.map((e) => f(e, u, c.order)).join(p.separator), g = m.order.map((e) => f(e, d, l.order)).join(m.separator), _ = a(s, 3), v = a(s, 15), y = {
32
- ..._ && v && (_ !== r.meridiemAm || v !== r.meridiemPm) ? {
33
- meridiemField: `${_}/${v}`,
34
- meridiemAm: _,
35
- meridiemPm: v
4
+ var r = /\p{L}+/gu, i = {
5
+ D: "day",
6
+ M: "month",
7
+ Y: "year"
8
+ }, a = (e) => ({
9
+ order: [...e.matchAll(/[DMY]/g)].map(([e]) => i[e]),
10
+ separator: e.split(/[DMY]/)[1]
11
+ }), o = (e, t, n) => `${n}${t.startsWith(e) && t.endsWith(e) ? t.slice(e.length, t.length - e.length) : " – "}${n}`;
12
+ function s(i, s, c) {
13
+ let l = n[s], u = n[c];
14
+ if (!l || !u) return null;
15
+ let d = e(i.dateFormatSingle, i.monthFormatSingle), f = t(i.monthFormatSingle);
16
+ if (!d || !f) return null;
17
+ let p = i.dateFormatSingle.match(r) ?? [], m = i.monthFormatSingle.match(r) ?? [], h = (e, t, n) => {
18
+ let { order: r, separator: i } = a(e);
19
+ return r.map((e) => t[n.indexOf(e)]).join(i);
20
+ }, g = l.date === u.date ? i.dateFormatSingle : h(l.date, p, d.order), _ = l.month === u.month ? i.monthFormatSingle : h(l.month, m, f.order), v = {
21
+ ...l.am !== u.am || l.pm !== u.pm ? {
22
+ meridiemField: `${l.am}/${l.pm}`,
23
+ meridiemAm: l.am,
24
+ meridiemPm: l.pm
36
25
  } : {
37
- meridiemField: r.meridiemField,
38
- meridiemAm: r.meridiemAm,
39
- meridiemPm: r.meridiemPm
26
+ meridiemField: i.meridiemField,
27
+ meridiemAm: i.meridiemAm,
28
+ meridiemPm: i.meridiemPm
40
29
  },
41
- dateFormatSingle: h,
42
- dateFormatRange: o(r.dateFormatSingle, r.dateFormatRange, h),
43
- monthFormatSingle: g,
44
- monthFormatRange: o(r.monthFormatSingle, r.monthFormatRange, g)
30
+ dateFormatSingle: g,
31
+ dateFormatRange: o(i.dateFormatSingle, i.dateFormatRange, g),
32
+ monthFormatSingle: _,
33
+ monthFormatRange: o(i.monthFormatSingle, i.monthFormatRange, _)
45
34
  };
46
- return Object.keys(y).every((e) => y[e] === r[e]) ? null : y;
35
+ return Object.keys(v).every((e) => v[e] === i[e]) ? null : v;
47
36
  }
48
37
  export { s as regionHints };
package/dist/icon-scan.js CHANGED
@@ -3,20 +3,20 @@ import { existsSync as t, readFileSync as n } from "node:fs";
3
3
  import { dirname as r, isAbsolute as i, join as a, relative as o, resolve as s, sep as c } from "node:path";
4
4
  import l from "ignore";
5
5
  import * as u from "node:crypto";
6
- import { mkdir as d, readdir as f, stat as p, writeFile as m } from "node:fs/promises";
7
- import { availableParallelism as h } from "node:os";
8
- import { Worker as g } from "node:worker_threads";
6
+ import { mkdir as d, readdir as f, rename as p, rm as m, stat as h, writeFile as g } from "node:fs/promises";
7
+ import { availableParallelism as _ } from "node:os";
8
+ import { Worker as v } from "node:worker_threads";
9
9
  // src/icon-scan.ts
10
- var _ = /* @__PURE__ */ new Set([
10
+ var y = /* @__PURE__ */ new Set([
11
11
  "node_modules",
12
12
  "vendor",
13
13
  "storage"
14
- ]), v = 268435456, y = 8192, b = 48, x = 1500, S = 64, C = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
15
- function w(e) {
16
- let t = [...e].sort((e, t) => t.length - e.length).map(C).join("|");
14
+ ]), b = 268435456, x = 8192, S = 48, C = 1500, w = 64, T = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
15
+ function E(e) {
16
+ let t = [...e].sort((e, t) => t.length - e.length).map(T).join("|");
17
17
  return RegExp(`(?<![A-Za-z0-9_-])(${t}):([a-z0-9][a-z0-9-]*)`, "g");
18
18
  }
19
- function T(e, t) {
19
+ function D(e, t) {
20
20
  let n = e.toString("latin1"), r = /* @__PURE__ */ new Set();
21
21
  t.lastIndex = 0;
22
22
  for (let e of n.matchAll(t)) {
@@ -25,8 +25,8 @@ function T(e, t) {
25
25
  }
26
26
  return [...r];
27
27
  }
28
- var E = /[*?[{]/, D = (e) => E.test(e);
29
- function O(e) {
28
+ var O = /[*?[{]/, k = (e) => O.test(e);
29
+ function A(e) {
30
30
  let t = "^";
31
31
  for (let n = 0; n < e.length; n++) {
32
32
  let r = e[n];
@@ -37,17 +37,17 @@ function O(e) {
37
37
  r === -1 ? t += "\\[" : (t += `[${e.slice(n + 1, r).replace(/\\/g, "\\\\")}]`, n = r);
38
38
  } else if (r === "{") {
39
39
  let r = e.indexOf("}", n + 1);
40
- r === -1 ? t += "\\{" : (t += `(?:${e.slice(n + 1, r).split(",").map(C).join("|")})`, n = r);
41
- } else t += C(r);
40
+ r === -1 ? t += "\\{" : (t += `(?:${e.slice(n + 1, r).split(",").map(T).join("|")})`, n = r);
41
+ } else t += T(r);
42
42
  }
43
43
  return RegExp(t + "$");
44
44
  }
45
- var k = (e) => c === "/" ? e : e.split(c).join("/");
46
- function A(e, t) {
45
+ var j = (e) => c === "/" ? e : e.split(c).join("/");
46
+ function M(e, t) {
47
47
  let n = o(e, t);
48
48
  return n === "" || !n.startsWith("..") && !i(n);
49
49
  }
50
- function j(e) {
50
+ function N(e) {
51
51
  let n = [], i = r(e), o = -1;
52
52
  for (;;) {
53
53
  if (n.push(i), t(a(i, ".git"))) {
@@ -59,14 +59,14 @@ function j(e) {
59
59
  i = e;
60
60
  }
61
61
  return o === -1 ? [] : n.slice(0, o).reverse().flatMap((e) => {
62
- let t = M(e);
62
+ let t = P(e);
63
63
  return t ? [{
64
64
  dir: e,
65
65
  ig: t
66
66
  }] : [];
67
67
  });
68
68
  }
69
- function M(e) {
69
+ function P(e) {
70
70
  let r = a(e, ".gitignore");
71
71
  try {
72
72
  return t(r) ? l().add(n(r, "utf-8")) : null;
@@ -74,10 +74,10 @@ function M(e) {
74
74
  return null;
75
75
  }
76
76
  }
77
- function N(e, t, n) {
77
+ function F(e, t, n) {
78
78
  let r = !1;
79
79
  for (let { dir: i, ig: a } of e) {
80
- let e = k(o(i, t));
80
+ let e = j(o(i, t));
81
81
  if (!e || e.startsWith("..")) continue;
82
82
  n && (e += "/");
83
83
  let s = a.test(e);
@@ -85,7 +85,7 @@ function N(e, t, n) {
85
85
  }
86
86
  return r;
87
87
  }
88
- function P(e, t, n) {
88
+ function I(e, t, n) {
89
89
  let r = n.needles.map((e) => Buffer.from(e, "latin1")), i = new RegExp(n.regexSource, "g"), a = t.hash ? (e) => t.hash("sha1", e, "hex") : (e) => t.createHash("sha1").update(e).digest("hex"), o = (t, r) => {
90
90
  let i = Math.min(r, n.probeBytes), a = Buffer.allocUnsafe(i), o = e.readSync(t, a, 0, i, 0);
91
91
  if (a.subarray(0, o).indexOf(0) !== -1) return null;
@@ -169,23 +169,23 @@ function P(e, t, n) {
169
169
  }
170
170
  };
171
171
  }
172
- var F = `
172
+ var L = `
173
173
  const { parentPort, workerData } = require('node:worker_threads');
174
- const scan = (${P.toString()})(require('node:fs'), require('node:crypto'), workerData);
174
+ const scan = (${I.toString()})(require('node:fs'), require('node:crypto'), workerData);
175
175
  parentPort.on('message', (jobs) => parentPort.postMessage(jobs.map(scan)));
176
176
  `;
177
- function I(e) {
177
+ function R(e) {
178
178
  return Math.max(2, Math.min(4, e - 1));
179
179
  }
180
- function L(e, t) {
181
- return Array.from({ length: e }, () => new g(F, {
180
+ function z(e, t) {
181
+ return Array.from({ length: e }, () => new v(L, {
182
182
  eval: !0,
183
183
  workerData: t
184
184
  }));
185
185
  }
186
- async function R(e, t) {
186
+ async function B(e, t) {
187
187
  let n = [], r = [];
188
- for (let t = 0; t < e.length; t += S) r.push(e.slice(t, t + S));
188
+ for (let t = 0; t < e.length; t += w) r.push(e.slice(t, t + w));
189
189
  let i = 0;
190
190
  try {
191
191
  await Promise.all(t.map((e) => new Promise((t, a) => {
@@ -205,7 +205,7 @@ async function R(e, t) {
205
205
  }
206
206
  return n;
207
207
  }
208
- async function z(e, t, n) {
208
+ async function V(e, t, n) {
209
209
  let r = Array(e.length), i = 0;
210
210
  return await Promise.all(Array.from({ length: Math.min(t, e.length) }, async () => {
211
211
  for (;;) {
@@ -215,23 +215,23 @@ async function z(e, t, n) {
215
215
  }
216
216
  })), r;
217
217
  }
218
- var B = class {
218
+ var H = class {
219
219
  constructor(t) {
220
220
  this.resolveMemo = /* @__PURE__ */ new Map(), this.gitignoreMemo = /* @__PURE__ */ new Map(), this.entries = /* @__PURE__ */ new Map(), this.cold = !0, this.dirty = !1, this.lastWorkers = 0, this.cfg = t, this.fileOptions = t.prefixes.length ? {
221
221
  needles: t.prefixes.map((e) => `${e}:`),
222
- regexSource: w(t.prefixes).source,
222
+ regexSource: E(t.prefixes).source,
223
223
  maxFileSize: t.scanner.maxFileSize ?? 268435456,
224
- probeBytes: y
225
- } : null, this.scanOne = this.fileOptions ? P(e, u, this.fileOptions) : null, this.workerThreshold = t.workerThreshold ?? 1500;
224
+ probeBytes: x
225
+ } : null, this.scanOne = this.fileOptions ? I(e, u, this.fileOptions) : null, this.workerThreshold = t.workerThreshold ?? 1500;
226
226
  let n = t.scanner.exclude ?? [];
227
227
  this.excludes = n.length ? l().add(n) : null, this.bases = [{
228
228
  dir: t.root,
229
229
  match: null,
230
- ancestors: j(t.root)
230
+ ancestors: N(t.root)
231
231
  }, ...(t.scanner.include ?? []).map((e) => this.includeBase(e))];
232
232
  }
233
233
  get includeDirs() {
234
- return this.bases.slice(1).map((e) => e.dir).filter((e) => !A(this.cfg.root, e));
234
+ return this.bases.slice(1).map((e) => e.dir).filter((e) => !M(this.cfg.root, e));
235
235
  }
236
236
  get icons() {
237
237
  let e = /* @__PURE__ */ new Set();
@@ -239,7 +239,7 @@ var B = class {
239
239
  return e;
240
240
  }
241
241
  includeBase(e) {
242
- let t = k(e).split("/"), n = t.findIndex((e) => D(e));
242
+ let t = j(e).split("/"), n = t.findIndex((e) => k(e));
243
243
  if (n === -1) return {
244
244
  dir: s(this.cfg.root, e),
245
245
  match: null,
@@ -248,36 +248,36 @@ var B = class {
248
248
  let r = t.slice(0, n).join("/"), i = t.slice(n).join("/");
249
249
  return {
250
250
  dir: s(this.cfg.root, r || "."),
251
- match: O(i),
251
+ match: A(i),
252
252
  ancestors: []
253
253
  };
254
254
  }
255
255
  gitignoreFor(e) {
256
256
  let t = this.gitignoreMemo.get(e);
257
- return t === void 0 && (t = M(e), this.gitignoreMemo.set(e, t)), t;
257
+ return t === void 0 && (t = P(e), this.gitignoreMemo.set(e, t)), t;
258
258
  }
259
259
  resetGitignores() {
260
- this.gitignoreMemo.clear(), this.bases[0].ancestors = j(this.cfg.root);
260
+ this.gitignoreMemo.clear(), this.bases[0].ancestors = N(this.cfg.root);
261
261
  }
262
262
  isGitignored(e, t, n) {
263
- return N(e, t, n);
263
+ return F(e, t, n);
264
264
  }
265
265
  isExcluded(e, t, n) {
266
266
  if (!this.excludes) return !1;
267
- let r = A(this.cfg.root, t) ? this.cfg.root : e.dir, i = k(o(r, t));
267
+ let r = M(this.cfg.root, t) ? this.cfg.root : e.dir, i = j(o(r, t));
268
268
  return !i || i.startsWith("..") ? !1 : (n && (i += "/"), this.excludes.ignores(i));
269
269
  }
270
270
  admits(e, t, n, r, i) {
271
- if (n.startsWith(".") || r && (_.has(n) || t === this.cfg.outDir) || this.isGitignored(i, t, r) || this.isExcluded(e, t, r)) return !1;
271
+ if (n.startsWith(".") || r && (y.has(n) || t === this.cfg.outDir) || this.isGitignored(i, t, r) || this.isExcluded(e, t, r)) return !1;
272
272
  if (!r && e.match) {
273
- let n = k(o(e.dir, t));
273
+ let n = j(o(e.dir, t));
274
274
  if (!e.match.test(n)) return !1;
275
275
  }
276
276
  return !0;
277
277
  }
278
278
  isCandidate(e) {
279
279
  e = s(e);
280
- let t = this.bases.find((t) => A(t.dir, e));
280
+ let t = this.bases.find((t) => M(t.dir, e));
281
281
  if (!t) return !1;
282
282
  if (e === t.dir) return t.match === null;
283
283
  let n = [...t.ancestors], r = this.gitignoreFor(t.dir);
@@ -285,7 +285,7 @@ var B = class {
285
285
  dir: t.dir,
286
286
  ig: r
287
287
  });
288
- let i = k(o(t.dir, e)).split("/"), c = t.dir;
288
+ let i = j(o(t.dir, e)).split("/"), c = t.dir;
289
289
  for (let e = 0; e < i.length; e++) {
290
290
  let r = i[e], o = a(c, r), s = e < i.length - 1;
291
291
  if (!this.admits(t, o, r, s, n)) return !1;
@@ -322,7 +322,7 @@ var B = class {
322
322
  for (let t of this.bases) {
323
323
  let n;
324
324
  try {
325
- n = await p(t.dir);
325
+ n = await h(t.dir);
326
326
  } catch {
327
327
  continue;
328
328
  }
@@ -373,7 +373,7 @@ var B = class {
373
373
  }
374
374
  async statOnly(e) {
375
375
  try {
376
- let t = await p(e);
376
+ let t = await h(e);
377
377
  return t.isFile() ? {
378
378
  size: t.size,
379
379
  mtime: t.mtimeMs,
@@ -403,32 +403,32 @@ var B = class {
403
403
  prev: t.get(e) ?? null
404
404
  }));
405
405
  if (n && this.useWorkers(r.length)) try {
406
- let e = await R(r, n);
406
+ let e = await B(r, n);
407
407
  return this.lastWorkers = n.length, e;
408
408
  } catch {}
409
409
  else n && Promise.all(n.map((e) => e.terminate()));
410
410
  this.lastWorkers = 0;
411
411
  let i = [];
412
- for (let e = 0; e < r.length; e += S) {
413
- for (let t of r.slice(e, e + S)) i.push(this.scanOne(t));
414
- e + S < r.length && await new Promise((e) => setImmediate(e));
412
+ for (let e = 0; e < r.length; e += w) {
413
+ for (let t of r.slice(e, e + w)) i.push(this.scanOne(t));
414
+ e + w < r.length && await new Promise((e) => setImmediate(e));
415
415
  }
416
416
  return i;
417
417
  }
418
418
  loadCache() {
419
419
  try {
420
420
  let e = JSON.parse(n(this.cfg.cacheFile, "utf-8"));
421
- if (e.version === 4 && e.key === this.cfg.cacheKey && e.entries && typeof e.entries == "object") return this.cold = !1, new Map(Object.entries(e.entries));
421
+ if (e.version === 4 && e.key === this.cfg.cacheKey && e.entries && typeof e.entries == "object") return this.cold = !1, new Map(Object.entries(e.entries).filter(([, e]) => U(e)));
422
422
  } catch {}
423
423
  return this.cold = !0, /* @__PURE__ */ new Map();
424
424
  }
425
425
  async scan() {
426
- let e = performance.now(), t = this.loadCache(), n = this.cold ? 2 ** 53 - 1 : t.size, r = this.fileOptions && this.useWorkers(n) ? L(I(h()), this.fileOptions) : null, i = await this.collectFiles(), a = /* @__PURE__ */ new Map(), o = 0, s = 0, c = 0;
426
+ let e = performance.now(), t = this.loadCache(), n = this.cold ? 2 ** 53 - 1 : t.size, r = this.fileOptions && this.useWorkers(n) ? z(R(_()), this.fileOptions) : null, i = await this.collectFiles(), a = /* @__PURE__ */ new Map(), o = 0, s = 0, c = 0;
427
427
  if (this.scanOne) for (let e of await this.scanAll(i, t, r)) {
428
428
  let n = this.fold(e, t.get(e.path));
429
429
  n.read && o++, n.extracted && s++, n.entry ? a.set(e.path, n.entry) : c++;
430
430
  }
431
- else await z(i, b, async (e) => {
431
+ else await V(i, S, async (e) => {
432
432
  let t = await this.statOnly(e);
433
433
  t ? a.set(e, t) : c++;
434
434
  });
@@ -445,12 +445,12 @@ var B = class {
445
445
  async updateFile(e) {
446
446
  if (e = s(e), !this.isCandidate(e)) return this.removeFile(e);
447
447
  let t = this.icons, n = await this.scanFile(e, this.entries.get(e));
448
- return n.entry ? this.entries.set(e, n.entry) : this.entries.delete(e), this.dirty = !0, !V(t, this.icons);
448
+ return n.entry ? this.entries.set(e, n.entry) : this.entries.delete(e), this.dirty = !0, !W(t, this.icons);
449
449
  }
450
450
  removeFile(e) {
451
451
  if (e = s(e), !this.entries.has(e)) return !1;
452
452
  let t = this.icons;
453
- return this.entries.delete(e), this.dirty = !0, !V(t, this.icons);
453
+ return this.entries.delete(e), this.dirty = !0, !W(t, this.icons);
454
454
  }
455
455
  async persist() {
456
456
  if (!this.dirty) return;
@@ -459,18 +459,25 @@ var B = class {
459
459
  version: 4,
460
460
  key: this.cfg.cacheKey,
461
461
  entries: Object.fromEntries(this.entries)
462
- };
462
+ }, t = `${this.cfg.cacheFile}.${process.pid}-${u.randomUUID()}.tmp`;
463
463
  try {
464
- await d(r(this.cfg.cacheFile), { recursive: !0 }), await m(this.cfg.cacheFile, JSON.stringify(e), "utf-8");
465
- } catch {}
464
+ await d(r(this.cfg.cacheFile), { recursive: !0 }), await g(t, JSON.stringify(e), "utf-8"), await p(t, this.cfg.cacheFile);
465
+ } catch {
466
+ await m(t, { force: !0 }).catch(() => {});
467
+ }
466
468
  }
467
469
  };
468
- function V(e, t) {
470
+ function U(e) {
471
+ if (!e || typeof e != "object") return !1;
472
+ let t = e;
473
+ return typeof t.size == "number" && typeof t.mtime == "number" && typeof t.hash == "string" && Array.isArray(t.icons) && t.icons.every((e) => typeof e == "string");
474
+ }
475
+ function W(e, t) {
469
476
  if (e.size !== t.size) return !1;
470
477
  for (let n of e) if (!t.has(n)) return !1;
471
478
  return !0;
472
479
  }
473
- function H(e) {
480
+ function G(e) {
474
481
  let n = s(e);
475
482
  for (;;) {
476
483
  if (t(a(n, "node_modules"))) return a(n, "node_modules", ".cache", "bitboss-ui", "icon-scan.json");
@@ -480,4 +487,4 @@ function H(e) {
480
487
  }
481
488
  return a(e, "node_modules", ".cache", "bitboss-ui", "icon-scan.json");
482
489
  }
483
- export { _ as ALWAYS_SKIPPED_DIRS, v as DEFAULT_MAX_FILE_SIZE, x as DEFAULT_WORKER_THRESHOLD, B as IconScanner, j as ancestorGitignores, P as createFileScanner, T as extractIconCandidates, O as globToRegExp, D as hasGlobMagic, w as iconLiteralRegExp, H as iconScanCacheFile, N as isGitignored, M as readGitignore, I as workerCountFor };
490
+ export { y as ALWAYS_SKIPPED_DIRS, b as DEFAULT_MAX_FILE_SIZE, C as DEFAULT_WORKER_THRESHOLD, H as IconScanner, N as ancestorGitignores, I as createFileScanner, D as extractIconCandidates, A as globToRegExp, k as hasGlobMagic, E as iconLiteralRegExp, G as iconScanCacheFile, F as isGitignored, P as readGitignore, R as workerCountFor };