aodw-skill 0.7.28 → 0.9.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/.aodw-next/01-core/ai-interaction-rules.md +24 -2
- package/.aodw-next/01-core/ai-knowledge-rules.md +31 -1
- package/.aodw-next/01-core/aodw-constitution.md +84 -15
- package/.aodw-next/01-core/git-discipline.md +160 -31
- package/.aodw-next/01-core/test-discipline.md +124 -0
- package/.aodw-next/02-workflow/autopilot-goal-spec.md +2 -2
- package/.aodw-next/02-workflow/autopilot-protocol.md +1 -1
- package/.aodw-next/02-workflow/rt-manager.md +310 -20
- package/.aodw-next/02-workflow/spec-full-profile.md +4 -3
- package/.aodw-next/02-workflow/spec-lite-profile.md +2 -1
- package/.aodw-next/02-workflow/sub-agent-driven-profile.md +156 -0
- package/.aodw-next/02-workflow/task-pack-projection.md +250 -0
- package/.aodw-next/04-auditors/aodw-development-auditor-rules.md +31 -13
- package/.aodw-next/04-auditors/aodw-full-auditor-rules.md +61 -39
- package/.aodw-next/04-auditors/aodw-plan-auditor-rules.md +109 -0
- package/.aodw-next/04-auditors/aodw-requirement-auditor-rules.md +51 -31
- package/.aodw-next/README.md +63 -1
- package/.aodw-next/SKILL.md +2 -0
- package/.aodw-next/config.yaml +5 -0
- package/.aodw-next/manifest.yaml +42 -2
- package/.aodw-next/manifests/rt-gates.yaml +252 -0
- package/.aodw-next/project.yaml +41 -1
- package/.aodw-next/skills/handover-pack/SKILL.md +219 -0
- package/.aodw-next/skills/handover-pack/references/format-contract.md +124 -0
- package/.aodw-next/skills/handover-pack/scripts/_common.sh +92 -0
- package/.aodw-next/skills/handover-pack/scripts/check-closure.sh +163 -0
- package/.aodw-next/skills/handover-pack/scripts/next-number.sh +111 -0
- package/.aodw-next/skills/handover-pack/scripts/validate.py +260 -0
- package/.aodw-next/skills/handover-pack/templates/handover-template.md +99 -0
- package/.aodw-next/templates/aodw-kernel-loader-template.md +3 -4
- package/.aodw-next/templates/rt-autopilot-preflight.template.md +1 -1
- package/.aodw-next/templates/rt-lite.template.md +1 -1
- package/.aodw-next/templates/rt-meta-template.yaml +30 -1
- package/.aodw-next/tools/fixtures/data/hook-bad-stdin.txt +1 -0
- package/.aodw-next/tools/fixtures/data/hook-pretooluse-benign.json +17 -0
- package/.aodw-next/tools/fixtures/data/hook-pretooluse-commit.json +17 -0
- package/.aodw-next/tools/fixtures/data/hook-stop-active.json +13 -0
- package/.aodw-next/tools/fixtures/data/hook-stop-first.json +13 -0
- package/.aodw-next/tools/fixtures/data/python3-no-yaml.sh +4 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/RT-701/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/RT-702/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/RT-703/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/index.yaml +11 -0
- package/.aodw-next/tools/fixtures/root-g109/RT/RT-622/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-g109/RT/RT-622/rt-lite.md +6 -0
- package/.aodw-next/tools/fixtures/root-g109/RT/index.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-g113/RT/RT-631/handoff/unit-U1-input.md +12 -0
- package/.aodw-next/tools/fixtures/root-g113/RT/RT-631/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-g113/RT/RT-631/rt-lite.md +6 -0
- package/.aodw-next/tools/fixtures/root-g113/RT/index.yaml +3 -0
- package/.aodw-next/tools/fixtures/root-g114-noledger/RT/RT-811/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114-noledger/RT/RT-812/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114-noledger/RT/index.yaml +7 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-801/meta.yaml +10 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-802/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-803/meta.yaml +7 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-804/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-805/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-806/meta.yaml +11 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-807/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-808/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-809/meta.yaml +9 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/_deferred-items.md +53 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/index.yaml +21 -0
- package/.aodw-next/tools/fixtures/root-mini/RT/RT-101/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-501/handoff/unit-U1-input.md +19 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-502/handoff/unit-U1-input.md +18 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-503/handoff/unit-U1-input.md +19 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-503/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-503/retrospective.md +5 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-504/handoff/unit-U1-input.md +19 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-504/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-201/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-201/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-202/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-202/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-203/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-203/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-204/meta.yaml +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-204/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-205/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-205/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-206/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-206/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-207/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-207/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-208/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-208/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-209/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-209/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-210/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-210/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-211/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-212/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-212/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-213/meta.yaml +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-213/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-214/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-214/rt-lite.md +4 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-215/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-215/retrospective.md +2 -0
- package/.aodw-next/tools/fixtures/root-u2a/RT/RT-215/rt-lite.md +4 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/RT-301/changelog.md +2 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/RT-301/csf-review.md +2 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/RT-301/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/RT-302/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/RT-302/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/RT-303/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/RT-303/rt-lite.md +2 -0
- package/.aodw-next/tools/fixtures/root-u2a-ok/RT/index.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-u2b/.aodw-next/guide.md +4 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-401/notes.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-401/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-402/notes.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-402/rt-lite.md +13 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-403/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-403/sub/deep-notes.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-404/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-405/rt-lite.md +4 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-406/rt-lite.md +6 -0
- package/.aodw-next/tools/fixtures/root-u2b/RT/RT-407/rt-lite.md +3 -0
- package/.aodw-next/tools/fixtures/root-u2b/docs/a/shared.md +8 -0
- package/.aodw-next/tools/fixtures/root-u2b/docs/b/shared.md +2 -0
- package/.aodw-next/tools/fixtures/run-fixtures.sh +504 -0
- package/.aodw-next/tools/fixtures/run-skill-fixtures.sh +671 -0
- package/.aodw-next/tools/install-skills.sh +228 -0
- package/.aodw-next/tools/rt-guard.sh +1589 -0
- package/bin/aodw.js +11 -0
- package/package.json +4 -2
package/bin/aodw.js
CHANGED
|
@@ -442,6 +442,17 @@ async function runInit() {
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
async function runUpdate() {
|
|
445
|
+
// 升级保护:先备份现有规范目录,再执行更新(copyCoreWithPreservation 仅保留
|
|
446
|
+
// 06-project/ 与 tools-status.yaml,改过核心规则的项目需靠备份找回定制)
|
|
447
|
+
const targetCore = path.join(process.cwd(), CORE_DIRNAME);
|
|
448
|
+
if (fs.existsSync(targetCore)) {
|
|
449
|
+
const stamp = new Date().toISOString().replace(/[-:T]/g, '').slice(0, 13); // YYYYMMDDHHmm
|
|
450
|
+
const backupPath = path.join(process.cwd(), `${CORE_DIRNAME}.backup-${stamp}`);
|
|
451
|
+
await fs.copy(targetCore, backupPath);
|
|
452
|
+
console.log(chalk.yellow(`📦 升级保护:已备份现有规范到 ${path.basename(backupPath)}`));
|
|
453
|
+
console.log(chalk.yellow(' 注意:核心规则文件会被新版覆盖(仅 06-project/ 与 tools-status.yaml 保留);'));
|
|
454
|
+
console.log(chalk.yellow(' 若本项目定制过核心规则,请在升级后 diff 备份目录找回定制。'));
|
|
455
|
+
}
|
|
445
456
|
console.log(chalk.blue('🔄 正在更新 AODW-Next...'));
|
|
446
457
|
await runInit();
|
|
447
458
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aodw-skill",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Next-channel CLI tool to scaffold AODW in your project",
|
|
5
5
|
"main": "bin/aodw.js",
|
|
6
6
|
"files": [
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"aodw-skill": "bin/aodw.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"test": "
|
|
15
|
+
"test": "node test/template-assets.test.mjs",
|
|
16
|
+
"test:gates": "bash ../templates/.aodw-next/tools/rt-guard.sh --self-test",
|
|
17
|
+
"test:skills": "bash ../templates/.aodw-next/tools/fixtures/run-skill-fixtures.sh",
|
|
16
18
|
"pack:check": "npm pack --dry-run"
|
|
17
19
|
},
|
|
18
20
|
"keywords": [
|