@nyte-ai/schema 0.0.24 → 0.0.25-beta.1
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/chunks/{browser-xk4psyrx.js → browser-40skw1kj.js} +1 -1
- package/dist/chunks/{browser-fnanbp6m.js → browser-5w8ywd56.js} +5 -4
- package/dist/chunks/{browser-0chm3654.js → browser-82qzgxz4.js} +13 -2
- package/dist/chunks/{browser-qncc807c.js → browser-b1pzvhs6.js} +1 -1
- package/dist/chunks/{browser-h5k4hqfq.js → browser-b1zjf2es.js} +1 -1
- package/dist/chunks/{browser-ay8k1s1m.js → browser-fw8cf4fc.js} +2 -2
- package/dist/chunks/{browser-fe66aj8v.js → browser-kmkhr82d.js} +27 -9
- package/dist/chunks/{browser-s2xe7c21.js → browser-pk5dmvrr.js} +3 -3
- package/dist/chunks/{browser-etfrcxhb.js → browser-pvrs6rs5.js} +3 -3
- package/dist/chunks/{browser-xensz05x.js → browser-t7t9fc1r.js} +1 -1
- package/dist/chunks/{browser-gzn951k8.js → browser-ts4gc07c.js} +39 -4
- package/dist/chunks/{browser-hq5q56sf.js → browser-wqkhghw2.js} +15 -7
- package/dist/src/connection.js +4 -4
- package/dist/src/events.d.ts +108 -108
- package/dist/src/events.js +3 -3
- package/dist/src/heads.d.ts +20 -0
- package/dist/src/heads.js +8 -2
- package/dist/src/hooks.js +2 -2
- package/dist/src/ids.d.ts +1 -2
- package/dist/src/index.js +20 -12
- package/dist/src/mcp.d.ts +8 -8
- package/dist/src/messages.d.ts +8 -0
- package/dist/src/messages.js +4 -2
- package/dist/src/parts.d.ts +40 -40
- package/dist/src/runs.d.ts +12 -12
- package/dist/src/sessions.d.ts +8 -8
- package/dist/src/sessions.js +2 -2
- package/dist/src/store.d.ts +52 -52
- package/dist/src/store.js +4 -4
- package/dist/src/views.d.ts +502 -170
- package/dist/src/views.js +3 -3
- package/dist/src/wire/operations/browser.d.ts +119 -119
- package/dist/src/wire/operations/fields.d.ts +6 -6
- package/dist/src/wire/operations/files.d.ts +52 -52
- package/dist/src/wire/operations/git.d.ts +121 -121
- package/dist/src/wire/operations/github.d.ts +34 -34
- package/dist/src/wire/operations/host.d.ts +299 -298
- package/dist/src/wire/operations/host.js +6 -6
- package/dist/src/wire/operations/index.d.ts +4771 -4362
- package/dist/src/wire/operations/index.js +9 -9
- package/dist/src/wire/operations/session.d.ts +2511 -2103
- package/dist/src/wire/operations/session.js +5 -5
- package/dist/src/wire/operations/workspace.d.ts +244 -244
- package/dist/src/wire/operations/workspace.js +3 -3
- package/package.json +2 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const WORKSPACE_OPERATIONS: {
|
|
2
2
|
readonly "workspace.info": {
|
|
3
|
+
readonly authority: "participant";
|
|
4
|
+
readonly scope: "workspace";
|
|
3
5
|
readonly kind: "query";
|
|
4
6
|
readonly input: import("../../schema.ts").Schema<{
|
|
5
7
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
6
8
|
}>;
|
|
7
9
|
readonly output: import("../../schema.ts").Schema<{
|
|
8
10
|
readonly id: import("../../ids.ts").Id<"workspace">;
|
|
9
|
-
readonly sessions: number;
|
|
10
|
-
readonly identity: import("../../ids.ts").Id<"environment-identity">;
|
|
11
11
|
readonly target: {
|
|
12
12
|
readonly kind: "local";
|
|
13
13
|
readonly path: string;
|
|
@@ -15,37 +15,37 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
15
15
|
readonly kind: string;
|
|
16
16
|
readonly locator: import("../../json.ts").Json;
|
|
17
17
|
};
|
|
18
|
+
readonly identity: import("../../ids.ts").Id<"environment-identity">;
|
|
18
19
|
readonly availability: {
|
|
19
20
|
readonly kind: "available";
|
|
20
21
|
} | {
|
|
21
22
|
readonly kind: "unavailable";
|
|
22
23
|
readonly reason: "unreachable" | "unsupported";
|
|
23
24
|
};
|
|
24
|
-
readonly projectSources: readonly string[];
|
|
25
25
|
readonly projectResources: boolean | null;
|
|
26
26
|
readonly trusted: boolean | null;
|
|
27
|
+
readonly projectSources: readonly string[];
|
|
27
28
|
readonly addedBy: import("../../ids.ts").Id<"principal">;
|
|
29
|
+
readonly sessions: number;
|
|
28
30
|
readonly writers: readonly import("../../ids.ts").Id<"run">[];
|
|
29
31
|
readonly isolation: {
|
|
30
|
-
readonly session: import("../../ids.ts").Id<"session">;
|
|
31
32
|
readonly kind: "worktree";
|
|
32
33
|
readonly source: import("../../ids.ts").Id<"workspace">;
|
|
34
|
+
readonly session: import("../../ids.ts").Id<"session">;
|
|
33
35
|
readonly branch: string;
|
|
34
36
|
readonly base: string;
|
|
35
37
|
} | null;
|
|
36
38
|
}>;
|
|
37
|
-
readonly authority: "participant";
|
|
38
|
-
readonly scope: "workspace";
|
|
39
39
|
};
|
|
40
40
|
readonly "workspace.watch": {
|
|
41
|
+
readonly authority: "participant";
|
|
42
|
+
readonly scope: "workspace";
|
|
41
43
|
readonly kind: "watch";
|
|
42
44
|
readonly input: import("../../schema.ts").Schema<{
|
|
43
45
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
44
46
|
}>;
|
|
45
47
|
readonly output: import("../../schema.ts").Schema<{
|
|
46
48
|
readonly id: import("../../ids.ts").Id<"workspace">;
|
|
47
|
-
readonly sessions: number;
|
|
48
|
-
readonly identity: import("../../ids.ts").Id<"environment-identity">;
|
|
49
49
|
readonly target: {
|
|
50
50
|
readonly kind: "local";
|
|
51
51
|
readonly path: string;
|
|
@@ -53,144 +53,148 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
53
53
|
readonly kind: string;
|
|
54
54
|
readonly locator: import("../../json.ts").Json;
|
|
55
55
|
};
|
|
56
|
+
readonly identity: import("../../ids.ts").Id<"environment-identity">;
|
|
56
57
|
readonly availability: {
|
|
57
58
|
readonly kind: "available";
|
|
58
59
|
} | {
|
|
59
60
|
readonly kind: "unavailable";
|
|
60
61
|
readonly reason: "unreachable" | "unsupported";
|
|
61
62
|
};
|
|
62
|
-
readonly projectSources: readonly string[];
|
|
63
63
|
readonly projectResources: boolean | null;
|
|
64
64
|
readonly trusted: boolean | null;
|
|
65
|
+
readonly projectSources: readonly string[];
|
|
65
66
|
readonly addedBy: import("../../ids.ts").Id<"principal">;
|
|
67
|
+
readonly sessions: number;
|
|
66
68
|
readonly writers: readonly import("../../ids.ts").Id<"run">[];
|
|
67
69
|
readonly isolation: {
|
|
68
|
-
readonly session: import("../../ids.ts").Id<"session">;
|
|
69
70
|
readonly kind: "worktree";
|
|
70
71
|
readonly source: import("../../ids.ts").Id<"workspace">;
|
|
72
|
+
readonly session: import("../../ids.ts").Id<"session">;
|
|
71
73
|
readonly branch: string;
|
|
72
74
|
readonly base: string;
|
|
73
75
|
} | null;
|
|
74
76
|
}>;
|
|
75
|
-
readonly authority: "participant";
|
|
76
|
-
readonly scope: "workspace";
|
|
77
77
|
};
|
|
78
78
|
readonly "workspace.catalog": {
|
|
79
|
+
readonly authority: "participant";
|
|
80
|
+
readonly scope: "workspace";
|
|
79
81
|
readonly kind: "query";
|
|
80
82
|
readonly input: import("../../schema.ts").Schema<{
|
|
81
83
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
82
84
|
}>;
|
|
83
85
|
readonly output: import("../../schema.ts").Schema<{
|
|
84
|
-
|
|
85
|
-
description: string;
|
|
86
|
+
commands: {
|
|
86
87
|
name: string;
|
|
87
|
-
location: string;
|
|
88
88
|
owner: string;
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
side: "client" | "core";
|
|
90
|
+
title: string;
|
|
91
|
+
description: string;
|
|
92
|
+
takesText: boolean;
|
|
93
|
+
completes: boolean;
|
|
91
94
|
category?: string | undefined;
|
|
92
95
|
keywords?: string[] | undefined;
|
|
93
|
-
|
|
96
|
+
}[];
|
|
97
|
+
skills: {
|
|
94
98
|
name: string;
|
|
95
|
-
title: string;
|
|
96
|
-
side: "core" | "client";
|
|
97
99
|
owner: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
description: string;
|
|
101
|
+
location: string;
|
|
100
102
|
}[];
|
|
101
103
|
}>;
|
|
102
|
-
readonly authority: "participant";
|
|
103
|
-
readonly scope: "workspace";
|
|
104
104
|
};
|
|
105
105
|
readonly "workspace.command": {
|
|
106
|
+
readonly authority: "participant";
|
|
107
|
+
readonly scope: "workspace";
|
|
106
108
|
readonly kind: "command";
|
|
107
109
|
readonly input: import("../../schema.ts").Schema<{
|
|
108
|
-
name: string;
|
|
109
110
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
111
|
+
name: string;
|
|
110
112
|
text: string;
|
|
111
113
|
}>;
|
|
112
114
|
readonly output: import("../../schema.ts").Schema<{
|
|
113
|
-
readonly output: string | null;
|
|
114
115
|
readonly kind: "ran";
|
|
116
|
+
readonly output: string | null;
|
|
115
117
|
} | {
|
|
116
118
|
readonly kind: "prompt";
|
|
117
119
|
readonly content: string | readonly ({
|
|
118
|
-
readonly text: string;
|
|
119
120
|
readonly kind: "text";
|
|
121
|
+
readonly text: string;
|
|
120
122
|
} | {
|
|
121
|
-
readonly name: string;
|
|
122
|
-
readonly blob: import("../../ids.ts").Id<"blob">;
|
|
123
123
|
readonly kind: "file";
|
|
124
|
+
readonly blob: import("../../ids.ts").Id<"blob">;
|
|
124
125
|
readonly mime: string;
|
|
126
|
+
readonly name: string;
|
|
125
127
|
} | {
|
|
126
|
-
readonly blob?: import("../../ids.ts").Id<"blob"> | undefined;
|
|
127
128
|
readonly kind: "reference";
|
|
128
129
|
readonly path: string;
|
|
130
|
+
readonly blob?: import("../../ids.ts").Id<"blob"> | undefined;
|
|
129
131
|
} | {
|
|
130
|
-
readonly name: string;
|
|
131
132
|
readonly kind: "skill";
|
|
133
|
+
readonly name: string;
|
|
132
134
|
readonly location: string;
|
|
133
135
|
} | {
|
|
134
|
-
readonly text: string;
|
|
135
136
|
readonly kind: "excerpt";
|
|
136
137
|
readonly source: {
|
|
137
138
|
readonly kind: "diff";
|
|
138
139
|
readonly path: string;
|
|
139
|
-
readonly side: "
|
|
140
|
+
readonly side: "new" | "old";
|
|
140
141
|
readonly start: number;
|
|
141
142
|
readonly end: number;
|
|
142
143
|
} | {
|
|
143
|
-
readonly command?: string | undefined;
|
|
144
144
|
readonly kind: "terminal";
|
|
145
|
+
readonly command?: string | undefined;
|
|
145
146
|
} | {
|
|
146
|
-
readonly url: string;
|
|
147
147
|
readonly kind: "browser";
|
|
148
|
+
readonly url: string;
|
|
148
149
|
readonly selector: string;
|
|
149
150
|
};
|
|
151
|
+
readonly text: string;
|
|
150
152
|
})[];
|
|
151
153
|
} | {
|
|
152
154
|
readonly kind: "unknown";
|
|
153
155
|
} | {
|
|
154
|
-
readonly message: string;
|
|
155
156
|
readonly kind: "failed";
|
|
157
|
+
readonly message: string;
|
|
156
158
|
}>;
|
|
157
|
-
readonly authority: "participant";
|
|
158
|
-
readonly scope: "workspace";
|
|
159
159
|
};
|
|
160
160
|
readonly "workspace.completeCommand": {
|
|
161
|
+
readonly authority: "participant";
|
|
162
|
+
readonly scope: "workspace";
|
|
161
163
|
readonly kind: "query";
|
|
162
164
|
readonly input: import("../../schema.ts").Schema<{
|
|
163
|
-
name: string;
|
|
164
165
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
166
|
+
name: string;
|
|
165
167
|
prefix: string;
|
|
166
168
|
}>;
|
|
167
169
|
readonly output: import("../../schema.ts").Schema<readonly {
|
|
168
|
-
readonly description?: string | undefined;
|
|
169
170
|
readonly value: string;
|
|
170
171
|
readonly label: string;
|
|
172
|
+
readonly description?: string | undefined;
|
|
171
173
|
}[]>;
|
|
172
|
-
readonly authority: "participant";
|
|
173
|
-
readonly scope: "workspace";
|
|
174
174
|
};
|
|
175
175
|
readonly "mcp.watch": {
|
|
176
|
+
readonly authority: "owner";
|
|
177
|
+
readonly scope: "workspace";
|
|
176
178
|
readonly kind: "watch";
|
|
177
179
|
readonly input: import("../../schema.ts").Schema<{
|
|
178
180
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
179
181
|
}>;
|
|
180
182
|
readonly output: import("../../schema.ts").Schema<{
|
|
181
|
-
readonly issues: readonly {
|
|
182
|
-
readonly source?: {
|
|
183
|
-
readonly file?: string | undefined;
|
|
184
|
-
readonly line?: number | undefined;
|
|
185
|
-
readonly plugin: string;
|
|
186
|
-
} | undefined;
|
|
187
|
-
readonly message: string;
|
|
188
|
-
readonly severity: "error" | "warning";
|
|
189
|
-
readonly path: readonly (string | number)[];
|
|
190
|
-
}[];
|
|
191
183
|
readonly servers: readonly {
|
|
192
|
-
readonly description: string | null;
|
|
193
184
|
readonly name: string;
|
|
185
|
+
readonly scope: "project" | "user";
|
|
186
|
+
readonly path: string;
|
|
187
|
+
readonly override: string | null;
|
|
188
|
+
readonly transport: {
|
|
189
|
+
readonly kind: "stdio";
|
|
190
|
+
readonly command: string;
|
|
191
|
+
readonly args: readonly string[];
|
|
192
|
+
} | {
|
|
193
|
+
readonly kind: "http";
|
|
194
|
+
readonly url: string;
|
|
195
|
+
};
|
|
196
|
+
readonly exposure: "code" | "deferred" | "hidden" | "model";
|
|
197
|
+
readonly description: string | null;
|
|
194
198
|
readonly state: {
|
|
195
199
|
readonly kind: "disabled";
|
|
196
200
|
} | {
|
|
@@ -198,35 +202,33 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
198
202
|
} | {
|
|
199
203
|
readonly kind: "connected";
|
|
200
204
|
readonly tools: readonly {
|
|
201
|
-
readonly description: string;
|
|
202
205
|
readonly name: string;
|
|
203
|
-
readonly
|
|
206
|
+
readonly description: string;
|
|
207
|
+
readonly exposure: "code" | "deferred" | "hidden" | "model";
|
|
204
208
|
}[];
|
|
205
209
|
} | {
|
|
206
210
|
readonly kind: "needs-sign-in";
|
|
207
211
|
} | {
|
|
208
|
-
readonly message: string;
|
|
209
212
|
readonly kind: "failed";
|
|
213
|
+
readonly message: string;
|
|
210
214
|
readonly stderr: string | null;
|
|
211
215
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
217
|
-
|
|
218
|
-
readonly
|
|
219
|
-
readonly
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
readonly kind: "http";
|
|
223
|
-
};
|
|
216
|
+
}[];
|
|
217
|
+
readonly issues: readonly {
|
|
218
|
+
readonly severity: "error" | "warning";
|
|
219
|
+
readonly path: readonly (string | number)[];
|
|
220
|
+
readonly message: string;
|
|
221
|
+
readonly source?: {
|
|
222
|
+
readonly plugin: string;
|
|
223
|
+
readonly file?: string | undefined;
|
|
224
|
+
readonly line?: number | undefined;
|
|
225
|
+
} | undefined;
|
|
224
226
|
}[];
|
|
225
227
|
}>;
|
|
226
|
-
readonly authority: "owner";
|
|
227
|
-
readonly scope: "workspace";
|
|
228
228
|
};
|
|
229
229
|
readonly "mcp.reconnect": {
|
|
230
|
+
readonly authority: "owner";
|
|
231
|
+
readonly scope: "workspace";
|
|
230
232
|
readonly kind: "command";
|
|
231
233
|
readonly input: import("../../schema.ts").Schema<{
|
|
232
234
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -237,31 +239,31 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
237
239
|
} | {
|
|
238
240
|
readonly kind: "missing";
|
|
239
241
|
} | {
|
|
240
|
-
readonly message: string;
|
|
241
242
|
readonly kind: "invalid";
|
|
243
|
+
readonly message: string;
|
|
242
244
|
}>;
|
|
243
|
-
readonly authority: "owner";
|
|
244
|
-
readonly scope: "workspace";
|
|
245
245
|
};
|
|
246
246
|
readonly "mcp.setEnabled": {
|
|
247
|
+
readonly authority: "owner";
|
|
248
|
+
readonly scope: "workspace";
|
|
247
249
|
readonly kind: "command";
|
|
248
250
|
readonly input: import("../../schema.ts").Schema<{
|
|
249
251
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
250
|
-
enabled: boolean;
|
|
251
252
|
server: string;
|
|
253
|
+
enabled: boolean;
|
|
252
254
|
}>;
|
|
253
255
|
readonly output: import("../../schema.ts").Schema<{
|
|
254
256
|
readonly kind: "updated";
|
|
255
257
|
} | {
|
|
256
258
|
readonly kind: "missing";
|
|
257
259
|
} | {
|
|
258
|
-
readonly message: string;
|
|
259
260
|
readonly kind: "invalid";
|
|
261
|
+
readonly message: string;
|
|
260
262
|
}>;
|
|
261
|
-
readonly authority: "owner";
|
|
262
|
-
readonly scope: "workspace";
|
|
263
263
|
};
|
|
264
264
|
readonly "mcp.login": {
|
|
265
|
+
readonly authority: "owner";
|
|
266
|
+
readonly scope: "workspace";
|
|
265
267
|
readonly kind: "command";
|
|
266
268
|
readonly input: import("../../schema.ts").Schema<{
|
|
267
269
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -270,10 +272,10 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
270
272
|
readonly output: import("../../schema.ts").Schema<{
|
|
271
273
|
login: string;
|
|
272
274
|
}>;
|
|
273
|
-
readonly authority: "owner";
|
|
274
|
-
readonly scope: "workspace";
|
|
275
275
|
};
|
|
276
276
|
readonly "mcp.logout": {
|
|
277
|
+
readonly authority: "owner";
|
|
278
|
+
readonly scope: "workspace";
|
|
277
279
|
readonly kind: "command";
|
|
278
280
|
readonly input: import("../../schema.ts").Schema<{
|
|
279
281
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -284,79 +286,79 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
284
286
|
} | {
|
|
285
287
|
readonly kind: "missing";
|
|
286
288
|
} | {
|
|
287
|
-
readonly message: string;
|
|
288
289
|
readonly kind: "invalid";
|
|
290
|
+
readonly message: string;
|
|
289
291
|
}>;
|
|
290
|
-
readonly authority: "owner";
|
|
291
|
-
readonly scope: "workspace";
|
|
292
292
|
};
|
|
293
293
|
readonly "mcp.add": {
|
|
294
|
+
readonly authority: "owner";
|
|
295
|
+
readonly scope: "workspace";
|
|
294
296
|
readonly kind: "command";
|
|
295
297
|
readonly input: import("../../schema.ts").Schema<{
|
|
296
298
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
297
|
-
scope: "user" | "project";
|
|
298
299
|
server: string;
|
|
299
300
|
config: {
|
|
300
|
-
|
|
301
|
+
enabled?: boolean | undefined;
|
|
302
|
+
timeout?: number | undefined;
|
|
301
303
|
description?: string | undefined;
|
|
302
|
-
exposure?: "
|
|
304
|
+
exposure?: "codemode" | "codemode-deferred" | "deferred" | "direct" | "hidden" | undefined;
|
|
305
|
+
toolExposure?: Record<string, "codemode" | "codemode-deferred" | "deferred" | "direct" | "hidden"> | undefined;
|
|
306
|
+
type?: "stdio" | undefined;
|
|
307
|
+
command: string;
|
|
303
308
|
args?: string[] | undefined;
|
|
304
309
|
env?: Record<string, string> | undefined;
|
|
305
310
|
cwd?: string | undefined;
|
|
311
|
+
} | {
|
|
306
312
|
enabled?: boolean | undefined;
|
|
307
313
|
timeout?: number | undefined;
|
|
308
|
-
toolExposure?: Record<string, "hidden" | "deferred" | "direct" | "codemode" | "codemode-deferred"> | undefined;
|
|
309
|
-
command: string;
|
|
310
|
-
} | {
|
|
311
|
-
type?: "http" | "streamable-http" | undefined;
|
|
312
314
|
description?: string | undefined;
|
|
315
|
+
exposure?: "codemode" | "codemode-deferred" | "deferred" | "direct" | "hidden" | undefined;
|
|
316
|
+
toolExposure?: Record<string, "codemode" | "codemode-deferred" | "deferred" | "direct" | "hidden"> | undefined;
|
|
317
|
+
type?: "http" | "streamable-http" | undefined;
|
|
318
|
+
url: string;
|
|
319
|
+
headers?: Record<string, string> | undefined;
|
|
313
320
|
oauth?: {
|
|
314
|
-
scope?: string | undefined;
|
|
315
321
|
clientId?: string | undefined;
|
|
316
322
|
clientSecret?: string | undefined;
|
|
317
323
|
callbackPort?: number | undefined;
|
|
318
324
|
callbackUrl?: string | undefined;
|
|
319
325
|
clientName?: string | undefined;
|
|
326
|
+
scope?: string | undefined;
|
|
320
327
|
authServerMetadataUrl?: string | undefined;
|
|
321
328
|
} | undefined;
|
|
322
|
-
exposure?: "hidden" | "deferred" | "direct" | "codemode" | "codemode-deferred" | undefined;
|
|
323
|
-
headers?: Record<string, string> | undefined;
|
|
324
|
-
enabled?: boolean | undefined;
|
|
325
|
-
timeout?: number | undefined;
|
|
326
|
-
toolExposure?: Record<string, "hidden" | "deferred" | "direct" | "codemode" | "codemode-deferred"> | undefined;
|
|
327
|
-
url: string;
|
|
328
329
|
};
|
|
330
|
+
scope: "project" | "user";
|
|
329
331
|
}>;
|
|
330
332
|
readonly output: import("../../schema.ts").Schema<{
|
|
331
333
|
readonly kind: "updated";
|
|
332
334
|
} | {
|
|
333
335
|
readonly kind: "missing";
|
|
334
336
|
} | {
|
|
335
|
-
readonly message: string;
|
|
336
337
|
readonly kind: "invalid";
|
|
338
|
+
readonly message: string;
|
|
337
339
|
}>;
|
|
338
|
-
readonly authority: "owner";
|
|
339
|
-
readonly scope: "workspace";
|
|
340
340
|
};
|
|
341
341
|
readonly "mcp.remove": {
|
|
342
|
+
readonly authority: "owner";
|
|
343
|
+
readonly scope: "workspace";
|
|
342
344
|
readonly kind: "command";
|
|
343
345
|
readonly input: import("../../schema.ts").Schema<{
|
|
344
346
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
345
|
-
scope: "user" | "project";
|
|
346
347
|
server: string;
|
|
348
|
+
scope: "project" | "user";
|
|
347
349
|
}>;
|
|
348
350
|
readonly output: import("../../schema.ts").Schema<{
|
|
349
351
|
readonly kind: "updated";
|
|
350
352
|
} | {
|
|
351
353
|
readonly kind: "missing";
|
|
352
354
|
} | {
|
|
353
|
-
readonly message: string;
|
|
354
355
|
readonly kind: "invalid";
|
|
356
|
+
readonly message: string;
|
|
355
357
|
}>;
|
|
356
|
-
readonly authority: "owner";
|
|
357
|
-
readonly scope: "workspace";
|
|
358
358
|
};
|
|
359
359
|
readonly "workspace.update": {
|
|
360
|
+
readonly authority: "owner";
|
|
361
|
+
readonly scope: "workspace";
|
|
360
362
|
readonly kind: "command";
|
|
361
363
|
readonly input: import("../../schema.ts").Schema<{
|
|
362
364
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -369,10 +371,10 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
369
371
|
} | {
|
|
370
372
|
kind: "missing";
|
|
371
373
|
}>;
|
|
372
|
-
readonly authority: "owner";
|
|
373
|
-
readonly scope: "workspace";
|
|
374
374
|
};
|
|
375
375
|
readonly "workspace.reload": {
|
|
376
|
+
readonly authority: "owner";
|
|
377
|
+
readonly scope: "workspace";
|
|
376
378
|
readonly kind: "command";
|
|
377
379
|
readonly input: import("../../schema.ts").Schema<{
|
|
378
380
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -382,102 +384,102 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
382
384
|
} | {
|
|
383
385
|
kind: "missing";
|
|
384
386
|
}>;
|
|
385
|
-
readonly authority: "owner";
|
|
386
|
-
readonly scope: "workspace";
|
|
387
387
|
};
|
|
388
388
|
readonly "workspace.changes": {
|
|
389
|
+
readonly authority: "participant";
|
|
390
|
+
readonly scope: "workspace";
|
|
389
391
|
readonly kind: "query";
|
|
390
392
|
readonly input: import("../../schema.ts").Schema<{
|
|
391
393
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
392
394
|
source: {
|
|
393
|
-
run: import("../../ids.ts").Id<"run">;
|
|
394
395
|
kind: "run";
|
|
396
|
+
run: import("../../ids.ts").Id<"run">;
|
|
395
397
|
} | {
|
|
396
|
-
session: import("../../ids.ts").Id<"session">;
|
|
397
398
|
kind: "session";
|
|
399
|
+
session: import("../../ids.ts").Id<"session">;
|
|
398
400
|
};
|
|
399
401
|
}>;
|
|
400
402
|
readonly output: import("../../schema.ts").Schema<{
|
|
401
|
-
readonly revision: import("../../ids.ts").Id<"
|
|
403
|
+
readonly revision: import("../../ids.ts").Id<"git-revision"> | import("../../ids.ts").Id<"snapshot">;
|
|
402
404
|
readonly files: readonly {
|
|
403
|
-
readonly from?: string | undefined;
|
|
404
405
|
readonly path: string;
|
|
405
|
-
readonly status: "added" | "
|
|
406
|
+
readonly status: "added" | "conflicted" | "deleted" | "modified" | "renamed" | "untracked";
|
|
406
407
|
readonly stat: {
|
|
407
408
|
readonly kind: "text";
|
|
408
|
-
readonly removed: number;
|
|
409
409
|
readonly added: number;
|
|
410
|
+
readonly removed: number;
|
|
410
411
|
} | {
|
|
411
412
|
readonly kind: "binary";
|
|
412
413
|
} | {
|
|
413
414
|
readonly kind: "unknown";
|
|
414
415
|
};
|
|
416
|
+
readonly from?: string | undefined;
|
|
415
417
|
}[];
|
|
416
418
|
}>;
|
|
417
|
-
readonly authority: "participant";
|
|
418
|
-
readonly scope: "workspace";
|
|
419
419
|
};
|
|
420
420
|
readonly "workspace.patches": {
|
|
421
|
+
readonly authority: "participant";
|
|
422
|
+
readonly scope: "workspace";
|
|
421
423
|
readonly kind: "stream";
|
|
422
424
|
readonly input: import("../../schema.ts").Schema<{
|
|
423
|
-
options?: {
|
|
424
|
-
ignoreWhitespace?: boolean | undefined;
|
|
425
|
-
} | undefined;
|
|
426
425
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
427
426
|
source: {
|
|
428
|
-
run: import("../../ids.ts").Id<"run">;
|
|
429
427
|
kind: "run";
|
|
428
|
+
run: import("../../ids.ts").Id<"run">;
|
|
430
429
|
} | {
|
|
431
|
-
session: import("../../ids.ts").Id<"session">;
|
|
432
430
|
kind: "session";
|
|
431
|
+
session: import("../../ids.ts").Id<"session">;
|
|
433
432
|
};
|
|
434
433
|
paths: string[];
|
|
434
|
+
options?: {
|
|
435
|
+
ignoreWhitespace?: boolean | undefined;
|
|
436
|
+
} | undefined;
|
|
435
437
|
}>;
|
|
436
438
|
readonly output: import("../../schema.ts").Schema<{
|
|
439
|
+
readonly revision: import("../../ids.ts").Id<"git-revision"> | import("../../ids.ts").Id<"snapshot">;
|
|
437
440
|
readonly entries: {
|
|
438
441
|
readonly [x: string]: {
|
|
439
|
-
readonly kind: "text";
|
|
440
442
|
readonly path: string;
|
|
441
|
-
readonly
|
|
443
|
+
readonly status: "added" | "conflicted" | "deleted" | "modified" | "renamed" | "untracked";
|
|
444
|
+
readonly digest: string;
|
|
445
|
+
readonly kind: "text";
|
|
442
446
|
readonly added: number;
|
|
443
|
-
readonly
|
|
447
|
+
readonly removed: number;
|
|
444
448
|
readonly patch: string;
|
|
445
|
-
readonly digest: string;
|
|
446
449
|
readonly fresh: boolean;
|
|
447
450
|
} | {
|
|
448
|
-
readonly kind: "binary";
|
|
449
451
|
readonly path: string;
|
|
450
|
-
readonly status: "added" | "
|
|
452
|
+
readonly status: "added" | "conflicted" | "deleted" | "modified" | "renamed" | "untracked";
|
|
451
453
|
readonly digest: string;
|
|
454
|
+
readonly kind: "binary";
|
|
452
455
|
readonly fresh: boolean;
|
|
453
456
|
} | {
|
|
454
|
-
readonly kind: "empty";
|
|
455
457
|
readonly path: string;
|
|
456
|
-
readonly status: "added" | "
|
|
458
|
+
readonly status: "added" | "conflicted" | "deleted" | "modified" | "renamed" | "untracked";
|
|
457
459
|
readonly digest: string;
|
|
460
|
+
readonly kind: "empty";
|
|
458
461
|
readonly fresh: boolean;
|
|
459
462
|
} | {
|
|
460
|
-
readonly kind: "too-large";
|
|
461
|
-
readonly limit: number;
|
|
462
463
|
readonly path: string;
|
|
463
|
-
readonly status: "added" | "
|
|
464
|
+
readonly status: "added" | "conflicted" | "deleted" | "modified" | "renamed" | "untracked";
|
|
464
465
|
readonly digest: string;
|
|
466
|
+
readonly kind: "too-large";
|
|
467
|
+
readonly limit: number;
|
|
465
468
|
readonly fresh: boolean;
|
|
466
469
|
} | {
|
|
467
|
-
readonly kind: "failed";
|
|
468
|
-
readonly reason: string;
|
|
469
470
|
readonly path: string;
|
|
470
|
-
readonly status: "added" | "
|
|
471
|
+
readonly status: "added" | "conflicted" | "deleted" | "modified" | "renamed" | "untracked";
|
|
471
472
|
readonly digest: string;
|
|
473
|
+
readonly kind: "failed";
|
|
474
|
+
readonly reason: string;
|
|
472
475
|
readonly fresh: boolean;
|
|
473
476
|
};
|
|
474
477
|
};
|
|
475
|
-
readonly revision: import("../../ids.ts").Id<"snapshot"> | import("../../ids.ts").Id<"git-revision">;
|
|
476
478
|
}>;
|
|
477
|
-
readonly authority: "participant";
|
|
478
|
-
readonly scope: "workspace";
|
|
479
479
|
};
|
|
480
480
|
readonly "workspace.files": {
|
|
481
|
+
readonly authority: "participant";
|
|
482
|
+
readonly scope: "workspace";
|
|
481
483
|
readonly kind: "query";
|
|
482
484
|
readonly input: import("../../schema.ts").Schema<{
|
|
483
485
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -492,13 +494,13 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
492
494
|
readonly reason: string;
|
|
493
495
|
} | {
|
|
494
496
|
readonly kind: "unavailable";
|
|
495
|
-
readonly reason: string;
|
|
496
497
|
readonly retry: "allowed" | "manual";
|
|
498
|
+
readonly reason: string;
|
|
497
499
|
}>;
|
|
498
|
-
readonly authority: "participant";
|
|
499
|
-
readonly scope: "workspace";
|
|
500
500
|
};
|
|
501
501
|
readonly "workspace.git": {
|
|
502
|
+
readonly authority: "participant";
|
|
503
|
+
readonly scope: "workspace";
|
|
502
504
|
readonly kind: "query";
|
|
503
505
|
readonly input: import("../../schema.ts").Schema<{
|
|
504
506
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -513,13 +515,13 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
513
515
|
readonly reason: string;
|
|
514
516
|
} | {
|
|
515
517
|
readonly kind: "unavailable";
|
|
516
|
-
readonly reason: string;
|
|
517
518
|
readonly retry: "allowed" | "manual";
|
|
519
|
+
readonly reason: string;
|
|
518
520
|
}>;
|
|
519
|
-
readonly authority: "participant";
|
|
520
|
-
readonly scope: "workspace";
|
|
521
521
|
};
|
|
522
522
|
readonly "workspace.github": {
|
|
523
|
+
readonly authority: "participant";
|
|
524
|
+
readonly scope: "workspace";
|
|
523
525
|
readonly kind: "query";
|
|
524
526
|
readonly input: import("../../schema.ts").Schema<{
|
|
525
527
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -534,13 +536,13 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
534
536
|
readonly reason: string;
|
|
535
537
|
} | {
|
|
536
538
|
readonly kind: "unavailable";
|
|
537
|
-
readonly reason: string;
|
|
538
539
|
readonly retry: "allowed" | "manual";
|
|
540
|
+
readonly reason: string;
|
|
539
541
|
}>;
|
|
540
|
-
readonly authority: "participant";
|
|
541
|
-
readonly scope: "workspace";
|
|
542
542
|
};
|
|
543
543
|
readonly "workspace.browser": {
|
|
544
|
+
readonly authority: "participant";
|
|
545
|
+
readonly scope: "workspace";
|
|
544
546
|
readonly kind: "query";
|
|
545
547
|
readonly input: import("../../schema.ts").Schema<{
|
|
546
548
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -555,225 +557,225 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
555
557
|
readonly reason: string;
|
|
556
558
|
} | {
|
|
557
559
|
readonly kind: "unavailable";
|
|
558
|
-
readonly reason: string;
|
|
559
560
|
readonly retry: "allowed" | "manual";
|
|
561
|
+
readonly reason: string;
|
|
560
562
|
}>;
|
|
561
|
-
readonly authority: "participant";
|
|
562
|
-
readonly scope: "workspace";
|
|
563
563
|
};
|
|
564
564
|
readonly "jobs.start": {
|
|
565
|
+
readonly authority: "participant";
|
|
566
|
+
readonly scope: "workspace";
|
|
565
567
|
readonly kind: "command";
|
|
566
568
|
readonly recovery: "replay";
|
|
567
569
|
readonly input: import("../../schema.ts").Schema<{
|
|
570
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
571
|
+
command?: string | undefined;
|
|
568
572
|
session?: import("../../ids.ts").Id<"session"> | undefined;
|
|
569
|
-
id?: import("../../ids.ts").Id<"job"> | undefined;
|
|
570
573
|
title?: string | undefined;
|
|
571
|
-
command?: string | undefined;
|
|
572
574
|
pty?: {
|
|
573
575
|
columns: number;
|
|
574
576
|
rows: number;
|
|
575
577
|
} | undefined;
|
|
576
|
-
|
|
578
|
+
id?: import("../../ids.ts").Id<"job"> | undefined;
|
|
577
579
|
}>;
|
|
578
580
|
readonly output: import("../../schema.ts").Schema<{
|
|
579
|
-
key: import("../../ids.ts").Id<"job-key"> | null;
|
|
580
|
-
session: import("../../ids.ts").Id<"session"> | null;
|
|
581
581
|
id: import("../../ids.ts").Id<"job">;
|
|
582
|
+
command: string;
|
|
582
583
|
title: string;
|
|
584
|
+
session: import("../../ids.ts").Id<"session"> | null;
|
|
585
|
+
pty: {
|
|
586
|
+
columns: number;
|
|
587
|
+
rows: number;
|
|
588
|
+
shell: string;
|
|
589
|
+
} | null;
|
|
583
590
|
state: {
|
|
584
|
-
kind: "running";
|
|
585
|
-
} | {
|
|
586
591
|
kind: "exited";
|
|
587
|
-
reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
588
592
|
code: number | null;
|
|
593
|
+
reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
589
594
|
} | {
|
|
590
595
|
kind: "lost";
|
|
596
|
+
} | {
|
|
597
|
+
kind: "running";
|
|
591
598
|
};
|
|
592
|
-
command: string;
|
|
593
|
-
pty: {
|
|
594
|
-
shell: string;
|
|
595
|
-
columns: number;
|
|
596
|
-
rows: number;
|
|
597
|
-
} | null;
|
|
598
599
|
startedAt: number;
|
|
599
600
|
endedAt: number | null;
|
|
600
601
|
tail: string;
|
|
602
|
+
key: import("../../ids.ts").Id<"job-key"> | null;
|
|
601
603
|
}>;
|
|
602
|
-
readonly authority: "participant";
|
|
603
|
-
readonly scope: "workspace";
|
|
604
604
|
};
|
|
605
605
|
readonly "jobs.recover": {
|
|
606
|
+
readonly authority: "participant";
|
|
607
|
+
readonly scope: "workspace";
|
|
606
608
|
readonly kind: "command";
|
|
607
609
|
readonly input: import("../../schema.ts").Schema<{
|
|
608
|
-
key: import("../../ids.ts").Id<"job-key">;
|
|
609
610
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
611
|
+
key: import("../../ids.ts").Id<"job-key">;
|
|
610
612
|
}>;
|
|
611
613
|
readonly output: import("../../schema.ts").Schema<{
|
|
612
|
-
key: import("../../ids.ts").Id<"job-key"> | null;
|
|
613
|
-
session: import("../../ids.ts").Id<"session"> | null;
|
|
614
614
|
id: import("../../ids.ts").Id<"job">;
|
|
615
|
+
command: string;
|
|
615
616
|
title: string;
|
|
617
|
+
session: import("../../ids.ts").Id<"session"> | null;
|
|
618
|
+
pty: {
|
|
619
|
+
columns: number;
|
|
620
|
+
rows: number;
|
|
621
|
+
shell: string;
|
|
622
|
+
} | null;
|
|
616
623
|
state: {
|
|
617
|
-
kind: "running";
|
|
618
|
-
} | {
|
|
619
624
|
kind: "exited";
|
|
620
|
-
reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
621
625
|
code: number | null;
|
|
626
|
+
reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
622
627
|
} | {
|
|
623
628
|
kind: "lost";
|
|
629
|
+
} | {
|
|
630
|
+
kind: "running";
|
|
624
631
|
};
|
|
625
|
-
command: string;
|
|
626
|
-
pty: {
|
|
627
|
-
shell: string;
|
|
628
|
-
columns: number;
|
|
629
|
-
rows: number;
|
|
630
|
-
} | null;
|
|
631
632
|
startedAt: number;
|
|
632
633
|
endedAt: number | null;
|
|
633
634
|
tail: string;
|
|
635
|
+
key: import("../../ids.ts").Id<"job-key"> | null;
|
|
634
636
|
} | {
|
|
635
637
|
kind: "ended";
|
|
636
638
|
end: {
|
|
637
639
|
kind: "exited";
|
|
638
|
-
reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
639
640
|
code: number | null;
|
|
641
|
+
reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
640
642
|
} | {
|
|
641
643
|
kind: "lost";
|
|
642
644
|
};
|
|
643
645
|
} | {
|
|
644
646
|
kind: "missing";
|
|
645
647
|
}>;
|
|
646
|
-
readonly authority: "participant";
|
|
647
|
-
readonly scope: "workspace";
|
|
648
648
|
};
|
|
649
649
|
readonly "jobs.list": {
|
|
650
|
+
readonly authority: "participant";
|
|
651
|
+
readonly scope: "workspace";
|
|
650
652
|
readonly kind: "query";
|
|
651
653
|
readonly input: import("../../schema.ts").Schema<{
|
|
652
654
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
653
655
|
}>;
|
|
654
656
|
readonly output: import("../../schema.ts").Schema<{
|
|
655
|
-
session: import("../../ids.ts").Id<"session"> | null;
|
|
656
657
|
id: import("../../ids.ts").Id<"job">;
|
|
658
|
+
command: string;
|
|
657
659
|
title: string;
|
|
660
|
+
session: import("../../ids.ts").Id<"session"> | null;
|
|
661
|
+
pty: {
|
|
662
|
+
columns: number;
|
|
663
|
+
rows: number;
|
|
664
|
+
shell: string;
|
|
665
|
+
} | null;
|
|
658
666
|
state: {
|
|
659
|
-
kind: "running";
|
|
660
|
-
} | {
|
|
661
667
|
kind: "exited";
|
|
662
|
-
reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
663
668
|
code: number | null;
|
|
669
|
+
reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
664
670
|
} | {
|
|
665
671
|
kind: "lost";
|
|
672
|
+
} | {
|
|
673
|
+
kind: "running";
|
|
666
674
|
};
|
|
667
|
-
command: string;
|
|
668
|
-
pty: {
|
|
669
|
-
shell: string;
|
|
670
|
-
columns: number;
|
|
671
|
-
rows: number;
|
|
672
|
-
} | null;
|
|
673
675
|
startedAt: number;
|
|
674
676
|
endedAt: number | null;
|
|
675
677
|
tail: string;
|
|
676
678
|
}[]>;
|
|
677
|
-
readonly authority: "participant";
|
|
678
|
-
readonly scope: "workspace";
|
|
679
679
|
};
|
|
680
680
|
readonly "jobs.watch": {
|
|
681
|
+
readonly authority: "participant";
|
|
682
|
+
readonly scope: "workspace";
|
|
681
683
|
readonly kind: "watch";
|
|
682
684
|
readonly input: import("../../schema.ts").Schema<{
|
|
683
685
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
684
686
|
}>;
|
|
685
687
|
readonly output: import("../../schema.ts").Schema<{
|
|
686
|
-
kind: "
|
|
687
|
-
|
|
688
|
-
session: import("../../ids.ts").Id<"session"> | null;
|
|
688
|
+
kind: "job";
|
|
689
|
+
job: {
|
|
689
690
|
id: import("../../ids.ts").Id<"job">;
|
|
691
|
+
command: string;
|
|
690
692
|
title: string;
|
|
693
|
+
session: import("../../ids.ts").Id<"session"> | null;
|
|
694
|
+
pty: {
|
|
695
|
+
columns: number;
|
|
696
|
+
rows: number;
|
|
697
|
+
shell: string;
|
|
698
|
+
} | null;
|
|
691
699
|
state: {
|
|
692
|
-
kind: "running";
|
|
693
|
-
} | {
|
|
694
700
|
kind: "exited";
|
|
695
|
-
reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
696
701
|
code: number | null;
|
|
702
|
+
reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
697
703
|
} | {
|
|
698
704
|
kind: "lost";
|
|
705
|
+
} | {
|
|
706
|
+
kind: "running";
|
|
699
707
|
};
|
|
700
|
-
command: string;
|
|
701
|
-
pty: {
|
|
702
|
-
shell: string;
|
|
703
|
-
columns: number;
|
|
704
|
-
rows: number;
|
|
705
|
-
} | null;
|
|
706
708
|
startedAt: number;
|
|
707
709
|
endedAt: number | null;
|
|
708
710
|
tail: string;
|
|
709
|
-
}
|
|
711
|
+
};
|
|
710
712
|
} | {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
+
kind: "forgotten";
|
|
714
|
+
id: import("../../ids.ts").Id<"job">;
|
|
715
|
+
} | {
|
|
716
|
+
kind: "jobs";
|
|
717
|
+
jobs: {
|
|
713
718
|
id: import("../../ids.ts").Id<"job">;
|
|
719
|
+
command: string;
|
|
714
720
|
title: string;
|
|
721
|
+
session: import("../../ids.ts").Id<"session"> | null;
|
|
722
|
+
pty: {
|
|
723
|
+
columns: number;
|
|
724
|
+
rows: number;
|
|
725
|
+
shell: string;
|
|
726
|
+
} | null;
|
|
715
727
|
state: {
|
|
716
|
-
kind: "running";
|
|
717
|
-
} | {
|
|
718
728
|
kind: "exited";
|
|
719
|
-
reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
720
729
|
code: number | null;
|
|
730
|
+
reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
721
731
|
} | {
|
|
722
732
|
kind: "lost";
|
|
733
|
+
} | {
|
|
734
|
+
kind: "running";
|
|
723
735
|
};
|
|
724
|
-
command: string;
|
|
725
|
-
pty: {
|
|
726
|
-
shell: string;
|
|
727
|
-
columns: number;
|
|
728
|
-
rows: number;
|
|
729
|
-
} | null;
|
|
730
736
|
startedAt: number;
|
|
731
737
|
endedAt: number | null;
|
|
732
738
|
tail: string;
|
|
733
|
-
};
|
|
734
|
-
kind: "job";
|
|
735
|
-
} | {
|
|
736
|
-
id: import("../../ids.ts").Id<"job">;
|
|
737
|
-
kind: "forgotten";
|
|
739
|
+
}[];
|
|
738
740
|
}>;
|
|
739
|
-
readonly authority: "participant";
|
|
740
|
-
readonly scope: "workspace";
|
|
741
741
|
};
|
|
742
742
|
readonly "job.write": {
|
|
743
|
+
readonly authority: "participant";
|
|
744
|
+
readonly scope: "workspace";
|
|
743
745
|
readonly kind: "command";
|
|
744
746
|
readonly recovery: "never";
|
|
745
747
|
readonly input: import("../../schema.ts").Schema<{
|
|
746
|
-
job: import("../../ids.ts").Id<"job">;
|
|
747
748
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
749
|
+
job: import("../../ids.ts").Id<"job">;
|
|
748
750
|
}>;
|
|
749
751
|
readonly output: import("../../schema.ts").Schema<null>;
|
|
750
|
-
readonly authority: "participant";
|
|
751
|
-
readonly scope: "workspace";
|
|
752
752
|
};
|
|
753
753
|
readonly "job.output": {
|
|
754
|
+
readonly authority: "participant";
|
|
755
|
+
readonly scope: "workspace";
|
|
754
756
|
readonly kind: "stream";
|
|
755
757
|
readonly input: import("../../schema.ts").Schema<{
|
|
756
|
-
job: import("../../ids.ts").Id<"job">;
|
|
757
758
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
759
|
+
job: import("../../ids.ts").Id<"job">;
|
|
758
760
|
}>;
|
|
759
761
|
readonly output: import("../../schema.ts").Schema<{
|
|
760
|
-
readonly stream?: "stderr" | undefined;
|
|
761
762
|
readonly kind: "bytes";
|
|
762
763
|
readonly data: Uint8Array<ArrayBufferLike>;
|
|
764
|
+
readonly stream?: "stderr" | undefined;
|
|
763
765
|
} | {
|
|
764
766
|
readonly kind: "gap";
|
|
765
767
|
} | {
|
|
766
768
|
readonly kind: "exit";
|
|
767
769
|
readonly code: number | null;
|
|
768
770
|
}>;
|
|
769
|
-
readonly authority: "participant";
|
|
770
|
-
readonly scope: "workspace";
|
|
771
771
|
};
|
|
772
772
|
readonly "job.resize": {
|
|
773
|
+
readonly authority: "participant";
|
|
774
|
+
readonly scope: "workspace";
|
|
773
775
|
readonly kind: "command";
|
|
774
776
|
readonly input: import("../../schema.ts").Schema<{
|
|
775
|
-
job: import("../../ids.ts").Id<"job">;
|
|
776
777
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
778
|
+
job: import("../../ids.ts").Id<"job">;
|
|
777
779
|
size: {
|
|
778
780
|
columns: number;
|
|
779
781
|
rows: number;
|
|
@@ -786,24 +788,24 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
786
788
|
} | {
|
|
787
789
|
kind: "missing";
|
|
788
790
|
}>;
|
|
789
|
-
readonly authority: "participant";
|
|
790
|
-
readonly scope: "workspace";
|
|
791
791
|
};
|
|
792
792
|
readonly "job.idle": {
|
|
793
|
+
readonly authority: "participant";
|
|
794
|
+
readonly scope: "workspace";
|
|
793
795
|
readonly kind: "query";
|
|
794
796
|
readonly input: import("../../schema.ts").Schema<{
|
|
795
|
-
job: import("../../ids.ts").Id<"job">;
|
|
796
797
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
798
|
+
job: import("../../ids.ts").Id<"job">;
|
|
797
799
|
}>;
|
|
798
800
|
readonly output: import("../../schema.ts").Schema<boolean>;
|
|
799
|
-
readonly authority: "participant";
|
|
800
|
-
readonly scope: "workspace";
|
|
801
801
|
};
|
|
802
802
|
readonly "job.stop": {
|
|
803
|
+
readonly authority: "participant";
|
|
804
|
+
readonly scope: "workspace";
|
|
803
805
|
readonly kind: "command";
|
|
804
806
|
readonly input: import("../../schema.ts").Schema<{
|
|
805
|
-
job: import("../../ids.ts").Id<"job">;
|
|
806
807
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
808
|
+
job: import("../../ids.ts").Id<"job">;
|
|
807
809
|
}>;
|
|
808
810
|
readonly output: import("../../schema.ts").Schema<{
|
|
809
811
|
kind: "requested";
|
|
@@ -811,32 +813,30 @@ export declare const WORKSPACE_OPERATIONS: {
|
|
|
811
813
|
kind: "settled";
|
|
812
814
|
outcome: {
|
|
813
815
|
kind: "exited";
|
|
814
|
-
reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
815
816
|
code: number | null;
|
|
817
|
+
reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
816
818
|
} | {
|
|
817
819
|
kind: "lost";
|
|
818
820
|
};
|
|
819
821
|
} | {
|
|
820
822
|
kind: "missing";
|
|
821
823
|
}>;
|
|
822
|
-
readonly authority: "participant";
|
|
823
|
-
readonly scope: "workspace";
|
|
824
824
|
};
|
|
825
825
|
readonly "job.settled": {
|
|
826
|
+
readonly authority: "participant";
|
|
827
|
+
readonly scope: "workspace";
|
|
826
828
|
readonly kind: "query";
|
|
827
829
|
readonly wait: true;
|
|
828
830
|
readonly input: import("../../schema.ts").Schema<{
|
|
829
|
-
job: import("../../ids.ts").Id<"job">;
|
|
830
831
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
832
|
+
job: import("../../ids.ts").Id<"job">;
|
|
831
833
|
}>;
|
|
832
834
|
readonly output: import("../../schema.ts").Schema<{
|
|
833
835
|
readonly kind: "exited";
|
|
834
|
-
readonly reason: "exited" | "terminated" | "expired" | "host-lost";
|
|
835
836
|
readonly code: number | null;
|
|
837
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
836
838
|
} | {
|
|
837
839
|
readonly kind: "lost";
|
|
838
840
|
}>;
|
|
839
|
-
readonly authority: "participant";
|
|
840
|
-
readonly scope: "workspace";
|
|
841
841
|
};
|
|
842
842
|
};
|