@opencode/ai 0.0.0-dev-482 → 0.0.0-dev-491
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/effect.d.ts +1 -12
- package/dist/effect.js +1 -5
- package/dist/effort-updates.d.ts +2 -2
- package/dist/image-client.d.ts +4 -4
- package/dist/index.d.ts +1 -12
- package/dist/index.js +1 -5
- package/dist/protocols/alibaba-responses.js +8 -20
- package/dist/protocols/meta-responses.js +1 -1
- package/dist/protocols/open-responses.js +1 -3
- package/dist/protocols/openai-compatible-chat.d.ts +1 -1
- package/dist/protocols/openai-compatible-responses.d.ts +2 -2
- package/dist/protocols/openai-responses.js +8 -26
- package/dist/protocols/utils/image-sizing.d.ts +1 -1
- package/dist/protocols/utils/responses-hosted-tools.d.ts +97 -1
- package/dist/protocols/utils/responses-hosted-tools.js +31 -0
- package/dist/protocols/utils/tool-stream.d.ts +3 -209
- package/dist/protocols/utils/tool-stream.js +3 -13
- package/dist/protocols/xai-responses.js +4 -24
- package/dist/providers/baseten.js +3 -11
- package/dist/providers/cerebras.js +2 -7
- package/dist/providers/cohere/chat.js +2 -7
- package/dist/providers/cohere.js +2 -7
- package/dist/providers/deepinfra.js +2 -7
- package/dist/providers/deepseek.js +2 -7
- package/dist/providers/fireworks.js +2 -7
- package/dist/providers/google/interactions.js +2 -7
- package/dist/providers/google.js +3 -11
- package/dist/providers/groq.js +2 -7
- package/dist/providers/meta.js +5 -13
- package/dist/providers/minimax/chat.js +2 -7
- package/dist/providers/minimax/responses.js +2 -7
- package/dist/providers/minimax.js +3 -11
- package/dist/providers/mistral.js +2 -7
- package/dist/providers/moonshot/messages.js +2 -7
- package/dist/providers/moonshot/responses.js +2 -7
- package/dist/providers/moonshot.js +2 -7
- package/dist/providers/openai-compatible-responses.js +2 -8
- package/dist/providers/openai-compatible.js +3 -9
- package/dist/providers/opencode.d.ts +1 -1
- package/dist/providers/opencode.js +5 -1
- package/dist/providers/openrouter.js +5 -13
- package/dist/providers/settings.d.ts +19 -0
- package/dist/providers/settings.js +9 -0
- package/dist/providers/togetherai.js +2 -7
- package/dist/providers/typesafe-ai.d.ts +1 -1
- package/dist/providers/typesafe-ai.js +5 -1
- package/dist/providers/vercel-ai-gateway.js +7 -15
- package/dist/providers/xai.js +3 -11
- package/dist/providers/zai-coding-plan/messages.js +2 -7
- package/dist/providers/zai-coding-plan/responses.js +2 -7
- package/dist/providers/zai-coding-plan.js +2 -7
- package/dist/providers/zai.js +3 -11
- package/dist/public.d.ts +12 -0
- package/dist/public.js +5 -0
- package/dist/speech-client.d.ts +4 -4
- package/dist/transcription-client.d.ts +4 -4
- package/dist/video-client.d.ts +4 -4
- package/package.json +3 -3
|
@@ -13,6 +13,7 @@ import { Endpoint } from "../route/endpoint.js";
|
|
|
13
13
|
import { Framing } from "../route/framing.js";
|
|
14
14
|
import { MediaRoute } from "../route/media.js";
|
|
15
15
|
import { ModelID, ProviderID, ProviderMetadata, ReasoningEffort, } from "../schema/index.js";
|
|
16
|
+
import { toConfig } from "./settings.js";
|
|
16
17
|
export const id = ProviderID.make("vercel-ai-gateway");
|
|
17
18
|
const baseURL = "https://ai-gateway.vercel.sh/v1";
|
|
18
19
|
const GatewayOptionsSchema = Schema.Struct({
|
|
@@ -159,25 +160,16 @@ export const messages = provider.messages;
|
|
|
159
160
|
export const responses = provider.responses;
|
|
160
161
|
export const chat = provider.chat;
|
|
161
162
|
export const image = provider.image;
|
|
162
|
-
export const model = (modelID, settings) => configure(
|
|
163
|
-
export const messagesModel = (modelID, settings) => configure(
|
|
164
|
-
export const responsesModel = (modelID, settings) => configure(
|
|
165
|
-
export const chatModel = (modelID, settings) => configure(
|
|
163
|
+
export const model = (modelID, settings) => configure(toConfig(settings)).model(modelID);
|
|
164
|
+
export const messagesModel = (modelID, settings) => configure(toConfig(settings)).messages(modelID);
|
|
165
|
+
export const responsesModel = (modelID, settings) => configure(toConfig(settings)).responses(modelID);
|
|
166
|
+
export const chatModel = (modelID, settings) => configure(toConfig(settings)).chat(modelID);
|
|
166
167
|
export const imageModel = (modelID, settings) => {
|
|
167
|
-
const input =
|
|
168
|
+
const input = toConfig(settings);
|
|
168
169
|
return configure(input).image(modelID, input.providerOptions);
|
|
169
170
|
};
|
|
170
171
|
export const decisionModel = (modelID, settings) => {
|
|
171
|
-
const input =
|
|
172
|
+
const input = toConfig(settings);
|
|
172
173
|
return configure(input).decision(modelID, input.providerOptions);
|
|
173
174
|
};
|
|
174
|
-
function config({ apiKey, baseURL, headers, body, ...providerOptions } = {}) {
|
|
175
|
-
return {
|
|
176
|
-
apiKey,
|
|
177
|
-
baseURL,
|
|
178
|
-
headers,
|
|
179
|
-
http: body === undefined ? undefined : { body },
|
|
180
|
-
providerOptions,
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
175
|
export * as VercelAIGateway from "./vercel-ai-gateway.js";
|
package/dist/providers/xai.js
CHANGED
|
@@ -8,6 +8,7 @@ import { OpenResponsesChannel } from "../protocols/open-responses-channel.js";
|
|
|
8
8
|
import { XAIResponses } from "../protocols/xai-responses.js";
|
|
9
9
|
import { XAIImages } from "../protocols/xai-images.js";
|
|
10
10
|
import { XAIVideo } from "../protocols/xai-video.js";
|
|
11
|
+
import { toConfig } from "./settings.js";
|
|
11
12
|
export const id = ProviderID.make("xai");
|
|
12
13
|
const baseURL = "https://api.x.ai/v1";
|
|
13
14
|
const RESPONSES_WEBSOCKET_ROTATE_AFTER_MS = 24 * 60 * 1000;
|
|
@@ -73,20 +74,11 @@ export const configure = (input = {}) => {
|
|
|
73
74
|
};
|
|
74
75
|
};
|
|
75
76
|
export const provider = configure();
|
|
76
|
-
export const model = (modelID, settings) => configure(
|
|
77
|
+
export const model = (modelID, settings) => configure(toConfig(settings)).model(modelID);
|
|
77
78
|
export const imageModel = (modelID, settings) => {
|
|
78
|
-
const input =
|
|
79
|
+
const input = toConfig(settings);
|
|
79
80
|
return configure(input).image(modelID, input.providerOptions);
|
|
80
81
|
};
|
|
81
|
-
function config({ apiKey, baseURL, body, headers, ...providerOptions } = {}) {
|
|
82
|
-
return {
|
|
83
|
-
apiKey,
|
|
84
|
-
baseURL,
|
|
85
|
-
headers,
|
|
86
|
-
http: body === undefined ? undefined : { body },
|
|
87
|
-
providerOptions,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
82
|
export const responses = provider.responses;
|
|
91
83
|
export const chat = provider.chat;
|
|
92
84
|
export const image = provider.image;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { ZAICodingPlan } from "../zai-coding-plan.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
baseURL,
|
|
5
|
-
headers,
|
|
6
|
-
http: body === undefined ? undefined : { body },
|
|
7
|
-
providerOptions,
|
|
8
|
-
}).messages(modelID);
|
|
2
|
+
import { toConfig } from "../settings.js";
|
|
3
|
+
export const model = (modelID, settings) => ZAICodingPlan.configure(toConfig(settings)).messages(modelID);
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { ZAICodingPlan } from "../zai-coding-plan.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
baseURL,
|
|
5
|
-
headers,
|
|
6
|
-
http: body === undefined ? undefined : { body },
|
|
7
|
-
providerOptions,
|
|
8
|
-
}).responses(modelID);
|
|
2
|
+
import { toConfig } from "../settings.js";
|
|
3
|
+
export const model = (modelID, settings) => ZAICodingPlan.configure(toConfig(settings)).responses(modelID);
|
|
@@ -8,6 +8,7 @@ import { Route } from "../route/client.js";
|
|
|
8
8
|
import { Endpoint } from "../route/endpoint.js";
|
|
9
9
|
import { Framing } from "../route/framing.js";
|
|
10
10
|
import { ProviderID } from "../schema/index.js";
|
|
11
|
+
import { toConfig } from "./settings.js";
|
|
11
12
|
export const id = ProviderID.make("zai-coding-plan");
|
|
12
13
|
const chatRoute = Route.make({
|
|
13
14
|
id: "zai-coding-chat",
|
|
@@ -53,11 +54,5 @@ export const provider = configure();
|
|
|
53
54
|
export const chat = provider.chat;
|
|
54
55
|
export const messages = provider.messages;
|
|
55
56
|
export const responses = provider.responses;
|
|
56
|
-
export const model = (modelID,
|
|
57
|
-
apiKey,
|
|
58
|
-
baseURL,
|
|
59
|
-
headers,
|
|
60
|
-
http: body === undefined ? undefined : { body },
|
|
61
|
-
providerOptions,
|
|
62
|
-
}).model(modelID);
|
|
57
|
+
export const model = (modelID, settings) => configure(toConfig(settings)).model(modelID);
|
|
63
58
|
export * as ZAICodingPlan from "./zai-coding-plan.js";
|
package/dist/providers/zai.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Route } from "../route/client.js";
|
|
|
6
6
|
import { Endpoint } from "../route/endpoint.js";
|
|
7
7
|
import { MediaRoute } from "../route/media.js";
|
|
8
8
|
import { ProviderID } from "../schema/index.js";
|
|
9
|
+
import { toConfig } from "./settings.js";
|
|
9
10
|
export const id = ProviderID.make("zai");
|
|
10
11
|
const auth = (options) => AuthOptions.bearer(options, "ZAI_API_KEY");
|
|
11
12
|
const chatRoute = Route.make({
|
|
@@ -39,18 +40,9 @@ export const configure = (input = {}) => {
|
|
|
39
40
|
export const provider = configure();
|
|
40
41
|
export const image = provider.image;
|
|
41
42
|
export const chat = provider.chat;
|
|
42
|
-
export const model = (modelID, settings) => configure(
|
|
43
|
+
export const model = (modelID, settings) => configure(toConfig(settings)).model(modelID);
|
|
43
44
|
export const imageModel = (modelID, settings) => {
|
|
44
|
-
const input =
|
|
45
|
+
const input = toConfig(settings);
|
|
45
46
|
return configure(input).image(modelID, input.providerOptions);
|
|
46
47
|
};
|
|
47
|
-
function config({ apiKey, baseURL, body, headers, ...providerOptions } = {}) {
|
|
48
|
-
return {
|
|
49
|
-
apiKey,
|
|
50
|
-
baseURL,
|
|
51
|
-
headers,
|
|
52
|
-
http: body === undefined ? undefined : { body },
|
|
53
|
-
providerOptions,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
48
|
export * as ZAI from "./zai.js";
|
package/dist/public.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { isContextOverflow, isContextOverflowFailure, isRetryable } from "./provider-error.js";
|
|
2
|
+
export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, HttpOptions, GenerationOptions, LanguageModelDefaults, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, Message, 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
|
+
export type { GenerationOptionsFields, GenerationOptionsInput, LanguageModelInput, LanguageModelProviderOptions, LLMRequest, ToolDefinitionInput, ToolNamespaceInput, ToolNamespaceEntryInput, ToolEntryInput, UsageInput, } from "./schema/index.js";
|
|
4
|
+
export { ImageAspectRatio, ImageEvent, ImageModel, ImageModelSchema, ImageResponse } from "./image.js";
|
|
5
|
+
export type { ImageModelOptions, ImageOptions, ImageRequest, ImageRequestInput, ImageResolution, ImageRoute, } from "./image.js";
|
|
6
|
+
export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionResponse, DecisionTextPart, DecisionUsage, ErrorAnswer, ErrorReason, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
|
|
7
|
+
export type { AnswerFor, AnswersFor, DecisionInput, DecisionModelOptions, DecisionOptions, DecisionQuestions, DecisionRequest, DecisionRequestInput, DecisionResponseFor, DecisionModelRoute, } from "./decision.js";
|
|
8
|
+
export { Media } from "./media.js";
|
|
9
|
+
export type { AwaitOptions as GenerationAwaitOptions, Event as GenerationEvent, Poll, Route as GenerationRoute, Snapshot as GenerationSnapshot, Status as GenerationStatus, } from "./generation.js";
|
|
10
|
+
export type { ExecutableTool, Tool, ToolExecute, ToolExecuteContext, ToolInput, ToolInputType, ToolModelOutputInput, ToolOptions, ToolSchema, ToolToModelOutput, } from "./tool.js";
|
|
11
|
+
export type { LLM } from "./llm.js";
|
|
12
|
+
export type { LLMLoopInput, LLMRequestInput } from "./llm.js";
|
package/dist/public.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { isContextOverflow, isContextOverflowFailure, isRetryable } from "./provider-error.js";
|
|
2
|
+
export { ProtocolID, RouteID, ModelID, ProviderID, ResponseID, ContentBlockID, ToolCallID, JsonSchema, ProviderOptions, ProviderMetadata, HttpTimeout, RequestEncoding, HttpOptions, GenerationOptions, LanguageModelDefaults, ReasoningEfforts, ReasoningEffort, LanguageModelCompatibility, LanguageModel, LanguageModelSchema, CacheTTL, CacheHint, CachePolicyObject, CachePolicy, MessageRole, SystemPart, TextPart, MediaPart, ToolResultValue, ToolOutput, ToolCallPart, ToolResultPart, ReasoningPart, CompactionPart, EffortPart, ContentPart, Message, 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
|
+
export { ImageAspectRatio, ImageEvent, ImageModel, ImageModelSchema, ImageResponse } from "./image.js";
|
|
4
|
+
export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionResponse, DecisionTextPart, DecisionUsage, ErrorAnswer, ErrorReason, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
|
|
5
|
+
export { Media } from "./media.js";
|
package/dist/speech-client.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare const SpeechClient: {
|
|
|
57
57
|
} | undefined;
|
|
58
58
|
})[];
|
|
59
59
|
readonly layer: import("effect/Layer").Layer<SpeechClientService, never, import("./route.js").RequestExecutorService>;
|
|
60
|
-
readonly generate: (request: SpeechRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Effect").Effect<SpeechResponse, import("./
|
|
60
|
+
readonly generate: (request: SpeechRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Effect").Effect<SpeechResponse, import("./public.js").AIError, SpeechClientService>;
|
|
61
61
|
readonly stream: (request: SpeechRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Stream").Stream<{
|
|
62
62
|
readonly type: "audio-delta";
|
|
63
63
|
readonly chunk: Uint8Array<ArrayBufferLike>;
|
|
@@ -97,11 +97,11 @@ export declare const SpeechClient: {
|
|
|
97
97
|
readonly [x: string]: unknown;
|
|
98
98
|
};
|
|
99
99
|
} | undefined;
|
|
100
|
-
} | import("./generation.js").Observation, import("./
|
|
101
|
-
readonly start: (request: SpeechRequest) => import("effect/Effect").Effect<import("./generation.js").Generation<SpeechResponse>, import("./
|
|
100
|
+
} | import("./generation.js").Observation, import("./public.js").AIError, SpeechClientService>;
|
|
101
|
+
readonly start: (request: SpeechRequest) => import("effect/Effect").Effect<import("./generation.js").Generation<SpeechResponse>, import("./public.js").AIError, SpeechClientService>;
|
|
102
102
|
readonly resume: (model: import("./speech.js").SpeechModel<{
|
|
103
103
|
readonly [x: string]: unknown;
|
|
104
|
-
}>, token: unknown) => import("effect/Effect").Effect<import("./generation.js").Generation<SpeechResponse>, import("./
|
|
104
|
+
}>, token: unknown) => import("effect/Effect").Effect<import("./generation.js").Generation<SpeechResponse>, import("./public.js").AIError, SpeechClientService>;
|
|
105
105
|
readonly Service: typeof SpeechClientService;
|
|
106
106
|
};
|
|
107
107
|
export {};
|
|
@@ -73,7 +73,7 @@ export declare const TranscriptionClient: {
|
|
|
73
73
|
readonly type: "finish";
|
|
74
74
|
})[];
|
|
75
75
|
readonly layer: import("effect/Layer").Layer<TranscriptionClientService, never, import("./route.js").RequestExecutorService>;
|
|
76
|
-
readonly generate: (request: TranscriptionRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Effect").Effect<TranscriptionResponse, import("./
|
|
76
|
+
readonly generate: (request: TranscriptionRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Effect").Effect<TranscriptionResponse, import("./public.js").AIError, TranscriptionClientService>;
|
|
77
77
|
readonly stream: (request: TranscriptionRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Stream").Stream<{
|
|
78
78
|
readonly type: "text-delta";
|
|
79
79
|
readonly delta: string;
|
|
@@ -129,11 +129,11 @@ export declare const TranscriptionClient: {
|
|
|
129
129
|
};
|
|
130
130
|
} | undefined;
|
|
131
131
|
readonly type: "finish";
|
|
132
|
-
} | import("./generation.js").Observation, import("./
|
|
133
|
-
readonly start: (request: TranscriptionRequest) => import("effect/Effect").Effect<import("./generation.js").Generation<TranscriptionResponse>, import("./
|
|
132
|
+
} | import("./generation.js").Observation, import("./public.js").AIError, TranscriptionClientService>;
|
|
133
|
+
readonly start: (request: TranscriptionRequest) => import("effect/Effect").Effect<import("./generation.js").Generation<TranscriptionResponse>, import("./public.js").AIError, TranscriptionClientService>;
|
|
134
134
|
readonly resume: (model: import("./transcription.js").TranscriptionModel<{
|
|
135
135
|
readonly [x: string]: unknown;
|
|
136
|
-
}>, token: unknown) => import("effect/Effect").Effect<import("./generation.js").Generation<TranscriptionResponse>, import("./
|
|
136
|
+
}>, token: unknown) => import("effect/Effect").Effect<import("./generation.js").Generation<TranscriptionResponse>, import("./public.js").AIError, TranscriptionClientService>;
|
|
137
137
|
readonly Service: typeof TranscriptionClientService;
|
|
138
138
|
};
|
|
139
139
|
export {};
|
package/dist/video-client.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare const VideoClient: {
|
|
|
50
50
|
} | undefined;
|
|
51
51
|
})[];
|
|
52
52
|
readonly layer: import("effect/Layer").Layer<VideoClientService, never, import("./route.js").RequestExecutorService>;
|
|
53
|
-
readonly generate: (request: VideoRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Effect").Effect<VideoResponse, import("./
|
|
53
|
+
readonly generate: (request: VideoRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Effect").Effect<VideoResponse, import("./public.js").AIError, VideoClientService>;
|
|
54
54
|
readonly stream: (request: VideoRequest, options?: import("./generation.js").AwaitOptions) => import("effect/Stream").Stream<{
|
|
55
55
|
readonly type: "video";
|
|
56
56
|
readonly index: number;
|
|
@@ -83,11 +83,11 @@ export declare const VideoClient: {
|
|
|
83
83
|
readonly [x: string]: unknown;
|
|
84
84
|
};
|
|
85
85
|
} | undefined;
|
|
86
|
-
} | import("./generation.js").Observation, import("./
|
|
87
|
-
readonly start: (request: VideoRequest) => import("effect/Effect").Effect<import("./generation.js").Generation<VideoResponse>, import("./
|
|
86
|
+
} | import("./generation.js").Observation, import("./public.js").AIError, VideoClientService>;
|
|
87
|
+
readonly start: (request: VideoRequest) => import("effect/Effect").Effect<import("./generation.js").Generation<VideoResponse>, import("./public.js").AIError, VideoClientService>;
|
|
88
88
|
readonly resume: (model: import("./video.js").VideoModel<{
|
|
89
89
|
readonly [x: string]: unknown;
|
|
90
|
-
}>, token: unknown) => import("effect/Effect").Effect<import("./generation.js").Generation<VideoResponse>, import("./
|
|
90
|
+
}>, token: unknown) => import("effect/Effect").Effect<import("./generation.js").Generation<VideoResponse>, import("./public.js").AIError, VideoClientService>;
|
|
91
91
|
readonly Service: typeof VideoClientService;
|
|
92
92
|
};
|
|
93
93
|
export {};
|
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-491",
|
|
4
4
|
"name": "@opencode/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
"devDependencies": {
|
|
521
521
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
522
522
|
"@effect/platform-node": "4.1.0",
|
|
523
|
-
"@opencode/http-recorder": "0.0.0-dev-
|
|
523
|
+
"@opencode/http-recorder": "0.0.0-dev-491",
|
|
524
524
|
"@tsconfig/bun": "1.0.9",
|
|
525
525
|
"@types/bun": "1.4.3",
|
|
526
526
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
"@aws-sdk/credential-providers": "3.1057.0",
|
|
531
531
|
"@smithy/eventstream-codec": "4.2.14",
|
|
532
532
|
"@smithy/util-utf8": "4.2.2",
|
|
533
|
-
"@opencode/schema": "0.0.0-dev-
|
|
533
|
+
"@opencode/schema": "0.0.0-dev-491",
|
|
534
534
|
"aws4fetch": "1.0.20",
|
|
535
535
|
"effect": "4.1.0",
|
|
536
536
|
"google-auth-library": "10.5.0"
|