Chore/add beads (#52)

* chore: added beads

* more on beads

---------

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauer
2026-03-13 18:39:03 +01:00
committed by GitHub
parent 914af9831d
commit 3c7590f009
15 changed files with 456 additions and 0 deletions

11
.mux/init Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
# BEGIN BEADS MUX HOOK
# Claude SessionStart equivalent for Mux: prime beads context when workspace initializes.
if command -v bd >/dev/null 2>&1; then
bd prime --stealth >/dev/null 2>&1 || true
elif [ -x "$HOME/bin/bd" ]; then
"$HOME/bin/bd" prime --stealth >/dev/null 2>&1 || true
fi
# END BEADS MUX HOOK

5
.mux/tool_env Normal file
View File

@@ -0,0 +1,5 @@
# Mux tool_env (sourced before bash tool calls)
# BEGIN BEADS MUX HOOK
# Ensure bd installed in ~/bin is discoverable.
export PATH="$HOME/bin:$PATH"
# END BEADS MUX HOOK

13
.mux/tool_post Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
# BEGIN BEADS MUX HOOK
# Claude PreCompact approximation for Mux: keep beads metadata synced after file edits.
if [ "${MUX_TOOL:-}" = "file_edit_replace_string" ] || [ "${MUX_TOOL:-}" = "file_edit_insert" ]; then
if command -v bd >/dev/null 2>&1; then
bd dolt push >/dev/null 2>&1 || true
elif [ -x "$HOME/bin/bd" ]; then
"$HOME/bin/bd" sync >/dev/null 2>&1 || true
fi
fi
# END BEADS MUX HOOK