Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge origin/master into #6007

garrytan40cceae47131
diff --cc src/core/ops/persistence.ts
index 98c0985290,48e0675c63..eaf6998560
--- a/src/core/ops/persistence.ts
+++ b/src/core/ops/persistence.ts
@@@ -135,7 -135,7 +135,7 @@@ export const persistenceOperations: Ope
name: 'get_write_request',
idempotent: true,
outputRedaction: 'no_stored_text',
- description: 'Read your write\'s receipt by request_id (after write_pending or a lost reply). Poll no faster than retry_after_ms until committed/conflict/failed/cancelled.',
- description: 'Read the receipt of your write by request_id (after write_pending or a lost reply).',
++ description: 'Read your write\'s receipt by request_id (after write_pending or a lost reply). Poll at retry_after_ms until committed/conflict/failed/cancelled.',
params: { request_id: requestParam },
scope: 'write', mutating: false, area: 'pages',
cliHints: { name: 'write-request', positional: ['request_id'] },
diff --cc test/fixtures/goldens/cli/tools-json.json
index 73bcaeaa7a,5e17c00079..b38edfba85
--- a/test/fixtures/goldens/cli/tools-json.json
+++ b/test/fixtures/goldens/cli/tools-json.json
@@@ -2,8 -2,8 +2,8 @@@
"golden": {
"exitCode": 0,
"stderr": "",
- "stdoutBytes": 199575,
- "stdoutSha256": "549e0804d5e73d95d677573d1dcd87c5fc772e723c6be2abcb4a0e2d4d061f5b",
- "stdoutBytes": 196986,
- "stdoutSha256": "a94ef05467e333a594813f1214c3c3d5d17174ebf09c587a357b40fde49c668e",
++ "stdoutBytes": 199714,
++ "stdoutSha256": "961f72b106aa1150f888864c865a65a9fe4e2fd391c5ff0e1bed921ece4ea1c9",
"toolNames": [
"remember",
"entity",
@@@ -822,72 -821,7 +827,72 @@@
"scope": "write"
},
{
- "description": "Read the receipt of your write by request_id (after write_pending or a lost reply).",
+ "description": "Write up to 50 complete Markdown pages (8 MB total) in one call; use instead of put_page for more than 3 pages. Each page replaces its whole page, like put_page. Keep one request_id UUID per batch: replaying the identical call never writes twice, and put_pages with ONLY request_id reports progress without resending content. Waits up to wait_ms (default 25000) for commits; follow the returned `next`. Needs put_page permission.",
+ "idempotent": true,
+ "local_only": false,
+ "mutating": true,
+ "name": "put_pages",
+ "parameters": {
+ "pages": "array?",
+ "request_id": "string",
+ "source_id": "string?",
+ "wait_ms": "number?"
+ },
+ "required_scopes": [],
+ "schema": {
+ "properties": {
+ "pages": {
+ "description": "1-50 pages; omit to read the batch status.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "allow_empty": {
+ "description": "Allow emptying a non-empty page.",
+ "type": "boolean"
+ },
+ "content": {
+ "description": "Complete markdown with frontmatter.",
+ "type": "string"
+ },
+ "expected_revision": {
+ "description": "Revision read; omit to create.",
+ "type": "string"
+ },
+ "slug": {
+ "description": "Page slug.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "slug",
+ "content"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "description": "Batch UUID; reuse it to replay or poll.",
+ "type": "string"
+ },
+ "source_id": {
+ "description": "Write source.",
+ "type": "string"
+ },
+ "wait_ms": {
+ "description": "Hold the reply up to this many ms (0-30000, from arrival) for commits. Default 25000. Not part of the write.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "request_id"
+ ],
+ "type": "object"
+ },
+ "scope": "write"
+ },
+ {
- "description": "Read your write's receipt by request_id (after write_pending or a lost reply). Poll no faster than retry_after_ms until committed/conflict/failed/cancelled.",
++ "description": "Read your write's receipt by request_id (after write_pending or a lost reply). Poll at retry_after_ms until committed/conflict/failed/cancelled.",
"idempotent": true,
"local_only": false,
"mutating": false,
diff --cc test/mcp-schema-budget.test.ts
index ace17cba4a,244ba88ded..b26993bb0b
--- a/test/mcp-schema-budget.test.ts
+++ b/test/mcp-schema-budget.test.ts
@@@ -53,11 -49,11 +53,11 @@@ const PARAM_DESCRIPTION_HARD_CAP = 200
/** Per-tool budget: JSON.stringify of the served tool definition. */
const TOOL_BUDGETS: Record<string, number> = {
- add_timeline_entry: 640, cancel_job: 270, cancel_write_request: 350, capture: 1250, context_pack: 760,
+ add_timeline_entry: 680, cancel_job: 270, cancel_write_request: 350, capture: 1250, context_pack: 760,
delete_skill: 810, delta: 830, edit_page: 1090, entity: 460, find_anomalies: 520, forget: 560, get_agent_job: 270,
- get_backlinks: 430, get_ingest_log: 280, get_page: 810, get_recent_salience: 660, get_skill: 910,
+ get_backlinks: 430, get_ingest_log: 280, get_page: 930, get_recent_salience: 660, get_skill: 910,
- get_skill_asset: 790, get_write_request: 330, join_brain: 560, leave_brain: 540, list_brain_skillpack: 230,
- list_link_sources: 220, list_pages: 1090, list_skills: 670, list_write_requests: 450, put_page: 1320,
+ get_skill_asset: 790, get_write_request: 400, join_brain: 560, leave_brain: 540, list_brain_skillpack: 230,
+ list_link_sources: 220, list_pages: 1090, list_skills: 670, list_write_requests: 450, put_page: 1490,
put_skill: 1420, query: 3250, recall: 1590, remember: 1370, request_tools: 560, resolve_slugs: 410, search: 1760,
submit_agent: 750, sync_brain_skills: 770, synthesize: 550, traverse_graph: 680, whoami: 230,
};