forge
Explore
Log in

Don't you dare go Hollow

🙈 stop tracking the SurrealDB REPL history

Browse files at this commit

e607b1e2b0d742c36b0ec88bc8c1adc2053a75ccAhmet Kaan GümüşParent: 164cfdc
  • chore
    • 🙈 stop tracking the SurrealDB REPL history
Show full message
chore: 🙈 stop tracking the SurrealDB REPL history

`surreal sql` writes a `history.txt` into whatever directory it runs from and
has no flag to disable it, so the kb helper and the kb-sync hook — both of
which run from the repo root — kept re-creating it as a tracked file.

- untrack history.txt and add it to .gitignore
- run the query itself from ~/.claude/kb in the (untracked) kb helper and hook,
  so the history file lands beside the database instead of in the repo
.gitignoremodified+3 -0
@@ -27,3 +27,6 @@ dist-ssr
27 *.tsbuildinfo27 *.tsbuildinfo
28 .od-skills/28 .od-skills/
29 critique.json29 critique.json
30+
31+# SurrealDB CLI REPL history (kb queries); see .claude/kb-sync.sh
32+history.txt
history.txtdeleted+0 -5
@@ -1,5 +0,0 @@
1-#V2
2-DELETE subject:`01KYB0E968ZHJ7CRP1TXXZDHT1`; DELETE user:`01KYB0E963KQ4NRX8AHVQ7795J`;
3-SELECT VALUE [path, sha256] FROM meta;
4-REMOVE TABLE IF EXISTS doc;
5-REMOVE TABLE IF EXISTS meta;