@rizom/ops 0.2.0-alpha.672 → 0.2.0-alpha.673
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/brains-ops.js +77 -77
- package/dist/capability-bundle-migration.d.ts +14 -10
- package/dist/deploy.js +19 -19
- package/dist/index.js +81 -81
- package/package.json +1 -1
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { z } from "@brains/utils/zod";
|
|
2
|
-
import { CAPABILITY_BUNDLE_CONTRACT,
|
|
2
|
+
import { CAPABILITY_BUNDLE_CONTRACT, canonicalBundleIdSchema, handleSchema } from "./schema";
|
|
3
3
|
declare const legacyBundleIdSchema: z.ZodEnum<{
|
|
4
4
|
core: "core";
|
|
5
5
|
site: "site";
|
|
6
6
|
publishing: "publishing";
|
|
7
7
|
team: "team";
|
|
8
8
|
}>;
|
|
9
|
+
declare const legacyBundlesSchema: z.ZodArray<typeof legacyBundleIdSchema>;
|
|
10
|
+
type SelectionRewriteSchema = z.ZodObject<{
|
|
11
|
+
sourceBundles: typeof legacyBundlesSchema;
|
|
12
|
+
targetBundles: z.ZodArray<typeof canonicalBundleIdSchema>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
declare const selectionRewriteSchema: SelectionRewriteSchema;
|
|
15
|
+
declare const capabilityBundleReviewSchema: z.ZodObject<{
|
|
16
|
+
bundleContract: z.ZodLiteral<typeof CAPABILITY_BUNDLE_CONTRACT>;
|
|
17
|
+
pilot: SelectionRewriteSchema;
|
|
18
|
+
cohorts: z.ZodRecord<typeof handleSchema, SelectionRewriteSchema>;
|
|
19
|
+
}, z.core.$strict>;
|
|
9
20
|
export type LegacyCanonicalBundleId = z.output<typeof legacyBundleIdSchema>;
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
targetBundles: CanonicalBundleId[];
|
|
13
|
-
}
|
|
14
|
-
export interface CapabilityBundleReview {
|
|
15
|
-
bundleContract: typeof CAPABILITY_BUNDLE_CONTRACT;
|
|
16
|
-
pilot: SelectionRewrite;
|
|
17
|
-
cohorts: Record<string, SelectionRewrite>;
|
|
18
|
-
}
|
|
21
|
+
export type SelectionRewrite = z.output<typeof selectionRewriteSchema>;
|
|
22
|
+
export type CapabilityBundleReview = z.output<typeof capabilityBundleReviewSchema>;
|
|
19
23
|
export declare function parseCapabilityBundleReview(input: string): CapabilityBundleReview;
|
|
20
24
|
export declare function migrateCanonicalPilotYaml(input: string, review: CapabilityBundleReview["pilot"]): string;
|
|
21
25
|
export declare function migrateCanonicalCohortYaml(input: string, cohortId: string, review: SelectionRewrite | undefined): string;
|