@wix/himalaya-cli 0.1911.0 → 0.1913.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview/src/dispatcher.d.ts +5 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview/src/index.d.ts +5 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview-page.mjs +6 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview.mjs +36 -13
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{d7d3e5a20cf0acc0fb9058dba6f24d4c6646f0889e3a8cff510b29c41d3eafd4.bin → a5d585737ec0f4d39abdf4a8e7c45350a720c45c62afbba5ae54265cd4d8ec70.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +325 -190
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/sdk-reference.json +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -3963,6 +3963,7 @@ var init_himi_package = __esm({
|
|
|
3963
3963
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
3964
3964
|
var init_icon_catalog_generated = __esm({
|
|
3965
3965
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
3966
|
+
"use strict";
|
|
3966
3967
|
init_define_HHP_CATALOG();
|
|
3967
3968
|
ICON_VIEW_BOX = 24;
|
|
3968
3969
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -18829,9 +18830,10 @@ function screenBundleAppServiceIssues(input) {
|
|
|
18829
18830
|
}
|
|
18830
18831
|
}
|
|
18831
18832
|
const sameBundle2 = input.ctx?.appBundleName !== void 0 && input.bundleName === input.ctx.appBundleName || input.ctx?.appBundleJs !== void 0 && input.bundleJs === input.ctx.appBundleJs;
|
|
18832
|
-
|
|
18833
|
+
const appServiceDefined = (svc) => own(input.appActions, svc) !== void 0 || own(input.ctx?.appState, svc) !== void 0;
|
|
18834
|
+
if (verdict.ok && (input.appActions || input.ctx?.appState) && input.screenServices && !sameBundle2) {
|
|
18833
18835
|
for (const svc of input.screenServices) {
|
|
18834
|
-
if (
|
|
18836
|
+
if (appServiceDefined(svc)) {
|
|
18835
18837
|
issues.push({
|
|
18836
18838
|
severity: "error",
|
|
18837
18839
|
pass: "bindings",
|
|
@@ -26639,7 +26641,7 @@ function validateScreenDescriptor(screenId, served, opts = {}) {
|
|
|
26639
26641
|
}));
|
|
26640
26642
|
const screenServicesForCollision = () => {
|
|
26641
26643
|
if (Object.keys(services2).length > 0) return Object.keys(services2);
|
|
26642
|
-
if (!opts.bundleJs || !opts.appWorkerActions || opts.services !== void 0) return void 0;
|
|
26644
|
+
if (!opts.bundleJs || !(opts.appWorkerActions || opts.appServices?.appState) || opts.services !== void 0) return void 0;
|
|
26643
26645
|
try {
|
|
26644
26646
|
const names2 = Object.keys(extractBundleContract(opts.bundleJs, inspectL10n).services);
|
|
26645
26647
|
return names2.length > 0 ? names2 : void 0;
|
|
@@ -31828,7 +31830,7 @@ __export(validate_descriptor_exports, {
|
|
|
31828
31830
|
withoutBootState: () => withoutBootState,
|
|
31829
31831
|
workerSubtreeAllowed: () => workerSubtreeAllowed
|
|
31830
31832
|
});
|
|
31831
|
-
import { readFileSync as readFileSync21, existsSync as existsSync20, readdirSync as readdirSync15 } from "node:fs";
|
|
31833
|
+
import { readFileSync as readFileSync21, existsSync as existsSync20, readdirSync as readdirSync15, statSync as statSync6 } from "node:fs";
|
|
31832
31834
|
import { resolve as resolve20 } from "node:path";
|
|
31833
31835
|
import { createContext, runInContext } from "node:vm";
|
|
31834
31836
|
import { createRequire } from "node:module";
|
|
@@ -31875,6 +31877,17 @@ function appWorkerContractFor(config, tier5Root) {
|
|
|
31875
31877
|
}
|
|
31876
31878
|
}
|
|
31877
31879
|
function appServicesContextFor(appDir3, config, tier5Root) {
|
|
31880
|
+
const ref = appLogicBundleRef(config) ?? config?.navLogicBundle;
|
|
31881
|
+
const appBundleName = bundleNameFromUrl(ref?.url) ?? void 0;
|
|
31882
|
+
const key4 = JSON.stringify([
|
|
31883
|
+
appDir3 ?? null,
|
|
31884
|
+
tier5Root ?? null,
|
|
31885
|
+
config?.app ?? null,
|
|
31886
|
+
ref ?? null,
|
|
31887
|
+
fileSignature(appDir3 ? resolve20(appDir3, "rollout.yaml") : void 0),
|
|
31888
|
+
fileSignature(appBundleName && tier5Root ? resolve20(tier5Root, `${appBundleName}.bundle.js`) : void 0)
|
|
31889
|
+
]);
|
|
31890
|
+
if (appServicesContextMemo?.key === key4) return appServicesContextMemo.ctx;
|
|
31878
31891
|
let rollout = null;
|
|
31879
31892
|
if (appDir3) {
|
|
31880
31893
|
const p2 = resolve20(appDir3, "rollout.yaml");
|
|
@@ -31884,16 +31897,25 @@ function appServicesContextFor(appDir3, config, tier5Root) {
|
|
|
31884
31897
|
rollout = null;
|
|
31885
31898
|
}
|
|
31886
31899
|
}
|
|
31887
|
-
const ref = appLogicBundleRef(config) ?? config?.navLogicBundle;
|
|
31888
|
-
const appBundleName = bundleNameFromUrl(ref?.url) ?? void 0;
|
|
31889
31900
|
const contract = tier5Root ? appWorkerContractFor(config, tier5Root) : void 0;
|
|
31890
|
-
|
|
31901
|
+
const ctx = {
|
|
31891
31902
|
verdict: appServicesAllowed(config, rollout),
|
|
31892
31903
|
appBundleDeclared: ref !== void 0,
|
|
31893
31904
|
appBundleName,
|
|
31894
31905
|
appBundleJs: appBundleName && tier5Root ? readBuiltBundle(tier5Root, appBundleName) : void 0,
|
|
31895
31906
|
appState: contract?.services
|
|
31896
31907
|
};
|
|
31908
|
+
appServicesContextMemo = { key: key4, ctx };
|
|
31909
|
+
return ctx;
|
|
31910
|
+
}
|
|
31911
|
+
function fileSignature(path2) {
|
|
31912
|
+
if (!path2) return "none";
|
|
31913
|
+
try {
|
|
31914
|
+
const st2 = statSync6(path2);
|
|
31915
|
+
return `${st2.mtimeMs}:${st2.size}`;
|
|
31916
|
+
} catch {
|
|
31917
|
+
return "absent";
|
|
31918
|
+
}
|
|
31897
31919
|
}
|
|
31898
31920
|
function readBuiltBundleMap(tier5Root, bundleName) {
|
|
31899
31921
|
const p2 = resolve20(tier5Root, `${bundleName}.bundle.js.map`);
|
|
@@ -31940,7 +31962,7 @@ function discoverNativeActions(appDir3) {
|
|
|
31940
31962
|
searched: roots2.map(({ searched }) => searched)
|
|
31941
31963
|
};
|
|
31942
31964
|
}
|
|
31943
|
-
var navigationCompiler, nodeVmEvaluator, navContractMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
|
|
31965
|
+
var navigationCompiler, nodeVmEvaluator, navContractMemo, appServicesContextMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
|
|
31944
31966
|
var init_validate_descriptor = __esm({
|
|
31945
31967
|
"../../core/dev-server/src/validate-descriptor.ts"() {
|
|
31946
31968
|
init_define_HHP_CATALOG();
|
|
@@ -31972,6 +31994,7 @@ var init_validate_descriptor = __esm({
|
|
|
31972
31994
|
};
|
|
31973
31995
|
setDefaultEvaluator(nodeVmEvaluator);
|
|
31974
31996
|
navContractMemo = null;
|
|
31997
|
+
appServicesContextMemo = null;
|
|
31975
31998
|
NATIVE_SCRATCH_DIRS = /* @__PURE__ */ new Set([
|
|
31976
31999
|
".build",
|
|
31977
32000
|
"build-sim",
|
|
@@ -34823,7 +34846,7 @@ __export(extensions_exports, {
|
|
|
34823
34846
|
extensionUploads: () => extensionUploads,
|
|
34824
34847
|
prepareExtensions: () => prepareExtensions
|
|
34825
34848
|
});
|
|
34826
|
-
import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as
|
|
34849
|
+
import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as statSync7 } from "node:fs";
|
|
34827
34850
|
import { join as join24 } from "node:path";
|
|
34828
34851
|
import ts7 from "typescript";
|
|
34829
34852
|
function declaredExtensionsOf(source2, fileName = "config.ts") {
|
|
@@ -34845,7 +34868,7 @@ function declaredExtensions(contentDir2) {
|
|
|
34845
34868
|
function extensionDirs(contentDir2) {
|
|
34846
34869
|
const root = join24(contentDir2, EXTENSIONS_DIR);
|
|
34847
34870
|
if (!existsSync27(root)) return [];
|
|
34848
|
-
return readdirSync20(root).filter((n2) => !n2.startsWith(".") &&
|
|
34871
|
+
return readdirSync20(root).filter((n2) => !n2.startsWith(".") && statSync7(join24(root, n2)).isDirectory()).sort();
|
|
34849
34872
|
}
|
|
34850
34873
|
function contentPlatforms(contentDir2) {
|
|
34851
34874
|
try {
|
|
@@ -37445,7 +37468,7 @@ __export(build_exports, {
|
|
|
37445
37468
|
umbrellaVersion: () => umbrellaVersion,
|
|
37446
37469
|
umbrellaVersionIssue: () => umbrellaVersionIssue
|
|
37447
37470
|
});
|
|
37448
|
-
import { existsSync as existsSync29, readdirSync as readdirSync21, mkdirSync as mkdirSync17, statSync as
|
|
37471
|
+
import { existsSync as existsSync29, readdirSync as readdirSync21, mkdirSync as mkdirSync17, statSync as statSync8, symlinkSync, readFileSync as readFileSync29 } from "node:fs";
|
|
37449
37472
|
import { resolve as resolve24, join as join26, dirname as dirname21 } from "node:path";
|
|
37450
37473
|
import { fileURLToPath as fileURLToPath16 } from "node:url";
|
|
37451
37474
|
import { execFileSync } from "node:child_process";
|
|
@@ -37614,7 +37637,7 @@ async function buildContentBundles(contentDir2, opts = {}) {
|
|
|
37614
37637
|
mkdirSync17(outDir, { recursive: true });
|
|
37615
37638
|
for (const name of readdirSync21(srcDir).sort()) {
|
|
37616
37639
|
const entry = join26(srcDir, name, "index.ts");
|
|
37617
|
-
if (!
|
|
37640
|
+
if (!statSync8(join26(srcDir, name)).isDirectory() || !existsSync29(entry)) continue;
|
|
37618
37641
|
try {
|
|
37619
37642
|
await buildBundleFromEntry(entry, join26(outDir, `${name}.bundle.js`), {
|
|
37620
37643
|
resolution,
|
|
@@ -40675,6 +40698,112 @@ var init_screen_map = __esm({
|
|
|
40675
40698
|
rn: null,
|
|
40676
40699
|
why: "Spaces account-level What's New (bundle wix-spaces-whats-new); no RN member/branded equivalent (owners.new-releases.screen is owner-only app release notes)"
|
|
40677
40700
|
}
|
|
40701
|
+
},
|
|
40702
|
+
nano: {
|
|
40703
|
+
nano_create: {
|
|
40704
|
+
screenName: "nano.create",
|
|
40705
|
+
module: "nano",
|
|
40706
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
|
|
40707
|
+
note: "Create tab"
|
|
40708
|
+
},
|
|
40709
|
+
nano_my_widgets: {
|
|
40710
|
+
screenName: "nano.myWidgets",
|
|
40711
|
+
module: "nano",
|
|
40712
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
|
|
40713
|
+
note: "My Widgets tab"
|
|
40714
|
+
},
|
|
40715
|
+
nano_explore: {
|
|
40716
|
+
screenName: "nano.explore",
|
|
40717
|
+
module: "nano",
|
|
40718
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40719
|
+
},
|
|
40720
|
+
nano_explore_carousel: {
|
|
40721
|
+
screenName: "nano.exploreCarousel",
|
|
40722
|
+
module: "nano",
|
|
40723
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40724
|
+
},
|
|
40725
|
+
nano_view_widget: {
|
|
40726
|
+
screenName: "nano.viewWidget",
|
|
40727
|
+
module: "nano",
|
|
40728
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
|
|
40729
|
+
note: "Widget viewer. RN's 191:207 open/view_screen is sent once per mount; a screen-map view fires per appearance, so it is a follow-up (#6442)."
|
|
40730
|
+
},
|
|
40731
|
+
nano_edit_widget: {
|
|
40732
|
+
screenName: "nano.editWidget",
|
|
40733
|
+
module: "nano",
|
|
40734
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40735
|
+
},
|
|
40736
|
+
nano_shared_widget: {
|
|
40737
|
+
screenName: "nano.sharedWidget",
|
|
40738
|
+
module: "nano",
|
|
40739
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40740
|
+
},
|
|
40741
|
+
nano_widget_members: {
|
|
40742
|
+
rn: null,
|
|
40743
|
+
why: "RN shows the members list as an overlay on My Widgets, not a screen (its 191:204 nano.myWidgets.memberList cannot ride a screen-map view without an RN screen name; see #6442)"
|
|
40744
|
+
},
|
|
40745
|
+
nano_edit_widget_info: {
|
|
40746
|
+
screenName: "nano.editWidgetInfo",
|
|
40747
|
+
module: "nano",
|
|
40748
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40749
|
+
},
|
|
40750
|
+
nano_report_nano: {
|
|
40751
|
+
screenName: "nano.reportNano",
|
|
40752
|
+
module: "nano",
|
|
40753
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40754
|
+
},
|
|
40755
|
+
nano_edit_user_profile: {
|
|
40756
|
+
screenName: "nano.editUserProfile",
|
|
40757
|
+
module: "nano",
|
|
40758
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40759
|
+
},
|
|
40760
|
+
nano_public_user_profile: {
|
|
40761
|
+
screenName: "nano.publicUserProfile",
|
|
40762
|
+
module: "nano",
|
|
40763
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40764
|
+
},
|
|
40765
|
+
nano_logger: {
|
|
40766
|
+
screenName: "nano.loggerView",
|
|
40767
|
+
module: "nano",
|
|
40768
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40769
|
+
},
|
|
40770
|
+
nano_widget_code: {
|
|
40771
|
+
rn: null,
|
|
40772
|
+
why: "Himi's widget source viewer; RN Nano has no such screen"
|
|
40773
|
+
},
|
|
40774
|
+
nano_duplicated_widget_preview: {
|
|
40775
|
+
screenName: "nano.duplicatedWidgetPreview",
|
|
40776
|
+
module: "nano",
|
|
40777
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40778
|
+
},
|
|
40779
|
+
nano_share_creation_to_explore: {
|
|
40780
|
+
screenName: "nano.shareCreationToExplore",
|
|
40781
|
+
module: "nano",
|
|
40782
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40783
|
+
},
|
|
40784
|
+
nano_account: {
|
|
40785
|
+
screenName: "nano.account",
|
|
40786
|
+
module: "nano",
|
|
40787
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40788
|
+
},
|
|
40789
|
+
nano_language: {
|
|
40790
|
+
rn: null,
|
|
40791
|
+
why: "Himi's language picker; RN Nano has no such screen"
|
|
40792
|
+
},
|
|
40793
|
+
nano_about: {
|
|
40794
|
+
screenName: "nano.aboutScreen",
|
|
40795
|
+
module: "nano",
|
|
40796
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40797
|
+
},
|
|
40798
|
+
nano_about_nano_modal: {
|
|
40799
|
+
screenName: "nano.aboutNanoModal",
|
|
40800
|
+
module: "nano",
|
|
40801
|
+
rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
|
|
40802
|
+
},
|
|
40803
|
+
nano_welcome: {
|
|
40804
|
+
rn: null,
|
|
40805
|
+
why: "Himi's first-launch welcome; RN's nearest is the creationFTE modal, which is a different flow, so it is sent unmapped rather than guessed"
|
|
40806
|
+
}
|
|
40678
40807
|
}
|
|
40679
40808
|
}
|
|
40680
40809
|
};
|
|
@@ -42864,6 +42993,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
42864
42993
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
42865
42994
|
var init_idiom = __esm({
|
|
42866
42995
|
"../../core/ts/src/idiom.ts"() {
|
|
42996
|
+
"use strict";
|
|
42867
42997
|
init_define_HHP_CATALOG();
|
|
42868
42998
|
IDIOM_CONTEXTS = {
|
|
42869
42999
|
ios: { native: ["ios"] },
|
|
@@ -47370,7 +47500,7 @@ var init_stable_ids = __esm({
|
|
|
47370
47500
|
// ../../core/dev-server/src/preview.ts
|
|
47371
47501
|
import { spawn as spawn2 } from "node:child_process";
|
|
47372
47502
|
import { createHash as createHash17 } from "node:crypto";
|
|
47373
|
-
import { existsSync as existsSync37, createReadStream, statSync as
|
|
47503
|
+
import { existsSync as existsSync37, createReadStream, statSync as statSync9, readFileSync as readFileSync37, renameSync as renameSync8, unlinkSync } from "node:fs";
|
|
47374
47504
|
import { homedir as homedir6, tmpdir } from "node:os";
|
|
47375
47505
|
import { resolve as resolvePath, dirname as dirname25 } from "node:path";
|
|
47376
47506
|
import { fileURLToPath as fileURLToPath23 } from "node:url";
|
|
@@ -48068,7 +48198,7 @@ function finalizeRecording(key4, rec) {
|
|
|
48068
48198
|
} catch {
|
|
48069
48199
|
}
|
|
48070
48200
|
}
|
|
48071
|
-
const sizeBytes = existsSync37(rec.localPath) ?
|
|
48201
|
+
const sizeBytes = existsSync37(rec.localPath) ? statSync9(rec.localPath).size : 0;
|
|
48072
48202
|
clips.set(rec.id, { path: rec.localPath, mime: rec.mime });
|
|
48073
48203
|
recordings.delete(key4);
|
|
48074
48204
|
return { sizeBytes };
|
|
@@ -48145,7 +48275,7 @@ async function handlePreviewClip(res, url) {
|
|
|
48145
48275
|
res.setHeader("content-type", "application/json");
|
|
48146
48276
|
return void res.end(JSON.stringify({ error: "clip_not_found", id }));
|
|
48147
48277
|
}
|
|
48148
|
-
const size =
|
|
48278
|
+
const size = statSync9(clip3.path).size;
|
|
48149
48279
|
res.statusCode = 200;
|
|
48150
48280
|
res.setHeader("content-type", clip3.mime);
|
|
48151
48281
|
res.setHeader("content-length", String(size));
|
|
@@ -151779,7 +151909,7 @@ __export(widgets_exports, {
|
|
|
151779
151909
|
widgetScanRunCount: () => widgetScanRunCount
|
|
151780
151910
|
});
|
|
151781
151911
|
import { createHash as createHash19 } from "node:crypto";
|
|
151782
|
-
import { lstatSync as lstatSync16, readdirSync as readdirSync24, statSync as
|
|
151912
|
+
import { lstatSync as lstatSync16, readdirSync as readdirSync24, statSync as statSync10 } from "node:fs";
|
|
151783
151913
|
import { join as join34 } from "node:path";
|
|
151784
151914
|
import { inspect } from "node:util";
|
|
151785
151915
|
async function widgetRealm() {
|
|
@@ -151902,7 +152032,7 @@ function bundleDirFingerprint(roots2) {
|
|
|
151902
152032
|
const path2 = join34(root, entry);
|
|
151903
152033
|
let st2;
|
|
151904
152034
|
try {
|
|
151905
|
-
st2 =
|
|
152035
|
+
st2 = statSync10(path2, { bigint: true });
|
|
151906
152036
|
} catch (err) {
|
|
151907
152037
|
const code3 = err.code;
|
|
151908
152038
|
if (code3 !== "ENOENT" && code3 !== "ENOTDIR" && code3 !== "ELOOP") throw err;
|
|
@@ -156345,7 +156475,7 @@ var init_src6 = __esm({
|
|
|
156345
156475
|
});
|
|
156346
156476
|
|
|
156347
156477
|
// ../../core/serve-storage/src/file-store.ts
|
|
156348
|
-
import { mkdirSync as mkdirSync22, readFileSync as readFileSync44, rmSync as rmSync12, writeFileSync as writeFileSync17, readdirSync as readdirSync25, existsSync as existsSync41, statSync as
|
|
156478
|
+
import { mkdirSync as mkdirSync22, readFileSync as readFileSync44, rmSync as rmSync12, writeFileSync as writeFileSync17, readdirSync as readdirSync25, existsSync as existsSync41, statSync as statSync11 } from "node:fs";
|
|
156349
156479
|
import { join as join36, resolve as resolve35, sep as sep12 } from "node:path";
|
|
156350
156480
|
var FileReleaseStore;
|
|
156351
156481
|
var init_file_store = __esm({
|
|
@@ -156520,14 +156650,14 @@ var init_file_store = __esm({
|
|
|
156520
156650
|
async getAsset(app2, sha2569, maxBytes) {
|
|
156521
156651
|
if (maxBytes !== void 0) {
|
|
156522
156652
|
const path2 = join36(this.appDir(app2), "assets", this.safe(sha2569));
|
|
156523
|
-
if (existsSync41(path2) &&
|
|
156653
|
+
if (existsSync41(path2) && statSync11(path2).size > maxBytes) return null;
|
|
156524
156654
|
}
|
|
156525
156655
|
return this.read(app2, "assets", this.safe(sha2569));
|
|
156526
156656
|
}
|
|
156527
156657
|
async hasAsset(app2, sha2569, bytes2) {
|
|
156528
156658
|
const path2 = join36(this.appDir(app2), "assets", this.safe(sha2569));
|
|
156529
156659
|
if (!existsSync41(path2)) return false;
|
|
156530
|
-
return bytes2 === void 0 ||
|
|
156660
|
+
return bytes2 === void 0 || statSync11(path2).size === bytes2;
|
|
156531
156661
|
}
|
|
156532
156662
|
async listApps() {
|
|
156533
156663
|
try {
|
|
@@ -163020,6 +163150,11 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
163020
163150
|
const content = {
|
|
163021
163151
|
app: app2,
|
|
163022
163152
|
minBinaryVersion,
|
|
163153
|
+
// RFC 0074 §4 — the authored gate facts the baked app config drops; read by the serve preview.
|
|
163154
|
+
...((newApp, rolloutFloor2) => newApp || rolloutFloor2 ? { appServicesGate: { ...newApp ? { newApp: true } : {}, rolloutFloor: rolloutFloor2 } } : {})(
|
|
163155
|
+
preloaded.module.config.app?.newApp === true,
|
|
163156
|
+
appServices.verdict?.floor ?? null
|
|
163157
|
+
),
|
|
163023
163158
|
// Carry seed policy with the release: serve-backed dist never reads the app's source.
|
|
163024
163159
|
...preloaded.module.seed.excludeScreens?.length ? { seedExcludeScreens: [...new Set(preloaded.module.seed.excludeScreens)].sort() } : {},
|
|
163025
163160
|
screens,
|
|
@@ -164415,7 +164550,7 @@ __export(studio_exports, {
|
|
|
164415
164550
|
writeStudioRecord: () => writeStudioRecord
|
|
164416
164551
|
});
|
|
164417
164552
|
import { createHash as createHash26 } from "node:crypto";
|
|
164418
|
-
import { existsSync as existsSync46, readdirSync as readdirSync28, readFileSync as readFileSync49, realpathSync as realpathSync7, statSync as
|
|
164553
|
+
import { existsSync as existsSync46, readdirSync as readdirSync28, readFileSync as readFileSync49, realpathSync as realpathSync7, statSync as statSync12 } from "node:fs";
|
|
164419
164554
|
import { basename as basename12, extname as extname3, join as join41, relative as relative11, resolve as resolve37, sep as sep14 } from "node:path";
|
|
164420
164555
|
import { pathToFileURL as pathToFileURL6 } from "node:url";
|
|
164421
164556
|
function realInside(dir, abs) {
|
|
@@ -164434,7 +164569,7 @@ function archiveFile(dir, memory2, abs) {
|
|
|
164434
164569
|
let mtimeMs;
|
|
164435
164570
|
let ino;
|
|
164436
164571
|
try {
|
|
164437
|
-
({ size, mtimeMs, ino } =
|
|
164572
|
+
({ size, mtimeMs, ino } = statSync12(real));
|
|
164438
164573
|
} catch {
|
|
164439
164574
|
return null;
|
|
164440
164575
|
}
|
|
@@ -164502,7 +164637,7 @@ function appIdentity(dir) {
|
|
|
164502
164637
|
const icon = text2(manifest2?.icon)?.trim();
|
|
164503
164638
|
const iconPath = icon ? resolve37(dir, icon) : null;
|
|
164504
164639
|
const real = iconPath ? realInside(dir, iconPath) : null;
|
|
164505
|
-
return { name, iconFile: real &&
|
|
164640
|
+
return { name, iconFile: real && statSync12(real).isFile() ? iconPath : null };
|
|
164506
164641
|
}
|
|
164507
164642
|
function testRuns(dir) {
|
|
164508
164643
|
const att = join41(dir, ".himi", "attestations");
|
|
@@ -166539,7 +166674,7 @@ Guides: ${DEVELOPER_PORTAL_URL}`;
|
|
|
166539
166674
|
});
|
|
166540
166675
|
|
|
166541
166676
|
// src/self-update.ts
|
|
166542
|
-
import { readFileSync as readFileSync51, mkdirSync as mkdirSync24, writeFileSync as writeFileSync19, existsSync as existsSync48, rmSync as rmSync14, statSync as
|
|
166677
|
+
import { readFileSync as readFileSync51, mkdirSync as mkdirSync24, writeFileSync as writeFileSync19, existsSync as existsSync48, rmSync as rmSync14, statSync as statSync13, accessSync, constants as constants2 } from "node:fs";
|
|
166543
166678
|
import { execFile, execFileSync as execFileSync3, spawnSync as spawnSync6 } from "node:child_process";
|
|
166544
166679
|
import { randomUUID as randomUUID7 } from "node:crypto";
|
|
166545
166680
|
import { homedir as homedir8, hostname } from "node:os";
|
|
@@ -166844,7 +166979,7 @@ function staleUpdateLockFile(cachePath, now) {
|
|
|
166844
166979
|
let since = stamped;
|
|
166845
166980
|
if (!Number.isFinite(since)) {
|
|
166846
166981
|
try {
|
|
166847
|
-
since =
|
|
166982
|
+
since = statSync13(path2).mtimeMs;
|
|
166848
166983
|
} catch {
|
|
166849
166984
|
continue;
|
|
166850
166985
|
}
|
|
@@ -167181,7 +167316,7 @@ __export(wix_owner_exports, {
|
|
|
167181
167316
|
});
|
|
167182
167317
|
import { spawn as spawn3 } from "node:child_process";
|
|
167183
167318
|
import { createHash as createHash27 } from "node:crypto";
|
|
167184
|
-
import { accessSync as accessSync2, constants as fsConstants, statSync as
|
|
167319
|
+
import { accessSync as accessSync2, constants as fsConstants, statSync as statSync14 } from "node:fs";
|
|
167185
167320
|
import { delimiter, join as join44 } from "node:path";
|
|
167186
167321
|
function resolveSiteId(flag3) {
|
|
167187
167322
|
const id = flag3?.trim() || process.env.WIX_SITE_ID?.trim();
|
|
@@ -167317,7 +167452,7 @@ function wixCliOnPath(env = process.env) {
|
|
|
167317
167452
|
for (const ext of exts) {
|
|
167318
167453
|
try {
|
|
167319
167454
|
const candidate = join44(dir, `wix${ext}`);
|
|
167320
|
-
if (!
|
|
167455
|
+
if (!statSync14(candidate).isFile()) continue;
|
|
167321
167456
|
if (process.platform !== "win32") accessSync2(candidate, fsConstants.X_OK);
|
|
167322
167457
|
return true;
|
|
167323
167458
|
} catch {
|
|
@@ -175231,7 +175366,7 @@ var init_customer_signing_inspect = __esm({
|
|
|
175231
175366
|
});
|
|
175232
175367
|
|
|
175233
175368
|
// src/push-onboarding.ts
|
|
175234
|
-
import { existsSync as existsSync52, mkdirSync as mkdirSync25, readFileSync as readFileSync55, statSync as
|
|
175369
|
+
import { existsSync as existsSync52, mkdirSync as mkdirSync25, readFileSync as readFileSync55, statSync as statSync15, writeFileSync as writeFileSync20, chmodSync as chmodSync2 } from "node:fs";
|
|
175235
175370
|
import { basename as basename14, dirname as dirname31, join as join45, resolve as resolve42 } from "node:path";
|
|
175236
175371
|
function parsePushPlatforms(v2) {
|
|
175237
175372
|
if (v2 === void 0) return { ok: true };
|
|
@@ -175336,7 +175471,7 @@ function localIdentityRefusal(i2) {
|
|
|
175336
175471
|
function readKeyFile(path2) {
|
|
175337
175472
|
let size;
|
|
175338
175473
|
try {
|
|
175339
|
-
size =
|
|
175474
|
+
size = statSync15(path2).size;
|
|
175340
175475
|
} catch {
|
|
175341
175476
|
return { ok: false, code: "key_file_unreadable", reason: "cannot read the selected key file; check its path and file permissions" };
|
|
175342
175477
|
}
|
|
@@ -175533,7 +175668,7 @@ var signing_inspect_exports = {};
|
|
|
175533
175668
|
__export(signing_inspect_exports, {
|
|
175534
175669
|
runSigningInspect: () => runSigningInspect
|
|
175535
175670
|
});
|
|
175536
|
-
import { existsSync as existsSync53, readFileSync as readFileSync56, statSync as
|
|
175671
|
+
import { existsSync as existsSync53, readFileSync as readFileSync56, statSync as statSync16 } from "node:fs";
|
|
175537
175672
|
import { isAbsolute as isAbsolute6, resolve as resolve43 } from "node:path";
|
|
175538
175673
|
function fail5(io2, code3, fields2 = {}) {
|
|
175539
175674
|
io2.error(JSON.stringify({ ok: false, code: code3, ...fields2 }));
|
|
@@ -175626,7 +175761,7 @@ async function runSigningInspect(pos, flags, io2, deps = {}) {
|
|
|
175626
175761
|
if (!existsSync53(certPath) || !existsSync53(profilePath2)) {
|
|
175627
175762
|
return fail5(io2, "signing_inspect_local_assets_unreadable", { error: "cannot read --cert-file or --profile-file" });
|
|
175628
175763
|
}
|
|
175629
|
-
if (
|
|
175764
|
+
if (statSync16(certPath).size > 1048576 || statSync16(profilePath2).size > 1048576) {
|
|
175630
175765
|
return fail5(io2, "signing_inspect_local_assets_unreadable", { error: "cert or profile file is unexpectedly large" });
|
|
175631
175766
|
}
|
|
175632
175767
|
assets = {
|
|
@@ -176230,7 +176365,7 @@ __export(template_trim_exports, {
|
|
|
176230
176365
|
trimCapabilities: () => trimCapabilities,
|
|
176231
176366
|
workersInUse: () => workersInUse
|
|
176232
176367
|
});
|
|
176233
|
-
import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync26, readdirSync as readdirSync30, readFileSync as readFileSync58, renameSync as renameSync10, rmSync as rmSync15, statSync as
|
|
176368
|
+
import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync26, readdirSync as readdirSync30, readFileSync as readFileSync58, renameSync as renameSync10, rmSync as rmSync15, statSync as statSync17, writeFileSync as writeFileSync22 } from "node:fs";
|
|
176234
176369
|
import { dirname as dirname32, join as join47 } from "node:path";
|
|
176235
176370
|
import ts9 from "typescript";
|
|
176236
176371
|
function routeMatcher(pattern) {
|
|
@@ -177158,14 +177293,14 @@ function homeModulesPass(app2, kept, edited) {
|
|
|
177158
177293
|
function listWorkers(dir) {
|
|
177159
177294
|
const root = join47(dir, "tier5-src");
|
|
177160
177295
|
if (!existsSync54(root)) return { dirs: [], files: {} };
|
|
177161
|
-
const dirs = readdirSync30(root).filter((n2) =>
|
|
177296
|
+
const dirs = readdirSync30(root).filter((n2) => statSync17(join47(root, n2)).isDirectory()).sort();
|
|
177162
177297
|
const files = {};
|
|
177163
177298
|
const walk6 = (abs, rel2) => {
|
|
177164
177299
|
for (const name of readdirSync30(abs)) {
|
|
177165
177300
|
if (name === "node_modules") continue;
|
|
177166
177301
|
const p2 = join47(abs, name);
|
|
177167
177302
|
const r3 = `${rel2}/${name}`;
|
|
177168
|
-
if (
|
|
177303
|
+
if (statSync17(p2).isDirectory()) walk6(p2, r3);
|
|
177169
177304
|
else if (/\.(?:[cm]?[jt]sx?|json)$/.test(name)) files[r3] = readFileSync58(p2, "utf8");
|
|
177170
177305
|
}
|
|
177171
177306
|
};
|
|
@@ -177602,7 +177737,7 @@ __export(template_adopt_exports, {
|
|
|
177602
177737
|
writeInventory: () => writeInventory,
|
|
177603
177738
|
writeNoFollow: () => writeNoFollow
|
|
177604
177739
|
});
|
|
177605
|
-
import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, statSync as
|
|
177740
|
+
import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, statSync as statSync18, writeFileSync as writeFileSync23 } from "node:fs";
|
|
177606
177741
|
import { dirname as dirname33, join as join48, posix as posix2, relative as relative13 } from "node:path";
|
|
177607
177742
|
import ts10 from "typescript";
|
|
177608
177743
|
function readAppSources(dir) {
|
|
@@ -177616,14 +177751,14 @@ function readAppSources(dir) {
|
|
|
177616
177751
|
if (existsSync55(root)) {
|
|
177617
177752
|
for (const name of readdirSync31(root).sort()) {
|
|
177618
177753
|
const abs = join48(root, name);
|
|
177619
|
-
if (!
|
|
177754
|
+
if (!statSync18(abs).isDirectory()) continue;
|
|
177620
177755
|
const files = {};
|
|
177621
177756
|
const walk6 = (a3, rel2) => {
|
|
177622
177757
|
for (const n2 of readdirSync31(a3).sort()) {
|
|
177623
177758
|
if (n2 === "node_modules") continue;
|
|
177624
177759
|
const p2 = join48(a3, n2);
|
|
177625
177760
|
const r3 = `${rel2}/${n2}`;
|
|
177626
|
-
if (
|
|
177761
|
+
if (statSync18(p2).isDirectory()) walk6(p2, r3);
|
|
177627
177762
|
else if (/\.(?:[cm]?[jt]sx?)$/.test(n2)) files[r3] = readFileSync59(p2, "utf8");
|
|
177628
177763
|
}
|
|
177629
177764
|
};
|
|
@@ -177776,7 +177911,7 @@ function walkPackage(dir, rel2 = "") {
|
|
|
177776
177911
|
if (IGNORED.has(n2)) continue;
|
|
177777
177912
|
const r3 = rel2 ? `${rel2}/${n2}` : n2;
|
|
177778
177913
|
const abs = join48(dir, r3);
|
|
177779
|
-
if (
|
|
177914
|
+
if (statSync18(abs).isDirectory()) out2.push(...walkPackage(dir, r3));
|
|
177780
177915
|
else if (/\.(?:tsx?|jsx?|json)$/.test(n2)) out2.push(r3);
|
|
177781
177916
|
}
|
|
177782
177917
|
return out2;
|
|
@@ -179443,7 +179578,7 @@ __export(icon_exports, {
|
|
|
179443
179578
|
writePreparedIcon: () => writePreparedIcon
|
|
179444
179579
|
});
|
|
179445
179580
|
import { createHash as createHash30 } from "node:crypto";
|
|
179446
|
-
import { accessSync as accessSync3, constants as constants4, existsSync as existsSync57, mkdirSync as mkdirSync28, readFileSync as readFileSync61, statSync as
|
|
179581
|
+
import { accessSync as accessSync3, constants as constants4, existsSync as existsSync57, mkdirSync as mkdirSync28, readFileSync as readFileSync61, statSync as statSync19, writeFileSync as writeFileSync24 } from "node:fs";
|
|
179447
179582
|
import { basename as basename15, dirname as dirname35, join as join49, resolve as resolve45, sep as sep16 } from "node:path";
|
|
179448
179583
|
function readManifest(dir) {
|
|
179449
179584
|
try {
|
|
@@ -179473,7 +179608,7 @@ function templateIconMatch(png) {
|
|
|
179473
179608
|
for (const template of availableTemplates()) {
|
|
179474
179609
|
const candidate = join49(templateSourceDir(template), DEFAULT_CONTENT_ICON);
|
|
179475
179610
|
try {
|
|
179476
|
-
if (
|
|
179611
|
+
if (statSync19(candidate).size !== png.length) continue;
|
|
179477
179612
|
if (readFileSync61(candidate).equals(png)) return template;
|
|
179478
179613
|
} catch {
|
|
179479
179614
|
}
|
|
@@ -179484,7 +179619,7 @@ function playState(dir) {
|
|
|
179484
179619
|
const p2 = join49(resolve45(dir), PLAY_LISTING_ICON);
|
|
179485
179620
|
if (!existsSync57(p2)) return null;
|
|
179486
179621
|
try {
|
|
179487
|
-
if (!
|
|
179622
|
+
if (!statSync19(p2).isFile()) return { path: p2, issues: ["is a directory, not a PNG file"] };
|
|
179488
179623
|
return { path: p2, issues: playListingIconIssues(readFileSync61(p2)) };
|
|
179489
179624
|
} catch (err) {
|
|
179490
179625
|
return { path: p2, issues: [`could not be read (${err.message.split("\n")[0]})`] };
|
|
@@ -179511,7 +179646,7 @@ async function iconStatus(dir) {
|
|
|
179511
179646
|
if (!path2 || !existsSync57(path2)) return base2;
|
|
179512
179647
|
let png;
|
|
179513
179648
|
try {
|
|
179514
|
-
if (!
|
|
179649
|
+
if (!statSync19(path2).isFile()) {
|
|
179515
179650
|
return {
|
|
179516
179651
|
...base2,
|
|
179517
179652
|
byteIssues: [`at ${path2} is a directory, not a PNG file`],
|
|
@@ -179636,7 +179771,7 @@ function writePreparedIcon(dir, master, play) {
|
|
|
179636
179771
|
];
|
|
179637
179772
|
for (const path2 of targets) {
|
|
179638
179773
|
if (existsSync57(path2)) {
|
|
179639
|
-
if (!
|
|
179774
|
+
if (!statSync19(path2).isFile()) throw new Error(`himi icon: destination is not a regular file: ${path2}`);
|
|
179640
179775
|
accessSync3(path2, constants4.W_OK);
|
|
179641
179776
|
} else accessSync3(dirname35(path2), constants4.W_OK);
|
|
179642
179777
|
}
|
|
@@ -184232,7 +184367,7 @@ __export(pack_exports, {
|
|
|
184232
184367
|
});
|
|
184233
184368
|
import { createHash as createHash31 } from "node:crypto";
|
|
184234
184369
|
import { deflateRawSync, inflateRawSync } from "node:zlib";
|
|
184235
|
-
import { existsSync as existsSync62, mkdirSync as mkdirSync31, readFileSync as readFileSync66, readdirSync as readdirSync32, rmSync as rmSync18, statSync as
|
|
184370
|
+
import { existsSync as existsSync62, mkdirSync as mkdirSync31, readFileSync as readFileSync66, readdirSync as readdirSync32, rmSync as rmSync18, statSync as statSync20, writeFileSync as writeFileSync27 } from "node:fs";
|
|
184236
184371
|
import { dirname as dirname38, join as join55, resolve as resolve47 } from "node:path";
|
|
184237
184372
|
function writeZip(entries) {
|
|
184238
184373
|
const sorted3 = entries.slice().sort((a3, b3) => a3.path < b3.path ? -1 : a3.path > b3.path ? 1 : 0);
|
|
@@ -184327,10 +184462,10 @@ function inflateEntry(buf, entry) {
|
|
|
184327
184462
|
return bytes2;
|
|
184328
184463
|
}
|
|
184329
184464
|
function readIf(path2) {
|
|
184330
|
-
return existsSync62(path2) &&
|
|
184465
|
+
return existsSync62(path2) && statSync20(path2).isFile() ? readFileSync66(path2) : null;
|
|
184331
184466
|
}
|
|
184332
184467
|
function listDir(dir) {
|
|
184333
|
-
return existsSync62(dir) ? readdirSync32(dir).filter((f2) =>
|
|
184468
|
+
return existsSync62(dir) ? readdirSync32(dir).filter((f2) => statSync20(join55(dir, f2)).isFile()) : [];
|
|
184334
184469
|
}
|
|
184335
184470
|
function gatherReleaseEntries(appDir3) {
|
|
184336
184471
|
const manifestPath = join55(appDir3, HIMI_PACKAGE_MANIFEST_PATH);
|
|
@@ -184409,7 +184544,7 @@ function packRelease(releaseRoot, app2, out2, opts = {}) {
|
|
|
184409
184544
|
const appDir3 = join55(resolve47(releaseRoot), app2);
|
|
184410
184545
|
const { all, header: header2, skipped } = buildEntries(appDir3, app2, opts);
|
|
184411
184546
|
const buf = writeZip(all);
|
|
184412
|
-
const isDir3 = existsSync62(out2) &&
|
|
184547
|
+
const isDir3 = existsSync62(out2) && statSync20(out2).isDirectory();
|
|
184413
184548
|
const outFile = isDir3 ? join55(resolve47(out2), packageFileName(app2, header2.releaseId)) : resolve47(out2);
|
|
184414
184549
|
mkdirSync31(dirname38(outFile), { recursive: true });
|
|
184415
184550
|
writeFileSync27(outFile, buf);
|
|
@@ -184427,10 +184562,10 @@ function resolvePackageDirDest(outDir, app2, releaseId) {
|
|
|
184427
184562
|
};
|
|
184428
184563
|
const replaceable = (dir) => {
|
|
184429
184564
|
if (!existsSync62(dir)) return true;
|
|
184430
|
-
if (!
|
|
184565
|
+
if (!statSync20(dir).isDirectory()) return false;
|
|
184431
184566
|
return readdirSync32(dir).length === 0 || packagedApp(dir) === app2;
|
|
184432
184567
|
};
|
|
184433
|
-
if (existsSync62(outDir) && !
|
|
184568
|
+
if (existsSync62(outDir) && !statSync20(outDir).isDirectory()) {
|
|
184434
184569
|
throw new Error(`refusing to write a package tree over ${outDir} \u2014 it is a file, not a directory`);
|
|
184435
184570
|
}
|
|
184436
184571
|
if (replaceable(outDir)) return outDir;
|
|
@@ -184487,7 +184622,7 @@ function openPackageDir(dir) {
|
|
|
184487
184622
|
for (const name of readdirSync32(abs)) {
|
|
184488
184623
|
const childRel = rel2 ? `${rel2}/${name}` : name;
|
|
184489
184624
|
const childAbs = join55(abs, name);
|
|
184490
|
-
if (
|
|
184625
|
+
if (statSync20(childAbs).isDirectory()) walk6(childRel);
|
|
184491
184626
|
else if (isSafeEntryName(childRel)) entries.set(childRel, readFileSync66(childAbs));
|
|
184492
184627
|
}
|
|
184493
184628
|
};
|
|
@@ -184872,7 +185007,7 @@ __export(run_watch_exports, {
|
|
|
184872
185007
|
watchedContentDir: () => watchedContentDir,
|
|
184873
185008
|
writeRunRecord: () => writeRunRecord
|
|
184874
185009
|
});
|
|
184875
|
-
import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as
|
|
185010
|
+
import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync21, readdirSync as readdirSync34, mkdirSync as mkdirSync33, openSync as openSync5, readFileSync as readFileSync68, realpathSync as realpathSync9, renameSync as renameSync12, rmSync as rmSync20, writeFileSync as writeFileSync29, watch as fsWatch } from "node:fs";
|
|
184876
185011
|
import { randomUUID as randomUUID9 } from "node:crypto";
|
|
184877
185012
|
import { extname as extname4, join as join57, relative as relative14, resolve as resolve49, sep as sep19 } from "node:path";
|
|
184878
185013
|
function diffReleases(prev, next) {
|
|
@@ -184991,7 +185126,7 @@ function watchedContentDir(source2) {
|
|
|
184991
185126
|
if (!source2 || /^https?:\/\//i.test(source2)) return null;
|
|
184992
185127
|
const dir = resolve49(source2);
|
|
184993
185128
|
try {
|
|
184994
|
-
return
|
|
185129
|
+
return statSync21(dir).isDirectory() && existsSync64(join57(dir, "himalaya.content.json")) ? dir : null;
|
|
184995
185130
|
} catch {
|
|
184996
185131
|
return null;
|
|
184997
185132
|
}
|
|
@@ -185173,7 +185308,7 @@ var init_run_watch = __esm({
|
|
|
185173
185308
|
};
|
|
185174
185309
|
isDir = (path2) => {
|
|
185175
185310
|
try {
|
|
185176
|
-
return
|
|
185311
|
+
return statSync21(path2).isDirectory();
|
|
185177
185312
|
} catch {
|
|
185178
185313
|
return false;
|
|
185179
185314
|
}
|
|
@@ -185656,7 +185791,7 @@ __export(milestones_exports, {
|
|
|
185656
185791
|
});
|
|
185657
185792
|
import { createHash as createHash35, randomUUID as randomUUID10 } from "node:crypto";
|
|
185658
185793
|
import { spawn as spawn4 } from "node:child_process";
|
|
185659
|
-
import { closeSync as closeSync6, existsSync as existsSync65, lstatSync as lstatSync24, readFileSync as readFileSync72, statSync as
|
|
185794
|
+
import { closeSync as closeSync6, existsSync as existsSync65, lstatSync as lstatSync24, readFileSync as readFileSync72, statSync as statSync22 } from "node:fs";
|
|
185660
185795
|
import { createServer as createServer3 } from "node:net";
|
|
185661
185796
|
import { basename as basename18, dirname as dirname39, isAbsolute as isAbsolute8, join as join61, relative as relative15, resolve as resolve50, sep as sep20 } from "node:path";
|
|
185662
185797
|
function homeShotPath(dir, home2) {
|
|
@@ -185735,7 +185870,7 @@ async function renderHomeInChild(dir, home2, opts) {
|
|
|
185735
185870
|
}
|
|
185736
185871
|
let fresh = false;
|
|
185737
185872
|
try {
|
|
185738
|
-
fresh =
|
|
185873
|
+
fresh = statSync22(shot).mtimeMs >= started - 1e3;
|
|
185739
185874
|
} catch {
|
|
185740
185875
|
}
|
|
185741
185876
|
if (code3 === 0 && fresh) {
|
|
@@ -185944,7 +186079,7 @@ function afterBrowserTestRun(dir, input) {
|
|
|
185944
186079
|
function shotIsCurrent(shot, sourceChangedAtMs) {
|
|
185945
186080
|
if (sourceChangedAtMs === void 0) return false;
|
|
185946
186081
|
try {
|
|
185947
|
-
return
|
|
186082
|
+
return statSync22(shot).mtimeMs >= sourceChangedAtMs;
|
|
185948
186083
|
} catch {
|
|
185949
186084
|
return false;
|
|
185950
186085
|
}
|
|
@@ -186319,7 +186454,7 @@ function afterHandoverPostcard(dir, opts = {}) {
|
|
|
186319
186454
|
let fresh = false;
|
|
186320
186455
|
try {
|
|
186321
186456
|
const st2 = lstatSync24(file2);
|
|
186322
|
-
fresh = st2.isFile() && !st2.isSymbolicLink() && st2.mtimeMs >=
|
|
186457
|
+
fresh = st2.isFile() && !st2.isSymbolicLink() && st2.mtimeMs >= statSync22(join61(dir, ".himi", "progress.jsonl")).mtimeMs;
|
|
186323
186458
|
} catch {
|
|
186324
186459
|
fresh = false;
|
|
186325
186460
|
}
|
|
@@ -192952,7 +193087,7 @@ var init_localweb = __esm({
|
|
|
192952
193087
|
});
|
|
192953
193088
|
|
|
192954
193089
|
// ../native-config/capability-registrations.ts
|
|
192955
|
-
import { existsSync as existsSync76, readdirSync as readdirSync38, readFileSync as readFileSync83, statSync as
|
|
193090
|
+
import { existsSync as existsSync76, readdirSync as readdirSync38, readFileSync as readFileSync83, statSync as statSync23 } from "node:fs";
|
|
192956
193091
|
import { dirname as dirname42, join as join74, resolve as resolve53 } from "node:path";
|
|
192957
193092
|
import { fileURLToPath as fileURLToPath29 } from "node:url";
|
|
192958
193093
|
function registrarClasses(path2, re2) {
|
|
@@ -193017,7 +193152,7 @@ function filesWithRegisterMarkers(root, ext) {
|
|
|
193017
193152
|
} else {
|
|
193018
193153
|
stack.push([path2, depth + 1, "main"]);
|
|
193019
193154
|
}
|
|
193020
|
-
} else if (where === "main" && entry.isFile() && entry.name.endsWith(ext) &&
|
|
193155
|
+
} else if (where === "main" && entry.isFile() && entry.name.endsWith(ext) && statSync23(path2).size <= 1 << 20) {
|
|
193021
193156
|
if (readFileSync83(path2, "utf8").includes(`>>> ${LABEL_CAPABILITIES_REGISTER} `)) out2.push(path2);
|
|
193022
193157
|
}
|
|
193023
193158
|
}
|
|
@@ -194818,7 +194953,7 @@ __export(gen_native_config_exports, {
|
|
|
194818
194953
|
xmlAttr: () => xmlAttr2,
|
|
194819
194954
|
yamlScalar: () => yamlScalar
|
|
194820
194955
|
});
|
|
194821
|
-
import { existsSync as existsSync81, mkdirSync as mkdirSync34, readFileSync as readFileSync89, readdirSync as readdirSync40, rmSync as rmSync23, statSync as
|
|
194956
|
+
import { existsSync as existsSync81, mkdirSync as mkdirSync34, readFileSync as readFileSync89, readdirSync as readdirSync40, rmSync as rmSync23, statSync as statSync24, writeFileSync as writeFileSync34 } from "node:fs";
|
|
194822
194957
|
import { dirname as dirname46, join as join79 } from "node:path";
|
|
194823
194958
|
import { fileURLToPath as fileURLToPath30 } from "node:url";
|
|
194824
194959
|
import ts18 from "typescript";
|
|
@@ -195378,7 +195513,7 @@ function kotlinBootSourcesUnder(root) {
|
|
|
195378
195513
|
} else {
|
|
195379
195514
|
stack.push([path2, depth + 1, "main"]);
|
|
195380
195515
|
}
|
|
195381
|
-
} else if (where === "main" && entry.isFile() && entry.name.endsWith("Application.kt") &&
|
|
195516
|
+
} else if (where === "main" && entry.isFile() && entry.name.endsWith("Application.kt") && statSync24(path2).size <= BOOT_SOURCE_MAX_BYTES && readFileSync89(path2, "utf8").includes("installLinkedModules")) {
|
|
195382
195517
|
out2.push(path2);
|
|
195383
195518
|
}
|
|
195384
195519
|
}
|
|
@@ -195776,7 +195911,7 @@ function coreExtensionSourceRoots(projectYmlPath) {
|
|
|
195776
195911
|
if (t2.type !== "app-extension" || !(t2.dependencies ?? []).some((d2) => /^HimalayaCore/.test(d2.product ?? d2.package ?? ""))) continue;
|
|
195777
195912
|
const paths2 = (t2.sources ?? []).map((s5) => typeof s5 === "string" ? s5 : s5.path).filter((p2) => !!p2);
|
|
195778
195913
|
const infoDir = t2.info?.path ? dirname46(t2.info.path) : void 0;
|
|
195779
|
-
const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) &&
|
|
195914
|
+
const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) && statSync24(join79(dir, p2)).isDirectory());
|
|
195780
195915
|
if (!root) throw new Error(`${projectYmlPath}: app extension linking HimalayaCore has no source directory to bundle its privacy manifest from`);
|
|
195781
195916
|
roots2.push(join79(dir, root));
|
|
195782
195917
|
}
|
|
@@ -196905,7 +197040,7 @@ function adaptWixLink(raw) {
|
|
|
196905
197040
|
if (!host || !WIX_UNIVERSAL_HOST.test(host)) return void 0;
|
|
196906
197041
|
rest = raw.slice(raw.toLowerCase().indexOf(host) + host.length);
|
|
196907
197042
|
}
|
|
196908
|
-
const [pathPart, queryPart = ""] = splitOnce(stripLeadingSlashes(rest), "?");
|
|
197043
|
+
const [pathPart, queryPart = ""] = splitOnce(stripLeadingSlashes(splitOnce(rest, "#")[0]), "?");
|
|
196909
197044
|
const kept = [];
|
|
196910
197045
|
let metaSiteId;
|
|
196911
197046
|
for (const pair of queryPart.split("&")) {
|
|
@@ -200592,7 +200727,7 @@ var init_diff_hash = __esm({
|
|
|
200592
200727
|
|
|
200593
200728
|
// src/attestation-lock.ts
|
|
200594
200729
|
import { randomBytes as randomBytes2 } from "node:crypto";
|
|
200595
|
-
import { closeSync as closeSync7, linkSync, openSync as openSync6, readFileSync as readFileSync98, renameSync as renameSync13, statSync as
|
|
200730
|
+
import { closeSync as closeSync7, linkSync, openSync as openSync6, readFileSync as readFileSync98, renameSync as renameSync13, statSync as statSync25, unlinkSync as unlinkSync4, writeSync } from "node:fs";
|
|
200596
200731
|
import { hostname as hostname2 } from "node:os";
|
|
200597
200732
|
import { join as join90 } from "node:path";
|
|
200598
200733
|
function sleepSync2(ms2) {
|
|
@@ -200620,7 +200755,7 @@ function processAlive3(pid) {
|
|
|
200620
200755
|
function isStale(path2, owner, staleMs, now) {
|
|
200621
200756
|
if (!owner) {
|
|
200622
200757
|
try {
|
|
200623
|
-
return now -
|
|
200758
|
+
return now - statSync25(path2).mtimeMs > UNREADABLE_STALE_MS;
|
|
200624
200759
|
} catch {
|
|
200625
200760
|
return false;
|
|
200626
200761
|
}
|
|
@@ -201827,7 +201962,7 @@ __export(desktop_measure_lint_exports, {
|
|
|
201827
201962
|
listRoot: () => listRoot,
|
|
201828
201963
|
readMeasures: () => readMeasures
|
|
201829
201964
|
});
|
|
201830
|
-
import { readFileSync as readFileSync105, statSync as
|
|
201965
|
+
import { readFileSync as readFileSync105, statSync as statSync26 } from "node:fs";
|
|
201831
201966
|
import { isAbsolute as isAbsolute12, resolve as resolve66, sep as sep25 } from "node:path";
|
|
201832
201967
|
function nodes2(root, at2) {
|
|
201833
201968
|
const out2 = [];
|
|
@@ -201898,7 +202033,7 @@ function readMeasures(dir, config, opts = {}) {
|
|
|
201898
202033
|
}
|
|
201899
202034
|
let size;
|
|
201900
202035
|
try {
|
|
201901
|
-
const st2 =
|
|
202036
|
+
const st2 = statSync26(file2);
|
|
201902
202037
|
if (!st2.isFile()) return DEFAULT_MEASURES;
|
|
201903
202038
|
size = st2.size;
|
|
201904
202039
|
} catch {
|
|
@@ -205629,7 +205764,7 @@ ${indent}`);
|
|
|
205629
205764
|
|
|
205630
205765
|
// src/one-app/access-cli.ts
|
|
205631
205766
|
import { createHash as createHash48 } from "node:crypto";
|
|
205632
|
-
import { existsSync as existsSync100, readFileSync as readFileSync111, rmSync as rmSync28, statSync as
|
|
205767
|
+
import { existsSync as existsSync100, readFileSync as readFileSync111, rmSync as rmSync28, statSync as statSync27, writeFileSync as writeFileSync44 } from "node:fs";
|
|
205633
205768
|
import { join as join100, resolve as resolve70 } from "node:path";
|
|
205634
205769
|
function parseArgs(args) {
|
|
205635
205770
|
let evidenceDir;
|
|
@@ -205813,7 +205948,7 @@ async function runOneAppAccess(args, io2) {
|
|
|
205813
205948
|
let configText;
|
|
205814
205949
|
let screensText;
|
|
205815
205950
|
try {
|
|
205816
|
-
for (const path2 of [configPath, screensPath]) if (!
|
|
205951
|
+
for (const path2 of [configPath, screensPath]) if (!statSync27(path2).isFile()) throw new Error(`${path2} is not a file.`);
|
|
205817
205952
|
configText = readFileSync111(configPath, "utf8");
|
|
205818
205953
|
screensText = readFileSync111(screensPath, "utf8");
|
|
205819
205954
|
} catch (error) {
|
|
@@ -209223,7 +209358,7 @@ __export(validate_topbar_exports, {
|
|
|
209223
209358
|
screenActions: () => screenActions2
|
|
209224
209359
|
});
|
|
209225
209360
|
import { createHash as createHash49 } from "node:crypto";
|
|
209226
|
-
import { existsSync as existsSync105, readFileSync as readFileSync116, statSync as
|
|
209361
|
+
import { existsSync as existsSync105, readFileSync as readFileSync116, statSync as statSync28 } from "node:fs";
|
|
209227
209362
|
import { resolve as resolve72, join as join105 } from "node:path";
|
|
209228
209363
|
import ts29 from "typescript";
|
|
209229
209364
|
function enrichedControls(raw, views2, omit) {
|
|
@@ -209777,7 +209912,7 @@ function validate3(evidenceDir, contentDir2) {
|
|
|
209777
209912
|
let homeInviteFor = () => false;
|
|
209778
209913
|
try {
|
|
209779
209914
|
configPath = join105(contentDir2, "config.ts");
|
|
209780
|
-
if (!
|
|
209915
|
+
if (!statSync28(configPath).isFile()) throw new Error("config.ts is not a file.");
|
|
209781
209916
|
target = configActions(configPath);
|
|
209782
209917
|
drawerInvite = drawerOffersInvite(readFileSync116(configPath, "utf8"), profileOffersInvite(contentDir2));
|
|
209783
209918
|
try {
|
|
@@ -212346,7 +212481,7 @@ var init_cli_bridge = __esm({
|
|
|
212346
212481
|
});
|
|
212347
212482
|
|
|
212348
212483
|
// src/mcp/file-tools.ts
|
|
212349
|
-
import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync30, mkdirSync as mkdirSync42, openSync as openSync7, readdirSync as readdirSync44, readFileSync as readFileSync122, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync30, statSync as
|
|
212484
|
+
import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync30, mkdirSync as mkdirSync42, openSync as openSync7, readdirSync as readdirSync44, readFileSync as readFileSync122, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync30, statSync as statSync29, writeSync as writeSync2, existsSync as existsSync110 } from "node:fs";
|
|
212350
212485
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
212351
212486
|
import { dirname as dirname55, isAbsolute as isAbsolute15, join as join110, relative as relative21, resolve as resolve74, sep as sep26 } from "node:path";
|
|
212352
212487
|
import * as z2 from "zod";
|
|
@@ -212465,7 +212600,7 @@ function listFiles2(appDir3) {
|
|
|
212465
212600
|
const rel2 = relative21(appDir3, p2);
|
|
212466
212601
|
if (isDeniedSourcePath(rel2) || isDeniedSourcePath(rel2.toLowerCase())) continue;
|
|
212467
212602
|
if (files.length >= MAX_LISTED) return false;
|
|
212468
|
-
files.push({ path: rel2.split(sep26).join("/"), bytes:
|
|
212603
|
+
files.push({ path: rel2.split(sep26).join("/"), bytes: statSync29(p2).size });
|
|
212469
212604
|
}
|
|
212470
212605
|
}
|
|
212471
212606
|
return true;
|
|
@@ -212501,7 +212636,7 @@ function fileTools() {
|
|
|
212501
212636
|
handler: async (a3, d2) => {
|
|
212502
212637
|
const app2 = await confinedAppDir(a3, d2);
|
|
212503
212638
|
if (typeof app2 !== "string") return app2;
|
|
212504
|
-
if (!existsSync110(app2) || !
|
|
212639
|
+
if (!existsSync110(app2) || !statSync29(app2).isDirectory()) return refuse5("no_app", `no folder at ${app2}`);
|
|
212505
212640
|
return ok({ ok: true, dir: app2, ...listFiles2(app2) });
|
|
212506
212641
|
}
|
|
212507
212642
|
},
|
|
@@ -212517,7 +212652,7 @@ function fileTools() {
|
|
|
212517
212652
|
const p2 = confinedPath(app2, a3.path);
|
|
212518
212653
|
if (typeof p2 !== "string") return refuse5("bad_path", p2.error);
|
|
212519
212654
|
if (!existsSync110(p2) || !lstatSync30(p2).isFile()) return refuse5("not_found", `no file "${String(a3.path)}"`);
|
|
212520
|
-
const size =
|
|
212655
|
+
const size = statSync29(p2).size;
|
|
212521
212656
|
if (size > MAX_FILE_BYTES2) return refuse5("too_large", `"${String(a3.path)}" is ${size} bytes \u2014 over the ${MAX_FILE_BYTES2}-byte read limit`);
|
|
212522
212657
|
return ok({ ok: true, path: a3.path, bytes: size, content: readFileSync122(p2, "utf8") });
|
|
212523
212658
|
}
|
|
@@ -213445,7 +213580,7 @@ var init_open_url = __esm({
|
|
|
213445
213580
|
});
|
|
213446
213581
|
|
|
213447
213582
|
// src/store-build-lookup.ts
|
|
213448
|
-
import { existsSync as existsSync111, lstatSync as lstatSync31, readFileSync as readFileSync123, readdirSync as readdirSync45, statSync as
|
|
213583
|
+
import { existsSync as existsSync111, lstatSync as lstatSync31, readFileSync as readFileSync123, readdirSync as readdirSync45, statSync as statSync30 } from "node:fs";
|
|
213449
213584
|
import { basename as basename27, join as join111, resolve as resolve77 } from "node:path";
|
|
213450
213585
|
function readUploadFacts(dir) {
|
|
213451
213586
|
const path2 = join111(dir, LAST_DIST_PATH);
|
|
@@ -213472,7 +213607,7 @@ function newestLocalIpa(dir) {
|
|
|
213472
213607
|
const folder = join111(dir, LOCAL_IPA_DIR);
|
|
213473
213608
|
try {
|
|
213474
213609
|
if (!existsSync111(folder) || lstatSync31(folder).isSymbolicLink() || !lstatSync31(folder).isDirectory()) return void 0;
|
|
213475
|
-
const ipas = readdirSync45(folder).filter((n2) => n2.toLowerCase().endsWith(".ipa")).map((n2) => join111(folder, n2)).filter((p2) => lstatSync31(p2).isFile()).sort((a3, b3) =>
|
|
213610
|
+
const ipas = readdirSync45(folder).filter((n2) => n2.toLowerCase().endsWith(".ipa")).map((n2) => join111(folder, n2)).filter((p2) => lstatSync31(p2).isFile()).sort((a3, b3) => statSync30(b3).mtimeMs - statSync30(a3).mtimeMs);
|
|
213476
213611
|
return ipas[0];
|
|
213477
213612
|
} catch {
|
|
213478
213613
|
return void 0;
|
|
@@ -226947,7 +227082,7 @@ __export(store_google_host_exports, {
|
|
|
226947
227082
|
signingFor: () => signingFor
|
|
226948
227083
|
});
|
|
226949
227084
|
import { createHash as createHash67, randomUUID as randomUUID14 } from "node:crypto";
|
|
226950
|
-
import { existsSync as existsSync112, lstatSync as lstatSync32, mkdirSync as mkdirSync43, readFileSync as readFileSync125, readdirSync as readdirSync46, realpathSync as realpathSync13, renameSync as renameSync16, rmSync as rmSync31, statSync as
|
|
227085
|
+
import { existsSync as existsSync112, lstatSync as lstatSync32, mkdirSync as mkdirSync43, readFileSync as readFileSync125, readdirSync as readdirSync46, realpathSync as realpathSync13, renameSync as renameSync16, rmSync as rmSync31, statSync as statSync31, writeFileSync as writeFileSync47 } from "node:fs";
|
|
226951
227086
|
import { join as join128, relative as relative24 } from "node:path";
|
|
226952
227087
|
function readGooglePlayFacts(dir) {
|
|
226953
227088
|
const path2 = join128(dir, GOOGLE_FACTS_FILE);
|
|
@@ -227031,7 +227166,7 @@ function newestAab(dir) {
|
|
|
227031
227166
|
} catch {
|
|
227032
227167
|
return false;
|
|
227033
227168
|
}
|
|
227034
|
-
}).sort((a3, b3) =>
|
|
227169
|
+
}).sort((a3, b3) => statSync31(b3).mtimeMs - statSync31(a3).mtimeMs);
|
|
227035
227170
|
return found[0];
|
|
227036
227171
|
} catch {
|
|
227037
227172
|
return void 0;
|
|
@@ -242491,7 +242626,7 @@ import * as __ascBuiltin049 from "node:fs";
|
|
|
242491
242626
|
import * as __ascBuiltin131 from "node:path";
|
|
242492
242627
|
function screenshotRefsFrom(dir) {
|
|
242493
242628
|
const out2 = {};
|
|
242494
|
-
const dirs = (d2) => readdirSync48(d2).filter((x2) =>
|
|
242629
|
+
const dirs = (d2) => readdirSync48(d2).filter((x2) => statSync32(join134(d2, x2)).isDirectory());
|
|
242495
242630
|
for (const locale of dirs(dir)) {
|
|
242496
242631
|
for (const type2 of dirs(join134(dir, locale))) {
|
|
242497
242632
|
const files = readdirSync48(join134(dir, locale, type2)).filter((f2) => /\.(png|jpe?g)$/i.test(f2)).sort();
|
|
@@ -242610,14 +242745,14 @@ function finish(bundleId, appId3, lines2, steps) {
|
|
|
242610
242745
|
const next = lines2.length && deferred ? `Apply this batch (one approval), then plan again: ${deferred} step(s) wait for it.${stuck.length ? ` Still open: ${stuck.join(", ")}.` : ""}` : lines2.length ? `Applying this batch (one approval) ${submits ? "submits the app for App Review" : "finishes what can be planned"}.${stuck.length ? ` Still open: ${stuck.join(", ")}.` : ""}` : stuck.length ? `Nothing to apply until ${stuck.join(", ")} ${stuck.length === 1 ? "is" : "are"} resolved.` : deferred ? "Nothing to apply yet: plan again once the deferred steps can be planned." : "Nothing to apply: every step is in place.";
|
|
242611
242746
|
return { bundleId, appId: appId3, lines: lines2, steps, complete: deferred === 0 && !stuck.length, next };
|
|
242612
242747
|
}
|
|
242613
|
-
var readFileSync129, readdirSync48,
|
|
242748
|
+
var readFileSync129, readdirSync48, statSync32, join134, STORE_STEPS, readJson11, storePrice;
|
|
242614
242749
|
var init_store_plan = __esm({
|
|
242615
242750
|
"../../node_modules/@wix/asc-jobs/dist/store-plan.js"() {
|
|
242616
242751
|
init_define_HHP_CATALOG();
|
|
242617
242752
|
init_dist3();
|
|
242618
242753
|
init_actions_release();
|
|
242619
242754
|
init_dist5();
|
|
242620
|
-
({ readFileSync: readFileSync129, readdirSync: readdirSync48, statSync:
|
|
242755
|
+
({ readFileSync: readFileSync129, readdirSync: readdirSync48, statSync: statSync32 } = __ascBuiltin049);
|
|
242621
242756
|
({ join: join134 } = __ascBuiltin131);
|
|
242622
242757
|
STORE_STEPS = ["appRecord", "bundleId", "category", "price", "privacy", "medicalDevice", "privacyPublish", "publish", "submit"];
|
|
242623
242758
|
readJson11 = (path2, fact) => {
|
|
@@ -244391,7 +244526,7 @@ function checkKeyDirectory(dir) {
|
|
|
244391
244526
|
const checkout = gitCheckoutOf(dir);
|
|
244392
244527
|
if (checkout)
|
|
244393
244528
|
throw new AscError("refused", `${dir} is inside the git checkout ${checkout}; a private key never goes into a repository \u2014 name a directory outside it (e.g. ~/.asc-node/keys)`);
|
|
244394
|
-
if (existsSync114(dir) && !
|
|
244529
|
+
if (existsSync114(dir) && !statSync33(dir).isDirectory())
|
|
244395
244530
|
throw new AscError("invalid", `${dir} is not a directory`);
|
|
244396
244531
|
return resolve84(dir);
|
|
244397
244532
|
}
|
|
@@ -244435,13 +244570,13 @@ function reserveKeyFile(dir, keyId) {
|
|
|
244435
244570
|
}
|
|
244436
244571
|
};
|
|
244437
244572
|
}
|
|
244438
|
-
var createPrivateKey6, closeSync9, existsSync114, mkdirSync45, openSync8, realpathSync14,
|
|
244573
|
+
var createPrivateKey6, closeSync9, existsSync114, mkdirSync45, openSync8, realpathSync14, statSync33, unlinkSync7, writeSync3, basename31, dirname66, isAbsolute17, join135, resolve84, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
|
|
244439
244574
|
var init_api_keys = __esm({
|
|
244440
244575
|
"../../node_modules/@wix/asc-web/dist/api-keys.js"() {
|
|
244441
244576
|
init_define_HHP_CATALOG();
|
|
244442
244577
|
init_dist3();
|
|
244443
244578
|
({ createPrivateKey: createPrivateKey6 } = __ascBuiltin051);
|
|
244444
|
-
({ closeSync: closeSync9, existsSync: existsSync114, mkdirSync: mkdirSync45, openSync: openSync8, realpathSync: realpathSync14, statSync:
|
|
244579
|
+
({ closeSync: closeSync9, existsSync: existsSync114, mkdirSync: mkdirSync45, openSync: openSync8, realpathSync: realpathSync14, statSync: statSync33, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
|
|
244445
244580
|
({ basename: basename31, dirname: dirname66, isAbsolute: isAbsolute17, join: join135, resolve: resolve84 } = __ascBuiltin217);
|
|
244446
244581
|
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"];
|
|
244447
244582
|
DOWNLOAD_ATTEMPTS = 3;
|
|
@@ -244525,13 +244660,13 @@ function scrubKeyText(text32, privateKey2) {
|
|
|
244525
244660
|
const lines2 = privateKey2.split(/\r?\n/).map((l3) => l3.trim()).filter((l3) => l3.length > 16 && !l3.startsWith("-----"));
|
|
244526
244661
|
return scrubSecrets(text32, [privateKey2, privateKey2.trim(), ...lines2]).replace(/-----BEGIN [A-Z ]*-----[\s\S]*?(-----END [A-Z ]*-----|$)/g, "[private key removed]");
|
|
244527
244662
|
}
|
|
244528
|
-
var
|
|
244663
|
+
var statSync34, join136, keys, destinations, savesKey, createApiKey, revokeApiKey, API_KEY_ACTIONS;
|
|
244529
244664
|
var init_api_key_actions = __esm({
|
|
244530
244665
|
"../../node_modules/@wix/asc-web/dist/api-key-actions.js"() {
|
|
244531
244666
|
init_define_HHP_CATALOG();
|
|
244532
244667
|
init_dist3();
|
|
244533
244668
|
init_api_keys();
|
|
244534
|
-
({ statSync:
|
|
244669
|
+
({ statSync: statSync34 } = __ascBuiltin052);
|
|
244535
244670
|
({ join: join136 } = __ascBuiltin134);
|
|
244536
244671
|
keys = (ctx) => {
|
|
244537
244672
|
if (!ctx.web)
|
|
@@ -244661,7 +244796,7 @@ var init_api_key_actions = __esm({
|
|
|
244661
244796
|
}
|
|
244662
244797
|
let mode = 0;
|
|
244663
244798
|
try {
|
|
244664
|
-
mode =
|
|
244799
|
+
mode = statSync34(join136(p2.outputDir, `AuthKey_${key4.keyId}.p8`)).mode & 511;
|
|
244665
244800
|
} catch {
|
|
244666
244801
|
return { ok: false, detail: `key ${key4.keyId} is active, but its private key file is missing` };
|
|
244667
244802
|
}
|
|
@@ -245131,7 +245266,7 @@ async function takeDownload(keys2, target, recovery, said) {
|
|
|
245131
245266
|
recovery.discard();
|
|
245132
245267
|
return file2.path;
|
|
245133
245268
|
}
|
|
245134
|
-
var randomUUID16, closeSync10, existsSync115, fsyncSync, mkdirSync46, openSync9, readdirSync49,
|
|
245269
|
+
var randomUUID16, closeSync10, existsSync115, fsyncSync, mkdirSync46, openSync9, readdirSync49, statSync35, unlinkSync8, writeSync4, join137, KEYS_PAGE, api, services, named3, revokeCommand, downloadCommand, createApnsKey, revokePortalKey, downloadPortalKey, PORTAL_KEY_ACTIONS;
|
|
245135
245270
|
var init_portal_key_actions = __esm({
|
|
245136
245271
|
"../../node_modules/@wix/asc-web/dist/portal-key-actions.js"() {
|
|
245137
245272
|
init_define_HHP_CATALOG();
|
|
@@ -245140,7 +245275,7 @@ var init_portal_key_actions = __esm({
|
|
|
245140
245275
|
init_session();
|
|
245141
245276
|
init_portal_keys();
|
|
245142
245277
|
({ randomUUID: randomUUID16 } = __ascBuiltin054);
|
|
245143
|
-
({ closeSync: closeSync10, existsSync: existsSync115, fsyncSync, mkdirSync: mkdirSync46, openSync: openSync9, readdirSync: readdirSync49, statSync:
|
|
245278
|
+
({ closeSync: closeSync10, existsSync: existsSync115, fsyncSync, mkdirSync: mkdirSync46, openSync: openSync9, readdirSync: readdirSync49, statSync: statSync35, unlinkSync: unlinkSync8, writeSync: writeSync4 } = __ascBuiltin135);
|
|
245144
245279
|
({ join: join137 } = __ascBuiltin218);
|
|
245145
245280
|
KEYS_PAGE = "https://developer.apple.com/account/resources/authkeys/list";
|
|
245146
245281
|
api = (ctx, developerTeam) => {
|
|
@@ -245238,7 +245373,7 @@ var init_portal_key_actions = __esm({
|
|
|
245238
245373
|
return { ok: false, detail: `key ${keyId} reads back as ${services(key4)}, not APNs` };
|
|
245239
245374
|
let mode = 0;
|
|
245240
245375
|
try {
|
|
245241
|
-
mode =
|
|
245376
|
+
mode = statSync35(join137(p2.outputDir, `AuthKey_${keyId}.p8`)).mode & 511;
|
|
245242
245377
|
} catch {
|
|
245243
245378
|
return { ok: false, detail: `key ${keyId} is an APNs key, but its private key file is missing` };
|
|
245244
245379
|
}
|
|
@@ -245329,7 +245464,7 @@ var init_portal_key_actions = __esm({
|
|
|
245329
245464
|
if (applied) {
|
|
245330
245465
|
let mode = 0;
|
|
245331
245466
|
try {
|
|
245332
|
-
mode =
|
|
245467
|
+
mode = statSync35(join137(p2.outputDir, `AuthKey_${p2.keyId}.p8`)).mode & 511;
|
|
245333
245468
|
} catch {
|
|
245334
245469
|
return { ok: false, detail: `key ${p2.keyId}'s private key file is missing` };
|
|
245335
245470
|
}
|
|
@@ -246538,7 +246673,7 @@ function preparePrivateDirectory(dir) {
|
|
|
246538
246673
|
return path2;
|
|
246539
246674
|
}
|
|
246540
246675
|
mkdirSync47(path2, { recursive: true, mode: 448 });
|
|
246541
|
-
if (
|
|
246676
|
+
if (statSync36(path2).mode & 63)
|
|
246542
246677
|
throw new AscError("refused", `${path2} is not private after creating it`);
|
|
246543
246678
|
return path2;
|
|
246544
246679
|
}
|
|
@@ -246594,13 +246729,13 @@ async function downloadThreadAttachments(client4, threadId, outDir) {
|
|
|
246594
246729
|
}
|
|
246595
246730
|
return result;
|
|
246596
246731
|
}
|
|
246597
|
-
var lstatSync33, mkdirSync47,
|
|
246732
|
+
var lstatSync33, mkdirSync47, statSync36, writeFileSync49, basename33, join138, resolve85, MAX_NAME_ATTEMPTS, refreshKey;
|
|
246598
246733
|
var init_review_attachments = __esm({
|
|
246599
246734
|
"../../node_modules/@wix/asc-web/dist/review-attachments.js"() {
|
|
246600
246735
|
init_define_HHP_CATALOG();
|
|
246601
246736
|
init_dist3();
|
|
246602
246737
|
init_api_keys();
|
|
246603
|
-
({ lstatSync: lstatSync33, mkdirSync: mkdirSync47, statSync:
|
|
246738
|
+
({ lstatSync: lstatSync33, mkdirSync: mkdirSync47, statSync: statSync36, writeFileSync: writeFileSync49 } = __ascBuiltin056);
|
|
246604
246739
|
({ basename: basename33, join: join138, resolve: resolve85 } = __ascBuiltin137);
|
|
246605
246740
|
MAX_NAME_ATTEMPTS = 1e4;
|
|
246606
246741
|
refreshKey = (a3) => [a3.sourceType, a3.id, a3.threadId, a3.messageId ?? "", a3.reviewRejectionId ?? ""].join("|");
|
|
@@ -246765,7 +246900,7 @@ function resolveMessagesDb(raw, home2 = homedir14()) {
|
|
|
246765
246900
|
const given = raw?.trim();
|
|
246766
246901
|
const path2 = !given ? join139(home2, "Library", "Messages", "chat.db") : resolvePath2(given === "~" || given.startsWith("~/") ? join139(home2, given.slice(1)) : given);
|
|
246767
246902
|
try {
|
|
246768
|
-
if (
|
|
246903
|
+
if (statSync37(path2).isDirectory())
|
|
246769
246904
|
throw new MessagesCodeError(`the Messages database path ${path2} is a directory; --db must point at chat.db`);
|
|
246770
246905
|
} catch (e2) {
|
|
246771
246906
|
if (e2 instanceof MessagesCodeError)
|
|
@@ -246815,14 +246950,14 @@ function parseDuration(text32) {
|
|
|
246815
246950
|
total += Number(n2) * unit[u2];
|
|
246816
246951
|
return total > 0 ? total : void 0;
|
|
246817
246952
|
}
|
|
246818
|
-
var execFile5, homedir14, join139, resolvePath2,
|
|
246953
|
+
var execFile5, homedir14, join139, resolvePath2, statSync37, pathToFileURL9, MESSAGES_DEFAULT_SINCE_MS, MESSAGES_MAX_SINCE_MS, MESSAGES_DEFAULT_TIMEOUT_MS, REQUEST_SKEW_MS, ROW_LIMIT, SECONDS_THRESHOLD, APPLE_EPOCH_MS, SYSTEM_SQLITE, MessagesCodeError, isPrivacyError, systemSqliteQuery;
|
|
246819
246954
|
var init_messages_code = __esm({
|
|
246820
246955
|
"../../node_modules/@wix/asc-web/dist/messages-code.js"() {
|
|
246821
246956
|
init_define_HHP_CATALOG();
|
|
246822
246957
|
({ execFile: execFile5 } = __ascBuiltin057);
|
|
246823
246958
|
({ homedir: homedir14 } = __ascBuiltin138);
|
|
246824
246959
|
({ join: join139, resolve: resolvePath2 } = __ascBuiltin219);
|
|
246825
|
-
({ statSync:
|
|
246960
|
+
({ statSync: statSync37 } = __ascBuiltin37);
|
|
246826
246961
|
({ pathToFileURL: pathToFileURL9 } = __ascBuiltin42);
|
|
246827
246962
|
MESSAGES_DEFAULT_SINCE_MS = 6e4;
|
|
246828
246963
|
MESSAGES_MAX_SINCE_MS = 10 * 6e4;
|
|
@@ -246945,7 +247080,7 @@ function readSessionBundle(path2) {
|
|
|
246945
247080
|
throw new SessionBundleError(`the session bundle is larger than ${MAX_SESSION_BUNDLE_BYTES} bytes`);
|
|
246946
247081
|
return readFileSync130(path2, "utf8");
|
|
246947
247082
|
}
|
|
246948
|
-
var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync34, mkdirSync48, openSync10, readFileSync130, renameSync17, rmSync32,
|
|
247083
|
+
var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync34, mkdirSync48, openSync10, readFileSync130, renameSync17, rmSync32, statSync38, writeSync5, createHash76, randomBytes16, dirname67, isAbsolute18, join140, resolve86, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
|
|
246949
247084
|
var init_session_transfer = __esm({
|
|
246950
247085
|
"../../node_modules/@wix/asc-web/dist/session-transfer.js"() {
|
|
246951
247086
|
init_define_HHP_CATALOG();
|
|
@@ -246953,7 +247088,7 @@ var init_session_transfer = __esm({
|
|
|
246953
247088
|
init_api_keys();
|
|
246954
247089
|
init_session_lock();
|
|
246955
247090
|
init_session();
|
|
246956
|
-
({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync34, mkdirSync: mkdirSync48, openSync: openSync10, readFileSync: readFileSync130, renameSync: renameSync17, rmSync: rmSync32, statSync:
|
|
247091
|
+
({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync34, mkdirSync: mkdirSync48, openSync: openSync10, readFileSync: readFileSync130, renameSync: renameSync17, rmSync: rmSync32, statSync: statSync38, writeSync: writeSync5 } = __ascBuiltin058);
|
|
246957
247092
|
({ createHash: createHash76, randomBytes: randomBytes16 } = __ascBuiltin139);
|
|
246958
247093
|
({ dirname: dirname67, isAbsolute: isAbsolute18, join: join140, resolve: resolve86 } = __ascBuiltin220);
|
|
246959
247094
|
SESSION_BUNDLE_KIND = "asc-node-web-session";
|
|
@@ -247019,7 +247154,7 @@ var init_session_transfer = __esm({
|
|
|
247019
247154
|
}
|
|
247020
247155
|
prepareDir() {
|
|
247021
247156
|
mkdirSync48(this.dir, { recursive: true, mode: 448 });
|
|
247022
|
-
if (!
|
|
247157
|
+
if (!statSync38(this.dir).isDirectory())
|
|
247023
247158
|
throw Object.assign(new Error("not a directory"), { code: "ENOTDIR" });
|
|
247024
247159
|
chmodSync4(this.dir, 448);
|
|
247025
247160
|
}
|
|
@@ -249275,8 +249410,8 @@ function localFiles(inv) {
|
|
|
249275
249410
|
}
|
|
249276
249411
|
function screenshotsFrom(dir) {
|
|
249277
249412
|
const out2 = {};
|
|
249278
|
-
for (const locale of readdirSync50(dir).filter((d2) =>
|
|
249279
|
-
for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) =>
|
|
249413
|
+
for (const locale of readdirSync50(dir).filter((d2) => statSync39(join142(dir, d2)).isDirectory())) {
|
|
249414
|
+
for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync39(join142(dir, locale, d2)).isDirectory())) {
|
|
249280
249415
|
const files = readdirSync50(join142(dir, locale, type2)).filter((f2) => /\.(png|jpe?g)$/i.test(f2)).sort();
|
|
249281
249416
|
if (files.length)
|
|
249282
249417
|
(out2[locale] ??= {})[type2] = files.map((f2) => ({ fileName: f2, ...fileRef(join142(dir, locale, type2, f2)) }));
|
|
@@ -249288,8 +249423,8 @@ function screenshotsFrom(dir) {
|
|
|
249288
249423
|
}
|
|
249289
249424
|
function previewsFrom(dir) {
|
|
249290
249425
|
const out2 = {};
|
|
249291
|
-
for (const locale of readdirSync50(dir).filter((d2) =>
|
|
249292
|
-
for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) =>
|
|
249426
|
+
for (const locale of readdirSync50(dir).filter((d2) => statSync39(join142(dir, d2)).isDirectory())) {
|
|
249427
|
+
for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync39(join142(dir, locale, d2)).isDirectory())) {
|
|
249293
249428
|
const files = readdirSync50(join142(dir, locale, type2)).filter((f2) => /\.(mov|m4v|mp4)$/i.test(f2)).sort();
|
|
249294
249429
|
if (files.length)
|
|
249295
249430
|
(out2[locale] ??= {})[type2] = files.map((f2) => ({ fileName: f2, ...fileRef(join142(dir, locale, type2, f2)) }));
|
|
@@ -249334,7 +249469,7 @@ function batchView(b3) {
|
|
|
249334
249469
|
const r3 = batchReport(b3);
|
|
249335
249470
|
return { batch: b3.id, status: b3.status, planHash: b3.planHash.slice(0, 16), approvals: b3.approvals.map((a3) => a3.approver), decision: b3.decision, summary: r3.summary, lines: r3.items.map((i2) => `${i2.status} ${i2.action} ${i2.key}${i2.error ? ` \u2014 ${i2.error.split("\n")[0]}` : ""}`) };
|
|
249336
249471
|
}
|
|
249337
|
-
var readdirSync50, readFileSync132,
|
|
249472
|
+
var readdirSync50, readFileSync132, statSync39, writeFileSync50, join142, sizeText2, VERSION_FLAGS, APP_INFO_FLAGS, stringFlags, REVIEW_DETAIL_OPTIONS, batchExit, RELEASE_COMMANDS;
|
|
249338
249473
|
var init_commands_release = __esm({
|
|
249339
249474
|
"../../node_modules/@wix/asc/dist/commands-release.js"() {
|
|
249340
249475
|
init_define_HHP_CATALOG();
|
|
@@ -249344,7 +249479,7 @@ var init_commands_release = __esm({
|
|
|
249344
249479
|
init_commands();
|
|
249345
249480
|
init_output2();
|
|
249346
249481
|
init_commands_record();
|
|
249347
|
-
({ readdirSync: readdirSync50, readFileSync: readFileSync132, statSync:
|
|
249482
|
+
({ readdirSync: readdirSync50, readFileSync: readFileSync132, statSync: statSync39, writeFileSync: writeFileSync50 } = __ascBuiltin064);
|
|
249348
249483
|
({ join: join142 } = __ascBuiltin141);
|
|
249349
249484
|
sizeText2 = ([w2, h2]) => `${w2}x${h2}`;
|
|
249350
249485
|
VERSION_FLAGS = { description: "description", keywords: "keywords", "whats-new": "whatsNew", "promotional-text": "promotionalText", "marketing-url": "marketingUrl", "support-url": "supportUrl" };
|
|
@@ -250822,9 +250957,9 @@ function draftBody(inv) {
|
|
|
250822
250957
|
}
|
|
250823
250958
|
let bytes2;
|
|
250824
250959
|
try {
|
|
250825
|
-
if (!
|
|
250960
|
+
if (!statSync40(file2).isFile())
|
|
250826
250961
|
throw new Error("not a regular file");
|
|
250827
|
-
if (
|
|
250962
|
+
if (statSync40(file2).size > BODY_LIMIT)
|
|
250828
250963
|
throw new UsageError(`--body-file is over the ${BODY_LIMIT}-byte limit`);
|
|
250829
250964
|
bytes2 = readFileSync134(file2);
|
|
250830
250965
|
} catch (e2) {
|
|
@@ -250842,7 +250977,7 @@ function draftBody(inv) {
|
|
|
250842
250977
|
throw new UsageError("--body-file must hold a message");
|
|
250843
250978
|
return body;
|
|
250844
250979
|
}
|
|
250845
|
-
var readFileSync134,
|
|
250980
|
+
var readFileSync134, statSync40, resolve90, appleIdOption2, appOptions, BODY_LIMIT, webJob, draftOptions, subscriptionColumns, WEB_REVIEW_COMMANDS;
|
|
250846
250981
|
var init_commands_web_review = __esm({
|
|
250847
250982
|
"../../node_modules/@wix/asc/dist/commands-web-review.js"() {
|
|
250848
250983
|
init_define_HHP_CATALOG();
|
|
@@ -250851,7 +250986,7 @@ var init_commands_web_review = __esm({
|
|
|
250851
250986
|
init_commands();
|
|
250852
250987
|
init_commands_web();
|
|
250853
250988
|
init_output2();
|
|
250854
|
-
({ readFileSync: readFileSync134, statSync:
|
|
250989
|
+
({ readFileSync: readFileSync134, statSync: statSync40 } = __ascBuiltin067);
|
|
250855
250990
|
({ resolve: resolve90 } = __ascBuiltin143);
|
|
250856
250991
|
appleIdOption2 = { "apple-id": { type: "string" } };
|
|
250857
250992
|
appOptions = { ...appleIdOption2, app: { type: "string" } };
|
|
@@ -256628,7 +256763,7 @@ function checkJobFile(path2, param, ctx, o2 = {}) {
|
|
|
256628
256763
|
} catch (e2) {
|
|
256629
256764
|
throw new AscError("invalid", `${param}: cannot read ${path2} (${e2.code ?? "unreadable"})`);
|
|
256630
256765
|
}
|
|
256631
|
-
const stat10 =
|
|
256766
|
+
const stat10 = statSync41(real);
|
|
256632
256767
|
if (o2.directory ? !stat10.isDirectory() : !stat10.isFile())
|
|
256633
256768
|
throw new AscError("invalid", `${param}: ${path2} is not a ${o2.directory ? "directory" : "regular file"}`);
|
|
256634
256769
|
let state;
|
|
@@ -256832,7 +256967,7 @@ ${o2.detail}` : ""}` };
|
|
|
256832
256967
|
function enabledTools(env, o2 = {}) {
|
|
256833
256968
|
return TOOLS.filter((t2) => !t2.write || env.ASC_MCP_WRITE === "1" || o2.approvals === true);
|
|
256834
256969
|
}
|
|
256835
|
-
var mkdirSync50, readFileSync138, realpathSync15,
|
|
256970
|
+
var mkdirSync50, readFileSync138, realpathSync15, statSync41, writeFileSync53, delimiter3, isAbsolute19, join145, relative25, resolve92, 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;
|
|
256836
256971
|
var init_tools2 = __esm({
|
|
256837
256972
|
"../../node_modules/@wix/asc-mcp/dist/tools.js"() {
|
|
256838
256973
|
init_define_HHP_CATALOG();
|
|
@@ -256842,7 +256977,7 @@ var init_tools2 = __esm({
|
|
|
256842
256977
|
init_dist6();
|
|
256843
256978
|
init_dist7();
|
|
256844
256979
|
init_action_catalog_generated();
|
|
256845
|
-
({ mkdirSync: mkdirSync50, readFileSync: readFileSync138, realpathSync: realpathSync15, statSync:
|
|
256980
|
+
({ mkdirSync: mkdirSync50, readFileSync: readFileSync138, realpathSync: realpathSync15, statSync: statSync41, writeFileSync: writeFileSync53 } = __ascBuiltin075);
|
|
256846
256981
|
({ delimiter: delimiter3, isAbsolute: isAbsolute19, join: join145, relative: relative25, resolve: resolve92, sep: sep29 } = __ascBuiltin148);
|
|
256847
256982
|
READ = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true };
|
|
256848
256983
|
PLAN = { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true };
|
|
@@ -259060,7 +259195,7 @@ __export(apple_keys_exports, {
|
|
|
259060
259195
|
runAppleKeys: () => runAppleKeys
|
|
259061
259196
|
});
|
|
259062
259197
|
import { createPublicKey as createPublicKey5 } from "node:crypto";
|
|
259063
|
-
import { readFileSync as readFileSync139, realpathSync as realpathSync16, statSync as
|
|
259198
|
+
import { readFileSync as readFileSync139, realpathSync as realpathSync16, statSync as statSync42 } from "node:fs";
|
|
259064
259199
|
function readKey2(flags, kind) {
|
|
259065
259200
|
const names2 = kind === "asc" ? ["asc-key-file", "asc-key-id", "asc-issuer-id"] : ["iap-key", "iap-key-id", "iap-issuer-id"];
|
|
259066
259201
|
if (names2.every((name) => flags[name] === void 0)) return void 0;
|
|
@@ -259069,7 +259204,7 @@ function readKey2(flags, kind) {
|
|
|
259069
259204
|
try {
|
|
259070
259205
|
const path2 = realpathSync16(file2);
|
|
259071
259206
|
assertCredentialOutsideRepo(names2[0], path2);
|
|
259072
|
-
if (
|
|
259207
|
+
if (statSync42(path2).size > 16384) throw new Error("oversized");
|
|
259073
259208
|
const key4 = { keyId, issuerId, key: readFileSync139(path2, "utf8") };
|
|
259074
259209
|
if (!isAppStoreConnectKey(key4)) throw new Error("invalid key");
|
|
259075
259210
|
return key4;
|
|
@@ -262267,7 +262402,7 @@ __export(browser_authoring_exports, {
|
|
|
262267
262402
|
});
|
|
262268
262403
|
import { createServer as createServer6 } from "node:http";
|
|
262269
262404
|
import { createHash as createHash82, randomBytes as randomBytes19 } from "node:crypto";
|
|
262270
|
-
import { existsSync as existsSync123, readdirSync as readdirSync53, readFileSync as readFileSync145, realpathSync as realpathSync18, statSync as
|
|
262405
|
+
import { existsSync as existsSync123, readdirSync as readdirSync53, readFileSync as readFileSync145, realpathSync as realpathSync18, statSync as statSync43 } from "node:fs";
|
|
262271
262406
|
import { join as join155, posix as posix3, relative as relative29, sep as sep31 } from "node:path";
|
|
262272
262407
|
function humanMs(ms2) {
|
|
262273
262408
|
return ms2 < 1e3 ? `${ms2}ms` : `${Math.round(ms2 / 1e3)}s`;
|
|
@@ -262283,7 +262418,7 @@ function collectWorkerSources(tier5SrcDir, bundleName) {
|
|
|
262283
262418
|
for (const name of readdirSync53(abs).sort()) {
|
|
262284
262419
|
const childAbs = join155(abs, name);
|
|
262285
262420
|
const childRel = posix3.join(rel2, name);
|
|
262286
|
-
if (
|
|
262421
|
+
if (statSync43(childAbs).isDirectory()) {
|
|
262287
262422
|
walk6(childAbs, childRel);
|
|
262288
262423
|
} else if (/\.(ts|tsx|js|mjs|json)$/.test(name)) {
|
|
262289
262424
|
files[childRel] = readFileSync145(childAbs, "utf8");
|
|
@@ -262317,7 +262452,7 @@ function collectRelativeSiblings(files, tier5SrcDir) {
|
|
|
262317
262452
|
join155(onDisk, "index.js")
|
|
262318
262453
|
];
|
|
262319
262454
|
for (const abs of candidates) {
|
|
262320
|
-
if (!existsSync123(abs) ||
|
|
262455
|
+
if (!existsSync123(abs) || statSync43(abs).isDirectory()) continue;
|
|
262321
262456
|
const key4 = `/tier5-src/${relative29(tier5SrcDir, abs).split(sep31).join(posix3.sep)}`;
|
|
262322
262457
|
if (key4 in files) break;
|
|
262323
262458
|
files[key4] = readFileSync145(abs, "utf8");
|
|
@@ -262574,7 +262709,7 @@ __export(shot_files_exports, {
|
|
|
262574
262709
|
writeScreenShot: () => writeScreenShot
|
|
262575
262710
|
});
|
|
262576
262711
|
import { createHash as createHash83 } from "node:crypto";
|
|
262577
|
-
import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync147, rmSync as rmSync35, statSync as
|
|
262712
|
+
import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync147, rmSync as rmSync35, statSync as statSync44 } from "node:fs";
|
|
262578
262713
|
import { basename as basename37, dirname as dirname71, join as join157, relative as relative30, resolve as resolve99, sep as sep32 } from "node:path";
|
|
262579
262714
|
function writeAtomic2(file2, bytes2) {
|
|
262580
262715
|
for (let attempt2 = 0; ; attempt2++) {
|
|
@@ -262682,7 +262817,7 @@ function listFiles4(root, keep) {
|
|
|
262682
262817
|
}
|
|
262683
262818
|
function mtimeOf(file2) {
|
|
262684
262819
|
try {
|
|
262685
|
-
return
|
|
262820
|
+
return statSync44(file2).mtimeMs;
|
|
262686
262821
|
} catch {
|
|
262687
262822
|
return null;
|
|
262688
262823
|
}
|
|
@@ -264084,7 +264219,7 @@ var PAGE_CLIENT_SOURCE;
|
|
|
264084
264219
|
var init_page_client_generated = __esm({
|
|
264085
264220
|
"../../core/sdk/webview-page/src/page-client.generated.ts"() {
|
|
264086
264221
|
init_define_HHP_CATALOG();
|
|
264087
|
-
PAGE_CLIENT_SOURCE = '(function () {\nvar __himalayaPageClientModule = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === "object" || typeof from === "function") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);\n\n // src/client.ts\n var client_exports = {};\n __export(client_exports, {\n createPageClient: () => createPageClient\n });\n var TIMEOUT_PREFIX = "Himalaya capability call timed out";\n function pageError(error) {\n const out = new Error(error?.message ?? "Himalaya capability call failed");\n if (error?.code) Object.assign(out, { code: error.code });\n return out;\n }\n function createPageClient(getBridge) {\n const pending = /* @__PURE__ */ new Map();\n const abandoned = /* @__PURE__ */ new Set();\n const streams = /* @__PURE__ */ new Map();\n const listeners = /* @__PURE__ */ new Map();\n let installedOn;\n let nextId = 1;\n const clientTag = Math.random().toString(36).slice(2, 10) || "0";\n function workerBridge() {\n const bridge = getBridge();\n if (!bridge || typeof bridge.post !== "function" || typeof bridge.onMessage !== "function") {\n throw new Error(\n "@himalaya/webview-page: this page is not inside a worker-backed Himalaya WebView."\n );\n }\n if (installedOn !== bridge) {\n bridge.onMessage(receive);\n installedOn = bridge;\n }\n return bridge;\n }\n function receive(message) {\n if (!message || typeof message !== "object" || message.v !== 1) return;\n const m = message;\n if (typeof m.id === "string" && typeof m.ok === "boolean") return respond(m);\n if (typeof m.ev === "string" && typeof m.ns === "string") return emit(m);\n if (typeof m.sid === "string") return feed(m);\n }\n function respond(message) {\n const call2 = pending.get(message.id);\n if (!call2) {\n if (abandoned.delete(message.id) && message.ok && message.stream === true) cancelStream(message.id);\n return;\n }\n pending.delete(message.id);\n clearTimeout(call2.timeout);\n if (!message.ok) return call2.reject(pageError(message.error));\n if (message.stream === true) return call2.resolve(openStream(message.id));\n call2.resolve(message.result);\n }\n function emit(event) {\n const handlers = listeners.get(event.ns)?.get(event.ev);\n if (!handlers) return;\n for (const handler of [...handlers]) {\n try {\n handler(event.data);\n } catch {\n }\n }\n }\n function feed(envelope) {\n const state = streams.get(envelope.sid);\n if (!state) return;\n if (!("chunk" in envelope) && !("end" in envelope && envelope.end === true) && !("error" in envelope && envelope.error)) return;\n if ("chunk" in envelope) {\n const waiter = state.waiters.shift();\n if (waiter) waiter.resolve({ value: envelope.chunk, done: false });\n else state.queue.push(envelope.chunk);\n return;\n }\n streams.delete(envelope.sid);\n if ("error" in envelope && envelope.error) {\n state.error = pageError(envelope.error);\n if (state.waiters.length > 0) {\n for (const waiter of state.waiters.splice(0)) waiter.reject(state.error);\n state.error = void 0;\n state.done = true;\n }\n } else if ("end" in envelope && envelope.end === true) {\n state.done = true;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n }\n }\n function cancelStream(sid) {\n try {\n installedOn?.post({ v: 1, sys: "cancel", sid });\n } catch {\n }\n }\n function openStream(sid) {\n const state = { queue: [], waiters: [], done: false, error: void 0 };\n streams.set(sid, state);\n const iterator = {\n next() {\n if (state.queue.length > 0) return Promise.resolve({ value: state.queue.shift(), done: false });\n if (state.error) {\n const error = state.error;\n state.error = void 0;\n state.done = true;\n return Promise.reject(error);\n }\n if (state.done) return Promise.resolve({ value: void 0, done: true });\n return new Promise((resolve, reject) => state.waiters.push({ resolve, reject }));\n },\n return() {\n if (streams.get(sid) === state) {\n streams.delete(sid);\n cancelStream(sid);\n }\n state.done = true;\n state.queue.length = 0;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n return Promise.resolve({ value: void 0, done: true });\n }\n };\n return { [Symbol.asyncIterator]: () => iterator };\n }\n function call(capability, method, args = [], timeoutMs = 3e4) {\n const bridge = workerBridge();\n const id = `page-${Date.now().toString(36)}-${clientTag}-${nextId++}`;\n const request = { v: 1, id, capability, method, args };\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n pending.delete(id);\n abandoned.add(id);\n if (abandoned.size > 256) abandoned.delete(abandoned.values().next().value);\n reject(new Error(`${TIMEOUT_PREFIX}: ${capability}.${method}`));\n }, timeoutMs);\n pending.set(id, { resolve, reject, timeout });\n if (!bridge.post(request)) {\n clearTimeout(timeout);\n pending.delete(id);\n reject(new Error("@himalaya/webview-page: the native page-to-worker bridge refused the request."));\n }\n });\n }\n function on(namespace2, event, handler) {\n workerBridge();\n if (typeof handler !== "function") throw new Error("@himalaya/webview-page: on() needs a handler function");\n let byEvent = listeners.get(namespace2);\n if (!byEvent) listeners.set(namespace2, byEvent = /* @__PURE__ */ new Map());\n let handlers = byEvent.get(event);\n if (!handlers) byEvent.set(event, handlers = /* @__PURE__ */ new Set());\n const entry = (data) => handler(data);\n handlers.add(entry);\n return () => {\n handlers.delete(entry);\n };\n }\n let manifest;\n function currentBridge() {\n try {\n return workerBridge();\n } catch {\n return void 0;\n }\n }\n function timedOut(error) {\n return error instanceof Error && error.message.startsWith(TIMEOUT_PREFIX);\n }\n let asking;\n function askShared(target, budget) {\n const until = Date.now() + budget;\n if (asking?.on === target) {\n asking.until = Math.max(asking.until, until);\n return asking.answer;\n }\n const state = { on: target, until, answer: Promise.resolve(null) };\n asking = state;\n state.answer = new Promise((resolve) => {\n let done = false;\n const finish = (list) => {\n if (done) return;\n done = true;\n clearInterval(again);\n if (asking === state) asking = void 0;\n if (list) manifest = { on: target, list };\n resolve(list);\n };\n const ask = () => {\n if (done) return;\n const left = state.until - Date.now();\n if (left <= 0 || currentBridge() !== target) return finish(null);\n call("himalaya", "capabilities", [], Math.max(1, Math.min(2e3, left))).then(\n (reply) => finish(reply?.capabilities ?? null),\n // A timed-out question is not an answer; the deadline decides. Anything else is final.\n (error) => {\n if (!timedOut(error)) finish(null);\n }\n );\n };\n const again = setInterval(ask, 500);\n ask();\n });\n return state.answer;\n }\n async function enabledCapabilities(timeoutMs = 3e3) {\n const bridge = currentBridge();\n if (!bridge) return null;\n if (manifest?.on === bridge) return manifest.list;\n if (!(timeoutMs > 0)) return null;\n const budget = Math.min(timeoutMs, 2147483647);\n const answer = askShared(bridge, budget);\n return new Promise((resolve) => {\n const stop = setTimeout(() => resolve(manifest?.on === bridge ? manifest.list : null), budget);\n void answer.then((list) => {\n clearTimeout(stop);\n resolve(list);\n });\n });\n }\n async function isEnabled(capability, method, timeoutMs = 3e3) {\n const enabled = await enabledCapabilities(timeoutMs);\n return enabled?.[capability]?.includes(method) ?? false;\n }\n async function probe(capability, method, args = [], timeoutMs = 3e3) {\n if (!currentBridge()) return false;\n try {\n const result = await call(capability, method, args, timeoutMs);\n const iterate = result?.[Symbol.asyncIterator];\n if (typeof iterate === "function") void iterate.call(result).return?.();\n return true;\n } catch (error) {\n if (error.code === "unknown_method") return false;\n return !(timedOut(error) || /refused the request/.test(error.message));\n }\n }\n const members = /* @__PURE__ */ new Map();\n function pageMember(capability, path) {\n const key = `${capability}:${path.join(".")}`;\n let member = members.get(key);\n if (member) return member;\n const label = `[himalaya.${[capability, ...path].join(".")}]`;\n member = new Proxy((() => {\n }), {\n get(_target, property) {\n if (typeof property !== "string" || property === "then") return void 0;\n if (property === "toString" || property === "valueOf") return () => label;\n if (path.length === 0 && property === "on") {\n return (event, handler) => on(capability, event, handler);\n }\n return pageMember(capability, [...path, property]);\n },\n apply(_target, _thisArg, args) {\n if (path.length === 0) throw new Error(`Himalaya capability namespace is not callable: ${capability}`);\n return call(capability, path.join("."), args);\n }\n });\n members.set(key, member);\n return member;\n }\n const namespace = (capability) => pageMember(capability, []);\n const SITE_FIELDS = ["title", "route", "cart", "member"];\n const site = Object.freeze({\n report(fields) {\n const bridge = currentBridge();\n if (!bridge || !fields || typeof fields !== "object") return false;\n const data = {};\n for (const name of SITE_FIELDS) {\n if (Object.prototype.hasOwnProperty.call(fields, name)) data[name] = fields[name];\n }\n if (Object.keys(data).length === 0) return false;\n try {\n return bridge.post({ v: 1, sys: "site", ev: "report", data }) === true;\n } catch {\n return false;\n }\n }\n });\n function merge(target) {\n const own = { call, on, enabledCapabilities, isEnabled, probe, site, version: 1 };\n for (const name of Object.keys(own)) {\n if (!Object.prototype.hasOwnProperty.call(target, name)) {\n Object.defineProperty(target, name, { value: own[name], enumerable: true, writable: false, configurable: false });\n }\n }\n Object.freeze(target);\n return new Proxy(target, {\n get(t, property, receiver) {\n if (typeof property !== "string" || property in t) return Reflect.get(t, property, receiver);\n if (property === "then") return void 0;\n return namespace(property);\n }\n });\n }\n return { call, on, enabledCapabilities, isEnabled, probe, namespace, site, merge };\n }\n return __toCommonJS(client_exports);\n})();\nreturn __himalayaPageClientModule.createPageClient;\n})()';
|
|
264222
|
+
PAGE_CLIENT_SOURCE = '(function () {\nvar __himalayaPageClientModule = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === "object" || typeof from === "function") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);\n\n // src/client.ts\n var client_exports = {};\n __export(client_exports, {\n createPageClient: () => createPageClient\n });\n var TIMEOUT_PREFIX = "Himalaya capability call timed out";\n function pageError(error) {\n const out = new Error(error?.message ?? "Himalaya capability call failed");\n if (error?.code) Object.assign(out, { code: error.code });\n return out;\n }\n function createPageClient(getBridge) {\n const pending = /* @__PURE__ */ new Map();\n const abandoned = /* @__PURE__ */ new Set();\n const streams = /* @__PURE__ */ new Map();\n const listeners = /* @__PURE__ */ new Map();\n let installedOn;\n let nextId = 1;\n const clientTag = Math.random().toString(36).slice(2, 10) || "0";\n function workerBridge() {\n const bridge = getBridge();\n if (!bridge || typeof bridge.post !== "function" || typeof bridge.onMessage !== "function") {\n throw new Error(\n "@himalaya/webview-page: this page is not inside a worker-backed Himalaya WebView."\n );\n }\n if (installedOn !== bridge) {\n bridge.onMessage(receive);\n installedOn = bridge;\n }\n return bridge;\n }\n function receive(message) {\n if (!message || typeof message !== "object" || message.v !== 1) return;\n const m = message;\n if (typeof m.id === "string" && typeof m.ok === "boolean") return respond(m);\n if (typeof m.ev === "string" && typeof m.ns === "string") return emit(m);\n if (typeof m.sid === "string") return feed(m);\n }\n function respond(message) {\n const call2 = pending.get(message.id);\n if (!call2) {\n if (abandoned.delete(message.id) && message.ok && message.stream === true) cancelStream(message.id);\n return;\n }\n pending.delete(message.id);\n clearTimeout(call2.timeout);\n if (!message.ok) return call2.reject(pageError(message.error));\n if (message.stream === true) return call2.resolve(openStream(message.id));\n call2.resolve(message.result);\n }\n function emit(event) {\n const handlers = listeners.get(event.ns)?.get(event.ev);\n if (!handlers) return;\n for (const handler of [...handlers]) {\n try {\n handler(event.data);\n } catch {\n }\n }\n }\n function feed(envelope) {\n const state = streams.get(envelope.sid);\n if (!state) return;\n if (!("chunk" in envelope) && !("end" in envelope && envelope.end === true) && !("error" in envelope && envelope.error)) return;\n if ("chunk" in envelope) {\n const waiter = state.waiters.shift();\n if (waiter) waiter.resolve({ value: envelope.chunk, done: false });\n else state.queue.push(envelope.chunk);\n return;\n }\n streams.delete(envelope.sid);\n if ("error" in envelope && envelope.error) {\n state.error = pageError(envelope.error);\n if (state.waiters.length > 0) {\n for (const waiter of state.waiters.splice(0)) waiter.reject(state.error);\n state.error = void 0;\n state.done = true;\n }\n } else if ("end" in envelope && envelope.end === true) {\n state.done = true;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n }\n }\n function cancelStream(sid) {\n try {\n installedOn?.post({ v: 1, sys: "cancel", sid });\n } catch {\n }\n }\n function openStream(sid) {\n const state = { queue: [], waiters: [], done: false, error: void 0 };\n streams.set(sid, state);\n const iterator = {\n next() {\n if (state.queue.length > 0) return Promise.resolve({ value: state.queue.shift(), done: false });\n if (state.error) {\n const error = state.error;\n state.error = void 0;\n state.done = true;\n return Promise.reject(error);\n }\n if (state.done) return Promise.resolve({ value: void 0, done: true });\n return new Promise((resolve, reject) => state.waiters.push({ resolve, reject }));\n },\n return() {\n if (streams.get(sid) === state) {\n streams.delete(sid);\n cancelStream(sid);\n }\n state.done = true;\n state.queue.length = 0;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n return Promise.resolve({ value: void 0, done: true });\n }\n };\n return { [Symbol.asyncIterator]: () => iterator };\n }\n function call(capability, method, args = [], timeoutMs = 3e4) {\n const bridge = workerBridge();\n const id = `page-${Date.now().toString(36)}-${clientTag}-${nextId++}`;\n const request = { v: 1, id, capability, method, args };\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n pending.delete(id);\n abandoned.add(id);\n if (abandoned.size > 256) abandoned.delete(abandoned.values().next().value);\n reject(new Error(`${TIMEOUT_PREFIX}: ${capability}.${method}`));\n }, timeoutMs);\n pending.set(id, { resolve, reject, timeout });\n if (!bridge.post(request)) {\n clearTimeout(timeout);\n pending.delete(id);\n reject(new Error("@himalaya/webview-page: the native page-to-worker bridge refused the request."));\n }\n });\n }\n function on(namespace2, event, handler) {\n workerBridge();\n if (typeof handler !== "function") throw new Error("@himalaya/webview-page: on() needs a handler function");\n let byEvent = listeners.get(namespace2);\n if (!byEvent) listeners.set(namespace2, byEvent = /* @__PURE__ */ new Map());\n let handlers = byEvent.get(event);\n if (!handlers) byEvent.set(event, handlers = /* @__PURE__ */ new Set());\n const entry = (data) => handler(data);\n handlers.add(entry);\n return () => {\n handlers.delete(entry);\n };\n }\n const MANIFEST_TTL_MS = 1e3;\n let manifest;\n const fresh = (bridge) => manifest?.on === bridge && Date.now() - manifest.at < MANIFEST_TTL_MS;\n function currentBridge() {\n try {\n return workerBridge();\n } catch {\n return void 0;\n }\n }\n function timedOut(error) {\n return error instanceof Error && error.message.startsWith(TIMEOUT_PREFIX);\n }\n let asking;\n function askShared(target, budget) {\n const until = Date.now() + budget;\n if (asking?.on === target) {\n asking.until = Math.max(asking.until, until);\n return asking.answer;\n }\n const state = { on: target, until, answer: Promise.resolve(null) };\n asking = state;\n state.answer = new Promise((resolve) => {\n let done = false;\n const finish = (list) => {\n if (done) return;\n done = true;\n clearInterval(again);\n if (asking === state) asking = void 0;\n if (list) manifest = { on: target, list, at: Date.now() };\n resolve(list);\n };\n const ask = () => {\n if (done) return;\n const left = state.until - Date.now();\n if (left <= 0 || currentBridge() !== target) return finish(null);\n call("himalaya", "capabilities", [], Math.max(1, Math.min(2e3, left))).then(\n (reply) => finish(reply?.capabilities ?? null),\n // A timed-out question is not an answer; the deadline decides. Anything else is final.\n (error) => {\n if (!timedOut(error)) finish(null);\n }\n );\n };\n const again = setInterval(ask, 500);\n ask();\n });\n return state.answer;\n }\n async function enabledCapabilities(timeoutMs = 3e3) {\n const bridge = currentBridge();\n if (!bridge) return null;\n if (fresh(bridge)) return manifest.list;\n if (!(timeoutMs > 0)) return manifest?.on === bridge ? manifest.list : null;\n const budget = Math.min(timeoutMs, 2147483647);\n const answer = askShared(bridge, budget);\n return new Promise((resolve) => {\n const stop = setTimeout(() => resolve(manifest?.on === bridge ? manifest.list : null), budget);\n void answer.then((list) => {\n clearTimeout(stop);\n resolve(list ?? (manifest?.on === bridge ? manifest.list : null));\n });\n });\n }\n async function isEnabled(capability, method, timeoutMs = 3e3) {\n const enabled = await enabledCapabilities(timeoutMs);\n return enabled?.[capability]?.includes(method) ?? false;\n }\n async function probe(capability, method, args = [], timeoutMs = 3e3) {\n if (!currentBridge()) return false;\n try {\n const result = await call(capability, method, args, timeoutMs);\n const iterate = result?.[Symbol.asyncIterator];\n if (typeof iterate === "function") void iterate.call(result).return?.();\n return true;\n } catch (error) {\n if (error.code === "unknown_method") return false;\n return !(timedOut(error) || /refused the request/.test(error.message));\n }\n }\n const members = /* @__PURE__ */ new Map();\n function pageMember(capability, path) {\n const key = `${capability}:${path.join(".")}`;\n let member = members.get(key);\n if (member) return member;\n const label = `[himalaya.${[capability, ...path].join(".")}]`;\n member = new Proxy((() => {\n }), {\n get(_target, property) {\n if (typeof property !== "string" || property === "then") return void 0;\n if (property === "toString" || property === "valueOf") return () => label;\n if (path.length === 0 && property === "on") {\n return (event, handler) => on(capability, event, handler);\n }\n return pageMember(capability, [...path, property]);\n },\n apply(_target, _thisArg, args) {\n if (path.length === 0) throw new Error(`Himalaya capability namespace is not callable: ${capability}`);\n return call(capability, path.join("."), args);\n }\n });\n members.set(key, member);\n return member;\n }\n const namespace = (capability) => pageMember(capability, []);\n const SITE_FIELDS = ["title", "route", "cart", "member"];\n const site = Object.freeze({\n report(fields) {\n const bridge = currentBridge();\n if (!bridge || !fields || typeof fields !== "object") return false;\n const data = {};\n for (const name of SITE_FIELDS) {\n if (Object.prototype.hasOwnProperty.call(fields, name)) data[name] = fields[name];\n }\n if (Object.keys(data).length === 0) return false;\n try {\n return bridge.post({ v: 1, sys: "site", ev: "report", data }) === true;\n } catch {\n return false;\n }\n }\n });\n function merge(target) {\n const own = { call, on, enabledCapabilities, isEnabled, probe, site, version: 1 };\n for (const name of Object.keys(own)) {\n if (!Object.prototype.hasOwnProperty.call(target, name)) {\n Object.defineProperty(target, name, { value: own[name], enumerable: true, writable: false, configurable: false });\n }\n }\n Object.freeze(target);\n return new Proxy(target, {\n get(t, property, receiver) {\n if (typeof property !== "string" || property in t) return Reflect.get(t, property, receiver);\n if (property === "then") return void 0;\n return namespace(property);\n }\n });\n }\n return { call, on, enabledCapabilities, isEnabled, probe, namespace, site, merge };\n }\n return __toCommonJS(client_exports);\n})();\nreturn __himalayaPageClientModule.createPageClient;\n})()';
|
|
264088
264223
|
}
|
|
264089
264224
|
});
|
|
264090
264225
|
|
|
@@ -264843,7 +264978,7 @@ __export(render_cache_exports, {
|
|
|
264843
264978
|
});
|
|
264844
264979
|
import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
|
|
264845
264980
|
import { createHash as createHash85, randomBytes as randomBytes20 } from "node:crypto";
|
|
264846
|
-
import { existsSync as existsSync133, lstatSync as lstatSync36, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, readlinkSync as readlinkSync3, realpathSync as realpathSync19, renameSync as renameSync20, rmSync as rmSync37, statSync as
|
|
264981
|
+
import { existsSync as existsSync133, lstatSync as lstatSync36, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, readlinkSync as readlinkSync3, realpathSync as realpathSync19, renameSync as renameSync20, rmSync as rmSync37, statSync as statSync45, writeFileSync as writeFileSync61 } from "node:fs";
|
|
264847
264982
|
import { join as join166, resolve as resolve102 } from "node:path";
|
|
264848
264983
|
import { fileURLToPath as fileURLToPath35 } from "node:url";
|
|
264849
264984
|
function renderCacheKey(contentDir2, inputs) {
|
|
@@ -264873,7 +265008,7 @@ function renderCacheKey(contentDir2, inputs) {
|
|
|
264873
265008
|
}
|
|
264874
265009
|
function statOrNull(path2) {
|
|
264875
265010
|
try {
|
|
264876
|
-
return
|
|
265011
|
+
return statSync45(path2);
|
|
264877
265012
|
} catch {
|
|
264878
265013
|
return null;
|
|
264879
265014
|
}
|
|
@@ -264947,7 +265082,7 @@ function cliFingerprint(version5, monorepo) {
|
|
|
264947
265082
|
let entry = "";
|
|
264948
265083
|
try {
|
|
264949
265084
|
const file2 = fileURLToPath35(import.meta.url);
|
|
264950
|
-
const st2 =
|
|
265085
|
+
const st2 = statSync45(file2);
|
|
264951
265086
|
entry = `${file2}:${st2.size}:${st2.mtimeMs}`;
|
|
264952
265087
|
} catch {
|
|
264953
265088
|
}
|
|
@@ -264981,7 +265116,7 @@ function keepBuild(contentDir2, key4, buildDir, build3) {
|
|
|
264981
265116
|
else renameSync20(buildDir, dest);
|
|
264982
265117
|
for (const name of readdirSync56(root)) {
|
|
264983
265118
|
const path2 = join166(root, name);
|
|
264984
|
-
if (name.startsWith(".build-") ? Date.now() -
|
|
265119
|
+
if (name.startsWith(".build-") ? Date.now() - statSync45(path2).mtimeMs > 36e5 : name !== key4) {
|
|
264985
265120
|
rmSync37(path2, { recursive: true, force: true });
|
|
264986
265121
|
}
|
|
264987
265122
|
}
|
|
@@ -266402,7 +266537,7 @@ var init_icons2 = __esm({
|
|
|
266402
266537
|
});
|
|
266403
266538
|
|
|
266404
266539
|
// src/commands/pull.ts
|
|
266405
|
-
import { existsSync as existsSync136, readdirSync as readdirSync58, statSync as
|
|
266540
|
+
import { existsSync as existsSync136, readdirSync as readdirSync58, statSync as statSync46 } from "node:fs";
|
|
266406
266541
|
import { join as join170, resolve as resolve104 } from "node:path";
|
|
266407
266542
|
async function pullCommand(ctx) {
|
|
266408
266543
|
const { io: io2, pos, flags, print, client: client4 } = ctx;
|
|
@@ -266426,7 +266561,7 @@ async function pullCommand(ctx) {
|
|
|
266426
266561
|
return 1;
|
|
266427
266562
|
}
|
|
266428
266563
|
if (existsSync136(dest)) {
|
|
266429
|
-
if (!
|
|
266564
|
+
if (!statSync46(dest).isDirectory()) {
|
|
266430
266565
|
io2.error(JSON.stringify({
|
|
266431
266566
|
error: `${dest} exists and is not a directory`,
|
|
266432
266567
|
hint: "pass --out/--name to land somewhere else, or remove the file"
|
|
@@ -267974,7 +268109,7 @@ __export(login_refresh_exports, {
|
|
|
267974
268109
|
isStoredLogin: () => isStoredLogin,
|
|
267975
268110
|
refreshStoredLogin: () => refreshStoredLogin
|
|
267976
268111
|
});
|
|
267977
|
-
import { closeSync as closeSync13, openSync as openSync12, statSync as
|
|
268112
|
+
import { closeSync as closeSync13, openSync as openSync12, statSync as statSync47, unlinkSync as unlinkSync10 } from "node:fs";
|
|
267978
268113
|
function federatedTokenNeedsRefresh(token, nowSec) {
|
|
267979
268114
|
if (!token) return false;
|
|
267980
268115
|
const c2 = decodeControlTokenClaims(token);
|
|
@@ -267996,7 +268131,7 @@ async function withLock2(path2, deps, fn2, onTimeout) {
|
|
|
267996
268131
|
break;
|
|
267997
268132
|
} catch {
|
|
267998
268133
|
try {
|
|
267999
|
-
if (Date.now() -
|
|
268134
|
+
if (Date.now() - statSync47(lock).mtimeMs > LOCK_STALE_MS) {
|
|
268000
268135
|
unlinkSync10(lock);
|
|
268001
268136
|
continue;
|
|
268002
268137
|
}
|
|
@@ -269296,13 +269431,13 @@ var init_pack3 = __esm({
|
|
|
269296
269431
|
});
|
|
269297
269432
|
|
|
269298
269433
|
// src/commands/import.ts
|
|
269299
|
-
import { existsSync as existsSync139, readdirSync as readdirSync59, statSync as
|
|
269434
|
+
import { existsSync as existsSync139, readdirSync as readdirSync59, statSync as statSync48 } from "node:fs";
|
|
269300
269435
|
import { resolve as resolve107 } from "node:path";
|
|
269301
269436
|
function restoreDestinationIssue(dest, force) {
|
|
269302
269437
|
const link4 = symlinkDestinationIssue(dest);
|
|
269303
269438
|
if (link4) return link4;
|
|
269304
269439
|
if (!existsSync139(dest)) return null;
|
|
269305
|
-
if (!
|
|
269440
|
+
if (!statSync48(dest).isDirectory()) {
|
|
269306
269441
|
return { error: `${dest} exists and is not a directory`, hint: "pass --out/--name to land somewhere else, or remove the file" };
|
|
269307
269442
|
}
|
|
269308
269443
|
if (readdirSync59(dest).length > 0 && !force) {
|
|
@@ -272675,7 +272810,7 @@ var init_wix_client_id = __esm({
|
|
|
272675
272810
|
});
|
|
272676
272811
|
|
|
272677
272812
|
// src/run-godot-web.ts
|
|
272678
|
-
import { existsSync as existsSync141, readFileSync as readFileSync163, statSync as
|
|
272813
|
+
import { existsSync as existsSync141, readFileSync as readFileSync163, statSync as statSync49 } from "node:fs";
|
|
272679
272814
|
import { dirname as dirname76, join as join175, resolve as resolve109 } from "node:path";
|
|
272680
272815
|
import { fileURLToPath as fileURLToPath38 } from "node:url";
|
|
272681
272816
|
function localGodotWebDir(env = process.env) {
|
|
@@ -272713,7 +272848,7 @@ function makeGodotWebRoute(opts = {}) {
|
|
|
272713
272848
|
const name = url.pathname.slice(LOCAL2.length);
|
|
272714
272849
|
if (!/^[A-Za-z0-9._-]+$/.test(name) || name.startsWith(".")) return new Response("bad name", { status: 400 });
|
|
272715
272850
|
const file2 = join175(localDir, name);
|
|
272716
|
-
if (!existsSync141(file2) || !
|
|
272851
|
+
if (!existsSync141(file2) || !statSync49(file2).isFile()) return new Response("not found", { status: 404 });
|
|
272717
272852
|
const ext = name.slice(name.lastIndexOf(".") + 1);
|
|
272718
272853
|
const body = request2.method === "HEAD" ? null : readFileSync163(file2);
|
|
272719
272854
|
return new Response(body, {
|
|
@@ -272754,53 +272889,53 @@ var init_preview_assets_generated = __esm({
|
|
|
272754
272889
|
init_define_HHP_CATALOG();
|
|
272755
272890
|
init_preview_assets_format();
|
|
272756
272891
|
PREVIEW_ASSET_MANIFEST = [
|
|
272757
|
-
{ key: "assets/DashboardHost-
|
|
272758
|
-
{ key: "assets/DevDrawer-
|
|
272759
|
-
{ key: "assets/IdiomCompare-
|
|
272760
|
-
{ key: "assets/LightboxViewer-
|
|
272761
|
-
{ key: "assets/OfflineReadingBar-
|
|
272762
|
-
{ key: "assets/PhonePreviewControl-
|
|
272763
|
-
{ key: "assets/SchemeCompare-
|
|
272764
|
-
{ key: "assets/TopBarSearchStates-
|
|
272765
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
272892
|
+
{ key: "assets/DashboardHost-CKszTEHj.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "004968529b396e36b88229206fc24597bac06935b2a0ce1f1f7f7b964a2399f7" },
|
|
272893
|
+
{ key: "assets/DevDrawer-C-AMZcB3.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "ef57c3722ba32ab72bc64664b8262c070c5bd4f071aaed71ad66b79fd7635077" },
|
|
272894
|
+
{ key: "assets/IdiomCompare-B_iNkj-p.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "7c8ab479b179933f8b1b43ecf681fbaeb8748a564429f143ebebf688ff69433f" },
|
|
272895
|
+
{ key: "assets/LightboxViewer-DFv1W4O7.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15965, sha256: "95a93660140d331a3fcc9499b675234853609926c56bc3fb2f7f961ccde455ea" },
|
|
272896
|
+
{ key: "assets/OfflineReadingBar-rfGABkrs.js", contentType: "application/javascript; charset=utf-8", offset: 37667, length: 1761, sha256: "2feae7a1bb65f583bee3cde03de32fb52cb381ae5358dbca228610ee95e13638" },
|
|
272897
|
+
{ key: "assets/PhonePreviewControl-evgXoneT.js", contentType: "application/javascript; charset=utf-8", offset: 39428, length: 37851, sha256: "5c1b14777fa64a7ebb748013f482fdf8b7f2d75ec876b0c9b72c2601df1270e3" },
|
|
272898
|
+
{ key: "assets/SchemeCompare-QZeSxvVJ.js", contentType: "application/javascript; charset=utf-8", offset: 77279, length: 1858, sha256: "cab2879699e31a24fefcb56f008804ba86abb6804aa0af1e7b1f8ea4ce2e6a4e" },
|
|
272899
|
+
{ key: "assets/TopBarSearchStates-Dqe3WwHd.js", contentType: "application/javascript; charset=utf-8", offset: 79137, length: 4068, sha256: "21854a304c54f06b5903693e69874fc50c5389f0257441498335d212661432e7" },
|
|
272900
|
+
{ key: "assets/WixFrogTelemetrySink-Dm5A9nFe.js", contentType: "application/javascript; charset=utf-8", offset: 83205, length: 3515, sha256: "db2fd40066fd2aa9ce72671898e866262cd9adbc7910237e43ba6b5bc6b57f5a" },
|
|
272766
272901
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86720, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
272767
272902
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88912, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
272768
|
-
{ key: "assets/catalogFontFaces-
|
|
272903
|
+
{ key: "assets/catalogFontFaces-dljLgB5p.js", contentType: "application/javascript; charset=utf-8", offset: 124538, length: 1111, sha256: "0ce6783e7279067725b9cdc98f3c442a8c650e85e924aa1db3f620deba74ca0f" },
|
|
272769
272904
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125649, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
272770
|
-
{ key: "assets/files-transfer-
|
|
272905
|
+
{ key: "assets/files-transfer-8ebG-qYT.js", contentType: "application/javascript; charset=utf-8", offset: 128216, length: 6446, sha256: "889eb515e51057c8dd5ba4cfe2580819376552e2bb45827bc03722a641629aed" },
|
|
272771
272906
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 134662, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
272772
|
-
{ key: "assets/frogApiRules-
|
|
272907
|
+
{ key: "assets/frogApiRules-BtRnV_Vk.js", contentType: "application/javascript; charset=utf-8", offset: 135834, length: 2207, sha256: "5aa9f314e2cfe44b2dc0090008d99c45329540645473766c37ecf6fa59d36267" },
|
|
272773
272908
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 138041, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
272774
272909
|
{ key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 139108, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
|
|
272775
272910
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 145908, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
272776
|
-
{ key: "assets/index-
|
|
272777
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
272778
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
272779
|
-
{ key: "assets/pdf-
|
|
272780
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
272781
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
272782
|
-
{ key: "assets/pdfDocument-
|
|
272783
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
272784
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
272785
|
-
{ key: "assets/webviewBridgeHost-
|
|
272786
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
272787
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
272788
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
272789
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
272790
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
272791
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
272792
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
272793
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
272794
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
272795
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
272796
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
272797
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
272798
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
272799
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
272800
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
272801
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
272802
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
272803
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
272911
|
+
{ key: "assets/index-DJkXmetH.js", contentType: "application/javascript; charset=utf-8", offset: 148612, length: 1731606, sha256: "9b6080919ad5c0bdef29801e0df305527409667afcff3b05201c85594952404d" },
|
|
272912
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1880218, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
272913
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1887969, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
272914
|
+
{ key: "assets/pdf-IpAn7-Aa.js", contentType: "application/javascript; charset=utf-8", offset: 1898500, length: 488215, sha256: "a5d585737ec0f4d39abdf4a8e7c45350a720c45c62afbba5ae54265cd4d8ec70" },
|
|
272915
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2386715, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
272916
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2386805, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
272917
|
+
{ key: "assets/pdfDocument-BaqtJl5g.js", contentType: "application/javascript; charset=utf-8", offset: 3703839, length: 3836, sha256: "bae3554254e7282256b7611145687773550c4af2e6ac56bb1b30dd42ead7ea3c" },
|
|
272918
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3707675, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
272919
|
+
{ key: "assets/scrollLinkedRuntime-Dz-MZRBS.js", contentType: "application/javascript; charset=utf-8", offset: 3709941, length: 2278, sha256: "b333ce5a5b379cbd4d0014aef82d2e4291b8afd53f2c6cdb487f579082c7fdfd" },
|
|
272920
|
+
{ key: "assets/webviewBridgeHost-DrtJt-uo.js", contentType: "application/javascript; charset=utf-8", offset: 3712219, length: 9890, sha256: "3ef72e8c991999b550e696be34f1a4c0e2354c6dbff4b214b695c08487b73c5c" },
|
|
272921
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3722109, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
272922
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3726719, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
272923
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4215303, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
272924
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4306227, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
272925
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4397211, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
272926
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4488191, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
272927
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4579063, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
272928
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4670043, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
272929
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4778679, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
272930
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4887763, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
272931
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4996811, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
272932
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5104511, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
272933
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5192619, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
272934
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5199437, length: 4924, sha256: "e6717291b534010ed0e9750d2da00f718b454c7b51d54628cdeac8d730fccb9c" },
|
|
272935
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5204361, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
|
|
272936
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5219946, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
272937
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5221117, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
272938
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5245420, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
272804
272939
|
];
|
|
272805
272940
|
}
|
|
272806
272941
|
});
|
|
@@ -272820,7 +272955,7 @@ __export(run_exports, {
|
|
|
272820
272955
|
runPackage: () => runPackage,
|
|
272821
272956
|
withoutProdServe: () => withoutProdServe
|
|
272822
272957
|
});
|
|
272823
|
-
import { cpSync as cpSync2, existsSync as existsSync142, lstatSync as lstatSync38, mkdirSync as mkdirSync61, mkdtempSync as mkdtempSync12, readdirSync as readdirSync61, readFileSync as readFileSync164, rmSync as rmSync41, statSync as
|
|
272958
|
+
import { cpSync as cpSync2, existsSync as existsSync142, lstatSync as lstatSync38, mkdirSync as mkdirSync61, mkdtempSync as mkdtempSync12, readdirSync as readdirSync61, readFileSync as readFileSync164, rmSync as rmSync41, statSync as statSync50 } from "node:fs";
|
|
272824
272959
|
import { networkInterfaces as osNetworkInterfaces, tmpdir as tmpdir13 } from "node:os";
|
|
272825
272960
|
import { dirname as dirname77, join as join176 } from "node:path";
|
|
272826
272961
|
import { fileURLToPath as fileURLToPath39 } from "node:url";
|
|
@@ -272866,7 +273001,7 @@ async function fetchBytes(url) {
|
|
|
272866
273001
|
}
|
|
272867
273002
|
async function resolvePackage(source2, workDir) {
|
|
272868
273003
|
const isUrl2 = /^https?:\/\//i.test(source2);
|
|
272869
|
-
if (!isUrl2 && existsSync142(source2) &&
|
|
273004
|
+
if (!isUrl2 && existsSync142(source2) && statSync50(source2).isDirectory()) {
|
|
272870
273005
|
const appDirManifest = join176(source2, "release-manifest.json");
|
|
272871
273006
|
if (existsSync142(appDirManifest)) {
|
|
272872
273007
|
const link4 = firstSymlink(source2);
|
|
@@ -282800,7 +282935,7 @@ __export(preflight_app_exports, {
|
|
|
282800
282935
|
profileAccount: () => profileAccount,
|
|
282801
282936
|
readXcconfigVars: () => readXcconfigVars
|
|
282802
282937
|
});
|
|
282803
|
-
import { readFileSync as readFileSync177, existsSync as existsSync151, readdirSync as readdirSync63, statSync as
|
|
282938
|
+
import { readFileSync as readFileSync177, existsSync as existsSync151, readdirSync as readdirSync63, statSync as statSync51 } from "node:fs";
|
|
282804
282939
|
import { createHash as createHash94 } from "node:crypto";
|
|
282805
282940
|
import { dirname as dirname81, join as join189 } from "node:path";
|
|
282806
282941
|
function analyze(projectYml, storeConfig, icon, account2, adopted) {
|
|
@@ -283136,7 +283271,7 @@ function playListingAssets(app2, locale = "en-US") {
|
|
|
283136
283271
|
for (const name of names2) {
|
|
283137
283272
|
const p2 = join189(dir, name);
|
|
283138
283273
|
try {
|
|
283139
|
-
if (
|
|
283274
|
+
if (statSync51(p2).isFile()) return { name, bytes: readFileSync177(p2) };
|
|
283140
283275
|
} catch {
|
|
283141
283276
|
}
|
|
283142
283277
|
}
|
|
@@ -283184,7 +283319,7 @@ function listScreenshots(app2, locale = "en-US") {
|
|
|
283184
283319
|
if (existsSync151(legacy)) {
|
|
283185
283320
|
for (const deviceDir of readdirSync63(legacy)) {
|
|
283186
283321
|
const d2 = join189(legacy, deviceDir);
|
|
283187
|
-
if (!
|
|
283322
|
+
if (!statSync51(d2).isDirectory()) continue;
|
|
283188
283323
|
for (const png of readdirSync63(d2).filter((n2) => n2.endsWith(".png"))) {
|
|
283189
283324
|
const sz = pngSize3(readFileSync177(join189(d2, png)));
|
|
283190
283325
|
if (sz) out2.push({ name: `${deviceDir}/${png}`, w: sz.w, h: sz.h });
|
|
@@ -283199,7 +283334,7 @@ function placeholderHashes2() {
|
|
|
283199
283334
|
for (const target of readdirSync63(templateIos)) {
|
|
283200
283335
|
const p2 = join189(templateIos, target, "Assets.xcassets", "AppIcon.appiconset", "icon_1024.png");
|
|
283201
283336
|
try {
|
|
283202
|
-
if (!
|
|
283337
|
+
if (!statSync51(p2).isFile()) continue;
|
|
283203
283338
|
return [LEGACY_PLACEHOLDER_SHA2562, createHash94("sha256").update(readFileSync177(p2)).digest("hex")];
|
|
283204
283339
|
} catch {
|
|
283205
283340
|
}
|
|
@@ -283235,7 +283370,7 @@ async function appIconState(iosDir) {
|
|
|
283235
283370
|
for (const target of readdirSync63(iosDir)) {
|
|
283236
283371
|
const p2 = join189(iosDir, target, "Assets.xcassets", "AppIcon.appiconset", "icon_1024.png");
|
|
283237
283372
|
try {
|
|
283238
|
-
if (!
|
|
283373
|
+
if (!statSync51(p2).isFile()) continue;
|
|
283239
283374
|
const bytes2 = readFileSync177(p2);
|
|
283240
283375
|
const hash3 = createHash94("sha256").update(bytes2).digest("hex");
|
|
283241
283376
|
const pixels = await pixelIssues(bytes2);
|
|
@@ -285657,7 +285792,7 @@ var init_upgrade = __esm({
|
|
|
285657
285792
|
});
|
|
285658
285793
|
|
|
285659
285794
|
// src/commands/doctor.ts
|
|
285660
|
-
import { statSync as
|
|
285795
|
+
import { statSync as statSync52, accessSync as accessSync5, constants as constants11 } from "node:fs";
|
|
285661
285796
|
import { join as join191 } from "node:path";
|
|
285662
285797
|
async function probeReachable(url, opts = {}) {
|
|
285663
285798
|
if (!url) return { url, reachable: false, error: "no url configured for this plane" };
|
|
@@ -285724,7 +285859,7 @@ function executableOnPath(name, env = process.env) {
|
|
|
285724
285859
|
for (const suffix of suffixes) {
|
|
285725
285860
|
const candidate = join191(dir, `${name}${suffix}`);
|
|
285726
285861
|
try {
|
|
285727
|
-
if (!
|
|
285862
|
+
if (!statSync52(candidate).isFile()) continue;
|
|
285728
285863
|
if (process.platform !== "win32") accessSync5(candidate, constants11.X_OK);
|
|
285729
285864
|
return true;
|
|
285730
285865
|
} catch {
|
|
@@ -290023,7 +290158,7 @@ import {
|
|
|
290023
290158
|
realpathSync as realpathSync23,
|
|
290024
290159
|
renameSync as renameSync26,
|
|
290025
290160
|
rmSync as rmSync46,
|
|
290026
|
-
statSync as
|
|
290161
|
+
statSync as statSync53,
|
|
290027
290162
|
writeFileSync as writeFileSync71
|
|
290028
290163
|
} from "node:fs";
|
|
290029
290164
|
import { basename as basename43, dirname as dirname87, join as join199, relative as relative37, resolve as resolve125 } from "node:path";
|
|
@@ -290104,7 +290239,7 @@ async function l10nCommand(ctx) {
|
|
|
290104
290239
|
return fail18("invalid_usage", { error: "name the app: --app <slug> (in a checkout) or --content <app dir>" }, 2);
|
|
290105
290240
|
}
|
|
290106
290241
|
const messagesDir = resolve125(dirArg);
|
|
290107
|
-
if (!existsSync158(messagesDir) || !
|
|
290242
|
+
if (!existsSync158(messagesDir) || !statSync53(messagesDir).isDirectory()) {
|
|
290108
290243
|
return fail18("messages_dir_not_found", { error: `${dirArg} is not a directory`, dir: messagesDir }, 1);
|
|
290109
290244
|
}
|
|
290110
290245
|
const fileByTag = /* @__PURE__ */ new Map();
|
|
@@ -298128,7 +298263,7 @@ var init_invite_plan = __esm({
|
|
|
298128
298263
|
});
|
|
298129
298264
|
|
|
298130
298265
|
// src/one-app/header-badges-cli.ts
|
|
298131
|
-
import { existsSync as existsSync167, lstatSync as lstatSync42, readFileSync as readFileSync196, rmSync as rmSync50, statSync as
|
|
298266
|
+
import { existsSync as existsSync167, lstatSync as lstatSync42, readFileSync as readFileSync196, rmSync as rmSync50, statSync as statSync54, writeFileSync as writeFileSync79 } from "node:fs";
|
|
298132
298267
|
import { join as join209, resolve as resolve130 } from "node:path";
|
|
298133
298268
|
function guestSignInParams(contentDir2) {
|
|
298134
298269
|
const profile = screenLoadParams(contentDir2, PROFILE_AVATAR_ITEM.onTap.params.screenId) ?? {};
|
|
@@ -298232,7 +298367,7 @@ async function runOneAppHeaderBadges(args, io2) {
|
|
|
298232
298367
|
let configLinked = false;
|
|
298233
298368
|
try {
|
|
298234
298369
|
configLinked = lstatSync42(configPath).isSymbolicLink();
|
|
298235
|
-
if (!configLinked &&
|
|
298370
|
+
if (!configLinked && statSync54(configPath).isFile()) configText = readFileSync196(configPath, "utf8");
|
|
298236
298371
|
} catch {
|
|
298237
298372
|
}
|
|
298238
298373
|
const declaration2 = options2.notNewApp || !configText ? void 0 : declareNewApp(configText);
|
|
@@ -298257,7 +298392,7 @@ async function runOneAppHeaderBadges(args, io2) {
|
|
|
298257
298392
|
let screens;
|
|
298258
298393
|
try {
|
|
298259
298394
|
if (configLinked) throw new Error("config.ts is a symlink: refusing to read or write through it.");
|
|
298260
|
-
if (!
|
|
298395
|
+
if (!statSync54(configPath).isFile()) throw new Error("config.ts is not a file.");
|
|
298261
298396
|
screens = contentScreens(options2.contentDir);
|
|
298262
298397
|
} catch (error) {
|
|
298263
298398
|
return report8(io2, false, { code: "config_uninspectable", error: error instanceof Error ? error.message : String(error), ...common2 });
|
|
@@ -302396,7 +302531,7 @@ var init_customer_build = __esm({
|
|
|
302396
302531
|
});
|
|
302397
302532
|
|
|
302398
302533
|
// src/site-analyze/apply.ts
|
|
302399
|
-
import { existsSync as existsSync172, readFileSync as readFileSync203, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as
|
|
302534
|
+
import { existsSync as existsSync172, readFileSync as readFileSync203, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as statSync55 } from "node:fs";
|
|
302400
302535
|
import { dirname as dirname92, isAbsolute as isAbsolute23, join as join216, resolve as resolve135, sep as sep35 } from "node:path";
|
|
302401
302536
|
import { spawnSync as spawnSync14 } from "node:child_process";
|
|
302402
302537
|
function inRepoBakeRefusal(repoRoot2, shell) {
|
|
@@ -302756,7 +302891,7 @@ function buildMergedContract(options2) {
|
|
|
302756
302891
|
}
|
|
302757
302892
|
if (!real.startsWith(realRoot + sep35)) return void 0;
|
|
302758
302893
|
try {
|
|
302759
|
-
if (!
|
|
302894
|
+
if (!statSync55(real).isFile()) return void 0;
|
|
302760
302895
|
mkdirSync72(dirname92(to2), { recursive: true });
|
|
302761
302896
|
copyFileSync4(real, to2);
|
|
302762
302897
|
} catch {
|