@we-scrum/cli 6.11.20 → 6.11.22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-scrum/cli",
3
- "version": "6.11.20",
3
+ "version": "6.11.22",
4
4
  "description": "Cli tool for we-scrum application",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
@@ -39,11 +39,11 @@
39
39
  "tsup": "^8.5.1",
40
40
  "typescript": "^6.0.3",
41
41
  "@my-devkit/cli": "2.1.0",
42
- "@we-scrum/commands": "1.0.0",
43
42
  "@my-devkit/core": "1.0.0",
44
- "@we-scrum/utils": "1.0.0",
43
+ "@we-scrum/commands": "1.0.0",
44
+ "@we-scrum/enums": "1.0.0",
45
45
  "@we-scrum/models": "1.0.0",
46
- "@we-scrum/enums": "1.0.0"
46
+ "@we-scrum/utils": "1.0.0"
47
47
  },
48
48
  "scripts": {
49
49
  "start": "node dist/cli.js",
@@ -2,12 +2,14 @@ import Handlebars from 'handlebars';
2
2
  import analyseStorySkill from '../../templates/analyse-story-skill.hbs';
3
3
  import analysisDsl from '../../templates/analysis-dsl.md';
4
4
  import analysisReviewCriteria from '../../templates/analysis-review-criteria.hbs';
5
+ import changeThreadTopics from '../../templates/change-thread-topics.hbs';
5
6
  import developStorySkill from '../../templates/develop-story-skill.hbs';
6
7
  import getNextTaskBreakpoint from '../../templates/get-next-task-breakpoint.hbs';
7
8
  import getNextTask from '../../templates/get-next-task.hbs';
8
9
  import reviewAnalysisSkill from '../../templates/review-analysis-skill.hbs';
9
10
 
10
11
  Handlebars.registerPartial('analysis-review-criteria', analysisReviewCriteria);
12
+ Handlebars.registerPartial('change-thread-topics', changeThreadTopics);
11
13
 
12
14
  const sources = {
13
15
  'analyse-story-skill': analyseStorySkill,
@@ -224,6 +224,7 @@ export class WeScrumHelper {
224
224
  endDate: options.endDate ?? iteration.endDate,
225
225
  capacity: options.capacity ?? iteration.capacity,
226
226
  comment: options.comment ?? iteration.comment,
227
+ iterationType: iteration.iterationType,
227
228
  }),
228
229
  );
229
230
  }
@@ -118,8 +118,10 @@ we-scrum update-change-thread-status --changeThreadId <changeThreadId> --status
118
118
 
119
119
  - A thread is only resolved when its concern is actually addressed.
120
120
  - `Resolved` and `Archived` threads are history: read them to avoid raising the same concern again, never reopen them.
121
- - Always reply on an existing thread of the change instead of opening a duplicate.
122
- - Comments are Markdown. Open one thread per concern, grouped by change.
121
+ - Never open a duplicate: reply on the existing thread of the change covering the same topic.
122
+ - Comments are Markdown. A reply stays within the topic of its thread.
123
+
124
+ {{> change-thread-topics}}
123
125
 
124
126
  A request to remove a change is applied by deleting it (`we-scrum delete-change --changeId <changeId>`). The threads of a deleted change disappear with it: reply and resolve first.
125
127
 
@@ -145,7 +147,7 @@ When a command fails, read the error, fix the change and send it again.
145
147
 
146
148
  ## Step 9 — Ask for the missing information
147
149
 
148
- When a guideline requires information that the story description does not give, do not invent it: write the change with what is known, then open a question thread on it listing the missing information.
150
+ When a guideline requires information that the story description does not give, do not invent it: write the change with what is known, then open one question thread on it per topic of missing information.
149
151
 
