@opencode-ai/client 0.0.0-dev-18706 → 0.0.0-dev-18709
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/api/api.d.ts +17 -0
- package/dist/effect/api.d.ts +1 -0
- package/dist/effect/client.d.ts +2526 -0
- package/dist/effect/client.js +29 -0
- package/dist/effect/generated/client.d.ts +18 -1
- package/dist/effect/generated/client.js +7 -0
- package/dist/effect/index.d.ts +4 -2
- package/dist/effect/index.js +1 -0
- package/dist/effect/rpc.d.ts +20 -0
- package/dist/effect/rpc.js +49 -0
- package/dist/promise/api.d.ts +3 -2
- package/dist/promise/client.d.ts +255 -0
- package/dist/promise/client.js +13 -0
- package/dist/promise/generated/client.d.ts +4 -1
- package/dist/promise/generated/client.js +11 -0
- package/dist/promise/generated/types.d.ts +63 -9
- package/dist/promise/generated/types.js +2 -0
- package/dist/promise/index.d.ts +4 -2
- package/dist/promise/index.js +1 -0
- package/dist/promise/rpc.d.ts +32 -0
- package/dist/promise/rpc.js +86 -0
- package/dist/rpc-runtime.d.ts +21 -0
- package/dist/rpc-runtime.js +32 -0
- package/dist/shared-events.d.ts +8 -0
- package/dist/shared-events.js +133 -0
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.d.ts +7 -6
- package/package.json +6 -5
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -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>;
|
package/dist/effect/api.d.ts
CHANGED