@opencode/client 0.0.0-dev-19518 → 0.0.0-dev-19520

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.
@@ -945,7 +945,7 @@ export function make(options) {
945
945
  path: `/api/fs/read/${encodePath(input.path)}`,
946
946
  query: { location: input["location"] },
947
947
  successStatus: 200,
948
- declaredStatuses: [400, 401],
948
+ declaredStatuses: [400, 401, 404],
949
949
  empty: false,
950
950
  binary: true,
951
951
  }, requestOptions),
@@ -3326,6 +3326,12 @@ export type PermissionNotFoundError = {
3326
3326
  readonly message: string;
3327
3327
  };
3328
3328
  export declare const isPermissionNotFoundError: (value: unknown) => value is PermissionNotFoundError;
3329
+ export type FileNotFoundError = {
3330
+ readonly _tag: "FileNotFoundError";
3331
+ readonly path: string;
3332
+ readonly message: string;
3333
+ };
3334
+ export declare const isFileNotFoundError: (value: unknown) => value is FileNotFoundError;
3329
3335
  export type RpcError = {
3330
3336
  readonly _tag: "RpcError";
3331
3337
  readonly type: string;
@@ -22,6 +22,7 @@ export const isFormNotFoundError = (value) => typeof value === "object" && value
22
22
  export const isFormInvalidAnswerError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormInvalidAnswerError";
23
23
  export const isFormAlreadySettledError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormAlreadySettledError";
24
24
  export const isPermissionNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PermissionNotFoundError";
25
+ export const isFileNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FileNotFoundError";
25
26
  export const isRpcError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "RpcError";
26
27
  export const isRpcInternalError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "RpcInternalError";
27
28
  export const isPtyNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PtyNotFoundError";
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-19518",
4
+ "version": "0.0.0-dev-19520",
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-19518",
61
- "@opencode/protocol": "0.0.0-dev-19518"
60
+ "@opencode/schema": "0.0.0-dev-19520",
61
+ "@opencode/protocol": "0.0.0-dev-19520"
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-19518",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-19520",
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",