opentool 0.8.8 → 0.8.9

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 CHANGED
@@ -73,7 +73,7 @@ For private tools, say for internal trading apps:
73
73
 
74
74
  - GET-only (scheduled default profile)
75
75
  - POST-only (one-off, parameterized with Zod)
76
- - `profile.category` defaults to `tracker` if omitted; set to `strategy` for PnL/automation tools.
76
+ - `profile.category` defaults to `tracker` if omitted; set to `strategy` or `orchestator` for PnL/automation tools.
77
77
 
78
78
  GET-only (scheduled default)
79
79
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { M as Metadata, I as InternalToolDefinition } from '../validate-3e5UvzfQ.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-3e5UvzfQ.js';
2
+ import { M as Metadata, I as InternalToolDefinition } from '../validate-M_QdV0J3.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-M_QdV0J3.js';
4
4
  import 'zod';
5
5
  import '../x402/index.js';
6
6
  import 'viem';
package/dist/cli/index.js CHANGED
@@ -141,7 +141,7 @@ var DiscoveryMetadataSchema = z.object({
141
141
  compatibility: z.record(z.string(), z.any()).optional(),
142
142
  documentation: z.union([z.string(), z.array(z.string())]).optional()
143
143
  }).catchall(z.any());
144
- var ToolCategorySchema = z.enum(["strategy", "tracker"]);
144
+ var ToolCategorySchema = z.enum(["strategy", "tracker", "orchestator"]);
145
145
  var ToolMetadataOverridesSchema = z.object({
146
146
  name: z.string().optional(),
147
147
  description: z.string().optional(),
@@ -1114,7 +1114,7 @@ async function loadAndValidateTools(toolsDir, options = {}) {
1114
1114
  const schedule = toolModule?.profile?.schedule;
1115
1115
  const profileNotifyEmail = typeof toolModule?.profile?.notifyEmail === "boolean" ? toolModule.profile.notifyEmail : void 0;
1116
1116
  const profileCategoryRaw = typeof toolModule?.profile?.category === "string" ? toolModule.profile.category : void 0;
1117
- const allowedProfileCategories = /* @__PURE__ */ new Set(["strategy", "tracker"]);
1117
+ const allowedProfileCategories = /* @__PURE__ */ new Set(["strategy", "tracker", "orchestator"]);
1118
1118
  if (profileCategoryRaw && !allowedProfileCategories.has(profileCategoryRaw)) {
1119
1119
  throw new Error(
1120
1120
  `${file}: profile.category must be one of ${Array.from(allowedProfileCategories).join(", ")}`