@substrat-run/contracts 0.215.0 → 0.217.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/broker-dead-letters.d.ts +114 -0
- package/dist/broker-dead-letters.d.ts.map +1 -0
- package/dist/broker-dead-letters.js +110 -0
- package/dist/broker-dead-letters.js.map +1 -0
- package/dist/broker-relay.d.ts +67 -0
- package/dist/broker-relay.d.ts.map +1 -1
- package/dist/broker-relay.js +30 -0
- package/dist/broker-relay.js.map +1 -1
- package/dist/connect-intent.d.ts +75 -0
- package/dist/connect-intent.d.ts.map +1 -0
- package/dist/connect-intent.js +89 -0
- package/dist/connect-intent.js.map +1 -0
- package/dist/control-plane.d.ts +28 -0
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/control-plane.js +56 -0
- package/dist/control-plane.js.map +1 -1
- package/dist/deploy.d.ts +44 -0
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +58 -0
- package/dist/deploy.js.map +1 -1
- package/dist/dev-recording.d.ts +109 -0
- package/dist/dev-recording.d.ts.map +1 -0
- package/dist/dev-recording.js +128 -0
- package/dist/dev-recording.js.map +1 -0
- package/dist/email-intent.d.ts +14 -0
- package/dist/email-intent.d.ts.map +1 -1
- package/dist/email-intent.js +28 -0
- package/dist/email-intent.js.map +1 -1
- package/dist/environments.d.ts +62 -0
- package/dist/environments.d.ts.map +1 -0
- package/dist/environments.js +55 -0
- package/dist/environments.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/introspection.d.ts.map +1 -1
- package/dist/introspection.js +3 -2
- package/dist/introspection.js.map +1 -1
- package/dist/manifest.d.ts +122 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +96 -1
- package/dist/manifest.js.map +1 -1
- package/dist/mcp-image.d.ts +38 -0
- package/dist/mcp-image.d.ts.map +1 -0
- package/dist/mcp-image.js +31 -0
- package/dist/mcp-image.js.map +1 -0
- package/dist/operations.d.ts +43 -2
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +56 -1
- package/dist/operations.js.map +1 -1
- package/dist/registry.d.ts +46 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +35 -0
- package/dist/registry.js.map +1 -1
- package/dist/runtime-tables.d.ts +12 -0
- package/dist/runtime-tables.d.ts.map +1 -0
- package/dist/runtime-tables.js +15 -0
- package/dist/runtime-tables.js.map +1 -0
- package/dist/scope-store-envelope.d.ts +57 -4
- package/dist/scope-store-envelope.d.ts.map +1 -1
- package/dist/scope-store-envelope.js +82 -15
- package/dist/scope-store-envelope.js.map +1 -1
- package/dist/scope-types.d.ts +108 -0
- package/dist/scope-types.d.ts.map +1 -0
- package/dist/scope-types.js +198 -0
- package/dist/scope-types.js.map +1 -0
- package/dist/source-build.d.ts +16 -0
- package/dist/source-build.d.ts.map +1 -1
- package/dist/source-build.js +10 -0
- package/dist/source-build.js.map +1 -1
- package/dist/vertical-connector.d.ts +84 -2
- package/dist/vertical-connector.d.ts.map +1 -1
- package/dist/vertical-connector.js +59 -2
- package/dist/vertical-connector.js.map +1 -1
- package/dist/vertical-events.d.ts +42 -0
- package/dist/vertical-events.d.ts.map +1 -1
- package/dist/vertical-events.js +8 -0
- package/dist/vertical-events.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scope types (#2993, K-64): a vertical declares the kinds of scope it has, each with its own
|
|
3
|
+
* modules, roles and stores, and which kinds may be children of which.
|
|
4
|
+
*
|
|
5
|
+
* A vertical that declares none has exactly one type, {@link HOME_SCOPE_TYPE}, holding every module,
|
|
6
|
+
* role and store it declares. That is what every vertical runs today, and {@link scopeTypesOf}
|
|
7
|
+
* resolves it, so a reader handles one shape whether or not the vertical declared types.
|
|
8
|
+
*
|
|
9
|
+
* The declaration lives on the vertical's declared permission surface (`definePermissions`), beside
|
|
10
|
+
* the modules and roles it partitions, so it is read by the same readers: `lint:permissions`,
|
|
11
|
+
* `substrat push` and the hosts. A type names modules, roles and stores the vertical already
|
|
12
|
+
* declares, by id. It adds no module, key or role of its own.
|
|
13
|
+
*
|
|
14
|
+
* This file is the declaration and its rules only. Which type a scope has, and a host running only
|
|
15
|
+
* that type's modules, are later parts of #2993. Child provisioning (#2995) and store proofs
|
|
16
|
+
* (#2996) are not here.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* The type every vertical has (D-75's home scope): what an install provisions, and the one type of
|
|
20
|
+
* a vertical that declares none. It has no parent, so no type may name it as a child.
|
|
21
|
+
*/
|
|
22
|
+
export declare const HOME_SCOPE_TYPE = "home";
|
|
23
|
+
/** A type's name: a lowercase slug, short enough to sit in a directory column and a log line. */
|
|
24
|
+
export declare const SCOPE_TYPE_NAME: RegExp;
|
|
25
|
+
/**
|
|
26
|
+
* How a request may reach a scope of a type.
|
|
27
|
+
* - `direct`: routed to the scope itself, as every scope is reached today.
|
|
28
|
+
* - `parent`: through its parent's door (#2995). Declared now, so a type's reach is reviewed with
|
|
29
|
+
* the rest of it; nothing routes on it until child scopes are built.
|
|
30
|
+
*/
|
|
31
|
+
export type ScopeTypeAccess = 'direct' | 'parent';
|
|
32
|
+
/** One scope type, as a vertical writes it. */
|
|
33
|
+
export interface ScopeTypeDeclaration {
|
|
34
|
+
/** The type's name, {@link SCOPE_TYPE_NAME}. One of them is {@link HOME_SCOPE_TYPE}. */
|
|
35
|
+
readonly name: string;
|
|
36
|
+
/** The ids of the modules a scope of this type runs: their tables, operations and keys. */
|
|
37
|
+
readonly modules: readonly string[];
|
|
38
|
+
/** The keys of the vertical's roles that exist on a scope of this type. Default: none. */
|
|
39
|
+
readonly roles?: readonly string[];
|
|
40
|
+
/** The scope-store bindings (`runtimeNeeds.scopeStores`) a scope of this type has. Default: none. */
|
|
41
|
+
readonly stores?: readonly string[];
|
|
42
|
+
/** The types a scope of this type may hold as children. Default: none. */
|
|
43
|
+
readonly children?: readonly string[];
|
|
44
|
+
/**
|
|
45
|
+
* How a request may reach it. Default: `['direct']` for the home type, `['parent']` for any other.
|
|
46
|
+
* The home type has no parent, so it cannot declare `parent`.
|
|
47
|
+
*/
|
|
48
|
+
readonly accepts?: readonly ScopeTypeAccess[];
|
|
49
|
+
}
|
|
50
|
+
/** A type as every reader sees it: defaults applied, lists sorted, nothing optional. */
|
|
51
|
+
export interface ScopeType {
|
|
52
|
+
readonly name: string;
|
|
53
|
+
readonly modules: readonly string[];
|
|
54
|
+
readonly roles: readonly string[];
|
|
55
|
+
/**
|
|
56
|
+
* The scope-store bindings it has, or `null` for the implicit home type of a vertical that
|
|
57
|
+
* declares no types: that type has whatever stores `runtimeNeeds` declares, as every scope does
|
|
58
|
+
* today, and this surface does not see `runtimeNeeds`.
|
|
59
|
+
*/
|
|
60
|
+
readonly stores: readonly string[] | null;
|
|
61
|
+
readonly children: readonly string[];
|
|
62
|
+
readonly accepts: readonly ScopeTypeAccess[];
|
|
63
|
+
/** True for the one type a vertical that declares none is given. */
|
|
64
|
+
readonly implicit: boolean;
|
|
65
|
+
}
|
|
66
|
+
/** What the resolver reads: the vertical's modules and roles, and its types if it declares any. */
|
|
67
|
+
export interface ScopeTypeSurface {
|
|
68
|
+
readonly modules: readonly {
|
|
69
|
+
manifest: {
|
|
70
|
+
id: string;
|
|
71
|
+
permissions?: readonly {
|
|
72
|
+
key: string;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
}[];
|
|
76
|
+
readonly roles: readonly {
|
|
77
|
+
key: string;
|
|
78
|
+
permissions: readonly string[];
|
|
79
|
+
}[];
|
|
80
|
+
readonly scopeTypes?: readonly ScopeTypeDeclaration[];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The vertical's scope types, resolved: its own declaration with defaults applied, or the one
|
|
84
|
+
* implicit home type when it declares none. Throws on a declaration {@link scopeTypeOffences} finds
|
|
85
|
+
* fault with, so no reader acts on a surface that does not hold together.
|
|
86
|
+
*/
|
|
87
|
+
export declare function scopeTypesOf(surface: ScopeTypeSurface): ScopeType[];
|
|
88
|
+
/** The resolved type of that name, or `undefined` when the vertical has none of that name. */
|
|
89
|
+
export declare function scopeTypeNamed(types: readonly ScopeType[], name: string): ScopeType | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Everything wrong with a vertical's declared scope types, one sentence each; `[]` when it holds
|
|
92
|
+
* together or declares none. The rules:
|
|
93
|
+
*
|
|
94
|
+
* - A declared list is not empty, and it has a {@link HOME_SCOPE_TYPE}: an install provisions one.
|
|
95
|
+
* - Names follow {@link SCOPE_TYPE_NAME} and are unique.
|
|
96
|
+
* - A type's modules, roles and children name what the vertical declares, each once.
|
|
97
|
+
* - Every module and every role is in at least one type. One in none never runs, or is never
|
|
98
|
+
* seated, while every reader of the surface still counts it.
|
|
99
|
+
* - A role holds only keys the modules of each type it is in declare. A key no module of the scope
|
|
100
|
+
* declares is a grant to nothing there.
|
|
101
|
+
* - No type names the home type as a child, and the home type does not accept `parent`: it has no
|
|
102
|
+
* parent. Every other type is a child of some type, or nothing could ever provision it.
|
|
103
|
+
* - A type is reached somehow: `accepts` is not empty, and names `direct` or `parent` only.
|
|
104
|
+
*/
|
|
105
|
+
export declare function scopeTypeOffences(surface: ScopeTypeSurface): string[];
|
|
106
|
+
/** The offences as the one error a load or a lint prints. */
|
|
107
|
+
export declare function scopeTypeMessage(offences: readonly string[]): string;
|
|
108
|
+
//# sourceMappingURL=scope-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope-types.d.ts","sourceRoot":"","sources":["../src/scope-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe,SAAS,CAAC;AAEtC,iGAAiG;AACjG,eAAO,MAAM,eAAe,QAA2B,CAAC;AAKxD;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,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AAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;IAC3E,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACvD;AAID;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,EAAE,CA4BnE;AAED,8FAA8F;AAC9F,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE/F;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,EAAE,CA4GrE;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAEpE"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scope types (#2993, K-64): a vertical declares the kinds of scope it has, each with its own
|
|
3
|
+
* modules, roles and stores, and which kinds may be children of which.
|
|
4
|
+
*
|
|
5
|
+
* A vertical that declares none has exactly one type, {@link HOME_SCOPE_TYPE}, holding every module,
|
|
6
|
+
* role and store it declares. That is what every vertical runs today, and {@link scopeTypesOf}
|
|
7
|
+
* resolves it, so a reader handles one shape whether or not the vertical declared types.
|
|
8
|
+
*
|
|
9
|
+
* The declaration lives on the vertical's declared permission surface (`definePermissions`), beside
|
|
10
|
+
* the modules and roles it partitions, so it is read by the same readers: `lint:permissions`,
|
|
11
|
+
* `substrat push` and the hosts. A type names modules, roles and stores the vertical already
|
|
12
|
+
* declares, by id. It adds no module, key or role of its own.
|
|
13
|
+
*
|
|
14
|
+
* This file is the declaration and its rules only. Which type a scope has, and a host running only
|
|
15
|
+
* that type's modules, are later parts of #2993. Child provisioning (#2995) and store proofs
|
|
16
|
+
* (#2996) are not here.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* The type every vertical has (D-75's home scope): what an install provisions, and the one type of
|
|
20
|
+
* a vertical that declares none. It has no parent, so no type may name it as a child.
|
|
21
|
+
*/
|
|
22
|
+
export const HOME_SCOPE_TYPE = 'home';
|
|
23
|
+
/** A type's name: a lowercase slug, short enough to sit in a directory column and a log line. */
|
|
24
|
+
export const SCOPE_TYPE_NAME = /^[a-z][a-z0-9-]{0,31}$/;
|
|
25
|
+
/** A scope-store binding, as `runtimeNeeds.scopeStores[].binding` spells it. */
|
|
26
|
+
const STORE_BINDING = /^[A-Z][A-Z0-9_]*$/;
|
|
27
|
+
const sorted = (values) => [...values].sort();
|
|
28
|
+
/**
|
|
29
|
+
* The vertical's scope types, resolved: its own declaration with defaults applied, or the one
|
|
30
|
+
* implicit home type when it declares none. Throws on a declaration {@link scopeTypeOffences} finds
|
|
31
|
+
* fault with, so no reader acts on a surface that does not hold together.
|
|
32
|
+
*/
|
|
33
|
+
export function scopeTypesOf(surface) {
|
|
34
|
+
const declared = surface.scopeTypes;
|
|
35
|
+
if (declared === undefined) {
|
|
36
|
+
return [
|
|
37
|
+
{
|
|
38
|
+
name: HOME_SCOPE_TYPE,
|
|
39
|
+
modules: sorted(surface.modules.map((m) => m.manifest.id)),
|
|
40
|
+
roles: sorted(surface.roles.map((r) => r.key)),
|
|
41
|
+
stores: null,
|
|
42
|
+
children: [],
|
|
43
|
+
accepts: ['direct'],
|
|
44
|
+
implicit: true,
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
const offences = scopeTypeOffences(surface);
|
|
49
|
+
if (offences.length)
|
|
50
|
+
throw new Error(scopeTypeMessage(offences));
|
|
51
|
+
return declared
|
|
52
|
+
.map((t) => ({
|
|
53
|
+
name: t.name,
|
|
54
|
+
modules: sorted(t.modules),
|
|
55
|
+
roles: sorted(t.roles ?? []),
|
|
56
|
+
stores: sorted(t.stores ?? []),
|
|
57
|
+
children: sorted(t.children ?? []),
|
|
58
|
+
accepts: sorted(t.accepts ?? (t.name === HOME_SCOPE_TYPE ? ['direct'] : ['parent'])),
|
|
59
|
+
implicit: false,
|
|
60
|
+
}))
|
|
61
|
+
.sort((a, b) => (a.name === HOME_SCOPE_TYPE ? -1 : b.name === HOME_SCOPE_TYPE ? 1 : a.name.localeCompare(b.name)));
|
|
62
|
+
}
|
|
63
|
+
/** The resolved type of that name, or `undefined` when the vertical has none of that name. */
|
|
64
|
+
export function scopeTypeNamed(types, name) {
|
|
65
|
+
return types.find((t) => t.name === name);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Everything wrong with a vertical's declared scope types, one sentence each; `[]` when it holds
|
|
69
|
+
* together or declares none. The rules:
|
|
70
|
+
*
|
|
71
|
+
* - A declared list is not empty, and it has a {@link HOME_SCOPE_TYPE}: an install provisions one.
|
|
72
|
+
* - Names follow {@link SCOPE_TYPE_NAME} and are unique.
|
|
73
|
+
* - A type's modules, roles and children name what the vertical declares, each once.
|
|
74
|
+
* - Every module and every role is in at least one type. One in none never runs, or is never
|
|
75
|
+
* seated, while every reader of the surface still counts it.
|
|
76
|
+
* - A role holds only keys the modules of each type it is in declare. A key no module of the scope
|
|
77
|
+
* declares is a grant to nothing there.
|
|
78
|
+
* - No type names the home type as a child, and the home type does not accept `parent`: it has no
|
|
79
|
+
* parent. Every other type is a child of some type, or nothing could ever provision it.
|
|
80
|
+
* - A type is reached somehow: `accepts` is not empty, and names `direct` or `parent` only.
|
|
81
|
+
*/
|
|
82
|
+
export function scopeTypeOffences(surface) {
|
|
83
|
+
const declared = surface.scopeTypes;
|
|
84
|
+
if (declared === undefined)
|
|
85
|
+
return [];
|
|
86
|
+
const out = [];
|
|
87
|
+
if (declared.length === 0) {
|
|
88
|
+
out.push(`scopeTypes is empty. Leave it out for one '${HOME_SCOPE_TYPE}' type holding everything, or declare '${HOME_SCOPE_TYPE}' and the rest`);
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
const moduleKeys = new Map();
|
|
92
|
+
for (const m of surface.modules) {
|
|
93
|
+
moduleKeys.set(m.manifest.id, new Set((m.manifest.permissions ?? []).map((p) => p.key)));
|
|
94
|
+
}
|
|
95
|
+
const roles = new Map(surface.roles.map((r) => [r.key, r]));
|
|
96
|
+
const names = new Set();
|
|
97
|
+
for (const t of declared) {
|
|
98
|
+
if (!SCOPE_TYPE_NAME.test(t.name)) {
|
|
99
|
+
out.push(`scope type '${t.name}': a name is a lowercase slug of at most 32 characters (${SCOPE_TYPE_NAME.source})`);
|
|
100
|
+
}
|
|
101
|
+
if (names.has(t.name))
|
|
102
|
+
out.push(`scope type '${t.name}' is declared twice`);
|
|
103
|
+
names.add(t.name);
|
|
104
|
+
}
|
|
105
|
+
if (!names.has(HOME_SCOPE_TYPE)) {
|
|
106
|
+
out.push(`no scope type is named '${HOME_SCOPE_TYPE}': it is the type an install provisions, and every vertical has one`);
|
|
107
|
+
}
|
|
108
|
+
const inSomeType = { modules: new Set(), roles: new Set() };
|
|
109
|
+
const heldAsChild = new Set();
|
|
110
|
+
for (const t of declared) {
|
|
111
|
+
const where = `scope type '${t.name}'`;
|
|
112
|
+
const twice = (list, what) => {
|
|
113
|
+
const seen = new Set();
|
|
114
|
+
for (const v of list) {
|
|
115
|
+
if (seen.has(v))
|
|
116
|
+
out.push(`${where} lists ${what} '${v}' twice`);
|
|
117
|
+
seen.add(v);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
twice(t.modules, 'module');
|
|
121
|
+
twice(t.roles ?? [], 'role');
|
|
122
|
+
twice(t.stores ?? [], 'store');
|
|
123
|
+
twice(t.children ?? [], 'child type');
|
|
124
|
+
if (t.modules.length === 0)
|
|
125
|
+
out.push(`${where} runs no module. A type is its modules, so declare at least one`);
|
|
126
|
+
const keys = new Set();
|
|
127
|
+
for (const id of t.modules) {
|
|
128
|
+
const own = moduleKeys.get(id);
|
|
129
|
+
if (!own) {
|
|
130
|
+
out.push(`${where} names module '${id}', which this vertical does not declare in modules`);
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
inSomeType.modules.add(id);
|
|
134
|
+
for (const k of own)
|
|
135
|
+
keys.add(k);
|
|
136
|
+
}
|
|
137
|
+
for (const key of t.roles ?? []) {
|
|
138
|
+
const role = roles.get(key);
|
|
139
|
+
if (!role) {
|
|
140
|
+
out.push(`${where} names role '${key}', which this vertical does not declare in roles`);
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
inSomeType.roles.add(key);
|
|
144
|
+
const foreign = role.permissions.filter((p) => !keys.has(p)).sort();
|
|
145
|
+
if (foreign.length) {
|
|
146
|
+
out.push(`${where} holds role '${key}', whose key${foreign.length > 1 ? 's' : ''} ${foreign.map((k) => `'${k}'`).join(', ')} ` +
|
|
147
|
+
`no module of this type declares. A role on a scope holds only keys that scope's modules declare`);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
for (const store of t.stores ?? []) {
|
|
151
|
+
if (!STORE_BINDING.test(store)) {
|
|
152
|
+
out.push(`${where} names store '${store}': a store is named by its binding (${STORE_BINDING.source}), as runtimeNeeds.scopeStores declares it`);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
for (const child of t.children ?? []) {
|
|
156
|
+
if (child === HOME_SCOPE_TYPE) {
|
|
157
|
+
out.push(`${where} names '${HOME_SCOPE_TYPE}' as a child. The home type has no parent`);
|
|
158
|
+
}
|
|
159
|
+
else if (!declared.some((d) => d.name === child)) {
|
|
160
|
+
out.push(`${where} names child type '${child}', which is not declared`);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
heldAsChild.add(child);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const accepts = t.accepts ?? (t.name === HOME_SCOPE_TYPE ? ['direct'] : ['parent']);
|
|
167
|
+
if (accepts.length === 0)
|
|
168
|
+
out.push(`${where} accepts nothing, so no request could reach it`);
|
|
169
|
+
for (const a of accepts) {
|
|
170
|
+
if (a !== 'direct' && a !== 'parent')
|
|
171
|
+
out.push(`${where} accepts '${String(a)}': a type accepts 'direct', 'parent' or both`);
|
|
172
|
+
}
|
|
173
|
+
if (t.name === HOME_SCOPE_TYPE && accepts.includes('parent')) {
|
|
174
|
+
out.push(`scope type '${HOME_SCOPE_TYPE}' accepts 'parent', but the home type has no parent`);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
for (const t of declared) {
|
|
178
|
+
if (t.name !== HOME_SCOPE_TYPE && names.has(t.name) && !heldAsChild.has(t.name)) {
|
|
179
|
+
out.push(`scope type '${t.name}' is no type's child, so nothing could provision it. Name it in a parent type's children`);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
for (const m of surface.modules) {
|
|
183
|
+
if (!inSomeType.modules.has(m.manifest.id)) {
|
|
184
|
+
out.push(`module '${m.manifest.id}' is in no scope type, so no scope would run it. Name it in a type's modules, or drop it from modules`);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
for (const r of surface.roles) {
|
|
188
|
+
if (!inSomeType.roles.has(r.key)) {
|
|
189
|
+
out.push(`role '${r.key}' is in no scope type, so no scope would hold it. Name it in a type's roles, or drop it from roles`);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return out;
|
|
193
|
+
}
|
|
194
|
+
/** The offences as the one error a load or a lint prints. */
|
|
195
|
+
export function scopeTypeMessage(offences) {
|
|
196
|
+
return `definePermissions: the declared scope types do not hold together (#2993):\n${offences.map((o) => ` - ${o}`).join('\n')}`;
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=scope-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope-types.js","sourceRoot":"","sources":["../src/scope-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AAEtC,iGAAiG;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,wBAAwB,CAAC;AAExD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C,CAAC,IAAI,KAAK,eAAe,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YAChF,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,0FAA0F,CAAC,CAAC;QAC5H,CAAC;IACH,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;YAC3C,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,EAAE,uGAAuG,CAAC,CAAC;QAC5I,CAAC;IACH,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAC9B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;YACjC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,oGAAoG,CAAC,CAAC;QAC/H,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,gBAAgB,CAAC,QAA2B;IAC1D,OAAO,8EAA8E,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACpI,CAAC"}
|
package/dist/source-build.d.ts
CHANGED
|
@@ -136,7 +136,23 @@ export declare const sourceBuildRecord: z.ZodObject<{
|
|
|
136
136
|
interruption: z.ZodOptional<z.ZodString>;
|
|
137
137
|
}, z.core.$strip>;
|
|
138
138
|
export type SourceBuildRecord = z.infer<typeof sourceBuildRecord>;
|
|
139
|
+
/**
|
|
140
|
+
* The packages a hosted build runs with (#3503). A source build runs the CLI and contracts the
|
|
141
|
+
* builder was deployed with, never the ones in the commit it builds, so what the build decides —
|
|
142
|
+
* the compatibility date, the platform entry, the push gates — is theirs. A deploy that must be
|
|
143
|
+
* built by the release it ships compares these with its own checkout before it pushes.
|
|
144
|
+
*/
|
|
145
|
+
export declare const sourceBuilderToolchain: z.ZodObject<{
|
|
146
|
+
cli: z.ZodString;
|
|
147
|
+
contracts: z.ZodString;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
export type SourceBuilderToolchain = z.infer<typeof sourceBuilderToolchain>;
|
|
139
150
|
export interface SourceBuildService {
|
|
151
|
+
/**
|
|
152
|
+
* The package versions the builder builds with; null when the builder does not say (one from
|
|
153
|
+
* before #3503). Optional for the same reason on the control plane's side.
|
|
154
|
+
*/
|
|
155
|
+
toolchain?(): Promise<SourceBuilderToolchain | null>;
|
|
140
156
|
build(tenantId: string, slug: string, request: SourceBuildRequest): Promise<BuiltSource>;
|
|
141
157
|
projects(tenantId: string, request: Request): Promise<Response>;
|
|
142
158
|
/** Null when the tenant's builder holds no record of that build. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-build.d.ts","sourceRoot":"","sources":["../src/source-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,gBAAgB,QAAmB,CAAC;AACjD,eAAO,MAAM,gBAAgB,QAAS,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,sBAAsB,4MACwK,CAAC;AAE5M,wFAAwF;AACxF,eAAO,MAAM,UAAU,aAItB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED,eAAO,MAAM,UAAU;;;;kBAIZ,CAAC;AAEZ,eAAO,MAAM,cAAc;;;;;;;kBAw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AM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACzF,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChE,oEAAoE;IACpE,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC7E,gHAAgH;IAChH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACjE"}
|
package/dist/source-build.js
CHANGED
|
@@ -90,4 +90,14 @@ export const sourceBuildRecord = z.object({
|
|
|
90
90
|
detail: z.string().optional(),
|
|
91
91
|
interruption: z.string().optional(),
|
|
92
92
|
});
|
|
93
|
+
/**
|
|
94
|
+
* The packages a hosted build runs with (#3503). A source build runs the CLI and contracts the
|
|
95
|
+
* builder was deployed with, never the ones in the commit it builds, so what the build decides —
|
|
96
|
+
* the compatibility date, the platform entry, the push gates — is theirs. A deploy that must be
|
|
97
|
+
* built by the release it ships compares these with its own checkout before it pushes.
|
|
98
|
+
*/
|
|
99
|
+
export const sourceBuilderToolchain = z.object({
|
|
100
|
+
cli: z.string().min(1),
|
|
101
|
+
contracts: z.string().min(1),
|
|
102
|
+
});
|
|
93
103
|
//# sourceMappingURL=source-build.js.map
|
package/dist/source-build.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-build.js","sourceRoot":"","sources":["../src/source-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACjD,MAA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MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;KAC1H,CAAC,CAAC;IACH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAGH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC,CAAC"}
|
|
@@ -29,7 +29,9 @@ export type VerticalConnectorField = z.infer<typeof verticalConnectorField>;
|
|
|
29
29
|
* The static half of one `defineConnectors` entry (§5.1), as the push manifest carries it.
|
|
30
30
|
*
|
|
31
31
|
* `sweeps`, `binds` and `dispatches` say which optional hooks the code supplies. The probes are
|
|
32
|
-
* mandatory, so they carry no flag. `
|
|
32
|
+
* mandatory, so they carry no flag. `sweepsConnection` (#3376) says the code also sweeps a whole
|
|
33
|
+
* connection in one call (`sweep-connection`); it is optional and present only when true, so a
|
|
34
|
+
* manifest without it reads as it did before the field existed, and it implies `sweeps`. `dispatches` is true exactly when `events` routes something:
|
|
33
35
|
* a routed event with no handler would fail every delivery, and a handler nothing routes to is
|
|
34
36
|
* dead code the declaration should not advertise.
|
|
35
37
|
*/
|
|
@@ -48,6 +50,7 @@ export declare const verticalConnectorDeclaration: z.ZodObject<{
|
|
|
48
50
|
grants: z.ZodArray<z.core.$ZodBranded<z.ZodString, "PermissionKey", "out">>;
|
|
49
51
|
events: z.ZodArray<z.ZodString>;
|
|
50
52
|
sweeps: z.ZodBoolean;
|
|
53
|
+
sweepsConnection: z.ZodOptional<z.ZodLiteral<true>>;
|
|
51
54
|
binds: z.ZodBoolean;
|
|
52
55
|
dispatches: z.ZodBoolean;
|
|
53
56
|
}, z.core.$strict>;
|
|
@@ -67,12 +70,16 @@ export declare const verticalConnectorDeclarations: z.ZodArray<z.ZodObject<{
|
|
|
67
70
|
grants: z.ZodArray<z.core.$ZodBranded<z.ZodString, "PermissionKey", "out">>;
|
|
68
71
|
events: z.ZodArray<z.ZodString>;
|
|
69
72
|
sweeps: z.ZodBoolean;
|
|
73
|
+
sweepsConnection: z.ZodOptional<z.ZodLiteral<true>>;
|
|
70
74
|
binds: z.ZodBoolean;
|
|
71
75
|
dispatches: z.ZodBoolean;
|
|
72
76
|
}, z.core.$strict>>;
|
|
73
77
|
/** The platform-surface route the platform calls a vertical's connector through (§6.3). */
|
|
74
78
|
export declare const CONNECTOR_CALL_PATH = "/internal/connector-call";
|
|
75
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* The route the connection-level roles (`probe`, `probe-candidate`, `sweep-connection`) take: no
|
|
81
|
+
* scope, no nonce (§6.3). None of them reaches a scope or writes anything in the vertical.
|
|
82
|
+
*/
|
|
76
83
|
export declare const CONNECTOR_PROBE_PATH = "/internal/connector-probe";
|
|
77
84
|
/** State per call, serialised, in and out (§6.2). */
|
|
78
85
|
export declare const CONNECTOR_CALL_STATE_MAX_BYTES: number;
|
|
@@ -80,6 +87,14 @@ export declare const CONNECTOR_CALL_STATE_MAX_BYTES: number;
|
|
|
80
87
|
export declare const CONNECTOR_CALL_STATE_MAX_KEYS = 2000;
|
|
81
88
|
/** Recorded uses one call may report. */
|
|
82
89
|
export declare const CONNECTOR_CALL_MAX_USES = 100;
|
|
90
|
+
/** Bindings one `sweep-connection` call carries (#3376). A connection with more is swept per binding. */
|
|
91
|
+
export declare const CONNECTOR_CONNECTION_SWEEP_MAX_BINDINGS = 100;
|
|
92
|
+
/** Landing inputs one `sweep-connection` answer may carry, across every scope (#3376). More waits for `more`. */
|
|
93
|
+
export declare const CONNECTOR_CONNECTION_SWEEP_MAX_LANDS = 500;
|
|
94
|
+
/** The roles that serve no scope and change nothing in the vertical: the probe path's (§6.3). */
|
|
95
|
+
export declare const CONNECTION_LEVEL_CONNECTOR_ROLES: readonly ['probe-candidate', 'probe', 'sweep-connection'];
|
|
96
|
+
export type ConnectionLevelConnectorRole = (typeof CONNECTION_LEVEL_CONNECTOR_ROLES)[number];
|
|
97
|
+
export declare function isConnectionLevelConnectorRole(role: string): role is ConnectionLevelConnectorRole;
|
|
83
98
|
/** The connector-state key the platform keeps a scope's binding under (§6.1). */
|
|
84
99
|
export declare const VERTICAL_CONNECTOR_BINDING_PREFIX = "vc:binding:";
|
|
85
100
|
/** The connector-state prefix the vertical's own state lives under (§6.2). */
|
|
@@ -200,6 +215,30 @@ export declare const connectorCallRequest: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
200
215
|
key: z.ZodString;
|
|
201
216
|
value: z.ZodUnknown;
|
|
202
217
|
}, z.core.$strict>>;
|
|
218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
+
role: z.ZodLiteral<"sweep-connection">;
|
|
220
|
+
provider: z.ZodString;
|
|
221
|
+
connection: z.ZodObject<{
|
|
222
|
+
id: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
|
|
223
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
224
|
+
vertical: z.ZodString;
|
|
225
|
+
provider: z.ZodString;
|
|
226
|
+
externalAccountRef: z.ZodNullable<z.ZodString>;
|
|
227
|
+
expiresAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
|
|
228
|
+
secret: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
231
|
+
scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
232
|
+
operation: z.ZodString;
|
|
233
|
+
permission: z.core.$ZodBranded<z.ZodString, "PermissionKey", "out">;
|
|
234
|
+
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
235
|
+
declared: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
236
|
+
boundAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
|
|
237
|
+
}, z.core.$strict>>;
|
|
238
|
+
state: z.ZodArray<z.ZodObject<{
|
|
239
|
+
key: z.ZodString;
|
|
240
|
+
value: z.ZodUnknown;
|
|
241
|
+
}, z.core.$strict>>;
|
|
203
242
|
}, z.core.$strict>, z.ZodObject<{
|
|
204
243
|
role: z.ZodLiteral<"dispatch">;
|
|
205
244
|
provider: z.ZodString;
|
|
@@ -342,6 +381,30 @@ export declare const connectorScriptCallRequest: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
342
381
|
key: z.ZodString;
|
|
343
382
|
value: z.ZodUnknown;
|
|
344
383
|
}, z.core.$strict>>;
|
|
384
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
385
|
+
role: z.ZodLiteral<"sweep-connection">;
|
|
386
|
+
provider: z.ZodString;
|
|
387
|
+
connection: z.ZodObject<{
|
|
388
|
+
id: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
|
|
389
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
390
|
+
vertical: z.ZodString;
|
|
391
|
+
provider: z.ZodString;
|
|
392
|
+
externalAccountRef: z.ZodNullable<z.ZodString>;
|
|
393
|
+
expiresAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
|
|
394
|
+
secret: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
395
|
+
}, z.core.$strict>;
|
|
396
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
397
|
+
scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
398
|
+
operation: z.ZodString;
|
|
399
|
+
permission: z.core.$ZodBranded<z.ZodString, "PermissionKey", "out">;
|
|
400
|
+
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
401
|
+
declared: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
402
|
+
boundAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
|
|
403
|
+
}, z.core.$strict>>;
|
|
404
|
+
state: z.ZodArray<z.ZodObject<{
|
|
405
|
+
key: z.ZodString;
|
|
406
|
+
value: z.ZodUnknown;
|
|
407
|
+
}, z.core.$strict>>;
|
|
345
408
|
}, z.core.$strict>, z.ZodObject<{
|
|
346
409
|
role: z.ZodLiteral<"dispatch">;
|
|
347
410
|
provider: z.ZodString;
|
|
@@ -457,6 +520,25 @@ export declare const connectorSweepResult: z.ZodObject<{
|
|
|
457
520
|
more: z.ZodBoolean;
|
|
458
521
|
}, z.core.$strip>;
|
|
459
522
|
export type ConnectorSweepResult = z.infer<typeof connectorSweepResult>;
|
|
523
|
+
/**
|
|
524
|
+
* `result` of a `sweep-connection` call (#3376): per bound scope, the inputs the platform lands through
|
|
525
|
+
* that scope's binding operation, in order, and connection-state writes that apply only once every one
|
|
526
|
+
* of that scope's inputs landed. The answer's own `state` writes apply whenever the call succeeded, so
|
|
527
|
+
* a cursor no scope may run ahead of is a per-scope write, and a value shared by every scope (a token,
|
|
528
|
+
* a rate window) is the answer's. A scope the call carried and the result leaves out had nothing to land.
|
|
529
|
+
*/
|
|
530
|
+
export declare const connectorConnectionSweepResult: z.ZodObject<{
|
|
531
|
+
scopes: z.ZodArray<z.ZodObject<{
|
|
532
|
+
scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
533
|
+
land: z.ZodArray<z.ZodUnknown>;
|
|
534
|
+
state: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
535
|
+
key: z.ZodString;
|
|
536
|
+
value: z.ZodUnknown;
|
|
537
|
+
}, z.core.$strict>>>;
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
|
+
more: z.ZodBoolean;
|
|
540
|
+
}, z.core.$strict>;
|
|
541
|
+
export type ConnectorConnectionSweepResult = z.infer<typeof connectorConnectionSweepResult>;
|
|
460
542
|
/** `result` of a `bind` call: the options normalised, which the platform stores on the binding. */
|
|
461
543
|
export declare const connectorBindResult: z.ZodObject<{
|
|
462
544
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-connector.d.ts","sourceRoot":"","sources":["../src/vertical-connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;GASG;AAEH,yFAAyF;AACzF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,eAAO,MAAM,yBAAyB,aAGrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;kBAQxB,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"vertical-connector.d.ts","sourceRoot":"","sources":["../src/vertical-connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;GASG;AAEH,yFAAyF;AACzF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,eAAO,MAAM,yBAAyB,aAGrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;kBAQxB,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;kBAmCrC,CAAC;AACL,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAA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