MCPcopy Create free account
hub / github.com/T0UGH/codex-self-evolution-plugin / _count_pending

Function _count_pending

src/codex_self_evolution/migrate.py:151–155  ·  view source on GitHub ↗
(bucket_path: Path)

Source from the content-addressed store, hash-verified

149
150
151def _count_pending(bucket_path: Path) -> int:
152 pending_dir = bucket_path / "suggestions" / "pending"
153 if not pending_dir.is_dir():
154 return 0
155 return sum(1 for item in pending_dir.iterdir() if item.is_file() and item.suffix == ".json")
156
157
158def plan_migration(home: Path | None = None) -> MigrationPlan:

Callers 1

plan_migrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected