@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/{ModuleConfigPanel-UUJPO457.css → ModuleConfigPanel-LZRL4F3Q.css} +13 -0
- package/dist/index.cjs +943 -168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +288 -243
- package/dist/index.d.ts +288 -243
- package/dist/index.mjs +942 -169
- 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?.();
|
|
@@ -5660,9 +5961,10 @@ function createBaseInputDef() {
|
|
|
5660
5961
|
required: false,
|
|
5661
5962
|
description: "",
|
|
5662
5963
|
default_value: void 0,
|
|
5663
|
-
validation:
|
|
5964
|
+
validation: [],
|
|
5664
5965
|
sensitive: false,
|
|
5665
|
-
nullable: void 0
|
|
5966
|
+
nullable: void 0,
|
|
5967
|
+
ephemeral: void 0
|
|
5666
5968
|
};
|
|
5667
5969
|
}
|
|
5668
5970
|
var InputDef = {
|
|
@@ -5682,8 +5984,8 @@ var InputDef = {
|
|
|
5682
5984
|
if (message.default_value !== void 0) {
|
|
5683
5985
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
5684
5986
|
}
|
|
5685
|
-
|
|
5686
|
-
ValidationBlock.encode(
|
|
5987
|
+
for (const v of message.validation) {
|
|
5988
|
+
ValidationBlock.encode(v, writer.uint32(50).fork()).join();
|
|
5687
5989
|
}
|
|
5688
5990
|
if (message.sensitive !== false) {
|
|
5689
5991
|
writer.uint32(56).bool(message.sensitive);
|
|
@@ -5691,6 +5993,9 @@ var InputDef = {
|
|
|
5691
5993
|
if (message.nullable !== void 0) {
|
|
5692
5994
|
writer.uint32(64).bool(message.nullable);
|
|
5693
5995
|
}
|
|
5996
|
+
if (message.ephemeral !== void 0) {
|
|
5997
|
+
writer.uint32(72).bool(message.ephemeral);
|
|
5998
|
+
}
|
|
5694
5999
|
return writer;
|
|
5695
6000
|
},
|
|
5696
6001
|
decode(input, length) {
|
|
@@ -5739,7 +6044,7 @@ var InputDef = {
|
|
|
5739
6044
|
if (tag !== 50) {
|
|
5740
6045
|
break;
|
|
5741
6046
|
}
|
|
5742
|
-
message.validation
|
|
6047
|
+
message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
|
|
5743
6048
|
continue;
|
|
5744
6049
|
}
|
|
5745
6050
|
case 7: {
|
|
@@ -5756,6 +6061,13 @@ var InputDef = {
|
|
|
5756
6061
|
message.nullable = reader.bool();
|
|
5757
6062
|
continue;
|
|
5758
6063
|
}
|
|
6064
|
+
case 9: {
|
|
6065
|
+
if (tag !== 72) {
|
|
6066
|
+
break;
|
|
6067
|
+
}
|
|
6068
|
+
message.ephemeral = reader.bool();
|
|
6069
|
+
continue;
|
|
6070
|
+
}
|
|
5759
6071
|
}
|
|
5760
6072
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5761
6073
|
break;
|
|
@@ -5771,9 +6083,10 @@ var InputDef = {
|
|
|
5771
6083
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
5772
6084
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
5773
6085
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
5774
|
-
validation:
|
|
6086
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
|
|
5775
6087
|
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
5776
|
-
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
6088
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
6089
|
+
ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
5777
6090
|
};
|
|
5778
6091
|
},
|
|
5779
6092
|
toJSON(message) {
|
|
@@ -5793,8 +6106,8 @@ var InputDef = {
|
|
|
5793
6106
|
if (message.default_value !== void 0) {
|
|
5794
6107
|
obj.defaultValue = message.default_value;
|
|
5795
6108
|
}
|
|
5796
|
-
if (message.validation
|
|
5797
|
-
obj.validation = ValidationBlock.toJSON(
|
|
6109
|
+
if (message.validation?.length) {
|
|
6110
|
+
obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
|
|
5798
6111
|
}
|
|
5799
6112
|
if (message.sensitive !== false) {
|
|
5800
6113
|
obj.sensitive = message.sensitive;
|
|
@@ -5802,6 +6115,9 @@ var InputDef = {
|
|
|
5802
6115
|
if (message.nullable !== void 0) {
|
|
5803
6116
|
obj.nullable = message.nullable;
|
|
5804
6117
|
}
|
|
6118
|
+
if (message.ephemeral !== void 0) {
|
|
6119
|
+
obj.ephemeral = message.ephemeral;
|
|
6120
|
+
}
|
|
5805
6121
|
return obj;
|
|
5806
6122
|
},
|
|
5807
6123
|
create(base) {
|
|
@@ -5814,9 +6130,10 @@ var InputDef = {
|
|
|
5814
6130
|
message.required = object.required ?? false;
|
|
5815
6131
|
message.description = object.description ?? "";
|
|
5816
6132
|
message.default_value = object.default_value ?? void 0;
|
|
5817
|
-
message.validation = object.validation
|
|
6133
|
+
message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
|
|
5818
6134
|
message.sensitive = object.sensitive ?? false;
|
|
5819
6135
|
message.nullable = object.nullable ?? void 0;
|
|
6136
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
5820
6137
|
return message;
|
|
5821
6138
|
}
|
|
5822
6139
|
};
|
|
@@ -5889,7 +6206,7 @@ var ValidationBlock = {
|
|
|
5889
6206
|
}
|
|
5890
6207
|
};
|
|
5891
6208
|
function createBaseOutputDef() {
|
|
5892
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
6209
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
5893
6210
|
}
|
|
5894
6211
|
var OutputDef = {
|
|
5895
6212
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -5905,6 +6222,9 @@ var OutputDef = {
|
|
|
5905
6222
|
if (message.sensitive !== false) {
|
|
5906
6223
|
writer.uint32(32).bool(message.sensitive);
|
|
5907
6224
|
}
|
|
6225
|
+
for (const v of message.depends_on) {
|
|
6226
|
+
writer.uint32(42).string(v);
|
|
6227
|
+
}
|
|
5908
6228
|
return writer;
|
|
5909
6229
|
},
|
|
5910
6230
|
decode(input, length) {
|
|
@@ -5942,6 +6262,13 @@ var OutputDef = {
|
|
|
5942
6262
|
message.sensitive = reader.bool();
|
|
5943
6263
|
continue;
|
|
5944
6264
|
}
|
|
6265
|
+
case 5: {
|
|
6266
|
+
if (tag !== 42) {
|
|
6267
|
+
break;
|
|
6268
|
+
}
|
|
6269
|
+
message.depends_on.push(reader.string());
|
|
6270
|
+
continue;
|
|
6271
|
+
}
|
|
5945
6272
|
}
|
|
5946
6273
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5947
6274
|
break;
|
|
@@ -5955,7 +6282,8 @@ var OutputDef = {
|
|
|
5955
6282
|
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
5956
6283
|
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
5957
6284
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
5958
|
-
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
6285
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
6286
|
+
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)) : []
|
|
5959
6287
|
};
|
|
5960
6288
|
},
|
|
5961
6289
|
toJSON(message) {
|
|
@@ -5972,6 +6300,9 @@ var OutputDef = {
|
|
|
5972
6300
|
if (message.sensitive !== false) {
|
|
5973
6301
|
obj.sensitive = message.sensitive;
|
|
5974
6302
|
}
|
|
6303
|
+
if (message.depends_on?.length) {
|
|
6304
|
+
obj.dependsOn = message.depends_on;
|
|
6305
|
+
}
|
|
5975
6306
|
return obj;
|
|
5976
6307
|
},
|
|
5977
6308
|
create(base) {
|
|
@@ -5983,6 +6314,7 @@ var OutputDef = {
|
|
|
5983
6314
|
message.type = object.type ?? "";
|
|
5984
6315
|
message.description = object.description ?? "";
|
|
5985
6316
|
message.sensitive = object.sensitive ?? false;
|
|
6317
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
5986
6318
|
return message;
|
|
5987
6319
|
}
|
|
5988
6320
|
};
|
|
@@ -6168,7 +6500,7 @@ var Local = {
|
|
|
6168
6500
|
}
|
|
6169
6501
|
};
|
|
6170
6502
|
function createBaseUse() {
|
|
6171
|
-
return { id: "", module: "", inputs: {}, depends_on: [] };
|
|
6503
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
6172
6504
|
}
|
|
6173
6505
|
var Use = {
|
|
6174
6506
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -6184,6 +6516,12 @@ var Use = {
|
|
|
6184
6516
|
for (const v of message.depends_on) {
|
|
6185
6517
|
writer.uint32(34).string(v);
|
|
6186
6518
|
}
|
|
6519
|
+
if (message.count !== void 0) {
|
|
6520
|
+
Binding.encode(message.count, writer.uint32(42).fork()).join();
|
|
6521
|
+
}
|
|
6522
|
+
if (message.for_each !== void 0) {
|
|
6523
|
+
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
6524
|
+
}
|
|
6187
6525
|
return writer;
|
|
6188
6526
|
},
|
|
6189
6527
|
decode(input, length) {
|
|
@@ -6224,6 +6562,20 @@ var Use = {
|
|
|
6224
6562
|
message.depends_on.push(reader.string());
|
|
6225
6563
|
continue;
|
|
6226
6564
|
}
|
|
6565
|
+
case 5: {
|
|
6566
|
+
if (tag !== 42) {
|
|
6567
|
+
break;
|
|
6568
|
+
}
|
|
6569
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
6570
|
+
continue;
|
|
6571
|
+
}
|
|
6572
|
+
case 6: {
|
|
6573
|
+
if (tag !== 50) {
|
|
6574
|
+
break;
|
|
6575
|
+
}
|
|
6576
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
6577
|
+
continue;
|
|
6578
|
+
}
|
|
6227
6579
|
}
|
|
6228
6580
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6229
6581
|
break;
|
|
@@ -6243,7 +6595,9 @@ var Use = {
|
|
|
6243
6595
|
},
|
|
6244
6596
|
{}
|
|
6245
6597
|
) : {},
|
|
6246
|
-
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)) : []
|
|
6598
|
+
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)) : [],
|
|
6599
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
6600
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
6247
6601
|
};
|
|
6248
6602
|
},
|
|
6249
6603
|
toJSON(message) {
|
|
@@ -6266,6 +6620,12 @@ var Use = {
|
|
|
6266
6620
|
if (message.depends_on?.length) {
|
|
6267
6621
|
obj.dependsOn = message.depends_on;
|
|
6268
6622
|
}
|
|
6623
|
+
if (message.count !== void 0) {
|
|
6624
|
+
obj.count = Binding.toJSON(message.count);
|
|
6625
|
+
}
|
|
6626
|
+
if (message.for_each !== void 0) {
|
|
6627
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
6628
|
+
}
|
|
6269
6629
|
return obj;
|
|
6270
6630
|
},
|
|
6271
6631
|
create(base) {
|
|
@@ -6285,6 +6645,8 @@ var Use = {
|
|
|
6285
6645
|
{}
|
|
6286
6646
|
);
|
|
6287
6647
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
6648
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
6649
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
6288
6650
|
return message;
|
|
6289
6651
|
}
|
|
6290
6652
|
};
|
|
@@ -7693,9 +8055,7 @@ var ProviderConfig = {
|
|
|
7693
8055
|
writer.uint32(18).string(message.alias);
|
|
7694
8056
|
}
|
|
7695
8057
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
7696
|
-
|
|
7697
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
7698
|
-
}
|
|
8058
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
7699
8059
|
});
|
|
7700
8060
|
for (const v of message.blocks) {
|
|
7701
8061
|
Block.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -7754,7 +8114,7 @@ var ProviderConfig = {
|
|
|
7754
8114
|
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
7755
8115
|
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
7756
8116
|
(acc, [key, value]) => {
|
|
7757
|
-
acc[key] = value;
|
|
8117
|
+
acc[key] = Binding.fromJSON(value);
|
|
7758
8118
|
return acc;
|
|
7759
8119
|
},
|
|
7760
8120
|
{}
|
|
@@ -7775,7 +8135,7 @@ var ProviderConfig = {
|
|
|
7775
8135
|
if (entries.length > 0) {
|
|
7776
8136
|
obj.config = {};
|
|
7777
8137
|
entries.forEach(([k, v]) => {
|
|
7778
|
-
obj.config[k] = v;
|
|
8138
|
+
obj.config[k] = Binding.toJSON(v);
|
|
7779
8139
|
});
|
|
7780
8140
|
}
|
|
7781
8141
|
}
|
|
@@ -7794,7 +8154,7 @@ var ProviderConfig = {
|
|
|
7794
8154
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
7795
8155
|
(acc, [key, value]) => {
|
|
7796
8156
|
if (value !== void 0) {
|
|
7797
|
-
acc[key] = value;
|
|
8157
|
+
acc[key] = Binding.fromPartial(value);
|
|
7798
8158
|
}
|
|
7799
8159
|
return acc;
|
|
7800
8160
|
},
|
|
@@ -7813,7 +8173,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7813
8173
|
writer.uint32(10).string(message.key);
|
|
7814
8174
|
}
|
|
7815
8175
|
if (message.value !== void 0) {
|
|
7816
|
-
|
|
8176
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
7817
8177
|
}
|
|
7818
8178
|
return writer;
|
|
7819
8179
|
},
|
|
@@ -7835,7 +8195,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7835
8195
|
if (tag !== 18) {
|
|
7836
8196
|
break;
|
|
7837
8197
|
}
|
|
7838
|
-
message.value =
|
|
8198
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
7839
8199
|
continue;
|
|
7840
8200
|
}
|
|
7841
8201
|
}
|
|
@@ -7849,7 +8209,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7849
8209
|
fromJSON(object) {
|
|
7850
8210
|
return {
|
|
7851
8211
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
7852
|
-
value: isSet2(object
|
|
8212
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
7853
8213
|
};
|
|
7854
8214
|
},
|
|
7855
8215
|
toJSON(message) {
|
|
@@ -7858,7 +8218,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7858
8218
|
obj.key = message.key;
|
|
7859
8219
|
}
|
|
7860
8220
|
if (message.value !== void 0) {
|
|
7861
|
-
obj.value = message.value;
|
|
8221
|
+
obj.value = Binding.toJSON(message.value);
|
|
7862
8222
|
}
|
|
7863
8223
|
return obj;
|
|
7864
8224
|
},
|
|
@@ -7868,7 +8228,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
7868
8228
|
fromPartial(object) {
|
|
7869
8229
|
const message = createBaseProviderConfig_ConfigEntry();
|
|
7870
8230
|
message.key = object.key ?? "";
|
|
7871
|
-
message.value = object.value
|
|
8231
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
7872
8232
|
return message;
|
|
7873
8233
|
}
|
|
7874
8234
|
};
|
|
@@ -12039,27 +12399,23 @@ var SetDependsOnAction = {
|
|
|
12039
12399
|
return message;
|
|
12040
12400
|
}
|
|
12041
12401
|
};
|
|
12042
|
-
function
|
|
12043
|
-
return {
|
|
12402
|
+
function createBaseSetUseProvidersAction() {
|
|
12403
|
+
return { instance_id: "", providers: {} };
|
|
12044
12404
|
}
|
|
12045
|
-
var
|
|
12405
|
+
var SetUseProvidersAction = {
|
|
12046
12406
|
encode(message, writer = new BinaryWriter4()) {
|
|
12047
|
-
|
|
12048
|
-
(
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
}
|
|
12053
|
-
);
|
|
12054
|
-
globalThis.Object.entries(message.environment_backends).forEach(([key, value]) => {
|
|
12055
|
-
SetEnvironmentsAction_EnvironmentBackendsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
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();
|
|
12056
12412
|
});
|
|
12057
12413
|
return writer;
|
|
12058
12414
|
},
|
|
12059
12415
|
decode(input, length) {
|
|
12060
12416
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
12061
12417
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12062
|
-
const message =
|
|
12418
|
+
const message = createBaseSetUseProvidersAction();
|
|
12063
12419
|
while (reader.pos < end) {
|
|
12064
12420
|
const tag = reader.uint32();
|
|
12065
12421
|
switch (tag >>> 3) {
|
|
@@ -12067,19 +12423,16 @@ var SetEnvironmentsAction = {
|
|
|
12067
12423
|
if (tag !== 10) {
|
|
12068
12424
|
break;
|
|
12069
12425
|
}
|
|
12070
|
-
|
|
12071
|
-
if (entry1.value !== void 0) {
|
|
12072
|
-
message.environments[entry1.key] = entry1.value;
|
|
12073
|
-
}
|
|
12426
|
+
message.instance_id = reader.string();
|
|
12074
12427
|
continue;
|
|
12075
12428
|
}
|
|
12076
12429
|
case 2: {
|
|
12077
12430
|
if (tag !== 18) {
|
|
12078
12431
|
break;
|
|
12079
12432
|
}
|
|
12080
|
-
const entry2 =
|
|
12433
|
+
const entry2 = SetUseProvidersAction_ProvidersEntry.decode(reader, reader.uint32());
|
|
12081
12434
|
if (entry2.value !== void 0) {
|
|
12082
|
-
message.
|
|
12435
|
+
message.providers[entry2.key] = entry2.value;
|
|
12083
12436
|
}
|
|
12084
12437
|
continue;
|
|
12085
12438
|
}
|
|
@@ -12093,22 +12446,10 @@ var SetEnvironmentsAction = {
|
|
|
12093
12446
|
},
|
|
12094
12447
|
fromJSON(object) {
|
|
12095
12448
|
return {
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
acc[key] = value;
|
|
12099
|
-
return acc;
|
|
12100
|
-
},
|
|
12101
|
-
{}
|
|
12102
|
-
) : {},
|
|
12103
|
-
environment_backends: isObject3(object.environmentBackends) ? globalThis.Object.entries(object.environmentBackends).reduce(
|
|
12104
|
-
(acc, [key, value]) => {
|
|
12105
|
-
acc[key] = BackendView.fromJSON(value);
|
|
12106
|
-
return acc;
|
|
12107
|
-
},
|
|
12108
|
-
{}
|
|
12109
|
-
) : isObject3(object.environment_backends) ? globalThis.Object.entries(object.environment_backends).reduce(
|
|
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(
|
|
12110
12451
|
(acc, [key, value]) => {
|
|
12111
|
-
acc[key] =
|
|
12452
|
+
acc[key] = globalThis.String(value);
|
|
12112
12453
|
return acc;
|
|
12113
12454
|
},
|
|
12114
12455
|
{}
|
|
@@ -12117,48 +12458,226 @@ var SetEnvironmentsAction = {
|
|
|
12117
12458
|
},
|
|
12118
12459
|
toJSON(message) {
|
|
12119
12460
|
const obj = {};
|
|
12120
|
-
if (message.
|
|
12121
|
-
|
|
12122
|
-
if (entries.length > 0) {
|
|
12123
|
-
obj.environments = {};
|
|
12124
|
-
entries.forEach(([k, v]) => {
|
|
12125
|
-
obj.environments[k] = v;
|
|
12126
|
-
});
|
|
12127
|
-
}
|
|
12461
|
+
if (message.instance_id !== "") {
|
|
12462
|
+
obj.instanceId = message.instance_id;
|
|
12128
12463
|
}
|
|
12129
|
-
if (message.
|
|
12130
|
-
const entries = globalThis.Object.entries(message.
|
|
12464
|
+
if (message.providers) {
|
|
12465
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
12131
12466
|
if (entries.length > 0) {
|
|
12132
|
-
obj.
|
|
12467
|
+
obj.providers = {};
|
|
12133
12468
|
entries.forEach(([k, v]) => {
|
|
12134
|
-
obj.
|
|
12469
|
+
obj.providers[k] = v;
|
|
12135
12470
|
});
|
|
12136
12471
|
}
|
|
12137
12472
|
}
|
|
12138
12473
|
return obj;
|
|
12139
12474
|
},
|
|
12140
12475
|
create(base) {
|
|
12141
|
-
return
|
|
12476
|
+
return SetUseProvidersAction.fromPartial(base ?? {});
|
|
12142
12477
|
},
|
|
12143
12478
|
fromPartial(object) {
|
|
12144
|
-
const message =
|
|
12145
|
-
message.
|
|
12479
|
+
const message = createBaseSetUseProvidersAction();
|
|
12480
|
+
message.instance_id = object.instance_id ?? "";
|
|
12481
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
12146
12482
|
(acc, [key, value]) => {
|
|
12147
12483
|
if (value !== void 0) {
|
|
12148
|
-
acc[key] = value;
|
|
12484
|
+
acc[key] = globalThis.String(value);
|
|
12149
12485
|
}
|
|
12150
12486
|
return acc;
|
|
12151
12487
|
},
|
|
12152
12488
|
{}
|
|
12153
12489
|
);
|
|
12154
|
-
message
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
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
|
+
};
|
|
12561
|
+
function createBaseSetEnvironmentsAction() {
|
|
12562
|
+
return { environments: {}, environment_backends: {} };
|
|
12563
|
+
}
|
|
12564
|
+
var SetEnvironmentsAction = {
|
|
12565
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
12566
|
+
globalThis.Object.entries(message.environments).forEach(
|
|
12567
|
+
([key, value]) => {
|
|
12568
|
+
if (value !== void 0) {
|
|
12569
|
+
SetEnvironmentsAction_EnvironmentsEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
12570
|
+
}
|
|
12571
|
+
}
|
|
12572
|
+
);
|
|
12573
|
+
globalThis.Object.entries(message.environment_backends).forEach(([key, value]) => {
|
|
12574
|
+
SetEnvironmentsAction_EnvironmentBackendsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
12575
|
+
});
|
|
12576
|
+
return writer;
|
|
12577
|
+
},
|
|
12578
|
+
decode(input, length) {
|
|
12579
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
12580
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12581
|
+
const message = createBaseSetEnvironmentsAction();
|
|
12582
|
+
while (reader.pos < end) {
|
|
12583
|
+
const tag = reader.uint32();
|
|
12584
|
+
switch (tag >>> 3) {
|
|
12585
|
+
case 1: {
|
|
12586
|
+
if (tag !== 10) {
|
|
12587
|
+
break;
|
|
12588
|
+
}
|
|
12589
|
+
const entry1 = SetEnvironmentsAction_EnvironmentsEntry.decode(reader, reader.uint32());
|
|
12590
|
+
if (entry1.value !== void 0) {
|
|
12591
|
+
message.environments[entry1.key] = entry1.value;
|
|
12592
|
+
}
|
|
12593
|
+
continue;
|
|
12594
|
+
}
|
|
12595
|
+
case 2: {
|
|
12596
|
+
if (tag !== 18) {
|
|
12597
|
+
break;
|
|
12598
|
+
}
|
|
12599
|
+
const entry2 = SetEnvironmentsAction_EnvironmentBackendsEntry.decode(reader, reader.uint32());
|
|
12600
|
+
if (entry2.value !== void 0) {
|
|
12601
|
+
message.environment_backends[entry2.key] = entry2.value;
|
|
12602
|
+
}
|
|
12603
|
+
continue;
|
|
12604
|
+
}
|
|
12605
|
+
}
|
|
12606
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12607
|
+
break;
|
|
12608
|
+
}
|
|
12609
|
+
reader.skip(tag & 7);
|
|
12610
|
+
}
|
|
12611
|
+
return message;
|
|
12612
|
+
},
|
|
12613
|
+
fromJSON(object) {
|
|
12614
|
+
return {
|
|
12615
|
+
environments: isObject3(object.environments) ? globalThis.Object.entries(object.environments).reduce(
|
|
12616
|
+
(acc, [key, value]) => {
|
|
12617
|
+
acc[key] = value;
|
|
12618
|
+
return acc;
|
|
12619
|
+
},
|
|
12620
|
+
{}
|
|
12621
|
+
) : {},
|
|
12622
|
+
environment_backends: isObject3(object.environmentBackends) ? globalThis.Object.entries(object.environmentBackends).reduce(
|
|
12623
|
+
(acc, [key, value]) => {
|
|
12624
|
+
acc[key] = BackendView.fromJSON(value);
|
|
12625
|
+
return acc;
|
|
12626
|
+
},
|
|
12627
|
+
{}
|
|
12628
|
+
) : isObject3(object.environment_backends) ? globalThis.Object.entries(object.environment_backends).reduce(
|
|
12629
|
+
(acc, [key, value]) => {
|
|
12630
|
+
acc[key] = BackendView.fromJSON(value);
|
|
12631
|
+
return acc;
|
|
12632
|
+
},
|
|
12633
|
+
{}
|
|
12634
|
+
) : {}
|
|
12635
|
+
};
|
|
12636
|
+
},
|
|
12637
|
+
toJSON(message) {
|
|
12638
|
+
const obj = {};
|
|
12639
|
+
if (message.environments) {
|
|
12640
|
+
const entries = globalThis.Object.entries(message.environments);
|
|
12641
|
+
if (entries.length > 0) {
|
|
12642
|
+
obj.environments = {};
|
|
12643
|
+
entries.forEach(([k, v]) => {
|
|
12644
|
+
obj.environments[k] = v;
|
|
12645
|
+
});
|
|
12646
|
+
}
|
|
12647
|
+
}
|
|
12648
|
+
if (message.environment_backends) {
|
|
12649
|
+
const entries = globalThis.Object.entries(message.environment_backends);
|
|
12650
|
+
if (entries.length > 0) {
|
|
12651
|
+
obj.environmentBackends = {};
|
|
12652
|
+
entries.forEach(([k, v]) => {
|
|
12653
|
+
obj.environmentBackends[k] = BackendView.toJSON(v);
|
|
12654
|
+
});
|
|
12655
|
+
}
|
|
12656
|
+
}
|
|
12657
|
+
return obj;
|
|
12658
|
+
},
|
|
12659
|
+
create(base) {
|
|
12660
|
+
return SetEnvironmentsAction.fromPartial(base ?? {});
|
|
12661
|
+
},
|
|
12662
|
+
fromPartial(object) {
|
|
12663
|
+
const message = createBaseSetEnvironmentsAction();
|
|
12664
|
+
message.environments = globalThis.Object.entries(object.environments ?? {}).reduce(
|
|
12665
|
+
(acc, [key, value]) => {
|
|
12666
|
+
if (value !== void 0) {
|
|
12667
|
+
acc[key] = value;
|
|
12668
|
+
}
|
|
12669
|
+
return acc;
|
|
12670
|
+
},
|
|
12671
|
+
{}
|
|
12672
|
+
);
|
|
12673
|
+
message.environment_backends = globalThis.Object.entries(object.environment_backends ?? {}).reduce(
|
|
12674
|
+
(acc, [key, value]) => {
|
|
12675
|
+
if (value !== void 0) {
|
|
12676
|
+
acc[key] = BackendView.fromPartial(value);
|
|
12677
|
+
}
|
|
12678
|
+
return acc;
|
|
12679
|
+
},
|
|
12680
|
+
{}
|
|
12162
12681
|
);
|
|
12163
12682
|
return message;
|
|
12164
12683
|
}
|
|
@@ -12509,7 +13028,8 @@ function createBaseAction() {
|
|
|
12509
13028
|
set_environments: void 0,
|
|
12510
13029
|
undo: void 0,
|
|
12511
13030
|
redo: void 0,
|
|
12512
|
-
place_module: void 0
|
|
13031
|
+
place_module: void 0,
|
|
13032
|
+
set_use_providers: void 0
|
|
12513
13033
|
};
|
|
12514
13034
|
}
|
|
12515
13035
|
var Action = {
|
|
@@ -12580,6 +13100,9 @@ var Action = {
|
|
|
12580
13100
|
if (message.place_module !== void 0) {
|
|
12581
13101
|
PlaceModuleAction.encode(message.place_module, writer.uint32(178).fork()).join();
|
|
12582
13102
|
}
|
|
13103
|
+
if (message.set_use_providers !== void 0) {
|
|
13104
|
+
SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
|
|
13105
|
+
}
|
|
12583
13106
|
return writer;
|
|
12584
13107
|
},
|
|
12585
13108
|
decode(input, length) {
|
|
@@ -12743,6 +13266,13 @@ var Action = {
|
|
|
12743
13266
|
message.place_module = PlaceModuleAction.decode(reader, reader.uint32());
|
|
12744
13267
|
continue;
|
|
12745
13268
|
}
|
|
13269
|
+
case 23: {
|
|
13270
|
+
if (tag !== 186) {
|
|
13271
|
+
break;
|
|
13272
|
+
}
|
|
13273
|
+
message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
|
|
13274
|
+
continue;
|
|
13275
|
+
}
|
|
12746
13276
|
}
|
|
12747
13277
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12748
13278
|
break;
|
|
@@ -12774,7 +13304,8 @@ var Action = {
|
|
|
12774
13304
|
set_environments: isSet3(object.setEnvironments) ? SetEnvironmentsAction.fromJSON(object.setEnvironments) : isSet3(object.set_environments) ? SetEnvironmentsAction.fromJSON(object.set_environments) : void 0,
|
|
12775
13305
|
undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
|
|
12776
13306
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
12777
|
-
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
|
|
12778
13309
|
};
|
|
12779
13310
|
},
|
|
12780
13311
|
toJSON(message) {
|
|
@@ -12845,6 +13376,9 @@ var Action = {
|
|
|
12845
13376
|
if (message.place_module !== void 0) {
|
|
12846
13377
|
obj.placeModule = PlaceModuleAction.toJSON(message.place_module);
|
|
12847
13378
|
}
|
|
13379
|
+
if (message.set_use_providers !== void 0) {
|
|
13380
|
+
obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
|
|
13381
|
+
}
|
|
12848
13382
|
return obj;
|
|
12849
13383
|
},
|
|
12850
13384
|
create(base) {
|
|
@@ -12874,6 +13408,7 @@ var Action = {
|
|
|
12874
13408
|
message.undo = object.undo !== void 0 && object.undo !== null ? UndoAction.fromPartial(object.undo) : void 0;
|
|
12875
13409
|
message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
|
|
12876
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;
|
|
12877
13412
|
return message;
|
|
12878
13413
|
}
|
|
12879
13414
|
};
|
|
@@ -14631,7 +15166,15 @@ var RenderOutput = {
|
|
|
14631
15166
|
}
|
|
14632
15167
|
};
|
|
14633
15168
|
function createBaseNodeConfig() {
|
|
14634
|
-
return {
|
|
15169
|
+
return {
|
|
15170
|
+
instance_id: "",
|
|
15171
|
+
inputs: [],
|
|
15172
|
+
outputs: [],
|
|
15173
|
+
sibling_ids: [],
|
|
15174
|
+
depends_on: [],
|
|
15175
|
+
available_variables: [],
|
|
15176
|
+
providers: {}
|
|
15177
|
+
};
|
|
14635
15178
|
}
|
|
14636
15179
|
var NodeConfig = {
|
|
14637
15180
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -14653,6 +15196,9 @@ var NodeConfig = {
|
|
|
14653
15196
|
for (const v of message.available_variables) {
|
|
14654
15197
|
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
14655
15198
|
}
|
|
15199
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
15200
|
+
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
15201
|
+
});
|
|
14656
15202
|
return writer;
|
|
14657
15203
|
},
|
|
14658
15204
|
decode(input, length) {
|
|
@@ -14704,6 +15250,16 @@ var NodeConfig = {
|
|
|
14704
15250
|
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
14705
15251
|
continue;
|
|
14706
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
|
+
}
|
|
14707
15263
|
}
|
|
14708
15264
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14709
15265
|
break;
|
|
@@ -14719,7 +15275,14 @@ var NodeConfig = {
|
|
|
14719
15275
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
14720
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)) : [],
|
|
14721
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)) : [],
|
|
14722
|
-
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
|
+
) : {}
|
|
14723
15286
|
};
|
|
14724
15287
|
},
|
|
14725
15288
|
toJSON(message) {
|
|
@@ -14742,6 +15305,15 @@ var NodeConfig = {
|
|
|
14742
15305
|
if (message.available_variables?.length) {
|
|
14743
15306
|
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
14744
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
|
+
}
|
|
14745
15317
|
return obj;
|
|
14746
15318
|
},
|
|
14747
15319
|
create(base) {
|
|
@@ -14755,6 +15327,83 @@ var NodeConfig = {
|
|
|
14755
15327
|
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
14756
15328
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
14757
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 ?? "";
|
|
14758
15407
|
return message;
|
|
14759
15408
|
}
|
|
14760
15409
|
};
|
|
@@ -15367,7 +16016,7 @@ var TerraformView = {
|
|
|
15367
16016
|
}
|
|
15368
16017
|
};
|
|
15369
16018
|
function createBaseProviderReqView() {
|
|
15370
|
-
return { name: "", source: "", version: "" };
|
|
16019
|
+
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
15371
16020
|
}
|
|
15372
16021
|
var ProviderReqView = {
|
|
15373
16022
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -15380,6 +16029,9 @@ var ProviderReqView = {
|
|
|
15380
16029
|
if (message.version !== "") {
|
|
15381
16030
|
writer.uint32(26).string(message.version);
|
|
15382
16031
|
}
|
|
16032
|
+
for (const v of message.configuration_aliases) {
|
|
16033
|
+
writer.uint32(34).string(v);
|
|
16034
|
+
}
|
|
15383
16035
|
return writer;
|
|
15384
16036
|
},
|
|
15385
16037
|
decode(input, length) {
|
|
@@ -15410,6 +16062,13 @@ var ProviderReqView = {
|
|
|
15410
16062
|
message.version = reader.string();
|
|
15411
16063
|
continue;
|
|
15412
16064
|
}
|
|
16065
|
+
case 4: {
|
|
16066
|
+
if (tag !== 34) {
|
|
16067
|
+
break;
|
|
16068
|
+
}
|
|
16069
|
+
message.configuration_aliases.push(reader.string());
|
|
16070
|
+
continue;
|
|
16071
|
+
}
|
|
15413
16072
|
}
|
|
15414
16073
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15415
16074
|
break;
|
|
@@ -15422,7 +16081,8 @@ var ProviderReqView = {
|
|
|
15422
16081
|
return {
|
|
15423
16082
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
15424
16083
|
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
15425
|
-
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)) : []
|
|
15426
16086
|
};
|
|
15427
16087
|
},
|
|
15428
16088
|
toJSON(message) {
|
|
@@ -15436,6 +16096,9 @@ var ProviderReqView = {
|
|
|
15436
16096
|
if (message.version !== "") {
|
|
15437
16097
|
obj.version = message.version;
|
|
15438
16098
|
}
|
|
16099
|
+
if (message.configuration_aliases?.length) {
|
|
16100
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
16101
|
+
}
|
|
15439
16102
|
return obj;
|
|
15440
16103
|
},
|
|
15441
16104
|
create(base) {
|
|
@@ -15446,6 +16109,7 @@ var ProviderReqView = {
|
|
|
15446
16109
|
message.name = object.name ?? "";
|
|
15447
16110
|
message.source = object.source ?? "";
|
|
15448
16111
|
message.version = object.version ?? "";
|
|
16112
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
15449
16113
|
return message;
|
|
15450
16114
|
}
|
|
15451
16115
|
};
|
|
@@ -15611,7 +16275,7 @@ var BackendView_ConfigEntry = {
|
|
|
15611
16275
|
}
|
|
15612
16276
|
};
|
|
15613
16277
|
function createBaseProviderView() {
|
|
15614
|
-
return { name: "", alias: "", config: {} };
|
|
16278
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
15615
16279
|
}
|
|
15616
16280
|
var ProviderView = {
|
|
15617
16281
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -15622,10 +16286,11 @@ var ProviderView = {
|
|
|
15622
16286
|
writer.uint32(18).string(message.alias);
|
|
15623
16287
|
}
|
|
15624
16288
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
15625
|
-
|
|
15626
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
15627
|
-
}
|
|
16289
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
15628
16290
|
});
|
|
16291
|
+
for (const v of message.blocks) {
|
|
16292
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
16293
|
+
}
|
|
15629
16294
|
return writer;
|
|
15630
16295
|
},
|
|
15631
16296
|
decode(input, length) {
|
|
@@ -15659,6 +16324,13 @@ var ProviderView = {
|
|
|
15659
16324
|
}
|
|
15660
16325
|
continue;
|
|
15661
16326
|
}
|
|
16327
|
+
case 4: {
|
|
16328
|
+
if (tag !== 34) {
|
|
16329
|
+
break;
|
|
16330
|
+
}
|
|
16331
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
16332
|
+
continue;
|
|
16333
|
+
}
|
|
15662
16334
|
}
|
|
15663
16335
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15664
16336
|
break;
|
|
@@ -15673,11 +16345,12 @@ var ProviderView = {
|
|
|
15673
16345
|
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
15674
16346
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
15675
16347
|
(acc, [key, value]) => {
|
|
15676
|
-
acc[key] = value;
|
|
16348
|
+
acc[key] = globalThis.String(value);
|
|
15677
16349
|
return acc;
|
|
15678
16350
|
},
|
|
15679
16351
|
{}
|
|
15680
|
-
) : {}
|
|
16352
|
+
) : {},
|
|
16353
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
15681
16354
|
};
|
|
15682
16355
|
},
|
|
15683
16356
|
toJSON(message) {
|
|
@@ -15697,6 +16370,9 @@ var ProviderView = {
|
|
|
15697
16370
|
});
|
|
15698
16371
|
}
|
|
15699
16372
|
}
|
|
16373
|
+
if (message.blocks?.length) {
|
|
16374
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
16375
|
+
}
|
|
15700
16376
|
return obj;
|
|
15701
16377
|
},
|
|
15702
16378
|
create(base) {
|
|
@@ -15709,25 +16385,26 @@ var ProviderView = {
|
|
|
15709
16385
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
15710
16386
|
(acc, [key, value]) => {
|
|
15711
16387
|
if (value !== void 0) {
|
|
15712
|
-
acc[key] = value;
|
|
16388
|
+
acc[key] = globalThis.String(value);
|
|
15713
16389
|
}
|
|
15714
16390
|
return acc;
|
|
15715
16391
|
},
|
|
15716
16392
|
{}
|
|
15717
16393
|
);
|
|
16394
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
15718
16395
|
return message;
|
|
15719
16396
|
}
|
|
15720
16397
|
};
|
|
15721
16398
|
function createBaseProviderView_ConfigEntry() {
|
|
15722
|
-
return { key: "", value:
|
|
16399
|
+
return { key: "", value: "" };
|
|
15723
16400
|
}
|
|
15724
16401
|
var ProviderView_ConfigEntry = {
|
|
15725
16402
|
encode(message, writer = new BinaryWriter4()) {
|
|
15726
16403
|
if (message.key !== "") {
|
|
15727
16404
|
writer.uint32(10).string(message.key);
|
|
15728
16405
|
}
|
|
15729
|
-
if (message.value !==
|
|
15730
|
-
|
|
16406
|
+
if (message.value !== "") {
|
|
16407
|
+
writer.uint32(18).string(message.value);
|
|
15731
16408
|
}
|
|
15732
16409
|
return writer;
|
|
15733
16410
|
},
|
|
@@ -15749,7 +16426,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15749
16426
|
if (tag !== 18) {
|
|
15750
16427
|
break;
|
|
15751
16428
|
}
|
|
15752
|
-
message.value =
|
|
16429
|
+
message.value = reader.string();
|
|
15753
16430
|
continue;
|
|
15754
16431
|
}
|
|
15755
16432
|
}
|
|
@@ -15763,7 +16440,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15763
16440
|
fromJSON(object) {
|
|
15764
16441
|
return {
|
|
15765
16442
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
15766
|
-
value: isSet3(object
|
|
16443
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
15767
16444
|
};
|
|
15768
16445
|
},
|
|
15769
16446
|
toJSON(message) {
|
|
@@ -15771,7 +16448,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15771
16448
|
if (message.key !== "") {
|
|
15772
16449
|
obj.key = message.key;
|
|
15773
16450
|
}
|
|
15774
|
-
if (message.value !==
|
|
16451
|
+
if (message.value !== "") {
|
|
15775
16452
|
obj.value = message.value;
|
|
15776
16453
|
}
|
|
15777
16454
|
return obj;
|
|
@@ -15782,7 +16459,7 @@ var ProviderView_ConfigEntry = {
|
|
|
15782
16459
|
fromPartial(object) {
|
|
15783
16460
|
const message = createBaseProviderView_ConfigEntry();
|
|
15784
16461
|
message.key = object.key ?? "";
|
|
15785
|
-
message.value = object.value ??
|
|
16462
|
+
message.value = object.value ?? "";
|
|
15786
16463
|
return message;
|
|
15787
16464
|
}
|
|
15788
16465
|
};
|
|
@@ -16021,7 +16698,17 @@ var Position4 = {
|
|
|
16021
16698
|
}
|
|
16022
16699
|
};
|
|
16023
16700
|
function createBaseInputDef2() {
|
|
16024
|
-
return {
|
|
16701
|
+
return {
|
|
16702
|
+
name: "",
|
|
16703
|
+
type: "",
|
|
16704
|
+
required: false,
|
|
16705
|
+
description: "",
|
|
16706
|
+
default_value: void 0,
|
|
16707
|
+
validation: [],
|
|
16708
|
+
ephemeral: void 0,
|
|
16709
|
+
nullable: void 0,
|
|
16710
|
+
sensitive: false
|
|
16711
|
+
};
|
|
16025
16712
|
}
|
|
16026
16713
|
var InputDef2 = {
|
|
16027
16714
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -16040,8 +16727,17 @@ var InputDef2 = {
|
|
|
16040
16727
|
if (message.default_value !== void 0) {
|
|
16041
16728
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
16042
16729
|
}
|
|
16043
|
-
|
|
16044
|
-
ValidationBlock2.encode(
|
|
16730
|
+
for (const v of message.validation) {
|
|
16731
|
+
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
16732
|
+
}
|
|
16733
|
+
if (message.ephemeral !== void 0) {
|
|
16734
|
+
writer.uint32(56).bool(message.ephemeral);
|
|
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);
|
|
16045
16741
|
}
|
|
16046
16742
|
return writer;
|
|
16047
16743
|
},
|
|
@@ -16091,7 +16787,28 @@ var InputDef2 = {
|
|
|
16091
16787
|
if (tag !== 50) {
|
|
16092
16788
|
break;
|
|
16093
16789
|
}
|
|
16094
|
-
message.validation
|
|
16790
|
+
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
16791
|
+
continue;
|
|
16792
|
+
}
|
|
16793
|
+
case 7: {
|
|
16794
|
+
if (tag !== 56) {
|
|
16795
|
+
break;
|
|
16796
|
+
}
|
|
16797
|
+
message.ephemeral = reader.bool();
|
|
16798
|
+
continue;
|
|
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();
|
|
16095
16812
|
continue;
|
|
16096
16813
|
}
|
|
16097
16814
|
}
|
|
@@ -16109,7 +16826,10 @@ var InputDef2 = {
|
|
|
16109
16826
|
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
16110
16827
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
16111
16828
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
16112
|
-
validation:
|
|
16829
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
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
|
|
16113
16833
|
};
|
|
16114
16834
|
},
|
|
16115
16835
|
toJSON(message) {
|
|
@@ -16129,8 +16849,17 @@ var InputDef2 = {
|
|
|
16129
16849
|
if (message.default_value !== void 0) {
|
|
16130
16850
|
obj.defaultValue = message.default_value;
|
|
16131
16851
|
}
|
|
16132
|
-
if (message.validation
|
|
16133
|
-
obj.validation = ValidationBlock2.toJSON(
|
|
16852
|
+
if (message.validation?.length) {
|
|
16853
|
+
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
16854
|
+
}
|
|
16855
|
+
if (message.ephemeral !== void 0) {
|
|
16856
|
+
obj.ephemeral = message.ephemeral;
|
|
16857
|
+
}
|
|
16858
|
+
if (message.nullable !== void 0) {
|
|
16859
|
+
obj.nullable = message.nullable;
|
|
16860
|
+
}
|
|
16861
|
+
if (message.sensitive !== false) {
|
|
16862
|
+
obj.sensitive = message.sensitive;
|
|
16134
16863
|
}
|
|
16135
16864
|
return obj;
|
|
16136
16865
|
},
|
|
@@ -16144,7 +16873,10 @@ var InputDef2 = {
|
|
|
16144
16873
|
message.required = object.required ?? false;
|
|
16145
16874
|
message.description = object.description ?? "";
|
|
16146
16875
|
message.default_value = object.default_value ?? void 0;
|
|
16147
|
-
message.validation = object.validation
|
|
16876
|
+
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
16877
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
16878
|
+
message.nullable = object.nullable ?? void 0;
|
|
16879
|
+
message.sensitive = object.sensitive ?? false;
|
|
16148
16880
|
return message;
|
|
16149
16881
|
}
|
|
16150
16882
|
};
|
|
@@ -16217,7 +16949,7 @@ var ValidationBlock2 = {
|
|
|
16217
16949
|
}
|
|
16218
16950
|
};
|
|
16219
16951
|
function createBaseOutputDef2() {
|
|
16220
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
16952
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
16221
16953
|
}
|
|
16222
16954
|
var OutputDef2 = {
|
|
16223
16955
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -16233,6 +16965,9 @@ var OutputDef2 = {
|
|
|
16233
16965
|
if (message.sensitive !== false) {
|
|
16234
16966
|
writer.uint32(32).bool(message.sensitive);
|
|
16235
16967
|
}
|
|
16968
|
+
for (const v of message.depends_on) {
|
|
16969
|
+
writer.uint32(42).string(v);
|
|
16970
|
+
}
|
|
16236
16971
|
return writer;
|
|
16237
16972
|
},
|
|
16238
16973
|
decode(input, length) {
|
|
@@ -16270,6 +17005,13 @@ var OutputDef2 = {
|
|
|
16270
17005
|
message.sensitive = reader.bool();
|
|
16271
17006
|
continue;
|
|
16272
17007
|
}
|
|
17008
|
+
case 5: {
|
|
17009
|
+
if (tag !== 42) {
|
|
17010
|
+
break;
|
|
17011
|
+
}
|
|
17012
|
+
message.depends_on.push(reader.string());
|
|
17013
|
+
continue;
|
|
17014
|
+
}
|
|
16273
17015
|
}
|
|
16274
17016
|
if ((tag & 7) === 4 || tag === 0) {
|
|
16275
17017
|
break;
|
|
@@ -16283,7 +17025,8 @@ var OutputDef2 = {
|
|
|
16283
17025
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
16284
17026
|
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
16285
17027
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
16286
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
17028
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
17029
|
+
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)) : []
|
|
16287
17030
|
};
|
|
16288
17031
|
},
|
|
16289
17032
|
toJSON(message) {
|
|
@@ -16300,6 +17043,9 @@ var OutputDef2 = {
|
|
|
16300
17043
|
if (message.sensitive !== false) {
|
|
16301
17044
|
obj.sensitive = message.sensitive;
|
|
16302
17045
|
}
|
|
17046
|
+
if (message.depends_on?.length) {
|
|
17047
|
+
obj.dependsOn = message.depends_on;
|
|
17048
|
+
}
|
|
16303
17049
|
return obj;
|
|
16304
17050
|
},
|
|
16305
17051
|
create(base) {
|
|
@@ -16311,6 +17057,7 @@ var OutputDef2 = {
|
|
|
16311
17057
|
message.type = object.type ?? "";
|
|
16312
17058
|
message.description = object.description ?? "";
|
|
16313
17059
|
message.sensitive = object.sensitive ?? false;
|
|
17060
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
16314
17061
|
return message;
|
|
16315
17062
|
}
|
|
16316
17063
|
};
|
|
@@ -16631,8 +17378,10 @@ var ConnectWebEngine = class {
|
|
|
16631
17378
|
required: v.required,
|
|
16632
17379
|
description: v.description ?? "",
|
|
16633
17380
|
default_value: v.default ?? void 0,
|
|
16634
|
-
sensitive: false,
|
|
16635
|
-
validation:
|
|
17381
|
+
sensitive: v.sensitive ?? false,
|
|
17382
|
+
validation: v.validation ?? [],
|
|
17383
|
+
ephemeral: v.ephemeral,
|
|
17384
|
+
nullable: v.nullable
|
|
16636
17385
|
}))
|
|
16637
17386
|
}
|
|
16638
17387
|
});
|
|
@@ -16649,7 +17398,8 @@ var ConnectWebEngine = class {
|
|
|
16649
17398
|
name: d.name,
|
|
16650
17399
|
type: d.type,
|
|
16651
17400
|
description: d.description ?? "",
|
|
16652
|
-
sensitive: d.sensitive ?? false
|
|
17401
|
+
sensitive: d.sensitive ?? false,
|
|
17402
|
+
depends_on: d.depends_on ?? []
|
|
16653
17403
|
}))
|
|
16654
17404
|
}
|
|
16655
17405
|
});
|
|
@@ -16661,7 +17411,8 @@ var ConnectWebEngine = class {
|
|
|
16661
17411
|
required_providers: (requiredProviders ?? []).map((p) => ({
|
|
16662
17412
|
name: p.name,
|
|
16663
17413
|
source: p.source,
|
|
16664
|
-
version: p.version
|
|
17414
|
+
version: p.version,
|
|
17415
|
+
configuration_aliases: p.configuration_aliases ?? []
|
|
16665
17416
|
})),
|
|
16666
17417
|
backend: void 0
|
|
16667
17418
|
}
|
|
@@ -16673,7 +17424,8 @@ var ConnectWebEngine = class {
|
|
|
16673
17424
|
providers: providers.map((p) => ({
|
|
16674
17425
|
name: p.name,
|
|
16675
17426
|
alias: p.alias ?? "",
|
|
16676
|
-
config: p.config
|
|
17427
|
+
config: p.config,
|
|
17428
|
+
blocks: p.blocks ?? []
|
|
16677
17429
|
}))
|
|
16678
17430
|
}
|
|
16679
17431
|
});
|
|
@@ -16696,6 +17448,11 @@ var ConnectWebEngine = class {
|
|
|
16696
17448
|
set_depends_on: { instance_id: instanceId, depends_on: dependsOn }
|
|
16697
17449
|
});
|
|
16698
17450
|
}
|
|
17451
|
+
setUseProviders(instanceId, providers) {
|
|
17452
|
+
return this.applyAction({
|
|
17453
|
+
set_use_providers: { instance_id: instanceId, providers }
|
|
17454
|
+
});
|
|
17455
|
+
}
|
|
16699
17456
|
setEnvironments(environments) {
|
|
16700
17457
|
return this.applyAction({
|
|
16701
17458
|
set_environments: { environments, environment_backends: {} }
|
|
@@ -17302,8 +18059,10 @@ var PostMessageEngine = class {
|
|
|
17302
18059
|
required: v.required,
|
|
17303
18060
|
description: v.description ?? "",
|
|
17304
18061
|
default_value: v.default ?? void 0,
|
|
17305
|
-
sensitive: false,
|
|
17306
|
-
validation:
|
|
18062
|
+
sensitive: v.sensitive ?? false,
|
|
18063
|
+
validation: v.validation ?? [],
|
|
18064
|
+
ephemeral: v.ephemeral,
|
|
18065
|
+
nullable: v.nullable
|
|
17307
18066
|
}))
|
|
17308
18067
|
}
|
|
17309
18068
|
});
|
|
@@ -17320,7 +18079,8 @@ var PostMessageEngine = class {
|
|
|
17320
18079
|
name: d.name,
|
|
17321
18080
|
type: d.type,
|
|
17322
18081
|
description: d.description ?? "",
|
|
17323
|
-
sensitive: d.sensitive ?? false
|
|
18082
|
+
sensitive: d.sensitive ?? false,
|
|
18083
|
+
depends_on: d.depends_on ?? []
|
|
17324
18084
|
}))
|
|
17325
18085
|
}
|
|
17326
18086
|
});
|
|
@@ -17332,7 +18092,8 @@ var PostMessageEngine = class {
|
|
|
17332
18092
|
required_providers: (requiredProviders ?? []).map((p) => ({
|
|
17333
18093
|
name: p.name,
|
|
17334
18094
|
source: p.source,
|
|
17335
|
-
version: p.version
|
|
18095
|
+
version: p.version,
|
|
18096
|
+
configuration_aliases: p.configuration_aliases ?? []
|
|
17336
18097
|
})),
|
|
17337
18098
|
backend: void 0
|
|
17338
18099
|
}
|
|
@@ -17344,7 +18105,8 @@ var PostMessageEngine = class {
|
|
|
17344
18105
|
providers: providers.map((p) => ({
|
|
17345
18106
|
name: p.name,
|
|
17346
18107
|
alias: p.alias ?? "",
|
|
17347
|
-
config: p.config
|
|
18108
|
+
config: p.config,
|
|
18109
|
+
blocks: p.blocks ?? []
|
|
17348
18110
|
}))
|
|
17349
18111
|
}
|
|
17350
18112
|
});
|
|
@@ -17367,6 +18129,11 @@ var PostMessageEngine = class {
|
|
|
17367
18129
|
set_depends_on: { instance_id: instanceId, depends_on: dependsOn }
|
|
17368
18130
|
});
|
|
17369
18131
|
}
|
|
18132
|
+
setUseProviders(instanceId, providers) {
|
|
18133
|
+
return this.applyAction({
|
|
18134
|
+
set_use_providers: { instance_id: instanceId, providers }
|
|
18135
|
+
});
|
|
18136
|
+
}
|
|
17370
18137
|
setEnvironments(environments) {
|
|
17371
18138
|
return this.applyAction({
|
|
17372
18139
|
set_environments: { environments, environment_backends: {} }
|
|
@@ -17521,6 +18288,7 @@ var EMPTY_NODE_CONFIG = {
|
|
|
17521
18288
|
outputs: [],
|
|
17522
18289
|
sibling_ids: [],
|
|
17523
18290
|
depends_on: [],
|
|
18291
|
+
providers: {},
|
|
17524
18292
|
available_variables: []
|
|
17525
18293
|
};
|
|
17526
18294
|
var EMPTY_EDGE_CONFIG = {
|
|
@@ -17662,6 +18430,9 @@ var SnapshotCanvasEngine = class {
|
|
|
17662
18430
|
async setDependsOn(_instanceId, _dependsOn) {
|
|
17663
18431
|
return READ_ONLY_RESULT;
|
|
17664
18432
|
}
|
|
18433
|
+
async setUseProviders(_instanceId, _providers) {
|
|
18434
|
+
return READ_ONLY_RESULT;
|
|
18435
|
+
}
|
|
17665
18436
|
async setEnvironments(_environments) {
|
|
17666
18437
|
return READ_ONLY_RESULT;
|
|
17667
18438
|
}
|
|
@@ -17765,6 +18536,8 @@ export {
|
|
|
17765
18536
|
LocalsContent,
|
|
17766
18537
|
LocalsPanel,
|
|
17767
18538
|
ModuleConfigPanel,
|
|
18539
|
+
ModuleInterfaceContent,
|
|
18540
|
+
ModuleInterfacePanel,
|
|
17768
18541
|
ModuleNode_default as ModuleNode,
|
|
17769
18542
|
PolicySidebar,
|
|
17770
18543
|
PostMessageEngine,
|