Skip to content

The design language that makes your AI harness better at design.

JavaScript

Eval-run guards: local card base, question-page disable

Paul Bakaus88fe139aa747
diff --git a/skill/scripts/concept-seed.mjs b/skill/scripts/concept-seed.mjs
index c3ca97def..f1c31fb2a 100644
--- a/skill/scripts/concept-seed.mjs
+++ b/skill/scripts/concept-seed.mjs
@@ -159,7 +159,7 @@ export async function pingChosen({ chosenId, key, scope, mode }) {
}
}
-const CARD_BASE = 'https://impeccable.style/worlds/cards';
+const CARD_BASE = process.env.IMPECCABLE_CARD_BASE || 'https://impeccable.style/worlds/cards';
export function renderChallenger(concept, index) {
const system = concept.system.map(rule => ` - ${rule}`).join('\n');
diff --git a/skill/scripts/serve-question.mjs b/skill/scripts/serve-question.mjs
index 99d13639d..41016f9b7 100644
--- a/skill/scripts/serve-question.mjs
+++ b/skill/scripts/serve-question.mjs
@@ -68,6 +68,11 @@ function arg(name, fallback = null) {
}
const hasFlag = (name) => process.argv.includes(`--${name}`);
+if (process.env.IMPECCABLE_QUESTION_DISABLED) {
+ console.log('serve-question: disabled in this session (no browser); use the structured question tool instead.');
+ process.exit(2);
+}
+
const payloadPath = arg('payload');
const timeoutSec = Number(arg('timeout', '900'));
const portArg = Number(arg('port', '0'));