Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# GitHub App Configuration
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY_PATH=./deep-assistant-bot-private-key.pem
# Alternative: Provide private key directly (base64 encoded)
# GITHUB_APP_PRIVATE_KEY=
GITHUB_WEBHOOK_SECRET=
GITHUB_INSTALLATION_ID=

# Service Configuration
NODE_ENV=development
PORT=3000
LOG_LEVEL=info

# Database
DATABASE_PATH=./data/db.json

# Integration Endpoints
API_GATEWAY_URL=http://localhost:3001
TELEGRAM_BOT_WEBHOOK_URL=http://localhost:3002/webhook

# AI Service Configuration
AI_MODEL_DEFAULT=claude-3-5-sonnet-20241022
AI_MODEL_FALLBACK=gpt-4
AI_MAX_TOKENS=4096
AI_TEMPERATURE=0.7

# Security
JWT_SECRET=
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=10

# Feature Flags
ENABLE_ISSUE_CREATION=true
ENABLE_PR_GENERATION=true
ENABLE_AUTO_MERGE=false
ENABLE_ADVANCED_ANALYSIS=false

# Optional: Redis (for production)
# REDIS_URL=redis://localhost:6379

# Optional: Sentry (for error tracking)
# SENTRY_DSN=
37 changes: 37 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"env": {
"node": true,
"es2022": true,
"jest": true
},
"extends": [
"eslint:recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"jest"
],
"rules": {
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"prefer-const": "error",
"no-var": "error",
"eqeqeq": ["error", "always"],
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"no-throw-literal": "error",
"prefer-promise-reject-errors": "error"
},
"overrides": [
{
"files": ["tests/**/*.js"],
"env": {
"jest": true
}
}
]
}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,14 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# GitHub App private keys
*.pem

# Database files
data/*.json
!data/.gitkeep

# Temporary files
tmp/
temp/
9 changes: 9 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"arrowParens": "always",
"endOfLine": "lf"
}
Loading