dsh-model-think-level 2.0.2 → 2.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.
@@ -216,6 +216,8 @@ export type SuggestReply = {
216
216
  input?: InputModalities;
217
217
  /** Where the modality part came from -- its confidence rides this. */
218
218
  inputSource?: InputSource;
219
+ /** Whether the model is an image generator (生图), when derivable. */
220
+ imageGen?: boolean;
219
221
  /** Reference context window; a mounted row also echoes it into the official capacity input. */
220
222
  contextWindow?: number;
221
223
  /** Reference max output tokens; a mounted row also echoes it into the official capacity input. */
@@ -248,6 +250,13 @@ export interface StagedRouteFacts {
248
250
  * absence as a decision); an array writes exactly those modalities.
249
251
  */
250
252
  export type InputIntent = InputModalities | null | undefined;
253
+ /**
254
+ * The image-generation part of a write intent. Undefined leaves whatever the
255
+ * document holds untouched (a ladder-only edit never flips the row's kind);
256
+ * false clears the marker durably; true writes it — the composer's switcher
257
+ * then hides the row (it cannot serve a chat turn).
258
+ */
259
+ export type ImageGenIntent = boolean | null | undefined;
251
260
  /**
252
261
  * The effort-ladder part of a write intent. Undefined unsets the declaration
253
262
  * durably (the marker records the absence); the 'keep' sentinel leaves
@@ -275,6 +284,8 @@ export interface HeldWrite {
275
284
  compat?: CompatSuggestion;
276
285
  /** The modality part, when this edit made one. */
277
286
  input?: InputIntent;
287
+ /** The image-generation part, when this edit made one. */
288
+ imageGen?: ImageGenIntent;
278
289
  /** The per-model default-effort pick, when this edit made one. */
279
290
  defaultEffort?: DefaultEffortIntent;
280
291
  }
@@ -295,6 +306,8 @@ export interface PendingWrite {
295
306
  compat?: CompatSuggestion;
296
307
  /** The modality part, when this edit made one. */
297
308
  input?: InputIntent;
309
+ /** The image-generation part, when this edit made one. */
310
+ imageGen?: ImageGenIntent;
298
311
  /** The per-model default-effort pick, when this edit made one. */
299
312
  defaultEffort?: DefaultEffortIntent;
300
313
  }
@@ -310,6 +323,8 @@ export interface PendingWriteParts {
310
323
  efforts: EffortWriteIntent;
311
324
  /** The modality intent, when this write made one. */
312
325
  input?: InputIntent;
326
+ /** The image-generation intent, when this write made one. */
327
+ imageGen?: ImageGenIntent;
313
328
  /** The compat block of an applied suggestion. */
314
329
  appliedCompat?: CompatSuggestion;
315
330
  /** The route's wire protocol: what decides the thinking-budget default. */
@@ -392,11 +407,11 @@ export interface EffortEditorApi {
392
407
  * itself reports through {@link commit} since C2, and the injector's ledgers
393
408
  * call the batch writer directly — neither goes through this method.
394
409
  */
395
- writeEfforts(route: string, modelId: string, efforts: EffortWriteIntent, compat?: CompatSuggestion, input?: InputIntent, defaultEffort?: DefaultEffortIntent): Promise<WriteEffortsReply>;
410
+ writeEfforts(route: string, modelId: string, efforts: EffortWriteIntent, compat?: CompatSuggestion, input?: InputIntent, defaultEffort?: DefaultEffortIntent, imageGen?: ImageGenIntent): Promise<WriteEffortsReply>;
396
411
  /**
397
412
  * Stage one model's declaration for a route that does not exist in the
398
413
  * settings document yet (the create card). Synchronous, memory-only; the
399
414
  * injector flushes staged declarations once the route appears.
400
415
  */
401
- stageEfforts(route: string, modelId: string, efforts: EffortWriteIntent, compat?: CompatSuggestion, input?: InputModalities, defaultEffort?: DefaultEffortIntent): void;
416
+ stageEfforts(route: string, modelId: string, efforts: EffortWriteIntent, compat?: CompatSuggestion, input?: InputModalities, defaultEffort?: DefaultEffortIntent, imageGen?: ImageGenIntent): void;
402
417
  }