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:
+11
-6
@@ -28,7 +28,6 @@ pulse/
|
||||
├── packages/
|
||||
│ ├── pulse/src/ ← 核心引擎(@uncaged/pulse)
|
||||
│ │ ├── index.ts ← Rule 类型、composeRules、runPulse、rebuildSnapshot
|
||||
│ │ ├── rules.ts ← 内置 rules:clampTick、errorBackoff、adaptiveInterval、dedup
|
||||
│ │ ├── store.ts ← 存储层:events.db + vitals.db + objects/ CAS
|
||||
│ │ ├── watcher.ts ← Watcher 框架:startWatcher、wakeTick、WatcherDef
|
||||
│ │ ├── watchers/ ← P0 内置 watchers(植物神经,agent 不可改)
|
||||
@@ -36,21 +35,27 @@ pulse/
|
||||
│ │ │ ├── process-alive.ts 关键进程存活检测
|
||||
│ │ │ ├── network.ts DNS + HTTP 连通性
|
||||
│ │ │ ├── error-log.ts 日志关键词匹配
|
||||
│ │ │ ├── llm-health.ts LLM 双层探针(轻量 + 深度)
|
||||
│ │ │ └── index.ts
|
||||
│ │ ├── survival/ ← P0 保命层(植物神经,agent 不可改)
|
||||
│ │ ├── rules/ ← P0 保命层(植物神经,agent 不可改)
|
||||
│ │ │ ├── constants.ts ESSENTIAL_PROCESSES 白名单、阈值常量
|
||||
│ │ │ ├── health.ts HealthSnapshot 类型 + rebuildHealth
|
||||
│ │ │ ├── rules.ts 7 个保命 rules(洋葱最外层)
|
||||
│ │ │ ├── executors.ts 保命 executors(确定性本地命令)
|
||||
│ │ │ ├── survival.ts 保命 rules(洋葱最外层)
|
||||
│ │ │ ├── builtin.ts 内置 rules:clampTick、dedup 等
|
||||
│ │ │ └── index.ts
|
||||
│ │ └── executors/ ← 业务 executors(agent 可扩展)
|
||||
│ │ └── executors/ ← 保命 executors(确定性本地命令)
|
||||
│ │ ├── survival.ts
|
||||
│ │ └── index.ts
|
||||
│ │
|
||||
│ ├── pulse-cursor/src/ ← Cursor Agent 适配器(@uncaged/pulse-cursor)
|
||||
│ │ ├── index.ts re-export
|
||||
│ │ └── cursor-agent.ts Cursor Agent Executor
|
||||
│ │
|
||||
│ ├── pulse-openclaw/src/ ← OpenClaw 适配器(@uncaged/pulse-openclaw)
|
||||
│ │ ├── index.ts re-export
|
||||
│ │ ├── watchers/ OC Gateway + LLM 健康探针
|
||||
│ │ ├── rules/ OC 专属保命 rules
|
||||
│ │ └── executors/ OC 专属 executors
|
||||
│ │
|
||||
│ └── upulse/src/ ← CLI 工具(@uncaged/upulse)
|
||||
│ ├── cli.ts 命令路由
|
||||
│ ├── daemon.ts daemon 进程管理
|
||||
|
||||
Reference in New Issue
Block a user