@shipload/sdk 1.0.0-next.75 → 1.0.0-next.76

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.
Files changed (53) hide show
  1. package/lib/scan.js +1 -1
  2. package/lib/scan.js.map +1 -1
  3. package/lib/scan.m.js +1 -1
  4. package/lib/scan.m.js.map +1 -1
  5. package/lib/shipload.d.ts +69 -35
  6. package/lib/shipload.js +13551 -11325
  7. package/lib/shipload.js.map +1 -1
  8. package/lib/shipload.m.js +13532 -11325
  9. package/lib/shipload.m.js.map +1 -1
  10. package/lib/testing.d.ts +20 -16
  11. package/lib/testing.js +214 -48
  12. package/lib/testing.js.map +1 -1
  13. package/lib/testing.m.js +214 -48
  14. package/lib/testing.m.js.map +1 -1
  15. package/package.json +6 -6
  16. package/src/capabilities/storage.ts +45 -10
  17. package/src/contracts/server.ts +49 -41
  18. package/src/data/entities.json +367 -2
  19. package/src/data/item-ids.ts +15 -0
  20. package/src/data/items.json +90 -0
  21. package/src/data/kind-registry.json +97 -7
  22. package/src/data/metadata.ts +65 -0
  23. package/src/data/recipes-runtime.ts +1 -1
  24. package/src/data/recipes.json +1476 -10
  25. package/src/data/task-types.json +9 -0
  26. package/src/derivation/capabilities.test.ts +25 -2
  27. package/src/derivation/capabilities.ts +16 -3
  28. package/src/derivation/capacity-fn-registry.ts +8 -1
  29. package/src/derivation/reserve-regen.ts +5 -9
  30. package/src/derivation/stratum.ts +1 -1
  31. package/src/derivation/tiers.ts +1 -1
  32. package/src/derivation/upgrades.ts +5 -4
  33. package/src/index-module.ts +3 -0
  34. package/src/influence/influence.test.ts +1 -1
  35. package/src/managers/actions.ts +12 -19
  36. package/src/managers/entities.test.ts +23 -0
  37. package/src/managers/entities.ts +8 -1
  38. package/src/managers/shuttle.test.ts +67 -0
  39. package/src/managers/shuttle.ts +17 -0
  40. package/src/nft/description.ts +6 -0
  41. package/src/resolution/resolve-item.test.ts +6 -6
  42. package/src/scan/scan-wasm.base64.ts +1 -1
  43. package/src/scheduling/availability.test.ts +3 -3
  44. package/src/scheduling/availability.ts +3 -4
  45. package/src/scheduling/lanes.ts +1 -1
  46. package/src/scheduling/projection.ts +15 -13
  47. package/src/scheduling/schedule.test.ts +24 -0
  48. package/src/scheduling/schedule.ts +11 -4
  49. package/src/scheduling/task-effects.ts +3 -1
  50. package/src/scheduling/unwrap.test.ts +25 -6
  51. package/src/scheduling/unwrap.ts +19 -3
  52. package/src/travel/travel.ts +4 -0
  53. package/src/types.ts +2 -0
@@ -2,7 +2,7 @@
2
2
  {
3
3
  "entityItemId": 10200,
4
4
  "slots": [],
5
- "baseHullmass": 1000
5
+ "baseHullmass": 19000
6
6
  },
7
7
  {
8
8
  "entityItemId": 10201,
@@ -310,7 +310,7 @@
310
310
  {
311
311
  "entityItemId": 11200,
312
312
  "slots": [],
313
- "baseHullmass": 1000
313
+ "baseHullmass": 31000
314
314
  },
315
315
  {
316
316
  "entityItemId": 11202,
@@ -468,5 +468,370 @@
468
468
  }
469
469
  ],
470
470
  "baseHullmass": 73600
