bd sync: 2025-12-27 15:56:42
This commit is contained in:
@@ -18,7 +18,6 @@ if TYPE_CHECKING:
|
||||
from .models import (
|
||||
AddDependencyParams,
|
||||
BlockedIssue,
|
||||
BlockedParams,
|
||||
CloseIssueParams,
|
||||
CreateIssueParams,
|
||||
DependencyType,
|
||||
@@ -310,14 +309,11 @@ async def beads_ready_work(
|
||||
labels_any: Annotated[list[str] | None, "Filter by labels (OR: must have at least one)"] = None,
|
||||
unassigned: Annotated[bool, "Filter to only unassigned issues"] = False,
|
||||
sort_policy: Annotated[str | None, "Sort policy: hybrid (default), priority, oldest"] = None,
|
||||
parent: Annotated[str | None, "Filter to descendants of this bead/epic"] = None,
|
||||
) -> list[Issue]:
|
||||
"""Find issues with no blocking dependencies that are ready to work on.
|
||||
|
||||
Ready work = status is 'open' AND no blocking dependencies.
|
||||
Perfect for agents to claim next work!
|
||||
|
||||
Use 'parent' to filter to all descendants of an epic/bead.
|
||||
"""
|
||||
client = await _get_client()
|
||||
params = ReadyWorkParams(
|
||||
@@ -328,7 +324,6 @@ async def beads_ready_work(
|
||||
labels_any=labels_any,
|
||||
unassigned=unassigned,
|
||||
sort_policy=sort_policy,
|
||||
parent_id=parent,
|
||||
)
|
||||
return await client.ready(params)
|
||||
|
||||
@@ -540,18 +535,13 @@ async def beads_stats() -> Stats:
|
||||
return await client.stats()
|
||||
|
||||
|
||||
async def beads_blocked(
|
||||
parent: Annotated[str | None, "Filter to descendants of this bead/epic"] = None,
|
||||
) -> list[BlockedIssue]:
|
||||
async def beads_blocked() -> list[BlockedIssue]:
|
||||
"""Get blocked issues.
|
||||
|
||||
Returns issues that have blocking dependencies, showing what blocks them.
|
||||
|
||||
Use 'parent' to filter to all descendants of an epic/bead.
|
||||
"""
|
||||
client = await _get_client()
|
||||
params = BlockedParams(parent_id=parent)
|
||||
return await client.blocked(params)
|
||||
return await client.blocked()
|
||||
|
||||
|
||||
async def beads_inspect_migration() -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user