@elementumai/edk 0.9.2 → 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 +34 -26
- package/dist-sdk/elementum-entity-client/clients/automation/models/automation.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/pull/util.d.ts +1 -1
- package/dist-sdk/pull/util.js +3 -3
- package/dist-sdk/src/catalog/factories.d.ts +49 -10
- package/dist-sdk/src/catalog/factories.js +94 -13
- package/dist-sdk/src/catalog/from-authoring.d.ts +5 -5
- package/dist-sdk/src/catalog/from-authoring.js +7 -7
- 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 +62 -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 +2 -2
- package/dist-sdk/src/catalog/token.js +11 -4
- package/dist-sdk/src/catalog/types.d.ts +33 -4
- package/dist-sdk/src/catalog/types.js +5 -0
- package/dist-sdk/src/core/index.d.ts +10 -10
- package/dist-sdk/src/core/index.js +9 -9
- package/dist-sdk/src/core/render-tree.d.ts +1 -1
- package/dist-sdk/src/core/render-tree.js +1 -2
- 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 +66 -30
- package/dist-sdk/src/core/types/app.js +2 -2
- 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 +20 -13
- package/dist-sdk/src/engine/entity.d.ts +1 -1
- package/dist-sdk/src/engine/pull/context.d.ts +34 -0
- package/dist-sdk/src/engine/pull/context.js +14 -0
- package/dist-sdk/src/engine/pull/org.d.ts +9 -0
- package/dist-sdk/src/engine/pull/org.js +33 -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 +6 -2
- package/dist-sdk/src/engine/tf/expr.js +18 -13
- 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/entities/access-policy/build.d.ts +4 -5
- package/dist-sdk/src/entities/access-policy/build.js +1 -1
- package/dist-sdk/src/entities/access-policy/from-tf.d.ts +4 -4
- package/dist-sdk/src/entities/access-policy/from-tf.js +12 -13
- package/dist-sdk/src/entities/access-policy/principal.d.ts +14 -4
- package/dist-sdk/src/entities/access-policy/to-tf.d.ts +14 -2
- package/dist-sdk/src/entities/access-policy/to-tf.js +36 -6
- package/dist-sdk/src/entities/agent/build.d.ts +3 -3
- package/dist-sdk/src/entities/agent/build.js +5 -5
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +6 -1
- package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +68 -18
- package/dist-sdk/src/entities/agent/from-tf.d.ts +3 -1
- package/dist-sdk/src/entities/agent/from-tf.js +12 -4
- package/dist-sdk/src/entities/agent/index.d.ts +2 -2
- package/dist-sdk/src/entities/agent/index.js +1 -1
- package/dist-sdk/src/entities/agent/module.js +2 -0
- package/dist-sdk/src/entities/agent/to-tf.d.ts +5 -2
- package/dist-sdk/src/entities/agent/to-tf.js +56 -8
- package/dist-sdk/src/entities/agent/tools.d.ts +38 -23
- package/dist-sdk/src/entities/agent/tools.js +21 -7
- 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 +8 -7
- package/dist-sdk/src/entities/agent-tool/from-tf.js +48 -6
- package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +10 -2
- package/dist-sdk/src/entities/agent-tool/to-tf.js +76 -28
- package/dist-sdk/src/entities/agent-tool/types.d.ts +0 -1
- package/dist-sdk/src/entities/agent-tool/types.js +10 -37
- package/dist-sdk/src/entities/app/build.d.ts +97 -42
- package/dist-sdk/src/entities/app/build.js +25 -14
- package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +32 -24
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +1 -1
- package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +2 -0
- package/dist-sdk/src/entities/app/index.d.ts +11 -8
- package/dist-sdk/src/entities/app/index.js +10 -7
- package/dist-sdk/src/entities/app/module.js +2 -2
- package/dist-sdk/src/entities/app/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/app/to-tf.js +22 -6
- package/dist-sdk/src/entities/approval-chain/build.d.ts +1 -1
- package/dist-sdk/src/entities/approval-chain/build.js +5 -5
- package/dist-sdk/src/entities/approval-chain/index.d.ts +1 -1
- package/dist-sdk/src/entities/approval-chain/index.js +1 -1
- package/dist-sdk/src/entities/approval-chain/printer.js +2 -2
- package/dist-sdk/src/entities/automation/build.d.ts +172 -94
- package/dist-sdk/src/entities/automation/build.js +159 -68
- 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 +11 -4
- package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +18 -14
- package/dist-sdk/src/entities/automation/deserializer/print-automation.js +164 -198
- package/dist-sdk/src/entities/automation/from-tf.d.ts +26 -2
- package/dist-sdk/src/entities/automation/from-tf.js +510 -80
- package/dist-sdk/src/entities/automation/index.d.ts +9 -12
- package/dist-sdk/src/entities/automation/index.js +11 -13
- package/dist-sdk/src/entities/automation/module.js +74 -6
- 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 +13 -22
- package/dist-sdk/src/entities/automation/serialize.js +1 -1
- package/dist-sdk/src/entities/automation/tasks.d.ts +153 -89
- package/dist-sdk/src/entities/automation/tasks.js +64 -11
- package/dist-sdk/src/entities/automation/to-tf.d.ts +10 -1
- package/dist-sdk/src/entities/automation/to-tf.js +342 -71
- package/dist-sdk/src/entities/automation/triggers.d.ts +17 -10
- package/dist-sdk/src/entities/automation/triggers.js +7 -1
- 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 +34 -7
- package/dist-sdk/src/entities/dashboard/build.js +16 -1
- package/dist-sdk/src/entities/dashboard/from-tf.js +22 -4
- package/dist-sdk/src/entities/dashboard/to-tf.d.ts +16 -3
- package/dist-sdk/src/entities/dashboard/to-tf.js +37 -10
- package/dist-sdk/src/entities/datamine/module.js +1 -1
- package/dist-sdk/src/entities/dynamic-layout/build.d.ts +4 -3
- package/dist-sdk/src/entities/dynamic-layout/build.js +1 -1
- package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +2 -0
- package/dist-sdk/src/entities/dynamic-layout/dialect.js +43 -5
- package/dist-sdk/src/entities/dynamic-layout/from-tf.js +12 -6
- package/dist-sdk/src/entities/dynamic-layout/to-tf.js +10 -10
- package/dist-sdk/src/entities/element/build.d.ts +25 -32
- package/dist-sdk/src/entities/element/build.js +15 -32
- package/dist-sdk/src/entities/element/index.d.ts +7 -5
- package/dist-sdk/src/entities/element/index.js +7 -4
- package/dist-sdk/src/entities/element/module.js +7 -3
- package/dist-sdk/src/entities/element/to-tf.d.ts +2 -1
- package/dist-sdk/src/entities/element/to-tf.js +7 -3
- package/dist-sdk/src/entities/field/build.d.ts +51 -24
- 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.js +10 -3
- package/dist-sdk/src/entities/field/from-tf.js +156 -10
- 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.js +23 -6
- package/dist-sdk/src/entities/field/record-shape.d.ts +24 -10
- package/dist-sdk/src/entities/field/to-tf.d.ts +40 -1
- package/dist-sdk/src/entities/field/to-tf.js +293 -35
- package/dist-sdk/src/entities/field/types.d.ts +1 -1
- package/dist-sdk/src/entities/field/types.js +7 -1
- package/dist-sdk/src/entities/file-reader/build.d.ts +5 -0
- package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +1 -1
- 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/index.d.ts +1 -0
- package/dist-sdk/src/entities/org/index.js +1 -0
- package/dist-sdk/src/entities/org/phone-provider.js +4 -7
- package/dist-sdk/src/entities/organization/build.d.ts +214 -2
- package/dist-sdk/src/entities/organization/build.js +145 -4
- package/dist-sdk/src/entities/organization/index.d.ts +1 -1
- package/dist-sdk/src/entities/organization/index.js +1 -1
- package/dist-sdk/src/entities/organization/module.js +4 -1
- package/dist-sdk/src/entities/organization/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/organization/to-tf.js +118 -1
- package/dist-sdk/src/entities/phone-service/build.d.ts +1 -1
- package/dist-sdk/src/entities/phone-service/build.js +2 -2
- package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +5 -3
- package/dist-sdk/src/entities/phone-service/index.d.ts +1 -1
- package/dist-sdk/src/entities/phone-service/index.js +1 -1
- package/dist-sdk/src/entities/phone-service/types.js +1 -1
- package/dist-sdk/src/entities/record-create-form/to-tf.js +9 -1
- package/dist-sdk/src/entities/relationship/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/relationship/to-tf.js +5 -13
- package/dist-sdk/src/entities/search-table/build.d.ts +4 -4
- package/dist-sdk/src/entities/search-table/build.js +13 -13
- 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/printer.js +5 -5
- package/dist-sdk/src/entities/service-account/to-tf.d.ts +21 -0
- package/dist-sdk/src/entities/service-account/to-tf.js +32 -1
- 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 +10 -3
- package/dist-sdk/src/entities/shared/filters/ast.js +1 -0
- package/dist-sdk/src/entities/shared/filters/index.d.ts +2 -1
- package/dist-sdk/src/entities/shared/filters/index.js +11 -4
- 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 +2 -2
- package/dist-sdk/src/entities/skill/build.js +3 -3
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +1 -1
- package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +26 -7
- package/dist-sdk/src/entities/skill/index.d.ts +1 -1
- package/dist-sdk/src/entities/skill/index.js +1 -1
- package/dist-sdk/src/entities/skill/module.js +2 -2
- package/dist-sdk/src/entities/skill/to-tf.d.ts +1 -1
- package/dist-sdk/src/entities/skill/to-tf.js +2 -2
- package/dist-sdk/src/entities/skill/tools.d.ts +4 -3
- package/dist-sdk/src/entities/skill/tools.js +4 -3
- package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +13 -0
- package/dist-sdk/src/entities/skill-tool/from-tf.js +42 -0
- package/dist-sdk/src/entities/skill-tool/to-tf.js +6 -6
- package/dist-sdk/src/entities/table/build.d.ts +1 -1
- package/dist-sdk/src/entities/table/build.js +9 -9
- package/dist-sdk/src/entities/table/catalog-render.js +9 -1
- package/dist-sdk/src/entities/table/deserializer/normalize.js +4 -4
- package/dist-sdk/src/entities/table/fields/types.d.ts +1 -1
- package/dist-sdk/src/entities/table/fields/types.js +1 -1
- package/dist-sdk/src/entities/table/index.d.ts +2 -2
- package/dist-sdk/src/entities/table/index.js +3 -3
- package/dist-sdk/src/entities/table/module.js +1 -1
- package/dist-sdk/src/entities/table/to-tf.js +22 -30
- package/dist-sdk/src/entities/task/build.d.ts +1 -1
- package/dist-sdk/src/entities/task/build.js +5 -5
- package/dist-sdk/src/entities/task/index.d.ts +1 -1
- package/dist-sdk/src/entities/task/index.js +1 -1
- 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.js +68 -18
- package/dist-sdk/src/entities/view/module.d.ts +6 -13
- package/dist-sdk/src/entities/view/module.js +7 -14
- 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 +21 -19
- package/dist-sdk/src/entities/view/to-tf.js +61 -26
- package/dist-sdk/src/entities/view/types.js +3 -0
- package/dist-sdk/src/entities/visual-flow/build.d.ts +1 -1
- package/dist-sdk/src/entities/visual-flow/build.js +8 -8
- package/dist-sdk/src/entities/visual-flow/index.d.ts +1 -1
- package/dist-sdk/src/entities/visual-flow/index.js +1 -1
- package/dist-sdk/src/entities/visual-flow/module.js +1 -1
- package/dist-sdk/src/entities/visual-flow/printer.js +3 -3
- package/dist-sdk/src/entities/visual-flow/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/visual-flow/to-tf.js +3 -7
- package/dist-sdk/src/entities/widget/to-tf.d.ts +1 -0
- package/dist-sdk/src/entities/widget/to-tf.js +9 -7
- package/dist-sdk/src/graph/index.d.ts +5 -1
- package/dist-sdk/src/graph/index.js +4 -1
- package/dist-sdk/src/graph/modules.js +6 -1
- package/dist-sdk/src/graph/types.d.ts +52 -1
- 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 +1 -0
- package/package.json +12 -3
|
@@ -42,7 +42,7 @@ function nodeLines(node, owner, refs) {
|
|
|
42
42
|
return lines;
|
|
43
43
|
}
|
|
44
44
|
export function printVisualFlow(flow, owner, scope, refs = {}) {
|
|
45
|
-
const used = new Set(["
|
|
45
|
+
const used = new Set(["visualFlow", "visualFlowSymbol"]);
|
|
46
46
|
for (const stage of flow.stages) {
|
|
47
47
|
for (const node of Object.values(stage.nodes)) {
|
|
48
48
|
if (node.sourcePosition !== undefined || node.targetPosition !== undefined)
|
|
@@ -61,7 +61,7 @@ export function printVisualFlow(flow, owner, scope, refs = {}) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
const importOrder = [
|
|
64
|
-
"
|
|
64
|
+
"visualFlow",
|
|
65
65
|
"flowAgentAction",
|
|
66
66
|
"flowApiAction",
|
|
67
67
|
"flowAutomationAction",
|
|
@@ -76,7 +76,7 @@ export function printVisualFlow(flow, owner, scope, refs = {}) {
|
|
|
76
76
|
`import { ${importOrder.filter((name) => used.has(name)).join(", ")} } from "@elementumai/edk/visualFlows";`,
|
|
77
77
|
'import catalog from "@catalog";',
|
|
78
78
|
"",
|
|
79
|
-
"export default
|
|
79
|
+
"export default visualFlow({",
|
|
80
80
|
` ${scope}: catalog${member(owner)},`,
|
|
81
81
|
" stages: {",
|
|
82
82
|
];
|
|
@@ -7,6 +7,7 @@ export interface VisualFlowToTfContext {
|
|
|
7
7
|
readonly parentScope?: ChildResourceScope | "table";
|
|
8
8
|
readonly orgRefs: OrgRefLookup;
|
|
9
9
|
readonly workspaceAspects?: ReadonlyMap<string, WorkspaceAspect>;
|
|
10
|
+
readonly diagnostics?: string[];
|
|
10
11
|
}
|
|
11
12
|
export declare function visualFlowToTf(entity: DeployableEntity, ctx: VisualFlowToTfContext): {
|
|
12
13
|
blocks: readonly TfBlock[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { workspaceAspectKey } from "../../engine/build/context.js";
|
|
2
|
+
import { resolveForeignRef } from "../shared/foreign-ref.js";
|
|
2
3
|
import { EntityTfError } from "../../engine/entity.js";
|
|
3
|
-
import { appScopedResourceLabel, expr,
|
|
4
|
+
import { appScopedResourceLabel, expr, tsLabelToTfLabel } from "../../engine/tf/index.js";
|
|
4
5
|
import { APP_RESOURCE_TYPE } from "../app/module.js";
|
|
5
6
|
import { ELEMENT_RESOURCE_TYPE } from "../element/module.js";
|
|
6
7
|
import { VISUAL_FLOW_RESOURCE_TYPE } from "./module.js";
|
|
@@ -24,12 +25,7 @@ function objectRef(ref, ctx) {
|
|
|
24
25
|
if (local !== undefined)
|
|
25
26
|
return expr.resourceAttr(type, local.tfLabel, ["id"]);
|
|
26
27
|
const name = ref.name ?? ref.refName;
|
|
27
|
-
|
|
28
|
-
if (kind === "element")
|
|
29
|
-
ctx.orgRefs.foreignElement(label, name);
|
|
30
|
-
else
|
|
31
|
-
ctx.orgRefs.foreignApp(label, name);
|
|
32
|
-
return expr.dataAttr(type, label, ["id"]);
|
|
28
|
+
return resolveForeignRef(kind, { name, namespace: ref.namespace }, ctx.orgRefs, ctx.diagnostics, "visual flow object").value;
|
|
33
29
|
}
|
|
34
30
|
function actionToTf(action, ctx) {
|
|
35
31
|
switch (action.kind) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { workspaceAspectKey } from "../../engine/build/context.js";
|
|
2
|
+
import { resolveForeignRef } from "../shared/foreign-ref.js";
|
|
2
3
|
import { expr, isCanonicalTsLabel, sanitizeName, scopedResourceLabel, tsLabelToTfLabel, } from "../../engine/tf/index.js";
|
|
3
4
|
import { AUTOMATION_RESOURCE_TYPE } from "../automation/types.js";
|
|
4
5
|
import { fieldRefToTfValue } from "../field/to-tf.js";
|
|
@@ -127,16 +128,13 @@ function resolveAspect(value, where, opts) {
|
|
|
127
128
|
opts.diagnostics.push(`${where}: target has no name/refName; dropped`);
|
|
128
129
|
return undefined;
|
|
129
130
|
}
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
opts.orgRefs.foreignApp(label, name);
|
|
133
|
-
else
|
|
134
|
-
opts.orgRefs.foreignElement(label, name);
|
|
131
|
+
const namespace = value?.namespace;
|
|
132
|
+
const foreign = resolveForeignRef(kind, { name, namespace }, opts.orgRefs, opts.diagnostics, where);
|
|
135
133
|
return {
|
|
136
|
-
value:
|
|
134
|
+
value: foreign.value,
|
|
137
135
|
kind,
|
|
138
136
|
refName,
|
|
139
|
-
tfLabel:
|
|
137
|
+
tfLabel: foreign.tfLabel,
|
|
140
138
|
managed: false,
|
|
141
139
|
};
|
|
142
140
|
}
|
|
@@ -147,6 +145,10 @@ function resolveColumns(columns, target, where, opts) {
|
|
|
147
145
|
out.push(value);
|
|
148
146
|
continue;
|
|
149
147
|
}
|
|
148
|
+
if (value == null) {
|
|
149
|
+
opts.diagnostics.push(`${where}[${index}]: field reference is unresolved (skipped during extract); dropped`);
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
150
152
|
const refName = value.refName ?? "";
|
|
151
153
|
if (refName === "") {
|
|
152
154
|
opts.diagnostics.push(`${where}[${index}]: field has no refName; dropped`);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type CatalogRenderArgs, type CatalogRenderResult, type EntityKindModule, type KindId, type ParentEdge, matchType } from "./types.js";
|
|
5
5
|
export type { AuthoringFacet, CanvasComponentId, CanvasFacet, CanvasView, CatalogAuthoringArgs, CatalogFacet, CatalogRenderArgs, CatalogRenderResult, CatalogRoot, DataFacet, DataFacetCatalogKind, EntityKindId, EntityKindModule, KindId, LifecycleFacet, OrgIdentityBag, ParentEdge, ParentageFacet, ResourceFacet, StreamFacet, StreamMatch, StreamPartition, StreamRootExtractResult, ToTfResult, } from "./types.js";
|
|
6
|
+
export type { ReferenceLookupStrategy } from "./types.js";
|
|
6
7
|
export { NO_CANVAS, NO_CATALOG, NO_DATA, NO_LIFECYCLE, defaultMatchResourceType, implementedResourceTypes, isResourceAdoptable, isTfLive, knownResourceTypes, matchType, singleResourceType, } from "./types.js";
|
|
7
8
|
export { KIND_MODULES } from "./modules.js";
|
|
8
9
|
/** @deprecated Use {@link KIND_MODULES}. */
|
|
@@ -15,12 +16,15 @@ export interface ResourceKindModule {
|
|
|
15
16
|
}
|
|
16
17
|
/** Modules whose data facet participates (not {@link NO_DATA}). */
|
|
17
18
|
export declare const DATA_FACET_MODULES: readonly EntityKindModule[];
|
|
19
|
+
/** Generic direct-reference registry. Resolver engines inspect strategies,
|
|
20
|
+
* never entity/provider names. */
|
|
21
|
+
export declare const REFERENCE_LOOKUP_MODULES: readonly EntityKindModule[];
|
|
18
22
|
/** Data source type → module (replaces ORG_KIND_BY_TYPE). */
|
|
19
23
|
export declare const DATA_FACET_BY_TYPE: ReadonlyMap<string, EntityKindModule>;
|
|
20
24
|
/** Org identity bags written by `edk pull org` (data.orgBag set). */
|
|
21
25
|
export declare const ORG_IDENTITY_BAGS: readonly EntityKindModule[];
|
|
22
26
|
/**
|
|
23
|
-
* `
|
|
27
|
+
* `aiProvider({ type })` identifiers → their terraform resource type —
|
|
24
28
|
* one entry per `ai-provider-*` kind, derived from the kind id so authored
|
|
25
29
|
* source never has to name a resource type directly.
|
|
26
30
|
*/
|
|
@@ -10,6 +10,9 @@ export { KIND_MODULES } from "./modules.js";
|
|
|
10
10
|
export const ENTITY_KIND_MODULES = KIND_MODULES;
|
|
11
11
|
/** Modules whose data facet participates (not {@link NO_DATA}). */
|
|
12
12
|
export const DATA_FACET_MODULES = KIND_MODULES.filter((m) => m.data.participates);
|
|
13
|
+
/** Generic direct-reference registry. Resolver engines inspect strategies,
|
|
14
|
+
* never entity/provider names. */
|
|
15
|
+
export const REFERENCE_LOOKUP_MODULES = DATA_FACET_MODULES.filter((m) => m.data.participates && (m.data.referenceLookups?.length ?? 0) > 0);
|
|
13
16
|
/** Data source type → module (replaces ORG_KIND_BY_TYPE). */
|
|
14
17
|
export const DATA_FACET_BY_TYPE = (() => {
|
|
15
18
|
const map = new Map();
|
|
@@ -24,7 +27,7 @@ export const DATA_FACET_BY_TYPE = (() => {
|
|
|
24
27
|
export const ORG_IDENTITY_BAGS = DATA_FACET_MODULES.filter((m) => m.data.participates && m.data.orgBag !== undefined);
|
|
25
28
|
const AI_PROVIDER_KIND_PREFIX = "ai-provider-";
|
|
26
29
|
/**
|
|
27
|
-
* `
|
|
30
|
+
* `aiProvider({ type })` identifiers → their terraform resource type —
|
|
28
31
|
* one entry per `ai-provider-*` kind, derived from the kind id so authored
|
|
29
32
|
* source never has to name a resource type directly.
|
|
30
33
|
*/
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { accessPolicyModule } from "../entities/access-policy/module.js";
|
|
6
6
|
import { agentModule } from "../entities/agent/module.js";
|
|
7
|
+
import { agentEvaluationModule } from "../entities/agent-evaluation/module.js";
|
|
7
8
|
import { agentA2ASkillModule } from "../entities/agent-a2a-skill/module.js";
|
|
8
9
|
import { agentToolModule } from "../entities/agent-tool/module.js";
|
|
9
10
|
import { appModule } from "../entities/app/module.js";
|
|
10
11
|
import { automationModule } from "../entities/automation/module.js";
|
|
12
|
+
import { chartModule } from "../entities/chart/module.js";
|
|
11
13
|
import { approvalChainModule } from "../entities/approval-chain/module.js";
|
|
12
14
|
import { elementModule } from "../entities/element/module.js";
|
|
13
15
|
import { dynamicLayoutModule } from "../entities/dynamic-layout/module.js";
|
|
@@ -18,7 +20,7 @@ import { dataLookupModules } from "../entities/data-lookup/module.js";
|
|
|
18
20
|
import { fieldModule } from "../entities/field/module.js";
|
|
19
21
|
import { fileReaderModule } from "../entities/file-reader/module.js";
|
|
20
22
|
import { visualFlowModule } from "../entities/visual-flow/module.js";
|
|
21
|
-
import { aiProviderModules, categoryModule, cloudLinkModule, connectorModule, groupModule, phoneProviderModule, roleModule, userModule, } from "../entities/org/index.js";
|
|
23
|
+
import { aiProviderModules, categoryModule, cloudLinkModule, connectorModule, emailAliasModule, groupModule, phoneProviderModule, roleModule, userModule, } from "../entities/org/index.js";
|
|
22
24
|
import { searchTableModule } from "../entities/search-table/module.js";
|
|
23
25
|
import { recordCreateFormModule } from "../entities/record-create-form/module.js";
|
|
24
26
|
import { relationshipModule } from "../entities/relationship/module.js";
|
|
@@ -39,9 +41,11 @@ export const KIND_MODULES = [
|
|
|
39
41
|
fieldModule,
|
|
40
42
|
accessPolicyModule,
|
|
41
43
|
agentModule,
|
|
44
|
+
agentEvaluationModule,
|
|
42
45
|
agentToolModule,
|
|
43
46
|
agentA2ASkillModule,
|
|
44
47
|
automationModule,
|
|
48
|
+
chartModule,
|
|
45
49
|
approvalChainModule,
|
|
46
50
|
fileReaderModule,
|
|
47
51
|
visualFlowModule,
|
|
@@ -64,6 +68,7 @@ export const KIND_MODULES = [
|
|
|
64
68
|
cloudLinkModule,
|
|
65
69
|
categoryModule,
|
|
66
70
|
connectorModule,
|
|
71
|
+
emailAliasModule,
|
|
67
72
|
...aiProviderModules,
|
|
68
73
|
groupModule,
|
|
69
74
|
phoneProviderModule,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type { DeployableEntity } from "../engine/entity.js";
|
|
10
10
|
import type { FromTfContext } from "../engine/pull/context.js";
|
|
11
11
|
import type { ChildResourceScope, TfBlock, TfValue } from "../engine/tf/index.js";
|
|
12
|
-
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-tool" | "agent-a2a-skill" | "automation" | "approval-chain" | "file-reader" | "visual-flow" | "skill" | "skill-tool" | "view" | "managed-view-order" | "record-create-form" | "dynamic-layout" | "dashboard" | "dashboard-widget" | "datamine" | "automation-value-references" | "organization" | "permission-template" | "service-account" | "stored-function" | "task" | "widget" | "relationship" | "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" | "phone-provider" | "phone-service" | "role" | "user";
|
|
12
|
+
export type KindId = "org" | "app" | "element" | "field" | "access-policy" | "agent" | "agent-evaluation" | "chart" | "agent-tool" | "agent-a2a-skill" | "automation" | "approval-chain" | "file-reader" | "visual-flow" | "skill" | "skill-tool" | "view" | "managed-view-order" | "record-create-form" | "dynamic-layout" | "dashboard" | "dashboard-widget" | "datamine" | "automation-value-references" | "organization" | "permission-template" | "service-account" | "stored-function" | "task" | "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" | "role" | "user";
|
|
13
13
|
/** @deprecated Use {@link KindId}. */
|
|
14
14
|
export type EntityKindId = KindId;
|
|
15
15
|
export type StreamFacet = {
|
|
@@ -78,6 +78,27 @@ export type StreamMatch = "extract" | "family" | "reported";
|
|
|
78
78
|
/** Catalog kinds used by org identity data facets. */
|
|
79
79
|
export type DataFacetCatalogKind = "cloudLink" | "category" | "connector" | "group" | "phoneProvider" | "aiProvider";
|
|
80
80
|
export type OrgIdentityBag = "cloudLinks" | "categories" | "connectors" | "groups" | "phoneProviders" | "aiProviders";
|
|
81
|
+
/** Portable identity strategy for a direct reference. The build/pull engines
|
|
82
|
+
* consume these facets generically; entity modules own the product-specific
|
|
83
|
+
* declaration of how their identities are found. */
|
|
84
|
+
export type ReferenceLookupStrategy = {
|
|
85
|
+
readonly strategy: "rootNamespace";
|
|
86
|
+
readonly compatibilityFallback?: "name";
|
|
87
|
+
} | {
|
|
88
|
+
readonly strategy: "rootName";
|
|
89
|
+
} | {
|
|
90
|
+
readonly strategy: "owned";
|
|
91
|
+
readonly ownerKinds: readonly KindId[];
|
|
92
|
+
readonly memberAttr: "name";
|
|
93
|
+
} | {
|
|
94
|
+
readonly strategy: "ownerProjection";
|
|
95
|
+
readonly ownerKind: KindId;
|
|
96
|
+
readonly projectionAttr: string;
|
|
97
|
+
readonly memberAttr: "name";
|
|
98
|
+
} | {
|
|
99
|
+
readonly strategy: "nameOnlyMetadata";
|
|
100
|
+
readonly ownerKind: KindId;
|
|
101
|
+
};
|
|
81
102
|
/**
|
|
82
103
|
* Kind can be materialized as a data lookup / interface (not adopted), or
|
|
83
104
|
* {@link NO_DATA} when it does not participate.
|
|
@@ -90,6 +111,9 @@ export type DataFacet = {
|
|
|
90
111
|
readonly resourceType?: string;
|
|
91
112
|
readonly lookupAttr: string;
|
|
92
113
|
readonly referencedByBuild: boolean;
|
|
114
|
+
/** One kind may have different lookup shapes under different owners
|
|
115
|
+
* (fields are owner+name for aspects and field_ids[name] for tables). */
|
|
116
|
+
readonly referenceLookups?: readonly ReferenceLookupStrategy[];
|
|
93
117
|
readonly catalogKind?: DataFacetCatalogKind;
|
|
94
118
|
/** If set, pull org writes identities into org.ts under this property. */
|
|
95
119
|
readonly orgBag?: OrgIdentityBag;
|
|
@@ -204,7 +228,16 @@ export interface StreamExtractContext extends FromTfContext {
|
|
|
204
228
|
readonly foreignFieldRefsById?: ReadonlyMap<string, {
|
|
205
229
|
readonly ownerRefName: string;
|
|
206
230
|
readonly fieldKey: string;
|
|
231
|
+
readonly fieldName?: string;
|
|
207
232
|
}>;
|
|
233
|
+
readonly foreignTableRefsById?: ReadonlyMap<string, {
|
|
234
|
+
readonly tableRefName: string;
|
|
235
|
+
readonly name: string;
|
|
236
|
+
readonly columnRefNamesByName?: ReadonlyMap<string, string>;
|
|
237
|
+
readonly columnRefNamesById?: ReadonlyMap<string, string>;
|
|
238
|
+
}>;
|
|
239
|
+
readonly picklistOptionLabelById?: ReadonlyMap<string, string>;
|
|
240
|
+
readonly fieldNamesByOwnerRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
208
241
|
}
|
|
209
242
|
export interface OwnFileExtractResult {
|
|
210
243
|
readonly items: readonly unknown[];
|
|
@@ -215,11 +248,21 @@ export interface PrintedOwnFile {
|
|
|
215
248
|
readonly refName: string;
|
|
216
249
|
readonly source: string;
|
|
217
250
|
}
|
|
251
|
+
/** Bridge diagnostic attached to a raw, source-organization-only UUID fallback. */
|
|
252
|
+
export interface UnresolvedReferenceDiagnostic {
|
|
253
|
+
readonly usage: string;
|
|
254
|
+
readonly kind: string;
|
|
255
|
+
readonly uuid: string;
|
|
256
|
+
readonly reason: string;
|
|
257
|
+
readonly portability: "source-org-only";
|
|
258
|
+
}
|
|
218
259
|
export interface PrintOwnFileOptions {
|
|
219
260
|
readonly appRefName: string;
|
|
220
261
|
/** The owning stream root; required for typed app/element authoring output. */
|
|
221
262
|
readonly parentScope: ChildResourceScope | "table";
|
|
222
263
|
readonly orgImportPath: string;
|
|
264
|
+
/** Diagnostics used to explain matching `unsafePlatformId(...)` expressions in pulled source. */
|
|
265
|
+
readonly unresolvedReferences?: readonly UnresolvedReferenceDiagnostic[];
|
|
223
266
|
/**
|
|
224
267
|
* Set by `edk clone app --target-root` when the destination org differs
|
|
225
268
|
* from the source: org-identity references (connectors, cloud links, …)
|
|
@@ -296,6 +339,13 @@ export interface BuildChildContext {
|
|
|
296
339
|
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
297
340
|
readonly fieldNames?: ReadonlyMap<string, string>;
|
|
298
341
|
readonly fieldMetadata?: ReadonlyMap<string, BuildFieldMetadata>;
|
|
342
|
+
/**
|
|
343
|
+
* Display-name maps for every app/element in this build (keyed by
|
|
344
|
+
* stream-root refName). Forwarded to automations so a cross-app
|
|
345
|
+
* `recordSearch` field read resolves against the searched aspect's
|
|
346
|
+
* catalog (#490).
|
|
347
|
+
*/
|
|
348
|
+
readonly fieldNamesByAppRefName?: ReadonlyMap<string, ReadonlyMap<string, string>>;
|
|
299
349
|
/** Every app/element/table stream root in this build, by refName (see `ToTfContext.workspaceAspects`). */
|
|
300
350
|
readonly workspaceAspects?: ReadonlyMap<string, {
|
|
301
351
|
readonly kind: ChildResourceScope | "table";
|
|
@@ -382,6 +432,7 @@ export type LifecycleFacet = {
|
|
|
382
432
|
readonly appendLocals?: (localsAttrs: Record<string, unknown>, ctx: {
|
|
383
433
|
readonly appTfLabel: string;
|
|
384
434
|
readonly fieldAddresses?: ReadonlyMap<string, string>;
|
|
435
|
+
readonly blocks?: readonly TfBlock[];
|
|
385
436
|
}) => void;
|
|
386
437
|
};
|
|
387
438
|
/** Null-object lifecycle facet — kind has no pull/build TF hooks. */
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Reserved words that cannot be used as bare ESM const declarations. */
|
|
2
|
+
export declare const RESERVED_IDENT: Set<string>;
|
|
3
|
+
/** Keep the persisted refName unchanged while avoiding local import collisions. */
|
|
4
|
+
export declare function safeIdentifier(refName: string, ...importNames: readonly string[]): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Reserved words that cannot be used as bare ESM const declarations. */
|
|
2
|
+
export const RESERVED_IDENT = new Set([
|
|
3
|
+
"break", "case", "catch", "class", "const", "continue", "debugger", "default",
|
|
4
|
+
"delete", "do", "else", "export", "extends", "false", "finally", "for",
|
|
5
|
+
"function", "if", "import", "in", "instanceof", "new", "null", "return",
|
|
6
|
+
"super", "switch", "this", "throw", "true", "try", "typeof", "var", "void",
|
|
7
|
+
"while", "with", "yield", "enum", "let", "static", "await", "interface",
|
|
8
|
+
"implements", "package", "private", "protected", "public",
|
|
9
|
+
]);
|
|
10
|
+
/** Keep the persisted refName unchanged while avoiding local import collisions. */
|
|
11
|
+
export function safeIdentifier(refName, ...importNames) {
|
|
12
|
+
return RESERVED_IDENT.has(refName) || importNames.includes(refName) ? `${refName}_` : refName;
|
|
13
|
+
}
|
|
@@ -2,6 +2,6 @@ export declare const SDK_PACKAGE_NAME: "@elementumai/edk";
|
|
|
2
2
|
export declare const TRANSITIONAL_SDK_PACKAGE_NAME: "@elementum/edk";
|
|
3
3
|
export declare const LEGACY_SDK_PACKAGE_NAME: "@elementumltd/edk";
|
|
4
4
|
export declare const LEGACY_SDK_REGISTRY_SCOPE: "@elementumltd:registry";
|
|
5
|
-
export declare const SDK_PUBLIC_SUBPATHS: readonly ["app", "elements", "core", "core/filters", "automations", "agents", "agents/skills", "visualFlows", "searchTables", "fileReaders", "approvalChains", "approvalProcesses", "tables", "tasks", "organization", "catalog"];
|
|
5
|
+
export declare const SDK_PUBLIC_SUBPATHS: readonly ["app", "elements", "core", "core/filters", "automations", "agents", "agents/skills", "charts", "visualFlows", "searchTables", "fileReaders", "approvalChains", "approvalProcesses", "tables", "tasks", "organization", "catalog"];
|
|
6
6
|
export type SdkPackageSubpath = (typeof SDK_PUBLIC_SUBPATHS)[number];
|
|
7
7
|
export declare function sdkPackageSpecifier<T extends SdkPackageSubpath>(subpath: T): `${typeof SDK_PACKAGE_NAME}/${T}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementumai/edk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
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",
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"types": "./dist-sdk/src/entities/skill/index.d.ts",
|
|
46
46
|
"import": "./dist-sdk/src/entities/skill/index.js"
|
|
47
47
|
},
|
|
48
|
+
"./charts": {
|
|
49
|
+
"types": "./dist-sdk/src/entities/chart/index.d.ts",
|
|
50
|
+
"import": "./dist-sdk/src/entities/chart/index.js"
|
|
51
|
+
},
|
|
48
52
|
"./visualFlows": {
|
|
49
53
|
"types": "./dist-sdk/src/entities/visual-flow/index.d.ts",
|
|
50
54
|
"import": "./dist-sdk/src/entities/visual-flow/index.js"
|
|
@@ -105,6 +109,9 @@
|
|
|
105
109
|
"agents/skills": [
|
|
106
110
|
"dist-sdk/src/entities/skill/index.d.ts"
|
|
107
111
|
],
|
|
112
|
+
"charts": [
|
|
113
|
+
"dist-sdk/src/entities/chart/index.d.ts"
|
|
114
|
+
],
|
|
108
115
|
"searchTables": [
|
|
109
116
|
"dist-sdk/src/entities/search-table/index.d.ts"
|
|
110
117
|
],
|
|
@@ -168,7 +175,8 @@
|
|
|
168
175
|
"pack:consumer": "npm run build:sdk && tsx src/scripts/test-package-consumer.ts",
|
|
169
176
|
"release:local-sdk": "bash release/verify-local-sdk-prepare.sh",
|
|
170
177
|
"test": "tsx src/scripts/test.ts",
|
|
171
|
-
"test:unit": "
|
|
178
|
+
"test:unit": "npm run typecheck:ci && vitest run",
|
|
179
|
+
"test:runtime": "vitest run",
|
|
172
180
|
"check:parity": "tsx src/scripts/check-provider-parity.ts",
|
|
173
181
|
"pretest:provider": "npm run generate:graphql",
|
|
174
182
|
"test:provider": "go -C provider test -v -cover -timeout=120s -parallel=10 ./internal/...",
|
|
@@ -181,7 +189,8 @@
|
|
|
181
189
|
"test:cli": "vitest run __tests__/cli",
|
|
182
190
|
"test:binary": "npm run build:binary:bun && npm run smoke:binary:bun",
|
|
183
191
|
"test:integration": "node integration/run.mjs",
|
|
184
|
-
"typecheck": "
|
|
192
|
+
"typecheck": "npm run typecheck:ci",
|
|
193
|
+
"typecheck:ci": "tsc --noEmit -p tsconfig.ci.json && tsc --noEmit -p tsconfig.examples-check.json",
|
|
185
194
|
"typecheck:src": "tsc --noEmit",
|
|
186
195
|
"typecheck:examples": "tsc --noEmit -p tsconfig.examples-check.json",
|
|
187
196
|
"typecheck:consumer": "tsc --noEmit -p tsconfig.package-consumer-check.json",
|