Skip to content

Commit 9d7b1df

Browse files
Some nits, copy changes, breadcrumb improvement to AGY. (#10078)
* Some nits, copy changes, breadcrumb improvement to AGY.
1 parent 1c13340 commit 9d7b1df

3 files changed

Lines changed: 23 additions & 19 deletions

File tree

src/commands/studio-export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ export const command = new Command("studio:export <path>")
4242
}
4343
}
4444

45-
logger.info(`⏳ Exporting Studio apps from ${rootPath} to Antigravity...`);
45+
logger.info(`⏳ Exporting Studio app from ${rootPath} to Antigravity...`);
4646
await migrate(rootPath, options as MigrateOptions);
4747
});

src/firebase_studio/migrate.ts

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export async function extractMetadata(
201201
exit: 1,
202202
});
203203
}
204-
logger.info(`✅ Detected Firebase Project: ${projectId}`);
204+
logger.info(`✅ Using Firebase Project: ${projectId}`);
205205
} else {
206206
// TODO need a mitigation here
207207
logger.info(
@@ -360,7 +360,7 @@ async function getAgyCommand(startAgy?: boolean): Promise<string | undefined> {
360360

361361
const downloadLink = "https://antigravity.google/download";
362362
logger.info(
363-
`⚠️ Antigravity IDE CLI (agy) not found in your PATH. To ensure a seamless migration, please download and install Antigravity: ${downloadLink}`,
363+
`⚠️ Antigravity IDE not found in your PATH. To ensure a seamless migration, please download and install Antigravity: ${downloadLink}`,
364364
);
365365
return undefined;
366366
}
@@ -566,15 +566,27 @@ async function askToOpenAntigravity(
566566
startAntigravity?: boolean,
567567
): Promise<void> {
568568
const agyCommand = await getAgyCommand(startAntigravity);
569+
570+
logger.info(`\n🎉 Your Firebase Studio project "${appName}" is now ready for Antigravity!`);
571+
logger.info(
572+
"Antigravity is Google's agentic IDE, where you can collaborate with AI agents to build, test, and deploy your application.",
573+
);
574+
logger.info("\nWhat to do next inside Antigravity:");
575+
logger.info(
576+
" 1. Review the README.md: It has been updated with specifics about this migrated project.",
577+
);
578+
logger.info(
579+
" 2. Open the Agent Chat: Use the side panel or press Cmd+L (Ctrl+L on Windows/Linux). This is your main interface with the AI.",
580+
);
581+
582+
logger.info("\nFile any bugs at https://github.com/firebase/firebase-tools/issues");
583+
569584
if (!startAntigravity || !agyCommand) {
570-
logger.info(
571-
'\n👉 Next steps: Open this folder in Antigravity and run the "Initial Project Setup" workflow.',
572-
);
573585
return;
574586
}
575587

576588
const answer = await prompt.confirm({
577-
message: `Migration complete for ${appName}! Would you like to open it in Antigravity now?`,
589+
message: "Would you like to open it in Antigravity now?",
578590
default: true,
579591
});
580592

@@ -591,10 +603,6 @@ async function askToOpenAntigravity(
591603
} catch (err: unknown) {
592604
utils.logWarning("Could not open Antigravity IDE automatically. Please open it manually.");
593605
}
594-
} else {
595-
logger.info(
596-
'\n👉 Next steps: Open this folder in Antigravity and run the "Initial Project Setup" workflow.',
597-
);
598606
}
599607
}
600608

@@ -621,7 +629,7 @@ export async function migrate(
621629
const currentFolderName = path.basename(rootPath);
622630
if (currentFolderName === "download") {
623631
logger.info(
624-
`\n💡 Tip: You might want to rename this folder to "${appName.toLowerCase().replace(/\s+/g, "-")}"`,
632+
`\n💡 Tip: You may want to rename this folder to "${appName.toLowerCase().replace(/\s+/g, "-")}"`,
625633
);
626634
}
627635

templates/firebase-studio-export/workflows/startup_workflow.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ description: Run initial checks and fix common migration issues
55

66
# Step 1: Check Compilation
77

8-
Run \`npm run typecheck\` and \`npm run build\` to ensure the project is in a healthy state.
8+
Run \`npm run typecheck\` and \`npm run build\` (depending on the app type) to ensure the project is in a healthy state.
99

10-
# Step 2: Verify Firebase Auth/Firestore
10+
# Step 2: Cleanup Genkit config
1111

12-
If the app uses Firebase services, ensure the environment variables are correctly set or provided via App Hosting.
13-
14-
# Step 3: Cleanup Genkit config
15-
16-
If genkit is otherwise unused in this project, remove the configuration in src/ai/genkit.ts and remove related dependencies in package.json.
12+
If genkit is otherwise unused in this project, ask the user if they'd like to remove the configuration in src/ai/genkit.ts and remove related dependencies in package.json.

0 commit comments

Comments
 (0)