@visual-check/cli 0.0.0 → 0.1.0

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 (790) hide show
  1. package/LICENSE +21 -0
  2. package/dist/addon-build.d.ts +3 -0
  3. package/dist/addon-build.d.ts.map +1 -0
  4. package/dist/addon-build.js +4 -0
  5. package/dist/addon-build.js.map +1 -0
  6. package/dist/addon-child/addon-child.d.ts +63 -0
  7. package/dist/addon-child/addon-child.d.ts.map +1 -0
  8. package/dist/addon-child/addon-child.js +85 -0
  9. package/dist/addon-child/addon-child.js.map +1 -0
  10. package/dist/addon-child/image-files.d.ts +11 -0
  11. package/dist/addon-child/image-files.d.ts.map +1 -0
  12. package/dist/addon-child/image-files.js +138 -0
  13. package/dist/addon-child/image-files.js.map +1 -0
  14. package/dist/addon-child/protocol.d.ts +181 -0
  15. package/dist/addon-child/protocol.d.ts.map +1 -0
  16. package/dist/addon-child/protocol.js +2 -0
  17. package/dist/addon-child/protocol.js.map +1 -0
  18. package/dist/addon-child/read-request.d.ts +7 -0
  19. package/dist/addon-child/read-request.d.ts.map +1 -0
  20. package/dist/addon-child/read-request.js +25 -0
  21. package/dist/addon-child/read-request.js.map +1 -0
  22. package/dist/addon-child.d.ts +2 -0
  23. package/dist/addon-child.d.ts.map +1 -0
  24. package/dist/addon-child.js +61 -0
  25. package/dist/addon-child.js.map +1 -0
  26. package/dist/affected-stories/affected-stories.d.ts +128 -0
  27. package/dist/affected-stories/affected-stories.d.ts.map +1 -0
  28. package/dist/affected-stories/affected-stories.js +168 -0
  29. package/dist/affected-stories/affected-stories.js.map +1 -0
  30. package/dist/affected-stories/changed-file-rules.d.ts +98 -0
  31. package/dist/affected-stories/changed-file-rules.d.ts.map +1 -0
  32. package/dist/affected-stories/changed-file-rules.js +167 -0
  33. package/dist/affected-stories/changed-file-rules.js.map +1 -0
  34. package/dist/affected-stories/fallow-graph.d.ts +67 -0
  35. package/dist/affected-stories/fallow-graph.d.ts.map +1 -0
  36. package/dist/affected-stories/fallow-graph.js +180 -0
  37. package/dist/affected-stories/fallow-graph.js.map +1 -0
  38. package/dist/affected-stories/git-changes.d.ts +57 -0
  39. package/dist/affected-stories/git-changes.d.ts.map +1 -0
  40. package/dist/affected-stories/git-changes.js +203 -0
  41. package/dist/affected-stories/git-changes.js.map +1 -0
  42. package/dist/affected-stories/group-changes.d.ts +48 -0
  43. package/dist/affected-stories/group-changes.d.ts.map +1 -0
  44. package/dist/affected-stories/group-changes.js +41 -0
  45. package/dist/affected-stories/group-changes.js.map +1 -0
  46. package/dist/affected-stories/import-graph.d.ts +33 -0
  47. package/dist/affected-stories/import-graph.d.ts.map +1 -0
  48. package/dist/affected-stories/import-graph.js +99 -0
  49. package/dist/affected-stories/import-graph.js.map +1 -0
  50. package/dist/affected-stories/limited-map.d.ts +9 -0
  51. package/dist/affected-stories/limited-map.d.ts.map +1 -0
  52. package/dist/affected-stories/limited-map.js +24 -0
  53. package/dist/affected-stories/limited-map.js.map +1 -0
  54. package/dist/affected-stories/package-folder.d.ts +8 -0
  55. package/dist/affected-stories/package-folder.d.ts.map +1 -0
  56. package/dist/affected-stories/package-folder.js +45 -0
  57. package/dist/affected-stories/package-folder.js.map +1 -0
  58. package/dist/affected-stories/storybook-rules.d.ts +153 -0
  59. package/dist/affected-stories/storybook-rules.d.ts.map +1 -0
  60. package/dist/affected-stories/storybook-rules.js +161 -0
  61. package/dist/affected-stories/storybook-rules.js.map +1 -0
  62. package/dist/affected-stories/walk-back.d.ts +16 -0
  63. package/dist/affected-stories/walk-back.d.ts.map +1 -0
  64. package/dist/affected-stories/walk-back.js +46 -0
  65. package/dist/affected-stories/walk-back.js.map +1 -0
  66. package/dist/agent-skill/install-skill.d.ts +34 -0
  67. package/dist/agent-skill/install-skill.d.ts.map +1 -0
  68. package/dist/agent-skill/install-skill.js +43 -0
  69. package/dist/agent-skill/install-skill.js.map +1 -0
  70. package/dist/agent-skill/refresh-skill.d.ts +62 -0
  71. package/dist/agent-skill/refresh-skill.d.ts.map +1 -0
  72. package/dist/agent-skill/refresh-skill.js +105 -0
  73. package/dist/agent-skill/refresh-skill.js.map +1 -0
  74. package/dist/agent-skill/setup-file.d.ts +41 -0
  75. package/dist/agent-skill/setup-file.d.ts.map +1 -0
  76. package/dist/agent-skill/setup-file.js +38 -0
  77. package/dist/agent-skill/setup-file.js.map +1 -0
  78. package/dist/agent-skill/skill-files.d.ts +19 -0
  79. package/dist/agent-skill/skill-files.d.ts.map +1 -0
  80. package/dist/agent-skill/skill-files.js +29 -0
  81. package/dist/agent-skill/skill-files.js.map +1 -0
  82. package/dist/agent-skill/skill-markdown.d.ts +31 -0
  83. package/dist/agent-skill/skill-markdown.d.ts.map +1 -0
  84. package/dist/agent-skill/skill-markdown.js +54 -0
  85. package/dist/agent-skill/skill-markdown.js.map +1 -0
  86. package/dist/baselines/baseline-clash.d.ts +31 -0
  87. package/dist/baselines/baseline-clash.d.ts.map +1 -0
  88. package/dist/baselines/baseline-clash.js +23 -0
  89. package/dist/baselines/baseline-clash.js.map +1 -0
  90. package/dist/baselines/baseline-error.d.ts +39 -0
  91. package/dist/baselines/baseline-error.d.ts.map +1 -0
  92. package/dist/baselines/baseline-error.js +42 -0
  93. package/dist/baselines/baseline-error.js.map +1 -0
  94. package/dist/baselines/baseline-files.d.ts +130 -0
  95. package/dist/baselines/baseline-files.d.ts.map +1 -0
  96. package/dist/baselines/baseline-files.js +292 -0
  97. package/dist/baselines/baseline-files.js.map +1 -0
  98. package/dist/baselines/baseline-set.d.ts +42 -0
  99. package/dist/baselines/baseline-set.d.ts.map +1 -0
  100. package/dist/baselines/baseline-set.js +104 -0
  101. package/dist/baselines/baseline-set.js.map +1 -0
  102. package/dist/bin.d.ts +3 -0
  103. package/dist/bin.d.ts.map +1 -0
  104. package/dist/bin.js +57 -0
  105. package/dist/bin.js.map +1 -0
  106. package/dist/browser/browser-package.d.ts +54 -0
  107. package/dist/browser/browser-package.d.ts.map +1 -0
  108. package/dist/browser/browser-package.js +105 -0
  109. package/dist/browser/browser-package.js.map +1 -0
  110. package/dist/browser/browser-version.d.ts +67 -0
  111. package/dist/browser/browser-version.d.ts.map +1 -0
  112. package/dist/browser/browser-version.js +61 -0
  113. package/dist/browser/browser-version.js.map +1 -0
  114. package/dist/browser/chrome-for-testing-platform.d.ts +24 -0
  115. package/dist/browser/chrome-for-testing-platform.d.ts.map +1 -0
  116. package/dist/browser/chrome-for-testing-platform.js +39 -0
  117. package/dist/browser/chrome-for-testing-platform.js.map +1 -0
  118. package/dist/browser/image-marker.d.ts +46 -0
  119. package/dist/browser/image-marker.d.ts.map +1 -0
  120. package/dist/browser/image-marker.js +81 -0
  121. package/dist/browser/image-marker.js.map +1 -0
  122. package/dist/browser/read-browser-package.d.ts +58 -0
  123. package/dist/browser/read-browser-package.d.ts.map +1 -0
  124. package/dist/browser/read-browser-package.js +130 -0
  125. package/dist/browser/read-browser-package.js.map +1 -0
  126. package/dist/browser-download/browser-download-error.d.ts +19 -0
  127. package/dist/browser-download/browser-download-error.d.ts.map +1 -0
  128. package/dist/browser-download/browser-download-error.js +21 -0
  129. package/dist/browser-download/browser-download-error.js.map +1 -0
  130. package/dist/browser-download/cache-folder.d.ts +7 -0
  131. package/dist/browser-download/cache-folder.d.ts.map +1 -0
  132. package/dist/browser-download/cache-folder.js +34 -0
  133. package/dist/browser-download/cache-folder.js.map +1 -0
  134. package/dist/browser-download/download-file.d.ts +45 -0
  135. package/dist/browser-download/download-file.d.ts.map +1 -0
  136. package/dist/browser-download/download-file.js +340 -0
  137. package/dist/browser-download/download-file.js.map +1 -0
  138. package/dist/browser-download/install-headless-shell.d.ts +96 -0
  139. package/dist/browser-download/install-headless-shell.d.ts.map +1 -0
  140. package/dist/browser-download/install-headless-shell.js +491 -0
  141. package/dist/browser-download/install-headless-shell.js.map +1 -0
  142. package/dist/browser-download/proxy.d.ts +19 -0
  143. package/dist/browser-download/proxy.d.ts.map +1 -0
  144. package/dist/browser-download/proxy.js +102 -0
  145. package/dist/browser-download/proxy.js.map +1 -0
  146. package/dist/browser-download/unzip.d.ts +11 -0
  147. package/dist/browser-download/unzip.d.ts.map +1 -0
  148. package/dist/browser-download/unzip.js +96 -0
  149. package/dist/browser-download/unzip.js.map +1 -0
  150. package/dist/browser-process/start-browser-process.d.ts +30 -0
  151. package/dist/browser-process/start-browser-process.d.ts.map +1 -0
  152. package/dist/browser-process/start-browser-process.js +131 -0
  153. package/dist/browser-process/start-browser-process.js.map +1 -0
  154. package/dist/capture/capture-session.d.ts +472 -0
  155. package/dist/capture/capture-session.d.ts.map +1 -0
  156. package/dist/capture/capture-session.js +701 -0
  157. package/dist/capture/capture-session.js.map +1 -0
  158. package/dist/capture/driver/cdp/cdp-connection.d.ts +127 -0
  159. package/dist/capture/driver/cdp/cdp-connection.d.ts.map +1 -0
  160. package/dist/capture/driver/cdp/cdp-connection.js +243 -0
  161. package/dist/capture/driver/cdp/cdp-connection.js.map +1 -0
  162. package/dist/capture/driver/cdp/cdp-driver.d.ts +42 -0
  163. package/dist/capture/driver/cdp/cdp-driver.d.ts.map +1 -0
  164. package/dist/capture/driver/cdp/cdp-driver.js +270 -0
  165. package/dist/capture/driver/cdp/cdp-driver.js.map +1 -0
  166. package/dist/capture/driver/cdp/cdp-page.d.ts +10 -0
  167. package/dist/capture/driver/cdp/cdp-page.d.ts.map +1 -0
  168. package/dist/capture/driver/cdp/cdp-page.js +704 -0
  169. package/dist/capture/driver/cdp/cdp-page.js.map +1 -0
  170. package/dist/capture/driver/cdp/last-lines.d.ts +13 -0
  171. package/dist/capture/driver/cdp/last-lines.d.ts.map +1 -0
  172. package/dist/capture/driver/cdp/last-lines.js +49 -0
  173. package/dist/capture/driver/cdp/last-lines.js.map +1 -0
  174. package/dist/capture/driver/cdp/launch-arguments.d.ts +16 -0
  175. package/dist/capture/driver/cdp/launch-arguments.d.ts.map +1 -0
  176. package/dist/capture/driver/cdp/launch-arguments.js +142 -0
  177. package/dist/capture/driver/cdp/launch-arguments.js.map +1 -0
  178. package/dist/capture/driver/cdp/loaded-document.d.ts +61 -0
  179. package/dist/capture/driver/cdp/loaded-document.d.ts.map +1 -0
  180. package/dist/capture/driver/cdp/loaded-document.js +104 -0
  181. package/dist/capture/driver/cdp/loaded-document.js.map +1 -0
  182. package/dist/capture/driver/cdp/main-frame-navigation.d.ts +127 -0
  183. package/dist/capture/driver/cdp/main-frame-navigation.d.ts.map +1 -0
  184. package/dist/capture/driver/cdp/main-frame-navigation.js +214 -0
  185. package/dist/capture/driver/cdp/main-frame-navigation.js.map +1 -0
  186. package/dist/capture/driver/cdp/request-watch.d.ts +117 -0
  187. package/dist/capture/driver/cdp/request-watch.d.ts.map +1 -0
  188. package/dist/capture/driver/cdp/request-watch.js +244 -0
  189. package/dist/capture/driver/cdp/request-watch.js.map +1 -0
  190. package/dist/capture/driver/cdp/time-limit.d.ts +29 -0
  191. package/dist/capture/driver/cdp/time-limit.d.ts.map +1 -0
  192. package/dist/capture/driver/cdp/time-limit.js +51 -0
  193. package/dist/capture/driver/cdp/time-limit.js.map +1 -0
  194. package/dist/capture/driver/driver.d.ts +500 -0
  195. package/dist/capture/driver/driver.d.ts.map +1 -0
  196. package/dist/capture/driver/driver.js +283 -0
  197. package/dist/capture/driver/driver.js.map +1 -0
  198. package/dist/capture/end-state.d.ts +131 -0
  199. package/dist/capture/end-state.d.ts.map +1 -0
  200. package/dist/capture/end-state.js +818 -0
  201. package/dist/capture/end-state.js.map +1 -0
  202. package/dist/capture/page-roots.d.ts +18 -0
  203. package/dist/capture/page-roots.d.ts.map +1 -0
  204. package/dist/capture/page-roots.js +67 -0
  205. package/dist/capture/page-roots.js.map +1 -0
  206. package/dist/capture/page-script.d.ts +118 -0
  207. package/dist/capture/page-script.d.ts.map +1 -0
  208. package/dist/capture/page-script.js +399 -0
  209. package/dist/capture/page-script.js.map +1 -0
  210. package/dist/capture/prepare-capture.d.ts +228 -0
  211. package/dist/capture/prepare-capture.d.ts.map +1 -0
  212. package/dist/capture/prepare-capture.js +480 -0
  213. package/dist/capture/prepare-capture.js.map +1 -0
  214. package/dist/capture/read-options.d.ts +65 -0
  215. package/dist/capture/read-options.d.ts.map +1 -0
  216. package/dist/capture/read-options.js +211 -0
  217. package/dist/capture/read-options.js.map +1 -0
  218. package/dist/capture/remote-content.d.ts +45 -0
  219. package/dist/capture/remote-content.d.ts.map +1 -0
  220. package/dist/capture/remote-content.js +309 -0
  221. package/dist/capture/remote-content.js.map +1 -0
  222. package/dist/capture/worker-pool.d.ts +35 -0
  223. package/dist/capture/worker-pool.d.ts.map +1 -0
  224. package/dist/capture/worker-pool.js +51 -0
  225. package/dist/capture/worker-pool.js.map +1 -0
  226. package/dist/commands/abortable.d.ts +9 -0
  227. package/dist/commands/abortable.d.ts.map +1 -0
  228. package/dist/commands/abortable.js +18 -0
  229. package/dist/commands/abortable.js.map +1 -0
  230. package/dist/commands/browser-route.d.ts +86 -0
  231. package/dist/commands/browser-route.d.ts.map +1 -0
  232. package/dist/commands/browser-route.js +27 -0
  233. package/dist/commands/browser-route.js.map +1 -0
  234. package/dist/commands/capture-settings.d.ts +8 -0
  235. package/dist/commands/capture-settings.d.ts.map +1 -0
  236. package/dist/commands/capture-settings.js +17 -0
  237. package/dist/commands/capture-settings.js.map +1 -0
  238. package/dist/commands/check-story.d.ts +91 -0
  239. package/dist/commands/check-story.d.ts.map +1 -0
  240. package/dist/commands/check-story.js +52 -0
  241. package/dist/commands/check-story.js.map +1 -0
  242. package/dist/commands/check-storybooks.d.ts +71 -0
  243. package/dist/commands/check-storybooks.d.ts.map +1 -0
  244. package/dist/commands/check-storybooks.js +49 -0
  245. package/dist/commands/check-storybooks.js.map +1 -0
  246. package/dist/commands/consistency-check.d.ts +62 -0
  247. package/dist/commands/consistency-check.d.ts.map +1 -0
  248. package/dist/commands/consistency-check.js +63 -0
  249. package/dist/commands/consistency-check.js.map +1 -0
  250. package/dist/commands/consistency-output.d.ts +63 -0
  251. package/dist/commands/consistency-output.d.ts.map +1 -0
  252. package/dist/commands/consistency-output.js +63 -0
  253. package/dist/commands/consistency-output.js.map +1 -0
  254. package/dist/commands/docker-problem.d.ts +23 -0
  255. package/dist/commands/docker-problem.d.ts.map +1 -0
  256. package/dist/commands/docker-problem.js +18 -0
  257. package/dist/commands/docker-problem.js.map +1 -0
  258. package/dist/commands/launch-browser.d.ts +123 -0
  259. package/dist/commands/launch-browser.d.ts.map +1 -0
  260. package/dist/commands/launch-browser.js +113 -0
  261. package/dist/commands/launch-browser.js.map +1 -0
  262. package/dist/commands/missing-library.d.ts +6 -0
  263. package/dist/commands/missing-library.d.ts.map +1 -0
  264. package/dist/commands/missing-library.js +19 -0
  265. package/dist/commands/missing-library.js.map +1 -0
  266. package/dist/commands/network-warning.d.ts +36 -0
  267. package/dist/commands/network-warning.d.ts.map +1 -0
  268. package/dist/commands/network-warning.js +92 -0
  269. package/dist/commands/network-warning.js.map +1 -0
  270. package/dist/commands/parse-command-line.d.ts +133 -0
  271. package/dist/commands/parse-command-line.d.ts.map +1 -0
  272. package/dist/commands/parse-command-line.js +425 -0
  273. package/dist/commands/parse-command-line.js.map +1 -0
  274. package/dist/commands/place-browser.d.ts +75 -0
  275. package/dist/commands/place-browser.d.ts.map +1 -0
  276. package/dist/commands/place-browser.js +82 -0
  277. package/dist/commands/place-browser.js.map +1 -0
  278. package/dist/commands/plan-snapshots.d.ts +134 -0
  279. package/dist/commands/plan-snapshots.d.ts.map +1 -0
  280. package/dist/commands/plan-snapshots.js +278 -0
  281. package/dist/commands/plan-snapshots.js.map +1 -0
  282. package/dist/commands/platform-problem.d.ts +7 -0
  283. package/dist/commands/platform-problem.d.ts.map +1 -0
  284. package/dist/commands/platform-problem.js +12 -0
  285. package/dist/commands/platform-problem.js.map +1 -0
  286. package/dist/commands/read-image-fit.d.ts +16 -0
  287. package/dist/commands/read-image-fit.d.ts.map +1 -0
  288. package/dist/commands/read-image-fit.js +26 -0
  289. package/dist/commands/read-image-fit.js.map +1 -0
  290. package/dist/commands/remote-content-hint.d.ts +6 -0
  291. package/dist/commands/remote-content-hint.d.ts.map +1 -0
  292. package/dist/commands/remote-content-hint.js +37 -0
  293. package/dist/commands/remote-content-hint.js.map +1 -0
  294. package/dist/commands/report-entries.d.ts +94 -0
  295. package/dist/commands/report-entries.d.ts.map +1 -0
  296. package/dist/commands/report-entries.js +384 -0
  297. package/dist/commands/report-entries.js.map +1 -0
  298. package/dist/commands/run-browser.d.ts +128 -0
  299. package/dist/commands/run-browser.d.ts.map +1 -0
  300. package/dist/commands/run-browser.js +210 -0
  301. package/dist/commands/run-browser.js.map +1 -0
  302. package/dist/commands/run-cli.d.ts +125 -0
  303. package/dist/commands/run-cli.d.ts.map +1 -0
  304. package/dist/commands/run-cli.js +656 -0
  305. package/dist/commands/run-cli.js.map +1 -0
  306. package/dist/commands/run-output.d.ts +78 -0
  307. package/dist/commands/run-output.d.ts.map +1 -0
  308. package/dist/commands/run-output.js +71 -0
  309. package/dist/commands/run-output.js.map +1 -0
  310. package/dist/commands/run-report.d.ts +147 -0
  311. package/dist/commands/run-report.d.ts.map +1 -0
  312. package/dist/commands/run-report.js +137 -0
  313. package/dist/commands/run-report.js.map +1 -0
  314. package/dist/commands/run-selection.d.ts +191 -0
  315. package/dist/commands/run-selection.d.ts.map +1 -0
  316. package/dist/commands/run-selection.js +150 -0
  317. package/dist/commands/run-selection.js.map +1 -0
  318. package/dist/commands/run-snapshots.d.ts +272 -0
  319. package/dist/commands/run-snapshots.d.ts.map +1 -0
  320. package/dist/commands/run-snapshots.js +354 -0
  321. package/dist/commands/run-snapshots.js.map +1 -0
  322. package/dist/commands/same-address.d.ts +6 -0
  323. package/dist/commands/same-address.d.ts.map +1 -0
  324. package/dist/commands/same-address.js +32 -0
  325. package/dist/commands/same-address.js.map +1 -0
  326. package/dist/commands/select-stories.d.ts +40 -0
  327. package/dist/commands/select-stories.d.ts.map +1 -0
  328. package/dist/commands/select-stories.js +15 -0
  329. package/dist/commands/select-stories.js.map +1 -0
  330. package/dist/commands/shard-share.d.ts +41 -0
  331. package/dist/commands/shard-share.d.ts.map +1 -0
  332. package/dist/commands/shard-share.js +61 -0
  333. package/dist/commands/shard-share.js.map +1 -0
  334. package/dist/commands/snapshot-result.d.ts +165 -0
  335. package/dist/commands/snapshot-result.d.ts.map +1 -0
  336. package/dist/commands/snapshot-result.js +135 -0
  337. package/dist/commands/snapshot-result.js.map +1 -0
  338. package/dist/commands/stop-message.d.ts +65 -0
  339. package/dist/commands/stop-message.d.ts.map +1 -0
  340. package/dist/commands/stop-message.js +186 -0
  341. package/dist/commands/stop-message.js.map +1 -0
  342. package/dist/commands/stopped-run.d.ts +116 -0
  343. package/dist/commands/stopped-run.d.ts.map +1 -0
  344. package/dist/commands/stopped-run.js +103 -0
  345. package/dist/commands/stopped-run.js.map +1 -0
  346. package/dist/commands/story-run.d.ts +196 -0
  347. package/dist/commands/story-run.d.ts.map +1 -0
  348. package/dist/commands/story-run.js +258 -0
  349. package/dist/commands/story-run.js.map +1 -0
  350. package/dist/commands/take-snapshot.d.ts +27 -0
  351. package/dist/commands/take-snapshot.d.ts.map +1 -0
  352. package/dist/commands/take-snapshot.js +16 -0
  353. package/dist/commands/take-snapshot.js.map +1 -0
  354. package/dist/commands/test-plan.d.ts +100 -0
  355. package/dist/commands/test-plan.d.ts.map +1 -0
  356. package/dist/commands/test-plan.js +66 -0
  357. package/dist/commands/test-plan.js.map +1 -0
  358. package/dist/commands/test-snapshot.d.ts +52 -0
  359. package/dist/commands/test-snapshot.d.ts.map +1 -0
  360. package/dist/commands/test-snapshot.js +183 -0
  361. package/dist/commands/test-snapshot.js.map +1 -0
  362. package/dist/commands/update-baselines.d.ts +93 -0
  363. package/dist/commands/update-baselines.d.ts.map +1 -0
  364. package/dist/commands/update-baselines.js +120 -0
  365. package/dist/commands/update-baselines.js.map +1 -0
  366. package/dist/commands/update-snapshot.d.ts +69 -0
  367. package/dist/commands/update-snapshot.d.ts.map +1 -0
  368. package/dist/commands/update-snapshot.js +214 -0
  369. package/dist/commands/update-snapshot.js.map +1 -0
  370. package/dist/commands/update-story.d.ts +70 -0
  371. package/dist/commands/update-story.d.ts.map +1 -0
  372. package/dist/commands/update-story.js +64 -0
  373. package/dist/commands/update-story.js.map +1 -0
  374. package/dist/commands/warm-browser.d.ts +43 -0
  375. package/dist/commands/warm-browser.d.ts.map +1 -0
  376. package/dist/commands/warm-browser.js +192 -0
  377. package/dist/commands/warm-browser.js.map +1 -0
  378. package/dist/config/addon-image-folders.d.ts +13 -0
  379. package/dist/config/addon-image-folders.d.ts.map +1 -0
  380. package/dist/config/addon-image-folders.js +7 -0
  381. package/dist/config/addon-image-folders.js.map +1 -0
  382. package/dist/config/checks.d.ts +108 -0
  383. package/dist/config/checks.d.ts.map +1 -0
  384. package/dist/config/checks.js +190 -0
  385. package/dist/config/checks.js.map +1 -0
  386. package/dist/config/config-error.d.ts +23 -0
  387. package/dist/config/config-error.d.ts.map +1 -0
  388. package/dist/config/config-error.js +23 -0
  389. package/dist/config/config-error.js.map +1 -0
  390. package/dist/config/config-thread.d.ts +25 -0
  391. package/dist/config/config-thread.d.ts.map +1 -0
  392. package/dist/config/config-thread.js +73 -0
  393. package/dist/config/config-thread.js.map +1 -0
  394. package/dist/config/define-config.d.ts +192 -0
  395. package/dist/config/define-config.d.ts.map +1 -0
  396. package/dist/config/define-config.js +9 -0
  397. package/dist/config/define-config.js.map +1 -0
  398. package/dist/config/evaluate-config.d.ts +6 -0
  399. package/dist/config/evaluate-config.d.ts.map +1 -0
  400. package/dist/config/evaluate-config.js +39 -0
  401. package/dist/config/evaluate-config.js.map +1 -0
  402. package/dist/config/find-config.d.ts +35 -0
  403. package/dist/config/find-config.d.ts.map +1 -0
  404. package/dist/config/find-config.js +71 -0
  405. package/dist/config/find-config.js.map +1 -0
  406. package/dist/config/find-storybook-url-problem.d.ts +29 -0
  407. package/dist/config/find-storybook-url-problem.d.ts.map +1 -0
  408. package/dist/config/find-storybook-url-problem.js +34 -0
  409. package/dist/config/find-storybook-url-problem.js.map +1 -0
  410. package/dist/config/is-ci.d.ts +7 -0
  411. package/dist/config/is-ci.d.ts.map +1 -0
  412. package/dist/config/is-ci.js +10 -0
  413. package/dist/config/is-ci.js.map +1 -0
  414. package/dist/config/load-config.d.ts +72 -0
  415. package/dist/config/load-config.d.ts.map +1 -0
  416. package/dist/config/load-config.js +95 -0
  417. package/dist/config/load-config.js.map +1 -0
  418. package/dist/config/load-storybook-config.d.ts +71 -0
  419. package/dist/config/load-storybook-config.d.ts.map +1 -0
  420. package/dist/config/load-storybook-config.js +104 -0
  421. package/dist/config/load-storybook-config.js.map +1 -0
  422. package/dist/config/mode-rules.d.ts +42 -0
  423. package/dist/config/mode-rules.d.ts.map +1 -0
  424. package/dist/config/mode-rules.js +188 -0
  425. package/dist/config/mode-rules.js.map +1 -0
  426. package/dist/config/read-config-afresh.d.ts +13 -0
  427. package/dist/config/read-config-afresh.d.ts.map +1 -0
  428. package/dist/config/read-config-afresh.js +28 -0
  429. package/dist/config/read-config-afresh.js.map +1 -0
  430. package/dist/config/resolve-config.d.ts +162 -0
  431. package/dist/config/resolve-config.d.ts.map +1 -0
  432. package/dist/config/resolve-config.js +181 -0
  433. package/dist/config/resolve-config.js.map +1 -0
  434. package/dist/config/story-options.d.ts +69 -0
  435. package/dist/config/story-options.d.ts.map +1 -0
  436. package/dist/config/story-options.js +174 -0
  437. package/dist/config/story-options.js.map +1 -0
  438. package/dist/config/validate-config.d.ts +9 -0
  439. package/dist/config/validate-config.d.ts.map +1 -0
  440. package/dist/config/validate-config.js +185 -0
  441. package/dist/config/validate-config.js.map +1 -0
  442. package/dist/container/browser-container.d.ts +57 -0
  443. package/dist/container/browser-container.d.ts.map +1 -0
  444. package/dist/container/browser-container.js +112 -0
  445. package/dist/container/browser-container.js.map +1 -0
  446. package/dist/container/container-error.d.ts +47 -0
  447. package/dist/container/container-error.d.ts.map +1 -0
  448. package/dist/container/container-error.js +43 -0
  449. package/dist/container/container-error.js.map +1 -0
  450. package/dist/container/docker-probe.d.ts +37 -0
  451. package/dist/container/docker-probe.d.ts.map +1 -0
  452. package/dist/container/docker-probe.js +85 -0
  453. package/dist/container/docker-probe.js.map +1 -0
  454. package/dist/container/image-pull.d.ts +11 -0
  455. package/dist/container/image-pull.d.ts.map +1 -0
  456. package/dist/container/image-pull.js +40 -0
  457. package/dist/container/image-pull.js.map +1 -0
  458. package/dist/container/inside-container.d.ts +8 -0
  459. package/dist/container/inside-container.d.ts.map +1 -0
  460. package/dist/container/inside-container.js +11 -0
  461. package/dist/container/inside-container.js.map +1 -0
  462. package/dist/container/launch-through-proxy.d.ts +16 -0
  463. package/dist/container/launch-through-proxy.d.ts.map +1 -0
  464. package/dist/container/launch-through-proxy.js +51 -0
  465. package/dist/container/launch-through-proxy.js.map +1 -0
  466. package/dist/container/own-container.d.ts +12 -0
  467. package/dist/container/own-container.d.ts.map +1 -0
  468. package/dist/container/own-container.js +61 -0
  469. package/dist/container/own-container.js.map +1 -0
  470. package/dist/container/proxy-reach.d.ts +19 -0
  471. package/dist/container/proxy-reach.d.ts.map +1 -0
  472. package/dist/container/proxy-reach.js +101 -0
  473. package/dist/container/proxy-reach.js.map +1 -0
  474. package/dist/container/run-docker.d.ts +11 -0
  475. package/dist/container/run-docker.d.ts.map +1 -0
  476. package/dist/container/run-docker.js +61 -0
  477. package/dist/container/run-docker.js.map +1 -0
  478. package/dist/container/socks-proxy.d.ts +28 -0
  479. package/dist/container/socks-proxy.d.ts.map +1 -0
  480. package/dist/container/socks-proxy.js +335 -0
  481. package/dist/container/socks-proxy.js.map +1 -0
  482. package/dist/docs-site/docs-url.d.ts +7 -0
  483. package/dist/docs-site/docs-url.d.ts.map +1 -0
  484. package/dist/docs-site/docs-url.js +13 -0
  485. package/dist/docs-site/docs-url.js.map +1 -0
  486. package/dist/index.d.ts +5 -0
  487. package/dist/index.d.ts.map +1 -0
  488. package/dist/index.js +3 -0
  489. package/dist/index.js.map +1 -0
  490. package/dist/init/addon-question.d.ts +99 -0
  491. package/dist/init/addon-question.d.ts.map +1 -0
  492. package/dist/init/addon-question.js +111 -0
  493. package/dist/init/addon-question.js.map +1 -0
  494. package/dist/init/closing-message.d.ts +182 -0
  495. package/dist/init/closing-message.d.ts.map +1 -0
  496. package/dist/init/closing-message.js +189 -0
  497. package/dist/init/closing-message.js.map +1 -0
  498. package/dist/init/detect-project.d.ts +111 -0
  499. package/dist/init/detect-project.d.ts.map +1 -0
  500. package/dist/init/detect-project.js +166 -0
  501. package/dist/init/detect-project.js.map +1 -0
  502. package/dist/init/existing-config.d.ts +68 -0
  503. package/dist/init/existing-config.d.ts.map +1 -0
  504. package/dist/init/existing-config.js +149 -0
  505. package/dist/init/existing-config.js.map +1 -0
  506. package/dist/init/find-storybooks.d.ts +93 -0
  507. package/dist/init/find-storybooks.d.ts.map +1 -0
  508. package/dist/init/find-storybooks.js +165 -0
  509. package/dist/init/find-storybooks.js.map +1 -0
  510. package/dist/init/init-checks.d.ts +49 -0
  511. package/dist/init/init-checks.d.ts.map +1 -0
  512. package/dist/init/init-checks.js +151 -0
  513. package/dist/init/init-checks.js.map +1 -0
  514. package/dist/init/install.d.ts +286 -0
  515. package/dist/init/install.d.ts.map +1 -0
  516. package/dist/init/install.js +226 -0
  517. package/dist/init/install.js.map +1 -0
  518. package/dist/init/list-of.d.ts +10 -0
  519. package/dist/init/list-of.d.ts.map +1 -0
  520. package/dist/init/list-of.js +18 -0
  521. package/dist/init/list-of.js.map +1 -0
  522. package/dist/init/package-manager.d.ts +214 -0
  523. package/dist/init/package-manager.d.ts.map +1 -0
  524. package/dist/init/package-manager.js +308 -0
  525. package/dist/init/package-manager.js.map +1 -0
  526. package/dist/init/package-scripts.d.ts +72 -0
  527. package/dist/init/package-scripts.d.ts.map +1 -0
  528. package/dist/init/package-scripts.js +29 -0
  529. package/dist/init/package-scripts.js.map +1 -0
  530. package/dist/init/prompter.d.ts +143 -0
  531. package/dist/init/prompter.d.ts.map +1 -0
  532. package/dist/init/prompter.js +65 -0
  533. package/dist/init/prompter.js.map +1 -0
  534. package/dist/init/questions.d.ts +144 -0
  535. package/dist/init/questions.d.ts.map +1 -0
  536. package/dist/init/questions.js +342 -0
  537. package/dist/init/questions.js.map +1 -0
  538. package/dist/init/run-command.d.ts +27 -0
  539. package/dist/init/run-command.d.ts.map +1 -0
  540. package/dist/init/run-command.js +63 -0
  541. package/dist/init/run-command.js.map +1 -0
  542. package/dist/init/run-init.d.ts +133 -0
  543. package/dist/init/run-init.d.ts.map +1 -0
  544. package/dist/init/run-init.js +330 -0
  545. package/dist/init/run-init.js.map +1 -0
  546. package/dist/init/segment.d.ts +60 -0
  547. package/dist/init/segment.d.ts.map +1 -0
  548. package/dist/init/segment.js +54 -0
  549. package/dist/init/segment.js.map +1 -0
  550. package/dist/init/setup-files.d.ts +85 -0
  551. package/dist/init/setup-files.d.ts.map +1 -0
  552. package/dist/init/setup-files.js +191 -0
  553. package/dist/init/setup-files.js.map +1 -0
  554. package/dist/init/setup-progress.d.ts +46 -0
  555. package/dist/init/setup-progress.d.ts.map +1 -0
  556. package/dist/init/setup-progress.js +36 -0
  557. package/dist/init/setup-progress.js.map +1 -0
  558. package/dist/init/skill-setup.d.ts +55 -0
  559. package/dist/init/skill-setup.d.ts.map +1 -0
  560. package/dist/init/skill-setup.js +47 -0
  561. package/dist/init/skill-setup.js.map +1 -0
  562. package/dist/init/storybook-scripts.d.ts +47 -0
  563. package/dist/init/storybook-scripts.d.ts.map +1 -0
  564. package/dist/init/storybook-scripts.js +114 -0
  565. package/dist/init/storybook-scripts.js.map +1 -0
  566. package/dist/init/storybook-start.d.ts +145 -0
  567. package/dist/init/storybook-start.d.ts.map +1 -0
  568. package/dist/init/storybook-start.js +109 -0
  569. package/dist/init/storybook-start.js.map +1 -0
  570. package/dist/init/unlisted-dependencies.d.ts +75 -0
  571. package/dist/init/unlisted-dependencies.d.ts.map +1 -0
  572. package/dist/init/unlisted-dependencies.js +142 -0
  573. package/dist/init/unlisted-dependencies.js.map +1 -0
  574. package/dist/init/workspace-packages.d.ts +58 -0
  575. package/dist/init/workspace-packages.d.ts.map +1 -0
  576. package/dist/init/workspace-packages.js +86 -0
  577. package/dist/init/workspace-packages.js.map +1 -0
  578. package/dist/init/workspace.d.ts +109 -0
  579. package/dist/init/workspace.d.ts.map +1 -0
  580. package/dist/init/workspace.js +433 -0
  581. package/dist/init/workspace.js.map +1 -0
  582. package/dist/report/display-path.d.ts +7 -0
  583. package/dist/report/display-path.d.ts.map +1 -0
  584. package/dist/report/display-path.js +10 -0
  585. package/dist/report/display-path.js.map +1 -0
  586. package/dist/report/report-document.d.ts +682 -0
  587. package/dist/report/report-document.d.ts.map +1 -0
  588. package/dist/report/report-document.js +90 -0
  589. package/dist/report/report-document.js.map +1 -0
  590. package/dist/report/report-folder.d.ts +102 -0
  591. package/dist/report/report-folder.d.ts.map +1 -0
  592. package/dist/report/report-folder.js +160 -0
  593. package/dist/report/report-folder.js.map +1 -0
  594. package/dist/reporter/counts-line.d.ts +14 -0
  595. package/dist/reporter/counts-line.d.ts.map +1 -0
  596. package/dist/reporter/counts-line.js +18 -0
  597. package/dist/reporter/counts-line.js.map +1 -0
  598. package/dist/reporter/duration.d.ts +8 -0
  599. package/dist/reporter/duration.d.ts.map +1 -0
  600. package/dist/reporter/duration.js +18 -0
  601. package/dist/reporter/duration.js.map +1 -0
  602. package/dist/reporter/end-block.d.ts +42 -0
  603. package/dist/reporter/end-block.d.ts.map +1 -0
  604. package/dist/reporter/end-block.js +121 -0
  605. package/dist/reporter/end-block.js.map +1 -0
  606. package/dist/reporter/log-reporter.d.ts +10 -0
  607. package/dist/reporter/log-reporter.d.ts.map +1 -0
  608. package/dist/reporter/log-reporter.js +23 -0
  609. package/dist/reporter/log-reporter.js.map +1 -0
  610. package/dist/reporter/reporter-choice.d.ts +27 -0
  611. package/dist/reporter/reporter-choice.d.ts.map +1 -0
  612. package/dist/reporter/reporter-choice.js +12 -0
  613. package/dist/reporter/reporter-choice.js.map +1 -0
  614. package/dist/reporter/run-event.d.ts +90 -0
  615. package/dist/reporter/run-event.d.ts.map +1 -0
  616. package/dist/reporter/run-event.js +2 -0
  617. package/dist/reporter/run-event.js.map +1 -0
  618. package/dist/sharding/shard.d.ts +17 -0
  619. package/dist/sharding/shard.d.ts.map +1 -0
  620. package/dist/sharding/shard.js +2 -0
  621. package/dist/sharding/shard.js.map +1 -0
  622. package/dist/sharding/split-stories-files.d.ts +43 -0
  623. package/dist/sharding/split-stories-files.d.ts.map +1 -0
  624. package/dist/sharding/split-stories-files.js +70 -0
  625. package/dist/sharding/split-stories-files.js.map +1 -0
  626. package/dist/step-summary/step-summary.d.ts +45 -0
  627. package/dist/step-summary/step-summary.d.ts.map +1 -0
  628. package/dist/step-summary/step-summary.js +263 -0
  629. package/dist/step-summary/step-summary.js.map +1 -0
  630. package/dist/storybook/options-encoding.d.ts +115 -0
  631. package/dist/storybook/options-encoding.d.ts.map +1 -0
  632. package/dist/storybook/options-encoding.js +117 -0
  633. package/dist/storybook/options-encoding.js.map +1 -0
  634. package/dist/storybook/options-read.d.ts +146 -0
  635. package/dist/storybook/options-read.d.ts.map +1 -0
  636. package/dist/storybook/options-read.js +192 -0
  637. package/dist/storybook/options-read.js.map +1 -0
  638. package/dist/storybook/preview-script.d.ts +172 -0
  639. package/dist/storybook/preview-script.d.ts.map +1 -0
  640. package/dist/storybook/preview-script.js +804 -0
  641. package/dist/storybook/preview-script.js.map +1 -0
  642. package/dist/storybook/read-stories.d.ts +72 -0
  643. package/dist/storybook/read-stories.d.ts.map +1 -0
  644. package/dist/storybook/read-stories.js +317 -0
  645. package/dist/storybook/read-stories.js.map +1 -0
  646. package/dist/storybook/stories-matchers.d.ts +39 -0
  647. package/dist/storybook/stories-matchers.d.ts.map +1 -0
  648. package/dist/storybook/stories-matchers.js +149 -0
  649. package/dist/storybook/stories-matchers.js.map +1 -0
  650. package/dist/storybook/storybook-error.d.ts +24 -0
  651. package/dist/storybook/storybook-error.d.ts.map +1 -0
  652. package/dist/storybook/storybook-error.js +24 -0
  653. package/dist/storybook/storybook-error.js.map +1 -0
  654. package/dist/storybook/storybook-version.d.ts +62 -0
  655. package/dist/storybook/storybook-version.d.ts.map +1 -0
  656. package/dist/storybook/storybook-version.js +105 -0
  657. package/dist/storybook/storybook-version.js.map +1 -0
  658. package/dist/storybook/test-path.d.ts +19 -0
  659. package/dist/storybook/test-path.d.ts.map +1 -0
  660. package/dist/storybook/test-path.js +47 -0
  661. package/dist/storybook/test-path.js.map +1 -0
  662. package/dist/storybook/wait-hook.d.ts +64 -0
  663. package/dist/storybook/wait-hook.d.ts.map +1 -0
  664. package/dist/storybook/wait-hook.js +50 -0
  665. package/dist/storybook/wait-hook.js.map +1 -0
  666. package/dist/system-error/system-reason.d.ts +8 -0
  667. package/dist/system-error/system-reason.d.ts.map +1 -0
  668. package/dist/system-error/system-reason.js +15 -0
  669. package/dist/system-error/system-reason.js.map +1 -0
  670. package/dist/terminal-ui/answered-line.d.ts +21 -0
  671. package/dist/terminal-ui/answered-line.d.ts.map +1 -0
  672. package/dist/terminal-ui/answered-line.js +12 -0
  673. package/dist/terminal-ui/answered-line.js.map +1 -0
  674. package/dist/terminal-ui/brand-header.d.ts +21 -0
  675. package/dist/terminal-ui/brand-header.d.ts.map +1 -0
  676. package/dist/terminal-ui/brand-header.js +12 -0
  677. package/dist/terminal-ui/brand-header.js.map +1 -0
  678. package/dist/terminal-ui/checklist-question.d.ts +26 -0
  679. package/dist/terminal-ui/checklist-question.d.ts.map +1 -0
  680. package/dist/terminal-ui/checklist-question.js +62 -0
  681. package/dist/terminal-ui/checklist-question.js.map +1 -0
  682. package/dist/terminal-ui/choice-line.d.ts +29 -0
  683. package/dist/terminal-ui/choice-line.d.ts.map +1 -0
  684. package/dist/terminal-ui/choice-line.js +13 -0
  685. package/dist/terminal-ui/choice-line.js.map +1 -0
  686. package/dist/terminal-ui/coloured-text.d.ts +19 -0
  687. package/dist/terminal-ui/coloured-text.d.ts.map +1 -0
  688. package/dist/terminal-ui/coloured-text.js +16 -0
  689. package/dist/terminal-ui/coloured-text.js.map +1 -0
  690. package/dist/terminal-ui/confirm-question.d.ts +8 -0
  691. package/dist/terminal-ui/confirm-question.d.ts.map +1 -0
  692. package/dist/terminal-ui/confirm-question.js +44 -0
  693. package/dist/terminal-ui/confirm-question.js.map +1 -0
  694. package/dist/terminal-ui/init-screen.d.ts +23 -0
  695. package/dist/terminal-ui/init-screen.d.ts.map +1 -0
  696. package/dist/terminal-ui/init-screen.js +74 -0
  697. package/dist/terminal-ui/init-screen.js.map +1 -0
  698. package/dist/terminal-ui/init-view-state.d.ts +294 -0
  699. package/dist/terminal-ui/init-view-state.d.ts.map +1 -0
  700. package/dist/terminal-ui/init-view-state.js +148 -0
  701. package/dist/terminal-ui/init-view-state.js.map +1 -0
  702. package/dist/terminal-ui/init-view.d.ts +70 -0
  703. package/dist/terminal-ui/init-view.d.ts.map +1 -0
  704. package/dist/terminal-ui/init-view.js +128 -0
  705. package/dist/terminal-ui/init-view.js.map +1 -0
  706. package/dist/terminal-ui/live-screen.d.ts +22 -0
  707. package/dist/terminal-ui/live-screen.d.ts.map +1 -0
  708. package/dist/terminal-ui/live-screen.js +41 -0
  709. package/dist/terminal-ui/live-screen.js.map +1 -0
  710. package/dist/terminal-ui/live-view-state.d.ts +64 -0
  711. package/dist/terminal-ui/live-view-state.d.ts.map +1 -0
  712. package/dist/terminal-ui/live-view-state.js +54 -0
  713. package/dist/terminal-ui/live-view-state.js.map +1 -0
  714. package/dist/terminal-ui/live-view.d.ts +37 -0
  715. package/dist/terminal-ui/live-view.d.ts.map +1 -0
  716. package/dist/terminal-ui/live-view.js +67 -0
  717. package/dist/terminal-ui/live-view.js.map +1 -0
  718. package/dist/terminal-ui/message-line.d.ts +31 -0
  719. package/dist/terminal-ui/message-line.d.ts.map +1 -0
  720. package/dist/terminal-ui/message-line.js +79 -0
  721. package/dist/terminal-ui/message-line.js.map +1 -0
  722. package/dist/terminal-ui/output-tail.d.ts +29 -0
  723. package/dist/terminal-ui/output-tail.d.ts.map +1 -0
  724. package/dist/terminal-ui/output-tail.js +52 -0
  725. package/dist/terminal-ui/output-tail.js.map +1 -0
  726. package/dist/terminal-ui/progress-bar.d.ts +47 -0
  727. package/dist/terminal-ui/progress-bar.d.ts.map +1 -0
  728. package/dist/terminal-ui/progress-bar.js +23 -0
  729. package/dist/terminal-ui/progress-bar.js.map +1 -0
  730. package/dist/terminal-ui/question-header.d.ts +23 -0
  731. package/dist/terminal-ui/question-header.d.ts.map +1 -0
  732. package/dist/terminal-ui/question-header.js +24 -0
  733. package/dist/terminal-ui/question-header.js.map +1 -0
  734. package/dist/terminal-ui/question.d.ts +85 -0
  735. package/dist/terminal-ui/question.d.ts.map +1 -0
  736. package/dist/terminal-ui/question.js +77 -0
  737. package/dist/terminal-ui/question.js.map +1 -0
  738. package/dist/terminal-ui/select-question.d.ts +19 -0
  739. package/dist/terminal-ui/select-question.d.ts.map +1 -0
  740. package/dist/terminal-ui/select-question.js +24 -0
  741. package/dist/terminal-ui/select-question.js.map +1 -0
  742. package/dist/terminal-ui/spinner.d.ts +26 -0
  743. package/dist/terminal-ui/spinner.d.ts.map +1 -0
  744. package/dist/terminal-ui/spinner.js +39 -0
  745. package/dist/terminal-ui/spinner.js.map +1 -0
  746. package/dist/terminal-ui/step-list.d.ts +36 -0
  747. package/dist/terminal-ui/step-list.d.ts.map +1 -0
  748. package/dist/terminal-ui/step-list.js +122 -0
  749. package/dist/terminal-ui/step-list.js.map +1 -0
  750. package/dist/terminal-ui/summary.d.ts +20 -0
  751. package/dist/terminal-ui/summary.d.ts.map +1 -0
  752. package/dist/terminal-ui/summary.js +96 -0
  753. package/dist/terminal-ui/summary.js.map +1 -0
  754. package/dist/terminal-ui/text-input.d.ts +65 -0
  755. package/dist/terminal-ui/text-input.d.ts.map +1 -0
  756. package/dist/terminal-ui/text-input.js +72 -0
  757. package/dist/terminal-ui/text-input.js.map +1 -0
  758. package/dist/terminal-ui/text-question.d.ts +18 -0
  759. package/dist/terminal-ui/text-question.d.ts.map +1 -0
  760. package/dist/terminal-ui/text-question.js +60 -0
  761. package/dist/terminal-ui/text-question.js.map +1 -0
  762. package/dist/terminal-ui/theme.d.ts +106 -0
  763. package/dist/terminal-ui/theme.d.ts.map +1 -0
  764. package/dist/terminal-ui/theme.js +97 -0
  765. package/dist/terminal-ui/theme.js.map +1 -0
  766. package/dist/terminal-ui/wrapped-lines.d.ts +15 -0
  767. package/dist/terminal-ui/wrapped-lines.d.ts.map +1 -0
  768. package/dist/terminal-ui/wrapped-lines.js +105 -0
  769. package/dist/terminal-ui/wrapped-lines.js.map +1 -0
  770. package/dist/terminal-ui/wrapped-segments.d.ts +27 -0
  771. package/dist/terminal-ui/wrapped-segments.d.ts.map +1 -0
  772. package/dist/terminal-ui/wrapped-segments.js +37 -0
  773. package/dist/terminal-ui/wrapped-segments.js.map +1 -0
  774. package/dist/terminal-ui/wrapped-text.d.ts +21 -0
  775. package/dist/terminal-ui/wrapped-text.d.ts.map +1 -0
  776. package/dist/terminal-ui/wrapped-text.js +11 -0
  777. package/dist/terminal-ui/wrapped-text.js.map +1 -0
  778. package/dist/visual-diff/diff-thread.d.ts +27 -0
  779. package/dist/visual-diff/diff-thread.d.ts.map +1 -0
  780. package/dist/visual-diff/diff-thread.js +233 -0
  781. package/dist/visual-diff/diff-thread.js.map +1 -0
  782. package/dist/visual-diff/visual-diff.d.ts +259 -0
  783. package/dist/visual-diff/visual-diff.d.ts.map +1 -0
  784. package/dist/visual-diff/visual-diff.js +317 -0
  785. package/dist/visual-diff/visual-diff.js.map +1 -0
  786. package/fallow-graph.json +1 -0
  787. package/package.json +61 -4
  788. package/skill/SKILL.md +92 -0
  789. package/skill/scripts/run.mjs +1532 -0
  790. package/README.md +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log-reporter.js","sourceRoot":"","sources":["../../src/reporter/log-reporter.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,KAA6B;IACzD,OAAO;QACL,KAAK,EAAE,CAAC,KAAe,EAAE,EAAE;YACzB,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC7B,KAAK,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;oBAClD,KAAK,CAAC,GAAG,IAAI,IAAI,CAAC,CAAA;gBACpB,CAAC;YACH,CAAC;YAED,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;gBAC9B,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,IAAI,CAAC,CAAA;YAC1B,CAAC;QACH,CAAC;QACD,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS;KAC9B,CAAA;AACH,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * How a run reports: `live` and `log` print the human output, `json` prints the report's JSON document on stdout.
