dsh-model-think-level 1.1.8 → 2.0.2
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/LICENSE +13 -0
- package/README.md +38 -0
- package/assets/NOTICE.md +15 -0
- package/assets/unified_bank.json +32910 -0
- package/lib/client/ComposerSlider.d.ts +9 -9
- package/lib/client/EffortEditor.d.ts +22 -12
- package/lib/client/FingerprintPane.d.ts +36 -0
- package/lib/client/KeyManager.d.ts +36 -10
- package/lib/client/ProtocolMenu.d.ts +51 -0
- package/lib/client/capacity.d.ts +30 -0
- package/lib/client/events.d.ts +26 -0
- package/lib/client/fingerprint-client.d.ts +81 -0
- package/lib/client/fingerprint-runner.d.ts +61 -0
- package/lib/client/index.d.ts +6 -0
- package/lib/client/injection/add-card.d.ts +4 -0
- package/lib/client/injection/create-card-pane.d.ts +15 -0
- package/lib/client/injection/create-key-seat.d.ts +53 -0
- package/lib/client/injection/create-keys-pane.d.ts +46 -0
- package/lib/client/injection/editor-tab-bar.d.ts +2 -1
- package/lib/client/injection/editor-tabs.d.ts +11 -1
- package/lib/client/injection/key-reveal.d.ts +24 -0
- package/lib/client/injection/models-page-editor.d.ts +165 -1
- package/lib/client/injection/provider-card-slot.d.ts +3 -1
- package/lib/client/injection/provider-endpoints.d.ts +70 -0
- package/lib/client/injection/staged-keys.d.ts +169 -0
- package/lib/client/key-manager-client.d.ts +89 -12
- package/lib/client/locales.d.ts +80 -6
- package/lib/client/ops.d.ts +4 -0
- package/lib/client/refresh-scheduler.d.ts +29 -0
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/types.d.ts +44 -2
- package/lib/client.js +2275 -266
- package/lib/client.js.map +4 -4
- package/lib/constants.d.ts +11 -0
- package/lib/discovery-merge.d.ts +35 -0
- package/lib/fingerprint/bank.d.ts +24 -0
- package/lib/fingerprint/challenges.d.ts +14 -0
- package/lib/fingerprint/core.d.ts +85 -0
- package/lib/fingerprint/eligibility.d.ts +8 -0
- package/lib/fingerprint/random.d.ts +4 -0
- package/lib/fingerprint/run.d.ts +110 -0
- package/lib/fingerprint/store.d.ts +31 -0
- package/lib/fingerprint/verdict.d.ts +64 -0
- package/lib/headers-fetch.d.ts +53 -3
- package/lib/headers-pi-ai.d.ts +31 -1
- package/lib/index.d.ts +3 -19
- package/lib/index.js +2438 -153
- package/lib/index.js.map +4 -4
- package/lib/key-index.d.ts +58 -1
- package/lib/key-probe.d.ts +126 -0
- package/lib/key-refs.d.ts +106 -0
- package/lib/key-route-core.d.ts +415 -0
- package/lib/knowledge.d.ts +6 -5
- package/lib/listing.d.ts +118 -0
- package/lib/multi-key-listing.d.ts +101 -0
- package/package.json +13 -5
package/lib/client/locales.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export declare const en: {
|
|
|
4
4
|
reasoningEffort: string;
|
|
5
5
|
thinkingMode: string;
|
|
6
6
|
thinkingModeOff: string;
|
|
7
|
+
levelsLabel: string;
|
|
8
|
+
levelsHint: string;
|
|
9
|
+
stateDeclared: string;
|
|
10
|
+
stateUndeclared: string;
|
|
11
|
+
modalityText: string;
|
|
7
12
|
autoAdapt: string;
|
|
8
13
|
autoAdaptAll: string;
|
|
9
14
|
autoAdaptWorking: string;
|
|
@@ -27,9 +32,15 @@ export declare const en: {
|
|
|
27
32
|
referenceTitle: string;
|
|
28
33
|
contextWindowLabel: string;
|
|
29
34
|
maxTokensLabel: string;
|
|
35
|
+
capacityBlank: string;
|
|
36
|
+
capacityUnitsHint: string;
|
|
37
|
+
capacityRule: string;
|
|
38
|
+
tokensUnit: string;
|
|
30
39
|
inputModality: string;
|
|
31
40
|
modalityImage: string;
|
|
32
41
|
modalityInherit: string;
|
|
42
|
+
modalityDeclared: string;
|
|
43
|
+
capacityInherit: string;
|
|
33
44
|
clearDeclaration: string;
|
|
34
45
|
confidence_high: string;
|
|
35
46
|
confidence_medium: string;
|
|
@@ -39,6 +50,9 @@ export declare const en: {
|
|
|
39
50
|
renderFailed: string;
|
|
40
51
|
wirePlaceholder: string;
|
|
41
52
|
wireValue: string;
|
|
53
|
+
wireShow: string;
|
|
54
|
+
wireHide: string;
|
|
55
|
+
wireHint: string;
|
|
42
56
|
reasoningDisabled: string;
|
|
43
57
|
bareHint: string;
|
|
44
58
|
defaultRiskDisabled: string;
|
|
@@ -64,9 +78,11 @@ export declare const en: {
|
|
|
64
78
|
tagVision: string;
|
|
65
79
|
tagThinking: string;
|
|
66
80
|
sliderNoCurrent: string;
|
|
81
|
+
sliderCommitSlow: string;
|
|
67
82
|
defaultEffortLabel: string;
|
|
68
83
|
defaultEffortUnset: string;
|
|
69
84
|
defaultEffortHint: string;
|
|
85
|
+
followMemory: string;
|
|
70
86
|
clearDefaultEffort: string;
|
|
71
87
|
modelSearchPlaceholder: string;
|
|
72
88
|
modelSearchNoMatches: string;
|
|
@@ -76,6 +92,32 @@ export declare const en: {
|
|
|
76
92
|
editorTabProvider: string;
|
|
77
93
|
editorTabModels: string;
|
|
78
94
|
editorTabAdvanced: string;
|
|
95
|
+
editorTabFingerprint: string;
|
|
96
|
+
fpTitle: string;
|
|
97
|
+
fpIntro: string;
|
|
98
|
+
fpCount: string;
|
|
99
|
+
fpSummary: string;
|
|
100
|
+
fpSummaryNone: string;
|
|
101
|
+
fpRunning: string;
|
|
102
|
+
fpDetectAll: string;
|
|
103
|
+
fpDetect: string;
|
|
104
|
+
fpRetest: string;
|
|
105
|
+
fpRetry: string;
|
|
106
|
+
fpCost: string;
|
|
107
|
+
fpForget: string;
|
|
108
|
+
fpStateUnchecked: string;
|
|
109
|
+
fpStateRunning: string;
|
|
110
|
+
fpStateIdentified: string;
|
|
111
|
+
fpStateDoubtful: string;
|
|
112
|
+
fpStateFailed: string;
|
|
113
|
+
fpQueued: string;
|
|
114
|
+
fpEvidence: string;
|
|
115
|
+
fpFamily: string;
|
|
116
|
+
fpCandidates: string;
|
|
117
|
+
fpClosedSet: string;
|
|
118
|
+
fpCheckedAt: string;
|
|
119
|
+
fpLoadFailed: string;
|
|
120
|
+
fpRunFailed: string;
|
|
79
121
|
keyRevealShow: string;
|
|
80
122
|
keyRevealHide: string;
|
|
81
123
|
keyRevealFailed: string;
|
|
@@ -83,7 +125,7 @@ export declare const en: {
|
|
|
83
125
|
keysAdd: string;
|
|
84
126
|
keysAddConfirm: string;
|
|
85
127
|
keysEnable: string;
|
|
86
|
-
|
|
128
|
+
keysDisable: string;
|
|
87
129
|
keysMissing: string;
|
|
88
130
|
keysEdit: string;
|
|
89
131
|
keysRemove: string;
|
|
@@ -100,9 +142,44 @@ export declare const en: {
|
|
|
100
142
|
keysRenamed: string;
|
|
101
143
|
keysReplaced: string;
|
|
102
144
|
keysRemoved: string;
|
|
103
|
-
|
|
145
|
+
keysScope: string;
|
|
146
|
+
keysModels: string;
|
|
147
|
+
keysScopeAll: string;
|
|
148
|
+
keysScopeNone: string;
|
|
149
|
+
keysScopeCount: string;
|
|
150
|
+
keysScopeSaved: string;
|
|
151
|
+
keysScopeHint: string;
|
|
152
|
+
keysScopeEmpty: string;
|
|
153
|
+
keysMergedOffer: string;
|
|
154
|
+
keysMergedApply: string;
|
|
155
|
+
keysMergedApplied: string;
|
|
156
|
+
keysProtocolLabel: string;
|
|
157
|
+
keysProtocolCreate: string;
|
|
158
|
+
keysProtocolCreateHint: string;
|
|
159
|
+
keysProtocolDefault: string;
|
|
160
|
+
keysProtocolDefaultHint: string;
|
|
161
|
+
keysProtocolAnthropic: string;
|
|
162
|
+
keysProtocolAnthropicHint: string;
|
|
163
|
+
keysProtocolOpenAI: string;
|
|
164
|
+
keysProtocolOpenAIHint: string;
|
|
165
|
+
keysProtocolResponses: string;
|
|
166
|
+
keysProtocolResponsesHint: string;
|
|
167
|
+
keysProtocolGemini: string;
|
|
168
|
+
keysProtocolGeminiHint: string;
|
|
169
|
+
keysProtocolShortChat: string;
|
|
170
|
+
keysProtocolShortResponses: string;
|
|
171
|
+
keysProtocolShortAnthropic: string;
|
|
172
|
+
keysProtocolSaved: string;
|
|
173
|
+
keysEndpointOpenAI: string;
|
|
174
|
+
keysEndpointAnthropic: string;
|
|
175
|
+
keysEndpointGemini: string;
|
|
176
|
+
keysMoreEndpoints: string;
|
|
177
|
+
keysEndpointsCount: string;
|
|
178
|
+
keysEndpointInvalid: string;
|
|
104
179
|
keysUnreachable: string;
|
|
105
180
|
keysPanelFailed: string;
|
|
181
|
+
keysDraftHint: string;
|
|
182
|
+
keysLastEnabledOff: string;
|
|
106
183
|
headersTitle: string;
|
|
107
184
|
headersHint: string;
|
|
108
185
|
headersEmpty: string;
|
|
@@ -114,13 +191,10 @@ export declare const en: {
|
|
|
114
191
|
headersSave: string;
|
|
115
192
|
headersCancel: string;
|
|
116
193
|
headersClear: string;
|
|
194
|
+
headersRemove: string;
|
|
117
195
|
headersSaved: string;
|
|
118
196
|
headersCleared: string;
|
|
119
197
|
headersReadOnly: string;
|
|
120
|
-
headersUserAgentTitle: string;
|
|
121
|
-
headersUserAgentHint: string;
|
|
122
|
-
headersUserAgentClear: string;
|
|
123
|
-
headersUserAgentPlaceholder: string;
|
|
124
198
|
headersConflictOrigin: string;
|
|
125
199
|
headersConflictPatched: string;
|
|
126
200
|
headersConflictSiblings: string;
|
package/lib/client/ops.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ export declare function nameOf(models: Record<string, unknown>[], modelId: strin
|
|
|
52
52
|
* must degrade to "no default", never poison the memory chain.
|
|
53
53
|
*/
|
|
54
54
|
export declare function defaultEffortOf(models: Record<string, unknown>[], modelId: string): string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Forget the cached listings (a settings change can move a route's endpoint).
|
|
57
|
+
*/
|
|
58
|
+
export declare function invalidateProbeCache(): void;
|
|
55
59
|
/**
|
|
56
60
|
* Build the write seam over a settings Remote face.
|
|
57
61
|
* @param api - the settings Remote methods.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounded reaction to pushed invalidations.
|
|
3
|
+
*
|
|
4
|
+
* The settings host does not send one "the document changed" per change: it
|
|
5
|
+
* emits `settings/document-updated` per entry, and it emits again whenever a
|
|
6
|
+
* `describe()` observes the serialized document move. Anything a refresh does
|
|
7
|
+
* -- a scan's describe, an idle fill's write -- can therefore come back as
|
|
8
|
+
* another notification. A client that runs one refresh per notification has an
|
|
9
|
+
* unbounded feedback loop, and the renderer starves: opening the Models page
|
|
10
|
+
* froze the entire DSH exactly this way.
|
|
11
|
+
*
|
|
12
|
+
* This turns a burst into ONE refresh and caps the rate however chatty the host
|
|
13
|
+
* becomes. The cost is that a change is noticed at most a beat later; the gain
|
|
14
|
+
* is that the page always settles.
|
|
15
|
+
*/
|
|
16
|
+
/** The face the push handlers drive. */
|
|
17
|
+
export interface RefreshScheduler {
|
|
18
|
+
/** Ask for a refresh. Cheap, idempotent, and safe from inside a refresh. */
|
|
19
|
+
schedule: () => void;
|
|
20
|
+
/** Cancel any pending refresh and stop accepting new ones. */
|
|
21
|
+
dispose: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Build a coalescing, rate-limited scheduler around one `refresh` unit of work.
|
|
25
|
+
* @param refresh - the work to run; called at most once per interval.
|
|
26
|
+
* @param minIntervalMs - floor between two runs.
|
|
27
|
+
* @returns the {@link RefreshScheduler} face.
|
|
28
|
+
*/
|
|
29
|
+
export declare function createRefreshScheduler(refresh: () => void, minIntervalMs: number): RefreshScheduler;
|