@base44-preview/cli 0.0.51-pr.503.7da032c → 0.0.51-pr.503.868a87f
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 +9 -9
- package/dist/cli/index.js.map +6 -6
- package/package.json +1 -1
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
|
|
242946
|
+
throw new ConfigInvalidError(`Duplicate entity name "${entity.name}" in ${entitiesDir}`, entitiesDir, {
|
|
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
|
|
243297
|
+
throw new ConfigInvalidError(`Duplicate function name "${fn.name}" in ${functionsDir}`, functionsDir, {
|
|
243298
243298
|
hints: [
|
|
243299
243299
|
{
|
|
243300
243300
|
message: "Ensure each function has a unique name (or path for zero-config functions)."
|
|
@@ -252819,15 +252819,15 @@ async function pullFunctionsAction({ log, runTask: runTask2 }, name2) {
|
|
|
252819
252819
|
successMessage: "Functions fetched successfully",
|
|
252820
252820
|
errorMessage: "Failed to fetch functions"
|
|
252821
252821
|
});
|
|
252822
|
-
|
|
252823
|
-
if (name2 && matchingRemote.length === 0) {
|
|
252822
|
+
if (name2 && pluginFunctionNames.has(name2)) {
|
|
252824
252823
|
return {
|
|
252825
|
-
outroMessage: `Function "${name2}" not
|
|
252824
|
+
outroMessage: `Function "${name2}" is managed by a plugin and was not pulled into ${functionsDir}`
|
|
252826
252825
|
};
|
|
252827
252826
|
}
|
|
252828
|
-
|
|
252827
|
+
const matchingRemote = name2 ? remoteFunctions.filter((f) => f.name === name2) : remoteFunctions;
|
|
252828
|
+
if (name2 && matchingRemote.length === 0) {
|
|
252829
252829
|
return {
|
|
252830
|
-
outroMessage: `Function "${name2}"
|
|
252830
|
+
outroMessage: `Function "${name2}" not found on remote`
|
|
252831
252831
|
};
|
|
252832
252832
|
}
|
|
252833
252833
|
const skippedPluginOwned = matchingRemote.filter((fn) => pluginFunctionNames.has(fn.name));
|
|
@@ -253643,7 +253643,7 @@ async function generateContent(input) {
|
|
|
253643
253643
|
`);
|
|
253644
253644
|
}
|
|
253645
253645
|
async function compileEntity(entity2) {
|
|
253646
|
-
const { name: name2, ...schema10 } = entity2;
|
|
253646
|
+
const { name: name2, source: _source, ...schema10 } = entity2;
|
|
253647
253647
|
const jsonSchema = {
|
|
253648
253648
|
...schema10,
|
|
253649
253649
|
title: name2,
|
|
@@ -261545,4 +261545,4 @@ export {
|
|
|
261545
261545
|
CLIExitError
|
|
261546
261546
|
};
|
|
261547
261547
|
|
|
261548
|
-
//# debugId=
|
|
261548
|
+
//# debugId=DF90D03DD2CA450564756E2164756E21
|