@goodandready/dsh-ollama-cloud-provider 0.1.37 → 0.1.39

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 (62) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +13 -6
  3. package/README.ru.md +13 -6
  4. package/README.zh.md +13 -6
  5. package/lib/account-rules.js +26 -0
  6. package/lib/adapter.d.ts +92 -0
  7. package/lib/adapter.js +566 -0
  8. package/lib/analytics.d.ts +81 -0
  9. package/lib/analytics.js +314 -0
  10. package/lib/attempt.js +29 -0
  11. package/lib/best-effort.js +20 -0
  12. package/lib/catalog-cache.js +81 -0
  13. package/lib/catalog.d.ts +10 -0
  14. package/lib/catalog.js +309 -0
  15. package/lib/commands.d.ts +14 -0
  16. package/lib/commands.js +228 -0
  17. package/lib/config.d.ts +173 -0
  18. package/lib/config.js +280 -0
  19. package/lib/context-override.js +38 -0
  20. package/lib/credentials.d.ts +23 -0
  21. package/lib/credentials.js +105 -0
  22. package/lib/discovery.js +108 -0
  23. package/lib/endpoints.js +58 -0
  24. package/lib/errors.d.ts +9 -0
  25. package/lib/errors.js +72 -0
  26. package/lib/files.js +13 -0
  27. package/lib/images.js +78 -0
  28. package/lib/index.d.ts +10 -521
  29. package/lib/index.js +20 -5921
  30. package/lib/local-host.js +47 -0
  31. package/lib/messages.js +263 -0
  32. package/lib/models.generated.d.ts +26 -0
  33. package/lib/models.generated.js +499 -0
  34. package/lib/plugin-updater.js +320 -0
  35. package/lib/pricing.js +78 -0
  36. package/lib/provider-ids.d.ts +4 -0
  37. package/lib/provider-ids.js +9 -0
  38. package/lib/quota-model.js +66 -0
  39. package/lib/reasoning.js +71 -0
  40. package/lib/request-log.d.ts +38 -0
  41. package/lib/request-log.js +203 -0
  42. package/lib/retry.js +24 -0
  43. package/lib/route-guard.js +25 -0
  44. package/lib/routes-public.js +59 -0
  45. package/lib/routes-values.js +129 -0
  46. package/lib/routes.d.ts +28 -0
  47. package/lib/routes.js +733 -0
  48. package/lib/routing.js +20 -0
  49. package/lib/sanitize.js +43 -0
  50. package/lib/status.js +60 -0
  51. package/lib/tool-schema.js +109 -0
  52. package/lib/tools.js +38 -0
  53. package/lib/transports/native.js +156 -0
  54. package/lib/transports/ndjson.js +73 -0
  55. package/lib/transports/openai-chat.js +278 -0
  56. package/lib/transports/sse.js +57 -0
  57. package/lib/transports/tool-call-id.js +17 -0
  58. package/lib/tui-settings.js +246 -0
  59. package/lib/usage.d.ts +69 -0
  60. package/lib/usage.js +277 -0
  61. package/lib/web.js +143 -0
  62. package/package.json +6 -5
package/lib/index.d.ts CHANGED
@@ -1,524 +1,13 @@
1
- import { GenerateOptions, LlmAdapter, LlmError, LlmModelInfo, LlmProviderInfo, LlmResolvedModelInfo, ResolvedRetryPolicy, StreamChunk } from "@deepseek-ai/dsh-llm";
2
- import z from "@deepseek-ai/schemastery";
1
+ import { OllamaCloudAdapter, OllamaCloudAdapterDeps } from "./adapter.js";
2
+ import { Config, ResolvedConfig, TransportId, resolveConfig } from "./config.js";
3
+ import { PROVIDER } from "./provider-ids.js";
4
+ import { ResolvedKey, createKeyPool, createKeyResolver } from "./credentials.js";
5
+ import { CommandDeps, applyCommands } from "./commands.js";
6
+ import { RouteDeps, applyRoutes } from "./routes.js";
7
+ import { UsageReport, UsageResult, UsageWindow, createUsageReader, normalizeBalance, normalizeUsage } from "./usage.js";
8
+ import { classifyResponseError } from "./errors.js";
9
+ import { clearCatalogCache, describeModel, effectiveModel } from "./catalog.js";
3
10
  import { Context } from "@deepseek-ai/cordis";
