opentool 0.7.9 → 0.7.10

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.
@@ -327,6 +327,12 @@ interface HttpHandlerDefinition {
327
327
  method: HttpMethod;
328
328
  handler: (request: Request) => Promise<Response> | Response;
329
329
  }
330
+ type ScheduleType = "cron" | "rate";
331
+ interface NormalizedSchedule {
332
+ type: ScheduleType;
333
+ expression: string;
334
+ authoredEnabled?: boolean;
335
+ }
330
336
  interface McpConfig {
331
337
  enabled: boolean;
332
338
  mode?: "stdio" | "lambda" | "dual";
@@ -343,6 +349,8 @@ interface InternalToolDefinition<TSchema extends z.ZodSchema | undefined = z.Zod
343
349
  sourcePath?: string;
344
350
  handler?: (params: any) => Promise<ToolResponse>;
345
351
  payment?: X402Payment | null;
352
+ schedule?: NormalizedSchedule | null;
353
+ profileDescription?: string | null;
346
354
  }
347
355
  interface ServerConfig {
348
356
  name: string;
@@ -379,4 +387,4 @@ declare function validateCommand(options: ValidateOptions): Promise<void>;
379
387
  declare function validateFullCommand(options: ValidateOptions): Promise<void>;
380
388
  declare function loadAndValidateTools(toolsDir: string, options?: LoadToolsOptions): Promise<InternalToolDefinition[]>;
381
389
 
382
- export { type BuildConfig as B, type GenerateMetadataOptions as G, HTTP_METHODS as H, type InternalToolDefinition as I, type Metadata as M, type PaymentConfig as P, type ServerConfig as S, type ToolResponse as T, type ValidateOptions as V, type GenerateMetadataResult as a, generateMetadata as b, validateFullCommand as c, type ToolContent as d, type HttpMethod as e, type HttpHandlerDefinition as f, generateMetadataCommand as g, type McpConfig as h, type Tool as i, type ToolMetadataOverrides as j, type BuildMetadata as k, loadAndValidateTools as l, validateCommand as v };
390
+ export { type BuildConfig as B, type GenerateMetadataOptions as G, HTTP_METHODS as H, type InternalToolDefinition as I, type Metadata as M, type NormalizedSchedule as N, type PaymentConfig as P, type ScheduleType as S, type ToolResponse as T, type ValidateOptions as V, type GenerateMetadataResult as a, generateMetadata as b, validateFullCommand as c, type ToolContent as d, type HttpMethod as e, type HttpHandlerDefinition as f, generateMetadataCommand as g, type McpConfig as h, type ServerConfig as i, type Tool as j, type ToolMetadataOverrides as k, loadAndValidateTools as l, type BuildMetadata as m, validateCommand as v };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opentool",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "description": "OpenTool framework for building serverless MCP tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",