Document agent-first tool workflows

This commit is contained in:
rob
2026-07-21 12:58:20 -03:00
parent 64fc7339ef
commit d464c79002
2 changed files with 69 additions and 6 deletions
+26
View File
@@ -0,0 +1,26 @@
"""Regression tests for user-facing documentation embedded in the web app."""
from cmdforge.web.docs_content import get_doc
def test_getting_started_documents_agent_first_workflow():
content = get_doc("getting-started")["content"]
expected_commands = (
"cmdforge list --json --filter",
"cmdforge registry search",
"cmdforge run-once",
"cmdforge create classify-docs --project",
"forge-tool --name classify-docs --project",
"cmdforge mcp configure codex --dry-run",
"cmdforge mcp configure claude-code --dry-run",
)
for command in expected_commands:
assert command in content
def test_first_tool_explains_project_ownership():
content = get_doc("first-tool")["content"]
assert "cmdforge create explain --project" in content
assert "./.cmdforge/" in content