@lace-cloud/host 0.21.1 → 0.22.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.mjs CHANGED
@@ -2839,7 +2839,7 @@ var ModuleReference = {
2839
2839
  }
2840
2840
  };
2841
2841
  function createBaseTerraformBlock() {
2842
- return { required_version: "", required_providers: {}, backend: void 0 };
2842
+ return { required_version: "", required_providers: {} };
2843
2843
  }
2844
2844
  var TerraformBlock = {
2845
2845
  encode(message, writer = new BinaryWriter3()) {
@@ -2849,9 +2849,6 @@ var TerraformBlock = {
2849
2849
  globalThis.Object.entries(message.required_providers).forEach(([key, value]) => {
2850
2850
  TerraformBlock_RequiredProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
2851
2851
  });
2852
- if (message.backend !== void 0) {
2853
- BackendConfig.encode(message.backend, writer.uint32(26).fork()).join();
2854
- }
2855
2852
  return writer;
2856
2853
  },
2857
2854
  decode(input, length) {
@@ -2878,13 +2875,6 @@ var TerraformBlock = {
2878
2875
  }
2879
2876
  continue;
2880
2877
  }
2881
- case 3: {
2882
- if (tag !== 26) {
2883
- break;
2884
- }
2885
- message.backend = BackendConfig.decode(reader, reader.uint32());
2886
- continue;
2887
- }
2888
2878
  }
2889
2879
  if ((tag & 7) === 4 || tag === 0) {
2890
2880
  break;
@@ -2908,8 +2898,7 @@ var TerraformBlock = {
2908
2898
  return acc;
2909
2899
  },
2910
2900
  {}
2911
- ) : {},
2912
- backend: isSet2(object.backend) ? BackendConfig.fromJSON(object.backend) : void 0
2901
+ ) : {}
2913
2902
  };
2914
2903
  },
2915
2904
  toJSON(message) {
@@ -2926,9 +2915,6 @@ var TerraformBlock = {
2926
2915
  });
2927
2916
  }
2928
2917
  }
2929
- if (message.backend !== void 0) {
2930
- obj.backend = BackendConfig.toJSON(message.backend);
2931
- }
2932
2918
  return obj;
2933
2919
  },
2934
2920
  create(base) {
@@ -2946,7 +2932,6 @@ var TerraformBlock = {
2946
2932
  },
2947
2933
  {}
2948
2934
  );
2949
- message.backend = object.backend !== void 0 && object.backend !== null ? BackendConfig.fromPartial(object.backend) : void 0;
2950
2935
  return message;
2951
2936
  }
2952
2937
  };
@@ -3101,167 +3086,6 @@ var ProviderRequirement = {
3101
3086
  return message;
3102
3087
  }
3103
3088
  };
3104
- function createBaseBackendConfig() {
3105
- return { type: "", config: {} };
3106
- }
3107
- var BackendConfig = {
3108
- encode(message, writer = new BinaryWriter3()) {
3109
- if (message.type !== "") {
3110
- writer.uint32(10).string(message.type);
3111
- }
3112
- globalThis.Object.entries(message.config).forEach(([key, value]) => {
3113
- if (value !== void 0) {
3114
- BackendConfig_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
3115
- }
3116
- });
3117
- return writer;
3118
- },
3119
- decode(input, length) {
3120
- const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
3121
- const end = length === void 0 ? reader.len : reader.pos + length;
3122
- const message = createBaseBackendConfig();
3123
- while (reader.pos < end) {
3124
- const tag = reader.uint32();
3125
- switch (tag >>> 3) {
3126
- case 1: {
3127
- if (tag !== 10) {
3128
- break;
3129
- }
3130
- message.type = reader.string();
3131
- continue;
3132
- }
3133
- case 2: {
3134
- if (tag !== 18) {
3135
- break;
3136
- }
3137
- const entry2 = BackendConfig_ConfigEntry.decode(reader, reader.uint32());
3138
- if (entry2.value !== void 0) {
3139
- message.config[entry2.key] = entry2.value;
3140
- }
3141
- continue;
3142
- }
3143
- }
3144
- if ((tag & 7) === 4 || tag === 0) {
3145
- break;
3146
- }
3147
- reader.skip(tag & 7);
3148
- }
3149
- return message;
3150
- },
3151
- fromJSON(object) {
3152
- return {
3153
- type: isSet2(object.type) ? globalThis.String(object.type) : "",
3154
- config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
3155
- (acc, [key, value]) => {
3156
- acc[key] = value;
3157
- return acc;
3158
- },
3159
- {}
3160
- ) : {}
3161
- };
3162
- },
3163
- toJSON(message) {
3164
- const obj = {};
3165
- if (message.type !== "") {
3166
- obj.type = message.type;
3167
- }
3168
- if (message.config) {
3169
- const entries = globalThis.Object.entries(message.config);
3170
- if (entries.length > 0) {
3171
- obj.config = {};
3172
- entries.forEach(([k, v]) => {
3173
- obj.config[k] = v;
3174
- });
3175
- }
3176
- }
3177
- return obj;
3178
- },
3179
- create(base) {
3180
- return BackendConfig.fromPartial(base ?? {});
3181
- },
3182
- fromPartial(object) {
3183
- const message = createBaseBackendConfig();
3184
- message.type = object.type ?? "";
3185
- message.config = globalThis.Object.entries(object.config ?? {}).reduce(
3186
- (acc, [key, value]) => {
3187
- if (value !== void 0) {
3188
- acc[key] = value;
3189
- }
3190
- return acc;
3191
- },
3192
- {}
3193
- );
3194
- return message;
3195
- }
3196
- };
3197
- function createBaseBackendConfig_ConfigEntry() {
3198
- return { key: "", value: void 0 };
3199
- }
3200
- var BackendConfig_ConfigEntry = {
3201
- encode(message, writer = new BinaryWriter3()) {
3202
- if (message.key !== "") {
3203
- writer.uint32(10).string(message.key);
3204
- }
3205
- if (message.value !== void 0) {
3206
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
3207
- }
3208
- return writer;
3209
- },
3210
- decode(input, length) {
3211
- const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
3212
- const end = length === void 0 ? reader.len : reader.pos + length;
3213
- const message = createBaseBackendConfig_ConfigEntry();
3214
- while (reader.pos < end) {
3215
- const tag = reader.uint32();
3216
- switch (tag >>> 3) {
3217
- case 1: {
3218
- if (tag !== 10) {
3219
- break;
3220
- }
3221
- message.key = reader.string();
3222
- continue;
3223
- }
3224
- case 2: {
3225
- if (tag !== 18) {
3226
- break;
3227
- }
3228
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
3229
- continue;
3230
- }
3231
- }
3232
- if ((tag & 7) === 4 || tag === 0) {
3233
- break;
3234
- }
3235
- reader.skip(tag & 7);
3236
- }
3237
- return message;
3238
- },
3239
- fromJSON(object) {
3240
- return {
3241
- key: isSet2(object.key) ? globalThis.String(object.key) : "",
3242
- value: isSet2(object?.value) ? object.value : void 0
3243
- };
3244
- },
3245
- toJSON(message) {
3246
- const obj = {};
3247
- if (message.key !== "") {
3248
- obj.key = message.key;
3249
- }
3250
- if (message.value !== void 0) {
3251
- obj.value = message.value;
3252
- }
3253
- return obj;
3254
- },
3255
- create(base) {
3256
- return BackendConfig_ConfigEntry.fromPartial(base ?? {});
3257
- },
3258
- fromPartial(object) {
3259
- const message = createBaseBackendConfig_ConfigEntry();
3260
- message.key = object.key ?? "";
3261
- message.value = object.value ?? void 0;
3262
- return message;
3263
- }
3264
- };
3265
3089
  function createBaseProviderConfig() {
3266
3090
  return { name: "", alias: "", config: {}, blocks: [] };
3267
3091
  }
@@ -5928,13 +5752,16 @@ var UngroupAction = {
5928
5752
  }
5929
5753
  };
5930
5754
  function createBaseSetVariablesAction() {
5931
- return { variables: [] };
5755
+ return { variables: [], scope: "" };
5932
5756
  }
