@opencode/ai 0.0.0-dev-1302 → 0.0.0-dev-1304
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/cache-policy.js +4 -2
- package/dist/llm.d.ts +4 -1
- package/dist/llm.js +10 -1
- package/dist/protocols/alibaba-messages.d.ts +24 -2
- package/dist/protocols/alibaba-responses.d.ts +26 -0
- package/dist/protocols/anthropic-messages.d.ts +70 -6
- package/dist/protocols/anthropic-messages.js +74 -9
- package/dist/protocols/meta-messages.d.ts +24 -2
- package/dist/protocols/meta-responses.d.ts +52 -0
- package/dist/protocols/open-responses.d.ts +250 -24
- package/dist/protocols/open-responses.js +40 -24
- package/dist/protocols/openai-compatible-responses.d.ts +26 -0
- package/dist/protocols/openai-freeform.d.ts +1 -1
- package/dist/protocols/openai-freeform.js +9 -5
- package/dist/protocols/openai-responses.d.ts +153 -0
- package/dist/protocols/openai-responses.js +68 -7
- package/dist/protocols/utils/gateway-protocol.js +1 -0
- package/dist/protocols/utils/responses-compaction.js +7 -3
- package/dist/protocols/xai-responses.d.ts +26 -0
- package/dist/protocols/zai-messages.d.ts +24 -2
- package/dist/providers/alibaba.d.ts +50 -2
- package/dist/providers/amazon-bedrock-mantle.d.ts +50 -2
- package/dist/providers/anthropic-compatible.d.ts +24 -2
- package/dist/providers/anthropic.d.ts +24 -2
- package/dist/providers/azure.d.ts +76 -2
- package/dist/providers/cloudflare-ai-gateway.d.ts +100 -4
- package/dist/providers/digitalocean.d.ts +26 -0
- package/dist/providers/google-vertex-messages.d.ts +24 -2
- package/dist/providers/google-vertex-messages.js +1 -0
- package/dist/providers/google-vertex-responses.d.ts +26 -0
- package/dist/providers/meta.d.ts +50 -2
- package/dist/providers/minimax.d.ts +50 -2
- package/dist/providers/moonshot.d.ts +50 -2
- package/dist/providers/openai-compatible-responses.d.ts +26 -0
- package/dist/providers/openai.d.ts +26 -0
- package/dist/providers/openrouter.d.ts +26 -0
- package/dist/providers/venice.d.ts +26 -0
- package/dist/providers/zai-coding-plan.d.ts +50 -2
- package/dist/public.d.ts +2 -2
- package/dist/public.js +1 -1
- package/dist/route/client.d.ts +2 -0
- package/dist/route/client.js +5 -1
- package/dist/route/protocol.d.ts +3 -0
- package/dist/schema/events.d.ts +5 -0
- package/dist/schema/messages.d.ts +24 -1
- package/dist/schema/messages.js +26 -2
- package/dist/schema/options.d.ts +10 -2
- package/dist/tool-updates.d.ts +34 -0
- package/dist/tool-updates.js +93 -0
- package/dist/tool.d.ts +6 -1
- package/dist/tool.js +1 -1
- package/package.json +3 -3
|
@@ -23,6 +23,32 @@ export declare const routes: (Route<{
|
|
|
23
23
|
readonly reasoning: {
|
|
24
24
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
25
25
|
};
|
|
26
|
+
} | {
|
|
27
|
+
readonly type: "additional_tools";
|
|
28
|
+
readonly role: "developer";
|
|
29
|
+
readonly tools: readonly ({
|
|
30
|
+
readonly type: "custom";
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly description: string;
|
|
33
|
+
readonly format: {
|
|
34
|
+
readonly type: "text";
|
|
35
|
+
} | {
|
|
36
|
+
readonly type: "grammar";
|
|
37
|
+
readonly syntax: "lark" | "regex";
|
|
38
|
+
readonly definition: string;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly description: string;
|
|
44
|
+
readonly parameters: {
|
|
45
|
+
readonly [x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
readonly strict?: boolean | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
readonly [x: string]: unknown;
|
|
50
|
+
readonly type: string;
|
|
51
|
+
})[];
|
|
26
52
|
} | {
|
|
27
53
|
readonly type: "message";
|
|
28
54
|
readonly role: "system";
|
|
@@ -26,6 +26,32 @@ export declare const routes: (Route<{
|
|
|
26
26
|
readonly reasoning: {
|
|
27
27
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
28
28
|
};
|
|
29
|
+
} | {
|
|
30
|
+
readonly type: "additional_tools";
|
|
31
|
+
readonly role: "developer";
|
|
32
|
+
readonly tools: readonly ({
|
|
33
|
+
readonly type: "custom";
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly description: string;
|
|
36
|
+
readonly format: {
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
} | {
|
|
39
|
+
readonly type: "grammar";
|
|
40
|
+
readonly syntax: "lark" | "regex";
|
|
41
|
+
readonly definition: string;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly description: string;
|
|
47
|
+
readonly parameters: {
|
|
48
|
+
readonly [x: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
readonly strict?: boolean | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
readonly [x: string]: unknown;
|
|
53
|
+
readonly type: string;
|
|
54
|
+
})[];
|
|
29
55
|
} | {
|
|
30
56
|
readonly type: "message";
|
|
31
57
|
readonly role: "system";
|
|
@@ -629,14 +655,36 @@ export declare const routes: (Route<{
|
|
|
629
655
|
})[];
|
|
630
656
|
} | {
|
|
631
657
|
readonly role: "system";
|
|
632
|
-
readonly content: readonly {
|
|
658
|
+
readonly content: readonly ({
|
|
659
|
+
readonly type: "tool_addition";
|
|
660
|
+
readonly tool: {
|
|
661
|
+
readonly type: "tool_definition";
|
|
662
|
+
readonly definition: {
|
|
663
|
+
readonly name: string;
|
|
664
|
+
readonly description: string;
|
|
665
|
+
readonly input_schema: {
|
|
666
|
+
readonly [x: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
readonly cache_control?: {
|
|
669
|
+
readonly type: "ephemeral";
|
|
670
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
671
|
+
} | undefined;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
} | {
|
|
675
|
+
readonly type: "tool_removal";
|
|
676
|
+
readonly tool: {
|
|
677
|
+
readonly type: "tool_reference";
|
|
678
|
+
readonly name: string;
|
|
679
|
+
};
|
|
680
|
+
} | {
|
|
633
681
|
readonly type: "text";
|
|
634
682
|
readonly text: string;
|
|
635
683
|
readonly cache_control?: {
|
|
636
684
|
readonly type: "ephemeral";
|
|
637
685
|
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
638
686
|
} | undefined;
|
|
639
|
-
}[];
|
|
687
|
+
})[];
|
|
640
688
|
readonly output_config?: {
|
|
641
689
|
readonly effort: string;
|
|
642
690
|
} | undefined;
|
package/dist/public.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { isContextOverflow, isContextOverflowFailure, isRetryable } from "./provider-error.js";
|
|
2
|
-
export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
|
|
2
|
+
export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, ToolChanges, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
|
|
3
3
|
export type { BaseRequest, ContentPartInput, GenerationOptionsFields, HttpOptions, RequestOptions, LanguageModelInput, LanguageModelProviderOptions, LLMRequest, MediaPartInput, RequestTimeout, TimeoutConfig, ToolDefinitionInput, ToolNamespaceInput, ToolNamespaceEntryInput, ToolEntryInput, TransportOptions, UsageInput, } from "./schema/index.js";
|
|
4
4
|
export { ImageAspectRatio, ImageEvent, ImageModel, ImageModelSchema, ImageResponse } from "./image.js";
|
|
5
5
|
export type { ImageJob, ImageModelOptions, ImageOptions, ImageRequest, ImageRequestInput, ImageResolution, ImageRoute, ImageStatus, } from "./image.js";
|
|
@@ -11,7 +11,7 @@ export { EmbeddingModel, EmbeddingModelSchema, EmbeddingResponse, EmbeddingUsage
|
|
|
11
11
|
export type { EmbeddingInputType, EmbeddingModelOptions, EmbeddingModelRoute, EmbeddingOptions, EmbeddingRequest, EmbeddingRequestInput, EmbeddingValueInput, } from "./embedding.js";
|
|
12
12
|
export { Media } from "./media.js";
|
|
13
13
|
export type { AwaitOptions as GenerationAwaitOptions, Event as GenerationEvent, Poll, Reason as GenerationReason, Route as GenerationRoute, Snapshot as GenerationSnapshot, Status as GenerationStatus, } from "./generation.js";
|
|
14
|
-
export type { ExecutableTool, Tool, ToolExecute, ToolExecuteContext, ToolInput, ToolInputType, ToolModelOutputInput, ToolOptions, ToolSchema, ToolToModelOutput, } from "./tool.js";
|
|
14
|
+
export type { ExecutableTool, Tool, ToolChangesInput, ToolExecute, ToolExecuteContext, ToolInput, ToolInputType, ToolModelOutputInput, ToolOptions, ToolSchema, ToolToModelOutput, } from "./tool.js";
|
|
15
15
|
export type { LLM } from "./llm.js";
|
|
16
16
|
export type { LLMLoopInput, LLMRequestInput } from "./llm.js";
|
|
17
17
|
export type { HttpHandler, HttpMiddleware } from "./route/executor-service.js";
|
package/dist/public.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { isContextOverflow, isContextOverflowFailure, isRetryable } from "./provider-error.js";
|
|
2
|
-
export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
|
|
2
|
+
export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, GENERATION_KEYS, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, ToolChanges, Message, SystemMessage, UserMessage, AssistantMessage, ToolMessage, Freeform, ToolDefinition, ToolNamespace, ToolEntry, ToolChoice, FinishReason, Usage, MediaUsage, CompactionResponse, CompactionCheckpointResponse, StepStart, TextStart, TextDelta, TextEnd, ReasoningStart, ReasoningDelta, ReasoningEnd, ToolInputStart, ToolInputDelta, ToolInputEnd, ToolInputError, ToolCall, ToolResult, FinishReasonDetails, StepFinish, Finish, MediaEvent, RawEvent, LLMEvent, LLMResponse, HttpContext, HttpRateLimitDetails, InvalidRequestError, UnsupportedOperationError, ProviderConfigurationError, AuthenticationError, RateLimitError, QuotaExceededError, ContentPolicyError, ProviderInternalError, TransportType, TransportOperation, TransportError, InvalidProviderOutputError, UnknownProviderError, TimeoutError, AIErrorReason, AIError, } from "./schema/index.js";
|
|
3
3
|
export { ImageAspectRatio, ImageEvent, ImageModel, ImageModelSchema, ImageResponse } from "./image.js";
|
|
4
4
|
export { VideoAspectRatio, VideoDuration, VideoModel, VideoModelSchema, VideoResponse } from "./video.js";
|
|
5
5
|
export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionResponse, DecisionTextPart, DecisionUsage, ErrorAnswer, ErrorReason, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
|
package/dist/route/client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Framing } from "./framing.js";
|
|
|
6
6
|
import { HttpTransport } from "./transport/index.js";
|
|
7
7
|
import type { HttpMiddleware, Transport, TransportRuntime, WebSocketChannelExecutor } from "./transport/index.js";
|
|
8
8
|
import type { Protocol } from "./protocol.js";
|
|
9
|
+
import { type ToolUpdateEncoding } from "../tool-updates.js";
|
|
9
10
|
import type { LanguageModelSanitizerCompatibility, ProtocolID, ProviderOptions } from "../schema/index.js";
|
|
10
11
|
import type { LLMRequestInput } from "../llm.js";
|
|
11
12
|
import { AIError, CompactionResponse, CompactionCheckpointResponse, LLMResponse, LanguageModel, LLMEvent, ProviderID, type LLMRequest, type RequestOptions } from "../schema/index.js";
|
|
@@ -33,6 +34,7 @@ export interface Route<Body, Prepared = unknown, Compact extends CompactionOpera
|
|
|
33
34
|
readonly options?: RequestOptions;
|
|
34
35
|
readonly body: RouteBody<Body>;
|
|
35
36
|
readonly supportsEffortUpdates?: (request: LLMRequest) => boolean;
|
|
37
|
+
readonly toolUpdates?: ToolUpdateEncoding;
|
|
36
38
|
readonly sanitizer?: LanguageModelSanitizerCompatibility;
|
|
37
39
|
readonly with: {
|
|
38
40
|
<Next extends CompactionOperations | undefined>(patch: RoutePatch<Body, Prepared> & {
|
package/dist/route/client.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Framing } from "./framing.js";
|
|
|
6
6
|
import { HttpTransport } from "./transport/index.js";
|
|
7
7
|
import { applyCachePolicy } from "../cache-policy.js";
|
|
8
8
|
import { applyEffortUpdates } from "../effort-updates.js";
|
|
9
|
+
import { mapToolUpdates, planToolUpdates } from "../tool-updates.js";
|
|
9
10
|
import { normalizeToolHistory } from "../tool-history.js";
|
|
10
11
|
import { sanitizeSurrogates } from "../utils/sanitize.js";
|
|
11
12
|
import * as ProviderShared from "../protocols/shared.js";
|
|
@@ -108,6 +109,7 @@ function makeFromTransport(input) {
|
|
|
108
109
|
options: routeInput.options,
|
|
109
110
|
body: protocol.body,
|
|
110
111
|
supportsEffortUpdates: protocol.supportsEffortUpdates,
|
|
112
|
+
toolUpdates: protocol.toolUpdates,
|
|
111
113
|
sanitizer: protocol.sanitizer,
|
|
112
114
|
with: (patch) => {
|
|
113
115
|
const { compact, id, provider, providerMetadataKey, auth, transport, endpoint, ...options } = patch;
|
|
@@ -201,7 +203,9 @@ const prepareRequest = (request) => {
|
|
|
201
203
|
const sanitized = restoreClasses({ ...sanitizeSurrogates({ ...original, model: undefined }), model: original.model });
|
|
202
204
|
// Deduplicate per sibling level; a tool and a namespace may share a name.
|
|
203
205
|
const dedupe = (tools) => [...new Map(tools.map((tool) => [`${tool.type}:${tool.name}`, tool])).values()].map((tool) => tool.type === "tool" ? tool : { ...tool, tools: dedupe(tool.tools) });
|
|
204
|
-
const
|
|
206
|
+
const project = (tools) => ToolSchemaProjection.tools(dedupe(tools), sanitized.model);
|
|
207
|
+
const updated = planToolUpdates(sanitized);
|
|
208
|
+
const resolved = applyCachePolicy(applyEffortUpdates(mapToolUpdates({ ...updated, tools: project(updated.tools) }, project)));
|
|
205
209
|
const headers = resolved.model.route.headers?.({ request: resolved });
|
|
206
210
|
return headers === undefined ? resolved : { ...resolved, headers: { ...headers, ...resolved.headers } };
|
|
207
211
|
};
|
package/dist/route/protocol.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema, type Effect } from "effect";
|
|
2
2
|
import type { AIError, LanguageModelSanitizerCompatibility, LLMEvent, LLMRequest, ProtocolID } from "../schema/index.js";
|
|
3
|
+
import type { ToolUpdateEncoding } from "../tool-updates.js";
|
|
3
4
|
/**
|
|
4
5
|
* The semantic API contract of one model server family.
|
|
5
6
|
*
|
|
@@ -42,6 +43,8 @@ export interface Protocol<Body, Frame, Event, State> {
|
|
|
42
43
|
readonly stream: ProtocolStream<Frame, Event, State>;
|
|
43
44
|
/** Whether `body.from` lowers `Message.effort(...)` markers; wrappers around another `body.from` must forward it. */
|
|
44
45
|
readonly supportsEffortUpdates?: (request: LLMRequest) => boolean;
|
|
46
|
+
/** Tool changes `body.from` can send in place of `Message.tools(...)` markers; wrappers around another `body.from` must forward it. */
|
|
47
|
+
readonly toolUpdates?: ToolUpdateEncoding;
|
|
45
48
|
/** Tool schema sanitizer for every model on this protocol unless the model's compatibility sets one; wrappers around another `body.from` must forward it. */
|
|
46
49
|
readonly sanitizer?: LanguageModelSanitizerCompatibility;
|
|
47
50
|
}
|
package/dist/schema/events.d.ts
CHANGED
|
@@ -133,6 +133,11 @@ declare const CompactionResponse_base: Schema.Class<CompactionResponse, Schema.S
|
|
|
133
133
|
readonly effort?: import("./options.js").ReasoningEffort;
|
|
134
134
|
readonly previous?: import("./options.js").ReasoningEffort;
|
|
135
135
|
}) => import("./messages.js").SystemMessage;
|
|
136
|
+
tools: (input: import("../tool.js").ToolChangesInput) => {
|
|
137
|
+
role: "system";
|
|
138
|
+
content: never[];
|
|
139
|
+
tools: import("../tool.js").ToolChangesInput;
|
|
140
|
+
};
|
|
136
141
|
tool: (result: ToolResultPart | Parameters<typeof ToolResultPart.make>[0]) => import("./messages.js").ToolMessage;
|
|
137
142
|
}>;
|
|
138
143
|
readonly usage: Schema.optional<typeof Usage>;
|
|
@@ -2,6 +2,7 @@ import { Schema } from "effect";
|
|
|
2
2
|
import { Tool } from "@opencode/schema/tool";
|
|
3
3
|
import { type BaseRequest, CacheHint, type CachePolicy, JsonSchema, type LanguageModel, type LanguageModelProviderOptions, ReasoningEffort, type GenerationOptionsFields } from "./options.js";
|
|
4
4
|
import { Media } from "../media.js";
|
|
5
|
+
import type { ToolChangesInput } from "../tool.js";
|
|
5
6
|
export declare const MessageRole: Schema.Literals<readonly ["system", "user", "assistant", "tool"]>;
|
|
6
7
|
export type MessageRole = Schema.Schema.Type<typeof MessageRole>;
|
|
7
8
|
declare const systemPartSchema: Schema.Struct<{
|
|
@@ -419,6 +420,12 @@ export declare const ContentPart: Schema.toTaggedUnion<"type", readonly [Schema.
|
|
|
419
420
|
readonly previous: Schema.optional<Schema.declare<ReasoningEffort, ReasoningEffort>>;
|
|
420
421
|
}>]>;
|
|
421
422
|
export type ContentPart = Schema.Schema.Type<typeof ContentPart>;
|
|
423
|
+
/** Tools changed here: `add` appends or redefines tools by name, `remove` drops them by name. */
|
|
424
|
+
export declare const ToolChanges: Schema.Struct<{
|
|
425
|
+
readonly add: Schema.$Array<Schema.suspend<Schema.Codec<ToolEntry, ToolEntry, never, never>>>;
|
|
426
|
+
readonly remove: Schema.$Array<Schema.String>;
|
|
427
|
+
}>;
|
|
428
|
+
export type ToolChanges = Schema.Schema.Type<typeof ToolChanges>;
|
|
422
429
|
declare const SystemMessage_base: Schema.Class<SystemMessage, Schema.Struct<{
|
|
423
430
|
readonly id: Schema.optional<Schema.String>;
|
|
424
431
|
readonly role: Schema.Literal<"system">;
|
|
@@ -432,6 +439,10 @@ declare const SystemMessage_base: Schema.Class<SystemMessage, Schema.Struct<{
|
|
|
432
439
|
readonly effort: Schema.optional<Schema.declare<ReasoningEffort, ReasoningEffort>>;
|
|
433
440
|
readonly previous: Schema.optional<Schema.declare<ReasoningEffort, ReasoningEffort>>;
|
|
434
441
|
}>]>>;
|
|
442
|
+
readonly tools: Schema.optional<Schema.Struct<{
|
|
443
|
+
readonly add: Schema.$Array<Schema.suspend<Schema.Codec<ToolEntry, ToolEntry, never, never>>>;
|
|
444
|
+
readonly remove: Schema.$Array<Schema.String>;
|
|
445
|
+
}>>;
|
|
435
446
|
}>, {}>;
|
|
436
447
|
export declare class SystemMessage extends SystemMessage_base {
|
|
437
448
|
}
|
|
@@ -698,7 +709,9 @@ export declare namespace Message {
|
|
|
698
709
|
type RoleInput<Props, Content> = Omit<Props, "content"> & {
|
|
699
710
|
readonly content: Content;
|
|
700
711
|
};
|
|
701
|
-
export type SystemInput = RoleInput<ConstructorParameters<typeof SystemMessage>[0], ContentInput<SystemMessage["content"][number]
|
|
712
|
+
export type SystemInput = RoleInput<Omit<ConstructorParameters<typeof SystemMessage>[0], "tools">, ContentInput<SystemMessage["content"][number]>> & {
|
|
713
|
+
readonly tools?: ToolChangesInput;
|
|
714
|
+
};
|
|
702
715
|
export type UserInput = RoleInput<ConstructorParameters<typeof UserMessage>[0], UserContentInput>;
|
|
703
716
|
export type AssistantInput = RoleInput<ConstructorParameters<typeof AssistantMessage>[0], AssistantContentInput>;
|
|
704
717
|
export type ToolInput = RoleInput<ConstructorParameters<typeof ToolMessage>[0], ToolResultPart | ReadonlyArray<ToolResultPart>>;
|
|
@@ -732,6 +745,16 @@ export declare const Message: Schema.Union<readonly [typeof SystemMessage, typeo
|
|
|
732
745
|
readonly effort?: ReasoningEffort;
|
|
733
746
|
readonly previous?: ReasoningEffort;
|
|
734
747
|
}) => SystemMessage;
|
|
748
|
+
/**
|
|
749
|
+
* Change the available tools at this point. A route sends the change in place when the model's `tools.updates`
|
|
750
|
+
* allows it, and otherwise folds it into the top-level `tools`. Returns message input that keeps the tool objects,
|
|
751
|
+
* so `ai.loop` can run an executable tool added here.
|
|
752
|
+
*/
|
|
753
|
+
tools: (input: ToolChangesInput) => {
|
|
754
|
+
role: "system";
|
|
755
|
+
content: never[];
|
|
756
|
+
tools: ToolChangesInput;
|
|
757
|
+
};
|
|
735
758
|
tool: (result: ToolResultPart | Parameters<typeof ToolResultPart.make>[0]) => ToolMessage;
|
|
736
759
|
};
|
|
737
760
|
/**
|
package/dist/schema/messages.js
CHANGED
|
@@ -166,10 +166,16 @@ export const ContentPart = Schema.Union([
|
|
|
166
166
|
CompactionPart,
|
|
167
167
|
EffortPart,
|
|
168
168
|
]).pipe(Schema.toTaggedUnion("type"));
|
|
169
|
+
/** Tools changed here: `add` appends or redefines tools by name, `remove` drops them by name. */
|
|
170
|
+
export const ToolChanges = Schema.Struct({
|
|
171
|
+
add: Schema.Array(Schema.suspend(() => ToolEntry)),
|
|
172
|
+
remove: Schema.Array(Schema.String),
|
|
173
|
+
}).annotate({ identifier: "LLM.ToolChanges" });
|
|
169
174
|
export class SystemMessage extends Schema.Class("LLM.SystemMessage")({
|
|
170
175
|
id: Schema.optional(Schema.String),
|
|
171
176
|
role: Schema.Literal("system"),
|
|
172
177
|
content: Schema.Array(Schema.Union([TextPart, EffortPart]).pipe(Schema.toTaggedUnion("type"))),
|
|
178
|
+
tools: Schema.optional(ToolChanges),
|
|
173
179
|
}) {
|
|
174
180
|
}
|
|
175
181
|
export class UserMessage extends Schema.Class("LLM.UserMessage")({
|
|
@@ -201,8 +207,16 @@ function contentWithMedia(input) {
|
|
|
201
207
|
}
|
|
202
208
|
function make(input) {
|
|
203
209
|
switch (input.role) {
|
|
204
|
-
case "system":
|
|
205
|
-
|
|
210
|
+
case "system": {
|
|
211
|
+
if (input instanceof SystemMessage)
|
|
212
|
+
return input;
|
|
213
|
+
const { tools, ...rest } = input;
|
|
214
|
+
return new SystemMessage({
|
|
215
|
+
...rest,
|
|
216
|
+
content: content(input.content),
|
|
217
|
+
...(tools === undefined ? {} : { tools: toolChanges(tools) }),
|
|
218
|
+
});
|
|
219
|
+
}
|
|
206
220
|
case "user":
|
|
207
221
|
return input instanceof UserMessage
|
|
208
222
|
? input
|
|
@@ -235,8 +249,18 @@ export const Message = withStatics(messageSchema, {
|
|
|
235
249
|
*/
|
|
236
250
|
system: (input) => make({ role: "system", content: input }),
|
|
237
251
|
effort: (input) => make({ role: "system", content: [{ type: "effort", effort: input.effort, previous: input.previous }] }),
|
|
252
|
+
/**
|
|
253
|
+
* Change the available tools at this point. A route sends the change in place when the model's `tools.updates`
|
|
254
|
+
* allows it, and otherwise folds it into the top-level `tools`. Returns message input that keeps the tool objects,
|
|
255
|
+
* so `ai.loop` can run an executable tool added here.
|
|
256
|
+
*/
|
|
257
|
+
tools: (input) => ({ role: "system", content: [], tools: input }),
|
|
238
258
|
tool: (result) => make({ role: "tool", content: ["type" in result ? result : ToolResultPart.make(result)] }),
|
|
239
259
|
});
|
|
260
|
+
const toolChanges = (input) => ({
|
|
261
|
+
add: (input.add ?? []).map((item) => ("_definition" in item ? item._definition : ToolEntry.make(item))),
|
|
262
|
+
remove: (input.remove ?? []).map((item) => (typeof item === "string" ? item : item.name)),
|
|
263
|
+
});
|
|
240
264
|
/**
|
|
241
265
|
* Raw-text wire encoding for a tool with exactly one required string parameter. Models that accept the format
|
|
242
266
|
* write that parameter's value directly instead of JSON arguments; calls still decode to the normal object input.
|
package/dist/schema/options.d.ts
CHANGED
|
@@ -135,8 +135,16 @@ export interface Capabilities {
|
|
|
135
135
|
readonly search?: boolean;
|
|
136
136
|
/** Input formats accepted by custom (free-form) tools. */
|
|
137
137
|
readonly freeform?: ReadonlyArray<"text" | "lark" | "regex">;
|
|
138
|
-
/**
|
|
139
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Tool changes the model takes mid-conversation without changing the leading tool declaration, so the prompt
|
|
140
|
+
* cache holds. `add`: declares a tool not declared before. `remove`: withdraws a declared tool. `replace`:
|
|
141
|
+
* declares a tool under a name declared before (a redefinition, or re-adding a removed tool). Unset or empty:
|
|
142
|
+
* every change folds into the top-level tools. Anthropic Messages sends all three as native blocks. OpenAI
|
|
143
|
+
* Responses needs `add` for any of them: it declares every tool in `additional_tools` items with a short
|
|
144
|
+
* incremental-update hint before each later item, and announces a removal as developer text while the tool
|
|
145
|
+
* stays declared, so list `remove` only for models that follow that announcement.
|
|
146
|
+
*/
|
|
147
|
+
readonly updates?: ReadonlyArray<"add" | "remove" | "replace">;
|
|
140
148
|
};
|
|
141
149
|
readonly reasoning?: {
|
|
142
150
|
readonly supported?: boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Message, type LLMRequest, type ToolChanges, type ToolEntry } from "./schema/messages.js";
|
|
2
|
+
import type { Capabilities } from "./schema/options.js";
|
|
3
|
+
export type ToolUpdate = NonNullable<NonNullable<Capabilities["tools"]>["updates"]>[number];
|
|
4
|
+
/** What a protocol can send in place of a `Message.tools(...)` marker; the model's `tools.updates` narrows it. */
|
|
5
|
+
export interface ToolUpdateEncoding {
|
|
6
|
+
readonly kinds: ReadonlyArray<ToolUpdate>;
|
|
7
|
+
/** Whether the marker at this message index can be sent where it is. Defaults to anywhere. */
|
|
8
|
+
readonly placeable?: (request: LLMRequest, index: number) => boolean;
|
|
9
|
+
/** Whether a tool can be added or removed in place. Defaults to every tool. */
|
|
10
|
+
readonly declarable?: (tool: ToolEntry) => boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const toolsUpdate: (message: Message) => ToolChanges | undefined;
|
|
13
|
+
/** Whether any marker adds a tool, so a request without top-level tools still declares some. */
|
|
14
|
+
export declare const addsTools: (request: LLMRequest) => boolean;
|
|
15
|
+
/** The changes this route sends in place: the model's `tools.updates` that the protocol's encoding covers. */
|
|
16
|
+
export declare const toolUpdateKinds: (request: LLMRequest) => ("add" | "remove" | "replace")[];
|
|
17
|
+
/** Apply one change: removals first, then additions replace a same-named tool in place or append. */
|
|
18
|
+
export declare const foldTools: <Item extends {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
}>(tools: ReadonlyArray<Item>, add: ReadonlyArray<Item>, remove: ReadonlyArray<string>) => ReadonlyArray<Item>;
|
|
21
|
+
/**
|
|
22
|
+
* Fold the declarations up to the last one this route can't send in place into the leading one (the request's
|
|
23
|
+
* `tools`), and keep later markers in place, trimmed to their effective changes. Protocols send kept markers in
|
|
24
|
+
* message order and track what they need along the way. A marker is sent in place only after the conversation starts, when the model's
|
|
25
|
+
* `tools.updates` and the protocol's encoding both cover what it does: `add` a new name, `replace` a name declared
|
|
26
|
+
* before (even if removed since), `remove` a current tool. Removing a name that matches no current tool does nothing.
|
|
27
|
+
*/
|
|
28
|
+
export declare const planToolUpdates: (request: LLMRequest) => LLMRequest;
|
|
29
|
+
/** Fold every marker into the top-level tools, as a route without in-place tool changes sends them. */
|
|
30
|
+
export declare const foldToolUpdates: (request: LLMRequest) => LLMRequest;
|
|
31
|
+
/** Flattened names of the tools in `before` that `after` no longer has, including tools a redefined namespace drops. */
|
|
32
|
+
export declare const withdrawnTools: (before: ReadonlyArray<ToolEntry>, after: ReadonlyArray<ToolEntry>) => string[];
|
|
33
|
+
/** Rewrite the tools each marker adds, keeping the request identity when there are no markers. */
|
|
34
|
+
export declare const mapToolUpdates: (request: LLMRequest, f: (tools: ReadonlyArray<ToolEntry>) => ReadonlyArray<ToolEntry>) => LLMRequest;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// A request's top-level `tools` is shorthand for a leading `Message.tools({ add: tools })`: tool state is one
|
|
2
|
+
// ordered list of declarations, that leading one and then each marker in message order. Folding the whole list
|
|
3
|
+
// gives the tools a route without in-place changes sends. A protocol that can send some changes in place keeps
|
|
4
|
+
// them where they are, so the leading declaration, and the prompt cache behind it, stays fixed.
|
|
5
|
+
import { Message, SystemMessage } from "./schema/messages.js";
|
|
6
|
+
import { flattenTools } from "./protocols/shared.js";
|
|
7
|
+
export const toolsUpdate = (message) => message.role === "system" ? message.tools : undefined;
|
|
8
|
+
/** Whether any marker adds a tool, so a request without top-level tools still declares some. */
|
|
9
|
+
export const addsTools = (request) => request.messages.some((message) => (toolsUpdate(message)?.add.length ?? 0) > 0);
|
|
10
|
+
/** The changes this route sends in place: the model's `tools.updates` that the protocol's encoding covers. */
|
|
11
|
+
export const toolUpdateKinds = (request) => {
|
|
12
|
+
const encoding = request.model.route.toolUpdates;
|
|
13
|
+
return (request.model.capabilities?.tools?.updates ?? []).filter((kind) => encoding?.kinds.includes(kind));
|
|
14
|
+
};
|
|
15
|
+
/** Apply one change: removals first, then additions replace a same-named tool in place or append. */
|
|
16
|
+
export const foldTools = (tools, add, remove) => {
|
|
17
|
+
const added = new Map(add.map((tool) => [tool.name, tool]));
|
|
18
|
+
const kept = tools.filter((tool) => !remove.includes(tool.name)).map((tool) => added.get(tool.name) ?? tool);
|
|
19
|
+
const names = new Set(kept.map((tool) => tool.name));
|
|
20
|
+
return [...kept, ...[...added.values()].filter((tool) => !names.has(tool.name))];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Fold the declarations up to the last one this route can't send in place into the leading one (the request's
|
|
24
|
+
* `tools`), and keep later markers in place, trimmed to their effective changes. Protocols send kept markers in
|
|
25
|
+
* message order and track what they need along the way. A marker is sent in place only after the conversation starts, when the model's
|
|
26
|
+
* `tools.updates` and the protocol's encoding both cover what it does: `add` a new name, `replace` a name declared
|
|
27
|
+
* before (even if removed since), `remove` a current tool. Removing a name that matches no current tool does nothing.
|
|
28
|
+
*/
|
|
29
|
+
export const planToolUpdates = (request) => plan(request, toolUpdateKinds(request));
|
|
30
|
+
/** Fold every marker into the top-level tools, as a route without in-place tool changes sends them. */
|
|
31
|
+
export const foldToolUpdates = (request) => plan(request, []);
|
|
32
|
+
const plan = (request, supported) => {
|
|
33
|
+
const changes = request.messages.flatMap((message, index) => message.role === "system" && message.tools !== undefined ? [{ index, ...message.tools }] : []);
|
|
34
|
+
if (changes.length === 0)
|
|
35
|
+
return request;
|
|
36
|
+
const encoding = request.model.route.toolUpdates;
|
|
37
|
+
const declarable = (tool) => encoding?.declarable?.(tool) ?? true;
|
|
38
|
+
const firstTurn = request.messages.findIndex((message) => message.role !== "system");
|
|
39
|
+
const steps = changes.reduce((state, change) => {
|
|
40
|
+
const added = change.add.map((tool) => tool.name);
|
|
41
|
+
const removed = state.tools.filter((tool) => change.remove.includes(tool.name) && !added.includes(tool.name));
|
|
42
|
+
const tools = foldTools(state.tools, change.add, change.remove);
|
|
43
|
+
const kinds = [
|
|
44
|
+
...(removed.length > 0 || withdrawnTools(state.tools, tools).length > 0 ? ["remove"] : []),
|
|
45
|
+
...added.map((name) => (state.declared.has(name) ? "replace" : "add")),
|
|
46
|
+
];
|
|
47
|
+
const native = firstTurn !== -1 &&
|
|
48
|
+
change.index > firstTurn &&
|
|
49
|
+
kinds.every((kind) => supported.includes(kind)) &&
|
|
50
|
+
[...change.add, ...removed].every(declarable) &&
|
|
51
|
+
(encoding?.placeable?.(request, change.index) ?? true);
|
|
52
|
+
const step = {
|
|
53
|
+
index: change.index,
|
|
54
|
+
native,
|
|
55
|
+
tools,
|
|
56
|
+
changes: { add: change.add, remove: removed.map((tool) => tool.name) },
|
|
57
|
+
};
|
|
58
|
+
return { tools, declared: new Set([...state.declared, ...added]), steps: [...state.steps, step] };
|
|
59
|
+
}, { tools: request.tools, declared: new Set(request.tools.map((tool) => tool.name)), steps: [] }).steps;
|
|
60
|
+
const cut = steps.findLastIndex((step) => !step.native);
|
|
61
|
+
const kept = new Map(steps.slice(cut + 1).map((step) => [step.index, step.changes]));
|
|
62
|
+
return {
|
|
63
|
+
...request,
|
|
64
|
+
tools: cut === -1 ? request.tools : steps[cut].tools,
|
|
65
|
+
messages: request.messages.flatMap((message, index) => {
|
|
66
|
+
if (message.role !== "system" || message.tools === undefined)
|
|
67
|
+
return [message];
|
|
68
|
+
const tools = kept.get(index);
|
|
69
|
+
if (tools !== undefined && (tools.add.length > 0 || tools.remove.length > 0))
|
|
70
|
+
return [new SystemMessage({ ...message, tools })];
|
|
71
|
+
if (message.content.length === 0)
|
|
72
|
+
return [];
|
|
73
|
+
return [new SystemMessage({ id: message.id, role: "system", content: message.content })];
|
|
74
|
+
}),
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/** Flattened names of the tools in `before` that `after` no longer has, including tools a redefined namespace drops. */
|
|
78
|
+
export const withdrawnTools = (before, after) => {
|
|
79
|
+
const kept = new Set(toolNames(after));
|
|
80
|
+
return toolNames(before).filter((name) => !kept.has(name));
|
|
81
|
+
};
|
|
82
|
+
const toolNames = (tools) => flattenTools(tools).map((tool) => tool.name);
|
|
83
|
+
/** Rewrite the tools each marker adds, keeping the request identity when there are no markers. */
|
|
84
|
+
export const mapToolUpdates = (request, f) => {
|
|
85
|
+
if (!request.messages.some((message) => toolsUpdate(message) !== undefined))
|
|
86
|
+
return request;
|
|
87
|
+
return {
|
|
88
|
+
...request,
|
|
89
|
+
messages: request.messages.map((message) => message.role === "system" && message.tools !== undefined
|
|
90
|
+
? new SystemMessage({ ...message, tools: { ...message.tools, add: f(message.tools.add) } })
|
|
91
|
+
: message),
|
|
92
|
+
};
|
|
93
|
+
};
|
package/dist/tool.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, JsonSchema, Schema } from "effect";
|
|
2
2
|
import type { Content } from "@opencode/schema/tool";
|
|
3
3
|
import type { Freeform, ToolCallPart, ToolDefinition as ToolDefinitionClass, ToolOutput as ToolOutputType } from "./schema/index.js";
|
|
4
|
-
import { ToolFailure } from "./schema/index.js";
|
|
4
|
+
import { ToolFailure, type ToolEntryInput } from "./schema/index.js";
|
|
5
5
|
/**
|
|
6
6
|
* Schema constraint for tool input / success values: no decoding or
|
|
7
7
|
* encoding services are allowed. Tools should be self-contained — anything
|
|
@@ -61,6 +61,11 @@ export interface Tool<Input extends ToolInput = any, Success extends ToolSchema<
|
|
|
61
61
|
/** @internal */
|
|
62
62
|
readonly _definition: ToolDefinitionClass;
|
|
63
63
|
}
|
|
64
|
+
/** Tool changes for `Message.tools`: `add` takes what a request's `tools` takes, `remove` the same tools or their names. */
|
|
65
|
+
export interface ToolChangesInput {
|
|
66
|
+
readonly add?: ReadonlyArray<Tool | ToolEntryInput>;
|
|
67
|
+
readonly remove?: ReadonlyArray<Tool | ToolEntryInput | string>;
|
|
68
|
+
}
|
|
64
69
|
/** A tool with an `execute` handler, which `LLM.loop` and `ToolRuntime.dispatch` can run. */
|
|
65
70
|
export type ExecutableTool<Input extends ToolInput = any, Success extends ToolSchema<any> = any> = Tool<Input, Success> & {
|
|
66
71
|
readonly execute: ToolExecute<Input, Success>;
|
package/dist/tool.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, JsonSchema, Schema } from "effect";
|
|
2
|
-
import { ToolDefinition, ToolFailure, ToolOutput } from "./schema/index.js";
|
|
2
|
+
import { ToolDefinition, ToolFailure, ToolOutput, } from "./schema/index.js";
|
|
3
3
|
import { isRecord } from "./utils/record.js";
|
|
4
4
|
/**
|
|
5
5
|
* Constructs a tool whose `execute` returns an Effect that fails with `ToolFailure`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-1304",
|
|
4
4
|
"name": "@opencode/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
"devDependencies": {
|
|
625
625
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
626
626
|
"@effect/platform-node": "4.1.0",
|
|
627
|
-
"@opencode/http-recorder": "0.0.0-dev-
|
|
627
|
+
"@opencode/http-recorder": "0.0.0-dev-1304",
|
|
628
628
|
"@tsconfig/bun": "1.0.9",
|
|
629
629
|
"@types/bun": "1.4.3",
|
|
630
630
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
"@aws-sdk/credential-providers": "3.1057.0",
|
|
635
635
|
"@smithy/eventstream-codec": "4.2.14",
|
|
636
636
|
"@smithy/util-utf8": "4.2.2",
|
|
637
|
-
"@opencode/schema": "0.0.0-dev-
|
|
637
|
+
"@opencode/schema": "0.0.0-dev-1304",
|
|
638
638
|
"aws4fetch": "1.0.20",
|
|
639
639
|
"effect": "4.1.0",
|
|
640
640
|
"google-auth-library": "10.5.0"
|