@base44-preview/cli 0.0.31-pr.244.d6ebd8d → 0.0.31-pr.245.26fa5cb

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
@@ -183940,7 +183940,8 @@ async function listProjects() {
183940
183940
  response = await base44Client.get("api/apps", {
183941
183941
  searchParams: {
183942
183942
  sort: "-updated_date",
183943
- fields: "id,name,user_description,is_managed_source_code"
183943
+ fields: "id,name,user_description,is_managed_source_code",
183944
+ limit: 50
183944
183945
  }
183945
183946
  });
183946
183947
  } catch (error48) {
@@ -195084,8 +195085,8 @@ var EMPTY_TEMPLATE = import_common_tags.stripIndent`
195084
195085
  // Auto-generated by Base44 CLI - DO NOT EDIT
195085
195086
  // Regenerate with: base44 types
195086
195087
  //
195087
- // No entities, functions, or agents found in project.
195088
- // Add resources to base44/entities/, base44/functions/, or base44/agents/
195088
+ // No entities, functions, agents, or connectors found in project.
195089
+ // Add resources to base44/entities/, base44/functions/, base44/agents/, or base44/connectors/
195089
195090
  // and run \`base44 types generate\` again.
195090
195091
 
195091
195092
  declare module '@base44/sdk' {
@@ -195098,8 +195099,8 @@ async function generateTypesFile(input) {
195098
195099
  await writeFile(getTypesOutputPath(projectRoot), content);
195099
195100
  }
195100
195101
  async function generateContent(input) {
195101
- const { entities, functions, agents } = input;
195102
- if (!entities.length && !functions.length && !agents.length) {
195102
+ const { entities, functions, agents, connectors } = input;
195103
+ if (!entities.length && !functions.length && !agents.length && !connectors.length) {
195103
195104
  return EMPTY_TEMPLATE;
195104
195105
  }
195105
195106
  const entityInterfaces = await Promise.all(entities.map((e8) => compileEntity(e8)));
@@ -195109,7 +195110,8 @@ async function generateContent(input) {
195109
195110
  entities.map((e8) => `"${e8.name}": ${toPascalCase(e8.name)};`)
195110
195111
  ],
195111
195112
  ["FunctionNameRegistry", functions.map((f7) => `"${f7.name}": true;`)],
195112
- ["AgentNameRegistry", agents.map((a5) => `"${a5.name}": true;`)]
195113
+ ["AgentNameRegistry", agents.map((a5) => `"${a5.name}": true;`)],
195114
+ ["ConnectorTypeRegistry", connectors.map((c8) => `"${c8.type}": true;`)]
195113
195115
  ];
195114
195116
  const registries2 = registryEntries.filter(([, entries]) => entries.length > 0).map(([name2, entries]) => registry2(name2, entries));
195115
195117
  return [
@@ -195183,9 +195185,9 @@ async function updateProjectConfig(projectRoot) {
195183
195185
  // src/cli/commands/types/generate.ts
195184
195186
  var TYPES_FILE_PATH = "base44/.types/types.d.ts";
195185
195187
  async function generateTypesAction() {
195186
- const { entities, functions, agents, project: project2 } = await readProjectConfig();
195188
+ const { entities, functions, agents, connectors, project: project2 } = await readProjectConfig();
195187
195189
  await runTask("Generating types", async () => {
195188
- await generateTypesFile({ entities, functions, agents });
195190
+ await generateTypesFile({ entities, functions, agents, connectors });
195189
195191
  });
195190
195192
  const tsconfigUpdated = await updateProjectConfig(project2.root);
195191
195193
  return {
@@ -199758,4 +199760,4 @@ export {
199758
199760
  CLIExitError
199759
199761
  };
199760
199762
 
199761
- //# debugId=475C7FF08980E31A64756E2164756E21
199763
+ //# debugId=DAE9ABAB4A8EF43C64756E2164756E21