llamacaddy 0.0.0-stage → 0.9.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/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # LlamaCaddy (npm package)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Installez la dernière version :
4
+
5
+ ```bash
6
+ npm install -g llamacaddy
7
+ ```
8
+
9
+ Puis lancez :
10
+
11
+ ```bash
12
+ llamacaddy
13
+ ```
14
+
15
+ Mise à jour : `npm install -g llamacaddy@latest` (ou bouton « Update available » dans l'application).
16
+
17
+ Ce package contient le binaire natif Windows (`bin/LlamaCaddy.exe`). Variable d'environnement `LLAMACADDY_BIN` pour pointer un autre binaire.
Binary file
package/bin/cli.js ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ // LlamaCaddy launcher: resolves the bundled native binary and starts it detached.
3
+ import { spawn } from "node:child_process";
4
+ import { existsSync } from "node:fs";
5
+ import path from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+
8
+ const here = path.dirname(fileURLToPath(import.meta.url));
9
+
10
+ const candidates = [
11
+ process.env.LLAMACADDY_BIN,
12
+ path.join(here, "..", "bin", "LlamaCaddy.exe"),
13
+ ].filter(Boolean);
14
+
15
+ const bin = candidates.find((p) => existsSync(p));
16
+ if (!bin) {
17
+ console.error("LlamaCaddy binary not found. Reinstall the package or set LLAMACADDY_BIN.");
18
+ process.exit(1);
19
+ }
20
+
21
+ const child = spawn(bin, process.argv.slice(2), { detached: true, stdio: "ignore" });
22
+ child.unref();
23
+ console.log(`LlamaCaddy started (pid ${child.pid})`);
package/package.json CHANGED
@@ -1,6 +1,25 @@
1
1
  {
2
2
  "name": "llamacaddy",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.9.0",
4
+ "description": "LlamaCaddy - browse, download, configure and run llama.cpp server builds on Windows. Launch with: llamacaddy",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/10skro/LlamaCaddy.git"
9
+ },
10
+ "type": "module",
11
+ "bin": {
12
+ "llamacaddy": "bin/cli.js"
13
+ },
14
+ "files": [
15
+ "bin/cli.js",
16
+ "bin/LlamaCaddy.exe",
17
+ "README.md"
18
+ ],
19
+ "os": [
20
+ "win32"
21
+ ],
22
+ "cpu": [
23
+ "x64"
24
+ ]
25
+ }