@we-scrum/cli 6.11.21 → 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/dist/cli.js +98 -47
- package/package.json +2 -2
- package/src/helpers/template.helper.ts +2 -0
- package/templates/analyse-story-skill.hbs +6 -4
- package/templates/change-thread-topics.hbs +5 -0
- package/templates/develop-story-skill.hbs +1 -1
- package/templates/get-next-task.hbs +9 -6
- package/templates/review-analysis-skill.hbs +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-scrum/cli",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.22",
|
|
4
4
|
"description": "Cli tool for we-scrum application",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"typescript": "^6.0.3",
|
|
41
41
|
"@my-devkit/cli": "2.1.0",
|
|
42
42
|
"@my-devkit/core": "1.0.0",
|
|
43
|
-
"@we-scrum/enums": "1.0.0",
|
|
44
43
|
"@we-scrum/commands": "1.0.0",
|
|
44
|
+
"@we-scrum/enums": "1.0.0",
|
|
45
45
|
"@we-scrum/models": "1.0.0",
|
|
46
46
|
"@we-scrum/utils": "1.0.0"
|
|
47
47
|
},
|
|
@@ -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,
|
|
@@ -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
|
-
-
|
|
122
|
-
- Comments are Markdown.
|
|
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
|
|
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>"
|
|
@@ -194,7 +196,7 @@ EOF
|
|
|
194
196
|
|
|
195
197
|
Before concluding, ask for each change written: was the matching analysis guideline missing, ambiguous or insufficient for what had to be decided?
|
|
196
198
|
|
|
197
|
-
If yes, check the existing threads of the change first
|
|
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.
|
|
198
200
|
|
|
199
201
|
---
|
|
200
202
|
|
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
37
|
-
- If the developer asks for adjustments **after** the task is completed,
|
|
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
|
-
-
|
|
87
|
-
- Skip
|
|
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.
|