@alpic80/rivet-core 1.19.1-aidon.2 → 1.19.1-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.
- package/dist/cjs/bundle.cjs +215 -98
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/esm/model/Nodes.js +3 -0
- package/dist/esm/model/nodes/ImageToMDNode.js +116 -0
- package/dist/esm/plugins/aidon/nodes/ChatAidonNode.js +1 -1
- package/dist/types/model/Nodes.d.ts +3 -2
- package/dist/types/model/nodes/ImageToMDNode.d.ts +20 -0
- package/package.json +1 -1
package/dist/cjs/bundle.cjs
CHANGED
|
@@ -76,6 +76,7 @@ __export(src_exports, {
|
|
|
76
76
|
IfElseNodeImpl: () => IfElseNodeImpl,
|
|
77
77
|
IfNodeImpl: () => IfNodeImpl,
|
|
78
78
|
ImageNodeImpl: () => ImageNodeImpl,
|
|
79
|
+
ImageToMDNodeImpl: () => ImageToMDNodeImpl,
|
|
79
80
|
InMemoryDatasetProvider: () => InMemoryDatasetProvider,
|
|
80
81
|
JoinNodeImpl: () => JoinNodeImpl,
|
|
81
82
|
ListGraphsNodeImpl: () => ListGraphsNodeImpl,
|
|
@@ -199,6 +200,7 @@ __export(src_exports, {
|
|
|
199
200
|
ifElseNode: () => ifElseNode,
|
|
200
201
|
ifNode: () => ifNode,
|
|
201
202
|
imageNode: () => imageNode,
|
|
203
|
+
imageToMDNode: () => imageToMDNode,
|
|
202
204
|
inferType: () => inferType,
|
|
203
205
|
isArrayDataType: () => isArrayDataType,
|
|
204
206
|
isArrayDataValue: () => isArrayDataValue,
|
|
@@ -1437,7 +1439,7 @@ var DEFAULT_CHAT_NODE_TIMEOUT = 3e4;
|
|
|
1437
1439
|
var import_lodash_es13 = require("lodash");
|
|
1438
1440
|
var import_p_queue = __toESM(require("p-queue-6"), 1);
|
|
1439
1441
|
var import_emittery2 = __toESM(require("emittery-0-13"), 1);
|
|
1440
|
-
var
|
|
1442
|
+
var import_non_secure68 = require("nanoid/non-secure");
|
|
1441
1443
|
var import_ts_pattern10 = require("ts-pattern");
|
|
1442
1444
|
|
|
1443
1445
|
// src/model/NodeImpl.ts
|
|
@@ -8748,12 +8750,125 @@ var CommentNodeImpl = class extends NodeImpl {
|
|
|
8748
8750
|
};
|
|
8749
8751
|
var commentNode = nodeDefinition(CommentNodeImpl, "Comment");
|
|
8750
8752
|
|
|
8751
|
-
// src/model/nodes/
|
|
8753
|
+
// src/model/nodes/ImageToMDNode.ts
|
|
8752
8754
|
var import_non_secure53 = require("nanoid/non-secure");
|
|
8755
|
+
var import_ts_dedent52 = require("ts-dedent");
|
|
8756
|
+
var ImageToMDNodeImpl = class extends NodeImpl {
|
|
8757
|
+
static create() {
|
|
8758
|
+
const chartNode = {
|
|
8759
|
+
type: "imagetoMD",
|
|
8760
|
+
title: "Image To Markdown",
|
|
8761
|
+
id: (0, import_non_secure53.nanoid)(),
|
|
8762
|
+
visualData: {
|
|
8763
|
+
x: 0,
|
|
8764
|
+
y: 0,
|
|
8765
|
+
width: 175
|
|
8766
|
+
},
|
|
8767
|
+
data: {
|
|
8768
|
+
useDataInput: false,
|
|
8769
|
+
mediaType: "image/png",
|
|
8770
|
+
useMediaTypeInput: false
|
|
8771
|
+
}
|
|
8772
|
+
};
|
|
8773
|
+
return chartNode;
|
|
8774
|
+
}
|
|
8775
|
+
getInputDefinitions() {
|
|
8776
|
+
const inputDefinitions = [];
|
|
8777
|
+
if (this.chartNode.data.useDataInput) {
|
|
8778
|
+
inputDefinitions.push({
|
|
8779
|
+
id: "data",
|
|
8780
|
+
title: "Data",
|
|
8781
|
+
dataType: "image",
|
|
8782
|
+
coerced: false
|
|
8783
|
+
});
|
|
8784
|
+
}
|
|
8785
|
+
if (this.chartNode.data.useMediaTypeInput) {
|
|
8786
|
+
inputDefinitions.push({
|
|
8787
|
+
id: "mediaType",
|
|
8788
|
+
title: "Media Type",
|
|
8789
|
+
dataType: "string"
|
|
8790
|
+
});
|
|
8791
|
+
}
|
|
8792
|
+
return inputDefinitions;
|
|
8793
|
+
}
|
|
8794
|
+
getOutputDefinitions() {
|
|
8795
|
+
return [
|
|
8796
|
+
{
|
|
8797
|
+
id: "imageMarkdown",
|
|
8798
|
+
title: "Image",
|
|
8799
|
+
dataType: "string"
|
|
8800
|
+
}
|
|
8801
|
+
];
|
|
8802
|
+
}
|
|
8803
|
+
getEditors() {
|
|
8804
|
+
return [
|
|
8805
|
+
{
|
|
8806
|
+
type: "dropdown",
|
|
8807
|
+
label: "Media Type",
|
|
8808
|
+
dataKey: "mediaType",
|
|
8809
|
+
options: [
|
|
8810
|
+
{ value: "image/png", label: "PNG" },
|
|
8811
|
+
{ value: "image/jpeg", label: "JPEG" },
|
|
8812
|
+
{ value: "image/gif", label: "GIF" }
|
|
8813
|
+
],
|
|
8814
|
+
useInputToggleDataKey: "useMediaTypeInput"
|
|
8815
|
+
},
|
|
8816
|
+
{
|
|
8817
|
+
type: "imageBrowser",
|
|
8818
|
+
label: "Image",
|
|
8819
|
+
dataKey: "data",
|
|
8820
|
+
useInputToggleDataKey: "useDataInput",
|
|
8821
|
+
mediaTypeDataKey: "mediaType"
|
|
8822
|
+
}
|
|
8823
|
+
];
|
|
8824
|
+
}
|
|
8825
|
+
getBody() {
|
|
8826
|
+
return this.data.mediaType;
|
|
8827
|
+
}
|
|
8828
|
+
static getUIData() {
|
|
8829
|
+
return {
|
|
8830
|
+
infoBoxBody: import_ts_dedent52.dedent`
|
|
8831
|
+
Turns the input value (image byte array) into its Markdown equivalent.
|
|
8832
|
+
`,
|
|
8833
|
+
infoBoxTitle: "Image to Markdown Node",
|
|
8834
|
+
contextMenuTitle: "Image to Markdown",
|
|
8835
|
+
group: ["Data"]
|
|
8836
|
+
};
|
|
8837
|
+
}
|
|
8838
|
+
async process(inputData, context) {
|
|
8839
|
+
var _a, _b;
|
|
8840
|
+
let data;
|
|
8841
|
+
if (this.chartNode.data.useDataInput) {
|
|
8842
|
+
const imageData = expectType(inputData["data"], "image");
|
|
8843
|
+
data = await uint8ArrayToBase64(imageData.data);
|
|
8844
|
+
} else {
|
|
8845
|
+
const dataRef = (_a = this.data.data) == null ? void 0 : _a.refId;
|
|
8846
|
+
if (!dataRef) {
|
|
8847
|
+
throw new Error("No data ref");
|
|
8848
|
+
}
|
|
8849
|
+
const encodedData = (_b = context.project.data) == null ? void 0 : _b[dataRef];
|
|
8850
|
+
if (!encodedData) {
|
|
8851
|
+
throw new Error(`No data at ref ${dataRef}`);
|
|
8852
|
+
}
|
|
8853
|
+
data = encodedData;
|
|
8854
|
+
}
|
|
8855
|
+
data = ``;
|
|
8856
|
+
return {
|
|
8857
|
+
["imageMarkdown"]: {
|
|
8858
|
+
type: "string",
|
|
8859
|
+
value: data
|
|
8860
|
+
}
|
|
8861
|
+
};
|
|
8862
|
+
}
|
|
8863
|
+
};
|
|
8864
|
+
var imageToMDNode = nodeDefinition(ImageToMDNodeImpl, "Image To Markdown");
|
|
8865
|
+
|
|
8866
|
+
// src/model/nodes/ImageNode.ts
|
|
8867
|
+
var import_non_secure54 = require("nanoid/non-secure");
|
|
8753
8868
|
var ImageNodeImpl = class extends NodeImpl {
|
|
8754
8869
|
static create() {
|
|
8755
8870
|
return {
|
|
8756
|
-
id: (0,
|
|
8871
|
+
id: (0, import_non_secure54.nanoid)(),
|
|
8757
8872
|
type: "image",
|
|
8758
8873
|
title: "Image",
|
|
8759
8874
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -8850,11 +8965,11 @@ var ImageNodeImpl = class extends NodeImpl {
|
|
|
8850
8965
|
var imageNode = nodeDefinition(ImageNodeImpl, "Image");
|
|
8851
8966
|
|
|
8852
8967
|
// src/model/nodes/AudioNode.ts
|
|
8853
|
-
var
|
|
8968
|
+
var import_non_secure55 = require("nanoid/non-secure");
|
|
8854
8969
|
var AudioNodeImpl = class extends NodeImpl {
|
|
8855
8970
|
static create() {
|
|
8856
8971
|
return {
|
|
8857
|
-
id: (0,
|
|
8972
|
+
id: (0, import_non_secure55.nanoid)(),
|
|
8858
8973
|
type: "audio",
|
|
8859
8974
|
title: "Audio",
|
|
8860
8975
|
visualData: { x: 0, y: 0, width: 300 },
|
|
@@ -8947,13 +9062,13 @@ var AudioNodeImpl = class extends NodeImpl {
|
|
|
8947
9062
|
var audioNode = nodeDefinition(AudioNodeImpl, "Audio");
|
|
8948
9063
|
|
|
8949
9064
|
// src/model/nodes/HttpCallNode.ts
|
|
8950
|
-
var
|
|
9065
|
+
var import_non_secure56 = require("nanoid/non-secure");
|
|
8951
9066
|
var HttpCallNodeImpl = class extends NodeImpl {
|
|
8952
9067
|
static create() {
|
|
8953
9068
|
const chartNode = {
|
|
8954
9069
|
type: "httpCall",
|
|
8955
9070
|
title: "Http Call",
|
|
8956
|
-
id: (0,
|
|
9071
|
+
id: (0, import_non_secure56.nanoid)(),
|
|
8957
9072
|
visualData: {
|
|
8958
9073
|
x: 0,
|
|
8959
9074
|
y: 0,
|
|
@@ -9195,14 +9310,14 @@ Body: ${this.data.body}` : ""}${this.data.errorOnNon200 ? "\nError on non-200" :
|
|
|
9195
9310
|
var httpCallNode = nodeDefinition(HttpCallNodeImpl, "Http Call");
|
|
9196
9311
|
|
|
9197
9312
|
// src/model/nodes/DelayNode.ts
|
|
9198
|
-
var
|
|
9199
|
-
var
|
|
9313
|
+
var import_non_secure57 = require("nanoid/non-secure");
|
|
9314
|
+
var import_ts_dedent53 = require("ts-dedent");
|
|
9200
9315
|
var DelayNodeImpl = class extends NodeImpl {
|
|
9201
9316
|
static create() {
|
|
9202
9317
|
const chartNode = {
|
|
9203
9318
|
type: "delay",
|
|
9204
9319
|
title: "Delay",
|
|
9205
|
-
id: (0,
|
|
9320
|
+
id: (0, import_non_secure57.nanoid)(),
|
|
9206
9321
|
visualData: {
|
|
9207
9322
|
x: 0,
|
|
9208
9323
|
y: 0,
|
|
@@ -9247,7 +9362,7 @@ var DelayNodeImpl = class extends NodeImpl {
|
|
|
9247
9362
|
}
|
|
9248
9363
|
static getUIData() {
|
|
9249
9364
|
return {
|
|
9250
|
-
infoBoxBody:
|
|
9365
|
+
infoBoxBody: import_ts_dedent53.dedent`
|
|
9251
9366
|
Delays the execution and then passes the input value to the output without any modifications.
|
|
9252
9367
|
`,
|
|
9253
9368
|
infoBoxTitle: "Delay Node",
|
|
@@ -9298,12 +9413,12 @@ var DelayNodeImpl = class extends NodeImpl {
|
|
|
9298
9413
|
var delayNode = nodeDefinition(DelayNodeImpl, "Delay");
|
|
9299
9414
|
|
|
9300
9415
|
// src/model/nodes/AppendToDatasetNode.ts
|
|
9301
|
-
var
|
|
9302
|
-
var
|
|
9416
|
+
var import_non_secure58 = require("nanoid/non-secure");
|
|
9417
|
+
var import_ts_dedent54 = require("ts-dedent");
|
|
9303
9418
|
var AppendToDatasetNodeImpl = class extends NodeImpl {
|
|
9304
9419
|
static create() {
|
|
9305
9420
|
return {
|
|
9306
|
-
id: (0,
|
|
9421
|
+
id: (0, import_non_secure58.nanoid)(),
|
|
9307
9422
|
type: "appendToDataset",
|
|
9308
9423
|
title: "Append to Dataset",
|
|
9309
9424
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -9359,7 +9474,7 @@ var AppendToDatasetNodeImpl = class extends NodeImpl {
|
|
|
9359
9474
|
}
|
|
9360
9475
|
static getUIData() {
|
|
9361
9476
|
return {
|
|
9362
|
-
infoBoxBody:
|
|
9477
|
+
infoBoxBody: import_ts_dedent54.dedent`
|
|
9363
9478
|
Appends a row of data to the specified dataset.
|
|
9364
9479
|
`,
|
|
9365
9480
|
infoBoxTitle: "Append to Dataset Node",
|
|
@@ -9909,14 +10024,14 @@ var GetDatasetRowNodeImpl = class extends NodeImpl {
|
|
|
9909
10024
|
var getDatasetRowNode = nodeDefinition(GetDatasetRowNodeImpl, "Get Dataset Row");
|
|
9910
10025
|
|
|
9911
10026
|
// src/model/nodes/SliceNode.ts
|
|
9912
|
-
var
|
|
9913
|
-
var
|
|
10027
|
+
var import_non_secure59 = require("nanoid/non-secure");
|
|
10028
|
+
var import_ts_dedent55 = require("ts-dedent");
|
|
9914
10029
|
var SliceNodeImpl = class extends NodeImpl {
|
|
9915
10030
|
static create() {
|
|
9916
10031
|
const chartNode = {
|
|
9917
10032
|
type: "slice",
|
|
9918
10033
|
title: "Slice",
|
|
9919
|
-
id: (0,
|
|
10034
|
+
id: (0, import_non_secure59.nanoid)(),
|
|
9920
10035
|
visualData: {
|
|
9921
10036
|
x: 0,
|
|
9922
10037
|
y: 0,
|
|
@@ -9969,14 +10084,14 @@ var SliceNodeImpl = class extends NodeImpl {
|
|
|
9969
10084
|
];
|
|
9970
10085
|
}
|
|
9971
10086
|
getBody() {
|
|
9972
|
-
return
|
|
10087
|
+
return import_ts_dedent55.dedent`
|
|
9973
10088
|
Start: ${this.data.useStartInput ? "(Using Input)" : this.data.start == null ? "0" : this.data.start}
|
|
9974
10089
|
Count: ${this.data.useCountInput ? "(Using Input)" : this.data.count == null ? "All" : this.data.count}
|
|
9975
10090
|
`;
|
|
9976
10091
|
}
|
|
9977
10092
|
static getUIData() {
|
|
9978
10093
|
return {
|
|
9979
|
-
infoBoxBody:
|
|
10094
|
+
infoBoxBody: import_ts_dedent55.dedent`
|
|
9980
10095
|
Slices an array from the start index for the count number of elements.
|
|
9981
10096
|
|
|
9982
10097
|
Useful for extracting a portion of an array.
|
|
@@ -10002,14 +10117,14 @@ var SliceNodeImpl = class extends NodeImpl {
|
|
|
10002
10117
|
var sliceNode = nodeDefinition(SliceNodeImpl, "Slice");
|
|
10003
10118
|
|
|
10004
10119
|
// src/model/nodes/ExtractMarkdownCodeBlocksNode.ts
|
|
10005
|
-
var
|
|
10006
|
-
var
|
|
10120
|
+
var import_non_secure60 = require("nanoid/non-secure");
|
|
10121
|
+
var import_ts_dedent56 = require("ts-dedent");
|
|
10007
10122
|
var ExtractMarkdownCodeBlocksNodeImpl = class extends NodeImpl {
|
|
10008
10123
|
static create() {
|
|
10009
10124
|
const chartNode = {
|
|
10010
10125
|
type: "extractMarkdownCodeBlocks",
|
|
10011
10126
|
title: "Extract Markdown Code Blocks",
|
|
10012
|
-
id: (0,
|
|
10127
|
+
id: (0, import_non_secure60.nanoid)(),
|
|
10013
10128
|
visualData: {
|
|
10014
10129
|
x: 0,
|
|
10015
10130
|
y: 0,
|
|
@@ -10050,7 +10165,7 @@ var ExtractMarkdownCodeBlocksNodeImpl = class extends NodeImpl {
|
|
|
10050
10165
|
}
|
|
10051
10166
|
static getUIData() {
|
|
10052
10167
|
return {
|
|
10053
|
-
infoBoxBody:
|
|
10168
|
+
infoBoxBody: import_ts_dedent56.dedent`
|
|
10054
10169
|
Extracts the code blocks in the input Markdown text.
|
|
10055
10170
|
|
|
10056
10171
|
Outputs the first matched block, all matched blocks, and the languages specified for the blocks.
|
|
@@ -10101,7 +10216,7 @@ var extractMarkdownCodeBlocksNode = nodeDefinition(
|
|
|
10101
10216
|
);
|
|
10102
10217
|
|
|
10103
10218
|
// src/model/nodes/AssembleMessageNode.ts
|
|
10104
|
-
var
|
|
10219
|
+
var import_non_secure61 = require("nanoid/non-secure");
|
|
10105
10220
|
var import_lodash_es12 = require("lodash");
|
|
10106
10221
|
var import_ts_pattern9 = require("ts-pattern");
|
|
10107
10222
|
var messageTypeToTitle = {
|
|
@@ -10115,7 +10230,7 @@ var AssembleMessageNodeImpl = class extends NodeImpl {
|
|
|
10115
10230
|
const chartNode = {
|
|
10116
10231
|
type: "assembleMessage",
|
|
10117
10232
|
title: "Assemble Message",
|
|
10118
|
-
id: (0,
|
|
10233
|
+
id: (0, import_non_secure61.nanoid)(),
|
|
10119
10234
|
visualData: {
|
|
10120
10235
|
x: 0,
|
|
10121
10236
|
y: 0,
|
|
@@ -10303,13 +10418,13 @@ var AssembleMessageNodeImpl = class extends NodeImpl {
|
|
|
10303
10418
|
var assembleMessageNode = nodeDefinition(AssembleMessageNodeImpl, "Assemble Prompt");
|
|
10304
10419
|
|
|
10305
10420
|
// src/model/nodes/URLReferenceNode.ts
|
|
10306
|
-
var
|
|
10421
|
+
var import_non_secure62 = require("nanoid/non-secure");
|
|
10307
10422
|
var UrlReferenceNodeImpl = class extends NodeImpl {
|
|
10308
10423
|
static create() {
|
|
10309
10424
|
const chartNode = {
|
|
10310
10425
|
type: "urlReference",
|
|
10311
10426
|
title: "URL Reference",
|
|
10312
|
-
id: (0,
|
|
10427
|
+
id: (0, import_non_secure62.nanoid)(),
|
|
10313
10428
|
visualData: {
|
|
10314
10429
|
x: 0,
|
|
10315
10430
|
y: 0,
|
|
@@ -10378,15 +10493,15 @@ var UrlReferenceNodeImpl = class extends NodeImpl {
|
|
|
10378
10493
|
var urlReferenceNode = nodeDefinition(UrlReferenceNodeImpl, "URL Reference");
|
|
10379
10494
|
|
|
10380
10495
|
// src/model/nodes/DestructureNode.ts
|
|
10381
|
-
var
|
|
10496
|
+
var import_non_secure63 = require("nanoid/non-secure");
|
|
10382
10497
|
var import_jsonpath_plus3 = require("jsonpath-plus");
|
|
10383
|
-
var
|
|
10498
|
+
var import_ts_dedent57 = require("ts-dedent");
|
|
10384
10499
|
var DestructureNodeImpl = class extends NodeImpl {
|
|
10385
10500
|
static create() {
|
|
10386
10501
|
const chartNode = {
|
|
10387
10502
|
type: "destructure",
|
|
10388
10503
|
title: "Destructure",
|
|
10389
|
-
id: (0,
|
|
10504
|
+
id: (0, import_non_secure63.nanoid)(),
|
|
10390
10505
|
visualData: {
|
|
10391
10506
|
x: 0,
|
|
10392
10507
|
y: 0,
|
|
@@ -10430,7 +10545,7 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
10430
10545
|
}
|
|
10431
10546
|
static getUIData() {
|
|
10432
10547
|
return {
|
|
10433
|
-
infoBoxBody:
|
|
10548
|
+
infoBoxBody: import_ts_dedent57.dedent`
|
|
10434
10549
|
Destructures the input value by extracting values at the specified paths. The paths use JSONPath notation to navigate through the value.
|
|
10435
10550
|
`,
|
|
10436
10551
|
infoBoxTitle: "Destructure Node",
|
|
@@ -10459,12 +10574,12 @@ var DestructureNodeImpl = class extends NodeImpl {
|
|
|
10459
10574
|
var destructureNode = nodeDefinition(DestructureNodeImpl, "Destructure");
|
|
10460
10575
|
|
|
10461
10576
|
// src/model/nodes/ReplaceDatasetNode.ts
|
|
10462
|
-
var
|
|
10463
|
-
var
|
|
10577
|
+
var import_non_secure64 = require("nanoid/non-secure");
|
|
10578
|
+
var import_ts_dedent58 = require("ts-dedent");
|
|
10464
10579
|
var ReplaceDatasetNodeImpl = class extends NodeImpl {
|
|
10465
10580
|
static create() {
|
|
10466
10581
|
return {
|
|
10467
|
-
id: (0,
|
|
10582
|
+
id: (0, import_non_secure64.nanoid)(),
|
|
10468
10583
|
type: "replaceDataset",
|
|
10469
10584
|
title: "Replace Dataset",
|
|
10470
10585
|
visualData: { x: 0, y: 0, width: 250 },
|
|
@@ -10503,7 +10618,7 @@ var ReplaceDatasetNodeImpl = class extends NodeImpl {
|
|
|
10503
10618
|
}
|
|
10504
10619
|
static getUIData() {
|
|
10505
10620
|
return {
|
|
10506
|
-
infoBoxBody:
|
|
10621
|
+
infoBoxBody: import_ts_dedent58.dedent`
|
|
10507
10622
|
Replaces the data in a dataset with the given data. If no data is given, the dataset will be cleared instead.
|
|
10508
10623
|
`,
|
|
10509
10624
|
infoBoxTitle: "Replace Dataset Node",
|
|
@@ -10635,14 +10750,14 @@ var ListGraphsNodeImpl = class extends NodeImpl {
|
|
|
10635
10750
|
var listGraphsNode = nodeDefinition(ListGraphsNodeImpl, "List Graphs");
|
|
10636
10751
|
|
|
10637
10752
|
// src/model/nodes/GraphReferenceNode.ts
|
|
10638
|
-
var
|
|
10639
|
-
var
|
|
10753
|
+
var import_non_secure65 = require("nanoid/non-secure");
|
|
10754
|
+
var import_ts_dedent59 = require("ts-dedent");
|
|
10640
10755
|
var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
10641
10756
|
static create() {
|
|
10642
10757
|
const chartNode = {
|
|
10643
10758
|
type: "graphReference",
|
|
10644
10759
|
title: "Graph Reference",
|
|
10645
|
-
id: (0,
|
|
10760
|
+
id: (0, import_non_secure65.nanoid)(),
|
|
10646
10761
|
visualData: {
|
|
10647
10762
|
x: 0,
|
|
10648
10763
|
y: 0,
|
|
@@ -10691,7 +10806,7 @@ var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
|
10691
10806
|
}
|
|
10692
10807
|
static getUIData() {
|
|
10693
10808
|
return {
|
|
10694
|
-
infoBoxBody:
|
|
10809
|
+
infoBoxBody: import_ts_dedent59.dedent`
|
|
10695
10810
|
Gets a reference to another graph, that can be used to pass around graphs to call using a Call Graph node.
|
|
10696
10811
|
`,
|
|
10697
10812
|
infoBoxTitle: "Graph Reference Node",
|
|
@@ -10757,14 +10872,14 @@ var GraphReferenceNodeImpl = class extends NodeImpl {
|
|
|
10757
10872
|
var graphReferenceNode = nodeDefinition(GraphReferenceNodeImpl, "Graph Reference");
|
|
10758
10873
|
|
|
10759
10874
|
// src/model/nodes/CallGraphNode.ts
|
|
10760
|
-
var
|
|
10761
|
-
var
|
|
10875
|
+
var import_non_secure66 = require("nanoid/non-secure");
|
|
10876
|
+
var import_ts_dedent60 = require("ts-dedent");
|
|
10762
10877
|
var CallGraphNodeImpl = class extends NodeImpl {
|
|
10763
10878
|
static create() {
|
|
10764
10879
|
const chartNode = {
|
|
10765
10880
|
type: "callGraph",
|
|
10766
10881
|
title: "Call Graph",
|
|
10767
|
-
id: (0,
|
|
10882
|
+
id: (0, import_non_secure66.nanoid)(),
|
|
10768
10883
|
visualData: {
|
|
10769
10884
|
x: 0,
|
|
10770
10885
|
y: 0,
|
|
@@ -10814,7 +10929,7 @@ var CallGraphNodeImpl = class extends NodeImpl {
|
|
|
10814
10929
|
}
|
|
10815
10930
|
static getUIData() {
|
|
10816
10931
|
return {
|
|
10817
|
-
infoBoxBody:
|
|
10932
|
+
infoBoxBody: import_ts_dedent60.dedent`
|
|
10818
10933
|
Calls another graph and passes inputs to it. Use in combination with the Graph Reference node to call dynamic graphs.
|
|
10819
10934
|
`,
|
|
10820
10935
|
infoBoxTitle: "Call Graph Node",
|
|
@@ -10886,7 +11001,7 @@ var callGraphNode = nodeDefinition(CallGraphNodeImpl, "Call Graph");
|
|
|
10886
11001
|
|
|
10887
11002
|
// src/model/nodes/DelegateFunctionCallNode.ts
|
|
10888
11003
|
var import_nanoid = require("nanoid");
|
|
10889
|
-
var
|
|
11004
|
+
var import_ts_dedent61 = require("ts-dedent");
|
|
10890
11005
|
var DelegateFunctionCallNodeImpl = class extends NodeImpl {
|
|
10891
11006
|
static create() {
|
|
10892
11007
|
const chartNode = {
|
|
@@ -10935,7 +11050,7 @@ var DelegateFunctionCallNodeImpl = class extends NodeImpl {
|
|
|
10935
11050
|
}
|
|
10936
11051
|
static getUIData() {
|
|
10937
11052
|
return {
|
|
10938
|
-
infoBoxBody:
|
|
11053
|
+
infoBoxBody: import_ts_dedent61.dedent`
|
|
10939
11054
|
Handles a function call by delegating it to a different subgraph depending on the function call.
|
|
10940
11055
|
`,
|
|
10941
11056
|
infoBoxTitle: "Delegate Function Call Node",
|
|
@@ -11023,11 +11138,11 @@ var DelegateFunctionCallNodeImpl = class extends NodeImpl {
|
|
|
11023
11138
|
var delegateFunctionCallNode = nodeDefinition(DelegateFunctionCallNodeImpl, "Delegate Function Call");
|
|
11024
11139
|
|
|
11025
11140
|
// src/model/nodes/PlayAudioNode.ts
|
|
11026
|
-
var
|
|
11141
|
+
var import_non_secure67 = require("nanoid/non-secure");
|
|
11027
11142
|
var PlayAudioNodeImpl = class extends NodeImpl {
|
|
11028
11143
|
static create() {
|
|
11029
11144
|
return {
|
|
11030
|
-
id: (0,
|
|
11145
|
+
id: (0, import_non_secure67.nanoid)(),
|
|
11031
11146
|
type: "playAudio",
|
|
11032
11147
|
title: "Play Audio",
|
|
11033
11148
|
visualData: { x: 0, y: 0, width: 200 },
|
|
@@ -11082,7 +11197,7 @@ var playAudioNode = nodeDefinition(PlayAudioNodeImpl, "Play Audio");
|
|
|
11082
11197
|
|
|
11083
11198
|
// src/model/Nodes.ts
|
|
11084
11199
|
var registerBuiltInNodes = (registry2) => {
|
|
11085
|
-
return registry2.register(toYamlNode).register(userInputNode).register(textNode).register(chatNode).register(promptNode).register(extractRegexNode).register(codeNode).register(matchNode).register(ifNode).register(readDirectoryNode).register(readFileNode).register(ifElseNode).register(chunkNode).register(graphInputNode).register(graphOutputNode).register(subGraphNode).register(arrayNode).register(extractJsonNode).register(assemblePromptNode).register(loopControllerNode).register(trimChatMessagesNode).register(extractYamlNode).register(externalCallNode).register(extractObjectPathNode).register(raiseEventNode).register(contextNode).register(coalesceNode).register(passthroughNode).register(popNode).register(setGlobalNode).register(getGlobalNode).register(waitForEventNode).register(gptFunctionNode).register(getEmbeddingNode).register(vectorStoreNode).register(vectorNearestNeighborsNode).register(hashNode).register(abortGraphNode).register(raceInputsNode).register(toJsonNode).register(joinNode).register(filterNode).register(objectNode).register(booleanNode).register(compareNode).register(evaluateNode).register(numberNode).register(randomNumberNode).register(shuffleNode).register(commentNode).register(imageNode).register(audioNode).register(httpCallNode).register(delayNode).register(appendToDatasetNode).register(createDatasetNode).register(loadDatasetNode).register(getAllDatasetsNode).register(splitNode).register(datasetNearestNeighborsNode).register(getDatasetRowNode).register(sliceNode).register(extractMarkdownCodeBlocksNode).register(assembleMessageNode).register(urlReferenceNode).register(destructureNode).register(replaceDatasetNode).register(listGraphsNode).register(graphReferenceNode).register(callGraphNode).register(delegateFunctionCallNode).register(playAudioNode);
|
|
11200
|
+
return registry2.register(toYamlNode).register(userInputNode).register(textNode).register(chatNode).register(promptNode).register(extractRegexNode).register(codeNode).register(matchNode).register(ifNode).register(readDirectoryNode).register(readFileNode).register(ifElseNode).register(chunkNode).register(graphInputNode).register(graphOutputNode).register(subGraphNode).register(arrayNode).register(extractJsonNode).register(assemblePromptNode).register(loopControllerNode).register(trimChatMessagesNode).register(extractYamlNode).register(externalCallNode).register(extractObjectPathNode).register(raiseEventNode).register(contextNode).register(coalesceNode).register(passthroughNode).register(popNode).register(setGlobalNode).register(getGlobalNode).register(waitForEventNode).register(gptFunctionNode).register(getEmbeddingNode).register(vectorStoreNode).register(vectorNearestNeighborsNode).register(hashNode).register(abortGraphNode).register(raceInputsNode).register(toJsonNode).register(joinNode).register(filterNode).register(objectNode).register(booleanNode).register(compareNode).register(evaluateNode).register(numberNode).register(randomNumberNode).register(shuffleNode).register(commentNode).register(imageToMDNode).register(imageNode).register(audioNode).register(httpCallNode).register(delayNode).register(appendToDatasetNode).register(createDatasetNode).register(loadDatasetNode).register(getAllDatasetsNode).register(splitNode).register(datasetNearestNeighborsNode).register(getDatasetRowNode).register(sliceNode).register(extractMarkdownCodeBlocksNode).register(assembleMessageNode).register(urlReferenceNode).register(destructureNode).register(replaceDatasetNode).register(listGraphsNode).register(graphReferenceNode).register(callGraphNode).register(delegateFunctionCallNode).register(playAudioNode);
|
|
11086
11201
|
};
|
|
11087
11202
|
var globalRivetNodeRegistry = registerBuiltInNodes(new NodeRegistration());
|
|
11088
11203
|
function resetGlobalRivetNodeRegistry() {
|
|
@@ -11174,7 +11289,7 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
11174
11289
|
#isPaused = false;
|
|
11175
11290
|
#parent;
|
|
11176
11291
|
#registry;
|
|
11177
|
-
id = (0,
|
|
11292
|
+
id = (0, import_non_secure68.nanoid)();
|
|
11178
11293
|
executor;
|
|
11179
11294
|
/** If set, specifies the node(s) that the graph will run TO, instead of the nodes without any dependents. */
|
|
11180
11295
|
runToNodeIds;
|
|
@@ -11722,7 +11837,7 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
11722
11837
|
return;
|
|
11723
11838
|
}
|
|
11724
11839
|
const inputValues = this.#getInputValuesForNode(node);
|
|
11725
|
-
if (this.#excludedDueToControlFlow(node, inputValues, (0,
|
|
11840
|
+
if (this.#excludedDueToControlFlow(node, inputValues, (0, import_non_secure68.nanoid)(), "loop-not-broken")) {
|
|
11726
11841
|
this.#emitter.emit("trace", `Node ${node.title} is excluded due to control flow`);
|
|
11727
11842
|
return;
|
|
11728
11843
|
}
|
|
@@ -11856,7 +11971,7 @@ var GraphProcessor = class _GraphProcessor {
|
|
|
11856
11971
|
return nodeData;
|
|
11857
11972
|
}
|
|
11858
11973
|
async #processNode(node) {
|
|
11859
|
-
const processId = (0,
|
|
11974
|
+
const processId = (0, import_non_secure68.nanoid)();
|
|
11860
11975
|
if (this.#abortController.signal.aborted) {
|
|
11861
11976
|
this.#nodeErrored(node, new Error("Processing aborted"), processId);
|
|
11862
11977
|
return processId;
|
|
@@ -12465,7 +12580,7 @@ var OpenAIEmbeddingGenerator = class {
|
|
|
12465
12580
|
registerIntegration("embeddingGenerator", "openai", (context) => new OpenAIEmbeddingGenerator(context.settings));
|
|
12466
12581
|
|
|
12467
12582
|
// src/recording/ExecutionRecorder.ts
|
|
12468
|
-
var
|
|
12583
|
+
var import_non_secure69 = require("nanoid/non-secure");
|
|
12469
12584
|
var import_emittery3 = __toESM(require("emittery-0-13"), 1);
|
|
12470
12585
|
var toRecordedEventMap = {
|
|
12471
12586
|
graphStart: ({ graph, inputs }) => ({ graphId: graph.metadata.id, inputs }),
|
|
@@ -12575,7 +12690,7 @@ var ExecutionRecorder = class _ExecutionRecorder {
|
|
|
12575
12690
|
once = void 0;
|
|
12576
12691
|
recordSocket(channel) {
|
|
12577
12692
|
return new Promise((resolve, reject) => {
|
|
12578
|
-
this.recordingId = (0,
|
|
12693
|
+
this.recordingId = (0, import_non_secure69.nanoid)();
|
|
12579
12694
|
const listener = (event) => {
|
|
12580
12695
|
const { message, data } = JSON.parse(event.data);
|
|
12581
12696
|
if (this.#includePartialOutputs === false && message === "partialOutput") {
|
|
@@ -12597,7 +12712,7 @@ var ExecutionRecorder = class _ExecutionRecorder {
|
|
|
12597
12712
|
});
|
|
12598
12713
|
}
|
|
12599
12714
|
record(processor) {
|
|
12600
|
-
this.recordingId = (0,
|
|
12715
|
+
this.recordingId = (0, import_non_secure69.nanoid)();
|
|
12601
12716
|
processor.onAny((event, data) => {
|
|
12602
12717
|
if (this.#includePartialOutputs === false && event === "partialOutput") {
|
|
12603
12718
|
return;
|
|
@@ -12646,7 +12761,7 @@ var ExecutionRecorder = class _ExecutionRecorder {
|
|
|
12646
12761
|
|
|
12647
12762
|
// src/plugins/aidon/nodes/ChatAidonNode.ts
|
|
12648
12763
|
var import_lodash_es14 = require("lodash");
|
|
12649
|
-
var
|
|
12764
|
+
var import_ts_dedent62 = require("ts-dedent");
|
|
12650
12765
|
var registry = globalRivetNodeRegistry;
|
|
12651
12766
|
var ChatAidonNodeImpl = class extends ChatNodeImpl {
|
|
12652
12767
|
create() {
|
|
@@ -12814,7 +12929,7 @@ var createPluginNodeImpl = (chatNode2) => {
|
|
|
12814
12929
|
impl.chartNode.data = data;
|
|
12815
12930
|
const outputs = impl.getOutputDefinitions();
|
|
12816
12931
|
return outputs.filter((output) => {
|
|
12817
|
-
return
|
|
12932
|
+
return output.id !== "function-calls";
|
|
12818
12933
|
});
|
|
12819
12934
|
},
|
|
12820
12935
|
getEditors(data) {
|
|
@@ -12827,7 +12942,7 @@ var createPluginNodeImpl = (chatNode2) => {
|
|
|
12827
12942
|
},
|
|
12828
12943
|
getUIData() {
|
|
12829
12944
|
return {
|
|
12830
|
-
infoBoxBody:
|
|
12945
|
+
infoBoxBody: import_ts_dedent62.dedent`
|
|
12831
12946
|
Makes a call to an Aidon chat model. The settings contains many options for tweaking the model's behavior.
|
|
12832
12947
|
`,
|
|
12833
12948
|
infoBoxTitle: "Chat (Aidon) Node",
|
|
@@ -13157,8 +13272,8 @@ var AnthropicError = class extends Error {
|
|
|
13157
13272
|
};
|
|
13158
13273
|
|
|
13159
13274
|
// src/plugins/anthropic/nodes/ChatAnthropicNode.ts
|
|
13160
|
-
var
|
|
13161
|
-
var
|
|
13275
|
+
var import_non_secure70 = require("nanoid/non-secure");
|
|
13276
|
+
var import_ts_dedent63 = require("ts-dedent");
|
|
13162
13277
|
var import_p_retry2 = __toESM(require("p-retry-4"), 1);
|
|
13163
13278
|
var import_ts_pattern11 = require("ts-pattern");
|
|
13164
13279
|
|
|
@@ -13174,7 +13289,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
13174
13289
|
const chartNode = {
|
|
13175
13290
|
type: "chatAnthropic",
|
|
13176
13291
|
title: "Chat (Anthropic)",
|
|
13177
|
-
id: (0,
|
|
13292
|
+
id: (0, import_non_secure70.nanoid)(),
|
|
13178
13293
|
visualData: {
|
|
13179
13294
|
x: 0,
|
|
13180
13295
|
y: 0,
|
|
@@ -13297,7 +13412,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
13297
13412
|
getBody(data) {
|
|
13298
13413
|
var _a;
|
|
13299
13414
|
const modelName = ((_a = anthropicModels[data.model]) == null ? void 0 : _a.displayName) ?? "Unknown Model";
|
|
13300
|
-
return
|
|
13415
|
+
return import_ts_dedent63.dedent`
|
|
13301
13416
|
${modelName}
|
|
13302
13417
|
${data.useTopP ? `Top P: ${data.useTopPInput ? "(Using Input)" : data.top_p}` : `Temperature: ${data.useTemperatureInput ? "(Using Input)" : data.temperature}`}
|
|
13303
13418
|
Max Tokens: ${data.maxTokens}
|
|
@@ -13371,7 +13486,7 @@ var ChatAnthropicNodeImpl = {
|
|
|
13371
13486
|
},
|
|
13372
13487
|
getUIData() {
|
|
13373
13488
|
return {
|
|
13374
|
-
infoBoxBody:
|
|
13489
|
+
infoBoxBody: import_ts_dedent63.dedent`
|
|
13375
13490
|
Makes a call to an Anthropic chat model. The settings contains many options for tweaking the model's behavior.
|
|
13376
13491
|
`,
|
|
13377
13492
|
infoBoxTitle: "Chat (Anthropic) Node",
|
|
@@ -13800,8 +13915,8 @@ var anthropicPlugin = {
|
|
|
13800
13915
|
var anthropic_default = anthropicPlugin;
|
|
13801
13916
|
|
|
13802
13917
|
// src/plugins/autoevals/AutoEvalsNode.ts
|
|
13803
|
-
var
|
|
13804
|
-
var
|
|
13918
|
+
var import_non_secure71 = require("nanoid/non-secure");
|
|
13919
|
+
var import_ts_dedent64 = require("ts-dedent");
|
|
13805
13920
|
var import_autoevals = require("autoevals");
|
|
13806
13921
|
var import_ts_pattern12 = require("ts-pattern");
|
|
13807
13922
|
var options = [
|
|
@@ -13820,7 +13935,7 @@ var AutoEvalsNodeImpl = {
|
|
|
13820
13935
|
const chartNode = {
|
|
13821
13936
|
type: "autoevals",
|
|
13822
13937
|
title: "Autoevals",
|
|
13823
|
-
id: (0,
|
|
13938
|
+
id: (0, import_non_secure71.nanoid)(),
|
|
13824
13939
|
visualData: {
|
|
13825
13940
|
x: 0,
|
|
13826
13941
|
y: 0,
|
|
@@ -13935,7 +14050,7 @@ var AutoEvalsNodeImpl = {
|
|
|
13935
14050
|
},
|
|
13936
14051
|
getUIData() {
|
|
13937
14052
|
return {
|
|
13938
|
-
infoBoxBody:
|
|
14053
|
+
infoBoxBody: import_ts_dedent64.dedent`
|
|
13939
14054
|
Evaluates the validity of a response using the autoevals library.
|
|
13940
14055
|
`,
|
|
13941
14056
|
infoBoxTitle: "Autoevals Node",
|
|
@@ -14015,8 +14130,8 @@ var autoevalsPlugin = {
|
|
|
14015
14130
|
var autoevals_default = autoevalsPlugin;
|
|
14016
14131
|
|
|
14017
14132
|
// src/plugins/assemblyAi/LemurQaNode.ts
|
|
14018
|
-
var
|
|
14019
|
-
var
|
|
14133
|
+
var import_non_secure72 = require("nanoid/non-secure");
|
|
14134
|
+
var import_ts_dedent65 = require("ts-dedent");
|
|
14020
14135
|
|
|
14021
14136
|
// src/plugins/assemblyAi/lemurHelpers.ts
|
|
14022
14137
|
var import_assemblyai = require("assemblyai");
|
|
@@ -14136,7 +14251,7 @@ var LemurQaNodeImpl = {
|
|
|
14136
14251
|
const chartNode = {
|
|
14137
14252
|
type: "assemblyAiLemurQa",
|
|
14138
14253
|
title: "LeMUR Question & Answers",
|
|
14139
|
-
id: (0,
|
|
14254
|
+
id: (0, import_non_secure72.nanoid)(),
|
|
14140
14255
|
visualData: {
|
|
14141
14256
|
x: 0,
|
|
14142
14257
|
y: 0,
|
|
@@ -14202,7 +14317,7 @@ var LemurQaNodeImpl = {
|
|
|
14202
14317
|
},
|
|
14203
14318
|
getUIData() {
|
|
14204
14319
|
return {
|
|
14205
|
-
infoBoxBody:
|
|
14320
|
+
infoBoxBody: import_ts_dedent65.dedent`Use AssemblyAI LeMUR to ask questions about transcripts`,
|
|
14206
14321
|
infoBoxTitle: "Use AssemblyAI LeMUR Question & Answer",
|
|
14207
14322
|
contextMenuTitle: "LeMUR Q&A",
|
|
14208
14323
|
group: ["AI", "AssemblyAI"]
|
|
@@ -14274,14 +14389,14 @@ function applyQuestionEditors(data, question) {
|
|
|
14274
14389
|
var lemurQaNode = pluginNodeDefinition(LemurQaNodeImpl, "LeMUR Q&A");
|
|
14275
14390
|
|
|
14276
14391
|
// src/plugins/assemblyAi/TranscribeAudioNode.ts
|
|
14277
|
-
var
|
|
14278
|
-
var
|
|
14392
|
+
var import_non_secure73 = require("nanoid/non-secure");
|
|
14393
|
+
var import_ts_dedent66 = require("ts-dedent");
|
|
14279
14394
|
var TranscribeAudioNodeImpl = {
|
|
14280
14395
|
create() {
|
|
14281
14396
|
const chartNode = {
|
|
14282
14397
|
type: "assemblyAiTranscribeAudio",
|
|
14283
14398
|
title: "Transcribe Audio",
|
|
14284
|
-
id: (0,
|
|
14399
|
+
id: (0, import_non_secure73.nanoid)(),
|
|
14285
14400
|
visualData: {
|
|
14286
14401
|
x: 0,
|
|
14287
14402
|
y: 0,
|
|
@@ -14336,7 +14451,7 @@ var TranscribeAudioNodeImpl = {
|
|
|
14336
14451
|
},
|
|
14337
14452
|
getUIData() {
|
|
14338
14453
|
return {
|
|
14339
|
-
infoBoxBody:
|
|
14454
|
+
infoBoxBody: import_ts_dedent66.dedent`Use AssemblyAI to transcribe audio`,
|
|
14340
14455
|
infoBoxTitle: "Transcribe Audio Node",
|
|
14341
14456
|
contextMenuTitle: "Transcribe Audio",
|
|
14342
14457
|
group: ["AI", "AssemblyAI"]
|
|
@@ -14395,15 +14510,15 @@ function getAdditionalParameters(data) {
|
|
|
14395
14510
|
}
|
|
14396
14511
|
|
|
14397
14512
|
// src/plugins/assemblyAi/LemurSummaryNode.ts
|
|
14398
|
-
var
|
|
14399
|
-
var
|
|
14513
|
+
var import_non_secure74 = require("nanoid/non-secure");
|
|
14514
|
+
var import_ts_dedent67 = require("ts-dedent");
|
|
14400
14515
|
var import_assemblyai3 = require("assemblyai");
|
|
14401
14516
|
var LemurSummaryNodeImpl = {
|
|
14402
14517
|
create() {
|
|
14403
14518
|
const chartNode = {
|
|
14404
14519
|
type: "assemblyAiLemurSummary",
|
|
14405
14520
|
title: "LeMUR Summary",
|
|
14406
|
-
id: (0,
|
|
14521
|
+
id: (0, import_non_secure74.nanoid)(),
|
|
14407
14522
|
visualData: {
|
|
14408
14523
|
x: 0,
|
|
14409
14524
|
y: 0,
|
|
@@ -14449,7 +14564,7 @@ var LemurSummaryNodeImpl = {
|
|
|
14449
14564
|
},
|
|
14450
14565
|
getUIData() {
|
|
14451
14566
|
return {
|
|
14452
|
-
infoBoxBody:
|
|
14567
|
+
infoBoxBody: import_ts_dedent67.dedent`Use AssemblyAI LeMUR Summary to summarize transcripts`,
|
|
14453
14568
|
infoBoxTitle: "Use AssemblyAI LeMUR Summary",
|
|
14454
14569
|
contextMenuTitle: "LeMUR Summary",
|
|
14455
14570
|
group: ["AI", "AssemblyAI"]
|
|
@@ -14473,15 +14588,15 @@ var LemurSummaryNodeImpl = {
|
|
|
14473
14588
|
var lemurSummaryNode = pluginNodeDefinition(LemurSummaryNodeImpl, "LeMUR Summary");
|
|
14474
14589
|
|
|
14475
14590
|
// src/plugins/assemblyAi/LemurTaskNode.ts
|
|
14476
|
-
var
|
|
14477
|
-
var
|
|
14591
|
+
var import_non_secure75 = require("nanoid/non-secure");
|
|
14592
|
+
var import_ts_dedent68 = require("ts-dedent");
|
|
14478
14593
|
var import_assemblyai4 = require("assemblyai");
|
|
14479
14594
|
var LemurTaskNodeImpl = {
|
|
14480
14595
|
create() {
|
|
14481
14596
|
const chartNode = {
|
|
14482
14597
|
type: "assemblyAiLemurTask",
|
|
14483
14598
|
title: "LeMUR Task",
|
|
14484
|
-
id: (0,
|
|
14599
|
+
id: (0, import_non_secure75.nanoid)(),
|
|
14485
14600
|
visualData: {
|
|
14486
14601
|
x: 0,
|
|
14487
14602
|
y: 0,
|
|
@@ -14527,7 +14642,7 @@ var LemurTaskNodeImpl = {
|
|
|
14527
14642
|
},
|
|
14528
14643
|
getUIData() {
|
|
14529
14644
|
return {
|
|
14530
|
-
infoBoxBody:
|
|
14645
|
+
infoBoxBody: import_ts_dedent68.dedent`Use AssemblyAI LeMUR Custom Task to ask anything.`,
|
|
14531
14646
|
infoBoxTitle: "Use AssemblyAI LeMUR Custom Task",
|
|
14532
14647
|
contextMenuTitle: "LeMUR Custom Task",
|
|
14533
14648
|
group: ["AI", "AssemblyAI"]
|
|
@@ -14553,14 +14668,14 @@ var LemurTaskNodeImpl = {
|
|
|
14553
14668
|
var lemurTaskNode = pluginNodeDefinition(LemurTaskNodeImpl, "LeMUR Task");
|
|
14554
14669
|
|
|
14555
14670
|
// src/plugins/assemblyAi/LemurActionItemsNode.ts
|
|
14556
|
-
var
|
|
14557
|
-
var
|
|
14671
|
+
var import_non_secure76 = require("nanoid/non-secure");
|
|
14672
|
+
var import_ts_dedent69 = require("ts-dedent");
|
|
14558
14673
|
var LemurActionItemsNodeImpl = {
|
|
14559
14674
|
create() {
|
|
14560
14675
|
const chartNode = {
|
|
14561
14676
|
type: "assemblyAiLemurActionItems",
|
|
14562
14677
|
title: "LeMUR Action Items",
|
|
14563
|
-
id: (0,
|
|
14678
|
+
id: (0, import_non_secure76.nanoid)(),
|
|
14564
14679
|
visualData: {
|
|
14565
14680
|
x: 0,
|
|
14566
14681
|
y: 0,
|
|
@@ -14606,7 +14721,7 @@ var LemurActionItemsNodeImpl = {
|
|
|
14606
14721
|
},
|
|
14607
14722
|
getUIData() {
|
|
14608
14723
|
return {
|
|
14609
|
-
infoBoxBody:
|
|
14724
|
+
infoBoxBody: import_ts_dedent69.dedent`Use AssemblyAI LeMUR Action Items to extract action items`,
|
|
14610
14725
|
infoBoxTitle: "Use AssemblyAI LeMUR Action Items",
|
|
14611
14726
|
contextMenuTitle: "LeMUR Action Items",
|
|
14612
14727
|
group: ["AI", "AssemblyAI"]
|
|
@@ -14658,12 +14773,12 @@ var assemblyAiPlugin = {
|
|
|
14658
14773
|
var assemblyAi_default = assemblyAiPlugin;
|
|
14659
14774
|
|
|
14660
14775
|
// src/plugins/huggingface/nodes/ChatHuggingFace.ts
|
|
14661
|
-
var
|
|
14776
|
+
var import_non_secure77 = require("nanoid/non-secure");
|
|
14662
14777
|
var import_inference = require("@huggingface/inference");
|
|
14663
14778
|
var ChatHuggingFaceNodeImpl = {
|
|
14664
14779
|
create() {
|
|
14665
14780
|
return {
|
|
14666
|
-
id: (0,
|
|
14781
|
+
id: (0, import_non_secure77.nanoid)(),
|
|
14667
14782
|
type: "chatHuggingFace",
|
|
14668
14783
|
data: {
|
|
14669
14784
|
model: "",
|
|
@@ -14893,13 +15008,13 @@ var ChatHuggingFaceNodeImpl = {
|
|
|
14893
15008
|
var chatHuggingFaceNode = pluginNodeDefinition(ChatHuggingFaceNodeImpl, "Chat (Hugging Face)");
|
|
14894
15009
|
|
|
14895
15010
|
// src/plugins/huggingface/nodes/TextToImageHuggingFace.ts
|
|
14896
|
-
var
|
|
15011
|
+
var import_non_secure78 = require("nanoid/non-secure");
|
|
14897
15012
|
var import_inference2 = require("@huggingface/inference");
|
|
14898
|
-
var
|
|
15013
|
+
var import_ts_dedent70 = require("ts-dedent");
|
|
14899
15014
|
var TextToImageHuggingFaceNodeImpl = {
|
|
14900
15015
|
create() {
|
|
14901
15016
|
return {
|
|
14902
|
-
id: (0,
|
|
15017
|
+
id: (0, import_non_secure78.nanoid)(),
|
|
14903
15018
|
type: "textToImageHuggingFace",
|
|
14904
15019
|
data: {
|
|
14905
15020
|
model: "",
|
|
@@ -15040,7 +15155,7 @@ var TextToImageHuggingFaceNodeImpl = {
|
|
|
15040
15155
|
];
|
|
15041
15156
|
},
|
|
15042
15157
|
getBody(data) {
|
|
15043
|
-
return
|
|
15158
|
+
return import_ts_dedent70.dedent`
|
|
15044
15159
|
Model: ${data.useModelInput ? "(Using Input)" : data.model}
|
|
15045
15160
|
`;
|
|
15046
15161
|
},
|
|
@@ -18020,8 +18135,8 @@ async function* streamChatCompletions3({
|
|
|
18020
18135
|
}
|
|
18021
18136
|
|
|
18022
18137
|
// src/plugins/google/nodes/ChatGoogleNode.ts
|
|
18023
|
-
var
|
|
18024
|
-
var
|
|
18138
|
+
var import_non_secure79 = require("nanoid/non-secure");
|
|
18139
|
+
var import_ts_dedent71 = require("ts-dedent");
|
|
18025
18140
|
var import_p_retry3 = __toESM(require("p-retry-4"), 1);
|
|
18026
18141
|
var import_ts_pattern14 = require("ts-pattern");
|
|
18027
18142
|
var cache3 = /* @__PURE__ */ new Map();
|
|
@@ -18030,7 +18145,7 @@ var ChatGoogleNodeImpl = {
|
|
|
18030
18145
|
const chartNode = {
|
|
18031
18146
|
type: "chatGoogle",
|
|
18032
18147
|
title: "Chat (Google)",
|
|
18033
|
-
id: (0,
|
|
18148
|
+
id: (0, import_non_secure79.nanoid)(),
|
|
18034
18149
|
visualData: {
|
|
18035
18150
|
x: 0,
|
|
18036
18151
|
y: 0,
|
|
@@ -18123,7 +18238,7 @@ var ChatGoogleNodeImpl = {
|
|
|
18123
18238
|
},
|
|
18124
18239
|
getBody(data) {
|
|
18125
18240
|
var _a;
|
|
18126
|
-
return
|
|
18241
|
+
return import_ts_dedent71.dedent`
|
|
18127
18242
|
${((_a = googleModels[data.model]) == null ? void 0 : _a.displayName) ?? `Google (${data.model})`}
|
|
18128
18243
|
${data.useTopP ? `Top P: ${data.useTopPInput ? "(Using Input)" : data.top_p}` : `Temperature: ${data.useTemperatureInput ? "(Using Input)" : data.temperature}`}
|
|
18129
18244
|
Max Tokens: ${data.maxTokens}
|
|
@@ -18185,7 +18300,7 @@ var ChatGoogleNodeImpl = {
|
|
|
18185
18300
|
},
|
|
18186
18301
|
getUIData() {
|
|
18187
18302
|
return {
|
|
18188
|
-
infoBoxBody:
|
|
18303
|
+
infoBoxBody: import_ts_dedent71.dedent`
|
|
18189
18304
|
Makes a call to an Google chat model. The settings contains many options for tweaking the model's behavior.
|
|
18190
18305
|
`,
|
|
18191
18306
|
infoBoxTitle: "Chat (Google) Node",
|
|
@@ -18786,6 +18901,7 @@ var Rivet2 = void 0;
|
|
|
18786
18901
|
IfElseNodeImpl,
|
|
18787
18902
|
IfNodeImpl,
|
|
18788
18903
|
ImageNodeImpl,
|
|
18904
|
+
ImageToMDNodeImpl,
|
|
18789
18905
|
InMemoryDatasetProvider,
|
|
18790
18906
|
JoinNodeImpl,
|
|
18791
18907
|
ListGraphsNodeImpl,
|
|
@@ -18909,6 +19025,7 @@ var Rivet2 = void 0;
|
|
|
18909
19025
|
ifElseNode,
|
|
18910
19026
|
ifNode,
|
|
18911
19027
|
imageNode,
|
|
19028
|
+
imageToMDNode,
|
|
18912
19029
|
inferType,
|
|
18913
19030
|
isArrayDataType,
|
|
18914
19031
|
isArrayDataValue,
|