feat: @uncaged/pulse-openclaw — OpenClaw adapter package (closes #40)

* feat: @uncaged/pulse-oc — OpenClaw adapter package (closes #40)

- Extract gateway-health & llm-health watchers from core to pulse-oc
- Add gateway-health-guard rule and archive-sessions executor
- Update CI, README, CONTRIBUTING for the new package
- Fix E2E tests to use core ESSENTIAL_PROCESSES after openclaw removal

Made-with: Cursor

* feat: @uncaged/pulse-openclaw — OpenClaw adapter package (closes #40)

* chore: rename pulse-oc → pulse-openclaw

Made-with: Cursor

---------

Co-authored-by: 小橘 <xiaoju@shazhou.work>
This commit is contained in:
小橘 🍊
2026-04-15 00:15:09 +08:00
committed by GitHub
parent 3ced39c6fa
commit a9be34f563
26 changed files with 619 additions and 439 deletions
+2 -2
View File
@@ -47,6 +47,7 @@ Percept 层(vitals.db) Understand + Execute 层(events.db)
| 包 | 说明 | npm |
|---|---|---|
| `@uncaged/pulse` | 核心引擎 + 保命层 + watchers | [![npm](https://img.shields.io/npm/v/@uncaged/pulse)](https://www.npmjs.com/package/@uncaged/pulse) |
| `@uncaged/pulse-openclaw` | OpenClaw 适配器(Gateway/LLM watchers + rules + executors) | [![npm](https://img.shields.io/npm/v/@uncaged/pulse-openclaw)](https://www.npmjs.com/package/@uncaged/pulse-openclaw) |
| `@uncaged/pulse-cursor` | Cursor Agent CLI executor 适配器 | [![npm](https://img.shields.io/npm/v/@uncaged/pulse-cursor)](https://www.npmjs.com/package/@uncaged/pulse-cursor) |
| `@uncaged/upulse` | CLI:daemon 管理、staging/promote/rollback | [![npm](https://img.shields.io/npm/v/@uncaged/upulse)](https://www.npmjs.com/package/@uncaged/upulse) |
@@ -124,14 +125,13 @@ Watcher 持续采集写 vitals,唤醒判定看最近 1 分钟窗口(~12 条
### 保命层(P0 Survival)
5 个内置 Watcher + 7 个保命 Rule,零 LLM 零网络依赖:
4 个内置 Watcher + 7 个保命 Rule,零 LLM 零网络依赖:
**Watchers:**
- `system-resource` — CPU/内存/磁盘/swap
- `process-alive` — 关键进程存活
- `network` — DNS + HTTP 出站
- `error-log` — 日志关键词匹配
- `llm-health` — 双层探针(轻量 5s + 深度 60s)
**Rules(洋葱顺序,最外层先执行):**
1. `panicRollback` — 保命动作连续失败 → 紧急回滚