@staff0rd/assist 0.405.0 → 0.407.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 +3 -1
- package/claude/commands/bug.md +18 -0
- package/claude/commands/draft.md +18 -0
- package/claude/commands/refine.md +10 -0
- package/dist/commands/sessions/web/bundle.js +1 -1
- package/dist/index.js +714 -560
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ Backlog item ids are written and displayed in an `a`-prefixed form (e.g. item 55
|
|
|
162
162
|
- `assist backlog run <id>` - Run a backlog item's plan phase-by-phase with Claude; `--resume-session <id>` resumes an interrupted Claude session for the current phase (used by the sessions daemon when it restarts a running item)
|
|
163
163
|
- `assist backlog export [file]` - Export every table in the backlog database (discovered by live schema introspection, so new tables are covered automatically) to a file, or stdout if omitted
|
|
164
164
|
- `assist backlog import [file]` - Restore every table present in a dump (file or stdin) back into the backlog database in foreign-key-safe order, faithfully replacing all data and resyncing identity sequences; prompts for confirmation (use `-y, --yes` to skip; required when reading from stdin)
|
|
165
|
-
- `assist backlog associate-jira <id> [key]` - Associate a Jira ticket with a backlog item; validates the key shape, fetches the issue to confirm it exists, and stores the key (re-running with a different key replaces it). Clears any GitHub issue on the item (one external tracker per item). Use `--clear` to remove the association
|
|
165
|
+
- `assist backlog associate-jira <id> [key]` - Associate a Jira ticket with a backlog item; accepts a bare key (`PROJ-123`) or an Atlassian browse URL, validates the key shape, fetches the issue to confirm it exists, and stores the key (re-running with a different key replaces it). Clears any GitHub issue on the item (one external tracker per item). Use `--clear` to remove the association
|
|
166
166
|
- `assist backlog associate-github <id> [issue]` - Associate a GitHub issue with a backlog item; accepts a full issue URL or `owner/repo#number` shorthand, normalises to `owner/repo#number`, and fetches the issue title via the `gh` CLI to confirm it. Clears any Jira key on the item (one external tracker per item). Use `--clear` to remove the association
|
|
167
167
|
- `assist backlog add-activity <id> <kind> <ref>` - Attach a git activity ref to a backlog item, where `kind` is `branch`, `commit`, or `pr`; `branch`/`commit` auto-fill their GitHub URL. Use `--title`, `--url`, `--state` to supply or override metadata. Re-adding the same kind and ref upserts rather than duplicating
|
|
168
168
|
- `assist backlog move-repo <old-origin> [new-origin]` - Retag all items from one origin to another after a repo rename; the new origin defaults to the current repo's remote, both accept URL or `git@` forms, and a bare repo name works for the old origin when unambiguous. Prompts for confirmation (use `-y, --yes` to skip)
|
|
@@ -211,6 +211,8 @@ Backlog item ids are written and displayed in an `a`-prefixed form (e.g. item 55
|
|
|
211
211
|
- `assist edit-hook` - PreToolUse hook that blocks `Edit`/`Write`/`MultiEdit` calls from adding, changing, or removing a `// assist-maintainability-override` marker, or from introducing a code comment (use `code-comment set`/`confirm` for the rare comment that belongs)
|
|
212
212
|
- `assist code-comment set <file> <line> <text>` - Validate a single-line comment (max 50 chars; no block comments for `.ts`/`.js`) and issue a pin authorising its insertion; inserts `#` for `#`-comment files (`.yml`/`.yaml`, Dockerfile, `*.env`, `*.sh`) and `//` otherwise
|
|
213
213
|
- `assist code-comment confirm <pin>` - Insert the pinned comment at its file/line and clear the pin state
|
|
214
|
+
- `assist db-migration unlock` - Page a human to approve creating the next new database migration module: issues a pin via desktop notification and records the pending migration id
|
|
215
|
+
- `assist db-migration confirm <pin>` - Confirm a pin from `db-migration unlock` to record a one-shot approval for that migration id, allowing the edit hook to let its `migrationNNNN*.ts` write through once
|
|
214
216
|
- `assist update` - Update assist to the latest version and sync commands
|
|
215
217
|
- `assist vscode init` - Add VS Code configuration files
|
|
216
218
|
- `assist deploy init` - Initialize Netlify project and configure deployment
|
package/claude/commands/bug.md
CHANGED
|
@@ -69,6 +69,24 @@ Pass the description as real markdown with line breaks preserved (use `printf` o
|
|
|
69
69
|
|
|
70
70
|
Note the created item id from the output — you'll pass it to the done signal below.
|
|
71
71
|
|
|
72
|
+
### Associate an external tracker
|
|
73
|
+
|
|
74
|
+
If the user's original input (`$ARGUMENTS`) referenced an external tracker, associate it with the created item so downstream sessions have the context. Detect at most **one** tracker:
|
|
75
|
+
|
|
76
|
+
- A **Jira** issue — a bare key (`PROJ-123`) or an Atlassian browse URL (`https://<site>.atlassian.net/browse/PROJ-123`):
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
assist backlog associate-jira a<id> "<key-or-url>" 2>&1
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
- A **GitHub** issue — `owner/repo#number` shorthand or a `https://github.com/owner/repo/issues/N` URL:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
assist backlog associate-github a<id> "<issue-or-url>" 2>&1
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Only one external tracker can be set per item (associating one clears the other), so run at most one of these. If the input referenced no tracker, skip this step. If the association command reports an error (malformed reference, issue not found), relay it to the user but do not treat it as fatal — the item was still created successfully.
|
|
89
|
+
|
|
72
90
|
Then show the user the item was created and suggest they can run `assist backlog run a<id>` to start implementation.
|
|
73
91
|
|
|
74
92
|
Finally, signal that the bug-filing task is complete, passing the created item id (a-prefixed, e.g. `a555`):
|
package/claude/commands/draft.md
CHANGED
|
@@ -105,6 +105,24 @@ Then add each phase:
|
|
|
105
105
|
assist backlog add-phase a<id> "Phase name" --task "Task 1" --task "Task 2" --manual-check "optional check" 2>&1
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
+
### Associate an external tracker
|
|
109
|
+
|
|
110
|
+
If the user's original input (`$ARGUMENTS`) referenced an external tracker, associate it with the created item so downstream sessions have the context. Detect at most **one** tracker:
|
|
111
|
+
|
|
112
|
+
- A **Jira** issue — a bare key (`PROJ-123`) or an Atlassian browse URL (`https://<site>.atlassian.net/browse/PROJ-123`):
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
assist backlog associate-jira a<id> "<key-or-url>" 2>&1
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
- A **GitHub** issue — `owner/repo#number` shorthand or a `https://github.com/owner/repo/issues/N` URL:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
assist backlog associate-github a<id> "<issue-or-url>" 2>&1
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Only one external tracker can be set per item (associating one clears the other), so run at most one of these. If the input referenced no tracker, skip this step. If the association command reports an error (malformed reference, issue not found), relay it to the user but do not treat it as fatal — the item was still created successfully.
|
|
125
|
+
|
|
108
126
|
Then show the user the item was created and suggest they can run `assist backlog run a<id>` to start implementation.
|
|
109
127
|
|
|
110
128
|
Finally, signal that the drafting task is complete, passing the created item id (a-prefixed, e.g. `a555`):
|
|
@@ -25,6 +25,7 @@ Ask the user what they want to change or improve about this item. Listen for cha
|
|
|
25
25
|
- **Type** (story / bug)
|
|
26
26
|
- **Acceptance criteria**
|
|
27
27
|
- **Plan phases** (add, modify, or remove phases and their tasks)
|
|
28
|
+
- **External tracker** (a Jira key/URL or a GitHub issue reference to associate)
|
|
28
29
|
- **General feedback** that should be captured as a comment
|
|
29
30
|
|
|
30
31
|
Ask one focused question at a time. Wait for the user's response before continuing.
|
|
@@ -76,6 +77,15 @@ When adding or restructuring plan phases, follow the same rules as /draft:
|
|
|
76
77
|
- **Every phase must pass `assist verify` on its own.** Verification includes knip, which fails on unused exports — so every export a phase adds must have a caller wired up in that same phase. No "phase 2 will use it" scaffolding.
|
|
77
78
|
- If the user proposes a horizontal split, point out that the earlier phase won't verify (knip will flag the unused exports) and suggest a vertical restructure instead.
|
|
78
79
|
|
|
80
|
+
**To associate an external tracker** (Jira or GitHub — mutually exclusive, one per item; associating one clears the other):
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
assist backlog associate-jira <id> "<key-or-browse-url>" 2>&1
|
|
84
|
+
assist backlog associate-github <id> "<owner/repo#number-or-issue-url>" 2>&1
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
`associate-jira` accepts a bare key (`PROJ-123`) or an Atlassian browse URL; `associate-github` accepts `owner/repo#number` or a `github.com` issue URL. To remove any association, add `--clear` with no reference. If the command reports an error (malformed reference, issue not found), relay it to the user — nothing is stored on failure.
|
|
88
|
+
|
|
79
89
|
**To add a comment** (for context, decisions, or notes that don't fit in fields):
|
|
80
90
|
|
|
81
91
|
```
|