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>
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Run the opt-in ICU regex path tests.
|
|
# This is intentionally NOT the normal validation path for beads. The shipped
|
|
# and CI-tested configuration uses -tags gms_pure_go instead.
|
|
|
|
echo "WARNING: scripts/test-icu-path.sh intentionally exercises the ICU-only regex path." >&2
|
|
echo "WARNING: This is maintainer-only and not part of normal validation; use ./scripts/test.sh or make test for the shipped path." >&2
|
|
|
|
export CGO_ENABLED=1
|
|
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
ICU_PREFIX="$(brew --prefix icu4c 2>/dev/null || true)"
|
|
if [[ -z "$ICU_PREFIX" ]]; then
|
|
echo "ERROR: Homebrew icu4c not found." >&2
|
|
echo "Install it with: brew install icu4c" >&2
|
|
exit 1
|
|
fi
|
|
|
|
export CGO_CFLAGS="${CGO_CFLAGS:+$CGO_CFLAGS }-I${ICU_PREFIX}/include"
|
|
export CGO_CPPFLAGS="${CGO_CPPFLAGS:+$CGO_CPPFLAGS }-I${ICU_PREFIX}/include"
|
|
export CGO_LDFLAGS="${CGO_LDFLAGS:+$CGO_LDFLAGS }-L${ICU_PREFIX}/lib -Wl,-rpath,${ICU_PREFIX}/lib"
|
|
fi
|
|
|
|
if [[ $# -eq 0 ]]; then
|
|
set -- ./...
|
|
fi
|
|
|
|
echo "Running ICU regex path tests: go test $*" >&2
|
|
go test "$@"
|