DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

ddtcorex /

ddtcorex/dsh-maestro-config-lib

仅 Topic 仓库

Maestro settings store library — atomic namespaced JSON store shared by dsh-maestro-* plugins (embedded dependency, no Cordis row)

★ 1 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub项目主页
README来源: master@31f092d7

@ddtcorex/dsh-maestro-config-lib

Embedded settings-store library shared by every dsh-maestro-* plugin: ONE atomic namespaced JSON store at ~/.dsh/maestro/settings.json (chmod 600). No Cordis surface — install it as a plain dependency so any subset of plugins works standalone.

API

defineDomain(name, validator)          // owner registers a schema (validated on write)
load({ dshHome? })                     // memoized read; runs one-shot legacy migration
get(domain, { dshHome? })              // domain value or undefined
set(domain, patch, { dshHome? })       // exclusive-lock write, deep-merge patch, 600 mode
onChange(cb)                           // fires after writes made through this instance
definedDomains()                       // schema-registered names

Legacy migration: first load with no modern store transforms ~/.dsh/dsh-maestro-{harness,remote,review}/config.json into the namespaced store, renames consumed files .bak, drops runtime state (lastTunnelRunning), parks unknown keys under _legacy. Never destructive on corrupt input.

—/ 5

暂无评分

需要先验证清单

Commit 31f092d7face

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于