@goodandready/dsh-context-lens 0.1.21 → 0.1.23

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/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ All notable changes to `@goodandready/dsh-context-lens` will be documented in th
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.1.23
9
+
10
+ ### Fixed
11
+ - Settings no longer wait on the removed settingsScope service. The client uses configForms (#90).
12
+
13
+ ## [0.1.22] - 2026-09-19
14
+
15
+ ### Fixed
16
+ - **Settings reachable again on the plugin's own page**: the current DSH core
17
+ (0.1.6-alpha.2) renders a plugin's configuration page only for entries registered
18
+ in the plugin-list seat `plugins.item` — that is how `dsh-agentrouter` and
19
+ `dsh-agent-orchestrator` show their settings, while the row seat and the legacy
20
+ card alone leave the page without the form. The view-aware card is now registered
21
+ there too (`id: 'dsh-context-lens'`, order 60, static label); `plugins.row.config`
22
+ and `settings.plugin.item` stay as fallbacks.
23
+
8
24
  ## [0.1.21] - 2026-09-19
9
25
 
10
26
  ### Fixed
package/lib/client.js CHANGED
@@ -620,9 +620,9 @@ window.__ModuleLoader__.load({
620
620
  const scopeRef = React.useRef(null);
621
621
  if (!scopeRef.current && _ctx) {
622
622
  try {
623
- const s = _ctx.settingsScope || (_ctx.get && _ctx.get('settingsScope'));
624
- if (s && typeof s.bind === 'function') {
625
- scopeRef.current = s.bind({ namespace: NS });
623
+ const s = _ctx.configForms || (_ctx.get && _ctx.get('configForms'));
624
+ if (s && typeof s.get === 'function') {
625
+ scopeRef.current = s.get(NS);
626
626
  }
627
627
  } catch (e) { scopeRef.current = null; }
628
628
  }
@@ -975,7 +975,7 @@ window.__ModuleLoader__.load({
975
975
  );
976
976
  }
977
977
 
978
- module.exports.inject = ['slots', 'locale', 'settingsScope'];
978
+ module.exports.inject = ['slots', 'locale', 'configForms'];
979
979
  module.exports.apply = function apply(ctx) {
980
980
  let hasEffect = false;
981
981
  try {
@@ -999,11 +999,21 @@ window.__ModuleLoader__.load({
999
999
  }
1000
1000
  if (!ctx.slots) return;
1001
1001
  let registered = false;
1002
- // Primary seat for the current core (0.1.6-alpha.2): the plugin's own row on
1003
- // the Plugins page, keyed '<package>#<row id>'. The legacy settings.plugin.item
1004
- // seat below stays as a fallback for older cores.
1002
+ // Primary seat for the current core (0.1.6-alpha.2): the plugin-list seat
1003
+ // 'plugins.item', which is the one the Plugins page renders as the plugin's own
1004
+ // page with its configuration (the host draws the title, icon, crumb and
1005
+ // padding and asks for view 'summary' or view 'page'). The row seat and the
1006
+ // legacy settings.plugin.item seat below stay as fallbacks.
1005
1007
  if (typeof ctx.slots.inject === 'function') {
1006
1008
  try {
1009
+ ctx.slots.inject('plugins.item', () => ctx.slots.register({
1010
+ name: 'plugins.item',
1011
+ id: ROW_ID,
1012
+ order: 60,
1013
+ label: () => 'Context Lens',
1014
+ locale: NS,
1015
+ inject: () => ({ ctx })
1016
+ }, PluginCard));
1007
1017
  ctx.slots.inject('plugins.row.config', () => ctx.slots.register({
1008
1018
  name: 'plugins.row.config',
1009
1019
  key: ROW_CONFIG_KEY,
@@ -1011,7 +1021,7 @@ window.__ModuleLoader__.load({
1011
1021
  inject: () => ({ ctx })
1012
1022
  }, PluginCard));
1013
1023
  } catch (e) {
1014
- console.error('[dsh-context-lens] plugins.row.config inject failed', e && e.stack || e);
1024
+ console.error('[dsh-context-lens] plugins.item / plugins.row.config inject failed', e && e.stack || e);
1015
1025
  }
1016
1026
  }
1017
1027
  const doRegister = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-context-lens",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "DSH plugin for AST context compression, test log filtering, and token budget guard",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -47,7 +47,8 @@
47
47
  "platform": "web",
48
48
  "inject": [
49
49
  "@deepseek-ai/dsh-client-locale",
50
- "@deepseek-ai/dsh-client-ui-settings"
50
+ "@deepseek-ai/dsh-client-ui-settings",
51
+ "@deepseek-ai/dsh-client-ui-slots"
51
52
  ]
52
53
  }
53
54
  },