decocms 2.311.8 → 2.311.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/client/assets/{AlertCircle-9Ey0HjEK.js → AlertCircle-CBFejk6X.js} +1 -1
  2. package/dist/client/assets/{Archive-DPagM8Sv.js → Archive-iAwIFcLN.js} +1 -1
  3. package/dist/client/assets/{ArrowNarrowLeft-CX80utcZ.js → ArrowNarrowLeft-C0NWe8i5.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-Dnm-Dm1H.js → ArrowUpRight-wDGVfxe4.js} +1 -1
  5. package/dist/client/assets/{Check-C0YCNcAk.js → Check-BzVO1AiZ.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-DC6iqfFI.js → CheckCircle-B7pbvHXn.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-Cwqb-1uD.js → ChevronDown-Deq9bkeU.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-CrWz1sFy.js → ChevronRight-De9CjTSZ.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BMBmNR0B.js → ChevronUp-B22gTkPS.js} +1 -1
  10. package/dist/client/assets/{Container-Bk9UG2qc.js → Container-10kbY0mV.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-B7yU948Y.js → DotsVertical-B0gKWs5D.js} +1 -1
  12. package/dist/client/assets/{LinkExternal01-DxfMOMNm.js → LinkExternal01-DkQ5Dk0s.js} +1 -1
  13. package/dist/client/assets/{Lock01-Cds15CcD.js → Lock01-CHNFEFTO.js} +1 -1
  14. package/dist/client/assets/{Palette-BhAbwiYB.js → Palette-B7UA48pi.js} +1 -1
  15. package/dist/client/assets/{Play-DT05vsyX.js → Play-BunaO9my.js} +1 -1
  16. package/dist/client/assets/{Plus-LaAbD5qL.js → Plus-DlXyaJQM.js} +1 -1
  17. package/dist/client/assets/{RefreshCcw01-BS-aU6o_.js → RefreshCcw01-BsycvfGb.js} +1 -1
  18. package/dist/client/assets/{SearchMd-DLpvei6Y.js → SearchMd-15kzRVQe.js} +1 -1
  19. package/dist/client/assets/{Settings02-DIJ_hqNi.js → Settings02-DVi1PM0X.js} +1 -1
  20. package/dist/client/assets/{Shield01-B0gusvIt.js → Shield01-B70wMBqd.js} +1 -1
  21. package/dist/client/assets/{Star01-Dr3hv_f2.js → Star01-CJoi6RDa.js} +1 -1
  22. package/dist/client/assets/{Sun-Cjk_RdSq.js → Sun-CGoBYMaF.js} +1 -1
  23. package/dist/client/assets/{Tool01-CKIVHH97.js → Tool01-D48iIlf1.js} +1 -1
  24. package/dist/client/assets/{Trash01-CGR2s5lX.js → Trash01-r5gnirq_.js} +1 -1
  25. package/dist/client/assets/{User01-TUOjLrvV.js → User01-DJ7t0J9b.js} +1 -1
  26. package/dist/client/assets/{Users03-CrFC9gy5.js → Users03-DYLtKI27.js} +1 -1
  27. package/dist/client/assets/{X-EkEnxljM.js → X-BkKDRlJI.js} +1 -1
  28. package/dist/client/assets/{XCircle-DX3ew0Vv.js → XCircle-sedM5Yzu.js} +1 -1
  29. package/dist/client/assets/{XClose-Bgl_mrN0.js → XClose-Bx_xQQD_.js} +1 -1
  30. package/dist/client/assets/{Zap-nGrPPn6s.js → Zap-Cf_cpNNU.js} +1 -1
  31. package/dist/client/assets/{ZapSquare-3WrsQC0a.js → ZapSquare-DlRSLgAv.js} +1 -1
  32. package/dist/client/assets/{accordion-CVBGYkjx.js → accordion-DT47aOa3.js} +1 -1
  33. package/dist/client/assets/{agent-icon-C5r21-mU.js → agent-icon-DUbGEO2S.js} +1 -1
  34. package/dist/client/assets/{agents-list-DYSwFq4O.js → agents-list-rwKMRHld.js} +1 -1
  35. package/dist/client/assets/ai-providers-CRf0IUiu.js +1 -0
  36. package/dist/client/assets/{alert-dialog-CUlBW44D.js → alert-dialog-2Jj762BJ.js} +1 -1
  37. package/dist/client/assets/{auth-catchall-b0gnrvFE.js → auth-catchall-DTur9gCU.js} +1 -1
  38. package/dist/client/assets/{automation-list-row-B0Yyrl0C.js → automation-list-row-Cuemsvmv.js} +1 -1
  39. package/dist/client/assets/{automations-BoyHWA09.js → automations-DN3LYNZV.js} +1 -1
  40. package/dist/client/assets/{avatar-CCEBXDhS.js → avatar-BoueLWcb.js} +1 -1
  41. package/dist/client/assets/{badge-Br91qQU7.js → badge-kdIe7Szq.js} +1 -1
  42. package/dist/client/assets/{brand-context-BssJ3FOZ.js → brand-context-C39FhTOD.js} +1 -1
  43. package/dist/client/assets/{card-DQgc505G.js → card-1EoqQ-Q7.js} +1 -1
  44. package/dist/client/assets/{chat-context-D0lbPtlR.js → chat-context-CqLR71Tu.js} +1 -1
  45. package/dist/client/assets/{checkbox-BCxF1VyO.js → checkbox-CL4jg0mR.js} +1 -1
  46. package/dist/client/assets/{collection-detail-BPMkE5rf.js → collection-detail-Be93090Z.js} +1 -1
  47. package/dist/client/assets/{collection-display-button-DTW3X--x.js → collection-display-button-BWk8xHdj.js} +1 -1
  48. package/dist/client/assets/{collection-search-DzJ2_6S7.js → collection-search-B-8Jnp5p.js} +1 -1
  49. package/dist/client/assets/{collection-search-Cm33ynx1.js → collection-search-BOMyE6Ld.js} +1 -1
  50. package/dist/client/assets/{collection-table-wrapper-D6-pSdID.js → collection-table-wrapper-Cb-FxojL.js} +1 -1
  51. package/dist/client/assets/{collection-tabs-DNkzHSYG.js → collection-tabs-Li95C-8Z.js} +1 -1
  52. package/dist/client/assets/{collections-C9L2aOYp.js → collections-BpcdhWS9.js} +1 -1
  53. package/dist/client/assets/{command-C-2IxKk5.js → command-D-VqtTkt.js} +1 -1
  54. package/dist/client/assets/{connection-card-BoxVMaxE.js → connection-card-D4MG7ceA.js} +1 -1
  55. package/dist/client/assets/{connection-detail-_uhhok2G.js → connection-detail-C9HOgjUN.js} +1 -1
  56. package/dist/client/assets/{connection-form-helpers-o8Xx8W0s.js → connection-form-helpers-C96WddUN.js} +1 -1
  57. package/dist/client/assets/{connections-BiBKwha4.js → connections-Dudt-pG4.js} +1 -1
  58. package/dist/client/assets/{constants--Dugzbiv.js → constants--Z68frQS.js} +1 -1
  59. package/dist/client/assets/{constants-CK0eEQbn.js → constants-BY3slQ5k.js} +1 -1
  60. package/dist/client/assets/{dialog-BxXbq3AD.js → dialog-2qod6XLb.js} +1 -1
  61. package/dist/client/assets/{domain-settings-C-3L2-eL.js → domain-settings-BXrvw6Lv.js} +1 -1
  62. package/dist/client/assets/{drawer-UeGl-sjm.js → drawer-DSH3rjuX.js} +1 -1
  63. package/dist/client/assets/{dropdown-menu-DQ7iI93C.js → dropdown-menu-CYyf-ZrC.js} +1 -1
  64. package/dist/client/assets/{dynamic-plugin-layout-Dn0vyVNY.js → dynamic-plugin-layout-RlhEpflE.js} +1 -1
  65. package/dist/client/assets/{empty-state-CKzOWRtK.js → empty-state-BdiBdNme.js} +1 -1
  66. package/dist/client/assets/{empty-state-D_f63UFh.js → empty-state-DebOy9XU.js} +1 -1
  67. package/dist/client/assets/{extract-connection-data-DMpmuOOJ.js → extract-connection-data-BTMDGqDD.js} +1 -1
  68. package/dist/client/assets/{features-DyUlYERL.js → features-Cxt-JPsD.js} +1 -1
  69. package/dist/client/assets/{form-BwE1BJrb.js → form-BxsxXSuZ.js} +1 -1
  70. package/dist/client/assets/{general-DUugdid2.js → general-u1Y39J62.js} +1 -1
  71. package/dist/client/assets/{index-C4DcQ8LW.js → index-0enbmaSe.js} +2 -2
  72. package/dist/client/assets/{index-CxyXuh3-.js → index-BNtQbO2i.js} +1 -1
  73. package/dist/client/assets/{index-DUyJmZSw.js → index-BVirFM6V.js} +1 -1
  74. package/dist/client/assets/{index-C1CY6-RI.js → index-Bna4Mzv7.js} +1 -1
  75. package/dist/client/assets/{index-D2MseDzL.js → index-CJ3mMCam.js} +1 -1
  76. package/dist/client/assets/{index-Cnh6l9lE.js → index-CbJD4O9M.js} +3 -3
  77. package/dist/client/assets/{index-cE983NnZ.js → index-Co04TeZ5.js} +1 -1
  78. package/dist/client/assets/{index-DLI7RfTF.js → index-CucV4lBd.js} +1 -1
  79. package/dist/client/assets/{index-C7x_kc-H.js → index-D1Os768e.js} +1 -1
  80. package/dist/client/assets/{index-CeMlJGK7.js → index-D9p0G3vk.js} +1 -1
  81. package/dist/client/assets/{index-DX5CKVPt.js → index-DKffdYnU.js} +1 -1
  82. package/dist/client/assets/{index-CpyFP_Y6.js → index-Dk7VTW9z.js} +1 -1
  83. package/dist/client/assets/index-DmW2ChV3.js +1 -0
  84. package/dist/client/assets/{index-B0gV229o.js → index-DyLEkJ9h.js} +1 -1
  85. package/dist/client/assets/{index-CwEMRsg9.js → index-fQuO2Dc3.js} +1 -1
  86. package/dist/client/assets/{index-cFrtNDeh.js → index-sxBFqhbB.js} +1 -1
  87. package/dist/client/assets/{infiniteQueryObserver-M5HXhTa-.js → infiniteQueryObserver-sxIykUWp.js} +1 -1
  88. package/dist/client/assets/{input-Zc7XqLBz.js → input-CZy7VBF-.js} +1 -1
  89. package/dist/client/assets/{integration-icon-dIK4SySX.js → integration-icon-Cgu3nEbl.js} +1 -1
  90. package/dist/client/assets/{label-DQVfYyGa.js → label-BhPoqbH1.js} +1 -1
  91. package/dist/client/assets/{layout-DoXFaFc9.js → layout-jAXEQlv4.js} +1 -1
  92. package/dist/client/assets/{lean-canvas-recruit-modal-B6jYbHdS.js → lean-canvas-recruit-modal-Mo-uvZiE.js} +1 -1
  93. package/dist/client/assets/{login-C53Yny6q.js → login-BgB-8JX_.js} +1 -1
  94. package/dist/client/assets/{members-CXQHdw2n.js → members-D5i4jyvH.js} +1 -1
  95. package/dist/client/assets/{monaco-editor-BluEEKw9.js → monaco-editor-D-E1NsT_.js} +1 -1
  96. package/dist/client/assets/{monitoring-stats-row-C7uh_AJ1.js → monitoring-stats-row-CaU12GnW.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-B18mSbUX.js → oauth-callback-BrTY445n.js} +1 -1
  98. package/dist/client/assets/{oauth-callback-ai-provider-B5LWXlVw.js → oauth-callback-ai-provider-BA8nRDph.js} +1 -1
  99. package/dist/client/assets/{onboarding-B9N5e87t.js → onboarding-CAft2_BY.js} +1 -1
  100. package/dist/client/assets/{org-layout-HZO2enZQ.js → org-layout-C0XY3j3w.js} +1 -1
  101. package/dist/client/assets/{org-plugin-layout-X1oNY1R9.js → org-plugin-layout-CiPGTy9y.js} +1 -1
  102. package/dist/client/assets/{pair-Cl7nEWLx.js → pair-DyP8v5ZE.js} +1 -1
  103. package/dist/client/assets/{plugin-empty-state-mFDhSKtm.js → plugin-empty-state-CPC4iNPZ.js} +1 -1
  104. package/dist/client/assets/{plugin-header-BzIWRAUv.js → plugin-header-BaIUgM8O.js} +1 -1
  105. package/dist/client/assets/{plugin-layout-Ckgza9x1.js → plugin-layout-CP7WeU3S.js} +1 -1
  106. package/dist/client/assets/{popover-fFiZRgP_.js → popover-g5bCjakL.js} +1 -1
  107. package/dist/client/assets/{profile-CDEKCuy5.js → profile-DE9V4UAe.js} +1 -1
  108. package/dist/client/assets/{project-app-view-DYhcROSR.js → project-app-view-CsUA3eWI.js} +1 -1
  109. package/dist/client/assets/registry-Cth6leQk.js +2 -0
  110. package/dist/client/assets/{registry-layout-DhmXFNYV.js → registry-layout-IV9o5tdh.js} +1 -1
  111. package/dist/client/assets/{required-auth-layout-DdqUlG6N.js → required-auth-layout-CbwdpaRZ.js} +1 -1
  112. package/dist/client/assets/{reset-password-CG-HQXTs.js → reset-password-HK92arRg.js} +1 -1
  113. package/dist/client/assets/{roles-BToZK3zI.js → roles-BWPZWJaM.js} +1 -1
  114. package/dist/client/assets/{scroll-area-DDk0Exbn.js → scroll-area-DPp3zriG.js} +1 -1
  115. package/dist/client/assets/{search-input-BHdl2Sic.js → search-input-DFpePjxv.js} +1 -1
  116. package/dist/client/assets/{select-CdC5gLdi.js → select-DNBVly7-.js} +1 -1
  117. package/dist/client/assets/{select-model-BkJ0KPp-.js → select-model-DeUWMCqm.js} +1 -1
  118. package/dist/client/assets/settings-layout-D82thllZ.js +1 -0
  119. package/dist/client/assets/{settings-section-Dab3WzAF.js → settings-section-DLmrAiBm.js} +1 -1
  120. package/dist/client/assets/{shell-layout-lDvOUVZf.js → shell-layout-R4iIIify.js} +1 -1
  121. package/dist/client/assets/{skeleton-jCfWKtEG.js → skeleton-D3XIs5gC.js} +1 -1
  122. package/dist/client/assets/{sso-y81n9RBZ.js → sso-DM0bDf34.js} +1 -1
  123. package/dist/client/assets/{store-CvYwjdEK.js → store-DBYsfjv2.js} +1 -1
  124. package/dist/client/assets/store-registry-Be_BNgv2.js +2 -0
  125. package/dist/client/assets/{switch-fkgGJ6Y_.js → switch-ChHlr-0p.js} +1 -1
  126. package/dist/client/assets/{table-B_6GznCu.js → table-D-EfNZTA.js} +1 -1
  127. package/dist/client/assets/{tabs-qDZiCngi.js → tabs-C3Y9bmk3.js} +1 -1
  128. package/dist/client/assets/{task-status-BaBW3UXJ.js → task-status-Byb391SI.js} +1 -1
  129. package/dist/client/assets/{textarea-C2BrY9Le.js → textarea-TEFGem1K.js} +1 -1
  130. package/dist/client/assets/{toggle-group-B-jspLpZ.js → toggle-group-DYAaGRJB.js} +1 -1
  131. package/dist/client/assets/{tools-list-6JBD-Zot.js → tools-list-DHP55xBU.js} +1 -1
  132. package/dist/client/assets/{tooltip-CC8e8bYw.js → tooltip-DZ4hI4gi.js} +1 -1
  133. package/dist/client/assets/{types-BrKOUOZu.js → types-D599MtjY.js} +1 -1
  134. package/dist/client/assets/{use-ai-providers-B2sC2ALY.js → use-ai-providers-DSutNjVp.js} +1 -1
  135. package/dist/client/assets/{use-collections-CeVghh3K.js → use-collections-BbQAdI3o.js} +1 -1
  136. package/dist/client/assets/{use-connection-Cyq0iJ5j.js → use-connection-CrEyI3P_.js} +1 -1
  137. package/dist/client/assets/{use-copy-DR2hWJaD.js → use-copy-Df3K3sfk.js} +1 -1
  138. package/dist/client/assets/{use-create-virtual-mcp-DGMHB2cc.js → use-create-virtual-mcp-t8SMbFkV.js} +1 -1
  139. package/dist/client/assets/{use-debounced-autosave-DwUIvZBw.js → use-debounced-autosave-IAh8TU4o.js} +1 -1
  140. package/dist/client/assets/{use-decopilot-events-YJpIJj4i.js → use-decopilot-events-CxAD33F2.js} +1 -1
  141. package/dist/client/assets/{use-delete-connection-BkbDfapg.js → use-delete-connection-zP-NAmKT.js} +1 -1
  142. package/dist/client/assets/{use-infinite-scroll-Hb3Vf_3I.js → use-infinite-scroll-hrqUZmbE.js} +1 -1
  143. package/dist/client/assets/{use-list-state-wzK4SDnM.js → use-list-state-DsStSeaC.js} +1 -1
  144. package/dist/client/assets/{use-mcp-tools-CPgnB2kL.js → use-mcp-tools-kqffQmIa.js} +1 -1
  145. package/dist/client/assets/{use-members-BXnMgIf9.js → use-members-BqQiitMx.js} +1 -1
  146. package/dist/client/assets/{use-navigate-to-agent-BJNAm35_.js → use-navigate-to-agent-DkjTuG5H.js} +1 -1
  147. package/dist/client/assets/{use-org-auth-client-B2VsJjxT.js → use-org-auth-client-DM9zvqH-.js} +1 -1
  148. package/dist/client/assets/{use-org-sso-D98ffRJ_.js → use-org-sso-DFTMWioi.js} +1 -1
  149. package/dist/client/assets/{use-organization-roles-CsvLhbKb.js → use-organization-roles-CzgnOad2.js} +1 -1
  150. package/dist/client/assets/{use-organization-settings-SrrzYdc9.js → use-organization-settings-CZnRZbph.js} +1 -1
  151. package/dist/client/assets/{use-registry-connections-B0GzmRQn.js → use-registry-connections-CT-N1sCh.js} +1 -1
  152. package/dist/client/assets/{use-status-sounds-CtnKWsOu.js → use-status-sounds-Bewyc919.js} +1 -1
  153. package/dist/client/assets/{use-tasks-DToWWiz1.js → use-tasks-9cquzKq3.js} +1 -1
  154. package/dist/client/assets/{use-view-mode-BqpScb5m.js → use-view-mode-B2bqG4ko.js} +1 -1
  155. package/dist/client/assets/{use-virtual-mcp-DA2HdrC3.js → use-virtual-mcp-Bl5HfgtI.js} +1 -1
  156. package/dist/client/assets/useInfiniteQuery-P_vpKUlW.js +1 -0
  157. package/dist/client/assets/useSuspenseInfiniteQuery-CdjREh1b.js +1 -0
  158. package/dist/client/assets/{user-CrGRA0V7.js → user-BmqT7ATa.js} +1 -1
  159. package/dist/client/assets/{view-mode-toggle-DlPw4C1T.js → view-mode-toggle-DdV_2G2i.js} +1 -1
  160. package/dist/client/assets/{workflow-YCSeFh2m.js → workflow-Oj5odTn3.js} +1 -1
  161. package/dist/client/assets/workflow-detail-BT6eq7UZ.js +1 -0
  162. package/dist/client/index.html +1 -1
  163. package/dist/server/cli.js +86 -91
  164. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  165. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  166. package/dist/server/node_modules/{ansi-regex → ansi-styles}/package.json +13 -20
  167. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  168. package/dist/server/node_modules/onetime/index.d.ts +64 -0
  169. package/dist/server/node_modules/onetime/index.js +44 -0
  170. package/dist/server/node_modules/onetime/package.json +43 -0
  171. package/dist/server/node_modules/onetime/readme.md +94 -0
  172. package/dist/server/node_modules/pg/LICENSE +21 -0
  173. package/dist/server/node_modules/pg/README.md +95 -0
  174. package/dist/server/node_modules/pg/esm/index.mjs +20 -0
  175. package/dist/server/node_modules/pg/lib/client.js +743 -0
  176. package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
  177. package/dist/server/node_modules/pg/lib/connection.js +221 -0
  178. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
  179. package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
  180. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
  181. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
  182. package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
  183. package/dist/server/node_modules/pg/lib/defaults.js +91 -0
  184. package/dist/server/node_modules/pg/lib/index.js +73 -0
  185. package/dist/server/node_modules/pg/lib/native/client.js +323 -0
  186. package/dist/server/node_modules/pg/lib/native/index.js +2 -0
  187. package/dist/server/node_modules/pg/lib/native/query.js +165 -0
  188. package/dist/server/node_modules/pg/lib/query.js +252 -0
  189. package/dist/server/node_modules/pg/lib/result.js +109 -0
  190. package/dist/server/node_modules/pg/lib/stream.js +83 -0
  191. package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
  192. package/dist/server/node_modules/pg/lib/utils.js +217 -0
  193. package/dist/server/node_modules/pg/package.json +76 -0
  194. package/dist/server/server.js +85 -90
  195. package/package.json +1 -1
  196. package/dist/client/assets/ai-providers-C23uGGTh.js +0 -1
  197. package/dist/client/assets/index-BtV0adYp.js +0 -1
  198. package/dist/client/assets/registry-SRrrOWaz.js +0 -2
  199. package/dist/client/assets/settings-layout-C75rVJeh.js +0 -1
  200. package/dist/client/assets/store-registry-DNpjvrs_.js +0 -2
  201. package/dist/client/assets/useInfiniteQuery-DZyvg0dy.js +0 -1
  202. package/dist/client/assets/useSuspenseInfiniteQuery-DItg4qEF.js +0 -1
  203. package/dist/client/assets/workflow-detail-C-1jRApT.js +0 -1
  204. package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
  205. package/dist/server/node_modules/ansi-regex/index.js +0 -14
  206. package/dist/server/node_modules/ansi-regex/readme.md +0 -66
  207. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  208. package/dist/server/node_modules/emoji-regex/README.md +0 -107
  209. package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
  210. package/dist/server/node_modules/emoji-regex/index.js +0 -4
  211. package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
  212. package/dist/server/node_modules/emoji-regex/package.json +0 -45
  213. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  214. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  215. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  216. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  217. /package/dist/server/node_modules/{ansi-regex → ansi-styles}/license +0 -0
  218. /package/dist/server/node_modules/{is-fullwidth-code-point → onetime}/license +0 -0