4
- import { AttachmentStore } from "@deepseek-ai/dsh-attachment";
5
- import { IncomingMessage } from "node:http";
6
- import { WebServer } from "@deepseek-ai/dsh-host-webserver";
7
- type TransportId = 'native' | 'openai-chat';
8
- interface AccountConfig {
9
- label?: string;
10
- apiKeyEnv?: string;
11
- apiKey?: string;
12
- }
13
- interface ModelAccountRule {
14
- pattern: string;
15
- account: string;
16
- }
17
- interface ModelPriceOverride {
18
- input?: number;
19
- output?: number;
20
- cacheRead?: number;
21
- }
22
- /**
23
- * Plugin configuration. Every field except the literal `apiKey` is volatile:
24
- * the harness projects settings forms from schema fields carrying that marker.
25
- */
26
- interface ModelOverride {
27
- contextWindow?: number;
28
- image?: boolean;
29
- thinking?: boolean;
30
- reasoningEfforts?: string[];
31
- defaultEffort?: string;
32
- enabled?: boolean;
33
- }
34
- interface ManualModel {
35
- id: string;
36
- enabled?: boolean;
37
- name?: string;
38
- contextWindow?: number;
39
- maxTokens?: number;
40
- image?: boolean;
41
- thinking?: boolean;
42
- reasoningEfforts?: string[];
43
- defaultReasoning?: string;
44
- tools?: boolean;
45
- }
46
- interface Config {
47
- /** Credential reference resolved per request; defaults to `OLLAMA_API_KEY`. */
48
- apiKeyEnv?: string;
49
- /** Literal key for composition config only; stripped from settings reads. */
50
- apiKey?: string;
51
- /** Native API root; defaults to `https://ollama.com`. */
52
- apiBase?: string;
53
- /** OpenAI-compatible root; defaults to `https://ollama.com/v1`. */
54
- openAiBase?: string;
55
- /** Cloud usage endpoint. */
56
- usageUrl?: string;
57
- /** Cloud balance endpoint. */
58
- balanceUrl?: string;
59
- /** Default wire protocol for chat. */
60
- transport?: TransportId;
61
- /** Per-model transport overrides; wins over `transport`. */
62
- modelTransports?: Record<string, TransportId>;
63
- /** Milliseconds to wait for response headers; defaults to 300s. */
64
- requestTimeoutMs?: number;
65
- /** Milliseconds a stream may stall; defaults to 300s. */
66
- streamIdleTimeoutMs?: number;
67
- /** Whole-attempt budget; 0 disables the independent budget. */
68
- attemptTimeoutMs?: number;
69
- /** Pre-response retry count; 0 disables internal retries. */
70
- retryMaxRetries?: number;
71
- retryBaseDelayMs?: number;
72
- retryMaxDelayMs?: number;
73
- /** Jitter fraction, 0..1. */
74
- retryJitter?: number;
75
- /** Visible-model allowlist; empty with `showAllModels:false` means none. */
76
- visibleModels?: string[];
77
- /** Explicit all-models switch; absent means derive from `visibleModels`. */
78
- showAllModels?: boolean;
79
- /** Per-model visibility overrides; wins over `visibleModels`. */
80
- modelVisibility?: Record<string, boolean>;
81
- /** Manual catalog entries and overrides; merged over live discovery. */
82
- manualModels?: ManualModel[];
83
- /** Per-model capability/thinking overrides; wins over manual entries. */
84
- modelOverrides?: Record<string, ModelOverride>;
85
- /** Stable picker order; ids not listed follow by name. */
86
- modelOrder?: string[];
87
- /** Hide models the cloud marks unsupported in the API; defaults to true. */
88
- filterModelsByPlan?: boolean;
89
- /** Global context-window override. */
90
- contextWindow?: number;
91
- /** Per-model context-window overrides. */
92
- contextWindowOverrides?: Record<string, number>;
93
- /** Per-turn output cap; `0` omits `num_predict`/`max_tokens`. */
94
- maxOutputTokens?: number;
95
- /** Optional Ollama native generation defaults. */
96
- temperature?: number;
97
- topK?: number;
98
- topP?: number;
99
- minP?: number;
100
- seed?: number;
101
- repeatPenalty?: number;
102
- repeatLastN?: number;
103
- numCtx?: number;
104
- keepAlive?: string;
105
- stop?: string[];
106
- /** Refresh the model catalog at mount and on an interval. */
107
- autoRefresh?: boolean;
108
- /** Catalog refresh interval in minutes; 0 = mount only. */
109
- refreshMinutes?: number;
110
- /** Extra accounts for rotation. */
111
- accounts?: AccountConfig[];
112
- /** Preferred account per model glob; others remain fallbacks. */
113
- modelAccountRules?: ModelAccountRule[];
114
- /** Prefer the last successful account for a conversation. */
115
- stickySession?: boolean;
116
- /** Pinned account label; empty means automatic. */
117
- activeAccount?: string;
118
- /** Show the quota card in the sidebar. */
119
- showSidebarQuota?: boolean;
120
- /** Optional plan label shown on the sidebar card, for example PRO. */
121
- planLabel?: string;
122
- /** Per-model price overrides in USD per 1M tokens. */
123
- priceOverrides?: Record<string, ModelPriceOverride>;
124
- /** Product user agent sent to Ollama Cloud. */
125
- userAgent?: string;
126
- }
127
- declare const Config: z<Config>;
128
- interface ResolvedConfig {
129
- apiKeyEnv: string;
130
- apiKey?: string;
131
- apiBase: string;
132
- openAiBase: string;
133
- usageUrl: string;
134
- balanceUrl: string;
135
- transport: TransportId;
136
- modelTransports: Readonly<Record<string, TransportId>>;
137
- requestTimeoutMs: number;
138
- streamIdleTimeoutMs: number;
139
- attemptTimeoutMs: number;
140
- retryMaxRetries: number;
141
- retryBaseDelayMs: number;
142
- retryMaxDelayMs: number;
143
- retryJitter: number;
144
- visibleModels: readonly string[];
145
- showAllModels: boolean;
146
- modelVisibility: Readonly<Record<string, boolean>>;
147
- manualModels: readonly ManualModel[];
148
- modelOverrides: Readonly<Record<string, ModelOverride>>;
149
- modelOrder: readonly string[];
150
- filterModelsByPlan: boolean;
151
- contextWindow?: number;
152
- contextWindowOverrides: Readonly<Record<string, number>>;
153
- maxOutputTokens?: number;
154
- temperature?: number;
155
- topK?: number;
156
- topP?: number;
157
- minP?: number;
158
- seed?: number;
159
- repeatPenalty?: number;
160
- repeatLastN?: number;
161
- numCtx?: number;
162
- keepAlive?: string;
163
- stop?: readonly string[];
164
- autoRefresh: boolean;
165
- refreshMinutes: number;
166
- accounts: readonly AccountConfig[];
167
- modelAccountRules: readonly ModelAccountRule[];
168
- stickySession: boolean;
169
- activeAccount: string;
170
- showSidebarQuota: boolean;
171
- planLabel: string;
172
- priceOverrides: Readonly<Record<string, ModelPriceOverride>>;
173
- userAgent: string;
174
- }
175
- /** Normalize a raw config (possibly bypassing schemastery) into request facts. */
176
- declare function resolveConfig(config: Config): ResolvedConfig;
177
- interface ResolvedKey {
178
- readonly key: string;
179
- readonly source: string;
180
- /** Slot label (`default` or the configured account name). */
181
- readonly label?: string;
182
- }
183
- type KeyResolver = (provider: string) => Promise<ResolvedKey>;
184
- interface KeyPool {
185
- resolve(provider: string): Promise<ResolvedKey>;
186
- resolveAll(provider: string): Promise<readonly ResolvedKey[]>;
187
- }
188
- /**
189
- * Resolve every configured account for one request. The default account comes
190
- * first unless `activeAccount` pins another slot by label or credential name.
191
- * Keys are deduplicated; a slot without a resolvable value is skipped.
192
- */
193
- declare function createKeyPool(ctx: Context, config: () => ResolvedConfig): KeyPool;
194
- /** Backwards-compatible single-key facade over the pool. */
195
- declare function createKeyResolver(ctx: Context, config: () => ResolvedConfig): KeyResolver;
196
- interface RequestOutcome {
197
- ok: boolean;
198
- latencyMs: number;
199
- /** Request start; the log uses it as the event timestamp. */
200
- at?: number;
201
- ttftMs?: number;
202
- error?: string;
203
- }
204
- interface ModelRequestHeatmap {
205
- provider: string;
206
- model: string;
207
- total: number;
208
- hours: number[];
209
- grid: number[][];
210
- }
211
- interface AccountRequestHeatmap {
212
- account: string;
213
- total: number;
214
- errors: number;
215
- avgLatencyMs: number | null;
216
- avgTtftMs: number | null;
217
- hours: number[];
218
- grid: number[][];
219
- }
220
- interface RequestHeatmap {
221
- since: number;
222
- total: number;
223
- /** Requests per hour of day, local time. */
224
- hours: number[];
225
- /** Monday-first weekday × hour grid, local time. */
226
- grid: number[][];
227
- firstAt: number | null;
228
- lastAt: number | null;
229
- models: ModelRequestHeatmap[];
230
- accounts: AccountRequestHeatmap[];
231
- }
232
- type RoutingReason = 'rule' | 'sticky' | 'pinned' | 'default' | 'rotation';
233
- interface RoutingTraceEntry {
234
- readonly at: number;
235
- readonly provider: string;
236
- readonly model: string;
237
- readonly account: string;
238
- readonly reason: RoutingReason;
239
- readonly fallback: boolean;
240
- readonly ok: boolean;
241
- readonly error?: string;
242
- }
243
- interface OllamaCloudAdapterDeps {
244
- readonly config: () => ResolvedConfig;
245
- readonly resolveKey: KeyResolver;
246
- readonly resolveKeys?: (provider: string) => Promise<readonly ResolvedKey[]>;
247
- readonly resolveAttachments?: () => AttachmentStore | undefined;
248
- readonly fetchImpl?: typeof fetch;
249
- /** Test seam; defaults to the local append-only request log. */
250
- readonly recordRequest?: (provider: string, model: string, purpose?: string, account?: string, reason?: string, outcome?: RequestOutcome) => void;
251
- /** Test seam; defaults to ~/.dsh/storages/dsh-ollama/cooldowns.json. */
252
- readonly cooldownPath?: string;
253
- /** Test seam; defaults to ~/.dsh/storages/dsh-ollama/sticky.json. */
254
- readonly stickyPath?: string;
255
- /** Receives a one-time warning when the provider tool limit drops tools. */
256
- readonly warn?: (message: string) => void;
257
- }
258
- declare class OllamaCloudAdapter extends LlmAdapter {
259
- private readonly deps;
260
- private readonly fetchImpl;
261
- private readonly cooldownPath;
262
- private readonly stickyPath;
263
- private cooldownWrites;
264
- private stickyWrites;
265
- /** key fingerprint → cooldown deadline and the rejection that caused it. */
266
- private readonly cooldowns;
267
- /** key fingerprint + model → short preference mark for model-scoped rejections. */
268
- private readonly modelCooldowns;
269
- private readonly sticky;
270
- private readonly routing;
271
- private warnedTools;
272
- constructor(deps: OllamaCloudAdapterDeps);
273
- providerInfo(provider: string): LlmProviderInfo;
274
- providerRetryPolicy(_provider: string): ResolvedRetryPolicy;
275
- listModels(provider: string, opts?: {
276
- unfiltered?: boolean;
277
- }): Promise<readonly LlmModelInfo[]>;
278
- /** Recent routing decisions, newest first; no keys or prompt content. */
279
- routingTrace(): readonly RoutingTraceEntry[];
280
- resolveModel(provider: string, model: string, signal?: AbortSignal): Promise<LlmResolvedModelInfo>;
281
- stream(options: GenerateOptions): AsyncIterable<StreamChunk>;
282
- private run;
283
- private rememberSticky;
284
- /** Await pending sticky persistence writes (tests and shutdown). */
285
- flushSticky(): Promise<void>;
286
- private loadSticky;
287
- private pruneSticky;
288
- private persistSticky;
289
- private pushTrace;
290
- private send;
291
- private keyId;
292
- private coolingDown;
293
- private modelKey;
294
- private modelCoolingDown;
295
- private markModelCooldown;
296
- /**
297
- * A model-scoped rejection says nothing about the key's other models:
298
- * `:free` models and other paid models may still work on the same account.
299
- * Only account-wide quota, credential and rate-limit responses cool the key.
300
- */
301
- private modelScoped;
302
- /** Current cooldown for one resolved key, if any. */
303
- accountHealth(key: string): {
304
- coolingUntil: number;
305
- reason: string;
306
- } | undefined;
307
- /** Await pending cooldown persistence writes (tests and shutdown). */
308
- flushCooldowns(): Promise<void>;
309
- /** Manually clear all active account and model cooldowns. */
310
- clearCooldowns(): void;
311
- private loadCooldowns;
312
- private pruneCooldowns;
313
- private persistCooldowns;
314
- private markCooldown;
315
- private isTransient;
316
- }
317
- /** Provider route owned by this plugin. */
318
- declare const PROVIDER = "ollama-cloud";
319
- type UsageRange = '24h' | '7d' | '30d';
320
- interface UsageTotals {
321
- requests: number;
322
- usd: number;
323
- inputTokens: number;
324
- cachedInputTokens: number;
325
- outputTokens: number;
326
- }
327
- interface UsageWindow {
328
- percentUsed: number;
329
- resetsAt?: string;
330
- status?: string;
331
- }
332
- interface CreditBalance {
333
- includedRemaining: number;
334
- includedAllowance: number;
335
- purchased: number;
336
- periodFrom?: string;
337
- periodUntil?: string;
338
- }
339
- interface UsageReport {
340
- kind: 'credits' | 'legacy';
341
- credits?: CreditBalance;
342
- legacy?: {
343
- fiveHour?: UsageWindow;
344
- weekly?: UsageWindow;
345
- };
346
- windows: {
347
- d24?: UsageTotals;
348
- d7?: UsageTotals;
349
- d30?: UsageTotals;
350
- session?: UsageTotals;
351
- weekly?: UsageTotals;
352
- monthly?: UsageTotals;
353
- };
354
- byModel: Array<{
355
- model: string;
356
- } & UsageTotals>;
357
- byWindow?: Partial<Record<UsageRange, Array<{
358
- model: string;
359
- } & UsageTotals>>>;
360
- range: UsageRange;
361
- }
362
- interface UsageResult {
363
- report?: UsageReport;
364
- error?: string;
365
- checkedAt: number;
366
- stale?: boolean;
367
- }
368
- interface UsageReader {
369
- /** Balance plus the 7-day spend window for one key. */
370
- read(key?: string): Promise<UsageResult | undefined>;
371
- /** One spend window; the plugin caches each range separately. */
372
- usage(range: UsageRange, key?: string): Promise<UsageResult | undefined>;
373
- clear(): void;
374
- }
375
- declare function normalizeBalance(payload: unknown): Pick<UsageReport, 'kind' | 'credits' | 'legacy'>;
376
- declare function normalizeUsage(payload: unknown, range: UsageRange): {
377
- totals: UsageTotals;
378
- byModel: Array<{
379
- model: string;
380
- } & UsageTotals>;
381
- };
382
- /** Cached reader for Ollama Cloud balance and usage. Fail-open by design. */
383
- declare function createUsageReader(config: () => ResolvedConfig, resolveKey: KeyResolver, fetchImpl?: typeof fetch): UsageReader;
384
- interface CommandDeps {
385
- readonly config: () => ResolvedConfig;
386
- readonly pool: KeyPool;
387
- readonly usage: UsageReader;
388
- readonly adapter: OllamaCloudAdapter;
389
- }
390
- declare function applyCommands(ctx: Context, deps: CommandDeps): void;
391
- interface ModelUsageRow {
392
- provider: string;
393
- model: string;
394
- sessions: number;
395
- turns: number;
396
- steps: number;
397
- inputTokens: number;
398
- outputTokens: number;
399
- cacheReadTokens: number;
400
- cacheWriteTokens: number;
401
- cost: number;
402
- priced: boolean;
403
- partial: boolean;
404
- free: boolean;
405
- llmMs: number;
406
- ttftMs: number;
407
- ttftSteps: number;
408
- decodeMs: number;
409
- }
410
- interface AnalyticsSummary {
411
- sessions: number;
412
- requests: number;
413
- tokens: number;
414
- inputTokens: number;
415
- outputTokens: number;
416
- reasoningTokens: number | null;
417
- cacheReadTokens: number;
418
- cacheWriteTokens: number;
419
- cost: number;
420
- priced: boolean;
421
- partial: boolean;
422
- free: boolean;
423
- avgTtftMs: number | null;
424
- avgLatencyMs: number | null;
425
- errors: number | null;
426
- successRate: number | null;
427
- }
428
- interface DayUsageRow {
429
- date: string;
430
- sessions: number;
431
- requests: number;
432
- tokens: number;
433
- cost: number;
434
- priced: boolean;
435
- partial: boolean;
436
- free: boolean;
437
- avgTtftMs: number | null;
438
- }
439
- interface SessionUsageRow {
440
- id: string;
441
- provider: string;
442
- model: string;
443
- at: number;
444
- requests: number;
445
- tokens: number;
446
- inputTokens: number;
447
- outputTokens: number;
448
- cacheReadTokens: number;
449
- cacheWriteTokens: number;
450
- cost: number;
451
- priced: boolean;
452
- partial: boolean;
453
- free: boolean;
454
- avgTtftMs: number | null;
455
- avgLatencyMs: number | null;
456
- }
457
- interface AnalyticsReport {
458
- since: number;
459
- scannedSessions: number;
460
- matchedSessions: number;
461
- models: ModelUsageRow[];
462
- summary: AnalyticsSummary;
463
- days: DayUsageRow[];
464
- sessions: SessionUsageRow[];
465
- /** The projection directory held more files than the bounded scan. */
466
- truncated?: boolean;
467
- totalFiles?: number;
468
- }
469
- interface RouteDeps {
470
- readonly config: () => ResolvedConfig;
471
- readonly adapter: OllamaCloudAdapter;
472
- readonly pool: KeyPool;
473
- readonly usage: UsageReader;
474
- readonly analytics?: (days: number) => Promise<AnalyticsReport>;
475
- readonly heatmap?: (days: number) => Promise<RequestHeatmap>;
476
- readonly refreshTui?: () => void;
477
- /** Test seam; defaults to verifying the cookie against the host API. */
478
- readonly verifyDesktop?: (req: IncomingMessage) => Promise<boolean>;
479
- /** Same verifier for private reads; falls back to `verifyDesktop`. */
480
- readonly verifyHost?: (req: IncomingMessage) => Promise<boolean>;
481
- /** Test seam for unsaved-endpoint discovery. */
482
- readonly discoveryFetch?: typeof fetch;
483
- }
484
- /** Register the Host HTTP surface consumed by the browser settings page. */
485
- declare function applyRoutes(ctx: Context, web: WebServer, deps: RouteDeps): void;
486
- /**
487
- * Translate an Ollama Cloud HTTP failure into the harness failure taxonomy.
488
- * Ollama reports everything as `{"error": "..."}`, so both the status and the
489
- * message matter.
490
- */
491
- declare function classifyResponseError(status: number, text: string, headers: Headers): LlmError;
492
- type OllamaCloudTransport = 'native' | 'openai-chat';
493
- interface ModelCost {
494
- readonly input: number;
495
- readonly output: number;
496
- readonly cacheRead: number;
497
- readonly offPeakInput?: number;
498
- readonly offPeakOutput?: number;
499
- readonly offPeakCacheRead?: number;
500
- }
501
- interface OllamaCloudModelMeta {
502
- readonly id: string;
503
- readonly name: string;
504
- readonly transport: OllamaCloudTransport;
505
- readonly contextWindow: number;
506
- readonly maxTokens: number;
507
- readonly input: readonly ('text' | 'image')[];
508
- readonly reasoning: readonly string[];
509
- readonly reasoningToggle: boolean;
510
- readonly tools: boolean;
511
- readonly free: boolean;
512
- readonly available: boolean;
513
- readonly defaultReasoning?: string;
514
- readonly cost: ModelCost;
515
- }
516
- declare function clearCatalogCache(): void;
517
- interface EffectiveModel extends OllamaCloudModelMeta {
518
- readonly transport: TransportId;
519
- }
520
- declare function effectiveModel(id: string, config: ResolvedConfig): EffectiveModel;
521
- declare function describeModel(meta: EffectiveModel, config: ResolvedConfig): string;
522
11
  declare const name = "@goodandready/dsh-ollama-cloud-provider";
