@sun-asterisk/sungen 3.2.31 → 3.2.33

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 (363) hide show
  1. package/dist/cli/commands/audit.d.ts +1 -0
  2. package/dist/cli/commands/audit.d.ts.map +1 -1
  3. package/dist/cli/commands/audit.js +13 -2
  4. package/dist/cli/commands/audit.js.map +1 -1
  5. package/dist/cli/commands/capability.d.ts.map +1 -1
  6. package/dist/cli/commands/capability.js +46 -17
  7. package/dist/cli/commands/capability.js.map +1 -1
  8. package/dist/cli/commands/delivery.d.ts.map +1 -1
  9. package/dist/cli/commands/delivery.js +39 -18
  10. package/dist/cli/commands/delivery.js.map +1 -1
  11. package/dist/cli/commands/generate.d.ts.map +1 -1
  12. package/dist/cli/commands/generate.js +14 -7
  13. package/dist/cli/commands/generate.js.map +1 -1
  14. package/dist/cli/commands/init.d.ts.map +1 -1
  15. package/dist/cli/commands/init.js +2 -0
  16. package/dist/cli/commands/init.js.map +1 -1
  17. package/dist/cli/commands/results-merge.d.ts.map +1 -1
  18. package/dist/cli/commands/results-merge.js +2 -12
  19. package/dist/cli/commands/results-merge.js.map +1 -1
  20. package/dist/cli/commands/results-sanitize.d.ts.map +1 -1
  21. package/dist/cli/commands/results-sanitize.js +2 -13
  22. package/dist/cli/commands/results-sanitize.js.map +1 -1
  23. package/dist/cli/commands/setup-mobile-env.d.ts +15 -0
  24. package/dist/cli/commands/setup-mobile-env.d.ts.map +1 -0
  25. package/dist/cli/commands/setup-mobile-env.js +65 -0
  26. package/dist/cli/commands/setup-mobile-env.js.map +1 -0
  27. package/dist/cli/index.js +2 -0
  28. package/dist/cli/index.js.map +1 -1
  29. package/dist/dashboard/snapshot-builder.d.ts.map +1 -1
  30. package/dist/dashboard/snapshot-builder.js +6 -10
  31. package/dist/dashboard/snapshot-builder.js.map +1 -1
  32. package/dist/exporters/feature-parser.d.ts +21 -0
  33. package/dist/exporters/feature-parser.d.ts.map +1 -1
  34. package/dist/exporters/feature-parser.js +32 -1
  35. package/dist/exporters/feature-parser.js.map +1 -1
  36. package/dist/exporters/locale-variants.d.ts +7 -1
  37. package/dist/exporters/locale-variants.d.ts.map +1 -1
  38. package/dist/exporters/locale-variants.js +23 -16
  39. package/dist/exporters/locale-variants.js.map +1 -1
  40. package/dist/exporters/matrix/build.d.ts.map +1 -1
  41. package/dist/exporters/matrix/build.js +13 -7
  42. package/dist/exporters/matrix/build.js.map +1 -1
  43. package/dist/exporters/matrix/carry-manual-results.d.ts +70 -0
  44. package/dist/exporters/matrix/carry-manual-results.d.ts.map +1 -0
  45. package/dist/exporters/matrix/carry-manual-results.js +232 -0
  46. package/dist/exporters/matrix/carry-manual-results.js.map +1 -0
  47. package/dist/exporters/matrix/export.d.ts +2 -0
  48. package/dist/exporters/matrix/export.d.ts.map +1 -1
  49. package/dist/exporters/matrix/export.js +7 -1
  50. package/dist/exporters/matrix/export.js.map +1 -1
  51. package/dist/exporters/matrix/wording.d.ts +7 -0
  52. package/dist/exporters/matrix/wording.d.ts.map +1 -1
  53. package/dist/exporters/matrix/wording.js +27 -1
  54. package/dist/exporters/matrix/wording.js.map +1 -1
  55. package/dist/exporters/xlsx-exporter.d.ts +2 -0
  56. package/dist/exporters/xlsx-exporter.d.ts.map +1 -1
  57. package/dist/exporters/xlsx-exporter.js +7 -2
  58. package/dist/exporters/xlsx-exporter.js.map +1 -1
  59. package/dist/generators/test-generator/adapters/appium/templates/steps/actions/reinstall-app-action.hbs +2 -2
  60. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/all-contain-assertion.hbs +1 -2
  61. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/all-contain-element.hbs +8 -5
  62. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/count-assertion.hbs +5 -1
  63. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/disabled-with-filter-assertion.hbs +1 -1
  64. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/disabled-with-role-variable-assertion.hbs +1 -1
  65. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/hidden-with-filter-assertion.hbs +1 -1
  66. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/hidden-with-role-variable-assertion.hbs +1 -1
  67. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/label-value-assertion.hbs +8 -2
  68. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/list-item-count-assertion.hbs +5 -2
  69. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/state-with-filter-assertion.hbs +1 -1
  70. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/visible-filtered-assertion.hbs +1 -1
  71. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/visible-with-role-variable-assertion.hbs +7 -3
  72. package/dist/generators/test-generator/adapters/appium/templates/steps/partials/await-elements.hbs +12 -0
  73. package/dist/generators/test-generator/adapters/appium/templates/test-file.hbs +94 -4
  74. package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/capture-variable.hbs +7 -1
  75. package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/label-value-assertion.hbs +7 -1
  76. package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/row-scoped-column-assertion.hbs +23 -1
  77. package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/visible-with-role-variable-assertion.hbs +8 -4
  78. package/dist/generators/test-generator/adapters/playwright/templates/steps/partials/locator-base.hbs +4 -4
  79. package/dist/generators/test-generator/adapters/playwright/templates/steps/partials/locator-strategies/default.hbs +1 -1
  80. package/dist/generators/test-generator/adapters/playwright/templates/steps/partials/locator-strategies/id.hbs +1 -1
  81. package/dist/generators/test-generator/adapters/playwright/templates/steps/partials/locator.hbs +4 -4
  82. package/dist/generators/test-generator/adapters/playwright/templates/steps/partials/url-assertion.hbs +17 -2
  83. package/dist/generators/test-generator/adapters/playwright/templates/test-file.hbs +14 -0
  84. package/dist/generators/test-generator/code-generator.d.ts +2 -1
  85. package/dist/generators/test-generator/code-generator.d.ts.map +1 -1
  86. package/dist/generators/test-generator/code-generator.js +122 -15
  87. package/dist/generators/test-generator/code-generator.js.map +1 -1
  88. package/dist/generators/test-generator/diagnostics.d.ts +70 -4
  89. package/dist/generators/test-generator/diagnostics.d.ts.map +1 -1
  90. package/dist/generators/test-generator/diagnostics.js +69 -3
  91. package/dist/generators/test-generator/diagnostics.js.map +1 -1
  92. package/dist/generators/test-generator/patterns/index.d.ts +13 -3
  93. package/dist/generators/test-generator/patterns/index.d.ts.map +1 -1
  94. package/dist/generators/test-generator/patterns/index.js +16 -10
  95. package/dist/generators/test-generator/patterns/index.js.map +1 -1
  96. package/dist/generators/test-generator/patterns/types.d.ts +15 -0
  97. package/dist/generators/test-generator/patterns/types.d.ts.map +1 -1
  98. package/dist/generators/test-generator/patterns/with-parent-scope.d.ts +5 -0
  99. package/dist/generators/test-generator/patterns/with-parent-scope.d.ts.map +1 -1
  100. package/dist/generators/test-generator/patterns/with-parent-scope.js +6 -0
  101. package/dist/generators/test-generator/patterns/with-parent-scope.js.map +1 -1
  102. package/dist/generators/test-generator/step-mapper.d.ts +81 -0
  103. package/dist/generators/test-generator/step-mapper.d.ts.map +1 -1
  104. package/dist/generators/test-generator/step-mapper.js +187 -13
  105. package/dist/generators/test-generator/step-mapper.js.map +1 -1
  106. package/dist/generators/test-generator/template-engine.d.ts.map +1 -1
  107. package/dist/generators/test-generator/template-engine.js +18 -0
  108. package/dist/generators/test-generator/template-engine.js.map +1 -1
  109. package/dist/generators/test-generator/utils/data-resolver.d.ts +25 -0
  110. package/dist/generators/test-generator/utils/data-resolver.d.ts.map +1 -1
  111. package/dist/generators/test-generator/utils/data-resolver.js +39 -8
  112. package/dist/generators/test-generator/utils/data-resolver.js.map +1 -1
  113. package/dist/generators/test-generator/utils/selector-entry-fields.d.ts.map +1 -1
  114. package/dist/generators/test-generator/utils/selector-entry-fields.js +1 -0
  115. package/dist/generators/test-generator/utils/selector-entry-fields.js.map +1 -1
  116. package/dist/generators/test-generator/utils/selector-resolver.d.ts +84 -4
  117. package/dist/generators/test-generator/utils/selector-resolver.d.ts.map +1 -1
  118. package/dist/generators/test-generator/utils/selector-resolver.js +229 -82
  119. package/dist/generators/test-generator/utils/selector-resolver.js.map +1 -1
  120. package/dist/harness/audit.d.ts.map +1 -1
  121. package/dist/harness/audit.js +35 -8
  122. package/dist/harness/audit.js.map +1 -1
  123. package/dist/harness/capability.d.ts +7 -1
  124. package/dist/harness/capability.d.ts.map +1 -1
  125. package/dist/harness/capability.js +15 -12
  126. package/dist/harness/capability.js.map +1 -1
  127. package/dist/harness/catalog/universal-viewpoints.yaml +5 -5
  128. package/dist/harness/config-file.d.ts +17 -0
  129. package/dist/harness/config-file.d.ts.map +1 -0
  130. package/dist/harness/config-file.js +100 -0
  131. package/dist/harness/config-file.js.map +1 -0
  132. package/dist/harness/depth-lint.d.ts.map +1 -1
  133. package/dist/harness/depth-lint.js +2 -1
  134. package/dist/harness/depth-lint.js.map +1 -1
  135. package/dist/harness/flow-check.d.ts.map +1 -1
  136. package/dist/harness/flow-check.js +6 -2
  137. package/dist/harness/flow-check.js.map +1 -1
  138. package/dist/harness/keyword-match.d.ts +59 -0
  139. package/dist/harness/keyword-match.d.ts.map +1 -0
  140. package/dist/harness/keyword-match.js +86 -0
  141. package/dist/harness/keyword-match.js.map +1 -0
  142. package/dist/harness/next-step.d.ts.map +1 -1
  143. package/dist/harness/next-step.js +2 -1
  144. package/dist/harness/next-step.js.map +1 -1
  145. package/dist/harness/parse.d.ts.map +1 -1
  146. package/dist/harness/parse.js +42 -7
  147. package/dist/harness/parse.js.map +1 -1
  148. package/dist/harness/perf.d.ts +7 -1
  149. package/dist/harness/perf.d.ts.map +1 -1
  150. package/dist/harness/perf.js +13 -10
  151. package/dist/harness/perf.js.map +1 -1
  152. package/dist/harness/quality-gates.d.ts +9 -2
  153. package/dist/harness/quality-gates.d.ts.map +1 -1
  154. package/dist/harness/quality-gates.js +16 -4
  155. package/dist/harness/quality-gates.js.map +1 -1
  156. package/dist/harness/query-catalog.js +0 -0
  157. package/dist/harness/query-catalog.js.map +1 -1
  158. package/dist/harness/read-text.d.ts +6 -0
  159. package/dist/harness/read-text.d.ts.map +1 -1
  160. package/dist/harness/read-text.js +7 -1
  161. package/dist/harness/read-text.js.map +1 -1
  162. package/dist/harness/secret-scan.d.ts +27 -1
  163. package/dist/harness/secret-scan.d.ts.map +1 -1
  164. package/dist/harness/secret-scan.js +57 -4
  165. package/dist/harness/secret-scan.js.map +1 -1
  166. package/dist/harness/sensors.d.ts +12 -0
  167. package/dist/harness/sensors.d.ts.map +1 -1
  168. package/dist/harness/sensors.js +41 -18
  169. package/dist/harness/sensors.js.map +1 -1
  170. package/dist/harness/spec-branches.d.ts +7 -20
  171. package/dist/harness/spec-branches.d.ts.map +1 -1
  172. package/dist/harness/spec-branches.js +85 -13
  173. package/dist/harness/spec-branches.js.map +1 -1
  174. package/dist/harness/spec-coverage.d.ts +16 -0
  175. package/dist/harness/spec-coverage.d.ts.map +1 -1
  176. package/dist/harness/spec-coverage.js +131 -12
  177. package/dist/harness/spec-coverage.js.map +1 -1
  178. package/dist/harness/viewpoint-ledger.d.ts.map +1 -1
  179. package/dist/harness/viewpoint-ledger.js +2 -1
  180. package/dist/harness/viewpoint-ledger.js.map +1 -1
  181. package/dist/harness/write-atomic.d.ts +2 -0
  182. package/dist/harness/write-atomic.d.ts.map +1 -0
  183. package/dist/harness/write-atomic.js +62 -0
  184. package/dist/harness/write-atomic.js.map +1 -0
  185. package/dist/orchestrator/ai-skills/writer.d.ts.map +1 -1
  186. package/dist/orchestrator/ai-skills/writer.js +15 -7
  187. package/dist/orchestrator/ai-skills/writer.js.map +1 -1
  188. package/dist/orchestrator/appium-environment-setup.d.ts +24 -0
  189. package/dist/orchestrator/appium-environment-setup.d.ts.map +1 -0
  190. package/dist/orchestrator/appium-environment-setup.js +157 -0
  191. package/dist/orchestrator/appium-environment-setup.js.map +1 -0
  192. package/dist/orchestrator/assets-drift.d.ts.map +1 -1
  193. package/dist/orchestrator/assets-drift.js +11 -6
  194. package/dist/orchestrator/assets-drift.js.map +1 -1
  195. package/dist/orchestrator/mobile-runtime-scaffolder.d.ts +2 -0
  196. package/dist/orchestrator/mobile-runtime-scaffolder.d.ts.map +1 -1
  197. package/dist/orchestrator/mobile-runtime-scaffolder.js.map +1 -1
  198. package/dist/orchestrator/project-deps-sync.d.ts.map +1 -1
  199. package/dist/orchestrator/project-deps-sync.js +22 -1
  200. package/dist/orchestrator/project-deps-sync.js.map +1 -1
  201. package/dist/orchestrator/project-initializer.d.ts +9 -0
  202. package/dist/orchestrator/project-initializer.d.ts.map +1 -1
  203. package/dist/orchestrator/project-initializer.js +63 -7
  204. package/dist/orchestrator/project-initializer.js.map +1 -1
  205. package/dist/orchestrator/security-overrides-catalog.d.ts +39 -0
  206. package/dist/orchestrator/security-overrides-catalog.d.ts.map +1 -0
  207. package/dist/orchestrator/security-overrides-catalog.js +63 -0
  208. package/dist/orchestrator/security-overrides-catalog.js.map +1 -0
  209. package/dist/orchestrator/security-overrides.d.ts +51 -0
  210. package/dist/orchestrator/security-overrides.d.ts.map +1 -0
  211. package/dist/orchestrator/security-overrides.js +165 -0
  212. package/dist/orchestrator/security-overrides.js.map +1 -0
  213. package/dist/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +14 -0
  214. package/dist/orchestrator/templates/ai-src/skills/sungen-error-mapping/SKILL.md +8 -2
  215. package/dist/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +64 -2
  216. package/dist/orchestrator/templates/ai-src/skills/sungen-selector-keys/SKILL.md +13 -1
  217. package/dist/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +20 -5
  218. package/dist/orchestrator/templates/ai-src/skills/sungen-tc-review/SKILL.md +3 -3
  219. package/dist/orchestrator/templates/appium-environment/README.md +83 -0
  220. package/dist/orchestrator/templates/appium-environment/scripts/common/install-appium.ps1 +44 -0
  221. package/dist/orchestrator/templates/appium-environment/scripts/common/install-appium.sh +50 -0
  222. package/dist/orchestrator/templates/appium-environment/scripts/common/lib.ps1 +108 -0
  223. package/dist/orchestrator/templates/appium-environment/scripts/common/lib.sh +141 -0
  224. package/dist/orchestrator/templates/appium-environment/scripts/common/verify-appium.ps1 +39 -0
  225. package/dist/orchestrator/templates/appium-environment/scripts/common/verify-appium.sh +43 -0
  226. package/dist/orchestrator/templates/appium-environment/scripts/common/verify-node.ps1 +13 -0
  227. package/dist/orchestrator/templates/appium-environment/scripts/common/verify-node.sh +16 -0
  228. package/dist/orchestrator/templates/appium-environment/scripts/macos/install-android.sh +110 -0
  229. package/dist/orchestrator/templates/appium-environment/scripts/macos/install-ios.sh +32 -0
  230. package/dist/orchestrator/templates/appium-environment/scripts/macos/verify-android.sh +32 -0
  231. package/dist/orchestrator/templates/appium-environment/scripts/macos/verify-ios.sh +15 -0
  232. package/dist/orchestrator/templates/appium-environment/scripts/windows/install-android.ps1 +153 -0
  233. package/dist/orchestrator/templates/appium-environment/scripts/windows/verify-android.ps1 +26 -0
  234. package/dist/orchestrator/templates/appium-environment/setup.ps1 +58 -0
  235. package/dist/orchestrator/templates/appium-environment/setup.sh +88 -0
  236. package/dist/orchestrator/templates/specs-checked-state.d.ts +1 -1
  237. package/dist/orchestrator/templates/specs-checked-state.d.ts.map +1 -1
  238. package/dist/orchestrator/templates/specs-checked-state.js +26 -3
  239. package/dist/orchestrator/templates/specs-checked-state.js.map +1 -1
  240. package/dist/orchestrator/templates/specs-checked-state.ts +31 -6
  241. package/dist/orchestrator/templates/specs-locale-fixture.ts +21 -9
  242. package/dist/orchestrator/templates/specs-mock.d.ts +2 -1
  243. package/dist/orchestrator/templates/specs-mock.d.ts.map +1 -1
  244. package/dist/orchestrator/templates/specs-mock.js +10 -3
  245. package/dist/orchestrator/templates/specs-mock.js.map +1 -1
  246. package/dist/orchestrator/templates/specs-mock.ts +12 -4
  247. package/dist/orchestrator/templates/specs-pw-shape-reporter.ts +0 -0
  248. package/dist/orchestrator/templates/specs-url-assert.d.ts +17 -1
  249. package/dist/orchestrator/templates/specs-url-assert.d.ts.map +1 -1
  250. package/dist/orchestrator/templates/specs-url-assert.js +14 -2
  251. package/dist/orchestrator/templates/specs-url-assert.js.map +1 -1
  252. package/dist/orchestrator/templates/specs-url-assert.ts +24 -2
  253. package/dist/orchestrator/templates/wdio.conf.ts +24 -1
  254. package/package.json +3 -3
  255. package/src/cli/commands/audit.ts +12 -3
  256. package/src/cli/commands/capability.ts +63 -19
  257. package/src/cli/commands/delivery.ts +38 -16
  258. package/src/cli/commands/generate.ts +15 -7
  259. package/src/cli/commands/init.ts +3 -0
  260. package/src/cli/commands/results-merge.ts +2 -8
  261. package/src/cli/commands/results-sanitize.ts +2 -9
  262. package/src/cli/commands/setup-mobile-env.ts +64 -0
  263. package/src/cli/index.ts +2 -0
  264. package/src/dashboard/snapshot-builder.ts +6 -8
  265. package/src/exporters/feature-parser.ts +32 -2
  266. package/src/exporters/locale-variants.ts +23 -17
  267. package/src/exporters/matrix/build.ts +14 -8
  268. package/src/exporters/matrix/carry-manual-results.ts +229 -0
  269. package/src/exporters/matrix/export.ts +10 -4
  270. package/src/exporters/matrix/wording.ts +26 -1
  271. package/src/exporters/xlsx-exporter.ts +7 -2
  272. package/src/generators/test-generator/adapters/adapter-interface.ts +2 -2
  273. package/src/generators/test-generator/adapters/appium/templates/steps/actions/reinstall-app-action.hbs +2 -2
  274. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/all-contain-assertion.hbs +1 -2
  275. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/all-contain-element.hbs +8 -5
  276. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/count-assertion.hbs +5 -1
  277. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/disabled-with-filter-assertion.hbs +1 -1
  278. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/disabled-with-role-variable-assertion.hbs +1 -1
  279. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/hidden-with-filter-assertion.hbs +1 -1
  280. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/hidden-with-role-variable-assertion.hbs +1 -1
  281. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/label-value-assertion.hbs +8 -2
  282. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/list-item-count-assertion.hbs +5 -2
  283. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/state-with-filter-assertion.hbs +1 -1
  284. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/visible-filtered-assertion.hbs +1 -1
  285. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/visible-with-role-variable-assertion.hbs +7 -3
  286. package/src/generators/test-generator/adapters/appium/templates/steps/partials/await-elements.hbs +12 -0
  287. package/src/generators/test-generator/adapters/appium/templates/test-file.hbs +94 -4
  288. package/src/generators/test-generator/adapters/playwright/templates/steps/actions/capture-variable.hbs +7 -1
  289. package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/label-value-assertion.hbs +7 -1
  290. package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/row-scoped-column-assertion.hbs +23 -1
  291. package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/visible-with-role-variable-assertion.hbs +8 -4
  292. package/src/generators/test-generator/adapters/playwright/templates/steps/partials/locator-base.hbs +4 -4
  293. package/src/generators/test-generator/adapters/playwright/templates/steps/partials/locator-strategies/default.hbs +1 -1
  294. package/src/generators/test-generator/adapters/playwright/templates/steps/partials/locator-strategies/id.hbs +1 -1
  295. package/src/generators/test-generator/adapters/playwright/templates/steps/partials/locator.hbs +4 -4
  296. package/src/generators/test-generator/adapters/playwright/templates/steps/partials/url-assertion.hbs +17 -2
  297. package/src/generators/test-generator/adapters/playwright/templates/test-file.hbs +14 -0
  298. package/src/generators/test-generator/code-generator.ts +119 -19
  299. package/src/generators/test-generator/diagnostics.ts +70 -4
  300. package/src/generators/test-generator/patterns/index.ts +16 -9
  301. package/src/generators/test-generator/patterns/types.ts +15 -0
  302. package/src/generators/test-generator/patterns/with-parent-scope.ts +6 -0
  303. package/src/generators/test-generator/step-mapper.ts +196 -13
  304. package/src/generators/test-generator/template-engine.ts +18 -0
  305. package/src/generators/test-generator/utils/data-resolver.ts +41 -12
  306. package/src/generators/test-generator/utils/selector-entry-fields.ts +1 -0
  307. package/src/generators/test-generator/utils/selector-resolver.ts +256 -85
  308. package/src/harness/audit.ts +41 -12
  309. package/src/harness/capability.ts +23 -12
  310. package/src/harness/catalog/universal-viewpoints.yaml +5 -5
  311. package/src/harness/config-file.ts +66 -0
  312. package/src/harness/depth-lint.ts +2 -1
  313. package/src/harness/flow-check.ts +6 -2
  314. package/src/harness/keyword-match.ts +85 -0
  315. package/src/harness/next-step.ts +2 -1
  316. package/src/harness/parse.ts +42 -7
  317. package/src/harness/perf.ts +15 -7
  318. package/src/harness/quality-gates.ts +16 -4
  319. package/src/harness/query-catalog.ts +0 -0
  320. package/src/harness/read-text.ts +7 -1
  321. package/src/harness/secret-scan.ts +60 -4
  322. package/src/harness/sensors.ts +50 -19
  323. package/src/harness/spec-branches.ts +72 -14
  324. package/src/harness/spec-coverage.ts +133 -13
  325. package/src/harness/viewpoint-ledger.ts +2 -1
  326. package/src/harness/write-atomic.ts +22 -0
  327. package/src/orchestrator/ai-skills/writer.ts +18 -3
  328. package/src/orchestrator/appium-environment-setup.ts +127 -0
  329. package/src/orchestrator/assets-drift.ts +10 -5
  330. package/src/orchestrator/mobile-runtime-scaffolder.ts +2 -0
  331. package/src/orchestrator/project-deps-sync.ts +23 -1
  332. package/src/orchestrator/project-initializer.ts +69 -7
  333. package/src/orchestrator/security-overrides-catalog.ts +69 -0
  334. package/src/orchestrator/security-overrides.ts +149 -0
  335. package/src/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +14 -0
  336. package/src/orchestrator/templates/ai-src/skills/sungen-error-mapping/SKILL.md +8 -2
  337. package/src/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +64 -2
  338. package/src/orchestrator/templates/ai-src/skills/sungen-selector-keys/SKILL.md +13 -1
  339. package/src/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +20 -5
  340. package/src/orchestrator/templates/ai-src/skills/sungen-tc-review/SKILL.md +3 -3
  341. package/src/orchestrator/templates/appium-environment/README.md +83 -0
  342. package/src/orchestrator/templates/appium-environment/scripts/common/install-appium.ps1 +44 -0
  343. package/src/orchestrator/templates/appium-environment/scripts/common/install-appium.sh +50 -0
  344. package/src/orchestrator/templates/appium-environment/scripts/common/lib.ps1 +108 -0
  345. package/src/orchestrator/templates/appium-environment/scripts/common/lib.sh +141 -0
  346. package/src/orchestrator/templates/appium-environment/scripts/common/verify-appium.ps1 +39 -0
  347. package/src/orchestrator/templates/appium-environment/scripts/common/verify-appium.sh +43 -0
  348. package/src/orchestrator/templates/appium-environment/scripts/common/verify-node.ps1 +13 -0
  349. package/src/orchestrator/templates/appium-environment/scripts/common/verify-node.sh +16 -0
  350. package/src/orchestrator/templates/appium-environment/scripts/macos/install-android.sh +110 -0
  351. package/src/orchestrator/templates/appium-environment/scripts/macos/install-ios.sh +32 -0
  352. package/src/orchestrator/templates/appium-environment/scripts/macos/verify-android.sh +32 -0
  353. package/src/orchestrator/templates/appium-environment/scripts/macos/verify-ios.sh +15 -0
  354. package/src/orchestrator/templates/appium-environment/scripts/windows/install-android.ps1 +153 -0
  355. package/src/orchestrator/templates/appium-environment/scripts/windows/verify-android.ps1 +26 -0
  356. package/src/orchestrator/templates/appium-environment/setup.ps1 +58 -0
  357. package/src/orchestrator/templates/appium-environment/setup.sh +88 -0
  358. package/src/orchestrator/templates/specs-checked-state.ts +31 -6
  359. package/src/orchestrator/templates/specs-locale-fixture.ts +21 -9
  360. package/src/orchestrator/templates/specs-mock.ts +12 -4
  361. package/src/orchestrator/templates/specs-pw-shape-reporter.ts +0 -0
  362. package/src/orchestrator/templates/specs-url-assert.ts +24 -2
  363. package/src/orchestrator/templates/wdio.conf.ts +24 -1
