@rizom/ops 0.2.0-alpha.598 → 0.2.0-alpha.599
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 +151 -151
- package/dist/deploy.js +35 -35
- package/dist/index.js +152 -152
- package/dist/load-registry.d.ts +10 -1
- package/package.json +1 -1
package/dist/load-registry.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnchorKind, type PilotConfig, type CanonicalBundleId, type UserConfig } from "./schema";
|
|
1
|
+
import { type AnchorKind, type CohortConfig, type PilotConfig, type CanonicalBundleId, type UserConfig } from "./schema";
|
|
2
2
|
export type ExternalStatus = "unknown" | "ready" | "failed";
|
|
3
3
|
export type SnapshotStatus = "present" | "missing";
|
|
4
4
|
export interface ObservedUserStatus {
|
|
@@ -116,4 +116,13 @@ export interface PilotRegistry {
|
|
|
116
116
|
cohorts: ResolvedCohort[];
|
|
117
117
|
users: ResolvedUser[];
|
|
118
118
|
}
|
|
119
|
+
export interface LoadedCohortFile {
|
|
120
|
+
id: string;
|
|
121
|
+
data: CohortConfig;
|
|
122
|
+
}
|
|
119
123
|
export declare function loadPilotRegistry(rootDir: string, options?: LoadPilotRegistryOptions): Promise<PilotRegistry>;
|
|
124
|
+
/**
|
|
125
|
+
* Resolve a user's desired state from the user → cohort → pilot cascade.
|
|
126
|
+
* Pure: the snapshot status is filesystem state and is added by the loader.
|
|
127
|
+
*/
|
|
128
|
+
export declare function resolveUserIdentity(user: UserConfig, cohort: LoadedCohortFile, pilot: PilotConfig): Omit<ResolvedUserIdentity, "snapshotStatus">;
|