@elementumai/edk 0.8.2-alpha.6 → 0.9.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 +49 -37
- package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +3 -3
- package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +3 -11
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +3 -11
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +1 -1
- package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +1 -1
- package/dist-sdk/fs/entity.d.ts +2 -2
- package/dist-sdk/fs/entity.js +1 -1
- package/dist-sdk/pull/missing-report.d.ts +81 -0
- package/dist-sdk/pull/missing-report.js +52 -0
- package/dist-sdk/pull/util.d.ts +1 -1
- package/dist-sdk/pull/util.js +3 -3
- package/dist-sdk/src/catalog/factories.d.ts +96 -23
- package/dist-sdk/src/catalog/factories.js +141 -21
- package/dist-sdk/src/catalog/from-authoring.d.ts +5 -5
- package/dist-sdk/src/catalog/from-authoring.js +20 -10
- package/dist-sdk/src/catalog/index.d.ts +2 -2
- package/dist-sdk/src/catalog/index.js +1 -1
- package/dist-sdk/src/catalog/org.js +63 -4
- package/dist-sdk/src/catalog/render-helpers.d.ts +1 -1
- package/dist-sdk/src/catalog/render-helpers.js +1 -1
- package/dist-sdk/src/catalog/render.d.ts +1 -0
- package/dist-sdk/src/catalog/render.js +8 -2
- package/dist-sdk/src/catalog/token.js +18 -4
- package/dist-sdk/src/catalog/types.d.ts +64 -24
- package/dist-sdk/src/catalog/types.js +12 -4
- package/dist-sdk/src/core/app-to-ui.d.ts +6 -6
- package/dist-sdk/src/core/app-to-ui.js +7 -9
- package/dist-sdk/src/core/index.d.ts +11 -10
- package/dist-sdk/src/core/index.js +10 -9
- package/dist-sdk/src/core/platform-id.d.ts +11 -0
- package/dist-sdk/src/core/platform-id.js +8 -0
- package/dist-sdk/src/{entities/flow/activities/render-catalog.d.ts → core/render-tree.d.ts} +3 -3
- package/dist-sdk/src/{entities/flow/activities/render-catalog.js → core/render-tree.js} +7 -10
- package/dist-sdk/src/core/types/ai-provider.d.ts +1 -1
- package/dist-sdk/src/core/types/ai-provider.js +1 -1
- package/dist-sdk/src/core/types/app.d.ts +78 -52
- package/dist-sdk/src/core/types/app.js +2 -3
- package/dist-sdk/src/core/types/aspect-category.d.ts +4 -4
- package/dist-sdk/src/core/types/aspect-category.js +4 -4
- package/dist-sdk/src/core/types/cloud-link.d.ts +3 -3
- package/dist-sdk/src/core/types/cloud-link.js +3 -3
- package/dist-sdk/src/core/types/display-block.d.ts +2 -2
- package/dist-sdk/src/core/types/display-block.js +2 -2
- package/dist-sdk/src/core/types/group.d.ts +1 -1
- package/dist-sdk/src/core/types/group.js +1 -1
- package/dist-sdk/src/core/types/user.d.ts +1 -1
- package/dist-sdk/src/core/types/user.js +1 -1
- package/dist-sdk/src/core/wire/ref-serializer.js +3 -3
- package/dist-sdk/src/engine/build/context.d.ts +23 -16
- package/dist-sdk/src/engine/entity.d.ts +1 -1
- package/dist-sdk/src/engine/pull/attrs.d.ts +4 -0
- package/dist-sdk/src/engine/pull/attrs.js +17 -0
- package/dist-sdk/src/engine/pull/context.d.ts +73 -0
- package/dist-sdk/src/engine/pull/context.js +14 -0
- package/dist-sdk/src/engine/pull/org.d.ts +10 -0
- package/dist-sdk/src/engine/pull/org.js +35 -0
- package/dist-sdk/src/engine/pull/ref-only.d.ts +37 -0
- package/dist-sdk/src/engine/pull/ref-only.js +204 -0
- package/dist-sdk/src/engine/tf/expr.d.ts +7 -3
- package/dist-sdk/src/engine/tf/expr.js +27 -15
- package/dist-sdk/src/engine/tf/index.d.ts +1 -1
- package/dist-sdk/src/engine/tf/index.js +1 -1
- package/dist-sdk/src/engine/tf/model.d.ts +8 -1
- package/dist-sdk/src/engine/tf/model.js +4 -0
- package/dist-sdk/src/engine/tf/parse.js +13 -2
- package/dist-sdk/src/engine/tf/render.js +4 -0
- package/dist-sdk/src/engine/workspace/authoring-layout.js +4 -2
- package/dist-sdk/src/entities/access-policy/build.d.ts +6 -16
- package/dist-sdk/src/entities/access-policy/build.js +2 -2
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +14 -40
- package/dist-sdk/src/entities/access-policy/from-tf.js +26 -85
- package/dist-sdk/src/entities/access-policy/principal.d.ts +39 -0
- package/dist-sdk/src/entities/access-policy/principal.js +13 -0
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +33 -6
- package/dist-sdk/src/entities/access-policy/to-tf.js +62 -60
- package/dist-sdk/src/entities/agent/build.d.ts +42 -11
- package/dist-sdk/src/entities/agent/build.js +40 -19
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +11 -1
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +180 -45
- package/dist-sdk/src/entities/agent/from-tf.d.ts +3 -1
- package/dist-sdk/src/entities/agent/from-tf.js +17 -12
- package/dist-sdk/src/entities/agent/index.d.ts +5 -2
- package/dist-sdk/src/entities/agent/index.js +4 -2
- package/dist-sdk/src/entities/agent/module.js +7 -2
- package/dist-sdk/src/entities/agent/run-as.d.ts +16 -0
- package/dist-sdk/src/entities/agent/run-as.js +1 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +6 -2
- package/dist-sdk/src/entities/agent/to-tf.js +58 -9
- package/dist-sdk/src/entities/agent/tools.d.ts +97 -70
- package/dist-sdk/src/entities/agent/tools.js +63 -43
- package/dist-sdk/src/entities/agent-a2a-skill/from-tf.js +1 -1
- package/dist-sdk/src/entities/agent-a2a-skill/to-tf.js +4 -4
- package/dist-sdk/src/entities/agent-evaluation/build.d.ts +19 -0
- package/dist-sdk/src/entities/agent-evaluation/build.js +41 -0
- package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.d.ts +4 -0
- package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.js +30 -0
- package/dist-sdk/src/entities/agent-evaluation/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/agent-evaluation/from-tf.js +46 -0
- package/dist-sdk/src/entities/agent-evaluation/index.d.ts +1 -0
- package/dist-sdk/src/entities/agent-evaluation/index.js +1 -0
- package/dist-sdk/src/entities/agent-evaluation/module.d.ts +3 -0
- package/dist-sdk/src/entities/agent-evaluation/module.js +58 -0
- package/dist-sdk/src/entities/agent-evaluation/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/agent-evaluation/to-tf.js +35 -0
- package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +25 -15
- package/dist-sdk/src/entities/agent-tool/from-tf.js +175 -43
- package/dist-sdk/src/entities/agent-tool/module.js +6 -0
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +15 -7
- package/dist-sdk/src/entities/agent-tool/to-tf.js +169 -48
- package/dist-sdk/src/entities/agent-tool/types.d.ts +4 -6
- package/dist-sdk/src/entities/agent-tool/types.js +30 -29
- package/dist-sdk/src/entities/app/build.d.ts +214 -47
- package/dist-sdk/src/entities/app/build.js +128 -66
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +188 -8
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +59 -0
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +70 -0
- package/dist-sdk/src/entities/app/display-blocks.d.ts +2 -1
- package/dist-sdk/src/entities/app/display-blocks.js +1 -1
- package/dist-sdk/src/entities/app/from-tf.d.ts +11 -1
- package/dist-sdk/src/entities/app/from-tf.js +30 -2
- package/dist-sdk/src/entities/app/index.d.ts +20 -8
- package/dist-sdk/src/entities/app/index.js +16 -6
- package/dist-sdk/src/entities/app/module.js +29 -4
- package/dist-sdk/src/entities/app/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/app/to-tf.js +97 -7
- package/dist-sdk/src/entities/approval-chain/build.d.ts +31 -16
- package/dist-sdk/src/entities/approval-chain/build.js +49 -49
- package/dist-sdk/src/entities/approval-chain/from-tf.d.ts +17 -0
- package/dist-sdk/src/entities/approval-chain/from-tf.js +57 -0
- package/dist-sdk/src/entities/approval-chain/index.d.ts +2 -3
- package/dist-sdk/src/entities/approval-chain/index.js +2 -3
- package/dist-sdk/src/entities/approval-chain/module.d.ts +3 -0
- package/dist-sdk/src/entities/approval-chain/module.js +51 -0
- package/dist-sdk/src/entities/approval-chain/printer.d.ts +2 -0
- package/dist-sdk/src/entities/approval-chain/printer.js +21 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.d.ts +9 -0
- package/dist-sdk/src/entities/approval-chain/to-tf.js +43 -0
- package/dist-sdk/src/entities/automation/build.d.ts +177 -95
- package/dist-sdk/src/entities/automation/build.js +164 -72
- package/dist-sdk/src/entities/automation/calculation-expression.d.ts +191 -0
- package/dist-sdk/src/entities/automation/calculation-expression.js +57 -0
- package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +18 -9
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +18 -14
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +214 -311
- package/dist-sdk/src/entities/automation/filter.d.ts +1 -115
- package/dist-sdk/src/entities/automation/filter.js +1 -197
- package/dist-sdk/src/entities/automation/from-tf.d.ts +28 -0
- package/dist-sdk/src/entities/automation/from-tf.js +695 -182
- package/dist-sdk/src/entities/automation/index.d.ts +9 -10
- package/dist-sdk/src/entities/automation/index.js +11 -11
- package/dist-sdk/src/entities/automation/module.js +82 -8
- package/dist-sdk/src/entities/automation/operators.d.ts +32 -48
- package/dist-sdk/src/entities/automation/operators.js +10 -37
- package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +1 -1
- package/dist-sdk/src/entities/automation/output-key-wire-name.js +1 -1
- package/dist-sdk/src/entities/automation/script-code.js +107 -28
- package/dist-sdk/src/entities/automation/serialize.js +1 -1
- package/dist-sdk/src/entities/automation/tasks.d.ts +167 -102
- package/dist-sdk/src/entities/automation/tasks.js +66 -13
- package/dist-sdk/src/entities/automation/to-tf.d.ts +44 -3
- package/dist-sdk/src/entities/automation/to-tf.js +607 -161
- package/dist-sdk/src/entities/automation/triggers.d.ts +33 -25
- package/dist-sdk/src/entities/automation/triggers.js +8 -2
- package/dist-sdk/src/entities/automation/types.d.ts +3 -2
- package/dist-sdk/src/entities/automation/types.js +3 -2
- package/dist-sdk/src/entities/chart/build.d.ts +95 -0
- package/dist-sdk/src/entities/chart/build.js +42 -0
- package/dist-sdk/src/entities/chart/from-tf.d.ts +55 -0
- package/dist-sdk/src/entities/chart/from-tf.js +269 -0
- package/dist-sdk/src/entities/chart/index.d.ts +4 -0
- package/dist-sdk/src/entities/chart/index.js +3 -0
- package/dist-sdk/src/entities/chart/module.d.ts +3 -0
- package/dist-sdk/src/entities/chart/module.js +61 -0
- package/dist-sdk/src/entities/chart/printer.d.ts +5 -0
- package/dist-sdk/src/entities/chart/printer.js +104 -0
- package/dist-sdk/src/entities/chart/to-tf.d.ts +15 -0
- package/dist-sdk/src/entities/chart/to-tf.js +150 -0
- package/dist-sdk/src/entities/chart/types.d.ts +53 -0
- package/dist-sdk/src/entities/chart/types.js +22 -0
- package/dist-sdk/src/entities/dashboard/build.d.ts +44 -0
- package/dist-sdk/src/entities/dashboard/build.js +16 -0
- package/dist-sdk/src/entities/dashboard/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/dashboard/from-tf.js +113 -0
- package/dist-sdk/src/entities/dashboard/module.d.ts +3 -0
- package/dist-sdk/src/entities/dashboard/module.js +16 -0
- package/dist-sdk/src/entities/dashboard/to-tf.d.ts +43 -0
- package/dist-sdk/src/entities/dashboard/to-tf.js +121 -0
- package/dist-sdk/src/entities/dashboard-widget/module.d.ts +3 -0
- package/dist-sdk/src/entities/dashboard-widget/module.js +10 -0
- package/dist-sdk/src/entities/data-lookup/module.d.ts +3 -0
- package/dist-sdk/src/entities/data-lookup/module.js +22 -0
- package/dist-sdk/src/entities/datamine/build.d.ts +22 -0
- package/dist-sdk/src/entities/datamine/from-tf.d.ts +17 -0
- package/dist-sdk/src/entities/datamine/from-tf.js +98 -0
- package/dist-sdk/src/entities/datamine/module.d.ts +3 -0
- package/dist-sdk/src/entities/datamine/module.js +23 -0
- package/dist-sdk/src/entities/datamine/to-tf.d.ts +11 -0
- package/dist-sdk/src/entities/datamine/to-tf.js +53 -0
- package/dist-sdk/src/entities/dynamic-layout/build.d.ts +304 -0
- package/dist-sdk/src/entities/dynamic-layout/build.js +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +4 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.js +47 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +239 -0
- package/dist-sdk/src/entities/dynamic-layout/module.d.ts +3 -0
- package/dist-sdk/src/entities/dynamic-layout/module.js +13 -0
- package/dist-sdk/src/entities/dynamic-layout/to-tf.d.ts +26 -0
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +267 -0
- package/dist-sdk/src/entities/element/build.d.ts +48 -38
- package/dist-sdk/src/entities/element/build.js +24 -33
- package/dist-sdk/src/entities/element/from-tf.d.ts +9 -1
- package/dist-sdk/src/entities/element/from-tf.js +31 -2
- package/dist-sdk/src/entities/element/index.d.ts +14 -7
- package/dist-sdk/src/entities/element/index.js +11 -5
- package/dist-sdk/src/entities/element/module.js +26 -5
- package/dist-sdk/src/entities/element/to-tf.d.ts +2 -1
- package/dist-sdk/src/entities/element/to-tf.js +64 -4
- package/dist-sdk/src/entities/field/build.d.ts +55 -27
- package/dist-sdk/src/entities/field/build.js +31 -6
- package/dist-sdk/src/entities/field/calc/aggregate.d.ts +52 -21
- package/dist-sdk/src/entities/field/calc/aggregate.js +59 -29
- package/dist-sdk/src/entities/field/calc/date.d.ts +78 -29
- package/dist-sdk/src/entities/field/calc/date.js +120 -29
- package/dist-sdk/src/entities/field/calc/index.d.ts +80 -85
- package/dist-sdk/src/entities/field/calc/index.js +82 -139
- package/dist-sdk/src/entities/field/calc/numeric.d.ts +8 -12
- package/dist-sdk/src/entities/field/calc/numeric.js +10 -27
- package/dist-sdk/src/entities/field/calc/runtime.d.ts +19 -2
- package/dist-sdk/src/entities/field/calc/runtime.js +79 -8
- package/dist-sdk/src/entities/field/calc/text.d.ts +32 -23
- package/dist-sdk/src/entities/field/calc/text.js +43 -31
- package/dist-sdk/src/entities/field/calc/types.d.ts +36 -81
- package/dist-sdk/src/entities/field/calc/types.js +1 -22
- package/dist-sdk/src/entities/field/calc.d.ts +71 -48
- package/dist-sdk/src/entities/field/calc.js +5 -15
- package/dist-sdk/src/entities/field/calculation-types.d.ts +6 -0
- package/dist-sdk/src/entities/field/calculation-types.js +49 -0
- package/dist-sdk/src/entities/field/from-tf.js +238 -13
- package/dist-sdk/src/entities/field/locals.d.ts +11 -3
- package/dist-sdk/src/entities/field/locals.js +15 -2
- package/dist-sdk/src/entities/field/module.d.ts +1 -0
- package/dist-sdk/src/entities/field/module.js +27 -7
- package/dist-sdk/src/entities/field/record-shape.d.ts +25 -11
- package/dist-sdk/src/entities/field/to-tf.d.ts +41 -2
- package/dist-sdk/src/entities/field/to-tf.js +314 -40
- package/dist-sdk/src/entities/field/types.d.ts +1 -1
- package/dist-sdk/src/entities/field/types.js +10 -1
- package/dist-sdk/src/entities/file-reader/build.d.ts +71 -19
- package/dist-sdk/src/entities/file-reader/build.js +49 -4
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +1 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +12 -10
- package/dist-sdk/src/entities/file-reader/from-tf.d.ts +1 -1
- package/dist-sdk/src/entities/file-reader/from-tf.js +31 -2
- package/dist-sdk/src/entities/file-reader/index.d.ts +3 -3
- package/dist-sdk/src/entities/file-reader/index.js +3 -3
- package/dist-sdk/src/entities/file-reader/module.js +6 -5
- package/dist-sdk/src/entities/file-reader/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/file-reader/to-tf.js +5 -2
- package/dist-sdk/src/entities/file-reader/types.d.ts +3 -4
- package/dist-sdk/src/entities/file-reader/types.js +4 -5
- package/dist-sdk/src/entities/org/category.js +4 -5
- package/dist-sdk/src/entities/org/cloud-link.js +4 -5
- package/dist-sdk/src/entities/org/email-alias.d.ts +2 -0
- package/dist-sdk/src/entities/org/email-alias.js +12 -0
- package/dist-sdk/src/entities/org/group.js +4 -5
- package/dist-sdk/src/entities/org/index.d.ts +2 -0
- package/dist-sdk/src/entities/org/index.js +2 -0
- package/dist-sdk/src/entities/org/phone-provider.d.ts +4 -0
- package/dist-sdk/src/entities/org/phone-provider.js +30 -0
- package/dist-sdk/src/entities/org/role.d.ts +3 -3
- package/dist-sdk/src/entities/org/role.js +9 -6
- package/dist-sdk/src/entities/organization/build.d.ts +241 -0
- package/dist-sdk/src/entities/organization/build.js +165 -0
- package/dist-sdk/src/entities/organization/index.d.ts +2 -0
- package/dist-sdk/src/entities/organization/index.js +2 -0
- package/dist-sdk/src/entities/organization/module.d.ts +2 -0
- package/dist-sdk/src/entities/organization/module.js +21 -0
- package/dist-sdk/src/entities/organization/to-tf.d.ts +7 -0
- package/dist-sdk/src/entities/organization/to-tf.js +154 -0
- package/dist-sdk/src/entities/phone-service/build.d.ts +17 -0
- package/dist-sdk/src/entities/phone-service/build.js +31 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.d.ts +4 -0
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +56 -0
- package/dist-sdk/src/entities/phone-service/from-tf.d.ts +25 -0
- package/dist-sdk/src/entities/phone-service/from-tf.js +75 -0
- package/dist-sdk/src/entities/phone-service/index.d.ts +2 -0
- package/dist-sdk/src/entities/phone-service/index.js +2 -0
- package/dist-sdk/src/entities/phone-service/module.d.ts +3 -0
- package/dist-sdk/src/entities/phone-service/module.js +55 -0
- package/dist-sdk/src/entities/phone-service/to-tf.d.ts +12 -0
- package/dist-sdk/src/entities/phone-service/to-tf.js +54 -0
- package/dist-sdk/src/entities/phone-service/types.d.ts +35 -0
- package/dist-sdk/src/entities/phone-service/types.js +22 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.d.ts +11 -0
- package/dist-sdk/src/entities/record-create-form/from-tf.js +74 -0
- package/dist-sdk/src/entities/record-create-form/module.d.ts +11 -0
- package/dist-sdk/src/entities/record-create-form/module.js +24 -0
- package/dist-sdk/src/entities/record-create-form/to-tf.d.ts +33 -0
- package/dist-sdk/src/entities/record-create-form/to-tf.js +88 -0
- package/dist-sdk/src/entities/relationship/build.d.ts +16 -0
- package/dist-sdk/src/entities/relationship/build.js +1 -0
- package/dist-sdk/src/entities/relationship/from-tf.d.ts +12 -0
- package/dist-sdk/src/entities/relationship/from-tf.js +109 -0
- package/dist-sdk/src/entities/relationship/module.d.ts +3 -0
- package/dist-sdk/src/entities/relationship/module.js +16 -0
- package/dist-sdk/src/entities/relationship/to-tf.d.ts +32 -0
- package/dist-sdk/src/entities/relationship/to-tf.js +145 -0
- package/dist-sdk/src/entities/role/build.d.ts +65 -0
- package/dist-sdk/src/entities/role/build.js +33 -0
- package/dist-sdk/src/entities/role/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/role/from-tf.js +138 -0
- package/dist-sdk/src/entities/role/to-tf.d.ts +13 -0
- package/dist-sdk/src/entities/role/to-tf.js +69 -0
- package/dist-sdk/src/entities/search-table/build.d.ts +67 -28
- package/dist-sdk/src/entities/search-table/build.js +110 -56
- package/dist-sdk/src/entities/search-table/from-tf.d.ts +37 -0
- package/dist-sdk/src/entities/search-table/from-tf.js +113 -0
- package/dist-sdk/src/entities/search-table/index.d.ts +2 -2
- package/dist-sdk/src/entities/search-table/index.js +2 -2
- package/dist-sdk/src/entities/search-table/module.js +88 -10
- package/dist-sdk/src/entities/search-table/printer.d.ts +2 -0
- package/dist-sdk/src/entities/search-table/printer.js +52 -0
- package/dist-sdk/src/entities/search-table/to-tf.d.ts +14 -0
- package/dist-sdk/src/entities/search-table/to-tf.js +104 -0
- package/dist-sdk/src/entities/search-table/types.d.ts +8 -0
- package/dist-sdk/src/entities/search-table/types.js +21 -0
- package/dist-sdk/src/entities/service-account/build.d.ts +32 -0
- package/dist-sdk/src/entities/service-account/build.js +9 -0
- package/dist-sdk/src/entities/service-account/from-tf.d.ts +10 -0
- package/dist-sdk/src/entities/service-account/from-tf.js +109 -0
- package/dist-sdk/src/entities/service-account/module.d.ts +4 -0
- package/dist-sdk/src/entities/service-account/module.js +21 -0
- package/dist-sdk/src/entities/service-account/ref.d.ts +11 -0
- package/dist-sdk/src/entities/service-account/ref.js +5 -0
- package/dist-sdk/src/entities/service-account/to-tf.d.ts +32 -0
- package/dist-sdk/src/entities/service-account/to-tf.js +103 -0
- package/dist-sdk/src/entities/shared/connector-from-tf.d.ts +14 -0
- package/dist-sdk/src/entities/shared/connector-from-tf.js +14 -0
- package/dist-sdk/src/entities/shared/context.d.ts +25 -24
- package/dist-sdk/src/entities/shared/context.js +36 -35
- package/dist-sdk/src/entities/shared/filters/ast.d.ts +30 -81
- package/dist-sdk/src/entities/shared/filters/ast.js +6 -2
- package/dist-sdk/src/entities/shared/filters/index.d.ts +95 -206
- package/dist-sdk/src/entities/shared/filters/index.js +196 -341
- package/dist-sdk/src/entities/shared/filters/print.d.ts +11 -0
- package/dist-sdk/src/entities/shared/filters/print.js +122 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +170 -0
- package/dist-sdk/src/entities/shared/filters/tf-codec.js +527 -0
- package/dist-sdk/src/entities/shared/filters/types.d.ts +66 -69
- package/dist-sdk/src/entities/shared/filters/types.js +2 -3
- package/dist-sdk/src/entities/shared/foreign-ref.d.ts +14 -0
- package/dist-sdk/src/entities/shared/foreign-ref.js +12 -0
- package/dist-sdk/src/entities/shared/ref.d.ts +26 -11
- package/dist-sdk/src/entities/shared/ref.js +8 -3
- package/dist-sdk/src/entities/shared/types/common.d.ts +2 -2
- package/dist-sdk/src/entities/shared/types/field-types.d.ts +1 -1
- package/dist-sdk/src/entities/shared/types/field-types.js +1 -1
- package/dist-sdk/src/entities/skill/build.d.ts +4 -4
- package/dist-sdk/src/entities/skill/build.js +6 -5
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +11 -1
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +100 -39
- package/dist-sdk/src/entities/skill/index.d.ts +3 -2
- package/dist-sdk/src/entities/skill/index.js +3 -2
- package/dist-sdk/src/entities/skill/module.js +8 -2
- package/dist-sdk/src/entities/skill/to-tf.d.ts +6 -2
- package/dist-sdk/src/entities/skill/to-tf.js +20 -2
- package/dist-sdk/src/entities/skill/tools.d.ts +47 -31
- package/dist-sdk/src/entities/skill/tools.js +37 -23
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +17 -1
- package/dist-sdk/src/entities/skill-tool/from-tf.js +118 -8
- package/dist-sdk/src/entities/skill-tool/module.js +9 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +6 -1
- package/dist-sdk/src/entities/skill-tool/to-tf.js +100 -48
- package/dist-sdk/src/entities/skill-tool/types.js +18 -1
- package/dist-sdk/src/entities/table/build.d.ts +64 -23
- package/dist-sdk/src/entities/table/build.js +41 -26
- package/dist-sdk/src/entities/table/catalog-render.js +15 -1
- package/dist-sdk/src/entities/table/deserializer/normalize.d.ts +99 -0
- package/dist-sdk/src/entities/table/deserializer/normalize.js +192 -0
- package/dist-sdk/src/entities/table/fields/types.d.ts +86 -0
- package/dist-sdk/src/entities/table/fields/types.js +12 -0
- package/dist-sdk/src/entities/table/fields.d.ts +107 -47
- package/dist-sdk/src/entities/table/fields.js +76 -55
- package/dist-sdk/src/entities/table/from-tf.d.ts +4 -0
- package/dist-sdk/src/entities/table/from-tf.js +261 -0
- package/dist-sdk/src/entities/table/index.d.ts +7 -5
- package/dist-sdk/src/entities/table/index.js +7 -7
- package/dist-sdk/src/entities/table/joins.d.ts +22 -9
- package/dist-sdk/src/entities/table/joins.js +8 -16
- package/dist-sdk/src/entities/table/module.d.ts +2 -1
- package/dist-sdk/src/entities/table/module.js +13 -6
- package/dist-sdk/src/entities/table/to-tf.d.ts +10 -0
- package/dist-sdk/src/entities/table/to-tf.js +222 -0
- package/dist-sdk/src/entities/task/build.d.ts +43 -0
- package/dist-sdk/src/entities/task/build.js +17 -0
- package/dist-sdk/src/entities/task/from-tf.d.ts +28 -0
- package/dist-sdk/src/entities/task/from-tf.js +38 -0
- package/dist-sdk/src/entities/task/index.d.ts +1 -0
- package/dist-sdk/src/entities/task/index.js +1 -0
- package/dist-sdk/src/entities/task/module.d.ts +3 -0
- package/dist-sdk/src/entities/task/module.js +12 -0
- package/dist-sdk/src/entities/task/to-tf.d.ts +9 -0
- package/dist-sdk/src/entities/task/to-tf.js +49 -0
- package/dist-sdk/src/entities/view/build.d.ts +46 -0
- package/dist-sdk/src/entities/view/build.js +19 -0
- package/dist-sdk/src/entities/view/from-tf.d.ts +7 -2
- package/dist-sdk/src/entities/view/from-tf.js +264 -30
- package/dist-sdk/src/entities/view/module.d.ts +6 -13
- package/dist-sdk/src/entities/view/module.js +12 -15
- package/dist-sdk/src/entities/view/sharing.d.ts +10 -0
- package/dist-sdk/src/entities/view/sharing.js +6 -0
- package/dist-sdk/src/entities/view/to-tf.d.ts +56 -12
- package/dist-sdk/src/entities/view/to-tf.js +192 -20
- package/dist-sdk/src/entities/view/types.d.ts +8 -0
- package/dist-sdk/src/entities/view/types.js +46 -0
- package/dist-sdk/src/entities/visual-flow/build.d.ts +87 -0
- package/dist-sdk/src/entities/visual-flow/build.js +72 -0
- package/dist-sdk/src/entities/visual-flow/from-tf.d.ts +49 -0
- package/dist-sdk/src/entities/visual-flow/from-tf.js +124 -0
- package/dist-sdk/src/entities/visual-flow/index.d.ts +1 -0
- package/dist-sdk/src/entities/visual-flow/index.js +1 -0
- package/dist-sdk/src/entities/visual-flow/module.d.ts +3 -0
- package/dist-sdk/src/entities/visual-flow/module.js +41 -0
- package/dist-sdk/src/entities/visual-flow/printer.d.ts +8 -0
- package/dist-sdk/src/entities/visual-flow/printer.js +92 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.d.ts +15 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.js +97 -0
- package/dist-sdk/src/entities/widget/build.d.ts +55 -0
- package/dist-sdk/src/entities/widget/build.js +1 -0
- package/dist-sdk/src/entities/widget/from-tf.d.ts +11 -0
- package/dist-sdk/src/entities/widget/from-tf.js +209 -0
- package/dist-sdk/src/entities/widget/module.d.ts +3 -0
- package/dist-sdk/src/entities/widget/module.js +16 -0
- package/dist-sdk/src/entities/widget/to-tf.d.ts +45 -0
- package/dist-sdk/src/entities/widget/to-tf.js +206 -0
- package/dist-sdk/src/graph/deferred-catalog-render.d.ts +1 -1
- package/dist-sdk/src/graph/deferred-catalog-render.js +1 -1
- package/dist-sdk/src/graph/index.d.ts +12 -1
- package/dist-sdk/src/graph/index.js +8 -19
- package/dist-sdk/src/graph/modules.js +35 -1
- package/dist-sdk/src/graph/types.d.ts +106 -7
- package/dist-sdk/src/internal/safe-identifier.d.ts +4 -0
- package/dist-sdk/src/internal/safe-identifier.js +13 -0
- package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
- package/dist-sdk/src/internal/sdk-package.js +5 -2
- package/package.json +39 -15
- package/dist-sdk/src/entities/access-policy/filter.d.ts +0 -61
- package/dist-sdk/src/entities/access-policy/filter.js +0 -83
- package/dist-sdk/src/entities/approval-chain/steps.d.ts +0 -24
- package/dist-sdk/src/entities/approval-chain/steps.js +0 -20
- package/dist-sdk/src/entities/flow/activities/agent.d.ts +0 -15
- package/dist-sdk/src/entities/flow/activities/agent.js +0 -29
- package/dist-sdk/src/entities/flow/activities/approval.d.ts +0 -9
- package/dist-sdk/src/entities/flow/activities/approval.js +0 -18
- package/dist-sdk/src/entities/flow/activities/automation.d.ts +0 -12
- package/dist-sdk/src/entities/flow/activities/automation.js +0 -22
- package/dist-sdk/src/entities/flow/activities/ctx.d.ts +0 -34
- package/dist-sdk/src/entities/flow/activities/ctx.js +0 -38
- package/dist-sdk/src/entities/flow/activities/form.d.ts +0 -22
- package/dist-sdk/src/entities/flow/activities/form.js +0 -36
- package/dist-sdk/src/entities/flow/activities/index.d.ts +0 -14
- package/dist-sdk/src/entities/flow/activities/index.js +0 -13
- package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +0 -39
- package/dist-sdk/src/entities/flow/activities/input-refs.js +0 -19
- package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +0 -13
- package/dist-sdk/src/entities/flow/activities/prompt-template.js +0 -34
- package/dist-sdk/src/entities/flow/activities/types.d.ts +0 -33
- package/dist-sdk/src/entities/flow/build.d.ts +0 -38
- package/dist-sdk/src/entities/flow/build.js +0 -115
- package/dist-sdk/src/entities/flow/index.d.ts +0 -8
- package/dist-sdk/src/entities/flow/index.js +0 -7
- package/dist-sdk/src/entities/flow/serialize.d.ts +0 -51
- package/dist-sdk/src/entities/flow/serialize.js +0 -94
- package/dist-sdk/src/entities/flow/util.d.ts +0 -27
- package/dist-sdk/src/entities/flow/util.js +0 -38
- package/dist-sdk/src/entities/table/filter.d.ts +0 -41
- package/dist-sdk/src/entities/table/filter.js +0 -89
- /package/dist-sdk/src/entities/{flow/activities/types.js → datamine/build.js} +0 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @elementumai/edk
|
|
2
2
|
|
|
3
3
|
Statically typed TypeScript SDK for authoring Elementum apps, elements,
|
|
4
|
-
automations, agents, skills,
|
|
4
|
+
automations, agents, skills, search tables, and related configuration as
|
|
5
5
|
code. `@elementumai/edk` is SDK-only; the standalone `elementum` CLI is
|
|
6
6
|
distributed separately as part of the signed toolchain.
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ the bridge and OpenTofu; neither is a separate public executable or checkout.
|
|
|
15
15
|
Install the authenticated macOS or Linux x64 toolchain:
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
curl -fsSL https://elementum
|
|
18
|
+
curl -fsSL https://install.elementum.tools | sh
|
|
19
19
|
elementum init
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -90,7 +90,9 @@ cd <instance>/<organization>
|
|
|
90
90
|
elementum --profile=<profile> init
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
`pull org --data-only` bootstraps and refreshes org reference identities.
|
|
93
|
+
`pull org --data-only` bootstraps and refreshes org reference identities. Plain
|
|
94
|
+
`pull org` additionally writes editable `organization.ts`, adopts supported
|
|
95
|
+
org-owned resources, and keeps the generated `org.ts` catalog separate. It
|
|
94
96
|
creates the package/workspace scaffolding, `org.ts`, the `@catalog` path alias,
|
|
95
97
|
and the Terraform input/output skeleton:
|
|
96
98
|
|
|
@@ -100,6 +102,7 @@ and the Terraform input/output skeleton:
|
|
|
100
102
|
<instance>/
|
|
101
103
|
<organization>/
|
|
102
104
|
org.ts
|
|
105
|
+
organization.ts # editable org resources after plain `pull org`
|
|
103
106
|
tsconfig.json
|
|
104
107
|
backend.tf # optional locking backend; user-owned and committed
|
|
105
108
|
terraform.tfstate # committed local state when backend.tf is absent
|
|
@@ -156,6 +159,7 @@ elementum update [--check | --dry-run] [--channel stable|preview] [--version <se
|
|
|
156
159
|
elementum migrate backend [orgRoot] [--check | --dry-run | --auto-approve] [--reconfigure]
|
|
157
160
|
elementum migrate provider-source [orgRoot] [--check | --dry-run | --auto-approve]
|
|
158
161
|
|
|
162
|
+
elementum pull org [--root <orgRoot>] [--no-adopt]
|
|
159
163
|
elementum pull org --data-only [--root <orgRoot>]
|
|
160
164
|
elementum pull app <namespace> [--root <orgRoot>] [--no-adopt]
|
|
161
165
|
elementum pull element <namespace> [--root <orgRoot>] [--no-adopt]
|
|
@@ -229,7 +233,7 @@ Canvas is an offline, live-reloading view of authored source:
|
|
|
229
233
|
|
|
230
234
|
```sh
|
|
231
235
|
elementum canvas <instance>/<organization>
|
|
232
|
-
elementum canvas apps/myApp/
|
|
236
|
+
elementum canvas apps/myApp/automations/someAutomation.ts
|
|
233
237
|
```
|
|
234
238
|
|
|
235
239
|
A directory target opens the workspace explorer at `http://localhost:3456`,
|
|
@@ -243,25 +247,23 @@ tools, and supported automations. A file target renders the first export with
|
|
|
243
247
|
Import public package subpaths, not repository-relative modules:
|
|
244
248
|
|
|
245
249
|
```ts
|
|
246
|
-
import { calc,
|
|
247
|
-
import {
|
|
250
|
+
import { calc, app } from "@elementumai/edk/app";
|
|
251
|
+
import { element } from "@elementumai/edk/elements";
|
|
248
252
|
import {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
executeScript,
|
|
253
|
+
actions,
|
|
254
|
+
automation,
|
|
252
255
|
onDemand,
|
|
253
256
|
} from "@elementumai/edk/automations";
|
|
254
257
|
import {
|
|
255
258
|
agentCreateRecord,
|
|
256
259
|
agentRunAutomation,
|
|
257
|
-
|
|
258
|
-
|
|
260
|
+
agentSearchRecords,
|
|
261
|
+
agent,
|
|
259
262
|
} from "@elementumai/edk/agents";
|
|
260
|
-
import {
|
|
261
|
-
import {
|
|
262
|
-
import {
|
|
263
|
-
import {
|
|
264
|
-
import { defineTable } from "@elementumai/edk/tables";
|
|
263
|
+
import { skill } from "@elementumai/edk/agents/skills";
|
|
264
|
+
import { linkedSearchTable, searchTable, searchTableDuration } from "@elementumai/edk/searchTables";
|
|
265
|
+
import { approvalProcess } from "@elementumai/edk/approvalProcesses";
|
|
266
|
+
import { table } from "@elementumai/edk/tables";
|
|
265
267
|
import { eq } from "@elementumai/edk/core/filters";
|
|
266
268
|
import catalog from "@catalog";
|
|
267
269
|
```
|
|
@@ -275,7 +277,9 @@ EDK uses names and typed tokens in source, with the configured OpenTofu state
|
|
|
275
277
|
backend providing platform identity:
|
|
276
278
|
|
|
277
279
|
1. `pull org --data-only` writes org reference bags to `org.ts`, including
|
|
278
|
-
cloud links, categories, connectors, and groups.
|
|
280
|
+
cloud links, phone providers, categories, connectors, and groups. Plain
|
|
281
|
+
`pull org` also writes editable categories, groups, CloudLinks, email
|
|
282
|
+
aliases, and Twilio providers to `organization.ts`.
|
|
279
283
|
2. `pull app` or `pull element` writes editable source and adopts existing
|
|
280
284
|
resources into the required locking remote backend.
|
|
281
285
|
3. `generated/catalog.ts` is a pure barrel derived from the authored file tree.
|
|
@@ -289,26 +293,34 @@ is the Terraform label in camelCase through a lossless label conversion. For
|
|
|
289
293
|
example, a field's key in `fields: {}` is its identity; its display `name` can
|
|
290
294
|
change.
|
|
291
295
|
|
|
292
|
-
|
|
296
|
+
Organization credentials use `secret("variableName")`; the build emits a
|
|
297
|
+
sensitive Terraform variable and reads its value from `TF_VAR_variableName`.
|
|
298
|
+
Pull never serializes write-only credentials. It leaves `redactedSecret(...)`
|
|
299
|
+
or `unavailableValue(...)` markers and reports those addresses as skipped until
|
|
300
|
+
the missing input is supplied, while still adopting fully recoverable org
|
|
301
|
+
resources.
|
|
302
|
+
|
|
303
|
+
Configured builders such as `agent` and `automation` return
|
|
293
304
|
`{ ref(refName), def(refName) }`. Workspace discovery supplies the ref name from
|
|
294
305
|
the file path. There is no `.deploy()` method.
|
|
295
306
|
|
|
296
307
|
## Automation example
|
|
297
308
|
|
|
298
|
-
The Terraform path
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
Terraform mappings land.
|
|
309
|
+
The Terraform path round-trips typed triggers and actions. Public authoring uses
|
|
310
|
+
direct fluent action methods; provider task resource names remain an internal
|
|
311
|
+
wire concern.
|
|
302
312
|
|
|
303
313
|
```ts
|
|
304
|
-
import {
|
|
314
|
+
import { automation, onDemand } from "@elementumai/edk/automations";
|
|
305
315
|
import { template } from "@elementumai/edk/core";
|
|
316
|
+
import catalog from "@catalog";
|
|
306
317
|
|
|
307
|
-
export default
|
|
318
|
+
export default automation({
|
|
308
319
|
name: "Greet New Student",
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
320
|
+
app: catalog.students,
|
|
321
|
+
revision: "1.0.0",
|
|
322
|
+
actions: actions()
|
|
323
|
+
.trigger(onDemand({ STUDENT_NAME: "text" }))
|
|
312
324
|
.setVariable("GREETING", {
|
|
313
325
|
value: (ctx) => template("Welcome, ", ctx.trigger.STUDENT_NAME),
|
|
314
326
|
})
|
|
@@ -319,14 +331,14 @@ export default defineAutomation({
|
|
|
319
331
|
}),
|
|
320
332
|
})
|
|
321
333
|
.outputs((ctx) => ({
|
|
322
|
-
message: ctx.
|
|
334
|
+
message: ctx.actions.FORMAT_GREETING.result.message,
|
|
323
335
|
})),
|
|
324
336
|
});
|
|
325
337
|
```
|
|
326
338
|
|
|
327
|
-
The file path supplies the automation ref; `
|
|
328
|
-
`
|
|
329
|
-
|
|
339
|
+
The file path supplies the automation ref; `app` is the strongly typed owning app ref.
|
|
340
|
+
`revision` is required SemVer and is the explicit publish gate. Editing
|
|
341
|
+
actions or triggers updates the draft; bump the revision only when that draft
|
|
330
342
|
should be published.
|
|
331
343
|
|
|
332
344
|
## Agent example
|
|
@@ -335,21 +347,21 @@ Agents live under `apps/<appRef>/agents/<agentRef>.ts`. Their connector comes
|
|
|
335
347
|
from the org catalog, while app and field targets come from `@catalog`:
|
|
336
348
|
|
|
337
349
|
```ts
|
|
338
|
-
import {
|
|
350
|
+
import { agentSearchRecords, agent } from "@elementumai/edk/agents";
|
|
339
351
|
import catalog from "@catalog";
|
|
340
352
|
import { org } from "../../../org.js";
|
|
341
353
|
|
|
342
|
-
export default
|
|
354
|
+
export default agent({
|
|
343
355
|
name: "Support Agent",
|
|
344
|
-
|
|
356
|
+
app: catalog.support,
|
|
345
357
|
connector: org.connectors.claudeSonnet,
|
|
346
358
|
description: "Finds support records.",
|
|
347
359
|
instructions: "Search records and summarize the next action.",
|
|
348
360
|
tools: [
|
|
349
|
-
|
|
361
|
+
agentSearchRecords({
|
|
350
362
|
name: "find_records",
|
|
351
363
|
description: "Searches support records.",
|
|
352
|
-
|
|
364
|
+
app: catalog.support,
|
|
353
365
|
queryDescription: "Describe the record to find.",
|
|
354
366
|
fields: [
|
|
355
367
|
{
|
|
@@ -362,7 +374,7 @@ export default defineAgent({
|
|
|
362
374
|
});
|
|
363
375
|
```
|
|
364
376
|
|
|
365
|
-
The Terraform path currently round-trips create-record, search
|
|
377
|
+
The Terraform path currently round-trips create-record, record-search, and
|
|
366
378
|
run-automation agent tools. Unsupported tools and runtime-only knobs are
|
|
367
379
|
reported as build diagnostics instead of being emitted as partial resources.
|
|
368
380
|
Authored tool names use 1–64 letters, digits, or underscores, with no doubled
|
|
@@ -148,13 +148,13 @@ export interface AgentTool {
|
|
|
148
148
|
readonly fields?: readonly AgentToolField[];
|
|
149
149
|
/**
|
|
150
150
|
* Wire `Filter` — the platform's polymorphic filter JSON, typed
|
|
151
|
-
* against the same `
|
|
151
|
+
* against the same canonical `Filter` source authors use. The serializer's
|
|
152
152
|
* `structuredClone` pass-through means wire and source shapes are
|
|
153
153
|
* structurally identical; the deserializer walks this through
|
|
154
|
-
* `pull/normalize-filter.ts:normalizeFilter` to
|
|
154
|
+
* `pull/normalize-filter.ts:normalizeFilter` to resolve references in place
|
|
155
155
|
* the printer can render as a typed `(row) => ...` callback.
|
|
156
156
|
*/
|
|
157
|
-
readonly filter?: import("../../../../src/entities/shared/filters/types.js").
|
|
157
|
+
readonly filter?: import("../../../../src/entities/shared/filters/types.js").Filter;
|
|
158
158
|
/**
|
|
159
159
|
* Wire `Sort` shape — `{ orders: [{ field: <fieldId>, direction }] }`.
|
|
160
160
|
* Authored as `SortOrder | readonly SortOrder[]` on the EDK side and
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
export type { AgentAspectInput, AgentAspectUpdateInput, AgentFieldUpdateInput, ApprovalChainTemplate, Aspect, AspectCategory, AspectCloudConnection, AspectDefinitionInput, AspectDisplayBlockInput, AspectDisplayBlockPullResponse, AspectDocumentModel, AspectDocumentModelField, AspectField, AspectFieldCalculation, AspectFieldCalculationIncludeType, AspectFieldCalculationReferencedField, AspectFieldPullResponse, AspectFieldResult, AspectFlow, AspectOperationSummary, AspectPicklistDynamicConfigRef, AspectPullInput, AspectPullResponse, AspectSearchTable, AspectSearchTableField, AspectStage, AspectTypeWire, CloudMappingInput, CloudOptionsInput, ComposeAspectWireResponse, DeployedAspect, DisplayBlockPropertiesInput, PicklistValue, RecordCreateTypesInput, ServiceConfigInput, SnowflakeMappingInput, SnowflakeOptionsInput, UpdateAspectWireResponse, } from "./aspect.js";
|
|
36
36
|
export type { AspectFieldBaseInput } from "./field-base.js";
|
|
37
37
|
export type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat, CurrencyCode, } from "./format.js";
|
|
38
|
-
export type { AspectDynamicPicklistValuesRenderType, PicklistConfigInput, PicklistDynamicConfigInput, PicklistDynamicParentMapping,
|
|
38
|
+
export type { AspectDynamicPicklistValuesRenderType, PicklistConfigInput, PicklistDynamicConfigInput, PicklistDynamicParentMapping, PicklistSortInput, PicklistStaticConfigInput, PicklistValueExInput, } from "./picklist-config.js";
|
|
39
39
|
export type { AspectAttachmentFieldInput, AspectBooleanFieldInput, AspectCalculatedFieldInput, AspectDateFieldInput, AspectDateTimeFieldInput, AspectDecimalFieldInput, AspectFieldCalculationIncludeTypeInput, AspectFieldCalculationInput, AspectFieldCalculationParameterInput, AspectFieldInput, AspectFieldInputKey, AspectGroupFieldInput, AspectHandleFieldInput, AspectHtmlFieldInput, AspectJsonFieldInput, AspectMultiPicklistFieldInput, AspectNumberFieldInput, AspectPicklistBaseFieldInput, AspectPicklistFieldInput, AspectTextFieldInput, AspectUserFieldInput, } from "./field-types.js";
|
|
@@ -8,15 +8,7 @@
|
|
|
8
8
|
* paths intentionally not surfaced — see comments on
|
|
9
9
|
* `PicklistConfigInput`.
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
* Free-form filter shape forwarded verbatim to ultron's `Filter` wire
|
|
13
|
-
* type. The EDK has its own filter authoring system under
|
|
14
|
-
* `src/core/filters/` that emits this shape; tightening this slot to
|
|
15
|
-
* the EDK's `FilterExpr` would couple the entity-client to the core
|
|
16
|
-
* filter module, so we leave it loose here and let the serializer-side
|
|
17
|
-
* helpers project on this slot when needed.
|
|
18
|
-
*/
|
|
19
|
-
export type PicklistFilterInput = Readonly<Record<string, unknown>>;
|
|
11
|
+
import type { Filter } from "../../../../src/entities/shared/filters/types.js";
|
|
20
12
|
/** Free-form sort spec forwarded verbatim to ultron's `Sort` type. */
|
|
21
13
|
export type PicklistSortInput = Readonly<Record<string, unknown>>;
|
|
22
14
|
/**
|
|
@@ -44,7 +36,7 @@ export interface PicklistDynamicParentMapping {
|
|
|
44
36
|
*/
|
|
45
37
|
export interface PicklistStaticConfigInput {
|
|
46
38
|
readonly parentFieldId?: string;
|
|
47
|
-
readonly filter?:
|
|
39
|
+
readonly filter?: Filter;
|
|
48
40
|
readonly sort?: PicklistSortInput;
|
|
49
41
|
}
|
|
50
42
|
/**
|
|
@@ -61,7 +53,7 @@ export interface PicklistDynamicConfigInput {
|
|
|
61
53
|
readonly parentMappings?: readonly PicklistDynamicParentMapping[];
|
|
62
54
|
readonly autoRelate?: boolean;
|
|
63
55
|
readonly valuesRenderType?: AspectDynamicPicklistValuesRenderType;
|
|
64
|
-
readonly filter?:
|
|
56
|
+
readonly filter?: Filter;
|
|
65
57
|
readonly sort?: PicklistSortInput;
|
|
66
58
|
}
|
|
67
59
|
/**
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* "View" variants. Each field documents which endpoints drive it.
|
|
17
17
|
*/
|
|
18
18
|
import type { AutomationOwnerType, Owner } from "../../../../fs/entity.js";
|
|
19
|
+
import type { Filter } from "../../../../src/entities/shared/filters/types.js";
|
|
19
20
|
import type { WorkflowFieldType } from "../../../../src/entities/shared/types/field-types.js";
|
|
20
21
|
export interface TriggerParameter {
|
|
21
22
|
readonly id: string;
|
|
@@ -77,15 +78,6 @@ export interface WorkflowTask {
|
|
|
77
78
|
readonly child?: boolean;
|
|
78
79
|
readonly [key: string]: unknown;
|
|
79
80
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Filter shape carried on a SWITCH child case. The full-state response
|
|
82
|
-
* embeds the same `FilterReference` payload mobius persists; the
|
|
83
|
-
* deserializer walks it for embedded value/task references.
|
|
84
|
-
*/
|
|
85
|
-
export type WorkflowFilter = {
|
|
86
|
-
readonly type: string;
|
|
87
|
-
readonly [key: string]: unknown;
|
|
88
|
-
};
|
|
89
81
|
/**
|
|
90
82
|
* A switch case / forEach body — the grouped child structure mobius
|
|
91
83
|
* returns under each operator task on the full-state view.
|
|
@@ -98,7 +90,7 @@ export type WorkflowFilter = {
|
|
|
98
90
|
*/
|
|
99
91
|
export interface WorkflowOperatorChildView {
|
|
100
92
|
readonly label: string | null;
|
|
101
|
-
readonly filter?:
|
|
93
|
+
readonly filter?: Filter;
|
|
102
94
|
readonly tasks: readonly WorkflowTaskView[];
|
|
103
95
|
}
|
|
104
96
|
/**
|
|
@@ -157,7 +149,7 @@ export interface Workflow {
|
|
|
157
149
|
* `workflowCurrent` and `workflowDraft` are antman-aliased fields
|
|
158
150
|
* (`current` / `draft` on the underlying GraphQL `Automation`).
|
|
159
151
|
* Each carries its own `Workflow.id` (a versioned workflow id) —
|
|
160
|
-
* that's what `
|
|
152
|
+
* that's what `automation.fromJSON(workflowId)` needs. Pull
|
|
161
153
|
* flows prefer `workflowDraft.id` when present (the in-progress
|
|
162
154
|
* edit) and fall back to `workflowCurrent.id` (the deployed live
|
|
163
155
|
* version).
|
|
@@ -103,7 +103,7 @@ export interface SkillTool {
|
|
|
103
103
|
readonly displayName?: string;
|
|
104
104
|
};
|
|
105
105
|
readonly fields?: readonly SkillToolField[];
|
|
106
|
-
readonly filter?: import("../../../../src/entities/shared/filters/types.js").
|
|
106
|
+
readonly filter?: import("../../../../src/entities/shared/filters/types.js").Filter;
|
|
107
107
|
readonly filterVariables?: readonly SkillToolFilterVariable[];
|
|
108
108
|
readonly sort?: {
|
|
109
109
|
readonly orders: ReadonlyArray<{
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* for org-scoped skills. The EDK builder today only supports
|
|
19
19
|
* authoring app-scoped skills, so the pull deserializer drops
|
|
20
20
|
* org-scoped skills with a structured miss (the skill body is still
|
|
21
|
-
* readable, but no `
|
|
21
|
+
* readable, but no `skill({...})` source is emitted).
|
|
22
22
|
*/
|
|
23
23
|
import type { Connection } from "../../../models/connection.js";
|
|
24
24
|
import type { SkillTool } from "./skill-tool.js";
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
* for org-scoped skills. The EDK builder today only supports
|
|
19
19
|
* authoring app-scoped skills, so the pull deserializer drops
|
|
20
20
|
* org-scoped skills with a structured miss (the skill body is still
|
|
21
|
-
* readable, but no `
|
|
21
|
+
* readable, but no `skill({...})` source is emitted).
|
|
22
22
|
*/
|
|
23
23
|
export {};
|
package/dist-sdk/fs/entity.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* An EDK entity is one of the top-level objects defined under
|
|
15
15
|
* `elementum-entity-client/clients/<x>/`: agent, aspect (app),
|
|
16
|
-
* automation, skill,
|
|
16
|
+
* automation, skill, user, group. Each is the canonical shape
|
|
17
17
|
* for that thing as it exists in the user's Elementum org. The
|
|
18
18
|
* `entityType` discriminator is added by the client function on the
|
|
19
19
|
* way out (it's not on antman's wire) so downstream code can
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* Adding a new client (e.g. once wolverine flows ship) means
|
|
29
29
|
* extending this union and the `WritableEdkEntityType` filter below.
|
|
30
30
|
*/
|
|
31
|
-
export type EdkEntityType = "agent" | "approvalChain" | "aspect" | "automation" | "
|
|
31
|
+
export type EdkEntityType = "agent" | "approvalChain" | "aspect" | "automation" | "group" | "searchTable" | "skill" | "table" | "user";
|
|
32
32
|
/**
|
|
33
33
|
* Entity types that have a `generated/` source representation. Users
|
|
34
34
|
* and groups are discovery-only — they don't get pulled or authored —
|
package/dist-sdk/fs/entity.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* An EDK entity is one of the top-level objects defined under
|
|
15
15
|
* `elementum-entity-client/clients/<x>/`: agent, aspect (app),
|
|
16
|
-
* automation, skill,
|
|
16
|
+
* automation, skill, user, group. Each is the canonical shape
|
|
17
17
|
* for that thing as it exists in the user's Elementum org. The
|
|
18
18
|
* `entityType` discriminator is added by the client function on the
|
|
19
19
|
* way out (it's not on antman's wire) so downstream code can
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic, cross-entity "what the pull couldn't resolve" mechanism.
|
|
3
|
+
*
|
|
4
|
+
* Every pull flow (automation, skill, flow, agent, …) threads a single
|
|
5
|
+
* `MissingDataCollector` through its stages. Each stage records what
|
|
6
|
+
* it couldn't resolve — an aspect antman returned 404 for, a field ref
|
|
7
|
+
* that wasn't in any app's field bag, a task type this EDK version
|
|
8
|
+
* doesn't support, a missing AI provider connector, whatever. The
|
|
9
|
+
* orchestrator snapshots the collector at the end and surfaces the
|
|
10
|
+
* report alongside the file paths it wrote.
|
|
11
|
+
*
|
|
12
|
+
* The design principle: never abort a pull because one piece of data
|
|
13
|
+
* is missing. Deliver every file the collected data supports, and
|
|
14
|
+
* hand the agent a structured report so it can tell the user
|
|
15
|
+
* precisely what's missing and why. Broken imports, fabricated
|
|
16
|
+
* handles, and silent omissions are all ruled out by construction —
|
|
17
|
+
* callers must either (a) emit real data from the catalog or (b)
|
|
18
|
+
* record a miss and degrade the output honestly.
|
|
19
|
+
*
|
|
20
|
+
* `MissingCategory` is a flat string union. Top-level entity misses
|
|
21
|
+
* reuse `EdkEntityType` directly (a missing aspect is `"aspect"`, a
|
|
22
|
+
* missing referenced skill is `"skill"`); other misses use bare
|
|
23
|
+
* strings (`"task"`, `"trigger"`, `"fieldRef"`, `"valueRef"`). A
|
|
24
|
+
* compile-time check below guards against drift — if `EdkEntityType`
|
|
25
|
+
* ever gains a value that overlaps with the bare strings, the build
|
|
26
|
+
* fails.
|
|
27
|
+
*/
|
|
28
|
+
import type { EdkEntityType } from "../fs/entity.js";
|
|
29
|
+
/**
|
|
30
|
+
* Closed set of category labels for missed data. Top-level entity
|
|
31
|
+
* misses reuse `EdkEntityType`; everything else uses bare strings.
|
|
32
|
+
*/
|
|
33
|
+
export type MissingCategory = EdkEntityType | "task" | "trigger" | "fieldRef" | "valueRef" | "stage" | "displayBlock";
|
|
34
|
+
/**
|
|
35
|
+
* A single item of data the pull flow couldn't resolve. Generic
|
|
36
|
+
* across entity types so every pull can report its own categories
|
|
37
|
+
* without adding new machinery.
|
|
38
|
+
*/
|
|
39
|
+
export interface MissingItem {
|
|
40
|
+
/** What kind of thing is missing. Closed union — see `MissingCategory`. */
|
|
41
|
+
readonly category: MissingCategory;
|
|
42
|
+
/**
|
|
43
|
+
* The unresolved identifier. Usually a UUID, sometimes a refKey or
|
|
44
|
+
* type name (e.g. a `WorkflowTaskType` we don't support).
|
|
45
|
+
*/
|
|
46
|
+
readonly id: string;
|
|
47
|
+
/**
|
|
48
|
+
* Human-readable explanation of why the item couldn't be resolved.
|
|
49
|
+
* Surfaces in the agent-facing output; write it as something the
|
|
50
|
+
* agent can relay to a user without translation.
|
|
51
|
+
*/
|
|
52
|
+
readonly reason: string;
|
|
53
|
+
/**
|
|
54
|
+
* Optional: where in the source entity the miss occurred — a task
|
|
55
|
+
* refKey, `"trigger"`, `"automation owner"`, etc. Helps the agent
|
|
56
|
+
* point the user at the right part of the pulled bundle.
|
|
57
|
+
*/
|
|
58
|
+
readonly context?: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Snapshot of everything the pull couldn't resolve. Returned from the
|
|
62
|
+
* orchestrator as part of the `PullResult`.
|
|
63
|
+
*/
|
|
64
|
+
export interface MissingDataReport {
|
|
65
|
+
readonly items: readonly MissingItem[];
|
|
66
|
+
/** True iff no items were recorded — the pull completed cleanly. */
|
|
67
|
+
readonly isEmpty: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Mutable collector threaded through a single pull call. Every stage
|
|
71
|
+
* (`buildAppCatalog`, `deserializeAutomation`, the printer) receives
|
|
72
|
+
* the same instance and appends to it; the orchestrator snapshots via
|
|
73
|
+
* `build()` just before returning.
|
|
74
|
+
*/
|
|
75
|
+
export declare class MissingDataCollector {
|
|
76
|
+
private readonly items;
|
|
77
|
+
record(item: MissingItem): void;
|
|
78
|
+
build(): MissingDataReport;
|
|
79
|
+
}
|
|
80
|
+
/** An empty report, useful as a default in call sites that don't collect. */
|
|
81
|
+
export declare const EMPTY_MISSING_REPORT: MissingDataReport;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic, cross-entity "what the pull couldn't resolve" mechanism.
|
|
3
|
+
*
|
|
4
|
+
* Every pull flow (automation, skill, flow, agent, …) threads a single
|
|
5
|
+
* `MissingDataCollector` through its stages. Each stage records what
|
|
6
|
+
* it couldn't resolve — an aspect antman returned 404 for, a field ref
|
|
7
|
+
* that wasn't in any app's field bag, a task type this EDK version
|
|
8
|
+
* doesn't support, a missing AI provider connector, whatever. The
|
|
9
|
+
* orchestrator snapshots the collector at the end and surfaces the
|
|
10
|
+
* report alongside the file paths it wrote.
|
|
11
|
+
*
|
|
12
|
+
* The design principle: never abort a pull because one piece of data
|
|
13
|
+
* is missing. Deliver every file the collected data supports, and
|
|
14
|
+
* hand the agent a structured report so it can tell the user
|
|
15
|
+
* precisely what's missing and why. Broken imports, fabricated
|
|
16
|
+
* handles, and silent omissions are all ruled out by construction —
|
|
17
|
+
* callers must either (a) emit real data from the catalog or (b)
|
|
18
|
+
* record a miss and degrade the output honestly.
|
|
19
|
+
*
|
|
20
|
+
* `MissingCategory` is a flat string union. Top-level entity misses
|
|
21
|
+
* reuse `EdkEntityType` directly (a missing aspect is `"aspect"`, a
|
|
22
|
+
* missing referenced skill is `"skill"`); other misses use bare
|
|
23
|
+
* strings (`"task"`, `"trigger"`, `"fieldRef"`, `"valueRef"`). A
|
|
24
|
+
* compile-time check below guards against drift — if `EdkEntityType`
|
|
25
|
+
* ever gains a value that overlaps with the bare strings, the build
|
|
26
|
+
* fails.
|
|
27
|
+
*/
|
|
28
|
+
const _categoryOverlapCheck = true;
|
|
29
|
+
void _categoryOverlapCheck;
|
|
30
|
+
/**
|
|
31
|
+
* Mutable collector threaded through a single pull call. Every stage
|
|
32
|
+
* (`buildAppCatalog`, `deserializeAutomation`, the printer) receives
|
|
33
|
+
* the same instance and appends to it; the orchestrator snapshots via
|
|
34
|
+
* `build()` just before returning.
|
|
35
|
+
*/
|
|
36
|
+
export class MissingDataCollector {
|
|
37
|
+
items = [];
|
|
38
|
+
record(item) {
|
|
39
|
+
this.items.push(item);
|
|
40
|
+
}
|
|
41
|
+
build() {
|
|
42
|
+
return {
|
|
43
|
+
items: this.items.slice(),
|
|
44
|
+
isEmpty: this.items.length === 0,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/** An empty report, useful as a default in call sites that don't collect. */
|
|
49
|
+
export const EMPTY_MISSING_REPORT = {
|
|
50
|
+
items: Object.freeze([]),
|
|
51
|
+
isEmpty: true,
|
|
52
|
+
};
|
package/dist-sdk/pull/util.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* translates wire data into EDK TypeScript source — both the
|
|
4
4
|
* `defineX.fromJSON` deserializer pipeline and the
|
|
5
5
|
* `fetch-app-definition` renderer that emits standalone
|
|
6
|
-
* `
|
|
6
|
+
* `app({...})` files.
|
|
7
7
|
*
|
|
8
8
|
* Helpers that turn out to be useful across more than one of those
|
|
9
9
|
* paths live here so we have a single implementation of each
|
package/dist-sdk/pull/util.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* translates wire data into EDK TypeScript source — both the
|
|
4
4
|
* `defineX.fromJSON` deserializer pipeline and the
|
|
5
5
|
* `fetch-app-definition` renderer that emits standalone
|
|
6
|
-
* `
|
|
6
|
+
* `app({...})` files.
|
|
7
7
|
*
|
|
8
8
|
* Helpers that turn out to be useful across more than one of those
|
|
9
9
|
* paths live here so we have a single implementation of each
|
|
@@ -173,10 +173,10 @@ export function unwrapConnection(conn) {
|
|
|
173
173
|
* - `aspects/serializer/index.ts` (no-delete picklist guard) and
|
|
174
174
|
* `normalizePicklistValueIds` drop non-UUID `id` slots on
|
|
175
175
|
* picklist values for the same reason.
|
|
176
|
-
* - `aspects/index.ts` routes `
|
|
176
|
+
* - `aspects/index.ts` routes `app({...}).deploy()` to PUT
|
|
177
177
|
* when `app.id` is a real aspect UUID (existing aspect, update
|
|
178
178
|
* path) and POST when it's a placeholder (new aspect, create
|
|
179
|
-
* path). Pulled sources from `
|
|
179
|
+
* path). Pulled sources from `app.fromJSON` always carry
|
|
180
180
|
* a real UUID, so the round-trip naturally goes through update.
|
|
181
181
|
*
|
|
182
182
|
* Lives in `pull/util.ts` next to the other shared identifier helpers
|