@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,43 @@
1
+ /**
2
+ * Main entry point for the Playwright Framework Template.
3
+ *
4
+ * Re-exports the extended test object, fixture client types, configuration types,
5
+ * error classes, and secrets interfaces for consumer use.
6
+ *
7
+ * Usage:
8
+ * import { test, expect } from './src';
9
+ * import type { OpenApiClient, FrameworkConfig } from './src';
10
+ *
11
+ * @requirements 1.1, 1.2
12
+ */
13
+ export { test, expect } from './fixtures/index.js';
14
+ export type { OpenApiClient, AxiosResponseLike, ContractCallOption, DatabaseClient, KafkaClient, AmqpClient, AmqpListener, AmqpMessage, AmqpBody, AmqpPublishOptions, AmqpConsumeOptions, AmqpWaitOptions, AmqpListenOptions, AmqpQueueInfo, S3Client, S3Object, S3ObjectInfo, S3ObjectSummary, S3PutOptions, S3WaitOptions, S3BucketOption, SqsClient, SqsMessage, SqsSendOptions, SqsReceiveOptions, SqsQueueInfo, SqsCreateQueueOptions, SnsListener, SnsMessage, SnsPublishOptions, SnsListenOptions, SnsWaitOptions, AwsMessageAttributes, AwsBody, DynamoDbClient, DynamoItem, DynamoKey, DynamoComparison, DynamoConditions, DynamoExpression, DynamoPutOptions, DynamoUpdateOptions, DynamoDeleteOptions, DynamoGetOptions, DynamoQueryOptions, DynamoScanOptions, DynamoWaitOptions, DynamoWaitForItemOptions, DynamoWaitForQueryOptions, DynamoTableDefinition, DynamoKeyDefinition, DynamoKeyType, DynamoTableKey, CassandraClient, CassandraRow, CqlParams, CqlOptions, CassandraInsertOptions, CassandraWaitOptions, CassandraWaitForRowOptions, CassandraKeyspaceOptions, CassandraPrimaryKey, ClickHouseClient, ClickHouseRow, ClickHouseParams, ClickHouseQueryOptions, ClickHouseInsertOptions, ClickHouseWaitOptions, ClickHouseWaitForRowOptions, ClickHouseColumn, SearchClient, SearchQuery, SearchOptions, SearchResult, SearchHit, SearchWaitOptions, IndexOptions, IndexManyOptions, IndexResult, CreateIndexOptions, SearchEngineInfo, SearchRequestOptions, GrpcClient, GrpcCallOptions, GrpcServerStreamOptions, GrpcResult, GrpcMethodInfo, GrpcMetadataInput, GrpcStatusName, RealtimeClient, WebSocketConnection, WebSocketMessage, SseConnection, SseEvent, MessageMatcher, RealtimeWaitOptions, SseWaitOptions, WebSocketConnectOptions, SseSubscribeOptions, CloseInfo, RedisClient, MongoDbClient, Neo4jClient, Neo4jTransaction, Neo4jWriteResult, InsertOptions, CypherParams, OtpClient, InboxClient, InboxMessage, InboxProvider, MockServer, RequestMatch, StubResponse, RecordedRequest, GraphQLClient, AppiumDriver, GadsHubClient, GadsDeviceInfo, GadsDeviceCriteria, GadsGridStatus, GadsSessionInfo, FixtureTypes, ConfigOptions, WorkerFixtureTypes, } from './fixtures/index.js';
15
+ export type { FrameworkConfig, ContainerOptions, ContainerSetting, OpenApiFixtureConfig, DatabaseFixtureConfig, MongoDbFixtureConfig, Neo4jFixtureConfig, KafkaFixtureConfig, AmqpFixtureConfig, AwsFixtureConfig, SearchFixtureConfig, GrpcFixtureConfig, GrpcTlsConfig, RealtimeFixtureConfig, RedisFixtureConfig, OtpFixtureConfig, InboxFixtureConfig, AuthConfig, AuthRoleConfig, MockServerConfig, GraphQLFixtureConfig, AppiumFixtureConfig, GadsPresetConfig, SecretsConfig, EnvironmentsFile, } from './config/index.js';
16
+ export { ConfigLoader } from './config/index.js';
17
+ export { MailpitProvider } from './fixtures/inbox.fixture.js';
18
+ export { WireMockAdmin } from './fixtures/mock-server.fixture.js';
19
+ export { TokenManager, resolveRole, type ResolvedRole, type TokenSet } from './auth/token-manager.js';
20
+ export { authStateFile } from './auth/state-file.js';
21
+ export { setupAuth, saveAuthState, authCredentials, hasFreshAuthState, type SetupAuthOptions } from './auth/setup.js';
22
+ export { ContainerManager, DEFAULT_IMAGES } from './containers/container-manager.js';
23
+ export { TestData, defineFactory, CleanupRegistry, type Factory, type FactoryContext, type Overrides, type KeepOption } from './test-data/index.js';
24
+ export { EnvLoader } from './config/index.js';
25
+ export { createAmqpClient } from './fixtures/amqp.fixture.js';
26
+ export { createS3Client } from './fixtures/s3.fixture.js';
27
+ export { createSqsClient } from './fixtures/sqs.fixture.js';
28
+ export { createDynamoDbClient } from './fixtures/dynamodb.fixture.js';
29
+ export { createCassandraClient } from './fixtures/cassandra.fixture.js';
30
+ export { createClickHouseClient } from './fixtures/clickhouse.fixture.js';
31
+ export { createSearchClient } from './fixtures/search.fixture.js';
32
+ export { createGrpcClient, GrpcError } from './fixtures/grpc.fixture.js';
33
+ export { createRealtimeClient, RealtimeError, SseParser } from './fixtures/realtime.fixture.js';
34
+ export { startAppiumSession, createGadsHubClient, gadsSessionInfo } from './fixtures/appium.fixture.js';
35
+ export { FrameworkError, ConfigurationError, FixtureInitError, FixtureOperationError, SecretsError, DependencyError, MissingPackageError, ContractError, } from './errors.js';
36
+ export type { ContractViolation } from './errors.js';
37
+ export { ContractValidator, assertContract } from './openapi/contract.js';
38
+ export type { ContractMode, ContractOperation, ContractResult } from './openapi/contract.js';
39
+ export type { SecretsProvider } from './secrets/index.js';
40
+ export { SecretsManager } from './secrets/index.js';
41
+ export { AwsSecretsProvider, GitLabSecretsProvider, VaultSecretsProvider, OpenBaoSecretsProvider, VaultCompatibleProvider, AzureSecretsProvider, EnvFileSecretsProvider, createProvider, createDefaultProviders, } from './secrets/index.js';
42
+ export type { AwsProviderOptions, GitLabProviderOptions, VaultProviderOptions, OpenBaoProviderOptions, VaultCompatibleOptions, VaultAuthMethod, AzureProviderOptions, EnvFileProviderOptions, ProviderRegistryOptions, } from './secrets/index.js';
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGnD,YAAY,EACR,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,aAAa,EACb,cAAc,EACd,SAAS,EACT,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,OAAO,EACP,cAAc,EACd,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,eAAe,EACf,YAAY,EACZ,SAAS,EACT,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,sBA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B,EAChB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,aAAa,GAChB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1E,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG7F,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACH,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,sBAAsB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACR,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,GAC1B,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Main entry point for the Playwright Framework Template.
3
+ *
4
+ * Re-exports the extended test object, fixture client types, configuration types,
5
+ * error classes, and secrets interfaces for consumer use.
6
+ *
7
+ * Usage:
8
+ * import { test, expect } from './src';
9
+ * import type { OpenApiClient, FrameworkConfig } from './src';
10
+ *
11
+ * @requirements 1.1, 1.2
12
+ */
13
+ // Extended Playwright test object and expect
14
+ export { test, expect } from './fixtures/index.js';
15
+ export { ConfigLoader } from './config/index.js';
16
+ export { MailpitProvider } from './fixtures/inbox.fixture.js';
17
+ export { WireMockAdmin } from './fixtures/mock-server.fixture.js';
18
+ export { TokenManager, resolveRole } from './auth/token-manager.js';
19
+ export { authStateFile } from './auth/state-file.js';
20
+ export { setupAuth, saveAuthState, authCredentials, hasFreshAuthState } from './auth/setup.js';
21
+ export { ContainerManager, DEFAULT_IMAGES } from './containers/container-manager.js';
22
+ export { TestData, defineFactory, CleanupRegistry } from './test-data/index.js';
23
+ export { EnvLoader } from './config/index.js';
24
+ // AMQP client outside the fixture (e.g. a global setup that declares exchanges)
25
+ export { createAmqpClient } from './fixtures/amqp.fixture.js';
26
+ // AWS clients outside the fixtures (e.g. a global setup that creates buckets and queues)
27
+ export { createS3Client } from './fixtures/s3.fixture.js';
28
+ export { createSqsClient } from './fixtures/sqs.fixture.js';
29
+ export { createDynamoDbClient } from './fixtures/dynamodb.fixture.js';
30
+ // Cassandra / ScyllaDB client outside the fixture (e.g. a global setup that creates the schema)
31
+ export { createCassandraClient } from './fixtures/cassandra.fixture.js';
32
+ // ClickHouse client outside the fixture (e.g. a global setup that creates the schema)
33
+ export { createClickHouseClient } from './fixtures/clickhouse.fixture.js';
34
+ // Search client outside the fixture (e.g. a global setup that creates index templates)
35
+ export { createSearchClient } from './fixtures/search.fixture.js';
36
+ // gRPC client outside the fixture, and its error type (code, codeName, details, trailers)
37
+ export { createGrpcClient, GrpcError } from './fixtures/grpc.fixture.js';
38
+ // Realtime (WebSocket / SSE) client outside the fixture, its connection error (status, body), and the SSE parser
39
+ export { createRealtimeClient, RealtimeError, SseParser } from './fixtures/realtime.fixture.js';
40
+ // Appium/GADS helpers for use outside the fixture (e.g. worker-scoped sessions)
41
+ export { startAppiumSession, createGadsHubClient, gadsSessionInfo } from './fixtures/appium.fixture.js';
42
+ // Error types
43
+ export { FrameworkError, ConfigurationError, FixtureInitError, FixtureOperationError, SecretsError, DependencyError, MissingPackageError, ContractError, } from './errors.js';
44
+ // Contract checks (OpenAPI request/response validation)
45
+ export { ContractValidator, assertContract } from './openapi/contract.js';
46
+ export { SecretsManager } from './secrets/index.js';
47
+ export { AwsSecretsProvider, GitLabSecretsProvider, VaultSecretsProvider, OpenBaoSecretsProvider, VaultCompatibleProvider, AzureSecretsProvider, EnvFileSecretsProvider, createProvider, createDefaultProviders, } from './sec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C1F,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEzE,iHAAiH;AACjH,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhG,gFAAgF;AAChF,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAExG,cAAc;AACd,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,aAAa,GAChB,MAAM,aAAa,CAAC;AAGrB,wDAAwD;AACxD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAK1E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACH,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,sBAAsB,GACzB,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Read/write guards for the MCP server.
3
+ *
4
+ * These stop an agent from changing data by accident through a read tool.
5
+ * They are not a sandbox: point the server at a read-only database user when
6
+ * the data matters.
7
+ */
8
+ export declare function isProductionEnvironment(name: string): boolean;
9
+ /**
10
+ * Removes comments, string literals and quoted identifiers, so keywords inside
11
+ * them don't count. Each literal becomes a placeholder.
12
+ */
13
+ export declare function stripSqlLiterals(sql: string): string;
14
+ /**
15
+ * Returns `undefined` when the SQL is a single read-only statement, otherwise
16
+ * the reason it isn't.
17
+ */
18
+ export declare function readOnlySqlProblem(sql: string): string | undefined;
19
+ /** Aggregation stages that write: `$out` and `$merge`. */
20
+ export declare function writingPipelineStage(pipeline: unknown[]): string | undefined;
21
+ //# sourceMappingURL=guards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/mcp/guards.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAgBD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CA4CpD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAelE;AAED,0DAA0D;AAC1D,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ5E"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Read/write guards for the MCP server.
3
+ *
4
+ * These stop an agent from changing data by accident through a read tool.
5
+ * They are not a sandbox: point the server at a read-only database user when
6
+ * the data matters.
7
+ */
8
+ /** Environment names treated as production. */
9
+ const PRODUCTION_NAMES = new Set(['prod', 'production', 'prd', 'live']);
10
+ export function isProductionEnvironment(name) {
11
+ return PRODUCTION_NAMES.has(name.trim().toLowerCase());
12
+ }
13
+ const READ_START = new Set(['SELECT', 'WITH', 'SHOW', 'EXPLAIN', 'DESCRIBE', 'DESC', 'VALUES', 'TABLE', 'PRAGMA']);
14
+ /**
15
+ * Keywords that change data or schema. `INTO` covers `SELECT ... INTO new_table`,
16
+ * `ANALYZE` covers `EXPLAIN ANALYZE` (which runs the statement), and `UPDATE`
17
+ * also catches `SELECT ... FOR UPDATE` locks.
18
+ */
19
+ const WRITE_WORDS = [
20
+ 'INSERT', 'UPDATE', 'DELETE', 'MERGE', 'UPSERT', 'REPLACE', 'DROP', 'ALTER', 'CREATE', 'TRUNCATE',
21
+ 'GRANT', 'REVOKE', 'COPY', 'CALL', 'EXEC', 'EXECUTE', 'DO', 'LOCK', 'VACUUM', 'REINDEX', 'CLUSTER',
22
+ 'ATTACH', 'DETACH', 'INTO', 'ANALYZE', 'COMMENT', 'REFRESH', 'IMPORT', 'LOAD', 'HANDLER', 'RENAME',
23
+ ];
24
+ const WRITE_RE = new RegExp(`\\b(${WRITE_WORDS.join('|')})\\b`, 'i');
25
+ /**
26
+ * Removes comments, string literals and quoted identifiers, so keywords inside
27
+ * them don't count. Each literal becomes a placeholder.
28
+ */
29
+ export function stripSqlLiterals(sql) {
30
+ let out = '';
31
+ let i = 0;
32
+ while (i < sql.length) {
33
+ const c = sql[i];
34
+ const next = sql[i + 1];
35
+ if (c === '-' && next === '-') {
36
+ const end = sql.indexOf('\n', i);
37
+ i = end < 0 ? sql.length : end;
38
+ out += ' ';
39
+ }
40
+ else if (c === '/' && next === '*') {
41
+ const end = sql.indexOf('*/', i + 2);
42
+ i = end < 0 ? sql.length : end + 2;
43
+ out += ' ';
44
+ }
45
+ else if (c === "'" || c === '"' || c === '`') {
46
+ let j = i + 1;
47
+ while (j < sql.length) {
48
+ if (sql[j] === c && sql[j + 1] === c)
49
+ j += 2; // doubled quote escapes itself
50
+ else if (sql[j] === '\\' && c === "'")
51
+ j += 2;
52
+ else if (sql[j] === c)
53
+ break;
54
+ else
55
+ j++;
56
+ }
57
+ i = j + 1;
58
+ out += c === "'" ? "''" : '_q';
59
+ }
60
+ else if (c === '[') {
61
+ const end = sql.indexOf(']', i);
62
+ i = end < 0 ? sql.length : end + 1;
63
+ out += '_q';
64
+ }
65
+ else if (c === '$') {
66
+ const tag = /^\$[A-Za-z_]*\$/.exec(sql.slice(i));
67
+ if (tag) {
68
+ const end = sql.indexOf(tag[0], i + tag[0].length);
69
+ i = end < 0 ? sql.length : end + tag[0].length;
70
+ out += "''";
71
+ }
72
+ else {
73
+ out += c;
74
+ i++;
75
+ }
76
+ }
77
+ else {
78
+ out += c;
79
+ i++;
80
+ }
81
+ }
82
+ return out;
83
+ }
84
+ /**
85
+ * Returns `undefined` when the SQL is a single read-only statement, otherwise
86
+ * the reason it isn't.
87
+ */
88
+ export function readOnlySqlProblem(sql) {
89
+ const stripped = stripSqlLiterals(sql);
90
+ const statements = stripped.split(';').map((s) => s.trim()).filter(Boolean);
91
+ if (statements.length === 0)
92
+ return 'the statement is empty';
93
+ if (statements.length > 1)
94
+ return 'only one statement is allowed';
95
+ const statement = statements[0];
96
+ const first = /^[(\s]*([A-Za-z]+)/.exec(statement)?.[1]?.toUpperCase();
97
+ if (!first || !READ_START.has(first)) {
98
+ return `a read must start with ${[...READ_START].join(', ')}, not ${first ?? 'that'}`;
99
+ }
100
+ if (first === 'PRAGMA' && statement.includes('='))
101
+ return 'PRAGMA with "=" changes a setting';
102
+ const write = WRITE_RE.exec(statement);
103
+ if (write)
104
+ return `it contains ${write[1].toUpperCase()}`;
105
+ return undefined;
106
+ }
107
+ /** Aggregation stages that write: `$out` and `$merge`. */
108
+ export function writingPipelineStage(pipeline) {
109
+ for (const stage of pipeline) {
110
+ if (stage && typeof stage === 'object') {
111
+ const key = Object.keys(stage).find((k) => k === '$out' || k === '$merge');
112
+ if (key)
113
+ return key;
114
+ }
115
+ }
116
+ return undefined;
117
+ }
118
+ //# sourceMappingURL=guards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guards.js","sourceRoot":"","sources":["../../../src/mcp/guards.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,+CAA+C;AAC/C,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAChD,OAAO,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEnH;;;;GAIG;AACH,MAAM,WA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CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACnC,OAAO,0BAA0B,CAAC,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,KAAK,IAAI,MAAM,EAAE,CAAC;IAC1F,CAAC;IACD,IAAI,KAAK,KAAK,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,mCAAmC,CAAC;IAC9F,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvC,IAAI,KAAK;QAAE,OAAO,eAAe,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;IAC1D,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,oBAAoB,CAAC,QAAmB;IACpD,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE,CAAC;QAC3B,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACrC,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,MAAM,IAAI,CAAC,KAAK,QAAQ,CAAC,CAAC;YAC3E,IAAI,GAAG;gBAAE,OAAO,GAAG,CAAC;QACxB,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * MCP tools that change the project's setup, calling the same code as the
3
+ * CLI. Each shows its plan unless called with `apply: true`, so the agent (and
4
+ * the person approving its tool calls) sees what changes first. These change
5
+ * project files, not backend data, so they don't need --allow-writes.
6
+ */
7
+ import { type CommandRunner } from '../cli/fixture.js';
8
+ import type { ResourceProvider } from './protocol.js';
9
+ import { type ToolDefinition } from './protocol.js';
10
+ /** The project tools for the project at `root`. `runner` runs the package manager (injected by tests). */
11
+ export declare function projectTools(root: string, runner?: CommandRunner, environment?: string): ToolDefinition[];
12
+ /** The standards pages as MCP resources: `standards://<file>`. */
13
+ export declare function standardsResources(root: string): ResourceProvider;
14
+ //# sourceMappingURL=project-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-tools.d.ts","sourceRoot":"","sources":["../../../src/mcp/project-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAiG,KAAK,aAAa,EAAoB,MAAM,mBAAmB,CAAC;AAIxK,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAuCpE,0GAA0G;AAC1G,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,aAA6B,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,CAmLxH;AAED,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAWjE"}
@@ -0,0 +1,252 @@
1
+ /**
2
+ * MCP tools that change the project's setup, calling the same code as the
3
+ * CLI. Each shows its plan unless called with `apply: true`, so the agent (and
4
+ * the person approving its tool calls) sees what changes first. These change
5
+ * project files, not backend data, so they don't need --allow-writes.
6
+ */
7
+ import { FIXTURE_CATALOG } from '../cli/fixture-catalog.js';
8
+ import { applyPlan, captureRunner, fixtureStates, formatFixturePlan, parseRequest, planAdd, planRemove } from '../cli/fixture.js';
9
+ import { applyEnvPlan, formatEnvPlan, listEnvironments, planEnvAdd } from '../cli/env.js';
10
+ import { applyFixes, diagnose, summarize } from '../cli/doctor.js';
11
+ import { STANDARDS_FILE, listPages, loadStandards, readPage } from '../cli/standards.js';
12
+ import { ToolInputError } from './protocol.js';
13
+ const MAX_OUTPUT = 4000;
14
+ function planResult(plan) {
15
+ return {
16
+ plan: formatFixturePlan(plan),
17
+ files: [...plan.files.keys()],
18
+ ...(plan.install.length ? { install: plan.install } : {}),
19
+ ...(plan.uninstall.length ? { uninstall: plan.uninstall } : {}),
20
+ ...(plan.blockers.length ? { blockedBy: plan.blockers } : {}),
21
+ ...(plan.notes.length ? { notes: plan.notes } : {}),
22
+ };
23
+ }
24
+ function run(root, plan, apply, install, runner) {
25
+ const result = planResult(plan);
26
+ if (plan.blockers.length)
27
+ return { ...result, applied: false, reason: 'Tests still use this fixture: change or delete them first.' };
28
+ if (!plan.files.size && !plan.install.length && !plan.uninstall.length)
29
+ return { ...result, applied: false, reason: 'Nothing to change.' };
30
+ if (!apply)
31
+ return { ...result, applied: false, reason: 'Dry run. Call again with apply: true to make these changes.' };
32
+ const applied = applyPlan(root, plan, { install, runner });
33
+ return {
34
+ ...result,
35
+ applied: true,
36
+ ok: applied.ok,
37
+ written: applied.written,
38
+ deleted: applied.deleted,
39
+ ...(applied.command ? { command: applied.command, ...(install ? {} : { run: 'install: false — run this command yourself' }) } : {}),
40
+ ...(applied.output ? { output: applied.output.slice(-MAX_OUTPUT) } : {}),
41
+ };
42
+ }
43
+ const bool = (args, key, fallback) => {
44
+ const v = args[key];
45
+ if (v === undefined)
46
+ return fallback;
47
+ if (typeof v !== 'boolean')
48
+ throw new ToolInputError(`${key} must be true or false`);
49
+ return v;
50
+ };
51
+ /** The project tools for the project at `root`. `runner` runs the package manager (injected by tests). */
52
+ export function projectTools(root, runner = captureRunner, environment) {
53
+ const ids = FIXTURE_CATALOG.map((e) => e.id);
54
+ const variantNote = FIXTURE_CATALOG.filter((e) => e.variants.length > 1)
55
+ .map((e) => `${e.id}:${e.variants.map((v) => v.id).join('|')}`)
56
+ .join(', ');
57
+ return [
58
+ {
59
+ name: 'fixtures_list',
60
+ title: 'List fixtures',
61
+ description: 'Lists the fixtures Propmaster can set up (id, label, the fixture names tests request) and which ones this project already has. Use the ids with fixture_add and fixture_remove.',
62
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
63
+ annotations: { readOnlyHint: true, openWorldHint: false },
64
+ handler: async () => ({
65
+ fixtures: fixtureStates(root).map(({ entry, present, variant }) => ({
66
+ id: entry.id,
67
+ label: entry.label,
68
+ fixtures: entry.fixtures,
69
+ present,
70
+ ...(entry.variants.length > 1 ? { variants: entry.variants.map((v) => v.id), ...(present ? { variant: variant.id } : {}) } : {}),
71
+ })),
72
+ }),
73
+ },
74
+ {
75
+ name: 'fixture_add',
76
+ title: 'Add fixtures',
77
+ description: 'Sets fixtures up in the project: installs the driver, adds the config block to every environment in environments.json (CHANGE_ME outside local), the PW_* variables to .env.example, a compose.test.yaml service and a starter test with a fresh TestCaseID. Adds only what is missing. Returns the plan; nothing changes unless apply is true.',
78
+ inputSchema: {
79
+ type: 'object',
80
+ properties: {
81
+ fixtures: { type: 'array', items: { type: 'string' }, minItems: 1, description: `Fixture ids (${ids.join(', ')}), optionally with a variant: ${variantNote}` },
82
+ service: { type: 'boolean', description: 'Add compose.test.yaml services (default true)' },
83
+ test: { type: 'boolean', description: 'Add a starter test (default true)' },
84
+ install: { type: 'boolean', description: 'Run the package manager (default true); false returns the command instead' },
85
+ apply: { type: 'boolean', description: 'Make the changes (default false: only show the plan)' },
86
+ },
87
+ required: ['fixtures'],
88
+ additionalProperties: false,
89
+ },
90
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
91
+ handler: async (args) => {
92
+ const list = args.fixtures;
93
+ if (!Array.isArray(list) || !list.length || !list.every((f) => typeof f === 'string'))
94
+ throw new ToolInputError('fixtures must be a non-empty array of fixture ids');
95
+ let plan;
96
+ try {
97
+ plan = planAdd(root, list.map(parseRequest), { service: bool(args, 'service', true), test: bool(args, 'test', true) });
98
+ }
99
+ catch (error) {
100
+ throw new ToolInputError(error instanceof Error ? error.message : String(error));
101
+ }
102
+ return run(root, plan, bool(args, 'apply', false), bool(args, 'install', true), runner);
103
+ },
104
+ },
105
+ {
106
+ name: 'fixture_remove',
107
+ title: 'Remove a fixture',
108
+ description: "Undoes fixture_add: uninstalls the driver, removes the config from every environment, the .env.example section, the compose service (if unchanged) and the unchanged starter test. Refuses while other tests still use the fixture and lists them. Returns the plan; nothing changes unless apply is true.",
109
+ inputSchema: {
110
+ type: 'object',
111
+ properties: {
112
+ fixture: { type: 'string', description: `Fixture id: ${ids.join(', ')}` },
113
+ install: { type: 'boolean', description: 'Run the package manager (default true); false returns the command instead' },
114
+ apply: { type: 'boolean', description: 'Make the changes (default false: only show the plan)' },
115
+ },
116
+ required: ['fixture'],
117
+ additionalProperties: false,
118
+ },
119
+ annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
120
+ handler: async (args) => {
121
+ if (typeof args.fixture !== 'string')
122
+ throw new ToolInputError('fixture must be a fixture id');
123
+ let plan;
124
+ try {
125
+ plan = planRemove(root, args.fixture);
126
+ }
127
+ catch (error) {
128
+ throw new ToolInputError(error instanceof Error ? error.message : String(error));
129
+ }
130
+ return run(root, plan, bool(args, 'apply', false), bool(args, 'install', true), runner);
131
+ },
132
+ },
133
+ {
134
+ name: 'environments_list',
135
+ title: 'List environments',
136
+ description: 'Lists the environments in environments.json: which are production, their blocks (database, redis, ...), whether .env.<name> exists, and the values still CHANGE_ME.',
137
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
138
+ annotations: { readOnlyHint: true, openWorldHint: false },
139
+ handler: async () => ({ environments: listEnvironments(root) }),
140
+ },
141
+ {
142
+ name: 'environment_add',
143
+ title: 'Add an environment',
144
+ description: 'Adds an environment to environments.json, copied from another (values become CHANGE_ME unless copyValues; credentials are never copied), creates .env.<name> with its variables commented out, and keeps that file out of git. Production environments get "production": true. Returns the plan; nothing changes unless apply is true. Never put secrets in environments.json: they go in .env.<name> or the secrets provider.',
145
+ inputSchema: {
146
+ type: 'object',
147
+ properties: {
148
+ name: { type: 'string', description: 'The new environment, e.g. stg' },
149
+ from: { type: ['string', 'null'], description: 'The environment to copy (default: local, else the first); null for an empty one' },
150
+ production: { type: 'boolean', description: 'Mark it production (default: true for prod, production, prd, live)' },
151
+ copyValues: { type: 'boolean', description: 'Copy the values too, not just the shape (default false; credentials are never copied)' },
152
+ apply: { type: 'boolean', description: 'Make the changes (default false: only show the plan)' },
153
+ },
154
+ required: ['name'],
155
+ additionalProperties: false,
156
+ },
157
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
158
+ handler: async (args) => {
159
+ if (typeof args.name !== 'string' || !args.name)
160
+ throw new ToolInputError('name must be the new environment\'s name');
161
+ if (args.from !== undefined && args.from !== null && typeof args.from !== 'string')
162
+ throw new ToolInputError('from must be an environment name or null');
163
+ const plan = planEnvAdd(root, args.name, {
164
+ from: args.from,
165
+ production: args.production === undefined ? undefined : bool(args, 'production', false),
166
+ copyValues: bool(args, 'copyValues', false),
167
+ });
168
+ const result = { plan: formatEnvPlan(plan), files: [...plan.files.keys()] };
169
+ if (plan.blockers.length)
170
+ return { ...result, applied: false, reason: plan.blockers.join(' ') };
171
+ if (!bool(args, 'apply', false))
172
+ return { ...result, applied: false, reason: 'Dry run. Call again with apply: true to make these changes.' };
173
+ return { ...result, applied: true, written: applyEnvPlan(root, plan) };
174
+ },
175
+ },
176
+ {
177
+ name: 'standards',
178
+ title: "The team's testing standards",
179
+ description: "The team's testing standards: with no arguments, its pages (in standards/) and the rules in propmaster.standards.json that check_tests enforces; with page, that page's text. Read them before writing or changing tests, and follow them.",
180
+ inputSchema: { type: 'object', properties: { page: { type: 'string', description: 'A page file from the list, e.g. tagging.md' } }, additionalProperties: false },
181
+ annotations: { readOnlyHint: true, openWorldHint: false },
182
+ handler: async (args) => {
183
+ const { standards, problems } = loadStandards(root);
184
+ if (args.page !== undefined) {
185
+ if (typeof args.page !== 'string')
186
+ throw new ToolInputError('page must be a page file, e.g. tagging.md');
187
+ const text = readPage(root, args.page, standards?.pages);
188
+ if (text === undefined)
189
+ throw new ToolInputError(`no page "${args.page}". Pages: ${listPages(root, standards?.pages).map((p) => p.file).join(', ') || 'none'}`);
190
+ return text;
191
+ }
192
+ if (!standards && !problems.length)
193
+ return { standards: false, message: `This project has no ${STANDARDS_FILE}: only the built-in conventions apply (check_tests).` };
194
+ return { file: STANDARDS_FILE, ...(problems.length ? { problems } : {}), pages: listPages(root, standards?.pages), rules: standards?.rules ?? [] };
195
+ },
196
+ },
197
+ {
198
+ name: 'doctor',
199
+ title: 'Doctor',
200
+ description: "Checks the project's setup and says how to fix each problem: Node.js, the environment's config (missing blocks, CHANGE_ME values), drivers for the fixtures the tests use, whether the backends answer, the Playwright config and browsers, the CI image, .env files kept out of git, and test conventions. Call it when tests fail before reaching the code under test. With fix: true it applies the safe fixes (installing drivers, adding config blocks, .gitignore entries, the CI image tag) and checks again.",
201
+ inputSchema: {
202
+ type: 'object',
203
+ properties: {
204
+ environment: { type: 'string', description: "The environment to check (default: the server's)" },
205
+ offline: { type: 'boolean', description: "Don't try to reach the backends (default false)" },
206
+ problems: { type: 'boolean', description: 'Return only the problems, not what passed (default true)' },
207
+ fix: { type: 'boolean', description: 'Apply the safe fixes, then check again (default false)' },
208
+ },
209
+ additionalProperties: false,
210
+ },
211
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
212
+ handler: async (args) => {
213
+ if (args.environment !== undefined && typeof args.environment !== 'string')
214
+ throw new ToolInputError('environment must be a string');
215
+ const options = { environment: args.environment ?? environment, offline: bool(args, 'offline', false), skipMcp: true, runner };
216
+ let result = await diagnose(root, options);
217
+ let fixed = [];
218
+ let failed = [];
219
+ if (bool(args, 'fix', false)) {
220
+ ({ fixed, failed } = await applyFixes(result.findings));
221
+ if (fixed.length || failed.length)
222
+ result = await diagnose(root, options);
223
+ }
224
+ const onlyProblems = bool(args, 'problems', true);
225
+ const { fail, warn, fixable } = summarize(result.findings);
226
+ return {
227
+ environment: result.environment,
228
+ ok: fail === 0,
229
+ summary: `${fail} problem(s), ${warn} warning(s)${fixable ? `; ${fixable} can be fixed with fix: true` : ''}`,
230
+ ...(fixed.length ? { fixed: fixed.map((f) => f.fix.text) } : {}),
231
+ ...(failed.length ? { fixFailed: failed.map((f) => f.message) } : {}),
232
+ findings: result.findings
233
+ .filter((f) => !onlyProblems || f.status === 'fail' || f.status === 'warn')
234
+ .map(({ fix, ...f }) => ({ ...f, ...(fix ? { fix: fix.text, autoFix: !!(fix.safe && fix.apply) } : {}) })),
235
+ };
236
+ },
237
+ },
238
+ ];
239
+ }
240
+ /** The standards pages as MCP resources: `standards://<file>`. */
241
+ export function standardsResources(root) {
242
+ const folder = () => loadStandards(root).standards?.pages;
243
+ return {
244
+ list: () => listPages(root, folder()).map((p) => ({ uri: `standards://${p.file}`, name: p.file, title: p.title, description: p.summary || undefined, mimeType: 'text/markdown' })),
245
+ read: (uri) => {
246
+ const m = /^standards:\/\/(.+)$/.exec(uri);
247
+ const text = m ? readPage(root, m[1], folder()) : undefined;
248
+ return text === undefined ? undefined : { text, mimeType: 'text/markdown' };
249
+ },
250
+ };
251
+ }
252
+ //# sourceMappingURL=project-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-tools.js","sourceRoot":"","sources":["../../../src/mcp/project-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAwC,MAAM,mBAAmB,CAAC;AACxK,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAgB,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAuB,MAAM,eAAe,CAAC;AAEpE,MAAM,UAAU,GAAG,IAAI,CA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