@workglow/tasks 0.0.93 → 0.0.94
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/dist/browser.js +41 -1
- package/dist/browser.js.map +4 -4
- package/dist/bun.js +41 -1
- package/dist/bun.js.map +4 -4
- package/dist/node.js +41 -1
- package/dist/node.js.map +4 -4
- package/dist/task/InputTask.d.ts +7 -1
- package/dist/task/InputTask.d.ts.map +1 -1
- package/dist/task/OutputTask.d.ts +7 -1
- package/dist/task/OutputTask.d.ts.map +1 -1
- package/package.json +9 -9
package/dist/task/InputTask.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey
|
|
4
4
|
* All Rights Reserved
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow, Task, TaskConfig } from "@workglow/task-graph";
|
|
6
|
+
import { CreateWorkflow, Task, TaskConfig, type IExecuteContext, type StreamEvent } from "@workglow/task-graph";
|
|
7
7
|
import type { DataPortSchema } from "@workglow/util";
|
|
8
8
|
export type InputTaskInput = Record<string, unknown>;
|
|
9
9
|
export type InputTaskOutput = Record<string, unknown>;
|
|
@@ -23,6 +23,12 @@ export declare class InputTask extends Task<InputTaskInput, InputTaskOutput, Inp
|
|
|
23
23
|
outputSchema(): DataPortSchema;
|
|
24
24
|
execute(input: InputTaskInput): Promise<InputTaskOutput>;
|
|
25
25
|
executeReactive(input: InputTaskInput): Promise<InputTaskOutput>;
|
|
26
|
+
/**
|
|
27
|
+
* Stream pass-through: re-yields all events from upstream input streams
|
|
28
|
+
* so downstream consumers see them with near-zero latency, then emits
|
|
29
|
+
* a finish event with the materialized input as data.
|
|
30
|
+
*/
|
|
31
|
+
executeStream(input: InputTaskInput, context: IExecuteContext): AsyncIterable<StreamEvent<InputTaskOutput>>;
|
|
26
32
|
}
|
|
27
33
|
declare module "@workglow/task-graph" {
|
|
28
34
|
interface Workflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputTask.d.ts","sourceRoot":"","sources":["../../src/task/InputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"InputTask.d.ts","sourceRoot":"","sources":["../../src/task/InputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAY,KAAK,eAAe,EAAE,KAAK,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AAC7I,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,GAAG;IACzC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,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;IAO7B,YAAY,IAAI,cAAc;IAOxB,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"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey
|
|
4
4
|
* All Rights Reserved
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow, Task, TaskConfig } from "@workglow/task-graph";
|
|
6
|
+
import { CreateWorkflow, Task, TaskConfig, type IExecuteContext, type StreamEvent } from "@workglow/task-graph";
|
|
7
7
|
import type { DataPortSchema } from "@workglow/util";
|
|
8
8
|
export type OutputTaskInput = Record<string, unknown>;
|
|
9
9
|
export type OutputTaskOutput = Record<string, unknown>;
|
|
@@ -23,6 +23,12 @@ export declare class OutputTask extends Task<OutputTaskInput, OutputTaskOutput,
|
|
|
23
23
|
outputSchema(): DataPortSchema;
|
|
24
24
|
execute(input: OutputTaskInput): Promise<OutputTaskOutput>;
|
|
25
25
|
executeReactive(input: OutputTaskInput): Promise<OutputTaskOutput>;
|
|
26
|
+
/**
|
|
27
|
+
* Stream pass-through: re-yields all events from upstream input streams
|
|
28
|
+
* so downstream consumers see them with near-zero latency, then emits
|
|
29
|
+
* a finish event with the materialized input as data.
|
|
30
|
+
*/
|
|
31
|
+
executeStream(input: OutputTaskInput, context: IExecuteContext): AsyncIterable<StreamEvent<OutputTaskOutput>>;
|
|
26
32
|
}
|
|
27
33
|
/**
|
|
28
34
|
* Module augmentation to register task type in the workflow system
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputTask.d.ts","sourceRoot":"","sources":["../../src/task/OutputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"OutputTask.d.ts","sourceRoot":"","sources":["../../src/task/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|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workglow/tasks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.94",
|
|
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-*'",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@workglow/task-graph": "0.0.
|
|
40
|
-
"@workglow/util": "0.0.
|
|
41
|
-
"@workglow/job-queue": "0.0.
|
|
42
|
-
"@workglow/storage": "0.0.
|
|
39
|
+
"@workglow/task-graph": "0.0.94",
|
|
40
|
+
"@workglow/util": "0.0.94",
|
|
41
|
+
"@workglow/job-queue": "0.0.94",
|
|
42
|
+
"@workglow/storage": "0.0.94"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@workglow/task-graph": {
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/papaparse": "^5.5.2",
|
|
60
|
-
"@workglow/job-queue": "0.0.
|
|
61
|
-
"@workglow/storage": "0.0.
|
|
62
|
-
"@workglow/task-graph": "0.0.
|
|
63
|
-
"@workglow/util": "0.0.
|
|
60
|
+
"@workglow/job-queue": "0.0.94",
|
|
61
|
+
"@workglow/storage": "0.0.94",
|
|
62
|
+
"@workglow/task-graph": "0.0.94",
|
|
63
|
+
"@workglow/util": "0.0.94"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"papaparse": "^5.5.3"
|