@nometria-ai/nom 0.2.4 → 0.2.6

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": "@nometria-ai/nom",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Deploy any project to any cloud from your terminal. One command, zero config.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -100,6 +100,7 @@ export async function deploy(flags) {
100
100
 
101
101
  // Step 5: Poll for status via Deno function
102
102
  const deployId = deployResult.deploy_id || appName;
103
+ console.log(`\n Dashboard: https://nometria.com/AppDetails?app_id=${deployId}\n`);
103
104
  let finalStatus;
104
105
  while (true) {
105
106
  await sleep(3000);
@@ -116,8 +117,9 @@ export async function deploy(flags) {
116
117
  deploySpinner.update(`${isResync ? 'Resyncing' : 'Deploying'} — ${st}`);
117
118
 
118
119
  // Only trust deploymentStatus for completion — instanceState='running' just means
119
- // EC2 booted, not that the deploy script finished.
120
- const isDone = deployStatus === 'completed' || deployStatus === 'running' || topStatus === 'deployed';
120
+ // EC2 booted, and topStatus='deployed' just means the record exists in DB.
121
+ // The sync script calls report_status("running") only after everything finishes.
122
+ const isDone = deployStatus === 'completed' || deployStatus === 'running';
121
123
  if (isDone) {
122
124
  finalStatus = statusResult;
123
125
  deploySpinner.succeed(isResync ? 'Resynced successfully' : 'Deployed successfully');
@@ -141,10 +143,10 @@ export async function deploy(flags) {
141
143
  }
142
144
 
143
145
  // Step 7: Print result
144
- const url = finalStatus.data?.deployUrl || finalStatus.url || `https://${appName}.nometria.com`;
146
+ const url = finalStatus.data?.deployUrl || finalStatus.url || `https://${deployId}.ownmy.app`;
145
147
  console.log(`
146
148
  Live at: ${url}
147
- Dashboard: https://nometria.com/AppDetails?app_id=${appName}
149
+ Dashboard: https://nometria.com/AppDetails?app_id=${deployId}
148
150
  `);
149
151
 
150
152
  // Step 8: Auto-detect git repo and offer GitHub connection