@chvor/cli 0.1.9 → 0.1.10

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.
@@ -1,5 +1,4 @@
1
1
  import { execFileSync } from "node:child_process";
2
- import { homedir } from "node:os";
3
2
  import { validatePort } from "../lib/validate.js";
4
3
  export async function docker(opts) {
5
4
  const port = validatePort(opts.port ?? "9147");
@@ -10,7 +9,7 @@ export async function docker(opts) {
10
9
  execFileSync("docker", [
11
10
  "run", "-d", "--name", "chvor",
12
11
  "-p", `${port}:9147`,
13
- "-v", `${homedir()}/.chvor:/home/node/.chvor`,
12
+ "-v", "chvor-data:/data",
14
13
  image,
15
14
  ], { stdio: "inherit" });
16
15
  console.log(`chvor is running at http://localhost:${port}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chvor/cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Your own AI — install and run chvor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",