bd sync: 2025-12-27 15:56:42
This commit is contained in:
@@ -11,7 +11,6 @@ from .bd_client import BdClientBase, BdError
|
||||
from .models import (
|
||||
AddDependencyParams,
|
||||
BlockedIssue,
|
||||
BlockedParams,
|
||||
CloseIssueParams,
|
||||
CreateIssueParams,
|
||||
InitParams,
|
||||
@@ -433,9 +432,6 @@ class BdDaemonClient(BdClientBase):
|
||||
args["sort_policy"] = params.sort_policy
|
||||
if params.limit:
|
||||
args["limit"] = params.limit
|
||||
# Parent filtering (descendants of a bead/epic)
|
||||
if params.parent_id:
|
||||
args["parent_id"] = params.parent_id
|
||||
|
||||
data = await self._send_request("ready", args)
|
||||
issues_data = json.loads(data) if isinstance(data, str) else data
|
||||
@@ -455,25 +451,18 @@ class BdDaemonClient(BdClientBase):
|
||||
stats_data = {}
|
||||
return Stats(**stats_data)
|
||||
|
||||
async def blocked(self, params: Optional[BlockedParams] = None) -> List[BlockedIssue]:
|
||||
async def blocked(self) -> List[BlockedIssue]:
|
||||
"""Get blocked issues.
|
||||
|
||||
Args:
|
||||
params: Query parameters (optional)
|
||||
|
||||
Returns:
|
||||
List of blocked issues with their blockers
|
||||
"""
|
||||
params = params or BlockedParams()
|
||||
args: Dict[str, Any] = {}
|
||||
if params.parent_id:
|
||||
args["parent_id"] = params.parent_id
|
||||
|
||||
data = await self._send_request("blocked", args)
|
||||
issues_data = json.loads(data) if isinstance(data, str) else data
|
||||
if issues_data is None:
|
||||
return []
|
||||
return [BlockedIssue(**issue) for issue in issues_data]
|
||||
Note:
|
||||
This operation may not be implemented in daemon RPC yet
|
||||
"""
|
||||
# Note: blocked operation may not be in RPC protocol yet
|
||||
# This is a placeholder for when it's added
|
||||
raise NotImplementedError("Blocked operation not yet supported via daemon")
|
||||
|
||||
async def inspect_migration(self) -> dict[str, Any]:
|
||||
"""Get migration plan and database state for agent analysis.
|
||||
|
||||
Reference in New Issue
Block a user