@@ -0,0 +1,223 @@
1
+ const ANSI_BACKGROUND_OFFSET = 10;
2
+
3
+ const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
4
+
5
+ const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
6
+
7
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
8
+
9
+ const styles = {
10
+ modifier: {
11
+ reset: [0, 0],
12
+ // 21 isn't widely supported and 22 does the same thing
13
+ bold: [1, 22],
14
+ dim: [2, 22],
15
+ italic: [3, 23],
16
+ underline: [4, 24],
17
+ overline: [53, 55],
18
+ inverse: [7, 27],
19
+ hidden: [8, 28],
20
+ strikethrough: [9, 29],
21
+ },
22
+ color: {
23
+ black: [30, 39],
24
+ red: [31, 39],
25
+ green: [32, 39],
26
+ yellow: [33, 39],
27
+ blue: [34, 39],
28
+ magenta: [35, 39],
29
+ cyan: [36, 39],
30
+ white: [37, 39],
31
+
32
+ // Bright color
33
+ blackBright: [90, 39],
34
+ gray: [90, 39], // Alias of `blackBright`
35
+ grey: [90, 39], // Alias of `blackBright`
36
+ redBright: [91, 39],
37
+ greenBright: [92, 39],
38
+ yellowBright: [93, 39],
39
+ blueBright: [94, 39],
40
+ magentaBright: [95, 39],
41
+ cyanBright: [96, 39],
42
+ whiteBright: [97, 39],
43
+ },
44
+ bgColor: {
45
+ bgBlack: [40, 49],
46
+ bgRed: [41, 49],
47
+ bgGreen: [42, 49],
48
+ bgYellow: [43, 49],
49
+ bgBlue: [44, 49],
50
+ bgMagenta: [45, 49],
51
+ bgCyan: [46, 49],
52
+ bgWhite: [47, 49],
53
+
54
+ // Bright color
55
+ bgBlackBright: [100, 49],
56
+ bgGray: [100, 49], // Alias of `bgBlackBright`
57
+ bgGrey: [100, 49], // Alias of `bgBlackBright`
58
+ bgRedBright: [101, 49],
59
+ bgGreenBright: [102, 49],
60
+ bgYellowBright: [103, 49],
61
+ bgBlueBright: [104, 49],
62
+ bgMagentaBright: [105, 49],
63
+ bgCyanBright: [106, 49],
64
+ bgWhiteBright: [107, 49],
65
+ },
66
+ };
67
+
68
+ export const modifierNames = Object.keys(styles.modifier);
69
+ export const foregroundColorNames = Object.keys(styles.color);
70
+ export const backgroundColorNames = Object.keys(styles.bgColor);
71
+ export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
72
+
73
+ function assembleStyles() {
74
+ const codes = new Map();
75
+
76
+ for (const [groupName, group] of Object.entries(styles)) {
77
+ for (const [styleName, style] of Object.entries(group)) {
78
+ styles[styleName] = {
79
+ open: `\u001B[${style[0]}m`,
80
+ close: `\u001B[${style[1]}m`,
81
+ };
82
+
83
+ group[styleName] = styles[styleName];
84
+
85
+ codes.set(style[0], style[1]);
86
+ }
87
+
88
+ Object.defineProperty(styles, groupName, {
89
+ value: group,
90
+ enumerable: false,
91
+ });
92
+ }
93
+
94
+ Object.defineProperty(styles, 'codes', {
95
+ value: codes,
96
+ enumerable: false,
97
+ });
98
+
99
+ styles.color.close = '\u001B[39m';
100
+ styles.bgColor.close = '\u001B[49m';
101
+
102
+ styles.color.ansi = wrapAnsi16();
103
+ styles.color.ansi256 = wrapAnsi256();
104
+ styles.color.ansi16m = wrapAnsi16m();
105
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
106
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
107
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
108
+
109
+ // From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
110
+ Object.defineProperties(styles, {
111
+ rgbToAnsi256: {
112
+ value(red, green, blue) {
113
+ // We use the extended greyscale palette here, with the exception of
114
+ // black and white. normal palette only has 4 greyscale shades.
115
+ if (red === green && green === blue) {
116
+ if (red < 8) {
117
+ return 16;
118
+ }
119
+
120
+ if (red > 248) {
121
+ return 231;
122
+ }
123
+
124
+ return Math.round(((red - 8) / 247) * 24) + 232;
125
+ }
126
+
127
+ return 16
128
+ + (36 * Math.round(red / 255 * 5))
129
+ + (6 * Math.round(green / 255 * 5))
130
+ + Math.round(blue / 255 * 5);
131
+ },
132
+ enumerable: false,
133
+ },
134
+ hexToRgb: {
135
+ value(hex) {
136
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
137
+ if (!matches) {
138
+ return [0, 0, 0];
139
+ }
140
+
141
+ let [colorString] = matches;
142
+
143
+ if (colorString.length === 3) {
144
+ colorString = [...colorString].map(character => character + character).join('');
145
+ }
146
+
147
+ const integer = Number.parseInt(colorString, 16);
148
+
149
+ return [
150
+ /* eslint-disable no-bitwise */
151
+ (integer >> 16) & 0xFF,
152
+ (integer >> 8) & 0xFF,
153
+ integer & 0xFF,
154
+ /* eslint-enable no-bitwise */
155
+ ];
156
+ },
157
+ enumerable: false,
158
+ },
159
+ hexToAnsi256: {
160
+ value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
161
+ enumerable: false,
162
+ },
163
+ ansi256ToAnsi: {
164
+ value(code) {
165
+ if (code < 8) {
166
+ return 30 + code;
167
+ }
168
+
169
+ if (code < 16) {
170
+ return 90 + (code - 8);
171
+ }
172
+
173
+ let red;
174
+ let green;
175
+ let blue;
176
+
177
+ if (code >= 232) {
178
+ red = (((code - 232) * 10) + 8) / 255;
179
+ green = red;
180
+ blue = red;
181
+ } else {
182
+ code -= 16;
183
+
184
+ const remainder = code % 36;
185
+
186
+ red = Math.floor(code / 36) / 5;
187
+ green = Math.floor(remainder / 6) / 5;
188
+ blue = (remainder % 6) / 5;
189
+ }
190
+
191
+ const value = Math.max(red, green, blue) * 2;
192
+
193
+ if (value === 0) {
194
+ return 30;
195
+ }
196
+
197
+ // eslint-disable-next-line no-bitwise
198
+ let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
199
+
200
+ if (value === 2) {
201
+ result += 60;
202
+ }
203
+
204
+ return result;
205
+ },
206
+ enumerable: false,
207
+ },
208
+ rgbToAnsi: {
209
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
210
+ enumerable: false,
211
+ },
212
+ hexToAnsi: {
213
+ value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
214
+ enumerable: false,
215
+ },
216
+ });
217
+
218
+ return styles;
219
+ }
220
+
221
+ const ansiStyles = assembleStyles();
222
+
223
+ export default ansiStyles;
@@ -1,10 +1,10 @@
1
1
  {
2
- "name": "ansi-regex",
3
- "version": "6.2.2",
4
- "description": "Regular expression for matching ANSI escape codes",
2
+ "name": "ansi-styles",
3
+ "version": "6.2.3",
4
+ "description": "ANSI escape codes for styling strings in the terminal",
5
5
  "license": "MIT",
6
- "repository": "chalk/ansi-regex",
7
- "funding": "https://github.com/chalk/ansi-regex?sponsor=1",
6
+ "repository": "chalk/ansi-styles",
7
+ "funding": "https://github.com/chalk/ansi-styles?sponsor=1",
8
8
  "author": {
9
9
  "name": "Sindre Sorhus",
10
10
  "email": "sindresorhus@gmail.com",
@@ -12,14 +12,12 @@
12
12
  },
13
13
  "type": "module",
14
14
  "exports": "./index.js",
15
- "types": "./index.d.ts",
16
- "sideEffects": false,
17
15
  "engines": {
18
16
  "node": ">=12"
19
17
  },
20
18
  "scripts": {
21
19
  "test": "xo && ava && tsd",
22
- "view-supported": "node fixtures/view-codes.js"
20
+ "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor"
23
21
  },
24
22
  "files": [
25
23
  "index.js",
@@ -42,20 +40,15 @@
42
40
  "256",
43
41
  "shell",
44
42
  "xterm",
43
+ "log",
44
+ "logging",
45
45
  "command-line",
46
- "text",
47
- "regex",
48
- "regexp",
49
- "re",
50
- "match",
51
- "test",
52
- "find",
53
- "pattern"
46
+ "text"
54
47
  ],
55
48
  "devDependencies": {
56
- "ansi-escapes": "^5.0.0",
57
- "ava": "^3.15.0",
58
- "tsd": "^0.21.0",
59
- "xo": "^0.54.2"
49
+ "ava": "^6.1.3",
50
+ "svg-term-cli": "^2.1.1",
51
+ "tsd": "^0.31.1",
52
+ "xo": "^0.58.0"
60
53
  }
61
54
  }
