@c4a/context-cli 0.7.99 → 0.7.100

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/cli.js CHANGED
@@ -101059,13 +101059,13 @@ import { join as join101 } from "node:path";
101059
101059
  async function productionPlanningRoute(input, stage) {
101060
101060
  const request = stage ? undefined : await productionPlanningRequest(input.projectRoot);
101061
101061
  const present = !!stage || !!request;
101062
- const revision = stage?.id ?? request?.revision ?? "requirements-configuration";
101063
101062
  const prepared2 = !!stage && await productionPlanningIsPrepared(input.projectRoot, stage);
101064
101063
  const context = { workspace: input.projectRoot, authorities: [...input.authorities], facts: {
101065
101064
  production: { requirements_present: present, planning_prepared: prepared2, planning_complete: prepared2 && (stage?.planning_complete ?? false) }
101066
101065
  } };
101067
101066
  const provider = await loadContextWorkflowProvider();
101068
101067
  const evaluated = evaluateGraph(provider, "indexer", "production-planning", context);
101068
+ const revision = stage?.id ?? request?.revision ?? evaluated.evaluation.revision;
101069
101069
  const selected = evaluated.evaluation.primaryRoute;
101070
101070
  if (!selected)
101071
101071
  throw new TypeError("Production planning has no current graph route");