diff --git a/.changeset/app-concept-and-pagination.md b/.changeset/app-concept-and-pagination.md deleted file mode 100644 index 2ac610a..0000000 --- a/.changeset/app-concept-and-pagination.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -"agentcrumbs": minor ---- - -Add app concept for project-level crumb isolation and cursor-based query pagination. - -**App isolation:** -- Every crumb is stamped with an `app` name, auto-detected from the nearest `package.json` -- Crumbs stored per-app at `~/.agentcrumbs//crumbs.jsonl` -- Collector routes incoming crumbs to per-app stores -- All CLI commands scope to the current app by default -- Override with `--app `, `--all-apps`, `AGENTCRUMBS_APP` env var, or `app` field in JSON config - -**Query pagination:** -- New `--cursor` flag for forward pagination with short 8-char cursor IDs -- New `--after` and `--before` flags for absolute ISO timestamp windows -- Default limit reduced from 100 to 50 per page -- Results returned oldest-first with `Next: --cursor ` in output when more pages exist - -**New files:** -- `src/cli/app-store.ts` — shared helper for app context resolution across CLI commands -- `src/cli/cursor.ts` — cursor storage with 1-hour TTL - -**Breaking changes:** -- `Crumb` type now has a required `app: string` field -- `AgentCrumbsConfig` type now has an optional `app?: string` field -- `CollectorServer` no longer exposes `getStore()` (routes to per-app stores internally) -- Storage location changed from `~/.agentcrumbs/crumbs.jsonl` to `~/.agentcrumbs//crumbs.jsonl` -- Legacy flat-file crumbs (without `app` field) are still readable as app `"unknown"` diff --git a/examples/papertrail/CHANGELOG.md b/examples/papertrail/CHANGELOG.md new file mode 100644 index 0000000..fb8369e --- /dev/null +++ b/examples/papertrail/CHANGELOG.md @@ -0,0 +1,8 @@ +# papertrail + +## 0.0.1 + +### Patch Changes + +- Updated dependencies [ca4aace] + - agentcrumbs@0.4.0 diff --git a/examples/papertrail/package.json b/examples/papertrail/package.json index 160d46a..0567b0d 100644 --- a/examples/papertrail/package.json +++ b/examples/papertrail/package.json @@ -1,6 +1,6 @@ { "name": "papertrail", - "version": "0.0.0", + "version": "0.0.1", "private": true, "type": "module", "scripts": { diff --git a/packages/agentcrumbs/CHANGELOG.md b/packages/agentcrumbs/CHANGELOG.md index 9b78f3e..3a78820 100644 --- a/packages/agentcrumbs/CHANGELOG.md +++ b/packages/agentcrumbs/CHANGELOG.md @@ -1,5 +1,39 @@ # agentcrumbs +## 0.4.0 + +### Minor Changes + +- ca4aace: Add app concept for project-level crumb isolation and cursor-based query pagination. + + **App isolation:** + + - Every crumb is stamped with an `app` name, auto-detected from the nearest `package.json` + - Crumbs stored per-app at `~/.agentcrumbs//crumbs.jsonl` + - Collector routes incoming crumbs to per-app stores + - All CLI commands scope to the current app by default + - Override with `--app `, `--all-apps`, `AGENTCRUMBS_APP` env var, or `app` field in JSON config + + **Query pagination:** + + - New `--cursor` flag for forward pagination with short 8-char cursor IDs + - New `--after` and `--before` flags for absolute ISO timestamp windows + - Default limit reduced from 100 to 50 per page + - Results returned oldest-first with `Next: --cursor ` in output when more pages exist + + **New files:** + + - `src/cli/app-store.ts` — shared helper for app context resolution across CLI commands + - `src/cli/cursor.ts` — cursor storage with 1-hour TTL + + **Breaking changes:** + + - `Crumb` type now has a required `app: string` field + - `AgentCrumbsConfig` type now has an optional `app?: string` field + - `CollectorServer` no longer exposes `getStore()` (routes to per-app stores internally) + - Storage location changed from `~/.agentcrumbs/crumbs.jsonl` to `~/.agentcrumbs//crumbs.jsonl` + - Legacy flat-file crumbs (without `app` field) are still readable as app `"unknown"` + ## 0.3.3 ### Patch Changes diff --git a/packages/agentcrumbs/package.json b/packages/agentcrumbs/package.json index a7e5eb3..79e0e32 100644 --- a/packages/agentcrumbs/package.json +++ b/packages/agentcrumbs/package.json @@ -1,6 +1,6 @@ { "name": "agentcrumbs", - "version": "0.3.3", + "version": "0.4.0", "description": "Debug mode for any agent.", "tshy": { "exports": {