dsh-model-think-level 1.0.2 → 1.0.3

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.
@@ -396,9 +396,13 @@ export declare function inputValueByLabel(card: HTMLElement, labels: readonly st
396
396
  * while an official card holds the document; the write is held on the route
397
397
  * and the card's own Save commits it (issue #7 / C2).
398
398
  *
399
- * The rows that ARE on screen keep answering for themselves: their editors
400
- * hold the user's unsaved draft, which this document walk cannot see, and two
401
- * writers for one row would let whichever ran last overwrite the other.
399
+ * An expanded row answers for itself when its editor is mounted. A row the
400
+ * user already configured (a stored ladder, an explicit "does not reason",
401
+ * or a deliberate unset) is left alone — bulk adapt must not overwrite that.
402
+ * A row that is expanded but still has no thinking-level declaration is not
403
+ * configured: this walk adapts it too. Two writers never share one row,
404
+ * because a configured expanded row is skipped here and an unconfigured one
405
+ * has no in-flight ladder draft to protect.
402
406
  * @param state - mutable scan state: the adapting guard and the held ledger.
403
407
  * @param deps - the injection dependencies.
404
408
  * @param route - the provider route whose models are adapted.
@@ -23,7 +23,7 @@
23
23
  import type { ModelProviderGroup, ModelReasoning, ModelSelection } from '@deepseek-ai/dsh-api-session-controller/types';
24
24
  import type { SettingsDescribeValue, SettingsNamespaceView, SettingsPathOpView } from '@deepseek-ai/dsh-api-remotes/client';
25
25
  import type { ModelDirectory, ModelDirectoryState } from '@deepseek-ai/dsh-client-ui-model-selection/client';
26
- import type { CompatSuggestion, InputModalities, InputSource, ReasoningEfforts } from '../knowledge.js';
26
+ import type { CompatSuggestion, InputModalities, InputSource, ReasoningEfforts, ThinkingLevel } from '../knowledge.js';
27
27
  /** The settings answer envelope, in the official `RemoteResult` shape. */
28
28
  export type SettingsRemoteResult<T> = {
29
29
  ok: true;
@@ -197,6 +197,12 @@ export type SuggestReply = {
197
197
  efforts: ReasoningEfforts | false;
198
198
  /** The compat block to write alongside, if any. */
199
199
  compat?: CompatSuggestion;
200
+ /**
201
+ * The vendor's own default level, when the knowledge base names one
202
+ * and the suggested ladder carries it. The row's auto-adapt and the
203
+ * provider-wide seat both write it as the model's starting effort.
204
+ */
205
+ defaultEffort?: ThinkingLevel;
200
206
  /** Request modalities to declare, when derivable. */
201
207
  input?: InputModalities;
202
208
  /** Where the modality part came from -- its confidence rides this. */