Skip to content

Commit 45e542d

Browse files
committed
merge: resolve .gitignore conflict
2 parents f25e087 + ff2dfe5 commit 45e542d

164 files changed

Lines changed: 40260 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.dockerignore‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# =============================================================================
2+
# MiniCode Python — Docker ignore
3+
# =============================================================================
4+
5+
# Python cache
6+
__pycache__/
7+
*.pyc
8+
*.pyo
9+
*.pyd
10+
*.egg-info/
11+
dist/
12+
build/
13+
*.egg
14+
15+
# Test and dev files
16+
tests/
17+
benchmarks/
18+
docs/
19+
*.md
20+
!README.md
21+
22+
# IDE and editor
23+
.vscode/
24+
.idea/
25+
*.swp
26+
*.swo
27+
28+
# Session / log / temp data
29+
session-log.txt
30+
*.log
31+
*.tmp
32+
33+
# Git
34+
.git/
35+
.gitignore
36+
37+
# Docker
38+
Dockerfile
39+
docker-compose*.yml
40+
.dockerignore
41+
42+
# OS
43+
.DS_Store
44+
Thumbs.db

‎.env.example‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# =============================================================================
2+
# MiniCode Python — Environment Variables
3+
# =============================================================================
4+
# Copy this to .env and fill in your values:
5+
# cp .env.example .env
6+
# =============================================================================
7+
8+
# --- Required (at least one API key) ---
9+
# Anthropic
10+
ANTHROPIC_API_KEY=sk-ant-...
11+
# Or use auth token instead:
12+
# ANTHROPIC_AUTH_TOKEN=
13+
14+
# OpenAI
15+
# OPENAI_API_KEY=sk-...
16+
17+
# OpenRouter (access to 200+ models)
18+
# OPENROUTER_API_KEY=sk-or-...
19+
20+
# Custom OpenAI-compatible endpoint (vLLM, Ollama, LiteLLM, etc.)
21+
# CUSTOM_API_KEY=...
22+
# CUSTOM_API_BASE_URL=http://localhost:11434/v1
23+
24+
# --- Model ---
25+
# Anthropic models
26+
ANTHROPIC_MODEL=claude-sonnet-4-20250514
27+
# ANTHROPIC_BASE_URL=https://api.anthropic.com
28+
29+
# OpenAI models (set this to use GPT models):
30+
# ANTHROPIC_MODEL=gpt-4o
31+
32+
# OpenRouter models (set OPENROUTER_API_KEY first):
33+
# ANTHROPIC_MODEL=anthropic/claude-sonnet-4
34+
# ANTHROPIC_MODEL=openai/gpt-4o
35+
# ANTHROPIC_MODEL=google/gemini-2.5-pro
36+
# ANTHROPIC_MODEL=deepseek/deepseek-r1
37+
# ANTHROPIC_MODEL=meta-llama/llama-4-maverick
38+
# ANTHROPIC_MODEL=openrouter/auto
39+
40+
# Custom endpoint models:
41+
# ANTHROPIC_MODEL=my-custom-model
42+
# CUSTOM_API_BASE_URL=http://localhost:11434/v1
43+
44+
# --- Logging ---
45+
MINI_CODE_LOG_LEVEL=WARNING
46+
# Options: DEBUG, INFO, WARNING, ERROR
47+
48+
# --- Workspace (for Docker) ---
49+
MINI_CODE_WORKSPACE=.
50+
51+
# --- Gateway mode ---
52+
# MINI_CODE_GATEWAY=1
53+
MINI_CODE_GATEWAY_PORT=8080
54+
MINI_CODE_GATEWAY_HOST=0.0.0.0
55+
56+
# --- Platform tokens (for gateway multi-platform) ---
57+
# TELEGRAM_BOT_TOKEN=
58+
# DISCORD_BOT_TOKEN=
59+
# SLACK_BOT_TOKEN=
60+
61+
# --- Cron ---
62+
# MINI_CODE_CRON_CONFIG=./.mini-code/cron.json
63+
64+
# --- OpenRouter settings ---
65+
# OPENROUTER_BASE_URL=https://openrouter.ai/api
66+
# OPENROUTER_REFERER=https://github.com/minicode-py
67+
# OPENROUTER_TITLE=MiniCode Python
68+
# OPENROUTER_TRANSFORMS=
69+
70+
# --- Custom endpoint settings ---
71+
# CUSTOM_API_BASE_URL=http://localhost:11434/v1
72+
# CUSTOM_API_KEY=
73+
# CUSTOM_API_EXTRA_HEADERS=X-Custom-Header:value
74+
75+
# --- User Profile ---
76+
# Set response language and verbosity (also configurable via USER.md)
77+
# MINI_CODE_LANGUAGE=zh-CN
78+
# MINI_CODE_VERBOSITY=normal
79+
# Options for VERBOSITY: concise, normal, detailed
80+
# Create ~/.mini-code/USER.md for full profile customization

‎.github/workflows/ci.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: ["3.11", "3.12"]
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install package
28+
run: python -m pip install -e ".[dev]"
29+
30+
- name: Compile sources
31+
run: python -m compileall -q minicode tests
32+
33+
- name: Run packaging smoke tests
34+
run: python -m pytest tests/test_packaging.py -q
35+
36+
- name: Run test suite
37+
run: python -m pytest -q

‎.gitignore‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,22 @@ env/
3434
*.swo
3535
*~
3636

37+
# Testing
38+
.pytest_cache/
39+
.coverage
40+
htmlcov/
41+
3742
# OS
3843
.DS_Store
3944
Thumbs.db
4045

41-
# Project specific
42-
.pytest_cache/
43-
.coverage
44-
htmlcov/
46+
# Logs
4547
*.log
4648

49+
# Temporary files
50+
*.tmp
51+
*.bak
52+
4753
# MiniCode specific
4854
.mini-code/
49-
minicode_session/
55+
minicode_session/

0 commit comments

Comments
 (0)