@lace-cloud/canvas 0.7.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -45,6 +45,8 @@ __export(index_exports, {
45
45
  LocalsContent: () => LocalsContent,
46
46
  LocalsPanel: () => LocalsPanel,
47
47
  ModuleConfigPanel: () => ModuleConfigPanel,
48
+ ModuleInterfaceContent: () => ModuleInterfaceContent,
49
+ ModuleInterfacePanel: () => ModuleInterfacePanel,
48
50
  ModuleNode: () => ModuleNode_default,
49
51
  PolicySidebar: () => PolicySidebar,
50
52
  PostMessageEngine: () => PostMessageEngine,
@@ -1037,8 +1039,8 @@ function AccordionSection({ title, defaultOpen = false, badge, children }) {
1037
1039
  }
1038
1040
 
1039
1041
  // src/components/panels/ModuleConfigPanel.tsx
1040
- var import_ModuleConfigPanel = require("./ModuleConfigPanel-UUJPO457.css");
1041
- var import_panels_shared = require("./panels-shared-5HTOXZUS.css");
1042
+ var import_ModuleConfigPanel = require("./ModuleConfigPanel-LZRL4F3Q.css");
1043
+ var import_panels_shared = require("./panels-shared-LLLB7PR4.css");
1042
1044
  var import_jsx_runtime7 = require("react/jsx-runtime");
1043
1045
  var MODE_ITEMS = [
1044
1046
  { value: "literal", label: "Lit" },
@@ -1079,6 +1081,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1079
1081
  []
1080
1082
  );
1081
1083
  const [localDependsOn, setLocalDependsOn] = (0, import_react8.useState)(/* @__PURE__ */ new Set());
1084
+ const [localProviders, setLocalProviders] = (0, import_react8.useState)([]);
1082
1085
  const [error, setError] = (0, import_react8.useState)(null);
1083
1086
  (0, import_react8.useEffect)(() => {
1084
1087
  let cancelled = false;
@@ -1100,6 +1103,9 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1100
1103
  }
1101
1104
  setInputState({ modes, values, variables, expressions });
1102
1105
  setLocalDependsOn(new Set(result.depends_on));
1106
+ setLocalProviders(
1107
+ Object.entries(result.providers ?? {}).map(([key, value]) => ({ key, value }))
1108
+ );
1103
1109
  }).catch((err) => {
1104
1110
  if (cancelled) return;
1105
1111
  console.error(`[ModuleConfigPanel] queryNodeConfig failed for "${instance_id}":`, err);
@@ -1160,6 +1166,12 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1160
1166
  );
1161
1167
  }
1162
1168
  await engine.setDependsOn(instance_id, [...localDependsOn]);
1169
+ const providersRecord = {};
1170
+ for (const { key, value } of localProviders) {
1171
+ const name = key.trim();
1172
+ if (name) providersRecord[name] = value.trim();
1173
+ }
1174
+ await engine.setUseProviders(instance_id, providersRecord);
1163
1175
  const requiredToCheck = config.inputs.filter((i) => i.required);
1164
1176
  const hasFilledRequired = requiredToCheck.length === 0 || requiredToCheck.some((input) => {
1165
1177
  const mode = localModes[input.name] ?? input.mode;
@@ -1399,6 +1411,73 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1399
1411
  ]
1400
1412
  }
1401
1413
  ),
