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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "the-frame-ai",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "description": "FRAME — Framework for AI-Assisted Solo Development",
5
5
  "type": "module",
6
6
  "bin": {
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
- 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
- });
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
- } catch {
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])