| agentcrumbs | minor |
|---|
Add app concept for project-level crumb isolation and cursor-based query pagination.
App isolation:
- Every crumb is stamped with an
appname, auto-detected from the nearestpackage.json - Crumbs stored per-app at
~/.agentcrumbs/<app>/crumbs.jsonl - Collector routes incoming crumbs to per-app stores
- All CLI commands scope to the current app by default
- Override with
--app <name>,--all-apps,AGENTCRUMBS_APPenv var, orappfield in JSON config
Query pagination:
- New
--cursorflag for forward pagination with short 8-char cursor IDs - New
--afterand--beforeflags for absolute ISO timestamp windows - Default limit reduced from 100 to 50 per page
- Results returned oldest-first with
Next: --cursor <id>in output when more pages exist
New files:
src/cli/app-store.ts— shared helper for app context resolution across CLI commandssrc/cli/cursor.ts— cursor storage with 1-hour TTL
Breaking changes:
Crumbtype now has a requiredapp: stringfieldAgentCrumbsConfigtype now has an optionalapp?: stringfieldCollectorServerno longer exposesgetStore()(routes to per-app stores internally)- Storage location changed from
~/.agentcrumbs/crumbs.jsonlto~/.agentcrumbs/<app>/crumbs.jsonl - Legacy flat-file crumbs (without
appfield) are still readable as app"unknown"