@wix/himalaya-cli 0.2029.0 → 0.2031.0
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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{233161e2f9055b01a1ee4261f3780909d2db313aefc225ddd44304de668ba29e.bin → 6ae5256171b5c63d3526a03bf7ac7d83bc3eee9e7a1c39e7d87e46d80257630d.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +152 -121
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/splash-screens.md +11 -0
- package/package.json +2 -2
- package/templates/bare-fashion/config.ts +14 -0
- package/templates/beauty-salon/config.ts +1 -1
- package/templates/beauty-salon-owner/config.ts +2 -2
- package/templates/branded-lite/config.ts +1 -1
- package/templates/community-club/config.ts +1 -1
- package/templates/community-club-owner/config.ts +2 -2
- package/templates/conference/config.ts +14 -0
- package/templates/events-meetups/config.ts +1 -1
- package/templates/events-meetups-owner/config.ts +2 -2
- package/templates/fitness-gym/config.ts +14 -0
- package/templates/gym-fitness/config.ts +1 -1
- package/templates/gym-fitness-owner/config.ts +2 -2
- package/templates/medical-services/config.ts +14 -0
- package/templates/nonprofit-cause/config.ts +1 -1
- package/templates/nonprofit-cause-owner/config.ts +2 -2
- package/templates/owner-lite/config.ts +2 -2
- package/templates/personal-fitness-trainer/config.ts +14 -0
- package/templates/podcast-creator/config.ts +1 -1
- package/templates/podcast-creator-owner/config.ts +2 -2
- package/templates/portfolio-creative/config.ts +1 -1
- package/templates/portfolio-creative-owner/config.ts +2 -2
- package/templates/professional-services/config.ts +14 -0
- package/templates/restaurant/config.ts +1 -1
- package/templates/restaurant-owner/config.ts +2 -2
- package/templates/retail-store/config.ts +1 -1
- package/templates/retail-store-owner/config.ts +2 -2
- package/templates/salon-spa/config.ts +14 -0
- package/templates/wholesale-store/config.ts +14 -0
- package/templates/yoga-studio/config.ts +1 -1
- package/templates/yoga-studio-owner/config.ts +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -9536,6 +9536,7 @@ __export(splash_exports, {
|
|
|
9536
9536
|
nativeConfigInputTokens: () => nativeConfigInputTokens,
|
|
9537
9537
|
normalizeHex: () => normalizeHex,
|
|
9538
9538
|
parseSplashConfig: () => parseSplashConfig,
|
|
9539
|
+
readSplashScalars: () => readSplashScalars,
|
|
9539
9540
|
renderSplashYaml: () => renderSplashYaml,
|
|
9540
9541
|
resolveSplashColors: () => resolveSplashColors,
|
|
9541
9542
|
roundedSquareCornerPt: () => roundedSquareCornerPt,
|
|
@@ -9628,17 +9629,24 @@ function splashFields(literal5, resolve142, depth = 0) {
|
|
|
9628
9629
|
if (!value2) continue;
|
|
9629
9630
|
if (ts2.isStringLiteralLike(value2)) fields2.set(key4, value2.text);
|
|
9630
9631
|
else if (ts2.isNumericLiteral(value2)) fields2.set(key4, Number(value2.text));
|
|
9632
|
+
else if (value2.kind === ts2.SyntaxKind.TrueKeyword) fields2.set(key4, true);
|
|
9633
|
+
else if (value2.kind === ts2.SyntaxKind.FalseKeyword) fields2.set(key4, false);
|
|
9631
9634
|
}
|
|
9632
9635
|
return fields2;
|
|
9633
9636
|
}
|
|
9634
|
-
function
|
|
9635
|
-
if (!configTs.includes("splash")) return
|
|
9637
|
+
function splashFieldsOf(configTs) {
|
|
9638
|
+
if (!configTs.includes("splash")) return /* @__PURE__ */ new Map();
|
|
9636
9639
|
const file2 = parseConfigSource(configTs);
|
|
9637
9640
|
const hit = findSplashLiteral(file2) ?? (isModuleSource(file2) ? void 0 : findSplashLiteral(parseConfigSource(`({
|
|
9638
9641
|
${configTs}
|
|
9639
9642
|
})`)));
|
|
9640
|
-
|
|
9641
|
-
|
|
9643
|
+
return hit ? splashFields(hit.literal, hit.resolve) : /* @__PURE__ */ new Map();
|
|
9644
|
+
}
|
|
9645
|
+
function readSplashScalars(configTs) {
|
|
9646
|
+
return Object.fromEntries(splashFieldsOf(configTs));
|
|
9647
|
+
}
|
|
9648
|
+
function parseSplashConfig(configTs) {
|
|
9649
|
+
const fields2 = splashFieldsOf(configTs);
|
|
9642
9650
|
const str27 = (k3) => {
|
|
9643
9651
|
const v2 = fields2.get(k3);
|
|
9644
9652
|
return typeof v2 === "string" ? v2 : void 0;
|
|
@@ -39709,7 +39717,7 @@ var init_app_services_requirements = __esm({
|
|
|
39709
39717
|
});
|
|
39710
39718
|
|
|
39711
39719
|
// ../../core/dev-server/src/app-icon.ts
|
|
39712
|
-
import { existsSync as existsSync32, readFileSync as readFileSync30, readdirSync as readdirSync22 } from "node:fs";
|
|
39720
|
+
import { existsSync as existsSync32, readFileSync as readFileSync30, readdirSync as readdirSync22, realpathSync as realpathSync7 } from "node:fs";
|
|
39713
39721
|
import { dirname as dirname23, join as join28, resolve as resolve26 } from "node:path";
|
|
39714
39722
|
import { fileURLToPath as fileURLToPath18 } from "node:url";
|
|
39715
39723
|
function findAppIconPath(appDir3) {
|
|
@@ -39739,8 +39747,21 @@ function findContentIconPath(appDir3) {
|
|
|
39739
39747
|
if (abs !== base2 && !abs.startsWith(base2 + "/")) return null;
|
|
39740
39748
|
return existsSync32(abs) ? abs : null;
|
|
39741
39749
|
}
|
|
39750
|
+
function findTemplateIconPath(appDir3) {
|
|
39751
|
+
const apps = realOrResolved(join28(ROOT2, "apps"));
|
|
39752
|
+
const abs = realOrResolved(appDir3);
|
|
39753
|
+
if (dirname23(abs) !== apps) return null;
|
|
39754
|
+
const name = abs.slice(apps.length + 1);
|
|
39755
|
+
const match = /^himi-([a-z0-9][a-z0-9-]*)$/.exec(name);
|
|
39756
|
+
if (!match) return null;
|
|
39757
|
+
for (const candidate of [name, match[1]]) {
|
|
39758
|
+
const icon = join28(TEMPLATE_ICONS_DIR2, `${candidate}.png`);
|
|
39759
|
+
if (existsSync32(icon)) return icon;
|
|
39760
|
+
}
|
|
39761
|
+
return null;
|
|
39762
|
+
}
|
|
39742
39763
|
function resolveAppDirIcon(appDir3) {
|
|
39743
|
-
return findContentIconPath(appDir3) ?? findAppIconPath(appDir3);
|
|
39764
|
+
return findContentIconPath(appDir3) ?? findAppIconPath(appDir3) ?? findTemplateIconPath(appDir3);
|
|
39744
39765
|
}
|
|
39745
39766
|
function readIconFromDir(appDir3) {
|
|
39746
39767
|
const path2 = resolveAppDirIcon(appDir3);
|
|
@@ -39763,12 +39784,20 @@ function readAppIconById(appId3) {
|
|
|
39763
39784
|
const dir = resolveAppDir(appId3);
|
|
39764
39785
|
return dir ? readIconFromDir(dir) : null;
|
|
39765
39786
|
}
|
|
39766
|
-
var ROOT2, APP_ROOTS2;
|
|
39787
|
+
var ROOT2, APP_ROOTS2, TEMPLATE_ICONS_DIR2, realOrResolved;
|
|
39767
39788
|
var init_app_icon = __esm({
|
|
39768
39789
|
"../../core/dev-server/src/app-icon.ts"() {
|
|
39769
39790
|
init_define_HHP_CATALOG();
|
|
39770
39791
|
ROOT2 = resolve26(dirname23(fileURLToPath18(import.meta.url)), "../../..");
|
|
39771
39792
|
APP_ROOTS2 = ["apps", "test-apps"];
|
|
39793
|
+
TEMPLATE_ICONS_DIR2 = join28(ROOT2, "tools/himi-cli/template-icons");
|
|
39794
|
+
realOrResolved = (p2) => {
|
|
39795
|
+
try {
|
|
39796
|
+
return realpathSync7(p2);
|
|
39797
|
+
} catch {
|
|
39798
|
+
return resolve26(p2);
|
|
39799
|
+
}
|
|
39800
|
+
};
|
|
39772
39801
|
}
|
|
39773
39802
|
});
|
|
39774
39803
|
|
|
@@ -45959,6 +45988,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
45959
45988
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
45960
45989
|
var init_idiom = __esm({
|
|
45961
45990
|
"../../core/ts/src/idiom.ts"() {
|
|
45991
|
+
"use strict";
|
|
45962
45992
|
init_define_HHP_CATALOG();
|
|
45963
45993
|
IDIOM_CONTEXTS = {
|
|
45964
45994
|
ios: { native: ["ios"] },
|
|
@@ -47728,6 +47758,7 @@ function shouldRevealError(args) {
|
|
|
47728
47758
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
47729
47759
|
var init_validation = __esm({
|
|
47730
47760
|
"../../core/ts/src/validation.ts"() {
|
|
47761
|
+
"use strict";
|
|
47731
47762
|
init_define_HHP_CATALOG();
|
|
47732
47763
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
47733
47764
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -165570,7 +165601,7 @@ __export(build_exports2, {
|
|
|
165570
165601
|
withoutDevOnlyAppConfig: () => withoutDevOnlyAppConfig
|
|
165571
165602
|
});
|
|
165572
165603
|
import { createHash as createHash27 } from "node:crypto";
|
|
165573
|
-
import { readFileSync as readFileSync47, readdirSync as readdirSync27, existsSync as existsSync43, realpathSync as
|
|
165604
|
+
import { readFileSync as readFileSync47, readdirSync as readdirSync27, existsSync as existsSync43, realpathSync as realpathSync8 } from "node:fs";
|
|
165574
165605
|
import { dirname as dirname29, join as join39, resolve as resolve36, sep as sep13 } from "node:path";
|
|
165575
165606
|
import { fileURLToPath as fileURLToPath28 } from "node:url";
|
|
165576
165607
|
import { createRequire as createRequire4 } from "node:module";
|
|
@@ -165705,9 +165736,9 @@ function sourceTranslationKeys2(locale, appDir3) {
|
|
|
165705
165736
|
const path2 = join39(l10nDir, `${tag2}.json`);
|
|
165706
165737
|
if (!existsSync43(path2)) return /* @__PURE__ */ new Set();
|
|
165707
165738
|
try {
|
|
165708
|
-
const realDir =
|
|
165709
|
-
const realFile =
|
|
165710
|
-
if (!realDir.startsWith(
|
|
165739
|
+
const realDir = realpathSync8(l10nDir);
|
|
165740
|
+
const realFile = realpathSync8(path2);
|
|
165741
|
+
if (!realDir.startsWith(realpathSync8(appDir3) + sep13) || dirname29(realFile) !== realDir) return /* @__PURE__ */ new Set();
|
|
165711
165742
|
return new Set(keyMap(parseCatalog(readFileSync47(realFile, "utf8")), { sourceFallback: true }).keys());
|
|
165712
165743
|
} catch {
|
|
165713
165744
|
return /* @__PURE__ */ new Set();
|
|
@@ -168717,13 +168748,13 @@ __export(studio_exports, {
|
|
|
168717
168748
|
writeStudioRecord: () => writeStudioRecord
|
|
168718
168749
|
});
|
|
168719
168750
|
import { createHash as createHash28 } from "node:crypto";
|
|
168720
|
-
import { existsSync as existsSync46, readdirSync as readdirSync29, readFileSync as readFileSync50, realpathSync as
|
|
168751
|
+
import { existsSync as existsSync46, readdirSync as readdirSync29, readFileSync as readFileSync50, realpathSync as realpathSync9, statSync as statSync13 } from "node:fs";
|
|
168721
168752
|
import { basename as basename12, extname as extname3, join as join42, relative as relative11, resolve as resolve37, sep as sep14 } from "node:path";
|
|
168722
168753
|
import { pathToFileURL as pathToFileURL6 } from "node:url";
|
|
168723
168754
|
function realInside(dir, abs) {
|
|
168724
168755
|
try {
|
|
168725
|
-
const root =
|
|
168726
|
-
const real =
|
|
168756
|
+
const root = realpathSync9(dir);
|
|
168757
|
+
const real = realpathSync9(abs);
|
|
168727
168758
|
return real.startsWith(root + sep14) ? real : null;
|
|
168728
168759
|
} catch {
|
|
168729
168760
|
return null;
|
|
@@ -180009,10 +180040,10 @@ __export(content_manifest_exports, {
|
|
|
180009
180040
|
writeContentManifest: () => writeContentManifest
|
|
180010
180041
|
});
|
|
180011
180042
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
180012
|
-
import { constants as constants3, lstatSync as lstatSync18, readFileSync as readFileSync58, realpathSync as
|
|
180043
|
+
import { constants as constants3, lstatSync as lstatSync18, readFileSync as readFileSync58, realpathSync as realpathSync10, writeFileSync as writeFileSync22, renameSync as renameSync10, openSync as openSync4, closeSync as closeSync4, unlinkSync as unlinkSync2 } from "node:fs";
|
|
180013
180044
|
import { join as join47 } from "node:path";
|
|
180014
180045
|
function contentManifestPath(dir) {
|
|
180015
|
-
const path2 = join47(
|
|
180046
|
+
const path2 = join47(realpathSync10(dir), "himalaya.content.json");
|
|
180016
180047
|
try {
|
|
180017
180048
|
if (lstatSync18(path2).isSymbolicLink()) throw new Error("himalaya.content.json is a symlink \u2014 refusing to read or write through it");
|
|
180018
180049
|
} catch (error) {
|
|
@@ -189289,7 +189320,7 @@ __export(run_watch_exports, {
|
|
|
189289
189320
|
watchedContentDir: () => watchedContentDir,
|
|
189290
189321
|
writeRunRecord: () => writeRunRecord
|
|
189291
189322
|
});
|
|
189292
|
-
import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync22, readdirSync as readdirSync35, mkdirSync as mkdirSync34, openSync as openSync5, readFileSync as readFileSync69, realpathSync as
|
|
189323
|
+
import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync22, readdirSync as readdirSync35, mkdirSync as mkdirSync34, openSync as openSync5, readFileSync as readFileSync69, realpathSync as realpathSync11, renameSync as renameSync13, rmSync as rmSync21, writeFileSync as writeFileSync30, watch as fsWatch } from "node:fs";
|
|
189293
189324
|
import { randomUUID as randomUUID9 } from "node:crypto";
|
|
189294
189325
|
import { extname as extname4, join as join58, relative as relative14, resolve as resolve49, sep as sep19 } from "node:path";
|
|
189295
189326
|
function diffReleases(prev, next) {
|
|
@@ -189554,8 +189585,8 @@ function readConfined(root, rel2) {
|
|
|
189554
189585
|
const st2 = lstatSync21(at2);
|
|
189555
189586
|
if (st2.isSymbolicLink() || !(i2 === parts.length - 1 ? st2.isFile() : st2.isDirectory())) return null;
|
|
189556
189587
|
}
|
|
189557
|
-
const canonicalRoot =
|
|
189558
|
-
if (!
|
|
189588
|
+
const canonicalRoot = realpathSync11(root);
|
|
189589
|
+
if (!realpathSync11(at2).startsWith(canonicalRoot + sep19)) return null;
|
|
189559
189590
|
const fd = openSync5(at2, constants5.O_RDONLY | (constants5.O_NOFOLLOW ?? 0));
|
|
189560
189591
|
try {
|
|
189561
189592
|
if (!fstatSync2(fd).isFile()) return null;
|
|
@@ -204110,7 +204141,7 @@ __export(crawl_layers_exports, {
|
|
|
204110
204141
|
renderMocksFrom: () => renderMocksFrom,
|
|
204111
204142
|
tabRootScreens: () => tabRootScreens
|
|
204112
204143
|
});
|
|
204113
|
-
import { existsSync as existsSync88, readFileSync as readFileSync96, realpathSync as
|
|
204144
|
+
import { existsSync as existsSync88, readFileSync as readFileSync96, realpathSync as realpathSync12 } from "node:fs";
|
|
204114
204145
|
import { dirname as dirname50, join as join87, resolve as resolve59, sep as sep24 } from "node:path";
|
|
204115
204146
|
async function loadContentConfigQuietly(dir) {
|
|
204116
204147
|
try {
|
|
@@ -204198,9 +204229,9 @@ async function l10nSourceCatalogFile(dir) {
|
|
|
204198
204229
|
const file2 = resolve59(l10nDir, `${tag2}.json`);
|
|
204199
204230
|
if (!existsSync88(file2)) return null;
|
|
204200
204231
|
try {
|
|
204201
|
-
const realDir =
|
|
204202
|
-
const realFile =
|
|
204203
|
-
if (!realDir.startsWith(
|
|
204232
|
+
const realDir = realpathSync12(l10nDir);
|
|
204233
|
+
const realFile = realpathSync12(file2);
|
|
204234
|
+
if (!realDir.startsWith(realpathSync12(dir) + sep24) || dirname50(realFile) !== realDir) return null;
|
|
204204
204235
|
return { tag: tag2, text: readFileSync96(realFile, "utf8") };
|
|
204205
204236
|
} catch {
|
|
204206
204237
|
return null;
|
|
@@ -206909,7 +206940,7 @@ import {
|
|
|
206909
206940
|
existsSync as existsSync91,
|
|
206910
206941
|
lstatSync as lstatSync28,
|
|
206911
206942
|
mkdirSync as mkdirSync40,
|
|
206912
|
-
realpathSync as
|
|
206943
|
+
realpathSync as realpathSync13,
|
|
206913
206944
|
readlinkSync as readlinkSync2,
|
|
206914
206945
|
readFileSync as readFileSync101,
|
|
206915
206946
|
readdirSync as readdirSync42,
|
|
@@ -206979,7 +207010,7 @@ function currentGitDiffHash(contentDir2) {
|
|
|
206979
207010
|
}
|
|
206980
207011
|
function currentGitUntrackedHash(contentDir2) {
|
|
206981
207012
|
const unresolved = resolve64(contentDir2);
|
|
206982
|
-
const absolute2 =
|
|
207013
|
+
const absolute2 = realpathSync13.native(unresolved);
|
|
206983
207014
|
const root = repoRoot(absolute2);
|
|
206984
207015
|
if (!root) return sourceTreeHash(absolute2);
|
|
206985
207016
|
const scope3 = relative19(root, absolute2) || ".";
|
|
@@ -219547,7 +219578,7 @@ var init_cli_bridge = __esm({
|
|
|
219547
219578
|
});
|
|
219548
219579
|
|
|
219549
219580
|
// src/mcp/file-tools.ts
|
|
219550
|
-
import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync31, mkdirSync as mkdirSync43, openSync as openSync7, readdirSync as readdirSync46, readFileSync as readFileSync126, realpathSync as
|
|
219581
|
+
import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync31, mkdirSync as mkdirSync43, openSync as openSync7, readdirSync as readdirSync46, readFileSync as readFileSync126, realpathSync as realpathSync14, renameSync as renameSync16, rmSync as rmSync32, statSync as statSync31, writeSync as writeSync2, existsSync as existsSync113 } from "node:fs";
|
|
219551
219582
|
import { randomBytes as randomBytes5 } from "node:crypto";
|
|
219552
219583
|
import { dirname as dirname56, isAbsolute as isAbsolute15, join as join114, relative as relative22, resolve as resolve75, sep as sep26 } from "node:path";
|
|
219553
219584
|
import * as z2 from "zod";
|
|
@@ -219563,7 +219594,7 @@ function realish(p2) {
|
|
|
219563
219594
|
tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
|
|
219564
219595
|
cur = up2;
|
|
219565
219596
|
}
|
|
219566
|
-
return join114(
|
|
219597
|
+
return join114(realpathSync14(cur), ...tail);
|
|
219567
219598
|
}
|
|
219568
219599
|
function symlinkComponent(base2, abs) {
|
|
219569
219600
|
let cur = base2;
|
|
@@ -219581,7 +219612,7 @@ function workspaceRefusal(root, target) {
|
|
|
219581
219612
|
const r3 = resolve75(root);
|
|
219582
219613
|
const t2 = resolve75(r3, target);
|
|
219583
219614
|
if (!existsSync113(r3)) return `the workspace folder ${r3} does not exist`;
|
|
219584
|
-
if (!within(r3, t2) || !within(
|
|
219615
|
+
if (!within(r3, t2) || !within(realpathSync14(r3), realish(t2))) return `"${target}" is outside the workspace folder ${r3}`;
|
|
219585
219616
|
const link4 = symlinkComponent(r3, t2);
|
|
219586
219617
|
if (link4) return `"${link4}" is a symlink \u2014 paths must stay in real folders inside the workspace`;
|
|
219587
219618
|
return null;
|
|
@@ -219590,7 +219621,7 @@ async function confinedAppDir(args, deps) {
|
|
|
219590
219621
|
const root = resolve75(await deps.defaultDir());
|
|
219591
219622
|
const dir = typeof args.dir === "string" && args.dir ? resolve75(root, args.dir) : root;
|
|
219592
219623
|
if (!existsSync113(root)) return refuse5("no_workspace", `the workspace folder ${root} does not exist`);
|
|
219593
|
-
if (!within(root, dir) || !within(
|
|
219624
|
+
if (!within(root, dir) || !within(realpathSync14(root), realish(dir))) return refuse5("outside_workspace", `"${String(args.dir)}" is outside the workspace folder`);
|
|
219594
219625
|
const link4 = symlinkComponent(root, dir);
|
|
219595
219626
|
if (link4) return refuse5("outside_workspace", `"${link4}" is a symlink \u2014 the app folder must be a real folder in the workspace`);
|
|
219596
219627
|
const rel2 = relative22(root, dir);
|
|
@@ -219609,13 +219640,13 @@ function onDiskSpelling(abs) {
|
|
|
219609
219640
|
tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
|
|
219610
219641
|
cur = up2;
|
|
219611
219642
|
}
|
|
219612
|
-
return join114(
|
|
219643
|
+
return join114(realpathSync14.native(cur), ...tail);
|
|
219613
219644
|
}
|
|
219614
219645
|
function denied(appDir3, abs) {
|
|
219615
219646
|
const rel2 = relative22(appDir3, abs);
|
|
219616
219647
|
if (isDeniedSourcePath(rel2) || isDeniedSourcePath(rel2.toLowerCase())) return true;
|
|
219617
219648
|
try {
|
|
219618
|
-
return isDeniedSourcePath(relative22(
|
|
219649
|
+
return isDeniedSourcePath(relative22(realpathSync14.native(appDir3), onDiskSpelling(abs)));
|
|
219619
219650
|
} catch {
|
|
219620
219651
|
return true;
|
|
219621
219652
|
}
|
|
@@ -219627,7 +219658,7 @@ function confinedPath(appDir3, rel2) {
|
|
|
219627
219658
|
const abs = resolve75(appDir3, rel2);
|
|
219628
219659
|
if (!within(appDir3, abs) || abs === appDir3) return { error: `"${rel2}" is outside the app folder` };
|
|
219629
219660
|
const real = realish(abs);
|
|
219630
|
-
const base2 = existsSync113(appDir3) ?
|
|
219661
|
+
const base2 = existsSync113(appDir3) ? realpathSync14(appDir3) : realish(appDir3);
|
|
219631
219662
|
if (!within(base2, real) || real === base2) return { error: `"${rel2}" is outside the app folder` };
|
|
219632
219663
|
const link4 = symlinkComponent(appDir3, abs);
|
|
219633
219664
|
if (link4) return { error: `"${link4}" is a symlink, which this tool does not follow` };
|
|
@@ -219646,7 +219677,7 @@ function writeNoFollow2(appDir3, abs, content) {
|
|
|
219646
219677
|
closeSync8(fd);
|
|
219647
219678
|
}
|
|
219648
219679
|
const link4 = symlinkComponent(appDir3, abs);
|
|
219649
|
-
if (link4 || !within(
|
|
219680
|
+
if (link4 || !within(realpathSync14(appDir3), realpathSync14(dirname56(abs)))) {
|
|
219650
219681
|
rmSync32(tmp, { force: true });
|
|
219651
219682
|
throw new Error(`"${link4 ?? relative22(appDir3, dirname56(abs))}" changed into a link while writing`);
|
|
219652
219683
|
}
|
|
@@ -234148,7 +234179,7 @@ __export(store_google_host_exports, {
|
|
|
234148
234179
|
signingFor: () => signingFor
|
|
234149
234180
|
});
|
|
234150
234181
|
import { createHash as createHash69, randomUUID as randomUUID14 } from "node:crypto";
|
|
234151
|
-
import { existsSync as existsSync115, lstatSync as lstatSync33, mkdirSync as mkdirSync44, readFileSync as readFileSync129, readdirSync as readdirSync48, realpathSync as
|
|
234182
|
+
import { existsSync as existsSync115, lstatSync as lstatSync33, mkdirSync as mkdirSync44, readFileSync as readFileSync129, readdirSync as readdirSync48, realpathSync as realpathSync15, renameSync as renameSync17, rmSync as rmSync33, statSync as statSync33, writeFileSync as writeFileSync49 } from "node:fs";
|
|
234152
234183
|
import { join as join132, relative as relative25 } from "node:path";
|
|
234153
234184
|
function readGooglePlayFacts(dir) {
|
|
234154
234185
|
const path2 = join132(dir, GOOGLE_FACTS_FILE);
|
|
@@ -234264,7 +234295,7 @@ async function googleAppFactsFor(dir, o2) {
|
|
|
234264
234295
|
const himi = packageName.toLowerCase().startsWith("himi.");
|
|
234265
234296
|
if (himi && !site) note(`Signing: ${packageName} is a Containers (himi.*) package, which Wix builds and signs for a site-linked app, but this app names no Wix site (a "wix" block in ${GOOGLE_FACTS_FILE} or ${STORE_FACTS_FILE}). Link it (\`himi store app set --app <id> --site <msid> --android-package ${packageName}\`) and add the wix block, or use your own package name.`);
|
|
234266
234297
|
if (!himi && site) note(`Signing: this app is linked to Wix site ${site.site}, so Wix signs its bundle under a himi.<name> package; ${packageName} is not one. Set packageName to the site's saved himi.<name> package (\`himi store app show --app ${site.app} --site ${site.site}\`), or drop the wix block for an owner-signed app.`);
|
|
234267
|
-
const realDir =
|
|
234298
|
+
const realDir = realpathSync15(dir);
|
|
234268
234299
|
const files = {};
|
|
234269
234300
|
const given = (key4) => {
|
|
234270
234301
|
const p2 = str18(file2[key4]);
|
|
@@ -251573,7 +251604,7 @@ function realPathOf2(path2) {
|
|
|
251573
251604
|
d2 = dirname67(d2);
|
|
251574
251605
|
}
|
|
251575
251606
|
try {
|
|
251576
|
-
return join139(
|
|
251607
|
+
return join139(realpathSync16(d2), ...rest);
|
|
251577
251608
|
} catch {
|
|
251578
251609
|
return resolve85(path2);
|
|
251579
251610
|
}
|
|
@@ -251636,13 +251667,13 @@ function reserveKeyFile(dir, keyId) {
|
|
|
251636
251667
|
}
|
|
251637
251668
|
};
|
|
251638
251669
|
}
|
|
251639
|
-
var createPrivateKey6, closeSync9, existsSync117, mkdirSync46, openSync8,
|
|
251670
|
+
var createPrivateKey6, closeSync9, existsSync117, mkdirSync46, openSync8, realpathSync16, statSync35, unlinkSync7, writeSync3, basename31, dirname67, isAbsolute17, join139, resolve85, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
|
|
251640
251671
|
var init_api_keys = __esm({
|
|
251641
251672
|
"../../node_modules/@wix/asc-web/dist/api-keys.js"() {
|
|
251642
251673
|
init_define_HHP_CATALOG();
|
|
251643
251674
|
init_dist3();
|
|
251644
251675
|
({ createPrivateKey: createPrivateKey6 } = __ascBuiltin051);
|
|
251645
|
-
({ closeSync: closeSync9, existsSync: existsSync117, mkdirSync: mkdirSync46, openSync: openSync8, realpathSync:
|
|
251676
|
+
({ closeSync: closeSync9, existsSync: existsSync117, mkdirSync: mkdirSync46, openSync: openSync8, realpathSync: realpathSync16, statSync: statSync35, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
|
|
251646
251677
|
({ basename: basename31, dirname: dirname67, isAbsolute: isAbsolute17, join: join139, resolve: resolve85 } = __ascBuiltin217);
|
|
251647
251678
|
TEAM_KEY_ROLES = ["ADMIN", "APP_MANAGER", "DEVELOPER", "FINANCE", "SALES", "MARKETING", "ACCESS_TO_REPORTS", "CUSTOMER_SUPPORT", "CREATE_APPS", "CLOUD_MANAGED_APP_DISTRIBUTION", "CLOUD_MANAGED_DEVELOPER_ID"];
|
|
251648
251679
|
DOWNLOAD_ATTEMPTS = 3;
|
|
@@ -263812,7 +263843,7 @@ function fileRoots(env) {
|
|
|
263812
263843
|
const roots2 = [process.cwd(), ...(env.ASC_MCP_FILE_ROOTS ?? "").split(delimiter3)].map((r3) => r3.trim()).filter(Boolean);
|
|
263813
263844
|
return [...new Set(roots2.flatMap((r3) => {
|
|
263814
263845
|
try {
|
|
263815
|
-
return [
|
|
263846
|
+
return [realpathSync17(resolve93(r3))];
|
|
263816
263847
|
} catch {
|
|
263817
263848
|
return [];
|
|
263818
263849
|
}
|
|
@@ -263825,7 +263856,7 @@ function checkJobFile(path2, param, ctx, o2 = {}) {
|
|
|
263825
263856
|
const given = resolve93(roots2[0] ?? process.cwd(), path2);
|
|
263826
263857
|
let real;
|
|
263827
263858
|
try {
|
|
263828
|
-
real =
|
|
263859
|
+
real = realpathSync17(given);
|
|
263829
263860
|
} catch (e2) {
|
|
263830
263861
|
throw new AscError("invalid", `${param}: cannot read ${path2} (${e2.code ?? "unreadable"})`);
|
|
263831
263862
|
}
|
|
@@ -263834,7 +263865,7 @@ function checkJobFile(path2, param, ctx, o2 = {}) {
|
|
|
263834
263865
|
throw new AscError("invalid", `${param}: ${path2} is not a ${o2.directory ? "directory" : "regular file"}`);
|
|
263835
263866
|
let state;
|
|
263836
263867
|
try {
|
|
263837
|
-
state =
|
|
263868
|
+
state = realpathSync17(ctx.stateDir);
|
|
263838
263869
|
} catch {
|
|
263839
263870
|
state = void 0;
|
|
263840
263871
|
}
|
|
@@ -264033,7 +264064,7 @@ ${o2.detail}` : ""}` };
|
|
|
264033
264064
|
function enabledTools(env, o2 = {}) {
|
|
264034
264065
|
return TOOLS.filter((t2) => !t2.write || env.ASC_MCP_WRITE === "1" || o2.approvals === true);
|
|
264035
264066
|
}
|
|
264036
|
-
var mkdirSync51, readFileSync142,
|
|
264067
|
+
var mkdirSync51, readFileSync142, realpathSync17, statSync43, writeFileSync55, delimiter3, isAbsolute19, join149, relative26, resolve93, sep29, READ, PLAN, APPLY, BATCH_SUMMARY_LINES, BATCH_CHANGES_PER_LINE, BATCH_CHANGE_LINES, ok2, app, reads, jobView2, noAppleId, EXIT_KINDS, notesOf2, cliResult, flag2, ACTIONS, FAMILIES, inside2, identityFile, appleIdParam, TOOLS;
|
|
264037
264068
|
var init_tools2 = __esm({
|
|
264038
264069
|
"../../node_modules/@wix/asc-mcp/dist/tools.js"() {
|
|
264039
264070
|
init_define_HHP_CATALOG();
|
|
@@ -264043,7 +264074,7 @@ var init_tools2 = __esm({
|
|
|
264043
264074
|
init_dist6();
|
|
264044
264075
|
init_dist7();
|
|
264045
264076
|
init_action_catalog_generated();
|
|
264046
|
-
({ mkdirSync: mkdirSync51, readFileSync: readFileSync142, realpathSync:
|
|
264077
|
+
({ mkdirSync: mkdirSync51, readFileSync: readFileSync142, realpathSync: realpathSync17, statSync: statSync43, writeFileSync: writeFileSync55 } = __ascBuiltin075);
|
|
264047
264078
|
({ delimiter: delimiter3, isAbsolute: isAbsolute19, join: join149, relative: relative26, resolve: resolve93, sep: sep29 } = __ascBuiltin148);
|
|
264048
264079
|
READ = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true };
|
|
264049
264080
|
PLAN = { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true };
|
|
@@ -266261,14 +266292,14 @@ __export(apple_keys_exports, {
|
|
|
266261
266292
|
runAppleKeys: () => runAppleKeys
|
|
266262
266293
|
});
|
|
266263
266294
|
import { createPublicKey as createPublicKey5 } from "node:crypto";
|
|
266264
|
-
import { readFileSync as readFileSync143, realpathSync as
|
|
266295
|
+
import { readFileSync as readFileSync143, realpathSync as realpathSync18, statSync as statSync44 } from "node:fs";
|
|
266265
266296
|
function readKey2(flags, kind) {
|
|
266266
266297
|
const names2 = kind === "asc" ? ["asc-key-file", "asc-key-id", "asc-issuer-id"] : ["iap-key", "iap-key-id", "iap-issuer-id"];
|
|
266267
266298
|
if (names2.every((name) => flags[name] === void 0)) return void 0;
|
|
266268
266299
|
const [file2, keyId, issuerId] = names2.map((name) => text17(flags[name]));
|
|
266269
266300
|
if (!file2 || !keyId || !issuerId) throw new UsageError2(`Supply --${names2.join(" --")} together.`);
|
|
266270
266301
|
try {
|
|
266271
|
-
const path2 =
|
|
266302
|
+
const path2 = realpathSync18(file2);
|
|
266272
266303
|
assertCredentialOutsideRepo(names2[0], path2);
|
|
266273
266304
|
if (statSync44(path2).size > 16384) throw new Error("oversized");
|
|
266274
266305
|
const key4 = { keyId, issuerId, key: readFileSync143(path2, "utf8") };
|
|
@@ -266452,7 +266483,7 @@ __export(store_host_exports, {
|
|
|
266452
266483
|
wixTargetOf: () => wixTargetOf
|
|
266453
266484
|
});
|
|
266454
266485
|
import { spawn as spawn8 } from "node:child_process";
|
|
266455
|
-
import { existsSync as existsSync120, lstatSync as lstatSync36, readFileSync as readFileSync144, readdirSync as readdirSync53, realpathSync as
|
|
266486
|
+
import { existsSync as existsSync120, lstatSync as lstatSync36, readFileSync as readFileSync144, readdirSync as readdirSync53, realpathSync as realpathSync19 } from "node:fs";
|
|
266456
266487
|
import { homedir as homedir16, hostname as hostname6, userInfo as userInfo3 } from "node:os";
|
|
266457
266488
|
import { delimiter as delimiter4, dirname as dirname69, isAbsolute as isAbsolute20, join as join151, relative as relative27, resolve as resolve94, sep as sep30 } from "node:path";
|
|
266458
266489
|
function storeNodeRefusal(version5 = process.versions.node) {
|
|
@@ -266585,12 +266616,12 @@ function privacyAnswersFor(dir, ownerPath, shellOnly, checked, deps, note) {
|
|
|
266585
266616
|
function ownerAnswers(dir, ownerPath, deps, note, rel2, render3) {
|
|
266586
266617
|
let real;
|
|
266587
266618
|
try {
|
|
266588
|
-
real =
|
|
266619
|
+
real = realpathSync19(ownerPath);
|
|
266589
266620
|
} catch {
|
|
266590
266621
|
note(`App Privacy: could not read ${rel2(ownerPath)} to check it against the Himi app's own answers.`);
|
|
266591
266622
|
return ownerPath;
|
|
266592
266623
|
}
|
|
266593
|
-
const realDir =
|
|
266624
|
+
const realDir = realpathSync19(dir);
|
|
266594
266625
|
if (real !== realDir && !real.startsWith(realDir + sep30)) {
|
|
266595
266626
|
throw new StoreFactsError(`privacyAnswersFile must be inside the app folder; ${rel2(ownerPath)} is not`, "store_facts_invalid");
|
|
266596
266627
|
}
|
|
@@ -266632,7 +266663,7 @@ function factPathIn(dir, realDir, key4, p2, file2 = STORE_FACTS_FILE) {
|
|
|
266632
266663
|
while (!existsSync120(probe2) && probe2 !== base2) probe2 = dirname69(probe2);
|
|
266633
266664
|
let real;
|
|
266634
266665
|
try {
|
|
266635
|
-
real =
|
|
266666
|
+
real = realpathSync19(probe2);
|
|
266636
266667
|
} catch {
|
|
266637
266668
|
throw refuse11();
|
|
266638
266669
|
}
|
|
@@ -266674,7 +266705,7 @@ async function appFactsFor(dir, deps) {
|
|
|
266674
266705
|
...str21(file2.sku) ? { sku: str21(file2.sku) } : {},
|
|
266675
266706
|
...str21(file2.buildNumber) ? { buildNumber: str21(file2.buildNumber) } : {}
|
|
266676
266707
|
};
|
|
266677
|
-
const realDir =
|
|
266708
|
+
const realDir = realpathSync19(dir);
|
|
266678
266709
|
for (const key4 of FILE_FACTS) {
|
|
266679
266710
|
const p2 = str21(file2[key4]);
|
|
266680
266711
|
if (p2) facts[key4] = factPathIn(dir, realDir, key4, p2);
|
|
@@ -269018,11 +269049,11 @@ __export(input_evidence_isolation_exports, {
|
|
|
269018
269049
|
runInputEvidenceChild: () => runInputEvidenceChild
|
|
269019
269050
|
});
|
|
269020
269051
|
async function installInputEvidenceIsolation(dir) {
|
|
269021
|
-
const { lstatSync: lstatSync46, readdirSync: readdirSync70, readlinkSync: readlinkSync4, realpathSync:
|
|
269052
|
+
const { lstatSync: lstatSync46, readdirSync: readdirSync70, readlinkSync: readlinkSync4, realpathSync: realpathSync29 } = await import("node:fs");
|
|
269022
269053
|
const { dirname: dirname96, isAbsolute: isAbsolute26, join: join231, relative: relative42, resolve: resolve142, sep: sep38 } = await import("node:path");
|
|
269023
269054
|
const root = resolve142(dir);
|
|
269024
269055
|
const privateDir = join231(root, ".himi");
|
|
269025
|
-
const privateReal = join231(
|
|
269056
|
+
const privateReal = join231(realpathSync29(root), ".himi") + sep38;
|
|
269026
269057
|
const within2 = (base2, path2) => {
|
|
269027
269058
|
const rel2 = relative42(base2, path2);
|
|
269028
269059
|
return !!rel2 && rel2 !== ".." && !rel2.startsWith(`..${sep38}`) && !isAbsolute26(rel2);
|
|
@@ -269035,10 +269066,10 @@ async function installInputEvidenceIsolation(dir) {
|
|
|
269035
269066
|
if (isAbsolute26(link4)) return false;
|
|
269036
269067
|
const target = resolve142(dirname96(path2), link4);
|
|
269037
269068
|
if (!within2(privateDir, target)) return false;
|
|
269038
|
-
if (
|
|
269069
|
+
if (realpathSync29(path2) !== join231(realpathSync29(root), relative42(root, target))) return false;
|
|
269039
269070
|
return lstatSync46(target).isFile();
|
|
269040
269071
|
}
|
|
269041
|
-
return within2(privateDir, resolve142(path2)) &&
|
|
269072
|
+
return within2(privateDir, resolve142(path2)) && realpathSync29(path2).startsWith(privateReal);
|
|
269042
269073
|
} catch {
|
|
269043
269074
|
return false;
|
|
269044
269075
|
}
|
|
@@ -269468,7 +269499,7 @@ __export(browser_authoring_exports, {
|
|
|
269468
269499
|
});
|
|
269469
269500
|
import { createServer as createServer6 } from "node:http";
|
|
269470
269501
|
import { createHash as createHash84, randomBytes as randomBytes20 } from "node:crypto";
|
|
269471
|
-
import { existsSync as existsSync126, readdirSync as readdirSync55, readFileSync as readFileSync149, realpathSync as
|
|
269502
|
+
import { existsSync as existsSync126, readdirSync as readdirSync55, readFileSync as readFileSync149, realpathSync as realpathSync20, statSync as statSync45 } from "node:fs";
|
|
269472
269503
|
import { join as join159, posix as posix3, relative as relative30, sep as sep31 } from "node:path";
|
|
269473
269504
|
function humanMs(ms2) {
|
|
269474
269505
|
return ms2 < 1e3 ? `${ms2}ms` : `${Math.round(ms2 / 1e3)}s`;
|
|
@@ -269478,7 +269509,7 @@ function collectWorkerSources(tier5SrcDir, bundleName) {
|
|
|
269478
269509
|
const files = {};
|
|
269479
269510
|
const visitedDirs = /* @__PURE__ */ new Set();
|
|
269480
269511
|
const walk6 = (abs, rel2) => {
|
|
269481
|
-
const real =
|
|
269512
|
+
const real = realpathSync20(abs);
|
|
269482
269513
|
if (visitedDirs.has(real)) return;
|
|
269483
269514
|
visitedDirs.add(real);
|
|
269484
269515
|
for (const name of readdirSync55(abs).sort()) {
|
|
@@ -272113,7 +272144,7 @@ __export(render_cache_exports, {
|
|
|
272113
272144
|
});
|
|
272114
272145
|
import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
|
|
272115
272146
|
import { createHash as createHash87, randomBytes as randomBytes21 } from "node:crypto";
|
|
272116
|
-
import { existsSync as existsSync135, lstatSync as lstatSync37, mkdirSync as mkdirSync60, readdirSync as readdirSync58, readFileSync as readFileSync158, readlinkSync as readlinkSync3, realpathSync as
|
|
272147
|
+
import { existsSync as existsSync135, lstatSync as lstatSync37, mkdirSync as mkdirSync60, readdirSync as readdirSync58, readFileSync as readFileSync158, readlinkSync as readlinkSync3, realpathSync as realpathSync21, renameSync as renameSync21, rmSync as rmSync39, statSync as statSync47, writeFileSync as writeFileSync63 } from "node:fs";
|
|
272117
272148
|
import { join as join169, resolve as resolve103 } from "node:path";
|
|
272118
272149
|
import { fileURLToPath as fileURLToPath36 } from "node:url";
|
|
272119
272150
|
function renderCacheKey(contentDir2, inputs) {
|
|
@@ -272122,7 +272153,7 @@ function renderCacheKey(contentDir2, inputs) {
|
|
|
272122
272153
|
const root = resolve103(contentDir2);
|
|
272123
272154
|
const seen = /* @__PURE__ */ new Set();
|
|
272124
272155
|
const walk6 = (dir, rel2) => {
|
|
272125
|
-
seen.add(
|
|
272156
|
+
seen.add(realpathSync21(dir));
|
|
272126
272157
|
for (const name of readdirSync58(dir).sort()) {
|
|
272127
272158
|
if (SKIPPED_ANYWHERE.has(name) || rel2 === "" && SKIPPED_TOP.has(name)) continue;
|
|
272128
272159
|
const path2 = join169(dir, name);
|
|
@@ -272133,10 +272164,10 @@ function renderCacheKey(contentDir2, inputs) {
|
|
|
272133
272164
|
if (link4) hash3.update(`\0l${relPath}\0${readlinkSync3(path2)}`);
|
|
272134
272165
|
if (!st2) continue;
|
|
272135
272166
|
if (st2.isDirectory()) {
|
|
272136
|
-
if (!link4 || !seen.has(
|
|
272167
|
+
if (!link4 || !seen.has(realpathSync21(path2))) walk6(path2, relPath);
|
|
272137
272168
|
} else if (st2.isFile()) hash3.update(`\0f${relPath}\0`).update(createHash87("sha256").update(readFileSync158(path2)).digest("hex"));
|
|
272138
272169
|
}
|
|
272139
|
-
seen.delete(
|
|
272170
|
+
seen.delete(realpathSync21(dir));
|
|
272140
272171
|
};
|
|
272141
272172
|
walk6(root, "");
|
|
272142
272173
|
return hash3.digest("hex").slice(0, 32);
|
|
@@ -273822,7 +273853,7 @@ __export(validate_design_exports, {
|
|
|
273822
273853
|
validateDesign: () => validateDesign
|
|
273823
273854
|
});
|
|
273824
273855
|
import { randomBytes as randomBytes22 } from "node:crypto";
|
|
273825
|
-
import { closeSync as closeSync12, constants as constants10, existsSync as existsSync139, lstatSync as lstatSync38, openSync as openSync11, readFileSync as readFileSync163, realpathSync as
|
|
273856
|
+
import { closeSync as closeSync12, constants as constants10, existsSync as existsSync139, lstatSync as lstatSync38, openSync as openSync11, readFileSync as readFileSync163, realpathSync as realpathSync22, renameSync as renameSync22, unlinkSync as unlinkSync9, writeFileSync as writeFileSync65 } from "node:fs";
|
|
273826
273857
|
import { dirname as dirname76, isAbsolute as isAbsolute22, join as join174, relative as relative32, resolve as resolve106, sep as sep33, win32 } from "node:path";
|
|
273827
273858
|
import ts41 from "typescript";
|
|
273828
273859
|
function readColorToken(tokens2, name) {
|
|
@@ -274045,7 +274076,7 @@ function writableTokensPath(contentDir2, location) {
|
|
|
274045
274076
|
if (isAbsolute22(location) || win32.isAbsolute(location) || location.split(/[\\/]/).includes("..")) {
|
|
274046
274077
|
throw new Error("--fix requires a token path inside the content directory without traversal.");
|
|
274047
274078
|
}
|
|
274048
|
-
const root =
|
|
274079
|
+
const root = realpathSync22(contentDir2);
|
|
274049
274080
|
const path2 = resolve106(root, location);
|
|
274050
274081
|
const rel2 = relative32(root, path2);
|
|
274051
274082
|
if (!rel2 || rel2 === ".." || rel2.startsWith(`..${sep33}`) || isAbsolute22(rel2)) {
|
|
@@ -274060,7 +274091,7 @@ function writableTokensPath(contentDir2, location) {
|
|
|
274060
274091
|
throw new Error("--fix requires a regular token file under directories without symlinks.");
|
|
274061
274092
|
}
|
|
274062
274093
|
}
|
|
274063
|
-
const real = relative32(root,
|
|
274094
|
+
const real = relative32(root, realpathSync22(path2));
|
|
274064
274095
|
if (!real || real === ".." || real.startsWith(`..${sep33}`) || isAbsolute22(real)) {
|
|
274065
274096
|
throw new Error("--fix cannot write outside the content directory.");
|
|
274066
274097
|
}
|
|
@@ -274257,10 +274288,10 @@ function validateDesign(evidenceDir, contentDir2, options2 = {}) {
|
|
|
274257
274288
|
};
|
|
274258
274289
|
}
|
|
274259
274290
|
function safeEvidencePath(contentDir2, name) {
|
|
274260
|
-
const root =
|
|
274291
|
+
const root = realpathSync22(contentDir2);
|
|
274261
274292
|
const dir = realDirIn(root, ".himi/one-app");
|
|
274262
274293
|
if (!dir) throw new Error("The design evidence directory is not a regular directory.");
|
|
274263
|
-
const real = relative32(root,
|
|
274294
|
+
const real = relative32(root, realpathSync22(dir));
|
|
274264
274295
|
if (!real || real === ".." || real.startsWith(`..${sep33}`) || isAbsolute22(real)) {
|
|
274265
274296
|
throw new Error("The design evidence directory is outside the content directory.");
|
|
274266
274297
|
}
|
|
@@ -280024,57 +280055,57 @@ var init_preview_assets_generated = __esm({
|
|
|
280024
280055
|
init_define_HHP_CATALOG();
|
|
280025
280056
|
init_preview_assets_format();
|
|
280026
280057
|
PREVIEW_ASSET_MANIFEST = [
|
|
280027
|
-
{ key: "assets/DashboardHost-
|
|
280028
|
-
{ key: "assets/DevDrawer-
|
|
280029
|
-
{ key: "assets/IdiomCompare-
|
|
280030
|
-
{ key: "assets/LightboxViewer-
|
|
280031
|
-
{ key: "assets/OfflineReadingBar-
|
|
280032
|
-
{ key: "assets/PhonePreviewControl-
|
|
280033
|
-
{ key: "assets/SchemeCompare-
|
|
280034
|
-
{ key: "assets/TopBandLayer-
|
|
280035
|
-
{ key: "assets/TopBarSearchStates-
|
|
280036
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
280058
|
+
{ key: "assets/DashboardHost-7Es2-99E.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "14ec2013557158f08a1cfaef414d597db9ed71f9c9dd9132281586a906f3e087" },
|
|
280059
|
+
{ key: "assets/DevDrawer-C0aX3cNR.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "cc30b083761351b493ccac2373e7da5fc102b0984704c6589cfec18865e169d3" },
|
|
280060
|
+
{ key: "assets/IdiomCompare-BHOe-8qx.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "e9905f0ccb915f0c7e5a31695a9c5f29559c2e514c30c58695e5f796df50afb6" },
|
|
280061
|
+
{ key: "assets/LightboxViewer-B0zF_kkL.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "a1c031bcf0041a93f8cc28d0680fe701213ab8de5307c9b6e6011541a7e9661a" },
|
|
280062
|
+
{ key: "assets/OfflineReadingBar-CexfIf8u.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "4b8abba3081d980189c172659a5c8fcbe7f219b8d559aa24cf4f63b50affdbd3" },
|
|
280063
|
+
{ key: "assets/PhonePreviewControl-D_ZmTM_C.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "95837dcb2d6a0126aec668f7ab1e6691cc94aec212fe56ab9ac089ff8530309b" },
|
|
280064
|
+
{ key: "assets/SchemeCompare-Dqfqvroj.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "b3acf41c6d289d3a1da31b9d7d460a97474d60536f696ca576b563ddcfeeaa0e" },
|
|
280065
|
+
{ key: "assets/TopBandLayer-DqVw56AH.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 1275, sha256: "ecf0b724f4a70ab3761262f905b6f4a35e5be4d2669cf6ad27df889c9b40ecc9" },
|
|
280066
|
+
{ key: "assets/TopBarSearchStates-BYLxG0mC.js", contentType: "application/javascript; charset=utf-8", offset: 80417, length: 4069, sha256: "328e3b96de49afedfbc9e5138c886e3d152571ab7ef0909821620955c14a05d6" },
|
|
280067
|
+
{ key: "assets/WixFrogTelemetrySink-DMVLak49.js", contentType: "application/javascript; charset=utf-8", offset: 84486, length: 3586, sha256: "87918cf85137d6c53238df82f8d25629acf603d7308a129f056a05fd5d10f4a7" },
|
|
280037
280068
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 88072, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
280038
280069
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 90264, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
280039
|
-
{ key: "assets/catalogFontFaces-
|
|
280070
|
+
{ key: "assets/catalogFontFaces-Kyvzvu18.js", contentType: "application/javascript; charset=utf-8", offset: 125890, length: 1111, sha256: "99420917561bc464f583b0198f09e2a0262449e2f1b087bebc3450d88ea9a281" },
|
|
280040
280071
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 127001, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
280041
|
-
{ key: "assets/files-transfer-
|
|
280072
|
+
{ key: "assets/files-transfer-DticrxBk.js", contentType: "application/javascript; charset=utf-8", offset: 129568, length: 9311, sha256: "6ca8be5ec97f5bf4986230f545bc70c75e6376a742fc1cdc88f0f48d21507cbe" },
|
|
280042
280073
|
{ key: "assets/frogActionMap-tm2NQk9s.js", contentType: "application/javascript; charset=utf-8", offset: 138879, length: 1336, sha256: "72bb60d400d913ff4865c17604fef897e270e094c52bceca76c22cd9f88847df" },
|
|
280043
|
-
{ key: "assets/frogApiRules-
|
|
280074
|
+
{ key: "assets/frogApiRules-CuY4kNLx.js", contentType: "application/javascript; charset=utf-8", offset: 140215, length: 2803, sha256: "756b36212a9a2b698aad43f9c8e46b2e939de4dbed5b9196e9a3244e7c6230e7" },
|
|
280044
280075
|
{ key: "assets/frogScreenMap-LM0nfzDQ.js", contentType: "application/javascript; charset=utf-8", offset: 143018, length: 1096, sha256: "991b931a02a029c9c4514f0ccbdc8a07f4cf2168ea3e23ffe5e244327fa05141" },
|
|
280045
280076
|
{ key: "assets/frogScreenNavArgs-mIYDwUYX.js", contentType: "application/javascript; charset=utf-8", offset: 144114, length: 780, sha256: "6c9e52135322e0a752b57ef6f360d71400cb77414b4f29d480230ae174201230" },
|
|
280046
280077
|
{ key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 144894, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
|
|
280047
280078
|
{ key: "assets/godot-pack-cache-Cuhrw41M.js", contentType: "application/javascript; charset=utf-8", offset: 151694, length: 1626, sha256: "70b16367b8938ebd6eb8494a2b472171dd2acdcb452c52f35f140eb8ede9c0b7" },
|
|
280048
280079
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 153320, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
280049
|
-
{ key: "assets/index-
|
|
280050
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
280051
|
-
{ key: "assets/network-watches-
|
|
280052
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
280053
|
-
{ key: "assets/pdf-
|
|
280054
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
280055
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
280056
|
-
{ key: "assets/pdfDocument-
|
|
280057
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
280058
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
280059
|
-
{ key: "assets/webviewBridgeHost-
|
|
280060
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
280061
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
280062
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
280063
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
280064
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
280065
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
280066
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
280067
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
280068
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
280069
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
280070
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
280071
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
280072
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
280073
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
280074
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
280075
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
280076
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
280077
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
280080
|
+
{ key: "assets/index-BIVGhsOH.js", contentType: "application/javascript; charset=utf-8", offset: 156024, length: 1755532, sha256: "8fe78b37fd01c0ca5798dc2388a14fb4e8304d3dcae37b167f465489e2439725" },
|
|
280081
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1911556, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
280082
|
+
{ key: "assets/network-watches-qPNVylXw.js", contentType: "application/javascript; charset=utf-8", offset: 1919307, length: 1299, sha256: "7cb9d5636217b06c705b1485e9a1b7181b6fe1d6b1590bc962455437c8e80e9a" },
|
|
280083
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1920606, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
280084
|
+
{ key: "assets/pdf-ayX0Ex4m.js", contentType: "application/javascript; charset=utf-8", offset: 1931137, length: 488215, sha256: "6ae5256171b5c63d3526a03bf7ac7d83bc3eee9e7a1c39e7d87e46d80257630d" },
|
|
280085
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2419352, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
280086
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2419442, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
280087
|
+
{ key: "assets/pdfDocument-BO8iDrH_.js", contentType: "application/javascript; charset=utf-8", offset: 3736476, length: 3836, sha256: "1904dc34484db9c5eeed26dc270233e41061d4d4de9d6c9e25487d8cb4cc35f8" },
|
|
280088
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3740312, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
280089
|
+
{ key: "assets/scrollLinkedRuntime-BlgWiRdq.js", contentType: "application/javascript; charset=utf-8", offset: 3742578, length: 2278, sha256: "f5873983bdbb7498a728b47a2d72d480532df7cf550c631065919806fca9ab5c" },
|
|
280090
|
+
{ key: "assets/webviewBridgeHost-B1_5hrjH.js", contentType: "application/javascript; charset=utf-8", offset: 3744856, length: 9946, sha256: "ed035768866ffadb1489e24bd7b231f55d8b153a76aa45cc6bf1c2c921ced583" },
|
|
280091
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3754802, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
280092
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3759412, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
280093
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4247996, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
280094
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4338920, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
280095
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4429904, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
280096
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4520884, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
280097
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4611756, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
280098
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4702736, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
280099
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4811372, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
280100
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4920456, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
280101
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5029504, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
280102
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5137204, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
280103
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5225312, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
280104
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5232130, length: 4924, sha256: "96e20ad1a3dcc8383862468786b60b931dff3daebec849ae724e80607627559b" },
|
|
280105
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5237054, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
|
|
280106
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5252639, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
280107
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5253810, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
280108
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5278113, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
280078
280109
|
];
|
|
280079
280110
|
}
|
|
280080
280111
|
});
|
|
@@ -288033,7 +288064,7 @@ var init_credential_profile = __esm({
|
|
|
288033
288064
|
|
|
288034
288065
|
// ../store-release/iap-credentials.ts
|
|
288035
288066
|
import { createHash as createHash94 } from "node:crypto";
|
|
288036
|
-
import { existsSync as existsSync152, readFileSync as readFileSync179, realpathSync as
|
|
288067
|
+
import { existsSync as existsSync152, readFileSync as readFileSync179, realpathSync as realpathSync23 } from "node:fs";
|
|
288037
288068
|
import { homedir as homedir19 } from "node:os";
|
|
288038
288069
|
function accountFingerprint(keyId, issuerId) {
|
|
288039
288070
|
return `sha256:${createHash94("sha256").update(`${issuerId}:${keyId}`).digest("hex").slice(0, 16)}`;
|
|
@@ -288071,7 +288102,7 @@ function resolveIapCredentials(options2) {
|
|
|
288071
288102
|
const { target } = options2;
|
|
288072
288103
|
const home2 = options2.home ?? homedir19();
|
|
288073
288104
|
const readFile26 = options2.readFile ?? ((p2) => readFileSync179(p2, "utf8"));
|
|
288074
|
-
const realpath3 = options2.realpath ??
|
|
288105
|
+
const realpath3 = options2.realpath ?? realpathSync23;
|
|
288075
288106
|
const profile = requireExplicitProfile(options2.profileFlag, target);
|
|
288076
288107
|
const creds = resolveStoreCredentials({
|
|
288077
288108
|
app: target.himiApp,
|
|
@@ -289452,7 +289483,7 @@ __export(store_iap_exports, {
|
|
|
289452
289483
|
});
|
|
289453
289484
|
import { execFileSync as execFileSync11 } from "node:child_process";
|
|
289454
289485
|
import { randomUUID as randomUUID17 } from "node:crypto";
|
|
289455
|
-
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync64, readFileSync as readFileSync182, realpathSync as
|
|
289486
|
+
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync64, readFileSync as readFileSync182, realpathSync as realpathSync24, renameSync as renameSync26, rmSync as rmSync48, writeFileSync as writeFileSync69 } from "node:fs";
|
|
289456
289487
|
import { homedir as homedir20, hostname as hostname7 } from "node:os";
|
|
289457
289488
|
import { dirname as dirname82, join as join193, resolve as resolve119 } from "node:path";
|
|
289458
289489
|
function scrubDeep(value2, scrub) {
|
|
@@ -289852,7 +289883,7 @@ function readInAppPurchaseKey(flags, deps, creds) {
|
|
|
289852
289883
|
if (!/^[A-Z0-9]{10}$/.test(keyId)) throw new UsageError10(`--iap-key-id must be the 10-character key id App Store Connect shows, got "${keyId}"`);
|
|
289853
289884
|
let privateKey2;
|
|
289854
289885
|
try {
|
|
289855
|
-
assertCredentialOutsideRepo("--iap-key", (deps.realpath ??
|
|
289886
|
+
assertCredentialOutsideRepo("--iap-key", (deps.realpath ?? realpathSync24)(path2));
|
|
289856
289887
|
privateKey2 = readInput2(deps, path2, "In-App Purchase key");
|
|
289857
289888
|
} catch (error) {
|
|
289858
289889
|
throw new KeyError(error.message);
|
|
@@ -297943,7 +297974,7 @@ import {
|
|
|
297943
297974
|
openSync as openSync13,
|
|
297944
297975
|
readFileSync as readFileSync195,
|
|
297945
297976
|
readdirSync as readdirSync68,
|
|
297946
|
-
realpathSync as
|
|
297977
|
+
realpathSync as realpathSync25,
|
|
297947
297978
|
renameSync as renameSync27,
|
|
297948
297979
|
rmSync as rmSync49,
|
|
297949
297980
|
statSync as statSync56,
|
|
@@ -298186,8 +298217,8 @@ async function l10nCommand(ctx) {
|
|
|
298186
298217
|
try {
|
|
298187
298218
|
mkdirSync66(join204(appDir3, "l10n"), { recursive: true });
|
|
298188
298219
|
const swapped = unsafeDestination(appDir3, requested);
|
|
298189
|
-
const l10nReal =
|
|
298190
|
-
if (swapped !== void 0 || l10nReal !== join204(
|
|
298220
|
+
const l10nReal = realpathSync25(join204(appDir3, "l10n"));
|
|
298221
|
+
if (swapped !== void 0 || l10nReal !== join204(realpathSync25(appDir3), "l10n")) {
|
|
298191
298222
|
throw new UnsafePath(swapped ?? `${join204(appDir3, "l10n")} resolves outside the app`);
|
|
298192
298223
|
}
|
|
298193
298224
|
for (const tag2 of requested) {
|
|
@@ -308117,7 +308148,7 @@ __export(cli_exports2, {
|
|
|
308117
308148
|
ONE_APP_WORKFLOW: () => ONE_APP_WORKFLOW,
|
|
308118
308149
|
runOneAppCommand: () => runOneAppCommand
|
|
308119
308150
|
});
|
|
308120
|
-
import { closeSync as closeSync15, constants as constants13, lstatSync as lstatSync45, mkdirSync as mkdirSync73, openSync as openSync14, readFileSync as readFileSync207, realpathSync as
|
|
308151
|
+
import { closeSync as closeSync15, constants as constants13, lstatSync as lstatSync45, mkdirSync as mkdirSync73, openSync as openSync14, readFileSync as readFileSync207, realpathSync as realpathSync26, writeFileSync as writeFileSync85 } from "node:fs";
|
|
308121
308152
|
import { createHash as createHash107 } from "node:crypto";
|
|
308122
308153
|
import { isIP as isIP2 } from "node:net";
|
|
308123
308154
|
import { dirname as dirname93, join as join219, parse as parse13, resolve as resolve136 } from "node:path";
|
|
@@ -308373,7 +308404,7 @@ validate-payments checks site-bound payment evidence and explicit paid-flow deci
|
|
|
308373
308404
|
mkdirSync73(options2.parentDir, { recursive: true, mode: 448 });
|
|
308374
308405
|
assertSafeParents(options2.parentDir);
|
|
308375
308406
|
mkdirSync73(options2.workspace, { mode: 448 });
|
|
308376
|
-
if (
|
|
308407
|
+
if (realpathSync26(options2.workspace) !== options2.workspace) throw new Error("destination changed");
|
|
308377
308408
|
evidenceDir = join219(options2.workspace, ".himi", "one-app");
|
|
308378
308409
|
mkdirSync73(evidenceDir, { recursive: true, mode: 448 });
|
|
308379
308410
|
} catch (error) {
|
|
@@ -310668,7 +310699,7 @@ var init_customer_build = __esm({
|
|
|
310668
310699
|
});
|
|
310669
310700
|
|
|
310670
310701
|
// src/site-analyze/apply.ts
|
|
310671
|
-
import { existsSync as existsSync176, readFileSync as readFileSync209, writeFileSync as writeFileSync86, copyFileSync as copyFileSync5, mkdirSync as mkdirSync74, realpathSync as
|
|
310702
|
+
import { existsSync as existsSync176, readFileSync as readFileSync209, writeFileSync as writeFileSync86, copyFileSync as copyFileSync5, mkdirSync as mkdirSync74, realpathSync as realpathSync27, statSync as statSync58 } from "node:fs";
|
|
310672
310703
|
import { dirname as dirname94, isAbsolute as isAbsolute24, join as join221, resolve as resolve137, sep as sep36 } from "node:path";
|
|
310673
310704
|
import { spawnSync as spawnSync15 } from "node:child_process";
|
|
310674
310705
|
function inRepoBakeRefusal(repoRoot2, shell) {
|
|
@@ -311023,8 +311054,8 @@ function buildMergedContract(options2) {
|
|
|
311023
311054
|
let real;
|
|
311024
311055
|
let realRoot;
|
|
311025
311056
|
try {
|
|
311026
|
-
real =
|
|
311027
|
-
realRoot =
|
|
311057
|
+
real = realpathSync27(from);
|
|
311058
|
+
realRoot = realpathSync27(packageDir);
|
|
311028
311059
|
} catch {
|
|
311029
311060
|
return void 0;
|
|
311030
311061
|
}
|
|
@@ -315054,7 +315085,7 @@ __export(fidelity_exports, {
|
|
|
315054
315085
|
himalayaRepoRoot: () => himalayaRepoRoot
|
|
315055
315086
|
});
|
|
315056
315087
|
import { execFileSync as execFileSync13 } from "node:child_process";
|
|
315057
|
-
import { existsSync as existsSync182, realpathSync as
|
|
315088
|
+
import { existsSync as existsSync182, realpathSync as realpathSync28 } from "node:fs";
|
|
315058
315089
|
import { join as join229, relative as relative41, sep as sep37 } from "node:path";
|
|
315059
315090
|
function himalayaRepoRoot(dir) {
|
|
315060
315091
|
let top;
|
|
@@ -315064,7 +315095,7 @@ function himalayaRepoRoot(dir) {
|
|
|
315064
315095
|
return null;
|
|
315065
315096
|
}
|
|
315066
315097
|
if (!existsSync182(join229(top, "tools/judges/fidelity/JUDGE.md"))) return null;
|
|
315067
|
-
const rel2 = relative41(
|
|
315098
|
+
const rel2 = relative41(realpathSync28(top), realpathSync28(dir));
|
|
315068
315099
|
return rel2.startsWith(`..${sep37}`) || rel2 === ".." ? null : top;
|
|
315069
315100
|
}
|
|
315070
315101
|
function fidelityEnvelope(report9) {
|