@base44-preview/cli 0.1.14-pr.619.5a268b0 → 0.1.14-pr.621.673feed
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 +25 -61
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -23331,7 +23331,7 @@ var require_ejs = __commonJS(function(exports) {
|
|
|
23331
23331
|
}
|
|
23332
23332
|
});
|
|
23333
23333
|
|
|
23334
|
-
// ../../node_modules/isexe/windows.js
|
|
23334
|
+
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/windows.js
|
|
23335
23335
|
var require_windows = __commonJS(function(exports, module) {
|
|
23336
23336
|
module.exports = isexe;
|
|
23337
23337
|
isexe.sync = sync;
|
|
@@ -23369,7 +23369,7 @@ var require_windows = __commonJS(function(exports, module) {
|
|
|
23369
23369
|
}
|
|
23370
23370
|
});
|
|
23371
23371
|
|
|
23372
|
-
// ../../node_modules/isexe/mode.js
|
|
23372
|
+
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/mode.js
|
|
23373
23373
|
var require_mode = __commonJS(function(exports, module) {
|
|
23374
23374
|
module.exports = isexe;
|
|
23375
23375
|
isexe.sync = sync;
|
|
@@ -23400,7 +23400,7 @@ var require_mode = __commonJS(function(exports, module) {
|
|
|
23400
23400
|
}
|
|
23401
23401
|
});
|
|
23402
23402
|
|
|
23403
|
-
// ../../node_modules/isexe/index.js
|
|
23403
|
+
// ../../node_modules/cross-spawn/node_modules/which/node_modules/isexe/index.js
|
|
23404
23404
|
var require_isexe = __commonJS(function(exports, module) {
|
|
23405
23405
|
var fs = __require("fs");
|
|
23406
23406
|
var core;
|
|
@@ -23453,7 +23453,7 @@ var require_isexe = __commonJS(function(exports, module) {
|
|
|
23453
23453
|
}
|
|
23454
23454
|
});
|
|
23455
23455
|
|
|
23456
|
-
// ../../node_modules/which/which.js
|
|
23456
|
+
// ../../node_modules/cross-spawn/node_modules/which/which.js
|
|
23457
23457
|
var require_which = __commonJS(function(exports, module) {
|
|
23458
23458
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
23459
23459
|
var path = __require("path");
|
|
@@ -223739,7 +223739,7 @@ var createInstance = (defaults) => {
|
|
|
223739
223739
|
var ky = createInstance();
|
|
223740
223740
|
var distribution_default = ky;
|
|
223741
223741
|
|
|
223742
|
-
//
|
|
223742
|
+
// node_modules/zod/v4/core/core.js
|
|
223743
223743
|
var NEVER = Object.freeze({
|
|
223744
223744
|
status: "aborted"
|
|
223745
223745
|
});
|
|
@@ -223815,7 +223815,7 @@ function config(newConfig) {
|
|
|
223815
223815
|
Object.assign(globalConfig, newConfig);
|
|
223816
223816
|
return globalConfig;
|
|
223817
223817
|
}
|
|
223818
|
-
//
|
|
223818
|
+
// node_modules/zod/v4/core/util.js
|
|
223819
223819
|
function getEnumValues(entries) {
|
|
223820
223820
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
223821
223821
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -224238,7 +224238,7 @@ function issue(...args) {
|
|
|
224238
224238
|
return { ...iss };
|
|
224239
224239
|
}
|
|
224240
224240
|
|
|
224241
|
-
//
|
|
224241
|
+
// node_modules/zod/v4/core/errors.js
|
|
224242
224242
|
var initializer = (inst, def) => {
|
|
224243
224243
|
inst.name = "$ZodError";
|
|
224244
224244
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -224333,7 +224333,7 @@ function prettifyError(error) {
|
|
|
224333
224333
|
`);
|
|
224334
224334
|
}
|
|
224335
224335
|
|
|
224336
|
-
//
|
|
224336
|
+
// node_modules/zod/v4/core/parse.js
|
|
224337
224337
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
224338
224338
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
224339
224339
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -224410,7 +224410,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
224410
224410
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
224411
224411
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
224412
224412
|
};
|
|
224413
|
-
//
|
|
224413
|
+
// node_modules/zod/v4/core/regexes.js
|
|
224414
224414
|
var cuid = /^[cC][^\s-]{8,}$/;
|
|
224415
224415
|
var cuid2 = /^[0-9a-z]+$/;
|
|
224416
224416
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -224467,7 +224467,7 @@ var _null = /^null$/i;
|
|
|
224467
224467
|
var lowercase = /^[^A-Z]*$/;
|
|
224468
224468
|
var uppercase = /^[^a-z]*$/;
|
|
224469
224469
|
|
|
224470
|
-
//
|
|
224470
|
+
// node_modules/zod/v4/core/checks.js
|
|
224471
224471
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
224472
224472
|
var _a;
|
|
224473
224473
|
inst._zod ?? (inst._zod = {});
|
|
@@ -224856,7 +224856,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
224856
224856
|
};
|
|
224857
224857
|
});
|
|
224858
224858
|
|
|
224859
|
-
//
|
|
224859
|
+
// node_modules/zod/v4/core/doc.js
|
|
224860
224860
|
class Doc {
|
|
224861
224861
|
constructor(args = []) {
|
|
224862
224862
|
this.content = [];
|
|
@@ -224894,14 +224894,14 @@ class Doc {
|
|
|
224894
224894
|
}
|
|
224895
224895
|
}
|
|
224896
224896
|
|
|
224897
|
-
//
|
|
224897
|
+
// node_modules/zod/v4/core/versions.js
|
|
224898
224898
|
var version = {
|
|
224899
224899
|
major: 4,
|
|
224900
224900
|
minor: 3,
|
|
224901
224901
|
patch: 6
|
|
224902
224902
|
};
|
|
224903
224903
|
|
|
224904
|
-
//
|
|
224904
|
+
// node_modules/zod/v4/core/schemas.js
|
|
224905
224905
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
224906
224906
|
var _a;
|
|
224907
224907
|
inst ?? (inst = {});
|
|
@@ -226298,7 +226298,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
226298
226298
|
payload.issues.push(issue(_iss));
|
|
226299
226299
|
}
|
|
226300
226300
|
}
|
|
226301
|
-
//
|
|
226301
|
+
// node_modules/zod/v4/locales/en.js
|
|
226302
226302
|
var error = () => {
|
|
226303
226303
|
const Sizable = {
|
|
226304
226304
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -226404,7 +226404,7 @@ function en_default() {
|
|
|
226404
226404
|
localeError: error()
|
|
226405
226405
|
};
|
|
226406
226406
|
}
|
|
226407
|
-
//
|
|
226407
|
+
// node_modules/zod/v4/core/registries.js
|
|
226408
226408
|
var _a;
|
|
226409
226409
|
var $output = Symbol("ZodOutput");
|
|
226410
226410
|
var $input = Symbol("ZodInput");
|
|
@@ -226454,7 +226454,7 @@ function registry() {
|
|
|
226454
226454
|
}
|
|
226455
226455
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
226456
226456
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
226457
|
-
//
|
|
226457
|
+
// node_modules/zod/v4/core/api.js
|
|
226458
226458
|
function _string(Class, params) {
|
|
226459
226459
|
return new Class({
|
|
226460
226460
|
type: "string",
|
|
@@ -226909,7 +226909,7 @@ function _check(fn, params) {
|
|
|
226909
226909
|
ch._zod.check = fn;
|
|
226910
226910
|
return ch;
|
|
226911
226911
|
}
|
|
226912
|
-
//
|
|
226912
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
226913
226913
|
function initializeContext(params) {
|
|
226914
226914
|
let target = params?.target ?? "draft-2020-12";
|
|
226915
226915
|
if (target === "draft-4")
|
|
@@ -227254,7 +227254,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
227254
227254
|
extractDefs(ctx, schema);
|
|
227255
227255
|
return finalize(ctx, schema);
|
|
227256
227256
|
};
|
|
227257
|
-
//
|
|
227257
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
227258
227258
|
var formatMap = {
|
|
227259
227259
|
guid: "uuid",
|
|
227260
227260
|
url: "uri",
|
|
@@ -227595,7 +227595,7 @@ var lazyProcessor = (schema, ctx, _json, params) => {
|
|
|
227595
227595
|
const seen = ctx.seen.get(schema);
|
|
227596
227596
|
seen.ref = innerType;
|
|
227597
227597
|
};
|
|
227598
|
-
//
|
|
227598
|
+
// node_modules/zod/v4/classic/iso.js
|
|
227599
227599
|
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
227600
227600
|
$ZodISODateTime.init(inst, def);
|
|
227601
227601
|
ZodStringFormat.init(inst, def);
|
|
@@ -227625,7 +227625,7 @@ function duration2(params) {
|
|
|
227625
227625
|
return _isoDuration(ZodISODuration, params);
|
|
227626
227626
|
}
|
|
227627
227627
|
|
|
227628
|
-
//
|
|
227628
|
+
// node_modules/zod/v4/classic/errors.js
|
|
227629
227629
|
var initializer2 = (inst, issues) => {
|
|
227630
227630
|
$ZodError.init(inst, issues);
|
|
227631
227631
|
inst.name = "ZodError";
|
|
@@ -227660,7 +227660,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
227660
227660
|
Parent: Error
|
|
227661
227661
|
});
|
|
227662
227662
|
|
|
227663
|
-
//
|
|
227663
|
+
// node_modules/zod/v4/classic/parse.js
|
|
227664
227664
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
227665
227665
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
227666
227666
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -227674,7 +227674,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
227674
227674
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
227675
227675
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
227676
227676
|
|
|
227677
|
-
//
|
|
227677
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
227678
227678
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
227679
227679
|
$ZodType.init(inst, def);
|
|
227680
227680
|
Object.assign(inst["~standard"], {
|
|
@@ -228328,7 +228328,7 @@ function superRefine(fn) {
|
|
|
228328
228328
|
function preprocess(fn, schema) {
|
|
228329
228329
|
return pipe(transform(fn), schema);
|
|
228330
228330
|
}
|
|
228331
|
-
//
|
|
228331
|
+
// node_modules/zod/v4/classic/external.js
|
|
228332
228332
|
config(en_default());
|
|
228333
228333
|
// src/core/clients/schemas.ts
|
|
228334
228334
|
var ApiErrorResponseSchema = looseObject({
|
|
@@ -239945,46 +239945,10 @@ async function resolveWorkerBuild(projectRoot, progress) {
|
|
|
239945
239945
|
}
|
|
239946
239946
|
async function readIndexHtml(assetsDir, assets) {
|
|
239947
239947
|
if (!assetsDir || !assets.manifest["/index.html"]) {
|
|
239948
|
-
throw
|
|
239948
|
+
throw new InvalidInputError(`No index.html found in "${assetsDir ?? "the site output directory"}" — a static site needs one at the output directory root.`);
|
|
239949
239949
|
}
|
|
239950
239950
|
return new Uint8Array(await readFile3(join17(assetsDir, "index.html")));
|
|
239951
239951
|
}
|
|
239952
|
-
var BUILD_FIRST_HINT = {
|
|
239953
|
-
message: "Run 'base44 build' first (it injects your app id; a bare 'npm run build' does not)"
|
|
239954
|
-
};
|
|
239955
|
-
var REDIRECT_FILE_IN_COPY = ".wrangler/deploy/config.json";
|
|
239956
|
-
var NO_ARTIFACT_HINT = {
|
|
239957
|
-
message: `A build that emits ${REDIRECT_FILE_IN_COPY} deploys its server too; without one, only the files in the output directory are deployed.`
|
|
239958
|
-
};
|
|
239959
|
-
async function missingIndexHtmlError(assetsDir, assets) {
|
|
239960
|
-
if (!assetsDir) {
|
|
239961
|
-
return new InvalidInputError(`No site output to deploy: this build emitted no ${REDIRECT_FILE_IN_COPY}, and the project config sets no 'site.outputDirectory' to fall back to.`, {
|
|
239962
|
-
hints: [
|
|
239963
|
-
{
|
|
239964
|
-
message: `Add 'site.outputDirectory' to your config.jsonc (e.g., "site": { "outputDirectory": "dist" })`
|
|
239965
|
-
}
|
|
239966
|
-
]
|
|
239967
|
-
});
|
|
239968
|
-
}
|
|
239969
|
-
if (!await pathExists(assetsDir)) {
|
|
239970
|
-
return new InvalidInputError(`Output directory does not exist: ${assetsDir}. Make sure to build your project first.`, { hints: [BUILD_FIRST_HINT] });
|
|
239971
|
-
}
|
|
239972
|
-
const paths = Object.keys(assets.manifest);
|
|
239973
|
-
if (paths.length === 0) {
|
|
239974
|
-
return new InvalidInputError(`No files found in output directory: ${assetsDir}. Make sure to build your project first.`, { hints: [BUILD_FIRST_HINT] });
|
|
239975
|
-
}
|
|
239976
|
-
const nested = paths.filter((path) => path.endsWith("/index.html")).sort();
|
|
239977
|
-
return new InvalidInputError(`No index.html at the root of "${assetsDir}" — the build emitted ${paths.length} ${paths.length === 1 ? "file" : "files"} there, none of them an entry point.`, {
|
|
239978
|
-
hints: [
|
|
239979
|
-
...nested.length > 0 ? [
|
|
239980
|
-
{
|
|
239981
|
-
message: `Found an index.html deeper in the output: ${nested.join(", ")} — point 'site.outputDirectory' at that directory, or have the build emit an entry point at the root.`
|
|
239982
|
-
}
|
|
239983
|
-
] : [],
|
|
239984
|
-
NO_ARTIFACT_HINT
|
|
239985
|
-
]
|
|
239986
|
-
});
|
|
239987
|
-
}
|
|
239988
239952
|
function buildAssetsConfig(assetsConfig, progress) {
|
|
239989
239953
|
if (!assetsConfig)
|
|
239990
239954
|
return null;
|
|
@@ -259525,4 +259489,4 @@ export {
|
|
|
259525
259489
|
runCLI
|
|
259526
259490
|
};
|
|
259527
259491
|
|
|
259528
|
-
//# debugId=
|
|
259492
|
+
//# debugId=08F7780409C3464664756E2164756E21
|