@lace-cloud/canvas 0.8.0 → 0.9.1
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/{ModuleConfigPanel-UUJPO457.css → ModuleConfigPanel-LZRL4F3Q.css} +13 -0
- package/dist/index.cjs +743 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +287 -249
- package/dist/index.d.ts +287 -249
- package/dist/index.mjs +742 -66
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-5HTOXZUS.css → panels-shared-LLLB7PR4.css} +27 -0
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -983,8 +983,8 @@ function AccordionSection({ title, defaultOpen = false, badge, children }) {
|
|
|
983
983
|
}
|
|
984
984
|
|
|
985
985
|
// src/components/panels/ModuleConfigPanel.tsx
|
|
986
|
-
import "./ModuleConfigPanel-
|
|
987
|
-
import "./panels-shared-
|
|
986
|
+
import "./ModuleConfigPanel-LZRL4F3Q.css";
|
|
987
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
988
988
|
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
989
989
|
var MODE_ITEMS = [
|
|
990
990
|
{ value: "literal", label: "Lit" },
|
|
@@ -1025,6 +1025,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
|
|
|
1025
1025
|
[]
|
|
1026
1026
|
);
|
|
1027
1027
|
const [localDependsOn, setLocalDependsOn] = useState4(/* @__PURE__ */ new Set());
|
|
1028
|
+
const [localProviders, setLocalProviders] = useState4([]);
|
|
1028
1029
|
const [error, setError] = useState4(null);
|
|
1029
1030
|
useEffect3(() => {
|
|
1030
1031
|
let cancelled = false;
|
|
@@ -1046,6 +1047,9 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
|
|
|
1046
1047
|
}
|
|
1047
1048
|
setInputState({ modes, values, variables, expressions });
|
|
1048
1049
|
setLocalDependsOn(new Set(result.depends_on));
|
|
1050
|
+
setLocalProviders(
|
|
1051
|
+
Object.entries(result.providers ?? {}).map(([key, value]) => ({ key, value }))
|
|
1052
|
+
);
|
|
1049
1053
|
}).catch((err) => {
|
|
1050
1054
|
if (cancelled) return;
|
|
1051
1055
|
console.error(`[ModuleConfigPanel] queryNodeConfig failed for "${instance_id}":`, err);
|
|
@@ -1106,6 +1110,12 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
|
|
|
1106
1110
|
);
|
|
1107
1111
|
}
|
|
1108
1112
|
await engine.setDependsOn(instance_id, [...localDependsOn]);
|
|
1113
|
+
const providersRecord = {};
|
|
1114
|
+
for (const { key, value } of localProviders) {
|
|
1115
|
+
const name = key.trim();
|
|
1116
|
+
if (name) providersRecord[name] = value.trim();
|
|
1117
|
+
}
|
|
1118
|
+
await engine.setUseProviders(instance_id, providersRecord);
|
|
1109
1119
|
const requiredToCheck = config.inputs.filter((i) => i.required);
|
|
1110
1120
|
const hasFilledRequired = requiredToCheck.length === 0 || requiredToCheck.some((input) => {
|
|
1111
1121
|
const mode = localModes[input.name] ?? input.mode;
|
|
@@ -1345,6 +1355,73 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
|
|
|
1345
1355
|
]
|
|
1346
1356
|
}
|
|
1347
1357
|
),
|
|
1358
|
+
(localProviders.length > 0 || !readOnly) && /* @__PURE__ */ jsxs7(
|
|
1359
|
+
AccordionSection,
|
|
1360
|
+
{
|
|
1361
|
+
title: "Providers",
|
|
1362
|
+
badge: localProviders.length > 0 ? `(${localProviders.length})` : void 0,
|
|
1363
|
+
children: [
|
|
1364
|
+
/* @__PURE__ */ jsxs7("div", { className: "lace-mcp__depends-hint", children: [
|
|
1365
|
+
"Map each child-local provider name to the root provider reference passed down (e.g.",
|
|
1366
|
+
" ",
|
|
1367
|
+
/* @__PURE__ */ jsx7("code", { children: "aws" }),
|
|
1368
|
+
" \u2192 ",
|
|
1369
|
+
/* @__PURE__ */ jsx7("code", { children: "aws.west" }),
|
|
1370
|
+
")."
|
|
1371
|
+
] }),
|
|
1372
|
+
localProviders.map((row, i) => (
|
|
1373
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: rows are positional and freely editable
|
|
1374
|
+
/* @__PURE__ */ jsxs7("div", { className: "lace-mcp__provider-row", children: [
|
|
1375
|
+
/* @__PURE__ */ jsx7(
|
|
1376
|
+
Input,
|
|
1377
|
+
{
|
|
1378
|
+
value: row.key,
|
|
1379
|
+
onChange: (e) => setLocalProviders(
|
|
1380
|
+
(prev) => prev.map((r, j) => j === i ? { ...r, key: e.target.value } : r)
|
|
1381
|
+
),
|
|
1382
|
+
placeholder: "child local (e.g. aws)",
|
|
1383
|
+
mono: true,
|
|
1384
|
+
readOnly
|
|
1385
|
+
}
|
|
1386
|
+
),
|
|
1387
|
+
/* @__PURE__ */ jsx7("span", { className: "lace-mcp__provider-arrow", children: "=" }),
|
|
1388
|
+
/* @__PURE__ */ jsx7(
|
|
1389
|
+
Input,
|
|
1390
|
+
{
|
|
1391
|
+
value: row.value,
|
|
1392
|
+
onChange: (e) => setLocalProviders(
|
|
1393
|
+
(prev) => prev.map((r, j) => j === i ? { ...r, value: e.target.value } : r)
|
|
1394
|
+
),
|
|
1395
|
+
placeholder: "root ref (e.g. aws.west)",
|
|
1396
|
+
mono: true,
|
|
1397
|
+
readOnly
|
|
1398
|
+
}
|
|
1399
|
+
),
|
|
1400
|
+
!readOnly && /* @__PURE__ */ jsx7(
|
|
1401
|
+
Button,
|
|
1402
|
+
{
|
|
1403
|
+
variant: "danger",
|
|
1404
|
+
size: "sm",
|
|
1405
|
+
onClick: () => setLocalProviders((prev) => prev.filter((_, j) => j !== i)),
|
|
1406
|
+
title: "Remove this provider mapping",
|
|
1407
|
+
"aria-label": "Remove provider mapping",
|
|
1408
|
+
children: "\u2715"
|
|
1409
|
+
}
|
|
1410
|
+
)
|
|
1411
|
+
] }, i)
|
|
1412
|
+
)),
|
|
1413
|
+
!readOnly && /* @__PURE__ */ jsx7(
|
|
1414
|
+
Button,
|
|
1415
|
+
{
|
|
1416
|
+
variant: "secondary",
|
|
1417
|
+
size: "sm",
|
|
1418
|
+
onClick: () => setLocalProviders((prev) => [...prev, { key: "", value: "" }]),
|
|
1419
|
+
children: "Add provider mapping"
|
|
1420
|
+
}
|
|
1421
|
+
)
|
|
1422
|
+
]
|
|
1423
|
+
}
|
|
1424
|
+
),
|
|
1348
1425
|
config.outputs.length > 0 && /* @__PURE__ */ jsx7(AccordionSection, { title: "Outputs", badge: `(${config.outputs.length})`, children: config.outputs.map((o) => /* @__PURE__ */ jsxs7("div", { className: "lace-mcp__output-card", children: [
|
|
1349
1426
|
/* @__PURE__ */ jsxs7("div", { className: "lace-mcp__output-header", children: [
|
|
1350
1427
|
/* @__PURE__ */ jsx7("strong", { className: "lace-mcp__output-name", children: o.name }),
|
|
@@ -1359,7 +1436,7 @@ function ModuleConfigPanel({ instance_id, engine, onClose, onModified }) {
|
|
|
1359
1436
|
// src/components/panels/PolicySidebar.tsx
|
|
1360
1437
|
import { Panel as Panel4 } from "@lace-cloud/ui";
|
|
1361
1438
|
import { useEffect as useEffect4, useState as useState5 } from "react";
|
|
1362
|
-
import "./panels-shared-
|
|
1439
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
1363
1440
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1364
1441
|
var NODE_HOVER_EVENT = "lace:canvas:nodeHover";
|
|
1365
1442
|
var HOVER_DEBOUNCE_MS = 150;
|
|
@@ -1755,7 +1832,7 @@ function SaveButton({ status, label, onClick, disabled, disabledTitle }) {
|
|
|
1755
1832
|
}
|
|
1756
1833
|
|
|
1757
1834
|
// src/components/panels/EnvironmentsPanel.tsx
|
|
1758
|
-
import "./panels-shared-
|
|
1835
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
1759
1836
|
import { Fragment as Fragment4, jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1760
1837
|
function toEnvRows(envs) {
|
|
1761
1838
|
if (!envs) return [];
|
|
@@ -1938,7 +2015,7 @@ function EnvironmentsPanel({ environments, onSave, onClose }) {
|
|
|
1938
2015
|
// src/components/panels/LocalsPanel.tsx
|
|
1939
2016
|
import { Input as Input4, ModeToggle as ModeToggle2, Panel as Panel7, Textarea as Textarea2 } from "@lace-cloud/ui";
|
|
1940
2017
|
import { useCallback as useCallback7, useState as useState9 } from "react";
|
|
1941
|
-
import "./panels-shared-
|
|
2018
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
1942
2019
|
import { Fragment as Fragment5, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1943
2020
|
function toRows(locals) {
|
|
1944
2021
|
if (!locals) return [];
|
|
@@ -2072,9 +2149,9 @@ function LocalsPanel({ locals, onSave, onClose }) {
|
|
|
2072
2149
|
}
|
|
2073
2150
|
|
|
2074
2151
|
// src/components/panels/ModuleInterfacePanel.tsx
|
|
2075
|
-
import { Input as Input5, Panel as Panel8, Textarea as Textarea3 } from "@lace-cloud/ui";
|
|
2152
|
+
import { Button as Button4, Input as Input5, Panel as Panel8, Textarea as Textarea3 } from "@lace-cloud/ui";
|
|
2076
2153
|
import { useCallback as useCallback8, useMemo as useMemo4, useState as useState10 } from "react";
|
|
2077
|
-
import "./panels-shared-
|
|
2154
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
2078
2155
|
import { Fragment as Fragment6, jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2079
2156
|
function variablesToRows(variables) {
|
|
2080
2157
|
return variables.map((v) => ({
|
|
@@ -2083,15 +2160,29 @@ function variablesToRows(variables) {
|
|
|
2083
2160
|
type: v.type,
|
|
2084
2161
|
required: v.required,
|
|
2085
2162
|
description: v.description ?? "",
|
|
2086
|
-
default_value: v.default_value
|
|
2163
|
+
default_value: v.default_value,
|
|
2164
|
+
validation: (v.validation ?? []).map((b) => ({
|
|
2165
|
+
id: crypto.randomUUID(),
|
|
2166
|
+
condition: b.condition,
|
|
2167
|
+
error_message: b.error_message
|
|
2168
|
+
})),
|
|
2169
|
+
ephemeral: v.ephemeral ?? false,
|
|
2170
|
+
sensitive: v.sensitive ?? false,
|
|
2171
|
+
// Wire `nullable` is tri-state: unset means Terraform's default (null
|
|
2172
|
+
// allowed), so an absent value shows the toggle ON.
|
|
2173
|
+
nullable: v.nullable ?? true
|
|
2087
2174
|
}));
|
|
2088
2175
|
}
|
|
2089
|
-
function buildOutputRows(view, exports) {
|
|
2176
|
+
function buildOutputRows(view, exports, outputDefs) {
|
|
2090
2177
|
if (!view) return [];
|
|
2091
2178
|
const exposedByKey = /* @__PURE__ */ new Map();
|
|
2092
2179
|
for (const e of exports) {
|
|
2093
2180
|
exposedByKey.set(`${e.source_instance}|${e.source_output}`, { name: e.name });
|
|
2094
2181
|
}
|
|
2182
|
+
const dependsOnByName = /* @__PURE__ */ new Map();
|
|
2183
|
+
for (const d of outputDefs) {
|
|
2184
|
+
if (d.depends_on && d.depends_on.length > 0) dependsOnByName.set(d.name, d.depends_on);
|
|
2185
|
+
}
|
|
2095
2186
|
const sources = [];
|
|
2096
2187
|
for (const node of view.nodes) {
|
|
2097
2188
|
if (node.outputs.length > 0) sources.push({ id: node.id, outputs: node.outputs });
|
|
@@ -2106,6 +2197,7 @@ function buildOutputRows(view, exports) {
|
|
|
2106
2197
|
for (const out of src.outputs) {
|
|
2107
2198
|
const key = `${src.id}|${out.name}`;
|
|
2108
2199
|
const exposed = exposedByKey.get(key);
|
|
2200
|
+
const exposedName = exposed?.name ?? out.name;
|
|
2109
2201
|
rows.push({
|
|
2110
2202
|
id: crypto.randomUUID(),
|
|
2111
2203
|
source_instance: src.id,
|
|
@@ -2114,7 +2206,8 @@ function buildOutputRows(view, exports) {
|
|
|
2114
2206
|
description: out.description ?? "",
|
|
2115
2207
|
sensitive: out.sensitive ?? false,
|
|
2116
2208
|
exposed: Boolean(exposed),
|
|
2117
|
-
exposed_name:
|
|
2209
|
+
exposed_name: exposedName,
|
|
2210
|
+
depends_on: exposed ? dependsOnByName.get(exposedName) ?? [] : []
|
|
2118
2211
|
});
|
|
2119
2212
|
}
|
|
2120
2213
|
}
|
|
@@ -2131,20 +2224,68 @@ function ModuleInterfaceContent({
|
|
|
2131
2224
|
() => variablesToRows(settings.variables)
|
|
2132
2225
|
);
|
|
2133
2226
|
const [outputs, setOutputs] = useState10(
|
|
2134
|
-
() => buildOutputRows(view, settings.exports)
|
|
2227
|
+
() => buildOutputRows(view, settings.exports, settings.output_defs)
|
|
2135
2228
|
);
|
|
2229
|
+
const siblingModuleKeys = useMemo4(() => (view?.nodes ?? []).map((n) => `module.${n.id}`), [view]);
|
|
2136
2230
|
const updateVariable = useCallback8(
|
|
2137
2231
|
(index, field, value) => {
|
|
2138
2232
|
setVariables((prev) => prev.map((v, i) => i === index ? { ...v, [field]: value } : v));
|
|
2139
2233
|
},
|
|
2140
2234
|
[]
|
|
2141
2235
|
);
|
|
2236
|
+
const addValidation = useCallback8((index) => {
|
|
2237
|
+
setVariables(
|
|
2238
|
+
(prev) => prev.map(
|
|
2239
|
+
(v, i) => i === index ? {
|
|
2240
|
+
...v,
|
|
2241
|
+
validation: [
|
|
2242
|
+
...v.validation,
|
|
2243
|
+
{ id: crypto.randomUUID(), condition: "", error_message: "" }
|
|
2244
|
+
]
|
|
2245
|
+
} : v
|
|
2246
|
+
)
|
|
2247
|
+
);
|
|
2248
|
+
}, []);
|
|
2249
|
+
const removeValidation = useCallback8((index, vIndex) => {
|
|
2250
|
+
setVariables(
|
|
2251
|
+
(prev) => prev.map(
|
|
2252
|
+
(v, i) => i === index ? { ...v, validation: v.validation.filter((_, j) => j !== vIndex) } : v
|
|
2253
|
+
)
|
|
2254
|
+
);
|
|
2255
|
+
}, []);
|
|
2256
|
+
const updateValidation = useCallback8(
|
|
2257
|
+
(index, vIndex, field, value) => {
|
|
2258
|
+
setVariables(
|
|
2259
|
+
(prev) => prev.map(
|
|
2260
|
+
(v, i) => i === index ? {
|
|
2261
|
+
...v,
|
|
2262
|
+
validation: v.validation.map(
|
|
2263
|
+
(b, j) => j === vIndex ? { ...b, [field]: value } : b
|
|
2264
|
+
)
|
|
2265
|
+
} : v
|
|
2266
|
+
)
|
|
2267
|
+
);
|
|
2268
|
+
},
|
|
2269
|
+
[]
|
|
2270
|
+
);
|
|
2142
2271
|
const toggleExposed = useCallback8((index) => {
|
|
2143
2272
|
setOutputs((prev) => prev.map((o, i) => i === index ? { ...o, exposed: !o.exposed } : o));
|
|
2144
2273
|
}, []);
|
|
2145
2274
|
const updateExposedName = useCallback8((index, value) => {
|
|
2146
2275
|
setOutputs((prev) => prev.map((o, i) => i === index ? { ...o, exposed_name: value } : o));
|
|
2147
2276
|
}, []);
|
|
2277
|
+
const toggleDependsOn = useCallback8((index, depKey) => {
|
|
2278
|
+
setOutputs(
|
|
2279
|
+
(prev) => prev.map((o, i) => {
|
|
2280
|
+
if (i !== index) return o;
|
|
2281
|
+
const has = o.depends_on.includes(depKey);
|
|
2282
|
+
return {
|
|
2283
|
+
...o,
|
|
2284
|
+
depends_on: has ? o.depends_on.filter((k) => k !== depKey) : [...o.depends_on, depKey]
|
|
2285
|
+
};
|
|
2286
|
+
})
|
|
2287
|
+
);
|
|
2288
|
+
}, []);
|
|
2148
2289
|
const exposedNameCollisions = useMemo4(() => {
|
|
2149
2290
|
const counts = /* @__PURE__ */ new Map();
|
|
2150
2291
|
for (const o of outputs) {
|
|
@@ -2169,13 +2310,28 @@ function ModuleInterfaceContent({
|
|
|
2169
2310
|
const { status: saveStatus, handleSave } = useSaveState(
|
|
2170
2311
|
useCallback8(async () => {
|
|
2171
2312
|
if (hasErrors) return;
|
|
2172
|
-
const variableDefs = variables.filter((v) => v.name.trim()).map((v) =>
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2313
|
+
const variableDefs = variables.filter((v) => v.name.trim()).map((v) => {
|
|
2314
|
+
const validation = v.validation.map((b) => ({ condition: b.condition.trim(), error_message: b.error_message.trim() })).filter((b) => b.condition || b.error_message);
|
|
2315
|
+
return {
|
|
2316
|
+
name: v.name.trim(),
|
|
2317
|
+
type: v.type.trim() || "string",
|
|
2318
|
+
required: v.required,
|
|
2319
|
+
description: v.description.trim() || void 0,
|
|
2320
|
+
default: v.default_value,
|
|
2321
|
+
validation: validation.length > 0 ? validation : void 0,
|
|
2322
|
+
ephemeral: v.ephemeral || void 0,
|
|
2323
|
+
// Send `false` (not undefined) so turning sensitive OFF actually
|
|
2324
|
+
// clears the stored flag — the settings tier assigns wholesale
|
|
2325
|
+
// (#849). An omitted value would default back to false at the
|
|
2326
|
+
// mapper, which is the same effect, but being explicit documents
|
|
2327
|
+
// that OFF is authorable.
|
|
2328
|
+
sensitive: v.sensitive,
|
|
2329
|
+
// `nullable` is tri-state on the wire (unset = default true). The
|
|
2330
|
+
// toggle ON preserves the default by omitting the field; OFF
|
|
2331
|
+
// authors an explicit `false`.
|
|
2332
|
+
nullable: v.nullable ? void 0 : false
|
|
2333
|
+
};
|
|
2334
|
+
});
|
|
2179
2335
|
const exportDefs = [];
|
|
2180
2336
|
const outputDefs = [];
|
|
2181
2337
|
for (const o of outputs) {
|
|
@@ -2191,7 +2347,8 @@ function ModuleInterfaceContent({
|
|
|
2191
2347
|
name,
|
|
2192
2348
|
type: o.type,
|
|
2193
2349
|
description: o.description || void 0,
|
|
2194
|
-
sensitive: o.sensitive || void 0
|
|
2350
|
+
sensitive: o.sensitive || void 0,
|
|
2351
|
+
depends_on: o.depends_on.length > 0 ? o.depends_on : void 0
|
|
2195
2352
|
});
|
|
2196
2353
|
}
|
|
2197
2354
|
await onSaveVariables(variableDefs);
|
|
@@ -2230,18 +2387,96 @@ function ModuleInterfaceContent({
|
|
|
2230
2387
|
readOnly
|
|
2231
2388
|
}
|
|
2232
2389
|
) }),
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
/* @__PURE__ */
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2390
|
+
/* @__PURE__ */ jsxs12("div", { className: "lace-panel-row-actions", children: [
|
|
2391
|
+
/* @__PURE__ */ jsxs12("label", { className: "lace-panel-checkbox-row", children: [
|
|
2392
|
+
/* @__PURE__ */ jsx13(
|
|
2393
|
+
"input",
|
|
2394
|
+
{
|
|
2395
|
+
type: "checkbox",
|
|
2396
|
+
checked: v.required,
|
|
2397
|
+
onChange: (e) => updateVariable(i, "required", e.target.checked),
|
|
2398
|
+
disabled: readOnly
|
|
2399
|
+
}
|
|
2400
|
+
),
|
|
2401
|
+
/* @__PURE__ */ jsx13("span", { children: "Required" })
|
|
2402
|
+
] }),
|
|
2403
|
+
/* @__PURE__ */ jsxs12("label", { className: "lace-panel-checkbox-row", children: [
|
|
2404
|
+
/* @__PURE__ */ jsx13(
|
|
2405
|
+
"input",
|
|
2406
|
+
{
|
|
2407
|
+
type: "checkbox",
|
|
2408
|
+
checked: v.ephemeral,
|
|
2409
|
+
onChange: (e) => updateVariable(i, "ephemeral", e.target.checked),
|
|
2410
|
+
disabled: readOnly
|
|
2411
|
+
}
|
|
2412
|
+
),
|
|
2413
|
+
/* @__PURE__ */ jsx13("span", { children: "Ephemeral" })
|
|
2414
|
+
] }),
|
|
2415
|
+
/* @__PURE__ */ jsxs12("label", { className: "lace-panel-checkbox-row", children: [
|
|
2416
|
+
/* @__PURE__ */ jsx13(
|
|
2417
|
+
"input",
|
|
2418
|
+
{
|
|
2419
|
+
type: "checkbox",
|
|
2420
|
+
checked: v.sensitive,
|
|
2421
|
+
onChange: (e) => updateVariable(i, "sensitive", e.target.checked),
|
|
2422
|
+
disabled: readOnly
|
|
2423
|
+
}
|
|
2424
|
+
),
|
|
2425
|
+
/* @__PURE__ */ jsx13("span", { children: "Sensitive" })
|
|
2426
|
+
] }),
|
|
2427
|
+
/* @__PURE__ */ jsxs12("label", { className: "lace-panel-checkbox-row", children: [
|
|
2428
|
+
/* @__PURE__ */ jsx13(
|
|
2429
|
+
"input",
|
|
2430
|
+
{
|
|
2431
|
+
type: "checkbox",
|
|
2432
|
+
checked: v.nullable,
|
|
2433
|
+
onChange: (e) => updateVariable(i, "nullable", e.target.checked),
|
|
2434
|
+
disabled: readOnly
|
|
2435
|
+
}
|
|
2436
|
+
),
|
|
2437
|
+
/* @__PURE__ */ jsx13("span", { children: "Nullable" })
|
|
2438
|
+
] })
|
|
2439
|
+
] }),
|
|
2440
|
+
(v.validation.length > 0 || !readOnly) && /* @__PURE__ */ jsxs12("div", { className: "lace-panel-row-content", children: [
|
|
2441
|
+
/* @__PURE__ */ jsx13("div", { className: "lace-panel-subsection-label", children: "Validation" }),
|
|
2442
|
+
v.validation.map((block, j) => /* @__PURE__ */ jsxs12("div", { className: "lace-panel-validation-block", children: [
|
|
2443
|
+
/* @__PURE__ */ jsx13(
|
|
2444
|
+
Input5,
|
|
2445
|
+
{
|
|
2446
|
+
value: block.condition,
|
|
2447
|
+
onChange: (e) => updateValidation(i, j, "condition", e.target.value),
|
|
2448
|
+
placeholder: "condition (e.g. length(var.x) > 0)",
|
|
2449
|
+
"aria-label": "Validation condition",
|
|
2450
|
+
fullWidth: true,
|
|
2451
|
+
mono: true,
|
|
2452
|
+
readOnly
|
|
2453
|
+
}
|
|
2454
|
+
),
|
|
2455
|
+
/* @__PURE__ */ jsx13(
|
|
2456
|
+
Input5,
|
|
2457
|
+
{
|
|
2458
|
+
value: block.error_message,
|
|
2459
|
+
onChange: (e) => updateValidation(i, j, "error_message", e.target.value),
|
|
2460
|
+
placeholder: "error message",
|
|
2461
|
+
"aria-label": "Validation error message",
|
|
2462
|
+
fullWidth: true,
|
|
2463
|
+
readOnly
|
|
2464
|
+
}
|
|
2465
|
+
),
|
|
2466
|
+
!readOnly && /* @__PURE__ */ jsx13(
|
|
2467
|
+
Button4,
|
|
2468
|
+
{
|
|
2469
|
+
variant: "danger",
|
|
2470
|
+
size: "sm",
|
|
2471
|
+
onClick: () => removeValidation(i, j),
|
|
2472
|
+
"aria-label": "Remove validation rule",
|
|
2473
|
+
title: "Remove validation rule",
|
|
2474
|
+
children: "\u2715"
|
|
2475
|
+
}
|
|
2476
|
+
)
|
|
2477
|
+
] }, block.id)),
|
|
2478
|
+
!readOnly && /* @__PURE__ */ jsx13(Button4, { variant: "secondary", size: "sm", onClick: () => addValidation(i), children: "+ Add validation rule" })
|
|
2479
|
+
] })
|
|
2245
2480
|
] }, v.id)),
|
|
2246
2481
|
/* @__PURE__ */ jsx13("h4", { className: "lace-panel-section-title", children: "Outputs" }),
|
|
2247
2482
|
outputs.length === 0 ? /* @__PURE__ */ jsx13("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__ */ jsxs12("div", { className: "lace-panel-row-card lace-panel-row-card--with-footer", children: [
|
|
@@ -2273,6 +2508,20 @@ function ModuleInterfaceContent({
|
|
|
2273
2508
|
error: exposedNameCollisions.has(i)
|
|
2274
2509
|
}
|
|
2275
2510
|
) }) : null,
|
|
2511
|
+
o.exposed && (o.depends_on.length > 0 || !readOnly && siblingModuleKeys.length > 0) ? /* @__PURE__ */ jsxs12("div", { className: "lace-panel-row-content", children: [
|
|
2512
|
+
/* @__PURE__ */ jsx13("div", { className: "lace-panel-subsection-label", children: "Depends on" }),
|
|
2513
|
+
readOnly ? o.depends_on.map((depKey) => /* @__PURE__ */ jsx13("div", { className: "lace-panel-depends-item", children: depKey }, depKey)) : siblingModuleKeys.map((depKey) => /* @__PURE__ */ jsxs12("label", { className: "lace-panel-checkbox-row", children: [
|
|
2514
|
+
/* @__PURE__ */ jsx13(
|
|
2515
|
+
"input",
|
|
2516
|
+
{
|
|
2517
|
+
type: "checkbox",
|
|
2518
|
+
checked: o.depends_on.includes(depKey),
|
|
2519
|
+
onChange: () => toggleDependsOn(i, depKey)
|
|
2520
|
+
}
|
|
2521
|
+
),
|
|
2522
|
+
/* @__PURE__ */ jsx13("span", { className: "lace-panel-checkbox-row__source", children: depKey })
|
|
2523
|
+
] }, depKey))
|
|
2524
|
+
] }) : null,
|
|
2276
2525
|
exposedNameCollisions.has(i) ? /* @__PURE__ */ jsx13("div", { className: "lace-panel-row-error", children: "Exposed name must be unique and non-empty." }) : null
|
|
2277
2526
|
] }, o.id)),
|
|
2278
2527
|
!readOnly && /* @__PURE__ */ jsx13(
|
|
@@ -2287,11 +2536,30 @@ function ModuleInterfaceContent({
|
|
|
2287
2536
|
)
|
|
2288
2537
|
] });
|
|
2289
2538
|
}
|
|
2539
|
+
function ModuleInterfacePanel({
|
|
2540
|
+
settings,
|
|
2541
|
+
view,
|
|
2542
|
+
readOnly = false,
|
|
2543
|
+
onSaveVariables,
|
|
2544
|
+
onSaveExports,
|
|
2545
|
+
onClose
|
|
2546
|
+
}) {
|
|
2547
|
+
return /* @__PURE__ */ jsx13(Panel8, { title: "Module Interface", onClose, children: /* @__PURE__ */ jsx13(
|
|
2548
|
+
ModuleInterfaceContent,
|
|
2549
|
+
{
|
|
2550
|
+
settings,
|
|
2551
|
+
view,
|
|
2552
|
+
readOnly,
|
|
2553
|
+
onSaveVariables,
|
|
2554
|
+
onSaveExports
|
|
2555
|
+
}
|
|
2556
|
+
) });
|
|
2557
|
+
}
|
|
2290
2558
|
|
|
2291
2559
|
// src/components/panels/ModuleMetadataPanel.tsx
|
|
2292
2560
|
import { Input as Input6, Panel as Panel9, Textarea as Textarea4 } from "@lace-cloud/ui";
|
|
2293
2561
|
import { useCallback as useCallback9, useEffect as useEffect7, useState as useState11 } from "react";
|
|
2294
|
-
import "./panels-shared-
|
|
2562
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
2295
2563
|
import { Fragment as Fragment7, jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2296
2564
|
var ID_PATTERN = /^[a-z0-9_-]+\/[a-z0-9_-]+\/[a-z0-9_-]+$/;
|
|
2297
2565
|
var NAME_PATTERN = /^[a-z][a-z0-9_-]*$/;
|
|
@@ -2547,12 +2815,12 @@ function ModuleMetadataContent({ engine, readOnly = false, onSaved }) {
|
|
|
2547
2815
|
}
|
|
2548
2816
|
|
|
2549
2817
|
// src/components/panels/UnifiedSettingsPanel.tsx
|
|
2550
|
-
import "./panels-shared-
|
|
2818
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
2551
2819
|
|
|
2552
2820
|
// src/components/panels/ProvidersPanel.tsx
|
|
2553
2821
|
import { Input as Input7, Panel as Panel10 } from "@lace-cloud/ui";
|
|
2554
2822
|
import { useCallback as useCallback10, useState as useState12 } from "react";
|
|
2555
|
-
import "./panels-shared-
|
|
2823
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
2556
2824
|
import { Fragment as Fragment8, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2557
2825
|
function toRows2(providers) {
|
|
2558
2826
|
if (!providers || providers.length === 0) return [];
|
|
@@ -2564,7 +2832,8 @@ function toRows2(providers) {
|
|
|
2564
2832
|
id: crypto.randomUUID(),
|
|
2565
2833
|
key,
|
|
2566
2834
|
value: String(value)
|
|
2567
|
-
}))
|
|
2835
|
+
})),
|
|
2836
|
+
blocks: p.blocks ?? []
|
|
2568
2837
|
}));
|
|
2569
2838
|
}
|
|
2570
2839
|
function fromRows2(rows) {
|
|
@@ -2578,10 +2847,16 @@ function fromRows2(rows) {
|
|
|
2578
2847
|
return {
|
|
2579
2848
|
name: r.name.trim(),
|
|
2580
2849
|
alias: r.alias.trim() || "",
|
|
2581
|
-
config
|
|
2850
|
+
config,
|
|
2851
|
+
// Echo the nested blocks verbatim so a config edit never wipes them.
|
|
2852
|
+
blocks: r.blocks.length > 0 ? r.blocks : void 0
|
|
2582
2853
|
};
|
|
2583
2854
|
});
|
|
2584
2855
|
}
|
|
2856
|
+
function blockLabel(block) {
|
|
2857
|
+
const labels = block.labels.length > 0 ? ` ${block.labels.map((l) => `"${l}"`).join(" ")}` : "";
|
|
2858
|
+
return `${block.type}${labels}`;
|
|
2859
|
+
}
|
|
2585
2860
|
function ProvidersContent({ providers, readOnly = false, onSave }) {
|
|
2586
2861
|
const [rows, setRows] = useState12(() => toRows2(providers));
|
|
2587
2862
|
const addProvider = useCallback10(() => {
|
|
@@ -2591,7 +2866,8 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
|
|
|
2591
2866
|
id: crypto.randomUUID(),
|
|
2592
2867
|
name: "",
|
|
2593
2868
|
alias: "",
|
|
2594
|
-
configEntries: [{ id: crypto.randomUUID(), key: "", value: "" }]
|
|
2869
|
+
configEntries: [{ id: crypto.randomUUID(), key: "", value: "" }],
|
|
2870
|
+
blocks: []
|
|
2595
2871
|
}
|
|
2596
2872
|
]);
|
|
2597
2873
|
}, []);
|
|
@@ -2713,7 +2989,18 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
|
|
|
2713
2989
|
className: "lace-panel-add-btn lace-panel-add-btn--sm",
|
|
2714
2990
|
children: "+ Add config key"
|
|
2715
2991
|
}
|
|
2716
|
-
)
|
|
2992
|
+
),
|
|
2993
|
+
row.blocks.length > 0 ? /* @__PURE__ */ jsxs14(Fragment8, { children: [
|
|
2994
|
+
/* @__PURE__ */ jsx15("div", { className: "lace-panel-row-sublabel", children: "Nested blocks (read-only)" }),
|
|
2995
|
+
row.blocks.map((block, bi) => /* @__PURE__ */ jsx15(
|
|
2996
|
+
"div",
|
|
2997
|
+
{
|
|
2998
|
+
className: "lace-panel-depends-item",
|
|
2999
|
+
children: blockLabel(block)
|
|
3000
|
+
},
|
|
3001
|
+
`${row.id}-block-${bi}`
|
|
3002
|
+
))
|
|
3003
|
+
] }) : null
|
|
2717
3004
|
] }, row.id)),
|
|
2718
3005
|
!readOnly && /* @__PURE__ */ jsxs14(Fragment8, { children: [
|
|
2719
3006
|
/* @__PURE__ */ jsx15("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
|
|
@@ -2721,14 +3008,14 @@ function ProvidersContent({ providers, readOnly = false, onSave }) {
|
|
|
2721
3008
|
] })
|
|
2722
3009
|
] });
|
|
2723
3010
|
}
|
|
2724
|
-
function ProvidersPanel({ providers, onSave, onClose }) {
|
|
2725
|
-
return /* @__PURE__ */ jsx15(Panel10, { title: "Providers", onClose, children: /* @__PURE__ */ jsx15(ProvidersContent, { providers, onSave }) });
|
|
3011
|
+
function ProvidersPanel({ providers, readOnly = false, onSave, onClose }) {
|
|
3012
|
+
return /* @__PURE__ */ jsx15(Panel10, { title: "Providers", onClose, children: /* @__PURE__ */ jsx15(ProvidersContent, { providers, readOnly, onSave }) });
|
|
2726
3013
|
}
|
|
2727
3014
|
|
|
2728
3015
|
// src/components/panels/TerraformConfigPanel.tsx
|
|
2729
3016
|
import { Input as Input8, Panel as Panel11 } from "@lace-cloud/ui";
|
|
2730
3017
|
import { useCallback as useCallback11, useState as useState13 } from "react";
|
|
2731
|
-
import "./panels-shared-
|
|
3018
|
+
import "./panels-shared-LLLB7PR4.css";
|
|
2732
3019
|
import { Fragment as Fragment9, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2733
3020
|
function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
|
|
2734
3021
|
const [requiredVersion, setRequiredVersion] = useState13(terraform?.required_version ?? "");
|
|
@@ -2738,13 +3025,14 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
|
|
|
2738
3025
|
id: crypto.randomUUID(),
|
|
2739
3026
|
name: req.name,
|
|
2740
3027
|
source: req.source ?? "",
|
|
2741
|
-
version: req.version ?? ""
|
|
3028
|
+
version: req.version ?? "",
|
|
3029
|
+
configuration_aliases: req.configuration_aliases ?? []
|
|
2742
3030
|
}));
|
|
2743
3031
|
});
|
|
2744
3032
|
const addProvider = useCallback11(() => {
|
|
2745
3033
|
setProviders((prev) => [
|
|
2746
3034
|
...prev,
|
|
2747
|
-
{ id: crypto.randomUUID(), name: "", source: "", version: "" }
|
|
3035
|
+
{ id: crypto.randomUUID(), name: "", source: "", version: "", configuration_aliases: [] }
|
|
2748
3036
|
]);
|
|
2749
3037
|
}, []);
|
|
2750
3038
|
const removeProvider = useCallback11((index) => {
|
|
@@ -2763,7 +3051,8 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
|
|
|
2763
3051
|
required_providers: providers.filter((p) => p.name.trim()).map((p) => ({
|
|
2764
3052
|
name: p.name.trim(),
|
|
2765
3053
|
source: p.source.trim(),
|
|
2766
|
-
version: p.version.trim()
|
|
3054
|
+
version: p.version.trim(),
|
|
3055
|
+
configuration_aliases: p.configuration_aliases.length > 0 ? p.configuration_aliases : void 0
|
|
2767
3056
|
}))
|
|
2768
3057
|
};
|
|
2769
3058
|
await onSave(block);
|
|
@@ -2823,6 +3112,16 @@ function TerraformConfigContent({ terraform, readOnly = false, onSave }) {
|
|
|
2823
3112
|
fullWidth: true,
|
|
2824
3113
|
readOnly
|
|
2825
3114
|
}
|
|
3115
|
+
) }),
|
|
3116
|
+
p.configuration_aliases.length > 0 && /* @__PURE__ */ jsx16("div", { className: "lace-panel-row-actions", children: /* @__PURE__ */ jsx16(
|
|
3117
|
+
Input8,
|
|
3118
|
+
{
|
|
3119
|
+
value: p.configuration_aliases.join(", "),
|
|
3120
|
+
"aria-label": `${p.name || "provider"} configuration_aliases`,
|
|
3121
|
+
placeholder: "configuration_aliases",
|
|
3122
|
+
fullWidth: true,
|
|
3123
|
+
readOnly: true
|
|
3124
|
+
}
|
|
2826
3125
|
) })
|
|
2827
3126
|
] }, p.id)),
|
|
2828
3127
|
!readOnly && /* @__PURE__ */ jsx16("button", { type: "button", onClick: addProvider, className: "lace-panel-add-btn", children: "+ Add provider" }),
|
|
@@ -2885,7 +3184,8 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
|
|
|
2885
3184
|
terraform.required_providers.length > 0 ? terraform.required_providers.map((p) => ({
|
|
2886
3185
|
name: p.name,
|
|
2887
3186
|
source: p.source,
|
|
2888
|
-
version: p.version
|
|
3187
|
+
version: p.version,
|
|
3188
|
+
configuration_aliases: p.configuration_aliases
|
|
2889
3189
|
})) : void 0
|
|
2890
3190
|
);
|
|
2891
3191
|
onSaved?.();
|
|
@@ -2902,7 +3202,8 @@ function UnifiedSettingsPanel({ engine, onClose, onSaved }) {
|
|
|
2902
3202
|
providers.map((p) => ({
|
|
2903
3203
|
name: p.name,
|
|
2904
3204
|
alias: p.alias,
|
|
2905
|
-
config: p.config
|
|
3205
|
+
config: p.config,
|
|
3206
|
+
blocks: p.blocks
|
|
2906
3207
|
}))
|
|
2907
3208
|
);
|
|
2908
3209
|
onSaved?.();
|
|
@@ -12098,6 +12399,165 @@ var SetDependsOnAction = {
|
|
|
12098
12399
|
return message;
|
|
12099
12400
|
}
|
|
12100
12401
|
};
|
|
12402
|
+
function createBaseSetUseProvidersAction() {
|
|
12403
|
+
return { instance_id: "", providers: {} };
|
|
12404
|
+
}
|
|
12405
|
+
var SetUseProvidersAction = {
|
|
12406
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
12407
|
+
if (message.instance_id !== "") {
|
|
12408
|
+
writer.uint32(10).string(message.instance_id);
|
|
12409
|
+
}
|
|
12410
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
12411
|
+
SetUseProvidersAction_ProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
12412
|
+
});
|
|
12413
|
+
return writer;
|
|
12414
|
+
},
|
|
12415
|
+
decode(input, length) {
|
|
12416
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
12417
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12418
|
+
const message = createBaseSetUseProvidersAction();
|
|
12419
|
+
while (reader.pos < end) {
|
|
12420
|
+
const tag = reader.uint32();
|
|
12421
|
+
switch (tag >>> 3) {
|
|
12422
|
+
case 1: {
|
|
12423
|
+
if (tag !== 10) {
|
|
12424
|
+
break;
|
|
12425
|
+
}
|
|
12426
|
+
message.instance_id = reader.string();
|
|
12427
|
+
continue;
|
|
12428
|
+
}
|
|
12429
|
+
case 2: {
|
|
12430
|
+
if (tag !== 18) {
|
|
12431
|
+
break;
|
|
12432
|
+
}
|
|
12433
|
+
const entry2 = SetUseProvidersAction_ProvidersEntry.decode(reader, reader.uint32());
|
|
12434
|
+
if (entry2.value !== void 0) {
|
|
12435
|
+
message.providers[entry2.key] = entry2.value;
|
|
12436
|
+
}
|
|
12437
|
+
continue;
|
|
12438
|
+
}
|
|
12439
|
+
}
|
|
12440
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12441
|
+
break;
|
|
12442
|
+
}
|
|
12443
|
+
reader.skip(tag & 7);
|
|
12444
|
+
}
|
|
12445
|
+
return message;
|
|
12446
|
+
},
|
|
12447
|
+
fromJSON(object) {
|
|
12448
|
+
return {
|
|
12449
|
+
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
12450
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
12451
|
+
(acc, [key, value]) => {
|
|
12452
|
+
acc[key] = globalThis.String(value);
|
|
12453
|
+
return acc;
|
|
12454
|
+
},
|
|
12455
|
+
{}
|
|
12456
|
+
) : {}
|
|
12457
|
+
};
|
|
12458
|
+
},
|
|
12459
|
+
toJSON(message) {
|
|
12460
|
+
const obj = {};
|
|
12461
|
+
if (message.instance_id !== "") {
|
|
12462
|
+
obj.instanceId = message.instance_id;
|
|
12463
|
+
}
|
|
12464
|
+
if (message.providers) {
|
|
12465
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
12466
|
+
if (entries.length > 0) {
|
|
12467
|
+
obj.providers = {};
|
|
12468
|
+
entries.forEach(([k, v]) => {
|
|
12469
|
+
obj.providers[k] = v;
|
|
12470
|
+
});
|
|
12471
|
+
}
|
|
12472
|
+
}
|
|
12473
|
+
return obj;
|
|
12474
|
+
},
|
|
12475
|
+
create(base) {
|
|
12476
|
+
return SetUseProvidersAction.fromPartial(base ?? {});
|
|
12477
|
+
},
|
|
12478
|
+
fromPartial(object) {
|
|
12479
|
+
const message = createBaseSetUseProvidersAction();
|
|
12480
|
+
message.instance_id = object.instance_id ?? "";
|
|
12481
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
12482
|
+
(acc, [key, value]) => {
|
|
12483
|
+
if (value !== void 0) {
|
|
12484
|
+
acc[key] = globalThis.String(value);
|
|
12485
|
+
}
|
|
12486
|
+
return acc;
|
|
12487
|
+
},
|
|
12488
|
+
{}
|
|
12489
|
+
);
|
|
12490
|
+
return message;
|
|
12491
|
+
}
|
|
12492
|
+
};
|
|
12493
|
+
function createBaseSetUseProvidersAction_ProvidersEntry() {
|
|
12494
|
+
return { key: "", value: "" };
|
|
12495
|
+
}
|
|
12496
|
+
var SetUseProvidersAction_ProvidersEntry = {
|
|
12497
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
12498
|
+
if (message.key !== "") {
|
|
12499
|
+
writer.uint32(10).string(message.key);
|
|
12500
|
+
}
|
|
12501
|
+
if (message.value !== "") {
|
|
12502
|
+
writer.uint32(18).string(message.value);
|
|
12503
|
+
}
|
|
12504
|
+
return writer;
|
|
12505
|
+
},
|
|
12506
|
+
decode(input, length) {
|
|
12507
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
12508
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12509
|
+
const message = createBaseSetUseProvidersAction_ProvidersEntry();
|
|
12510
|
+
while (reader.pos < end) {
|
|
12511
|
+
const tag = reader.uint32();
|
|
12512
|
+
switch (tag >>> 3) {
|
|
12513
|
+
case 1: {
|
|
12514
|
+
if (tag !== 10) {
|
|
12515
|
+
break;
|
|
12516
|
+
}
|
|
12517
|
+
message.key = reader.string();
|
|
12518
|
+
continue;
|
|
12519
|
+
}
|
|
12520
|
+
case 2: {
|
|
12521
|
+
if (tag !== 18) {
|
|
12522
|
+
break;
|
|
12523
|
+
}
|
|
12524
|
+
message.value = reader.string();
|
|
12525
|
+
continue;
|
|
12526
|
+
}
|
|
12527
|
+
}
|
|
12528
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12529
|
+
break;
|
|
12530
|
+
}
|
|
12531
|
+
reader.skip(tag & 7);
|
|
12532
|
+
}
|
|
12533
|
+
return message;
|
|
12534
|
+
},
|
|
12535
|
+
fromJSON(object) {
|
|
12536
|
+
return {
|
|
12537
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
12538
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
12539
|
+
};
|
|
12540
|
+
},
|
|
12541
|
+
toJSON(message) {
|
|
12542
|
+
const obj = {};
|
|
12543
|
+
if (message.key !== "") {
|
|
12544
|
+
obj.key = message.key;
|
|
12545
|
+
}
|
|
12546
|
+
if (message.value !== "") {
|
|
12547
|
+
obj.value = message.value;
|
|
12548
|
+
}
|
|
12549
|
+
return obj;
|
|
12550
|
+
},
|
|
12551
|
+
create(base) {
|
|
12552
|
+
return SetUseProvidersAction_ProvidersEntry.fromPartial(base ?? {});
|
|
12553
|
+
},
|
|
12554
|
+
fromPartial(object) {
|
|
12555
|
+
const message = createBaseSetUseProvidersAction_ProvidersEntry();
|
|
12556
|
+
message.key = object.key ?? "";
|
|
12557
|
+
message.value = object.value ?? "";
|
|
12558
|
+
return message;
|
|
12559
|
+
}
|
|
12560
|
+
};
|
|
12101
12561
|
function createBaseSetEnvironmentsAction() {
|
|
12102
12562
|
return { environments: {}, environment_backends: {} };
|
|
12103
12563
|
}
|
|
@@ -12568,7 +13028,8 @@ function createBaseAction() {
|
|
|
12568
13028
|
set_environments: void 0,
|
|
12569
13029
|
undo: void 0,
|
|
12570
13030
|
redo: void 0,
|
|
12571
|
-
place_module: void 0
|
|
13031
|
+
place_module: void 0,
|
|
13032
|
+
set_use_providers: void 0
|
|
12572
13033
|
};
|
|
12573
13034
|
}
|
|
12574
13035
|
var Action = {
|
|
@@ -12639,6 +13100,9 @@ var Action = {
|
|
|
12639
13100
|
if (message.place_module !== void 0) {
|
|
12640
13101
|
PlaceModuleAction.encode(message.place_module, writer.uint32(178).fork()).join();
|
|
12641
13102
|
}
|
|
13103
|
+
if (message.set_use_providers !== void 0) {
|
|
13104
|
+
SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
|
|
13105
|
+
}
|
|
12642
13106
|
return writer;
|
|
12643
13107
|
},
|
|
12644
13108
|
decode(input, length) {
|
|
@@ -12802,6 +13266,13 @@ var Action = {
|
|
|
12802
13266
|
message.place_module = PlaceModuleAction.decode(reader, reader.uint32());
|
|
12803
13267
|
continue;
|
|
12804
13268
|
}
|
|
13269
|
+
case 23: {
|
|
13270
|
+
if (tag !== 186) {
|
|
13271
|
+
break;
|
|
13272
|
+
}
|
|
13273
|
+
message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
|
|
13274
|
+
continue;
|
|
13275
|
+
}
|
|
12805
13276
|
}
|
|
12806
13277
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12807
13278
|
break;
|
|
@@ -12833,7 +13304,8 @@ var Action = {
|
|
|
12833
13304
|
set_environments: isSet3(object.setEnvironments) ? SetEnvironmentsAction.fromJSON(object.setEnvironments) : isSet3(object.set_environments) ? SetEnvironmentsAction.fromJSON(object.set_environments) : void 0,
|
|
12834
13305
|
undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
|
|
12835
13306
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
12836
|
-
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0
|
|
13307
|
+
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
|
|
13308
|
+
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0
|
|
12837
13309
|
};
|
|
12838
13310
|
},
|
|
12839
13311
|
toJSON(message) {
|
|
@@ -12904,6 +13376,9 @@ var Action = {
|
|
|
12904
13376
|
if (message.place_module !== void 0) {
|
|
12905
13377
|
obj.placeModule = PlaceModuleAction.toJSON(message.place_module);
|
|
12906
13378
|
}
|
|
13379
|
+
if (message.set_use_providers !== void 0) {
|
|
13380
|
+
obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
|
|
13381
|
+
}
|
|
12907
13382
|
return obj;
|
|
12908
13383
|
},
|
|
12909
13384
|
create(base) {
|
|
@@ -12933,6 +13408,7 @@ var Action = {
|
|
|
12933
13408
|
message.undo = object.undo !== void 0 && object.undo !== null ? UndoAction.fromPartial(object.undo) : void 0;
|
|
12934
13409
|
message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
|
|
12935
13410
|
message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
|
|
13411
|
+
message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
|
|
12936
13412
|
return message;
|
|
12937
13413
|
}
|
|
12938
13414
|
};
|
|
@@ -14690,7 +15166,15 @@ var RenderOutput = {
|
|
|
14690
15166
|
}
|
|
14691
15167
|
};
|
|
14692
15168
|
function createBaseNodeConfig() {
|
|
14693
|
-
return {
|
|
15169
|
+
return {
|
|
15170
|
+
instance_id: "",
|
|
15171
|
+
inputs: [],
|
|
15172
|
+
outputs: [],
|
|
15173
|
+
sibling_ids: [],
|
|
15174
|
+
depends_on: [],
|
|
15175
|
+
available_variables: [],
|
|
15176
|
+
providers: {}
|
|
15177
|
+
};
|
|
14694
15178
|
}
|
|
14695
15179
|
var NodeConfig = {
|
|
14696
15180
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -14712,6 +15196,9 @@ var NodeConfig = {
|
|
|
14712
15196
|
for (const v of message.available_variables) {
|
|
14713
15197
|
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
14714
15198
|
}
|
|
15199
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
15200
|
+
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
15201
|
+
});
|
|
14715
15202
|
return writer;
|
|
14716
15203
|
},
|
|
14717
15204
|
decode(input, length) {
|
|
@@ -14763,6 +15250,16 @@ var NodeConfig = {
|
|
|
14763
15250
|
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
14764
15251
|
continue;
|
|
14765
15252
|
}
|
|
15253
|
+
case 7: {
|
|
15254
|
+
if (tag !== 58) {
|
|
15255
|
+
break;
|
|
15256
|
+
}
|
|
15257
|
+
const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
|
|
15258
|
+
if (entry7.value !== void 0) {
|
|
15259
|
+
message.providers[entry7.key] = entry7.value;
|
|
15260
|
+
}
|
|
15261
|
+
continue;
|
|
15262
|
+
}
|
|
14766
15263
|
}
|
|
14767
15264
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14768
15265
|
break;
|
|
@@ -14778,7 +15275,14 @@ var NodeConfig = {
|
|
|
14778
15275
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
14779
15276
|
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)) : [],
|
|
14780
15277
|
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)) : [],
|
|
14781
|
-
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)) : []
|
|
15278
|
+
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)) : [],
|
|
15279
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
15280
|
+
(acc, [key, value]) => {
|
|
15281
|
+
acc[key] = globalThis.String(value);
|
|
15282
|
+
return acc;
|
|
15283
|
+
},
|
|
15284
|
+
{}
|
|
15285
|
+
) : {}
|
|
14782
15286
|
};
|
|
14783
15287
|
},
|
|
14784
15288
|
toJSON(message) {
|
|
@@ -14801,6 +15305,15 @@ var NodeConfig = {
|
|
|
14801
15305
|
if (message.available_variables?.length) {
|
|
14802
15306
|
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
14803
15307
|
}
|
|
15308
|
+
if (message.providers) {
|
|
15309
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
15310
|
+
if (entries.length > 0) {
|
|
15311
|
+
obj.providers = {};
|
|
15312
|
+
entries.forEach(([k, v]) => {
|
|
15313
|
+
obj.providers[k] = v;
|
|
15314
|
+
});
|
|
15315
|
+
}
|
|
15316
|
+
}
|
|
14804
15317
|
return obj;
|
|
14805
15318
|
},
|
|
14806
15319
|
create(base) {
|
|
@@ -14814,6 +15327,83 @@ var NodeConfig = {
|
|
|
14814
15327
|
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
14815
15328
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
14816
15329
|
message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
|
|
15330
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
15331
|
+
(acc, [key, value]) => {
|
|
15332
|
+
if (value !== void 0) {
|
|
15333
|
+
acc[key] = globalThis.String(value);
|
|
15334
|
+
}
|
|
15335
|
+
return acc;
|
|
15336
|
+
},
|
|
15337
|
+
{}
|
|
15338
|
+
);
|
|
15339
|
+
return message;
|
|
15340
|
+
}
|
|
15341
|
+
};
|
|
15342
|
+
function createBaseNodeConfig_ProvidersEntry() {
|
|
15343
|
+
return { key: "", value: "" };
|
|
15344
|
+
}
|
|
15345
|
+
var NodeConfig_ProvidersEntry = {
|
|
15346
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
15347
|
+
if (message.key !== "") {
|
|
15348
|
+
writer.uint32(10).string(message.key);
|
|
15349
|
+
}
|
|
15350
|
+
if (message.value !== "") {
|
|
15351
|
+
writer.uint32(18).string(message.value);
|
|
15352
|
+
}
|
|
15353
|
+
return writer;
|
|
15354
|
+
},
|
|
15355
|
+
decode(input, length) {
|
|
15356
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
15357
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
15358
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
15359
|
+
while (reader.pos < end) {
|
|
15360
|
+
const tag = reader.uint32();
|
|
15361
|
+
switch (tag >>> 3) {
|
|
15362
|
+
case 1: {
|
|
15363
|
+
if (tag !== 10) {
|
|
15364
|
+
break;
|
|
15365
|
+
}
|
|
15366
|
+
message.key = reader.string();
|
|
15367
|
+
continue;
|
|
15368
|
+
}
|
|
15369
|
+
case 2: {
|
|
15370
|
+
if (tag !== 18) {
|
|
15371
|
+
break;
|
|
15372
|
+
}
|
|
15373
|
+
message.value = reader.string();
|
|
15374
|
+
continue;
|
|
15375
|
+
}
|
|
15376
|
+
}
|
|
15377
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15378
|
+
break;
|
|
15379
|
+
}
|
|
15380
|
+
reader.skip(tag & 7);
|
|
15381
|
+
}
|
|
15382
|
+
return message;
|
|
15383
|
+
},
|
|
15384
|
+
fromJSON(object) {
|
|
15385
|
+
return {
|
|
15386
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
15387
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
15388
|
+
};
|
|
15389
|
+
},
|
|
15390
|
+
toJSON(message) {
|
|
15391
|
+
const obj = {};
|
|
15392
|
+
if (message.key !== "") {
|
|
15393
|
+
obj.key = message.key;
|
|
15394
|
+
}
|
|
15395
|
+
if (message.value !== "") {
|
|
15396
|
+
obj.value = message.value;
|
|
15397
|
+
}
|
|
15398
|
+
return obj;
|
|
15399
|
+
},
|
|
15400
|
+
create(base) {
|
|
15401
|
+
return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
|
|
15402
|
+
},
|
|
15403
|
+
fromPartial(object) {
|
|
15404
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
15405
|
+
message.key = object.key ?? "";
|
|
15406
|
+
message.value = object.value ?? "";
|
|
14817
15407
|
return message;
|
|
14818
15408
|
}
|
|
14819
15409
|
};
|
|
@@ -15426,7 +16016,7 @@ var TerraformView = {
|
|
|
15426
16016
|
}
|
|
15427
16017
|
};
|
|
15428
16018
|
function createBaseProviderReqView() {
|
|
15429
|
-
return { name: "", source: "", version: "" };
|
|
16019
|
+
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
15430
16020
|
}
|
|
15431
16021
|
var ProviderReqView = {
|
|
15432
16022
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -15439,6 +16029,9 @@ var ProviderReqView = {
|
|
|
15439
16029
|
if (message.version !== "") {
|
|
15440
16030
|
writer.uint32(26).string(message.version);
|
|
15441
16031
|
}
|
|
16032
|
+
for (const v of message.configuration_aliases) {
|
|
16033
|
+
writer.uint32(34).string(v);
|
|
16034
|
+
}
|
|
15442
16035
|
return writer;
|
|
15443
16036
|
},
|
|
15444
16037
|
decode(input, length) {
|
|
@@ -15469,6 +16062,13 @@ var ProviderReqView = {
|
|
|
15469
16062
|
message.version = reader.string();
|
|
15470
16063
|
continue;
|
|
15471
16064
|
}
|
|
16065
|
+
case 4: {
|
|
16066
|
+
if (tag !== 34) {
|
|
16067
|
+
break;
|
|
16068
|
+
}
|
|
16069
|
+
message.configuration_aliases.push(reader.string());
|
|
16070
|
+
continue;
|
|
16071
|
+
}
|
|
15472
16072
|
}
|
|
15473
16073
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15474
16074
|
break;
|
|
@@ -15481,7 +16081,8 @@ var ProviderReqView = {
|
|
|
15481
16081
|
return {
|
|
15482
16082
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
15483
16083
|
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
15484
|
-
version: isSet3(object.version) ? globalThis.String(object.version) : ""
|
|
16084
|
+
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
16085
|
+
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)) : []
|
|
15485
16086
|
};
|
|
15486
16087
|
},
|
|
15487
16088
|
toJSON(message) {
|
|
@@ -15495,6 +16096,9 @@ var ProviderReqView = {
|
|
|
15495
16096
|
if (message.version !== "") {
|
|
15496
16097
|
obj.version = message.version;
|
|
15497
16098
|
}
|
|
16099
|
+
if (message.configuration_aliases?.length) {
|
|
16100
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
16101
|
+
}
|
|
15498
16102
|
return obj;
|
|
15499
16103
|
},
|
|
15500
16104
|
create(base) {
|
|
@@ -15505,6 +16109,7 @@ var ProviderReqView = {
|
|
|
15505
16109
|
message.name = object.name ?? "";
|
|
15506
16110
|
message.source = object.source ?? "";
|
|
15507
16111
|
message.version = object.version ?? "";
|
|
16112
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
15508
16113
|
return message;
|
|
15509
16114
|
}
|
|
15510
16115
|
};
|
|
@@ -15670,7 +16275,7 @@ var BackendView_ConfigEntry = {
|
|
|
15670
16275
|
}
|
|
15671
16276
|
};
|
|
15672
16277
|
function createBaseProviderView() {
|
|
15673
|
-
return { name: "", alias: "", config: {} };
|
|
16278
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
15674
16279
|
}
|
|
15675
16280
|
var ProviderView = {
|
|
15676
16281
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -15683,6 +16288,9 @@ var ProviderView = {
|
|
|
15683
16288
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
15684
16289
|
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
15685
16290
|
});
|
|
16291
|
+
for (const v of message.blocks) {
|
|
16292
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
16293
|
+
}
|
|
15686
16294
|
return writer;
|
|
15687
16295
|
},
|
|
15688
16296
|
decode(input, length) {
|
|
@@ -15716,6 +16324,13 @@ var ProviderView = {
|
|
|
15716
16324
|
}
|
|
15717
16325
|
continue;
|
|
15718
16326
|
}
|
|
16327
|
+
case 4: {
|
|
16328
|
+
if (tag !== 34) {
|
|
16329
|
+
break;
|
|
16330
|
+
}
|
|
16331
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
16332
|
+
continue;
|
|
16333
|
+
}
|
|
15719
16334
|
}
|
|
15720
16335
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15721
16336
|
break;
|
|
@@ -15734,7 +16349,8 @@ var ProviderView = {
|
|
|
15734
16349
|
return acc;
|
|
15735
16350
|
},
|
|
15736
16351
|
{}
|
|
15737
|
-
) : {}
|
|
16352
|
+
) : {},
|
|
16353
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
15738
16354
|
};
|
|
15739
16355
|
},
|
|
15740
16356
|
toJSON(message) {
|
|
@@ -15754,6 +16370,9 @@ var ProviderView = {
|
|
|
15754
16370
|
});
|
|
15755
16371
|
}
|
|
15756
16372
|
}
|
|
16373
|
+
if (message.blocks?.length) {
|
|
16374
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
16375
|
+
}
|
|
15757
16376
|
return obj;
|
|
15758
16377
|
},
|
|
15759
16378
|
create(base) {
|
|
@@ -15772,6 +16391,7 @@ var ProviderView = {
|
|
|
15772
16391
|
},
|
|
15773
16392
|
{}
|
|
15774
16393
|
);
|
|
16394
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
15775
16395
|
return message;
|
|
15776
16396
|
}
|
|
15777
16397
|
};
|
|
@@ -16085,7 +16705,9 @@ function createBaseInputDef2() {
|
|
|
16085
16705
|
description: "",
|
|
16086
16706
|
default_value: void 0,
|
|
16087
16707
|
validation: [],
|
|
16088
|
-
ephemeral: void 0
|
|
16708
|
+
ephemeral: void 0,
|
|
16709
|
+
nullable: void 0,
|
|
16710
|
+
sensitive: false
|
|
16089
16711
|
};
|
|
16090
16712
|
}
|
|
16091
16713
|
var InputDef2 = {
|
|
@@ -16111,6 +16733,12 @@ var InputDef2 = {
|
|
|
16111
16733
|
if (message.ephemeral !== void 0) {
|
|
16112
16734
|
writer.uint32(56).bool(message.ephemeral);
|
|
16113
16735
|
}
|
|
16736
|
+
if (message.nullable !== void 0) {
|
|
16737
|
+
writer.uint32(64).bool(message.nullable);
|
|
16738
|
+
}
|
|
16739
|
+
if (message.sensitive !== false) {
|
|
16740
|
+
writer.uint32(72).bool(message.sensitive);
|
|
16741
|
+
}
|
|
16114
16742
|
return writer;
|
|
16115
16743
|
},
|
|
16116
16744
|
decode(input, length) {
|
|
@@ -16169,6 +16797,20 @@ var InputDef2 = {
|
|
|
16169
16797
|
message.ephemeral = reader.bool();
|
|
16170
16798
|
continue;
|
|
16171
16799
|
}
|
|
16800
|
+
case 8: {
|
|
16801
|
+
if (tag !== 64) {
|
|
16802
|
+
break;
|
|
16803
|
+
}
|
|
16804
|
+
message.nullable = reader.bool();
|
|
16805
|
+
continue;
|
|
16806
|
+
}
|
|
16807
|
+
case 9: {
|
|
16808
|
+
if (tag !== 72) {
|
|
16809
|
+
break;
|
|
16810
|
+
}
|
|
16811
|
+
message.sensitive = reader.bool();
|
|
16812
|
+
continue;
|
|
16813
|
+
}
|
|
16172
16814
|
}
|
|
16173
16815
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16174
16816
|
break;
|
|
@@ -16185,7 +16827,9 @@ var InputDef2 = {
|
|
|
16185
16827
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
16186
16828
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
16187
16829
|
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
16188
|
-
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
16830
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
|
|
16831
|
+
nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
16832
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
16189
16833
|
};
|
|
16190
16834
|
},
|
|
16191
16835
|
toJSON(message) {
|
|
@@ -16211,6 +16855,12 @@ var InputDef2 = {
|
|
|
16211
16855
|
if (message.ephemeral !== void 0) {
|
|
16212
16856
|
obj.ephemeral = message.ephemeral;
|
|
16213
16857
|
}
|
|
16858
|
+
if (message.nullable !== void 0) {
|
|
16859
|
+
obj.nullable = message.nullable;
|
|
16860
|
+
}
|
|
16861
|
+
if (message.sensitive !== false) {
|
|
16862
|
+
obj.sensitive = message.sensitive;
|
|
16863
|
+
}
|
|
16214
16864
|
return obj;
|
|
16215
16865
|
},
|
|
16216
16866
|
create(base) {
|
|
@@ -16225,6 +16875,8 @@ var InputDef2 = {
|
|
|
16225
16875
|
message.default_value = object.default_value ?? void 0;
|
|
16226
16876
|
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
16227
16877
|
message.ephemeral = object.ephemeral ?? void 0;
|
|
16878
|
+
message.nullable = object.nullable ?? void 0;
|
|
16879
|
+
message.sensitive = object.sensitive ?? false;
|
|
16228
16880
|
return message;
|
|
16229
16881
|
}
|
|
16230
16882
|
};
|
|
@@ -16726,8 +17378,10 @@ var ConnectWebEngine = class {
|
|
|
16726
17378
|
required: v.required,
|
|
16727
17379
|
description: v.description ?? "",
|
|
16728
17380
|
default_value: v.default ?? void 0,
|
|
16729
|
-
sensitive: false,
|
|
16730
|
-
validation: []
|
|
17381
|
+
sensitive: v.sensitive ?? false,
|
|
17382
|
+
validation: v.validation ?? [],
|
|
17383
|
+
ephemeral: v.ephemeral,
|
|
17384
|
+
nullable: v.nullable
|
|
16731
17385
|
}))
|
|
16732
17386
|
}
|
|
16733
17387
|
});
|
|
@@ -16745,7 +17399,7 @@ var ConnectWebEngine = class {
|
|
|
16745
17399
|
type: d.type,
|
|
16746
17400
|
description: d.description ?? "",
|
|
16747
17401
|
sensitive: d.sensitive ?? false,
|
|
16748
|
-
depends_on: []
|
|
17402
|
+
depends_on: d.depends_on ?? []
|
|
16749
17403
|
}))
|
|
16750
17404
|
}
|
|
16751
17405
|
});
|
|
@@ -16757,7 +17411,8 @@ var ConnectWebEngine = class {
|
|
|
16757
17411
|
required_providers: (requiredProviders ?? []).map((p) => ({
|
|
16758
17412
|
name: p.name,
|
|
16759
17413
|
source: p.source,
|
|
16760
|
-
version: p.version
|
|
17414
|
+
version: p.version,
|
|
17415
|
+
configuration_aliases: p.configuration_aliases ?? []
|
|
16761
17416
|
})),
|
|
16762
17417
|
backend: void 0
|
|
16763
17418
|
}
|
|
@@ -16769,7 +17424,8 @@ var ConnectWebEngine = class {
|
|
|
16769
17424
|
providers: providers.map((p) => ({
|
|
16770
17425
|
name: p.name,
|
|
16771
17426
|
alias: p.alias ?? "",
|
|
16772
|
-
config: p.config
|
|
17427
|
+
config: p.config,
|
|
17428
|
+
blocks: p.blocks ?? []
|
|
16773
17429
|
}))
|
|
16774
17430
|
}
|
|
16775
17431
|
});
|
|
@@ -16792,6 +17448,11 @@ var ConnectWebEngine = class {
|
|
|
16792
17448
|
set_depends_on: { instance_id: instanceId, depends_on: dependsOn }
|
|
16793
17449
|
});
|
|
16794
17450
|
}
|
|
17451
|
+
setUseProviders(instanceId, providers) {
|
|
17452
|
+
return this.applyAction({
|
|
17453
|
+
set_use_providers: { instance_id: instanceId, providers }
|
|
17454
|
+
});
|
|
17455
|
+
}
|
|
16795
17456
|
setEnvironments(environments) {
|
|
16796
17457
|
return this.applyAction({
|
|
16797
17458
|
set_environments: { environments, environment_backends: {} }
|
|
@@ -17398,8 +18059,10 @@ var PostMessageEngine = class {
|
|
|
17398
18059
|
required: v.required,
|
|
17399
18060
|
description: v.description ?? "",
|
|
17400
18061
|
default_value: v.default ?? void 0,
|
|
17401
|
-
sensitive: false,
|
|
17402
|
-
validation: []
|
|
18062
|
+
sensitive: v.sensitive ?? false,
|
|
18063
|
+
validation: v.validation ?? [],
|
|
18064
|
+
ephemeral: v.ephemeral,
|
|
18065
|
+
nullable: v.nullable
|
|
17403
18066
|
}))
|
|
17404
18067
|
}
|
|
17405
18068
|
});
|
|
@@ -17417,7 +18080,7 @@ var PostMessageEngine = class {
|
|
|
17417
18080
|
type: d.type,
|
|
17418
18081
|
description: d.description ?? "",
|
|
17419
18082
|
sensitive: d.sensitive ?? false,
|
|
17420
|
-
depends_on: []
|
|
18083
|
+
depends_on: d.depends_on ?? []
|
|
17421
18084
|
}))
|
|
17422
18085
|
}
|
|
17423
18086
|
});
|
|
@@ -17429,7 +18092,8 @@ var PostMessageEngine = class {
|
|
|
17429
18092
|
required_providers: (requiredProviders ?? []).map((p) => ({
|
|
17430
18093
|
name: p.name,
|
|
17431
18094
|
source: p.source,
|
|
17432
|
-
version: p.version
|
|
18095
|
+
version: p.version,
|
|
18096
|
+
configuration_aliases: p.configuration_aliases ?? []
|
|
17433
18097
|
})),
|
|
17434
18098
|
backend: void 0
|
|
17435
18099
|
}
|
|
@@ -17441,7 +18105,8 @@ var PostMessageEngine = class {
|
|
|
17441
18105
|
providers: providers.map((p) => ({
|
|
17442
18106
|
name: p.name,
|
|
17443
18107
|
alias: p.alias ?? "",
|
|
17444
|
-
config: p.config
|
|
18108
|
+
config: p.config,
|
|
18109
|
+
blocks: p.blocks ?? []
|
|
17445
18110
|
}))
|
|
17446
18111
|
}
|
|
17447
18112
|
});
|
|
@@ -17464,6 +18129,11 @@ var PostMessageEngine = class {
|
|
|
17464
18129
|
set_depends_on: { instance_id: instanceId, depends_on: dependsOn }
|
|
17465
18130
|
});
|
|
17466
18131
|
}
|
|
18132
|
+
setUseProviders(instanceId, providers) {
|
|
18133
|
+
return this.applyAction({
|
|
18134
|
+
set_use_providers: { instance_id: instanceId, providers }
|
|
18135
|
+
});
|
|
18136
|
+
}
|
|
17467
18137
|
setEnvironments(environments) {
|
|
17468
18138
|
return this.applyAction({
|
|
17469
18139
|
set_environments: { environments, environment_backends: {} }
|
|
@@ -17618,6 +18288,7 @@ var EMPTY_NODE_CONFIG = {
|
|
|
17618
18288
|
outputs: [],
|
|
17619
18289
|
sibling_ids: [],
|
|
17620
18290
|
depends_on: [],
|
|
18291
|
+
providers: {},
|
|
17621
18292
|
available_variables: []
|
|
17622
18293
|
};
|
|
17623
18294
|
var EMPTY_EDGE_CONFIG = {
|
|
@@ -17759,6 +18430,9 @@ var SnapshotCanvasEngine = class {
|
|
|
17759
18430
|
async setDependsOn(_instanceId, _dependsOn) {
|
|
17760
18431
|
return READ_ONLY_RESULT;
|
|
17761
18432
|
}
|
|
18433
|
+
async setUseProviders(_instanceId, _providers) {
|
|
18434
|
+
return READ_ONLY_RESULT;
|
|
18435
|
+
}
|
|
17762
18436
|
async setEnvironments(_environments) {
|
|
17763
18437
|
return READ_ONLY_RESULT;
|
|
17764
18438
|
}
|
|
@@ -17862,6 +18536,8 @@ export {
|
|
|
17862
18536
|
LocalsContent,
|
|
17863
18537
|
LocalsPanel,
|
|
17864
18538
|
ModuleConfigPanel,
|
|
18539
|
+
ModuleInterfaceContent,
|
|
18540
|
+
ModuleInterfacePanel,
|
|
17865
18541
|
ModuleNode_default as ModuleNode,
|
|
17866
18542
|
PolicySidebar,
|
|
17867
18543
|
PostMessageEngine,
|