Files
WT-Offline/packages/mods/src/index.ts
T

82 lines
2.0 KiB
TypeScript

/**
* Shared additive mod system core: manifest parsing, mod discovery, load-order & conflict
* resolution, type-preserving BLK incremental patching, localization CSV merging, multi-layer
* tuning `$listOps` merging, and experimental server mod contracts.
*/
export {
MOD_API_VERSION,
MOD_FORMAT_VERSION,
MODDABLE_CLIENT_PACKS,
resolveLocalizedText,
type ClientModsConfig,
type DiscoveredMod,
type LocalizedText,
type ModContentSummary,
type ModDiscoveryError,
type ModDiscoveryResult,
type ModIssue,
type ModIssueKind,
type ModIssueSeverity,
type ModManifest,
type ModPackOperation,
type ModPreset,
type ModRiskBadge,
type ModServerConfig,
type ModdableClientPack,
type PackFileAction,
type ResolvedModLoadOrder,
} from './types.ts';
export {
MOD_MANIFEST_FILE,
ModManifestError,
expectSafeRelativePath,
parseModManifest,
readModManifest,
} from './manifest.ts';
export { discoverMods, inspectModContent, touchedClientPacks } from './discovery.ts';
export {
computeAutoSortOrder,
emptyClientModsConfig,
matchesVersionPattern,
normalizeClientModsConfig,
resolveModLoadOrder,
} from './resolve.ts';
export {
BlkPatchError,
applyBlkPatch,
parseBlkPatchDocument,
type BlkBlockBlueprint,
type BlkPatchDocument,
type BlkPatchOp,
type BlkPatchValueInput,
type BlkPathStep,
} from './blk-patch.ts';
export { mergeLocalizationCsv } from './csv-patch.ts';
export { mergeTuningLayer, type TuningListOp } from './tuning-merge.ts';
export type {
BattleFilterMissionsContext,
BattleLiveFactContext,
BattleMatchmakeContext,
BattleMissionCandidate,
BattleSettlementContext,
ModCharHandler,
ModCharRequest,
ModCharResponse,
ModCharWrapper,
ModHttpHandler,
ModHttpRequest,
ModHttpResponse,
ModLogger,
ModMatchingHandler,
ModMatchingRequest,
ModMatchingWrapper,
ModPlayerStorage,
ModStorageApi,
ServerModCataloguesView,
ServerModDatasetsView,
ServerModHooksApi,
ServerModRoutesApi,
WtoServerMod,
WtoServerModContext,
} from './server-api.ts';