File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ http://localhost:1609
107107
108108## Documentation
109109- API docs: [ ` docs/API_DOCUMENTATION.md ` ] ( docs/API_DOCUMENTATION.md )
110+ - Agent installation: [ ` docs/AGENT_INSTALLATION.md ` ] ( docs/AGENT_INSTALLATION.md )
111+ - Agent architecture: [ ` docs/AGENT_ARCHITECTURE.md ` ] ( docs/AGENT_ARCHITECTURE.md )
110112- Android widget companion: [ ` docs/ANDROID_WIDGET_COMPANION.md ` ] ( docs/ANDROID_WIDGET_COMPANION.md )
111113- Android widget APK downloads: [ GitHub Releases] ( https://github.com/seanap/Chronicle/releases )
112114- Misery Index report: [ ` docs/MISERY_INDEX_REPORT.md ` ] ( docs/MISERY_INDEX_REPORT.md )
Original file line number Diff line number Diff line change 1+ CHRONICLE_COMPANION_HOST = 0.0.0.0
2+ CHRONICLE_COMPANION_PORT = 8788
3+ CHRONICLE_COMPANION_API_KEY = replace-with-the-same-value-as-AGENT_REMOTE_API_KEY
4+ CHRONICLE_COMPANION_HTTP_TIMEOUT_SECONDS = 30
5+
6+ # Leave blank if codex is on PATH.
7+ EDITOR_AI_CODEX_CLI_PATH =
8+ # Direct Codex at the companion workspace and prompt assets.
9+ EDITOR_AI_WORKSPACE_DIR = /app/ai/chronicle_companion
10+ EDITOR_AI_TIMEOUT_SECONDS = 120
11+ EDITOR_AI_CODEX_MODEL =
Original file line number Diff line number Diff line change 1+ FROM node:24-bookworm-slim
2+
3+ ENV PYTHONDONTWRITEBYTECODE=1 \
4+ PYTHONUNBUFFERED=1
5+
6+ WORKDIR /app
7+
8+ RUN apt-get update \
9+ && apt-get install -y --no-install-recommends python3 python3-pip python3-venv tzdata \
10+ && rm -rf /var/lib/apt/lists/*
11+
12+ COPY requirements.txt /app/requirements.txt
13+ RUN pip3 install --break-system-packages --no-cache-dir -r /app/requirements.txt
14+
15+ RUN npm install -g @openai/codex
16+
17+ COPY . /app
18+
19+ EXPOSE 8788
20+
21+ CMD ["python3" , "ai/chronicle_companion/service.py" ]
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description=Chronicle Codex Companion
3+ After=network-online.target
4+ Wants=network-online.target
5+
6+ [Service]
7+ Type=simple
8+ User=CHANGE_ME
9+ WorkingDirectory=/opt/chronicle/Auto-Stat-Description
10+ EnvironmentFile=/opt/chronicle/Auto-Stat-Description/ai/chronicle_companion/.env
11+ ExecStart=/opt/chronicle/Auto-Stat-Description/.venv/bin/python ai/chronicle_companion/service.py
12+ Restart=always
13+ RestartSec=5
14+
15+ [Install]
16+ WantedBy=multi-user.target
Original file line number Diff line number Diff line change 1+ services :
2+ chronicle-codex-companion :
3+ build :
4+ context : ../..
5+ dockerfile : ai/chronicle_companion/Dockerfile
6+ image : chronicle-codex-companion:latest
7+ container_name : chronicle-codex-companion
8+ env_file :
9+ - .env
10+ environment :
11+ - EDITOR_AI_CODEX_CLI_PATH=/usr/local/bin/codex
12+ - EDITOR_AI_WORKSPACE_DIR=/app/ai/chronicle_companion
13+ working_dir : /app
14+ volumes :
15+ - ../..:/app
16+ - codex-home:/root/.codex
17+ ports :
18+ - " 8788:8788"
19+ restart : unless-stopped
20+
21+ volumes :
22+ codex-home :
You can’t perform that action at this time.
0 commit comments