@opencode/protocol 0.0.0-dev-21465 → 0.0.0-dev-21479

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,21 +6,15 @@ 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.create", "POST", "/api/pty", never, 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.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
10
10
  readonly location: Schema.optional<Schema.Struct<{
11
11
  readonly directory: Schema.optional<Schema.String>;
12
12
  }>>;
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<{
13
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
20
14
  readonly location: Schema.Struct<{
21
15
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
22
16
  }>;
23
- readonly data: Schema.Struct<{
17
+ readonly data: Schema.$Array<Schema.Struct<{
24
18
  readonly id: Schema.brand<Schema.String, "PtyID"> & {
25
19
  create: () => string & import("effect/Brand").Brand<"PtyID">;
26
20
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
@@ -32,16 +26,22 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
32
26
  readonly status: Schema.Literals<readonly ["running", "exited"]>;
33
27
  readonly pid: Schema.Int;
34
28
  readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
35
- }>;
36
- }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
29
+ }>>;
30
+ }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
37
31
  readonly location: Schema.optional<Schema.Struct<{
38
32
  readonly directory: Schema.optional<Schema.String>;
39
33
  }>>;
40
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
34
+ }>>, Schema.toCodecJson<Schema.Struct<{
35
+ readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
36
+ readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
37
+ readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
38
+ readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
39
+ readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
40
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
41
41
  readonly location: Schema.Struct<{
42
42
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
43
43
  }>;
44
- readonly data: Schema.$Array<Schema.Struct<{
44
+ readonly data: Schema.Struct<{
45
45
  readonly id: Schema.brand<Schema.String, "PtyID"> & {
46
46
  create: () => string & import("effect/Brand").Brand<"PtyID">;
47
47
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
@@ -53,7 +53,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
53
53
  readonly status: Schema.Literals<readonly ["running", "exited"]>;
54
54
  readonly pid: Schema.Int;
55
55
  readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
56
- }>>;
56
+ }>;
57
57
  }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
58
58
  ptyID: Schema.brand<Schema.String, "PtyID"> & {
59
59
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -80,16 +80,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
80
80
  readonly pid: Schema.Int;
81
81
  readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
82
82
  }>;
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<{
83
+ }>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
93
84
  ptyID: Schema.brand<Schema.String, "PtyID"> & {
94
85
  create: () => string & import("effect/Brand").Brand<"PtyID">;
95
86
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
@@ -124,7 +115,16 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
124
115
  readonly pid: Schema.Int;
125
116
  readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
126
117
  }>;
127
- }>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", Schema.toCodecStringTree<Schema.Struct<{
118
+ }>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
119
+ ptyID: Schema.brand<Schema.String, "PtyID"> & {
120
+ create: () => string & import("effect/Brand").Brand<"PtyID">;
121
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
122
+ };
123
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
124
+ readonly location: Schema.optional<Schema.Struct<{
125
+ readonly directory: Schema.optional<Schema.String>;
126
+ }>>;
127
+ }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", Schema.toCodecStringTree<Schema.Struct<{
128
128
  ptyID: Schema.brand<Schema.String, "PtyID"> & {
129
129
  create: () => string & import("effect/Brand").Brand<"PtyID">;
130
130
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/protocol",
4
- "version": "0.0.0-dev-21465",
4
+ "version": "0.0.0-dev-21479",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -33,7 +33,7 @@
33
33
  "typecheck": "tsc --noEmit"
34
34
  },
35
35
  "dependencies": {
36
- "@opencode/schema": "0.0.0-dev-21465",
36
+ "@opencode/schema": "0.0.0-dev-21479",
37
37
  "effect": "4.0.1"
38
38
  },
39
39
  "devDependencies": {