1414
+ (localProviders.length > 0 || !readOnly) && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1415
+ AccordionSection,
1416
+ {
1417
+ title: "Providers",
1418
+ badge: localProviders.length > 0 ? `(${localProviders.length})` : void 0,
1419
+ children: [
1420
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "lace-mcp__depends-hint", children: [
1421
+ "Map each child-local provider name to the root provider reference passed down (e.g.",
1422
+ " ",
1423
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "aws" }),
1424
+ " \u2192 ",
1425
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "aws.west" }),
1426
+ ")."
1427
+ ] }),
1428
+ localProviders.map((row, i) => (
1429
+ // biome-ignore lint/suspicious/noArrayIndexKey: rows are positional and freely editable
1430
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "lace-mcp__provider-row", children: [
1431
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1432
+ import_ui2.Input,
1433
+ {
1434
+ value: row.key,
1435
+ onChange: (e) => setLocalProviders(
1436
+ (prev) => prev.map((r, j) => j === i ? { ...r, key: e.target.value } : r)
1437
+ ),
1438
+ placeholder: "child local (e.g. aws)",
1439
+ mono: true,
1440
+ readOnly
1441
+ }
1442
+ ),
1443
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "lace-mcp__provider-arrow", children: "=" }),
1444
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1445
+ import_ui2.Input,
1446
+ {
1447
+ value: row.value,
1448
+ onChange: (e) => setLocalProviders(
1449
+ (prev) => prev.map((r, j) => j === i ? { ...r, value: e.target.value } : r)
1450
+ ),
1451
+ placeholder: "root ref (e.g. aws.west)",
1452
+ mono: true,
1453
+ readOnly
1454
+ }
1455
+ ),
1456
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1457
+ import_ui2.Button,
1458
+ {
1459
+ variant: "danger",
1460
+ size: "sm",
1461
+ onClick: () => setLocalProviders((prev) => prev.filter((_, j) => j !== i)),
1462
+ title: "Remove this provider mapping",
1463
+ "aria-label": "Remove provider mapping",
1464
+ children: "\u2715"
1465
+ }
1466
+ )
1467
+ ] }, i)
1468
+ )),
1469
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1470
+ import_ui2.Button,
1471
+ {
1472
+ variant: "secondary",
1473
+ size: "sm",
1474
+ onClick: () => setLocalProviders((prev) => [...prev, { key: "", value: "" }]),
1475
+ children: "Add provider mapping"
1476
+ }
1477
+ )
1478
+ ]
1479
+ }
1480
+ ),
1402
1481
  config.outputs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(AccordionSection, { title: "Outputs", badge: `(${config.outputs.length})`, children: config.outputs.map((o) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "lace-mcp__output-card", children: [
1403
1482
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "lace-mcp__output-header", children: [
1404
1483
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("strong", { className: "lace-mcp__output-name", children: o.name }),
@@ -1413,7 +1492,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
1413
1492
  // src/components/panels/PolicySidebar.tsx
1414
1493
  var import_ui3 = require("@lace-cloud/ui");
1415
1494
  var import_react9 = require("react");
1416
- var import_panels_shared2 = require("./panels-shared-5HTOXZUS.css");
1495
+ var import_panels_shared2 = require("./panels-shared-LLLB7PR4.css");
1417
1496
  var import_jsx_runtime8 = require("react/jsx-runtime");
1418
1497
  var NODE_HOVER_EVENT = "lace:canvas:nodeHover";
1419
1498
  var HOVER_DEBOUNCE_MS = 150;
@@ -1809,7 +1888,7 @@ function SaveButton({ status, label, onClick, disabled, disabledTitle }) {
1809
1888
  }
1810
1889
 
1811
1890
  // src/components/panels/EnvironmentsPanel.tsx
1812
- var import_panels_shared3 = require("./panels-shared-5HTOXZUS.css");
1891
+ var import_panels_shared3 = require("./panels-shared-LLLB7PR4.css");
1813
1892
  var import_jsx_runtime11 = require("react/jsx-runtime");
1814
1893
  function toEnvRows(envs) {
1815
1894
  if (!envs) return [];
@@ -1992,7 +2071,7 @@ function EnvironmentsPanel({ environments, onSave, onClose }) {
1992
2071
  // src/components/panels/LocalsPanel.tsx
1993
2072
  var import_ui7 = require("@lace-cloud/ui");
1994
2073
  var import_react13 = require("react");
1995
- var import_panels_shared4 = require("./panels-shared-5HTOXZUS.css");
2074
+ var import_panels_shared4 = require("./panels-shared-LLLB7PR4.css");
1996
2075
  var import_jsx_runtime12 = require("react/jsx-runtime");
1997
2076
  function toRows(locals) {
1998
2077
  if (!locals) return [];
@@ -2128,7 +2207,7 @@ function LocalsPanel({ locals, onSave, onClose }) {
2128
2207
  // src/components/panels/ModuleInterfacePanel.tsx
2129
2208
  var import_ui8 = require("@lace-cloud/ui");
2130
2209
  var import_react14 = require("react");
2131
- var import_panels_shared5 = require("./panels-shared-5HTOXZUS.css");
2210
+ var import_panels_shared5 = require("./panels-shared-LLLB7PR4.css");
2132
2211
  var import_jsx_runtime13 = require("react/jsx-runtime");
2133
2212
  function variablesToRows(variables) {
2134
2213
  return variables.map((v) => ({
@@ -2137,15 +2216,29 @@ function variablesToRows(variables) {
2137
2216
  type: v.type,
2138
2217
  required: v.required,
2139
2218
  description: v.description ?? "",
2140
- default_value: v.default_value
2219
+ default_value: v.default_value,
2220
+ validation: (v.validation ?? []).map((b) => ({
2221
+ id: crypto.randomUUID(),
2222
+ condition: b.condition,
2223
+ error_message: b.error_message
2224
+ })),
2225
+ ephemeral: v.ephemeral ?? false,
2226
+ sensitive: v.sensitive ?? false,
2227
+ // Wire `nullable` is tri-state: unset means Terraform's default (null
2228
+ // allowed), so an absent value shows the toggle ON.
2229
+ nullable: v.nullable ?? true
2141
2230
  }));
2142
2231
  }
2143
- function buildOutputRows(view, exports2) {
2232
+ function buildOutputRows(view, exports2, outputDefs) {
2144
2233
  if (!view) return [];
2145
2234
  const exposedByKey = /* @__PURE__ */ new Map();
2146
2235
  for (const e of exports2) {
2147
2236
  exposedByKey.set(`${e.source_instance}|${e.source_output}`, { name: e.name });
2148
2237
  }
2238
+ const dependsOnByName = /* @__PURE__ */ new Map();
2239
+ for (const d of outputDefs) {
2240
+ if (d.depends_on && d.depends_on.length > 0) dependsOnByName.set(d.name, d.depends_on);
2241
+ }
2149
2242
  const sources = [];
2150
2243
  for (const node of view.nodes) {
2151
2244
  if (node.outputs.length > 0) sources.push({ id: node.id, outputs: node.outputs });
@@ -2160,6 +2253,7 @@ function buildOutputRows(view, exports2) {
2160
2253
  for (const out of src.outputs) {
2161
2254
  const key = `${src.id}|${out.name}`;
2162
2255
  const exposed = exposedByKey.get(key);
2256
+ const exposedName = exposed?.name ?? out.name;
2163
2257
  rows.push({
2164
2258
  id: crypto.randomUUID(),
2165
2259
  source_instance: src.id,
@@ -2168,7 +2262,8 @@ function buildOutputRows(view, exports2) {
2168
2262
  description: out.description ?? "",
2169
2263
  sensitive: out.sensitive ?? false,
2170
2264
  exposed: Boolean(exposed),
2171
- exposed_name: exposed?.name ?? out.name
2265
+ exposed_name: exposedName,
2266
+ depends_on: exposed ? dependsOnByName.get(exposedName) ?? [] : []
2172
2267
  });
2173
2268
  }
2174
2269
  }
@@ -2185,20 +2280,68 @@ function ModuleInterfaceContent({
2185
2280
  () => variablesToRows(settings.variables)
2186
2281
  );
2187
2282
  const [outputs, setOutputs] = (0, import_react14.useState)(
2188
- () => buildOutputRows(view, settings.exports)
2283
+ () => buildOutputRows(view, settings.exports, settings.output_defs)
2189
2284
  );
2285
+ const siblingModuleKeys = (0, import_react14.useMemo)(() => (view?.nodes ?? []).map((n) => `module.${n.id}`), [view]);
2190
2286
  const updateVariable = (0, import_react14.useCallback)(
2191
2287
  (index, field, value) => {
2192
2288
  setVariables((prev) => prev.map((v, i) => i === index ? { ...v, [field]: value } : v));
2193
2289
  },
2194
2290
  []
2195
2291
  );
2292
+ const addValidation = (0, import_react14.useCallback)((index) => {
2293
+ setVariables(
2294
+ (prev) => prev.map(
2295
+ (v, i) => i === index ? {
2296
+ ...v,
2297
+ validation: [
2298
+ ...v.validation,
2299
+ { id: crypto.randomUUID(), condition: "", error_message: "" }
2300
+ ]
2301
+ } : v
2302
+ )
2303
+ );
2304
+ }, []);
2305
+ const removeValidation = (0, import_react14.useCallback)((index, vIndex) => {
2306
+ setVariables(
2307
+ (prev) => prev.map(
2308
+ (v, i) => i === index ? { ...v, validation: v.validation.filter((_, j) => j !== vIndex) } : v
2309
+ )
2310
+ );
2311
+ }, []);
2312
+ const updateValidation = (0, import_react14.useCallback)(
2313
+ (index, vIndex, field, value) => {
2314
+ setVariables(
2315
+ (prev) => prev.map(
2316
+ (v, i) => i === index ? {
2317
+ ...v,
2318
+ validation: v.validation.map(
2319
+ (b, j) => j === vIndex ? { ...b, [field]: value } : b
2320
+ )
2321
+ } : v
2322
+ )
2323
+ );
2324
+ },
2325
+ []
2326
+ );
2196
2327
  const toggleExposed = (0, import_react14.useCallback)((index) => {
2197
2328
  setOutputs((prev) => prev.map((o, i) => i === index ? { ...o, exposed: !o.exposed } : o));
2198
2329
  }, []);
2199
2330
  const updateExposedName = (0, import_react14.useCallback)((index, value) => {
2200
2331
  setOutputs((prev) => prev.map((o, i) => i === index ? { ...o, exposed_name: value } : o));
2201
2332
  }, []);
2333
+ const toggleDependsOn = (0, import_react14.useCallback)((index, depKey) => {
2334
+ setOutputs(
2335
+ (prev) => prev.map((o, i) => {
2336
+ if (i !== index) return o;
2337
+ const has = o.depends_on.includes(depKey);
2338
+ return {
2339
+ ...o,
2340
+ depends_on: has ? o.depends_on.filter((k) => k !== depKey) : [...o.depends_on, depKey]
2341
+ };
2342
+ })
2343
+ );
2344
+ }, []);
2202
2345
  const exposedNameCollisions = (0, import_react14.useMemo)(() => {
2203
2346
  const counts = /* @__PURE__ */ new Map();
2204
2347
  for (const o of outputs) {
@@ -2223,13 +2366,28 @@ function ModuleInterfaceContent({
2223
2366
  const { status: saveStatus, handleSave } = useSaveState(
2224
2367
  (0, import_react14.useCallback)(async () => {
2225
2368
  if (hasErrors) return;
2226
- const variableDefs = variables.filter((v) => v.name.trim()).map((v) => ({
2227
- name: v.name.trim(),
2228
- type: v.type.trim() || "string",
2229
- required: v.required,
2230
- description: v.description.trim() || void 0,
2231
- default: v.default_value
2232
- }));
2369
+ const variableDefs = variables.filter((v) => v.name.trim()).map((v) => {
2370
+ const validation = v.validation.map((b) => ({ condition: b.condition.trim(), error_message: b.error_message.trim() })).filter((b) => b.condition || b.error_message);
2371
+ return {
2372
+ name: v.name.trim(),
2373
+ type: v.type.trim() || "string",
2374
+ required: v.required,
2375
+ description: v.description.trim() || void 0,
2376
+ default: v.default_value,
2377
+ validation: validation.length > 0 ? validation : void 0,
2378
+ ephemeral: v.ephemeral || void 0,
2379
+ // Send `false` (not undefined) so turning sensitive OFF actually
2380
+ // clears the stored flag — the settings tier assigns wholesale
2381
+ // (#849). An omitted value would default back to false at the
2382
+ // mapper, which is the same effect, but being explicit documents
2383
+ // that OFF is authorable.
2384
+ sensitive: v.sensitive,
2385
+ // `nullable` is tri-state on the wire (unset = default true). The
2386
+ // toggle ON preserves the default by omitting the field; OFF
2387
+ // authors an explicit `false`.
2388
+ nullable: v.nullable ? void 0 : false
2389
+ };
2390
+ });
2233
2391
  const exportDefs = [];
2234
2392
  const outputDefs = [];
2235
2393
  for (const o of outputs) {
@@ -2245,7 +2403,8 @@ function ModuleInterfaceContent({
2245
2403
  name,
2246
2404
  type: o.type,
2247
2405
  description: o.description || void 0,
2248
- sensitive: o.sensitive || void 0
2406
+ sensitive: o.sensitive || void 0,
2407
+ depends_on: o.depends_on.length > 0 ? o.depends_on : void 0
2249
2408
  });
2250
2409
  }
2251
2410
  await onSaveVariables(variableDefs);
@@ -2284,18 +2443,96 @@ function ModuleInterfaceContent({
2284
2443
  readOnly
2285
2444
  }
2286
2445
  ) }),
2287
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "lace-panel-checkbox-row", children: [
2288
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2289
- "input",
2290
- {
2291
- type: "checkbox",
2292
- checked: v.required,
2293
- onChange: (e) => updateVariable(i, "required", e.target.checked),
2294
- disabled: readOnly
2295
- }
2296
- ),
2297
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Required" })
2298
- ] }) })
2446
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "lace-panel-row-actions", children: [
2447
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "lace-panel-checkbox-row", children: [
2448
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2449
+ "input",
2450
+ {
2451
+ type: "checkbox",
2452
+ checked: v.required,
2453
+ onChange: (e) => updateVariable(i, "required", e.target.checked),
2454
+ disabled: readOnly
2455
+ }
2456
+ ),
2457
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Required" })
2458
+ ] }),
2459
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "lace-panel-checkbox-row", children: [
2460
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2461
+ "input",
2462
+ {
2463
+ type: "checkbox",
2464
+ checked: v.ephemeral,
2465
+ onChange: (e) => updateVariable(i, "ephemeral", e.target.checked),
2466
+ disabled: readOnly
2467
+ }
2468
+ ),
2469
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Ephemeral" })
2470
+ ] }),
2471
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "lace-panel-checkbox-row", children: [
2472
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2473
+ "input",
2474
+ {
2475
+ type: "checkbox",
2476
+ checked: v.sensitive,
2477
+ onChange: (e) => updateVariable(i, "sensitive", e.target.checked),
2478
+ disabled: readOnly
2479
+ }
2480
+ ),
2481
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Sensitive" })
2482
+ ] }),
2483
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "lace-panel-checkbox-row", children: [
2484
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2485
+ "input",
2486
+ {
2487
+ type: "checkbox",
2488
+ checked: v.nullable,
2489
+ onChange: (e) => updateVariable(i, "nullable", e.target.checked),
2490
+ disabled: readOnly
2491
+ }
2492
+ ),
2493
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Nullable" })
2494
+ ] })
2495
+ ] }),
2496
+ (v.validation.length > 0 || !readOnly) && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "lace-panel-row-content", children: [
2497
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "lace-panel-subsection-label", children: "Validation" }),
2498
+ v.validation.map((block, j) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "lace-panel-validation-block", children: [
2499
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2500
+ import_ui8.Input,
2501
+ {
2502
+ value: block.condition,
2503
+ onChange: (e) => updateValidation(i, j, "condition", e.target.value),
2504
+ placeholder: "condition (e.g. length(var.x) > 0)",
2505
+ "aria-label": "Validation condition",
2506
+ fullWidth: true,
2507
+ mono: true,
2508
+ readOnly
2509
+ }
2510
+ ),
2511
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2512
+ import_ui8.Input,
2513
+ {
2514
+ value: block.error_message,
2515
+ onChange: (e) => updateValidation(i, j, "error_message", e.target.value),
2516
+ placeholder: "error message",
2517
+ "aria-label": "Validation error message",
2518
+ fullWidth: true,
2519
+ readOnly
2520
+ }
2521
+ ),
2522
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2523
+ import_ui8.Button,
2524
+ {
2525
+ variant: "danger",
2526
+ size: "sm",
2527
+ onClick: () => removeValidation(i, j),
2528
+ "aria-label": "Remove validation rule",
2529
+ title: "Remove validation rule",
2530
+ children: "\u2715"
2531
+ }
2532
+ )
2533
+ ] }, block.id)),
2534
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ui8.Button, { variant: "secondary", size: "sm", onClick: () => addValidation(i), children: "+ Add validation rule" })
2535
+ ] })
2299
2536
  ] }, v.id)),
2300
2537
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("h4", { className: "lace-panel-section-title", children: "Outputs" }),
2301
2538
  outputs.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "lace-panel-hint", children: "No child outputs available yet. Drop a module onto the canvas to see its outputs here." }) : outputs.map((o, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
@@ -2327,6 +2564,20 @@ function ModuleInterfaceContent({
2327
2564
  error: exposedNameCollisions.has(i)
2328
2565
  }
2329
2566
  ) }) : null,
