返回目录
部署运维 插件

dsh-maestro-config-lib

ddtcorex/dsh-maestro-config-lib

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

Stars
1
Forks
0
Issues
0
更新
7 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:ddtcorex/dsh-maestro-config-lib

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

@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.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类部署运维
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: migration。