@loontail/minecraft-kit 0.2.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 elixir contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+
2
+ The MIT License (MIT)
3
+
4
+ Copyright (c) 2026 Serhii Mykolenko
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # @loontail/minecraft-kit
2
+
3
+ A stateless TypeScript Minecraft launcher library and interactive CLI for vanilla, Fabric, and modern Forge.
4
+
5
+ ## Features
6
+
7
+ - Resolve and install vanilla Minecraft, Fabric, and modern Forge.
8
+ - Install Mojang Java runtimes (`java-runtime-gamma`, `delta`, `jre-legacy`, ...).
9
+ - Verify, repair, and launch installations.
10
+ - Fully typed `onEvent` progress callbacks.
11
+ - Interactive `mckit` CLI.
12
+ - **Stateless** — writes only the files Minecraft itself needs; nothing else lives on disk.
13
+
14
+ ## Install
15
+
16
+ ```bash
17
+ pnpm add @loontail/minecraft-kit
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```ts
23
+ import { MinecraftKit, AuthModes, Loaders } from "@loontail/minecraft-kit";
24
+
25
+ const kit = new MinecraftKit();
26
+
27
+ const target = await kit.targets.resolve({
28
+ id: "fabric-client",
29
+ directory: "./minecrafts/fabric-client",
30
+ minecraft: { version: "1.20.1" },
31
+ loader: { type: Loaders.FABRIC },
32
+ });
33
+
34
+ const plan = await kit.install.plan(target);
35
+ await kit.install.run(plan);
36
+
37
+ const composition = await kit.launch.compose(target, {
38
+ auth: { mode: AuthModes.OFFLINE, username: "Player" },
39
+ });
40
+ const session = kit.launch.run(composition);
41
+ await session.exited;
42
+ ```
43
+
44
+ ## CLI
45
+
46
+ ```bash
47
+ mckit
48
+ ```
49
+
50
+ The CLI is fully interactive — no required arguments. Run inside the directory that should host your installations.
51
+
52
+ ## License
53
+
54
+ MIT
@@ -0,0 +1,2 @@
1
+
2
+ export { }