dsh-model-think-level 2.0.0 → 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.
Files changed (41) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +23 -13
  3. package/assets/NOTICE.md +15 -0
  4. package/assets/unified_bank.json +32910 -0
  5. package/lib/client/EffortEditor.d.ts +53 -21
  6. package/lib/client/FingerprintPane.d.ts +36 -0
  7. package/lib/client/capacity.d.ts +46 -0
  8. package/lib/client/configured-inputs.d.ts +11 -2
  9. package/lib/client/fingerprint-client.d.ts +81 -0
  10. package/lib/client/fingerprint-runner.d.ts +73 -0
  11. package/lib/client/index.d.ts +6 -0
  12. package/lib/client/injection/create-key-seat.d.ts +4 -5
  13. package/lib/client/injection/editor-tab-bar.d.ts +2 -1
  14. package/lib/client/injection/editor-tabs.d.ts +11 -1
  15. package/lib/client/injection/key-reveal.d.ts +12 -0
  16. package/lib/client/injection/models-page-editor.d.ts +117 -2
  17. package/lib/client/injection/provider-card-slot.d.ts +3 -1
  18. package/lib/client/key-manager-client.d.ts +2 -1
  19. package/lib/client/locales.d.ts +37 -9
  20. package/lib/client/ops.d.ts +15 -2
  21. package/lib/client/refresh-scheduler.d.ts +29 -0
  22. package/lib/client/styles.d.ts +1 -1
  23. package/lib/client/types.d.ts +26 -2
  24. package/lib/client.js +701 -225
  25. package/lib/client.js.map +4 -4
  26. package/lib/constants.d.ts +24 -0
  27. package/lib/detection.d.ts +7 -0
  28. package/lib/fingerprint/bank.d.ts +24 -0
  29. package/lib/fingerprint/challenges.d.ts +14 -0
  30. package/lib/fingerprint/core.d.ts +85 -0
  31. package/lib/fingerprint/eligibility.d.ts +8 -0
  32. package/lib/fingerprint/random.d.ts +4 -0
  33. package/lib/fingerprint/run.d.ts +128 -0
  34. package/lib/fingerprint/store.d.ts +31 -0
  35. package/lib/fingerprint/verdict.d.ts +90 -0
  36. package/lib/index.js +1212 -251
  37. package/lib/index.js.map +4 -4
  38. package/lib/key-probe.d.ts +13 -98
  39. package/lib/knowledge.d.ts +21 -0
  40. package/lib/multi-key-listing.d.ts +3 -3
  41. package/package.json +13 -5
@@ -116,6 +116,15 @@ export interface SettingsJoin {
116
116
  namespace: SettingsNamespaceView | undefined;
117
117
  /** Whether the settings document accepts writes. */
118
118
  writable: boolean;
119
+ /**
120
+ * Where the join came from, when the reader produced it. A mirrored read is
121
+ * free but can lag a write the mirror has not folded in yet; a wire read is
122
+ * authoritative. A caller about to fence a write on this revision must know
123
+ * which one it is holding -- and it must not go to the wire just to find out,
124
+ * because the host's `describe()` emits `settings/document-updated`.
125
+ * Undefined for a join a mock built by hand, which is never stale.
126
+ */
127
+ source?: 'scope' | 'wire';
119
128
  }
120
129
  /**
121
130
  * The client shell's context face, declared locally instead of imported: the
@@ -207,6 +216,8 @@ export type SuggestReply = {
207
216
  input?: InputModalities;
208
217
  /** Where the modality part came from -- its confidence rides this. */
209
218
  inputSource?: InputSource;
219
+ /** Whether the model is an image generator (生图), when derivable. */
220
+ imageGen?: boolean;
210
221
  /** Reference context window; a mounted row also echoes it into the official capacity input. */
211
222
  contextWindow?: number;
212
223
  /** Reference max output tokens; a mounted row also echoes it into the official capacity input. */
@@ -239,6 +250,13 @@ export interface StagedRouteFacts {
239
250
  * absence as a decision); an array writes exactly those modalities.
240
251
  */
241
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;
242
260
  /**
243
261
  * The effort-ladder part of a write intent. Undefined unsets the declaration
244
262
  * durably (the marker records the absence); the 'keep' sentinel leaves
@@ -266,6 +284,8 @@ export interface HeldWrite {
266
284
  compat?: CompatSuggestion;
267
285
  /** The modality part, when this edit made one. */
268
286
  input?: InputIntent;
287
+ /** The image-generation part, when this edit made one. */
288
+ imageGen?: ImageGenIntent;
269
289
  /** The per-model default-effort pick, when this edit made one. */
270
290
  defaultEffort?: DefaultEffortIntent;
271
291
  }
@@ -286,6 +306,8 @@ export interface PendingWrite {
286
306
  compat?: CompatSuggestion;
287
307
  /** The modality part, when this edit made one. */
288
308
  input?: InputIntent;
309
+ /** The image-generation part, when this edit made one. */
310
+ imageGen?: ImageGenIntent;
289
311
  /** The per-model default-effort pick, when this edit made one. */
290
312
  defaultEffort?: DefaultEffortIntent;
291
313
  }
@@ -301,6 +323,8 @@ export interface PendingWriteParts {
301
323
  efforts: EffortWriteIntent;
302
324
  /** The modality intent, when this write made one. */
303
325
  input?: InputIntent;
326
+ /** The image-generation intent, when this write made one. */
327
+ imageGen?: ImageGenIntent;
304
328
  /** The compat block of an applied suggestion. */
305
329
  appliedCompat?: CompatSuggestion;
306
330
  /** The route's wire protocol: what decides the thinking-budget default. */
@@ -383,11 +407,11 @@ export interface EffortEditorApi {
383
407
  * itself reports through {@link commit} since C2, and the injector's ledgers
384
408
  * call the batch writer directly — neither goes through this method.
385
409
  */
386
- 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>;
387
411
  /**
388
412
  * Stage one model's declaration for a route that does not exist in the
389
413
  * settings document yet (the create card). Synchronous, memory-only; the
390
414
  * injector flushes staged declarations once the route appears.
391
415
  */
392
- 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;
393
417
  }