Skip to content

docs: refresh current project stats#330

Open
honor2030 wants to merge 3 commits into
rohitg00:mainfrom
honor2030:docs/refresh-agentmemory-stats
Open

docs: refresh current project stats#330
honor2030 wants to merge 3 commits into
rohitg00:mainfrom
honor2030:docs/refresh-agentmemory-stats

Conversation

@honor2030
Copy link
Copy Markdown

@honor2030 honor2030 commented May 13, 2026

Summary

  • Refresh AGENTS.md stats from v0.9.12-era values to v0.9.16
  • Update README test badges to a less brittle 950+ tests label and fix stale 50/107 counts
  • Align the startup endpoint log with the 121 registered REST API paths
  • Add a consistency test so README/AGENTS/index endpoint counts stay aligned with src/triggers/api.ts

Evidence

  • npx tsx -e "import { getAllTools } from './src/mcp/tools-registry.ts'; console.log(getAllTools().length);"51
  • python3 count of api_path entries in src/triggers/api.ts121
  • AGENTMEMORY_URL=http://127.0.0.1:9 AGENTMEMORY_PROBE_TIMEOUT_MS=50 npm test87 passed, 955 passed

Test Plan

  • npm run build
  • AGENTMEMORY_URL=http://127.0.0.1:9 AGENTMEMORY_PROBE_TIMEOUT_MS=50 npx vitest run test/consistency.test.ts
  • AGENTMEMORY_URL=http://127.0.0.1:9 AGENTMEMORY_PROBE_TIMEOUT_MS=50 npm test
  • git diff --check

Refs docs hygiene follow-up; does not change runtime behavior except the human-readable startup endpoint count.

Summary by CodeRabbit

  • Documentation
    • Updated public stats: tests passing now show 950+, MCP tools 51, REST endpoints 121; refreshed badges, marketing stats, and npm test inline comment; startup status message now reports 121 endpoints.
  • Tests
    • Added an endpoint-consistency test to ensure documentation and startup status consistently report the same REST endpoint count.

Review Change Stack

@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

@honor2030 is attempting to deploy a commit to the rohitg00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

📝 Walkthrough

Walkthrough

Updates README and AGENTS.md statistics (tests, tools, endpoints), updates src/index.ts boot log endpoint count, and adds a test that computes REST endpoint count from src/triggers/api.ts and asserts that count appears in README.md, AGENTS.md, and src/index.ts.

Changes

Documentation and endpoint consistency

Layer / File(s) Summary
README marketing/stat updates
README.md
Updates test badge to 950+ tests passing, MCP tools from 50 → 51, extended tools line to 51 total, consolidated stats to 950+ tests, REST API doc to 121 endpoints, and inline npm test comment to 950+ tests.
AGENTS.md Current Stats update
AGENTS.md
Replaces the Current Stats block with v0.9.16 and updates MCP tools (51), REST endpoints (121), and total tests (950+).
Startup boot log REST endpoint count
src/index.ts
Increases the "Ready" boot log REST endpoint count from 107 to 121.
Endpoint-count consistency test and helper
test/consistency.test.ts
Adds countRestApiEndpoints helper that reads src/triggers/api.ts and a test asserting the computed REST endpoint count appears in README.md, AGENTS.md, and src/index.ts and is > 0.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • rohitg00/agentmemory#198: Adds/changes REST endpoints in src/triggers/api.ts, which affects the endpoint-count value the new consistency test derives.
  • rohitg00/agentmemory#409: Modifies startup/logging output in src/index.ts around REST/MCP endpoint summaries, relevant to boot log assertions.
  • rohitg00/agentmemory#114: Changes README REST endpoint count/display text, related to the test's README assertion.

"A rabbit counts each endpoint bright,
Docs refreshed beneath the light,
Badges gleam with ninety-five-oh,
Tests agree the numbers flow,
Hops and cheers — a tidy sight!"

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'docs: refresh current project stats' directly and clearly summarizes the main change: updating documentation with current project statistics. It is concise, specific, and accurately reflects the primary purpose of the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 910: The README badge showing "104 endpoints" is stale; update the badge
text/count in README.md to match the current number of REST endpoints (change
"104 endpoints" to "107 endpoints") and ensure the same source-of-truth changes
were applied: verify triggers/api.ts has the new endpoints registered and
index.ts contains the updated endpoint count in its log line so all three places
(triggers/api.ts, index.ts, and README.md) remain consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 49b8c316-a7c6-4a38-be93-0ebf82ca45bc