@@ -186,12 +186,29 @@
186
186
  * build names itself at generate time instead of one step further downstream
187
187
  *
188
188
  * SG-W028 — a step's trailing scope clause was DROPPED, so the step runs against more of the page
189
- * than its sentence names. Two causes, one code: the `<word>` after `in [X]` is not a
189
+ * than its sentence names. Three causes, one code: the `<word>` after `in [X]` is not a
190
190
  * container type (a typo, or a leaf element used as a parent), or the by-content form
191
191
  * `in [X] <type> with {{v}}` was written for the mobile adapter, which chains a parent
192
192
  * element and has no content filter. Before this, both compiled clean and silently
193
193
  * widened the assertion to the whole screen — the failure mode that only a diff of the
194
- * generated spec against the Gherkin could reveal (#667)
194
+ * generated spec against the Gherkin could reveal (#667).
195
+ * The third is the RENDER-time half #667 could not reach: the clause parsed and the
196
+ * container resolved, but the step form that won the sentence emits a locator built
197
+ * inline and never applies it. Judged on the emitted code — every path that honours a
198
+ * scope emits the resolved container locator verbatim, so its absence IS the drop —
199
+ * which makes the check total rather than a list of templates to keep in sync. Found
200
+ * via `see [学科] label with {{v}} in [Education Card 6] card` compiling to a page-wide
201
+ * `getByText` on a screen repeating ten identical cards (#747)
202
+ * SG-W037 — a `type: page` entry says something about the QUERY that the compiler cannot use.
203
+ * Two causes, one code, and the same root confusion behind both: a bare `see [X] page`
204
+ * asserts the URL carries NO query (#464), which is unsatisfiable for a page keyed by
205
+ * one (`/admins/detail?id=5`, where the id comes from the row just clicked). Either the
206
+ * entry's `value` carries a `?`/`#` — dropped, because a page value is the path only and
207
+ * the pattern is matched against `u.pathname`, which never holds a query — or `query:`
208
+ * declares something other than `any`, which is ignored rather than read as permissive,
209
+ * since a typo must never quietly switch off the #464 assertion. Both used to be silent,
210
+ * and the first is how #748 was misdiagnosed in the field as a regex-escaping bug: the
211
+ * obvious workaround produced byte-identical output and no hint why
195
212
  * SG-W029 — a mobile (appium) feature compiled with NO usable app-package `Path:` — either the line
196
213
  * is missing outright, or it holds a web-style route (`Path: /applied-jobs`) that the
197
214
  * package guard rejects. Both used to be silent, and both cost the same two things: the
@@ -218,16 +235,65 @@
218
235
  * signal (SG-W030) it is not dropped-and-warned: with no signal the step is back on the
219
236
  * failure the declaration exists to fix. Recorded here AND thrown, so a pattern that
220
237
  * resolves selectors inside a `catch` cannot swallow it silently
238
+ * SG-W032 — a step carries the row filter `in [T] table with {{v}}` but the pattern that won it
239
+ * dropped the clause, so the generated code runs against the WHOLE table. Reproduced
240
+ * live: `Then User see [Status] text in [Job Table] table with {{v}}` asserts on every
241
+ * `.status` in the table and passes on a row the sentence never named. Judged on the
242
+ * emitted code — row scoping compiles to `.filter(` on every path that honours it — so
243
+ * the `table-*` family (which resolves the container itself, positioned rows included)
244
+ * and steps already refused elsewhere are excluded, as is the two-`with` form, which
245
+ * binds its tail to the parent and is the rewrite this message points at. A step that
246
+ * WRITES is excluded too: a write needs a value, so its `with {{v}}` IS that value and
247
+ * cannot also be a row filter — `fill [Search] field in [T] table with {{v}}` is an
248
+ * ordinary container-scoped write
249
+ * SG-W034 — a `see [X] column with {{v}}` step runs inside a table whose rows are declared with a
250
+ * `rows:` SHAPE, so the row is not an ARIA row and holds no ARIA cells — yet the
251
+ * assertion's only other way to reach a cell is `getByRole('cell')`, which matches
252
+ * nothing there. `columns.<col>.index` cannot rescue it either: it indexes that same
253
+ * empty set. Silent before this, and silent in the worst way — `toBeVisible()` on an
254
+ * empty locator fails as a timeout blaming the app. The message names the
255
+ * `columns.<col>.elements.cell` declaration that resolves the cell directly. Scoped to
256
+ * the `rows:` case on purpose: on a real <table> the role fallback is correct, and a
257
+ * diagnostic that fires on the correct spelling gets muted along with the real ones
258
+ * SG-E035 — `table match data:` on a table whose rows are declared with a `rows:` SHAPE and whose
259
+ * columns are not declared (or do not cover every column of the DataTable). The
260
+ * assertion reads the header row from `thead tr` and addresses cells as `td, th`;
261
+ * a list built from <div>s has neither, forever — not a render race — so the step can
262
+ * only wait out every timeout and fail on an empty header row. Refused at compile time
263
+ * instead, naming the `columns:` entries it needs. Declaring them replaces the runtime
264
+ * header read entirely: the index is known at compile time, and a column that names
265
+ * its own `elements.cell` addresses the cell without any table role at all
266
+ * SG-W036 — a `remember [X] … as {{v}}` capture whose entry selects by SHAPE (`locator`/`css`)
267
+ * and pins no `nth:`. A capture reads ONE element and the template takes the first
268
+ * match — the right default, and exactly what the documented `nth: 0` workaround asked
269
+ * for after Playwright's strict mode turned a list-shaped selector into a hard failure
270
+ * naming the count instead of the step. But "the first of many" is a decision: if the
271
+ * selector describes every item in a list, the captured value is the first row's rather
272
+ * than the one the scenario means, and nothing else would ever say so. Not reported for
273
+ * testid/label/placeholder/role+name/text entries, which name a particular thing —
274
+ * warning there would fire on nearly every capture in a suite
275
+ * SG-E038 — a `{{var}}` the compiler cannot resolve: no test-data file for the feature, no such
276
+ * key, or a key holding a list/map where a value was needed. Twenty-four step patterns
277
+ * used to catch this and emit the PLACEHOLDER TEXT as the value — `fill [ID] with
278
+ * {{valid_partner_id}}` compiled to `fill('${valid_partner_id}')`, generate exited 0,
279
+ * and the literal 20 characters were typed into the app. The field under test applied
280
+ * no format validation, so the string was accepted, the server saw an unknown user, and
281
+ * the scenario failed at the assertion it was written to fail at, for the reason it was
282
+ * written to fail: a suite that looked exactly right while feeding the system garbage.
283
+ * Worse than one wrong value — every run shared the SAME literal id, so a scenario
284
+ * needing a fresh user silently reused one and its state leaked between runs (#781).
285
+ * Note a feature resolves `{{var}}` against a data file named after ITSELF, so the
286
+ * second `.feature` in a screen directory starts life with no data file at all
221
287
  * Diagnostics never change the EXIT CODE by themselves; `sungen generate --strict` turns any
222
288
  * collected diagnostic into a non-zero exit. They are not all inert, though: SG-W001, SG-W011,
223
- * SG-E020, SG-E021, SG-W020, SG-E023, SG-E024, SG-E025, SG-E026 and SG-E027 additionally compile
289
+ * SG-E020, SG-E021, SG-W020, SG-E023, SG-E024, SG-E025, SG-E026, SG-E027, SG-E035 and SG-E038 additionally compile
224
290
  * the offending step to a runtime `throw` — a step that reads as a check and silently checks
225
291
  * nothing is worse than one that fails loudly — and SG-E031 refuses the file outright. (SG-E022 is
226
292
  * the one exception to the "blame the Gherkin" rule and throws nothing: the file is still written
227
293
  * so the user keeps the artifact to inspect.)
228
294
  * Generation always COMPLETES — the rest of the scenario and the rest of the file still compile.
229
295
  */
230
- export type DiagnosticCode = 'SG-W001' | 'SG-W002' | 'SG-W003' | 'SG-W004' | 'SG-W005' | 'SG-W006' | 'SG-W007' | 'SG-W008' | 'SG-W009' | 'SG-W010' | 'SG-W011' | 'SG-W012' | 'SG-W013' | 'SG-W014' | 'SG-W015' | 'SG-W016' | 'SG-W017' | 'SG-W018' | 'SG-E020' | 'SG-E021' | 'SG-W020' | 'SG-W021' | 'SG-W022' | 'SG-W023' | 'SG-W024' | 'SG-W026' | 'SG-E025' | 'SG-E026' | 'SG-E022' | 'SG-E023' | 'SG-E024' | 'SG-E027' | 'SG-W028' | 'SG-W029' | 'SG-W030' | 'SG-E031';
296
+ export type DiagnosticCode = 'SG-W001' | 'SG-W002' | 'SG-W003' | 'SG-W004' | 'SG-W005' | 'SG-W006' | 'SG-W007' | 'SG-W008' | 'SG-W009' | 'SG-W010' | 'SG-W011' | 'SG-W012' | 'SG-W013' | 'SG-W014' | 'SG-W015' | 'SG-W016' | 'SG-W017' | 'SG-W018' | 'SG-E020' | 'SG-E021' | 'SG-W020' | 'SG-W021' | 'SG-W022' | 'SG-W023' | 'SG-W024' | 'SG-W026' | 'SG-E025' | 'SG-E026' | 'SG-E022' | 'SG-E023' | 'SG-E024' | 'SG-E027' | 'SG-W028' | 'SG-W029' | 'SG-W030' | 'SG-E031' | 'SG-W032' | 'SG-W034' | 'SG-E035' | 'SG-W036' | 'SG-W037' | 'SG-E038';
231
297
  export interface Diagnostic {
232
298
  code: DiagnosticCode;
233
299
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/generators/test-generator/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AE,MAAM,CAAA;KAAO,GAAG,IAAI;IAInG,GAAG,IAAI,UAAU,EAAE;IAInB,IAAI,KAAK,IAAI,MAAM,CAElB;IAGD,qDAAqD;IACrD,WAAW,IAAI,MAAM,EAAE;CAOxB"}
@@ -187,12 +187,29 @@
187
187
  * build names itself at generate time instead of one step further downstream
188
188
  *
189
189
  * SG-W028 — a step's trailing scope clause was DROPPED, so the step runs against more of the page
190
- * than its sentence names. Two causes, one code: the `<word>` after `in [X]` is not a
190
+ * than its sentence names. Three causes, one code: the `<word>` after `in [X]` is not a
191
191
  * container type (a typo, or a leaf element used as a parent), or the by-content form
192
192
  * `in [X] <type> with {{v}}` was written for the mobile adapter, which chains a parent
193
193
  * element and has no content filter. Before this, both compiled clean and silently
194
194
  * widened the assertion to the whole screen — the failure mode that only a diff of the
195
- * generated spec against the Gherkin could reveal (#667)
195
+ * generated spec against the Gherkin could reveal (#667).
196
+ * The third is the RENDER-time half #667 could not reach: the clause parsed and the
197
+ * container resolved, but the step form that won the sentence emits a locator built
198
+ * inline and never applies it. Judged on the emitted code — every path that honours a
199
+ * scope emits the resolved container locator verbatim, so its absence IS the drop —
200
+ * which makes the check total rather than a list of templates to keep in sync. Found
201
+ * via `see [学科] label with {{v}} in [Education Card 6] card` compiling to a page-wide
202
+ * `getByText` on a screen repeating ten identical cards (#747)
203
+ * SG-W037 — a `type: page` entry says something about the QUERY that the compiler cannot use.
204
+ * Two causes, one code, and the same root confusion behind both: a bare `see [X] page`
205
+ * asserts the URL carries NO query (#464), which is unsatisfiable for a page keyed by
206
+ * one (`/admins/detail?id=5`, where the id comes from the row just clicked). Either the
207
+ * entry's `value` carries a `?`/`#` — dropped, because a page value is the path only and
208
+ * the pattern is matched against `u.pathname`, which never holds a query — or `query:`
209
+ * declares something other than `any`, which is ignored rather than read as permissive,
210
+ * since a typo must never quietly switch off the #464 assertion. Both used to be silent,
211
+ * and the first is how #748 was misdiagnosed in the field as a regex-escaping bug: the
212
+ * obvious workaround produced byte-identical output and no hint why
196
213
  * SG-W029 — a mobile (appium) feature compiled with NO usable app-package `Path:` — either the line
197
214
  * is missing outright, or it holds a web-style route (`Path: /applied-jobs`) that the
198
215
  * package guard rejects. Both used to be silent, and both cost the same two things: the
@@ -219,9 +236,58 @@
219
236
  * signal (SG-W030) it is not dropped-and-warned: with no signal the step is back on the
220
237
  * failure the declaration exists to fix. Recorded here AND thrown, so a pattern that
221
238
  * resolves selectors inside a `catch` cannot swallow it silently
239
+ * SG-W032 — a step carries the row filter `in [T] table with {{v}}` but the pattern that won it
240
+ * dropped the clause, so the generated code runs against the WHOLE table. Reproduced
241
+ * live: `Then User see [Status] text in [Job Table] table with {{v}}` asserts on every
242
+ * `.status` in the table and passes on a row the sentence never named. Judged on the
243
+ * emitted code — row scoping compiles to `.filter(` on every path that honours it — so
244
+ * the `table-*` family (which resolves the container itself, positioned rows included)
245
+ * and steps already refused elsewhere are excluded, as is the two-`with` form, which
246
+ * binds its tail to the parent and is the rewrite this message points at. A step that
247
+ * WRITES is excluded too: a write needs a value, so its `with {{v}}` IS that value and
248
+ * cannot also be a row filter — `fill [Search] field in [T] table with {{v}}` is an
249
+ * ordinary container-scoped write
250
+ * SG-W034 — a `see [X] column with {{v}}` step runs inside a table whose rows are declared with a
251
+ * `rows:` SHAPE, so the row is not an ARIA row and holds no ARIA cells — yet the
252
+ * assertion's only other way to reach a cell is `getByRole('cell')`, which matches
253
+ * nothing there. `columns.<col>.index` cannot rescue it either: it indexes that same
254
+ * empty set. Silent before this, and silent in the worst way — `toBeVisible()` on an
255
+ * empty locator fails as a timeout blaming the app. The message names the
256
+ * `columns.<col>.elements.cell` declaration that resolves the cell directly. Scoped to
257
+ * the `rows:` case on purpose: on a real <table> the role fallback is correct, and a
258
+ * diagnostic that fires on the correct spelling gets muted along with the real ones
259
+ * SG-E035 — `table match data:` on a table whose rows are declared with a `rows:` SHAPE and whose
260
+ * columns are not declared (or do not cover every column of the DataTable). The
261
+ * assertion reads the header row from `thead tr` and addresses cells as `td, th`;
262
+ * a list built from <div>s has neither, forever — not a render race — so the step can
263
+ * only wait out every timeout and fail on an empty header row. Refused at compile time
264
+ * instead, naming the `columns:` entries it needs. Declaring them replaces the runtime
265
+ * header read entirely: the index is known at compile time, and a column that names
266
+ * its own `elements.cell` addresses the cell without any table role at all
267
+ * SG-W036 — a `remember [X] … as {{v}}` capture whose entry selects by SHAPE (`locator`/`css`)
268
+ * and pins no `nth:`. A capture reads ONE element and the template takes the first
269
+ * match — the right default, and exactly what the documented `nth: 0` workaround asked
270
+ * for after Playwright's strict mode turned a list-shaped selector into a hard failure
271
+ * naming the count instead of the step. But "the first of many" is a decision: if the
272
+ * selector describes every item in a list, the captured value is the first row's rather
273
+ * than the one the scenario means, and nothing else would ever say so. Not reported for
274
+ * testid/label/placeholder/role+name/text entries, which name a particular thing —
275
+ * warning there would fire on nearly every capture in a suite
276
+ * SG-E038 — a `{{var}}` the compiler cannot resolve: no test-data file for the feature, no such
277
+ * key, or a key holding a list/map where a value was needed. Twenty-four step patterns
278
+ * used to catch this and emit the PLACEHOLDER TEXT as the value — `fill [ID] with
279
+ * {{valid_partner_id}}` compiled to `fill('${valid_partner_id}')`, generate exited 0,
280
+ * and the literal 20 characters were typed into the app. The field under test applied
281
+ * no format validation, so the string was accepted, the server saw an unknown user, and
282
+ * the scenario failed at the assertion it was written to fail at, for the reason it was
283
+ * written to fail: a suite that looked exactly right while feeding the system garbage.
284
+ * Worse than one wrong value — every run shared the SAME literal id, so a scenario
285
+ * needing a fresh user silently reused one and its state leaked between runs (#781).
286
+ * Note a feature resolves `{{var}}` against a data file named after ITSELF, so the
287
+ * second `.feature` in a screen directory starts life with no data file at all
222
288
  * Diagnostics never change the EXIT CODE by themselves; `sungen generate --strict` turns any
223
289
  * collected diagnostic into a non-zero exit. They are not all inert, though: SG-W001, SG-W011,
224
- * SG-E020, SG-E021, SG-W020, SG-E023, SG-E024, SG-E025, SG-E026 and SG-E027 additionally compile
290
+ * SG-E020, SG-E021, SG-W020, SG-E023, SG-E024, SG-E025, SG-E026, SG-E027, SG-E035 and SG-E038 additionally compile
225
291
  * the offending step to a runtime `throw` — a step that reads as a check and silently checks
226
292
  * nothing is worse than one that fails loudly — and SG-E031 refuses the file outright. (SG-E022 is
227
293
  * the one exception to the "blame the Gherkin" rule and throws nothing: the file is still written
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../../src/generators/test-generator/diagnostics.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoOG;;;AAWH,MAAa,oBAAoB;IAAjC;QACU,UAAK,GAAiB,EAAE,CAAC;IAuBnC,CAAC;IArBC,GAAG,CAAC,IAAoB,EAAE,OAAe,EAAE,UAA+C,EAAE;QAC1F,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3B,CAAC;IAGD,qDAAqD;IACrD,WAAW;QACT,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1B,MAAM,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,C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,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;YAChD,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,KAAK,GAAG,CAAC,CAAC,OAAO,GAAG,IAAI,EAAE,CAAC;QACnD,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,oDAwBC"}
@@ -31,7 +31,7 @@ export { maskRefsForMatching, unsupportedStepCode };
31
31
  * one of the two mobile patterns that must stay UNDECLARED.
32
32
  * 2. Both vocabularies then see their own verb, and ordinary PRIORITY decides the winner —
33
33
  * no matcher has to learn about the other. `tap … and accept alert` reaches
34
- * `click-with-alert` (21); `tap … in [T] table row 2` reaches `table-action-in-row-nth` (19);
34
+ * `click-with-alert` (21); `tap … in [T] table row 2` reaches `table-action-in-row-nth` (18);
35
35
  * a plain `tap` still lands on `mobile-tap` (15) ahead of `click-element` (10).
36
36
  *
37
37
  * Safe because every click-keyed matcher in the vocabulary is a word-boundary test (`\bclick(s)?\b`
@@ -139,8 +139,18 @@ export declare class PatternRegistry {
139
139
  private static filterParentByValue;
140
140
  /**
141
141
  * Resolve a `{{var}}` written where literal text is expected, leaving anything else untouched.
142
- * An unknown variable stays as written rather than throwing — the locator is then wrong in a way
143
- * the author can read, which beats losing the whole step.
142
+ *
143
+ * An unresolvable ref is NOT kept as written. That was the last of the #781 swallows, and the
144
+ * hardest to see, because the old rationale — "the locator is then wrong in a way the author can
145
+ * read, which beats losing the whole step" — is true of a locator NAME and false here. The second
146
+ * `with` in `see [Tag] header with {{label}} in [Job Card] card with {{job_title}}` binds to the
147
+ * PARENT scope, so the value lands in `.filter({ hasText: '{{job_title}}' })`: a scope that can
148
+ * never match, compiled with ZERO diagnostics and `generate` exiting 0. The author then reads a
149
+ * "element not found" timeout that says nothing about the missing test-data key.
150
+ *
151
+ * Letting it throw routes it to StepMapper.mapStep like every other ref, so the step names the
152
+ * ref and the file it wanted. Only a string that IS exactly `{{ref}}` is ever resolved here;
153
+ * anything else is returned untouched, so ordinary literal text is unaffected.
144
154
  */
145
155
  private static resolveInlineData;
146
156
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generators/test-generator/patterns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAyB,MAAM,SAAS,CAAC;AAG7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAQ9D,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;AASpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGnD;AAUD;;GAEG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAqB;;IAMrC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;OAEG;IACH,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAK3C;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI;IAejD;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,UAAU,GAAG,IAAI;IAwF1E;;OAEG;IACH;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IA2B7B,OAAO,CAAC,MAAM,CAAC,YAAY;IAwB3B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;IAyBxB;;;;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AAI;IAejD;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,UAAU,GAAG,IAAI;IAyF1E;;OAEG;IACH;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IA2B7B,OAAO,CAAC,MAAM,CAAC,YAAY;IAwB3B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;IAyBxB;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAUhC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAmBlC;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAQnC,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAsCrC;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAiBlC;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAMhC;;OAEG;IACH,OAAO,CAAC,cAAc;IAOtB;;OAEG;IACH,WAAW,IAAI,WAAW,EAAE;IAI5B;;OAEG;IACH,eAAe,IAAI,MAAM;CAG1B;AAID,cAAc,SAAS,CAAC"}
@@ -58,7 +58,7 @@ const TAP_GESTURE_FORMS = /\bdouble[-\s]?tap|\btap(?:s)?\b[^.]*\b(?:top of|at th
58
58
  * one of the two mobile patterns that must stay UNDECLARED.
59
59
  * 2. Both vocabularies then see their own verb, and ordinary PRIORITY decides the winner —
60
60
  * no matcher has to learn about the other. `tap … and accept alert` reaches
61
- * `click-with-alert` (21); `tap … in [T] table row 2` reaches `table-action-in-row-nth` (19);
61
+ * `click-with-alert` (21); `tap … in [T] table row 2` reaches `table-action-in-row-nth` (18);
62
62
  * a plain `tap` still lands on `mobile-tap` (15) ahead of `click-element` (10).
63
63
  *
64
64
  * Safe because every click-keyed matcher in the vocabulary is a word-boundary test (`\bclick(s)?\b`
@@ -195,6 +195,7 @@ class PatternRegistry {
195
195
  comment: resolved.comment,
196
196
  pattern: pattern.name,
197
197
  templateData: resolved.data,
198
+ parentLocator,
198
199
  };
199
200
  }
200
201
  if (pattern.generator) {
@@ -204,7 +205,7 @@ class PatternRegistry {
204
205
  return generatorStateMiss;
205
206
  // A generator returning nothing still falls through to the no-pattern path.
206
207
  const generated = pattern.generator(step, scoped);
207
- return generated ? { ...generated, pattern: pattern.name } : null;
208
+ return generated ? { ...generated, pattern: pattern.name, parentLocator } : null;
208
209
  }
209
210
  return null;
210
211
  }
@@ -418,19 +419,24 @@ class PatternRegistry {
418
419
  }
419
420
  /**
420
421
  * Resolve a `{{var}}` written where literal text is expected, leaving anything else untouched.
421
- * An unknown variable stays as written rather than throwing — the locator is then wrong in a way
422
- * the author can read, which beats losing the whole step.
422
+ *
423
+ * An unresolvable ref is NOT kept as written. That was the last of the #781 swallows, and the
424
+ * hardest to see, because the old rationale — "the locator is then wrong in a way the author can
425
+ * read, which beats losing the whole step" — is true of a locator NAME and false here. The second
426
+ * `with` in `see [Tag] header with {{label}} in [Job Card] card with {{job_title}}` binds to the
427
+ * PARENT scope, so the value lands in `.filter({ hasText: '{{job_title}}' })`: a scope that can
428
+ * never match, compiled with ZERO diagnostics and `generate` exiting 0. The author then reads a
429
+ * "element not found" timeout that says nothing about the missing test-data key.
430
+ *
431
+ * Letting it throw routes it to StepMapper.mapStep like every other ref, so the step names the
432
+ * ref and the file it wanted. Only a string that IS exactly `{{ref}}` is ever resolved here;
433
+ * anything else is returned untouched, so ordinary literal text is unaffected.
423
434
  */
424
435
  static resolveInlineData(text, context) {
425
436
  const match = text.match(/^\{\{([a-z0-9\-._]+)\}\}$/i);
426
437
  if (!match)
427
438
  return text;
428
- try {
429
- return context.dataResolver.resolveData(match[1], context.featureName);
430
- }
431
- catch {
432
- return text;
433
- }
439
+ return context.dataResolver.resolveData(match[1], context.featureName);
434
440
  }
435
441
  /**
436
442
  * Check if step matches a pattern matcher
@@ -1 +1 @@
1
- {"version":3,"file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C,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QACzE,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;OAEG;IACK,cAAc,CAAC,IAAgB,EAAE,OAA+B;QACtE,IAAI,OAAO,YAAY,MAAM,EAAE,CAAC;YAC9B,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC9B,CAAC;CACF;AArZD,0CAqZC;AAED,qGAAqG;AACrG,kFAAkF;AAClF,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generators/test-generator/patterns/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAgEA,wCAGC;AAhED,6DAAoE;AACpE,6DAAiF;AACjF,4EAAsE;AAS7D,oGATA,4CAAmB,OASA;AAR5B,mEAA8D;AAQhC,oGARrB,2CAAmB,OAQqB;AAPjD,8DAAoE;AACpE,2DAAsD;AACtD,gEAA+D;AAO/D;;;;GAIG;AACH,MAAM,iBAAiB,GAAG,uEAAuE,CAAC;AAElG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,cAAc,CAAC,IAAY;IACzC,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;A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79,21 @@ export interface PatternContext {
79
79
  adapterName?: string;
80
80
  /** Compile-diagnostics channel, so the pattern layer can report instead of throwing. */
81
81
  diagnostics?: DiagnosticsSink;
82
+ /**
83
+ * The container locator the step's `in [Parent] <type>` clause resolved to, already rendered —
84
+ * set by `withParentScope`, absent when the step carries no scope clause.
85
+ *
86
+ * `withParentScope` also stamps this onto everything the pattern RESOLVES, which is the seam that
87
+ * serves the ordinary case. It is not enough on its own: a pattern whose locator is not built from
88
+ * a selectors.yaml entry never has a `resolved` object to carry it. `see [学科] label with {{v}}`
89
+ * is exactly that — the ref names on-screen CAPTION text, so the common case has no entry at all,
90
+ * `resolveSelector` throws, and the branch renders from `{}`. The scope was then dropped with no
91
+ * diagnostic (#747), which is the silence #667 set out to end.
92
+ *
93
+ * Read it ONLY where the template's locator is built inline rather than from `resolved`; every
94
+ * other pattern gets the scope through `resolved` and must not apply it twice.
95
+ */
96
+ parentLocator?: string;
82
97
  /** App profile (qa/app.yaml merged over presets/defaults) — widget variants, recipes,
83
98
  * loading indicator, table row conventions. Typed loosely to keep the SPI decoupled;
84
99
  * the concrete shape is ResolvedAppProfile. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/generators/test-generator/patterns/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACt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AAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACpC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACrC"}
@@ -13,6 +13,11 @@ import { PatternContext } from './types';
13
13
  * Only the target's own scope is stamped; anything a pattern resolves that ALREADY carries a
14
14
  * `parentLocator` is left alone, so a pattern that builds its own container chain (table rows) keeps
15
15
  * winning over the generic one.
16
+ *
17
+ * The scope also rides on the CONTEXT itself, not only on what the pattern resolves. A pattern whose
18
+ * locator is built inline — `see [X] label with {{v}}` matches on-screen caption text and usually
19
+ * has no selectors.yaml entry at all, so `resolveSelector` throws and the branch renders from `{}` —
20
+ * has no `resolved` object for the stamp to land on, and lost the scope silently (#747).
16
21
  */
17
22
  export declare function withParentScope(context: PatternContext, parentLocator: string): PatternContext;
18
23
  //# sourceMappingURL=with-parent-scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"with-parent-scope.d.ts","sourceRoot":"","sources":["../../../../src/generators/test-generator/patterns/with-parent-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,GAAG,cAAc,CAuB9F"}
1
+ {"version":3,"file":"with-parent-scope.d.ts","sourceRoot":"","sources":["../../../../src/generators/test-generator/patterns/with-parent-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,GAAG,cAAc,CAwB9F"}
@@ -15,6 +15,11 @@ exports.withParentScope = withParentScope;
15
15
  * Only the target's own scope is stamped; anything a pattern resolves that ALREADY carries a
16
16
  * `parentLocator` is left alone, so a pattern that builds its own container chain (table rows) keeps
17
17
  * winning over the generic one.
18
+ *
19
+ * The scope also rides on the CONTEXT itself, not only on what the pattern resolves. A pattern whose
20
+ * locator is built inline — `see [X] label with {{v}}` matches on-screen caption text and usually
21
+ * has no selectors.yaml entry at all, so `resolveSelector` throws and the branch renders from `{}` —
22
+ * has no `resolved` object for the stamp to land on, and lost the scope silently (#747).
18
23
  */
19
24
  function withParentScope(context, parentLocator) {
20
25
  const scope = (resolved) => resolved && typeof resolved === 'object' && !resolved.parentLocator
@@ -33,6 +38,7 @@ function withParentScope(context, parentLocator) {
33
38
  });
34
39
  return {
35
40
  ...context,
41
+ parentLocator,
36
42
  selectorResolver,
37
43
  renderLocator: (resolved) => context.renderLocator(scope(resolved)),
38
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"with-parent-scope.js","sourceRoot":"","sources":["../../../../src/generators/test-generator/patterns/with-parent-scope.ts"],"names":[],"mappings":";;AAiBA,0CAuBC;AAtCD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,OAAuB,EAAE,aAAqB;IAC5E,MAAM,KAAK,GAAG,CAAI,QAAW,EAAK,EAAE,CAClC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,CAAE,QAAgB,CAAC,aAAa;QAC1E,CAAC,CAAC,EAAE,GAAI,QAAgB,EAAE,aAAa,EAAE;QACzC,CAAC,CAAC,QAAQ,CAAC;IAEf,+FAA+F;IAC/F,sEAAsE;IACtE,MAAM,gBAAgB,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE;QAC3D,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;YACxB,IAAI,IAAI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MAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACjF,CAAC;YACD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;YAClD,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAClE,CAAC;KACF,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,OAAO;QACV,aAAa;QACb,gBAAgB;QAChB,aAAa,EAAE,CAAC,QAAa,EAAE,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;KACzE,CAAC;AACJ,CAAC"}
@@ -6,6 +6,9 @@ export interface MappedStep {
6
6
  imports?: string[];
7
7
  pattern?: string;
8
8
  templateData?: Record<string, any>;
9
+ /** The container locator the step's `in [Parent] <type>` clause resolved to, when it carried one.
10
+ * Recorded so a post-map guard can check the scope actually reached the code (SG-W028, #747). */
11
+ parentLocator?: string;
9
12
  }
10
13
  /**
11
14
  * StepMapper - Orchestrates step-to-code conversion using pattern registry
@@ -94,7 +97,23 @@ export declare class StepMapper {
94
97
  * Map a Gherkin step to Playwright code
95
98
  * Uses pattern registry first, falls back to AI if enabled
96
99
  */
100
+ /**
101
+ * SG-E038 — the ONE place an unresolvable `{{var}}` is answered.
102
+ *
103
+ * Twenty-four step patterns used to catch the resolver's failure each in their own way and
104
+ * substitute the placeholder TEXT as the value, so `fill [ID] with {{valid_partner_id}}` shipped
105
+ * `fill('${valid_partner_id}')` — 20 literal characters typed into the app, `generate` exiting 0,
106
+ * and a scenario that failed exactly where it was written to fail, for the reason it was written
107
+ * to fail. Nothing told the run apart from a correct one (#781).
108
+ *
109
+ * The step now compiles to a throw naming the ref and the file, which is the house answer to
110
+ * "the compiler would otherwise invent something" (SG-E023/E024/E026 all work this way). A throw
111
+ * is preferred over letting the error kill the feature file, because one run then reports EVERY
112
+ * unresolved ref instead of the first; `--strict` turns the diagnostic into exit 1.
113
+ */
97
114
  mapStep(step: ParsedStep): MappedStep | Promise<MappedStep>;
115
+ private unresolvedDataRef;
116
+ private mapStepResolving;
98
117
  /** Strategies the `locator` partial renders into a usable ROOT expression. Anything else
99
118
  * (mobile native strategies) has no meaning as a Playwright dialog root. */
100
119
  private static readonly DIALOG_ROOT_STRATEGIES;
@@ -181,6 +200,68 @@ export declare class StepMapper {
181
200
  * error already owns — and an auto-inferred selector stamps no `selectorType`, so both skip.
182
201
  */
183
202
  private checkUnknownSelectorType;
203
+ /**
204
+ * The `in [T] table with {{v}}` row filter is the sentence's narrowest claim — it names ONE row.
205
+ * A pattern that does not consume it leaves the step running against the WHOLE table, and the
206
+ * author cannot see that from the Gherkin.
207
+ *
208
+ * Judged on the emitted code, not on which pattern won: `.filter(` is what row scoping compiles
209
+ * to on every path that honours the clause, so its absence is the fact. Three exclusions, each
210
+ * measured rather than assumed:
211
+ * - the `table-*` family resolves the container from the step text itself; its positioned-row
212
+ * form emits `toHaveCount(1)` + `toContainText` with no filter at all and is CORRECT;
213
+ * - a step already refused elsewhere compiles to a `throw`, and a second opinion on top of the
214
+ * refusal (an off-platform table step already gets SG-W020) is two contradictory messages
215
+ * about one step;
216
+ * - the two-`with` form binds its tail to the PARENT, which does compile to a filter — it is
217
+ * the shape this diagnostic points people at, so it must never be flagged.
218
+ *
219
+ * A step that WRITES is exempt rather than escalated — see ROW_FILTER_WRITE_CALL. It stays a
220
+ * WARNING for the rest, in line with the repo's rule that a diagnostic which cries wolf gets muted
221
+ * wholesale: the single-`with` sentence is genuinely ambiguous, and reading the value as the
222
+ * expected text is a legitimate compilation of it, just not the one most authors mean.
223
+ */
224
+ private static readonly ROW_FILTER_CLAUSE;
225
+ /**
226
+ * Calls that WRITE through the scoped locator, as opposed to reading it. Both adapters are listed:
227
+ * the mobile spelling of a fill is `setValue`/`addValue`.
228
+ *
229
+ * A write is EXEMPT, not escalated. A step that writes needs a value, so its `with {{v}}` is that
230
+ * value and cannot also be a row filter — `fill [Search] field in [Job Table] table with {{v}}` is
231
+ * an ordinary container-scoped write, and a toolbar search box inside a table is exactly that. The
232
+ * danger an earlier reading claimed for it does not exist either: on a multi-row table a
233
+ * mis-scoped write is a loud strict-mode failure, and on a single-row table there is only one
234
+ * field to write to.
235
+ */
236
+ private static readonly ROW_FILTER_WRITE_CALL;
237
+ private checkRowFilterClauseDropped;
238
+ /**
239
+ * The container scope parsed, resolved — and then never reached the emitted code.
240
+ *
241
+ * #667 closed the parse-time half of this: an `in [X] <word>` whose `<word>` is not a container
242
+ * type is reported (SG-W028) rather than truncated. It could not close the render-time half,
243
+ * because honouring the scope is per-template work: the registry stamps `parentLocator` on what a
244
+ * RESOLVER hands back and `withParentScope` stamps it on what any pattern RESOLVES, but a branch
245
+ * that builds its locator inline and renders from hand-picked fields receives neither. Three did,
246
+ * and `see [学科] label with {{v}} in [Education Card 6] card` compiled to a page-wide
247
+ * `getByText` with no diagnostic at all (#747) — a green test reading a card the sentence never
248
+ * names, findable only by diffing the generated spec against the Gherkin.
249
+ *
250
+ * So the fact is taken from the OUTPUT, exactly as SG-W032 takes the row filter from `.filter(`:
251
+ * every path that honours a container scope emits the resolved container locator verbatim, so its
252
+ * absence from the code IS the drop. That makes the guard total — it covers every template that
253
+ * exists now and every one added later, without a list to keep in sync.
254
+ *
255
+ * A step already refused elsewhere is excluded: it compiles to a `throw`, and a second opinion on
256
+ * top of a refusal is two contradictory messages about one step (SG-W032's reasoning, unchanged).
257
+ * The `throw` test covers a refusal the PATTERN layer recorded; a refusal one of the guards above
258
+ * substitutes is covered by call order instead — this one runs last.
259
+ *
260
+ * Returns `void`, not `MappedStep | null` like its siblings: it only ever REPORTS. Typed that way
261
+ * on purpose, so a future edit copying the sibling shape cannot assume a replacement step is being
262
+ * consumed when nothing is looking at one.
263
+ */
264
+ private checkParentScopeDropped;
184
265
  private checkAssertionClauseSwallowed;
185
266
  /**
186
267
  * A click step that names a POSITION (`at position "top-left"`, `at offset x=…, y=…`) must compile
@@ -1 +1 @@
1
- {"version":3,"file":"step-mapper.d.ts","sourceRoot":"","sources":["../../../src/generators/test-generator/step-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQ/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAgCrD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAED;;;GAGG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,uFAAuF;IACvF,OAAO,CAAC,eAAe,CAAC,CAA+B;IACvD,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,oBAAoB,CAAC,CAAe;IAC5C,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,YAAY,CAAkB;IACtC,8EAA8E;IAC9E,OAAO,CAAC,kBAAkB,CAAmB;IAC7C,uEAAuE;IACvE,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,aAAa,CAAc;IACnC;uFACmF;IACnF,OAAO,CAAC,kBAAkB,CAAa;IACvC,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,6G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