@workglow/tasks 0.0.102 → 0.0.104

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.
Files changed (59) hide show
  1. package/dist/browser.js +5218 -4202
  2. package/dist/browser.js.map +24 -10
  3. package/dist/bun.js +2617 -1578
  4. package/dist/bun.js.map +25 -11
  5. package/dist/common.d.ts +29 -1
  6. package/dist/common.d.ts.map +1 -1
  7. package/dist/node.js +2617 -1578
  8. package/dist/node.js.map +25 -11
  9. package/dist/task/DateFormatTask.d.ts +107 -0
  10. package/dist/task/DateFormatTask.d.ts.map +1 -0
  11. package/dist/task/FetchUrlTask.d.ts +20 -1
  12. package/dist/task/FetchUrlTask.d.ts.map +1 -1
  13. package/dist/task/FileLoaderTask.d.ts +23 -0
  14. package/dist/task/FileLoaderTask.d.ts.map +1 -1
  15. package/dist/task/FileLoaderTask.server.d.ts +3 -0
  16. package/dist/task/FileLoaderTask.server.d.ts.map +1 -1
  17. package/dist/task/InputTask.d.ts.map +1 -1
  18. package/dist/task/JavaScriptTask.d.ts +4 -0
  19. package/dist/task/JavaScriptTask.d.ts.map +1 -1
  20. package/dist/task/JsonPathTask.d.ts +77 -0
  21. package/dist/task/JsonPathTask.d.ts.map +1 -0
  22. package/dist/task/LambdaTask.d.ts +4 -0
  23. package/dist/task/LambdaTask.d.ts.map +1 -1
  24. package/dist/task/OutputTask.d.ts.map +1 -1
  25. package/dist/task/RegexTask.d.ts +109 -0
  26. package/dist/task/RegexTask.d.ts.map +1 -0
  27. package/dist/task/TemplateTask.d.ts +89 -0
  28. package/dist/task/TemplateTask.d.ts.map +1 -0
  29. package/dist/task/mcp/McpPromptGetTask.d.ts +8 -0
  30. package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -1
  31. package/dist/task/mcp/McpResourceReadTask.d.ts +8 -0
  32. package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -1
  33. package/dist/task/mcp/McpToolCallTask.d.ts +8 -0
  34. package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -1
  35. package/dist/task/string/StringConcatTask.d.ts +61 -0
  36. package/dist/task/string/StringConcatTask.d.ts.map +1 -0
  37. package/dist/task/string/StringIncludesTask.d.ts +81 -0
  38. package/dist/task/string/StringIncludesTask.d.ts.map +1 -0
  39. package/dist/task/string/StringJoinTask.d.ts +89 -0
  40. package/dist/task/string/StringJoinTask.d.ts.map +1 -0
  41. package/dist/task/string/StringLengthTask.d.ts +71 -0
  42. package/dist/task/string/StringLengthTask.d.ts.map +1 -0
  43. package/dist/task/string/StringLowerCaseTask.d.ts +71 -0
  44. package/dist/task/string/StringLowerCaseTask.d.ts.map +1 -0
  45. package/dist/task/string/StringReplaceTask.d.ts +91 -0
  46. package/dist/task/string/StringReplaceTask.d.ts.map +1 -0
  47. package/dist/task/string/StringSliceTask.d.ts +91 -0
  48. package/dist/task/string/StringSliceTask.d.ts.map +1 -0
  49. package/dist/task/string/StringTemplateTask.d.ts +83 -0
  50. package/dist/task/string/StringTemplateTask.d.ts.map +1 -0
  51. package/dist/task/string/StringTrimTask.d.ts +71 -0
  52. package/dist/task/string/StringTrimTask.d.ts.map +1 -0
  53. package/dist/task/string/StringUpperCaseTask.d.ts +71 -0
  54. package/dist/task/string/StringUpperCaseTask.d.ts.map +1 -0
  55. package/package.json +9 -9
  56. package/dist/task/scalar/scalar.test.d.ts +0 -7
  57. package/dist/task/scalar/scalar.test.d.ts.map +0 -1
  58. package/dist/task/vector/vector.test.d.ts +0 -7
  59. package/dist/task/vector/vector.test.d.ts.map +0 -1
