@cline/shared 0.0.66 → 0.0.67-nightly.1785467775
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/agents/types.d.ts +43 -11
- package/dist/extensions/contribution-registry.d.ts +12 -4
- package/dist/hub.d.ts +1 -1
- package/dist/index.browser.d.ts +3 -0
- package/dist/index.browser.js +18 -18
- package/dist/index.d.ts +3 -0
- package/dist/index.js +63 -63
- package/dist/llms/gateway.d.ts +4 -2
- package/dist/llms/model-info.d.ts +19 -0
- package/dist/llms/reasoning-effort.d.ts +3 -1
- package/dist/llms/reasoning-options.d.ts +41 -0
- package/dist/mcp.d.ts +24 -0
- package/dist/remote-config/index.js +1 -1
- package/dist/remote-config/schema.d.ts +0 -4
- package/dist/rpc/runtime.d.ts +2 -1
- package/package.json +1 -1
package/dist/agents/types.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import type { AgentExtensionApi, AgentExtensionHooks, AgentExtensionRegistry as
|
|
|
16
16
|
import type { HookControl } from "../hooks/contracts";
|
|
17
17
|
import type { Message, MessageWithMetadata } from "../llms/messages";
|
|
18
18
|
import type { ModelInfo } from "../llms/model-info";
|
|
19
|
+
import { type ReasoningEffort } from "../llms/reasoning-options";
|
|
20
|
+
export { REASONING_LEVELS, type ReasoningEffort, ReasoningEffortSchema, type ReasoningLevel, ReasoningLevelSchema, } from "../llms/reasoning-options";
|
|
19
21
|
import type { ToolApprovalRequest, ToolApprovalResult, ToolCallRecord, ToolPolicy } from "../llms/tools";
|
|
20
22
|
import type { BasicLogger } from "../logging/logger";
|
|
21
23
|
import type { ITelemetryService } from "../services/telemetry";
|
|
@@ -556,6 +558,25 @@ export declare const AgentResultSchema: z.ZodObject<{
|
|
|
556
558
|
temperature: "temperature";
|
|
557
559
|
files: "files";
|
|
558
560
|
}>>>;
|
|
561
|
+
reasoningOptions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
562
|
+
type: z.ZodLiteral<"toggle">;
|
|
563
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
564
|
+
type: z.ZodLiteral<"effort">;
|
|
565
|
+
values: z.ZodArray<z.ZodNullable<z.ZodEnum<{
|
|
566
|
+
none: "none";
|
|
567
|
+
minimal: "minimal";
|
|
568
|
+
low: "low";
|
|
569
|
+
medium: "medium";
|
|
570
|
+
high: "high";
|
|
571
|
+
xhigh: "xhigh";
|
|
572
|
+
max: "max";
|
|
573
|
+
default: "default";
|
|
574
|
+
}>>>;
|
|
575
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
576
|
+
type: z.ZodLiteral<"budget_tokens">;
|
|
577
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
}, z.core.$strict>], "type">>>;
|
|
559
580
|
apiFormat: z.ZodOptional<z.ZodEnum<{
|
|
560
581
|
default: "default";
|
|
561
582
|
"openai-responses": "openai-responses";
|
|
@@ -600,16 +621,6 @@ export declare const AgentResultSchema: z.ZodObject<{
|
|
|
600
621
|
endedAt: z.ZodDate;
|
|
601
622
|
durationMs: z.ZodNumber;
|
|
602
623
|
}, z.core.$strip>;
|
|
603
|
-
/**
|
|
604
|
-
* Reasoning effort level for capable models
|
|
605
|
-
*/
|
|
606
|
-
export type ReasoningEffort = "low" | "medium" | "high" | "xhigh";
|
|
607
|
-
export declare const ReasoningEffortSchema: z.ZodEnum<{
|
|
608
|
-
low: "low";
|
|
609
|
-
high: "high";
|
|
610
|
-
medium: "medium";
|
|
611
|
-
xhigh: "xhigh";
|
|
612
|
-
}>;
|
|
613
624
|
/**
|
|
614
625
|
* Configuration for creating an Agent
|
|
615
626
|
*/
|
|
@@ -819,6 +830,25 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
819
830
|
temperature: "temperature";
|
|
820
831
|
files: "files";
|
|
821
832
|
}>>>;
|
|
833
|
+
reasoningOptions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
834
|
+
type: z.ZodLiteral<"toggle">;
|
|
835
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
836
|
+
type: z.ZodLiteral<"effort">;
|
|
837
|
+
values: z.ZodArray<z.ZodNullable<z.ZodEnum<{
|
|
838
|
+
none: "none";
|
|
839
|
+
minimal: "minimal";
|
|
840
|
+
low: "low";
|
|
841
|
+
medium: "medium";
|
|
842
|
+
high: "high";
|
|
843
|
+
xhigh: "xhigh";
|
|
844
|
+
max: "max";
|
|
845
|
+
default: "default";
|
|
846
|
+
}>>>;
|
|
847
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
848
|
+
type: z.ZodLiteral<"budget_tokens">;
|
|
849
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
850
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
851
|
+
}, z.core.$strict>], "type">>>;
|
|
822
852
|
apiFormat: z.ZodOptional<z.ZodEnum<{
|
|
823
853
|
default: "default";
|
|
824
854
|
"openai-responses": "openai-responses";
|
|
@@ -879,10 +909,12 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
879
909
|
}, z.core.$strip>]>>;
|
|
880
910
|
}, z.core.$strip>>;
|
|
881
911
|
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
912
|
+
minimal: "minimal";
|
|
882
913
|
low: "low";
|
|
883
|
-
high: "high";
|
|
884
914
|
medium: "medium";
|
|
915
|
+
high: "high";
|
|
885
916
|
xhigh: "xhigh";
|
|
917
|
+
max: "max";
|
|
886
918
|
}>>;
|
|
887
919
|
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
888
920
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -142,11 +142,19 @@ export interface PluginSetupContext {
|
|
|
142
142
|
/** Host-provided logger scoped to this session/plugin setup. */
|
|
143
143
|
logger?: BasicLogger;
|
|
144
144
|
/**
|
|
145
|
-
* Host-provided telemetry service
|
|
145
|
+
* Host-provided telemetry service. Feature-detect it
|
|
146
|
+
* (`ctx.telemetry?.capture(...)`): it is undefined when the host has no
|
|
147
|
+
* telemetry service.
|
|
146
148
|
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
149
|
+
* In-process plugins receive the host service directly. Sandboxed plugins
|
|
150
|
+
* receive a bridge — the live service cannot cross the JSON IPC boundary —
|
|
151
|
+
* that forwards `capture`/`captureRequired`/`recordCounter`/
|
|
152
|
+
* `recordHistogram`/`recordGauge` to the host, which namespaces every
|
|
153
|
+
* event and metric under `plugin.`, stamps `plugin_name`, and drops them
|
|
154
|
+
* when the user has opted out of telemetry. Bridge caveats: properties
|
|
155
|
+
* must be JSON-serializable; `isEnabled()` always reports `true` (the
|
|
156
|
+
* host is the arbiter, so do not gate expensive property computation on
|
|
157
|
+
* it); identity and common-property setters are no-ops.
|
|
150
158
|
*/
|
|
151
159
|
telemetry?: ITelemetryService;
|
|
152
160
|
}
|
package/dist/hub.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentMessage } from "./agent";
|
|
2
|
-
import type { ReasoningEffort } from "./agents/types";
|
|
3
2
|
import type { GatewayModelSelection, JsonValue } from "./llms/gateway";
|
|
3
|
+
import type { ReasoningEffort } from "./llms/reasoning-options";
|
|
4
4
|
import type { RuntimeConfigExtensionKind } from "./session/runtime-config";
|
|
5
5
|
export type HubProtocolVersion = "v1";
|
|
6
6
|
export declare const CURRENT_HUB_PROTOCOL_VERSION: HubProtocolVersion;
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -23,11 +23,14 @@ export type { ContentBlock, FileContent, ImageContent, Message, MessageRole, Mes
|
|
|
23
23
|
export { ApiFormat, ApiFormatSchema, type ModelCapability, ModelCapabilitySchema, type ModelInfo, ModelInfoSchema, type ModelMetadata, ModelMetadataSchema, type ModelPricing, ModelPricingSchema, type ModelStatus, ModelStatusSchema, type ThinkingConfig, ThinkingConfigSchema, } from "./llms/model-info";
|
|
24
24
|
export { mergeModelOptions } from "./llms/model-options";
|
|
25
25
|
export { DEFAULT_REASONING_EFFORT, REASONING_EFFORT_RATIOS, resolveEffectiveReasoningEffort, resolveReasoningBudgetFromRatio, resolveReasoningEffortRatio, } from "./llms/reasoning-effort";
|
|
26
|
+
export { type ModelReasoningOption, ModelReasoningOptionSchema, REASONING_LEVELS, type ReasoningEffort, ReasoningEffortSchema, type ReasoningLevel, ReasoningLevelSchema, } from "./llms/reasoning-options";
|
|
26
27
|
export { serializeAbortReason } from "./llms/requests";
|
|
27
28
|
export { CHARS_PER_TOKEN, estimateRequestInputTokens, estimateTokens, type TokenEstimatedRequest, } from "./llms/tokens";
|
|
28
29
|
export type { ToolApprovalRequest, ToolApprovalResult, ToolCallRecord, ToolPolicy, } from "./llms/tools";
|
|
29
30
|
export { ToolCallRecordSchema } from "./llms/tools";
|
|
30
31
|
export { type BasicLogger, type BasicLogMetadata, noopBasicLogger, } from "./logging/logger";
|
|
32
|
+
export * from "./mcp";
|
|
33
|
+
export { getErrorCode, getErrorMessage } from "./parse/error";
|
|
31
34
|
export { normalizeJsonLikeStringsForSchema, parseJsonStream, safeJsonParse, safeJsonStringify, } from "./parse/json";
|
|
32
35
|
export { decodeJwtPayload } from "./parse/jwt";
|
|
33
36
|
export { type OmitUndefinedValues, omitUndefinedValues } from "./parse/object";
|