the-frame-ai 0.10.1 → 0.10.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/update.js +13 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "the-frame-ai",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "description": "FRAME — Framework for AI-Assisted Solo Development",
5
5
  "type": "module",
6
6
  "bin": {
package/src/update.js CHANGED
@@ -51,6 +51,17 @@ export async function update(target, flags = {}) {
51
51
 
52
52
  log(`\nFRAME update: ${installedVersion} → ${VERSION}\n`);
53
53
 
54
+ // Ask frontend question early, before file operations
55
+ let frontendDecided = config.frontend === true;
56
+ if (!config.frontend && process.stdin.isTTY && !flags.yes) {
57
+ const frontend = await promptFrontend(false);
58
+ if (frontend) {
59
+ config.frontend = true;
60
+ frontendDecided = true;
61
+ writeFileSync(join(target, '.frame', 'config.json'), JSON.stringify(config, null, 2), 'utf-8');
62
+ }
63
+ }
64
+
54
65
  let updated = 0;
55
66
 
56
67
  // 1. Update commands
@@ -100,15 +111,8 @@ export async function update(target, flags = {}) {
100
111
  }
101
112
  }
102
113
 
103
- // 5. Update Playwright MCP (frontend projects)
104
- if (config.frontend === undefined || config.frontend === false) {
105
- if (process.stdin.isTTY && !flags.yes) {
106
- const frontend = await promptFrontend(false);
107
- config.frontend = frontend;
108
- writeFileSync(join(target, '.frame', 'config.json'), JSON.stringify(config, null, 2), 'utf-8');
109
- }
110
- }
111
- if (config.frontend) {
114
+ // 5. Apply Playwright MCP if frontend
115
+ if (frontendDecided) {
112
116
  mergeClaudeSettings(join(target, '.claude', 'settings.json'));
113
117
  if (config.copilot) mergeVscodeMcp(join(target, '.vscode', 'mcp.json'));
114
118
  }