@@ -0,0 +1,107 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, Task, TaskConfig } from "@workglow/task-graph";
7
+ import { FromSchema } from "@workglow/util";
8
+ declare const inputSchema: {
9
+ readonly type: "object";
10
+ readonly properties: {
11
+ readonly value: {
12
+ readonly type: "string";
13
+ readonly title: "Value";
14
+ readonly description: "Date string, ISO 8601 timestamp, or Unix timestamp in milliseconds";
15
+ };
16
+ readonly format: {
17
+ readonly type: "string";
18
+ readonly title: "Format";
19
+ readonly enum: readonly ["iso", "date", "time", "datetime", "unix"];
20
+ readonly description: "Output format: 'iso', 'date', 'time', 'datetime', 'unix'";
21
+ readonly default: "iso";
22
+ };
23
+ readonly locale: {
24
+ readonly type: "string";
25
+ readonly title: "Locale";
26
+ readonly description: "Locale string (e.g. 'en-US')";
27
+ readonly default: "en-US";
28
+ };
29
+ readonly timeZone: {
30
+ readonly type: "string";
31
+ readonly title: "Time Zone";
32
+ readonly description: "IANA time zone (e.g. 'America/New_York', 'UTC')";
33
+ };
34
+ };
35
+ readonly required: readonly ["value"];
36
+ readonly additionalProperties: false;
37
+ };
38
+ declare const outputSchema: {
39
+ readonly type: "object";
40
+ readonly properties: {
41
+ readonly result: {
42
+ readonly type: "string";
43
+ readonly title: "Result";
44
+ readonly description: "Formatted date string";
45
+ };
46
+ };
47
+ readonly required: readonly ["result"];
48
+ readonly additionalProperties: false;
49
+ };
50
+ export type DateFormatTaskInput = FromSchema<typeof inputSchema>;
51
+ export type DateFormatTaskOutput = FromSchema<typeof outputSchema>;
52
+ export declare class DateFormatTask<Input extends DateFormatTaskInput = DateFormatTaskInput, Output extends DateFormatTaskOutput = DateFormatTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
53
+ static readonly type = "DateFormatTask";
54
+ static readonly category = "Utility";
55
+ static title: string;
56
+ static description: string;
57
+ static inputSchema(): {
58
+ readonly type: "object";
59
+ readonly properties: {
60
+ readonly value: {
61
+ readonly type: "string";
62
+ readonly title: "Value";
63
+ readonly description: "Date string, ISO 8601 timestamp, or Unix timestamp in milliseconds";
64
+ };
65
+ readonly format: {
66
+ readonly type: "string";
67
+ readonly title: "Format";
68
+ readonly enum: readonly ["iso", "date", "time", "datetime", "unix"];
69
+ readonly description: "Output format: 'iso', 'date', 'time', 'datetime', 'unix'";
70
+ readonly default: "iso";
71
+ };
72
+ readonly locale: {
73
+ readonly type: "string";
74
+ readonly title: "Locale";
75
+ readonly description: "Locale string (e.g. 'en-US')";
76
+ readonly default: "en-US";
77
+ };
78
+ readonly timeZone: {
79
+ readonly type: "string";
80
+ readonly title: "Time Zone";
81
+ readonly description: "IANA time zone (e.g. 'America/New_York', 'UTC')";
82
+ };
83
+ };
84
+ readonly required: readonly ["value"];
85
+ readonly additionalProperties: false;
86
+ };
87
+ static outputSchema(): {
88
+ readonly type: "object";
89
+ readonly properties: {
90
+ readonly result: {
91
+ readonly type: "string";
92
+ readonly title: "Result";
93
+ readonly description: "Formatted date string";
94
+ };
95
+ };
96
+ readonly required: readonly ["result"];
97
+ readonly additionalProperties: false;
98
+ };
99
+ executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
100
+ }
101
+ declare module "@workglow/task-graph" {
102
+ interface Workflow {
103
+ dateFormat: CreateWorkflow<DateFormatTaskInput, DateFormatTaskOutput, TaskConfig>;
104
+ }
105
+ }
106
+ export {};
107
+ //# sourceMappingURL=DateFormatTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateFormatTask.d.ts","sourceRoot":"","sources":["../../src/task/DateFormatTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,qBAAa,cAAc,CACzB,KAAK,SAAS,mBAAmB,GAAG,mBAAmB,EACvD,MAAM,SAAS,oBAAoB,GAAG,oBAAoB,EAC1D,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,oBAAoB;IACxC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,OAAc,KAAK,SAAiB;IACpC,OAAc,WAAW,SAAsC;IAE/D,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAkCnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { IJobExecuteContext, Job } from "@workglow/job-queue";
7
- import { CreateWorkflow, JobQueueTask, JobQueueTaskConfig } from "@workglow/task-graph";
7
+ import { CreateWorkflow, type IExecuteContext, JobQueueTask, JobQueueTaskConfig } from "@workglow/task-graph";
8
8
  import { DataPortSchema, FromSchema } from "@workglow/util";
