eve-fit-engine 0.1.0
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/LICENSE +674 -0
- package/NOTICE +31 -0
- package/README.md +95 -0
- package/data/.build +1 -0
- package/data/SDE-LICENSE.md +17 -0
- package/data/manifest.json +1 -0
- package/data/v3e885b627373/attributes.json +1 -0
- package/data/v3e885b627373/categories.json +1 -0
- package/data/v3e885b627373/clone-grades.json +1 -0
- package/data/v3e885b627373/dbuff-collections.json +1 -0
- package/data/v3e885b627373/dynamic-attributes.json +1 -0
- package/data/v3e885b627373/effects.json +1 -0
- package/data/v3e885b627373/groups.json +1 -0
- package/data/v3e885b627373/market-groups.json +1 -0
- package/data/v3e885b627373/meta-groups.json +1 -0
- package/data/v3e885b627373/types/charges.json +1 -0
- package/data/v3e885b627373/types/drones.json +1 -0
- package/data/v3e885b627373/types/fighters.json +1 -0
- package/data/v3e885b627373/types/implants.json +1 -0
- package/data/v3e885b627373/types/modules.json +1 -0
- package/data/v3e885b627373/types/mutaplasmids.json +1 -0
- package/data/v3e885b627373/types/ships.json +1 -0
- package/data/v3e885b627373/types/skills.json +1 -0
- package/data/v3e885b627373/types/structure-modules.json +1 -0
- package/data/v3e885b627373/types/structures.json +1 -0
- package/data/v3e885b627373/types/subsystems.json +1 -0
- package/data/v3e885b627373/types/system-effects.json +1 -0
- package/data/v3e885b627373/units.json +1 -0
- package/dist/index.cjs +5911 -0
- package/dist/index.d.cts +2196 -0
- package/dist/index.d.ts +2196 -0
- package/dist/index.js +5839 -0
- package/dist/node.cjs +6046 -0
- package/dist/node.d.cts +34 -0
- package/dist/node.d.ts +34 -0
- package/dist/node.js +5948 -0
- package/package.json +73 -0
package/dist/node.d.cts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Fit, ComputedFit, FittingDataset, SkillProfile, ComputeFitOptions } from './index.cjs';
|
|
2
|
+
export { ACTIVATION_EFFECT_ID, ATTR, BundleManifest, CATEGORY, CapacitorReport, ComputedAttribute, DAMAGE_PROFILE_PRESETS, DamageProfile, DefenseLayerKind, DerivedStats, DroneComputed, EftParseResult, EwarKind, FighterComputed, FitBooster, FitCargo, FitContext, FitDrone, FitFighter, FitImplant, FitModule, FitSubsystem, FitVisibility, FitWarning, ItemKind, ItemState, LEGACY_EFFECT_IDS, LEGACY_HANDLED_EFFECT_IDS, LayerEhp, LegacyEffectEntry, MarketGroupPlacement, ModifiedAttribute, ModifierAffliction, ModifierOperation, ModuleAttrSnapshot, ModuleComputed, ModuleState, MutatorData, OPERATION_BY_SDE_CODE, OUT_OF_SCOPE_EFFECT_IDS, OffenseReport, ProjectedEffectReport, ProjectedSource, REPAIR_EFFECT_AMOUNT_ATTR, REQUIRED_SKILL_PAIRS, SLOT_EFFECT_ID, SLOT_EFFECT_TO_SLOT_TYPE, STACKING_PENALTY_K, SdeAttribute, SdeCategory, SdeCloneGrade, SdeDbuffCollection, SdeDynamicAttribute, SdeEffect, SdeGroup, SdeMarketGroup, SdeMetaGroup, SdeModifierInfo, SdeType, SdeUnit, SkillCheckResult, SkillRequirement, SlotType, StructureMeta, StructureServiceModule, TARGET_PROFILE_PRESETS, TankRates, TargetProfile, TypeBucket, WEAPON_EFFECT_KIND, WeaponContribution, WeaponEffectKind, WeaponKind, applyOneModifier, applySkills, applySourceItem, buildNameIndex, canFitModuleOnShip, chargeGroupsForModule, checkSkills, classifyEwar, classifyWeapon, combineJamChances, combineMultiplicative, combinePenalized, combineUnstacked, computeCapacitor, computeFit, computeLayerEhp, computeOffense, computeStructureMeta, computeT3CVariantCode, computeTank, computeTotalEhp, defaultStateForModule, disintegratorCyclesToFullSpool, disintegratorSpoolBonus, ecmJamChance, effectiveDps, ehpUnderProfile, formatDna, formatEft, formatMultibuy, formatTypeIds, freeFitGroupSlotsFor, freeHardpointsFor, isActivatableModule, isMissileLauncher, isSmartBomb, isTurretWeapon, marketGroupPlacement, maxGroupFittedFor, maxTypeFittedFor, moduleAcceptsAnyCharge, moduleAcceptsCharge, moduleAcceptsChargeType, parseEft, peakRecharge, readCycleInfo, readDamageComponents, readRangeInfo, rechargeRateAt, shipGroupRestrictions, shipTypeRestrictions, typeFitsSlotType, verifyLegacyEffectIds } from './index.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Absolute path to the bundled SDE directory shipped in this package
|
|
6
|
+
* (`<pkg>/data`, layout: manifest.json + v<hash>/...). Exported so a consumer
|
|
7
|
+
* can serve these files directly (e.g. an HTTP static route for a browser UI)
|
|
8
|
+
* and treat the package as the single source of fitting data.
|
|
9
|
+
*/
|
|
10
|
+
declare const BUNDLED_DATA_DIR: string;
|
|
11
|
+
/**
|
|
12
|
+
* Load the SDE bundle shipped inside this package into a `FittingDataset`.
|
|
13
|
+
* Cached per directory. Pass `dataDir` to point at a different bundle (same
|
|
14
|
+
* manifest + v<hash>/ layout produced by the capsuleers.app bundle builder).
|
|
15
|
+
*/
|
|
16
|
+
declare function loadBundledDataset(dataDir?: string): Promise<FittingDataset>;
|
|
17
|
+
/** All-V skill profile built from the dataset's skills bucket (Pyfa headline). */
|
|
18
|
+
declare function buildAllVSkillProfile(dataset: FittingDataset): SkillProfile;
|
|
19
|
+
interface ComputeFromEftResult {
|
|
20
|
+
fit: Fit;
|
|
21
|
+
warnings: Array<{
|
|
22
|
+
line: number;
|
|
23
|
+
text: string;
|
|
24
|
+
reason: string;
|
|
25
|
+
}>;
|
|
26
|
+
computed: ComputedFit;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* One-call: EFT text -> full computed stats, using the bundled SDE.
|
|
30
|
+
* Defaults to All-V skills (override via `options.skillProfile`).
|
|
31
|
+
*/
|
|
32
|
+
declare function computeFromEft(eft: string, options?: Partial<ComputeFitOptions>): Promise<ComputeFromEftResult>;
|
|
33
|
+
|
|
34
|
+
export { BUNDLED_DATA_DIR, ComputeFitOptions, type ComputeFromEftResult, ComputedFit, Fit, FittingDataset, SkillProfile, buildAllVSkillProfile, computeFromEft, loadBundledDataset };
|
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Fit, ComputedFit, FittingDataset, SkillProfile, ComputeFitOptions } from './index.js';
|
|
2
|
+
export { ACTIVATION_EFFECT_ID, ATTR, BundleManifest, CATEGORY, CapacitorReport, ComputedAttribute, DAMAGE_PROFILE_PRESETS, DamageProfile, DefenseLayerKind, DerivedStats, DroneComputed, EftParseResult, EwarKind, FighterComputed, FitBooster, FitCargo, FitContext, FitDrone, FitFighter, FitImplant, FitModule, FitSubsystem, FitVisibility, FitWarning, ItemKind, ItemState, LEGACY_EFFECT_IDS, LEGACY_HANDLED_EFFECT_IDS, LayerEhp, LegacyEffectEntry, MarketGroupPlacement, ModifiedAttribute, ModifierAffliction, ModifierOperation, ModuleAttrSnapshot, ModuleComputed, ModuleState, MutatorData, OPERATION_BY_SDE_CODE, OUT_OF_SCOPE_EFFECT_IDS, OffenseReport, ProjectedEffectReport, ProjectedSource, REPAIR_EFFECT_AMOUNT_ATTR, REQUIRED_SKILL_PAIRS, SLOT_EFFECT_ID, SLOT_EFFECT_TO_SLOT_TYPE, STACKING_PENALTY_K, SdeAttribute, SdeCategory, SdeCloneGrade, SdeDbuffCollection, SdeDynamicAttribute, SdeEffect, SdeGroup, SdeMarketGroup, SdeMetaGroup, SdeModifierInfo, SdeType, SdeUnit, SkillCheckResult, SkillRequirement, SlotType, StructureMeta, StructureServiceModule, TARGET_PROFILE_PRESETS, TankRates, TargetProfile, TypeBucket, WEAPON_EFFECT_KIND, WeaponContribution, WeaponEffectKind, WeaponKind, applyOneModifier, applySkills, applySourceItem, buildNameIndex, canFitModuleOnShip, chargeGroupsForModule, checkSkills, classifyEwar, classifyWeapon, combineJamChances, combineMultiplicative, combinePenalized, combineUnstacked, computeCapacitor, computeFit, computeLayerEhp, computeOffense, computeStructureMeta, computeT3CVariantCode, computeTank, computeTotalEhp, defaultStateForModule, disintegratorCyclesToFullSpool, disintegratorSpoolBonus, ecmJamChance, effectiveDps, ehpUnderProfile, formatDna, formatEft, formatMultibuy, formatTypeIds, freeFitGroupSlotsFor, freeHardpointsFor, isActivatableModule, isMissileLauncher, isSmartBomb, isTurretWeapon, marketGroupPlacement, maxGroupFittedFor, maxTypeFittedFor, moduleAcceptsAnyCharge, moduleAcceptsCharge, moduleAcceptsChargeType, parseEft, peakRecharge, readCycleInfo, readDamageComponents, readRangeInfo, rechargeRateAt, shipGroupRestrictions, shipTypeRestrictions, typeFitsSlotType, verifyLegacyEffectIds } from './index.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Absolute path to the bundled SDE directory shipped in this package
|
|
6
|
+
* (`<pkg>/data`, layout: manifest.json + v<hash>/...). Exported so a consumer
|
|
7
|
+
* can serve these files directly (e.g. an HTTP static route for a browser UI)
|
|
8
|
+
* and treat the package as the single source of fitting data.
|
|
9
|
+
*/
|
|
10
|
+
declare const BUNDLED_DATA_DIR: string;
|
|
11
|
+
/**
|
|
12
|
+
* Load the SDE bundle shipped inside this package into a `FittingDataset`.
|
|
13
|
+
* Cached per directory. Pass `dataDir` to point at a different bundle (same
|
|
14
|
+
* manifest + v<hash>/ layout produced by the capsuleers.app bundle builder).
|
|
15
|
+
*/
|
|
16
|
+
declare function loadBundledDataset(dataDir?: string): Promise<FittingDataset>;
|
|
17
|
+
/** All-V skill profile built from the dataset's skills bucket (Pyfa headline). */
|
|
18
|
+
declare function buildAllVSkillProfile(dataset: FittingDataset): SkillProfile;
|
|
19
|
+
interface ComputeFromEftResult {
|
|
20
|
+
fit: Fit;
|
|
21
|
+
warnings: Array<{
|
|
22
|
+
line: number;
|
|
23
|
+
text: string;
|
|
24
|
+
reason: string;
|
|
25
|
+
}>;
|
|
26
|
+
computed: ComputedFit;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* One-call: EFT text -> full computed stats, using the bundled SDE.
|
|
30
|
+
* Defaults to All-V skills (override via `options.skillProfile`).
|
|
31
|
+
*/
|
|
32
|
+
declare function computeFromEft(eft: string, options?: Partial<ComputeFitOptions>): Promise<ComputeFromEftResult>;
|
|
33
|
+
|
|
34
|
+
export { BUNDLED_DATA_DIR, ComputeFitOptions, type ComputeFromEftResult, ComputedFit, Fit, FittingDataset, SkillProfile, buildAllVSkillProfile, computeFromEft, loadBundledDataset };
|