@base44-preview/cli 0.0.15-pr.97.767bf58 → 0.0.15-pr.97.84705cb

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/dist/cli/index.js +11 -6
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -16709,7 +16709,7 @@ const CreateProjectResponseSchema = looseObject({ id: string() });
16709
16709
  const AppSchema = looseObject({
16710
16710
  id: string(),
16711
16711
  name: string(),
16712
- is_managed_source_code: boolean()
16712
+ is_managed_source_code: boolean().optional()
16713
16713
  });
16714
16714
  const AppsResponseSchema = array(AppSchema);
16715
16715
 
@@ -16801,7 +16801,7 @@ async function fetchApps() {
16801
16801
  return AppsResponseSchema.parse(await response.json());
16802
16802
  }
16803
16803
  async function fetchLinkableApps() {
16804
- return (await fetchApps()).filter((app) => !app.is_managed_source_code);
16804
+ return (await fetchApps()).filter((app) => app.is_managed_source_code === false);
16805
16805
  }
16806
16806
 
16807
16807
  //#endregion
@@ -38850,10 +38850,15 @@ async function link(options) {
38850
38850
  });
38851
38851
  if (await promptForLinkAction(linkableApps) === "choose") {
38852
38852
  const selectedApp = await promptForExistingApp(linkableApps);
38853
- await writeAppConfig(projectRoot.root, selectedApp.id);
38854
- setAppConfig({
38855
- id: selectedApp.id,
38856
- projectRoot: projectRoot.root
38853
+ await runTask("Linking project...", async () => {
38854
+ await writeAppConfig(projectRoot.root, selectedApp.id);
38855
+ setAppConfig({
38856
+ id: selectedApp.id,
38857
+ projectRoot: projectRoot.root
38858
+ });
38859
+ }, {
38860
+ successMessage: "Project linked successfully",
38861
+ errorMessage: "Failed to link project"
38857
38862
  });
38858
38863
  M.message(`${theme.styles.header("Dashboard")}: ${theme.colors.links(getDashboardUrl(selectedApp.id))}`);
38859
38864
  return { outroMessage: "Project linked" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.15-pr.97.767bf58",
3
+ "version": "0.0.15-pr.97.84705cb",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",