3
+ *
4
+ * @public
5
+ */
6
+ export type Reporter = 'live' | 'log' | 'json';
7
+ /**
8
+ * What picks the reporter when `--reporter` isn't given.
9
+ */
10
+ interface ReporterSetting {
11
+ /**
12
+ * Whether the `CI` environment variable says the run is in CI.
13
+ */
14
+ ci: boolean;
15
+ /**
16
+ * Whether standard output is a TTY.
17
+ */
18
+ tty: boolean;
19
+ }
20
+ /**
21
+ * Gives the reporter: the flag's, else `log` with `CI` set or no TTY, else `live`.
22
+ *
23
+ * @public
24
+ */
25
+ export declare function reporterOf(flag: Reporter | undefined, setting: ReporterSetting): Reporter;
26
+ export {};
27
+ //# sourceMappingURL=reporter-choice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reporter-choice.d.ts","sourceRoot":"","sources":["../../src/reporter/reporter-choice.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;AAE9C;;GAEG;AACH,UAAU,eAAe;IACvB;;OAEG;IACH,EAAE,EAAE,OAAO,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,OAAO,CAAA;CACb;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,QAAQ,CAMzF"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Gives the reporter: the flag's, else `log` with `CI` set or no TTY, else `live`.
3
+ *
4
+ * @public
5
+ */
6
+ export function reporterOf(flag, setting) {
7
+ if (flag !== undefined) {
8
+ return flag;
9
+ }
10
+ return setting.ci || !setting.tty ? 'log' : 'live';
11
+ }
12
+ //# sourceMappingURL=reporter-choice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reporter-choice.js","sourceRoot":"","sources":["../../src/reporter/reporter-choice.ts"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAA0B,EAAE,OAAwB;IAC7E,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;AACpD,CAAC"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * The mark a snapshot's line starts with: `✓` for a pass, `✗` for a failure, `!` for a broken story.
3
+ *
4
+ * @public
5
+ */
6
+ export type SnapshotMark = '✓' | '✗' | '!';
7
+ /**
8
+ * The planned snapshots, first in a run's progress stream.
9
+ */
10
+ interface PlannedEvent {
11
+ /**
12
+ * What the event is.
13
+ */
14
+ kind: 'planned';
15
+ /**
16
+ * The header, without a newline.
17
+ */
18
+ header: string;
19
+ /**
20
+ * The notes printed after the header, each without a newline: that no story is affected, or a shard's, else none.
21
+ */
22
+ notes: string[];
23
+ /**
24
+ * How many snapshots the run takes.
25
+ */
26
+ total: number;
27
+ /**
28
+ * How many workers capture at once.
29
+ */
30
+ workers: number;
31
+ }
32
+ /**
33
+ * A worker started taking a snapshot.
34
+ */
35
+ interface StartedEvent {
36
+ /**
37
+ * What the event is.
38
+ */
39
+ kind: 'started';
40
+ /**
41
+ * The snapshot's place in planned order.
42
+ */
43
+ index: number;
44
+ }
45
+ /**
46
+ * A snapshot finished.
47
+ */
48
+ interface FinishedEvent {
49
+ /**
50
+ * What the event is.
51
+ */
52
+ kind: 'finished';
53
+ /**
54
+ * The snapshot's place in planned order.
55
+ */
56
+ index: number;
57
+ /**
58
+ * The mark its line starts with.
59
+ */
60
+ mark: SnapshotMark;
61
+ /**
62
+ * Its one printed line, without a newline.
63
+ */
64
+ line: string;
65
+ }
66
+ /**
67
+ * An event of a `test` or `update` run's progress stream, in the order it happens: the planned snapshots, then each
68
+ * snapshot's start and finish.
69
+ *
70
+ * @public
71
+ */
72
+ export type RunEvent = PlannedEvent | StartedEvent | FinishedEvent;
73
+ /**
74
+ * Shows a `test` or `update` run's progress stream as it happens.
75
+ *
76
+ * @public
77
+ */
78
+ export interface RunReporter {
79
+ /**
80
+ * Takes the next event of the progress stream.
81
+ */
82
+ event(event: RunEvent): void;
83
+ /**
84
+ * Ends what it shows during the run, and resolves once the last of it is written. Called once, also when the run
85
+ * stops with exit 2. It shouldn't reject; if it does while the run throws, the run's error is kept.
86
+ */
87
+ finish(): Promise<void>;
88
+ }
89
+ export {};
90
+ //# sourceMappingURL=run-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-event.d.ts","sourceRoot":"","sources":["../../src/reporter/run-event.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAE1C;;GAEG;AACH,UAAU,YAAY;IACpB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAA;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,UAAU,YAAY;IACpB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAA;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,UAAU,aAAa;IACrB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,EAAE,YAAY,CAAA;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CAAA;AAElE;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC5B;;;OAGG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=run-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-event.js","sourceRoot":"","sources":["../../src/reporter/run-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Which shard a test run is: one of several CI jobs the run is split across, each capturing its own share of the
3
+ * stories files. `--shard 2/4` is the second of four.
4
+ *
5
+ * @public
6
+ */
7
+ export interface Shard {
8
+ /**
9
+ * Which shard this is, from 1 to `total`. Nothing past the command line checks that it is in range.
10
+ */
11
+ index: number;
12
+ /**
13
+ * How many shards the run is split across.
14
+ */
15
+ total: number;
16
+ }
17
+ //# sourceMappingURL=shard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shard.d.ts","sourceRoot":"","sources":["../../src/sharding/shard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shard.js","sourceRoot":"","sources":["../../src/sharding/shard.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ import type { Story } from '../storybook/read-stories.js';
2
+ import type { Shard } from './shard.js';
3
+ /**
4
+ * One Storybook's part in a split: what its index lists and what its baselines folder holds.
5
+ *
6
+ * @public
7
+ */
8
+ export interface StorybookToSplit {
9
+ /**
10
+ * The Storybook's folder, which its stories' `importPath`s are relative to.
11
+ */
12
+ dir: string;
13
+ /**
14
+ * The stories to split, each with the stories file it's in.
15
+ */
16
+ stories: readonly Story[];
17
+ /**
18
+ * The name of each baseline in the Storybook's baselines folder, each ending in `.png`.
19
+ */
20
+ baselineFileNames: readonly string[];
21
+ }
22
+ /**
23
+ * Deals the items, in the order given, across `total` shards: each to the shard with the lowest total weight so far,
24
+ * the lowest shard on a tie. Gives each shard's items, from shard 1 to shard `total`, some empty when there are fewer
25
+ * items than shards. No shard's total ends up more than the heaviest item's weight above another's.
26
+ */
27
+ export declare function deal<Item extends {
28
+ weight: number;
29
+ }>(items: readonly Item[], total: number): Item[][];
30
+ /**
31
+ * Works out one shard's share of the stories files of every Storybook. Each shard works it out alone from the same
32
+ * stories and baselines, so the split has to come out the same on every machine. A stories file is dealt whole, with
33
+ * all its stories and their modes. It weighs the number of baselines its stories own, or its number of stories when
34
+ * they own none yet, and an orphan weighs nothing. The files of every Storybook are dealt together, heaviest first, to
35
+ * the shard with the lowest total so far, the lowest shard on a tie. Files of the same weight go by their path
36
+ * relative to the config file's folder, so two Storybooks' files of the same `importPath` are told apart. Gives, for
37
+ * each Storybook in the order given, the `importPath`s of the stories files dealt to the shard, none when there are
38
+ * more shards than files. The shard's `index` must be from 1 to its `total`.
39
+ *
40
+ * @public
41
+ */
42
+ export declare function storiesFilesOfShard(storybooks: readonly StorybookToSplit[], configFolder: string, shard: Shard): ReadonlySet<string>[];
43
+ //# sourceMappingURL=split-stories-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-stories-files.d.ts","sourceRoot":"","sources":["../../src/sharding/split-stories-files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,OAAO,EAAE,SAAS,KAAK,EAAE,CAAA;IACzB;;OAEG;IACH,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAA;CACrC;AAmED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,IAAI,SAAS;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,CAWrG;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,SAAS,gBAAgB,EAAE,EACvC,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,KAAK,GACX,WAAW,CAAC,MAAM,CAAC,EAAE,CAWvB"}
@@ -0,0 +1,70 @@
1
+ import { relative, resolve, sep } from 'node:path';
2
+ import { baselineCountsOf } from '../baselines/baseline-set.js';
3
+ /**
4
+ * Gives one Storybook's stories files, each weighed by the baselines its stories own, or by its number of stories when
5
+ * they own none.
6
+ */
7
+ function storiesFilesOf(storybook, storybookIndex, configFolder) {
8
+ const baselineCounts = baselineCountsOf(storybook.baselineFileNames, storybook.stories.map((story) => story.id));
9
+ const files = new Map();
10
+ for (const { id, importPath } of storybook.stories) {
11
+ const file = files.get(importPath) ?? { stories: 0, baselines: 0 };
12
+ files.set(importPath, { stories: file.stories + 1, baselines: file.baselines + (baselineCounts.get(id) ?? 0) });
13
+ }
14
+ return [...files].map(([importPath, { stories, baselines }]) => ({
15
+ storybookIndex,
16
+ importPath,
17
+ path: relative(configFolder, resolve(storybook.dir, importPath)).split(sep).join('/'),
18
+ weight: baselines > 0 ? baselines : stories,
19
+ }));
20
+ }
21
+ /**
22
+ * Orders stories files for the deal: heaviest first, then by path in code unit order, which is the same on every
23
+ * machine, unlike a locale's order.
24
+ */
25
+ function dealOrder(first, second) {
26
+ if (first.weight !== second.weight) {
27
+ return second.weight - first.weight;
28
+ }
29
+ if (first.path === second.path) {
30
+ return 0;
31
+ }
32
+ return first.path < second.path ? -1 : 1;
33
+ }
34
+ /**
35
+ * Deals the items, in the order given, across `total` shards: each to the shard with the lowest total weight so far,
36
+ * the lowest shard on a tie. Gives each shard's items, from shard 1 to shard `total`, some empty when there are fewer
37
+ * items than shards. No shard's total ends up more than the heaviest item's weight above another's.
38
+ */
39
+ export function deal(items, total) {
40
+ const hands = Array.from({ length: total }, () => ({ items: [], weight: 0 }));
41
+ for (const item of items) {
42
+ const lightest = hands.reduce((lowest, hand) => (hand.weight < lowest.weight ? hand : lowest));
43
+ lightest.items.push(item);
44
+ lightest.weight += item.weight;
45
+ }
46
+ return hands.map((hand) => hand.items);
47
+ }
48
+ /**
49
+ * Works out one shard's share of the stories files of every Storybook. Each shard works it out alone from the same
50
+ * stories and baselines, so the split has to come out the same on every machine. A stories file is dealt whole, with
51
+ * all its stories and their modes. It weighs the number of baselines its stories own, or its number of stories when
52
+ * they own none yet, and an orphan weighs nothing. The files of every Storybook are dealt together, heaviest first, to
53
+ * the shard with the lowest total so far, the lowest shard on a tie. Files of the same weight go by their path
54
+ * relative to the config file's folder, so two Storybooks' files of the same `importPath` are told apart. Gives, for
55
+ * each Storybook in the order given, the `importPath`s of the stories files dealt to the shard, none when there are
56
+ * more shards than files. The shard's `index` must be from 1 to its `total`.
57
+ *
58
+ * @public
59
+ */
60
+ export function storiesFilesOfShard(storybooks, configFolder, shard) {
61
+ const files = storybooks
62
+ .flatMap((storybook, storybookIndex) => storiesFilesOf(storybook, storybookIndex, configFolder))
63
+ .sort(dealOrder);
64
+ const shares = storybooks.map(() => new Set());
65
+ for (const file of deal(files, shard.total)[shard.index - 1] ?? []) {
66
+ shares[file.storybookIndex]?.add(file.importPath);
67
+ }
68
+ return shares;
69
+ }
70
+ //# sourceMappingURL=split-stories-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-stories-files.js","sourceRoot":"","sources":["../../src/sharding/split-stories-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAgD/D;;;GAGG;AACH,SAAS,cAAc,CAAC,SAA2B,EAAE,cAAsB,EAAE,YAAoB;IAC/F,MAAM,cAAc,GAAG,gBAAgB,CACrC,SAAS,CAAC,iBAAiB,EAC3B,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAC3C,CAAA;IACD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkD,CAAA;IAEvE,KAAK,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACnD,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;QAElE,KAAK,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAA;IACjH,CAAC;IAED,OAAO,CAAC,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C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;QAE9F,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACzB,QAAQ,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAA;IAChC,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACxC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAAuC,EACvC,YAAoB,EACpB,KAAY;IAEZ,MAAM,KAAK,GAAG,UAAU;SACrB,OAAO,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;SAC/F,IAAI,CAAC,SAAS,CAAC,CAAA;IAClB,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,GAAG,EAAU,CAAC,CAAA;IAEtD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QACnE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACnD,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { Report } from '../report/report-document.js';
2
+ /**
3
+ * The step summary couldn't be written, such as for a folder that doesn't exist or a path that is a folder.
4
+ *
5
+ * @public
6
+ */
7
+ export declare class StepSummaryError extends Error {
8
+ /**
9
+ * The class's name, so a stack trace or a log line reads `StepSummaryError`.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The step summary file's path.
14
+ */
15
+ readonly path: string;
16
+ /**
17
+ * The operating system's reason, such as `EACCES: permission denied`.
18
+ */
19
+ readonly reason: string;
20
+ /**
21
+ * Keeps the path and the reason the error that caused it gives.
22
+ */
23
+ constructor(path: string, cause: unknown);
24
+ }
25
+ /**
26
+ * Builds the run's step summary in Markdown, under `budgetBytes` in UTF-8: a heading naming the version, the command,
27
+ * the shard and whether only the consistency check ran, then the counts, the flaky snapshots, at most 100, and a table
28
+ * of the failures in the report's order, the names and cells escaped. The table keeps its first rows that fit, and a
29
+ * note says how many it leaves out. A run that exited 2 gives the heading and its error instead, cut to fit with a
30
+ * note that says so, or the heading alone when not even the note fits. Gives `''` when even the part before the
31
+ * table's rows, or the heading, doesn't fit.
32
+ *
33
+ * @public
34
+ */
35
+ export declare function stepSummaryOf(report: Report, budgetBytes: number): string;
36
+ /**
37
+ * Appends the run's step summary to the file at `path`, creating it when it doesn't exist, so the file stays under
38
+ * GitHub's 1 MiB with 1 KiB left for the Action: the budget counts what the file already holds. After what it holds,
39
+ * a blank line comes first, so the summary's heading is one. Writes nothing when no summary fits.
40
+ *
41
+ * @throws {StepSummaryError} When the file can't be read or written.
42
+ * @public
43
+ */
44
+ export declare function appendStepSummary(path: string, report: Report): Promise<void>;
45
+ //# sourceMappingURL=step-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-summary.d.ts","sourceRoot":"","sources":["../../src/step-summary/step-summary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAqB,MAAM,8BAA8B,CAAA;AA6C7E;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC;;OAEG;IACM,IAAI,SAAqB;IAElC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,YAAY,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAMvC;CACF;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAezE;AAqLD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAenF"}
@@ -0,0 +1,263 @@
1
+ import { appendFile, stat } from 'node:fs/promises';
2
+ import { countsLineOf } from '../reporter/counts-line.js';
3
+ import { failureStatuses, testCountsLineOf } from '../reporter/end-block.js';
4
+ import { systemReasonOf } from '../system-error/system-reason.js';
5
+ /**
6
+ * The most a step summary file may hold, in bytes: GitHub's 1 MiB per step.
7
+ */
8
+ const stepLimitBytes = 1024 * 1024;
9
+ /**
10
+ * The bytes left free for the Action, which appends the artifact link after the CLI.
11
+ */
12
+ const actionBytes = 1024;
13
+ /**
14
+ * The most flaky snapshots the summary names.
15
+ */
16
+ const listedFlakyCount = 100;
17
+ /**
18
+ * What starts a summary appended after what the file already holds: a blank line, so its heading is one.
19
+ */
20
+ const separator = '\n\n';
21
+ /**
22
+ * The note under an error cut to fit.
23
+ */
24
+ const errorCutNote = "_The error is cut, to keep this summary under GitHub's 1 MiB._";
25
+ /**
26
+ * The failures table's head: its column names and the line under them.
27
+ */
28
+ const tableHead = '| Storybook | Story | Mode | Status | Message |\n| --- | --- | --- | --- | --- |';
29
+ /**
30
+ * The step summary couldn't be written, such as for a folder that doesn't exist or a path that is a folder.
31
+ *
32
+ * @public
33
+ */
34
+ export class StepSummaryError extends Error {
35
+ /**
36
+ * The class's name, so a stack trace or a log line reads `StepSummaryError`.
37
+ */
38
+ name = 'StepSummaryError';
39
+ /**
40
+ * The step summary file's path.
41
+ */
42
+ path;
43
+ /**
44
+ * The operating system's reason, such as `EACCES: permission denied`.
45
+ */
46
+ reason;
47
+ /**
48
+ * Keeps the path and the reason the error that caused it gives.
49
+ */
50
+ constructor(path, cause) {
51
+ const reason = systemReasonOf(cause);
52
+ super(`Couldn't write the step summary to ${path}: ${reason}.`, { cause });
53
+ this.path = path;
54
+ this.reason = reason;
55
+ }
56
+ }
57
+ /**
58
+ * Builds the run's step summary in Markdown, under `budgetBytes` in UTF-8: a heading naming the version, the command,
59
+ * the shard and whether only the consistency check ran, then the counts, the flaky snapshots, at most 100, and a table
60
+ * of the failures in the report's order, the names and cells escaped. The table keeps its first rows that fit, and a
61
+ * note says how many it leaves out. A run that exited 2 gives the heading and its error instead, cut to fit with a
62
+ * note that says so, or the heading alone when not even the note fits. Gives `''` when even the part before the
63
+ * table's rows, or the heading, doesn't fit.
64
+ *
65
+ * @public
66
+ */
67
+ export function stepSummaryOf(report, budgetBytes) {
68
+ const heading = headingOf(report);
69
+ if (report.error !== null) {
70
+ return errorSummaryOf(heading, report.error.message, budgetBytes);
71
+ }
72
+ const blocks = [heading, countsOf(report), ...flakyBlockOf(report)];
73
+ const rows = failuresOf(report).map(rowOf);
74
+ if (rows.length === 0) {
75
+ return withinBudget(`${blocks.join('\n\n')}\n`, budgetBytes);
76
+ }
77
+ return failuresSummaryOf([...blocks, '**Failures**', tableHead].join('\n\n'), rows, report, budgetBytes);
78
+ }
79
+ /**
80
+ * Gives the summary of a run that exited 2: the heading, then its error as an indented code block, so nothing in it
81
+ * needs escaping. An error too long for the budget is cut at a character, with a note under it, and when not even
82
+ * that fits the heading stands alone.
83
+ */
84
+ function errorSummaryOf(heading, message, budgetBytes) {
85
+ const head = `${heading}\n\nThe run stopped with exit code 2:\n\n`;
86
+ const block = message
87
+ .split('\n')
88
+ .map((line) => ` ${line}`)
89
+ .join('\n');
90
+ const whole = `${head}${block}\n`;
91
+ if (byteLengthOf(whole) < budgetBytes) {
92
+ return whole;
93
+ }
94
+ const tail = `\n\n${errorCutNote}\n`;
95
+ const blockBytes = budgetBytes - 1 - byteLengthOf(head) - byteLengthOf(tail);
96
+ if (blockBytes <= 0) {
97
+ return withinBudget(`${heading}\n`, budgetBytes);
98
+ }
99
+ return `${head}${prefixWithin(block, blockBytes)}${tail}`;
100
+ }
101
+ /**
102
+ * Gives the longest start of the text that takes at most `maxBytes` in UTF-8, never splitting a character.
103
+ */
104
+ function prefixWithin(text, maxBytes) {
105
+ let usedBytes = 0;
106
+ let end = 0;
107
+ for (const character of text) {
108
+ usedBytes += byteLengthOf(character);
109
+ if (usedBytes > maxBytes) {
110
+ break;
111
+ }
112
+ end += character.length;
113
+ }
114
+ return text.slice(0, end);
115
+ }
116
+ /**
117
+ * Gives the summary's heading: the version and the command, then the shard and whether only the consistency check ran.
118
+ */
119
+ function headingOf(report) {
120
+ const shard = report.shard === null ? '' : ` · shard ${report.shard.index}/${report.shard.total}`;
121
+ const consistency = report.consistencyOnly ? ' · consistency' : '';
122
+ return `### visual-check ${report.visualCheck} · ${report.command}${shard}${consistency}`;
123
+ }
124
+ /**
125
+ * Gives the counts line: a `test`'s as its end block has it, without the time, or an `update`'s as its terminal has it.
126
+ */
127
+ function countsOf(report) {
128
+ if (report.command === 'test') {
129
+ return testCountsLineOf(report.counts);
130
+ }
131
+ const { written, deleted, kept, broken } = report.counts;
132
+ return countsLineOf([
133
+ ['written', written],
134
+ ['deleted', deleted],
135
+ ['kept', kept],
136
+ ['broken', broken],
137
+ ]);
138
+ }
139
+ /**
140
+ * Names the flaky snapshots under a heading, at most 100, then how many more there are. For `test` those are the
141
+ * passes on a retry. Gives no block when none is flaky.
142
+ */
143
+ function flakyBlockOf(report) {
144
+ const entries = report.snapshots;
145
+ const flaky = entries.filter((entry) => entry.flaky && (report.command === 'update' || entry.status === 'passed'));
146
+ if (flaky.length === 0) {
147
+ return [];
148
+ }
149
+ const names = flaky.slice(0, listedFlakyCount).map(({ storybook, story, id, mode }) => {
150
+ return `- ${[storybook, story ?? id, ...(mode === null ? [] : [mode])].map(inlineTextOf).join(' · ')}`;
151
+ });
152
+ const more = flaky.length > listedFlakyCount ? [`- …and ${flaky.length - listedFlakyCount} more`] : [];
153
+ return ['**Flaky snapshots**', [...names, ...more].join('\n')];
154
+ }
155
+ /**
156
+ * Gives the entries the failures table lists, in the report's order: for `test` the snapshots that differ, the broken
157
+ * and missing ones and the orphans; for `update` the broken stories.
158
+ */
159
+ function failuresOf(report) {
160
+ const entries = report.snapshots;
161
+ const statuses = report.command === 'test' ? failureStatuses : ['broken'];
162
+ return entries.filter((entry) => statuses.includes(entry.status));
163
+ }
164
+ /**
165
+ * Builds a failure's table row: its Storybook, story ID or an orphan's stem, mode, status and message.
166
+ */
167
+ function rowOf({ storybook, story, id, mode, status, message }) {
168
+ return `| ${[storybook, story ?? id, mode ?? '', status, message].map(inlineTextOf).join(' | ')} |`;
169
+ }
170
+ /**
171
+ * Escapes text for one line of Markdown, a list item or a table cell, so it can't end a cell or break the line and
172
+ * the common inline markup shows as written: `&` and `<` become entities, `\`, `` ` ``, `*`, `_`, `[`, `]`, `|`, `~`
173
+ * and `#` get a backslash, and each line break becomes a space.
174
+ */
175
+ function inlineTextOf(text) {
176
+ return text
177
+ .replace(/&/g, '&amp;')
178
+ .replace(/</g, '&lt;')
179
+ .replace(/[\\`*_[\]|~#]/g, '\\$&')
180
+ .replace(/\r\n|\n|\r/g, ' ');
181
+ }
182
+ /**
183
+ * Ends the summary after the table's head with the first rows that fit under the budget, and a note on how many it
184
+ * leaves out, if any. Gives `''` when not even the head with the note on every row fits.
185
+ */
186
+ function failuresSummaryOf(head, rows, report, budgetBytes) {
187
+ const endOf = (leftOut) => (leftOut === 0 ? '\n' : `\n\n${cutNoteOf(leftOut, report)}\n`);
188
+ let usedBytes = byteLengthOf(head);
189
+ if (usedBytes + byteLengthOf(endOf(rows.length)) >= budgetBytes) {
190
+ return '';
191
+ }
192
+ let kept = 0;
193
+ for (const row of rows) {
194
+ const rowBytes = byteLengthOf(`\n${row}`);
195
+ if (usedBytes + rowBytes + byteLengthOf(endOf(rows.length - kept - 1)) >= budgetBytes) {
196
+ break;
197
+ }
198
+ usedBytes += rowBytes;
199
+ kept += 1;
200
+ }
201
+ return `${[head, ...rows.slice(0, kept)].join('\n')}${endOf(rows.length - kept)}`;
202
+ }
203
+ /**
204
+ * Gives the note under a cut table: how many failures it leaves out and why, and for `test` that `report.json` lists
205
+ * them all.
206
+ */
207
+ function cutNoteOf(leftOut, report) {
208
+ const count = leftOut === 1 ? "1 more failure isn't shown" : `${leftOut} more failures aren't shown`;
209
+ const where = report.command === 'test' ? ' report.json lists them all.' : '';
210
+ return `_${count}, to keep this summary under GitHub's 1 MiB.${where}_`;
211
+ }
212
+ /**
213
+ * Gives the text when it fits under the budget, else `''`.
214
+ */
215
+ function withinBudget(text, budgetBytes) {
216
+ return byteLengthOf(text) < budgetBytes ? text : '';
217
+ }
218
+ /**
219
+ * Gives the text's length in UTF-8 bytes.
220
+ */
221
+ function byteLengthOf(text) {
222
+ return Buffer.byteLength(text, 'utf8');
223
+ }
224
+ /**
225
+ * Appends the run's step summary to the file at `path`, creating it when it doesn't exist, so the file stays under
226
+ * GitHub's 1 MiB with 1 KiB left for the Action: the budget counts what the file already holds. After what it holds,
227
+ * a blank line comes first, so the summary's heading is one. Writes nothing when no summary fits.
228
+ *
229
+ * @throws {StepSummaryError} When the file can't be read or written.
230
+ * @public
231
+ */
232
+ export async function appendStepSummary(path, report) {
233
+ // GitHub gives each step its own summary file, so nothing else appends between the size check and the write.
234
+ const existingBytes = await sizeOf(path);
235
+ const start = existingBytes === 0 ? '' : separator;
236
+ const summary = stepSummaryOf(report, stepLimitBytes - actionBytes - existingBytes - byteLengthOf(start));
237
+ if (summary === '') {
238
+ return;
239
+ }
240
+ try {
241
+ await appendFile(path, `${start}${summary}`);
242
+ }
243
+ catch (error) {
244
+ throw new StepSummaryError(path, error);
245
+ }
246
+ }
247
+ /**
248
+ * Gives the size of the file at `path` in bytes, `0` when it doesn't exist.
249
+ *
250
+ * @throws {StepSummaryError} When the file can't be read for another reason.
251
+ */
252
+ async function sizeOf(path) {
253
+ try {
254
+ return (await stat(path)).size;
255
+ }
256
+ catch (error) {
257
+ if (error.code === 'ENOENT') {
258
+ return 0;
259
+ }
260
+ throw new StepSummaryError(path, error);
261
+ }
262
+ }
263
+ //# sourceMappingURL=step-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-summary.js","sourceRoot":"","sources":["../../src/step-summary/step-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAEjE;;GAEG;AACH,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAA;AAElC;;GAEG;AACH,MAAM,WAAW,GAAG,IAAI,CAAA;AAExB;;GAEG;AACH,MAAM,gBAAgB,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,MAAM,SAAS,GAAG,MAAM,CAAA;AAExB;;GAEG;AACH,MAAM,YAAY,GAAG,gEAAgE,CAAA;AAErF;;GAEG;AACH,MAAM,SAAS,GAAG,kFAAkF,CAAA;AAYpG;;;;GAIG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC;;OAEG;IACM,IAAI,GAAG,kBAAkB,CAAA;IAElC;;OAEG;IACM,IAAI,CAAQ;IAErB;;OAEG;IACM,MAAM,CAAQ;IAEvB;;OAEG;IACH,YAAY,IAAY,EAAE,KAAc;QACtC,MAAM,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;QAEpC,KAAK,CAAC,sCAAsC,IAAI,KAAK,MAAM,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;QAC1E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,MA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