Follow-up for the AI agent, per the AGENTS.md rule that request/response contracts in packages/contracts/src need a toolkit-side check.
What changed in the web repository
RealtimeTrafficSchema (packages/contracts/src/traffic.ts, re-exported from packages/contracts/src/index.ts) changed shape:
- Removed:
pageViewsToday, visitorsToday
- Added:
pageViews30d, visitors30d, windowDays (literal 30)
- Unchanged:
source ("posthog"), activeVisitors, updatedAt, windowMinutes (literal 5)
This is the payload of the web-only endpoint GET /api/traffic/realtime, which powers the "Directory traffic" card on the Build with Us page. It is not the product traffic API (GET /api/v1/products/{slug}/traffic, TrafficSummarySchema) and it is not the analytics block contract — neither of those changed.
What to verify on the toolkit side
- Confirm no CLI command, MCP tool, or exported contracts surface parses
RealtimeTrafficSchema or the removed field names. A code search for RealtimeTraffic, pageViewsToday, visitorsToday, and windowMinutes in this repository currently returns no matches.
- If the mirror of
packages/contracts/src is generated or copied into @nextlevelbuilder/contracts, refresh it so the two do not drift.
If both checks are negative, close this issue with that evidence — no code change is required.
Follow-up for the AI agent, per the
AGENTS.mdrule that request/response contracts inpackages/contracts/srcneed a toolkit-side check.What changed in the web repository
RealtimeTrafficSchema(packages/contracts/src/traffic.ts, re-exported frompackages/contracts/src/index.ts) changed shape:pageViewsToday,visitorsTodaypageViews30d,visitors30d,windowDays(literal30)source("posthog"),activeVisitors,updatedAt,windowMinutes(literal5)This is the payload of the web-only endpoint
GET /api/traffic/realtime, which powers the "Directory traffic" card on the Build with Us page. It is not the product traffic API (GET /api/v1/products/{slug}/traffic,TrafficSummarySchema) and it is not the analytics block contract — neither of those changed.What to verify on the toolkit side
RealtimeTrafficSchemaor the removed field names. A code search forRealtimeTraffic,pageViewsToday,visitorsToday, andwindowMinutesin this repository currently returns no matches.packages/contracts/srcis generated or copied into@nextlevelbuilder/contracts, refresh it so the two do not drift.If both checks are negative, close this issue with that evidence — no code change is required.