@inluxc/propmaster 0.0.0-stage → 1.0.1

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 (444) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +696 -2
  3. package/dist/src/annotations/index.d.ts +11 -0
  4. package/dist/src/annotations/index.d.ts.map +1 -0
  5. package/dist/src/annotations/index.js +11 -0
  6. package/dist/src/annotations/index.js.map +1 -0
  7. package/dist/src/annotations/recorder.d.ts +57 -0
  8. package/dist/src/annotations/recorder.d.ts.map +1 -0
  9. package/dist/src/annotations/recorder.js +100 -0
  10. package/dist/src/annotations/recorder.js.map +1 -0
  11. package/dist/src/annotations/truncation.d.ts +34 -0
  12. package/dist/src/annotations/truncation.d.ts.map +1 -0
  13. package/dist/src/annotations/truncation.js +54 -0
  14. package/dist/src/annotations/truncation.js.map +1 -0
  15. package/dist/src/auth/apply.d.ts +15 -0
  16. package/dist/src/auth/apply.d.ts.map +1 -0
  17. package/dist/src/auth/apply.js +21 -0
  18. package/dist/src/auth/apply.js.map +1 -0
  19. package/dist/src/auth/setup.d.ts +56 -0
  20. package/dist/src/auth/setup.d.ts.map +1 -0
  21. package/dist/src/auth/setup.js +79 -0
  22. package/dist/src/auth/setup.js.map +1 -0
  23. package/dist/src/auth/state-file.d.ts +8 -0
  24. package/dist/src/auth/state-file.d.ts.map +1 -0
  25. package/dist/src/auth/state-file.js +13 -0
  26. package/dist/src/auth/state-file.js.map +1 -0
  27. package/dist/src/auth/token-manager.d.ts +61 -0
  28. package/dist/src/auth/token-manager.d.ts.map +1 -0
  29. package/dist/src/auth/token-manager.js +200 -0
  30. package/dist/src/auth/token-manager.js.map +1 -0
  31. package/dist/src/cli/banner.d.ts +23 -0
  32. package/dist/src/cli/banner.d.ts.map +1 -0
  33. package/dist/src/cli/banner.js +67 -0
  34. package/dist/src/cli/banner.js.map +1 -0
  35. package/dist/src/cli/check-tests.d.ts +143 -0
  36. package/dist/src/cli/check-tests.d.ts.map +1 -0
  37. package/dist/src/cli/check-tests.js +541 -0
  38. package/dist/src/cli/check-tests.js.map +1 -0
  39. package/dist/src/cli/coverage.d.ts +14 -0
  40. package/dist/src/cli/coverage.d.ts.map +1 -0
  41. package/dist/src/cli/coverage.js +97 -0
  42. package/dist/src/cli/coverage.js.map +1 -0
  43. package/dist/src/cli/doctor.d.ts +82 -0
  44. package/dist/src/cli/doctor.d.ts.map +1 -0
  45. package/dist/src/cli/doctor.js +656 -0
  46. package/dist/src/cli/doctor.js.map +1 -0
  47. package/dist/src/cli/env.d.ts +76 -0
  48. package/dist/src/cli/env.d.ts.map +1 -0
  49. package/dist/src/cli/env.js +344 -0
  50. package/dist/src/cli/env.js.map +1 -0
  51. package/dist/src/cli/failures.d.ts +29 -0
  52. package/dist/src/cli/failures.d.ts.map +1 -0
  53. package/dist/src/cli/failures.js +114 -0
  54. package/dist/src/cli/failures.js.map +1 -0
  55. package/dist/src/cli/fixture-catalog.d.ts +83 -0
  56. package/dist/src/cli/fixture-catalog.d.ts.map +1 -0
  57. package/dist/src/cli/fixture-catalog.js +773 -0
  58. package/dist/src/cli/fixture-catalog.js.map +1 -0
  59. package/dist/src/cli/fixture.d.ts +149 -0
  60. package/dist/src/cli/fixture.d.ts.map +1 -0
  61. package/dist/src/cli/fixture.js +742 -0
  62. package/dist/src/cli/fixture.js.map +1 -0
  63. package/dist/src/cli/flaky.d.ts +25 -0
  64. package/dist/src/cli/flaky.d.ts.map +1 -0
  65. package/dist/src/cli/flaky.js +96 -0
  66. package/dist/src/cli/flaky.js.map +1 -0
  67. package/dist/src/cli/generate.d.ts +37 -0
  68. package/dist/src/cli/generate.d.ts.map +1 -0
  69. package/dist/src/cli/generate.js +230 -0
  70. package/dist/src/cli/generate.js.map +1 -0
  71. package/dist/src/cli/init.d.ts +36 -0
  72. package/dist/src/cli/init.d.ts.map +1 -0
  73. package/dist/src/cli/init.js +1039 -0
  74. package/dist/src/cli/init.js.map +1 -0
  75. package/dist/src/cli/json-edit.d.ts +58 -0
  76. package/dist/src/cli/json-edit.d.ts.map +1 -0
  77. package/dist/src/cli/json-edit.js +250 -0
  78. package/dist/src/cli/json-edit.js.map +1 -0
  79. package/dist/src/cli/layout.d.ts +31 -0
  80. package/dist/src/cli/layout.d.ts.map +1 -0
  81. package/dist/src/cli/layout.js +175 -0
  82. package/dist/src/cli/layout.js.map +1 -0
  83. package/dist/src/cli/mcp-setup.d.ts +141 -0
  84. package/dist/src/cli/mcp-setup.d.ts.map +1 -0
  85. package/dist/src/cli/mcp-setup.js +548 -0
  86. package/dist/src/cli/mcp-setup.js.map +1 -0
  87. package/dist/src/cli/organize.d.ts +136 -0
  88. package/dist/src/cli/organize.d.ts.map +1 -0
  89. package/dist/src/cli/organize.js +467 -0
  90. package/dist/src/cli/organize.js.map +1 -0
  91. package/dist/src/cli/prompts.d.ts +102 -0
  92. package/dist/src/cli/prompts.d.ts.map +1 -0
  93. package/dist/src/cli/prompts.js +346 -0
  94. package/dist/src/cli/prompts.js.map +1 -0
  95. package/dist/src/cli/standards.d.ts +160 -0
  96. package/dist/src/cli/standards.d.ts.map +1 -0
  97. package/dist/src/cli/standards.js +389 -0
  98. package/dist/src/cli/standards.js.map +1 -0
  99. package/dist/src/cli/style.d.ts +28 -0
  100. package/dist/src/cli/style.d.ts.map +1 -0
  101. package/dist/src/cli/style.js +57 -0
  102. package/dist/src/cli/style.js.map +1 -0
  103. package/dist/src/config/env-loader.d.ts +33 -0
  104. package/dist/src/config/env-loader.d.ts.map +1 -0
  105. package/dist/src/config/env-loader.js +72 -0
  106. package/dist/src/config/env-loader.js.map +1 -0
  107. package/dist/src/config/index.d.ts +10 -0
  108. package/dist/src/config/index.d.ts.map +1 -0
  109. package/dist/src/config/index.js +10 -0
  110. package/dist/src/config/index.js.map +1 -0
  111. package/dist/src/config/loader.d.ts +66 -0
  112. package/dist/src/config/loader.d.ts.map +1 -0
  113. package/dist/src/config/loader.js +810 -0
  114. package/dist/src/config/loader.js.map +1 -0
  115. package/dist/src/config/schema.d.ts +596 -0
  116. package/dist/src/config/schema.d.ts.map +1 -0
  117. package/dist/src/config/schema.js +9 -0
  118. package/dist/src/config/schema.js.map +1 -0
  119. package/dist/src/containers/container-manager.d.ts +157 -0
  120. package/dist/src/containers/container-manager.d.ts.map +1 -0
  121. package/dist/src/containers/container-manager.js +627 -0
  122. package/dist/src/containers/container-manager.js.map +1 -0
  123. package/dist/src/coverage/code-coverage.d.ts +89 -0
  124. package/dist/src/coverage/code-coverage.d.ts.map +1 -0
  125. package/dist/src/coverage/code-coverage.js +395 -0
  126. package/dist/src/coverage/code-coverage.js.map +1 -0
  127. package/dist/src/coverage/inventory.d.ts +80 -0
  128. package/dist/src/coverage/inventory.d.ts.map +1 -0
  129. package/dist/src/coverage/inventory.js +417 -0
  130. package/dist/src/coverage/inventory.js.map +1 -0
  131. package/dist/src/coverage/languages.d.ts +34 -0
  132. package/dist/src/coverage/languages.d.ts.map +1 -0
  133. package/dist/src/coverage/languages.js +156 -0
  134. package/dist/src/coverage/languages.js.map +1 -0
  135. package/dist/src/coverage/report.d.ts +128 -0
  136. package/dist/src/coverage/report.d.ts.map +1 -0
  137. package/dist/src/coverage/report.js +472 -0
  138. package/dist/src/coverage/report.js.map +1 -0
  139. package/dist/src/errors.d.ts +164 -0
  140. package/dist/src/errors.d.ts.map +1 -0
  141. package/dist/src/errors.js +267 -0
  142. package/dist/src/errors.js.map +1 -0
  143. package/dist/src/fixtures/amqp.fixture.d.ts +163 -0
  144. package/dist/src/fixtures/amqp.fixture.d.ts.map +1 -0
  145. package/dist/src/fixtures/amqp.fixture.js +494 -0
  146. package/dist/src/fixtures/amqp.fixture.js.map +1 -0
  147. package/dist/src/fixtures/appium.fixture.d.ts +112 -0
  148. package/dist/src/fixtures/appium.fixture.d.ts.map +1 -0
  149. package/dist/src/fixtures/appium.fixture.js +309 -0
  150. package/dist/src/fixtures/appium.fixture.js.map +1 -0
  151. package/dist/src/fixtures/aws.d.ts +44 -0
  152. package/dist/src/fixtures/aws.d.ts.map +1 -0
  153. package/dist/src/fixtures/aws.js +93 -0
  154. package/dist/src/fixtures/aws.js.map +1 -0
  155. package/dist/src/fixtures/cassandra.fixture.d.ts +179 -0
  156. package/dist/src/fixtures/cassandra.fixture.d.ts.map +1 -0
  157. package/dist/src/fixtures/cassandra.fixture.js +489 -0
  158. package/dist/src/fixtures/cassandra.fixture.js.map +1 -0
  159. package/dist/src/fixtures/clickhouse.fixture.d.ts +171 -0
  160. package/dist/src/fixtures/clickhouse.fixture.d.ts.map +1 -0
  161. package/dist/src/fixtures/clickhouse.fixture.js +514 -0
  162. package/dist/src/fixtures/clickhouse.fixture.js.map +1 -0
  163. package/dist/src/fixtures/database.fixture.d.ts +63 -0
  164. package/dist/src/fixtures/database.fixture.d.ts.map +1 -0
  165. package/dist/src/fixtures/database.fixture.js +407 -0
  166. package/dist/src/fixtures/database.fixture.js.map +1 -0
  167. package/dist/src/fixtures/dynamodb.fixture.d.ts +243 -0
  168. package/dist/src/fixtures/dynamodb.fixture.d.ts.map +1 -0
  169. package/dist/src/fixtures/dynamodb.fixture.js +580 -0
  170. package/dist/src/fixtures/dynamodb.fixture.js.map +1 -0
  171. package/dist/src/fixtures/graphql.fixture.d.ts +107 -0
  172. package/dist/src/fixtures/graphql.fixture.d.ts.map +1 -0
  173. package/dist/src/fixtures/graphql.fixture.js +158 -0
  174. package/dist/src/fixtures/graphql.fixture.js.map +1 -0
  175. package/dist/src/fixtures/grpc.fixture.d.ts +167 -0
  176. package/dist/src/fixtures/grpc.fixture.d.ts.map +1 -0
  177. package/dist/src/fixtures/grpc.fixture.js +635 -0
  178. package/dist/src/fixtures/grpc.fixture.js.map +1 -0
  179. package/dist/src/fixtures/inbox.fixture.d.ts +136 -0
  180. package/dist/src/fixtures/inbox.fixture.d.ts.map +1 -0
  181. package/dist/src/fixtures/inbox.fixture.js +239 -0
  182. package/dist/src/fixtures/inbox.fixture.js.map +1 -0
  183. package/dist/src/fixtures/index.d.ts +174 -0
  184. package/dist/src/fixtures/index.d.ts.map +1 -0
  185. package/dist/src/fixtures/index.js +379 -0
  186. package/dist/src/fixtures/index.js.map +1 -0
  187. package/dist/src/fixtures/kafka-driver.d.ts +108 -0
  188. package/dist/src/fixtures/kafka-driver.d.ts.map +1 -0
  189. package/dist/src/fixtures/kafka-driver.js +113 -0
  190. package/dist/src/fixtures/kafka-driver.js.map +1 -0
  191. package/dist/src/fixtures/kafka.fixture.d.ts +75 -0
  192. package/dist/src/fixtures/kafka.fixture.d.ts.map +1 -0
  193. package/dist/src/fixtures/kafka.fixture.js +188 -0
  194. package/dist/src/fixtures/kafka.fixture.js.map +1 -0
  195. package/dist/src/fixtures/mock-server.fixture.d.ts +142 -0
  196. package/dist/src/fixtures/mock-server.fixture.d.ts.map +1 -0
  197. package/dist/src/fixtures/mock-server.fixture.js +271 -0
  198. package/dist/src/fixtures/mock-server.fixture.js.map +1 -0
  199. package/dist/src/fixtures/mongodb.fixture.d.ts +121 -0
  200. package/dist/src/fixtures/mongodb.fixture.d.ts.map +1 -0
  201. package/dist/src/fixtures/mongodb.fixture.js +258 -0
  202. package/dist/src/fixtures/mongodb.fixture.js.map +1 -0
  203. package/dist/src/fixtures/neo4j.fixture.d.ts +72 -0
  204. package/dist/src/fixtures/neo4j.fixture.d.ts.map +1 -0
  205. package/dist/src/fixtures/neo4j.fixture.js +202 -0
  206. package/dist/src/fixtures/neo4j.fixture.js.map +1 -0
  207. package/dist/src/fixtures/openapi.fixture.d.ts +101 -0
  208. package/dist/src/fixtures/openapi.fixture.d.ts.map +1 -0
  209. package/dist/src/fixtures/openapi.fixture.js +266 -0
  210. package/dist/src/fixtures/openapi.fixture.js.map +1 -0
  211. package/dist/src/fixtures/optional-package.d.ts +54 -0
  212. package/dist/src/fixtures/optional-package.d.ts.map +1 -0
  213. package/dist/src/fixtures/optional-package.js +79 -0
  214. package/dist/src/fixtures/optional-package.js.map +1 -0
  215. package/dist/src/fixtures/otp.fixture.d.ts +60 -0
  216. package/dist/src/fixtures/otp.fixture.d.ts.map +1 -0
  217. package/dist/src/fixtures/otp.fixture.js +101 -0
  218. package/dist/src/fixtures/otp.fixture.js.map +1 -0
  219. package/dist/src/fixtures/realtime.fixture.d.ts +205 -0
  220. package/dist/src/fixtures/realtime.fixture.d.ts.map +1 -0
  221. package/dist/src/fixtures/realtime.fixture.js +606 -0
  222. package/dist/src/fixtures/realtime.fixture.js.map +1 -0
  223. package/dist/src/fixtures/redis.fixture.d.ts +55 -0
  224. package/dist/src/fixtures/redis.fixture.d.ts.map +1 -0
  225. package/dist/src/fixtures/redis.fixture.js +209 -0
  226. package/dist/src/fixtures/redis.fixture.js.map +1 -0
  227. package/dist/src/fixtures/s3.fixture.d.ts +126 -0
  228. package/dist/src/fixtures/s3.fixture.d.ts.map +1 -0
  229. package/dist/src/fixtures/s3.fixture.js +296 -0
  230. package/dist/src/fixtures/s3.fixture.js.map +1 -0
  231. package/dist/src/fixtures/search.fixture.d.ts +178 -0
  232. package/dist/src/fixtures/search.fixture.d.ts.map +1 -0
  233. package/dist/src/fixtures/search.fixture.js +472 -0
  234. package/dist/src/fixtures/search.fixture.js.map +1 -0
  235. package/dist/src/fixtures/sqs.fixture.d.ts +172 -0
  236. package/dist/src/fixtures/sqs.fixture.d.ts.map +1 -0
  237. package/dist/src/fixtures/sqs.fixture.js +428 -0
  238. package/dist/src/fixtures/sqs.fixture.js.map +1 -0
  239. package/dist/src/index.d.ts +43 -0
  240. package/dist/src/index.d.ts.map +1 -0
  241. package/dist/src/index.js +48 -0
  242. package/dist/src/index.js.map +1 -0
  243. package/dist/src/mcp/guards.d.ts +21 -0
  244. package/dist/src/mcp/guards.d.ts.map +1 -0
  245. package/dist/src/mcp/guards.js +118 -0
  246. package/dist/src/mcp/guards.js.map +1 -0
  247. package/dist/src/mcp/project-tools.d.ts +14 -0
  248. package/dist/src/mcp/project-tools.d.ts.map +1 -0
  249. package/dist/src/mcp/project-tools.js +252 -0
  250. package/dist/src/mcp/project-tools.js.map +1 -0
  251. package/dist/src/mcp/protocol.d.ts +116 -0
  252. package/dist/src/mcp/protocol.d.ts.map +1 -0
  253. package/dist/src/mcp/protocol.js +199 -0
  254. package/dist/src/mcp/protocol.js.map +1 -0
  255. package/dist/src/mcp/server.d.ts +43 -0
  256. package/dist/src/mcp/server.d.ts.map +1 -0
  257. package/dist/src/mcp/server.js +244 -0
  258. package/dist/src/mcp/server.js.map +1 -0
  259. package/dist/src/mcp/test-tools.d.ts +65 -0
  260. package/dist/src/mcp/test-tools.d.ts.map +1 -0
  261. package/dist/src/mcp/test-tools.js +380 -0
  262. package/dist/src/mcp/test-tools.js.map +1 -0
  263. package/dist/src/mcp/tools.d.ts +49 -0
  264. package/dist/src/mcp/tools.d.ts.map +1 -0
  265. package/dist/src/mcp/tools.js +726 -0
  266. package/dist/src/mcp/tools.js.map +1 -0
  267. package/dist/src/network-error.d.ts +11 -0
  268. package/dist/src/network-error.d.ts.map +1 -0
  269. package/dist/src/network-error.js +34 -0
  270. package/dist/src/network-error.js.map +1 -0
  271. package/dist/src/openapi/contract.d.ts +98 -0
  272. package/dist/src/openapi/contract.d.ts.map +1 -0
  273. package/dist/src/openapi/contract.js +407 -0
  274. package/dist/src/openapi/contract.js.map +1 -0
  275. package/dist/src/openapi/generate.d.ts +89 -0
  276. package/dist/src/openapi/generate.d.ts.map +1 -0
  277. package/dist/src/openapi/generate.js +607 -0
  278. package/dist/src/openapi/generate.js.map +1 -0
  279. package/dist/src/openapi/load.d.ts +8 -0
  280. package/dist/src/openapi/load.d.ts.map +1 -0
  281. package/dist/src/openapi/load.js +26 -0
  282. package/dist/src/openapi/load.js.map +1 -0
  283. package/dist/src/package-manager.d.ts +58 -0
  284. package/dist/src/package-manager.d.ts.map +1 -0
  285. package/dist/src/package-manager.js +137 -0
  286. package/dist/src/package-manager.js.map +1 -0
  287. package/dist/src/reporter/history.d.ts +85 -0
  288. package/dist/src/reporter/history.d.ts.map +1 -0
  289. package/dist/src/reporter/history.js +147 -0
  290. package/dist/src/reporter/history.js.map +1 -0
  291. package/dist/src/reporter/index.d.ts +59 -0
  292. package/dist/src/reporter/index.d.ts.map +1 -0
  293. package/dist/src/reporter/index.js +201 -0
  294. package/dist/src/reporter/index.js.map +1 -0
  295. package/dist/src/reporter/last-run.d.ts +88 -0
  296. package/dist/src/reporter/last-run.d.ts.map +1 -0
  297. package/dist/src/reporter/last-run.js +133 -0
  298. package/dist/src/reporter/last-run.js.map +1 -0
  299. package/dist/src/reporter/quarantine.d.ts +62 -0
  300. package/dist/src/reporter/quarantine.d.ts.map +1 -0
  301. package/dist/src/reporter/quarantine.js +148 -0
  302. package/dist/src/reporter/quarantine.js.map +1 -0
  303. package/dist/src/secrets/index.d.ts +4 -0
  304. package/dist/src/secrets/index.d.ts.map +1 -0
  305. package/dist/src/secrets/index.js +3 -0
  306. package/dist/src/secrets/index.js.map +1 -0
  307. package/dist/src/secrets/provider.interface.d.ts +30 -0
  308. package/dist/src/secrets/provider.interface.d.ts.map +1 -0
  309. package/dist/src/secrets/provider.interface.js +2 -0
  310. package/dist/src/secrets/provider.interface.js.map +1 -0
  311. package/dist/src/secrets/providers/aws.provider.d.ts +33 -0
  312. package/dist/src/secrets/providers/aws.provider.d.ts.map +1 -0
  313. package/dist/src/secrets/providers/aws.provider.js +88 -0
  314. package/dist/src/secrets/providers/aws.provider.js.map +1 -0
  315. package/dist/src/secrets/providers/azure.provider.d.ts +26 -0
  316. package/dist/src/secrets/providers/azure.provider.d.ts.map +1 -0
  317. package/dist/src/secrets/providers/azure.provider.js +71 -0
  318. package/dist/src/secrets/providers/azure.provider.js.map +1 -0
  319. package/dist/src/secrets/providers/env-file.provider.d.ts +29 -0
  320. package/dist/src/secrets/providers/env-file.provider.d.ts.map +1 -0
  321. package/dist/src/secrets/providers/env-file.provider.js +56 -0
  322. package/dist/src/secrets/providers/env-file.provider.js.map +1 -0
  323. package/dist/src/secrets/providers/gitlab.provider.d.ts +26 -0
  324. package/dist/src/secrets/providers/gitlab.provider.d.ts.map +1 -0
  325. package/dist/src/secrets/providers/gitlab.provider.js +67 -0
  326. package/dist/src/secrets/providers/gitlab.provider.js.map +1 -0
  327. package/dist/src/secrets/providers/index.d.ts +52 -0
  328. package/dist/src/secrets/providers/index.d.ts.map +1 -0
  329. package/dist/src/secrets/providers/index.js +81 -0
  330. package/dist/src/secrets/providers/index.js.map +1 -0
  331. package/dist/src/secrets/providers/openbao.provider.d.ts +28 -0
  332. package/dist/src/secrets/providers/openbao.provider.d.ts.map +1 -0
  333. package/dist/src/secrets/providers/openbao.provider.js +29 -0
  334. package/dist/src/secrets/providers/openbao.provider.js.map +1 -0
  335. package/dist/src/secrets/providers/vault-compatible.d.ts +140 -0
  336. package/dist/src/secrets/providers/vault-compatible.d.ts.map +1 -0
  337. package/dist/src/secrets/providers/vault-compatible.js +405 -0
  338. package/dist/src/secrets/providers/vault-compatible.js.map +1 -0
  339. package/dist/src/secrets/providers/vault.provider.d.ts +27 -0
  340. package/dist/src/secrets/providers/vault.provider.d.ts.map +1 -0
  341. package/dist/src/secrets/providers/vault.provider.js +23 -0
  342. package/dist/src/secrets/providers/vault.provider.js.map +1 -0
  343. package/dist/src/secrets/secrets-manager.d.ts +67 -0
  344. package/dist/src/secrets/secrets-manager.d.ts.map +1 -0
  345. package/dist/src/secrets/secrets-manager.js +255 -0
  346. package/dist/src/secrets/secrets-manager.js.map +1 -0
  347. package/dist/src/steps/amqp.steps.d.ts +37 -0
  348. package/dist/src/steps/amqp.steps.d.ts.map +1 -0
  349. package/dist/src/steps/amqp.steps.js +86 -0
  350. package/dist/src/steps/amqp.steps.js.map +1 -0
  351. package/dist/src/steps/appium.steps.d.ts +53 -0
  352. package/dist/src/steps/appium.steps.d.ts.map +1 -0
  353. package/dist/src/steps/appium.steps.js +109 -0
  354. package/dist/src/steps/appium.steps.js.map +1 -0
  355. package/dist/src/steps/aws.steps.d.ts +47 -0
  356. package/dist/src/steps/aws.steps.d.ts.map +1 -0
  357. package/dist/src/steps/aws.steps.js +116 -0
  358. package/dist/src/steps/aws.steps.js.map +1 -0
  359. package/dist/src/steps/browser.steps.d.ts +54 -0
  360. package/dist/src/steps/browser.steps.d.ts.map +1 -0
  361. package/dist/src/steps/browser.steps.js +102 -0
  362. package/dist/src/steps/browser.steps.js.map +1 -0
  363. package/dist/src/steps/cassandra.steps.d.ts +32 -0
  364. package/dist/src/steps/cassandra.steps.d.ts.map +1 -0
  365. package/dist/src/steps/cassandra.steps.js +81 -0
  366. package/dist/src/steps/cassandra.steps.js.map +1 -0
  367. package/dist/src/steps/clickhouse.steps.d.ts +30 -0
  368. package/dist/src/steps/clickhouse.steps.d.ts.map +1 -0
  369. package/dist/src/steps/clickhouse.steps.js +73 -0
  370. package/dist/src/steps/clickhouse.steps.js.map +1 -0
  371. package/dist/src/steps/database.steps.d.ts +43 -0
  372. package/dist/src/steps/database.steps.d.ts.map +1 -0
  373. package/dist/src/steps/database.steps.js +79 -0
  374. package/dist/src/steps/database.steps.js.map +1 -0
  375. package/dist/src/steps/dynamodb.steps.d.ts +32 -0
  376. package/dist/src/steps/dynamodb.steps.d.ts.map +1 -0
  377. package/dist/src/steps/dynamodb.steps.js +89 -0
  378. package/dist/src/steps/dynamodb.steps.js.map +1 -0
  379. package/dist/src/steps/graphql.steps.d.ts +60 -0
  380. package/dist/src/steps/graphql.steps.d.ts.map +1 -0
  381. package/dist/src/steps/graphql.steps.js +76 -0
  382. package/dist/src/steps/graphql.steps.js.map +1 -0
  383. package/dist/src/steps/grpc.steps.d.ts +29 -0
  384. package/dist/src/steps/grpc.steps.d.ts.map +1 -0
  385. package/dist/src/steps/grpc.steps.js +68 -0
  386. package/dist/src/steps/grpc.steps.js.map +1 -0
  387. package/dist/src/steps/inbox.steps.d.ts +30 -0
  388. package/dist/src/steps/inbox.steps.d.ts.map +1 -0
  389. package/dist/src/steps/inbox.steps.js +72 -0
  390. package/dist/src/steps/inbox.steps.js.map +1 -0
  391. package/dist/src/steps/index.d.ts +43 -0
  392. package/dist/src/steps/index.d.ts.map +1 -0
  393. package/dist/src/steps/index.js +26 -0
  394. package/dist/src/steps/index.js.map +1 -0
  395. package/dist/src/steps/kafka.steps.d.ts +56 -0
  396. package/dist/src/steps/kafka.steps.d.ts.map +1 -0
  397. package/dist/src/steps/kafka.steps.js +61 -0
  398. package/dist/src/steps/kafka.steps.js.map +1 -0
  399. package/dist/src/steps/mock-server.steps.d.ts +21 -0
  400. package/dist/src/steps/mock-server.steps.d.ts.map +1 -0
  401. package/dist/src/steps/mock-server.steps.js +45 -0
  402. package/dist/src/steps/mock-server.steps.js.map +1 -0
  403. package/dist/src/steps/mongodb.steps.d.ts +107 -0
  404. package/dist/src/steps/mongodb.steps.d.ts.map +1 -0
  405. package/dist/src/steps/mongodb.steps.js +117 -0
  406. package/dist/src/steps/mongodb.steps.js.map +1 -0
  407. package/dist/src/steps/openapi.steps.d.ts +49 -0
  408. package/dist/src/steps/openapi.steps.d.ts.map +1 -0
  409. package/dist/src/steps/openapi.steps.js +113 -0
  410. package/dist/src/steps/openapi.steps.js.map +1 -0
  411. package/dist/src/steps/otp.steps.d.ts +43 -0
  412. package/dist/src/steps/otp.steps.d.ts.map +1 -0
  413. package/dist/src/steps/otp.steps.js +83 -0
  414. package/dist/src/steps/otp.steps.js.map +1 -0
  415. package/dist/src/steps/realtime.steps.d.ts +40 -0
  416. package/dist/src/steps/realtime.steps.d.ts.map +1 -0
  417. package/dist/src/steps/realtime.steps.js +116 -0
  418. package/dist/src/steps/realtime.steps.js.map +1 -0
  419. package/dist/src/steps/redis.steps.d.ts +54 -0
  420. package/dist/src/steps/redis.steps.d.ts.map +1 -0
  421. package/dist/src/steps/redis.steps.js +89 -0
  422. package/dist/src/steps/redis.steps.js.map +1 -0
  423. package/dist/src/steps/search.steps.d.ts +23 -0
  424. package/dist/src/steps/search.steps.d.ts.map +1 -0
  425. package/dist/src/steps/search.steps.js +54 -0
  426. package/dist/src/steps/search.steps.js.map +1 -0
  427. package/dist/src/test-data/factory.d.ts +82 -0
  428. package/dist/src/test-data/factory.d.ts.map +1 -0
  429. package/dist/src/test-data/factory.js +116 -0
  430. package/dist/src/test-data/factory.js.map +1 -0
  431. package/dist/src/test-data/index.d.ts +4 -0
  432. package/dist/src/test-data/index.d.ts.map +1 -0
  433. package/dist/src/test-data/index.js +4 -0
  434. package/dist/src/test-data/index.js.map +1 -0
  435. package/dist/src/test-data/registry.d.ts +37 -0
  436. package/dist/src/test-data/registry.d.ts.map +1 -0
  437. package/dist/src/test-data/registry.js +51 -0
  438. package/dist/src/test-data/registry.js.map +1 -0
  439. package/dist/src/test-data/tracking.d.ts +47 -0
  440. package/dist/src/test-data/tracking.d.ts.map +1 -0
  441. package/dist/src/test-data/tracking.js +166 -0
  442. package/dist/src/test-data/tracking.js.map +1 -0
  443. package/environments.json +263 -0
  444. package/package.json +299 -5
