@opencode-ai/client 0.0.0-dev-18393 → 0.0.0-dev-18395
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
|
@@ -2080,9 +2080,9 @@ export type ExperimentalPersistentPtyListOutput = ReadonlyArray<{
|
|
|
2080
2080
|
export type ExperimentalPersistentPtyListOperation<E = never> = (input: ExperimentalPersistentPtyListInput) => Effect.Effect<ExperimentalPersistentPtyListOutput, E>;
|
|
2081
2081
|
export type ExperimentalPersistentPtyCreateInput = {
|
|
2082
2082
|
readonly sessionID: Session.ID;
|
|
2083
|
-
readonly command
|
|
2083
|
+
readonly command?: string | undefined;
|
|
2084
2084
|
readonly args: ReadonlyArray<string>;
|
|
2085
|
-
readonly cwd
|
|
2085
|
+
readonly cwd?: string | undefined;
|
|
2086
2086
|
readonly title: string;
|
|
2087
2087
|
readonly env: {
|
|
2088
2088
|
readonly [x: string]: string;
|
|
@@ -26,7 +26,7 @@ export declare const make: (options?: {
|
|
|
26
26
|
list: (input?: SessionListInput) => Effect.Effect<SessionListOutput, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").InvalidCursorError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
27
27
|
stats: (input?: SessionStatsInput) => Effect.Effect<SessionStatsOutput, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
28
28
|
create: (input?: SessionCreateInput) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
29
|
-
import: (input: SessionImportInput) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
29
|
+
import: (input: SessionImportInput) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
30
30
|
export: (input: SessionExportInput) => Effect.Effect<SessionExportOutput, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
31
31
|
active: () => Effect.Effect<SessionActiveOutput, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
32
32
|
get: (input: SessionGetInput) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
|
|
@@ -223,7 +223,7 @@ export function make(options) {
|
|
|
223
223
|
path: `/api/session/import`,
|
|
224
224
|
body: { info: input["info"], messages: input["messages"], location: input["location"] },
|
|
225
225
|
successStatus: 200,
|
|
226
|
-
declaredStatuses: [409, 401, 400],
|
|
226
|
+
declaredStatuses: [409, 404, 401, 400],
|
|
227
227
|
empty: false,
|
|
228
228
|
}, requestOptions).then((value) => value.data),
|
|
229
229
|
export: (input, requestOptions) => request({
|
|
@@ -7761,10 +7761,10 @@ export type ExperimentalPersistentPtyCreateInput = {
|
|
|
7761
7761
|
readonly sessionID: {
|
|
7762
7762
|
readonly sessionID: string;
|
|
7763
7763
|
}["sessionID"];
|
|
7764
|
-
readonly command
|
|
7765
|
-
readonly command
|
|
7764
|
+
readonly command?: {
|
|
7765
|
+
readonly command?: string;
|
|
7766
7766
|
readonly args: ReadonlyArray<string>;
|
|
7767
|
-
readonly cwd
|
|
7767
|
+
readonly cwd?: string;
|
|
7768
7768
|
readonly title: string;
|
|
7769
7769
|
readonly env: {
|
|
7770
7770
|
readonly [x: string]: string;
|
|
@@ -7775,9 +7775,9 @@ export type ExperimentalPersistentPtyCreateInput = {
|
|
|
7775
7775
|
};
|
|
7776
7776
|
}["command"];
|
|
7777
7777
|
readonly args: {
|
|
7778
|
-
readonly command
|
|
7778
|
+
readonly command?: string;
|
|
7779
7779
|
readonly args: ReadonlyArray<string>;
|
|
7780
|
-
readonly cwd
|
|
7780
|
+
readonly cwd?: string;
|
|
7781
7781
|
readonly title: string;
|
|
7782
7782
|
readonly env: {
|
|
7783
7783
|
readonly [x: string]: string;
|
|
@@ -7787,10 +7787,10 @@ export type ExperimentalPersistentPtyCreateInput = {
|
|
|
7787
7787
|
readonly rows: number;
|
|
7788
7788
|
};
|
|
7789
7789
|
}["args"];
|
|
7790
|
-
readonly cwd
|
|
7791
|
-
readonly command
|
|
7790
|
+
readonly cwd?: {
|
|
7791
|
+
readonly command?: string;
|
|
7792
7792
|
readonly args: ReadonlyArray<string>;
|
|
7793
|
-
readonly cwd
|
|
7793
|
+
readonly cwd?: string;
|
|
7794
7794
|
readonly title: string;
|
|
7795
7795
|
readonly env: {
|
|
7796
7796
|
readonly [x: string]: string;
|
|
@@ -7801,9 +7801,9 @@ export type ExperimentalPersistentPtyCreateInput = {
|
|
|
7801
7801
|
};
|
|
7802
7802
|
}["cwd"];
|
|
7803
7803
|
readonly title: {
|
|
7804
|
-
readonly command
|
|
7804
|
+
readonly command?: string;
|
|
7805
7805
|
readonly args: ReadonlyArray<string>;
|
|
7806
|
-
readonly cwd
|
|
7806
|
+
readonly cwd?: string;
|
|
7807
7807
|
readonly title: string;
|
|
7808
7808
|
readonly env: {
|
|
7809
7809
|
readonly [x: string]: string;
|
|
@@ -7814,9 +7814,9 @@ export type ExperimentalPersistentPtyCreateInput = {
|
|
|
7814
7814
|
};
|
|
7815
7815
|
}["title"];
|
|
7816
7816
|
readonly env: {
|
|
7817
|
-
readonly command
|
|
7817
|
+
readonly command?: string;
|
|
7818
7818
|
readonly args: ReadonlyArray<string>;
|
|
7819
|
-
readonly cwd
|
|
7819
|
+
readonly cwd?: string;
|
|
7820
7820
|
readonly title: string;
|
|
7821
7821
|
readonly env: {
|
|
7822
7822
|
readonly [x: string]: string;
|
|
@@ -7827,9 +7827,9 @@ export type ExperimentalPersistentPtyCreateInput = {
|
|
|
7827
7827
|
};
|
|
7828
7828
|
}["env"];
|
|
7829
7829
|
readonly size?: {
|
|
7830
|
-
readonly command
|
|
7830
|
+
readonly command?: string;
|
|
7831
7831
|
readonly args: ReadonlyArray<string>;
|
|
7832
|
-
readonly cwd
|
|
7832
|
+
readonly cwd?: string;
|
|
7833
7833
|
readonly title: string;
|
|
7834
7834
|
readonly env: {
|
|
7835
7835
|
readonly [x: string]: string;
|
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-dev-
|
|
4
|
+
"version": "0.0.0-dev-18395",
|
|
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-ai/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode-ai/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode-ai/schema": "0.0.0-dev-18395",
|
|
61
|
+
"@opencode-ai/protocol": "0.0.0-dev-18395"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.111",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.111",
|
|
77
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-dev-18395",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.3.13",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|