wf-core reorg 3 remove old paths
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from .model import (
|
||||
from .models import (
|
||||
ConditionNode,
|
||||
Edge,
|
||||
ForeachNode,
|
||||
@@ -35,7 +35,7 @@ from .run_state import (
|
||||
TraceEntry,
|
||||
)
|
||||
from .tokens import END, START
|
||||
from .validate import (
|
||||
from .validation import (
|
||||
ValidationIssue,
|
||||
ValidationIssueCode,
|
||||
ValidationReport,
|
||||
|
||||
@@ -4,7 +4,7 @@ from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from .errors import WorkflowExecutionError
|
||||
from .model import (
|
||||
from .models import (
|
||||
BinaryCondition,
|
||||
Condition,
|
||||
ExistsCondition,
|
||||
|
||||
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
from collections.abc import Callable
|
||||
from typing import cast
|
||||
|
||||
from .model import Workflow
|
||||
from .models import Workflow
|
||||
from .run_state import RuntimeContext
|
||||
from .tokens import END
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for runtime flow operations."""
|
||||
|
||||
from wf_core.runtime.ops.flow import * # noqa: F403
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for foreach runtime operations."""
|
||||
|
||||
from wf_core.runtime.ops.foreach import * # noqa: F403
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for frame runtime operations."""
|
||||
|
||||
from wf_core.runtime.ops.frames import * # noqa: F403
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for interrupt runtime operations."""
|
||||
|
||||
from wf_core.runtime.ops.interrupts import * # noqa: F403
|
||||
@@ -1,55 +0,0 @@
|
||||
"""Compatibility facade for core workflow model objects."""
|
||||
|
||||
from wf_core.models import (
|
||||
BinaryCondition,
|
||||
Condition,
|
||||
ConditionNode,
|
||||
Edge,
|
||||
ExistsCondition,
|
||||
ForeachNode,
|
||||
InterruptNode,
|
||||
JoinNode,
|
||||
LiteralOperand,
|
||||
NodeDef,
|
||||
NodeResult,
|
||||
NodeUse,
|
||||
NotCondition,
|
||||
Operand,
|
||||
PathOperand,
|
||||
SchemaRef,
|
||||
StateField,
|
||||
StateSchema,
|
||||
Step,
|
||||
VariadicCondition,
|
||||
Workflow,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"BinaryCondition",
|
||||
"Condition",
|
||||
"ConditionNode",
|
||||
"Edge",
|
||||
"ExistsCondition",
|
||||
"ForeachNode",
|
||||
"InterruptNode",
|
||||
"JoinNode",
|
||||
"LiteralOperand",
|
||||
"NodeDef",
|
||||
"NodeResult",
|
||||
"NodeUse",
|
||||
"NotCondition",
|
||||
"Operand",
|
||||
"PathOperand",
|
||||
"SchemaRef",
|
||||
"StateField",
|
||||
"StateSchema",
|
||||
"Step",
|
||||
"VariadicCondition",
|
||||
"Workflow",
|
||||
]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import json
|
||||
|
||||
print(json.dumps(Workflow.model_json_schema(), indent=2))
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for node execution operations."""
|
||||
|
||||
from wf_core.runtime.ops.nodes import * # noqa: F403
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for run-state construction."""
|
||||
|
||||
from wf_core.runtime.ops.runs import * # noqa: F403
|
||||
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from wf_core.model import Workflow
|
||||
from wf_core.models import Workflow
|
||||
from wf_core.runtime.ops.flow import finalize_run
|
||||
from wf_core.runtime.ops.frames import collapse_completed_frames
|
||||
from wf_core.runtime.ops.nodes import AsyncNodeHandler, NodeHandler
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Executor-only operations used by `wf_core.runtime`.
|
||||
|
||||
Root modules such as `wf_core.node_exec` remain as compatibility shims. New
|
||||
runtime internals should import from this package so the execution seam stays
|
||||
easy to navigate.
|
||||
This package owns the runtime implementation helpers: node execution, state
|
||||
writes, frame movement, foreach, interrupts, indexes, and schema checks.
|
||||
Callers should use `wf_core.runtime` unless they are extending the executor.
|
||||
"""
|
||||
|
||||
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from wf_core.model import Workflow
|
||||
from wf_core.models import Workflow
|
||||
from wf_core.run_state import (
|
||||
ExecutionFrame,
|
||||
FrameStatus,
|
||||
|
||||
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from wf_core.conditions import safe_resolve_path
|
||||
from wf_core.errors import WorkflowExecutionError
|
||||
from wf_core.model import ForeachNode, Workflow
|
||||
from wf_core.models import ForeachNode, Workflow
|
||||
from wf_core.run_state import ExecutionFrame, FrameStatus, RunState, StepExecutionResult
|
||||
from wf_core.runtime.ops.flow import advance_frame, append_step_result_trace
|
||||
from wf_core.runtime.ops.frames import frame_context_values
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from wf_core.conditions import eval_condition
|
||||
from wf_core.model import ConditionNode, InterruptNode
|
||||
from wf_core.models import ConditionNode, InterruptNode
|
||||
from wf_core.run_state import FrameStatus, RunState, RunStatus, StepExecutionResult
|
||||
from wf_core.runtime.ops.flow import append_trace
|
||||
from wf_core.runtime.ops.frames import frame_context_values
|
||||
|
||||
@@ -4,7 +4,7 @@ from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
from wf_core.errors import WorkflowExecutionError
|
||||
from wf_core.model import NodeDef, Workflow
|
||||
from wf_core.models import NodeDef, Workflow
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
|
||||
@@ -4,7 +4,7 @@ from typing import Any
|
||||
|
||||
from wf_core.conditions import safe_resolve_path
|
||||
from wf_core.errors import WorkflowExecutionError
|
||||
from wf_core.model import InterruptNode, Workflow
|
||||
from wf_core.models import InterruptNode, Workflow
|
||||
from wf_core.run_state import InterruptRequest, RunState, StepExecutionResult
|
||||
from wf_core.runtime.ops.flow import advance_frame, append_step_result_trace
|
||||
from wf_core.runtime.ops.index import WorkflowIndex
|
||||
|
||||
@@ -5,7 +5,7 @@ from typing import Any, cast
|
||||
|
||||
from wf_core.conditions import safe_resolve_path
|
||||
from wf_core.errors import WorkflowExecutionError
|
||||
from wf_core.model import NodeDef, NodeResult, NodeUse, Workflow
|
||||
from wf_core.models import NodeDef, NodeResult, NodeUse, Workflow
|
||||
from wf_core.run_state import RunState, RuntimeContext, StepExecutionResult
|
||||
from wf_core.runtime.ops.frames import frame_context_values
|
||||
from wf_core.runtime.ops.schemas import validate_payload_against_schema
|
||||
|
||||
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from copy import deepcopy
|
||||
|
||||
from wf_core.model import Workflow
|
||||
from wf_core.models import Workflow
|
||||
from wf_core.run_state import ExecutionFrame, FrameStatus, RunState, RunStatus
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
from typing import Any
|
||||
|
||||
from wf_core.errors import WorkflowExecutionError
|
||||
from wf_core.model import NodeUse, Workflow
|
||||
from wf_core.models import NodeUse, Workflow
|
||||
from wf_core.paths import (
|
||||
PathResolutionError,
|
||||
get_nested_value,
|
||||
|
||||
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
from typing import Any
|
||||
|
||||
from wf_core.errors import WorkflowExecutionError
|
||||
from wf_core.model import Workflow
|
||||
from wf_core.models import Workflow
|
||||
from wf_core.runtime.ops.frames import collapse_completed_frames
|
||||
from wf_core.runtime.ops.index import WorkflowIndex, build_workflow_index
|
||||
from wf_core.runtime.ops.interrupts import resume_interrupt
|
||||
|
||||
@@ -4,7 +4,7 @@ from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from wf_core.errors import WorkflowExecutionError
|
||||
from wf_core.model import (
|
||||
from wf_core.models import (
|
||||
ConditionNode,
|
||||
ForeachNode,
|
||||
InterruptNode,
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for runtime schema validation helpers."""
|
||||
|
||||
from wf_core.runtime.ops.schemas import * # noqa: F403
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for state mutation operations."""
|
||||
|
||||
from wf_core.runtime.ops.state import * # noqa: F403
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for non-node step handlers."""
|
||||
|
||||
from wf_core.runtime.ops.handlers import * # noqa: F403
|
||||
@@ -1,15 +0,0 @@
|
||||
"""Compatibility facade for workflow validation."""
|
||||
|
||||
from wf_core.validation import (
|
||||
ValidationIssue,
|
||||
ValidationIssueCode,
|
||||
ValidationReport,
|
||||
validate_workflow,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"ValidationIssue",
|
||||
"ValidationIssueCode",
|
||||
"ValidationReport",
|
||||
"validate_workflow",
|
||||
]
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from wf_core.model import (
|
||||
from wf_core.models import (
|
||||
ConditionNode,
|
||||
Edge,
|
||||
ForeachNode,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from wf_core.model import Edge, InterruptNode, NodeDef, NodeUse, Step
|
||||
from wf_core.models import Edge, InterruptNode, NodeDef, NodeUse, Step
|
||||
from wf_core.tokens import END
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from wf_core.model import (
|
||||
from wf_core.models import (
|
||||
BinaryCondition,
|
||||
Condition,
|
||||
ConditionNode,
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
"""Compatibility shim for workflow index helpers."""
|
||||
|
||||
from wf_core.runtime.ops.index import * # noqa: F403
|
||||
Reference in New Issue
Block a user