pipeai 0.8.1 → 0.8.2
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 +17 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -775,6 +775,7 @@ declare class Workflow<TContext, TInput = void, TOutput = void, TGates extends R
|
|
|
775
775
|
step<TNextOutput>(id: string, fn: (params: {
|
|
776
776
|
ctx: Readonly<TContext>;
|
|
777
777
|
input: TOutput;
|
|
778
|
+
writer?: UIMessageStreamWriter;
|
|
778
779
|
}) => MaybePromise<TNextOutput>): Workflow<TContext, TInput, TNextOutput, TGates>;
|
|
779
780
|
gate<TResponse = TOutput, Id extends string = string>(id: Id & (Id extends keyof TGates ? never : Id), options?: {
|
|
780
781
|
payload?: (params: {
|
package/dist/index.d.ts
CHANGED
|
@@ -775,6 +775,7 @@ declare class Workflow<TContext, TInput = void, TOutput = void, TGates extends R
|
|
|
775
775
|
step<TNextOutput>(id: string, fn: (params: {
|
|
776
776
|
ctx: Readonly<TContext>;
|
|
777
777
|
input: TOutput;
|
|
778
|
+
writer?: UIMessageStreamWriter;
|
|
778
779
|
}) => MaybePromise<TNextOutput>): Workflow<TContext, TInput, TNextOutput, TGates>;
|
|
779
780
|
gate<TResponse = TOutput, Id extends string = string>(id: Id & (Id extends keyof TGates ? never : Id), options?: {
|
|
780
781
|
payload?: (params: {
|
package/dist/index.js
CHANGED
|
@@ -1309,7 +1309,10 @@ var Workflow = class _Workflow extends SealedWorkflow {
|
|
|
1309
1309
|
execute: async (state) => {
|
|
1310
1310
|
state.output = await fn({
|
|
1311
1311
|
ctx: state.ctx,
|
|
1312
|
-
input: state.output
|
|
1312
|
+
input: state.output,
|
|
1313
|
+
// Present in stream mode (undefined in generate mode), letting the
|
|
1314
|
+
// inline step emit UIMessageChunk parts onto the workflow's stream.
|
|
1315
|
+
writer: state.writer
|
|
1313
1316
|
});
|
|
1314
1317
|
}
|
|
1315
1318
|
};
|