Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: consolidate imports, add parseInt radix, remove unused branchName param
Adam Eivy402c4d6aa8b2
diff --git a/server/routes/featureAgents.js b/server/routes/featureAgents.jsindex 60f3ed9c88..91a0d3fce9 100644--- a/server/routes/featureAgents.js+++ b/server/routes/featureAgents.js@@ -4,8 +4,7 @@import { Router } from 'express';import * as featureAgents from '../services/featureAgents.js';-import { validateRequest } from '../lib/validation.js';-import { featureAgentSchema, featureAgentUpdateSchema } from '../lib/validation.js';+import { validateRequest, featureAgentSchema, featureAgentUpdateSchema } from '../lib/validation.js';import { asyncHandler, ServerError } from '../lib/errorHandler.js';const router = Router();@@ -83,7 +82,7 @@ router.post('/:id/stop', asyncHandler(async (req, res) => {// GET /:id/runs - Run historyrouter.get('/:id/runs', asyncHandler(async (req, res) => {- const limit = parseInt(req.query.limit) || 20;+ const limit = parseInt(req.query.limit, 10) || 20;const runs = await featureAgents.getFeatureAgentRuns(req.params.id, limit);res.json(runs);}));diff --git a/server/services/worktreeManager.js b/server/services/worktreeManager.jsindex ee03406800..78a3713320 100644--- a/server/services/worktreeManager.js+++ b/server/services/worktreeManager.js@@ -212,7 +212,7 @@ export async function removePersistentWorktree(featureAgentId, sourceWorkspace,/*** Merge base branch into a persistent feature agent worktree before a run*/-export async function mergeBaseIntoFeatureWorktree(featureAgentId, sourceWorkspace, branchName, baseBranch = 'main') {+export async function mergeBaseIntoFeatureWorktree(featureAgentId, sourceWorkspace, baseBranch = 'main') {const worktreePath = join(WORKTREES_DIR, '..', 'feature-agents', featureAgentId, 'worktree');if (!existsSync(worktreePath)) return { merged: false, reason: 'worktree-missing' };