Commit Graph

5 Commits

Author SHA1 Message Date
Sreeram Sreedhar 35681629ce build: commit recall bundles + refresh stale bundles
main has the recall source + hooks.json wiring (from #65) but never got
the built bundles, so UserPromptSubmit -> recall-hook.cjs errored with
MODULE_NOT_FOUND on every turn. This commits the build output:

- recall-hook.cjs, recall-approve.cjs (new) — the two missing bundles
  hooks.json already references
- context-hook/summary-hook/add-memory/save-project-memory/search-memory/
  status .cjs (refreshed) — were stale on main (built pre-#65), so they
  reported version 0.0.7 while the source is 0.0.8; rebuilding aligns them
  (also clears the false "update available" notice loop)

No package/version files changed — source is already at 0.0.8; this only
ships the bundles that build.js produces.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 18:31:48 -07:00
Vedant Mahajan ba4595dacb Revert "feat: reasoned per-turn memory recall with auto-approve" 2026-06-16 11:32:10 +05:30
Sreeram Sreedhar 389dd56c6c Merge remote-tracking branch 'origin/main' into sreedharsreeram/conditional-search-reasoning-v1
# Conflicts:
#	plugin/scripts/add-memory.cjs
#	plugin/scripts/context-hook.cjs
#	plugin/scripts/save-project-memory.cjs
#	plugin/scripts/search-memory.cjs
#	plugin/scripts/status.cjs
#	plugin/scripts/summary-hook.cjs
#	src/context-hook.js
2026-06-15 21:19:25 -07:00
Sreeram Sreedhar 35d766cdf4 Merge origin/main into sreedharsreeram/conditional-search-reasoning
Resolve by rebuilding plugin/scripts/*.cjs so the artifacts carry BOTH
main's source changes (Windows auth fix, update-notice via version-check)
and this branch's recall hooks — the .cjs were otherwise stale against the
merged source. Apply biome auto-format to the inherited context-hook.js /
version-check.js so `biome ci` passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 11:33:42 -07:00
Sreeram Sreedhar 0493e6ee47 feat: reasoned per-turn memory recall with auto-approve
Add a UserPromptSubmit hook that injects a directive telling Claude to
reason — per message — about whether recalling memory would help, and
only then search via the supermemory-search skill. A PreToolUse hook
auto-approves that search so it runs silently, like auto-capture, instead
of interrupting with a permission prompt.

Reasoned recall and auto-approve are built-in (no toggles): searching
only when it helps keeps more usage on the user's plan. The auto-approve
is scoped to the read-only search and refuses any command laced with
shell chaining/redirection. SUPERMEMORY_DEBUG surfaces a per-turn
[recall-decision] line for debugging. SessionStart profile load and the
Stop-hook save are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 14:30:40 -07:00