@elementumai/edk 0.8.0-preview.11 → 0.8.2-alpha.5
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 +510 -324
- package/dist-sdk/src/catalog/ai-provider-models.d.ts +30 -0
- package/dist-sdk/src/catalog/ai-provider-models.js +63 -0
- package/dist-sdk/src/catalog/factories.d.ts +56 -3
- package/dist-sdk/src/catalog/factories.js +83 -4
- package/dist-sdk/src/catalog/from-authoring.js +19 -2
- package/dist-sdk/src/catalog/index.d.ts +3 -2
- package/dist-sdk/src/catalog/index.js +3 -2
- package/dist-sdk/src/catalog/org.d.ts +1 -1
- package/dist-sdk/src/catalog/org.js +134 -50
- package/dist-sdk/src/catalog/render.d.ts +13 -1
- package/dist-sdk/src/catalog/render.js +21 -4
- package/dist-sdk/src/catalog/token.js +18 -0
- package/dist-sdk/src/catalog/types.d.ts +75 -3
- package/dist-sdk/src/catalog/types.js +3 -0
- package/dist-sdk/src/core/system-fields.d.ts +2 -0
- package/dist-sdk/src/core/system-fields.js +2 -0
- package/dist-sdk/src/core/types/ai-provider.d.ts +10 -23
- package/dist-sdk/src/core/types/ai-provider.js +1 -25
- package/dist-sdk/src/core/types/app.d.ts +26 -1
- package/dist-sdk/src/engine/build/context.d.ts +58 -0
- package/dist-sdk/src/engine/build/context.js +11 -1
- package/dist-sdk/src/engine/build/source-context.d.ts +45 -0
- package/dist-sdk/src/engine/build/source-context.js +23 -0
- package/dist-sdk/src/engine/pull/context.d.ts +15 -0
- package/dist-sdk/src/engine/pull/org.d.ts +10 -0
- package/dist-sdk/src/engine/pull/org.js +34 -4
- package/dist-sdk/src/engine/tf/index.d.ts +2 -2
- package/dist-sdk/src/engine/tf/index.js +2 -2
- package/dist-sdk/src/engine/tf/labels.d.ts +54 -0
- package/dist-sdk/src/engine/tf/labels.js +75 -0
- package/dist-sdk/src/engine/tf/parse.d.ts +15 -0
- package/dist-sdk/src/engine/tf/parse.js +162 -0
- package/dist-sdk/src/entities/access-policy/build.d.ts +26 -0
- package/dist-sdk/src/entities/access-policy/build.js +7 -0
- package/dist-sdk/src/entities/access-policy/filter.d.ts +61 -0
- package/dist-sdk/src/entities/access-policy/filter.js +83 -0
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +66 -0
- package/dist-sdk/src/entities/access-policy/from-tf.js +187 -0
- package/dist-sdk/src/entities/access-policy/module.d.ts +3 -0
- package/dist-sdk/src/entities/access-policy/module.js +17 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +43 -0
- package/dist-sdk/src/entities/access-policy/to-tf.js +164 -0
- package/dist-sdk/src/entities/access-policy/types.d.ts +4 -0
- package/dist-sdk/src/entities/access-policy/types.js +10 -0
- package/dist-sdk/src/entities/agent/build.d.ts +2 -0
- package/dist-sdk/src/entities/agent/build.js +1 -0
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +38 -3
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +257 -32
- package/dist-sdk/src/entities/agent/from-tf.d.ts +29 -9
- package/dist-sdk/src/entities/agent/from-tf.js +146 -19
- package/dist-sdk/src/entities/agent/index.d.ts +1 -1
- package/dist-sdk/src/entities/agent/module.js +14 -4
- package/dist-sdk/src/entities/agent/to-tf.d.ts +46 -1
- package/dist-sdk/src/entities/agent/to-tf.js +160 -14
- package/dist-sdk/src/entities/agent/tools.d.ts +88 -9
- package/dist-sdk/src/entities/agent/tools.js +46 -7
- package/dist-sdk/src/entities/agent-a2a-skill/from-tf.d.ts +17 -0
- package/dist-sdk/src/entities/agent-a2a-skill/from-tf.js +64 -0
- package/dist-sdk/src/entities/agent-a2a-skill/module.d.ts +4 -0
- package/dist-sdk/src/entities/agent-a2a-skill/module.js +14 -0
- package/dist-sdk/src/entities/agent-a2a-skill/to-tf.d.ts +40 -0
- package/dist-sdk/src/entities/agent-a2a-skill/to-tf.js +47 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +51 -4
- package/dist-sdk/src/entities/agent-tool/from-tf.js +131 -35
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +11 -4
- package/dist-sdk/src/entities/agent-tool/to-tf.js +176 -30
- package/dist-sdk/src/entities/agent-tool/types.d.ts +5 -4
- package/dist-sdk/src/entities/agent-tool/types.js +38 -6
- package/dist-sdk/src/entities/app/build.d.ts +91 -13
- package/dist-sdk/src/entities/app/build.js +63 -5
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +3 -0
- package/dist-sdk/src/entities/app/from-tf.d.ts +1 -1
- package/dist-sdk/src/entities/app/from-tf.js +32 -22
- package/dist-sdk/src/entities/app/index.d.ts +4 -1
- package/dist-sdk/src/entities/app/index.js +2 -1
- package/dist-sdk/src/entities/app/module.js +10 -2
- package/dist-sdk/src/entities/app/to-tf.d.ts +5 -0
- package/dist-sdk/src/entities/app/to-tf.js +45 -4
- package/dist-sdk/src/entities/automation/build.d.ts +57 -13
- package/dist-sdk/src/entities/automation/build.js +62 -42
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +25 -8
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +16 -1
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +206 -47
- package/dist-sdk/src/entities/automation/filter.d.ts +37 -3
- package/dist-sdk/src/entities/automation/filter.js +54 -3
- package/dist-sdk/src/entities/automation/from-tf.d.ts +26 -27
- package/dist-sdk/src/entities/automation/from-tf.js +1344 -222
- package/dist-sdk/src/entities/automation/index.d.ts +4 -0
- package/dist-sdk/src/entities/automation/index.js +4 -0
- package/dist-sdk/src/entities/automation/module.js +29 -32
- package/dist-sdk/src/entities/automation/operators.d.ts +29 -2
- package/dist-sdk/src/entities/automation/operators.js +27 -1
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +19 -0
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +24 -0
- package/dist-sdk/src/entities/automation/script-code.d.ts +10 -21
- package/dist-sdk/src/entities/automation/script-code.js +272 -5
- package/dist-sdk/src/entities/automation/tasks.d.ts +125 -19
- package/dist-sdk/src/entities/automation/tasks.js +83 -15
- package/dist-sdk/src/entities/automation/to-tf.d.ts +10 -29
- package/dist-sdk/src/entities/automation/to-tf.js +1291 -230
- package/dist-sdk/src/entities/automation/triggers.d.ts +9 -1
- package/dist-sdk/src/entities/automation/types.d.ts +29 -4
- package/dist-sdk/src/entities/automation/types.js +76 -46
- package/dist-sdk/src/entities/element/build.d.ts +44 -13
- package/dist-sdk/src/entities/element/build.js +45 -3
- package/dist-sdk/src/entities/element/from-tf.d.ts +1 -1
- package/dist-sdk/src/entities/element/from-tf.js +28 -14
- package/dist-sdk/src/entities/element/index.d.ts +4 -1
- package/dist-sdk/src/entities/element/index.js +2 -1
- package/dist-sdk/src/entities/element/module.js +4 -1
- package/dist-sdk/src/entities/element/to-tf.js +26 -3
- package/dist-sdk/src/entities/field/build.d.ts +61 -14
- package/dist-sdk/src/entities/field/build.js +10 -0
- package/dist-sdk/src/entities/field/calc/runtime.js +4 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +5 -3
- package/dist-sdk/src/entities/field/from-tf.js +118 -7
- package/dist-sdk/src/entities/field/module.js +3 -2
- package/dist-sdk/src/entities/field/to-tf.d.ts +46 -11
- package/dist-sdk/src/entities/field/to-tf.js +166 -17
- package/dist-sdk/src/entities/field/types.d.ts +26 -0
- package/dist-sdk/src/entities/field/types.js +34 -12
- package/dist-sdk/src/entities/file-reader/build.d.ts +108 -50
- package/dist-sdk/src/entities/file-reader/build.js +23 -23
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +6 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +109 -0
- package/dist-sdk/src/entities/file-reader/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/file-reader/from-tf.js +172 -0
- package/dist-sdk/src/entities/file-reader/index.d.ts +8 -3
- package/dist-sdk/src/entities/file-reader/index.js +7 -2
- package/dist-sdk/src/entities/file-reader/module.d.ts +3 -0
- package/dist-sdk/src/entities/file-reader/module.js +115 -0
- package/dist-sdk/src/entities/file-reader/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/file-reader/to-tf.js +84 -0
- package/dist-sdk/src/entities/file-reader/types.d.ts +32 -0
- package/dist-sdk/src/entities/file-reader/types.js +30 -0
- package/dist-sdk/src/entities/org/ai-provider.d.ts +13 -0
- package/dist-sdk/src/entities/org/ai-provider.js +46 -0
- package/dist-sdk/src/entities/org/connector.d.ts +8 -1
- package/dist-sdk/src/entities/org/connector.js +12 -14
- package/dist-sdk/src/entities/org/group.js +10 -1
- package/dist-sdk/src/entities/org/index.d.ts +1 -0
- package/dist-sdk/src/entities/org/index.js +1 -0
- package/dist-sdk/src/entities/org/user.js +10 -1
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +59 -9
- package/dist-sdk/src/entities/shared/filters/types.d.ts +1 -1
- package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +17 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.js +46 -0
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +10 -1
- package/dist-sdk/src/entities/shared/types/field-types.js +9 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +19 -0
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +128 -11
- package/dist-sdk/src/entities/skill/from-tf.js +4 -3
- package/dist-sdk/src/entities/skill/index.d.ts +1 -1
- package/dist-sdk/src/entities/skill/module.js +7 -1
- package/dist-sdk/src/entities/skill/to-tf.d.ts +26 -0
- package/dist-sdk/src/entities/skill/to-tf.js +65 -4
- package/dist-sdk/src/entities/skill/tools.d.ts +37 -8
- package/dist-sdk/src/entities/skill/tools.js +43 -1
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +34 -4
- package/dist-sdk/src/entities/skill-tool/from-tf.js +128 -18
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +13 -1
- package/dist-sdk/src/entities/skill-tool/to-tf.js +164 -25
- package/dist-sdk/src/entities/skill-tool/types.d.ts +5 -7
- package/dist-sdk/src/entities/skill-tool/types.js +47 -11
- package/dist-sdk/src/entities/view/from-tf.d.ts +6 -2
- package/dist-sdk/src/entities/view/from-tf.js +11 -9
- package/dist-sdk/src/entities/view/to-tf.d.ts +9 -7
- package/dist-sdk/src/entities/view/to-tf.js +39 -18
- package/dist-sdk/src/entities/view/types.d.ts +1 -1
- package/dist-sdk/src/entities/view/types.js +1 -1
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +0 -5
- package/dist-sdk/src/graph/deferred-catalog-render.js +1 -20
- package/dist-sdk/src/graph/index.d.ts +8 -0
- package/dist-sdk/src/graph/index.js +13 -9
- package/dist-sdk/src/graph/modules.js +8 -1
- package/dist-sdk/src/graph/types.d.ts +98 -4
- package/package.json +49 -16
- package/dist-sdk/src/entities/automation/value-ref-tf.d.ts +0 -76
- package/dist-sdk/src/entities/automation/value-ref-tf.js +0 -190
|
@@ -17,7 +17,7 @@ export const LIST_VIEW_RESOURCE_TYPE = "elementum_list_view";
|
|
|
17
17
|
export const MANAGED_VIEW_ORDER_RESOURCE_TYPE = "elementum_managed_view_order";
|
|
18
18
|
/**
|
|
19
19
|
* Layout section `type` discriminator: authoring camelCase ↔ the provider's
|
|
20
|
-
* wire value, verified against `
|
|
20
|
+
* wire value, verified against `provider/internal/provider/layout_resource.go`
|
|
21
21
|
* (the schema's own embedded doc table). Only `group` carries
|
|
22
22
|
* `name`/`icon`/`color`/`field_ids`; `update` additionally takes an optional
|
|
23
23
|
* `name`; the rest are bare component sections.
|
|
@@ -7,8 +7,3 @@ import type { CatalogRenderArgs, CatalogRenderResult } from "./types.js";
|
|
|
7
7
|
export declare function renderDeferredNamedEntry(factoryName: string, opts?: {
|
|
8
8
|
readonly omitParent?: boolean;
|
|
9
9
|
}): (args: CatalogRenderArgs) => CatalogRenderResult;
|
|
10
|
-
/**
|
|
11
|
-
* Document model with optional inline `fields` bag — mirrors the former
|
|
12
|
-
* catalog/render.ts dialect.
|
|
13
|
-
*/
|
|
14
|
-
export declare function renderDocumentModelEntry(args: CatalogRenderArgs): CatalogRenderResult;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Catalog renderEntry for kinds not yet registered as EntityKindModules.
|
|
3
3
|
* Moves onto each kind's CatalogFacet when its module lands.
|
|
4
4
|
*/
|
|
5
|
-
import { asNamedRef, namedFactoryEntry,
|
|
5
|
+
import { asNamedRef, namedFactoryEntry, } from "../catalog/render-helpers.js";
|
|
6
6
|
/** Simple `{ name }` / optional parent — flow, approvalChain, nested stubs. */
|
|
7
7
|
export function renderDeferredNamedEntry(factoryName, opts) {
|
|
8
8
|
return (args) => {
|
|
@@ -16,22 +16,3 @@ export function renderDeferredNamedEntry(factoryName, opts) {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Document model with optional inline `fields` bag — mirrors the former
|
|
21
|
-
* catalog/render.ts dialect.
|
|
22
|
-
*/
|
|
23
|
-
export function renderDocumentModelEntry(args) {
|
|
24
|
-
const ref = args.ref;
|
|
25
|
-
const fieldKeys = Object.keys(ref.fields ?? {}).sort();
|
|
26
|
-
const head = `${args.baseIndent}${safeCatalogKey(args.keyName)}: documentModelRef({ name: ${JSON.stringify(ref.name)}`;
|
|
27
|
-
if (fieldKeys.length === 0) {
|
|
28
|
-
return { lines: [`${head} }),`] };
|
|
29
|
-
}
|
|
30
|
-
const lines = [`${head},`, `${args.baseIndent} fields: {`];
|
|
31
|
-
for (const key of fieldKeys) {
|
|
32
|
-
const field = ref.fields[key];
|
|
33
|
-
lines.push(`${args.baseIndent} ${safeCatalogKey(key)}: documentModelFieldRef({ name: ${JSON.stringify(field.name)}, parent: ${JSON.stringify(field.parent ?? "")} }),`);
|
|
34
|
-
}
|
|
35
|
-
lines.push(`${args.baseIndent} },`, `${args.baseIndent}}),`);
|
|
36
|
-
return { lines, extraFactories: ["documentModelFieldRef"] };
|
|
37
|
-
}
|
|
@@ -19,6 +19,14 @@ export declare const DATA_FACET_MODULES: readonly EntityKindModule[];
|
|
|
19
19
|
export declare const DATA_FACET_BY_TYPE: ReadonlyMap<string, EntityKindModule>;
|
|
20
20
|
/** Org identity bags written by `edk pull org` (data.orgBag set). */
|
|
21
21
|
export declare const ORG_IDENTITY_BAGS: readonly EntityKindModule[];
|
|
22
|
+
/**
|
|
23
|
+
* `defineAiProvider({ type })` identifiers → their terraform resource type —
|
|
24
|
+
* one entry per `ai-provider-*` kind, derived from the kind id so authored
|
|
25
|
+
* source never has to name a resource type directly.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AI_PROVIDER_RESOURCE_TYPE_BY_TYPE: ReadonlyMap<string, string>;
|
|
28
|
+
/** Reverse of {@link AI_PROVIDER_RESOURCE_TYPE_BY_TYPE} — resourceType → public `type`. */
|
|
29
|
+
export declare const AI_PROVIDER_TYPE_BY_RESOURCE_TYPE: ReadonlyMap<string, string>;
|
|
22
30
|
/** Backward-compatible metadata view derived from the graph. */
|
|
23
31
|
export declare const RESOURCE_KIND_MODULES: readonly ResourceKindModule[];
|
|
24
32
|
/** Resource types the §6 adoption gates import. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Public graph barrel: KIND_MODULES + derived views for pull/build/canvas.
|
|
3
3
|
*/
|
|
4
|
-
import { renderDeferredNamedEntry
|
|
4
|
+
import { renderDeferredNamedEntry } from "./deferred-catalog-render.js";
|
|
5
5
|
import { KIND_MODULES } from "./modules.js";
|
|
6
6
|
import { implementedResourceTypes, isResourceAdoptable, isTfLive, knownResourceTypes, matchType, singleResourceType, } from "./types.js";
|
|
7
7
|
export { NO_CANVAS, NO_CATALOG, NO_DATA, NO_LIFECYCLE, defaultMatchResourceType, implementedResourceTypes, isResourceAdoptable, isTfLive, knownResourceTypes, matchType, singleResourceType, } from "./types.js";
|
|
@@ -22,6 +22,18 @@ export const DATA_FACET_BY_TYPE = (() => {
|
|
|
22
22
|
})();
|
|
23
23
|
/** Org identity bags written by `edk pull org` (data.orgBag set). */
|
|
24
24
|
export const ORG_IDENTITY_BAGS = DATA_FACET_MODULES.filter((m) => m.data.participates && m.data.orgBag !== undefined);
|
|
25
|
+
const AI_PROVIDER_KIND_PREFIX = "ai-provider-";
|
|
26
|
+
/**
|
|
27
|
+
* `defineAiProvider({ type })` identifiers → their terraform resource type —
|
|
28
|
+
* one entry per `ai-provider-*` kind, derived from the kind id so authored
|
|
29
|
+
* source never has to name a resource type directly.
|
|
30
|
+
*/
|
|
31
|
+
export const AI_PROVIDER_RESOURCE_TYPE_BY_TYPE = new Map(ORG_IDENTITY_BAGS.filter((m) => m.kind.startsWith(AI_PROVIDER_KIND_PREFIX)).flatMap((m) => {
|
|
32
|
+
const resourceType = singleResourceType(m);
|
|
33
|
+
return resourceType === undefined ? [] : [[m.kind.slice(AI_PROVIDER_KIND_PREFIX.length), resourceType]];
|
|
34
|
+
}));
|
|
35
|
+
/** Reverse of {@link AI_PROVIDER_RESOURCE_TYPE_BY_TYPE} — resourceType → public `type`. */
|
|
36
|
+
export const AI_PROVIDER_TYPE_BY_RESOURCE_TYPE = new Map([...AI_PROVIDER_RESOURCE_TYPE_BY_TYPE].map(([type, resourceType]) => [resourceType, type]));
|
|
25
37
|
/** Backward-compatible metadata view derived from the graph. */
|
|
26
38
|
export const RESOURCE_KIND_MODULES = KIND_MODULES.filter(isTfLive).map((m) => ({
|
|
27
39
|
kind: m.kind,
|
|
@@ -141,14 +153,6 @@ const DEFERRED_CATALOG_META = [
|
|
|
141
153
|
factoryName: "approvalChainRef",
|
|
142
154
|
renderEntry: renderDeferredNamedEntry("approvalChainRef"),
|
|
143
155
|
},
|
|
144
|
-
{
|
|
145
|
-
refKind: "documentModel",
|
|
146
|
-
catalogBag: "fileReaders",
|
|
147
|
-
renderOrder: 55,
|
|
148
|
-
catalogRoot: "app",
|
|
149
|
-
factoryName: "documentModelRef",
|
|
150
|
-
renderEntry: renderDocumentModelEntry,
|
|
151
|
-
},
|
|
152
156
|
{
|
|
153
157
|
refKind: "tableColumn",
|
|
154
158
|
catalogBag: "columns",
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
* KIND_MODULES assembly — the only place that imports concrete entity
|
|
3
3
|
* modules. Engine code imports derived views from {@link ./index.js}.
|
|
4
4
|
*/
|
|
5
|
+
import { accessPolicyModule } from "../entities/access-policy/module.js";
|
|
5
6
|
import { agentModule } from "../entities/agent/module.js";
|
|
7
|
+
import { agentA2ASkillModule } from "../entities/agent-a2a-skill/module.js";
|
|
6
8
|
import { agentToolModule } from "../entities/agent-tool/module.js";
|
|
7
9
|
import { appModule } from "../entities/app/module.js";
|
|
8
10
|
import { automationModule } from "../entities/automation/module.js";
|
|
9
11
|
import { elementModule } from "../entities/element/module.js";
|
|
10
12
|
import { fieldModule } from "../entities/field/module.js";
|
|
11
|
-
import {
|
|
13
|
+
import { fileReaderModule } from "../entities/file-reader/module.js";
|
|
14
|
+
import { aiProviderModules, categoryModule, cloudLinkModule, connectorModule, groupModule, roleModule, userModule, } from "../entities/org/index.js";
|
|
12
15
|
import { searchTableModule } from "../entities/search-table/module.js";
|
|
13
16
|
import { skillModule } from "../entities/skill/module.js";
|
|
14
17
|
import { skillToolModule } from "../entities/skill-tool/module.js";
|
|
@@ -19,9 +22,12 @@ export const KIND_MODULES = [
|
|
|
19
22
|
appModule,
|
|
20
23
|
elementModule,
|
|
21
24
|
fieldModule,
|
|
25
|
+
accessPolicyModule,
|
|
22
26
|
agentModule,
|
|
23
27
|
agentToolModule,
|
|
28
|
+
agentA2ASkillModule,
|
|
24
29
|
automationModule,
|
|
30
|
+
fileReaderModule,
|
|
25
31
|
viewModule,
|
|
26
32
|
managedViewOrderModule,
|
|
27
33
|
skillModule,
|
|
@@ -31,6 +37,7 @@ export const KIND_MODULES = [
|
|
|
31
37
|
cloudLinkModule,
|
|
32
38
|
categoryModule,
|
|
33
39
|
connectorModule,
|
|
40
|
+
...aiProviderModules,
|
|
34
41
|
groupModule,
|
|
35
42
|
roleModule,
|
|
36
43
|
userModule,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { DeployableEntity } from "../engine/entity.js";
|
|
10
10
|
import type { FromTfContext } from "../engine/pull/context.js";
|
|
11
|
-
import type { TfBlock } from "../engine/tf/index.js";
|
|
12
|
-
export type KindId = "org" | "app" | "element" | "field" | "agent" | "agent-tool" | "automation" | "skill" | "skill-tool" | "view" | "managed-view-order" | "search-table" | "table" | "cloud-link" | "category" | "connector" | "group" | "role" | "user";
|
|
11
|
+
import type { ChildResourceScope, TfBlock } from "../engine/tf/index.js";
|
|
12
|
+
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-tool" | "agent-a2a-skill" | "automation" | "file-reader" | "skill" | "skill-tool" | "view" | "managed-view-order" | "search-table" | "table" | "cloud-link" | "category" | "connector" | "ai-provider-anthropic" | "ai-provider-bedrock" | "ai-provider-custom" | "ai-provider-deepgram" | "ai-provider-elevenlab" | "ai-provider-gemini" | "ai-provider-openai" | "ai-provider-snowflake" | "ai-provider-xai" | "ai-provider-managed" | "group" | "role" | "user";
|
|
13
13
|
/** @deprecated Use {@link KindId}. */
|
|
14
14
|
export type EntityKindId = KindId;
|
|
15
15
|
export type StreamFacet = {
|
|
@@ -76,8 +76,8 @@ export type ResourceFacet = {
|
|
|
76
76
|
/** How a resource type belonging to this kind participates in stream partition. */
|
|
77
77
|
export type StreamMatch = "extract" | "family" | "reported";
|
|
78
78
|
/** Catalog kinds used by org identity data facets. */
|
|
79
|
-
export type DataFacetCatalogKind = "cloudLink" | "category" | "connector" | "group";
|
|
80
|
-
export type OrgIdentityBag = "cloudLinks" | "categories" | "connectors" | "groups";
|
|
79
|
+
export type DataFacetCatalogKind = "cloudLink" | "category" | "connector" | "group" | "aiProvider";
|
|
80
|
+
export type OrgIdentityBag = "cloudLinks" | "categories" | "connectors" | "groups" | "aiProviders";
|
|
81
81
|
/**
|
|
82
82
|
* Kind can be materialized as a data lookup / interface (not adopted), or
|
|
83
83
|
* {@link NO_DATA} when it does not participate.
|
|
@@ -91,6 +91,15 @@ export type DataFacet = {
|
|
|
91
91
|
readonly catalogKind?: DataFacetCatalogKind;
|
|
92
92
|
/** If set, pull org writes identities into org.ts under this property. */
|
|
93
93
|
readonly orgBag?: OrgIdentityBag;
|
|
94
|
+
/**
|
|
95
|
+
* Attribute that's a `data-attr` reference to this identity's owner
|
|
96
|
+
* (connector's `provider_id` → the owning `elementum_<type>_ai_provider`
|
|
97
|
+
* block) rather than a plain string — read as a TfExpr, not via
|
|
98
|
+
* `requireStringAttr`. A bag can span multiple resource types (10
|
|
99
|
+
* distinct `elementum_<type>_ai_provider` types share `orgBag:
|
|
100
|
+
* "aiProviders"`), so the referenced type isn't known until read.
|
|
101
|
+
*/
|
|
102
|
+
readonly providerRefAttr?: string;
|
|
94
103
|
};
|
|
95
104
|
/** Null-object data facet — kind is not a data lookup. */
|
|
96
105
|
export declare const NO_DATA: DataFacet;
|
|
@@ -199,12 +208,83 @@ export interface PrintedOwnFile {
|
|
|
199
208
|
export interface PrintOwnFileOptions {
|
|
200
209
|
readonly appRefName: string;
|
|
201
210
|
readonly orgImportPath: string;
|
|
211
|
+
/**
|
|
212
|
+
* Set by `edk clone app --target-root` when the destination org differs
|
|
213
|
+
* from the source: org-identity references (connectors, cloud links, …)
|
|
214
|
+
* resolved against the SOURCE org's catalog are meaningless in the
|
|
215
|
+
* destination, so printers degrade them to a flagged TODO token instead of
|
|
216
|
+
* the resolved reference, for manual review — same pattern already used
|
|
217
|
+
* for a structurally-unresolved reference, just triggered unconditionally.
|
|
218
|
+
*/
|
|
219
|
+
readonly crossOrg?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* The destination org's connector compound keys (cross-org only), each
|
|
222
|
+
* `"<provider>.<model>"` — since both halves are deterministically derived
|
|
223
|
+
* from display names (`src/engine/tf/labels.ts`), a key present in both
|
|
224
|
+
* orgs means both orgs have that same provider/model pair. When set and
|
|
225
|
+
* the source's `connectorKey` is a member, printers use it directly
|
|
226
|
+
* instead of degrading to a TODO.
|
|
227
|
+
*/
|
|
228
|
+
readonly destinationConnectorKeys?: ReadonlySet<string>;
|
|
229
|
+
/**
|
|
230
|
+
* A destination-org connector compound key (`"<provider>.<model>"`) the
|
|
231
|
+
* caller already confirmed — `edk clone app --target-root` prompts the
|
|
232
|
+
* user interactively when a connector (or the total absence of one) has
|
|
233
|
+
* no automatic match, instead of always degrading to a `TODO_CONNECTOR`
|
|
234
|
+
* placeholder. Consumed today only by the agent printer; harmless
|
|
235
|
+
* (ignored) for other own-file kinds.
|
|
236
|
+
*/
|
|
237
|
+
readonly connectorKeyOverride?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Name → refName for every app already on disk in this workspace
|
|
240
|
+
* (board issue #40). A tool/skillAccess `aspect`/foreign-app reference
|
|
241
|
+
* whose name is a key here has that dependency actually pulled locally —
|
|
242
|
+
* printers use `catalog.<refName>` instead of the always-safe
|
|
243
|
+
* `{ __kind: "app", refName: name, name }` literal stub. Absent (or a
|
|
244
|
+
* miss) falls back to the stub exactly as before.
|
|
245
|
+
*/
|
|
246
|
+
readonly foreignAppRefNames?: ReadonlyMap<string, string>;
|
|
247
|
+
/**
|
|
248
|
+
* Same as {@link foreignAppRefNames}, keyed for elements (board issue
|
|
249
|
+
* #42) — a `foreignElement` aspect target whose name is a key here
|
|
250
|
+
* prints `catalog.<refName>` instead of the literal stub.
|
|
251
|
+
*/
|
|
252
|
+
readonly foreignElementRefNames?: ReadonlyMap<string, string>;
|
|
253
|
+
}
|
|
254
|
+
export interface BuildFieldMetadata {
|
|
255
|
+
readonly name: string;
|
|
256
|
+
readonly fieldType: string;
|
|
257
|
+
readonly options?: readonly string[];
|
|
258
|
+
readonly tags?: readonly string[];
|
|
202
259
|
}
|
|
203
260
|
export interface BuildChildContext {
|
|
204
261
|
readonly appRefName: string;
|
|
205
262
|
readonly appTfLabel: string;
|
|
206
263
|
readonly orgRefs: unknown;
|
|
207
264
|
readonly diagnostics: string[];
|
|
265
|
+
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
266
|
+
readonly fieldNames?: ReadonlyMap<string, string>;
|
|
267
|
+
readonly fieldMetadata?: ReadonlyMap<string, BuildFieldMetadata>;
|
|
268
|
+
/** Every app/element stream root in this build, by refName (see `ToTfContext.workspaceAspects`). */
|
|
269
|
+
readonly workspaceAspects?: ReadonlyMap<string, {
|
|
270
|
+
readonly kind: ChildResourceScope;
|
|
271
|
+
readonly tfLabel: string;
|
|
272
|
+
}>;
|
|
273
|
+
/**
|
|
274
|
+
* Every own-file child entity discovered for THIS bag under the current
|
|
275
|
+
* app (self included), before any of them are emitted — e.g. every
|
|
276
|
+
* `agents/*.ts` file's entity when the current child is itself an agent.
|
|
277
|
+
* Purely a forwarded list; the engine never interprets it. Lets a kind
|
|
278
|
+
* whose terraform label formula can collide across siblings (board issue
|
|
279
|
+
* #294: two agents authoring a same-named a2a skill) replicate ei's own
|
|
280
|
+
* cross-sibling disambiguation instead of colliding or silently dropping.
|
|
281
|
+
* `skills/*.ts` file's entity when the current child is itself a skill.
|
|
282
|
+
* Purely a forwarded list; the engine never interprets it. Lets a kind
|
|
283
|
+
* whose terraform label formula can collide across siblings (board issue
|
|
284
|
+
* #310: two skills authoring a same-named tool) replicate ei's own
|
|
285
|
+
* cross-sibling disambiguation instead of emitting a colliding address.
|
|
286
|
+
*/
|
|
287
|
+
readonly siblingEntities?: readonly DeployableEntity[];
|
|
208
288
|
}
|
|
209
289
|
/** Result of extracting a stream-root kind (app, element) from a partitioned export. */
|
|
210
290
|
export interface StreamRootExtractResult {
|
|
@@ -218,6 +298,19 @@ export interface ToTfResult {
|
|
|
218
298
|
readonly blocks: readonly TfBlock[];
|
|
219
299
|
/** Present for app roots — field addresses for locals / catalog bookkeeping. */
|
|
220
300
|
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
301
|
+
readonly fieldNames?: ReadonlyMap<string, string>;
|
|
302
|
+
readonly fieldMetadata?: ReadonlyMap<string, BuildFieldMetadata>;
|
|
303
|
+
/**
|
|
304
|
+
* Own-file children only — the terraform address ("type.label") of this
|
|
305
|
+
* child's own entry-point resource (e.g. `elementum_automation.x`,
|
|
306
|
+
* `elementum_agent.x`): the one thing every other block this child emits
|
|
307
|
+
* already chains back to via a real reference (a trigger's `automation =
|
|
308
|
+
* ...`, a tool's owning agent, …). When present, build.ts attaches a
|
|
309
|
+
* `depends_on` on just this one resource covering every field on the app,
|
|
310
|
+
* so the whole child transitively waits for all fields without needing to
|
|
311
|
+
* track which of its resources actually reference which field.
|
|
312
|
+
*/
|
|
313
|
+
readonly address?: string;
|
|
221
314
|
}
|
|
222
315
|
export type LifecycleFacet = {
|
|
223
316
|
readonly participates: false;
|
|
@@ -257,6 +350,7 @@ export interface StreamPartition {
|
|
|
257
350
|
readonly reported: readonly string[];
|
|
258
351
|
readonly unknown: readonly string[];
|
|
259
352
|
readonly allResources: readonly TfBlock[];
|
|
353
|
+
readonly allBlocks: readonly TfBlock[];
|
|
260
354
|
}
|
|
261
355
|
export interface EntityKindModule {
|
|
262
356
|
readonly kind: KindId;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementumai/edk",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "Elementum Development Kit —
|
|
3
|
+
"version": "0.8.2-alpha.5",
|
|
4
|
+
"description": "Elementum Development Kit — statically typed SDK for building Elementum automations, agents, and flows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/elementum-fde/
|
|
9
|
+
"url": "git+https://github.com/elementum-fde/edk.git"
|
|
10
10
|
},
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": "24
|
|
12
|
+
"node": ">=24"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"registry": "https://registry.npmjs.org",
|
|
@@ -128,53 +128,86 @@
|
|
|
128
128
|
"sync:version": "tsx src/scripts/sync-cli-version.ts",
|
|
129
129
|
"sync:skills": "tsx src/scripts/sync-skill-assets.ts",
|
|
130
130
|
"sync:compatibility": "tsx src/scripts/sync-compatibility.ts",
|
|
131
|
+
"check:release-context": "tsx src/scripts/release-context.ts v0.0.0 HEAD >/dev/null",
|
|
132
|
+
"fetch:schema": "make -C provider fetch-schema",
|
|
133
|
+
"generate:schema": "make -C provider generate-schema",
|
|
134
|
+
"generate:graphql": "make -C provider generate-graphql",
|
|
131
135
|
"build": "npm run build:sdk",
|
|
132
136
|
"build:sdk": "rm -rf dist-sdk && tsc -p tsconfig.sdk.json",
|
|
133
137
|
"build:cli": "npm run sync:version && npm run sync:skills && npm run sync:compatibility && rm -rf dist-cli && tsc -p tsconfig.cli.json",
|
|
134
|
-
"
|
|
138
|
+
"prebuild:provider": "npm run generate:graphql",
|
|
139
|
+
"build:provider": "go -C provider build -v .",
|
|
140
|
+
"prebuild:bridge": "npm run generate:graphql",
|
|
141
|
+
"build:bridge": "mkdir -p integration/.toolchain && go -C cmd/elementum build -v -o ../../integration/.toolchain/ei .",
|
|
142
|
+
"build:go": "npm run build:provider && npm run build:bridge",
|
|
143
|
+
"build:distribution": "npm --prefix distribution run build",
|
|
144
|
+
"version": "npm run sync:version && npm run sync:skills && git add src/cli/version.ts src/cli/skills-assets.ts skills/user/*/SKILL.md",
|
|
135
145
|
"build:binary:bun": "npm run build:cli && node dist-cli/src/scripts/build-bun-binary.js",
|
|
136
146
|
"build:binary:bun:all": "npm run build:cli && node dist-cli/src/scripts/build-bun-binary.js --all",
|
|
147
|
+
"local:setup": "bash integration/local-toolchain.sh",
|
|
148
|
+
"elementum": "bash integration/tools/elementum-local.sh",
|
|
149
|
+
"local:clone": "bash integration/tools/clone-golden.sh",
|
|
137
150
|
"smoke:binary:bun": "node dist-cli/src/scripts/smoke-bun-binary.js",
|
|
138
151
|
"prepare": "husky || true",
|
|
139
152
|
"prepack": "npm run build:sdk",
|
|
140
153
|
"pack:dry-run": "npm pack --dry-run",
|
|
141
154
|
"pack:consumer": "npm run build:sdk && tsx src/scripts/test-package-consumer.ts",
|
|
142
|
-
"test": "
|
|
155
|
+
"test": "tsx src/scripts/test.ts",
|
|
156
|
+
"test:unit": "tsc --noEmit -p tsconfig.typecheck-tests.json && vitest run",
|
|
157
|
+
"check:parity": "tsx src/scripts/check-provider-parity.ts",
|
|
158
|
+
"pretest:provider": "npm run generate:graphql",
|
|
159
|
+
"test:provider": "go -C provider test -v -cover -timeout=120s -parallel=10 ./internal/...",
|
|
160
|
+
"pretest:bridge": "npm run generate:graphql",
|
|
161
|
+
"test:bridge": "go -C cmd/elementum test -v -timeout=30s ./...",
|
|
162
|
+
"test:backend-lock": "vitest run __tests__/integration/http-backend-lock.test.ts __tests__/integration/http-state-backend.test.ts",
|
|
163
|
+
"test:go": "npm run test:provider && npm run test:bridge",
|
|
164
|
+
"test:distribution": "npm --prefix distribution test",
|
|
143
165
|
"test:watch": "vitest",
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"apply": "tsx src/scripts/apply.ts",
|
|
166
|
+
"test:cli": "vitest run __tests__/cli",
|
|
167
|
+
"test:binary": "npm run build:binary:bun && npm run smoke:binary:bun",
|
|
168
|
+
"test:integration": "node integration/run.mjs",
|
|
148
169
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.examples-check.json && tsc --noEmit -p tsconfig.package-consumer-check.json",
|
|
149
170
|
"typecheck:src": "tsc --noEmit",
|
|
150
171
|
"typecheck:examples": "tsc --noEmit -p tsconfig.examples-check.json",
|
|
151
172
|
"typecheck:consumer": "tsc --noEmit -p tsconfig.package-consumer-check.json",
|
|
152
173
|
"typecheck:tests": "tsc --noEmit -p tsconfig.typecheck-tests.json",
|
|
153
|
-
"lint": "eslint src/cli src/internal/sdk-package.ts src/scripts/test-package-consumer.ts examples/package-consumer",
|
|
174
|
+
"lint": "eslint src/cli src/internal/sdk-package.ts src/scripts/prepare-release-promotion.ts src/scripts/test-package-consumer.ts examples/package-consumer",
|
|
154
175
|
"lint:all": "eslint .",
|
|
155
176
|
"lint:generated": "eslint generated/",
|
|
156
|
-
"check": "npm run typecheck && npm run lint",
|
|
177
|
+
"check": "npm run typecheck && npm run lint && npm run check:release-context",
|
|
178
|
+
"check:distribution": "npm --prefix distribution run check",
|
|
179
|
+
"verify:distribution": "npm run check:distribution && npm run test:distribution && npm run build:distribution && git diff --exit-code -- distribution/generated distribution/public/schemas",
|
|
157
180
|
"edk:canvas": "tsx --tsconfig tsconfig.examples-check.json src/scripts/edk-canvas.ts"
|
|
158
181
|
},
|
|
159
182
|
"dependencies": {
|
|
160
|
-
"jiti": "^2.7.0"
|
|
183
|
+
"jiti": "^2.7.0",
|
|
184
|
+
"semver": "^7.8.5"
|
|
161
185
|
},
|
|
162
186
|
"devDependencies": {
|
|
163
187
|
"@cdktf/hcl2json": "^0.21.0",
|
|
164
188
|
"@eslint/js": "^9.39.4",
|
|
165
189
|
"@types/node": "^25.5.2",
|
|
166
|
-
"@vercel/blob": "^2.6.1",
|
|
167
190
|
"@types/semver": "^7.8.0",
|
|
191
|
+
"@vercel/blob": "^2.6.1",
|
|
192
|
+
"ajv": "^8.20.0",
|
|
193
|
+
"ajv-formats": "^3.0.1",
|
|
168
194
|
"bun": "^1.3.14",
|
|
169
195
|
"commander": "^14.0.3",
|
|
170
196
|
"eslint": "^9.39.4",
|
|
197
|
+
"graphql": "^17.0.2",
|
|
171
198
|
"husky": "^9.1.7",
|
|
172
199
|
"openpgp": "^6.3.1",
|
|
173
|
-
"semver": "^7.8.5",
|
|
174
200
|
"tar": "^7.5.22",
|
|
175
201
|
"tsx": "^4.21.0",
|
|
176
202
|
"typescript": "^6.0.2",
|
|
177
203
|
"typescript-eslint": "^8.59.1",
|
|
178
|
-
"vitest": "^4.1.1"
|
|
204
|
+
"vitest": "^4.1.1",
|
|
205
|
+
"yaml": "^2.9.0"
|
|
206
|
+
},
|
|
207
|
+
"allowScripts": {
|
|
208
|
+
"bun@1.3.14": true,
|
|
209
|
+
"esbuild@0.27.4": true,
|
|
210
|
+
"esbuild@0.25.12": true,
|
|
211
|
+
"fsevents@2.3.3": true
|
|
179
212
|
}
|
|
180
213
|
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Value-reference codec for the automation tf dialect.
|
|
3
|
-
*
|
|
4
|
-
* The compose wire carries refs as JSON envelopes ({triggerReference},
|
|
5
|
-
* {taskReference}, {variableReference}, {templateReference}, {value}); ei's
|
|
6
|
-
* HCL dialect carries them as `refs["…"]` RESOURCE EXPRESSIONS resolved at
|
|
7
|
-
* apply — `elementum_on_demand_trigger.x.refs["STUDENT_NAME"]` — with plain
|
|
8
|
-
* literals for static values and `${…}` interpolated strings for multi-part
|
|
9
|
-
* templates (cmd/elementum/export/hcl_task.go convertToRefsSyntax). ei's
|
|
10
|
-
* exporter falls back to embedding the raw JSON (with platform ids) when it
|
|
11
|
-
* can't resolve a ref; that fallback is NOT reproduced here — build emits only
|
|
12
|
-
* the id-free refs syntax, and pull reports the JSON fallback loudly instead
|
|
13
|
-
* of guessing.
|
|
14
|
-
*
|
|
15
|
-
* refs-map KEY naming (provider sources):
|
|
16
|
-
* - on_demand trigger: the DECLARED parameter name (the authored schema key;
|
|
17
|
-
* the wire's triggerReference name is the Mobius-canonicalized form —
|
|
18
|
-
* reverse-mapped here via the declared names).
|
|
19
|
-
* - variable task: the variable_name (buildVariableTaskRefs).
|
|
20
|
-
* - execute_script: "Result" for the whole result, "result.<prop>" per
|
|
21
|
-
* output-schema property.
|
|
22
|
-
*/
|
|
23
|
-
import { type TfValue } from "../../engine/tf/index.js";
|
|
24
|
-
import type { RefExpr } from "./deserializer/ast.js";
|
|
25
|
-
export interface WireRefContext {
|
|
26
|
-
/** The automation's tf label (trigger blocks share it). */
|
|
27
|
-
readonly autoLabel: string;
|
|
28
|
-
/** The trigger block's resource type. */
|
|
29
|
-
readonly triggerType: string;
|
|
30
|
-
/** Declared onDemand parameter names (authored schema keys), for reverse canonicalization. */
|
|
31
|
-
readonly paramNames: readonly string[];
|
|
32
|
-
/** Task refKey → its tf resource type (implemented tasks only). */
|
|
33
|
-
readonly taskType: (refKey: string) => string | undefined;
|
|
34
|
-
/** Task refKey → the result property names its output schema declares. */
|
|
35
|
-
readonly taskResultProps: (refKey: string) => readonly string[];
|
|
36
|
-
/** Stamped variable id → its owning task refKey + variable name. */
|
|
37
|
-
readonly variableById: ReadonlyMap<string, {
|
|
38
|
-
taskRefKey: string;
|
|
39
|
-
varName: string;
|
|
40
|
-
}>;
|
|
41
|
-
}
|
|
42
|
-
export type WireRefResult = {
|
|
43
|
-
value: TfValue;
|
|
44
|
-
} | {
|
|
45
|
-
unsupported: string;
|
|
46
|
-
};
|
|
47
|
-
/** Wire ref envelope → tf attribute value (literal, refs expression, or template). */
|
|
48
|
-
export declare function wireRefToTf(ref: unknown, ctx: WireRefContext): WireRefResult;
|
|
49
|
-
/** Index the stamped variable ids in a finalized payload: id → {taskRefKey, varName}. */
|
|
50
|
-
export declare function indexVariableIds(tasks: ReadonlyArray<{
|
|
51
|
-
refKey?: string;
|
|
52
|
-
task?: Record<string, unknown>;
|
|
53
|
-
}>): Map<string, {
|
|
54
|
-
taskRefKey: string;
|
|
55
|
-
varName: string;
|
|
56
|
-
}>;
|
|
57
|
-
export interface TfRefContext {
|
|
58
|
-
/** The automation's tf label — the label-strip FALLBACK for refKey recovery. */
|
|
59
|
-
readonly autoLabel: string;
|
|
60
|
-
/** Trigger resource types (any `*_trigger`). */
|
|
61
|
-
readonly isTriggerType: (type: string) => boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Task tf label → the authored refKey (recovered from the block's `name`
|
|
64
|
-
* attribute when the label derives from it — see from-tf). Labels are
|
|
65
|
-
* snake_case by ei's labeling rule, so this is what preserves caps/spaces
|
|
66
|
-
* in task names across a pull.
|
|
67
|
-
*/
|
|
68
|
-
readonly refKeyByLabel: ReadonlyMap<string, string>;
|
|
69
|
-
}
|
|
70
|
-
export type TfRefResult = {
|
|
71
|
-
ast: RefExpr | string | number | boolean;
|
|
72
|
-
} | {
|
|
73
|
-
unsupported: string;
|
|
74
|
-
};
|
|
75
|
-
/** tf attribute value → printer AST node (inverse of wireRefToTf). */
|
|
76
|
-
export declare function tfRefToAst(value: TfValue, ctx: TfRefContext): TfRefResult;
|