@opencode/client 0.0.0-dev-19602 → 0.0.0-dev-19607
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
CHANGED
|
@@ -1533,7 +1533,7 @@ export type SessionLogOutput = ({
|
|
|
1533
1533
|
export type SessionLogOperation<E = never> = (input: SessionLogInput) => Stream.Stream<SessionLogOutput, E>;
|
|
1534
1534
|
export type SessionInterruptInput = {
|
|
1535
1535
|
readonly sessionID: Session.ID;
|
|
1536
|
-
readonly
|
|
1536
|
+
readonly resume?: boolean | undefined;
|
|
1537
1537
|
};
|
|
1538
1538
|
export type SessionInterruptOutput = {
|
|
1539
1539
|
readonly interrupted: boolean;
|
|
@@ -149,10 +149,7 @@ const EndpointSessionLog = (raw) => (input) => preserveStream()(Stream.unwrap(ra
|
|
|
149
149
|
params: { sessionID: input["sessionID"] },
|
|
150
150
|
query: { after: input["after"], follow: input["follow"] },
|
|
151
151
|
}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError))))));
|
|
152
|
-
const EndpointSessionInterrupt = (raw) => (input) => preserveEffect()(raw["session.interrupt"]({
|
|
153
|
-
params: { sessionID: input["sessionID"] },
|
|
154
|
-
query: { continue: input["continue"] },
|
|
155
|
-
}).pipe(Effect.mapError(mapClientError)));
|
|
152
|
+
const EndpointSessionInterrupt = (raw) => (input) => preserveEffect()(raw["session.interrupt"]({ params: { sessionID: input["sessionID"] }, query: { resume: input["resume"] } }).pipe(Effect.mapError(mapClientError)));
|
|
156
153
|
const EndpointSessionBackground = (raw) => (input) => preserveEffect()(raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
157
154
|
const EndpointSessionMessage = (raw) => (input) => preserveEffect()(raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
158
155
|
const EndpointSessionEnvironment = (raw) => (input) => preserveEffect()(raw["session.environment"]({
|
|
@@ -386,7 +386,7 @@ export function make(options) {
|
|
|
386
386
|
}, requestOptions).then((value) => value.data),
|
|
387
387
|
wait: (input, requestOptions) => request({
|
|
388
388
|
method: "POST",
|
|
389
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
389
|
+
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/wait`,
|
|
390
390
|
successStatus: 204,
|
|
391
391
|
declaredStatuses: [400, 401, 404, 503],
|
|
392
392
|
empty: true,
|
|
@@ -505,7 +505,7 @@ export function make(options) {
|
|
|
505
505
|
interrupt: (input, requestOptions) => request({
|
|
506
506
|
method: "POST",
|
|
507
507
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/interrupt`,
|
|
508
|
-
query: {
|
|
508
|
+
query: { resume: input["resume"] },
|
|
509
509
|
successStatus: 200,
|
|
510
510
|
declaredStatuses: [400, 401, 404],
|
|
511
511
|
empty: false,
|
|
@@ -6017,9 +6017,9 @@ export type SessionInterruptInput = {
|
|
|
6017
6017
|
readonly sessionID: {
|
|
6018
6018
|
readonly sessionID: string;
|
|
6019
6019
|
}["sessionID"];
|
|
6020
|
-
readonly
|
|
6021
|
-
readonly
|
|
6022
|
-
}["
|
|
6020
|
+
readonly resume?: {
|
|
6021
|
+
readonly resume?: boolean | undefined;
|
|
6022
|
+
}["resume"];
|
|
6023
6023
|
};
|
|
6024
6024
|
export type SessionInterruptOutput = SessionInterruptResponse;
|
|
6025
6025
|
export type SessionBackgroundInput = {
|
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-19607",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsgo --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode/schema": "0.0.0-dev-19607",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-19607"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.112",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
77
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-19607",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|