15 行
514 B
Python
15 行
514 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any, Dict, List
|
|
|
|
|
|
def run_seed(profile: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
steps = []
|
|
for action in profile.get("seed_actions", []):
|
|
kind = action.get("kind", "note")
|
|
if kind == "note":
|
|
steps.append({"kind": kind, "status": "recorded", "message": action.get("message", "")})
|
|
else:
|
|
steps.append({"kind": kind, "status": "skipped", "message": "Seed action type not yet automated"})
|
|
return steps
|