@@ -0,0 +1,173 @@
1
+ # ansi-styles
2
+
3
+ > [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
4
+
5
+ You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
6
+
7
+ ![](screenshot.png)
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ npm install ansi-styles
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ import styles from 'ansi-styles';
19
+
20
+ console.log(`${styles.green.open}Hello world!${styles.green.close}`);
21
+
22
+
23
+ // Color conversion between 256/truecolor
24
+ // NOTE: When converting from truecolor to 256 colors, the original color
25
+ // may be degraded to fit the new color palette. This means terminals
26
+ // that do not support 16 million colors will best-match the
27
+ // original color.
28
+ console.log(`${styles.color.ansi(styles.rgbToAnsi(199, 20, 250))}Hello World${styles.color.close}`)
29
+ console.log(`${styles.color.ansi256(styles.rgbToAnsi256(199, 20, 250))}Hello World${styles.color.close}`)
30
+ console.log(`${styles.color.ansi16m(...styles.hexToRgb('#abcdef'))}Hello World${styles.color.close}`)
31
+ ```
32
+
33
+ ## API
34
+
35
+ ### `open` and `close`
36
+
37
+ Each style has an `open` and `close` property.
38
+
39
+ ### `modifierNames`, `foregroundColorNames`, `backgroundColorNames`, and `colorNames`
40
+
41
+ All supported style strings are exposed as an array of strings for convenience. `colorNames` is the combination of `foregroundColorNames` and `backgroundColorNames`.
42
+
43
+ This can be useful if you need to validate input:
44
+
45
+ ```js
46
+ import {modifierNames, foregroundColorNames} from 'ansi-styles';
47
+
48
+ console.log(modifierNames.includes('bold'));
49
+ //=> true
50
+
51
+ console.log(foregroundColorNames.includes('pink'));
52
+ //=> false
53
+ ```
54
+
55
+ ## Styles
56
+
57
+ ### Modifiers
58
+
59
+ - `reset`
60
+ - `bold`
61
+ - `dim`
62
+ - `italic` *(Not widely supported)*
63
+ - `underline`
64
+ - `overline` *Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.*
65
+ - `inverse`
66
+ - `hidden`
67
+ - `strikethrough` *(Not widely supported)*
68
+
69
+ ### Colors
70
+
71
+ - `black`
72
+ - `red`
73
+ - `green`
74
+ - `yellow`
75
+ - `blue`
76
+ - `magenta`
77
+ - `cyan`
78
+ - `white`
79
+ - `blackBright` (alias: `gray`, `grey`)
80
+ - `redBright`
81
+ - `greenBright`
82
+ - `yellowBright`
83
+ - `blueBright`
84
+ - `magentaBright`
85
+ - `cyanBright`
86
+ - `whiteBright`
87
+
88
+ ### Background colors
89
+
90
+ - `bgBlack`
91
+ - `bgRed`
92
+ - `bgGreen`
93
+ - `bgYellow`
94
+ - `bgBlue`
95
+ - `bgMagenta`
96
+ - `bgCyan`
97
+ - `bgWhite`
98
+ - `bgBlackBright` (alias: `bgGray`, `bgGrey`)
99
+ - `bgRedBright`
100
+ - `bgGreenBright`
101
+ - `bgYellowBright`
102
+ - `bgBlueBright`
103
+ - `bgMagentaBright`
104
+ - `bgCyanBright`
105
+ - `bgWhiteBright`
106
+
107
+ ## Advanced usage
108
+
109
+ By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
110
+
111
+ - `styles.modifier`
112
+ - `styles.color`
113
+ - `styles.bgColor`
114
+
115
+ ###### Example
116
+
117
+ ```js
118
+ import styles from 'ansi-styles';
119
+
120
+ console.log(styles.color.green.open);
121
+ ```
122
+
123
+ Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `styles.codes`, which returns a `Map` with the open codes as keys and close codes as values.
124
+
125
+ ###### Example
126
+
127
+ ```js
128
+ import styles from 'ansi-styles';
129
+
130
+ console.log(styles.codes.get(36));
131
+ //=> 39
132
+ ```
133
+
134
+ ## 16 / 256 / 16 million (TrueColor) support
135
+
136
+ `ansi-styles` allows converting between various color formats and ANSI escapes, with support for 16, 256 and [16 million colors](https://gist.github.com/XVilka/8346728).
137
+
138
+ The following color spaces are supported:
139
+
140
+ - `rgb`
141
+ - `hex`
142
+ - `ansi256`
143
+ - `ansi`
144
+
145
+ To use these, call the associated conversion function with the intended output, for example:
146
+
147
+ ```js
148
+ import styles from 'ansi-styles';
149
+
150
+ styles.color.ansi(styles.rgbToAnsi(100, 200, 15)); // RGB to 16 color ansi foreground code
151
+ styles.bgColor.ansi(styles.hexToAnsi('#C0FFEE')); // HEX to 16 color ansi foreground code
152
+
153
+ styles.color.ansi256(styles.rgbToAnsi256(100, 200, 15)); // RGB to 256 color ansi foreground code
154
+ styles.bgColor.ansi256(styles.hexToAnsi256('#C0FFEE')); // HEX to 256 color ansi foreground code
155
+
156
+ styles.color.ansi16m(100, 200, 15); // RGB to 16 million color foreground code
157
+ styles.bgColor.ansi16m(...styles.hexToRgb('#C0FFEE')); // Hex (RGB) to 16 million color foreground code
158
+ ```
159
+
160
+ ## Related
161
+
162
+ - [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
163
+
164
+ ## Maintainers
165
+
166
+ - [Sindre Sorhus](https://github.com/sindresorhus)
167
+ - [Josh Junon](https://github.com/qix-)
168
+
169
+ ## For enterprise
170
+
171
+ Available as part of the Tidelift Subscription.
172
+
173
+ The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
@@ -0,0 +1,64 @@
1
+ declare namespace onetime {
2
+ interface Options {
3
+ /**
4
+ Throw an error when called more than once.
5
+
6
+ @default false
7
+ */
8
+ throw?: boolean;
9
+ }
10
+ }
11
+
12
+ declare const onetime: {
13
+ /**
14
+ Ensure a function is only called once. When called multiple times it will return the return value from the first call.
15
+
16
+ @param fn - Function that should only be called once.
17
+ @returns A function that only calls `fn` once.
18
+
19
+ @example
20
+ ```
21
+ import onetime = require('onetime');
22
+
23
+ let i = 0;
24
+
25
+ const foo = onetime(() => ++i);
26
+
27
+ foo(); //=> 1
28
+ foo(); //=> 1
29
+ foo(); //=> 1
30
+
31
+ onetime.callCount(foo); //=> 3
32
+ ```
33
+ */
34
+ <ArgumentsType extends unknown[], ReturnType>(
35
+ fn: (...arguments: ArgumentsType) => ReturnType,
36
+ options?: onetime.Options
37
+ ): (...arguments: ArgumentsType) => ReturnType;
38
+
39
+ /**
40
+ Get the number of times `fn` has been called.
41
+
42
+ @param fn - Function to get call count from.
43
+ @returns A number representing how many times `fn` has been called.
44
+
45
+ @example
46
+ ```
47
+ import onetime = require('onetime');
48
+
49
+ const foo = onetime(() => {});
50
+ foo();
51
+ foo();
52
+ foo();
53
+
54
+ console.log(onetime.callCount(foo));
55
+ //=> 3
56
+ ```
57
+ */
58
+ callCount(fn: (...arguments: any[]) => unknown): number;
59
+
60
+ // TODO: Remove this for the next major release
61
+ default: typeof onetime;
62
+ };
63
+
64
+ export = onetime;
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+ const mimicFn = require('mimic-fn');
3
+
4
+ const calledFunctions = new WeakMap();
5
+
6
+ const onetime = (function_, options = {}) => {
7
+ if (typeof function_ !== 'function') {
8
+ throw new TypeError('Expected a function');
9
+ }
10
+
11
+ let returnValue;
12
+ let callCount = 0;
13
+ const functionName = function_.displayName || function_.name || '<anonymous>';
14
+
15
+ const onetime = function (...arguments_) {
16
+ calledFunctions.set(onetime, ++callCount);
17
+
18
+ if (callCount === 1) {
19
+ returnValue = function_.apply(this, arguments_);
20
+ function_ = null;
21
+ } else if (options.throw === true) {
22
+ throw new Error(`Function \`${functionName}\` can only be called once`);
23
+ }
24
+
25
+ return returnValue;
26
+ };
27
+
28
+ mimicFn(onetime, function_);
29
+ calledFunctions.set(onetime, callCount);
30
+
31
+ return onetime;
32
+ };
33
+
34
+ module.exports = onetime;
35
+ // TODO: Remove this for the next major release
36
+ module.exports.default = onetime;
37
+
38
+ module.exports.callCount = function_ => {
39
+ if (!calledFunctions.has(function_)) {
40
+ throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
41
+ }
42
+
43
+ return calledFunctions.get(function_);
44
+ };
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "onetime",
3
+ "version": "5.1.2",
4
+ "description": "Ensure a function is only called once",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/onetime",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "engines": {
14
+ "node": ">=6"
15
+ },
16
+ "scripts": {
17
+ "test": "xo && ava && tsd"
18
+ },
19
+ "files": [
20
+ "index.js",
21
+ "index.d.ts"
22
+ ],
23
+ "keywords": [
24
+ "once",
25
+ "function",
26
+ "one",
27
+ "onetime",
28
+ "func",
29
+ "fn",
30
+ "single",
31
+ "call",
32
+ "called",
33
+ "prevent"
34
+ ],
35
+ "dependencies": {
36
+ "mimic-fn": "^2.1.0"
37
+ },
38
+ "devDependencies": {
39
+ "ava": "^1.4.1",
40
+ "tsd": "^0.7.1",
41
+ "xo": "^0.24.0"
42
+ }
43
+ }
@@ -0,0 +1,94 @@
1
+ # onetime [![Build Status](https://travis-ci.com/sindresorhus/onetime.svg?branch=master)](https://travis-ci.com/github/sindresorhus/onetime)
2
+
3
+ > Ensure a function is only called once
4
+
5
+ When called multiple times it will return the return value from the first call.
6
+
7
+ *Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
8
+
9
+ ## Install
10
+
11
+ ```
12
+ $ npm install onetime
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ const onetime = require('onetime');
19
+
20
+ let i = 0;
21
+
22
+ const foo = onetime(() => ++i);
23
+
24
+ foo(); //=> 1
25
+ foo(); //=> 1
26
+ foo(); //=> 1
27
+
28
+ onetime.callCount(foo); //=> 3
29
+ ```
30
+
31
+ ```js
32
+ const onetime = require('onetime');
33
+
34
+ const foo = onetime(() => {}, {throw: true});
35
+
36
+ foo();
37
+
38
+ foo();
39
+ //=> Error: Function `foo` can only be called once
40
+ ```
41
+
42
+ ## API
43
+
44
+ ### onetime(fn, options?)
45
+
46
+ Returns a function that only calls `fn` once.
47
+
48
+ #### fn
49
+
50
+ Type: `Function`
51
+
52
+ Function that should only be called once.
53
+
54
+ #### options
55
+
56
+ Type: `object`
57
+
58
+ ##### throw
59
+
60
+ Type: `boolean`\
61
+ Default: `false`
62
+
63
+ Throw an error when called more than once.
64
+
65
+ ### onetime.callCount(fn)
66
+
67
+ Returns a number representing how many times `fn` has been called.
68
+
69
+ Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
70
+
71
+ ```js
72
+ const onetime = require('onetime');
73
+
74
+ const foo = onetime(() => {});
75
+
76
+ foo();
77
+ foo();
78
+ foo();
79
+
80
+ console.log(onetime.callCount(foo));
81
+ //=> 3
82
+ ```
83
+
84
+ #### fn
85
+
86
+ Type: `Function`
87
+
88
+ Function to get call count from.
89
+
90
+ ## onetime for enterprise
91
+
92
+ Available as part of the Tidelift Subscription.
93
+
94
+ The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)