@best-agent/cli-darwin-arm64 0.0.2-beta.9

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Simon He
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # @best-agent/cli
2
+
3
+ v3 的本地 Application composition 与终端入口。
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 中。
12
+
13
+ ## 当前命令
14
+
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> # 可重复
41
+ ```
42
+
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。
46
+
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
+ ## 不拥有
55
+
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 或外部资源恢复。
60
+
61
+ 最终状态只来自 direct `ApplicationHost.snapshot`;event 仅用于 bounded preview/early read。
package/bin/best-agent ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@best-agent/cli-darwin-arm64",
3
+ "version": "0.0.2-beta.9",
4
+ "description": "best-agent CLI native executable for darwin-arm64",
5
+ "os": [
6
+ "darwin"
7
+ ],
8
+ "cpu": [
9
+ "arm64"
10
+ ],
11
+ "bin": {
12
+ "best-agent-darwin-arm64": "./bin/best-agent"
13
+ },
14
+ "files": [
15
+ "bin/best-agent",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "dependencies": {
20
+ "@arcships/light-ocr": "0.5.7",
21
+ "node-notifier": "10.0.1"
22
+ }
23
+ }