@orkestrel/capture 0.0.13 → 0.0.14

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.
@@ -166,10 +166,10 @@ export declare const CAPTURE_REGISTRY_FILE = "registry.json";
166
166
  *
167
167
  * @example
168
168
  * ```ts
169
- * `${CAPTURE_REQUEST_PREFIX}-${process.pid}.json` // 'journey-selection-4242.json'
169
+ * `${CAPTURE_REQUEST_PREFIX}-${process.pid}.json` // 'selection-4242.json'
170
170
  * ```
171
171
  */
172
- export declare const CAPTURE_REQUEST_PREFIX = "journey-selection";
172
+ export declare const CAPTURE_REQUEST_PREFIX = "selection";
173
173
 
174
174
  /**
175
175
  * Lists the non-current freshness classifications from highest precedence to lowest.
@@ -183,7 +183,7 @@ export declare const CAPTURE_REQUEST_PREFIX = "journey-selection";
183
183
  * CAPTURE_STATUS_PRECEDENCE[0] // 'duplicate'
184
184
  * ```
185
185
  */
186
- export declare const CAPTURE_STATUS_PRECEDENCE: readonly ["duplicate", "orphan", "missing", "unstamped", "stale-shared", "stale-own"];
186
+ export declare const CAPTURE_STATUS_PRECEDENCE: readonly ["duplicate", "orphan", "missing", "unstamped", "drifted", "stale"];
187
187
 
188
188
  /**
189
189
  * Holds the protocol version every request, record, receipt, registry, and manifest declares.
@@ -361,12 +361,12 @@ export declare interface CaptureDestination {
361
361
  *
362
362
  * @example
363
363
  * ```ts
364
- * const options: CaptureDestinationOptions = { project: 'journey:light-390', portfolios: [mapping] }
364
+ * const options: CaptureDestinationOptions = { project: 'journey:light-390', portfolios: [target] }
365
365
  * ```
366
366
  */
367
367
  export declare interface CaptureDestinationOptions {
368
368
  readonly project: string;
369
- readonly portfolios: readonly CaptureMapping[];
369
+ readonly portfolios: readonly CaptureTarget[];
370
370
  }
371
371
 
372
372
  /**
@@ -623,25 +623,6 @@ export declare interface CaptureManifestDocument {
623
623
  }>;
624
624
  }
625
625
 
626
- /**
627
- * Maps the states one portfolio writes to its output variant and physical root.
628
- *
629
- * @example
630
- * ```ts
631
- * const mapping: CaptureMapping = {
632
- * portfolio: 'states',
633
- * directory: 'tmp/captures/states',
634
- * scoped: true,
635
- * variant: 'light-390',
636
- * states: ['inbox'],
637
- * }
638
- * ```
639
- */
640
- export declare interface CaptureMapping extends CapturePortfolioRoot {
641
- readonly variant: string;
642
- readonly states: readonly string[];
643
- }
644
-
645
626
  /**
646
627
  * Declares the capture metadata a journey case carries in Vitest's task metadata.
647
628
  *
@@ -946,11 +927,30 @@ export declare interface CaptureStamp extends CaptureEntry {
946
927
  *
947
928
  * @example
948
929
  * ```ts
949
- * const status: CaptureStatus = 'stale-own'
930
+ * const status: CaptureStatus = 'stale'
950
931
  * ```
951
932
  */
952
933
  export declare type CaptureStatus = 'current' | (typeof CAPTURE_STATUS_PRECEDENCE)[number];
953
934
 
935
+ /**
936
+ * Maps the states one portfolio writes to its output variant and physical root.
937
+ *
938
+ * @example
939
+ * ```ts
940
+ * const target: CaptureTarget = {
941
+ * portfolio: 'states',
942
+ * directory: 'tmp/captures/states',
943
+ * scoped: true,
944
+ * variant: 'light-390',
945
+ * states: ['inbox'],
946
+ * }
947
+ * ```
948
+ */
949
+ export declare interface CaptureTarget extends CapturePortfolioRoot {
950
+ readonly variant: string;
951
+ readonly states: readonly string[];
952
+ }
953
+
954
954
  /**
955
955
  * Mirrors the members of a Vitest file, suite, or test task that case collection reads.
956
956
  *
@@ -1749,7 +1749,7 @@ export declare function resolveCaptureOwner(entry: CaptureDestination): string;
1749
1749
  *
1750
1750
  * @example
1751
1751
  * ```ts
1752
- * resolveCaptureStatus(['stale-own', 'missing']) // 'missing'
1752
+ * resolveCaptureStatus(['stale', 'missing']) // 'missing'
1753
1753
  * resolveCaptureStatus([]) // 'current'
1754
1754
  * ```
1755
1755
  */
@@ -166,10 +166,10 @@ export declare const CAPTURE_REGISTRY_FILE = "registry.json";
166
166
  *
167
167
  * @example
168
168
  * ```ts
169
- * `${CAPTURE_REQUEST_PREFIX}-${process.pid}.json` // 'journey-selection-4242.json'
169
+ * `${CAPTURE_REQUEST_PREFIX}-${process.pid}.json` // 'selection-4242.json'
170
170
  * ```
171
171
  */
172
- export declare const CAPTURE_REQUEST_PREFIX = "journey-selection";
172
+ export declare const CAPTURE_REQUEST_PREFIX = "selection";
173
173
 
