@metasession.co/devaudit-cli 0.3.0 → 0.3.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/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.0"};
59
+ version: "0.3.1"};
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);