@alcyone-labs/arg-parser 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +460 -1179
- package/dist/assets/.dxtignore.template +38 -0
- package/dist/assets/logo_1_small.jpg +0 -0
- package/dist/assets/tsdown.dxt.config.ts +37 -0
- package/dist/index.cjs +23702 -2315
- package/dist/index.cjs.map +1 -1
- package/dist/index.min.mjs +16360 -1725
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +23694 -2315
- package/dist/index.mjs.map +1 -1
- package/dist/src/config/ConfigurationManager.d.ts +74 -0
- package/dist/src/config/ConfigurationManager.d.ts.map +1 -0
- package/dist/src/config/plugins/ConfigPlugin.d.ts +60 -0
- package/dist/src/config/plugins/ConfigPlugin.d.ts.map +1 -0
- package/dist/src/config/plugins/ConfigPluginRegistry.d.ts +72 -0
- package/dist/src/config/plugins/ConfigPluginRegistry.d.ts.map +1 -0
- package/dist/src/config/plugins/TomlConfigPlugin.d.ts +30 -0
- package/dist/src/config/plugins/TomlConfigPlugin.d.ts.map +1 -0
- package/dist/src/config/plugins/YamlConfigPlugin.d.ts +29 -0
- package/dist/src/config/plugins/YamlConfigPlugin.d.ts.map +1 -0
- package/dist/src/config/plugins/index.d.ts +5 -0
- package/dist/src/config/plugins/index.d.ts.map +1 -0
- package/dist/src/core/ArgParser.d.ts +332 -0
- package/dist/src/core/ArgParser.d.ts.map +1 -0
- package/dist/src/{ArgParserBase.d.ts → core/ArgParserBase.d.ts} +84 -3
- package/dist/src/core/ArgParserBase.d.ts.map +1 -0
- package/dist/src/core/FlagManager.d.ts.map +1 -0
- package/dist/src/{types.d.ts → core/types.d.ts} +40 -0
- package/dist/src/core/types.d.ts.map +1 -0
- package/dist/src/dxt/DxtGenerator.d.ts +115 -0
- package/dist/src/dxt/DxtGenerator.d.ts.map +1 -0
- package/dist/src/index.d.ts +10 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mcp/ArgParserMcp.d.ts +21 -0
- package/dist/src/mcp/ArgParserMcp.d.ts.map +1 -0
- package/dist/src/mcp/mcp-integration.d.ts +83 -0
- package/dist/src/mcp/mcp-integration.d.ts.map +1 -0
- package/dist/src/mcp/mcp-notifications.d.ts +138 -0
- package/dist/src/mcp/mcp-notifications.d.ts.map +1 -0
- package/dist/src/mcp/mcp-prompts.d.ts +132 -0
- package/dist/src/mcp/mcp-prompts.d.ts.map +1 -0
- package/dist/src/mcp/mcp-resources.d.ts +133 -0
- package/dist/src/mcp/mcp-resources.d.ts.map +1 -0
- package/dist/src/testing/fuzzy-test-cli.d.ts +5 -0
- package/dist/src/testing/fuzzy-test-cli.d.ts.map +1 -0
- package/dist/src/{fuzzy-tester.d.ts → testing/fuzzy-tester.d.ts} +1 -1
- package/dist/src/testing/fuzzy-tester.d.ts.map +1 -0
- package/package.json +51 -17
- package/dist/examples/fuzzy-demo.d.ts +0 -8
- package/dist/examples/fuzzy-demo.d.ts.map +0 -1
- package/dist/examples/fuzzy-test-example.d.ts +0 -8
- package/dist/examples/fuzzy-test-example.d.ts.map +0 -1
- package/dist/examples/fzf-search-cli.d.ts +0 -8
- package/dist/examples/fzf-search-cli.d.ts.map +0 -1
- package/dist/examples/getting-started.d.ts +0 -27
- package/dist/examples/getting-started.d.ts.map +0 -1
- package/dist/examples/mcp-preset-transports.d.ts +0 -19
- package/dist/examples/mcp-preset-transports.d.ts.map +0 -1
- package/dist/examples/simple-cli.d.ts +0 -26
- package/dist/examples/simple-cli.d.ts.map +0 -1
- package/dist/examples/v1.1.0-showcase.d.ts +0 -16
- package/dist/examples/v1.1.0-showcase.d.ts.map +0 -1
- package/dist/examples/with-env-example.d.ts +0 -3
- package/dist/examples/with-env-example.d.ts.map +0 -1
- package/dist/index-6G9StDO_.js +0 -6445
- package/dist/index-6G9StDO_.js.map +0 -1
- package/dist/index-CqU7Fj3C.cjs +0 -6444
- package/dist/index-CqU7Fj3C.cjs.map +0 -1
- package/dist/index-Dx_q1msW.js +0 -4682
- package/dist/index-Dx_q1msW.js.map +0 -1
- package/dist/src/ArgParser.d.ts +0 -156
- package/dist/src/ArgParser.d.ts.map +0 -1
- package/dist/src/ArgParserBase.d.ts.map +0 -1
- package/dist/src/FlagManager.d.ts.map +0 -1
- package/dist/src/fuzzy-test-cli.d.ts +0 -5
- package/dist/src/fuzzy-test-cli.d.ts.map +0 -1
- package/dist/src/fuzzy-tester.d.ts.map +0 -1
- package/dist/src/mcp-integration.d.ts +0 -31
- package/dist/src/mcp-integration.d.ts.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/sse-B5Jf_YpG.cjs +0 -121
- package/dist/sse-B5Jf_YpG.cjs.map +0 -1
- package/dist/sse-BDL3h2Ll.js +0 -121
- package/dist/sse-BDL3h2Ll.js.map +0 -1
- package/dist/sse-DSjLfGFo.js +0 -107
- package/dist/sse-DSjLfGFo.js.map +0 -1
- package/dist/stdio-Cf19UQO7.js +0 -70
- package/dist/stdio-Cf19UQO7.js.map +0 -1
- package/dist/stdio-DESvSONI.cjs +0 -94
- package/dist/stdio-DESvSONI.cjs.map +0 -1
- package/dist/stdio-DLOResWr.js +0 -94
- package/dist/stdio-DLOResWr.js.map +0 -1
- package/dist/streamableHttp-DXIdDSbF.js +0 -342
- package/dist/streamableHttp-DXIdDSbF.js.map +0 -1
- package/dist/streamableHttp-DsXlAnqJ.cjs +0 -456
- package/dist/streamableHttp-DsXlAnqJ.cjs.map +0 -1
- package/dist/streamableHttp-Vd4Qsgko.js +0 -456
- package/dist/streamableHttp-Vd4Qsgko.js.map +0 -1
- package/dist/types-DSxPEImy.cjs +0 -943
- package/dist/types-DSxPEImy.cjs.map +0 -1
- package/dist/types-DdsPVLQ5.js +0 -846
- package/dist/types-DdsPVLQ5.js.map +0 -1
- package/dist/types-DpK81FWv.js +0 -944
- package/dist/types-DpK81FWv.js.map +0 -1
- /package/dist/src/{FlagManager.d.ts → core/FlagManager.d.ts} +0 -0
package/dist/types-DdsPVLQ5.js
DELETED
|
@@ -1,846 +0,0 @@
|
|
|
1
|
-
import { z as t } from "zod";
|
|
2
|
-
const k = "2025-06-18", wt = "2025-03-26", At = [
|
|
3
|
-
k,
|
|
4
|
-
"2025-03-26",
|
|
5
|
-
"2024-11-05",
|
|
6
|
-
"2024-10-07"
|
|
7
|
-
], c = "2.0", b = t.union([t.string(), t.number().int()]), S = t.string(), J = t.object({
|
|
8
|
-
/**
|
|
9
|
-
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
10
|
-
*/
|
|
11
|
-
progressToken: t.optional(b)
|
|
12
|
-
}).passthrough(), n = t.object({
|
|
13
|
-
_meta: t.optional(J)
|
|
14
|
-
}).passthrough(), o = t.object({
|
|
15
|
-
method: t.string(),
|
|
16
|
-
params: t.optional(n)
|
|
17
|
-
}), i = t.object({
|
|
18
|
-
/**
|
|
19
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
20
|
-
* for notes on _meta usage.
|
|
21
|
-
*/
|
|
22
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
23
|
-
}).passthrough(), a = t.object({
|
|
24
|
-
method: t.string(),
|
|
25
|
-
params: t.optional(i)
|
|
26
|
-
}), s = t.object({
|
|
27
|
-
/**
|
|
28
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
29
|
-
* for notes on _meta usage.
|
|
30
|
-
*/
|
|
31
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
32
|
-
}).passthrough(), l = t.union([t.string(), t.number().int()]), R = t.object({
|
|
33
|
-
jsonrpc: t.literal(c),
|
|
34
|
-
id: l
|
|
35
|
-
}).merge(o).strict(), Bt = (e) => R.safeParse(e).success, E = t.object({
|
|
36
|
-
jsonrpc: t.literal(c)
|
|
37
|
-
}).merge(a).strict(), x = t.object({
|
|
38
|
-
jsonrpc: t.literal(c),
|
|
39
|
-
id: l,
|
|
40
|
-
result: s
|
|
41
|
-
}).strict(), Vt = (e) => x.safeParse(e).success;
|
|
42
|
-
var d;
|
|
43
|
-
(function(e) {
|
|
44
|
-
e[e.ConnectionClosed = -32e3] = "ConnectionClosed", e[e.RequestTimeout = -32001] = "RequestTimeout", e[e.ParseError = -32700] = "ParseError", e[e.InvalidRequest = -32600] = "InvalidRequest", e[e.MethodNotFound = -32601] = "MethodNotFound", e[e.InvalidParams = -32602] = "InvalidParams", e[e.InternalError = -32603] = "InternalError";
|
|
45
|
-
})(d || (d = {}));
|
|
46
|
-
const j = t.object({
|
|
47
|
-
jsonrpc: t.literal(c),
|
|
48
|
-
id: l,
|
|
49
|
-
error: t.object({
|
|
50
|
-
/**
|
|
51
|
-
* The error type that occurred.
|
|
52
|
-
*/
|
|
53
|
-
code: t.number().int(),
|
|
54
|
-
/**
|
|
55
|
-
* A short description of the error. The message SHOULD be limited to a concise single sentence.
|
|
56
|
-
*/
|
|
57
|
-
message: t.string(),
|
|
58
|
-
/**
|
|
59
|
-
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
60
|
-
*/
|
|
61
|
-
data: t.optional(t.unknown())
|
|
62
|
-
})
|
|
63
|
-
}).strict(), Dt = (e) => j.safeParse(e).success, Ht = t.union([
|
|
64
|
-
R,
|
|
65
|
-
E,
|
|
66
|
-
x,
|
|
67
|
-
j
|
|
68
|
-
]), P = s.strict(), y = a.extend({
|
|
69
|
-
method: t.literal("notifications/cancelled"),
|
|
70
|
-
params: i.extend({
|
|
71
|
-
/**
|
|
72
|
-
* The ID of the request to cancel.
|
|
73
|
-
*
|
|
74
|
-
* This MUST correspond to the ID of a request previously issued in the same direction.
|
|
75
|
-
*/
|
|
76
|
-
requestId: l,
|
|
77
|
-
/**
|
|
78
|
-
* An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
|
|
79
|
-
*/
|
|
80
|
-
reason: t.string().optional()
|
|
81
|
-
})
|
|
82
|
-
}), r = t.object({
|
|
83
|
-
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
84
|
-
name: t.string(),
|
|
85
|
-
/**
|
|
86
|
-
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
87
|
-
* even by those unfamiliar with domain-specific terminology.
|
|
88
|
-
*
|
|
89
|
-
* If not provided, the name should be used for display (except for Tool,
|
|
90
|
-
* where `annotations.title` should be given precedence over using `name`,
|
|
91
|
-
* if present).
|
|
92
|
-
*/
|
|
93
|
-
title: t.optional(t.string())
|
|
94
|
-
}).passthrough(), f = r.extend({
|
|
95
|
-
version: t.string()
|
|
96
|
-
}), z = t.object({
|
|
97
|
-
/**
|
|
98
|
-
* Experimental, non-standard capabilities that the client supports.
|
|
99
|
-
*/
|
|
100
|
-
experimental: t.optional(t.object({}).passthrough()),
|
|
101
|
-
/**
|
|
102
|
-
* Present if the client supports sampling from an LLM.
|
|
103
|
-
*/
|
|
104
|
-
sampling: t.optional(t.object({}).passthrough()),
|
|
105
|
-
/**
|
|
106
|
-
* Present if the client supports eliciting user input.
|
|
107
|
-
*/
|
|
108
|
-
elicitation: t.optional(t.object({}).passthrough()),
|
|
109
|
-
/**
|
|
110
|
-
* Present if the client supports listing roots.
|
|
111
|
-
*/
|
|
112
|
-
roots: t.optional(t.object({
|
|
113
|
-
/**
|
|
114
|
-
* Whether the client supports issuing notifications for changes to the roots list.
|
|
115
|
-
*/
|
|
116
|
-
listChanged: t.optional(t.boolean())
|
|
117
|
-
}).passthrough())
|
|
118
|
-
}).passthrough(), T = o.extend({
|
|
119
|
-
method: t.literal("initialize"),
|
|
120
|
-
params: n.extend({
|
|
121
|
-
/**
|
|
122
|
-
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
|
123
|
-
*/
|
|
124
|
-
protocolVersion: t.string(),
|
|
125
|
-
capabilities: z,
|
|
126
|
-
clientInfo: f
|
|
127
|
-
})
|
|
128
|
-
}), Ut = (e) => T.safeParse(e).success, w = t.object({
|
|
129
|
-
/**
|
|
130
|
-
* Experimental, non-standard capabilities that the server supports.
|
|
131
|
-
*/
|
|
132
|
-
experimental: t.optional(t.object({}).passthrough()),
|
|
133
|
-
/**
|
|
134
|
-
* Present if the server supports sending log messages to the client.
|
|
135
|
-
*/
|
|
136
|
-
logging: t.optional(t.object({}).passthrough()),
|
|
137
|
-
/**
|
|
138
|
-
* Present if the server supports sending completions to the client.
|
|
139
|
-
*/
|
|
140
|
-
completions: t.optional(t.object({}).passthrough()),
|
|
141
|
-
/**
|
|
142
|
-
* Present if the server offers any prompt templates.
|
|
143
|
-
*/
|
|
144
|
-
prompts: t.optional(t.object({
|
|
145
|
-
/**
|
|
146
|
-
* Whether this server supports issuing notifications for changes to the prompt list.
|
|
147
|
-
*/
|
|
148
|
-
listChanged: t.optional(t.boolean())
|
|
149
|
-
}).passthrough()),
|
|
150
|
-
/**
|
|
151
|
-
* Present if the server offers any resources to read.
|
|
152
|
-
*/
|
|
153
|
-
resources: t.optional(t.object({
|
|
154
|
-
/**
|
|
155
|
-
* Whether this server supports clients subscribing to resource updates.
|
|
156
|
-
*/
|
|
157
|
-
subscribe: t.optional(t.boolean()),
|
|
158
|
-
/**
|
|
159
|
-
* Whether this server supports issuing notifications for changes to the resource list.
|
|
160
|
-
*/
|
|
161
|
-
listChanged: t.optional(t.boolean())
|
|
162
|
-
}).passthrough()),
|
|
163
|
-
/**
|
|
164
|
-
* Present if the server offers any tools to call.
|
|
165
|
-
*/
|
|
166
|
-
tools: t.optional(t.object({
|
|
167
|
-
/**
|
|
168
|
-
* Whether this server supports issuing notifications for changes to the tool list.
|
|
169
|
-
*/
|
|
170
|
-
listChanged: t.optional(t.boolean())
|
|
171
|
-
}).passthrough())
|
|
172
|
-
}).passthrough(), A = s.extend({
|
|
173
|
-
/**
|
|
174
|
-
* The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
|
|
175
|
-
*/
|
|
176
|
-
protocolVersion: t.string(),
|
|
177
|
-
capabilities: w,
|
|
178
|
-
serverInfo: f,
|
|
179
|
-
/**
|
|
180
|
-
* Instructions describing how to use the server and its features.
|
|
181
|
-
*
|
|
182
|
-
* This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
|
|
183
|
-
*/
|
|
184
|
-
instructions: t.optional(t.string())
|
|
185
|
-
}), B = a.extend({
|
|
186
|
-
method: t.literal("notifications/initialized")
|
|
187
|
-
}), q = o.extend({
|
|
188
|
-
method: t.literal("ping")
|
|
189
|
-
}), V = t.object({
|
|
190
|
-
/**
|
|
191
|
-
* The progress thus far. This should increase every time progress is made, even if the total is unknown.
|
|
192
|
-
*/
|
|
193
|
-
progress: t.number(),
|
|
194
|
-
/**
|
|
195
|
-
* Total number of items to process (or total progress required), if known.
|
|
196
|
-
*/
|
|
197
|
-
total: t.optional(t.number()),
|
|
198
|
-
/**
|
|
199
|
-
* An optional message describing the current progress.
|
|
200
|
-
*/
|
|
201
|
-
message: t.optional(t.string())
|
|
202
|
-
}).passthrough(), C = a.extend({
|
|
203
|
-
method: t.literal("notifications/progress"),
|
|
204
|
-
params: i.merge(V).extend({
|
|
205
|
-
/**
|
|
206
|
-
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
|
207
|
-
*/
|
|
208
|
-
progressToken: b
|
|
209
|
-
})
|
|
210
|
-
}), m = o.extend({
|
|
211
|
-
params: n.extend({
|
|
212
|
-
/**
|
|
213
|
-
* An opaque token representing the current pagination position.
|
|
214
|
-
* If provided, the server should return results starting after this cursor.
|
|
215
|
-
*/
|
|
216
|
-
cursor: t.optional(S)
|
|
217
|
-
}).optional()
|
|
218
|
-
}), p = s.extend({
|
|
219
|
-
/**
|
|
220
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
221
|
-
* If present, there may be more results available.
|
|
222
|
-
*/
|
|
223
|
-
nextCursor: t.optional(S)
|
|
224
|
-
}), N = t.object({
|
|
225
|
-
/**
|
|
226
|
-
* The URI of this resource.
|
|
227
|
-
*/
|
|
228
|
-
uri: t.string(),
|
|
229
|
-
/**
|
|
230
|
-
* The MIME type of this resource, if known.
|
|
231
|
-
*/
|
|
232
|
-
mimeType: t.optional(t.string()),
|
|
233
|
-
/**
|
|
234
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
235
|
-
* for notes on _meta usage.
|
|
236
|
-
*/
|
|
237
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
238
|
-
}).passthrough(), L = N.extend({
|
|
239
|
-
/**
|
|
240
|
-
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
241
|
-
*/
|
|
242
|
-
text: t.string()
|
|
243
|
-
}), _ = N.extend({
|
|
244
|
-
/**
|
|
245
|
-
* A base64-encoded string representing the binary data of the item.
|
|
246
|
-
*/
|
|
247
|
-
blob: t.string().base64()
|
|
248
|
-
}), O = r.extend({
|
|
249
|
-
/**
|
|
250
|
-
* The URI of this resource.
|
|
251
|
-
*/
|
|
252
|
-
uri: t.string(),
|
|
253
|
-
/**
|
|
254
|
-
* A description of what this resource represents.
|
|
255
|
-
*
|
|
256
|
-
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
257
|
-
*/
|
|
258
|
-
description: t.optional(t.string()),
|
|
259
|
-
/**
|
|
260
|
-
* The MIME type of this resource, if known.
|
|
261
|
-
*/
|
|
262
|
-
mimeType: t.optional(t.string()),
|
|
263
|
-
/**
|
|
264
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
265
|
-
* for notes on _meta usage.
|
|
266
|
-
*/
|
|
267
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
268
|
-
}), D = r.extend({
|
|
269
|
-
/**
|
|
270
|
-
* A URI template (according to RFC 6570) that can be used to construct resource URIs.
|
|
271
|
-
*/
|
|
272
|
-
uriTemplate: t.string(),
|
|
273
|
-
/**
|
|
274
|
-
* A description of what this template is for.
|
|
275
|
-
*
|
|
276
|
-
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
277
|
-
*/
|
|
278
|
-
description: t.optional(t.string()),
|
|
279
|
-
/**
|
|
280
|
-
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
|
|
281
|
-
*/
|
|
282
|
-
mimeType: t.optional(t.string()),
|
|
283
|
-
/**
|
|
284
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
285
|
-
* for notes on _meta usage.
|
|
286
|
-
*/
|
|
287
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
288
|
-
}), H = m.extend({
|
|
289
|
-
method: t.literal("resources/list")
|
|
290
|
-
}), U = p.extend({
|
|
291
|
-
resources: t.array(O)
|
|
292
|
-
}), F = m.extend({
|
|
293
|
-
method: t.literal("resources/templates/list")
|
|
294
|
-
}), G = p.extend({
|
|
295
|
-
resourceTemplates: t.array(D)
|
|
296
|
-
}), W = o.extend({
|
|
297
|
-
method: t.literal("resources/read"),
|
|
298
|
-
params: n.extend({
|
|
299
|
-
/**
|
|
300
|
-
* The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
|
|
301
|
-
*/
|
|
302
|
-
uri: t.string()
|
|
303
|
-
})
|
|
304
|
-
}), K = s.extend({
|
|
305
|
-
contents: t.array(t.union([L, _]))
|
|
306
|
-
}), Q = a.extend({
|
|
307
|
-
method: t.literal("notifications/resources/list_changed")
|
|
308
|
-
}), X = o.extend({
|
|
309
|
-
method: t.literal("resources/subscribe"),
|
|
310
|
-
params: n.extend({
|
|
311
|
-
/**
|
|
312
|
-
* The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it.
|
|
313
|
-
*/
|
|
314
|
-
uri: t.string()
|
|
315
|
-
})
|
|
316
|
-
}), Y = o.extend({
|
|
317
|
-
method: t.literal("resources/unsubscribe"),
|
|
318
|
-
params: n.extend({
|
|
319
|
-
/**
|
|
320
|
-
* The URI of the resource to unsubscribe from.
|
|
321
|
-
*/
|
|
322
|
-
uri: t.string()
|
|
323
|
-
})
|
|
324
|
-
}), Z = a.extend({
|
|
325
|
-
method: t.literal("notifications/resources/updated"),
|
|
326
|
-
params: i.extend({
|
|
327
|
-
/**
|
|
328
|
-
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
|
329
|
-
*/
|
|
330
|
-
uri: t.string()
|
|
331
|
-
})
|
|
332
|
-
}), $ = t.object({
|
|
333
|
-
/**
|
|
334
|
-
* The name of the argument.
|
|
335
|
-
*/
|
|
336
|
-
name: t.string(),
|
|
337
|
-
/**
|
|
338
|
-
* A human-readable description of the argument.
|
|
339
|
-
*/
|
|
340
|
-
description: t.optional(t.string()),
|
|
341
|
-
/**
|
|
342
|
-
* Whether this argument must be provided.
|
|
343
|
-
*/
|
|
344
|
-
required: t.optional(t.boolean())
|
|
345
|
-
}).passthrough(), tt = r.extend({
|
|
346
|
-
/**
|
|
347
|
-
* An optional description of what this prompt provides
|
|
348
|
-
*/
|
|
349
|
-
description: t.optional(t.string()),
|
|
350
|
-
/**
|
|
351
|
-
* A list of arguments to use for templating the prompt.
|
|
352
|
-
*/
|
|
353
|
-
arguments: t.optional(t.array($)),
|
|
354
|
-
/**
|
|
355
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
356
|
-
* for notes on _meta usage.
|
|
357
|
-
*/
|
|
358
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
359
|
-
}), et = m.extend({
|
|
360
|
-
method: t.literal("prompts/list")
|
|
361
|
-
}), ot = p.extend({
|
|
362
|
-
prompts: t.array(tt)
|
|
363
|
-
}), nt = o.extend({
|
|
364
|
-
method: t.literal("prompts/get"),
|
|
365
|
-
params: n.extend({
|
|
366
|
-
/**
|
|
367
|
-
* The name of the prompt or prompt template.
|
|
368
|
-
*/
|
|
369
|
-
name: t.string(),
|
|
370
|
-
/**
|
|
371
|
-
* Arguments to use for templating the prompt.
|
|
372
|
-
*/
|
|
373
|
-
arguments: t.optional(t.record(t.string()))
|
|
374
|
-
})
|
|
375
|
-
}), h = t.object({
|
|
376
|
-
type: t.literal("text"),
|
|
377
|
-
/**
|
|
378
|
-
* The text content of the message.
|
|
379
|
-
*/
|
|
380
|
-
text: t.string(),
|
|
381
|
-
/**
|
|
382
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
383
|
-
* for notes on _meta usage.
|
|
384
|
-
*/
|
|
385
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
386
|
-
}).passthrough(), u = t.object({
|
|
387
|
-
type: t.literal("image"),
|
|
388
|
-
/**
|
|
389
|
-
* The base64-encoded image data.
|
|
390
|
-
*/
|
|
391
|
-
data: t.string().base64(),
|
|
392
|
-
/**
|
|
393
|
-
* The MIME type of the image. Different providers may support different image types.
|
|
394
|
-
*/
|
|
395
|
-
mimeType: t.string(),
|
|
396
|
-
/**
|
|
397
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
398
|
-
* for notes on _meta usage.
|
|
399
|
-
*/
|
|
400
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
401
|
-
}).passthrough(), g = t.object({
|
|
402
|
-
type: t.literal("audio"),
|
|
403
|
-
/**
|
|
404
|
-
* The base64-encoded audio data.
|
|
405
|
-
*/
|
|
406
|
-
data: t.string().base64(),
|
|
407
|
-
/**
|
|
408
|
-
* The MIME type of the audio. Different providers may support different audio types.
|
|
409
|
-
*/
|
|
410
|
-
mimeType: t.string(),
|
|
411
|
-
/**
|
|
412
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
413
|
-
* for notes on _meta usage.
|
|
414
|
-
*/
|
|
415
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
416
|
-
}).passthrough(), st = t.object({
|
|
417
|
-
type: t.literal("resource"),
|
|
418
|
-
resource: t.union([L, _]),
|
|
419
|
-
/**
|
|
420
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
421
|
-
* for notes on _meta usage.
|
|
422
|
-
*/
|
|
423
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
424
|
-
}).passthrough(), at = O.extend({
|
|
425
|
-
type: t.literal("resource_link")
|
|
426
|
-
}), I = t.union([
|
|
427
|
-
h,
|
|
428
|
-
u,
|
|
429
|
-
g,
|
|
430
|
-
at,
|
|
431
|
-
st
|
|
432
|
-
]), it = t.object({
|
|
433
|
-
role: t.enum(["user", "assistant"]),
|
|
434
|
-
content: I
|
|
435
|
-
}).passthrough(), rt = s.extend({
|
|
436
|
-
/**
|
|
437
|
-
* An optional description for the prompt.
|
|
438
|
-
*/
|
|
439
|
-
description: t.optional(t.string()),
|
|
440
|
-
messages: t.array(it)
|
|
441
|
-
}), ct = a.extend({
|
|
442
|
-
method: t.literal("notifications/prompts/list_changed")
|
|
443
|
-
}), lt = t.object({
|
|
444
|
-
/**
|
|
445
|
-
* A human-readable title for the tool.
|
|
446
|
-
*/
|
|
447
|
-
title: t.optional(t.string()),
|
|
448
|
-
/**
|
|
449
|
-
* If true, the tool does not modify its environment.
|
|
450
|
-
*
|
|
451
|
-
* Default: false
|
|
452
|
-
*/
|
|
453
|
-
readOnlyHint: t.optional(t.boolean()),
|
|
454
|
-
/**
|
|
455
|
-
* If true, the tool may perform destructive updates to its environment.
|
|
456
|
-
* If false, the tool performs only additive updates.
|
|
457
|
-
*
|
|
458
|
-
* (This property is meaningful only when `readOnlyHint == false`)
|
|
459
|
-
*
|
|
460
|
-
* Default: true
|
|
461
|
-
*/
|
|
462
|
-
destructiveHint: t.optional(t.boolean()),
|
|
463
|
-
/**
|
|
464
|
-
* If true, calling the tool repeatedly with the same arguments
|
|
465
|
-
* will have no additional effect on the its environment.
|
|
466
|
-
*
|
|
467
|
-
* (This property is meaningful only when `readOnlyHint == false`)
|
|
468
|
-
*
|
|
469
|
-
* Default: false
|
|
470
|
-
*/
|
|
471
|
-
idempotentHint: t.optional(t.boolean()),
|
|
472
|
-
/**
|
|
473
|
-
* If true, this tool may interact with an "open world" of external
|
|
474
|
-
* entities. If false, the tool's domain of interaction is closed.
|
|
475
|
-
* For example, the world of a web search tool is open, whereas that
|
|
476
|
-
* of a memory tool is not.
|
|
477
|
-
*
|
|
478
|
-
* Default: true
|
|
479
|
-
*/
|
|
480
|
-
openWorldHint: t.optional(t.boolean())
|
|
481
|
-
}).passthrough(), mt = r.extend({
|
|
482
|
-
/**
|
|
483
|
-
* A human-readable description of the tool.
|
|
484
|
-
*/
|
|
485
|
-
description: t.optional(t.string()),
|
|
486
|
-
/**
|
|
487
|
-
* A JSON Schema object defining the expected parameters for the tool.
|
|
488
|
-
*/
|
|
489
|
-
inputSchema: t.object({
|
|
490
|
-
type: t.literal("object"),
|
|
491
|
-
properties: t.optional(t.object({}).passthrough()),
|
|
492
|
-
required: t.optional(t.array(t.string()))
|
|
493
|
-
}).passthrough(),
|
|
494
|
-
/**
|
|
495
|
-
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
496
|
-
* the structuredContent field of a CallToolResult.
|
|
497
|
-
*/
|
|
498
|
-
outputSchema: t.optional(t.object({
|
|
499
|
-
type: t.literal("object"),
|
|
500
|
-
properties: t.optional(t.object({}).passthrough()),
|
|
501
|
-
required: t.optional(t.array(t.string()))
|
|
502
|
-
}).passthrough()),
|
|
503
|
-
/**
|
|
504
|
-
* Optional additional tool information.
|
|
505
|
-
*/
|
|
506
|
-
annotations: t.optional(lt),
|
|
507
|
-
/**
|
|
508
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
509
|
-
* for notes on _meta usage.
|
|
510
|
-
*/
|
|
511
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
512
|
-
}), pt = m.extend({
|
|
513
|
-
method: t.literal("tools/list")
|
|
514
|
-
}), ht = p.extend({
|
|
515
|
-
tools: t.array(mt)
|
|
516
|
-
}), v = s.extend({
|
|
517
|
-
/**
|
|
518
|
-
* A list of content objects that represent the result of the tool call.
|
|
519
|
-
*
|
|
520
|
-
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
521
|
-
* For backwards compatibility, this field is always present, but it may be empty.
|
|
522
|
-
*/
|
|
523
|
-
content: t.array(I).default([]),
|
|
524
|
-
/**
|
|
525
|
-
* An object containing structured tool output.
|
|
526
|
-
*
|
|
527
|
-
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
528
|
-
*/
|
|
529
|
-
structuredContent: t.object({}).passthrough().optional(),
|
|
530
|
-
/**
|
|
531
|
-
* Whether the tool call ended in an error.
|
|
532
|
-
*
|
|
533
|
-
* If not set, this is assumed to be false (the call was successful).
|
|
534
|
-
*
|
|
535
|
-
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
536
|
-
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
537
|
-
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
538
|
-
* and self-correct.
|
|
539
|
-
*
|
|
540
|
-
* However, any errors in _finding_ the tool, an error indicating that the
|
|
541
|
-
* server does not support tool calls, or any other exceptional conditions,
|
|
542
|
-
* should be reported as an MCP error response.
|
|
543
|
-
*/
|
|
544
|
-
isError: t.optional(t.boolean())
|
|
545
|
-
});
|
|
546
|
-
v.or(s.extend({
|
|
547
|
-
toolResult: t.unknown()
|
|
548
|
-
}));
|
|
549
|
-
const ut = o.extend({
|
|
550
|
-
method: t.literal("tools/call"),
|
|
551
|
-
params: n.extend({
|
|
552
|
-
name: t.string(),
|
|
553
|
-
arguments: t.optional(t.record(t.unknown()))
|
|
554
|
-
})
|
|
555
|
-
}), gt = a.extend({
|
|
556
|
-
method: t.literal("notifications/tools/list_changed")
|
|
557
|
-
}), M = t.enum([
|
|
558
|
-
"debug",
|
|
559
|
-
"info",
|
|
560
|
-
"notice",
|
|
561
|
-
"warning",
|
|
562
|
-
"error",
|
|
563
|
-
"critical",
|
|
564
|
-
"alert",
|
|
565
|
-
"emergency"
|
|
566
|
-
]), dt = o.extend({
|
|
567
|
-
method: t.literal("logging/setLevel"),
|
|
568
|
-
params: n.extend({
|
|
569
|
-
/**
|
|
570
|
-
* The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.
|
|
571
|
-
*/
|
|
572
|
-
level: M
|
|
573
|
-
})
|
|
574
|
-
}), bt = a.extend({
|
|
575
|
-
method: t.literal("notifications/message"),
|
|
576
|
-
params: i.extend({
|
|
577
|
-
/**
|
|
578
|
-
* The severity of this log message.
|
|
579
|
-
*/
|
|
580
|
-
level: M,
|
|
581
|
-
/**
|
|
582
|
-
* An optional name of the logger issuing this message.
|
|
583
|
-
*/
|
|
584
|
-
logger: t.optional(t.string()),
|
|
585
|
-
/**
|
|
586
|
-
* The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
|
|
587
|
-
*/
|
|
588
|
-
data: t.unknown()
|
|
589
|
-
})
|
|
590
|
-
}), St = t.object({
|
|
591
|
-
/**
|
|
592
|
-
* A hint for a model name.
|
|
593
|
-
*/
|
|
594
|
-
name: t.string().optional()
|
|
595
|
-
}).passthrough(), Rt = t.object({
|
|
596
|
-
/**
|
|
597
|
-
* Optional hints to use for model selection.
|
|
598
|
-
*/
|
|
599
|
-
hints: t.optional(t.array(St)),
|
|
600
|
-
/**
|
|
601
|
-
* How much to prioritize cost when selecting a model.
|
|
602
|
-
*/
|
|
603
|
-
costPriority: t.optional(t.number().min(0).max(1)),
|
|
604
|
-
/**
|
|
605
|
-
* How much to prioritize sampling speed (latency) when selecting a model.
|
|
606
|
-
*/
|
|
607
|
-
speedPriority: t.optional(t.number().min(0).max(1)),
|
|
608
|
-
/**
|
|
609
|
-
* How much to prioritize intelligence and capabilities when selecting a model.
|
|
610
|
-
*/
|
|
611
|
-
intelligencePriority: t.optional(t.number().min(0).max(1))
|
|
612
|
-
}).passthrough(), xt = t.object({
|
|
613
|
-
role: t.enum(["user", "assistant"]),
|
|
614
|
-
content: t.union([h, u, g])
|
|
615
|
-
}).passthrough(), jt = o.extend({
|
|
616
|
-
method: t.literal("sampling/createMessage"),
|
|
617
|
-
params: n.extend({
|
|
618
|
-
messages: t.array(xt),
|
|
619
|
-
/**
|
|
620
|
-
* An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
|
|
621
|
-
*/
|
|
622
|
-
systemPrompt: t.optional(t.string()),
|
|
623
|
-
/**
|
|
624
|
-
* A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
|
|
625
|
-
*/
|
|
626
|
-
includeContext: t.optional(t.enum(["none", "thisServer", "allServers"])),
|
|
627
|
-
temperature: t.optional(t.number()),
|
|
628
|
-
/**
|
|
629
|
-
* The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested.
|
|
630
|
-
*/
|
|
631
|
-
maxTokens: t.number().int(),
|
|
632
|
-
stopSequences: t.optional(t.array(t.string())),
|
|
633
|
-
/**
|
|
634
|
-
* Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
|
|
635
|
-
*/
|
|
636
|
-
metadata: t.optional(t.object({}).passthrough()),
|
|
637
|
-
/**
|
|
638
|
-
* The server's preferences for which model to select.
|
|
639
|
-
*/
|
|
640
|
-
modelPreferences: t.optional(Rt)
|
|
641
|
-
})
|
|
642
|
-
}), Pt = s.extend({
|
|
643
|
-
/**
|
|
644
|
-
* The name of the model that generated the message.
|
|
645
|
-
*/
|
|
646
|
-
model: t.string(),
|
|
647
|
-
/**
|
|
648
|
-
* The reason why sampling stopped.
|
|
649
|
-
*/
|
|
650
|
-
stopReason: t.optional(t.enum(["endTurn", "stopSequence", "maxTokens"]).or(t.string())),
|
|
651
|
-
role: t.enum(["user", "assistant"]),
|
|
652
|
-
content: t.discriminatedUnion("type", [
|
|
653
|
-
h,
|
|
654
|
-
u,
|
|
655
|
-
g
|
|
656
|
-
])
|
|
657
|
-
}), yt = t.object({
|
|
658
|
-
type: t.literal("boolean"),
|
|
659
|
-
title: t.optional(t.string()),
|
|
660
|
-
description: t.optional(t.string()),
|
|
661
|
-
default: t.optional(t.boolean())
|
|
662
|
-
}).passthrough(), ft = t.object({
|
|
663
|
-
type: t.literal("string"),
|
|
664
|
-
title: t.optional(t.string()),
|
|
665
|
-
description: t.optional(t.string()),
|
|
666
|
-
minLength: t.optional(t.number()),
|
|
667
|
-
maxLength: t.optional(t.number()),
|
|
668
|
-
format: t.optional(t.enum(["email", "uri", "date", "date-time"]))
|
|
669
|
-
}).passthrough(), Tt = t.object({
|
|
670
|
-
type: t.enum(["number", "integer"]),
|
|
671
|
-
title: t.optional(t.string()),
|
|
672
|
-
description: t.optional(t.string()),
|
|
673
|
-
minimum: t.optional(t.number()),
|
|
674
|
-
maximum: t.optional(t.number())
|
|
675
|
-
}).passthrough(), qt = t.object({
|
|
676
|
-
type: t.literal("string"),
|
|
677
|
-
title: t.optional(t.string()),
|
|
678
|
-
description: t.optional(t.string()),
|
|
679
|
-
enum: t.array(t.string()),
|
|
680
|
-
enumNames: t.optional(t.array(t.string()))
|
|
681
|
-
}).passthrough(), Ct = t.union([
|
|
682
|
-
yt,
|
|
683
|
-
ft,
|
|
684
|
-
Tt,
|
|
685
|
-
qt
|
|
686
|
-
]), Nt = o.extend({
|
|
687
|
-
method: t.literal("elicitation/create"),
|
|
688
|
-
params: n.extend({
|
|
689
|
-
/**
|
|
690
|
-
* The message to present to the user.
|
|
691
|
-
*/
|
|
692
|
-
message: t.string(),
|
|
693
|
-
/**
|
|
694
|
-
* The schema for the requested user input.
|
|
695
|
-
*/
|
|
696
|
-
requestedSchema: t.object({
|
|
697
|
-
type: t.literal("object"),
|
|
698
|
-
properties: t.record(t.string(), Ct),
|
|
699
|
-
required: t.optional(t.array(t.string()))
|
|
700
|
-
}).passthrough()
|
|
701
|
-
})
|
|
702
|
-
}), Lt = s.extend({
|
|
703
|
-
/**
|
|
704
|
-
* The user's response action.
|
|
705
|
-
*/
|
|
706
|
-
action: t.enum(["accept", "reject", "cancel"]),
|
|
707
|
-
/**
|
|
708
|
-
* The collected user input content (only present if action is "accept").
|
|
709
|
-
*/
|
|
710
|
-
content: t.optional(t.record(t.string(), t.unknown()))
|
|
711
|
-
}), _t = t.object({
|
|
712
|
-
type: t.literal("ref/resource"),
|
|
713
|
-
/**
|
|
714
|
-
* The URI or URI template of the resource.
|
|
715
|
-
*/
|
|
716
|
-
uri: t.string()
|
|
717
|
-
}).passthrough(), Ot = t.object({
|
|
718
|
-
type: t.literal("ref/prompt"),
|
|
719
|
-
/**
|
|
720
|
-
* The name of the prompt or prompt template
|
|
721
|
-
*/
|
|
722
|
-
name: t.string()
|
|
723
|
-
}).passthrough(), It = o.extend({
|
|
724
|
-
method: t.literal("completion/complete"),
|
|
725
|
-
params: n.extend({
|
|
726
|
-
ref: t.union([Ot, _t]),
|
|
727
|
-
/**
|
|
728
|
-
* The argument's information
|
|
729
|
-
*/
|
|
730
|
-
argument: t.object({
|
|
731
|
-
/**
|
|
732
|
-
* The name of the argument
|
|
733
|
-
*/
|
|
734
|
-
name: t.string(),
|
|
735
|
-
/**
|
|
736
|
-
* The value of the argument to use for completion matching.
|
|
737
|
-
*/
|
|
738
|
-
value: t.string()
|
|
739
|
-
}).passthrough(),
|
|
740
|
-
context: t.optional(t.object({
|
|
741
|
-
/**
|
|
742
|
-
* Previously-resolved variables in a URI template or prompt.
|
|
743
|
-
*/
|
|
744
|
-
arguments: t.optional(t.record(t.string(), t.string()))
|
|
745
|
-
}))
|
|
746
|
-
})
|
|
747
|
-
}), vt = s.extend({
|
|
748
|
-
completion: t.object({
|
|
749
|
-
/**
|
|
750
|
-
* An array of completion values. Must not exceed 100 items.
|
|
751
|
-
*/
|
|
752
|
-
values: t.array(t.string()).max(100),
|
|
753
|
-
/**
|
|
754
|
-
* The total number of completion options available. This can exceed the number of values actually sent in the response.
|
|
755
|
-
*/
|
|
756
|
-
total: t.optional(t.number().int()),
|
|
757
|
-
/**
|
|
758
|
-
* Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
|
|
759
|
-
*/
|
|
760
|
-
hasMore: t.optional(t.boolean())
|
|
761
|
-
}).passthrough()
|
|
762
|
-
}), Mt = t.object({
|
|
763
|
-
/**
|
|
764
|
-
* The URI identifying the root. This *must* start with file:// for now.
|
|
765
|
-
*/
|
|
766
|
-
uri: t.string().startsWith("file://"),
|
|
767
|
-
/**
|
|
768
|
-
* An optional name for the root.
|
|
769
|
-
*/
|
|
770
|
-
name: t.optional(t.string()),
|
|
771
|
-
/**
|
|
772
|
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
773
|
-
* for notes on _meta usage.
|
|
774
|
-
*/
|
|
775
|
-
_meta: t.optional(t.object({}).passthrough())
|
|
776
|
-
}).passthrough(), kt = o.extend({
|
|
777
|
-
method: t.literal("roots/list")
|
|
778
|
-
}), Jt = s.extend({
|
|
779
|
-
roots: t.array(Mt)
|
|
780
|
-
}), Et = a.extend({
|
|
781
|
-
method: t.literal("notifications/roots/list_changed")
|
|
782
|
-
});
|
|
783
|
-
t.union([
|
|
784
|
-
q,
|
|
785
|
-
T,
|
|
786
|
-
It,
|
|
787
|
-
dt,
|
|
788
|
-
nt,
|
|
789
|
-
et,
|
|
790
|
-
H,
|
|
791
|
-
F,
|
|
792
|
-
W,
|
|
793
|
-
X,
|
|
794
|
-
Y,
|
|
795
|
-
ut,
|
|
796
|
-
pt
|
|
797
|
-
]);
|
|
798
|
-
t.union([
|
|
799
|
-
y,
|
|
800
|
-
C,
|
|
801
|
-
B,
|
|
802
|
-
Et
|
|
803
|
-
]);
|
|
804
|
-
t.union([
|
|
805
|
-
P,
|
|
806
|
-
Pt,
|
|
807
|
-
Lt,
|
|
808
|
-
Jt
|
|
809
|
-
]);
|
|
810
|
-
t.union([
|
|
811
|
-
q,
|
|
812
|
-
jt,
|
|
813
|
-
Nt,
|
|
814
|
-
kt
|
|
815
|
-
]);
|
|
816
|
-
t.union([
|
|
817
|
-
y,
|
|
818
|
-
C,
|
|
819
|
-
bt,
|
|
820
|
-
Z,
|
|
821
|
-
Q,
|
|
822
|
-
gt,
|
|
823
|
-
ct
|
|
824
|
-
]);
|
|
825
|
-
t.union([
|
|
826
|
-
P,
|
|
827
|
-
A,
|
|
828
|
-
vt,
|
|
829
|
-
rt,
|
|
830
|
-
ot,
|
|
831
|
-
U,
|
|
832
|
-
G,
|
|
833
|
-
K,
|
|
834
|
-
v,
|
|
835
|
-
ht
|
|
836
|
-
]);
|
|
837
|
-
export {
|
|
838
|
-
wt as D,
|
|
839
|
-
Ht as J,
|
|
840
|
-
At as S,
|
|
841
|
-
Bt as a,
|
|
842
|
-
Vt as b,
|
|
843
|
-
Dt as c,
|
|
844
|
-
Ut as i
|
|
845
|
-
};
|
|
846
|
-
//# sourceMappingURL=types-DdsPVLQ5.js.map
|