dsh-advisor 0.1.3 → 0.1.4

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.md CHANGED
@@ -5,6 +5,7 @@ English | [中文](README.zh.md)
5
5
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
6
  ![node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-339933.svg)
7
7
  ![dsh](https://img.shields.io/badge/dsh-DeepSeek%20Harness%20compatible-4B32C3.svg)
8
+ [![dshfind](https://dshfind.com/api/badge/omdsh-dev/dsh-advisor)](https://dshfind.com/plugins/omdsh-dev/dsh-advisor?ref=badge)
8
9
 
9
10
  A standalone dsh plugin bundle porting the omp "advisor"
10
11
  subsystem: a per-session reviewer model that observes the primary transcript,
@@ -231,59 +232,42 @@ harness iteration roadmap):
231
232
 
232
233
  ## Development
233
234
 
234
- The bundle builds itself on install: `package.json` declares `"prepare": "node
235
- scripts/setup-dsh-links.mjs && pnpm build"` (the dev-time link farm plus the
236
- same build `prepack` runs), so any clone is
237
- immediately buildable **once `DSH_HOME` points at a dsh home whose
238
- `source/current` is a dsh source tree** (or `DSH_SOURCE_DIR` points at such a
239
- tree directly). The private
240
- `@deepseek-ai/dsh-*` runtime dependencies are **peerDependencies only**; at dev
241
- time `scripts/setup-dsh-links.mjs` (wired into `prepare`, standalone as
242
- `pnpm dsh:link`, verified with `pnpm dsh:link:check`) links the REAL packages
243
- from that tree into `node_modules/@deepseek-ai/` — every `@deepseek-ai/*`
244
- package the tree declares (tool CLIs with a `bin` are skipped: linking them
245
- would make pnpm write their bins into the shared tree), a bin-less shim for
246
- the in-box `cordis` framework, and the tree's own `react`/`react-dom` copies
247
- (node resolution — including externalized CJS deps — must see ONE react
248
- identity, the identity the real client packages use; the dsh profile
249
- convention `nodeLinker=hoisted` lives in `pnpm-workspace.yaml` (pnpm 11+
250
- ignores non-auth settings in `.npmrc`), so no `.pnpm` per-package dirs shadow
251
- those links). The farm is idempotent, prunes stale entries, and fails with
252
- guidance when the tree is missing or a peer cannot be linked.
253
- `pnpm-workspace.yaml` also sets `autoInstallPeers: false` (dsh profile
254
- convention): the private peers must never be fetched from the npm registry.
235
+ The bundle builds itself on install: `package.json` declares `"prepare":
236
+ "pnpm build"` (the same build `prepack` runs), so any clone is immediately
237
+ buildable. The private `@deepseek-ai/dsh-*` runtime dependencies are
238
+ **peerDependencies only** (never `dependencies` / `devDependencies`);
239
+ `pnpm-workspace.yaml` sets `autoInstallPeers: true` + `nodeLinker: hoisted`
240
+ (pnpm 11+ ignores non-auth settings in `.npmrc`), so at dev time pnpm
241
+ resolves the real `@deepseek-ai/*` packages from the npm registry using the
242
+ auth token in your user-level `~/.npmrc`. There is no local link-farm and no
243
+ `DSH_HOME` / `DSH_SOURCE_DIR` prerequisite for dependency resolution.
255
244
 
256
245
  ```sh
257
- export DSH_HOME=~/.dsh # a dsh home with source/current (or set DSH_SOURCE_DIR)
258
- pnpm install # registry deps + link farm (via prepare), no private-registry access
246
+ pnpm install # registry deps incl. the @deepseek-ai/* peers (via autoInstallPeers + ~/.npmrc auth)
259
247
  pnpm test # vitest (unit + the composed integration loop)
260
248
  pnpm typecheck # tsc --noEmit (node) + tsc -p tsconfig.client.json --noEmit + tsc -p tsconfig.spec.json --noEmit
261
249
  pnpm build # tsc -p tsconfig.build.json emit to lib/ + node scripts/build-client.mjs (client bundle)
262
250
  pnpm pack # build + produce dsh-advisor-0.0.1.tgz
263
251
  ```
264
252
 
265
- On Windows the link farm creates directory entries as junctions (no special
266
- privileges), but the cordis shim's file entries use file symlinks, which need
267
- [Developer Mode](https://learn.microsoft.com/windows/apps/get-started/enable-your-device-for-development)
268
- (or an admin shell) — enable it before `pnpm install`. Windows has no
269
- `HOME`, so the script falls back to `USERPROFILE` to resolve the dsh source
270
- tree.
271
-
272
253
  The in-box `cordis` framework is declared as the scoped peer
273
- `@deepseek-ai/cordis: ^4.0.1-rc.1` (the range carries the exact publish tag —
274
- a comparator prerelease such as `^4.0.0-rc.7` never matches the vendored
275
- `4.0.1-rc.1` per the node-semver tuple rule); after install the link farm's
276
- bin-less cordis shim at `node_modules/@deepseek-ai/cordis` answers the scoped
277
- name and resolves to the vendored files, because the real packages type and
278
- run against the vendored build and module identity requires dev-time
279
- `import '@deepseek-ai/cordis'` to resolve to the same files. The public
280
- devDependencies (`@deepseek-ai/schemastery`, `react`, …) resolve from the npm registry as
281
- usual.
282
-
283
- `prepack` runs `pnpm build`; `prepare` runs the link farm and the build, so
284
- `pnpm pack` runs the build twice (once per lifecycle) the documented
285
- tradeoff that keeps git-install builds working. There is no `postinstall`
286
- step: already-built tarball installs skip the build entirely.
254
+ `@deepseek-ai/cordis` (never bare `cordis`) the declared pin is
255
+ `"@deepseek-ai/cordis": "^4.0.1"` (`package.json` peerDependencies). Peer
256
+ ranges against prerelease publishes must carry the exact publish tag — e.g.
257
+ the `@deepseek-ai/dsh-*` peers are pinned `^0.1.0-rc.6`; per the node-semver
258
+ prerelease-tuple rule a comparator with a prerelease only matches the same
259
+ `[major, minor, patch]` tuple, so a range like `^4.0.0-rc.7` never matches a
260
+ `4.0.1-rc.1` publish.
261
+ The scoped peer resolves from the npm registry like the other
262
+ `@deepseek-ai/*` peers, so dev-time `import '@deepseek-ai/cordis'` and the
263
+ host see the same package identity.
264
+
265
+ `prepack` runs `pnpm build`; `prepare` runs `pnpm build`, so `pnpm pack` runs
266
+ the build twice (once per lifecycle) the documented tradeoff that keeps
267
+ git-install builds working. There is no `postinstall` step: already-built
268
+ tarball installs skip the build entirely. A local `dsh plugin add .` mounts
269
+ the bundle from the working tree, so run `pnpm build` (or `pnpm install`)
270
+ first — pnpm does not run `prepare` for `link:` dependencies.
287
271
 
288
272
  The integration test (`tests/integration.test.ts`) composes the plugin into a
289
273
  real cordis context with a stub LLM adapter and drives the full
package/README.zh.md CHANGED
@@ -5,6 +5,7 @@
5
5
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
6
  ![node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-339933.svg)
7
7
  ![dsh](https://img.shields.io/badge/dsh-DeepSeek%20Harness%20compatible-4B32C3.svg)
8
+ [![dshfind](https://dshfind.com/api/badge/omdsh-dev/dsh-advisor?lang=zh)](https://dshfind.com/zh/plugins/omdsh-dev/dsh-advisor?ref=badge)
8
9
 
9
10
  一个移植 omp「advisor」子系统的独立 dsh 插件组合包:一个按会话运行的评审模型,观察主会话 transcript,用显式配置的模型(provider 与 model 均为必填)评审每个已完成的 stepped turn,并把按严重度排序的建议(nit / concern / blocker)注入回会话 —— 不污染主循环,也不递归地评审自己。
10
11
 
@@ -136,22 +137,19 @@ MVP 有意放弃与 omp 的完整对等。已接受的差距(在 harness 迭
136
137
 
137
138
  ## 开发
138
139
 
139
- 组合包在安装时自行构建:`package.json` 声明了 `"prepare": "node scripts/setup-dsh-links.mjs && pnpm build"`(开发期链接农场、与 `prepack` 相同的构建),因此任何克隆在 **`DSH_HOME` 指向一个含 `source/current` 的 dsh home(或 `DSH_SOURCE_DIR` 直接指向一个 dsh 源码树)** 后立即可构建。私有的 `@deepseek-ai/dsh-*` 运行时依赖**只声明为 peerDependencies**;开发期由 `scripts/setup-dsh-links.mjs`(挂在 `prepare` 上、独立命令为 `pnpm dsh:link`、用 `pnpm dsh:link:check` 校验)把该树里的**真实包**链接进 `node_modules/@deepseek-ai/` —— 树声明的每个 `@deepseek-ai/*` 包(声明 `bin` 的工具 CLI 会被跳过:链接它们会让 pnpm 向共享树写入 bin)、无 bin 的内置 `cordis` 框架 shim、以及树自带的 `react`/`react-dom` 副本(node 解析 —— 包括外部化的 CJS 依赖 —— 必须看到同一个 react 身份,即真实 client 包所用的身份;dsh profile 约定 `nodeLinker=hoisted` 放在 `pnpm-workspace.yaml`(pnpm 11+ 忽略 `.npmrc` 中的非认证设置),避免 `.pnpm` 逐包目录遮蔽这些链接)。农场幂等、会清理陈旧条目,并在树缺失或 peer 无法链接时给出明确指引。`pnpm-workspace.yaml` 还设了 `autoInstallPeers: false`(dsh profile 约定):私有 peer 绝不能从 npm registry 获取。
140
+ 组合包在安装时自行构建:`package.json` 声明了 `"prepare": "pnpm build"`(与 `prepack` 相同的构建),因此任何克隆都立即可构建。私有的 `@deepseek-ai/dsh-*` 运行时依赖**只声明为 peerDependencies**(绝不进 `dependencies` / `devDependencies`);`pnpm-workspace.yaml` 设了 `autoInstallPeers: true` + `nodeLinker: hoisted`(pnpm 11+ 忽略 `.npmrc` 中的非认证设置),因此开发期 pnpm 用你用户级 `~/.npmrc` 里的认证令牌从 npm registry 解析真实的 `@deepseek-ai/*` 包。没有本地链接农场,依赖解析也不需要 `DSH_HOME` / `DSH_SOURCE_DIR` 前置条件。
140
141
 
141
142
  ```sh
142
- export DSH_HOME=~/.dsh # source/current dsh home(或直接设置 DSH_SOURCE_DIR)
143
- pnpm install # registry deps + 链接农场(经 prepare),无需访问私有 registry
143
+ pnpm install # registry deps,含 @deepseek-ai/* peers(经 autoInstallPeers + ~/.npmrc 认证)
144
144
  pnpm test # vitest (unit + the composed integration loop)
145
145
  pnpm typecheck # tsc --noEmit (node) + tsc -p tsconfig.client.json --noEmit + tsc -p tsconfig.spec.json --noEmit
146
146
  pnpm build # tsc -p tsconfig.build.json emit to lib/ + node scripts/build-client.mjs (client bundle)
147
147
  pnpm pack # build + produce dsh-advisor-0.0.1.tgz
148
148
  ```
149
149
 
150
- Windows 上链接农场的目录条目以 junction 创建(无需特权),但 cordis shim 的文件条目使用文件符号链接,需要开启[开发者模式](https://learn.microsoft.com/windows/apps/get-started/enable-your-device-for-development)(或以管理员 shell 运行)——请先开启再执行 `pnpm install`。Windows 没有 `HOME`,脚本回退到 `USERPROFILE` 解析 dsh 源码树。
150
+ 内置 `cordis` 框架声明为 scoped peer `@deepseek-ai/cordis`(绝不用裸名 `cordis`)。针对 prerelease 发布的 peer 范围必须带精确的发布 tag —— 例如 `@deepseek-ai/dsh-*` peers 钉在 `^0.1.0-rc.6`;按 node-semver prerelease-tuple 规则,带 prerelease 的 comparator 只匹配同 `[major, minor, patch]` tuple,因此 `^4.0.0-rc.7` 这样的范围永远匹配不到 `4.0.1-rc.1` 的发布。scoped peer 与其他 `@deepseek-ai/*` peers 一样从 npm registry 解析,所以开发期的 `import '@deepseek-ai/cordis'` 与宿主看到的是同一个包身份。
151
151
 
152
- 内置 `cordis` 框架声明为 scoped peer `@deepseek-ai/cordis: ^4.0.1-rc.1`(范围必须带精确的发布 tag —— 带 prerelease 的 comparator 只匹配同 `[major, minor, patch]` tuple,`^4.0.0-rc.7` 永远不匹配 vendored `4.0.1-rc.1`);安装后链接农场的无 bin cordis shim 位于 `node_modules/@deepseek-ai/cordis`,以 scoped 名应答并解析到 vendored 文件,因为真实包是对着 vendored 构建类型化/运行的,模块身份要求开发期的 `import '@deepseek-ai/cordis'` 解析到同一份文件。其余公开 devDependencies(`@deepseek-ai/schemastery`、`react` 等)照常从 npm registry 解析。
153
-
154
- `prepack` 运行 `pnpm build`;`prepare` 运行链接农场与构建,因此 `pnpm pack` 会构建两次(每个生命周期一次)——这是为保持 git 安装可构建而接受的取舍。没有 `postinstall` 步骤:tarball 安装已带构建产物,完全跳过构建。
152
+ `prepack` 运行 `pnpm build`;`prepare` 运行 `pnpm build`,因此 `pnpm pack` 会构建两次(每个生命周期一次)——这是为保持 git 安装可构建而接受的取舍。没有 `postinstall` 步骤:tarball 安装已带构建产物,完全跳过构建。本地 `dsh plugin add .` 从工作树挂载 bundle,因此请先运行 `pnpm build`(或 `pnpm install`)——pnpm 不会为 `link:` 依赖运行 `prepare`。
155
153
 
156
154
  集成测试(`tests/integration.test.ts`)把插件组合进一个带 stub LLM adapter 的真实 cordis 上下文,驱动完整的 turn → delta → advisor call → inject/steer 循环。
157
155
 
@@ -79,8 +79,6 @@ export interface AdvisorRuntimeOptions {
79
79
  readonly model: string;
80
80
  /** System prompt sent with every advisor call (config override or KD-2 default). */
81
81
  readonly systemPrompt: string;
82
- /** Output-token cap (KD-2); default 256. */
83
- readonly maxTokens?: number;
84
82
  /** Backoff for the single transient retry (KD-5); default 1000ms. */
85
83
  readonly retryBackoffMs?: number;
86
84
  /**
@@ -153,7 +151,6 @@ export declare class AdvisorRuntime {
153
151
  private readonly provider;
154
152
  private readonly model;
155
153
  private readonly systemPrompt;
156
- private readonly maxTokens;
157
154
  private readonly retryBackoffMs;
158
155
  private readonly callTimeoutMs;
159
156
  private readonly maxQueued;
@@ -167,9 +164,13 @@ export declare class AdvisorRuntime {
167
164
  * W-1 / qc3 F-3): resolving the model's declared efforts on EVERY advisor
168
165
  * call would add an adapter round-trip per delta; one resolution per
169
166
  * (provider, model) per runtime suffices — the route is pinned for the
170
- * runtime's lifetime.
167
+ * runtime's lifetime. ONLY definitive verdicts are cached ('off' or a
168
+ * successful no-'off' resolution); a resolution failure (throw or deadline
169
+ * abort) is never cached, so the next call resolves afresh.
171
170
  */
172
171
  private readonly reasoningEffortCache;
172
+ /** One-shot latch for the definitive no-'off' log line (log-once per runtime). */
173
+ private thinkingOffLogged;
173
174
  private readonly queue;
174
175
  private state;
175
176
  private draining;
@@ -229,14 +230,19 @@ export declare class AdvisorRuntime {
229
230
  * qc3 F-3): pass the branded 'off' effort only when the resolved model's
230
231
  * `reasoning.efforts` includes it, else omit the option (`resolveCallFor`
231
232
  * materializes the adapter default). Cached per (provider, model) — one
232
- * resolution per runtime, never per call. A resolution failure (unknown
233
- * route, adapter throw, or a deadline abort — n4 QC N-5) is advisory: the
234
- * call proceeds WITHOUT the option, matching the pre-n4 behavior for every
235
- * model that does not declare 'off'. The optional `signal` (the call's
236
- * deadline signal) is threaded into `resolveModelInfo`, whose contract
237
- * allows adapter-owned asynchronous lookup with cancellation a hung
238
- * lookup that honors the signal aborts with the call deadline instead of
239
- * wedging the drain.
233
+ * resolution per runtime, never per call but ONLY definitive verdicts are
234
+ * cached: a resolution failure (unknown route, adapter throw, or a deadline
235
+ * abort n4 QC N-5) is advisory and returns `undefined` WITHOUT caching, so
236
+ * a transient failure retries the resolution on the next call instead of
237
+ * latching thinking-off unavailable for the runtime's lifetime. A definitive
238
+ * no-'off' verdict logs the unavailable line once per runtime
239
+ * (`thinkingOffLogged`); resolution failures get no log-once latch of their
240
+ * own. The optional `signal` (the call's deadline signal) is threaded into
241
+ * `resolveModelInfo`, whose contract allows adapter-owned asynchronous
242
+ * lookup with cancellation — a hung lookup that honors the signal aborts
243
+ * with the call deadline instead of wedging the drain.
240
244
  */
241
245
  private resolveReasoningEffort;
246
+ /** Emit the definitive no-'off' line exactly once per runtime. */
247
+ private logThinkingOffUnavailable;
242
248
  }
@@ -90,8 +90,6 @@ import { createUserMessage, isQuotaExceededError, ReasoningEffortId } from '@dee
90
90
  import { INVALID_CREDENTIAL_CODE, QUOTA_EXCEEDED_CODE } from '@deepseek-ai/dsh-llm';
91
91
  import { deadline, timeoutOf } from '@deepseek-ai/dsh-timeout';
92
92
  import { createEmissionGuard } from './emission-guard.js';
93
- /** Pinned policy values (KD-2 / KD-5). */
94
- const DEFAULT_MAX_TOKENS = 256;
95
93
  /**
96
94
  * n4 user direction: the advisor call runs with a 20x token budget
97
95
  * (256 -> 5120) so even a reasoning-heavy reply cannot starve the JSON frame.
@@ -275,7 +273,6 @@ export class AdvisorRuntime {
275
273
  provider;
276
274
  model;
277
275
  systemPrompt;
278
- maxTokens;
279
276
  retryBackoffMs;
280
277
  callTimeoutMs;
281
278
  maxQueued;
@@ -289,9 +286,13 @@ export class AdvisorRuntime {
289
286
  * W-1 / qc3 F-3): resolving the model's declared efforts on EVERY advisor
290
287
  * call would add an adapter round-trip per delta; one resolution per
291
288
  * (provider, model) per runtime suffices — the route is pinned for the
292
- * runtime's lifetime.
289
+ * runtime's lifetime. ONLY definitive verdicts are cached ('off' or a
290
+ * successful no-'off' resolution); a resolution failure (throw or deadline
291
+ * abort) is never cached, so the next call resolves afresh.
293
292
  */
294
293
  reasoningEffortCache = new Map();
294
+ /** One-shot latch for the definitive no-'off' log line (log-once per runtime). */
295
+ thinkingOffLogged = false;
295
296
  queue = [];
296
297
  state = 'running';
297
298
  draining = false;
@@ -304,7 +305,6 @@ export class AdvisorRuntime {
304
305
  this.provider = options.provider;
305
306
  this.model = options.model;
306
307
  this.systemPrompt = options.systemPrompt;
307
- this.maxTokens = options.maxTokens ?? DEFAULT_MAX_TOKENS;
308
308
  this.retryBackoffMs = options.retryBackoffMs ?? DEFAULT_RETRY_BACKOFF_MS;
309
309
  this.callTimeoutMs = options.callTimeoutMs ?? DEFAULT_CALL_TIMEOUT_MS;
310
310
  this.maxQueued = options.maxQueued ?? DEFAULT_MAX_QUEUED;
@@ -632,31 +632,53 @@ export class AdvisorRuntime {
632
632
  * qc3 F-3): pass the branded 'off' effort only when the resolved model's
633
633
  * `reasoning.efforts` includes it, else omit the option (`resolveCallFor`
634
634
  * materializes the adapter default). Cached per (provider, model) — one
635
- * resolution per runtime, never per call. A resolution failure (unknown
636
- * route, adapter throw, or a deadline abort — n4 QC N-5) is advisory: the
637
- * call proceeds WITHOUT the option, matching the pre-n4 behavior for every
638
- * model that does not declare 'off'. The optional `signal` (the call's
639
- * deadline signal) is threaded into `resolveModelInfo`, whose contract
640
- * allows adapter-owned asynchronous lookup with cancellation a hung
641
- * lookup that honors the signal aborts with the call deadline instead of
642
- * wedging the drain.
635
+ * resolution per runtime, never per call but ONLY definitive verdicts are
636
+ * cached: a resolution failure (unknown route, adapter throw, or a deadline
637
+ * abort n4 QC N-5) is advisory and returns `undefined` WITHOUT caching, so
638
+ * a transient failure retries the resolution on the next call instead of
639
+ * latching thinking-off unavailable for the runtime's lifetime. A definitive
640
+ * no-'off' verdict logs the unavailable line once per runtime
641
+ * (`thinkingOffLogged`); resolution failures get no log-once latch of their
642
+ * own. The optional `signal` (the call's deadline signal) is threaded into
643
+ * `resolveModelInfo`, whose contract allows adapter-owned asynchronous
644
+ * lookup with cancellation — a hung lookup that honors the signal aborts
645
+ * with the call deadline instead of wedging the drain.
643
646
  */
644
647
  async resolveReasoningEffort(signal) {
645
648
  const key = `${this.provider}\u0000${this.model}`;
646
649
  if (this.reasoningEffortCache.has(key))
647
650
  return this.reasoningEffortCache.get(key);
651
+ // Method absent → definitive verdict: this runtime has no capability API
652
+ // at all (W-1 fallback), so 'off' is unreachable — cache and log once.
653
+ if (this.llm.resolveModelInfo === undefined) {
654
+ this.reasoningEffortCache.set(key, undefined);
655
+ this.logThinkingOffUnavailable('no capability API');
656
+ return undefined;
657
+ }
648
658
  let effort;
649
659
  try {
650
- const info = await this.llm.resolveModelInfo?.(this.provider, this.model, signal);
660
+ const info = await this.llm.resolveModelInfo(this.provider, this.model, signal);
651
661
  effort = info?.reasoning?.efforts.some((entry) => entry.id === ReasoningEffortId('off'))
652
662
  ? ReasoningEffortId('off')
653
663
  : undefined;
654
664
  }
655
665
  catch {
656
- effort = undefined;
666
+ // Failure (adapter throw OR deadline abort — one class): the call
667
+ // proceeds without the option, but the failure is NOT cached and gets no
668
+ // log-once latch — the next call resolves afresh.
669
+ return undefined;
657
670
  }
658
671
  this.reasoningEffortCache.set(key, effort);
672
+ if (effort === undefined)
673
+ this.logThinkingOffUnavailable('model does not advertise thinking-off');
659
674
  return effort;
660
675
  }
676
+ /** Emit the definitive no-'off' line exactly once per runtime. */
677
+ logThinkingOffUnavailable(reason) {
678
+ if (this.thinkingOffLogged)
679
+ return;
680
+ this.thinkingOffLogged = true;
681
+ this.logger.debug('advisor: thinking-off unavailable', { provider: this.provider, model: this.model, reason });
682
+ }
661
683
  }
662
684
  //# sourceMappingURL=advisor-runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"advisor-runtime.js","sourceRoot":"","sources":["../src/advisor-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACjG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AK,CAAC,CAAC;gBACtF,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC;gBAC1B,CAAC,CAAC,SAAS,CAAA;QACf,CAAC;QAAC,MAAM,CAAC;YACP,kEAAkE;YAClE,yEAAyE;YACzE,kDAAkD;YAClD,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QAC1C,IAAI,MAAM,KAAK,SAAS;YAAE,IAAI,CAAC,yBAAyB,CAAC,uCAAuC,CAAC,CAAA;QACjG,OAAO,MAAM,CAAA;IACf,CAAC;IAED,kEAAkE;IAC1D,yBAAyB,CAAC,MAAc;QAC9C,IAAI,IAAI,CAAC,iBAAiB;YAAE,OAAM;QAClC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAA;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IAChH,CAAC;CACF"}
@@ -187,7 +187,7 @@ export declare class AdvisorSettingsStore {
187
187
  private catalogPromise;
188
188
  /**
189
189
  * Bumped by every successful load(): an in-flight catalog fetch started
190
- * before a bump is stale (the models/changed invalidation that triggered
190
+ * before a bump is stale (the connection/reset invalidation that triggered
191
191
  * the reload happened mid-fetch) and caches nothing (qc1 W-1 / qc3 S-1).
192
192
  */
193
193
  private catalogGeneration;
package/lib/client.js CHANGED
@@ -364,7 +364,7 @@ var AdvisorSettingsStore = class {
364
364
  __publicField(this, "catalogPromise");
365
365
  /**
366
366
  * Bumped by every successful load(): an in-flight catalog fetch started
367
- * before a bump is stale (the models/changed invalidation that triggered
367
+ * before a bump is stale (the connection/reset invalidation that triggered
368
368
  * the reload happened mid-fetch) and caches nothing (qc1 W-1 / qc3 S-1).
369
369
  */
370
370
  __publicField(this, "catalogGeneration", 0);
@@ -822,6 +822,11 @@ function apply(ctx) {
822
822
  });
823
823
  };
824
824
  const disposers = [ctx.on("connection/reset", refresh)];
825
+ const remote = ctx.get("remote");
826
+ if (remote) {
827
+ disposers.push(remote.$on("settings/document-updated", refresh));
828
+ disposers.push(remote.$on("llm/adapters-updated", refresh));
829
+ }
825
830
  return () => {
826
831
  for (const dispose of disposers) dispose();
827
832
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-advisor",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "dsh plugin bundle porting the omp advisor subsystem: a per-session reviewer model that observes the primary transcript and injects severity-ranked advice (nit/concern/blocker).",
6
6
  "repository": {