@rig-c/parts 2.42.0 → 2.44.0

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/src/runstamp.ts CHANGED
@@ -16,6 +16,8 @@ import { SUPPORT_DOMAINS_FILE } from './supportdomains.ts';
16
16
 
17
17
  export const RUN_STAMP_SPEC = 'rig-run/1' as const;
18
18
  export const RUN_STAMP_FILE = 'run.json' as const;
19
+ export const COMPOSE_RUN_SPEC = 'rig-compose-run/1' as const;
20
+ export const COMPOSE_RUN_FILE = 'compose-run.json' as const;
19
21
  export const RUN_STAMP_INPUT_ROLES = ['source', 'full', 'head'] as const;
20
22
 
21
23
  export type RunStampCommand = 'rig' | 'assemble';
@@ -31,6 +33,15 @@ export interface RunStampFileEntry {
31
33
  sha256: string;
32
34
  }
33
35
 
36
+ /** Compose's consumed inputs, captured before its gate; no clock or output inventory. */
37
+ export interface ComposeRun {
38
+ spec: typeof COMPOSE_RUN_SPEC;
39
+ scene: RunStampFileEntry;
40
+ characters: Array<{ id: string; build: string; files: RunStampFileEntry[] }>;
41
+ plate: RunStampFileEntry | null;
42
+ plates: Array<{ name: string; path: string; sha256: string }>;
43
+ }
44
+
34
45
  export interface RunStampInputEntry {
35
46
  role: RunStampInputRole;
36
47
  path: string;
@@ -119,6 +130,11 @@ export function clearRunStamp(outDir: string): void {
119
130
  rmSync(join(outDir, RUN_STAMP_FILE), { force: true });
120
131
  }
121
132
 
133
+ /** Remove a previous compose record before CLI prevalidation or the compose stage begins. */
134
+ export function clearComposeRun(outDir: string): void {
135
+ rmSync(join(outDir, COMPOSE_RUN_FILE), { force: true });
136
+ }
137
+
122
138
  /**
123
139
  * Read package `name` and `version` from `package.json`, refusing with `RUN_STAMP_PACKAGE`
124
140
  * when the file is missing, invalid JSON, or lacks a non-empty string `name` or `version`.