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>
39 lines
952 B
Python
Executable File
39 lines
952 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Sync version from pyproject.toml to config.py
|
|
This script is called by GitHub Actions after semantic-release updates the version
|
|
"""
|
|
|
|
import re
|
|
from datetime import datetime
|
|
|
|
import toml
|
|
|
|
|
|
def update_config_version():
|
|
# Read version from pyproject.toml
|
|
with open("pyproject.toml") as f:
|
|
data = toml.load(f)
|
|
version = data["project"]["version"]
|
|
|
|
# Read current config.py
|
|
with open("config.py") as f:
|
|
content = f.read()
|
|
|
|
# Update version
|
|
content = re.sub(r'__version__ = "[^"]*"', f'__version__ = "{version}"', content)
|
|
|
|
# Update date to current date
|
|
today = datetime.now().strftime("%Y-%m-%d")
|
|
content = re.sub(r'__updated__ = "[^"]*"', f'__updated__ = "{today}"', content)
|
|
|
|
# Write back
|
|
with open("config.py", "w") as f:
|
|
f.write(content)
|
|
|
|
print(f"Updated config.py to version {version}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
update_config_version()
|