471
+ },
472
+ {
473
+ "entityItemId": 11215,
474
+ "slots": [
475
+ {
476
+ "type": "generator",
477
+ "outputPct": 90,
478
+ "maxTier": 2
479
+ },
480
+ {
481
+ "type": "engine",
482
+ "outputPct": 90,
483
+ "maxTier": 2
484
+ },
485
+ {
486
+ "type": "loader",
487
+ "outputPct": 100,
488
+ "maxTier": 2
489
+ }
490
+ ],
491
+ "baseHullmass": 59200
492
+ },
493
+ {
494
+ "entityItemId": 11216,
495
+ "slots": [
496
+ {
497
+ "type": "generator",
498
+ "outputPct": 95,
499
+ "maxTier": 2
500
+ },
501
+ {
502
+ "type": "engine",
503
+ "outputPct": 95,
504
+ "maxTier": 2
505
+ },
506
+ {
507
+ "type": "aux",
508
+ "outputPct": 95,
509
+ "maxTier": 2
510
+ },
511
+ {
512
+ "type": "loader",
513
+ "outputPct": 100,
514
+ "maxTier": 2
515
+ }
516
+ ],
517
+ "baseHullmass": 73600
518
+ },
519
+ {
520
+ "entityItemId": 11217,
521
+ "slots": [
522
+ {
523
+ "type": "generator",
524
+ "outputPct": 90,
525
+ "maxTier": 2
526
+ },
527
+ {
528
+ "type": "engine",
529
+ "outputPct": 90,
530
+ "maxTier": 2
531
+ },
532
+ {
533
+ "type": "builder",
534
+ "outputPct": 100,
535
+ "maxTier": 2
536
+ }
537
+ ],
538
+ "baseHullmass": 59200
539
+ },
540
+ {
541
+ "entityItemId": 11218,
542
+ "slots": [
543
+ {
544
+ "type": "generator",
545
+ "outputPct": 95,
546
+ "maxTier": 2
547
+ },
548
+ {
549
+ "type": "engine",
550
+ "outputPct": 95,
551
+ "maxTier": 2
552
+ },
553
+ {
554
+ "type": "aux",
555
+ "outputPct": 95,
556
+ "maxTier": 2
557
+ },
558
+ {
559
+ "type": "builder",
560
+ "outputPct": 100,
561
+ "maxTier": 2
562
+ }
563
+ ],
564
+ "baseHullmass": 73600
565
+ },
566
+ {
567
+ "entityItemId": 11219,
568
+ "slots": [
569
+ {
570
+ "type": "generator",
571
+ "outputPct": 90,
572
+ "maxTier": 2
573
+ },
574
+ {
575
+ "type": "engine",
576
+ "outputPct": 90,
577
+ "maxTier": 2
578
+ },
579
+ {
580
+ "type": "hauler",
581
+ "outputPct": 100,
582
+ "maxTier": 2
583
+ }
584
+ ],
585
+ "baseHullmass": 59200
586
+ },
587
+ {
588
+ "entityItemId": 11220,
589
+ "slots": [
590
+ {
591
+ "type": "generator",
592
+ "outputPct": 95,
593
+ "maxTier": 2
594
+ },
595
+ {
596
+ "type": "engine",
597
+ "outputPct": 95,
598
+ "maxTier": 2
599
+ },
600
+ {
601
+ "type": "aux",
602
+ "outputPct": 95,
603
+ "maxTier": 2
604
+ },
605
+ {
606
+ "type": "hauler",
607
+ "outputPct": 100,
608
+ "maxTier": 2
609
+ }
610
+ ],
611
+ "baseHullmass": 73600
612
+ },
613
+ {
614
+ "entityItemId": 11221,
615
+ "slots": [
616
+ {
617
+ "type": "generator",
618
+ "outputPct": 90,
619
+ "maxTier": 2
620
+ },
621
+ {
622
+ "type": "engine",
623
+ "outputPct": 90,
624
+ "maxTier": 2
625
+ },
626
+ {
627
+ "type": "storage",
628
+ "outputPct": 100,
629
+ "maxTier": 2
630
+ }
631
+ ],
632
+ "baseHullmass": 59200
633
+ },
634
+ {
635
+ "entityItemId": 11222,
636
+ "slots": [
637
+ {
638
+ "type": "generator",
639
+ "outputPct": 95,
640
+ "maxTier": 2
641
+ },
642
+ {
643
+ "type": "engine",
644
+ "outputPct": 95,
645
+ "maxTier": 2
646
+ },
647
+ {
648
+ "type": "aux",
649
+ "outputPct": 95,
650
+ "maxTier": 2
651
+ },
652
+ {
653
+ "type": "storage",
654
+ "outputPct": 100,
655
+ "maxTier": 2
656
+ }
657
+ ],
658
+ "baseHullmass": 73600
659
+ },
660
+ {
661
+ "entityItemId": 11223,
662
+ "slots": [
663
+ {
664
+ "type": "generator",
665
+ "outputPct": 90,
666
+ "maxTier": 2
667
+ },
668
+ {
669
+ "type": "engine",
670
+ "outputPct": 90,
671
+ "maxTier": 2
672
+ },
673
+ {
674
+ "type": "crafter",
675
+ "outputPct": 100,
676
+ "maxTier": 2
677
+ }
678
+ ],
679
+ "baseHullmass": 59200
680
+ },
681
+ {
682
+ "entityItemId": 11224,
683
+ "slots": [
684
+ {
685
+ "type": "generator",
686
+ "outputPct": 95,
687
+ "maxTier": 2
688
+ },
689
+ {
690
+ "type": "engine",
691
+ "outputPct": 95,
692
+ "maxTier": 2
693
+ },
694
+ {
695
+ "type": "aux",
696
+ "outputPct": 95,
697
+ "maxTier": 2
698
+ },
699
+ {
700
+ "type": "crafter",
701
+ "outputPct": 100,
702
+ "maxTier": 2
703
+ }
704
+ ],
705
+ "baseHullmass": 73600
706
+ },
707
+ {
708
+ "entityItemId": 11225,
709
+ "slots": [
710
+ {
711
+ "type": "generator",
712
+ "outputPct": 95,
713
+ "maxTier": 2
714
+ },
715
+ {
716
+ "type": "engine",
717
+ "outputPct": 95,
718
+ "maxTier": 2
719
+ },
720
+ {
721
+ "type": "gatherer",
722
+ "outputPct": 100,
723
+ "maxTier": 2
724
+ },
725
+ {
726
+ "type": "hauler",
727
+ "outputPct": 100,
728
+ "maxTier": 2
729
+ }
730
+ ],
731
+ "baseHullmass": 73600
732
+ },
733
+ {
734
+ "entityItemId": 11226,
735
+ "slots": [
736
+ {
737
+ "type": "generator",
738
+ "outputPct": 95,
739
+ "maxTier": 2
740
+ },
741
+ {
742
+ "type": "engine",
743
+ "outputPct": 95,
744
+ "maxTier": 2
745
+ },
746
+ {
747
+ "type": "loader",
748
+ "outputPct": 100,
749
+ "maxTier": 2
750
+ },
751
+ {
752
+ "type": "storage",
753
+ "outputPct": 100,
754
+ "maxTier": 2
755
+ }
756
+ ],
757
+ "baseHullmass": 73600
758
+ },
759
+ {
760
+ "entityItemId": 11227,
761
+ "slots": [
762
+ {
763
+ "type": "generator",
764
+ "outputPct": 95,
765
+ "maxTier": 2
766
+ },
767
+ {
768
+ "type": "engine",
769
+ "outputPct": 95,
770
+ "maxTier": 2
771
+ },
772
+ {
773
+ "type": "loader",
774
+ "outputPct": 100,
775
+ "maxTier": 2
776
+ },
777
+ {
778
+ "type": "hauler",
779
+ "outputPct": 100,
780
+ "maxTier": 2
781
+ }
782
+ ],
783
+ "baseHullmass": 73600
784
+ },
785
+ {
786
+ "entityItemId": 11228,
787
+ "slots": [
788
+ {
789
+ "type": "generator",
790
+ "outputPct": 95,
791
+ "maxTier": 2
792
+ },
793
+ {
794
+ "type": "engine",
795
+ "outputPct": 95,
796
+ "maxTier": 2
797
+ },
798
+ {
799
+ "type": "crafter",
800
+ "outputPct": 100,
801
+ "maxTier": 2
802
+ },
803
+ {
804
+ "type": "storage",
805
+ "outputPct": 100,
806
+ "maxTier": 2
807
+ }
808
+ ],
809
+ "baseHullmass": 73600
810
+ },
811
+ {
812
+ "entityItemId": 11229,
813
+ "slots": [
814
+ {
815
+ "type": "generator",
816
+ "outputPct": 95,
817
+ "maxTier": 2
818
+ },
819
+ {
820
+ "type": "engine",
821
+ "outputPct": 95,
822
+ "maxTier": 2
823
+ },
824
+ {
825
+ "type": "builder",
826
+ "outputPct": 100,
827
+ "maxTier": 2
828
+ },
829
+ {
830
+ "type": "storage",
831
+ "outputPct": 100,
832
+ "maxTier": 2
833
+ }
834
+ ],
835
+ "baseHullmass": 73600
471
836
  }
