@metasession.co/devaudit-cli 0.3.0 → 0.3.2
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/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/sdlc/files/_common/1-plan-requirement.md +6 -2
- package/sdlc/files/_common/2-implement-and-test.md +6 -2
- package/sdlc/files/_common/3-compile-evidence.md +6 -2
- package/sdlc/files/_common/4-submit-for-review.md +6 -2
- package/sdlc/files/_common/5-deploy-main.md +6 -2
- package/sdlc/files/_common/implementing-an-sdlc-issue.md +6 -2
- package/sdlc/files/_common/scripts/sdlc-guard.sh +60 -0
- package/sdlc/files/_common/skills/sdlc-implementer/SKILL.md +1 -1
- package/sdlc/files/stacks/node/hooks/pre-commit +10 -2
- package/sdlc/files/stacks/node/hooks/pre-push +10 -2
- package/sdlc/package.json +6 -3
- package/sdlc/src/blueprints/1-plan-requirement.raw.md +1 -1
- package/sdlc/src/blueprints/2-implement-and-test.raw.md +1 -1
- package/sdlc/src/blueprints/3-compile-evidence.raw.md +1 -1
- package/sdlc/src/blueprints/4-submit-for-review.raw.md +1 -1
- package/sdlc/src/blueprints/5-deploy-main.raw.md +1 -1
- package/sdlc/src/blueprints/implementing-an-sdlc-issue.raw.md +1 -1
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ function emitJsonResult(payload) {
|
|
|
56
56
|
|
|
57
57
|
// package.json
|
|
58
58
|
var package_default = {
|
|
59
|
-
version: "0.3.
|
|
59
|
+
version: "0.3.2"};
|
|
60
60
|
|
|
61
61
|
// src/lib/version.ts
|
|
62
62
|
var CLI_VERSION = package_default.version;
|
|
@@ -2435,6 +2435,23 @@ async function syncGitignore(ctx) {
|
|
|
2435
2435
|
message: count > 0 ? "added sentinel entries" : "sentinel entries already present"
|
|
2436
2436
|
};
|
|
2437
2437
|
}
|
|
2438
|
+
async function syncSdlcEngine(ctx) {
|
|
2439
|
+
const binSrc = join(ctx.installerRoot, "sdlc", "src", "bin", "devaudit-sdlc.js");
|
|
2440
|
+
const blueprintsSrc = join(ctx.installerRoot, "sdlc", "src", "blueprints");
|
|
2441
|
+
if (!await exists(binSrc)) {
|
|
2442
|
+
return { name: "SDLC CLI engine", filesSynced: 0, skipped: true, message: "devaudit-sdlc.js not found in installer" };
|
|
2443
|
+
}
|
|
2444
|
+
const binDst = join(ctx.projectPath, "SDLC", "bin");
|
|
2445
|
+
const blueprintsDst = join(ctx.projectPath, "SDLC", "blueprints");
|
|
2446
|
+
await ensureDir(binDst);
|
|
2447
|
+
let count = 0;
|
|
2448
|
+
await copyFile(binSrc, join(binDst, "devaudit-sdlc.js"), 493);
|
|
2449
|
+
count += 1;
|
|
2450
|
+
if (await isDir(blueprintsSrc)) {
|
|
2451
|
+
count += await copyDir(blueprintsSrc, blueprintsDst, true);
|
|
2452
|
+
}
|
|
2453
|
+
return { name: "SDLC CLI engine", filesSynced: count, message: "synced to SDLC/bin/ + SDLC/blueprints/" };
|
|
2454
|
+
}
|
|
2438
2455
|
var TIER_1_DOCS = ["Test_Policy.md", "Test_Strategy.md", "Test_Architecture.md"];
|
|
2439
2456
|
async function runValidation(projectPath) {
|
|
2440
2457
|
const warnings = [];
|
|
@@ -2480,7 +2497,8 @@ var SECTION_RUNNERS = [
|
|
|
2480
2497
|
{ key: "2e-ii", run: syncSkills },
|
|
2481
2498
|
{ key: "2e-iii", run: syncEvidenceHelper },
|
|
2482
2499
|
{ key: "2f", run: syncCiTemplates },
|
|
2483
|
-
{ key: "2g", run: syncGitignore }
|
|
2500
|
+
{ key: "2g", run: syncGitignore },
|
|
2501
|
+
{ key: "2h", run: syncSdlcEngine }
|
|
2484
2502
|
];
|
|
2485
2503
|
async function syncProject(projectPath) {
|
|
2486
2504
|
const absPath = resolve(projectPath);
|