5933
5757
  var SetVariablesAction = {
5934
5758
  encode(message, writer = new BinaryWriter4()) {
5935
5759
  for (const v of message.variables) {
5936
5760
  InputDef2.encode(v, writer.uint32(10).fork()).join();
5937
5761
  }
5762
+ if (message.scope !== "") {
5763
+ writer.uint32(18).string(message.scope);
5764
+ }
5938
5765
  return writer;
5939
5766
  },
5940
5767
  decode(input, length) {
@@ -5951,6 +5778,13 @@ var SetVariablesAction = {
5951
5778
  message.variables.push(InputDef2.decode(reader, reader.uint32()));
5952
5779
  continue;
5953
5780
  }
5781
+ case 2: {
5782
+ if (tag !== 18) {
5783
+ break;
5784
+ }
5785
+ message.scope = reader.string();
5786
+ continue;
5787
+ }
5954
5788
  }
5955
5789
  if ((tag & 7) === 4 || tag === 0) {
5956
5790
  break;
@@ -5961,7 +5795,8 @@ var SetVariablesAction = {
5961
5795
  },
5962
5796
  fromJSON(object) {
5963
5797
  return {
5964
- variables: globalThis.Array.isArray(object?.variables) ? object.variables.map((e) => InputDef2.fromJSON(e)) : []
5798
+ variables: globalThis.Array.isArray(object?.variables) ? object.variables.map((e) => InputDef2.fromJSON(e)) : [],
5799
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
5965
5800
  };
5966
5801
  },
5967
5802
  toJSON(message) {
@@ -5969,6 +5804,9 @@ var SetVariablesAction = {
5969
5804
  if (message.variables?.length) {
5970
5805
  obj.variables = message.variables.map((e) => InputDef2.toJSON(e));
5971
5806
  }
5807
+ if (message.scope !== "") {
5808
+ obj.scope = message.scope;
5809
+ }
5972
5810
  return obj;
5973
5811
  },
5974
5812
  create(base) {
@@ -5977,11 +5815,12 @@ var SetVariablesAction = {
5977
5815
  fromPartial(object) {
5978
5816
  const message = createBaseSetVariablesAction();
5979
5817
  message.variables = object.variables?.map((e) => InputDef2.fromPartial(e)) || [];
5818
+ message.scope = object.scope ?? "";
5980
5819
  return message;
5981
5820
  }
5982
5821
  };
5983
5822
  function createBaseSetExportsAction() {
5984
- return { outputs: [], output_defs: [] };
5823
+ return { outputs: [], output_defs: [], scope: "" };
5985
5824
  }
5986
5825
  var SetExportsAction = {
5987
5826
  encode(message, writer = new BinaryWriter4()) {
@@ -5991,6 +5830,9 @@ var SetExportsAction = {
5991
5830
  for (const v of message.output_defs) {
5992
5831
  OutputDef2.encode(v, writer.uint32(18).fork()).join();
5993
5832
  }
5833
+ if (message.scope !== "") {
5834
+ writer.uint32(26).string(message.scope);
5835
+ }
5994
5836
  return writer;
5995
5837
  },
5996
5838
  decode(input, length) {
@@ -6014,6 +5856,13 @@ var SetExportsAction = {
6014
5856
  message.output_defs.push(OutputDef2.decode(reader, reader.uint32()));
6015
5857
  continue;
6016
5858
  }
5859
+ case 3: {
5860
+ if (tag !== 26) {
5861
+ break;
5862
+ }
5863
+ message.scope = reader.string();
5864
+ continue;
5865
+ }
6017
5866
  }
6018
5867
  if ((tag & 7) === 4 || tag === 0) {
6019
5868
  break;
@@ -6025,7 +5874,8 @@ var SetExportsAction = {
6025
5874
  fromJSON(object) {
6026
5875
  return {
6027
5876
  outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => OutputExportEntry.fromJSON(e)) : [],
6028
- 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)) : []
5877
+ 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)) : [],
5878
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6029
5879
  };
6030
5880
  },
6031
5881
  toJSON(message) {
@@ -6036,6 +5886,9 @@ var SetExportsAction = {
6036
5886
  if (message.output_defs?.length) {
6037
5887
  obj.outputDefs = message.output_defs.map((e) => OutputDef2.toJSON(e));
6038
5888
  }
5889
+ if (message.scope !== "") {
5890
+ obj.scope = message.scope;
5891
+ }
6039
5892
  return obj;
6040
5893
  },
6041
5894
  create(base) {
@@ -6045,22 +5898,20 @@ var SetExportsAction = {
6045
5898
  const message = createBaseSetExportsAction();
6046
5899
  message.outputs = object.outputs?.map((e) => OutputExportEntry.fromPartial(e)) || [];
6047
5900
  message.output_defs = object.output_defs?.map((e) => OutputDef2.fromPartial(e)) || [];
5901
+ message.scope = object.scope ?? "";
6048
5902
  return message;
6049
5903
  }
6050
5904
  };
6051
5905
  function createBaseOutputExportEntry() {
6052
- return { name: "", source_instance: "", source_output: "" };
5906
+ return { name: "", value: "" };
6053
5907
  }
6054
5908
  var OutputExportEntry = {
6055
5909
  encode(message, writer = new BinaryWriter4()) {
6056
5910
  if (message.name !== "") {
6057
5911
  writer.uint32(10).string(message.name);
6058
5912
  }
6059
- if (message.source_instance !== "") {
6060
- writer.uint32(18).string(message.source_instance);
6061
- }
6062
- if (message.source_output !== "") {
6063
- writer.uint32(26).string(message.source_output);
5913
+ if (message.value !== "") {
5914
+ writer.uint32(34).string(message.value);
6064
5915
  }
6065
5916
  return writer;
6066
5917
  },
@@ -6078,18 +5929,11 @@ var OutputExportEntry = {
6078
5929
  message.name = reader.string();
6079
5930
  continue;
6080
5931
  }
6081
- case 2: {
6082
- if (tag !== 18) {
6083
- break;
6084
- }
6085
- message.source_instance = reader.string();
6086
- continue;
6087
- }
6088
- case 3: {
6089
- if (tag !== 26) {
5932
+ case 4: {
5933
+ if (tag !== 34) {
6090
5934
  break;
6091
5935
  }
6092
- message.source_output = reader.string();
5936
+ message.value = reader.string();
6093
5937
  continue;
6094
5938
  }
6095
5939
  }
@@ -6103,8 +5947,7 @@ var OutputExportEntry = {
6103
5947
  fromJSON(object) {
6104
5948
  return {
6105
5949
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
6106
- source_instance: isSet3(object.sourceInstance) ? globalThis.String(object.sourceInstance) : isSet3(object.source_instance) ? globalThis.String(object.source_instance) : "",
6107
- source_output: isSet3(object.sourceOutput) ? globalThis.String(object.sourceOutput) : isSet3(object.source_output) ? globalThis.String(object.source_output) : ""
5950
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
6108
5951
  };
6109
5952
  },
6110
5953
  toJSON(message) {
@@ -6112,11 +5955,8 @@ var OutputExportEntry = {
6112
5955
  if (message.name !== "") {
6113
5956
  obj.name = message.name;
6114
5957
  }
6115
- if (message.source_instance !== "") {
6116
- obj.sourceInstance = message.source_instance;
6117
- }
6118
- if (message.source_output !== "") {
6119
- obj.sourceOutput = message.source_output;
5958
+ if (message.value !== "") {
5959
+ obj.value = message.value;
6120
5960
  }
6121
5961
  return obj;
6122
5962
  },
@@ -6126,13 +5966,12 @@ var OutputExportEntry = {
6126
5966
  fromPartial(object) {
6127
5967
  const message = createBaseOutputExportEntry();
6128
5968
  message.name = object.name ?? "";
6129
- message.source_instance = object.source_instance ?? "";
6130
- message.source_output = object.source_output ?? "";
5969
+ message.value = object.value ?? "";
6131
5970
  return message;
6132
5971
  }
6133
5972
  };
6134
5973
  function createBaseSetTerraformAction() {
6135
- return { required_version: "", required_providers: [], backend: void 0 };
5974
+ return { required_version: "", required_providers: [], scope: "" };
6136
5975
  }
6137
5976
  var SetTerraformAction = {
6138
5977
  encode(message, writer = new BinaryWriter4()) {
@@ -6142,8 +5981,8 @@ var SetTerraformAction = {
6142
5981
  for (const v of message.required_providers) {
6143
5982
  ProviderReqView.encode(v, writer.uint32(18).fork()).join();
6144
5983
  }
6145
- if (message.backend !== void 0) {
6146
- BackendView.encode(message.backend, writer.uint32(26).fork()).join();
5984
+ if (message.scope !== "") {
5985
+ writer.uint32(34).string(message.scope);
6147
5986
  }
6148
5987
  return writer;
6149
5988
  },
@@ -6168,11 +6007,11 @@ var SetTerraformAction = {
6168
6007
  message.required_providers.push(ProviderReqView.decode(reader, reader.uint32()));
6169
6008
  continue;
6170
6009
  }
6171
- case 3: {
6172
- if (tag !== 26) {
6010
+ case 4: {
6011
+ if (tag !== 34) {
6173
6012
  break;
6174
6013
  }
6175
- message.backend = BackendView.decode(reader, reader.uint32());
6014
+ message.scope = reader.string();
6176
6015
  continue;
6177
6016
  }
6178
6017
  }
@@ -6187,7 +6026,7 @@ var SetTerraformAction = {
6187
6026
  return {
6188
6027
  required_version: isSet3(object.requiredVersion) ? globalThis.String(object.requiredVersion) : isSet3(object.required_version) ? globalThis.String(object.required_version) : "",
6189
6028
  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)) : [],
6190
- backend: isSet3(object.backend) ? BackendView.fromJSON(object.backend) : void 0
6029
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6191
6030
  };
6192
6031
  },
6193
6032
  toJSON(message) {
@@ -6198,8 +6037,8 @@ var SetTerraformAction = {
6198
6037
  if (message.required_providers?.length) {
6199
6038
  obj.requiredProviders = message.required_providers.map((e) => ProviderReqView.toJSON(e));
6200
6039
  }
6201
- if (message.backend !== void 0) {
6202
- obj.backend = BackendView.toJSON(message.backend);
6040
+ if (message.scope !== "") {
6041
+ obj.scope = message.scope;
6203
6042
  }
6204
6043
  return obj;
6205
6044
  },
@@ -6210,18 +6049,21 @@ var SetTerraformAction = {
6210
6049
  const message = createBaseSetTerraformAction();
6211
6050
  message.required_version = object.required_version ?? "";
6212
6051
  message.required_providers = object.required_providers?.map((e) => ProviderReqView.fromPartial(e)) || [];
6213
- message.backend = object.backend !== void 0 && object.backend !== null ? BackendView.fromPartial(object.backend) : void 0;
6052
+ message.scope = object.scope ?? "";
6214
6053
  return message;
6215
6054
  }
6216
6055
  };
6217
6056
  function createBaseSetProvidersAction() {
6218
- return { providers: [] };
6057
+ return { providers: [], scope: "" };
6219
6058
  }
6220
6059
  var SetProvidersAction = {
6221
6060
  encode(message, writer = new BinaryWriter4()) {
6222
6061
  for (const v of message.providers) {
6223
6062
  ProviderView.encode(v, writer.uint32(10).fork()).join();
6224
6063
  }
6064
+ if (message.scope !== "") {
6065
+ writer.uint32(18).string(message.scope);
6066
+ }
6225
6067
  return writer;
6226
6068
  },
6227
6069
  decode(input, length) {
@@ -6238,6 +6080,13 @@ var SetProvidersAction = {
6238
6080
  message.providers.push(ProviderView.decode(reader, reader.uint32()));
6239
6081
  continue;
6240
6082
  }
6083
+ case 2: {
6084
+ if (tag !== 18) {
6085
+ break;
6086
+ }
6087
+ message.scope = reader.string();
6088
+ continue;
6089
+ }
6241
6090
  }
6242
6091
  if ((tag & 7) === 4 || tag === 0) {
6243
6092
  break;
@@ -6248,7 +6097,8 @@ var SetProvidersAction = {
6248
6097
  },
6249
6098
  fromJSON(object) {
6250
6099
  return {
6251
- providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderView.fromJSON(e)) : []
6100
+ providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderView.fromJSON(e)) : [],
6101
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6252
6102
  };
6253
6103
  },
6254
6104
  toJSON(message) {
@@ -6256,6 +6106,9 @@ var SetProvidersAction = {
6256
6106
  if (message.providers?.length) {
6257
6107
  obj.providers = message.providers.map((e) => ProviderView.toJSON(e));
6258
6108
  }
6109
+ if (message.scope !== "") {
6110
+ obj.scope = message.scope;
6111
+ }
6259
6112
  return obj;
6260
6113
  },
6261
6114
  create(base) {
@@ -6264,17 +6117,21 @@ var SetProvidersAction = {
6264
6117
  fromPartial(object) {
6265
6118
  const message = createBaseSetProvidersAction();
6266
6119
  message.providers = object.providers?.map((e) => ProviderView.fromPartial(e)) || [];
6120
+ message.scope = object.scope ?? "";
6267
6121
  return message;
6268
6122
  }
6269
6123
  };
6270
6124
  function createBaseSetLocalsAction() {
6271
- return { locals: [] };
6125
+ return { locals: [], scope: "" };
6272
6126
  }
6273
6127
  var SetLocalsAction = {
6274
6128
  encode(message, writer = new BinaryWriter4()) {
6275
6129
  for (const v of message.locals) {
6276
6130
  LocalEntry.encode(v, writer.uint32(10).fork()).join();
6277
6131
  }
6132
+ if (message.scope !== "") {
6133
+ writer.uint32(18).string(message.scope);
6134
+ }
6278
6135
  return writer;
6279
6136
  },
6280
6137
  decode(input, length) {
@@ -6291,6 +6148,13 @@ var SetLocalsAction = {
6291
6148
  message.locals.push(LocalEntry.decode(reader, reader.uint32()));
6292
6149
  continue;
6293
6150
  }
6151
+ case 2: {
6152
+ if (tag !== 18) {
6153
+ break;
6154
+ }
6155
+ message.scope = reader.string();
6156
+ continue;
6157
+ }
6294
6158
  }
6295
6159
  if ((tag & 7) === 4 || tag === 0) {
6296
6160
  break;
@@ -6301,7 +6165,8 @@ var SetLocalsAction = {
6301
6165
  },
6302
6166
  fromJSON(object) {
6303
6167
  return {
6304
- locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => LocalEntry.fromJSON(e)) : []
6168
+ locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => LocalEntry.fromJSON(e)) : [],
6169
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6305
6170
  };
6306
6171
  },
6307
6172
  toJSON(message) {
@@ -6309,6 +6174,9 @@ var SetLocalsAction = {
6309
6174
  if (message.locals?.length) {
6310
6175
  obj.locals = message.locals.map((e) => LocalEntry.toJSON(e));
6311
6176
  }
6177
+ if (message.scope !== "") {
6178
+ obj.scope = message.scope;
6179
+ }
6312
6180
  return obj;
6313
6181
  },
6314
6182
  create(base) {
@@ -6317,35 +6185,365 @@ var SetLocalsAction = {
6317
6185
  fromPartial(object) {
6318
6186
  const message = createBaseSetLocalsAction();
6319
6187
  message.locals = object.locals?.map((e) => LocalEntry.fromPartial(e)) || [];
6188
+ message.scope = object.scope ?? "";
6320
6189
  return message;
6321
6190
  }
6322
6191
  };
6323
6192
  function createBaseLocalEntry() {
6324
- return { name: "", mode: "", value: void 0, variable: "", expression: "" };
6193
+ return { name: "", value: "" };
6325
6194
  }
6326
6195
  var LocalEntry = {
6327
6196
  encode(message, writer = new BinaryWriter4()) {
6328
6197
  if (message.name !== "") {
6329
6198
  writer.uint32(10).string(message.name);
6330
6199
  }
6331
- if (message.mode !== "") {
6332
- writer.uint32(18).string(message.mode);
6200
+ if (message.value !== "") {
6201
+ writer.uint32(50).string(message.value);
6333
6202
  }
6334
- if (message.value !== void 0) {
6335
- Value.encode(Value.wrap(message.value), writer.uint32(26).fork()).join();
6203
+ return writer;
6204
+ },
6205
+ decode(input, length) {
6206
+ const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
6207
+ const end = length === void 0 ? reader.len : reader.pos + length;
6208
+ const message = createBaseLocalEntry();
6209
+ while (reader.pos < end) {
6210
+ const tag = reader.uint32();
6211
+ switch (tag >>> 3) {
6212
+ case 1: {
6213
+ if (tag !== 10) {
6214
+ break;
6215
+ }
6216
+ message.name = reader.string();
6217
+ continue;
6218
+ }
6219
+ case 6: {
6220
+ if (tag !== 50) {
6221
+ break;
6222
+ }
6223
+ message.value = reader.string();
6224
+ continue;
6225
+ }
6226
+ }
6227
+ if ((tag & 7) === 4 || tag === 0) {
6228
+ break;
6229
+ }
6230
+ reader.skip(tag & 7);
6336
6231
  }
6337
- if (message.variable !== "") {
6338
- writer.uint32(34).string(message.variable);
6232
+ return message;
6233
+ },
6234
+ fromJSON(object) {
6235
+ return {
6236
+ name: isSet3(object.name) ? globalThis.String(object.name) : "",
6237
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
6238
+ };
6239
+ },
6240
+ toJSON(message) {
6241
+ const obj = {};
6242
+ if (message.name !== "") {
6243
+ obj.name = message.name;
6339
6244
  }
6340
- if (message.expression !== "") {
6341
- writer.uint32(42).string(message.expression);
6245
+ if (message.value !== "") {
6246
+ obj.value = message.value;
6247
+ }
6248
+ return obj;
6249
+ },
6250
+ create(base) {
6251
+ return LocalEntry.fromPartial(base ?? {});
6252
+ },
6253
+ fromPartial(object) {
6254
+ const message = createBaseLocalEntry();
6255
+ message.name = object.name ?? "";
6256
+ message.value = object.value ?? "";
6257
+ return message;
6258
+ }
6259
+ };
6260
+ function createBaseSetDirectivesAction() {
6261
+ return { blocks: [], scope: "" };
6262
+ }
6263
+ var SetDirectivesAction = {
6264
+ encode(message, writer = new BinaryWriter4()) {
6265
+ for (const v of message.blocks) {
6266
+ BlockView.encode(v, writer.uint32(10).fork()).join();
6267
+ }
6268
+ if (message.scope !== "") {
6269
+ writer.uint32(18).string(message.scope);
6270
+ }
6271
+ return writer;
6272
+ },
6273
+ decode(input, length) {
6274
+ const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
6275
+ const end = length === void 0 ? reader.len : reader.pos + length;
6276
+ const message = createBaseSetDirectivesAction();
6277
+ while (reader.pos < end) {
6278
+ const tag = reader.uint32();
6279
+ switch (tag >>> 3) {
6280
+ case 1: {
6281
+ if (tag !== 10) {
6282
+ break;
6283
+ }
6284
+ message.blocks.push(BlockView.decode(reader, reader.uint32()));
6285
+ continue;
6286
+ }
6287
+ case 2: {
6288
+ if (tag !== 18) {
6289
+ break;
6290
+ }
6291
+ message.scope = reader.string();
6292
+ continue;
6293
+ }
6294
+ }
6295
+ if ((tag & 7) === 4 || tag === 0) {
6296
+ break;
6297
+ }
6298
+ reader.skip(tag & 7);
6299
+ }
6300
+ return message;
6301
+ },
6302
+ fromJSON(object) {
6303
+ return {
6304
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : [],
6305
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6306
+ };
6307
+ },
6308
+ toJSON(message) {
6309
+ const obj = {};
6310
+ if (message.blocks?.length) {
6311
+ obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
6312
+ }
6313
+ if (message.scope !== "") {
6314
+ obj.scope = message.scope;
6315
+ }
6316
+ return obj;
6317
+ },
6318
+ create(base) {
6319
+ return SetDirectivesAction.fromPartial(base ?? {});
6320
+ },
6321
+ fromPartial(object) {
6322
+ const message = createBaseSetDirectivesAction();
6323
+ message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
6324
+ message.scope = object.scope ?? "";
6325
+ return message;
6326
+ }
6327
+ };
6328
+ function createBaseSetBlocksAction() {
6329
+ return { instance_id: "", blocks: [], scope: "" };
6330
+ }
6331
+ var SetBlocksAction = {
6332
+ encode(message, writer = new BinaryWriter4()) {
6333
+ if (message.instance_id !== "") {
6334
+ writer.uint32(10).string(message.instance_id);
6335
+ }
6336
+ for (const v of message.blocks) {
6337
+ BlockView.encode(v, writer.uint32(18).fork()).join();
6338
+ }
6339
+ if (message.scope !== "") {
6340
+ writer.uint32(26).string(message.scope);
6341
+ }
6342
+ return writer;
6343
+ },
6344
+ decode(input, length) {
6345
+ const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
6346
+ const end = length === void 0 ? reader.len : reader.pos + length;
6347
+ const message = createBaseSetBlocksAction();
6348
+ while (reader.pos < end) {
6349
+ const tag = reader.uint32();
6350
+ switch (tag >>> 3) {
6351
+ case 1: {
6352
+ if (tag !== 10) {
6353
+ break;
6354
+ }
6355
+ message.instance_id = reader.string();
6356
+ continue;
6357
+ }
6358
+ case 2: {
6359
+ if (tag !== 18) {
6360
+ break;
6361
+ }
6362
+ message.blocks.push(BlockView.decode(reader, reader.uint32()));
6363
+ continue;
6364
+ }
6365
+ case 3: {
6366
+ if (tag !== 26) {
6367
+ break;
6368
+ }
6369
+ message.scope = reader.string();
6370
+ continue;
6371
+ }
6372
+ }
6373
+ if ((tag & 7) === 4 || tag === 0) {
6374
+ break;
6375
+ }
6376
+ reader.skip(tag & 7);
6377
+ }
6378
+ return message;
6379
+ },
6380
+ fromJSON(object) {
6381
+ return {
6382
+ instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
6383
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : [],
6384
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6385
+ };
6386
+ },
6387
+ toJSON(message) {
6388
+ const obj = {};
6389
+ if (message.instance_id !== "") {
6390
+ obj.instanceId = message.instance_id;
6391
+ }
6392
+ if (message.blocks?.length) {
6393
+ obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
6394
+ }
6395
+ if (message.scope !== "") {
6396
+ obj.scope = message.scope;
6397
+ }
6398
+ return obj;
6399
+ },
6400
+ create(base) {
6401
+ return SetBlocksAction.fromPartial(base ?? {});
6402
+ },
6403
+ fromPartial(object) {
6404
+ const message = createBaseSetBlocksAction();
6405
+ message.instance_id = object.instance_id ?? "";
6406
+ message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
6407
+ message.scope = object.scope ?? "";
6408
+ return message;
6409
+ }
6410
+ };
6411
+ function createBaseSetMetaArgumentsAction() {
6412
+ return { instance_id: "", count: "", for_each: "", provider: "", scope: "" };
6413
+ }
6414
+ var SetMetaArgumentsAction = {
6415
+ encode(message, writer = new BinaryWriter4()) {
6416
+ if (message.instance_id !== "") {
6417
+ writer.uint32(10).string(message.instance_id);
6418
+ }
6419
+ if (message.count !== "") {
6420
+ writer.uint32(18).string(message.count);
6421
+ }
6422
+ if (message.for_each !== "") {
6423
+ writer.uint32(26).string(message.for_each);
6424
+ }
6425
+ if (message.provider !== "") {
6426
+ writer.uint32(34).string(message.provider);
6427
+ }
6428
+ if (message.scope !== "") {
6429
+ writer.uint32(42).string(message.scope);
6430
+ }
6431
+ return writer;
6432
+ },
6433
+ decode(input, length) {
6434
+ const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
6435
+ const end = length === void 0 ? reader.len : reader.pos + length;
6436
+ const message = createBaseSetMetaArgumentsAction();
6437
+ while (reader.pos < end) {
6438
+ const tag = reader.uint32();
6439
+ switch (tag >>> 3) {
6440
+ case 1: {
6441
+ if (tag !== 10) {
6442
+ break;
6443
+ }
6444
+ message.instance_id = reader.string();
6445
+ continue;
6446
+ }
6447
+ case 2: {
6448
+ if (tag !== 18) {
6449
+ break;
6450
+ }
6451
+ message.count = reader.string();
6452
+ continue;
6453
+ }
6454
+ case 3: {
6455
+ if (tag !== 26) {
6456
+ break;
6457
+ }
6458
+ message.for_each = reader.string();
6459
+ continue;
6460
+ }
6461
+ case 4: {
6462
+ if (tag !== 34) {
6463
+ break;
6464
+ }
6465
+ message.provider = reader.string();
6466
+ continue;
6467
+ }
6468
+ case 5: {
6469
+ if (tag !== 42) {
6470
+ break;
6471
+ }
6472
+ message.scope = reader.string();
6473
+ continue;
6474
+ }
6475
+ }
6476
+ if ((tag & 7) === 4 || tag === 0) {
6477
+ break;
6478
+ }
6479
+ reader.skip(tag & 7);
6480
+ }
6481
+ return message;
6482
+ },
6483
+ fromJSON(object) {
6484
+ return {
6485
+ instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
6486
+ count: isSet3(object.count) ? globalThis.String(object.count) : "",
6487
+ for_each: isSet3(object.forEach) ? globalThis.String(object.forEach) : isSet3(object.for_each) ? globalThis.String(object.for_each) : "",
6488
+ provider: isSet3(object.provider) ? globalThis.String(object.provider) : "",
6489
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6490
+ };
6491
+ },
6492
+ toJSON(message) {
6493
+ const obj = {};
6494
+ if (message.instance_id !== "") {
6495
+ obj.instanceId = message.instance_id;
6496
+ }
6497
+ if (message.count !== "") {
6498
+ obj.count = message.count;
6499
+ }
6500
+ if (message.for_each !== "") {
6501
+ obj.forEach = message.for_each;
6502
+ }
6503
+ if (message.provider !== "") {
6504
+ obj.provider = message.provider;
6505
+ }
6506
+ if (message.scope !== "") {
6507
+ obj.scope = message.scope;
6508
+ }
6509
+ return obj;
6510
+ },
6511
+ create(base) {
6512
+ return SetMetaArgumentsAction.fromPartial(base ?? {});
6513
+ },
6514
+ fromPartial(object) {
6515
+ const message = createBaseSetMetaArgumentsAction();
6516
+ message.instance_id = object.instance_id ?? "";
6517
+ message.count = object.count ?? "";
6518
+ message.for_each = object.for_each ?? "";
6519
+ message.provider = object.provider ?? "";
6520
+ message.scope = object.scope ?? "";
6521
+ return message;
6522
+ }
6523
+ };
6524
+ function createBaseAddResourceAction() {
6525
+ return { kind: "", type: "", name: "", scope: "" };
6526
+ }
6527
+ var AddResourceAction = {
6528
+ encode(message, writer = new BinaryWriter4()) {
6529
+ if (message.kind !== "") {
6530
+ writer.uint32(10).string(message.kind);
6531
+ }
6532
+ if (message.type !== "") {
6533
+ writer.uint32(18).string(message.type);
6534
+ }
6535
+ if (message.name !== "") {
6536
+ writer.uint32(26).string(message.name);
6537
+ }
6538
+ if (message.scope !== "") {
6539
+ writer.uint32(34).string(message.scope);
6342
6540
  }
6343
6541
  return writer;
6344
6542
  },
6345
6543
  decode(input, length) {
6346
6544
  const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
6347
6545
  const end = length === void 0 ? reader.len : reader.pos + length;
6348
- const message = createBaseLocalEntry();
6546
+ const message = createBaseAddResourceAction();
6349
6547
  while (reader.pos < end) {
6350
6548
  const tag = reader.uint32();
6351
6549
  switch (tag >>> 3) {
@@ -6353,35 +6551,28 @@ var LocalEntry = {
6353
6551
  if (tag !== 10) {
6354
6552
  break;
6355
6553
  }
6356
- message.name = reader.string();
6554
+ message.kind = reader.string();
6357
6555
  continue;
6358
6556
  }
6359
6557
  case 2: {
6360
6558
  if (tag !== 18) {
6361
6559
  break;
6362
6560
  }
6363
- message.mode = reader.string();
6561
+ message.type = reader.string();
6364
6562
  continue;
6365
6563
  }
6366
6564
  case 3: {
6367
6565
  if (tag !== 26) {
6368
6566
  break;
6369
6567
  }
6370
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
6568
+ message.name = reader.string();
6371
6569
  continue;
6372
6570
  }
6373
6571
  case 4: {
6374
6572
  if (tag !== 34) {
6375
6573
  break;
6376
6574
  }
6377
- message.variable = reader.string();
6378
- continue;
6379
- }
6380
- case 5: {
6381
- if (tag !== 42) {
6382
- break;
6383
- }
6384
- message.expression = reader.string();
6575
+ message.scope = reader.string();
6385
6576
  continue;
6386
6577
  }
6387
6578
  }
@@ -6394,42 +6585,37 @@ var LocalEntry = {
6394
6585
  },
6395
6586
  fromJSON(object) {
6396
6587
  return {
6588
+ kind: isSet3(object.kind) ? globalThis.String(object.kind) : "",
6589
+ type: isSet3(object.type) ? globalThis.String(object.type) : "",
6397
6590
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
6398
- mode: isSet3(object.mode) ? globalThis.String(object.mode) : "",
6399
- value: isSet3(object?.value) ? object.value : void 0,
6400
- variable: isSet3(object.variable) ? globalThis.String(object.variable) : "",
6401
- expression: isSet3(object.expression) ? globalThis.String(object.expression) : ""
6591
+ scope: isSet3(object.scope) ? globalThis.String(object.scope) : ""
6402
6592
  };
6403
6593
  },
6404
6594
  toJSON(message) {
6405
6595
  const obj = {};
6406
- if (message.name !== "") {
6407
- obj.name = message.name;
6408
- }
6409
- if (message.mode !== "") {
6410
- obj.mode = message.mode;
6596
+ if (message.kind !== "") {
6597
+ obj.kind = message.kind;
6411
6598
  }
6412
- if (message.value !== void 0) {
6413
- obj.value = message.value;
6599
+ if (message.type !== "") {
6600
+ obj.type = message.type;
6414
6601
  }
6415
- if (message.variable !== "") {
6416
- obj.variable = message.variable;
6602
+ if (message.name !== "") {
6603
+ obj.name = message.name;
6417
6604
  }
6418
- if (message.expression !== "") {
6419
- obj.expression = message.expression;
6605
+ if (message.scope !== "") {
6606
+ obj.scope = message.scope;
6420
6607
  }
6421
6608
  return obj;
6422
6609
  },
6423
6610
  create(base) {
6424
- return LocalEntry.fromPartial(base ?? {});
6611
+ return AddResourceAction.fromPartial(base ?? {});
6425
6612
  },
6426
6613
  fromPartial(object) {
6427
- const message = createBaseLocalEntry();
6614
+ const message = createBaseAddResourceAction();
6615
+ message.kind = object.kind ?? "";
6616
+ message.type = object.type ?? "";
6428
6617
  message.name = object.name ?? "";
6429
- message.mode = object.mode ?? "";
6430
- message.value = object.value ?? void 0;
6431
- message.variable = object.variable ?? "";
6432
- message.expression = object.expression ?? "";
6618
+ message.scope = object.scope ?? "";
6433
6619
  return message;
6434
6620
  }
6435
6621
  };
@@ -6868,7 +7054,11 @@ function createBaseAction() {
6868
7054
  redo: void 0,
6869
7055
  place_module: void 0,
6870
7056
  set_use_providers: void 0,
6871
- ungroup: void 0
7057
+ ungroup: void 0,
7058
+ set_blocks: void 0,
7059
+ set_directives: void 0,
7060
+ set_meta_arguments: void 0,
7061
+ add_resource: void 0
6872
7062
  };
6873
7063
  }
6874
7064
  var Action = {
@@ -6933,6 +7123,18 @@ var Action = {
6933
7123
  if (message.ungroup !== void 0) {
6934
7124
  UngroupAction.encode(message.ungroup, writer.uint32(194).fork()).join();
6935
7125
  }
7126
+ if (message.set_blocks !== void 0) {
7127
+ SetBlocksAction.encode(message.set_blocks, writer.uint32(202).fork()).join();
7128
+ }
7129
+ if (message.set_directives !== void 0) {
7130
+ SetDirectivesAction.encode(message.set_directives, writer.uint32(210).fork()).join();
7131
+ }
7132
+ if (message.set_meta_arguments !== void 0) {
7133
+ SetMetaArgumentsAction.encode(message.set_meta_arguments, writer.uint32(218).fork()).join();
7134
+ }
7135
+ if (message.add_resource !== void 0) {
7136
+ AddResourceAction.encode(message.add_resource, writer.uint32(226).fork()).join();
7137
+ }
6936
7138
  return writer;
6937
7139
  },
6938
7140
  decode(input, length) {
@@ -7082,6 +7284,34 @@ var Action = {
7082
7284
  message.ungroup = UngroupAction.decode(reader, reader.uint32());
7083
7285
  continue;
7084
7286
  }
7287
+ case 25: {
7288
+ if (tag !== 202) {
7289
+ break;
7290
+ }
7291
+ message.set_blocks = SetBlocksAction.decode(reader, reader.uint32());
7292
+ continue;
7293
+ }
7294
+ case 26: {
7295
+ if (tag !== 210) {
7296
+ break;
7297
+ }
7298
+ message.set_directives = SetDirectivesAction.decode(reader, reader.uint32());
7299
+ continue;
7300
+ }
7301
+ case 27: {
7302
+ if (tag !== 218) {
7303
+ break;
7304
+ }
7305
+ message.set_meta_arguments = SetMetaArgumentsAction.decode(reader, reader.uint32());
7306
+ continue;
7307
+ }
7308
+ case 28: {
7309
+ if (tag !== 226) {
7310
+ break;
7311
+ }
7312
+ message.add_resource = AddResourceAction.decode(reader, reader.uint32());
7313
+ continue;
7314
+ }
7085
7315
  }
7086
7316
  if ((tag & 7) === 4 || tag === 0) {
7087
7317
  break;
@@ -7111,7 +7341,11 @@ var Action = {
7111
7341
  redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
7112
7342
  place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
7113
7343
  set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0,
7114
- ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0
7344
+ ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0,
7345
+ set_blocks: isSet3(object.setBlocks) ? SetBlocksAction.fromJSON(object.setBlocks) : isSet3(object.set_blocks) ? SetBlocksAction.fromJSON(object.set_blocks) : void 0,
7346
+ set_directives: isSet3(object.setDirectives) ? SetDirectivesAction.fromJSON(object.setDirectives) : isSet3(object.set_directives) ? SetDirectivesAction.fromJSON(object.set_directives) : void 0,
7347
+ set_meta_arguments: isSet3(object.setMetaArguments) ? SetMetaArgumentsAction.fromJSON(object.setMetaArguments) : isSet3(object.set_meta_arguments) ? SetMetaArgumentsAction.fromJSON(object.set_meta_arguments) : void 0,
7348
+ add_resource: isSet3(object.addResource) ? AddResourceAction.fromJSON(object.addResource) : isSet3(object.add_resource) ? AddResourceAction.fromJSON(object.add_resource) : void 0
7115
7349
  };
7116
7350
  },
7117
7351
  toJSON(message) {
@@ -7176,6 +7410,18 @@ var Action = {
7176
7410
  if (message.ungroup !== void 0) {
7177
7411
  obj.ungroup = UngroupAction.toJSON(message.ungroup);
7178
7412
  }
7413
+ if (message.set_blocks !== void 0) {
7414
+ obj.setBlocks = SetBlocksAction.toJSON(message.set_blocks);
7415
+ }
7416
+ if (message.set_directives !== void 0) {
7417
+ obj.setDirectives = SetDirectivesAction.toJSON(message.set_directives);
7418
+ }
7419
+ if (message.set_meta_arguments !== void 0) {
7420
+ obj.setMetaArguments = SetMetaArgumentsAction.toJSON(message.set_meta_arguments);
7421
+ }
7422
+ if (message.add_resource !== void 0) {
7423
+ obj.addResource = AddResourceAction.toJSON(message.add_resource);
7424
+ }
7179
7425
  return obj;
7180
7426
  },
7181
7427
  create(base) {
@@ -7203,6 +7449,10 @@ var Action = {
7203
7449
  message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
7204
7450
  message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
7205
7451
  message.ungroup = object.ungroup !== void 0 && object.ungroup !== null ? UngroupAction.fromPartial(object.ungroup) : void 0;
7452
+ message.set_blocks = object.set_blocks !== void 0 && object.set_blocks !== null ? SetBlocksAction.fromPartial(object.set_blocks) : void 0;
7453
+ message.set_directives = object.set_directives !== void 0 && object.set_directives !== null ? SetDirectivesAction.fromPartial(object.set_directives) : void 0;
7454
+ message.set_meta_arguments = object.set_meta_arguments !== void 0 && object.set_meta_arguments !== null ? SetMetaArgumentsAction.fromPartial(object.set_meta_arguments) : void 0;
7455
+ message.add_resource = object.add_resource !== void 0 && object.add_resource !== null ? AddResourceAction.fromPartial(object.add_resource) : void 0;
7206
7456
  return message;
7207
7457
  }
7208
7458
  };
@@ -7554,7 +7804,7 @@ var ReadWiringCandidatesResponse = {
7554
7804
  }
7555
7805
  };
7556
7806
  function createBaseInvokeRequest() {
7557
- return { invoke_id: "", path: [], argv: [], working_directory: "" };
7807
+ return { invoke_id: "", path: [], argv: [], working_directory: "", stdin: Buffer.alloc(0) };
7558
7808
  }
7559
7809
  var InvokeRequest = {
7560
7810
  encode(message, writer = new BinaryWriter4()) {
@@ -7570,6 +7820,9 @@ var InvokeRequest = {
7570
7820
  if (message.working_directory !== "") {
7571
7821
  writer.uint32(42).string(message.working_directory);
7572
7822
  }
7823
+ if (message.stdin.length !== 0) {
7824
+ writer.uint32(50).bytes(message.stdin);
7825
+ }
7573
7826
  return writer;
7574
7827
  },
7575
7828
  decode(input, length) {
@@ -7607,6 +7860,13 @@ var InvokeRequest = {
7607
7860
  message.working_directory = reader.string();
7608
7861
  continue;
7609
7862
  }
7863
+ case 6: {
7864
+ if (tag !== 50) {
7865
+ break;
7866
+ }
7867
+ message.stdin = Buffer.from(reader.bytes());
7868
+ continue;
7869
+ }
7610
7870
  }
7611
7871
  if ((tag & 7) === 4 || tag === 0) {
7612
7872
  break;
@@ -7620,7 +7880,8 @@ var InvokeRequest = {
7620
7880
  invoke_id: isSet3(object.invokeId) ? globalThis.String(object.invokeId) : isSet3(object.invoke_id) ? globalThis.String(object.invoke_id) : "",
7621
7881
  path: globalThis.Array.isArray(object?.path) ? object.path.map((e) => globalThis.String(e)) : [],
7622
7882
  argv: globalThis.Array.isArray(object?.argv) ? object.argv.map((e) => globalThis.String(e)) : [],
7623
- working_directory: isSet3(object.workingDirectory) ? globalThis.String(object.workingDirectory) : isSet3(object.working_directory) ? globalThis.String(object.working_directory) : ""
7883
+ working_directory: isSet3(object.workingDirectory) ? globalThis.String(object.workingDirectory) : isSet3(object.working_directory) ? globalThis.String(object.working_directory) : "",
7884
+ stdin: isSet3(object.stdin) ? Buffer.from(bytesFromBase64(object.stdin)) : Buffer.alloc(0)
7624
7885
  };
7625
7886
  },
7626
7887
  toJSON(message) {
@@ -7637,6 +7898,9 @@ var InvokeRequest = {
7637
7898
  if (message.working_directory !== "") {
7638
7899
  obj.workingDirectory = message.working_directory;
7639
7900
  }
7901
+ if (message.stdin.length !== 0) {
7902
+ obj.stdin = base64FromBytes(message.stdin);
7903
+ }
7640
7904
  return obj;
7641
7905
  },
7642
7906
  create(base) {
@@ -7648,6 +7912,7 @@ var InvokeRequest = {
7648
7912
  message.path = object.path?.map((e) => e) || [];
7649
7913
  message.argv = object.argv?.map((e) => e) || [];
7650
7914
  message.working_directory = object.working_directory ?? "";
7915
+ message.stdin = object.stdin ?? Buffer.alloc(0);
7651
7916
  return message;
7652
7917
  }
7653
7918
  };
@@ -9145,25 +9410,29 @@ var ProviderReqView = {
9145
9410
  return message;
9146
9411
  }
9147
9412
  };
9148
- function createBaseBackendView() {
9149
- return { type: "", config: {} };
9413
+ function createBaseProviderView() {
9414
+ return { name: "", alias: "", config: {}, blocks: [] };
9150
9415
  }
9151
- var BackendView = {
9416
+ var ProviderView = {
9152
9417
  encode(message, writer = new BinaryWriter4()) {
9153
- if (message.type !== "") {
9154
- writer.uint32(10).string(message.type);
9418
+ if (message.name !== "") {
9419
+ writer.uint32(10).string(message.name);
9420
+ }
9421
+ if (message.alias !== "") {
9422
+ writer.uint32(18).string(message.alias);
9155
9423
  }
9156
9424
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
9157
- if (value !== void 0) {
9158
- BackendView_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
9159
- }
9425
+ ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
9160
9426
  });
9427
+ for (const v of message.blocks) {
9428
+ BlockView.encode(v, writer.uint32(42).fork()).join();
9429
+ }
9161
9430
  return writer;
9162
9431
  },
9163
9432
  decode(input, length) {
9164
9433
  const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
9165
9434
  const end = length === void 0 ? reader.len : reader.pos + length;
9166
- const message = createBaseBackendView();
9435
+ const message = createBaseProviderView();
9167
9436
  while (reader.pos < end) {
9168
9437
  const tag = reader.uint32();
9169
9438
  switch (tag >>> 3) {
@@ -9171,17 +9440,31 @@ var BackendView = {
9171
9440
  if (tag !== 10) {
9172
9441
  break;
9173
9442
  }
9174
- message.type = reader.string();
9443
+ message.name = reader.string();
9175
9444
  continue;
9176
9445
  }
9177
9446
  case 2: {
9178
9447
  if (tag !== 18) {
9179
9448
  break;
9180
9449
  }
9181
- const entry2 = BackendView_ConfigEntry.decode(reader, reader.uint32());
9182
- if (entry2.value !== void 0) {
9183
- message.config[entry2.key] = entry2.value;
9450
+ message.alias = reader.string();
9451
+ continue;
9452
+ }
9453
+ case 3: {
9454
+ if (tag !== 26) {
9455
+ break;
9456
+ }
9457
+ const entry3 = ProviderView_ConfigEntry.decode(reader, reader.uint32());
9458
+ if (entry3.value !== void 0) {
9459
+ message.config[entry3.key] = entry3.value;
9460
+ }
9461
+ continue;
9462
+ }
9463
+ case 5: {
9464
+ if (tag !== 42) {
9465
+ break;
9184
9466
  }
9467
+ message.blocks.push(BlockView.decode(reader, reader.uint32()));
9185
9468
  continue;
9186
9469
  }
9187
9470
  }
@@ -9194,20 +9477,25 @@ var BackendView = {
9194
9477
  },
9195
9478
  fromJSON(object) {
9196
9479
  return {
9197
- type: isSet3(object.type) ? globalThis.String(object.type) : "",
9480
+ name: isSet3(object.name) ? globalThis.String(object.name) : "",
9481
+ alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
9198
9482
  config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
9199
9483
  (acc, [key, value]) => {
9200
- acc[key] = value;
9484
+ acc[key] = globalThis.String(value);
9201
9485
  return acc;
9202
9486
  },
9203
9487
  {}
9204
- ) : {}
9488
+ ) : {},
9489
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : []
9205
9490
  };
9206
9491
  },
9207
9492
  toJSON(message) {
9208
9493
  const obj = {};
9209
- if (message.type !== "") {
9210
- obj.type = message.type;
9494
+ if (message.name !== "") {
9495
+ obj.name = message.name;
9496
+ }
9497
+ if (message.alias !== "") {
9498
+ obj.alias = message.alias;
9211
9499
  }
9212
9500
  if (message.config) {
9213
9501
  const entries = globalThis.Object.entries(message.config);
@@ -9218,43 +9506,48 @@ var BackendView = {
9218
9506
  });
9219
9507
  }
9220
9508
  }
9509
+ if (message.blocks?.length) {
9510
+ obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
9511
+ }
9221
9512
  return obj;
9222
9513
  },
9223
9514
  create(base) {
9224
- return BackendView.fromPartial(base ?? {});
9515
+ return ProviderView.fromPartial(base ?? {});
9225
9516
  },
9226
9517
  fromPartial(object) {
9227
- const message = createBaseBackendView();
9228
- message.type = object.type ?? "";
9518
+ const message = createBaseProviderView();
9519
+ message.name = object.name ?? "";
9520
+ message.alias = object.alias ?? "";
9229
9521
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
9230
9522
  (acc, [key, value]) => {
9231
9523
  if (value !== void 0) {
9232
- acc[key] = value;
9524
+ acc[key] = globalThis.String(value);
9233
9525
  }
9234
9526
  return acc;
9235
9527
  },
9236
9528
  {}
9237
9529
  );
9530
+ message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
9238
9531
  return message;
9239
9532
  }
9240
9533
  };
9241
- function createBaseBackendView_ConfigEntry() {
9242
- return { key: "", value: void 0 };
9534
+ function createBaseProviderView_ConfigEntry() {
9535
+ return { key: "", value: "" };
9243
9536
  }
9244
- var BackendView_ConfigEntry = {
9537
+ var ProviderView_ConfigEntry = {
9245
9538
  encode(message, writer = new BinaryWriter4()) {
9246
9539
  if (message.key !== "") {
9247
9540
  writer.uint32(10).string(message.key);
9248
9541
  }
9249
- if (message.value !== void 0) {
9250
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
9542
+ if (message.value !== "") {
9543
+ writer.uint32(18).string(message.value);
9251
9544
  }
9252
9545
  return writer;
9253
9546
  },
9254
9547
  decode(input, length) {
9255
9548
  const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
9256
9549
  const end = length === void 0 ? reader.len : reader.pos + length;
9257
- const message = createBaseBackendView_ConfigEntry();
9550
+ const message = createBaseProviderView_ConfigEntry();
9258
9551
  while (reader.pos < end) {
9259
9552
  const tag = reader.uint32();
9260
9553
  switch (tag >>> 3) {
@@ -9269,7 +9562,7 @@ var BackendView_ConfigEntry = {
9269
9562
  if (tag !== 18) {
9270
9563
  break;
9271
9564
  }
9272
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
9565
+ message.value = reader.string();
9273
9566
  continue;
9274
9567
  }
9275
9568
  }
@@ -9283,7 +9576,7 @@ var BackendView_ConfigEntry = {
9283
9576
  fromJSON(object) {
9284
9577
  return {
9285
9578
  key: isSet3(object.key) ? globalThis.String(object.key) : "",
9286
- value: isSet3(object?.value) ? object.value : void 0
9579
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
9287
9580
  };
9288
9581
  },
9289
9582
  toJSON(message) {
@@ -9291,44 +9584,44 @@ var BackendView_ConfigEntry = {
9291
9584
  if (message.key !== "") {
9292
9585
  obj.key = message.key;
9293
9586
  }
9294
- if (message.value !== void 0) {
9587
+ if (message.value !== "") {
9295
9588
  obj.value = message.value;
9296
9589
  }
9297
9590
  return obj;
9298
9591
  },
9299
9592
  create(base) {
9300
- return BackendView_ConfigEntry.fromPartial(base ?? {});
9593
+ return ProviderView_ConfigEntry.fromPartial(base ?? {});
9301
9594
  },
9302
9595
  fromPartial(object) {
9303
- const message = createBaseBackendView_ConfigEntry();
9596
+ const message = createBaseProviderView_ConfigEntry();
9304
9597
  message.key = object.key ?? "";
9305
- message.value = object.value ?? void 0;
9598
+ message.value = object.value ?? "";
9306
9599
  return message;
9307
9600
  }
9308
9601
  };
9309
- function createBaseProviderView() {
9310
- return { name: "", alias: "", config: {}, blocks: [] };
9602
+ function createBaseBlockView() {
9603
+ return { type: "", labels: [], attributes: [], blocks: [] };
9311
9604
  }
9312
- var ProviderView = {
9605
+ var BlockView = {
9313
9606
  encode(message, writer = new BinaryWriter4()) {
9314
- if (message.name !== "") {
9315
- writer.uint32(10).string(message.name);
9607
+ if (message.type !== "") {
9608
+ writer.uint32(10).string(message.type);
9316
9609
  }
9317
- if (message.alias !== "") {
9318
- writer.uint32(18).string(message.alias);
9610
+ for (const v of message.labels) {
9611
+ writer.uint32(18).string(v);
9612
+ }
9613
+ for (const v of message.attributes) {
9614
+ AttributeView.encode(v, writer.uint32(26).fork()).join();
9319
9615
  }
9320
- globalThis.Object.entries(message.config).forEach(([key, value]) => {
9321
- ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
9322
- });
9323
9616
  for (const v of message.blocks) {
9324
- Block.encode(v, writer.uint32(34).fork()).join();
9617
+ BlockView.encode(v, writer.uint32(34).fork()).join();
9325
9618
  }
9326
9619
  return writer;
9327
9620
  },
9328
9621
  decode(input, length) {
9329
9622
  const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
9330
9623
  const end = length === void 0 ? reader.len : reader.pos + length;
9331
- const message = createBaseProviderView();
9624
+ const message = createBaseBlockView();
9332
9625
  while (reader.pos < end) {
9333
9626
  const tag = reader.uint32();
9334
9627
  switch (tag >>> 3) {
@@ -9336,31 +9629,28 @@ var ProviderView = {
9336
9629
  if (tag !== 10) {
9337
9630
  break;
9338
9631
  }
9339
- message.name = reader.string();
9632
+ message.type = reader.string();
9340
9633
  continue;
9341
9634
  }
9342
9635
  case 2: {
9343
9636
  if (tag !== 18) {
9344
9637
  break;
9345
9638
  }
9346
- message.alias = reader.string();
9639
+ message.labels.push(reader.string());
9347
9640
  continue;
9348
9641
  }
9349
9642
  case 3: {
9350
9643
  if (tag !== 26) {
9351
9644
  break;
9352
9645
  }
9353
- const entry3 = ProviderView_ConfigEntry.decode(reader, reader.uint32());
9354
- if (entry3.value !== void 0) {
9355
- message.config[entry3.key] = entry3.value;
9356
- }
9646
+ message.attributes.push(AttributeView.decode(reader, reader.uint32()));
9357
9647
  continue;
9358
9648
  }
9359
9649
  case 4: {
9360
9650
  if (tag !== 34) {
9361
9651
  break;
9362
9652
  }
9363
- message.blocks.push(Block.decode(reader, reader.uint32()));
9653
+ message.blocks.push(BlockView.decode(reader, reader.uint32()));
9364
9654
  continue;
9365
9655
  }
9366
9656
  }
@@ -9373,67 +9663,47 @@ var ProviderView = {
9373
9663
  },
9374
9664
  fromJSON(object) {
9375
9665
  return {
9376
- name: isSet3(object.name) ? globalThis.String(object.name) : "",
9377
- alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
9378
- config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
9379
- (acc, [key, value]) => {
9380
- acc[key] = globalThis.String(value);
9381
- return acc;
9382
- },
9383
- {}
9384
- ) : {},
9385
- blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
9666
+ type: isSet3(object.type) ? globalThis.String(object.type) : "",
9667
+ labels: globalThis.Array.isArray(object?.labels) ? object.labels.map((e) => globalThis.String(e)) : [],
9668
+ attributes: globalThis.Array.isArray(object?.attributes) ? object.attributes.map((e) => AttributeView.fromJSON(e)) : [],
9669
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => BlockView.fromJSON(e)) : []
9386
9670
  };
9387
9671
  },
9388
9672
  toJSON(message) {
9389
9673
  const obj = {};
9390
- if (message.name !== "") {
9391
- obj.name = message.name;
9674
+ if (message.type !== "") {
9675
+ obj.type = message.type;
9392
9676
  }
9393
- if (message.alias !== "") {
9394
- obj.alias = message.alias;
9677
+ if (message.labels?.length) {
9678
+ obj.labels = message.labels;
9395
9679
  }
9396
- if (message.config) {
9397
- const entries = globalThis.Object.entries(message.config);
9398
- if (entries.length > 0) {
9399
- obj.config = {};
9400
- entries.forEach(([k, v]) => {
9401
- obj.config[k] = v;
9402
- });
9403
- }
9680
+ if (message.attributes?.length) {
9681
+ obj.attributes = message.attributes.map((e) => AttributeView.toJSON(e));
9404
9682
  }
9405
9683
  if (message.blocks?.length) {
9406
- obj.blocks = message.blocks.map((e) => Block.toJSON(e));
9684
+ obj.blocks = message.blocks.map((e) => BlockView.toJSON(e));
9407
9685
  }
9408
9686
  return obj;
9409
9687
  },
9410
9688
  create(base) {
9411
- return ProviderView.fromPartial(base ?? {});
9689
+ return BlockView.fromPartial(base ?? {});
9412
9690
  },
9413
9691
  fromPartial(object) {
9414
- const message = createBaseProviderView();
9415
- message.name = object.name ?? "";
9416
- message.alias = object.alias ?? "";
9417
- message.config = globalThis.Object.entries(object.config ?? {}).reduce(
9418
- (acc, [key, value]) => {
9419
- if (value !== void 0) {
9420
- acc[key] = globalThis.String(value);
9421
- }
9422
- return acc;
9423
- },
9424
- {}
9425
- );
9426
- message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
9692
+ const message = createBaseBlockView();
9693
+ message.type = object.type ?? "";
9694
+ message.labels = object.labels?.map((e) => e) || [];
9695
+ message.attributes = object.attributes?.map((e) => AttributeView.fromPartial(e)) || [];
9696
+ message.blocks = object.blocks?.map((e) => BlockView.fromPartial(e)) || [];
9427
9697
  return message;
9428
9698
  }
9429
9699
  };
9430
- function createBaseProviderView_ConfigEntry() {
9431
- return { key: "", value: "" };
9700
+ function createBaseAttributeView() {
9701
+ return { name: "", value: "" };
9432
9702
  }
9433
- var ProviderView_ConfigEntry = {
9703
+ var AttributeView = {
9434
9704
  encode(message, writer = new BinaryWriter4()) {
9435
- if (message.key !== "") {
9436
- writer.uint32(10).string(message.key);
9705
+ if (message.name !== "") {
9706
+ writer.uint32(10).string(message.name);
9437
9707
  }
9438
9708
  if (message.value !== "") {
9439
9709
  writer.uint32(18).string(message.value);
@@ -9443,7 +9713,7 @@ var ProviderView_ConfigEntry = {
9443
9713
  decode(input, length) {
9444
9714
  const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
9445
9715
  const end = length === void 0 ? reader.len : reader.pos + length;
9446
- const message = createBaseProviderView_ConfigEntry();
9716
+ const message = createBaseAttributeView();
9447
9717
  while (reader.pos < end) {
9448
9718
  const tag = reader.uint32();
9449
9719
  switch (tag >>> 3) {
@@ -9451,7 +9721,7 @@ var ProviderView_ConfigEntry = {
9451
9721
  if (tag !== 10) {
9452
9722
  break;
9453
9723
  }
9454
- message.key = reader.string();
9724
+ message.name = reader.string();
9455
9725
  continue;
9456
9726
  }
9457
9727
  case 2: {
@@ -9471,14 +9741,14 @@ var ProviderView_ConfigEntry = {
9471
9741
  },
9472
9742
  fromJSON(object) {
9473
9743
  return {
9474
- key: isSet3(object.key) ? globalThis.String(object.key) : "",
9744
+ name: isSet3(object.name) ? globalThis.String(object.name) : "",
9475
9745
  value: isSet3(object.value) ? globalThis.String(object.value) : ""
9476
9746
  };
9477
9747
  },
9478
9748
  toJSON(message) {
9479
9749
  const obj = {};
9480
- if (message.key !== "") {
9481
- obj.key = message.key;
9750
+ if (message.name !== "") {
9751
+ obj.name = message.name;
9482
9752
  }
9483
9753
  if (message.value !== "") {
9484
9754
  obj.value = message.value;
@@ -9486,11 +9756,11 @@ var ProviderView_ConfigEntry = {
9486
9756
  return obj;
9487
9757
  },
9488
9758
  create(base) {
9489
- return ProviderView_ConfigEntry.fromPartial(base ?? {});
9759
+ return AttributeView.fromPartial(base ?? {});
9490
9760
  },
9491
9761
  fromPartial(object) {
9492
- const message = createBaseProviderView_ConfigEntry();
9493
- message.key = object.key ?? "";
9762
+ const message = createBaseAttributeView();
9763
+ message.name = object.name ?? "";
9494
9764
  message.value = object.value ?? "";
9495
9765
  return message;
9496
9766
  }
@@ -10045,6 +10315,12 @@ var LaceEngineClient = makeGenericClientConstructor(
10045
10315
  LaceEngineService,
10046
10316
  "lace.engine.LaceEngine"
10047
10317
  );
10318
+ function bytesFromBase64(b64) {
10319
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
10320
+ }
10321
+ function base64FromBytes(arr) {
10322
+ return globalThis.Buffer.from(arr).toString("base64");
10323
+ }
10048
10324
  function longToNumber(int64) {
10049
10325
  const num = globalThis.Number(int64.toString());
10050
10326
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
@@ -10146,7 +10422,7 @@ var Any = {
10146
10422
  fromJSON(object) {
10147
10423
  return {
10148
10424
  type_url: isSet4(object.typeUrl) ? globalThis.String(object.typeUrl) : isSet4(object.type_url) ? globalThis.String(object.type_url) : "",
10149
- value: isSet4(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0)
10425
+ value: isSet4(object.value) ? Buffer.from(bytesFromBase642(object.value)) : Buffer.alloc(0)
10150
10426
  };
10151
10427
  },
10152
10428
  toJSON(message) {
@@ -10155,7 +10431,7 @@ var Any = {
10155
10431
  obj.typeUrl = message.type_url;
10156
10432
  }
10157
10433
  if (message.value.length !== 0) {
10158
- obj.value = base64FromBytes(message.value);
10434
+ obj.value = base64FromBytes2(message.value);
10159
10435
  }
10160
10436
  return obj;
10161
10437
  },
@@ -10169,10 +10445,10 @@ var Any = {
10169
10445
  return message;
10170
10446
  }
10171
10447
  };
10172
- function bytesFromBase64(b64) {
10448
+ function bytesFromBase642(b64) {
10173
10449
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
10174
10450
  }
10175
- function base64FromBytes(arr) {
10451
+ function base64FromBytes2(arr) {
10176
10452
  return globalThis.Buffer.from(arr).toString("base64");
10177
10453
  }
10178
10454
  function isSet4(value) {