@remoraflow/ui 0.1.0
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/LICENSE +674 -0
- package/dist/edges/workflow-edge.d.ts +3 -0
- package/dist/edges/workflow-edge.d.ts.map +1 -0
- package/dist/execution-state.d.ts +34 -0
- package/dist/execution-state.d.ts.map +1 -0
- package/dist/graph-layout.d.ts +17 -0
- package/dist/graph-layout.d.ts.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2708 -0
- package/dist/index.js.map +28 -0
- package/dist/nodes/agent-loop-node.d.ts +3 -0
- package/dist/nodes/agent-loop-node.d.ts.map +1 -0
- package/dist/nodes/base-node.d.ts +20 -0
- package/dist/nodes/base-node.d.ts.map +1 -0
- package/dist/nodes/end-node.d.ts +3 -0
- package/dist/nodes/end-node.d.ts.map +1 -0
- package/dist/nodes/extract-data-node.d.ts +3 -0
- package/dist/nodes/extract-data-node.d.ts.map +1 -0
- package/dist/nodes/for-each-node.d.ts +3 -0
- package/dist/nodes/for-each-node.d.ts.map +1 -0
- package/dist/nodes/group-header-node.d.ts +3 -0
- package/dist/nodes/group-header-node.d.ts.map +1 -0
- package/dist/nodes/llm-prompt-node.d.ts +3 -0
- package/dist/nodes/llm-prompt-node.d.ts.map +1 -0
- package/dist/nodes/sleep-node.d.ts +3 -0
- package/dist/nodes/sleep-node.d.ts.map +1 -0
- package/dist/nodes/start-node.d.ts +3 -0
- package/dist/nodes/start-node.d.ts.map +1 -0
- package/dist/nodes/start-step-node.d.ts +3 -0
- package/dist/nodes/start-step-node.d.ts.map +1 -0
- package/dist/nodes/switch-case-node.d.ts +3 -0
- package/dist/nodes/switch-case-node.d.ts.map +1 -0
- package/dist/nodes/tool-call-node.d.ts +3 -0
- package/dist/nodes/tool-call-node.d.ts.map +1 -0
- package/dist/nodes/wait-for-condition-node.d.ts +3 -0
- package/dist/nodes/wait-for-condition-node.d.ts.map +1 -0
- package/dist/panels/step-detail-panel.d.ts +11 -0
- package/dist/panels/step-detail-panel.d.ts.map +1 -0
- package/dist/theme.d.ts +17 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/workflow-viewer.d.ts +41 -0
- package/dist/workflow-viewer.d.ts.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ExecutionState, StepStatus, TraceEntry } from "@remoraflow/core";
|
|
2
|
+
/** Aggregated execution summary for a single step across all its executions. */
|
|
3
|
+
export interface StepExecutionSummary {
|
|
4
|
+
status: StepStatus;
|
|
5
|
+
/** Total number of executions (>1 for steps in for-each loops). */
|
|
6
|
+
executionCount: number;
|
|
7
|
+
/** Number of completed executions. */
|
|
8
|
+
completedCount: number;
|
|
9
|
+
/** Number of failed executions. */
|
|
10
|
+
failedCount: number;
|
|
11
|
+
/** Total retries across all executions. */
|
|
12
|
+
totalRetries: number;
|
|
13
|
+
/** Output from the most recent successful execution. */
|
|
14
|
+
latestOutput?: unknown;
|
|
15
|
+
/** Error from the most recent failed execution. */
|
|
16
|
+
latestError?: {
|
|
17
|
+
code: string;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
/** Duration of the most recent execution in milliseconds. */
|
|
21
|
+
latestDurationMs?: number;
|
|
22
|
+
/** Resolved input values from the most recent execution. */
|
|
23
|
+
latestResolvedInputs?: unknown;
|
|
24
|
+
/** Trace entries from the most recent execution. */
|
|
25
|
+
latestTrace?: TraceEntry[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Derives a per-step summary map from the full execution state.
|
|
29
|
+
* Groups step records by stepId and computes an aggregate status.
|
|
30
|
+
* For steps inside for-each loops, only the latest iteration is shown.
|
|
31
|
+
* Priority: failed > running > completed > skipped > pending.
|
|
32
|
+
*/
|
|
33
|
+
export declare function deriveStepSummaries(state: ExecutionState): Map<string, StepExecutionSummary>;
|
|
34
|
+
//# sourceMappingURL=execution-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-state.d.ts","sourceRoot":"","sources":["../src/execution-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EAEd,UAAU,EACV,UAAU,EACV,MAAM,kBAAkB,CAAC;AAE1B,gFAAgF;AAChF,MAAM,WAAW,oBAAoB;IACpC,MAAM,EAAE,UAAU,CAAC;IACnB,mEAAmE;IACnE,cAAc,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mDAAmD;IACnD,WAAW,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4DAA4D;IAC5D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oDAAoD;IACpD,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;CAC3B;AAkDD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,cAAc,GACnB,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAiEnC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Diagnostic, ExecutionState, WorkflowDefinition, WorkflowStep } from "@remoraflow/core";
|
|
2
|
+
import type { Edge, Node } from "@xyflow/react";
|
|
3
|
+
import { type StepExecutionSummary } from "./execution-state";
|
|
4
|
+
export interface StepNodeData {
|
|
5
|
+
step: WorkflowStep;
|
|
6
|
+
diagnostics: Diagnostic[];
|
|
7
|
+
hasSourceEdge?: boolean;
|
|
8
|
+
inputSchema?: object;
|
|
9
|
+
outputSchema?: object;
|
|
10
|
+
/** Execution summary for this step, when executionState is provided. */
|
|
11
|
+
executionSummary?: StepExecutionSummary;
|
|
12
|
+
}
|
|
13
|
+
export declare function buildLayout(workflow: WorkflowDefinition, diagnostics?: Diagnostic[], executionState?: ExecutionState): {
|
|
14
|
+
nodes: Node[];
|
|
15
|
+
edges: Edge[];
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=graph-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-layout.d.ts","sourceRoot":"","sources":["../src/graph-layout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAEN,KAAK,oBAAoB,EACzB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;CACxC;AAiMD,wBAAgB,WAAW,CAC1B,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,GAAE,UAAU,EAAO,EAC9B,cAAc,CAAC,EAAE,cAAc,GAC7B;IAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAihBlC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { StepExecutionSummary } from "./execution-state";
|
|
2
|
+
export { deriveStepSummaries } from "./execution-state";
|
|
3
|
+
export type { StepNodeData } from "./graph-layout";
|
|
4
|
+
export { buildLayout } from "./graph-layout";
|
|
5
|
+
export type { StepDetailPanelProps } from "./panels/step-detail-panel";
|
|
6
|
+
export { StepDetailPanel } from "./panels/step-detail-panel";
|
|
7
|
+
export { useDarkMode } from "./theme";
|
|
8
|
+
export type { WorkflowViewerProps } from "./workflow-viewer";
|
|
9
|
+
export { WorkflowViewer } from "./workflow-viewer";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|