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>
72 lines
1.3 KiB
Bash
Executable File
72 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# MCP Python package gate.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
MCP_DIR="$REPO_ROOT/integrations/beads-mcp"
|
|
|
|
# shellcheck source=../../.buildflags
|
|
source "$REPO_ROOT/.buildflags"
|
|
# shellcheck source=lib/timing.sh
|
|
source "$REPO_ROOT/scripts/ci/lib/timing.sh"
|
|
|
|
tmpdir=""
|
|
cleanup() {
|
|
if [[ -n "$tmpdir" ]]; then
|
|
rm -rf "$tmpdir"
|
|
fi
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
prepare_bd_binary() {
|
|
tmpdir="$(mktemp -d)"
|
|
local target="$tmpdir/bd"
|
|
|
|
if [[ -n "${BEADS_TEST_BD_BINARY:-}" ]]; then
|
|
cp "$BEADS_TEST_BD_BINARY" "$target"
|
|
else
|
|
go build -o "$target" ./cmd/bd
|
|
fi
|
|
|
|
chmod +x "$target"
|
|
export PATH="$tmpdir:$PATH"
|
|
bd version
|
|
}
|
|
|
|
mcp_uv_sync() {
|
|
cd "$MCP_DIR"
|
|
uv sync --all-groups --locked
|
|
}
|
|
|
|
mcp_ruff() {
|
|
cd "$MCP_DIR"
|
|
uv run ruff check src/beads_mcp tests
|
|
}
|
|
|
|
mcp_mypy() {
|
|
cd "$MCP_DIR"
|
|
uv run mypy src/beads_mcp
|
|
}
|
|
|
|
mcp_pytest() {
|
|
cd "$MCP_DIR"
|
|
uv run pytest --durations=50
|
|
}
|
|
|
|
mcp_build() {
|
|
cd "$MCP_DIR"
|
|
rm -rf dist
|
|
uv build
|
|
}
|
|
|
|
cd "$REPO_ROOT"
|
|
|
|
ci_time "prepare bd for MCP package" -- prepare_bd_binary
|
|
ci_time "mcp uv sync" -- mcp_uv_sync
|
|
ci_time "mcp ruff check" -- mcp_ruff
|
|
ci_time "mcp mypy" -- mcp_mypy
|
|
ci_time "mcp pytest" -- mcp_pytest
|
|
ci_time "mcp build" -- mcp_build
|