2567
+ o.exposed && (o.depends_on.length > 0 || !readOnly && siblingModuleKeys.length > 0) ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "lace-panel-row-content", children: [
2568
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "lace-panel-subsection-label", children: "Depends on" }),
2569
+ readOnly ? o.depends_on.map((depKey) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "lace-panel-depends-item", children: depKey }, depKey)) : siblingModuleKeys.map((depKey) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: "lace-panel-checkbox-row", children: [
2570
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2571
+ "input",
2572
+ {
2573
+ type: "checkbox",
2574
+ checked: o.depends_on.includes(depKey),
2575
+ onChange: () => toggleDependsOn(i, depKey)
2576
+ }
2577
+ ),
2578
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "lace-panel-checkbox-row__source", children: depKey })
2579
+ ] }, depKey))
2580
+ ] }) : null,
2330
2581
  exposedNameCollisions.has(i) ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "lace-panel-row-error", children: "Exposed name must be unique and non-empty." }) : null
2331
2582
  ] }, o.id)),
2332
2583
  !readOnly && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
@@ -2341,11 +2592,30 @@ function ModuleInterfaceContent({
2341
2592
  )
2342
2593
  ] });
2343
2594
  }
2595
+ function ModuleInterfacePanel({
2596
+ settings,
2597
+ view,
2598
+ readOnly = false,
2599
+ onSaveVariables,
2600
+ onSaveExports,
2601
+ onClose
2602
+ }) {
2603
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ui8.Panel, { title: "Module Interface", onClose, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2604
+ ModuleInterfaceContent,
2605
+ {
2606
+ settings,
2607
+ view,
2608
+ readOnly,
2609
+ onSaveVariables,
2610
+ onSaveExports
2611
+ }
2612
+ ) });
2613
+ }
2344
2614
 
2345
2615
  // src/components/panels/ModuleMetadataPanel.tsx
2346
2616
  var import_ui9 = require("@lace-cloud/ui");
2347
2617
  var import_react15 = require("react");
2348
- var import_panels_shared6 = require("./panels-shared-5HTOXZUS.css");
2618
+ var import_panels_shared6 = require("./panels-shared-LLLB7PR4.css");
2349
2619
  var import_jsx_runtime14 = require("react/jsx-runtime");
2350
2620
  var ID_PATTERN = /^[a-z0-9_-]+\/[a-z0-9_-]+\/[a-z0-9_-]+$/;
2351
2621
  var NAME_PATTERN = /^[a-z][a-z0-9_-]*$/;
@@ -2601,12 +2871,12 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
2601
2871
  }
2602
2872
 
2603
2873
  // src/components/panels/UnifiedSettingsPanel.tsx
2604
- var import_panels_shared9 = require("./panels-shared-5HTOXZUS.css");
2874
+ var import_panels_shared9 = require("./panels-shared-LLLB7PR4.css");
2605
2875
 
2606
2876
  // src/components/panels/ProvidersPanel.tsx
2607
2877
  var import_ui10 = require("@lace-cloud/ui");
2608
2878
  var import_react16 = require("react");
2609
- var import_panels_shared7 = require("./panels-shared-5HTOXZUS.css");
2879
+ var import_panels_shared7 = require("./panels-shared-LLLB7PR4.css");
2610
2880
  var import_jsx_runtime15 = require("react/jsx-runtime");
2611
2881
  function toRows2(providers) {
2612
2882
  if (!providers || providers.length === 0) return [];
@@ -2618,7 +2888,8 @@ function toRows2(providers) {
2618
2888
  id: crypto.randomUUID(),
2619
2889
  key,
2620
2890
  value: String(value)
2621
- }))
2891
+ })),
2892
+ blocks: p.blocks ?? []
2622
2893
  }));
2623
2894
  }
2624
2895
  function fromRows2(rows) {
@@ -2632,10 +2903,16 @@ function fromRows2(rows) {
2632
2903
  return {
2633
2904
  name: r.name.trim(),
2634
2905
  alias: r.alias.trim() || "",
2635
- config
2906
+ config,
2907
+ // Echo the nested blocks verbatim so a config edit never wipes them.
2908
+ blocks: r.blocks.length > 0 ? r.blocks : void 0
2636
2909
  };
2637
2910
  });
2638
2911
  }
2912
+ function blockLabel(block) {
2913
+ const labels = block.labels.length > 0 ? ` ${block.labels.map((l) => `"${l}"`).join(" ")}` : "";
2914
+ return `${block.type}${labels}`;
2915
+ }
2639
2916
  function ProvidersContent({ providers, readOnly = false, onSave }) {
2640
2917
  const [rows, setRows] = (0, import_react16.useState)(() => toRows2(providers));
2641
2918
  const addProvider = (0, import_react16.useCallback)(() => {
@@ -2645,7 +2922,8 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
2645
2922
  id: crypto.randomUUID(),
2646
2923
  name: "",
2647
2924
  alias: "",
2648
- configEntries: [{ id: crypto.randomUUID(), key: "", value: "" }]
2925
+ configEntries: [{ id: crypto.randomUUID(), key: "", value: "" }],
2926
+ blocks: []
2649
2927
  }
2650
2928
  ]);
2651
2929
  }, []);
@@ -2767,7 +3045,18 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
2767
3045
  className: "lace-panel-add-btn lace-panel-add-btn--sm",
2768
3046
  children: "+ Add config key"
2769
3047
  }
2770
- )
3048
+ ),
3049
+ row.blocks.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
3050
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "lace-panel-row-sublabel", children: "Nested blocks (read-only)" }),
3051
+ row.blocks.map((block, bi) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3052
+ "div",
3053
+ {
3054
+ className: "lace-panel-depends-item",
3055
+ children: blockLabel(block)
3056
+ },
3057
+ `${row.id}-block-${bi}`
3058
+ ))
3059
+ ] }) : null
2771
3060
  ] }, row.id)),
2772
3061
  !readOnly && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
2773
3062
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
@@ -2775,14 +3064,14 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
2775
3064
  ] })
2776
3065
  ] });
2777
3066
  }
2778
- function ProvidersPanel({ providers, onSave, onClose }) {
2779
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui10.Panel, { title: "Providers", onClose, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ProvidersContent, { providers, onSave }) });
3067
+ function ProvidersPanel({ providers, readOnly = false, onSave, onClose }) {
3068
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui10.Panel, { title: "Providers", onClose, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ProvidersContent, { providers, readOnly, onSave }) });
2780
3069
  }
2781
3070
 
2782
3071
  // src/components/panels/TerraformConfigPanel.tsx
2783
3072
  var import_ui11 = require("@lace-cloud/ui");
2784
3073
  var import_react17 = require("react");
2785
- var import_panels_shared8 = require("./panels-shared-5HTOXZUS.css");
3074
+ var import_panels_shared8 = require("./panels-shared-LLLB7PR4.css");
2786
3075
  var import_jsx_runtime16 = require("react/jsx-runtime");
2787
3076
  function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
2788
3077
  const [requiredVersion, setRequiredVersion] = (0, import_react17.useState)(terraform?.required_version ?? "");
@@ -2792,13 +3081,14 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
2792
3081
  id: crypto.randomUUID(),
2793
3082
  name: req.name,
2794
3083
  source: req.source ?? "",
2795
- version: req.version ?? ""
3084
+ version: req.version ?? "",
3085
+ configuration_aliases: req.configuration_aliases ?? []
2796
3086
  }));
2797
3087
  });
2798
3088
  const addProvider = (0, import_react17.useCallback)(() => {
2799
3089
  setProviders((prev) => [
2800
3090
  ...prev,
2801
- { id: crypto.randomUUID(), name: "", source: "", version: "" }
3091
+ { id: crypto.randomUUID(), name: "", source: "", version: "", configuration_aliases: [] }
2802
3092
  ]);
2803
3093
  }, []);
2804
3094
  const removeProvider = (0, import_react17.useCallback)((index) => {
@@ -2817,7 +3107,8 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
2817
3107
  required_providers: providers.filter((p) => p.name.trim()).map((p) => ({
2818
3108
  name: p.name.trim(),
2819
3109
  source: p.source.trim(),
2820
- version: p.version.trim()
3110
+ version: p.version.trim(),
3111
+ configuration_aliases: p.configuration_aliases.length > 0 ? p.configuration_aliases : void 0
2821
3112
  }))
2822
3113
  };
2823
3114
  await onSave(block);
@@ -2877,6 +3168,16 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
2877
3168
  fullWidth: true,
2878
3169
  readOnly
2879
3170
  }
3171
+ ) }),
3172
+ p.configuration_aliases.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3173
+ import_ui11.Input,
3174
+ {
3175
+ value: p.configuration_aliases.join(", "),
3176
+ "aria-label": `${p.name || "provider"} configuration_aliases`,
3177
+ placeholder: "configuration_aliases",
3178
+ fullWidth: true,
3179
+ readOnly: true
3180
+ }
2880
3181
  ) })
2881
3182
  ] }, p.id)),
2882
3183
  !readOnly && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
@@ -2939,7 +3240,8 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
2939
3240
  terraform.required_providers.length > 0 ? terraform.required_providers.map((p) => ({
2940
3241
  name: p.name,
2941
3242
  source: p.source,
2942
- version: p.version
3243
+ version: p.version,
3244
+ configuration_aliases: p.configuration_aliases
2943
3245
  })) : void 0
2944
3246
  );
2945
3247
  onSaved?.();
@@ -2956,7 +3258,8 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
2956
3258
  providers.map((p) => ({
2957
3259
  name: p.name,
2958
3260
  alias: p.alias,
2959
- config: p.config
3261
+ config: p.config,
3262
+ blocks: p.blocks
2960
3263
  }))
2961
3264
  );
2962
3265
  onSaved?.();
@@ -5705,9 +6008,10 @@ function createBaseInputDef() {
5705
6008
  required: false,
5706
6009
  description: "",
5707
6010
  default_value: void 0,
5708
- validation: void 0,
6011
+ validation: [],
5709
6012
  sensitive: false,
5710
- nullable: void 0
6013
+ nullable: void 0,
6014
+ ephemeral: void 0
5711
6015
  };
5712
6016
  }
