@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 +1 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
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) {
|