@gameslate/sdk 0.3.29 → 0.3.31
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/lib/assets.d.ts +103 -68
- package/lib/assets.js +8 -0
- package/lib/catalogue.d.ts +44 -42
- package/lib/catalogue.js +5 -1
- package/lib/game-support.js +3 -2
- package/lib/host/live-sandbox.js +12 -9
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/mission-labels.d.ts +43 -0
- package/lib/mission-labels.js +69 -0
- package/lib/pack.d.ts +107 -98
- package/lib/pack.js +12 -5
- package/lib/plugin/sandbox-guest.js +18 -1
- package/lib/plugins-api.d.ts +2 -2
- package/lib/registry.d.ts +141 -141
- package/lib/registry.js +5 -5
- package/lib/sandbox-protocol.d.ts +67 -66
- package/package.json +1 -1
- package/template/claude/skills/build-gameslate-plugin/SKILL.md +113 -6
- package/template/claude/skills/verify-gameslate-plugin/SKILL.md +29 -1
package/lib/assets.d.ts
CHANGED
|
@@ -26,17 +26,17 @@ export declare const AssetListSchema: z.ZodObject<{
|
|
|
26
26
|
/** things the plugin found but can't build (shown to the player as plain text) */
|
|
27
27
|
notes: z.ZodArray<z.ZodString, "many">;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
notes: string[];
|
|
29
30
|
assets: {
|
|
30
31
|
label: string;
|
|
31
32
|
id: string;
|
|
32
33
|
}[];
|
|
33
|
-
notes: string[];
|
|
34
34
|
}, {
|
|
35
|
+
notes: string[];
|
|
35
36
|
assets: {
|
|
36
37
|
label: string;
|
|
37
38
|
id: string;
|
|
38
39
|
}[];
|
|
39
|
-
notes: string[];
|
|
40
40
|
}>;
|
|
41
41
|
export type AssetList = z.infer<typeof AssetListSchema>;
|
|
42
42
|
export declare const FloorplanLayerSchema: z.ZodObject<{
|
|
@@ -164,6 +164,7 @@ export type ImageEncoding = z.infer<typeof ImageEncodingSchema>;
|
|
|
164
164
|
* nav → navs/<id>.json mesh → meshes/<id>.bin (+ its atlas beside it)
|
|
165
165
|
* image → by purpose: atlases/ (default), maps/, icons/ or actors/<id>.png | .webp
|
|
166
166
|
* notes → notes/<id>.json (what a pack's `localSource` reads)
|
|
167
|
+
* labels → labels/<id>.json (mission titles the daemon puts over the catalogue's)
|
|
167
168
|
* The core encodes images from the pixels; every image of a game uses one format (the web app
|
|
168
169
|
* reads one extension per game).
|
|
169
170
|
*/
|
|
@@ -345,6 +346,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
345
346
|
label: string;
|
|
346
347
|
to: string;
|
|
347
348
|
}[] | undefined;
|
|
349
|
+
category?: string | undefined;
|
|
350
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
351
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
348
352
|
spoilerFree?: boolean | undefined;
|
|
349
353
|
requiresObjective?: string | undefined;
|
|
350
354
|
chestFlag?: number | undefined;
|
|
@@ -352,9 +356,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
352
356
|
index: number;
|
|
353
357
|
mask: number;
|
|
354
358
|
} | undefined;
|
|
355
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
356
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
357
|
-
category?: string | undefined;
|
|
358
359
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
359
360
|
context?: string | undefined;
|
|
360
361
|
}, {
|
|
@@ -366,6 +367,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
366
367
|
label: string;
|
|
367
368
|
to: string;
|
|
368
369
|
}[] | undefined;
|
|
370
|
+
category?: string | undefined;
|
|
371
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
372
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
369
373
|
spoilerFree?: boolean | undefined;
|
|
370
374
|
requiresObjective?: string | undefined;
|
|
371
375
|
chestFlag?: number | undefined;
|
|
@@ -373,9 +377,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
373
377
|
index: number;
|
|
374
378
|
mask: number;
|
|
375
379
|
} | undefined;
|
|
376
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
377
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
378
|
-
category?: string | undefined;
|
|
379
380
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
380
381
|
context?: string | undefined;
|
|
381
382
|
}>, "many">;
|
|
@@ -397,6 +398,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
397
398
|
label: string;
|
|
398
399
|
to: string;
|
|
399
400
|
}[] | undefined;
|
|
401
|
+
category?: string | undefined;
|
|
402
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
403
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
400
404
|
spoilerFree?: boolean | undefined;
|
|
401
405
|
requiresObjective?: string | undefined;
|
|
402
406
|
chestFlag?: number | undefined;
|
|
@@ -404,9 +408,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
404
408
|
index: number;
|
|
405
409
|
mask: number;
|
|
406
410
|
} | undefined;
|
|
407
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
408
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
409
|
-
category?: string | undefined;
|
|
410
411
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
411
412
|
context?: string | undefined;
|
|
412
413
|
}[];
|
|
@@ -429,6 +430,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
429
430
|
label: string;
|
|
430
431
|
to: string;
|
|
431
432
|
}[] | undefined;
|
|
433
|
+
category?: string | undefined;
|
|
434
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
435
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
432
436
|
spoilerFree?: boolean | undefined;
|
|
433
437
|
requiresObjective?: string | undefined;
|
|
434
438
|
chestFlag?: number | undefined;
|
|
@@ -436,9 +440,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
436
440
|
index: number;
|
|
437
441
|
mask: number;
|
|
438
442
|
} | undefined;
|
|
439
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
440
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
441
|
-
category?: string | undefined;
|
|
442
443
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
443
444
|
context?: string | undefined;
|
|
444
445
|
}[];
|
|
@@ -465,6 +466,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
465
466
|
label: string;
|
|
466
467
|
to: string;
|
|
467
468
|
}[] | undefined;
|
|
469
|
+
category?: string | undefined;
|
|
470
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
471
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
468
472
|
spoilerFree?: boolean | undefined;
|
|
469
473
|
requiresObjective?: string | undefined;
|
|
470
474
|
chestFlag?: number | undefined;
|
|
@@ -472,9 +476,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
472
476
|
index: number;
|
|
473
477
|
mask: number;
|
|
474
478
|
} | undefined;
|
|
475
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
476
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
477
|
-
category?: string | undefined;
|
|
478
479
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
479
480
|
context?: string | undefined;
|
|
480
481
|
}[];
|
|
@@ -500,6 +501,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
500
501
|
label: string;
|
|
501
502
|
to: string;
|
|
502
503
|
}[] | undefined;
|
|
504
|
+
category?: string | undefined;
|
|
505
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
506
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
503
507
|
spoilerFree?: boolean | undefined;
|
|
504
508
|
requiresObjective?: string | undefined;
|
|
505
509
|
chestFlag?: number | undefined;
|
|
@@ -507,9 +511,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
507
511
|
index: number;
|
|
508
512
|
mask: number;
|
|
509
513
|
} | undefined;
|
|
510
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
511
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
512
|
-
category?: string | undefined;
|
|
513
514
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
514
515
|
context?: string | undefined;
|
|
515
516
|
}[];
|
|
@@ -540,6 +541,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
540
541
|
label: string;
|
|
541
542
|
to: string;
|
|
542
543
|
}[] | undefined;
|
|
544
|
+
category?: string | undefined;
|
|
545
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
546
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
543
547
|
spoilerFree?: boolean | undefined;
|
|
544
548
|
requiresObjective?: string | undefined;
|
|
545
549
|
chestFlag?: number | undefined;
|
|
@@ -547,9 +551,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
547
551
|
index: number;
|
|
548
552
|
mask: number;
|
|
549
553
|
} | undefined;
|
|
550
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
551
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
552
|
-
category?: string | undefined;
|
|
553
554
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
554
555
|
context?: string | undefined;
|
|
555
556
|
}[];
|
|
@@ -587,6 +588,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
587
588
|
label: string;
|
|
588
589
|
to: string;
|
|
589
590
|
}[] | undefined;
|
|
591
|
+
category?: string | undefined;
|
|
592
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
593
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
590
594
|
spoilerFree?: boolean | undefined;
|
|
591
595
|
requiresObjective?: string | undefined;
|
|
592
596
|
chestFlag?: number | undefined;
|
|
@@ -594,9 +598,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
594
598
|
index: number;
|
|
595
599
|
mask: number;
|
|
596
600
|
} | undefined;
|
|
597
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
598
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
599
|
-
category?: string | undefined;
|
|
600
601
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
601
602
|
context?: string | undefined;
|
|
602
603
|
}[];
|
|
@@ -639,6 +640,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
639
640
|
label: string;
|
|
640
641
|
to: string;
|
|
641
642
|
}[] | undefined;
|
|
643
|
+
category?: string | undefined;
|
|
644
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
645
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
642
646
|
spoilerFree?: boolean | undefined;
|
|
643
647
|
requiresObjective?: string | undefined;
|
|
644
648
|
chestFlag?: number | undefined;
|
|
@@ -646,9 +650,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
646
650
|
index: number;
|
|
647
651
|
mask: number;
|
|
648
652
|
} | undefined;
|
|
649
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
650
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
651
|
-
category?: string | undefined;
|
|
652
653
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
653
654
|
context?: string | undefined;
|
|
654
655
|
}[];
|
|
@@ -690,6 +691,9 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
690
691
|
label: string;
|
|
691
692
|
to: string;
|
|
692
693
|
}[] | undefined;
|
|
694
|
+
category?: string | undefined;
|
|
695
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
696
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
693
697
|
spoilerFree?: boolean | undefined;
|
|
694
698
|
requiresObjective?: string | undefined;
|
|
695
699
|
chestFlag?: number | undefined;
|
|
@@ -697,9 +701,6 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
697
701
|
index: number;
|
|
698
702
|
mask: number;
|
|
699
703
|
} | undefined;
|
|
700
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
701
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
702
|
-
category?: string | undefined;
|
|
703
704
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
704
705
|
context?: string | undefined;
|
|
705
706
|
}[];
|
|
@@ -939,6 +940,19 @@ export declare const AssetOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodOb
|
|
|
939
940
|
id: string;
|
|
940
941
|
kind: "notes";
|
|
941
942
|
json: string;
|
|
943
|
+
}>, z.ZodObject<{
|
|
944
|
+
kind: z.ZodLiteral<"labels">;
|
|
945
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
946
|
+
/** mission id → the game's own name for it, read from the player's files */
|
|
947
|
+
missions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
948
|
+
}, "strip", z.ZodTypeAny, {
|
|
949
|
+
id: string;
|
|
950
|
+
kind: "labels";
|
|
951
|
+
missions: Record<string, string>;
|
|
952
|
+
}, {
|
|
953
|
+
id: string;
|
|
954
|
+
kind: "labels";
|
|
955
|
+
missions: Record<string, string>;
|
|
942
956
|
}>]>;
|
|
943
957
|
export type AssetOutputWire = z.infer<typeof AssetOutputSchema>;
|
|
944
958
|
export declare const AssetResultSchema: z.ZodObject<{
|
|
@@ -1120,6 +1134,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1120
1134
|
label: string;
|
|
1121
1135
|
to: string;
|
|
1122
1136
|
}[] | undefined;
|
|
1137
|
+
category?: string | undefined;
|
|
1138
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1139
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1123
1140
|
spoilerFree?: boolean | undefined;
|
|
1124
1141
|
requiresObjective?: string | undefined;
|
|
1125
1142
|
chestFlag?: number | undefined;
|
|
@@ -1127,9 +1144,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1127
1144
|
index: number;
|
|
1128
1145
|
mask: number;
|
|
1129
1146
|
} | undefined;
|
|
1130
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1131
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1132
|
-
category?: string | undefined;
|
|
1133
1147
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1134
1148
|
context?: string | undefined;
|
|
1135
1149
|
}, {
|
|
@@ -1141,6 +1155,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1141
1155
|
label: string;
|
|
1142
1156
|
to: string;
|
|
1143
1157
|
}[] | undefined;
|
|
1158
|
+
category?: string | undefined;
|
|
1159
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1160
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1144
1161
|
spoilerFree?: boolean | undefined;
|
|
1145
1162
|
requiresObjective?: string | undefined;
|
|
1146
1163
|
chestFlag?: number | undefined;
|
|
@@ -1148,9 +1165,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1148
1165
|
index: number;
|
|
1149
1166
|
mask: number;
|
|
1150
1167
|
} | undefined;
|
|
1151
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1152
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1153
|
-
category?: string | undefined;
|
|
1154
1168
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1155
1169
|
context?: string | undefined;
|
|
1156
1170
|
}>, "many">;
|
|
@@ -1172,6 +1186,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1172
1186
|
label: string;
|
|
1173
1187
|
to: string;
|
|
1174
1188
|
}[] | undefined;
|
|
1189
|
+
category?: string | undefined;
|
|
1190
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1191
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1175
1192
|
spoilerFree?: boolean | undefined;
|
|
1176
1193
|
requiresObjective?: string | undefined;
|
|
1177
1194
|
chestFlag?: number | undefined;
|
|
@@ -1179,9 +1196,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1179
1196
|
index: number;
|
|
1180
1197
|
mask: number;
|
|
1181
1198
|
} | undefined;
|
|
1182
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1183
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1184
|
-
category?: string | undefined;
|
|
1185
1199
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1186
1200
|
context?: string | undefined;
|
|
1187
1201
|
}[];
|
|
@@ -1204,6 +1218,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1204
1218
|
label: string;
|
|
1205
1219
|
to: string;
|
|
1206
1220
|
}[] | undefined;
|
|
1221
|
+
category?: string | undefined;
|
|
1222
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1223
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1207
1224
|
spoilerFree?: boolean | undefined;
|
|
1208
1225
|
requiresObjective?: string | undefined;
|
|
1209
1226
|
chestFlag?: number | undefined;
|
|
@@ -1211,9 +1228,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1211
1228
|
index: number;
|
|
1212
1229
|
mask: number;
|
|
1213
1230
|
} | undefined;
|
|
1214
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1215
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1216
|
-
category?: string | undefined;
|
|
1217
1231
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1218
1232
|
context?: string | undefined;
|
|
1219
1233
|
}[];
|
|
@@ -1240,6 +1254,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1240
1254
|
label: string;
|
|
1241
1255
|
to: string;
|
|
1242
1256
|
}[] | undefined;
|
|
1257
|
+
category?: string | undefined;
|
|
1258
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1259
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1243
1260
|
spoilerFree?: boolean | undefined;
|
|
1244
1261
|
requiresObjective?: string | undefined;
|
|
1245
1262
|
chestFlag?: number | undefined;
|
|
@@ -1247,9 +1264,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1247
1264
|
index: number;
|
|
1248
1265
|
mask: number;
|
|
1249
1266
|
} | undefined;
|
|
1250
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1251
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1252
|
-
category?: string | undefined;
|
|
1253
1267
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1254
1268
|
context?: string | undefined;
|
|
1255
1269
|
}[];
|
|
@@ -1275,6 +1289,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1275
1289
|
label: string;
|
|
1276
1290
|
to: string;
|
|
1277
1291
|
}[] | undefined;
|
|
1292
|
+
category?: string | undefined;
|
|
1293
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1294
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1278
1295
|
spoilerFree?: boolean | undefined;
|
|
1279
1296
|
requiresObjective?: string | undefined;
|
|
1280
1297
|
chestFlag?: number | undefined;
|
|
@@ -1282,9 +1299,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1282
1299
|
index: number;
|
|
1283
1300
|
mask: number;
|
|
1284
1301
|
} | undefined;
|
|
1285
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1286
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1287
|
-
category?: string | undefined;
|
|
1288
1302
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1289
1303
|
context?: string | undefined;
|
|
1290
1304
|
}[];
|
|
@@ -1315,6 +1329,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1315
1329
|
label: string;
|
|
1316
1330
|
to: string;
|
|
1317
1331
|
}[] | undefined;
|
|
1332
|
+
category?: string | undefined;
|
|
1333
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1334
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1318
1335
|
spoilerFree?: boolean | undefined;
|
|
1319
1336
|
requiresObjective?: string | undefined;
|
|
1320
1337
|
chestFlag?: number | undefined;
|
|
@@ -1322,9 +1339,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1322
1339
|
index: number;
|
|
1323
1340
|
mask: number;
|
|
1324
1341
|
} | undefined;
|
|
1325
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1326
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1327
|
-
category?: string | undefined;
|
|
1328
1342
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1329
1343
|
context?: string | undefined;
|
|
1330
1344
|
}[];
|
|
@@ -1362,6 +1376,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1362
1376
|
label: string;
|
|
1363
1377
|
to: string;
|
|
1364
1378
|
}[] | undefined;
|
|
1379
|
+
category?: string | undefined;
|
|
1380
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1381
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1365
1382
|
spoilerFree?: boolean | undefined;
|
|
1366
1383
|
requiresObjective?: string | undefined;
|
|
1367
1384
|
chestFlag?: number | undefined;
|
|
@@ -1369,9 +1386,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1369
1386
|
index: number;
|
|
1370
1387
|
mask: number;
|
|
1371
1388
|
} | undefined;
|
|
1372
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1373
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1374
|
-
category?: string | undefined;
|
|
1375
1389
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1376
1390
|
context?: string | undefined;
|
|
1377
1391
|
}[];
|
|
@@ -1414,6 +1428,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1414
1428
|
label: string;
|
|
1415
1429
|
to: string;
|
|
1416
1430
|
}[] | undefined;
|
|
1431
|
+
category?: string | undefined;
|
|
1432
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1433
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1417
1434
|
spoilerFree?: boolean | undefined;
|
|
1418
1435
|
requiresObjective?: string | undefined;
|
|
1419
1436
|
chestFlag?: number | undefined;
|
|
@@ -1421,9 +1438,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1421
1438
|
index: number;
|
|
1422
1439
|
mask: number;
|
|
1423
1440
|
} | undefined;
|
|
1424
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1425
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1426
|
-
category?: string | undefined;
|
|
1427
1441
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1428
1442
|
context?: string | undefined;
|
|
1429
1443
|
}[];
|
|
@@ -1465,6 +1479,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1465
1479
|
label: string;
|
|
1466
1480
|
to: string;
|
|
1467
1481
|
}[] | undefined;
|
|
1482
|
+
category?: string | undefined;
|
|
1483
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1484
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1468
1485
|
spoilerFree?: boolean | undefined;
|
|
1469
1486
|
requiresObjective?: string | undefined;
|
|
1470
1487
|
chestFlag?: number | undefined;
|
|
@@ -1472,9 +1489,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1472
1489
|
index: number;
|
|
1473
1490
|
mask: number;
|
|
1474
1491
|
} | undefined;
|
|
1475
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1476
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1477
|
-
category?: string | undefined;
|
|
1478
1492
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1479
1493
|
context?: string | undefined;
|
|
1480
1494
|
}[];
|
|
@@ -1714,6 +1728,19 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1714
1728
|
id: string;
|
|
1715
1729
|
kind: "notes";
|
|
1716
1730
|
json: string;
|
|
1731
|
+
}>, z.ZodObject<{
|
|
1732
|
+
kind: z.ZodLiteral<"labels">;
|
|
1733
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1734
|
+
/** mission id → the game's own name for it, read from the player's files */
|
|
1735
|
+
missions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
1736
|
+
}, "strip", z.ZodTypeAny, {
|
|
1737
|
+
id: string;
|
|
1738
|
+
kind: "labels";
|
|
1739
|
+
missions: Record<string, string>;
|
|
1740
|
+
}, {
|
|
1741
|
+
id: string;
|
|
1742
|
+
kind: "labels";
|
|
1743
|
+
missions: Record<string, string>;
|
|
1717
1744
|
}>]>, "many">;
|
|
1718
1745
|
}, "strip", z.ZodTypeAny, {
|
|
1719
1746
|
outputs: ({
|
|
@@ -1758,6 +1785,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1758
1785
|
label: string;
|
|
1759
1786
|
to: string;
|
|
1760
1787
|
}[] | undefined;
|
|
1788
|
+
category?: string | undefined;
|
|
1789
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1790
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1761
1791
|
spoilerFree?: boolean | undefined;
|
|
1762
1792
|
requiresObjective?: string | undefined;
|
|
1763
1793
|
chestFlag?: number | undefined;
|
|
@@ -1765,9 +1795,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1765
1795
|
index: number;
|
|
1766
1796
|
mask: number;
|
|
1767
1797
|
} | undefined;
|
|
1768
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1769
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1770
|
-
category?: string | undefined;
|
|
1771
1798
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1772
1799
|
context?: string | undefined;
|
|
1773
1800
|
}[];
|
|
@@ -1831,6 +1858,10 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1831
1858
|
id: string;
|
|
1832
1859
|
kind: "notes";
|
|
1833
1860
|
json: string;
|
|
1861
|
+
} | {
|
|
1862
|
+
id: string;
|
|
1863
|
+
kind: "labels";
|
|
1864
|
+
missions: Record<string, string>;
|
|
1834
1865
|
})[];
|
|
1835
1866
|
}, {
|
|
1836
1867
|
outputs: ({
|
|
@@ -1874,6 +1905,9 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1874
1905
|
label: string;
|
|
1875
1906
|
to: string;
|
|
1876
1907
|
}[] | undefined;
|
|
1908
|
+
category?: string | undefined;
|
|
1909
|
+
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1910
|
+
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1877
1911
|
spoilerFree?: boolean | undefined;
|
|
1878
1912
|
requiresObjective?: string | undefined;
|
|
1879
1913
|
chestFlag?: number | undefined;
|
|
@@ -1881,9 +1915,6 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1881
1915
|
index: number;
|
|
1882
1916
|
mask: number;
|
|
1883
1917
|
} | undefined;
|
|
1884
|
-
collectedBy?: import("./condition.js").Condition | undefined;
|
|
1885
|
-
hiddenWhen?: import("./condition.js").Condition | undefined;
|
|
1886
|
-
category?: string | undefined;
|
|
1887
1918
|
tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
|
|
1888
1919
|
context?: string | undefined;
|
|
1889
1920
|
}[];
|
|
@@ -1948,6 +1979,10 @@ export declare const AssetResultSchema: z.ZodObject<{
|
|
|
1948
1979
|
id: string;
|
|
1949
1980
|
kind: "notes";
|
|
1950
1981
|
json: string;
|
|
1982
|
+
} | {
|
|
1983
|
+
id: string;
|
|
1984
|
+
kind: "labels";
|
|
1985
|
+
missions: Record<string, string>;
|
|
1951
1986
|
})[];
|
|
1952
1987
|
}>;
|
|
1953
1988
|
/** An output as plugin code builds it: binary data as bytes. */
|
package/lib/assets.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NavGraphSchema } from './navigation.js';
|
|
3
|
+
import { MissionLabelsSchema } from './mission-labels.js';
|
|
3
4
|
import { LocationMetaSchema } from './registry.js';
|
|
4
5
|
/*
|
|
5
6
|
* Asset extraction (docs/plugin-architecture.md § Asset extraction). A plugin lists what it can
|
|
@@ -101,6 +102,7 @@ export const ImageEncodingSchema = z.union([
|
|
|
101
102
|
* nav → navs/<id>.json mesh → meshes/<id>.bin (+ its atlas beside it)
|
|
102
103
|
* image → by purpose: atlases/ (default), maps/, icons/ or actors/<id>.png | .webp
|
|
103
104
|
* notes → notes/<id>.json (what a pack's `localSource` reads)
|
|
105
|
+
* labels → labels/<id>.json (mission titles the daemon puts over the catalogue's)
|
|
104
106
|
* The core encodes images from the pixels; every image of a game uses one format (the web app
|
|
105
107
|
* reads one extension per game).
|
|
106
108
|
*/
|
|
@@ -138,5 +140,11 @@ export const AssetOutputSchema = z.discriminatedUnion('kind', [
|
|
|
138
140
|
.max(NOTES_MAX_CHARS)
|
|
139
141
|
.refine(isJsonObjectText, 'notes are the text of one JSON object'),
|
|
140
142
|
}),
|
|
143
|
+
z.object({
|
|
144
|
+
kind: z.literal('labels'),
|
|
145
|
+
id: AssetIdSchema,
|
|
146
|
+
/** mission id → the game's own name for it, read from the player's files */
|
|
147
|
+
missions: MissionLabelsSchema,
|
|
148
|
+
}),
|
|
141
149
|
]);
|
|
142
150
|
export const AssetResultSchema = z.object({ outputs: z.array(AssetOutputSchema).max(1000) });
|