@workglow/ai 0.0.92 → 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.
@@ -19,12 +19,17 @@ import { AiSingleTaskInput, AiTask } from "./AiTask";
19
19
  *
20
20
  * The standard execute() method is preserved as a fallback that internally
21
21
  * consumes the stream to completion (so non-streaming callers get the same result).
22
+ *
23
+ * Port annotation: providers yield raw events without a `port` field.
24
+ * This class wraps text-delta events with the correct port from the task's
25
+ * output schema before they reach the TaskRunner.
22
26
  */
23
27
  export declare class StreamingAiTask<Input extends AiSingleTaskInput = AiSingleTaskInput, Output extends TaskOutput = TaskOutput, Config extends JobQueueTaskConfig = JobQueueTaskConfig> extends AiTask<Input, Output, Config> {
24
28
  static type: string;
25
29
  /**
26
30
  * Streaming execution: creates an AiJob and yields StreamEvents from it.
27
- * This is the primary execution path for streaming tasks.
31
+ * Wraps port-less text-delta events from providers with the port determined
32
+ * by the task's output schema `x-stream` annotations.
28
33
  */
29
34
  executeStream(input: Input, context: IExecuteContext): AsyncIterable<StreamEvent<Output>>;
30
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StreamingAiTask.d.ts","sourceRoot":"","sources":["../../../src/task/base/StreamingAiTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AAEH,OAAO,EACL,kBAAkB,EAClB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAErD;;;;;;;;;;GAUG;AACH,qBAAa,eAAe,CAC1B,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,MAAM,SAAS,UAAU,GAAG,UAAU,EACtC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,CACtD,SAAQ,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACrC,OAAc,IAAI,EAAE,MAAM,CAAqB;IAE/C;;;OAGG;IACI,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CAejG"}
1
+ {"version":3,"file":"StreamingAiTask.d.ts","sourceRoot":"","sources":["../../../src/task/base/StreamingAiTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AAEH,OAAO,EACL,kBAAkB,EAElB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,eAAe,CAC1B,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,MAAM,SAAS,UAAU,GAAG,UAAU,EACtC,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,CACtD,SAAQ,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACrC,OAAc,IAAI,EAAE,MAAM,CAAqB;IAE/C;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CAyBjG"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workglow/ai",
3
3
  "type": "module",
4
- "version": "0.0.92",
4
+ "version": "0.0.94",
5
5
  "description": "Core AI functionality for Workglow, including task execution, model management, and AI pipeline orchestration.",
6
6
  "scripts": {
7
7
  "watch": "concurrently -c 'auto' 'bun:watch-*'",
@@ -36,11 +36,11 @@
36
36
  "access": "public"
37
37
  },
38
38
  "peerDependencies": {
39
- "@workglow/dataset": "0.0.92",
40
- "@workglow/job-queue": "0.0.92",
41
- "@workglow/storage": "0.0.92",
42
- "@workglow/task-graph": "0.0.92",
43
- "@workglow/util": "0.0.92"
39
+ "@workglow/dataset": "0.0.94",
40
+ "@workglow/job-queue": "0.0.94",
41
+ "@workglow/storage": "0.0.94",
42
+ "@workglow/task-graph": "0.0.94",
43
+ "@workglow/util": "0.0.94"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@workglow/dataset": {
@@ -60,10 +60,10 @@
60
60
  }
61
61
  },
62
62
  "devDependencies": {
63
- "@workglow/dataset": "0.0.92",
64
- "@workglow/job-queue": "0.0.92",
65
- "@workglow/storage": "0.0.92",
66
- "@workglow/task-graph": "0.0.92",
67
- "@workglow/util": "0.0.92"
63
+ "@workglow/dataset": "0.0.94",
64
+ "@workglow/job-queue": "0.0.94",
65
+ "@workglow/storage": "0.0.94",
66
+ "@workglow/task-graph": "0.0.94",
67
+ "@workglow/util": "0.0.94"
68
68
  }
69
69
  }