pi-kage 0.2.0 → 0.2.1
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 +8 -2
- package/bin/kage.mjs +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,11 +46,17 @@ can't check out the same branch twice, you share stash/refs, and you get a *fres
|
|
|
46
46
|
## Install
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
+
# npm
|
|
49
50
|
npm install -g pi-kage # then use `kage` anywhere
|
|
50
|
-
# or
|
|
51
|
-
|
|
51
|
+
npx pi-kage # or run without installing
|
|
52
|
+
|
|
53
|
+
# or install script (no npm needed — kage is a single, zero-dependency Node script)
|
|
54
|
+
curl -fsSL https://raw.githubusercontent.com/kid7st/kage/main/install.sh | sh
|
|
52
55
|
```
|
|
53
56
|
|
|
57
|
+
The install script drops the single `kage` file into `~/.local/bin` (override with `KAGE_BIN_DIR`,
|
|
58
|
+
pin a version with `KAGE_VERSION`). kage has **no dependencies** — it only needs Node, git, and pi.
|
|
59
|
+
|
|
54
60
|
From source:
|
|
55
61
|
|
|
56
62
|
```bash
|
package/bin/kage.mjs
CHANGED
|
@@ -28,6 +28,7 @@ import { homedir } from "node:os";
|
|
|
28
28
|
import { basename, dirname, join, resolve, sep } from "node:path";
|
|
29
29
|
import readline from "node:readline";
|
|
30
30
|
|
|
31
|
+
const VERSION = "0.2.1"; // keep in sync with package.json (enforced by test)
|
|
31
32
|
const MARKER = ".kage.json";
|
|
32
33
|
const SESSIONS = process.env.KAGE_SESSIONS_DIR || join(homedir(), ".pi", "agent", "sessions");
|
|
33
34
|
|
|
@@ -702,7 +703,7 @@ async function main() {
|
|
|
702
703
|
return info(HELP);
|
|
703
704
|
case "-v":
|
|
704
705
|
case "--version":
|
|
705
|
-
return info(
|
|
706
|
+
return info(VERSION);
|
|
706
707
|
default:
|
|
707
708
|
return cmdNew(process.argv.slice(2)); // unknown subcommand -> treat as `kage <path>`
|
|
708
709
|
}
|
package/package.json
CHANGED