@yoooclaw/cli 0.1.9 → 0.2.0-beta.1

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,315 +1,23 @@
1
1
  # @yoooclaw/cli
2
2
 
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![npm version](https://img.shields.io/npm/v/@yoooclaw/cli.svg)](https://www.npmjs.com/package/@yoooclaw/cli)
5
- [![Node](https://img.shields.io/badge/node-%3E%3D22.12-blue.svg)](https://nodejs.org/)
3
+ yoooclaw 独立 CLI(Go 实现)。npm 包本身只含一个极薄的 Node launcher;真正的可执行
4
+ 是按平台分发的原生 Go 二进制,通过 `optionalDependencies` 子包安装,npm 会根据
5
+ `os`/`cpu` 字段自动只装匹配当前平台的那一个。
6
6
 
7
- yoooclaw 独立 CLI 工具 —— **自带后台守护进程(daemon),不依赖 openclaw 客户端在线**,为人类与 AI Agent 而生。本地接收手机通知、Relay 隧道、录音 ASR、灯效规则评估,统一 `--format` 输出,随包发布 Agent Skill 开箱即用。
8
-
9
- Service-oriented 命令树、三层命令体系、Agent-Native。
10
-
11
- [安装](#安装与快速开始) · [Agent 技能](#agent-技能) · [鉴权](#鉴权) · [命令体系](#三层命令体系) · [进阶](#进阶用法) · [安全](#安全与风险提示) · [贡献](#开发与贡献)
12
-
13
- ## 为什么用 yoooclaw?
14
-
15
- - **自带守护进程** —— 本地 daemon 收通知、跑规则、连 Relay,不依赖 openclaw 客户端在线
16
- - **Agent-Native** —— 随包 [Skill](skills/) 开箱即用,Agent 零额外配置直接调 `yoooclaw` 命令
17
- - **三层命令体系** —— Shortcuts(人/AI 友好)→ Service Commands(结构化)→ Raw API(全覆盖),按粒度选择
18
- - **纯读磁盘的查询** —— 通知 / 录音 / 图片查询直接读 `~/.yoooclaw`,不需要 daemon 在跑
19
- - **统一输出契约** —— `--format json|pretty|table|ndjson`,成功失败同通道、结构可预测、非零退出码表达失败
20
- - **凭据安全** —— OS keychain 优先存储,多 api-key 管理,gateway token 鉴权本地 ingest
21
- - **零依赖二进制** —— 原生单文件(内嵌 Bun runtime)或 npm 渠道,macOS / Linux / Windows 全平台
22
-
23
- ## 能力一览
24
-
25
- | 领域 | 能力 | daemon |
26
- | --------------------- | ------------------------------------------------------------ | ------ |
27
- | 📱 通知 Notification | 按时间/应用/发送人/关键词查询,今日/最近摘要,多维聚合统计 | 🟢 |
28
- | 🔄 同步 Sync | 扫描未处理通知、按日期取详情、提交批次,供记忆系统消费 | 🟢 |
29
- | 🎙️ 录音 Recording | 列举与查询录音、ASR 转写配置(api / local)、状态事件流跟随 | 🟢 |
30
- | 🖼️ 图片 Image | 列举与查询图片、本地路径 / 缩略图解析 | 🟢 |
31
- | 💡 灯效 Light | 下发灯效指令到硬件(段 / 预设 / 规则三选一),连通性自检 | 🟡 |
32
- | 📐 灯效规则 Lightrule | 「通知 → 灯效」持久规则的增删改查、启用 / 停用 | 🟡 |
33
- | ⏰ 监控 Monitor | cron 驱动的定时通知监控任务 | 🟡 |
34
- | 🔌 隧道 Tunnel | Relay 隧道状态、强制重连、本地 ingest 回环自检 | 🟡 |
35
- | 🛡️ 网关 Gateway | 模拟手机端调 daemon,校验本地连通与鉴权 | 🟢/🟡 |
36
- | 📋 日志 Log | daemon 日志检索与 error 级筛选 | 🟢 |
37
- | ⚙️ 基础设施 | config / profile / auth / daemon / migrate / update / doctor | 🟢/🔵 |
38
- | 🧩 技能 Skills | 把随包 SKILL.md 安装到 Agent 可发现目录 | 🟢 |
39
-
40
- > daemon 标记:🟢 不需要 daemon · 🟡 需要 daemon 在跑 · 🔵 管理 daemon 自身。
41
-
42
- ## 安装与快速开始
43
-
44
- 两种分发渠道,二者**功能一致**,按需选择。
45
-
46
- **平台支持**:macOS / Linux 两种渠道都支持;**Windows 走 npm 渠道**(需 Node ≥ 22.12.0),原生二进制暂未提供 Windows 目标。Windows 上凭据以明文落 `~/.yoooclaw/credentials.json`(无系统 keychain 加固,`yoooclaw doctor` 会提示),daemon 停止经 HTTP 优雅退出。
47
-
48
- ### 渠道 A — npm(需要 Node ≥ 22.12.0,Windows 用此渠道)
7
+ ## 安装
49
8
 
50
9
  ```bash
51
- # 免安装(每次拉最新版)
52
- npx @yoooclaw/cli --help
53
-
54
- # 全局安装(提供 yoooclaw / yc 两个命令)
55
10
  npm i -g @yoooclaw/cli
56
- yoooclaw --help
57
- yc --help
58
- ```
59
-
60
- ### 渠道 B — 原生二进制(无需 Node)
61
-
62
- 单文件可执行(内嵌 Bun runtime),首次安装 ~60–90 MB,冷启动与 Node 相当。
63
-
64
- ```bash
65
- # 自动检测平台、下载、校验 sha256、写到 ~/.local/bin
66
- curl -fsSL https://raw.githubusercontent.com/YoooClaw/cli/master/scripts/install.sh | sh
67
-
68
- # 指定版本 / 安装目录 / 覆盖
69
- curl -fsSL https://raw.githubusercontent.com/YoooClaw/cli/master/scripts/install.sh \
70
- | sh -s -- --version 0.0.5 --dir ~/bin --force
71
- ```
72
-
73
- 支持平台:`darwin-arm64` / `darwin-x64` / `linux-x64` / `linux-arm64`。也可从 [GitHub Releases](https://github.com/YoooClaw/cli/releases?q=cli-v) 手动下载(同 release 内 `checksums.txt` 校验)。
74
-
75
- > `yoooclaw update self` 会按当前安装来源给出对应升级命令(npm 走 `npm update -g`,二进制走 install.sh)。
76
-
77
- ### 快速开始(人类用户)
78
-
79
- ```bash
80
- # 1. 交互式首次向导:生成 config + gateway token,并自动拉起 daemon
81
- yoooclaw config init
82
-
83
- # 2. 查鉴权与环境是否就绪
84
- yoooclaw auth status
85
- yoooclaw doctor
86
-
87
- # 3. 开始用:纯读磁盘查通知,不需要 daemon
88
- yoooclaw notification +today
11
+ # 提供 yoooclaw 与 yc 两个命令
12
+ yc --version
89
13
  ```
90
14
 
91
- ### 快速开始(AI Agent)
92
-
93
- > 以下步骤面向 AI Agent,部分需用户在终端确认。查询类命令纯读磁盘即可,控制类命令需 daemon 在跑。
94
-
95
- ```bash
96
- # 1. 用 stdin 注入配置完成初始化(避免交互),随后自动起 daemon
97
- yoooclaw config init --non-interactive --from-file -
98
-
99
- # 2. 确认 daemon 在跑、隧道已连
100
- yoooclaw daemon status
101
- yoooclaw tunnel status
102
-
103
- # 3. 流式查询通知(基于磁盘最新数据,勿依赖记忆)
104
- yoooclaw notification summary --app 微信 --from 2026-06-01T00:00:00+08:00 --format json
105
-
106
- # 4. 把随包 Skill 装到当前 Agent 的发现目录
107
- yoooclaw skills install
108
- ```
109
-
110
- ## Agent 技能
111
-
112
- > **推荐搭配 [YoooClaw/skills](https://github.com/YoooClaw/skills) 一起用。** 该仓库分发的 `yoooclaw-cli` Skill 把命令路由、`--format` 输出契约、daemon 依赖与错误处理打包成一份给 Agent 的「使用说明书」,让 Codex / Claude Code 等开箱即懂怎么调 `yoooclaw`。先装 CLI,再装 Skill:
113
-
114
- ```bash
115
- # 1. 安装 CLI(前置)
116
- npm install -g @yoooclaw/cli
117
-
118
- # 2. 安装 yoooclaw-cli Skill —— Codex + Claude Code
119
- npx skills@latest add YoooClaw/skills --skill yoooclaw-cli --global --agent codex --agent claude-code --copy --yes
120
-
121
- # 只装其中一个 agent:把 --agent 改成单个即可
122
- npx skills@latest add YoooClaw/skills --skill yoooclaw-cli --global --agent claude-code --copy --yes
123
- ```
124
-
125
- > Hermes Agent 用 `hermes skills install https://raw.githubusercontent.com/YoooClaw/skills/main/yoooclaw-cli/SKILL.md`。装好后重启 Agent 会话即可被发现。
126
-
127
- ### 本仓库随包内置 Skill
128
-
129
- 随包发布 [skills/](skills/) 下的 SKILL.md,教 Agent 直接调 `yoooclaw` 命令。在 openclaw 插件里由 `openclaw.plugin.json` 自动注册;独立 CLI 形态下用 `yoooclaw skills install` 软链到 Agent 的 skills 发现目录。
130
-
131
- | Skill | 说明 |
132
- | ----------------------------- | --------------------------------------------------------------------------------------------------------------- |
133
- | `yoooclaw-notification-query` | 流式查询手机通知原始数据:「看看最近的通知」「谁找过我」「总结今天的消息」。纯读磁盘、不需要 daemon |
134
- | `yoooclaw-lightrule-create` | 从自然语言或 stdin 创建/管理「通知 → 灯效」持久规则,由 daemon 在 ingest 后评估命中并触发灯效(🟡) |
135
- | `yoooclaw-tunnel-debug` | 排查手机端推送链路:组合 auth / daemon / tunnel / gateway 状态定位本地配置、ingest 鉴权与 Relay WebSocket(🟡) |
136
-
137
- ```bash
138
- yoooclaw skills list # 列出随包发布的内置 Skill
139
- yoooclaw skills targets # 查看支持的 Agent 目标和探测结果
140
- yoooclaw skills install # 自动探测唯一 Agent 后软链安装
141
- yoooclaw skills install --agent claude
142
- yoooclaw skills install --copy # 复制而非软链(Windows 无管理员权限时用)
143
- ```
144
-
145
- 默认软链而非复制:`yoooclaw update self` 升级 CLI 后 Skill 内容自动跟随新版本。安装后重启 Agent 会话即可被发现。
146
-
147
- ## 鉴权
148
-
149
- yoooclaw 的鉴权围绕两类凭据:**api-key**(account 级,签名手机端上行 ingest)与 **gateway token**(本地 daemon HTTP 鉴权)。多数命令为本地检查(🟢),`auth check` 会端到端调 daemon(🟡)。
150
-
151
- | 命令 | 说明 |
152
- | ---------------------------------- | -------------------------------------------------------- |
153
- | `auth set-api-key <key>` | 设置/轮换 account 级 default api-key(`-` 从 stdin 读) |
154
- | `auth add-api-key <key>` | 新增一条 multi-key api-key,可带 `--label` / `--default` |
155
- | `auth list-api-keys` | 列出 api-key 条目(key 自动遮罩) |
156
- | `auth set-default-api-key <label>` | 切换 default api-key |
157
- | `auth remove-api-key <label>` | 删除指定 label 的 api-key |
158
- | `auth token-rotate` | 生成新 gateway token;daemon 在跑时随后 restart 生效 |
159
- | `auth status` | 显示鉴权状态(本地检查,不调 daemon) |
160
- | `auth check` | 端到端鉴权体检(调 daemon `/daemon/status`) |
161
-
162
- ```bash
163
- # 从 stdin 安全写入 default api-key,并存入 OS keychain
164
- echo "ock-xxxx" | yoooclaw auth set-api-key - --keychain
165
-
166
- # 多设备/多客户端:按 label 管理多条 api-key
167
- yoooclaw auth add-api-key - --label phone-a --default
168
- yoooclaw auth list-api-keys
169
-
170
- # 轮换 gateway token 后让 daemon 生效
171
- yoooclaw auth token-rotate
172
- yoooclaw daemon restart
173
- ```
174
-
175
- ## 三层命令体系
176
-
177
- 按粒度从快捷到完全自定义,覆盖日常操作到任意 daemon 端点:
178
-
179
- ### 1. Shortcuts
180
-
181
- 以 `+` 前缀,对人类与 AI 都友好,自带智能默认值与表格输出。
182
-
183
- ```bash
184
- yoooclaw notification +today # 今日通知摘要
185
- yoooclaw notification +recent # 最近 1 小时通知
186
- yoooclaw recording +latest # 最新一条录音详情
187
- yoooclaw light +blink # 灯效连通性测试(red-strobe-3)
188
- yoooclaw lightrule +on # 启用所有灯效规则
189
- yoooclaw tunnel +test # daemon 本地 ingest + 鉴权自检
190
- yoooclaw log +errors # 昨天起的 error 级日志
191
- ```
192
-
193
- 运行 `yoooclaw <service> --help` 查看某 service 的全部快捷命令。
194
-
195
- ### 2. Service Commands
196
-
197
- `yoooclaw <service> <subcommand> [...flags]`,结构化访问各领域能力,service 列表见 `yoooclaw --help`。
198
-
199
- ```bash
200
- yoooclaw notification search --app 微信 --keyword 会议 --limit 50
201
- yoooclaw notification stats --dim app --from 2026-05-26
202
- yoooclaw recording list --status synced
203
- yoooclaw recording setup-asr --mode api --language auto --non-interactive
204
- yoooclaw lightrule create --from-file - # 从 stdin 提交规则定义
205
- yoooclaw monitor create daily-standup --schedule "0 9 * * 1-5" --match-rules @rules.json
206
- ```
207
-
208
- ### 3. Raw API
209
-
210
- `yoooclaw api <METHOD> <PATH> [--data ...]` 直达 daemon HTTP 端点,覆盖未被 service 命令封装的部分。
211
-
212
- ```bash
213
- yoooclaw api GET /daemon/status
214
- yoooclaw api POST /notifications --data @payload.json --header "x-client-label:phone-a"
215
- echo '{"...":"..."}' | yoooclaw api POST /recordings --data -
216
- ```
217
-
218
- ## 进阶用法
219
-
220
- ### 全局 flags
221
-
222
- | flag | 说明 |
223
- | ------------------ | --------------------------------------------------------------- |
224
- | `--profile <name>` | 切换 profile(默认 `default`) |
225
- | `--format <fmt>` | `json\|pretty\|table\|ndjson`(TTY 默认 pretty,管道默认 json) |
226
- | `--quiet` | 抑制进度日志,只输出最终结果 |
227
- | `--no-color` | 关闭终端颜色 |
228
-
229
- ### 输出格式
230
-
231
- ```bash
232
- --format json # 完整 JSON(管道默认)
233
- --format pretty # 人类友好的格式化输出(TTY 默认)
234
- --format table # 可读表格
235
- --format ndjson # 行分隔 JSON,便于逐条管道处理
236
- ```
237
-
238
- ### 输出契约
239
-
240
- 成功与失败共用同一通道(stdout)与可预测结构;失败额外以非零退出码表达:
241
-
242
- ```json
243
- {
244
- "ok": false,
245
- "error": {
246
- "code": "YOOOCLAW_DAEMON_NOT_RUNNING",
247
- "message": "...",
248
- "hint": "..."
249
- }
250
- }
251
- ```
252
-
253
- 错误码统一前缀 `YOOOCLAW_*`(见 [src/errors.ts](src/errors.ts))。
254
-
255
- ### 多 profile
256
-
257
- `--profile <name>` 在不同账号/设备间切换,数据隔离在 `~/.yoooclaw/profiles/<profile>/`。
258
-
259
- ```bash
260
- yoooclaw profile list
261
- yoooclaw profile create work
262
- yoooclaw --profile work notification +today
263
- ```
264
-
265
- ### 录音与 Relay
266
-
267
- 独立 daemon 复用 `@yoooclaw/phone-notifications` 的录音存储、状态机与 ASR 调度,并通过 `RelayClient + RelayDispatcher` 接收手机端 `recordings.sync` / `POST /recordings`。
268
-
269
- ```bash
270
- yoooclaw recording events --since 1h --limit 50
271
- yoooclaw recording events --id <recording-id> --watch
272
- ```
273
-
274
- 录音配置与事件分别落在当前 profile 的 `recordings/asr-config.json` 与 `recordings/state/events.jsonl`。
275
-
276
- ### 数据目录
277
-
278
- `~/.yoooclaw/`(可用 `YOOOCLAW_HOME` 覆盖,便于测试 / 多实例)。布局见 [src/paths.ts](src/paths.ts) 与 PRD「数据模型」。
279
-
280
- ## 安全与风险提示
281
-
282
- 本工具会被 AI Agent 调用来自动化操作本地 daemon 与手机端链路,存在模型幻觉、不可预期执行与提示注入等固有风险。授权后 Agent 将在你的身份与授权范围内行事,可能导致敏感数据泄露或非预期操作,请谨慎使用。
283
-
284
- 为降低风险,工具默认开启多层防护:daemon 仅监听本地端口、本地 ingest 经 gateway token 鉴权、凭据优先存入 OS keychain、终端输出对敏感字段遮罩。**强烈建议不要主动放宽这些默认安全设置**;一旦放宽,风险将显著上升,后果需自行承担。请充分理解全部使用风险——使用本工具即视为自愿承担相关责任。
285
-
286
- ## 开发与贡献
287
-
288
- ```bash
289
- bun run build # bun 打包 dist/bin.cjs + dist/index.cjs,tsc 出类型
290
- bun run typecheck
291
- bun run test
292
- node dist/bin.cjs --help
293
- ```
294
-
295
- 完整文档见 [packages/docs/src/cli](../docs/src/cli)。欢迎提 Issue / PR;较大改动建议先开 Issue 讨论。
296
-
297
- ### 源码结构
298
-
299
- | 文件 | 职责 |
300
- | ---------------------------------------------------------------- | -------------------------------------------------------------------- |
301
- | [src/bin.ts](src/bin.ts) | 可执行入口(package.json#bin) |
302
- | [src/index.ts](src/index.ts) | 程序化入口 `run(argv)` + 核心模块导出 |
303
- | [src/command-tree.ts](src/command-tree.ts) | 命令树声明(单一事实来源) |
304
- | [src/program.ts](src/program.ts) | 据命令树构建 commander 程序 + action 包装 |
305
- | [src/context.ts](src/context.ts) | 全局 flags → CliContext,profile 解析 |
306
- | [src/output/format.ts](src/output/format.ts) | `--format` 统一序列化 + 错误 schema |
307
- | [src/errors.ts](src/errors.ts) | `YOOOCLAW_*` 错误码 + `YoooclawError` |
308
- | [src/paths.ts](src/paths.ts) | `~/.yoooclaw/` 目录布局解析 |
309
- | [src/daemon/recording-bridge.ts](src/daemon/recording-bridge.ts) | daemon 形态的 `recordings.sync` 覆盖、ASR fallback 与 in-flight 去重 |
310
- | [src/daemon/relay-dispatcher.ts](src/daemon/relay-dispatcher.ts) | Relay 入站帧到 `StandaloneRuntime` 的进程内分发 |
311
- | [src/commands/skills.ts](src/commands/skills.ts) | 内置 Skill 列举 / 安装到 Agent skills 目录 |
15
+ 也可不经 npm,直接下载原生二进制(见 GitHub Release / install.sh)。
312
16
 
313
- ## License
17
+ ## 支持平台
314
18
 
315
- MIT —— [LICENSE](LICENSE)。
19
+ | OS | Arch |
20
+ |----|------|
21
+ | macOS (darwin) | arm64, x64 |
22
+ | Linux | x64, arm64 |
23
+ | Windows (win32) | x64 |
package/bin/yc.js ADDED
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ // @yoooclaw/cli launcher —— 解析当前平台对应的 optionalDependency 子包里的 Go
5
+ // 二进制并执行它,透传 argv 与退出码。子包按 package.json 的 os/cpu 字段由 npm
6
+ // 自动只安装匹配当前平台的那一个。
7
+ //
8
+ // 设计与 esbuild / turbo 一致:主包不含二进制,只含这个极薄 launcher。
9
+
10
+ const { spawnSync } = require("node:child_process");
11
+ const fs = require("node:fs");
12
+
13
+ function resolveBinary() {
14
+ const platform = process.platform; // darwin | linux | win32
15
+ const arch = process.arch; // arm64 | x64
16
+ const pkg = `@yoooclaw/cli-${platform}-${arch}`;
17
+ const binName = platform === "win32" ? "yc.exe" : "yc";
18
+ try {
19
+ return require.resolve(`${pkg}/bin/${binName}`);
20
+ } catch {
21
+ return null;
22
+ }
23
+ }
24
+
25
+ const bin = resolveBinary();
26
+ if (!bin) {
27
+ const target = `${process.platform}-${process.arch}`;
28
+ process.stderr.write(
29
+ `@yoooclaw/cli: 找不到当前平台的二进制(${target})。\n` +
30
+ "可能原因:\n" +
31
+ " - 该平台暂不支持(当前支持 darwin/linux 的 x64+arm64、win32 的 x64)\n" +
32
+ " - 安装时跳过了 optionalDependencies(--no-optional / --omit=optional)\n" +
33
+ "请尝试重新安装: npm i -g @yoooclaw/cli\n",
34
+ );
35
+ process.exit(1);
36
+ }
37
+
38
+ if (process.platform !== "win32") {
39
+ try {
40
+ fs.chmodSync(bin, 0o755);
41
+ } catch {
42
+ // Best effort only: spawnSync will surface the real error if execution still fails.
43
+ }
44
+ }
45
+
46
+ const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
47
+ if (result.error) {
48
+ process.stderr.write(`@yoooclaw/cli: 启动二进制失败:${result.error.message}\n`);
49
+ process.exit(1);
50
+ }
51
+ // 子进程被信号杀死时 status 为 null;统一以非零码退出。
52
+ process.exit(typeof result.status === "number" ? result.status : 1);
package/package.json CHANGED
@@ -1,39 +1,33 @@
1
1
  {
2
2
  "name": "@yoooclaw/cli",
3
- "version": "0.1.9",
4
- "type": "module",
5
- "description": "yoooclaw 独立 CLI:本地守护进程接收手机通知、Relay 隧道、灯效规则评估,Agent-Native",
6
- "bin": {
7
- "yoooclaw": "dist/bin.cjs",
8
- "yc": "dist/bin.cjs"
3
+ "description": "yoooclaw 独立 CLI(Go 实现,按平台分发原生二进制)",
4
+ "version": "0.2.0-beta.1",
5
+ "license": "MIT",
6
+ "author": "developer@yoooclaw.com",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/YoooClaw/cli.git"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
9
13
  },
10
- "main": "dist/index.cjs",
11
- "types": "dist/index.d.ts",
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "default": "./dist/index.cjs"
16
- }
14
+ "bin": {
15
+ "yoooclaw": "bin/yc.js",
16
+ "yc": "bin/yc.js"
17
17
  },
18
18
  "files": [
19
- "dist",
20
- "skills"
19
+ "bin/yc.js",
20
+ "README.md"
21
21
  ],
22
- "scripts": {
23
- "build": "bun scripts/build.ts",
24
- "build:js": "bun scripts/build.ts",
25
- "build:native": "bun scripts/build-native.ts",
26
- "build:native:current": "bun scripts/build-native.ts --target current",
27
- "dev": "tsc --noEmit --watch",
28
- "test": "vitest run",
29
- "test:watch": "vitest",
30
- "test:unit": "vitest run test/services.test.ts test/smoke.test.ts test/relay-dispatcher.test.ts test/cli.config.test.ts test/cli.auth.test.ts test/cli.data.test.ts",
31
- "test:e2e": "vitest run test/cli.daemon.e2e.test.ts test/cli.lifecycle.e2e.test.ts",
32
- "typecheck": "tsc --noEmit",
33
- "prepublishOnly": "bun run build",
34
- "release:patch": "bun scripts/bump.ts patch",
35
- "release:minor": "bun scripts/bump.ts minor",
36
- "release:beta": "bun scripts/bump.ts beta"
22
+ "optionalDependencies": {
23
+ "@yoooclaw/cli-darwin-arm64": "0.2.0-beta.1",
24
+ "@yoooclaw/cli-darwin-x64": "0.2.0-beta.1",
25
+ "@yoooclaw/cli-linux-arm64": "0.2.0-beta.1",
26
+ "@yoooclaw/cli-linux-x64": "0.2.0-beta.1",
27
+ "@yoooclaw/cli-win32-x64": "0.2.0-beta.1"
28
+ },
29
+ "engines": {
30
+ "node": ">=18"
37
31
  },
38
32
  "keywords": [
39
33
  "yoooclaw",
@@ -41,29 +35,5 @@
41
35
  "daemon",
42
36
  "notifications",
43
37
  "agent"
44
- ],
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/YoooClaw/cli.git"
48
- },
49
- "author": "developer@yoooclaw.com",
50
- "license": "MIT",
51
- "publishConfig": {
52
- "access": "public"
53
- },
54
- "engines": {
55
- "node": ">=22.12.0",
56
- "bun": ">=1.3.0"
57
- },
58
- "devDependencies": {
59
- "@types/node": "^22.0.0",
60
- "@types/ws": "^8.18.1",
61
- "openclaw": "2026.3.28",
62
- "typescript": "^5.7.0",
63
- "vitest": "^3.0.0",
64
- "ws": "^8.19.0"
65
- },
66
- "dependencies": {
67
- "commander": "^12.1.0"
68
- }
38
+ ]
69
39
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Yoooclaw
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.