@opencode/protocol 0.0.0-dev-21176 → 0.0.0-dev-21177
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/groups/pty.d.ts +35 -35
- package/package.json +2 -2
package/dist/groups/pty.d.ts
CHANGED
|
@@ -36,7 +36,33 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
36
36
|
readonly pid: Schema.Int;
|
|
37
37
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
38
38
|
}>>;
|
|
39
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
39
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
40
|
+
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
41
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
42
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
43
|
+
};
|
|
44
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
45
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
46
|
+
readonly directory: Schema.optional<Schema.String>;
|
|
47
|
+
}>>;
|
|
48
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
49
|
+
readonly location: Schema.Struct<{
|
|
50
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
51
|
+
}>;
|
|
52
|
+
readonly data: Schema.Struct<{
|
|
53
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
54
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
55
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
56
|
+
};
|
|
57
|
+
readonly title: Schema.String;
|
|
58
|
+
readonly command: Schema.String;
|
|
59
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
60
|
+
readonly cwd: Schema.String;
|
|
61
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
62
|
+
readonly pid: Schema.Int;
|
|
63
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
64
|
+
}>;
|
|
65
|
+
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
40
66
|
readonly location: Schema.optional<Schema.Struct<{
|
|
41
67
|
readonly directory: Schema.optional<Schema.String>;
|
|
42
68
|
}>>;
|
|
@@ -63,7 +89,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
63
89
|
readonly pid: Schema.Int;
|
|
64
90
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
65
91
|
}>;
|
|
66
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
92
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", Schema.toCodecStringTree<Schema.Struct<{
|
|
67
93
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
68
94
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
69
95
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -72,24 +98,17 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
72
98
|
readonly location: Schema.optional<Schema.Struct<{
|
|
73
99
|
readonly directory: Schema.optional<Schema.String>;
|
|
74
100
|
}>>;
|
|
75
|
-
}>>, never,
|
|
101
|
+
}>>, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
102
|
+
readonly "x-opencode-ticket": Schema.optional<Schema.String>;
|
|
103
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
76
104
|
readonly location: Schema.Struct<{
|
|
77
105
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
78
106
|
}>;
|
|
79
107
|
readonly data: Schema.Struct<{
|
|
80
|
-
readonly
|
|
81
|
-
|
|
82
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
83
|
-
};
|
|
84
|
-
readonly title: Schema.String;
|
|
85
|
-
readonly command: Schema.String;
|
|
86
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
87
|
-
readonly cwd: Schema.String;
|
|
88
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
89
|
-
readonly pid: Schema.Int;
|
|
90
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
108
|
+
readonly ticket: Schema.String;
|
|
109
|
+
readonly expires_in: Schema.Int;
|
|
91
110
|
}>;
|
|
92
|
-
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
111
|
+
}>>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
93
112
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
94
113
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
95
114
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -124,26 +143,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
124
143
|
readonly pid: Schema.Int;
|
|
125
144
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
126
145
|
}>;
|
|
127
|
-
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
128
|
-
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
129
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
130
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
131
|
-
};
|
|
132
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
133
|
-
readonly location: Schema.optional<Schema.Struct<{
|
|
134
|
-
readonly directory: Schema.optional<Schema.String>;
|
|
135
|
-
}>>;
|
|
136
|
-
}>>, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
137
|
-
readonly "x-opencode-ticket": Schema.optional<Schema.String>;
|
|
138
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
139
|
-
readonly location: Schema.Struct<{
|
|
140
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
141
|
-
}>;
|
|
142
|
-
readonly data: Schema.Struct<{
|
|
143
|
-
readonly ticket: Schema.String;
|
|
144
|
-
readonly expires_in: Schema.Int;
|
|
145
|
-
}>;
|
|
146
|
-
}>>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connect", "GET", "/api/pty/:ptyID/connect", Schema.toCodecStringTree<Schema.Struct<{
|
|
146
|
+
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connect", "GET", "/api/pty/:ptyID/connect", Schema.toCodecStringTree<Schema.Struct<{
|
|
147
147
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
148
148
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
149
149
|
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-
|
|
4
|
+
"version": "0.0.0-dev-21177",
|
|
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-
|
|
36
|
+
"@opencode/schema": "0.0.0-dev-21177",
|
|
37
37
|
"effect": "4.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|