@reopt-ai/opt-workflow 0.0.0-stage → 0.1.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/CHANGELOG.md +20 -0
- package/LICENSE +21 -0
- package/README.md +213 -2
- package/dist/ai-stream-APc3uCiQ.js +389 -0
- package/dist/ai-stream-B_lk9_Rf.cjs +628 -0
- package/dist/branch-resolver-BDi6Wu6m.js +589 -0
- package/dist/branch-resolver-D_wM183Q.cjs +714 -0
- package/dist/core-CtqBb-6v.d.cts +919 -0
- package/dist/core-z3nXmUBj.d.ts +919 -0
- package/dist/core.cjs +301 -0
- package/dist/core.d.cts +5 -0
- package/dist/core.d.ts +5 -0
- package/dist/core.js +184 -0
- package/dist/define-template-Bmn96lF_.cjs +74 -0
- package/dist/define-template-BvGNB5Tv.js +69 -0
- package/dist/end-node-ids-D6WBaCLm.cjs +109 -0
- package/dist/end-node-ids-p85jFEcP.js +86 -0
- package/dist/execution-context-DVeybULC.d.cts +258 -0
- package/dist/execution-context-YFTRCj0y.d.ts +258 -0
- package/dist/grid-workflow-dto-C86EArJP.d.cts +300 -0
- package/dist/grid-workflow-dto-C86EArJP.d.ts +300 -0
- package/dist/index.cjs +11899 -0
- package/dist/index.d.cts +803 -0
- package/dist/index.d.ts +803 -0
- package/dist/index.js +11852 -0
- package/dist/mock.cjs +7295 -0
- package/dist/mock.d.cts +88 -0
- package/dist/mock.d.ts +88 -0
- package/dist/mock.js +7287 -0
- package/dist/node-definitions-C-GMfjMm.js +797 -0
- package/dist/node-definitions-pS1Zp1dK.cjs +940 -0
- package/dist/nodes-D_a8ZkRp.d.cts +50 -0
- package/dist/nodes-myp8R2zo.d.ts +50 -0
- package/dist/nodes.cjs +36 -0
- package/dist/nodes.d.cts +3 -0
- package/dist/nodes.d.ts +3 -0
- package/dist/nodes.js +4 -0
- package/dist/shadcn-bridge.css +72 -0
- package/dist/simulate.cjs +6 -0
- package/dist/simulate.d.cts +111 -0
- package/dist/simulate.d.ts +111 -0
- package/dist/simulate.js +1 -0
- package/dist/step-type-for-node-Blf5DKrp.js +228 -0
- package/dist/step-type-for-node-D9sdHfWA.cjs +281 -0
- package/dist/styles.css +4 -0
- package/dist/test-executor-C2AvI73G.cjs +342 -0
- package/dist/test-executor-DpT3qXIT.js +313 -0
- package/dist/types-Bj0VWFny.d.cts +126 -0
- package/dist/types-C5744w6f.d.cts +184 -0
- package/dist/types-DQcmIuAl.d.ts +126 -0
- package/dist/types-dVHX2CyI.d.ts +184 -0
- package/dist/workflow-preview-B0kul6f-.js +1742 -0
- package/dist/workflow-preview-CZzXKXqK.cjs +2065 -0
- package/package.json +119 -4
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { J as NodeDefinition, Q as NodeContract, Y as NodeOutputField, _ as GridStep, v as GridStepType } from "./grid-workflow-dto-C86EArJP.cjs";
|
|
2
|
+
/** No executor or schema imports: this projection is safe in client bundles. */
|
|
3
|
+
declare function toNodeDefinition(contract: NodeContract, type: NodeDefinition["type"]): NodeDefinition;
|
|
4
|
+
declare const conditionDefinitions: NodeDefinition[];
|
|
5
|
+
declare const endDefinitions: NodeDefinition[];
|
|
6
|
+
/**
|
|
7
|
+
* "실패 종료" 노드 id — 실행기가 이 id로 런을 실패로 끝낸다(`dynamic-workflow-executor.ts`).
|
|
8
|
+
* 아이콘 등 UI 의존이 없는 파일에 두어 실행기가 카탈로그를 끌어오지 않게 한다.
|
|
9
|
+
*
|
|
10
|
+
* 🔴 예전에는 실행기가 모든 end 스텝을 성공으로 처리해, 이 노드를 골라도 런이 completed로
|
|
11
|
+
* 기록되고 완료 웹훅이 나갔다(이 id를 읽는 코드가 0건이었다).
|
|
12
|
+
*/
|
|
13
|
+
declare const END_FAILURE_NODE_ID = "end-failure";
|
|
14
|
+
/** 액션/제어 노드 id → 출력 필드 ({{stepId.output.key}} 참조) */ declare const NODE_OUTPUTS: Record<string, NodeOutputField[]>;
|
|
15
|
+
/** 트리거 노드 id → 페이로드 필드 ({{key}} 참조) */
|
|
16
|
+
declare const TRIGGER_PAYLOADS: Record<string, NodeOutputField[]>;
|
|
17
|
+
/**
|
|
18
|
+
* 호스트 노드의 출력·페이로드 스키마를 더한다. 변수 픽커가 "이전 스텝이 무엇을 내놓는지"를
|
|
19
|
+
* 여기서 읽는다 — 안 넣으면 그 노드의 값은 픽커에 보이지 않는다(실행은 된다).
|
|
20
|
+
*/
|
|
21
|
+
declare function registerNodeOutputs(schemas: {
|
|
22
|
+
outputs?: Record<string, NodeOutputField[]>;
|
|
23
|
+
triggerPayloads?: Record<string, NodeOutputField[]>;
|
|
24
|
+
}): void;
|
|
25
|
+
declare const SPECIAL_VARIABLES: NodeOutputField[];
|
|
26
|
+
/**
|
|
27
|
+
* 스텝의 노드 정의 — webhook처럼 ID가 같은 트리거·액션도 스텝 종류로 구분한다.
|
|
28
|
+
*
|
|
29
|
+
* 🔑 조건·종료 스텝은 `nodeDefinitionId` 없이 저장된 행·템플릿이 많다(예전 에디터와
|
|
30
|
+
* `defineTemplate`이 안 적었다). 그때는 종류에서 기본 정의를 고른다 — 안 고르면 설정
|
|
31
|
+
* 패널이 "추가 설정이 필요하지 않습니다"라고 말하며 조건식 칸을 숨긴다(2026-09-23 실측).
|
|
32
|
+
*/
|
|
33
|
+
declare function getStepNodeDefinition(step: GridStep): NodeDefinition | undefined;
|
|
34
|
+
/** nodeDefinitionId → 실제 GridStepType 매핑 (제어 노드용) */
|
|
35
|
+
declare const NODE_ID_TO_STEP_TYPE: Partial<Record<string, GridStepType>>;
|
|
36
|
+
/** 노드 id가 들어갈 스텝 타입. 카탈로그 액션은 `action`. */
|
|
37
|
+
declare function stepTypeForNode(nodeDefinitionId: string): GridStepType;
|
|
38
|
+
declare const delayContract: NodeContract;
|
|
39
|
+
declare const httpRequestContract: NodeContract;
|
|
40
|
+
declare const transformDataContract: NodeContract;
|
|
41
|
+
declare const forEachContract: NodeContract;
|
|
42
|
+
declare const whileContract: NodeContract;
|
|
43
|
+
declare const repeatContract: NodeContract;
|
|
44
|
+
declare const loopEndContract: NodeContract;
|
|
45
|
+
declare const parallelContract: NodeContract;
|
|
46
|
+
declare const joinContract: NodeContract;
|
|
47
|
+
declare const manualTriggerContract: NodeContract;
|
|
48
|
+
declare const scheduleTriggerContract: NodeContract;
|
|
49
|
+
declare const webhookTriggerContract: NodeContract;
|
|
50
|
+
export { toNodeDefinition as C, endDefinitions as S, SPECIAL_VARIABLES as _, parallelContract as a, END_FAILURE_NODE_ID as b, repeatContract as c, httpRequestContract as d, delayContract as f, NODE_OUTPUTS as g, getStepNodeDefinition as h, joinContract as i, whileContract as l, stepTypeForNode as m, scheduleTriggerContract as n, loopEndContract as o, NODE_ID_TO_STEP_TYPE as p, manualTriggerContract as r, forEachContract as s, webhookTriggerContract as t, transformDataContract as u, TRIGGER_PAYLOADS as v, conditionDefinitions as x, registerNodeOutputs as y };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { J as NodeDefinition, Q as NodeContract, Y as NodeOutputField, _ as GridStep, v as GridStepType } from "./grid-workflow-dto-C86EArJP.js";
|
|
2
|
+
/** No executor or schema imports: this projection is safe in client bundles. */
|
|
3
|
+
declare function toNodeDefinition(contract: NodeContract, type: NodeDefinition["type"]): NodeDefinition;
|
|
4
|
+
declare const conditionDefinitions: NodeDefinition[];
|
|
5
|
+
declare const endDefinitions: NodeDefinition[];
|
|
6
|
+
/**
|
|
7
|
+
* "실패 종료" 노드 id — 실행기가 이 id로 런을 실패로 끝낸다(`dynamic-workflow-executor.ts`).
|
|
8
|
+
* 아이콘 등 UI 의존이 없는 파일에 두어 실행기가 카탈로그를 끌어오지 않게 한다.
|
|
9
|
+
*
|
|
10
|
+
* 🔴 예전에는 실행기가 모든 end 스텝을 성공으로 처리해, 이 노드를 골라도 런이 completed로
|
|
11
|
+
* 기록되고 완료 웹훅이 나갔다(이 id를 읽는 코드가 0건이었다).
|
|
12
|
+
*/
|
|
13
|
+
declare const END_FAILURE_NODE_ID = "end-failure";
|
|
14
|
+
/** 액션/제어 노드 id → 출력 필드 ({{stepId.output.key}} 참조) */ declare const NODE_OUTPUTS: Record<string, NodeOutputField[]>;
|
|
15
|
+
/** 트리거 노드 id → 페이로드 필드 ({{key}} 참조) */
|
|
16
|
+
declare const TRIGGER_PAYLOADS: Record<string, NodeOutputField[]>;
|
|
17
|
+
/**
|
|
18
|
+
* 호스트 노드의 출력·페이로드 스키마를 더한다. 변수 픽커가 "이전 스텝이 무엇을 내놓는지"를
|
|
19
|
+
* 여기서 읽는다 — 안 넣으면 그 노드의 값은 픽커에 보이지 않는다(실행은 된다).
|
|
20
|
+
*/
|
|
21
|
+
declare function registerNodeOutputs(schemas: {
|
|
22
|
+
outputs?: Record<string, NodeOutputField[]>;
|
|
23
|
+
triggerPayloads?: Record<string, NodeOutputField[]>;
|
|
24
|
+
}): void;
|
|
25
|
+
declare const SPECIAL_VARIABLES: NodeOutputField[];
|
|
26
|
+
/**
|
|
27
|
+
* 스텝의 노드 정의 — webhook처럼 ID가 같은 트리거·액션도 스텝 종류로 구분한다.
|
|
28
|
+
*
|
|
29
|
+
* 🔑 조건·종료 스텝은 `nodeDefinitionId` 없이 저장된 행·템플릿이 많다(예전 에디터와
|
|
30
|
+
* `defineTemplate`이 안 적었다). 그때는 종류에서 기본 정의를 고른다 — 안 고르면 설정
|
|
31
|
+
* 패널이 "추가 설정이 필요하지 않습니다"라고 말하며 조건식 칸을 숨긴다(2026-09-23 실측).
|
|
32
|
+
*/
|
|
33
|
+
declare function getStepNodeDefinition(step: GridStep): NodeDefinition | undefined;
|
|
34
|
+
/** nodeDefinitionId → 실제 GridStepType 매핑 (제어 노드용) */
|
|
35
|
+
declare const NODE_ID_TO_STEP_TYPE: Partial<Record<string, GridStepType>>;
|
|
36
|
+
/** 노드 id가 들어갈 스텝 타입. 카탈로그 액션은 `action`. */
|
|
37
|
+
declare function stepTypeForNode(nodeDefinitionId: string): GridStepType;
|
|
38
|
+
declare const delayContract: NodeContract;
|
|
39
|
+
declare const httpRequestContract: NodeContract;
|
|
40
|
+
declare const transformDataContract: NodeContract;
|
|
41
|
+
declare const forEachContract: NodeContract;
|
|
42
|
+
declare const whileContract: NodeContract;
|
|
43
|
+
declare const repeatContract: NodeContract;
|
|
44
|
+
declare const loopEndContract: NodeContract;
|
|
45
|
+
declare const parallelContract: NodeContract;
|
|
46
|
+
declare const joinContract: NodeContract;
|
|
47
|
+
declare const manualTriggerContract: NodeContract;
|
|
48
|
+
declare const scheduleTriggerContract: NodeContract;
|
|
49
|
+
declare const webhookTriggerContract: NodeContract;
|
|
50
|
+
export { toNodeDefinition as C, endDefinitions as S, SPECIAL_VARIABLES as _, parallelContract as a, END_FAILURE_NODE_ID as b, repeatContract as c, httpRequestContract as d, delayContract as f, NODE_OUTPUTS as g, getStepNodeDefinition as h, joinContract as i, whileContract as l, stepTypeForNode as m, scheduleTriggerContract as n, loopEndContract as o, NODE_ID_TO_STEP_TYPE as p, manualTriggerContract as r, forEachContract as s, webhookTriggerContract as t, transformDataContract as u, TRIGGER_PAYLOADS as v, conditionDefinitions as x, registerNodeOutputs as y };
|
package/dist/nodes.cjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_node_definitions = require("./node-definitions-pS1Zp1dK.cjs");
|
|
3
|
+
const require_step_type_for_node = require("./step-type-for-node-D9sdHfWA.cjs");
|
|
4
|
+
const require_end_node_ids = require("./end-node-ids-D6WBaCLm.cjs");
|
|
5
|
+
exports.END_FAILURE_NODE_ID = require_end_node_ids.END_FAILURE_NODE_ID;
|
|
6
|
+
exports.NODE_ID_TO_STEP_TYPE = require_step_type_for_node.NODE_ID_TO_STEP_TYPE;
|
|
7
|
+
exports.NODE_OUTPUTS = require_step_type_for_node.NODE_OUTPUTS;
|
|
8
|
+
exports.SPECIAL_VARIABLES = require_step_type_for_node.SPECIAL_VARIABLES;
|
|
9
|
+
exports.TRIGGER_PAYLOADS = require_step_type_for_node.TRIGGER_PAYLOADS;
|
|
10
|
+
exports.actionDefinitions = require_node_definitions.actionDefinitions;
|
|
11
|
+
exports.builtInActionContracts = require_node_definitions.builtInActionContracts;
|
|
12
|
+
exports.builtInTriggerContracts = require_node_definitions.builtInTriggerContracts;
|
|
13
|
+
exports.conditionDefinitions = require_step_type_for_node.conditionDefinitions;
|
|
14
|
+
exports.delayContract = require_node_definitions.delayContract;
|
|
15
|
+
exports.endDefinitions = require_step_type_for_node.endDefinitions;
|
|
16
|
+
exports.forEachContract = require_node_definitions.forEachContract;
|
|
17
|
+
exports.getNodeCatalogVersion = require_node_definitions.getNodeCatalogVersion;
|
|
18
|
+
exports.getNodeDefinition = require_node_definitions.getNodeDefinition;
|
|
19
|
+
exports.getStepNodeDefinition = require_step_type_for_node.getStepNodeDefinition;
|
|
20
|
+
exports.httpRequestContract = require_node_definitions.httpRequestContract;
|
|
21
|
+
exports.joinContract = require_node_definitions.joinContract;
|
|
22
|
+
exports.listNodeDefinitions = require_node_definitions.listNodeDefinitions;
|
|
23
|
+
exports.loopEndContract = require_node_definitions.loopEndContract;
|
|
24
|
+
exports.manualTriggerContract = require_node_definitions.manualTriggerContract;
|
|
25
|
+
exports.parallelContract = require_node_definitions.parallelContract;
|
|
26
|
+
exports.registerNodeContracts = require_node_definitions.registerNodeContracts;
|
|
27
|
+
exports.registerNodeOutputs = require_step_type_for_node.registerNodeOutputs;
|
|
28
|
+
exports.repeatContract = require_node_definitions.repeatContract;
|
|
29
|
+
exports.scheduleTriggerContract = require_node_definitions.scheduleTriggerContract;
|
|
30
|
+
exports.stepTypeForNode = require_step_type_for_node.stepTypeForNode;
|
|
31
|
+
exports.subscribeNodeCatalog = require_node_definitions.subscribeNodeCatalog;
|
|
32
|
+
exports.toNodeDefinition = require_node_definitions.toNodeDefinition;
|
|
33
|
+
exports.transformDataContract = require_node_definitions.transformDataContract;
|
|
34
|
+
exports.triggerDefinitions = require_node_definitions.triggerDefinitions;
|
|
35
|
+
exports.webhookTriggerContract = require_node_definitions.webhookTriggerContract;
|
|
36
|
+
exports.whileContract = require_node_definitions.whileContract;
|
package/dist/nodes.d.cts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as NodeFieldDefinition, B as builtInActionContracts, G as triggerDefinitions, H as getNodeCatalogVersion, I as getNodeDefinition, J as NodeDefinition, K as NodeConfigField, L as listNodeDefinitions, Q as NodeContract, R as NodeContractRegistration, U as registerNodeContracts, V as builtInTriggerContracts, W as subscribeNodeCatalog, X as FieldType, Y as NodeOutputField, Z as NodeCategory, et as NodeIcon, q as NodeConfigFieldOption, z as actionDefinitions } from "./grid-workflow-dto-C86EArJP.cjs";
|
|
2
|
+
import { C as toNodeDefinition, S as endDefinitions, _ as SPECIAL_VARIABLES, a as parallelContract, b as END_FAILURE_NODE_ID, c as repeatContract, d as httpRequestContract, f as delayContract, g as NODE_OUTPUTS, h as getStepNodeDefinition, i as joinContract, l as whileContract, m as stepTypeForNode, n as scheduleTriggerContract, o as loopEndContract, p as NODE_ID_TO_STEP_TYPE, r as manualTriggerContract, s as forEachContract, t as webhookTriggerContract, u as transformDataContract, v as TRIGGER_PAYLOADS, x as conditionDefinitions, y as registerNodeOutputs } from "./nodes-D_a8ZkRp.cjs";
|
|
3
|
+
export { END_FAILURE_NODE_ID, type FieldType, NODE_ID_TO_STEP_TYPE, NODE_OUTPUTS, type NodeCategory, type NodeConfigField, type NodeConfigFieldOption, type NodeContract, type NodeContractRegistration, type NodeDefinition, type NodeFieldDefinition, type NodeIcon, type NodeOutputField, SPECIAL_VARIABLES, TRIGGER_PAYLOADS, actionDefinitions, builtInActionContracts, builtInTriggerContracts, conditionDefinitions, delayContract, endDefinitions, forEachContract, getNodeCatalogVersion, getNodeDefinition, getStepNodeDefinition, httpRequestContract, joinContract, listNodeDefinitions, loopEndContract, manualTriggerContract, parallelContract, registerNodeContracts, registerNodeOutputs, repeatContract, scheduleTriggerContract, stepTypeForNode, subscribeNodeCatalog, toNodeDefinition, transformDataContract, triggerDefinitions, webhookTriggerContract, whileContract };
|
package/dist/nodes.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as NodeFieldDefinition, B as builtInActionContracts, G as triggerDefinitions, H as getNodeCatalogVersion, I as getNodeDefinition, J as NodeDefinition, K as NodeConfigField, L as listNodeDefinitions, Q as NodeContract, R as NodeContractRegistration, U as registerNodeContracts, V as builtInTriggerContracts, W as subscribeNodeCatalog, X as FieldType, Y as NodeOutputField, Z as NodeCategory, et as NodeIcon, q as NodeConfigFieldOption, z as actionDefinitions } from "./grid-workflow-dto-C86EArJP.js";
|
|
2
|
+
import { C as toNodeDefinition, S as endDefinitions, _ as SPECIAL_VARIABLES, a as parallelContract, b as END_FAILURE_NODE_ID, c as repeatContract, d as httpRequestContract, f as delayContract, g as NODE_OUTPUTS, h as getStepNodeDefinition, i as joinContract, l as whileContract, m as stepTypeForNode, n as scheduleTriggerContract, o as loopEndContract, p as NODE_ID_TO_STEP_TYPE, r as manualTriggerContract, s as forEachContract, t as webhookTriggerContract, u as transformDataContract, v as TRIGGER_PAYLOADS, x as conditionDefinitions, y as registerNodeOutputs } from "./nodes-myp8R2zo.js";
|
|
3
|
+
export { END_FAILURE_NODE_ID, type FieldType, NODE_ID_TO_STEP_TYPE, NODE_OUTPUTS, type NodeCategory, type NodeConfigField, type NodeConfigFieldOption, type NodeContract, type NodeContractRegistration, type NodeDefinition, type NodeFieldDefinition, type NodeIcon, type NodeOutputField, SPECIAL_VARIABLES, TRIGGER_PAYLOADS, actionDefinitions, builtInActionContracts, builtInTriggerContracts, conditionDefinitions, delayContract, endDefinitions, forEachContract, getNodeCatalogVersion, getNodeDefinition, getStepNodeDefinition, httpRequestContract, joinContract, listNodeDefinitions, loopEndContract, manualTriggerContract, parallelContract, registerNodeContracts, registerNodeOutputs, repeatContract, scheduleTriggerContract, stepTypeForNode, subscribeNodeCatalog, toNodeDefinition, transformDataContract, triggerDefinitions, webhookTriggerContract, whileContract };
|
package/dist/nodes.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { C as httpRequestContract, S as transformDataContract, _ as parallelContract, a as builtInTriggerContracts, b as repeatContract, c as registerNodeContracts, d as triggerDefinitions, f as toNodeDefinition, g as joinContract, h as manualTriggerContract, i as builtInActionContracts, m as scheduleTriggerContract, n as listNodeDefinitions, o as getNodeCatalogVersion, p as webhookTriggerContract, r as actionDefinitions, t as getNodeDefinition, u as subscribeNodeCatalog, v as loopEndContract, w as delayContract, x as whileContract, y as forEachContract } from "./node-definitions-C-GMfjMm.js";
|
|
2
|
+
import { a as endDefinitions, c as TRIGGER_PAYLOADS, i as conditionDefinitions, l as registerNodeOutputs, n as stepTypeForNode, o as NODE_OUTPUTS, r as getStepNodeDefinition, s as SPECIAL_VARIABLES, t as NODE_ID_TO_STEP_TYPE } from "./step-type-for-node-Blf5DKrp.js";
|
|
3
|
+
import { t as END_FAILURE_NODE_ID } from "./end-node-ids-p85jFEcP.js";
|
|
4
|
+
export { END_FAILURE_NODE_ID, NODE_ID_TO_STEP_TYPE, NODE_OUTPUTS, SPECIAL_VARIABLES, TRIGGER_PAYLOADS, actionDefinitions, builtInActionContracts, builtInTriggerContracts, conditionDefinitions, delayContract, endDefinitions, forEachContract, getNodeCatalogVersion, getNodeDefinition, getStepNodeDefinition, httpRequestContract, joinContract, listNodeDefinitions, loopEndContract, manualTriggerContract, parallelContract, registerNodeContracts, registerNodeOutputs, repeatContract, scheduleTriggerContract, stepTypeForNode, subscribeNodeCatalog, toNodeDefinition, transformDataContract, triggerDefinitions, webhookTriggerContract, whileContract };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* shadcn 어휘(--background · --foreground · --primary …)를 쓰는 호스트용 연결.
|
|
3
|
+
*
|
|
4
|
+
* 에디터의 색은 opt 토큰(--opt-*)에서 온다. 호스트에 opt-ui 테마가 없으면 styles.css가
|
|
5
|
+
* opt-ui 기본 테마를 깔아 주는데, 그러면 에디터만 다른 색을 입는다. 이 파일을 styles.css
|
|
6
|
+
* 뒤에 불러오면 에디터와 그 레이어(대화상자·메뉴·툴팁)가 호스트의 색·모서리·서체를 따른다.
|
|
7
|
+
* 값이 호스트 변수를 가리키므로 호스트가 어두운 테마로 바꾸면 같이 바뀐다.
|
|
8
|
+
*
|
|
9
|
+
* import "@reopt-ai/opt-workflow/styles.css";
|
|
10
|
+
* import "@reopt-ai/opt-workflow/shadcn-bridge.css";
|
|
11
|
+
*
|
|
12
|
+
* 잇지 않는 것: 성공·경고·정보 색과 노드 팔레트(shadcn에 대응이 없다), 크기·간격·모션.
|
|
13
|
+
*/
|
|
14
|
+
[data-opt-workflow],
|
|
15
|
+
[data-opt-workflow-layer] {
|
|
16
|
+
--opt-bg: var(--background);
|
|
17
|
+
--opt-bg-subtle: var(--accent);
|
|
18
|
+
--opt-bg-muted: var(--muted);
|
|
19
|
+
|
|
20
|
+
--opt-surface: var(--card);
|
|
21
|
+
--opt-surface-raised: var(--popover);
|
|
22
|
+
--opt-surface-overlay: var(--popover);
|
|
23
|
+
--opt-surface-inset: var(--muted);
|
|
24
|
+
--opt-surface-input: var(--background);
|
|
25
|
+
--opt-surface-input-hover: var(--accent);
|
|
26
|
+
|
|
27
|
+
--opt-text: var(--foreground);
|
|
28
|
+
--opt-text-secondary: color-mix(
|
|
29
|
+
in oklab,
|
|
30
|
+
var(--foreground) 72%,
|
|
31
|
+
var(--background)
|
|
32
|
+
);
|
|
33
|
+
--opt-text-tertiary: var(--muted-foreground);
|
|
34
|
+
|
|
35
|
+
--opt-border: var(--border);
|
|
36
|
+
--opt-border-subtle: color-mix(in oklab, var(--border) 60%, transparent);
|
|
37
|
+
--opt-border-hover: var(--ring);
|
|
38
|
+
|
|
39
|
+
--opt-accent: var(--primary);
|
|
40
|
+
--opt-accent-fg: var(--primary-foreground);
|
|
41
|
+
--opt-accent-hover: color-mix(
|
|
42
|
+
in oklab,
|
|
43
|
+
var(--primary) 90%,
|
|
44
|
+
var(--background)
|
|
45
|
+
);
|
|
46
|
+
--opt-accent-active: color-mix(
|
|
47
|
+
in oklab,
|
|
48
|
+
var(--primary) 80%,
|
|
49
|
+
var(--background)
|
|
50
|
+
);
|
|
51
|
+
--opt-accent-subtle: color-mix(in oklab, var(--primary) 10%, transparent);
|
|
52
|
+
|
|
53
|
+
--opt-ring: var(--ring);
|
|
54
|
+
--opt-ring-offset: var(--background);
|
|
55
|
+
|
|
56
|
+
--opt-danger: var(--destructive);
|
|
57
|
+
--opt-danger-fg: var(--destructive);
|
|
58
|
+
--opt-danger-solid-fg: var(--destructive-foreground, #fff);
|
|
59
|
+
--opt-danger-subtle: color-mix(in oklab, var(--destructive) 12%, transparent);
|
|
60
|
+
|
|
61
|
+
--opt-control-disabled-bg: var(--muted);
|
|
62
|
+
--opt-control-disabled-fg: var(--muted-foreground);
|
|
63
|
+
|
|
64
|
+
--opt-radius-sm: calc(var(--radius, 0.5rem) - 4px);
|
|
65
|
+
--opt-radius-md: calc(var(--radius, 0.5rem) - 2px);
|
|
66
|
+
--opt-radius-lg: var(--radius, 0.5rem);
|
|
67
|
+
--opt-radius-xl: calc(var(--radius, 0.5rem) + 4px);
|
|
68
|
+
|
|
69
|
+
--opt-font-body: var(--font-sans, inherit);
|
|
70
|
+
--opt-font-heading: var(--font-heading, var(--font-sans, inherit));
|
|
71
|
+
--opt-font-code: var(--font-mono, ui-monospace, monospace);
|
|
72
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_test_executor = require("./test-executor-C2AvI73G.cjs");
|
|
3
|
+
exports.TestExecutor = require_test_executor.TestExecutor;
|
|
4
|
+
exports.analyzeExecutionPaths = require_test_executor.analyzeExecutionPaths;
|
|
5
|
+
exports.executeTestMode = require_test_executor.executeTestMode;
|
|
6
|
+
exports.validateWorkflow = require_test_executor.validateWorkflow;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { d as WorkflowExecutionContext } from "./execution-context-DVeybULC.cjs";
|
|
2
|
+
import { y as GridWorkflowDefinition } from "./grid-workflow-dto-C86EArJP.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* 테스트 모드 설정
|
|
5
|
+
*/
|
|
6
|
+
export type TestModeConfig = {
|
|
7
|
+
/** 모의 응답 데이터 */
|
|
8
|
+
mockResponses?: Record<string, unknown>;
|
|
9
|
+
/** 강제 실패할 스텝 ID 목록 */
|
|
10
|
+
forceFailSteps?: string[];
|
|
11
|
+
/** 스텝별 지연 시간 (ms) */
|
|
12
|
+
stepDelays?: Record<string, number>;
|
|
13
|
+
/** 모의 변수 값 */
|
|
14
|
+
mockVariables?: Record<string, unknown>;
|
|
15
|
+
/** 조건 평가 결과 오버라이드 */
|
|
16
|
+
conditionOverrides?: Record<string, boolean | string>;
|
|
17
|
+
/** 상세 로깅 여부 */
|
|
18
|
+
verbose?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 테스트 스텝 결과
|
|
22
|
+
*/
|
|
23
|
+
export type TestStepResult = {
|
|
24
|
+
stepId: string;
|
|
25
|
+
stepLabel: string;
|
|
26
|
+
stepType: string;
|
|
27
|
+
executed: boolean;
|
|
28
|
+
skipped: boolean;
|
|
29
|
+
forcedFail: boolean;
|
|
30
|
+
mockOutput?: unknown;
|
|
31
|
+
conditionResult?: boolean | string;
|
|
32
|
+
input?: unknown;
|
|
33
|
+
unresolvedVariables?: string[];
|
|
34
|
+
duration: number;
|
|
35
|
+
notes: string[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 테스트 실행 결과
|
|
39
|
+
*/
|
|
40
|
+
export type TestExecutionResult = {
|
|
41
|
+
success: boolean;
|
|
42
|
+
runId: string;
|
|
43
|
+
mode: "test" | "dryRun" | "validation";
|
|
44
|
+
executionPath: string[];
|
|
45
|
+
stepResults: TestStepResult[];
|
|
46
|
+
validationErrors: string[];
|
|
47
|
+
validationWarnings: string[];
|
|
48
|
+
coverage: {
|
|
49
|
+
totalSteps: number;
|
|
50
|
+
executedSteps: number;
|
|
51
|
+
skippedSteps: number;
|
|
52
|
+
coveragePercent: number;
|
|
53
|
+
};
|
|
54
|
+
duration: number;
|
|
55
|
+
finalVariables: Record<string, unknown>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* 테스트 실행기 클래스
|
|
59
|
+
*/
|
|
60
|
+
export declare class TestExecutor {
|
|
61
|
+
private config;
|
|
62
|
+
private definition;
|
|
63
|
+
private context;
|
|
64
|
+
private stepResults;
|
|
65
|
+
private executionPath;
|
|
66
|
+
constructor(definition: GridWorkflowDefinition, context: WorkflowExecutionContext, config?: TestModeConfig);
|
|
67
|
+
/**
|
|
68
|
+
* 테스트 실행
|
|
69
|
+
*/
|
|
70
|
+
execute(): Promise<TestExecutionResult>;
|
|
71
|
+
/**
|
|
72
|
+
* 정의 검증
|
|
73
|
+
*/
|
|
74
|
+
private validateDefinition;
|
|
75
|
+
/**
|
|
76
|
+
* 개별 스텝 검증
|
|
77
|
+
*/
|
|
78
|
+
private validateStep;
|
|
79
|
+
/**
|
|
80
|
+
* 순환 참조 확인
|
|
81
|
+
*/
|
|
82
|
+
private hasCycle;
|
|
83
|
+
/**
|
|
84
|
+
* 실행 시뮬레이션
|
|
85
|
+
*/
|
|
86
|
+
private simulateExecution;
|
|
87
|
+
/**
|
|
88
|
+
* 개별 스텝 시뮬레이션
|
|
89
|
+
*/
|
|
90
|
+
private simulateStep;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 테스트 실행 헬퍼 함수
|
|
94
|
+
*/
|
|
95
|
+
export declare function executeTestMode(definition: GridWorkflowDefinition, context: WorkflowExecutionContext, config?: TestModeConfig): Promise<TestExecutionResult>;
|
|
96
|
+
/**
|
|
97
|
+
* 검증만 수행
|
|
98
|
+
*/
|
|
99
|
+
export declare function validateWorkflow(definition: GridWorkflowDefinition): {
|
|
100
|
+
valid: boolean;
|
|
101
|
+
errors: string[];
|
|
102
|
+
warnings: string[];
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 실행 경로 분석
|
|
106
|
+
*/
|
|
107
|
+
export declare function analyzeExecutionPaths(definition: GridWorkflowDefinition): {
|
|
108
|
+
paths: string[][];
|
|
109
|
+
maxDepth: number;
|
|
110
|
+
branchPoints: string[];
|
|
111
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { d as WorkflowExecutionContext } from "./execution-context-YFTRCj0y.js";
|
|
2
|
+
import { y as GridWorkflowDefinition } from "./grid-workflow-dto-C86EArJP.js";
|
|
3
|
+
/**
|
|
4
|
+
* 테스트 모드 설정
|
|
5
|
+
*/
|
|
6
|
+
export type TestModeConfig = {
|
|
7
|
+
/** 모의 응답 데이터 */
|
|
8
|
+
mockResponses?: Record<string, unknown>;
|
|
9
|
+
/** 강제 실패할 스텝 ID 목록 */
|
|
10
|
+
forceFailSteps?: string[];
|
|
11
|
+
/** 스텝별 지연 시간 (ms) */
|
|
12
|
+
stepDelays?: Record<string, number>;
|
|
13
|
+
/** 모의 변수 값 */
|
|
14
|
+
mockVariables?: Record<string, unknown>;
|
|
15
|
+
/** 조건 평가 결과 오버라이드 */
|
|
16
|
+
conditionOverrides?: Record<string, boolean | string>;
|
|
17
|
+
/** 상세 로깅 여부 */
|
|
18
|
+
verbose?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 테스트 스텝 결과
|
|
22
|
+
*/
|
|
23
|
+
export type TestStepResult = {
|
|
24
|
+
stepId: string;
|
|
25
|
+
stepLabel: string;
|
|
26
|
+
stepType: string;
|
|
27
|
+
executed: boolean;
|
|
28
|
+
skipped: boolean;
|
|
29
|
+
forcedFail: boolean;
|
|
30
|
+
mockOutput?: unknown;
|
|
31
|
+
conditionResult?: boolean | string;
|
|
32
|
+
input?: unknown;
|
|
33
|
+
unresolvedVariables?: string[];
|
|
34
|
+
duration: number;
|
|
35
|
+
notes: string[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 테스트 실행 결과
|
|
39
|
+
*/
|
|
40
|
+
export type TestExecutionResult = {
|
|
41
|
+
success: boolean;
|
|
42
|
+
runId: string;
|
|
43
|
+
mode: "test" | "dryRun" | "validation";
|
|
44
|
+
executionPath: string[];
|
|
45
|
+
stepResults: TestStepResult[];
|
|
46
|
+
validationErrors: string[];
|
|
47
|
+
validationWarnings: string[];
|
|
48
|
+
coverage: {
|
|
49
|
+
totalSteps: number;
|
|
50
|
+
executedSteps: number;
|
|
51
|
+
skippedSteps: number;
|
|
52
|
+
coveragePercent: number;
|
|
53
|
+
};
|
|
54
|
+
duration: number;
|
|
55
|
+
finalVariables: Record<string, unknown>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* 테스트 실행기 클래스
|
|
59
|
+
*/
|
|
60
|
+
export declare class TestExecutor {
|
|
61
|
+
private config;
|
|
62
|
+
private definition;
|
|
63
|
+
private context;
|
|
64
|
+
private stepResults;
|
|
65
|
+
private executionPath;
|
|
66
|
+
constructor(definition: GridWorkflowDefinition, context: WorkflowExecutionContext, config?: TestModeConfig);
|
|
67
|
+
/**
|
|
68
|
+
* 테스트 실행
|
|
69
|
+
*/
|
|
70
|
+
execute(): Promise<TestExecutionResult>;
|
|
71
|
+
/**
|
|
72
|
+
* 정의 검증
|
|
73
|
+
*/
|
|
74
|
+
private validateDefinition;
|
|
75
|
+
/**
|
|
76
|
+
* 개별 스텝 검증
|
|
77
|
+
*/
|
|
78
|
+
private validateStep;
|
|
79
|
+
/**
|
|
80
|
+
* 순환 참조 확인
|
|
81
|
+
*/
|
|
82
|
+
private hasCycle;
|
|
83
|
+
/**
|
|
84
|
+
* 실행 시뮬레이션
|
|
85
|
+
*/
|
|
86
|
+
private simulateExecution;
|
|
87
|
+
/**
|
|
88
|
+
* 개별 스텝 시뮬레이션
|
|
89
|
+
*/
|
|
90
|
+
private simulateStep;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 테스트 실행 헬퍼 함수
|
|
94
|
+
*/
|
|
95
|
+
export declare function executeTestMode(definition: GridWorkflowDefinition, context: WorkflowExecutionContext, config?: TestModeConfig): Promise<TestExecutionResult>;
|
|
96
|
+
/**
|
|
97
|
+
* 검증만 수행
|
|
98
|
+
*/
|
|
99
|
+
export declare function validateWorkflow(definition: GridWorkflowDefinition): {
|
|
100
|
+
valid: boolean;
|
|
101
|
+
errors: string[];
|
|
102
|
+
warnings: string[];
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 실행 경로 분석
|
|
106
|
+
*/
|
|
107
|
+
export declare function analyzeExecutionPaths(definition: GridWorkflowDefinition): {
|
|
108
|
+
paths: string[][];
|
|
109
|
+
maxDepth: number;
|
|
110
|
+
branchPoints: string[];
|
|
111
|
+
};
|
package/dist/simulate.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as TestExecutor, n as analyzeExecutionPaths, r as executeTestMode, i as validateWorkflow } from "./test-executor-DpT3qXIT.js";
|