@opencode-ai/client 0.0.0-dev-18706 → 0.0.0-dev-18708

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.
@@ -1961,6 +1961,22 @@ export type SkillListOperation<E = never> = (input?: SkillListInput) => Effect.E
1961
1961
  export interface SkillApi<E = never> {
1962
1962
  readonly list: SkillListOperation<E>;
1963
1963
  }
1964
+ export type RpcCallInput = {
1965
+ readonly rpcID: string;
1966
+ readonly method: string;
1967
+ readonly location?: {
1968
+ readonly directory?: string | undefined;
1969
+ readonly workspace?: string | undefined;
1970
+ } | undefined;
1971
+ readonly input?: unknown | undefined;
1972
+ };
1973
+ export type RpcCallOutput = {
1974
+ readonly output?: unknown;
1975
+ };
1976
+ export type RpcCallOperation<E = never> = (input: RpcCallInput) => Effect.Effect<RpcCallOutput, E>;
1977
+ export interface RpcApi<E = never> {
1978
+ readonly call: RpcCallOperation<E>;
1979
+ }
1964
1980
  export type EventSubscribeOutput = OpenCodeEvent;
1965
1981
  export type EventSubscribeOperation<E = never> = () => Stream.Stream<EventSubscribeOutput, E>;
1966
1982
  export interface EventApi<E = never> {
@@ -2568,6 +2584,7 @@ export interface AppApi<E = never> {
2568
2584
  readonly file: FileApi<E>;
2569
2585
  readonly command: CommandApi<E>;
2570
2586
  readonly skill: SkillApi<E>;
2587
+ readonly rpc: RpcApi<E>;
2571
2588
  readonly event: EventApi<E>;
2572
2589
  readonly pty: PtyApi<E>;
2573
2590
  readonly experimental: ExperimentalApi<E>;
@@ -1,4 +1,5 @@
1
1
  import type { ModelApi, ProviderApi, WebsearchApi } from "./api/api.js";
2
+ export type { RpcApi, RpcClient } from "./rpc.js";
2
3
  export type * from "./api/api.js";
3
4
  export type WebSearchApi<E = never> = WebsearchApi<E>;
4
5
  export interface CatalogApi<E = never> {