@shipload/sdk 1.0.0-next.42 → 1.0.0-next.43

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/shipload.d.ts CHANGED
@@ -3022,6 +3022,7 @@ declare class ActionsManager extends BaseManager {
3022
3022
  placecargo(owner: NameType, hostId: UInt64Type, assetId: UInt64Type): Action;
3023
3023
  placeentity(owner: NameType, assetId: UInt64Type, targetNexusId: UInt64Type): Action;
3024
3024
  transferForUnwrap(owner: NameType, assetId: UInt64Type): Action;
3025
+ sendAsset(owner: NameType, recipient: NameType, assetId: UInt64Type, memo?: string): Action;
3025
3026
  unwrapCargoTx(owner: NameType, assetId: UInt64Type, hostId: UInt64Type): Action[];
3026
3027
  unwrapEntityTx(owner: NameType, assetId: UInt64Type, targetNexusId: UInt64Type): Action[];
3027
3028
  setRamPayer(newPayer: NameType, assetId: UInt64Type): Action;
@@ -3873,6 +3874,72 @@ interface CancelEligibilityInput {
3873
3874
  }
3874
3875
  declare function cancelEligibility(entity: EntityInfo, laneKey: number, fromTaskIndex: number, input: CancelEligibilityInput): CancelPlan;
3875
3876
 
3877
+ interface DerivedLoaders {
3878
+ mass: number;
3879
+ thrust: number;
3880
+ quantity: number;
3881
+ }
3882
+ declare function derivedLoaders(lanes: {
3883
+ mass: UInt32Type | number;
3884
+ thrust: UInt16Type | number;
3885
+ }[] | undefined): DerivedLoaders | null;
3886
+ declare function unwrapTransitDuration(itemMass: number, origin: {
3887
+ x: number;
3888
+ y: number;
3889
+ }, dest: {
3890
+ x: number;
3891
+ y: number;
3892
+ }): number;
3893
+ declare function unwrapLoadDuration(loaders: DerivedLoaders | null, itemMass: number, destZ: number): number;
3894
+ interface UnwrapItem {
3895
+ itemId: number;
3896
+ quantity: number;
3897
+ modules: Types.module_entry[];
3898
+ originX: number;
3899
+ originY: number;
3900
+ }
3901
+ interface UnwrapDestination {
3902
+ loader_lanes?: {
3903
+ mass: UInt32Type | number;
3904
+ thrust: UInt16Type | number;
3905
+ }[];
3906
+ coordinates: {
3907
+ x: UInt32Type | number;
3908
+ y: UInt32Type | number;
3909
+ z?: UInt32Type | number;
3910
+ };
3911
+ }
3912
+ declare function estimateUnwrapDuration(dest: UnwrapDestination, item: UnwrapItem): number;
3913
+ declare function incomingHoldMass(holds: {
3914
+ kind: number | {
3915
+ toNumber(): number;
3916
+ };
3917
+ incoming_mass: number | {
3918
+ toNumber(): number;
3919
+ };
3920
+ }[] | undefined): number;
3921
+ declare function projectedPeakCargomass(entity: ScheduleData & {
3922
+ cargomass: number | {
3923
+ toNumber(): number;
3924
+ };
3925
+ }, at: Date, addMass: number, removeMass?: number): number;
3926
+ declare function receiveFits(dest: UnwrapDestination & ScheduleData & {
3927
+ cargomass: number | {
3928
+ toNumber(): number;
3929
+ };
3930
+ capacity?: number | {
3931
+ toNumber(): number;
3932
+ };
3933
+ holds?: {
3934
+ kind: number | {
3935
+ toNumber(): number;
3936
+ };
3937
+ incoming_mass: number | {
3938
+ toNumber(): number;
3939
+ };
3940
+ }[];
3941
+ }, item: UnwrapItem, now: Date): boolean;
3942
+
3876
3943
  type Task = Types.task;
3877
3944
  type CargoItem$1 = Types.cargo_item;
3878
3945
  interface CargoEffect {
@@ -4011,6 +4078,13 @@ interface StatMapping {
4011
4078
  stat: string;
4012
4079
  capability: string;
4013
4080
  attribute: string;
4081
+ source: string;
4082
+ }
4083
+ interface CapabilityAttributeRow {
4084
+ capability: string;
4085
+ attribute: string;
4086
+ description: string;
4087
+ source?: string;
4014
4088
  }
4015
4089
  declare const capabilityNames: string[];
4016
4090
  declare const capabilityAttributes: CapabilityAttribute[];
@@ -4024,10 +4098,13 @@ interface SlotConsumer {
4024
4098
  type SlotConsumerKind = 'engine' | 'generator' | 'gatherer' | 'loader' | 'crafter' | 'storage' | 'hauler' | 'warp' | 'battery' | 'ship-t1' | 'container-t1' | 'warehouse-t1' | 'extractor-t1' | 'container-t2';
4025
4099
  declare const SLOT_FORMULAS: Record<SlotConsumerKind, Record<number, SlotConsumer>>;
4026
4100
 
4101
+ declare function sourceLabelForOutput(itemId: number): string;
4027
4102
  declare function deriveStatMappings(): StatMapping[];
4028
4103
  declare function getStatMappings(): StatMapping[];
4029
4104
  declare function getStatMappingsForStat(stat: string): StatMapping[];
4030
4105
  declare function getStatMappingsForCapability(capability: string): StatMapping[];
4106
+ declare function getProducersForAttribute(capability: string, attribute: string): string[];
4107
+ declare function getCapabilityAttributeRows(): CapabilityAttributeRow[];
4031
4108
 
4032
4109
  declare function getAllRecipes(): Recipe[];
4033
4110
  type ResourceDemand = Partial<Record<ResourceCategory, number>>;
@@ -4228,6 +4305,10 @@ declare function wormholeAt(seed: Checksum256Type, x: number, y: number): {
4228
4305
  x: number;
4229
4306
  y: number;
4230
4307
  } | null;
4308
+ declare function nearbyWormholes(seed: Checksum256Type, x: number, y: number, reachTiles: number): {
4309
+ x: number;
4310
+ y: number;
4311
+ }[];
4231
4312
  declare function isValidWormholePair(seed: Checksum256Type, ax: number, ay: number, bx: number, by: number): boolean;
4232
4313
 
4233
4314
  declare function rollupGatherer(lanes: Types.gatherer_lane[]): {
@@ -4694,4 +4775,4 @@ type entity_row = Types.entity_row;
4694
4775
  type location_static = Types.location_static;
4695
4776
  type location_derived = Types.location_derived;
4696
4777
 
4697
- export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BroadEntitySubscriptionFilter, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, CAP_DEMOLISH, CAP_MODULES, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, COORD_MAX, COORD_MIN, COORD_OFFSET, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CancelBlockReason, CancelEffects, CancelEligibilityInput, CancelPlan, CancelRefund, CancelReleasedHold, CapabilityAttribute, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, ClientMessage, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, Coord, CoordinateAddress, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, CrafterStats, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecodedAtomicAsset, DemandRow, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, ENGINE_DRAIN_BASE, ENGINE_DRAIN_REF_THM, ENGINE_DRAIN_REF_THRUST, ENTITY_ALREADY_THERE, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONTAINER, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EffectiveReserveInput, EnergyCapability, EntitiesManager, EntitiesSubscriptionHandle, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityDeletedMessage, EntityInfo$2 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionFilter, EntitySubscriptionHandle, EntitySubscriptionHandlers, EntitySubscriptionMeta, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, ExactEntitySubscriptionFilter, Extractor, Factory, FetchAssetsOptions, FinalizerCapability, FinalizerEntityRef, FloatPosition, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_MASS_DIVISOR, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, GatherPlanEntity, GathererCapability, GathererDepthParams, GathererStats, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BATTERY_T1, ITEM_BEAM, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CERAMIC, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_EXTRACTOR_T1_PACKED, ITEM_FACTORY_T1_PACKED, ITEM_FRAME, ITEM_FRAME_T2, ITEM_GAS_T1, ITEM_GAS_T10, ITEM_GAS_T2, ITEM_GAS_T3, ITEM_GAS_T4, ITEM_GAS_T5, ITEM_GAS_T6, ITEM_GAS_T7, ITEM_GAS_T8, ITEM_GAS_T9, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_LAUNCHER_T1, ITEM_LOADER_T1, ITEM_MASS_CATCHER_T1_PACKED, ITEM_MASS_DRIVER_T1_PACKED, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_NOT_DEPLOYABLE, ITEM_NOT_PACKED_ENTITY, ITEM_ORE_T1, ITEM_ORE_T10, ITEM_ORE_T2, ITEM_ORE_T3, ITEM_ORE_T4, ITEM_ORE_T5, ITEM_ORE_T6, ITEM_ORE_T7, ITEM_ORE_T8, ITEM_ORE_T9, ITEM_PLASMA_CELL, ITEM_PLATE, ITEM_PLATE_T2, ITEM_POLYMER, ITEM_REACTOR, ITEM_REGOLITH_T1, ITEM_REGOLITH_T10, ITEM_REGOLITH_T2, ITEM_REGOLITH_T3, ITEM_REGOLITH_T4, ITEM_REGOLITH_T5, ITEM_REGOLITH_T6, ITEM_REGOLITH_T7, ITEM_REGOLITH_T8, ITEM_REGOLITH_T9, ITEM_RESIN, ITEM_RESONATOR, ITEM_SENSOR, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, ITEM_WARP_T1, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, InstalledModule, InventoryAccessor, Item, ItemType, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCAL_HALF, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LanePlanEntry, LaneView, LaunchNumericInput, LaunchQuote, LaunchQuoteCatcher, LaunchQuoteLauncher, LaunchStatsInput, LoadTimeBreakdown, LoaderCapability, LoaderStats, Location, LocationStratum, LocationType, LocationsManager, MAX_LEGS, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, MODULE_ANY, MODULE_BATTERY, MODULE_CARGO_NOT_FOUND, MODULE_CRAFTER, MODULE_ENGINE, MODULE_ENTITY_BUSY, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_NOT_MODULE, MODULE_SLOT_EMPTY, MODULE_SLOT_INVALID, MODULE_SLOT_OCCUPIED, MODULE_STORAGE, MODULE_TIER_PREFIXES, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Neighbor, Nexus, NftConfigForItem, NftManager, OrderedTask, OwnerSubscriptionHandle, PLANETARY_STRUCTURE_Z, PLANET_SUBTYPE_GAS_GIANT, PLANET_SUBTYPE_ICY, PLANET_SUBTYPE_INDUSTRIAL, PLANET_SUBTYPE_OCEAN, PLANET_SUBTYPE_ROCKY, PLANET_SUBTYPE_TERRESTRIAL, PLAYER_ALREADY_JOINED, PLAYER_NOT_FOUND, PLAYER_NOT_JOINED, PRECISION, PackedModule, PackedModuleInput, PingMessage, PlanRouteParams, PlanTarget, PlanetSubtypeInfo, platform as PlatformContract, Types$1 as PlatformTypes, Player, PlayerRosterEntry, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectionOptions, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REGION_DIV, REGION_PER_AXIS, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, RESOURCE_TIER_ADJECTIVES, RESOURCE_TIER_MULT_TENTHS, RawData, ReachStats, Recipe, RecipeConsumer, RecipeInput, RecipeSlotInput, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedCrafterLane, ResolvedEvent, ResolvedGathererLane, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedLoaderLane, ResolvedModuleSlot, ResourceCategory, ResourceDemand, ResourceStats, RouteFailure, RouteFailureReason, RoutePlan, RouteResult, SECTORS_PER_AXIS, SECTOR_DIV, SHIPLOAD_COLLECTION, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_NOT_ARRIVED, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, SLOT_FORMULAS, STAR_STEP, ScanProvider, ScheduleAccessor, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StatDefinition, StatFlow, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, SystemGraph, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskType, TemplateMeta, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UpdateBoundsMessage, UpdateMessage, ValidateDisplayNameOptions, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, WH, WOULD_OVERFILL, WOULD_STRAND, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, WrapDeposit, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, addressFromCoordinates, allBuildableItems, allPlotBuildableItems, applyResourceTierMultiplier, availableBuildMethods, availableCapacity$1 as availableCapacity, availableCapacityFromMass, availableForItem, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildComponentImmutable, buildEntityDescription, buildEntityImmutable, buildImmutableData, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcStacksMass, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_gather_rate, calc_loader_acceleration, calc_loader_flighttime, calc_onesided_duration, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calc_transit_duration, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canMove, cancelEligibility, candidateLaneCompletesAt, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLauncher, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItem, cargoItemToStack, cargoReadyAt, cargoRef, cargoUtils, cargo_item, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, composeIdleResolve, computeBaseCapacity, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeBatteryCapabilities, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityCapabilities, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeGroupPerLegReach, computeHaulPenalty, computeHaulerCapabilities, computeHaulerCapacity, computeHaulerDrain$1 as computeHaulerDrain, computeHaulerEfficiency, computeInputMass, computeLauncherCapabilities, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeNftImageUrl, computePerLegReach, computeShipHullCapabilities, computeStorageCapabilities, computeTravelDrain, computeWarehouseHullCapabilities, computeWarpCapabilities, computeWarpRange, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeAddress, decodeAtomicAsset, decodeCraftedItemStats, decodeRegion, decodeSector, decodeStat, decodeStats, Shipload as default, deriveLocation, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStatMappings, deriveStrata, deriveStratum, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeAtomicData, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, easeFlightProgress, encodeAddress, encodeAddressMemo, encodeGatheredCargoStats, encodeRegion, encodeSector, encodeStats, energyAtTime, energyPercent, energy_stats, entityDisplayName, entity_row, estimateDealTravelTime, estimateTravelTime, feistel, feistelInv, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findNearbyPlanets, flightSpeedFactor, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatTier, gathererDepthForTier, getAllRecipes, getCapabilityAttributes, getCategoryInfo, getComponentDemand, getComponents, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEffectiveReserve, getEligibleResources, getEntityClass, getEntityItems, getEntityLayout, getEpochInfo, getFlightOrigin, getInterpolatedPosition, getItem, getItems, getKindMeta, getLocationCandidates, getLocationKind, getLocationProfile, getLocationType, getLocationTypeName, getModuleCapabilityType, getModules, getPackedEntityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getRecipe, getRecipeConsumers, getResourceDemand, getResourceTier, getResourceWeight, getResources, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, getTemplateMeta, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, interpolateFlightPosition, isBuildable, isContainer, isCraftedItem, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isShip, isSubscriptionsDebugEnabled, isValidWormholePair, isWarehouse, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, kindCan, lane, laneKeyForModule, lerp, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, normalizeDisplayName, parseWireEntity, partnerRegion, planParallelGather, planParallelTransfer, planRoute, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, rawScheduleEnd, readCommonBase, regionOf, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveLaneCrafter, resolveLaneGatherer, resolveLaneLoader, resolveLockedAmount, resolveStats, rollTier, rollWithinTier, rollupCrafter, rollupGatherer, rollupLoaders, rotation, schedule, sdkSystemGraph, selectGatherLane, setScanProvider, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, subtractFromStacks, task, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateDisplayName, validateSchedule, workerLaneKey, wormholeAt, wormholeAtRegionEndpoint, yieldThresholdAt };
4778
+ export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BroadEntitySubscriptionFilter, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, CAP_DEMOLISH, CAP_MODULES, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, COORD_MAX, COORD_MIN, COORD_OFFSET, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CancelBlockReason, CancelEffects, CancelEligibilityInput, CancelPlan, CancelRefund, CancelReleasedHold, CapabilityAttribute, CapabilityAttributeRow, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, ClientMessage, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, Coord, CoordinateAddress, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, CrafterStats, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecodedAtomicAsset, DemandRow, DerivedLoaders, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, ENGINE_DRAIN_BASE, ENGINE_DRAIN_REF_THM, ENGINE_DRAIN_REF_THRUST, ENTITY_ALREADY_THERE, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONTAINER, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EffectiveReserveInput, EnergyCapability, EntitiesManager, EntitiesSubscriptionHandle, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityDeletedMessage, EntityInfo$2 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionFilter, EntitySubscriptionHandle, EntitySubscriptionHandlers, EntitySubscriptionMeta, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, ExactEntitySubscriptionFilter, Extractor, Factory, FetchAssetsOptions, FinalizerCapability, FinalizerEntityRef, FloatPosition, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_MASS_DIVISOR, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, GatherPlanEntity, GathererCapability, GathererDepthParams, GathererStats, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BATTERY_T1, ITEM_BEAM, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CERAMIC, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_EXTRACTOR_T1_PACKED, ITEM_FACTORY_T1_PACKED, ITEM_FRAME, ITEM_FRAME_T2, ITEM_GAS_T1, ITEM_GAS_T10, ITEM_GAS_T2, ITEM_GAS_T3, ITEM_GAS_T4, ITEM_GAS_T5, ITEM_GAS_T6, ITEM_GAS_T7, ITEM_GAS_T8, ITEM_GAS_T9, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_LAUNCHER_T1, ITEM_LOADER_T1, ITEM_MASS_CATCHER_T1_PACKED, ITEM_MASS_DRIVER_T1_PACKED, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_NOT_DEPLOYABLE, ITEM_NOT_PACKED_ENTITY, ITEM_ORE_T1, ITEM_ORE_T10, ITEM_ORE_T2, ITEM_ORE_T3, ITEM_ORE_T4, ITEM_ORE_T5, ITEM_ORE_T6, ITEM_ORE_T7, ITEM_ORE_T8, ITEM_ORE_T9, ITEM_PLASMA_CELL, ITEM_PLATE, ITEM_PLATE_T2, ITEM_POLYMER, ITEM_REACTOR, ITEM_REGOLITH_T1, ITEM_REGOLITH_T10, ITEM_REGOLITH_T2, ITEM_REGOLITH_T3, ITEM_REGOLITH_T4, ITEM_REGOLITH_T5, ITEM_REGOLITH_T6, ITEM_REGOLITH_T7, ITEM_REGOLITH_T8, ITEM_REGOLITH_T9, ITEM_RESIN, ITEM_RESONATOR, ITEM_SENSOR, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, ITEM_WARP_T1, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, InstalledModule, InventoryAccessor, Item, ItemType, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCAL_HALF, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LanePlanEntry, LaneView, LaunchNumericInput, LaunchQuote, LaunchQuoteCatcher, LaunchQuoteLauncher, LaunchStatsInput, LoadTimeBreakdown, LoaderCapability, LoaderStats, Location, LocationStratum, LocationType, LocationsManager, MAX_LEGS, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, MODULE_ANY, MODULE_BATTERY, MODULE_CARGO_NOT_FOUND, MODULE_CRAFTER, MODULE_ENGINE, MODULE_ENTITY_BUSY, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_NOT_MODULE, MODULE_SLOT_EMPTY, MODULE_SLOT_INVALID, MODULE_SLOT_OCCUPIED, MODULE_STORAGE, MODULE_TIER_PREFIXES, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Neighbor, Nexus, NftConfigForItem, NftManager, OrderedTask, OwnerSubscriptionHandle, PLANETARY_STRUCTURE_Z, PLANET_SUBTYPE_GAS_GIANT, PLANET_SUBTYPE_ICY, PLANET_SUBTYPE_INDUSTRIAL, PLANET_SUBTYPE_OCEAN, PLANET_SUBTYPE_ROCKY, PLANET_SUBTYPE_TERRESTRIAL, PLAYER_ALREADY_JOINED, PLAYER_NOT_FOUND, PLAYER_NOT_JOINED, PRECISION, PackedModule, PackedModuleInput, PingMessage, PlanRouteParams, PlanTarget, PlanetSubtypeInfo, platform as PlatformContract, Types$1 as PlatformTypes, Player, PlayerRosterEntry, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectionOptions, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REGION_DIV, REGION_PER_AXIS, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, RESOURCE_TIER_ADJECTIVES, RESOURCE_TIER_MULT_TENTHS, RawData, ReachStats, Recipe, RecipeConsumer, RecipeInput, RecipeSlotInput, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedCrafterLane, ResolvedEvent, ResolvedGathererLane, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedLoaderLane, ResolvedModuleSlot, ResourceCategory, ResourceDemand, ResourceStats, RouteFailure, RouteFailureReason, RoutePlan, RouteResult, SECTORS_PER_AXIS, SECTOR_DIV, SHIPLOAD_COLLECTION, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_NOT_ARRIVED, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, SLOT_FORMULAS, STAR_STEP, ScanProvider, ScheduleAccessor, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StatDefinition, StatFlow, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, SystemGraph, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskType, TemplateMeta, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UnwrapDestination, UnwrapItem, UpdateBoundsMessage, UpdateMessage, ValidateDisplayNameOptions, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, WH, WOULD_OVERFILL, WOULD_STRAND, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, WrapDeposit, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, addressFromCoordinates, allBuildableItems, allPlotBuildableItems, applyResourceTierMultiplier, availableBuildMethods, availableCapacity$1 as availableCapacity, availableCapacityFromMass, availableForItem, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildComponentImmutable, buildEntityDescription, buildEntityImmutable, buildImmutableData, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcStacksMass, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_gather_rate, calc_loader_acceleration, calc_loader_flighttime, calc_onesided_duration, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calc_transit_duration, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canMove, cancelEligibility, candidateLaneCompletesAt, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLauncher, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItem, cargoItemToStack, cargoReadyAt, cargoRef, cargoUtils, cargo_item, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, composeIdleResolve, computeBaseCapacity, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeBatteryCapabilities, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityCapabilities, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeGroupPerLegReach, computeHaulPenalty, computeHaulerCapabilities, computeHaulerCapacity, computeHaulerDrain$1 as computeHaulerDrain, computeHaulerEfficiency, computeInputMass, computeLauncherCapabilities, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeNftImageUrl, computePerLegReach, computeShipHullCapabilities, computeStorageCapabilities, computeTravelDrain, computeWarehouseHullCapabilities, computeWarpCapabilities, computeWarpRange, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeAddress, decodeAtomicAsset, decodeCraftedItemStats, decodeRegion, decodeSector, decodeStat, decodeStats, Shipload as default, deriveLocation, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStatMappings, deriveStrata, deriveStratum, derivedLoaders, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeAtomicData, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, easeFlightProgress, encodeAddress, encodeAddressMemo, encodeGatheredCargoStats, encodeRegion, encodeSector, encodeStats, energyAtTime, energyPercent, energy_stats, entityDisplayName, entity_row, estimateDealTravelTime, estimateTravelTime, estimateUnwrapDuration, feistel, feistelInv, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findNearbyPlanets, flightSpeedFactor, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatTier, gathererDepthForTier, getAllRecipes, getCapabilityAttributeRows, getCapabilityAttributes, getCategoryInfo, getComponentDemand, getComponents, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEffectiveReserve, getEligibleResources, getEntityClass, getEntityItems, getEntityLayout, getEpochInfo, getFlightOrigin, getInterpolatedPosition, getItem, getItems, getKindMeta, getLocationCandidates, getLocationKind, getLocationProfile, getLocationType, getLocationTypeName, getModuleCapabilityType, getModules, getPackedEntityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getProducersForAttribute, getRecipe, getRecipeConsumers, getResourceDemand, getResourceTier, getResourceWeight, getResources, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, getTemplateMeta, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, incomingHoldMass, interpolateFlightPosition, isBuildable, isContainer, isCraftedItem, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isShip, isSubscriptionsDebugEnabled, isValidWormholePair, isWarehouse, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, kindCan, lane, laneKeyForModule, lerp, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, nearbyWormholes, needsRecharge, normalizeDisplayName, parseWireEntity, partnerRegion, planParallelGather, planParallelTransfer, planRoute, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, projectedPeakCargomass, rawScheduleEnd, readCommonBase, receiveFits, regionOf, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveLaneCrafter, resolveLaneGatherer, resolveLaneLoader, resolveLockedAmount, resolveStats, rollTier, rollWithinTier, rollupCrafter, rollupGatherer, rollupLoaders, rotation, schedule, sdkSystemGraph, selectGatherLane, setScanProvider, setSubscriptionsDebug, sourceLabelForOutput, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, subtractFromStacks, task, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, unwrapLoadDuration, unwrapTransitDuration, validateDisplayName, validateSchedule, workerLaneKey, wormholeAt, wormholeAtRegionEndpoint, yieldThresholdAt };
package/lib/shipload.js CHANGED
@@ -4206,149 +4206,6 @@ var recipes = [
4206
4206
  ],
4207
4207
  blendWeights: [
4208
4208
  ]
4209
- },
4210
- {
4211
- outputItemId: 20001,
4212
- outputMass: 500,
4213
- inputs: [
4214
- {
4215
- itemId: 10001,
4216
- quantity: 200
4217
- },
4218
- {
4219
- itemId: 102,
4220
- quantity: 15
4221
- }
4222
- ],
4223
- statSlots: [
4224
- {
4225
- sources: [
4226
- {
4227
- inputIndex: 0,
4228
- statIndex: 0
4229
- },
4230
- {
4231
- inputIndex: 1,
4232
- statIndex: 0
4233
- }
4234
- ]
4235
- },
4236
- {
4237
- sources: [
4238
- {
4239
- inputIndex: 0,
4240
- statIndex: 1
4241
- },
4242
- {
4243
- inputIndex: 1,
4244
- statIndex: 2
4245
- }
4246
- ]
4247
- }
4248
- ],
4249
- blendWeights: [
4250
- 1,
4251
- 1
4252
- ]
4253
- },
4254
- {
4255
- outputItemId: 20002,
4256
- outputMass: 300,
4257
- inputs: [
4258
- {
4259
- itemId: 10002,
4260
- quantity: 200
4261
- },
4262
- {
4263
- itemId: 402,
4264
- quantity: 10
4265
- },
4266
- {
4267
- itemId: 502,
4268
- quantity: 20
4269
- }
4270
- ],
4271
- statSlots: [
4272
- {
4273
- sources: [
4274
- {
4275
- inputIndex: 0,
4276
- statIndex: 0
4277
- },
4278
- {
4279
- inputIndex: 1,
4280
- statIndex: 1
4281
- }
4282
- ]
4283
- },
4284
- {
4285
- sources: [
4286
- {
4287
- inputIndex: 0,
4288
- statIndex: 1
4289
- },
4290
- {
4291
- inputIndex: 2,
4292
- statIndex: 2
4293
- }
4294
- ]
4295
- }
4296
- ],
4297
- blendWeights: [
4298
- 1,
4299
- 1,
4300
- 1
4301
- ]
4302
- },
4303
- {
4304
- outputItemId: 20200,
4305
- outputMass: 80000,
4306
- inputs: [
4307
- {
4308
- itemId: 20001,
4309
- quantity: 600
4310
- },
4311
- {
4312
- itemId: 20002,
4313
- quantity: 200
4314
- }
4315
- ],
4316
- statSlots: [
4317
- {
4318
- sources: [
4319
- {
4320
- inputIndex: 0,
4321
- statIndex: 0
4322
- }
4323
- ]
4324
- },
4325
- {
4326
- sources: [
4327
- {
4328
- inputIndex: 0,
4329
- statIndex: 1
4330
- }
4331
- ]
4332
- },
4333
- {
4334
- sources: [
4335
- {
4336
- inputIndex: 1,
4337
- statIndex: 0
4338
- }
4339
- ]
4340
- },
4341
- {
4342
- sources: [
4343
- {
4344
- inputIndex: 1,
4345
- statIndex: 1
4346
- }
4347
- ]
4348
- }
4349
- ],
4350
- blendWeights: [
4351
- ]
4352
4209
  }
4353
4210
  ];
