@opencode-ai/client 0.0.0-next-15586 → 0.0.0-next-15587
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
|
@@ -117,8 +117,8 @@ export type SessionRenameOperation<E = never> = (input: Endpoint5_8Input) => Eff
|
|
|
117
117
|
type Endpoint5_9Request = Parameters<RawClient["server.session"]["session.move"]>[0];
|
|
118
118
|
export type Endpoint5_9Input = {
|
|
119
119
|
readonly sessionID: Endpoint5_9Request["params"]["sessionID"];
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
120
|
+
readonly directory: Endpoint5_9Request["payload"]["directory"];
|
|
121
|
+
readonly workspaceID?: Endpoint5_9Request["payload"]["workspaceID"];
|
|
122
122
|
};
|
|
123
123
|
export type Endpoint5_9Output = EffectValue<ReturnType<RawClient["server.session"]["session.move"]>>;
|
|
124
124
|
export type SessionMoveOperation<E = never> = (input: Endpoint5_9Input) => Effect.Effect<Endpoint5_9Output, E>;
|
|
@@ -72,8 +72,8 @@ type Endpoint5_8Input = {
|
|
|
72
72
|
type Endpoint5_9Request = Parameters<RawClient["server.session"]["session.move"]>[0];
|
|
73
73
|
type Endpoint5_9Input = {
|
|
74
74
|
readonly sessionID: Endpoint5_9Request["params"]["sessionID"];
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
75
|
+
readonly directory: Endpoint5_9Request["payload"]["directory"];
|
|
76
|
+
readonly workspaceID?: Endpoint5_9Request["payload"]["workspaceID"];
|
|
77
77
|
};
|
|
78
78
|
type Endpoint5_10Request = Parameters<RawClient["server.session"]["session.prompt"]>[0];
|
|
79
79
|
type Endpoint5_10Input = {
|
|
@@ -1333,6 +1333,7 @@ export declare const make: (options?: {
|
|
|
1333
1333
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1334
1334
|
};
|
|
1335
1335
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1336
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
1336
1337
|
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
1337
1338
|
};
|
|
1338
1339
|
readonly metadata?: {
|
|
@@ -4343,6 +4344,7 @@ export declare const make: (options?: {
|
|
|
4343
4344
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
4344
4345
|
};
|
|
4345
4346
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4347
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
4346
4348
|
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
4347
4349
|
};
|
|
4348
4350
|
readonly metadata?: {
|
|
@@ -44,7 +44,7 @@ const Endpoint5_7 = (raw) => (input) => raw["session.switchModel"]({ params: { s
|
|
|
44
44
|
const Endpoint5_8 = (raw) => (input) => raw["session.rename"]({ params: { sessionID: input["sessionID"] }, payload: { title: input["title"] } }).pipe(Effect.mapError(mapClientError));
|
|
45
45
|
const Endpoint5_9 = (raw) => (input) => raw["session.move"]({
|
|
46
46
|
params: { sessionID: input["sessionID"] },
|
|
47
|
-
payload: {
|
|
47
|
+
payload: { directory: input["directory"], workspaceID: input["workspaceID"] },
|
|
48
48
|
}).pipe(Effect.mapError(mapClientError));
|
|
49
49
|
const Endpoint5_10 = (raw) => (input) => raw["session.prompt"]({
|
|
50
50
|
params: { sessionID: input["sessionID"] },
|
|
@@ -259,7 +259,7 @@ export function make(options) {
|
|
|
259
259
|
move: (input, requestOptions) => request({
|
|
260
260
|
method: "POST",
|
|
261
261
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/move`,
|
|
262
|
-
body: {
|
|
262
|
+
body: { directory: input["directory"], workspaceID: input["workspaceID"] },
|
|
263
263
|
successStatus: 204,
|
|
264
264
|
declaredStatuses: [404, 400, 401],
|
|
265
265
|
empty: true,
|
|
@@ -845,6 +845,7 @@ export type SessionMoved = {
|
|
|
845
845
|
data: {
|
|
846
846
|
sessionID: string;
|
|
847
847
|
location: LocationRef;
|
|
848
|
+
projectID?: string;
|
|
848
849
|
subpath?: string;
|
|
849
850
|
};
|
|
850
851
|
};
|
|
@@ -3466,18 +3467,14 @@ export type SessionMoveInput = {
|
|
|
3466
3467
|
readonly sessionID: {
|
|
3467
3468
|
readonly sessionID: string;
|
|
3468
3469
|
}["sessionID"];
|
|
3469
|
-
readonly
|
|
3470
|
-
readonly
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
readonly directory: string;
|
|
3478
|
-
};
|
|
3479
|
-
readonly moveChanges?: boolean | undefined;
|
|
3480
|
-
}["moveChanges"];
|
|
3470
|
+
readonly directory: {
|
|
3471
|
+
readonly directory: string;
|
|
3472
|
+
readonly workspaceID?: string;
|
|
3473
|
+
}["directory"];
|
|
3474
|
+
readonly workspaceID?: {
|
|
3475
|
+
readonly directory: string;
|
|
3476
|
+
readonly workspaceID?: string;
|
|
3477
|
+
}["workspaceID"];
|
|
3481
3478
|
};
|
|
3482
3479
|
export type SessionMoveOutput = void;
|
|
3483
3480
|
export type SessionPromptInput = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15587",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"typecheck": "tsgo --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
49
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
48
|
+
"@opencode-ai/schema": "0.0.0-next-15587",
|
|
49
|
+
"@opencode-ai/protocol": "0.0.0-next-15587"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"effect": "4.0.0-beta.83"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
61
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
61
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15587",
|
|
62
62
|
"@tsconfig/bun": "1.0.9",
|
|
63
63
|
"@types/bun": "1.3.13",
|
|
64
64
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|