@run402/sdk 4.154.1 → 4.155.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/README.md +13 -1
- package/dist/function-tools.d.ts +119 -0
- package/dist/function-tools.d.ts.map +1 -0
- package/dist/function-tools.js +280 -0
- package/dist/function-tools.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/namespaces/auth.d.ts +16 -1
- package/dist/namespaces/auth.d.ts.map +1 -1
- package/dist/namespaces/auth.js.map +1 -1
- package/dist/namespaces/buzz.d.ts +4 -2
- package/dist/namespaces/buzz.d.ts.map +1 -1
- package/dist/namespaces/buzz.js +4 -2
- package/dist/namespaces/buzz.js.map +1 -1
- package/dist/namespaces/deploy.d.ts.map +1 -1
- package/dist/namespaces/deploy.js +127 -5
- package/dist/namespaces/deploy.js.map +1 -1
- package/dist/namespaces/deploy.types.d.ts +80 -22
- package/dist/namespaces/deploy.types.d.ts.map +1 -1
- package/dist/namespaces/deploy.types.js +2 -0
- package/dist/namespaces/deploy.types.js.map +1 -1
- package/dist/namespaces/functions.d.ts.map +1 -1
- package/dist/namespaces/functions.js +4 -0
- package/dist/namespaces/functions.js.map +1 -1
- package/dist/namespaces/functions.types.d.ts +8 -1
- package/dist/namespaces/functions.types.d.ts.map +1 -1
- package/dist/namespaces/org.d.ts +1 -1
- package/dist/namespaces/org.js +1 -1
- package/dist/namespaces/org.types.d.ts +1 -1
- package/dist/namespaces/repos.d.ts +12 -12
- package/dist/namespaces/repos.d.ts.map +1 -1
- package/dist/namespaces/repos.js +9 -9
- package/dist/namespaces/repos.js.map +1 -1
- package/dist/namespaces/vault.crypto.js +2 -2
- package/dist/namespaces/vault.crypto.js.map +1 -1
- package/dist/node/deploy-manifest.d.ts.map +1 -1
- package/dist/node/deploy-manifest.js +9 -0
- package/dist/node/deploy-manifest.js.map +1 -1
- package/dist/node/index.d.ts +4 -2
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +13 -2
- package/dist/node/index.js.map +1 -1
- package/dist/node/tool-declarations.d.ts +88 -0
- package/dist/node/tool-declarations.d.ts.map +1 -0
- package/dist/node/tool-declarations.js +587 -0
- package/dist/node/tool-declarations.js.map +1 -0
- package/dist/node/vault-address.d.ts +2 -2
- package/dist/node/vault-address.js +2 -2
- package/dist/node/vault-address.js.map +1 -1
- package/dist/node/vault-keystore.d.ts +6 -6
- package/dist/node/vault-keystore.d.ts.map +1 -1
- package/dist/node/vault-keystore.js +5 -5
- package/dist/node/vault-keystore.js.map +1 -1
- package/dist/node/vault-member-bundle.js +1 -1
- package/dist/node/vault-member-bundle.js.map +1 -1
- package/dist/node/vault-prewarm.d.ts +23 -2
- package/dist/node/vault-prewarm.d.ts.map +1 -1
- package/dist/node/vault-prewarm.js +34 -2
- package/dist/node/vault-prewarm.js.map +1 -1
- package/dist/node/vault-publication.d.ts +13 -13
- package/dist/node/vault-publication.d.ts.map +1 -1
- package/dist/node/vault-publication.js +19 -20
- package/dist/node/vault-publication.js.map +1 -1
- package/dist/secret-gate.js +1 -1
- package/dist/secret-gate.js.map +1 -1
- package/dist/type-contract.d.ts.map +1 -1
- package/dist/type-contract.js +6 -0
- package/dist/type-contract.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tool-declaration extractor: source in, declarations out.
|
|
3
|
+
*
|
|
4
|
+
* A function file or an Astro endpoint file declares MCP tools beside its
|
|
5
|
+
* handler with `export const tool = { … }` (one) or
|
|
6
|
+
* `export const tools = { name: { … }, … }` (several), as static literals.
|
|
7
|
+
* This module reads that export by PARSING the file. It never imports,
|
|
8
|
+
* evaluates or runs the source, so a file whose top level throws, reads
|
|
9
|
+
* secrets or opens sockets is read exactly like any other.
|
|
10
|
+
*
|
|
11
|
+
* It is the only extractor: `@run402/sdk/node` calls it for every function
|
|
12
|
+
* source a deploy reads, and `@run402/astro` calls it for every
|
|
13
|
+
* server-rendered endpoint file at build. The gateway reads no source.
|
|
14
|
+
*
|
|
15
|
+
* How a file is read:
|
|
16
|
+
*
|
|
17
|
+
* 1. As JavaScript, with acorn. A plain or bundled file parses here.
|
|
18
|
+
* 2. Otherwise types are erased with `module.stripTypeScriptTypes` in strip
|
|
19
|
+
* mode, which replaces them with spaces, so every line stays where it
|
|
20
|
+
* was and a reported line is exact.
|
|
21
|
+
* 3. A file with syntax that cannot be erased (an `enum`) is read in
|
|
22
|
+
* transform mode, where lines move, so its refusals carry no line.
|
|
23
|
+
*
|
|
24
|
+
* The export's initializer is then evaluated as a JSON-literal subset: object,
|
|
25
|
+
* array, string, number, boolean and null literals only. An identifier, a
|
|
26
|
+
* call, a spread, a computed key or a template substitution is
|
|
27
|
+
* `MCP_TOOL_NOT_STATIC`.
|
|
28
|
+
*/
|
|
29
|
+
import * as nodeModule from "node:module";
|
|
30
|
+
import { parse as parseJs } from "acorn";
|
|
31
|
+
import { checkFunctionToolEntry, isValidMcpToolName, toolDeclarationError, } from "../function-tools.js";
|
|
32
|
+
import { FUNCTION_TOOL_METHODS } from "../namespaces/deploy.types.js";
|
|
33
|
+
/** Thrown and caught inside this module only. */
|
|
34
|
+
class Refusal extends Error {
|
|
35
|
+
code;
|
|
36
|
+
fieldPath;
|
|
37
|
+
node;
|
|
38
|
+
tool;
|
|
39
|
+
constructor(code, fieldPath, message, node, tool) {
|
|
40
|
+
super(message);
|
|
41
|
+
this.code = code;
|
|
42
|
+
this.fieldPath = fieldPath;
|
|
43
|
+
this.node = node;
|
|
44
|
+
this.tool = tool;
|
|
45
|
+
}
|
|
46
|
+
/** A refusal already described as data, at the node it is about. */
|
|
47
|
+
static at(node, problem, tool) {
|
|
48
|
+
return new Refusal(problem.code, problem.field_path, problem.message, node, tool);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const ENDPOINT_HANDLERS = new Set([...FUNCTION_TOOL_METHODS, "ALL"]);
|
|
52
|
+
// ─── reading the file ────────────────────────────────────────────────────────
|
|
53
|
+
/**
|
|
54
|
+
* Cheap pre-check so the common case (no tool export) never pays for a
|
|
55
|
+
* parse. A false positive costs only the parse.
|
|
56
|
+
*/
|
|
57
|
+
function mayDeclareTools(source) {
|
|
58
|
+
return /\bexport\b/.test(source) && /\btools?\b/.test(source);
|
|
59
|
+
}
|
|
60
|
+
/** Whether an unparseable file still plainly exports `tool` or `tools`. */
|
|
61
|
+
function plainlyExportsTools(source) {
|
|
62
|
+
const declared = /\bexport\s+(?:declare\s+)?(?:const|let|var)\s+(tools?)\b/.exec(source);
|
|
63
|
+
if (declared)
|
|
64
|
+
return declared[1];
|
|
65
|
+
const clause = /\bexport\s*\{[^}]*?\b(?:as\s+)?(tools?)\s*[,}]/.exec(source);
|
|
66
|
+
return clause ? clause[1] : null;
|
|
67
|
+
}
|
|
68
|
+
function parseModule(source) {
|
|
69
|
+
return parseJs(source, { ecmaVersion: "latest", sourceType: "module", allowHashBang: true, locations: true });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* `stripTypeScriptTypes` announces itself with a one-time ExperimentalWarning
|
|
73
|
+
* on stderr. Drop exactly that warning for the duration of the call; every
|
|
74
|
+
* other warning still reaches the process.
|
|
75
|
+
*/
|
|
76
|
+
function stripTypesQuietly(strip, source, mode) {
|
|
77
|
+
const emit = process.emitWarning;
|
|
78
|
+
process.emitWarning = function quietStripWarning(warning, ...rest) {
|
|
79
|
+
const type = typeof rest[0] === "string" ? rest[0] : rest[0]?.type;
|
|
80
|
+
const message = typeof warning === "string" ? warning : warning?.message ?? "";
|
|
81
|
+
const name = typeof warning === "string" ? undefined : warning?.name;
|
|
82
|
+
if ((type === "ExperimentalWarning" || name === "ExperimentalWarning") && /stripTypeScriptTypes|type strip/i.test(message))
|
|
83
|
+
return;
|
|
84
|
+
return emit.call(process, warning, ...rest);
|
|
85
|
+
};
|
|
86
|
+
try {
|
|
87
|
+
return strip(source, { mode });
|
|
88
|
+
}
|
|
89
|
+
finally {
|
|
90
|
+
process.emitWarning = emit;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function firstLine(err) {
|
|
94
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
95
|
+
return message.split("\n")[0].replace(/\s*\(\d+:\d+\)$/, "");
|
|
96
|
+
}
|
|
97
|
+
function readFile(source) {
|
|
98
|
+
let jsError;
|
|
99
|
+
try {
|
|
100
|
+
return { program: parseModule(source), exactLines: true };
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
jsError = err;
|
|
104
|
+
}
|
|
105
|
+
const strip = nodeModule.stripTypeScriptTypes;
|
|
106
|
+
if (typeof strip !== "function") {
|
|
107
|
+
return { unreadable: `${firstLine(jsError)}; this Node (${process.version}) cannot erase TypeScript types, so use Node 22.13 or later` };
|
|
108
|
+
}
|
|
109
|
+
let stripped;
|
|
110
|
+
let exactLines = true;
|
|
111
|
+
try {
|
|
112
|
+
stripped = stripTypesQuietly(strip, source, "strip");
|
|
113
|
+
}
|
|
114
|
+
catch (err) {
|
|
115
|
+
if (err.code !== "ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX")
|
|
116
|
+
return { unreadable: firstLine(err) };
|
|
117
|
+
try {
|
|
118
|
+
stripped = stripTypesQuietly(strip, source, "transform");
|
|
119
|
+
exactLines = false;
|
|
120
|
+
}
|
|
121
|
+
catch (transformErr) {
|
|
122
|
+
return { unreadable: firstLine(transformErr) };
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
try {
|
|
126
|
+
return { program: parseModule(stripped), exactLines };
|
|
127
|
+
}
|
|
128
|
+
catch (err) {
|
|
129
|
+
return { unreadable: firstLine(err) };
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/** True when the module assigns to `name` anywhere (`=`, `+=`, `++`, destructuring, `for (name of …)`). */
|
|
133
|
+
function isReassigned(program, name) {
|
|
134
|
+
const targets = (node) => {
|
|
135
|
+
if (!node)
|
|
136
|
+
return false;
|
|
137
|
+
switch (node.type) {
|
|
138
|
+
case "Identifier": return node.name === name;
|
|
139
|
+
case "ArrayPattern": return node.elements.some(targets);
|
|
140
|
+
case "ObjectPattern": return node.properties.some((p) => targets(p.type === "RestElement" ? p : p.value));
|
|
141
|
+
case "RestElement": return targets(node.argument);
|
|
142
|
+
case "AssignmentPattern": return targets(node.left);
|
|
143
|
+
default: return false;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
const visit = (node) => {
|
|
147
|
+
if (Array.isArray(node))
|
|
148
|
+
return node.some(visit);
|
|
149
|
+
if (!node || typeof node !== "object" || typeof node.type !== "string")
|
|
150
|
+
return false;
|
|
151
|
+
const n = node;
|
|
152
|
+
if (n.type === "AssignmentExpression" && targets(n.left))
|
|
153
|
+
return true;
|
|
154
|
+
if (n.type === "UpdateExpression" && targets(n.argument))
|
|
155
|
+
return true;
|
|
156
|
+
if ((n.type === "ForInStatement" || n.type === "ForOfStatement") && n.left.type !== "VariableDeclaration" && targets(n.left))
|
|
157
|
+
return true;
|
|
158
|
+
return Object.entries(n).some(([key, value]) => key !== "type" && key !== "loc" && typeof value === "object" && visit(value));
|
|
159
|
+
};
|
|
160
|
+
return visit(program.body);
|
|
161
|
+
}
|
|
162
|
+
/** Names a binding pattern introduces (`{ a, b: [c] }` → a, c). */
|
|
163
|
+
function patternNames(pattern, out = []) {
|
|
164
|
+
if (!pattern)
|
|
165
|
+
return out;
|
|
166
|
+
switch (pattern.type) {
|
|
167
|
+
case "Identifier":
|
|
168
|
+
out.push(pattern.name);
|
|
169
|
+
break;
|
|
170
|
+
case "ObjectPattern":
|
|
171
|
+
for (const p of pattern.properties)
|
|
172
|
+
patternNames(p.type === "RestElement" ? p.argument : p.value, out);
|
|
173
|
+
break;
|
|
174
|
+
case "ArrayPattern":
|
|
175
|
+
for (const el of pattern.elements)
|
|
176
|
+
patternNames(el, out);
|
|
177
|
+
break;
|
|
178
|
+
case "RestElement":
|
|
179
|
+
patternNames(pattern.argument, out);
|
|
180
|
+
break;
|
|
181
|
+
case "AssignmentPattern":
|
|
182
|
+
patternNames(pattern.left, out);
|
|
183
|
+
break;
|
|
184
|
+
default: break;
|
|
185
|
+
}
|
|
186
|
+
return out;
|
|
187
|
+
}
|
|
188
|
+
function specifierName(node) {
|
|
189
|
+
return node.type === "Identifier" ? node.name : String(node.value);
|
|
190
|
+
}
|
|
191
|
+
const writeInline = (name) => `Write it in this file as \`export const ${name} = { … }\` with literal values.`;
|
|
192
|
+
/**
|
|
193
|
+
* Walk the module's top level for its exported names and for the `tool` and
|
|
194
|
+
* `tools` exports. A bundle writes `var t = {…}; export { t as tools }`, so an
|
|
195
|
+
* export specifier is followed to its local top-level binding; a `let` or
|
|
196
|
+
* `var` binding counts only when the module never reassigns it.
|
|
197
|
+
*/
|
|
198
|
+
function moduleExports(program) {
|
|
199
|
+
const out = { names: new Set() };
|
|
200
|
+
const locals = new Map();
|
|
201
|
+
for (const stmt of program.body) {
|
|
202
|
+
const decl = stmt.type === "ExportNamedDeclaration" && stmt.declaration ? stmt.declaration : stmt;
|
|
203
|
+
if (decl.type !== "VariableDeclaration")
|
|
204
|
+
continue;
|
|
205
|
+
for (const d of decl.declarations) {
|
|
206
|
+
if (d.id.type === "Identifier")
|
|
207
|
+
locals.set(d.id.name, { kind: decl.kind, init: d.init, node: d });
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
const record = (name, declared) => {
|
|
211
|
+
out.names.add(name);
|
|
212
|
+
if ((name === "tool" || name === "tools") && out[name] === undefined)
|
|
213
|
+
out[name] = declared;
|
|
214
|
+
};
|
|
215
|
+
const fromLocal = (exported, localName, node) => {
|
|
216
|
+
const local = locals.get(localName);
|
|
217
|
+
if (!local) {
|
|
218
|
+
return { init: null, node, why: `\`${exported}\` is not a literal declared in this file. ${writeInline(exported)}` };
|
|
219
|
+
}
|
|
220
|
+
if (local.kind !== "const" && isReassigned(program, localName)) {
|
|
221
|
+
return { init: null, node, why: `\`${exported}\` is reassigned, so its value cannot be read without running the file. Declare it once with \`const\`.` };
|
|
222
|
+
}
|
|
223
|
+
if (!local.init) {
|
|
224
|
+
return { init: null, node, why: `\`${exported}\` has no value. ${writeInline(exported)}` };
|
|
225
|
+
}
|
|
226
|
+
return { init: local.init, node: local.node };
|
|
227
|
+
};
|
|
228
|
+
for (const stmt of program.body) {
|
|
229
|
+
if (stmt.type === "ExportAllDeclaration") {
|
|
230
|
+
if (stmt.exported) {
|
|
231
|
+
const name = specifierName(stmt.exported);
|
|
232
|
+
record(name, { init: null, node: stmt, why: `\`${name}\` is re-exported from another module, which is not read. ${writeInline(name)}` });
|
|
233
|
+
}
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
if (stmt.type !== "ExportNamedDeclaration")
|
|
237
|
+
continue;
|
|
238
|
+
if (stmt.declaration) {
|
|
239
|
+
const decl = stmt.declaration;
|
|
240
|
+
if (decl.type === "VariableDeclaration") {
|
|
241
|
+
for (const d of decl.declarations) {
|
|
242
|
+
if (d.id.type === "Identifier") {
|
|
243
|
+
record(d.id.name, fromLocal(d.id.name, d.id.name, d));
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
for (const name of patternNames(d.id)) {
|
|
247
|
+
record(name, { init: null, node: d, why: `\`${name}\` is destructured from another value. ${writeInline(name)}` });
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
else if (decl.id?.name) {
|
|
253
|
+
const kind = decl.type === "ClassDeclaration" ? "a class" : "a function";
|
|
254
|
+
record(decl.id.name, { init: null, node: decl, why: `\`${decl.id.name}\` is ${kind}; a tool declaration is an object literal. ${writeInline(decl.id.name)}` });
|
|
255
|
+
}
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
for (const spec of stmt.specifiers) {
|
|
259
|
+
const exported = specifierName(spec.exported);
|
|
260
|
+
if (stmt.source) {
|
|
261
|
+
record(exported, { init: null, node: spec, why: `\`${exported}\` is re-exported from another module, which is not read. ${writeInline(exported)}` });
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
record(exported, fromLocal(exported, specifierName(spec.local), spec));
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return out;
|
|
269
|
+
}
|
|
270
|
+
// ─── evaluating the literal ──────────────────────────────────────────────────
|
|
271
|
+
function joinPath(base, key) {
|
|
272
|
+
return typeof key === "number" ? `${base}[${key}]` : `${base}.${key}`;
|
|
273
|
+
}
|
|
274
|
+
function propertyKey(prop, path) {
|
|
275
|
+
if (prop.type === "SpreadElement")
|
|
276
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", path, "A spread (`...`) is not allowed in a tool declaration; write the fields inline.", prop);
|
|
277
|
+
if (prop.computed)
|
|
278
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", path, "A computed key (`[key]: …`) is not allowed in a tool declaration; write the key itself.", prop);
|
|
279
|
+
if (prop.kind !== "init" || prop.method)
|
|
280
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", path, "A getter, setter or method is not allowed in a tool declaration; every field is a literal value.", prop);
|
|
281
|
+
if (prop.key.type === "Identifier")
|
|
282
|
+
return prop.key.name;
|
|
283
|
+
if (prop.key.type === "Literal" && (typeof prop.key.value === "string" || typeof prop.key.value === "number"))
|
|
284
|
+
return String(prop.key.value);
|
|
285
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", path, "An object key must be an identifier or a string.", prop);
|
|
286
|
+
}
|
|
287
|
+
/** Evaluate a JSON-literal subset of an ESTree expression, recording the line of every value by path. */
|
|
288
|
+
function literalValue(node, path, lines) {
|
|
289
|
+
lines.set(path, node);
|
|
290
|
+
const notStatic = (message) => new Refusal("MCP_TOOL_NOT_STATIC", path, message, node);
|
|
291
|
+
switch (node.type) {
|
|
292
|
+
case "Literal": {
|
|
293
|
+
if (node.regex)
|
|
294
|
+
throw notStatic("A regular expression is not a JSON value; write the pattern as a string.");
|
|
295
|
+
if (typeof node.value === "bigint" || node.bigint !== undefined)
|
|
296
|
+
throw notStatic("A BigInt is not a JSON value; write a number.");
|
|
297
|
+
return node.value;
|
|
298
|
+
}
|
|
299
|
+
case "TemplateLiteral": {
|
|
300
|
+
if (node.expressions.length > 0)
|
|
301
|
+
throw notStatic("A template literal with a `${…}` substitution is not static; write the whole string.");
|
|
302
|
+
return node.quasis.map((quasi) => quasi.value.cooked).join("");
|
|
303
|
+
}
|
|
304
|
+
case "UnaryExpression": {
|
|
305
|
+
const arg = node.argument;
|
|
306
|
+
if (node.operator === "-" && arg.type === "Literal" && typeof arg.value === "number")
|
|
307
|
+
return -arg.value;
|
|
308
|
+
// A minifier writes `true` as `!0` and `false` as `!1`.
|
|
309
|
+
if (node.operator === "!" && arg.type === "Literal" && (arg.value === 0 || arg.value === 1))
|
|
310
|
+
return arg.value === 0;
|
|
311
|
+
throw notStatic(`The operator \`${node.operator}\` is not allowed in a tool declaration; write the value itself.`);
|
|
312
|
+
}
|
|
313
|
+
case "ArrayExpression": {
|
|
314
|
+
return node.elements.map((element, index) => {
|
|
315
|
+
const at = joinPath(path, index);
|
|
316
|
+
if (element === null)
|
|
317
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", at, "An array hole is not a JSON value.", node);
|
|
318
|
+
if (element.type === "SpreadElement")
|
|
319
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", at, "A spread (`...`) is not allowed in a tool declaration; write the items inline.", element);
|
|
320
|
+
return literalValue(element, at, lines);
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
case "ObjectExpression": {
|
|
324
|
+
const out = {};
|
|
325
|
+
for (const prop of node.properties) {
|
|
326
|
+
const key = propertyKey(prop, path);
|
|
327
|
+
const at = joinPath(path, key);
|
|
328
|
+
if (prop.shorthand)
|
|
329
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", at, `\`${key}\` refers to a variable; write the value inline.`, prop);
|
|
330
|
+
if (key === "__proto__")
|
|
331
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", at, "`__proto__` is not allowed in a tool declaration.", prop);
|
|
332
|
+
out[key] = literalValue(prop.value, at, lines);
|
|
333
|
+
}
|
|
334
|
+
return out;
|
|
335
|
+
}
|
|
336
|
+
case "Identifier": {
|
|
337
|
+
if (node.name === "undefined")
|
|
338
|
+
throw notStatic("`undefined` is not a JSON value; leave the field out.");
|
|
339
|
+
throw notStatic(`\`${node.name}\` refers to a variable; write the value inline.`);
|
|
340
|
+
}
|
|
341
|
+
case "CallExpression":
|
|
342
|
+
case "NewExpression":
|
|
343
|
+
throw notStatic("A function call is not static; write the value inline.");
|
|
344
|
+
default:
|
|
345
|
+
throw notStatic(`A ${node.type} is not a static value; a tool declaration holds only object, array, string, number, boolean and null literals.`);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/** The node recorded for `path`, or for its nearest recorded ancestor. */
|
|
349
|
+
function nodeAt(lines, path) {
|
|
350
|
+
let at = path;
|
|
351
|
+
for (;;) {
|
|
352
|
+
const node = lines.get(at);
|
|
353
|
+
if (node)
|
|
354
|
+
return node;
|
|
355
|
+
const cut = Math.max(at.lastIndexOf("."), at.lastIndexOf("["));
|
|
356
|
+
if (cut <= 0)
|
|
357
|
+
return undefined;
|
|
358
|
+
at = at.slice(0, cut);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
// ─── an endpoint's request ───────────────────────────────────────────────────
|
|
362
|
+
/**
|
|
363
|
+
* An Astro route as a tool path: `[param]` becomes `{param}`, and the
|
|
364
|
+
* project's `base` is applied. A rest segment (`[...rest]`) or a parameter
|
|
365
|
+
* that is only part of a segment (`post-[id]`) has no tool path.
|
|
366
|
+
*/
|
|
367
|
+
export function endpointToolPath(route, opts = {}) {
|
|
368
|
+
const params = [];
|
|
369
|
+
const parts = [];
|
|
370
|
+
for (const segment of route.split("/")) {
|
|
371
|
+
if (segment === "")
|
|
372
|
+
continue;
|
|
373
|
+
const whole = /^\[([^[\]]+)\]$/.exec(segment);
|
|
374
|
+
if (whole && !whole[1].startsWith("...")) {
|
|
375
|
+
params.push(whole[1]);
|
|
376
|
+
parts.push(`{${whole[1]}}`);
|
|
377
|
+
}
|
|
378
|
+
else if (/[[\]]/.test(segment)) {
|
|
379
|
+
return { ok: false, segment };
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
parts.push(segment);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
const base = (opts.base ?? "/").replace(/\/+$/, "");
|
|
386
|
+
const prefix = base === "" || base.startsWith("/") ? base : `/${base}`;
|
|
387
|
+
let path = `${prefix}${parts.length > 0 ? `/${parts.join("/")}` : ""}`;
|
|
388
|
+
if (path === "")
|
|
389
|
+
path = "/";
|
|
390
|
+
if (opts.trailingSlash && !path.endsWith("/") && !/\.[^/.]+$/.test(path))
|
|
391
|
+
path += "/";
|
|
392
|
+
return { ok: true, path, params };
|
|
393
|
+
}
|
|
394
|
+
function endpointMethod(stated, handlers, fieldPath, tool, node) {
|
|
395
|
+
const exported = handlers.filter((name) => name !== "ALL");
|
|
396
|
+
const answersAll = handlers.includes("ALL");
|
|
397
|
+
const list = handlers.length > 0 ? handlers.join(", ") : "none";
|
|
398
|
+
const at = `${fieldPath}.method`;
|
|
399
|
+
if (stated !== undefined) {
|
|
400
|
+
if (exported.includes(stated) || answersAll)
|
|
401
|
+
return stated;
|
|
402
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", at, `\`method\` is "${stated}", but this file exports no \`${stated}\` handler (it exports: ${list}). Name a handler the file exports, or add \`export const ${stated}\`.`, node, tool);
|
|
403
|
+
}
|
|
404
|
+
if (exported.length === 1 && !answersAll)
|
|
405
|
+
return exported[0];
|
|
406
|
+
if (handlers.length === 0) {
|
|
407
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", at, `This file exports no ${FUNCTION_TOOL_METHODS.join(", ")} or ALL handler, so the tool has no request to make. Export the handler the tool calls.`, node, tool);
|
|
408
|
+
}
|
|
409
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", at, `State \`method\`: this file exports ${list}, so the tool's request is ambiguous.`, node, tool);
|
|
410
|
+
}
|
|
411
|
+
// ─── the extractor ───────────────────────────────────────────────────────────
|
|
412
|
+
function declarations(program, endpoint) {
|
|
413
|
+
const exports = moduleExports(program);
|
|
414
|
+
const { tool, tools } = exports;
|
|
415
|
+
if (!tool && !tools)
|
|
416
|
+
return [];
|
|
417
|
+
if (tool && tools) {
|
|
418
|
+
const second = tools.node.start > tool.node.start ? "tools" : "tool";
|
|
419
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", second, "A file exports `tool` (one declaration) or `tools` (several, by name), never both. Move the single declaration into `tools`.", exports[second].node);
|
|
420
|
+
}
|
|
421
|
+
const exportName = tool ? "tool" : "tools";
|
|
422
|
+
const declared = (tool ?? tools);
|
|
423
|
+
let pathParams;
|
|
424
|
+
let endpointPath;
|
|
425
|
+
let handlers = [];
|
|
426
|
+
if (endpoint) {
|
|
427
|
+
if (endpoint.prerendered) {
|
|
428
|
+
throw Refusal.at(declared.node, {
|
|
429
|
+
code: "MCP_TOOL_ROUTE_ELSEWHERE",
|
|
430
|
+
field_path: exportName,
|
|
431
|
+
message: `This endpoint is prerendered, so a static file answers \`${endpoint.route}\` and a tool call would never reach the handler. Add \`export const prerender = false\` to serve it on request, or remove the tool.`,
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
const converted = endpointToolPath(endpoint.route, endpoint);
|
|
435
|
+
if (!converted.ok) {
|
|
436
|
+
throw Refusal.at(declared.node, {
|
|
437
|
+
code: "MCP_TOOL_PATH_UNSUPPORTED",
|
|
438
|
+
field_path: exportName,
|
|
439
|
+
message: `The route \`${endpoint.route}\` has the segment \`${converted.segment}\`, which cannot be a tool's path: a tool names one request, so a parameter stands for one whole segment and a rest segment is not allowed. Declare the tool on an endpoint whose route has only \`[param]\` segments.`,
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
endpointPath = converted.path;
|
|
443
|
+
pathParams = converted.params;
|
|
444
|
+
handlers = [...ENDPOINT_HANDLERS].filter((name) => exports.names.has(name));
|
|
445
|
+
}
|
|
446
|
+
if (!declared.init)
|
|
447
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", exportName, declared.why ?? `\`${exportName}\` must be a literal object.`, declared.node);
|
|
448
|
+
const lines = new Map();
|
|
449
|
+
const finish = (value, fieldPath, name) => {
|
|
450
|
+
const entry = value;
|
|
451
|
+
if (endpoint && entry && typeof entry === "object" && !Array.isArray(entry) && "path" in entry) {
|
|
452
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", `${fieldPath}.path`, `\`path\` is never written in an endpoint file: the tool's path is the endpoint's own route (\`${endpointPath}\`). Remove \`path\`.`, nodeAt(lines, `${fieldPath}.path`), name);
|
|
453
|
+
}
|
|
454
|
+
const checked = checkFunctionToolEntry(value, fieldPath, pathParams ? { pathParams } : {});
|
|
455
|
+
if (!checked.ok)
|
|
456
|
+
throw Refusal.at(nodeAt(lines, checked.problem.field_path) ?? declared.node, checked.problem, name);
|
|
457
|
+
const { name: ownName, ...rest } = checked.tool;
|
|
458
|
+
const toolName = name ?? ownName;
|
|
459
|
+
if (!endpoint)
|
|
460
|
+
return { ...(toolName !== undefined ? { name: toolName } : {}), ...rest };
|
|
461
|
+
if (toolName === undefined) {
|
|
462
|
+
throw new Refusal("MCP_TOOL_NAME_INVALID", `${fieldPath}.name`, "An endpoint's `tool` must state its `name` (a file's route is not a tool name). Add `name: \"…\"`, or use `tools = { name: { … } }`.", nodeAt(lines, fieldPath));
|
|
463
|
+
}
|
|
464
|
+
const method = endpointMethod(rest.method, handlers, fieldPath, toolName, nodeAt(lines, `${fieldPath}.method`) ?? nodeAt(lines, fieldPath));
|
|
465
|
+
return {
|
|
466
|
+
name: toolName,
|
|
467
|
+
...(rest.title !== undefined ? { title: rest.title } : {}),
|
|
468
|
+
description: rest.description,
|
|
469
|
+
input: rest.input,
|
|
470
|
+
...(rest.annotations !== undefined ? { annotations: rest.annotations } : {}),
|
|
471
|
+
method,
|
|
472
|
+
path: endpointPath,
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
if (exportName === "tool") {
|
|
476
|
+
return [finish(literalValue(declared.init, "tool", lines), "tool", undefined)];
|
|
477
|
+
}
|
|
478
|
+
if (declared.init.type === "ArrayExpression") {
|
|
479
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", "tools", "`tools` must be an object whose keys are the tool names: `export const tools = { list_notes: { … } }`.", declared.init);
|
|
480
|
+
}
|
|
481
|
+
if (declared.init.type !== "ObjectExpression") {
|
|
482
|
+
// Reports the variable, call or other form the same way a field would.
|
|
483
|
+
literalValue(declared.init, "tools", lines);
|
|
484
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", "tools", "`tools` must be an object whose keys are the tool names.", declared.init);
|
|
485
|
+
}
|
|
486
|
+
const out = [];
|
|
487
|
+
const seen = new Set();
|
|
488
|
+
lines.set("tools", declared.init);
|
|
489
|
+
for (const prop of declared.init.properties) {
|
|
490
|
+
const name = propertyKey(prop, "tools");
|
|
491
|
+
const fieldPath = `tools.${name}`;
|
|
492
|
+
if (!isValidMcpToolName(name)) {
|
|
493
|
+
throw new Refusal("MCP_TOOL_NAME_INVALID", fieldPath, `\`${name}\` is not a valid MCP tool name: 1 to 128 of A-Z, a-z, 0-9, \`_\`, \`-\` and \`.\`.`, prop, name);
|
|
494
|
+
}
|
|
495
|
+
if (seen.has(name)) {
|
|
496
|
+
throw new Refusal("MCP_TOOL_NAME_DUPLICATE", fieldPath, `\`tools\` names \`${name}\` twice. A tool name is unique in a release.`, prop, name);
|
|
497
|
+
}
|
|
498
|
+
seen.add(name);
|
|
499
|
+
if (prop.shorthand)
|
|
500
|
+
throw new Refusal("MCP_TOOL_NOT_STATIC", fieldPath, `\`${name}\` refers to a variable; write the declaration inline.`, prop, name);
|
|
501
|
+
let value;
|
|
502
|
+
try {
|
|
503
|
+
value = literalValue(prop.value, fieldPath, lines);
|
|
504
|
+
}
|
|
505
|
+
catch (err) {
|
|
506
|
+
if (err instanceof Refusal && err.tool === undefined)
|
|
507
|
+
throw new Refusal(err.code, err.fieldPath, err.message, err.node, name);
|
|
508
|
+
throw err;
|
|
509
|
+
}
|
|
510
|
+
if (value !== null && typeof value === "object" && !Array.isArray(value) && "name" in value) {
|
|
511
|
+
throw new Refusal("MCP_TOOL_SCHEMA_INVALID", `${fieldPath}.name`, `Under \`tools\` the key is the tool's name; remove \`name\` from \`${name}\`.`, nodeAt(lines, `${fieldPath}.name`), name);
|
|
512
|
+
}
|
|
513
|
+
out.push(finish(value, fieldPath, name));
|
|
514
|
+
}
|
|
515
|
+
return out;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Read the tools a source file declares, by parsing it. Returns the
|
|
519
|
+
* declarations as release entries (`[]` when the file declares none), or the
|
|
520
|
+
* one refusal an author has to fix, with its code, file, exact line when
|
|
521
|
+
* there is one, and field path.
|
|
522
|
+
*
|
|
523
|
+
* A function's entry file: a single `tool` is one entry with the fields as
|
|
524
|
+
* written; `tools` is one entry per key, the key as `name`. An Astro endpoint
|
|
525
|
+
* file (`options.endpoint`): every entry carries `name`, `method` (the one
|
|
526
|
+
* handler the file exports unless stated) and `path` (the endpoint's route).
|
|
527
|
+
*/
|
|
528
|
+
export function extractToolDeclarations(source, options = {}) {
|
|
529
|
+
const file = options.file ?? null;
|
|
530
|
+
if (!mayDeclareTools(source))
|
|
531
|
+
return { ok: true, tools: [] };
|
|
532
|
+
const parsed = readFile(source);
|
|
533
|
+
if ("unreadable" in parsed) {
|
|
534
|
+
const exported = plainlyExportsTools(source);
|
|
535
|
+
if (exported === null)
|
|
536
|
+
return { ok: true, tools: [] };
|
|
537
|
+
return {
|
|
538
|
+
ok: false,
|
|
539
|
+
problem: {
|
|
540
|
+
code: "MCP_TOOL_NOT_STATIC",
|
|
541
|
+
message: `This file could not be parsed (${parsed.unreadable}), so its \`${exported}\` export cannot be read without running it. Keep the declaration in a plain JavaScript or TypeScript file: move JSX, decorators or other compiled syntax into a module this file imports.`,
|
|
542
|
+
file,
|
|
543
|
+
field_path: exported,
|
|
544
|
+
},
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
try {
|
|
548
|
+
return { ok: true, tools: declarations(parsed.program, options.endpoint) };
|
|
549
|
+
}
|
|
550
|
+
catch (err) {
|
|
551
|
+
if (!(err instanceof Refusal))
|
|
552
|
+
throw err;
|
|
553
|
+
const line = parsed.exactLines ? err.node?.loc?.start.line : undefined;
|
|
554
|
+
return {
|
|
555
|
+
ok: false,
|
|
556
|
+
problem: {
|
|
557
|
+
code: err.code,
|
|
558
|
+
message: err.message,
|
|
559
|
+
file,
|
|
560
|
+
...(line !== undefined ? { line } : {}),
|
|
561
|
+
field_path: err.fieldPath,
|
|
562
|
+
...(err.tool !== undefined ? { tool: err.tool } : {}),
|
|
563
|
+
},
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* The reader `@run402/sdk/node` installs: the tools one function's entry
|
|
569
|
+
* source declares, or a {@link Run402DeployError} thrown before any request.
|
|
570
|
+
*/
|
|
571
|
+
export function liftFunctionTools(input) {
|
|
572
|
+
const extraction = extractToolDeclarations(input.source, { file: input.file });
|
|
573
|
+
if (!extraction.ok) {
|
|
574
|
+
throw toolDeclarationError(extraction.problem, { functionName: input.functionName, sourceField: input.sourceField });
|
|
575
|
+
}
|
|
576
|
+
const unnamed = extraction.tools.find((tool) => tool.name === undefined);
|
|
577
|
+
if (unnamed && !isValidMcpToolName(input.functionName)) {
|
|
578
|
+
throw toolDeclarationError({
|
|
579
|
+
code: "MCP_TOOL_NAME_INVALID",
|
|
580
|
+
message: `A \`tool\` with no \`name\` is named after its function, and \`${input.functionName}\` is not a valid MCP tool name (1 to 128 of A-Z, a-z, 0-9, \`_\`, \`-\` and \`.\`). Add \`name: "…"\` to the declaration.`,
|
|
581
|
+
file: input.file,
|
|
582
|
+
field_path: "tool.name",
|
|
583
|
+
}, { functionName: input.functionName, sourceField: input.sourceField });
|
|
584
|
+
}
|
|
585
|
+
return extraction.tools;
|
|
586
|
+
}
|
|
587
|
+
//# sourceMappingURL=tool-declarations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-declarations.js","sourceRoot":"","sources":["../../src/node/tool-declarations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,UAAU,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,KAAK,IAAI,OAAO,EAA0B,MAAM,OAAO,CAAC;AAEjE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,GAIrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AA4BtE,iDAAiD;AACjD,MAAM,OAAQ,SAAQ,KAAK;IAEd,IAAI;IACJ,SAAS;IAET,IAAI;IACJ,IAAI;IALf,YACW,IAAsB,EACtB,SAAiB,EAC1B,OAAe,EACN,IAAoB,EACpB,IAAa;QAEtB,KAAK,CAAC,OAAO,CAAC,CAAC;oBANN,IAAI;yBACJ,SAAS;oBAET,IAAI;oBACJ,IAAI;IAGf,CAAC;IAED,oEAAoE;IACpE,MAAM,CAAC,EAAE,CACP,IAA+B,EAC/B,OAAwE,EACxE,IAAa;QAEb,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;CACF;AAED,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAS,CAAC,GAAG,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC;AAE7E,gFAAgF;AAEhF;;;GAGG;AACH,SAAS,eAAe,CAAC,MAAc;IACrC,OAAO,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,YAA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AAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IACvH,CAAC;IACD,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IACzE,IAAI,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;QACvD,MAAM,oBAAoB,CACxB;YACE,IAAI,EAAE,uBAAuB;YAC7B,OAAO,EAAE,kEAAkE,KAAK,CAAC,YAAY,4HAA4H;YACzN,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,UAAU,EAAE,WAAW;SACxB,EACD,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CACrE,CAAC;IACJ,CAAC;IACD,OAAO,UAAU,CAAC,KAAK,CAAC;AAC1B,CAAC"}
|
|
@@ -132,7 +132,7 @@ export interface ResolveVaultAddressOptions {
|
|
|
132
132
|
/** Fires once, only when THIS call allocated the vault (mirrors `Repos.capture`'s `onVaultCreated`). */
|
|
133
133
|
onVaultCreated?: (created: NonNullable<VaultAddressResolution["created"]>) => void | Promise<void>;
|
|
134
134
|
/**
|
|
135
|
-
* vault-offline-clone-resolve (
|
|
135
|
+
* vault-offline-clone-resolve (D-vault-client-surface-16): recovery-only. Skips BOTH
|
|
136
136
|
* local answers — the git-config pin AND the id-form keystore consult —
|
|
137
137
|
* forcing a genuine network resolution. Set exclusively by {@link
|
|
138
138
|
* recoverStaleVaultPin}'s internal re-resolve call: a stale local
|
|
@@ -157,7 +157,7 @@ export declare function resolveVaultAddress(options: ResolveVaultAddressOptions)
|
|
|
157
157
|
/**
|
|
158
158
|
* Stale-pin recovery for OFFLINE resolutions (client-surface spec,
|
|
159
159
|
* "Id-form remotes pin repo_id like slug-form remotes"; widened by
|
|
160
|
-
* vault-offline-clone-resolve
|
|
160
|
+
* vault-offline-clone-resolve D-vault-client-surface-16 to the keystore-sourced offline
|
|
161
161
|
* answer too): a pin or a keystore hit resolves with no network read, so the
|
|
162
162
|
* once-in-a-lifetime stale case (a vault deleted and re-allocated out from
|
|
163
163
|
* under this checkout, or a keystore file left behind by an old allocation)
|