triangulum 0.40.0-x86_64-linux-gnu → 0.40.2-x86_64-linux-gnu

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecc9dc9c824783a81a6fd74242aff65d4a4c54b20223c31e59135129e44116e4
4
- data.tar.gz: e59bd9f67483aa99073be41d45b8ed58f088fdb73f2d5ed8b44abd211dc2bb9d
3
+ metadata.gz: 2ad30e5e7d2024f26ab8c38ae38ba65a9e61252f8cdcfdedbfabf2e00c40e4a5
4
+ data.tar.gz: b3a51c57c40a3ed310077c8cabe7a41b82b268758845a6a96f299b8703938c2c
5
5
  SHA512:
6
- metadata.gz: 7cf3474dcd72a01a8cf587c6c0f46c0d1d46e77d71b5fd02d3b635d0b946c61a18a8bd8aa99663333870ed07322c02ab2fb2871314ac8fb7a639c6569367f0ca
7
- data.tar.gz: 9a73056160f99fcc5e0c271c380df1ae186c43b01c5ef166cd5e1b38a622470b48e466a989b12b91d4e4be2698c998c9418f834cf87997fcf40928be2e3824cc
6
+ metadata.gz: 0316ab8cee76664f786fff38e48a97c81827dd10b8349b0665f6e740513146a16f198f4fa7629b1bd65f5e12492e014adb04adaceaf1b9955e1be54a1baf8fde
7
+ data.tar.gz: 3c1ac8e382c16b1e537b2a0d87ee4a3e9dcde23aba30f7e94b2f8c0ee2d9470904424b5ed92910ca249bce08e68735b81ab7393f4dffdcecc127b10271764957
@@ -6,7 +6,7 @@ module Triangulum
6
6
  class FlowSchemaExtraction
7
7
  include Executor
8
8
 
9
- Result = Struct.new(:flow, :subflow_parameters, keyword_init: true)
9
+ Result = Struct.new(:flow, :subflow_parameters, :subflow_references, keyword_init: true)
10
10
  SchematizedObject = Struct.new(:id, :input_schema, :output_schema, keyword_init: true)
11
11
 
12
12
  ENTRYPOINT = File.expand_path('js/flow-schema-extraction.js', __dir__)
@@ -64,6 +64,13 @@ module Triangulum
64
64
  input_schema: param[:inputSchema],
65
65
  output_schema: param[:outputSchema]
66
66
  )
67
+ end,
68
+ subflow_references: json[:subflowReferences].map do |reference|
69
+ SchematizedObject.new(
70
+ id: reference[:id],
71
+ input_schema: reference[:inputSchema],
72
+ output_schema: reference[:outputSchema]
73
+ )
67
74
  end
68
75
  )
69
76
  end
@@ -350155,7 +350155,7 @@ var require_dist = __commonJS((exports) => {
350155
350155
  exports.ts = typescript_1.default;
350156
350156
  });
350157
350157
 
350158
- // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.function_pb-wrO_QCIm.js
350158
+ // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.function_pb-UNlnHSX6.js
350159
350159
  var e;
