specweave 0.12.0 → 0.12.1
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/utils/external-resource-validator.d.ts.map +1 -1
- package/dist/utils/external-resource-validator.js +101 -59
- package/dist/utils/external-resource-validator.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/hooks/post-increment-change.sh +94 -0
- package/plugins/specweave/hooks/post-increment-status-change.sh +143 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.ts +57 -16
- package/plugins/specweave-github/commands/specweave-github-sync-from.md +147 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.ts +33 -0
- package/plugins/specweave-github/lib/github-issue-updater.ts +449 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.ts +342 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.ts +380 -0
- package/src/templates/AGENTS.md.template +55 -9
|
@@ -428,9 +428,19 @@ When you complete a task (mark todo as done), the hook:
|
|
|
428
428
|
|
|
429
429
|
#### For Other AI Tools (Manual ⚠️)
|
|
430
430
|
|
|
431
|
-
**⚠️ IMPORTANT**: After completing EACH task,
|
|
431
|
+
**⚠️ IMPORTANT**: After completing EACH task, run these slash commands to keep everything in sync:
|
|
432
432
|
|
|
433
|
-
**
|
|
433
|
+
**Quick Commands** (copy-paste friendly):
|
|
434
|
+
|
|
435
|
+
```bash
|
|
436
|
+
# After completing a task, run these three commands:
|
|
437
|
+
|
|
438
|
+
/specweave:sync-tasks # 1. Update tasks.md completion status
|
|
439
|
+
/specweave:sync-docs update # 2. Sync to living docs
|
|
440
|
+
/specweave-github:sync <increment-id> # 3. Sync to GitHub (replace <increment-id> with your increment, e.g., 0007)
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
**Alternative: Manual Update** (if slash commands unavailable):
|
|
434
444
|
|
|
435
445
|
```bash
|
|
436
446
|
# Example: You just completed T-001
|
|
@@ -1356,15 +1366,51 @@ Only **Claude Code** has automatic hooks (via `post-task-completion.sh`) that sy
|
|
|
1356
1366
|
|
|
1357
1367
|
### Summary Checklist (After Every Task)
|
|
1358
1368
|
|
|
1359
|
-
When you complete a task in non-Claude tools
|
|
1369
|
+
When you complete a task in non-Claude tools, **run these slash commands**:
|
|
1370
|
+
|
|
1371
|
+
#### Quick Sync (After Each Task Completion)
|
|
1372
|
+
|
|
1373
|
+
```bash
|
|
1374
|
+
# 1. Sync tasks.md with completion status
|
|
1375
|
+
/specweave:sync-tasks
|
|
1376
|
+
|
|
1377
|
+
# 2. Update living docs from completed work
|
|
1378
|
+
/specweave:sync-docs update
|
|
1379
|
+
```
|
|
1380
|
+
|
|
1381
|
+
#### External Tracker Sync (If Enabled)
|
|
1382
|
+
|
|
1383
|
+
```bash
|
|
1384
|
+
# 3. Sync to external tracker (choose one based on your setup):
|
|
1385
|
+
|
|
1386
|
+
# GitHub Issues:
|
|
1387
|
+
/specweave-github:sync <increment-id>
|
|
1388
|
+
|
|
1389
|
+
# Jira:
|
|
1390
|
+
/specweave-jira:sync <increment-id>
|
|
1391
|
+
|
|
1392
|
+
# Azure DevOps:
|
|
1393
|
+
/specweave-ado:sync <increment-id>
|
|
1394
|
+
```
|
|
1395
|
+
|
|
1396
|
+
#### Example Full Workflow
|
|
1360
1397
|
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1398
|
+
```bash
|
|
1399
|
+
# After completing a task in your current increment:
|
|
1400
|
+
|
|
1401
|
+
# Step 1: Update tasks.md
|
|
1402
|
+
/specweave:sync-tasks
|
|
1403
|
+
|
|
1404
|
+
# Step 2: Sync living docs
|
|
1405
|
+
/specweave:sync-docs update
|
|
1406
|
+
|
|
1407
|
+
# Step 3: Sync to GitHub (if using GitHub tracking)
|
|
1408
|
+
/specweave-github:sync <increment-id> # e.g., /specweave-github:sync 0016
|
|
1409
|
+
|
|
1410
|
+
# Done! Continue to next task.
|
|
1411
|
+
```
|
|
1366
1412
|
|
|
1367
|
-
**Remember**: In Claude Code,
|
|
1413
|
+
**Remember**: In Claude Code, all of this happens **automatically via hooks**. In other tools (Cursor, Copilot, ChatGPT), **YOU must run these commands manually** after each task!
|
|
1368
1414
|
|
|
1369
1415
|
---
|
|
1370
1416
|
|