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>
40 lines
763 B
Bash
Executable File
40 lines
763 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
fix=false
|
|
if [[ "${1:-}" == "--fix" ]]; then
|
|
fix=true
|
|
shift
|
|
fi
|
|
|
|
if [[ "$#" -eq 0 ]]; then
|
|
echo "usage: scripts/gh-body-lint [--fix] <body.md> [body2.md...]" >&2
|
|
exit 2
|
|
fi
|
|
|
|
failed=0
|
|
|
|
for file in "$@"; do
|
|
if [[ ! -f "$file" ]]; then
|
|
echo "$file: not a file" >&2
|
|
failed=1
|
|
continue
|
|
fi
|
|
|
|
if grep -q '\\n' "$file"; then
|
|
echo "$file: contains literal \\\\n sequences; use real newlines" >&2
|
|
failed=1
|
|
fi
|
|
|
|
if grep -Eq '(^|[^A-Za-z0-9_/-])GH#[0-9]+' "$file"; then
|
|
if "$fix"; then
|
|
perl -0pi -e 's/(^|[^A-Za-z0-9_\/-])GH#([0-9]+)/$1#$2/g' "$file"
|
|
else
|
|
echo "$file: contains GH#123-style issue refs; use #123 or owner/repo#123" >&2
|
|
failed=1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
exit "$failed"
|