174
174
  /**
175
175
  * Lists the non-current freshness classifications from highest precedence to lowest.
@@ -183,7 +183,7 @@ export declare const CAPTURE_REQUEST_PREFIX = "journey-selection";
183
183
  * CAPTURE_STATUS_PRECEDENCE[0] // 'duplicate'
184
184
  * ```
185
185
  */
186
- export declare const CAPTURE_STATUS_PRECEDENCE: readonly ["duplicate", "orphan", "missing", "unstamped", "stale-shared", "stale-own"];
186
+ export declare const CAPTURE_STATUS_PRECEDENCE: readonly ["duplicate", "orphan", "missing", "unstamped", "drifted", "stale"];
187
187
 
188
188
  /**
189
189
  * Holds the protocol version every request, record, receipt, registry, and manifest declares.
@@ -361,12 +361,12 @@ export declare interface CaptureDestination {
361
361
  *
362
362
  * @example
363
363
  * ```ts
364
- * const options: CaptureDestinationOptions = { project: 'journey:light-390', portfolios: [mapping] }
364
+ * const options: CaptureDestinationOptions = { project: 'journey:light-390', portfolios: [target] }
365
365
  * ```
366
366
  */
367
367
  export declare interface CaptureDestinationOptions {
368
368
  readonly project: string;
369
- readonly portfolios: readonly CaptureMapping[];
369
+ readonly portfolios: readonly CaptureTarget[];
370
370
  }
371
371
 
372
372
  /**
@@ -623,25 +623,6 @@ export declare interface CaptureManifestDocument {
623
623
  }>;
624
624
  }
625
625
 
626
- /**
627
- * Maps the states one portfolio writes to its output variant and physical root.
628
- *
629
- * @example
630
- * ```ts
631
- * const mapping: CaptureMapping = {
632
- * portfolio: 'states',
633
- * directory: 'tmp/captures/states',
634
- * scoped: true,
635
- * variant: 'light-390',
636
- * states: ['inbox'],
637
- * }
638
- * ```
639
- */
640
- export declare interface CaptureMapping extends CapturePortfolioRoot {
641
- readonly variant: string;
642
- readonly states: readonly string[];
643
- }
644
-
645
626
  /**
646
627
  * Declares the capture metadata a journey case carries in Vitest's task metadata.
647
628
  *
@@ -946,11 +927,30 @@ export declare interface CaptureStamp extends CaptureEntry {
946
927
  *
947
928
  * @example
948
929
  * ```ts
949
- * const status: CaptureStatus = 'stale-own'
930
+ * const status: CaptureStatus = 'stale'
950
931
  * ```
951
932
  */
952
933
  export declare type CaptureStatus = 'current' | (typeof CAPTURE_STATUS_PRECEDENCE)[number];
953
934
 
935
+ /**
936
+ * Maps the states one portfolio writes to its output variant and physical root.
937
+ *
938
+ * @example
939
+ * ```ts
940
+ * const target: CaptureTarget = {
941
+ * portfolio: 'states',
942
+ * directory: 'tmp/captures/states',
943
+ * scoped: true,
944
+ * variant: 'light-390',
945
+ * states: ['inbox'],
946
+ * }
947
+ * ```
948
+ */
949
+ export declare interface CaptureTarget extends CapturePortfolioRoot {
950
+ readonly variant: string;
951
+ readonly states: readonly string[];
952
+ }
953
+
954
954
  /**
955
955
  * Mirrors the members of a Vitest file, suite, or test task that case collection reads.
956
956
  *
@@ -1749,7 +1749,7 @@ export declare function resolveCaptureOwner(entry: CaptureDestination): string;
1749
1749
  *
1750
1750
  * @example
1751
1751
  * ```ts
1752
- * resolveCaptureStatus(['stale-own', 'missing']) // 'missing'
1752
+ * resolveCaptureStatus(['stale', 'missing']) // 'missing'
1753
1753
  * resolveCaptureStatus([]) // 'current'
1754
1754
  * ```
1755
1755
  */
@@ -57,18 +57,18 @@ var CAPTURE_STATUS_PRECEDENCE = Object.freeze([
57
57
  "orphan",
58
58
  "missing",
59
59
  "unstamped",
60
- "stale-shared",
61
- "stale-own"
60
+ "drifted",
61
+ "stale"
62
62
  ]);
63
63
  /**
64
64
  * Names the file prefix of a runner request, completed by the runner's process id and `.json`.
65
65
  *
66
66
  * @example
67
67
  * ```ts
68
- * `${CAPTURE_REQUEST_PREFIX}-${process.pid}.json` // 'journey-selection-4242.json'
68
+ * `${CAPTURE_REQUEST_PREFIX}-${process.pid}.json` // 'selection-4242.json'
69
69
  * ```
70
70
  */
71
- var CAPTURE_REQUEST_PREFIX = "journey-selection";
71
+ var CAPTURE_REQUEST_PREFIX = "selection";
72
72
  /**
73
73
  * Holds the protocol version every request, record, receipt, registry, and manifest declares.
74
74
  *
@@ -1005,7 +1005,7 @@ function validateCaptureRun(run, report, project) {
1005
1005
  *
1006
1006
  * @example
1007
1007
  * ```ts
1008
- * resolveCaptureStatus(['stale-own', 'missing']) // 'missing'
1008
+ * resolveCaptureStatus(['stale', 'missing']) // 'missing'
1009
1009
  * resolveCaptureStatus([]) // 'current'
1010
1010
  * ```
1011
1011
  */