dsh-thinking-levels 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/lib/index.js +9 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -137,8 +137,15 @@ export function apply(ctx, config = DEFAULT_CONFIG) {
137
137
  return { ...seed, reasoningEffort: level };
138
138
  }, { prepend: true });
139
139
  // Advertise the `auto` mask in the model directory so the session model
140
- // selector offers it alongside Off/Low/High/Max.
141
- advertiseAutoEffort(ctx.get('llm'));
140
+ // selector offers it alongside Off/Low/High/Max. Adapters may register after
141
+ // this plugin's apply (the load order differs between the CLI and DSH
142
+ // Desktop), so the wrapper also re-runs on every `llm/adapters-updated`.
143
+ const llm = ctx.get('llm');
144
+ advertiseAutoEffort(llm);
145
+ const onAny = ctx.on;
146
+ onAny('llm/adapters-updated', () => {
147
+ advertiseAutoEffort(ctx.get('llm'));
148
+ });
142
149
  // Per-tool wall-clock telemetry: log tool/call -> tool/result durations.
143
150
  // Same boundary widening as above (agent/tool is a generated scope event).
144
151
  const started = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-thinking-levels",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "DSH host plugin: thinking-level (reasoning_effort) control for dsh — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
5
5
  "repository": {
6
6
  "type": "git",