@valerypopoff/rivet2-core 2.1.10 → 2.4.0
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 +1 -1
- package/dist/cjs/bundle.cjs +2604 -949
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/cjs/webAppRuntime.cjs +1549 -99
- package/dist/cjs/webAppRuntime.cjs.map +4 -4
- package/dist/esm/api/createProcessor.js +4 -0
- package/dist/esm/exports.js +2 -0
- package/dist/esm/integrations/CodeRunner.js +2 -7
- package/dist/esm/integrations/CodeRunnerOptions.js +7 -0
- package/dist/esm/model/AgentResponseTrace.js +137 -11
- package/dist/esm/model/GraphProcessor.js +28 -0
- package/dist/esm/model/NodeExclusionPolicy.js +9 -1
- package/dist/esm/model/ProcessContextBuilder.js +2 -1
- package/dist/esm/model/RecordingPlayer.js +58 -5
- package/dist/esm/model/SubprocessorBridge.js +2 -0
- package/dist/esm/model/UiGraphActionProtocol.js +47 -4
- package/dist/esm/model/UiGraphBrowserRuntime.js +15 -1
- package/dist/esm/model/UiGraphIndexedDbPersistence.js +523 -0
- package/dist/esm/model/UiGraphRendererStyles.js +14 -0
- package/dist/esm/model/WebAppBrowserStorage.js +653 -0
- package/dist/esm/model/WebAppBrowserStorageRpc.js +200 -0
- package/dist/esm/model/chat-v2/aiSdkBridge.js +146 -14
- package/dist/esm/model/chat-v2/chatV2CallObserver.js +3 -0
- package/dist/esm/model/chat-v2/chatV2CredentialNames.js +93 -0
- package/dist/esm/model/chat-v2/chatV2EditorCache.js +8 -38
- package/dist/esm/model/chat-v2/chatV2Pipeline.js +41 -4
- package/dist/esm/model/chat-v2/chatV2ProviderProfile.js +31 -2
- package/dist/esm/model/chat-v2/chatV2ResponseBodyCapture.js +10 -2
- package/dist/esm/model/chat-v2/chatV2RuntimeOptions.js +6 -11
- package/dist/esm/model/chat-v2/chatV2Shared.js +1 -1
- package/dist/esm/model/chat-v2/chatV2Types.js +16 -0
- package/dist/esm/model/chat-v2/customProviderApi.js +0 -2
- package/dist/esm/model/chat-v2/index.js +3 -0
- package/dist/esm/model/chat-v2/llmChatV2Body.js +9 -1
- package/dist/esm/model/chat-v2/llmChatV2CachePolicy.js +5 -0
- package/dist/esm/model/chat-v2/llmChatV2NodeData.js +7 -0
- package/dist/esm/model/chat-v2/llmChatV2NodeEditors.js +95 -14
- package/dist/esm/model/chat-v2/llmChatV2NodeRuntime.js +33 -9
- package/dist/esm/model/chat-v2/llmChatV2OutputClone.js +42 -0
- package/dist/esm/model/chat-v2/llmInvocationCoordinator.js +31 -2
- package/dist/esm/model/chat-v2/llmModelCandidate.js +5 -1
- package/dist/esm/model/chat-v2/llmProfile.js +58 -0
- package/dist/esm/model/chat-v2/llmProfileBody.js +10 -0
- package/dist/esm/model/chat-v2/llmProfileFallback.js +406 -8
- package/dist/esm/model/chat-v2/llmProfileFieldRegistry.js +7 -0
- package/dist/esm/model/chat-v2/llmProfileHealthStore.js +328 -0
- package/dist/esm/model/chat-v2/llmProfileNodeRuntime.js +57 -34
- package/dist/esm/model/chat-v2/providerOptions.js +33 -7
- package/dist/esm/model/chat-v2/toolContinuation.js +27 -1
- package/dist/esm/model/nodes/CodeNewNode.js +5 -47
- package/dist/esm/model/nodes/CodeNode.js +4 -46
- package/dist/esm/model/nodes/ExpressionNode.js +5 -8
- package/dist/esm/model/nodes/LLMChatV2Node.js +31 -3
- package/dist/esm/model/nodes/MatchNode.js +86 -41
- package/dist/esm/plugins/gentrace/gentraceSdk.js +0 -1
- package/dist/esm/plugins/gentrace/index.js +0 -1
- package/dist/esm/plugins/gentrace/plugin.js +61 -179
- package/dist/esm/plugins.js +1 -2
- package/dist/esm/recording/ExecutionRecorder.js +50 -8
- package/dist/esm/webAppRuntime.js +5 -2
- package/dist/types/api/createProcessor.d.ts +5 -0
- package/dist/types/exports.d.ts +2 -0
- package/dist/types/integrations/CodeRunner.d.ts +10 -7
- package/dist/types/integrations/CodeRunnerOptions.d.ts +15 -0
- package/dist/types/model/AgentResponseTrace.d.ts +15 -1
- package/dist/types/model/EditorDefinition.d.ts +16 -0
- package/dist/types/model/ExecutorProtocol.d.ts +17 -6
- package/dist/types/model/GraphProcessor.d.ts +17 -5
- package/dist/types/model/NodeBase.d.ts +0 -10
- package/dist/types/model/NodeExclusionPolicy.d.ts +6 -0
- package/dist/types/model/Nodes.d.ts +2 -2
- package/dist/types/model/ProcessContext.d.ts +85 -0
- package/dist/types/model/ProcessContextBuilder.d.ts +2 -1
- package/dist/types/model/UiGraphActionProtocol.d.ts +9 -3
- package/dist/types/model/UiGraphBrowserRuntime.d.ts +6 -0
- package/dist/types/model/UiGraphIndexedDbPersistence.d.ts +50 -0
- package/dist/types/model/UiGraphRendererStyles.d.ts +1 -1
- package/dist/types/model/WebAppBrowserStorage.d.ts +90 -0
- package/dist/types/model/WebAppBrowserStorageRpc.d.ts +85 -0
- package/dist/types/model/chat-v2/chatV2CredentialNames.d.ts +30 -0
- package/dist/types/model/chat-v2/chatV2EditorCache.d.ts +1 -0
- package/dist/types/model/chat-v2/chatV2ProviderProfile.d.ts +3 -0
- package/dist/types/model/chat-v2/chatV2ResponseBodyCapture.d.ts +8 -2
- package/dist/types/model/chat-v2/chatV2RuntimeOptions.d.ts +3 -8
- package/dist/types/model/chat-v2/chatV2Types.d.ts +27 -1
- package/dist/types/model/chat-v2/customProviderApi.d.ts +0 -1
- package/dist/types/model/chat-v2/index.d.ts +3 -0
- package/dist/types/model/chat-v2/llmChatV2CachePolicy.d.ts +1 -1
- package/dist/types/model/chat-v2/llmChatV2NodeData.d.ts +10 -1
- package/dist/types/model/chat-v2/llmChatV2OutputClone.d.ts +3 -0
- package/dist/types/model/chat-v2/llmInvocationCoordinator.d.ts +5 -1
- package/dist/types/model/chat-v2/llmModelCandidate.d.ts +2 -0
- package/dist/types/model/chat-v2/llmProfile.d.ts +14 -0
- package/dist/types/model/chat-v2/llmProfileBody.d.ts +1 -1
- package/dist/types/model/chat-v2/llmProfileFallback.d.ts +25 -2
- package/dist/types/model/chat-v2/llmProfileFieldRegistry.d.ts +26 -6
- package/dist/types/model/chat-v2/llmProfileHealthStore.d.ts +121 -0
- package/dist/types/model/chat-v2/llmProfileNodeRuntime.d.ts +1 -1
- package/dist/types/model/chat-v2/llmProfileTypes.d.ts +9 -0
- package/dist/types/model/chat-v2/providerOptions.d.ts +2 -0
- package/dist/types/model/chat-v2/toolContinuation.d.ts +14 -0
- package/dist/types/model/nodes/CodeNewNode.d.ts +0 -5
- package/dist/types/model/nodes/CodeNode.d.ts +0 -5
- package/dist/types/model/nodes/MatchNode.d.ts +6 -0
- package/dist/types/plugins/gentrace/gentraceSdk.d.ts +0 -1
- package/dist/types/plugins/gentrace/plugin.d.ts +55 -9
- package/dist/types/plugins.d.ts +1 -1
- package/dist/types/recording/ExecutionRecorder.d.ts +7 -1
- package/dist/types/recording/RecordedEvents.d.ts +11 -0
- package/dist/types/webAppRuntime.d.ts +8 -2
- package/package.json +2 -2
|
@@ -95,6 +95,17 @@ export type RecordedEventsMap = OverrideProperties<ProcessEvents, {
|
|
|
95
95
|
processId: ProcessId;
|
|
96
96
|
progress: ProcessEvents['progress']['progress'];
|
|
97
97
|
}>;
|
|
98
|
+
/** Display-only output page for one completed logical LLM Chat round. */
|
|
99
|
+
llmChatOutputSnapshot: WithOptionalExecution<{
|
|
100
|
+
nodeId: NodeId;
|
|
101
|
+
processId: ProcessId;
|
|
102
|
+
entryId: string;
|
|
103
|
+
roundIndex: number;
|
|
104
|
+
splitIndex: number;
|
|
105
|
+
kind: ProcessEvents['llmChatOutputSnapshot']['kind'];
|
|
106
|
+
outcome: ProcessEvents['llmChatOutputSnapshot']['outcome'];
|
|
107
|
+
outputs: Outputs;
|
|
108
|
+
}>;
|
|
98
109
|
/** Called when the outputs of a node have been cleared entirely. If processId is present, only the one process() should be cleared. */
|
|
99
110
|
nodeOutputsCleared: WithOptionalExecution<{
|
|
100
111
|
nodeId: NodeId;
|
|
@@ -4,9 +4,15 @@ export type { RivetWebAppClientMessage, RivetWebAppRunEvent, RivetWebAppServerMe
|
|
|
4
4
|
export type { GraphProgress } from './model/GraphProgress.js';
|
|
5
5
|
export type { AgentResponseTrace } from './model/AgentResponseTrace.js';
|
|
6
6
|
export { isAgentResponseTrace } from './model/AgentResponseTrace.js';
|
|
7
|
+
export type { WebAppBrowserStorage, WebAppBrowserStorageBatchChange, WebAppBrowserStorageChange, WebAppBrowserStorageCommitResult, WebAppBrowserStorageEstimate, WebAppBrowserStorageMigration, WebAppBrowserStorageNamespace, WebAppBrowserStorageScope, WebAppBrowserStorageStatus, } from './model/WebAppBrowserStorage.js';
|
|
8
|
+
export { IndexedDbWebAppBrowserStorage, RIVET_WEB_APP_BROWSER_STORAGE_CHUNK_BYTES, RIVET_WEB_APP_BROWSER_STORAGE_DATABASE, RIVET_WEB_APP_BROWSER_STORAGE_SCHEMA_VERSION, RIVET_WEB_APP_LEGACY_RETENTION_MS, WebAppBrowserStoragePersistenceError, } from './model/WebAppBrowserStorage.js';
|
|
9
|
+
export type { RivetWebAppBrowserStorageClientMessage, RivetWebAppBrowserStorageRpcAdvertisedLimits, RivetWebAppBrowserStorageServerMessage, RivetWebAppStorageCommitAckMessage, RivetWebAppStorageCommitStartMessage, RivetWebAppStorageErrorMessage, RivetWebAppStorageGetMessage, RivetWebAppStorageTransferAckMessage, RivetWebAppStorageTransferStartMessage, } from './model/WebAppBrowserStorageRpc.js';
|
|
10
|
+
export { decodeRivetWebAppStorageBinaryFrame, deserializeRivetWebAppStoredValue, deserializeRivetWebAppStoredValuePatch, encodeRivetWebAppStorageBinaryFrame, parseRivetWebAppBrowserStorageClientMessage, parseRivetWebAppBrowserStorageServerMessage, RIVET_WEB_APP_BROWSER_STORAGE_BINARY_FRAME_HEADER_BYTES, RIVET_WEB_APP_BROWSER_STORAGE_DEFAULT_MAX_ACTION_BYTES, RIVET_WEB_APP_BROWSER_STORAGE_DEFAULT_MAX_ACTIVE_BYTES, RIVET_WEB_APP_BROWSER_STORAGE_DEFAULT_MAX_VALUE_BYTES, RIVET_WEB_APP_BROWSER_STORAGE_DEFAULT_TRANSFER_TIMEOUT_MS, RIVET_WEB_APP_BROWSER_STORAGE_RPC_CAPABILITY, RIVET_WEB_APP_BROWSER_STORAGE_RPC_VERSION, RIVET_WEB_APP_BROWSER_STORAGE_SAFE_FALLBACK_BYTES, RIVET_WEB_APP_BROWSER_STORAGE_TRANSFER_CHUNK_BYTES, serializeRivetWebAppStoredValue, serializeRivetWebAppStoredValuePatch, splitRivetWebAppStorageTransfer, } from './model/WebAppBrowserStorageRpc.js';
|
|
11
|
+
export type { UiGraphBrowserPersistenceOptions, UiGraphBrowserPersistenceDiagnostic, UiGraphBrowserPersistenceWarning, } from './model/UiGraphIndexedDbPersistence.js';
|
|
12
|
+
export { UiGraphBrowserPersistence } from './model/UiGraphIndexedDbPersistence.js';
|
|
7
13
|
export type { RivetMarkdownSanitizerPolicy } from './model/MarkdownSanitizationPolicy.js';
|
|
8
14
|
export type { UiGraphChatMessagePresentation, UiGraphChatMessagePresentationOptions, UiGraphChatMessageTimestampPresentation, } from './model/UiGraphBrowserRuntime.js';
|
|
9
|
-
export { createUiGraphChatHistoryFlushStatePatch, createUiGraphChatMessageRemovalStatePatch, createUiGraphChatPinStatePatch, createUiGraphChatSubmissionStatePatch, getUiGraphActionState, getUiGraphChatDraftStateKey, getUiGraphChatMessagesStateKey, } from './model/UiGraph.js';
|
|
15
|
+
export { createUiGraphChatHistoryFlushStatePatch, createUiGraphChatMessageRemovalStatePatch, createUiGraphChatPinStatePatch, createUiGraphChatSubmissionStatePatch, getUiGraphActionState, getUiGraphChatDraftStateKey, getUiGraphChatMessagesStateKey, getUiGraphChatPinsStateKey, } from './model/UiGraph.js';
|
|
10
16
|
export { applyUiGraphStatePatch, createUiGraphActionExecutionController, createUiGraphInteractionController, getUiGraphComponentRenderModel, getUiGraphJsonOutputFilename, getUiGraphProgressiveJsonOutputChunks, } from './model/UiGraphRuntimeModel.js';
|
|
11
17
|
export { parseRivetWebAppClientMessage, parseRivetWebAppServerMessage, RIVET_WEB_APP_ACTION_PROTOCOL_VERSION, } from './model/UiGraphActionProtocol.js';
|
|
12
|
-
export { copyUiGraphText, applyUiGraphWebAppStorageActionPatch, applyUiGraphWebAppStoragePatch, clearUiGraphChatSearchMatches, downloadUiGraphJsonOutput, enhanceUiGraphChatJsonCodeBlocks, hasUiGraphChatPersistentStateChanged, getUiGraphChatPersistentState, getUiGraphChatMessagePresentations, getUiGraphChatStorageKey, getUiGraphWebAppStorageKey, highlightUiGraphChatSearchMatches, loadUiGraphChatPersistentState, loadUiGraphWebAppStorage, observeUiGraphOutputResizeBounds, revealUiGraphChatElement, revealUiGraphChatSearchMatch, saveUiGraphChatPersistentState, saveUiGraphResponseTrace, loadUiGraphResponseTrace, pruneUiGraphResponseTraces, } from './model/UiGraphBrowserRuntime.js';
|
|
18
|
+
export { copyUiGraphText, applyUiGraphWebAppStorageActionPatch, applyUiGraphWebAppStorageActionPatchAsync, applyUiGraphWebAppStoragePatch, clearUiGraphChatSearchMatches, downloadUiGraphJsonOutput, enhanceUiGraphChatJsonCodeBlocks, hasUiGraphChatPersistentStateChanged, getUiGraphChatPersistentState, getUiGraphChatMessagePresentations, getUiGraphChatStorageKey, getUiGraphResponseTraceStorageKey, getUiGraphWebAppStorageKey, highlightUiGraphChatSearchMatches, loadUiGraphChatPersistentState, loadUiGraphWebAppStorage, observeUiGraphOutputResizeBounds, revealUiGraphChatElement, revealUiGraphChatSearchMatch, saveUiGraphChatPersistentState, saveUiGraphResponseTrace, loadUiGraphResponseTrace, pruneUiGraphResponseTraces, } from './model/UiGraphBrowserRuntime.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valerypopoff/rivet2-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/cjs/bundle.cjs",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"mdast-util-to-markdown": "^2.1.2",
|
|
68
68
|
"minimatch": "^10.2.5",
|
|
69
69
|
"mustache": "^4.2.0",
|
|
70
|
-
"nanoid": "^3.3.
|
|
70
|
+
"nanoid": "^3.3.18",
|
|
71
71
|
"openai": "^4.28.4",
|
|
72
72
|
"p-queue": "^7.4.1",
|
|
73
73
|
"p-queue-6": "npm:p-queue@^6.0.0",
|