@opencode/protocol 2.1.2 → 2.1.4

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.
@@ -6,24 +6,21 @@ export declare const PTY_CONNECT_TOKEN_HEADER = "x-opencode-ticket";
6
6
  export declare const PTY_CONNECT_TOKEN_HEADER_VALUE = "1";
7
7
  export declare const PTY_CONNECT_PATH = "/api/pty/:ptyID/connect";
8
8
  export declare function hasPtyConnectTicketURL(url: URL): boolean;
9
- export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService>(locationMiddleware: Context.Key<LocationId, LocationService>) => HttpApiGroup.HttpApiGroup<"server.pty", HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
10
- ptyID: Schema.brand<Schema.String, "PtyID"> & {
11
- create: () => string & import("effect/Brand").Brand<"PtyID">;
12
- ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
13
- };
14
- }>>, Schema.toCodecStringTree<Schema.Struct<{
9
+ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService>(locationMiddleware: Context.Key<LocationId, LocationService>) => HttpApiGroup.HttpApiGroup<"server.pty", HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
15
10
  readonly location: Schema.optional<Schema.Struct<{
16
11
  readonly directory: Schema.optional<Schema.String>;
17
12
  }>>;
18
- }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
19
- readonly location: Schema.optional<Schema.Struct<{
20
- readonly directory: Schema.optional<Schema.String>;
21
- }>>;
22
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
13
+ }>>, Schema.toCodecJson<Schema.Struct<{
14
+ readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15
+ readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
16
+ readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
17
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
18
+ readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
19
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
23
20
  readonly location: Schema.Struct<{
24
21
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
25
22
  }>;
26
- readonly data: Schema.$Array<Schema.Struct<{
23
+ readonly data: Schema.Struct<{
27
24
  readonly id: Schema.brand<Schema.String, "PtyID"> & {
28
25
  create: () => string & import("effect/Brand").Brand<"PtyID">;
29
26
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
@@ -35,22 +32,16 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
35
32
  readonly status: Schema.Literals<readonly ["running", "exited"]>;
36
33
  readonly pid: Schema.Int;
37
34
  readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
38
- }>>;
39
- }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
35
+ }>;
36
+ }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
40
37
  readonly location: Schema.optional<Schema.Struct<{
41
38
  readonly directory: Schema.optional<Schema.String>;
42
39
  }>>;
43
- }>>, Schema.toCodecJson<Schema.Struct<{
44
- readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
45
- readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
46
- readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
47
- readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
48
- readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
49
- }>>, never, Schema.toCodecJson<Schema.Struct<{
40
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
50
41
  readonly location: Schema.Struct<{
51
42
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
52
43
  }>;
53
- readonly data: Schema.Struct<{
44
+ readonly data: Schema.$Array<Schema.Struct<{
54
45
  readonly id: Schema.brand<Schema.String, "PtyID"> & {
55
46
  create: () => string & import("effect/Brand").Brand<"PtyID">;
56
47
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
@@ -62,7 +53,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
62
53
  readonly status: Schema.Literals<readonly ["running", "exited"]>;
63
54
  readonly pid: Schema.Int;
64
55
  readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
65
- }>;
56
+ }>>;
66
57
  }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
67
58
  ptyID: Schema.brand<Schema.String, "PtyID"> & {
68
59
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -89,7 +80,16 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
89
80
  readonly pid: Schema.Int;
90
81
  readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
91
82
  }>;
92
- }>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
83
+ }>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
84
+ ptyID: Schema.brand<Schema.String, "PtyID"> & {
85
+ create: () => string & import("effect/Brand").Brand<"PtyID">;
86
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
87
+ };
88
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
89
+ readonly location: Schema.optional<Schema.Struct<{
90
+ readonly directory: Schema.optional<Schema.String>;
91
+ }>>;
92
+ }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
93
93
  ptyID: Schema.brand<Schema.String, "PtyID"> & {
94
94
  create: () => string & import("effect/Brand").Brand<"PtyID">;
95
95
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;