@nyte-ai/schema 0.0.23 → 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/THIRD-PARTY-NOTICES.md +2 -38
- 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,8 +1,11 @@
|
|
|
1
1
|
export declare const HOST_OPERATIONS: {
|
|
2
2
|
readonly "connection.watch": {
|
|
3
|
+
readonly authority: "participant";
|
|
4
|
+
readonly scope: "host";
|
|
3
5
|
readonly kind: "watch";
|
|
4
6
|
readonly input: import("../../schema.ts").Schema<object>;
|
|
5
7
|
readonly output: import("../../schema.ts").Schema<{
|
|
8
|
+
readonly id: import("../../ids.ts").Id<"host">;
|
|
6
9
|
readonly link: {
|
|
7
10
|
readonly kind: "connected";
|
|
8
11
|
} | {
|
|
@@ -11,127 +14,126 @@ export declare const HOST_OPERATIONS: {
|
|
|
11
14
|
readonly attempts: number;
|
|
12
15
|
} | {
|
|
13
16
|
readonly kind: "closed";
|
|
14
|
-
readonly reason: "client" | "
|
|
17
|
+
readonly reason: "client" | "host-gone" | "revoked";
|
|
15
18
|
};
|
|
16
19
|
readonly name: string;
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
20
|
+
readonly platform: string;
|
|
21
|
+
readonly version: string;
|
|
22
|
+
readonly catalog: import("../../ids.ts").Id<"catalog-generation">;
|
|
23
|
+
readonly plugins: readonly {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly source: "builtin" | "inline" | "project" | "user";
|
|
26
|
+
readonly path: string | null;
|
|
27
|
+
readonly issues: readonly {
|
|
28
|
+
readonly severity: "error" | "warning";
|
|
29
|
+
readonly path: readonly (string | number)[];
|
|
30
|
+
readonly message: string;
|
|
31
|
+
readonly source?: {
|
|
32
|
+
readonly plugin: string;
|
|
33
|
+
readonly file?: string | undefined;
|
|
34
|
+
readonly line?: number | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
}[];
|
|
19
38
|
readonly settings: readonly {
|
|
20
|
-
readonly value: import("../../json.ts").Json;
|
|
21
39
|
readonly id: string;
|
|
22
|
-
readonly label: string;
|
|
23
40
|
readonly owner: string;
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
41
|
+
readonly scope: "host" | "session";
|
|
42
|
+
readonly label: string;
|
|
26
43
|
readonly schema: {
|
|
27
44
|
readonly [x: string]: import("../../json.ts").Json;
|
|
28
45
|
};
|
|
29
46
|
readonly choices: readonly {
|
|
30
|
-
readonly badge?: string | undefined;
|
|
31
47
|
readonly value: import("../../json.ts").Json;
|
|
32
48
|
readonly label: string;
|
|
49
|
+
readonly badge?: string | undefined;
|
|
33
50
|
}[] | null;
|
|
51
|
+
readonly value: import("../../json.ts").Json;
|
|
52
|
+
readonly from: "default" | "host" | "session";
|
|
34
53
|
}[];
|
|
35
|
-
readonly authority: readonly ("participant" | "owner" | "maintenance")[];
|
|
36
|
-
readonly plugins: readonly {
|
|
37
|
-
readonly issues: readonly {
|
|
38
|
-
readonly source?: {
|
|
39
|
-
readonly file?: string | undefined;
|
|
40
|
-
readonly line?: number | undefined;
|
|
41
|
-
readonly plugin: string;
|
|
42
|
-
} | undefined;
|
|
43
|
-
readonly message: string;
|
|
44
|
-
readonly severity: "error" | "warning";
|
|
45
|
-
readonly path: readonly (string | number)[];
|
|
46
|
-
}[];
|
|
47
|
-
readonly id: string;
|
|
48
|
-
readonly path: string | null;
|
|
49
|
-
readonly source: "user" | "builtin" | "project" | "inline";
|
|
50
|
-
}[];
|
|
51
|
-
readonly platform: string;
|
|
52
|
-
readonly version: string;
|
|
53
|
-
readonly catalog: import("../../ids.ts").Id<"catalog-generation">;
|
|
54
54
|
readonly defaultWorkspace: import("../../ids.ts").Id<"workspace"> | null;
|
|
55
|
+
readonly authority: readonly ("maintenance" | "owner" | "participant")[];
|
|
56
|
+
readonly principal: import("../../ids.ts").Id<"principal">;
|
|
55
57
|
}>;
|
|
56
|
-
readonly authority: "participant";
|
|
57
|
-
readonly scope: "host";
|
|
58
58
|
};
|
|
59
59
|
readonly "connection.blob": {
|
|
60
|
+
readonly authority: "participant";
|
|
61
|
+
readonly scope: "host";
|
|
60
62
|
readonly kind: "stream";
|
|
61
63
|
readonly input: import("../../schema.ts").Schema<{
|
|
62
64
|
id: import("../../ids.ts").Id<"blob">;
|
|
63
65
|
}>;
|
|
64
66
|
readonly output: import("../../schema.ts").Schema<Uint8Array<ArrayBufferLike>>;
|
|
65
|
-
readonly authority: "participant";
|
|
66
|
-
readonly scope: "host";
|
|
67
67
|
};
|
|
68
68
|
readonly "models.list": {
|
|
69
|
+
readonly authority: "participant";
|
|
70
|
+
readonly scope: "host";
|
|
69
71
|
readonly kind: "query";
|
|
70
72
|
readonly input: import("../../schema.ts").Schema<object>;
|
|
71
73
|
readonly output: import("../../schema.ts").Schema<{
|
|
72
74
|
readonly generation: import("../../ids.ts").Id<"catalog-generation">;
|
|
73
75
|
readonly default: {
|
|
74
|
-
readonly id: string;
|
|
75
76
|
readonly provider: string;
|
|
77
|
+
readonly id: string;
|
|
76
78
|
} | null;
|
|
77
79
|
readonly providers: readonly {
|
|
78
|
-
readonly name: string;
|
|
79
80
|
readonly id: string;
|
|
81
|
+
readonly name: string;
|
|
82
|
+
readonly credential: "configured" | "failed" | "missing" | "unknown" | "verified";
|
|
83
|
+
readonly methods: readonly ({
|
|
84
|
+
readonly kind: "oauth";
|
|
85
|
+
} | {
|
|
86
|
+
readonly kind: "key";
|
|
87
|
+
})[];
|
|
80
88
|
readonly limits: readonly {
|
|
81
89
|
readonly label: string;
|
|
82
90
|
readonly used: number;
|
|
83
91
|
readonly limit: number;
|
|
84
92
|
readonly resetsAt: number | null;
|
|
85
93
|
}[];
|
|
86
|
-
readonly credential: "failed" | "unknown" | "missing" | "configured" | "verified";
|
|
87
|
-
readonly methods: readonly ({
|
|
88
|
-
readonly kind: "oauth";
|
|
89
|
-
} | {
|
|
90
|
-
readonly kind: "key";
|
|
91
|
-
})[];
|
|
92
94
|
readonly models: readonly {
|
|
93
|
-
readonly name: string;
|
|
94
95
|
readonly ref: {
|
|
95
|
-
readonly id: string;
|
|
96
96
|
readonly provider: string;
|
|
97
|
+
readonly id: string;
|
|
97
98
|
};
|
|
98
|
-
readonly
|
|
99
|
+
readonly name: string;
|
|
99
100
|
readonly reasoning: boolean;
|
|
100
|
-
readonly
|
|
101
|
-
|
|
102
|
-
readonly input: number;
|
|
103
|
-
readonly cacheRead: number;
|
|
104
|
-
readonly cacheWrite: number;
|
|
105
|
-
};
|
|
106
|
-
readonly thinking: readonly ("off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
|
|
107
|
-
readonly defaultThinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
101
|
+
readonly thinking: readonly ("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[];
|
|
102
|
+
readonly defaultThinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
108
103
|
readonly fast: {
|
|
109
|
-
readonly id: string;
|
|
110
104
|
readonly provider: string;
|
|
105
|
+
readonly id: string;
|
|
111
106
|
} | null;
|
|
112
107
|
readonly contextWindow: number;
|
|
113
108
|
readonly compactAt: number;
|
|
114
109
|
readonly maxOutput: number;
|
|
110
|
+
readonly input: readonly ("image" | "text")[];
|
|
115
111
|
readonly capabilities: {
|
|
116
112
|
readonly steer: boolean;
|
|
117
113
|
};
|
|
114
|
+
readonly cost: {
|
|
115
|
+
readonly input: number;
|
|
116
|
+
readonly output: number;
|
|
117
|
+
readonly cacheRead: number;
|
|
118
|
+
readonly cacheWrite: number;
|
|
119
|
+
};
|
|
118
120
|
}[];
|
|
119
121
|
readonly listings: {
|
|
120
|
-
readonly [x: string]: "
|
|
122
|
+
readonly [x: string]: "favorite" | "hidden";
|
|
121
123
|
};
|
|
122
124
|
}[];
|
|
123
125
|
}>;
|
|
124
|
-
readonly authority: "participant";
|
|
125
|
-
readonly scope: "host";
|
|
126
126
|
};
|
|
127
127
|
readonly "models.accounts": {
|
|
128
|
+
readonly authority: "owner";
|
|
129
|
+
readonly scope: "host";
|
|
128
130
|
readonly kind: "query";
|
|
129
131
|
readonly input: import("../../schema.ts").Schema<{
|
|
130
132
|
provider?: string | undefined;
|
|
131
133
|
}>;
|
|
132
134
|
readonly output: import("../../schema.ts").Schema<{
|
|
133
|
-
id: string;
|
|
134
135
|
provider: string;
|
|
136
|
+
id: string;
|
|
135
137
|
label: string;
|
|
136
138
|
method: {
|
|
137
139
|
kind: "oauth";
|
|
@@ -140,28 +142,28 @@ export declare const HOST_OPERATIONS: {
|
|
|
140
142
|
};
|
|
141
143
|
active: boolean;
|
|
142
144
|
}[]>;
|
|
143
|
-
readonly authority: "owner";
|
|
144
|
-
readonly scope: "host";
|
|
145
145
|
};
|
|
146
146
|
readonly "models.selectAccount": {
|
|
147
|
+
readonly authority: "owner";
|
|
148
|
+
readonly scope: "host";
|
|
147
149
|
readonly kind: "command";
|
|
148
150
|
readonly input: import("../../schema.ts").Schema<{
|
|
149
151
|
provider: string;
|
|
150
152
|
account: string;
|
|
151
153
|
}>;
|
|
152
154
|
readonly output: import("../../schema.ts").Schema<null>;
|
|
153
|
-
readonly authority: "owner";
|
|
154
|
-
readonly scope: "host";
|
|
155
155
|
};
|
|
156
156
|
readonly "models.usage": {
|
|
157
|
+
readonly authority: "owner";
|
|
158
|
+
readonly scope: "host";
|
|
157
159
|
readonly kind: "query";
|
|
158
160
|
readonly input: import("../../schema.ts").Schema<object>;
|
|
159
161
|
readonly output: import("../../schema.ts").Schema<{
|
|
160
|
-
name: string;
|
|
161
162
|
provider: string;
|
|
163
|
+
name: string;
|
|
162
164
|
account: {
|
|
163
|
-
id: string;
|
|
164
165
|
provider: string;
|
|
166
|
+
id: string;
|
|
165
167
|
label: string;
|
|
166
168
|
method: {
|
|
167
169
|
kind: "oauth";
|
|
@@ -171,9 +173,7 @@ export declare const HOST_OPERATIONS: {
|
|
|
171
173
|
active: boolean;
|
|
172
174
|
} | null;
|
|
173
175
|
state: {
|
|
174
|
-
error: string | null;
|
|
175
176
|
kind: "ready";
|
|
176
|
-
stale: boolean;
|
|
177
177
|
limits: {
|
|
178
178
|
label: string;
|
|
179
179
|
used: number;
|
|
@@ -181,30 +181,32 @@ export declare const HOST_OPERATIONS: {
|
|
|
181
181
|
resetsAt: number | null;
|
|
182
182
|
}[];
|
|
183
183
|
observedAt: number;
|
|
184
|
+
stale: boolean;
|
|
185
|
+
error: string | null;
|
|
184
186
|
} | {
|
|
185
|
-
message: string;
|
|
186
187
|
kind: "unavailable";
|
|
187
|
-
reason: "
|
|
188
|
+
reason: "failed" | "unconfigured" | "unsupported";
|
|
189
|
+
message: string;
|
|
188
190
|
};
|
|
189
191
|
}[]>;
|
|
190
|
-
readonly authority: "owner";
|
|
191
|
-
readonly scope: "host";
|
|
192
192
|
};
|
|
193
193
|
readonly "models.refresh": {
|
|
194
|
+
readonly authority: "owner";
|
|
195
|
+
readonly scope: "host";
|
|
194
196
|
readonly kind: "command";
|
|
195
197
|
readonly input: import("../../schema.ts").Schema<{
|
|
196
198
|
provider?: string | undefined;
|
|
197
199
|
}>;
|
|
198
200
|
readonly output: import("../../schema.ts").Schema<null>;
|
|
199
|
-
readonly authority: "owner";
|
|
200
|
-
readonly scope: "host";
|
|
201
201
|
};
|
|
202
202
|
readonly "models.setDefault": {
|
|
203
|
+
readonly authority: "owner";
|
|
204
|
+
readonly scope: "host";
|
|
203
205
|
readonly kind: "command";
|
|
204
206
|
readonly input: import("../../schema.ts").Schema<{
|
|
205
207
|
ref: {
|
|
206
|
-
id: string;
|
|
207
208
|
provider: string;
|
|
209
|
+
id: string;
|
|
208
210
|
};
|
|
209
211
|
}>;
|
|
210
212
|
readonly output: import("../../schema.ts").Schema<{
|
|
@@ -212,27 +214,27 @@ export declare const HOST_OPERATIONS: {
|
|
|
212
214
|
} | {
|
|
213
215
|
kind: "unknown-model";
|
|
214
216
|
}>;
|
|
215
|
-
readonly authority: "owner";
|
|
216
|
-
readonly scope: "host";
|
|
217
217
|
};
|
|
218
218
|
readonly "models.setListing": {
|
|
219
|
+
readonly authority: "owner";
|
|
220
|
+
readonly scope: "host";
|
|
219
221
|
readonly kind: "command";
|
|
220
222
|
readonly input: import("../../schema.ts").Schema<{
|
|
221
223
|
refs: {
|
|
222
|
-
id: string;
|
|
223
224
|
provider: string;
|
|
225
|
+
id: string;
|
|
224
226
|
}[];
|
|
225
|
-
listing: "
|
|
227
|
+
listing: "favorite" | "hidden" | "shown";
|
|
226
228
|
}>;
|
|
227
229
|
readonly output: import("../../schema.ts").Schema<{
|
|
228
230
|
kind: "set";
|
|
229
231
|
} | {
|
|
230
232
|
kind: "unknown-model";
|
|
231
233
|
}>;
|
|
232
|
-
readonly authority: "owner";
|
|
233
|
-
readonly scope: "host";
|
|
234
234
|
};
|
|
235
235
|
readonly "models.verify": {
|
|
236
|
+
readonly authority: "owner";
|
|
237
|
+
readonly scope: "host";
|
|
236
238
|
readonly kind: "command";
|
|
237
239
|
readonly input: import("../../schema.ts").Schema<{
|
|
238
240
|
provider: string;
|
|
@@ -245,50 +247,50 @@ export declare const HOST_OPERATIONS: {
|
|
|
245
247
|
kind: "failed";
|
|
246
248
|
reason: string;
|
|
247
249
|
}>;
|
|
248
|
-
readonly authority: "owner";
|
|
249
|
-
readonly scope: "host";
|
|
250
250
|
};
|
|
251
251
|
readonly "models.login": {
|
|
252
|
+
readonly authority: "owner";
|
|
253
|
+
readonly scope: "host";
|
|
252
254
|
readonly kind: "command";
|
|
253
255
|
readonly input: import("../../schema.ts").Schema<{
|
|
254
|
-
label?: string | undefined;
|
|
255
|
-
browser?: "host" | "elsewhere" | undefined;
|
|
256
256
|
provider: string;
|
|
257
257
|
method: {
|
|
258
258
|
kind: "oauth";
|
|
259
259
|
} | {
|
|
260
260
|
kind: "key";
|
|
261
261
|
};
|
|
262
|
+
label?: string | undefined;
|
|
263
|
+
browser?: "elsewhere" | "host" | undefined;
|
|
262
264
|
}>;
|
|
263
265
|
readonly output: import("../../schema.ts").Schema<null>;
|
|
264
|
-
readonly authority: "owner";
|
|
265
|
-
readonly scope: "host";
|
|
266
266
|
};
|
|
267
267
|
readonly "models.logout": {
|
|
268
|
+
readonly authority: "owner";
|
|
269
|
+
readonly scope: "host";
|
|
268
270
|
readonly kind: "command";
|
|
269
271
|
readonly input: import("../../schema.ts").Schema<{
|
|
270
272
|
provider: string;
|
|
271
273
|
}>;
|
|
272
274
|
readonly output: import("../../schema.ts").Schema<null>;
|
|
273
|
-
readonly authority: "owner";
|
|
274
|
-
readonly scope: "host";
|
|
275
275
|
};
|
|
276
276
|
readonly "login.steps": {
|
|
277
|
+
readonly authority: "owner";
|
|
278
|
+
readonly scope: "host";
|
|
277
279
|
readonly kind: "stream";
|
|
278
280
|
readonly input: import("../../schema.ts").Schema<{
|
|
279
281
|
provider: string;
|
|
280
282
|
}>;
|
|
281
283
|
readonly output: import("../../schema.ts").Schema<{
|
|
282
|
-
code?: string | undefined;
|
|
283
|
-
url: string;
|
|
284
284
|
kind: "open";
|
|
285
|
+
url: string;
|
|
286
|
+
code?: string | undefined;
|
|
285
287
|
} | {
|
|
286
|
-
message: string;
|
|
287
288
|
kind: "paste";
|
|
289
|
+
message: string;
|
|
288
290
|
secret: boolean;
|
|
289
291
|
} | {
|
|
290
|
-
message: string;
|
|
291
292
|
kind: "choose";
|
|
293
|
+
message: string;
|
|
292
294
|
options: {
|
|
293
295
|
id: string;
|
|
294
296
|
label: string;
|
|
@@ -301,52 +303,50 @@ export declare const HOST_OPERATIONS: {
|
|
|
301
303
|
kind: "failed";
|
|
302
304
|
reason: string;
|
|
303
305
|
}>;
|
|
304
|
-
readonly authority: "owner";
|
|
305
|
-
readonly scope: "host";
|
|
306
306
|
};
|
|
307
307
|
readonly "login.answer": {
|
|
308
|
+
readonly authority: "owner";
|
|
309
|
+
readonly scope: "host";
|
|
308
310
|
readonly kind: "command";
|
|
309
311
|
readonly input: import("../../schema.ts").Schema<{
|
|
310
312
|
provider: string;
|
|
311
313
|
code: string;
|
|
312
314
|
}>;
|
|
313
315
|
readonly output: import("../../schema.ts").Schema<null>;
|
|
314
|
-
readonly authority: "owner";
|
|
315
|
-
readonly scope: "host";
|
|
316
316
|
};
|
|
317
317
|
readonly "settings.apply": {
|
|
318
|
+
readonly authority: "owner";
|
|
319
|
+
readonly scope: "host";
|
|
318
320
|
readonly kind: "command";
|
|
319
321
|
readonly input: import("../../schema.ts").Schema<{
|
|
320
|
-
value: import("../../json.ts").Json;
|
|
321
322
|
id: string;
|
|
323
|
+
value: import("../../json.ts").Json;
|
|
322
324
|
}>;
|
|
323
325
|
readonly output: import("../../schema.ts").Schema<{
|
|
324
326
|
readonly kind: "applied";
|
|
325
327
|
} | {
|
|
328
|
+
readonly kind: "invalid";
|
|
326
329
|
readonly issues: readonly {
|
|
330
|
+
readonly severity: "error" | "warning";
|
|
331
|
+
readonly path: readonly (string | number)[];
|
|
332
|
+
readonly message: string;
|
|
327
333
|
readonly source?: {
|
|
334
|
+
readonly plugin: string;
|
|
328
335
|
readonly file?: string | undefined;
|
|
329
336
|
readonly line?: number | undefined;
|
|
330
|
-
readonly plugin: string;
|
|
331
337
|
} | undefined;
|
|
332
|
-
readonly message: string;
|
|
333
|
-
readonly severity: "error" | "warning";
|
|
334
|
-
readonly path: readonly (string | number)[];
|
|
335
338
|
}[];
|
|
336
|
-
readonly kind: "invalid";
|
|
337
339
|
} | {
|
|
338
340
|
readonly kind: "unknown";
|
|
339
341
|
}>;
|
|
340
|
-
readonly authority: "owner";
|
|
341
|
-
readonly scope: "host";
|
|
342
342
|
};
|
|
343
343
|
readonly "workspaces.list": {
|
|
344
|
+
readonly authority: "participant";
|
|
345
|
+
readonly scope: "host";
|
|
344
346
|
readonly kind: "query";
|
|
345
347
|
readonly input: import("../../schema.ts").Schema<object>;
|
|
346
348
|
readonly output: import("../../schema.ts").Schema<{
|
|
347
349
|
id: import("../../ids.ts").Id<"workspace">;
|
|
348
|
-
sessions: number;
|
|
349
|
-
identity: import("../../ids.ts").Id<"environment-identity">;
|
|
350
350
|
target: {
|
|
351
351
|
kind: "local";
|
|
352
352
|
path: string;
|
|
@@ -354,29 +354,31 @@ export declare const HOST_OPERATIONS: {
|
|
|
354
354
|
kind: string;
|
|
355
355
|
locator: import("../../json.ts").Json;
|
|
356
356
|
};
|
|
357
|
+
identity: import("../../ids.ts").Id<"environment-identity">;
|
|
357
358
|
availability: {
|
|
358
359
|
kind: "available";
|
|
359
360
|
} | {
|
|
360
361
|
kind: "unavailable";
|
|
361
362
|
reason: "unreachable" | "unsupported";
|
|
362
363
|
};
|
|
363
|
-
projectSources: string[];
|
|
364
364
|
projectResources: boolean | null;
|
|
365
365
|
trusted: boolean | null;
|
|
366
|
+
projectSources: string[];
|
|
366
367
|
addedBy: import("../../ids.ts").Id<"principal">;
|
|
368
|
+
sessions: number;
|
|
367
369
|
writers: import("../../ids.ts").Id<"run">[];
|
|
368
370
|
isolation: {
|
|
369
|
-
session: import("../../ids.ts").Id<"session">;
|
|
370
371
|
kind: "worktree";
|
|
371
372
|
source: import("../../ids.ts").Id<"workspace">;
|
|
373
|
+
session: import("../../ids.ts").Id<"session">;
|
|
372
374
|
branch: string;
|
|
373
375
|
base: string;
|
|
374
376
|
} | null;
|
|
375
377
|
}[]>;
|
|
376
|
-
readonly authority: "participant";
|
|
377
|
-
readonly scope: "host";
|
|
378
378
|
};
|
|
379
379
|
readonly "workspaces.inspect": {
|
|
380
|
+
readonly authority: "owner";
|
|
381
|
+
readonly scope: "host";
|
|
380
382
|
readonly kind: "query";
|
|
381
383
|
readonly input: import("../../schema.ts").Schema<{
|
|
382
384
|
target: {
|
|
@@ -388,7 +390,6 @@ export declare const HOST_OPERATIONS: {
|
|
|
388
390
|
};
|
|
389
391
|
}>;
|
|
390
392
|
readonly output: import("../../schema.ts").Schema<{
|
|
391
|
-
readonly identity: import("../../ids.ts").Id<"environment-identity">;
|
|
392
393
|
readonly target: {
|
|
393
394
|
readonly kind: "local";
|
|
394
395
|
readonly path: string;
|
|
@@ -396,6 +397,7 @@ export declare const HOST_OPERATIONS: {
|
|
|
396
397
|
readonly kind: string;
|
|
397
398
|
readonly locator: import("../../json.ts").Json;
|
|
398
399
|
};
|
|
400
|
+
readonly identity: import("../../ids.ts").Id<"environment-identity">;
|
|
399
401
|
readonly availability: {
|
|
400
402
|
readonly kind: "available";
|
|
401
403
|
} | {
|
|
@@ -405,18 +407,12 @@ export declare const HOST_OPERATIONS: {
|
|
|
405
407
|
readonly projectSources: readonly string[];
|
|
406
408
|
readonly registered: import("../../ids.ts").Id<"workspace"> | null;
|
|
407
409
|
}>;
|
|
408
|
-
readonly authority: "owner";
|
|
409
|
-
readonly scope: "host";
|
|
410
410
|
};
|
|
411
411
|
readonly "workspaces.add": {
|
|
412
|
+
readonly authority: "owner";
|
|
413
|
+
readonly scope: "host";
|
|
412
414
|
readonly kind: "command";
|
|
413
415
|
readonly input: import("../../schema.ts").Schema<{
|
|
414
|
-
options?: {
|
|
415
|
-
expect?: {
|
|
416
|
-
identity: import("../../ids.ts").Id<"environment-identity">;
|
|
417
|
-
} | undefined;
|
|
418
|
-
projectResources?: boolean | undefined;
|
|
419
|
-
} | undefined;
|
|
420
416
|
target: {
|
|
421
417
|
kind: "local";
|
|
422
418
|
path: string;
|
|
@@ -424,13 +420,19 @@ export declare const HOST_OPERATIONS: {
|
|
|
424
420
|
kind: string;
|
|
425
421
|
locator: import("../../json.ts").Json;
|
|
426
422
|
};
|
|
423
|
+
options?: {
|
|
424
|
+
projectResources?: boolean | undefined;
|
|
425
|
+
expect?: {
|
|
426
|
+
identity: import("../../ids.ts").Id<"environment-identity">;
|
|
427
|
+
} | undefined;
|
|
428
|
+
} | undefined;
|
|
427
429
|
}>;
|
|
428
430
|
readonly output: import("../../schema.ts").Schema<{
|
|
429
|
-
readonly workspace: import("../../ids.ts").Id<"workspace">;
|
|
430
431
|
readonly kind: "added";
|
|
431
|
-
} | {
|
|
432
432
|
readonly workspace: import("../../ids.ts").Id<"workspace">;
|
|
433
|
+
} | {
|
|
433
434
|
readonly kind: "exists";
|
|
435
|
+
readonly workspace: import("../../ids.ts").Id<"workspace">;
|
|
434
436
|
} | {
|
|
435
437
|
readonly kind: "stale";
|
|
436
438
|
readonly identity: import("../../ids.ts").Id<"environment-identity">;
|
|
@@ -438,10 +440,10 @@ export declare const HOST_OPERATIONS: {
|
|
|
438
440
|
readonly kind: "unavailable";
|
|
439
441
|
readonly reason: "unreachable" | "unsupported";
|
|
440
442
|
}>;
|
|
441
|
-
readonly authority: "owner";
|
|
442
|
-
readonly scope: "host";
|
|
443
443
|
};
|
|
444
444
|
readonly "workspaces.forget": {
|
|
445
|
+
readonly authority: "owner";
|
|
446
|
+
readonly scope: "host";
|
|
445
447
|
readonly kind: "command";
|
|
446
448
|
readonly input: import("../../schema.ts").Schema<{
|
|
447
449
|
id: import("../../ids.ts").Id<"workspace">;
|
|
@@ -454,46 +456,65 @@ export declare const HOST_OPERATIONS: {
|
|
|
454
456
|
} | {
|
|
455
457
|
readonly kind: "missing";
|
|
456
458
|
}>;
|
|
457
|
-
readonly authority: "owner";
|
|
458
|
-
readonly scope: "host";
|
|
459
459
|
};
|
|
460
460
|
readonly "sessions.watch": {
|
|
461
|
+
readonly authority: "participant";
|
|
462
|
+
readonly scope: "host";
|
|
461
463
|
readonly kind: "watch";
|
|
462
464
|
readonly input: import("../../schema.ts").Schema<{
|
|
463
|
-
limit?: number | undefined;
|
|
464
465
|
parents?: {
|
|
465
466
|
kind: "all";
|
|
466
467
|
} | {
|
|
467
468
|
kind: "roots";
|
|
468
469
|
} | {
|
|
469
|
-
session: import("../../ids.ts").Id<"session">;
|
|
470
470
|
kind: "children";
|
|
471
|
+
session: import("../../ids.ts").Id<"session">;
|
|
471
472
|
} | undefined;
|
|
473
|
+
limit?: number | undefined;
|
|
472
474
|
}>;
|
|
473
475
|
readonly output: import("../../schema.ts").Schema<{
|
|
476
|
+
kind: "delta" | "list";
|
|
477
|
+
order: {
|
|
478
|
+
runs: number[];
|
|
479
|
+
items: import("../../ids.ts").Id<"session">[];
|
|
480
|
+
};
|
|
474
481
|
items: {
|
|
482
|
+
id: import("../../ids.ts").Id<"session">;
|
|
475
483
|
name: string | null;
|
|
484
|
+
parent: import("../../ids.ts").Id<"session"> | null;
|
|
476
485
|
call: import("../../ids.ts").Id<"call"> | null;
|
|
477
486
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
478
|
-
|
|
479
|
-
|
|
487
|
+
pinned: boolean;
|
|
488
|
+
archived: boolean;
|
|
489
|
+
activation: {
|
|
490
|
+
kind: "active";
|
|
491
|
+
} | {
|
|
492
|
+
kind: "inactive";
|
|
493
|
+
} | {
|
|
494
|
+
kind: "unavailable";
|
|
495
|
+
reason: "unreachable" | "unsupported";
|
|
496
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
497
|
+
} | {
|
|
498
|
+
kind: "failed";
|
|
499
|
+
message: string;
|
|
500
|
+
};
|
|
480
501
|
heads: {
|
|
481
502
|
name: import("../../ids.ts").Id<"head">;
|
|
482
503
|
tip: {
|
|
483
504
|
kind: "start";
|
|
484
505
|
} | {
|
|
485
|
-
id: import("../../ids.ts").Id<"commit">;
|
|
486
506
|
kind: "commit";
|
|
507
|
+
id: import("../../ids.ts").Id<"commit">;
|
|
487
508
|
};
|
|
488
509
|
stack: {
|
|
489
|
-
stale: boolean;
|
|
490
510
|
parent: import("../../ids.ts").Id<"head">;
|
|
491
511
|
base: {
|
|
492
512
|
kind: "start";
|
|
493
513
|
} | {
|
|
494
|
-
id: import("../../ids.ts").Id<"commit">;
|
|
495
514
|
kind: "commit";
|
|
515
|
+
id: import("../../ids.ts").Id<"commit">;
|
|
496
516
|
};
|
|
517
|
+
stale: boolean;
|
|
497
518
|
} | null;
|
|
498
519
|
execution: {
|
|
499
520
|
kind: "idle";
|
|
@@ -502,15 +523,15 @@ export declare const HOST_OPERATIONS: {
|
|
|
502
523
|
end: {
|
|
503
524
|
kind: "completed";
|
|
504
525
|
usage: {
|
|
505
|
-
output: number;
|
|
506
526
|
input: number;
|
|
527
|
+
output: number;
|
|
507
528
|
cacheRead: number;
|
|
508
529
|
cacheWrite: number;
|
|
509
530
|
reasoning: number | null;
|
|
510
531
|
total: number;
|
|
511
532
|
cost: {
|
|
512
|
-
output: number;
|
|
513
533
|
input: number;
|
|
534
|
+
output: number;
|
|
514
535
|
cacheRead: number;
|
|
515
536
|
cacheWrite: number;
|
|
516
537
|
total: number;
|
|
@@ -521,259 +542,255 @@ export declare const HOST_OPERATIONS: {
|
|
|
521
542
|
} | {
|
|
522
543
|
kind: "failed";
|
|
523
544
|
failure: {
|
|
524
|
-
|
|
545
|
+
class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
525
546
|
message: string;
|
|
526
|
-
|
|
547
|
+
retryAfterMs?: number | undefined;
|
|
527
548
|
};
|
|
528
549
|
};
|
|
529
550
|
endedAt: number;
|
|
530
551
|
} | null;
|
|
531
552
|
} | {
|
|
553
|
+
kind: "live";
|
|
532
554
|
run: {
|
|
533
|
-
head: import("../../ids.ts").Id<"head">;
|
|
534
555
|
id: import("../../ids.ts").Id<"run">;
|
|
556
|
+
head: import("../../ids.ts").Id<"head">;
|
|
557
|
+
startedAt: number;
|
|
558
|
+
attempt: number;
|
|
535
559
|
configuration: {
|
|
536
560
|
kind: "exact";
|
|
537
|
-
thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
538
561
|
model: {
|
|
539
|
-
id: string;
|
|
540
562
|
provider: string;
|
|
563
|
+
id: string;
|
|
541
564
|
};
|
|
565
|
+
thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
542
566
|
agent: string | null;
|
|
543
567
|
settings: Record<string, import("../../json.ts").Json>;
|
|
544
568
|
settingsVersion: string;
|
|
545
569
|
};
|
|
546
|
-
startedAt: number;
|
|
547
|
-
attempt: number;
|
|
548
570
|
origin: {
|
|
549
|
-
message: import("../../ids.ts").Id<"message">;
|
|
550
571
|
kind: "input";
|
|
572
|
+
message: import("../../ids.ts").Id<"message">;
|
|
551
573
|
} | {
|
|
552
574
|
kind: "continuation";
|
|
553
|
-
from: "
|
|
575
|
+
from: "child" | "job" | "wake";
|
|
554
576
|
};
|
|
555
577
|
};
|
|
556
|
-
|
|
557
|
-
phase: "responding" | "executing";
|
|
578
|
+
phase: "executing" | "responding";
|
|
558
579
|
stopping: boolean;
|
|
559
580
|
} | {
|
|
581
|
+
kind: "waiting";
|
|
560
582
|
run: {
|
|
561
|
-
head: import("../../ids.ts").Id<"head">;
|
|
562
583
|
id: import("../../ids.ts").Id<"run">;
|
|
584
|
+
head: import("../../ids.ts").Id<"head">;
|
|
585
|
+
startedAt: number;
|
|
586
|
+
attempt: number;
|
|
563
587
|
configuration: {
|
|
564
588
|
kind: "exact";
|
|
565
|
-
thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
566
589
|
model: {
|
|
567
|
-
id: string;
|
|
568
590
|
provider: string;
|
|
591
|
+
id: string;
|
|
569
592
|
};
|
|
593
|
+
thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
570
594
|
agent: string | null;
|
|
571
595
|
settings: Record<string, import("../../json.ts").Json>;
|
|
572
596
|
settingsVersion: string;
|
|
573
597
|
};
|
|
574
|
-
startedAt: number;
|
|
575
|
-
attempt: number;
|
|
576
598
|
origin: {
|
|
577
|
-
message: import("../../ids.ts").Id<"message">;
|
|
578
599
|
kind: "input";
|
|
600
|
+
message: import("../../ids.ts").Id<"message">;
|
|
579
601
|
} | {
|
|
580
602
|
kind: "continuation";
|
|
581
|
-
from: "
|
|
603
|
+
from: "child" | "job" | "wake";
|
|
582
604
|
};
|
|
583
605
|
};
|
|
584
|
-
kind: "waiting";
|
|
585
606
|
on: {
|
|
586
607
|
deadline?: number | undefined;
|
|
608
|
+
kind: "run";
|
|
587
609
|
session: import("../../ids.ts").Id<"session">;
|
|
588
610
|
run: import("../../ids.ts").Id<"run">;
|
|
589
|
-
kind: "run";
|
|
590
611
|
} | {
|
|
591
612
|
deadline?: number | undefined;
|
|
592
|
-
job: import("../../ids.ts").Id<"job">;
|
|
593
613
|
kind: "job";
|
|
614
|
+
job: import("../../ids.ts").Id<"job">;
|
|
594
615
|
} | {
|
|
595
616
|
deadline?: number | undefined;
|
|
596
|
-
part: import("../../ids.ts").Id<"part">;
|
|
597
617
|
kind: "part";
|
|
618
|
+
part: import("../../ids.ts").Id<"part">;
|
|
598
619
|
} | {
|
|
599
620
|
deadline?: number | undefined;
|
|
600
621
|
kind: "timer";
|
|
601
622
|
until: number;
|
|
602
623
|
};
|
|
603
624
|
} | {
|
|
625
|
+
kind: "retrying";
|
|
604
626
|
run: {
|
|
605
|
-
head: import("../../ids.ts").Id<"head">;
|
|
606
627
|
id: import("../../ids.ts").Id<"run">;
|
|
628
|
+
head: import("../../ids.ts").Id<"head">;
|
|
629
|
+
startedAt: number;
|
|
630
|
+
attempt: number;
|
|
607
631
|
configuration: {
|
|
608
632
|
kind: "exact";
|
|
609
|
-
thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
610
633
|
model: {
|
|
611
|
-
id: string;
|
|
612
634
|
provider: string;
|
|
635
|
+
id: string;
|
|
613
636
|
};
|
|
637
|
+
thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
614
638
|
agent: string | null;
|
|
615
639
|
settings: Record<string, import("../../json.ts").Json>;
|
|
616
640
|
settingsVersion: string;
|
|
617
641
|
};
|
|
618
|
-
startedAt: number;
|
|
619
|
-
attempt: number;
|
|
620
642
|
origin: {
|
|
621
|
-
message: import("../../ids.ts").Id<"message">;
|
|
622
643
|
kind: "input";
|
|
644
|
+
message: import("../../ids.ts").Id<"message">;
|
|
623
645
|
} | {
|
|
624
646
|
kind: "continuation";
|
|
625
|
-
from: "
|
|
647
|
+
from: "child" | "job" | "wake";
|
|
626
648
|
};
|
|
627
649
|
};
|
|
628
|
-
kind: "retrying";
|
|
629
|
-
reason: string;
|
|
630
650
|
until: number;
|
|
651
|
+
reason: string;
|
|
631
652
|
};
|
|
632
653
|
unread: boolean;
|
|
633
654
|
}[];
|
|
634
|
-
pinned: boolean;
|
|
635
|
-
archived: boolean;
|
|
636
|
-
activation: {
|
|
637
|
-
kind: "active";
|
|
638
|
-
} | {
|
|
639
|
-
kind: "inactive";
|
|
640
|
-
} | {
|
|
641
|
-
workspace: import("../../ids.ts").Id<"workspace">;
|
|
642
|
-
kind: "unavailable";
|
|
643
|
-
reason: "unreachable" | "unsupported";
|
|
644
|
-
} | {
|
|
645
|
-
message: string;
|
|
646
|
-
kind: "failed";
|
|
647
|
-
};
|
|
648
655
|
createdAt: number;
|
|
649
656
|
lastActivityAt: number;
|
|
650
657
|
}[];
|
|
651
|
-
kind: "list" | "delta";
|
|
652
|
-
order: {
|
|
653
|
-
items: import("../../ids.ts").Id<"session">[];
|
|
654
|
-
runs: number[];
|
|
655
|
-
};
|
|
656
658
|
}>;
|
|
657
|
-
readonly authority: "participant";
|
|
658
|
-
readonly scope: "host";
|
|
659
659
|
};
|
|
660
660
|
readonly "sessions.start": {
|
|
661
|
+
readonly authority: "participant";
|
|
662
|
+
readonly scope: "host";
|
|
661
663
|
readonly kind: "receipt";
|
|
662
664
|
readonly recovery: "replay";
|
|
663
665
|
readonly input: import("../../schema.ts").Schema<{
|
|
666
|
+
id: import("../../ids.ts").Id<"session">;
|
|
664
667
|
name?: string | undefined;
|
|
665
668
|
workspace?: import("../../ids.ts").Id<"workspace"> | undefined;
|
|
669
|
+
parent?: import("../../ids.ts").Id<"session"> | undefined;
|
|
666
670
|
configuration?: {
|
|
671
|
+
model?: {
|
|
672
|
+
provider: string;
|
|
673
|
+
id: string;
|
|
674
|
+
} | undefined;
|
|
675
|
+
thinking?: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh" | null | undefined;
|
|
676
|
+
agent?: string | null | undefined;
|
|
677
|
+
settings?: Record<string, import("../../json.ts").Json> | undefined;
|
|
678
|
+
} | {
|
|
667
679
|
kind: "exact";
|
|
668
|
-
thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
669
680
|
model: {
|
|
670
|
-
id: string;
|
|
671
681
|
provider: string;
|
|
682
|
+
id: string;
|
|
672
683
|
};
|
|
684
|
+
thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
673
685
|
agent: string | null;
|
|
674
686
|
settings: Record<string, import("../../json.ts").Json>;
|
|
675
687
|
settingsVersion: string;
|
|
676
|
-
} | {
|
|
677
|
-
thinking?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | null | undefined;
|
|
678
|
-
model?: {
|
|
679
|
-
id: string;
|
|
680
|
-
provider: string;
|
|
681
|
-
} | undefined;
|
|
682
|
-
agent?: string | null | undefined;
|
|
683
|
-
settings?: Record<string, import("../../json.ts").Json> | undefined;
|
|
684
688
|
} | undefined;
|
|
685
|
-
parent?: import("../../ids.ts").Id<"session"> | undefined;
|
|
686
|
-
isolation?: "worktree" | undefined;
|
|
687
689
|
prompt?: {
|
|
688
|
-
order?: number | undefined;
|
|
689
|
-
text: string;
|
|
690
690
|
kind: "layer";
|
|
691
|
-
} | {
|
|
692
691
|
text: string;
|
|
692
|
+
order?: number | undefined;
|
|
693
|
+
} | {
|
|
693
694
|
kind: "replace";
|
|
695
|
+
text: string;
|
|
694
696
|
} | undefined;
|
|
695
|
-
|
|
697
|
+
isolation?: "worktree" | undefined;
|
|
698
|
+
contextFiles?: false | undefined;
|
|
696
699
|
content: string | ({
|
|
697
|
-
text: string;
|
|
698
700
|
kind: "text";
|
|
701
|
+
text: string;
|
|
699
702
|
} | {
|
|
700
|
-
name: string;
|
|
701
|
-
blob: import("../../ids.ts").Id<"blob">;
|
|
702
703
|
kind: "file";
|
|
704
|
+
blob: import("../../ids.ts").Id<"blob">;
|
|
703
705
|
mime: string;
|
|
706
|
+
name: string;
|
|
704
707
|
} | {
|
|
705
|
-
blob?: import("../../ids.ts").Id<"blob"> | undefined;
|
|
706
708
|
kind: "reference";
|
|
707
709
|
path: string;
|
|
710
|
+
blob?: import("../../ids.ts").Id<"blob"> | undefined;
|
|
708
711
|
} | {
|
|
709
|
-
name: string;
|
|
710
712
|
kind: "skill";
|
|
713
|
+
name: string;
|
|
711
714
|
location: string;
|
|
712
715
|
} | {
|
|
713
|
-
text: string;
|
|
714
716
|
kind: "excerpt";
|
|
715
717
|
source: {
|
|
716
718
|
kind: "diff";
|
|
717
719
|
path: string;
|
|
718
|
-
side: "
|
|
720
|
+
side: "new" | "old";
|
|
719
721
|
start: number;
|
|
720
722
|
end: number;
|
|
721
723
|
} | {
|
|
722
|
-
command?: string | undefined;
|
|
723
724
|
kind: "terminal";
|
|
725
|
+
command?: string | undefined;
|
|
724
726
|
} | {
|
|
725
|
-
url: string;
|
|
726
727
|
kind: "browser";
|
|
728
|
+
url: string;
|
|
727
729
|
selector: string;
|
|
728
730
|
};
|
|
731
|
+
text: string;
|
|
729
732
|
})[];
|
|
730
733
|
}>;
|
|
731
734
|
readonly output: import("../../schema.ts").Schema<{
|
|
732
735
|
session: import("../../ids.ts").Id<"session">;
|
|
733
|
-
message: import("../../ids.ts").Id<"message">;
|
|
734
736
|
receipt: import("../../ids.ts").Id<"receipt">;
|
|
737
|
+
message: import("../../ids.ts").Id<"message">;
|
|
735
738
|
}>;
|
|
736
|
-
readonly authority: "participant";
|
|
737
|
-
readonly scope: "host";
|
|
738
739
|
};
|
|
739
740
|
readonly "sessions.list": {
|
|
741
|
+
readonly authority: "participant";
|
|
742
|
+
readonly scope: "host";
|
|
740
743
|
readonly kind: "query";
|
|
741
744
|
readonly input: import("../../schema.ts").Schema<{
|
|
742
|
-
cursor?: import("../../ids.ts").Id<"cursor"> | undefined;
|
|
743
|
-
limit?: number | undefined;
|
|
744
745
|
parents?: {
|
|
745
746
|
kind: "all";
|
|
746
747
|
} | {
|
|
747
748
|
kind: "roots";
|
|
748
749
|
} | {
|
|
749
|
-
session: import("../../ids.ts").Id<"session">;
|
|
750
750
|
kind: "children";
|
|
751
|
+
session: import("../../ids.ts").Id<"session">;
|
|
751
752
|
} | undefined;
|
|
753
|
+
cursor?: import("../../ids.ts").Id<"cursor"> | undefined;
|
|
754
|
+
limit?: number | undefined;
|
|
752
755
|
}>;
|
|
753
756
|
readonly output: import("../../schema.ts").Schema<{
|
|
754
757
|
items: {
|
|
758
|
+
id: import("../../ids.ts").Id<"session">;
|
|
755
759
|
name: string | null;
|
|
760
|
+
parent: import("../../ids.ts").Id<"session"> | null;
|
|
756
761
|
call: import("../../ids.ts").Id<"call"> | null;
|
|
757
762
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
758
|
-
|
|
759
|
-
|
|
763
|
+
pinned: boolean;
|
|
764
|
+
archived: boolean;
|
|
765
|
+
activation: {
|
|
766
|
+
kind: "active";
|
|
767
|
+
} | {
|
|
768
|
+
kind: "inactive";
|
|
769
|
+
} | {
|
|
770
|
+
kind: "unavailable";
|
|
771
|
+
reason: "unreachable" | "unsupported";
|
|
772
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
773
|
+
} | {
|
|
774
|
+
kind: "failed";
|
|
775
|
+
message: string;
|
|
776
|
+
};
|
|
760
777
|
heads: {
|
|
761
778
|
name: import("../../ids.ts").Id<"head">;
|
|
762
779
|
tip: {
|
|
763
780
|
kind: "start";
|
|
764
781
|
} | {
|
|
765
|
-
id: import("../../ids.ts").Id<"commit">;
|
|
766
782
|
kind: "commit";
|
|
783
|
+
id: import("../../ids.ts").Id<"commit">;
|
|
767
784
|
};
|
|
768
785
|
stack: {
|
|
769
|
-
stale: boolean;
|
|
770
786
|
parent: import("../../ids.ts").Id<"head">;
|
|
771
787
|
base: {
|
|
772
788
|
kind: "start";
|
|
773
789
|
} | {
|
|
774
|
-
id: import("../../ids.ts").Id<"commit">;
|
|
775
790
|
kind: "commit";
|
|
791
|
+
id: import("../../ids.ts").Id<"commit">;
|
|
776
792
|
};
|
|
793
|
+
stale: boolean;
|
|
777
794
|
} | null;
|
|
778
795
|
execution: {
|
|
779
796
|
kind: "idle";
|
|
@@ -782,15 +799,15 @@ export declare const HOST_OPERATIONS: {
|
|
|
782
799
|
end: {
|
|
783
800
|
kind: "completed";
|
|
784
801
|
usage: {
|
|
785
|
-
output: number;
|
|
786
802
|
input: number;
|
|
803
|
+
output: number;
|
|
787
804
|
cacheRead: number;
|
|
788
805
|
cacheWrite: number;
|
|
789
806
|
reasoning: number | null;
|
|
790
807
|
total: number;
|
|
791
808
|
cost: {
|
|
792
|
-
output: number;
|
|
793
809
|
input: number;
|
|
810
|
+
output: number;
|
|
794
811
|
cacheRead: number;
|
|
795
812
|
cacheWrite: number;
|
|
796
813
|
total: number;
|
|
@@ -801,171 +818,157 @@ export declare const HOST_OPERATIONS: {
|
|
|
801
818
|
} | {
|
|
802
819
|
kind: "failed";
|
|
803
820
|
failure: {
|
|
804
|
-
|
|
821
|
+
class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
805
822
|
message: string;
|
|
806
|
-
|
|
823
|
+
retryAfterMs?: number | undefined;
|
|
807
824
|
};
|
|
808
825
|
};
|
|
809
826
|
endedAt: number;
|
|
810
827
|
} | null;
|
|
811
828
|
} | {
|
|
829
|
+
kind: "live";
|
|
812
830
|
run: {
|
|
813
|
-
head: import("../../ids.ts").Id<"head">;
|
|
814
831
|
id: import("../../ids.ts").Id<"run">;
|
|
832
|
+
head: import("../../ids.ts").Id<"head">;
|
|
833
|
+
startedAt: number;
|
|
834
|
+
attempt: number;
|
|
815
835
|
configuration: {
|
|
816
836
|
kind: "exact";
|
|
817
|
-
thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
818
837
|
model: {
|
|
819
|
-
id: string;
|
|
820
838
|
provider: string;
|
|
839
|
+
id: string;
|
|
821
840
|
};
|
|
841
|
+
thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
822
842
|
agent: string | null;
|
|
823
843
|
settings: Record<string, import("../../json.ts").Json>;
|
|
824
844
|
settingsVersion: string;
|
|
825
845
|
};
|
|
826
|
-
startedAt: number;
|
|
827
|
-
attempt: number;
|
|
828
846
|
origin: {
|
|
829
|
-
message: import("../../ids.ts").Id<"message">;
|
|
830
847
|
kind: "input";
|
|
848
|
+
message: import("../../ids.ts").Id<"message">;
|
|
831
849
|
} | {
|
|
832
850
|
kind: "continuation";
|
|
833
|
-
from: "
|
|
851
|
+
from: "child" | "job" | "wake";
|
|
834
852
|
};
|
|
835
853
|
};
|
|
836
|
-
|
|
837
|
-
phase: "responding" | "executing";
|
|
854
|
+
phase: "executing" | "responding";
|
|
838
855
|
stopping: boolean;
|
|
839
856
|
} | {
|
|
857
|
+
kind: "waiting";
|
|
840
858
|
run: {
|
|
841
|
-
head: import("../../ids.ts").Id<"head">;
|
|
842
859
|
id: import("../../ids.ts").Id<"run">;
|
|
860
|
+
head: import("../../ids.ts").Id<"head">;
|
|
861
|
+
startedAt: number;
|
|
862
|
+
attempt: number;
|
|
843
863
|
configuration: {
|
|
844
864
|
kind: "exact";
|
|
845
|
-
thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
846
865
|
model: {
|
|
847
|
-
id: string;
|
|
848
866
|
provider: string;
|
|
867
|
+
id: string;
|
|
849
868
|
};
|
|
869
|
+
thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
850
870
|
agent: string | null;
|
|
851
871
|
settings: Record<string, import("../../json.ts").Json>;
|
|
852
872
|
settingsVersion: string;
|
|
853
873
|
};
|
|
854
|
-
startedAt: number;
|
|
855
|
-
attempt: number;
|
|
856
874
|
origin: {
|
|
857
|
-
message: import("../../ids.ts").Id<"message">;
|
|
858
875
|
kind: "input";
|
|
876
|
+
message: import("../../ids.ts").Id<"message">;
|
|
859
877
|
} | {
|
|
860
878
|
kind: "continuation";
|
|
861
|
-
from: "
|
|
879
|
+
from: "child" | "job" | "wake";
|
|
862
880
|
};
|
|
863
881
|
};
|
|
864
|
-
kind: "waiting";
|
|
865
882
|
on: {
|
|
866
883
|
deadline?: number | undefined;
|
|
884
|
+
kind: "run";
|
|
867
885
|
session: import("../../ids.ts").Id<"session">;
|
|
868
886
|
run: import("../../ids.ts").Id<"run">;
|
|
869
|
-
kind: "run";
|
|
870
887
|
} | {
|
|
871
888
|
deadline?: number | undefined;
|
|
872
|
-
job: import("../../ids.ts").Id<"job">;
|
|
873
889
|
kind: "job";
|
|
890
|
+
job: import("../../ids.ts").Id<"job">;
|
|
874
891
|
} | {
|
|
875
892
|
deadline?: number | undefined;
|
|
876
|
-
part: import("../../ids.ts").Id<"part">;
|
|
877
893
|
kind: "part";
|
|
894
|
+
part: import("../../ids.ts").Id<"part">;
|
|
878
895
|
} | {
|
|
879
896
|
deadline?: number | undefined;
|
|
880
897
|
kind: "timer";
|
|
881
898
|
until: number;
|
|
882
899
|
};
|
|
883
900
|
} | {
|
|
901
|
+
kind: "retrying";
|
|
884
902
|
run: {
|
|
885
|
-
head: import("../../ids.ts").Id<"head">;
|
|
886
903
|
id: import("../../ids.ts").Id<"run">;
|
|
904
|
+
head: import("../../ids.ts").Id<"head">;
|
|
905
|
+
startedAt: number;
|
|
906
|
+
attempt: number;
|
|
887
907
|
configuration: {
|
|
888
908
|
kind: "exact";
|
|
889
|
-
thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
890
909
|
model: {
|
|
891
|
-
id: string;
|
|
892
910
|
provider: string;
|
|
911
|
+
id: string;
|
|
893
912
|
};
|
|
913
|
+
thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
894
914
|
agent: string | null;
|
|
895
915
|
settings: Record<string, import("../../json.ts").Json>;
|
|
896
916
|
settingsVersion: string;
|
|
897
917
|
};
|
|
898
|
-
startedAt: number;
|
|
899
|
-
attempt: number;
|
|
900
918
|
origin: {
|
|
901
|
-
message: import("../../ids.ts").Id<"message">;
|
|
902
919
|
kind: "input";
|
|
920
|
+
message: import("../../ids.ts").Id<"message">;
|
|
903
921
|
} | {
|
|
904
922
|
kind: "continuation";
|
|
905
|
-
from: "
|
|
923
|
+
from: "child" | "job" | "wake";
|
|
906
924
|
};
|
|
907
925
|
};
|
|
908
|
-
kind: "retrying";
|
|
909
|
-
reason: string;
|
|
910
926
|
until: number;
|
|
927
|
+
reason: string;
|
|
911
928
|
};
|
|
912
929
|
unread: boolean;
|
|
913
930
|
}[];
|
|
914
|
-
pinned: boolean;
|
|
915
|
-
archived: boolean;
|
|
916
|
-
activation: {
|
|
917
|
-
kind: "active";
|
|
918
|
-
} | {
|
|
919
|
-
kind: "inactive";
|
|
920
|
-
} | {
|
|
921
|
-
workspace: import("../../ids.ts").Id<"workspace">;
|
|
922
|
-
kind: "unavailable";
|
|
923
|
-
reason: "unreachable" | "unsupported";
|
|
924
|
-
} | {
|
|
925
|
-
message: string;
|
|
926
|
-
kind: "failed";
|
|
927
|
-
};
|
|
928
931
|
createdAt: number;
|
|
929
932
|
lastActivityAt: number;
|
|
930
933
|
}[];
|
|
931
934
|
next: import("../../ids.ts").Id<"cursor"> | null;
|
|
932
935
|
}>;
|
|
933
|
-
readonly authority: "participant";
|
|
934
|
-
readonly scope: "host";
|
|
935
936
|
};
|
|
936
937
|
};
|
|
937
938
|
export declare const MAINTENANCE_OPERATIONS: {
|
|
938
939
|
readonly "plugins.replace": {
|
|
940
|
+
readonly authority: "maintenance";
|
|
941
|
+
readonly scope: "host";
|
|
939
942
|
readonly kind: "command";
|
|
940
943
|
readonly input: import("../../schema.ts").Schema<{
|
|
941
|
-
scope?: {
|
|
942
|
-
session: import("../../ids.ts").Id<"session">;
|
|
943
|
-
} | undefined;
|
|
944
944
|
plugins: {
|
|
945
945
|
path: string;
|
|
946
946
|
}[];
|
|
947
|
+
scope?: {
|
|
948
|
+
session: import("../../ids.ts").Id<"session">;
|
|
949
|
+
} | undefined;
|
|
947
950
|
}>;
|
|
948
951
|
readonly output: import("../../schema.ts").Schema<{
|
|
949
952
|
readonly generation: import("../../ids.ts").Id<"catalog-generation">;
|
|
950
953
|
readonly plugins: readonly {
|
|
954
|
+
readonly kind: "activated" | "kept-previous" | "rejected";
|
|
955
|
+
readonly id: string;
|
|
951
956
|
readonly issues: readonly {
|
|
957
|
+
readonly severity: "error" | "warning";
|
|
958
|
+
readonly path: readonly (string | number)[];
|
|
959
|
+
readonly message: string;
|
|
952
960
|
readonly source?: {
|
|
961
|
+
readonly plugin: string;
|
|
953
962
|
readonly file?: string | undefined;
|
|
954
963
|
readonly line?: number | undefined;
|
|
955
|
-
readonly plugin: string;
|
|
956
964
|
} | undefined;
|
|
957
|
-
readonly message: string;
|
|
958
|
-
readonly severity: "error" | "warning";
|
|
959
|
-
readonly path: readonly (string | number)[];
|
|
960
965
|
}[];
|
|
961
|
-
readonly id: string;
|
|
962
|
-
readonly kind: "activated" | "rejected" | "kept-previous";
|
|
963
966
|
}[];
|
|
964
967
|
}>;
|
|
965
|
-
readonly authority: "maintenance";
|
|
966
|
-
readonly scope: "host";
|
|
967
968
|
};
|
|
968
969
|
readonly "plugins.check": {
|
|
970
|
+
readonly authority: "maintenance";
|
|
971
|
+
readonly scope: "host";
|
|
969
972
|
readonly kind: "query";
|
|
970
973
|
readonly input: import("../../schema.ts").Schema<{
|
|
971
974
|
plugins: {
|
|
@@ -974,65 +977,63 @@ export declare const MAINTENANCE_OPERATIONS: {
|
|
|
974
977
|
}>;
|
|
975
978
|
readonly output: import("../../schema.ts").Schema<{
|
|
976
979
|
readonly plugins: readonly {
|
|
980
|
+
readonly kind: "activated" | "kept-previous" | "rejected";
|
|
981
|
+
readonly id: string;
|
|
977
982
|
readonly issues: readonly {
|
|
983
|
+
readonly severity: "error" | "warning";
|
|
984
|
+
readonly path: readonly (string | number)[];
|
|
985
|
+
readonly message: string;
|
|
978
986
|
readonly source?: {
|
|
987
|
+
readonly plugin: string;
|
|
979
988
|
readonly file?: string | undefined;
|
|
980
989
|
readonly line?: number | undefined;
|
|
981
|
-
readonly plugin: string;
|
|
982
990
|
} | undefined;
|
|
983
|
-
readonly message: string;
|
|
984
|
-
readonly severity: "error" | "warning";
|
|
985
|
-
readonly path: readonly (string | number)[];
|
|
986
991
|
}[];
|
|
987
|
-
readonly id: string;
|
|
988
|
-
readonly kind: "activated" | "rejected" | "kept-previous";
|
|
989
992
|
}[];
|
|
990
993
|
readonly collisions: readonly {
|
|
994
|
+
readonly severity: "error" | "warning";
|
|
995
|
+
readonly path: readonly (string | number)[];
|
|
996
|
+
readonly message: string;
|
|
991
997
|
readonly source?: {
|
|
998
|
+
readonly plugin: string;
|
|
992
999
|
readonly file?: string | undefined;
|
|
993
1000
|
readonly line?: number | undefined;
|
|
994
|
-
readonly plugin: string;
|
|
995
1001
|
} | undefined;
|
|
996
|
-
readonly message: string;
|
|
997
|
-
readonly severity: "error" | "warning";
|
|
998
|
-
readonly path: readonly (string | number)[];
|
|
999
1002
|
}[];
|
|
1000
1003
|
}>;
|
|
1001
|
-
readonly authority: "maintenance";
|
|
1002
|
-
readonly scope: "host";
|
|
1003
1004
|
};
|
|
1004
1005
|
readonly "principals.list": {
|
|
1006
|
+
readonly authority: "maintenance";
|
|
1007
|
+
readonly scope: "host";
|
|
1005
1008
|
readonly kind: "query";
|
|
1006
1009
|
readonly input: import("../../schema.ts").Schema<object>;
|
|
1007
1010
|
readonly output: import("../../schema.ts").Schema<{
|
|
1008
1011
|
id: import("../../ids.ts").Id<"principal">;
|
|
1009
1012
|
label: string;
|
|
1010
|
-
authority: ("
|
|
1013
|
+
authority: ("maintenance" | "owner" | "participant")[];
|
|
1011
1014
|
pairedAt: number;
|
|
1012
1015
|
}[]>;
|
|
1013
|
-
readonly authority: "maintenance";
|
|
1014
|
-
readonly scope: "host";
|
|
1015
1016
|
};
|
|
1016
1017
|
readonly "principals.pair": {
|
|
1018
|
+
readonly authority: "maintenance";
|
|
1019
|
+
readonly scope: "host";
|
|
1017
1020
|
readonly kind: "command";
|
|
1018
1021
|
readonly input: import("../../schema.ts").Schema<{
|
|
1022
|
+
authority: ("maintenance" | "owner" | "participant")[];
|
|
1019
1023
|
label?: string | undefined;
|
|
1020
|
-
authority: ("participant" | "owner" | "maintenance")[];
|
|
1021
1024
|
}>;
|
|
1022
1025
|
readonly output: import("../../schema.ts").Schema<{
|
|
1023
1026
|
code: string;
|
|
1024
1027
|
expiresAt: number;
|
|
1025
1028
|
}>;
|
|
1026
|
-
readonly authority: "maintenance";
|
|
1027
|
-
readonly scope: "host";
|
|
1028
1029
|
};
|
|
1029
1030
|
readonly "principals.revoke": {
|
|
1031
|
+
readonly authority: "maintenance";
|
|
1032
|
+
readonly scope: "host";
|
|
1030
1033
|
readonly kind: "command";
|
|
1031
1034
|
readonly input: import("../../schema.ts").Schema<{
|
|
1032
1035
|
id: import("../../ids.ts").Id<"principal">;
|
|
1033
1036
|
}>;
|
|
1034
1037
|
readonly output: import("../../schema.ts").Schema<null>;
|
|
1035
|
-
readonly authority: "maintenance";
|
|
1036
|
-
readonly scope: "host";
|
|
1037
1038
|
};
|
|
1038
1039
|
};
|