@opencode/client 0.0.0-dev-1314 → 0.0.0-dev-1317
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-version-ymrgsg4r.js → pty-handoff-016c66wz.js} +2 -2
- package/dist/chunks/{service-version-2ny4vxct.js → pty-handoff-8ye1ye6f.js} +2 -2
- package/dist/chunks/{service-version-9j12j8xw.js → pty-handoff-9j12j8xw.js} +2 -2
- package/dist/chunks/{service-version-ms8wd3xx.js → pty-handoff-ejs4qsgk.js} +5 -5
- package/dist/chunks/{service-version-qwcfbsqt.js → pty-handoff-fszd9r20.js} +4 -4
- package/dist/chunks/{service-version-gecjxyvt.js → pty-handoff-gecjxyvt.js} +1 -1
- package/dist/chunks/{service-version-mqnb71k6.js → pty-handoff-mqnb71k6.js} +1 -1
- package/dist/chunks/{service-version-ryy6kscr.js → pty-handoff-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-version-xafd70ys.js → pty-handoff-xafd70ys.js} +1 -1
- package/dist/chunks/{service-version-d300ns9h.js → pty-handoff-yaaq8kh5.js} +10 -3
- package/dist/chunks/{service-version-ssm21cet.js → pty-handoff-zwq1pe1g.js} +5 -4
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +7 -1
- package/dist/effect/client.d.ts +74 -1
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +74 -1
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +2 -1
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +2 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +6 -6
- package/dist/promise/generated/types.d.ts +72 -56
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +13 -13
- package/dist/promise/media.d.ts +2 -1
- package/dist/promise/media.js +1 -1
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +10 -10
- package/dist/solid/index.js +14 -14
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{service-version-3eaz3m83.js → pty-handoff-3eaz3m83.js} +0 -0
- /package/dist/chunks/{service-version-60xe5cbf.js → pty-handoff-60xe5cbf.js} +0 -0
- /package/dist/chunks/{service-version-6hqrj29e.js → pty-handoff-6hqrj29e.js} +0 -0
- /package/dist/chunks/{service-version-6mptkzbc.js → pty-handoff-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-version-6mq2wh8y.js → pty-handoff-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-version-6r38tsk5.js → pty-handoff-6r38tsk5.js} +0 -0
- /package/dist/chunks/{service-version-8s2anffy.js → pty-handoff-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-version-9rqn6x4v.js → pty-handoff-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-version-mwrzahmf.js → pty-handoff-mwrzahmf.js} +0 -0
- /package/dist/chunks/{service-version-nwcpakzx.js → pty-handoff-nwcpakzx.js} +0 -0
- /package/dist/chunks/{service-version-qav6mfdz.js → pty-handoff-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-version-sxt88q69.js → pty-handoff-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-version-ve4aws36.js → pty-handoff-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-version-vyas3vgt.js → pty-handoff-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-version-xgnj2w4v.js → pty-handoff-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-version-y2etg5bs.js → pty-handoff-y2etg5bs.js} +0 -0
- /package/dist/chunks/{service-version-ydhz1zrh.js → pty-handoff-ydhz1zrh.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-ryy6kscr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
make3
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-zwq1pe1g.js";
|
|
10
10
|
import {
|
|
11
11
|
make4,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./pty-handoff-9j12j8xw.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
make6
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-yaaq8kh5.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-xafd70ys.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client3 = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-nwcpakzx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client4 = {};
|
|
@@ -1031,7 +1031,14 @@ function make6(options) {
|
|
|
1031
1031
|
successStatus: 200,
|
|
1032
1032
|
declaredStatuses: [400, 401, 404],
|
|
1033
1033
|
empty: false
|
|
1034
|
-
}, requestOptions).then((value) => value.data)
|
|
1034
|
+
}, requestOptions).then((value) => value.data),
|
|
1035
|
+
cancel: (input, requestOptions) => request({
|
|
1036
|
+
method: "POST",
|
|
1037
|
+
path: `/api/experimental/job/${encodeURIComponent(input.id)}/cancel`,
|
|
1038
|
+
successStatus: 204,
|
|
1039
|
+
declaredStatuses: [400, 401],
|
|
1040
|
+
empty: true
|
|
1041
|
+
}, requestOptions)
|
|
1035
1042
|
},
|
|
1036
1043
|
migration: {
|
|
1037
1044
|
v1: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-60xe5cbf.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client2 = {};
|
|
@@ -613,6 +613,7 @@ var EndpointExperimentalJobList = (raw) => (input) => preserveEffect()(raw["job.
|
|
|
613
613
|
descendants: input?.["descendants"]
|
|
614
614
|
}
|
|
615
615
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
616
|
+
var EndpointExperimentalJobCancel = (raw) => (input) => preserveEffect()(raw["job.cancel"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError)));
|
|
616
617
|
var adaptGroupExperimental = (raw) => ({
|
|
617
618
|
persistentPty: {
|
|
618
619
|
read: EndpointExperimentalPersistentPtyRead(raw),
|
|
@@ -642,7 +643,7 @@ var adaptGroupExperimental = (raw) => ({
|
|
|
642
643
|
update: EndpointExperimentalArtifactsUpdate(raw),
|
|
643
644
|
delete: EndpointExperimentalArtifactsDelete(raw)
|
|
644
645
|
},
|
|
645
|
-
job: { list: EndpointExperimentalJobList(raw) }
|
|
646
|
+
job: { list: EndpointExperimentalJobList(raw), cancel: EndpointExperimentalJobCancel(raw) }
|
|
646
647
|
});
|
|
647
648
|
var EndpointShellList = (raw) => (input) => preserveEffect()(raw["shell.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
648
649
|
var EndpointShellCreate = (raw) => (input) => preserveEffect()(raw["shell.create"]({
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -2467,7 +2467,7 @@ export interface RpcApi<E = never> {
|
|
|
2467
2467
|
readonly call: RpcCallOperation<E>;
|
|
2468
2468
|
}
|
|
2469
2469
|
export type EventSubscribeInput = {
|
|
2470
|
-
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "artifact.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | `${"rpc."}${string}`> | undefined;
|
|
2470
|
+
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.first-token" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "experimental.job.updated" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "artifact.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | "experimental.mcp.event" | `${"rpc."}${string}`> | undefined;
|
|
2471
2471
|
};
|
|
2472
2472
|
export type EventSubscribeOutput = OpenCodeEvent;
|
|
2473
2473
|
export type EventSubscribeOperation<E = never> = (input?: EventSubscribeInput) => Stream.Stream<EventSubscribeOutput, E>;
|
|
@@ -2869,6 +2869,11 @@ export type ExperimentalJobListInput = {
|
|
|
2869
2869
|
};
|
|
2870
2870
|
export type ExperimentalJobListOutput = ReadonlyArray<Job.Info>;
|
|
2871
2871
|
export type ExperimentalJobListOperation<E = never> = (input?: ExperimentalJobListInput) => Effect.Effect<ExperimentalJobListOutput, E>;
|
|
2872
|
+
export type ExperimentalJobCancelInput = {
|
|
2873
|
+
readonly id: string;
|
|
2874
|
+
};
|
|
2875
|
+
export type ExperimentalJobCancelOutput = void;
|
|
2876
|
+
export type ExperimentalJobCancelOperation<E = never> = (input: ExperimentalJobCancelInput) => Effect.Effect<ExperimentalJobCancelOutput, E>;
|
|
2872
2877
|
export interface ExperimentalApi<E = never> {
|
|
2873
2878
|
readonly persistentPty: {
|
|
2874
2879
|
readonly read: ExperimentalPersistentPtyReadOperation<E>;
|
|
@@ -2900,6 +2905,7 @@ export interface ExperimentalApi<E = never> {
|
|
|
2900
2905
|
};
|
|
2901
2906
|
readonly job: {
|
|
2902
2907
|
readonly list: ExperimentalJobListOperation<E>;
|
|
2908
|
+
readonly cancel: ExperimentalJobCancelOperation<E>;
|
|
2903
2909
|
};
|
|
2904
2910
|
}
|
|
2905
2911
|
export type ShellListInput = {
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export declare const make: (options?: {
|
|
|
59
59
|
};
|
|
60
60
|
job: {
|
|
61
61
|
list: (input?: import("./api.js").ExperimentalJobListInput) => Effect.Effect<import("./api.js").ExperimentalJobListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
62
|
+
cancel: (input: import("./api.js").ExperimentalJobCancelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
62
63
|
};
|
|
63
64
|
session: {
|
|
64
65
|
stats: (input?: import("./api.js").ExperimentalSessionStatsInput) => Effect.Effect<import("./api.js").ExperimentalSessionStatsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
@@ -334,7 +335,7 @@ export declare const make: (options?: {
|
|
|
334
335
|
update: (input: import("./api.js").ExperimentalConfigUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
335
336
|
};
|
|
336
337
|
event: {
|
|
337
|
-
subscribe: <Type extends EventType = "agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "experimental.mcp.event" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.first-token" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(input?: {
|
|
338
|
+
subscribe: <Type extends EventType = "agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "experimental.job.updated" | "experimental.mcp.event" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.first-token" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(input?: {
|
|
338
339
|
readonly types?: ReadonlyArray<Type>;
|
|
339
340
|
}) => Stream.Stream<([Extract<Type, "session.agent.selected">] extends [never] ? never : {
|
|
340
341
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -1737,6 +1738,78 @@ export declare const make: (options?: {
|
|
|
1737
1738
|
readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
|
|
1738
1739
|
readonly credentialID: string & import("effect/Brand").Brand<"Credential.ID">;
|
|
1739
1740
|
};
|
|
1741
|
+
}) | ([Extract<Type, "experimental.job.updated">] extends [never] ? never : {
|
|
1742
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1743
|
+
readonly created: number;
|
|
1744
|
+
readonly metadata?: {
|
|
1745
|
+
readonly [x: string]: unknown;
|
|
1746
|
+
} | undefined;
|
|
1747
|
+
readonly type: "experimental.job.updated";
|
|
1748
|
+
readonly location?: {
|
|
1749
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1750
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1751
|
+
} | undefined;
|
|
1752
|
+
readonly data: {
|
|
1753
|
+
readonly info: {
|
|
1754
|
+
readonly id: string;
|
|
1755
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1756
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1757
|
+
readonly title?: string | undefined;
|
|
1758
|
+
readonly time: {
|
|
1759
|
+
readonly started: number;
|
|
1760
|
+
readonly completed?: number | undefined;
|
|
1761
|
+
};
|
|
1762
|
+
readonly kind: "shell";
|
|
1763
|
+
readonly shellID: string;
|
|
1764
|
+
readonly command: string;
|
|
1765
|
+
} | {
|
|
1766
|
+
readonly id: string;
|
|
1767
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1768
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1769
|
+
readonly title?: string | undefined;
|
|
1770
|
+
readonly time: {
|
|
1771
|
+
readonly started: number;
|
|
1772
|
+
readonly completed?: number | undefined;
|
|
1773
|
+
};
|
|
1774
|
+
readonly kind: "subagent";
|
|
1775
|
+
readonly childSessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1776
|
+
readonly agent: string;
|
|
1777
|
+
readonly description: string;
|
|
1778
|
+
} | {
|
|
1779
|
+
readonly id: string;
|
|
1780
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1781
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1782
|
+
readonly title?: string | undefined;
|
|
1783
|
+
readonly time: {
|
|
1784
|
+
readonly started: number;
|
|
1785
|
+
readonly completed?: number | undefined;
|
|
1786
|
+
};
|
|
1787
|
+
readonly kind: "image";
|
|
1788
|
+
readonly path: string;
|
|
1789
|
+
readonly model: string;
|
|
1790
|
+
} | {
|
|
1791
|
+
readonly id: string;
|
|
1792
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1793
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1794
|
+
readonly title?: string | undefined;
|
|
1795
|
+
readonly time: {
|
|
1796
|
+
readonly started: number;
|
|
1797
|
+
readonly completed?: number | undefined;
|
|
1798
|
+
};
|
|
1799
|
+
readonly kind: "video";
|
|
1800
|
+
readonly path: string;
|
|
1801
|
+
} | {
|
|
1802
|
+
readonly id: string;
|
|
1803
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1804
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1805
|
+
readonly title?: string | undefined;
|
|
1806
|
+
readonly time: {
|
|
1807
|
+
readonly started: number;
|
|
1808
|
+
readonly completed?: number | undefined;
|
|
1809
|
+
};
|
|
1810
|
+
readonly kind: "codemode";
|
|
1811
|
+
};
|
|
1812
|
+
};
|
|
1740
1813
|
}) | ([Extract<Type, "experimental.mcp.event">] extends [never] ? never : {
|
|
1741
1814
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1742
1815
|
readonly created: number;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/pty-handoff-ejs4qsgk.js";
|
|
5
|
+
import"../chunks/pty-handoff-6mptkzbc.js";
|
|
6
|
+
import"../chunks/pty-handoff-zwq1pe1g.js";
|
|
7
|
+
import"../chunks/pty-handoff-y2etg5bs.js";
|
|
8
|
+
import"../chunks/pty-handoff-9j12j8xw.js";
|
|
9
|
+
import"../chunks/pty-handoff-60xe5cbf.js";
|
|
10
|
+
import"../chunks/pty-handoff-ryy6kscr.js";
|
|
11
|
+
import"../chunks/pty-handoff-gecjxyvt.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client as OpenCode,
|
|
14
14
|
make2 as make
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Stream, Schema } from "effect";
|
|
2
2
|
import { Sse } from "effect/encoding";
|
|
3
3
|
import { HttpClientError } from "effect/http";
|
|
4
|
-
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionCreateInput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionGenerateOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionStatsOutput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionExportOutput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryListOutput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateTextOutput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceModelsOutput, ExperimentalVoiceSessionInput, ExperimentalVoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, EventSubscribeInput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationListOutput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalJobListInput, ExperimentalJobListOutput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "../api/api.js";
|
|
4
|
+
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionCreateInput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionGenerateOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionStatsOutput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionExportOutput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryListOutput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateTextOutput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceModelsOutput, ExperimentalVoiceSessionInput, ExperimentalVoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, EventSubscribeInput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationListOutput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalJobListInput, ExperimentalJobListOutput, ExperimentalJobCancelInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "../api/api.js";
|
|
5
5
|
import { ClientError } from "./client-error.js";
|
|
6
6
|
export declare const make: (options?: {
|
|
7
7
|
readonly baseUrl?: URL | string;
|
|
@@ -56,6 +56,7 @@ export declare const make: (options?: {
|
|
|
56
56
|
};
|
|
57
57
|
job: {
|
|
58
58
|
list: (input?: ExperimentalJobListInput) => Effect.Effect<ExperimentalJobListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
59
|
+
cancel: (input: ExperimentalJobCancelInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
59
60
|
};
|
|
60
61
|
session: {
|
|
61
62
|
stats: (input?: ExperimentalSessionStatsInput) => Effect.Effect<ExperimentalSessionStatsOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
@@ -1565,6 +1566,78 @@ export declare const make: (options?: {
|
|
|
1565
1566
|
readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
|
|
1566
1567
|
readonly credentialID: string & import("effect/Brand").Brand<"Credential.ID">;
|
|
1567
1568
|
};
|
|
1569
|
+
} | {
|
|
1570
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1571
|
+
readonly created: number;
|
|
1572
|
+
readonly metadata?: {
|
|
1573
|
+
readonly [x: string]: unknown;
|
|
1574
|
+
} | undefined;
|
|
1575
|
+
readonly type: "experimental.job.updated";
|
|
1576
|
+
readonly location?: {
|
|
1577
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1578
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
readonly data: {
|
|
1581
|
+
readonly info: {
|
|
1582
|
+
readonly id: string;
|
|
1583
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1584
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1585
|
+
readonly title?: string | undefined;
|
|
1586
|
+
readonly time: {
|
|
1587
|
+
readonly started: number;
|
|
1588
|
+
readonly completed?: number | undefined;
|
|
1589
|
+
};
|
|
1590
|
+
readonly kind: "shell";
|
|
1591
|
+
readonly shellID: string;
|
|
1592
|
+
readonly command: string;
|
|
1593
|
+
} | {
|
|
1594
|
+
readonly id: string;
|
|
1595
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1596
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1597
|
+
readonly title?: string | undefined;
|
|
1598
|
+
readonly time: {
|
|
1599
|
+
readonly started: number;
|
|
1600
|
+
readonly completed?: number | undefined;
|
|
1601
|
+
};
|
|
1602
|
+
readonly kind: "subagent";
|
|
1603
|
+
readonly childSessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1604
|
+
readonly agent: string;
|
|
1605
|
+
readonly description: string;
|
|
1606
|
+
} | {
|
|
1607
|
+
readonly id: string;
|
|
1608
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1609
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1610
|
+
readonly title?: string | undefined;
|
|
1611
|
+
readonly time: {
|
|
1612
|
+
readonly started: number;
|
|
1613
|
+
readonly completed?: number | undefined;
|
|
1614
|
+
};
|
|
1615
|
+
readonly kind: "image";
|
|
1616
|
+
readonly path: string;
|
|
1617
|
+
readonly model: string;
|
|
1618
|
+
} | {
|
|
1619
|
+
readonly id: string;
|
|
1620
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1621
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1622
|
+
readonly title?: string | undefined;
|
|
1623
|
+
readonly time: {
|
|
1624
|
+
readonly started: number;
|
|
1625
|
+
readonly completed?: number | undefined;
|
|
1626
|
+
};
|
|
1627
|
+
readonly kind: "video";
|
|
1628
|
+
readonly path: string;
|
|
1629
|
+
} | {
|
|
1630
|
+
readonly id: string;
|
|
1631
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1632
|
+
readonly status: "cancelled" | "completed" | "error" | "running";
|
|
1633
|
+
readonly title?: string | undefined;
|
|
1634
|
+
readonly time: {
|
|
1635
|
+
readonly started: number;
|
|
1636
|
+
readonly completed?: number | undefined;
|
|
1637
|
+
};
|
|
1638
|
+
readonly kind: "codemode";
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1568
1641
|
} | {
|
|
1569
1642
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1570
1643
|
readonly created: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make3
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
3
|
+
} from "../../chunks/pty-handoff-zwq1pe1g.js";
|
|
4
|
+
import"../../chunks/pty-handoff-y2etg5bs.js";
|
|
5
|
+
import"../../chunks/pty-handoff-60xe5cbf.js";
|
|
6
6
|
export {
|
|
7
7
|
make3 as make
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/pty-handoff-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client2
|
|
4
|
-
} from "../../chunks/
|
|
4
|
+
} from "../../chunks/pty-handoff-zwq1pe1g.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError2
|
|
7
|
-
} from "../../chunks/
|
|
8
|
-
import"../../chunks/
|
|
7
|
+
} from "../../chunks/pty-handoff-y2etg5bs.js";
|
|
8
|
+
import"../../chunks/pty-handoff-60xe5cbf.js";
|
|
9
9
|
export {
|
|
10
10
|
ClientError2 as ClientError,
|
|
11
11
|
exports_client2 as OpenCode
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/pty-handoff-y2etg5bs.js";
|
|
4
|
+
import"../chunks/pty-handoff-60xe5cbf.js";
|
|
5
|
+
import"../chunks/pty-handoff-zwq1pe1g.js";
|
|
6
|
+
import"../chunks/pty-handoff-6mptkzbc.js";
|
|
7
|
+
import"../chunks/pty-handoff-gecjxyvt.js";
|
|
8
|
+
import"../chunks/pty-handoff-ryy6kscr.js";
|
|
9
|
+
import"../chunks/pty-handoff-9j12j8xw.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/
|
|
12
|
+
} from "../chunks/pty-handoff-ejs4qsgk.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
make4,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/pty-handoff-9j12j8xw.js";
|
|
6
|
+
import"../chunks/pty-handoff-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/pty-handoff-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/pty-handoff-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/pty-handoff-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/pty-handoff-8ye1ye6f.js";
|
|
19
19
|
import {
|
|
20
20
|
prepare2,
|
|
21
21
|
environment2,
|
|
22
22
|
complete2,
|
|
23
23
|
clear2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/pty-handoff-016c66wz.js";
|
|
25
|
+
import"../chunks/pty-handoff-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|