laymos 0.0.1 → 0.0.2

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 (583) hide show
  1. package/README.md +137 -710
  2. package/bin/laymos.mjs +2 -0
  3. package/dist/architecture/analyze-project/analyze-project.d.ts +9 -0
  4. package/dist/architecture/analyze-project/analyze-project.d.ts.map +1 -0
  5. package/dist/architecture/analyze-project/analyze-project.js +47 -0
  6. package/dist/architecture/analyze-project/index.d.ts +3 -0
  7. package/dist/architecture/analyze-project/index.d.ts.map +1 -0
  8. package/dist/architecture/analyze-project/index.js +1 -0
  9. package/dist/architecture/build-report/build-report.d.ts +7 -0
  10. package/dist/architecture/build-report/build-report.d.ts.map +1 -0
  11. package/dist/{engine/4-emit/emit.js → architecture/build-report/build-report.js} +12 -9
  12. package/dist/architecture/build-report/index.d.ts +2 -0
  13. package/dist/architecture/build-report/index.d.ts.map +1 -0
  14. package/dist/architecture/build-report/index.js +1 -0
  15. package/dist/architecture/errors.d.ts +11 -0
  16. package/dist/architecture/errors.d.ts.map +1 -0
  17. package/dist/{engine → architecture}/errors.js +0 -2
  18. package/dist/{engine/1-extract/extract.d.ts → architecture/extract-dependencies/extract-dependencies.d.ts} +1 -1
  19. package/dist/architecture/extract-dependencies/extract-dependencies.d.ts.map +1 -0
  20. package/dist/{engine/1-extract/extract.js → architecture/extract-dependencies/extract-dependencies.js} +13 -11
  21. package/dist/architecture/extract-dependencies/index.d.ts +3 -0
  22. package/dist/architecture/extract-dependencies/index.d.ts.map +1 -0
  23. package/dist/architecture/extract-dependencies/index.js +1 -0
  24. package/dist/architecture/resolve-architecture/index.d.ts +3 -0
  25. package/dist/architecture/resolve-architecture/index.d.ts.map +1 -0
  26. package/dist/architecture/resolve-architecture/index.js +1 -0
  27. package/dist/{engine/2-resolve/resolve.d.ts → architecture/resolve-architecture/resolve-architecture.d.ts} +2 -2
  28. package/dist/architecture/resolve-architecture/resolve-architecture.d.ts.map +1 -0
  29. package/dist/{engine/2-resolve/resolve.js → architecture/resolve-architecture/resolve-architecture.js} +1 -1
  30. package/dist/architecture/validate-rules/index.d.ts +3 -0
  31. package/dist/architecture/validate-rules/index.d.ts.map +1 -0
  32. package/dist/architecture/validate-rules/index.js +1 -0
  33. package/dist/{engine/3-evaluate/evaluate.d.ts → architecture/validate-rules/validate-rules.d.ts} +4 -4
  34. package/dist/architecture/validate-rules/validate-rules.d.ts.map +1 -0
  35. package/dist/{engine/3-evaluate/evaluate.js → architecture/validate-rules/validate-rules.js} +2 -2
  36. package/dist/architecture-analysis-schema/architecture-analysis-schema.d.ts +109 -0
  37. package/dist/architecture-analysis-schema/architecture-analysis-schema.d.ts.map +1 -0
  38. package/dist/architecture-analysis-schema/architecture-analysis-schema.js +10 -0
  39. package/dist/architecture-analysis-schema/index.d.ts +7 -0
  40. package/dist/architecture-analysis-schema/index.d.ts.map +1 -0
  41. package/dist/architecture-analysis-schema/index.js +3 -0
  42. package/dist/architecture-analysis-schema/layer-analysis-schema.d.ts +27 -0
  43. package/dist/architecture-analysis-schema/layer-analysis-schema.d.ts.map +1 -0
  44. package/dist/architecture-analysis-schema/layer-analysis-schema.js +18 -0
  45. package/dist/architecture-analysis-schema/module-analysis-schema.d.ts +150 -0
  46. package/dist/architecture-analysis-schema/module-analysis-schema.d.ts.map +1 -0
  47. package/dist/architecture-analysis-schema/module-analysis-schema.js +96 -0
  48. package/dist/architecture-analysis-schema/module-source-schema.d.ts +16 -0
  49. package/dist/architecture-analysis-schema/module-source-schema.d.ts.map +1 -0
  50. package/dist/architecture-analysis-schema/module-source-schema.js +10 -0
  51. package/dist/architecture-analysis-schema/project-config-schema.d.ts +51 -0
  52. package/dist/architecture-analysis-schema/project-config-schema.d.ts.map +1 -0
  53. package/dist/architecture-analysis-schema/project-config-schema.js +110 -0
  54. package/dist/change-set-schema/change-set-schema.d.ts +55 -0
  55. package/dist/change-set-schema/change-set-schema.d.ts.map +1 -0
  56. package/dist/change-set-schema/change-set-schema.js +43 -0
  57. package/dist/change-set-schema/index.d.ts +3 -0
  58. package/dist/change-set-schema/index.d.ts.map +1 -0
  59. package/dist/change-set-schema/index.js +2 -0
  60. package/dist/cli/cli.js +6 -1
  61. package/dist/cli/deps/dependency-tree.d.ts +3 -0
  62. package/dist/cli/deps/dependency-tree.d.ts.map +1 -0
  63. package/dist/cli/deps/dependency-tree.js +39 -0
  64. package/dist/cli/deps/deps.d.ts +7 -0
  65. package/dist/cli/deps/deps.d.ts.map +1 -0
  66. package/dist/cli/deps/deps.js +26 -0
  67. package/dist/cli/deps/index.d.ts +2 -0
  68. package/dist/cli/deps/index.d.ts.map +1 -0
  69. package/dist/cli/deps/index.js +2 -0
  70. package/dist/cli/errors.d.ts +2 -0
  71. package/dist/cli/errors.d.ts.map +1 -0
  72. package/dist/cli/errors.js +34 -0
  73. package/dist/cli/inspect/file/file.d.ts +8 -0
  74. package/dist/cli/inspect/file/file.d.ts.map +1 -0
  75. package/dist/cli/inspect/file/file.js +16 -0
  76. package/dist/cli/inspect/file/index.d.ts +2 -0
  77. package/dist/cli/inspect/file/index.d.ts.map +1 -0
  78. package/dist/cli/inspect/file/index.js +1 -0
  79. package/dist/cli/inspect/file/report.d.ts +3 -0
  80. package/dist/cli/inspect/file/report.d.ts.map +1 -0
  81. package/dist/cli/inspect/file/report.js +26 -0
  82. package/dist/cli/inspect/index.d.ts +2 -0
  83. package/dist/cli/inspect/index.d.ts.map +1 -0
  84. package/dist/cli/inspect/index.js +1 -0
  85. package/dist/cli/inspect/inspect.d.ts +4 -0
  86. package/dist/cli/inspect/inspect.d.ts.map +1 -0
  87. package/dist/cli/inspect/inspect.js +14 -0
  88. package/dist/cli/inspect/json.d.ts +4 -0
  89. package/dist/cli/inspect/json.d.ts.map +1 -0
  90. package/dist/cli/inspect/json.js +5 -0
  91. package/dist/cli/inspect/layer/index.d.ts +2 -0
  92. package/dist/cli/inspect/layer/index.d.ts.map +1 -0
  93. package/dist/cli/inspect/layer/index.js +1 -0
  94. package/dist/cli/inspect/layer/layer.d.ts +7 -0
  95. package/dist/cli/inspect/layer/layer.d.ts.map +1 -0
  96. package/dist/cli/inspect/layer/layer.js +13 -0
  97. package/dist/cli/inspect/layer/report.d.ts +3 -0
  98. package/dist/cli/inspect/layer/report.d.ts.map +1 -0
  99. package/dist/cli/inspect/layer/report.js +21 -0
  100. package/dist/cli/inspect/module/index.d.ts +2 -0
  101. package/dist/cli/inspect/module/index.d.ts.map +1 -0
  102. package/dist/cli/inspect/module/index.js +1 -0
  103. package/dist/cli/inspect/module/module.d.ts +7 -0
  104. package/dist/cli/inspect/module/module.d.ts.map +1 -0
  105. package/dist/cli/inspect/module/module.js +15 -0
  106. package/dist/cli/inspect/module/report.d.ts +3 -0
  107. package/dist/cli/inspect/module/report.d.ts.map +1 -0
  108. package/dist/cli/inspect/module/report.js +38 -0
  109. package/dist/cli/inspect/path-tree.d.ts +7 -0
  110. package/dist/cli/inspect/path-tree.d.ts.map +1 -0
  111. package/dist/cli/inspect/path-tree.js +62 -0
  112. package/dist/cli/inspect/path.d.ts +5 -0
  113. package/dist/cli/inspect/path.d.ts.map +1 -0
  114. package/dist/cli/inspect/path.js +10 -0
  115. package/dist/cli/inspect/project/index.d.ts +2 -0
  116. package/dist/cli/inspect/project/index.d.ts.map +1 -0
  117. package/dist/cli/inspect/project/index.js +1 -0
  118. package/dist/cli/inspect/project/project.d.ts +8 -0
  119. package/dist/cli/inspect/project/project.d.ts.map +1 -0
  120. package/dist/cli/inspect/project/project.js +19 -0
  121. package/dist/cli/inspect/project/report.d.ts +3 -0
  122. package/dist/cli/inspect/project/report.d.ts.map +1 -0
  123. package/dist/cli/inspect/project/report.js +16 -0
  124. package/dist/cli/lint/index.d.ts +2 -0
  125. package/dist/cli/lint/index.d.ts.map +1 -0
  126. package/dist/cli/lint/index.js +2 -0
  127. package/dist/cli/lint/layers/index.d.ts +3 -0
  128. package/dist/cli/lint/layers/index.d.ts.map +1 -0
  129. package/dist/cli/lint/layers/index.js +4 -0
  130. package/dist/cli/lint/layers/layers.d.ts +5 -0
  131. package/dist/cli/lint/layers/layers.d.ts.map +1 -0
  132. package/dist/cli/lint/layers/layers.js +18 -0
  133. package/dist/cli/lint/layers/report.d.ts +5 -0
  134. package/dist/cli/lint/layers/report.d.ts.map +1 -0
  135. package/dist/cli/lint/layers/report.js +60 -0
  136. package/dist/cli/lint/lint.d.ts +4 -0
  137. package/dist/cli/lint/lint.d.ts.map +1 -0
  138. package/dist/cli/lint/lint.js +26 -0
  139. package/dist/cli/lint/modules/index.d.ts +5 -0
  140. package/dist/cli/lint/modules/index.d.ts.map +1 -0
  141. package/dist/cli/lint/modules/index.js +4 -0
  142. package/dist/cli/lint/modules/modules.d.ts +5 -0
  143. package/dist/cli/lint/modules/modules.d.ts.map +1 -0
  144. package/dist/cli/lint/modules/modules.js +15 -0
  145. package/dist/cli/lint/modules/report.d.ts +5 -0
  146. package/dist/cli/lint/modules/report.d.ts.map +1 -0
  147. package/dist/cli/lint/modules/report.js +69 -0
  148. package/dist/cli/run.d.ts +1 -8
  149. package/dist/cli/run.d.ts.map +1 -1
  150. package/dist/cli/run.js +14 -242
  151. package/dist/cli/stories/index.d.ts +2 -0
  152. package/dist/cli/stories/index.d.ts.map +1 -0
  153. package/dist/cli/stories/index.js +1 -0
  154. package/dist/cli/stories/progress.d.ts +7 -0
  155. package/dist/cli/stories/progress.d.ts.map +1 -0
  156. package/dist/cli/stories/progress.js +45 -0
  157. package/dist/cli/stories/report.d.ts +9 -0
  158. package/dist/cli/stories/report.d.ts.map +1 -0
  159. package/dist/cli/stories/report.js +63 -0
  160. package/dist/cli/stories/stories.d.ts +6 -0
  161. package/dist/cli/stories/stories.d.ts.map +1 -0
  162. package/dist/cli/stories/stories.js +30 -0
  163. package/dist/config/define-config.d.ts +5 -0
  164. package/dist/config/define-config.d.ts.map +1 -1
  165. package/dist/config/define-config.js +152 -7
  166. package/dist/config/index.d.ts +6 -0
  167. package/dist/config/index.d.ts.map +1 -1
  168. package/dist/config/index.js +2 -0
  169. package/dist/config/layer-graph.d.ts +2 -2
  170. package/dist/config/layer-graph.d.ts.map +1 -1
  171. package/dist/config/layer-graph.js +2 -29
  172. package/dist/config/layer.d.ts +2 -2
  173. package/dist/config/layer.d.ts.map +1 -1
  174. package/dist/config/layer.js +2 -15
  175. package/dist/config/load-config/index.d.ts +2 -0
  176. package/dist/config/load-config/index.d.ts.map +1 -0
  177. package/dist/config/load-config/index.js +1 -0
  178. package/dist/config/load-config/load-config.d.ts +34 -0
  179. package/dist/config/load-config/load-config.d.ts.map +1 -0
  180. package/dist/config/load-config/load-config.js +127 -0
  181. package/dist/config/module.d.ts +4 -2
  182. package/dist/config/module.d.ts.map +1 -1
  183. package/dist/config/module.js +5 -12
  184. package/dist/config/project-narrative.d.ts +15 -0
  185. package/dist/config/project-narrative.d.ts.map +1 -0
  186. package/dist/config/project-narrative.js +11 -0
  187. package/dist/config/types.d.ts +5 -3
  188. package/dist/config/types.d.ts.map +1 -1
  189. package/dist/domain/architecture-analysis/architecture-analysis.d.ts +4 -0
  190. package/dist/domain/architecture-analysis/architecture-analysis.d.ts.map +1 -0
  191. package/dist/domain/architecture-analysis/architecture-analysis.js +13 -0
  192. package/dist/domain/architecture-analysis/index.d.ts +3 -0
  193. package/dist/domain/architecture-analysis/index.d.ts.map +1 -0
  194. package/dist/domain/architecture-analysis/index.js +2 -0
  195. package/dist/domain/architecture-analysis/layer-rules.d.ts +3 -0
  196. package/dist/domain/architecture-analysis/layer-rules.d.ts.map +1 -0
  197. package/dist/domain/architecture-analysis/layer-rules.js +15 -0
  198. package/dist/domain/architecture-analysis/layers/allowed-dependencies.d.ts +3 -0
  199. package/dist/domain/architecture-analysis/layers/allowed-dependencies.d.ts.map +1 -0
  200. package/dist/domain/architecture-analysis/layers/allowed-dependencies.js +20 -0
  201. package/dist/domain/architecture-analysis/layers/coverage-violations.d.ts +2 -0
  202. package/dist/domain/architecture-analysis/layers/coverage-violations.d.ts.map +1 -0
  203. package/dist/domain/architecture-analysis/layers/coverage-violations.js +5 -0
  204. package/dist/domain/architecture-analysis/layers/dependency-violations.d.ts +5 -0
  205. package/dist/domain/architecture-analysis/layers/dependency-violations.d.ts.map +1 -0
  206. package/dist/domain/architecture-analysis/layers/dependency-violations.js +18 -0
  207. package/dist/domain/architecture-analysis/layers/index.d.ts +9 -0
  208. package/dist/domain/architecture-analysis/layers/index.d.ts.map +1 -0
  209. package/dist/domain/architecture-analysis/layers/index.js +4 -0
  210. package/dist/domain/architecture-analysis/layers/layer-membership.d.ts +3 -0
  211. package/dist/domain/architecture-analysis/layers/layer-membership.d.ts.map +1 -0
  212. package/dist/domain/architecture-analysis/layers/layer-membership.js +13 -0
  213. package/dist/domain/architecture-analysis/layers/layers.d.ts +11 -0
  214. package/dist/domain/architecture-analysis/layers/layers.d.ts.map +1 -0
  215. package/dist/domain/architecture-analysis/layers/layers.js +22 -0
  216. package/dist/domain/architecture-analysis/layers/module-coverage-violations.d.ts +4 -0
  217. package/dist/domain/architecture-analysis/layers/module-coverage-violations.d.ts.map +1 -0
  218. package/dist/domain/architecture-analysis/layers/module-coverage-violations.js +9 -0
  219. package/dist/domain/architecture-analysis/modules/dependency-graph.d.ts +2 -0
  220. package/dist/domain/architecture-analysis/modules/dependency-graph.d.ts.map +1 -0
  221. package/dist/domain/architecture-analysis/modules/dependency-graph.js +45 -0
  222. package/dist/domain/architecture-analysis/modules/dependency-permissions.d.ts +4 -0
  223. package/dist/domain/architecture-analysis/modules/dependency-permissions.d.ts.map +1 -0
  224. package/dist/domain/architecture-analysis/modules/dependency-permissions.js +35 -0
  225. package/dist/domain/architecture-analysis/modules/index.d.ts +12 -0
  226. package/dist/domain/architecture-analysis/modules/index.d.ts.map +1 -0
  227. package/dist/domain/architecture-analysis/modules/index.js +3 -0
  228. package/dist/domain/architecture-analysis/modules/module-descriptors.d.ts +5 -0
  229. package/dist/domain/architecture-analysis/modules/module-descriptors.d.ts.map +1 -0
  230. package/dist/domain/architecture-analysis/modules/module-descriptors.js +37 -0
  231. package/dist/domain/architecture-analysis/modules/module-membership.d.ts +3 -0
  232. package/dist/domain/architecture-analysis/modules/module-membership.d.ts.map +1 -0
  233. package/dist/domain/architecture-analysis/modules/module-membership.js +12 -0
  234. package/dist/domain/architecture-analysis/modules/modules.d.ts +16 -0
  235. package/dist/domain/architecture-analysis/modules/modules.d.ts.map +1 -0
  236. package/dist/domain/architecture-analysis/modules/modules.js +35 -0
  237. package/dist/domain/architecture-analysis/modules/public-entry-points.d.ts +3 -0
  238. package/dist/domain/architecture-analysis/modules/public-entry-points.d.ts.map +1 -0
  239. package/dist/domain/architecture-analysis/modules/public-entry-points.js +11 -0
  240. package/dist/domain/architecture-analysis/modules/unexposed-modules.d.ts +3 -0
  241. package/dist/domain/architecture-analysis/modules/unexposed-modules.d.ts.map +1 -0
  242. package/dist/domain/architecture-analysis/modules/unexposed-modules.js +10 -0
  243. package/dist/domain/architecture-analysis/modules/violations/boundaries.d.ts +8 -0
  244. package/dist/domain/architecture-analysis/modules/violations/boundaries.d.ts.map +1 -0
  245. package/dist/domain/architecture-analysis/modules/violations/boundaries.js +47 -0
  246. package/dist/domain/architecture-analysis/modules/violations/coverage.d.ts +3 -0
  247. package/dist/domain/architecture-analysis/modules/violations/coverage.d.ts.map +1 -0
  248. package/dist/domain/architecture-analysis/modules/violations/coverage.js +7 -0
  249. package/dist/domain/architecture-analysis/modules/violations/cycles.d.ts +3 -0
  250. package/dist/domain/architecture-analysis/modules/violations/cycles.d.ts.map +1 -0
  251. package/dist/domain/architecture-analysis/modules/violations/cycles.js +7 -0
  252. package/dist/domain/architecture-analysis/modules/violations/dead-modules.d.ts +3 -0
  253. package/dist/domain/architecture-analysis/modules/violations/dead-modules.d.ts.map +1 -0
  254. package/dist/domain/architecture-analysis/modules/violations/dead-modules.js +23 -0
  255. package/dist/domain/architecture-analysis/modules/violations/dependencies.d.ts +4 -0
  256. package/dist/domain/architecture-analysis/modules/violations/dependencies.d.ts.map +1 -0
  257. package/dist/domain/architecture-analysis/modules/violations/dependencies.js +7 -0
  258. package/dist/domain/architecture-analysis/modules/violations/entry-points.d.ts +3 -0
  259. package/dist/domain/architecture-analysis/modules/violations/entry-points.d.ts.map +1 -0
  260. package/dist/domain/architecture-analysis/modules/violations/entry-points.js +17 -0
  261. package/dist/domain/architecture-analysis/modules/violations/graph-coverage.d.ts +3 -0
  262. package/dist/domain/architecture-analysis/modules/violations/graph-coverage.d.ts.map +1 -0
  263. package/dist/domain/architecture-analysis/modules/violations/graph-coverage.js +16 -0
  264. package/dist/domain/architecture-analysis/modules/violations/index.d.ts +3 -0
  265. package/dist/domain/architecture-analysis/modules/violations/index.d.ts.map +1 -0
  266. package/dist/domain/architecture-analysis/modules/violations/index.js +2 -0
  267. package/dist/domain/architecture-analysis/modules/violations/unused-shared.d.ts +3 -0
  268. package/dist/domain/architecture-analysis/modules/violations/unused-shared.d.ts.map +1 -0
  269. package/dist/domain/architecture-analysis/modules/violations/unused-shared.js +9 -0
  270. package/dist/domain/architecture-analysis/modules/violations/violations.d.ts +9 -0
  271. package/dist/domain/architecture-analysis/modules/violations/violations.d.ts.map +1 -0
  272. package/dist/domain/architecture-analysis/modules/violations/violations.js +22 -0
  273. package/dist/domain/file-graph/file-graph.d.ts +10 -0
  274. package/dist/domain/file-graph/file-graph.d.ts.map +1 -0
  275. package/dist/domain/file-graph/file-graph.js +37 -0
  276. package/dist/domain/file-graph/index.d.ts +4 -0
  277. package/dist/domain/file-graph/index.d.ts.map +1 -0
  278. package/dist/domain/file-graph/index.js +1 -0
  279. package/dist/domain/project-config/index.d.ts +10 -0
  280. package/dist/domain/project-config/index.d.ts.map +1 -0
  281. package/dist/domain/project-config/index.js +12 -0
  282. package/dist/domain/project-config/project-config.d.ts +52 -0
  283. package/dist/domain/project-config/project-config.d.ts.map +1 -0
  284. package/dist/domain/project-config/project-config.js +39 -0
  285. package/dist/domain/project-config/resolve.d.ts +8 -0
  286. package/dist/domain/project-config/resolve.d.ts.map +1 -0
  287. package/dist/domain/project-config/resolve.js +29 -0
  288. package/dist/domain/project-config/validation/containment.d.ts +4 -0
  289. package/dist/domain/project-config/validation/containment.d.ts.map +1 -0
  290. package/dist/domain/project-config/validation/containment.js +21 -0
  291. package/dist/domain/project-config/validation/index.d.ts +3 -0
  292. package/dist/domain/project-config/validation/index.d.ts.map +1 -0
  293. package/dist/domain/project-config/validation/index.js +2 -0
  294. package/dist/domain/project-config/validation/layers/cycles.d.ts +3 -0
  295. package/dist/domain/project-config/validation/layers/cycles.d.ts.map +1 -0
  296. package/dist/domain/project-config/validation/layers/cycles.js +64 -0
  297. package/dist/domain/project-config/validation/layers/index.d.ts +3 -0
  298. package/dist/domain/project-config/validation/layers/index.d.ts.map +1 -0
  299. package/dist/domain/project-config/validation/layers/index.js +2 -0
  300. package/dist/domain/project-config/validation/layers/layers.d.ts +3 -0
  301. package/dist/domain/project-config/validation/layers/layers.d.ts.map +1 -0
  302. package/dist/domain/project-config/validation/layers/layers.js +9 -0
  303. package/dist/domain/project-config/validation/layers/overlaps.d.ts +3 -0
  304. package/dist/domain/project-config/validation/layers/overlaps.d.ts.map +1 -0
  305. package/dist/domain/project-config/validation/layers/overlaps.js +26 -0
  306. package/dist/domain/project-config/validation/layers/references.d.ts +3 -0
  307. package/dist/domain/project-config/validation/layers/references.d.ts.map +1 -0
  308. package/dist/domain/project-config/validation/layers/references.js +21 -0
  309. package/dist/domain/project-config/validation/modules/containment.d.ts +3 -0
  310. package/dist/domain/project-config/validation/modules/containment.d.ts.map +1 -0
  311. package/dist/domain/project-config/validation/modules/containment.js +24 -0
  312. package/dist/domain/project-config/validation/modules/graphs.d.ts +4 -0
  313. package/dist/domain/project-config/validation/modules/graphs.d.ts.map +1 -0
  314. package/dist/domain/project-config/validation/modules/graphs.js +96 -0
  315. package/dist/domain/project-config/validation/modules/index.d.ts +3 -0
  316. package/dist/domain/project-config/validation/modules/index.d.ts.map +1 -0
  317. package/dist/domain/project-config/validation/modules/index.js +2 -0
  318. package/dist/domain/project-config/validation/modules/kinds.d.ts +3 -0
  319. package/dist/domain/project-config/validation/modules/kinds.d.ts.map +1 -0
  320. package/dist/domain/project-config/validation/modules/kinds.js +18 -0
  321. package/dist/domain/project-config/validation/modules/modules.d.ts +3 -0
  322. package/dist/domain/project-config/validation/modules/modules.d.ts.map +1 -0
  323. package/dist/domain/project-config/validation/modules/modules.js +16 -0
  324. package/dist/domain/project-config/validation/modules/nested.d.ts +3 -0
  325. package/dist/domain/project-config/validation/modules/nested.d.ts.map +1 -0
  326. package/dist/domain/project-config/validation/modules/nested.js +34 -0
  327. package/dist/domain/project-config/validation/modules/overlaps.d.ts +4 -0
  328. package/dist/domain/project-config/validation/modules/overlaps.d.ts.map +1 -0
  329. package/dist/domain/project-config/validation/modules/overlaps.js +43 -0
  330. package/dist/domain/project-config/validation/modules/paths.d.ts +3 -0
  331. package/dist/domain/project-config/validation/modules/paths.d.ts.map +1 -0
  332. package/dist/domain/project-config/validation/modules/paths.js +27 -0
  333. package/dist/domain/project-config/validation/modules/scopes.d.ts +4 -0
  334. package/dist/domain/project-config/validation/modules/scopes.d.ts.map +1 -0
  335. package/dist/domain/project-config/validation/modules/scopes.js +28 -0
  336. package/dist/domain/project-config/validation/modules/subpaths.d.ts +3 -0
  337. package/dist/domain/project-config/validation/modules/subpaths.d.ts.map +1 -0
  338. package/dist/domain/project-config/validation/modules/subpaths.js +40 -0
  339. package/dist/domain/project-config/validation/paths.d.ts +3 -0
  340. package/dist/domain/project-config/validation/paths.d.ts.map +1 -0
  341. package/dist/domain/project-config/validation/paths.js +39 -0
  342. package/dist/domain/project-config/validation/validation.d.ts +3 -0
  343. package/dist/domain/project-config/validation/validation.d.ts.map +1 -0
  344. package/dist/domain/project-config/validation/validation.js +12 -0
  345. package/dist/entrypoints/cli/cli.d.ts +3 -0
  346. package/dist/entrypoints/cli/cli.d.ts.map +1 -0
  347. package/dist/entrypoints/cli/cli.js +6 -0
  348. package/dist/entrypoints/cli/run.d.ts +13 -0
  349. package/dist/entrypoints/cli/run.d.ts.map +1 -0
  350. package/dist/entrypoints/cli/run.js +155 -0
  351. package/dist/entrypoints/cli/test-output.d.ts +17 -0
  352. package/dist/entrypoints/cli/test-output.d.ts.map +1 -0
  353. package/dist/entrypoints/cli/test-output.js +244 -0
  354. package/dist/entrypoints/node/index.d.ts +24 -0
  355. package/dist/entrypoints/node/index.d.ts.map +1 -0
  356. package/dist/entrypoints/node/index.js +27 -0
  357. package/dist/entrypoints/report/index.d.ts +2 -0
  358. package/dist/entrypoints/report/index.d.ts.map +1 -0
  359. package/dist/entrypoints/report/index.js +1 -0
  360. package/dist/index.d.ts +17 -1
  361. package/dist/index.d.ts.map +1 -1
  362. package/dist/index.js +22 -1
  363. package/dist/markdown/index.d.ts +3 -0
  364. package/dist/markdown/index.d.ts.map +1 -0
  365. package/dist/markdown/index.js +1 -0
  366. package/dist/markdown/markdown.d.ts +7 -0
  367. package/dist/markdown/markdown.d.ts.map +1 -0
  368. package/dist/markdown/markdown.js +13 -0
  369. package/dist/orchestrator/analyze-project/analyze-project.d.ts +119 -0
  370. package/dist/orchestrator/analyze-project/analyze-project.d.ts.map +1 -0
  371. package/dist/orchestrator/analyze-project/analyze-project.js +9 -0
  372. package/dist/orchestrator/analyze-project/index.d.ts +2 -0
  373. package/dist/orchestrator/analyze-project/index.d.ts.map +1 -0
  374. package/dist/orchestrator/analyze-project/index.js +2 -0
  375. package/dist/orchestrator/inspect/index.d.ts +4 -0
  376. package/dist/orchestrator/inspect/index.d.ts.map +1 -0
  377. package/dist/orchestrator/inspect/index.js +1 -0
  378. package/dist/orchestrator/inspect/inspect.d.ts +269 -0
  379. package/dist/orchestrator/inspect/inspect.d.ts.map +1 -0
  380. package/dist/orchestrator/inspect/inspect.js +147 -0
  381. package/dist/orchestrator/load-changes/index.d.ts +2 -0
  382. package/dist/orchestrator/load-changes/index.d.ts.map +1 -0
  383. package/dist/orchestrator/load-changes/index.js +2 -0
  384. package/dist/orchestrator/load-changes/load-changes.d.ts +6 -0
  385. package/dist/orchestrator/load-changes/load-changes.d.ts.map +1 -0
  386. package/dist/orchestrator/load-changes/load-changes.js +18 -0
  387. package/dist/orchestrator/load-module-source/errors.d.ts +17 -0
  388. package/dist/orchestrator/load-module-source/errors.d.ts.map +1 -0
  389. package/dist/orchestrator/load-module-source/errors.js +5 -0
  390. package/dist/orchestrator/load-module-source/index.d.ts +2 -0
  391. package/dist/orchestrator/load-module-source/index.d.ts.map +1 -0
  392. package/dist/orchestrator/load-module-source/index.js +1 -0
  393. package/dist/orchestrator/load-module-source/load-module-source.d.ts +12 -0
  394. package/dist/orchestrator/load-module-source/load-module-source.d.ts.map +1 -0
  395. package/dist/orchestrator/load-module-source/load-module-source.js +39 -0
  396. package/dist/orchestrator/load-project/index.d.ts +3 -0
  397. package/dist/orchestrator/load-project/index.d.ts.map +1 -0
  398. package/dist/orchestrator/load-project/index.js +2 -0
  399. package/dist/orchestrator/load-project/load-project.d.ts +54 -0
  400. package/dist/orchestrator/load-project/load-project.d.ts.map +1 -0
  401. package/dist/orchestrator/load-project/load-project.js +30 -0
  402. package/dist/orchestrator/query-dependencies/index.d.ts +3 -0
  403. package/dist/orchestrator/query-dependencies/index.d.ts.map +1 -0
  404. package/dist/orchestrator/query-dependencies/index.js +4 -0
  405. package/dist/orchestrator/query-dependencies/query-dependencies.d.ts +12 -0
  406. package/dist/orchestrator/query-dependencies/query-dependencies.d.ts.map +1 -0
  407. package/dist/orchestrator/query-dependencies/query-dependencies.js +20 -0
  408. package/dist/orchestrator/run-stories/errors.d.ts +11 -0
  409. package/dist/orchestrator/run-stories/errors.d.ts.map +1 -0
  410. package/dist/orchestrator/run-stories/errors.js +3 -0
  411. package/dist/orchestrator/run-stories/extract-snippets.d.ts +12 -0
  412. package/dist/orchestrator/run-stories/extract-snippets.d.ts.map +1 -0
  413. package/dist/orchestrator/run-stories/extract-snippets.js +181 -0
  414. package/dist/orchestrator/run-stories/index.d.ts +3 -0
  415. package/dist/orchestrator/run-stories/index.d.ts.map +1 -0
  416. package/dist/orchestrator/run-stories/index.js +3 -0
  417. package/dist/orchestrator/run-stories/run-stories.d.ts +16 -0
  418. package/dist/orchestrator/run-stories/run-stories.d.ts.map +1 -0
  419. package/dist/orchestrator/run-stories/run-stories.js +290 -0
  420. package/dist/report/architecture.d.ts +1 -1
  421. package/dist/report/architecture.d.ts.map +1 -1
  422. package/dist/report/index.d.ts +2 -1
  423. package/dist/report/index.d.ts.map +1 -1
  424. package/dist/report/index.js +1 -1
  425. package/dist/report/tests.d.ts +411 -0
  426. package/dist/report/tests.d.ts.map +1 -0
  427. package/dist/report/tests.js +102 -0
  428. package/dist/services/config/config.d.ts +12 -0
  429. package/dist/services/config/config.d.ts.map +1 -0
  430. package/dist/services/config/config.js +46 -0
  431. package/dist/services/config/errors.d.ts +13 -0
  432. package/dist/services/config/errors.d.ts.map +1 -0
  433. package/dist/services/config/errors.js +3 -0
  434. package/dist/services/config/index.d.ts +4 -0
  435. package/dist/services/config/index.d.ts.map +1 -0
  436. package/dist/services/config/index.js +7 -0
  437. package/dist/services/file-cruiser/errors.d.ts +10 -0
  438. package/dist/services/file-cruiser/errors.d.ts.map +1 -0
  439. package/dist/services/file-cruiser/errors.js +3 -0
  440. package/dist/services/file-cruiser/file-cruiser.d.ts +11 -0
  441. package/dist/services/file-cruiser/file-cruiser.d.ts.map +1 -0
  442. package/dist/services/file-cruiser/file-cruiser.js +7 -0
  443. package/dist/services/file-cruiser/index.d.ts +4 -0
  444. package/dist/services/file-cruiser/index.d.ts.map +1 -0
  445. package/dist/services/file-cruiser/index.js +6 -0
  446. package/dist/services/file-cruiser/oxc/file-scanner.d.ts +5 -0
  447. package/dist/services/file-cruiser/oxc/file-scanner.d.ts.map +1 -0
  448. package/dist/services/file-cruiser/oxc/file-scanner.js +54 -0
  449. package/dist/services/file-cruiser/oxc/import-resolver.d.ts +5 -0
  450. package/dist/services/file-cruiser/oxc/import-resolver.d.ts.map +1 -0
  451. package/dist/services/file-cruiser/oxc/import-resolver.js +44 -0
  452. package/dist/services/file-cruiser/oxc/index.d.ts +2 -0
  453. package/dist/services/file-cruiser/oxc/index.d.ts.map +1 -0
  454. package/dist/services/file-cruiser/oxc/index.js +2 -0
  455. package/dist/services/file-cruiser/oxc/oxc.d.ts +5 -0
  456. package/dist/services/file-cruiser/oxc/oxc.d.ts.map +1 -0
  457. package/dist/services/file-cruiser/oxc/oxc.js +29 -0
  458. package/dist/services/git/changed-paths.d.ts +4 -0
  459. package/dist/services/git/changed-paths.d.ts.map +1 -0
  460. package/dist/services/git/changed-paths.js +85 -0
  461. package/dist/services/git/errors.d.ts +11 -0
  462. package/dist/services/git/errors.d.ts.map +1 -0
  463. package/dist/services/git/errors.js +3 -0
  464. package/dist/services/git/git.d.ts +12 -0
  465. package/dist/services/git/git.d.ts.map +1 -0
  466. package/dist/services/git/git.js +23 -0
  467. package/dist/services/git/index.d.ts +4 -0
  468. package/dist/services/git/index.d.ts.map +1 -0
  469. package/dist/services/git/index.js +6 -0
  470. package/dist/services/git/parse-patch.d.ts +3 -0
  471. package/dist/services/git/parse-patch.d.ts.map +1 -0
  472. package/dist/services/git/parse-patch.js +53 -0
  473. package/dist/services/git/run-git.d.ts +9 -0
  474. package/dist/services/git/run-git.d.ts.map +1 -0
  475. package/dist/services/git/run-git.js +22 -0
  476. package/dist/story/index.d.ts +3 -0
  477. package/dist/story/index.d.ts.map +1 -0
  478. package/dist/story/index.js +2 -0
  479. package/dist/story/schema/index.d.ts +6 -0
  480. package/dist/story/schema/index.d.ts.map +1 -0
  481. package/dist/story/schema/index.js +4 -0
  482. package/dist/story/schema/slug.d.ts +2 -0
  483. package/dist/story/schema/slug.d.ts.map +1 -0
  484. package/dist/story/schema/slug.js +6 -0
  485. package/dist/story/schema/story-report-schema.d.ts +408 -0
  486. package/dist/story/schema/story-report-schema.d.ts.map +1 -0
  487. package/dist/story/schema/story-report-schema.js +94 -0
  488. package/dist/story/schema/story-tree-schema.d.ts +42 -0
  489. package/dist/story/schema/story-tree-schema.d.ts.map +1 -0
  490. package/dist/story/schema/story-tree-schema.js +40 -0
  491. package/dist/story/story.d.ts +38 -0
  492. package/dist/story/story.d.ts.map +1 -0
  493. package/dist/story/story.js +56 -0
  494. package/dist/tests/authoring/index.d.ts +72 -0
  495. package/dist/tests/authoring/index.d.ts.map +1 -0
  496. package/dist/tests/authoring/index.js +312 -0
  497. package/dist/tests/run-tests/index.d.ts +3 -0
  498. package/dist/tests/run-tests/index.d.ts.map +1 -0
  499. package/dist/tests/run-tests/index.js +1 -0
  500. package/dist/tests/run-tests/run-tests.d.ts +26 -0
  501. package/dist/tests/run-tests/run-tests.d.ts.map +1 -0
  502. package/dist/tests/run-tests/run-tests.js +284 -0
  503. package/package.json +36 -24
  504. package/schema.json +212 -0
  505. package/dist/cli/index.d.ts +0 -2
  506. package/dist/cli/index.d.ts.map +0 -1
  507. package/dist/cli/index.js +0 -1
  508. package/dist/engine/1-extract/extract.d.ts.map +0 -1
  509. package/dist/engine/1-extract/index.d.ts +0 -3
  510. package/dist/engine/1-extract/index.d.ts.map +0 -1
  511. package/dist/engine/1-extract/index.js +0 -1
  512. package/dist/engine/2-resolve/index.d.ts +0 -3
  513. package/dist/engine/2-resolve/index.d.ts.map +0 -1
  514. package/dist/engine/2-resolve/index.js +0 -1
  515. package/dist/engine/2-resolve/resolve.d.ts.map +0 -1
  516. package/dist/engine/3-evaluate/evaluate.d.ts.map +0 -1
  517. package/dist/engine/3-evaluate/index.d.ts +0 -3
  518. package/dist/engine/3-evaluate/index.d.ts.map +0 -1
  519. package/dist/engine/3-evaluate/index.js +0 -1
  520. package/dist/engine/4-emit/emit.d.ts +0 -7
  521. package/dist/engine/4-emit/emit.d.ts.map +0 -1
  522. package/dist/engine/4-emit/index.d.ts +0 -2
  523. package/dist/engine/4-emit/index.d.ts.map +0 -1
  524. package/dist/engine/4-emit/index.js +0 -1
  525. package/dist/engine/errors.d.ts +0 -19
  526. package/dist/engine/errors.d.ts.map +0 -1
  527. package/dist/node.d.ts +0 -24
  528. package/dist/node.d.ts.map +0 -1
  529. package/dist/node.js +0 -139
  530. package/dist/report/stories.d.ts +0 -22
  531. package/dist/report/stories.d.ts.map +0 -1
  532. package/dist/report/stories.js +0 -1
  533. package/dist/story/artifact/artifact.d.ts +0 -57
  534. package/dist/story/artifact/artifact.d.ts.map +0 -1
  535. package/dist/story/artifact/artifact.js +0 -234
  536. package/dist/story/artifact/index.d.ts +0 -2
  537. package/dist/story/artifact/index.d.ts.map +0 -1
  538. package/dist/story/artifact/index.js +0 -1
  539. package/dist/story/artifact/storage.d.ts +0 -10
  540. package/dist/story/artifact/storage.d.ts.map +0 -1
  541. package/dist/story/artifact/storage.js +0 -162
  542. package/dist/story/artifact/types.d.ts +0 -74
  543. package/dist/story/artifact/types.d.ts.map +0 -1
  544. package/dist/story/artifact/types.js +0 -1
  545. package/dist/story/core/blocks.d.ts +0 -20
  546. package/dist/story/core/blocks.d.ts.map +0 -1
  547. package/dist/story/core/blocks.js +0 -104
  548. package/dist/story/core/declare.d.ts +0 -63
  549. package/dist/story/core/declare.d.ts.map +0 -1
  550. package/dist/story/core/declare.js +0 -62
  551. package/dist/story/core/index.d.ts +0 -4
  552. package/dist/story/core/index.d.ts.map +0 -1
  553. package/dist/story/core/index.js +0 -1
  554. package/dist/story/core/recorder.d.ts +0 -38
  555. package/dist/story/core/recorder.d.ts.map +0 -1
  556. package/dist/story/core/recorder.js +0 -28
  557. package/dist/story/core/runtime-context.d.ts +0 -14
  558. package/dist/story/core/runtime-context.d.ts.map +0 -1
  559. package/dist/story/core/runtime-context.js +0 -19
  560. package/dist/story/core/types.d.ts +0 -21
  561. package/dist/story/core/types.d.ts.map +0 -1
  562. package/dist/story/core/types.js +0 -1
  563. package/dist/story/effect/effect.d.ts +0 -52
  564. package/dist/story/effect/effect.d.ts.map +0 -1
  565. package/dist/story/effect/effect.js +0 -99
  566. package/dist/story/effect/index.d.ts +0 -3
  567. package/dist/story/effect/index.d.ts.map +0 -1
  568. package/dist/story/effect/index.js +0 -1
  569. package/dist/story/runner/index.d.ts +0 -3
  570. package/dist/story/runner/index.d.ts.map +0 -1
  571. package/dist/story/runner/index.js +0 -1
  572. package/dist/story/runner/runner.d.ts +0 -44
  573. package/dist/story/runner/runner.d.ts.map +0 -1
  574. package/dist/story/runner/runner.js +0 -476
  575. package/dist/story/story-runtime/index.d.ts +0 -2
  576. package/dist/story/story-runtime/index.d.ts.map +0 -1
  577. package/dist/story/story-runtime/index.js +0 -1
  578. package/dist/story/story-runtime/story-runtime.d.ts +0 -52
  579. package/dist/story/story-runtime/story-runtime.d.ts.map +0 -1
  580. package/dist/story/story-runtime/story-runtime.js +0 -194
  581. package/dist/story/vanilla/index.d.ts +0 -29
  582. package/dist/story/vanilla/index.d.ts.map +0 -1
  583. package/dist/story/vanilla/index.js +0 -78
