@lace-cloud/canvas 0.21.1 → 0.23.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/README.md +2 -1
- package/dist/{ModuleConfigPanel-LTPLEG2L.css → ModuleConfigPanel-ZMWRMN5N.css} +13 -0
- package/dist/{chunk-TPJXMHYN.mjs → chunk-GV2FO3E2.mjs} +813 -462
- package/dist/chunk-GV2FO3E2.mjs.map +1 -0
- package/dist/engine/index.cjs +810 -459
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.mjs +1 -1
- package/dist/index.cjs +4277 -3344
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -21
- package/dist/index.d.ts +9 -21
- package/dist/index.mjs +1625 -1043
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-REUTGeUE.d.ts → mapping-B2QFbLmE.d.mts} +304 -136
- package/dist/{mapping-REUTGeUE.d.mts → mapping-B2QFbLmE.d.ts} +304 -136
- package/package.json +3 -3
- package/dist/chunk-TPJXMHYN.mjs.map +0 -1
|
@@ -2826,7 +2826,7 @@ var ModuleReference = {
|
|
|
2826
2826
|
}
|
|
2827
2827
|
};
|
|
2828
2828
|
function createBaseTerraformBlock() {
|
|
2829
|
-
return { required_version: "", required_providers: {}
|
|
2829
|
+
return { required_version: "", required_providers: {} };
|
|
2830
2830
|
}
|
|
2831
2831
|
var TerraformBlock = {
|
|
2832
2832
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -2836,9 +2836,6 @@ var TerraformBlock = {
|
|
|
2836
2836
|
globalThis.Object.entries(message.required_providers).forEach(([key, value]) => {
|
|
2837
2837
|
TerraformBlock_RequiredProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
2838
2838
|
});
|
|
2839
|
-
if (message.backend !== void 0) {
|
|
2840
|
-
BackendConfig.encode(message.backend, writer.uint32(26).fork()).join();
|
|
2841
|
-
}
|
|
2842
2839
|
return writer;
|
|
2843
2840
|
},
|
|
2844
2841
|
decode(input, length) {
|
|
@@ -2865,13 +2862,6 @@ var TerraformBlock = {
|
|
|
2865
2862
|
}
|
|
2866
2863
|
continue;
|
|
2867
2864
|
}
|
|
2868
|
-
case 3: {
|
|
2869
|
-
if (tag !== 26) {
|
|
2870
|
-
break;
|
|
2871
|
-
}
|
|
2872
|
-
message.backend = BackendConfig.decode(reader, reader.uint32());
|
|
2873
|
-
continue;
|
|
2874
|
-
}
|
|
2875
2865
|
}
|
|
2876
2866
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2877
2867
|
break;
|
|
@@ -2895,8 +2885,7 @@ var TerraformBlock = {
|
|
|
2895
2885
|
return acc;
|
|
2896
2886
|
},
|
|
2897
2887
|
{}
|
|
2898
|
-
) : {}
|
|
2899
|
-
backend: isSet2(object.backend) ? BackendConfig.fromJSON(object.backend) : void 0
|
|
2888
|
+
) : {}
|
|
2900
2889
|
};
|
|
2901
2890
|
},
|
|
2902
2891
|
toJSON(message) {
|
|
@@ -2913,9 +2902,6 @@ var TerraformBlock = {
|
|
|
2913
2902
|
});
|
|
2914
2903
|
}
|
|
2915
2904
|
}
|
|
2916
|
-
if (message.backend !== void 0) {
|
|
2917
|
-
obj.backend = BackendConfig.toJSON(message.backend);
|
|
2918
|
-
}
|
|
2919
2905
|
return obj;
|
|
2920
2906
|
},
|
|
2921
2907
|
create(base) {
|
|
@@ -2933,7 +2919,6 @@ var TerraformBlock = {
|
|
|
2933
2919
|
},
|
|
2934
2920
|
{}
|
|
2935
2921
|
);
|
|
2936
|
-
message.backend = object.backend !== void 0 && object.backend !== null ? BackendConfig.fromPartial(object.backend) : void 0;
|
|
2937
2922
|
return message;
|
|
2938
2923
|
}
|
|
2939
2924
|
};
|
|
@@ -3088,167 +3073,6 @@ var ProviderRequirement = {
|
|
|
3088
3073
|
return message;
|
|
3089
3074
|
}
|
|
3090
3075
|
};
|
|
3091
|
-
function createBaseBackendConfig() {
|
|
3092
|
-
return { type: "", config: {} };
|
|
3093
|
-
}
|
|
3094
|
-
var BackendConfig = {
|
|
3095
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
3096
|
-
if (message.type !== "") {
|
|
3097
|
-
writer.uint32(10).string(message.type);
|
|
3098
|
-
}
|
|
3099
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3100
|
-
if (value !== void 0) {
|
|
3101
|
-
BackendConfig_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3102
|
-
}
|
|
3103
|
-
});
|
|
3104
|
-
return writer;
|
|
3105
|
-
},
|
|
3106
|
-
decode(input, length) {
|
|
3107
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
3108
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3109
|
-
const message = createBaseBackendConfig();
|
|
3110
|
-
while (reader.pos < end) {
|
|
3111
|
-
const tag = reader.uint32();
|
|
3112
|
-
switch (tag >>> 3) {
|
|
3113
|
-
case 1: {
|
|
3114
|
-
if (tag !== 10) {
|
|
3115
|
-
break;
|
|
3116
|
-
}
|
|
3117
|
-
message.type = reader.string();
|
|
3118
|
-
continue;
|
|
3119
|
-
}
|
|
3120
|
-
case 2: {
|
|
3121
|
-
if (tag !== 18) {
|
|
3122
|
-
break;
|
|
3123
|
-
}
|
|
3124
|
-
const entry2 = BackendConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3125
|
-
if (entry2.value !== void 0) {
|
|
3126
|
-
message.config[entry2.key] = entry2.value;
|
|
3127
|
-
}
|
|
3128
|
-
continue;
|
|
3129
|
-
}
|
|
3130
|
-
}
|
|
3131
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3132
|
-
break;
|
|
3133
|
-
}
|
|
3134
|
-
reader.skip(tag & 7);
|
|
3135
|
-
}
|
|
3136
|
-
return message;
|
|
3137
|
-
},
|
|
3138
|
-
fromJSON(object) {
|
|
3139
|
-
return {
|
|
3140
|
-
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
3141
|
-
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3142
|
-
(acc, [key, value]) => {
|
|
3143
|
-
acc[key] = value;
|
|
3144
|
-
return acc;
|
|
3145
|
-
},
|
|
3146
|
-
{}
|
|
3147
|
-
) : {}
|
|
3148
|
-
};
|
|
3149
|
-
},
|
|
3150
|
-
toJSON(message) {
|
|
3151
|
-
const obj = {};
|
|
3152
|
-
if (message.type !== "") {
|
|
3153
|
-
obj.type = message.type;
|
|
3154
|
-
}
|
|
3155
|
-
if (message.config) {
|
|
3156
|
-
const entries = globalThis.Object.entries(message.config);
|
|
3157
|
-
if (entries.length > 0) {
|
|
3158
|
-
obj.config = {};
|
|
3159
|
-
entries.forEach(([k, v]) => {
|
|
3160
|
-
obj.config[k] = v;
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
}
|
|
3164
|
-
return obj;
|
|
3165
|
-
},
|
|
3166
|
-
create(base) {
|
|
3167
|
-
return BackendConfig.fromPartial(base ?? {});
|
|
3168
|
-
},
|
|
3169
|
-
fromPartial(object) {
|
|
3170
|
-
const message = createBaseBackendConfig();
|
|
3171
|
-
message.type = object.type ?? "";
|
|
3172
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3173
|
-
(acc, [key, value]) => {
|
|
3174
|
-
if (value !== void 0) {
|
|
3175
|
-
acc[key] = value;
|
|
3176
|
-
}
|
|
3177
|
-
return acc;
|
|
3178
|
-
},
|
|
3179
|
-
{}
|
|
3180
|
-
);
|
|
3181
|
-
return message;
|
|
3182
|
-
}
|
|
3183
|
-
};
|
|
3184
|
-
function createBaseBackendConfig_ConfigEntry() {
|
|
3185
|
-
return { key: "", value: void 0 };
|
|
3186
|
-
}
|
|
3187
|
-
var BackendConfig_ConfigEntry = {
|
|
3188
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
3189
|
-
if (message.key !== "") {
|
|
3190
|
-
writer.uint32(10).string(message.key);
|
|
3191
|
-
}
|
|
3192
|
-
if (message.value !== void 0) {
|
|
3193
|
-
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
3194
|
-
}
|
|
3195
|
-
return writer;
|
|
3196
|
-
},
|
|
3197
|
-
decode(input, length) {
|
|
3198
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
3199
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3200
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3201
|
-
while (reader.pos < end) {
|
|
3202
|
-
const tag = reader.uint32();
|
|
3203
|
-
switch (tag >>> 3) {
|
|
3204
|
-
case 1: {
|
|
3205
|
-
if (tag !== 10) {
|
|
3206
|
-
break;
|
|
3207
|
-
}
|
|
3208
|
-
message.key = reader.string();
|
|
3209
|
-
continue;
|
|
3210
|
-
}
|
|
3211
|
-
case 2: {
|
|
3212
|
-
if (tag !== 18) {
|
|
3213
|
-
break;
|
|
3214
|
-
}
|
|
3215
|
-
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
3216
|
-
continue;
|
|
3217
|
-
}
|
|
3218
|
-
}
|
|
3219
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3220
|
-
break;
|
|
3221
|
-
}
|
|
3222
|
-
reader.skip(tag & 7);
|
|
3223
|
-
}
|
|
3224
|
-
return message;
|
|
3225
|
-
},
|
|
3226
|
-
fromJSON(object) {
|
|
3227
|
-
return {
|
|
3228
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3229
|
-
value: isSet2(object?.value) ? object.value : void 0
|
|
3230
|
-
};
|
|
3231
|
-
},
|
|
3232
|
-
toJSON(message) {
|
|
3233
|
-
const obj = {};
|
|
3234
|
-
if (message.key !== "") {
|
|
3235
|
-
obj.key = message.key;
|
|
3236
|
-
}
|
|
3237
|
-
if (message.value !== void 0) {
|
|
3238
|
-
obj.value = message.value;
|
|
3239
|
-
}
|
|
3240
|
-
return obj;
|
|
3241
|
-
},
|
|
3242
|
-
create(base) {
|
|
3243
|
-
return BackendConfig_ConfigEntry.fromPartial(base ?? {});
|
|
3244
|
-
},
|
|
3245
|
-
fromPartial(object) {
|
|
3246
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3247
|
-
message.key = object.key ?? "";
|
|
3248
|
-
message.value = object.value ?? void 0;
|
|
3249
|
-
return message;
|
|
3250
|
-
}
|
|
3251
|
-
};
|
|
3252
3076
|
function createBaseProviderConfig() {
|
|
3253
3077
|
return { name: "", alias: "", config: {}, blocks: [] };
|
|
3254
3078
|
}
|
|
@@ -5946,13 +5770,16 @@ var UngroupAction = {
|
|
|
5946
5770
|
}
|
|
5947
5771
|
};
|
|
5948
5772
|
function createBaseSetVariablesAction() {
|
|
5949
|
-
return { variables: [] };
|
|
5773
|
+
return { variables: [], scope: "" };
|
|
5950
5774
|
}
|
|
5951
5775
|
var SetVariablesAction = {
|
|
5952
5776
|
encode(message, writer = new BinaryWriter4()) {
|
|
5953
5777
|
for (const v of message.variables) {
|
|
5954
5778
|
InputDef2.encode(v, writer.uint32(10).fork()).join();
|
|
5955
5779
|
}
|
|
5780
|
+
if (message.scope !== "") {
|
|
5781
|
+
writer.uint32(18).string(message.scope);
|
|
5782
|
+
}
|
|
5956
5783
|
return writer;
|
|
5957
5784
|
},
|
|
5958
5785
|
decode(input, length) {
|
|
@@ -5969,6 +5796,13 @@ var SetVariablesAction = {
|
|
|
5969
5796
|
message.variables.push(InputDef2.decode(reader, reader.uint32()));
|
|
5970
5797
|
continue;
|
|
5971
5798
|
}
|
|
5799
|
+
case 2: {
|
|
5800
|
+
if (tag !== 18) {
|
|
5801
|
+
break;
|
|
5802
|
+
}
|
|
5803
|
+
message.scope = reader.string();
|
|
5804
|
+
continue;
|
|
5805
|
+
}
|
|
5972
5806
|
}
|
|
5973
5807
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5974
5808
|
break;
|
|
@@ -5979,7 +5813,8 @@ var SetVariablesAction = {
|
|
|
5979
5813
|
},
|
|
5980
5814
|
fromJSON(object) {
|
|
5981
5815
|
return {
|
|
5982
|
-
variables: globalThis.Array.isArray(object?.variables) ? object.variables.map((e) => InputDef2.fromJSON(e)) : []
|
|
5816
|
+
variables: globalThis.Array.isArray(object?.variables) ? object.variables.map((e) => InputDef2.fromJSON(e)) : [],
|
|
5817
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
5983
5818
|
};
|
|
5984
5819
|
},
|
|
5985
5820
|
toJSON(message) {
|
|
@@ -5987,6 +5822,9 @@ var SetVariablesAction = {
|
|
|
5987
5822
|
if (message.variables?.length) {
|
|
5988
5823
|
obj.variables = message.variables.map((e) => InputDef2.toJSON(e));
|
|
5989
5824
|
}
|
|
5825
|
+
if (message.scope !== "") {
|
|
5826
|
+
obj.scope = message.scope;
|
|
5827
|
+
}
|
|
5990
5828
|
return obj;
|
|
5991
5829
|
},
|
|
5992
5830
|
create(base) {
|
|
@@ -5995,11 +5833,12 @@ var SetVariablesAction = {
|
|
|
5995
5833
|
fromPartial(object) {
|
|
5996
5834
|
const message = createBaseSetVariablesAction();
|
|
5997
5835
|
message.variables = object.variables?.map((e) => InputDef2.fromPartial(e)) || [];
|
|
5836
|
+
message.scope = object.scope ?? "";
|
|
5998
5837
|
return message;
|
|
5999
5838
|
}
|
|
6000
5839
|
};
|
|
6001
5840
|
function createBaseSetExportsAction() {
|
|
6002
|
-
return { outputs: [], output_defs: [] };
|
|
5841
|
+
return { outputs: [], output_defs: [], scope: "" };
|
|
6003
5842
|
}
|
|
6004
5843
|
var SetExportsAction = {
|
|
6005
5844
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -6009,6 +5848,9 @@ var SetExportsAction = {
|
|
|
6009
5848
|
for (const v of message.output_defs) {
|
|
6010
5849
|
OutputDef2.encode(v, writer.uint32(18).fork()).join();
|
|
6011
5850
|
}
|
|
5851
|
+
if (message.scope !== "") {
|
|
5852
|
+
writer.uint32(26).string(message.scope);
|
|
5853
|
+
}
|
|
6012
5854
|
return writer;
|
|
6013
5855
|
},
|
|
6014
5856
|
decode(input, length) {
|
|
@@ -6032,6 +5874,13 @@ var SetExportsAction = {
|
|
|
6032
5874
|
message.output_defs.push(OutputDef2.decode(reader, reader.uint32()));
|
|
6033
5875
|
continue;
|
|
6034
5876
|
}
|
|
5877
|
+
case 3: {
|
|
5878
|
+
if (tag !== 26) {
|
|
5879
|
+
break;
|
|
5880
|
+
}
|
|
5881
|
+
message.scope = reader.string();
|
|
5882
|
+
continue;
|
|
5883
|
+
}
|
|
6035
5884
|
}
|
|
6036
5885
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6037
5886
|
break;
|
|
@@ -6043,7 +5892,8 @@ var SetExportsAction = {
|
|
|
6043
5892
|
fromJSON(object) {
|
|
6044
5893
|
return {
|
|
6045
5894
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => OutputExportEntry.fromJSON(e)) : [],
|
|
6046
|
-
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)) : []
|
|
5895
|
+
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)) : [],
|
|
5896
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6047
5897
|
};
|
|
6048
5898
|
},
|
|
6049
5899
|
toJSON(message) {
|
|
@@ -6054,6 +5904,9 @@ var SetExportsAction = {
|
|
|
6054
5904
|
if (message.output_defs?.length) {
|
|
6055
5905
|
obj.outputDefs = message.output_defs.map((e) => OutputDef2.toJSON(e));
|
|
6056
5906
|
}
|
|
5907
|
+
if (message.scope !== "") {
|
|
5908
|
+
obj.scope = message.scope;
|
|
5909
|
+
}
|
|
6057
5910
|
return obj;
|
|
6058
5911
|
},
|
|
6059
5912
|
create(base) {
|
|
@@ -6063,22 +5916,20 @@ var SetExportsAction = {
|
|
|
6063
5916
|
const message = createBaseSetExportsAction();
|
|
6064
5917
|
message.outputs = object.outputs?.map((e) => OutputExportEntry.fromPartial(e)) || [];
|
|
6065
5918
|
message.output_defs = object.output_defs?.map((e) => OutputDef2.fromPartial(e)) || [];
|
|
5919
|
+
message.scope = object.scope ?? "";
|
|
6066
5920
|
return message;
|
|
6067
5921
|
}
|
|
6068
5922
|
};
|
|
6069
5923
|
function createBaseOutputExportEntry() {
|
|
6070
|
-
return { name: "",
|
|
5924
|
+
return { name: "", value: "" };
|
|
6071
5925
|
}
|
|
6072
5926
|
var OutputExportEntry = {
|
|
6073
5927
|
encode(message, writer = new BinaryWriter4()) {
|
|
6074
5928
|
if (message.name !== "") {
|
|
6075
5929
|
writer.uint32(10).string(message.name);
|
|
6076
5930
|
}
|
|
6077
|
-
if (message.
|
|
6078
|
-
writer.uint32(
|
|
6079
|
-
}
|
|
6080
|
-
if (message.source_output !== "") {
|
|
6081
|
-
writer.uint32(26).string(message.source_output);
|
|
5931
|
+
if (message.value !== "") {
|
|
5932
|
+
writer.uint32(34).string(message.value);
|
|
6082
5933
|
}
|
|
6083
5934
|
return writer;
|
|
6084
5935
|
},
|
|
@@ -6096,18 +5947,11 @@ var OutputExportEntry = {
|
|
|
6096
5947
|
message.name = reader.string();
|
|
6097
5948
|
continue;
|
|
6098
5949
|
}
|
|
6099
|
-
case
|
|
6100
|
-
if (tag !==
|
|
6101
|
-
break;
|
|
6102
|
-
}
|
|
6103
|
-
message.source_instance = reader.string();
|
|
6104
|
-
continue;
|
|
6105
|
-
}
|
|
6106
|
-
case 3: {
|
|
6107
|
-
if (tag !== 26) {
|
|
5950
|
+
case 4: {
|
|
5951
|
+
if (tag !== 34) {
|
|
6108
5952
|
break;
|
|
6109
5953
|
}
|
|
6110
|
-
message.
|
|
5954
|
+
message.value = reader.string();
|
|
6111
5955
|
continue;
|
|
6112
5956
|
}
|
|
6113
5957
|
}
|
|
@@ -6121,8 +5965,7 @@ var OutputExportEntry = {
|
|
|
6121
5965
|
fromJSON(object) {
|
|
6122
5966
|
return {
|
|
6123
5967
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6124
|
-
|
|
6125
|
-
source_output: isSet3(object.sourceOutput) ? globalThis.String(object.sourceOutput) : isSet3(object.source_output) ? globalThis.String(object.source_output) : ""
|
|
5968
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6126
5969
|
};
|
|
6127
5970
|
},
|
|
6128
5971
|
toJSON(message) {
|
|
@@ -6130,11 +5973,8 @@ var OutputExportEntry = {
|
|
|
6130
5973
|
if (message.name !== "") {
|
|
6131
5974
|
obj.name = message.name;
|
|
6132
5975
|
}
|
|
6133
|
-
if (message.
|
|
6134
|
-
obj.
|
|
6135
|
-
}
|
|
6136
|
-
if (message.source_output !== "") {
|
|
6137
|
-
obj.sourceOutput = message.source_output;
|
|
5976
|
+
if (message.value !== "") {
|
|
5977
|
+
obj.value = message.value;
|
|
6138
5978
|
}
|
|
6139
5979
|
return obj;
|
|
6140
5980
|
},
|
|
@@ -6144,13 +5984,12 @@ var OutputExportEntry = {
|
|
|
6144
5984
|
fromPartial(object) {
|
|
6145
5985
|
const message = createBaseOutputExportEntry();
|
|
6146
5986
|
message.name = object.name ?? "";
|
|
6147
|
-
message.
|
|
6148
|
-
message.source_output = object.source_output ?? "";
|
|
5987
|
+
message.value = object.value ?? "";
|
|
6149
5988
|
return message;
|
|
6150
5989
|
}
|
|
6151
5990
|
};
|
|
6152
5991
|
function createBaseSetTerraformAction() {
|
|
6153
|
-
return { required_version: "", required_providers: [],
|
|
5992
|
+
return { required_version: "", required_providers: [], scope: "" };
|
|
6154
5993
|
}
|
|
6155
5994
|
var SetTerraformAction = {
|
|
6156
5995
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -6160,8 +5999,8 @@ var SetTerraformAction = {
|
|
|
6160
5999
|
for (const v of message.required_providers) {
|
|
6161
6000
|
ProviderReqView.encode(v, writer.uint32(18).fork()).join();
|
|
6162
6001
|
}
|
|
6163
|
-
if (message.
|
|
6164
|
-
|
|
6002
|
+
if (message.scope !== "") {
|
|
6003
|
+
writer.uint32(34).string(message.scope);
|
|
6165
6004
|
}
|
|
6166
6005
|
return writer;
|
|
6167
6006
|
},
|
|
@@ -6186,11 +6025,11 @@ var SetTerraformAction = {
|
|
|
6186
6025
|
message.required_providers.push(ProviderReqView.decode(reader, reader.uint32()));
|
|
6187
6026
|
continue;
|
|
6188
6027
|
}
|
|
6189
|
-
case
|
|
6190
|
-
if (tag !==
|
|
6028
|
+
case 4: {
|
|
6029
|
+
if (tag !== 34) {
|
|
6191
6030
|
break;
|
|
6192
6031
|
}
|
|
6193
|
-
message.
|
|
6032
|
+
message.scope = reader.string();
|
|
6194
6033
|
continue;
|
|
6195
6034
|
}
|
|
6196
6035
|
}
|
|
@@ -6205,7 +6044,7 @@ var SetTerraformAction = {
|
|
|
6205
6044
|
return {
|
|
6206
6045
|
required_version: isSet3(object.requiredVersion) ? globalThis.String(object.requiredVersion) : isSet3(object.required_version) ? globalThis.String(object.required_version) : "",
|
|
6207
6046
|
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)) : [],
|
|
6208
|
-
|
|
6047
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6209
6048
|
};
|
|
6210
6049
|
},
|
|
6211
6050
|
toJSON(message) {
|
|
@@ -6216,8 +6055,8 @@ var SetTerraformAction = {
|
|
|
6216
6055
|
if (message.required_providers?.length) {
|
|
6217
6056
|
obj.requiredProviders = message.required_providers.map((e) => ProviderReqView.toJSON(e));
|
|
6218
6057
|
}
|
|
6219
|
-
if (message.
|
|
6220
|
-
obj.
|
|
6058
|
+
if (message.scope !== "") {
|
|
6059
|
+
obj.scope = message.scope;
|
|
6221
6060
|
}
|
|
6222
6061
|
return obj;
|
|
6223
6062
|
},
|
|
@@ -6228,18 +6067,21 @@ var SetTerraformAction = {
|
|
|
6228
6067
|
const message = createBaseSetTerraformAction();
|
|
6229
6068
|
message.required_version = object.required_version ?? "";
|
|
6230
6069
|
message.required_providers = object.required_providers?.map((e) => ProviderReqView.fromPartial(e)) || [];
|
|
6231
|
-
message.
|
|
6070
|
+
message.scope = object.scope ?? "";
|
|
6232
6071
|
return message;
|
|
6233
6072
|
}
|
|
6234
6073
|
};
|
|
6235
6074
|
function createBaseSetProvidersAction() {
|
|
6236
|
-
return { providers: [] };
|
|
6075
|
+
return { providers: [], scope: "" };
|
|
6237
6076
|
}
|
|
6238
6077
|
var SetProvidersAction = {
|
|
6239
6078
|
encode(message, writer = new BinaryWriter4()) {
|
|
6240
6079
|
for (const v of message.providers) {
|
|
6241
6080
|
ProviderView.encode(v, writer.uint32(10).fork()).join();
|
|
6242
6081
|
}
|
|
6082
|
+
if (message.scope !== "") {
|
|
6083
|
+
writer.uint32(18).string(message.scope);
|
|
6084
|
+
}
|
|
6243
6085
|
return writer;
|
|
6244
6086
|
},
|
|
6245
6087
|
decode(input, length) {
|
|
@@ -6256,6 +6098,13 @@ var SetProvidersAction = {
|
|
|
6256
6098
|
message.providers.push(ProviderView.decode(reader, reader.uint32()));
|
|
6257
6099
|
continue;
|
|
6258
6100
|
}
|
|
6101
|
+
case 2: {
|
|
6102
|
+
if (tag !== 18) {
|
|
6103
|
+
break;
|
|
6104
|
+
}
|
|
6105
|
+
message.scope = reader.string();
|
|
6106
|
+
continue;
|
|
6107
|
+
}
|
|
6259
6108
|
}
|
|
6260
6109
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6261
6110
|
break;
|
|
@@ -6266,7 +6115,8 @@ var SetProvidersAction = {
|
|
|
6266
6115
|
},
|
|
6267
6116
|
fromJSON(object) {
|
|
6268
6117
|
return {
|
|
6269
|
-
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderView.fromJSON(e)) : []
|
|
6118
|
+
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderView.fromJSON(e)) : [],
|
|
6119
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6270
6120
|
};
|
|
6271
6121
|
},
|
|
6272
6122
|
toJSON(message) {
|
|
@@ -6274,6 +6124,9 @@ var SetProvidersAction = {
|
|
|
6274
6124
|
if (message.providers?.length) {
|
|
6275
6125
|
obj.providers = message.providers.map((e) => ProviderView.toJSON(e));
|
|
6276
6126
|
}
|
|
6127
|
+
if (message.scope !== "") {
|
|
6128
|
+
obj.scope = message.scope;
|
|
6129
|
+
}
|
|
6277
6130
|
return obj;
|
|
6278
6131
|
},
|
|
6279
6132
|
create(base) {
|
|
@@ -6282,17 +6135,21 @@ var SetProvidersAction = {
|
|
|
6282
6135
|
fromPartial(object) {
|
|
6283
6136
|
const message = createBaseSetProvidersAction();
|
|
6284
6137
|
message.providers = object.providers?.map((e) => ProviderView.fromPartial(e)) || [];
|
|
6138
|
+
message.scope = object.scope ?? "";
|
|
6285
6139
|
return message;
|
|
6286
6140
|
}
|
|
6287
6141
|
};
|
|
6288
6142
|
function createBaseSetLocalsAction() {
|
|
6289
|
-
return { locals: [] };
|
|
6143
|
+
return { locals: [], scope: "" };
|
|
6290
6144
|
}
|
|
6291
6145
|
var SetLocalsAction = {
|
|
6292
6146
|
encode(message, writer = new BinaryWriter4()) {
|
|
6293
6147
|
for (const v of message.locals) {
|
|
6294
6148
|
LocalEntry.encode(v, writer.uint32(10).fork()).join();
|
|
6295
6149
|
}
|
|
6150
|
+
if (message.scope !== "") {
|
|
6151
|
+
writer.uint32(18).string(message.scope);
|
|
6152
|
+
}
|
|
6296
6153
|
return writer;
|
|
6297
6154
|
},
|
|
6298
6155
|
decode(input, length) {
|
|
@@ -6309,6 +6166,13 @@ var SetLocalsAction = {
|
|
|
6309
6166
|
message.locals.push(LocalEntry.decode(reader, reader.uint32()));
|
|
6310
6167
|
continue;
|
|
6311
6168
|
}
|
|
6169
|
+
case 2: {
|
|
6170
|
+
if (tag !== 18) {
|
|
6171
|
+
break;
|
|
6172
|
+
}
|
|
6173
|
+
message.scope = reader.string();
|
|
6174
|
+
continue;
|
|
6175
|
+
}
|
|
6312
6176
|
}
|
|
6313
6177
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6314
6178
|
break;
|
|
@@ -6319,7 +6183,8 @@ var SetLocalsAction = {
|
|
|
6319
6183
|
},
|
|
6320
6184
|
fromJSON(object) {
|
|
6321
6185
|
return {
|
|
6322
|
-
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => LocalEntry.fromJSON(e)) : []
|
|
6186
|
+
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => LocalEntry.fromJSON(e)) : [],
|
|
6187
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6323
6188
|
};
|
|
6324
6189
|
},
|
|
6325
6190
|
toJSON(message) {
|
|
@@ -6327,6 +6192,9 @@ var SetLocalsAction = {
|
|
|
6327
6192
|
if (message.locals?.length) {
|
|
6328
6193
|
obj.locals = message.locals.map((e) => LocalEntry.toJSON(e));
|
|
6329
6194
|
}
|
|
6195
|
+
if (message.scope !== "") {
|
|
6196
|
+
obj.scope = message.scope;
|
|
6197
|
+
}
|
|
6330
6198
|
return obj;
|
|
6331
6199
|
},
|
|
6332
6200
|
create(base) {
|
|
@@ -6335,35 +6203,95 @@ var SetLocalsAction = {
|
|
|
6335
6203
|
fromPartial(object) {
|
|
6336
6204
|
const message = createBaseSetLocalsAction();
|
|
6337
6205
|
message.locals = object.locals?.map((e) => LocalEntry.fromPartial(e)) || [];
|
|
6206
|
+
message.scope = object.scope ?? "";
|
|
6338
6207
|
return message;
|
|
6339
6208
|
}
|
|
6340
6209
|
};
|
|
6341
6210
|
function createBaseLocalEntry() {
|
|
6342
|
-
return { name: "",
|
|
6211
|
+
return { name: "", value: "" };
|
|
6343
6212
|
}
|
|
6344
6213
|
var LocalEntry = {
|
|
6345
6214
|
encode(message, writer = new BinaryWriter4()) {
|
|
6346
6215
|
if (message.name !== "") {
|
|
6347
6216
|
writer.uint32(10).string(message.name);
|
|
6348
6217
|
}
|
|
6349
|
-
if (message.
|
|
6350
|
-
writer.uint32(
|
|
6218
|
+
if (message.value !== "") {
|
|
6219
|
+
writer.uint32(50).string(message.value);
|
|
6351
6220
|
}
|
|
6352
|
-
|
|
6353
|
-
|
|
6221
|
+
return writer;
|
|
6222
|
+
},
|
|
6223
|
+
decode(input, length) {
|
|
6224
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
6225
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6226
|
+
const message = createBaseLocalEntry();
|
|
6227
|
+
while (reader.pos < end) {
|
|
6228
|
+
const tag = reader.uint32();
|
|
6229
|
+
switch (tag >>> 3) {
|
|
6230
|
+
case 1: {
|
|
6231
|
+
if (tag !== 10) {
|
|
6232
|
+
break;
|
|
6233
|
+
}
|
|
6234
|
+
message.name = reader.string();
|
|
6235
|
+
continue;
|
|
6236
|
+
}
|
|
6237
|
+
case 6: {
|
|
6238
|
+
if (tag !== 50) {
|
|
6239
|
+
break;
|
|
6240
|
+
}
|
|
6241
|
+
message.value = reader.string();
|
|
6242
|
+
continue;
|
|
6243
|
+
}
|
|
6244
|
+
}
|
|
6245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6246
|
+
break;
|
|
6247
|
+
}
|
|
6248
|
+
reader.skip(tag & 7);
|
|
6354
6249
|
}
|
|
6355
|
-
|
|
6356
|
-
|
|
6250
|
+
return message;
|
|
6251
|
+
},
|
|
6252
|
+
fromJSON(object) {
|
|
6253
|
+
return {
|
|
6254
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6255
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6256
|
+
};
|
|
6257
|
+
},
|
|
6258
|
+
toJSON(message) {
|
|
6259
|
+
const obj = {};
|
|
6260
|
+
if (message.name !== "") {
|
|
6261
|
+
obj.name = message.name;
|
|
6357
6262
|
}
|
|
6358
|
-
if (message.
|
|
6359
|
-
|
|
6263
|
+
if (message.value !== "") {
|
|
6264
|
+
obj.value = message.value;
|
|
6265
|
+
}
|
|
6266
|
+
return obj;
|
|
6267
|
+
},
|
|
6268
|
+
create(base) {
|
|
6269
|
+
return LocalEntry.fromPartial(base ?? {});
|
|
6270
|
+
},
|
|
6271
|
+
fromPartial(object) {
|
|
6272
|
+
const message = createBaseLocalEntry();
|
|
6273
|
+
message.name = object.name ?? "";
|
|
6274
|
+
message.value = object.value ?? "";
|
|
6275
|
+
return message;
|
|
6276
|
+
}
|
|
6277
|
+
};
|
|
6278
|
+
function createBaseSetDirectivesAction() {
|
|
6279
|
+
return { blocks: [], scope: "" };
|
|
6280
|
+
}
|
|
6281
|
+
var SetDirectivesAction = {
|
|
6282
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
6283
|
+
for (const v of message.blocks) {
|
|
6284
|
+
BlockView.encode(v, writer.uint32(10).fork()).join();
|
|
6285
|
+
}
|
|
6286
|
+
if (message.scope !== "") {
|
|
6287
|
+
writer.uint32(18).string(message.scope);
|
|
6360
6288
|
}
|
|
6361
6289
|
return writer;
|
|
6362
6290
|
},
|
|
6363
6291
|
decode(input, length) {
|
|
6364
6292
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
6365
6293
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6366
|
-
const message =
|
|
6294
|
+
const message = createBaseSetDirectivesAction();
|
|
6367
6295
|
while (reader.pos < end) {
|
|
6368
6296
|
const tag = reader.uint32();
|
|
6369
6297
|
switch (tag >>> 3) {
|
|
@@ -6371,35 +6299,195 @@ var LocalEntry = {
|
|
|
6371
6299
|
if (tag !== 10) {
|
|
6372
6300
|
break;
|
|
6373
6301
|
}
|
|
6374
|
-
message.
|
|
6302
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
6375
6303
|
continue;
|
|
6376
6304
|
}
|
|
6377
6305
|
case 2: {
|
|
6378
6306
|
if (tag !== 18) {
|
|
6379
6307
|
break;
|
|
6380
6308
|
}
|
|
6381
|
-
message.
|
|
6309
|
+
message.scope = reader.string();
|
|
6310
|
+
continue;
|
|
6311
|
+
}
|
|
6312
|
+
}
|
|
6313
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6314
|
+
break;
|
|
6315
|
+
}
|
|
6316
|
+
reader.skip(tag & 7);
|
|
6317
|
+
}
|
|
6318
|
+
return message;
|
|
6319
|
+
},
|
|
6320
|
+
fromJSON(object) {
|
|
6321
|
+
return {
|
|
6322
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : [],
|
|
6323
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6324
|
+
};
|
|
6325
|
+
},
|
|
6326
|
+
toJSON(message) {
|
|
6327
|
+
const obj = {};
|
|
6328
|
+
if (message.blocks?.length) {
|
|
6329
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
6330
|
+
}
|
|
6331
|
+
if (message.scope !== "") {
|
|
6332
|
+
obj.scope = message.scope;
|
|
6333
|
+
}
|
|
6334
|
+
return obj;
|
|
6335
|
+
},
|
|
6336
|
+
create(base) {
|
|
6337
|
+
return SetDirectivesAction.fromPartial(base ?? {});
|
|
6338
|
+
},
|
|
6339
|
+
fromPartial(object) {
|
|
6340
|
+
const message = createBaseSetDirectivesAction();
|
|
6341
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
6342
|
+
message.scope = object.scope ?? "";
|
|
6343
|
+
return message;
|
|
6344
|
+
}
|
|
6345
|
+
};
|
|
6346
|
+
function createBaseSetBlocksAction() {
|
|
6347
|
+
return { instance_id: "", blocks: [], scope: "" };
|
|
6348
|
+
}
|
|
6349
|
+
var SetBlocksAction = {
|
|
6350
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
6351
|
+
if (message.instance_id !== "") {
|
|
6352
|
+
writer.uint32(10).string(message.instance_id);
|
|
6353
|
+
}
|
|
6354
|
+
for (const v of message.blocks) {
|
|
6355
|
+
BlockView.encode(v, writer.uint32(18).fork()).join();
|
|
6356
|
+
}
|
|
6357
|
+
if (message.scope !== "") {
|
|
6358
|
+
writer.uint32(26).string(message.scope);
|
|
6359
|
+
}
|
|
6360
|
+
return writer;
|
|
6361
|
+
},
|
|
6362
|
+
decode(input, length) {
|
|
6363
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
6364
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6365
|
+
const message = createBaseSetBlocksAction();
|
|
6366
|
+
while (reader.pos < end) {
|
|
6367
|
+
const tag = reader.uint32();
|
|
6368
|
+
switch (tag >>> 3) {
|
|
6369
|
+
case 1: {
|
|
6370
|
+
if (tag !== 10) {
|
|
6371
|
+
break;
|
|
6372
|
+
}
|
|
6373
|
+
message.instance_id = reader.string();
|
|
6374
|
+
continue;
|
|
6375
|
+
}
|
|
6376
|
+
case 2: {
|
|
6377
|
+
if (tag !== 18) {
|
|
6378
|
+
break;
|
|
6379
|
+
}
|
|
6380
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
6382
6381
|
continue;
|
|
6383
6382
|
}
|
|
6384
6383
|
case 3: {
|
|
6385
6384
|
if (tag !== 26) {
|
|
6386
6385
|
break;
|
|
6387
6386
|
}
|
|
6388
|
-
message.
|
|
6387
|
+
message.scope = reader.string();
|
|
6388
|
+
continue;
|
|
6389
|
+
}
|
|
6390
|
+
}
|
|
6391
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6392
|
+
break;
|
|
6393
|
+
}
|
|
6394
|
+
reader.skip(tag & 7);
|
|
6395
|
+
}
|
|
6396
|
+
return message;
|
|
6397
|
+
},
|
|
6398
|
+
fromJSON(object) {
|
|
6399
|
+
return {
|
|
6400
|
+
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
6401
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : [],
|
|
6402
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6403
|
+
};
|
|
6404
|
+
},
|
|
6405
|
+
toJSON(message) {
|
|
6406
|
+
const obj = {};
|
|
6407
|
+
if (message.instance_id !== "") {
|
|
6408
|
+
obj.instanceId = message.instance_id;
|
|
6409
|
+
}
|
|
6410
|
+
if (message.blocks?.length) {
|
|
6411
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
6412
|
+
}
|
|
6413
|
+
if (message.scope !== "") {
|
|
6414
|
+
obj.scope = message.scope;
|
|
6415
|
+
}
|
|
6416
|
+
return obj;
|
|
6417
|
+
},
|
|
6418
|
+
create(base) {
|
|
6419
|
+
return SetBlocksAction.fromPartial(base ?? {});
|
|
6420
|
+
},
|
|
6421
|
+
fromPartial(object) {
|
|
6422
|
+
const message = createBaseSetBlocksAction();
|
|
6423
|
+
message.instance_id = object.instance_id ?? "";
|
|
6424
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
6425
|
+
message.scope = object.scope ?? "";
|
|
6426
|
+
return message;
|
|
6427
|
+
}
|
|
6428
|
+
};
|
|
6429
|
+
function createBaseSetMetaArgumentsAction() {
|
|
6430
|
+
return { instance_id: "", count: "", for_each: "", provider: "", scope: "" };
|
|
6431
|
+
}
|
|
6432
|
+
var SetMetaArgumentsAction = {
|
|
6433
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
6434
|
+
if (message.instance_id !== "") {
|
|
6435
|
+
writer.uint32(10).string(message.instance_id);
|
|
6436
|
+
}
|
|
6437
|
+
if (message.count !== "") {
|
|
6438
|
+
writer.uint32(18).string(message.count);
|
|
6439
|
+
}
|
|
6440
|
+
if (message.for_each !== "") {
|
|
6441
|
+
writer.uint32(26).string(message.for_each);
|
|
6442
|
+
}
|
|
6443
|
+
if (message.provider !== "") {
|
|
6444
|
+
writer.uint32(34).string(message.provider);
|
|
6445
|
+
}
|
|
6446
|
+
if (message.scope !== "") {
|
|
6447
|
+
writer.uint32(42).string(message.scope);
|
|
6448
|
+
}
|
|
6449
|
+
return writer;
|
|
6450
|
+
},
|
|
6451
|
+
decode(input, length) {
|
|
6452
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
6453
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6454
|
+
const message = createBaseSetMetaArgumentsAction();
|
|
6455
|
+
while (reader.pos < end) {
|
|
6456
|
+
const tag = reader.uint32();
|
|
6457
|
+
switch (tag >>> 3) {
|
|
6458
|
+
case 1: {
|
|
6459
|
+
if (tag !== 10) {
|
|
6460
|
+
break;
|
|
6461
|
+
}
|
|
6462
|
+
message.instance_id = reader.string();
|
|
6463
|
+
continue;
|
|
6464
|
+
}
|
|
6465
|
+
case 2: {
|
|
6466
|
+
if (tag !== 18) {
|
|
6467
|
+
break;
|
|
6468
|
+
}
|
|
6469
|
+
message.count = reader.string();
|
|
6470
|
+
continue;
|
|
6471
|
+
}
|
|
6472
|
+
case 3: {
|
|
6473
|
+
if (tag !== 26) {
|
|
6474
|
+
break;
|
|
6475
|
+
}
|
|
6476
|
+
message.for_each = reader.string();
|
|
6389
6477
|
continue;
|
|
6390
6478
|
}
|
|
6391
6479
|
case 4: {
|
|
6392
6480
|
if (tag !== 34) {
|
|
6393
6481
|
break;
|
|
6394
6482
|
}
|
|
6395
|
-
message.
|
|
6483
|
+
message.provider = reader.string();
|
|
6396
6484
|
continue;
|
|
6397
6485
|
}
|
|
6398
6486
|
case 5: {
|
|
6399
6487
|
if (tag !== 42) {
|
|
6400
6488
|
break;
|
|
6401
6489
|
}
|
|
6402
|
-
message.
|
|
6490
|
+
message.scope = reader.string();
|
|
6403
6491
|
continue;
|
|
6404
6492
|
}
|
|
6405
6493
|
}
|
|
@@ -6412,42 +6500,140 @@ var LocalEntry = {
|
|
|
6412
6500
|
},
|
|
6413
6501
|
fromJSON(object) {
|
|
6414
6502
|
return {
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6503
|
+
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
6504
|
+
count: isSet3(object.count) ? globalThis.String(object.count) : "",
|
|
6505
|
+
for_each: isSet3(object.forEach) ? globalThis.String(object.forEach) : isSet3(object.for_each) ? globalThis.String(object.for_each) : "",
|
|
6506
|
+
provider: isSet3(object.provider) ? globalThis.String(object.provider) : "",
|
|
6507
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6420
6508
|
};
|
|
6421
6509
|
},
|
|
6422
6510
|
toJSON(message) {
|
|
6423
6511
|
const obj = {};
|
|
6512
|
+
if (message.instance_id !== "") {
|
|
6513
|
+
obj.instanceId = message.instance_id;
|
|
6514
|
+
}
|
|
6515
|
+
if (message.count !== "") {
|
|
6516
|
+
obj.count = message.count;
|
|
6517
|
+
}
|
|
6518
|
+
if (message.for_each !== "") {
|
|
6519
|
+
obj.forEach = message.for_each;
|
|
6520
|
+
}
|
|
6521
|
+
if (message.provider !== "") {
|
|
6522
|
+
obj.provider = message.provider;
|
|
6523
|
+
}
|
|
6524
|
+
if (message.scope !== "") {
|
|
6525
|
+
obj.scope = message.scope;
|
|
6526
|
+
}
|
|
6527
|
+
return obj;
|
|
6528
|
+
},
|
|
6529
|
+
create(base) {
|
|
6530
|
+
return SetMetaArgumentsAction.fromPartial(base ?? {});
|
|
6531
|
+
},
|
|
6532
|
+
fromPartial(object) {
|
|
6533
|
+
const message = createBaseSetMetaArgumentsAction();
|
|
6534
|
+
message.instance_id = object.instance_id ?? "";
|
|
6535
|
+
message.count = object.count ?? "";
|
|
6536
|
+
message.for_each = object.for_each ?? "";
|
|
6537
|
+
message.provider = object.provider ?? "";
|
|
6538
|
+
message.scope = object.scope ?? "";
|
|
6539
|
+
return message;
|
|
6540
|
+
}
|
|
6541
|
+
};
|
|
6542
|
+
function createBaseAddResourceAction() {
|
|
6543
|
+
return { kind: "", type: "", name: "", scope: "" };
|
|
6544
|
+
}
|
|
6545
|
+
var AddResourceAction = {
|
|
6546
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
6547
|
+
if (message.kind !== "") {
|
|
6548
|
+
writer.uint32(10).string(message.kind);
|
|
6549
|
+
}
|
|
6550
|
+
if (message.type !== "") {
|
|
6551
|
+
writer.uint32(18).string(message.type);
|
|
6552
|
+
}
|
|
6424
6553
|
if (message.name !== "") {
|
|
6425
|
-
|
|
6554
|
+
writer.uint32(26).string(message.name);
|
|
6426
6555
|
}
|
|
6427
|
-
if (message.
|
|
6428
|
-
|
|
6556
|
+
if (message.scope !== "") {
|
|
6557
|
+
writer.uint32(34).string(message.scope);
|
|
6429
6558
|
}
|
|
6430
|
-
|
|
6431
|
-
|
|
6559
|
+
return writer;
|
|
6560
|
+
},
|
|
6561
|
+
decode(input, length) {
|
|
6562
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
6563
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6564
|
+
const message = createBaseAddResourceAction();
|
|
6565
|
+
while (reader.pos < end) {
|
|
6566
|
+
const tag = reader.uint32();
|
|
6567
|
+
switch (tag >>> 3) {
|
|
6568
|
+
case 1: {
|
|
6569
|
+
if (tag !== 10) {
|
|
6570
|
+
break;
|
|
6571
|
+
}
|
|
6572
|
+
message.kind = reader.string();
|
|
6573
|
+
continue;
|
|
6574
|
+
}
|
|
6575
|
+
case 2: {
|
|
6576
|
+
if (tag !== 18) {
|
|
6577
|
+
break;
|
|
6578
|
+
}
|
|
6579
|
+
message.type = reader.string();
|
|
6580
|
+
continue;
|
|
6581
|
+
}
|
|
6582
|
+
case 3: {
|
|
6583
|
+
if (tag !== 26) {
|
|
6584
|
+
break;
|
|
6585
|
+
}
|
|
6586
|
+
message.name = reader.string();
|
|
6587
|
+
continue;
|
|
6588
|
+
}
|
|
6589
|
+
case 4: {
|
|
6590
|
+
if (tag !== 34) {
|
|
6591
|
+
break;
|
|
6592
|
+
}
|
|
6593
|
+
message.scope = reader.string();
|
|
6594
|
+
continue;
|
|
6595
|
+
}
|
|
6596
|
+
}
|
|
6597
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6598
|
+
break;
|
|
6599
|
+
}
|
|
6600
|
+
reader.skip(tag & 7);
|
|
6432
6601
|
}
|
|
6433
|
-
|
|
6434
|
-
|
|
6602
|
+
return message;
|
|
6603
|
+
},
|
|
6604
|
+
fromJSON(object) {
|
|
6605
|
+
return {
|
|
6606
|
+
kind: isSet3(object.kind) ? globalThis.String(object.kind) : "",
|
|
6607
|
+
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
6608
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6609
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
|
|
6610
|
+
};
|
|
6611
|
+
},
|
|
6612
|
+
toJSON(message) {
|
|
6613
|
+
const obj = {};
|
|
6614
|
+
if (message.kind !== "") {
|
|
6615
|
+
obj.kind = message.kind;
|
|
6435
6616
|
}
|
|
6436
|
-
if (message.
|
|
6437
|
-
obj.
|
|
6617
|
+
if (message.type !== "") {
|
|
6618
|
+
obj.type = message.type;
|
|
6619
|
+
}
|
|
6620
|
+
if (message.name !== "") {
|
|
6621
|
+
obj.name = message.name;
|
|
6622
|
+
}
|
|
6623
|
+
if (message.scope !== "") {
|
|
6624
|
+
obj.scope = message.scope;
|
|
6438
6625
|
}
|
|
6439
6626
|
return obj;
|
|
6440
6627
|
},
|
|
6441
6628
|
create(base) {
|
|
6442
|
-
return
|
|
6629
|
+
return AddResourceAction.fromPartial(base ?? {});
|
|
6443
6630
|
},
|
|
6444
6631
|
fromPartial(object) {
|
|
6445
|
-
const message =
|
|
6632
|
+
const message = createBaseAddResourceAction();
|
|
6633
|
+
message.kind = object.kind ?? "";
|
|
6634
|
+
message.type = object.type ?? "";
|
|
6446
6635
|
message.name = object.name ?? "";
|
|
6447
|
-
message.
|
|
6448
|
-
message.value = object.value ?? void 0;
|
|
6449
|
-
message.variable = object.variable ?? "";
|
|
6450
|
-
message.expression = object.expression ?? "";
|
|
6636
|
+
message.scope = object.scope ?? "";
|
|
6451
6637
|
return message;
|
|
6452
6638
|
}
|
|
6453
6639
|
};
|
|
@@ -6886,7 +7072,11 @@ function createBaseAction() {
|
|
|
6886
7072
|
redo: void 0,
|
|
6887
7073
|
place_module: void 0,
|
|
6888
7074
|
set_use_providers: void 0,
|
|
6889
|
-
ungroup: void 0
|
|
7075
|
+
ungroup: void 0,
|
|
7076
|
+
set_blocks: void 0,
|
|
7077
|
+
set_directives: void 0,
|
|
7078
|
+
set_meta_arguments: void 0,
|
|
7079
|
+
add_resource: void 0
|
|
6890
7080
|
};
|
|
6891
7081
|
}
|
|
6892
7082
|
var Action = {
|
|
@@ -6951,6 +7141,18 @@ var Action = {
|
|
|
6951
7141
|
if (message.ungroup !== void 0) {
|
|
6952
7142
|
UngroupAction.encode(message.ungroup, writer.uint32(194).fork()).join();
|
|
6953
7143
|
}
|
|
7144
|
+
if (message.set_blocks !== void 0) {
|
|
7145
|
+
SetBlocksAction.encode(message.set_blocks, writer.uint32(202).fork()).join();
|
|
7146
|
+
}
|
|
7147
|
+
if (message.set_directives !== void 0) {
|
|
7148
|
+
SetDirectivesAction.encode(message.set_directives, writer.uint32(210).fork()).join();
|
|
7149
|
+
}
|
|
7150
|
+
if (message.set_meta_arguments !== void 0) {
|
|
7151
|
+
SetMetaArgumentsAction.encode(message.set_meta_arguments, writer.uint32(218).fork()).join();
|
|
7152
|
+
}
|
|
7153
|
+
if (message.add_resource !== void 0) {
|
|
7154
|
+
AddResourceAction.encode(message.add_resource, writer.uint32(226).fork()).join();
|
|
7155
|
+
}
|
|
6954
7156
|
return writer;
|
|
6955
7157
|
},
|
|
6956
7158
|
decode(input, length) {
|
|
@@ -7100,6 +7302,34 @@ var Action = {
|
|
|
7100
7302
|
message.ungroup = UngroupAction.decode(reader, reader.uint32());
|
|
7101
7303
|
continue;
|
|
7102
7304
|
}
|
|
7305
|
+
case 25: {
|
|
7306
|
+
if (tag !== 202) {
|
|
7307
|
+
break;
|
|
7308
|
+
}
|
|
7309
|
+
message.set_blocks = SetBlocksAction.decode(reader, reader.uint32());
|
|
7310
|
+
continue;
|
|
7311
|
+
}
|
|
7312
|
+
case 26: {
|
|
7313
|
+
if (tag !== 210) {
|
|
7314
|
+
break;
|
|
7315
|
+
}
|
|
7316
|
+
message.set_directives = SetDirectivesAction.decode(reader, reader.uint32());
|
|
7317
|
+
continue;
|
|
7318
|
+
}
|
|
7319
|
+
case 27: {
|
|
7320
|
+
if (tag !== 218) {
|
|
7321
|
+
break;
|
|
7322
|
+
}
|
|
7323
|
+
message.set_meta_arguments = SetMetaArgumentsAction.decode(reader, reader.uint32());
|
|
7324
|
+
continue;
|
|
7325
|
+
}
|
|
7326
|
+
case 28: {
|
|
7327
|
+
if (tag !== 226) {
|
|
7328
|
+
break;
|
|
7329
|
+
}
|
|
7330
|
+
message.add_resource = AddResourceAction.decode(reader, reader.uint32());
|
|
7331
|
+
continue;
|
|
7332
|
+
}
|
|
7103
7333
|
}
|
|
7104
7334
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7105
7335
|
break;
|
|
@@ -7129,7 +7359,11 @@ var Action = {
|
|
|
7129
7359
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
7130
7360
|
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
|
|
7131
7361
|
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0,
|
|
7132
|
-
ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0
|
|
7362
|
+
ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0,
|
|
7363
|
+
set_blocks: isSet3(object.setBlocks) ? SetBlocksAction.fromJSON(object.setBlocks) : isSet3(object.set_blocks) ? SetBlocksAction.fromJSON(object.set_blocks) : void 0,
|
|
7364
|
+
set_directives: isSet3(object.setDirectives) ? SetDirectivesAction.fromJSON(object.setDirectives) : isSet3(object.set_directives) ? SetDirectivesAction.fromJSON(object.set_directives) : void 0,
|
|
7365
|
+
set_meta_arguments: isSet3(object.setMetaArguments) ? SetMetaArgumentsAction.fromJSON(object.setMetaArguments) : isSet3(object.set_meta_arguments) ? SetMetaArgumentsAction.fromJSON(object.set_meta_arguments) : void 0,
|
|
7366
|
+
add_resource: isSet3(object.addResource) ? AddResourceAction.fromJSON(object.addResource) : isSet3(object.add_resource) ? AddResourceAction.fromJSON(object.add_resource) : void 0
|
|
7133
7367
|
};
|
|
7134
7368
|
},
|
|
7135
7369
|
toJSON(message) {
|
|
@@ -7194,6 +7428,18 @@ var Action = {
|
|
|
7194
7428
|
if (message.ungroup !== void 0) {
|
|
7195
7429
|
obj.ungroup = UngroupAction.toJSON(message.ungroup);
|
|
7196
7430
|
}
|
|
7431
|
+
if (message.set_blocks !== void 0) {
|
|
7432
|
+
obj.setBlocks = SetBlocksAction.toJSON(message.set_blocks);
|
|
7433
|
+
}
|
|
7434
|
+
if (message.set_directives !== void 0) {
|
|
7435
|
+
obj.setDirectives = SetDirectivesAction.toJSON(message.set_directives);
|
|
7436
|
+
}
|
|
7437
|
+
if (message.set_meta_arguments !== void 0) {
|
|
7438
|
+
obj.setMetaArguments = SetMetaArgumentsAction.toJSON(message.set_meta_arguments);
|
|
7439
|
+
}
|
|
7440
|
+
if (message.add_resource !== void 0) {
|
|
7441
|
+
obj.addResource = AddResourceAction.toJSON(message.add_resource);
|
|
7442
|
+
}
|
|
7197
7443
|
return obj;
|
|
7198
7444
|
},
|
|
7199
7445
|
create(base) {
|
|
@@ -7221,6 +7467,10 @@ var Action = {
|
|
|
7221
7467
|
message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
|
|
7222
7468
|
message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
|
|
7223
7469
|
message.ungroup = object.ungroup !== void 0 && object.ungroup !== null ? UngroupAction.fromPartial(object.ungroup) : void 0;
|
|
7470
|
+
message.set_blocks = object.set_blocks !== void 0 && object.set_blocks !== null ? SetBlocksAction.fromPartial(object.set_blocks) : void 0;
|
|
7471
|
+
message.set_directives = object.set_directives !== void 0 && object.set_directives !== null ? SetDirectivesAction.fromPartial(object.set_directives) : void 0;
|
|
7472
|
+
message.set_meta_arguments = object.set_meta_arguments !== void 0 && object.set_meta_arguments !== null ? SetMetaArgumentsAction.fromPartial(object.set_meta_arguments) : void 0;
|
|
7473
|
+
message.add_resource = object.add_resource !== void 0 && object.add_resource !== null ? AddResourceAction.fromPartial(object.add_resource) : void 0;
|
|
7224
7474
|
return message;
|
|
7225
7475
|
}
|
|
7226
7476
|
};
|
|
@@ -7572,7 +7822,7 @@ var ReadWiringCandidatesResponse = {
|
|
|
7572
7822
|
}
|
|
7573
7823
|
};
|
|
7574
7824
|
function createBaseInvokeRequest() {
|
|
7575
|
-
return { invoke_id: "", path: [], argv: [], working_directory: "" };
|
|
7825
|
+
return { invoke_id: "", path: [], argv: [], working_directory: "", stdin: new Uint8Array(0) };
|
|
7576
7826
|
}
|
|
7577
7827
|
var InvokeRequest = {
|
|
7578
7828
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -7588,6 +7838,9 @@ var InvokeRequest = {
|
|
|
7588
7838
|
if (message.working_directory !== "") {
|
|
7589
7839
|
writer.uint32(42).string(message.working_directory);
|
|
7590
7840
|
}
|
|
7841
|
+
if (message.stdin.length !== 0) {
|
|
7842
|
+
writer.uint32(50).bytes(message.stdin);
|
|
7843
|
+
}
|
|
7591
7844
|
return writer;
|
|
7592
7845
|
},
|
|
7593
7846
|
decode(input, length) {
|
|
@@ -7625,6 +7878,13 @@ var InvokeRequest = {
|
|
|
7625
7878
|
message.working_directory = reader.string();
|
|
7626
7879
|
continue;
|
|
7627
7880
|
}
|
|
7881
|
+
case 6: {
|
|
7882
|
+
if (tag !== 50) {
|
|
7883
|
+
break;
|
|
7884
|
+
}
|
|
7885
|
+
message.stdin = reader.bytes();
|
|
7886
|
+
continue;
|
|
7887
|
+
}
|
|
7628
7888
|
}
|
|
7629
7889
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7630
7890
|
break;
|
|
@@ -7638,7 +7898,8 @@ var InvokeRequest = {
|
|
|
7638
7898
|
invoke_id: isSet3(object.invokeId) ? globalThis.String(object.invokeId) : isSet3(object.invoke_id) ? globalThis.String(object.invoke_id) : "",
|
|
7639
7899
|
path: globalThis.Array.isArray(object?.path) ? object.path.map((e) => globalThis.String(e)) : [],
|
|
7640
7900
|
argv: globalThis.Array.isArray(object?.argv) ? object.argv.map((e) => globalThis.String(e)) : [],
|
|
7641
|
-
working_directory: isSet3(object.workingDirectory) ? globalThis.String(object.workingDirectory) : isSet3(object.working_directory) ? globalThis.String(object.working_directory) : ""
|
|
7901
|
+
working_directory: isSet3(object.workingDirectory) ? globalThis.String(object.workingDirectory) : isSet3(object.working_directory) ? globalThis.String(object.working_directory) : "",
|
|
7902
|
+
stdin: isSet3(object.stdin) ? bytesFromBase64(object.stdin) : new Uint8Array(0)
|
|
7642
7903
|
};
|
|
7643
7904
|
},
|
|
7644
7905
|
toJSON(message) {
|
|
@@ -7655,6 +7916,9 @@ var InvokeRequest = {
|
|
|
7655
7916
|
if (message.working_directory !== "") {
|
|
7656
7917
|
obj.workingDirectory = message.working_directory;
|
|
7657
7918
|
}
|
|
7919
|
+
if (message.stdin.length !== 0) {
|
|
7920
|
+
obj.stdin = base64FromBytes(message.stdin);
|
|
7921
|
+
}
|
|
7658
7922
|
return obj;
|
|
7659
7923
|
},
|
|
7660
7924
|
create(base) {
|
|
@@ -7666,6 +7930,7 @@ var InvokeRequest = {
|
|
|
7666
7930
|
message.path = object.path?.map((e) => e) || [];
|
|
7667
7931
|
message.argv = object.argv?.map((e) => e) || [];
|
|
7668
7932
|
message.working_directory = object.working_directory ?? "";
|
|
7933
|
+
message.stdin = object.stdin ?? new Uint8Array(0);
|
|
7669
7934
|
return message;
|
|
7670
7935
|
}
|
|
7671
7936
|
};
|
|
@@ -9163,25 +9428,29 @@ var ProviderReqView = {
|
|
|
9163
9428
|
return message;
|
|
9164
9429
|
}
|
|
9165
9430
|
};
|
|
9166
|
-
function
|
|
9167
|
-
return {
|
|
9431
|
+
function createBaseProviderView() {
|
|
9432
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
9168
9433
|
}
|
|
9169
|
-
var
|
|
9434
|
+
var ProviderView = {
|
|
9170
9435
|
encode(message, writer = new BinaryWriter4()) {
|
|
9171
|
-
if (message.
|
|
9172
|
-
writer.uint32(10).string(message.
|
|
9436
|
+
if (message.name !== "") {
|
|
9437
|
+
writer.uint32(10).string(message.name);
|
|
9438
|
+
}
|
|
9439
|
+
if (message.alias !== "") {
|
|
9440
|
+
writer.uint32(18).string(message.alias);
|
|
9173
9441
|
}
|
|
9174
9442
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
9175
|
-
|
|
9176
|
-
BackendView_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
9177
|
-
}
|
|
9443
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
9178
9444
|
});
|
|
9445
|
+
for (const v of message.blocks) {
|
|
9446
|
+
BlockView.encode(v, writer.uint32(42).fork()).join();
|
|
9447
|
+
}
|
|
9179
9448
|
return writer;
|
|
9180
9449
|
},
|
|
9181
9450
|
decode(input, length) {
|
|
9182
9451
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9183
9452
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9184
|
-
const message =
|
|
9453
|
+
const message = createBaseProviderView();
|
|
9185
9454
|
while (reader.pos < end) {
|
|
9186
9455
|
const tag = reader.uint32();
|
|
9187
9456
|
switch (tag >>> 3) {
|
|
@@ -9189,17 +9458,31 @@ var BackendView = {
|
|
|
9189
9458
|
if (tag !== 10) {
|
|
9190
9459
|
break;
|
|
9191
9460
|
}
|
|
9192
|
-
message.
|
|
9461
|
+
message.name = reader.string();
|
|
9462
|
+
continue;
|
|
9463
|
+
}
|
|
9464
|
+
case 2: {
|
|
9465
|
+
if (tag !== 18) {
|
|
9466
|
+
break;
|
|
9467
|
+
}
|
|
9468
|
+
message.alias = reader.string();
|
|
9469
|
+
continue;
|
|
9470
|
+
}
|
|
9471
|
+
case 3: {
|
|
9472
|
+
if (tag !== 26) {
|
|
9473
|
+
break;
|
|
9474
|
+
}
|
|
9475
|
+
const entry3 = ProviderView_ConfigEntry.decode(reader, reader.uint32());
|
|
9476
|
+
if (entry3.value !== void 0) {
|
|
9477
|
+
message.config[entry3.key] = entry3.value;
|
|
9478
|
+
}
|
|
9193
9479
|
continue;
|
|
9194
9480
|
}
|
|
9195
|
-
case
|
|
9196
|
-
if (tag !==
|
|
9481
|
+
case 5: {
|
|
9482
|
+
if (tag !== 42) {
|
|
9197
9483
|
break;
|
|
9198
9484
|
}
|
|
9199
|
-
|
|
9200
|
-
if (entry2.value !== void 0) {
|
|
9201
|
-
message.config[entry2.key] = entry2.value;
|
|
9202
|
-
}
|
|
9485
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
9203
9486
|
continue;
|
|
9204
9487
|
}
|
|
9205
9488
|
}
|
|
@@ -9212,20 +9495,25 @@ var BackendView = {
|
|
|
9212
9495
|
},
|
|
9213
9496
|
fromJSON(object) {
|
|
9214
9497
|
return {
|
|
9215
|
-
|
|
9498
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
9499
|
+
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
9216
9500
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
9217
9501
|
(acc, [key, value]) => {
|
|
9218
|
-
acc[key] = value;
|
|
9502
|
+
acc[key] = globalThis.String(value);
|
|
9219
9503
|
return acc;
|
|
9220
9504
|
},
|
|
9221
9505
|
{}
|
|
9222
|
-
) : {}
|
|
9506
|
+
) : {},
|
|
9507
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : []
|
|
9223
9508
|
};
|
|
9224
9509
|
},
|
|
9225
9510
|
toJSON(message) {
|
|
9226
9511
|
const obj = {};
|
|
9227
|
-
if (message.
|
|
9228
|
-
obj.
|
|
9512
|
+
if (message.name !== "") {
|
|
9513
|
+
obj.name = message.name;
|
|
9514
|
+
}
|
|
9515
|
+
if (message.alias !== "") {
|
|
9516
|
+
obj.alias = message.alias;
|
|
9229
9517
|
}
|
|
9230
9518
|
if (message.config) {
|
|
9231
9519
|
const entries = globalThis.Object.entries(message.config);
|
|
@@ -9236,43 +9524,48 @@ var BackendView = {
|
|
|
9236
9524
|
});
|
|
9237
9525
|
}
|
|
9238
9526
|
}
|
|
9527
|
+
if (message.blocks?.length) {
|
|
9528
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
9529
|
+
}
|
|
9239
9530
|
return obj;
|
|
9240
9531
|
},
|
|
9241
9532
|
create(base) {
|
|
9242
|
-
return
|
|
9533
|
+
return ProviderView.fromPartial(base ?? {});
|
|
9243
9534
|
},
|
|
9244
9535
|
fromPartial(object) {
|
|
9245
|
-
const message =
|
|
9246
|
-
message.
|
|
9536
|
+
const message = createBaseProviderView();
|
|
9537
|
+
message.name = object.name ?? "";
|
|
9538
|
+
message.alias = object.alias ?? "";
|
|
9247
9539
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
9248
9540
|
(acc, [key, value]) => {
|
|
9249
9541
|
if (value !== void 0) {
|
|
9250
|
-
acc[key] = value;
|
|
9542
|
+
acc[key] = globalThis.String(value);
|
|
9251
9543
|
}
|
|
9252
9544
|
return acc;
|
|
9253
9545
|
},
|
|
9254
9546
|
{}
|
|
9255
9547
|
);
|
|
9548
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
9256
9549
|
return message;
|
|
9257
9550
|
}
|
|
9258
9551
|
};
|
|
9259
|
-
function
|
|
9260
|
-
return { key: "", value:
|
|
9552
|
+
function createBaseProviderView_ConfigEntry() {
|
|
9553
|
+
return { key: "", value: "" };
|
|
9261
9554
|
}
|
|
9262
|
-
var
|
|
9555
|
+
var ProviderView_ConfigEntry = {
|
|
9263
9556
|
encode(message, writer = new BinaryWriter4()) {
|
|
9264
9557
|
if (message.key !== "") {
|
|
9265
9558
|
writer.uint32(10).string(message.key);
|
|
9266
9559
|
}
|
|
9267
|
-
if (message.value !==
|
|
9268
|
-
|
|
9560
|
+
if (message.value !== "") {
|
|
9561
|
+
writer.uint32(18).string(message.value);
|
|
9269
9562
|
}
|
|
9270
9563
|
return writer;
|
|
9271
9564
|
},
|
|
9272
9565
|
decode(input, length) {
|
|
9273
9566
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9274
9567
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9275
|
-
const message =
|
|
9568
|
+
const message = createBaseProviderView_ConfigEntry();
|
|
9276
9569
|
while (reader.pos < end) {
|
|
9277
9570
|
const tag = reader.uint32();
|
|
9278
9571
|
switch (tag >>> 3) {
|
|
@@ -9287,7 +9580,7 @@ var BackendView_ConfigEntry = {
|
|
|
9287
9580
|
if (tag !== 18) {
|
|
9288
9581
|
break;
|
|
9289
9582
|
}
|
|
9290
|
-
message.value =
|
|
9583
|
+
message.value = reader.string();
|
|
9291
9584
|
continue;
|
|
9292
9585
|
}
|
|
9293
9586
|
}
|
|
@@ -9301,7 +9594,7 @@ var BackendView_ConfigEntry = {
|
|
|
9301
9594
|
fromJSON(object) {
|
|
9302
9595
|
return {
|
|
9303
9596
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
9304
|
-
value: isSet3(object
|
|
9597
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
9305
9598
|
};
|
|
9306
9599
|
},
|
|
9307
9600
|
toJSON(message) {
|
|
@@ -9309,44 +9602,44 @@ var BackendView_ConfigEntry = {
|
|
|
9309
9602
|
if (message.key !== "") {
|
|
9310
9603
|
obj.key = message.key;
|
|
9311
9604
|
}
|
|
9312
|
-
if (message.value !==
|
|
9605
|
+
if (message.value !== "") {
|
|
9313
9606
|
obj.value = message.value;
|
|
9314
9607
|
}
|
|
9315
9608
|
return obj;
|
|
9316
9609
|
},
|
|
9317
9610
|
create(base) {
|
|
9318
|
-
return
|
|
9611
|
+
return ProviderView_ConfigEntry.fromPartial(base ?? {});
|
|
9319
9612
|
},
|
|
9320
9613
|
fromPartial(object) {
|
|
9321
|
-
const message =
|
|
9614
|
+
const message = createBaseProviderView_ConfigEntry();
|
|
9322
9615
|
message.key = object.key ?? "";
|
|
9323
|
-
message.value = object.value ??
|
|
9616
|
+
message.value = object.value ?? "";
|
|
9324
9617
|
return message;
|
|
9325
9618
|
}
|
|
9326
9619
|
};
|
|
9327
|
-
function
|
|
9328
|
-
return {
|
|
9620
|
+
function createBaseBlockView() {
|
|
9621
|
+
return { type: "", labels: [], attributes: [], blocks: [] };
|
|
9329
9622
|
}
|
|
9330
|
-
var
|
|
9623
|
+
var BlockView = {
|
|
9331
9624
|
encode(message, writer = new BinaryWriter4()) {
|
|
9332
|
-
if (message.
|
|
9333
|
-
writer.uint32(10).string(message.
|
|
9625
|
+
if (message.type !== "") {
|
|
9626
|
+
writer.uint32(10).string(message.type);
|
|
9334
9627
|
}
|
|
9335
|
-
|
|
9336
|
-
writer.uint32(18).string(
|
|
9628
|
+
for (const v of message.labels) {
|
|
9629
|
+
writer.uint32(18).string(v);
|
|
9630
|
+
}
|
|
9631
|
+
for (const v of message.attributes) {
|
|
9632
|
+
AttributeView.encode(v, writer.uint32(26).fork()).join();
|
|
9337
9633
|
}
|
|
9338
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
9339
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
9340
|
-
});
|
|
9341
9634
|
for (const v of message.blocks) {
|
|
9342
|
-
|
|
9635
|
+
BlockView.encode(v, writer.uint32(34).fork()).join();
|
|
9343
9636
|
}
|
|
9344
9637
|
return writer;
|
|
9345
9638
|
},
|
|
9346
9639
|
decode(input, length) {
|
|
9347
9640
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9348
9641
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9349
|
-
const message =
|
|
9642
|
+
const message = createBaseBlockView();
|
|
9350
9643
|
while (reader.pos < end) {
|
|
9351
9644
|
const tag = reader.uint32();
|
|
9352
9645
|
switch (tag >>> 3) {
|
|
@@ -9354,31 +9647,28 @@ var ProviderView = {
|
|
|
9354
9647
|
if (tag !== 10) {
|
|
9355
9648
|
break;
|
|
9356
9649
|
}
|
|
9357
|
-
message.
|
|
9650
|
+
message.type = reader.string();
|
|
9358
9651
|
continue;
|
|
9359
9652
|
}
|
|
9360
9653
|
case 2: {
|
|
9361
9654
|
if (tag !== 18) {
|
|
9362
9655
|
break;
|
|
9363
9656
|
}
|
|
9364
|
-
message.
|
|
9657
|
+
message.labels.push(reader.string());
|
|
9365
9658
|
continue;
|
|
9366
9659
|
}
|
|
9367
9660
|
case 3: {
|
|
9368
9661
|
if (tag !== 26) {
|
|
9369
9662
|
break;
|
|
9370
9663
|
}
|
|
9371
|
-
|
|
9372
|
-
if (entry3.value !== void 0) {
|
|
9373
|
-
message.config[entry3.key] = entry3.value;
|
|
9374
|
-
}
|
|
9664
|
+
message.attributes.push(AttributeView.decode(reader, reader.uint32()));
|
|
9375
9665
|
continue;
|
|
9376
9666
|
}
|
|
9377
9667
|
case 4: {
|
|
9378
9668
|
if (tag !== 34) {
|
|
9379
9669
|
break;
|
|
9380
9670
|
}
|
|
9381
|
-
message.blocks.push(
|
|
9671
|
+
message.blocks.push(BlockView.decode(reader, reader.uint32()));
|
|
9382
9672
|
continue;
|
|
9383
9673
|
}
|
|
9384
9674
|
}
|
|
@@ -9391,67 +9681,47 @@ var ProviderView = {
|
|
|
9391
9681
|
},
|
|
9392
9682
|
fromJSON(object) {
|
|
9393
9683
|
return {
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
acc[key] = globalThis.String(value);
|
|
9399
|
-
return acc;
|
|
9400
|
-
},
|
|
9401
|
-
{}
|
|
9402
|
-
) : {},
|
|
9403
|
-
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
9684
|
+
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
9685
|
+
labels: globalThis.Array.isArray(object?.labels) ? object.labels.map((e) => globalThis.String(e)) : [],
|
|
9686
|
+
attributes: globalThis.Array.isArray(object?.attributes) ? object.attributes.map((e) => AttributeView.fromJSON(e)) : [],
|
|
9687
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : []
|
|
9404
9688
|
};
|
|
9405
9689
|
},
|
|
9406
9690
|
toJSON(message) {
|
|
9407
9691
|
const obj = {};
|
|
9408
|
-
if (message.
|
|
9409
|
-
obj.
|
|
9692
|
+
if (message.type !== "") {
|
|
9693
|
+
obj.type = message.type;
|
|
9410
9694
|
}
|
|
9411
|
-
if (message.
|
|
9412
|
-
obj.
|
|
9695
|
+
if (message.labels?.length) {
|
|
9696
|
+
obj.labels = message.labels;
|
|
9413
9697
|
}
|
|
9414
|
-
if (message.
|
|
9415
|
-
|
|
9416
|
-
if (entries.length > 0) {
|
|
9417
|
-
obj.config = {};
|
|
9418
|
-
entries.forEach(([k, v]) => {
|
|
9419
|
-
obj.config[k] = v;
|
|
9420
|
-
});
|
|
9421
|
-
}
|
|
9698
|
+
if (message.attributes?.length) {
|
|
9699
|
+
obj.attributes = message.attributes.map((e) => AttributeView.toJSON(e));
|
|
9422
9700
|
}
|
|
9423
9701
|
if (message.blocks?.length) {
|
|
9424
|
-
obj.blocks = message.blocks.map((e) =>
|
|
9702
|
+
obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
|
|
9425
9703
|
}
|
|
9426
9704
|
return obj;
|
|
9427
9705
|
},
|
|
9428
9706
|
create(base) {
|
|
9429
|
-
return
|
|
9707
|
+
return BlockView.fromPartial(base ?? {});
|
|
9430
9708
|
},
|
|
9431
9709
|
fromPartial(object) {
|
|
9432
|
-
const message =
|
|
9433
|
-
message.
|
|
9434
|
-
message.
|
|
9435
|
-
message.
|
|
9436
|
-
|
|
9437
|
-
if (value !== void 0) {
|
|
9438
|
-
acc[key] = globalThis.String(value);
|
|
9439
|
-
}
|
|
9440
|
-
return acc;
|
|
9441
|
-
},
|
|
9442
|
-
{}
|
|
9443
|
-
);
|
|
9444
|
-
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
9710
|
+
const message = createBaseBlockView();
|
|
9711
|
+
message.type = object.type ?? "";
|
|
9712
|
+
message.labels = object.labels?.map((e) => e) || [];
|
|
9713
|
+
message.attributes = object.attributes?.map((e) => AttributeView.fromPartial(e)) || [];
|
|
9714
|
+
message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
|
|
9445
9715
|
return message;
|
|
9446
9716
|
}
|
|
9447
9717
|
};
|
|
9448
|
-
function
|
|
9449
|
-
return {
|
|
9718
|
+
function createBaseAttributeView() {
|
|
9719
|
+
return { name: "", value: "" };
|
|
9450
9720
|
}
|
|
9451
|
-
var
|
|
9721
|
+
var AttributeView = {
|
|
9452
9722
|
encode(message, writer = new BinaryWriter4()) {
|
|
9453
|
-
if (message.
|
|
9454
|
-
writer.uint32(10).string(message.
|
|
9723
|
+
if (message.name !== "") {
|
|
9724
|
+
writer.uint32(10).string(message.name);
|
|
9455
9725
|
}
|
|
9456
9726
|
if (message.value !== "") {
|
|
9457
9727
|
writer.uint32(18).string(message.value);
|
|
@@ -9461,7 +9731,7 @@ var ProviderView_ConfigEntry = {
|
|
|
9461
9731
|
decode(input, length) {
|
|
9462
9732
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9463
9733
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9464
|
-
const message =
|
|
9734
|
+
const message = createBaseAttributeView();
|
|
9465
9735
|
while (reader.pos < end) {
|
|
9466
9736
|
const tag = reader.uint32();
|
|
9467
9737
|
switch (tag >>> 3) {
|
|
@@ -9469,7 +9739,7 @@ var ProviderView_ConfigEntry = {
|
|
|
9469
9739
|
if (tag !== 10) {
|
|
9470
9740
|
break;
|
|
9471
9741
|
}
|
|
9472
|
-
message.
|
|
9742
|
+
message.name = reader.string();
|
|
9473
9743
|
continue;
|
|
9474
9744
|
}
|
|
9475
9745
|
case 2: {
|
|
@@ -9489,14 +9759,14 @@ var ProviderView_ConfigEntry = {
|
|
|
9489
9759
|
},
|
|
9490
9760
|
fromJSON(object) {
|
|
9491
9761
|
return {
|
|
9492
|
-
|
|
9762
|
+
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
9493
9763
|
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
9494
9764
|
};
|
|
9495
9765
|
},
|
|
9496
9766
|
toJSON(message) {
|
|
9497
9767
|
const obj = {};
|
|
9498
|
-
if (message.
|
|
9499
|
-
obj.
|
|
9768
|
+
if (message.name !== "") {
|
|
9769
|
+
obj.name = message.name;
|
|
9500
9770
|
}
|
|
9501
9771
|
if (message.value !== "") {
|
|
9502
9772
|
obj.value = message.value;
|
|
@@ -9504,11 +9774,11 @@ var ProviderView_ConfigEntry = {
|
|
|
9504
9774
|
return obj;
|
|
9505
9775
|
},
|
|
9506
9776
|
create(base) {
|
|
9507
|
-
return
|
|
9777
|
+
return AttributeView.fromPartial(base ?? {});
|
|
9508
9778
|
},
|
|
9509
9779
|
fromPartial(object) {
|
|
9510
|
-
const message =
|
|
9511
|
-
message.
|
|
9780
|
+
const message = createBaseAttributeView();
|
|
9781
|
+
message.name = object.name ?? "";
|
|
9512
9782
|
message.value = object.value ?? "";
|
|
9513
9783
|
return message;
|
|
9514
9784
|
}
|
|
@@ -10050,6 +10320,21 @@ var LaceEngineDefinition = {
|
|
|
10050
10320
|
}
|
|
10051
10321
|
}
|
|
10052
10322
|
};
|
|
10323
|
+
function bytesFromBase64(b64) {
|
|
10324
|
+
const bin = globalThis.atob(b64);
|
|
10325
|
+
const arr = new Uint8Array(bin.length);
|
|
10326
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
10327
|
+
arr[i] = bin.charCodeAt(i);
|
|
10328
|
+
}
|
|
10329
|
+
return arr;
|
|
10330
|
+
}
|
|
10331
|
+
function base64FromBytes(arr) {
|
|
10332
|
+
const bin = [];
|
|
10333
|
+
arr.forEach((byte) => {
|
|
10334
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
10335
|
+
});
|
|
10336
|
+
return globalThis.btoa(bin.join(""));
|
|
10337
|
+
}
|
|
10053
10338
|
function longToNumber(int64) {
|
|
10054
10339
|
const num = globalThis.Number(int64.toString());
|
|
10055
10340
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
@@ -10264,13 +10549,13 @@ var SERVICE_PATH = "/lace.engine.LaceEngine";
|
|
|
10264
10549
|
var REQUEST_CODECS = new Map(
|
|
10265
10550
|
Object.values(LaceEngineDefinition.methods).map((m) => [
|
|
10266
10551
|
m.name,
|
|
10267
|
-
{ toJSON: m.requestType.toJSON }
|
|
10552
|
+
{ fromPartial: m.requestType.fromPartial, toJSON: m.requestType.toJSON }
|
|
10268
10553
|
])
|
|
10269
10554
|
);
|
|
10270
|
-
function
|
|
10555
|
+
function encodeRequest(method, request) {
|
|
10271
10556
|
const codec = REQUEST_CODECS.get(method);
|
|
10272
10557
|
if (!codec) throw new Error(`EngineCaller: unknown method "${method}"`);
|
|
10273
|
-
return codec;
|
|
10558
|
+
return codec.toJSON(codec.fromPartial(request));
|
|
10274
10559
|
}
|
|
10275
10560
|
var RESPONSE_CODECS = {
|
|
10276
10561
|
Initialize: LaceEngineDefinition.methods.initialize.responseType,
|
|
@@ -10294,7 +10579,7 @@ function connectCaller(options) {
|
|
|
10294
10579
|
const res = await fetchImpl(`${baseUrl}${SERVICE_PATH}/${method}`, {
|
|
10295
10580
|
method: "POST",
|
|
10296
10581
|
headers: { "content-type": "application/json", authorization: `Bearer ${token}` },
|
|
10297
|
-
body: JSON.stringify(
|
|
10582
|
+
body: JSON.stringify(encodeRequest(method, request))
|
|
10298
10583
|
});
|
|
10299
10584
|
const bodyText = await res.text();
|
|
10300
10585
|
if (!res.ok) {
|
|
@@ -10314,7 +10599,7 @@ function connectCaller(options) {
|
|
|
10314
10599
|
return RESPONSE_CODECS[method].fromJSON(json);
|
|
10315
10600
|
}
|
|
10316
10601
|
async function* stream(method, request, signal) {
|
|
10317
|
-
const body = encodeConnectFrame(JSON.stringify(
|
|
10602
|
+
const body = encodeConnectFrame(JSON.stringify(encodeRequest(method, request)));
|
|
10318
10603
|
let res;
|
|
10319
10604
|
try {
|
|
10320
10605
|
res = await fetchImpl(`${baseUrl}${SERVICE_PATH}/${method}`, {
|
|
@@ -10420,7 +10705,7 @@ function bridgeCaller(bridge) {
|
|
|
10420
10705
|
settle: (raw) => resolve(RESPONSE_CODECS[method].fromJSON(raw)),
|
|
10421
10706
|
reject
|
|
10422
10707
|
});
|
|
10423
|
-
bridge.post({ kind: "unary", id, method, request:
|
|
10708
|
+
bridge.post({ kind: "unary", id, method, request: encodeRequest(method, request) });
|
|
10424
10709
|
});
|
|
10425
10710
|
}
|
|
10426
10711
|
function stream(method, request, signal) {
|
|
@@ -10429,7 +10714,7 @@ function bridgeCaller(bridge) {
|
|
|
10429
10714
|
queue.end();
|
|
10430
10715
|
return queue.iterable;
|
|
10431
10716
|
}
|
|
10432
|
-
const body =
|
|
10717
|
+
const body = encodeRequest(method, request);
|
|
10433
10718
|
const id = crypto.randomUUID();
|
|
10434
10719
|
function finish() {
|
|
10435
10720
|
pendingStreams.delete(id);
|
|
@@ -10468,36 +10753,41 @@ import {
|
|
|
10468
10753
|
|
|
10469
10754
|
// src/contracts/commands.gen.ts
|
|
10470
10755
|
var COMMANDS = {
|
|
10471
|
-
"chaos
|
|
10472
|
-
"path": "chaos
|
|
10473
|
-
"positionals": [
|
|
10474
|
-
{
|
|
10475
|
-
"name": "run",
|
|
10476
|
-
"kind": "required"
|
|
10477
|
-
}
|
|
10478
|
-
],
|
|
10756
|
+
"chaos run": {
|
|
10757
|
+
"path": "chaos run",
|
|
10758
|
+
"positionals": [],
|
|
10479
10759
|
"flags": {
|
|
10480
|
-
"
|
|
10760
|
+
"commit": {
|
|
10481
10761
|
"type": "string"
|
|
10482
10762
|
},
|
|
10483
|
-
"
|
|
10763
|
+
"credential": {
|
|
10764
|
+
"type": "string"
|
|
10765
|
+
},
|
|
10766
|
+
"duration": {
|
|
10767
|
+
"type": "string"
|
|
10768
|
+
},
|
|
10769
|
+
"engine": {
|
|
10484
10770
|
"type": "string",
|
|
10485
10771
|
"values": [
|
|
10486
|
-
"
|
|
10487
|
-
"
|
|
10772
|
+
"aws_fis",
|
|
10773
|
+
"gremlin",
|
|
10774
|
+
"litmus_chaos"
|
|
10488
10775
|
]
|
|
10489
10776
|
},
|
|
10490
|
-
"
|
|
10777
|
+
"excludeResourceType": {
|
|
10778
|
+
"type": "stringArray",
|
|
10779
|
+
"repeated": true
|
|
10780
|
+
},
|
|
10781
|
+
"excludeResourceUri": {
|
|
10782
|
+
"type": "stringArray",
|
|
10783
|
+
"repeated": true
|
|
10784
|
+
},
|
|
10785
|
+
"experimentId": {
|
|
10491
10786
|
"type": "string"
|
|
10492
|
-
}
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
},
|
|
10497
|
-
"chaos list": {
|
|
10498
|
-
"path": "chaos list",
|
|
10499
|
-
"positionals": [],
|
|
10500
|
-
"flags": {
|
|
10787
|
+
},
|
|
10788
|
+
"file": {
|
|
10789
|
+
"type": "string"
|
|
10790
|
+
},
|
|
10501
10791
|
"org": {
|
|
10502
10792
|
"type": "string"
|
|
10503
10793
|
},
|
|
@@ -10508,39 +10798,34 @@ var COMMANDS = {
|
|
|
10508
10798
|
"json"
|
|
10509
10799
|
]
|
|
10510
10800
|
},
|
|
10511
|
-
"
|
|
10512
|
-
"type": "string",
|
|
10513
|
-
"required": true
|
|
10514
|
-
},
|
|
10515
|
-
"team": {
|
|
10801
|
+
"prUrl": {
|
|
10516
10802
|
"type": "string"
|
|
10517
|
-
}
|
|
10518
|
-
},
|
|
10519
|
-
"hidden": false,
|
|
10520
|
-
"yes": false
|
|
10521
|
-
},
|
|
10522
|
-
"chaos run": {
|
|
10523
|
-
"path": "chaos run",
|
|
10524
|
-
"positionals": [],
|
|
10525
|
-
"flags": {
|
|
10526
|
-
"chaosBinding": {
|
|
10527
|
-
"type": "string",
|
|
10528
|
-
"required": true
|
|
10529
10803
|
},
|
|
10530
|
-
"
|
|
10804
|
+
"ref": {
|
|
10531
10805
|
"type": "string"
|
|
10532
10806
|
},
|
|
10533
|
-
"
|
|
10807
|
+
"resourceType": {
|
|
10808
|
+
"type": "stringArray",
|
|
10809
|
+
"repeated": true
|
|
10810
|
+
},
|
|
10811
|
+
"selector": {
|
|
10534
10812
|
"type": "string",
|
|
10535
10813
|
"values": [
|
|
10536
|
-
"
|
|
10537
|
-
"
|
|
10814
|
+
"first",
|
|
10815
|
+
"random"
|
|
10538
10816
|
]
|
|
10539
10817
|
},
|
|
10540
10818
|
"stack": {
|
|
10541
10819
|
"type": "string",
|
|
10542
10820
|
"required": true
|
|
10543
10821
|
},
|
|
10822
|
+
"tag": {
|
|
10823
|
+
"type": "string"
|
|
10824
|
+
},
|
|
10825
|
+
"tagFilter": {
|
|
10826
|
+
"type": "stringArray",
|
|
10827
|
+
"repeated": true
|
|
10828
|
+
},
|
|
10544
10829
|
"team": {
|
|
10545
10830
|
"type": "string"
|
|
10546
10831
|
}
|
|
@@ -11785,8 +12070,6 @@ var moduleValidateDeviationSchema = z.object({
|
|
|
11785
12070
|
backendFindings: z.array(z.object({ file: z.string(), line: z.number(), kind: z.string() })),
|
|
11786
12071
|
sharedLocalSource: z.boolean(),
|
|
11787
12072
|
sharedLocalFindings: z.array(z.unknown()),
|
|
11788
|
-
uncomposable: z.boolean(),
|
|
11789
|
-
uncomposableReason: z.string(),
|
|
11790
12073
|
registryVersionNotExact: z.array(z.unknown()),
|
|
11791
12074
|
childNotLaceForm: z.array(z.unknown())
|
|
11792
12075
|
});
|
|
@@ -11804,7 +12087,7 @@ var commandDiagnosticSchema = z.object({
|
|
|
11804
12087
|
var moduleValidateResultSchema = z.object({
|
|
11805
12088
|
root: z.string().min(1).optional(),
|
|
11806
12089
|
treeHash: z.string().min(1).optional(),
|
|
11807
|
-
verdict: z.enum(["already-lace-style", "representable-but-transpilable", "lossy"]).optional(),
|
|
12090
|
+
verdict: z.enum(["already-lace-style", "representable-but-transpilable", "uncomposable", "lossy"]).optional(),
|
|
11808
12091
|
residuals: z.array(
|
|
11809
12092
|
z.object({
|
|
11810
12093
|
construct: z.string(),
|
|
@@ -11966,8 +12249,6 @@ var stackSchema = z.object({
|
|
|
11966
12249
|
lastDriftStale: z.boolean(),
|
|
11967
12250
|
lastDriftConfirmedAt: z.string().nullable(),
|
|
11968
12251
|
lastDriftUndeterminedReason: z.string().nullable(),
|
|
11969
|
-
chaosLockedByRunId: z.string().nullable(),
|
|
11970
|
-
chaosLockedAt: z.string().nullable(),
|
|
11971
12252
|
createdBy: z.string(),
|
|
11972
12253
|
createdAt: z.string(),
|
|
11973
12254
|
updatedAt: z.string(),
|
|
@@ -12083,23 +12364,47 @@ var runListSchema = z.object({
|
|
|
12083
12364
|
nextCursor: z.string().nullable(),
|
|
12084
12365
|
hasMore: z.boolean()
|
|
12085
12366
|
});
|
|
12086
|
-
var chaosListSchema = z.object({
|
|
12087
|
-
stackId: z.string(),
|
|
12088
|
-
connectionBlock: z.unknown().nullable(),
|
|
12089
|
-
experiments: z.array(
|
|
12090
|
-
z.object({
|
|
12091
|
-
bindingId: z.string(),
|
|
12092
|
-
name: z.string(),
|
|
12093
|
-
assertionCount: z.number(),
|
|
12094
|
-
engine: z.string()
|
|
12095
|
-
})
|
|
12096
|
-
)
|
|
12097
|
-
});
|
|
12098
12367
|
var planSummarySchema = z.object({
|
|
12099
12368
|
resourceAdd: z.number(),
|
|
12100
12369
|
resourceChange: z.number(),
|
|
12101
12370
|
resourceDestroy: z.number()
|
|
12102
12371
|
});
|
|
12372
|
+
var previewAdvisorySchema = z.object({
|
|
12373
|
+
id: z.string(),
|
|
12374
|
+
manifestation: z.string(),
|
|
12375
|
+
emittedByInstallId: z.string(),
|
|
12376
|
+
emittedByDisplayName: z.string(),
|
|
12377
|
+
confidenceScore: z.number(),
|
|
12378
|
+
producedAt: z.string(),
|
|
12379
|
+
outputJson: z.unknown()
|
|
12380
|
+
});
|
|
12381
|
+
var previewEntrySchema = z.discriminatedUnion("kind", [
|
|
12382
|
+
z.object({
|
|
12383
|
+
kind: z.literal("consensus"),
|
|
12384
|
+
subject: z.object({
|
|
12385
|
+
resourceUri: z.string(),
|
|
12386
|
+
riskCategory: z.string(),
|
|
12387
|
+
remediationKind: z.string(),
|
|
12388
|
+
remediationFingerprint: z.string()
|
|
12389
|
+
}),
|
|
12390
|
+
advisories: z.array(previewAdvisorySchema).min(1),
|
|
12391
|
+
agentCount: z.number()
|
|
12392
|
+
}),
|
|
12393
|
+
z.object({
|
|
12394
|
+
kind: z.literal("disagreement"),
|
|
12395
|
+
subject: z.object({
|
|
12396
|
+
resourceUri: z.string(),
|
|
12397
|
+
riskCategory: z.string(),
|
|
12398
|
+
remediationKind: z.string()
|
|
12399
|
+
}),
|
|
12400
|
+
lanes: z.array(
|
|
12401
|
+
z.object({
|
|
12402
|
+
remediationFingerprint: z.string(),
|
|
12403
|
+
advisories: z.array(previewAdvisorySchema).min(1)
|
|
12404
|
+
})
|
|
12405
|
+
).min(2)
|
|
12406
|
+
})
|
|
12407
|
+
]);
|
|
12103
12408
|
var stackPreviewSchema = z.object({
|
|
12104
12409
|
stack: z.object({ id: z.string(), slug: z.string() }),
|
|
12105
12410
|
treeHash: z.string(),
|
|
@@ -12111,30 +12416,55 @@ var stackPreviewSchema = z.object({
|
|
|
12111
12416
|
rulesFired: z.array(z.string()),
|
|
12112
12417
|
reason: z.string(),
|
|
12113
12418
|
approvalMode: z.string().nullable(),
|
|
12114
|
-
isAuthoringTimePreview: z.boolean()
|
|
12115
|
-
|
|
12419
|
+
isAuthoringTimePreview: z.boolean(),
|
|
12420
|
+
bindings: z.array(
|
|
12421
|
+
z.object({
|
|
12422
|
+
policyId: z.string(),
|
|
12423
|
+
name: z.string(),
|
|
12424
|
+
handler: z.string(),
|
|
12425
|
+
mode: z.string(),
|
|
12426
|
+
decision: z.string(),
|
|
12427
|
+
reason: z.string(),
|
|
12428
|
+
rulesFired: z.array(z.string()),
|
|
12429
|
+
approvalMode: z.string().nullable()
|
|
12430
|
+
})
|
|
12431
|
+
)
|
|
12432
|
+
}).nullable(),
|
|
12433
|
+
// What the Preview shows of the Agents bound at it: the curated queue of
|
|
12434
|
+
// their Advisories about this tree, how many were recorded under the
|
|
12435
|
+
// Preview's floor, how many bound Agents have not answered, and how many
|
|
12436
|
+
// Agent Bindings the preview activated.
|
|
12437
|
+
advisories: z.object({
|
|
12438
|
+
queue: z.object({
|
|
12439
|
+
manifestation: z.literal("preview"),
|
|
12440
|
+
floor: z.number(),
|
|
12441
|
+
entries: z.array(previewEntrySchema),
|
|
12442
|
+
belowFloor: z.number()
|
|
12443
|
+
}),
|
|
12444
|
+
truncated: z.boolean(),
|
|
12445
|
+
pending: z.number(),
|
|
12446
|
+
bound: z.number().optional()
|
|
12447
|
+
})
|
|
12116
12448
|
});
|
|
12117
|
-
var
|
|
12449
|
+
var gateChangeRequestSchema = z.object({
|
|
12118
12450
|
id: z.string(),
|
|
12119
|
-
orgId: z.string(),
|
|
12120
|
-
teamId: z.string(),
|
|
12121
|
-
runId: z.string(),
|
|
12122
|
-
bindingId: z.string().nullable(),
|
|
12123
|
-
invocationId: z.string().nullable(),
|
|
12124
12451
|
state: z.string(),
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12452
|
+
requirements: z.array(
|
|
12453
|
+
z.object({
|
|
12454
|
+
id: z.string(),
|
|
12455
|
+
state: z.string(),
|
|
12456
|
+
decidedBy: z.enum(["lace", "ecm"])
|
|
12457
|
+
})
|
|
12458
|
+
),
|
|
12459
|
+
records: z.array(
|
|
12460
|
+
z.object({
|
|
12461
|
+
externalSystemId: z.string(),
|
|
12462
|
+
kind: z.string(),
|
|
12463
|
+
externalRef: z.string().nullable(),
|
|
12464
|
+
externalUrl: z.string().nullable(),
|
|
12465
|
+
state: z.string().nullable()
|
|
12466
|
+
})
|
|
12467
|
+
)
|
|
12138
12468
|
});
|
|
12139
12469
|
var runEventSchema = z.discriminatedUnion("type", [
|
|
12140
12470
|
z.object({ type: z.literal("log"), text: z.string() }),
|
|
@@ -12142,8 +12472,11 @@ var runEventSchema = z.discriminatedUnion("type", [
|
|
|
12142
12472
|
z.object({
|
|
12143
12473
|
type: z.literal("gate"),
|
|
12144
12474
|
resolution: z.object({ mode: z.string(), reason: z.string().optional() }),
|
|
12145
|
-
changeRequest:
|
|
12146
|
-
})
|
|
12475
|
+
changeRequest: gateChangeRequestSchema.nullable()
|
|
12476
|
+
}).refine(
|
|
12477
|
+
(gate) => gate.resolution.mode === "awaiting_approval" === (gate.changeRequest !== null),
|
|
12478
|
+
{ message: "a gate event carries a change request exactly when it holds the Run" }
|
|
12479
|
+
),
|
|
12147
12480
|
z.object({
|
|
12148
12481
|
type: z.literal("result"),
|
|
12149
12482
|
run: runSchema,
|
|
@@ -12251,7 +12584,6 @@ var SCHEMAS = {
|
|
|
12251
12584
|
"stack describe": stackDescribeSchema,
|
|
12252
12585
|
"policy list": policyListSchema,
|
|
12253
12586
|
"run list": runListSchema,
|
|
12254
|
-
"chaos list": chaosListSchema,
|
|
12255
12587
|
"stack preview": stackPreviewSchema,
|
|
12256
12588
|
"stack apply": runEventSchema,
|
|
12257
12589
|
"stack destroy": runEventSchema,
|
|
@@ -12841,6 +13173,18 @@ var MODULE_COMMAND_ACTIONS = [
|
|
|
12841
13173
|
requiredPorts: ["commands"],
|
|
12842
13174
|
requiredContext: ["root"],
|
|
12843
13175
|
binding: convert
|
|
13176
|
+
},
|
|
13177
|
+
// The refused-tf banner's one action while the tree is out of lace shape:
|
|
13178
|
+
// the same `module convert` the toolbar runs. The engine re-derives the
|
|
13179
|
+
// tree it writes, which accepts it and lifts the lock.
|
|
13180
|
+
{
|
|
13181
|
+
id: "convert-refused",
|
|
13182
|
+
label: "Convert",
|
|
13183
|
+
icon: "convert",
|
|
13184
|
+
placement: { row: "source-refused" },
|
|
13185
|
+
requiredPorts: ["commands"],
|
|
13186
|
+
requiredContext: ["root", "needsConversion"],
|
|
13187
|
+
binding: convert
|
|
12844
13188
|
}
|
|
12845
13189
|
];
|
|
12846
13190
|
var STACK_COMMAND_ACTIONS = [
|
|
@@ -12926,6 +13270,10 @@ var CORE_COMMAND_ACTIONS = [
|
|
|
12926
13270
|
];
|
|
12927
13271
|
|
|
12928
13272
|
// src/core/diagnostics.ts
|
|
13273
|
+
var NOT_LACE_SHAPE = "not_lace_shape";
|
|
13274
|
+
function holdsLaceShapeRefusal(diagnostics) {
|
|
13275
|
+
return diagnostics.some((d) => d.code === NOT_LACE_SHAPE);
|
|
13276
|
+
}
|
|
12929
13277
|
function findingKey(d) {
|
|
12930
13278
|
return JSON.stringify([
|
|
12931
13279
|
d.file,
|
|
@@ -13059,10 +13407,10 @@ function reduceRun(prev, token, event) {
|
|
|
13059
13407
|
const lastLog = event.type === "log" ? event.text : carried?.lastLog ?? null;
|
|
13060
13408
|
const phases = event.type === "phase" ? withPhase(carried?.phases ?? [], event.name) : carried?.phases ?? [];
|
|
13061
13409
|
const submitted = carried?.submitted || event.type === "phase" && event.name === "submit";
|
|
13062
|
-
if (event.type === "gate" && event.
|
|
13410
|
+
if (event.type === "gate" && event.changeRequest !== null) {
|
|
13063
13411
|
return {
|
|
13064
13412
|
token,
|
|
13065
|
-
outcome: { kind: "awaiting-approval",
|
|
13413
|
+
outcome: { kind: "awaiting-approval", changeRequest: event.changeRequest },
|
|
13066
13414
|
lastLog,
|
|
13067
13415
|
submitted,
|
|
13068
13416
|
phases: closePhases(phases)
|
|
@@ -13242,6 +13590,7 @@ var CONTEXT_NEEDS = {
|
|
|
13242
13590
|
resolved: "no open Keep or Reload conflict",
|
|
13243
13591
|
conflict: "an open Keep or Reload conflict",
|
|
13244
13592
|
sourceRefused: "the source-refused lock",
|
|
13593
|
+
needsConversion: "a tree that needs conversion",
|
|
13245
13594
|
"selection.node": "a selected node",
|
|
13246
13595
|
"selection.edge": "a selected connection",
|
|
13247
13596
|
diagnostics: "diagnostics to show",
|
|
@@ -13266,6 +13615,8 @@ function keySatisfied(ctx, key) {
|
|
|
13266
13615
|
if (key === "resolved") return ctx.view !== void 0 && ctx.view.conflict === void 0;
|
|
13267
13616
|
if (key === "conflict") return ctx.view?.conflict !== void 0;
|
|
13268
13617
|
if (key === "sourceRefused") return ctx.sourceRefused === true;
|
|
13618
|
+
if (key === "needsConversion")
|
|
13619
|
+
return ctx.sourceRefused === true && holdsLaceShapeRefusal(ctx.diagnostics ?? []);
|
|
13269
13620
|
if (key === "selection.node")
|
|
13270
13621
|
return ctx.selection !== void 0 && ctx.selection.nodes.length > 0;
|
|
13271
13622
|
if (key === "selection.edge") return ctx.selection !== void 0 && ctx.selection.edge !== null;
|
|
@@ -13694,6 +14045,8 @@ function autosave(source, save, policy, report) {
|
|
|
13694
14045
|
}
|
|
13695
14046
|
|
|
13696
14047
|
export {
|
|
14048
|
+
uniqueDiagnostics,
|
|
14049
|
+
diagnosticsOf,
|
|
13697
14050
|
keySatisfied,
|
|
13698
14051
|
disabledReason,
|
|
13699
14052
|
resolveContributions,
|
|
@@ -13718,8 +14071,6 @@ export {
|
|
|
13718
14071
|
MODULE_COMMAND_ACTIONS,
|
|
13719
14072
|
CORE_COMMAND_ACTIONS,
|
|
13720
14073
|
isPlainObject,
|
|
13721
|
-
uniqueDiagnostics,
|
|
13722
|
-
diagnosticsOf,
|
|
13723
14074
|
EMPTY_REPORT_FOLD,
|
|
13724
14075
|
foldReport,
|
|
13725
14076
|
currentReport,
|
|
@@ -13740,4 +14091,4 @@ export {
|
|
|
13740
14091
|
AutosaveEndedError,
|
|
13741
14092
|
autosave
|
|
13742
14093
|
};
|
|
13743
|
-
//# sourceMappingURL=chunk-
|
|
14094
|
+
//# sourceMappingURL=chunk-GV2FO3E2.mjs.map
|