the-frame-ai 0.10.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "the-frame-ai",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "FRAME — Framework for AI-Assisted Solo Development",
5
5
  "type": "module",
6
6
  "bin": {
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
- process.stderr.write(`[FRAME] promptFrontend called, isTTY=${process.stdin.isTTY}\n`);
147
- if (!process.stdin.isTTY) return false;
148
- const rl = createInterface({ input: process.stdin, output: process.stdout });
149
- return new Promise((resolve) => {
150
- rl.question('\n? Is this a frontend project? Adds Playwright MCP for UI verification (y/N): ', (answer) => {
151
- rl.close();
152
- resolve(answer.trim().toLowerCase() === 'y');
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,8 +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
- process.stderr.write(`[FRAME] config.frontend=${JSON.stringify(config.frontend)}, !config.frontend=${!config.frontend}, isTTY=${process.stdin.isTTY}, yes=${flags.yes}\n`);
57
- if (!config.frontend && process.stdin.isTTY && !flags.yes) {
56
+ if (!config.frontend && !flags.yes) {
58
57
  const frontend = await promptFrontend(false);
59
58
  if (frontend) {
60
59
  config.frontend = true;