472
837
  ]
@@ -115,3 +115,18 @@ export const ITEM_ASSEMBLY_YARD_T2_PACKED = 11209
115
115
  export const ITEM_PROSPECTOR_T2A_PACKED = 11212
116
116
  export const ITEM_PROSPECTOR_T2B_PACKED = 11213
117
117
  export const ITEM_DREDGER_T2A_PACKED = 11214
118
+ export const ITEM_TENDER_T2A_PACKED = 11215
119
+ export const ITEM_TENDER_T2B_PACKED = 11216
120
+ export const ITEM_WRIGHT_T2A_PACKED = 11217
121
+ export const ITEM_WRIGHT_T2B_PACKED = 11218
122
+ export const ITEM_TUG_T2A_PACKED = 11219
123
+ export const ITEM_TUG_T2B_PACKED = 11220
124
+ export const ITEM_PORTER_T2A_PACKED = 11221
125
+ export const ITEM_PORTER_T2B_PACKED = 11222
126
+ export const ITEM_SMITH_T2A_PACKED = 11223
127
+ export const ITEM_SMITH_T2B_PACKED = 11224
128
+ export const ITEM_TRAWLER_T2A_PACKED = 11225
129
+ export const ITEM_STEWARD_T2A_PACKED = 11226
130
+ export const ITEM_WRANGLER_T2A_PACKED = 11227
131
+ export const ITEM_ARTISAN_T2A_PACKED = 11228
132
+ export const ITEM_OUTFITTER_T2A_PACKED = 11229
@@ -759,5 +759,95 @@
759
759
  "mass": 57600,