5713
6017
  var InputDef = {
@@ -5727,8 +6031,8 @@ var InputDef = {
5727
6031
  if (message.default_value !== void 0) {
5728
6032
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
5729
6033
  }
5730
- if (message.validation !== void 0) {
5731
- ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
6034
+ for (const v of message.validation) {
6035
+ ValidationBlock.encode(v, writer.uint32(50).fork()).join();
5732
6036
  }
5733
6037
  if (message.sensitive !== false) {
5734
6038
  writer.uint32(56).bool(message.sensitive);
@@ -5736,6 +6040,9 @@ var InputDef = {
5736
6040
  if (message.nullable !== void 0) {
5737
6041
  writer.uint32(64).bool(message.nullable);
5738
6042
  }
6043
+ if (message.ephemeral !== void 0) {
6044
+ writer.uint32(72).bool(message.ephemeral);
6045
+ }
5739
6046
  return writer;
5740
6047
  },
5741
6048
  decode(input, length) {
@@ -5784,7 +6091,7 @@ var InputDef = {
5784
6091
  if (tag !== 50) {
5785
6092
  break;
5786
6093
  }
5787
- message.validation = ValidationBlock.decode(reader, reader.uint32());
6094
+ message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
5788
6095
  continue;
5789
6096
  }
5790
6097
  case 7: {
@@ -5801,6 +6108,13 @@ var InputDef = {
5801
6108
  message.nullable = reader.bool();
5802
6109
  continue;
5803
6110
  }
6111
+ case 9: {
6112
+ if (tag !== 72) {
6113
+ break;
6114
+ }
6115
+ message.ephemeral = reader.bool();
6116
+ continue;
6117
+ }
5804
6118
  }
5805
6119
  if ((tag & 7) === 4 || tag === 0) {
5806
6120
  break;
@@ -5816,9 +6130,10 @@ var InputDef = {
5816
6130
  required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
5817
6131
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
5818
6132
  default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
5819
- validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
6133
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
5820
6134
  sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
5821
- nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
6135
+ nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
6136
+ ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
5822
6137
  };
5823
6138
  },
5824
6139
  toJSON(message) {
@@ -5838,8 +6153,8 @@ var InputDef = {
5838
6153
  if (message.default_value !== void 0) {
5839
6154
  obj.defaultValue = message.default_value;
5840
6155
  }
5841
- if (message.validation !== void 0) {
5842
- obj.validation = ValidationBlock.toJSON(message.validation);
6156
+ if (message.validation?.length) {
6157
+ obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
5843
6158
  }
5844
6159
  if (message.sensitive !== false) {
5845
6160
  obj.sensitive = message.sensitive;
@@ -5847,6 +6162,9 @@ var InputDef = {
5847
6162
  if (message.nullable !== void 0) {
5848
6163
  obj.nullable = message.nullable;
5849
6164
  }
6165
+ if (message.ephemeral !== void 0) {
6166
+ obj.ephemeral = message.ephemeral;
6167
+ }
5850
6168
  return obj;
5851
6169
  },
5852
6170
  create(base) {
@@ -5859,9 +6177,10 @@ var InputDef = {
5859
6177
  message.required = object.required ?? false;
5860
6178
  message.description = object.description ?? "";
5861
6179
  message.default_value = object.default_value ?? void 0;
5862
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
6180
+ message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
5863
6181
  message.sensitive = object.sensitive ?? false;
5864
6182
  message.nullable = object.nullable ?? void 0;
6183
+ message.ephemeral = object.ephemeral ?? void 0;
5865
6184
  return message;
5866
6185
  }
5867
6186
  };
@@ -5934,7 +6253,7 @@ var ValidationBlock = {
5934
6253
  }
5935
6254
  };
5936
6255
  function createBaseOutputDef() {
5937
- return { name: "", type: "", description: "", sensitive: false };
6256
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
5938
6257
  }
5939
6258
  var OutputDef = {
5940
6259
  encode(message, writer = new import_wire3.BinaryWriter()) {
@@ -5950,6 +6269,9 @@ var OutputDef = {
5950
6269
  if (message.sensitive !== false) {
5951
6270
  writer.uint32(32).bool(message.sensitive);
5952
6271
  }
6272
+ for (const v of message.depends_on) {
6273
+ writer.uint32(42).string(v);
6274
+ }
5953
6275
  return writer;
5954
6276
  },
5955
6277
  decode(input, length) {
@@ -5987,6 +6309,13 @@ var OutputDef = {
5987
6309
  message.sensitive = reader.bool();
5988
6310
  continue;
5989
6311
  }
6312
+ case 5: {
6313
+ if (tag !== 42) {
6314
+ break;
6315
+ }
6316
+ message.depends_on.push(reader.string());
6317
+ continue;
6318
+ }
5990
6319
  }
5991
6320
  if ((tag & 7) === 4 || tag === 0) {
5992
6321
  break;
@@ -6000,7 +6329,8 @@ var OutputDef = {
6000
6329
  name: isSet2(object.name) ? globalThis.String(object.name) : "",
6001
6330
  type: isSet2(object.type) ? globalThis.String(object.type) : "",
6002
6331
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
6003
- sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
6332
+ sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
6333
+ depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : []
6004
6334
  };
6005
6335
  },
6006
6336
  toJSON(message) {
@@ -6017,6 +6347,9 @@ var OutputDef = {
6017
6347
  if (message.sensitive !== false) {
6018
6348
  obj.sensitive = message.sensitive;
6019
6349
  }
6350
+ if (message.depends_on?.length) {
6351
+ obj.dependsOn = message.depends_on;
6352
+ }
6020
6353
  return obj;
6021
6354
  },
6022
6355
  create(base) {
@@ -6028,6 +6361,7 @@ var OutputDef = {
6028
6361
  message.type = object.type ?? "";
6029
6362
  message.description = object.description ?? "";
6030
6363
  message.sensitive = object.sensitive ?? false;
6364
+ message.depends_on = object.depends_on?.map((e) => e) || [];
6031
6365
  return message;
6032
6366
  }
6033
6367
  };
@@ -6213,7 +6547,7 @@ var Local = {
6213
6547
  }
6214
6548
  };
6215
6549
  function createBaseUse() {
6216
- return { id: "", module: "", inputs: {}, depends_on: [] };
6550
+ return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
6217
6551
  }
6218
6552
  var Use = {
6219
6553
  encode(message, writer = new import_wire3.BinaryWriter()) {
@@ -6229,6 +6563,12 @@ var Use = {
6229
6563
  for (const v of message.depends_on) {
6230
6564
  writer.uint32(34).string(v);
6231
6565
  }
6566
+ if (message.count !== void 0) {
6567
+ Binding.encode(message.count, writer.uint32(42).fork()).join();
6568
+ }
6569
+ if (message.for_each !== void 0) {
6570
+ Binding.encode(message.for_each, writer.uint32(50).fork()).join();
6571
+ }
6232
6572
  return writer;
6233
6573
  },
6234
6574
  decode(input, length) {
@@ -6269,6 +6609,20 @@ var Use = {
6269
6609
  message.depends_on.push(reader.string());
6270
6610
  continue;
6271
6611
  }
6612
+ case 5: {
6613
+ if (tag !== 42) {
6614
+ break;
6615
+ }
6616
+ message.count = Binding.decode(reader, reader.uint32());
6617
+ continue;
6618
+ }
6619
+ case 6: {
6620
+ if (tag !== 50) {
6621
+ break;
6622
+ }
6623
+ message.for_each = Binding.decode(reader, reader.uint32());
6624
+ continue;
6625
+ }
6272
6626
  }
6273
6627
  if ((tag & 7) === 4 || tag === 0) {
6274
6628
  break;
@@ -6288,7 +6642,9 @@ var Use = {
6288
6642
  },
6289
6643
  {}
6290
6644
  ) : {},
6291
- depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : []
6645
+ depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
6646
+ count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
6647
+ for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
6292
6648
  };
6293
6649
  },
6294
6650
  toJSON(message) {
@@ -6311,6 +6667,12 @@ var Use = {
6311
6667
  if (message.depends_on?.length) {
6312
6668
  obj.dependsOn = message.depends_on;
6313
6669
  }
6670
+ if (message.count !== void 0) {
6671
+ obj.count = Binding.toJSON(message.count);
6672
+ }
6673
+ if (message.for_each !== void 0) {
6674
+ obj.forEach = Binding.toJSON(message.for_each);
6675
+ }
6314
6676
  return obj;
6315
6677
  },
6316
6678
  create(base) {
@@ -6330,6 +6692,8 @@ var Use = {
6330
6692
  {}
6331
6693
  );
6332
6694
  message.depends_on = object.depends_on?.map((e) => e) || [];
6695
+ message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
6696
+ message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
6333
6697
  return message;
6334
6698
  }
6335
6699
  };
@@ -7738,9 +8102,7 @@ var ProviderConfig = {
7738
8102
  writer.uint32(18).string(message.alias);
7739
8103
  }
7740
8104
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
7741
- if (value !== void 0) {
7742
- ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
7743
- }
8105
+ ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
7744
8106
  });
7745
8107
  for (const v of message.blocks) {
7746
8108
  Block.encode(v, writer.uint32(34).fork()).join();
@@ -7799,7 +8161,7 @@ var ProviderConfig = {
7799
8161
  alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
7800
8162
  config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
7801
8163
  (acc, [key, value]) => {
7802
- acc[key] = value;
8164
+ acc[key] = Binding.fromJSON(value);
7803
8165
  return acc;
7804
8166
  },
7805
8167
  {}
@@ -7820,7 +8182,7 @@ var ProviderConfig = {
7820
8182
  if (entries.length > 0) {
7821
8183
  obj.config = {};
7822
8184
  entries.forEach(([k, v]) => {
7823
- obj.config[k] = v;
8185
+ obj.config[k] = Binding.toJSON(v);
7824
8186
  });
7825
8187
  }
7826
8188
  }
@@ -7839,7 +8201,7 @@ var ProviderConfig = {
7839
8201
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
7840
8202
  (acc, [key, value]) => {
7841
8203
  if (value !== void 0) {
7842
- acc[key] = value;
8204
+ acc[key] = Binding.fromPartial(value);
7843
8205
  }
7844
8206
  return acc;
7845
8207
  },
@@ -7858,7 +8220,7 @@ var ProviderConfig_ConfigEntry = {
7858
8220
  writer.uint32(10).string(message.key);
7859
8221
  }
7860
8222
  if (message.value !== void 0) {
7861
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
8223
+ Binding.encode(message.value, writer.uint32(18).fork()).join();
7862
8224
  }
7863
8225
  return writer;
7864
8226
  },
@@ -7880,7 +8242,7 @@ var ProviderConfig_ConfigEntry = {
7880
8242
  if (tag !== 18) {
7881
8243
  break;
7882
8244
  }
7883
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
8245
+ message.value = Binding.decode(reader, reader.uint32());
7884
8246
  continue;
7885
8247
  }
7886
8248
  }
@@ -7894,7 +8256,7 @@ var ProviderConfig_ConfigEntry = {
7894
8256
  fromJSON(object) {
7895
8257
  return {
7896
8258
  key: isSet2(object.key) ? globalThis.String(object.key) : "",
7897
- value: isSet2(object?.value) ? object.value : void 0
8259
+ value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
7898
8260
  };
7899
8261
  },
7900
8262
  toJSON(message) {
@@ -7903,7 +8265,7 @@ var ProviderConfig_ConfigEntry = {
7903
8265
  obj.key = message.key;
7904
8266
  }
7905
8267
  if (message.value !== void 0) {
7906
- obj.value = message.value;
8268
+ obj.value = Binding.toJSON(message.value);
7907
8269
  }
7908
8270
  return obj;
7909
8271
  },
@@ -7913,7 +8275,7 @@ var ProviderConfig_ConfigEntry = {
7913
8275
  fromPartial(object) {
7914
8276
  const message = createBaseProviderConfig_ConfigEntry();
7915
8277
  message.key = object.key ?? "";
7916
- message.value = object.value ?? void 0;
8278
+ message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
7917
8279
  return message;
7918
8280
  }
7919
8281
  };
@@ -12084,27 +12446,23 @@ var SetDependsOnAction = {
12084
12446
  return message;
12085
12447
  }
12086
12448
  };
12087
- function createBaseSetEnvironmentsAction() {
12088
- return { environments: {}, environment_backends: {} };
12449
+ function createBaseSetUseProvidersAction() {
12450
+ return { instance_id: "", providers: {} };
12089
12451
  }
12090
- var SetEnvironmentsAction = {
12452
+ var SetUseProvidersAction = {
12091
12453
  encode(message, writer = new import_wire4.BinaryWriter()) {
12092
- globalThis.Object.entries(message.environments).forEach(
12093
- ([key, value]) => {
12094
- if (value !== void 0) {
12095
- SetEnvironmentsAction_EnvironmentsEntry.encode({ key, value }, writer.uint32(10).fork()).join();
12096
- }
12097
- }
12098
- );
12099
- globalThis.Object.entries(message.environment_backends).forEach(([key, value]) => {
12100
- SetEnvironmentsAction_EnvironmentBackendsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
12454
+ if (message.instance_id !== "") {
12455
+ writer.uint32(10).string(message.instance_id);
12456
+ }
12457
+ globalThis.Object.entries(message.providers).forEach(([key, value]) => {
12458
+ SetUseProvidersAction_ProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
12101
12459
  });
12102
12460
  return writer;
12103
12461
  },
12104
12462
  decode(input, length) {
12105
12463
  const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
12106
12464
  const end = length === void 0 ? reader.len : reader.pos + length;
12107
- const message = createBaseSetEnvironmentsAction();
12465
+ const message = createBaseSetUseProvidersAction();
12108
12466
  while (reader.pos < end) {
12109
12467
  const tag = reader.uint32();
12110
12468
  switch (tag >>> 3) {
@@ -12112,19 +12470,16 @@ var SetEnvironmentsAction = {
12112
12470
  if (tag !== 10) {
12113
12471
  break;
12114
12472
  }
12115
- const entry1 = SetEnvironmentsAction_EnvironmentsEntry.decode(reader, reader.uint32());
12116
- if (entry1.value !== void 0) {
12117
- message.environments[entry1.key] = entry1.value;
12118
- }
12473
+ message.instance_id = reader.string();
12119
12474
  continue;
12120
12475
  }
12121
12476
  case 2: {
12122
12477
  if (tag !== 18) {
12123
12478
  break;
12124
12479
  }
12125
- const entry2 = SetEnvironmentsAction_EnvironmentBackendsEntry.decode(reader, reader.uint32());
12480
+ const entry2 = SetUseProvidersAction_ProvidersEntry.decode(reader, reader.uint32());
12126
12481
  if (entry2.value !== void 0) {
12127
- message.environment_backends[entry2.key] = entry2.value;
12482
+ message.providers[entry2.key] = entry2.value;
12128
12483
  }
12129
12484
  continue;
12130
12485
  }
@@ -12138,22 +12493,10 @@ var SetEnvironmentsAction = {
12138
12493
  },
12139
12494
  fromJSON(object) {
12140
12495
  return {
12141
- environments: isObject3(object.environments) ? globalThis.Object.entries(object.environments).reduce(
12142
- (acc, [key, value]) => {
12143
- acc[key] = value;
12144
- return acc;
12145
- },
12146
- {}
12147
- ) : {},
12148
- environment_backends: isObject3(object.environmentBackends) ? globalThis.Object.entries(object.environmentBackends).reduce(
12149
- (acc, [key, value]) => {
12150
- acc[key] = BackendView.fromJSON(value);
12151
- return acc;
12152
- },
12153
- {}
12154
- ) : isObject3(object.environment_backends) ? globalThis.Object.entries(object.environment_backends).reduce(
12496
+ instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
12497
+ providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
12155
12498
  (acc, [key, value]) => {
12156
- acc[key] = BackendView.fromJSON(value);
12499
+ acc[key] = globalThis.String(value);
12157
12500
  return acc;
12158
12501
  },
12159
12502
  {}
@@ -12162,48 +12505,226 @@ var SetEnvironmentsAction = {
12162
12505
  },
12163
12506
  toJSON(message) {
12164
12507
  const obj = {};
12165
- if (message.environments) {
12166
- const entries = globalThis.Object.entries(message.environments);
12167
- if (entries.length > 0) {
12168
- obj.environments = {};
12169
- entries.forEach(([k, v]) => {
12170
- obj.environments[k] = v;
12171
- });
12172
- }
12508
+ if (message.instance_id !== "") {
12509
+ obj.instanceId = message.instance_id;
12173
12510
  }
12174
- if (message.environment_backends) {
12175
- const entries = globalThis.Object.entries(message.environment_backends);
12511
+ if (message.providers) {
12512
+ const entries = globalThis.Object.entries(message.providers);
12176
12513
  if (entries.length > 0) {
12177
- obj.environmentBackends = {};
12514
+ obj.providers = {};
12178
12515
  entries.forEach(([k, v]) => {
12179
- obj.environmentBackends[k] = BackendView.toJSON(v);
12516
+ obj.providers[k] = v;
12180
12517
  });
12181
12518
  }
12182
12519
  }
12183
12520
  return obj;
12184
12521
  },
12185
12522
  create(base) {
12186
- return SetEnvironmentsAction.fromPartial(base ?? {});
12523
+ return SetUseProvidersAction.fromPartial(base ?? {});
12187
12524
  },
12188
12525
  fromPartial(object) {
12189
- const message = createBaseSetEnvironmentsAction();
12190
- message.environments = globalThis.Object.entries(object.environments ?? {}).reduce(
12526
+ const message = createBaseSetUseProvidersAction();
12527
+ message.instance_id = object.instance_id ?? "";
12528
+ message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
12191
12529
  (acc, [key, value]) => {
12192
12530
  if (value !== void 0) {
12193
- acc[key] = value;
12531
+ acc[key] = globalThis.String(value);
12194
12532
  }
12195
12533
  return acc;
12196
12534
  },
12197
12535
  {}
12198
12536
  );
12199
- message.environment_backends = globalThis.Object.entries(object.environment_backends ?? {}).reduce(
12200
- (acc, [key, value]) => {
12201
- if (value !== void 0) {
12202
- acc[key] = BackendView.fromPartial(value);
12203
- }
12204
- return acc;
12205
- },
12206
- {}
12537
+ return message;
12538
+ }
12539
+ };
12540
+ function createBaseSetUseProvidersAction_ProvidersEntry() {
12541
+ return { key: "", value: "" };
12542
+ }
12543
+ var SetUseProvidersAction_ProvidersEntry = {
12544
+ encode(message, writer = new import_wire4.BinaryWriter()) {
12545
+ if (message.key !== "") {
12546
+ writer.uint32(10).string(message.key);
12547
+ }
12548
+ if (message.value !== "") {
12549
+ writer.uint32(18).string(message.value);
12550
+ }
12551
+ return writer;
12552
+ },
12553
+ decode(input, length) {
12554
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
12555
+ const end = length === void 0 ? reader.len : reader.pos + length;
12556
+ const message = createBaseSetUseProvidersAction_ProvidersEntry();
12557
+ while (reader.pos < end) {
12558
+ const tag = reader.uint32();
12559
+ switch (tag >>> 3) {
12560
+ case 1: {
12561
+ if (tag !== 10) {
12562
+ break;
12563
+ }
12564
+ message.key = reader.string();
12565
+ continue;
12566
+ }
12567
+ case 2: {
12568
+ if (tag !== 18) {
12569
+ break;
12570
+ }
12571
+ message.value = reader.string();
12572
+ continue;
12573
+ }
12574
+ }
12575
+ if ((tag & 7) === 4 || tag === 0) {
12576
+ break;
12577
+ }
12578
+ reader.skip(tag & 7);
12579
+ }
12580
+ return message;
12581
+ },
12582
+ fromJSON(object) {
12583
+ return {
12584
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
12585
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
12586
+ };
12587
+ },
12588
+ toJSON(message) {
12589
+ const obj = {};
12590
+ if (message.key !== "") {
12591
+ obj.key = message.key;
12592
+ }
12593
+ if (message.value !== "") {
12594
+ obj.value = message.value;
12595
+ }
12596
+ return obj;
12597
+ },
12598
+ create(base) {
12599
+ return SetUseProvidersAction_ProvidersEntry.fromPartial(base ?? {});
12600
+ },
12601
+ fromPartial(object) {
12602
+ const message = createBaseSetUseProvidersAction_ProvidersEntry();
12603
+ message.key = object.key ?? "";
12604
+ message.value = object.value ?? "";
12605
+ return message;
12606
+ }
12607
+ };
12608
+ function createBaseSetEnvironmentsAction() {
12609
+ return { environments: {}, environment_backends: {} };
12610
+ }
12611
+ var SetEnvironmentsAction = {
12612
+ encode(message, writer = new import_wire4.BinaryWriter()) {
12613
+ globalThis.Object.entries(message.environments).forEach(
12614
+ ([key, value]) => {
12615
+ if (value !== void 0) {
12616
+ SetEnvironmentsAction_EnvironmentsEntry.encode({ key, value }, writer.uint32(10).fork()).join();
12617
+ }
12618
+ }
12619
+ );
12620
+ globalThis.Object.entries(message.environment_backends).forEach(([key, value]) => {
12621
+ SetEnvironmentsAction_EnvironmentBackendsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
12622
+ });
12623
+ return writer;
12624
+ },
12625
+ decode(input, length) {
12626
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
12627
+ const end = length === void 0 ? reader.len : reader.pos + length;
12628
+ const message = createBaseSetEnvironmentsAction();
12629
+ while (reader.pos < end) {
12630
+ const tag = reader.uint32();
12631
+ switch (tag >>> 3) {
12632
+ case 1: {
12633
+ if (tag !== 10) {
12634
+ break;
12635
+ }
12636
+ const entry1 = SetEnvironmentsAction_EnvironmentsEntry.decode(reader, reader.uint32());
12637
+ if (entry1.value !== void 0) {
12638
+ message.environments[entry1.key] = entry1.value;
12639
+ }
12640
+ continue;
12641
+ }
12642
+ case 2: {
12643
+ if (tag !== 18) {
12644
+ break;
12645
+ }
12646
+ const entry2 = SetEnvironmentsAction_EnvironmentBackendsEntry.decode(reader, reader.uint32());
12647
+ if (entry2.value !== void 0) {
12648
+ message.environment_backends[entry2.key] = entry2.value;
12649
+ }
12650
+ continue;
12651
+ }
12652
+ }
12653
+ if ((tag & 7) === 4 || tag === 0) {
12654
+ break;
12655
+ }
12656
+ reader.skip(tag & 7);
12657
+ }
12658
+ return message;
12659
+ },
12660
+ fromJSON(object) {
12661
+ return {
12662
+ environments: isObject3(object.environments) ? globalThis.Object.entries(object.environments).reduce(
12663
+ (acc, [key, value]) => {
12664
+ acc[key] = value;
12665
+ return acc;
12666
+ },
12667
+ {}
12668
+ ) : {},
12669
+ environment_backends: isObject3(object.environmentBackends) ? globalThis.Object.entries(object.environmentBackends).reduce(
12670
+ (acc, [key, value]) => {
12671
+ acc[key] = BackendView.fromJSON(value);
12672
+ return acc;
12673
+ },
12674
+ {}
12675
+ ) : isObject3(object.environment_backends) ? globalThis.Object.entries(object.environment_backends).reduce(
12676
+ (acc, [key, value]) => {
12677
+ acc[key] = BackendView.fromJSON(value);
12678
+ return acc;
12679
+ },
12680
+ {}
12681
+ ) : {}
12682
+ };
12683
+ },
12684
+ toJSON(message) {
12685
+ const obj = {};
12686
+ if (message.environments) {
12687
+ const entries = globalThis.Object.entries(message.environments);
12688
+ if (entries.length > 0) {
12689
+ obj.environments = {};
12690
+ entries.forEach(([k, v]) => {
12691
+ obj.environments[k] = v;
12692
+ });
12693
+ }
12694
+ }
12695
+ if (message.environment_backends) {
12696
+ const entries = globalThis.Object.entries(message.environment_backends);
12697
+ if (entries.length > 0) {
12698
+ obj.environmentBackends = {};
12699
+ entries.forEach(([k, v]) => {
12700
+ obj.environmentBackends[k] = BackendView.toJSON(v);
12701
+ });
12702
+ }
12703
+ }
12704
+ return obj;
12705
+ },
12706
+ create(base) {
12707
+ return SetEnvironmentsAction.fromPartial(base ?? {});
12708
+ },
12709
+ fromPartial(object) {
12710
+ const message = createBaseSetEnvironmentsAction();
12711
+ message.environments = globalThis.Object.entries(object.environments ?? {}).reduce(
12712
+ (acc, [key, value]) => {
12713
+ if (value !== void 0) {
12714
+ acc[key] = value;
12715
+ }
12716
+ return acc;
12717
+ },
12718
+ {}
12719
+ );
12720
+ message.environment_backends = globalThis.Object.entries(object.environment_backends ?? {}).reduce(
12721
+ (acc, [key, value]) => {
12722
+ if (value !== void 0) {
12723
+ acc[key] = BackendView.fromPartial(value);
12724
+ }
12725
+ return acc;
12726
+ },
12727
+ {}
12207
12728
  );
12208
12729
  return message;
12209
12730
  }
@@ -12554,7 +13075,8 @@ function createBaseAction() {
12554
13075
  set_environments: void 0,
12555
13076
  undo: void 0,
12556
13077
  redo: void 0,
12557
- place_module: void 0
13078
+ place_module: void 0,
13079
+ set_use_providers: void 0
12558
13080
  };
12559
13081
  }
12560
13082
  var Action = {
@@ -12625,6 +13147,9 @@ var Action = {
12625
13147
  if (message.place_module !== void 0) {
12626
13148
  PlaceModuleAction.encode(message.place_module, writer.uint32(178).fork()).join();
12627
13149
  }
13150
+ if (message.set_use_providers !== void 0) {
13151
+ SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
13152
+ }
12628
13153
  return writer;
12629
13154
  },
12630
13155
  decode(input, length) {
@@ -12788,6 +13313,13 @@ var Action = {
12788
13313
  message.place_module = PlaceModuleAction.decode(reader, reader.uint32());
12789
13314
  continue;
12790
13315
  }
13316
+ case 23: {
13317
+ if (tag !== 186) {
13318
+ break;
13319
+ }
13320
+ message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
13321
+ continue;
13322
+ }
12791
13323
  }
12792
13324
  if ((tag & 7) === 4 || tag === 0) {
12793
13325
  break;
@@ -12819,7 +13351,8 @@ var Action = {
12819
13351
  set_environments: isSet3(object.setEnvironments) ? SetEnvironmentsAction.fromJSON(object.setEnvironments) : isSet3(object.set_environments) ? SetEnvironmentsAction.fromJSON(object.set_environments) : void 0,
12820
13352
  undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
12821
13353
  redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
12822
- place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0
13354
+ place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
13355
+ set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0
12823
13356
  };
12824
13357
  },
12825
13358
  toJSON(message) {
@@ -12890,6 +13423,9 @@ var Action = {
12890
13423
  if (message.place_module !== void 0) {
12891
13424
  obj.placeModule = PlaceModuleAction.toJSON(message.place_module);
12892
13425
  }
13426
+ if (message.set_use_providers !== void 0) {
13427
+ obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
13428
+ }
12893
13429
  return obj;
12894
13430
  },
12895
13431
  create(base) {
@@ -12919,6 +13455,7 @@ var Action = {
12919
13455
  message.undo = object.undo !== void 0 && object.undo !== null ? UndoAction.fromPartial(object.undo) : void 0;
12920
13456
  message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
12921
13457
  message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
13458
+ message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
12922
13459
  return message;
12923
13460
  }
12924
13461
  };
@@ -14676,7 +15213,15 @@ var RenderOutput = {
14676
15213
  }
14677
15214
  };
14678
15215
  function createBaseNodeConfig() {
14679
- return { instance_id: "", inputs: [], outputs: [], sibling_ids: [], depends_on: [], available_variables: [] };
15216
+ return {
15217
+ instance_id: "",
15218
+ inputs: [],
15219
+ outputs: [],
15220
+ sibling_ids: [],
15221
+ depends_on: [],
15222
+ available_variables: [],
15223
+ providers: {}
15224
+ };
14680
15225
  }
14681
15226
  var NodeConfig = {
14682
15227
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -14698,6 +15243,9 @@ var NodeConfig = {
14698
15243
  for (const v of message.available_variables) {
14699
15244
  VariableRef.encode(v, writer.uint32(50).fork()).join();
14700
15245
  }
15246
+ globalThis.Object.entries(message.providers).forEach(([key, value]) => {
15247
+ NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
15248
+ });
14701
15249
  return writer;
14702
15250
  },
14703
15251
  decode(input, length) {
@@ -14749,6 +15297,16 @@ var NodeConfig = {
14749
15297
  message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
14750
15298
  continue;
14751
15299
  }
15300
+ case 7: {
15301
+ if (tag !== 58) {
15302
+ break;
15303
+ }
15304
+ const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
15305
+ if (entry7.value !== void 0) {
15306
+ message.providers[entry7.key] = entry7.value;
15307
+ }
15308
+ continue;
15309
+ }
14752
15310
  }
14753
15311
  if ((tag & 7) === 4 || tag === 0) {
14754
15312
  break;
@@ -14764,7 +15322,14 @@ var NodeConfig = {
14764
15322
  outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
14765
15323
  sibling_ids: globalThis.Array.isArray(object?.siblingIds) ? object.siblingIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.sibling_ids) ? object.sibling_ids.map((e) => globalThis.String(e)) : [],
14766
15324
  depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
14767
- available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : []
15325
+ available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : [],
15326
+ providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
15327
+ (acc, [key, value]) => {
15328
+ acc[key] = globalThis.String(value);
15329
+ return acc;
15330
+ },
15331
+ {}
15332
+ ) : {}
14768
15333
  };
14769
15334
  },
14770
15335
  toJSON(message) {
@@ -14787,6 +15352,15 @@ var NodeConfig = {
14787
15352
  if (message.available_variables?.length) {
14788
15353
  obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
14789
15354
  }
15355
+ if (message.providers) {
15356
+ const entries = globalThis.Object.entries(message.providers);
15357
+ if (entries.length > 0) {
15358
+ obj.providers = {};
15359
+ entries.forEach(([k, v]) => {
15360
+ obj.providers[k] = v;
15361
+ });
15362
+ }
15363
+ }
14790
15364
  return obj;
14791
15365
  },
14792
15366
  create(base) {
@@ -14800,6 +15374,83 @@ var NodeConfig = {
14800
15374
  message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
14801
15375
  message.depends_on = object.depends_on?.map((e) => e) || [];
14802
15376
  message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
15377
+ message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
15378
+ (acc, [key, value]) => {
15379
+ if (value !== void 0) {
15380
+ acc[key] = globalThis.String(value);
15381
+ }
15382
+ return acc;
15383
+ },
15384
+ {}
15385
+ );
15386
+ return message;
15387
+ }
15388
+ };
15389
+ function createBaseNodeConfig_ProvidersEntry() {
15390
+ return { key: "", value: "" };
15391
+ }
15392
+ var NodeConfig_ProvidersEntry = {
15393
+ encode(message, writer = new import_wire4.BinaryWriter()) {
15394
+ if (message.key !== "") {
15395
+ writer.uint32(10).string(message.key);
15396
+ }
15397
+ if (message.value !== "") {
15398
+ writer.uint32(18).string(message.value);
15399
+ }
15400
+ return writer;
15401
+ },
15402
+ decode(input, length) {
15403
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
15404
+ const end = length === void 0 ? reader.len : reader.pos + length;
15405
+ const message = createBaseNodeConfig_ProvidersEntry();
15406
+ while (reader.pos < end) {
15407
+ const tag = reader.uint32();
15408
+ switch (tag >>> 3) {
15409
+ case 1: {
15410
+ if (tag !== 10) {
15411
+ break;
15412
+ }
15413
+ message.key = reader.string();
15414
+ continue;
15415
+ }
15416
+ case 2: {
15417
+ if (tag !== 18) {
15418
+ break;
15419
+ }
15420
+ message.value = reader.string();
15421
+ continue;
15422
+ }
15423
+ }
15424
+ if ((tag & 7) === 4 || tag === 0) {
15425
+ break;
15426
+ }
15427
+ reader.skip(tag & 7);
15428
+ }
15429
+ return message;
15430
+ },
15431
+ fromJSON(object) {
15432
+ return {
15433
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
15434
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
15435
+ };
15436
+ },
15437
+ toJSON(message) {
15438
+ const obj = {};
15439
+ if (message.key !== "") {
15440
+ obj.key = message.key;
15441
+ }
15442
+ if (message.value !== "") {
15443
+ obj.value = message.value;
15444
+ }
15445
+ return obj;
15446
+ },
15447
+ create(base) {
15448
+ return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
15449
+ },
15450
+ fromPartial(object) {
15451
+ const message = createBaseNodeConfig_ProvidersEntry();
15452
+ message.key = object.key ?? "";
15453
+ message.value = object.value ?? "";
14803
15454
  return message;
14804
15455
  }
14805
15456
  };
@@ -15412,7 +16063,7 @@ var TerraformView = {
15412
16063
  }
15413
16064
  };
15414
16065
  function createBaseProviderReqView() {
15415
- return { name: "", source: "", version: "" };
16066
+ return { name: "", source: "", version: "", configuration_aliases: [] };
15416
16067
  }
15417
16068
  var ProviderReqView = {
15418
16069
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -15425,6 +16076,9 @@ var ProviderReqView = {
15425
16076
  if (message.version !== "") {
15426
16077
  writer.uint32(26).string(message.version);
15427
16078
  }
16079
+ for (const v of message.configuration_aliases) {
16080
+ writer.uint32(34).string(v);
16081
+ }
15428
16082
  return writer;
15429
16083
  },
15430
16084
  decode(input, length) {
@@ -15455,6 +16109,13 @@ var ProviderReqView = {
15455
16109
  message.version = reader.string();
15456
16110
  continue;
15457
16111
  }
16112
+ case 4: {
16113
+ if (tag !== 34) {
16114
+ break;
16115
+ }
16116
+ message.configuration_aliases.push(reader.string());
16117
+ continue;
16118
+ }
15458
16119
  }
15459
16120
  if ((tag & 7) === 4 || tag === 0) {
15460
16121
  break;
@@ -15467,7 +16128,8 @@ var ProviderReqView = {
15467
16128
  return {
15468
16129
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
15469
16130
  source: isSet3(object.source) ? globalThis.String(object.source) : "",
15470
- version: isSet3(object.version) ? globalThis.String(object.version) : ""
16131
+ version: isSet3(object.version) ? globalThis.String(object.version) : "",
16132
+ configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
15471
16133
  };
15472
16134
  },
15473
16135
  toJSON(message) {
@@ -15481,6 +16143,9 @@ var ProviderReqView = {
15481
16143
  if (message.version !== "") {
15482
16144
  obj.version = message.version;
15483
16145
  }
16146
+ if (message.configuration_aliases?.length) {
16147
+ obj.configurationAliases = message.configuration_aliases;
16148
+ }
15484
16149
  return obj;
15485
16150
  },
15486
16151
  create(base) {
@@ -15491,6 +16156,7 @@ var ProviderReqView = {
15491
16156
  message.name = object.name ?? "";
15492
16157
  message.source = object.source ?? "";
15493
16158
  message.version = object.version ?? "";
16159
+ message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
15494
16160
  return message;
15495
16161
  }
15496
16162
  };
@@ -15656,7 +16322,7 @@ var BackendView_ConfigEntry = {
15656
16322
  }
15657
16323
  };
15658
16324
  function createBaseProviderView() {
15659
- return { name: "", alias: "", config: {} };
16325
+ return { name: "", alias: "", config: {}, blocks: [] };
15660
16326
  }
15661
16327
  var ProviderView = {
15662
16328
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -15667,10 +16333,11 @@ var ProviderView = {
15667
16333
  writer.uint32(18).string(message.alias);
15668
16334
  }
15669
16335
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
15670
- if (value !== void 0) {
15671
- ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
15672
- }
16336
+ ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
15673
16337
  });
16338
+ for (const v of message.blocks) {
16339
+ Block.encode(v, writer.uint32(34).fork()).join();
16340
+ }
15674
16341
  return writer;
15675
16342
  },
15676
16343
  decode(input, length) {
@@ -15704,6 +16371,13 @@ var ProviderView = {
15704
16371
  }
15705
16372
  continue;
15706
16373
  }
16374
+ case 4: {
16375
+ if (tag !== 34) {
16376
+ break;
16377
+ }
16378
+ message.blocks.push(Block.decode(reader, reader.uint32()));
16379
+ continue;
16380
+ }
15707
16381
  }
15708
16382
  if ((tag & 7) === 4 || tag === 0) {
15709
16383
  break;
@@ -15718,11 +16392,12 @@ var ProviderView = {
15718
16392
  alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
15719
16393
  config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
15720
16394
  (acc, [key, value]) => {
15721
- acc[key] = value;
16395
+ acc[key] = globalThis.String(value);
15722
16396
  return acc;
15723
16397
  },
15724
16398
  {}
15725
- ) : {}
16399
+ ) : {},
16400
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
15726
16401
  };
15727
16402
  },
15728
16403
  toJSON(message) {
@@ -15742,6 +16417,9 @@ var ProviderView = {
15742
16417
  });
15743
16418
  }
15744
16419
  }
16420
+ if (message.blocks?.length) {
16421
+ obj.blocks = message.blocks.map((e) => Block.toJSON(e));
16422
+ }
15745
16423
  return obj;
15746
16424
  },
15747
16425
  create(base) {
@@ -15754,25 +16432,26 @@ var ProviderView = {
15754
16432
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
15755
16433
  (acc, [key, value]) => {
15756
16434
  if (value !== void 0) {
15757
- acc[key] = value;
16435
+ acc[key] = globalThis.String(value);
15758
16436
  }
15759
16437
  return acc;
15760
16438
  },
15761
16439
  {}
15762
16440
  );
16441
+ message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
15763
16442
  return message;
15764
16443
  }
15765
16444
  };
15766
16445
  function createBaseProviderView_ConfigEntry() {
15767
- return { key: "", value: void 0 };
16446
+ return { key: "", value: "" };
15768
16447
  }
15769
16448
  var ProviderView_ConfigEntry = {
15770
16449
  encode(message, writer = new import_wire4.BinaryWriter()) {
15771
16450
  if (message.key !== "") {
15772
16451
  writer.uint32(10).string(message.key);
15773
16452
  }
15774
- if (message.value !== void 0) {
15775
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
16453
+ if (message.value !== "") {
16454
+ writer.uint32(18).string(message.value);
15776
16455
  }
15777
16456
  return writer;
15778
16457
  },
@@ -15794,7 +16473,7 @@ var ProviderView_ConfigEntry = {
15794
16473
  if (tag !== 18) {
15795
16474
  break;
15796
16475
  }
15797
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
16476
+ message.value = reader.string();
15798
16477
  continue;
15799
16478
  }
15800
16479
  }
@@ -15808,7 +16487,7 @@ var ProviderView_ConfigEntry = {
15808
16487
  fromJSON(object) {
15809
16488
  return {
15810
16489
  key: isSet3(object.key) ? globalThis.String(object.key) : "",
15811
- value: isSet3(object?.value) ? object.value : void 0
16490
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
15812
16491
  };
15813
16492
  },
15814
16493
  toJSON(message) {
@@ -15816,7 +16495,7 @@ var ProviderView_ConfigEntry = {
15816
16495
  if (message.key !== "") {
15817
16496
  obj.key = message.key;
15818
16497
  }
15819
- if (message.value !== void 0) {
16498
+ if (message.value !== "") {
15820
16499
  obj.value = message.value;
15821
16500
  }
15822
16501
  return obj;
@@ -15827,7 +16506,7 @@ var ProviderView_ConfigEntry = {
15827
16506
  fromPartial(object) {
15828
16507
  const message = createBaseProviderView_ConfigEntry();
15829
16508
  message.key = object.key ?? "";
15830
- message.value = object.value ?? void 0;
16509
+ message.value = object.value ?? "";
15831
16510
  return message;
15832
16511
  }
15833
16512
  };
@@ -16066,7 +16745,17 @@ var Position4 = {
16066
16745
  }
16067
16746
  };
16068
16747
  function createBaseInputDef2() {
16069
- return { name: "", type: "", required: false, description: "", default_value: void 0, validation: void 0 };
16748
+ return {
16749
+ name: "",
16750
+ type: "",
16751
+ required: false,
16752
+ description: "",
16753
+ default_value: void 0,
16754
+ validation: [],
16755
+ ephemeral: void 0,
16756
+ nullable: void 0,
16757
+ sensitive: false
16758
+ };
16070
16759
  }
16071
16760
  var InputDef2 = {
16072
16761
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -16085,8 +16774,17 @@ var InputDef2 = {
16085
16774
  if (message.default_value !== void 0) {
16086
16775
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
16087
16776
  }
16088
- if (message.validation !== void 0) {
16089
- ValidationBlock2.encode(message.validation, writer.uint32(50).fork()).join();
16777
+ for (const v of message.validation) {
16778
+ ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
16779
+ }
16780
+ if (message.ephemeral !== void 0) {
16781
+ writer.uint32(56).bool(message.ephemeral);
16782
+ }
16783
+ if (message.nullable !== void 0) {
16784
+ writer.uint32(64).bool(message.nullable);
16785
+ }
16786
+ if (message.sensitive !== false) {
16787
+ writer.uint32(72).bool(message.sensitive);
16090
16788
  }
16091
16789
  return writer;
16092
16790
  },
@@ -16136,7 +16834,28 @@ var InputDef2 = {
16136
16834
  if (tag !== 50) {
16137
16835
  break;
16138
16836
  }
16139
- message.validation = ValidationBlock2.decode(reader, reader.uint32());
16837
+ message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
16838
+ continue;
16839
+ }
16840
+ case 7: {
16841
+ if (tag !== 56) {
16842
+ break;
16843
+ }
16844
+ message.ephemeral = reader.bool();
16845
+ continue;
16846
+ }
16847
+ case 8: {
16848
+ if (tag !== 64) {
16849
+ break;
16850
+ }
16851
+ message.nullable = reader.bool();
16852
+ continue;
16853
+ }
16854
+ case 9: {
16855
+ if (tag !== 72) {
16856
+ break;
16857
+ }
16858
+ message.sensitive = reader.bool();
16140
16859
  continue;
16141
16860
  }
16142
16861
  }
@@ -16154,7 +16873,10 @@ var InputDef2 = {
16154
16873
  required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
16155
16874
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
16156
16875
  default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
16157
- validation: isSet3(object.validation) ? ValidationBlock2.fromJSON(object.validation) : void 0
16876
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
16877
+ ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
16878
+ nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
16879
+ sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
16158
16880
  };
16159
16881
  },
16160
16882
  toJSON(message) {
@@ -16174,8 +16896,17 @@ var InputDef2 = {
16174
16896
  if (message.default_value !== void 0) {
16175
16897
  obj.defaultValue = message.default_value;
16176
16898
  }
16177
- if (message.validation !== void 0) {
16178
- obj.validation = ValidationBlock2.toJSON(message.validation);
16899
+ if (message.validation?.length) {
16900
+ obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
16901
+ }
16902
+ if (message.ephemeral !== void 0) {
16903
+ obj.ephemeral = message.ephemeral;
16904
+ }
16905
+ if (message.nullable !== void 0) {
16906
+ obj.nullable = message.nullable;
16907
+ }
16908
+ if (message.sensitive !== false) {
16909
+ obj.sensitive = message.sensitive;
16179
16910
  }
16180
16911
  return obj;
16181
16912
  },
@@ -16189,7 +16920,10 @@ var InputDef2 = {
16189
16920
  message.required = object.required ?? false;
16190
16921
  message.description = object.description ?? "";
16191
16922
  message.default_value = object.default_value ?? void 0;
16192
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock2.fromPartial(object.validation) : void 0;
16923
+ message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
16924
+ message.ephemeral = object.ephemeral ?? void 0;
16925
+ message.nullable = object.nullable ?? void 0;
16926
+ message.sensitive = object.sensitive ?? false;
16193
16927
  return message;
16194
16928
  }
16195
16929
  };
@@ -16262,7 +16996,7 @@ var ValidationBlock2 = {
16262
16996
  }
16263
16997
  };
16264
16998
  function createBaseOutputDef2() {
16265
- return { name: "", type: "", description: "", sensitive: false };
16999
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
16266
17000
  }
16267
17001
  var OutputDef2 = {
16268
17002
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -16278,6 +17012,9 @@ var OutputDef2 = {
16278
17012
  if (message.sensitive !== false) {
16279
17013
  writer.uint32(32).bool(message.sensitive);
16280
17014
  }
17015
+ for (const v of message.depends_on) {
17016
+ writer.uint32(42).string(v);
17017
+ }
16281
17018
  return writer;
16282
17019
  },
16283
17020
  decode(input, length) {
@@ -16315,6 +17052,13 @@ var OutputDef2 = {
16315
17052
  message.sensitive = reader.bool();
16316
17053
  continue;
16317
17054
  }
17055
+ case 5: {
17056
+ if (tag !== 42) {
17057
+ break;
17058
+ }
17059
+ message.depends_on.push(reader.string());
17060
+ continue;
17061
+ }
16318
17062
  }
16319
17063
  if ((tag & 7) === 4 || tag === 0) {
16320
17064
  break;
@@ -16328,7 +17072,8 @@ var OutputDef2 = {
16328
17072
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
16329
17073
  type: isSet3(object.type) ? globalThis.String(object.type) : "",
16330
17074
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
16331
- sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
17075
+ sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
17076
+ depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : []
16332
17077
  };
16333
17078
  },
16334
17079
  toJSON(message) {
@@ -16345,6 +17090,9 @@ var OutputDef2 = {
16345
17090
  if (message.sensitive !== false) {
16346
17091
  obj.sensitive = message.sensitive;
16347
17092
  }
17093
+ if (message.depends_on?.length) {
17094
+ obj.dependsOn = message.depends_on;
17095
+ }
16348
17096
  return obj;
16349
17097
  },
16350
17098
  create(base) {
@@ -16356,6 +17104,7 @@ var OutputDef2 = {
16356
17104
  message.type = object.type ?? "";
16357
17105
  message.description = object.description ?? "";
16358
17106
  message.sensitive = object.sensitive ?? false;
17107
+ message.depends_on = object.depends_on?.map((e) => e) || [];
16359
17108
  return message;
16360
17109
  }
16361
17110
  };
@@ -16676,8 +17425,10 @@ var ConnectWebEngine = class {
16676
17425
  required: v.required,
16677
17426
  description: v.description ?? "",
16678
17427
  default_value: v.default ?? void 0,
16679
- sensitive: false,
16680
- validation: void 0
17428
+ sensitive: v.sensitive ?? false,
17429
+ validation: v.validation ?? [],
17430
+ ephemeral: v.ephemeral,
17431
+ nullable: v.nullable
16681
17432
  }))
16682
17433
  }
16683
17434
  });
@@ -16694,7 +17445,8 @@ var ConnectWebEngine = class {
16694
17445
  name: d.name,
16695
17446
  type: d.type,
16696
17447
  description: d.description ?? "",
16697
- sensitive: d.sensitive ?? false
17448
+ sensitive: d.sensitive ?? false,
17449
+ depends_on: d.depends_on ?? []
16698
17450
  }))
16699
17451
  }
16700
17452
  });
@@ -16706,7 +17458,8 @@ var ConnectWebEngine = class {
16706
17458
  required_providers: (requiredProviders ?? []).map((p) => ({
16707
17459
  name: p.name,
16708
17460
  source: p.source,
16709
- version: p.version
17461
+ version: p.version,
17462
+ configuration_aliases: p.configuration_aliases ?? []
16710
17463
  })),
16711
17464
  backend: void 0
16712
17465
  }
@@ -16718,7 +17471,8 @@ var ConnectWebEngine = class {
16718
17471
  providers: providers.map((p) => ({
16719
17472
  name: p.name,
16720
17473
  alias: p.alias ?? "",
16721
- config: p.config
17474
+ config: p.config,
17475
+ blocks: p.blocks ?? []
16722
17476
  }))
16723
17477
  }
16724
17478
  });
@@ -16741,6 +17495,11 @@ var ConnectWebEngine = class {
16741
17495
  set_depends_on: { instance_id: instanceId, depends_on: dependsOn }
16742
17496
  });
16743
17497
  }
17498
+ setUseProviders(instanceId, providers) {
17499
+ return this.applyAction({
17500
+ set_use_providers: { instance_id: instanceId, providers }
17501
+ });
17502
+ }
16744
17503
  setEnvironments(environments) {
16745
17504
  return this.applyAction({
16746
17505
  set_environments: { environments, environment_backends: {} }
@@ -17347,8 +18106,10 @@ var PostMessageEngine = class {
17347
18106
  required: v.required,
17348
18107
  description: v.description ?? "",
17349
18108
  default_value: v.default ?? void 0,
17350
- sensitive: false,
17351
- validation: void 0
18109
+ sensitive: v.sensitive ?? false,
18110
+ validation: v.validation ?? [],
18111
+ ephemeral: v.ephemeral,
18112
+ nullable: v.nullable
17352
18113
  }))
17353
18114
  }
17354
18115
  });
@@ -17365,7 +18126,8 @@ var PostMessageEngine = class {
17365
18126
  name: d.name,
17366
18127
  type: d.type,
17367
18128
  description: d.description ?? "",
17368
- sensitive: d.sensitive ?? false
18129
+ sensitive: d.sensitive ?? false,
18130
+ depends_on: d.depends_on ?? []
17369
18131
  }))
17370
18132
  }
17371
18133
  });
