From 78ce27d0d9253aacc5a87829fee092046a979f52 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Thu, 16 Jul 2026 11:21:57 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E2=9C=A8=20(scripts):=20Own=20bullet-form?= =?UTF-8?q?=20Agent=20Assembly=20SDK=20prereq=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The generator owned only the table form of the Prerequisites SDK requirement; go/README.md states it as a Markdown bullet, which drifted to rc.3 while the table rows advanced to rc.5. Add a list-marker-anchored bullet matcher and wire it into process_prereq_rows so the version can no longer disagree across forms. Closes AAASM-4717 Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01HMnPRm9T3fdrS4uNYXkzg6 --- go/README.md | 2 +- scripts/generate_example_metadata.py | 37 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/go/README.md b/go/README.md index 89a586d..20dd522 100644 --- a/go/README.md +++ b/go/README.md @@ -30,7 +30,7 @@ All examples use the [`github.com/ai-agent-assembly/go-sdk`](https://pkg.go.dev/ ## Prerequisites - Go >= 1.26 -- Agent Assembly Go SDK v0.0.1-rc.3 +- Agent Assembly Go SDK v0.0.1-rc.5 A live gateway is **not required** to run any of these examples — each uses an offline mock `GovernanceClient` by default so you can explore governance behavior diff --git a/scripts/generate_example_metadata.py b/scripts/generate_example_metadata.py index 9a55ecf..8598e89 100755 --- a/scripts/generate_example_metadata.py +++ b/scripts/generate_example_metadata.py @@ -420,6 +420,41 @@ def _sub(match: re.Match[str]) -> str: return _write_if_changed(path, new_text) +# Some landing-page READMEs state the same requirement as a Markdown *bullet* +# instead of a table row — ``go/README.md`` carries ``- Agent Assembly Go SDK +# `` under ``## Prerequisites`` (AAASM-4717). The bullet is anchored to +# a list marker (``-``/``*``), so it can never collide with the table row (which +# starts with ``|``) nor with the generated sdk-install block. Only the first +# version token in the value is rewritten, so a trailing note is preserved +# verbatim, exactly like the table-row pass. +def _prereq_bullet_re(label: str) -> re.Pattern[str]: + return re.compile( + r"^(?P
[ \t]*[-*][ \t]+Agent Assembly "
+        + re.escape(label)
+        + r" SDK[ \t]+)(?P.*)$",
+        re.MULTILINE,
+    )
+
+
+def rewrite_prereq_bullet(path: Path, label: str, version: str) -> bool:
+    """Align a bullet-form ``- Agent Assembly