smriti/cli/tests
Himanshu Dongre 3161c1a3c1 Close the skill-pack and API docs staleness before the website sprint
Skill pack (template.md -> AGENTS.md, .claude/skills/smriti/SKILL.md):
- §3.2 Repo reconciliation: lead with `## Repo state`'s automated drift
  signals; keep the manual git log checks as the documented fallback
  for checkpoints without recorded git state.
- §3.5 Backend reachability: lead with `smriti doctor` as the
  structured health check; keep `curl /health` as the raw fallback.
- Bump skill pack version 2.4 -> 2.5; re-render AGENTS.md (the
  .claude/skills/smriti/SKILL.md install is local-only and untracked).
- test_skill_pack: bump the expected version; add four single-line
  required phrases proving the new content shipped (`Repo state`,
  `smriti doctor`, "ahead of the last checkpoint", "checkpoint taken
  on a different branch").

docs/API.md:
- POST /api/v4/chat/commit: add `repo_state` to the request body
  example and a paragraph explaining its purpose (drift detection),
  persistence (`context_blob`), and read-back path (V4 state endpoint).
- DELETE /api/v2/repos/{repo_id}: add the missing section with the
  `force` query param, 204/404/409 responses, and the structured
  detail shape for the 409 refusal.

CLI suite: 253 passed. AGENTS.md and SKILL.md verified byte-identical
to fresh render(target) output.
2026-05-20 20:40:58 +05:30
..
__init__.py Add mcp dependency and pytest harness skeleton 2026-04-12 00:46:34 +05:30
conftest.py Add MCP server wrapping all CLI commands as 12 tools 2026-04-12 00:54:40 +05:30
test_attachment.py Add durable project attachment so repos remember their Smriti space 2026-05-18 00:52:37 +05:30
test_branch_close.py Add CLI and MCP tests for branch close 2026-04-13 13:37:06 +05:30
test_current_cli.py Polish external validation output and docs 2026-05-17 12:15:14 +05:30
test_doctor_cli.py Make doctor runtime checks external-project aware 2026-05-17 19:16:56 +05:30
test_init.py Add durable project attachment so repos remember their Smriti space 2026-05-18 00:52:37 +05:30
test_mcp_server.py Require force to delete a non-empty space at the API layer 2026-05-19 01:36:58 +05:30
test_metrics_cli.py Clarify claim completion metrics 2026-05-18 00:07:42 +05:30
test_quickstart.py Require force to delete a non-empty space at the API layer 2026-05-19 01:36:58 +05:30
test_skill_pack.py Close the skill-pack and API docs staleness before the website sprint 2026-05-20 20:40:58 +05:30
test_smoke.py Add mcp dependency and pytest harness skeleton 2026-04-12 00:46:34 +05:30
test_space_cli.py Require force to delete a non-empty space at the API layer 2026-05-19 01:36:58 +05:30
test_state_multi_branch.py Detect repo drift against the last checkpoint 2026-05-19 23:22:22 +05:30
test_worktree_cli.py Populate worktree list probe columns 2026-05-04 12:52:35 +05:30
test_worktree_mcp.py Populate worktree list probe columns 2026-05-04 12:52:35 +05:30