Skip to content
1 min read · 34 words

Type Alias: CreateResult

ts
type CreateResult =
  | {
      digest: string;
      ok: true;
      planId: string;
      revision: number;
    }
  | {
      ok: false;
      reason: "duplicate_id" | "source_missing" | "revision_missing";
    };

Defined in: src/batteries/orchestration/store.ts:177

The outcome of minting a plan (createPlan / clonePlan). On success it carries the new plan's revision and digest; on failure it names which precondition was violated.