@deepseek-ai/dsh-settings 0.1.3-alpha.2 → 0.1.5-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/settings/settings/README.md
5
- README.md: 5c7313ac5015f64cca6b3d91ee75d44f27ab356c
6
- README.zh.md: 337effed483a1bf28d42b76e95c69bc01f805667
5
+ README.md: eabc7bf6f18b7d062462e02b63aa6c0d994755fc
6
+ README.zh.md: 8163b574bdc5ebdcc94deedf928362343c5d4e17
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-settings` lets plugins expose configuration that users can change at runtime: a plugin registers a namespace with a schema, and the resolved value honors schema defaults, the deployment's own composition `base`, and the user-edited document section — with user overrides winning. Consumers read a snapshot of the resolved value and are notified of every committed change; configuration surfaces get one descriptor per namespace — schema, current value, which layer each field came from, effect timing — without touching storage directly. Writes change only the user overrides, run one at a time per namespace, and can carry an expected revision so a stale writer is refused instead of silently overwriting a newer one. A provider must be mounted to store the document; without one, nothing changes and configuration stays exactly as composed.
12
+ Use this package when users must change a plugin's configuration at runtime without restarting or rereading `cordis.yml`. Each namespace combines schema defaults, deployment configuration, and user overrides; readers receive a deep-frozen resolved snapshot and can observe committed changes. Writes affect only user overrides, are serialized per namespace, and may reject stale revisions instead of overwriting newer changes. Durable runtime edits require configured settings storage; without it, the plugin continues with its composed configuration.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-settings` 让插件把配置开放给用户运行时修改:插件用一个 schema 注册 namespace,解析值依次尊重 schema 默认值、部署自身的组合 `base` 与用户编辑的文档分节——用户覆盖优先。消费方读取解析值快照并在每次已提交变更后收到通知;配置界面每个 namespace 得到一条 descriptor——schema、当前值、每个字段来自哪一层、生效时机——而无需直接触碰存储。写入只改动用户覆盖、按 namespace 逐个执行,并可携带期望 revision,让持有陈旧快照的写入方被拒绝,而不是悄悄覆盖较新的写入。文档必须由挂载的提供方存储;没有提供方时一切照旧,配置保持组合原样。
12
+ 当用户需要在运行时修改插件配置,且不能重启或重新读取 `cordis.yml` 时,请使用本包。每个 namespace 合并 schema 默认值、部署配置与用户覆盖;读取方会得到深冻结的解析值快照,并可观察已提交的变更。写入只影响用户覆盖、按 namespace 串行执行,并可拒绝陈旧 revision,避免覆盖较新的变更。持久化运行时编辑需要先配置设置存储;否则插件仍可继续使用组合配置。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-settings",
3
3
  "description": "Abstract user-settings seam (ctx.settings) for the DeepSeek Harness",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,20 +37,20 @@
37
37
  ],
38
38
  "license": "MIT",
39
39
  "peerDependencies": {
40
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.1",
40
41
  "@deepseek-ai/cordis": "^4.0.2",
41
- "@deepseek-ai/dsh-brand": "^0.1.3-alpha.2",
42
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
43
- "@deepseek-ai/dsh-invariants": "^0.1.3-alpha.2",
42
+ "@deepseek-ai/dsh-invariants": "^0.1.5-alpha.1",
43
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
44
44
  "@deepseek-ai/schemastery": "^3.18.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@deepseek-ai/cordis": "^4.0.2",
48
- "@deepseek-ai/dsh-brand": "^0.1.3-alpha.2",
49
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
48
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.1",
49
+ "@deepseek-ai/dsh-invariants": "^0.1.5-alpha.1",
50
50
  "@deepseek-ai/schemastery": "^3.18.2",
51
- "@deepseek-ai/dsh-invariants": "^0.1.3-alpha.2"
51
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1"
52
52
  },
53
53
  "dependencies": {
54
- "@deepseek-ai/dsh-util-values": "^0.1.3-alpha.2"
54
+ "@deepseek-ai/dsh-util-values": "^0.1.5-alpha.1"
55
55
  }
56
56
  }