qa-deck-backend 1.0.0 → 1.0.1
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/bin/cli.js +0 -0
- package/package.json +1 -1
- package/server.js +0 -7
package/bin/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -38,13 +38,6 @@ const ALLOWED_ORIGINS = [
|
|
|
38
38
|
|
|
39
39
|
if (!fs.existsSync(PROJECTS_DIR)) fs.mkdirSync(PROJECTS_DIR, { recursive: true });
|
|
40
40
|
|
|
41
|
-
// Guard: warn if running from unexpected location (e.g. stale process from renamed folder)
|
|
42
|
-
const expectedDirName = "qa-autopilot-backend";
|
|
43
|
-
if (path.basename(__dirname) !== expectedDirName) {
|
|
44
|
-
console.warn(`⚠️ WARNING: server.js is running from an unexpected directory: ${__dirname}`);
|
|
45
|
-
console.warn(` Expected directory name: "${expectedDirName}"`);
|
|
46
|
-
console.warn(` If you renamed the project folder, restart this server from the correct path.\n`);
|
|
47
|
-
}
|
|
48
41
|
|
|
49
42
|
// Sanitize AI JSON output — strips markdown fences and escapes literal control
|
|
50
43
|
// characters that Claude sometimes emits inside string values (e.g. raw newlines
|