@cryer/star-cli 0.3.9 → 0.3.11
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 +11 -2
- package/README.zh-CN.md +11 -2
- package/dist/{chunk-RE3NOULF.js → chunk-63CGUF3F.js} +333 -40
- package/dist/chunk-63CGUF3F.js.map +1 -0
- package/dist/{chunk-VJFWTXWN.js → chunk-GYXF6NPC.js} +32 -7
- package/dist/chunk-GYXF6NPC.js.map +1 -0
- package/dist/{chunk-A5PXPWHB.js → chunk-LSYGHLRU.js} +13 -1
- package/dist/chunk-LSYGHLRU.js.map +1 -0
- package/dist/{chunk-56ZIA57D.js → chunk-N4MIQSNZ.js} +17 -6
- package/dist/chunk-N4MIQSNZ.js.map +1 -0
- package/dist/{chunk-OIJYNQFZ.js → chunk-Q5FJN4LN.js} +305 -50
- package/dist/chunk-Q5FJN4LN.js.map +1 -0
- package/dist/{loop-PVOSF6LR.js → loop-AY4PXRVP.js} +5 -5
- package/dist/main.js +7 -8
- package/dist/main.js.map +1 -1
- package/dist/{repl-OO7C6V7M.js → repl-YBNTJOSB.js} +287 -51
- package/dist/repl-YBNTJOSB.js.map +1 -0
- package/dist/{tools-JDTACJYX.js → tools-BH55BVIS.js} +3 -3
- package/package.json +26 -16
- package/dist/chunk-56ZIA57D.js.map +0 -1
- package/dist/chunk-A5PXPWHB.js.map +0 -1
- package/dist/chunk-OIJYNQFZ.js.map +0 -1
- package/dist/chunk-RE3NOULF.js.map +0 -1
- package/dist/chunk-VJFWTXWN.js.map +0 -1
- package/dist/repl-OO7C6V7M.js.map +0 -1
- /package/dist/{loop-PVOSF6LR.js.map → loop-AY4PXRVP.js.map} +0 -0
- /package/dist/{tools-JDTACJYX.js.map → tools-BH55BVIS.js.map} +0 -0
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ maxSteps = 100
|
|
|
66
66
|
contextCompaction = "summary" # summary | truncate — how over-budget history is compacted
|
|
67
67
|
streamMaxRetries = 5 # extra attempts per model request on transient failures
|
|
68
68
|
# (network error, 429/5xx, idle cutoff, empty reply); 0 disables
|
|
69
|
-
streamIdleTimeoutSec =
|
|
69
|
+
streamIdleTimeoutSec = 60 # seconds with no stream output before a stalled response is
|
|
70
70
|
# ended gracefully (some relays never close the stream)
|
|
71
71
|
streamFirstChunkTimeoutSec = 300 # seconds to wait for the very first content part — slow
|
|
72
72
|
# thinking-model endpoints can stay silent for minutes
|
|
@@ -177,7 +177,7 @@ model = "kimi-for-coding"
|
|
|
177
177
|
temperature = 1 # mandatory here — the endpoint rejects any other value
|
|
178
178
|
contextMaxTokens = 128000
|
|
179
179
|
# raise these when the relay buffers long generations:
|
|
180
|
-
# streamIdleTimeoutSec =
|
|
180
|
+
# streamIdleTimeoutSec = 120 # default 60
|
|
181
181
|
# streamFirstChunkTimeoutSec = 600 # default 300
|
|
182
182
|
```
|
|
183
183
|
|
|
@@ -389,3 +389,12 @@ pnpm test:pipeline # layered pipeline incl. optional live LLM smoke (needs an
|
|
|
389
389
|
CI runs lint, typecheck, tests, and build on Ubuntu + Windows against Node 20/22 (`.github/workflows/ci.yml`).
|
|
390
390
|
|
|
391
391
|
Architecture: `src/cli` (Ink UI), `src/agent` (main loop), `src/llm` (Vercel AI SDK provider layer), `src/tools`, `src/context` (token budget + compaction), `src/permissions`, `src/session`, `src/config`.
|
|
392
|
+
|
|
393
|
+
## Benchmark
|
|
394
|
+
|
|
395
|
+
[Terminal-Bench 2.0](https://github.com/laude-institute/terminal-bench), 20 randomly sampled tasks, same model for both agents:
|
|
396
|
+
|
|
397
|
+
| Agent | Model | Pass rate | Avg tokens | Avg duration |
|
|
398
|
+
|---|---|---|---|---|
|
|
399
|
+
| Star CLI 0.3.9 | Kimi K3 | 17/20 (85%) | 129.2K | 414s |
|
|
400
|
+
| terminus-2 2.0.0 | Kimi K3 | 9/20 (45%) | 49.5K | 484s |
|
package/README.zh-CN.md
CHANGED
|
@@ -65,7 +65,7 @@ maxSteps = 100
|
|
|
65
65
|
contextCompaction = "summary" # summary | truncate —— 历史超出预算时的压缩方式
|
|
66
66
|
streamMaxRetries = 5 # 单次模型请求在瞬时失败(网络错误、429/5xx、idle 截断、
|
|
67
67
|
# 空回复)时的额外重试次数;0 表示禁用
|
|
68
|
-
streamIdleTimeoutSec =
|
|
68
|
+
streamIdleTimeoutSec = 60 # 流没有任何输出的秒数,超过后将停滞的响应优雅结束
|
|
69
69
|
#(有些中转站从不关闭流)
|
|
70
70
|
streamFirstChunkTimeoutSec = 300 # 等待第一个内容分片的秒数——慢速思考模型端点在接受请求后
|
|
71
71
|
# 可能静默数分钟
|
|
@@ -172,7 +172,7 @@ model = "kimi-for-coding"
|
|
|
172
172
|
temperature = 1 # 此处必须设置——该端点拒绝任何其他取值
|
|
173
173
|
contextMaxTokens = 128000
|
|
174
174
|
# 中转站长时间缓冲整段生成时可调大:
|
|
175
|
-
# streamIdleTimeoutSec =
|
|
175
|
+
# streamIdleTimeoutSec = 120 # 默认 60
|
|
176
176
|
# streamFirstChunkTimeoutSec = 600 # 默认 300
|
|
177
177
|
```
|
|
178
178
|
|
|
@@ -384,3 +384,12 @@ pnpm test:pipeline # layered pipeline incl. optional live LLM smoke (needs an
|
|
|
384
384
|
CI 在 Ubuntu + Windows 上、Node 20/22 下运行 lint、typecheck、测试和构建(`.github/workflows/ci.yml`)。
|
|
385
385
|
|
|
386
386
|
架构:`src/cli`(Ink UI)、`src/agent`(主循环)、`src/llm`(Vercel AI SDK 服务商层)、`src/tools`、`src/context`(token 预算 + 压缩)、`src/permissions`、`src/session`、`src/config`。
|
|
387
|
+
|
|
388
|
+
## 基准测试
|
|
389
|
+
|
|
390
|
+
[Terminal-Bench 2.0](https://github.com/laude-institute/terminal-bench),随机抽取 20 个任务,两个 agent 使用相同模型:
|
|
391
|
+
|
|
392
|
+
| Agent | 模型 | 通过率 | 平均 token 消耗 | 平均耗时 |
|
|
393
|
+
|---|---|---|---|---|
|
|
394
|
+
| Star CLI 0.3.9 | Kimi K3 | 17/20 (85%) | 129.2K | 414s |
|
|
395
|
+
| terminus-2 2.0.0 | Kimi K3 | 9/20 (45%) | 49.5K | 484s |
|