1
0
Fork 0
Code Issues Pull requests Projects Releases 2 Packages Wiki Activity Actions Pages

Document generated command surface

This commit is contained in:
Andraxion 2026-07-29 15:10:47 -04:00
parent cd3c761988
commit f0dea0cedc
4 changed files with 17 additions and 0 deletions

View file

@ -113,6 +113,9 @@ class CommandReferenceTests(unittest.IsolatedAsyncioTestCase):
)
self.assertEqual(1, complete.count("## CLI commands"))
self.assertEqual(1, complete.count("## MCP tools"))
self.assertTrue(complete.startswith("# DocForge command reference\n"))
self.assertIn("Do not edit this file by hand.", complete)
self.assertIn("fixed reference-adapter server exposes only its read rows", complete)
def test_mcp_reference_fails_closed_on_registration_drift(self) -> None:
known = Tool(

View file

@ -59,6 +59,8 @@ class CommandReferenceToolTests(unittest.TestCase):
self.assertEqual(before, middle)
self.assertEqual(before, _tree_snapshot(ALPHA))
self.assertTrue(first.endswith(b"\n"))
self.assertTrue(first.startswith(b"# DocForge command reference\n"))
self.assertIn(b"Do not edit this file by hand.", first)
self.assertEqual(1, first.count(b"## CLI commands"))
self.assertEqual(1, first.count(b"## MCP tools"))