@best-agent/cli-darwin-arm64 0.0.3-beta.2 → 0.0.3-beta.20
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 +22 -50
- package/bin/best-agent +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,61 +1,33 @@
|
|
|
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]
|
|
41
23
|
```
|
|
42
24
|
|
|
43
|
-
|
|
44
|
-
字节数、group 选择/省略 ordinal、budget 与 cache usage。按记录中的 ref 可在 `<compact-dir>/compact/`(未指定时为 storage root 下的
|
|
45
|
-
`compact/compact/`)检查 rolling source 与 frozen epoch artifact;该模式不会额外复制原始 terminal Transcript。
|
|
25
|
+
运行 `best-agent --help` 查看当前 composition 与 transport 参数。
|
|
46
26
|
|
|
47
|
-
|
|
48
|
-
provider/sandbox,在 C2 显式选择 contributions 与 policy,Composer 在 C3 freeze Plan,CLI 在 C4
|
|
49
|
-
创建 immutable Session admission。运行后只有 AgentKernel 可以写 Harness-local facts。
|
|
50
|
-
|
|
51
|
-
Workspace grant 只能来自显式 CLI composition。Skill、prompt、Tool input、model output 和 sandbox 都不能
|
|
52
|
-
增加 grant;sandbox 只可进一步收窄 Kernel 已授权的 exact Tool call。
|
|
53
|
-
|
|
54
|
-
## 不拥有
|
|
27
|
+
## 安装与发布
|
|
55
28
|
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
- Server、SDK、Channel 或外部资源恢复。
|
|
29
|
+
- `npm install -g @best-agent/cli@beta`:安装当前平台的 CLI 包;
|
|
30
|
+
- `pnpm pack:tui`:构建并 smoke-test 当前平台包;
|
|
31
|
+
- `pnpm release:cli --artifact-root .tmp/sea --tag beta --dry-run`:验证发布产物。
|
|
60
32
|
|
|
61
|
-
|
|
33
|
+
本地开发使用仓库根目录的 `pnpm build`、`pnpm test:cli` 与相关 capability 测试。
|
package/bin/best-agent
CHANGED
|
Binary file
|