@cline/shared 0.0.82 → 0.0.83-nightly.1789612722
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/dist/agent.d.ts +15 -0
- package/dist/agents/types.d.ts +19 -0
- package/dist/automation/index.js +40 -35
- package/dist/db/index.js +7 -7
- package/dist/extensions/context.d.ts +3 -1
- package/dist/feature-flags.d.ts +2 -0
- package/dist/hub.d.ts +11 -1
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.js +31 -26
- package/dist/index.d.ts +5 -4
- package/dist/index.js +79 -69
- package/dist/llms/gateway.d.ts +2 -0
- package/dist/llms/model-info.d.ts +12 -0
- package/dist/parse/shell.d.ts +9 -0
- package/dist/prompt/system/act.d.ts +1 -0
- package/dist/prompt/{system.d.ts → system/index.d.ts} +4 -1
- package/dist/prompt/system/yolo.d.ts +1 -0
- package/dist/remote-config/index.js +47 -42
- package/dist/rpc/runtime.d.ts +3 -1
- package/dist/runtime/windows-exe-path.d.ts +26 -0
- package/dist/services/telemetry.d.ts +34 -0
- package/dist/storage/index.js +1 -1
- package/dist/storage/paths.d.ts +5 -4
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -176,6 +176,13 @@ export interface AgentRuntimePrepareTurnContext {
|
|
|
176
176
|
* compaction rather than trust its token estimates.
|
|
177
177
|
*/
|
|
178
178
|
overflowRecovery?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Input tokens the provider actually counted for the previous request this
|
|
181
|
+
* run, when available. Compaction uses it as a floor on its char-based
|
|
182
|
+
* estimate, which under-counts dense content (disassembly, image dumps) and
|
|
183
|
+
* can otherwise let the real context grow past the window without triggering.
|
|
184
|
+
*/
|
|
185
|
+
previousRequestInputTokens?: number;
|
|
179
186
|
emitStatusNotice?: (message: string, metadata?: Record<string, unknown>) => void;
|
|
180
187
|
}
|
|
181
188
|
export interface AgentRuntimePrepareTurnResult {
|
|
@@ -234,6 +241,14 @@ export type AgentModelEvent = {
|
|
|
234
241
|
reason: AgentModelFinishReason;
|
|
235
242
|
error?: string;
|
|
236
243
|
errorClass?: ProviderErrorClass;
|
|
244
|
+
/**
|
|
245
|
+
* Whether the underlying provider error was transient and worth
|
|
246
|
+
* retrying, decided at the model boundary from the AI SDK's typed
|
|
247
|
+
* `isRetryable` flag while the structured error is still in hand
|
|
248
|
+
* (`error` is a flattened string, so the agent loop cannot re-derive
|
|
249
|
+
* this). When absent, the agent loop classifies from the message.
|
|
250
|
+
*/
|
|
251
|
+
errorRetryable?: boolean;
|
|
237
252
|
/**
|
|
238
253
|
* The model layer already recorded `sdk.error` telemetry for this
|
|
239
254
|
* failure at its own error boundary. `error` is a flattened string,
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -488,6 +488,13 @@ export interface AgentPrepareTurnContext {
|
|
|
488
488
|
* compaction rather than trust its token estimates.
|
|
489
489
|
*/
|
|
490
490
|
overflowRecovery?: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* Input tokens the provider actually counted for the previous request this
|
|
493
|
+
* run, when available. Compaction uses it as a floor on its own char-based
|
|
494
|
+
* estimate, which under-counts dense content (disassembly, pixel dumps) and
|
|
495
|
+
* can otherwise let the real context grow past the window without triggering.
|
|
496
|
+
*/
|
|
497
|
+
previousRequestInputTokens?: number;
|
|
491
498
|
emitStatusNotice?: (message: string, metadata?: Record<string, unknown>) => void;
|
|
492
499
|
}
|
|
493
500
|
export interface AgentPrepareTurnResult {
|
|
@@ -662,6 +669,12 @@ export declare const AgentResultSchema: z.ZodObject<{
|
|
|
662
669
|
family: z.ZodOptional<z.ZodString>;
|
|
663
670
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
664
671
|
reasoningDefaultOn: z.ZodOptional<z.ZodBoolean>;
|
|
672
|
+
apiProtocol: z.ZodOptional<z.ZodEnum<{
|
|
673
|
+
"openai-responses": "openai-responses";
|
|
674
|
+
"openai-chat": "openai-chat";
|
|
675
|
+
anthropic: "anthropic";
|
|
676
|
+
gemini: "gemini";
|
|
677
|
+
}>>;
|
|
665
678
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
666
679
|
}, z.core.$strip>>;
|
|
667
680
|
}, z.core.$strip>;
|
|
@@ -967,6 +980,12 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
967
980
|
family: z.ZodOptional<z.ZodString>;
|
|
968
981
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
969
982
|
reasoningDefaultOn: z.ZodOptional<z.ZodBoolean>;
|
|
983
|
+
apiProtocol: z.ZodOptional<z.ZodEnum<{
|
|
984
|
+
"openai-responses": "openai-responses";
|
|
985
|
+
"openai-chat": "openai-chat";
|
|
986
|
+
anthropic: "anthropic";
|
|
987
|
+
gemini: "gemini";
|
|
988
|
+
}>>;
|
|
970
989
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
971
990
|
}, z.core.$strip>>>;
|
|
972
991
|
providerConfig: z.ZodOptional<z.ZodUnknown>;
|