horizon-port-pack: import a modpack and classify its mods
A CLI for the first steps of docs/modpacks.md's pipeline: - import: a Modrinth .mrpack, a CurseForge zip or a Prism / MultiMC instance (or a folder of jars) to pack.json: Minecraft and loader versions, each file with its hash and sides, and the overrides. - inventory: Modrinth metadata by SHA-1 (cached in modrinth.json, so reruns work offline), and the jars when the user's instance has them (neoforge.mods.toml / mods.toml / fabric.mod.json and a file census, without decompiling). Each mod gets a class and API tier from the reviewed ATM10 table, then rules on categories, sides and the census, and a dependency layer. Writes inventory.json and inventory.csv. Only metadata is downloaded; jars are never fetched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -262,6 +262,20 @@ inspected:
|
||||
└── coverage.json, coverage.md
|
||||
```
|
||||
|
||||
**Status.** `import` and `inventory` run today, `carry` follows (see below):
|
||||
|
||||
```
|
||||
cargo run -p horizon-port-pack -- import ~/Downloads/pack.mrpack ~/.horizon/ports/pack
|
||||
cargo run -p horizon-port-pack -- inventory ~/.horizon/ports/pack # --offline reuses modrinth.json
|
||||
```
|
||||
|
||||
`inventory` reads metadata only: Modrinth answers by file hash, and the jars only if the user's
|
||||
instance has them (an imported instance folder, or jars put in `<work>/jars/`). Without jars,
|
||||
classes come from the reviewed table, Modrinth categories and sides; with jars, from their
|
||||
`mods.toml` / `fabric.mod.json` and file census too. On Create+ 6.0.0 alpha f (155 files, metadata
|
||||
only): content 54, library 33, client-ui 26, performance 25, other 14, unknown 2, server-only 1;
|
||||
40 rows matched the reviewed ATM10 table; three dependency layers (93 / 57 / 5).
|
||||
|
||||
### 1. Import
|
||||
|
||||
| Format | Read | Jars come from |
|
||||
|
||||
Reference in New Issue
Block a user