📥 Commits

Reviewing files that changed from the base of the PR and between cba234d and 197907a.

⛔ Files ignored due to path filters (2)
  • assets/tags/light/stat-tests.svg is excluded by !**/*.svg
  • assets/tags/stat-tests.svg is excluded by !**/*.svg
📒 Files selected for processing (2)
  • AGENTS.md
  • README.md

Comment thread README.md Outdated
@honor2030 honor2030 force-pushed the docs/refresh-agentmemory-stats branch from 9a2d7f9 to b8539ac Compare May 15, 2026 06:55
@honor2030
Copy link
Copy Markdown
Author

Addressed the stale stats feedback in the latest push (b8539ac):

  • Updated the top REST badge from 104 to 107 endpoints.
  • Confirmed README.md now also says 107 endpoints on port 3111 and src/index.ts logs Endpoints: 107 REST ....
  • Refreshed the visible test-count stats to the current local suite count (903 tests) in README, AGENTS.md, and both stats SVGs.

Verification:

  • git diff --check — passed
  • npm run build — passed
  • npm test — exercised 903 tests locally; latest full-suite reruns hit unrelated timing/fs-watcher flakes outside this docs-only diff.

Current checks after push: CodeRabbit is passing/skipped. Vercel remains blocked by repository deployment authorization, unrelated to this PR diff.

@honor2030 honor2030 force-pushed the docs/refresh-agentmemory-stats branch from b8539ac to 1deb330 Compare May 16, 2026 05:24
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
test/consistency.test.ts (1)

51-60: 💤 Low value

Consider adding a sanity check for the endpoint count.

The test currently only verifies that restEndpointCount > 0, which is a very weak assertion. Based on the PR context (107-121 endpoints), a more realistic lower bound would catch gross counting errors if the regex fails catastrophically.

Optional: Add a realistic minimum bound
-    expect(restEndpointCount).toBeGreaterThan(0);
+    expect(restEndpointCount).toBeGreaterThan(100); // Sanity check: should have 100+ endpoints
     expect(readme).toContain(`${restEndpointCount} endpoints on port`);

This would catch scenarios where the regex completely fails and only matches a handful of patterns.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/consistency.test.ts` around lines 51 - 60, The test "documented REST
endpoint counts match registered API paths" uses restEndpointCount > 0 which is
too weak; update the assertions to include a realistic minimum bound (e.g.,
expect(restEndpointCount).toBeGreaterThanOrEqual(100)) to catch catastrophic
regex failures while keeping the existing comparisons against
README/AGENTS/index; locate the test block that contains restEndpointCount and
replace or augment the expect(restEndpointCount).toBeGreaterThan(0) with a
stronger check (toBeGreaterThanOrEqual with a value around 100 based on current
PR counts).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@test/consistency.test.ts`:
- Around line 51-60: The test "documented REST endpoint counts match registered
API paths" uses restEndpointCount > 0 which is too weak; update the assertions
to include a realistic minimum bound (e.g.,
expect(restEndpointCount).toBeGreaterThanOrEqual(100)) to catch catastrophic
regex failures while keeping the existing comparisons against
README/AGENTS/index; locate the test block that contains restEndpointCount and
replace or augment the expect(restEndpointCount).toBeGreaterThan(0) with a
stronger check (toBeGreaterThanOrEqual with a value around 100 based on current
PR counts).

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 45bd188c-fba2-460e-84f4-ef1e39059a72

📥 Commits

Reviewing files that changed from the base of the PR and between b8539ac and 1deb330.

⛔ Files ignored due to path filters (2)
  • assets/tags/light/stat-tests.svg is excluded by !**/*.svg
  • assets/tags/stat-tests.svg is excluded by !**/*.svg
📒 Files selected for processing (4)
  • AGENTS.md
  • README.md
  • src/index.ts
  • test/consistency.test.ts
✅ Files skipped from review due to trivial changes (2)
  • src/index.ts
  • AGENTS.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant