@specatlas/core 0.1.5 → 0.1.6

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.d.ts CHANGED
@@ -203,6 +203,7 @@ interface Change {
203
203
  fix?: VerifyFile;
204
204
  planPath?: string;
205
205
  reviewPath?: string;
206
+ presentationPath?: string;
206
207
  mockupManifestPath?: string;
207
208
  diagnostics: Diagnostic[];
208
209
  }
package/dist/index.js CHANGED
@@ -1042,10 +1042,11 @@ function deriveState(input) {
1042
1042
  }
1043
1043
  if (approval.status === "missing" || approval.status === "stale") {
1044
1044
  blockedBy.push(approval.status === "stale" ? "la firma de la spec qued\xF3 obsoleta (el archivo cambi\xF3)" : "la spec no est\xE1 aprobada");
1045
+ const presented = change.presentationPath !== void 0;
1045
1046
  return {
1046
1047
  state: "awaiting_approval",
1047
1048
  blockedBy,
1048
- nextAction: next(`satlas present ${change.slug}`, "Presentar la propuesta y firmar la aprobaci\xF3n (satlas approve)"),
1049
+ nextAction: presented ? next(`satlas approve ${change.slug} --by "<nombre>"`, "Firmar la aprobaci\xF3n (la presentaci\xF3n ya est\xE1 generada)") : next(`satlas present ${change.slug}`, "Presentar la propuesta y firmar la aprobaci\xF3n (satlas approve)"),
1049
1050
  progress
1050
1051
  };
1051
1052
  }
@@ -1280,6 +1281,8 @@ async function loadChange(root, slug, relDir) {
1280
1281
  if (await exists(planFile)) change.planPath = planFile;
1281
1282
  const reviewFile = path4.join(dir, "review.md");
1282
1283
  if (await exists(reviewFile)) change.reviewPath = reviewFile;
1284
+ const presentationFile = path4.join(dir, "presentation", "index.html");
1285
+ if (await exists(presentationFile)) change.presentationPath = presentationFile;
1283
1286
  const tasksFile = path4.join(dir, "tasks.md");
1284
1287
  const tasksRaw = await readTextIfExists(tasksFile);
1285
1288
  if (tasksRaw !== void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specatlas/core",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Kernel determinista de SpecAtlas: parsing, validación, trazabilidad, olas y ciclo de vida",
5
5
  "license": "MIT",
6
6
  "type": "module",