@bedrock-rbx/core 0.1.0-beta.14 → 0.1.0-beta.16
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/README.md +180 -0
- package/dist/cli/run.mjs +135 -37
- package/dist/cli/run.mjs.map +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/{define-config-C2cOtDpP.d.mts → define-config-B4GZRPj-.d.mts} +3 -3
- package/dist/{define-config-C2cOtDpP.d.mts.map → define-config-B4GZRPj-.d.mts.map} +1 -1
- package/dist/index.d.mts +251 -95
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -26
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-mantle-state-qejWFAR0.mjs → migrate-mantle-state-F4zdhxV4.mjs} +513 -178
- package/dist/migrate-mantle-state-F4zdhxV4.mjs.map +1 -0
- package/package.json +4 -4
- package/dist/migrate-mantle-state-qejWFAR0.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-config-C2cOtDpP.d.mts","names":["UnionToIntersection","Union","Intersection","distributedUnion","mergedIntersection","UnionToIntersection","KeysOfUnion","ObjectType","Record","IsAny","T","NoInfer","IsAny","IsOptionalKeyOf","Type","Key","Record","IsOptionalKeyOf","OptionalKeysOf","Type","Key","OptionalKeysOf","RequiredKeysOf","Type","Exclude","IsNever","T","IsNever","If","Type","IfBranch","ElseBranch","UnknownArray","If","IsNever","OptionalKeysOf","UnknownArray","IsExactOptionalPropertyTypesEnabled","IfNotAnyOrNever","UnknownArrayOrTuple","FirstArrayElement","TArray","THead","StaticPartOfArray","T","Result","V","U","VariablePartOfArray","SetArrayAccess","IsReadonly","IsArrayReadonly","CollapseRestElement","_CollapseRestElement","ForwardAccumulator","BackwardAccumulator","Rest","Last","First","Simplify","T","KeyType","IsEqual","A","B","_IsEqual","G","OmitIndexSignature","ObjectType","KeyType","Record","PickIndexSignature","ObjectType","KeyType","Record","OmitIndexSignature","PickIndexSignature","Simplify","If","IsEqual","SimpleMerge","Destination","Source","Key","Merge","_Merge","Simplify","IsEqual","KeysOfUnion","RequiredKeysOf","Merge","OptionalKeysOf","IsAny","If","IsNever","FilterDefinedKeys","FilterOptionalKeys","MapsSetsOrArrays","NonRecursiveType","StringToNumber","ToString","BuildObject","Key","Value","CopiedFrom","PropertyKey","Pick","NumberKey","_","IsPlainObject","T","ObjectValue","K","NumberK","UndefinedToOptional","Exclude","HomomorphicPick","Keys","P","Extract","ValueOfUnion","Union","ReadonlyKeysOfUnion","ApplyDefaultOptions","Options","Defaults","SpecifiedOptions","Required","Omit","Record","Partial","CollapseLiterals","U","NormalizedKeys","ApplyDefaultOptions","IsEqual","Filter","KeyType","ExcludeType","ExceptOptions","requireExactProps","DefaultExceptOptions","Except","ObjectType","KeysType","Options","_Except","Required","Record","Partial","Except","If","HomomorphicPick","IsArrayReadonly","OptionalKeysOf","Simplify","UnknownArray","SetRequired","BaseType","Keys","Parameters","ReturnType","_SetRequired","arguments_","SetArrayRequired","ResultantArray","Readonly","Required","TArray","Counter","Accumulator","Rest","First"],"sources":["../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/union-to-intersection.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/keys-of-union.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-any.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-optional-key-of.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/optional-keys-of.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/required-keys-of.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-never.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/if.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/unknown-array.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/internal/array.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/simplify.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-equal.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/omit-index-signature.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/pick-index-signature.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/merge.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/internal/object.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/except.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/set-required.d.ts","../src/core/config-error.ts","../src/core/schema.ts","../src/shell/define-config.ts"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"mappings":";;;;;;;;AAiBA;;;;;;;;;;;;;KAAYA,mBAAAA;AAAAA;AAAAA;AAIXC,KAAAA;AAAAA;AAAAA,GAGIE,gBAAAA,EAAkBF,KAAAA;AAAAA;AAAAA;AAAAA,YAKXG,kBAAAA;AAAAA,EAETF,YAAAA,GAAeD,KAAAA;;;;;AAdlB;;;;;;;;;;;;;;;;;;;;;;ACsBA;;;;;;;;;;;;;KAAYK,WAAAA;AAAAA,MAELD,mBAAAA,CAAoBE,UAAAA,mBAA6BC,MAAAA,OAAaD,UAAAA;;;;;;;ADxBrE;;;;;;;;;;;;;;;;;;;;;;ACsBA;;KCXYE,KAAAA,oBAAyBE,OAAAA,CAAQD,CAAAA;;;;;AFX7C;;;;;;;;;;;;;;;;;;;;;;ACsBA;;;;;;;;;;;;;;;;KEGYG,eAAAA,wCAAuDC,IAAAA,IAClEF,KAAAA,CAAME,IAAAA,GAAOC,GAAAA,yBACVA,GAAAA,eAAkBD,IAAAA,GACjBA,IAAAA,SAAaE,MAAAA,CAAOD,GAAAA,EAAKD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AAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;AF1oB2C;;;;;;;;;;UE6qB3B,cAAA,SAAuB,IAAA,CAAK,UAAA,EAAY,OAAA,OAAc,UAAA;;;;;;EAMtE,YAAA,EAAc,MAAA,SAAe,gBAAA;;EAE7B,MAAA,GAAS,MAAA,SAAe,kBAAA;;;;;;;EAOxB,QAAA,GAAW,qBAAA;AAAA;;;;;;;;;;;KAaP,OAAA,8BAAqC,CAAA,IAAK,WAAA,CAAY,OAAA,CAAQ,CAAA,GAAI,WAAA;;;;;;;UAQ7D,UAAA;;;;;;;EAOT,iBAAA,GAAoB,uBAAA;;EAEpB,OAAA;;EAEA,MAAA,GAAS,MAAA,SAAe,aAAA;;EAExB,MAAA,GAAS,MAAA,SAAe,UAAA;;EAExB,QAAA,GAAW,MAAA,SAAe,qBAAA;;EAE1B,KAAA,GAAQ,WAAA;AAAA;AD/vBT;;;;;;;;;AA0FA;;;;;;;;;;;;;;AA1FA,iBCyxBgB,iBAAA,CAAkB,MAAA,EAAQ,WAAA,GAAc,MAAA,IAAU,eAAA;;;;;;AA5tBlE;;;;;AA0CA;;;;;;;;;;;;AAiBA;;;;;;;;;;;;;AAyDA;;;;;;;;iBA66BgB,cAAA,CAAe,KAAA,WAAgB,UAAA,WAAqB,MAAA,CAAO,MAAA,EAAQ,WAAA;;;;;;AnB/lCnF;UoBXiB,aAAA;;;;;KAML,WAAA,KAAgB,GAAA,EAAK,aAAA,KAAkB,MAAA,GAAS,OAAA,CAAQ,MAAA,KAAW,MAAA;;;;;;;;;;;;;;;;AnB2B/E;;;;;;;;;;;;;;;;;;;iBmBSgB,YAAA,WAAuB,WAAA,CAAA,CAAa,MAAA,EAAQ,CAAA,GAAI,CAAA"}
|
|
1
|
+
{"version":3,"file":"define-config-B4GZRPj-.d.mts","names":["UnionToIntersection","Union","Intersection","distributedUnion","mergedIntersection","UnionToIntersection","KeysOfUnion","ObjectType","Record","IsAny","T","NoInfer","IsAny","IsOptionalKeyOf","Type","Key","Record","IsOptionalKeyOf","OptionalKeysOf","Type","Key","OptionalKeysOf","RequiredKeysOf","Type","Exclude","IsNever","T","IsNever","If","Type","IfBranch","ElseBranch","UnknownArray","If","IsNever","OptionalKeysOf","UnknownArray","IsExactOptionalPropertyTypesEnabled","IfNotAnyOrNever","UnknownArrayOrTuple","FirstArrayElement","TArray","THead","StaticPartOfArray","T","Result","V","U","VariablePartOfArray","SetArrayAccess","IsReadonly","IsArrayReadonly","CollapseRestElement","_CollapseRestElement","ForwardAccumulator","BackwardAccumulator","Rest","Last","First","Simplify","T","KeyType","IsEqual","A","B","_IsEqual","G","OmitIndexSignature","ObjectType","KeyType","Record","PickIndexSignature","ObjectType","KeyType","Record","OmitIndexSignature","PickIndexSignature","Simplify","If","IsEqual","SimpleMerge","Destination","Source","Key","Merge","_Merge","Simplify","IsEqual","KeysOfUnion","RequiredKeysOf","Merge","OptionalKeysOf","IsAny","If","IsNever","FilterDefinedKeys","FilterOptionalKeys","MapsSetsOrArrays","NonRecursiveType","StringToNumber","ToString","BuildObject","Key","Value","CopiedFrom","PropertyKey","Pick","NumberKey","_","IsPlainObject","T","ObjectValue","K","NumberK","UndefinedToOptional","Exclude","HomomorphicPick","Keys","P","Extract","ValueOfUnion","Union","ReadonlyKeysOfUnion","ApplyDefaultOptions","Options","Defaults","SpecifiedOptions","Required","Omit","Record","Partial","CollapseLiterals","U","NormalizedKeys","ApplyDefaultOptions","IsEqual","Filter","KeyType","ExcludeType","ExceptOptions","requireExactProps","DefaultExceptOptions","Except","ObjectType","KeysType","Options","_Except","Required","Record","Partial","Except","If","HomomorphicPick","IsArrayReadonly","OptionalKeysOf","Simplify","UnknownArray","SetRequired","BaseType","Keys","Parameters","ReturnType","_SetRequired","arguments_","SetArrayRequired","ResultantArray","Readonly","Required","TArray","Counter","Accumulator","Rest","First"],"sources":["../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/union-to-intersection.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/keys-of-union.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-any.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-optional-key-of.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/optional-keys-of.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/required-keys-of.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-never.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/if.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/unknown-array.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/internal/array.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/simplify.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-equal.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/omit-index-signature.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/pick-index-signature.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/merge.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/internal/object.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/except.d.ts","../../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/set-required.d.ts","../src/core/config-error.ts","../src/core/schema.ts","../src/shell/define-config.ts"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"mappings":";;;;;;;;AAiBA;;;;;;;;;;;;;KAAYA,mBAAAA;AAAAA;AAAAA;AAIXC,KAAAA;AAAAA;AAAAA,GAGIE,gBAAAA,EAAkBF,KAAAA;AAAAA;AAAAA;AAAAA,YAKXG,kBAAAA;AAAAA,EAETF,YAAAA,GAAeD,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A,WAAgB,UAAA,WAAqB,MAAA,CAAO,MAAA,EAAQ,WAAA;;;;;;AnB/lCnF;UoBXiB,aAAA;;;;;KAML,WAAA,KAAgB,GAAA,EAAK,aAAA,KAAkB,MAAA,GAAS,OAAA,CAAQ,MAAA,KAAW,MAAA;;;;;;;;;;;;;;;;AnB2B/E;;;;;;;;;;;;;;;;;;;iBmBSgB,YAAA,WAAuB,WAAA,CAAA,CAAa,MAAA,EAAQ,CAAA,GAAI,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as UniverseOverlayWithId, D as ConfigError, E as validateConfig, O as ConfigValidationIssue, S as UniverseEntry, T as isGistStateConfig, _ as ResolvedConfig, a as ConfigEnvironmentUniverseId, b as ResourceEntryByKind, c as DisplayNamePrefixConfig, d as GistStateConfig, f as PlaceEntry, g as RedactedPlaceOverride, h as RedactedGamePassOverride, i as Config, l as EnvironmentEntry, m as RedactedEnvironmentOverride, n as ConfigInput, o as ConfigRootUniverseId, p as RedactedDeveloperProductOverride, r as defineConfig, s as DeveloperProductEntry, t as ConfigContext, u as GamePassEntry, v as ResolvedPlaceEntry, w as UniverseOverlayWithoutId, x as StateConfig, y as ResolvedUniverseEntry } from "./define-config-
|
|
1
|
+
import { C as UniverseOverlayWithId, D as ConfigError, E as validateConfig, O as ConfigValidationIssue, S as UniverseEntry, T as isGistStateConfig, _ as ResolvedConfig, a as ConfigEnvironmentUniverseId, b as ResourceEntryByKind, c as DisplayNamePrefixConfig, d as GistStateConfig, f as PlaceEntry, g as RedactedPlaceOverride, h as RedactedGamePassOverride, i as Config, l as EnvironmentEntry, m as RedactedEnvironmentOverride, n as ConfigInput, o as ConfigRootUniverseId, p as RedactedDeveloperProductOverride, r as defineConfig, s as DeveloperProductEntry, t as ConfigContext, u as GamePassEntry, v as ResolvedPlaceEntry, w as UniverseOverlayWithoutId, x as StateConfig, y as ResolvedUniverseEntry } from "./define-config-B4GZRPj-.mjs";
|
|
2
2
|
import { OpenCloudError, OpenCloudError as OpenCloudError$1, Result, Result as Result$1 } from "@bedrock-rbx/ocale";
|
|
3
3
|
import { Type as Type$1 } from "arktype";
|
|
4
4
|
import { DeveloperProductsClient } from "@bedrock-rbx/ocale/developer-products";
|
|
@@ -1017,6 +1017,13 @@ interface GistStateAdapterDeps {
|
|
|
1017
1017
|
/** ID of an existing GitHub Gist that holds this project's state files. */
|
|
1018
1018
|
readonly gistId: string;
|
|
1019
1019
|
/**
|
|
1020
|
+
* Injection seam for retry jitter; defaults to `Math.random`. Tests pass a
|
|
1021
|
+
* deterministic source so jittered sleep durations stay stable across runs.
|
|
1022
|
+
* Jitter prevents concurrent callers (parallel CI jobs writing to the same
|
|
1023
|
+
* gist) from retrying in lockstep and re-colliding on each backoff.
|
|
1024
|
+
*/
|
|
1025
|
+
readonly random?: (() => number) | undefined;
|
|
1026
|
+
/**
|
|
1020
1027
|
* Injection seam for retry backoff timing; defaults to a `setTimeout`-based
|
|
1021
1028
|
* promise. Tests pass a fake to keep retry assertions deterministic.
|
|
1022
1029
|
*/
|
|
@@ -1107,7 +1114,7 @@ interface BuildStatePortDeps {
|
|
|
1107
1114
|
* const port = buildStatePort({
|
|
1108
1115
|
* fetch: async () =>
|
|
1109
1116
|
* new Response(JSON.stringify({ files: {} }), { status: 200 }),
|
|
1110
|
-
* getEnv: (name) => (name === "
|
|
1117
|
+
* getEnv: (name) => (name === "BEDROCK_GITHUB_TOKEN" ? "ghp_example" : undefined),
|
|
1111
1118
|
* stateConfig: { backend: "gist", gistId: "abc123" },
|
|
1112
1119
|
* });
|
|
1113
1120
|
*
|
|
@@ -1459,11 +1466,11 @@ interface UpdateOperation extends BaseOperation {
|
|
|
1459
1466
|
/**
|
|
1460
1467
|
* Top-level field names that differ between `current` and `desired`,
|
|
1461
1468
|
* populated by `diff` from the kind module's `changedFieldsBetween`.
|
|
1462
|
-
*
|
|
1469
|
+
* Preview and apply renderers consume this as the single source of truth
|
|
1463
1470
|
* for "what changed" on this op; never empty for an `update` variant.
|
|
1464
1471
|
*/
|
|
1465
1472
|
readonly changedFields: ReadonlyArray<string>;
|
|
1466
|
-
/** Last-known
|
|
1473
|
+
/** Last-known current state; the driver computes a patch against `desired`. */
|
|
1467
1474
|
readonly current: ResourceCurrentState;
|
|
1468
1475
|
/** Declared desired state to converge toward. */
|
|
1469
1476
|
readonly desired: ResourceDesiredState;
|
|
@@ -2275,17 +2282,17 @@ declare function flattenConfig(config: ResolvedConfig): ReadonlyArray<ResourceDe
|
|
|
2275
2282
|
//#endregion
|
|
2276
2283
|
//#region src/core/kinds/module.d.ts
|
|
2277
2284
|
/**
|
|
2278
|
-
* Failure surfaced
|
|
2285
|
+
* Failure surfaced before `diff` runs. Three variants today:
|
|
2279
2286
|
*
|
|
2280
2287
|
* - `fileReadFailed`: a kind module's `normalize` could not read a file
|
|
2281
2288
|
* the input declared (e.g. An icon path that is missing on disk).
|
|
2282
|
-
* - `iconRemovalRejected`:
|
|
2283
|
-
*
|
|
2284
|
-
*
|
|
2285
|
-
* - `redactedNameCollision`:
|
|
2286
|
-
*
|
|
2287
|
-
*
|
|
2288
|
-
*
|
|
2289
|
+
* - `iconRemovalRejected`: a kind's prior current state recorded an icon
|
|
2290
|
+
* that the desired state no longer declares, and the kind has no
|
|
2291
|
+
* documented unset path on the upstream API.
|
|
2292
|
+
* - `redactedNameCollision`: two developer-products in the same batch
|
|
2293
|
+
* resolve to the same wire `name`. The upstream Roblox API enforces
|
|
2294
|
+
* per-universe uniqueness on developer-product names and would reject
|
|
2295
|
+
* the second PATCH with `DuplicateProductName`.
|
|
2289
2296
|
*
|
|
2290
2297
|
* The single-resource variants carry the offending `key` so the CLI can
|
|
2291
2298
|
* attribute the failure to one entry; `redactedNameCollision` carries
|
|
@@ -2393,12 +2400,11 @@ interface KindIo {
|
|
|
2393
2400
|
*/
|
|
2394
2401
|
interface ResourceKindModule<K extends ResourceKind> {
|
|
2395
2402
|
/**
|
|
2396
|
-
* Optional
|
|
2397
|
-
*
|
|
2403
|
+
* Optional reconcilability invariant invoked for every `(kind, key)` pair
|
|
2404
|
+
* that exists on both sides before `diff` runs. Surfaces kind-specific
|
|
2398
2405
|
* rejections (e.g. Removing a developer-product icon, which the upstream
|
|
2399
|
-
* API has no documented unset path for) before
|
|
2400
|
-
*
|
|
2401
|
-
* invariants omit this hook.
|
|
2406
|
+
* API has no documented unset path for) before any apply-side driver I/O
|
|
2407
|
+
* is attempted. Kinds without such invariants omit this hook.
|
|
2402
2408
|
*/
|
|
2403
2409
|
readonly assertReconcilable?: (current: ResourceCurrentState<K>, desired: DesiredFor<K>) => Result$1<undefined, BuildDesiredError>;
|
|
2404
2410
|
/**
|
|
@@ -2406,7 +2412,7 @@ interface ResourceKindModule<K extends ResourceKind> {
|
|
|
2406
2412
|
* in a kind-specific deterministic order. Mirrors `fieldsEqual`
|
|
2407
2413
|
* semantics, so `fieldsEqual(d, c)` is `true` iff this returns `[]`.
|
|
2408
2414
|
* Granularity is top-level: `discordSocialLink`, not
|
|
2409
|
-
* `discordSocialLink.uri`.
|
|
2415
|
+
* `discordSocialLink.uri`. Preview and apply renderers consume this as
|
|
2410
2416
|
* the single source of truth for "what changed" on an update op.
|
|
2411
2417
|
*/
|
|
2412
2418
|
changedFieldsBetween(desired: DesiredFor<K>, current: ResourceCurrentState<K>): ReadonlyArray<string>;
|
|
@@ -2526,7 +2532,9 @@ interface LoadConfigOptions {
|
|
|
2526
2532
|
* Resolved relative to `cwd` when not absolute. Loaded as-is with no
|
|
2527
2533
|
* extension search; if the file does not exist at the given path,
|
|
2528
2534
|
* `loadConfig` returns `fileNotFound`. When omitted, `loadConfig`
|
|
2529
|
-
* discovers `bedrock.config.{ts,js,...}` from `cwd
|
|
2535
|
+
* discovers `bedrock.config.{ts,js,...}` from `cwd`, falling back to
|
|
2536
|
+
* `.bedrock/bedrock.config.{ts,js,...}` when the project root has
|
|
2537
|
+
* none.
|
|
2530
2538
|
*/
|
|
2531
2539
|
readonly configFile?: string;
|
|
2532
2540
|
/**
|
|
@@ -2538,9 +2546,12 @@ interface LoadConfigOptions {
|
|
|
2538
2546
|
/**
|
|
2539
2547
|
* Discover, parse, and validate the project config.
|
|
2540
2548
|
*
|
|
2541
|
-
* Looks for `bedrock.config.{ts,js,mjs,cjs,yaml,yml,json}`,
|
|
2542
|
-
* and `package.json#bedrock` starting at `options.cwd` (or the
|
|
2543
|
-
* working directory).
|
|
2549
|
+
* Looks for `bedrock.config.{ts,js,mjs,cjs,yaml,yml,json,luau}`,
|
|
2550
|
+
* `.bedrockrc*`, and `package.json#bedrock` starting at `options.cwd` (or the
|
|
2551
|
+
* current working directory). When no config sits at the project root, the
|
|
2552
|
+
* loader also probes `.bedrock/bedrock.config.*` so users can colocate the
|
|
2553
|
+
* file with their other `.bedrock/` artifacts. The project root always wins
|
|
2554
|
+
* on collision. Returns a fresh, mutable `Config` on every call so
|
|
2544
2555
|
* long-running scripts see up-to-date values.
|
|
2545
2556
|
*
|
|
2546
2557
|
* When the exported default is a function (sync or async), `loadConfig`
|
|
@@ -2580,7 +2591,7 @@ declare function loadConfig(options?: LoadConfigOptions): Promise<Result$1<Confi
|
|
|
2580
2591
|
/**
|
|
2581
2592
|
* Inputs for `deploy`. Every field except `environment` is optional;
|
|
2582
2593
|
* omitted dependencies are default-constructed from the project config
|
|
2583
|
-
* and the environment variables `
|
|
2594
|
+
* and the environment variables `BEDROCK_GITHUB_TOKEN` and `BEDROCK_API_KEY`.
|
|
2584
2595
|
*/
|
|
2585
2596
|
interface DeployOptions {
|
|
2586
2597
|
/** Pre-loaded, optionally-mutated project config. Omit to call `loadConfig()` automatically. */
|
|
@@ -2604,7 +2615,7 @@ interface DeployOptions {
|
|
|
2604
2615
|
readonly readFile?: (path: string) => Promise<Uint8Array>;
|
|
2605
2616
|
/** Per-kind driver table consulted for create / update dispatch. Default-constructed from `BEDROCK_API_KEY` when omitted. */
|
|
2606
2617
|
readonly registry?: DriverRegistry;
|
|
2607
|
-
/** Backend used to read the prior snapshot and persist the new one. Default-constructed from `config.state` and `
|
|
2618
|
+
/** Backend used to read the prior snapshot and persist the new one. Default-constructed from `config.state` and `BEDROCK_GITHUB_TOKEN` when omitted. */
|
|
2608
2619
|
readonly statePort?: StatePort;
|
|
2609
2620
|
}
|
|
2610
2621
|
/**
|
|
@@ -2634,9 +2645,13 @@ type DeployError = IncompletePassEntryError | IncompletePlaceEntryError | Incomp
|
|
|
2634
2645
|
};
|
|
2635
2646
|
/**
|
|
2636
2647
|
* Run a full reconcile end-to-end. Default-constructs missing deps from
|
|
2637
|
-
* the project config and the environment variables `
|
|
2638
|
-
* `BEDROCK_API_KEY`;
|
|
2639
|
-
*
|
|
2648
|
+
* the project config and the environment variables `BEDROCK_GITHUB_TOKEN`
|
|
2649
|
+
* and `BEDROCK_API_KEY`; emits a terminal `deploySuccess` or `deployFailure`
|
|
2650
|
+
* event through the resolved `progress` port. When `progress` is omitted,
|
|
2651
|
+
* the default port comes from `BEDROCK_CLI`: a non-empty value selects the
|
|
2652
|
+
* clack-backed adapter, any other reading selects the no-op adapter. No
|
|
2653
|
+
* environment lookups happen when `statePort`, `registry`, `config`, and
|
|
2654
|
+
* `progress` are all supplied explicitly.
|
|
2640
2655
|
*
|
|
2641
2656
|
* @param options - Target environment plus optional overrides.
|
|
2642
2657
|
* @returns The persisted `BedrockState` on success, or a stage-tagged
|
|
@@ -2698,6 +2713,167 @@ type DeployError = IncompletePassEntryError | IncompletePlaceEntryError | Incomp
|
|
|
2698
2713
|
*/
|
|
2699
2714
|
declare function deploy(options: DeployOptions): Promise<Result$1<BedrockState, DeployError>>;
|
|
2700
2715
|
//#endregion
|
|
2716
|
+
//#region src/cli/spawner.d.ts
|
|
2717
|
+
/**
|
|
2718
|
+
* Concrete invocation passed to {@link Spawner.spawn}: the executable name,
|
|
2719
|
+
* its argv, and an env-var override map layered on top of the host process
|
|
2720
|
+
* environment. The adapter is responsible for merging `envOverrides` with
|
|
2721
|
+
* `process.env` so overrides win on collisions.
|
|
2722
|
+
*/
|
|
2723
|
+
interface SpawnInvocation {
|
|
2724
|
+
/** Argv to pass to the spawned executable, excluding the command itself. */
|
|
2725
|
+
readonly args: ReadonlyArray<string>;
|
|
2726
|
+
/** Executable name to spawn (e.g. `"bun"`). */
|
|
2727
|
+
readonly command: string;
|
|
2728
|
+
/** Env-var entries that should overlay the host process environment. */
|
|
2729
|
+
readonly envOverrides: Readonly<Record<string, string>>;
|
|
2730
|
+
}
|
|
2731
|
+
/**
|
|
2732
|
+
* Structural shape of the underlying error a {@link Spawner} surfaces when
|
|
2733
|
+
* a child cannot be launched. Mirrors the subset of Node's `ErrnoException`
|
|
2734
|
+
* the dispatcher and downstream renderers care about, without requiring
|
|
2735
|
+
* consumers to install `@types/node` to consume the public surface.
|
|
2736
|
+
*/
|
|
2737
|
+
interface SpawnLaunchCause extends Error {
|
|
2738
|
+
/** Errno code like `"ENOENT"`, `"EACCES"`, or `undefined` when the error did not carry one. */
|
|
2739
|
+
readonly code?: string | undefined;
|
|
2740
|
+
}
|
|
2741
|
+
/**
|
|
2742
|
+
* Failure surfaced by {@link Spawner.spawn} when the child process could not
|
|
2743
|
+
* be started at all (e.g. `ENOENT` for a missing executable). Carries the
|
|
2744
|
+
* underlying error so callers can render a precise diagnostic.
|
|
2745
|
+
*/
|
|
2746
|
+
interface SpawnLaunchError {
|
|
2747
|
+
/** Underlying error from the spawn attempt; structurally an `Error` with an optional errno `code`. */
|
|
2748
|
+
readonly cause: SpawnLaunchCause;
|
|
2749
|
+
/** Discriminator tag. */
|
|
2750
|
+
readonly kind: "launchFailed";
|
|
2751
|
+
}
|
|
2752
|
+
/**
|
|
2753
|
+
* Plugin contract for spawning a child process: the interface an adapter
|
|
2754
|
+
* (a `node:child_process` wrapper, a fake recorder in tests) implements to
|
|
2755
|
+
* let the CLI dispatch override scripts without binding to a concrete
|
|
2756
|
+
* process API.
|
|
2757
|
+
*
|
|
2758
|
+
* `Spawner` is a *driven* (secondary) port; the dispatcher drives the
|
|
2759
|
+
* spawner to perform a launch. Stdio is always inherited from the parent
|
|
2760
|
+
* process so the spawned script's output appears within the CLI's frame
|
|
2761
|
+
* in chronological order.
|
|
2762
|
+
*
|
|
2763
|
+
* @example
|
|
2764
|
+
*
|
|
2765
|
+
* ```ts
|
|
2766
|
+
* import type { Spawner, SpawnInvocation } from "@bedrock-rbx/core";
|
|
2767
|
+
*
|
|
2768
|
+
* const invocations: Array<SpawnInvocation> = [];
|
|
2769
|
+
* const spawner: Spawner = {
|
|
2770
|
+
* async spawn(invocation) {
|
|
2771
|
+
* invocations.push(invocation);
|
|
2772
|
+
* return { data: 0, success: true };
|
|
2773
|
+
* },
|
|
2774
|
+
* };
|
|
2775
|
+
*
|
|
2776
|
+
* return spawner
|
|
2777
|
+
* .spawn({ args: ["--env", "production"], command: "bun", envOverrides: {} })
|
|
2778
|
+
* .then((result) => {
|
|
2779
|
+
* expect(result.success).toBeTrue();
|
|
2780
|
+
* expect(invocations).toHaveLength(1);
|
|
2781
|
+
* });
|
|
2782
|
+
* ```
|
|
2783
|
+
*/
|
|
2784
|
+
interface Spawner {
|
|
2785
|
+
/**
|
|
2786
|
+
* Launch the supplied invocation and resolve once the child closes.
|
|
2787
|
+
*
|
|
2788
|
+
* - `Ok(exitCode)` carries the child's numeric exit code (including 0).
|
|
2789
|
+
* - `Err(launchFailed)` covers cases where the child could not be
|
|
2790
|
+
* started at all (missing executable, permission denied, signal'd
|
|
2791
|
+
* before exit).
|
|
2792
|
+
*/
|
|
2793
|
+
spawn(invocation: SpawnInvocation): Promise<Result$1<number, SpawnLaunchError>>;
|
|
2794
|
+
}
|
|
2795
|
+
//#endregion
|
|
2796
|
+
//#region src/cli/dispatch-override.d.ts
|
|
2797
|
+
/**
|
|
2798
|
+
* Parsed deploy arguments forwarded to a `.bedrock/<command>.ts` override
|
|
2799
|
+
* script. Credential flags are translated into env-var overrides by the
|
|
2800
|
+
* dispatcher so secrets never reach the child's argv.
|
|
2801
|
+
*/
|
|
2802
|
+
interface OverrideInvocation {
|
|
2803
|
+
/** Optional `--api-key` value; translated to `BEDROCK_API_KEY` in env. */
|
|
2804
|
+
readonly apiKey?: string;
|
|
2805
|
+
/** Optional `--config <path>` value; forwarded unchanged in argv when present. */
|
|
2806
|
+
readonly configFile?: string;
|
|
2807
|
+
/** Target environment for this single override invocation. */
|
|
2808
|
+
readonly environment: string;
|
|
2809
|
+
/** Optional `--github-token` value; translated to `BEDROCK_GITHUB_TOKEN` in env. */
|
|
2810
|
+
readonly githubToken?: string;
|
|
2811
|
+
/** Path to the override script file to invoke. */
|
|
2812
|
+
readonly overridePath: string;
|
|
2813
|
+
}
|
|
2814
|
+
/**
|
|
2815
|
+
* Failure modes returned by {@link dispatchOverride}.
|
|
2816
|
+
*
|
|
2817
|
+
* - `launchFailed` — the child process could not be started (e.g. `bun`
|
|
2818
|
+
* missing, permission denied). Wraps the {@link SpawnLaunchCause} the
|
|
2819
|
+
* underlying spawner surfaced so callers can render a precise diagnostic.
|
|
2820
|
+
* - `nonZeroExit` — the child started, ran, and exited with a non-zero
|
|
2821
|
+
* exit code. Callers should propagate `exitCode` into the CLI's own
|
|
2822
|
+
* process exit code so CI failure modes mirror the override's outcome.
|
|
2823
|
+
*/
|
|
2824
|
+
type SpawnOverrideError = {
|
|
2825
|
+
readonly cause: SpawnLaunchCause;
|
|
2826
|
+
readonly kind: "launchFailed";
|
|
2827
|
+
} | {
|
|
2828
|
+
readonly exitCode: number;
|
|
2829
|
+
readonly kind: "nonZeroExit";
|
|
2830
|
+
};
|
|
2831
|
+
/**
|
|
2832
|
+
* Dispatch a single `.bedrock/<command>.ts` override invocation through the
|
|
2833
|
+
* supplied {@link Spawner}. Encapsulates the spawn protocol:
|
|
2834
|
+
*
|
|
2835
|
+
* - argv = `[overridePath, "--env", environment]`, with `"--config", configFile`
|
|
2836
|
+
* appended when supplied.
|
|
2837
|
+
* - `apiKey` becomes the `BEDROCK_API_KEY` env-var override; `githubToken`
|
|
2838
|
+
* becomes `BEDROCK_GITHUB_TOKEN`. Neither value appears in argv.
|
|
2839
|
+
* - `BEDROCK_CLI=1` is always set in the env. The override's `deploy()`
|
|
2840
|
+
* reads this on the `getEnv` seam to default to the clack progress
|
|
2841
|
+
* adapter; absent that downstream wiring, the variable is a forward-
|
|
2842
|
+
* compatible signal a future caller can act on.
|
|
2843
|
+
*
|
|
2844
|
+
* The dispatcher itself reads no ambient state: every input arrives via the
|
|
2845
|
+
* `invocation` argument and the `Spawner` port is the only side-effect seam.
|
|
2846
|
+
*
|
|
2847
|
+
* @param invocation - Path, environment, and parsed deploy-flag inputs.
|
|
2848
|
+
* @param spawner - Port the dispatcher hands the resolved
|
|
2849
|
+
* {@link SpawnInvocation} to.
|
|
2850
|
+
* @returns `Ok(undefined)` when the child exited zero; otherwise an
|
|
2851
|
+
* {@link SpawnOverrideError} discriminating launch vs non-zero exit.
|
|
2852
|
+
*
|
|
2853
|
+
* @example
|
|
2854
|
+
*
|
|
2855
|
+
* ```ts
|
|
2856
|
+
* import { dispatchOverride, type Spawner } from "@bedrock-rbx/core";
|
|
2857
|
+
*
|
|
2858
|
+
* const spawner: Spawner = {
|
|
2859
|
+
* async spawn() {
|
|
2860
|
+
* return { data: 0, success: true };
|
|
2861
|
+
* },
|
|
2862
|
+
* };
|
|
2863
|
+
*
|
|
2864
|
+
* return dispatchOverride(
|
|
2865
|
+
* {
|
|
2866
|
+
* environment: "production",
|
|
2867
|
+
* overridePath: "/abs/.bedrock/deploy.ts",
|
|
2868
|
+
* },
|
|
2869
|
+
* spawner,
|
|
2870
|
+
* ).then((result) => {
|
|
2871
|
+
* expect(result.success).toBeTrue();
|
|
2872
|
+
* });
|
|
2873
|
+
* ```
|
|
2874
|
+
*/
|
|
2875
|
+
declare function dispatchOverride(invocation: OverrideInvocation, spawner: Spawner): Promise<Result$1<void, SpawnOverrideError>>;
|
|
2876
|
+
//#endregion
|
|
2701
2877
|
//#region src/cli/render.d.ts
|
|
2702
2878
|
/**
|
|
2703
2879
|
* Output port the CLI renders through. Mirrors the subset of `@clack/prompts`
|
|
@@ -2746,11 +2922,12 @@ interface ClackProgressAdapterDeps {
|
|
|
2746
2922
|
/** Output port the events are rendered through. */
|
|
2747
2923
|
readonly clack: ClackPort;
|
|
2748
2924
|
/**
|
|
2749
|
-
* Loaded project config
|
|
2750
|
-
* `
|
|
2751
|
-
*
|
|
2925
|
+
* Loaded project config (raw `Config` or env-resolved `ResolvedConfig`);
|
|
2926
|
+
* the `stateWritten` case resolves the per-environment `StateConfig`
|
|
2927
|
+
* against this to format the backend label. When omitted, `stateWritten`
|
|
2928
|
+
* renders the generic `"state"` placeholder.
|
|
2752
2929
|
*/
|
|
2753
|
-
readonly config?: Config;
|
|
2930
|
+
readonly config?: Config | ResolvedConfig;
|
|
2754
2931
|
}
|
|
2755
2932
|
/**
|
|
2756
2933
|
* Build a {@link ProgressPort} that renders events through a `ClackPort`.
|
|
@@ -3293,6 +3470,47 @@ declare function createUniverseDriver(deps: UniverseDriverDeps): ResourceDriver<
|
|
|
3293
3470
|
*/
|
|
3294
3471
|
declare function createClackPort(): ClackPort;
|
|
3295
3472
|
//#endregion
|
|
3473
|
+
//#region src/cli/default-spawner.d.ts
|
|
3474
|
+
/**
|
|
3475
|
+
* Construct a {@link Spawner} backed by `node:child_process.spawn` with
|
|
3476
|
+
* `stdio` inherited from the parent process. The child's environment is
|
|
3477
|
+
* `process.env` overlaid with {@link SpawnInvocation.envOverrides} (overrides
|
|
3478
|
+
* win on key collision).
|
|
3479
|
+
*
|
|
3480
|
+
* - Exit codes resolve as `Ok(exitCode)` (including `0`).
|
|
3481
|
+
* - `ENOENT` and other launch-time errors resolve as `Err(launchFailed)`
|
|
3482
|
+
* with the original error in `cause` (its `code` field carries the
|
|
3483
|
+
* errno where present).
|
|
3484
|
+
* - Children terminated by signal before producing an exit code collapse
|
|
3485
|
+
* into `launchFailed` with a synthetic `Error` whose message names the
|
|
3486
|
+
* signal; a distinct variant lands the day a caller needs to act on the
|
|
3487
|
+
* difference.
|
|
3488
|
+
*
|
|
3489
|
+
* @returns A `Spawner` whose `spawn` settles once the child closes.
|
|
3490
|
+
* @example
|
|
3491
|
+
*
|
|
3492
|
+
* ```ts
|
|
3493
|
+
* import { createDefaultSpawner } from "@bedrock-rbx/core";
|
|
3494
|
+
* import process from "node:process";
|
|
3495
|
+
*
|
|
3496
|
+
* const spawner = createDefaultSpawner();
|
|
3497
|
+
*
|
|
3498
|
+
* return spawner
|
|
3499
|
+
* .spawn({
|
|
3500
|
+
* args: ["-e", "process.exit(0)"],
|
|
3501
|
+
* command: process.execPath,
|
|
3502
|
+
* envOverrides: {},
|
|
3503
|
+
* })
|
|
3504
|
+
* .then((result) => {
|
|
3505
|
+
* expect(result.success).toBeTrue();
|
|
3506
|
+
* if (result.success) {
|
|
3507
|
+
* expect(result.data).toBe(0);
|
|
3508
|
+
* }
|
|
3509
|
+
* });
|
|
3510
|
+
* ```
|
|
3511
|
+
*/
|
|
3512
|
+
declare function createDefaultSpawner(): Spawner;
|
|
3513
|
+
//#endregion
|
|
3296
3514
|
//#region src/core/derive-price-fields.d.ts
|
|
3297
3515
|
/**
|
|
3298
3516
|
* Wire-shape pricing fragment produced by {@link derivePriceFields}: the
|
|
@@ -3352,7 +3570,7 @@ declare function derivePriceFields(desired: {
|
|
|
3352
3570
|
*
|
|
3353
3571
|
* @param desired - Declared desired state from user config, already normalized
|
|
3354
3572
|
* (file hashes computed, nullable wire values mapped to `undefined`).
|
|
3355
|
-
* @param current - Last-known
|
|
3573
|
+
* @param current - Last-known current state from the state file.
|
|
3356
3574
|
* @returns Operations to reconcile the two snapshots.
|
|
3357
3575
|
*
|
|
3358
3576
|
* @example
|
|
@@ -3643,68 +3861,6 @@ declare function serializeStateFile(state: BedrockState): string;
|
|
|
3643
3861
|
*/
|
|
3644
3862
|
declare function parseStateFile(raw: string | undefined, file: string): Result$1<BedrockState | undefined, StateError>;
|
|
3645
3863
|
//#endregion
|
|
3646
|
-
//#region src/core/validate-plan.d.ts
|
|
3647
|
-
/**
|
|
3648
|
-
* Plan-time invariant check that runs after `buildDesired` and before
|
|
3649
|
-
* `diff`. Walks paired `(kind, key)` entries and dispatches to each
|
|
3650
|
-
* kind module's optional `assertReconcilable` hook so kind-specific
|
|
3651
|
-
* rejections (e.g. Removing a developer-product icon, which the upstream
|
|
3652
|
-
* API has no documented unset path for) surface as typed errors before
|
|
3653
|
-
* `diff` runs and before any apply-side driver I/O is attempted.
|
|
3654
|
-
*
|
|
3655
|
-
* Pure and synchronous. Current-only entries (no matching desired) are
|
|
3656
|
-
* ignored: their reconciliation is `diff`'s concern, not this seam's.
|
|
3657
|
-
*
|
|
3658
|
-
* @param desired - Desired state from `buildDesired`.
|
|
3659
|
-
* @param current - Prior current state from the state port.
|
|
3660
|
-
* @returns `Ok(undefined)` when every paired entry passes its kind-level
|
|
3661
|
-
* reconcilability check, or the first `Err` returned by a hook.
|
|
3662
|
-
*
|
|
3663
|
-
* @example
|
|
3664
|
-
*
|
|
3665
|
-
* ```ts
|
|
3666
|
-
* import { asResourceKey, asRobloxAssetId, asSha256Hex, validatePlan } from "@bedrock-rbx/core";
|
|
3667
|
-
*
|
|
3668
|
-
* const result = validatePlan(
|
|
3669
|
-
* [
|
|
3670
|
-
* {
|
|
3671
|
-
* description: "Stocks the player up with 1,000 premium gems.",
|
|
3672
|
-
* isRegionalPricingEnabled: undefined,
|
|
3673
|
-
* key: asResourceKey("gem-pack"),
|
|
3674
|
-
* kind: "developerProduct",
|
|
3675
|
-
* name: "Gem Pack",
|
|
3676
|
-
* price: undefined,
|
|
3677
|
-
* storePageEnabled: undefined,
|
|
3678
|
-
* },
|
|
3679
|
-
* ],
|
|
3680
|
-
* [
|
|
3681
|
-
* {
|
|
3682
|
-
* description: "Stocks the player up with 1,000 premium gems.",
|
|
3683
|
-
* icon: { "en-us": "assets/gem-pack.png" },
|
|
3684
|
-
* iconFileHashes: {
|
|
3685
|
-
* "en-us": asSha256Hex(
|
|
3686
|
-
* "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
3687
|
-
* ),
|
|
3688
|
-
* },
|
|
3689
|
-
* isRegionalPricingEnabled: undefined,
|
|
3690
|
-
* key: asResourceKey("gem-pack"),
|
|
3691
|
-
* kind: "developerProduct",
|
|
3692
|
-
* name: "Gem Pack",
|
|
3693
|
-
* outputs: { productId: asRobloxAssetId("9876543210") },
|
|
3694
|
-
* price: undefined,
|
|
3695
|
-
* storePageEnabled: undefined,
|
|
3696
|
-
* },
|
|
3697
|
-
* ],
|
|
3698
|
-
* );
|
|
3699
|
-
*
|
|
3700
|
-
* expect(result.success).toBeFalse();
|
|
3701
|
-
* if (!result.success) {
|
|
3702
|
-
* expect(result.err.kind).toBe("iconRemovalRejected");
|
|
3703
|
-
* }
|
|
3704
|
-
* ```
|
|
3705
|
-
*/
|
|
3706
|
-
declare function validatePlan(desired: ReadonlyArray<ResourceDesiredState>, current: ReadonlyArray<ResourceCurrentState>): Result$1<undefined, BuildDesiredError>;
|
|
3707
|
-
//#endregion
|
|
3708
3864
|
//#region src/shell/migrate-mantle-state.d.ts
|
|
3709
3865
|
type ConfigFormat = "typescript" | "yaml";
|
|
3710
3866
|
/**
|
|
@@ -3800,5 +3956,5 @@ interface MigrateMantleStateDeps {
|
|
|
3800
3956
|
*/
|
|
3801
3957
|
declare function migrateMantleState(deps: MigrateMantleStateDeps): Promise<Result$1<MigrationReport, MigrateError>>;
|
|
3802
3958
|
//#endregion
|
|
3803
|
-
export { type AggregateApplyError, type ApplyError, type ApplyOpsReporting, type ApplySummaryEvent, type BaseOperation, type BedrockState, type BuildDesiredError, type ClackPort, type ClackProgressAdapterDeps, type Config, type ConfigContext, type ConfigEnvironmentUniverseId, type ConfigError, type ConfigInput, type ConfigRootUniverseId, type ConfigValidationIssue, type CreateOperation, DEFAULT_PREFIX_FORMAT, type DeployError, type DeployFailureEvent, type DeployOptions, type DeploySuccessEvent, type DeveloperProductDesiredInput, type DeveloperProductDesiredState, type DeveloperProductDriverDeps, type DeveloperProductEntry, type DeveloperProductOutputs, type DisplayNamePrefixConfig, type DriverRegistry, type EnvironmentEntry, type GamePassDesiredInput, type GamePassDesiredState, type GamePassDriverDeps, type GamePassEntry, type GamePassOutputs, type GetEnvironmentError, type GistStateAdapterDeps, type GistStateConfig, type IncompletePlaceEntryError, type IncompleteUniverseEntryError, type KindIo, type KindRegistry, type LoadConfigOptions, type MigrateError, type MigrateMantleStateDeps, type MigrationReport, type MigrationSummary, type MigrationWarning, type MissingCredentialError, type NoopOperation, OpenCloudError, type Operation, type PlaceDesiredInput, type PlaceDesiredState, type PlaceDriverDeps, type PlaceEntry, type PlaceOutputs, type PriceFields, type ProgressEvent, type ProgressPort, type RedactedDeveloperProductOverride, type RedactedEnvironmentOverride, type RedactedGamePassOverride, type RedactedPlaceOverride, type RegistryConfigError, type ResolvedConfig, type ResolvedPlaceEntry, type ResolvedUniverseEntry, type ResourceCurrentState, type ResourceDesiredInput, type ResourceDesiredState, type ResourceDriver, type ResourceEntryByKind, type ResourceKey, type ResourceKind, type ResourceKindModule, type ResourceOpFailedEvent, type ResourceOpNoopEvent, type ResourceOpStartedEvent, type ResourceOpSucceededCreateEvent, type ResourceOpSucceededEvent, type ResourceOpSucceededUpdateEvent, type ResourceOutputs, type ResourceOutputsByKind, type Result, type RobloxAssetId, SOCIAL_LINK_FIELDS, type SelectEnvironmentError, type Sha256Hex, type SocialLink, type SocialLinkField, type StateConfig, type StateError, type StateNotConfiguredError, type StatePort, type StateWrittenEvent, type StatesByEnvironment, UNIVERSE_SINGLETON_KEY, type UniverseDesiredInput, type UniverseDesiredState, type UniverseDriverDeps, type UniverseEntry, type UniverseOutputs, type UniverseOverlayWithId, type UniverseOverlayWithoutId, type UnknownEnvironmentError, type UnsupportedBackendError, type UpdateOperation, applyOps, asResourceKey, asRobloxAssetId, asSha256Hex, buildDefaultRegistry, buildDesired, buildStatePort, createClackPort, createClackProgressAdapter, createDeveloperProductDriver, createGamePassDriver, createGistStateAdapter, createNoOpProgressAdapter, createPlaceDriver, createUniverseDriver, defaultKindRegistry, defineConfig, deploy, derivePriceFields, diff, flattenConfig, getEnvironment, isGistStateConfig, isResourceKey, isRobloxAssetId, isSha256Hex, loadConfig, migrateMantleState, parseStateFile, renderDisplayNamePrefix, resolveStateConfig, selectEnvironment, serializeStateFile, shouldReuploadIcon, validateConfig, validateEnvironmentName
|
|
3959
|
+
export { type AggregateApplyError, type ApplyError, type ApplyOpsReporting, type ApplySummaryEvent, type BaseOperation, type BedrockState, type BuildDesiredError, type ClackPort, type ClackProgressAdapterDeps, type Config, type ConfigContext, type ConfigEnvironmentUniverseId, type ConfigError, type ConfigInput, type ConfigRootUniverseId, type ConfigValidationIssue, type CreateOperation, DEFAULT_PREFIX_FORMAT, type DeployError, type DeployFailureEvent, type DeployOptions, type DeploySuccessEvent, type DeveloperProductDesiredInput, type DeveloperProductDesiredState, type DeveloperProductDriverDeps, type DeveloperProductEntry, type DeveloperProductOutputs, type DisplayNamePrefixConfig, type DriverRegistry, type EnvironmentEntry, type GamePassDesiredInput, type GamePassDesiredState, type GamePassDriverDeps, type GamePassEntry, type GamePassOutputs, type GetEnvironmentError, type GistStateAdapterDeps, type GistStateConfig, type IncompletePlaceEntryError, type IncompleteUniverseEntryError, type KindIo, type KindRegistry, type LoadConfigOptions, type MigrateError, type MigrateMantleStateDeps, type MigrationReport, type MigrationSummary, type MigrationWarning, type MissingCredentialError, type NoopOperation, OpenCloudError, type Operation, type OverrideInvocation, type PlaceDesiredInput, type PlaceDesiredState, type PlaceDriverDeps, type PlaceEntry, type PlaceOutputs, type PriceFields, type ProgressEvent, type ProgressPort, type RedactedDeveloperProductOverride, type RedactedEnvironmentOverride, type RedactedGamePassOverride, type RedactedPlaceOverride, type RegistryConfigError, type ResolvedConfig, type ResolvedPlaceEntry, type ResolvedUniverseEntry, type ResourceCurrentState, type ResourceDesiredInput, type ResourceDesiredState, type ResourceDriver, type ResourceEntryByKind, type ResourceKey, type ResourceKind, type ResourceKindModule, type ResourceOpFailedEvent, type ResourceOpNoopEvent, type ResourceOpStartedEvent, type ResourceOpSucceededCreateEvent, type ResourceOpSucceededEvent, type ResourceOpSucceededUpdateEvent, type ResourceOutputs, type ResourceOutputsByKind, type Result, type RobloxAssetId, SOCIAL_LINK_FIELDS, type SelectEnvironmentError, type Sha256Hex, type SocialLink, type SocialLinkField, type SpawnInvocation, type SpawnLaunchCause, type SpawnLaunchError, type SpawnOverrideError, type Spawner, type StateConfig, type StateError, type StateNotConfiguredError, type StatePort, type StateWrittenEvent, type StatesByEnvironment, UNIVERSE_SINGLETON_KEY, type UniverseDesiredInput, type UniverseDesiredState, type UniverseDriverDeps, type UniverseEntry, type UniverseOutputs, type UniverseOverlayWithId, type UniverseOverlayWithoutId, type UnknownEnvironmentError, type UnsupportedBackendError, type UpdateOperation, applyOps, asResourceKey, asRobloxAssetId, asSha256Hex, buildDefaultRegistry, buildDesired, buildStatePort, createClackPort, createClackProgressAdapter, createDefaultSpawner, createDeveloperProductDriver, createGamePassDriver, createGistStateAdapter, createNoOpProgressAdapter, createPlaceDriver, createUniverseDriver, defaultKindRegistry, defineConfig, deploy, derivePriceFields, diff, dispatchOverride, flattenConfig, getEnvironment, isGistStateConfig, isResourceKey, isRobloxAssetId, isSha256Hex, loadConfig, migrateMantleState, parseStateFile, renderDisplayNamePrefix, resolveStateConfig, selectEnvironment, serializeStateFile, shouldReuploadIcon, validateConfig, validateEnvironmentName };
|
|
3804
3960
|
//# sourceMappingURL=index.d.mts.map
|