the-frame-ai 0.10.4 → 0.10.6
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 +13 -8
- package/src/update.js +1 -1
package/package.json
CHANGED
package/src/languages.js
CHANGED
|
@@ -143,13 +143,18 @@ 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
|
-
rl.
|
|
152
|
-
|
|
146
|
+
try {
|
|
147
|
+
const { createReadStream } = await import('node:fs');
|
|
148
|
+
const input = createReadStream('/dev/tty');
|
|
149
|
+
const rl = createInterface({ input, output: process.stdout, terminal: true });
|
|
150
|
+
return new Promise((resolve) => {
|
|
151
|
+
rl.question('\n? Is this a frontend project? Adds Playwright MCP for UI verification (y/N): ', (answer) => {
|
|
152
|
+
rl.close();
|
|
153
|
+
input.destroy();
|
|
154
|
+
resolve(answer.trim().toLowerCase() === 'y');
|
|
155
|
+
});
|
|
153
156
|
});
|
|
154
|
-
}
|
|
157
|
+
} catch {
|
|
158
|
+
return false;
|
|
159
|
+
}
|
|
155
160
|
}
|
package/src/update.js
CHANGED
|
@@ -53,7 +53,7 @@ export async function update(target, flags = {}) {
|
|
|
53
53
|
|
|
54
54
|
// Ask frontend question early, before file operations
|
|
55
55
|
let frontendDecided = config.frontend === true;
|
|
56
|
-
if (!config.frontend &&
|
|
56
|
+
if (!config.frontend && !flags.yes) {
|
|
57
57
|
const frontend = await promptFrontend(false);
|
|
58
58
|
if (frontend) {
|
|
59
59
|
config.frontend = true;
|