@cline/llms 0.0.38 → 0.0.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.
package/README.md CHANGED
@@ -94,12 +94,12 @@ selection UIs, defaults, or validation.
94
94
  Use this for API-key-backed provider validation against real endpoints.
95
95
 
96
96
  1. Ensure provider keys are present in your environment (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, `CLINE_API_KEY`, etc.).
97
- 2. Use the sample config at `packages/llms/scripts/live-providers.example.json` as the providers list.
97
+ 2. Use the sample config at `packages/llms/src/tests/live-providers.example.json` as the providers list.
98
98
  3. Run:
99
99
 
100
100
  ```bash
101
101
  LLMS_LIVE_TESTS=1 \
102
- LLMS_LIVE_PROVIDERS_PATH=/absolute/path/to/packages/llms/scripts/live-providers.example.json \
102
+ LLMS_LIVE_PROVIDERS_PATH=/absolute/path/to/packages/llms/src/tests/live-providers.example.json \
103
103
  bun -F @cline/llms run test:live
104
104
  ```
105
105
 
@@ -107,7 +107,7 @@ Reasoning-focused live run (same command, different flags):
107
107
 
108
108
  ```bash
109
109
  LLMS_LIVE_REASONING_TESTS=1 \
110
- LLMS_LIVE_REASONING_PROVIDERS_PATH=/absolute/path/to/packages/llms/scripts/live-providers.reasoning.example.json \
110
+ LLMS_LIVE_REASONING_PROVIDERS_PATH=/absolute/path/to/packages/llms/src/tests/live-providers.reasoning.example.json \
111
111
  bun -F @cline/llms run test:live
112
112
  ```
113
113
 
@@ -115,7 +115,7 @@ Tool-use-focused live run (same command, different flags):
115
115
 
116
116
  ```bash
117
117
  LLMS_LIVE_TOOL_TESTS=1 \
118
- LLMS_LIVE_TOOL_PROVIDERS_PATH=/absolute/path/to/packages/llms/scripts/live-providers.tools.example.json \
118
+ LLMS_LIVE_TOOL_PROVIDERS_PATH=/absolute/path/to/packages/llms/src/tests/live-providers.tools.example.json \
119
119
  bun -F @cline/llms run test:live
120
120
  ```
121
121
 
@@ -126,6 +126,9 @@ Optional:
126
126
  - Point `LLMS_LIVE_PROVIDERS_PATH` to a custom file if you want a narrower provider set.
127
127
  - Point `LLMS_LIVE_REASONING_PROVIDERS_PATH` to a custom file for reasoning-enabled suites.
128
128
  - Point `LLMS_LIVE_TOOL_PROVIDERS_PATH` to a custom file for tool-use suites.
129
+ - Use `apiKeyEnv`, `baseUrlEnv`, and `headersEnv` in a provider entry when a live config needs secrets without writing them to JSON.
130
+
131
+ OpenAI Codex subscription live runs use the saved OAuth credentials from `~/.cline/data/settings/providers.json` after `clite auth --provider openai-codex`. Point the plain or reasoning suite at `packages/llms/src/tests/live-providers.openai-codex.example.json` or `packages/llms/src/tests/live-providers.openai-codex.reasoning.example.json`.
129
132
 
130
133
  Per-provider live assertions are configured in the JSON via `expectations`:
131
134
 
@@ -138,7 +141,7 @@ Per-provider live assertions are configured in the JSON via `expectations`:
138
141
  - `requireToolCall`: fail unless at least one `tool_calls` chunk is emitted.
139
142
 
140
143
  In reasoning suites, set `requireReasoningSignal: true` to require either a reasoning chunk or `thoughtsTokenCount > 0` (provider-dependent; can be flaky on some endpoints).
141
- To check that disabling reasoning actually suppresses reasoning output across models, use `packages/llms/scripts/live-providers.reasoning-disabled.example.json`; it covers direct and routed provider paths across `cline`, `openai`, `openrouter`, `anthropic`, `gemini`, `vercel-ai-gateway`, `zai`, and `deepseek` where model support exists, with `reasoning.enabled: false` and `requireNoReasoningChunk: true`.
144
+ To check that disabling reasoning actually suppresses reasoning output across models, use `packages/llms/src/tests/live-providers.reasoning-disabled.example.json`; it covers direct and routed provider paths across `cline`, `openai`, `openrouter`, `anthropic`, `gemini`, `vercel-ai-gateway`, `zai`, and `deepseek` where model support exists, with `reasoning.enabled: false` and `requireNoReasoningChunk: true`.
142
145
 
143
146
  Common live failure classes:
144
147
 
@@ -151,10 +154,10 @@ Common live failure classes:
151
154
 
152
155
  Add a new entry under the `providers` object in either config file:
153
156
 
