pi-kage 0.5.0 → 0.5.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 -4
- package/README.zh-CN.md +8 -4
- package/bin/kage.mjs +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# kage 🥷
|
|
2
2
|
|
|
3
|
-
[](https://github.com/fastagent-sh/kage/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/pi-kage)
|
|
5
5
|
[](./LICENSE)
|
|
6
6
|
|
|
@@ -49,7 +49,7 @@ npm install -g pi-kage # or: pnpm add -g pi-kage
|
|
|
49
49
|
npx pi-kage # run without installing
|
|
50
50
|
|
|
51
51
|
# install script (single zero-dependency Node script → ~/.local/bin)
|
|
52
|
-
curl -fsSL https://raw.githubusercontent.com/
|
|
52
|
+
curl -fsSL https://raw.githubusercontent.com/fastagent-sh/kage/main/install.sh | sh
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
Requires **git** and **Node ≥ 18** on your `PATH`, plus at least one coding-agent CLI to drive —
|
|
@@ -59,7 +59,7 @@ or [**Codex**](https://github.com/openai/codex). kage itself has no runtime depe
|
|
|
59
59
|
From source:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
-
git clone https://github.com/
|
|
62
|
+
git clone https://github.com/fastagent-sh/kage
|
|
63
63
|
cd kage && npm install && npm link # npm install builds bin/kage.mjs from src/
|
|
64
64
|
```
|
|
65
65
|
|
|
@@ -161,7 +161,11 @@ npm test # build + node:test smoke tests (temp repos, no network)
|
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
Releases: bump `version` in `package.json`, then `git tag vX.Y.Z && git push origin main vX.Y.Z`.
|
|
164
|
-
CI runs lint + tests and
|
|
164
|
+
CI runs lint + tests and publishes through npm Trusted Publishing on any `v*` tag.
|
|
165
|
+
|
|
166
|
+
## Contributing
|
|
167
|
+
|
|
168
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md). Security issues should be reported privately; see [SECURITY.md](./SECURITY.md).
|
|
165
169
|
|
|
166
170
|
## License
|
|
167
171
|
|
package/README.zh-CN.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# kage 🥷
|
|
2
2
|
|
|
3
|
-
[](https://github.com/fastagent-sh/kage/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/pi-kage)
|
|
5
5
|
[](./LICENSE)
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ npm install -g pi-kage # 或:pnpm add -g pi-kage
|
|
|
45
45
|
npx pi-kage # 不安装直接运行
|
|
46
46
|
|
|
47
47
|
# 安装脚本(单个零依赖的 Node 脚本 → ~/.local/bin)
|
|
48
|
-
curl -fsSL https://raw.githubusercontent.com/
|
|
48
|
+
curl -fsSL https://raw.githubusercontent.com/fastagent-sh/kage/main/install.sh | sh
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
需要 `PATH` 上有 **git** 和 **Node ≥ 18**,外加至少一个 coding-agent CLI 来驱动 ——
|
|
@@ -55,7 +55,7 @@ curl -fsSL https://raw.githubusercontent.com/kid7st/kage/main/install.sh | sh
|
|
|
55
55
|
从源码安装:
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
git clone https://github.com/
|
|
58
|
+
git clone https://github.com/fastagent-sh/kage
|
|
59
59
|
cd kage && npm install && npm link # npm install 会从 src/ 编译出 bin/kage.mjs
|
|
60
60
|
```
|
|
61
61
|
|
|
@@ -150,7 +150,11 @@ npm test # 构建 + node:test 冒烟测试(临时仓库,不联网)
|
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
发布:在 `package.json` 里更新 `version`,然后 `git tag vX.Y.Z && git push origin main vX.Y.Z`。
|
|
153
|
-
任何 `v*` tag 都会触发 CI 跑 lint +
|
|
153
|
+
任何 `v*` tag 都会触发 CI 跑 lint + 测试,并通过 npm Trusted Publishing 发布。
|
|
154
|
+
|
|
155
|
+
## 参与贡献
|
|
156
|
+
|
|
157
|
+
请阅读 [CONTRIBUTING.md](./CONTRIBUTING.md)。安全问题请私下报告,参见 [SECURITY.md](./SECURITY.md)。
|
|
154
158
|
|
|
155
159
|
## License
|
|
156
160
|
|
package/bin/kage.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync,
|
|
|
26
26
|
import { homedir } from "node:os";
|
|
27
27
|
import { basename, dirname, join, resolve, sep } from "node:path";
|
|
28
28
|
import readline from "node:readline";
|
|
29
|
-
const VERSION = "0.5.
|
|
29
|
+
const VERSION = "0.5.1"; // keep in sync with package.json (enforced by test)
|
|
30
30
|
const MARKER = ".kage.json";
|
|
31
31
|
const RECENT_SESSIONS = 5; // how many of the origin's most-recent sessions to copy into a clone
|
|
32
32
|
/** Typed accessors for the loose flags bag, so consumers don't re-derive the shape inline. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-kage",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "🥷 Shadow Clone Jutsu for your git repo: copy it into an isolated sibling folder, run your coding agent (pi, Claude Code, Codex) in parallel, then merge the session memory back",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"worktree",
|
|
13
13
|
"developer-tools"
|
|
14
14
|
],
|
|
15
|
-
"homepage": "https://github.com/
|
|
15
|
+
"homepage": "https://github.com/fastagent-sh/kage#readme",
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/fastagent-sh/kage/issues"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/
|
|
21
|
+
"url": "git+https://github.com/fastagent-sh/kage.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"author": "kid7st (https://github.com/kid7st)",
|