the-frame-ai 0.9.0 → 0.9.2

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.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "FRAME — Framework for AI-Assisted Solo Development",
5
5
  "type": "module",
6
6
  "bin": {
package/src/init.js CHANGED
@@ -147,7 +147,7 @@ export async function init(target, flags = {}) {
147
147
 
148
148
  ensureDir(join(destPath, '..'));
149
149
  const content = readFileSync(srcPath, 'utf-8');
150
- const replaced = applyVars(content, vars, qualityVars);
150
+ const replaced = relPath.startsWith('specs/_template/') ? content : applyVars(content, vars, qualityVars);
151
151
  writeFile(destPath, replaced);
152
152
  fileCount++;
153
153
  }
package/src/languages.js CHANGED
@@ -52,28 +52,18 @@ export async function promptLanguage(langOverride, yes = false) {
52
52
  const options = LANGUAGES.map((l, i) => ` ${i + 1}) ${l.label}`).join('\n');
53
53
  const footer = `\n Enter number [1-${LANGUAGES.length}] (or press Enter for auto): `;
54
54
 
55
- return new Promise((resolve) => {
56
- rl.on('close', () => resolve('auto'));
55
+ const answer = (await ask(rl, prompt + options + footer)).trim();
56
+ rl.close();
57
57
 
58
- rl.question(prompt + options + footer, (answer) => {
59
- const choice = answer.trim();
60
- if (choice === '' || choice === '1') {
61
- rl.close();
62
- return resolve('auto');
63
- }
58
+ if (answer === '' || answer === '1') return 'auto';
64
59
 
65
- const idx = parseInt(choice, 10) - 1;
66
- if (idx >= 0 && idx < LANGUAGES.length) {
67
- rl.close();
68
- return resolve(LANGUAGES[idx].code);
69
- }
60
+ const idx = parseInt(answer, 10) - 1;
61
+ if (idx >= 0 && idx < LANGUAGES.length) return LANGUAGES[idx].code;
70
62
 
71
- rl.question(' Enter custom language code (e.g., "ja", "ko", "fr"): ', (code) => {
72
- rl.close();
73
- resolve(code.trim().toLowerCase() || 'auto');
74
- });
75
- });
76
- });
63
+ const rl2 = createInterface({ input: process.stdin, output: process.stdout });
64
+ const custom = (await ask(rl2, ' Enter custom language code (e.g., "ja", "ko", "fr"): ')).trim().toLowerCase();
65
+ rl2.close();
66
+ return custom || 'auto';
77
67
  }
78
68
 
79
69
  const STACK_PRESETS = {