@@ -0,0 +1,201 @@
1
+ /**
2
+ * The Propmaster reporter: test history and quarantine.
3
+ *
4
+ * // playwright.config.ts
5
+ * reporter: [['list'], ['@inluxc/propmaster/reporter']],
6
+ *
7
+ * After every run it adds a record (each test's outcome, retries and
8
+ * duration, with the commit and branch) to `.propmaster/test-history.json`.
9
+ * Carry that file between CI runs (a cache or an artifact) and
10
+ * `npx propmaster flaky` ranks the tests by flake rate.
11
+ *
12
+ * It also writes `.propmaster/last-run.json`: the failed and flaky tests of
13
+ * that run with the step that failed, the error and the trace
14
+ * (`npx propmaster failures`, and the MCP tools run_tests and last_failures).
15
+ *
16
+ * When every failure of a run is a test listed in `quarantine.json`, it turns
17
+ * the run's status into passed, so a known-flaky test doesn't block merges.
18
+ * Quarantined tests still run and show in every report.
19
+ */
20
+ import { appendFileSync } from 'node:fs';
21
+ import { dirname, isAbsolute, resolve } from 'node:path';
22
+ import { appendRun, DEFAULT_HISTORY_FILE, DEFAULT_MAX_RUNS, runContext } from './history.js';
23
+ import { DEFAULT_LAST_RUN_FILE, MAX_RUN_ERRORS, describeTest, runErrorText, writeLastRun } from './last-run.js';
24
+ import { bunRuntimeProblem, bunVersion } from '../package-manager.js';
25
+ import { describeEntry, loadQuarantine, quarantinePath, testIdOf } from './quarantine.js';
26
+ /** A test's outcome in history terms. */
27
+ export function outcomeOf(test) {
28
+ switch (test.outcome()) {
29
+ case 'expected':
30
+ return 'passed';
31
+ case 'flaky':
32
+ return 'flaky';
33
+ case 'skipped':
34
+ return 'skipped';
35
+ default:
36
+ return 'failed';
37
+ }
38
+ }
39
+ /** `file › describe › title` for a test without a TestCaseID. */
40
+ function titleKey(test, rootDir) {
41
+ const file = test.location.file.startsWith(rootDir) ? test.location.file.slice(rootDir.length + 1) : test.location.file;
42
+ return [file.split('\\').join('/'), ...test.titlePath().slice(3)].join(' › ');
43
+ }
44
+ export default class PropmasterReporter {
45
+ options;
46
+ config;
47
+ suite;
48
+ startedAt = new Date();
49
+ errors = 0;
50
+ runErrors = [];
51
+ quarantine;
52
+ quarantineError;
53
+ constructor(options = {}) {
54
+ this.options = options;
55
+ }
56
+ printsToStdio() {
57
+ return false;
58
+ }
59
+ get baseDir() {
60
+ return this.config?.configFile ? dirname(this.config.configFile) : this.config?.rootDir ?? process.cwd();
61
+ }
62
+ onBegin(config, suite) {
63
+ this.config = config;
64
+ this.suite = suite;
65
+ this.startedAt = new Date();
66
+ const bun = (this.options.bunVersion ?? bunVersion)();
67
+ const problem = bun ? bunRuntimeProblem(bun, config.version) : undefined;
68
+ if (problem)
69
+ console.log(`Propmaster: ${problem}`);
70
+ if (this.options.quarantine !== false) {
71
+ try {
72
+ this.quarantine = loadQuarantine(quarantinePath(this.baseDir, this.options.quarantine || undefined));
73
+ }
74
+ catch (error) {
75
+ // Reported at the end, and the run keeps its status: a broken file never hides failures.
76
+ this.quarantineError = error.message;
77
+ }
78
+ }
79
+ }
80
+ onError(error) {
81
+ this.errors++;
82
+ if (this.runErrors.length < MAX_RUN_ERRORS)
83
+ this.runErrors.push(runErrorText(error, this.baseDir));
84
+ }
85
+ async onEnd(result) {
86
+ if (!this.suite) {
87
+ // The run never started (a config that doesn't load): keep what went wrong.
88
+ this.writeLastRun(result, [], []);
89
+ return undefined;
90
+ }
91
+ const tests = this.suite.allTests();
92
+ const rootDir = this.config.rootDir;
93
+ const records = tests.map((test) => {
94
+ const id = testIdOf(test.title, test.tags) ?? titleKey(test, rootDir);
95
+ const outcome = outcomeOf(test);
96
+ const record = {
97
+ id,
98
+ title: test.title,
99
+ file: (test.location.file.startsWith(rootDir) ? test.location.file.slice(rootDir.length + 1) : test.location.file).split('\\').join('/'),
100
+ project: test.parent.project()?.name ?? '',
101
+ outcome,
102
+ retries: Math.max(0, test.results.length - 1),
103
+ duration: test.results.reduce((sum, r) => sum + r.duration, 0),
104
+ };
105
+ if (this.quarantine?.entries.has(id))
106
+ record.quarantined = true;
107
+ return record;
108
+ });
109
+ this.writeHistory(result, records);
110
+ this.writeLastRun(result, tests, records);
111
+ const lines = [];
112
+ if (this.quarantineError)
113
+ lines.push(`Propmaster: quarantine ignored, the file is invalid: ${this.quarantineError}`);
114
+ const failed = records.filter((r) => r.outcome === 'failed');
115
+ const quarantinedFailures = failed.filter((r) => r.quarantined);
116
+ const quarantinedPasses = records.filter((r) => r.quarantined && (r.outcome === 'passed' || r.outcome === 'flaky'));
117
+ const flaky = records.filter((r) => r.outcome === 'flaky');
118
+ let override;
119
+ if (quarantinedFailures.length) {
120
+ const names = [...new Set(quarantinedFailures.map((r) => r.id))];
121
+ lines.push(`Propmaster: ${names.length} quarantined test(s) failed: ${names.map((id) => `${id} (${describeEntry(this.quarantine.entries.get(id))})`).join('; ')}`);
122
+ const others = failed.length - quarantinedFailures.length;
123
+ if (result.status === 'failed' && others === 0 && this.errors === 0) {
124
+ override = 'passed';
125
+ lines.push('Propmaster: every failure is quarantined, so the run passes.');
126
+ }
127
+ else if (others > 0) {
128
+ lines.push(`Propmaster: ${others} other test(s) failed, so the run still fails.`);
129
+ }
130
+ }
131
+ if (quarantinedPasses.length) {
132
+ const names = [...new Set(quarantinedPasses.map((r) => r.id))];
133
+ lines.push(`Propmaster: quarantined but passed this run: ${names.join(', ')}. Once it passes reliably, remove it from ${this.quarantine.file}.`);
134
+ }
135
+ for (const line of lines)
136
+ console.log(line);
137
+ this.writeSummary(flaky, quarantinedFailures, lines);
138
+ return override ? { status: override } : undefined;
139
+ }
140
+ writeHistory(result, tests) {
141
+ const option = this.options.history ?? process.env.PW_TEST_HISTORY;
142
+ if (option === false || option === 'false' || tests.length === 0)
143
+ return;
144
+ const file = isAbsolute(option || '') ? option : resolve(this.baseDir, option || DEFAULT_HISTORY_FILE);
145
+ const { id, commit, branch } = runContext();
146
+ try {
147
+ appendRun(file, { id, startedAt: this.startedAt.toISOString(), commit, branch, status: result.status, tests }, this.options.maxRuns ?? DEFAULT_MAX_RUNS);
148
+ }
149
+ catch (error) {
150
+ console.log(`Propmaster: couldn't update the test history ${file}: ${error.message}`);
151
+ }
152
+ }
153
+ writeLastRun(result, tests, records) {
154
+ const option = this.options.lastRun ?? process.env.PW_LAST_RUN_FILE;
155
+ if (option === false || option === 'false')
156
+ return;
157
+ const file = isAbsolute(option || '') ? option : resolve(this.baseDir, option || DEFAULT_LAST_RUN_FILE);
158
+ const counts = { total: records.length, passed: 0, flaky: 0, failed: 0, skipped: 0 };
159
+ const details = [];
160
+ records.forEach((record, i) => {
161
+ counts[record.outcome]++;
162
+ if (record.outcome === 'failed' || record.outcome === 'flaky')
163
+ details.push(describeTest(tests[i], record, this.baseDir));
164
+ });
165
+ try {
166
+ writeLastRun(file, {
167
+ version: 1,
168
+ startedAt: this.startedAt.toISOString(),
169
+ finishedAt: new Date().toISOString(),
170
+ status: result.status,
171
+ counts,
172
+ errors: this.runErrors,
173
+ // Failures first, then flaky tests
174
+ tests: details.sort((a, b) => Number(a.outcome === 'flaky') - Number(b.outcome === 'flaky')),
175
+ });
176
+ }
177
+ catch (error) {
178
+ console.log(`Propmaster: couldn't write the last-run file ${file}: ${error.message}`);
179
+ }
180
+ }
181
+ writeSummary(flaky, quarantined, lines) {
182
+ const target = process.env.GITHUB_STEP_SUMMARY;
183
+ if (this.options.summary === false || !target || (flaky.length === 0 && quarantined.length === 0 && lines.length === 0))
184
+ return;
185
+ const row = (t) => `| ${t.id} | ${t.project} | ${t.outcome}${t.quarantined ? ' (quarantined)' : ''} | ${t.retries} |`;
186
+ const md = [
187
+ '### Propmaster: flaky and quarantined tests',
188
+ '',
189
+ ...lines.map((l) => `- ${l.replace(/^Propmaster: /, '')}`),
190
+ ...(flaky.length || quarantined.length ? ['', '| Test | Project | Outcome | Retries |', '|---|---|---|---|', ...[...flaky, ...quarantined].map(row)] : []),
191
+ '',
192
+ ].join('\n');
193
+ try {
194
+ appendFileSync(target, `${md}\n`);
195
+ }
196
+ catch {
197
+ // the summary is a convenience
198
+ }
199
+ }
200
+ }
201
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reporter/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,UAAU,EAAsC,MAAM,cAAc,CAAC;AACjI,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,eAAe,CAAC;AAClI,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAyB,MAAM,iBAAiB,CAAC;AAiBjH,yCAAyC;AACzC,MAAM,UAAU,SAAS,CAAC,IAA+B;IACrD,QAAQ,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACrB,KAAK,UAAU;YACX,OAAO,QAAQ,CAAC;QACpB,KAAK,OAAO;YACR,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
+ * `.propmaster/last-run.json` after every run. Unlike the test history (one
4
+ * outcome per test per run, kept for many runs), it holds one run with the
5
+ * details an agent or a person needs to fix it: the step that failed, the
6
+ * error message, the code where it failed, and the trace and screenshots.
7
+ *
8
+ * `propmaster failures` and the MCP tools `run_tests` and `last_failures`
9
+ * read it.
10
+ */
11
+ import type { TestCase, TestError, TestStep } from '@playwright/test/reporter';
12
+ import type { TestOutcome } from './history.js';
13
+ export declare const DEFAULT_LAST_RUN_FILE = ".propmaster/last-run.json";
14
+ export declare const MAX_RUN_ERRORS = 10;
15
+ export interface LastRunError {
16
+ message: string;
17
+ /** `file:line:column` where it was thrown, relative to the project. */
18
+ location?: string;
19
+ /** The code around that line, as Playwright prints it. */
20
+ snippet?: string;
21
+ }
22
+ export interface LastRunTest {
23
+ /** TestCaseID, or `file › title` for a test without one. */
24
+ id: string;
25
+ title: string;
26
+ /** `file:line` of the test, relative to the project. */
27
+ location: string;
28
+ project: string;
29
+ outcome: TestOutcome;
30
+ retries: number;
31
+ duration: number;
32
+ /** The innermost `test.step()` that failed, with the steps around it: `Step 2: Submit › Step 2.1: Fill`. */
33
+ failedStep?: string;
34
+ /** The failed attempt's errors (for a flaky test, the attempt that failed). */
35
+ errors: LastRunError[];
36
+ /** Trace, screenshots and video of that attempt, relative to the project. */
37
+ attachments?: Array<{
38
+ name: string;
39
+ path: string;
40
+ }>;
41
+ quarantined?: true;
42
+ }
43
+ export interface LastRun {
44
+ version: 1;
45
+ startedAt: string;
46
+ finishedAt: string;
47
+ /** Playwright's status before quarantine: passed, failed, timedout, interrupted. */
48
+ status: string;
49
+ counts: {
50
+ total: number;
51
+ passed: number;
52
+ flaky: number;
53
+ failed: number;
54
+ skipped: number;
55
+ };
56
+ /** Errors outside any test: a config that doesn't load, no tests found, a global setup that throws. */
57
+ errors: string[];
58
+ /** The tests that failed or were flaky; passed and skipped ones are only counted. */
59
+ tests: LastRunTest[];
60
+ }
61
+ export declare function plain(text: string): string;
62
+ /** An error as the agent needs it: the message without colours, where it happened, and the code there. */
63
+ export declare function describeError(error: TestError, rootDir: string): LastRunError;
64
+ /**
65
+ * The innermost failed `test.step()`, with its parents: `Step 2 › Step 2.1`.
66
+ * Steps of other kinds (expect, hooks, fixtures) are left out of the path.
67
+ */
68
+ export declare function failedStepOf(steps: readonly TestStep[]): string | undefined;
69
+ export declare function describeTest(test: TestCase, base: {
70
+ id: string;
71
+ project: string;
72
+ outcome: TestOutcome;
73
+ quarantined?: boolean;
74
+ }, rootDir: string): LastRunTest;
75
+ export declare function runErrorText(error: TestError, rootDir: string): string;
76
+ /** Writes through a temporary file, so a killed run can't leave half a file. */
77
+ export declare function writeLastRun(file: string, run: LastRun): void;
78
+ /** The last run, or undefined when there's none (or the file isn't one). */
79
+ export declare function readLastRun(file: string): LastRun | undefined;
80
+ /** The run as text, failures first: what `propmaster failures` prints. */
81
+ export declare function formatLastRun(run: Omit<LastRun, 'tests'> & {
82
+ tests: Array<LastRunTest & {
83
+ recent?: string;
84
+ }>;
85
+ }, options?: {
86
+ flaky?: boolean;
87
+ }): string;
88
+ //# sourceMappingURL=last-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"last-run.d.ts","sourceRoot":"","sources":["../../../src/reporter/last-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAc,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAO,MAAM,qBAAqB,8BAA8B,CAAC;AAIjE,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IACxB,4DAA4D;IAC5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B,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,EAClF,OAAO,EAAE,MAAM,GAChB,WAAW,CAmBb;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGtE;AAED,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAK7D;AAED,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAQ7D;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC,WAAW,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,EAAE,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,CAoB1J"}
@@ -0,0 +1,133 @@
1
+ /**
2
+ * The last run: what failed and why, written by the Propmaster reporter to
3
+ * `.propmaster/last-run.json` after every run. Unlike the test history (one
4
+ * outcome per test per run, kept for many runs), it holds one run with the
5
+ * details an agent or a person needs to fix it: the step that failed, the
6
+ * error message, the code where it failed, and the trace and screenshots.
7
+ *
8
+ * `propmaster failures` and the MCP tools `run_tests` and `last_failures`
9
+ * read it.
10
+ */
11
+ import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
12
+ import { dirname, isAbsolute, relative } from 'node:path';
13
+ export const DEFAULT_LAST_RUN_FILE = '.propmaster/last-run.json';
14
+ const MAX_MESSAGE = 3000;
15
+ const MAX_SNIPPET = 1500;
16
+ export const MAX_RUN_ERRORS = 10;
17
+ const ANSI = /\u001b\[[0-9;]*[A-Za-z]/g;
18
+ export function plain(text) {
19
+ return text.replace(ANSI, '');
20
+ }
21
+ function clip(text, max) {
22
+ return text.length > max ? `${text.slice(0, max)}… [${text.length - max} more characters]` : text;
23
+ }
24
+ function rel(file, rootDir) {
25
+ const r = isAbsolute(file) ? relative(rootDir, file) : file;
26
+ return (r.startsWith('..') ? file : r).split('\\').join('/');
27
+ }
28
+ /** An error as the agent needs it: the message without colours, where it happened, and the code there. */
29
+ export function describeError(error, rootDir) {
30
+ const message = clip(plain(error.message ?? error.value ?? 'Unknown error').trim(), MAX_MESSAGE);
31
+ const out = { message };
32
+ if (error.location)
33
+ out.location = `${rel(error.location.file, rootDir)}:${error.location.line}:${error.location.column}`;
34
+ if (error.snippet)
35
+ out.snippet = clip(plain(error.snippet), MAX_SNIPPET);
36
+ return out;
37
+ }
38
+ /**
39
+ * The innermost failed `test.step()`, with its parents: `Step 2 › Step 2.1`.
40
+ * Steps of other kinds (expect, hooks, fixtures) are left out of the path.
41
+ */
42
+ export function failedStepOf(steps) {
43
+ const search = (list, path) => {
44
+ for (const step of list) {
45
+ if (!step.error)
46
+ continue;
47
+ const here = step.category === 'test.step' ? [...path, step.title] : path;
48
+ const deeper = search(step.steps, here);
49
+ if (deeper)
50
+ return deeper;
51
+ if (here.length)
52
+ return here;
53
+ }
54
+ return undefined;
55
+ };
56
+ return search(steps, [])?.join(' › ');
57
+ }
58
+ /** The attempt to report: the last failed one (for a flaky test, the one before it passed). */
59
+ function failedAttempt(test) {
60
+ return [...test.results].reverse().find((r) => r.status !== 'passed' && r.status !== 'skipped') ?? test.results.at(-1);
61
+ }
62
+ export function describeTest(test, base, rootDir) {
63
+ const result = failedAttempt(test);
64
+ const attachments = (result?.attachments ?? [])
65
+ .filter((a) => a.path)
66
+ .map((a) => ({ name: a.name, path: rel(a.path, rootDir) }));
67
+ const failedStep = result ? failedStepOf(result.steps) : undefined;
68
+ return {
69
+ id: base.id,
70
+ title: test.title,
71
+ location: `${rel(test.location.file, rootDir)}:${test.location.line}`,
72
+ project: base.project,
73
+ outcome: base.outcome,
74
+ retries: Math.max(0, test.results.length - 1),
75
+ duration: test.results.reduce((sum, r) => sum + r.duration, 0),
76
+ ...(failedStep ? { failedStep } : {}),
77
+ errors: (result?.errors ?? []).map((e) => describeError(e, rootDir)),
78
+ ...(attachments.length ? { attachments } : {}),
79
+ ...(base.quarantined ? { quarantined: true } : {}),
80
+ };
81
+ }
82
+ export function runErrorText(error, rootDir) {
83
+ const e = describeError(error, rootDir);
84
+ return e.location ? `${e.message}\n at ${e.location}` : e.message;
85
+ }
86
+ /** Writes through a temporary file, so a killed run can't leave half a file. */
87
+ export function writeLastRun(file, run) {
88
+ mkdirSync(dirname(file), { recursive: true });
89
+ const tmp = `${file}.${process.pid}.tmp`;
90
+ writeFileSync(tmp, `${JSON.stringify(run, null, 2)}\n`);
91
+ renameSync(tmp, file);
92
+ }
93
+ /** The last run, or undefined when there's none (or the file isn't one). */
94
+ export function readLastRun(file) {
95
+ if (!existsSync(file))
96
+ return undefined;
97
+ try {
98
+ const data = JSON.parse(readFileSync(file, 'utf8'));
99
+ return data && data.version === 1 && Array.isArray(data.tests) ? data : undefined;
100
+ }
101
+ catch {
102
+ return undefined;
103
+ }
104
+ }
105
+ /** The run as text, failures first: what `propmaster failures` prints. */
106
+ export function formatLastRun(run, options = {}) {
107
+ const { counts } = run;
108
+ const lines = [
109
+ `Last run ${run.finishedAt.replace('T', ' ').slice(0, 19)}: ${run.status}. ${counts.passed} passed, ${counts.failed} failed, ${counts.flaky} flaky, ${counts.skipped} skipped.`,
110
+ ];
111
+ for (const error of run.errors)
112
+ lines.push('', `Error outside the tests: ${error}`);
113
+ const shown = run.tests.filter((t) => t.outcome === 'failed' || (options.flaky !== false && t.outcome === 'flaky'));
114
+ for (const t of shown) {
115
+ lines.push('', `${t.outcome === 'flaky' ? '~ flaky ' : '✗ failed'} ${t.id === t.title ? t.id : `${t.title}`} (${t.project || 'no project'}, ${t.location})${t.quarantined ? ' [quarantined]' : ''}`);
116
+ if (t.failedStep)
117
+ lines.push(` in step: ${t.failedStep}`);
118
+ if (t.recent && t.recent.length > 1)
119
+ lines.push(` history: ${t.recent} (oldest first)`);
120
+ for (const e of t.errors) {
121
+ lines.push(...e.message.split("\n").map((l) => ` ${l}`.trimEnd()));
122
+ if (e.location)
123
+ lines.push(` at ${e.location}`);
124
+ }
125
+ const trace = t.attachments?.find((a) => a.name === 'trace');
126
+ if (trace)
127
+ lines.push(` trace: npx playwright show-trace ${trace.path}`);
128
+ }
129
+ if (!shown.length && !run.errors.length)
130
+ lines.push('', 'Nothing failed.');
131
+ return lines.join('\n');
132
+ }
133
+ //# sourceMappingURL=last-run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"last-run.js","sourceRoot":"","sources":["../../../src/reporter/last-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAEjE,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AA0CjC,MAAM,IAAI,GAAG,0BAA0B,CAAC;AAExC,MAAM,UAAU,KAAK,CAAC,IAAY;IAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,IAAI,CAAC,IAAY,EAAE,GAAW;IACnC,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,G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AI,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,iBAAiB,CAAC,CAAC;QACzF,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;YACvB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YACpE,IAAI,CAAC,CAAC,QAAQ;gBAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,MAAM,KAAK,GAAG,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC;QAC7D,IAAI,KAAK;YAAE,KAAK,CAAC,IAAI,CAAC,sCAAsC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM;QAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC3E,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Quarantine: a list of TestCaseIDs whose failures don't fail the build.
3
+ *
4
+ * `quarantine.json` at the project root (or PW_QUARANTINE_FILE):
5
+ *
6
+ * {
7
+ * "maxAgeDays": 30,
8
+ * "tests": [
9
+ * { "id": "TC-API-007", "owner": "payments-team", "issue": "https://github.com/acme/shop/issues/42",
10
+ * "since": "2026-11-20", "reason": "times out when the mock is slow" }
11
+ * ]
12
+ * }
13
+ *
14
+ * Quarantined tests still run and are reported (with a `quarantined`
15
+ * annotation). The Propmaster reporter turns a failed run into a passed one
16
+ * when every failure is quarantined. `propmaster check` warns about entries
17
+ * older than `maxAgeDays` and IDs no test has.
18
+ */
19
+ export declare const DEFAULT_QUARANTINE_FILE = "quarantine.json";
20
+ export declare const DEFAULT_QUARANTINE_MAX_AGE_DAYS = 30;
21
+ export interface QuarantineEntry {
22
+ /** The TestCaseID, e.g. `TC-API-007`. */
23
+ id: string;
24
+ /** Who is fixing it: a person or team. */
25
+ owner: string;
26
+ /** Where the fix is tracked: an issue URL or key. */
27
+ issue: string;
28
+ /** When it was quarantined, `YYYY-MM-DD`. */
29
+ since: string;
30
+ reason?: string;
31
+ }
32
+ export interface QuarantineFile {
33
+ /** Days after which `propmaster check` warns about an entry (default 30). */
34
+ maxAgeDays?: number;
35
+ tests: QuarantineEntry[];
36
+ }
37
+ export interface LoadedQuarantine {
38
+ file: string;
39
+ maxAgeDays: number;
40
+ entries: Map<string, QuarantineEntry>;
41
+ }
42
+ /** The TestCaseID of a test: from its `@TC-…` tag, else the `[TC-…]` at the start of its title. */
43
+ export declare function testIdOf(title: string, tags?: readonly string[]): string | undefined;
44
+ /** The quarantine file to use: an explicit path, else PW_QUARANTINE_FILE, else `quarantine.json` in `root`. */
45
+ export declare function quarantinePath(root: string, file?: string, env?: NodeJS.ProcessEnv): string;
46
+ /** Problems with the file's content, one per line; empty when it is valid. */
47
+ export declare function validateQuarantine(data: unknown): string[];
48
+ /** Reads and validates a quarantine file. A missing file is an empty quarantine; an invalid one throws. */
49
+ export declare function loadQuarantine(file: string): LoadedQuarantine;
50
+ /** Whole days from `since` (YYYY-MM-DD) to `now`. */
51
+ export declare function ageInDays(since: string, now?: Date): number;
52
+ /** Warnings for `propmaster check`: entries past their age, and IDs no test has. */
53
+ export declare function quarantineWarnings(quarantine: LoadedQuarantine, knownIds: ReadonlySet<string>, now?: Date): string[];
54
+ /** The text of the `quarantined` annotation. */
55
+ export declare function describeEntry(entry: QuarantineEntry): string;
56
+ /**
57
+ * The quarantine entry of a test, for the annotation the test fixture adds.
58
+ * Read once per worker (again when the file changes); an invalid file counts
59
+ * as no quarantine here, and the reporter says it's invalid.
60
+ */
61
+ export declare function quarantineEntryFor(root: string, title: string, tags: readonly string[]): QuarantineEntry | undefined;
62
+ //# sourceMappingURL=quarantine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quarantine.d.ts","sourceRoot":"","sources":["../../../src/reporter/quarantine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AACzD,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD,MAAM,WAAW,eAAe;IAC5B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC3B,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CACzC;AAKD,mGAAmG;AACnG,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,GAAG,SAAS,CAOxF;AAED,+GAA+G;AAC/G,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAExG;AAED,8EAA8E;A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