Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(list_pages): keep the recency-question phrase in the description
garrytan9c1f1037fa0a
diff --git a/docs/TOOL_CATALOG.md b/docs/TOOL_CATALOG.mdindex b584c40c36..4a45e303eb 100644--- a/docs/TOOL_CATALOG.md+++ b/docs/TOOL_CATALOG.md@@ -184,7 +184,7 @@ Every non-localOnly operation on the MCP surface: 157 tools across 25 areas. **S| `get_versions` | Page version history, newest snapshot first: metadata only (id, snapshot_at, title, type, tags, frontmatter) for the newest 20 versions by default. | read | | || `get_write_request` | Your write's receipt by request_id (after write_pending or a lost reply). | write | yes | || `list_page_purges` | Owner-only (`gbrain pages purges list`). | admin | | |-| `list_pages` | List pages; filters incl. | read | yes | |+| `list_pages` | List pages by type, slug_prefix, frontmatter where; what did I touch this week: sort=updated_desc. | read | yes | || `list_write_conflicts` | Pages whose writes keep ending in a source_changed conflict, grouped by slug. | read | | || `list_write_requests` | Your write receipts in one source, newest first (for a lost request_id). | write | yes | || `put_page` | Complete content REPLACES the whole page: read get_page include_content:true; its revision is expected_revision. | write | yes | |diff --git a/src/core/operation-manifest.generated.ts b/src/core/operation-manifest.generated.tsindex 9e543c8552..6f6e7fb410 100644--- a/src/core/operation-manifest.generated.ts+++ b/src/core/operation-manifest.generated.ts@@ -512,7 +512,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = ["name": "list_pages","idempotent": true,"outputRedaction": "retrieval",- "description": "List pages; filters incl. slug_prefix, where (frontmatter). Recent / this week: sort=updated_desc. Default 50 rows; truncated: continue with updated_after + updated_after_slug from the last row.",+ "description": "List pages by type, slug_prefix, frontmatter where; what did I touch this week: sort=updated_desc. Default 50 rows; truncated: continue with updated_after + updated_after_slug from the last row.","params": {"type": {"type": "string",diff --git a/src/core/operations-descriptions.ts b/src/core/operations-descriptions.tsindex c8e5cfb417..1a98b4c440 100644--- a/src/core/operations-descriptions.ts+++ b/src/core/operations-descriptions.ts@@ -46,7 +46,7 @@ export const GET_RECENT_TRANSCRIPTS_DESCRIPTION =// ──────────────────────────────────────────────────────────────────────────────export const LIST_PAGES_DESCRIPTION =- "List pages; filters incl. slug_prefix, where (frontmatter). Recent / this week: sort=updated_desc. Default 50 rows; truncated: continue with updated_after + updated_after_slug from the last row.";+ "List pages by type, slug_prefix, frontmatter where; what did I touch this week: sort=updated_desc. Default 50 rows; truncated: continue with updated_after + updated_after_slug from the last row.";export const QUERY_DESCRIPTION ="Hybrid search for concept/landscape questions and people/companies/projects by topic; expand adds multi-query expansion (expansion recovers synonyms). Still top-K; return_unit: sections or conversations. Lists: list_pages. Exact tokens: `search` is cheaper (no LLM call). Personal: get_recent_salience, find_anomalies; transcripts: `gbrain transcripts recent`. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. Fact rows: use follow_up. fields: \"full\" adds diagnostics.";diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.jsonindex 6f0f3dd3ac..7893e87019 100644--- a/test/fixtures/goldens/cli/tools-json.json+++ b/test/fixtures/goldens/cli/tools-json.json@@ -3,7 +3,7 @@"exitCode": 0,"stderr": "","stdoutBytes": 253499,- "stdoutSha256": "3d0b213b3db1c260314abd46136c79a5ddd0e2b34e6a62bcb6b97cd9d7b89493",+ "stdoutSha256": "6fe1f75ed4ba8cf69bd122d187764d1d0eb6b49a79a3b716dc6d0dc853600a0a","toolNames": ["remember","entity",@@ -718,7 +718,7 @@"scope": "write"},{- "description": "List pages; filters incl. slug_prefix, where (frontmatter). Recent / this week: sort=updated_desc. Default 50 rows; truncated: continue with updated_after + updated_after_slug from the last row.",+ "description": "List pages by type, slug_prefix, frontmatter where; what did I touch this week: sort=updated_desc. Default 50 rows; truncated: continue with updated_after + updated_after_slug from the last row.","idempotent": true,"local_only": false,"mutating": false,