@beastmode-develeap/beastmode 0.1.337 → 0.1.339
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/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/web/board.html +1 -1
- package/dist/web/build-commit.txt +1 -1
- package/dist/web/build-stamp.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6427,6 +6427,10 @@ function getBoardRoutes(factoryDir) {
|
|
|
6427
6427
|
`clone_target not allowed: ${resolvedPath} is outside the configured allowlist`
|
|
6428
6428
|
);
|
|
6429
6429
|
}
|
|
6430
|
+
const preflightResp = await proxyToBoard(boardUrl, "GET", "/api/projects");
|
|
6431
|
+
if ((preflightResp.projects || []).some((p) => p.name === repoName)) {
|
|
6432
|
+
throw new HttpError(409, { error: `Project already exists: ${repoName}` });
|
|
6433
|
+
}
|
|
6430
6434
|
if (existsSync16(resolvedPath)) {
|
|
6431
6435
|
throw new Error(`Target path already exists: ${resolvedPath} \u2014 pick a different clone_target or rename the existing folder`);
|
|
6432
6436
|
}
|