@gameslate/sdk 0.3.30 → 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/pack.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { type MissionLabels, type PackViewContext } from './mission-labels.js';
2
3
  import type { GameState } from './types.js';
3
4
  import type { PackViews, StatusStripView, TimelineView } from './views.js';
4
5
  /**
@@ -47,17 +48,17 @@ export declare const PackDataSchema: z.ZodObject<{
47
48
  id: string;
48
49
  icon?: string | undefined;
49
50
  max?: string | number | undefined;
50
- format?: "number" | "duration" | "percent" | undefined;
51
51
  display?: Record<string, string> | undefined;
52
52
  role?: "keys" | "health" | "magic" | "armor" | undefined;
53
+ format?: "number" | "duration" | "percent" | undefined;
53
54
  }, {
54
55
  label: string;
55
56
  id: string;
56
57
  icon?: string | undefined;
57
58
  max?: string | number | undefined;
58
- format?: "number" | "duration" | "percent" | undefined;
59
59
  display?: Record<string, string> | undefined;
60
60
  role?: "keys" | "health" | "magic" | "armor" | undefined;
61
+ format?: "number" | "duration" | "percent" | undefined;
61
62
  }>, "many">;
62
63
  flagSets: z.ZodArray<z.ZodString, "many">;
63
64
  inventoryLayouts: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -188,16 +189,16 @@ export declare const PackDataSchema: z.ZodObject<{
188
189
  name: string;
189
190
  locationId?: string | undefined;
190
191
  pinId?: string | undefined;
191
- collectedBy?: import("./condition.js").Condition | undefined;
192
192
  locationName?: string | undefined;
193
+ collectedBy?: import("./condition.js").Condition | undefined;
193
194
  needs?: string[][] | undefined;
194
195
  }, {
195
196
  id: string;
196
197
  name: string;
197
198
  locationId?: string | undefined;
198
199
  pinId?: string | undefined;
199
- collectedBy?: import("./condition.js").Condition | undefined;
200
200
  locationName?: string | undefined;
201
+ collectedBy?: import("./condition.js").Condition | undefined;
201
202
  needs?: string[][] | undefined;
202
203
  }>, "many">>;
203
204
  localSource: z.ZodOptional<z.ZodObject<{
@@ -220,8 +221,8 @@ export declare const PackDataSchema: z.ZodObject<{
220
221
  name: string;
221
222
  locationId?: string | undefined;
222
223
  pinId?: string | undefined;
223
- collectedBy?: import("./condition.js").Condition | undefined;
224
224
  locationName?: string | undefined;
225
+ collectedBy?: import("./condition.js").Condition | undefined;
225
226
  needs?: string[][] | undefined;
226
227
  }[] | undefined;
227
228
  counter?: string | undefined;
@@ -239,8 +240,8 @@ export declare const PackDataSchema: z.ZodObject<{
239
240
  name: string;
240
241
  locationId?: string | undefined;
241
242
  pinId?: string | undefined;
242
- collectedBy?: import("./condition.js").Condition | undefined;
243
243
  locationName?: string | undefined;
244
+ collectedBy?: import("./condition.js").Condition | undefined;
244
245
  needs?: string[][] | undefined;
245
246
  }[] | undefined;
246
247
  counter?: string | undefined;
@@ -274,9 +275,9 @@ export declare const PackDataSchema: z.ZodObject<{
274
275
  }, "strict", z.ZodTypeAny, {
275
276
  id: string;
276
277
  title: string;
277
- notes?: string[] | undefined;
278
278
  badge?: string | undefined;
279
279
  sequence?: string[] | undefined;
280
+ notes?: string[] | undefined;
280
281
  rows?: {
281
282
  label: string;
282
283
  detail: string;
@@ -285,9 +286,9 @@ export declare const PackDataSchema: z.ZodObject<{
285
286
  }, {
286
287
  id: string;
287
288
  title: string;
288
- notes?: string[] | undefined;
289
289
  badge?: string | undefined;
290
290
  sequence?: string[] | undefined;
291
+ notes?: string[] | undefined;
291
292
  rows?: {
292
293
  label: string;
293
294
  detail: string;
@@ -298,9 +299,9 @@ export declare const PackDataSchema: z.ZodObject<{
298
299
  entries: {
299
300
  id: string;
300
301
  title: string;
301
- notes?: string[] | undefined;
302
302
  badge?: string | undefined;
303
303
  sequence?: string[] | undefined;
304
+ notes?: string[] | undefined;
304
305
  rows?: {
305
306
  label: string;
306
307
  detail: string;
@@ -315,9 +316,9 @@ export declare const PackDataSchema: z.ZodObject<{
315
316
  entries: {
316
317
  id: string;
317
318
  title: string;
318
- notes?: string[] | undefined;
319
319
  badge?: string | undefined;
320
320
  sequence?: string[] | undefined;
321
+ notes?: string[] | undefined;
321
322
  rows?: {
322
323
  label: string;
323
324
  detail: string;
@@ -468,9 +469,9 @@ export declare const PackDataSchema: z.ZodObject<{
468
469
  id: string;
469
470
  icon?: string | undefined;
470
471
  max?: string | number | undefined;
471
- format?: "number" | "duration" | "percent" | undefined;
472
472
  display?: Record<string, string> | undefined;
473
473
  role?: "keys" | "health" | "magic" | "armor" | undefined;
474
+ format?: "number" | "duration" | "percent" | undefined;
474
475
  }[];
475
476
  flagSets: string[];
476
477
  items: {
@@ -482,12 +483,6 @@ export declare const PackDataSchema: z.ZodObject<{
482
483
  short?: string | undefined;
483
484
  count?: string | undefined;
484
485
  }[];
485
- chips: {
486
- label: string;
487
- id: string;
488
- prompt: string;
489
- when?: import("./condition.js").Condition | undefined;
490
- }[];
491
486
  inventoryLayouts: ({
492
487
  id: string;
493
488
  title: string;
@@ -531,8 +526,8 @@ export declare const PackDataSchema: z.ZodObject<{
531
526
  name: string;
532
527
  locationId?: string | undefined;
533
528
  pinId?: string | undefined;
534
- collectedBy?: import("./condition.js").Condition | undefined;
535
529
  locationName?: string | undefined;
530
+ collectedBy?: import("./condition.js").Condition | undefined;
536
531
  needs?: string[][] | undefined;
537
532
  }[] | undefined;
538
533
  counter?: string | undefined;
@@ -545,9 +540,9 @@ export declare const PackDataSchema: z.ZodObject<{
545
540
  entries: {
546
541
  id: string;
547
542
  title: string;
548
- notes?: string[] | undefined;
549
543
  badge?: string | undefined;
550
544
  sequence?: string[] | undefined;
545
+ notes?: string[] | undefined;
551
546
  rows?: {
552
547
  label: string;
553
548
  detail: string;
@@ -559,6 +554,12 @@ export declare const PackDataSchema: z.ZodObject<{
559
554
  badge?: string | undefined;
560
555
  defaultOpen?: boolean | undefined;
561
556
  }[];
557
+ chips: {
558
+ label: string;
559
+ id: string;
560
+ prompt: string;
561
+ when?: import("./condition.js").Condition | undefined;
562
+ }[];
562
563
  pinRules: {
563
564
  id: string;
564
565
  match: {
@@ -590,9 +591,9 @@ export declare const PackDataSchema: z.ZodObject<{
590
591
  id: string;
591
592
  icon?: string | undefined;
592
593
  max?: string | number | undefined;
593
- format?: "number" | "duration" | "percent" | undefined;
594
594
  display?: Record<string, string> | undefined;
595
595
  role?: "keys" | "health" | "magic" | "armor" | undefined;
596
+ format?: "number" | "duration" | "percent" | undefined;
596
597
  }[];
597
598
  flagSets: string[];
598
599
  items: {
@@ -604,12 +605,6 @@ export declare const PackDataSchema: z.ZodObject<{
604
605
  short?: string | undefined;
605
606
  count?: string | undefined;
606
607
  }[];
607
- chips: {
608
- label: string;
609
- id: string;
610
- prompt: string;
611
- when?: import("./condition.js").Condition | undefined;
612
- }[];
613
608
  inventoryLayouts: ({
614
609
  id: string;
615
610
  title: string;
@@ -653,8 +648,8 @@ export declare const PackDataSchema: z.ZodObject<{
653
648
  name: string;
654
649
  locationId?: string | undefined;
655
650
  pinId?: string | undefined;
656
- collectedBy?: import("./condition.js").Condition | undefined;
657
651
  locationName?: string | undefined;
652
+ collectedBy?: import("./condition.js").Condition | undefined;
658
653
  needs?: string[][] | undefined;
659
654
  }[] | undefined;
660
655
  counter?: string | undefined;
@@ -667,9 +662,9 @@ export declare const PackDataSchema: z.ZodObject<{
667
662
  entries: {
668
663
  id: string;
669
664
  title: string;
670
- notes?: string[] | undefined;
671
665
  badge?: string | undefined;
672
666
  sequence?: string[] | undefined;
667
+ notes?: string[] | undefined;
673
668
  rows?: {
674
669
  label: string;
675
670
  detail: string;
@@ -681,6 +676,12 @@ export declare const PackDataSchema: z.ZodObject<{
681
676
  badge?: string | undefined;
682
677
  defaultOpen?: boolean | undefined;
683
678
  }[];
679
+ chips: {
680
+ label: string;
681
+ id: string;
682
+ prompt: string;
683
+ when?: import("./condition.js").Condition | undefined;
684
+ }[];
684
685
  pinRules: {
685
686
  id: string;
686
687
  match: {
@@ -741,9 +742,9 @@ export declare const PackDataSchema: z.ZodObject<{
741
742
  id: string;
742
743
  icon?: string | undefined;
743
744
  max?: string | number | undefined;
744
- format?: "number" | "duration" | "percent" | undefined;
745
745
  display?: Record<string, string> | undefined;
746
746
  role?: "keys" | "health" | "magic" | "armor" | undefined;
747
+ format?: "number" | "duration" | "percent" | undefined;
747
748
  }[];
748
749
  flagSets: string[];
749
750
  items: {
@@ -755,12 +756,6 @@ export declare const PackDataSchema: z.ZodObject<{
755
756
  short?: string | undefined;
756
757
  count?: string | undefined;
757
758
  }[];
758
- chips: {
759
- label: string;
760
- id: string;
761
- prompt: string;
762
- when?: import("./condition.js").Condition | undefined;
763
- }[];
764
759
  inventoryLayouts: ({
765
760
  id: string;
766
761
  title: string;
@@ -804,8 +799,8 @@ export declare const PackDataSchema: z.ZodObject<{
804
799
  name: string;
805
800
  locationId?: string | undefined;
806
801
  pinId?: string | undefined;
807
- collectedBy?: import("./condition.js").Condition | undefined;
808
802
  locationName?: string | undefined;
803
+ collectedBy?: import("./condition.js").Condition | undefined;
809
804
  needs?: string[][] | undefined;
810
805
  }[] | undefined;
811
806
  counter?: string | undefined;
@@ -818,9 +813,9 @@ export declare const PackDataSchema: z.ZodObject<{
818
813
  entries: {
819
814
  id: string;
820
815
  title: string;
821
- notes?: string[] | undefined;
822
816
  badge?: string | undefined;
823
817
  sequence?: string[] | undefined;
818
+ notes?: string[] | undefined;
824
819
  rows?: {
825
820
  label: string;
826
821
  detail: string;
@@ -832,6 +827,12 @@ export declare const PackDataSchema: z.ZodObject<{
832
827
  badge?: string | undefined;
833
828
  defaultOpen?: boolean | undefined;
834
829
  }[];
830
+ chips: {
831
+ label: string;
832
+ id: string;
833
+ prompt: string;
834
+ when?: import("./condition.js").Condition | undefined;
835
+ }[];
835
836
  pinRules: {
836
837
  id: string;
837
838
  match: {
@@ -874,9 +875,9 @@ export declare const PackDataSchema: z.ZodObject<{
874
875
  id: string;
875
876
  icon?: string | undefined;
876
877
  max?: string | number | undefined;
877
- format?: "number" | "duration" | "percent" | undefined;
878
878
  display?: Record<string, string> | undefined;
879
879
  role?: "keys" | "health" | "magic" | "armor" | undefined;
880
+ format?: "number" | "duration" | "percent" | undefined;
880
881
  }[];
881
882
  flagSets: string[];
882
883
  items: {
@@ -888,12 +889,6 @@ export declare const PackDataSchema: z.ZodObject<{
888
889
  short?: string | undefined;
889
890
  count?: string | undefined;
890
891
  }[];
891
- chips: {
892
- label: string;
893
- id: string;
894
- prompt: string;
895
- when?: import("./condition.js").Condition | undefined;
896
- }[];
897
892
  inventoryLayouts: ({
898
893
  id: string;
899
894
  title: string;
@@ -937,8 +932,8 @@ export declare const PackDataSchema: z.ZodObject<{
937
932
  name: string;
938
933
  locationId?: string | undefined;
939
934
  pinId?: string | undefined;
940
- collectedBy?: import("./condition.js").Condition | undefined;
941
935
  locationName?: string | undefined;
936
+ collectedBy?: import("./condition.js").Condition | undefined;
942
937
  needs?: string[][] | undefined;
943
938
  }[] | undefined;
944
939
  counter?: string | undefined;
@@ -951,9 +946,9 @@ export declare const PackDataSchema: z.ZodObject<{
951
946
  entries: {
952
947
  id: string;
953
948
  title: string;
954
- notes?: string[] | undefined;
955
949
  badge?: string | undefined;
956
950
  sequence?: string[] | undefined;
951
+ notes?: string[] | undefined;
957
952
  rows?: {
958
953
  label: string;
959
954
  detail: string;
@@ -965,6 +960,12 @@ export declare const PackDataSchema: z.ZodObject<{
965
960
  badge?: string | undefined;
966
961
  defaultOpen?: boolean | undefined;
967
962
  }[];
963
+ chips: {
964
+ label: string;
965
+ id: string;
966
+ prompt: string;
967
+ when?: import("./condition.js").Condition | undefined;
968
+ }[];
968
969
  pinRules: {
969
970
  id: string;
970
971
  match: {
@@ -1039,17 +1040,17 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1039
1040
  id: string;
1040
1041
  icon?: string | undefined;
1041
1042
  max?: string | number | undefined;
1042
- format?: "number" | "duration" | "percent" | undefined;
1043
1043
  display?: Record<string, string> | undefined;
1044
1044
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1045
+ format?: "number" | "duration" | "percent" | undefined;
1045
1046
  }, {
1046
1047
  label: string;
1047
1048
  id: string;
1048
1049
  icon?: string | undefined;
1049
1050
  max?: string | number | undefined;
1050
- format?: "number" | "duration" | "percent" | undefined;
1051
1051
  display?: Record<string, string> | undefined;
1052
1052
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1053
+ format?: "number" | "duration" | "percent" | undefined;
1053
1054
  }>, "many">;
1054
1055
  flagSets: z.ZodArray<z.ZodString, "many">;
1055
1056
  inventoryLayouts: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -1180,16 +1181,16 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1180
1181
  name: string;
1181
1182
  locationId?: string | undefined;
1182
1183
  pinId?: string | undefined;
1183
- collectedBy?: import("./condition.js").Condition | undefined;
1184
1184
  locationName?: string | undefined;
1185
+ collectedBy?: import("./condition.js").Condition | undefined;
1185
1186
  needs?: string[][] | undefined;
1186
1187
  }, {
1187
1188
  id: string;
1188
1189
  name: string;
1189
1190
  locationId?: string | undefined;
1190
1191
  pinId?: string | undefined;
1191
- collectedBy?: import("./condition.js").Condition | undefined;
1192
1192
  locationName?: string | undefined;
1193
+ collectedBy?: import("./condition.js").Condition | undefined;
1193
1194
  needs?: string[][] | undefined;
1194
1195
  }>, "many">>;
1195
1196
  localSource: z.ZodOptional<z.ZodObject<{
@@ -1212,8 +1213,8 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1212
1213
  name: string;
1213
1214
  locationId?: string | undefined;
1214
1215
  pinId?: string | undefined;
1215
- collectedBy?: import("./condition.js").Condition | undefined;
1216
1216
  locationName?: string | undefined;
1217
+ collectedBy?: import("./condition.js").Condition | undefined;
1217
1218
  needs?: string[][] | undefined;
1218
1219
  }[] | undefined;
1219
1220
  counter?: string | undefined;
@@ -1231,8 +1232,8 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1231
1232
  name: string;
1232
1233
  locationId?: string | undefined;
1233
1234
  pinId?: string | undefined;
1234
- collectedBy?: import("./condition.js").Condition | undefined;
1235
1235
  locationName?: string | undefined;
1236
+ collectedBy?: import("./condition.js").Condition | undefined;
1236
1237
  needs?: string[][] | undefined;
1237
1238
  }[] | undefined;
1238
1239
  counter?: string | undefined;
@@ -1266,9 +1267,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1266
1267
  }, "strict", z.ZodTypeAny, {
1267
1268
  id: string;
1268
1269
  title: string;
1269
- notes?: string[] | undefined;
1270
1270
  badge?: string | undefined;
1271
1271
  sequence?: string[] | undefined;
1272
+ notes?: string[] | undefined;
1272
1273
  rows?: {
1273
1274
  label: string;
1274
1275
  detail: string;
@@ -1277,9 +1278,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1277
1278
  }, {
1278
1279
  id: string;
1279
1280
  title: string;
1280
- notes?: string[] | undefined;
1281
1281
  badge?: string | undefined;
1282
1282
  sequence?: string[] | undefined;
1283
+ notes?: string[] | undefined;
1283
1284
  rows?: {
1284
1285
  label: string;
1285
1286
  detail: string;
@@ -1290,9 +1291,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1290
1291
  entries: {
1291
1292
  id: string;
1292
1293
  title: string;
1293
- notes?: string[] | undefined;
1294
1294
  badge?: string | undefined;
1295
1295
  sequence?: string[] | undefined;
1296
+ notes?: string[] | undefined;
1296
1297
  rows?: {
1297
1298
  label: string;
1298
1299
  detail: string;
@@ -1307,9 +1308,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1307
1308
  entries: {
1308
1309
  id: string;
1309
1310
  title: string;
1310
- notes?: string[] | undefined;
1311
1311
  badge?: string | undefined;
1312
1312
  sequence?: string[] | undefined;
1313
+ notes?: string[] | undefined;
1313
1314
  rows?: {
1314
1315
  label: string;
1315
1316
  detail: string;
@@ -1460,9 +1461,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1460
1461
  id: string;
1461
1462
  icon?: string | undefined;
1462
1463
  max?: string | number | undefined;
1463
- format?: "number" | "duration" | "percent" | undefined;
1464
1464
  display?: Record<string, string> | undefined;
1465
1465
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1466
+ format?: "number" | "duration" | "percent" | undefined;
1466
1467
  }[];
1467
1468
  flagSets: string[];
1468
1469
  items: {
@@ -1474,12 +1475,6 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1474
1475
  short?: string | undefined;
1475
1476
  count?: string | undefined;
1476
1477
  }[];
1477
- chips: {
1478
- label: string;
1479
- id: string;
1480
- prompt: string;
1481
- when?: import("./condition.js").Condition | undefined;
1482
- }[];
1483
1478
  inventoryLayouts: ({
1484
1479
  id: string;
1485
1480
  title: string;
@@ -1523,8 +1518,8 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1523
1518
  name: string;
1524
1519
  locationId?: string | undefined;
1525
1520
  pinId?: string | undefined;
1526
- collectedBy?: import("./condition.js").Condition | undefined;
1527
1521
  locationName?: string | undefined;
1522
+ collectedBy?: import("./condition.js").Condition | undefined;
1528
1523
  needs?: string[][] | undefined;
1529
1524
  }[] | undefined;
1530
1525
  counter?: string | undefined;
@@ -1537,9 +1532,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1537
1532
  entries: {
1538
1533
  id: string;
1539
1534
  title: string;
1540
- notes?: string[] | undefined;
1541
1535
  badge?: string | undefined;
1542
1536
  sequence?: string[] | undefined;
1537
+ notes?: string[] | undefined;
1543
1538
  rows?: {
1544
1539
  label: string;
1545
1540
  detail: string;
@@ -1551,6 +1546,12 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1551
1546
  badge?: string | undefined;
1552
1547
  defaultOpen?: boolean | undefined;
1553
1548
  }[];
1549
+ chips: {
1550
+ label: string;
1551
+ id: string;
1552
+ prompt: string;
1553
+ when?: import("./condition.js").Condition | undefined;
1554
+ }[];
1554
1555
  pinRules: {
1555
1556
  id: string;
1556
1557
  match: {
@@ -1582,9 +1583,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1582
1583
  id: string;
1583
1584
  icon?: string | undefined;
1584
1585
  max?: string | number | undefined;
1585
- format?: "number" | "duration" | "percent" | undefined;
1586
1586
  display?: Record<string, string> | undefined;
1587
1587
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1588
+ format?: "number" | "duration" | "percent" | undefined;
1588
1589
  }[];
1589
1590
  flagSets: string[];
1590
1591
  items: {
@@ -1596,12 +1597,6 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1596
1597
  short?: string | undefined;
1597
1598
  count?: string | undefined;
1598
1599
  }[];
1599
- chips: {
1600
- label: string;
1601
- id: string;
1602
- prompt: string;
1603
- when?: import("./condition.js").Condition | undefined;
1604
- }[];
1605
1600
  inventoryLayouts: ({
1606
1601
  id: string;
1607
1602
  title: string;
@@ -1645,8 +1640,8 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1645
1640
  name: string;
1646
1641
  locationId?: string | undefined;
1647
1642
  pinId?: string | undefined;
1648
- collectedBy?: import("./condition.js").Condition | undefined;
1649
1643
  locationName?: string | undefined;
1644
+ collectedBy?: import("./condition.js").Condition | undefined;
1650
1645
  needs?: string[][] | undefined;
1651
1646
  }[] | undefined;
1652
1647
  counter?: string | undefined;
@@ -1659,9 +1654,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1659
1654
  entries: {
1660
1655
  id: string;
1661
1656
  title: string;
1662
- notes?: string[] | undefined;
1663
1657
  badge?: string | undefined;
1664
1658
  sequence?: string[] | undefined;
1659
+ notes?: string[] | undefined;
1665
1660
  rows?: {
1666
1661
  label: string;
1667
1662
  detail: string;
@@ -1673,6 +1668,12 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1673
1668
  badge?: string | undefined;
1674
1669
  defaultOpen?: boolean | undefined;
1675
1670
  }[];
1671
+ chips: {
1672
+ label: string;
1673
+ id: string;
1674
+ prompt: string;
1675
+ when?: import("./condition.js").Condition | undefined;
1676
+ }[];
1676
1677
  pinRules: {
1677
1678
  id: string;
1678
1679
  match: {
@@ -1724,6 +1725,10 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1724
1725
  /** a loaded plugin's asset code builds this game's maps and assets from the player's own
1725
1726
  * files (the cog's build button) */
