@lace-cloud/canvas 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/{ModuleConfigPanel-LTPLEG2L.css → ModuleConfigPanel-ZMWRMN5N.css} +13 -0
- package/dist/{chunk-W6U3TVQK.mjs → chunk-WNBCPSQJ.mjs} +786 -436
- package/dist/chunk-WNBCPSQJ.mjs.map +1 -0
- package/dist/engine/index.cjs +783 -433
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.mjs +1 -1
- package/dist/index.cjs +4270 -3330
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -21
- package/dist/index.d.ts +9 -21
- package/dist/index.mjs +1617 -1026
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-CopjG8Ae.d.ts → mapping-DpFUMDvW.d.mts} +254 -100
- package/dist/{mapping-CopjG8Ae.d.mts → mapping-DpFUMDvW.d.ts} +254 -100
- package/package.json +3 -3
- package/dist/chunk-W6U3TVQK.mjs.map +0 -1
|
@@ -3,56 +3,36 @@ import { z } from 'zod';
|
|
|
3
3
|
import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
4
4
|
|
|
5
5
|
declare const COMMANDS: {
|
|
6
|
-
readonly "chaos
|
|
7
|
-
readonly path: "chaos
|
|
8
|
-
readonly positionals: readonly [
|
|
9
|
-
readonly name: "run";
|
|
10
|
-
readonly kind: "required";
|
|
11
|
-
}];
|
|
6
|
+
readonly "chaos run": {
|
|
7
|
+
readonly path: "chaos run";
|
|
8
|
+
readonly positionals: readonly [];
|
|
12
9
|
readonly flags: {
|
|
13
|
-
readonly
|
|
10
|
+
readonly commit: {
|
|
14
11
|
readonly type: "string";
|
|
15
12
|
};
|
|
16
|
-
readonly
|
|
13
|
+
readonly credential: {
|
|
17
14
|
readonly type: "string";
|
|
18
|
-
readonly values: readonly ["table", "json"];
|
|
19
15
|
};
|
|
20
|
-
readonly
|
|
16
|
+
readonly duration: {
|
|
21
17
|
readonly type: "string";
|
|
22
18
|
};
|
|
23
|
-
|
|
24
|
-
readonly hidden: false;
|
|
25
|
-
readonly yes: false;
|
|
26
|
-
};
|
|
27
|
-
readonly "chaos list": {
|
|
28
|
-
readonly path: "chaos list";
|
|
29
|
-
readonly positionals: readonly [];
|
|
30
|
-
readonly flags: {
|
|
31
|
-
readonly org: {
|
|
19
|
+
readonly engine: {
|
|
32
20
|
readonly type: "string";
|
|
21
|
+
readonly values: readonly ["aws_fis", "gremlin", "litmus_chaos"];
|
|
33
22
|
};
|
|
34
|
-
readonly
|
|
35
|
-
readonly type: "
|
|
36
|
-
readonly
|
|
23
|
+
readonly excludeResourceType: {
|
|
24
|
+
readonly type: "stringArray";
|
|
25
|
+
readonly repeated: true;
|
|
37
26
|
};
|
|
38
|
-
readonly
|
|
39
|
-
readonly type: "
|
|
40
|
-
readonly
|
|
27
|
+
readonly excludeResourceUri: {
|
|
28
|
+
readonly type: "stringArray";
|
|
29
|
+
readonly repeated: true;
|
|
41
30
|
};
|
|
42
|
-
readonly
|
|
31
|
+
readonly experimentId: {
|
|
43
32
|
readonly type: "string";
|
|
44
33
|
};
|
|
45
|
-
|
|
46
|
-
readonly hidden: false;
|
|
47
|
-
readonly yes: false;
|
|
48
|
-
};
|
|
49
|
-
readonly "chaos run": {
|
|
50
|
-
readonly path: "chaos run";
|
|
51
|
-
readonly positionals: readonly [];
|
|
52
|
-
readonly flags: {
|
|
53
|
-
readonly chaosBinding: {
|
|
34
|
+
readonly file: {
|
|
54
35
|
readonly type: "string";
|
|
55
|
-
readonly required: true;
|
|
56
36
|
};
|
|
57
37
|
readonly org: {
|
|
58
38
|
readonly type: "string";
|
|
@@ -61,10 +41,31 @@ declare const COMMANDS: {
|
|
|
61
41
|
readonly type: "string";
|
|
62
42
|
readonly values: readonly ["table", "json"];
|
|
63
43
|
};
|
|
44
|
+
readonly prUrl: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
};
|
|
47
|
+
readonly ref: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
};
|
|
50
|
+
readonly resourceType: {
|
|
51
|
+
readonly type: "stringArray";
|
|
52
|
+
readonly repeated: true;
|
|
53
|
+
};
|
|
54
|
+
readonly selector: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly values: readonly ["first", "random"];
|
|
57
|
+
};
|
|
64
58
|
readonly stack: {
|
|
65
59
|
readonly type: "string";
|
|
66
60
|
readonly required: true;
|
|
67
61
|
};
|
|
62
|
+
readonly tag: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
readonly tagFilter: {
|
|
66
|
+
readonly type: "stringArray";
|
|
67
|
+
readonly repeated: true;
|
|
68
|
+
};
|
|
68
69
|
readonly team: {
|
|
69
70
|
readonly type: "string";
|
|
70
71
|
};
|
|
@@ -1174,6 +1175,10 @@ interface Interface {
|
|
|
1174
1175
|
declare const Interface: MessageFns$1<Interface>;
|
|
1175
1176
|
interface InputDef$1 {
|
|
1176
1177
|
name: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* The type constraint the variable's type line spells, as written; empty
|
|
1180
|
+
* for a variable with no type line. `any` is a type line of its own.
|
|
1181
|
+
*/
|
|
1177
1182
|
type: string;
|
|
1178
1183
|
required: boolean;
|
|
1179
1184
|
description: string;
|
|
@@ -1193,6 +1198,10 @@ interface ValidationBlock$1 {
|
|
|
1193
1198
|
declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
|
|
1194
1199
|
interface OutputDef$1 {
|
|
1195
1200
|
name: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* The type of the child output the output's export reads; empty when
|
|
1203
|
+
* nothing types it. An output block declares no type.
|
|
1204
|
+
*/
|
|
1196
1205
|
type: string;
|
|
1197
1206
|
description: string;
|
|
1198
1207
|
sensitive: boolean;
|
|
@@ -1323,12 +1332,15 @@ interface ModuleReference {
|
|
|
1323
1332
|
splat: boolean;
|
|
1324
1333
|
}
|
|
1325
1334
|
declare const ModuleReference: MessageFns$1<ModuleReference>;
|
|
1335
|
+
/**
|
|
1336
|
+
* A module's terraform block as the IR holds it. It holds no backend: Lace
|
|
1337
|
+
* manages state, and a backend block is a fact about the files.
|
|
1338
|
+
*/
|
|
1326
1339
|
interface TerraformBlock {
|
|
1327
1340
|
required_version: string;
|
|
1328
1341
|
required_providers: {
|
|
1329
1342
|
[key: string]: ProviderRequirement;
|
|
1330
1343
|
};
|
|
1331
|
-
backend: BackendConfig | undefined;
|
|
1332
1344
|
}
|
|
1333
1345
|
declare const TerraformBlock: MessageFns$1<TerraformBlock>;
|
|
1334
1346
|
interface ProviderRequirement {
|
|
@@ -1337,13 +1349,6 @@ interface ProviderRequirement {
|
|
|
1337
1349
|
configuration_aliases: string[];
|
|
1338
1350
|
}
|
|
1339
1351
|
declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
|
|
1340
|
-
interface BackendConfig {
|
|
1341
|
-
type: string;
|
|
1342
|
-
config: {
|
|
1343
|
-
[key: string]: any | undefined;
|
|
1344
|
-
};
|
|
1345
|
-
}
|
|
1346
|
-
declare const BackendConfig: MessageFns$1<BackendConfig>;
|
|
1347
1352
|
interface ProviderConfig {
|
|
1348
1353
|
name: string;
|
|
1349
1354
|
alias: string;
|
|
@@ -1400,7 +1405,11 @@ declare enum DiagnosticSeverity {
|
|
|
1400
1405
|
*/
|
|
1401
1406
|
declare enum Reason {
|
|
1402
1407
|
REASON_UNSPECIFIED = 0,
|
|
1403
|
-
/**
|
|
1408
|
+
/**
|
|
1409
|
+
* REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
|
|
1410
|
+
* module convert and stack import: lacification cannot take the tree to
|
|
1411
|
+
* lace shape; the report names each managed resource and the IR gap holding it.
|
|
1412
|
+
*/
|
|
1404
1413
|
REASON_NOT_LACE_FORM = 1,
|
|
1405
1414
|
/** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
|
|
1406
1415
|
REASON_HASH_MISMATCH = 2,
|
|
@@ -1413,7 +1422,8 @@ declare enum Reason {
|
|
|
1413
1422
|
/** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
|
|
1414
1423
|
REASON_CONFLICT = 6,
|
|
1415
1424
|
/**
|
|
1416
|
-
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
1425
|
+
* REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
|
|
1426
|
+
* (`BundleState.source_refused`).
|
|
1417
1427
|
* module convert and stack import: the tree's tf does not parse, has a
|
|
1418
1428
|
* non-empty residual report, or its Bundle fails its own validation.
|
|
1419
1429
|
* stack apply / stack destroy / registry register: a source in the stack
|
|
@@ -1570,7 +1580,7 @@ interface SessionGenerateRequest {
|
|
|
1570
1580
|
declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
|
|
1571
1581
|
interface SessionGenerateResponse {
|
|
1572
1582
|
files_written: string[];
|
|
1573
|
-
/** the `module validate -o json` document for the
|
|
1583
|
+
/** the `module validate -o json` document for the Terraform on disk */
|
|
1574
1584
|
validate_json: string;
|
|
1575
1585
|
/**
|
|
1576
1586
|
* The revision of the state the Generate left: the
|
|
@@ -1712,43 +1722,117 @@ interface UngroupAction {
|
|
|
1712
1722
|
scope: string;
|
|
1713
1723
|
}
|
|
1714
1724
|
declare const UngroupAction: MessageFns<UngroupAction>;
|
|
1725
|
+
/**
|
|
1726
|
+
* SetVariablesAction sets the variables `scope` declares, whole: a
|
|
1727
|
+
* variable the action does not name is removed.
|
|
1728
|
+
*/
|
|
1715
1729
|
interface SetVariablesAction {
|
|
1716
1730
|
variables: InputDef[];
|
|
1731
|
+
scope: string;
|
|
1717
1732
|
}
|
|
1718
1733
|
declare const SetVariablesAction: MessageFns<SetVariablesAction>;
|
|
1734
|
+
/**
|
|
1735
|
+
* SetExportsAction sets the outputs `scope` declares, whole: each output's
|
|
1736
|
+
* value and what its definition carries beside it.
|
|
1737
|
+
*/
|
|
1719
1738
|
interface SetExportsAction {
|
|
1720
1739
|
outputs: OutputExportEntry[];
|
|
1721
1740
|
output_defs: OutputDef[];
|
|
1741
|
+
scope: string;
|
|
1722
1742
|
}
|
|
1723
1743
|
declare const SetExportsAction: MessageFns<SetExportsAction>;
|
|
1744
|
+
/**
|
|
1745
|
+
* OutputExportEntry is one output's value as text, read as the parse reads
|
|
1746
|
+
* an output block's `value`: a resource's or a data source's attribute, a
|
|
1747
|
+
* call's output, a literal, a variable or any other expression.
|
|
1748
|
+
*/
|
|
1724
1749
|
interface OutputExportEntry {
|
|
1725
1750
|
name: string;
|
|
1726
|
-
|
|
1727
|
-
source_output: string;
|
|
1751
|
+
value: string;
|
|
1728
1752
|
}
|
|
1729
1753
|
declare const OutputExportEntry: MessageFns<OutputExportEntry>;
|
|
1754
|
+
/**
|
|
1755
|
+
* SetTerraformAction sets the terraform block `scope` holds, whole: its
|
|
1756
|
+
* required version and required providers. The IR holds no backend: Lace
|
|
1757
|
+
* manages state, and a backend block is a fact about the files.
|
|
1758
|
+
*/
|
|
1730
1759
|
interface SetTerraformAction {
|
|
1731
1760
|
required_version: string;
|
|
1732
1761
|
required_providers: ProviderReqView[];
|
|
1733
|
-
|
|
1762
|
+
scope: string;
|
|
1734
1763
|
}
|
|
1735
1764
|
declare const SetTerraformAction: MessageFns<SetTerraformAction>;
|
|
1765
|
+
/** SetProvidersAction sets the provider configurations `scope` holds, whole. */
|
|
1736
1766
|
interface SetProvidersAction {
|
|
1737
1767
|
providers: ProviderView[];
|
|
1768
|
+
scope: string;
|
|
1738
1769
|
}
|
|
1739
1770
|
declare const SetProvidersAction: MessageFns<SetProvidersAction>;
|
|
1771
|
+
/** SetLocalsAction sets the locals `scope` holds, whole. */
|
|
1740
1772
|
interface SetLocalsAction {
|
|
1741
1773
|
locals: LocalEntry[];
|
|
1774
|
+
scope: string;
|
|
1742
1775
|
}
|
|
1743
1776
|
declare const SetLocalsAction: MessageFns<SetLocalsAction>;
|
|
1777
|
+
/** LocalEntry is one local's value as text. */
|
|
1744
1778
|
interface LocalEntry {
|
|
1745
1779
|
name: string;
|
|
1746
|
-
|
|
1747
|
-
value: any | undefined;
|
|
1748
|
-
variable: string;
|
|
1749
|
-
expression: string;
|
|
1780
|
+
value: string;
|
|
1750
1781
|
}
|
|
1751
1782
|
declare const LocalEntry: MessageFns<LocalEntry>;
|
|
1783
|
+
/**
|
|
1784
|
+
* SetDirectivesAction sets the `moved` and `import` blocks `scope` holds,
|
|
1785
|
+
* whole, in the order the render writes them. A block of any other type is
|
|
1786
|
+
* refused: the parse holds no other top-level block.
|
|
1787
|
+
*/
|
|
1788
|
+
interface SetDirectivesAction {
|
|
1789
|
+
blocks: BlockView[];
|
|
1790
|
+
scope: string;
|
|
1791
|
+
}
|
|
1792
|
+
declare const SetDirectivesAction: MessageFns<SetDirectivesAction>;
|
|
1793
|
+
/**
|
|
1794
|
+
* SetBlocksAction sets the nested blocks of the resource or data source
|
|
1795
|
+
* `instance_id` of `scope`, whole: adding a block, removing one and editing
|
|
1796
|
+
* one's attributes are each this action. A module call holds no nested
|
|
1797
|
+
* block, so one naming a call is refused.
|
|
1798
|
+
*/
|
|
1799
|
+
interface SetBlocksAction {
|
|
1800
|
+
instance_id: string;
|
|
1801
|
+
blocks: BlockView[];
|
|
1802
|
+
scope: string;
|
|
1803
|
+
}
|
|
1804
|
+
declare const SetBlocksAction: MessageFns<SetBlocksAction>;
|
|
1805
|
+
/**
|
|
1806
|
+
* SetMetaArgumentsAction sets the meta-arguments of the child `instance_id`
|
|
1807
|
+
* of `scope`, each as text and empty for none: `count` and `for_each`, of
|
|
1808
|
+
* which a child takes at most one, and `provider`, the provider
|
|
1809
|
+
* configuration a resource or data source uses (`aws.west`). A module call
|
|
1810
|
+
* passes providers through its `providers` map (`set_use_providers`), so a
|
|
1811
|
+
* `provider` naming one for a call is refused.
|
|
1812
|
+
*/
|
|
1813
|
+
interface SetMetaArgumentsAction {
|
|
1814
|
+
instance_id: string;
|
|
1815
|
+
count: string;
|
|
1816
|
+
for_each: string;
|
|
1817
|
+
provider: string;
|
|
1818
|
+
scope: string;
|
|
1819
|
+
}
|
|
1820
|
+
declare const SetMetaArgumentsAction: MessageFns<SetMetaArgumentsAction>;
|
|
1821
|
+
/**
|
|
1822
|
+
* AddResourceAction adds a managed resource (`kind` "resource") or a data
|
|
1823
|
+
* source (`kind` "data") of `type`, named `name`, to `scope`, with no
|
|
1824
|
+
* argument: its id is `<kind>.<type>.<name>`, reported in
|
|
1825
|
+
* `BundleApplyResult.created`. One `scope` already holds, a type or name
|
|
1826
|
+
* that is not an identifier, and any other kind are refused. A resource is
|
|
1827
|
+
* removed by `delete_instance`.
|
|
1828
|
+
*/
|
|
1829
|
+
interface AddResourceAction {
|
|
1830
|
+
kind: string;
|
|
1831
|
+
type: string;
|
|
1832
|
+
name: string;
|
|
1833
|
+
scope: string;
|
|
1834
|
+
}
|
|
1835
|
+
declare const AddResourceAction: MessageFns<AddResourceAction>;
|
|
1752
1836
|
interface SetDependsOnAction {
|
|
1753
1837
|
instance_id: string;
|
|
1754
1838
|
depends_on: string[];
|
|
@@ -1816,6 +1900,10 @@ interface Action {
|
|
|
1816
1900
|
place_module?: PlaceModuleAction | undefined;
|
|
1817
1901
|
set_use_providers?: SetUseProvidersAction | undefined;
|
|
1818
1902
|
ungroup?: UngroupAction | undefined;
|
|
1903
|
+
set_blocks?: SetBlocksAction | undefined;
|
|
1904
|
+
set_directives?: SetDirectivesAction | undefined;
|
|
1905
|
+
set_meta_arguments?: SetMetaArgumentsAction | undefined;
|
|
1906
|
+
add_resource?: AddResourceAction | undefined;
|
|
1819
1907
|
}
|
|
1820
1908
|
declare const Action: MessageFns<Action>;
|
|
1821
1909
|
interface ApplyActionRequest {
|
|
@@ -1876,7 +1964,10 @@ interface InvokeRequest {
|
|
|
1876
1964
|
invoke_id: string;
|
|
1877
1965
|
/** e.g. ["stack","preview"] */
|
|
1878
1966
|
path: string[];
|
|
1879
|
-
/**
|
|
1967
|
+
/**
|
|
1968
|
+
* The command's positionals and flags, as a terminal user types them.
|
|
1969
|
+
* -o/--output may name only json, the format the stream carries.
|
|
1970
|
+
*/
|
|
1880
1971
|
argv: string[];
|
|
1881
1972
|
/**
|
|
1882
1973
|
* The absolute directory the command runs in, as a terminal invocation
|
|
@@ -1888,6 +1979,11 @@ interface InvokeRequest {
|
|
|
1888
1979
|
* directory is sent with the developer's home.
|
|
1889
1980
|
*/
|
|
1890
1981
|
working_directory: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* The command's standard input: the bytes a terminal user would type,
|
|
1984
|
+
* such as the name a destroy asks to be confirmed with.
|
|
1985
|
+
*/
|
|
1986
|
+
stdin: Uint8Array;
|
|
1891
1987
|
}
|
|
1892
1988
|
declare const InvokeRequest: MessageFns<InvokeRequest>;
|
|
1893
1989
|
interface InvokeEvent {
|
|
@@ -1931,7 +2027,7 @@ interface GenerateProgress {
|
|
|
1931
2027
|
declare const GenerateProgress: MessageFns<GenerateProgress>;
|
|
1932
2028
|
interface GenerateSuccess {
|
|
1933
2029
|
files_written: string[];
|
|
1934
|
-
/** the `module validate -o json` document for the
|
|
2030
|
+
/** the `module validate -o json` document for the Terraform on disk */
|
|
1935
2031
|
validate_json: string;
|
|
1936
2032
|
/** the Generate this event belongs to */
|
|
1937
2033
|
generate_id: string;
|
|
@@ -2035,10 +2131,13 @@ interface BundleState {
|
|
|
2035
2131
|
ungenerated: boolean;
|
|
2036
2132
|
/**
|
|
2037
2133
|
* True when the source tf this session opened, or last observed live,
|
|
2038
|
-
* is refused
|
|
2039
|
-
*
|
|
2040
|
-
*
|
|
2041
|
-
*
|
|
2134
|
+
* is refused: it cannot be selected as one tree, does not parse, parses
|
|
2135
|
+
* lossily, or is not in lace shape, and `diagnostics` names why — one
|
|
2136
|
+
* `not_lace_shape` diagnostic per managed resource out of lace shape, whose
|
|
2137
|
+
* remedy is Convert (`module convert`). The engine refuses every
|
|
2138
|
+
* mutation while this holds — edit, undo, redo, save, generate, and
|
|
2139
|
+
* SessionResolveConflict's Keep/Reload alike — until a live tf change
|
|
2140
|
+
* is accepted and clears it.
|
|
2042
2141
|
*/
|
|
2043
2142
|
source_refused: boolean;
|
|
2044
2143
|
/**
|
|
@@ -2156,31 +2255,40 @@ interface ProviderReqView {
|
|
|
2156
2255
|
configuration_aliases: string[];
|
|
2157
2256
|
}
|
|
2158
2257
|
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
2159
|
-
interface BackendView {
|
|
2160
|
-
type: string;
|
|
2161
|
-
config: {
|
|
2162
|
-
[key: string]: any | undefined;
|
|
2163
|
-
};
|
|
2164
|
-
}
|
|
2165
|
-
declare const BackendView: MessageFns<BackendView>;
|
|
2166
2258
|
interface ProviderView {
|
|
2167
2259
|
name: string;
|
|
2168
2260
|
alias: string;
|
|
2261
|
+
/** Each setting's value as text. */
|
|
2169
2262
|
config: {
|
|
2170
2263
|
[key: string]: string;
|
|
2171
2264
|
};
|
|
2172
|
-
/**
|
|
2173
|
-
|
|
2174
|
-
* read-only echo: the panel renders and round-trips these verbatim but does
|
|
2175
|
-
* not structurally edit them, deliberately mixing tiers with the flattened,
|
|
2176
|
-
* editable `config` map above (see ProvidersPanel). Reuses state.proto's
|
|
2177
|
-
* recursive Block so no HCL is re-serialized on the wire.
|
|
2178
|
-
*/
|
|
2179
|
-
blocks: Block[];
|
|
2265
|
+
/** The configuration's nested blocks (default_tags, assume_role, …). */
|
|
2266
|
+
blocks: BlockView[];
|
|
2180
2267
|
}
|
|
2181
2268
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
2269
|
+
/**
|
|
2270
|
+
* BlockView is a block as a panel edits it: a resource's or a provider
|
|
2271
|
+
* configuration's nested block, or a `moved` or `import` block. Each
|
|
2272
|
+
* attribute's value is text, in the block's declaration order.
|
|
2273
|
+
*/
|
|
2274
|
+
interface BlockView {
|
|
2275
|
+
type: string;
|
|
2276
|
+
labels: string[];
|
|
2277
|
+
attributes: AttributeView[];
|
|
2278
|
+
blocks: BlockView[];
|
|
2279
|
+
}
|
|
2280
|
+
declare const BlockView: MessageFns<BlockView>;
|
|
2281
|
+
interface AttributeView {
|
|
2282
|
+
name: string;
|
|
2283
|
+
value: string;
|
|
2284
|
+
}
|
|
2285
|
+
declare const AttributeView: MessageFns<AttributeView>;
|
|
2182
2286
|
interface InputDef {
|
|
2183
2287
|
name: string;
|
|
2288
|
+
/**
|
|
2289
|
+
* The type constraint the variable's type line spells, as written; empty
|
|
2290
|
+
* for a variable with no type line. `any` is a type line of its own.
|
|
2291
|
+
*/
|
|
2184
2292
|
type: string;
|
|
2185
2293
|
required: boolean;
|
|
2186
2294
|
description: string;
|
|
@@ -2200,6 +2308,10 @@ interface ValidationBlock {
|
|
|
2200
2308
|
declare const ValidationBlock: MessageFns<ValidationBlock>;
|
|
2201
2309
|
interface OutputDef {
|
|
2202
2310
|
name: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* The type of the child output the output's export reads; empty when
|
|
2313
|
+
* nothing types it. An output block declares no type.
|
|
2314
|
+
*/
|
|
2203
2315
|
type: string;
|
|
2204
2316
|
description: string;
|
|
2205
2317
|
sensitive: boolean;
|
|
@@ -2410,6 +2522,7 @@ declare const SCHEMAS: {
|
|
|
2410
2522
|
verdict: z.ZodOptional<z.ZodEnum<{
|
|
2411
2523
|
"already-lace-style": "already-lace-style";
|
|
2412
2524
|
"representable-but-transpilable": "representable-but-transpilable";
|
|
2525
|
+
uncomposable: "uncomposable";
|
|
2413
2526
|
lossy: "lossy";
|
|
2414
2527
|
}>>;
|
|
2415
2528
|
residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2432,8 +2545,6 @@ declare const SCHEMAS: {
|
|
|
2432
2545
|
}, z.core.$strip>>;
|
|
2433
2546
|
sharedLocalSource: z.ZodBoolean;
|
|
2434
2547
|
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
2435
|
-
uncomposable: z.ZodBoolean;
|
|
2436
|
-
uncomposableReason: z.ZodString;
|
|
2437
2548
|
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
2438
2549
|
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
2439
2550
|
}, z.core.$strip>>;
|
|
@@ -2479,6 +2590,7 @@ declare const SCHEMAS: {
|
|
|
2479
2590
|
verdict: z.ZodOptional<z.ZodEnum<{
|
|
2480
2591
|
"already-lace-style": "already-lace-style";
|
|
2481
2592
|
"representable-but-transpilable": "representable-but-transpilable";
|
|
2593
|
+
uncomposable: "uncomposable";
|
|
2482
2594
|
lossy: "lossy";
|
|
2483
2595
|
}>>;
|
|
2484
2596
|
residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2501,8 +2613,6 @@ declare const SCHEMAS: {
|
|
|
2501
2613
|
}, z.core.$strip>>;
|
|
2502
2614
|
sharedLocalSource: z.ZodBoolean;
|
|
2503
2615
|
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
2504
|
-
uncomposable: z.ZodBoolean;
|
|
2505
|
-
uncomposableReason: z.ZodString;
|
|
2506
2616
|
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
2507
2617
|
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
2508
2618
|
}, z.core.$strip>>;
|
|
@@ -2707,8 +2817,6 @@ declare const SCHEMAS: {
|
|
|
2707
2817
|
lastDriftStale: z.ZodBoolean;
|
|
2708
2818
|
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
2709
2819
|
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
2710
|
-
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
2711
|
-
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
2712
2820
|
createdBy: z.ZodString;
|
|
2713
2821
|
createdAt: z.ZodString;
|
|
2714
2822
|
updatedAt: z.ZodString;
|
|
@@ -2755,8 +2863,6 @@ declare const SCHEMAS: {
|
|
|
2755
2863
|
lastDriftStale: z.ZodBoolean;
|
|
2756
2864
|
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
2757
2865
|
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
2758
|
-
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
2759
|
-
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
2760
2866
|
createdBy: z.ZodString;
|
|
2761
2867
|
createdAt: z.ZodString;
|
|
2762
2868
|
updatedAt: z.ZodString;
|
|
@@ -2864,16 +2970,6 @@ declare const SCHEMAS: {
|
|
|
2864
2970
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2865
2971
|
hasMore: z.ZodBoolean;
|
|
2866
2972
|
}, z.core.$strip>;
|
|
2867
|
-
'chaos list': z.ZodObject<{
|
|
2868
|
-
stackId: z.ZodString;
|
|
2869
|
-
connectionBlock: z.ZodNullable<z.ZodUnknown>;
|
|
2870
|
-
experiments: z.ZodArray<z.ZodObject<{
|
|
2871
|
-
bindingId: z.ZodString;
|
|
2872
|
-
name: z.ZodString;
|
|
2873
|
-
assertionCount: z.ZodNumber;
|
|
2874
|
-
engine: z.ZodString;
|
|
2875
|
-
}, z.core.$strip>>;
|
|
2876
|
-
}, z.core.$strip>;
|
|
2877
2973
|
'stack preview': z.ZodObject<{
|
|
2878
2974
|
stack: z.ZodObject<{
|
|
2879
2975
|
id: z.ZodString;
|
|
@@ -2896,7 +2992,65 @@ declare const SCHEMAS: {
|
|
|
2896
2992
|
reason: z.ZodString;
|
|
2897
2993
|
approvalMode: z.ZodNullable<z.ZodString>;
|
|
2898
2994
|
isAuthoringTimePreview: z.ZodBoolean;
|
|
2995
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
2996
|
+
policyId: z.ZodString;
|
|
2997
|
+
name: z.ZodString;
|
|
2998
|
+
handler: z.ZodString;
|
|
2999
|
+
mode: z.ZodString;
|
|
3000
|
+
decision: z.ZodString;
|
|
3001
|
+
reason: z.ZodString;
|
|
3002
|
+
rulesFired: z.ZodArray<z.ZodString>;
|
|
3003
|
+
approvalMode: z.ZodNullable<z.ZodString>;
|
|
3004
|
+
}, z.core.$strip>>;
|
|
2899
3005
|
}, z.core.$strip>>;
|
|
3006
|
+
advisories: z.ZodObject<{
|
|
3007
|
+
queue: z.ZodObject<{
|
|
3008
|
+
manifestation: z.ZodLiteral<"preview">;
|
|
3009
|
+
floor: z.ZodNumber;
|
|
3010
|
+
entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3011
|
+
kind: z.ZodLiteral<"consensus">;
|
|
3012
|
+
subject: z.ZodObject<{
|
|
3013
|
+
resourceUri: z.ZodString;
|
|
3014
|
+
riskCategory: z.ZodString;
|
|
3015
|
+
remediationKind: z.ZodString;
|
|
3016
|
+
remediationFingerprint: z.ZodString;
|
|
3017
|
+
}, z.core.$strip>;
|
|
3018
|
+
advisories: z.ZodArray<z.ZodObject<{
|
|
3019
|
+
id: z.ZodString;
|
|
3020
|
+
manifestation: z.ZodString;
|
|
3021
|
+
emittedByInstallId: z.ZodString;
|
|
3022
|
+
emittedByDisplayName: z.ZodString;
|
|
3023
|
+
confidenceScore: z.ZodNumber;
|
|
3024
|
+
producedAt: z.ZodString;
|
|
3025
|
+
outputJson: z.ZodUnknown;
|
|
3026
|
+
}, z.core.$strip>>;
|
|
3027
|
+
agentCount: z.ZodNumber;
|
|
3028
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3029
|
+
kind: z.ZodLiteral<"disagreement">;
|
|
3030
|
+
subject: z.ZodObject<{
|
|
3031
|
+
resourceUri: z.ZodString;
|
|
3032
|
+
riskCategory: z.ZodString;
|
|
3033
|
+
remediationKind: z.ZodString;
|
|
3034
|
+
}, z.core.$strip>;
|
|
3035
|
+
lanes: z.ZodArray<z.ZodObject<{
|
|
3036
|
+
remediationFingerprint: z.ZodString;
|
|
3037
|
+
advisories: z.ZodArray<z.ZodObject<{
|
|
3038
|
+
id: z.ZodString;
|
|
3039
|
+
manifestation: z.ZodString;
|
|
3040
|
+
emittedByInstallId: z.ZodString;
|
|
3041
|
+
emittedByDisplayName: z.ZodString;
|
|
3042
|
+
confidenceScore: z.ZodNumber;
|
|
3043
|
+
producedAt: z.ZodString;
|
|
3044
|
+
outputJson: z.ZodUnknown;
|
|
3045
|
+
}, z.core.$strip>>;
|
|
3046
|
+
}, z.core.$strip>>;
|
|
3047
|
+
}, z.core.$strip>], "kind">>;
|
|
3048
|
+
belowFloor: z.ZodNumber;
|
|
3049
|
+
}, z.core.$strip>;
|
|
3050
|
+
truncated: z.ZodBoolean;
|
|
3051
|
+
pending: z.ZodNumber;
|
|
3052
|
+
bound: z.ZodOptional<z.ZodNumber>;
|
|
3053
|
+
}, z.core.$strip>;
|
|
2900
3054
|
}, z.core.$strip>;
|
|
2901
3055
|
'stack apply': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2902
3056
|
type: z.ZodLiteral<"log">;
|
|
@@ -3128,8 +3282,6 @@ declare const SCHEMAS: {
|
|
|
3128
3282
|
lastDriftStale: z.ZodBoolean;
|
|
3129
3283
|
lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
|
|
3130
3284
|
lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
|
|
3131
|
-
chaosLockedByRunId: z.ZodNullable<z.ZodString>;
|
|
3132
|
-
chaosLockedAt: z.ZodNullable<z.ZodString>;
|
|
3133
3285
|
createdBy: z.ZodString;
|
|
3134
3286
|
createdAt: z.ZodString;
|
|
3135
3287
|
updatedAt: z.ZodString;
|
|
@@ -3161,6 +3313,7 @@ declare const SCHEMAS: {
|
|
|
3161
3313
|
verdict: z.ZodOptional<z.ZodEnum<{
|
|
3162
3314
|
"already-lace-style": "already-lace-style";
|
|
3163
3315
|
"representable-but-transpilable": "representable-but-transpilable";
|
|
3316
|
+
uncomposable: "uncomposable";
|
|
3164
3317
|
lossy: "lossy";
|
|
3165
3318
|
}>>;
|
|
3166
3319
|
residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3183,8 +3336,6 @@ declare const SCHEMAS: {
|
|
|
3183
3336
|
}, z.core.$strip>>;
|
|
3184
3337
|
sharedLocalSource: z.ZodBoolean;
|
|
3185
3338
|
sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
|
|
3186
|
-
uncomposable: z.ZodBoolean;
|
|
3187
|
-
uncomposableReason: z.ZodString;
|
|
3188
3339
|
registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
|
|
3189
3340
|
childNotLaceForm: z.ZodArray<z.ZodUnknown>;
|
|
3190
3341
|
}, z.core.$strip>>;
|
|
@@ -3621,7 +3772,7 @@ type EdgeRef = {
|
|
|
3621
3772
|
sourceOutput: string;
|
|
3622
3773
|
targetInput: string;
|
|
3623
3774
|
};
|
|
3624
|
-
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
3775
|
+
type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
|
|
3625
3776
|
type RunCtx = {
|
|
3626
3777
|
root?: string;
|
|
3627
3778
|
sessionId?: string;
|
|
@@ -3977,10 +4128,13 @@ type MsgOf<M> = M extends {
|
|
|
3977
4128
|
type EngineMethodResponse = {
|
|
3978
4129
|
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: MsgOf<(typeof LaceEngineDefinition.methods)[K]['responseType']>;
|
|
3979
4130
|
};
|
|
4131
|
+
type EngineMethodRequest = {
|
|
4132
|
+
[K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: DeepPartial<MsgOf<(typeof LaceEngineDefinition.methods)[K]['requestType']>>;
|
|
4133
|
+
};
|
|
3980
4134
|
type EngineCaller<UnaryMethod extends EngineMethod = EngineMethod> = {
|
|
3981
4135
|
kind: 'bridge' | 'direct';
|
|
3982
|
-
unary<M extends UnaryMethod>(method: M, request:
|
|
3983
|
-
stream<M extends EngineStreamMethod>(method: M, request:
|
|
4136
|
+
unary<M extends UnaryMethod>(method: M, request: EngineMethodRequest[M]): Promise<EngineMethodResponse[M]>;
|
|
4137
|
+
stream<M extends EngineStreamMethod>(method: M, request: EngineMethodRequest[M], signal: AbortSignal): AsyncIterable<EngineMethodResponse[M]>;
|
|
3984
4138
|
};
|
|
3985
4139
|
/** The `kind: 'direct'` narrowing of `EngineCaller` — a caller that talks
|
|
3986
4140
|
* straight to the engine and can serve every `EngineMethod`, `TestSessionOpen`
|