ftown-bridge 0.30.72 → 0.30.73
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.
- package/dist/local-api-server.js +2 -1
- package/dist/local-api-server.js.map +1 -1
- package/dist/preview-assets.d.ts +10 -0
- package/dist/preview-assets.js +241 -0
- package/dist/preview-assets.js.map +1 -0
- package/dist/preview-protocol.d.ts +10 -1
- package/dist/preview-protocol.js +3 -1
- package/dist/preview-protocol.js.map +1 -1
- package/dist/session-controller.js +21 -17
- package/dist/session-controller.js.map +1 -1
- package/dist/session-preview.d.ts +7 -2
- package/dist/session-preview.js +241 -141
- package/dist/session-preview.js.map +1 -1
- package/dist/sessions-commands.js +10 -9
- package/dist/sessions-commands.js.map +1 -1
- package/package.json +7 -2
- package/skills/ftown/SKILL.md +4 -15
- package/skills/ftown/references/sessions.md +9 -28
package/dist/local-api-server.js
CHANGED
|
@@ -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 >
|
|
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
|
}
|