@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,148 @@
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
+ import { existsSync, readFileSync, statSync } from 'node:fs';
20
+ import { resolve } from 'node:path';
21
+ export const DEFAULT_QUARANTINE_FILE = 'quarantine.json';
22
+ export const DEFAULT_QUARANTINE_MAX_AGE_DAYS = 30;
23
+ const TEST_ID = /TC-[A-Z][A-Z0-9]{1,5}-\d{3,}/;
24
+ const DATE = /^\d{4}-\d{2}-\d{2}$/;
25
+ /** The TestCaseID of a test: from its `@TC-…` tag, else the `[TC-…]` at the start of its title. */
26
+ export function testIdOf(title, tags = []) {
27
+ for (const tag of tags) {
28
+ const m = /^@?(TC-[A-Z][A-Z0-9]{1,5}-\d{3,})$/.exec(tag);
29
+ if (m)
30
+ return m[1];
31
+ }
32
+ const m = /^\[(TC-[A-Z][A-Z0-9]{1,5}-\d{3,})\]/.exec(title.trim());
33
+ return m?.[1];
34
+ }
35
+ /** The quarantine file to use: an explicit path, else PW_QUARANTINE_FILE, else `quarantine.json` in `root`. */
36
+ export function quarantinePath(root, file, env = process.env) {
37
+ return resolve(root, file ?? env.PW_QUARANTINE_FILE ?? DEFAULT_QUARANTINE_FILE);
38
+ }
39
+ /** Problems with the file's content, one per line; empty when it is valid. */
40
+ export function validateQuarantine(data) {
41
+ const problems = [];
42
+ if (!data || typeof data !== 'object' || Array.isArray(data))
43
+ return ['the file must be a JSON object with a "tests" array'];
44
+ const { tests, maxAgeDays } = data;
45
+ if (maxAgeDays !== undefined && (typeof maxAgeDays !== 'number' || !(maxAgeDays > 0)))
46
+ problems.push('"maxAgeDays" must be a number above 0');
47
+ if (!Array.isArray(tests))
48
+ return [...problems, '"tests" must be an array'];
49
+ const seen = new Set();
50
+ tests.forEach((entry, i) => {
51
+ const where = `tests[${i}]${typeof entry?.id === 'string' ? ` (${entry.id})` : ''}`;
52
+ if (!entry || typeof entry !== 'object') {
53
+ problems.push(`${where}: must be an object`);
54
+ return;
55
+ }
56
+ if (typeof entry.id !== 'string' || !TEST_ID.test(entry.id) || entry.id !== TEST_ID.exec(entry.id)?.[0]) {
57
+ problems.push(`${where}: "id" must be a TestCaseID such as TC-API-007`);
58
+ }
59
+ else if (seen.has(entry.id)) {
60
+ problems.push(`${where}: listed twice`);
61
+ }
62
+ else {
63
+ seen.add(entry.id);
64
+ }
65
+ for (const field of ['owner', 'issue']) {
66
+ if (typeof entry[field] !== 'string' || !entry[field].trim())
67
+ problems.push(`${where}: "${field}" is required (who fixes it, and where that's tracked)`);
68
+ }
69
+ if (typeof entry.since !== 'string' || !DATE.test(entry.since) || Number.isNaN(Date.parse(`${entry.since}T00:00:00Z`))) {
70
+ problems.push(`${where}: "since" must be a date, YYYY-MM-DD`);
71
+ }
72
+ });
73
+ return problems;
74
+ }
75
+ /** Reads and validates a quarantine file. A missing file is an empty quarantine; an invalid one throws. */
76
+ export function loadQuarantine(file) {
77
+ const entries = new Map();
78
+ if (!existsSync(file))
79
+ return { file, maxAgeDays: DEFAULT_QUARANTINE_MAX_AGE_DAYS, entries };
80
+ let data;
81
+ try {
82
+ data = JSON.parse(readFileSync(file, 'utf8'));
83
+ }
84
+ catch (error) {
85
+ throw new Error(`${file} isn't valid JSON: ${error.message}`);
86
+ }
87
+ const problems = validateQuarantine(data);
88
+ if (problems.length)
89
+ throw new Error(`${file}:\n ${problems.join('\n ')}`);
90
+ const parsed = data;
91
+ for (const entry of parsed.tests)
92
+ entries.set(entry.id, entry);
93
+ return { file, maxAgeDays: parsed.maxAgeDays ?? DEFAULT_QUARANTINE_MAX_AGE_DAYS, entries };
94
+ }
95
+ /** Whole days from `since` (YYYY-MM-DD) to `now`. */
96
+ export function ageInDays(since, now = new Date()) {
97
+ return Math.floor((now.getTime() - Date.parse(`${since}T00:00:00Z`)) / 86_400_000);
98
+ }
99
+ /** Warnings for `propmaster check`: entries past their age, and IDs no test has. */
100
+ export function quarantineWarnings(quarantine, knownIds, now = new Date()) {
101
+ const warnings = [];
102
+ for (const entry of quarantine.entries.values()) {
103
+ const age = ageInDays(entry.since, now);
104
+ if (age > quarantine.maxAgeDays) {
105
+ warnings.push(`${entry.id} has been quarantined for ${age} days (more than ${quarantine.maxAgeDays}): fix it or remove the test. Owner: ${entry.owner}, ${entry.issue}`);
106
+ }
107
+ if (!knownIds.has(entry.id))
108
+ warnings.push(`${entry.id} is quarantined, but no test has that ID: remove the entry`);
109
+ }
110
+ return warnings;
111
+ }
112
+ /** The text of the `quarantined` annotation. */
113
+ export function describeEntry(entry) {
114
+ return `owner ${entry.owner}, ${entry.issue}, since ${entry.since}${entry.reason ? `: ${entry.reason}` : ''}`;
115
+ }
116
+ const cache = new Map();
117
+ /**
118
+ * The quarantine entry of a test, for the annotation the test fixture adds.
119
+ * Read once per worker (again when the file changes); an invalid file counts
120
+ * as no quarantine here, and the reporter says it's invalid.
121
+ */
122
+ export function quarantineEntryFor(root, title, tags) {
123
+ const id = testIdOf(title, tags);
124
+ if (!id)
125
+ return undefined;
126
+ const file = quarantinePath(root);
127
+ let mtimeMs = -1;
128
+ try {
129
+ mtimeMs = statSync(file).mtimeMs;
130
+ }
131
+ catch {
132
+ return undefined;
133
+ }
134
+ let cached = cache.get(file);
135
+ if (!cached || cached.mtimeMs !== mtimeMs) {
136
+ let quarantine;
137
+ try {
138
+ quarantine = loadQuarantine(file);
139
+ }
140
+ catch {
141
+ quarantine = undefined;
142
+ }
143
+ cached = { mtimeMs, quarantine };
144
+ cache.set(file, cached);
145
+ }
146
+ return cached.quarantine?.entries.get(id);
147
+ }
148
+ //# sourceMappingURL=quarantine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quarantine.js","sourceRoot":"","sources":["../../../src/reporter/quarantine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;AACzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AA0BlD,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC;AAEnC,mGAAmG;AACnG,MAAM,UAAU,QAAQ,CAAC,KAAa,EAAE,IAAI,GAAsB,EAAE;IAChE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,CAAC,GAAG,oCAAoC,CAAC,IAAI,CAAC,GAAG,CAAC,C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G,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE;QAAE,OAAO,SAAS,CAAC;IAC1B,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC;IACjB,IAAI,CAAC;QACD,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,OAAO,KAAK,OAAO,EAAE,CAAC;QACxC,IAAI,UAAwC,CAAC;QAC7C,IAAI,CAAC;YACD,UAAU,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC;QAAC,MAAM,CAAC;YACL,UAAU,GAAG,SAAS,CAAC;QAC3B,CAAC;QACD,MAAM,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;QACjC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type { SecretsProvider } from './provider.interface.js';
2
+ export { SecretsManager } from './secrets-manager.js';
3
+ export * from './providers/index.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/secrets/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { SecretsManager } from './secrets-manager.js';
2
+ export * from './providers/index.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/secrets/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Extensible interface for secrets provider backends.
3
+ *
4
+ * Implementors must provide methods to fetch individual secrets
5
+ * and batch-fetch multiple secrets from their backend service.
6
+ *
7
+ * Built-in providers: AWS Secrets Manager, GitLab CI/CD Variables,
8
+ * HashiCorp Vault, OpenBao, Azure Key Vault, and local env-file fallback.
9
+ */
10
+ export interface SecretsProvider {
11
+ /** Unique name identifying this provider backend (e.g., 'aws', 'vault', 'gitlab'). */
12
+ readonly name: string;
13
+ /**
14
+ * Fetch a single secret value by key.
15
+ *
16
+ * @param key - The secret key to retrieve
17
+ * @returns The secret value as a string
18
+ * @throws If the secret cannot be fetched from the backend
19
+ */
20
+ getSecret(key: string): Promise<string>;
21
+ /**
22
+ * Fetch multiple secret values by keys.
23
+ *
24
+ * @param keys - Array of secret keys to retrieve
25
+ * @returns A map of key → secret value pairs
26
+ * @throws If any secret cannot be fetched from the backend
27
+ */
28
+ getSecrets(keys: string[]): Promise<Map<string, string>>;
29
+ }
30
+ //# sourceMappingURL=provider.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.interface.d.ts","sourceRoot":"","sources":["../../../src/secrets/provider.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC5B,sFAAsF;IACtF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAExC;;;;;;OAMG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC5D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=provider.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.interface.js","sourceRoot":"","sources":["../../../src/secrets/provider.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * AWS Secrets Manager provider.
3
+ *
4
+ * Retrieves secrets from AWS Secrets Manager using the AWS SDK.
5
+ * Note: Requires `@aws-sdk/client-secrets-manager` to be installed for production use.
6
+ * This implementation uses a stub that throws if the SDK is not available.
7
+ */
8
+ import type { SecretsProvider } from '../provider.interface.js';
9
+ export interface AwsProviderOptions {
10
+ /** AWS region (e.g., 'us-east-1') */
11
+ region: string;
12
+ /** Optional prefix prepended to secret keys when fetching from AWS */
13
+ secretPrefix?: string;
14
+ }
15
+ export declare class AwsSecretsProvider implements SecretsProvider {
16
+ readonly name = "aws";
17
+ private readonly region;
18
+ private readonly secretPrefix;
19
+ private client;
20
+ constructor(options: AwsProviderOptions);
21
+ getSecret(key: string): Promise<string>;
22
+ getSecrets(keys: string[]): Promise<Map<string, string>>;
23
+ /**
24
+ * Lazily initializes the AWS Secrets Manager client.
25
+ * Throws SecretsError if the AWS SDK is not installed.
26
+ */
27
+ private getClient;
28
+ /**
29
+ * Creates a GetSecretValueCommand for the given secret ID.
30
+ */
31
+ private createGetSecretValueCommand;
32
+ }
33
+ //# sourceMappingURL=aws.provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws.provider.d.ts","sourceRoot":"","sources":["../../../../src/secrets/providers/aws.provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE,MAAM,WAAW,kBAAkB;IAC/B,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,kBAAmB,YAAW,eAAe;IACtD,QAAQ,CAAC,IAAI,SAAS;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,MAAM,CAAwB;IAEtC,YAAY,OAAO,EAAE,kBAAkB,EAGtC;IAEK,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA2B5C;IAEK,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAY7D;IAED;;;OAGG;YACW,SAAS;IAuBvB;;OAEG;YACW,2BAA2B;CAa5C"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * AWS Secrets Manager provider.
3
+ *
4
+ * Retrieves secrets from AWS Secrets Manager using the AWS SDK.
5
+ * Note: Requires `@aws-sdk/client-secrets-manager` to be installed for production use.
6
+ * This implementation uses a stub that throws if the SDK is not available.
7
+ */
8
+ import { SecretsError } from '../../errors.js';
9
+ export class AwsSecretsProvider {
10
+ name = 'aws';
11
+ region;
12
+ secretPrefix;
13
+ client = null;
14
+ constructor(options) {
15
+ this.region = options.region;
16
+ this.secretPrefix = options.secretPrefix ?? '';
17
+ }
18
+ async getSecret(key) {
19
+ const client = await this.getClient();
20
+ const secretId = `${this.secretPrefix}${key}`;
21
+ try {
22
+ const command = await this.createGetSecretValueCommand(secretId);
23
+ const response = await client.send(command);
24
+ if (!response.SecretString) {
25
+ throw new SecretsError(this.name, 'fetch', key, {
26
+ reason: 'Secret value is empty or binary (only string secrets are supported)',
27
+ });
28
+ }
29
+ return response.SecretString;
30
+ }
31
+ catch (error) {
32
+ if (error instanceof SecretsError) {
33
+ throw error;
34
+ }
35
+ throw new SecretsError(this.name, 'fetch', key, { reason: error.message, region: this.region }, error);
36
+ }
37
+ }
38
+ async getSecrets(keys) {
39
+ const results = new Map();
40
+ // AWS Secrets Manager doesn't have a native batch-get for arbitrary secret names,
41
+ // so we fetch each secret individually.
42
+ const fetchPromises = keys.map(async (key) => {
43
+ const value = await this.getSecret(key);
44
+ results.set(key, value);
45
+ });
46
+ await Promise.all(fetchPromises);
47
+ return results;
48
+ }
49
+ /**
50
+ * Lazily initializes the AWS Secrets Manager client.
51
+ * Throws SecretsError if the AWS SDK is not installed.
52
+ */
53
+ async getClient() {
54
+ if (this.client) {
55
+ return this.client;
56
+ }
57
+ try {
58
+ // Dynamic import to avoid hard dependency on AWS SDK.
59
+ // The module name is constructed to prevent TypeScript from resolving it at compile time.
60
+ const moduleName = '@aws-sdk/client-secrets-manager';
61
+ const sdk = await Function('m', 'return import(m)')(moduleName);
62
+ this.client = new sdk.SecretsManagerClient({ region: this.region });
63
+ return this.client;
64
+ }
65
+ catch {
66
+ throw new SecretsError(this.name, 'fetch', undefined, {
67
+ reason: 'AWS SDK not available. Install @aws-sdk/client-secrets-manager to use the AWS provider.',
68
+ region: this.region,
69
+ });
70
+ }
71
+ }
72
+ /**
73
+ * Creates a GetSecretValueCommand for the given secret ID.
74
+ */
75
+ async createGetSecretValueCommand(secretId) {
76
+ try {
77
+ const moduleName = '@aws-sdk/client-secrets-manager';
78
+ const sdk = await Function('m', 'return import(m)')(moduleName);
79
+ return new sdk.GetSecretValueCommand({ SecretId: secretId });
80
+ }
81
+ catch {
82
+ throw new SecretsError(this.name, 'fetch', secretId, {
83
+ reason: 'Failed to create AWS SDK command. Ensure @aws-sdk/client-secrets-manager is installed.',
84
+ });
85
+ }
86
+ }
87
+ }
88
+ //# sourceMappingURL=aws.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws.provider.js","sourceRoot":"","sources":["../../../../src/secrets/providers/aws.provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAS/C,MAAM,OAAO,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AI,GAAG,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;QACjE,CAAC;QAAC,MAAM,CAAC;YACL,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE;gBACjD,MAAM,EAAE,wFAAwF;aACnG,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Azure Key Vault provider.
3
+ *
4
+ * Retrieves secrets from Azure Key Vault using the Azure SDK.
5
+ * Note: Requires `@azure/keyvault-secrets` and `@azure/identity` to be installed for production use.
6
+ * This implementation uses a stub that throws if the SDK is not available.
7
+ */
8
+ import type { SecretsProvider } from '../provider.interface.js';
9
+ export interface AzureProviderOptions {
10
+ /** Azure Key Vault URL (e.g., 'https://my-vault.vault.azure.net') */
11
+ vaultUrl: string;
12
+ }
13
+ export declare class AzureSecretsProvider implements SecretsProvider {
14
+ readonly name = "azure";
15
+ private readonly vaultUrl;
16
+ private client;
17
+ constructor(options: AzureProviderOptions);
18
+ getSecret(key: string): Promise<string>;
19
+ getSecrets(keys: string[]): Promise<Map<string, string>>;
20
+ /**
21
+ * Lazily initializes the Azure Key Vault SecretClient.
22
+ * Throws SecretsError if the Azure SDK packages are not installed.
23
+ */
24
+ private getClient;
25
+ }
26
+ //# sourceMappingURL=azure.provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azure.provider.d.ts","sourceRoot":"","sources":["../../../../src/secrets/providers/azure.provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE,MAAM,WAAW,oBAAoB;IACjC,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,oBAAqB,YAAW,eAAe;IACxD,QAAQ,CAAC,IAAI,WAAW;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,MAAM,CAAwB;IAEtC,YAAY,OAAO,EAAE,oBAAoB,EAExC;IAEK,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA0B5C;IAEK,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAU7D;IAED;;;OAGG;YACW,SAAS;CA6B1B"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Azure Key Vault provider.
3
+ *
4
+ * Retrieves secrets from Azure Key Vault using the Azure SDK.
5
+ * Note: Requires `@azure/keyvault-secrets` and `@azure/identity` to be installed for production use.
6
+ * This implementation uses a stub that throws if the SDK is not available.
7
+ */
8
+ import { SecretsError } from '../../errors.js';
9
+ export class AzureSecretsProvider {
10
+ name = 'azure';
11
+ vaultUrl;
12
+ client = null;
13
+ constructor(options) {
14
+ this.vaultUrl = options.vaultUrl.replace(/\/$/, ''); // Remove trailing slash
15
+ }
16
+ async getSecret(key) {
17
+ const client = await this.getClient();
18
+ try {
19
+ const secret = await client.getSecret(key);
20
+ if (!secret.value) {
21
+ throw new SecretsError(this.name, 'fetch', key, {
22
+ reason: 'Secret value is empty or not set',
23
+ vaultUrl: this.vaultUrl,
24
+ });
25
+ }
26
+ return secret.value;
27
+ }
28
+ catch (error) {
29
+ if (error instanceof SecretsError) {
30
+ throw error;
31
+ }
32
+ throw new SecretsError(this.name, 'fetch', key, { reason: error.message, vaultUrl: this.vaultUrl }, error);
33
+ }
34
+ }
35
+ async getSecrets(keys) {
36
+ const results = new Map();
37
+ const fetchPromises = keys.map(async (key) => {
38
+ const value = await this.getSecret(key);
39
+ results.set(key, value);
40
+ });
41
+ await Promise.all(fetchPromises);
42
+ return results;
43
+ }
44
+ /**
45
+ * Lazily initializes the Azure Key Vault SecretClient.
46
+ * Throws SecretsError if the Azure SDK packages are not installed.
47
+ */
48
+ async getClient() {
49
+ if (this.client) {
50
+ return this.client;
51
+ }
52
+ try {
53
+ // Dynamic imports to avoid hard dependency on Azure SDK.
54
+ // Module names are constructed to prevent TypeScript from resolving them at compile time.
55
+ const kvModuleName = '@azure/keyvault-secrets';
56
+ const identityModuleName = '@azure/identity';
57
+ const kvSdk = await Function('m', 'return import(m)')(kvModuleName);
58
+ const identitySdk = await Function('m', 'return import(m)')(identityModuleName);
59
+ const credential = new identitySdk.DefaultAzureCredential();
60
+ this.client = new kvSdk.SecretClient(this.vaultUrl, credential);
61
+ return this.client;
62
+ }
63
+ catch {
64
+ throw new SecretsError(this.name, 'fetch', undefined, {
65
+ reason: 'Azure SDK not available. Install @azure/keyvault-secrets and @azure/identity to use the Azure provider.',
66
+ vaultUrl: this.vaultUrl,
67
+ });
68
+ }
69
+ }
70
+ }
71
+ //# sourceMappingURL=azure.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azure.provider.js","sourceRoot":"","sources":["../../../../src/secrets/providers/azure.provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAO/C,MAAM,OAAO,oBAAoB;IACpB,IAAI,GAAG,OAAO,CAAC;IACP,QAAQ,CAAS;IAC1B,MAAM,GAAmB,IAAI,CAAC;IAEtC,YAAY,OAA6B;QACrC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,wBAAwB;IACjF,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAW;QACvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QAEtC,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,MAAO,MAAuE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YAE7G,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;gBAChB,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,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C,YAAY,CAEhE,CAAC;YACJ,MAAM,WAAW,GAAG,MAAO,QAAQ,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC,kBAAkB,CAE5E,CAAC;YAEJ,MAAM,UAAU,GAAG,IAAI,WAAW,CAAC,sBAAsB,EAAE,CAAC;YAC5D,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;QAAC,MAAM,CAAC;YACL,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE;gBAClD,MAAM,EACF,yGAAyG;gBAC7G,QAAQ,EAAE,IAAI,CAAC,QAAQ;aAC1B,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Local .env file fallback provider.
3
+ *
4
+ * Reads secrets from the local `.env.{environment}` file using the existing EnvLoader.
5
+ * Intended as a fallback for local development where external secrets services
6
+ * are not available.
7
+ */
8
+ import type { SecretsProvider } from '../provider.interface.js';
9
+ export interface EnvFileProviderOptions {
10
+ /** Project root directory where .env files are located. Defaults to process.cwd(). */
11
+ projectRoot?: string;
12
+ /** Environment name to load (e.g., 'local', 'dev'). Defaults to 'local'. */
13
+ environment?: string;
14
+ }
15
+ export declare class EnvFileSecretsProvider implements SecretsProvider {
16
+ readonly name = "env-file";
17
+ private readonly envLoader;
18
+ private readonly environment;
19
+ private envValues;
20
+ constructor(options?: EnvFileProviderOptions);
21
+ getSecret(key: string): Promise<string>;
22
+ getSecrets(keys: string[]): Promise<Map<string, string>>;
23
+ /**
24
+ * Lazily loads and caches the env file values.
25
+ * The file is only read once; subsequent calls return the cached result.
26
+ */
27
+ private loadEnvValues;
28
+ }
29
+ //# sourceMappingURL=env-file.provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-file.provider.d.ts","sourceRoot":"","sources":["../../../../src/secrets/providers/env-file.provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAIhE,MAAM,WAAW,sBAAsB;IACnC,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,sBAAuB,YAAW,eAAe;IAC1D,QAAQ,CAAC,IAAI,cAAc;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,SAAS,CAAuC;IAExD,YAAY,OAAO,GAAE,sBAA2B,EAG/C;IAEK,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAY5C;IAEK,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAgB7D;IAED;;;OAGG;IACH,OAAO,CAAC,aAAa;CAMxB"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Local .env file fallback provider.
3
+ *
4
+ * Reads secrets from the local `.env.{environment}` file using the existing EnvLoader.
5
+ * Intended as a fallback for local development where external secrets services
6
+ * are not available.
7
+ */
8
+ import { SecretsError } from '../../errors.js';
9
+ import { EnvLoader } from '../../config/env-loader.js';
10
+ export class EnvFileSecretsProvider {
11
+ name = 'env-file';
12
+ envLoader;
13
+ environment;
14
+ envValues = null;
15
+ constructor(options = {}) {
16
+ this.envLoader = new EnvLoader(options.projectRoot);
17
+ this.environment = options.environment ?? 'local';
18
+ }
19
+ async getSecret(key) {
20
+ const values = this.loadEnvValues();
21
+ const value = values[key];
22
+ if (value === undefined) {
23
+ throw new SecretsError(this.name, 'fetch', key, {
24
+ reason: `Key "${key}" not found in .env.${this.environment}`,
25
+ environment: this.environment,
26
+ });
27
+ }
28
+ return value;
29
+ }
30
+ async getSecrets(keys) {
31
+ const values = this.loadEnvValues();
32
+ const results = new Map();
33
+ for (const key of keys) {
34
+ const value = values[key];
35
+ if (value === undefined) {
36
+ throw new SecretsError(this.name, 'fetch', key, {
37
+ reason: `Key "${key}" not found in .env.${this.environment}`,
38
+ environment: this.environment,
39
+ });
40
+ }
41
+ results.set(key, value);
42
+ }
43
+ return results;
44
+ }
45
+ /**
46
+ * Lazily loads and caches the env file values.
47
+ * The file is only read once; subsequent calls return the cached result.
48
+ */
49
+ loadEnvValues() {
50
+ if (this.envValues === null) {
51
+ this.envValues = this.envLoader.load(this.environment);
52
+ }
53
+ return this.envValues;
54
+ }
55
+ }
56
+ //# sourceMappingURL=env-file.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-file.provider.js","sourceRoot":"","sources":["../../../../src/secrets/providers/env-file.provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AASvD,MAAM,OAAO,sBAAsB;IACtB,IAAI,GAAG,UAAU,CAAC;IACV,SAAS,CAAY;IACrB,WAAW,CAAS;IAC7B,SAAS,GAAkC,IAAI,CAAC;IAExD,YAAY,OAAO,GAA2B,EAAE;QAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAW;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACpC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAE1B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE;gBAC5C,MAAM,EAAE,QAAQ,GAAG,uBAAuB,IAAI,CAAC,WAAW,EAAE;gBAC5D,WAAW,EAAE,IAAI,CAAC,WAAW;aAChC,CAAC,CAAC;QACP,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAc;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;QAE1C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACrB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YAC1B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACtB,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE;oBAC5C,MAAM,EAAE,QAAQ,GAAG,uBAAuB,IAAI,CAAC,WAAW,EAAE;oBAC5D,WAAW,EAAE,IAAI,CAAC,WAAW;iBAChC,CAAC,CAAC;YACP,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC5B,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;OAGG;IACK,aAAa;QACjB,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;YAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;CACJ"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * GitLab CI/CD Variables provider.
3
+ *
4
+ * Retrieves secrets from GitLab CI/CD Variables via the GitLab API.
5
+ * Uses the native `fetch` API for HTTP requests (available in Node.js 18+).
6
+ */
7
+ import type { SecretsProvider } from '../provider.interface.js';
8
+ export interface GitLabProviderOptions {
9
+ /** GitLab project ID (numeric or URL-encoded path) */
10
+ projectId: string;
11
+ /** GitLab API base URL (e.g., 'https://gitlab.com/api/v4') */
12
+ apiUrl: string;
13
+ /** Private token for authentication. Falls back to CI_JOB_TOKEN env var if not provided. */
14
+ token?: string;
15
+ }
16
+ export declare class GitLabSecretsProvider implements SecretsProvider {
17
+ readonly name = "gitlab";
18
+ private readonly projectId;
19
+ private readonly apiUrl;
20
+ private readonly token;
21
+ constructor(options: GitLabProviderOptions);
22
+ getSecret(key: string): Promise<string>;
23
+ getSecrets(keys: string[]): Promise<Map<string, string>>;
24
+ private buildHeaders;
25
+ }
26
+ //# sourceMappingURL=gitlab.provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitlab.provider.d.ts","sourceRoot":"","sources":["../../../../src/secrets/providers/gitlab.provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE,MAAM,WAAW,qBAAqB;IAClC,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAWD,qBAAa,qBAAsB,YAAW,eAAe;IACzD,QAAQ,CAAC,IAAI,YAAY;IACzB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAE/B,YAAY,OAAO,EAAE,qBAAqB,EAIzC;IAEK,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5C;IAEK,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAW7D;IAED,OAAO,CAAC,YAAY;CAWvB"}