9
9
  declare const inputSchema: {
10
10
  readonly type: "object";
@@ -49,6 +49,13 @@ declare const inputSchema: {
49
49
  readonly title: "Timeout";
50
50
  readonly description: "Request timeout in milliseconds";
51
51
  };
52
+ readonly credential_key: {
53
+ readonly type: "string";
54
+ readonly format: "credential";
55
+ readonly title: "Credential Key";
56
+ readonly description: "Key to look up in the credential store. The resolved value is sent as a Bearer token in the Authorization header.";
57
+ readonly "x-ui-hidden": true;
58
+ };
52
59
  readonly queue: {
53
60
  readonly oneOf: readonly [{
54
61
  readonly type: "boolean";
@@ -172,6 +179,13 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
172
179
  readonly title: "Timeout";
173
180
  readonly description: "Request timeout in milliseconds";
174
181
  };
182
+ readonly credential_key: {
183
+ readonly type: "string";
184
+ readonly format: "credential";
185
+ readonly title: "Credential Key";
186
+ readonly description: "Key to look up in the credential store. The resolved value is sent as a Bearer token in the Authorization header.";
187
+ readonly "x-ui-hidden": true;
188
+ };
175
189
  readonly queue: {
176
190
  readonly oneOf: readonly [{
177
191
  readonly type: "boolean";
@@ -233,6 +247,11 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
233
247
  */
234
248
  outputSchema(): DataPortSchema;
235
249
  constructor(input?: Partial<Input>, config?: Config);
250
+ /**
251
+ * Uses the already-resolved credential_key (resolved by the input resolver system)
252
+ * to set the Authorization header before job dispatch.
253
+ */
254
+ execute(input: Input, executeContext: IExecuteContext): Promise<Output | undefined>;
236
255
  /**
237
256
  * Override setInput to detect when response_type changes and emit schemaChange event.
238
257
  * This ensures that consumers of the task are notified when the output schema changes.
@@ -1 +1 @@
1
- {"version":3,"file":"FetchUrlTask.d.ts","sourceRoot":"","sources":["../../src/task/FetchUrlTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,kBAAkB,EAInB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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GACnB,OAAO,iBAAiB,EACxB,SAAQ,kBAAuB,KAC9B,OAAO,CAAC,kBAAkB,CAG5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;KAClF;CACF"}
@@ -54,6 +54,11 @@ declare const outputSchema: {
54
54
  readonly title: "PDF";
55
55
  readonly description: "Base64 data URL for PDF files";
56
56
  };
57
+ readonly frontmatter: {
58
+ readonly type: "object";
59
+ readonly title: "Frontmatter";
60
+ readonly description: "Parsed YAML frontmatter from markdown/MDX files";
61
+ };
57
62
  readonly metadata: {
58
63
  readonly type: "object";
59
64
  readonly properties: {
@@ -105,6 +110,20 @@ export declare class FileLoaderTask extends Task<FileLoaderTaskInput, FileLoader
105
110
  * Parse CSV content into array of objects
106
111
  */
107
112
  protected parseCsvContent(content: string): Array<Record<string, string>>;
113
+ /**
114
+ * Parse YAML frontmatter from markdown/MDX content.
115
+ * Supports common frontmatter patterns: strings, numbers, booleans, arrays, and nested objects.
116
+ */
117
+ protected parseFrontmatter(content: string): {
118
+ readonly frontmatter: Record<string, unknown> | undefined;
119
+ readonly body: string;
120
+ };
121
+ /**
122
+ * Lightweight line-based YAML parser for frontmatter key-value pairs.
123
+ */
124
+ private parseSimpleYaml;
125
+ private parseYamlLine;
126
+ private parseYamlValue;
108
127
  /**
109
128
  * Parse the fetch response into typed outputs
110
129
  */
@@ -114,6 +133,7 @@ export declare class FileLoaderTask extends Task<FileLoaderTaskInput, FileLoader
114
133
  readonly csv: Array<Record<string, string>> | undefined;
115
134
  readonly image: string | undefined;
116
135
  readonly pdf: string | undefined;
136
+ readonly frontmatter: Record<string, unknown> | undefined;
117
137
  readonly size: number;
118
138
  readonly mimeType: string;
119
139
  }>;
@@ -145,6 +165,9 @@ export declare const fileLoader: (input: FileLoaderTaskInput, config?: JobQueueT
145
165
  csv?: unknown[] | undefined;
146
166
  pdf?: string | undefined;
147
167
  image?: string | undefined;
168
+ frontmatter?: {
169
+ [x: string]: unknown;
170
+ } | undefined;
148
171
  metadata: {
149
172
  format?: string | undefined;
150
173
  title?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"FileLoaderTask.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,IAAI,EAGL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAgB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;CAmBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CiB,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,IAAI,CACtC,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,CACnB;IACC,OAAc,IAAI,SAAoB;IACtC,OAAc,QAAQ,SAAc;IACpC,OAAc,KAAK,SAAiB;IACpC,OAAc,WAAW,SAAkD;IAC3E,OAAc,SAAS,UAAQ;WAEjB,WAAW,IAAI,cAAc;WAI7B,YAAY,IAAI,cAAc;IAItC,OAAO,CACX,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,oBAAoB,CAAC;IA0DhC;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIpD;;OAEG;IACH,SAAS,CAAC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IAsHF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa;IAkB9F;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CACpB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAC/E,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM;IAsBlE;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAY/C;;OAEG;cACa,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAwBnF;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,mBAAmB,EAAE,SAAS,kBAAkB;;;;;;;;;;;;;;;;EAEjF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,CAAC,CAAC;KAC3F;CACF"}
@@ -22,6 +22,9 @@ export declare const fileLoader: (input: FileLoaderTaskInput, config?: JobQueueT
22
22
  csv?: unknown[] | undefined;
23
23
  pdf?: string | undefined;
24
24
  image?: string | undefined;
25
+ frontmatter?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
25
28
  metadata: {
26
29
  format?: string | undefined;
27
30
  title?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"FileLoaderTask.server.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAG9B,OAA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ceRoot":"","sources":["../../src/task/InputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,IAAI,EACJ,UAAU,EAEV,KAAK,eAAe,EACpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AAEzC,qBAAa,SAAU,SAAQ,IAAI,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC;IACnF,MAAM,CAAC,IAAI,SAAe;IAC1B,MAAM,CAAC,QAAQ,SAAkB;IACjC,MAAM,CAAC,KAAK,SAAW;IACvB,MAAM,CAAC,WAAW,SAAyB;IAC3C,MAAM,CAAC,iBAAiB,UAAQ;IAChC,MAAM,CAAC,SAAS,UAAS;WAEX,WAAW,IAAI,cAAc;WAQ7B,YAAY,IAAI,cAAc;IAQrC,WAAW,IAAI,cAAc;IAI7B,YAAY,IAAI,cAAc;IAIxB,OAAO,CAAC,KAAK,EAAE,cAAc;IAI7B,eAAe,CAAC,KAAK,EAAE,cAAc;IAIlD;;;;OAIG;IACI,aAAa,CAClB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,eAAe,GACvB,aAAa,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;CAkB/C;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;KACzE;CACF"}
@@ -63,6 +63,10 @@ export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScript
63
63
  readonly cacheable: {
64
64
  readonly type: "boolean";
65
65
  };
66
+ readonly timeout: {
67
+ readonly type: "number";
68
+ readonly description: "Max execution time in milliseconds";
69
+ };
66
70
  readonly inputSchema: {
67
71
  readonly type: "object";
68
72
  readonly properties: {};
@@ -1 +1 @@
1
- {"version":3,"file":"JavaScriptTask.d.ts","sourceRoot":"","sources":["../../src/task/JavaScriptTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAA8B,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAkB5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;CAakB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;CAUiB,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,cAAe,SAAQ,IAAI,CACtC,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,CACrB;IACC,OAAc,IAAI,SAAoB;IACtC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAA4B;IAC/C,OAAc,WAAW,SAAqE;IAC9F,OAAc,YAAY,UAAQ;WAEpB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIZ,WAAW;;;;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;;gBAKxB,KAAK,GAAE,OAAO,CAAC,mBAAmB,CAAM,EACxC,MAAM,GAAE,OAAO,CAAC,oBAAoB,CAAM;IAKrC,WAAW;;;;;;;;;;;;;;IAcZ,eAAe,CAAC,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,oBAAoB;;;CAiB/E;AAED,eAAO,MA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e,CAAC,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,oBAAoB;;;CAiB/E;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,mBAAmB,EAAE,SAAQ,UAAe;;EAE7E,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, Task, TaskConfig } from "@workglow/task-graph";
7
+ import { FromSchema } from "@workglow/util";
8
+ declare const inputSchema: {
9
+ readonly type: "object";
10
+ readonly properties: {
11
+ readonly value: {
12
+ readonly title: "Value";
13
+ readonly description: "Input object or array to query";
14
+ };
15
+ readonly path: {
16
+ readonly type: "string";
17
+ readonly title: "Path";
18
+ readonly description: "Dot-notation path to extract (e.g. 'a.b.c', 'items.0.name', 'items.*.name')";
19
+ };
20
+ };
21
+ readonly required: readonly ["value", "path"];
22
+ readonly additionalProperties: false;
23
+ };
24
+ declare const outputSchema: {
25
+ readonly type: "object";
26
+ readonly properties: {
27
+ readonly result: {
28
+ readonly title: "Result";
29
+ readonly description: "Extracted value(s) from the path";
30
+ };
31
+ };
32
+ readonly required: readonly ["result"];
33
+ readonly additionalProperties: false;
34
+ };
35
+ export type JsonPathTaskInput = FromSchema<typeof inputSchema>;
36
+ export type JsonPathTaskOutput = FromSchema<typeof outputSchema>;
37
+ export declare class JsonPathTask<Input extends JsonPathTaskInput = JsonPathTaskInput, Output extends JsonPathTaskOutput = JsonPathTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
38
+ static readonly type = "JsonPathTask";
39
+ static readonly category = "Utility";
40
+ static title: string;
41
+ static description: string;
42
+ static inputSchema(): {
43
+ readonly type: "object";
44
+ readonly properties: {
45
+ readonly value: {
46
+ readonly title: "Value";
47
+ readonly description: "Input object or array to query";
48
+ };
49
+ readonly path: {
50
+ readonly type: "string";
51
+ readonly title: "Path";
52
+ readonly description: "Dot-notation path to extract (e.g. 'a.b.c', 'items.0.name', 'items.*.name')";
53
+ };
54
+ };
55
+ readonly required: readonly ["value", "path"];
56
+ readonly additionalProperties: false;
57
+ };
58
+ static outputSchema(): {
59
+ readonly type: "object";
60
+ readonly properties: {
61
+ readonly result: {
62
+ readonly title: "Result";
63
+ readonly description: "Extracted value(s) from the path";
64
+ };
65
+ };
66
+ readonly required: readonly ["result"];
67
+ readonly additionalProperties: false;
68
+ };
69
+ executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
70
+ }
71
+ declare module "@workglow/task-graph" {
72
+ interface Workflow {
73
+ jsonPath: CreateWorkflow<JsonPathTaskInput, JsonPathTaskOutput, TaskConfig>;
74
+ }
75
+ }
76
+ export {};
77
+ //# sourceMappingURL=JsonPathTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JsonPathTask.d.ts","sourceRoot":"","sources":["../../src/task/JsonPathTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;CAekB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;CAUiB,CAAC;AAEpC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AA6BjE,qBAAa,YAAY,CACvB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EACtD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,kBAAkB;IACtC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,OAAc,KAAK,SAAe;IAClC,OAAc,WAAW,SAA+D;IAExF,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAKnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,QAAQ,EAAE,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC;KAC7E;CACF"}
@@ -22,6 +22,10 @@ export declare const lambdaTaskConfigSchema: {
22
22
  readonly cacheable: {
23
23
  readonly type: "boolean";
24
24
  };
25
+ readonly timeout: {
26
+ readonly type: "number";
27
+ readonly description: "Max execution time in milliseconds";
28
+ };
25
29
  readonly inputSchema: {
26
30
  readonly type: "object";
27
31
  readonly properties: {};
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaTask.d.ts","sourceRoot":"","sources":["../../src/task/LambdaTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EAEd,eAAe,EACf,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAGV,SAAS,EACT,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQA,CAAC;AAEpC,KAAK,gBAAgB,CACnB,KAAK,SAAS,SAAS,GAAG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,MAAM,CAAC,QAAQ,SAAkB;IACjC,MAAM,CAAC,KAAK,SAAY;IACxB,MAAM,CAAC,WAAW,SAAuB;IACzC,MAAM,CAAC,iBAAiB,UAAQ;IAChC,MAAM,CAAC,SAAS,UAAS;WAEX,WAAW,IAAI,cAAc;WAQ7B,YAAY,IAAI,cAAc;IAQrC,WAAW,IAAI,cAAc;IAI7B,YAAY,IAAI,cAAc;IAIxB,OAAO,CAAC,KAAK,EAAE,eAAe;IAI9B,eAAe,CAAC,KAAK,EAAE,eAAe;IAInD;;;;OAIG;IACI,aAAa,CAClB,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,eAAe,GACvB,aAAa,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAkBhD;AAED;;GAEG;AACH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,cAAc,CAAC,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;KAC7E;CACF"}
@@ -0,0 +1,109 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, Task, TaskConfig } from "@workglow/task-graph";
7
+ import { FromSchema } from "@workglow/util";
8
+ declare const inputSchema: {
9
+ readonly type: "object";
10
+ readonly properties: {
11
+ readonly value: {
12
+ readonly type: "string";
13
+ readonly title: "Value";
14
+ readonly description: "Input string to match against";
15
+ };
16
+ readonly pattern: {
17
+ readonly type: "string";
18
+ readonly title: "Pattern";
19
+ readonly description: "Regular expression pattern";
20
+ };
21
+ readonly flags: {
22
+ readonly type: "string";
23
+ readonly title: "Flags";
24
+ readonly description: "Regex flags (e.g. 'g', 'i', 'gi')";
25
+ readonly default: "";
26
+ };
27
+ };
28
+ readonly required: readonly ["value", "pattern"];
29
+ readonly additionalProperties: false;
30
+ };
31
+ declare const outputSchema: {
32
+ readonly type: "object";
33
+ readonly properties: {
34
+ readonly match: {
35
+ readonly type: "boolean";
36
+ readonly title: "Match";
37
+ readonly description: "Whether the pattern matched";
38
+ };
39
+ readonly matches: {
40
+ readonly type: "array";
41
+ readonly items: {
42
+ readonly type: "string";
43
+ };
44
+ readonly title: "Matches";
45
+ readonly description: "Array of matched strings (full matches when global, groups when not)";
46
+ };
47
+ };
48
+ readonly required: readonly ["match", "matches"];
49
+ readonly additionalProperties: false;
50
+ };
51
+ export type RegexTaskInput = FromSchema<typeof inputSchema>;
52
+ export type RegexTaskOutput = FromSchema<typeof outputSchema>;
53
+ export declare class RegexTask<Input extends RegexTaskInput = RegexTaskInput, Output extends RegexTaskOutput = RegexTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
54
+ static readonly type = "RegexTask";
55
+ static readonly category = "String";
56
+ static title: string;
57
+ static description: string;
58
+ static inputSchema(): {
59
+ readonly type: "object";
60
+ readonly properties: {
61
+ readonly value: {
62
+ readonly type: "string";
63
+ readonly title: "Value";
64
+ readonly description: "Input string to match against";
65
+ };
66
+ readonly pattern: {
67
+ readonly type: "string";
68
+ readonly title: "Pattern";
69
+ readonly description: "Regular expression pattern";
70
+ };
71
+ readonly flags: {
72
+ readonly type: "string";
73
+ readonly title: "Flags";
74
+ readonly description: "Regex flags (e.g. 'g', 'i', 'gi')";
75
+ readonly default: "";
76
+ };
77
+ };
78
+ readonly required: readonly ["value", "pattern"];
79
+ readonly additionalProperties: false;
80
+ };
81
+ static outputSchema(): {
82
+ readonly type: "object";
83
+ readonly properties: {
84
+ readonly match: {
85
+ readonly type: "boolean";
86
+ readonly title: "Match";
87
+ readonly description: "Whether the pattern matched";
88
+ };
89
+ readonly matches: {
90
+ readonly type: "array";
91
+ readonly items: {
92
+ readonly type: "string";
93
+ };
94
+ readonly title: "Matches";
95
+ readonly description: "Array of matched strings (full matches when global, groups when not)";
96
+ };
97
+ };
98
+ readonly required: readonly ["match", "matches"];
99
+ readonly additionalProperties: false;
100
+ };
101
+ executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
102
+ }
103
+ declare module "@workglow/task-graph" {
104
+ interface Workflow {
105
+ regex: CreateWorkflow<RegexTaskInput, RegexTaskOutput, TaskConfig>;
106
+ }
107
+ }
108
+ export {};
109
+ //# sourceMappingURL=RegexTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegexTask.d.ts","sourceRoot":"","sources":["../../src/task/RegexTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;CAsBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CAiBiB,CAAC;AAEpC,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,qBAAa,SAAS,CACpB,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,MAAM,SAAS,eAAe,GAAG,eAAe,EAChD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,eAAe;IACnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,YAAY;IACpC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SAA2D;IAEpF,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAuBnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;KACpE;CACF"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, Task, TaskConfig } from "@workglow/task-graph";
7
+ import { FromSchema } from "@workglow/util";
8
+ declare const inputSchema: {
9
+ readonly type: "object";
10
+ readonly properties: {
11
+ readonly template: {
12
+ readonly type: "string";
13
+ readonly title: "Template";
14
+ readonly description: "Template string with {{key}} placeholders; supports {{key|default}} for defaults";
15
+ };
16
+ readonly values: {
17
+ readonly type: "object";
18
+ readonly title: "Values";
19
+ readonly description: "Key-value pairs to substitute into the template";
20
+ readonly additionalProperties: true;
21
+ };
22
+ };
23
+ readonly required: readonly ["template", "values"];
24
+ readonly additionalProperties: false;
25
+ };
26
+ declare const outputSchema: {
27
+ readonly type: "object";
28
+ readonly properties: {
29
+ readonly result: {
30
+ readonly type: "string";
31
+ readonly title: "Result";
32
+ readonly description: "Rendered template string";
33
+ };
34
+ };
35
+ readonly required: readonly ["result"];
36
+ readonly additionalProperties: false;
37
+ };
38
+ export type TemplateTaskInput = FromSchema<typeof inputSchema>;
39
+ export type TemplateTaskOutput = FromSchema<typeof outputSchema>;
40
+ /**
41
+ * TemplateTask renders a template string by replacing `{{key}}` placeholders
42
+ * with corresponding values. Supports `{{key|default}}` syntax for fallback
43
+ * values when a key is missing. Nested dot-notation paths (e.g. `{{a.b}}`)
44
+ * are resolved against the values object.
45
+ */
46
+ export declare class TemplateTask<Input extends TemplateTaskInput = TemplateTaskInput, Output extends TemplateTaskOutput = TemplateTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
47
+ static readonly type = "TemplateTask";
48
+ static readonly category = "Utility";
49
+ static title: string;
50
+ static description: string;
51
+ static inputSchema(): {
52
+ readonly type: "object";
53
+ readonly properties: {
54
+ readonly template: {
55
+ readonly type: "string";
56
+ readonly title: "Template";
57
+ readonly description: "Template string with {{key}} placeholders; supports {{key|default}} for defaults";
58
+ };
59
+ readonly values: {
60
+ readonly type: "object";
61
+ readonly title: "Values";
62
+ readonly description: "Key-value pairs to substitute into the template";
63
+ readonly additionalProperties: true;
64
+ };
65
+ };
66
+ readonly required: readonly ["template", "values"];
67
+ readonly additionalProperties: false;
68
+ };
69
+ static outputSchema(): {
70
+ readonly type: "object";
71
+ readonly properties: {
72
+ readonly result: {
73
+ readonly type: "string";
74
+ readonly title: "Result";
75
+ readonly description: "Rendered template string";
76
+ };
77
+ };
78
+ readonly required: readonly ["result"];
79
+ readonly additionalProperties: false;
80
+ };
81
+ executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
82
+ }
83
+ declare module "@workglow/task-graph" {
84
+ interface Workflow {
85
+ template: CreateWorkflow<TemplateTaskInput, TemplateTaskOutput, TaskConfig>;
86
+ }
87
+ }
88
+ export {};
89
+ //# sourceMappingURL=TemplateTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateTask.d.ts","sourceRoot":"","sources":["../../src/task/TemplateTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;CAkBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,qBAAa,YAAY,CACvB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EACtD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,kBAAkB;IACtC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,OAAc,KAAK,SAAc;IACjC,OAAc,WAAW,SACqD;IAE9E,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAmBnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,QAAQ,EAAE,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC;KAC7E;CACF"}
@@ -59,6 +59,10 @@ declare const configSchema: {
59
59
  readonly cacheable: {
60
60
  readonly type: "boolean";
61
61
  };
62
+ readonly timeout: {
63
+ readonly type: "number";
64
+ readonly description: "Max execution time in milliseconds";
65
+ };
62
66
  readonly inputSchema: {
63
67
  readonly type: "object";
64
68
  readonly properties: {};
@@ -712,6 +716,10 @@ export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPro
712
716
  readonly cacheable: {
713
717
  readonly type: "boolean";
714
718
  };
719
+ readonly timeout: {
720
+ readonly type: "number";
721
+ readonly description: "Max execution time in milliseconds";
722
+ };
715
723
  readonly inputSchema: {
716
724
  readonly type: "object";
717
725
  readonly properties: {};
@@ -1 +1 @@
1
- {"version":3,"file":"McpPromptGetTask.d.ts","sourceRoot":"","sources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