@staff0rd/assist 0.364.0 → 0.366.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.
- package/README.md +2 -0
- package/claude/commands/bug.md +18 -1
- package/claude/commands/draft.md +15 -2
- package/claude/commands/refine.md +3 -1
- package/claude/commands/subtask.md +6 -0
- package/dist/commands/sessions/web/bundle.js +76 -76
- package/dist/index.js +587 -452
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -128,6 +128,8 @@ The first backlog command in a repository that still has a local `.assist/backlo
|
|
|
128
128
|
- `assist backlog add --name <n> --type <t> --desc <d> --ac <criterion...>` - Add a backlog item from CLI options (used by `/draft`)
|
|
129
129
|
- `assist backlog add-phase <id> <name> --task <t...> [--manual-check <c...>] [--position <pos>]` - Add a phase (appends by default; `--position` inserts at a 1-indexed position)
|
|
130
130
|
- `assist backlog add-subtask <id> --title <t> [--desc <d>]` - Add a sub-task (status `todo`) to a backlog item. Sub-tasks listed under the `subtasks` key (each `title` and optional `description`) in `assist.yml` and `~/.assist.yml` are auto-applied to every newly created item (stories and bugs); the global and project lists are combined
|
|
131
|
+
- `assist backlog edit-subtask <id> <idx> [--title <t>] [--desc <d>] [--status <s>]` - Edit a sub-task by its 1-based index from `backlog show`; updates any combination of title, description, and status (omitted fields are left unchanged). `--desc` supports Markdown and `\n` line breaks (pass `--desc ""` to clear it); `--status` must be one of `todo`, `in-progress`, `done`
|
|
132
|
+
- `assist backlog remove-subtask <id> <idx>` - Remove a sub-task by its 1-based index from `backlog show`; the remaining sub-tasks are re-indexed so they stay contiguous
|
|
131
133
|
- `assist backlog subtask-status <id> <idx> <status>` - Set a sub-task's status (`todo`, `in-progress`, `done`) by its 1-based index from `backlog show`
|
|
132
134
|
- `assist backlog update-field <id> [--name <n>] [--desc <d>] [--type <t>] [--ac <criterion...>]` - Update fields on a backlog item
|
|
133
135
|
- `assist backlog update-field <id> [--add-ac <text>] [--edit-ac <n> <text>] [--remove-ac <n>]` - Granular acceptance-criteria edits using 1-based indices matching `backlog show`: `--add-ac` appends (repeatable), `--edit-ac` replaces criterion n in place, `--remove-ac` deletes criterion n and renumbers the rest (cannot be combined with the whole-list `--ac`)
|
package/claude/commands/bug.md
CHANGED
|
@@ -38,6 +38,21 @@ Show the user the bug report:
|
|
|
38
38
|
|
|
39
39
|
Do NOT generate a plan — the implementer will determine how to fix it.
|
|
40
40
|
|
|
41
|
+
### Writing the description
|
|
42
|
+
|
|
43
|
+
The description renders as markdown in both the terminal (`assist backlog show`) and the web UI, so author it as structured markdown — never a single run-on prose paragraph. Use bold section labels or `##` headings, a numbered list for the repro steps, and short paragraphs for Expected/Actual:
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
**Repro:**
|
|
47
|
+
|
|
48
|
+
1. Step one
|
|
49
|
+
2. Step two
|
|
50
|
+
|
|
51
|
+
**Expected:** what should happen.
|
|
52
|
+
|
|
53
|
+
**Actual:** what happens instead.
|
|
54
|
+
```
|
|
55
|
+
|
|
41
56
|
## Step 4: Iterate
|
|
42
57
|
|
|
43
58
|
Ask the user if they want to change anything. Iterate until they confirm.
|
|
@@ -47,9 +62,11 @@ Ask the user if they want to change anything. Iterate until they confirm.
|
|
|
47
62
|
Once confirmed, add the item via CLI and capture the id it prints:
|
|
48
63
|
|
|
49
64
|
```
|
|
50
|
-
assist backlog add --name "Bug title" --type bug --desc "**Repro:**\n1. ...\n\n**Expected:** ...\n\n**Actual:** ..." --ac "criterion 1" --ac "criterion 2" 2>&1
|
|
65
|
+
assist backlog add --name "Bug title" --type bug --desc "$(printf '**Repro:**\n\n1. ...\n2. ...\n\n**Expected:** ...\n\n**Actual:** ...')" --ac "criterion 1" --ac "criterion 2" 2>&1
|
|
51
66
|
```
|
|
52
67
|
|
|
68
|
+
Pass the description as real markdown with line breaks preserved (use `printf` or a quoted heredoc so the `\n` sequences become actual newlines, not literal `\n` characters).
|
|
69
|
+
|
|
53
70
|
Note the created item id from the output — you'll pass it to the done signal below.
|
|
54
71
|
|
|
55
72
|
Then show the user the item was created and suggest they can run `assist backlog run <id>` to start implementation.
|
package/claude/commands/draft.md
CHANGED
|
@@ -28,11 +28,22 @@ Once you have enough context, propose a complete backlog item. Show it to the us
|
|
|
28
28
|
|
|
29
29
|
**Name:** (concise title)
|
|
30
30
|
**Type:** story or bug
|
|
31
|
-
**Description:**
|
|
31
|
+
**Description:** (structured markdown — see below)
|
|
32
32
|
**Acceptance Criteria:**
|
|
33
33
|
|
|
34
34
|
- (specific, testable criteria)
|
|
35
35
|
|
|
36
|
+
### Writing the description
|
|
37
|
+
|
|
38
|
+
Descriptions render as markdown in both the terminal (`assist backlog show`) and the web UI, so author them as structured markdown — never a single run-on prose paragraph:
|
|
39
|
+
|
|
40
|
+
- Use short paragraphs (1-3 sentences each), separated by blank lines.
|
|
41
|
+
- Use `##` headings to break longer descriptions into sections (e.g. Background, Goal, Notes).
|
|
42
|
+
- Use bullet lists for enumerations and `-`/`1.` lists where they read more clearly than prose.
|
|
43
|
+
- Use **bold**, `inline code`, and other inline markdown for emphasis and identifiers.
|
|
44
|
+
|
|
45
|
+
Keep it scannable. A short item can be a couple of tight paragraphs; a larger one should use headings and lists.
|
|
46
|
+
|
|
36
47
|
**Plan:**
|
|
37
48
|
|
|
38
49
|
- Phase 1: (name) — tasks...
|
|
@@ -81,9 +92,11 @@ Once confirmed, create the item and its phases via CLI commands.
|
|
|
81
92
|
First, add the item and capture the id it prints:
|
|
82
93
|
|
|
83
94
|
```
|
|
84
|
-
assist backlog add --name "Item name" --type story --desc "
|
|
95
|
+
assist backlog add --name "Item name" --type story --desc "$(printf '## Background\n\nShort paragraph.\n\n## Goal\n\n- Bullet one\n- Bullet two')" --ac "criterion 1" --ac "criterion 2" 2>&1
|
|
85
96
|
```
|
|
86
97
|
|
|
98
|
+
Pass the description as real markdown with line breaks preserved (use `printf` or a quoted heredoc so `\n` becomes actual newlines, not the literal `\n` characters).
|
|
99
|
+
|
|
87
100
|
Note the created item id from the output — you'll pass it to the done signal below.
|
|
88
101
|
|
|
89
102
|
Then add each phase:
|
|
@@ -37,13 +37,15 @@ Based on the user's input, apply changes using the appropriate commands. Always
|
|
|
37
37
|
|
|
38
38
|
```
|
|
39
39
|
assist backlog update-field <id> --name "New name"
|
|
40
|
-
assist backlog update-field <id> --desc "
|
|
40
|
+
assist backlog update-field <id> --desc "$(printf '## Section\n\nShort paragraph.\n\n- Bullet one\n- Bullet two')"
|
|
41
41
|
assist backlog update-field <id> --type story
|
|
42
42
|
assist backlog update-field <id> --ac "criterion 1" --ac "criterion 2"
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Note: `--ac` replaces all acceptance criteria, so include the full list (both existing and new).
|
|
46
46
|
|
|
47
|
+
Descriptions render as markdown in both the terminal (`assist backlog show`) and the web UI, so author them as structured markdown — short paragraphs, `##` headings for longer descriptions, and bullet lists rather than one run-on prose paragraph. Pass the value as real markdown with line breaks preserved (use `printf` or a quoted heredoc so `\n` becomes actual newlines, not literal `\n` characters).
|
|
48
|
+
|
|
47
49
|
**To modify a plan phase** (phase is 0-indexed):
|
|
48
50
|
|
|
49
51
|
```
|
|
@@ -21,4 +21,10 @@ assist backlog add-subtask <id> --title '<sub-task text>' 2>&1
|
|
|
21
21
|
|
|
22
22
|
Use single quotes around the title to avoid shell escaping issues. The sub-task is created with status `todo`.
|
|
23
23
|
|
|
24
|
+
If the sub-task needs more than a title — extra context, steps, or acceptance detail — pass a `--desc` as well. Sub-task descriptions render as markdown in both the terminal (`assist backlog show`) and the web UI, so author them as structured markdown (short paragraphs, bullet lists, optional `##` headings), never a single run-on prose paragraph. Preserve line breaks by building the value with `printf` (or a quoted heredoc) so `\n` becomes real newlines:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
assist backlog add-subtask <id> --title '<sub-task text>' --desc "$(printf '## Context\n\nShort paragraph.\n\n- Point one\n- Point two')" 2>&1
|
|
28
|
+
```
|
|
29
|
+
|
|
24
30
|
Display the command output so the user can see the result. If the command reports an error (item not found, or a missing title), relay it to the user.
|