760
760
  "type": "entity",
761
761
  "tier": 2
762
+ },
763
+ {
764
+ "id": 11215,
765
+ "mass": 43200,
766
+ "type": "entity",
767
+ "tier": 2
768
+ },
769
+ {
770
+ "id": 11216,
771
+ "mass": 57600,
772
+ "type": "entity",
773
+ "tier": 2
774
+ },
775
+ {
776
+ "id": 11217,
777
+ "mass": 43200,
778
+ "type": "entity",
779
+ "tier": 2
780
+ },
781
+ {
782
+ "id": 11218,
783
+ "mass": 57600,
784
+ "type": "entity",
785
+ "tier": 2
786
+ },
787
+ {
788
+ "id": 11219,
789
+ "mass": 43200,
790
+ "type": "entity",
791
+ "tier": 2
792
+ },
793
+ {
794
+ "id": 11220,
795
+ "mass": 57600,
796
+ "type": "entity",
797
+ "tier": 2
798
+ },
799
+ {
800
+ "id": 11221,
801
+ "mass": 43200,
802
+ "type": "entity",
803
+ "tier": 2
804
+ },
805
+ {
806
+ "id": 11222,
807
+ "mass": 57600,
808
+ "type": "entity",
809
+ "tier": 2
810
+ },
811
+ {
812
+ "id": 11223,
813
+ "mass": 43200,
814
+ "type": "entity",
815
+ "tier": 2
816
+ },
817
+ {
818
+ "id": 11224,
819
+ "mass": 57600,
820
+ "type": "entity",
821
+ "tier": 2
822
+ },
823
+ {
824
+ "id": 11225,
825
+ "mass": 57600,
826
+ "type": "entity",
827
+ "tier": 2
828
+ },
829
+ {
830
+ "id": 11226,
831
+ "mass": 57600,
832
+ "type": "entity",
833
+ "tier": 2
834
+ },
835
+ {
836
+ "id": 11227,
837
+ "mass": 57600,
838
+ "type": "entity",
839
+ "tier": 2
840
+ },
841
+ {
842
+ "id": 11228,
843
+ "mass": 57600,
844
+ "type": "entity",
845
+ "tier": 2
846
+ },
847
+ {
848
+ "id": 11229,
849
+ "mass": 57600,
850
+ "type": "entity",
851
+ "tier": 2
762
852
  }
763
853
  ]
@@ -152,13 +152,13 @@
152
152
  "itemId": 10205,
153
153
  "kind": "mdriver",
154
154
  "displayLabel": "",
155
- "baseCapacityFn": "container"
155
+ "baseCapacityFn": "structure"
156
156
  },
157
157
  {
158
158
  "itemId": 10206,
159
159
  "kind": "mcatcher",
160
160
  "displayLabel": "",
161
- "baseCapacityFn": "container"
161
+ "baseCapacityFn": "structure"
162
162
  },
