Skip to content

project_kits

project_kits

Built-in project blueprints that materialize as task trees.

Classes

Functions:

list_project_kits

list_project_kits() -> list[dict[str, Any]]

Return kit summaries (no full node trees) for the picker UI.

Source code in src/diapason/succes/project_kits.py
def list_project_kits() -> list[dict[str, Any]]:
    """Return kit summaries (no full node trees) for the picker UI."""
    return [
        {
            "id": kit["id"],
            "name": kit["name"],
            "description": kit["description"],
            "icon": kit.get("icon") or "",
            "structure": str(kit.get("structure") or "tree"),
            "nodeCount": _count_nodes(kit["nodes"]),
        }
        for kit in _all_kits()
    ]