@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 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
- - `npm install -g @best-agent/cli@beta`:根包按 `os`/`cpu`/`libc` 安装一个 SEA 平台包;
8
- - `pnpm pack:tui`:构建、打包并安装 smoke-test 当前平台的根包和平台包;
9
- - `pnpm release:cli --artifact-root .tmp/sea --tag beta --dry-run`:验证六个平台产物;去掉 `--dry-run` 后依次发布六个平台包和根包。
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
- - `best-agent run ... <prompt>`:创建一个 frozen Plan、一个 Session 和一个 Run;
16
- - `best-agent chat ...`:创建一个 frozen Plan 和一个 Session,普通输入开始新 Run,`/stop` 请求停止当前
17
- Run,`/quit` 关闭本地 Application 资源;terminal assistant text 中的 `[[approval:<prompt>]]` 仅创建
18
- Application 等待态,`/approve yes|no` 会提交同 Session 的**新 Run**。
19
- - `best-agent subagent ... <task>`:使用 Application-owned coordinator 启动独立 child Agent/Session/Run;`--json` 输出 terminal snapshot 摘要。
20
- - `best-agent workflow --workflow <steps.json> ...`:按 `{"steps":[{"prompt":"... {{previous}}"}]}` 顺序运行,每步均是前一步 terminal 后的新 Run。
21
-
22
- `server`、`daemon`、`serve`、`acp` 尚未完成 v3 product composition,会明确失败;CLI 不调用旧
23
- Server、SDK、Engine native bridge。
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
- 开启 `--compact-debug-dir` 后,每次 manual/预算触发的 Session rotation 会写一个不含原文的 bounded JSON 记录,包含 source/epoch ref、SHA-256、
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
- argv、environment、文件和 backend 配置在 C0 只是 candidate;CLI 在 C1 验证并构造 private
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
- - Kernel transition、Runtime facts 或 current-Run next-action authority;
57
- - Provider、Tool sandbox 返回值的外部事实;
58
- - retry、resume、suspended Run、recovery compact lifecycle;
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
- 最终状态只来自 direct `ApplicationHost.snapshot`;event 仅用于 bounded preview/early read。
33
+ 本地开发使用仓库根目录的 `pnpm build`、`pnpm test:cli` 与相关 capability 测试。
package/bin/best-agent CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@best-agent/cli-darwin-arm64",
3
- "version": "0.0.3-beta.2",
3
+ "version": "0.0.3-beta.20",
4
4
  "description": "best-agent CLI native executable for darwin-arm64",
5
5
  "os": [
6
6
  "darwin"