the-frame-ai 0.10.6 → 0.10.7
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/package.json +1 -1
- package/src/languages.js +7 -13
- package/src/update.js +1 -0
package/package.json
CHANGED
package/src/languages.js
CHANGED
|
@@ -143,18 +143,12 @@ export async function promptCopilot(yes = false) {
|
|
|
143
143
|
|
|
144
144
|
export async function promptFrontend(yes = false) {
|
|
145
145
|
if (yes) return false;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
rl.close();
|
|
153
|
-
input.destroy();
|
|
154
|
-
resolve(answer.trim().toLowerCase() === 'y');
|
|
155
|
-
});
|
|
146
|
+
if (!process.stdin.isTTY) return false;
|
|
147
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
148
|
+
return new Promise((resolve) => {
|
|
149
|
+
rl.question('\n? Is this a frontend project? Adds Playwright MCP for UI verification (y/N): ', (answer) => {
|
|
150
|
+
rl.close();
|
|
151
|
+
resolve(answer.trim().toLowerCase() === 'y');
|
|
156
152
|
});
|
|
157
|
-
}
|
|
158
|
-
return false;
|
|
159
|
-
}
|
|
153
|
+
});
|
|
160
154
|
}
|
package/src/update.js
CHANGED
|
@@ -19,6 +19,7 @@ export async function update(target, flags = {}) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const config = JSON.parse(readFileSync(join(target, '.frame', 'config.json'), 'utf-8'));
|
|
22
|
+
console.log(`[DBG] frontend=${JSON.stringify(config.frontend)} isTTY=${process.stdin.isTTY} yes=${flags.yes}`);
|
|
22
23
|
const vars = { PROJECT_NAME: config.project ?? '', LANGUAGE: config.language ?? '' };
|
|
23
24
|
const qualityVars = Object.fromEntries(
|
|
24
25
|
Object.entries(config.quality?.commands ?? {}).map(([k, v]) => [`quality.commands.${k}`, v])
|