@cline/llms 0.0.85 → 0.0.86

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/README.md CHANGED
@@ -91,6 +91,12 @@ const result = await transcribeAudio({
91
91
  });
92
92
  ```
93
93
 
94
+ Audio must be an encoded recording (such as WAV, MP3, M4A, or WebM); its
95
+ format is detected from the bytes rather than a caller-supplied MIME type.
96
+ Gateway and OpenAI-compatible requests use AI SDK transcription, including
97
+ `maxRetries`, cancellation, and `providerOptions`. Their results preserve
98
+ `segments` and `warnings` alongside text, language, and duration.
99
+
94
100
  Transcription is fail-closed at the provider boundary. Built-in providers
95
101
  declare their concrete transport in their manifest; a custom provider must set
96
102
  `routingProviderId` to a provider whose transcription transport it explicitly
@@ -110,7 +116,18 @@ const session = await createStreamingAudioTranscriptionSession({
110
116
  });
111
117
  ```
112
118
 
113
- Vercel AI Gateway is the first built-in streaming transcription transport.
119
+ Native OpenAI, Vercel AI Gateway, and ElevenLabs support streaming transcription.
120
+ Voice discovery includes SDK-supported live models missing from the external
121
+ catalog, using the same provider capability declarations as request validation.
122
+ Native OpenAI uses `gpt-realtime-whisper` with a transcription-bound client
123
+ secret; the browser supplies that token to the AI SDK OpenAI provider. Gateway
124
+ tokens default to 60 seconds for connection establishment (maximum 300);
125
+ this is not the duration limit of an established recording session.
126
+ For Gateway sessions, pass `session.token`, `session.baseUrl`, and
127
+ `session.modelId` to `createGateway` and `experimental_streamTranscribe` from
128
+ the AI SDK. Supply live PCM chunks through a `ReadableStream`, consume
129
+ `fullStream` for interim transcript updates, and close the audio stream on Stop
130
+ to obtain the final text. The desktop composer uses this path.
114
131
  Batch models continue to use `transcribeAudio`.
115
132
 
