@best-agent/cli-darwin-arm64 0.0.3-beta.3 → 0.0.3-beta.30
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 +27 -48
- package/bin/best-agent +2 -2
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,61 +1,40 @@
|
|
|
1
1
|
# @best-agent/cli
|
|
2
2
|
|
|
3
|
-
v3 的本地 Application composition
|
|
3
|
+
Best-Agent v3 的本地 CLI、TUI 与 Application composition 入口。产品合同见:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
发布包不含普通 CLI JavaScript、声明文件或 source map。根包只含平台选择 launcher;Harness、CLI 和 TUI 位于 minified/mangled Node SEA code cache 中。
|
|
5
|
+
- [Composition](../../docs/product-v3/composition.md)
|
|
6
|
+
- [Task and Session](../../docs/product-v3/task-session.md)
|
|
7
|
+
- [Orchestration](../../docs/product-v3/orchestration.md)
|
|
8
|
+
- [Context](../../docs/product-v3/context.md)
|
|
9
|
+
- [Presentation](../../docs/product-v3/presentation.md)
|
|
10
|
+
- [External Services](../../docs/product-v3/external-services.md)
|
|
12
11
|
|
|
13
12
|
## 当前命令
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## Composition 输入
|
|
26
|
-
|
|
27
|
-
```text
|
|
28
|
-
--provider <openai|anthropic|google>
|
|
29
|
-
--model <id>
|
|
30
|
-
--base-url <http(s)-url>
|
|
31
|
-
--compatibility <native|compatible>
|
|
32
|
-
--system-prompt <text>
|
|
33
|
-
--instruction-file <absolute-path> # 可重复,顺序显式
|
|
34
|
-
--skill coding
|
|
35
|
-
--workspace <absolute-path>
|
|
36
|
-
--memory-dir <absolute-path> # Application-owned bounded JSON memory store
|
|
37
|
-
--compact-dir <absolute-path> # Rolling compact 与两槽 Session epoch artifact
|
|
38
|
-
--compact-debug-dir <absolute-path> # Metadata-only compact rotation evidence (no raw transcript)
|
|
39
|
-
--workspace-grant <read|write|exec> # 可重复
|
|
40
|
-
--exec-alias <alias>=<absolute-executable> # 可重复
|
|
14
|
+
```bash
|
|
15
|
+
best-agent run [options] <prompt>
|
|
16
|
+
best-agent chat [options]
|
|
17
|
+
best-agent subagent [options] <task>
|
|
18
|
+
best-agent workflow --workflow <steps.json> [options] <prompt>
|
|
19
|
+
best-agent server --stdio [options]
|
|
20
|
+
best-agent serve [options]
|
|
21
|
+
best-agent daemon [options]
|
|
22
|
+
best-agent acp [options]
|
|
23
|
+
best-agent --version | -version | -v | version
|
|
41
24
|
```
|
|
42
25
|
|
|
43
|
-
|
|
44
|
-
字节数、group 选择/省略 ordinal、budget 与 cache usage。按记录中的 ref 可在 `<compact-dir>/compact/`(未指定时为 storage root 下的
|
|
45
|
-
`compact/compact/`)检查 rolling source 与 frozen epoch artifact;该模式不会额外复制原始 terminal Transcript。
|
|
26
|
+
运行 `best-agent --help` 查看当前 composition 与 transport 参数。
|
|
46
27
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
创建 immutable Session admission。运行后只有 AgentKernel 可以写 Harness-local facts。
|
|
28
|
+
`best-agent --version`(等价 `-version`、`-v`、`version`)是只读查询:不进入任何 composition,只在 stdout 打印一行 CLI 版本后退出
|
|
29
|
+
(安装态 npm 包读自身 package manifest,SEA 单文件读构建时注入的版本;无法解析时打印 `dev`),便于在外部脚本或终端里确认当前安装的版本。
|
|
50
30
|
|
|
51
|
-
|
|
52
|
-
|
|
31
|
+
`b8` 是同一入口的短别名(`b` + 省略的 8 个字母):安装该包后 `b8 <subcommand>` 与
|
|
32
|
+
`best-agent <subcommand>` 等价,帮助文本中的命令名仍为 `best-agent`。
|
|
53
33
|
|
|
54
|
-
##
|
|
34
|
+
## 安装与发布
|
|
55
35
|
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
- Server、SDK、Channel 或外部资源恢复。
|
|
36
|
+
- `npm install -g @best-agent/cli@beta`:安装当前平台的 CLI 包;
|
|
37
|
+
- `pnpm pack:tui`:构建并 smoke-test 当前平台包;
|
|
38
|
+
- `pnpm release:cli --artifact-root .tmp/sea --tag beta --dry-run`:验证发布产物。
|
|
60
39
|
|
|
61
|
-
|
|
40
|
+
本地开发使用仓库根目录的 `pnpm build`、`pnpm test:cli` 与相关 capability 测试。
|
package/bin/best-agent
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/bin/best-agent
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 139158400 bytes
|
|
4
|
+
sha256: 655456dff0de645c39c87455602f3ecb1726ae0f757d28301fc2a103bb928ee4
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@best-agent/cli-darwin-arm64",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.30",
|
|
4
4
|
"description": "best-agent CLI native executable for darwin-arm64",
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"LICENSE"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"node-notifier": "10.0.1"
|
|
20
|
+
"@modelcontextprotocol/sdk": "1.28.0"
|
|
22
21
|
}
|
|
23
22
|
}
|