@opencode/client 0.0.0-dev-248 → 0.0.0-dev-261
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/chunks/service-timing-4kwr69ty.js +30 -0
- package/dist/chunks/{service-timing-y2etg5bs.js → service-timing-7f0py9js.js} +2 -2
- package/dist/chunks/{service-timing-gecjxyvt.js → service-timing-hw6kqa0w.js} +3 -3
- package/dist/chunks/{service-timing-nwcpakzx.js → service-timing-js54wxgp.js} +2 -2
- package/dist/chunks/{service-timing-yn2a71yh.js → service-timing-m3tyme7q.js} +20 -18
- package/dist/chunks/{service-timing-15p82y03.js → service-timing-myz4ngx9.js} +3 -3
- package/dist/chunks/{service-timing-4z60zgnr.js → service-timing-rmn15vgp.js} +10 -8
- package/dist/chunks/{service-timing-269qpyw7.js → service-timing-t8ydsjnq.js} +18 -18
- package/dist/effect/api/api.d.ts +3 -1
- package/dist/effect/client.d.ts +64 -4
- package/dist/effect/client.js +10 -10
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +64 -4
- package/dist/effect/generated/client.js +4 -4
- package/dist/effect/generated/index.js +6 -6
- package/dist/effect/index.js +9 -9
- package/dist/effect/rpc.js +3 -3
- package/dist/effect/service.js +1 -1
- package/dist/promise/client.js +8 -8
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +7 -7
- package/dist/promise/generated/types.d.ts +40 -5
- package/dist/promise/index.js +8 -8
- package/dist/promise/service.js +1 -1
- package/dist/pty-handoff.js +1 -1
- package/dist/shared-events.js +3 -3
- package/dist/solid/data.js +4 -4
- package/dist/solid/index.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/service-timing-swq2xj5v.js +0 -30
- /package/dist/chunks/{service-timing-xt0qgmg0.js → service-timing-mmf5jp1m.js} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
make5
|
|
3
|
+
} from "./service-timing-hw6kqa0w.js";
|
|
4
|
+
import {
|
|
5
|
+
make3
|
|
6
|
+
} from "./service-timing-m3tyme7q.js";
|
|
7
|
+
import {
|
|
8
|
+
makeRpc2
|
|
9
|
+
} from "./service-timing-kdshn947.js";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./service-timing-9rqn6x4v.js";
|
|
13
|
+
|
|
14
|
+
// src/promise/client.ts
|
|
15
|
+
var exports_client = {};
|
|
16
|
+
__export(exports_client, {
|
|
17
|
+
OpenCode: () => exports_client,
|
|
18
|
+
make: () => make2
|
|
19
|
+
});
|
|
20
|
+
function make2(options) {
|
|
21
|
+
const raw = make3(options);
|
|
22
|
+
const events = make5((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
|
|
23
|
+
return {
|
|
24
|
+
...raw,
|
|
25
|
+
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
26
|
+
event: events
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { make2, exports_client };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/effect/generated/client-error.ts
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
|
|
4
|
-
class
|
|
4
|
+
class ClientError3 extends Schema.TaggedError()("ClientError", {
|
|
5
5
|
cause: Schema.Defect()
|
|
6
6
|
}) {
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { ClientError3 };
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
var exports_shared_events = {};
|
|
7
7
|
__export(exports_shared_events, {
|
|
8
8
|
SharedEvents: () => exports_shared_events,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make5
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make5(connect) {
|
|
12
12
|
let current;
|
|
13
13
|
const capacity = 4096;
|
|
14
14
|
function stop(connection) {
|
|
@@ -146,4 +146,4 @@ function make7(connect) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export {
|
|
149
|
+
export { make5, exports_shared_events };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/promise/generated/client-error.ts
|
|
2
|
-
class
|
|
2
|
+
class ClientError2 extends Error {
|
|
3
3
|
reason;
|
|
4
4
|
name = "ClientError";
|
|
5
5
|
constructor(reason, options) {
|
|
@@ -9,4 +9,4 @@ class ClientError3 extends Error {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { ClientError2 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./service-timing-
|
|
2
|
+
ClientError2
|
|
3
|
+
} from "./service-timing-js54wxgp.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./service-timing-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
make: () =>
|
|
9
|
+
var exports_client2 = {};
|
|
10
|
+
__export(exports_client2, {
|
|
11
|
+
make: () => make3
|
|
12
12
|
});
|
|
13
13
|
var maxSseEventBytes = 16 * 1024 * 1024;
|
|
14
|
-
function
|
|
14
|
+
function make3(options) {
|
|
15
15
|
const fetch = options.fetch ?? globalThis.fetch;
|
|
16
16
|
const prepare = (descriptor, requestOptions) => {
|
|
17
17
|
const baseUrl = new URL(options.baseUrl);
|
|
@@ -44,7 +44,7 @@ function make6(options) {
|
|
|
44
44
|
const prepared = prepare(descriptor, requestOptions);
|
|
45
45
|
return await fetch(prepared.url, prepared.init);
|
|
46
46
|
} catch (cause) {
|
|
47
|
-
throw new
|
|
47
|
+
throw new ClientError2("Transport", { cause });
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
const responseError = async (response, descriptor) => {
|
|
@@ -53,7 +53,7 @@ function make6(options) {
|
|
|
53
53
|
try {
|
|
54
54
|
await response.body?.cancel();
|
|
55
55
|
} catch {}
|
|
56
|
-
throw new
|
|
56
|
+
throw new ClientError2("UnexpectedStatus", { cause: { status: response.status }, detail: String(response.status) });
|
|
57
57
|
};
|
|
58
58
|
const request = async (descriptor, requestOptions) => {
|
|
59
59
|
const response = await execute(descriptor, requestOptions);
|
|
@@ -78,10 +78,10 @@ function make6(options) {
|
|
|
78
78
|
try {
|
|
79
79
|
await response.body?.cancel();
|
|
80
80
|
} catch {}
|
|
81
|
-
throw new
|
|
81
|
+
throw new ClientError2("UnsupportedContentType", { detail: response.headers.get("content-type") });
|
|
82
82
|
}
|
|
83
83
|
if (response.body === null)
|
|
84
|
-
throw new
|
|
84
|
+
throw new ClientError2("MalformedResponse");
|
|
85
85
|
const reader = response.body.getReader();
|
|
86
86
|
const decoder = new TextDecoder;
|
|
87
87
|
let buffer = "";
|
|
@@ -91,13 +91,13 @@ function make6(options) {
|
|
|
91
91
|
try {
|
|
92
92
|
next = await reader.read();
|
|
93
93
|
} catch (cause) {
|
|
94
|
-
throw new
|
|
94
|
+
throw new ClientError2("Transport", { cause });
|
|
95
95
|
}
|
|
96
96
|
if (!next.done)
|
|
97
97
|
requestOptions?.onActivity?.();
|
|
98
98
|
buffer += decoder.decode(next.value, { stream: !next.done });
|
|
99
99
|
if (buffer.length > maxSseEventBytes)
|
|
100
|
-
throw new
|
|
100
|
+
throw new ClientError2("SseEventTooLarge");
|
|
101
101
|
const trailingCarriageReturn = !next.done && buffer.endsWith("\r");
|
|
102
102
|
if (trailingCarriageReturn)
|
|
103
103
|
buffer = buffer.slice(0, -1);
|
|
@@ -124,7 +124,7 @@ function make6(options) {
|
|
|
124
124
|
try {
|
|
125
125
|
yield JSON.parse(data);
|
|
126
126
|
} catch (cause) {
|
|
127
|
-
throw new
|
|
127
|
+
throw new ClientError2("MalformedResponse", { cause });
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
boundary = buffer.indexOf(`
|
|
@@ -864,6 +864,8 @@ function make6(options) {
|
|
|
864
864
|
sessionID: input["sessionID"],
|
|
865
865
|
name: input["name"],
|
|
866
866
|
when: input["when"],
|
|
867
|
+
if: input["if"],
|
|
868
|
+
until: input["until"],
|
|
867
869
|
ends: input["ends"],
|
|
868
870
|
prompt: input["prompt"]
|
|
869
871
|
},
|
|
@@ -1693,20 +1695,20 @@ async function json(response) {
|
|
|
1693
1695
|
try {
|
|
1694
1696
|
await response.body?.cancel();
|
|
1695
1697
|
} catch {}
|
|
1696
|
-
throw new
|
|
1698
|
+
throw new ClientError2("UnsupportedContentType", { detail: response.headers.get("content-type") });
|
|
1697
1699
|
}
|
|
1698
1700
|
let text;
|
|
1699
1701
|
try {
|
|
1700
1702
|
text = await response.text();
|
|
1701
1703
|
} catch (cause) {
|
|
1702
|
-
throw new
|
|
1704
|
+
throw new ClientError2("Transport", { cause });
|
|
1703
1705
|
}
|
|
1704
1706
|
if (text === "")
|
|
1705
|
-
throw new
|
|
1707
|
+
throw new ClientError2("MalformedResponse");
|
|
1706
1708
|
try {
|
|
1707
1709
|
return JSON.parse(text);
|
|
1708
1710
|
} catch (cause) {
|
|
1709
|
-
throw new
|
|
1711
|
+
throw new ClientError2("MalformedResponse", { cause });
|
|
1710
1712
|
}
|
|
1711
1713
|
}
|
|
1712
1714
|
function declared(body) {
|
|
@@ -1719,4 +1721,4 @@ function isContentType(response, expected) {
|
|
|
1719
1721
|
return response.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase() === expected;
|
|
1720
1722
|
}
|
|
1721
1723
|
|
|
1722
|
-
export {
|
|
1724
|
+
export { make3, exports_client2 };
|
|
@@ -13,10 +13,10 @@ var exports_rpc = {};
|
|
|
13
13
|
__export(exports_rpc, {
|
|
14
14
|
RpcClientRuntime: () => exports_rpc,
|
|
15
15
|
aborted: () => aborted2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make6
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make6(call, subscribe) {
|
|
20
20
|
return (definition) => {
|
|
21
21
|
const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
|
|
22
22
|
name,
|
|
@@ -59,4 +59,4 @@ function aborted2(signal) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { make6, aborted2, exports_rpc };
|
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
ClientApi2
|
|
3
3
|
} from "./service-timing-60xe5cbf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./service-timing-
|
|
5
|
+
ClientError3
|
|
6
|
+
} from "./service-timing-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./service-timing-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
make: () =>
|
|
12
|
+
var exports_client4 = {};
|
|
13
|
+
__export(exports_client4, {
|
|
14
|
+
make: () => make7
|
|
15
15
|
});
|
|
16
16
|
import { Effect, Stream, Schema } from "effect";
|
|
17
17
|
import { Sse } from "effect/encoding";
|
|
18
18
|
import { HttpClientError } from "effect/http";
|
|
19
19
|
import { HttpApiClient } from "effect/http-api";
|
|
20
|
-
var mapClientError = (error) => HttpClientError.isHttpClientError(error) || Schema.isSchemaError(error) || Sse.Retry.is(error) ? new
|
|
20
|
+
var mapClientError = (error) => HttpClientError.isHttpClientError(error) || Schema.isSchemaError(error) || Sse.Retry.is(error) ? new ClientError3({ cause: error }) : error;
|
|
21
21
|
var preserveEffect = () => (effect) => effect;
|
|
22
22
|
var preserveStream = () => (stream) => stream;
|
|
23
23
|
var EndpointServerInfo = (raw) => () => preserveEffect()(raw["server.info"]({}).pipe(Effect.mapError(mapClientError)));
|
|
@@ -553,6 +553,8 @@ var EndpointExperimentalScheduleCreate = (raw) => (input) => preserveEffect()(ra
|
|
|
553
553
|
sessionID: input["sessionID"],
|
|
554
554
|
name: input["name"],
|
|
555
555
|
when: input["when"],
|
|
556
|
+
if: input["if"],
|
|
557
|
+
until: input["until"],
|
|
556
558
|
ends: input["ends"],
|
|
557
559
|
prompt: input["prompt"]
|
|
558
560
|
}
|
|
@@ -786,6 +788,6 @@ var adaptClient = (raw) => {
|
|
|
786
788
|
}
|
|
787
789
|
};
|
|
788
790
|
};
|
|
789
|
-
var
|
|
791
|
+
var make7 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
790
792
|
|
|
791
|
-
export {
|
|
793
|
+
export { make7, exports_client4 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./service-timing-
|
|
2
|
+
make5
|
|
3
|
+
} from "./service-timing-hw6kqa0w.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./service-timing-
|
|
5
|
+
ClientError3
|
|
6
|
+
} from "./service-timing-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./service-timing-
|
|
8
|
+
make7
|
|
9
|
+
} from "./service-timing-rmn15vgp.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make6,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./service-timing-
|
|
13
|
+
} from "./service-timing-myz4ngx9.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./service-timing-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
OpenCode: () =>
|
|
22
|
-
make: () =>
|
|
19
|
+
var exports_client3 = {};
|
|
20
|
+
__export(exports_client3, {
|
|
21
|
+
OpenCode: () => exports_client3,
|
|
22
|
+
make: () => make4
|
|
23
23
|
});
|
|
24
24
|
import { Cause, Context, Effect, Stream } from "effect";
|
|
25
25
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
@@ -28,9 +28,9 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
var
|
|
31
|
+
var make4 = Effect.fn("OpenCode.make")(function* (options) {
|
|
32
32
|
const httpClient = yield* HttpClient.HttpClient;
|
|
33
|
-
const raw = yield*
|
|
33
|
+
const raw = yield* make7(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
|
|
34
34
|
const context = yield* Effect.context();
|
|
35
35
|
const native = raw.event.subscribe();
|
|
36
36
|
|
|
@@ -40,13 +40,13 @@ var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
40
40
|
this.cause = cause;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const shared =
|
|
44
|
-
const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new
|
|
43
|
+
const shared = make5((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
|
|
44
|
+
const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new ClientError3({ cause: error })))));
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
47
47
|
event: { ...raw.event, subscribe },
|
|
48
|
-
rpc: Object.assign(
|
|
48
|
+
rpc: Object.assign(make6((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
export {
|
|
52
|
+
export { make4, exports_client3 };
|
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -2693,7 +2693,9 @@ export type ExperimentalPersistentPtyConnectTokenOperation<E = never> = (input:
|
|
|
2693
2693
|
export type ExperimentalScheduleCreateInput = {
|
|
2694
2694
|
readonly sessionID: Session.ID;
|
|
2695
2695
|
readonly name?: string | undefined;
|
|
2696
|
-
readonly when
|
|
2696
|
+
readonly when?: Schedule.WhenInput | undefined;
|
|
2697
|
+
readonly if?: Schedule.ConditionInput | undefined;
|
|
2698
|
+
readonly until?: Schedule.ConditionInput | undefined;
|
|
2697
2699
|
readonly ends?: Schedule.Ends | undefined;
|
|
2698
2700
|
readonly prompt: string;
|
|
2699
2701
|
};
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -64,6 +64,20 @@ export declare const make: (options?: {
|
|
|
64
64
|
readonly cron: string;
|
|
65
65
|
};
|
|
66
66
|
readonly tz: string;
|
|
67
|
+
readonly if?: {
|
|
68
|
+
readonly type: "shell";
|
|
69
|
+
readonly run: string;
|
|
70
|
+
readonly is?: string | undefined;
|
|
71
|
+
readonly matches?: string | undefined;
|
|
72
|
+
readonly changes?: boolean | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
readonly until?: {
|
|
75
|
+
readonly type: "shell";
|
|
76
|
+
readonly run: string;
|
|
77
|
+
readonly is?: string | undefined;
|
|
78
|
+
readonly matches?: string | undefined;
|
|
79
|
+
readonly changes?: boolean | undefined;
|
|
80
|
+
} | undefined;
|
|
67
81
|
readonly action: {
|
|
68
82
|
readonly type: "prompt";
|
|
69
83
|
readonly prompt: string;
|
|
@@ -74,7 +88,8 @@ export declare const make: (options?: {
|
|
|
74
88
|
readonly remainingRuns?: number | undefined;
|
|
75
89
|
readonly runCount: number;
|
|
76
90
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
77
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
91
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
92
|
+
readonly lastOutput?: string | undefined;
|
|
78
93
|
readonly time: {
|
|
79
94
|
readonly created: import("effect/DateTime").Utc;
|
|
80
95
|
readonly updated: import("effect/DateTime").Utc;
|
|
@@ -103,6 +118,20 @@ export declare const make: (options?: {
|
|
|
103
118
|
readonly cron: string;
|
|
104
119
|
};
|
|
105
120
|
readonly tz: string;
|
|
121
|
+
readonly if?: {
|
|
122
|
+
readonly type: "shell";
|
|
123
|
+
readonly run: string;
|
|
124
|
+
readonly is?: string | undefined;
|
|
125
|
+
readonly matches?: string | undefined;
|
|
126
|
+
readonly changes?: boolean | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
readonly until?: {
|
|
129
|
+
readonly type: "shell";
|
|
130
|
+
readonly run: string;
|
|
131
|
+
readonly is?: string | undefined;
|
|
132
|
+
readonly matches?: string | undefined;
|
|
133
|
+
readonly changes?: boolean | undefined;
|
|
134
|
+
} | undefined;
|
|
106
135
|
readonly action: {
|
|
107
136
|
readonly type: "prompt";
|
|
108
137
|
readonly prompt: string;
|
|
@@ -113,7 +142,8 @@ export declare const make: (options?: {
|
|
|
113
142
|
readonly remainingRuns?: number | undefined;
|
|
114
143
|
readonly runCount: number;
|
|
115
144
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
116
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
145
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
146
|
+
readonly lastOutput?: string | undefined;
|
|
117
147
|
readonly time: {
|
|
118
148
|
readonly created: import("effect/DateTime").Utc;
|
|
119
149
|
readonly updated: import("effect/DateTime").Utc;
|
|
@@ -141,6 +171,20 @@ export declare const make: (options?: {
|
|
|
141
171
|
readonly cron: string;
|
|
142
172
|
};
|
|
143
173
|
readonly tz: string;
|
|
174
|
+
readonly if?: {
|
|
175
|
+
readonly type: "shell";
|
|
176
|
+
readonly run: string;
|
|
177
|
+
readonly is?: string | undefined;
|
|
178
|
+
readonly matches?: string | undefined;
|
|
179
|
+
readonly changes?: boolean | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
readonly until?: {
|
|
182
|
+
readonly type: "shell";
|
|
183
|
+
readonly run: string;
|
|
184
|
+
readonly is?: string | undefined;
|
|
185
|
+
readonly matches?: string | undefined;
|
|
186
|
+
readonly changes?: boolean | undefined;
|
|
187
|
+
} | undefined;
|
|
144
188
|
readonly action: {
|
|
145
189
|
readonly type: "prompt";
|
|
146
190
|
readonly prompt: string;
|
|
@@ -151,7 +195,8 @@ export declare const make: (options?: {
|
|
|
151
195
|
readonly remainingRuns?: number | undefined;
|
|
152
196
|
readonly runCount: number;
|
|
153
197
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
154
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
198
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
199
|
+
readonly lastOutput?: string | undefined;
|
|
155
200
|
readonly time: {
|
|
156
201
|
readonly created: import("effect/DateTime").Utc;
|
|
157
202
|
readonly updated: import("effect/DateTime").Utc;
|
|
@@ -179,6 +224,20 @@ export declare const make: (options?: {
|
|
|
179
224
|
readonly cron: string;
|
|
180
225
|
};
|
|
181
226
|
readonly tz: string;
|
|
227
|
+
readonly if?: {
|
|
228
|
+
readonly type: "shell";
|
|
229
|
+
readonly run: string;
|
|
230
|
+
readonly is?: string | undefined;
|
|
231
|
+
readonly matches?: string | undefined;
|
|
232
|
+
readonly changes?: boolean | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
readonly until?: {
|
|
235
|
+
readonly type: "shell";
|
|
236
|
+
readonly run: string;
|
|
237
|
+
readonly is?: string | undefined;
|
|
238
|
+
readonly matches?: string | undefined;
|
|
239
|
+
readonly changes?: boolean | undefined;
|
|
240
|
+
} | undefined;
|
|
182
241
|
readonly action: {
|
|
183
242
|
readonly type: "prompt";
|
|
184
243
|
readonly prompt: string;
|
|
@@ -189,7 +248,8 @@ export declare const make: (options?: {
|
|
|
189
248
|
readonly remainingRuns?: number | undefined;
|
|
190
249
|
readonly runCount: number;
|
|
191
250
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
192
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
251
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
252
|
+
readonly lastOutput?: string | undefined;
|
|
193
253
|
readonly time: {
|
|
194
254
|
readonly created: import("effect/DateTime").Utc;
|
|
195
255
|
readonly updated: import("effect/DateTime").Utc;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/service-timing-
|
|
2
|
+
make4,
|
|
3
|
+
exports_client3
|
|
4
|
+
} from "../chunks/service-timing-t8ydsjnq.js";
|
|
5
5
|
import"../chunks/service-timing-6mptkzbc.js";
|
|
6
|
-
import"../chunks/service-timing-
|
|
7
|
-
import"../chunks/service-timing-
|
|
8
|
-
import"../chunks/service-timing-
|
|
9
|
-
import"../chunks/service-timing-
|
|
10
|
-
import"../chunks/service-timing-ryy6kscr.js";
|
|
6
|
+
import"../chunks/service-timing-hw6kqa0w.js";
|
|
7
|
+
import"../chunks/service-timing-myz4ngx9.js";
|
|
8
|
+
import"../chunks/service-timing-rmn15vgp.js";
|
|
9
|
+
import"../chunks/service-timing-7f0py9js.js";
|
|
11
10
|
import"../chunks/service-timing-60xe5cbf.js";
|
|
11
|
+
import"../chunks/service-timing-ryy6kscr.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
exports_client3 as OpenCode,
|
|
14
|
+
make4 as make
|
|
15
15
|
};
|
|
@@ -61,6 +61,20 @@ export declare const make: (options?: {
|
|
|
61
61
|
readonly cron: string;
|
|
62
62
|
};
|
|
63
63
|
readonly tz: string;
|
|
64
|
+
readonly if?: {
|
|
65
|
+
readonly type: "shell";
|
|
66
|
+
readonly run: string;
|
|
67
|
+
readonly is?: string | undefined;
|
|
68
|
+
readonly matches?: string | undefined;
|
|
69
|
+
readonly changes?: boolean | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
readonly until?: {
|
|
72
|
+
readonly type: "shell";
|
|
73
|
+
readonly run: string;
|
|
74
|
+
readonly is?: string | undefined;
|
|
75
|
+
readonly matches?: string | undefined;
|
|
76
|
+
readonly changes?: boolean | undefined;
|
|
77
|
+
} | undefined;
|
|
64
78
|
readonly action: {
|
|
65
79
|
readonly type: "prompt";
|
|
66
80
|
readonly prompt: string;
|
|
@@ -71,7 +85,8 @@ export declare const make: (options?: {
|
|
|
71
85
|
readonly remainingRuns?: number | undefined;
|
|
72
86
|
readonly runCount: number;
|
|
73
87
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
74
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
88
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
89
|
+
readonly lastOutput?: string | undefined;
|
|
75
90
|
readonly time: {
|
|
76
91
|
readonly created: import("effect/DateTime").Utc;
|
|
77
92
|
readonly updated: import("effect/DateTime").Utc;
|
|
@@ -100,6 +115,20 @@ export declare const make: (options?: {
|
|
|
100
115
|
readonly cron: string;
|
|
101
116
|
};
|
|
102
117
|
readonly tz: string;
|
|
118
|
+
readonly if?: {
|
|
119
|
+
readonly type: "shell";
|
|
120
|
+
readonly run: string;
|
|
121
|
+
readonly is?: string | undefined;
|
|
122
|
+
readonly matches?: string | undefined;
|
|
123
|
+
readonly changes?: boolean | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
readonly until?: {
|
|
126
|
+
readonly type: "shell";
|
|
127
|
+
readonly run: string;
|
|
128
|
+
readonly is?: string | undefined;
|
|
129
|
+
readonly matches?: string | undefined;
|
|
130
|
+
readonly changes?: boolean | undefined;
|
|
131
|
+
} | undefined;
|
|
103
132
|
readonly action: {
|
|
104
133
|
readonly type: "prompt";
|
|
105
134
|
readonly prompt: string;
|
|
@@ -110,7 +139,8 @@ export declare const make: (options?: {
|
|
|
110
139
|
readonly remainingRuns?: number | undefined;
|
|
111
140
|
readonly runCount: number;
|
|
112
141
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
113
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
142
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
143
|
+
readonly lastOutput?: string | undefined;
|
|
114
144
|
readonly time: {
|
|
115
145
|
readonly created: import("effect/DateTime").Utc;
|
|
116
146
|
readonly updated: import("effect/DateTime").Utc;
|
|
@@ -138,6 +168,20 @@ export declare const make: (options?: {
|
|
|
138
168
|
readonly cron: string;
|
|
139
169
|
};
|
|
140
170
|
readonly tz: string;
|
|
171
|
+
readonly if?: {
|
|
172
|
+
readonly type: "shell";
|
|
173
|
+
readonly run: string;
|
|
174
|
+
readonly is?: string | undefined;
|
|
175
|
+
readonly matches?: string | undefined;
|
|
176
|
+
readonly changes?: boolean | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
readonly until?: {
|
|
179
|
+
readonly type: "shell";
|
|
180
|
+
readonly run: string;
|
|
181
|
+
readonly is?: string | undefined;
|
|
182
|
+
readonly matches?: string | undefined;
|
|
183
|
+
readonly changes?: boolean | undefined;
|
|
184
|
+
} | undefined;
|
|
141
185
|
readonly action: {
|
|
142
186
|
readonly type: "prompt";
|
|
143
187
|
readonly prompt: string;
|
|
@@ -148,7 +192,8 @@ export declare const make: (options?: {
|
|
|
148
192
|
readonly remainingRuns?: number | undefined;
|
|
149
193
|
readonly runCount: number;
|
|
150
194
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
151
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
195
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
196
|
+
readonly lastOutput?: string | undefined;
|
|
152
197
|
readonly time: {
|
|
153
198
|
readonly created: import("effect/DateTime").Utc;
|
|
154
199
|
readonly updated: import("effect/DateTime").Utc;
|
|
@@ -176,6 +221,20 @@ export declare const make: (options?: {
|
|
|
176
221
|
readonly cron: string;
|
|
177
222
|
};
|
|
178
223
|
readonly tz: string;
|
|
224
|
+
readonly if?: {
|
|
225
|
+
readonly type: "shell";
|
|
226
|
+
readonly run: string;
|
|
227
|
+
readonly is?: string | undefined;
|
|
228
|
+
readonly matches?: string | undefined;
|
|
229
|
+
readonly changes?: boolean | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
readonly until?: {
|
|
232
|
+
readonly type: "shell";
|
|
233
|
+
readonly run: string;
|
|
234
|
+
readonly is?: string | undefined;
|
|
235
|
+
readonly matches?: string | undefined;
|
|
236
|
+
readonly changes?: boolean | undefined;
|
|
237
|
+
} | undefined;
|
|
179
238
|
readonly action: {
|
|
180
239
|
readonly type: "prompt";
|
|
181
240
|
readonly prompt: string;
|
|
@@ -186,7 +245,8 @@ export declare const make: (options?: {
|
|
|
186
245
|
readonly remainingRuns?: number | undefined;
|
|
187
246
|
readonly runCount: number;
|
|
188
247
|
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
189
|
-
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
248
|
+
readonly lastOutcome?: "checked" | "disabled" | "expired" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
249
|
+
readonly lastOutput?: string | undefined;
|
|
190
250
|
readonly time: {
|
|
191
251
|
readonly created: import("effect/DateTime").Utc;
|
|
192
252
|
readonly updated: import("effect/DateTime").Utc;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/service-timing-
|
|
4
|
-
import"../../chunks/service-timing-
|
|
2
|
+
make7
|
|
3
|
+
} from "../../chunks/service-timing-rmn15vgp.js";
|
|
4
|
+
import"../../chunks/service-timing-7f0py9js.js";
|
|
5
5
|
import"../../chunks/service-timing-60xe5cbf.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make7 as make
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import"../../chunks/service-timing-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunks/service-timing-
|
|
3
|
+
exports_client4
|
|
4
|
+
} from "../../chunks/service-timing-rmn15vgp.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../chunks/service-timing-
|
|
6
|
+
ClientError3
|
|
7
|
+
} from "../../chunks/service-timing-7f0py9js.js";
|
|
8
8
|
import"../../chunks/service-timing-60xe5cbf.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ClientError3 as ClientError,
|
|
11
|
+
exports_client4 as OpenCode
|
|
12
12
|
};
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/service-timing-
|
|
2
|
+
ClientError3
|
|
3
|
+
} from "../chunks/service-timing-7f0py9js.js";
|
|
4
4
|
import"../chunks/service-timing-60xe5cbf.js";
|
|
5
|
-
import"../chunks/service-timing-
|
|
5
|
+
import"../chunks/service-timing-rmn15vgp.js";
|
|
6
6
|
import"../chunks/service-timing-6mptkzbc.js";
|
|
7
|
-
import"../chunks/service-timing-
|
|
7
|
+
import"../chunks/service-timing-hw6kqa0w.js";
|
|
8
8
|
import"../chunks/service-timing-ryy6kscr.js";
|
|
9
|
-
import"../chunks/service-timing-
|
|
9
|
+
import"../chunks/service-timing-myz4ngx9.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../chunks/service-timing-
|
|
11
|
+
exports_client3
|
|
12
|
+
} from "../chunks/service-timing-t8ydsjnq.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
|
@@ -43,7 +43,7 @@ import { PromptInput } from "@opencode/schema/prompt-input";
|
|
|
43
43
|
export {
|
|
44
44
|
AbsolutePath,
|
|
45
45
|
Agent,
|
|
46
|
-
|
|
46
|
+
ClientError3 as ClientError,
|
|
47
47
|
Command,
|
|
48
48
|
Config,
|
|
49
49
|
Credential,
|
|
@@ -54,7 +54,7 @@ export {
|
|
|
54
54
|
Integration,
|
|
55
55
|
Location,
|
|
56
56
|
Model,
|
|
57
|
-
|
|
57
|
+
exports_client3 as OpenCode,
|
|
58
58
|
Permission,
|
|
59
59
|
PermissionSaved,
|
|
60
60
|
Project,
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make6,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/service-timing-
|
|
5
|
+
} from "../chunks/service-timing-myz4ngx9.js";
|
|
6
6
|
import"../chunks/service-timing-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make6 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
package/dist/promise/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/service-timing-
|
|
2
|
+
make2,
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/service-timing-4kwr69ty.js";
|
|
5
5
|
import"../chunks/service-timing-vyas3vgt.js";
|
|
6
6
|
import"../chunks/service-timing-kdshn947.js";
|
|
7
|
-
import"../chunks/service-timing-yn2a71yh.js";
|
|
8
7
|
import"../chunks/service-timing-cvg5j6d1.js";
|
|
9
|
-
import"../chunks/service-timing-
|
|
10
|
-
import"../chunks/service-timing-
|
|
8
|
+
import"../chunks/service-timing-m3tyme7q.js";
|
|
9
|
+
import"../chunks/service-timing-js54wxgp.js";
|
|
10
|
+
import"../chunks/service-timing-hw6kqa0w.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
exports_client as OpenCode,
|
|
13
|
+
make2 as make
|
|
14
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/service-timing-
|
|
4
|
-
import"../../chunks/service-timing-
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/service-timing-m3tyme7q.js";
|
|
4
|
+
import"../../chunks/service-timing-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import"../../chunks/service-timing-vyas3vgt.js";
|
|
2
|
-
import {
|
|
3
|
-
exports_client4
|
|
4
|
-
} from "../../chunks/service-timing-yn2a71yh.js";
|
|
5
2
|
import {
|
|
6
3
|
isInvalidRequestError2,
|
|
7
4
|
isUnauthorizedError2,
|
|
@@ -44,11 +41,14 @@ import {
|
|
|
44
41
|
isVcsInitNotSupportedError2
|
|
45
42
|
} from "../../chunks/service-timing-cvg5j6d1.js";
|
|
46
43
|
import {
|
|
47
|
-
|
|
48
|
-
} from "../../chunks/service-timing-
|
|
44
|
+
exports_client2
|
|
45
|
+
} from "../../chunks/service-timing-m3tyme7q.js";
|
|
46
|
+
import {
|
|
47
|
+
ClientError2
|
|
48
|
+
} from "../../chunks/service-timing-js54wxgp.js";
|
|
49
49
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
ClientError2 as ClientError,
|
|
51
|
+
exports_client2 as OpenCode,
|
|
52
52
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
53
53
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
54
54
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -478,12 +478,19 @@ export type ScheduleWhenCron = {
|
|
|
478
478
|
cron: string;
|
|
479
479
|
tz?: string;
|
|
480
480
|
};
|
|
481
|
+
export type ScheduleConditionShell = {
|
|
482
|
+
type: "shell";
|
|
483
|
+
run: string;
|
|
484
|
+
is?: string;
|
|
485
|
+
matches?: string;
|
|
486
|
+
changes?: boolean;
|
|
487
|
+
};
|
|
481
488
|
export type ScheduleActionPrompt = {
|
|
482
489
|
type: "prompt";
|
|
483
490
|
prompt: string;
|
|
484
491
|
};
|
|
485
492
|
export type ScheduleStatus = "active" | "paused" | "done";
|
|
486
|
-
export type ScheduleOutcome = "fired" | "late" | "skipped" | "disabled" | "failed";
|
|
493
|
+
export type ScheduleOutcome = "fired" | "late" | "checked" | "expired" | "skipped" | "disabled" | "failed";
|
|
487
494
|
export type ReferenceGitSource = {
|
|
488
495
|
type: "git";
|
|
489
496
|
repository: string;
|
|
@@ -1217,6 +1224,7 @@ export type ScheduleWhenEvery = {
|
|
|
1217
1224
|
every: ScheduleDuration;
|
|
1218
1225
|
tz?: string;
|
|
1219
1226
|
};
|
|
1227
|
+
export type ScheduleCondition = ScheduleConditionShell;
|
|
1220
1228
|
export type ScheduleAction = ScheduleActionPrompt;
|
|
1221
1229
|
export type VcsInfo = {
|
|
1222
1230
|
provider?: string;
|
|
@@ -3154,7 +3162,7 @@ export type ConfigEntry = {
|
|
|
3154
3162
|
timezone?: string;
|
|
3155
3163
|
permissions?: PermissionRuleset;
|
|
3156
3164
|
policies?: Array<{
|
|
3157
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3165
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3158
3166
|
resource: string;
|
|
3159
3167
|
effect: "allow" | "deny";
|
|
3160
3168
|
}>;
|
|
@@ -3411,7 +3419,7 @@ export type ConfigEntry = {
|
|
|
3411
3419
|
subagent_depth?: number;
|
|
3412
3420
|
location_idle_timeout?: string | false;
|
|
3413
3421
|
policies?: Array<{
|
|
3414
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3422
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3415
3423
|
resource: string;
|
|
3416
3424
|
effect: "allow" | "deny";
|
|
3417
3425
|
}>;
|
|
@@ -3507,6 +3515,8 @@ export type ScheduleInfo = {
|
|
|
3507
3515
|
name?: string;
|
|
3508
3516
|
when: ScheduleWhen;
|
|
3509
3517
|
tz: string;
|
|
3518
|
+
if?: ScheduleCondition;
|
|
3519
|
+
until?: ScheduleCondition;
|
|
3510
3520
|
action: ScheduleAction;
|
|
3511
3521
|
status: ScheduleStatus;
|
|
3512
3522
|
nextDueAt?: number;
|
|
@@ -3515,6 +3525,7 @@ export type ScheduleInfo = {
|
|
|
3515
3525
|
runCount: number;
|
|
3516
3526
|
lastFiredAt?: number;
|
|
3517
3527
|
lastOutcome?: ScheduleOutcome;
|
|
3528
|
+
lastOutput?: string;
|
|
3518
3529
|
time: {
|
|
3519
3530
|
created: number;
|
|
3520
3531
|
updated: number;
|
|
@@ -4102,6 +4113,12 @@ export type SessionPromptInput = {
|
|
|
4102
4113
|
readonly text: string;
|
|
4103
4114
|
readonly files?: ReadonlyArray<{
|
|
4104
4115
|
readonly uri: string;
|
|
4116
|
+
readonly source?: {
|
|
4117
|
+
readonly type: "inline";
|
|
4118
|
+
} | {
|
|
4119
|
+
readonly type: "uri";
|
|
4120
|
+
readonly uri: string;
|
|
4121
|
+
};
|
|
4105
4122
|
readonly name?: string;
|
|
4106
4123
|
readonly description?: string;
|
|
4107
4124
|
readonly mention?: {
|
|
@@ -4141,6 +4158,12 @@ export type SessionCommandInput = {
|
|
|
4141
4158
|
readonly text: string;
|
|
4142
4159
|
readonly files?: ReadonlyArray<{
|
|
4143
4160
|
readonly uri: string;
|
|
4161
|
+
readonly source?: {
|
|
4162
|
+
readonly type: "inline";
|
|
4163
|
+
} | {
|
|
4164
|
+
readonly type: "uri";
|
|
4165
|
+
readonly uri: string;
|
|
4166
|
+
};
|
|
4144
4167
|
readonly name?: string;
|
|
4145
4168
|
readonly description?: string;
|
|
4146
4169
|
readonly mention?: {
|
|
@@ -5350,7 +5373,7 @@ export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
|
|
|
5350
5373
|
export type ExperimentalScheduleCreateInput = {
|
|
5351
5374
|
readonly sessionID: string;
|
|
5352
5375
|
readonly name?: string | undefined;
|
|
5353
|
-
readonly when
|
|
5376
|
+
readonly when?: ({
|
|
5354
5377
|
readonly in: string;
|
|
5355
5378
|
readonly at?: never;
|
|
5356
5379
|
readonly every?: never;
|
|
@@ -5374,7 +5397,19 @@ export type ExperimentalScheduleCreateInput = {
|
|
|
5374
5397
|
readonly at?: never;
|
|
5375
5398
|
readonly every?: never;
|
|
5376
5399
|
readonly tz?: string;
|
|
5377
|
-
};
|
|
5400
|
+
}) | undefined;
|
|
5401
|
+
readonly if?: {
|
|
5402
|
+
readonly run: string;
|
|
5403
|
+
readonly is?: string;
|
|
5404
|
+
readonly matches?: string;
|
|
5405
|
+
readonly changes?: boolean;
|
|
5406
|
+
} | undefined;
|
|
5407
|
+
readonly until?: {
|
|
5408
|
+
readonly run: string;
|
|
5409
|
+
readonly is?: string;
|
|
5410
|
+
readonly matches?: string;
|
|
5411
|
+
readonly changes?: boolean;
|
|
5412
|
+
} | undefined;
|
|
5378
5413
|
readonly ends?: {
|
|
5379
5414
|
readonly after?: string;
|
|
5380
5415
|
readonly at?: string;
|
package/dist/promise/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import"../chunks/service-timing-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/service-timing-
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/service-timing-4kwr69ty.js";
|
|
5
5
|
import"../chunks/service-timing-vyas3vgt.js";
|
|
6
6
|
import"../chunks/service-timing-kdshn947.js";
|
|
7
|
-
import"../chunks/service-timing-yn2a71yh.js";
|
|
8
7
|
import {
|
|
9
8
|
isInvalidRequestError2,
|
|
10
9
|
isUnauthorizedError2,
|
|
@@ -46,13 +45,14 @@ import {
|
|
|
46
45
|
isWorktreeError2,
|
|
47
46
|
isVcsInitNotSupportedError2
|
|
48
47
|
} from "../chunks/service-timing-cvg5j6d1.js";
|
|
48
|
+
import"../chunks/service-timing-m3tyme7q.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
} from "../chunks/service-timing-
|
|
52
|
-
import"../chunks/service-timing-
|
|
50
|
+
ClientError2
|
|
51
|
+
} from "../chunks/service-timing-js54wxgp.js";
|
|
52
|
+
import"../chunks/service-timing-hw6kqa0w.js";
|
|
53
53
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
ClientError2 as ClientError,
|
|
55
|
+
exports_client as OpenCode,
|
|
56
56
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
57
57
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
58
58
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
package/dist/promise/service.js
CHANGED
package/dist/pty-handoff.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/service-timing-
|
|
7
|
+
} from "./chunks/service-timing-mmf5jp1m.js";
|
|
8
8
|
import"./chunks/service-timing-8ye1ye6f.js";
|
|
9
9
|
import"./chunks/service-timing-xgnj2w4v.js";
|
|
10
10
|
import"./chunks/service-timing-sxt88q69.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/data.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
createData2
|
|
5
5
|
} from "../chunks/service-timing-f6hq5twr.js";
|
|
6
6
|
import"../chunks/service-timing-m2eywc8w.js";
|
|
7
|
-
import"../chunks/service-timing-
|
|
7
|
+
import"../chunks/service-timing-4kwr69ty.js";
|
|
8
8
|
import"../chunks/service-timing-vyas3vgt.js";
|
|
9
9
|
import"../chunks/service-timing-kdshn947.js";
|
|
10
|
-
import"../chunks/service-timing-yn2a71yh.js";
|
|
11
10
|
import"../chunks/service-timing-cvg5j6d1.js";
|
|
12
|
-
import"../chunks/service-timing-
|
|
13
|
-
import"../chunks/service-timing-
|
|
11
|
+
import"../chunks/service-timing-m3tyme7q.js";
|
|
12
|
+
import"../chunks/service-timing-js54wxgp.js";
|
|
13
|
+
import"../chunks/service-timing-hw6kqa0w.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"../chunks/service-timing-
|
|
2
|
-
import"../chunks/service-timing-
|
|
1
|
+
import"../chunks/service-timing-js54wxgp.js";
|
|
2
|
+
import"../chunks/service-timing-m3tyme7q.js";
|
|
3
3
|
import"../chunks/service-timing-cvg5j6d1.js";
|
|
4
4
|
import"../chunks/service-timing-vyas3vgt.js";
|
|
5
|
-
import"../chunks/service-timing-
|
|
5
|
+
import"../chunks/service-timing-hw6kqa0w.js";
|
|
6
6
|
import"../chunks/service-timing-kdshn947.js";
|
|
7
|
-
import"../chunks/service-timing-
|
|
7
|
+
import"../chunks/service-timing-4kwr69ty.js";
|
|
8
8
|
import"../chunks/service-timing-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/client",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-261",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typecheck:tsc": "tsc --noEmit"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@opencode/schema": "0.0.0-dev-
|
|
67
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
66
|
+
"@opencode/schema": "0.0.0-dev-261",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-261"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"effect": "4.0.6",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@effect/platform-node": "4.0.6",
|
|
83
83
|
"@modelcontextprotocol/client": "2.3.1",
|
|
84
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
84
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-261",
|
|
85
85
|
"@tsconfig/bun": "1.0.9",
|
|
86
86
|
"@types/bun": "1.4.3",
|
|
87
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./service-timing-gecjxyvt.js";
|
|
4
|
-
import {
|
|
5
|
-
make6
|
|
6
|
-
} from "./service-timing-yn2a71yh.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./service-timing-kdshn947.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./service-timing-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client3 = {};
|
|
16
|
-
__export(exports_client3, {
|
|
17
|
-
OpenCode: () => exports_client3,
|
|
18
|
-
make: () => make5
|
|
19
|
-
});
|
|
20
|
-
function make5(options) {
|
|
21
|
-
const raw = make6(options);
|
|
22
|
-
const events = make7((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
|
|
23
|
-
return {
|
|
24
|
-
...raw,
|
|
25
|
-
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
26
|
-
event: events
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { make5, exports_client3 };
|
|
File without changes
|