4354
4211
 
@@ -12612,6 +12469,19 @@ class ActionsManager extends BaseManager {
12612
12469
  },
12613
12470
  }, ATOMICASSETS_ABI);
12614
12471
  }
12472
+ sendAsset(owner, recipient, assetId, memo = '') {
12473
+ return antelope.Action.from({
12474
+ account: this.atomicAssetsAccount,
12475
+ name: 'transfer',
12476
+ authorization: [{ actor: antelope.Name.from(owner), permission: 'active' }],
12477
+ data: {
12478
+ from: antelope.Name.from(owner),
12479
+ to: antelope.Name.from(recipient),
12480
+ asset_ids: [antelope.UInt64.from(assetId)],
12481
+ memo,
12482
+ },
12483
+ }, ATOMICASSETS_ABI);
12484
+ }
12615
12485
  unwrapCargoTx(owner, assetId, hostId) {
12616
12486
  return [this.transferForUnwrap(owner, assetId), this.placecargo(owner, hostId, assetId)];
12617
12487
  }
@@ -15709,6 +15579,117 @@ function cancelEligibility(entity, laneKey, fromTaskIndex, input) {
15709
15579
  return { ok: true, range, effects };
15710
15580
  }
15711
15581
 
15582
+ const NFT_TRANSIT_THRUST = 400;
15583
+ function derivedLoaders(lanes) {
15584
+ if (!lanes || lanes.length === 0)
15585
+ return null;
15586
+ let totalMass = 0;
15587
+ let totalThrust = 0;
15588
+ for (const l of lanes) {
15589
+ totalMass += Number(l.mass);
15590
+ totalThrust += Number(l.thrust);
15591
+ }
15592
+ const count = lanes.length;
15593
+ return {
15594
+ mass: Math.floor(totalMass / count),
15595
+ thrust: Math.min(totalThrust, 65535),
15596
+ quantity: count,
15597
+ };
15598
+ }
15599
+ function acceleration(thrust, mass) {
15600
+ if (mass <= 0)
15601
+ return 0;
15602
+ return (thrust / mass) * PRECISION$1;
15603
+ }
15604
+ function flightTime(distance, accel) {
15605
+ if (accel <= 0 || distance <= 0)
15606
+ return 0;
15607
+ return Math.floor(2 * Math.sqrt(distance / accel));
15608
+ }
15609
+ function distance2d(ax, ay, bx, by) {
15610
+ const dx = ax - bx;
15611
+ const dy = ay - by;
15612
+ return Math.floor(Math.sqrt(dx * dx + dy * dy) * PRECISION$1);
15613
+ }
15614
+ function unwrapTransitDuration(itemMass, origin, dest) {
15615
+ if (itemMass <= 0)
15616
+ return 0;
15617
+ return flightTime(distance2d(origin.x, origin.y, dest.x, dest.y), acceleration(NFT_TRANSIT_THRUST, itemMass));
15618
+ }
15619
+ function unwrapLoadDuration(loaders, itemMass, destZ) {
15620
+ if (!loaders || itemMass <= 0)
15621
+ return 0;
15622
+ const total = itemMass + loaders.mass;
15623
+ const flight = flightTime(destZ, acceleration(loaders.thrust, total));
15624
+ return Math.floor(flight / loaders.quantity);
15625
+ }
15626
+ function estimateUnwrapDuration(dest, item) {
15627
+ const itemMass = Number(calcCargoItemMass({
15628
+ item_id: item.itemId,
15629
+ quantity: item.quantity,
15630
+ modules: item.modules,
15631
+ }));
15632
+ const loaders = derivedLoaders(dest.loader_lanes);
15633
+ const dz = Number(dest.coordinates.z ?? 0);
15634
+ const load = unwrapLoadDuration(loaders, itemMass, dz);
15635
+ const transit = unwrapTransitDuration(itemMass, { x: item.originX, y: item.originY }, {
15636
+ x: Number(dest.coordinates.x),
15637
+ y: Number(dest.coordinates.y),
15638
+ });
15639
+ return load + transit;
15640
+ }
15641
+ const INCOMING_HOLD_KINDS = new Set([2, 3, 5]);
15642
+ function incomingHoldMass(holds) {
15643
+ if (!holds)
15644
+ return 0;
15645
+ let total = 0;
15646
+ for (const h of holds) {
15647
+ if (INCOMING_HOLD_KINDS.has(Number(h.kind)))
15648
+ total += Number(h.incoming_mass);
15649
+ }
15650
+ return total;
15651
+ }
15652
+ function cargoListMass(items) {
15653
+ let m = 0;
15654
+ for (const it of items)
15655
+ m += Number(calcCargoItemMass(it));
15656
+ return m;
15657
+ }
15658
+ function projectedPeakCargomass(entity, at, addMass, removeMass = 0) {
15659
+ const events = [];
15660
+ for (const ordered of orderedTasks(entity)) {
15661
+ const eff = taskCargoEffect(ordered.task);
15662
+ const delta = cargoListMass(eff.added) - cargoListMass(eff.removed);
15663
+ events.push({ t: ordered.completesAt.getTime(), delta });
15664
+ }
15665
+ events.push({ t: at.getTime(), delta: addMass - removeMass });
15666
+ events.sort((a, b) => (a.t !== b.t ? a.t - b.t : b.delta - a.delta));
15667
+ let running = Number(entity.cargomass);
15668
+ let peak = running;
15669
+ for (const e of events) {
15670
+ running += e.delta;
15671
+ if (running < 0)
15672
+ running = 0;
15673
+ if (running > peak)
15674
+ peak = running;
15675
+ }
15676
+ return Math.min(peak, 4294967295);
15677
+ }
15678
+ function receiveFits(dest, item, now) {
15679
+ const capacity = Number(dest.capacity ?? 0);
15680
+ if (capacity <= 0)
15681
+ return false;
15682
+ const itemMass = Number(calcCargoItemMass({
15683
+ item_id: item.itemId,
15684
+ quantity: item.quantity,
15685
+ modules: item.modules,
15686
+ }));
15687
+ const duration = estimateUnwrapDuration(dest, item);
15688
+ const candidateCompletes = candidateLaneCompletesAt(dest, LANE_MOBILITY, duration, now);
15689
+ const peak = projectedPeakCargomass(dest, candidateCompletes, itemMass + incomingHoldMass(dest.holds));
15690
+ return peak <= capacity;
15691
+ }
15692
+
15712
15693
  function maxCraftable(entity, recipe, crafterSpeed, now) {
15713
15694
  if (recipe.inputs.length === 0)
15714
15695
  return 0;
@@ -16152,6 +16133,10 @@ function traceToRawCategoryStat(recipe, source, visited = new Set()) {
16152
16133
  nextVisited.add(input.itemId);
16153
16134
  return traceToRawCategoryStat(subRecipe, subSource, nextVisited);
16154
16135
  }
16136
+ function sourceLabelForOutput(itemId) {
16137
+ const item = getItem(itemId);
16138
+ return item.type === 'entity' ? 'Hull' : item.name;
16139
+ }
16155
16140
  let cached;
16156
16141
  function deriveStatMappings() {
16157
16142
  if (cached)
@@ -16163,16 +16148,17 @@ function deriveStatMappings() {
16163
16148
  const recipe = getRecipe(itemId);
16164
16149
  if (!recipe)
16165
16150
  continue;
16151
+ const source = sourceLabelForOutput(itemId);
16166
16152
  for (const [slotIdxStr, consumer] of Object.entries(slots)) {
16167
16153
  const slotIdx = Number(slotIdxStr);
16168
16154
  const slot = recipe.statSlots[slotIdx];
16169
16155
  if (!slot)
16170
16156
  continue;
16171
- for (const source of slot.sources) {
16172
- const stat = traceToRawCategoryStat(recipe, source);
16157
+ for (const src of slot.sources) {
16158
+ const stat = traceToRawCategoryStat(recipe, src);
16173
16159
  if (!stat)
16174
16160
  continue;
16175
- const key = `${stat.label}|${consumer.capability}|${consumer.attribute}`;
16161
+ const key = `${stat.label}|${consumer.capability}|${consumer.attribute}|${source}`;
16176
16162
  if (seen.has(key))
16177
16163
  continue;
16178
16164
  seen.add(key);
@@ -16180,6 +16166,7 @@ function deriveStatMappings() {
16180
16166
  stat: stat.label,
16181
16167
  capability: consumer.capability,
16182
16168
  attribute: consumer.attribute,
16169
+ source,
16183
16170
  });
16184
16171
  }
16185
16172
  }
@@ -16196,6 +16183,42 @@ function getStatMappingsForStat(stat) {
16196
16183
  function getStatMappingsForCapability(capability) {
16197
16184
  return deriveStatMappings().filter((m) => m.capability === capability);
16198
16185
  }
16186
+ function getProducersForAttribute(capability, attribute) {
16187
+ const seen = new Set();
16188
+ const out = [];
16189
+ for (const m of deriveStatMappings()) {
16190
+ if (m.capability !== capability || m.attribute !== attribute)
16191
+ continue;
16192
+ if (seen.has(m.source))
16193
+ continue;
16194
+ seen.add(m.source);
16195
+ out.push(m.source);
16196
+ }
16197
+ return out;
16198
+ }
16199
+ function getCapabilityAttributeRows() {
16200
+ const rows = [];
16201
+ for (const ca of capabilityAttributes) {
16202
+ const producers = getProducersForAttribute(ca.capability, ca.attribute);
16203
+ if (producers.length === 0) {
16204
+ rows.push({
16205
+ capability: ca.capability,
16206
+ attribute: ca.attribute,
16207
+ description: ca.description,
16208
+ });
16209
+ continue;
16210
+ }
16211
+ for (const source of producers) {
16212
+ rows.push({
16213
+ capability: ca.capability,
16214
+ attribute: ca.attribute,
16215
+ description: ca.description,
16216
+ source,
16217
+ });
16218
+ }
16219
+ }
16220
+ return rows;
16221
+ }
16199
16222
 
16200
16223
  function getAllRecipes() {
16201
16224
  return recipes;
@@ -17620,6 +17643,7 @@ exports.deriveResourceStats = deriveResourceStats;
17620
17643
  exports.deriveStatMappings = deriveStatMappings;
17621
17644
  exports.deriveStrata = deriveStrata;
17622
17645
  exports.deriveStratum = deriveStratum;
17646
+ exports.derivedLoaders = derivedLoaders;
17623
17647
  exports.describeItem = describeItem;
17624
17648
  exports.describeModule = describeModule;
17625
17649
  exports.describeModuleForItem = describeModuleForItem;
@@ -17645,6 +17669,7 @@ exports.energyPercent = energyPercent;
17645
17669
  exports.entityDisplayName = entityDisplayName;
17646
17670
  exports.estimateDealTravelTime = estimateDealTravelTime;
17647
17671
  exports.estimateTravelTime = estimateTravelTime;
17672
+ exports.estimateUnwrapDuration = estimateUnwrapDuration;
17648
17673
  exports.feistel = feistel;
17649
17674
  exports.feistelInv = feistelInv;
17650
17675
  exports.fetchAtomicAssetsForOwner = fetchAtomicAssetsForOwner;
@@ -17660,6 +17685,7 @@ exports.formatModuleLine = formatModuleLine;
17660
17685
  exports.formatTier = formatTier;
17661
17686
  exports.gathererDepthForTier = gathererDepthForTier;
17662
17687
  exports.getAllRecipes = getAllRecipes;
17688
+ exports.getCapabilityAttributeRows = getCapabilityAttributeRows;
17663
17689
  exports.getCapabilityAttributes = getCapabilityAttributes;
17664
17690
  exports.getCategoryInfo = getCategoryInfo;
17665
17691
  exports.getComponentDemand = getComponentDemand;
@@ -17689,6 +17715,7 @@ exports.getPackedEntityType = getPackedEntityType;
17689
17715
  exports.getPlanetSubtype = getPlanetSubtype;
17690
17716
  exports.getPlanetSubtypes = getPlanetSubtypes;
17691
17717
  exports.getPositionAt = getPositionAt;
17718
+ exports.getProducersForAttribute = getProducersForAttribute;
17692
17719
  exports.getRecipe = getRecipe;
17693
17720
  exports.getRecipeConsumers = getRecipeConsumers;
17694
17721
  exports.getResourceDemand = getResourceDemand;
@@ -17714,6 +17741,7 @@ exports.hasStorage = hasStorage;
17714
17741
  exports.hasSystem = hasSystem;
17715
17742
  exports.hash = hash;
17716
17743
  exports.hash512 = hash512;
17744
+ exports.incomingHoldMass = incomingHoldMass;
17717
17745
  exports.interpolateFlightPosition = interpolateFlightPosition;
17718
17746
  exports.isBuildable = isBuildable;
17719
17747
  exports.isContainer = isContainer;
@@ -17752,6 +17780,7 @@ exports.moduleAccepts = moduleAccepts;
17752
17780
  exports.moduleDisplayName = moduleDisplayName;
17753
17781
  exports.moduleIcon = moduleIcon;
17754
17782
  exports.moduleSlotTypeToCode = moduleSlotTypeToCode;
17783
+ exports.nearbyWormholes = nearbyWormholes;
17755
17784
  exports.needsRecharge = needsRecharge;
17756
17785
  exports.normalizeDisplayName = normalizeDisplayName;
17757
17786
  exports.parseWireEntity = parseWireEntity;
@@ -17763,8 +17792,10 @@ exports.projectEntity = projectEntity;
17763
17792
  exports.projectEntityAt = projectEntityAt;
17764
17793
  exports.projectRemainingAt = projectRemainingAt;
17765
17794
  exports.projectedCargoAvailableAt = projectedCargoAvailableAt;
17795
+ exports.projectedPeakCargomass = projectedPeakCargomass;
17766
17796
  exports.rawScheduleEnd = rawScheduleEnd;
17767
17797
  exports.readCommonBase = readCommonBase;
17798
+ exports.receiveFits = receiveFits;
17768
17799
  exports.regionOf = regionOf;
17769
17800
  exports.removeFromStacks = removeFromStacks;
17770
17801
  exports.renderDescription = renderDescription;
@@ -17786,6 +17817,7 @@ exports.sdkSystemGraph = sdkSystemGraph;
17786
17817
  exports.selectGatherLane = selectGatherLane;
17787
17818
  exports.setScanProvider = setScanProvider;
17788
17819
  exports.setSubscriptionsDebug = setSubscriptionsDebug;
17820
+ exports.sourceLabelForOutput = sourceLabelForOutput;
17789
17821
  exports.stackKey = stackKey;
17790
17822
  exports.stackToCargoItem = stackToCargoItem;
17791
17823
  exports.stacksEqual = stacksEqual;
@@ -17800,6 +17832,8 @@ exports.tierColors = tierColors;
17800
17832
  exports.tierOfReserve = tierOfReserve;
17801
17833
  exports.toLocation = toLocation;
17802
17834
  exports.typeLabel = typeLabel;
17835
+ exports.unwrapLoadDuration = unwrapLoadDuration;
17836
+ exports.unwrapTransitDuration = unwrapTransitDuration;
17803
17837
  exports.validateDisplayName = validateDisplayName;
17804
17838
  exports.validateSchedule = validateSchedule;
17805
17839
  exports.workerLaneKey = workerLaneKey;