@base44-preview/cli 0.1.15-pr.630.3d4a1d8 → 0.1.15-pr.630.66e368f

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/dist/cli/index.js CHANGED
@@ -270006,14 +270006,6 @@ async function createAndLinkApp(options) {
270006
270006
  targetDir
270007
270007
  };
270008
270008
  }
270009
- function nextStepsLines(app) {
270010
- return [
270011
- "",
270012
- `${source_default.bold("Your app lives in")} ./${app.dirName}`,
270013
- source_default.dim(` cd ${app.dirName} && base44 code # keep building with the agent`),
270014
- source_default.dim(` cd ${app.dirName} && base44 app send "…" # one non-interactive turn`)
270015
- ];
270016
- }
270017
270009
  async function githubReauthLines(error) {
270018
270010
  if (!isGithubUserTokenError(error))
270019
270011
  return null;
@@ -270287,8 +270279,6 @@ async function newAction({ log, runTask, jsonMode }, prompt, options) {
270287
270279
  repo_url: app.repoUrl ?? null,
270288
270280
  editor_url: app.editorUrl,
270289
270281
  preview_url: previewUrl ?? null,
270290
- dir: app.dirName,
270291
- path: app.targetDir,
270292
270282
  status: finalState ?? "created"
270293
270283
  })}
270294
270284
  `
@@ -270296,20 +270286,19 @@ async function newAction({ log, runTask, jsonMode }, prompt, options) {
270296
270286
  }
270297
270287
  if (previewUrl)
270298
270288
  log.message(`preview ${previewUrl}`);
270299
- for (const line of nextStepsLines(app))
270300
- log.message(line);
270289
+ const cd = ` Next: cd ${app.dirName}`;
270301
270290
  if (finalState === "error") {
270302
270291
  return {
270303
- outroMessage: `The first build reported an error — open the editor for details.`
270292
+ outroMessage: `The first build reported an error — open the editor for details.${cd}`
270304
270293
  };
270305
270294
  }
270306
270295
  if (finalState === "processing") {
270307
270296
  return {
270308
- outroMessage: `Still building — follow it with \`base44 app status\`.`
270297
+ outroMessage: `Still building — follow it with \`base44 app status\`.${cd}`
270309
270298
  };
270310
270299
  }
270311
270300
  return {
270312
- outroMessage: prompt ? `First build finished · ${formatDuration2(Date.now() - startedAt)}.` : "App created."
270301
+ outroMessage: prompt ? `First build finished · ${formatDuration2(Date.now() - startedAt)}.${cd}` : `App created.${cd}`
270313
270302
  };
270314
270303
  }
270315
270304
  function getNewCommand() {
@@ -276589,7 +276578,7 @@ async function runGenesisSession(options) {
276589
276578
 
276590
276579
  // src/cli/commands/code/index.ts
276591
276580
  var BRAND_ORANGE2 = "#E86B3C";
276592
- async function bootstrapApp(prompt, footer, emit, onCreated, importRepo) {
276581
+ async function bootstrapApp(prompt, footer, emit, importRepo) {
276593
276582
  let app;
276594
276583
  try {
276595
276584
  app = await createAndLinkApp({ prompt, importRepo });
@@ -276598,8 +276587,6 @@ async function bootstrapApp(prompt, footer, emit, onCreated, importRepo) {
276598
276587
  emit(line);
276599
276588
  throw error;
276600
276589
  }
276601
- onCreated(app);
276602
- footer.push(source_default.dim(`dir ./${app.dirName}`));
276603
276590
  if (app.repoUrl)
276604
276591
  footer.push(terminalLink("repo", app.repoUrl));
276605
276592
  footer.push(terminalLink("editor", app.editorUrl));
@@ -276627,7 +276614,7 @@ async function bootstrapApp(prompt, footer, emit, onCreated, importRepo) {
276627
276614
  }
276628
276615
  };
276629
276616
  }
276630
- async function codeAction({ log }, options) {
276617
+ async function codeAction(_ctx, options) {
276631
276618
  if (process.stdout.isTTY !== true) {
276632
276619
  throw new InvalidInputError("base44 code is an interactive session and needs a terminal.");
276633
276620
  }
@@ -276649,12 +276636,8 @@ async function codeAction({ log }, options) {
276649
276636
  primeFirstPoll: true,
276650
276637
  idleHint: "what should the agent do next?"
276651
276638
  });
276652
- log.message(source_default.dim(`app dir ${getAppContext().projectRoot}`));
276653
- return {
276654
- outroMessage: "Session closed. Run `base44 code` here to resume."
276655
- };
276639
+ return { outroMessage: "Done." };
276656
276640
  }
276657
- let created;
276658
276641
  const orange = source_default.hex(BRAND_ORANGE2);
276659
276642
  const footer = [
276660
276643
  source_default.dim(`${orange("●")} ${options.import ? "import" : "builder"}`)
@@ -276664,17 +276647,9 @@ async function codeAction({ log }, options) {
276664
276647
  creatingLabel: options.import ? "importing the repository" : "creating your app",
276665
276648
  modeLabel: options.import ? `Import — ${options.import}` : "Builder — Base44 template + agent",
276666
276649
  footer,
276667
- createApp: (prompt, emit) => bootstrapApp(prompt, footer, emit, (app) => {
276668
- created = app;
276669
- }, options.import)
276650
+ createApp: (prompt, emit) => bootstrapApp(prompt, footer, emit, options.import)
276670
276651
  });
276671
- if (!created) {
276672
- return { outroMessage: "Session closed. No app was created." };
276673
- }
276674
- for (const line of nextStepsLines(created))
276675
- log.message(line);
276676
- log.message(source_default.dim(` editor ${created.editorUrl}`));
276677
- return { outroMessage: "Session closed." };
276652
+ return { outroMessage: "Done." };
276678
276653
  }
276679
276654
  function getCodeCommand() {
276680
276655
  const command = new Base44Command("code", { requireAppContext: false });
@@ -288325,4 +288300,4 @@ export {
288325
288300
  runCLI
288326
288301
  };
288327
288302
 
288328
- //# debugId=10B5F59C032E055A64756E2164756E21
288303
+ //# debugId=0D8DC4BF0CB9F93A64756E2164756E21