@shipload/sdk 1.0.0-next.4 → 1.0.0-next.41
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/scan.d.ts +34 -0
- package/lib/scan.js +136 -0
- package/lib/scan.js.map +1 -0
- package/lib/scan.m.js +129 -0
- package/lib/scan.m.js.map +1 -0
- package/lib/shipload.d.ts +2473 -973
- package/lib/shipload.js +11529 -5211
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +11338 -5162
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.d.ts +970 -0
- package/lib/testing.js +4013 -0
- package/lib/testing.js.map +1 -0
- package/lib/testing.m.js +4007 -0
- package/lib/testing.m.js.map +1 -0
- package/package.json +20 -2
- package/src/capabilities/craftable.ts +51 -0
- package/src/capabilities/crafting.test.ts +7 -0
- package/src/capabilities/crafting.ts +5 -6
- package/src/capabilities/gathering.test.ts +16 -0
- package/src/capabilities/gathering.ts +35 -18
- package/src/capabilities/index.ts +0 -1
- package/src/capabilities/modules.ts +9 -0
- package/src/capabilities/storage.ts +16 -1
- package/src/contracts/platform.ts +231 -3
- package/src/contracts/server.ts +1021 -481
- package/src/coordinates/address.ts +88 -0
- package/src/coordinates/constants.test.ts +15 -0
- package/src/coordinates/constants.ts +23 -0
- package/src/coordinates/index.ts +15 -0
- package/src/coordinates/memo.test.ts +47 -0
- package/src/coordinates/memo.ts +20 -0
- package/src/coordinates/permutation.ts +77 -0
- package/src/coordinates/regions.ts +48 -0
- package/src/coordinates/sectors.ts +115 -0
- package/src/data/capabilities.ts +12 -5
- package/src/data/capability-formulas.ts +14 -7
- package/src/data/catalog.ts +0 -5
- package/src/data/colors.ts +14 -47
- package/src/data/entities.json +76 -10
- package/src/data/item-ids.ts +18 -12
- package/src/data/items.json +321 -38
- package/src/data/kind-registry.json +109 -0
- package/src/data/kind-registry.ts +165 -0
- package/src/data/metadata.ts +119 -33
- package/src/data/recipes-runtime.ts +3 -23
- package/src/data/recipes.json +238 -117
- package/src/derivation/build-methods.ts +45 -0
- package/src/derivation/capabilities.test.ts +151 -0
- package/src/derivation/capabilities.ts +512 -0
- package/src/derivation/capability-mappings.ts +9 -12
- package/src/derivation/crafting.ts +23 -24
- package/src/derivation/index.ts +25 -2
- package/src/derivation/recipe-usage.test.ts +78 -0
- package/src/derivation/recipe-usage.ts +141 -0
- package/src/derivation/reserve-regen.ts +34 -0
- package/src/derivation/resources.ts +125 -38
- package/src/derivation/rollups.test.ts +55 -0
- package/src/derivation/rollups.ts +56 -0
- package/src/derivation/stars.test.ts +51 -0
- package/src/derivation/stars.ts +15 -0
- package/src/derivation/stats.ts +6 -6
- package/src/derivation/stratum.ts +17 -20
- package/src/derivation/tiers.ts +40 -7
- package/src/derivation/wormhole.ts +136 -0
- package/src/entities/entity.ts +98 -0
- package/src/entities/gamestate.ts +3 -28
- package/src/entities/makers.ts +124 -134
- package/src/entities/slot-multiplier.ts +43 -0
- package/src/errors.ts +12 -16
- package/src/format.ts +26 -4
- package/src/index-module.ts +267 -47
- package/src/managers/actions.ts +528 -95
- package/src/managers/base.ts +6 -2
- package/src/managers/construction-types.ts +80 -0
- package/src/managers/construction.ts +412 -0
- package/src/managers/context.ts +20 -1
- package/src/managers/coordinates.ts +14 -0
- package/src/managers/entities.ts +18 -66
- package/src/managers/epochs.ts +40 -0
- package/src/managers/index.ts +17 -1
- package/src/managers/locations.ts +25 -29
- package/src/managers/nft.test.ts +14 -0
- package/src/managers/nft.ts +70 -0
- package/src/managers/plot.ts +122 -0
- package/src/nft/atomicassets.abi.json +1342 -0
- package/src/nft/atomicassets.ts +237 -0
- package/src/nft/atomicdata.ts +130 -0
- package/src/nft/buildImmutableData.ts +338 -0
- package/src/nft/description.ts +98 -24
- package/src/nft/index.ts +3 -0
- package/src/planner/index.ts +127 -0
- package/src/planner/planner.test.ts +319 -0
- package/src/resolution/describe-module.ts +18 -13
- package/src/resolution/display-name.ts +38 -10
- package/src/resolution/resolve-item.test.ts +37 -0
- package/src/resolution/resolve-item.ts +55 -24
- package/src/scan/index.ts +180 -0
- package/src/scan/scan-wasm.base64.ts +2 -0
- package/src/scheduling/accessor.ts +68 -22
- package/src/scheduling/availability.ts +108 -0
- package/src/scheduling/cancel.test.ts +348 -0
- package/src/scheduling/cancel.ts +209 -0
- package/src/scheduling/energy.ts +47 -0
- package/src/scheduling/idle-resolve.ts +45 -0
- package/src/scheduling/lane-core.ts +128 -0
- package/src/scheduling/lanes.test.ts +249 -0
- package/src/scheduling/lanes.ts +198 -0
- package/src/scheduling/projection.ts +209 -105
- package/src/scheduling/schedule.ts +241 -104
- package/src/scheduling/task-cargo.ts +46 -0
- package/src/shipload.ts +21 -1
- package/src/subscriptions/manager.ts +229 -142
- package/src/subscriptions/mappers.ts +5 -8
- package/src/subscriptions/types.ts +11 -3
- package/src/testing/catalog-hash.ts +19 -0
- package/src/testing/index.ts +2 -0
- package/src/testing/projection-parity.ts +167 -0
- package/src/travel/reach.ts +23 -0
- package/src/travel/route-planner.ts +196 -0
- package/src/travel/travel.ts +200 -112
- package/src/types/capabilities.ts +29 -6
- package/src/types/entity.ts +3 -3
- package/src/types/index.ts +0 -1
- package/src/types.ts +28 -13
- package/src/utils/cargo.ts +27 -0
- package/src/utils/display-name.ts +70 -0
- package/src/utils/system.ts +36 -24
- package/src/capabilities/loading.ts +0 -8
- package/src/entities/container.ts +0 -108
- package/src/entities/ship-deploy.ts +0 -259
- package/src/entities/ship.ts +0 -204
- package/src/entities/warehouse.ts +0 -119
- package/src/types/entity-traits.ts +0 -69
package/src/data/entities.json
CHANGED
|
@@ -7,19 +7,24 @@
|
|
|
7
7
|
"entityItemId": 10201,
|
|
8
8
|
"slots": [
|
|
9
9
|
{
|
|
10
|
-
"type": "any"
|
|
10
|
+
"type": "any",
|
|
11
|
+
"outputPct": 100
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
|
-
"type": "any"
|
|
14
|
+
"type": "any",
|
|
15
|
+
"outputPct": 100
|
|
14
16
|
},
|
|
15
17
|
{
|
|
16
|
-
"type": "any"
|
|
18
|
+
"type": "any",
|
|
19
|
+
"outputPct": 100
|
|
17
20
|
},
|
|
18
21
|
{
|
|
19
|
-
"type": "any"
|
|
22
|
+
"type": "any",
|
|
23
|
+
"outputPct": 100
|
|
20
24
|
},
|
|
21
25
|
{
|
|
22
|
-
"type": "any"
|
|
26
|
+
"type": "any",
|
|
27
|
+
"outputPct": 100
|
|
23
28
|
}
|
|
24
29
|
]
|
|
25
30
|
},
|
|
@@ -27,19 +32,80 @@
|
|
|
27
32
|
"entityItemId": 10202,
|
|
28
33
|
"slots": [
|
|
29
34
|
{
|
|
30
|
-
"type": "loader"
|
|
35
|
+
"type": "loader",
|
|
36
|
+
"outputPct": 100
|
|
31
37
|
},
|
|
32
38
|
{
|
|
33
|
-
"type": "storage"
|
|
39
|
+
"type": "storage",
|
|
40
|
+
"outputPct": 100
|
|
34
41
|
},
|
|
35
42
|
{
|
|
36
|
-
"type": "storage"
|
|
43
|
+
"type": "storage",
|
|
44
|
+
"outputPct": 100
|
|
37
45
|
},
|
|
38
46
|
{
|
|
39
|
-
"type": "storage"
|
|
47
|
+
"type": "storage",
|
|
48
|
+
"outputPct": 100
|
|
40
49
|
},
|
|
41
50
|
{
|
|
42
|
-
"type": "storage"
|
|
51
|
+
"type": "storage",
|
|
52
|
+
"outputPct": 100
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"entityItemId": 10203,
|
|
58
|
+
"slots": [
|
|
59
|
+
{
|
|
60
|
+
"type": "generator",
|
|
61
|
+
"outputPct": 200
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "gatherer",
|
|
65
|
+
"outputPct": 200
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"entityItemId": 10204,
|
|
71
|
+
"slots": [
|
|
72
|
+
{
|
|
73
|
+
"type": "generator",
|
|
74
|
+
"outputPct": 200
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "crafter",
|
|
78
|
+
"outputPct": 200
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"entityItemId": 10205,
|
|
84
|
+
"slots": [
|
|
85
|
+
{
|
|
86
|
+
"type": "generator",
|
|
87
|
+
"outputPct": 200
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "launcher",
|
|
91
|
+
"outputPct": 200
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"entityItemId": 10206,
|
|
97
|
+
"slots": [
|
|
98
|
+
{
|
|
99
|
+
"type": "storage",
|
|
100
|
+
"outputPct": 100
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "storage",
|
|
104
|
+
"outputPct": 100
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "storage",
|
|
108
|
+
"outputPct": 100
|
|
43
109
|
}
|
|
44
110
|
]
|
|
45
111
|
},
|
package/src/data/item-ids.ts
CHANGED
|
@@ -50,16 +50,16 @@ export const ITEM_BIOMASS_T7 = 507
|
|
|
50
50
|
export const ITEM_BIOMASS_T8 = 508
|
|
51
51
|
export const ITEM_BIOMASS_T9 = 509
|
|
52
52
|
export const ITEM_BIOMASS_T10 = 510
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
57
|
-
export const
|
|
58
|
-
export const
|
|
59
|
-
export const
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
53
|
+
export const ITEM_PLATE = 10001
|
|
54
|
+
export const ITEM_FRAME = 10002
|
|
55
|
+
export const ITEM_PLASMA_CELL = 10003
|
|
56
|
+
export const ITEM_RESONATOR = 10004
|
|
57
|
+
export const ITEM_BEAM = 10005
|
|
58
|
+
export const ITEM_SENSOR = 10006
|
|
59
|
+
export const ITEM_POLYMER = 10007
|
|
60
|
+
export const ITEM_CERAMIC = 10008
|
|
61
|
+
export const ITEM_REACTOR = 10009
|
|
62
|
+
export const ITEM_RESIN = 10010
|
|
63
63
|
export const ITEM_ENGINE_T1 = 10100
|
|
64
64
|
export const ITEM_GENERATOR_T1 = 10101
|
|
65
65
|
export const ITEM_GATHERER_T1 = 10102
|
|
@@ -68,9 +68,15 @@ export const ITEM_CRAFTER_T1 = 10104
|
|
|
68
68
|
export const ITEM_STORAGE_T1 = 10105
|
|
69
69
|
export const ITEM_HAULER_T1 = 10106
|
|
70
70
|
export const ITEM_WARP_T1 = 10107
|
|
71
|
+
export const ITEM_BATTERY_T1 = 10108
|
|
72
|
+
export const ITEM_LAUNCHER_T1 = 10109
|
|
71
73
|
export const ITEM_CONTAINER_T1_PACKED = 10200
|
|
72
74
|
export const ITEM_SHIP_T1_PACKED = 10201
|
|
73
75
|
export const ITEM_WAREHOUSE_T1_PACKED = 10202
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
76
|
+
export const ITEM_EXTRACTOR_T1_PACKED = 10203
|
|
77
|
+
export const ITEM_FACTORY_T1_PACKED = 10204
|
|
78
|
+
export const ITEM_MASS_DRIVER_T1_PACKED = 10205
|
|
79
|
+
export const ITEM_MASS_CATCHER_T1_PACKED = 10206
|
|
80
|
+
export const ITEM_PLATE_T2 = 20001
|
|
81
|
+
export const ITEM_FRAME_T2 = 20002
|
|
76
82
|
export const ITEM_CONTAINER_T2_PACKED = 20200
|