1726
1727
  buildsAssets: z.ZodBoolean;
1728
+ /** why the mission labels extracted on this PC aren't shown (a labels file that is broken,
1729
+ * or built for another version of the pack): the titles are the committed ones until the
1730
+ * player rebuilds the game's assets */
1731
+ missionLabelsProblem: z.ZodOptional<z.ZodString>;
1727
1732
  }, "strip", z.ZodTypeAny, {
1728
1733
  id: string;
1729
1734
  title: string;
@@ -1737,9 +1742,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1737
1742
  id: string;
1738
1743
  icon?: string | undefined;
1739
1744
  max?: string | number | undefined;
1740
- format?: "number" | "duration" | "percent" | undefined;
1741
1745
  display?: Record<string, string> | undefined;
1742
1746
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1747
+ format?: "number" | "duration" | "percent" | undefined;
1743
1748
  }[];
1744
1749
  flagSets: string[];
1745
1750
  items: {
@@ -1751,12 +1756,6 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1751
1756
  short?: string | undefined;
1752
1757
  count?: string | undefined;
1753
1758
  }[];
1754
- chips: {
1755
- label: string;
1756
- id: string;
1757
- prompt: string;
1758
- when?: import("./condition.js").Condition | undefined;
1759
- }[];
1760
1759
  inventoryLayouts: ({
1761
1760
  id: string;
1762
1761
  title: string;
@@ -1800,8 +1799,8 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1800
1799
  name: string;
1801
1800
  locationId?: string | undefined;
1802
1801
  pinId?: string | undefined;
1803
- collectedBy?: import("./condition.js").Condition | undefined;
1804
1802
  locationName?: string | undefined;
1803
+ collectedBy?: import("./condition.js").Condition | undefined;
1805
1804
  needs?: string[][] | undefined;
1806
1805
  }[] | undefined;
1807
1806
  counter?: string | undefined;
@@ -1814,9 +1813,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1814
1813
  entries: {
1815
1814
  id: string;
1816
1815
  title: string;
1817
- notes?: string[] | undefined;
1818
1816
  badge?: string | undefined;
1819
1817
  sequence?: string[] | undefined;
1818
+ notes?: string[] | undefined;
1820
1819
  rows?: {
1821
1820
  label: string;
1822
1821
  detail: string;
@@ -1828,6 +1827,12 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1828
1827
  badge?: string | undefined;
1829
1828
  defaultOpen?: boolean | undefined;
1830
1829
  }[];
1830
+ chips: {
1831
+ label: string;
1832
+ id: string;
1833
+ prompt: string;
1834
+ when?: import("./condition.js").Condition | undefined;
1835
+ }[];
1831
1836
  pinRules: {
1832
1837
  id: string;
1833
1838
  match: {
@@ -1858,6 +1863,7 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1858
1863
  panels?: {
1859
1864
  map?: boolean | undefined;
1860
1865
  } | undefined;
1866
+ missionLabelsProblem?: string | undefined;
1861
1867
  }, {
1862
1868
  id: string;
1863
1869
  title: string;
@@ -1871,9 +1877,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1871
1877
  id: string;
1872
1878
  icon?: string | undefined;
1873
1879
  max?: string | number | undefined;
1874
- format?: "number" | "duration" | "percent" | undefined;
1875
1880
  display?: Record<string, string> | undefined;
1876
1881
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1882
+ format?: "number" | "duration" | "percent" | undefined;
1877
1883
  }[];
1878
1884
  flagSets: string[];
1879
1885
  items: {
@@ -1885,12 +1891,6 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1885
1891
  short?: string | undefined;
1886
1892
  count?: string | undefined;
1887
1893
  }[];
1888
- chips: {
1889
- label: string;
1890
- id: string;
1891
- prompt: string;
1892
- when?: import("./condition.js").Condition | undefined;
1893
- }[];
1894
1894
  inventoryLayouts: ({
1895
1895
  id: string;
1896
1896
  title: string;
@@ -1934,8 +1934,8 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1934
1934
  name: string;
1935
1935
  locationId?: string | undefined;
1936
1936
  pinId?: string | undefined;
1937
- collectedBy?: import("./condition.js").Condition | undefined;
1938
1937
  locationName?: string | undefined;
1938
+ collectedBy?: import("./condition.js").Condition | undefined;
1939
1939
  needs?: string[][] | undefined;
1940
1940
  }[] | undefined;
1941
1941
  counter?: string | undefined;
@@ -1948,9 +1948,9 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1948
1948
  entries: {
1949
1949
  id: string;
1950
1950
  title: string;
1951
- notes?: string[] | undefined;
1952
1951
  badge?: string | undefined;
1953
1952
  sequence?: string[] | undefined;
1953
+ notes?: string[] | undefined;
1954
1954
  rows?: {
1955
1955
  label: string;
1956
1956
  detail: string;
@@ -1962,6 +1962,12 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1962
1962
  badge?: string | undefined;
1963
1963
  defaultOpen?: boolean | undefined;
1964
1964
  }[];
1965
+ chips: {
1966
+ label: string;
1967
+ id: string;
1968
+ prompt: string;
1969
+ when?: import("./condition.js").Condition | undefined;
1970
+ }[];
1965
1971
  pinRules: {
1966
1972
  id: string;
1967
1973
  match: {
@@ -1992,6 +1998,7 @@ export declare const ServedPackDataSchema: z.ZodObject<{
1992
1998
  panels?: {
1993
1999
  map?: boolean | undefined;
1994
2000
  } | undefined;
2001
+ missionLabelsProblem?: string | undefined;
1995
2002
  }>;
1996
2003
  export type ServedPackData = z.infer<typeof ServedPackDataSchema>;
1997
2004
  /**
@@ -1999,16 +2006,18 @@ export type ServedPackData = z.infer<typeof ServedPackDataSchema>;
1999
2006
  * daemon runs over the live state to produce `PackViews`.
2000
2007
  */
2001
2008
  export interface GamePack extends PackData {
2002
- /** Facts about the live state for the AI prompt (plain sentences/phrases). */
2003
- describeState?: (state: GameState) => string[];
2009
+ /** Facts about the live state for the AI prompt (plain sentences/phrases). Name a mission
2010
+ * with `context.missionTitle(id)`, so the AI sees the title the app shows. */
2011
+ describeState?: (state: GameState, context?: PackViewContext) => string[];
2004
2012
  /** Optional UI extras that don't fit the generic catalogue (rendered by generic widgets). */
2005
2013
  ui?: PackUi;
2006
2014
  }
2007
2015
  export interface PackUi {
2008
- statusStrip?: (state: GameState) => StatusStripView | null;
2009
- timelines?: (state: GameState) => TimelineView[];
2016
+ statusStrip?: (state: GameState, context?: PackViewContext) => StatusStripView | null;
2017
+ timelines?: (state: GameState, context?: PackViewContext) => TimelineView[];
2010
2018
  }
2011
2019
  /** The data part of a pack, without its code. */
2012
2020
  export declare function packToData(pack: GamePack): PackData;
2013
- /** Runs a pack's code over the live state. */
2014
- export declare function packViewsFor(pack: GamePack, state: GameState): PackViews;
2021
+ /** Runs a pack's code over the live state, with the mission labels extracted for its game (none:
2022
+ * the committed titles, as in a plugin's own tests). */
2023
+ export declare function packViewsFor(pack: GamePack, state: GameState, missionLabels?: MissionLabels): PackViews;