@gonovus-ai/spec-flow-cli 2.5.1 → 2.6.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 (81) hide show
  1. package/README.md +16 -3
  2. package/dist/acceptance-commands.js +20 -2
  3. package/dist/acceptance-commands.js.map +1 -1
  4. package/dist/agent-commands.js +2 -0
  5. package/dist/agent-commands.js.map +1 -1
  6. package/dist/agent-preference-commands.d.ts +12 -0
  7. package/dist/agent-preference-commands.js +126 -0
  8. package/dist/agent-preference-commands.js.map +1 -0
  9. package/dist/capability-commands.d.ts +3 -0
  10. package/dist/capability-commands.js +92 -0
  11. package/dist/capability-commands.js.map +1 -0
  12. package/dist/cli-command-context.d.ts +31 -0
  13. package/dist/cli-command-context.js +2 -0
  14. package/dist/cli-command-context.js.map +1 -0
  15. package/dist/cli-command-support.d.ts +62 -0
  16. package/dist/cli-command-support.js +118 -0
  17. package/dist/cli-command-support.js.map +1 -0
  18. package/dist/cli.js +68 -3817
  19. package/dist/cli.js.map +1 -1
  20. package/dist/global-search-commands.d.ts +4 -0
  21. package/dist/global-search-commands.js +23 -0
  22. package/dist/global-search-commands.js.map +1 -0
  23. package/dist/notification-commands.d.ts +3 -0
  24. package/dist/notification-commands.js +184 -0
  25. package/dist/notification-commands.js.map +1 -0
  26. package/dist/project-commands.d.ts +4 -0
  27. package/dist/project-commands.js +127 -0
  28. package/dist/project-commands.js.map +1 -0
  29. package/dist/proposal-commands.d.ts +3 -0
  30. package/dist/proposal-commands.js +165 -0
  31. package/dist/proposal-commands.js.map +1 -0
  32. package/dist/resource-command-runtime.d.ts +2 -0
  33. package/dist/runner/orchestrator.js +3 -1
  34. package/dist/runner/orchestrator.js.map +1 -1
  35. package/dist/runner/telemetry-bridge.d.ts +13 -1
  36. package/dist/runner/telemetry-bridge.js +29 -2
  37. package/dist/runner/telemetry-bridge.js.map +1 -1
  38. package/dist/runner/types.d.ts +2 -0
  39. package/dist/runner/workflow.js +6 -0
  40. package/dist/runner/workflow.js.map +1 -1
  41. package/dist/spec-commands.d.ts +4 -0
  42. package/dist/spec-commands.js +347 -0
  43. package/dist/spec-commands.js.map +1 -0
  44. package/dist/token-commands.d.ts +3 -0
  45. package/dist/token-commands.js +79 -0
  46. package/dist/token-commands.js.map +1 -0
  47. package/dist/work-item-commands.d.ts +4 -0
  48. package/dist/work-item-commands.js +978 -0
  49. package/dist/work-item-commands.js.map +1 -0
  50. package/dist/work-item-comment-commands.d.ts +4 -0
  51. package/dist/work-item-comment-commands.js +160 -0
  52. package/dist/work-item-comment-commands.js.map +1 -0
  53. package/dist/work-item-custom-field-commands.d.ts +3 -0
  54. package/dist/work-item-custom-field-commands.js +209 -0
  55. package/dist/work-item-custom-field-commands.js.map +1 -0
  56. package/dist/work-item-label-commands.d.ts +3 -0
  57. package/dist/work-item-label-commands.js +224 -0
  58. package/dist/work-item-label-commands.js.map +1 -0
  59. package/dist/work-item-relation-commands.d.ts +4 -0
  60. package/dist/work-item-relation-commands.js +209 -0
  61. package/dist/work-item-relation-commands.js.map +1 -0
  62. package/dist/workflow-column-commands.d.ts +3 -0
  63. package/dist/workflow-column-commands.js +206 -0
  64. package/dist/workflow-column-commands.js.map +1 -0
  65. package/dist/workspace-commands.d.ts +4 -0
  66. package/dist/workspace-commands.js +299 -0
  67. package/dist/workspace-commands.js.map +1 -0
  68. package/dist/workspace-finding-commands.d.ts +4 -0
  69. package/dist/workspace-finding-commands.js +303 -0
  70. package/dist/workspace-finding-commands.js.map +1 -0
  71. package/dist/workspace-glossary-commands.d.ts +4 -0
  72. package/dist/workspace-glossary-commands.js +121 -0
  73. package/dist/workspace-glossary-commands.js.map +1 -0
  74. package/dist/workspace-review-commands.d.ts +4 -0
  75. package/dist/workspace-review-commands.js +108 -0
  76. package/dist/workspace-review-commands.js.map +1 -0
  77. package/guides/acceptance.md +8 -1
  78. package/guides/agent-sessions.md +34 -0
  79. package/guides/versions.md +5 -1
  80. package/guides/work-items.md +26 -2
  81. package/package.json +1 -1
