@lace-cloud/proto 0.16.2 → 0.17.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/index.cjs +360 -2926
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +211 -550
- package/dist/index.d.ts +211 -550
- package/dist/index.mjs +352 -2912
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -20,23 +20,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
BRIDGE_METHODS: () => BRIDGE_METHODS,
|
|
23
24
|
Bundle: () => Bundle,
|
|
24
25
|
CanvasViewProto: () => CanvasViewProto,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
convertCanvasView: () => convertCanvasView,
|
|
26
|
+
EMPTY_BUNDLE: () => EMPTY_BUNDLE,
|
|
27
|
+
ENGINE_METHODS: () => ENGINE_METHODS,
|
|
28
|
+
ENGINE_STREAM_METHODS: () => ENGINE_STREAM_METHODS,
|
|
29
29
|
convertDiagnostic: () => convertDiagnostic,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
convertNodeKind: () => convertNodeKind,
|
|
35
|
-
convertRenderError: () => convertRenderError,
|
|
36
|
-
convertRenderInput: () => convertRenderInput,
|
|
37
|
-
convertRenderNode: () => convertRenderNode,
|
|
38
|
-
convertSettingsConfig: () => convertSettingsConfig,
|
|
39
|
-
modeToInputMode: () => modeToInputMode,
|
|
30
|
+
deriveNodeConfig: () => deriveNodeConfig,
|
|
31
|
+
deriveSettingsConfig: () => deriveSettingsConfig,
|
|
32
|
+
nodeIdForAddress: () => nodeIdForAddress,
|
|
33
|
+
nodeIdForDiagnostic: () => nodeIdForDiagnostic,
|
|
40
34
|
parseModuleKey: () => parseModuleKey,
|
|
41
35
|
projectCanvasView: () => projectCanvasView,
|
|
42
36
|
resolveScopePath: () => resolveScopePath,
|
|
@@ -46,226 +40,49 @@ __export(index_exports, {
|
|
|
46
40
|
module.exports = __toCommonJS(index_exports);
|
|
47
41
|
|
|
48
42
|
// src/converters.ts
|
|
49
|
-
var NODE_KIND_MODULE = 1;
|
|
50
|
-
var NODE_KIND_RESOURCE = 2;
|
|
51
|
-
var NODE_KIND_DATA = 3;
|
|
52
|
-
var INPUT_MODE_EMPTY = 1;
|
|
53
|
-
var INPUT_MODE_LITERAL = 2;
|
|
54
|
-
var INPUT_MODE_VARIABLE = 3;
|
|
55
|
-
var INPUT_MODE_EXPRESSION = 4;
|
|
56
|
-
var INPUT_MODE_WIRED = 5;
|
|
57
43
|
var DIAGNOSTIC_SEVERITY_WARNING = 2;
|
|
58
44
|
var DIAGNOSTIC_SEVERITY_INFO = 3;
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return "module";
|
|
63
|
-
case NODE_KIND_RESOURCE:
|
|
64
|
-
return "resource";
|
|
65
|
-
case NODE_KIND_DATA:
|
|
66
|
-
return "data";
|
|
67
|
-
default:
|
|
68
|
-
return "module";
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function convertInputMode(value) {
|
|
72
|
-
switch (value) {
|
|
73
|
-
case INPUT_MODE_LITERAL:
|
|
74
|
-
return "literal";
|
|
75
|
-
case INPUT_MODE_VARIABLE:
|
|
76
|
-
return "variable";
|
|
77
|
-
case INPUT_MODE_EXPRESSION:
|
|
78
|
-
return "expression";
|
|
79
|
-
case INPUT_MODE_WIRED:
|
|
80
|
-
return "wired";
|
|
81
|
-
default:
|
|
82
|
-
return "empty";
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function convertDiagnosticSeverity(value) {
|
|
86
|
-
switch (value) {
|
|
45
|
+
function convertDiagnostic(d) {
|
|
46
|
+
let severity;
|
|
47
|
+
switch (d.severity) {
|
|
87
48
|
case DIAGNOSTIC_SEVERITY_WARNING:
|
|
88
|
-
|
|
49
|
+
severity = "warning";
|
|
50
|
+
break;
|
|
89
51
|
case DIAGNOSTIC_SEVERITY_INFO:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return "error";
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function modeToInputMode(mode) {
|
|
96
|
-
switch (mode) {
|
|
97
|
-
case "literal":
|
|
98
|
-
return INPUT_MODE_LITERAL;
|
|
99
|
-
case "variable":
|
|
100
|
-
return INPUT_MODE_VARIABLE;
|
|
101
|
-
case "expression":
|
|
102
|
-
return INPUT_MODE_EXPRESSION;
|
|
103
|
-
case "wired":
|
|
104
|
-
return INPUT_MODE_WIRED;
|
|
52
|
+
severity = "info";
|
|
53
|
+
break;
|
|
105
54
|
default:
|
|
106
|
-
|
|
55
|
+
severity = "error";
|
|
107
56
|
}
|
|
108
|
-
}
|
|
109
|
-
function convertRenderInput(input) {
|
|
110
|
-
return {
|
|
111
|
-
name: input.name,
|
|
112
|
-
type: input.type,
|
|
113
|
-
required: input.required,
|
|
114
|
-
description: input.description || void 0,
|
|
115
|
-
default_value: input.default_value ?? void 0,
|
|
116
|
-
validation: input.validation ? { condition: input.validation.condition, error_message: input.validation.error_message } : void 0,
|
|
117
|
-
mode: convertInputMode(input.mode),
|
|
118
|
-
value: input.value ?? void 0,
|
|
119
|
-
variable: input.variable || void 0,
|
|
120
|
-
expression: input.expression || void 0,
|
|
121
|
-
wired_source: input.wired_source || void 0
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function convertRenderNode(node) {
|
|
125
|
-
return {
|
|
126
|
-
id: node.id,
|
|
127
|
-
label: node.label,
|
|
128
|
-
kind: convertNodeKind(node.kind),
|
|
129
|
-
module_key: node.module_key || void 0,
|
|
130
|
-
position: node.position ?? { x: 0, y: 0 },
|
|
131
|
-
has_errors: node.has_errors,
|
|
132
|
-
error_messages: node.error_messages,
|
|
133
|
-
inputs: node.inputs.map((p) => ({
|
|
134
|
-
name: p.name,
|
|
135
|
-
type: p.type,
|
|
136
|
-
required: p.required || void 0,
|
|
137
|
-
wired: p.wired || void 0,
|
|
138
|
-
description: p.description || void 0
|
|
139
|
-
})),
|
|
140
|
-
outputs: node.outputs.map((p) => ({
|
|
141
|
-
name: p.name,
|
|
142
|
-
type: p.type,
|
|
143
|
-
wired: p.wired || void 0,
|
|
144
|
-
description: p.description || void 0,
|
|
145
|
-
sensitive: p.sensitive || void 0
|
|
146
|
-
}))
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
function convertRenderError(error) {
|
|
150
|
-
return {
|
|
151
|
-
instance_id: error.instance_id || void 0,
|
|
152
|
-
input_name: error.input_name || void 0,
|
|
153
|
-
message: error.message
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
function convertCanvasView(proto) {
|
|
157
|
-
return {
|
|
158
|
-
module_name: proto.module_name,
|
|
159
|
-
nodes: proto.nodes.map(convertRenderNode),
|
|
160
|
-
edges: proto.edges.map((e) => ({
|
|
161
|
-
id: e.id,
|
|
162
|
-
source: e.source,
|
|
163
|
-
target: e.target,
|
|
164
|
-
source_output: e.source_output,
|
|
165
|
-
target_input: e.target_input
|
|
166
|
-
})),
|
|
167
|
-
errors: proto.errors.map(convertRenderError),
|
|
168
|
-
can_undo: proto.can_undo,
|
|
169
|
-
can_redo: proto.can_redo,
|
|
170
|
-
is_dirty: proto.is_dirty,
|
|
171
|
-
groups: proto.groups.map((g) => ({
|
|
172
|
-
id: g.id,
|
|
173
|
-
label: g.label,
|
|
174
|
-
node_ids: g.node_ids,
|
|
175
|
-
collapsed: g.collapsed,
|
|
176
|
-
module_key: g.module_key || void 0,
|
|
177
|
-
inputs: g.inputs && g.inputs.length > 0 ? g.inputs : void 0,
|
|
178
|
-
outputs: g.outputs && g.outputs.length > 0 ? g.outputs : void 0
|
|
179
|
-
}))
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
function convertNodeConfig(proto) {
|
|
183
|
-
return {
|
|
184
|
-
instance_id: proto.instance_id,
|
|
185
|
-
inputs: proto.inputs.map(convertRenderInput),
|
|
186
|
-
outputs: proto.outputs.map((o) => ({
|
|
187
|
-
name: o.name,
|
|
188
|
-
type: o.type,
|
|
189
|
-
description: o.description || void 0,
|
|
190
|
-
sensitive: o.sensitive
|
|
191
|
-
})),
|
|
192
|
-
sibling_ids: proto.sibling_ids,
|
|
193
|
-
depends_on: proto.depends_on,
|
|
194
|
-
providers: proto.providers ?? {},
|
|
195
|
-
available_variables: proto.available_variables.map((v) => ({ name: v.name, type: v.type }))
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
function convertEdgeConfig(proto) {
|
|
199
|
-
return {
|
|
200
|
-
source_instance: proto.source_instance,
|
|
201
|
-
target_instance: proto.target_instance,
|
|
202
|
-
source_outputs: proto.source_outputs.map((o) => ({
|
|
203
|
-
name: o.name,
|
|
204
|
-
type: o.type,
|
|
205
|
-
description: o.description || void 0,
|
|
206
|
-
sensitive: o.sensitive
|
|
207
|
-
})),
|
|
208
|
-
target_unbound_inputs: proto.target_unbound_inputs.map(convertRenderInput)
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
function convertSettingsConfig(proto) {
|
|
212
|
-
return {
|
|
213
|
-
terraform: {
|
|
214
|
-
required_version: proto.terraform?.required_version ?? "",
|
|
215
|
-
required_providers: (proto.terraform?.required_providers ?? []).map((p) => ({
|
|
216
|
-
name: p.name,
|
|
217
|
-
source: p.source,
|
|
218
|
-
version: p.version,
|
|
219
|
-
configuration_aliases: p.configuration_aliases && p.configuration_aliases.length > 0 ? p.configuration_aliases : void 0
|
|
220
|
-
}))
|
|
221
|
-
},
|
|
222
|
-
providers: proto.providers.map((p) => ({
|
|
223
|
-
name: p.name,
|
|
224
|
-
alias: p.alias,
|
|
225
|
-
config: p.config ?? {},
|
|
226
|
-
blocks: p.blocks && p.blocks.length > 0 ? p.blocks : void 0
|
|
227
|
-
})),
|
|
228
|
-
locals: proto.locals.map((l) => ({
|
|
229
|
-
name: l.name,
|
|
230
|
-
mode: l.mode,
|
|
231
|
-
value_display: l.value_display
|
|
232
|
-
})),
|
|
233
|
-
environments: proto.environments ?? {},
|
|
234
|
-
variables: (proto.variables ?? []).map((v) => ({
|
|
235
|
-
name: v.name,
|
|
236
|
-
type: v.type,
|
|
237
|
-
required: v.required,
|
|
238
|
-
description: v.description || void 0,
|
|
239
|
-
default_value: v.default_value,
|
|
240
|
-
validation: v.validation && v.validation.length > 0 ? v.validation.map((b) => ({ condition: b.condition, error_message: b.error_message })) : void 0,
|
|
241
|
-
ephemeral: v.ephemeral,
|
|
242
|
-
sensitive: v.sensitive,
|
|
243
|
-
nullable: v.nullable
|
|
244
|
-
})),
|
|
245
|
-
exports: (proto.exports ?? []).map((e) => ({
|
|
246
|
-
name: e.name,
|
|
247
|
-
source_instance: e.source_instance,
|
|
248
|
-
source_output: e.source_output
|
|
249
|
-
})),
|
|
250
|
-
output_defs: (proto.output_defs ?? []).map((d) => ({
|
|
251
|
-
name: d.name,
|
|
252
|
-
type: d.type,
|
|
253
|
-
description: d.description || void 0,
|
|
254
|
-
sensitive: d.sensitive,
|
|
255
|
-
depends_on: d.depends_on && d.depends_on.length > 0 ? d.depends_on : void 0
|
|
256
|
-
}))
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
function convertDiagnostic(d) {
|
|
260
57
|
return {
|
|
261
|
-
severity
|
|
58
|
+
severity,
|
|
262
59
|
message: d.message,
|
|
60
|
+
module_key: d.module_key || void 0,
|
|
61
|
+
instance_id: d.instance_id || void 0,
|
|
62
|
+
input_name: d.input_name || void 0,
|
|
263
63
|
file: d.file || void 0,
|
|
264
64
|
line: d.line || void 0,
|
|
265
65
|
column: d.column || void 0
|
|
266
66
|
};
|
|
267
67
|
}
|
|
268
68
|
|
|
69
|
+
// src/engine-bridge.ts
|
|
70
|
+
var ENGINE_METHODS = [
|
|
71
|
+
"Initialize",
|
|
72
|
+
"SessionOpen",
|
|
73
|
+
"TestSessionOpen",
|
|
74
|
+
"SessionSave",
|
|
75
|
+
"SessionClose",
|
|
76
|
+
"SessionGenerate",
|
|
77
|
+
"SessionResolveConflict",
|
|
78
|
+
"ApplyAction",
|
|
79
|
+
"CancelInvoke"
|
|
80
|
+
];
|
|
81
|
+
var ENGINE_STREAM_METHODS = ["Subscribe", "Invoke"];
|
|
82
|
+
var BRIDGE_METHODS = ENGINE_METHODS.filter(
|
|
83
|
+
(m) => m !== "TestSessionOpen"
|
|
84
|
+
);
|
|
85
|
+
|
|
269
86
|
// src/generated/state.ts
|
|
270
87
|
var import_wire2 = require("@bufbuild/protobuf/wire");
|
|
271
88
|
|
|
@@ -697,7 +514,7 @@ function isSet(value) {
|
|
|
697
514
|
|
|
698
515
|
// src/generated/state.ts
|
|
699
516
|
function createBaseBundle() {
|
|
700
|
-
return { schema_version: "", kind: "", entry: "", modules: {}
|
|
517
|
+
return { schema_version: "", kind: "", entry: "", modules: {} };
|
|
701
518
|
}
|
|
702
519
|
var Bundle = {
|
|
703
520
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -713,16 +530,6 @@ var Bundle = {
|
|
|
713
530
|
globalThis.Object.entries(message.modules).forEach(([key, value]) => {
|
|
714
531
|
Bundle_ModulesEntry.encode({ key, value }, writer.uint32(34).fork()).join();
|
|
715
532
|
});
|
|
716
|
-
globalThis.Object.entries(message.environments).forEach(
|
|
717
|
-
([key, value]) => {
|
|
718
|
-
if (value !== void 0) {
|
|
719
|
-
Bundle_EnvironmentsEntry.encode({ key, value }, writer.uint32(42).fork()).join();
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
);
|
|
723
|
-
globalThis.Object.entries(message.environment_backends).forEach(([key, value]) => {
|
|
724
|
-
Bundle_EnvironmentBackendsEntry.encode({ key, value }, writer.uint32(50).fork()).join();
|
|
725
|
-
});
|
|
726
533
|
return writer;
|
|
727
534
|
},
|
|
728
535
|
decode(input, length) {
|
|
@@ -763,26 +570,6 @@ var Bundle = {
|
|
|
763
570
|
}
|
|
764
571
|
continue;
|
|
765
572
|
}
|
|
766
|
-
case 5: {
|
|
767
|
-
if (tag !== 42) {
|
|
768
|
-
break;
|
|
769
|
-
}
|
|
770
|
-
const entry5 = Bundle_EnvironmentsEntry.decode(reader, reader.uint32());
|
|
771
|
-
if (entry5.value !== void 0) {
|
|
772
|
-
message.environments[entry5.key] = entry5.value;
|
|
773
|
-
}
|
|
774
|
-
continue;
|
|
775
|
-
}
|
|
776
|
-
case 6: {
|
|
777
|
-
if (tag !== 50) {
|
|
778
|
-
break;
|
|
779
|
-
}
|
|
780
|
-
const entry6 = Bundle_EnvironmentBackendsEntry.decode(reader, reader.uint32());
|
|
781
|
-
if (entry6.value !== void 0) {
|
|
782
|
-
message.environment_backends[entry6.key] = entry6.value;
|
|
783
|
-
}
|
|
784
|
-
continue;
|
|
785
|
-
}
|
|
786
573
|
}
|
|
787
574
|
if ((tag & 7) === 4 || tag === 0) {
|
|
788
575
|
break;
|
|
@@ -802,26 +589,6 @@ var Bundle = {
|
|
|
802
589
|
return acc;
|
|
803
590
|
},
|
|
804
591
|
{}
|
|
805
|
-
) : {},
|
|
806
|
-
environments: isObject2(object.environments) ? globalThis.Object.entries(object.environments).reduce(
|
|
807
|
-
(acc, [key, value]) => {
|
|
808
|
-
acc[key] = value;
|
|
809
|
-
return acc;
|
|
810
|
-
},
|
|
811
|
-
{}
|
|
812
|
-
) : {},
|
|
813
|
-
environment_backends: isObject2(object.environmentBackends) ? globalThis.Object.entries(object.environmentBackends).reduce(
|
|
814
|
-
(acc, [key, value]) => {
|
|
815
|
-
acc[key] = BackendConfig.fromJSON(value);
|
|
816
|
-
return acc;
|
|
817
|
-
},
|
|
818
|
-
{}
|
|
819
|
-
) : isObject2(object.environment_backends) ? globalThis.Object.entries(object.environment_backends).reduce(
|
|
820
|
-
(acc, [key, value]) => {
|
|
821
|
-
acc[key] = BackendConfig.fromJSON(value);
|
|
822
|
-
return acc;
|
|
823
|
-
},
|
|
824
|
-
{}
|
|
825
592
|
) : {}
|
|
826
593
|
};
|
|
827
594
|
},
|
|
@@ -845,24 +612,6 @@ var Bundle = {
|
|
|
845
612
|
});
|
|
846
613
|
}
|
|
847
614
|
}
|
|
848
|
-
if (message.environments) {
|
|
849
|
-
const entries = globalThis.Object.entries(message.environments);
|
|
850
|
-
if (entries.length > 0) {
|
|
851
|
-
obj.environments = {};
|
|
852
|
-
entries.forEach(([k, v]) => {
|
|
853
|
-
obj.environments[k] = v;
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
if (message.environment_backends) {
|
|
858
|
-
const entries = globalThis.Object.entries(message.environment_backends);
|
|
859
|
-
if (entries.length > 0) {
|
|
860
|
-
obj.environmentBackends = {};
|
|
861
|
-
entries.forEach(([k, v]) => {
|
|
862
|
-
obj.environmentBackends[k] = BackendConfig.toJSON(v);
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
615
|
return obj;
|
|
867
616
|
},
|
|
868
617
|
create(base) {
|
|
@@ -882,24 +631,6 @@ var Bundle = {
|
|
|
882
631
|
},
|
|
883
632
|
{}
|
|
884
633
|
);
|
|
885
|
-
message.environments = globalThis.Object.entries(object.environments ?? {}).reduce(
|
|
886
|
-
(acc, [key, value]) => {
|
|
887
|
-
if (value !== void 0) {
|
|
888
|
-
acc[key] = value;
|
|
889
|
-
}
|
|
890
|
-
return acc;
|
|
891
|
-
},
|
|
892
|
-
{}
|
|
893
|
-
);
|
|
894
|
-
message.environment_backends = globalThis.Object.entries(object.environment_backends ?? {}).reduce(
|
|
895
|
-
(acc, [key, value]) => {
|
|
896
|
-
if (value !== void 0) {
|
|
897
|
-
acc[key] = BackendConfig.fromPartial(value);
|
|
898
|
-
}
|
|
899
|
-
return acc;
|
|
900
|
-
},
|
|
901
|
-
{}
|
|
902
|
-
);
|
|
903
634
|
return message;
|
|
904
635
|
}
|
|
905
636
|
};
|
|
@@ -971,142 +702,6 @@ var Bundle_ModulesEntry = {
|
|
|
971
702
|
return message;
|
|
972
703
|
}
|
|
973
704
|
};
|
|
974
|
-
function createBaseBundle_EnvironmentsEntry() {
|
|
975
|
-
return { key: "", value: void 0 };
|
|
976
|
-
}
|
|
977
|
-
var Bundle_EnvironmentsEntry = {
|
|
978
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
979
|
-
if (message.key !== "") {
|
|
980
|
-
writer.uint32(10).string(message.key);
|
|
981
|
-
}
|
|
982
|
-
if (message.value !== void 0) {
|
|
983
|
-
Struct.encode(Struct.wrap(message.value), writer.uint32(18).fork()).join();
|
|
984
|
-
}
|
|
985
|
-
return writer;
|
|
986
|
-
},
|
|
987
|
-
decode(input, length) {
|
|
988
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
989
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
990
|
-
const message = createBaseBundle_EnvironmentsEntry();
|
|
991
|
-
while (reader.pos < end) {
|
|
992
|
-
const tag = reader.uint32();
|
|
993
|
-
switch (tag >>> 3) {
|
|
994
|
-
case 1: {
|
|
995
|
-
if (tag !== 10) {
|
|
996
|
-
break;
|
|
997
|
-
}
|
|
998
|
-
message.key = reader.string();
|
|
999
|
-
continue;
|
|
1000
|
-
}
|
|
1001
|
-
case 2: {
|
|
1002
|
-
if (tag !== 18) {
|
|
1003
|
-
break;
|
|
1004
|
-
}
|
|
1005
|
-
message.value = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
1006
|
-
continue;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1010
|
-
break;
|
|
1011
|
-
}
|
|
1012
|
-
reader.skip(tag & 7);
|
|
1013
|
-
}
|
|
1014
|
-
return message;
|
|
1015
|
-
},
|
|
1016
|
-
fromJSON(object) {
|
|
1017
|
-
return {
|
|
1018
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
1019
|
-
value: isObject2(object.value) ? object.value : void 0
|
|
1020
|
-
};
|
|
1021
|
-
},
|
|
1022
|
-
toJSON(message) {
|
|
1023
|
-
const obj = {};
|
|
1024
|
-
if (message.key !== "") {
|
|
1025
|
-
obj.key = message.key;
|
|
1026
|
-
}
|
|
1027
|
-
if (message.value !== void 0) {
|
|
1028
|
-
obj.value = message.value;
|
|
1029
|
-
}
|
|
1030
|
-
return obj;
|
|
1031
|
-
},
|
|
1032
|
-
create(base) {
|
|
1033
|
-
return Bundle_EnvironmentsEntry.fromPartial(base ?? {});
|
|
1034
|
-
},
|
|
1035
|
-
fromPartial(object) {
|
|
1036
|
-
const message = createBaseBundle_EnvironmentsEntry();
|
|
1037
|
-
message.key = object.key ?? "";
|
|
1038
|
-
message.value = object.value ?? void 0;
|
|
1039
|
-
return message;
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
|
-
function createBaseBundle_EnvironmentBackendsEntry() {
|
|
1043
|
-
return { key: "", value: void 0 };
|
|
1044
|
-
}
|
|
1045
|
-
var Bundle_EnvironmentBackendsEntry = {
|
|
1046
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
1047
|
-
if (message.key !== "") {
|
|
1048
|
-
writer.uint32(10).string(message.key);
|
|
1049
|
-
}
|
|
1050
|
-
if (message.value !== void 0) {
|
|
1051
|
-
BackendConfig.encode(message.value, writer.uint32(18).fork()).join();
|
|
1052
|
-
}
|
|
1053
|
-
return writer;
|
|
1054
|
-
},
|
|
1055
|
-
decode(input, length) {
|
|
1056
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
1057
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1058
|
-
const message = createBaseBundle_EnvironmentBackendsEntry();
|
|
1059
|
-
while (reader.pos < end) {
|
|
1060
|
-
const tag = reader.uint32();
|
|
1061
|
-
switch (tag >>> 3) {
|
|
1062
|
-
case 1: {
|
|
1063
|
-
if (tag !== 10) {
|
|
1064
|
-
break;
|
|
1065
|
-
}
|
|
1066
|
-
message.key = reader.string();
|
|
1067
|
-
continue;
|
|
1068
|
-
}
|
|
1069
|
-
case 2: {
|
|
1070
|
-
if (tag !== 18) {
|
|
1071
|
-
break;
|
|
1072
|
-
}
|
|
1073
|
-
message.value = BackendConfig.decode(reader, reader.uint32());
|
|
1074
|
-
continue;
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1078
|
-
break;
|
|
1079
|
-
}
|
|
1080
|
-
reader.skip(tag & 7);
|
|
1081
|
-
}
|
|
1082
|
-
return message;
|
|
1083
|
-
},
|
|
1084
|
-
fromJSON(object) {
|
|
1085
|
-
return {
|
|
1086
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
1087
|
-
value: isSet2(object.value) ? BackendConfig.fromJSON(object.value) : void 0
|
|
1088
|
-
};
|
|
1089
|
-
},
|
|
1090
|
-
toJSON(message) {
|
|
1091
|
-
const obj = {};
|
|
1092
|
-
if (message.key !== "") {
|
|
1093
|
-
obj.key = message.key;
|
|
1094
|
-
}
|
|
1095
|
-
if (message.value !== void 0) {
|
|
1096
|
-
obj.value = BackendConfig.toJSON(message.value);
|
|
1097
|
-
}
|
|
1098
|
-
return obj;
|
|
1099
|
-
},
|
|
1100
|
-
create(base) {
|
|
1101
|
-
return Bundle_EnvironmentBackendsEntry.fromPartial(base ?? {});
|
|
1102
|
-
},
|
|
1103
|
-
fromPartial(object) {
|
|
1104
|
-
const message = createBaseBundle_EnvironmentBackendsEntry();
|
|
1105
|
-
message.key = object.key ?? "";
|
|
1106
|
-
message.value = object.value !== void 0 && object.value !== null ? BackendConfig.fromPartial(object.value) : void 0;
|
|
1107
|
-
return message;
|
|
1108
|
-
}
|
|
1109
|
-
};
|
|
1110
705
|
function createBaseModule() {
|
|
1111
706
|
return {
|
|
1112
707
|
id: "",
|
|
@@ -1755,7 +1350,7 @@ var OutputDef = {
|
|
|
1755
1350
|
}
|
|
1756
1351
|
};
|
|
1757
1352
|
function createBaseSource() {
|
|
1758
|
-
return { kind: "", repo: "", subdir: "", ref: ""
|
|
1353
|
+
return { kind: "", repo: "", subdir: "", ref: "" };
|
|
1759
1354
|
}
|
|
1760
1355
|
var Source = {
|
|
1761
1356
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -1771,9 +1366,6 @@ var Source = {
|
|
|
1771
1366
|
if (message.ref !== "") {
|
|
1772
1367
|
writer.uint32(34).string(message.ref);
|
|
1773
1368
|
}
|
|
1774
|
-
if (message.organization !== "") {
|
|
1775
|
-
writer.uint32(42).string(message.organization);
|
|
1776
|
-
}
|
|
1777
1369
|
return writer;
|
|
1778
1370
|
},
|
|
1779
1371
|
decode(input, length) {
|
|
@@ -1811,13 +1403,6 @@ var Source = {
|
|
|
1811
1403
|
message.ref = reader.string();
|
|
1812
1404
|
continue;
|
|
1813
1405
|
}
|
|
1814
|
-
case 5: {
|
|
1815
|
-
if (tag !== 42) {
|
|
1816
|
-
break;
|
|
1817
|
-
}
|
|
1818
|
-
message.organization = reader.string();
|
|
1819
|
-
continue;
|
|
1820
|
-
}
|
|
1821
1406
|
}
|
|
1822
1407
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1823
1408
|
break;
|
|
@@ -1831,8 +1416,7 @@ var Source = {
|
|
|
1831
1416
|
kind: isSet2(object.kind) ? globalThis.String(object.kind) : "",
|
|
1832
1417
|
repo: isSet2(object.repo) ? globalThis.String(object.repo) : "",
|
|
1833
1418
|
subdir: isSet2(object.subdir) ? globalThis.String(object.subdir) : "",
|
|
1834
|
-
ref: isSet2(object.ref) ? globalThis.String(object.ref) : ""
|
|
1835
|
-
organization: isSet2(object.organization) ? globalThis.String(object.organization) : ""
|
|
1419
|
+
ref: isSet2(object.ref) ? globalThis.String(object.ref) : ""
|
|
1836
1420
|
};
|
|
1837
1421
|
},
|
|
1838
1422
|
toJSON(message) {
|
|
@@ -1849,9 +1433,6 @@ var Source = {
|
|
|
1849
1433
|
if (message.ref !== "") {
|
|
1850
1434
|
obj.ref = message.ref;
|
|
1851
1435
|
}
|
|
1852
|
-
if (message.organization !== "") {
|
|
1853
|
-
obj.organization = message.organization;
|
|
1854
|
-
}
|
|
1855
1436
|
return obj;
|
|
1856
1437
|
},
|
|
1857
1438
|
create(base) {
|
|
@@ -1863,7 +1444,6 @@ var Source = {
|
|
|
1863
1444
|
message.repo = object.repo ?? "";
|
|
1864
1445
|
message.subdir = object.subdir ?? "";
|
|
1865
1446
|
message.ref = object.ref ?? "";
|
|
1866
|
-
message.organization = object.organization ?? "";
|
|
1867
1447
|
return message;
|
|
1868
1448
|
}
|
|
1869
1449
|
};
|
|
@@ -3796,25 +3376,270 @@ function isSet2(value) {
|
|
|
3796
3376
|
return value !== null && value !== void 0;
|
|
3797
3377
|
}
|
|
3798
3378
|
|
|
3799
|
-
// src/projection/
|
|
3800
|
-
function
|
|
3801
|
-
|
|
3802
|
-
if (
|
|
3803
|
-
|
|
3379
|
+
// src/projection/inspect.ts
|
|
3380
|
+
function hclLiteralText(lit) {
|
|
3381
|
+
if (typeof lit === "string") return quoteHclString(lit);
|
|
3382
|
+
if (typeof lit === "number" || typeof lit === "boolean") return String(lit);
|
|
3383
|
+
if (Array.isArray(lit)) return `[${lit.map(hclLiteralText).join(", ")}]`;
|
|
3384
|
+
if (lit !== null && typeof lit === "object") {
|
|
3385
|
+
return hclObjectText(lit);
|
|
3386
|
+
}
|
|
3387
|
+
return String(lit);
|
|
3804
3388
|
}
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3389
|
+
function quoteHclString(s) {
|
|
3390
|
+
let out = "";
|
|
3391
|
+
for (let i = 0; i < s.length; i++) {
|
|
3392
|
+
const c = s[i];
|
|
3393
|
+
switch (c) {
|
|
3394
|
+
case "\\":
|
|
3395
|
+
out += "\\\\";
|
|
3396
|
+
break;
|
|
3397
|
+
case '"':
|
|
3398
|
+
out += '\\"';
|
|
3399
|
+
break;
|
|
3400
|
+
case "\n":
|
|
3401
|
+
out += "\\n";
|
|
3402
|
+
break;
|
|
3403
|
+
case "\r":
|
|
3404
|
+
out += "\\r";
|
|
3405
|
+
break;
|
|
3406
|
+
case " ":
|
|
3407
|
+
out += "\\t";
|
|
3408
|
+
break;
|
|
3409
|
+
case "$":
|
|
3410
|
+
case "%":
|
|
3411
|
+
out += s[i + 1] === "{" ? c + c : c;
|
|
3412
|
+
break;
|
|
3413
|
+
default:
|
|
3414
|
+
out += c;
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
return `"${out}"`;
|
|
3811
3418
|
}
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3419
|
+
function hclObjectText(obj) {
|
|
3420
|
+
const entries = Object.entries(obj).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
3421
|
+
if (entries.length === 0) return "{}";
|
|
3422
|
+
const width = Math.max(...entries.map(([k]) => k.length)) + 1;
|
|
3423
|
+
const lines = entries.map(([k, v]) => ` ${k.padEnd(width)}= ${hclLiteralText(v)}`);
|
|
3424
|
+
return `{
|
|
3425
|
+
${lines.join("\n")}
|
|
3426
|
+
}`;
|
|
3427
|
+
}
|
|
3428
|
+
function bindingText(b) {
|
|
3429
|
+
if (!b) return "";
|
|
3430
|
+
if (b.lit !== void 0 && b.lit !== null) return hclLiteralText(b.lit);
|
|
3431
|
+
if (b.var) return `var.${b.var}`;
|
|
3432
|
+
if (b.out) return `module.${b.out.module}.${b.out.name}`;
|
|
3433
|
+
if (b.expr) return b.expr.value;
|
|
3434
|
+
return "";
|
|
3435
|
+
}
|
|
3436
|
+
function bindingMode(b) {
|
|
3437
|
+
if (!b) return { mode: "empty" };
|
|
3438
|
+
if (b.out) return { mode: "wired", wired_source: bindingText(b) };
|
|
3439
|
+
if (b.var) return { mode: "variable", variable: b.var };
|
|
3440
|
+
if (b.expr) return { mode: "expression", expression: b.expr.value };
|
|
3441
|
+
if (b.lit !== void 0 && b.lit !== null) return { mode: "literal", value: b.lit };
|
|
3442
|
+
return { mode: "empty" };
|
|
3443
|
+
}
|
|
3444
|
+
function describeBinding(b) {
|
|
3445
|
+
return { mode: bindingMode(b).mode, display: bindingText(b) };
|
|
3446
|
+
}
|
|
3447
|
+
function findChild(mod, id) {
|
|
3448
|
+
for (const use of mod.modules ?? []) {
|
|
3449
|
+
if (use.id === id) return { id, use };
|
|
3450
|
+
}
|
|
3451
|
+
for (const resource of mod.resources ?? []) {
|
|
3452
|
+
if (resource.id === id) return { id, resource };
|
|
3453
|
+
}
|
|
3454
|
+
return null;
|
|
3455
|
+
}
|
|
3456
|
+
function deriveNodeConfig(bundle, instanceId) {
|
|
3457
|
+
const entry = bundle.modules[bundle.entry];
|
|
3458
|
+
if (!entry) return null;
|
|
3459
|
+
const child = findChild(entry, instanceId);
|
|
3460
|
+
if (!child) return null;
|
|
3461
|
+
const target = child.use ? bundle.modules[child.use.module] : void 0;
|
|
3462
|
+
const schemaInputs = target?.interface?.inputs ?? [];
|
|
3463
|
+
const schemaOutputs = target?.interface?.outputs ?? [];
|
|
3464
|
+
const boundInputs = child.use?.inputs ?? child.resource?.inputs ?? {};
|
|
3465
|
+
const inputs = schemaInputs.map((def) => ({
|
|
3466
|
+
name: def.name,
|
|
3467
|
+
type: def.type,
|
|
3468
|
+
required: def.required,
|
|
3469
|
+
description: def.description || void 0,
|
|
3470
|
+
default_value: def.default_value,
|
|
3471
|
+
validation: def.validation?.[0] ? { condition: def.validation[0].condition, error_message: def.validation[0].error_message } : void 0,
|
|
3472
|
+
...bindingMode(boundInputs[def.name])
|
|
3473
|
+
}));
|
|
3474
|
+
const outputs = schemaOutputs.map((def) => ({
|
|
3475
|
+
name: def.name,
|
|
3476
|
+
type: def.type,
|
|
3477
|
+
description: def.description || void 0,
|
|
3478
|
+
sensitive: def.sensitive || void 0
|
|
3479
|
+
}));
|
|
3480
|
+
const siblingIds = [
|
|
3481
|
+
...(entry.modules ?? []).map((u) => u.id),
|
|
3482
|
+
...(entry.resources ?? []).map((r) => r.id)
|
|
3483
|
+
].filter((id) => id !== instanceId);
|
|
3484
|
+
const dependsOn = child.use?.depends_on ?? child.resource?.depends_on ?? [];
|
|
3485
|
+
const providers = child.use?.providers ?? {};
|
|
3486
|
+
const availableVariables = (entry.interface?.inputs ?? []).map((v) => ({
|
|
3487
|
+
name: v.name,
|
|
3488
|
+
type: v.type
|
|
3489
|
+
}));
|
|
3490
|
+
return {
|
|
3491
|
+
instance_id: instanceId,
|
|
3492
|
+
inputs,
|
|
3493
|
+
outputs,
|
|
3494
|
+
sibling_ids: siblingIds,
|
|
3495
|
+
depends_on: dependsOn,
|
|
3496
|
+
providers,
|
|
3497
|
+
available_variables: availableVariables
|
|
3498
|
+
};
|
|
3499
|
+
}
|
|
3500
|
+
function deriveSettingsConfig(bundle) {
|
|
3501
|
+
const entry = bundle.modules[bundle.entry];
|
|
3502
|
+
const terraform = entry?.terraform ? {
|
|
3503
|
+
required_version: entry.terraform.required_version,
|
|
3504
|
+
required_providers: Object.entries(entry.terraform.required_providers ?? {}).map(
|
|
3505
|
+
([name, req]) => ({
|
|
3506
|
+
name,
|
|
3507
|
+
source: req.source,
|
|
3508
|
+
version: req.version,
|
|
3509
|
+
configuration_aliases: req.configuration_aliases
|
|
3510
|
+
})
|
|
3511
|
+
)
|
|
3512
|
+
} : { required_version: "", required_providers: [] };
|
|
3513
|
+
const providers = (entry?.providers ?? []).map((p) => {
|
|
3514
|
+
const config = {};
|
|
3515
|
+
for (const [k, v] of Object.entries(p.config ?? {})) {
|
|
3516
|
+
config[k] = describeBinding(v).display;
|
|
3517
|
+
}
|
|
3518
|
+
return { name: p.name, alias: p.alias, config, blocks: p.blocks };
|
|
3519
|
+
});
|
|
3520
|
+
const locals = (entry?.locals ?? []).map((l) => {
|
|
3521
|
+
const { mode, display } = describeBinding(l.value);
|
|
3522
|
+
return { name: l.name, mode, value_display: display };
|
|
3523
|
+
});
|
|
3524
|
+
const variables = (entry?.interface?.inputs ?? []).map((v) => ({
|
|
3525
|
+
name: v.name,
|
|
3526
|
+
type: v.type,
|
|
3527
|
+
required: v.required,
|
|
3528
|
+
description: v.description || void 0,
|
|
3529
|
+
default_value: v.default_value,
|
|
3530
|
+
validation: v.validation?.map((b) => ({
|
|
3531
|
+
condition: b.condition,
|
|
3532
|
+
error_message: b.error_message
|
|
3533
|
+
})),
|
|
3534
|
+
ephemeral: v.ephemeral,
|
|
3535
|
+
sensitive: v.sensitive || void 0,
|
|
3536
|
+
nullable: v.nullable
|
|
3537
|
+
}));
|
|
3538
|
+
const output_defs = (entry?.interface?.outputs ?? []).map((o) => ({
|
|
3539
|
+
name: o.name,
|
|
3540
|
+
type: o.type,
|
|
3541
|
+
description: o.description || void 0,
|
|
3542
|
+
sensitive: o.sensitive || void 0,
|
|
3543
|
+
depends_on: o.depends_on
|
|
3544
|
+
}));
|
|
3545
|
+
const exports2 = Object.entries(entry?.exports?.outputs ?? {}).flatMap(([name, exp]) => {
|
|
3546
|
+
if (!exp.out) return [];
|
|
3547
|
+
return [{ name, source_instance: exp.out.module, source_output: exp.out.name }];
|
|
3548
|
+
});
|
|
3549
|
+
return { terraform, providers, locals, variables, exports: exports2, output_defs };
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
// src/projection/join-path.ts
|
|
3553
|
+
function joinPath(prefix, localId) {
|
|
3554
|
+
return prefix === "" ? localId : `${prefix}.${localId}`;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
// src/projection/node-for-address.ts
|
|
3558
|
+
var INSTANCE_KEY = /\[[^\]]*\]$/;
|
|
3559
|
+
function tokenizeAddress(address) {
|
|
3560
|
+
const tokens = [];
|
|
3561
|
+
let current = "";
|
|
3562
|
+
let depth = 0;
|
|
3563
|
+
for (const ch of address) {
|
|
3564
|
+
if (ch === "[") depth++;
|
|
3565
|
+
else if (ch === "]") depth--;
|
|
3566
|
+
if (ch === "." && depth === 0) {
|
|
3567
|
+
tokens.push(current);
|
|
3568
|
+
current = "";
|
|
3569
|
+
} else {
|
|
3570
|
+
current += ch;
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
tokens.push(current);
|
|
3574
|
+
return tokens;
|
|
3575
|
+
}
|
|
3576
|
+
function nodeIdForAddress(view, address) {
|
|
3577
|
+
const tokens = tokenizeAddress(address);
|
|
3578
|
+
const moduleNames = [];
|
|
3579
|
+
let i = 0;
|
|
3580
|
+
while (i + 1 < tokens.length && tokens[i] === "module") {
|
|
3581
|
+
moduleNames.push(tokens[i + 1].replace(INSTANCE_KEY, ""));
|
|
3582
|
+
i += 2;
|
|
3583
|
+
}
|
|
3584
|
+
if (moduleNames.length === 0) return null;
|
|
3585
|
+
const known = /* @__PURE__ */ new Set();
|
|
3586
|
+
for (const n of view.nodes) known.add(n.id);
|
|
3587
|
+
for (const g of view.groups) known.add(g.id);
|
|
3588
|
+
for (let k = moduleNames.length; k >= 1; k--) {
|
|
3589
|
+
let path = "";
|
|
3590
|
+
for (let j = 0; j < k; j++) path = joinPath(path, moduleNames[j]);
|
|
3591
|
+
if (known.has(path)) return path;
|
|
3592
|
+
}
|
|
3593
|
+
return null;
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
// src/projection/node-for-diagnostic.ts
|
|
3597
|
+
function buildScopeIndex(view) {
|
|
3598
|
+
const byModuleKey = /* @__PURE__ */ new Map();
|
|
3599
|
+
const known = /* @__PURE__ */ new Set();
|
|
3600
|
+
for (const n of view.nodes) known.add(n.id);
|
|
3601
|
+
for (const g of view.groups) {
|
|
3602
|
+
known.add(g.id);
|
|
3603
|
+
if (g.module_key) {
|
|
3604
|
+
const ids = byModuleKey.get(g.module_key);
|
|
3605
|
+
if (ids) ids.push(g.id);
|
|
3606
|
+
else byModuleKey.set(g.module_key, [g.id]);
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
return { byModuleKey, known };
|
|
3610
|
+
}
|
|
3611
|
+
function nodeIdForDiagnostic(view, diagnostic) {
|
|
3612
|
+
if (diagnostic.address) return nodeIdForAddress(view, diagnostic.address);
|
|
3613
|
+
if (!diagnostic.instance_id) return null;
|
|
3614
|
+
const index = buildScopeIndex(view);
|
|
3615
|
+
const scopeIds = diagnostic.module_key ? index.byModuleKey.get(diagnostic.module_key) : void 0;
|
|
3616
|
+
if (!scopeIds || scopeIds.length === 0) {
|
|
3617
|
+
return index.known.has(diagnostic.instance_id) ? diagnostic.instance_id : null;
|
|
3618
|
+
}
|
|
3619
|
+
if (scopeIds.length > 1) return null;
|
|
3620
|
+
const nodeId = `${scopeIds[0]}.${diagnostic.instance_id}`;
|
|
3621
|
+
return index.known.has(nodeId) ? nodeId : null;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
// src/projection/parse-module-key.ts
|
|
3625
|
+
function parseModuleKey(key) {
|
|
3626
|
+
const at = key.lastIndexOf("@");
|
|
3627
|
+
if (at < 0) return { id: key, version: "" };
|
|
3628
|
+
return { id: key.slice(0, at), version: key.slice(at + 1) };
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
// src/projection/classify-child.ts
|
|
3632
|
+
function isGroupUse(bundle, use) {
|
|
3633
|
+
const target = bundle.modules[use.module];
|
|
3634
|
+
if (!target) return false;
|
|
3635
|
+
return (target.modules?.length ?? 0) > 0;
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
// src/projection/compute-layout.ts
|
|
3639
|
+
var SPACING_X = 260;
|
|
3640
|
+
var SPACING_Y = 180;
|
|
3641
|
+
function gridPosition(index, n) {
|
|
3642
|
+
const cols = Math.max(2, Math.ceil(Math.sqrt(n)));
|
|
3818
3643
|
const col = index % cols;
|
|
3819
3644
|
const row = Math.floor(index / cols);
|
|
3820
3645
|
return { x: col * SPACING_X, y: row * SPACING_Y };
|
|
@@ -3990,11 +3815,6 @@ function indexWires(edges) {
|
|
|
3990
3815
|
return { inputs, outputs };
|
|
3991
3816
|
}
|
|
3992
3817
|
|
|
3993
|
-
// src/projection/join-path.ts
|
|
3994
|
-
function joinPath(prefix, localId) {
|
|
3995
|
-
return prefix === "" ? localId : `${prefix}.${localId}`;
|
|
3996
|
-
}
|
|
3997
|
-
|
|
3998
3818
|
// src/projection/project-group.ts
|
|
3999
3819
|
function projectGroup(use, target, fullId, parentArrangement) {
|
|
4000
3820
|
const childIds = (target.modules ?? []).map((u) => joinPath(fullId, u.id));
|
|
@@ -4051,8 +3871,7 @@ function descendScope(bundle, scopeKey, segments) {
|
|
|
4051
3871
|
}
|
|
4052
3872
|
|
|
4053
3873
|
// src/projection/project-node.ts
|
|
4054
|
-
function projectNode(bundle, use, fullId, position, wiredIn, wiredOut
|
|
4055
|
-
const errorMessages = errorsByInstance.get(use.id) ?? [];
|
|
3874
|
+
function projectNode(bundle, use, fullId, position, wiredIn, wiredOut) {
|
|
4056
3875
|
const schema = resolveSchema(bundle, use);
|
|
4057
3876
|
return {
|
|
4058
3877
|
id: fullId,
|
|
@@ -4060,8 +3879,6 @@ function projectNode(bundle, use, fullId, position, wiredIn, wiredOut, errorsByI
|
|
|
4060
3879
|
kind: "module",
|
|
4061
3880
|
module_key: use.module,
|
|
4062
3881
|
position,
|
|
4063
|
-
has_errors: errorMessages.length > 0,
|
|
4064
|
-
error_messages: errorMessages,
|
|
4065
3882
|
inputs: schema.inputs.map((in_) => ({
|
|
4066
3883
|
name: in_.name,
|
|
4067
3884
|
type: in_.type,
|
|
@@ -4080,7 +3897,12 @@ function projectNode(bundle, use, fullId, position, wiredIn, wiredOut, errorsByI
|
|
|
4080
3897
|
}
|
|
4081
3898
|
|
|
4082
3899
|
// src/projection/project-scope.ts
|
|
4083
|
-
function
|
|
3900
|
+
function requirePosition(positions, id) {
|
|
3901
|
+
const pos = positions.get(id);
|
|
3902
|
+
if (!pos) throw new Error(`projectScope: no computed position for "${id}"`);
|
|
3903
|
+
return pos;
|
|
3904
|
+
}
|
|
3905
|
+
function projectScope(bundle, mod, path, arrangement) {
|
|
4084
3906
|
const uses = mod.modules ?? [];
|
|
4085
3907
|
const derived = deriveEdges(uses);
|
|
4086
3908
|
const { inputs: wiredIn, outputs: wiredOut } = indexWires(derived);
|
|
@@ -4104,12 +3926,11 @@ function projectScope(bundle, mod, path, arrangement, errorsByInstance) {
|
|
|
4104
3926
|
use,
|
|
4105
3927
|
fullId,
|
|
4106
3928
|
// Every non-group use is in nodeUseIds, so resolveScopePositionsByDepth
|
|
4107
|
-
// always has an entry for it —
|
|
4108
|
-
//
|
|
4109
|
-
positions
|
|
3929
|
+
// always has an entry for it — requirePosition turns that into a
|
|
3930
|
+
// checked invariant instead of a silent gap a fallback would mask.
|
|
3931
|
+
requirePosition(positions, use.id),
|
|
4110
3932
|
wiredIn.get(use.id) ?? /* @__PURE__ */ new Set(),
|
|
4111
|
-
wiredOut.get(use.id) ?? /* @__PURE__ */ new Set()
|
|
4112
|
-
errorsByInstance
|
|
3933
|
+
wiredOut.get(use.id) ?? /* @__PURE__ */ new Set()
|
|
4113
3934
|
)
|
|
4114
3935
|
);
|
|
4115
3936
|
}
|
|
@@ -4127,38 +3948,6 @@ function projectScope(bundle, mod, path, arrangement, errorsByInstance) {
|
|
|
4127
3948
|
return { nodes, edges, groups };
|
|
4128
3949
|
}
|
|
4129
3950
|
|
|
4130
|
-
// src/projection/view-validate.ts
|
|
4131
|
-
function missingRequiredInputErrors(nodes) {
|
|
4132
|
-
const errors = [];
|
|
4133
|
-
for (const node of nodes) {
|
|
4134
|
-
for (const pin of node.inputs ?? []) {
|
|
4135
|
-
if (pin.required && !pin.wired) {
|
|
4136
|
-
errors.push({
|
|
4137
|
-
instance_id: node.id,
|
|
4138
|
-
input_name: pin.name,
|
|
4139
|
-
message: `Required input "${pin.name}" is not set`
|
|
4140
|
-
});
|
|
4141
|
-
}
|
|
4142
|
-
}
|
|
4143
|
-
}
|
|
4144
|
-
return errors;
|
|
4145
|
-
}
|
|
4146
|
-
function danglingEdgeErrors(nodes, groups, edges) {
|
|
4147
|
-
const known = /* @__PURE__ */ new Set();
|
|
4148
|
-
for (const n of nodes) known.add(n.id);
|
|
4149
|
-
for (const g of groups) known.add(g.id);
|
|
4150
|
-
const errors = [];
|
|
4151
|
-
for (const e of edges) {
|
|
4152
|
-
if (!known.has(e.source) || !known.has(e.target)) {
|
|
4153
|
-
errors.push({
|
|
4154
|
-
instance_id: e.id,
|
|
4155
|
-
message: `Edge "${e.id}" has dangling endpoint(s): source="${e.source}" target="${e.target}"`
|
|
4156
|
-
});
|
|
4157
|
-
}
|
|
4158
|
-
}
|
|
4159
|
-
return errors;
|
|
4160
|
-
}
|
|
4161
|
-
|
|
4162
3951
|
// src/projection/walk-modules.ts
|
|
4163
3952
|
function walk(bundle, visit) {
|
|
4164
3953
|
if (!bundle) return;
|
|
@@ -4176,39 +3965,30 @@ function walkFrom(bundle, mod, use, path, visit) {
|
|
|
4176
3965
|
}
|
|
4177
3966
|
|
|
4178
3967
|
// src/projection/project.ts
|
|
3968
|
+
var EMPTY_BUNDLE = Bundle.fromPartial({
|
|
3969
|
+
entry: "root@v1",
|
|
3970
|
+
modules: { "root@v1": { id: "root", version: "v1.0.0" } }
|
|
3971
|
+
});
|
|
4179
3972
|
function projectCanvasView(bundle, arrangement, meta) {
|
|
4180
3973
|
const nodes = [];
|
|
4181
3974
|
const edges = [];
|
|
4182
3975
|
const groups = [];
|
|
4183
|
-
const errorsByInstance = /* @__PURE__ */ new Map();
|
|
4184
3976
|
walk(bundle, (mod, _use, path) => {
|
|
4185
|
-
const scope = projectScope(bundle, mod, path, arrangement
|
|
3977
|
+
const scope = projectScope(bundle, mod, path, arrangement);
|
|
4186
3978
|
nodes.push(...scope.nodes);
|
|
4187
3979
|
edges.push(...scope.edges);
|
|
4188
3980
|
groups.push(...scope.groups);
|
|
4189
3981
|
});
|
|
4190
|
-
const errors = [
|
|
4191
|
-
...missingRequiredInputErrors(nodes),
|
|
4192
|
-
...danglingEdgeErrors(nodes, groups, edges)
|
|
4193
|
-
];
|
|
4194
|
-
errors.sort((a, b) => {
|
|
4195
|
-
const ai = a.instance_id ?? "";
|
|
4196
|
-
const bi = b.instance_id ?? "";
|
|
4197
|
-
if (ai !== bi) return ai < bi ? -1 : 1;
|
|
4198
|
-
const an = a.input_name ?? "";
|
|
4199
|
-
const bn = b.input_name ?? "";
|
|
4200
|
-
if (an !== bn) return an < bn ? -1 : 1;
|
|
4201
|
-
return a.message < b.message ? -1 : a.message > b.message ? 1 : 0;
|
|
4202
|
-
});
|
|
4203
3982
|
const moduleName = meta.moduleName ?? parseModuleKey(bundle.entry).id;
|
|
4204
3983
|
return {
|
|
4205
3984
|
module_name: moduleName,
|
|
4206
3985
|
nodes,
|
|
4207
3986
|
edges,
|
|
4208
|
-
errors,
|
|
4209
3987
|
can_undo: meta.canUndo,
|
|
4210
3988
|
can_redo: meta.canRedo,
|
|
4211
|
-
|
|
3989
|
+
unsaved: meta.unsaved,
|
|
3990
|
+
conflict: meta.conflict,
|
|
3991
|
+
ungenerated: meta.ungenerated ?? false,
|
|
4212
3992
|
// Every group is now a Use whose target has sub-Uses (CreateGroupAction
|
|
4213
3993
|
// mints a module); emission order already mirrors Use declaration order
|
|
4214
3994
|
// via the walk, so no separate user-group sort is needed.
|
|
@@ -4253,145 +4033,8 @@ function nodeKindToJSON(object) {
|
|
|
4253
4033
|
return "UNRECOGNIZED";
|
|
4254
4034
|
}
|
|
4255
4035
|
}
|
|
4256
|
-
function inputModeFromJSON(object) {
|
|
4257
|
-
switch (object) {
|
|
4258
|
-
case 0:
|
|
4259
|
-
case "INPUT_MODE_UNSPECIFIED":
|
|
4260
|
-
return 0 /* INPUT_MODE_UNSPECIFIED */;
|
|
4261
|
-
case 1:
|
|
4262
|
-
case "INPUT_MODE_EMPTY":
|
|
4263
|
-
return 1 /* INPUT_MODE_EMPTY */;
|
|
4264
|
-
case 2:
|
|
4265
|
-
case "INPUT_MODE_LITERAL":
|
|
4266
|
-
return 2 /* INPUT_MODE_LITERAL */;
|
|
4267
|
-
case 3:
|
|
4268
|
-
case "INPUT_MODE_VARIABLE":
|
|
4269
|
-
return 3 /* INPUT_MODE_VARIABLE */;
|
|
4270
|
-
case 4:
|
|
4271
|
-
case "INPUT_MODE_EXPRESSION":
|
|
4272
|
-
return 4 /* INPUT_MODE_EXPRESSION */;
|
|
4273
|
-
case 5:
|
|
4274
|
-
case "INPUT_MODE_WIRED":
|
|
4275
|
-
return 5 /* INPUT_MODE_WIRED */;
|
|
4276
|
-
case -1:
|
|
4277
|
-
case "UNRECOGNIZED":
|
|
4278
|
-
default:
|
|
4279
|
-
return -1 /* UNRECOGNIZED */;
|
|
4280
|
-
}
|
|
4281
|
-
}
|
|
4282
|
-
function inputModeToJSON(object) {
|
|
4283
|
-
switch (object) {
|
|
4284
|
-
case 0 /* INPUT_MODE_UNSPECIFIED */:
|
|
4285
|
-
return "INPUT_MODE_UNSPECIFIED";
|
|
4286
|
-
case 1 /* INPUT_MODE_EMPTY */:
|
|
4287
|
-
return "INPUT_MODE_EMPTY";
|
|
4288
|
-
case 2 /* INPUT_MODE_LITERAL */:
|
|
4289
|
-
return "INPUT_MODE_LITERAL";
|
|
4290
|
-
case 3 /* INPUT_MODE_VARIABLE */:
|
|
4291
|
-
return "INPUT_MODE_VARIABLE";
|
|
4292
|
-
case 4 /* INPUT_MODE_EXPRESSION */:
|
|
4293
|
-
return "INPUT_MODE_EXPRESSION";
|
|
4294
|
-
case 5 /* INPUT_MODE_WIRED */:
|
|
4295
|
-
return "INPUT_MODE_WIRED";
|
|
4296
|
-
case -1 /* UNRECOGNIZED */:
|
|
4297
|
-
default:
|
|
4298
|
-
return "UNRECOGNIZED";
|
|
4299
|
-
}
|
|
4300
|
-
}
|
|
4301
|
-
function createBaseOutputExportEntry() {
|
|
4302
|
-
return { name: "", source_instance: "", source_output: "" };
|
|
4303
|
-
}
|
|
4304
|
-
var OutputExportEntry = {
|
|
4305
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
4306
|
-
if (message.name !== "") {
|
|
4307
|
-
writer.uint32(10).string(message.name);
|
|
4308
|
-
}
|
|
4309
|
-
if (message.source_instance !== "") {
|
|
4310
|
-
writer.uint32(18).string(message.source_instance);
|
|
4311
|
-
}
|
|
4312
|
-
if (message.source_output !== "") {
|
|
4313
|
-
writer.uint32(26).string(message.source_output);
|
|
4314
|
-
}
|
|
4315
|
-
return writer;
|
|
4316
|
-
},
|
|
4317
|
-
decode(input, length) {
|
|
4318
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
4319
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4320
|
-
const message = createBaseOutputExportEntry();
|
|
4321
|
-
while (reader.pos < end) {
|
|
4322
|
-
const tag = reader.uint32();
|
|
4323
|
-
switch (tag >>> 3) {
|
|
4324
|
-
case 1: {
|
|
4325
|
-
if (tag !== 10) {
|
|
4326
|
-
break;
|
|
4327
|
-
}
|
|
4328
|
-
message.name = reader.string();
|
|
4329
|
-
continue;
|
|
4330
|
-
}
|
|
4331
|
-
case 2: {
|
|
4332
|
-
if (tag !== 18) {
|
|
4333
|
-
break;
|
|
4334
|
-
}
|
|
4335
|
-
message.source_instance = reader.string();
|
|
4336
|
-
continue;
|
|
4337
|
-
}
|
|
4338
|
-
case 3: {
|
|
4339
|
-
if (tag !== 26) {
|
|
4340
|
-
break;
|
|
4341
|
-
}
|
|
4342
|
-
message.source_output = reader.string();
|
|
4343
|
-
continue;
|
|
4344
|
-
}
|
|
4345
|
-
}
|
|
4346
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4347
|
-
break;
|
|
4348
|
-
}
|
|
4349
|
-
reader.skip(tag & 7);
|
|
4350
|
-
}
|
|
4351
|
-
return message;
|
|
4352
|
-
},
|
|
4353
|
-
fromJSON(object) {
|
|
4354
|
-
return {
|
|
4355
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
4356
|
-
source_instance: isSet3(object.sourceInstance) ? globalThis.String(object.sourceInstance) : isSet3(object.source_instance) ? globalThis.String(object.source_instance) : "",
|
|
4357
|
-
source_output: isSet3(object.sourceOutput) ? globalThis.String(object.sourceOutput) : isSet3(object.source_output) ? globalThis.String(object.source_output) : ""
|
|
4358
|
-
};
|
|
4359
|
-
},
|
|
4360
|
-
toJSON(message) {
|
|
4361
|
-
const obj = {};
|
|
4362
|
-
if (message.name !== "") {
|
|
4363
|
-
obj.name = message.name;
|
|
4364
|
-
}
|
|
4365
|
-
if (message.source_instance !== "") {
|
|
4366
|
-
obj.sourceInstance = message.source_instance;
|
|
4367
|
-
}
|
|
4368
|
-
if (message.source_output !== "") {
|
|
4369
|
-
obj.sourceOutput = message.source_output;
|
|
4370
|
-
}
|
|
4371
|
-
return obj;
|
|
4372
|
-
},
|
|
4373
|
-
create(base) {
|
|
4374
|
-
return OutputExportEntry.fromPartial(base ?? {});
|
|
4375
|
-
},
|
|
4376
|
-
fromPartial(object) {
|
|
4377
|
-
const message = createBaseOutputExportEntry();
|
|
4378
|
-
message.name = object.name ?? "";
|
|
4379
|
-
message.source_instance = object.source_instance ?? "";
|
|
4380
|
-
message.source_output = object.source_output ?? "";
|
|
4381
|
-
return message;
|
|
4382
|
-
}
|
|
4383
|
-
};
|
|
4384
4036
|
function createBaseCanvasView() {
|
|
4385
|
-
return {
|
|
4386
|
-
module_name: "",
|
|
4387
|
-
nodes: [],
|
|
4388
|
-
edges: [],
|
|
4389
|
-
errors: [],
|
|
4390
|
-
can_undo: false,
|
|
4391
|
-
can_redo: false,
|
|
4392
|
-
is_dirty: false,
|
|
4393
|
-
groups: []
|
|
4394
|
-
};
|
|
4037
|
+
return { module_name: "", nodes: [], edges: [], can_undo: false, can_redo: false, unsaved: false, groups: [] };
|
|
4395
4038
|
}
|
|
4396
4039
|
var CanvasView = {
|
|
4397
4040
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -4404,17 +4047,14 @@ var CanvasView = {
|
|
|
4404
4047
|
for (const v of message.edges) {
|
|
4405
4048
|
RenderEdge.encode(v, writer.uint32(26).fork()).join();
|
|
4406
4049
|
}
|
|
4407
|
-
for (const v of message.errors) {
|
|
4408
|
-
RenderError.encode(v, writer.uint32(34).fork()).join();
|
|
4409
|
-
}
|
|
4410
4050
|
if (message.can_undo !== false) {
|
|
4411
4051
|
writer.uint32(40).bool(message.can_undo);
|
|
4412
4052
|
}
|
|
4413
4053
|
if (message.can_redo !== false) {
|
|
4414
4054
|
writer.uint32(48).bool(message.can_redo);
|
|
4415
4055
|
}
|
|
4416
|
-
if (message.
|
|
4417
|
-
writer.uint32(56).bool(message.
|
|
4056
|
+
if (message.unsaved !== false) {
|
|
4057
|
+
writer.uint32(56).bool(message.unsaved);
|
|
4418
4058
|
}
|
|
4419
4059
|
for (const v of message.groups) {
|
|
4420
4060
|
RenderGroup.encode(v, writer.uint32(66).fork()).join();
|
|
@@ -4449,13 +4089,6 @@ var CanvasView = {
|
|
|
4449
4089
|
message.edges.push(RenderEdge.decode(reader, reader.uint32()));
|
|
4450
4090
|
continue;
|
|
4451
4091
|
}
|
|
4452
|
-
case 4: {
|
|
4453
|
-
if (tag !== 34) {
|
|
4454
|
-
break;
|
|
4455
|
-
}
|
|
4456
|
-
message.errors.push(RenderError.decode(reader, reader.uint32()));
|
|
4457
|
-
continue;
|
|
4458
|
-
}
|
|
4459
4092
|
case 5: {
|
|
4460
4093
|
if (tag !== 40) {
|
|
4461
4094
|
break;
|
|
@@ -4474,7 +4107,7 @@ var CanvasView = {
|
|
|
4474
4107
|
if (tag !== 56) {
|
|
4475
4108
|
break;
|
|
4476
4109
|
}
|
|
4477
|
-
message.
|
|
4110
|
+
message.unsaved = reader.bool();
|
|
4478
4111
|
continue;
|
|
4479
4112
|
}
|
|
4480
4113
|
case 8: {
|
|
@@ -4497,10 +4130,9 @@ var CanvasView = {
|
|
|
4497
4130
|
module_name: isSet3(object.moduleName) ? globalThis.String(object.moduleName) : isSet3(object.module_name) ? globalThis.String(object.module_name) : "",
|
|
4498
4131
|
nodes: globalThis.Array.isArray(object?.nodes) ? object.nodes.map((e) => RenderNode.fromJSON(e)) : [],
|
|
4499
4132
|
edges: globalThis.Array.isArray(object?.edges) ? object.edges.map((e) => RenderEdge.fromJSON(e)) : [],
|
|
4500
|
-
errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => RenderError.fromJSON(e)) : [],
|
|
4501
4133
|
can_undo: isSet3(object.canUndo) ? globalThis.Boolean(object.canUndo) : isSet3(object.can_undo) ? globalThis.Boolean(object.can_undo) : false,
|
|
4502
4134
|
can_redo: isSet3(object.canRedo) ? globalThis.Boolean(object.canRedo) : isSet3(object.can_redo) ? globalThis.Boolean(object.can_redo) : false,
|
|
4503
|
-
|
|
4135
|
+
unsaved: isSet3(object.unsaved) ? globalThis.Boolean(object.unsaved) : false,
|
|
4504
4136
|
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e) => RenderGroup.fromJSON(e)) : []
|
|
4505
4137
|
};
|
|
4506
4138
|
},
|
|
@@ -4515,17 +4147,14 @@ var CanvasView = {
|
|
|
4515
4147
|
if (message.edges?.length) {
|
|
4516
4148
|
obj.edges = message.edges.map((e) => RenderEdge.toJSON(e));
|
|
4517
4149
|
}
|
|
4518
|
-
if (message.errors?.length) {
|
|
4519
|
-
obj.errors = message.errors.map((e) => RenderError.toJSON(e));
|
|
4520
|
-
}
|
|
4521
4150
|
if (message.can_undo !== false) {
|
|
4522
4151
|
obj.canUndo = message.can_undo;
|
|
4523
4152
|
}
|
|
4524
4153
|
if (message.can_redo !== false) {
|
|
4525
4154
|
obj.canRedo = message.can_redo;
|
|
4526
4155
|
}
|
|
4527
|
-
if (message.
|
|
4528
|
-
obj.
|
|
4156
|
+
if (message.unsaved !== false) {
|
|
4157
|
+
obj.unsaved = message.unsaved;
|
|
4529
4158
|
}
|
|
4530
4159
|
if (message.groups?.length) {
|
|
4531
4160
|
obj.groups = message.groups.map((e) => RenderGroup.toJSON(e));
|
|
@@ -4540,10 +4169,9 @@ var CanvasView = {
|
|
|
4540
4169
|
message.module_name = object.module_name ?? "";
|
|
4541
4170
|
message.nodes = object.nodes?.map((e) => RenderNode.fromPartial(e)) || [];
|
|
4542
4171
|
message.edges = object.edges?.map((e) => RenderEdge.fromPartial(e)) || [];
|
|
4543
|
-
message.errors = object.errors?.map((e) => RenderError.fromPartial(e)) || [];
|
|
4544
4172
|
message.can_undo = object.can_undo ?? false;
|
|
4545
4173
|
message.can_redo = object.can_redo ?? false;
|
|
4546
|
-
message.
|
|
4174
|
+
message.unsaved = object.unsaved ?? false;
|
|
4547
4175
|
message.groups = object.groups?.map((e) => RenderGroup.fromPartial(e)) || [];
|
|
4548
4176
|
return message;
|
|
4549
4177
|
}
|
|
@@ -4692,18 +4320,7 @@ var RenderGroup = {
|
|
|
4692
4320
|
}
|
|
4693
4321
|
};
|
|
4694
4322
|
function createBaseRenderNode() {
|
|
4695
|
-
return {
|
|
4696
|
-
id: "",
|
|
4697
|
-
label: "",
|
|
4698
|
-
kind: 0,
|
|
4699
|
-
module_key: "",
|
|
4700
|
-
icon_url: "",
|
|
4701
|
-
position: void 0,
|
|
4702
|
-
has_errors: false,
|
|
4703
|
-
error_messages: [],
|
|
4704
|
-
inputs: [],
|
|
4705
|
-
outputs: []
|
|
4706
|
-
};
|
|
4323
|
+
return { id: "", label: "", kind: 0, module_key: "", icon_url: "", position: void 0, inputs: [], outputs: [] };
|
|
4707
4324
|
}
|
|
4708
4325
|
var RenderNode = {
|
|
4709
4326
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -4725,12 +4342,6 @@ var RenderNode = {
|
|
|
4725
4342
|
if (message.position !== void 0) {
|
|
4726
4343
|
Position.encode(message.position, writer.uint32(50).fork()).join();
|
|
4727
4344
|
}
|
|
4728
|
-
if (message.has_errors !== false) {
|
|
4729
|
-
writer.uint32(56).bool(message.has_errors);
|
|
4730
|
-
}
|
|
4731
|
-
for (const v of message.error_messages) {
|
|
4732
|
-
writer.uint32(66).string(v);
|
|
4733
|
-
}
|
|
4734
4345
|
for (const v of message.inputs) {
|
|
4735
4346
|
NodePin.encode(v, writer.uint32(74).fork()).join();
|
|
4736
4347
|
}
|
|
@@ -4788,20 +4399,6 @@ var RenderNode = {
|
|
|
4788
4399
|
message.position = Position.decode(reader, reader.uint32());
|
|
4789
4400
|
continue;
|
|
4790
4401
|
}
|
|
4791
|
-
case 7: {
|
|
4792
|
-
if (tag !== 56) {
|
|
4793
|
-
break;
|
|
4794
|
-
}
|
|
4795
|
-
message.has_errors = reader.bool();
|
|
4796
|
-
continue;
|
|
4797
|
-
}
|
|
4798
|
-
case 8: {
|
|
4799
|
-
if (tag !== 66) {
|
|
4800
|
-
break;
|
|
4801
|
-
}
|
|
4802
|
-
message.error_messages.push(reader.string());
|
|
4803
|
-
continue;
|
|
4804
|
-
}
|
|
4805
4402
|
case 9: {
|
|
4806
4403
|
if (tag !== 74) {
|
|
4807
4404
|
break;
|
|
@@ -4832,8 +4429,6 @@ var RenderNode = {
|
|
|
4832
4429
|
module_key: isSet3(object.moduleKey) ? globalThis.String(object.moduleKey) : isSet3(object.module_key) ? globalThis.String(object.module_key) : "",
|
|
4833
4430
|
icon_url: isSet3(object.iconUrl) ? globalThis.String(object.iconUrl) : isSet3(object.icon_url) ? globalThis.String(object.icon_url) : "",
|
|
4834
4431
|
position: isSet3(object.position) ? Position.fromJSON(object.position) : void 0,
|
|
4835
|
-
has_errors: isSet3(object.hasErrors) ? globalThis.Boolean(object.hasErrors) : isSet3(object.has_errors) ? globalThis.Boolean(object.has_errors) : false,
|
|
4836
|
-
error_messages: globalThis.Array.isArray(object?.errorMessages) ? object.errorMessages.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.error_messages) ? object.error_messages.map((e) => globalThis.String(e)) : [],
|
|
4837
4432
|
inputs: globalThis.Array.isArray(object?.inputs) ? object.inputs.map((e) => NodePin.fromJSON(e)) : [],
|
|
4838
4433
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => NodePin.fromJSON(e)) : []
|
|
4839
4434
|
};
|
|
@@ -4858,12 +4453,6 @@ var RenderNode = {
|
|
|
4858
4453
|
if (message.position !== void 0) {
|
|
4859
4454
|
obj.position = Position.toJSON(message.position);
|
|
4860
4455
|
}
|
|
4861
|
-
if (message.has_errors !== false) {
|
|
4862
|
-
obj.hasErrors = message.has_errors;
|
|
4863
|
-
}
|
|
4864
|
-
if (message.error_messages?.length) {
|
|
4865
|
-
obj.errorMessages = message.error_messages;
|
|
4866
|
-
}
|
|
4867
4456
|
if (message.inputs?.length) {
|
|
4868
4457
|
obj.inputs = message.inputs.map((e) => NodePin.toJSON(e));
|
|
4869
4458
|
}
|
|
@@ -4883,8 +4472,6 @@ var RenderNode = {
|
|
|
4883
4472
|
message.module_key = object.module_key ?? "";
|
|
4884
4473
|
message.icon_url = object.icon_url ?? "";
|
|
4885
4474
|
message.position = object.position !== void 0 && object.position !== null ? Position.fromPartial(object.position) : void 0;
|
|
4886
|
-
message.has_errors = object.has_errors ?? false;
|
|
4887
|
-
message.error_messages = object.error_messages?.map((e) => e) || [];
|
|
4888
4475
|
message.inputs = object.inputs?.map((e) => NodePin.fromPartial(e)) || [];
|
|
4889
4476
|
message.outputs = object.outputs?.map((e) => NodePin.fromPartial(e)) || [];
|
|
4890
4477
|
return message;
|
|
@@ -5131,2164 +4718,38 @@ var RenderEdge = {
|
|
|
5131
4718
|
return message;
|
|
5132
4719
|
}
|
|
5133
4720
|
};
|
|
5134
|
-
function
|
|
5135
|
-
return {
|
|
5136
|
-
name: "",
|
|
5137
|
-
type: "",
|
|
5138
|
-
required: false,
|
|
5139
|
-
description: "",
|
|
5140
|
-
default_value: void 0,
|
|
5141
|
-
validation: void 0,
|
|
5142
|
-
mode: 0,
|
|
5143
|
-
value: void 0,
|
|
5144
|
-
variable: "",
|
|
5145
|
-
expression: "",
|
|
5146
|
-
wired_source: ""
|
|
5147
|
-
};
|
|
4721
|
+
function createBasePosition() {
|
|
4722
|
+
return { x: 0, y: 0 };
|
|
5148
4723
|
}
|
|
5149
|
-
var
|
|
4724
|
+
var Position = {
|
|
5150
4725
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
5151
|
-
if (message.
|
|
5152
|
-
writer.uint32(
|
|
5153
|
-
}
|
|
5154
|
-
if (message.type !== "") {
|
|
5155
|
-
writer.uint32(18).string(message.type);
|
|
5156
|
-
}
|
|
5157
|
-
if (message.required !== false) {
|
|
5158
|
-
writer.uint32(24).bool(message.required);
|
|
5159
|
-
}
|
|
5160
|
-
if (message.description !== "") {
|
|
5161
|
-
writer.uint32(34).string(message.description);
|
|
5162
|
-
}
|
|
5163
|
-
if (message.default_value !== void 0) {
|
|
5164
|
-
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
5165
|
-
}
|
|
5166
|
-
if (message.validation !== void 0) {
|
|
5167
|
-
ValidationBlock2.encode(message.validation, writer.uint32(50).fork()).join();
|
|
5168
|
-
}
|
|
5169
|
-
if (message.mode !== 0) {
|
|
5170
|
-
writer.uint32(56).int32(message.mode);
|
|
5171
|
-
}
|
|
5172
|
-
if (message.value !== void 0) {
|
|
5173
|
-
Value.encode(Value.wrap(message.value), writer.uint32(66).fork()).join();
|
|
5174
|
-
}
|
|
5175
|
-
if (message.variable !== "") {
|
|
5176
|
-
writer.uint32(74).string(message.variable);
|
|
5177
|
-
}
|
|
5178
|
-
if (message.expression !== "") {
|
|
5179
|
-
writer.uint32(82).string(message.expression);
|
|
4726
|
+
if (message.x !== 0) {
|
|
4727
|
+
writer.uint32(9).double(message.x);
|
|
5180
4728
|
}
|
|
5181
|
-
if (message.
|
|
5182
|
-
writer.uint32(
|
|
4729
|
+
if (message.y !== 0) {
|
|
4730
|
+
writer.uint32(17).double(message.y);
|
|
5183
4731
|
}
|
|
5184
4732
|
return writer;
|
|
5185
4733
|
},
|
|
5186
4734
|
decode(input, length) {
|
|
5187
4735
|
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
5188
4736
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5189
|
-
const message =
|
|
4737
|
+
const message = createBasePosition();
|
|
5190
4738
|
while (reader.pos < end) {
|
|
5191
4739
|
const tag = reader.uint32();
|
|
5192
4740
|
switch (tag >>> 3) {
|
|
5193
4741
|
case 1: {
|
|
5194
|
-
if (tag !==
|
|
4742
|
+
if (tag !== 9) {
|
|
5195
4743
|
break;
|
|
5196
4744
|
}
|
|
5197
|
-
message.
|
|
4745
|
+
message.x = reader.double();
|
|
5198
4746
|
continue;
|
|
5199
4747
|
}
|
|
5200
4748
|
case 2: {
|
|
5201
|
-
if (tag !==
|
|
5202
|
-
break;
|
|
5203
|
-
}
|
|
5204
|
-
message.type = reader.string();
|
|
5205
|
-
continue;
|
|
5206
|
-
}
|
|
5207
|
-
case 3: {
|
|
5208
|
-
if (tag !== 24) {
|
|
4749
|
+
if (tag !== 17) {
|
|
5209
4750
|
break;
|
|
5210
4751
|
}
|
|
5211
|
-
message.
|
|
5212
|
-
continue;
|
|
5213
|
-
}
|
|
5214
|
-
case 4: {
|
|
5215
|
-
if (tag !== 34) {
|
|
5216
|
-
break;
|
|
5217
|
-
}
|
|
5218
|
-
message.description = reader.string();
|
|
5219
|
-
continue;
|
|
5220
|
-
}
|
|
5221
|
-
case 5: {
|
|
5222
|
-
if (tag !== 42) {
|
|
5223
|
-
break;
|
|
5224
|
-
}
|
|
5225
|
-
message.default_value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
5226
|
-
continue;
|
|
5227
|
-
}
|
|
5228
|
-
case 6: {
|
|
5229
|
-
if (tag !== 50) {
|
|
5230
|
-
break;
|
|
5231
|
-
}
|
|
5232
|
-
message.validation = ValidationBlock2.decode(reader, reader.uint32());
|
|
5233
|
-
continue;
|
|
5234
|
-
}
|
|
5235
|
-
case 7: {
|
|
5236
|
-
if (tag !== 56) {
|
|
5237
|
-
break;
|
|
5238
|
-
}
|
|
5239
|
-
message.mode = reader.int32();
|
|
5240
|
-
continue;
|
|
5241
|
-
}
|
|
5242
|
-
case 8: {
|
|
5243
|
-
if (tag !== 66) {
|
|
5244
|
-
break;
|
|
5245
|
-
}
|
|
5246
|
-
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
5247
|
-
continue;
|
|
5248
|
-
}
|
|
5249
|
-
case 9: {
|
|
5250
|
-
if (tag !== 74) {
|
|
5251
|
-
break;
|
|
5252
|
-
}
|
|
5253
|
-
message.variable = reader.string();
|
|
5254
|
-
continue;
|
|
5255
|
-
}
|
|
5256
|
-
case 10: {
|
|
5257
|
-
if (tag !== 82) {
|
|
5258
|
-
break;
|
|
5259
|
-
}
|
|
5260
|
-
message.expression = reader.string();
|
|
5261
|
-
continue;
|
|
5262
|
-
}
|
|
5263
|
-
case 11: {
|
|
5264
|
-
if (tag !== 90) {
|
|
5265
|
-
break;
|
|
5266
|
-
}
|
|
5267
|
-
message.wired_source = reader.string();
|
|
5268
|
-
continue;
|
|
5269
|
-
}
|
|
5270
|
-
}
|
|
5271
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5272
|
-
break;
|
|
5273
|
-
}
|
|
5274
|
-
reader.skip(tag & 7);
|
|
5275
|
-
}
|
|
5276
|
-
return message;
|
|
5277
|
-
},
|
|
5278
|
-
fromJSON(object) {
|
|
5279
|
-
return {
|
|
5280
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
5281
|
-
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
5282
|
-
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
5283
|
-
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
5284
|
-
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
5285
|
-
validation: isSet3(object.validation) ? ValidationBlock2.fromJSON(object.validation) : void 0,
|
|
5286
|
-
mode: isSet3(object.mode) ? inputModeFromJSON(object.mode) : 0,
|
|
5287
|
-
value: isSet3(object?.value) ? object.value : void 0,
|
|
5288
|
-
variable: isSet3(object.variable) ? globalThis.String(object.variable) : "",
|
|
5289
|
-
expression: isSet3(object.expression) ? globalThis.String(object.expression) : "",
|
|
5290
|
-
wired_source: isSet3(object.wiredSource) ? globalThis.String(object.wiredSource) : isSet3(object.wired_source) ? globalThis.String(object.wired_source) : ""
|
|
5291
|
-
};
|
|
5292
|
-
},
|
|
5293
|
-
toJSON(message) {
|
|
5294
|
-
const obj = {};
|
|
5295
|
-
if (message.name !== "") {
|
|
5296
|
-
obj.name = message.name;
|
|
5297
|
-
}
|
|
5298
|
-
if (message.type !== "") {
|
|
5299
|
-
obj.type = message.type;
|
|
5300
|
-
}
|
|
5301
|
-
if (message.required !== false) {
|
|
5302
|
-
obj.required = message.required;
|
|
5303
|
-
}
|
|
5304
|
-
if (message.description !== "") {
|
|
5305
|
-
obj.description = message.description;
|
|
5306
|
-
}
|
|
5307
|
-
if (message.default_value !== void 0) {
|
|
5308
|
-
obj.defaultValue = message.default_value;
|
|
5309
|
-
}
|
|
5310
|
-
if (message.validation !== void 0) {
|
|
5311
|
-
obj.validation = ValidationBlock2.toJSON(message.validation);
|
|
5312
|
-
}
|
|
5313
|
-
if (message.mode !== 0) {
|
|
5314
|
-
obj.mode = inputModeToJSON(message.mode);
|
|
5315
|
-
}
|
|
5316
|
-
if (message.value !== void 0) {
|
|
5317
|
-
obj.value = message.value;
|
|
5318
|
-
}
|
|
5319
|
-
if (message.variable !== "") {
|
|
5320
|
-
obj.variable = message.variable;
|
|
5321
|
-
}
|
|
5322
|
-
if (message.expression !== "") {
|
|
5323
|
-
obj.expression = message.expression;
|
|
5324
|
-
}
|
|
5325
|
-
if (message.wired_source !== "") {
|
|
5326
|
-
obj.wiredSource = message.wired_source;
|
|
5327
|
-
}
|
|
5328
|
-
return obj;
|
|
5329
|
-
},
|
|
5330
|
-
create(base) {
|
|
5331
|
-
return RenderInput.fromPartial(base ?? {});
|
|
5332
|
-
},
|
|
5333
|
-
fromPartial(object) {
|
|
5334
|
-
const message = createBaseRenderInput();
|
|
5335
|
-
message.name = object.name ?? "";
|
|
5336
|
-
message.type = object.type ?? "";
|
|
5337
|
-
message.required = object.required ?? false;
|
|
5338
|
-
message.description = object.description ?? "";
|
|
5339
|
-
message.default_value = object.default_value ?? void 0;
|
|
5340
|
-
message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock2.fromPartial(object.validation) : void 0;
|
|
5341
|
-
message.mode = object.mode ?? 0;
|
|
5342
|
-
message.value = object.value ?? void 0;
|
|
5343
|
-
message.variable = object.variable ?? "";
|
|
5344
|
-
message.expression = object.expression ?? "";
|
|
5345
|
-
message.wired_source = object.wired_source ?? "";
|
|
5346
|
-
return message;
|
|
5347
|
-
}
|
|
5348
|
-
};
|
|
5349
|
-
function createBaseRenderOutput() {
|
|
5350
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
5351
|
-
}
|
|
5352
|
-
var RenderOutput = {
|
|
5353
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
5354
|
-
if (message.name !== "") {
|
|
5355
|
-
writer.uint32(10).string(message.name);
|
|
5356
|
-
}
|
|
5357
|
-
if (message.type !== "") {
|
|
5358
|
-
writer.uint32(18).string(message.type);
|
|
5359
|
-
}
|
|
5360
|
-
if (message.description !== "") {
|
|
5361
|
-
writer.uint32(26).string(message.description);
|
|
5362
|
-
}
|
|
5363
|
-
if (message.sensitive !== false) {
|
|
5364
|
-
writer.uint32(32).bool(message.sensitive);
|
|
5365
|
-
}
|
|
5366
|
-
return writer;
|
|
5367
|
-
},
|
|
5368
|
-
decode(input, length) {
|
|
5369
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
5370
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5371
|
-
const message = createBaseRenderOutput();
|
|
5372
|
-
while (reader.pos < end) {
|
|
5373
|
-
const tag = reader.uint32();
|
|
5374
|
-
switch (tag >>> 3) {
|
|
5375
|
-
case 1: {
|
|
5376
|
-
if (tag !== 10) {
|
|
5377
|
-
break;
|
|
5378
|
-
}
|
|
5379
|
-
message.name = reader.string();
|
|
5380
|
-
continue;
|
|
5381
|
-
}
|
|
5382
|
-
case 2: {
|
|
5383
|
-
if (tag !== 18) {
|
|
5384
|
-
break;
|
|
5385
|
-
}
|
|
5386
|
-
message.type = reader.string();
|
|
5387
|
-
continue;
|
|
5388
|
-
}
|
|
5389
|
-
case 3: {
|
|
5390
|
-
if (tag !== 26) {
|
|
5391
|
-
break;
|
|
5392
|
-
}
|
|
5393
|
-
message.description = reader.string();
|
|
5394
|
-
continue;
|
|
5395
|
-
}
|
|
5396
|
-
case 4: {
|
|
5397
|
-
if (tag !== 32) {
|
|
5398
|
-
break;
|
|
5399
|
-
}
|
|
5400
|
-
message.sensitive = reader.bool();
|
|
5401
|
-
continue;
|
|
5402
|
-
}
|
|
5403
|
-
}
|
|
5404
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5405
|
-
break;
|
|
5406
|
-
}
|
|
5407
|
-
reader.skip(tag & 7);
|
|
5408
|
-
}
|
|
5409
|
-
return message;
|
|
5410
|
-
},
|
|
5411
|
-
fromJSON(object) {
|
|
5412
|
-
return {
|
|
5413
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
5414
|
-
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
5415
|
-
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
5416
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
5417
|
-
};
|
|
5418
|
-
},
|
|
5419
|
-
toJSON(message) {
|
|
5420
|
-
const obj = {};
|
|
5421
|
-
if (message.name !== "") {
|
|
5422
|
-
obj.name = message.name;
|
|
5423
|
-
}
|
|
5424
|
-
if (message.type !== "") {
|
|
5425
|
-
obj.type = message.type;
|
|
5426
|
-
}
|
|
5427
|
-
if (message.description !== "") {
|
|
5428
|
-
obj.description = message.description;
|
|
5429
|
-
}
|
|
5430
|
-
if (message.sensitive !== false) {
|
|
5431
|
-
obj.sensitive = message.sensitive;
|
|
5432
|
-
}
|
|
5433
|
-
return obj;
|
|
5434
|
-
},
|
|
5435
|
-
create(base) {
|
|
5436
|
-
return RenderOutput.fromPartial(base ?? {});
|
|
5437
|
-
},
|
|
5438
|
-
fromPartial(object) {
|
|
5439
|
-
const message = createBaseRenderOutput();
|
|
5440
|
-
message.name = object.name ?? "";
|
|
5441
|
-
message.type = object.type ?? "";
|
|
5442
|
-
message.description = object.description ?? "";
|
|
5443
|
-
message.sensitive = object.sensitive ?? false;
|
|
5444
|
-
return message;
|
|
5445
|
-
}
|
|
5446
|
-
};
|
|
5447
|
-
function createBaseNodeConfig() {
|
|
5448
|
-
return {
|
|
5449
|
-
instance_id: "",
|
|
5450
|
-
inputs: [],
|
|
5451
|
-
outputs: [],
|
|
5452
|
-
sibling_ids: [],
|
|
5453
|
-
depends_on: [],
|
|
5454
|
-
available_variables: [],
|
|
5455
|
-
providers: {}
|
|
5456
|
-
};
|
|
5457
|
-
}
|
|
5458
|
-
var NodeConfig = {
|
|
5459
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
5460
|
-
if (message.instance_id !== "") {
|
|
5461
|
-
writer.uint32(10).string(message.instance_id);
|
|
5462
|
-
}
|
|
5463
|
-
for (const v of message.inputs) {
|
|
5464
|
-
RenderInput.encode(v, writer.uint32(18).fork()).join();
|
|
5465
|
-
}
|
|
5466
|
-
for (const v of message.outputs) {
|
|
5467
|
-
RenderOutput.encode(v, writer.uint32(26).fork()).join();
|
|
5468
|
-
}
|
|
5469
|
-
for (const v of message.sibling_ids) {
|
|
5470
|
-
writer.uint32(34).string(v);
|
|
5471
|
-
}
|
|
5472
|
-
for (const v of message.depends_on) {
|
|
5473
|
-
writer.uint32(42).string(v);
|
|
5474
|
-
}
|
|
5475
|
-
for (const v of message.available_variables) {
|
|
5476
|
-
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
5477
|
-
}
|
|
5478
|
-
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
5479
|
-
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
5480
|
-
});
|
|
5481
|
-
return writer;
|
|
5482
|
-
},
|
|
5483
|
-
decode(input, length) {
|
|
5484
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
5485
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5486
|
-
const message = createBaseNodeConfig();
|
|
5487
|
-
while (reader.pos < end) {
|
|
5488
|
-
const tag = reader.uint32();
|
|
5489
|
-
switch (tag >>> 3) {
|
|
5490
|
-
case 1: {
|
|
5491
|
-
if (tag !== 10) {
|
|
5492
|
-
break;
|
|
5493
|
-
}
|
|
5494
|
-
message.instance_id = reader.string();
|
|
5495
|
-
continue;
|
|
5496
|
-
}
|
|
5497
|
-
case 2: {
|
|
5498
|
-
if (tag !== 18) {
|
|
5499
|
-
break;
|
|
5500
|
-
}
|
|
5501
|
-
message.inputs.push(RenderInput.decode(reader, reader.uint32()));
|
|
5502
|
-
continue;
|
|
5503
|
-
}
|
|
5504
|
-
case 3: {
|
|
5505
|
-
if (tag !== 26) {
|
|
5506
|
-
break;
|
|
5507
|
-
}
|
|
5508
|
-
message.outputs.push(RenderOutput.decode(reader, reader.uint32()));
|
|
5509
|
-
continue;
|
|
5510
|
-
}
|
|
5511
|
-
case 4: {
|
|
5512
|
-
if (tag !== 34) {
|
|
5513
|
-
break;
|
|
5514
|
-
}
|
|
5515
|
-
message.sibling_ids.push(reader.string());
|
|
5516
|
-
continue;
|
|
5517
|
-
}
|
|
5518
|
-
case 5: {
|
|
5519
|
-
if (tag !== 42) {
|
|
5520
|
-
break;
|
|
5521
|
-
}
|
|
5522
|
-
message.depends_on.push(reader.string());
|
|
5523
|
-
continue;
|
|
5524
|
-
}
|
|
5525
|
-
case 6: {
|
|
5526
|
-
if (tag !== 50) {
|
|
5527
|
-
break;
|
|
5528
|
-
}
|
|
5529
|
-
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
5530
|
-
continue;
|
|
5531
|
-
}
|
|
5532
|
-
case 7: {
|
|
5533
|
-
if (tag !== 58) {
|
|
5534
|
-
break;
|
|
5535
|
-
}
|
|
5536
|
-
const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
|
|
5537
|
-
if (entry7.value !== void 0) {
|
|
5538
|
-
message.providers[entry7.key] = entry7.value;
|
|
5539
|
-
}
|
|
5540
|
-
continue;
|
|
5541
|
-
}
|
|
5542
|
-
}
|
|
5543
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5544
|
-
break;
|
|
5545
|
-
}
|
|
5546
|
-
reader.skip(tag & 7);
|
|
5547
|
-
}
|
|
5548
|
-
return message;
|
|
5549
|
-
},
|
|
5550
|
-
fromJSON(object) {
|
|
5551
|
-
return {
|
|
5552
|
-
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
5553
|
-
inputs: globalThis.Array.isArray(object?.inputs) ? object.inputs.map((e) => RenderInput.fromJSON(e)) : [],
|
|
5554
|
-
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
5555
|
-
sibling_ids: globalThis.Array.isArray(object?.siblingIds) ? object.siblingIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.sibling_ids) ? object.sibling_ids.map((e) => globalThis.String(e)) : [],
|
|
5556
|
-
depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
|
|
5557
|
-
available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : [],
|
|
5558
|
-
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
5559
|
-
(acc, [key, value]) => {
|
|
5560
|
-
acc[key] = globalThis.String(value);
|
|
5561
|
-
return acc;
|
|
5562
|
-
},
|
|
5563
|
-
{}
|
|
5564
|
-
) : {}
|
|
5565
|
-
};
|
|
5566
|
-
},
|
|
5567
|
-
toJSON(message) {
|
|
5568
|
-
const obj = {};
|
|
5569
|
-
if (message.instance_id !== "") {
|
|
5570
|
-
obj.instanceId = message.instance_id;
|
|
5571
|
-
}
|
|
5572
|
-
if (message.inputs?.length) {
|
|
5573
|
-
obj.inputs = message.inputs.map((e) => RenderInput.toJSON(e));
|
|
5574
|
-
}
|
|
5575
|
-
if (message.outputs?.length) {
|
|
5576
|
-
obj.outputs = message.outputs.map((e) => RenderOutput.toJSON(e));
|
|
5577
|
-
}
|
|
5578
|
-
if (message.sibling_ids?.length) {
|
|
5579
|
-
obj.siblingIds = message.sibling_ids;
|
|
5580
|
-
}
|
|
5581
|
-
if (message.depends_on?.length) {
|
|
5582
|
-
obj.dependsOn = message.depends_on;
|
|
5583
|
-
}
|
|
5584
|
-
if (message.available_variables?.length) {
|
|
5585
|
-
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
5586
|
-
}
|
|
5587
|
-
if (message.providers) {
|
|
5588
|
-
const entries = globalThis.Object.entries(message.providers);
|
|
5589
|
-
if (entries.length > 0) {
|
|
5590
|
-
obj.providers = {};
|
|
5591
|
-
entries.forEach(([k, v]) => {
|
|
5592
|
-
obj.providers[k] = v;
|
|
5593
|
-
});
|
|
5594
|
-
}
|
|
5595
|
-
}
|
|
5596
|
-
return obj;
|
|
5597
|
-
},
|
|
5598
|
-
create(base) {
|
|
5599
|
-
return NodeConfig.fromPartial(base ?? {});
|
|
5600
|
-
},
|
|
5601
|
-
fromPartial(object) {
|
|
5602
|
-
const message = createBaseNodeConfig();
|
|
5603
|
-
message.instance_id = object.instance_id ?? "";
|
|
5604
|
-
message.inputs = object.inputs?.map((e) => RenderInput.fromPartial(e)) || [];
|
|
5605
|
-
message.outputs = object.outputs?.map((e) => RenderOutput.fromPartial(e)) || [];
|
|
5606
|
-
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
5607
|
-
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
5608
|
-
message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
|
|
5609
|
-
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
5610
|
-
(acc, [key, value]) => {
|
|
5611
|
-
if (value !== void 0) {
|
|
5612
|
-
acc[key] = globalThis.String(value);
|
|
5613
|
-
}
|
|
5614
|
-
return acc;
|
|
5615
|
-
},
|
|
5616
|
-
{}
|
|
5617
|
-
);
|
|
5618
|
-
return message;
|
|
5619
|
-
}
|
|
5620
|
-
};
|
|
5621
|
-
function createBaseNodeConfig_ProvidersEntry() {
|
|
5622
|
-
return { key: "", value: "" };
|
|
5623
|
-
}
|
|
5624
|
-
var NodeConfig_ProvidersEntry = {
|
|
5625
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
5626
|
-
if (message.key !== "") {
|
|
5627
|
-
writer.uint32(10).string(message.key);
|
|
5628
|
-
}
|
|
5629
|
-
if (message.value !== "") {
|
|
5630
|
-
writer.uint32(18).string(message.value);
|
|
5631
|
-
}
|
|
5632
|
-
return writer;
|
|
5633
|
-
},
|
|
5634
|
-
decode(input, length) {
|
|
5635
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
5636
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5637
|
-
const message = createBaseNodeConfig_ProvidersEntry();
|
|
5638
|
-
while (reader.pos < end) {
|
|
5639
|
-
const tag = reader.uint32();
|
|
5640
|
-
switch (tag >>> 3) {
|
|
5641
|
-
case 1: {
|
|
5642
|
-
if (tag !== 10) {
|
|
5643
|
-
break;
|
|
5644
|
-
}
|
|
5645
|
-
message.key = reader.string();
|
|
5646
|
-
continue;
|
|
5647
|
-
}
|
|
5648
|
-
case 2: {
|
|
5649
|
-
if (tag !== 18) {
|
|
5650
|
-
break;
|
|
5651
|
-
}
|
|
5652
|
-
message.value = reader.string();
|
|
5653
|
-
continue;
|
|
5654
|
-
}
|
|
5655
|
-
}
|
|
5656
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5657
|
-
break;
|
|
5658
|
-
}
|
|
5659
|
-
reader.skip(tag & 7);
|
|
5660
|
-
}
|
|
5661
|
-
return message;
|
|
5662
|
-
},
|
|
5663
|
-
fromJSON(object) {
|
|
5664
|
-
return {
|
|
5665
|
-
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
5666
|
-
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
5667
|
-
};
|
|
5668
|
-
},
|
|
5669
|
-
toJSON(message) {
|
|
5670
|
-
const obj = {};
|
|
5671
|
-
if (message.key !== "") {
|
|
5672
|
-
obj.key = message.key;
|
|
5673
|
-
}
|
|
5674
|
-
if (message.value !== "") {
|
|
5675
|
-
obj.value = message.value;
|
|
5676
|
-
}
|
|
5677
|
-
return obj;
|
|
5678
|
-
},
|
|
5679
|
-
create(base) {
|
|
5680
|
-
return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
|
|
5681
|
-
},
|
|
5682
|
-
fromPartial(object) {
|
|
5683
|
-
const message = createBaseNodeConfig_ProvidersEntry();
|
|
5684
|
-
message.key = object.key ?? "";
|
|
5685
|
-
message.value = object.value ?? "";
|
|
5686
|
-
return message;
|
|
5687
|
-
}
|
|
5688
|
-
};
|
|
5689
|
-
function createBaseVariableRef() {
|
|
5690
|
-
return { name: "", type: "" };
|
|
5691
|
-
}
|
|
5692
|
-
var VariableRef = {
|
|
5693
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
5694
|
-
if (message.name !== "") {
|
|
5695
|
-
writer.uint32(10).string(message.name);
|
|
5696
|
-
}
|
|
5697
|
-
if (message.type !== "") {
|
|
5698
|
-
writer.uint32(18).string(message.type);
|
|
5699
|
-
}
|
|
5700
|
-
return writer;
|
|
5701
|
-
},
|
|
5702
|
-
decode(input, length) {
|
|
5703
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
5704
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5705
|
-
const message = createBaseVariableRef();
|
|
5706
|
-
while (reader.pos < end) {
|
|
5707
|
-
const tag = reader.uint32();
|
|
5708
|
-
switch (tag >>> 3) {
|
|
5709
|
-
case 1: {
|
|
5710
|
-
if (tag !== 10) {
|
|
5711
|
-
break;
|
|
5712
|
-
}
|
|
5713
|
-
message.name = reader.string();
|
|
5714
|
-
continue;
|
|
5715
|
-
}
|
|
5716
|
-
case 2: {
|
|
5717
|
-
if (tag !== 18) {
|
|
5718
|
-
break;
|
|
5719
|
-
}
|
|
5720
|
-
message.type = reader.string();
|
|
5721
|
-
continue;
|
|
5722
|
-
}
|
|
5723
|
-
}
|
|
5724
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5725
|
-
break;
|
|
5726
|
-
}
|
|
5727
|
-
reader.skip(tag & 7);
|
|
5728
|
-
}
|
|
5729
|
-
return message;
|
|
5730
|
-
},
|
|
5731
|
-
fromJSON(object) {
|
|
5732
|
-
return {
|
|
5733
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
5734
|
-
type: isSet3(object.type) ? globalThis.String(object.type) : ""
|
|
5735
|
-
};
|
|
5736
|
-
},
|
|
5737
|
-
toJSON(message) {
|
|
5738
|
-
const obj = {};
|
|
5739
|
-
if (message.name !== "") {
|
|
5740
|
-
obj.name = message.name;
|
|
5741
|
-
}
|
|
5742
|
-
if (message.type !== "") {
|
|
5743
|
-
obj.type = message.type;
|
|
5744
|
-
}
|
|
5745
|
-
return obj;
|
|
5746
|
-
},
|
|
5747
|
-
create(base) {
|
|
5748
|
-
return VariableRef.fromPartial(base ?? {});
|
|
5749
|
-
},
|
|
5750
|
-
fromPartial(object) {
|
|
5751
|
-
const message = createBaseVariableRef();
|
|
5752
|
-
message.name = object.name ?? "";
|
|
5753
|
-
message.type = object.type ?? "";
|
|
5754
|
-
return message;
|
|
5755
|
-
}
|
|
5756
|
-
};
|
|
5757
|
-
function createBaseEdgeConfig() {
|
|
5758
|
-
return { source_instance: "", target_instance: "", source_outputs: [], target_unbound_inputs: [] };
|
|
5759
|
-
}
|
|
5760
|
-
var EdgeConfig = {
|
|
5761
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
5762
|
-
if (message.source_instance !== "") {
|
|
5763
|
-
writer.uint32(10).string(message.source_instance);
|
|
5764
|
-
}
|
|
5765
|
-
if (message.target_instance !== "") {
|
|
5766
|
-
writer.uint32(18).string(message.target_instance);
|
|
5767
|
-
}
|
|
5768
|
-
for (const v of message.source_outputs) {
|
|
5769
|
-
RenderOutput.encode(v, writer.uint32(26).fork()).join();
|
|
5770
|
-
}
|
|
5771
|
-
for (const v of message.target_unbound_inputs) {
|
|
5772
|
-
RenderInput.encode(v, writer.uint32(34).fork()).join();
|
|
5773
|
-
}
|
|
5774
|
-
return writer;
|
|
5775
|
-
},
|
|
5776
|
-
decode(input, length) {
|
|
5777
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
5778
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5779
|
-
const message = createBaseEdgeConfig();
|
|
5780
|
-
while (reader.pos < end) {
|
|
5781
|
-
const tag = reader.uint32();
|
|
5782
|
-
switch (tag >>> 3) {
|
|
5783
|
-
case 1: {
|
|
5784
|
-
if (tag !== 10) {
|
|
5785
|
-
break;
|
|
5786
|
-
}
|
|
5787
|
-
message.source_instance = reader.string();
|
|
5788
|
-
continue;
|
|
5789
|
-
}
|
|
5790
|
-
case 2: {
|
|
5791
|
-
if (tag !== 18) {
|
|
5792
|
-
break;
|
|
5793
|
-
}
|
|
5794
|
-
message.target_instance = reader.string();
|
|
5795
|
-
continue;
|
|
5796
|
-
}
|
|
5797
|
-
case 3: {
|
|
5798
|
-
if (tag !== 26) {
|
|
5799
|
-
break;
|
|
5800
|
-
}
|
|
5801
|
-
message.source_outputs.push(RenderOutput.decode(reader, reader.uint32()));
|
|
5802
|
-
continue;
|
|
5803
|
-
}
|
|
5804
|
-
case 4: {
|
|
5805
|
-
if (tag !== 34) {
|
|
5806
|
-
break;
|
|
5807
|
-
}
|
|
5808
|
-
message.target_unbound_inputs.push(RenderInput.decode(reader, reader.uint32()));
|
|
5809
|
-
continue;
|
|
5810
|
-
}
|
|
5811
|
-
}
|
|
5812
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5813
|
-
break;
|
|
5814
|
-
}
|
|
5815
|
-
reader.skip(tag & 7);
|
|
5816
|
-
}
|
|
5817
|
-
return message;
|
|
5818
|
-
},
|
|
5819
|
-
fromJSON(object) {
|
|
5820
|
-
return {
|
|
5821
|
-
source_instance: isSet3(object.sourceInstance) ? globalThis.String(object.sourceInstance) : isSet3(object.source_instance) ? globalThis.String(object.source_instance) : "",
|
|
5822
|
-
target_instance: isSet3(object.targetInstance) ? globalThis.String(object.targetInstance) : isSet3(object.target_instance) ? globalThis.String(object.target_instance) : "",
|
|
5823
|
-
source_outputs: globalThis.Array.isArray(object?.sourceOutputs) ? object.sourceOutputs.map((e) => RenderOutput.fromJSON(e)) : globalThis.Array.isArray(object?.source_outputs) ? object.source_outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
5824
|
-
target_unbound_inputs: globalThis.Array.isArray(object?.targetUnboundInputs) ? object.targetUnboundInputs.map((e) => RenderInput.fromJSON(e)) : globalThis.Array.isArray(object?.target_unbound_inputs) ? object.target_unbound_inputs.map((e) => RenderInput.fromJSON(e)) : []
|
|
5825
|
-
};
|
|
5826
|
-
},
|
|
5827
|
-
toJSON(message) {
|
|
5828
|
-
const obj = {};
|
|
5829
|
-
if (message.source_instance !== "") {
|
|
5830
|
-
obj.sourceInstance = message.source_instance;
|
|
5831
|
-
}
|
|
5832
|
-
if (message.target_instance !== "") {
|
|
5833
|
-
obj.targetInstance = message.target_instance;
|
|
5834
|
-
}
|
|
5835
|
-
if (message.source_outputs?.length) {
|
|
5836
|
-
obj.sourceOutputs = message.source_outputs.map((e) => RenderOutput.toJSON(e));
|
|
5837
|
-
}
|
|
5838
|
-
if (message.target_unbound_inputs?.length) {
|
|
5839
|
-
obj.targetUnboundInputs = message.target_unbound_inputs.map((e) => RenderInput.toJSON(e));
|
|
5840
|
-
}
|
|
5841
|
-
return obj;
|
|
5842
|
-
},
|
|
5843
|
-
create(base) {
|
|
5844
|
-
return EdgeConfig.fromPartial(base ?? {});
|
|
5845
|
-
},
|
|
5846
|
-
fromPartial(object) {
|
|
5847
|
-
const message = createBaseEdgeConfig();
|
|
5848
|
-
message.source_instance = object.source_instance ?? "";
|
|
5849
|
-
message.target_instance = object.target_instance ?? "";
|
|
5850
|
-
message.source_outputs = object.source_outputs?.map((e) => RenderOutput.fromPartial(e)) || [];
|
|
5851
|
-
message.target_unbound_inputs = object.target_unbound_inputs?.map((e) => RenderInput.fromPartial(e)) || [];
|
|
5852
|
-
return message;
|
|
5853
|
-
}
|
|
5854
|
-
};
|
|
5855
|
-
function createBaseSettingsConfig() {
|
|
5856
|
-
return {
|
|
5857
|
-
terraform: void 0,
|
|
5858
|
-
providers: [],
|
|
5859
|
-
locals: [],
|
|
5860
|
-
environments: {},
|
|
5861
|
-
environment_backends: {},
|
|
5862
|
-
variables: [],
|
|
5863
|
-
exports: [],
|
|
5864
|
-
output_defs: []
|
|
5865
|
-
};
|
|
5866
|
-
}
|
|
5867
|
-
var SettingsConfig = {
|
|
5868
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
5869
|
-
if (message.terraform !== void 0) {
|
|
5870
|
-
TerraformView.encode(message.terraform, writer.uint32(10).fork()).join();
|
|
5871
|
-
}
|
|
5872
|
-
for (const v of message.providers) {
|
|
5873
|
-
ProviderView.encode(v, writer.uint32(18).fork()).join();
|
|
5874
|
-
}
|
|
5875
|
-
for (const v of message.locals) {
|
|
5876
|
-
LocalView.encode(v, writer.uint32(26).fork()).join();
|
|
5877
|
-
}
|
|
5878
|
-
globalThis.Object.entries(message.environments).forEach(
|
|
5879
|
-
([key, value]) => {
|
|
5880
|
-
if (value !== void 0) {
|
|
5881
|
-
SettingsConfig_EnvironmentsEntry.encode({ key, value }, writer.uint32(34).fork()).join();
|
|
5882
|
-
}
|
|
5883
|
-
}
|
|
5884
|
-
);
|
|
5885
|
-
globalThis.Object.entries(message.environment_backends).forEach(([key, value]) => {
|
|
5886
|
-
SettingsConfig_EnvironmentBackendsEntry.encode({ key, value }, writer.uint32(42).fork()).join();
|
|
5887
|
-
});
|
|
5888
|
-
for (const v of message.variables) {
|
|
5889
|
-
InputDef2.encode(v, writer.uint32(50).fork()).join();
|
|
5890
|
-
}
|
|
5891
|
-
for (const v of message.exports) {
|
|
5892
|
-
OutputExportEntry.encode(v, writer.uint32(58).fork()).join();
|
|
5893
|
-
}
|
|
5894
|
-
for (const v of message.output_defs) {
|
|
5895
|
-
OutputDef2.encode(v, writer.uint32(66).fork()).join();
|
|
5896
|
-
}
|
|
5897
|
-
return writer;
|
|
5898
|
-
},
|
|
5899
|
-
decode(input, length) {
|
|
5900
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
5901
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5902
|
-
const message = createBaseSettingsConfig();
|
|
5903
|
-
while (reader.pos < end) {
|
|
5904
|
-
const tag = reader.uint32();
|
|
5905
|
-
switch (tag >>> 3) {
|
|
5906
|
-
case 1: {
|
|
5907
|
-
if (tag !== 10) {
|
|
5908
|
-
break;
|
|
5909
|
-
}
|
|
5910
|
-
message.terraform = TerraformView.decode(reader, reader.uint32());
|
|
5911
|
-
continue;
|
|
5912
|
-
}
|
|
5913
|
-
case 2: {
|
|
5914
|
-
if (tag !== 18) {
|
|
5915
|
-
break;
|
|
5916
|
-
}
|
|
5917
|
-
message.providers.push(ProviderView.decode(reader, reader.uint32()));
|
|
5918
|
-
continue;
|
|
5919
|
-
}
|
|
5920
|
-
case 3: {
|
|
5921
|
-
if (tag !== 26) {
|
|
5922
|
-
break;
|
|
5923
|
-
}
|
|
5924
|
-
message.locals.push(LocalView.decode(reader, reader.uint32()));
|
|
5925
|
-
continue;
|
|
5926
|
-
}
|
|
5927
|
-
case 4: {
|
|
5928
|
-
if (tag !== 34) {
|
|
5929
|
-
break;
|
|
5930
|
-
}
|
|
5931
|
-
const entry4 = SettingsConfig_EnvironmentsEntry.decode(reader, reader.uint32());
|
|
5932
|
-
if (entry4.value !== void 0) {
|
|
5933
|
-
message.environments[entry4.key] = entry4.value;
|
|
5934
|
-
}
|
|
5935
|
-
continue;
|
|
5936
|
-
}
|
|
5937
|
-
case 5: {
|
|
5938
|
-
if (tag !== 42) {
|
|
5939
|
-
break;
|
|
5940
|
-
}
|
|
5941
|
-
const entry5 = SettingsConfig_EnvironmentBackendsEntry.decode(reader, reader.uint32());
|
|
5942
|
-
if (entry5.value !== void 0) {
|
|
5943
|
-
message.environment_backends[entry5.key] = entry5.value;
|
|
5944
|
-
}
|
|
5945
|
-
continue;
|
|
5946
|
-
}
|
|
5947
|
-
case 6: {
|
|
5948
|
-
if (tag !== 50) {
|
|
5949
|
-
break;
|
|
5950
|
-
}
|
|
5951
|
-
message.variables.push(InputDef2.decode(reader, reader.uint32()));
|
|
5952
|
-
continue;
|
|
5953
|
-
}
|
|
5954
|
-
case 7: {
|
|
5955
|
-
if (tag !== 58) {
|
|
5956
|
-
break;
|
|
5957
|
-
}
|
|
5958
|
-
message.exports.push(OutputExportEntry.decode(reader, reader.uint32()));
|
|
5959
|
-
continue;
|
|
5960
|
-
}
|
|
5961
|
-
case 8: {
|
|
5962
|
-
if (tag !== 66) {
|
|
5963
|
-
break;
|
|
5964
|
-
}
|
|
5965
|
-
message.output_defs.push(OutputDef2.decode(reader, reader.uint32()));
|
|
5966
|
-
continue;
|
|
5967
|
-
}
|
|
5968
|
-
}
|
|
5969
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5970
|
-
break;
|
|
5971
|
-
}
|
|
5972
|
-
reader.skip(tag & 7);
|
|
5973
|
-
}
|
|
5974
|
-
return message;
|
|
5975
|
-
},
|
|
5976
|
-
fromJSON(object) {
|
|
5977
|
-
return {
|
|
5978
|
-
terraform: isSet3(object.terraform) ? TerraformView.fromJSON(object.terraform) : void 0,
|
|
5979
|
-
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderView.fromJSON(e)) : [],
|
|
5980
|
-
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => LocalView.fromJSON(e)) : [],
|
|
5981
|
-
environments: isObject3(object.environments) ? globalThis.Object.entries(object.environments).reduce(
|
|
5982
|
-
(acc, [key, value]) => {
|
|
5983
|
-
acc[key] = value;
|
|
5984
|
-
return acc;
|
|
5985
|
-
},
|
|
5986
|
-
{}
|
|
5987
|
-
) : {},
|
|
5988
|
-
environment_backends: isObject3(object.environmentBackends) ? globalThis.Object.entries(object.environmentBackends).reduce(
|
|
5989
|
-
(acc, [key, value]) => {
|
|
5990
|
-
acc[key] = BackendView.fromJSON(value);
|
|
5991
|
-
return acc;
|
|
5992
|
-
},
|
|
5993
|
-
{}
|
|
5994
|
-
) : isObject3(object.environment_backends) ? globalThis.Object.entries(object.environment_backends).reduce(
|
|
5995
|
-
(acc, [key, value]) => {
|
|
5996
|
-
acc[key] = BackendView.fromJSON(value);
|
|
5997
|
-
return acc;
|
|
5998
|
-
},
|
|
5999
|
-
{}
|
|
6000
|
-
) : {},
|
|
6001
|
-
variables: globalThis.Array.isArray(object?.variables) ? object.variables.map((e) => InputDef2.fromJSON(e)) : [],
|
|
6002
|
-
exports: globalThis.Array.isArray(object?.exports) ? object.exports.map((e) => OutputExportEntry.fromJSON(e)) : [],
|
|
6003
|
-
output_defs: globalThis.Array.isArray(object?.outputDefs) ? object.outputDefs.map((e) => OutputDef2.fromJSON(e)) : globalThis.Array.isArray(object?.output_defs) ? object.output_defs.map((e) => OutputDef2.fromJSON(e)) : []
|
|
6004
|
-
};
|
|
6005
|
-
},
|
|
6006
|
-
toJSON(message) {
|
|
6007
|
-
const obj = {};
|
|
6008
|
-
if (message.terraform !== void 0) {
|
|
6009
|
-
obj.terraform = TerraformView.toJSON(message.terraform);
|
|
6010
|
-
}
|
|
6011
|
-
if (message.providers?.length) {
|
|
6012
|
-
obj.providers = message.providers.map((e) => ProviderView.toJSON(e));
|
|
6013
|
-
}
|
|
6014
|
-
if (message.locals?.length) {
|
|
6015
|
-
obj.locals = message.locals.map((e) => LocalView.toJSON(e));
|
|
6016
|
-
}
|
|
6017
|
-
if (message.environments) {
|
|
6018
|
-
const entries = globalThis.Object.entries(message.environments);
|
|
6019
|
-
if (entries.length > 0) {
|
|
6020
|
-
obj.environments = {};
|
|
6021
|
-
entries.forEach(([k, v]) => {
|
|
6022
|
-
obj.environments[k] = v;
|
|
6023
|
-
});
|
|
6024
|
-
}
|
|
6025
|
-
}
|
|
6026
|
-
if (message.environment_backends) {
|
|
6027
|
-
const entries = globalThis.Object.entries(message.environment_backends);
|
|
6028
|
-
if (entries.length > 0) {
|
|
6029
|
-
obj.environmentBackends = {};
|
|
6030
|
-
entries.forEach(([k, v]) => {
|
|
6031
|
-
obj.environmentBackends[k] = BackendView.toJSON(v);
|
|
6032
|
-
});
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6035
|
-
if (message.variables?.length) {
|
|
6036
|
-
obj.variables = message.variables.map((e) => InputDef2.toJSON(e));
|
|
6037
|
-
}
|
|
6038
|
-
if (message.exports?.length) {
|
|
6039
|
-
obj.exports = message.exports.map((e) => OutputExportEntry.toJSON(e));
|
|
6040
|
-
}
|
|
6041
|
-
if (message.output_defs?.length) {
|
|
6042
|
-
obj.outputDefs = message.output_defs.map((e) => OutputDef2.toJSON(e));
|
|
6043
|
-
}
|
|
6044
|
-
return obj;
|
|
6045
|
-
},
|
|
6046
|
-
create(base) {
|
|
6047
|
-
return SettingsConfig.fromPartial(base ?? {});
|
|
6048
|
-
},
|
|
6049
|
-
fromPartial(object) {
|
|
6050
|
-
const message = createBaseSettingsConfig();
|
|
6051
|
-
message.terraform = object.terraform !== void 0 && object.terraform !== null ? TerraformView.fromPartial(object.terraform) : void 0;
|
|
6052
|
-
message.providers = object.providers?.map((e) => ProviderView.fromPartial(e)) || [];
|
|
6053
|
-
message.locals = object.locals?.map((e) => LocalView.fromPartial(e)) || [];
|
|
6054
|
-
message.environments = globalThis.Object.entries(object.environments ?? {}).reduce(
|
|
6055
|
-
(acc, [key, value]) => {
|
|
6056
|
-
if (value !== void 0) {
|
|
6057
|
-
acc[key] = value;
|
|
6058
|
-
}
|
|
6059
|
-
return acc;
|
|
6060
|
-
},
|
|
6061
|
-
{}
|
|
6062
|
-
);
|
|
6063
|
-
message.environment_backends = globalThis.Object.entries(object.environment_backends ?? {}).reduce(
|
|
6064
|
-
(acc, [key, value]) => {
|
|
6065
|
-
if (value !== void 0) {
|
|
6066
|
-
acc[key] = BackendView.fromPartial(value);
|
|
6067
|
-
}
|
|
6068
|
-
return acc;
|
|
6069
|
-
},
|
|
6070
|
-
{}
|
|
6071
|
-
);
|
|
6072
|
-
message.variables = object.variables?.map((e) => InputDef2.fromPartial(e)) || [];
|
|
6073
|
-
message.exports = object.exports?.map((e) => OutputExportEntry.fromPartial(e)) || [];
|
|
6074
|
-
message.output_defs = object.output_defs?.map((e) => OutputDef2.fromPartial(e)) || [];
|
|
6075
|
-
return message;
|
|
6076
|
-
}
|
|
6077
|
-
};
|
|
6078
|
-
function createBaseSettingsConfig_EnvironmentsEntry() {
|
|
6079
|
-
return { key: "", value: void 0 };
|
|
6080
|
-
}
|
|
6081
|
-
var SettingsConfig_EnvironmentsEntry = {
|
|
6082
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6083
|
-
if (message.key !== "") {
|
|
6084
|
-
writer.uint32(10).string(message.key);
|
|
6085
|
-
}
|
|
6086
|
-
if (message.value !== void 0) {
|
|
6087
|
-
Struct.encode(Struct.wrap(message.value), writer.uint32(18).fork()).join();
|
|
6088
|
-
}
|
|
6089
|
-
return writer;
|
|
6090
|
-
},
|
|
6091
|
-
decode(input, length) {
|
|
6092
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6093
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6094
|
-
const message = createBaseSettingsConfig_EnvironmentsEntry();
|
|
6095
|
-
while (reader.pos < end) {
|
|
6096
|
-
const tag = reader.uint32();
|
|
6097
|
-
switch (tag >>> 3) {
|
|
6098
|
-
case 1: {
|
|
6099
|
-
if (tag !== 10) {
|
|
6100
|
-
break;
|
|
6101
|
-
}
|
|
6102
|
-
message.key = reader.string();
|
|
6103
|
-
continue;
|
|
6104
|
-
}
|
|
6105
|
-
case 2: {
|
|
6106
|
-
if (tag !== 18) {
|
|
6107
|
-
break;
|
|
6108
|
-
}
|
|
6109
|
-
message.value = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
6110
|
-
continue;
|
|
6111
|
-
}
|
|
6112
|
-
}
|
|
6113
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6114
|
-
break;
|
|
6115
|
-
}
|
|
6116
|
-
reader.skip(tag & 7);
|
|
6117
|
-
}
|
|
6118
|
-
return message;
|
|
6119
|
-
},
|
|
6120
|
-
fromJSON(object) {
|
|
6121
|
-
return {
|
|
6122
|
-
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6123
|
-
value: isObject3(object.value) ? object.value : void 0
|
|
6124
|
-
};
|
|
6125
|
-
},
|
|
6126
|
-
toJSON(message) {
|
|
6127
|
-
const obj = {};
|
|
6128
|
-
if (message.key !== "") {
|
|
6129
|
-
obj.key = message.key;
|
|
6130
|
-
}
|
|
6131
|
-
if (message.value !== void 0) {
|
|
6132
|
-
obj.value = message.value;
|
|
6133
|
-
}
|
|
6134
|
-
return obj;
|
|
6135
|
-
},
|
|
6136
|
-
create(base) {
|
|
6137
|
-
return SettingsConfig_EnvironmentsEntry.fromPartial(base ?? {});
|
|
6138
|
-
},
|
|
6139
|
-
fromPartial(object) {
|
|
6140
|
-
const message = createBaseSettingsConfig_EnvironmentsEntry();
|
|
6141
|
-
message.key = object.key ?? "";
|
|
6142
|
-
message.value = object.value ?? void 0;
|
|
6143
|
-
return message;
|
|
6144
|
-
}
|
|
6145
|
-
};
|
|
6146
|
-
function createBaseSettingsConfig_EnvironmentBackendsEntry() {
|
|
6147
|
-
return { key: "", value: void 0 };
|
|
6148
|
-
}
|
|
6149
|
-
var SettingsConfig_EnvironmentBackendsEntry = {
|
|
6150
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6151
|
-
if (message.key !== "") {
|
|
6152
|
-
writer.uint32(10).string(message.key);
|
|
6153
|
-
}
|
|
6154
|
-
if (message.value !== void 0) {
|
|
6155
|
-
BackendView.encode(message.value, writer.uint32(18).fork()).join();
|
|
6156
|
-
}
|
|
6157
|
-
return writer;
|
|
6158
|
-
},
|
|
6159
|
-
decode(input, length) {
|
|
6160
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6161
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6162
|
-
const message = createBaseSettingsConfig_EnvironmentBackendsEntry();
|
|
6163
|
-
while (reader.pos < end) {
|
|
6164
|
-
const tag = reader.uint32();
|
|
6165
|
-
switch (tag >>> 3) {
|
|
6166
|
-
case 1: {
|
|
6167
|
-
if (tag !== 10) {
|
|
6168
|
-
break;
|
|
6169
|
-
}
|
|
6170
|
-
message.key = reader.string();
|
|
6171
|
-
continue;
|
|
6172
|
-
}
|
|
6173
|
-
case 2: {
|
|
6174
|
-
if (tag !== 18) {
|
|
6175
|
-
break;
|
|
6176
|
-
}
|
|
6177
|
-
message.value = BackendView.decode(reader, reader.uint32());
|
|
6178
|
-
continue;
|
|
6179
|
-
}
|
|
6180
|
-
}
|
|
6181
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6182
|
-
break;
|
|
6183
|
-
}
|
|
6184
|
-
reader.skip(tag & 7);
|
|
6185
|
-
}
|
|
6186
|
-
return message;
|
|
6187
|
-
},
|
|
6188
|
-
fromJSON(object) {
|
|
6189
|
-
return {
|
|
6190
|
-
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6191
|
-
value: isSet3(object.value) ? BackendView.fromJSON(object.value) : void 0
|
|
6192
|
-
};
|
|
6193
|
-
},
|
|
6194
|
-
toJSON(message) {
|
|
6195
|
-
const obj = {};
|
|
6196
|
-
if (message.key !== "") {
|
|
6197
|
-
obj.key = message.key;
|
|
6198
|
-
}
|
|
6199
|
-
if (message.value !== void 0) {
|
|
6200
|
-
obj.value = BackendView.toJSON(message.value);
|
|
6201
|
-
}
|
|
6202
|
-
return obj;
|
|
6203
|
-
},
|
|
6204
|
-
create(base) {
|
|
6205
|
-
return SettingsConfig_EnvironmentBackendsEntry.fromPartial(base ?? {});
|
|
6206
|
-
},
|
|
6207
|
-
fromPartial(object) {
|
|
6208
|
-
const message = createBaseSettingsConfig_EnvironmentBackendsEntry();
|
|
6209
|
-
message.key = object.key ?? "";
|
|
6210
|
-
message.value = object.value !== void 0 && object.value !== null ? BackendView.fromPartial(object.value) : void 0;
|
|
6211
|
-
return message;
|
|
6212
|
-
}
|
|
6213
|
-
};
|
|
6214
|
-
function createBaseTerraformView() {
|
|
6215
|
-
return { required_version: "", required_providers: [], backend: void 0 };
|
|
6216
|
-
}
|
|
6217
|
-
var TerraformView = {
|
|
6218
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6219
|
-
if (message.required_version !== "") {
|
|
6220
|
-
writer.uint32(10).string(message.required_version);
|
|
6221
|
-
}
|
|
6222
|
-
for (const v of message.required_providers) {
|
|
6223
|
-
ProviderReqView.encode(v, writer.uint32(18).fork()).join();
|
|
6224
|
-
}
|
|
6225
|
-
if (message.backend !== void 0) {
|
|
6226
|
-
BackendView.encode(message.backend, writer.uint32(26).fork()).join();
|
|
6227
|
-
}
|
|
6228
|
-
return writer;
|
|
6229
|
-
},
|
|
6230
|
-
decode(input, length) {
|
|
6231
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6232
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6233
|
-
const message = createBaseTerraformView();
|
|
6234
|
-
while (reader.pos < end) {
|
|
6235
|
-
const tag = reader.uint32();
|
|
6236
|
-
switch (tag >>> 3) {
|
|
6237
|
-
case 1: {
|
|
6238
|
-
if (tag !== 10) {
|
|
6239
|
-
break;
|
|
6240
|
-
}
|
|
6241
|
-
message.required_version = reader.string();
|
|
6242
|
-
continue;
|
|
6243
|
-
}
|
|
6244
|
-
case 2: {
|
|
6245
|
-
if (tag !== 18) {
|
|
6246
|
-
break;
|
|
6247
|
-
}
|
|
6248
|
-
message.required_providers.push(ProviderReqView.decode(reader, reader.uint32()));
|
|
6249
|
-
continue;
|
|
6250
|
-
}
|
|
6251
|
-
case 3: {
|
|
6252
|
-
if (tag !== 26) {
|
|
6253
|
-
break;
|
|
6254
|
-
}
|
|
6255
|
-
message.backend = BackendView.decode(reader, reader.uint32());
|
|
6256
|
-
continue;
|
|
6257
|
-
}
|
|
6258
|
-
}
|
|
6259
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6260
|
-
break;
|
|
6261
|
-
}
|
|
6262
|
-
reader.skip(tag & 7);
|
|
6263
|
-
}
|
|
6264
|
-
return message;
|
|
6265
|
-
},
|
|
6266
|
-
fromJSON(object) {
|
|
6267
|
-
return {
|
|
6268
|
-
required_version: isSet3(object.requiredVersion) ? globalThis.String(object.requiredVersion) : isSet3(object.required_version) ? globalThis.String(object.required_version) : "",
|
|
6269
|
-
required_providers: globalThis.Array.isArray(object?.requiredProviders) ? object.requiredProviders.map((e) => ProviderReqView.fromJSON(e)) : globalThis.Array.isArray(object?.required_providers) ? object.required_providers.map((e) => ProviderReqView.fromJSON(e)) : [],
|
|
6270
|
-
backend: isSet3(object.backend) ? BackendView.fromJSON(object.backend) : void 0
|
|
6271
|
-
};
|
|
6272
|
-
},
|
|
6273
|
-
toJSON(message) {
|
|
6274
|
-
const obj = {};
|
|
6275
|
-
if (message.required_version !== "") {
|
|
6276
|
-
obj.requiredVersion = message.required_version;
|
|
6277
|
-
}
|
|
6278
|
-
if (message.required_providers?.length) {
|
|
6279
|
-
obj.requiredProviders = message.required_providers.map((e) => ProviderReqView.toJSON(e));
|
|
6280
|
-
}
|
|
6281
|
-
if (message.backend !== void 0) {
|
|
6282
|
-
obj.backend = BackendView.toJSON(message.backend);
|
|
6283
|
-
}
|
|
6284
|
-
return obj;
|
|
6285
|
-
},
|
|
6286
|
-
create(base) {
|
|
6287
|
-
return TerraformView.fromPartial(base ?? {});
|
|
6288
|
-
},
|
|
6289
|
-
fromPartial(object) {
|
|
6290
|
-
const message = createBaseTerraformView();
|
|
6291
|
-
message.required_version = object.required_version ?? "";
|
|
6292
|
-
message.required_providers = object.required_providers?.map((e) => ProviderReqView.fromPartial(e)) || [];
|
|
6293
|
-
message.backend = object.backend !== void 0 && object.backend !== null ? BackendView.fromPartial(object.backend) : void 0;
|
|
6294
|
-
return message;
|
|
6295
|
-
}
|
|
6296
|
-
};
|
|
6297
|
-
function createBaseProviderReqView() {
|
|
6298
|
-
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
6299
|
-
}
|
|
6300
|
-
var ProviderReqView = {
|
|
6301
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6302
|
-
if (message.name !== "") {
|
|
6303
|
-
writer.uint32(10).string(message.name);
|
|
6304
|
-
}
|
|
6305
|
-
if (message.source !== "") {
|
|
6306
|
-
writer.uint32(18).string(message.source);
|
|
6307
|
-
}
|
|
6308
|
-
if (message.version !== "") {
|
|
6309
|
-
writer.uint32(26).string(message.version);
|
|
6310
|
-
}
|
|
6311
|
-
for (const v of message.configuration_aliases) {
|
|
6312
|
-
writer.uint32(34).string(v);
|
|
6313
|
-
}
|
|
6314
|
-
return writer;
|
|
6315
|
-
},
|
|
6316
|
-
decode(input, length) {
|
|
6317
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6318
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6319
|
-
const message = createBaseProviderReqView();
|
|
6320
|
-
while (reader.pos < end) {
|
|
6321
|
-
const tag = reader.uint32();
|
|
6322
|
-
switch (tag >>> 3) {
|
|
6323
|
-
case 1: {
|
|
6324
|
-
if (tag !== 10) {
|
|
6325
|
-
break;
|
|
6326
|
-
}
|
|
6327
|
-
message.name = reader.string();
|
|
6328
|
-
continue;
|
|
6329
|
-
}
|
|
6330
|
-
case 2: {
|
|
6331
|
-
if (tag !== 18) {
|
|
6332
|
-
break;
|
|
6333
|
-
}
|
|
6334
|
-
message.source = reader.string();
|
|
6335
|
-
continue;
|
|
6336
|
-
}
|
|
6337
|
-
case 3: {
|
|
6338
|
-
if (tag !== 26) {
|
|
6339
|
-
break;
|
|
6340
|
-
}
|
|
6341
|
-
message.version = reader.string();
|
|
6342
|
-
continue;
|
|
6343
|
-
}
|
|
6344
|
-
case 4: {
|
|
6345
|
-
if (tag !== 34) {
|
|
6346
|
-
break;
|
|
6347
|
-
}
|
|
6348
|
-
message.configuration_aliases.push(reader.string());
|
|
6349
|
-
continue;
|
|
6350
|
-
}
|
|
6351
|
-
}
|
|
6352
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6353
|
-
break;
|
|
6354
|
-
}
|
|
6355
|
-
reader.skip(tag & 7);
|
|
6356
|
-
}
|
|
6357
|
-
return message;
|
|
6358
|
-
},
|
|
6359
|
-
fromJSON(object) {
|
|
6360
|
-
return {
|
|
6361
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6362
|
-
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
6363
|
-
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
6364
|
-
configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
|
|
6365
|
-
};
|
|
6366
|
-
},
|
|
6367
|
-
toJSON(message) {
|
|
6368
|
-
const obj = {};
|
|
6369
|
-
if (message.name !== "") {
|
|
6370
|
-
obj.name = message.name;
|
|
6371
|
-
}
|
|
6372
|
-
if (message.source !== "") {
|
|
6373
|
-
obj.source = message.source;
|
|
6374
|
-
}
|
|
6375
|
-
if (message.version !== "") {
|
|
6376
|
-
obj.version = message.version;
|
|
6377
|
-
}
|
|
6378
|
-
if (message.configuration_aliases?.length) {
|
|
6379
|
-
obj.configurationAliases = message.configuration_aliases;
|
|
6380
|
-
}
|
|
6381
|
-
return obj;
|
|
6382
|
-
},
|
|
6383
|
-
create(base) {
|
|
6384
|
-
return ProviderReqView.fromPartial(base ?? {});
|
|
6385
|
-
},
|
|
6386
|
-
fromPartial(object) {
|
|
6387
|
-
const message = createBaseProviderReqView();
|
|
6388
|
-
message.name = object.name ?? "";
|
|
6389
|
-
message.source = object.source ?? "";
|
|
6390
|
-
message.version = object.version ?? "";
|
|
6391
|
-
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
6392
|
-
return message;
|
|
6393
|
-
}
|
|
6394
|
-
};
|
|
6395
|
-
function createBaseBackendView() {
|
|
6396
|
-
return { type: "", config: {} };
|
|
6397
|
-
}
|
|
6398
|
-
var BackendView = {
|
|
6399
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6400
|
-
if (message.type !== "") {
|
|
6401
|
-
writer.uint32(10).string(message.type);
|
|
6402
|
-
}
|
|
6403
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
6404
|
-
if (value !== void 0) {
|
|
6405
|
-
BackendView_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
6406
|
-
}
|
|
6407
|
-
});
|
|
6408
|
-
return writer;
|
|
6409
|
-
},
|
|
6410
|
-
decode(input, length) {
|
|
6411
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6412
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6413
|
-
const message = createBaseBackendView();
|
|
6414
|
-
while (reader.pos < end) {
|
|
6415
|
-
const tag = reader.uint32();
|
|
6416
|
-
switch (tag >>> 3) {
|
|
6417
|
-
case 1: {
|
|
6418
|
-
if (tag !== 10) {
|
|
6419
|
-
break;
|
|
6420
|
-
}
|
|
6421
|
-
message.type = reader.string();
|
|
6422
|
-
continue;
|
|
6423
|
-
}
|
|
6424
|
-
case 2: {
|
|
6425
|
-
if (tag !== 18) {
|
|
6426
|
-
break;
|
|
6427
|
-
}
|
|
6428
|
-
const entry2 = BackendView_ConfigEntry.decode(reader, reader.uint32());
|
|
6429
|
-
if (entry2.value !== void 0) {
|
|
6430
|
-
message.config[entry2.key] = entry2.value;
|
|
6431
|
-
}
|
|
6432
|
-
continue;
|
|
6433
|
-
}
|
|
6434
|
-
}
|
|
6435
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6436
|
-
break;
|
|
6437
|
-
}
|
|
6438
|
-
reader.skip(tag & 7);
|
|
6439
|
-
}
|
|
6440
|
-
return message;
|
|
6441
|
-
},
|
|
6442
|
-
fromJSON(object) {
|
|
6443
|
-
return {
|
|
6444
|
-
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
6445
|
-
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
6446
|
-
(acc, [key, value]) => {
|
|
6447
|
-
acc[key] = value;
|
|
6448
|
-
return acc;
|
|
6449
|
-
},
|
|
6450
|
-
{}
|
|
6451
|
-
) : {}
|
|
6452
|
-
};
|
|
6453
|
-
},
|
|
6454
|
-
toJSON(message) {
|
|
6455
|
-
const obj = {};
|
|
6456
|
-
if (message.type !== "") {
|
|
6457
|
-
obj.type = message.type;
|
|
6458
|
-
}
|
|
6459
|
-
if (message.config) {
|
|
6460
|
-
const entries = globalThis.Object.entries(message.config);
|
|
6461
|
-
if (entries.length > 0) {
|
|
6462
|
-
obj.config = {};
|
|
6463
|
-
entries.forEach(([k, v]) => {
|
|
6464
|
-
obj.config[k] = v;
|
|
6465
|
-
});
|
|
6466
|
-
}
|
|
6467
|
-
}
|
|
6468
|
-
return obj;
|
|
6469
|
-
},
|
|
6470
|
-
create(base) {
|
|
6471
|
-
return BackendView.fromPartial(base ?? {});
|
|
6472
|
-
},
|
|
6473
|
-
fromPartial(object) {
|
|
6474
|
-
const message = createBaseBackendView();
|
|
6475
|
-
message.type = object.type ?? "";
|
|
6476
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
6477
|
-
(acc, [key, value]) => {
|
|
6478
|
-
if (value !== void 0) {
|
|
6479
|
-
acc[key] = value;
|
|
6480
|
-
}
|
|
6481
|
-
return acc;
|
|
6482
|
-
},
|
|
6483
|
-
{}
|
|
6484
|
-
);
|
|
6485
|
-
return message;
|
|
6486
|
-
}
|
|
6487
|
-
};
|
|
6488
|
-
function createBaseBackendView_ConfigEntry() {
|
|
6489
|
-
return { key: "", value: void 0 };
|
|
6490
|
-
}
|
|
6491
|
-
var BackendView_ConfigEntry = {
|
|
6492
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6493
|
-
if (message.key !== "") {
|
|
6494
|
-
writer.uint32(10).string(message.key);
|
|
6495
|
-
}
|
|
6496
|
-
if (message.value !== void 0) {
|
|
6497
|
-
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
6498
|
-
}
|
|
6499
|
-
return writer;
|
|
6500
|
-
},
|
|
6501
|
-
decode(input, length) {
|
|
6502
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6503
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6504
|
-
const message = createBaseBackendView_ConfigEntry();
|
|
6505
|
-
while (reader.pos < end) {
|
|
6506
|
-
const tag = reader.uint32();
|
|
6507
|
-
switch (tag >>> 3) {
|
|
6508
|
-
case 1: {
|
|
6509
|
-
if (tag !== 10) {
|
|
6510
|
-
break;
|
|
6511
|
-
}
|
|
6512
|
-
message.key = reader.string();
|
|
6513
|
-
continue;
|
|
6514
|
-
}
|
|
6515
|
-
case 2: {
|
|
6516
|
-
if (tag !== 18) {
|
|
6517
|
-
break;
|
|
6518
|
-
}
|
|
6519
|
-
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
6520
|
-
continue;
|
|
6521
|
-
}
|
|
6522
|
-
}
|
|
6523
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6524
|
-
break;
|
|
6525
|
-
}
|
|
6526
|
-
reader.skip(tag & 7);
|
|
6527
|
-
}
|
|
6528
|
-
return message;
|
|
6529
|
-
},
|
|
6530
|
-
fromJSON(object) {
|
|
6531
|
-
return {
|
|
6532
|
-
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6533
|
-
value: isSet3(object?.value) ? object.value : void 0
|
|
6534
|
-
};
|
|
6535
|
-
},
|
|
6536
|
-
toJSON(message) {
|
|
6537
|
-
const obj = {};
|
|
6538
|
-
if (message.key !== "") {
|
|
6539
|
-
obj.key = message.key;
|
|
6540
|
-
}
|
|
6541
|
-
if (message.value !== void 0) {
|
|
6542
|
-
obj.value = message.value;
|
|
6543
|
-
}
|
|
6544
|
-
return obj;
|
|
6545
|
-
},
|
|
6546
|
-
create(base) {
|
|
6547
|
-
return BackendView_ConfigEntry.fromPartial(base ?? {});
|
|
6548
|
-
},
|
|
6549
|
-
fromPartial(object) {
|
|
6550
|
-
const message = createBaseBackendView_ConfigEntry();
|
|
6551
|
-
message.key = object.key ?? "";
|
|
6552
|
-
message.value = object.value ?? void 0;
|
|
6553
|
-
return message;
|
|
6554
|
-
}
|
|
6555
|
-
};
|
|
6556
|
-
function createBaseProviderView() {
|
|
6557
|
-
return { name: "", alias: "", config: {}, blocks: [] };
|
|
6558
|
-
}
|
|
6559
|
-
var ProviderView = {
|
|
6560
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6561
|
-
if (message.name !== "") {
|
|
6562
|
-
writer.uint32(10).string(message.name);
|
|
6563
|
-
}
|
|
6564
|
-
if (message.alias !== "") {
|
|
6565
|
-
writer.uint32(18).string(message.alias);
|
|
6566
|
-
}
|
|
6567
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
6568
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6569
|
-
});
|
|
6570
|
-
for (const v of message.blocks) {
|
|
6571
|
-
Block.encode(v, writer.uint32(34).fork()).join();
|
|
6572
|
-
}
|
|
6573
|
-
return writer;
|
|
6574
|
-
},
|
|
6575
|
-
decode(input, length) {
|
|
6576
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6577
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6578
|
-
const message = createBaseProviderView();
|
|
6579
|
-
while (reader.pos < end) {
|
|
6580
|
-
const tag = reader.uint32();
|
|
6581
|
-
switch (tag >>> 3) {
|
|
6582
|
-
case 1: {
|
|
6583
|
-
if (tag !== 10) {
|
|
6584
|
-
break;
|
|
6585
|
-
}
|
|
6586
|
-
message.name = reader.string();
|
|
6587
|
-
continue;
|
|
6588
|
-
}
|
|
6589
|
-
case 2: {
|
|
6590
|
-
if (tag !== 18) {
|
|
6591
|
-
break;
|
|
6592
|
-
}
|
|
6593
|
-
message.alias = reader.string();
|
|
6594
|
-
continue;
|
|
6595
|
-
}
|
|
6596
|
-
case 3: {
|
|
6597
|
-
if (tag !== 26) {
|
|
6598
|
-
break;
|
|
6599
|
-
}
|
|
6600
|
-
const entry3 = ProviderView_ConfigEntry.decode(reader, reader.uint32());
|
|
6601
|
-
if (entry3.value !== void 0) {
|
|
6602
|
-
message.config[entry3.key] = entry3.value;
|
|
6603
|
-
}
|
|
6604
|
-
continue;
|
|
6605
|
-
}
|
|
6606
|
-
case 4: {
|
|
6607
|
-
if (tag !== 34) {
|
|
6608
|
-
break;
|
|
6609
|
-
}
|
|
6610
|
-
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
6611
|
-
continue;
|
|
6612
|
-
}
|
|
6613
|
-
}
|
|
6614
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6615
|
-
break;
|
|
6616
|
-
}
|
|
6617
|
-
reader.skip(tag & 7);
|
|
6618
|
-
}
|
|
6619
|
-
return message;
|
|
6620
|
-
},
|
|
6621
|
-
fromJSON(object) {
|
|
6622
|
-
return {
|
|
6623
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6624
|
-
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
6625
|
-
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
6626
|
-
(acc, [key, value]) => {
|
|
6627
|
-
acc[key] = globalThis.String(value);
|
|
6628
|
-
return acc;
|
|
6629
|
-
},
|
|
6630
|
-
{}
|
|
6631
|
-
) : {},
|
|
6632
|
-
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
6633
|
-
};
|
|
6634
|
-
},
|
|
6635
|
-
toJSON(message) {
|
|
6636
|
-
const obj = {};
|
|
6637
|
-
if (message.name !== "") {
|
|
6638
|
-
obj.name = message.name;
|
|
6639
|
-
}
|
|
6640
|
-
if (message.alias !== "") {
|
|
6641
|
-
obj.alias = message.alias;
|
|
6642
|
-
}
|
|
6643
|
-
if (message.config) {
|
|
6644
|
-
const entries = globalThis.Object.entries(message.config);
|
|
6645
|
-
if (entries.length > 0) {
|
|
6646
|
-
obj.config = {};
|
|
6647
|
-
entries.forEach(([k, v]) => {
|
|
6648
|
-
obj.config[k] = v;
|
|
6649
|
-
});
|
|
6650
|
-
}
|
|
6651
|
-
}
|
|
6652
|
-
if (message.blocks?.length) {
|
|
6653
|
-
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
6654
|
-
}
|
|
6655
|
-
return obj;
|
|
6656
|
-
},
|
|
6657
|
-
create(base) {
|
|
6658
|
-
return ProviderView.fromPartial(base ?? {});
|
|
6659
|
-
},
|
|
6660
|
-
fromPartial(object) {
|
|
6661
|
-
const message = createBaseProviderView();
|
|
6662
|
-
message.name = object.name ?? "";
|
|
6663
|
-
message.alias = object.alias ?? "";
|
|
6664
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
6665
|
-
(acc, [key, value]) => {
|
|
6666
|
-
if (value !== void 0) {
|
|
6667
|
-
acc[key] = globalThis.String(value);
|
|
6668
|
-
}
|
|
6669
|
-
return acc;
|
|
6670
|
-
},
|
|
6671
|
-
{}
|
|
6672
|
-
);
|
|
6673
|
-
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
6674
|
-
return message;
|
|
6675
|
-
}
|
|
6676
|
-
};
|
|
6677
|
-
function createBaseProviderView_ConfigEntry() {
|
|
6678
|
-
return { key: "", value: "" };
|
|
6679
|
-
}
|
|
6680
|
-
var ProviderView_ConfigEntry = {
|
|
6681
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6682
|
-
if (message.key !== "") {
|
|
6683
|
-
writer.uint32(10).string(message.key);
|
|
6684
|
-
}
|
|
6685
|
-
if (message.value !== "") {
|
|
6686
|
-
writer.uint32(18).string(message.value);
|
|
6687
|
-
}
|
|
6688
|
-
return writer;
|
|
6689
|
-
},
|
|
6690
|
-
decode(input, length) {
|
|
6691
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6692
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6693
|
-
const message = createBaseProviderView_ConfigEntry();
|
|
6694
|
-
while (reader.pos < end) {
|
|
6695
|
-
const tag = reader.uint32();
|
|
6696
|
-
switch (tag >>> 3) {
|
|
6697
|
-
case 1: {
|
|
6698
|
-
if (tag !== 10) {
|
|
6699
|
-
break;
|
|
6700
|
-
}
|
|
6701
|
-
message.key = reader.string();
|
|
6702
|
-
continue;
|
|
6703
|
-
}
|
|
6704
|
-
case 2: {
|
|
6705
|
-
if (tag !== 18) {
|
|
6706
|
-
break;
|
|
6707
|
-
}
|
|
6708
|
-
message.value = reader.string();
|
|
6709
|
-
continue;
|
|
6710
|
-
}
|
|
6711
|
-
}
|
|
6712
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6713
|
-
break;
|
|
6714
|
-
}
|
|
6715
|
-
reader.skip(tag & 7);
|
|
6716
|
-
}
|
|
6717
|
-
return message;
|
|
6718
|
-
},
|
|
6719
|
-
fromJSON(object) {
|
|
6720
|
-
return {
|
|
6721
|
-
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6722
|
-
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6723
|
-
};
|
|
6724
|
-
},
|
|
6725
|
-
toJSON(message) {
|
|
6726
|
-
const obj = {};
|
|
6727
|
-
if (message.key !== "") {
|
|
6728
|
-
obj.key = message.key;
|
|
6729
|
-
}
|
|
6730
|
-
if (message.value !== "") {
|
|
6731
|
-
obj.value = message.value;
|
|
6732
|
-
}
|
|
6733
|
-
return obj;
|
|
6734
|
-
},
|
|
6735
|
-
create(base) {
|
|
6736
|
-
return ProviderView_ConfigEntry.fromPartial(base ?? {});
|
|
6737
|
-
},
|
|
6738
|
-
fromPartial(object) {
|
|
6739
|
-
const message = createBaseProviderView_ConfigEntry();
|
|
6740
|
-
message.key = object.key ?? "";
|
|
6741
|
-
message.value = object.value ?? "";
|
|
6742
|
-
return message;
|
|
6743
|
-
}
|
|
6744
|
-
};
|
|
6745
|
-
function createBaseLocalView() {
|
|
6746
|
-
return { name: "", mode: "", value_display: "" };
|
|
6747
|
-
}
|
|
6748
|
-
var LocalView = {
|
|
6749
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6750
|
-
if (message.name !== "") {
|
|
6751
|
-
writer.uint32(10).string(message.name);
|
|
6752
|
-
}
|
|
6753
|
-
if (message.mode !== "") {
|
|
6754
|
-
writer.uint32(18).string(message.mode);
|
|
6755
|
-
}
|
|
6756
|
-
if (message.value_display !== "") {
|
|
6757
|
-
writer.uint32(26).string(message.value_display);
|
|
6758
|
-
}
|
|
6759
|
-
return writer;
|
|
6760
|
-
},
|
|
6761
|
-
decode(input, length) {
|
|
6762
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6763
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6764
|
-
const message = createBaseLocalView();
|
|
6765
|
-
while (reader.pos < end) {
|
|
6766
|
-
const tag = reader.uint32();
|
|
6767
|
-
switch (tag >>> 3) {
|
|
6768
|
-
case 1: {
|
|
6769
|
-
if (tag !== 10) {
|
|
6770
|
-
break;
|
|
6771
|
-
}
|
|
6772
|
-
message.name = reader.string();
|
|
6773
|
-
continue;
|
|
6774
|
-
}
|
|
6775
|
-
case 2: {
|
|
6776
|
-
if (tag !== 18) {
|
|
6777
|
-
break;
|
|
6778
|
-
}
|
|
6779
|
-
message.mode = reader.string();
|
|
6780
|
-
continue;
|
|
6781
|
-
}
|
|
6782
|
-
case 3: {
|
|
6783
|
-
if (tag !== 26) {
|
|
6784
|
-
break;
|
|
6785
|
-
}
|
|
6786
|
-
message.value_display = reader.string();
|
|
6787
|
-
continue;
|
|
6788
|
-
}
|
|
6789
|
-
}
|
|
6790
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6791
|
-
break;
|
|
6792
|
-
}
|
|
6793
|
-
reader.skip(tag & 7);
|
|
6794
|
-
}
|
|
6795
|
-
return message;
|
|
6796
|
-
},
|
|
6797
|
-
fromJSON(object) {
|
|
6798
|
-
return {
|
|
6799
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6800
|
-
mode: isSet3(object.mode) ? globalThis.String(object.mode) : "",
|
|
6801
|
-
value_display: isSet3(object.valueDisplay) ? globalThis.String(object.valueDisplay) : isSet3(object.value_display) ? globalThis.String(object.value_display) : ""
|
|
6802
|
-
};
|
|
6803
|
-
},
|
|
6804
|
-
toJSON(message) {
|
|
6805
|
-
const obj = {};
|
|
6806
|
-
if (message.name !== "") {
|
|
6807
|
-
obj.name = message.name;
|
|
6808
|
-
}
|
|
6809
|
-
if (message.mode !== "") {
|
|
6810
|
-
obj.mode = message.mode;
|
|
6811
|
-
}
|
|
6812
|
-
if (message.value_display !== "") {
|
|
6813
|
-
obj.valueDisplay = message.value_display;
|
|
6814
|
-
}
|
|
6815
|
-
return obj;
|
|
6816
|
-
},
|
|
6817
|
-
create(base) {
|
|
6818
|
-
return LocalView.fromPartial(base ?? {});
|
|
6819
|
-
},
|
|
6820
|
-
fromPartial(object) {
|
|
6821
|
-
const message = createBaseLocalView();
|
|
6822
|
-
message.name = object.name ?? "";
|
|
6823
|
-
message.mode = object.mode ?? "";
|
|
6824
|
-
message.value_display = object.value_display ?? "";
|
|
6825
|
-
return message;
|
|
6826
|
-
}
|
|
6827
|
-
};
|
|
6828
|
-
function createBaseRenderError() {
|
|
6829
|
-
return { instance_id: "", input_name: "", message: "" };
|
|
6830
|
-
}
|
|
6831
|
-
var RenderError = {
|
|
6832
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6833
|
-
if (message.instance_id !== "") {
|
|
6834
|
-
writer.uint32(10).string(message.instance_id);
|
|
6835
|
-
}
|
|
6836
|
-
if (message.input_name !== "") {
|
|
6837
|
-
writer.uint32(18).string(message.input_name);
|
|
6838
|
-
}
|
|
6839
|
-
if (message.message !== "") {
|
|
6840
|
-
writer.uint32(26).string(message.message);
|
|
6841
|
-
}
|
|
6842
|
-
return writer;
|
|
6843
|
-
},
|
|
6844
|
-
decode(input, length) {
|
|
6845
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6846
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6847
|
-
const message = createBaseRenderError();
|
|
6848
|
-
while (reader.pos < end) {
|
|
6849
|
-
const tag = reader.uint32();
|
|
6850
|
-
switch (tag >>> 3) {
|
|
6851
|
-
case 1: {
|
|
6852
|
-
if (tag !== 10) {
|
|
6853
|
-
break;
|
|
6854
|
-
}
|
|
6855
|
-
message.instance_id = reader.string();
|
|
6856
|
-
continue;
|
|
6857
|
-
}
|
|
6858
|
-
case 2: {
|
|
6859
|
-
if (tag !== 18) {
|
|
6860
|
-
break;
|
|
6861
|
-
}
|
|
6862
|
-
message.input_name = reader.string();
|
|
6863
|
-
continue;
|
|
6864
|
-
}
|
|
6865
|
-
case 3: {
|
|
6866
|
-
if (tag !== 26) {
|
|
6867
|
-
break;
|
|
6868
|
-
}
|
|
6869
|
-
message.message = reader.string();
|
|
6870
|
-
continue;
|
|
6871
|
-
}
|
|
6872
|
-
}
|
|
6873
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6874
|
-
break;
|
|
6875
|
-
}
|
|
6876
|
-
reader.skip(tag & 7);
|
|
6877
|
-
}
|
|
6878
|
-
return message;
|
|
6879
|
-
},
|
|
6880
|
-
fromJSON(object) {
|
|
6881
|
-
return {
|
|
6882
|
-
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
6883
|
-
input_name: isSet3(object.inputName) ? globalThis.String(object.inputName) : isSet3(object.input_name) ? globalThis.String(object.input_name) : "",
|
|
6884
|
-
message: isSet3(object.message) ? globalThis.String(object.message) : ""
|
|
6885
|
-
};
|
|
6886
|
-
},
|
|
6887
|
-
toJSON(message) {
|
|
6888
|
-
const obj = {};
|
|
6889
|
-
if (message.instance_id !== "") {
|
|
6890
|
-
obj.instanceId = message.instance_id;
|
|
6891
|
-
}
|
|
6892
|
-
if (message.input_name !== "") {
|
|
6893
|
-
obj.inputName = message.input_name;
|
|
6894
|
-
}
|
|
6895
|
-
if (message.message !== "") {
|
|
6896
|
-
obj.message = message.message;
|
|
6897
|
-
}
|
|
6898
|
-
return obj;
|
|
6899
|
-
},
|
|
6900
|
-
create(base) {
|
|
6901
|
-
return RenderError.fromPartial(base ?? {});
|
|
6902
|
-
},
|
|
6903
|
-
fromPartial(object) {
|
|
6904
|
-
const message = createBaseRenderError();
|
|
6905
|
-
message.instance_id = object.instance_id ?? "";
|
|
6906
|
-
message.input_name = object.input_name ?? "";
|
|
6907
|
-
message.message = object.message ?? "";
|
|
6908
|
-
return message;
|
|
6909
|
-
}
|
|
6910
|
-
};
|
|
6911
|
-
function createBasePosition() {
|
|
6912
|
-
return { x: 0, y: 0 };
|
|
6913
|
-
}
|
|
6914
|
-
var Position = {
|
|
6915
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6916
|
-
if (message.x !== 0) {
|
|
6917
|
-
writer.uint32(9).double(message.x);
|
|
6918
|
-
}
|
|
6919
|
-
if (message.y !== 0) {
|
|
6920
|
-
writer.uint32(17).double(message.y);
|
|
6921
|
-
}
|
|
6922
|
-
return writer;
|
|
6923
|
-
},
|
|
6924
|
-
decode(input, length) {
|
|
6925
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6926
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6927
|
-
const message = createBasePosition();
|
|
6928
|
-
while (reader.pos < end) {
|
|
6929
|
-
const tag = reader.uint32();
|
|
6930
|
-
switch (tag >>> 3) {
|
|
6931
|
-
case 1: {
|
|
6932
|
-
if (tag !== 9) {
|
|
6933
|
-
break;
|
|
6934
|
-
}
|
|
6935
|
-
message.x = reader.double();
|
|
6936
|
-
continue;
|
|
6937
|
-
}
|
|
6938
|
-
case 2: {
|
|
6939
|
-
if (tag !== 17) {
|
|
6940
|
-
break;
|
|
6941
|
-
}
|
|
6942
|
-
message.y = reader.double();
|
|
6943
|
-
continue;
|
|
6944
|
-
}
|
|
6945
|
-
}
|
|
6946
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6947
|
-
break;
|
|
6948
|
-
}
|
|
6949
|
-
reader.skip(tag & 7);
|
|
6950
|
-
}
|
|
6951
|
-
return message;
|
|
6952
|
-
},
|
|
6953
|
-
fromJSON(object) {
|
|
6954
|
-
return {
|
|
6955
|
-
x: isSet3(object.x) ? globalThis.Number(object.x) : 0,
|
|
6956
|
-
y: isSet3(object.y) ? globalThis.Number(object.y) : 0
|
|
6957
|
-
};
|
|
6958
|
-
},
|
|
6959
|
-
toJSON(message) {
|
|
6960
|
-
const obj = {};
|
|
6961
|
-
if (message.x !== 0) {
|
|
6962
|
-
obj.x = message.x;
|
|
6963
|
-
}
|
|
6964
|
-
if (message.y !== 0) {
|
|
6965
|
-
obj.y = message.y;
|
|
6966
|
-
}
|
|
6967
|
-
return obj;
|
|
6968
|
-
},
|
|
6969
|
-
create(base) {
|
|
6970
|
-
return Position.fromPartial(base ?? {});
|
|
6971
|
-
},
|
|
6972
|
-
fromPartial(object) {
|
|
6973
|
-
const message = createBasePosition();
|
|
6974
|
-
message.x = object.x ?? 0;
|
|
6975
|
-
message.y = object.y ?? 0;
|
|
6976
|
-
return message;
|
|
6977
|
-
}
|
|
6978
|
-
};
|
|
6979
|
-
function createBaseInputDef2() {
|
|
6980
|
-
return {
|
|
6981
|
-
name: "",
|
|
6982
|
-
type: "",
|
|
6983
|
-
required: false,
|
|
6984
|
-
description: "",
|
|
6985
|
-
default_value: void 0,
|
|
6986
|
-
validation: [],
|
|
6987
|
-
ephemeral: void 0,
|
|
6988
|
-
nullable: void 0,
|
|
6989
|
-
sensitive: false
|
|
6990
|
-
};
|
|
6991
|
-
}
|
|
6992
|
-
var InputDef2 = {
|
|
6993
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6994
|
-
if (message.name !== "") {
|
|
6995
|
-
writer.uint32(10).string(message.name);
|
|
6996
|
-
}
|
|
6997
|
-
if (message.type !== "") {
|
|
6998
|
-
writer.uint32(18).string(message.type);
|
|
6999
|
-
}
|
|
7000
|
-
if (message.required !== false) {
|
|
7001
|
-
writer.uint32(24).bool(message.required);
|
|
7002
|
-
}
|
|
7003
|
-
if (message.description !== "") {
|
|
7004
|
-
writer.uint32(34).string(message.description);
|
|
7005
|
-
}
|
|
7006
|
-
if (message.default_value !== void 0) {
|
|
7007
|
-
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
7008
|
-
}
|
|
7009
|
-
for (const v of message.validation) {
|
|
7010
|
-
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
7011
|
-
}
|
|
7012
|
-
if (message.ephemeral !== void 0) {
|
|
7013
|
-
writer.uint32(56).bool(message.ephemeral);
|
|
7014
|
-
}
|
|
7015
|
-
if (message.nullable !== void 0) {
|
|
7016
|
-
writer.uint32(64).bool(message.nullable);
|
|
7017
|
-
}
|
|
7018
|
-
if (message.sensitive !== false) {
|
|
7019
|
-
writer.uint32(72).bool(message.sensitive);
|
|
7020
|
-
}
|
|
7021
|
-
return writer;
|
|
7022
|
-
},
|
|
7023
|
-
decode(input, length) {
|
|
7024
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
7025
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7026
|
-
const message = createBaseInputDef2();
|
|
7027
|
-
while (reader.pos < end) {
|
|
7028
|
-
const tag = reader.uint32();
|
|
7029
|
-
switch (tag >>> 3) {
|
|
7030
|
-
case 1: {
|
|
7031
|
-
if (tag !== 10) {
|
|
7032
|
-
break;
|
|
7033
|
-
}
|
|
7034
|
-
message.name = reader.string();
|
|
7035
|
-
continue;
|
|
7036
|
-
}
|
|
7037
|
-
case 2: {
|
|
7038
|
-
if (tag !== 18) {
|
|
7039
|
-
break;
|
|
7040
|
-
}
|
|
7041
|
-
message.type = reader.string();
|
|
7042
|
-
continue;
|
|
7043
|
-
}
|
|
7044
|
-
case 3: {
|
|
7045
|
-
if (tag !== 24) {
|
|
7046
|
-
break;
|
|
7047
|
-
}
|
|
7048
|
-
message.required = reader.bool();
|
|
7049
|
-
continue;
|
|
7050
|
-
}
|
|
7051
|
-
case 4: {
|
|
7052
|
-
if (tag !== 34) {
|
|
7053
|
-
break;
|
|
7054
|
-
}
|
|
7055
|
-
message.description = reader.string();
|
|
7056
|
-
continue;
|
|
7057
|
-
}
|
|
7058
|
-
case 5: {
|
|
7059
|
-
if (tag !== 42) {
|
|
7060
|
-
break;
|
|
7061
|
-
}
|
|
7062
|
-
message.default_value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
7063
|
-
continue;
|
|
7064
|
-
}
|
|
7065
|
-
case 6: {
|
|
7066
|
-
if (tag !== 50) {
|
|
7067
|
-
break;
|
|
7068
|
-
}
|
|
7069
|
-
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
7070
|
-
continue;
|
|
7071
|
-
}
|
|
7072
|
-
case 7: {
|
|
7073
|
-
if (tag !== 56) {
|
|
7074
|
-
break;
|
|
7075
|
-
}
|
|
7076
|
-
message.ephemeral = reader.bool();
|
|
7077
|
-
continue;
|
|
7078
|
-
}
|
|
7079
|
-
case 8: {
|
|
7080
|
-
if (tag !== 64) {
|
|
7081
|
-
break;
|
|
7082
|
-
}
|
|
7083
|
-
message.nullable = reader.bool();
|
|
7084
|
-
continue;
|
|
7085
|
-
}
|
|
7086
|
-
case 9: {
|
|
7087
|
-
if (tag !== 72) {
|
|
7088
|
-
break;
|
|
7089
|
-
}
|
|
7090
|
-
message.sensitive = reader.bool();
|
|
7091
|
-
continue;
|
|
7092
|
-
}
|
|
7093
|
-
}
|
|
7094
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7095
|
-
break;
|
|
7096
|
-
}
|
|
7097
|
-
reader.skip(tag & 7);
|
|
7098
|
-
}
|
|
7099
|
-
return message;
|
|
7100
|
-
},
|
|
7101
|
-
fromJSON(object) {
|
|
7102
|
-
return {
|
|
7103
|
-
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
7104
|
-
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
7105
|
-
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
7106
|
-
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7107
|
-
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
7108
|
-
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
7109
|
-
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
|
|
7110
|
-
nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
7111
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
7112
|
-
};
|
|
7113
|
-
},
|
|
7114
|
-
toJSON(message) {
|
|
7115
|
-
const obj = {};
|
|
7116
|
-
if (message.name !== "") {
|
|
7117
|
-
obj.name = message.name;
|
|
7118
|
-
}
|
|
7119
|
-
if (message.type !== "") {
|
|
7120
|
-
obj.type = message.type;
|
|
7121
|
-
}
|
|
7122
|
-
if (message.required !== false) {
|
|
7123
|
-
obj.required = message.required;
|
|
7124
|
-
}
|
|
7125
|
-
if (message.description !== "") {
|
|
7126
|
-
obj.description = message.description;
|
|
7127
|
-
}
|
|
7128
|
-
if (message.default_value !== void 0) {
|
|
7129
|
-
obj.defaultValue = message.default_value;
|
|
7130
|
-
}
|
|
7131
|
-
if (message.validation?.length) {
|
|
7132
|
-
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
7133
|
-
}
|
|
7134
|
-
if (message.ephemeral !== void 0) {
|
|
7135
|
-
obj.ephemeral = message.ephemeral;
|
|
7136
|
-
}
|
|
7137
|
-
if (message.nullable !== void 0) {
|
|
7138
|
-
obj.nullable = message.nullable;
|
|
7139
|
-
}
|
|
7140
|
-
if (message.sensitive !== false) {
|
|
7141
|
-
obj.sensitive = message.sensitive;
|
|
7142
|
-
}
|
|
7143
|
-
return obj;
|
|
7144
|
-
},
|
|
7145
|
-
create(base) {
|
|
7146
|
-
return InputDef2.fromPartial(base ?? {});
|
|
7147
|
-
},
|
|
7148
|
-
fromPartial(object) {
|
|
7149
|
-
const message = createBaseInputDef2();
|
|
7150
|
-
message.name = object.name ?? "";
|
|
7151
|
-
message.type = object.type ?? "";
|
|
7152
|
-
message.required = object.required ?? false;
|
|
7153
|
-
message.description = object.description ?? "";
|
|
7154
|
-
message.default_value = object.default_value ?? void 0;
|
|
7155
|
-
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
7156
|
-
message.ephemeral = object.ephemeral ?? void 0;
|
|
7157
|
-
message.nullable = object.nullable ?? void 0;
|
|
7158
|
-
message.sensitive = object.sensitive ?? false;
|
|
7159
|
-
return message;
|
|
7160
|
-
}
|
|
7161
|
-
};
|
|
7162
|
-
function createBaseValidationBlock2() {
|
|
7163
|
-
return { condition: "", error_message: "" };
|
|
7164
|
-
}
|
|
7165
|
-
var ValidationBlock2 = {
|
|
7166
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
7167
|
-
if (message.condition !== "") {
|
|
7168
|
-
writer.uint32(10).string(message.condition);
|
|
7169
|
-
}
|
|
7170
|
-
if (message.error_message !== "") {
|
|
7171
|
-
writer.uint32(18).string(message.error_message);
|
|
7172
|
-
}
|
|
7173
|
-
return writer;
|
|
7174
|
-
},
|
|
7175
|
-
decode(input, length) {
|
|
7176
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
7177
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7178
|
-
const message = createBaseValidationBlock2();
|
|
7179
|
-
while (reader.pos < end) {
|
|
7180
|
-
const tag = reader.uint32();
|
|
7181
|
-
switch (tag >>> 3) {
|
|
7182
|
-
case 1: {
|
|
7183
|
-
if (tag !== 10) {
|
|
7184
|
-
break;
|
|
7185
|
-
}
|
|
7186
|
-
message.condition = reader.string();
|
|
7187
|
-
continue;
|
|
7188
|
-
}
|
|
7189
|
-
case 2: {
|
|
7190
|
-
if (tag !== 18) {
|
|
7191
|
-
break;
|
|
7192
|
-
}
|
|
7193
|
-
message.error_message = reader.string();
|
|
7194
|
-
continue;
|
|
7195
|
-
}
|
|
7196
|
-
}
|
|
7197
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7198
|
-
break;
|
|
7199
|
-
}
|
|
7200
|
-
reader.skip(tag & 7);
|
|
7201
|
-
}
|
|
7202
|
-
return message;
|
|
7203
|
-
},
|
|
7204
|
-
fromJSON(object) {
|
|
7205
|
-
return {
|
|
7206
|
-
condition: isSet3(object.condition) ? globalThis.String(object.condition) : "",
|
|
7207
|
-
error_message: isSet3(object.errorMessage) ? globalThis.String(object.errorMessage) : isSet3(object.error_message) ? globalThis.String(object.error_message) : ""
|
|
7208
|
-
};
|
|
7209
|
-
},
|
|
7210
|
-
toJSON(message) {
|
|
7211
|
-
const obj = {};
|
|
7212
|
-
if (message.condition !== "") {
|
|
7213
|
-
obj.condition = message.condition;
|
|
7214
|
-
}
|
|
7215
|
-
if (message.error_message !== "") {
|
|
7216
|
-
obj.errorMessage = message.error_message;
|
|
7217
|
-
}
|
|
7218
|
-
return obj;
|
|
7219
|
-
},
|
|
7220
|
-
create(base) {
|
|
7221
|
-
return ValidationBlock2.fromPartial(base ?? {});
|
|
7222
|
-
},
|
|
7223
|
-
fromPartial(object) {
|
|
7224
|
-
const message = createBaseValidationBlock2();
|
|
7225
|
-
message.condition = object.condition ?? "";
|
|
7226
|
-
message.error_message = object.error_message ?? "";
|
|
7227
|
-
return message;
|
|
7228
|
-
}
|
|
7229
|
-
};
|
|
7230
|
-
function createBaseOutputDef2() {
|
|
7231
|
-
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
7232
|
-
}
|
|
7233
|
-
var OutputDef2 = {
|
|
7234
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
7235
|
-
if (message.name !== "") {
|
|
7236
|
-
writer.uint32(10).string(message.name);
|
|
7237
|
-
}
|
|
7238
|
-
if (message.type !== "") {
|
|
7239
|
-
writer.uint32(18).string(message.type);
|
|
7240
|
-
}
|
|
7241
|
-
if (message.description !== "") {
|
|
7242
|
-
writer.uint32(26).string(message.description);
|
|
7243
|
-
}
|
|
7244
|
-
if (message.sensitive !== false) {
|
|
7245
|
-
writer.uint32(32).bool(message.sensitive);
|
|
7246
|
-
}
|
|
7247
|
-
for (const v of message.depends_on) {
|
|
7248
|
-
writer.uint32(42).string(v);
|
|
7249
|
-
}
|
|
7250
|
-
return writer;
|
|
7251
|
-
},
|
|
7252
|
-
decode(input, length) {
|
|
7253
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
7254
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7255
|
-
const message = createBaseOutputDef2();
|
|
7256
|
-
while (reader.pos < end) {
|
|
7257
|
-
const tag = reader.uint32();
|
|
7258
|
-
switch (tag >>> 3) {
|
|
7259
|
-
case 1: {
|
|
7260
|
-
if (tag !== 10) {
|
|
7261
|
-
break;
|
|
7262
|
-
}
|
|
7263
|
-
message.name = reader.string();
|
|
7264
|
-
continue;
|
|
7265
|
-
}
|
|
7266
|
-
case 2: {
|
|
7267
|
-
if (tag !== 18) {
|
|
7268
|
-
break;
|
|
7269
|
-
}
|
|
7270
|
-
message.type = reader.string();
|
|
7271
|
-
continue;
|
|
7272
|
-
}
|
|
7273
|
-
case 3: {
|
|
7274
|
-
if (tag !== 26) {
|
|
7275
|
-
break;
|
|
7276
|
-
}
|
|
7277
|
-
message.description = reader.string();
|
|
7278
|
-
continue;
|
|
7279
|
-
}
|
|
7280
|
-
case 4: {
|
|
7281
|
-
if (tag !== 32) {
|
|
7282
|
-
break;
|
|
7283
|
-
}
|
|
7284
|
-
message.sensitive = reader.bool();
|
|
7285
|
-
continue;
|
|
7286
|
-
}
|
|
7287
|
-
case 5: {
|
|
7288
|
-
if (tag !== 42) {
|
|
7289
|
-
break;
|
|
7290
|
-
}
|
|
7291
|
-
message.depends_on.push(reader.string());
|
|
4752
|
+
message.y = reader.double();
|
|
7292
4753
|
continue;
|
|
7293
4754
|
}
|
|
7294
4755
|
}
|
|
@@ -7301,76 +4762,49 @@ var OutputDef2 = {
|
|
|
7301
4762
|
},
|
|
7302
4763
|
fromJSON(object) {
|
|
7303
4764
|
return {
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7307
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
7308
|
-
depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : []
|
|
4765
|
+
x: isSet3(object.x) ? globalThis.Number(object.x) : 0,
|
|
4766
|
+
y: isSet3(object.y) ? globalThis.Number(object.y) : 0
|
|
7309
4767
|
};
|
|
7310
4768
|
},
|
|
7311
4769
|
toJSON(message) {
|
|
7312
4770
|
const obj = {};
|
|
7313
|
-
if (message.
|
|
7314
|
-
obj.
|
|
7315
|
-
}
|
|
7316
|
-
if (message.type !== "") {
|
|
7317
|
-
obj.type = message.type;
|
|
7318
|
-
}
|
|
7319
|
-
if (message.description !== "") {
|
|
7320
|
-
obj.description = message.description;
|
|
7321
|
-
}
|
|
7322
|
-
if (message.sensitive !== false) {
|
|
7323
|
-
obj.sensitive = message.sensitive;
|
|
4771
|
+
if (message.x !== 0) {
|
|
4772
|
+
obj.x = message.x;
|
|
7324
4773
|
}
|
|
7325
|
-
if (message.
|
|
7326
|
-
obj.
|
|
4774
|
+
if (message.y !== 0) {
|
|
4775
|
+
obj.y = message.y;
|
|
7327
4776
|
}
|
|
7328
4777
|
return obj;
|
|
7329
4778
|
},
|
|
7330
4779
|
create(base) {
|
|
7331
|
-
return
|
|
4780
|
+
return Position.fromPartial(base ?? {});
|
|
7332
4781
|
},
|
|
7333
4782
|
fromPartial(object) {
|
|
7334
|
-
const message =
|
|
7335
|
-
message.
|
|
7336
|
-
message.
|
|
7337
|
-
message.description = object.description ?? "";
|
|
7338
|
-
message.sensitive = object.sensitive ?? false;
|
|
7339
|
-
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
4783
|
+
const message = createBasePosition();
|
|
4784
|
+
message.x = object.x ?? 0;
|
|
4785
|
+
message.y = object.y ?? 0;
|
|
7340
4786
|
return message;
|
|
7341
4787
|
}
|
|
7342
4788
|
};
|
|
7343
|
-
function isObject3(value) {
|
|
7344
|
-
return typeof value === "object" && value !== null;
|
|
7345
|
-
}
|
|
7346
4789
|
function isSet3(value) {
|
|
7347
4790
|
return value !== null && value !== void 0;
|
|
7348
4791
|
}
|
|
7349
4792
|
|
|
7350
4793
|
// src/proto-messages.ts
|
|
7351
4794
|
var CanvasViewProto = CanvasView;
|
|
7352
|
-
var NodeConfigProto = NodeConfig;
|
|
7353
|
-
var EdgeConfigProto = EdgeConfig;
|
|
7354
|
-
var SettingsConfigProto = SettingsConfig;
|
|
7355
4795
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7356
4796
|
0 && (module.exports = {
|
|
4797
|
+
BRIDGE_METHODS,
|
|
7357
4798
|
Bundle,
|
|
7358
4799
|
CanvasViewProto,
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
convertCanvasView,
|
|
4800
|
+
EMPTY_BUNDLE,
|
|
4801
|
+
ENGINE_METHODS,
|
|
4802
|
+
ENGINE_STREAM_METHODS,
|
|
7363
4803
|
convertDiagnostic,
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
convertNodeKind,
|
|
7369
|
-
convertRenderError,
|
|
7370
|
-
convertRenderInput,
|
|
7371
|
-
convertRenderNode,
|
|
7372
|
-
convertSettingsConfig,
|
|
7373
|
-
modeToInputMode,
|
|
4804
|
+
deriveNodeConfig,
|
|
4805
|
+
deriveSettingsConfig,
|
|
4806
|
+
nodeIdForAddress,
|
|
4807
|
+
nodeIdForDiagnostic,
|
|
7374
4808
|
parseModuleKey,
|
|
7375
4809
|
projectCanvasView,
|
|
7376
4810
|
resolveScopePath,
|