@@ -17377,7 +18139,8 @@ var PostMessageEngine = class {
17377
18139
  required_providers: (requiredProviders ?? []).map((p) => ({
17378
18140
  name: p.name,
17379
18141
  source: p.source,
17380
- version: p.version
18142
+ version: p.version,
18143
+ configuration_aliases: p.configuration_aliases ?? []
17381
18144
  })),
17382
18145
  backend: void 0
17383
18146
  }
@@ -17389,7 +18152,8 @@ var PostMessageEngine = class {
17389
18152
  providers: providers.map((p) => ({
17390
18153
  name: p.name,
17391
18154
  alias: p.alias ?? "",
17392
- config: p.config
18155
+ config: p.config,
18156
+ blocks: p.blocks ?? []
17393
18157
  }))
17394
18158
  }
17395
18159
  });
@@ -17412,6 +18176,11 @@ var PostMessageEngine = class {
17412
18176
  set_depends_on: { instance_id: instanceId, depends_on: dependsOn }
17413
18177
  });
17414
18178
  }
18179
+ setUseProviders(instanceId, providers) {
18180
+ return this.applyAction({
18181
+ set_use_providers: { instance_id: instanceId, providers }
18182
+ });
18183
+ }
17415
18184
  setEnvironments(environments) {
17416
18185
  return this.applyAction({
17417
18186
  set_environments: { environments, environment_backends: {} }
@@ -17566,6 +18335,7 @@ var EMPTY_NODE_CONFIG = {
17566
18335
  outputs: [],
17567
18336
  sibling_ids: [],
17568
18337
  depends_on: [],
18338
+ providers: {},
17569
18339
  available_variables: []
17570
18340
  };
17571
18341
  var EMPTY_EDGE_CONFIG = {
@@ -17707,6 +18477,9 @@ var SnapshotCanvasEngine = class {
17707
18477
  async setDependsOn(_instanceId, _dependsOn) {
17708
18478
  return READ_ONLY_RESULT;
17709
18479
  }
18480
+ async setUseProviders(_instanceId, _providers) {
18481
+ return READ_ONLY_RESULT;
18482
+ }
17710
18483
  async setEnvironments(_environments) {
17711
18484
  return READ_ONLY_RESULT;
17712
18485
  }
@@ -17811,6 +18584,8 @@ var SnapshotCanvasEngine = class {
17811
18584
  LocalsContent,
17812
18585
  LocalsPanel,
17813
18586
  ModuleConfigPanel,
18587
+ ModuleInterfaceContent,
18588
+ ModuleInterfacePanel,
17814
18589
  ModuleNode,
17815
18590
  PolicySidebar,
17816
18591
  PostMessageEngine,