ftown-bridge 0.30.72 → 0.30.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { PREVIEW_MAX_INPUTS } from './preview-protocol.js';
1
2
  import { applyRemoteChildPlan, CHILD_PLAN_PATH } from './remote-child-plan.js';
2
3
  import { runProjectBoardCommand } from './project-board-commands.js';
3
4
  import { ProjectBoardChanged } from './project-board-store.js';
@@ -2073,7 +2074,7 @@ export class LocalApiServer extends EventEmitter {
2073
2074
  }
2074
2075
  const body = await parseBody(req);
2075
2076
  if (req.method === 'PUT') {
2076
- if (Object.keys(body).some((key) => key !== 'paths' && key !== 'mode') || !('paths' in body) || !Array.isArray(body.paths) || body.paths.length < 1 || body.paths.length > 12 || body.paths.some((entry) => typeof entry !== 'string' || entry.length === 0)) {
2077
+ if (Object.keys(body).some((key) => key !== 'paths' && key !== 'mode') || !('paths' in body) || !Array.isArray(body.paths) || body.paths.length < 1 || body.paths.length > PREVIEW_MAX_INPUTS || body.paths.some((entry) => typeof entry !== 'string' || entry.length === 0)) {
2077
2078
  jsonResponse(res, 400, { error: 'Invalid preview request' });
2078
2079
  return;
2079
2080
  }