opentool 0.6.5 → 0.7.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/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +9 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/index-D_bCF2Bf.d.ts +487 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/payment/index.d.ts +1 -1
- package/dist/payment/index.js +2 -2
- package/dist/payment/index.js.map +1 -1
- package/dist/validate-CqB2Juma.d.ts +216 -0
- package/package.json +3 -3
- package/dist/index-D3DaM5Rs.d.ts +0 -1693
- package/dist/validate-BLlooEBK.d.ts +0 -842
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { h as Metadata, I as InternalToolDefinition } from '../validate-
|
|
3
|
-
export { G as GenerateMetadataOptions, i as GenerateMetadataResult, V as ValidateOptions, g as generateMetadata, a as generateMetadataCommand, l as loadAndValidateTools, v as validateCommand, j as validateFullCommand } from '../validate-
|
|
2
|
+
import { h as Metadata, I as InternalToolDefinition } from '../validate-CqB2Juma.js';
|
|
3
|
+
export { G as GenerateMetadataOptions, i as GenerateMetadataResult, V as ValidateOptions, g as generateMetadata, a as generateMetadataCommand, l as loadAndValidateTools, v as validateCommand, j as validateFullCommand } from '../validate-CqB2Juma.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-D_bCF2Bf.js';
|
|
6
6
|
|
|
7
7
|
interface BuildOptions {
|
|
8
8
|
input: string;
|
package/dist/cli/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { build } from 'esbuild';
|
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { createRequire } from 'module';
|
|
9
9
|
import { fileURLToPath, pathToFileURL } from 'url';
|
|
10
|
-
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
10
|
+
import { zodToJsonSchema } from '@alcyone-labs/zod-to-json-schema';
|
|
11
11
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
12
12
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
13
13
|
import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -95,7 +95,7 @@ var PaymentConfigSchema = z.object({
|
|
|
95
95
|
plain402: z.boolean().optional(),
|
|
96
96
|
acceptedMethods: z.array(z.union([z.literal("x402"), z.literal("402")])).optional(),
|
|
97
97
|
acceptedCurrencies: z.array(z.string()).optional(),
|
|
98
|
-
|
|
98
|
+
chains: z.array(z.union([z.string(), z.number()])).optional(),
|
|
99
99
|
facilitator: z.string().optional()
|
|
100
100
|
}).strict();
|
|
101
101
|
var DiscoveryMetadataSchema = z.object({
|
|
@@ -103,9 +103,9 @@ var DiscoveryMetadataSchema = z.object({
|
|
|
103
103
|
category: z.string().optional(),
|
|
104
104
|
useCases: z.array(z.string()).optional(),
|
|
105
105
|
capabilities: z.array(z.string()).optional(),
|
|
106
|
-
requirements: z.record(z.any()).optional(),
|
|
107
|
-
pricing: z.record(z.any()).optional(),
|
|
108
|
-
compatibility: z.record(z.any()).optional(),
|
|
106
|
+
requirements: z.record(z.string(), z.any()).optional(),
|
|
107
|
+
pricing: z.record(z.string(), z.any()).optional(),
|
|
108
|
+
compatibility: z.record(z.string(), z.any()).optional(),
|
|
109
109
|
documentation: z.union([z.string(), z.array(z.string())]).optional()
|
|
110
110
|
}).catchall(z.any());
|
|
111
111
|
var ToolMetadataOverridesSchema = z.object({
|
|
@@ -148,9 +148,9 @@ var AuthoredMetadataSchema = z.object({
|
|
|
148
148
|
keywords: z.array(z.string()).optional(),
|
|
149
149
|
useCases: z.array(z.string()).optional(),
|
|
150
150
|
capabilities: z.array(z.string()).optional(),
|
|
151
|
-
requirements: z.record(z.any()).optional(),
|
|
152
|
-
pricing: z.record(z.any()).optional(),
|
|
153
|
-
compatibility: z.record(z.any()).optional(),
|
|
151
|
+
requirements: z.record(z.string(), z.any()).optional(),
|
|
152
|
+
pricing: z.record(z.string(), z.any()).optional(),
|
|
153
|
+
compatibility: z.record(z.string(), z.any()).optional(),
|
|
154
154
|
chains: z.array(z.union([z.string(), z.number()])).optional()
|
|
155
155
|
}).catchall(z.any());
|
|
156
156
|
var MetadataSchema = z.object({
|
|
@@ -409,7 +409,7 @@ function resolvePayment(authored, defaults) {
|
|
|
409
409
|
plain402: acceptedMethods.includes("402"),
|
|
410
410
|
acceptedMethods,
|
|
411
411
|
acceptedCurrencies: Array.isArray(pricing.acceptedCurrencies) ? pricing.acceptedCurrencies : ["USDC"],
|
|
412
|
-
|
|
412
|
+
chains: Array.isArray(pricing.chains) ? pricing.chains : [8453]
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
function buildDiscovery(authored) {
|