523
12
  declare const inject: string[];
524
13
  /**
@@ -527,5 +16,5 @@ declare const inject: string[];
527
16
  * without a restart.
528
17
  */
529
18
  declare function apply(ctx: Context, config: Config): void;
530
- export { type CommandDeps, Config, type Config as OllamaCloudConfig, OllamaCloudAdapter, type OllamaCloudAdapterDeps, PROVIDER, type ResolvedConfig, type ResolvedKey, type RouteDeps, type TransportId, type UsageReport, type UsageResult, type UsageWindow, apply, applyCommands, applyRoutes, classifyResponseError, clearCatalogCache, createKeyPool, createKeyResolver, createUsageReader, describeModel, effectiveModel, inject, name, normalizeBalance, normalizeUsage, resolveConfig };
19
+ export { type CommandDeps, Config, OllamaCloudAdapter, type OllamaCloudAdapterDeps, type Config as OllamaCloudConfig, PROVIDER, type ResolvedConfig, type ResolvedKey, type RouteDeps, type TransportId, type UsageReport, type UsageResult, type UsageWindow, apply, applyCommands, applyRoutes, classifyResponseError, clearCatalogCache, createKeyPool, createKeyResolver, createUsageReader, describeModel, effectiveModel, inject, name, normalizeBalance, normalizeUsage, resolveConfig };
531
20
  //# sourceMappingURL=index.d.ts.map