163
163
  {
164
164
  "itemId": 10200,
@@ -182,13 +182,13 @@
182
182
  "itemId": 10209,
183
183
  "kind": "builddock",
184
184
  "displayLabel": "",
185
- "baseCapacityFn": "container"
185
+ "baseCapacityFn": "structure"
186
186
  },
187
187
  {
188
188
  "itemId": 10216,
189
189
  "kind": "nexus",
190
190
  "displayLabel": "",
191
- "baseCapacityFn": "container"
191
+ "baseCapacityFn": "structure"
192
192
  },
193
193
  {
194
194
  "itemId": 11212,
@@ -208,6 +208,96 @@
208
208
  "displayLabel": "Dredger",
209
209
  "baseCapacityFn": "ship"
210
210
  },
211
+ {
212
+ "itemId": 11215,
213
+ "kind": "ship",
214
+ "displayLabel": "Tender",
215
+ "baseCapacityFn": "ship"
216
+ },
217
+ {
218
+ "itemId": 11216,
219
+ "kind": "ship",
220
+ "displayLabel": "Tender",
221
+ "baseCapacityFn": "ship"
222
+ },
223
+ {
224
+ "itemId": 11217,
225
+ "kind": "ship",
226
+ "displayLabel": "Wright",
227
+ "baseCapacityFn": "ship"
228
+ },
229
+ {
230
+ "itemId": 11218,
231
+ "kind": "ship",
232
+ "displayLabel": "Wright",
233
+ "baseCapacityFn": "ship"
234
+ },
235
+ {
236
+ "itemId": 11219,
237
+ "kind": "ship",
238
+ "displayLabel": "Tug",
239
+ "baseCapacityFn": "ship"
240
+ },
241
+ {
242
+ "itemId": 11220,
243
+ "kind": "ship",
244
+ "displayLabel": "Tug",
245
+ "baseCapacityFn": "ship"
246
+ },
247
+ {
248
+ "itemId": 11221,
249
+ "kind": "ship",
250
+ "displayLabel": "Porter",
251
+ "baseCapacityFn": "ship"
252
+ },
253
+ {
254
+ "itemId": 11222,
255
+ "kind": "ship",
256
+ "displayLabel": "Porter",
257
+ "baseCapacityFn": "ship"
258
+ },
259
+ {
260
+ "itemId": 11223,
261
+ "kind": "ship",
262
+ "displayLabel": "Smith",
263
+ "baseCapacityFn": "ship"
264
+ },
265
+ {
266
+ "itemId": 11224,
267
+ "kind": "ship",
268
+ "displayLabel": "Smith",
269
+ "baseCapacityFn": "ship"
270
+ },
271
+ {
272
+ "itemId": 11225,
273
+ "kind": "ship",
274
+ "displayLabel": "Trawler",
275
+ "baseCapacityFn": "ship"
276
+ },
277
+ {
278
+ "itemId": 11226,
279
+ "kind": "ship",
280
+ "displayLabel": "Steward",
281
+ "baseCapacityFn": "ship"
282
+ },
283
+ {
284
+ "itemId": 11227,
285
+ "kind": "ship",
286
+ "displayLabel": "Wrangler",
287
+ "baseCapacityFn": "ship"
288
+ },
289
+ {
290
+ "itemId": 11228,
291
+ "kind": "ship",
292
+ "displayLabel": "Artisan",
293
+ "baseCapacityFn": "ship"
294
+ },
295
+ {
296
+ "itemId": 11229,
297
+ "kind": "ship",
298
+ "displayLabel": "Outfitter",
299
+ "baseCapacityFn": "ship"
300
+ },
211
301
  {
212
302
  "itemId": 10219,
213
303
  "kind": "depot",
@@ -224,13 +314,13 @@
224
314
  "itemId": 11203,
225
315
  "kind": "extractor",
226
316
  "displayLabel": "",
227
- "baseCapacityFn": "container"
317
+ "baseCapacityFn": "structure"
228
318
  },
229
319
  {
230
320
  "itemId": 11204,
231
321
  "kind": "factory",
232
322
  "displayLabel": "",
233
- "baseCapacityFn": "container"
323
+ "baseCapacityFn": "structure"
234
324
  },
235
325
  {
236
326
  "itemId": 11207,
@@ -242,7 +332,7 @@
242
332
  "itemId": 11209,
243
333
  "kind": "asmblyard",
244
334
  "displayLabel": "Assembly Yard",
245
- "baseCapacityFn": "container"
335
+ "baseCapacityFn": "structure"
246
336
  }
247
337
  ]
248
338
  }