@elementumai/edk 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist-sdk/src/catalog/factories.js +8 -2
- package/dist-sdk/src/catalog/types.d.ts +5 -0
- package/dist-sdk/src/engine/coverage-gaps.d.ts +2 -0
- package/dist-sdk/src/engine/coverage-gaps.js +4 -0
- package/dist-sdk/src/engine/ei/run.d.ts +8 -0
- package/dist-sdk/src/engine/ei/run.js +46 -7
- package/dist-sdk/src/engine/pull/context.d.ts +24 -0
- package/dist-sdk/src/engine/pull/stream-root.d.ts +11 -0
- package/dist-sdk/src/engine/pull/stream-root.js +22 -6
- package/dist-sdk/src/engine/workspace/authoring-layout.js +16 -2
- package/dist-sdk/src/entities/access-policy/from-tf.js +4 -7
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +2 -1
- package/dist-sdk/src/entities/agent/from-tf.d.ts +2 -0
- package/dist-sdk/src/entities/agent/from-tf.js +28 -1
- package/dist-sdk/src/entities/agent/module.js +1 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +3 -1
- package/dist-sdk/src/entities/agent/to-tf.js +21 -3
- package/dist-sdk/src/entities/app/from-tf.d.ts +1 -0
- package/dist-sdk/src/entities/app/from-tf.js +6 -23
- package/dist-sdk/src/entities/app/module.js +2 -0
- package/dist-sdk/src/entities/approval-chain/from-tf.js +2 -2
- package/dist-sdk/src/entities/automation/build.d.ts +10 -1
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1 -0
- package/dist-sdk/src/entities/automation/from-tf.js +72 -11
- package/dist-sdk/src/entities/automation/index.d.ts +1 -1
- package/dist-sdk/src/entities/automation/module.js +12 -0
- package/dist-sdk/src/entities/automation/system-ref-name.d.ts +23 -3
- package/dist-sdk/src/entities/automation/system-ref-name.js +86 -4
- package/dist-sdk/src/entities/automation/to-tf.d.ts +5 -1
- package/dist-sdk/src/entities/automation/to-tf.js +227 -27
- package/dist-sdk/src/entities/dashboard/from-tf.d.ts +3 -1
- package/dist-sdk/src/entities/dashboard/from-tf.js +42 -2
- package/dist-sdk/src/entities/dashboard/to-tf.js +9 -1
- package/dist-sdk/src/entities/dashboard-widget-order/module.d.ts +10 -0
- package/dist-sdk/src/entities/dashboard-widget-order/module.js +25 -0
- package/dist-sdk/src/entities/dashboard-widget-order/order.d.ts +31 -0
- package/dist-sdk/src/entities/dashboard-widget-order/order.js +102 -0
- package/dist-sdk/src/entities/element/from-tf.d.ts +1 -0
- package/dist-sdk/src/entities/element/from-tf.js +5 -21
- package/dist-sdk/src/entities/element/module.js +2 -0
- package/dist-sdk/src/entities/field/from-tf.d.ts +25 -2
- package/dist-sdk/src/entities/field/from-tf.js +119 -14
- package/dist-sdk/src/entities/relationship/from-tf.js +2 -2
- package/dist-sdk/src/entities/role/build.d.ts +3 -4
- package/dist-sdk/src/entities/search-table/build.d.ts +9 -3
- package/dist-sdk/src/entities/search-table/build.js +4 -4
- package/dist-sdk/src/entities/search-table/printer.js +3 -1
- package/dist-sdk/src/entities/search-table/to-tf.js +20 -2
- package/dist-sdk/src/entities/shared/context.d.ts +14 -1
- package/dist-sdk/src/entities/shared/filters/index.d.ts +24 -13
- package/dist-sdk/src/entities/shared/filters/index.js +12 -1
- package/dist-sdk/src/entities/shared/filters/print.d.ts +2 -0
- package/dist-sdk/src/entities/shared/filters/print.js +15 -6
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +4 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +16 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +4 -0
- package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +1 -1
- package/dist-sdk/src/entities/shared/tool-field-ref.js +2 -5
- package/dist-sdk/src/entities/task/from-tf.js +3 -3
- package/dist-sdk/src/entities/view/custom-view-validate.d.ts +6 -4
- package/dist-sdk/src/entities/view/custom-view-validate.js +36 -18
- package/dist-sdk/src/entities/view/from-tf.js +9 -0
- package/dist-sdk/src/entities/view/to-tf.js +66 -47
- package/dist-sdk/src/entities/visual-flow/module.js +52 -1
- package/dist-sdk/src/entities/widget/from-tf.js +6 -6
- package/dist-sdk/src/graph/index.d.ts +4 -0
- package/dist-sdk/src/graph/index.js +1 -0
- package/dist-sdk/src/graph/modules.js +2 -0
- package/dist-sdk/src/graph/types.d.ts +36 -1
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ import type { OptionIdIndex } from "../engine/pull/field-refs-registry.js";
|
|
|
12
12
|
import type { PulledRootStatus } from "../engine/pull/pulled-roots.js";
|
|
13
13
|
import type { ChildResourceScope, TfBlock, TfValue } from "../engine/tf/index.js";
|
|
14
14
|
import type { ValidationFailure } from "../engine/validation.js";
|
|
15
|
-
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-evaluation" | "sla" | "chart" | "agent-tool" | "agent-a2a-skill" | "automation" | "approval-chain" | "file-reader" | "visual-flow" | "skill" | "skill-tool" | "view" | "managed-view-order" | "managed-field-order" | "record-create-form" | "dynamic-layout" | "dashboard" | "dashboard-widget" | "datamine" | "automation-value-references" | "organization" | "permission-template" | "service-account" | "stored-function" | "vault-entry" | "task" | "portal" | "widget" | "relationship" | "search-table" | "table" | "cloud-link" | "email-alias" | "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" | "phone-provider" | "phone-service" | "voice-auth" | "role" | "user";
|
|
15
|
+
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-evaluation" | "sla" | "chart" | "agent-tool" | "agent-a2a-skill" | "automation" | "approval-chain" | "file-reader" | "visual-flow" | "skill" | "skill-tool" | "view" | "managed-view-order" | "managed-field-order" | "record-create-form" | "dynamic-layout" | "dashboard" | "dashboard-widget" | "dashboard-widget-order" | "datamine" | "automation-value-references" | "organization" | "permission-template" | "service-account" | "stored-function" | "vault-entry" | "task" | "portal" | "widget" | "relationship" | "search-table" | "table" | "cloud-link" | "email-alias" | "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" | "phone-provider" | "phone-service" | "voice-auth" | "role" | "user";
|
|
16
16
|
/** @deprecated Use {@link KindId}. */
|
|
17
17
|
export type EntityKindId = KindId;
|
|
18
18
|
export type StreamFacet = {
|
|
@@ -519,6 +519,15 @@ export interface BuildFieldMetadata {
|
|
|
519
519
|
readonly options?: readonly string[];
|
|
520
520
|
readonly tags?: readonly string[];
|
|
521
521
|
}
|
|
522
|
+
/** See {@link BuildChildContext.advisoriesWhileRecorded}. */
|
|
523
|
+
export interface AdvisoryWhileRecorded {
|
|
524
|
+
/** Stable identity the revision record keeps for this finding (#2283). */
|
|
525
|
+
readonly finding: string;
|
|
526
|
+
/** The diagnostic line while the record lists the finding. */
|
|
527
|
+
readonly advisory: string;
|
|
528
|
+
/** The fatal finding's message when it doesn't. */
|
|
529
|
+
readonly error: string;
|
|
530
|
+
}
|
|
522
531
|
export interface BuildChildContext {
|
|
523
532
|
readonly appRefName: string;
|
|
524
533
|
readonly appTfLabel: string;
|
|
@@ -527,6 +536,13 @@ export interface BuildChildContext {
|
|
|
527
536
|
readonly orgRefs: unknown;
|
|
528
537
|
readonly diagnostics: string[];
|
|
529
538
|
readonly reports?: string[];
|
|
539
|
+
/**
|
|
540
|
+
* Findings the platform may already run. Build writes each one's `finding`
|
|
541
|
+
* into the compiled file, where a pull or apply records it in the
|
|
542
|
+
* child's revision record. Build reports a finding the record lists as a
|
|
543
|
+
* diagnostic and fails any other (#2283).
|
|
544
|
+
*/
|
|
545
|
+
readonly advisoriesWhileRecorded?: AdvisoryWhileRecorded[];
|
|
530
546
|
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
531
547
|
readonly fieldNames?: ReadonlyMap<string, string>;
|
|
532
548
|
readonly fieldMetadata?: ReadonlyMap<string, BuildFieldMetadata>;
|
|
@@ -546,6 +562,13 @@ export interface BuildChildContext {
|
|
|
546
562
|
* used in a formula needs the searched aspect's field resources.
|
|
547
563
|
*/
|
|
548
564
|
readonly fieldAddressesByAppRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
565
|
+
/**
|
|
566
|
+
* Field types (`GROUP_ID`, `PICKLIST`, ...) from the org catalog for every
|
|
567
|
+
* app/element it lists, keyed by refName and then field key. Covers an
|
|
568
|
+
* app or element known only from its generated catalog, which has no
|
|
569
|
+
* field resources in {@link fieldAddressesByAppRefName}.
|
|
570
|
+
*/
|
|
571
|
+
readonly catalogFieldTypesByAppRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
549
572
|
/**
|
|
550
573
|
* Every app/element authored in the workspace, keyed like
|
|
551
574
|
* `workspaceAspects` (`<kind>:<refName>`), including those a partial build
|
|
@@ -928,6 +951,18 @@ export interface EntityKindModule {
|
|
|
928
951
|
readonly nameAttribute: string;
|
|
929
952
|
readonly ownerAttribute: string;
|
|
930
953
|
}[];
|
|
954
|
+
/**
|
|
955
|
+
* Computed map attributes (`refs`, also read as `inner.refs`) whose
|
|
956
|
+
* provider publishes one value under several keys: `canonicalKey` names
|
|
957
|
+
* the spelling a build emits for `key`, or undefined when it has no other
|
|
958
|
+
* spelling. Reads of two spellings of one key compare equal, so the
|
|
959
|
+
* declaring kind's pull must decode an alias only where the provider
|
|
960
|
+
* publishes it; this check can't tell.
|
|
961
|
+
*/
|
|
962
|
+
readonly mapKeyAliases?: readonly {
|
|
963
|
+
readonly attribute: string;
|
|
964
|
+
readonly canonicalKey: (key: string) => string | undefined;
|
|
965
|
+
}[];
|
|
931
966
|
/**
|
|
932
967
|
* Map attributes the provider computes at plan time from the resource's
|
|
933
968
|
* own list: `<attribute>[entry.<nameAttribute>]` is `value(name)`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementumai/edk",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Elementum Development Kit — statically typed SDK for building Elementum apps, automations, and agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -222,6 +222,7 @@
|
|
|
222
222
|
"edk:canvas": "tsx --tsconfig tsconfig.examples-check.json src/scripts/edk-canvas.ts"
|
|
223
223
|
},
|
|
224
224
|
"dependencies": {
|
|
225
|
+
"@types/node": "^25.5.2",
|
|
225
226
|
"acorn": "^8.16.0",
|
|
226
227
|
"jiti": "^2.7.0",
|
|
227
228
|
"semver": "^7.8.5"
|
|
@@ -229,7 +230,6 @@
|
|
|
229
230
|
"devDependencies": {
|
|
230
231
|
"@cdktf/hcl2json": "^0.21.0",
|
|
231
232
|
"@eslint/js": "^9.39.4",
|
|
232
|
-
"@types/node": "^25.5.2",
|
|
233
233
|
"@types/semver": "^7.8.0",
|
|
234
234
|
"@vercel/blob": "^2.6.1",
|
|
235
235
|
"ajv": "^8.20.0",
|