@alpic80/rivet-core 1.24.2-aidon.2 → 1.24.2-aidon.3
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.
|
@@ -123,10 +123,11 @@ spec) {
|
|
|
123
123
|
return new ReadableStream({
|
|
124
124
|
async start(controller) {
|
|
125
125
|
const userEventHandler = async (eventName, data) => {
|
|
126
|
-
|
|
126
|
+
const graphEvent = {
|
|
127
127
|
name: eventName,
|
|
128
128
|
message: coerceType(data, 'string')
|
|
129
|
-
}
|
|
129
|
+
};
|
|
130
|
+
sendEvent(controller, 'event', { graphEvent });
|
|
130
131
|
};
|
|
131
132
|
const streamEvents = createOnStreamUserEvents(spec.userStreamEvents, userEventHandler);
|
|
132
133
|
if (streamEvents) {
|
|
@@ -13,7 +13,6 @@ import { coerceTypeOptional } from '../utils/coerceType.js';
|
|
|
13
13
|
import { globalRivetNodeRegistry } from './Nodes.js';
|
|
14
14
|
import { getPluginConfig } from '../utils/index.js';
|
|
15
15
|
import { GptTokenizerTokenizer } from '../integrations/GptTokenizerTokenizer.js';
|
|
16
|
-
// eslint-disable-next-line import/no-cycle -- There has to be a cycle because CodeRunner needs to import the entirety of Rivet
|
|
17
16
|
import { IsomorphicCodeRunner } from '../integrations/CodeRunner.js';
|
|
18
17
|
// CJS compatibility, gets default.default for whatever reason
|
|
19
18
|
let PQueue = PQueueImport;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type NodeId, type Inputs, type Outputs, type GraphOutputs, type GraphProcessor, type DataValue, type RunGraphOptions } from '../index.js';
|
|
1
|
+
import { type NodeId, type Inputs, type Outputs, type GraphOutputs, type GraphProcessor, type DataValue, type RunGraphOptions, type GraphEvents } from '../index.js';
|
|
2
2
|
export type RivetEventStreamFilterSpec = {
|
|
3
3
|
/** Stream partial output deltas for the specified node IDs or node titles. */
|
|
4
4
|
partialOutputs?: string[] | true;
|
|
@@ -41,8 +41,7 @@ export type RivetEventStreamEvent = {
|
|
|
41
41
|
graphOutput: GraphOutputs;
|
|
42
42
|
};
|
|
43
43
|
event: {
|
|
44
|
-
|
|
45
|
-
message: string;
|
|
44
|
+
graphEvent: GraphEvents;
|
|
46
45
|
};
|
|
47
46
|
error: {
|
|
48
47
|
error: string;
|
|
@@ -126,6 +126,10 @@ export type ProcessEvent = {
|
|
|
126
126
|
}[keyof ProcessEvents];
|
|
127
127
|
export type GraphOutputs = Record<string, DataValue>;
|
|
128
128
|
export type GraphInputs = Record<string, DataValue>;
|
|
129
|
+
export type GraphEvents = {
|
|
130
|
+
name: string;
|
|
131
|
+
message: string;
|
|
132
|
+
};
|
|
129
133
|
export type NodeResults = Map<NodeId, Outputs>;
|
|
130
134
|
export type Inputs = Record<PortId, DataValue | undefined>;
|
|
131
135
|
export type Outputs = Record<PortId, DataValue | undefined>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@alpic80/rivet-core",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": "https://github.com/castortech/rivet",
|
|
5
|
-
"version": "1.24.2-aidon.
|
|
5
|
+
"version": "1.24.2-aidon.3",
|
|
6
6
|
"packageManager": "yarn@3.5.0",
|
|
7
7
|
"main": "dist/cjs/bundle.cjs",
|
|
8
8
|
"module": "dist/esm/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@google-cloud/vertexai": "^0.1.3",
|
|
49
49
|
"@google/genai": "^0.12.0",
|
|
50
50
|
"@huggingface/inference": "^2.6.4",
|
|
51
|
-
"@ironclad/rivet-core": "npm:@alpic80/rivet-core@1.24.2-aidon.
|
|
51
|
+
"@ironclad/rivet-core": "npm:@alpic80/rivet-core@1.24.2-aidon.3",
|
|
52
52
|
"assemblyai": "^4.6.0",
|
|
53
53
|
"autoevals": "^0.0.26",
|
|
54
54
|
"cron-parser": "^4.9.0",
|