{
  "taskEngine": {
    "name": "Task Engine Core",
    "version": "0.3.2",
    "environment": "default",
    "debug": false,
    "logging": {
      "level": "info",
      "enabled": true,
      "format": "json",
      "outputs": ["console", "file"],
      "file": {
        "path": "logs/task-engine.log",
        "maxSize": "10MB",
        "maxFiles": 5
      }
    }
  },
  "architectures": {
    "frontend": {
      "enabled": true,
      "port": 3000,
      "host": "localhost",
      "ssl": false,
      "cors": {
        "enabled": true,
        "origins": ["http://localhost:3000", "http://localhost:3001"]
      },
      "activeAgent": {
        "enabled": true,
        "intelligence": {
          "predictiveAnalytics": true,
          "naturalLanguageProcessing": true,
          "machineLearning": true
        }
      },
      "realTime": {
        "enabled": true,
        "websocket": {
          "port": 3001,
          "pingInterval": 30000,
          "pingTimeout": 5000
        }
      },
      "performance": {
        "optimization": true,
        "caching": true,
        "compression": true,
        "minification": false
      }
    },
    "backend": {
      "enabled": true,
      "port": 8000,
      "host": "localhost",
      "ssl": false,
      "database": {
        "type": "sqlite",
        "path": "data/tasks.db",
        "pool": {
          "min": 2,
          "max": 10,
          "acquireTimeoutMillis": 30000,
          "createTimeoutMillis": 30000,
          "destroyTimeoutMillis": 5000,
          "idleTimeoutMillis": 30000
        }
      },
      "cache": {
        "enabled": true,
        "type": "memory",
        "ttl": 300,
        "maxSize": 1000,
        "checkPeriod": 60
      },
      "performance": {
        "optimization": true,
        "dataEngine": {
          "batchSize": 100,
          "parallelProcessing": true,
          "indexing": true
        },
        "synchronization": {
          "enabled": true,
          "interval": 1000,
          "conflictResolution": "last-write-wins"
        }
      },
      "security": {
        "authentication": {
          "enabled": false,
          "type": "jwt",
          "secret": "your-secret-key",
          "expiresIn": "24h"
        },
        "authorization": {
          "enabled": false,
          "rbac": true
        },
        "encryption": {
          "enabled": false,
          "algorithm": "aes-256-gcm"
        }
      }
    },
    "cli": {
      "enabled": true,
      "commands": {
        "aliases": ["task-master", "tm"],
        "defaultCommand": "help",
        "autoComplete": true
      },
      "performance": {
        "enabled": true,
        "caching": true,
        "optimization": true
      },
      "legacy": {
        "compatibility": true,
        "migration": {
          "autoMigrate": true,
          "backupBeforeMigration": true
        }
      },
      "output": {
        "format": "table",
        "colors": true,
        "verbose": false,
        "json": false
      }
    }
  },
  "ai": {
    "providers": {
      "default": "anthropic",
      "fallback": "openai",
      "anthropic": {
        "enabled": true,
        "model": "claude-3-sonnet-20240229",
        "maxTokens": 4096,
        "temperature": 0.7
      },
      "openai": {
        "enabled": false,
        "model": "gpt-4",
        "maxTokens": 4096,
        "temperature": 0.7
      },
      "ollama": {
        "enabled": false,
        "model": "llama2",
        "baseUrl": "http://localhost:11434"
      }
    },
    "features": {
      "taskGeneration": true,
      "taskOptimization": true,
      "predictiveAnalytics": true,
      "naturalLanguageProcessing": true,
      "intelligentAutomation": true
    },
    "limits": {
      "requestsPerMinute": 60,
      "requestsPerHour": 1000,
      "maxConcurrentRequests": 5
    }
  },
  "mcp": {
    "enabled": true,
    "server": {
      "name": "task-engine-mcp",
      "version": "1.0.0",
      "port": 9000,
      "host": "localhost"
    },
    "tools": {
      "taskManagement": true,
      "aiServices": true,
      "performanceMonitoring": true,
      "systemIntegration": true
    },
    "security": {
      "authentication": false,
      "rateLimiting": {
        "enabled": true,
        "windowMs": 60000,
        "max": 100
      }
    }
  },
  "integrations": {
    "external": {
      "enabled": false,
      "apis": {
        "jira": {
          "enabled": false,
          "baseUrl": "",
          "username": "",
          "apiToken": ""
        },
        "github": {
          "enabled": false,
          "token": "",
          "owner": "",
          "repo": ""
        },
        "slack": {
          "enabled": false,
          "webhookUrl": "",
          "channel": "#general"
        }
      }
    },
    "webhooks": {
      "enabled": false,
      "endpoints": [],
      "security": {
        "signature": true,
        "secret": "webhook-secret"
      }
    }
  },
  "monitoring": {
    "enabled": true,
    "metrics": {
      "performance": true,
      "system": true,
      "business": true,
      "collection": {
        "interval": 30000,
        "retention": "7d"
      }
    },
    "health": {
      "enabled": true,
      "endpoint": "/health",
      "checks": ["database", "cache", "ai-services", "external-apis"]
    },
    "alerting": {
      "enabled": false,
      "thresholds": {
        "responseTime": 1000,
        "errorRate": 0.05,
        "memoryUsage": 0.8,
        "cpuUsage": 0.8
      },
      "channels": {
        "email": {
          "enabled": false,
          "recipients": []
        },
        "slack": {
          "enabled": false,
          "webhookUrl": ""
        }
      }
    }
  },
  "testing": {
    "enabled": true,
    "framework": "jest",
    "coverage": {
      "enabled": true,
      "threshold": 80,
      "reports": ["text", "html", "lcov"]
    },
    "mocking": {
      "enabled": true,
      "aiServices": true,
      "externalApis": true
    }
  },
  "development": {
    "hotReload": true,
    "sourceMap": true,
    "debugMode": false,
    "profiling": false,
    "mockData": {
      "enabled": false,
      "tasks": 10,
      "users": 5
    }
  },
  "deployment": {
    "mode": "standalone",
    "clustering": {
      "enabled": false,
      "workers": "auto"
    },
    "gracefulShutdown": {
      "enabled": true,
      "timeout": 30000
    },
    "healthCheck": {
      "enabled": true,
      "interval": 30000,
      "timeout": 5000
    }
  },
  "paths": {
    "data": "./data",
    "logs": "./logs",
    "cache": "./cache",
    "temp": "./temp",
    "uploads": "./uploads",
    "backups": "./backups"
  },
  "limits": {
    "maxTasks": 10000,
    "maxSubtasks": 100,
    "maxFileSize": "10MB",
    "maxRequestSize": "1MB",
    "maxConcurrentConnections": 1000
  }
}
