diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 49a86d7..57eefec 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,7 +10,7 @@ "name": "pastdotdev", "source": "./plugins/past", "description": "One memory for every teammate and every agent on a project. Your Claude Code sessions go in, and each prompt gets what was decided before, with dated sources.", - "version": "0.5.0", + "version": "0.5.1", "author": { "name": "past.dev", "url": "https://past.dev" diff --git a/CLAUDE.md b/CLAUDE.md index 26ca58e..137c954 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -244,7 +244,9 @@ Use `updateState` for every change. Keep transcript hashes and pending sessions under another one, and under another project's key it would be a new paid data point; the route keeps counts for the data points the project holds and ignores every other id. `SessionStart` detaches it while `state.counts` holds no `doneAt`. It asks with no items - first, and where the deployment has no such route it tries again a day later. + first, and where the deployment has no such route it tries again a day later. A session whose + folder `deny` names is left out, one sent before the folder was added included (0.5.1; 0.5.0 + sent its ids and counts). - `cut` and `status` say what travels beside the text, since that is where a person reads what leaves. `WAITER_VERSION` went to 8 with it. diff --git a/plugins/past/.claude-plugin/plugin.json b/plugins/past/.claude-plugin/plugin.json index 2777219..d2f949f 100644 --- a/plugins/past/.claude-plugin/plugin.json +++ b/plugins/past/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "pastdotdev", "displayName": "past.dev", - "version": "0.5.0", + "version": "0.5.1", "description": "One memory for every teammate and every agent on a project. Your Claude Code sessions go in, and each prompt gets what was decided before, with dated sources.", "author": { "name": "past.dev", "url": "https://past.dev" }, "homepage": "https://github.com/pastdotdev/claude-code-plugin", diff --git a/plugins/past/bin/past-hook.mjs b/plugins/past/bin/past-hook.mjs index 50caf28..e804ad0 100755 --- a/plugins/past/bin/past-hook.mjs +++ b/plugins/past/bin/past-hook.mjs @@ -38,7 +38,7 @@ const MIN_SITTING_KILOBYTES = 10; const COMPACTION_RESEND_MS = 60 * 60000; const DEFAULT_API_URL = 'https://api.past.dev'; const MARKER = '=== past ยท recalled from memory ==='; -const VERSION = '0.5.0'; +const VERSION = '0.5.1'; // ---------------------------------------------------------------------------------- Claude Code @@ -1489,6 +1489,8 @@ async function modeCounts(config) { if (!before) continue; const parsed = withSubagents(readTranscript(found.path), found.path); if (!parsed) continue; + // An ignored folder is ignored here too, for a session sent before the folder was named in deny. + if (denied(config, parsed.cwd)) continue; // Cut as it was sent: a session sent whole is one data point, the others keep their pinned cut. const whole = !Array.isArray(before.sittings); const pinned = Boolean(before.sittingMinutes);