@valerypopoff/rivet2-core 2.1.5 → 2.1.7
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/cjs/bundle.cjs +3198 -296
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/cjs/webAppRuntime.cjs +129 -4
- package/dist/cjs/webAppRuntime.cjs.map +2 -2
- package/dist/esm/api/createProcessor.js +1 -0
- package/dist/esm/exports.js +4 -0
- package/dist/esm/integrations/KnowledgeStore.js +1 -0
- package/dist/esm/integrations/KnowledgeStoreProvider.js +292 -0
- package/dist/esm/integrations/KnowledgeStoreValidation.js +428 -0
- package/dist/esm/integrations/ManagedKnowledgeStore.js +539 -0
- package/dist/esm/model/DataValue.js +22 -2
- package/dist/esm/model/GraphProcessor.js +14 -0
- package/dist/esm/model/Nodes.js +18 -0
- package/dist/esm/model/UiGraph.js +2 -2
- package/dist/esm/model/UiGraphBrowserRuntime.js +112 -1
- package/dist/esm/model/UiGraphRendererStyles.js +111 -9
- package/dist/esm/model/UiGraphRuntimeModel.js +26 -2
- package/dist/esm/model/chat/openAIChatRequest.js +8 -2
- package/dist/esm/model/chat-v2/chatV2RuntimeOptions.js +8 -8
- package/dist/esm/model/chat-v2/llmChatV2NodeEditors.js +3 -1
- package/dist/esm/model/chat-v2/parallelToolCalls.js +38 -0
- package/dist/esm/model/chat-v2/toolContinuation.js +39 -0
- package/dist/esm/model/nodes/BuildKnowledgeContextNode.js +157 -0
- package/dist/esm/model/nodes/GetKnowledgeSourceStatusNode.js +79 -0
- package/dist/esm/model/nodes/KnowledgeDocumentNode.js +88 -0
- package/dist/esm/model/nodes/KnowledgeSourceNode.js +94 -0
- package/dist/esm/model/nodes/PassthroughNode.js +36 -8
- package/dist/esm/model/nodes/SearchKnowledgeNode.js +127 -0
- package/dist/esm/model/nodes/StoredValueNodeUtils.js +10 -0
- package/dist/esm/model/nodes/SyncKnowledgeSourceNode.js +149 -0
- package/dist/esm/model/nodes/ToolNode.js +14 -0
- package/dist/esm/plugins/pinecone/PineconeKnowledgeStore.js +553 -0
- package/dist/esm/plugins/pinecone/plugin.js +32 -0
- package/dist/esm/utils/coerceType.js +24 -2
- package/dist/esm/utils/getPluginConfig.js +12 -6
- package/dist/esm/utils/serialization/serialization.js +4 -1
- package/dist/esm/utils/serialization/serializationUtils.js +59 -1
- package/dist/esm/webAppRuntime.js +1 -1
- package/dist/types/api/createProcessor.d.ts +2 -0
- package/dist/types/exports.d.ts +4 -0
- package/dist/types/integrations/KnowledgeStore.d.ts +131 -0
- package/dist/types/integrations/KnowledgeStoreProvider.d.ts +46 -0
- package/dist/types/integrations/KnowledgeStoreValidation.d.ts +16 -0
- package/dist/types/integrations/ManagedKnowledgeStore.d.ts +57 -0
- package/dist/types/model/DataValue.d.ts +10 -3
- package/dist/types/model/EditorDefinition.d.ts +7 -1
- package/dist/types/model/GraphProcessor.d.ts +2 -0
- package/dist/types/model/Nodes.d.ts +8 -2
- package/dist/types/model/ProcessContext.d.ts +3 -0
- package/dist/types/model/Project.d.ts +11 -0
- package/dist/types/model/UiGraph.d.ts +3 -1
- package/dist/types/model/UiGraphBrowserRuntime.d.ts +25 -1
- package/dist/types/model/UiGraphRendererStyles.d.ts +1 -1
- package/dist/types/model/chat-v2/parallelToolCalls.d.ts +9 -0
- package/dist/types/model/nodes/BuildKnowledgeContextNode.d.ts +23 -0
- package/dist/types/model/nodes/GetKnowledgeSourceStatusNode.d.ts +19 -0
- package/dist/types/model/nodes/KnowledgeDocumentNode.d.ts +26 -0
- package/dist/types/model/nodes/KnowledgeSourceNode.d.ts +25 -0
- package/dist/types/model/nodes/PassthroughNode.d.ts +15 -1
- package/dist/types/model/nodes/SearchKnowledgeNode.d.ts +25 -0
- package/dist/types/model/nodes/StoredValueNodeUtils.d.ts +1 -1
- package/dist/types/model/nodes/SyncKnowledgeSourceNode.d.ts +27 -0
- package/dist/types/model/nodes/ToolNode.d.ts +2 -0
- package/dist/types/plugins/pinecone/PineconeKnowledgeStore.d.ts +11 -0
- package/dist/types/utils/serialization/serializationUtils.d.ts +4 -0
- package/dist/types/webAppRuntime.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RivetKnowledgeStore } from '../../integrations/KnowledgeStore.js';
|
|
2
|
+
import type { KnowledgeStoreConnectionDefinition } from '../../model/Project.js';
|
|
3
|
+
import type { KnowledgeStoreProviderTestContext } from '../../integrations/KnowledgeStoreProvider.js';
|
|
4
|
+
import type { RuntimeSettings } from '../../model/Settings.js';
|
|
5
|
+
export declare function createPineconeKnowledgeStore(definition: KnowledgeStoreConnectionDefinition, settings: RuntimeSettings, credentials: Readonly<Record<string, string>>): RivetKnowledgeStore;
|
|
6
|
+
export declare function testPineconeKnowledgeConnection(definition: KnowledgeStoreConnectionDefinition, credentials: Record<string, string>, signal: AbortSignal, context: KnowledgeStoreProviderTestContext): Promise<void>;
|
|
7
|
+
export declare class PineconeKnowledgeError extends Error {
|
|
8
|
+
readonly status: number;
|
|
9
|
+
readonly providerBody: string;
|
|
10
|
+
constructor(message: string, status: number, providerBody: string);
|
|
11
|
+
}
|
|
@@ -7,6 +7,10 @@ export type ProjectValidationResult = {
|
|
|
7
7
|
errors: string[];
|
|
8
8
|
warnings: string[];
|
|
9
9
|
};
|
|
10
|
+
export declare class ProjectValidationError extends Error {
|
|
11
|
+
readonly validation: ProjectValidationResult;
|
|
12
|
+
constructor(validation: ProjectValidationResult);
|
|
13
|
+
}
|
|
10
14
|
/** Validates a deserialized project structure. Returns errors for structural problems. */
|
|
11
15
|
export declare function validateProject(project: unknown): ProjectValidationResult;
|
|
12
16
|
/** Quick structural check - throws on invalid project. */
|
|
@@ -3,7 +3,8 @@ export type { UiGraphInteractionSnapshot } from './model/UiGraphRuntimeModel.js'
|
|
|
3
3
|
export type { RivetWebAppClientMessage, RivetWebAppRunEvent, RivetWebAppServerMessage, } from './model/UiGraphActionProtocol.js';
|
|
4
4
|
export type { GraphProgress } from './model/GraphProgress.js';
|
|
5
5
|
export type { RivetMarkdownSanitizerPolicy } from './model/MarkdownSanitizationPolicy.js';
|
|
6
|
+
export type { UiGraphChatMessagePresentation, UiGraphChatMessagePresentationOptions, UiGraphChatMessageTimestampPresentation, } from './model/UiGraphBrowserRuntime.js';
|
|
6
7
|
export { createUiGraphChatHistoryFlushStatePatch, createUiGraphChatPinStatePatch, createUiGraphChatSubmissionStatePatch, getUiGraphActionState, getUiGraphChatDraftStateKey, getUiGraphChatMessagesStateKey, } from './model/UiGraph.js';
|
|
7
8
|
export { applyUiGraphStatePatch, createUiGraphActionExecutionController, createUiGraphInteractionController, getUiGraphComponentRenderModel, getUiGraphJsonOutputFilename, getUiGraphProgressiveJsonOutputChunks, } from './model/UiGraphRuntimeModel.js';
|
|
8
9
|
export { parseRivetWebAppClientMessage, parseRivetWebAppServerMessage, RIVET_WEB_APP_ACTION_PROTOCOL_VERSION, } from './model/UiGraphActionProtocol.js';
|
|
9
|
-
export { copyUiGraphText, applyUiGraphWebAppStorageActionPatch, applyUiGraphWebAppStoragePatch, clearUiGraphChatSearchMatches, downloadUiGraphJsonOutput, hasUiGraphChatPersistentStateChanged, getUiGraphChatPersistentState, getUiGraphChatStorageKey, getUiGraphWebAppStorageKey, highlightUiGraphChatSearchMatches, loadUiGraphChatPersistentState, loadUiGraphWebAppStorage, observeUiGraphOutputResizeBounds, revealUiGraphChatElement, revealUiGraphChatSearchMatch, saveUiGraphChatPersistentState, } from './model/UiGraphBrowserRuntime.js';
|
|
10
|
+
export { copyUiGraphText, applyUiGraphWebAppStorageActionPatch, applyUiGraphWebAppStoragePatch, clearUiGraphChatSearchMatches, downloadUiGraphJsonOutput, enhanceUiGraphChatJsonCodeBlocks, hasUiGraphChatPersistentStateChanged, getUiGraphChatPersistentState, getUiGraphChatMessagePresentations, getUiGraphChatStorageKey, getUiGraphWebAppStorageKey, highlightUiGraphChatSearchMatches, loadUiGraphChatPersistentState, loadUiGraphWebAppStorage, observeUiGraphOutputResizeBounds, revealUiGraphChatElement, revealUiGraphChatSearchMatch, saveUiGraphChatPersistentState, } from './model/UiGraphBrowserRuntime.js';
|