@@ -47,7 +47,11 @@ specflow version scope remove --workspace-id W --version-id v2.4 --expected-vers
47
47
  Updates (`--health on-track|at-risk --body TEXT`).
48
48
  - A Work Item belongs to at most one unsealed Version: adding it elsewhere moves it.
49
49
  A done Work Item cannot be pulled out of another Version. `work-item create|update
50
- --version-id ID` plans one task (`--clear-version` takes it out).
50
+ --version-id ID` plans one task (`--clear-version` takes it out). A new subtask
51
+ created with `--relation-direction parent` joins its parent's unsealed Version
52
+ unless `--version-id` or `--without-version` says otherwise; linking an existing
53
+ Task as a subtask leaves its Version alone. Which Version a new Task goes in by
54
+ default is in the `work-items` guide.
51
55
  - `--scenario` and `--term` need `--change added|modified|removed`; `modified` and
52
56
  `removed` must name a published Scenario or term. `--spec` with `--title`, or
53
57
  `--new-term`, registers an `added` change before it exists. `--item` takes the
@@ -45,6 +45,27 @@ people who pick it up understand the real problem, not a guessed implementation.
45
45
  and verification notes in comments or a section of their own, never over the
46
46
  product description.
47
47
 
48
+ ### Planning a new Task in a Version
49
+
50
+ Every new Task, Bug included, belongs to the delivery Version it ships in (see the
51
+ `versions` guide). Before creating Tasks, read `version list --workspace-id W` once
52
+ for the batch and decide:
53
+
54
+ - The User named a Version, or said to keep the Task out of one: do that
55
+ (`--version-id v2.4`, or `--without-version`).
56
+ - A new subtask created with `--relation-direction parent` under a parent that is
57
+ in an unsealed Version joins that Version by itself; pass nothing. When the parent
58
+ has no Version, decide as for any other Task.
59
+ - Otherwise, when exactly one Version is `active`, pass `--version-id` with it.
60
+ - When several Versions are `active`, or none is `active` but some are `planned`, ask
61
+ the User once which one the batch goes in, or none. With no unsealed Version, pass
62
+ nothing and do not mention Versions.
63
+ - When `canManage` is false, create the Task without a Version and say that someone
64
+ who manages Versions has to plan it.
65
+
66
+ Report the Version each new Task landed in (the output's `plannedVersion`) and that
67
+ the User can ask to move it (`work-item update --version-id ID` or `--clear-version`).
68
+
48
69
  ### A Requirement is the parent of the work that delivers it
49
70
 
50
71
  SpecFlow tracks a Requirement and the Tasks that deliver it as one tree: the
@@ -54,8 +75,11 @@ shows the children's progress, and the `hasParent`/`hasChildren` filters and the
54
75
 
55
76
  - When the User breaks a Requirement into work, or files work that delivers one (an
56
77
  implementation, design or test Task, a Technical task, a Bug whose fix is part of
57
- delivering it), search for the Requirement and for delivery Tasks that already exist,
58
- then link each new or existing one as a child: `work-item subtask link --project-id
78
+ delivering it), search for the Requirement and for delivery Tasks that already exist.
79
+ Create each new one as a child in the same command (`work-item create
80
+ --relation-direction parent --relation-target-project-id PARENT_PROJECT
81
+ --relation-target-work-item-id REQ`), so it also joins the Requirement's Version;
82
+ link each existing one as a child: `work-item subtask link --project-id
59
83
  PARENT_PROJECT --parent REQ --child TASK --idempotency-key KEY`, adding
60
84
  `--child-project-id` for a child in another Project. Do not use `related` for this,
61
85
  and do not fold the children into the Requirement's description. File a missing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonovus-ai/spec-flow-cli",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "SpecFlow supported command-line client",
5
5
  "repository": {
6
6
  "type": "git",