This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
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>
2026-06-23 14:14:09 +03:00

71 lines
2.1 KiB
PowerShell

#!/usr/bin/env pwsh
#Requires -Version 5.1
[CmdletBinding()]
param()
# Set error action preference
$ErrorActionPreference = "Stop"
# Colors for output (using Write-Host with colors)
function Write-ColorText {
param(
[Parameter(Mandatory)]
[string]$Text,
[string]$Color = "White",
[switch]$NoNewline
)
if ($NoNewline) {
Write-Host $Text -ForegroundColor $Color -NoNewline
} else {
Write-Host $Text -ForegroundColor $Color
}
}
Write-ColorText "=== Building PAL MCP Server Docker Image ===" -Color Green
# Check if .env file exists
if (!(Test-Path ".env")) {
Write-ColorText "Warning: .env file not found. Copying from .env.example" -Color Yellow
if (Test-Path ".env.example") {
Copy-Item ".env.example" ".env"
Write-ColorText "Please edit .env file with your API keys before running the server" -Color Yellow
} else {
Write-ColorText "Error: .env.example not found" -Color Red
exit 1
}
}
# Build the Docker image
Write-ColorText "Building Docker image..." -Color Green
try {
docker-compose build --no-cache
if ($LASTEXITCODE -ne 0) {
throw "Docker build failed"
}
} catch {
Write-ColorText "Error: Failed to build Docker image" -Color Red
exit 1
}
# Verify the build
Write-ColorText "Verifying build..." -Color Green
$images = docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}\t{{.CreatedAt}}" | Select-String "pal-mcp-server"
if ($images) {
Write-ColorText "✓ Docker image built successfully" -Color Green
Write-ColorText "Image details:" -Color Green
$images | ForEach-Object { Write-Host $_.Line }
} else {
Write-ColorText "✗ Failed to build Docker image" -Color Red
exit 1
}
Write-ColorText "=== Build Complete ===" -Color Green
Write-ColorText "Next steps:" -Color Yellow
Write-Host " 1. Edit .env file with your API keys"
Write-ColorText " 2. Run: " -Color White -NoNewline
Write-ColorText "docker-compose up -d" -Color Green
Write-ColorText "Or use the deploy script: " -Color White -NoNewline
Write-ColorText ".\deploy.ps1" -Color Green