opentool 0.8.18 → 0.8.21
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/adapters/hyperliquid/index.d.ts +29 -1
- package/dist/adapters/hyperliquid/index.js +205 -1
- package/dist/adapters/hyperliquid/index.js.map +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +6 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +211 -1
- package/dist/index.js.map +1 -1
- package/dist/{validate-DsvADI66.d.ts → validate-C4a9tmrQ.d.ts} +1 -0
- package/package.json +1 -1
- package/templates/base/package.json +1 -1
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { M as Metadata, I as InternalToolDefinition } from '../validate-
|
|
3
|
-
export { G as GenerateMetadataOptions, a as GenerateMetadataResult, V as ValidateOptions, b as generateMetadata, g as generateMetadataCommand, l as loadAndValidateTools, v as validateCommand, c as validateFullCommand } from '../validate-
|
|
2
|
+
import { M as Metadata, I as InternalToolDefinition } from '../validate-C4a9tmrQ.js';
|
|
3
|
+
export { G as GenerateMetadataOptions, a as GenerateMetadataResult, V as ValidateOptions, b as generateMetadata, g as generateMetadataCommand, l as loadAndValidateTools, v as validateCommand, c as validateFullCommand } from '../validate-C4a9tmrQ.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../x402/index.js';
|
|
6
6
|
import 'viem';
|
package/dist/cli/index.js
CHANGED
|
@@ -1203,6 +1203,12 @@ async function loadAndValidateTools(toolsDir, options = {}) {
|
|
|
1203
1203
|
`${file}: profile.templateConfig.defaults must be an object when provided.`
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
|
+
const envVar = record.envVar;
|
|
1207
|
+
if (envVar !== void 0 && (typeof envVar !== "string" || envVar.trim().length === 0)) {
|
|
1208
|
+
throw new Error(
|
|
1209
|
+
`${file}: profile.templateConfig.envVar must be a non-empty string when provided.`
|
|
1210
|
+
);
|
|
1211
|
+
}
|
|
1206
1212
|
}
|
|
1207
1213
|
if (hasGET && schedule && typeof schedule.cron === "string" && schedule.cron.trim().length > 0) {
|
|
1208
1214
|
normalizedSchedule = normalizeScheduleExpression(schedule.cron, file);
|