@workglow/tasks 0.0.57 → 0.0.59

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.
@@ -8,18 +8,15 @@ import { FromSchema } from "@workglow/util";
8
8
  declare const inputSchema: {
9
9
  readonly type: "object";
10
10
  readonly properties: {
11
- readonly code: {
11
+ readonly javascript_code: {
12
12
  readonly type: "string";
13
13
  readonly title: "Code";
14
+ readonly minLength: 1;
14
15
  readonly description: "JavaScript code to execute";
15
16
  };
16
- readonly input: {
17
- readonly title: "Input";
18
- readonly description: "Input data to pass to the JavaScript code";
19
- };
20
17
  };
21
- readonly required: readonly ["code"];
22
- readonly additionalProperties: false;
18
+ readonly required: readonly ["javascript_code"];
19
+ readonly additionalProperties: true;
23
20
  };
24
21
  declare const outputSchema: {
25
22
  readonly type: "object";
@@ -42,18 +39,15 @@ export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScript
42
39
  static inputSchema(): {
43
40
  readonly type: "object";
44
41
  readonly properties: {
45
- readonly code: {
42
+ readonly javascript_code: {
46
43
  readonly type: "string";
47
44
  readonly title: "Code";
45
+ readonly minLength: 1;
48
46
  readonly description: "JavaScript code to execute";
49
47
  };
50
- readonly input: {
51
- readonly title: "Input";
52
- readonly description: "Input data to pass to the JavaScript code";
53
- };
54
48
  };
55
- readonly required: readonly ["code"];
56
- readonly additionalProperties: false;
49
+ readonly required: readonly ["javascript_code"];
50
+ readonly additionalProperties: true;
57
51
  };
58
52
  static outputSchema(): {
59
53
  readonly type: "object";
@@ -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,EAA0B,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5D,QAAA,MAAM,WAAW;;;;;;;;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CAAC,mBAAmB,EAAE,oBAAoB,CAAC;IACjF,OAAc,IAAI,SAAoB;IACtC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAA4B;IAC/C,OAAc,WAAW,SAAqE;WAEhF,WAAW;;;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;;IAIpB,eAAe,CAAC,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,oBAAoB;;;CAiB/E;AAID,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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workglow/tasks",
3
3
  "type": "module",
4
- "version": "0.0.57",
4
+ "version": "0.0.59",
5
5
  "description": "Pre-built task implementations for Workglow, including common AI operations and utility functions.",
6
6
  "scripts": {
7
7
  "watch": "concurrently -c 'auto' 'bun:watch-*'",
@@ -30,10 +30,10 @@
30
30
  "access": "public"
31
31
  },
32
32
  "peerDependencies": {
33
- "@workglow/task-graph": "0.0.57",
34
- "@workglow/util": "0.0.57",
35
- "@workglow/job-queue": "0.0.57",
36
- "@workglow/storage": "0.0.57"
33
+ "@workglow/task-graph": "0.0.59",
34
+ "@workglow/util": "0.0.59",
35
+ "@workglow/job-queue": "0.0.59",
36
+ "@workglow/storage": "0.0.59"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@workglow/task-graph": {
@@ -50,9 +50,9 @@
50
50
  }
51
51
  },
52
52
  "devDependencies": {
53
- "@workglow/job-queue": "0.0.57",
54
- "@workglow/storage": "0.0.57",
55
- "@workglow/task-graph": "0.0.57",
56
- "@workglow/util": "0.0.57"
53
+ "@workglow/job-queue": "0.0.59",
54
+ "@workglow/storage": "0.0.59",
55
+ "@workglow/task-graph": "0.0.59",
56
+ "@workglow/util": "0.0.59"
57
57
  }
58
58
  }