@opencode/ai 0.0.0-dev-20115 → 0.0.0-dev-20117

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.
@@ -9,17 +9,19 @@ export interface Interface {
9
9
  readonly generate: <Options extends VideoOptions>(request: VideoRequestFor<Options>, options?: AwaitOptions) => Effect.Effect<VideoResponse, AIError>;
10
10
  readonly stream: <Options extends VideoOptions>(request: VideoRequestFor<Options>, options?: AwaitOptions) => Stream.Stream<VideoEvent, AIError>;
11
11
  }
12
- declare const Service_base: Context.ServiceClass<Service, "@opencode/VideoClient", Interface>;
13
- export declare class Service extends Service_base {
12
+ declare const VideoClientService_base: Context.ServiceClass<VideoClientService, "@opencode/VideoClient", Interface>;
13
+ export declare class VideoClientService extends VideoClientService_base {
14
14
  }
15
+ export declare const Service: typeof VideoClientService;
16
+ export type Service = VideoClientService;
15
17
  export declare const start: <Options extends VideoOptions>(request: VideoRequestFor<Options>) => Effect.Effect<Generation<VideoResponse>, AIError, Service>;
16
18
  export declare const resume: <Options extends VideoOptions>(model: VideoModel<Options>, token: unknown) => Effect.Effect<Generation<VideoResponse>, AIError, Service>;
17
19
  export declare const generate: <Options extends VideoOptions>(request: VideoRequestFor<Options>, options?: AwaitOptions) => Effect.Effect<VideoResponse, AIError, Service>;
18
20
  export declare const stream: <Options extends VideoOptions>(request: VideoRequestFor<Options>, options?: AwaitOptions) => Stream.Stream<VideoEvent, AIError, Service>;
19
21
  export declare const layer: Layer.Layer<Service, never, RequestExecutor.Service>;
20
22
  export declare const VideoClient: {
21
- readonly Service: typeof Service;
22
- readonly layer: Layer.Layer<Service, never, RequestExecutor.Service>;
23
+ readonly Service: typeof VideoClientService;
24
+ readonly layer: Layer.Layer<VideoClientService, never, import("./route/executor-service.js").RequestExecutorService>;
23
25
  readonly start: <Options extends VideoOptions>(request: VideoRequestFor<Options>) => Effect.Effect<Generation<VideoResponse>, AIError, Service>;
24
26
  readonly resume: <Options extends VideoOptions>(model: VideoModel<Options>, token: unknown) => Effect.Effect<Generation<VideoResponse>, AIError, Service>;
25
27
  readonly generate: <Options extends VideoOptions>(request: VideoRequestFor<Options>, options?: AwaitOptions) => Effect.Effect<VideoResponse, AIError, Service>;
@@ -2,8 +2,9 @@ import { Context, Effect, Layer, Stream } from "effect";
2
2
  import { resultEvents } from "./generation.js";
3
3
  import { RequestExecutor } from "./route/executor.js";
4
4
  import { responseEvents, } from "./video.js";
5
- export class Service extends Context.Service()("@opencode/VideoClient") {
5
+ export class VideoClientService extends Context.Service()("@opencode/VideoClient") {
6
6
  }
7
+ export const Service = VideoClientService;
7
8
  export const start = (request) => Effect.gen(function* () {
8
9
  const client = yield* Service;
9
10
  return yield* client.start(request);
package/dist/video.d.ts CHANGED
@@ -1010,7 +1010,7 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1010
1010
  } | undefined;
1011
1011
  }[] | undefined;
1012
1012
  }) => any) | undefined;
1013
- } & { [K in Exclude<keyof Cases, "finish" | "video" | "generation-queued" | "generation-progress">]: never; }, OrElse extends (value: Exclude<{
1013
+ } & { [K in Exclude<keyof Cases, "finish" | "generation-queued" | "generation-progress" | "video">]: never; }, OrElse extends (value: Exclude<{
1014
1014
  readonly id: string;
1015
1015
  readonly type: "generation-queued";
1016
1016
  readonly position?: number | undefined;
@@ -1171,7 +1171,7 @@ export declare const VideoEvent: Schema.Union<readonly [Schema.Struct<{
1171
1171
  } | undefined;
1172
1172
  }[] | undefined;
1173
1173
  }) => any) | undefined;
1174
- } & { [K in Exclude<keyof Cases, "finish" | "video" | "generation-queued" | "generation-progress">]: never; }, OrElse extends (value: Exclude<{
1174
+ } & { [K in Exclude<keyof Cases, "finish" | "generation-queued" | "generation-progress" | "video">]: never; }, OrElse extends (value: Exclude<{
1175
1175
  readonly id: string;
1176
1176
  readonly type: "generation-queued";
1177
1177
  readonly position?: number | undefined;
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-20115",
3
+ "version": "0.0.0-dev-20117",
4
4
  "name": "@opencode/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "@clack/prompts": "1.0.0-alpha.1",
36
36
  "@effect/platform-node": "4.0.0-rc.112",
37
- "@opencode/http-recorder": "0.0.0-dev-20115",
37
+ "@opencode/http-recorder": "0.0.0-dev-20117",
38
38
  "@tsconfig/bun": "1.0.9",
39
39
  "@types/bun": "1.4.0",
40
40
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -44,7 +44,7 @@
44
44
  "@aws-sdk/credential-providers": "3.1057.0",
45
45
  "@smithy/eventstream-codec": "4.2.14",
46
46
  "@smithy/util-utf8": "4.2.2",
47
- "@opencode/schema": "0.0.0-dev-20115",
47
+ "@opencode/schema": "0.0.0-dev-20117",
48
48
  "aws4fetch": "1.0.20",
49
49
  "effect": "4.0.0-rc.112",
50
50
  "google-auth-library": "10.5.0"