@base44-preview/cli 0.0.51-pr.503.750a608 → 0.0.51-pr.503.7da032c

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
@@ -242943,7 +242943,7 @@ async function readAllEntities(entitiesDir) {
242943
242943
  const names = new Set;
242944
242944
  for (const entity of entities) {
242945
242945
  if (names.has(entity.name)) {
242946
- throw new ConfigInvalidError(`Duplicate entity name "${entity.name}" in ${entitiesDir}`, entitiesDir, {
242946
+ throw new InvalidInputError(`Duplicate entity name "${entity.name}"`, {
242947
242947
  hints: [
242948
242948
  {
242949
242949
  message: `Remove duplicate entities with name "${entity.name}" - only one entity per name is allowed`
@@ -243294,7 +243294,7 @@ async function readAllFunctions(functionsDir) {
243294
243294
  const names = new Set;
243295
243295
  for (const fn of functions) {
243296
243296
  if (names.has(fn.name)) {
243297
- throw new ConfigInvalidError(`Duplicate function name "${fn.name}" in ${functionsDir}`, functionsDir, {
243297
+ throw new InvalidInputError(`Duplicate function name "${fn.name}"`, {
243298
243298
  hints: [
243299
243299
  {
243300
243300
  message: "Ensure each function has a unique name (or path for zero-config functions)."
@@ -252819,17 +252819,17 @@ async function pullFunctionsAction({ log, runTask: runTask2 }, name2) {
252819
252819
  successMessage: "Functions fetched successfully",
252820
252820
  errorMessage: "Failed to fetch functions"
252821
252821
  });
252822
- if (name2 && pluginFunctionNames.has(name2)) {
252823
- return {
252824
- outroMessage: `Function "${name2}" is managed by a plugin and was not pulled into ${functionsDir}`
252825
- };
252826
- }
252827
252822
  const matchingRemote = name2 ? remoteFunctions.filter((f) => f.name === name2) : remoteFunctions;
252828
252823
  if (name2 && matchingRemote.length === 0) {
252829
252824
  return {
252830
252825
  outroMessage: `Function "${name2}" not found on remote`
252831
252826
  };
252832
252827
  }
252828
+ if (name2 && pluginFunctionNames.has(name2)) {
252829
+ return {
252830
+ outroMessage: `Function "${name2}" is managed by a plugin and was not pulled into ${functionsDir}`
252831
+ };
252832
+ }
252833
252833
  const skippedPluginOwned = matchingRemote.filter((fn) => pluginFunctionNames.has(fn.name));
252834
252834
  const toPull = matchingRemote.filter((fn) => !pluginFunctionNames.has(fn.name));
252835
252835
  if (toPull.length === 0) {
@@ -261545,4 +261545,4 @@ export {
261545
261545
  CLIExitError
261546
261546
  };
261547
261547
 
261548
- //# debugId=2ADA1E4C26BBE1A464756E2164756E21
261548
+ //# debugId=492444463F90A67B64756E2164756E21