pi-kimi-keepalive 0.3.0 → 0.3.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 +19 -5
- package/README.zh-CN.md +19 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,18 +15,32 @@ Replayed requests are sent directly to the provider endpoint. They do not pass t
|
|
|
15
15
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
|
+
### Option 1 — npm (recommended; receives updates)
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pi install npm:pi-kimi-keepalive
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The package is published on npm and picks up new releases with:
|
|
25
|
+
|
|
18
26
|
```bash
|
|
19
|
-
|
|
20
|
-
pi install /path/to/pi-kimi-keepalive
|
|
27
|
+
pi update npm:pi-kimi-keepalive
|
|
21
28
|
```
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
### Option 2 — GitHub (if you don't use npm; no update channel)
|
|
24
31
|
|
|
25
32
|
```bash
|
|
26
|
-
pi
|
|
33
|
+
pi install git:github.com/realoliversama/pi-kimi-keepalive
|
|
27
34
|
```
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
This installs whatever is on the repository's default branch at install time. It does **not** receive updates — to move to a newer version, re-run the same install command (or `pi remove git:github.com/realoliversama/pi-kimi-keepalive` first).
|
|
37
|
+
|
|
38
|
+
### Single session without installing
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pi -e npm:pi-kimi-keepalive # from npm
|
|
42
|
+
pi -e git:github.com/realoliversama/pi-kimi-keepalive # from GitHub
|
|
43
|
+
```
|
|
30
44
|
|
|
31
45
|
## Setup
|
|
32
46
|
|
package/README.zh-CN.md
CHANGED
|
@@ -15,18 +15,32 @@ Kimi 的自动 prompt 缓存名义上在空闲 ~5 分钟后过期,但实测实
|
|
|
15
15
|
|
|
16
16
|
## 安装
|
|
17
17
|
|
|
18
|
+
### 方案一:npm 安装(推荐;可收到更新)
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pi install npm:pi-kimi-keepalive
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
包已发布到 npm,新版本发布后可随时更新:
|
|
25
|
+
|
|
18
26
|
```bash
|
|
19
|
-
|
|
20
|
-
pi install /path/to/pi-kimi-keepalive
|
|
27
|
+
pi update npm:pi-kimi-keepalive
|
|
21
28
|
```
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
### 方案二:GitHub 安装(不用 npm 时;无更新渠道)
|
|
24
31
|
|
|
25
32
|
```bash
|
|
26
|
-
pi
|
|
33
|
+
pi install git:github.com/realoliversama/pi-kimi-keepalive
|
|
27
34
|
```
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
该方式安装的是仓库默认分支在安装时刻的状态,**不会收到更新**——想升级需重新执行同一安装命令(或先 `pi remove git:github.com/realoliversama/pi-kimi-keepalive`)。
|
|
37
|
+
|
|
38
|
+
### 单次会话试运行(不安装)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pi -e npm:pi-kimi-keepalive # 从 npm
|
|
42
|
+
pi -e git:github.com/realoliversama/pi-kimi-keepalive # 从 GitHub
|
|
43
|
+
```
|
|
30
44
|
|
|
31
45
|
## 初始化
|
|
32
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-kimi-keepalive",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Prompt-cache keepalive for Kimi (kimi-coding) sessions in the Pi coding agent. Replays the last real provider request while idle so the automatic prefix cache never expires.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|