feat(mm-worktree-task): run from any planner-backed repo — cp_cli dir + context resolution (--context, MM_WORKTREE_TASK_CP_*), empty-docs guard, tests + spec

cp_cli lives in agent-runtimes; previously every planner call ran 'python3 -m lib.cp_cli' from the current repo with no --context, so the script only worked inside agent-runtimes. The context now resolves from ~/.cpconfig by matching project_id to the repo directory name. Verified live from hatchmate (item + parent + documents fetched via the hatchmate context).

Claude-Session: https://claude.ai/code/session_01JgJbWzVJioVznVTFyQFEfx
This commit is contained in:
Paul O'Reilly
2026-09-11 16:27:08 +12:00
parent 9488335713
commit f50561ea78
9 changed files with 969 additions and 10 deletions

View File

@@ -1,10 +1,13 @@
{
"version": 1,
"last_run": "2026-03-24T10:36:46Z",
"last_run": "2026-05-11T09:48:44Z",
"processed": {
"log/2026-03-17.095436.md": "253f75f7ae43fb2547cd3377afb8d3b2",
"log/2026-03-17.105314.md": "9c81013e9ab545527a363f525eff93e3",
"log/2026-03-17.110414.md": "5ad1a211737b604f33e31e9ce754be74",
"log/2026-03-23.123551.md": "6c9560f5348b0625abb5c4e52b1e0464"
"log/2026-03-23.123551.md": "6c9560f5348b0625abb5c4e52b1e0464",
"log/2026-04-12.002212.md": "7bc1c971149fdd04f528e432fd8a1e16",
"log/2026-04-12.003747.md": "17fafffbfc6735c777b2fc71fdd463d2",
"log/2026-04-24.075643.md": "894d58fc7e390bb6af39e71d5219cc3f"
}
}