150
152
  ```bash
151
153
  we-scrum create-change-thread --changeId <changeId> --comment "<markdown question>"
@@ -153,7 +155,7 @@ we-scrum create-change-thread --changeId <changeId> --comment "<markdown questio
153
155
 
154
156
  ---
155
157
 
156
- ## Step 10 — Remove the obsolete changes and reorganize
158
+ ## Step 10 — Remove the obsolete changes
157
159
 
158
160
  Run `get-story-analysis` again, then delete the obsolete changes one by one, in the order given by the reference:
159
161
 
@@ -163,15 +165,6 @@ we-scrum delete-change --changeId <obsoleteChangeId>
163
165
 
164
166
  When many changes are to be deleted, list them and ask for confirmation first.
165
167
 
166
- Then sort the sections and changes in a logical order, listing every remaining change:
167
-
168
- ```bash
169
- we-scrum reorganize-story-analysis --identificationNumber <identificationNumber> <<'EOF'
170
- # <Section>
171
- > id: <changeId>
172
- EOF
173
- ```
174
-
175
168
  ---
176
169
 
177
170
  ## Step 11 — Self-review
@@ -184,14 +177,29 @@ Fix what does not pass.
184
177
 
185
178
  ---
186
179
 
187
- ## Step 12 — Guidelines feedback
180
+ ## Step 12 — Reorganize
181
+
182
+ Always run this step, even when there is a single change or the order is already right: it also removes the empty sections.
183
+
184
+ Sort the sections and changes in a logical order, listing every change of the analysis, and only the sections holding at least one change:
185
+
186
+ ```bash
187
+ we-scrum reorganize-story-analysis --identificationNumber <identificationNumber> <<'EOF'
188
+ # <Section>
189
+ > id: <changeId>
190
+ EOF
191
+ ```
192
+
193
+ ---
194
+
195
+ ## Step 13 — Guidelines feedback
188
196
 
189
197
  Before concluding, ask for each change written: was the matching analysis guideline missing, ambiguous or insufficient for what had to be decided?
190
198
 
191
- If yes, check the existing threads of the change first: reply to its guidelines thread when there is one, otherwise open one with a concrete suggested addition or correction. At most one guidelines feedback thread per change, never mixed with a question thread. Post nothing when the guideline was accurate and sufficient.
199
+ If yes, check the existing threads of the change first. Open one guidelines feedback thread per topic, with a concrete suggested addition or correction, or reply to the guidelines thread already covering that topic. Guidelines feedback is never mixed with a question thread. Post nothing when the guideline was accurate and sufficient.
192
200
 
193
201
  ---
194
202
 
195
- ## Step 13 — Summarize
203
+ ## Step 14 — Summarize
196
204
 
197
205
  Summarize what was created, updated and removed, then list the threads still waiting for the user.
@@ -0,0 +1,5 @@
1
+ **One thread per topic** — the status of a thread and the replies to it apply to the thread as a whole:
2
+ - a thread, and its first comment, covers **one topic**: one concern which can be answered and resolved on its own
3
+ - unrelated topics are posted as separate threads, even on the same change
4
+ - points belonging to the same topic stay in the same thread
5
+ - reply to an existing thread (whatever its status) only when it covers the same topic, otherwise open a new one
@@ -59,4 +59,4 @@ Before committing any task, run ESLint on every modified file and fix all report
59
59
  npx eslint <file1> <file2> ...
60
60
  ```
61
61
 
62
- Every task ends with a mandatory pre-completion check (deviation thread and development guidelines feedback thread, see the task's "Next steps"). Adjustments requested by the developer during or after a task count as deviations. If a thread is needed, post it before running `we-scrum complete-task`; if you realize afterwards that one was missed, post it right away.
62
+ Every task ends with a mandatory pre-completion check (deviation threads and guidelines feedback threads, one per topic, see the task's "Next steps"). Adjustments requested by the developer during or after a task count as deviations. If threads are needed, post them before running `we-scrum complete-task`; if you realize afterwards that one was missed, post it right away.
@@ -23,17 +23,20 @@ The task below is written in the analysis DSL, described in `.claude/skills/anal
23
23
  1. If the task description explicitly refers to the story description or lacks the clarity needed to proceed, run `we-scrum get-story-description --identificationNumber "{{identificationNumber}}"` to retrieve the full story description. Skip this step otherwise.
24
24
  1. Implement the task described above.
25
25
  1. Commit your changes.
26
- 1. **Pre-completion check — mandatory, answer both questions explicitly before running `complete-task`.** Threads posted after completion are late, so do this now:
27
- - **Deviations:** does the final result differ in any way from what this task describes (different naming, different location, a sub-step skipped or altered, a workaround for a blocker, a mistake you had to correct mid-way)? Changes made at the developer's request during the session (after feedback, redesigns, extra options or components added) count as deviations too. If yes, first run `we-scrum get-change-threads` and check the existing threads. If a thread already covers the deviation (whatever its status), reply to it with `we-scrum add-comment-to-change-thread` instead of creating a duplicate; otherwise post **one** thread explaining what differs and why:
26
+ 1. **Pre-completion check — mandatory, answer both questions explicitly before running `complete-task`.** Threads posted after completion are late, so do this now. First run `we-scrum get-change-threads --changeId "{{changeId}}"` to check the existing threads, then post following this rule:
27
+
28
+ {{> change-thread-topics}}
29
+
30
+ - **Deviations:** does the final result differ in any way from what this task describes (different naming, different location, a sub-step skipped or altered, a workaround for a blocker, a mistake you had to correct mid-way)? Changes made at the developer's request during the session (after feedback, redesigns, extra options or components added) count as deviations too. If yes, post one thread per topic, explaining what differs and why (or reply with `we-scrum add-comment-to-change-thread` to the thread already covering that topic). Stay reasonable: minor deviations do not each need their own thread, so gather them and keep distinct threads (typically 2 or 3) for what is really unrelated:
28
31
  ```bash
29
32
  we-scrum create-change-thread --changeId "{{changeId}}" --comment "<markdown explaining the deviation>"
30
33
  ```
31
- Group related deviations into a single thread; use a few separate threads only for several unrelated deviations, and never one thread per minor deviation. Skip only if the task was implemented exactly as described.
32
- - **Guidelines:** was the development guidelines section above "No development guidelines file configured", or were the development / automated tests guidelines incomplete, outdated, or missing for this kind of task (you had to spend extra effort figuring out conventions)? If yes, check the existing threads first (same rule: reply to an existing guidelines thread rather than creating a duplicate), otherwise open a thread with a concrete suggested addition or correction:
34
+ Skip only if the task was implemented exactly as described.
35
+ - **Guidelines:** was the development guidelines section above "No development guidelines file configured", or were the development / automated tests guidelines incomplete, outdated, or missing for this kind of task (you had to spend extra effort figuring out conventions)? If yes, open one thread per topic, with a concrete suggested addition or correction (or reply to the thread already covering that topic):
33
36
  ```bash
34
37
  we-scrum create-change-thread --changeId "{{changeId}}" --comment "<markdown: what was missing/outdated, and a suggested fix>"
35
38
  ```
36
- Use at most one thread for all development guidelines feedback and, separately, at most one for all automated tests guidelines feedback; do not mix them together, and do not mix guideline feedback into the deviation thread. Skip whichever guideline was accurate and sufficient.
37
- - If the developer asks for adjustments **after** the task is completed, add them to the deviation thread (reply with `we-scrum add-comment-to-change-thread`, or open one if none exists).
39
+ Never mix development guidelines feedback and automated tests guidelines feedback in the same thread, nor either of them with a deviation. Skip whichever guideline was accurate and sufficient.
40
+ - If the developer asks for adjustments **after** the task is completed, reply with `we-scrum add-comment-to-change-thread` to the thread covering the same topic, otherwise open a new one.
38
41
  1. Run `we-scrum complete-task --identificationNumber "{{identificationNumber}}" --changeId "{{changeId}}"` when done.
39
42
  1. Call `get_next_task` to continue with the next task.
@@ -58,7 +58,7 @@ For each **open** thread returned:
58
58
  we-scrum add-comment-to-change-thread --changeThreadId <changeThreadId> --comment "<markdown explaining why this is resolved>"
59
59
  we-scrum update-change-thread-status --changeThreadId <changeThreadId> --status Resolved
60
60
  ```
61
- - If the concern still stands, leave the thread open. Only add a follow-up comment via `add-comment-to-change-thread` if you have new information to add — do not just repeat the original comment.
61
+ - If the concern still stands, leave the thread open. Only add a follow-up comment via `add-comment-to-change-thread` if you have new information to add — do not just repeat the original comment. A follow-up comment stays within the topic of the thread: a new concern gets a new thread (see Step 4).
62
62
 
63
63
  ---
64
64
 
@@ -83,7 +83,9 @@ we-scrum create-change-thread --changeId <changeId> --comment "<markdown-formatt
83
83
  ```
84
84
 
85
85
  - The comment body supports Markdown (headings, lists, bold, code spans) — it renders as such in the we-scrum UI.
86
- - Group every finding for a given change into a single thread/comment rather than opening one thread per bullet point.
87
- - Skip changes that already have a thread covering the same concern, whatever its status (see Step 2) — reply on the existing thread instead of duplicating it.
86
+ - Each finding on a distinct topic gets its own thread, following the rule below.
87
+ - Skip the concerns already covered by a thread, whatever its status (see Step 2): do not duplicate it, and only reply on it about its own topic.
88
+
89
+ {{> change-thread-topics}}
88
90
 
89
91
  Once threads are created or resolved, give the user a short summary in the chat: what was found, what was posted or resolved, and why — do not skip this summary just because the details live in we-scrum.