@forgeax/engine-pack 0.1.21 → 0.1.24
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 +167 -48
- package/dist/__tests__/inventory-schema.test.d.ts +2 -0
- package/dist/__tests__/inventory-schema.test.d.ts.map +1 -0
- package/dist/__tests__/material-cook-receipt-layer-plan.unit.test.d.ts +2 -0
- package/dist/__tests__/material-cook-receipt-layer-plan.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pack-authoring-gateway.unit.test.d.ts +2 -0
- package/dist/__tests__/pack-authoring-gateway.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pack-authoring.unit.test.d.ts +2 -0
- package/dist/__tests__/pack-authoring.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pack-scanner.unit.test.d.ts +2 -0
- package/dist/__tests__/pack-scanner.unit.test.d.ts.map +1 -0
- package/dist/__tests__/scanner-blacklist.test.d.ts +2 -0
- package/dist/__tests__/scanner-blacklist.test.d.ts.map +1 -0
- package/dist/build.d.ts +9 -4
- package/dist/build.d.ts.map +1 -1
- package/dist/build.mjs +3449 -897
- package/dist/build.mjs.map +1 -1
- package/dist/builtin.mjs +37 -4
- package/dist/builtin.mjs.map +1 -1
- package/dist/catalog-builder.d.ts.map +1 -1
- package/dist/cli-asset.d.ts.map +1 -1
- package/dist/cli-asset.mjs +1361 -845
- package/dist/cli-asset.mjs.map +1 -1
- package/dist/deriveAssetName.d.ts +11 -7
- package/dist/deriveAssetName.d.ts.map +1 -1
- package/dist/evidence/material-cook.d.ts +11 -0
- package/dist/evidence/material-cook.d.ts.map +1 -1
- package/dist/evidence/source-inventory.d.ts.map +1 -1
- package/dist/guid.d.ts +15 -0
- package/dist/guid.d.ts.map +1 -1
- package/dist/guid.mjs +53 -5
- package/dist/guid.mjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1297 -562
- package/dist/index.mjs.map +1 -1
- package/dist/inventory/binding.d.ts +6 -0
- package/dist/inventory/binding.d.ts.map +1 -0
- package/dist/inventory/declaration.d.ts +24 -0
- package/dist/inventory/declaration.d.ts.map +1 -0
- package/dist/inventory/index.d.ts +3 -0
- package/dist/inventory/index.d.ts.map +1 -0
- package/dist/inventory/sync.d.ts +5 -0
- package/dist/inventory/sync.d.ts.map +1 -0
- package/dist/material-cook.d.ts +1 -1
- package/dist/material-cook.d.ts.map +1 -1
- package/dist/material-cook.mjs +50 -3
- package/dist/material-cook.mjs.map +1 -1
- package/dist/name.mjs +4 -7
- package/dist/name.mjs.map +1 -1
- package/dist/pack-authoring-node.d.ts +26 -0
- package/dist/pack-authoring-node.d.ts.map +1 -0
- package/dist/pack-authoring-node.mjs +11089 -0
- package/dist/pack-authoring-node.mjs.map +1 -0
- package/dist/pack-authoring.d.ts +230 -0
- package/dist/pack-authoring.d.ts.map +1 -0
- package/dist/pack-authoring.mjs +1137 -0
- package/dist/pack-authoring.mjs.map +1 -0
- package/dist/package-finalizer.d.ts +2 -20
- package/dist/package-finalizer.d.ts.map +1 -1
- package/dist/resolve-asset-source.d.ts +1 -3
- package/dist/resolve-asset-source.d.ts.map +1 -1
- package/dist/resolve-asset-source.mjs +6 -81
- package/dist/resolve-asset-source.mjs.map +1 -1
- package/dist/runtime.mjs +77 -7
- package/dist/runtime.mjs.map +1 -1
- package/dist/scanner.d.ts +18 -7
- package/dist/scanner.d.ts.map +1 -1
- package/dist/scanner.mjs +1164 -687
- package/dist/scanner.mjs.map +1 -1
- package/dist/schema-compiled.d.ts.map +1 -1
- package/dist/schema.mjs +79 -7
- package/dist/schema.mjs.map +1 -1
- package/dist/scriptable-pack-node.d.ts +7 -31
- package/dist/scriptable-pack-node.d.ts.map +1 -1
- package/dist/scriptable-pack-node.mjs +572 -1019
- package/dist/scriptable-pack-node.mjs.map +1 -1
- package/dist/scriptable-pack-worker.mjs +29 -11
- package/dist/scriptable-pack-worker.mjs.map +1 -1
- package/dist/scriptable-pack.d.ts +20 -532
- package/dist/scriptable-pack.d.ts.map +1 -1
- package/dist/scriptable-pack.mjs +1038 -527
- package/dist/scriptable-pack.mjs.map +1 -1
- package/package.json +2 -7
- package/schema/meta.schema.json +1 -1
- package/schema/pack.schema.json +76 -6
- package/src/__tests__/guid-collision.unit.test.ts +18 -9
- package/src/__tests__/inventory-schema.test.ts +109 -0
- package/src/__tests__/material-cook-receipt-layer-plan.unit.test.ts +16 -0
- package/src/__tests__/material-cook-schema.unit.test.ts +62 -0
- package/src/__tests__/pack-authoring-gateway.unit.test.ts +249 -0
- package/src/__tests__/pack-authoring.unit.test.ts +266 -0
- package/src/__tests__/pack-scanner.unit.test.ts +123 -0
- package/src/__tests__/pack.unit.test.ts +1 -238
- package/src/__tests__/package-finalizer.contract.test.ts +55 -0
- package/src/__tests__/resolve-asset-source.test.ts +15 -98
- package/src/__tests__/scanner-blacklist.test.ts +55 -0
- package/src/__tests__/scanner-inventory.contract.test.ts +11 -14
- package/src/__tests__/scanner-inventory.test.ts +23 -10
- package/src/__tests__/scriptable-pack-cli.integration.test.ts +4 -9
- package/src/__tests__/topology.unit.test.ts +23 -0
- package/src/build.ts +28 -18
- package/src/catalog-builder.ts +60 -33
- package/src/cli-asset.ts +68 -83
- package/src/deriveAssetName.ts +14 -13
- package/src/evidence/material-cook.ts +79 -3
- package/src/evidence/source-inventory.ts +34 -21
- package/src/guid.ts +65 -4
- package/src/index.ts +15 -11
- package/src/inventory/binding.ts +25 -0
- package/src/inventory/declaration.ts +168 -0
- package/src/inventory/index.ts +18 -0
- package/src/inventory/sync.ts +22 -0
- package/src/material-cook.ts +1 -0
- package/src/pack-authoring-node.ts +1966 -0
- package/src/pack-authoring.ts +1478 -0
- package/src/package-finalizer.ts +2 -42
- package/src/resolve-asset-source.ts +4 -76
- package/src/scanner.ts +236 -56
- package/src/schema/material-cook.schema.json +4 -1
- package/src/schema-compiled.ts +2 -0
- package/src/scriptable-pack-node.ts +108 -719
- package/src/scriptable-pack-worker.ts +48 -16
- package/src/scriptable-pack.ts +28 -939
- package/dist/.tsbuildinfo +0 -1
- package/dist/__tests__/load-asset-config.test.d.ts +0 -2
- package/dist/__tests__/load-asset-config.test.d.ts.map +0 -1
- package/dist/__tests__/scriptable-pack.test-d.d.ts +0 -2
- package/dist/__tests__/scriptable-pack.test-d.d.ts.map +0 -1
- package/dist/__tests__/scriptable-pack.unit.test.d.ts +0 -2
- package/dist/__tests__/scriptable-pack.unit.test.d.ts.map +0 -1
- package/dist/config.d.ts +0 -6
- package/dist/config.d.ts.map +0 -1
- package/dist/config.mjs +0 -29
- package/dist/config.mjs.map +0 -1
- package/src/__tests__/load-asset-config.test.ts +0 -121
- package/src/__tests__/scriptable-pack.test-d.ts +0 -131
- package/src/__tests__/scriptable-pack.unit.test.ts +0 -789
- package/src/config.ts +0 -36
|
@@ -1,558 +1,46 @@
|
|
|
1
|
-
import type { Asset, AssetGuid,
|
|
2
|
-
/**
|
|
1
|
+
import type { Asset, AssetGuid, Result } from '@forgeax/engine-types';
|
|
2
|
+
/**
|
|
3
|
+
* Build-time Pack vocabulary shared by the source loader and output
|
|
4
|
+
* producers. ScriptablePack and Pack authoring definitions live in the shared
|
|
5
|
+
* Pack authoring implementation; this facade is the browser-safe source entry.
|
|
6
|
+
*/
|
|
7
|
+
export * from './guid.js';
|
|
8
|
+
export * from './pack-authoring.js';
|
|
9
|
+
/** Closed ordinary kind vocabulary shared by Pack discovery and producers. */
|
|
3
10
|
export type ScriptablePackAssetKind = Asset['kind'];
|
|
4
|
-
|
|
5
|
-
export declare
|
|
6
|
-
/** Machine-readable producer/loader floor owned by engine-pack. */
|
|
11
|
+
export declare const SCRIPTABLE_PACK_ASSET_KINDS: readonly ["mesh", "material", "scene", "texture", "equirect", "sampler", "font", "render-pipeline", "tileset", "video", "skeleton", "skin", "animation-clip", "animation-graph", "audio", "particle-effect", "ies-profile"];
|
|
12
|
+
export declare function isScriptablePackAssetKind(value: string): value is ScriptablePackAssetKind;
|
|
7
13
|
export declare const SCRIPTABLE_PACK_CAPABILITY_MANIFEST: {
|
|
8
|
-
readonly assetKinds: readonly ["mesh", "material", "scene", "texture", "equirect", "sampler", "font", "render-pipeline", "tileset", "video", "skeleton", "skin", "animation-clip", "animation-graph", "audio", "particle-effect"];
|
|
14
|
+
readonly assetKinds: readonly ["mesh", "material", "scene", "texture", "equirect", "sampler", "font", "render-pipeline", "tileset", "video", "skeleton", "skin", "animation-clip", "animation-graph", "audio", "particle-effect", "ies-profile"];
|
|
9
15
|
readonly durablePayload: true;
|
|
10
16
|
readonly refs: true;
|
|
11
17
|
readonly artifacts: true;
|
|
12
18
|
readonly hostCapabilities: readonly ["audio-install", "video-play", "particle-execute"];
|
|
13
19
|
};
|
|
14
|
-
export declare function isScriptablePackAssetKind(value: string): value is ScriptablePackAssetKind;
|
|
15
|
-
export interface ScriptablePackAssetDeclaration<TKind extends ScriptablePackAssetKind = ScriptablePackAssetKind> {
|
|
16
|
-
readonly guid: AssetGuid;
|
|
17
|
-
readonly kind: TKind;
|
|
18
|
-
readonly name?: string;
|
|
19
|
-
}
|
|
20
|
-
export type ScriptablePackAssetDeclarations = Readonly<Record<string, ScriptablePackAssetDeclaration>>;
|
|
21
|
-
export type ScriptablePackExternalAssets = Readonly<Record<string, AssetGuid>>;
|
|
22
|
-
/**
|
|
23
|
-
* Component-shaped input accepted by a ScriptablePack scene declaration.
|
|
24
|
-
* Engine component tokens satisfy this shape; plain `{ type }` rows keep the
|
|
25
|
-
* Pack contract independent of ECS and survive the isolated module worker.
|
|
26
|
-
*/
|
|
27
20
|
export interface ScriptablePackSceneComponentInput {
|
|
28
21
|
readonly name: string;
|
|
29
22
|
readonly fields: Readonly<Record<string, string | {
|
|
30
23
|
readonly type: string;
|
|
31
24
|
}>>;
|
|
32
25
|
}
|
|
33
|
-
/** Neutral scene schema projection owned by the Pack definition. */
|
|
34
26
|
export interface ScriptablePackSceneComponent {
|
|
35
27
|
readonly name: string;
|
|
36
28
|
readonly fields: Readonly<Record<string, string>>;
|
|
37
29
|
}
|
|
38
|
-
/** Derive the frozen, ECS-neutral schema used by scene output producers. */
|
|
39
30
|
export declare function projectScriptablePackSceneComponents(components: readonly ScriptablePackSceneComponentInput[] | undefined): readonly ScriptablePackSceneComponent[];
|
|
40
|
-
/**
|
|
41
|
-
export type ScriptablePackPublicationEnvelope = AssetPublicationEnvelope;
|
|
42
|
-
/** Structured domain failure permitted to cross the isolated build-time AssetReader seam. */
|
|
43
|
-
export interface ScriptablePackErrorProvenance {
|
|
44
|
-
/** Published source generation observed by the reader, when available. */
|
|
45
|
-
readonly generation?: number;
|
|
46
|
-
/** Stable producer identity for the failed output, when available. */
|
|
47
|
-
readonly sourceKey?: string;
|
|
48
|
-
/** GUID associated with the failed read or output, when available. */
|
|
49
|
-
readonly guid?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface ScriptablePackReadError {
|
|
52
|
-
readonly code: string;
|
|
53
|
-
readonly expected: string;
|
|
54
|
-
readonly hint: string;
|
|
55
|
-
readonly detail?: unknown;
|
|
56
|
-
readonly provenance?: ScriptablePackErrorProvenance;
|
|
57
|
-
}
|
|
58
|
-
export type ScriptablePackAssetFor<TDescriptor extends ScriptablePackAssetDeclaration> = TDescriptor extends {
|
|
59
|
-
readonly kind: infer TKind extends ScriptablePackAssetKind;
|
|
60
|
-
} ? Extract<Asset, {
|
|
61
|
-
readonly kind: TKind;
|
|
62
|
-
}> : never;
|
|
63
|
-
export type ScriptablePackOutputs<TAssets extends ScriptablePackAssetDeclarations> = {
|
|
64
|
-
readonly [TKey in keyof TAssets]: TAssets[TKey] extends ScriptablePackAssetDeclaration ? ScriptablePackAssetFor<TAssets[TKey]> : never;
|
|
65
|
-
};
|
|
66
|
-
export interface AssetReader {
|
|
67
|
-
/** Load a declared GUID as a durable payload; this never mints a World handle. */
|
|
68
|
-
readByGuid<TAsset extends Asset = Asset>(guid: AssetGuid): Promise<Result<TAsset, ScriptablePackReadError>>;
|
|
69
|
-
}
|
|
70
|
-
export type ScriptablePackBuildResult<TAssets extends ScriptablePackAssetDeclarations, TError> = Result<ScriptablePackOutputs<TAssets>, TError>;
|
|
71
|
-
export interface ScriptablePackDefinition<TAssets extends ScriptablePackAssetDeclarations = ScriptablePackAssetDeclarations, TExternal extends ScriptablePackExternalAssets = ScriptablePackExternalAssets, TError = ScriptablePackReadError> {
|
|
72
|
-
readonly schemaVersion: '1.0.0';
|
|
73
|
-
readonly packageId: AssetGuid;
|
|
74
|
-
readonly name?: string;
|
|
75
|
-
readonly assets: TAssets;
|
|
76
|
-
/** Component tokens/schema rows used by scene ref externalization. */
|
|
77
|
-
readonly sceneComponents?: readonly ScriptablePackSceneComponentInput[];
|
|
78
|
-
readonly externalAssets: TExternal;
|
|
79
|
-
readonly build: (assetReader: AssetReader) => ScriptablePackBuildResult<TAssets, TError> | Promise<ScriptablePackBuildResult<TAssets, TError>>;
|
|
80
|
-
}
|
|
31
|
+
/** Source closure evidence used to fence one isolated build generation. */
|
|
81
32
|
export interface ScriptablePackSourceClosureEntry {
|
|
82
33
|
readonly path: string;
|
|
83
34
|
readonly digest: string;
|
|
84
35
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
readonly packageId: string;
|
|
89
|
-
readonly name?: string;
|
|
90
|
-
readonly importer: 'pack-ts';
|
|
91
|
-
readonly source: string;
|
|
92
|
-
readonly importSettings: {
|
|
93
|
-
readonly contractVersion: '1.0.0';
|
|
94
|
-
readonly externalAssets: readonly {
|
|
95
|
-
readonly alias: string;
|
|
96
|
-
readonly guid: string;
|
|
97
|
-
}[];
|
|
98
|
-
};
|
|
99
|
-
readonly subAssets: readonly {
|
|
100
|
-
readonly guid: string;
|
|
101
|
-
readonly sourceIndex: number;
|
|
102
|
-
readonly sourceKey: string;
|
|
103
|
-
readonly kind: ScriptablePackAssetKind;
|
|
104
|
-
readonly name?: string;
|
|
105
|
-
}[];
|
|
106
|
-
}
|
|
107
|
-
export interface ScriptablePackOperationEnvelope {
|
|
108
|
-
readonly requestId: string;
|
|
109
|
-
readonly expectedRevision?: string;
|
|
110
|
-
}
|
|
111
|
-
export type ScriptablePackGatewayOperation = (ScriptablePackOperationEnvelope & {
|
|
112
|
-
readonly kind: 'preflight';
|
|
113
|
-
readonly sourcePath: string;
|
|
114
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
115
|
-
readonly kind: 'create-scriptable-pack';
|
|
116
|
-
readonly sourcePath: string;
|
|
117
|
-
readonly name?: string;
|
|
118
|
-
readonly initialOutput: {
|
|
119
|
-
readonly sourceKey: string;
|
|
120
|
-
readonly kind: ScriptablePackAssetKind;
|
|
121
|
-
readonly name?: string;
|
|
122
|
-
};
|
|
123
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
124
|
-
readonly kind: 'add-output';
|
|
125
|
-
readonly sourcePath: string;
|
|
126
|
-
readonly sourceKey: string;
|
|
127
|
-
readonly assetKind: ScriptablePackAssetKind;
|
|
128
|
-
readonly name?: string;
|
|
129
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
130
|
-
readonly kind: 'add-external-asset';
|
|
131
|
-
readonly sourcePath: string;
|
|
132
|
-
readonly alias: string;
|
|
133
|
-
readonly guid: AssetGuid;
|
|
134
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
135
|
-
readonly kind: 'rename-display';
|
|
136
|
-
readonly sourcePath: string;
|
|
137
|
-
readonly target: {
|
|
138
|
-
readonly kind: 'package';
|
|
139
|
-
} | {
|
|
140
|
-
readonly kind: 'output';
|
|
141
|
-
readonly sourceKey: string;
|
|
142
|
-
};
|
|
143
|
-
readonly name: string;
|
|
144
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
145
|
-
readonly kind: 'remove-output';
|
|
146
|
-
readonly sourcePath: string;
|
|
147
|
-
readonly sourceKey: string;
|
|
148
|
-
/** Exact incoming reference identities acknowledged by the caller. */
|
|
149
|
-
readonly confirmIncomingRefs?: readonly string[];
|
|
150
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
151
|
-
readonly kind: 'clone-scriptable-pack';
|
|
152
|
-
readonly sourcePath: string;
|
|
153
|
-
readonly targetPath: string;
|
|
154
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
155
|
-
readonly kind: 'inspect-meta';
|
|
156
|
-
readonly sourcePath: string;
|
|
157
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
158
|
-
readonly kind: 'rebuild' | 'cold-cook';
|
|
159
|
-
readonly sourcePath: string;
|
|
160
|
-
});
|
|
161
|
-
export interface ScriptablePackMutationCapabilities {
|
|
162
|
-
readonly inspect: true;
|
|
163
|
-
readonly rebuild: true;
|
|
164
|
-
readonly coldCook: true;
|
|
165
|
-
readonly create?: true;
|
|
166
|
-
readonly addOutput?: true;
|
|
167
|
-
readonly addExternalAsset?: true;
|
|
168
|
-
readonly renameDisplay?: true;
|
|
169
|
-
readonly removeOutput?: true;
|
|
170
|
-
readonly clone?: true;
|
|
171
|
-
readonly reason?: string;
|
|
172
|
-
}
|
|
173
|
-
export interface ScriptablePackPreflight {
|
|
174
|
-
readonly sourcePath: string;
|
|
175
|
-
readonly revision: string;
|
|
176
|
-
readonly meta: ScriptablePackMetaJson;
|
|
177
|
-
readonly capabilities: ScriptablePackMutationCapabilities;
|
|
178
|
-
readonly incomingRefs: readonly string[];
|
|
179
|
-
}
|
|
180
|
-
export interface ScriptablePackGatewayMutation {
|
|
181
|
-
readonly sourcePath: string;
|
|
182
|
-
readonly revision: string;
|
|
183
|
-
readonly meta: ScriptablePackMetaJson;
|
|
184
|
-
}
|
|
185
|
-
export interface ScriptablePackAuthoringGateway {
|
|
186
|
-
execute(operation: ScriptablePackGatewayOperation): Promise<Result<ScriptablePackGatewayMutation | ScriptablePackPreflight, ScriptablePackError>>;
|
|
187
|
-
}
|
|
188
|
-
export type ScriptablePackAuthoringMutation = (ScriptablePackOperationEnvelope & {
|
|
189
|
-
readonly kind: 'create-scriptable-pack';
|
|
190
|
-
readonly sourcePath: string;
|
|
191
|
-
readonly packageId: AssetGuid;
|
|
192
|
-
readonly name?: string;
|
|
193
|
-
readonly initialOutput: {
|
|
194
|
-
readonly sourceKey: string;
|
|
195
|
-
readonly kind: ScriptablePackAssetKind;
|
|
196
|
-
readonly guid: AssetGuid;
|
|
197
|
-
readonly name?: string;
|
|
198
|
-
};
|
|
199
|
-
}) | (ScriptablePackOperationEnvelope & {
|
|
200
|
-
readonly kind: 'add-output';
|
|
201
|
-
readonly sourcePath: string;
|
|
202
|
-
readonly sourceKey: string;
|
|
203
|
-
readonly assetKind: ScriptablePackAssetKind;
|
|
204
|
-
readonly guid: AssetGuid;
|
|
205
|
-
readonly name?: string;
|
|
206
|
-
}) | Extract<ScriptablePackGatewayOperation, {
|
|
207
|
-
readonly kind: 'add-external-asset' | 'rename-display' | 'remove-output';
|
|
208
|
-
}> | (ScriptablePackOperationEnvelope & {
|
|
209
|
-
readonly kind: 'clone-scriptable-pack';
|
|
210
|
-
readonly sourcePath: string;
|
|
211
|
-
readonly targetPath: string;
|
|
212
|
-
readonly packageId: AssetGuid;
|
|
213
|
-
readonly outputGuids: Readonly<Record<string, AssetGuid>>;
|
|
214
|
-
});
|
|
215
|
-
export interface ScriptablePackAuthoringPort {
|
|
216
|
-
preflight(sourcePath: string): Promise<Result<Omit<ScriptablePackPreflight, 'sourcePath'>, ScriptablePackError>>;
|
|
217
|
-
mutate(operation: ScriptablePackAuthoringMutation): Promise<Result<{
|
|
218
|
-
readonly sourcePath: string;
|
|
219
|
-
readonly revision: string;
|
|
220
|
-
}, ScriptablePackError>>;
|
|
221
|
-
inspect(sourcePath: string): Promise<Result<{
|
|
222
|
-
readonly revision: string;
|
|
223
|
-
readonly meta: ScriptablePackMetaJson;
|
|
224
|
-
}, ScriptablePackError>>;
|
|
225
|
-
rebuild(sourcePath: string, mode: 'rebuild' | 'cold-cook'): Promise<Result<{
|
|
226
|
-
readonly revision: string;
|
|
227
|
-
readonly meta: ScriptablePackMetaJson;
|
|
228
|
-
}, ScriptablePackError>>;
|
|
36
|
+
/** AssetReader is intentionally a small, realm-neutral source boundary. */
|
|
37
|
+
export interface AssetReader {
|
|
38
|
+
readByGuid<TAsset extends Asset = Asset>(guid: AssetGuid): Promise<Result<TAsset, ScriptablePackReadError>>;
|
|
229
39
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
export declare const SOURCE_AUTHORING_OPERATION_DESCRIPTORS: readonly [{
|
|
233
|
-
readonly id: "asset-source.create";
|
|
234
|
-
readonly kind: "create";
|
|
235
|
-
readonly domain: "session";
|
|
236
|
-
readonly title: "Create Asset Source";
|
|
237
|
-
readonly argsSchema: {
|
|
238
|
-
readonly additionalProperties: false;
|
|
239
|
-
readonly anyOf?: {
|
|
240
|
-
required: string[];
|
|
241
|
-
}[];
|
|
242
|
-
readonly type: "object";
|
|
243
|
-
readonly properties: {
|
|
244
|
-
readonly sourcePath: {
|
|
245
|
-
readonly type: "string";
|
|
246
|
-
readonly minLength: 8;
|
|
247
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
248
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
249
|
-
};
|
|
250
|
-
readonly ownerGuid: {
|
|
251
|
-
readonly type: "string";
|
|
252
|
-
readonly format: "uuid";
|
|
253
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
254
|
-
};
|
|
255
|
-
readonly requestId: {
|
|
256
|
-
readonly type: "string";
|
|
257
|
-
readonly minLength: 1;
|
|
258
|
-
readonly maxLength: 128;
|
|
259
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
260
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
readonly required: string[];
|
|
264
|
-
};
|
|
265
|
-
}, {
|
|
266
|
-
readonly id: "asset-source.add-output";
|
|
267
|
-
readonly kind: "add-output";
|
|
268
|
-
readonly domain: "session";
|
|
269
|
-
readonly title: "Add Asset Source Output";
|
|
270
|
-
readonly argsSchema: {
|
|
271
|
-
readonly additionalProperties: false;
|
|
272
|
-
readonly anyOf?: {
|
|
273
|
-
required: string[];
|
|
274
|
-
}[];
|
|
275
|
-
readonly type: "object";
|
|
276
|
-
readonly properties: {
|
|
277
|
-
readonly sourcePath: {
|
|
278
|
-
readonly type: "string";
|
|
279
|
-
readonly minLength: 8;
|
|
280
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
281
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
282
|
-
};
|
|
283
|
-
readonly ownerGuid: {
|
|
284
|
-
readonly type: "string";
|
|
285
|
-
readonly format: "uuid";
|
|
286
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
287
|
-
};
|
|
288
|
-
readonly requestId: {
|
|
289
|
-
readonly type: "string";
|
|
290
|
-
readonly minLength: 1;
|
|
291
|
-
readonly maxLength: 128;
|
|
292
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
293
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
readonly required: string[];
|
|
297
|
-
};
|
|
298
|
-
}, {
|
|
299
|
-
readonly id: "asset-source.add-external-asset";
|
|
300
|
-
readonly kind: "add-external-asset";
|
|
301
|
-
readonly domain: "session";
|
|
302
|
-
readonly title: "Add Asset Source External Asset";
|
|
303
|
-
readonly argsSchema: {
|
|
304
|
-
readonly additionalProperties: false;
|
|
305
|
-
readonly anyOf?: {
|
|
306
|
-
required: string[];
|
|
307
|
-
}[];
|
|
308
|
-
readonly type: "object";
|
|
309
|
-
readonly properties: {
|
|
310
|
-
readonly sourcePath: {
|
|
311
|
-
readonly type: "string";
|
|
312
|
-
readonly minLength: 8;
|
|
313
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
314
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
315
|
-
};
|
|
316
|
-
readonly ownerGuid: {
|
|
317
|
-
readonly type: "string";
|
|
318
|
-
readonly format: "uuid";
|
|
319
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
320
|
-
};
|
|
321
|
-
readonly requestId: {
|
|
322
|
-
readonly type: "string";
|
|
323
|
-
readonly minLength: 1;
|
|
324
|
-
readonly maxLength: 128;
|
|
325
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
326
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
readonly required: string[];
|
|
330
|
-
};
|
|
331
|
-
}, {
|
|
332
|
-
readonly id: "asset-source.rename";
|
|
333
|
-
readonly kind: "rename";
|
|
334
|
-
readonly domain: "session";
|
|
335
|
-
readonly title: "Rename Asset Source Display Name";
|
|
336
|
-
readonly argsSchema: {
|
|
337
|
-
readonly additionalProperties: false;
|
|
338
|
-
readonly anyOf?: {
|
|
339
|
-
required: string[];
|
|
340
|
-
}[];
|
|
341
|
-
readonly type: "object";
|
|
342
|
-
readonly properties: {
|
|
343
|
-
readonly sourcePath: {
|
|
344
|
-
readonly type: "string";
|
|
345
|
-
readonly minLength: 8;
|
|
346
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
347
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
348
|
-
};
|
|
349
|
-
readonly ownerGuid: {
|
|
350
|
-
readonly type: "string";
|
|
351
|
-
readonly format: "uuid";
|
|
352
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
353
|
-
};
|
|
354
|
-
readonly requestId: {
|
|
355
|
-
readonly type: "string";
|
|
356
|
-
readonly minLength: 1;
|
|
357
|
-
readonly maxLength: 128;
|
|
358
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
359
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
360
|
-
};
|
|
361
|
-
};
|
|
362
|
-
readonly required: string[];
|
|
363
|
-
};
|
|
364
|
-
}, {
|
|
365
|
-
readonly id: "asset-source.remove-output";
|
|
366
|
-
readonly kind: "remove-output";
|
|
367
|
-
readonly domain: "session";
|
|
368
|
-
readonly title: "Remove Asset Source Output";
|
|
369
|
-
readonly destructive: true;
|
|
370
|
-
readonly argsSchema: {
|
|
371
|
-
readonly additionalProperties: false;
|
|
372
|
-
readonly anyOf?: {
|
|
373
|
-
required: string[];
|
|
374
|
-
}[];
|
|
375
|
-
readonly type: "object";
|
|
376
|
-
readonly properties: {
|
|
377
|
-
readonly sourcePath: {
|
|
378
|
-
readonly type: "string";
|
|
379
|
-
readonly minLength: 8;
|
|
380
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
381
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
382
|
-
};
|
|
383
|
-
readonly ownerGuid: {
|
|
384
|
-
readonly type: "string";
|
|
385
|
-
readonly format: "uuid";
|
|
386
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
387
|
-
};
|
|
388
|
-
readonly requestId: {
|
|
389
|
-
readonly type: "string";
|
|
390
|
-
readonly minLength: 1;
|
|
391
|
-
readonly maxLength: 128;
|
|
392
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
393
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
readonly required: string[];
|
|
397
|
-
};
|
|
398
|
-
}, {
|
|
399
|
-
readonly id: "asset-source.clone";
|
|
400
|
-
readonly kind: "clone";
|
|
401
|
-
readonly domain: "session";
|
|
402
|
-
readonly title: "Clone Asset Source";
|
|
403
|
-
readonly argsSchema: {
|
|
404
|
-
readonly additionalProperties: false;
|
|
405
|
-
readonly anyOf?: {
|
|
406
|
-
required: string[];
|
|
407
|
-
}[];
|
|
408
|
-
readonly type: "object";
|
|
409
|
-
readonly properties: {
|
|
410
|
-
readonly sourcePath: {
|
|
411
|
-
readonly type: "string";
|
|
412
|
-
readonly minLength: 8;
|
|
413
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
414
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
415
|
-
};
|
|
416
|
-
readonly ownerGuid: {
|
|
417
|
-
readonly type: "string";
|
|
418
|
-
readonly format: "uuid";
|
|
419
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
420
|
-
};
|
|
421
|
-
readonly requestId: {
|
|
422
|
-
readonly type: "string";
|
|
423
|
-
readonly minLength: 1;
|
|
424
|
-
readonly maxLength: 128;
|
|
425
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
426
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
readonly required: string[];
|
|
430
|
-
};
|
|
431
|
-
}, {
|
|
432
|
-
readonly id: "asset-source.rebuild";
|
|
433
|
-
readonly kind: "rebuild";
|
|
434
|
-
readonly domain: "session";
|
|
435
|
-
readonly title: "Rebuild Asset Source";
|
|
436
|
-
readonly argsSchema: {
|
|
437
|
-
readonly additionalProperties: false;
|
|
438
|
-
readonly anyOf?: {
|
|
439
|
-
required: string[];
|
|
440
|
-
}[];
|
|
441
|
-
readonly type: "object";
|
|
442
|
-
readonly properties: {
|
|
443
|
-
readonly sourcePath: {
|
|
444
|
-
readonly type: "string";
|
|
445
|
-
readonly minLength: 8;
|
|
446
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
447
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
448
|
-
};
|
|
449
|
-
readonly ownerGuid: {
|
|
450
|
-
readonly type: "string";
|
|
451
|
-
readonly format: "uuid";
|
|
452
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
453
|
-
};
|
|
454
|
-
readonly requestId: {
|
|
455
|
-
readonly type: "string";
|
|
456
|
-
readonly minLength: 1;
|
|
457
|
-
readonly maxLength: 128;
|
|
458
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
459
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
readonly required: string[];
|
|
463
|
-
};
|
|
464
|
-
}, {
|
|
465
|
-
readonly id: "asset-source.cold-cook";
|
|
466
|
-
readonly kind: "cold-cook";
|
|
467
|
-
readonly domain: "session";
|
|
468
|
-
readonly title: "Cold Cook Asset Source";
|
|
469
|
-
readonly argsSchema: {
|
|
470
|
-
readonly additionalProperties: false;
|
|
471
|
-
readonly anyOf?: {
|
|
472
|
-
required: string[];
|
|
473
|
-
}[];
|
|
474
|
-
readonly type: "object";
|
|
475
|
-
readonly properties: {
|
|
476
|
-
readonly sourcePath: {
|
|
477
|
-
readonly type: "string";
|
|
478
|
-
readonly minLength: 8;
|
|
479
|
-
readonly pattern: "^[^/].*\\.pack\\.ts$";
|
|
480
|
-
readonly description: "Game-root-relative ScriptablePack source path.";
|
|
481
|
-
};
|
|
482
|
-
readonly ownerGuid: {
|
|
483
|
-
readonly type: "string";
|
|
484
|
-
readonly format: "uuid";
|
|
485
|
-
readonly description: "Catalog GUID used to resolve the producer-owned source subject.";
|
|
486
|
-
};
|
|
487
|
-
readonly requestId: {
|
|
488
|
-
readonly type: "string";
|
|
489
|
-
readonly minLength: 1;
|
|
490
|
-
readonly maxLength: 128;
|
|
491
|
-
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$";
|
|
492
|
-
readonly description: "Caller-minted identity for one idempotent ScriptablePack operation.";
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
readonly required: string[];
|
|
496
|
-
};
|
|
497
|
-
}];
|
|
498
|
-
export type ScriptablePackError = {
|
|
499
|
-
readonly code: 'pack-source-load-failed';
|
|
500
|
-
readonly expected: string;
|
|
501
|
-
readonly hint: string;
|
|
502
|
-
readonly detail: {
|
|
503
|
-
readonly sourcePath: string;
|
|
504
|
-
readonly reason: 'module-load' | 'timeout' | 'source-changed';
|
|
505
|
-
readonly phase: 'module-load' | 'build';
|
|
506
|
-
readonly diagnostic: string;
|
|
507
|
-
readonly timeoutMs?: number;
|
|
508
|
-
};
|
|
509
|
-
} | {
|
|
510
|
-
readonly code: 'pack-source-definition-invalid';
|
|
511
|
-
readonly expected: string;
|
|
512
|
-
readonly hint: string;
|
|
513
|
-
readonly detail: {
|
|
514
|
-
readonly sourcePath?: string;
|
|
515
|
-
readonly propertyPath: string;
|
|
516
|
-
readonly actual: string;
|
|
517
|
-
};
|
|
518
|
-
} | {
|
|
519
|
-
readonly code: 'pack-source-output-invalid';
|
|
520
|
-
readonly expected: string;
|
|
521
|
-
readonly hint: string;
|
|
522
|
-
readonly detail: {
|
|
523
|
-
readonly missingGuids: readonly string[];
|
|
524
|
-
readonly unexpectedSourceKeys: readonly string[];
|
|
525
|
-
readonly kindMismatches: readonly {
|
|
526
|
-
readonly sourceKey: string;
|
|
527
|
-
readonly expected: string;
|
|
528
|
-
readonly actual: string;
|
|
529
|
-
}[];
|
|
530
|
-
};
|
|
531
|
-
} | {
|
|
532
|
-
readonly code: 'pack-source-external-closure-mismatch';
|
|
533
|
-
readonly expected: string;
|
|
534
|
-
readonly hint: string;
|
|
535
|
-
readonly detail: {
|
|
536
|
-
readonly undeclaredReferencedGuids: readonly string[];
|
|
537
|
-
readonly undeclaredReadGuids: readonly string[];
|
|
538
|
-
readonly unusedDeclaredGuids: readonly string[];
|
|
539
|
-
};
|
|
540
|
-
} | {
|
|
541
|
-
readonly code: 'pack-source-path-invalid' | 'pack-source-revision-conflict' | 'pack-source-mutation-unsupported' | 'pack-source-reference-conflict' | 'pack-source-write-failed' | 'pack-source-build-cycle' | 'pack-source-publication-timeout' | 'pack-source-operation-committed';
|
|
40
|
+
export interface ScriptablePackReadError {
|
|
41
|
+
readonly code: string;
|
|
542
42
|
readonly expected: string;
|
|
543
|
-
readonly actual?: string;
|
|
544
43
|
readonly hint: string;
|
|
545
|
-
readonly
|
|
546
|
-
|
|
547
|
-
readonly detail: {
|
|
548
|
-
readonly requestId?: string;
|
|
549
|
-
readonly sourcePath?: string;
|
|
550
|
-
readonly packageId?: string;
|
|
551
|
-
readonly sourceKey?: string;
|
|
552
|
-
readonly incomingRefs?: readonly string[];
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
556
|
-
export declare function validateScriptablePackDefinition(value: unknown, sourcePath?: string): Result<Readonly<ScriptablePackDefinition>, ScriptablePackError>;
|
|
557
|
-
export declare function projectScriptablePackMeta(definition: ScriptablePackDefinition, source: string): ScriptablePackMetaJson;
|
|
44
|
+
readonly detail?: unknown;
|
|
45
|
+
}
|
|
558
46
|
//# sourceMappingURL=scriptable-pack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scriptable-pack.d.ts","sourceRoot":"","sources":["../src/scriptable-pack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAIhG,mFAAmF;AACnF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEpD,mFAAmF;AACnF,eAAO,MAAM,2BAA2B,8MAiBe,CAAC;AAExD,mEAAmE;AACnE,eAAO,MAAM,mCAAmC;;;;;;CAMtC,CAAC;AAEX,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAEzF;AAED,MAAM,WAAW,8BAA8B,CAC7C,KAAK,SAAS,uBAAuB,GAAG,uBAAuB;IAE/D,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM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