Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
50 lines
1.5 KiB
Bash
Executable File
50 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Guard user-facing docs and hints against unsupported first-party go install forms.
|
|
#
|
|
# Plain `go install github.com/.../beads/cmd/bd@latest` takes the CGO+ICU path
|
|
# on many hosts. Keep first-party guidance on one of the documented supported
|
|
# modes:
|
|
# - CGO_ENABLED=0 ... (server-mode only)
|
|
# - ... gms_pure_go ... (embedded-capable, no ICU)
|
|
|
|
set -euo pipefail
|
|
|
|
fail=0
|
|
|
|
while IFS= read -r hit; do
|
|
file="${hit%%:*}"
|
|
rest="${hit#*:}"
|
|
line_no="${rest%%:*}"
|
|
|
|
printf 'error: %s:%s: unsupported go install module path\n' "$file" "$line_no" >&2
|
|
printf ' use github.com/steveyegge/beads/cmd/bd because go.mod still declares that module path\n' >&2
|
|
fail=1
|
|
done < <(
|
|
git grep -n -E 'go install github\.com/gastownhall/beads/cmd/bd@latest' -- . || true
|
|
)
|
|
|
|
while IFS= read -r hit; do
|
|
file="${hit%%:*}"
|
|
rest="${hit#*:}"
|
|
line_no="${rest%%:*}"
|
|
line="${rest#*:}"
|
|
|
|
case "$file" in
|
|
CHANGELOG.md|docs/GETTING_STARTED_ANALYSIS.md)
|
|
continue
|
|
;;
|
|
esac
|
|
|
|
if [[ "$line" == *"CGO_ENABLED=0"* || "$line" == *'CGO_ENABLED="0"'* || "$line" == *"gms_pure_go"* ]]; then
|
|
continue
|
|
fi
|
|
|
|
printf 'error: %s:%s: unsupported first-party bare go install guidance\n' "$file" "$line_no" >&2
|
|
printf ' use CGO_ENABLED=0 for server mode or GOFLAGS=-tags=gms_pure_go for embedded mode\n' >&2
|
|
fail=1
|
|
done < <(
|
|
git grep -n -E 'go install github\.com/(steveyegge|gastownhall)/beads/cmd/bd@latest' -- . || true
|
|
)
|
|
|
|
exit "$fail"
|