116
133
  ## Entry Points
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.generated.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C;;;EAGE;AACF,eAAO,MAAM,yBAAyB,EAAE;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;CAiluLrD,CAAA"}
1
+ {"version":3,"file":"catalog.generated.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C;;;EAGE;AACF,eAAO,MAAM,yBAAyB,EAAE;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;CA054LrD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"cline-recommended.generated.d.ts","sourceRoot":"","sources":["../../src/catalog/cline-recommended.generated.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAEjF,eAAO,MAAM,kCAAkC,EAAE,6BAsJ/C,CAAC"}
1
+ {"version":3,"file":"cline-recommended.generated.d.ts","sourceRoot":"","sources":["../../src/catalog/cline-recommended.generated.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAEjF,eAAO,MAAM,kCAAkC,EAAE,6BAgJ/C,CAAC"}
@@ -1,5 +1,8 @@
1
1
  import type { ModelOperation, ModelOperationMode } from "./types";
2
2
  interface CatalogOperationDescriptor {
3
+ id?: string;
4
+ name?: string;
5
+ tags?: readonly string[];
3
6
  operation?: ModelOperation;
4
7
  family?: string;
5
8
  modalities?: {
@@ -20,8 +23,6 @@ export declare function resolveCatalogModelOperation(model: CatalogOperationDesc
20
23
  * transcription identifiers are recognized here once and persisted as an
21
24
  * explicit fact for every runtime and client.
22
25
  */
23
- export declare function resolveCatalogModelOperationModes(modelId: string, model: CatalogOperationDescriptor & {
24
- name?: string;
25
- }): ModelOperationMode[] | undefined;
26
+ export declare function resolveCatalogModelOperationModes(modelId: string, model: CatalogOperationDescriptor): ModelOperationMode[] | undefined;
26
27
  export {};
27
28
  //# sourceMappingURL=model-operation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-operation.d.ts","sourceRoot":"","sources":["../../src/catalog/model-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElE,UAAU,0BAA0B;IACnC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QAC1B,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;KAC3B,CAAC;CACF;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,0BAA0B,GAC/B,cAAc,CA4BhB;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAChD,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,0BAA0B,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACnD,kBAAkB,EAAE,GAAG,SAAS,CAQlC"}
1
+ {"version":3,"file":"model-operation.d.ts","sourceRoot":"","sources":["../../src/catalog/model-operation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElE,UAAU,0BAA0B;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QAC1B,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;KAC3B,CAAC;CACF;AAWD;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,0BAA0B,GAC/B,cAAc,CAgChB;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAChD,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,0BAA0B,GAC/B,kBAAkB,EAAE,GAAG,SAAS,CAalC"}
@@ -36,6 +36,7 @@ export declare const ModelEntrySchema: z.ZodObject<{
36
36
  "speech-generation": "speech-generation";
37
37
  "video-generation": "video-generation";
38
38
  transcription: "transcription";
39
+ realtime: "realtime";
39
40
  }>>;
40
41
  operationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
41
42
  streaming: "streaming";
@@ -126,9 +127,9 @@ export type ModelEntry = z.infer<typeof ModelEntrySchema>;
126
127
  export type ProviderCapability = z.infer<typeof ProviderCapabilitySchema>;
127
128
  export declare const ProviderProtocolSchema: z.ZodEnum<{
128
129
  anthropic: "anthropic";
129
- gemini: "gemini";
130
130
  "openai-responses": "openai-responses";
131
131
  "openai-chat": "openai-chat";
132
+ gemini: "gemini";
132
133
  "openai-r1": "openai-r1";
133
134
  "ai-sdk": "ai-sdk";
134
135
  }>;
@@ -166,9 +167,9 @@ export declare const ProviderInfoSchema: z.ZodObject<{
166
167
  description: z.ZodOptional<z.ZodString>;
167
168
  protocol: z.ZodOptional<z.ZodEnum<{
168
169
  anthropic: "anthropic";
169
- gemini: "gemini";
170
170
  "openai-responses": "openai-responses";
171
171
  "openai-chat": "openai-chat";
172
+ gemini: "gemini";
172
173
  "openai-r1": "openai-r1";
173
174
  "ai-sdk": "ai-sdk";
174
175
  }>>;
@@ -219,9 +220,9 @@ export declare const ModelCollectionSchema: z.ZodObject<{
219
220
  description: z.ZodOptional<z.ZodString>;
220
221
  protocol: z.ZodOptional<z.ZodEnum<{
221
222
  anthropic: "anthropic";
222
- gemini: "gemini";
223
223
  "openai-responses": "openai-responses";
224
224
  "openai-chat": "openai-chat";
225
+ gemini: "gemini";
225
226
  "openai-r1": "openai-r1";
226
227
  "ai-sdk": "ai-sdk";
227
228
  }>>;
@@ -291,6 +292,7 @@ export declare const ModelCollectionSchema: z.ZodObject<{
291
292
  "speech-generation": "speech-generation";
292
293
  "video-generation": "video-generation";
293
294
  transcription: "transcription";
295
+ realtime: "realtime";
294
296
  }>>;
295
297
  operationModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
296
298
  streaming: "streaming";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/catalog/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACN,SAAS,EACT,eAAe,EACf,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,SAAS,EACd,eAAe,EACf,KAAK,aAAa,EAClB,mBAAmB,EACnB,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,aAAa,EAClB,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,KAAK,YAAY,EACjB,kBAAkB,EAClB,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,cAAc,EACnB,oBAAoB,GACpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAmB,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,C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,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ProviderConfig } from "../providers/config";
2
+ import type { ModelInfo } from "./types";
3
+ /**
4
+ * Voice input must use the gateway's current transcription routes. The shared
5
+ * models.dev snapshot can contain removed models and has no streaming tags.
6
+ * Do not merge this list with bundled models or infer support from a name.
7
+ */
8
+ export declare function fetchVercelTranscriptionModels(config: ProviderConfig): Promise<Record<string, ModelInfo>>;
9
+ //# sourceMappingURL=vercel-transcription-models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vercel-transcription-models.d.ts","sourceRoot":"","sources":["../../src/catalog/vercel-transcription-models.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoBzC;;;;GAIG;AACH,wBAAsB,8BAA8B,CACnD,MAAM,EAAE,cAAc,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAyCpC"}