skedyul 0.2.121 → 0.2.124
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/.build-stamp +1 -1
- package/dist/cli/commands/invoke.js +1 -1
- package/dist/cli/commands/tools.js +1 -1
- package/dist/server.js +4 -4
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1769917245491
|
|
@@ -171,7 +171,7 @@ async function invokeCommand(args) {
|
|
|
171
171
|
process.exit(1);
|
|
172
172
|
}
|
|
173
173
|
// Validate inputs if schema exists
|
|
174
|
-
const inputSchema = getZodSchema(tool.
|
|
174
|
+
const inputSchema = getZodSchema(tool.inputSchema);
|
|
175
175
|
let validatedArgs = toolArgs;
|
|
176
176
|
if (inputSchema) {
|
|
177
177
|
try {
|
|
@@ -108,7 +108,7 @@ async function toolsCommand(args) {
|
|
|
108
108
|
}
|
|
109
109
|
const tools = [];
|
|
110
110
|
for (const [key, tool] of Object.entries(registry)) {
|
|
111
|
-
const inputZod = getZodSchema(tool.
|
|
111
|
+
const inputZod = getZodSchema(tool.inputSchema);
|
|
112
112
|
const outputZod = getZodSchema(tool.outputSchema);
|
|
113
113
|
tools.push({
|
|
114
114
|
name: tool.name || key,
|
package/dist/server.js
CHANGED
|
@@ -259,7 +259,7 @@ function buildToolMetadata(registry) {
|
|
|
259
259
|
return Object.values(registry).map((tool) => ({
|
|
260
260
|
name: tool.name,
|
|
261
261
|
description: tool.description,
|
|
262
|
-
inputSchema: getJsonSchemaFromToolSchema(tool.
|
|
262
|
+
inputSchema: getJsonSchemaFromToolSchema(tool.inputSchema),
|
|
263
263
|
outputSchema: getJsonSchemaFromToolSchema(tool.outputSchema),
|
|
264
264
|
}));
|
|
265
265
|
}
|
|
@@ -586,7 +586,7 @@ function createSkedyulServer(config, registry, webhookRegistry) {
|
|
|
586
586
|
for (const [toolKey, tool] of Object.entries(registry)) {
|
|
587
587
|
// Use the tool's name or fall back to the registry key
|
|
588
588
|
const toolName = tool.name || toolKey;
|
|
589
|
-
const inputZodSchema = getZodSchema(tool.
|
|
589
|
+
const inputZodSchema = getZodSchema(tool.inputSchema);
|
|
590
590
|
const outputZodSchema = getZodSchema(tool.outputSchema);
|
|
591
591
|
// Wrap the input schema to accept Skedyul format: { inputs: {...}, env: {...} }
|
|
592
592
|
// This allows the MCP SDK to pass through the wrapper without stripping fields
|
|
@@ -1257,7 +1257,7 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
1257
1257
|
},
|
|
1258
1258
|
}, headers);
|
|
1259
1259
|
}
|
|
1260
|
-
const inputSchema = getZodSchema(tool.
|
|
1260
|
+
const inputSchema = getZodSchema(tool.inputSchema);
|
|
1261
1261
|
// Validate arguments against Zod schema
|
|
1262
1262
|
const validatedArgs = inputSchema ? inputSchema.parse(toolArgs) : toolArgs;
|
|
1263
1263
|
const estimateResponse = await callTool(toolKey, {
|
|
@@ -1350,7 +1350,7 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
1350
1350
|
}, headers);
|
|
1351
1351
|
}
|
|
1352
1352
|
try {
|
|
1353
|
-
const inputSchema = getZodSchema(tool.
|
|
1353
|
+
const inputSchema = getZodSchema(tool.inputSchema);
|
|
1354
1354
|
const outputSchema = getZodSchema(tool.outputSchema);
|
|
1355
1355
|
const hasOutputSchema = Boolean(outputSchema);
|
|
1356
1356
|
const validatedInputs = inputSchema
|
package/dist/types.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export type ToolHandler<Input, Output> = (input: Input, context: ToolExecutionCo
|
|
|
113
113
|
export interface ToolDefinition<Input = unknown, Output = unknown, InputSchema extends z.ZodTypeAny = z.ZodType<Input>, OutputSchema extends z.ZodTypeAny = z.ZodType<Output>> {
|
|
114
114
|
name: string;
|
|
115
115
|
description: string;
|
|
116
|
-
|
|
116
|
+
inputSchema: ToolSchema<InputSchema>;
|
|
117
117
|
handler: ToolHandler<Input, Output>;
|
|
118
118
|
outputSchema?: ToolSchema<OutputSchema>;
|
|
119
119
|
[key: string]: unknown;
|
|
@@ -121,7 +121,7 @@ export interface ToolDefinition<Input = unknown, Output = unknown, InputSchema e
|
|
|
121
121
|
export interface ToolRegistryEntry {
|
|
122
122
|
name: string;
|
|
123
123
|
description: string;
|
|
124
|
-
|
|
124
|
+
inputSchema: ToolSchema;
|
|
125
125
|
handler: unknown;
|
|
126
126
|
outputSchema?: ToolSchema;
|
|
127
127
|
[key: string]: unknown;
|