@hyzyn/dsh-tty 0.20.1 → 0.21.0

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.
@@ -18,7 +18,9 @@ async function run() {
18
18
  const stubFiber = app.plugin({
19
19
  name: 'settings-stub',
20
20
  apply: (ctx) => {
21
- ctx.provide('settings', { register: () => ({ get: () => ({}), update: async () => {} }) })
21
+ // DSH ≥0.1.7 的 settings 服务(SettingsForms):describe / update / configure。
22
+ // 本用例不测配置持久化,空 describe 即可(插件的 settings effect 拿到空值)。
23
+ ctx.provide('settings', { describe: () => [], update: async () => {}, configure: () => () => {} })
22
24
  ctx.provide('tools', { register: () => () => {} })
23
25
  // 与真实契约同形(section/context 返回注销器):插件热应用时会调用重建
24
26
  ctx.provide('systemPrompt', {
@@ -94,7 +94,9 @@ async function run() {
94
94
  const stubFiber = app.plugin({
95
95
  name: 'windows-smoke-stub',
96
96
  apply: (ctx) => {
97
- ctx.provide('settings', { register: () => ({ get: () => ({}), update: async () => {} }) })
97
+ // DSH ≥0.1.7 的 settings 服务(SettingsForms):describe / update / configure。
98
+ // 本用例不测配置持久化,空 describe 即可(插件的 settings effect 拿到空值)。
99
+ ctx.provide('settings', { describe: () => [], update: async () => {}, configure: () => () => {} })
98
100
  ctx.provide('tools', { register: () => () => {} })
99
101
  },
100
102
  })