@@ -0,0 +1,408 @@
1
+ import { Schema } from 'effect';
2
+ import { RecordedFlowSchema } from '@pkishorez/effect-tracer/flow';
3
+ export { RecordedFlowSchema };
4
+ export type JsonValue = string | number | boolean | null | readonly JsonValue[] | {
5
+ readonly [key: string]: JsonValue;
6
+ };
7
+ export declare const CapturedTraceSchema: Schema.Struct<{
8
+ readonly spans: Schema.$Array<Schema.Struct<{
9
+ readonly traceId: Schema.String;
10
+ readonly spanId: Schema.String;
11
+ readonly parentSpanId: Schema.NullOr<Schema.String>;
12
+ readonly name: Schema.String;
13
+ readonly startTime: Schema.Number;
14
+ readonly endTime: Schema.NullOr<Schema.Number>;
15
+ readonly status: Schema.Literals<readonly ["error", "interrupted", "running", "success", "unset"]>;
16
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
17
+ readonly events: Schema.$Array<Schema.Struct<{
18
+ readonly name: Schema.String;
19
+ readonly timestamp: Schema.Number;
20
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
21
+ }>>;
22
+ }>>;
23
+ readonly logs: Schema.$Array<Schema.Struct<{
24
+ readonly id: Schema.String;
25
+ readonly spanId: Schema.NullOr<Schema.String>;
26
+ readonly timestamp: Schema.Number;
27
+ readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
28
+ readonly message: Schema.Codec<JsonValue, JsonValue, never, never>;
29
+ readonly annotations: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
30
+ }>>;
31
+ readonly truncated: Schema.Boolean;
32
+ }>;
33
+ export declare const StoryAssertionSchema: Schema.Struct<{
34
+ readonly description: Schema.String;
35
+ readonly passed: Schema.Boolean;
36
+ }>;
37
+ export declare const QuestionSectionSchema: Schema.Union<readonly [Schema.Struct<{
38
+ readonly kind: Schema.Literal<"trace">;
39
+ readonly trace: Schema.Struct<{
40
+ readonly spans: Schema.$Array<Schema.Struct<{
41
+ readonly traceId: Schema.String;
42
+ readonly spanId: Schema.String;
43
+ readonly parentSpanId: Schema.NullOr<Schema.String>;
44
+ readonly name: Schema.String;
45
+ readonly startTime: Schema.Number;
46
+ readonly endTime: Schema.NullOr<Schema.Number>;
47
+ readonly status: Schema.Literals<readonly ["error", "interrupted", "running", "success", "unset"]>;
48
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
49
+ readonly events: Schema.$Array<Schema.Struct<{
50
+ readonly name: Schema.String;
51
+ readonly timestamp: Schema.Number;
52
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
53
+ }>>;
54
+ }>>;
55
+ readonly logs: Schema.$Array<Schema.Struct<{
56
+ readonly id: Schema.String;
57
+ readonly spanId: Schema.NullOr<Schema.String>;
58
+ readonly timestamp: Schema.Number;
59
+ readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
60
+ readonly message: Schema.Codec<JsonValue, JsonValue, never, never>;
61
+ readonly annotations: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
62
+ }>>;
63
+ readonly truncated: Schema.Boolean;
64
+ }>;
65
+ }>, Schema.Struct<{
66
+ readonly kind: Schema.Literal<"flow">;
67
+ readonly flow: Schema.Struct<{
68
+ readonly id: Schema.String;
69
+ readonly latestTimestamp: Schema.Number;
70
+ readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
71
+ readonly id: Schema.String;
72
+ readonly participantName: Schema.String;
73
+ readonly name: Schema.String;
74
+ readonly timestamp: Schema.Number;
75
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
76
+ readonly kind: Schema.Literal<"activity">;
77
+ readonly duration: Schema.NullOr<Schema.Number>;
78
+ readonly status: Schema.Literals<readonly ["error", "interrupted", "running", "success", "unset"]>;
79
+ readonly traceId: Schema.String;
80
+ readonly spanId: Schema.String;
81
+ readonly logs: Schema.optional<Schema.$Array<Schema.Struct<{
82
+ readonly timestamp: Schema.Number;
83
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
84
+ readonly message: Schema.String;
85
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
86
+ }>>>;
87
+ }>, Schema.Struct<{
88
+ readonly id: Schema.String;
89
+ readonly participantName: Schema.String;
90
+ readonly name: Schema.String;
91
+ readonly timestamp: Schema.Number;
92
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
93
+ readonly kind: Schema.Literal<"activation-end">;
94
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
95
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "interrupted"]>;
96
+ }>, Schema.Struct<{
97
+ readonly id: Schema.String;
98
+ readonly participantName: Schema.String;
99
+ readonly name: Schema.String;
100
+ readonly timestamp: Schema.Number;
101
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
102
+ readonly kind: Schema.Literal<"activation-start">;
103
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
104
+ }>, Schema.Struct<{
105
+ readonly id: Schema.String;
106
+ readonly participantName: Schema.String;
107
+ readonly name: Schema.String;
108
+ readonly timestamp: Schema.Number;
109
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
110
+ readonly kind: Schema.Literal<"local-event">;
111
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
112
+ }>, Schema.Struct<{
113
+ readonly id: Schema.String;
114
+ readonly participantName: Schema.String;
115
+ readonly name: Schema.String;
116
+ readonly timestamp: Schema.Number;
117
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
118
+ readonly kind: Schema.Literal<"message">;
119
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
120
+ readonly destination: Schema.String;
121
+ readonly messageId: Schema.String;
122
+ readonly replyTo: Schema.optional<Schema.String>;
123
+ }>, Schema.Struct<{
124
+ readonly id: Schema.String;
125
+ readonly participantName: Schema.String;
126
+ readonly name: Schema.String;
127
+ readonly timestamp: Schema.Number;
128
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
129
+ readonly kind: Schema.Literal<"state">;
130
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
131
+ readonly state: Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>;
132
+ readonly merged: Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>;
133
+ }>]>>;
134
+ readonly activations: Schema.$Array<Schema.Struct<{
135
+ readonly participantName: Schema.String;
136
+ readonly name: Schema.String;
137
+ readonly startItemId: Schema.String;
138
+ readonly endItemId: Schema.NullOr<Schema.String>;
139
+ readonly startTimestamp: Schema.Number;
140
+ readonly endTimestamp: Schema.NullOr<Schema.Number>;
141
+ readonly outcome: Schema.NullOr<Schema.Literals<readonly ["completed", "failed", "interrupted"]>>;
142
+ }>>;
143
+ readonly warnings: Schema.$Array<Schema.Struct<{
144
+ readonly recordType: Schema.Literals<readonly ["log", "span"]>;
145
+ readonly recordId: Schema.String;
146
+ readonly message: Schema.String;
147
+ }>>;
148
+ }>;
149
+ }>]>;
150
+ export declare const StoryVerdictSchema: Schema.Literals<readonly ["passed", "failed", "errored"]>;
151
+ export declare const QuestionReportSchema: Schema.Struct<{
152
+ readonly slug: Schema.String;
153
+ readonly verdict: Schema.Literals<readonly ["passed", "failed", "errored"]>;
154
+ readonly result: Schema.optional<Schema.Codec<JsonValue, JsonValue, never, never>>;
155
+ readonly error: Schema.optional<Schema.String>;
156
+ readonly assertions: Schema.$Array<Schema.Struct<{
157
+ readonly description: Schema.String;
158
+ readonly passed: Schema.Boolean;
159
+ }>>;
160
+ readonly sections: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
161
+ readonly kind: Schema.Literal<"trace">;
162
+ readonly trace: Schema.Struct<{
163
+ readonly spans: Schema.$Array<Schema.Struct<{
164
+ readonly traceId: Schema.String;
165
+ readonly spanId: Schema.String;
166
+ readonly parentSpanId: Schema.NullOr<Schema.String>;
167
+ readonly name: Schema.String;
168
+ readonly startTime: Schema.Number;
169
+ readonly endTime: Schema.NullOr<Schema.Number>;
170
+ readonly status: Schema.Literals<readonly ["error", "interrupted", "running", "success", "unset"]>;
171
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
172
+ readonly events: Schema.$Array<Schema.Struct<{
173
+ readonly name: Schema.String;
174
+ readonly timestamp: Schema.Number;
175
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
176
+ }>>;
177
+ }>>;
178
+ readonly logs: Schema.$Array<Schema.Struct<{
179
+ readonly id: Schema.String;
180
+ readonly spanId: Schema.NullOr<Schema.String>;
181
+ readonly timestamp: Schema.Number;
182
+ readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
183
+ readonly message: Schema.Codec<JsonValue, JsonValue, never, never>;
184
+ readonly annotations: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
185
+ }>>;
186
+ readonly truncated: Schema.Boolean;
187
+ }>;
188
+ }>, Schema.Struct<{
189
+ readonly kind: Schema.Literal<"flow">;
190
+ readonly flow: Schema.Struct<{
191
+ readonly id: Schema.String;
192
+ readonly latestTimestamp: Schema.Number;
193
+ readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
194
+ readonly id: Schema.String;
195
+ readonly participantName: Schema.String;
196
+ readonly name: Schema.String;
197
+ readonly timestamp: Schema.Number;
198
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
199
+ readonly kind: Schema.Literal<"activity">;
200
+ readonly duration: Schema.NullOr<Schema.Number>;
201
+ readonly status: Schema.Literals<readonly ["error", "interrupted", "running", "success", "unset"]>;
202
+ readonly traceId: Schema.String;
203
+ readonly spanId: Schema.String;
204
+ readonly logs: Schema.optional<Schema.$Array<Schema.Struct<{
205
+ readonly timestamp: Schema.Number;
206
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
207
+ readonly message: Schema.String;
208
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
209
+ }>>>;
210
+ }>, Schema.Struct<{
211
+ readonly id: Schema.String;
212
+ readonly participantName: Schema.String;
213
+ readonly name: Schema.String;
214
+ readonly timestamp: Schema.Number;
215
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
216
+ readonly kind: Schema.Literal<"activation-end">;
217
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
218
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "interrupted"]>;
219
+ }>, Schema.Struct<{
220
+ readonly id: Schema.String;
221
+ readonly participantName: Schema.String;
222
+ readonly name: Schema.String;
223
+ readonly timestamp: Schema.Number;
224
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
225
+ readonly kind: Schema.Literal<"activation-start">;
226
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
227
+ }>, Schema.Struct<{
228
+ readonly id: Schema.String;
229
+ readonly participantName: Schema.String;
230
+ readonly name: Schema.String;
231
+ readonly timestamp: Schema.Number;
232
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
233
+ readonly kind: Schema.Literal<"local-event">;
234
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
235
+ }>, Schema.Struct<{
236
+ readonly id: Schema.String;
237
+ readonly participantName: Schema.String;
238
+ readonly name: Schema.String;
239
+ readonly timestamp: Schema.Number;
240
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
241
+ readonly kind: Schema.Literal<"message">;
242
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
243
+ readonly destination: Schema.String;
244
+ readonly messageId: Schema.String;
245
+ readonly replyTo: Schema.optional<Schema.String>;
246
+ }>, Schema.Struct<{
247
+ readonly id: Schema.String;
248
+ readonly participantName: Schema.String;
249
+ readonly name: Schema.String;
250
+ readonly timestamp: Schema.Number;
251
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
252
+ readonly kind: Schema.Literal<"state">;
253
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
254
+ readonly state: Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>;
255
+ readonly merged: Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>;
256
+ }>]>>;
257
+ readonly activations: Schema.$Array<Schema.Struct<{
258
+ readonly participantName: Schema.String;
259
+ readonly name: Schema.String;
260
+ readonly startItemId: Schema.String;
261
+ readonly endItemId: Schema.NullOr<Schema.String>;
262
+ readonly startTimestamp: Schema.Number;
263
+ readonly endTimestamp: Schema.NullOr<Schema.Number>;
264
+ readonly outcome: Schema.NullOr<Schema.Literals<readonly ["completed", "failed", "interrupted"]>>;
265
+ }>>;
266
+ readonly warnings: Schema.$Array<Schema.Struct<{
267
+ readonly recordType: Schema.Literals<readonly ["log", "span"]>;
268
+ readonly recordId: Schema.String;
269
+ readonly message: Schema.String;
270
+ }>>;
271
+ }>;
272
+ }>]>>;
273
+ }>;
274
+ export declare const StoryReportSchema: Schema.Struct<{
275
+ readonly id: Schema.String;
276
+ readonly verdict: Schema.Literals<readonly ["passed", "failed", "errored"]>;
277
+ readonly questions: Schema.$Array<Schema.Struct<{
278
+ readonly slug: Schema.String;
279
+ readonly verdict: Schema.Literals<readonly ["passed", "failed", "errored"]>;
280
+ readonly result: Schema.optional<Schema.Codec<JsonValue, JsonValue, never, never>>;
281
+ readonly error: Schema.optional<Schema.String>;
282
+ readonly assertions: Schema.$Array<Schema.Struct<{
283
+ readonly description: Schema.String;
284
+ readonly passed: Schema.Boolean;
285
+ }>>;
286
+ readonly sections: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
287
+ readonly kind: Schema.Literal<"trace">;
288
+ readonly trace: Schema.Struct<{
289
+ readonly spans: Schema.$Array<Schema.Struct<{
290
+ readonly traceId: Schema.String;
291
+ readonly spanId: Schema.String;
292
+ readonly parentSpanId: Schema.NullOr<Schema.String>;
293
+ readonly name: Schema.String;
294
+ readonly startTime: Schema.Number;
295
+ readonly endTime: Schema.NullOr<Schema.Number>;
296
+ readonly status: Schema.Literals<readonly ["error", "interrupted", "running", "success", "unset"]>;
297
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
298
+ readonly events: Schema.$Array<Schema.Struct<{
299
+ readonly name: Schema.String;
300
+ readonly timestamp: Schema.Number;
301
+ readonly attributes: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
302
+ }>>;
303
+ }>>;
304
+ readonly logs: Schema.$Array<Schema.Struct<{
305
+ readonly id: Schema.String;
306
+ readonly spanId: Schema.NullOr<Schema.String>;
307
+ readonly timestamp: Schema.Number;
308
+ readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
309
+ readonly message: Schema.Codec<JsonValue, JsonValue, never, never>;
310
+ readonly annotations: Schema.$Record<Schema.String, Schema.Codec<JsonValue, JsonValue, never, never>>;
311
+ }>>;
312
+ readonly truncated: Schema.Boolean;
313
+ }>;
314
+ }>, Schema.Struct<{
315
+ readonly kind: Schema.Literal<"flow">;
316
+ readonly flow: Schema.Struct<{
317
+ readonly id: Schema.String;
318
+ readonly latestTimestamp: Schema.Number;
319
+ readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
320
+ readonly id: Schema.String;
321
+ readonly participantName: Schema.String;
322
+ readonly name: Schema.String;
323
+ readonly timestamp: Schema.Number;
324
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
325
+ readonly kind: Schema.Literal<"activity">;
326
+ readonly duration: Schema.NullOr<Schema.Number>;
327
+ readonly status: Schema.Literals<readonly ["error", "interrupted", "running", "success", "unset"]>;
328
+ readonly traceId: Schema.String;
329
+ readonly spanId: Schema.String;
330
+ readonly logs: Schema.optional<Schema.$Array<Schema.Struct<{
331
+ readonly timestamp: Schema.Number;
332
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
333
+ readonly message: Schema.String;
334
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
335
+ }>>>;
336
+ }>, Schema.Struct<{
337
+ readonly id: Schema.String;
338
+ readonly participantName: Schema.String;
339
+ readonly name: Schema.String;
340
+ readonly timestamp: Schema.Number;
341
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
342
+ readonly kind: Schema.Literal<"activation-end">;
343
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
344
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "interrupted"]>;
345
+ }>, Schema.Struct<{
346
+ readonly id: Schema.String;
347
+ readonly participantName: Schema.String;
348
+ readonly name: Schema.String;
349
+ readonly timestamp: Schema.Number;
350
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
351
+ readonly kind: Schema.Literal<"activation-start">;
352
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
353
+ }>, Schema.Struct<{
354
+ readonly id: Schema.String;
355
+ readonly participantName: Schema.String;
356
+ readonly name: Schema.String;
357
+ readonly timestamp: Schema.Number;
358
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
359
+ readonly kind: Schema.Literal<"local-event">;
360
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
361
+ }>, Schema.Struct<{
362
+ readonly id: Schema.String;
363
+ readonly participantName: Schema.String;
364
+ readonly name: Schema.String;
365
+ readonly timestamp: Schema.Number;
366
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
367
+ readonly kind: Schema.Literal<"message">;
368
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
369
+ readonly destination: Schema.String;
370
+ readonly messageId: Schema.String;
371
+ readonly replyTo: Schema.optional<Schema.String>;
372
+ }>, Schema.Struct<{
373
+ readonly id: Schema.String;
374
+ readonly participantName: Schema.String;
375
+ readonly name: Schema.String;
376
+ readonly timestamp: Schema.Number;
377
+ readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
378
+ readonly kind: Schema.Literal<"state">;
379
+ readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
380
+ readonly state: Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>;
381
+ readonly merged: Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>;
382
+ }>]>>;
383
+ readonly activations: Schema.$Array<Schema.Struct<{
384
+ readonly participantName: Schema.String;
385
+ readonly name: Schema.String;
386
+ readonly startItemId: Schema.String;
387
+ readonly endItemId: Schema.NullOr<Schema.String>;
388
+ readonly startTimestamp: Schema.Number;
389
+ readonly endTimestamp: Schema.NullOr<Schema.Number>;
390
+ readonly outcome: Schema.NullOr<Schema.Literals<readonly ["completed", "failed", "interrupted"]>>;
391
+ }>>;
392
+ readonly warnings: Schema.$Array<Schema.Struct<{
393
+ readonly recordType: Schema.Literals<readonly ["log", "span"]>;
394
+ readonly recordId: Schema.String;
395
+ readonly message: Schema.String;
396
+ }>>;
397
+ }>;
398
+ }>]>>;
399
+ }>>;
400
+ }>;
401
+ export type CapturedTrace = typeof CapturedTraceSchema.Type;
402
+ export type RecordedFlow = typeof RecordedFlowSchema.Type;
403
+ export type StoryAssertion = typeof StoryAssertionSchema.Type;
404
+ export type QuestionSection = typeof QuestionSectionSchema.Type;
405
+ export type QuestionReport = typeof QuestionReportSchema.Type;
406
+ export type StoryVerdict = typeof StoryVerdictSchema.Type;
407
+ export type StoryReport = typeof StoryReportSchema.Type;
408
+ //# sourceMappingURL=story-report-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story-report-schema.d.ts","sourceRoot":"","sources":["../../../src/story/schema/story-report-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAc9B,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,SAAS,EAAE,GACpB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAqC1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;EAQ9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;EAO/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAahC,CAAC;AAEH,eAAO,MAAM,kBAAkB,2DAI7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { Schema } from 'effect';
2
+ import { RecordedFlowSchema } from '@pkishorez/effect-tracer/flow';
3
+ export { RecordedFlowSchema };
4
+ const JsonValueSchema = Schema.Union([
5
+ Schema.String,
6
+ Schema.Number,
7
+ Schema.Boolean,
8
+ Schema.Null,
9
+ Schema.Array(Schema.suspend(() => JsonValueSchema)),
10
+ Schema.Record(Schema.String, Schema.suspend(() => JsonValueSchema)),
11
+ ]);
12
+ const SpanStatusSchema = Schema.Literals([
13
+ 'error',
14
+ 'interrupted',
15
+ 'running',
16
+ 'success',
17
+ 'unset',
18
+ ]);
19
+ const CapturedEventSchema = Schema.Struct({
20
+ name: Schema.String,
21
+ timestamp: Schema.Number,
22
+ attributes: Schema.Record(Schema.String, JsonValueSchema),
23
+ });
24
+ const CapturedSpanSchema = Schema.Struct({
25
+ traceId: Schema.String,
26
+ spanId: Schema.String,
27
+ parentSpanId: Schema.NullOr(Schema.String),
28
+ name: Schema.String,
29
+ startTime: Schema.Number,
30
+ endTime: Schema.NullOr(Schema.Number),
31
+ status: SpanStatusSchema,
32
+ attributes: Schema.Record(Schema.String, JsonValueSchema),
33
+ events: Schema.Array(CapturedEventSchema),
34
+ });
35
+ const CapturedLogSchema = Schema.Struct({
36
+ id: Schema.String,
37
+ spanId: Schema.NullOr(Schema.String),
38
+ timestamp: Schema.Number,
39
+ level: Schema.Literals(['Fatal', 'Error', 'Warn', 'Info', 'Debug', 'Trace']),
40
+ message: JsonValueSchema,
41
+ annotations: Schema.Record(Schema.String, JsonValueSchema),
42
+ });
43
+ export const CapturedTraceSchema = Schema.Struct({
44
+ spans: Schema.Array(CapturedSpanSchema),
45
+ logs: Schema.Array(CapturedLogSchema),
46
+ truncated: Schema.Boolean,
47
+ }).annotate({
48
+ title: 'Captured Trace',
49
+ description: "A Story artifact: every span and log recorded while a Story's traced region ran.",
50
+ });
51
+ export const StoryAssertionSchema = Schema.Struct({
52
+ description: Schema.String,
53
+ passed: Schema.Boolean,
54
+ }).annotate({
55
+ title: 'Story Assertion',
56
+ description: "One recorded assertion outcome pinning a Question's answer to its captured proof.",
57
+ });
58
+ export const QuestionSectionSchema = Schema.Union([
59
+ Schema.Struct({
60
+ kind: Schema.Literal('trace'),
61
+ trace: CapturedTraceSchema,
62
+ }),
63
+ Schema.Struct({
64
+ kind: Schema.Literal('flow'),
65
+ flow: RecordedFlowSchema,
66
+ }),
67
+ ]).annotate({
68
+ title: 'Question Section',
69
+ description: "One captured artifact of a Question's proof run: a trace or a flow.",
70
+ });
71
+ export const StoryVerdictSchema = Schema.Literals([
72
+ 'passed',
73
+ 'failed',
74
+ 'errored',
75
+ ]);
76
+ export const QuestionReportSchema = Schema.Struct({
77
+ slug: Schema.String,
78
+ verdict: StoryVerdictSchema,
79
+ result: Schema.optional(JsonValueSchema),
80
+ error: Schema.optional(Schema.String),
81
+ assertions: Schema.Array(StoryAssertionSchema),
82
+ sections: Schema.Array(QuestionSectionSchema),
83
+ }).annotate({
84
+ title: 'Question Report',
85
+ description: "The structured record of one Question's proof run: the captured result (or error), the assertions pinning the answer, and any captured sections.",
86
+ });
87
+ export const StoryReportSchema = Schema.Struct({
88
+ id: Schema.String,
89
+ verdict: StoryVerdictSchema,
90
+ questions: Schema.Array(QuestionReportSchema),
91
+ }).annotate({
92
+ title: 'Story Report',
93
+ description: "The structured record of one Story run, attached to the Story tree by the Story's id: one Question report per authored Question, in order.",
94
+ });
@@ -0,0 +1,42 @@
1
+ import { Schema } from 'effect';
2
+ export declare const StorySourceSchema: Schema.Struct<{
3
+ readonly path: Schema.String;
4
+ readonly content: Schema.String;
5
+ }>;
6
+ export declare const QuestionLeafSchema: Schema.Struct<{
7
+ readonly slug: Schema.String;
8
+ readonly question: Schema.String;
9
+ readonly answer: Schema.String;
10
+ readonly snippet: Schema.String;
11
+ }>;
12
+ export declare const StoryLeafSchema: Schema.Struct<{
13
+ readonly id: Schema.String;
14
+ readonly title: Schema.String;
15
+ readonly setup: Schema.NullOr<Schema.String>;
16
+ readonly questions: Schema.$Array<Schema.Struct<{
17
+ readonly slug: Schema.String;
18
+ readonly question: Schema.String;
19
+ readonly answer: Schema.String;
20
+ readonly snippet: Schema.String;
21
+ }>>;
22
+ readonly source: Schema.Struct<{
23
+ readonly path: Schema.String;
24
+ readonly content: Schema.String;
25
+ }>;
26
+ readonly support: Schema.NullOr<Schema.Struct<{
27
+ readonly path: Schema.String;
28
+ readonly content: Schema.String;
29
+ }>>;
30
+ }>;
31
+ export interface StoryTreeGroup {
32
+ readonly title: string;
33
+ readonly groups: readonly StoryTreeGroup[];
34
+ readonly stories: readonly (typeof StoryLeafSchema.Type)[];
35
+ }
36
+ export declare const StoryTreeGroupSchema: Schema.Codec<StoryTreeGroup>;
37
+ export declare const StoryTreeSchema: Schema.Codec<StoryTreeGroup, StoryTreeGroup, never, never>;
38
+ export type QuestionLeaf = typeof QuestionLeafSchema.Type;
39
+ export type StoryLeaf = typeof StoryLeafSchema.Type;
40
+ export type StorySource = typeof StorySourceSchema.Type;
41
+ export type StoryTree = StoryTreeGroup;
42
+ //# sourceMappingURL=story-tree-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story-tree-schema.d.ts","sourceRoot":"","sources":["../../../src/story/schema/story-tree-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,iBAAiB;;;EAO5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;EAS7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAW1B,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;CAC5D;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAAC,cAAc,CAUjB,CAAC;AAE9C,eAAO,MAAM,eAAe,4DAI1B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,SAAS,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AACpD,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Schema } from 'effect';
2
+ export const StorySourceSchema = Schema.Struct({
3
+ path: Schema.String,
4
+ content: Schema.String,
5
+ }).annotate({
6
+ title: 'Story Source',
7
+ description: 'The full text of a project file backing a Story: the file the Story was authored in, or the support file its proofs import.',
8
+ });
9
+ export const QuestionLeafSchema = Schema.Struct({
10
+ slug: Schema.String,
11
+ question: Schema.String,
12
+ answer: Schema.String,
13
+ snippet: Schema.String,
14
+ }).annotate({
15
+ title: 'Question Leaf',
16
+ description: 'One Question of a Story: the question, its one-sentence answer, and the literal source of the proof effect extracted from the Story file.',
17
+ });
18
+ export const StoryLeafSchema = Schema.Struct({
19
+ id: Schema.String,
20
+ title: Schema.String,
21
+ setup: Schema.NullOr(Schema.String),
22
+ questions: Schema.Array(QuestionLeafSchema),
23
+ source: StorySourceSchema,
24
+ support: Schema.NullOr(StorySourceSchema),
25
+ }).annotate({
26
+ title: 'Story Leaf',
27
+ description: 'One Story in the Story tree: its derived id, the shared setup snippet, its Questions in authored order, and the support file its proofs import. Never carries results.',
28
+ });
29
+ export const StoryTreeGroupSchema = Schema.Struct({
30
+ title: Schema.String,
31
+ groups: Schema.Array(Schema.suspend(() => StoryTreeGroupSchema)),
32
+ stories: Schema.Array(StoryLeafSchema),
33
+ }).annotate({
34
+ title: 'Story Group',
35
+ description: 'One node of the Story tree: a title over any mix of subgroups and Story leaves.',
36
+ });
37
+ export const StoryTreeSchema = StoryTreeGroupSchema.annotate({
38
+ title: 'Story Tree',
39
+ description: "A Project's whole Story hierarchy, rooted at the barrel's default export. Metadata only; no Story executes to produce it.",
40
+ });
@@ -0,0 +1,38 @@
1
+ import { Context, Effect } from 'effect';
2
+ import type { QuestionSection } from './schema/index.js';
3
+ declare const StoryContext_base: Context.ServiceClass<StoryContext, "StoryContext", {
4
+ readonly beginSection: (section: QuestionSection) => Effect.Effect<void>;
5
+ readonly assert: (description: string, passed: boolean) => Effect.Effect<void>;
6
+ }>;
7
+ export declare class StoryContext extends StoryContext_base {
8
+ }
9
+ export interface StoryQuestion {
10
+ readonly question: string;
11
+ readonly answer: string;
12
+ readonly proof: Effect.Effect<unknown, unknown, StoryContext>;
13
+ }
14
+ export interface Story {
15
+ readonly title: string;
16
+ readonly sourceUrl: string;
17
+ readonly questions: readonly StoryQuestion[];
18
+ }
19
+ export interface StoryGroup {
20
+ readonly title: string;
21
+ readonly children: readonly StoryNode[];
22
+ }
23
+ export type StoryNode = Story | StoryGroup;
24
+ export declare const Story: {
25
+ make(story: Story): Story;
26
+ question(question: string, options: {
27
+ readonly answer: string;
28
+ readonly proof: Effect.Effect<unknown, unknown, StoryContext>;
29
+ }): StoryQuestion;
30
+ group(title: string, children: readonly StoryNode[]): StoryGroup;
31
+ trace<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R | StoryContext>;
32
+ flow<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R | StoryContext>;
33
+ assert(description: string, passed: boolean): Effect.Effect<void, never, StoryContext>;
34
+ };
35
+ export declare function isStory(value: unknown): value is Story;
36
+ export declare function isStoryGroup(value: unknown): value is StoryGroup;
37
+ export {};
38
+ //# sourceMappingURL=story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story.d.ts","sourceRoot":"","sources":["../../src/story/story.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;;2BAK9B,CAAC,OAAO,EAAE,eAAe,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;qBACvD,CACf,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,OAAO,KACZ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;;AAP5B,qBAAa,YAAa,SAAQ,iBASf;CAAG;AAEtB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;CAC/D;AAED,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,aAAa,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;CACzC;AAED,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,UAAU,CAAC;AAE3C,eAAO,MAAM,KAAK;IAChB,IAAI,QAAQ,KAAK,GAAG,KAAK;IAIzB,QAAQ,WACI,MAAM,WACP;QACP,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;KAC/D,GACA,aAAa;IAIhB,KAAK,QAAQ,MAAM,YAAY,SAAS,SAAS,EAAE,GAAG,UAAU;IAIhE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UACH,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC;IAcxC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UACF,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC;IAgBxC,MAAM,cACS,MAAM,UACX,OAAO,GACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC;CAK5C,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CActD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAOhE"}