@pstdio/workbench 0.11.3 → 0.12.0
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/extensions.d.ts +15 -0
- package/dist/extensions.js +651 -641
- package/dist/extensions.js.map +1 -1
- package/dist/file-renderer-view-BJ3LX04R.js +545 -0
- package/dist/file-renderer-view-BJ3LX04R.js.map +1 -0
- package/dist/index-DwNKY4fO.js +5286 -0
- package/dist/index-DwNKY4fO.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1714 -1617
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +8 -5
- package/dist/react.js +51 -5209
- package/dist/react.js.map +1 -1
- package/dist/webview-runtime.js +1 -1
- package/dist/webview-runtime.js.map +1 -1
- package/dist/{workbench-renderers-BhgHQ-Ne.js → workbench-renderers-BAPxtfpZ.js} +263 -257
- package/dist/workbench-renderers-BAPxtfpZ.js.map +1 -0
- package/dist/{workspaces-B9HZHIbz.js → workspaces-DdUPyzkL.js} +350 -339
- package/dist/workspaces-DdUPyzkL.js.map +1 -0
- package/package.json +3 -3
- package/dist/file-renderer-view-Bfmw6RxV.js +0 -515
- package/dist/file-renderer-view-Bfmw6RxV.js.map +0 -1
- package/dist/workbench-renderers-BhgHQ-Ne.js.map +0 -1
- package/dist/workspaces-B9HZHIbz.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as Z } from "react/compiler-runtime";
|
|
3
3
|
import { Icon as Wt, Stack as nt } from "@chakra-ui/react";
|
|
4
4
|
import { TagSettingsPanel as Ft } from "@pstdio/ui";
|
|
5
5
|
import { useState as ot, useEffect as Gt } from "react";
|
|
@@ -14,7 +14,7 @@ const Qt = (n) => n.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
14
14
|
return s;
|
|
15
15
|
}
|
|
16
16
|
}, Yt = (n) => {
|
|
17
|
-
const e =
|
|
17
|
+
const e = Z(10);
|
|
18
18
|
let i, a, s;
|
|
19
19
|
e[0] !== n ? ({
|
|
20
20
|
name: i,
|
|
@@ -29,9 +29,9 @@ const Qt = (n) => n.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
29
29
|
const d = c;
|
|
30
30
|
if (!d)
|
|
31
31
|
return null;
|
|
32
|
-
const
|
|
32
|
+
const m = typeof p == "number" ? `${p}px` : p;
|
|
33
33
|
let u;
|
|
34
|
-
return e[6] !== d || e[7] !== a || e[8] !==
|
|
34
|
+
return e[6] !== d || e[7] !== a || e[8] !== m ? (u = /* @__PURE__ */ f(Wt, { as: d, boxSize: m, "aria-hidden": "true", ...a }), e[6] = d, e[7] = a, e[8] = m, e[9] = u) : u = e[9], u;
|
|
35
35
|
}, te = (n, e) => Jt(n, e), ee = (n) => ({
|
|
36
36
|
id: n.id,
|
|
37
37
|
name: n.label,
|
|
@@ -49,7 +49,7 @@ const Qt = (n) => n.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
49
49
|
isDefault: n.isDefault,
|
|
50
50
|
actions: [...n.actions ?? []]
|
|
51
51
|
}), ae = (n) => {
|
|
52
|
-
const e =
|
|
52
|
+
const e = Z(23), {
|
|
53
53
|
statusSet: i,
|
|
54
54
|
workbench: a
|
|
55
55
|
} = n;
|
|
@@ -58,15 +58,15 @@ const Qt = (n) => n.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
58
58
|
const y = a.statuses.getStatuses(i.id);
|
|
59
59
|
return y ? [...y] : void 0;
|
|
60
60
|
}, e[0] = i.id, e[1] = a.statuses, e[2] = s) : s = e[2];
|
|
61
|
-
const [p, c] = ot(s), [d,
|
|
61
|
+
const [p, c] = ot(s), [d, m] = ot();
|
|
62
62
|
let u;
|
|
63
63
|
e[3] !== i.id || e[4] !== a.statuses ? (u = () => {
|
|
64
64
|
let y = !0;
|
|
65
65
|
const O = a.statuses.getStatuses(i.id);
|
|
66
|
-
return c(O ? [...O] : void 0),
|
|
67
|
-
y && c([...
|
|
68
|
-
}, (
|
|
69
|
-
y &&
|
|
66
|
+
return c(O ? [...O] : void 0), m(void 0), a.statuses.load(i.id).then((L) => {
|
|
67
|
+
y && c([...L]);
|
|
68
|
+
}, (L) => {
|
|
69
|
+
y && m(L);
|
|
70
70
|
}), () => {
|
|
71
71
|
y = !1;
|
|
72
72
|
};
|
|
@@ -78,14 +78,14 @@ const Qt = (n) => n.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
78
78
|
const O = y.drafts.map(ie);
|
|
79
79
|
c([...await a.statuses.save(i.id, O)]);
|
|
80
80
|
}, e[9] = i.id, e[10] = a.statuses, e[11] = P) : P = e[11];
|
|
81
|
-
const
|
|
81
|
+
const N = P, z = !i.save, U = i.save ? void 0 : "This status set is read-only.";
|
|
82
82
|
let x;
|
|
83
83
|
e[12] !== i.actions ? (x = i.actions?.map(re), e[12] = i.actions, e[13] = x) : x = e[13];
|
|
84
84
|
const K = `Unable to update ${i.title}`;
|
|
85
85
|
let T;
|
|
86
|
-
return e[14] !== d || e[15] !==
|
|
87
|
-
},
|
|
88
|
-
const e =
|
|
86
|
+
return e[14] !== d || e[15] !== N || e[16] !== i.title || e[17] !== p || e[18] !== z || e[19] !== U || e[20] !== x || e[21] !== K ? (T = /* @__PURE__ */ f(Ft, { values: p, loadError: d, onSave: N, toEditorValue: ee, valueNeedsUpdate: oe, readOnly: z, title: i.title, description: U, actionOptions: x, actionsLabel: "Commands", framed: !0, showColumnHeaders: !0, valueColumnLabel: "State", showDefault: !0, errorTitle: K, addLabel: "Add state", addName: "New status", resetLabel: "Reset", saveLabel: "Save", deleteHeadline: "Delete status?", deleteNotificationText: se, deleteButtonText: "Delete status" }), e[14] = d, e[15] = N, e[16] = i.title, e[17] = p, e[18] = z, e[19] = U, e[20] = x, e[21] = K, e[22] = T) : T = e[22], T;
|
|
87
|
+
}, ni = (n) => {
|
|
88
|
+
const e = Z(12), {
|
|
89
89
|
workbench: i
|
|
90
90
|
} = n;
|
|
91
91
|
te(i.statuses.store, le);
|
|
@@ -95,8 +95,8 @@ const Qt = (n) => n.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((e) => `${e.charA
|
|
|
95
95
|
a = nt, s = "none", p = "full", c = "bg", d = u.map((h) => /* @__PURE__ */ f(nt, { "data-testid": `workflow-status-set-${h.id}`, gap: "none", children: /* @__PURE__ */ f(ae, { workbench: i, statusSet: h }) }, h.id)), e[0] = i, e[1] = a, e[2] = s, e[3] = p, e[4] = c, e[5] = d;
|
|
96
96
|
} else
|
|
97
97
|
a = e[1], s = e[2], p = e[3], c = e[4], d = e[5];
|
|
98
|
-
let
|
|
99
|
-
return e[6] !== a || e[7] !== s || e[8] !== p || e[9] !== c || e[10] !== d ? (
|
|
98
|
+
let m;
|
|
99
|
+
return e[6] !== a || e[7] !== s || e[8] !== p || e[9] !== c || e[10] !== d ? (m = /* @__PURE__ */ f(a, { gap: s, minH: p, bg: c, children: d }), e[6] = a, e[7] = s, e[8] = p, e[9] = c, e[10] = d, e[11] = m) : m = e[11], m;
|
|
100
100
|
};
|
|
101
101
|
function re(n) {
|
|
102
102
|
return {
|
|
@@ -124,21 +124,21 @@ const ut = t.string(), ce = t.enum(["user", "agent", "system"]), de = t.enum(["u
|
|
|
124
124
|
summary: t.string(),
|
|
125
125
|
payload_json: t.record(t.string(), t.unknown()),
|
|
126
126
|
created_at: t.string()
|
|
127
|
-
}),
|
|
127
|
+
}), ge = t.object({
|
|
128
128
|
event_type: t.string().optional(),
|
|
129
129
|
from: t.string().optional(),
|
|
130
130
|
to: t.string().optional(),
|
|
131
131
|
cursor: t.string().optional(),
|
|
132
132
|
limit: t.coerce.number().int().optional()
|
|
133
133
|
});
|
|
134
|
-
|
|
134
|
+
ge.extend({
|
|
135
135
|
resource_type: ut.optional()
|
|
136
136
|
});
|
|
137
137
|
t.object({
|
|
138
138
|
events: t.array(pe),
|
|
139
139
|
next_cursor: t.string().nullable()
|
|
140
140
|
});
|
|
141
|
-
const
|
|
141
|
+
const me = t.enum(["INSTALLED", "NOT_FOUND"]), ue = t.object({
|
|
142
142
|
dir: t.string(),
|
|
143
143
|
global_dir: t.string()
|
|
144
144
|
}), it = t.union([t.string(), t.object({
|
|
@@ -165,7 +165,7 @@ t.object({
|
|
|
165
165
|
id: t.string(),
|
|
166
166
|
name: t.string(),
|
|
167
167
|
availability: t.object({
|
|
168
|
-
type:
|
|
168
|
+
type: me
|
|
169
169
|
}),
|
|
170
170
|
/** Present when the harness declares skill directories. */
|
|
171
171
|
skills: ue.optional(),
|
|
@@ -203,18 +203,18 @@ const r = t.record(t.string(), t.unknown()), yt = t.record(t.string(), t.json())
|
|
|
203
203
|
version: t.string().optional(),
|
|
204
204
|
description: t.string().optional(),
|
|
205
205
|
sourcePath: t.string()
|
|
206
|
-
}),
|
|
206
|
+
}), V = t.object({
|
|
207
207
|
kind: t.literal("package-asset"),
|
|
208
208
|
path: t.string(),
|
|
209
209
|
baseUrl: t.string()
|
|
210
|
-
}), St = t.enum(["first", "default", "last"]), Ie = t.enum(["menu", "panel", "settings", "renderer", "kanbanRenderer", "dataTableRenderer"]),
|
|
210
|
+
}), St = t.enum(["first", "default", "last"]), Ie = t.enum(["menu", "panel", "settings", "renderer", "kanbanRenderer", "dataTableRenderer"]), J = t.enum(["cli", "dashboard", "api", "schedule", "event", "automation", "command-panel"]), Q = t.object({
|
|
211
211
|
mode: t.union([t.string(), t.array(t.string())]).optional(),
|
|
212
|
-
source: t.array(
|
|
212
|
+
source: t.array(J).optional(),
|
|
213
213
|
viewId: t.union([t.string(), t.array(t.string())]).optional(),
|
|
214
214
|
resourceType: t.array(t.string()).optional(),
|
|
215
215
|
metadata: r.optional()
|
|
216
216
|
}), xt = t.object({
|
|
217
|
-
entry:
|
|
217
|
+
entry: V,
|
|
218
218
|
title: o.optional(),
|
|
219
219
|
/** Host capabilities the webview is allowed to invoke through the bridge. */
|
|
220
220
|
capabilities: t.array(t.string()).optional()
|
|
@@ -232,7 +232,7 @@ const r = t.record(t.string(), t.unknown()), yt = t.record(t.string(), t.json())
|
|
|
232
232
|
description: o.optional(),
|
|
233
233
|
format: t.literal("vscode-color-theme"),
|
|
234
234
|
mode: t.enum(["light", "dark"]),
|
|
235
|
-
source:
|
|
235
|
+
source: V,
|
|
236
236
|
tokens: t.record(t.string(), t.string()),
|
|
237
237
|
monacoTheme: t.object({
|
|
238
238
|
base: t.enum(["vs", "vs-dark"]),
|
|
@@ -246,7 +246,7 @@ const r = t.record(t.string(), t.unknown()), yt = t.record(t.string(), t.json())
|
|
|
246
246
|
title: o,
|
|
247
247
|
description: o.optional(),
|
|
248
248
|
format: t.literal("vscode-file-icon-theme"),
|
|
249
|
-
source:
|
|
249
|
+
source: V,
|
|
250
250
|
definitions: r,
|
|
251
251
|
fileExtensions: t.record(t.string(), t.string()),
|
|
252
252
|
fileNames: t.record(t.string(), t.string()),
|
|
@@ -273,11 +273,11 @@ const r = t.record(t.string(), t.unknown()), yt = t.record(t.string(), t.json())
|
|
|
273
273
|
relativePath: t.string(),
|
|
274
274
|
fullPath: t.string(),
|
|
275
275
|
label: o
|
|
276
|
-
}), Re = ["workbench.nav.actions", "workbench.nav.overflow"], Pe = ["workbench.left.tree", "workbench.main.left.tree", "workbench.main.right.tree"], Te = ["nav", "activity", "sidenav", "main-header", "main", "secondary-header", "secondary", "side-header", "side", "status", "overlay"], Oe = ["workbench.main", "workbench.main.left", "workbench.main.right", "workbench.secondary"], Ae = ["workbench.settings"], Ee = ["project", "global"], Ce = ["workbench.left", "workbench.main.left", "workbench.main", "workbench.main.right", "workbench.secondary"], It = t.enum(Re),
|
|
276
|
+
}), Re = ["workbench.nav.actions", "workbench.nav.overflow"], Pe = ["workbench.left.tree", "workbench.main.left.tree", "workbench.main.right.tree"], Te = ["nav", "activity", "sidenav", "main-header", "main", "secondary-header", "secondary", "side-header", "side", "status", "overlay"], Oe = ["workbench.main", "workbench.main.left", "workbench.main.right", "workbench.secondary"], Ae = ["workbench.settings"], Ee = ["project", "global"], Ce = ["workbench.left", "workbench.main.left", "workbench.main", "workbench.main.right", "workbench.secondary"], It = t.enum(Re), He = t.enum(Pe);
|
|
277
277
|
t.enum(Te);
|
|
278
|
-
const
|
|
278
|
+
const Ve = t.enum(Oe), _t = t.enum(Ae);
|
|
279
279
|
t.enum(Ce);
|
|
280
|
-
const De = t.union([It,
|
|
280
|
+
const De = t.union([It, He, Ve, _t]), Rt = t.enum(Ee), Ne = t.object({
|
|
281
281
|
id: t.string(),
|
|
282
282
|
extensionId: t.string(),
|
|
283
283
|
title: o,
|
|
@@ -292,20 +292,20 @@ const De = t.union([It, Ve, He, _t]), Rt = t.enum(Ee), Ne = t.object({
|
|
|
292
292
|
}).catchall(t.unknown())).optional()
|
|
293
293
|
}), ze = t.record(t.string(), t.object({
|
|
294
294
|
type: t.string()
|
|
295
|
-
}).catchall(t.unknown())),
|
|
295
|
+
}).catchall(t.unknown())), Ue = t.object({
|
|
296
296
|
id: t.string(),
|
|
297
297
|
extensionId: t.string(),
|
|
298
298
|
commandId: t.string()
|
|
299
|
-
}),
|
|
299
|
+
}), Ke = t.object({
|
|
300
300
|
id: t.string(),
|
|
301
301
|
extensionId: t.string(),
|
|
302
302
|
eventId: t.string()
|
|
303
|
-
}),
|
|
303
|
+
}), Le = t.object({
|
|
304
304
|
id: t.string(),
|
|
305
305
|
extensionId: t.string(),
|
|
306
306
|
cron: t.string(),
|
|
307
307
|
commandId: t.string()
|
|
308
|
-
}),
|
|
308
|
+
}), Me = t.object({
|
|
309
309
|
id: t.string(),
|
|
310
310
|
localId: t.string(),
|
|
311
311
|
extensionId: t.string(),
|
|
@@ -314,7 +314,7 @@ const De = t.union([It, Ve, He, _t]), Rt = t.enum(Ee), Ne = t.object({
|
|
|
314
314
|
cron: t.string(),
|
|
315
315
|
commandId: t.string(),
|
|
316
316
|
enabled: t.boolean()
|
|
317
|
-
}),
|
|
317
|
+
}), $e = t.object({
|
|
318
318
|
id: t.string(),
|
|
319
319
|
extensionId: t.string(),
|
|
320
320
|
commandId: t.string(),
|
|
@@ -326,8 +326,8 @@ const De = t.union([It, Ve, He, _t]), Rt = t.enum(Ee), Ne = t.object({
|
|
|
326
326
|
icon: t.string().optional(),
|
|
327
327
|
presentation: t.enum(["menu-item", "button", "icon-button"]).optional(),
|
|
328
328
|
params: r.optional(),
|
|
329
|
-
when:
|
|
330
|
-
}),
|
|
329
|
+
when: Q.optional()
|
|
330
|
+
}), Be = t.object({
|
|
331
331
|
id: t.string(),
|
|
332
332
|
extensionId: t.string(),
|
|
333
333
|
commandId: t.string(),
|
|
@@ -336,7 +336,7 @@ const De = t.union([It, Ve, He, _t]), Rt = t.enum(Ee), Ne = t.object({
|
|
|
336
336
|
placement: St.optional(),
|
|
337
337
|
icon: t.string().optional(),
|
|
338
338
|
params: r.optional(),
|
|
339
|
-
when:
|
|
339
|
+
when: Q.optional()
|
|
340
340
|
}), qe = t.object({
|
|
341
341
|
version: t.number().int().positive(),
|
|
342
342
|
since: t.string().optional()
|
|
@@ -348,7 +348,7 @@ const De = t.union([It, Ve, He, _t]), Rt = t.enum(Ee), Ne = t.object({
|
|
|
348
348
|
status: t.enum(["verified", "unverified"]),
|
|
349
349
|
host: We.optional(),
|
|
350
350
|
diagnostics: t.array(jt)
|
|
351
|
-
}), Ge = ["sidenav", "main", "secondary", "side"],
|
|
351
|
+
}), Ge = ["sidenav", "main", "secondary", "side"], W = ["main", "secondary", "side"], Ze = t.object({
|
|
352
352
|
id: t.string(),
|
|
353
353
|
localId: t.string(),
|
|
354
354
|
extensionId: t.string(),
|
|
@@ -377,7 +377,17 @@ t.object({
|
|
|
377
377
|
t.object({
|
|
378
378
|
connections: t.array(Je)
|
|
379
379
|
});
|
|
380
|
-
const
|
|
380
|
+
const Qe = (n) => {
|
|
381
|
+
if (typeof n != "string") return !1;
|
|
382
|
+
try {
|
|
383
|
+
const {
|
|
384
|
+
protocol: e
|
|
385
|
+
} = new URL(n);
|
|
386
|
+
return e === "https:" || e === "http:";
|
|
387
|
+
} catch {
|
|
388
|
+
return !1;
|
|
389
|
+
}
|
|
390
|
+
}, b = t.object({
|
|
381
391
|
shorthand: t.string().optional(),
|
|
382
392
|
type: t.string(),
|
|
383
393
|
id: t.string(),
|
|
@@ -386,17 +396,57 @@ const b = t.object({
|
|
|
386
396
|
icon: t.string().optional(),
|
|
387
397
|
extensionId: t.string().optional(),
|
|
388
398
|
metadata: yt.optional()
|
|
389
|
-
}),
|
|
399
|
+
}), I = (n) => t.object({
|
|
400
|
+
extensionId: t.string(),
|
|
401
|
+
kind: t.literal(n),
|
|
402
|
+
id: t.string()
|
|
403
|
+
}), X = I("page"), Xe = I("placement"), Ye = I("mode"), A = I("view"), tn = I("resource-kind"), en = t.object({
|
|
404
|
+
kind: t.literal("page-slot"),
|
|
405
|
+
page: X,
|
|
406
|
+
id: t.string()
|
|
407
|
+
}), nn = t.union([Xe, en]), on = t.object({
|
|
408
|
+
command: I("command"),
|
|
409
|
+
params: yt.optional()
|
|
410
|
+
}), an = t.object({
|
|
411
|
+
anchors: t.array(t.object({
|
|
412
|
+
id: t.string(),
|
|
413
|
+
heading: t.string(),
|
|
414
|
+
occurrence: t.number().int().nonnegative().optional()
|
|
415
|
+
}))
|
|
416
|
+
}), Pt = t.lazy(() => t.object({
|
|
417
|
+
kind: t.literal("page"),
|
|
418
|
+
page: X,
|
|
419
|
+
resource: b.optional(),
|
|
420
|
+
open: t.enum(["preview", "pin"]).optional(),
|
|
421
|
+
section: an.optional(),
|
|
422
|
+
parent: Pt.optional()
|
|
423
|
+
})).meta({
|
|
424
|
+
id: "WorkbenchMetadataPageTarget"
|
|
425
|
+
}), at = t.union([Pt, t.object({
|
|
426
|
+
kind: t.literal("panel"),
|
|
427
|
+
panel: nn,
|
|
428
|
+
resource: b.optional(),
|
|
429
|
+
open: t.enum(["preview", "pin"]).optional()
|
|
430
|
+
})]), D = t.union([at, t.object({
|
|
431
|
+
kind: t.literal("command"),
|
|
432
|
+
target: on
|
|
433
|
+
}), t.object({
|
|
434
|
+
kind: t.literal("href"),
|
|
435
|
+
href: t.string().refine(Qe, "Expected an HTTP or HTTPS URL")
|
|
436
|
+
}), t.object({
|
|
437
|
+
kind: t.literal("compound"),
|
|
438
|
+
targets: t.array(at).min(1)
|
|
439
|
+
})]), Tt = t.object({
|
|
390
440
|
projectId: t.string(),
|
|
391
441
|
repoId: t.string(),
|
|
392
442
|
path: t.string(),
|
|
393
443
|
remote: t.string().nullable().optional(),
|
|
394
444
|
role: t.enum(["default", "selected", "workspace"]).optional()
|
|
395
|
-
}),
|
|
445
|
+
}), Ot = t.object({
|
|
396
446
|
id: t.string(),
|
|
397
447
|
kind: Ie,
|
|
398
448
|
context: r
|
|
399
|
-
}),
|
|
449
|
+
}), At = t.object({
|
|
400
450
|
target: De,
|
|
401
451
|
mode: t.string().optional(),
|
|
402
452
|
projectId: t.string().optional(),
|
|
@@ -416,144 +466,145 @@ t.object({
|
|
|
416
466
|
workspaceId: t.string().optional(),
|
|
417
467
|
params: r.optional(),
|
|
418
468
|
resource: b.optional(),
|
|
419
|
-
attachment:
|
|
420
|
-
slot:
|
|
421
|
-
repo:
|
|
422
|
-
source:
|
|
469
|
+
attachment: At.optional(),
|
|
470
|
+
slot: Ot.optional(),
|
|
471
|
+
repo: Tt.optional(),
|
|
472
|
+
source: J.optional(),
|
|
423
473
|
metadata: r.optional()
|
|
424
474
|
});
|
|
425
475
|
t.object({
|
|
426
476
|
workspaceId: t.string().optional(),
|
|
427
477
|
params: r.optional(),
|
|
428
478
|
resource: b.optional(),
|
|
429
|
-
attachment:
|
|
430
|
-
slot:
|
|
431
|
-
repo:
|
|
432
|
-
source:
|
|
479
|
+
attachment: At.optional(),
|
|
480
|
+
slot: Ot.optional(),
|
|
481
|
+
repo: Tt.optional(),
|
|
482
|
+
source: J.optional(),
|
|
433
483
|
metadata: r.optional()
|
|
434
484
|
});
|
|
435
485
|
t.object({
|
|
436
486
|
eventId: t.string().min(1),
|
|
437
487
|
payload: r
|
|
438
488
|
}).strict();
|
|
439
|
-
const
|
|
489
|
+
const rn = t.object({
|
|
440
490
|
name: t.string().optional(),
|
|
441
491
|
message: t.string(),
|
|
442
492
|
stack: t.string().optional()
|
|
443
|
-
}),
|
|
493
|
+
}), sn = t.object({
|
|
444
494
|
type: t.enum(["info", "success", "warning", "error"]),
|
|
445
495
|
title: t.string().optional(),
|
|
446
496
|
message: t.string(),
|
|
447
497
|
metadata: r.optional()
|
|
448
|
-
}),
|
|
498
|
+
}), ln = t.object({
|
|
449
499
|
code: t.string(),
|
|
450
500
|
message: t.string(),
|
|
451
501
|
severity: t.enum(["info", "warning", "error"]),
|
|
452
502
|
extensionId: t.string().optional(),
|
|
453
503
|
commandId: t.string().optional(),
|
|
454
504
|
metadata: r.optional()
|
|
455
|
-
}),
|
|
505
|
+
}), cn = D, dn = t.object({
|
|
456
506
|
ok: t.boolean(),
|
|
457
507
|
status: t.enum(["success", "rejected", "error"]),
|
|
458
508
|
value: t.unknown().optional(),
|
|
509
|
+
navigationRequests: t.array(cn).optional(),
|
|
459
510
|
code: t.string().optional(),
|
|
460
511
|
reason: t.string().optional(),
|
|
461
512
|
data: r.optional(),
|
|
462
|
-
error:
|
|
463
|
-
notices: t.array(
|
|
464
|
-
diagnostics: t.array(
|
|
513
|
+
error: rn.optional(),
|
|
514
|
+
notices: t.array(sn).optional(),
|
|
515
|
+
diagnostics: t.array(ln).optional()
|
|
465
516
|
});
|
|
466
517
|
t.object({
|
|
467
518
|
commandId: t.string(),
|
|
468
519
|
extensionId: t.string(),
|
|
469
520
|
eventIds: t.array(t.string()).optional(),
|
|
470
|
-
outcome:
|
|
521
|
+
outcome: dn
|
|
471
522
|
});
|
|
472
|
-
const
|
|
523
|
+
const g = {
|
|
473
524
|
id: t.string(),
|
|
474
525
|
name: t.string(),
|
|
475
526
|
description: t.string().optional(),
|
|
476
527
|
readOnly: t.boolean().optional()
|
|
477
|
-
},
|
|
528
|
+
}, M = {
|
|
478
529
|
min: t.number().optional(),
|
|
479
530
|
max: t.number().optional(),
|
|
480
531
|
step: t.number().optional()
|
|
481
|
-
},
|
|
532
|
+
}, Et = t.strictObject({
|
|
482
533
|
x: t.number(),
|
|
483
534
|
y: t.number()
|
|
484
|
-
}),
|
|
535
|
+
}), Ct = t.tuple([t.number(), t.number()]), rt = t.union([t.string(), t.array(t.string())]), st = t.strictObject({
|
|
485
536
|
id: t.string(),
|
|
486
537
|
name: t.string(),
|
|
487
538
|
icon: t.string().optional(),
|
|
488
539
|
color: t.string().optional(),
|
|
489
540
|
description: t.string().optional(),
|
|
490
541
|
disabled: t.boolean().optional()
|
|
491
|
-
}),
|
|
542
|
+
}), lt = {
|
|
492
543
|
placeholder: t.string().optional(),
|
|
493
544
|
searchable: t.boolean().optional(),
|
|
494
545
|
searchPlaceholder: t.string().optional(),
|
|
495
546
|
emptyText: t.string().optional(),
|
|
496
547
|
disabled: t.boolean().optional()
|
|
497
|
-
},
|
|
548
|
+
}, ct = t.strictObject({
|
|
498
549
|
src: t.string(),
|
|
499
550
|
alt: t.string()
|
|
500
|
-
}),
|
|
551
|
+
}), F = t.union([t.string(), t.number(), t.boolean(), t.null()]), pn = t.union([F, t.array(F), ct.extend({
|
|
501
552
|
type: t.literal("image")
|
|
502
553
|
}), t.strictObject({
|
|
503
554
|
type: t.literal("image-gallery"),
|
|
504
|
-
images: t.array(
|
|
505
|
-
})]),
|
|
506
|
-
...
|
|
507
|
-
|
|
555
|
+
images: t.array(ct)
|
|
556
|
+
})]), gn = t.union([F, t.array(t.string()), Ct, Et]), Ht = t.record(t.string(), gn), Vt = t.discriminatedUnion("type", [t.strictObject({
|
|
557
|
+
...g,
|
|
558
|
+
...M,
|
|
508
559
|
type: t.literal("number"),
|
|
509
560
|
defaultValue: t.number()
|
|
510
561
|
}), t.strictObject({
|
|
511
|
-
...
|
|
562
|
+
...g,
|
|
512
563
|
type: t.literal("boolean"),
|
|
513
564
|
defaultValue: t.boolean()
|
|
514
565
|
}), t.strictObject({
|
|
515
|
-
...
|
|
566
|
+
...g,
|
|
516
567
|
type: t.literal("text"),
|
|
517
568
|
defaultValue: t.string(),
|
|
518
569
|
singleLine: t.boolean().optional()
|
|
519
570
|
}), t.strictObject({
|
|
520
|
-
...
|
|
571
|
+
...g,
|
|
521
572
|
type: t.literal("markdown"),
|
|
522
573
|
defaultValue: t.string(),
|
|
523
574
|
placeholder: t.string().optional()
|
|
524
575
|
}), t.strictObject({
|
|
525
|
-
...
|
|
526
|
-
...
|
|
576
|
+
...g,
|
|
577
|
+
...lt,
|
|
527
578
|
type: t.literal("selection"),
|
|
528
|
-
defaultValue:
|
|
529
|
-
options: t.array(
|
|
579
|
+
defaultValue: rt,
|
|
580
|
+
options: t.array(st),
|
|
530
581
|
multiSelect: t.boolean().optional(),
|
|
531
582
|
clearable: t.boolean().optional(),
|
|
532
583
|
group: t.strictObject({
|
|
533
584
|
id: t.string(),
|
|
534
585
|
name: t.string(),
|
|
535
586
|
defaultValue: t.string(),
|
|
536
|
-
options: t.array(
|
|
537
|
-
...
|
|
587
|
+
options: t.array(st),
|
|
588
|
+
...lt
|
|
538
589
|
}).optional()
|
|
539
590
|
}), t.strictObject({
|
|
540
|
-
...
|
|
591
|
+
...g,
|
|
541
592
|
type: t.literal("date"),
|
|
542
593
|
defaultValue: t.string(),
|
|
543
594
|
min: t.string().optional(),
|
|
544
595
|
max: t.string().optional()
|
|
545
596
|
}), t.strictObject({
|
|
546
|
-
...
|
|
597
|
+
...g,
|
|
547
598
|
type: t.literal("color"),
|
|
548
599
|
defaultValue: t.string()
|
|
549
600
|
}), t.strictObject({
|
|
550
|
-
...
|
|
601
|
+
...g,
|
|
551
602
|
type: t.literal("readOnly"),
|
|
552
|
-
value:
|
|
603
|
+
value: pn
|
|
553
604
|
}), t.strictObject({
|
|
554
|
-
...
|
|
605
|
+
...g,
|
|
555
606
|
type: t.literal("resource"),
|
|
556
|
-
defaultValue:
|
|
607
|
+
defaultValue: rt,
|
|
557
608
|
options: t.array(t.strictObject({
|
|
558
609
|
id: t.string(),
|
|
559
610
|
name: t.string(),
|
|
@@ -569,16 +620,16 @@ const m = {
|
|
|
569
620
|
placeholder: t.string().optional(),
|
|
570
621
|
emptyText: t.string().optional()
|
|
571
622
|
}), t.strictObject({
|
|
572
|
-
...
|
|
573
|
-
|
|
623
|
+
...g,
|
|
624
|
+
...M,
|
|
574
625
|
type: t.literal("range"),
|
|
575
|
-
defaultValue:
|
|
626
|
+
defaultValue: Ct,
|
|
576
627
|
min: t.number(),
|
|
577
628
|
max: t.number(),
|
|
578
629
|
unit: t.string().optional(),
|
|
579
630
|
markerCount: t.number().optional()
|
|
580
631
|
}), t.strictObject({
|
|
581
|
-
...
|
|
632
|
+
...g,
|
|
582
633
|
type: t.literal("segmented"),
|
|
583
634
|
defaultValue: t.string(),
|
|
584
635
|
variant: t.enum(["default", "dots"]).optional(),
|
|
@@ -589,7 +640,7 @@ const m = {
|
|
|
589
640
|
indicatorColor: t.string().optional()
|
|
590
641
|
}))
|
|
591
642
|
}), t.strictObject({
|
|
592
|
-
...
|
|
643
|
+
...g,
|
|
593
644
|
type: t.literal("actions"),
|
|
594
645
|
defaultValue: t.string().optional(),
|
|
595
646
|
options: t.array(t.strictObject({
|
|
@@ -599,28 +650,28 @@ const m = {
|
|
|
599
650
|
disabled: t.boolean().optional()
|
|
600
651
|
}))
|
|
601
652
|
}), t.strictObject({
|
|
602
|
-
...
|
|
653
|
+
...g,
|
|
603
654
|
type: t.literal("anchorGrid"),
|
|
604
655
|
defaultValue: t.enum(["top-left", "top", "top-right", "left", "center", "right", "bottom-left", "bottom", "bottom-right"])
|
|
605
656
|
}), t.strictObject({
|
|
606
|
-
...
|
|
607
|
-
|
|
657
|
+
...g,
|
|
658
|
+
...M,
|
|
608
659
|
type: t.literal("vector"),
|
|
609
|
-
defaultValue:
|
|
660
|
+
defaultValue: Et,
|
|
610
661
|
coordinateMode: t.enum(["cartesian", "screen"]).optional(),
|
|
611
662
|
xLabel: t.string().optional(),
|
|
612
663
|
yLabel: t.string().optional()
|
|
613
|
-
})]),
|
|
664
|
+
})]), mn = t.strictObject({
|
|
614
665
|
id: t.string(),
|
|
615
666
|
title: t.string(),
|
|
616
667
|
description: t.string().optional(),
|
|
617
668
|
params: t.array(Vt),
|
|
618
669
|
collapsible: t.boolean().optional(),
|
|
619
670
|
defaultCollapsed: t.boolean().optional()
|
|
620
|
-
}),
|
|
671
|
+
}), oi = t.strictObject({
|
|
621
672
|
params: t.array(Vt).optional(),
|
|
622
|
-
groups: t.array(
|
|
623
|
-
values:
|
|
673
|
+
groups: t.array(mn).optional(),
|
|
674
|
+
values: Ht.optional(),
|
|
624
675
|
readOnly: t.boolean().optional()
|
|
625
676
|
}), _ = t.object({
|
|
626
677
|
id: t.string(),
|
|
@@ -631,7 +682,7 @@ const m = {
|
|
|
631
682
|
refreshEventIds: t.array(t.string().min(1)).optional(),
|
|
632
683
|
emptyTitle: o.optional(),
|
|
633
684
|
emptyDescription: o.optional()
|
|
634
|
-
}),
|
|
685
|
+
}), un = _.extend({
|
|
635
686
|
searchable: t.boolean().optional(),
|
|
636
687
|
searchPlaceholder: o.optional(),
|
|
637
688
|
headerHandlerId: t.string().optional(),
|
|
@@ -640,23 +691,23 @@ const m = {
|
|
|
640
691
|
footerHandlerId: t.string().optional(),
|
|
641
692
|
defaultExpandedSectionIds: t.array(t.string()).optional(),
|
|
642
693
|
defaultExpandedNodeIds: t.array(t.string()).optional()
|
|
643
|
-
}),
|
|
694
|
+
}), bn = _.extend({
|
|
644
695
|
loadHandlerId: t.string(),
|
|
645
696
|
saveHandlerId: t.string().optional()
|
|
646
|
-
}),
|
|
697
|
+
}), hn = _.extend({
|
|
647
698
|
queryHandlerId: t.string(),
|
|
648
699
|
valueChangeHandlerId: t.string().optional(),
|
|
649
700
|
applyHandlerId: t.string().optional(),
|
|
650
701
|
resetHandlerId: t.string().optional(),
|
|
651
|
-
defaultValues:
|
|
652
|
-
}),
|
|
702
|
+
defaultValues: Ht.optional()
|
|
703
|
+
}), dt = t.object({
|
|
653
704
|
light: t.string(),
|
|
654
705
|
dark: t.string(),
|
|
655
706
|
foreground: t.object({
|
|
656
707
|
light: t.string(),
|
|
657
708
|
dark: t.string()
|
|
658
709
|
}).optional()
|
|
659
|
-
}),
|
|
710
|
+
}), yn = t.discriminatedUnion("type", [t.object({
|
|
660
711
|
type: t.literal("unique")
|
|
661
712
|
}), t.object({
|
|
662
713
|
type: t.literal("histogram"),
|
|
@@ -664,60 +715,60 @@ const m = {
|
|
|
664
715
|
}), t.object({
|
|
665
716
|
type: t.literal("top-values"),
|
|
666
717
|
limit: t.number().int().positive().optional()
|
|
667
|
-
})]),
|
|
718
|
+
})]), jn = t.discriminatedUnion("type", [t.object({
|
|
668
719
|
type: t.literal("json")
|
|
669
720
|
}), t.object({
|
|
670
721
|
type: t.literal("color-scale"),
|
|
671
722
|
stops: t.array(t.object({
|
|
672
723
|
value: t.number(),
|
|
673
|
-
color:
|
|
724
|
+
color: dt
|
|
674
725
|
}))
|
|
675
726
|
}), t.object({
|
|
676
727
|
type: t.literal("categorical-color"),
|
|
677
728
|
categories: t.array(t.object({
|
|
678
729
|
value: t.union([t.string(), t.number(), t.boolean(), t.null()]),
|
|
679
|
-
color:
|
|
730
|
+
color: dt
|
|
680
731
|
}))
|
|
681
|
-
})]),
|
|
732
|
+
})]), Sn = t.object({
|
|
682
733
|
id: t.string(),
|
|
683
734
|
label: o.optional(),
|
|
684
735
|
description: o.optional(),
|
|
685
736
|
icon: t.string().optional(),
|
|
686
737
|
hidden: t.boolean().optional(),
|
|
687
|
-
stat:
|
|
688
|
-
renderer:
|
|
689
|
-
}),
|
|
738
|
+
stat: yn.optional(),
|
|
739
|
+
renderer: jn.optional()
|
|
740
|
+
}), xn = t.object({
|
|
690
741
|
id: t.string(),
|
|
691
742
|
label: o,
|
|
692
743
|
icon: t.string().optional(),
|
|
693
744
|
destructive: t.boolean().optional(),
|
|
694
745
|
commandId: t.string()
|
|
695
|
-
}),
|
|
746
|
+
}), fn = t.object({
|
|
696
747
|
id: t.string(),
|
|
697
748
|
label: o,
|
|
698
749
|
icon: t.string().optional(),
|
|
699
750
|
destructive: t.boolean().optional(),
|
|
700
751
|
commandId: t.string()
|
|
701
|
-
}),
|
|
702
|
-
columns: t.array(
|
|
752
|
+
}), kn = _.extend({
|
|
753
|
+
columns: t.array(Sn).optional(),
|
|
703
754
|
queryHandlerId: t.string(),
|
|
704
755
|
selectionMode: t.enum(["none", "multiple"]).optional(),
|
|
705
|
-
selectionActions: t.array(
|
|
706
|
-
rowActions: t.array(
|
|
756
|
+
selectionActions: t.array(fn).optional(),
|
|
757
|
+
rowActions: t.array(xn).optional(),
|
|
707
758
|
rowActivationHandlerId: t.string().optional(),
|
|
708
759
|
initialPageSize: t.number().int().positive().optional(),
|
|
709
760
|
pageSizeOptions: t.array(t.number().int().positive()).optional()
|
|
710
|
-
}),
|
|
761
|
+
}), pt = t.object({
|
|
711
762
|
value: t.string(),
|
|
712
763
|
label: o,
|
|
713
764
|
color: t.string().optional(),
|
|
714
765
|
icon: t.string().nullable().optional()
|
|
715
|
-
}),
|
|
766
|
+
}), vn = t.discriminatedUnion("kind", [t.object({
|
|
716
767
|
kind: t.literal("enum"),
|
|
717
|
-
options: t.array(
|
|
768
|
+
options: t.array(pt)
|
|
718
769
|
}), t.object({
|
|
719
770
|
kind: t.literal("enum-multi"),
|
|
720
|
-
options: t.array(
|
|
771
|
+
options: t.array(pt)
|
|
721
772
|
}), t.object({
|
|
722
773
|
kind: t.literal("status"),
|
|
723
774
|
statuses: t.object({
|
|
@@ -733,22 +784,22 @@ const m = {
|
|
|
733
784
|
kind: t.literal("number")
|
|
734
785
|
}), t.object({
|
|
735
786
|
kind: t.literal("user")
|
|
736
|
-
})]),
|
|
787
|
+
})]), wn = t.union([t.object({
|
|
737
788
|
kind: t.literal("badge-list"),
|
|
738
789
|
itemsAttributeId: t.string()
|
|
739
790
|
}), t.object({
|
|
740
791
|
kind: t.string()
|
|
741
|
-
}).passthrough().refine((n) => n.kind !== "badge-list")]),
|
|
792
|
+
}).passthrough().refine((n) => n.kind !== "badge-list")]), In = t.object({
|
|
742
793
|
id: t.string(),
|
|
743
794
|
label: o,
|
|
744
|
-
type:
|
|
795
|
+
type: vn,
|
|
745
796
|
filterable: t.boolean().optional(),
|
|
746
797
|
groupable: t.boolean().optional(),
|
|
747
798
|
sortable: t.boolean().optional(),
|
|
748
799
|
displayable: t.boolean().optional(),
|
|
749
800
|
editable: t.boolean().optional(),
|
|
750
|
-
display:
|
|
751
|
-
}),
|
|
801
|
+
display: wn.optional()
|
|
802
|
+
}), Dt = t.object({
|
|
752
803
|
viewMode: t.enum(["board", "list"]),
|
|
753
804
|
columnGrouping: t.string(),
|
|
754
805
|
rowGrouping: t.string(),
|
|
@@ -757,13 +808,13 @@ const m = {
|
|
|
757
808
|
direction: t.enum(["asc", "desc"])
|
|
758
809
|
}),
|
|
759
810
|
displayProperties: t.array(t.string())
|
|
760
|
-
}),
|
|
811
|
+
}), _n = t.object({
|
|
761
812
|
id: t.string(),
|
|
762
813
|
title: o,
|
|
763
|
-
settings:
|
|
814
|
+
settings: Dt,
|
|
764
815
|
filters: t.record(t.string(), t.array(t.string())),
|
|
765
816
|
isDefault: t.boolean().optional()
|
|
766
|
-
}),
|
|
817
|
+
}), Rn = t.object({
|
|
767
818
|
commandId: t.string(),
|
|
768
819
|
title: o.optional(),
|
|
769
820
|
submitLabel: o.optional(),
|
|
@@ -781,85 +832,45 @@ const m = {
|
|
|
781
832
|
submitError: o.optional(),
|
|
782
833
|
removeFile: o.optional()
|
|
783
834
|
}).optional()
|
|
784
|
-
}),
|
|
835
|
+
}), Pn = t.object({
|
|
785
836
|
id: t.string(),
|
|
786
837
|
label: o,
|
|
787
838
|
icon: t.string().optional(),
|
|
788
839
|
commandId: t.string(),
|
|
789
840
|
destructive: t.boolean().optional()
|
|
790
|
-
}),
|
|
841
|
+
}), Tn = _.extend({
|
|
791
842
|
extensionInstanceId: t.string().optional(),
|
|
792
|
-
attributes: t.array(
|
|
843
|
+
attributes: t.array(In).optional(),
|
|
793
844
|
queryHandlerId: t.string(),
|
|
794
845
|
attributeChangeHandlerId: t.string().optional(),
|
|
795
846
|
reorderHandlerId: t.string().optional(),
|
|
796
847
|
columnActionHandlerId: t.string().optional(),
|
|
797
|
-
createRow:
|
|
798
|
-
rowActions: t.array(
|
|
848
|
+
createRow: Rn.optional(),
|
|
849
|
+
rowActions: t.array(Pn).optional(),
|
|
799
850
|
rowActivationHandlerId: t.string().optional(),
|
|
800
|
-
defaultSettings:
|
|
851
|
+
defaultSettings: Dt.partial().optional(),
|
|
801
852
|
defaultFilters: t.record(t.string(), t.array(t.string())).optional(),
|
|
802
|
-
defaultViews: t.array(
|
|
853
|
+
defaultViews: t.array(_n).optional(),
|
|
803
854
|
defaultActiveViewId: t.string().optional(),
|
|
804
855
|
hideToolbar: t.boolean().optional()
|
|
805
|
-
}),
|
|
856
|
+
}), On = t.object({
|
|
806
857
|
id: t.string(),
|
|
807
858
|
extensionId: t.string(),
|
|
808
859
|
title: o,
|
|
809
860
|
resourceKind: t.string().optional(),
|
|
810
861
|
queryHandlerId: t.string(),
|
|
811
862
|
refreshEventIds: t.array(t.string().min(1)).optional()
|
|
812
|
-
}),
|
|
813
|
-
extensionId: t.string(),
|
|
814
|
-
kind: t.literal(n),
|
|
815
|
-
id: t.string()
|
|
816
|
-
}), Q = I("page"), kn = I("placement"), vn = I("mode"), A = I("view"), wn = I("resource-kind"), In = t.object({
|
|
817
|
-
kind: t.literal("page-slot"),
|
|
818
|
-
page: Q,
|
|
819
|
-
id: t.string()
|
|
820
|
-
}), _n = t.union([kn, In]), Rn = t.object({
|
|
821
|
-
command: I("command"),
|
|
822
|
-
params: yt.optional()
|
|
823
|
-
}), Pn = t.object({
|
|
824
|
-
anchors: t.array(t.object({
|
|
825
|
-
id: t.string(),
|
|
826
|
-
heading: t.string(),
|
|
827
|
-
occurrence: t.number().int().nonnegative().optional()
|
|
828
|
-
}))
|
|
829
|
-
}), Dt = t.lazy(() => t.object({
|
|
830
|
-
kind: t.literal("page"),
|
|
831
|
-
page: Q,
|
|
832
|
-
resource: b.optional(),
|
|
833
|
-
open: t.enum(["preview", "pin"]).optional(),
|
|
834
|
-
section: Pn.optional(),
|
|
835
|
-
parent: Dt.optional()
|
|
836
|
-
})).meta({
|
|
837
|
-
id: "WorkbenchMetadataPageTarget"
|
|
838
|
-
}), pt = t.union([Dt, t.object({
|
|
839
|
-
kind: t.literal("panel"),
|
|
840
|
-
panel: _n,
|
|
841
|
-
resource: b.optional(),
|
|
842
|
-
open: t.enum(["preview", "pin"]).optional()
|
|
843
|
-
})]), X = t.union([pt, t.object({
|
|
844
|
-
kind: t.literal("command"),
|
|
845
|
-
target: Rn
|
|
846
|
-
}), t.object({
|
|
847
|
-
kind: t.literal("href"),
|
|
848
|
-
href: t.string()
|
|
849
|
-
}), t.object({
|
|
850
|
-
kind: t.literal("compound"),
|
|
851
|
-
targets: t.array(pt).min(1)
|
|
852
|
-
})]), Tn = t.object({
|
|
863
|
+
}), An = t.object({
|
|
853
864
|
key: t.string(),
|
|
854
865
|
ctrl: t.boolean(),
|
|
855
866
|
shift: t.boolean(),
|
|
856
867
|
alt: t.boolean(),
|
|
857
868
|
meta: t.boolean(),
|
|
858
869
|
modifiers: t.array(t.string())
|
|
859
|
-
}),
|
|
870
|
+
}), En = t.object({
|
|
860
871
|
id: t.string(),
|
|
861
872
|
extensionId: t.string(),
|
|
862
|
-
action:
|
|
873
|
+
action: D,
|
|
863
874
|
/** Original chord string as authored, e.g. "mod+shift+p". */
|
|
864
875
|
key: t.string(),
|
|
865
876
|
/**
|
|
@@ -870,13 +881,13 @@ const m = {
|
|
|
870
881
|
*/
|
|
871
882
|
canonicalChord: t.string(),
|
|
872
883
|
/** Result of TanStack's `parseHotkey(key, "mac")`. */
|
|
873
|
-
parsed:
|
|
884
|
+
parsed: An,
|
|
874
885
|
platformOverrides: t.object({
|
|
875
886
|
mac: t.string().optional(),
|
|
876
887
|
linux: t.string().optional(),
|
|
877
888
|
win: t.string().optional()
|
|
878
889
|
}).optional(),
|
|
879
|
-
when:
|
|
890
|
+
when: Q.optional()
|
|
880
891
|
}), Y = t.object({
|
|
881
892
|
mountStrategy: t.enum(["active", "keep-mounted"]).optional(),
|
|
882
893
|
hiddenByDefault: t.boolean().optional(),
|
|
@@ -885,54 +896,54 @@ const m = {
|
|
|
885
896
|
queryHandlerId: t.string(),
|
|
886
897
|
refreshEventIds: t.array(t.string()).optional()
|
|
887
898
|
}).optional()
|
|
888
|
-
}),
|
|
899
|
+
}), Cn = t.enum(["fixed", "open", "closed"]), Hn = t.object({
|
|
889
900
|
defaultPx: t.number().optional(),
|
|
890
901
|
minPx: t.number().optional(),
|
|
891
902
|
maxPx: t.number().optional()
|
|
892
|
-
}),
|
|
903
|
+
}), Vn = t.object({
|
|
893
904
|
showHeader: t.boolean().optional(),
|
|
894
|
-
size:
|
|
905
|
+
size: Hn.optional(),
|
|
895
906
|
collapsible: t.boolean().optional(),
|
|
896
907
|
alwaysShowTabs: t.boolean().optional()
|
|
897
908
|
}), Nt = t.object({
|
|
898
|
-
kinds: t.array(
|
|
899
|
-
}).strict(),
|
|
909
|
+
kinds: t.array(tn).min(1)
|
|
910
|
+
}).strict(), Dn = Nt.extend({
|
|
900
911
|
view: A,
|
|
901
912
|
cardinality: t.enum(["one", "many"]),
|
|
902
|
-
add:
|
|
913
|
+
add: D.optional()
|
|
903
914
|
}), zt = t.discriminatedUnion("kind", [t.object({
|
|
904
915
|
kind: t.literal("view"),
|
|
905
916
|
view: A,
|
|
906
|
-
presence:
|
|
917
|
+
presence: Cn
|
|
907
918
|
}).strict(), t.object({
|
|
908
919
|
kind: t.literal("binding"),
|
|
909
|
-
binding:
|
|
910
|
-
}).strict()]),
|
|
920
|
+
binding: Dn
|
|
921
|
+
}).strict()]), Nn = t.discriminatedUnion("kind", [Y.extend({
|
|
911
922
|
kind: t.literal("view"),
|
|
912
923
|
view: A,
|
|
913
924
|
cardinality: t.enum(["one", "many"])
|
|
914
925
|
}).strict(), t.object({
|
|
915
926
|
kind: t.literal("panels"),
|
|
916
927
|
empty: A
|
|
917
|
-
}).strict()]),
|
|
928
|
+
}).strict()]), zn = Y.extend({
|
|
918
929
|
id: t.string(),
|
|
919
930
|
region: t.enum(["main", "secondary", "side"]),
|
|
920
931
|
order: t.number().optional(),
|
|
921
932
|
item: zt,
|
|
922
933
|
openOn: t.literal("page-resource").optional()
|
|
923
|
-
}).strict(),
|
|
934
|
+
}).strict(), Un = t.object({
|
|
924
935
|
id: t.string(),
|
|
925
936
|
localId: t.string(),
|
|
926
937
|
extensionId: t.string(),
|
|
927
938
|
title: o,
|
|
928
939
|
icon: t.string().optional(),
|
|
929
940
|
path: t.string(),
|
|
930
|
-
mode:
|
|
931
|
-
parent:
|
|
941
|
+
mode: Ye,
|
|
942
|
+
parent: X.optional(),
|
|
932
943
|
resource: Nt.optional(),
|
|
933
|
-
main:
|
|
934
|
-
slots: t.array(
|
|
935
|
-
}),
|
|
944
|
+
main: Nn,
|
|
945
|
+
slots: t.array(zn)
|
|
946
|
+
}), Kn = t.object({
|
|
936
947
|
id: t.string(),
|
|
937
948
|
extensionId: t.string(),
|
|
938
949
|
extensionInstanceId: t.string().optional(),
|
|
@@ -945,7 +956,7 @@ const m = {
|
|
|
945
956
|
icon: t.string().optional(),
|
|
946
957
|
section: t.string().optional(),
|
|
947
958
|
webview: xt
|
|
948
|
-
}),
|
|
959
|
+
}), Ut = t.object({
|
|
949
960
|
key: t.string(),
|
|
950
961
|
extensionId: t.string(),
|
|
951
962
|
type: fe,
|
|
@@ -954,17 +965,17 @@ const m = {
|
|
|
954
965
|
enum: t.array(t.unknown()).optional(),
|
|
955
966
|
title: o.optional(),
|
|
956
967
|
description: o.optional()
|
|
957
|
-
}),
|
|
968
|
+
}), Ln = Ut.extend({
|
|
958
969
|
value: t.unknown().optional(),
|
|
959
970
|
source: ke
|
|
960
971
|
});
|
|
961
972
|
t.object({
|
|
962
|
-
settings: t.array(
|
|
973
|
+
settings: t.array(Ln)
|
|
963
974
|
});
|
|
964
975
|
t.object({
|
|
965
976
|
value: t.unknown()
|
|
966
977
|
});
|
|
967
|
-
|
|
978
|
+
Kn.extend({
|
|
968
979
|
webview: ft
|
|
969
980
|
});
|
|
970
981
|
const Mn = t.object({
|
|
@@ -977,13 +988,13 @@ const Mn = t.object({
|
|
|
977
988
|
extensionId: t.string(),
|
|
978
989
|
kind: t.literal(n),
|
|
979
990
|
id: t.string()
|
|
980
|
-
}), E = S("command"), k = S("mode"),
|
|
991
|
+
}), E = S("command"), k = S("mode"), Kt = S("page"), Lt = S("resource-kind"), $n = S("settings-section");
|
|
981
992
|
S("status");
|
|
982
|
-
const j = S("view"),
|
|
993
|
+
const j = S("view"), Mt = t.object({
|
|
983
994
|
mode: t.union([k, t.array(k)]).optional(),
|
|
984
995
|
source: t.array(t.enum(["cli", "dashboard", "api", "schedule", "event", "automation", "command-panel"])).optional(),
|
|
985
996
|
view: t.union([j, t.array(j)]).optional(),
|
|
986
|
-
resourceType: t.array(
|
|
997
|
+
resourceType: t.array(Lt).optional(),
|
|
987
998
|
metadata: r.optional()
|
|
988
999
|
}), R = {
|
|
989
1000
|
id: !0,
|
|
@@ -991,7 +1002,7 @@ const j = S("view"), Bt = t.object({
|
|
|
991
1002
|
title: !0,
|
|
992
1003
|
icon: !0,
|
|
993
1004
|
resourceKind: !0
|
|
994
|
-
},
|
|
1005
|
+
}, G = t.object({
|
|
995
1006
|
id: t.string(),
|
|
996
1007
|
label: o,
|
|
997
1008
|
icon: t.string().optional(),
|
|
@@ -1015,59 +1026,59 @@ const j = S("view"), Bt = t.object({
|
|
|
1015
1026
|
submitError: o.optional(),
|
|
1016
1027
|
removeFile: o.optional()
|
|
1017
1028
|
}).optional()
|
|
1018
|
-
}),
|
|
1029
|
+
}), qn = t.object({
|
|
1019
1030
|
kind: t.literal("webview"),
|
|
1020
1031
|
webview: ft
|
|
1021
|
-
}),
|
|
1032
|
+
}), Wn = un.omit(R).extend({
|
|
1022
1033
|
kind: t.literal("tree")
|
|
1023
|
-
}),
|
|
1034
|
+
}), Fn = bn.omit(R).extend({
|
|
1024
1035
|
kind: t.literal("file")
|
|
1025
|
-
}),
|
|
1036
|
+
}), Gn = hn.omit(R).extend({
|
|
1026
1037
|
kind: t.literal("controls")
|
|
1027
|
-
}),
|
|
1038
|
+
}), Zn = Tn.omit({
|
|
1028
1039
|
...R,
|
|
1029
1040
|
createRow: !0,
|
|
1030
1041
|
rowActions: !0
|
|
1031
1042
|
}).extend({
|
|
1032
1043
|
kind: t.literal("kanban"),
|
|
1033
1044
|
createRow: Bn.optional(),
|
|
1034
|
-
rowActions: t.array(
|
|
1035
|
-
}),
|
|
1045
|
+
rowActions: t.array(G).optional()
|
|
1046
|
+
}), Jn = kn.omit({
|
|
1036
1047
|
...R,
|
|
1037
1048
|
selectionActions: !0,
|
|
1038
1049
|
rowActions: !0
|
|
1039
1050
|
}).extend({
|
|
1040
1051
|
kind: t.literal("dataTable"),
|
|
1041
|
-
selectionActions: t.array(
|
|
1042
|
-
rowActions: t.array(
|
|
1043
|
-
}),
|
|
1052
|
+
selectionActions: t.array(G).optional(),
|
|
1053
|
+
rowActions: t.array(G).optional()
|
|
1054
|
+
}), Qn = t.discriminatedUnion("kind", [qn, Wn, Fn, Gn, Zn, Jn]), Xn = t.object({
|
|
1044
1055
|
id: t.string(),
|
|
1045
1056
|
localId: t.string(),
|
|
1046
1057
|
extensionId: t.string(),
|
|
1047
1058
|
title: o,
|
|
1048
1059
|
icon: t.string().optional(),
|
|
1049
|
-
body:
|
|
1050
|
-
}),
|
|
1060
|
+
body: Qn
|
|
1061
|
+
}), Yn = t.object({
|
|
1051
1062
|
id: t.string(),
|
|
1052
1063
|
localId: t.string(),
|
|
1053
1064
|
extensionId: t.string(),
|
|
1054
1065
|
label: o,
|
|
1055
1066
|
icon: t.string().optional(),
|
|
1056
|
-
regions: t.array(t.enum(
|
|
1067
|
+
regions: t.array(t.enum(W)),
|
|
1057
1068
|
floatingPanels: t.enum(["visible", "hidden"]).optional(),
|
|
1058
|
-
regionSettings: t.partialRecord(t.enum(Ge),
|
|
1069
|
+
regionSettings: t.partialRecord(t.enum(Ge), Vn).optional(),
|
|
1059
1070
|
defaultTheme: S("theme").optional(),
|
|
1060
1071
|
chrome: t.partialRecord(t.enum(["nav", "sidenav", "activity", "status"]), t.union([j, t.literal(!1)])).optional()
|
|
1061
|
-
}),
|
|
1072
|
+
}), to = Y.extend({
|
|
1062
1073
|
id: t.string(),
|
|
1063
1074
|
localId: t.string(),
|
|
1064
1075
|
extensionId: t.string(),
|
|
1065
1076
|
mode: k,
|
|
1066
1077
|
item: zt,
|
|
1067
|
-
region: t.enum(
|
|
1078
|
+
region: t.enum(W),
|
|
1068
1079
|
order: t.number().optional(),
|
|
1069
|
-
movableTo: t.array(t.enum(
|
|
1070
|
-
}),
|
|
1080
|
+
movableTo: t.array(t.enum(W)).optional()
|
|
1081
|
+
}), eo = t.object({
|
|
1071
1082
|
id: t.string(),
|
|
1072
1083
|
extensionId: t.string(),
|
|
1073
1084
|
owner: j,
|
|
@@ -1077,23 +1088,23 @@ const j = S("view"), Bt = t.object({
|
|
|
1077
1088
|
placement: t.enum(["first", "default", "last"]).optional(),
|
|
1078
1089
|
hostTreeHeader: t.enum(["default", "none"]).optional(),
|
|
1079
1090
|
hostTreeFooter: t.enum(["default", "none"]).optional()
|
|
1080
|
-
}),
|
|
1091
|
+
}), no = t.object({
|
|
1081
1092
|
id: t.string(),
|
|
1082
1093
|
extensionId: t.string(),
|
|
1083
|
-
owner: t.union([k,
|
|
1094
|
+
owner: t.union([k, Kt]),
|
|
1084
1095
|
slot: t.enum(["header", "content", "footer"]),
|
|
1085
1096
|
label: o,
|
|
1086
1097
|
icon: t.string().optional(),
|
|
1087
1098
|
group: t.string().optional(),
|
|
1088
|
-
when:
|
|
1089
|
-
action:
|
|
1090
|
-
}),
|
|
1099
|
+
when: Mt.optional(),
|
|
1100
|
+
action: D
|
|
1101
|
+
}), oo = t.object({
|
|
1091
1102
|
id: t.string(),
|
|
1092
1103
|
extensionId: t.string(),
|
|
1093
|
-
owner: t.union([k,
|
|
1104
|
+
owner: t.union([k, Kt]),
|
|
1094
1105
|
slot: t.enum(["header", "content", "footer"]),
|
|
1095
1106
|
view: j
|
|
1096
|
-
}),
|
|
1107
|
+
}), io = t.object({
|
|
1097
1108
|
id: t.string(),
|
|
1098
1109
|
localId: t.string(),
|
|
1099
1110
|
extensionId: t.string(),
|
|
@@ -1106,7 +1117,7 @@ const j = S("view"), Bt = t.object({
|
|
|
1106
1117
|
access: t.enum(["owner", "public"]),
|
|
1107
1118
|
order: t.number().optional()
|
|
1108
1119
|
})).optional()
|
|
1109
|
-
}),
|
|
1120
|
+
}), ao = t.object({
|
|
1110
1121
|
id: t.string(),
|
|
1111
1122
|
extensionId: t.string(),
|
|
1112
1123
|
view: j,
|
|
@@ -1114,7 +1125,7 @@ const j = S("view"), Bt = t.object({
|
|
|
1114
1125
|
id: t.string()
|
|
1115
1126
|
}),
|
|
1116
1127
|
section: $n.optional()
|
|
1117
|
-
}),
|
|
1128
|
+
}), ro = t.object({
|
|
1118
1129
|
id: t.string(),
|
|
1119
1130
|
extensionId: t.string(),
|
|
1120
1131
|
view: j,
|
|
@@ -1122,8 +1133,8 @@ const j = S("view"), Bt = t.object({
|
|
|
1122
1133
|
id: t.string()
|
|
1123
1134
|
}),
|
|
1124
1135
|
order: t.number().optional(),
|
|
1125
|
-
when:
|
|
1126
|
-
}),
|
|
1136
|
+
when: Mt.optional()
|
|
1137
|
+
}), so = t.object({
|
|
1127
1138
|
id: t.string(),
|
|
1128
1139
|
localId: t.string(),
|
|
1129
1140
|
extensionId: t.string(),
|
|
@@ -1138,23 +1149,23 @@ const j = S("view"), Bt = t.object({
|
|
|
1138
1149
|
}), C = t.object({
|
|
1139
1150
|
extensions: t.array(we),
|
|
1140
1151
|
commands: t.array(Ne),
|
|
1141
|
-
menuContributions: t.array(
|
|
1142
|
-
commandPaletteContributions: t.array(
|
|
1143
|
-
modes: t.array(
|
|
1144
|
-
pages: t.array(
|
|
1145
|
-
views: t.array(
|
|
1146
|
-
viewMenus: t.array(
|
|
1147
|
-
placements: t.array(
|
|
1148
|
-
resourceKinds: t.array(
|
|
1152
|
+
menuContributions: t.array($e),
|
|
1153
|
+
commandPaletteContributions: t.array(Be).optional(),
|
|
1154
|
+
modes: t.array(Yn),
|
|
1155
|
+
pages: t.array(Un),
|
|
1156
|
+
views: t.array(Xn),
|
|
1157
|
+
viewMenus: t.array(eo),
|
|
1158
|
+
placements: t.array(to),
|
|
1159
|
+
resourceKinds: t.array(io),
|
|
1149
1160
|
resourceHierarchyProviders: t.array(t.object({
|
|
1150
1161
|
id: t.string(),
|
|
1151
1162
|
extensionId: t.string(),
|
|
1152
|
-
resourceKind:
|
|
1163
|
+
resourceKind: Lt
|
|
1153
1164
|
})).optional(),
|
|
1154
|
-
navigationItems: t.array(
|
|
1155
|
-
navigationTrees: t.array(
|
|
1156
|
-
statusBarItems: t.array(
|
|
1157
|
-
statuses: t.array(
|
|
1165
|
+
navigationItems: t.array(no),
|
|
1166
|
+
navigationTrees: t.array(oo),
|
|
1167
|
+
statusBarItems: t.array(ro),
|
|
1168
|
+
statuses: t.array(so),
|
|
1158
1169
|
activityItems: t.array(t.object({
|
|
1159
1170
|
id: t.string(),
|
|
1160
1171
|
extensionId: t.string(),
|
|
@@ -1166,11 +1177,11 @@ const j = S("view"), Bt = t.object({
|
|
|
1166
1177
|
params: r.optional()
|
|
1167
1178
|
})).optional(),
|
|
1168
1179
|
settingsSections: t.array(Mn).optional(),
|
|
1169
|
-
settingsPanels: t.array(
|
|
1170
|
-
commandPaletteResources: t.array(
|
|
1171
|
-
keybindings: t.array(
|
|
1172
|
-
settingsDefinitions: t.array(
|
|
1173
|
-
automations: t.array(
|
|
1180
|
+
settingsPanels: t.array(ao),
|
|
1181
|
+
commandPaletteResources: t.array(On).optional(),
|
|
1182
|
+
keybindings: t.array(En).optional(),
|
|
1183
|
+
settingsDefinitions: t.array(Ut).optional(),
|
|
1184
|
+
automations: t.array(Me).optional(),
|
|
1174
1185
|
connections: t.array(Ze).optional(),
|
|
1175
1186
|
harnesses: t.array(t.object({
|
|
1176
1187
|
id: t.string(),
|
|
@@ -1211,10 +1222,10 @@ const j = S("view"), Bt = t.object({
|
|
|
1211
1222
|
title: o.optional()
|
|
1212
1223
|
})).optional(),
|
|
1213
1224
|
diagnostics: t.array(jt)
|
|
1214
|
-
}),
|
|
1225
|
+
}), gt = t.object({
|
|
1215
1226
|
id: t.string(),
|
|
1216
1227
|
extensionId: t.string()
|
|
1217
|
-
}),
|
|
1228
|
+
}), lo = C.pick({
|
|
1218
1229
|
extensions: !0,
|
|
1219
1230
|
commands: !0,
|
|
1220
1231
|
menuContributions: !0,
|
|
@@ -1238,19 +1249,19 @@ const j = S("view"), Bt = t.object({
|
|
|
1238
1249
|
settingsDefinitions: !0,
|
|
1239
1250
|
diagnostics: !0
|
|
1240
1251
|
});
|
|
1241
|
-
|
|
1252
|
+
lo.extend({
|
|
1242
1253
|
extensionsRoot: t.string(),
|
|
1243
1254
|
extensionsRootExists: t.boolean(),
|
|
1244
1255
|
errorCount: t.number().int().nonnegative(),
|
|
1245
1256
|
warningCount: t.number().int().nonnegative(),
|
|
1246
|
-
middlewares: t.array(
|
|
1247
|
-
hooks: t.array(
|
|
1248
|
-
schedules: t.array(
|
|
1257
|
+
middlewares: t.array(Ue),
|
|
1258
|
+
hooks: t.array(Ke),
|
|
1259
|
+
schedules: t.array(Le),
|
|
1249
1260
|
artifactMounts: t.array(_e),
|
|
1250
1261
|
themes: t.array(kt),
|
|
1251
1262
|
fileIconThemes: t.array(vt),
|
|
1252
|
-
templates: t.array(
|
|
1253
|
-
skills: t.array(
|
|
1263
|
+
templates: t.array(gt),
|
|
1264
|
+
skills: t.array(gt),
|
|
1254
1265
|
hostCompatibility: Fe
|
|
1255
1266
|
});
|
|
1256
1267
|
t.object({
|
|
@@ -1304,7 +1315,7 @@ const tt = t.object({
|
|
|
1304
1315
|
canUpgrade: t.boolean(),
|
|
1305
1316
|
/** New source is waiting in the extensions root. The project keeps running the adopted version until a person takes it. */
|
|
1306
1317
|
updateAvailable: t.boolean()
|
|
1307
|
-
}),
|
|
1318
|
+
}), co = t.object({
|
|
1308
1319
|
installName: t.string(),
|
|
1309
1320
|
displayName: t.string(),
|
|
1310
1321
|
description: t.string(),
|
|
@@ -1319,7 +1330,7 @@ const tt = t.object({
|
|
|
1319
1330
|
});
|
|
1320
1331
|
t.object({
|
|
1321
1332
|
extensions: t.array(tt),
|
|
1322
|
-
marketplace: t.array(
|
|
1333
|
+
marketplace: t.array(co)
|
|
1323
1334
|
});
|
|
1324
1335
|
t.object({
|
|
1325
1336
|
enabled: t.boolean()
|
|
@@ -1349,7 +1360,7 @@ t.object({
|
|
|
1349
1360
|
installedAgents: t.array(t.string())
|
|
1350
1361
|
}))
|
|
1351
1362
|
});
|
|
1352
|
-
const
|
|
1363
|
+
const po = t.enum(["queued", "running", "succeeded", "failed", "cancelled", "rejected"]);
|
|
1353
1364
|
t.object({
|
|
1354
1365
|
name: t.string().trim().min(1).max(120),
|
|
1355
1366
|
projectId: t.string().min(1),
|
|
@@ -1357,7 +1368,7 @@ t.object({
|
|
|
1357
1368
|
commandScopes: t.array(t.string().min(1)).min(1),
|
|
1358
1369
|
expiresInSeconds: t.number().int().positive().max(365 * 24 * 60 * 60)
|
|
1359
1370
|
}).strict();
|
|
1360
|
-
const
|
|
1371
|
+
const $t = t.object({
|
|
1361
1372
|
id: t.string(),
|
|
1362
1373
|
principalId: t.string(),
|
|
1363
1374
|
name: t.string(),
|
|
@@ -1369,11 +1380,11 @@ const Ut = t.object({
|
|
|
1369
1380
|
revokedAt: t.string().nullable(),
|
|
1370
1381
|
createdAt: t.string()
|
|
1371
1382
|
});
|
|
1372
|
-
|
|
1383
|
+
$t.extend({
|
|
1373
1384
|
token: t.string()
|
|
1374
1385
|
});
|
|
1375
1386
|
t.object({
|
|
1376
|
-
tokens: t.array(
|
|
1387
|
+
tokens: t.array($t)
|
|
1377
1388
|
});
|
|
1378
1389
|
t.object({
|
|
1379
1390
|
commandId: t.string().min(1),
|
|
@@ -1384,7 +1395,7 @@ t.object({
|
|
|
1384
1395
|
metadata: r.optional()
|
|
1385
1396
|
}).strict()
|
|
1386
1397
|
}).strict();
|
|
1387
|
-
const
|
|
1398
|
+
const go = t.object({
|
|
1388
1399
|
code: t.string(),
|
|
1389
1400
|
message: t.string(),
|
|
1390
1401
|
retryable: t.boolean()
|
|
@@ -1393,14 +1404,14 @@ t.object({
|
|
|
1393
1404
|
id: t.string(),
|
|
1394
1405
|
projectId: t.string(),
|
|
1395
1406
|
commandId: t.string(),
|
|
1396
|
-
status:
|
|
1407
|
+
status: po,
|
|
1397
1408
|
createdAt: t.string(),
|
|
1398
1409
|
startedAt: t.string().nullable(),
|
|
1399
1410
|
finishedAt: t.string().nullable(),
|
|
1400
1411
|
result: t.unknown().nullable(),
|
|
1401
|
-
error:
|
|
1412
|
+
error: go.nullable()
|
|
1402
1413
|
});
|
|
1403
|
-
const
|
|
1414
|
+
const mo = t.object({
|
|
1404
1415
|
cursor: t.number().int().nonnegative(),
|
|
1405
1416
|
runId: t.string(),
|
|
1406
1417
|
type: t.string(),
|
|
@@ -1408,18 +1419,18 @@ const po = t.object({
|
|
|
1408
1419
|
createdAt: t.string()
|
|
1409
1420
|
});
|
|
1410
1421
|
t.object({
|
|
1411
|
-
events: t.array(
|
|
1422
|
+
events: t.array(mo)
|
|
1412
1423
|
});
|
|
1413
|
-
const
|
|
1424
|
+
const uo = (n, e) => ({
|
|
1414
1425
|
extensionId: "pstdio",
|
|
1415
1426
|
kind: n,
|
|
1416
1427
|
id: e
|
|
1417
|
-
}),
|
|
1428
|
+
}), $ = (n, e, i) => ({
|
|
1418
1429
|
id: n,
|
|
1419
|
-
ref:
|
|
1430
|
+
ref: uo("resource-kind", n),
|
|
1420
1431
|
label: e,
|
|
1421
1432
|
menuSlots: i
|
|
1422
|
-
}),
|
|
1433
|
+
}), B = [{
|
|
1423
1434
|
id: "headerPrimary",
|
|
1424
1435
|
placement: "header-primary",
|
|
1425
1436
|
access: "public"
|
|
@@ -1427,46 +1438,46 @@ const mo = (n, e) => ({
|
|
|
1427
1438
|
id: "headerOverflow",
|
|
1428
1439
|
placement: "header-overflow",
|
|
1429
1440
|
access: "public"
|
|
1430
|
-
}],
|
|
1431
|
-
project:
|
|
1432
|
-
session:
|
|
1433
|
-
workspace:
|
|
1441
|
+
}], q = {
|
|
1442
|
+
project: $("project", "Extension", B),
|
|
1443
|
+
session: $("session", "Session", B),
|
|
1444
|
+
workspace: $("workspace", "Workspace", B)
|
|
1434
1445
|
}, v = {
|
|
1435
|
-
project:
|
|
1436
|
-
session:
|
|
1437
|
-
workspace:
|
|
1438
|
-
},
|
|
1446
|
+
project: q.project.ref,
|
|
1447
|
+
session: q.session.ref,
|
|
1448
|
+
workspace: q.workspace.ref
|
|
1449
|
+
}, mt = (n) => ({
|
|
1439
1450
|
...n,
|
|
1440
1451
|
kind: "command"
|
|
1441
1452
|
});
|
|
1442
|
-
Object.assign(
|
|
1443
|
-
forExtension: (n) => (e) =>
|
|
1453
|
+
Object.assign(mt, {
|
|
1454
|
+
forExtension: (n) => (e) => mt({
|
|
1444
1455
|
extensionId: `${n.publisher}.${n.name}`,
|
|
1445
1456
|
id: e
|
|
1446
1457
|
})
|
|
1447
1458
|
});
|
|
1448
|
-
const
|
|
1459
|
+
const bo = (n) => ({
|
|
1449
1460
|
...n,
|
|
1450
1461
|
kind: "event"
|
|
1451
|
-
}),
|
|
1462
|
+
}), H = (n, e) => ({
|
|
1452
1463
|
id: n,
|
|
1453
1464
|
kind: e.kind,
|
|
1454
1465
|
label: e.label,
|
|
1455
1466
|
description: e.description,
|
|
1456
1467
|
metadata: e.metadata
|
|
1457
|
-
}), l = (n) =>
|
|
1468
|
+
}), l = (n) => bo({
|
|
1458
1469
|
extensionId: "pstdio",
|
|
1459
1470
|
id: n
|
|
1460
|
-
}), w = (n, e) =>
|
|
1471
|
+
}), w = (n, e) => H(`${n.id}.${e}`, {
|
|
1461
1472
|
kind: "menu"
|
|
1462
1473
|
});
|
|
1463
|
-
|
|
1474
|
+
H("project.sidenav", {
|
|
1464
1475
|
kind: "panel"
|
|
1465
|
-
}), w(v.project, "headerPrimary"), w(v.project, "headerOverflow"),
|
|
1476
|
+
}), w(v.project, "headerPrimary"), w(v.project, "headerOverflow"), H("project.settingsPanels", {
|
|
1466
1477
|
kind: "settings"
|
|
1467
1478
|
});
|
|
1468
1479
|
w(v.session, "headerPrimary"), w(v.session, "headerOverflow");
|
|
1469
|
-
w(v.workspace, "headerPrimary"), w(v.workspace, "headerOverflow"),
|
|
1480
|
+
w(v.workspace, "headerPrimary"), w(v.workspace, "headerOverflow"), H("workspace.sidenav", {
|
|
1470
1481
|
kind: "panel"
|
|
1471
1482
|
});
|
|
1472
1483
|
l("project.opened");
|
|
@@ -1486,7 +1497,7 @@ t.object({
|
|
|
1486
1497
|
created_at: t.string(),
|
|
1487
1498
|
updated_at: t.string()
|
|
1488
1499
|
});
|
|
1489
|
-
const
|
|
1500
|
+
const ho = t.object({
|
|
1490
1501
|
code: t.literal("extension_setup_failed"),
|
|
1491
1502
|
extension: t.string(),
|
|
1492
1503
|
message: t.string()
|
|
@@ -1501,7 +1512,7 @@ t.object({
|
|
|
1501
1512
|
created_at: t.string(),
|
|
1502
1513
|
updated_at: t.string(),
|
|
1503
1514
|
deleted_at: t.string().nullable(),
|
|
1504
|
-
extension_warnings: t.array(
|
|
1515
|
+
extension_warnings: t.array(ho).optional()
|
|
1505
1516
|
});
|
|
1506
1517
|
t.object({
|
|
1507
1518
|
name: t.string().min(1).refine((n) => /[a-zA-Z]/.test(n), {
|
|
@@ -1527,7 +1538,7 @@ t.object({
|
|
|
1527
1538
|
name: t.string().min(1),
|
|
1528
1539
|
path: t.string().min(1)
|
|
1529
1540
|
});
|
|
1530
|
-
const
|
|
1541
|
+
const yo = {
|
|
1531
1542
|
c: "text/plain",
|
|
1532
1543
|
cc: "text/plain",
|
|
1533
1544
|
cpp: "text/plain",
|
|
@@ -1569,20 +1580,20 @@ const bo = {
|
|
|
1569
1580
|
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
1570
1581
|
yaml: "text/plain",
|
|
1571
1582
|
yml: "text/plain"
|
|
1572
|
-
},
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1583
|
+
}, jo = Object.keys(yo);
|
|
1584
|
+
jo.map((n) => `.${n}`).join(",");
|
|
1585
|
+
const So = t.object({
|
|
1575
1586
|
type: t.literal("text"),
|
|
1576
1587
|
text: t.string()
|
|
1577
|
-
}),
|
|
1588
|
+
}), xo = t.object({
|
|
1578
1589
|
type: t.literal("reasoning"),
|
|
1579
1590
|
text: t.string()
|
|
1580
|
-
}),
|
|
1591
|
+
}), fo = t.enum(["read", "write", "execute", "network", "other"]), ko = t.enum(["pending", "running", "completed", "failed", "denied"]), vo = t.object({
|
|
1581
1592
|
type: t.literal("tool"),
|
|
1582
1593
|
tool: t.string(),
|
|
1583
1594
|
callId: t.string().optional(),
|
|
1584
|
-
actionType:
|
|
1585
|
-
status:
|
|
1595
|
+
actionType: fo.optional(),
|
|
1596
|
+
status: ko.optional(),
|
|
1586
1597
|
state: t.object({
|
|
1587
1598
|
status: t.string().optional(),
|
|
1588
1599
|
input: t.unknown().optional(),
|
|
@@ -1590,43 +1601,43 @@ const yo = t.object({
|
|
|
1590
1601
|
errorText: t.string().optional(),
|
|
1591
1602
|
metadata: t.unknown().optional()
|
|
1592
1603
|
}).optional()
|
|
1593
|
-
}),
|
|
1604
|
+
}), wo = t.object({
|
|
1594
1605
|
type: t.literal("step-start"),
|
|
1595
1606
|
snapshot: t.string().optional()
|
|
1596
|
-
}),
|
|
1607
|
+
}), Io = t.object({
|
|
1597
1608
|
type: t.literal("step-finish"),
|
|
1598
1609
|
reason: t.string().optional(),
|
|
1599
1610
|
snapshot: t.string().optional(),
|
|
1600
1611
|
cost: t.number().optional(),
|
|
1601
1612
|
tokens: t.unknown().optional()
|
|
1602
|
-
}),
|
|
1613
|
+
}), _o = t.object({
|
|
1603
1614
|
type: t.literal("patch"),
|
|
1604
1615
|
hash: t.string().optional(),
|
|
1605
1616
|
files: t.unknown().optional()
|
|
1606
|
-
}),
|
|
1617
|
+
}), Ro = t.object({
|
|
1607
1618
|
type: t.literal("file"),
|
|
1608
1619
|
fileId: t.string().optional(),
|
|
1609
1620
|
mediaType: t.string().optional(),
|
|
1610
1621
|
filename: t.string().optional(),
|
|
1611
1622
|
size: t.number().optional(),
|
|
1612
1623
|
url: t.string()
|
|
1613
|
-
}),
|
|
1624
|
+
}), Po = t.object({
|
|
1614
1625
|
type: t.literal("loading")
|
|
1615
|
-
}),
|
|
1626
|
+
}), To = t.object({
|
|
1616
1627
|
type: t.literal("error"),
|
|
1617
1628
|
errorType: t.enum(["timeout", "crash", "permission", "other"]),
|
|
1618
1629
|
message: t.string().optional()
|
|
1619
|
-
}),
|
|
1630
|
+
}), Oo = t.object({
|
|
1620
1631
|
type: t.literal("token_usage"),
|
|
1621
1632
|
inputTokens: t.number(),
|
|
1622
1633
|
outputTokens: t.number(),
|
|
1623
1634
|
cacheReadTokens: t.number().optional(),
|
|
1624
1635
|
cacheWriteTokens: t.number().optional()
|
|
1625
|
-
}),
|
|
1636
|
+
}), Ao = t.union([So, xo, vo, wo, Io, _o, Ro, Po, To, Oo]), Eo = t.enum(["user", "assistant", "tool", "system", "developer"]);
|
|
1626
1637
|
t.object({
|
|
1627
1638
|
id: t.string(),
|
|
1628
|
-
role:
|
|
1629
|
-
parts: t.array(
|
|
1639
|
+
role: Eo,
|
|
1640
|
+
parts: t.array(Ao),
|
|
1630
1641
|
index: t.number().optional(),
|
|
1631
1642
|
createdAt: t.number().optional(),
|
|
1632
1643
|
modelId: t.string().optional(),
|
|
@@ -1641,11 +1652,11 @@ t.object({
|
|
|
1641
1652
|
}).optional()
|
|
1642
1653
|
}).optional()
|
|
1643
1654
|
});
|
|
1644
|
-
const
|
|
1655
|
+
const Co = t.enum(["in_progress", "awaiting_input", "queued", "completed", "failed", "cancelled", "disconnected"]), Ho = t.union([t.string(), t.boolean()]), et = t.record(t.string(), Ho), Bt = t.object({
|
|
1645
1656
|
id: t.string(),
|
|
1646
1657
|
project_id: t.string().nullable(),
|
|
1647
1658
|
title: t.string(),
|
|
1648
|
-
status:
|
|
1659
|
+
status: Co,
|
|
1649
1660
|
archived: t.boolean(),
|
|
1650
1661
|
last_request_started: t.string().nullable(),
|
|
1651
1662
|
last_request_ended: t.string().nullable(),
|
|
@@ -1684,14 +1695,14 @@ t.object({
|
|
|
1684
1695
|
params: et.optional(),
|
|
1685
1696
|
original_session_id: t.string().optional()
|
|
1686
1697
|
});
|
|
1687
|
-
const
|
|
1698
|
+
const Vo = t.object({
|
|
1688
1699
|
answers: t.array(t.array(t.string()))
|
|
1689
1700
|
});
|
|
1690
1701
|
t.object({
|
|
1691
1702
|
prompt: t.string().min(1).optional(),
|
|
1692
1703
|
agent: t.string().optional(),
|
|
1693
1704
|
model: t.string().optional(),
|
|
1694
|
-
question_response:
|
|
1705
|
+
question_response: Vo.optional(),
|
|
1695
1706
|
params: et.optional(),
|
|
1696
1707
|
summary_from_session_id: t.string().optional(),
|
|
1697
1708
|
summary_format: t.enum(["brief", "detailed"]).default("brief").optional(),
|
|
@@ -1702,17 +1713,17 @@ t.object({
|
|
|
1702
1713
|
id: t.string().min(1),
|
|
1703
1714
|
decision: t.enum(["approve", "deny"])
|
|
1704
1715
|
});
|
|
1705
|
-
const
|
|
1716
|
+
const Do = t.union([t.object({
|
|
1706
1717
|
status: t.literal("dispatched")
|
|
1707
1718
|
}), t.object({
|
|
1708
1719
|
status: t.literal("queued"),
|
|
1709
1720
|
queue_position: t.number().int()
|
|
1710
1721
|
})]);
|
|
1711
|
-
|
|
1712
|
-
follow_up:
|
|
1722
|
+
Bt.extend({
|
|
1723
|
+
follow_up: Do
|
|
1713
1724
|
});
|
|
1714
1725
|
t.object({
|
|
1715
|
-
session:
|
|
1726
|
+
session: Bt,
|
|
1716
1727
|
messages: t.array(t.unknown())
|
|
1717
1728
|
});
|
|
1718
1729
|
t.object({
|
|
@@ -1733,56 +1744,56 @@ t.object({
|
|
|
1733
1744
|
}).strict().refine((n) => Object.keys(n).length > 0, {
|
|
1734
1745
|
message: "Expected at least one setting"
|
|
1735
1746
|
});
|
|
1736
|
-
const
|
|
1747
|
+
const No = t.object({
|
|
1737
1748
|
path: t.string(),
|
|
1738
1749
|
content: t.string(),
|
|
1739
1750
|
encoding: t.literal("utf8")
|
|
1740
|
-
}),
|
|
1751
|
+
}), zo = t.enum(["project", "extension"]), Uo = t.object({
|
|
1741
1752
|
agent_id: t.string(),
|
|
1742
1753
|
agent_name: t.string(),
|
|
1743
1754
|
installed_version: t.string().nullable(),
|
|
1744
1755
|
outdated: t.boolean()
|
|
1745
|
-
}),
|
|
1756
|
+
}), Ko = t.object({
|
|
1746
1757
|
id: t.string(),
|
|
1747
1758
|
project_id: t.string(),
|
|
1748
1759
|
name: t.string(),
|
|
1749
1760
|
title: t.string(),
|
|
1750
1761
|
description: t.string(),
|
|
1751
|
-
source_kind:
|
|
1752
|
-
files: t.array(
|
|
1762
|
+
source_kind: zo,
|
|
1763
|
+
files: t.array(No),
|
|
1753
1764
|
editable: t.boolean(),
|
|
1754
1765
|
extension_instance_id: t.string().optional(),
|
|
1755
1766
|
extension_id: t.string().optional(),
|
|
1756
1767
|
installed_extension_id: t.string().optional(),
|
|
1757
1768
|
install_name: t.string().optional(),
|
|
1758
1769
|
key: t.string().optional(),
|
|
1759
|
-
source:
|
|
1770
|
+
source: V.optional(),
|
|
1760
1771
|
enabled: t.boolean().optional(),
|
|
1761
1772
|
created_at: t.string(),
|
|
1762
1773
|
updated_at: t.string(),
|
|
1763
1774
|
deleted_at: t.string().nullable()
|
|
1764
1775
|
});
|
|
1765
|
-
|
|
1776
|
+
Ko.extend({
|
|
1766
1777
|
installed_agents: t.array(t.string()),
|
|
1767
1778
|
outdated_agents: t.array(t.string()),
|
|
1768
|
-
agent_installations: t.array(
|
|
1779
|
+
agent_installations: t.array(Uo)
|
|
1769
1780
|
});
|
|
1770
1781
|
t.object({
|
|
1771
1782
|
enabled: t.boolean().optional(),
|
|
1772
1783
|
title: t.string().min(1).optional(),
|
|
1773
1784
|
description: t.string().optional()
|
|
1774
1785
|
});
|
|
1775
|
-
const
|
|
1786
|
+
const Lo = {
|
|
1776
1787
|
version: t.number().int().positive(),
|
|
1777
1788
|
data: r
|
|
1778
|
-
}, Mo = t.object(
|
|
1789
|
+
}, Mo = t.object(Lo), $o = ["provisioning", "ready", "failed", "cancelled", "archiving", "archived", "deleting", "provider_missing"], Bo = t.enum($o), qo = t.enum(["local", "remote"]), Wo = t.object({
|
|
1779
1790
|
files: t.enum(["none", "read", "write"]),
|
|
1780
1791
|
diff: t.boolean(),
|
|
1781
1792
|
merge: t.boolean(),
|
|
1782
1793
|
rebase: t.boolean(),
|
|
1783
1794
|
archive: t.boolean(),
|
|
1784
1795
|
delete: t.boolean()
|
|
1785
|
-
}),
|
|
1796
|
+
}), Fo = t.object({
|
|
1786
1797
|
code: t.string(),
|
|
1787
1798
|
message: t.string(),
|
|
1788
1799
|
retryable: t.boolean(),
|
|
@@ -1798,11 +1809,11 @@ t.object({
|
|
|
1798
1809
|
provider_params_json: r,
|
|
1799
1810
|
provider_ref_json: Mo.nullable(),
|
|
1800
1811
|
provider_state: Bo,
|
|
1801
|
-
execution_kind:
|
|
1812
|
+
execution_kind: qo,
|
|
1802
1813
|
provider_operation_id: t.string().nullable(),
|
|
1803
1814
|
provider_operation_kind: t.enum(["create", "cancel", "archive", "delete"]).nullable(),
|
|
1804
|
-
provider_error_json:
|
|
1805
|
-
provider_capabilities_json:
|
|
1815
|
+
provider_error_json: Fo.nullable(),
|
|
1816
|
+
provider_capabilities_json: Wo,
|
|
1806
1817
|
display_path: t.string().nullable(),
|
|
1807
1818
|
is_default: t.boolean(),
|
|
1808
1819
|
archived: t.boolean(),
|
|
@@ -1830,7 +1841,7 @@ t.object({
|
|
|
1830
1841
|
t.object({
|
|
1831
1842
|
removed: t.boolean()
|
|
1832
1843
|
});
|
|
1833
|
-
const
|
|
1844
|
+
const Go = t.object({
|
|
1834
1845
|
path: t.string(),
|
|
1835
1846
|
name: t.string(),
|
|
1836
1847
|
type: t.enum(["file", "directory"]),
|
|
@@ -1840,7 +1851,7 @@ const Wo = t.object({
|
|
|
1840
1851
|
t.object({
|
|
1841
1852
|
workspace_id: t.string(),
|
|
1842
1853
|
path: t.string(),
|
|
1843
|
-
entries: t.array(
|
|
1854
|
+
entries: t.array(Go),
|
|
1844
1855
|
truncated: t.boolean()
|
|
1845
1856
|
});
|
|
1846
1857
|
t.object({
|
|
@@ -1867,9 +1878,9 @@ t.object({
|
|
|
1867
1878
|
});
|
|
1868
1879
|
export {
|
|
1869
1880
|
Yt as W,
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1881
|
+
ni as a,
|
|
1882
|
+
oi as b,
|
|
1883
|
+
gn as c,
|
|
1873
1884
|
te as u
|
|
1874
1885
|
};
|
|
1875
|
-
//# sourceMappingURL=workspaces-
|
|
1886
|
+
//# sourceMappingURL=workspaces-DdUPyzkL.js.map
|