the-frame-ai 0.10.5 → 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 +0 -1
- package/src/update.js +2 -2
package/package.json
CHANGED
package/src/languages.js
CHANGED
|
@@ -143,7 +143,6 @@ 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
146
|
if (!process.stdin.isTTY) return false;
|
|
148
147
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
149
148
|
return new Promise((resolve) => {
|
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])
|
|
@@ -53,8 +54,7 @@ export async function update(target, flags = {}) {
|
|
|
53
54
|
|
|
54
55
|
// Ask frontend question early, before file operations
|
|
55
56
|
let frontendDecided = config.frontend === true;
|
|
56
|
-
|
|
57
|
-
if (!config.frontend && process.stdin.isTTY && !flags.yes) {
|
|
57
|
+
if (!config.frontend && !flags.yes) {
|
|
58
58
|
const frontend = await promptFrontend(false);
|
|
59
59
|
if (frontend) {
|
|
60
60
|
config.frontend = true;
|