@valerypopoff/rivet2-core 2.29.0 → 2.31.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/dist/cjs/bundle.cjs +259 -17
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/cjs/interpolationRuntime.cjs +1 -1
- package/dist/cjs/interpolationRuntime.cjs.map +2 -2
- package/dist/esm/exports.js +1 -0
- package/dist/esm/model/ExecutorSessionProtocol.js +233 -0
- package/dist/esm/model/classifier/providers.js +10 -5
- package/dist/esm/model/classifier/subq.js +5 -2
- package/dist/esm/model/nodes/AssemblePromptNode.js +18 -8
- package/dist/esm/utils/coerceType.js +1 -1
- package/dist/esm/utils/projectComparison/identity.js +10 -3
- package/dist/esm/utils/projectComparison.js +12 -2
- package/dist/types/exports.d.ts +1 -0
- package/dist/types/model/ExecutorProtocol.d.ts +3 -0
- package/dist/types/model/ExecutorSessionProtocol.d.ts +56 -0
- package/dist/types/model/classifier/providers.d.ts +1 -1
- package/dist/types/model/classifier/subq.d.ts +10 -2
- package/dist/types/model/nodes/AssemblePromptNode.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1186,7 +1186,7 @@ function coerceToChatMessageRaw(value) {
|
|
|
1186
1186
|
if (value.type === "string") {
|
|
1187
1187
|
return { type: "user", message: value.value };
|
|
1188
1188
|
}
|
|
1189
|
-
if (value.type === "object" && "type" in value.value && "message" in value.value && typeof value.value.type === "string" && typeof value.value.message === "string") {
|
|
1189
|
+
if (value.type === "object" && "type" in value.value && "message" in value.value && typeof value.value.type === "string" && (typeof value.value.message === "string" || Array.isArray(value.value.message))) {
|
|
1190
1190
|
return value.value;
|
|
1191
1191
|
}
|
|
1192
1192
|
if (value.type === "any") {
|