create-agdf 0.6.1 → 0.6.4

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.
@@ -2168,7 +2168,7 @@ function evaluateDeliveryMap(targetDir, selection = {}) {
2168
2168
  next_step: "Repair or remove the invalid run entry.",
2169
2169
  })),
2170
2170
  ...runs.flatMap((item) =>
2171
- item.report.findings.map((finding) => ({
2171
+ (item.report.doctor_report?.findings ?? item.report.findings).map((finding) => ({
2172
2172
  ...finding,
2173
2173
  run_id: item.run_id,
2174
2174
  })),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agdf",
3
- "version": "0.6.1",
3
+ "version": "0.6.4",
4
4
  "description": "Codex-first operating system for governed AI-assisted delivery.",
5
5
  "author": {
6
6
  "name": "Arndt Gold",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "id": "agdf",
4
- "version": "0.6.1",
4
+ "version": "0.6.4",
5
5
  "displayName": "AI Governance & Delivery Framework",
6
6
  "developerName": "Arndt Gold",
7
7
  "description": "Codex-first operating system for governed AI-assisted delivery.",
@@ -57,15 +57,15 @@ export function migrateLegacy(root, requested, io = {}) {
57
57
  }
58
58
  return { status: "migrated", path: dest };
59
59
  }
60
- export function renderLegacyProjection(path) {
60
+ export function renderLegacyProjection(path, root = process.cwd()) {
61
61
  const content = readFileSync(path, "utf8"),
62
62
  parsed = parseRunState(content),
63
63
  digest = createHash("sha256").update(content).digest("hex");
64
64
  if (!parsed.valid) throw Error("AGDF_RUN_NOT_SELECTABLE");
65
- return `<!-- AGDF LEGACY PROJECTION: NON-AUTHORITATIVE -->\n<!-- canonical_source: ${path} -->\n<!-- run_id: ${parsed.meta.run_id} -->\n<!-- revision_id: ${parsed.meta.revision_id} -->\n<!-- sha256: ${digest} -->\n${content}`;
65
+ return `<!-- AGDF LEGACY PROJECTION: NON-AUTHORITATIVE -->\n<!-- canonical_source: ${relative(resolve(root), resolve(path))} -->\n<!-- run_id: ${parsed.meta.run_id} -->\n<!-- revision_id: ${parsed.meta.revision_id} -->\n<!-- sha256: ${digest} -->\n${content}`;
66
66
  }
67
67
  export function writeLegacyProjection(path, canonical) {
68
- atomicWrite(path, renderLegacyProjection(canonical));
68
+ atomicWrite(path, renderLegacyProjection(canonical, resolve(dirname(path), "../..")));
69
69
  }
70
70
  export function verifyLegacyProjection(root) {
71
71
  const path = join(root, ".agdf", "control", "AGDF_RUN.md");
@@ -78,7 +78,7 @@ export function verifyLegacyProjection(root) {
78
78
  projected = projectedStart >= 0 ? p.slice(projectedStart) : undefined;
79
79
  if (!source || !runId || !digest || projected === undefined)
80
80
  return { status: discoverRuns(root).length ? "mixed_authority" : "legacy" };
81
- const target = resolve(source),
81
+ const target = resolve(root, source),
82
82
  rel = relative(resolve(root), target),
83
83
  expected = relative(resolve(root), resolve(runPath(root, runId)));
84
84
  if (rel.startsWith("..") || !rel || rel !== expected || !existsSync(target))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-agdf",
3
- "version": "0.6.1",
3
+ "version": "0.6.4",
4
4
  "description": "Bootstrap AGDF repository-local plugin files, Copilot/OpenCode instructions, skills, control files and machine-readable checks.",
5
5
  "type": "module",
6
6
  "files": [
@@ -25,6 +25,7 @@
25
25
  "test:delivery-path-search-unit": "node ./scripts/delivery-path-search-unit-test.js",
26
26
  "test:delivery-path-search-generator": "node ./scripts/delivery-path-search-generator-test.js",
27
27
  "test:control-state": "node ./scripts/control-state-test.js",
28
+ "test:release-bootstrap": "node ./scripts/release-bootstrap-smoke-test.js",
28
29
  "test:routing": "npm run sync-package-assets && node ./scripts/test-routing.js",
29
30
  "smoke-test": "npm run sync-package-assets && npm run test:control-state && npm run test:delivery-path-search && npm run test:delivery-path-search-unit && npm run test:delivery-path-search-generator && node ./scripts/smoke-test.js && node ./scripts/test-routing.js",
30
31
  "prepack": "npm run sync-package-assets"