@endge/core 2.0.3 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReadMe.md +23 -0
- package/dist/core.cjs +381 -333
- package/dist/core.js +35196 -34321
- package/dist/domain/entities/reflect/RAction.d.ts +11 -29
- package/dist/domain/entities/reflect/RConverter.d.ts +3 -3
- package/dist/domain/entities/reflect/RVocabs.d.ts +10 -2
- package/dist/domain/entities/runtime/hosts/ActionRuntimeHost.d.ts +1 -1
- package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +2 -0
- package/dist/domain/types/component/sfc/ir.types.d.ts +12 -2
- package/dist/domain/types/component/sfc/ports.types.d.ts +4 -0
- package/dist/domain/types/component/sfc/table-events.types.d.ts +13 -0
- package/dist/domain/types/component/sfc/tag-attribute-contract.types.d.ts +7 -0
- package/dist/domain/types/component/sfc/visual-projection.types.d.ts +13 -3
- package/dist/domain/types/program/action-program.types.d.ts +8 -0
- package/dist/domain/types/program/program.types.d.ts +12 -22
- package/dist/domain/types/runtime/action.types.d.ts +33 -4
- package/dist/domain/types/runtime/context-persistence.types.d.ts +4 -0
- package/dist/domain/types/runtime/runtime-host.types.d.ts +2 -11
- package/dist/domain/types/source/action-source.types.d.ts +40 -0
- package/dist/domain/types/source/composition-source.types.d.ts +24 -3
- package/dist/domain/types/source/query-source.types.d.ts +4 -0
- package/dist/domain/types/source/response-output.types.d.ts +10 -0
- package/dist/domain/types/source/source-engine.types.d.ts +23 -2
- package/dist/domain/types/source/source-expression.types.d.ts +9 -0
- package/dist/domain/types/source/vocab-source.types.d.ts +37 -0
- package/dist/domain/types/ui/context-menu.types.d.ts +1 -0
- package/dist/main.d.ts +10 -7
- package/dist/model/kernel/endge.d.ts +4 -15
- package/dist/model/modules/context/endge-context.d.ts +3 -1
- package/dist/model/modules/domain/endge-vocabs.d.ts +20 -1
- package/dist/model/modules/program/endge-compiler.d.ts +7 -1
- package/dist/model/modules/program/endge-program.d.ts +6 -6
- package/dist/model/modules/program/endge-source.d.ts +2 -1
- package/dist/model/modules/runtime/core/endge-actions.d.ts +16 -12
- package/dist/model/modules/runtime/core/endge-runtime.d.ts +5 -5
- package/dist/model/modules/runtime/execution/action/action-program-executor.d.ts +13 -0
- package/dist/model/modules/runtime/execution/computation/EndgeComputation.d.ts +36 -1
- package/dist/model/modules/runtime/execution/endge-converters.d.ts +36 -0
- package/dist/model/modules/runtime/execution/endge-data-view.d.ts +2 -0
- package/dist/model/modules/runtime/execution/endge-response-output.d.ts +5 -0
- package/dist/model/modules/runtime/implementation/endge-implementations.d.ts +3 -0
- package/dist/model/modules/runtime/operation/endge-operations.d.ts +18 -0
- package/dist/model/modules/runtime/operation/operation-history.d.ts +54 -0
- package/dist/model/services/compiler/action/action-compile.d.ts +3 -2
- package/dist/model/services/compiler/component-sfc/component-sfc-ports.d.ts +2 -0
- package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +6 -2
- package/dist/model/services/compiler/computation/computation-compile.d.ts +3 -0
- package/dist/model/services/source-engine/compilers/action-source-compile.d.ts +17 -0
- package/dist/model/services/source-engine/compilers/vocab-source-compile.d.ts +2 -0
- package/dist/model/services/source-engine/strategies/ActionSourceEngineStrategy.d.ts +7 -0
- package/dist/model/services/source-engine/strategies/ActionSourceLanguageStrategy.d.ts +23 -0
- package/dist/model/services/source-engine/strategies/VocabSourceEngineStrategy.d.ts +8 -0
- package/dist/model/services/source-engine/strategies/VocabSourceLanguageStrategy.d.ts +11 -0
- package/dist/model/services/source-engine/strategies/VocabSourcePatchStrategy.d.ts +9 -0
- package/dist/model/services/source-engine/templates/action.default.source.d.ts +1 -0
- package/dist/model/services/source-engine/templates/vocab.default.source.d.ts +1 -0
- package/dist/model/services/source-engine/vocab-source-patch.d.ts +10 -0
- package/dist/test/fixtures/action-source.d.ts +1 -0
- package/dist/test/model/modules/context/endge-context-theme-default.test.d.ts +1 -0
- package/dist/test/model/modules/domain/endge-vocabs-source.test.d.ts +1 -0
- package/dist/test/model/modules/runtime/action-runtime.test.d.ts +1 -0
- package/dist/test/model/modules/runtime/executable-implementations.test.d.ts +1 -0
- package/dist/test/model/modules/runtime/operation-history.test.d.ts +1 -0
- package/dist/test/model/services/compiler/component-sfc/component-sfc-action-reactions.test.d.ts +1 -0
- package/dist/test/model/services/source-engine/action-source-compile.test.d.ts +1 -0
- package/package.json +4 -4
- package/dist/domain/entities/action-flow/REndgeFlow.d.ts +0 -27
- package/dist/domain/types/flow/action.types.d.ts +0 -65
- package/dist/domain/types/flow/endge-flow-runtime.types.d.ts +0 -28
- package/dist/domain/types/flow/endge-flow.types.d.ts +0 -110
- package/dist/domain/types/flow/flow-condition.types.d.ts +0 -39
- package/dist/model/modules/runtime/core/endge-bind.d.ts +0 -39
- package/dist/model/modules/runtime/flow/endge-flow-registry.d.ts +0 -34
- package/dist/model/modules/runtime/flow/endge-flow.d.ts +0 -94
- /package/dist/test/{action-implementations.test.d.ts → domain/entities/runtime/composition-operation-history.integration.test.d.ts} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { FlowConditionSpec } from '../../../../domain/types/flow/flow-condition.types';
|
|
2
|
-
import { FlowHandlerContext } from '../../../../domain/types/flow/action.types';
|
|
3
|
-
/**
|
|
4
|
-
* Реестр конструкций flow: условия и в будущем другие сущности.
|
|
5
|
-
* Принадлежит runtime flow executor и не участвует в federation lifecycle.
|
|
6
|
-
*/
|
|
7
|
-
export declare class EndgeFlowRegistry {
|
|
8
|
-
private _conditions;
|
|
9
|
-
constructor();
|
|
10
|
-
/**
|
|
11
|
-
* Регистрирует условие flow.
|
|
12
|
-
*/
|
|
13
|
-
registerCondition(spec: FlowConditionSpec): void;
|
|
14
|
-
/**
|
|
15
|
-
* Возвращает список спецификаций условий для UI.
|
|
16
|
-
*/
|
|
17
|
-
listConditions(): FlowConditionSpec[];
|
|
18
|
-
/**
|
|
19
|
-
* Возвращает спецификацию условия по id.
|
|
20
|
-
*/
|
|
21
|
-
getCondition(id: string): FlowConditionSpec | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Выполняет условие по id с runtime-контекстом и параметрами.
|
|
24
|
-
*/
|
|
25
|
-
evaluateCondition(conditionId: string, ctx: FlowHandlerContext, params: Record<string, unknown>): Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Регистрирует стандартные flow-условия на стадии start.
|
|
28
|
-
*/
|
|
29
|
-
reset(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Регистрирует условия по умолчанию.
|
|
32
|
-
*/
|
|
33
|
-
private _registerDefaultConditions;
|
|
34
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { FlowExecutionResult } from '../../../../domain/types/flow/endge-flow-runtime.types';
|
|
2
|
-
import { RuntimeHost } from '../../../../domain/types/runtime/runtime-host.types';
|
|
3
|
-
import { EndgeFlowRegistry } from './endge-flow-registry';
|
|
4
|
-
/**
|
|
5
|
-
* Модуль исполнения compiled flow для action runtime-host.
|
|
6
|
-
*/
|
|
7
|
-
export declare class EndgeFlow {
|
|
8
|
-
readonly conditions: EndgeFlowRegistry;
|
|
9
|
-
constructor(conditions?: EndgeFlowRegistry);
|
|
10
|
-
/**
|
|
11
|
-
* Исполняет flow целиком внутри переданного action runtime-host.
|
|
12
|
-
*/
|
|
13
|
-
run(host: RuntimeHost<'action'>): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Исполняет один block внутри переданного action runtime-host.
|
|
16
|
-
*/
|
|
17
|
-
runBlock(host: RuntimeHost<'action'>, blockId: string): Promise<FlowExecutionResult>;
|
|
18
|
-
/** Создаёт пустой flow-state для случаев, когда состояние ещё не инициализировано. */
|
|
19
|
-
/**
|
|
20
|
-
* Создает Default State.
|
|
21
|
-
*/
|
|
22
|
-
private _createDefaultState;
|
|
23
|
-
/** Формирует канонический результат выполнения flow/block. */
|
|
24
|
-
/**
|
|
25
|
-
* Создает Execution Result.
|
|
26
|
-
*/
|
|
27
|
-
private _createExecutionResult;
|
|
28
|
-
/** Преобразует параметры node в плоский объект значений для рантайма. */
|
|
29
|
-
/**
|
|
30
|
-
* Преобразует значение в Plain Params.
|
|
31
|
-
*/
|
|
32
|
-
private _toPlainParams;
|
|
33
|
-
/** Собирает error-результат с единым форматом issue. */
|
|
34
|
-
/**
|
|
35
|
-
* Создает Error Result.
|
|
36
|
-
*/
|
|
37
|
-
private _createErrorResult;
|
|
38
|
-
/**
|
|
39
|
-
* Определяет порт switch по условию (скрипт или реестр).
|
|
40
|
-
* Возвращает portId для выбора исходящего ребра.
|
|
41
|
-
*/
|
|
42
|
-
private _getSwitchSelectedPortId;
|
|
43
|
-
/**
|
|
44
|
-
* Параметры, приходящие по входящему ребру на порт 'in':
|
|
45
|
-
* если источник — entrypoint (flow-entry), берём state.input; иначе — выход предыдущего шага.
|
|
46
|
-
*/
|
|
47
|
-
private _getParamsFromIncomingEdge;
|
|
48
|
-
/**
|
|
49
|
-
* Строит payload для action с учётом input-схемы.
|
|
50
|
-
* Если params = { input: value } (единственный ключ "input"), передаём в action только value (массив и т.д.), без обёртки.
|
|
51
|
-
*/
|
|
52
|
-
private _buildActionInput;
|
|
53
|
-
/**
|
|
54
|
-
* Подготавливает payload для query с учётом сигнатуры параметров.
|
|
55
|
-
* Поддерживает сценарий, когда в flow передаётся только `input`, а у query объявлен единственный параметр.
|
|
56
|
-
*/
|
|
57
|
-
private _buildQueryInput;
|
|
58
|
-
/** Возвращает имена props, объявленных в Query artifact. */
|
|
59
|
-
private _getQueryArtifactParamNames;
|
|
60
|
-
/** Формирует runtime-контекст, который передаётся в custom/runtime handlers. */
|
|
61
|
-
/**
|
|
62
|
-
* Создает Flow Handler Context.
|
|
63
|
-
*/
|
|
64
|
-
private _createFlowHandlerContext;
|
|
65
|
-
/**
|
|
66
|
-
* Возвращает Compiled Flow.
|
|
67
|
-
*/
|
|
68
|
-
private _getCompiledFlow;
|
|
69
|
-
/** Рекурсивно резолвит параметры node через текущий flow-state. */
|
|
70
|
-
/**
|
|
71
|
-
* Разрешает Node Params.
|
|
72
|
-
*/
|
|
73
|
-
private _resolveNodeParams;
|
|
74
|
-
/** Рекурсивно резолвит значение параметра: строки, массивы и объекты. */
|
|
75
|
-
/**
|
|
76
|
-
* Разрешает Value.
|
|
77
|
-
*/
|
|
78
|
-
private _resolveValue;
|
|
79
|
-
/** Резолвит выражения вида `{ctx...}` в строках параметров node. */
|
|
80
|
-
/**
|
|
81
|
-
* Разрешает String Value.
|
|
82
|
-
*/
|
|
83
|
-
private _resolveStringValue;
|
|
84
|
-
/** Достаёт значение из flow-state по пути `ctx.*`. */
|
|
85
|
-
/**
|
|
86
|
-
* Возвращает Context Value.
|
|
87
|
-
*/
|
|
88
|
-
private _getContextValue;
|
|
89
|
-
/** Проверяет, является ли строка полным выражением контекста (`{ctx...}`). */
|
|
90
|
-
/**
|
|
91
|
-
* Внутренний helper модуля: extract Full Context Path.
|
|
92
|
-
*/
|
|
93
|
-
private _extractFullContextPath;
|
|
94
|
-
}
|