fix(t3code): provide Beads to T3 Code agents on m3-hermes
bd was neither on the t3code service PATH nor on the system. Add it to both, like the harnesses, and set BEADS_ACTOR so the audit trail matches the m3ta-chiron commit identity. Also take the bd 1.3.2 migration of .beads (config, gitignore, hooks) and ignore the .beads.gate.lock it creates in the repo root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cf1c4b9f31
commit
a2d226583f
9 files changed
+246
-57
No files matched your search
@@ -71,3 +71,10 @@ bd.db
|
|||||||
# They would override fork protection in .git/info/exclude.
|
# They would override fork protection in .git/info/exclude.
|
||||||
# Config files (metadata.json, config.yaml) are tracked by git by default
|
# Config files (metadata.json, config.yaml) are tracked by git by default
|
||||||
# since no pattern above ignores them.
|
# since no pattern above ignores them.
|
||||||
|
|
||||||
|
# Added by bd (missing required patterns)
|
||||||
|
*.gate.lock*
|
||||||
|
last_pull
|
||||||
|
proxieddb/
|
||||||
|
dolt-server-config.yaml
|
||||||
|
proxied_server_client_info.json
|
||||||
+2
-1
@@ -53,4 +53,5 @@
|
|||||||
# - github.org
|
# - github.org
|
||||||
# - github.repo
|
# - github.repo
|
||||||
|
|
||||||
sync.remote: "git+ssh://gitea@code.m3ta.dev/m3tam3re/nixos-config.git"
|
sync:
|
||||||
|
remote: "git+ssh://gitea@code.m3ta.dev/m3tam3re/nixos-config.git"
|
||||||
+46
-11
@@ -1,24 +1,59 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
|
||||||
# This section is managed by beads. Do not remove these markers.
|
# This section is managed by beads. Do not remove these markers.
|
||||||
if command -v bd >/dev/null 2>&1; then
|
if command -v bd >/dev/null 2>&1; then
|
||||||
export BD_GIT_HOOK=1
|
export BD_GIT_HOOK=1
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
case "$_bd_timeout" in
|
||||||
timeout "$_bd_timeout" bd hooks run post-checkout "$@"
|
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
||||||
_bd_exit=$?
|
*[1-9]*) _bd_timeout_invalid=0 ;;
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
*) _bd_timeout_invalid=1 ;;
|
||||||
echo >&2 "beads: hook 'post-checkout' timed out after ${_bd_timeout}s — continuing without beads"
|
esac
|
||||||
|
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
||||||
|
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
||||||
|
_bd_timeout=300
|
||||||
|
fi
|
||||||
|
_bd_timeout_backend=none
|
||||||
|
_bd_timeout_command=
|
||||||
|
for _bd_timeout_candidate in timeout gtimeout; do
|
||||||
|
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
||||||
|
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
||||||
|
case "$_bd_timeout_version" in
|
||||||
|
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -n "$_bd_timeout_command" ]; then
|
||||||
|
_bd_timeout_backend=coreutils
|
||||||
|
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run post-checkout "$@"; then
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
|
elif command -v perl >/dev/null 2>&1; then
|
||||||
|
_bd_timeout_backend=perl
|
||||||
|
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run post-checkout "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
bd hooks run post-checkout "$@"
|
echo >&2 "beads: hook 'post-checkout' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
||||||
_bd_exit=$?
|
if bd hooks run post-checkout "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
||||||
|
echo >&2 "beads: hook 'post-checkout' timed out after ${_bd_timeout}s — continuing without beads"
|
||||||
|
_bd_exit=0
|
||||||
|
fi
|
||||||
|
if [ "$_bd_exit" -eq 3 ]; then
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'post-checkout'"
|
echo >&2 "beads: database not initialized — skipping hook 'post-checkout'"
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
||||||
fi
|
fi
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
# --- END BEADS INTEGRATION v1.3.2 ---
|
||||||
+46
-11
@@ -1,24 +1,59 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
|
||||||
# This section is managed by beads. Do not remove these markers.
|
# This section is managed by beads. Do not remove these markers.
|
||||||
if command -v bd >/dev/null 2>&1; then
|
if command -v bd >/dev/null 2>&1; then
|
||||||
export BD_GIT_HOOK=1
|
export BD_GIT_HOOK=1
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
case "$_bd_timeout" in
|
||||||
timeout "$_bd_timeout" bd hooks run post-merge "$@"
|
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
||||||
_bd_exit=$?
|
*[1-9]*) _bd_timeout_invalid=0 ;;
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
*) _bd_timeout_invalid=1 ;;
|
||||||
echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
|
esac
|
||||||
|
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
||||||
|
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
||||||
|
_bd_timeout=300
|
||||||
|
fi
|
||||||
|
_bd_timeout_backend=none
|
||||||
|
_bd_timeout_command=
|
||||||
|
for _bd_timeout_candidate in timeout gtimeout; do
|
||||||
|
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
||||||
|
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
||||||
|
case "$_bd_timeout_version" in
|
||||||
|
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -n "$_bd_timeout_command" ]; then
|
||||||
|
_bd_timeout_backend=coreutils
|
||||||
|
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run post-merge "$@"; then
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
|
elif command -v perl >/dev/null 2>&1; then
|
||||||
|
_bd_timeout_backend=perl
|
||||||
|
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run post-merge "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
bd hooks run post-merge "$@"
|
echo >&2 "beads: hook 'post-merge' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
||||||
_bd_exit=$?
|
if bd hooks run post-merge "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
||||||
|
echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
|
||||||
|
_bd_exit=0
|
||||||
|
fi
|
||||||
|
if [ "$_bd_exit" -eq 3 ]; then
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
|
echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
||||||
fi
|
fi
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
# --- END BEADS INTEGRATION v1.3.2 ---
|
||||||
+46
-11
@@ -1,24 +1,59 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
|
||||||
# This section is managed by beads. Do not remove these markers.
|
# This section is managed by beads. Do not remove these markers.
|
||||||
if command -v bd >/dev/null 2>&1; then
|
if command -v bd >/dev/null 2>&1; then
|
||||||
export BD_GIT_HOOK=1
|
export BD_GIT_HOOK=1
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
case "$_bd_timeout" in
|
||||||
timeout "$_bd_timeout" bd hooks run pre-commit "$@"
|
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
||||||
_bd_exit=$?
|
*[1-9]*) _bd_timeout_invalid=0 ;;
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
*) _bd_timeout_invalid=1 ;;
|
||||||
echo >&2 "beads: hook 'pre-commit' timed out after ${_bd_timeout}s — continuing without beads"
|
esac
|
||||||
|
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
||||||
|
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
||||||
|
_bd_timeout=300
|
||||||
|
fi
|
||||||
|
_bd_timeout_backend=none
|
||||||
|
_bd_timeout_command=
|
||||||
|
for _bd_timeout_candidate in timeout gtimeout; do
|
||||||
|
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
||||||
|
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
||||||
|
case "$_bd_timeout_version" in
|
||||||
|
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -n "$_bd_timeout_command" ]; then
|
||||||
|
_bd_timeout_backend=coreutils
|
||||||
|
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run pre-commit "$@"; then
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
|
elif command -v perl >/dev/null 2>&1; then
|
||||||
|
_bd_timeout_backend=perl
|
||||||
|
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run pre-commit "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
bd hooks run pre-commit "$@"
|
echo >&2 "beads: hook 'pre-commit' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
||||||
_bd_exit=$?
|
if bd hooks run pre-commit "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
||||||
|
echo >&2 "beads: hook 'pre-commit' timed out after ${_bd_timeout}s — continuing without beads"
|
||||||
|
_bd_exit=0
|
||||||
|
fi
|
||||||
|
if [ "$_bd_exit" -eq 3 ]; then
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'pre-commit'"
|
echo >&2 "beads: database not initialized — skipping hook 'pre-commit'"
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
||||||
fi
|
fi
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
# --- END BEADS INTEGRATION v1.3.2 ---
|
||||||
+46
-11
@@ -1,24 +1,59 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
|
||||||
# This section is managed by beads. Do not remove these markers.
|
# This section is managed by beads. Do not remove these markers.
|
||||||
if command -v bd >/dev/null 2>&1; then
|
if command -v bd >/dev/null 2>&1; then
|
||||||
export BD_GIT_HOOK=1
|
export BD_GIT_HOOK=1
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
case "$_bd_timeout" in
|
||||||
timeout "$_bd_timeout" bd hooks run pre-push "$@"
|
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
||||||
_bd_exit=$?
|
*[1-9]*) _bd_timeout_invalid=0 ;;
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
*) _bd_timeout_invalid=1 ;;
|
||||||
echo >&2 "beads: hook 'pre-push' timed out after ${_bd_timeout}s — continuing without beads"
|
esac
|
||||||
|
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
||||||
|
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
||||||
|
_bd_timeout=300
|
||||||
|
fi
|
||||||
|
_bd_timeout_backend=none
|
||||||
|
_bd_timeout_command=
|
||||||
|
for _bd_timeout_candidate in timeout gtimeout; do
|
||||||
|
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
||||||
|
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
||||||
|
case "$_bd_timeout_version" in
|
||||||
|
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -n "$_bd_timeout_command" ]; then
|
||||||
|
_bd_timeout_backend=coreutils
|
||||||
|
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run pre-push "$@"; then
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
|
elif command -v perl >/dev/null 2>&1; then
|
||||||
|
_bd_timeout_backend=perl
|
||||||
|
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run pre-push "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
bd hooks run pre-push "$@"
|
echo >&2 "beads: hook 'pre-push' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
||||||
_bd_exit=$?
|
if bd hooks run pre-push "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
||||||
|
echo >&2 "beads: hook 'pre-push' timed out after ${_bd_timeout}s — continuing without beads"
|
||||||
|
_bd_exit=0
|
||||||
|
fi
|
||||||
|
if [ "$_bd_exit" -eq 3 ]; then
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'pre-push'"
|
echo >&2 "beads: database not initialized — skipping hook 'pre-push'"
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
||||||
fi
|
fi
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
# --- END BEADS INTEGRATION v1.3.2 ---
|
||||||
@@ -1,24 +1,59 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
|
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
|
||||||
# This section is managed by beads. Do not remove these markers.
|
# This section is managed by beads. Do not remove these markers.
|
||||||
if command -v bd >/dev/null 2>&1; then
|
if command -v bd >/dev/null 2>&1; then
|
||||||
export BD_GIT_HOOK=1
|
export BD_GIT_HOOK=1
|
||||||
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
|
||||||
if command -v timeout >/dev/null 2>&1; then
|
case "$_bd_timeout" in
|
||||||
timeout "$_bd_timeout" bd hooks run prepare-commit-msg "$@"
|
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
|
||||||
_bd_exit=$?
|
*[1-9]*) _bd_timeout_invalid=0 ;;
|
||||||
if [ $_bd_exit -eq 124 ]; then
|
*) _bd_timeout_invalid=1 ;;
|
||||||
echo >&2 "beads: hook 'prepare-commit-msg' timed out after ${_bd_timeout}s — continuing without beads"
|
esac
|
||||||
|
if [ "$_bd_timeout_invalid" -eq 1 ]; then
|
||||||
|
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
|
||||||
|
_bd_timeout=300
|
||||||
|
fi
|
||||||
|
_bd_timeout_backend=none
|
||||||
|
_bd_timeout_command=
|
||||||
|
for _bd_timeout_candidate in timeout gtimeout; do
|
||||||
|
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
|
||||||
|
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
|
||||||
|
case "$_bd_timeout_version" in
|
||||||
|
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -n "$_bd_timeout_command" ]; then
|
||||||
|
_bd_timeout_backend=coreutils
|
||||||
|
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run prepare-commit-msg "$@"; then
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
|
elif command -v perl >/dev/null 2>&1; then
|
||||||
|
_bd_timeout_backend=perl
|
||||||
|
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run prepare-commit-msg "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
bd hooks run prepare-commit-msg "$@"
|
echo >&2 "beads: hook 'prepare-commit-msg' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
|
||||||
_bd_exit=$?
|
if bd hooks run prepare-commit-msg "$@"; then
|
||||||
|
_bd_exit=0
|
||||||
|
else
|
||||||
|
_bd_exit=$?
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -eq 3 ]; then
|
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
|
||||||
|
echo >&2 "beads: hook 'prepare-commit-msg' timed out after ${_bd_timeout}s — continuing without beads"
|
||||||
|
_bd_exit=0
|
||||||
|
fi
|
||||||
|
if [ "$_bd_exit" -eq 3 ]; then
|
||||||
echo >&2 "beads: database not initialized — skipping hook 'prepare-commit-msg'"
|
echo >&2 "beads: database not initialized — skipping hook 'prepare-commit-msg'"
|
||||||
_bd_exit=0
|
_bd_exit=0
|
||||||
fi
|
fi
|
||||||
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
|
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
|
||||||
fi
|
fi
|
||||||
# --- END BEADS INTEGRATION v1.0.3 ---
|
# --- END BEADS INTEGRATION v1.3.2 ---
|
||||||
@@ -46,6 +46,7 @@ CLAUDE.md
|
|||||||
.dolt/
|
.dolt/
|
||||||
*.db
|
*.db
|
||||||
.beads-credential-key
|
.beads-credential-key
|
||||||
|
.beads.gate.lock
|
||||||
|
|
||||||
# --- babysitter managed ---
|
# --- babysitter managed ---
|
||||||
.a5c/creds.env
|
.a5c/creds.env
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ in {
|
|||||||
pkgs.llm-agents.t3code
|
pkgs.llm-agents.t3code
|
||||||
pkgs.llm-agents.opencode2
|
pkgs.llm-agents.opencode2
|
||||||
pkgs.llm-agents.claude-code
|
pkgs.llm-agents.claude-code
|
||||||
|
pkgs.llm-agents.beads
|
||||||
pkgs.agent-lib
|
pkgs.agent-lib
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -144,15 +145,19 @@ in {
|
|||||||
# Independent of HOME entirely: git uses exactly this ssh config
|
# Independent of HOME entirely: git uses exactly this ssh config
|
||||||
# (absolute store path) for every gitea remote.
|
# (absolute store path) for every gitea remote.
|
||||||
GIT_SSH_COMMAND = "ssh -F ${t3SshConfig}";
|
GIT_SSH_COMMAND = "ssh -F ${t3SshConfig}";
|
||||||
|
# bd falls back to git's user.name for its audit trail, which would
|
||||||
|
# be m3tam3re here — keep it in line with the commit identity.
|
||||||
|
BEADS_ACTOR = gitIdentityEnv.GIT_AUTHOR_NAME;
|
||||||
}
|
}
|
||||||
// gitIdentityEnv;
|
// gitIdentityEnv;
|
||||||
|
|
||||||
# Harness CLIs and git for the agents T3 Code spawns.
|
# Harness CLIs, git and the issue tracker for the agents T3 Code spawns.
|
||||||
path = with pkgs; [
|
path = with pkgs; [
|
||||||
git
|
git
|
||||||
openssh
|
openssh
|
||||||
llm-agents.opencode2
|
llm-agents.opencode2
|
||||||
llm-agents.claude-code
|
llm-agents.claude-code
|
||||||
|
llm-agents.beads
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user