350160
350160
  (function(e2) {
350161
350161
  e2.symbol = Symbol.for("protobuf-ts/unknown"), e2.onRead = (n, r, i, a, o) => {
@@ -353085,17 +353085,28 @@ var H = new class extends D {
353085
353085
  };
353086
353086
  var U = new class extends D {
353087
353087
  constructor() {
353088
- super("shared.InlineReferenceValue", [{
353089
- no: 1,
353090
- name: "signature",
353091
- kind: "scalar",
353092
- T: 9
353093
- }, {
353094
- no: 2,
353095
- name: "value",
353096
- kind: "message",
353097
- T: () => V
353098
- }]);
353088
+ super("shared.InlineReferenceValue", [
353089
+ {
353090
+ no: 1,
353091
+ name: "signature",
353092
+ kind: "scalar",
353093
+ T: 9
353094
+ },
353095
+ {
353096
+ no: 2,
353097
+ name: "value",
353098
+ kind: "message",
353099
+ T: () => V
353100
+ },
353101
+ {
353102
+ no: 3,
353103
+ name: "database_id",
353104
+ kind: "scalar",
353105
+ opt: true,
353106
+ T: 3,
353107
+ L: 0
353108
+ }
353109
+ ]);
353099
353110
  }
353100
353111
  create(e4) {
353101
353112
  let t2 = globalThis.Object.create(this.messagePrototype);
@@ -353112,6 +353123,9 @@ var U = new class extends D {
353112
353123
  case 2:
353113
353124
  a2.value = V.internalBinaryRead(t2, t2.uint32(), r2, a2.value);
353114
353125
  break;
353126
+ case 3:
353127
+ a2.databaseId = t2.int64().toBigInt();
353128
+ break;
353115
353129
  default:
353116
353130
  let o3 = r2.readUnknownField;
353117
353131
  if (o3 === "throw")
@@ -353123,7 +353137,7 @@ var U = new class extends D {
353123
353137
  return a2;
353124
353138
  }
353125
353139
  internalBinaryWrite(n2, r2, i2) {
353126
- n2.signature !== "" && r2.tag(1, t.LengthDelimited).string(n2.signature), n2.value && V.internalBinaryWrite(n2.value, r2.tag(2, t.LengthDelimited).fork(), i2).join();
353140
+ n2.signature !== "" && r2.tag(1, t.LengthDelimited).string(n2.signature), n2.value && V.internalBinaryWrite(n2.value, r2.tag(2, t.LengthDelimited).fork(), i2).join(), n2.databaseId !== undefined && r2.tag(3, t.Varint).int64(n2.databaseId);
353127
353141
  let a2 = i2.writeUnknownFields;
353128
353142
  return a2 !== false && (a2 == 1 ? e.onWrite : a2)(this.typeName, n2, r2), r2;
353129
353143
  }
@@ -354275,7 +354289,7 @@ var $ = new class extends D {
354275
354289
  }
354276
354290
  };
354277
354291
 
354278
- // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_status_pb-CvLpyvFd.js
354292
+ // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_status_pb-Dt83fxr9.js
354279
354293
  var d2 = new class extends D {
354280
354294
  constructor() {
354281
354295
  super("shared.ServiceError", [{
@@ -356132,7 +356146,7 @@ var N2 = new class extends D {
356132
356146
  }
356133
356147
  };
356134
356148
 
356135
- // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_usage_pb-DVb2CrO4.js
356149
+ // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_usage_pb-BV5r5JZC.js
356136
356150
  var i2 = new class extends D {
356137
356151
  constructor() {
356138
356152
  super("shared.RuntimeUsage", [{
@@ -356296,10 +356310,7 @@ function mapNodeValue(tucanaNodeValue) {
356296
356310
  value = {
356297
356311
  __typename: "LiteralValue",
356298
356312
  value: e4(nodeValue.literalValue.value),
356299
- references: nodeValue.literalValue.references.map((r2) => ({
356300
- signature: r2.signature,
356301
- value: mapNodeValue(r2.value)
356302
- }))
356313
+ references: nodeValue.literalValue.references.map(mapInlineReference)
356303
356314
  };
356304
356315
  } else if (nodeValue?.oneofKind === "referenceValue") {
356305
356316
  const target = nodeValue.referenceValue.target;
@@ -356323,6 +356334,14 @@ function mapNodeValue(tucanaNodeValue) {
356323
356334
  }
356324
356335
  return value;
356325
356336
  }
356337
+ function mapInlineReference(reference) {
356338
+ return {
356339
+ __typename: "InlineReferenceValue",
356340
+ id: reference.databaseId !== undefined ? gid("InlineReferenceValue", reference.databaseId) : undefined,
356341
+ signature: reference.signature,
356342
+ value: mapNodeValue(reference.value)
356343
+ };
356344
+ }
356326
356345
  function mapFunctionDefinition(functionDefinition) {
356327
356346
  return {
356328
356347
  identifier: functionDefinition.runtimeName,
@@ -356882,13 +356901,13 @@ var m4 = (e6, n3, i5) => {
356882
356901
  if (!e6)
356883
356902
  return;
356884
356903
  let a4 = "index.ts", o4 = Xe(e6, n3, i5), s4 = Ue2(a4, o4), c4 = s4.getSourceFile(a4), l4 = s4.languageService.getProgram().getTypeChecker(), d5 = u3({
356885
- ...v3(l4, c4),
356886
- ...b3(l4, c4, e6)
356887
- }, i5), f5 = (e6.nodes?.nodes ?? []).map((e7) => e7 && D3(e7, d5));
356904
+ ...y3(l4, c4),
356905
+ ...x3(l4, c4, e6)
356906
+ }, i5), f5 = (e6.nodes?.nodes ?? []).map((e7) => e7 && N3(e7, d5));
356888
356907
  return {
356889
356908
  ...e6,
356890
- inputSchema: d5[h4] ?? T3(),
356891
- outputSchema: d5[g4] ?? E3(),
356909
+ inputSchema: d5[h4] ?? j4(),
356910
+ outputSchema: d5[g4] ?? M3(),
356892
356911
  nodes: {
356893
356912
  ...e6.nodes,
356894
356913
  nodes: f5
@@ -356898,20 +356917,21 @@ var m4 = (e6, n3, i5) => {
356898
356917
  var h4 = "Flow_input";
356899
356918
  var g4 = "Flow_output";
356900
356919
  var _3 = (t3, n3, r3) => `Node_${Z2(t3)}_${n3}_${r3}`;
356901
- var v3 = (e6, t3) => {
356920
+ var v3 = (t3, n3, r3, i5) => `Node_${Z2(t3)}_${n3}_ref_${r3.map(Z2).join("_")}_${i5}`;
356921
+ var y3 = (e6, t3) => {
356902
356922
  let n3 = t3.statements.filter(import_typescript2.default.isFunctionDeclaration).find((e7) => e7.name?.getText() === "flow");
356903
356923
  if (!n3)
356904
356924
  return {};
356905
- let r3 = y3(t3), a4 = (r3 ? e6.getResolvedSignature(r3) : undefined) ?? e6.getSignatureFromDeclaration(n3);
356925
+ let r3 = b3(t3), a4 = (r3 ? e6.getResolvedSignature(r3) : undefined) ?? e6.getSignatureFromDeclaration(n3);
356906
356926
  if (!a4)
356907
356927
  return {};
356908
- let { input: o4, output: s4 } = w3(e6, a4, r3 ?? n3);
356928
+ let { input: o4, output: s4 } = A4(e6, a4, r3 ?? n3);
356909
356929
  return {
356910
356930
  [h4]: o4,
356911
356931
  [g4]: s4
356912
356932
  };
356913
356933
  };
356914
- var y3 = (e6) => {
356934
+ var b3 = (e6) => {
356915
356935
  let t3;
356916
356936
  return e6.forEachChild(function e7(n3) {
356917
356937
  if (!t3) {
@@ -356923,44 +356943,109 @@ var y3 = (e6) => {
356923
356943
  }
356924
356944
  }), t3;
356925
356945
  };
356926
- var b3 = (e6, t3, n3) => {
356927
- let r3 = j4(t3), i5 = {};
356946
+ var x3 = (e6, t3, n3) => {
356947
+ let r3 = B2(t3), i5 = {};
356928
356948
  for (let t4 of n3.nodes?.nodes ?? []) {
356929
356949
  if (!t4?.id)
356930
356950
  continue;
356931
356951
  let n4 = t4.parameters?.nodes;
356932
- if (!n4?.some(O3))
356952
+ if (!n4?.some(L2))
356933
356953
  continue;
356934
- let a4 = A4(r3, t4);
356954
+ let a4 = z2(r3, t4);
356935
356955
  a4 && n4.forEach((n5, r4) => {
356936
- if (!O3(n5))
356956
+ let o4 = a4.arguments[r4];
356957
+ if (!o4)
356958
+ return;
356959
+ if (F2(n5)) {
356960
+ let n6 = S3(e6, o4);
356961
+ if (!n6)
356962
+ return;
356963
+ i5[_3(t4.id, r4, "input")] = n6.input, i5[_3(t4.id, r4, "output")] = n6.output;
356937
356964
  return;
356938
- let o4 = a4.arguments[r4], s4 = o4 ? e6.getTypeAtLocation(o4).getCallSignatures()[0] : undefined;
356939
- if (!s4)
356965
+ }
356966
+ let s4 = T3(n5);
356967
+ if (s4.length === 0)
356940
356968
  return;
356941
- let { input: c4, output: l4 } = x3(e6, s4, o4);
356942
- i5[_3(t4.id, r4, "input")] = c4, i5[_3(t4.id, r4, "output")] = l4;
356969
+ let c4 = C3(o4);
356970
+ s4.forEach((n6, a5) => {
356971
+ let o5 = c4[a5];
356972
+ if (!o5)
356973
+ return;
356974
+ let s5 = S3(e6, o5);
356975
+ s5 && (i5[v3(t4.id, r4, n6, "input")] = s5.input, i5[v3(t4.id, r4, n6, "output")] = s5.output);
356976
+ });
356943
356977
  });
356944
356978
  }
356945
356979
  return i5;
356946
356980
  };
356947
- var x3 = (e6, t3, n3) => ({
356948
- input: `{ ${S3(e6, t3, n3).join("; ")} }`,
356981
+ var S3 = (e6, t3) => {
356982
+ let n3 = e6.getTypeAtLocation(t3).getCallSignatures()[0];
356983
+ if (n3)
356984
+ return D3(e6, n3, t3);
356985
+ };
356986
+ var C3 = (e6) => {
356987
+ let t3 = [], n3 = (e7) => {
356988
+ if (import_typescript2.default.isArrowFunction(e7)) {
356989
+ t3.push(e7);
356990
+ return;
356991
+ }
356992
+ if (import_typescript2.default.isIdentifier(e7) && e7.text.startsWith("fn_")) {
356993
+ let n4 = e7.parent;
356994
+ if (!(n4 && import_typescript2.default.isCallExpression(n4) && n4.expression === e7)) {
356995
+ t3.push(e7);
356996
+ return;
356997
+ }
356998
+ }
356999
+ e7.forEachChild(n3);
357000
+ };
357001
+ return n3(e6), t3;
357002
+ };
357003
+ var w3 = /\$\{([^}]+)\}/g;
357004
+ var T3 = (e6) => {
357005
+ if (!I2(e6))
357006
+ return [];
357007
+ let t3 = [];
357008
+ return E3(e6.value.value, e6.value.references, [], t3), t3;
357009
+ };
357010
+ var E3 = (e6, t3, n3, r3) => {
357011
+ let i5 = /* @__PURE__ */ new Map;
357012
+ for (let e7 of t3 ?? [])
357013
+ e7?.signature && i5.set(e7.signature, e7);
357014
+ if (i5.size === 0)
357015
+ return;
357016
+ let a4 = (e7) => {
357017
+ if (typeof e7 == "string") {
357018
+ for (let t4 of e7.matchAll(w3)) {
357019
+ let e8 = i5.get(t4[1])?.value;
357020
+ e8 && (e8.__typename === "SubFlowValue" ? r3.push([...n3, t4[1]]) : e8.__typename === "LiteralValue" && E3(e8.value, e8.references, [...n3, t4[1]], r3));
357021
+ }
357022
+ return;
357023
+ }
357024
+ if (Array.isArray(e7)) {
357025
+ e7.forEach((e8) => a4(e8));
357026
+ return;
357027
+ }
357028
+ typeof e7 == "object" && e7 && Object.values(e7).forEach((e8) => a4(e8));
357029
+ };
357030
+ a4(e6);
357031
+ };
357032
+ var D3 = (e6, t3, n3) => ({
357033
+ input: `{ ${O3(e6, t3, n3).join("; ")} }`,
356949
357034
  output: ((t4) => e6.typeToString(t4, n3, import_typescript2.default.TypeFormatFlags.NoTruncation))(e6.getReturnTypeOfSignature(t3))
356950
357035
  });
356951
- var S3 = (e6, t3, n3) => {
357036
+ var O3 = (e6, t3, n3) => {
356952
357037
  let r3 = (t4) => e6.typeToString(t4, n3, import_typescript2.default.TypeFormatFlags.NoTruncation), a4 = t3.getParameters();
356953
357038
  if (a4.length === 1) {
356954
- let t4 = C3(e6, e6.getTypeOfSymbolAtLocation(a4[0], a4[0].valueDeclaration ?? n3), n3);
357039
+ let t4 = k3(e6, e6.getTypeOfSymbolAtLocation(a4[0], a4[0].valueDeclaration ?? n3), n3);
356955
357040
  if (t4)
356956
357041
  return t4;
356957
357042
  }
356958
357043
  return a4.map((t4) => {
356959
- let i5 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a5 = k3(t4) ? "?" : "";
357044
+ let i5 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a5 = R2(t4) ? "?" : "";
356960
357045
  return `${t4.getName()}${a5}: ${r3(i5)}`;
356961
357046
  });
356962
357047
  };
356963
- var C3 = (e6, t3, n3) => {
357048
+ var k3 = (e6, t3, n3) => {
356964
357049
  let r3 = t3, a4 = r3.target;
356965
357050
  if (a4 && (a4.objectFlags & import_typescript2.default.ObjectFlags.Tuple) !== 0)
356966
357051
  return e6.getTypeArguments(r3).map((t4, r4) => {
@@ -356968,33 +357053,43 @@ var C3 = (e6, t3, n3) => {
356968
357053
  return `${o4?.name && import_typescript2.default.isIdentifier(o4.name) ? o4.name.text : `arg${r4}`}${(a4.elementFlags[r4] & import_typescript2.default.ElementFlags.Optional) === 0 ? "" : "?"}: ${e6.typeToString(t4, n3, import_typescript2.default.TypeFormatFlags.NoTruncation)}`;
356969
357054
  });
356970
357055
  };
356971
- var w3 = (e6, t3, n3) => {
357056
+ var A4 = (e6, t3, n3) => {
356972
357057
  let r3 = (t4) => e6.typeToString(t4, n3, import_typescript2.default.TypeFormatFlags.NoTruncation);
356973
357058
  return {
356974
357059
  input: `{ ${t3.parameters.map((t4) => {
356975
- let i5 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a4 = k3(t4) ? "?" : "";
357060
+ let i5 = e6.getTypeOfSymbolAtLocation(t4, t4.valueDeclaration ?? n3), a4 = R2(t4) ? "?" : "";
356976
357061
  return `${t4.getName()}${a4}: ${r3(i5)}`;
356977
357062
  }).join("; ")} }`,
356978
357063
  output: r3(e6.getReturnTypeOfSignature(t3))
356979
357064
  };
356980
357065
  };
356981
- var T3 = () => ({ type: "object" });
356982
- var E3 = () => ({});
356983
- var D3 = (e6, t3) => {
357066
+ var j4 = () => ({ type: "object" });
357067
+ var M3 = () => ({});
357068
+ var N3 = (e6, t3) => {
356984
357069
  let n3 = e6.parameters?.nodes;
356985
- if (!n3?.some(O3))
357070
+ if (!n3?.some(L2))
356986
357071
  return e6;
356987
357072
  let r3 = n3.map((n4, r4) => {
356988
- if (!O3(n4))
357073
+ if (F2(n4)) {
357074
+ let i6 = {
357075
+ ...n4.value,
357076
+ inputSchema: t3[_3(e6.id, r4, "input")] ?? j4(),
357077
+ outputSchema: t3[_3(e6.id, r4, "output")] ?? M3()
357078
+ };
357079
+ return {
357080
+ ...n4,
357081
+ value: i6
357082
+ };
357083
+ }
357084
+ if (!I2(n4) || !n4.value.references?.length)
356989
357085
  return n4;
356990
- let i5 = {
356991
- ...n4.value,
356992
- inputSchema: t3[_3(e6.id, r4, "input")] ?? T3(),
356993
- outputSchema: t3[_3(e6.id, r4, "output")] ?? E3()
356994
- };
357086
+ let i5 = P2(n4.value.references, e6.id, r4, [], t3);
356995
357087
  return {
356996
357088
  ...n4,
356997
- value: i5
357089
+ value: {
357090
+ ...n4.value,
357091
+ references: i5
357092
+ }
356998
357093
  };
356999
357094
  });
357000
357095
  return {
@@ -357005,16 +357100,42 @@ var D3 = (e6, t3) => {
357005
357100
  }
357006
357101
  };
357007
357102
  };
357008
- var O3 = (e6) => e6?.value?.__typename === "SubFlowValue";
357009
- var k3 = (e6) => {
357103
+ var P2 = (e6, t3, n3, r3, i5) => e6.map((e7) => {
357104
+ let a4 = e7?.value;
357105
+ if (!e7?.signature || !a4)
357106
+ return e7;
357107
+ let o4 = [...r3, e7.signature];
357108
+ if (a4.__typename === "SubFlowValue") {
357109
+ let r4 = {
357110
+ ...a4,
357111
+ inputSchema: i5[v3(t3, n3, o4, "input")] ?? j4(),
357112
+ outputSchema: i5[v3(t3, n3, o4, "output")] ?? M3()
357113
+ };
357114
+ return {
357115
+ ...e7,
357116
+ value: r4
357117
+ };
357118
+ }
357119
+ return a4.__typename === "LiteralValue" && a4.references?.length ? {
357120
+ ...e7,
357121
+ value: {
357122
+ ...a4,
357123
+ references: P2(a4.references, t3, n3, o4, i5)
357124
+ }
357125
+ } : e7;
357126
+ });
357127
+ var F2 = (e6) => e6?.value?.__typename === "SubFlowValue";
357128
+ var I2 = (e6) => e6?.value?.__typename === "LiteralValue";
357129
+ var L2 = (e6) => F2(e6) || T3(e6).length > 0;
357130
+ var R2 = (e6) => {
357010
357131
  let t3 = e6.valueDeclaration;
357011
357132
  return !!t3 && import_typescript2.default.isParameter(t3) && (!!t3.questionToken || !!t3.initializer || !!t3.dotDotDotToken);
357012
357133
  };
357013
- var A4 = (t3, n3) => {
357134
+ var z2 = (t3, n3) => {
357014
357135
  let r3 = t3.get(`node_${Z2(n3.id)}`)?.initializer;
357015
357136
  return r3 && import_typescript2.default.isCallExpression(r3) ? r3 : undefined;
357016
357137
  };
357017
- var j4 = (e6) => {
357138
+ var B2 = (e6) => {
357018
357139
  let t3 = /* @__PURE__ */ new Map;
357019
357140
  return e6.statements.forEach((e7) => {
357020
357141
  e7.forEachChild(function e8(n3) {
@@ -357033,19 +357154,44 @@ if (result) {
357033
357154
  inputSchema: result.inputSchema,
357034
357155
  outputSchema: result.outputSchema
357035
357156
  },
357036
- subflowParameters: []
357157
+ subflowParameters: [],
357158
+ subflowReferences: []
357037
357159
  };
357038
- result.nodes?.nodes?.forEach((node) => node?.parameters?.nodes?.forEach((parameter) => {
357160
+ const collectInlineReferences = (references) => {
357161
+ references?.forEach((reference) => {
357162
+ const value = reference?.value;
357163
+ if (!value)
357164
+ return;
357165
+ if (value.__typename === "SubFlowValue") {
357166
+ if (!reference?.id)
357167
+ return;
357168
+ const schemaValue = value;
357169
+ mappedResult.subflowReferences.push({
357170
+ id: reference.id,
357171
+ inputSchema: schemaValue.inputSchema,
357172
+ outputSchema: schemaValue.outputSchema
357173
+ });
357174
+ } else if (value.__typename === "LiteralValue") {
357175
+ collectInlineReferences(value.references);
357176
+ }
357177
+ });
357178
+ };
357179
+ const collectParameter = (parameter) => {
357039
357180
  const value = parameter?.value;
357040
- if (value?.__typename === "SubFlowValue") {
357181
+ if (!value)
357182
+ return;
357183
+ if (value.__typename === "SubFlowValue") {
357041
357184
  const schemaValue = value;
357042
357185
  mappedResult.subflowParameters.push({
357043
357186
  id: parameter?.id,
357044
357187
  inputSchema: schemaValue.inputSchema,
357045
357188
  outputSchema: schemaValue.outputSchema
357046
357189
  });
357190
+ } else if (value.__typename === "LiteralValue") {
357191
+ collectInlineReferences(value.references);
357047
357192
  }
357048
- }));
357193
+ };
357194
+ result.nodes?.nodes?.forEach((node) => node?.parameters?.nodes?.forEach(collectParameter));
357049
357195
  console.info(JSON.stringify(mappedResult));
357050
357196
  } else {
357051
357197
  process.exitCode = 2;
@@ -169480,7 +169480,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
169480
169480
  } });
169481
169481
  });
169482
169482
 
169483
- // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.function_pb-wrO_QCIm.js
169483
+ // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.function_pb-UNlnHSX6.js
169484
169484
  var e;
169485
169485
  (function(e2) {
169486
169486
  e2.symbol = Symbol.for("protobuf-ts/unknown"), e2.onRead = (n, r, i, a, o) => {
@@ -172410,17 +172410,28 @@ var H = new class extends D {
172410
172410
  };
172411
172411
  var U = new class extends D {
172412
172412
  constructor() {
172413
- super("shared.InlineReferenceValue", [{
172414
- no: 1,
172415
- name: "signature",
172416
- kind: "scalar",
172417
- T: 9
172418
- }, {
172419
- no: 2,
172420
- name: "value",
172421
- kind: "message",
172422
- T: () => V
172423
- }]);
172413
+ super("shared.InlineReferenceValue", [
172414
+ {
172415
+ no: 1,
172416
+ name: "signature",
172417
+ kind: "scalar",
172418
+ T: 9
172419
+ },
172420
+ {
172421
+ no: 2,
172422
+ name: "value",
172423
+ kind: "message",
172424
+ T: () => V
172425
+ },
172426
+ {
172427
+ no: 3,
172428
+ name: "database_id",
172429
+ kind: "scalar",
172430
+ opt: true,
172431
+ T: 3,
172432
+ L: 0
172433
+ }
172434
+ ]);
172424
172435
  }
172425
172436
  create(e4) {
172426
172437
  let t2 = globalThis.Object.create(this.messagePrototype);
@@ -172437,6 +172448,9 @@ var U = new class extends D {
172437
172448
  case 2:
172438
172449
  a2.value = V.internalBinaryRead(t2, t2.uint32(), r2, a2.value);
172439
172450
  break;
172451
+ case 3:
172452
+ a2.databaseId = t2.int64().toBigInt();
172453
+ break;
172440
172454
  default:
172441
172455
  let o3 = r2.readUnknownField;
172442
172456
  if (o3 === "throw")
@@ -172448,7 +172462,7 @@ var U = new class extends D {
172448
172462
  return a2;
172449
172463
  }
172450
172464
  internalBinaryWrite(n2, r2, i2) {
172451
- n2.signature !== "" && r2.tag(1, t.LengthDelimited).string(n2.signature), n2.value && V.internalBinaryWrite(n2.value, r2.tag(2, t.LengthDelimited).fork(), i2).join();
172465
+ n2.signature !== "" && r2.tag(1, t.LengthDelimited).string(n2.signature), n2.value && V.internalBinaryWrite(n2.value, r2.tag(2, t.LengthDelimited).fork(), i2).join(), n2.databaseId !== undefined && r2.tag(3, t.Varint).int64(n2.databaseId);
172452
172466
  let a2 = i2.writeUnknownFields;
172453
172467
  return a2 !== false && (a2 == 1 ? e.onWrite : a2)(this.typeName, n2, r2), r2;
172454
172468
  }
@@ -173600,7 +173614,7 @@ var $ = new class extends D {
173600
173614
  }
173601
173615
  };
173602
173616
 
173603
- // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_status_pb-CvLpyvFd.js
173617
+ // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_status_pb-Dt83fxr9.js
173604
173618
  var d2 = new class extends D {
173605
173619
  constructor() {
173606
173620
  super("shared.ServiceError", [{
@@ -175457,7 +175471,7 @@ var N2 = new class extends D {
175457
175471
  }
175458
175472
  };
175459
175473
 
175460
- // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_usage_pb-DVb2CrO4.js
175474
+ // ../entrypoint/node_modules/@code0-tech/tucana/dist/shared.runtime_usage_pb-BV5r5JZC.js
175461
175475
  var i2 = new class extends D {
175462
175476
  constructor() {
175463
175477
  super("shared.RuntimeUsage", [{
@@ -175621,10 +175635,7 @@ function mapNodeValue(tucanaNodeValue) {
175621
175635
  value = {
175622
175636
  __typename: "LiteralValue",
175623
175637
  value: e4(nodeValue.literalValue.value),
175624
- references: nodeValue.literalValue.references.map((r2) => ({
175625
- signature: r2.signature,
175626
- value: mapNodeValue(r2.value)
175627
- }))
175638
+ references: nodeValue.literalValue.references.map(mapInlineReference)
175628
175639
  };
175629
175640
  } else if (nodeValue?.oneofKind === "referenceValue") {
175630
175641
  const target = nodeValue.referenceValue.target;
@@ -175648,6 +175659,14 @@ function mapNodeValue(tucanaNodeValue) {
175648
175659
  }
175649
175660
  return value;
175650
175661
  }
175662
+ function mapInlineReference(reference) {
175663
+ return {
175664
+ __typename: "InlineReferenceValue",
175665
+ id: reference.databaseId !== undefined ? gid("InlineReferenceValue", reference.databaseId) : undefined,
175666
+ signature: reference.signature,
175667
+ value: mapNodeValue(reference.value)
175668
+ };
175669
+ }
175651
175670
  function mapFunctionDefinition(functionDefinition) {
175652
175671
  return {
175653
175672
  identifier: functionDefinition.runtimeName,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Triangulum
4
- VERSION = '0.40.0'
4
+ VERSION = '0.40.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triangulum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.40.2
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - Niklas van Schrick
@@ -60,7 +60,7 @@ dependencies:
60
60
  version: '0.0'
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 0.0.82
63
+ version: 0.0.85
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ dependencies:
70
70
  version: '0.0'
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: 0.0.82
73
+ version: 0.0.85
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: irb
76
76
  requirement: !ruby/object:Gem::Requirement