triangulum 0.40.1-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: 996111710b9c68a3b2ff3e3e459649bda7772fd1d3bbc32e4292457d593ae32b
4
- data.tar.gz: bc77771e958669f0a7fdc8bafe0c5ffbb09e4c4665ea88e6b1f08a92272827c2
3
+ metadata.gz: 2ad30e5e7d2024f26ab8c38ae38ba65a9e61252f8cdcfdedbfabf2e00c40e4a5
4
+ data.tar.gz: b3a51c57c40a3ed310077c8cabe7a41b82b268758845a6a96f299b8703938c2c
5
5
  SHA512:
6
- metadata.gz: 2bf1fd4ca3cd823ab9bb038d2eb3ad3cbf6b7df15e57b37ad7abbab282d30da67775222b97ace7976d160a52cb69a3f4c20881e0b4f325e30f384936fefb8459
7
- data.tar.gz: 8249772534b092b88da2221a74ba133f07ecb753ff50fadd3650e0c6aa4cd55c56d7c618884e9562ecfbccdc7efc0ab0522fadaa91f96efa919bed121fdeb615
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,
@@ -357135,19 +357154,44 @@ if (result) {
357135
357154
  inputSchema: result.inputSchema,
357136
357155
  outputSchema: result.outputSchema
357137
357156
  },
357138
- subflowParameters: []
357157
+ subflowParameters: [],
357158
+ subflowReferences: []
357159
+ };
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
+ });
357139
357178
  };
357140
- result.nodes?.nodes?.forEach((node) => node?.parameters?.nodes?.forEach((parameter) => {
357179
+ const collectParameter = (parameter) => {
357141
357180
  const value = parameter?.value;
357142
- if (value?.__typename === "SubFlowValue") {
357181
+ if (!value)
357182
+ return;
357183
+ if (value.__typename === "SubFlowValue") {
357143
357184
  const schemaValue = value;
357144
357185
  mappedResult.subflowParameters.push({
357145
357186
  id: parameter?.id,
357146
357187
  inputSchema: schemaValue.inputSchema,
357147
357188
  outputSchema: schemaValue.outputSchema
357148
357189
  });
357190
+ } else if (value.__typename === "LiteralValue") {
357191
+ collectInlineReferences(value.references);
357149
357192
  }
357150
- }));
357193
+ };
357194
+ result.nodes?.nodes?.forEach((node) => node?.parameters?.nodes?.forEach(collectParameter));
357151
357195
  console.info(JSON.stringify(mappedResult));
357152
357196
  } else {
357153
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.1'
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.1
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