feat: wire all barrel exports, resolve conflicts, add 8 sub-path import tests

This commit is contained in:
2026-05-21 22:55:37 +00:00
parent 4fcd544261
commit dd96ceb4f8
8 changed files with 101 additions and 77 deletions

View File

@@ -1,18 +1,17 @@
export {
WorkflowReactiveRoot,
type FailurePolicy,
type CallEventMapValue,
type CallRequestedEvent,
type CallRespondedEvent,
type CallErrorEvent,
type CallAbortedEvent,
type CallCompletedEvent,
type EventLogProjection,
type AggregateStatus,
type ParallelGroup,
type ParallelGroupConfig,
} from "./workflow.js";
export type {
WorkflowNode,
ReactiveContext,
} from "../host/reactive.js";
export {
computePreconditions,
computeBlockedByFailure,

View File

@@ -3,6 +3,8 @@ import type { Signal, ReadonlySignal } from "@preact/signals-core";
import type { DirectedGraph } from "graphology";
import type { NodeStatus } from "../schema/enums.js";
import type { CallResult } from "../schema/edge.js";
import type { CallEventMapValue } from "../graph/construction.js";
export type { CallEventMapValue } from "../graph/construction.js";
import {
computePreconditions,
computeBlockedByFailure,
@@ -22,48 +24,6 @@ export interface ParallelGroupConfig {
[groupKey: string]: ParallelGroup;
}
export interface CallRequestedEvent {
type: "call.requested";
requestId: string;
operationId: string;
input: unknown;
timestamp: string;
}
export interface CallRespondedEvent {
type: "call.responded";
requestId: string;
output: unknown;
timestamp: string;
}
export interface CallErrorEvent {
type: "call.error";
requestId: string;
error: { code: string; message: string; details?: unknown };
timestamp: string;
}
export interface CallAbortedEvent {
type: "call.aborted";
requestId: string;
timestamp: string;
}
export interface CallCompletedEvent {
type: "call.completed";
requestId: string;
output: unknown;
timestamp: string;
}
export type CallEventMapValue =
| CallRequestedEvent
| CallRespondedEvent
| CallErrorEvent
| CallAbortedEvent
| CallCompletedEvent;
export interface EventLogProjection {
append(event: CallEventMapValue): void;
getStatus(nodeId: string): NodeStatus;