skedyul 0.1.2 → 0.1.3
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/types.d.ts +10 -2
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface ToolExecutionResult<Output = unknown> {
|
|
|
16
16
|
billing: BillingInfo;
|
|
17
17
|
}
|
|
18
18
|
export type ToolHandler<Input, Output> = (params: ToolParams<Input, Output>) => Promise<ToolExecutionResult<Output>> | ToolExecutionResult<Output>;
|
|
19
|
-
export interface ToolDefinition<Input = unknown, Output = unknown, InputSchema extends z.
|
|
19
|
+
export interface ToolDefinition<Input = unknown, Output = unknown, InputSchema extends z.ZodTypeAny = z.ZodType<Input>, OutputSchema extends z.ZodTypeAny = z.ZodType<Output>> {
|
|
20
20
|
name: string;
|
|
21
21
|
description: string;
|
|
22
22
|
inputs: InputSchema;
|
|
@@ -24,7 +24,15 @@ export interface ToolDefinition<Input = unknown, Output = unknown, InputSchema e
|
|
|
24
24
|
outputSchema?: OutputSchema;
|
|
25
25
|
[key: string]: unknown;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export interface ToolRegistryEntry {
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
inputs: z.ZodTypeAny;
|
|
31
|
+
handler: unknown;
|
|
32
|
+
outputSchema?: z.ZodTypeAny;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export type ToolRegistry = Record<string, ToolRegistryEntry>;
|
|
28
36
|
export type ToolName<T extends ToolRegistry> = Extract<keyof T, string>;
|
|
29
37
|
export interface ToolMetadata {
|
|
30
38
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skedyul",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The Skedyul SDK for Node.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"files": ["dist"],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "tsc --build tsconfig.json",
|
|
16
|
-
"test": "npm run build && node --test tests/server.test.js"
|
|
15
|
+
"build": "tsc --build tsconfig.json && tsc --project tsconfig.tests.json",
|
|
16
|
+
"test": "npm run build && node --test dist-tests/server.test.js"
|
|
17
17
|
},
|
|
18
18
|
"keywords": ["mcp", "skedyul", "serverless", "node", "typescript"],
|
|
19
19
|
"repository": {
|