OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  jasper-configguard:为 OpenClaw 提供自动化的安全配置更改守卫

jasper-configguard:为 OpenClaw 提供自动化的安全配置更改守卫

 
  library ·  2026-02-05 08:41:58 · 3 次点击  · 0 条评论  

名称: jasper-configguard
版本: 1.0.0
描述: 为 OpenClaw 提供安全的配置变更与自动回滚。在应用补丁前备份,重启后执行健康检查,失败时自动回滚。支持命令:patch、restore、list、diff、validate、doctor。


Jasper ConfigGuard v1.0.0

为 OpenClaw 提供安全的配置变更与自动回滚。从此告别网关配置损坏。

安装

npm install -g jasper-configguard

使用

安全应用配置变更

jasper-configguard patch '{"gateway":{"bind":"tailnet"}}'

工具将执行以下步骤:
1. 备份当前配置
2. 应用补丁(深度合并)
3. 重启网关
4. 等待健康检查
5. 若网关异常,自动回滚

预览变更内容

jasper-configguard patch --dry-run '{"agents":{"defaults":{"model":{"primary":"opus"}}}}'

从备份恢复

jasper-configguard restore

列出备份

jasper-configguard list

检查健康状态

jasper-configguard doctor

与 Agent 集成

在您的 Agent 中安全地修改 OpenClaw 配置:

# 安全切换模型
jasper-configguard patch '{"agents":{"defaults":{"model":{"primary":"anthropic/claude-opus-4-5"}}}}'

# 安全启用插件
jasper-configguard patch '{"plugins":{"entries":{"my-plugin":{"enabled":true}}}}'

# 若出现问题,立即恢复
jasper-configguard restore

API

const { ConfigGuard } = require('jasper-configguard');
const guard = new ConfigGuard();

// 安全应用补丁
const result = await guard.patch({ gateway: { bind: 'tailnet' } });
if (!result.success) console.log('已回滚:', result.error);

// 干运行(预览)
const preview = guard.dryRun({ agents: { defaults: { model: { primary: 'opus' } } } });
console.log(preview.diff);
3 次点击  ∙  0 人收藏  
登录后收藏  
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor