@dotobokuri/fleet-console 1.22.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +3355 -1891
- package/dist/fleet-plugins/skills/routes.mjs +1642 -1274
- package/dist/fleet-plugins/terminal/routes.mjs +3351 -1887
- package/package.json +1 -1
|
@@ -26,6 +26,50 @@ function normalizePath(path7) {
|
|
|
26
26
|
return path7;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// ../../node_modules/.pnpm/@agentclientprotocol+sdk@1.2.1_zod@4.4.1/node_modules/@agentclientprotocol/sdk/dist/schema/index.js
|
|
30
|
+
var AGENT_METHODS = {
|
|
31
|
+
initialize: "initialize",
|
|
32
|
+
authenticate: "authenticate",
|
|
33
|
+
providers_list: "providers/list",
|
|
34
|
+
providers_set: "providers/set",
|
|
35
|
+
providers_disable: "providers/disable",
|
|
36
|
+
session_new: "session/new",
|
|
37
|
+
session_load: "session/load",
|
|
38
|
+
session_set_mode: "session/set_mode",
|
|
39
|
+
session_set_config_option: "session/set_config_option",
|
|
40
|
+
session_prompt: "session/prompt",
|
|
41
|
+
session_cancel: "session/cancel",
|
|
42
|
+
session_list: "session/list",
|
|
43
|
+
session_delete: "session/delete",
|
|
44
|
+
session_fork: "session/fork",
|
|
45
|
+
session_resume: "session/resume",
|
|
46
|
+
session_close: "session/close",
|
|
47
|
+
logout: "logout",
|
|
48
|
+
nes_start: "nes/start",
|
|
49
|
+
nes_suggest: "nes/suggest",
|
|
50
|
+
nes_accept: "nes/accept",
|
|
51
|
+
nes_reject: "nes/reject",
|
|
52
|
+
nes_close: "nes/close",
|
|
53
|
+
document_did_open: "document/didOpen",
|
|
54
|
+
document_did_change: "document/didChange",
|
|
55
|
+
document_did_close: "document/didClose",
|
|
56
|
+
document_did_save: "document/didSave",
|
|
57
|
+
document_did_focus: "document/didFocus"
|
|
58
|
+
};
|
|
59
|
+
var CLIENT_METHODS = {
|
|
60
|
+
session_request_permission: "session/request_permission",
|
|
61
|
+
session_update: "session/update",
|
|
62
|
+
fs_write_text_file: "fs/write_text_file",
|
|
63
|
+
fs_read_text_file: "fs/read_text_file",
|
|
64
|
+
terminal_create: "terminal/create",
|
|
65
|
+
terminal_output: "terminal/output",
|
|
66
|
+
terminal_release: "terminal/release",
|
|
67
|
+
terminal_wait_for_exit: "terminal/wait_for_exit",
|
|
68
|
+
terminal_kill: "terminal/kill",
|
|
69
|
+
elicitation_create: "elicitation/create",
|
|
70
|
+
elicitation_complete: "elicitation/complete"
|
|
71
|
+
};
|
|
72
|
+
|
|
29
73
|
// ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/external.js
|
|
30
74
|
var external_exports = {};
|
|
31
75
|
__export(external_exports, {
|
|
@@ -12696,7 +12740,7 @@ var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
|
12696
12740
|
|
|
12697
12741
|
// ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/schemas.js
|
|
12698
12742
|
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
12699
|
-
function _installLazyMethods(inst, group,
|
|
12743
|
+
function _installLazyMethods(inst, group, methods2) {
|
|
12700
12744
|
const proto = Object.getPrototypeOf(inst);
|
|
12701
12745
|
let installed = _installedGroups.get(proto);
|
|
12702
12746
|
if (!installed) {
|
|
@@ -12706,8 +12750,8 @@ function _installLazyMethods(inst, group, methods) {
|
|
|
12706
12750
|
if (installed.has(group))
|
|
12707
12751
|
return;
|
|
12708
12752
|
installed.add(group);
|
|
12709
|
-
for (const key in
|
|
12710
|
-
const fn =
|
|
12753
|
+
for (const key in methods2) {
|
|
12754
|
+
const fn = methods2[key];
|
|
12711
12755
|
Object.defineProperty(proto, key, {
|
|
12712
12756
|
configurable: true,
|
|
12713
12757
|
enumerable: false,
|
|
@@ -14508,1413 +14552,1566 @@ function date4(params) {
|
|
|
14508
14552
|
// ../../node_modules/.pnpm/zod@4.4.1/node_modules/zod/v4/classic/external.js
|
|
14509
14553
|
config(en_default());
|
|
14510
14554
|
|
|
14511
|
-
// ../../node_modules/.pnpm/@agentclientprotocol+sdk@
|
|
14512
|
-
var
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
}
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
}
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14555
|
+
// ../../node_modules/.pnpm/@agentclientprotocol+sdk@1.2.1_zod@4.4.1/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
|
|
14556
|
+
var skippedItem = /* @__PURE__ */ Symbol("skippedItem");
|
|
14557
|
+
function defaultOnError(schema, fallback) {
|
|
14558
|
+
return schema.catch(fallback);
|
|
14559
|
+
}
|
|
14560
|
+
function requiredDefaultOnError(schema, fallback) {
|
|
14561
|
+
const schemaWithCatch = schema.catch(fallback);
|
|
14562
|
+
return external_exports.unknown().transform((value, context) => {
|
|
14563
|
+
if (value !== void 0)
|
|
14564
|
+
return schemaWithCatch.parse(value);
|
|
14565
|
+
context.addIssue({
|
|
14566
|
+
code: "custom",
|
|
14567
|
+
message: "Required value is missing"
|
|
14568
|
+
});
|
|
14569
|
+
return external_exports.NEVER;
|
|
14570
|
+
});
|
|
14571
|
+
}
|
|
14572
|
+
function stringTag(value, key) {
|
|
14573
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
14574
|
+
return void 0;
|
|
14575
|
+
}
|
|
14576
|
+
const tag = value[key];
|
|
14577
|
+
return typeof tag === "string" ? tag : void 0;
|
|
14578
|
+
}
|
|
14579
|
+
function excludeKnownTags(schema, key, knownTags) {
|
|
14580
|
+
return schema.superRefine((value, context) => {
|
|
14581
|
+
const tag = stringTag(value, key);
|
|
14582
|
+
if (tag !== void 0 && knownTags.includes(tag)) {
|
|
14583
|
+
context.addIssue({
|
|
14584
|
+
code: "custom",
|
|
14585
|
+
path: [key],
|
|
14586
|
+
message: `${key} ${JSON.stringify(tag)} is reserved by a known variant, but the value does not match that variant's schema`
|
|
14587
|
+
});
|
|
14588
|
+
}
|
|
14589
|
+
});
|
|
14590
|
+
}
|
|
14591
|
+
function preserveCustomPayload(schema, key, knownTags) {
|
|
14592
|
+
return external_exports.unknown().transform((value, context) => {
|
|
14593
|
+
const result = schema.safeParse(value);
|
|
14594
|
+
if (!result.success) {
|
|
14595
|
+
for (const issue2 of result.error.issues) {
|
|
14596
|
+
context.addIssue({ ...issue2, input: value });
|
|
14597
|
+
}
|
|
14598
|
+
return external_exports.NEVER;
|
|
14599
|
+
}
|
|
14600
|
+
const output = result.data;
|
|
14601
|
+
const tag = stringTag(value, key);
|
|
14602
|
+
if (tag !== void 0 && !knownTags.includes(tag)) {
|
|
14603
|
+
const raw = value;
|
|
14604
|
+
for (const [property, rawValue] of Object.entries(raw)) {
|
|
14605
|
+
if (property === "__proto__")
|
|
14606
|
+
continue;
|
|
14607
|
+
if (!Object.hasOwn(output, property))
|
|
14608
|
+
output[property] = rawValue;
|
|
14609
|
+
}
|
|
14610
|
+
}
|
|
14611
|
+
return output;
|
|
14612
|
+
});
|
|
14613
|
+
}
|
|
14614
|
+
function vecSkipError(itemSchema) {
|
|
14615
|
+
return external_exports.array(itemSchema.catch(skippedItem)).transform((items) => items.filter((item) => item !== skippedItem));
|
|
14616
|
+
}
|
|
14617
|
+
|
|
14618
|
+
// ../../node_modules/.pnpm/@agentclientprotocol+sdk@1.2.1_zod@4.4.1/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
|
|
14619
|
+
var zRequestId = union([number2(), string2()]).nullable();
|
|
14620
|
+
var zSessionId = string2();
|
|
14621
|
+
var zWriteTextFileRequest = object({
|
|
14622
|
+
sessionId: zSessionId,
|
|
14623
|
+
path: string2(),
|
|
14624
|
+
content: string2(),
|
|
14625
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14626
|
+
});
|
|
14627
|
+
var zReadTextFileRequest = object({
|
|
14628
|
+
sessionId: zSessionId,
|
|
14629
|
+
path: string2(),
|
|
14630
|
+
line: defaultOnError(int().gte(0).max(4294967295, {
|
|
14631
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14632
|
+
}).nullish(), () => void 0),
|
|
14633
|
+
limit: defaultOnError(int().gte(0).max(4294967295, {
|
|
14634
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14635
|
+
}).nullish(), () => void 0),
|
|
14636
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14637
|
+
});
|
|
14638
|
+
var zToolCallId = string2();
|
|
14639
|
+
var zToolKind = union([
|
|
14640
|
+
literal("read"),
|
|
14641
|
+
literal("edit"),
|
|
14642
|
+
literal("delete"),
|
|
14643
|
+
literal("move"),
|
|
14644
|
+
literal("search"),
|
|
14645
|
+
literal("execute"),
|
|
14646
|
+
literal("think"),
|
|
14647
|
+
literal("fetch"),
|
|
14648
|
+
literal("switch_mode"),
|
|
14649
|
+
literal("other")
|
|
14553
14650
|
]);
|
|
14554
|
-
var
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14560
|
-
});
|
|
14561
|
-
var zBlobResourceContents = external_exports.object({
|
|
14562
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14563
|
-
blob: external_exports.string(),
|
|
14564
|
-
mimeType: external_exports.string().nullish(),
|
|
14565
|
-
uri: external_exports.string()
|
|
14566
|
-
});
|
|
14567
|
-
var zBooleanPropertySchema = external_exports.object({
|
|
14568
|
-
default: external_exports.boolean().nullish(),
|
|
14569
|
-
description: external_exports.string().nullish(),
|
|
14570
|
-
title: external_exports.string().nullish()
|
|
14571
|
-
});
|
|
14572
|
-
var zCloseNesResponse = external_exports.object({
|
|
14573
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14574
|
-
});
|
|
14575
|
-
var zCloseSessionResponse = external_exports.object({
|
|
14576
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14577
|
-
});
|
|
14578
|
-
var zCost = external_exports.object({
|
|
14579
|
-
amount: external_exports.number(),
|
|
14580
|
-
currency: external_exports.string()
|
|
14581
|
-
});
|
|
14582
|
-
var zCreateTerminalResponse = external_exports.object({
|
|
14583
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14584
|
-
terminalId: external_exports.string()
|
|
14585
|
-
});
|
|
14586
|
-
var zDiff = external_exports.object({
|
|
14587
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14588
|
-
newText: external_exports.string(),
|
|
14589
|
-
oldText: external_exports.string().nullish(),
|
|
14590
|
-
path: external_exports.string()
|
|
14591
|
-
});
|
|
14592
|
-
var zDisableProvidersRequest = external_exports.object({
|
|
14593
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14594
|
-
id: external_exports.string()
|
|
14595
|
-
});
|
|
14596
|
-
var zDisableProvidersResponse = external_exports.object({
|
|
14597
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14598
|
-
});
|
|
14599
|
-
var zElicitationContentValue = external_exports.union([
|
|
14600
|
-
external_exports.string(),
|
|
14601
|
-
external_exports.number(),
|
|
14602
|
-
external_exports.number(),
|
|
14603
|
-
external_exports.boolean(),
|
|
14604
|
-
external_exports.array(external_exports.string())
|
|
14651
|
+
var zToolCallStatus = union([
|
|
14652
|
+
literal("pending"),
|
|
14653
|
+
literal("in_progress"),
|
|
14654
|
+
literal("completed"),
|
|
14655
|
+
literal("failed")
|
|
14605
14656
|
]);
|
|
14606
|
-
var
|
|
14607
|
-
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
_meta:
|
|
14624
|
-
});
|
|
14625
|
-
var
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
var
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
_meta:
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
external_exports.literal(-32e3),
|
|
14657
|
-
external_exports.literal(-32002),
|
|
14658
|
-
external_exports.literal(-32042),
|
|
14659
|
-
external_exports.number().int().min(-2147483648, {
|
|
14660
|
-
message: "Invalid value: Expected int32 to be >= -2147483648"
|
|
14661
|
-
}).max(2147483647, {
|
|
14662
|
-
message: "Invalid value: Expected int32 to be <= 2147483647"
|
|
14663
|
-
})
|
|
14657
|
+
var zRole = union([literal("assistant"), literal("user")]);
|
|
14658
|
+
var zAnnotations = object({
|
|
14659
|
+
audience: defaultOnError(vecSkipError(zRole).nullish(), () => void 0),
|
|
14660
|
+
lastModified: defaultOnError(string2().nullish(), () => void 0),
|
|
14661
|
+
priority: defaultOnError(number2().nullish(), () => void 0),
|
|
14662
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14663
|
+
});
|
|
14664
|
+
var zTextContent = object({
|
|
14665
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => void 0),
|
|
14666
|
+
text: string2(),
|
|
14667
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14668
|
+
});
|
|
14669
|
+
var zImageContent = object({
|
|
14670
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => void 0),
|
|
14671
|
+
data: string2(),
|
|
14672
|
+
mimeType: string2(),
|
|
14673
|
+
uri: defaultOnError(string2().nullish(), () => void 0),
|
|
14674
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14675
|
+
});
|
|
14676
|
+
var zAudioContent = object({
|
|
14677
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => void 0),
|
|
14678
|
+
data: string2(),
|
|
14679
|
+
mimeType: string2(),
|
|
14680
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14681
|
+
});
|
|
14682
|
+
var zResourceLink = object({
|
|
14683
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => void 0),
|
|
14684
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14685
|
+
mimeType: defaultOnError(string2().nullish(), () => void 0),
|
|
14686
|
+
name: string2(),
|
|
14687
|
+
size: defaultOnError(number2().nullish(), () => void 0),
|
|
14688
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14689
|
+
uri: string2(),
|
|
14690
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14691
|
+
});
|
|
14692
|
+
var zTextResourceContents = object({
|
|
14693
|
+
mimeType: defaultOnError(string2().nullish(), () => void 0),
|
|
14694
|
+
text: string2(),
|
|
14695
|
+
uri: string2(),
|
|
14696
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14697
|
+
});
|
|
14698
|
+
var zBlobResourceContents = object({
|
|
14699
|
+
blob: string2(),
|
|
14700
|
+
mimeType: defaultOnError(string2().nullish(), () => void 0),
|
|
14701
|
+
uri: string2(),
|
|
14702
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14703
|
+
});
|
|
14704
|
+
var zEmbeddedResourceResource = union([
|
|
14705
|
+
zTextResourceContents,
|
|
14706
|
+
zBlobResourceContents
|
|
14664
14707
|
]);
|
|
14665
|
-
var
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
});
|
|
14670
|
-
var
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
})
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
title: external_exports.string().nullish(),
|
|
14687
|
-
version: external_exports.string()
|
|
14688
|
-
});
|
|
14689
|
-
var zIntegerPropertySchema = external_exports.object({
|
|
14690
|
-
default: external_exports.number().nullish(),
|
|
14691
|
-
description: external_exports.string().nullish(),
|
|
14692
|
-
maximum: external_exports.number().nullish(),
|
|
14693
|
-
minimum: external_exports.number().nullish(),
|
|
14694
|
-
title: external_exports.string().nullish()
|
|
14695
|
-
});
|
|
14696
|
-
var zKillTerminalResponse = external_exports.object({
|
|
14697
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14698
|
-
});
|
|
14699
|
-
var zListProvidersRequest = external_exports.object({
|
|
14700
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14701
|
-
});
|
|
14702
|
-
var zListSessionsRequest = external_exports.object({
|
|
14703
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14704
|
-
additionalDirectories: external_exports.array(external_exports.string()).optional(),
|
|
14705
|
-
cursor: external_exports.string().nullish(),
|
|
14706
|
-
cwd: external_exports.string().nullish()
|
|
14707
|
-
});
|
|
14708
|
-
var zLlmProtocol = external_exports.union([
|
|
14709
|
-
external_exports.literal("anthropic"),
|
|
14710
|
-
external_exports.literal("openai"),
|
|
14711
|
-
external_exports.literal("azure"),
|
|
14712
|
-
external_exports.literal("vertex"),
|
|
14713
|
-
external_exports.literal("bedrock"),
|
|
14714
|
-
external_exports.string()
|
|
14708
|
+
var zEmbeddedResource = object({
|
|
14709
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => void 0),
|
|
14710
|
+
resource: zEmbeddedResourceResource,
|
|
14711
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14712
|
+
});
|
|
14713
|
+
var zContentBlock = union([
|
|
14714
|
+
zTextContent.and(object({
|
|
14715
|
+
type: literal("text")
|
|
14716
|
+
})),
|
|
14717
|
+
zImageContent.and(object({
|
|
14718
|
+
type: literal("image")
|
|
14719
|
+
})),
|
|
14720
|
+
zAudioContent.and(object({
|
|
14721
|
+
type: literal("audio")
|
|
14722
|
+
})),
|
|
14723
|
+
zResourceLink.and(object({
|
|
14724
|
+
type: literal("resource_link")
|
|
14725
|
+
})),
|
|
14726
|
+
zEmbeddedResource.and(object({
|
|
14727
|
+
type: literal("resource")
|
|
14728
|
+
}))
|
|
14715
14729
|
]);
|
|
14716
|
-
var
|
|
14717
|
-
|
|
14718
|
-
|
|
14719
|
-
|
|
14720
|
-
|
|
14721
|
-
|
|
14722
|
-
|
|
14723
|
-
|
|
14724
|
-
_meta:
|
|
14725
|
-
});
|
|
14726
|
-
var
|
|
14727
|
-
|
|
14728
|
-
|
|
14729
|
-
|
|
14730
|
-
|
|
14731
|
-
|
|
14732
|
-
|
|
14733
|
-
|
|
14734
|
-
var zMcpServerHttp = external_exports.object({
|
|
14735
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14736
|
-
headers: external_exports.array(zHttpHeader),
|
|
14737
|
-
name: external_exports.string(),
|
|
14738
|
-
url: external_exports.string()
|
|
14739
|
-
});
|
|
14740
|
-
var zMcpServerSse = external_exports.object({
|
|
14741
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14742
|
-
headers: external_exports.array(zHttpHeader),
|
|
14743
|
-
name: external_exports.string(),
|
|
14744
|
-
url: external_exports.string()
|
|
14745
|
-
});
|
|
14746
|
-
var zMcpServerStdio = external_exports.object({
|
|
14747
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14748
|
-
args: external_exports.array(external_exports.string()),
|
|
14749
|
-
command: external_exports.string(),
|
|
14750
|
-
env: external_exports.array(zEnvVariable),
|
|
14751
|
-
name: external_exports.string()
|
|
14752
|
-
});
|
|
14753
|
-
var zMcpServer = external_exports.union([
|
|
14754
|
-
zMcpServerHttp.and(external_exports.object({
|
|
14755
|
-
type: external_exports.literal("http")
|
|
14730
|
+
var zContent = object({
|
|
14731
|
+
content: zContentBlock,
|
|
14732
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14733
|
+
});
|
|
14734
|
+
var zDiff = object({
|
|
14735
|
+
path: string2(),
|
|
14736
|
+
oldText: defaultOnError(string2().nullish(), () => void 0),
|
|
14737
|
+
newText: string2(),
|
|
14738
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14739
|
+
});
|
|
14740
|
+
var zTerminalId = string2();
|
|
14741
|
+
var zTerminal = object({
|
|
14742
|
+
terminalId: zTerminalId,
|
|
14743
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14744
|
+
});
|
|
14745
|
+
var zToolCallContent = union([
|
|
14746
|
+
zContent.and(object({
|
|
14747
|
+
type: literal("content")
|
|
14756
14748
|
})),
|
|
14757
|
-
|
|
14758
|
-
type:
|
|
14749
|
+
zDiff.and(object({
|
|
14750
|
+
type: literal("diff")
|
|
14759
14751
|
})),
|
|
14760
|
-
|
|
14752
|
+
zTerminal.and(object({
|
|
14753
|
+
type: literal("terminal")
|
|
14754
|
+
}))
|
|
14761
14755
|
]);
|
|
14762
|
-
var
|
|
14763
|
-
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
|
|
14768
|
-
});
|
|
14769
|
-
var
|
|
14770
|
-
|
|
14771
|
-
|
|
14772
|
-
|
|
14773
|
-
|
|
14756
|
+
var zToolCallLocation = object({
|
|
14757
|
+
path: string2(),
|
|
14758
|
+
line: defaultOnError(int().gte(0).max(4294967295, {
|
|
14759
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14760
|
+
}).nullish(), () => void 0),
|
|
14761
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14762
|
+
});
|
|
14763
|
+
var zToolCallUpdate = object({
|
|
14764
|
+
toolCallId: zToolCallId,
|
|
14765
|
+
kind: defaultOnError(zToolKind.nullish(), () => void 0),
|
|
14766
|
+
status: defaultOnError(zToolCallStatus.nullish(), () => void 0),
|
|
14767
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14768
|
+
content: defaultOnError(vecSkipError(zToolCallContent).nullish(), () => void 0),
|
|
14769
|
+
locations: defaultOnError(vecSkipError(zToolCallLocation).nullish(), () => void 0),
|
|
14770
|
+
rawInput: defaultOnError(unknown().optional(), () => void 0),
|
|
14771
|
+
rawOutput: defaultOnError(unknown().optional(), () => void 0),
|
|
14772
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14773
|
+
});
|
|
14774
|
+
var zPermissionOptionId = string2();
|
|
14775
|
+
var zPermissionOptionKind = union([
|
|
14776
|
+
literal("allow_once"),
|
|
14777
|
+
literal("allow_always"),
|
|
14778
|
+
literal("reject_once"),
|
|
14779
|
+
literal("reject_always")
|
|
14774
14780
|
]);
|
|
14775
|
-
var
|
|
14776
|
-
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
_meta:
|
|
14781
|
+
var zPermissionOption = object({
|
|
14782
|
+
optionId: zPermissionOptionId,
|
|
14783
|
+
name: string2(),
|
|
14784
|
+
kind: zPermissionOptionKind,
|
|
14785
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14780
14786
|
});
|
|
14781
|
-
var
|
|
14782
|
-
|
|
14787
|
+
var zRequestPermissionRequest = object({
|
|
14788
|
+
sessionId: zSessionId,
|
|
14789
|
+
toolCall: zToolCallUpdate,
|
|
14790
|
+
options: array(zPermissionOption),
|
|
14791
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14783
14792
|
});
|
|
14784
|
-
var
|
|
14785
|
-
|
|
14793
|
+
var zEnvVariable = object({
|
|
14794
|
+
name: string2(),
|
|
14795
|
+
value: string2(),
|
|
14796
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14786
14797
|
});
|
|
14787
|
-
var
|
|
14788
|
-
|
|
14798
|
+
var zCreateTerminalRequest = object({
|
|
14799
|
+
sessionId: zSessionId,
|
|
14800
|
+
command: string2(),
|
|
14801
|
+
args: defaultOnError(vecSkipError(string2()).optional(), () => []),
|
|
14802
|
+
env: defaultOnError(vecSkipError(zEnvVariable).optional(), () => []),
|
|
14803
|
+
cwd: defaultOnError(string2().nullish(), () => void 0),
|
|
14804
|
+
outputByteLimit: defaultOnError(number2().nullish(), () => void 0),
|
|
14805
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14806
|
+
});
|
|
14807
|
+
var zTerminalOutputRequest = object({
|
|
14808
|
+
sessionId: zSessionId,
|
|
14809
|
+
terminalId: zTerminalId,
|
|
14810
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14789
14811
|
});
|
|
14790
|
-
var
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
}).nullish()
|
|
14812
|
+
var zReleaseTerminalRequest = object({
|
|
14813
|
+
sessionId: zSessionId,
|
|
14814
|
+
terminalId: zTerminalId,
|
|
14815
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14795
14816
|
});
|
|
14796
|
-
var
|
|
14797
|
-
|
|
14798
|
-
|
|
14817
|
+
var zWaitForTerminalExitRequest = object({
|
|
14818
|
+
sessionId: zSessionId,
|
|
14819
|
+
terminalId: zTerminalId,
|
|
14820
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14799
14821
|
});
|
|
14800
|
-
var
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14804
|
-
startLine: external_exports.number().int().gte(0).max(4294967295, {
|
|
14805
|
-
message: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14806
|
-
}),
|
|
14807
|
-
text: external_exports.string()
|
|
14808
|
-
});
|
|
14809
|
-
var zNesJumpCapabilities = external_exports.object({
|
|
14810
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14811
|
-
});
|
|
14812
|
-
var zNesOpenFilesCapabilities = external_exports.object({
|
|
14813
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14814
|
-
});
|
|
14815
|
-
var zNesRecentFile = external_exports.object({
|
|
14816
|
-
languageId: external_exports.string(),
|
|
14817
|
-
text: external_exports.string(),
|
|
14818
|
-
uri: external_exports.string()
|
|
14819
|
-
});
|
|
14820
|
-
var zNesRecentFilesCapabilities = external_exports.object({
|
|
14821
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14822
|
-
maxCount: external_exports.number().int().gte(0).max(4294967295, {
|
|
14823
|
-
message: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14824
|
-
}).nullish()
|
|
14825
|
-
});
|
|
14826
|
-
var zNesRejectReason = external_exports.union([
|
|
14827
|
-
external_exports.literal("rejected"),
|
|
14828
|
-
external_exports.literal("ignored"),
|
|
14829
|
-
external_exports.literal("replaced"),
|
|
14830
|
-
external_exports.literal("cancelled")
|
|
14831
|
-
]);
|
|
14832
|
-
var zNesRelatedSnippet = external_exports.object({
|
|
14833
|
-
excerpts: external_exports.array(zNesExcerpt),
|
|
14834
|
-
uri: external_exports.string()
|
|
14822
|
+
var zKillTerminalRequest = object({
|
|
14823
|
+
sessionId: zSessionId,
|
|
14824
|
+
terminalId: zTerminalId,
|
|
14825
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14835
14826
|
});
|
|
14836
|
-
var
|
|
14837
|
-
|
|
14827
|
+
var zElicitationSessionScope = object({
|
|
14828
|
+
sessionId: zSessionId,
|
|
14829
|
+
toolCallId: defaultOnError(zToolCallId.nullish(), () => void 0)
|
|
14838
14830
|
});
|
|
14839
|
-
var
|
|
14840
|
-
|
|
14831
|
+
var zElicitationRequestScope = object({
|
|
14832
|
+
requestId: zRequestId
|
|
14841
14833
|
});
|
|
14842
|
-
var
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
14849
|
-
});
|
|
14850
|
-
var zClientNesCapabilities = external_exports.object({
|
|
14851
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14852
|
-
jump: zNesJumpCapabilities.nullish(),
|
|
14853
|
-
rename: zNesRenameCapabilities.nullish(),
|
|
14854
|
-
searchAndReplace: zNesSearchAndReplaceCapabilities.nullish()
|
|
14855
|
-
});
|
|
14856
|
-
var zNesSearchAndReplaceSuggestion = external_exports.object({
|
|
14857
|
-
id: external_exports.string(),
|
|
14858
|
-
isRegex: external_exports.boolean().nullish(),
|
|
14859
|
-
replace: external_exports.string(),
|
|
14860
|
-
search: external_exports.string(),
|
|
14861
|
-
uri: external_exports.string()
|
|
14862
|
-
});
|
|
14863
|
-
var zNesTriggerKind = external_exports.union([
|
|
14864
|
-
external_exports.literal("automatic"),
|
|
14865
|
-
external_exports.literal("diagnostic"),
|
|
14866
|
-
external_exports.literal("manual")
|
|
14867
|
-
]);
|
|
14868
|
-
var zNesUserActionsCapabilities = external_exports.object({
|
|
14869
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14870
|
-
maxCount: external_exports.number().int().gte(0).max(4294967295, {
|
|
14871
|
-
message: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14872
|
-
}).nullish()
|
|
14873
|
-
});
|
|
14874
|
-
var zNesContextCapabilities = external_exports.object({
|
|
14875
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14876
|
-
diagnostics: zNesDiagnosticsCapabilities.nullish(),
|
|
14877
|
-
editHistory: zNesEditHistoryCapabilities.nullish(),
|
|
14878
|
-
openFiles: zNesOpenFilesCapabilities.nullish(),
|
|
14879
|
-
recentFiles: zNesRecentFilesCapabilities.nullish(),
|
|
14880
|
-
relatedSnippets: zNesRelatedSnippetsCapabilities.nullish(),
|
|
14881
|
-
userActions: zNesUserActionsCapabilities.nullish()
|
|
14882
|
-
});
|
|
14883
|
-
var zNewSessionRequest = external_exports.object({
|
|
14884
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14885
|
-
additionalDirectories: external_exports.array(external_exports.string()).optional(),
|
|
14886
|
-
cwd: external_exports.string(),
|
|
14887
|
-
mcpServers: external_exports.array(zMcpServer)
|
|
14888
|
-
});
|
|
14889
|
-
var zNumberPropertySchema = external_exports.object({
|
|
14890
|
-
default: external_exports.number().nullish(),
|
|
14891
|
-
description: external_exports.string().nullish(),
|
|
14892
|
-
maximum: external_exports.number().nullish(),
|
|
14893
|
-
minimum: external_exports.number().nullish(),
|
|
14894
|
-
title: external_exports.string().nullish()
|
|
14895
|
-
});
|
|
14896
|
-
var zPermissionOptionId = external_exports.string();
|
|
14897
|
-
var zPermissionOptionKind = external_exports.union([
|
|
14898
|
-
external_exports.literal("allow_once"),
|
|
14899
|
-
external_exports.literal("allow_always"),
|
|
14900
|
-
external_exports.literal("reject_once"),
|
|
14901
|
-
external_exports.literal("reject_always")
|
|
14834
|
+
var zElicitationSchemaType = literal("object");
|
|
14835
|
+
var zStringFormat = union([
|
|
14836
|
+
literal("email"),
|
|
14837
|
+
literal("uri"),
|
|
14838
|
+
literal("date"),
|
|
14839
|
+
literal("date-time")
|
|
14902
14840
|
]);
|
|
14903
|
-
var
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
14841
|
+
var zEnumOption = object({
|
|
14842
|
+
const: string2(),
|
|
14843
|
+
title: string2(),
|
|
14844
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14845
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14846
|
+
});
|
|
14847
|
+
var zStringPropertySchema = object({
|
|
14848
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14849
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14850
|
+
minLength: int().gte(0).max(4294967295, {
|
|
14851
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14852
|
+
}).nullish(),
|
|
14853
|
+
maxLength: int().gte(0).max(4294967295, {
|
|
14854
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14855
|
+
}).nullish(),
|
|
14856
|
+
pattern: string2().nullish(),
|
|
14857
|
+
format: zStringFormat.nullish(),
|
|
14858
|
+
default: defaultOnError(string2().nullish(), () => void 0),
|
|
14859
|
+
enum: array(string2()).nullish(),
|
|
14860
|
+
oneOf: array(zEnumOption).nullish(),
|
|
14861
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14862
|
+
});
|
|
14863
|
+
var zNumberPropertySchema = object({
|
|
14864
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14865
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14866
|
+
minimum: number2().nullish(),
|
|
14867
|
+
maximum: number2().nullish(),
|
|
14868
|
+
default: defaultOnError(number2().nullish(), () => void 0),
|
|
14869
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14870
|
+
});
|
|
14871
|
+
var zIntegerPropertySchema = object({
|
|
14872
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14873
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14874
|
+
minimum: number2().nullish(),
|
|
14875
|
+
maximum: number2().nullish(),
|
|
14876
|
+
default: defaultOnError(number2().nullish(), () => void 0),
|
|
14877
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14878
|
+
});
|
|
14879
|
+
var zBooleanPropertySchema = object({
|
|
14880
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14881
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14882
|
+
default: defaultOnError(boolean2().nullish(), () => void 0),
|
|
14883
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14884
|
+
});
|
|
14885
|
+
var zStringMultiSelectItems = object({
|
|
14886
|
+
enum: array(string2()),
|
|
14887
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14888
|
+
});
|
|
14889
|
+
var zTitledMultiSelectItems = object({
|
|
14890
|
+
anyOf: array(zEnumOption),
|
|
14891
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14892
|
+
});
|
|
14893
|
+
var zMultiSelectItems = preserveCustomPayload(union([
|
|
14894
|
+
zStringMultiSelectItems.and(object({
|
|
14895
|
+
type: literal("string")
|
|
14896
|
+
})),
|
|
14897
|
+
excludeKnownTags(object({
|
|
14898
|
+
type: string2()
|
|
14899
|
+
}), "type", ["string"]),
|
|
14900
|
+
zTitledMultiSelectItems
|
|
14901
|
+
]), "type", ["string"]);
|
|
14902
|
+
var zMultiSelectPropertySchema = object({
|
|
14903
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14904
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14905
|
+
minItems: number2().nullish(),
|
|
14906
|
+
maxItems: number2().nullish(),
|
|
14907
|
+
items: zMultiSelectItems,
|
|
14908
|
+
default: defaultOnError(vecSkipError(string2()).nullish(), () => void 0),
|
|
14909
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14908
14910
|
});
|
|
14909
|
-
var
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14911
|
+
var zElicitationPropertySchema = preserveCustomPayload(union([
|
|
14912
|
+
zStringPropertySchema.and(object({
|
|
14913
|
+
type: literal("string")
|
|
14914
|
+
})),
|
|
14915
|
+
zNumberPropertySchema.and(object({
|
|
14916
|
+
type: literal("number")
|
|
14917
|
+
})),
|
|
14918
|
+
zIntegerPropertySchema.and(object({
|
|
14919
|
+
type: literal("integer")
|
|
14920
|
+
})),
|
|
14921
|
+
zBooleanPropertySchema.and(object({
|
|
14922
|
+
type: literal("boolean")
|
|
14923
|
+
})),
|
|
14924
|
+
zMultiSelectPropertySchema.and(object({
|
|
14925
|
+
type: literal("array")
|
|
14926
|
+
})),
|
|
14927
|
+
excludeKnownTags(object({
|
|
14928
|
+
type: string2()
|
|
14929
|
+
}), "type", ["array", "boolean", "integer", "number", "string"])
|
|
14930
|
+
]), "type", ["array", "boolean", "integer", "number", "string"]);
|
|
14931
|
+
var zElicitationSchema = object({
|
|
14932
|
+
type: defaultOnError(zElicitationSchemaType.optional().default("object"), () => "object"),
|
|
14933
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
14934
|
+
properties: record(string2(), zElicitationPropertySchema).optional().default({}),
|
|
14935
|
+
required: array(string2()).nullish(),
|
|
14936
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
14937
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14938
|
+
});
|
|
14939
|
+
var zElicitationFormMode = intersection(union([zElicitationSessionScope, zElicitationRequestScope]), object({
|
|
14940
|
+
requestedSchema: zElicitationSchema
|
|
14941
|
+
}));
|
|
14942
|
+
var zElicitationId = string2();
|
|
14943
|
+
var zElicitationUrlMode = intersection(union([zElicitationSessionScope, zElicitationRequestScope]), object({
|
|
14944
|
+
elicitationId: zElicitationId,
|
|
14945
|
+
url: url()
|
|
14946
|
+
}));
|
|
14947
|
+
var zCreateElicitationRequest = preserveCustomPayload(intersection(union([
|
|
14948
|
+
zElicitationFormMode.and(object({
|
|
14949
|
+
mode: literal("form")
|
|
14950
|
+
})),
|
|
14951
|
+
zElicitationUrlMode.and(object({
|
|
14952
|
+
mode: literal("url")
|
|
14953
|
+
})),
|
|
14954
|
+
excludeKnownTags(intersection(union([zElicitationSessionScope, zElicitationRequestScope]), object({
|
|
14955
|
+
mode: string2()
|
|
14956
|
+
})), "mode", ["form", "url"])
|
|
14957
|
+
]), object({
|
|
14958
|
+
message: string2(),
|
|
14959
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14960
|
+
})), "mode", ["form", "url"]);
|
|
14961
|
+
var zMcpServerAcpId = string2();
|
|
14962
|
+
var zConnectMcpRequest = object({
|
|
14963
|
+
serverId: zMcpServerAcpId,
|
|
14964
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14965
|
+
});
|
|
14966
|
+
var zMcpConnectionId = string2();
|
|
14967
|
+
var zMessageMcpRequest = object({
|
|
14968
|
+
connectionId: zMcpConnectionId,
|
|
14969
|
+
method: string2(),
|
|
14970
|
+
params: record(string2(), unknown()).nullish(),
|
|
14971
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14972
|
+
});
|
|
14973
|
+
var zDisconnectMcpRequest = object({
|
|
14974
|
+
connectionId: zMcpConnectionId,
|
|
14975
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14976
|
+
});
|
|
14977
|
+
var zExtRequest = unknown();
|
|
14978
|
+
object({
|
|
14979
|
+
id: zRequestId,
|
|
14980
|
+
method: string2(),
|
|
14981
|
+
params: union([
|
|
14982
|
+
zWriteTextFileRequest,
|
|
14983
|
+
zReadTextFileRequest,
|
|
14984
|
+
zRequestPermissionRequest,
|
|
14985
|
+
zCreateTerminalRequest,
|
|
14986
|
+
zTerminalOutputRequest,
|
|
14987
|
+
zReleaseTerminalRequest,
|
|
14988
|
+
zWaitForTerminalExitRequest,
|
|
14989
|
+
zKillTerminalRequest,
|
|
14990
|
+
zCreateElicitationRequest,
|
|
14991
|
+
zConnectMcpRequest,
|
|
14992
|
+
zMessageMcpRequest,
|
|
14993
|
+
zDisconnectMcpRequest,
|
|
14994
|
+
zExtRequest
|
|
14995
|
+
]).nullish()
|
|
14924
14996
|
});
|
|
14925
|
-
var
|
|
14926
|
-
|
|
14927
|
-
|
|
14997
|
+
var zProtocolVersion = int().gte(0).lte(65535);
|
|
14998
|
+
var zPromptCapabilities = object({
|
|
14999
|
+
image: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15000
|
+
audio: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15001
|
+
embeddedContext: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15002
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14928
15003
|
});
|
|
14929
|
-
var
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
message: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
14935
|
-
})
|
|
15004
|
+
var zMcpCapabilities = object({
|
|
15005
|
+
http: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15006
|
+
sse: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15007
|
+
acp: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15008
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14936
15009
|
});
|
|
14937
|
-
var
|
|
14938
|
-
|
|
14939
|
-
position: zPosition,
|
|
14940
|
-
uri: external_exports.string()
|
|
15010
|
+
var zSessionListCapabilities = object({
|
|
15011
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14941
15012
|
});
|
|
14942
|
-
var
|
|
14943
|
-
|
|
14944
|
-
newName: external_exports.string(),
|
|
14945
|
-
position: zPosition,
|
|
14946
|
-
uri: external_exports.string()
|
|
15013
|
+
var zSessionDeleteCapabilities = object({
|
|
15014
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14947
15015
|
});
|
|
14948
|
-
var
|
|
14949
|
-
|
|
14950
|
-
position: zPosition,
|
|
14951
|
-
timestampMs: external_exports.number(),
|
|
14952
|
-
uri: external_exports.string()
|
|
15016
|
+
var zSessionAdditionalDirectoriesCapabilities = object({
|
|
15017
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14953
15018
|
});
|
|
14954
|
-
var
|
|
14955
|
-
|
|
14956
|
-
external_exports.literal("utf-32"),
|
|
14957
|
-
external_exports.literal("utf-8")
|
|
14958
|
-
]);
|
|
14959
|
-
var zClientCapabilities = external_exports.object({
|
|
14960
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14961
|
-
auth: zAuthCapabilities.optional().default({ terminal: false }),
|
|
14962
|
-
elicitation: zElicitationCapabilities.nullish(),
|
|
14963
|
-
fs: zFileSystemCapabilities.optional().default({ readTextFile: false, writeTextFile: false }),
|
|
14964
|
-
nes: zClientNesCapabilities.nullish(),
|
|
14965
|
-
positionEncodings: external_exports.array(zPositionEncodingKind).optional(),
|
|
14966
|
-
terminal: external_exports.boolean().optional().default(false)
|
|
14967
|
-
});
|
|
14968
|
-
var zPromptCapabilities = external_exports.object({
|
|
14969
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14970
|
-
audio: external_exports.boolean().optional().default(false),
|
|
14971
|
-
embeddedContext: external_exports.boolean().optional().default(false),
|
|
14972
|
-
image: external_exports.boolean().optional().default(false)
|
|
14973
|
-
});
|
|
14974
|
-
var zProtocolVersion = external_exports.number().int().gte(0).lte(65535);
|
|
14975
|
-
var zInitializeRequest = external_exports.object({
|
|
14976
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
14977
|
-
clientCapabilities: zClientCapabilities.optional().default({
|
|
14978
|
-
auth: { terminal: false },
|
|
14979
|
-
fs: { readTextFile: false, writeTextFile: false },
|
|
14980
|
-
terminal: false
|
|
14981
|
-
}),
|
|
14982
|
-
clientInfo: zImplementation.nullish(),
|
|
14983
|
-
protocolVersion: zProtocolVersion
|
|
15019
|
+
var zSessionForkCapabilities = object({
|
|
15020
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14984
15021
|
});
|
|
14985
|
-
var
|
|
14986
|
-
|
|
14987
|
-
baseUrl: external_exports.string()
|
|
15022
|
+
var zSessionResumeCapabilities = object({
|
|
15023
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14988
15024
|
});
|
|
14989
|
-
var
|
|
14990
|
-
_meta:
|
|
14991
|
-
current: zProviderCurrentConfig.nullish(),
|
|
14992
|
-
id: external_exports.string(),
|
|
14993
|
-
required: external_exports.boolean(),
|
|
14994
|
-
supported: external_exports.array(zLlmProtocol)
|
|
15025
|
+
var zSessionCloseCapabilities = object({
|
|
15026
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14995
15027
|
});
|
|
14996
|
-
var
|
|
14997
|
-
|
|
14998
|
-
|
|
15028
|
+
var zSessionCapabilities = object({
|
|
15029
|
+
list: defaultOnError(zSessionListCapabilities.nullish(), () => void 0),
|
|
15030
|
+
delete: defaultOnError(zSessionDeleteCapabilities.nullish(), () => void 0),
|
|
15031
|
+
additionalDirectories: defaultOnError(zSessionAdditionalDirectoriesCapabilities.nullish(), () => void 0),
|
|
15032
|
+
fork: defaultOnError(zSessionForkCapabilities.nullish(), () => void 0),
|
|
15033
|
+
resume: defaultOnError(zSessionResumeCapabilities.nullish(), () => void 0),
|
|
15034
|
+
close: defaultOnError(zSessionCloseCapabilities.nullish(), () => void 0),
|
|
15035
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
14999
15036
|
});
|
|
15000
|
-
var
|
|
15001
|
-
_meta:
|
|
15037
|
+
var zLogoutCapabilities = object({
|
|
15038
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15002
15039
|
});
|
|
15003
|
-
var
|
|
15004
|
-
|
|
15005
|
-
|
|
15040
|
+
var zAgentAuthCapabilities = object({
|
|
15041
|
+
logout: defaultOnError(zLogoutCapabilities.nullish(), () => void 0),
|
|
15042
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15006
15043
|
});
|
|
15007
|
-
var
|
|
15008
|
-
|
|
15009
|
-
|
|
15010
|
-
|
|
15011
|
-
|
|
15012
|
-
});
|
|
15013
|
-
var
|
|
15014
|
-
|
|
15015
|
-
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
|
|
15031
|
-
|
|
15032
|
-
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
|
|
15037
|
-
});
|
|
15038
|
-
var
|
|
15039
|
-
|
|
15040
|
-
|
|
15044
|
+
var zProvidersCapabilities = object({
|
|
15045
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15046
|
+
});
|
|
15047
|
+
var zNesDocumentDidOpenCapabilities = object({
|
|
15048
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15049
|
+
});
|
|
15050
|
+
var zTextDocumentSyncKind = union([
|
|
15051
|
+
literal("full"),
|
|
15052
|
+
literal("incremental")
|
|
15053
|
+
]);
|
|
15054
|
+
var zNesDocumentDidChangeCapabilities = object({
|
|
15055
|
+
syncKind: zTextDocumentSyncKind,
|
|
15056
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15057
|
+
});
|
|
15058
|
+
var zNesDocumentDidCloseCapabilities = object({
|
|
15059
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15060
|
+
});
|
|
15061
|
+
var zNesDocumentDidSaveCapabilities = object({
|
|
15062
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15063
|
+
});
|
|
15064
|
+
var zNesDocumentDidFocusCapabilities = object({
|
|
15065
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15066
|
+
});
|
|
15067
|
+
var zNesDocumentEventCapabilities = object({
|
|
15068
|
+
didOpen: defaultOnError(zNesDocumentDidOpenCapabilities.nullish(), () => void 0),
|
|
15069
|
+
didChange: defaultOnError(zNesDocumentDidChangeCapabilities.nullish(), () => void 0),
|
|
15070
|
+
didClose: defaultOnError(zNesDocumentDidCloseCapabilities.nullish(), () => void 0),
|
|
15071
|
+
didSave: defaultOnError(zNesDocumentDidSaveCapabilities.nullish(), () => void 0),
|
|
15072
|
+
didFocus: defaultOnError(zNesDocumentDidFocusCapabilities.nullish(), () => void 0),
|
|
15073
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15074
|
+
});
|
|
15075
|
+
var zNesEventCapabilities = object({
|
|
15076
|
+
document: defaultOnError(zNesDocumentEventCapabilities.nullish(), () => void 0),
|
|
15077
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15078
|
+
});
|
|
15079
|
+
var zNesRecentFilesCapabilities = object({
|
|
15080
|
+
maxCount: defaultOnError(int().gte(0).max(4294967295, {
|
|
15081
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15082
|
+
}).nullish(), () => void 0),
|
|
15083
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15084
|
+
});
|
|
15085
|
+
var zNesRelatedSnippetsCapabilities = object({
|
|
15086
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15087
|
+
});
|
|
15088
|
+
var zNesEditHistoryCapabilities = object({
|
|
15089
|
+
maxCount: defaultOnError(int().gte(0).max(4294967295, {
|
|
15090
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15091
|
+
}).nullish(), () => void 0),
|
|
15092
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15093
|
+
});
|
|
15094
|
+
var zNesUserActionsCapabilities = object({
|
|
15095
|
+
maxCount: defaultOnError(int().gte(0).max(4294967295, {
|
|
15096
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15097
|
+
}).nullish(), () => void 0),
|
|
15098
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15099
|
+
});
|
|
15100
|
+
var zNesOpenFilesCapabilities = object({
|
|
15101
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15102
|
+
});
|
|
15103
|
+
var zNesDiagnosticsCapabilities = object({
|
|
15104
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15105
|
+
});
|
|
15106
|
+
var zNesContextCapabilities = object({
|
|
15107
|
+
recentFiles: defaultOnError(zNesRecentFilesCapabilities.nullish(), () => void 0),
|
|
15108
|
+
relatedSnippets: defaultOnError(zNesRelatedSnippetsCapabilities.nullish(), () => void 0),
|
|
15109
|
+
editHistory: defaultOnError(zNesEditHistoryCapabilities.nullish(), () => void 0),
|
|
15110
|
+
userActions: defaultOnError(zNesUserActionsCapabilities.nullish(), () => void 0),
|
|
15111
|
+
openFiles: defaultOnError(zNesOpenFilesCapabilities.nullish(), () => void 0),
|
|
15112
|
+
diagnostics: defaultOnError(zNesDiagnosticsCapabilities.nullish(), () => void 0),
|
|
15113
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15114
|
+
});
|
|
15115
|
+
var zNesCapabilities = object({
|
|
15116
|
+
events: defaultOnError(zNesEventCapabilities.nullish(), () => void 0),
|
|
15117
|
+
context: defaultOnError(zNesContextCapabilities.nullish(), () => void 0),
|
|
15118
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15119
|
+
});
|
|
15120
|
+
var zPositionEncodingKind = union([
|
|
15121
|
+
literal("utf-16"),
|
|
15122
|
+
literal("utf-32"),
|
|
15123
|
+
literal("utf-8")
|
|
15124
|
+
]);
|
|
15125
|
+
var zAgentCapabilities = object({
|
|
15126
|
+
loadSession: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15127
|
+
promptCapabilities: defaultOnError(zPromptCapabilities.optional().default({
|
|
15128
|
+
image: false,
|
|
15129
|
+
audio: false,
|
|
15130
|
+
embeddedContext: false
|
|
15131
|
+
}), () => ({
|
|
15132
|
+
image: false,
|
|
15133
|
+
audio: false,
|
|
15134
|
+
embeddedContext: false
|
|
15041
15135
|
})),
|
|
15042
|
-
|
|
15043
|
-
|
|
15136
|
+
mcpCapabilities: defaultOnError(zMcpCapabilities.optional().default({
|
|
15137
|
+
http: false,
|
|
15138
|
+
sse: false,
|
|
15139
|
+
acp: false
|
|
15140
|
+
}), () => ({
|
|
15141
|
+
http: false,
|
|
15142
|
+
sse: false,
|
|
15143
|
+
acp: false
|
|
15044
15144
|
})),
|
|
15045
|
-
|
|
15046
|
-
|
|
15145
|
+
sessionCapabilities: defaultOnError(zSessionCapabilities.optional().default({}), () => ({})),
|
|
15146
|
+
auth: defaultOnError(zAgentAuthCapabilities.optional().default({}), () => ({})),
|
|
15147
|
+
providers: defaultOnError(zProvidersCapabilities.nullish(), () => void 0),
|
|
15148
|
+
nes: defaultOnError(zNesCapabilities.nullish(), () => void 0),
|
|
15149
|
+
positionEncoding: defaultOnError(zPositionEncodingKind.nullish(), () => void 0),
|
|
15150
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15151
|
+
});
|
|
15152
|
+
var zAuthMethodId = string2();
|
|
15153
|
+
var zAuthEnvVar = object({
|
|
15154
|
+
name: string2(),
|
|
15155
|
+
label: defaultOnError(string2().nullish(), () => void 0),
|
|
15156
|
+
secret: defaultOnError(boolean2().optional().default(true), () => true),
|
|
15157
|
+
optional: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15158
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15159
|
+
});
|
|
15160
|
+
var zAuthMethodEnvVar = object({
|
|
15161
|
+
id: zAuthMethodId,
|
|
15162
|
+
name: string2(),
|
|
15163
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
15164
|
+
vars: requiredDefaultOnError(vecSkipError(zAuthEnvVar), () => []),
|
|
15165
|
+
link: defaultOnError(string2().nullish(), () => void 0),
|
|
15166
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15167
|
+
});
|
|
15168
|
+
var zAuthMethodTerminal = object({
|
|
15169
|
+
id: zAuthMethodId,
|
|
15170
|
+
name: string2(),
|
|
15171
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
15172
|
+
args: defaultOnError(vecSkipError(string2()).optional(), () => []),
|
|
15173
|
+
env: defaultOnError(record(string2(), string2()).optional(), () => void 0),
|
|
15174
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15175
|
+
});
|
|
15176
|
+
var zAuthMethodAgent = object({
|
|
15177
|
+
id: zAuthMethodId,
|
|
15178
|
+
name: string2(),
|
|
15179
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
15180
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15181
|
+
});
|
|
15182
|
+
var zAuthMethod = union([
|
|
15183
|
+
zAuthMethodEnvVar.and(object({
|
|
15184
|
+
type: literal("env_var")
|
|
15047
15185
|
})),
|
|
15048
|
-
|
|
15049
|
-
|
|
15050
|
-
}))
|
|
15186
|
+
zAuthMethodTerminal.and(object({
|
|
15187
|
+
type: literal("terminal")
|
|
15188
|
+
})),
|
|
15189
|
+
zAuthMethodAgent
|
|
15051
15190
|
]);
|
|
15052
|
-
var
|
|
15053
|
-
|
|
15054
|
-
|
|
15191
|
+
var zImplementation = object({
|
|
15192
|
+
name: string2(),
|
|
15193
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
15194
|
+
version: string2(),
|
|
15195
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15196
|
+
});
|
|
15197
|
+
var zInitializeResponse = object({
|
|
15198
|
+
protocolVersion: zProtocolVersion,
|
|
15199
|
+
agentCapabilities: defaultOnError(zAgentCapabilities.optional().default({
|
|
15200
|
+
loadSession: false,
|
|
15201
|
+
promptCapabilities: {
|
|
15202
|
+
image: false,
|
|
15203
|
+
audio: false,
|
|
15204
|
+
embeddedContext: false
|
|
15205
|
+
},
|
|
15206
|
+
mcpCapabilities: {
|
|
15207
|
+
http: false,
|
|
15208
|
+
sse: false,
|
|
15209
|
+
acp: false
|
|
15210
|
+
},
|
|
15211
|
+
sessionCapabilities: {},
|
|
15212
|
+
auth: {}
|
|
15213
|
+
}), () => ({
|
|
15214
|
+
loadSession: false,
|
|
15215
|
+
promptCapabilities: {
|
|
15216
|
+
image: false,
|
|
15217
|
+
audio: false,
|
|
15218
|
+
embeddedContext: false
|
|
15219
|
+
},
|
|
15220
|
+
mcpCapabilities: {
|
|
15221
|
+
http: false,
|
|
15222
|
+
sse: false,
|
|
15223
|
+
acp: false
|
|
15224
|
+
},
|
|
15225
|
+
sessionCapabilities: {},
|
|
15226
|
+
auth: {}
|
|
15227
|
+
})),
|
|
15228
|
+
authMethods: defaultOnError(vecSkipError(zAuthMethod).optional().default([]), () => []),
|
|
15229
|
+
agentInfo: defaultOnError(zImplementation.nullish(), () => void 0),
|
|
15230
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15231
|
+
});
|
|
15232
|
+
var zAuthenticateResponse = object({
|
|
15233
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15234
|
+
});
|
|
15235
|
+
var zProviderId = string2();
|
|
15236
|
+
var zLlmProtocol = union([
|
|
15237
|
+
literal("anthropic"),
|
|
15238
|
+
literal("openai"),
|
|
15239
|
+
literal("azure"),
|
|
15240
|
+
literal("vertex"),
|
|
15241
|
+
literal("bedrock"),
|
|
15242
|
+
string2()
|
|
15243
|
+
]);
|
|
15244
|
+
var zProviderCurrentConfig = object({
|
|
15245
|
+
apiType: zLlmProtocol,
|
|
15246
|
+
baseUrl: string2(),
|
|
15247
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15055
15248
|
});
|
|
15056
|
-
var
|
|
15057
|
-
|
|
15249
|
+
var zProviderInfo = object({
|
|
15250
|
+
providerId: zProviderId,
|
|
15251
|
+
supported: requiredDefaultOnError(vecSkipError(zLlmProtocol), () => []),
|
|
15252
|
+
required: boolean2(),
|
|
15253
|
+
current: zProviderCurrentConfig.nullish(),
|
|
15254
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15058
15255
|
});
|
|
15059
|
-
var
|
|
15060
|
-
|
|
15061
|
-
_meta:
|
|
15062
|
-
requestId: zRequestId
|
|
15256
|
+
var zListProvidersResponse = object({
|
|
15257
|
+
providers: array(zProviderInfo),
|
|
15258
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15063
15259
|
});
|
|
15064
|
-
var
|
|
15065
|
-
|
|
15260
|
+
var zSetProviderResponse = object({
|
|
15261
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15066
15262
|
});
|
|
15067
|
-
var
|
|
15068
|
-
|
|
15069
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15070
|
-
audience: external_exports.array(zRole).nullish(),
|
|
15071
|
-
lastModified: external_exports.string().nullish(),
|
|
15072
|
-
priority: external_exports.number().nullish()
|
|
15073
|
-
});
|
|
15074
|
-
var zAudioContent = external_exports.object({
|
|
15075
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15076
|
-
annotations: zAnnotations.nullish(),
|
|
15077
|
-
data: external_exports.string(),
|
|
15078
|
-
mimeType: external_exports.string()
|
|
15079
|
-
});
|
|
15080
|
-
var zImageContent = external_exports.object({
|
|
15081
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15082
|
-
annotations: zAnnotations.nullish(),
|
|
15083
|
-
data: external_exports.string(),
|
|
15084
|
-
mimeType: external_exports.string(),
|
|
15085
|
-
uri: external_exports.string().nullish()
|
|
15086
|
-
});
|
|
15087
|
-
var zResourceLink = external_exports.object({
|
|
15088
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15089
|
-
annotations: zAnnotations.nullish(),
|
|
15090
|
-
description: external_exports.string().nullish(),
|
|
15091
|
-
mimeType: external_exports.string().nullish(),
|
|
15092
|
-
name: external_exports.string(),
|
|
15093
|
-
size: external_exports.number().nullish(),
|
|
15094
|
-
title: external_exports.string().nullish(),
|
|
15095
|
-
uri: external_exports.string()
|
|
15263
|
+
var zDisableProviderResponse = object({
|
|
15264
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15096
15265
|
});
|
|
15097
|
-
var
|
|
15098
|
-
_meta:
|
|
15099
|
-
optionId: zPermissionOptionId
|
|
15266
|
+
var zLogoutResponse = object({
|
|
15267
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15100
15268
|
});
|
|
15101
|
-
var
|
|
15102
|
-
|
|
15103
|
-
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15108
|
-
|
|
15109
|
-
|
|
15110
|
-
|
|
15111
|
-
|
|
15112
|
-
});
|
|
15113
|
-
var
|
|
15114
|
-
|
|
15115
|
-
|
|
15116
|
-
|
|
15117
|
-
|
|
15118
|
-
|
|
15119
|
-
|
|
15120
|
-
currentValue: external_exports.boolean()
|
|
15121
|
-
});
|
|
15122
|
-
var zSessionConfigGroupId = external_exports.string();
|
|
15123
|
-
var zSessionConfigId = external_exports.string();
|
|
15124
|
-
var zSessionConfigOptionCategory = external_exports.union([
|
|
15125
|
-
external_exports.literal("mode"),
|
|
15126
|
-
external_exports.literal("model"),
|
|
15127
|
-
external_exports.literal("thought_level"),
|
|
15128
|
-
external_exports.string()
|
|
15269
|
+
var zSessionModeId = string2();
|
|
15270
|
+
var zSessionMode = object({
|
|
15271
|
+
id: zSessionModeId,
|
|
15272
|
+
name: string2(),
|
|
15273
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
15274
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15275
|
+
});
|
|
15276
|
+
var zSessionModeState = object({
|
|
15277
|
+
currentModeId: zSessionModeId,
|
|
15278
|
+
availableModes: requiredDefaultOnError(vecSkipError(zSessionMode), () => []),
|
|
15279
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15280
|
+
});
|
|
15281
|
+
var zSessionConfigId = string2();
|
|
15282
|
+
var zSessionConfigOptionCategory = union([
|
|
15283
|
+
literal("mode"),
|
|
15284
|
+
literal("model"),
|
|
15285
|
+
literal("model_config"),
|
|
15286
|
+
literal("thought_level"),
|
|
15287
|
+
string2()
|
|
15129
15288
|
]);
|
|
15130
|
-
var zSessionConfigValueId =
|
|
15131
|
-
var zSessionConfigSelectOption =
|
|
15132
|
-
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
});
|
|
15137
|
-
var
|
|
15138
|
-
|
|
15289
|
+
var zSessionConfigValueId = string2();
|
|
15290
|
+
var zSessionConfigSelectOption = object({
|
|
15291
|
+
value: zSessionConfigValueId,
|
|
15292
|
+
name: string2(),
|
|
15293
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
15294
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15295
|
+
});
|
|
15296
|
+
var zSessionConfigGroupId = string2();
|
|
15297
|
+
var zSessionConfigSelectGroup = object({
|
|
15139
15298
|
group: zSessionConfigGroupId,
|
|
15140
|
-
name:
|
|
15141
|
-
options:
|
|
15299
|
+
name: string2(),
|
|
15300
|
+
options: requiredDefaultOnError(vecSkipError(zSessionConfigSelectOption), () => []),
|
|
15301
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15142
15302
|
});
|
|
15143
|
-
var zSessionConfigSelectOptions =
|
|
15144
|
-
|
|
15145
|
-
|
|
15303
|
+
var zSessionConfigSelectOptions = union([
|
|
15304
|
+
array(zSessionConfigSelectOption),
|
|
15305
|
+
array(zSessionConfigSelectGroup)
|
|
15146
15306
|
]);
|
|
15147
|
-
var zSessionConfigSelect =
|
|
15307
|
+
var zSessionConfigSelect = object({
|
|
15148
15308
|
currentValue: zSessionConfigValueId,
|
|
15149
15309
|
options: zSessionConfigSelectOptions
|
|
15150
15310
|
});
|
|
15151
|
-
var
|
|
15152
|
-
|
|
15153
|
-
|
|
15311
|
+
var zSessionConfigBoolean = object({
|
|
15312
|
+
currentValue: boolean2()
|
|
15313
|
+
});
|
|
15314
|
+
var zSessionConfigOption = intersection(union([
|
|
15315
|
+
zSessionConfigSelect.and(object({
|
|
15316
|
+
type: literal("select")
|
|
15154
15317
|
})),
|
|
15155
|
-
zSessionConfigBoolean.and(
|
|
15156
|
-
type:
|
|
15318
|
+
zSessionConfigBoolean.and(object({
|
|
15319
|
+
type: literal("boolean")
|
|
15157
15320
|
}))
|
|
15158
|
-
]),
|
|
15159
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15160
|
-
category: zSessionConfigOptionCategory.nullish(),
|
|
15161
|
-
description: external_exports.string().nullish(),
|
|
15321
|
+
]), object({
|
|
15162
15322
|
id: zSessionConfigId,
|
|
15163
|
-
name:
|
|
15323
|
+
name: string2(),
|
|
15324
|
+
description: defaultOnError(string2().nullish(), () => void 0),
|
|
15325
|
+
category: defaultOnError(zSessionConfigOptionCategory.nullish(), () => void 0),
|
|
15326
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15164
15327
|
}));
|
|
15165
|
-
var
|
|
15166
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15167
|
-
configOptions: external_exports.array(zSessionConfigOption)
|
|
15168
|
-
});
|
|
15169
|
-
var zSessionForkCapabilities = external_exports.object({
|
|
15170
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
15171
|
-
});
|
|
15172
|
-
var zSessionId = external_exports.string();
|
|
15173
|
-
var zAcceptNesNotification = external_exports.object({
|
|
15174
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15175
|
-
id: external_exports.string(),
|
|
15176
|
-
sessionId: zSessionId
|
|
15177
|
-
});
|
|
15178
|
-
var zCancelNotification = external_exports.object({
|
|
15179
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15180
|
-
sessionId: zSessionId
|
|
15181
|
-
});
|
|
15182
|
-
var zCloseNesRequest = external_exports.object({
|
|
15183
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15184
|
-
sessionId: zSessionId
|
|
15185
|
-
});
|
|
15186
|
-
var zCloseSessionRequest = external_exports.object({
|
|
15187
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15188
|
-
sessionId: zSessionId
|
|
15189
|
-
});
|
|
15190
|
-
var zCreateTerminalRequest = external_exports.object({
|
|
15191
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15192
|
-
args: external_exports.array(external_exports.string()).optional(),
|
|
15193
|
-
command: external_exports.string(),
|
|
15194
|
-
cwd: external_exports.string().nullish(),
|
|
15195
|
-
env: external_exports.array(zEnvVariable).optional(),
|
|
15196
|
-
outputByteLimit: external_exports.number().nullish(),
|
|
15197
|
-
sessionId: zSessionId
|
|
15198
|
-
});
|
|
15199
|
-
var zDidCloseDocumentNotification = external_exports.object({
|
|
15200
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15328
|
+
var zNewSessionResponse = object({
|
|
15201
15329
|
sessionId: zSessionId,
|
|
15202
|
-
|
|
15330
|
+
modes: defaultOnError(zSessionModeState.nullish(), () => void 0),
|
|
15331
|
+
configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => void 0),
|
|
15332
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15203
15333
|
});
|
|
15204
|
-
var
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
uri: external_exports.string(),
|
|
15209
|
-
version: external_exports.number(),
|
|
15210
|
-
visibleRange: zRange
|
|
15334
|
+
var zLoadSessionResponse = object({
|
|
15335
|
+
modes: defaultOnError(zSessionModeState.nullish(), () => void 0),
|
|
15336
|
+
configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => void 0),
|
|
15337
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15211
15338
|
});
|
|
15212
|
-
var
|
|
15213
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15214
|
-
languageId: external_exports.string(),
|
|
15339
|
+
var zSessionInfo = object({
|
|
15215
15340
|
sessionId: zSessionId,
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15341
|
+
cwd: string2(),
|
|
15342
|
+
additionalDirectories: defaultOnError(vecSkipError(string2()).optional(), () => []),
|
|
15343
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
15344
|
+
updatedAt: defaultOnError(string2().nullish(), () => void 0),
|
|
15345
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15219
15346
|
});
|
|
15220
|
-
var
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15347
|
+
var zListSessionsResponse = object({
|
|
15348
|
+
sessions: requiredDefaultOnError(vecSkipError(zSessionInfo), () => []),
|
|
15349
|
+
nextCursor: defaultOnError(string2().nullish(), () => void 0),
|
|
15350
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15224
15351
|
});
|
|
15225
|
-
var
|
|
15226
|
-
_meta:
|
|
15227
|
-
additionalDirectories: external_exports.array(external_exports.string()).optional(),
|
|
15228
|
-
cwd: external_exports.string(),
|
|
15229
|
-
mcpServers: external_exports.array(zMcpServer).optional(),
|
|
15230
|
-
sessionId: zSessionId
|
|
15352
|
+
var zDeleteSessionResponse = object({
|
|
15353
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15231
15354
|
});
|
|
15232
|
-
var
|
|
15233
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15355
|
+
var zForkSessionResponse = object({
|
|
15234
15356
|
sessionId: zSessionId,
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15238
|
-
|
|
15239
|
-
|
|
15240
|
-
|
|
15241
|
-
|
|
15242
|
-
|
|
15243
|
-
});
|
|
15244
|
-
var
|
|
15245
|
-
_meta:
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15260
|
-
});
|
|
15261
|
-
var zReleaseTerminalRequest = external_exports.object({
|
|
15262
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15263
|
-
sessionId: zSessionId,
|
|
15264
|
-
terminalId: external_exports.string()
|
|
15265
|
-
});
|
|
15266
|
-
var zResumeSessionRequest = external_exports.object({
|
|
15267
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15268
|
-
additionalDirectories: external_exports.array(external_exports.string()).optional(),
|
|
15269
|
-
cwd: external_exports.string(),
|
|
15270
|
-
mcpServers: external_exports.array(zMcpServer).optional(),
|
|
15271
|
-
sessionId: zSessionId
|
|
15272
|
-
});
|
|
15273
|
-
var zSessionInfo = external_exports.object({
|
|
15274
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15275
|
-
additionalDirectories: external_exports.array(external_exports.string()).optional(),
|
|
15276
|
-
cwd: external_exports.string(),
|
|
15277
|
-
sessionId: zSessionId,
|
|
15278
|
-
title: external_exports.string().nullish(),
|
|
15279
|
-
updatedAt: external_exports.string().nullish()
|
|
15280
|
-
});
|
|
15281
|
-
var zListSessionsResponse = external_exports.object({
|
|
15282
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15283
|
-
nextCursor: external_exports.string().nullish(),
|
|
15284
|
-
sessions: external_exports.array(zSessionInfo)
|
|
15285
|
-
});
|
|
15286
|
-
var zSessionInfoUpdate = external_exports.object({
|
|
15287
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15288
|
-
title: external_exports.string().nullish(),
|
|
15289
|
-
updatedAt: external_exports.string().nullish()
|
|
15290
|
-
});
|
|
15291
|
-
var zSessionListCapabilities = external_exports.object({
|
|
15292
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
15293
|
-
});
|
|
15294
|
-
var zSessionModeId = external_exports.string();
|
|
15295
|
-
var zCurrentModeUpdate = external_exports.object({
|
|
15296
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15297
|
-
currentModeId: zSessionModeId
|
|
15298
|
-
});
|
|
15299
|
-
var zSessionMode = external_exports.object({
|
|
15300
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15301
|
-
description: external_exports.string().nullish(),
|
|
15302
|
-
id: zSessionModeId,
|
|
15303
|
-
name: external_exports.string()
|
|
15304
|
-
});
|
|
15305
|
-
var zSessionModeState = external_exports.object({
|
|
15306
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15307
|
-
availableModes: external_exports.array(zSessionMode),
|
|
15308
|
-
currentModeId: zSessionModeId
|
|
15309
|
-
});
|
|
15310
|
-
var zSessionModelState = external_exports.object({
|
|
15311
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15312
|
-
availableModels: external_exports.array(zModelInfo),
|
|
15313
|
-
currentModelId: zModelId
|
|
15314
|
-
});
|
|
15315
|
-
var zForkSessionResponse = external_exports.object({
|
|
15316
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15317
|
-
configOptions: external_exports.array(zSessionConfigOption).nullish(),
|
|
15318
|
-
models: zSessionModelState.nullish(),
|
|
15319
|
-
modes: zSessionModeState.nullish(),
|
|
15320
|
-
sessionId: zSessionId
|
|
15321
|
-
});
|
|
15322
|
-
var zLoadSessionResponse = external_exports.object({
|
|
15323
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15324
|
-
configOptions: external_exports.array(zSessionConfigOption).nullish(),
|
|
15325
|
-
models: zSessionModelState.nullish(),
|
|
15326
|
-
modes: zSessionModeState.nullish()
|
|
15327
|
-
});
|
|
15328
|
-
var zNewSessionResponse = external_exports.object({
|
|
15329
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15330
|
-
configOptions: external_exports.array(zSessionConfigOption).nullish(),
|
|
15331
|
-
models: zSessionModelState.nullish(),
|
|
15332
|
-
modes: zSessionModeState.nullish(),
|
|
15333
|
-
sessionId: zSessionId
|
|
15334
|
-
});
|
|
15335
|
-
var zResumeSessionResponse = external_exports.object({
|
|
15336
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15337
|
-
configOptions: external_exports.array(zSessionConfigOption).nullish(),
|
|
15338
|
-
models: zSessionModelState.nullish(),
|
|
15339
|
-
modes: zSessionModeState.nullish()
|
|
15340
|
-
});
|
|
15341
|
-
var zSessionResumeCapabilities = external_exports.object({
|
|
15342
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
15343
|
-
});
|
|
15344
|
-
var zSessionCapabilities = external_exports.object({
|
|
15345
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15346
|
-
additionalDirectories: zSessionAdditionalDirectoriesCapabilities.nullish(),
|
|
15347
|
-
close: zSessionCloseCapabilities.nullish(),
|
|
15348
|
-
fork: zSessionForkCapabilities.nullish(),
|
|
15349
|
-
list: zSessionListCapabilities.nullish(),
|
|
15350
|
-
resume: zSessionResumeCapabilities.nullish()
|
|
15351
|
-
});
|
|
15352
|
-
var zSetProvidersRequest = external_exports.object({
|
|
15353
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15354
|
-
apiType: zLlmProtocol,
|
|
15355
|
-
baseUrl: external_exports.string(),
|
|
15356
|
-
headers: external_exports.record(external_exports.string(), external_exports.string()).optional(),
|
|
15357
|
-
id: external_exports.string()
|
|
15358
|
-
});
|
|
15359
|
-
var zSetProvidersResponse = external_exports.object({
|
|
15360
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
15361
|
-
});
|
|
15362
|
-
var zSetSessionConfigOptionRequest = external_exports.intersection(external_exports.union([
|
|
15363
|
-
external_exports.object({
|
|
15364
|
-
type: external_exports.literal("boolean"),
|
|
15365
|
-
value: external_exports.boolean()
|
|
15366
|
-
}),
|
|
15367
|
-
external_exports.object({
|
|
15368
|
-
value: zSessionConfigValueId
|
|
15369
|
-
})
|
|
15370
|
-
]), external_exports.object({
|
|
15371
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15372
|
-
configId: zSessionConfigId,
|
|
15373
|
-
sessionId: zSessionId
|
|
15374
|
-
}));
|
|
15375
|
-
var zSetSessionConfigOptionResponse = external_exports.object({
|
|
15376
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15377
|
-
configOptions: external_exports.array(zSessionConfigOption)
|
|
15378
|
-
});
|
|
15379
|
-
var zSetSessionModeRequest = external_exports.object({
|
|
15380
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15381
|
-
modeId: zSessionModeId,
|
|
15382
|
-
sessionId: zSessionId
|
|
15383
|
-
});
|
|
15384
|
-
var zSetSessionModeResponse = external_exports.object({
|
|
15385
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
15386
|
-
});
|
|
15387
|
-
var zSetSessionModelRequest = external_exports.object({
|
|
15388
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15389
|
-
modelId: zModelId,
|
|
15390
|
-
sessionId: zSessionId
|
|
15391
|
-
});
|
|
15392
|
-
var zSetSessionModelResponse = external_exports.object({
|
|
15393
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish()
|
|
15394
|
-
});
|
|
15395
|
-
var zStartNesResponse = external_exports.object({
|
|
15396
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15397
|
-
sessionId: zSessionId
|
|
15398
|
-
});
|
|
15399
|
-
var zStopReason = external_exports.union([
|
|
15400
|
-
external_exports.literal("end_turn"),
|
|
15401
|
-
external_exports.literal("max_tokens"),
|
|
15402
|
-
external_exports.literal("max_turn_requests"),
|
|
15403
|
-
external_exports.literal("refusal"),
|
|
15404
|
-
external_exports.literal("cancelled")
|
|
15357
|
+
modes: defaultOnError(zSessionModeState.nullish(), () => void 0),
|
|
15358
|
+
configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => void 0),
|
|
15359
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15360
|
+
});
|
|
15361
|
+
var zResumeSessionResponse = object({
|
|
15362
|
+
modes: defaultOnError(zSessionModeState.nullish(), () => void 0),
|
|
15363
|
+
configOptions: defaultOnError(vecSkipError(zSessionConfigOption).nullish(), () => void 0),
|
|
15364
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15365
|
+
});
|
|
15366
|
+
var zCloseSessionResponse = object({
|
|
15367
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15368
|
+
});
|
|
15369
|
+
var zSetSessionModeResponse = object({
|
|
15370
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15371
|
+
});
|
|
15372
|
+
var zSetSessionConfigOptionResponse = object({
|
|
15373
|
+
configOptions: requiredDefaultOnError(vecSkipError(zSessionConfigOption), () => []),
|
|
15374
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15375
|
+
});
|
|
15376
|
+
var zStopReason = union([
|
|
15377
|
+
literal("end_turn"),
|
|
15378
|
+
literal("max_tokens"),
|
|
15379
|
+
literal("max_turn_requests"),
|
|
15380
|
+
literal("refusal"),
|
|
15381
|
+
literal("cancelled")
|
|
15405
15382
|
]);
|
|
15406
|
-
var
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
}).nullish(),
|
|
15420
|
-
minLength: external_exports.number().int().gte(0).max(4294967295, {
|
|
15421
|
-
message: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15422
|
-
}).nullish(),
|
|
15423
|
-
oneOf: external_exports.array(zEnumOption).nullish(),
|
|
15424
|
-
pattern: external_exports.string().nullish(),
|
|
15425
|
-
title: external_exports.string().nullish()
|
|
15426
|
-
});
|
|
15427
|
-
var zSuggestNesRequest = external_exports.object({
|
|
15428
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15429
|
-
context: zNesSuggestContext.nullish(),
|
|
15430
|
-
position: zPosition,
|
|
15431
|
-
selection: zRange.nullish(),
|
|
15432
|
-
sessionId: zSessionId,
|
|
15433
|
-
triggerKind: zNesTriggerKind,
|
|
15434
|
-
uri: external_exports.string(),
|
|
15435
|
-
version: external_exports.number()
|
|
15436
|
-
});
|
|
15437
|
-
var zSuggestNesResponse = external_exports.object({
|
|
15438
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15439
|
-
suggestions: external_exports.array(zNesSuggestion)
|
|
15440
|
-
});
|
|
15441
|
-
var zTerminal = external_exports.object({
|
|
15442
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15443
|
-
terminalId: external_exports.string()
|
|
15444
|
-
});
|
|
15445
|
-
var zTerminalExitStatus = external_exports.object({
|
|
15446
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15447
|
-
exitCode: external_exports.number().int().gte(0).max(4294967295, {
|
|
15448
|
-
message: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15449
|
-
}).nullish(),
|
|
15450
|
-
signal: external_exports.string().nullish()
|
|
15451
|
-
});
|
|
15452
|
-
var zTerminalOutputRequest = external_exports.object({
|
|
15453
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15454
|
-
sessionId: zSessionId,
|
|
15455
|
-
terminalId: external_exports.string()
|
|
15456
|
-
});
|
|
15457
|
-
var zTerminalOutputResponse = external_exports.object({
|
|
15458
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15459
|
-
exitStatus: zTerminalExitStatus.nullish(),
|
|
15460
|
-
output: external_exports.string(),
|
|
15461
|
-
truncated: external_exports.boolean()
|
|
15462
|
-
});
|
|
15463
|
-
var zTextContent = external_exports.object({
|
|
15464
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15465
|
-
annotations: zAnnotations.nullish(),
|
|
15466
|
-
text: external_exports.string()
|
|
15467
|
-
});
|
|
15468
|
-
var zTextDocumentContentChangeEvent = external_exports.object({
|
|
15469
|
-
range: zRange.nullish(),
|
|
15470
|
-
text: external_exports.string()
|
|
15383
|
+
var zUsage = object({
|
|
15384
|
+
totalTokens: number2(),
|
|
15385
|
+
inputTokens: number2(),
|
|
15386
|
+
outputTokens: number2(),
|
|
15387
|
+
thoughtTokens: defaultOnError(number2().nullish(), () => void 0),
|
|
15388
|
+
cachedReadTokens: defaultOnError(number2().nullish(), () => void 0),
|
|
15389
|
+
cachedWriteTokens: defaultOnError(number2().nullish(), () => void 0),
|
|
15390
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15391
|
+
});
|
|
15392
|
+
var zPromptResponse = object({
|
|
15393
|
+
stopReason: zStopReason,
|
|
15394
|
+
usage: defaultOnError(zUsage.nullish(), () => void 0),
|
|
15395
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15471
15396
|
});
|
|
15472
|
-
var
|
|
15473
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15474
|
-
contentChanges: external_exports.array(zTextDocumentContentChangeEvent),
|
|
15397
|
+
var zStartNesResponse = object({
|
|
15475
15398
|
sessionId: zSessionId,
|
|
15476
|
-
|
|
15477
|
-
version: external_exports.number()
|
|
15399
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15478
15400
|
});
|
|
15479
|
-
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15483
|
-
zDidOpenDocumentNotification,
|
|
15484
|
-
zDidChangeDocumentNotification,
|
|
15485
|
-
zDidCloseDocumentNotification,
|
|
15486
|
-
zDidSaveDocumentNotification,
|
|
15487
|
-
zDidFocusDocumentNotification,
|
|
15488
|
-
zAcceptNesNotification,
|
|
15489
|
-
zRejectNesNotification,
|
|
15490
|
-
zExtNotification
|
|
15491
|
-
]).nullish()
|
|
15492
|
-
});
|
|
15493
|
-
var zTextDocumentSyncKind = external_exports.union([
|
|
15494
|
-
external_exports.literal("full"),
|
|
15495
|
-
external_exports.literal("incremental")
|
|
15496
|
-
]);
|
|
15497
|
-
var zNesDocumentDidChangeCapabilities = external_exports.object({
|
|
15498
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15499
|
-
syncKind: zTextDocumentSyncKind
|
|
15500
|
-
});
|
|
15501
|
-
var zNesDocumentEventCapabilities = external_exports.object({
|
|
15502
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15503
|
-
didChange: zNesDocumentDidChangeCapabilities.nullish(),
|
|
15504
|
-
didClose: zNesDocumentDidCloseCapabilities.nullish(),
|
|
15505
|
-
didFocus: zNesDocumentDidFocusCapabilities.nullish(),
|
|
15506
|
-
didOpen: zNesDocumentDidOpenCapabilities.nullish(),
|
|
15507
|
-
didSave: zNesDocumentDidSaveCapabilities.nullish()
|
|
15508
|
-
});
|
|
15509
|
-
var zNesEventCapabilities = external_exports.object({
|
|
15510
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15511
|
-
document: zNesDocumentEventCapabilities.nullish()
|
|
15512
|
-
});
|
|
15513
|
-
var zNesCapabilities = external_exports.object({
|
|
15514
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15515
|
-
context: zNesContextCapabilities.nullish(),
|
|
15516
|
-
events: zNesEventCapabilities.nullish()
|
|
15517
|
-
});
|
|
15518
|
-
var zAgentCapabilities = external_exports.object({
|
|
15519
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15520
|
-
auth: zAgentAuthCapabilities.optional().default({}),
|
|
15521
|
-
loadSession: external_exports.boolean().optional().default(false),
|
|
15522
|
-
mcpCapabilities: zMcpCapabilities.optional().default({ http: false, sse: false }),
|
|
15523
|
-
nes: zNesCapabilities.nullish(),
|
|
15524
|
-
positionEncoding: zPositionEncodingKind.nullish(),
|
|
15525
|
-
promptCapabilities: zPromptCapabilities.optional().default({
|
|
15526
|
-
audio: false,
|
|
15527
|
-
embeddedContext: false,
|
|
15528
|
-
image: false
|
|
15401
|
+
var zNesSuggestionId = string2();
|
|
15402
|
+
var zPosition = object({
|
|
15403
|
+
line: int().gte(0).max(4294967295, {
|
|
15404
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15529
15405
|
}),
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
});
|
|
15533
|
-
var zInitializeResponse = external_exports.object({
|
|
15534
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15535
|
-
agentCapabilities: zAgentCapabilities.optional().default({
|
|
15536
|
-
auth: {},
|
|
15537
|
-
loadSession: false,
|
|
15538
|
-
mcpCapabilities: { http: false, sse: false },
|
|
15539
|
-
promptCapabilities: {
|
|
15540
|
-
audio: false,
|
|
15541
|
-
embeddedContext: false,
|
|
15542
|
-
image: false
|
|
15543
|
-
},
|
|
15544
|
-
sessionCapabilities: {}
|
|
15406
|
+
character: int().gte(0).max(4294967295, {
|
|
15407
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15545
15408
|
}),
|
|
15546
|
-
|
|
15547
|
-
authMethods: external_exports.array(zAuthMethod).optional().default([]),
|
|
15548
|
-
protocolVersion: zProtocolVersion
|
|
15549
|
-
});
|
|
15550
|
-
var zTextResourceContents = external_exports.object({
|
|
15551
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15552
|
-
mimeType: external_exports.string().nullish(),
|
|
15553
|
-
text: external_exports.string(),
|
|
15554
|
-
uri: external_exports.string()
|
|
15555
|
-
});
|
|
15556
|
-
var zEmbeddedResourceResource = external_exports.union([
|
|
15557
|
-
zTextResourceContents,
|
|
15558
|
-
zBlobResourceContents
|
|
15559
|
-
]);
|
|
15560
|
-
var zEmbeddedResource = external_exports.object({
|
|
15561
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15562
|
-
annotations: zAnnotations.nullish(),
|
|
15563
|
-
resource: zEmbeddedResourceResource
|
|
15564
|
-
});
|
|
15565
|
-
var zContentBlock = external_exports.union([
|
|
15566
|
-
zTextContent.and(external_exports.object({
|
|
15567
|
-
type: external_exports.literal("text")
|
|
15568
|
-
})),
|
|
15569
|
-
zImageContent.and(external_exports.object({
|
|
15570
|
-
type: external_exports.literal("image")
|
|
15571
|
-
})),
|
|
15572
|
-
zAudioContent.and(external_exports.object({
|
|
15573
|
-
type: external_exports.literal("audio")
|
|
15574
|
-
})),
|
|
15575
|
-
zResourceLink.and(external_exports.object({
|
|
15576
|
-
type: external_exports.literal("resource_link")
|
|
15577
|
-
})),
|
|
15578
|
-
zEmbeddedResource.and(external_exports.object({
|
|
15579
|
-
type: external_exports.literal("resource")
|
|
15580
|
-
}))
|
|
15581
|
-
]);
|
|
15582
|
-
var zContent = external_exports.object({
|
|
15583
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15584
|
-
content: zContentBlock
|
|
15585
|
-
});
|
|
15586
|
-
var zContentChunk = external_exports.object({
|
|
15587
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15588
|
-
content: zContentBlock,
|
|
15589
|
-
messageId: external_exports.string().nullish()
|
|
15590
|
-
});
|
|
15591
|
-
var zPromptRequest = external_exports.object({
|
|
15592
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15593
|
-
messageId: external_exports.string().nullish(),
|
|
15594
|
-
prompt: external_exports.array(zContentBlock),
|
|
15595
|
-
sessionId: zSessionId
|
|
15596
|
-
});
|
|
15597
|
-
var zTitledMultiSelectItems = external_exports.object({
|
|
15598
|
-
anyOf: external_exports.array(zEnumOption)
|
|
15599
|
-
});
|
|
15600
|
-
var zToolCallContent = external_exports.union([
|
|
15601
|
-
zContent.and(external_exports.object({
|
|
15602
|
-
type: external_exports.literal("content")
|
|
15603
|
-
})),
|
|
15604
|
-
zDiff.and(external_exports.object({
|
|
15605
|
-
type: external_exports.literal("diff")
|
|
15606
|
-
})),
|
|
15607
|
-
zTerminal.and(external_exports.object({
|
|
15608
|
-
type: external_exports.literal("terminal")
|
|
15609
|
-
}))
|
|
15610
|
-
]);
|
|
15611
|
-
var zToolCallId = external_exports.string();
|
|
15612
|
-
var zElicitationSessionScope = external_exports.object({
|
|
15613
|
-
sessionId: zSessionId,
|
|
15614
|
-
toolCallId: zToolCallId.nullish()
|
|
15615
|
-
});
|
|
15616
|
-
var zElicitationUrlMode = external_exports.intersection(external_exports.union([zElicitationSessionScope, zElicitationRequestScope]), external_exports.object({
|
|
15617
|
-
elicitationId: zElicitationId,
|
|
15618
|
-
url: external_exports.string().url()
|
|
15619
|
-
}));
|
|
15620
|
-
var zToolCallLocation = external_exports.object({
|
|
15621
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15622
|
-
line: external_exports.number().int().gte(0).max(4294967295, {
|
|
15623
|
-
message: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15624
|
-
}).nullish(),
|
|
15625
|
-
path: external_exports.string()
|
|
15626
|
-
});
|
|
15627
|
-
var zToolCallStatus = external_exports.union([
|
|
15628
|
-
external_exports.literal("pending"),
|
|
15629
|
-
external_exports.literal("in_progress"),
|
|
15630
|
-
external_exports.literal("completed"),
|
|
15631
|
-
external_exports.literal("failed")
|
|
15632
|
-
]);
|
|
15633
|
-
var zToolKind = external_exports.union([
|
|
15634
|
-
external_exports.literal("read"),
|
|
15635
|
-
external_exports.literal("edit"),
|
|
15636
|
-
external_exports.literal("delete"),
|
|
15637
|
-
external_exports.literal("move"),
|
|
15638
|
-
external_exports.literal("search"),
|
|
15639
|
-
external_exports.literal("execute"),
|
|
15640
|
-
external_exports.literal("think"),
|
|
15641
|
-
external_exports.literal("fetch"),
|
|
15642
|
-
external_exports.literal("switch_mode"),
|
|
15643
|
-
external_exports.literal("other")
|
|
15644
|
-
]);
|
|
15645
|
-
var zToolCall = external_exports.object({
|
|
15646
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15647
|
-
content: external_exports.array(zToolCallContent).optional(),
|
|
15648
|
-
kind: zToolKind.optional(),
|
|
15649
|
-
locations: external_exports.array(zToolCallLocation).optional(),
|
|
15650
|
-
rawInput: external_exports.unknown().optional(),
|
|
15651
|
-
rawOutput: external_exports.unknown().optional(),
|
|
15652
|
-
status: zToolCallStatus.optional(),
|
|
15653
|
-
title: external_exports.string(),
|
|
15654
|
-
toolCallId: zToolCallId
|
|
15655
|
-
});
|
|
15656
|
-
var zToolCallUpdate = external_exports.object({
|
|
15657
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15658
|
-
content: external_exports.array(zToolCallContent).nullish(),
|
|
15659
|
-
kind: zToolKind.nullish(),
|
|
15660
|
-
locations: external_exports.array(zToolCallLocation).nullish(),
|
|
15661
|
-
rawInput: external_exports.unknown().optional(),
|
|
15662
|
-
rawOutput: external_exports.unknown().optional(),
|
|
15663
|
-
status: zToolCallStatus.nullish(),
|
|
15664
|
-
title: external_exports.string().nullish(),
|
|
15665
|
-
toolCallId: zToolCallId
|
|
15666
|
-
});
|
|
15667
|
-
var zRequestPermissionRequest = external_exports.object({
|
|
15668
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15669
|
-
options: external_exports.array(zPermissionOption),
|
|
15670
|
-
sessionId: zSessionId,
|
|
15671
|
-
toolCall: zToolCallUpdate
|
|
15409
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15672
15410
|
});
|
|
15673
|
-
var
|
|
15674
|
-
|
|
15675
|
-
|
|
15411
|
+
var zRange = object({
|
|
15412
|
+
start: zPosition,
|
|
15413
|
+
end: zPosition,
|
|
15414
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15676
15415
|
});
|
|
15677
|
-
var
|
|
15678
|
-
|
|
15679
|
-
|
|
15680
|
-
|
|
15681
|
-
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15686
|
-
|
|
15687
|
-
|
|
15688
|
-
|
|
15689
|
-
|
|
15690
|
-
|
|
15691
|
-
|
|
15692
|
-
|
|
15693
|
-
|
|
15694
|
-
zTitledMultiSelectItems
|
|
15695
|
-
]);
|
|
15696
|
-
var zMultiSelectPropertySchema = external_exports.object({
|
|
15697
|
-
default: external_exports.array(external_exports.string()).nullish(),
|
|
15698
|
-
description: external_exports.string().nullish(),
|
|
15699
|
-
items: zMultiSelectItems,
|
|
15700
|
-
maxItems: external_exports.number().nullish(),
|
|
15701
|
-
minItems: external_exports.number().nullish(),
|
|
15702
|
-
title: external_exports.string().nullish()
|
|
15416
|
+
var zNesTextEdit = object({
|
|
15417
|
+
range: zRange,
|
|
15418
|
+
newText: string2(),
|
|
15419
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15420
|
+
});
|
|
15421
|
+
var zNesEditSuggestion = object({
|
|
15422
|
+
id: zNesSuggestionId,
|
|
15423
|
+
uri: string2(),
|
|
15424
|
+
edits: array(zNesTextEdit),
|
|
15425
|
+
cursorPosition: defaultOnError(zPosition.nullish(), () => void 0),
|
|
15426
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15427
|
+
});
|
|
15428
|
+
var zNesJumpSuggestion = object({
|
|
15429
|
+
id: zNesSuggestionId,
|
|
15430
|
+
uri: string2(),
|
|
15431
|
+
position: zPosition,
|
|
15432
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15703
15433
|
});
|
|
15704
|
-
var
|
|
15705
|
-
|
|
15706
|
-
|
|
15707
|
-
|
|
15708
|
-
|
|
15709
|
-
|
|
15434
|
+
var zNesRenameSuggestion = object({
|
|
15435
|
+
id: zNesSuggestionId,
|
|
15436
|
+
uri: string2(),
|
|
15437
|
+
position: zPosition,
|
|
15438
|
+
newName: string2(),
|
|
15439
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15440
|
+
});
|
|
15441
|
+
var zNesSearchAndReplaceSuggestion = object({
|
|
15442
|
+
id: zNesSuggestionId,
|
|
15443
|
+
uri: string2(),
|
|
15444
|
+
search: string2(),
|
|
15445
|
+
replace: string2(),
|
|
15446
|
+
isRegex: boolean2().nullish(),
|
|
15447
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15448
|
+
});
|
|
15449
|
+
var zNesSuggestion = union([
|
|
15450
|
+
zNesEditSuggestion.and(object({
|
|
15451
|
+
kind: literal("edit")
|
|
15710
15452
|
})),
|
|
15711
|
-
|
|
15712
|
-
|
|
15453
|
+
zNesJumpSuggestion.and(object({
|
|
15454
|
+
kind: literal("jump")
|
|
15713
15455
|
})),
|
|
15714
|
-
|
|
15715
|
-
|
|
15456
|
+
zNesRenameSuggestion.and(object({
|
|
15457
|
+
kind: literal("rename")
|
|
15716
15458
|
})),
|
|
15717
|
-
|
|
15718
|
-
|
|
15459
|
+
zNesSearchAndReplaceSuggestion.and(object({
|
|
15460
|
+
kind: literal("searchAndReplace")
|
|
15719
15461
|
}))
|
|
15720
15462
|
]);
|
|
15721
|
-
var
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
-
|
|
15727
|
-
});
|
|
15728
|
-
var
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
|
-
})
|
|
15742
|
-
|
|
15743
|
-
|
|
15744
|
-
|
|
15745
|
-
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
});
|
|
15750
|
-
var zPromptResponse = external_exports.object({
|
|
15751
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15752
|
-
stopReason: zStopReason,
|
|
15753
|
-
usage: zUsage.nullish(),
|
|
15754
|
-
userMessageId: external_exports.string().nullish()
|
|
15463
|
+
var zSuggestNesResponse = object({
|
|
15464
|
+
suggestions: array(zNesSuggestion),
|
|
15465
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15466
|
+
});
|
|
15467
|
+
var zCloseNesResponse = object({
|
|
15468
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15469
|
+
});
|
|
15470
|
+
var zExtResponse = unknown();
|
|
15471
|
+
var zMessageMcpResponse = unknown();
|
|
15472
|
+
var zErrorCode = union([
|
|
15473
|
+
literal(-32700),
|
|
15474
|
+
literal(-32600),
|
|
15475
|
+
literal(-32601),
|
|
15476
|
+
literal(-32602),
|
|
15477
|
+
literal(-32603),
|
|
15478
|
+
literal(-32800),
|
|
15479
|
+
literal(-32e3),
|
|
15480
|
+
literal(-32002),
|
|
15481
|
+
int().min(-2147483648, {
|
|
15482
|
+
error: "Invalid value: Expected int32 to be >= -2147483648"
|
|
15483
|
+
}).max(2147483647, {
|
|
15484
|
+
error: "Invalid value: Expected int32 to be <= 2147483647"
|
|
15485
|
+
})
|
|
15486
|
+
]);
|
|
15487
|
+
var zError = object({
|
|
15488
|
+
code: zErrorCode,
|
|
15489
|
+
message: string2(),
|
|
15490
|
+
data: defaultOnError(unknown().optional(), () => void 0)
|
|
15755
15491
|
});
|
|
15756
|
-
|
|
15757
|
-
|
|
15492
|
+
union([
|
|
15493
|
+
object({
|
|
15758
15494
|
id: zRequestId,
|
|
15759
|
-
result:
|
|
15495
|
+
result: union([
|
|
15760
15496
|
zInitializeResponse,
|
|
15761
15497
|
zAuthenticateResponse,
|
|
15762
15498
|
zListProvidersResponse,
|
|
15763
|
-
|
|
15764
|
-
|
|
15499
|
+
zSetProviderResponse,
|
|
15500
|
+
zDisableProviderResponse,
|
|
15765
15501
|
zLogoutResponse,
|
|
15766
15502
|
zNewSessionResponse,
|
|
15767
15503
|
zLoadSessionResponse,
|
|
15768
15504
|
zListSessionsResponse,
|
|
15505
|
+
zDeleteSessionResponse,
|
|
15769
15506
|
zForkSessionResponse,
|
|
15770
15507
|
zResumeSessionResponse,
|
|
15771
15508
|
zCloseSessionResponse,
|
|
15772
15509
|
zSetSessionModeResponse,
|
|
15773
15510
|
zSetSessionConfigOptionResponse,
|
|
15774
15511
|
zPromptResponse,
|
|
15775
|
-
zSetSessionModelResponse,
|
|
15776
15512
|
zStartNesResponse,
|
|
15777
15513
|
zSuggestNesResponse,
|
|
15778
15514
|
zCloseNesResponse,
|
|
15779
|
-
zExtResponse
|
|
15515
|
+
zExtResponse,
|
|
15516
|
+
zMessageMcpResponse
|
|
15780
15517
|
])
|
|
15781
15518
|
}),
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15519
|
+
object({
|
|
15520
|
+
id: zRequestId,
|
|
15521
|
+
error: zError
|
|
15785
15522
|
})
|
|
15786
15523
|
]);
|
|
15787
|
-
var
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
});
|
|
15793
|
-
var
|
|
15794
|
-
|
|
15795
|
-
|
|
15524
|
+
var zMessageId = string2();
|
|
15525
|
+
var zContentChunk = object({
|
|
15526
|
+
content: zContentBlock,
|
|
15527
|
+
messageId: defaultOnError(zMessageId.nullish(), () => void 0),
|
|
15528
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15529
|
+
});
|
|
15530
|
+
var zToolCall = object({
|
|
15531
|
+
toolCallId: zToolCallId,
|
|
15532
|
+
title: string2(),
|
|
15533
|
+
kind: defaultOnError(zToolKind.optional(), () => void 0),
|
|
15534
|
+
status: defaultOnError(zToolCallStatus.optional(), () => void 0),
|
|
15535
|
+
content: defaultOnError(vecSkipError(zToolCallContent).optional(), () => []),
|
|
15536
|
+
locations: defaultOnError(vecSkipError(zToolCallLocation).optional(), () => []),
|
|
15537
|
+
rawInput: defaultOnError(unknown().optional(), () => void 0),
|
|
15538
|
+
rawOutput: defaultOnError(unknown().optional(), () => void 0),
|
|
15539
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15540
|
+
});
|
|
15541
|
+
var zPlanEntryPriority = union([
|
|
15542
|
+
literal("high"),
|
|
15543
|
+
literal("medium"),
|
|
15544
|
+
literal("low")
|
|
15545
|
+
]);
|
|
15546
|
+
var zPlanEntryStatus = union([
|
|
15547
|
+
literal("pending"),
|
|
15548
|
+
literal("in_progress"),
|
|
15549
|
+
literal("completed")
|
|
15550
|
+
]);
|
|
15551
|
+
var zPlanEntry = object({
|
|
15552
|
+
content: string2(),
|
|
15553
|
+
priority: zPlanEntryPriority,
|
|
15554
|
+
status: zPlanEntryStatus,
|
|
15555
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15556
|
+
});
|
|
15557
|
+
var zPlan = object({
|
|
15558
|
+
entries: requiredDefaultOnError(vecSkipError(zPlanEntry), () => []),
|
|
15559
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15560
|
+
});
|
|
15561
|
+
var zPlanId = string2();
|
|
15562
|
+
var zPlanItems = object({
|
|
15563
|
+
planId: zPlanId,
|
|
15564
|
+
entries: requiredDefaultOnError(vecSkipError(zPlanEntry), () => []),
|
|
15565
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15566
|
+
});
|
|
15567
|
+
var zPlanFile = object({
|
|
15568
|
+
planId: zPlanId,
|
|
15569
|
+
uri: string2(),
|
|
15570
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15571
|
+
});
|
|
15572
|
+
var zPlanMarkdown = object({
|
|
15573
|
+
planId: zPlanId,
|
|
15574
|
+
content: string2(),
|
|
15575
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15576
|
+
});
|
|
15577
|
+
var zPlanUpdateContent = union([
|
|
15578
|
+
zPlanItems.and(object({
|
|
15579
|
+
type: literal("items")
|
|
15580
|
+
})),
|
|
15581
|
+
zPlanFile.and(object({
|
|
15582
|
+
type: literal("file")
|
|
15583
|
+
})),
|
|
15584
|
+
zPlanMarkdown.and(object({
|
|
15585
|
+
type: literal("markdown")
|
|
15586
|
+
}))
|
|
15587
|
+
]);
|
|
15588
|
+
var zPlanUpdate = object({
|
|
15589
|
+
plan: zPlanUpdateContent,
|
|
15590
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15591
|
+
});
|
|
15592
|
+
var zPlanRemoved = object({
|
|
15593
|
+
planId: zPlanId,
|
|
15594
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15595
|
+
});
|
|
15596
|
+
var zUnstructuredCommandInput = object({
|
|
15597
|
+
hint: string2(),
|
|
15598
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15599
|
+
});
|
|
15600
|
+
var zAvailableCommandInput = zUnstructuredCommandInput;
|
|
15601
|
+
var zAvailableCommand = object({
|
|
15602
|
+
name: string2(),
|
|
15603
|
+
description: string2(),
|
|
15604
|
+
input: defaultOnError(zAvailableCommandInput.nullish(), () => void 0),
|
|
15605
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15606
|
+
});
|
|
15607
|
+
var zAvailableCommandsUpdate = object({
|
|
15608
|
+
availableCommands: requiredDefaultOnError(vecSkipError(zAvailableCommand), () => []),
|
|
15609
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15610
|
+
});
|
|
15611
|
+
var zCurrentModeUpdate = object({
|
|
15612
|
+
currentModeId: zSessionModeId,
|
|
15613
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15614
|
+
});
|
|
15615
|
+
var zConfigOptionUpdate = object({
|
|
15616
|
+
configOptions: requiredDefaultOnError(vecSkipError(zSessionConfigOption), () => []),
|
|
15617
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15618
|
+
});
|
|
15619
|
+
var zSessionInfoUpdate = object({
|
|
15620
|
+
title: defaultOnError(string2().nullish(), () => void 0),
|
|
15621
|
+
updatedAt: defaultOnError(string2().nullish(), () => void 0),
|
|
15622
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15623
|
+
});
|
|
15624
|
+
var zCost = object({
|
|
15625
|
+
amount: number2(),
|
|
15626
|
+
currency: string2(),
|
|
15627
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15628
|
+
});
|
|
15629
|
+
var zUsageUpdate = object({
|
|
15630
|
+
used: number2(),
|
|
15631
|
+
size: number2(),
|
|
15632
|
+
cost: defaultOnError(zCost.nullish(), () => void 0),
|
|
15633
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15634
|
+
});
|
|
15635
|
+
var zSessionUpdate = union([
|
|
15636
|
+
zContentChunk.and(object({
|
|
15637
|
+
sessionUpdate: literal("user_message_chunk")
|
|
15796
15638
|
})),
|
|
15797
|
-
zContentChunk.and(
|
|
15798
|
-
sessionUpdate:
|
|
15639
|
+
zContentChunk.and(object({
|
|
15640
|
+
sessionUpdate: literal("agent_message_chunk")
|
|
15799
15641
|
})),
|
|
15800
|
-
zContentChunk.and(
|
|
15801
|
-
sessionUpdate:
|
|
15642
|
+
zContentChunk.and(object({
|
|
15643
|
+
sessionUpdate: literal("agent_thought_chunk")
|
|
15802
15644
|
})),
|
|
15803
|
-
zToolCall.and(
|
|
15804
|
-
sessionUpdate:
|
|
15645
|
+
zToolCall.and(object({
|
|
15646
|
+
sessionUpdate: literal("tool_call")
|
|
15805
15647
|
})),
|
|
15806
|
-
zToolCallUpdate.and(
|
|
15807
|
-
sessionUpdate:
|
|
15648
|
+
zToolCallUpdate.and(object({
|
|
15649
|
+
sessionUpdate: literal("tool_call_update")
|
|
15808
15650
|
})),
|
|
15809
|
-
zPlan.and(
|
|
15810
|
-
sessionUpdate:
|
|
15651
|
+
zPlan.and(object({
|
|
15652
|
+
sessionUpdate: literal("plan")
|
|
15811
15653
|
})),
|
|
15812
|
-
|
|
15813
|
-
sessionUpdate:
|
|
15654
|
+
zPlanUpdate.and(object({
|
|
15655
|
+
sessionUpdate: literal("plan_update")
|
|
15814
15656
|
})),
|
|
15815
|
-
|
|
15816
|
-
sessionUpdate:
|
|
15657
|
+
zPlanRemoved.and(object({
|
|
15658
|
+
sessionUpdate: literal("plan_removed")
|
|
15817
15659
|
})),
|
|
15818
|
-
|
|
15819
|
-
sessionUpdate:
|
|
15660
|
+
zAvailableCommandsUpdate.and(object({
|
|
15661
|
+
sessionUpdate: literal("available_commands_update")
|
|
15820
15662
|
})),
|
|
15821
|
-
|
|
15822
|
-
sessionUpdate:
|
|
15663
|
+
zCurrentModeUpdate.and(object({
|
|
15664
|
+
sessionUpdate: literal("current_mode_update")
|
|
15823
15665
|
})),
|
|
15824
|
-
|
|
15825
|
-
sessionUpdate:
|
|
15666
|
+
zConfigOptionUpdate.and(object({
|
|
15667
|
+
sessionUpdate: literal("config_option_update")
|
|
15668
|
+
})),
|
|
15669
|
+
zSessionInfoUpdate.and(object({
|
|
15670
|
+
sessionUpdate: literal("session_info_update")
|
|
15671
|
+
})),
|
|
15672
|
+
zUsageUpdate.and(object({
|
|
15673
|
+
sessionUpdate: literal("usage_update")
|
|
15826
15674
|
}))
|
|
15827
15675
|
]);
|
|
15828
|
-
var zSessionNotification =
|
|
15829
|
-
_meta: external_exports.record(external_exports.string(), external_exports.unknown()).nullish(),
|
|
15676
|
+
var zSessionNotification = object({
|
|
15830
15677
|
sessionId: zSessionId,
|
|
15831
|
-
update: zSessionUpdate
|
|
15678
|
+
update: zSessionUpdate,
|
|
15679
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15832
15680
|
});
|
|
15833
|
-
|
|
15834
|
-
|
|
15835
|
-
|
|
15681
|
+
var zCompleteElicitationNotification = object({
|
|
15682
|
+
elicitationId: zElicitationId,
|
|
15683
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15684
|
+
});
|
|
15685
|
+
var zMessageMcpNotification = object({
|
|
15686
|
+
connectionId: zMcpConnectionId,
|
|
15687
|
+
method: string2(),
|
|
15688
|
+
params: defaultOnError(record(string2(), unknown()).nullish(), () => void 0),
|
|
15689
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15690
|
+
});
|
|
15691
|
+
var zExtNotification = unknown();
|
|
15692
|
+
object({
|
|
15693
|
+
method: string2(),
|
|
15694
|
+
params: union([
|
|
15836
15695
|
zSessionNotification,
|
|
15837
15696
|
zCompleteElicitationNotification,
|
|
15697
|
+
zMessageMcpNotification,
|
|
15838
15698
|
zExtNotification
|
|
15839
15699
|
]).nullish()
|
|
15840
15700
|
});
|
|
15841
|
-
var
|
|
15842
|
-
|
|
15701
|
+
var zFileSystemCapabilities = object({
|
|
15702
|
+
readTextFile: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15703
|
+
writeTextFile: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15704
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15705
|
+
});
|
|
15706
|
+
var zBooleanConfigOptionCapabilities = object({
|
|
15707
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15708
|
+
});
|
|
15709
|
+
var zSessionConfigOptionsCapabilities = object({
|
|
15710
|
+
boolean: defaultOnError(zBooleanConfigOptionCapabilities.nullish(), () => void 0),
|
|
15711
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15712
|
+
});
|
|
15713
|
+
var zClientSessionCapabilities = object({
|
|
15714
|
+
configOptions: defaultOnError(zSessionConfigOptionsCapabilities.nullish(), () => void 0),
|
|
15715
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15716
|
+
});
|
|
15717
|
+
var zPlanCapabilities = object({
|
|
15718
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15719
|
+
});
|
|
15720
|
+
var zAuthCapabilities = object({
|
|
15721
|
+
terminal: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15722
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15723
|
+
});
|
|
15724
|
+
var zElicitationFormCapabilities = object({
|
|
15725
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15726
|
+
});
|
|
15727
|
+
var zElicitationUrlCapabilities = object({
|
|
15728
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15729
|
+
});
|
|
15730
|
+
var zElicitationCapabilities = object({
|
|
15731
|
+
form: defaultOnError(zElicitationFormCapabilities.nullish(), () => void 0),
|
|
15732
|
+
url: defaultOnError(zElicitationUrlCapabilities.nullish(), () => void 0),
|
|
15733
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15734
|
+
});
|
|
15735
|
+
var zNesJumpCapabilities = object({
|
|
15736
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15737
|
+
});
|
|
15738
|
+
var zNesRenameCapabilities = object({
|
|
15739
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15740
|
+
});
|
|
15741
|
+
var zNesSearchAndReplaceCapabilities = object({
|
|
15742
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15743
|
+
});
|
|
15744
|
+
var zClientNesCapabilities = object({
|
|
15745
|
+
jump: defaultOnError(zNesJumpCapabilities.nullish(), () => void 0),
|
|
15746
|
+
rename: defaultOnError(zNesRenameCapabilities.nullish(), () => void 0),
|
|
15747
|
+
searchAndReplace: defaultOnError(zNesSearchAndReplaceCapabilities.nullish(), () => void 0),
|
|
15748
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15749
|
+
});
|
|
15750
|
+
var zClientCapabilities = object({
|
|
15751
|
+
fs: defaultOnError(zFileSystemCapabilities.optional().default({ readTextFile: false, writeTextFile: false }), () => ({ readTextFile: false, writeTextFile: false })),
|
|
15752
|
+
terminal: defaultOnError(boolean2().optional().default(false), () => false),
|
|
15753
|
+
session: defaultOnError(zClientSessionCapabilities.nullish(), () => void 0),
|
|
15754
|
+
plan: defaultOnError(zPlanCapabilities.nullish(), () => void 0),
|
|
15755
|
+
auth: defaultOnError(zAuthCapabilities.optional().default({ terminal: false }), () => ({ terminal: false })),
|
|
15756
|
+
elicitation: defaultOnError(zElicitationCapabilities.nullish(), () => void 0),
|
|
15757
|
+
nes: defaultOnError(zClientNesCapabilities.nullish(), () => void 0),
|
|
15758
|
+
positionEncodings: defaultOnError(vecSkipError(zPositionEncodingKind).optional(), () => []),
|
|
15759
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15760
|
+
});
|
|
15761
|
+
var zInitializeRequest = object({
|
|
15762
|
+
protocolVersion: zProtocolVersion,
|
|
15763
|
+
clientCapabilities: defaultOnError(zClientCapabilities.optional().default({
|
|
15764
|
+
fs: { readTextFile: false, writeTextFile: false },
|
|
15765
|
+
terminal: false,
|
|
15766
|
+
auth: { terminal: false }
|
|
15767
|
+
}), () => ({
|
|
15768
|
+
fs: { readTextFile: false, writeTextFile: false },
|
|
15769
|
+
terminal: false,
|
|
15770
|
+
auth: { terminal: false }
|
|
15771
|
+
})),
|
|
15772
|
+
clientInfo: defaultOnError(zImplementation.nullish(), () => void 0),
|
|
15773
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15774
|
+
});
|
|
15775
|
+
var zAuthenticateRequest = object({
|
|
15776
|
+
methodId: zAuthMethodId,
|
|
15777
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15778
|
+
});
|
|
15779
|
+
var zListProvidersRequest = object({
|
|
15780
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15781
|
+
});
|
|
15782
|
+
var zSetProviderRequest = object({
|
|
15783
|
+
providerId: zProviderId,
|
|
15784
|
+
apiType: zLlmProtocol,
|
|
15785
|
+
baseUrl: string2(),
|
|
15786
|
+
headers: record(string2(), string2()).optional(),
|
|
15787
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15788
|
+
});
|
|
15789
|
+
var zDisableProviderRequest = object({
|
|
15790
|
+
providerId: zProviderId,
|
|
15791
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15792
|
+
});
|
|
15793
|
+
var zLogoutRequest = object({
|
|
15794
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15795
|
+
});
|
|
15796
|
+
var zHttpHeader = object({
|
|
15797
|
+
name: string2(),
|
|
15798
|
+
value: string2(),
|
|
15799
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15800
|
+
});
|
|
15801
|
+
var zMcpServerHttp = object({
|
|
15802
|
+
name: string2(),
|
|
15803
|
+
url: string2(),
|
|
15804
|
+
headers: array(zHttpHeader),
|
|
15805
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15806
|
+
});
|
|
15807
|
+
var zMcpServerSse = object({
|
|
15808
|
+
name: string2(),
|
|
15809
|
+
url: string2(),
|
|
15810
|
+
headers: array(zHttpHeader),
|
|
15811
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15812
|
+
});
|
|
15813
|
+
var zMcpServerAcp = object({
|
|
15814
|
+
name: string2(),
|
|
15815
|
+
serverId: zMcpServerAcpId,
|
|
15816
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15817
|
+
});
|
|
15818
|
+
var zMcpServerStdio = object({
|
|
15819
|
+
name: string2(),
|
|
15820
|
+
command: string2(),
|
|
15821
|
+
args: array(string2()),
|
|
15822
|
+
env: array(zEnvVariable),
|
|
15823
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15824
|
+
});
|
|
15825
|
+
var zMcpServer = union([
|
|
15826
|
+
zMcpServerHttp.and(object({
|
|
15827
|
+
type: literal("http")
|
|
15828
|
+
})),
|
|
15829
|
+
zMcpServerSse.and(object({
|
|
15830
|
+
type: literal("sse")
|
|
15831
|
+
})),
|
|
15832
|
+
zMcpServerAcp.and(object({
|
|
15833
|
+
type: literal("acp")
|
|
15834
|
+
})),
|
|
15835
|
+
zMcpServerStdio
|
|
15836
|
+
]);
|
|
15837
|
+
var zNewSessionRequest = object({
|
|
15838
|
+
cwd: string2(),
|
|
15839
|
+
additionalDirectories: defaultOnError(vecSkipError(string2()).optional(), () => []),
|
|
15840
|
+
mcpServers: requiredDefaultOnError(vecSkipError(zMcpServer), () => []),
|
|
15841
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15842
|
+
});
|
|
15843
|
+
var zLoadSessionRequest = object({
|
|
15844
|
+
mcpServers: requiredDefaultOnError(vecSkipError(zMcpServer), () => []),
|
|
15845
|
+
cwd: string2(),
|
|
15846
|
+
additionalDirectories: defaultOnError(vecSkipError(string2()).optional(), () => []),
|
|
15843
15847
|
sessionId: zSessionId,
|
|
15844
|
-
|
|
15848
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15845
15849
|
});
|
|
15846
|
-
var
|
|
15847
|
-
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
}).nullish(),
|
|
15851
|
-
signal: external_exports.string().nullish()
|
|
15850
|
+
var zListSessionsRequest = object({
|
|
15851
|
+
cwd: string2().nullish(),
|
|
15852
|
+
cursor: string2().nullish(),
|
|
15853
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15852
15854
|
});
|
|
15853
|
-
var
|
|
15854
|
-
|
|
15855
|
-
|
|
15855
|
+
var zDeleteSessionRequest = object({
|
|
15856
|
+
sessionId: zSessionId,
|
|
15857
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15858
|
+
});
|
|
15859
|
+
var zForkSessionRequest = object({
|
|
15860
|
+
sessionId: zSessionId,
|
|
15861
|
+
cwd: string2(),
|
|
15862
|
+
additionalDirectories: defaultOnError(vecSkipError(string2()).optional(), () => []),
|
|
15863
|
+
mcpServers: defaultOnError(vecSkipError(zMcpServer).optional(), () => []),
|
|
15864
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15865
|
+
});
|
|
15866
|
+
var zResumeSessionRequest = object({
|
|
15867
|
+
sessionId: zSessionId,
|
|
15868
|
+
cwd: string2(),
|
|
15869
|
+
additionalDirectories: defaultOnError(vecSkipError(string2()).optional(), () => []),
|
|
15870
|
+
mcpServers: defaultOnError(vecSkipError(zMcpServer).optional(), () => []),
|
|
15871
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15872
|
+
});
|
|
15873
|
+
var zCloseSessionRequest = object({
|
|
15874
|
+
sessionId: zSessionId,
|
|
15875
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15876
|
+
});
|
|
15877
|
+
var zSetSessionModeRequest = object({
|
|
15878
|
+
sessionId: zSessionId,
|
|
15879
|
+
modeId: zSessionModeId,
|
|
15880
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15881
|
+
});
|
|
15882
|
+
var zSetSessionConfigOptionRequest = intersection(union([
|
|
15883
|
+
object({
|
|
15884
|
+
value: boolean2(),
|
|
15885
|
+
type: literal("boolean")
|
|
15886
|
+
}),
|
|
15887
|
+
object({
|
|
15888
|
+
value: zSessionConfigValueId
|
|
15889
|
+
})
|
|
15890
|
+
]), object({
|
|
15891
|
+
sessionId: zSessionId,
|
|
15892
|
+
configId: zSessionConfigId,
|
|
15893
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15894
|
+
}));
|
|
15895
|
+
var zPromptRequest = object({
|
|
15896
|
+
sessionId: zSessionId,
|
|
15897
|
+
prompt: array(zContentBlock),
|
|
15898
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15899
|
+
});
|
|
15900
|
+
var zWorkspaceFolder = object({
|
|
15901
|
+
uri: string2(),
|
|
15902
|
+
name: string2(),
|
|
15903
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15904
|
+
});
|
|
15905
|
+
var zNesRepository = object({
|
|
15906
|
+
name: string2(),
|
|
15907
|
+
owner: string2(),
|
|
15908
|
+
remoteUrl: string2(),
|
|
15909
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15910
|
+
});
|
|
15911
|
+
var zStartNesRequest = object({
|
|
15912
|
+
workspaceUri: defaultOnError(string2().nullish(), () => void 0),
|
|
15913
|
+
workspaceFolders: array(zWorkspaceFolder).nullish(),
|
|
15914
|
+
repository: defaultOnError(zNesRepository.nullish(), () => void 0),
|
|
15915
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15916
|
+
});
|
|
15917
|
+
var zNesTriggerKind = union([
|
|
15918
|
+
literal("automatic"),
|
|
15919
|
+
literal("diagnostic"),
|
|
15920
|
+
literal("manual")
|
|
15921
|
+
]);
|
|
15922
|
+
var zNesRecentFile = object({
|
|
15923
|
+
uri: string2(),
|
|
15924
|
+
languageId: string2(),
|
|
15925
|
+
text: string2(),
|
|
15926
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15927
|
+
});
|
|
15928
|
+
var zNesExcerpt = object({
|
|
15929
|
+
startLine: int().gte(0).max(4294967295, {
|
|
15930
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15931
|
+
}),
|
|
15932
|
+
endLine: int().gte(0).max(4294967295, {
|
|
15933
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
15934
|
+
}),
|
|
15935
|
+
text: string2(),
|
|
15936
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15937
|
+
});
|
|
15938
|
+
var zNesRelatedSnippet = object({
|
|
15939
|
+
uri: string2(),
|
|
15940
|
+
excerpts: array(zNesExcerpt),
|
|
15941
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15942
|
+
});
|
|
15943
|
+
var zNesEditHistoryEntry = object({
|
|
15944
|
+
uri: string2(),
|
|
15945
|
+
diff: string2(),
|
|
15946
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15947
|
+
});
|
|
15948
|
+
var zNesUserAction = object({
|
|
15949
|
+
action: string2(),
|
|
15950
|
+
uri: string2(),
|
|
15951
|
+
position: zPosition,
|
|
15952
|
+
timestampMs: number2(),
|
|
15953
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15954
|
+
});
|
|
15955
|
+
var zNesOpenFile = object({
|
|
15956
|
+
uri: string2(),
|
|
15957
|
+
languageId: string2(),
|
|
15958
|
+
visibleRange: defaultOnError(zRange.nullish(), () => void 0),
|
|
15959
|
+
lastFocusedMs: defaultOnError(number2().nullish(), () => void 0),
|
|
15960
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15961
|
+
});
|
|
15962
|
+
var zNesDiagnosticSeverity = union([
|
|
15963
|
+
literal("error"),
|
|
15964
|
+
literal("warning"),
|
|
15965
|
+
literal("information"),
|
|
15966
|
+
literal("hint")
|
|
15967
|
+
]);
|
|
15968
|
+
var zNesDiagnostic = object({
|
|
15969
|
+
uri: string2(),
|
|
15970
|
+
range: zRange,
|
|
15971
|
+
severity: zNesDiagnosticSeverity,
|
|
15972
|
+
message: string2(),
|
|
15973
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15974
|
+
});
|
|
15975
|
+
var zNesSuggestContext = object({
|
|
15976
|
+
recentFiles: array(zNesRecentFile).nullish(),
|
|
15977
|
+
relatedSnippets: array(zNesRelatedSnippet).nullish(),
|
|
15978
|
+
editHistory: array(zNesEditHistoryEntry).nullish(),
|
|
15979
|
+
userActions: array(zNesUserAction).nullish(),
|
|
15980
|
+
openFiles: array(zNesOpenFile).nullish(),
|
|
15981
|
+
diagnostics: array(zNesDiagnostic).nullish(),
|
|
15982
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15983
|
+
});
|
|
15984
|
+
var zSuggestNesRequest = object({
|
|
15985
|
+
sessionId: zSessionId,
|
|
15986
|
+
uri: string2(),
|
|
15987
|
+
version: number2(),
|
|
15988
|
+
position: zPosition,
|
|
15989
|
+
selection: zRange.nullish(),
|
|
15990
|
+
triggerKind: zNesTriggerKind,
|
|
15991
|
+
context: zNesSuggestContext.nullish(),
|
|
15992
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15856
15993
|
});
|
|
15857
|
-
var
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
workspaceFolders: external_exports.array(zWorkspaceFolder).nullish(),
|
|
15861
|
-
workspaceUri: external_exports.string().nullish()
|
|
15994
|
+
var zCloseNesRequest = object({
|
|
15995
|
+
sessionId: zSessionId,
|
|
15996
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15862
15997
|
});
|
|
15863
|
-
|
|
15998
|
+
object({
|
|
15864
15999
|
id: zRequestId,
|
|
15865
|
-
method:
|
|
15866
|
-
params:
|
|
16000
|
+
method: string2(),
|
|
16001
|
+
params: union([
|
|
15867
16002
|
zInitializeRequest,
|
|
15868
16003
|
zAuthenticateRequest,
|
|
15869
16004
|
zListProvidersRequest,
|
|
15870
|
-
|
|
15871
|
-
|
|
16005
|
+
zSetProviderRequest,
|
|
16006
|
+
zDisableProviderRequest,
|
|
15872
16007
|
zLogoutRequest,
|
|
15873
16008
|
zNewSessionRequest,
|
|
15874
16009
|
zLoadSessionRequest,
|
|
15875
16010
|
zListSessionsRequest,
|
|
16011
|
+
zDeleteSessionRequest,
|
|
15876
16012
|
zForkSessionRequest,
|
|
15877
16013
|
zResumeSessionRequest,
|
|
15878
16014
|
zCloseSessionRequest,
|
|
15879
16015
|
zSetSessionModeRequest,
|
|
15880
16016
|
zSetSessionConfigOptionRequest,
|
|
15881
16017
|
zPromptRequest,
|
|
15882
|
-
zSetSessionModelRequest,
|
|
15883
16018
|
zStartNesRequest,
|
|
15884
16019
|
zSuggestNesRequest,
|
|
15885
16020
|
zCloseNesRequest,
|
|
16021
|
+
zMessageMcpRequest,
|
|
15886
16022
|
zExtRequest
|
|
15887
16023
|
]).nullish()
|
|
15888
16024
|
});
|
|
15889
|
-
var
|
|
15890
|
-
_meta:
|
|
15891
|
-
content: external_exports.string(),
|
|
15892
|
-
path: external_exports.string(),
|
|
15893
|
-
sessionId: zSessionId
|
|
16025
|
+
var zWriteTextFileResponse = object({
|
|
16026
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15894
16027
|
});
|
|
15895
|
-
|
|
15896
|
-
|
|
15897
|
-
|
|
15898
|
-
params: external_exports.union([
|
|
15899
|
-
zWriteTextFileRequest,
|
|
15900
|
-
zReadTextFileRequest,
|
|
15901
|
-
zRequestPermissionRequest,
|
|
15902
|
-
zCreateTerminalRequest,
|
|
15903
|
-
zTerminalOutputRequest,
|
|
15904
|
-
zReleaseTerminalRequest,
|
|
15905
|
-
zWaitForTerminalExitRequest,
|
|
15906
|
-
zKillTerminalRequest,
|
|
15907
|
-
zCreateElicitationRequest,
|
|
15908
|
-
zExtRequest
|
|
15909
|
-
]).nullish()
|
|
16028
|
+
var zReadTextFileResponse = object({
|
|
16029
|
+
content: string2(),
|
|
16030
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15910
16031
|
});
|
|
15911
|
-
var
|
|
15912
|
-
|
|
16032
|
+
var zSelectedPermissionOutcome = object({
|
|
16033
|
+
optionId: zPermissionOptionId,
|
|
16034
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
15913
16035
|
});
|
|
15914
|
-
|
|
15915
|
-
|
|
16036
|
+
var zRequestPermissionOutcome = union([
|
|
16037
|
+
object({
|
|
16038
|
+
outcome: literal("cancelled")
|
|
16039
|
+
}),
|
|
16040
|
+
zSelectedPermissionOutcome.and(object({
|
|
16041
|
+
outcome: literal("selected")
|
|
16042
|
+
}))
|
|
16043
|
+
]);
|
|
16044
|
+
var zRequestPermissionResponse = object({
|
|
16045
|
+
outcome: zRequestPermissionOutcome,
|
|
16046
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16047
|
+
});
|
|
16048
|
+
var zCreateTerminalResponse = object({
|
|
16049
|
+
terminalId: zTerminalId,
|
|
16050
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16051
|
+
});
|
|
16052
|
+
var zTerminalExitStatus = object({
|
|
16053
|
+
exitCode: defaultOnError(int().gte(0).max(4294967295, {
|
|
16054
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
16055
|
+
}).nullish(), () => void 0),
|
|
16056
|
+
signal: defaultOnError(string2().nullish(), () => void 0),
|
|
16057
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16058
|
+
});
|
|
16059
|
+
var zTerminalOutputResponse = object({
|
|
16060
|
+
output: string2(),
|
|
16061
|
+
truncated: boolean2(),
|
|
16062
|
+
exitStatus: defaultOnError(zTerminalExitStatus.nullish(), () => void 0),
|
|
16063
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16064
|
+
});
|
|
16065
|
+
var zReleaseTerminalResponse = object({
|
|
16066
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16067
|
+
});
|
|
16068
|
+
var zWaitForTerminalExitResponse = object({
|
|
16069
|
+
exitCode: defaultOnError(int().gte(0).max(4294967295, {
|
|
16070
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295"
|
|
16071
|
+
}).nullish(), () => void 0),
|
|
16072
|
+
signal: defaultOnError(string2().nullish(), () => void 0),
|
|
16073
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16074
|
+
});
|
|
16075
|
+
var zKillTerminalResponse = object({
|
|
16076
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16077
|
+
});
|
|
16078
|
+
var zElicitationContentValue = union([
|
|
16079
|
+
string2(),
|
|
16080
|
+
number2(),
|
|
16081
|
+
number2(),
|
|
16082
|
+
boolean2(),
|
|
16083
|
+
array(string2())
|
|
16084
|
+
]);
|
|
16085
|
+
var zElicitationAcceptAction = object({
|
|
16086
|
+
content: record(string2(), zElicitationContentValue).nullish()
|
|
16087
|
+
});
|
|
16088
|
+
var zCreateElicitationResponse = preserveCustomPayload(intersection(union([
|
|
16089
|
+
zElicitationAcceptAction.and(object({
|
|
16090
|
+
action: literal("accept")
|
|
16091
|
+
})),
|
|
16092
|
+
object({
|
|
16093
|
+
action: literal("decline")
|
|
16094
|
+
}),
|
|
16095
|
+
object({
|
|
16096
|
+
action: literal("cancel")
|
|
16097
|
+
}),
|
|
16098
|
+
excludeKnownTags(object({
|
|
16099
|
+
action: string2()
|
|
16100
|
+
}), "action", ["accept", "cancel", "decline"])
|
|
16101
|
+
]), object({
|
|
16102
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16103
|
+
})), "action", ["accept", "cancel", "decline"]);
|
|
16104
|
+
var zConnectMcpResponse = object({
|
|
16105
|
+
connectionId: zMcpConnectionId,
|
|
16106
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16107
|
+
});
|
|
16108
|
+
var zDisconnectMcpResponse = object({
|
|
16109
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16110
|
+
});
|
|
16111
|
+
union([
|
|
16112
|
+
object({
|
|
15916
16113
|
id: zRequestId,
|
|
15917
|
-
result:
|
|
16114
|
+
result: union([
|
|
15918
16115
|
zWriteTextFileResponse,
|
|
15919
16116
|
zReadTextFileResponse,
|
|
15920
16117
|
zRequestPermissionResponse,
|
|
@@ -15924,14 +16121,181 @@ external_exports.union([
|
|
|
15924
16121
|
zWaitForTerminalExitResponse,
|
|
15925
16122
|
zKillTerminalResponse,
|
|
15926
16123
|
zCreateElicitationResponse,
|
|
16124
|
+
zConnectMcpResponse,
|
|
16125
|
+
zDisconnectMcpResponse,
|
|
16126
|
+
zMessageMcpResponse,
|
|
15927
16127
|
zExtResponse
|
|
15928
16128
|
])
|
|
15929
16129
|
}),
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
16130
|
+
object({
|
|
16131
|
+
id: zRequestId,
|
|
16132
|
+
error: zError
|
|
15933
16133
|
})
|
|
15934
16134
|
]);
|
|
16135
|
+
var zCancelNotification = object({
|
|
16136
|
+
sessionId: zSessionId,
|
|
16137
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16138
|
+
});
|
|
16139
|
+
var zDidOpenDocumentNotification = object({
|
|
16140
|
+
sessionId: zSessionId,
|
|
16141
|
+
uri: string2(),
|
|
16142
|
+
languageId: string2(),
|
|
16143
|
+
version: number2(),
|
|
16144
|
+
text: string2(),
|
|
16145
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16146
|
+
});
|
|
16147
|
+
var zTextDocumentContentChangeEvent = object({
|
|
16148
|
+
range: zRange.nullish(),
|
|
16149
|
+
text: string2(),
|
|
16150
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16151
|
+
});
|
|
16152
|
+
var zDidChangeDocumentNotification = object({
|
|
16153
|
+
sessionId: zSessionId,
|
|
16154
|
+
uri: string2(),
|
|
16155
|
+
version: number2(),
|
|
16156
|
+
contentChanges: requiredDefaultOnError(vecSkipError(zTextDocumentContentChangeEvent), () => []),
|
|
16157
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16158
|
+
});
|
|
16159
|
+
var zDidCloseDocumentNotification = object({
|
|
16160
|
+
sessionId: zSessionId,
|
|
16161
|
+
uri: string2(),
|
|
16162
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16163
|
+
});
|
|
16164
|
+
var zDidSaveDocumentNotification = object({
|
|
16165
|
+
sessionId: zSessionId,
|
|
16166
|
+
uri: string2(),
|
|
16167
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16168
|
+
});
|
|
16169
|
+
var zDidFocusDocumentNotification = object({
|
|
16170
|
+
sessionId: zSessionId,
|
|
16171
|
+
uri: string2(),
|
|
16172
|
+
version: number2(),
|
|
16173
|
+
position: zPosition,
|
|
16174
|
+
visibleRange: zRange,
|
|
16175
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16176
|
+
});
|
|
16177
|
+
var zAcceptNesNotification = object({
|
|
16178
|
+
sessionId: zSessionId,
|
|
16179
|
+
id: zNesSuggestionId,
|
|
16180
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16181
|
+
});
|
|
16182
|
+
var zNesRejectReason = union([
|
|
16183
|
+
literal("rejected"),
|
|
16184
|
+
literal("ignored"),
|
|
16185
|
+
literal("replaced"),
|
|
16186
|
+
literal("cancelled")
|
|
16187
|
+
]);
|
|
16188
|
+
var zRejectNesNotification = object({
|
|
16189
|
+
sessionId: zSessionId,
|
|
16190
|
+
id: zNesSuggestionId,
|
|
16191
|
+
reason: defaultOnError(zNesRejectReason.nullish(), () => void 0),
|
|
16192
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16193
|
+
});
|
|
16194
|
+
object({
|
|
16195
|
+
method: string2(),
|
|
16196
|
+
params: union([
|
|
16197
|
+
zCancelNotification,
|
|
16198
|
+
zDidOpenDocumentNotification,
|
|
16199
|
+
zDidChangeDocumentNotification,
|
|
16200
|
+
zDidCloseDocumentNotification,
|
|
16201
|
+
zDidSaveDocumentNotification,
|
|
16202
|
+
zDidFocusDocumentNotification,
|
|
16203
|
+
zAcceptNesNotification,
|
|
16204
|
+
zRejectNesNotification,
|
|
16205
|
+
zMessageMcpNotification,
|
|
16206
|
+
zExtNotification
|
|
16207
|
+
]).nullish()
|
|
16208
|
+
});
|
|
16209
|
+
object({
|
|
16210
|
+
requestId: zRequestId,
|
|
16211
|
+
_meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
|
|
16212
|
+
});
|
|
16213
|
+
|
|
16214
|
+
// ../../node_modules/.pnpm/@agentclientprotocol+sdk@1.2.1_zod@4.4.1/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js
|
|
16215
|
+
zElicitationFormMode.and(object({ mode: literal("form") })).and(object({ message: string2() }));
|
|
16216
|
+
zElicitationUrlMode.and(object({ mode: literal("url") })).and(object({ message: string2() }));
|
|
16217
|
+
union([zElicitationSessionScope, zElicitationRequestScope]).and(object({ message: string2() }));
|
|
16218
|
+
zStringPropertySchema.and(object({ type: literal("string") }));
|
|
16219
|
+
zNumberPropertySchema.and(object({ type: literal("number") }));
|
|
16220
|
+
zIntegerPropertySchema.and(object({ type: literal("integer") }));
|
|
16221
|
+
zBooleanPropertySchema.and(object({ type: literal("boolean") }));
|
|
16222
|
+
zMultiSelectPropertySchema.and(object({ type: literal("array") }));
|
|
16223
|
+
zStringMultiSelectItems.and(object({ type: literal("string") }));
|
|
16224
|
+
zElicitationAcceptAction.and(object({ action: literal("accept") }));
|
|
16225
|
+
object({
|
|
16226
|
+
action: literal("decline")
|
|
16227
|
+
});
|
|
16228
|
+
object({
|
|
16229
|
+
action: literal("cancel")
|
|
16230
|
+
});
|
|
16231
|
+
|
|
16232
|
+
// ../../node_modules/.pnpm/@agentclientprotocol+sdk@1.2.1_zod@4.4.1/node_modules/@agentclientprotocol/sdk/dist/acp.js
|
|
16233
|
+
function emptyObjectResponse(response) {
|
|
16234
|
+
return response ?? {};
|
|
16235
|
+
}
|
|
16236
|
+
function requestSpec(method, params, mapResponse) {
|
|
16237
|
+
return { method, params, mapResponse };
|
|
16238
|
+
}
|
|
16239
|
+
function notificationSpec(method, params) {
|
|
16240
|
+
return { method, params };
|
|
16241
|
+
}
|
|
16242
|
+
function specsByMethod(specs) {
|
|
16243
|
+
const byMethod = {};
|
|
16244
|
+
for (const spec of Object.values(specs)) {
|
|
16245
|
+
byMethod[spec.method] = spec;
|
|
16246
|
+
}
|
|
16247
|
+
return byMethod;
|
|
16248
|
+
}
|
|
16249
|
+
var agentRequestSpecs = {
|
|
16250
|
+
initialize: requestSpec(AGENT_METHODS.initialize, zInitializeRequest),
|
|
16251
|
+
newSession: requestSpec(AGENT_METHODS.session_new, zNewSessionRequest),
|
|
16252
|
+
loadSession: requestSpec(AGENT_METHODS.session_load, zLoadSessionRequest, emptyObjectResponse),
|
|
16253
|
+
unstable_forkSession: requestSpec(AGENT_METHODS.session_fork, zForkSessionRequest),
|
|
16254
|
+
listSessions: requestSpec(AGENT_METHODS.session_list, zListSessionsRequest),
|
|
16255
|
+
deleteSession: requestSpec(AGENT_METHODS.session_delete, zDeleteSessionRequest, emptyObjectResponse),
|
|
16256
|
+
resumeSession: requestSpec(AGENT_METHODS.session_resume, zResumeSessionRequest),
|
|
16257
|
+
closeSession: requestSpec(AGENT_METHODS.session_close, zCloseSessionRequest, emptyObjectResponse),
|
|
16258
|
+
setSessionMode: requestSpec(AGENT_METHODS.session_set_mode, zSetSessionModeRequest, emptyObjectResponse),
|
|
16259
|
+
setSessionConfigOption: requestSpec(AGENT_METHODS.session_set_config_option, zSetSessionConfigOptionRequest),
|
|
16260
|
+
authenticate: requestSpec(AGENT_METHODS.authenticate, zAuthenticateRequest, emptyObjectResponse),
|
|
16261
|
+
unstable_listProviders: requestSpec(AGENT_METHODS.providers_list, zListProvidersRequest),
|
|
16262
|
+
unstable_setProvider: requestSpec(AGENT_METHODS.providers_set, zSetProviderRequest, emptyObjectResponse),
|
|
16263
|
+
unstable_disableProvider: requestSpec(AGENT_METHODS.providers_disable, zDisableProviderRequest, emptyObjectResponse),
|
|
16264
|
+
logout: requestSpec(AGENT_METHODS.logout, zLogoutRequest, emptyObjectResponse),
|
|
16265
|
+
prompt: requestSpec(AGENT_METHODS.session_prompt, zPromptRequest),
|
|
16266
|
+
unstable_startNes: requestSpec(AGENT_METHODS.nes_start, zStartNesRequest),
|
|
16267
|
+
unstable_suggestNes: requestSpec(AGENT_METHODS.nes_suggest, zSuggestNesRequest),
|
|
16268
|
+
unstable_closeNes: requestSpec(AGENT_METHODS.nes_close, zCloseNesRequest, emptyObjectResponse)
|
|
16269
|
+
};
|
|
16270
|
+
var agentNotificationSpecs = {
|
|
16271
|
+
cancel: notificationSpec(AGENT_METHODS.session_cancel, zCancelNotification),
|
|
16272
|
+
unstable_didOpenDocument: notificationSpec(AGENT_METHODS.document_did_open, zDidOpenDocumentNotification),
|
|
16273
|
+
unstable_didChangeDocument: notificationSpec(AGENT_METHODS.document_did_change, zDidChangeDocumentNotification),
|
|
16274
|
+
unstable_didCloseDocument: notificationSpec(AGENT_METHODS.document_did_close, zDidCloseDocumentNotification),
|
|
16275
|
+
unstable_didSaveDocument: notificationSpec(AGENT_METHODS.document_did_save, zDidSaveDocumentNotification),
|
|
16276
|
+
unstable_didFocusDocument: notificationSpec(AGENT_METHODS.document_did_focus, zDidFocusDocumentNotification),
|
|
16277
|
+
unstable_acceptNes: notificationSpec(AGENT_METHODS.nes_accept, zAcceptNesNotification),
|
|
16278
|
+
unstable_rejectNes: notificationSpec(AGENT_METHODS.nes_reject, zRejectNesNotification)
|
|
16279
|
+
};
|
|
16280
|
+
var clientRequestSpecs = {
|
|
16281
|
+
requestPermission: requestSpec(CLIENT_METHODS.session_request_permission, zRequestPermissionRequest),
|
|
16282
|
+
writeTextFile: requestSpec(CLIENT_METHODS.fs_write_text_file, zWriteTextFileRequest, emptyObjectResponse),
|
|
16283
|
+
readTextFile: requestSpec(CLIENT_METHODS.fs_read_text_file, zReadTextFileRequest),
|
|
16284
|
+
createTerminal: requestSpec(CLIENT_METHODS.terminal_create, zCreateTerminalRequest),
|
|
16285
|
+
terminalOutput: requestSpec(CLIENT_METHODS.terminal_output, zTerminalOutputRequest),
|
|
16286
|
+
releaseTerminal: requestSpec(CLIENT_METHODS.terminal_release, zReleaseTerminalRequest, emptyObjectResponse),
|
|
16287
|
+
waitForTerminalExit: requestSpec(CLIENT_METHODS.terminal_wait_for_exit, zWaitForTerminalExitRequest),
|
|
16288
|
+
killTerminal: requestSpec(CLIENT_METHODS.terminal_kill, zKillTerminalRequest, emptyObjectResponse),
|
|
16289
|
+
unstable_createElicitation: requestSpec(CLIENT_METHODS.elicitation_create, zCreateElicitationRequest)
|
|
16290
|
+
};
|
|
16291
|
+
var clientNotificationSpecs = {
|
|
16292
|
+
sessionUpdate: notificationSpec(CLIENT_METHODS.session_update, zSessionNotification),
|
|
16293
|
+
unstable_completeElicitation: notificationSpec(CLIENT_METHODS.elicitation_complete, zCompleteElicitationNotification)
|
|
16294
|
+
};
|
|
16295
|
+
specsByMethod(agentRequestSpecs);
|
|
16296
|
+
specsByMethod(agentNotificationSpecs);
|
|
16297
|
+
specsByMethod(clientRequestSpecs);
|
|
16298
|
+
specsByMethod(clientNotificationSpecs);
|
|
15935
16299
|
var DEFAULT_WINDOWS_PATHEXT = ".COM;.EXE;.BAT;.CMD";
|
|
15936
16300
|
var WINDOWS_PATH_SEPARATOR = ";";
|
|
15937
16301
|
var WINDOWS_SHIM_EXTENSIONS = /* @__PURE__ */ new Set([".cmd", ".bat"]);
|
|
@@ -16023,7 +16387,7 @@ function withHidden(options) {
|
|
|
16023
16387
|
// ../../packages/core-unified-agent/models.json
|
|
16024
16388
|
var models_default = {
|
|
16025
16389
|
version: 1,
|
|
16026
|
-
updatedAt: "2026-07-
|
|
16390
|
+
updatedAt: "2026-07-10T00:00:00Z",
|
|
16027
16391
|
providers: {
|
|
16028
16392
|
claude: {
|
|
16029
16393
|
name: "Claude Code",
|
|
@@ -16040,10 +16404,13 @@ var models_default = {
|
|
|
16040
16404
|
},
|
|
16041
16405
|
codex: {
|
|
16042
16406
|
name: "Codex",
|
|
16043
|
-
defaultModel: "gpt-5.
|
|
16407
|
+
defaultModel: "gpt-5.6-sol",
|
|
16044
16408
|
models: [
|
|
16045
|
-
{ modelId: "gpt-5.
|
|
16409
|
+
{ modelId: "gpt-5.6-sol", name: "GPT-5.6-Sol", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max", "ultra"], default: "low" } },
|
|
16410
|
+
{ modelId: "gpt-5.6-terra", name: "GPT-5.6-Terra", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max", "ultra"], default: "medium" } },
|
|
16411
|
+
{ modelId: "gpt-5.6-luna", name: "GPT-5.6-Luna", effort: { supported: true, levels: ["low", "medium", "high", "xhigh", "max"], default: "medium" } },
|
|
16046
16412
|
{ modelId: "gpt-5.5", name: "GPT-5.5", effort: { supported: true, levels: ["low", "medium", "high", "xhigh"], default: "high" } },
|
|
16413
|
+
{ modelId: "gpt-5.4", name: "GPT-5.4", effort: { supported: true, levels: ["low", "medium", "high", "xhigh"], default: "high" } },
|
|
16047
16414
|
{ modelId: "gpt-5.4-mini", name: "GPT-5.4 Mini", effort: { supported: true, levels: ["low", "medium", "high", "xhigh"], default: "high" } }
|
|
16048
16415
|
]
|
|
16049
16416
|
},
|
|
@@ -16084,7 +16451,8 @@ var EffortLevelSchema = external_exports.enum([
|
|
|
16084
16451
|
"medium",
|
|
16085
16452
|
"high",
|
|
16086
16453
|
"xhigh",
|
|
16087
|
-
"max"
|
|
16454
|
+
"max",
|
|
16455
|
+
"ultra"
|
|
16088
16456
|
]);
|
|
16089
16457
|
var EffortSchema = external_exports.union([
|
|
16090
16458
|
external_exports.object({
|
|
@@ -16191,7 +16559,7 @@ var CLI_BACKENDS = {
|
|
|
16191
16559
|
cliCommand: "codex",
|
|
16192
16560
|
protocol: "codex-app-server",
|
|
16193
16561
|
authRequired: true,
|
|
16194
|
-
npxPackage: "@
|
|
16562
|
+
npxPackage: "@agentclientprotocol/codex-acp@1.1.2",
|
|
16195
16563
|
acpArgs: [],
|
|
16196
16564
|
appServerArgs: ["app-server", "--listen", "stdio://"],
|
|
16197
16565
|
modes: [
|