@rsaglobaltech/specgate 0.9.0 → 0.10.0

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 (55) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/README.md +10 -18
  3. package/bin/specgate.ts +10 -3
  4. package/dist/bin/specgate.js +8 -3
  5. package/dist/bin/specgate.js.map +1 -1
  6. package/dist/packages/core/src/domain/DoneVerification.js +22 -1
  7. package/dist/packages/core/src/domain/DoneVerification.js.map +1 -1
  8. package/dist/packages/core/src/domain/GherkinQuality.js +19 -3
  9. package/dist/packages/core/src/domain/GherkinQuality.js.map +1 -1
  10. package/dist/packages/core/src/domain/NewRequirement.js +46 -0
  11. package/dist/packages/core/src/domain/NewRequirement.js.map +1 -0
  12. package/dist/packages/core/src/domain/RequirementPlan.js +1 -0
  13. package/dist/packages/core/src/domain/RequirementPlan.js.map +1 -1
  14. package/dist/packages/core/src/domain/TraceabilityFormat.js +8 -1
  15. package/dist/packages/core/src/domain/TraceabilityFormat.js.map +1 -1
  16. package/dist/packages/core/test/unit/done-verification.test.js +7 -6
  17. package/dist/packages/core/test/unit/done-verification.test.js.map +1 -1
  18. package/dist/packages/core/test/unit/gherkin-quality.test.js +28 -0
  19. package/dist/packages/core/test/unit/gherkin-quality.test.js.map +1 -1
  20. package/dist/packages/core/test/unit/new-requirement.test.js +67 -0
  21. package/dist/packages/core/test/unit/new-requirement.test.js.map +1 -0
  22. package/dist/scripts/agents/init.js +58 -14
  23. package/dist/scripts/agents/init.js.map +1 -1
  24. package/dist/scripts/check.js +10 -0
  25. package/dist/scripts/check.js.map +1 -0
  26. package/dist/scripts/cli/commands/harness/RunCommand.js +11 -5
  27. package/dist/scripts/cli/commands/harness/RunCommand.js.map +1 -1
  28. package/dist/scripts/cli/commands/project/AdoptCommand.js +6 -6
  29. package/dist/scripts/cli/commands/project/AdoptCommand.js.map +1 -1
  30. package/dist/scripts/cli/commands/project/InitProjectCommand.js +42 -1
  31. package/dist/scripts/cli/commands/project/InitProjectCommand.js.map +1 -1
  32. package/dist/scripts/cli/commands/project/UpdateCommand.js +118 -8
  33. package/dist/scripts/cli/commands/project/UpdateCommand.js.map +1 -1
  34. package/dist/scripts/cli/commands/quality/CheckCommand.js +184 -0
  35. package/dist/scripts/cli/commands/quality/CheckCommand.js.map +1 -0
  36. package/dist/scripts/cli/commands/quality/ValidateSpecsCommand.js +66 -6
  37. package/dist/scripts/cli/commands/quality/ValidateSpecsCommand.js.map +1 -1
  38. package/dist/scripts/cli/commands/spec/DoneCommand.js +2 -2
  39. package/dist/scripts/cli/commands/spec/DoneCommand.js.map +1 -1
  40. package/dist/scripts/cli/commands/spec/NewCommand.js +178 -0
  41. package/dist/scripts/cli/commands/spec/NewCommand.js.map +1 -0
  42. package/dist/scripts/cli/commands/spec/PlanCommand.js +1 -1
  43. package/dist/scripts/cli/commands/spec/PlanCommand.js.map +1 -1
  44. package/dist/scripts/cli/commands/spec/ReqCommand.js +15 -5
  45. package/dist/scripts/cli/commands/spec/ReqCommand.js.map +1 -1
  46. package/dist/scripts/cli/commands/spec/StatusCommand.js +84 -32
  47. package/dist/scripts/cli/commands/spec/StatusCommand.js.map +1 -1
  48. package/dist/scripts/lib/surface.js +54 -32
  49. package/dist/scripts/lib/surface.js.map +1 -1
  50. package/dist/scripts/new.js +10 -0
  51. package/dist/scripts/new.js.map +1 -0
  52. package/dist/scripts/plugin/gate-hook.js +2 -2
  53. package/dist/scripts/plugin/gate-hook.js.map +1 -1
  54. package/package.json +1 -1
  55. package/templates/harness/harness.config.yaml.tpl +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsaglobaltech/specgate",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Specs as executable contracts \u2014 requirements, scenarios and traceability that CI enforces.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -34,7 +34,7 @@ harness_version: 1
34
34
  #
35
35
  # An explicit `agent:` wins over a profile.
36
36
 
37
- # An *additional* gate, on top of the `validate --strict-tdd` the harness always
37
+ # An *additional* gate, on top of the `validate --strict` the harness always
38
38
  # runs. Left commented out when no build file gave it away — an unset key is
39
39
  # safe, whereas a placeholder that exits 0 would be a gate that always passes.
40
40
  #
@@ -45,8 +45,8 @@ harness_version: 1
45
45
  # {scenario} SCN-007
46
46
  # {feature_file} features/billing/refund.feature
47
47
  #
48
- # Worth using. The gate runs before `specgate done`, so the requirement is still
49
- # Draft and `validate --strict-tdd` does not yet demand its test — without one
48
+ # Worth using. `validate` checks that the requirement's declared files exist;
49
+ # only a test command checks that they do what the scenario says — without one
50
50
  # of these, a requirement can be marked Implemented with its scenario never run:
51
51
  #
52
52
  # test_cmd: "npm run verify && npm run test:e2e -- {feature_file}"