move more to wf_api: Next actions and Wrapper hints
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from wf_mcp.workflow_surface.wrapper_hints import (
|
||||
from wf_api.wrapper_hints import (
|
||||
MissingDecision,
|
||||
MissingDecisionKind,
|
||||
OutcomeCandidate,
|
||||
@@ -220,3 +220,12 @@ def test_wrapper_hints_mark_empty_output_schema_as_low_confidence() -> None:
|
||||
assert dumped["input_map"] == {"input.text": "text"}
|
||||
assert dumped["output_map"] == {}
|
||||
assert dumped["missing_decisions"][0]["kind"] == "choose_output_fields"
|
||||
|
||||
|
||||
def test_workflow_surface_wrapper_hints_shim_reexports_canonical_helper() -> None:
|
||||
from wf_api.wrapper_hints import wrapper_hints_for_capability
|
||||
from wf_mcp.workflow_surface.wrapper_hints import (
|
||||
wrapper_hints_for_capability as wrapper_hints_for_capability_shim,
|
||||
)
|
||||
|
||||
assert wrapper_hints_for_capability_shim is wrapper_hints_for_capability
|
||||
|
||||
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from wf_artifacts import DependencyDiagnostic, DiagnosticSeverity
|
||||
|
||||
from wf_mcp.workflow_surface.next_actions import NextActionTool, NextActions
|
||||
from wf_api.next_actions import NextActionTool, NextActions
|
||||
|
||||
|
||||
def test_next_actions_from_high_confidence_wrapper_hints_can_validate() -> None:
|
||||
@@ -146,3 +146,10 @@ def test_next_actions_from_interrupted_run_recommends_resume() -> None:
|
||||
assert dumped["recommended_next_tool"] == NextActionTool.RESUME_RUN.value
|
||||
assert "resume_run" in dumped["reason"]
|
||||
assert dumped["patch_examples"] == []
|
||||
|
||||
|
||||
def test_workflow_surface_next_actions_shim_reexports_canonical_model() -> None:
|
||||
from wf_api.next_actions import NextActions
|
||||
from wf_mcp.workflow_surface.next_actions import NextActions as NextActionsShim
|
||||
|
||||
assert NextActionsShim is NextActions
|
||||
|
||||
Reference in New Issue
Block a user