154
- - Cache/smoke suite: `packages/llms/scripts/live-providers.example.json`
155
- - Reasoning suite: `packages/llms/scripts/live-providers.reasoning.example.json`
156
- - Reasoning-disabled suite (asserts no reasoning chunks when reasoning is off): `packages/llms/scripts/live-providers.reasoning-disabled.example.json`
157
- - Tool-use suite: `packages/llms/scripts/live-providers.tools.example.json`
157
+ - Cache/smoke suite: `packages/llms/src/tests/live-providers.example.json`
158
+ - Reasoning suite: `packages/llms/src/tests/live-providers.reasoning.example.json`
159
+ - Reasoning-disabled suite (asserts no reasoning chunks when reasoning is off): `packages/llms/src/tests/live-providers.reasoning-disabled.example.json`
160
+ - Tool-use suite: `packages/llms/src/tests/live-providers.tools.example.json`
158
161
 
159
162
  Minimal smoke/cache entry:
160
163
 
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-live.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog-live.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,IAAI,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,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EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;CAwsnBrD,CAAC"}
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;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;CAionBrD,CAAC"}
@@ -76,17 +76,17 @@ export declare const ProviderProtocolSchema: z.ZodEnum<{
76
76
  "ai-sdk": "ai-sdk";
77
77
  }>;
78
78
  declare const ProviderClientSchema: z.ZodEnum<{
79
- custom: "custom";
80
79
  anthropic: "anthropic";
80
+ bedrock: "bedrock";
81
81
  gemini: "gemini";
82
+ vertex: "vertex";
83
+ openai: "openai";
82
84
  "openai-r1": "openai-r1";
83
85
  "ai-sdk": "ai-sdk";
84
86
  "ai-sdk-community": "ai-sdk-community";
85
- openai: "openai";
86
87
  "openai-compatible": "openai-compatible";
87
- bedrock: "bedrock";
88
+ custom: "custom";
88
89
  fetch: "fetch";
89
- vertex: "vertex";
90
90
  }>;
91
91
  /**
92
92
  * ProviderSource indicates how a provider was added to the system,
@@ -96,8 +96,8 @@ declare const ProviderClientSchema: z.ZodEnum<{
96
96
  * and providers with source "discovery" were found through network discovery.
97
97
  */
98
98
  declare const ProviderSourceSchema: z.ZodEnum<{
99
- file: "file";
100
99
  system: "system";
100
+ file: "file";
101
101
  discovery: "discovery";
102
102
  }>;
103
103
  export type ProviderClient = z.infer<typeof ProviderClientSchema>;
@@ -133,21 +133,21 @@ export declare const ProviderInfoSchema: z.ZodObject<{
133
133
  }>>>;
134
134
  env: z.ZodOptional<z.ZodArray<z.ZodString>>;
135
135
  client: z.ZodEnum<{
136
- custom: "custom";
137
136
  anthropic: "anthropic";
137
+ bedrock: "bedrock";
138
138
  gemini: "gemini";
139
+ vertex: "vertex";
140
+ openai: "openai";
139
141
  "openai-r1": "openai-r1";
140
142
  "ai-sdk": "ai-sdk";
141
143
  "ai-sdk-community": "ai-sdk-community";
142
- openai: "openai";
143
144
  "openai-compatible": "openai-compatible";
144
- bedrock: "bedrock";
145
+ custom: "custom";
145
146
  fetch: "fetch";
146
- vertex: "vertex";
147
147
  }>;
148
148
  source: z.ZodDefault<z.ZodEnum<{
149
- file: "file";
150
149
  system: "system";
150
+ file: "file";
151
151
  discovery: "discovery";
152
152
  }>>;
153
153
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -184,21 +184,21 @@ export declare const ModelCollectionSchema: z.ZodObject<{
184
184
  }>>>;
185
185
  env: z.ZodOptional<z.ZodArray<z.ZodString>>;
186
186
  client: z.ZodEnum<{
187
- custom: "custom";
188
187
  anthropic: "anthropic";
188
+ bedrock: "bedrock";
189
189
  gemini: "gemini";
190
+ vertex: "vertex";
191
+ openai: "openai";
190
192
  "openai-r1": "openai-r1";
191
193
  "ai-sdk": "ai-sdk";
192
194
  "ai-sdk-community": "ai-sdk-community";
193
- openai: "openai";
194
195
  "openai-compatible": "openai-compatible";
195
- bedrock: "bedrock";
196
+ custom: "custom";
196
197
  fetch: "fetch";
197
- vertex: "vertex";
198
198
  }>;
199
199
  source: z.ZodDefault<z.ZodEnum<{
200
- file: "file";
201
200
  system: "system";
201
+ file: "file";
202
202
  discovery: "discovery";
203
203
  }>>;
204
204
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;