@jonit-dev/night-watch-cli 1.8.2 → 1.8.4-beta.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/dist/cli.js +1017 -553
- package/dist/commands/board.d.ts.map +1 -1
- package/dist/commands/board.js +20 -0
- package/dist/commands/board.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +8 -12
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +96 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/scripts/publish.sh +94 -26
- package/dist/templates/prd-executor.md +1 -0
- package/dist/templates/skills/_codex-block.md +58 -0
- package/dist/templates/skills/nw-add-issue.md +39 -0
- package/dist/templates/skills/nw-board-sync.md +47 -0
- package/dist/templates/skills/nw-create-prd.md +61 -0
- package/dist/templates/skills/nw-review.md +39 -0
- package/dist/templates/skills/nw-run.md +39 -0
- package/dist/templates/skills/nw-slice.md +33 -0
- package/dist/templates/skills/skills/_codex-block.md +58 -0
- package/dist/templates/skills/skills/nw-add-issue.md +39 -0
- package/dist/templates/skills/skills/nw-board-sync.md +47 -0
- package/dist/templates/skills/skills/nw-create-prd.md +61 -0
- package/dist/templates/skills/skills/nw-review.md +39 -0
- package/dist/templates/skills/skills/nw-run.md +39 -0
- package/dist/templates/skills/skills/nw-slice.md +33 -0
- package/dist/web/assets/index-BFxPiKyy.js +381 -0
- package/dist/web/assets/index-Cp7RYjoy.css +1 -0
- package/dist/web/assets/index-DTsfDC7m.js +381 -0
- package/dist/web/assets/index-ZABWMEZR.js +381 -0
- package/dist/web/index.html +2 -2
- package/package.json +12 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Skill: nw-review
|
|
2
|
+
|
|
3
|
+
Run the Night Watch automated PR reviewer on open pull requests.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
|
|
7
|
+
When the user wants to trigger automated code review on Night Watch PRs, or when a PR needs a review score.
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. **List open Night Watch PRs**:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
gh pr list --state open --json number,title,headRefName --jq '.[] | select(.headRefName | startswith("night-watch/"))'
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. **Run the reviewer** (processes all eligible PRs):
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
night-watch review
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
3. **Review a specific PR**:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
night-watch review --pr <number>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
4. **Check review results**:
|
|
30
|
+
```
|
|
31
|
+
night-watch logs --type review
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Notes
|
|
35
|
+
|
|
36
|
+
- Minimum passing score: 80/100 (configurable via `minReviewScore` in `night-watch.config.json`)
|
|
37
|
+
- Failed reviews block auto-merge and trigger webhook notifications
|
|
38
|
+
- The reviewer runs automatically on its own cron schedule (`reviewerSchedule` in config)
|
|
39
|
+
- Review checks: code quality, test coverage, PR description, acceptance criteria alignment
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Skill: nw-run
|
|
2
|
+
|
|
3
|
+
Manually trigger Night Watch to execute the next available PRD immediately.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
|
|
7
|
+
When the user wants to run Night Watch now instead of waiting for the cron schedule.
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. **Check what's queued**:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
night-watch prd list
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. **Run the executor**:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
night-watch run
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
3. **To run a specific PRD** by filename:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
night-watch run --prd <filename.md>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
4. **Monitor logs** in real time:
|
|
30
|
+
```
|
|
31
|
+
night-watch logs --follow
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Notes
|
|
35
|
+
|
|
36
|
+
- Night Watch executes ONE PRD per run to prevent timeouts and reduce risk
|
|
37
|
+
- The automated cron schedule runs on a configurable interval (check with `night-watch status`)
|
|
38
|
+
- Use `night-watch queue` to see all queued PRDs in priority order
|
|
39
|
+
- If a run fails, the PRD is NOT marked as done — fix the issue and re-run
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Skill: nw-slice
|
|
2
|
+
|
|
3
|
+
Slice a high-level roadmap item or epic into multiple focused PRD files for Night Watch execution.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
|
|
7
|
+
When the user has a large feature or roadmap item that should be broken into smaller,
|
|
8
|
+
independently-executable pieces.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. **Ask for the epic description** if not provided.
|
|
13
|
+
|
|
14
|
+
2. **Run the slicer** to auto-generate PRDs from a roadmap file:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
night-watch slice
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
This reads `docs/roadmap.md` (or configured roadmap path) and generates PRD files.
|
|
21
|
+
|
|
22
|
+
3. **To slice a specific feature**, first add it to `docs/roadmap.md`, then run slice.
|
|
23
|
+
|
|
24
|
+
4. **Review generated PRDs** in `docs/prds/` — adjust scope, complexity, or phases if needed.
|
|
25
|
+
|
|
26
|
+
5. PRDs run in creation order (or by `prdPriority` config) on the next Night Watch execution.
|
|
27
|
+
|
|
28
|
+
## Tips
|
|
29
|
+
|
|
30
|
+
- Each PRD should be deployable independently without breaking anything
|
|
31
|
+
- Keep PRDs focused on 1-2 user stories for faster execution
|
|
32
|
+
- Complex PRDs (score 3) often benefit from splitting into 2 medium PRDs
|
|
33
|
+
- Use `Depends-On: <other-prd.md>` in a PRD's front matter to enforce ordering
|