From 7460909c1100f70b42aa7f3b11b6be294b1ace12 Mon Sep 17 00:00:00 2001 From: Bertho Joris Date: Mon, 3 Aug 2026 14:21:40 +0700 Subject: [PATCH 1/2] fix(docs): sync REST endpoint count to 130 5023cf3 (#1132) registered a 130th endpoint in src/triggers/api.ts but left the three documented counts at 129, so `test/consistency.test.ts > documented REST endpoint counts match registered API paths` fails and CI on main is red. AGENTS.md already requires all three to move together when an endpoint is added; this updates the two it lists (src/index.ts boot log, README prose) plus the AGENTS.md stat line itself. Signed-off-by: Bertho Joris --- AGENTS.md | 2 +- README.md | 2 +- src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6f64946fc..9a5a55467 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -117,7 +117,7 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). ## Current Stats (v0.9.28) - 54 MCP tools (8 visible by default, `AGENTMEMORY_TOOLS=all` for all) -- 129 REST endpoints +- 130 REST endpoints - 6 MCP resources, 3 MCP prompts - 12 hooks, 15 skills - 260+ iii functions diff --git a/README.md b/README.md index 332e2010c..655347994 100644 --- a/README.md +++ b/README.md @@ -1498,7 +1498,7 @@ Create `~/.agentmemory/.env`:

API

-129 endpoints on port `3111`. The REST API binds to `127.0.0.1` by default. Protected endpoints require `Authorization: Bearer ` when `AGENTMEMORY_SECRET` is set, and mesh sync endpoints require `AGENTMEMORY_SECRET` on both peers. +130 endpoints on port `3111`. The REST API binds to `127.0.0.1` by default. Protected endpoints require `Authorization: Bearer ` when `AGENTMEMORY_SECRET` is set, and mesh sync endpoints require `AGENTMEMORY_SECRET` on both peers.
Key endpoints diff --git a/src/index.ts b/src/index.ts index 5f66d76c9..198a6dc3d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -540,7 +540,7 @@ async function main() { `Ready. ${embeddingProvider ? "Triple-stream (BM25+Vector+Graph)" : "BM25+Graph"} search active.`, ); bootLog( - `REST API: 129 endpoints at http://localhost:${config.restPort}/agentmemory/*`, + `REST API: 130 endpoints at http://localhost:${config.restPort}/agentmemory/*`, ); bootLog( `MCP surface (opt-in via \`npx @agentmemory/mcp\`): ${getAllTools().length} tools · 6 resources · 3 prompts`, From b9b0eff53650922d3a4bd16e7d8335e9054a4efe Mon Sep 17 00:00:00 2001 From: Bertho Joris Date: Mon, 3 Aug 2026 14:24:57 +0700 Subject: [PATCH 2/2] fix(skills): regenerate rest-api reference for the 119th endpoint `npm run skills:check` is a separate CI gate from the consistency test and fails on main for the same root cause: 5023cf3 (#1132) registered a new endpoint without running `npm run skills:gen`, leaving the AUTOGEN:rest block in plugin/skills/agentmemory-rest-api/REFERENCE.md at 118 registered endpoints. Only the rest-api reference has a content change; the other four REFERENCE.md files regenerate byte-identical. Signed-off-by: Bertho Joris --- plugin/skills/agentmemory-rest-api/REFERENCE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/skills/agentmemory-rest-api/REFERENCE.md b/plugin/skills/agentmemory-rest-api/REFERENCE.md index d12ff4610..b92e35a9e 100644 --- a/plugin/skills/agentmemory-rest-api/REFERENCE.md +++ b/plugin/skills/agentmemory-rest-api/REFERENCE.md @@ -5,7 +5,7 @@ Generated from `src/triggers/api.ts`. Do not edit the block below by hand; run ` The REST API is the primary surface. All paths are under `http://localhost:3111` (override with `--port`). When `AGENTMEMORY_SECRET` is set, send `Authorization: Bearer $AGENTMEMORY_SECRET`; localhost is otherwise open. -118 registered endpoints: +119 registered endpoints: | Method | Path | | --- | --- |