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.
- package/README.md +6 -1
- package/dist/cli/index.d.ts +3 -2
- package/dist/cli/index.js +101 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +44 -1
- package/dist/index.js.map +1 -1
- package/dist/{validate-BBjyq5nS.d.ts → validate-uetwG5jo.d.ts} +9 -1
- package/package.json +1 -1
|
@@ -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
|
|
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 };
|