[30388f42] feat: Full stack integration and documentation overhaul

This commit is contained in:
2026-03-08 12:24:35 +00:00
parent 5b48573df0
commit ee238fdd9a
15 changed files with 843 additions and 996 deletions

View File

@@ -126,7 +126,7 @@ app.post('/api/generate-search-strategy', async (req, res) => {
try {
fs.writeFileSync(tempContextFilePath, contextContent);
const pythonScript = path.join(__dirname, '..', 'market_intel_orchestrator.py');
const pythonScript = path.join(__dirname, 'market_intel_orchestrator.py');
const scriptArgs = [
pythonScript,
'--mode', 'generate_strategy',
@@ -163,7 +163,7 @@ app.post('/api/identify-competitors', async (req, res) => {
cleanupFiles.push(tempContextFilePath);
}
const pythonScript = path.join(__dirname, '..', 'market_intel_orchestrator.py');
const pythonScript = path.join(__dirname, 'market_intel_orchestrator.py');
const scriptArgs = [
pythonScript,
'--mode', 'identify_competitors',
@@ -193,7 +193,7 @@ app.post('/api/analyze-company', async (req, res) => {
return res.status(400).json({ error: 'Missing companyName or strategy' });
}
const pythonScript = path.join(__dirname, '..', 'market_intel_orchestrator.py');
const pythonScript = path.join(__dirname, 'market_intel_orchestrator.py');
const scriptArgs = [
pythonScript,
'--mode', 'analyze_company',
@@ -228,7 +228,7 @@ app.post('/api/generate-outreach', async (req, res) => {
fs.writeFileSync(tempDataFilePath, JSON.stringify(companyData));
fs.writeFileSync(tempContextFilePath, knowledgeBase);
const pythonScript = path.join(__dirname, '..', 'market_intel_orchestrator.py');
const pythonScript = path.join(__dirname, 'market_intel_orchestrator.py');
const scriptArgs = [
pythonScript,
'--mode', 'generate_outreach',
@@ -252,7 +252,7 @@ app.post('/api/generate-outreach', async (req, res) => {
// --- DATABASE ROUTES ---
// Initialize DB on startup
const dbScript = path.join(__dirname, '..', 'market_db_manager.py');
const dbScript = path.join(__dirname, 'market_db_manager.py');
spawn('python3', [dbScript, 'init']);
app.get('/api/projects', (req, res) => {