@wix/himalaya-cli 0.1880.0 → 0.1882.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/app-info/src/index.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/app-info.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +48 -33
- package/dist/cli.mjs +345 -263
- package/package.json +2 -2
- package/templates/beauty-salon-owner/config.ts +22 -4
- package/templates/beauty-salon-owner/dev/index.ts +2 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/community-club-owner/config.ts +22 -4
- package/templates/community-club-owner/dev/index.ts +2 -1
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/events-meetups-owner/config.ts +22 -4
- package/templates/events-meetups-owner/dev/index.ts +2 -1
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/gym-fitness-owner/config.ts +22 -4
- package/templates/gym-fitness-owner/dev/index.ts +2 -1
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/nonprofit-cause-owner/config.ts +22 -4
- package/templates/nonprofit-cause-owner/dev/index.ts +2 -1
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/owner-lite/config.ts +22 -4
- package/templates/owner-lite/dev/index.ts +2 -1
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/podcast-creator-owner/config.ts +22 -4
- package/templates/podcast-creator-owner/dev/index.ts +2 -1
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/portfolio-creative-owner/config.ts +22 -4
- package/templates/portfolio-creative-owner/dev/index.ts +2 -1
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/restaurant-owner/config.ts +22 -4
- package/templates/restaurant-owner/dev/index.ts +2 -1
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/retail-store-owner/config.ts +22 -4
- package/templates/retail-store-owner/dev/index.ts +2 -1
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
- package/templates/yoga-studio-owner/config.ts +22 -4
- package/templates/yoga-studio-owner/dev/index.ts +2 -1
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
package/dist/cli.mjs
CHANGED
|
@@ -4456,6 +4456,7 @@ var init_himi_package = __esm({
|
|
|
4456
4456
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
4457
4457
|
var init_icon_catalog_generated = __esm({
|
|
4458
4458
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
4459
|
+
"use strict";
|
|
4459
4460
|
init_define_HHP_CATALOG();
|
|
4460
4461
|
ICON_VIEW_BOX = 24;
|
|
4461
4462
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -189728,11 +189729,49 @@ var init_prebuild = __esm({
|
|
|
189728
189729
|
}
|
|
189729
189730
|
});
|
|
189730
189731
|
|
|
189732
|
+
// ../native-config/jvm-source.ts
|
|
189733
|
+
function stripJvmComments(text32) {
|
|
189734
|
+
let out2 = "";
|
|
189735
|
+
let i2 = 0;
|
|
189736
|
+
while (i2 < text32.length) {
|
|
189737
|
+
const c2 = text32[i2];
|
|
189738
|
+
const next = text32[i2 + 1];
|
|
189739
|
+
if (c2 === "/" && next === "/") {
|
|
189740
|
+
while (i2 < text32.length && text32[i2] !== "\n") i2++;
|
|
189741
|
+
} else if (c2 === "/" && next === "*") {
|
|
189742
|
+
const end2 = text32.indexOf("*/", i2 + 2);
|
|
189743
|
+
i2 = end2 < 0 ? text32.length : end2 + 2;
|
|
189744
|
+
out2 += " ";
|
|
189745
|
+
} else if (c2 === "`") {
|
|
189746
|
+
const end2 = text32.indexOf("`", i2 + 1);
|
|
189747
|
+
const j2 = end2 < 0 || text32.slice(i2, end2).includes("\n") ? i2 + 1 : end2 + 1;
|
|
189748
|
+
out2 += text32.slice(i2, j2);
|
|
189749
|
+
i2 = j2;
|
|
189750
|
+
} else if (c2 === '"' || c2 === "'") {
|
|
189751
|
+
const quote = text32.startsWith('"""', i2) ? '"""' : c2;
|
|
189752
|
+
let j2 = i2 + quote.length;
|
|
189753
|
+
while (j2 < text32.length && !text32.startsWith(quote, j2)) j2 += text32[j2] === "\\" && quote !== '"""' ? 2 : 1;
|
|
189754
|
+
j2 = Math.min(text32.length, j2 + quote.length);
|
|
189755
|
+
out2 += text32.slice(i2, j2);
|
|
189756
|
+
i2 = j2;
|
|
189757
|
+
} else {
|
|
189758
|
+
out2 += c2;
|
|
189759
|
+
i2++;
|
|
189760
|
+
}
|
|
189761
|
+
}
|
|
189762
|
+
return out2;
|
|
189763
|
+
}
|
|
189764
|
+
var init_jvm_source = __esm({
|
|
189765
|
+
"../native-config/jvm-source.ts"() {
|
|
189766
|
+
init_define_HHP_CATALOG();
|
|
189767
|
+
}
|
|
189768
|
+
});
|
|
189769
|
+
|
|
189731
189770
|
// ../native-config/native-core.ts
|
|
189732
189771
|
import { execFileSync as execFileSync4 } from "node:child_process";
|
|
189733
189772
|
import { existsSync as existsSync77, mkdtempSync as mkdtempSync3, readFileSync as readFileSync84, rmSync as rmSync21, writeFileSync as writeFileSync31 } from "node:fs";
|
|
189734
189773
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
189735
|
-
import { isAbsolute as isAbsolute9, join as join75, relative as relative17, resolve as resolve54, sep as sep22 } from "node:path";
|
|
189774
|
+
import { dirname as dirname43, isAbsolute as isAbsolute9, join as join75, relative as relative17, resolve as resolve54, sep as sep22 } from "node:path";
|
|
189736
189775
|
function carrierGeneratedRoot(root, carrierInstallDir) {
|
|
189737
189776
|
return resolve54(root, carrierInstallDir, "generated");
|
|
189738
189777
|
}
|
|
@@ -189832,13 +189871,25 @@ function renderCompat(carrier, selection) {
|
|
|
189832
189871
|
return JSON.parse(renderCompatText(carrier, selection));
|
|
189833
189872
|
}
|
|
189834
189873
|
function gradleProjectReferences(gradleText) {
|
|
189835
|
-
const text32 = gradleText
|
|
189874
|
+
const text32 = stripJvmComments(gradleText);
|
|
189836
189875
|
return [...text32.matchAll(/\bproject\s*\(\s*(?:path\s*[=:]\s*)?["'](:[^"']+)["'][^)]*\)/g)].map((m2) => {
|
|
189837
189876
|
const wrapper = /\b(\w+)\s*\(\s*$/.exec(text32.slice(Math.max(0, m2.index - 200), m2.index));
|
|
189838
189877
|
const closed = /^\s*\)/.test(text32.slice(m2.index + m2[0].length));
|
|
189839
189878
|
return { config: wrapper && closed ? wrapper[1] : null, project: m2[1] };
|
|
189840
189879
|
});
|
|
189841
189880
|
}
|
|
189881
|
+
function assertTestkitDependenciesWired(testkits, closure, graph) {
|
|
189882
|
+
for (const id of testkits) {
|
|
189883
|
+
for (const dep of graph[id]?.platforms.android?.dependencies ?? []) {
|
|
189884
|
+
if (!closure.includes(dep.id)) {
|
|
189885
|
+
throw new Error(`native-core: testkit ${id} depends on Core module ${dep.id}, which is not in the selection's Android closure [${closure.join(", ")}]; add ${dep.id} to the selection, or drop the testkit`);
|
|
189886
|
+
}
|
|
189887
|
+
}
|
|
189888
|
+
}
|
|
189889
|
+
}
|
|
189890
|
+
function referencesTestingLibrary(gradleText) {
|
|
189891
|
+
return gradleProjectReferences(gradleText).some((r3) => r3.project === TESTING_ANDROID_PROJECT);
|
|
189892
|
+
}
|
|
189842
189893
|
function satelliteAndroidApiProjects(gradleText) {
|
|
189843
189894
|
return gradleProjectReferences(gradleText).filter((r3) => r3.config === "api").map((r3) => r3.project);
|
|
189844
189895
|
}
|
|
@@ -189855,10 +189906,12 @@ function planNativeCore(adoption, opts = {}) {
|
|
|
189855
189906
|
const graph = readGraph(carrier);
|
|
189856
189907
|
const base2 = readSatelliteSelection(root, sat);
|
|
189857
189908
|
const effective = deriveEffectiveSelection(base2, adoption, adapters, graph);
|
|
189858
|
-
const
|
|
189909
|
+
const rendered = renderCompat(carrier, effective);
|
|
189910
|
+
const closure = rendered.selectedModules;
|
|
189859
189911
|
const gradlePath = join75(root, sat.android.dir, "build.gradle.kts");
|
|
189860
189912
|
if (!existsSync77(gradlePath)) throw new Error(`native-core: the satellite's Android build file ${sat.android.dir}/build.gradle.kts does not exist`);
|
|
189861
|
-
const
|
|
189913
|
+
const satelliteGradle = readFileSync84(gradlePath, "utf8");
|
|
189914
|
+
const referenced = satelliteAndroidApiProjects(satelliteGradle).map((p2) => p2.replace(/^:/, ""));
|
|
189862
189915
|
const satelliteClosure = referenced.length ? renderCompat(carrier, { ...base2, selectedModules: { ios: [], android: referenced } }).selectedModules.android : [];
|
|
189863
189916
|
const diff = equalSets(satelliteClosure, closure.android);
|
|
189864
189917
|
if (diff.missing.length || diff.extra.length) {
|
|
@@ -189867,7 +189920,12 @@ function planNativeCore(adoption, opts = {}) {
|
|
|
189867
189920
|
);
|
|
189868
189921
|
}
|
|
189869
189922
|
const androidIncludes = [{ project: sat.android.project, dir: sat.android.dir, origin: "satellite" }];
|
|
189870
|
-
|
|
189923
|
+
if (referencesTestingLibrary(satelliteGradle)) {
|
|
189924
|
+
androidIncludes.push({ project: TESTING_ANDROID_PROJECT, dir: `${dirname43(sat.android.dir)}/${TESTING_ANDROID_DIR_NAME}`, origin: "satellite" });
|
|
189925
|
+
}
|
|
189926
|
+
const testkits = rendered.testkitModules?.android ?? [];
|
|
189927
|
+
assertTestkitDependenciesWired(testkits, closure.android, graph);
|
|
189928
|
+
for (const id of [...closure.android, ...testkits]) {
|
|
189871
189929
|
const carrierPath = graph[id]?.platforms.android?.carrierPath;
|
|
189872
189930
|
if (!carrierPath) throw new Error(`native-core: the carrier's dependency graph has no Android carrierPath for ${JSON.stringify(id)}`);
|
|
189873
189931
|
androidIncludes.push({ project: `:${id}`, dir: `${sat.carrierInstallDir}/generated/${carrierPath}`, origin: "core" });
|
|
@@ -189921,13 +189979,16 @@ function assertNoSettingsCollision(plan, settingsWithoutBlock, where) {
|
|
|
189921
189979
|
throw new Error(`native-core: ${where}: ${problems.join("; ")}. A Core project id is a root-level Gradle path; rename or remove the colliding entry.`);
|
|
189922
189980
|
}
|
|
189923
189981
|
}
|
|
189924
|
-
var CARRIER_GENERATED_SEGMENT, compatCache, sorted2;
|
|
189982
|
+
var CARRIER_GENERATED_SEGMENT, TESTING_ANDROID_PROJECT, TESTING_ANDROID_DIR_NAME, compatCache, sorted2;
|
|
189925
189983
|
var init_native_core2 = __esm({
|
|
189926
189984
|
"../native-config/native-core.ts"() {
|
|
189927
189985
|
init_define_HHP_CATALOG();
|
|
189928
189986
|
init_src2();
|
|
189929
189987
|
init_paths();
|
|
189988
|
+
init_jvm_source();
|
|
189930
189989
|
CARRIER_GENERATED_SEGMENT = "/node_modules/@wix/mobile-native-core/generated/";
|
|
189990
|
+
TESTING_ANDROID_PROJECT = ":himalaya-wix-native-core-testing";
|
|
189991
|
+
TESTING_ANDROID_DIR_NAME = "himalaya-wix-native-core-testing";
|
|
189931
189992
|
compatCache = /* @__PURE__ */ new Map();
|
|
189932
189993
|
sorted2 = (xs2) => [...new Set(xs2)].sort();
|
|
189933
189994
|
}
|
|
@@ -190188,7 +190249,7 @@ var init_swiftpm_manifest = __esm({
|
|
|
190188
190249
|
import { execFileSync as execFileSync5 } from "node:child_process";
|
|
190189
190250
|
import { existsSync as existsSync79, readdirSync as readdirSync39, readFileSync as readFileSync86 } from "node:fs";
|
|
190190
190251
|
import { createRequire as createRequire6 } from "node:module";
|
|
190191
|
-
import { basename as basename20, dirname as
|
|
190252
|
+
import { basename as basename20, dirname as dirname44, join as join77, resolve as resolve56 } from "node:path";
|
|
190192
190253
|
function loadYaml(text32) {
|
|
190193
190254
|
yamlLoad ??= createRequire6(import.meta.url)("js-yaml").load;
|
|
190194
190255
|
return yamlLoad(text32);
|
|
@@ -190233,37 +190294,6 @@ function coreIosModules(graph) {
|
|
|
190233
190294
|
function coreAndroidProjects(graph) {
|
|
190234
190295
|
return new Set(Object.entries(graph).filter(([, m2]) => m2.platforms.android?.carrierPath).map(([id]) => id));
|
|
190235
190296
|
}
|
|
190236
|
-
function stripJvmComments(text32) {
|
|
190237
|
-
let out2 = "";
|
|
190238
|
-
let i2 = 0;
|
|
190239
|
-
while (i2 < text32.length) {
|
|
190240
|
-
const c2 = text32[i2];
|
|
190241
|
-
const next = text32[i2 + 1];
|
|
190242
|
-
if (c2 === "/" && next === "/") {
|
|
190243
|
-
while (i2 < text32.length && text32[i2] !== "\n") i2++;
|
|
190244
|
-
} else if (c2 === "/" && next === "*") {
|
|
190245
|
-
const end2 = text32.indexOf("*/", i2 + 2);
|
|
190246
|
-
i2 = end2 < 0 ? text32.length : end2 + 2;
|
|
190247
|
-
out2 += " ";
|
|
190248
|
-
} else if (c2 === "`") {
|
|
190249
|
-
const end2 = text32.indexOf("`", i2 + 1);
|
|
190250
|
-
const j2 = end2 < 0 || text32.slice(i2, end2).includes("\n") ? i2 + 1 : end2 + 1;
|
|
190251
|
-
out2 += text32.slice(i2, j2);
|
|
190252
|
-
i2 = j2;
|
|
190253
|
-
} else if (c2 === '"' || c2 === "'") {
|
|
190254
|
-
const quote = text32.startsWith('"""', i2) ? '"""' : c2;
|
|
190255
|
-
let j2 = i2 + quote.length;
|
|
190256
|
-
while (j2 < text32.length && !text32.startsWith(quote, j2)) j2 += text32[j2] === "\\" && quote !== '"""' ? 2 : 1;
|
|
190257
|
-
j2 = Math.min(text32.length, j2 + quote.length);
|
|
190258
|
-
out2 += text32.slice(i2, j2);
|
|
190259
|
-
i2 = j2;
|
|
190260
|
-
} else {
|
|
190261
|
-
out2 += c2;
|
|
190262
|
-
i2++;
|
|
190263
|
-
}
|
|
190264
|
-
}
|
|
190265
|
-
return out2;
|
|
190266
|
-
}
|
|
190267
190297
|
function stripSwiftComments(text32) {
|
|
190268
190298
|
let out2 = "";
|
|
190269
190299
|
let i2 = 0;
|
|
@@ -190369,38 +190399,38 @@ function xcodegenTargets(text32) {
|
|
|
190369
190399
|
return doc && typeof doc === "object" && doc.targets && typeof doc.targets === "object" ? doc.targets : {};
|
|
190370
190400
|
}
|
|
190371
190401
|
function testSupportProblems(files) {
|
|
190372
|
-
|
|
190373
|
-
|
|
190374
|
-
|
|
190375
|
-
|
|
190376
|
-
|
|
190377
|
-
|
|
190378
|
-
|
|
190379
|
-
|
|
190380
|
-
|
|
190381
|
-
|
|
190382
|
-
|
|
190383
|
-
|
|
190384
|
-
|
|
190385
|
-
|
|
190386
|
-
|
|
190387
|
-
|
|
190388
|
-
|
|
190389
|
-
|
|
190390
|
-
|
|
190391
|
-
|
|
190392
|
-
|
|
190393
|
-
|
|
190394
|
-
|
|
190395
|
-
|
|
190396
|
-
}
|
|
190397
|
-
}
|
|
190398
|
-
} catch (e2) {
|
|
190399
|
-
problems.push(`${f2.path}: names ${TEST_SUPPORT_PRODUCT} but its manifest cannot be read (${e2.message}), so the test-only rule cannot be proven`);
|
|
190400
|
-
}
|
|
190401
|
-
}
|
|
190402
|
+
return files.flatMap((f2) => [
|
|
190403
|
+
...TEST_SUPPORT_PRODUCTS.flatMap((product2) => f2.text.includes(product2) ? productLinkProblems(f2, product2) : []),
|
|
190404
|
+
...isGradleBuild(f2.path) ? testingLibraryReferenceProblems(f2) : []
|
|
190405
|
+
]);
|
|
190406
|
+
}
|
|
190407
|
+
function productLinkProblems(f2, product2) {
|
|
190408
|
+
if (isProjectYml(f2.path)) return projectYmlLinkProblems(f2, product2);
|
|
190409
|
+
if (isPackageSwift(f2.path)) return packageSwiftLinkProblems(f2, product2);
|
|
190410
|
+
return [];
|
|
190411
|
+
}
|
|
190412
|
+
function projectYmlLinkProblems(f2, product2) {
|
|
190413
|
+
let targets;
|
|
190414
|
+
try {
|
|
190415
|
+
targets = xcodegenTargets(f2.text);
|
|
190416
|
+
} catch (e2) {
|
|
190417
|
+
return [`${f2.path}: names ${product2} but cannot be parsed as YAML (${e2.message}), so the test-only rule cannot be proven`];
|
|
190418
|
+
}
|
|
190419
|
+
return Object.entries(targets).filter(([, t2]) => (t2.dependencies ?? []).some((d2) => d2 && (d2.product === product2 || d2.package === product2)) && !TEST_TARGET_TYPE.test(t2.type ?? "")).map(([name, t2]) => `${f2.path}: target ${name} (type ${t2.type ?? "unset"}) links ${product2}; only test targets (bundle.unit-test, bundle.ui-testing) may \u2014 a production target would ship test doubles`);
|
|
190420
|
+
}
|
|
190421
|
+
function packageSwiftLinkProblems(f2, product2) {
|
|
190422
|
+
try {
|
|
190423
|
+
return manifestFromSource(f2.text, dirname44(f2.path)).targets.filter((t2) => t2.type !== "test" && t2.dependencies.some((d2) => "product" in d2 && d2.product[0] === product2)).map((t2) => `${f2.path}: target ${t2.name} (${t2.type}) depends on the ${product2} product; only .testTarget may`);
|
|
190424
|
+
} catch (e2) {
|
|
190425
|
+
return [`${f2.path}: names ${product2} but its manifest cannot be read (${e2.message}), so the test-only rule cannot be proven`];
|
|
190402
190426
|
}
|
|
190403
|
-
|
|
190427
|
+
}
|
|
190428
|
+
function testingLibraryReferenceProblems(f2) {
|
|
190429
|
+
return testingLibraryConfigurations(f2.text).filter((config) => !(config && TEST_CONFIGURATION.test(config))).map((config) => `${f2.path}: ${config ?? ""}(project("${TESTING_ANDROID_PROJECT}")): the testing library may be referenced only from a test configuration (testImplementation, androidTestImplementation); a production configuration would ship test doubles`);
|
|
190430
|
+
}
|
|
190431
|
+
function testingLibraryConfigurations(text32) {
|
|
190432
|
+
const unwrapped = [...stripJvmComments(text32).matchAll(UNWRAPPED_TESTING_REFERENCE)].map((m2) => m2[1] ?? m2[2]);
|
|
190433
|
+
return gradleProjectReferences(text32).filter((r3) => r3.project === TESTING_ANDROID_PROJECT).map((r3) => r3.config && r3.config !== "add" ? r3.config : unwrapped.shift() ?? null);
|
|
190404
190434
|
}
|
|
190405
190435
|
function xcodegenProject(text32) {
|
|
190406
190436
|
const doc = loadYaml(text32);
|
|
@@ -190450,12 +190480,17 @@ function directCoreProblems(file2, pods) {
|
|
|
190450
190480
|
}
|
|
190451
190481
|
return problems;
|
|
190452
190482
|
}
|
|
190453
|
-
var yamlLoad, TEST_SUPPORT_PRODUCT, SATELLITE_WORKSPACE_PREFIX, SKIP_DIRS, isProjectYml, isPackageSwift, isSwift, isGradleBuild, isJvmSource, CORE_ANDROID_PACKAGE, wordAround, GRADLE_PROJECT_REF, CORE_PACKAGE_WORD, JVM_CORE_IMPORT, JVM_CORE_REFERENCE, SWIFT_IMPORT, TEST_TARGET_TYPE;
|
|
190483
|
+
var yamlLoad, TEST_SUPPORT_PRODUCT, TESTING_PRODUCT, TEST_SUPPORT_PRODUCTS, SATELLITE_WORKSPACE_PREFIX, SKIP_DIRS, isProjectYml, isPackageSwift, isSwift, isGradleBuild, isJvmSource, CORE_ANDROID_PACKAGE, wordAround, GRADLE_PROJECT_REF, CORE_PACKAGE_WORD, JVM_CORE_IMPORT, JVM_CORE_REFERENCE, SWIFT_IMPORT, TEST_TARGET_TYPE, TEST_CONFIGURATION, UNWRAPPED_TESTING_REFERENCE;
|
|
190454
190484
|
var init_native_core_guards = __esm({
|
|
190455
190485
|
"../native-config/native-core-guards.ts"() {
|
|
190456
190486
|
init_define_HHP_CATALOG();
|
|
190457
190487
|
init_swiftpm_manifest();
|
|
190488
|
+
init_native_core2();
|
|
190489
|
+
init_jvm_source();
|
|
190490
|
+
init_jvm_source();
|
|
190458
190491
|
TEST_SUPPORT_PRODUCT = "HimalayaWixNativeCoreTestSupport";
|
|
190492
|
+
TESTING_PRODUCT = "HimalayaWixNativeCoreTesting";
|
|
190493
|
+
TEST_SUPPORT_PRODUCTS = [TEST_SUPPORT_PRODUCT, TESTING_PRODUCT];
|
|
190459
190494
|
SATELLITE_WORKSPACE_PREFIX = "stdlib/wix-native-core/";
|
|
190460
190495
|
SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", ".git", "build", "Pods", "DerivedData", ".gradle", ".swiftpm", ".build"]);
|
|
190461
190496
|
isProjectYml = (p2) => basename20(p2) === "project.yml";
|
|
@@ -190471,6 +190506,11 @@ var init_native_core_guards = __esm({
|
|
|
190471
190506
|
JVM_CORE_REFERENCE = new RegExp(`(?<![A-Za-z0-9_.])(${CORE_PACKAGE_WORD}(?![A-Za-z0-9_])(?:\\.[A-Za-z_][A-Za-z0-9_]*)*)`);
|
|
190472
190507
|
SWIFT_IMPORT = /^[ \t]*(?:@[A-Za-z_][A-Za-z0-9_]*(?:\([^)\n]*\))?\s+)*(?:(?:public|package|internal|fileprivate|private)\s+)?import\s+(?:(?:struct|class|enum|protocol|func|var|let|typealias)\s+)?([A-Za-z_][A-Za-z0-9_]*)/gm;
|
|
190473
190508
|
TEST_TARGET_TYPE = /^bundle\.(?:unit-test|ui-testing)$/;
|
|
190509
|
+
TEST_CONFIGURATION = /^(?:test|androidTest)(?!Fixtures)(?:[A-Z][A-Za-z0-9]*)?(?:Implementation|CompileOnly|RuntimeOnly)$/;
|
|
190510
|
+
UNWRAPPED_TESTING_REFERENCE = new RegExp(
|
|
190511
|
+
`(?:\\badd\\s*\\(\\s*["'](\\w+)["']\\s*,\\s*|\\b(\\w+)\\s+)project\\s*\\(\\s*(?:path\\s*[:=]\\s*)?["']${TESTING_ANDROID_PROJECT}["']`,
|
|
190512
|
+
"g"
|
|
190513
|
+
);
|
|
190474
190514
|
}
|
|
190475
190515
|
});
|
|
190476
190516
|
|
|
@@ -190478,7 +190518,7 @@ var init_native_core_guards = __esm({
|
|
|
190478
190518
|
import { spawnSync as spawnSync8 } from "node:child_process";
|
|
190479
190519
|
import { existsSync as existsSync80, mkdtempSync as mkdtempSync4, readFileSync as readFileSync87, rmSync as rmSync22, writeFileSync as writeFileSync32 } from "node:fs";
|
|
190480
190520
|
import { tmpdir as tmpdir5 } from "node:os";
|
|
190481
|
-
import { basename as basename21, dirname as
|
|
190521
|
+
import { basename as basename21, dirname as dirname45, join as join78 } from "node:path";
|
|
190482
190522
|
function blank2(app2) {
|
|
190483
190523
|
return {
|
|
190484
190524
|
app: app2,
|
|
@@ -190509,16 +190549,17 @@ function readIosSatellite(root, dirRel, pods, testkitPods, carrierInstallDir) {
|
|
|
190509
190549
|
out2.problems.push(`${dirRel}/Package.swift cannot be read statically (${message2(e2)}); the satellite manifest must stay in the simple subset the shared parser reads, so its products can be proven`);
|
|
190510
190550
|
return out2;
|
|
190511
190551
|
}
|
|
190552
|
+
const testOnly = testOnlyTargets(manifest2);
|
|
190512
190553
|
const local = manifest2.dependencies.flatMap((d2) => "fileSystem" in d2 ? d2.fileSystem : []);
|
|
190513
190554
|
const generated = carrierGeneratedRoot(root, carrierInstallDir);
|
|
190514
190555
|
const corePackage = join78(generated, "ios");
|
|
190515
190556
|
const adapterRoot = join78(generated, "ios-adapters");
|
|
190516
|
-
const adapters = new Set(local.filter((p2) =>
|
|
190557
|
+
const adapters = new Set(local.filter((p2) => dirname45(p2.path) === adapterRoot).map((p2) => basename21(p2.path).toLowerCase()));
|
|
190517
190558
|
for (const p2 of local) {
|
|
190518
190559
|
const atCore = p2.path === corePackage;
|
|
190519
190560
|
if (p2.identity === "ios" && !atCore) {
|
|
190520
190561
|
out2.problems.push(`${dirRel}/Package.swift: local package ${p2.path} has the SwiftPM identity "ios", which belongs to the carrier's core package (${corePackage})`);
|
|
190521
|
-
} else if (!atCore &&
|
|
190562
|
+
} else if (!atCore && dirname45(p2.path) !== adapterRoot && (p2.path.includes("mobile-native-core/generated") || isInside(generated, p2.path))) {
|
|
190522
190563
|
out2.problems.push(`${dirRel}/Package.swift: local package ${p2.path} points into a Native Core carrier but is neither ${corePackage} nor a package directly under ${adapterRoot}`);
|
|
190523
190564
|
}
|
|
190524
190565
|
}
|
|
@@ -190531,8 +190572,9 @@ function readIosSatellite(root, dirRel, pods, testkitPods, carrierInstallDir) {
|
|
|
190531
190572
|
if (pods.has(name)) out2.problems.push(`${dirRel}/Package.swift: target ${t2.name} links Core product ${name} through package ${JSON.stringify(pkg)}, which is neither WixNativeCore nor an ios-adapters package`);
|
|
190532
190573
|
continue;
|
|
190533
190574
|
}
|
|
190575
|
+
const isTestOnly = t2.type === "test" || testOnly.has(t2.name);
|
|
190534
190576
|
if (testkitPods.has(name)) {
|
|
190535
|
-
if (
|
|
190577
|
+
if (isTestOnly) out2.testkits.push(name);
|
|
190536
190578
|
else out2.problems.push(`${dirRel}/Package.swift: non-test target ${t2.name} links testkit product ${name}; testkits may only be linked by a .testTarget`);
|
|
190537
190579
|
continue;
|
|
190538
190580
|
}
|
|
@@ -190540,7 +190582,7 @@ function readIosSatellite(root, dirRel, pods, testkitPods, carrierInstallDir) {
|
|
|
190540
190582
|
out2.problems.push(`${dirRel}/Package.swift: target ${t2.name} links ${name} from the Core package, which is not a product in the carrier's dependency graph (podModuleName)`);
|
|
190541
190583
|
continue;
|
|
190542
190584
|
}
|
|
190543
|
-
if (
|
|
190585
|
+
if (!isTestOnly) out2.products.push(name);
|
|
190544
190586
|
}
|
|
190545
190587
|
}
|
|
190546
190588
|
return out2;
|
|
@@ -190562,6 +190604,31 @@ function satelliteAndroidRuleProblems(gradleText, graph, androidTestkits) {
|
|
|
190562
190604
|
}
|
|
190563
190605
|
return problems;
|
|
190564
190606
|
}
|
|
190607
|
+
function testOnlyTargets(manifest2) {
|
|
190608
|
+
const names2 = new Set(manifest2.targets.map((t2) => t2.name));
|
|
190609
|
+
const depsOf = new Map(manifest2.targets.map((t2) => [t2.name, t2.dependencies.flatMap((d2) => "byName" in d2 ? [d2.byName[0]] : "target" in d2 ? [d2.target[0]] : []).filter((n2) => names2.has(n2))]));
|
|
190610
|
+
const production = /* @__PURE__ */ new Set();
|
|
190611
|
+
const visit = (t2) => {
|
|
190612
|
+
if (production.has(t2)) return;
|
|
190613
|
+
production.add(t2);
|
|
190614
|
+
for (const d2 of depsOf.get(t2) ?? []) visit(d2);
|
|
190615
|
+
};
|
|
190616
|
+
manifest2.products.filter((p2) => p2.name !== TESTING_PRODUCT).forEach((p2) => p2.targets.forEach(visit));
|
|
190617
|
+
return new Set(manifest2.products.filter((p2) => p2.name === TESTING_PRODUCT).flatMap((p2) => p2.targets).filter((t2) => !production.has(t2)));
|
|
190618
|
+
}
|
|
190619
|
+
function testingAndroidRuleProblems(root, sat, graph, androidTestkits) {
|
|
190620
|
+
const rel2 = `${dirname45(sat.android.dir)}/${TESTING_ANDROID_DIR_NAME}/build.gradle.kts`;
|
|
190621
|
+
const file2 = join78(root, rel2);
|
|
190622
|
+
if (!existsSync80(file2)) return [];
|
|
190623
|
+
return gradleProjectReferences(readFileSync87(file2, "utf8")).flatMap((ref) => {
|
|
190624
|
+
const id = ref.project.replace(/^:/, "");
|
|
190625
|
+
const mod = graph[id];
|
|
190626
|
+
const at2 = `${rel2}: ${ref.config ?? ""}(project("${ref.project}"))`;
|
|
190627
|
+
if (!mod) return [];
|
|
190628
|
+
if (!mod.testkit) return [`${at2}: the testing library reaches production Core only through the satellite (${sat.android.project})`];
|
|
190629
|
+
return androidTestkits.includes(id) ? [] : [`${rel2}: testkit ${id} is not declared in the selection's testkitModules.android`];
|
|
190630
|
+
});
|
|
190631
|
+
}
|
|
190565
190632
|
function firstDifference(expected, actual) {
|
|
190566
190633
|
const e2 = expected.split("\n");
|
|
190567
190634
|
const a3 = actual.split("\n");
|
|
@@ -190665,6 +190732,7 @@ function checkNativeCoreSatellite(opts = {}) {
|
|
|
190665
190732
|
if (diff.missing.length || diff.extra.length) r3.ios.ok = false;
|
|
190666
190733
|
}
|
|
190667
190734
|
problems.push(...satelliteAndroidRuleProblems(gradleText, graph, expected.testkit.android));
|
|
190735
|
+
problems.push(...testingAndroidRuleProblems(root, sat, graph, expected.testkit.android));
|
|
190668
190736
|
runGuards(r3, root, opts.files, pods, problems, coreAndroidProjects(graph));
|
|
190669
190737
|
return r3;
|
|
190670
190738
|
}
|
|
@@ -190760,7 +190828,7 @@ function checkNativeCore(app2, opts = {}) {
|
|
|
190760
190828
|
r3.android = runCarrierAndroidCheck(carrier, effective, settingsPath);
|
|
190761
190829
|
problems.push(
|
|
190762
190830
|
...settingsCoreIdProblems(readFileSync87(settingsPath, "utf8"), graph, `apps/${app2}/android/settings.gradle.kts`, {
|
|
190763
|
-
settingsDir:
|
|
190831
|
+
settingsDir: dirname45(settingsPath),
|
|
190764
190832
|
root,
|
|
190765
190833
|
carrierInstallDir: sat.carrierInstallDir
|
|
190766
190834
|
})
|
|
@@ -191372,7 +191440,7 @@ __export(gen_native_config_exports, {
|
|
|
191372
191440
|
yamlScalar: () => yamlScalar
|
|
191373
191441
|
});
|
|
191374
191442
|
import { existsSync as existsSync81, mkdirSync as mkdirSync34, readFileSync as readFileSync89, readdirSync as readdirSync40, rmSync as rmSync23, statSync as statSync23, writeFileSync as writeFileSync34 } from "node:fs";
|
|
191375
|
-
import { dirname as
|
|
191443
|
+
import { dirname as dirname46, join as join79 } from "node:path";
|
|
191376
191444
|
import { fileURLToPath as fileURLToPath30 } from "node:url";
|
|
191377
191445
|
import ts18 from "typescript";
|
|
191378
191446
|
function withoutComments(src) {
|
|
@@ -192024,7 +192092,7 @@ function androidSettingsGradle(app2) {
|
|
|
192024
192092
|
return join79(appDir(app2), "android", "settings.gradle.kts");
|
|
192025
192093
|
}
|
|
192026
192094
|
function androidAppGradle(app2) {
|
|
192027
|
-
return join79(
|
|
192095
|
+
return join79(dirname46(androidManifestPath2(app2)), "..", "..", "build.gradle.kts");
|
|
192028
192096
|
}
|
|
192029
192097
|
function androidManifestPath2(app2) {
|
|
192030
192098
|
const androidDir = join79(appDir(app2), "android");
|
|
@@ -192034,7 +192102,7 @@ function androidManifestPath2(app2) {
|
|
|
192034
192102
|
return candidates.length === 1 ? candidates[0] : preferred;
|
|
192035
192103
|
}
|
|
192036
192104
|
function automotiveAppDescPath(app2) {
|
|
192037
|
-
return join79(
|
|
192105
|
+
return join79(dirname46(androidManifestPath2(app2)), "res", "xml", "automotive_app_desc.xml");
|
|
192038
192106
|
}
|
|
192039
192107
|
function applyToFile(path2, kind, label4, render3, check) {
|
|
192040
192108
|
if (!existsSync81(path2)) return { path: path2, outcome: "skipped" };
|
|
@@ -192064,7 +192132,7 @@ function applyWholeFile(path2, content, check) {
|
|
|
192064
192132
|
const current = existsSync81(path2) ? readFileSync89(path2, "utf8") : null;
|
|
192065
192133
|
if (current === content) return { path: path2, outcome: "unchanged" };
|
|
192066
192134
|
if (check) return { path: path2, outcome: "drift" };
|
|
192067
|
-
mkdirSync34(
|
|
192135
|
+
mkdirSync34(dirname46(path2), { recursive: true });
|
|
192068
192136
|
writeFileSync34(path2, content);
|
|
192069
192137
|
return { path: path2, outcome: "written" };
|
|
192070
192138
|
}
|
|
@@ -192083,8 +192151,8 @@ function storeAdoptPaths(app2) {
|
|
|
192083
192151
|
iosYml: iosProjectYml(app2),
|
|
192084
192152
|
storeSpec: iosStoreSpec(app2),
|
|
192085
192153
|
manifest: manifest2,
|
|
192086
|
-
storeManifest: join79(
|
|
192087
|
-
legacyReleaseManifest: join79(
|
|
192154
|
+
storeManifest: join79(dirname46(manifest2), "..", "..", STORE_MANIFEST_REL),
|
|
192155
|
+
legacyReleaseManifest: join79(dirname46(manifest2), "..", "release", "AndroidManifest.xml"),
|
|
192088
192156
|
gradle: androidAppGradle(app2)
|
|
192089
192157
|
};
|
|
192090
192158
|
}
|
|
@@ -192258,19 +192326,19 @@ function appSourceRoot(projectYmlPath, platform) {
|
|
|
192258
192326
|
if (!existsSync81(projectYmlPath)) return void 0;
|
|
192259
192327
|
const project = load5(readFileSync89(projectYmlPath, "utf8"));
|
|
192260
192328
|
const main4 = Object.values(project.targets ?? {}).find((t2) => t2.type === "application" && t2.platform === platform);
|
|
192261
|
-
const iosDir =
|
|
192329
|
+
const iosDir = dirname46(projectYmlPath);
|
|
192262
192330
|
const root = main4?.sources?.map((s5) => typeof s5 === "string" ? s5 : s5.path).find((p2) => p2 && existsSync81(join79(iosDir, p2, "Info.plist")));
|
|
192263
192331
|
return root ? join79(iosDir, root) : void 0;
|
|
192264
192332
|
}
|
|
192265
192333
|
function coreExtensionSourceRoots(projectYmlPath) {
|
|
192266
192334
|
if (!existsSync81(projectYmlPath)) return [];
|
|
192267
192335
|
const project = load5(readFileSync89(projectYmlPath, "utf8"));
|
|
192268
|
-
const dir =
|
|
192336
|
+
const dir = dirname46(projectYmlPath);
|
|
192269
192337
|
const roots2 = [];
|
|
192270
192338
|
for (const t2 of Object.values(project.targets ?? {})) {
|
|
192271
192339
|
if (t2.type !== "app-extension" || !(t2.dependencies ?? []).some((d2) => /^HimalayaCore/.test(d2.product ?? d2.package ?? ""))) continue;
|
|
192272
192340
|
const paths2 = (t2.sources ?? []).map((s5) => typeof s5 === "string" ? s5 : s5.path).filter((p2) => !!p2);
|
|
192273
|
-
const infoDir = t2.info?.path ?
|
|
192341
|
+
const infoDir = t2.info?.path ? dirname46(t2.info.path) : void 0;
|
|
192274
192342
|
const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) && statSync23(join79(dir, p2)).isDirectory());
|
|
192275
192343
|
if (!root) throw new Error(`${projectYmlPath}: app extension linking HimalayaCore has no source directory to bundle its privacy manifest from`);
|
|
192276
192344
|
roots2.push(join79(dir, root));
|
|
@@ -192443,7 +192511,7 @@ function genNativeConfig(app2, opts = {}) {
|
|
|
192443
192511
|
applyModuleFlags(iosProjectYml(app2), moduleLinks.iosLinked(), check),
|
|
192444
192512
|
// Model B, `url:` form: the trait selector package that enables the linked satellites' traits
|
|
192445
192513
|
// in the published package (#4129). Removed when the app links none, or is not in that form.
|
|
192446
|
-
applyTraitSelector(join79(
|
|
192514
|
+
applyTraitSelector(join79(dirname46(iosProjectYml(app2)), BINARY_CORE_IOS_TRAIT_SELECTOR, "Package.swift"), moduleLinks.iosTraitSelector(), check),
|
|
192447
192515
|
// macOS (RFC 0046) reuses the iOS boot, so it links the same macOS-capable modules.
|
|
192448
192516
|
applyToFile(macosProjectYml(app2), "yaml", LABEL_MODULES_IOS_PACKAGE, (i2) => renderModulesIosPackage(modules.macos, i2), check),
|
|
192449
192517
|
applyToFile(macosProjectYml(app2), "yaml", LABEL_MODULES_IOS_LINK, (i2) => renderModulesIosLink(modules.macos, i2), check),
|
|
@@ -192535,9 +192603,9 @@ function genNativeConfig(app2, opts = {}) {
|
|
|
192535
192603
|
const plan = live4;
|
|
192536
192604
|
files.push(applyToFile(iosYml, "yaml", LABEL_LIVE_TARGET, (i2) => plan.target.map((line) => i2 + line), check));
|
|
192537
192605
|
files.push(applyToFile(iosYml, "yaml", LABEL_LIVE_EMBED, (i2) => plan.embed.map((line) => i2 + line), check));
|
|
192538
|
-
const source2 = join79(
|
|
192606
|
+
const source2 = join79(dirname46(iosYml), LIVE_SOURCE_PATH);
|
|
192539
192607
|
files.push(plan.source ? applyWholeFile(source2, plan.source, check) : removeWholeFile(source2, check));
|
|
192540
|
-
const entitlements = join79(
|
|
192608
|
+
const entitlements = join79(dirname46(iosYml), LIVE_ENTITLEMENTS_PATH);
|
|
192541
192609
|
files.push(plan.entitlements ? applyWholeFile(entitlements, plan.entitlements, check) : removeWholeFile(entitlements, check));
|
|
192542
192610
|
}
|
|
192543
192611
|
const iosSplashManaged = existsSync81(iosYml) && hasMarkers(readFileSync89(iosYml, "utf8"), "yaml", LABEL_IOS_SPLASH);
|
|
@@ -192556,10 +192624,10 @@ function genNativeConfig(app2, opts = {}) {
|
|
|
192556
192624
|
for (const root of sourceRoots) files.push(applyWholeFile(join79(root, "PrivacyInfo.xcprivacy"), renderPrivacyManifest(root === iosRoot ? iosPlan : plan), check));
|
|
192557
192625
|
}
|
|
192558
192626
|
if (targetManaged) {
|
|
192559
|
-
const manifest3 = join79(
|
|
192627
|
+
const manifest3 = join79(dirname46(iosYml), LIVE_PRIVACY_MANIFEST_PATH);
|
|
192560
192628
|
files.push(live4.source ? applyWholeFile(manifest3, renderPrivacyManifest(privacyPlanFor([])), check) : removeWholeFile(manifest3, check));
|
|
192561
192629
|
}
|
|
192562
|
-
const liveRoot = join79(
|
|
192630
|
+
const liveRoot = join79(dirname46(iosYml), dirname46(LIVE_PRIVACY_MANIFEST_PATH));
|
|
192563
192631
|
for (const yml of [iosYml, macosProjectYml(app2)]) {
|
|
192564
192632
|
for (const root of coreExtensionSourceRoots(yml)) {
|
|
192565
192633
|
if (targetManaged && root === liveRoot) continue;
|
|
@@ -192633,7 +192701,7 @@ var init_gen_native_config = __esm({
|
|
|
192633
192701
|
FROM_APP_PLATFORM_DIR = "../../../";
|
|
192634
192702
|
linkedFlag = (product2) => `HIMALAYA_LINKED_${product2}`;
|
|
192635
192703
|
CORE_ANDROID_CAPABILITY_MODULES = join79(
|
|
192636
|
-
|
|
192704
|
+
dirname46(fileURLToPath30(import.meta.url)),
|
|
192637
192705
|
"../../core/runtime/android/io/himalaya/core/src/main/kotlin/io/himalaya/core/CapabilityModules.kt"
|
|
192638
192706
|
);
|
|
192639
192707
|
ANDROID_MAX_DEPTH = 16;
|
|
@@ -193912,7 +193980,7 @@ __export(base44_types_exports, {
|
|
|
193912
193980
|
writeBase44Types: () => writeBase44Types
|
|
193913
193981
|
});
|
|
193914
193982
|
import { existsSync as existsSync83, mkdirSync as mkdirSync35, readFileSync as readFileSync91, writeFileSync as writeFileSync35 } from "node:fs";
|
|
193915
|
-
import { dirname as
|
|
193983
|
+
import { dirname as dirname47, join as join81 } from "node:path";
|
|
193916
193984
|
function logicalName(spec) {
|
|
193917
193985
|
return (isAdoptedEntity(spec) ? spec.base44Name : spec.name) ?? "";
|
|
193918
193986
|
}
|
|
@@ -193993,7 +194061,7 @@ async function writeBase44Types(dir, app2) {
|
|
|
193993
194061
|
const path2 = join81(dir, BASE44_TYPES_PATH);
|
|
193994
194062
|
const changed = !existsSync83(path2) || readFileSync91(path2, "utf8") !== text32;
|
|
193995
194063
|
if (changed) {
|
|
193996
|
-
mkdirSync35(
|
|
194064
|
+
mkdirSync35(dirname47(path2), { recursive: true });
|
|
193997
194065
|
writeFileSync35(path2, text32);
|
|
193998
194066
|
}
|
|
193999
194067
|
return { path: path2, changed, entities: text32.split("\nexport const ").length - 1 };
|
|
@@ -194509,7 +194577,7 @@ __export(eject_exports, {
|
|
|
194509
194577
|
ejectModule: () => ejectModule
|
|
194510
194578
|
});
|
|
194511
194579
|
import { existsSync as existsSync85, mkdirSync as mkdirSync36, readFileSync as readFileSync93, writeFileSync as writeFileSync36 } from "node:fs";
|
|
194512
|
-
import { dirname as
|
|
194580
|
+
import { dirname as dirname48, join as join83, relative as relative18, resolve as resolve58, sep as sep23 } from "node:path";
|
|
194513
194581
|
function locate(repoRootOrCwd, mod) {
|
|
194514
194582
|
const inRepo = resolve58(repoRootOrCwd, `stdlib/flows/${mod}/src/index.ts`);
|
|
194515
194583
|
if (existsSync85(inRepo)) return { path: inRepo, form: "source" };
|
|
@@ -194539,7 +194607,7 @@ function ejectModule(opts) {
|
|
|
194539
194607
|
}
|
|
194540
194608
|
const ext = found.form === "source" ? "ts" : "mjs";
|
|
194541
194609
|
const target = join83(contentDir2, "tier5-src", "_ejected", `${mod}.${ext}`);
|
|
194542
|
-
mkdirSync36(
|
|
194610
|
+
mkdirSync36(dirname48(target), { recursive: true });
|
|
194543
194611
|
const banner = `// EJECTED from @wix/himalaya/${mod}. This app owns this file now.
|
|
194544
194612
|
//
|
|
194545
194613
|
// Central fixes to @wix/himalaya/${mod} NO LONGER REACH THIS APP \u2014 including any
|
|
@@ -194562,7 +194630,7 @@ function ejectModule(opts) {
|
|
|
194562
194630
|
if (!existsSync85(f2)) continue;
|
|
194563
194631
|
const before = readFileSync93(f2, "utf8");
|
|
194564
194632
|
let after = before;
|
|
194565
|
-
let rel2 = relative18(
|
|
194633
|
+
let rel2 = relative18(dirname48(f2), target).split(sep23).join("/").replace(/\.tsx?$/, ".js");
|
|
194566
194634
|
if (!rel2.startsWith(".")) rel2 = `./${rel2}`;
|
|
194567
194635
|
for (const spec of specifiersFor(mod)) {
|
|
194568
194636
|
const q4 = spec.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -194608,7 +194676,7 @@ __export(crawl_layers_exports, {
|
|
|
194608
194676
|
tabRootScreens: () => tabRootScreens
|
|
194609
194677
|
});
|
|
194610
194678
|
import { existsSync as existsSync87, readFileSync as readFileSync94, realpathSync as realpathSync10 } from "node:fs";
|
|
194611
|
-
import { dirname as
|
|
194679
|
+
import { dirname as dirname49, join as join85, resolve as resolve59, sep as sep24 } from "node:path";
|
|
194612
194680
|
async function loadContentConfigQuietly(dir) {
|
|
194613
194681
|
try {
|
|
194614
194682
|
return await loadAppConfigModule(dir);
|
|
@@ -194697,7 +194765,7 @@ async function l10nSourceCatalogFile(dir) {
|
|
|
194697
194765
|
try {
|
|
194698
194766
|
const realDir = realpathSync10(l10nDir);
|
|
194699
194767
|
const realFile = realpathSync10(file2);
|
|
194700
|
-
if (!realDir.startsWith(realpathSync10(dir) + sep24) ||
|
|
194768
|
+
if (!realDir.startsWith(realpathSync10(dir) + sep24) || dirname49(realFile) !== realDir) return null;
|
|
194701
194769
|
return { tag, text: readFileSync94(realFile, "utf8") };
|
|
194702
194770
|
} catch {
|
|
194703
194771
|
return null;
|
|
@@ -195850,13 +195918,13 @@ var init_test = __esm({
|
|
|
195850
195918
|
});
|
|
195851
195919
|
|
|
195852
195920
|
// ../ai-review-gate/paths.mjs
|
|
195853
|
-
import { resolve as resolve61, dirname as
|
|
195921
|
+
import { resolve as resolve61, dirname as dirname50 } from "node:path";
|
|
195854
195922
|
import { fileURLToPath as fileURLToPath31 } from "node:url";
|
|
195855
195923
|
var REPO_ROOT6;
|
|
195856
195924
|
var init_paths3 = __esm({
|
|
195857
195925
|
"../ai-review-gate/paths.mjs"() {
|
|
195858
195926
|
init_define_HHP_CATALOG();
|
|
195859
|
-
REPO_ROOT6 = resolve61(
|
|
195927
|
+
REPO_ROOT6 = resolve61(dirname50(fileURLToPath31(import.meta.url)), "../..");
|
|
195860
195928
|
}
|
|
195861
195929
|
});
|
|
195862
195930
|
|
|
@@ -195888,7 +195956,7 @@ var init_policy = __esm({
|
|
|
195888
195956
|
// ../pre-pr-review/scope.mjs
|
|
195889
195957
|
import { execFileSync as execFileSync6 } from "node:child_process";
|
|
195890
195958
|
import { createHash as createHash38 } from "node:crypto";
|
|
195891
|
-
import { resolve as resolve62, dirname as
|
|
195959
|
+
import { resolve as resolve62, dirname as dirname51, isAbsolute as isAbsolute10, join as join88 } from "node:path";
|
|
195892
195960
|
import { fileURLToPath as fileURLToPath32 } from "node:url";
|
|
195893
195961
|
function resolveRepoRoot2(cwd = process.cwd()) {
|
|
195894
195962
|
let top;
|
|
@@ -195926,7 +195994,7 @@ var init_scope = __esm({
|
|
|
195926
195994
|
init_command();
|
|
195927
195995
|
init_policy();
|
|
195928
195996
|
init_paths3();
|
|
195929
|
-
REPO_ROOT7 = resolve62(
|
|
195997
|
+
REPO_ROOT7 = resolve62(dirname51(fileURLToPath32(import.meta.url)), "../..");
|
|
195930
195998
|
BASE_REF = process.env.PRE_PR_REVIEW_BASE || "origin/master";
|
|
195931
195999
|
}
|
|
195932
196000
|
});
|
|
@@ -195943,7 +196011,7 @@ import {
|
|
|
195943
196011
|
} from "node:fs";
|
|
195944
196012
|
import { createHash as createHash39 } from "node:crypto";
|
|
195945
196013
|
import { tmpdir as tmpdir7 } from "node:os";
|
|
195946
|
-
import { basename as basename23, dirname as
|
|
196014
|
+
import { basename as basename23, dirname as dirname52, join as join89, resolve as resolve63 } from "node:path";
|
|
195947
196015
|
import { pathToFileURL as pathToFileURL7 } from "node:url";
|
|
195948
196016
|
function isValidationMetadata(path2) {
|
|
195949
196017
|
return VALIDATION_METADATA.has(path2) || /(^|[\\/])\.himi([\\/]|$)/.test(path2);
|
|
@@ -196109,7 +196177,7 @@ function seed(repo, commands) {
|
|
|
196109
196177
|
}
|
|
196110
196178
|
function write(repo, rel2, body) {
|
|
196111
196179
|
const absolute2 = resolve63(repo, rel2);
|
|
196112
|
-
mkdirSync38(
|
|
196180
|
+
mkdirSync38(dirname52(absolute2), { recursive: true });
|
|
196113
196181
|
writeFileSync38(absolute2, body);
|
|
196114
196182
|
}
|
|
196115
196183
|
function selfTestRepo({ withBase }) {
|
|
@@ -196801,7 +196869,7 @@ var init_attestation = __esm({
|
|
|
196801
196869
|
|
|
196802
196870
|
// src/ux-evidence.ts
|
|
196803
196871
|
import { existsSync as existsSync91, mkdirSync as mkdirSync40, readFileSync as readFileSync100, writeFileSync as writeFileSync40 } from "node:fs";
|
|
196804
|
-
import { dirname as
|
|
196872
|
+
import { dirname as dirname53, isAbsolute as isAbsolute11, join as join92, relative as relative20, resolve as resolve65 } from "node:path";
|
|
196805
196873
|
function isNativePlatform(value2) {
|
|
196806
196874
|
return typeof value2 === "string" && NATIVE_PLATFORMS.includes(value2);
|
|
196807
196875
|
}
|
|
@@ -196845,7 +196913,7 @@ function recordedRenderWidths(content) {
|
|
|
196845
196913
|
return renderEvidenceEntries(evidence).map((entry) => entry.width);
|
|
196846
196914
|
}
|
|
196847
196915
|
function writeEvidence(path2, evidence) {
|
|
196848
|
-
mkdirSync40(
|
|
196916
|
+
mkdirSync40(dirname53(path2), { recursive: true });
|
|
196849
196917
|
writeFileSync40(path2, JSON.stringify(evidence, null, 2) + "\n");
|
|
196850
196918
|
}
|
|
196851
196919
|
function recordedFilePath(dir, file2) {
|
|
@@ -199120,7 +199188,7 @@ var init_cli_bridge = __esm({
|
|
|
199120
199188
|
// src/mcp/file-tools.ts
|
|
199121
199189
|
import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync29, mkdirSync as mkdirSync41, openSync as openSync7, readdirSync as readdirSync42, readFileSync as readFileSync108, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync26, statSync as statSync26, writeSync as writeSync2, existsSync as existsSync97 } from "node:fs";
|
|
199122
199190
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
199123
|
-
import { dirname as
|
|
199191
|
+
import { dirname as dirname54, isAbsolute as isAbsolute13, join as join98, relative as relative21, resolve as resolve68, sep as sep26 } from "node:path";
|
|
199124
199192
|
import * as z2 from "zod";
|
|
199125
199193
|
function within(root, p2) {
|
|
199126
199194
|
return p2 === root || p2.startsWith(root.endsWith(sep26) ? root : root + sep26);
|
|
@@ -199129,7 +199197,7 @@ function realish(p2) {
|
|
|
199129
199197
|
let cur = p2;
|
|
199130
199198
|
const tail = [];
|
|
199131
199199
|
while (!existsSync97(cur)) {
|
|
199132
|
-
const up2 =
|
|
199200
|
+
const up2 = dirname54(cur);
|
|
199133
199201
|
if (up2 === cur) break;
|
|
199134
199202
|
tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
|
|
199135
199203
|
cur = up2;
|
|
@@ -199175,7 +199243,7 @@ function onDiskSpelling(abs) {
|
|
|
199175
199243
|
let cur = abs;
|
|
199176
199244
|
const tail = [];
|
|
199177
199245
|
while (!existsSync97(cur)) {
|
|
199178
|
-
const up2 =
|
|
199246
|
+
const up2 = dirname54(cur);
|
|
199179
199247
|
if (up2 === cur) break;
|
|
199180
199248
|
tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
|
|
199181
199249
|
cur = up2;
|
|
@@ -199206,10 +199274,10 @@ function confinedPath(appDir3, rel2) {
|
|
|
199206
199274
|
return abs;
|
|
199207
199275
|
}
|
|
199208
199276
|
function writeNoFollow2(appDir3, abs, content) {
|
|
199209
|
-
mkdirSync41(
|
|
199277
|
+
mkdirSync41(dirname54(abs), { recursive: true });
|
|
199210
199278
|
const before = symlinkComponent(appDir3, abs);
|
|
199211
199279
|
if (before) throw new Error(`"${before}" became a symlink`);
|
|
199212
|
-
const tmp = join98(
|
|
199280
|
+
const tmp = join98(dirname54(abs), `.himi-write-${process.pid}-${randomBytes4(6).toString("hex")}.tmp`);
|
|
199213
199281
|
const fd = openSync7(tmp, constants6.O_WRONLY | constants6.O_CREAT | constants6.O_EXCL | (constants6.O_NOFOLLOW ?? 0), 420);
|
|
199214
199282
|
try {
|
|
199215
199283
|
writeSync2(fd, content);
|
|
@@ -199217,9 +199285,9 @@ function writeNoFollow2(appDir3, abs, content) {
|
|
|
199217
199285
|
closeSync8(fd);
|
|
199218
199286
|
}
|
|
199219
199287
|
const link4 = symlinkComponent(appDir3, abs);
|
|
199220
|
-
if (link4 || !within(realpathSync12(appDir3), realpathSync12(
|
|
199288
|
+
if (link4 || !within(realpathSync12(appDir3), realpathSync12(dirname54(abs)))) {
|
|
199221
199289
|
rmSync26(tmp, { force: true });
|
|
199222
|
-
throw new Error(`"${link4 ?? relative21(appDir3,
|
|
199290
|
+
throw new Error(`"${link4 ?? relative21(appDir3, dirname54(abs))}" changed into a link while writing`);
|
|
199223
199291
|
}
|
|
199224
199292
|
renameSync15(tmp, abs);
|
|
199225
199293
|
}
|
|
@@ -199380,7 +199448,7 @@ var init_file_tools = __esm({
|
|
|
199380
199448
|
|
|
199381
199449
|
// src/mcp/iap-tools.ts
|
|
199382
199450
|
import * as z3 from "zod";
|
|
199383
|
-
import { dirname as
|
|
199451
|
+
import { dirname as dirname55, relative as relative22, resolve as resolve69 } from "node:path";
|
|
199384
199452
|
async function paths(args, deps) {
|
|
199385
199453
|
const base2 = await deps.defaultDir();
|
|
199386
199454
|
const result = { ...args, workspaceDir: base2 };
|
|
@@ -199404,7 +199472,7 @@ function workspaceInputRefusal(args, deps, context) {
|
|
|
199404
199472
|
if (typeof file2 !== "string") return null;
|
|
199405
199473
|
const doc = JSON.parse(deps.readFile(file2).toString("utf8"));
|
|
199406
199474
|
const manifest2 = args.plan ? doc.manifest : doc;
|
|
199407
|
-
const base2 = args.plan ? resolve69(typeof doc.manifestDir === "string" ? doc.manifestDir : process.cwd()) :
|
|
199475
|
+
const base2 = args.plan ? resolve69(typeof doc.manifestDir === "string" ? doc.manifestDir : process.cwd()) : dirname55(file2);
|
|
199408
199476
|
for (const item2 of manifest2?.items ?? []) {
|
|
199409
199477
|
if (typeof item2.reviewScreenshot !== "string") continue;
|
|
199410
199478
|
const why = workspaceRefusal(context.boundary, resolve69(base2, item2.reviewScreenshot));
|
|
@@ -200688,13 +200756,13 @@ import * as __ascBuiltin1 from "node:path";
|
|
|
200688
200756
|
function scrubEvent(event) {
|
|
200689
200757
|
return JSON.parse(JSON.stringify(event), (_key, value2) => typeof value2 === "string" ? scrubSecrets(value2) : value2);
|
|
200690
200758
|
}
|
|
200691
|
-
var appendFile, mkdir, readFile2,
|
|
200759
|
+
var appendFile, mkdir, readFile2, dirname56, MemoryAuditSink, JsonlAuditSink;
|
|
200692
200760
|
var init_audit = __esm({
|
|
200693
200761
|
"../../node_modules/@wix/asc-core/dist/ports/audit.js"() {
|
|
200694
200762
|
init_define_HHP_CATALOG();
|
|
200695
200763
|
init_scrub();
|
|
200696
200764
|
({ appendFile, mkdir, readFile: readFile2 } = __ascBuiltin02);
|
|
200697
|
-
({ dirname:
|
|
200765
|
+
({ dirname: dirname56 } = __ascBuiltin1);
|
|
200698
200766
|
MemoryAuditSink = class {
|
|
200699
200767
|
events = [];
|
|
200700
200768
|
async append(event) {
|
|
@@ -200708,7 +200776,7 @@ var init_audit = __esm({
|
|
|
200708
200776
|
this.path = path2;
|
|
200709
200777
|
}
|
|
200710
200778
|
async append(event) {
|
|
200711
|
-
this.ready ??= mkdir(
|
|
200779
|
+
this.ready ??= mkdir(dirname56(this.path), { recursive: true });
|
|
200712
200780
|
await this.ready;
|
|
200713
200781
|
await appendFile(this.path, `${JSON.stringify(scrubEvent(event))}
|
|
200714
200782
|
`, { flag: "a" });
|
|
@@ -201932,7 +202000,7 @@ function parseStored(text32, where) {
|
|
|
201932
202000
|
throw new AuthError(`the sign-in stored in ${where} is incomplete`);
|
|
201933
202001
|
return user;
|
|
201934
202002
|
}
|
|
201935
|
-
var spawn7, createHash47, randomBytes5, chmod, mkdir4, readFile4, rename2, rm3, writeFile3, createServer4, homedir10,
|
|
202003
|
+
var spawn7, createHash47, randomBytes5, chmod, mkdir4, readFile4, rename2, rm3, writeFile3, createServer4, homedir10, dirname57, join102, PLAY_SCOPES, TOKEN_URI, RefreshTokenAuth, execCommand, GOOGLE_OAUTH_HOSTS, FileCredentialStore, SECURITY_NOT_FOUND, KeychainCredentialStore;
|
|
201936
202004
|
var init_auth2 = __esm({
|
|
201937
202005
|
"../../node_modules/@wix/gplay-api/dist/auth.js"() {
|
|
201938
202006
|
init_define_HHP_CATALOG();
|
|
@@ -201944,7 +202012,7 @@ var init_auth2 = __esm({
|
|
|
201944
202012
|
({ chmod, mkdir: mkdir4, readFile: readFile4, rename: rename2, rm: rm3, writeFile: writeFile3 } = __ascBuiltin24);
|
|
201945
202013
|
({ createServer: createServer4 } = __ascBuiltin3);
|
|
201946
202014
|
({ homedir: homedir10 } = __ascBuiltin4);
|
|
201947
|
-
({ dirname:
|
|
202015
|
+
({ dirname: dirname57, join: join102 } = __ascBuiltin5);
|
|
201948
202016
|
PLAY_SCOPES = ["https://www.googleapis.com/auth/androidpublisher", "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase"];
|
|
201949
202017
|
TOKEN_URI = `https://${HOSTS.oauth}/token`;
|
|
201950
202018
|
RefreshTokenAuth = class {
|
|
@@ -202000,7 +202068,7 @@ var init_auth2 = __esm({
|
|
|
202000
202068
|
return parseStored(text32, this.path);
|
|
202001
202069
|
}
|
|
202002
202070
|
async save(user) {
|
|
202003
|
-
await mkdir4(
|
|
202071
|
+
await mkdir4(dirname57(this.path), { recursive: true, mode: 448 });
|
|
202004
202072
|
const temp = `${this.path}.${process.pid}.tmp`;
|
|
202005
202073
|
await writeFile3(temp, JSON.stringify(user), { mode: 384 });
|
|
202006
202074
|
await chmod(temp, 384);
|
|
@@ -202183,7 +202251,7 @@ async function readClosedTestRecord(stateDir2, packageName) {
|
|
|
202183
202251
|
}
|
|
202184
202252
|
async function writeClosedTestRecord(stateDir2, packageName, record6) {
|
|
202185
202253
|
const path2 = recordPath(stateDir2, packageName);
|
|
202186
|
-
await mkdir5(
|
|
202254
|
+
await mkdir5(dirname58(path2), { recursive: true, mode: 448 });
|
|
202187
202255
|
await writeFile4(path2, `${JSON.stringify(record6, null, 2)}
|
|
202188
202256
|
`);
|
|
202189
202257
|
}
|
|
@@ -202225,14 +202293,14 @@ async function setUpClosedTest(edit, setup) {
|
|
|
202225
202293
|
}
|
|
202226
202294
|
return { createdTrack: !existing, replaced };
|
|
202227
202295
|
}
|
|
202228
|
-
var mkdir5, readFile5, writeFile4,
|
|
202296
|
+
var mkdir5, readFile5, writeFile4, dirname58, join103, REQUIRED_TESTERS, REQUIRED_DAYS, CLOSED_TEST_RULE, DAY_MS, LATEST_LOCAL_OFFSET_MS, DATE, recordPath, toDay;
|
|
202229
202297
|
var init_closedtest = __esm({
|
|
202230
202298
|
"../../node_modules/@wix/gplay-api/dist/closedtest.js"() {
|
|
202231
202299
|
init_define_HHP_CATALOG();
|
|
202232
202300
|
init_errors3();
|
|
202233
202301
|
init_rollout();
|
|
202234
202302
|
({ mkdir: mkdir5, readFile: readFile5, writeFile: writeFile4 } = __ascBuiltin07);
|
|
202235
|
-
({ dirname:
|
|
202303
|
+
({ dirname: dirname58, join: join103 } = __ascBuiltin16);
|
|
202236
202304
|
REQUIRED_TESTERS = 12;
|
|
202237
202305
|
REQUIRED_DAYS = 14;
|
|
202238
202306
|
CLOSED_TEST_RULE = `${REQUIRED_TESTERS} testers opted in for ${REQUIRED_DAYS} consecutive days; opting out restarts the count. Google's API can't report any of it, so check Play Console before applying.`;
|
|
@@ -206572,9 +206640,9 @@ import * as __ascBuiltin32 from "node:util";
|
|
|
206572
206640
|
async function realPathOf(path2) {
|
|
206573
206641
|
const rest = [];
|
|
206574
206642
|
let dir = resolve72(path2);
|
|
206575
|
-
while (!await exists(dir) &&
|
|
206643
|
+
while (!await exists(dir) && dirname59(dir) !== dir) {
|
|
206576
206644
|
rest.unshift(basename26(dir));
|
|
206577
|
-
dir =
|
|
206645
|
+
dir = dirname59(dir);
|
|
206578
206646
|
}
|
|
206579
206647
|
try {
|
|
206580
206648
|
return join106(await realpath(dir), ...rest);
|
|
@@ -206583,10 +206651,10 @@ async function realPathOf(path2) {
|
|
|
206583
206651
|
}
|
|
206584
206652
|
}
|
|
206585
206653
|
async function insideGitRepository(path2) {
|
|
206586
|
-
for (let dir =
|
|
206654
|
+
for (let dir = dirname59(await realPathOf(path2)); ; dir = dirname59(dir)) {
|
|
206587
206655
|
if (await exists(join106(dir, ".git")))
|
|
206588
206656
|
return true;
|
|
206589
|
-
if (
|
|
206657
|
+
if (dirname59(dir) === dir)
|
|
206590
206658
|
return false;
|
|
206591
206659
|
}
|
|
206592
206660
|
}
|
|
@@ -206610,7 +206678,7 @@ async function generateUploadKey(options2) {
|
|
|
206610
206678
|
throw new GplayError("refused", `${file2} already exists; move it first`);
|
|
206611
206679
|
if (await insideGitRepository(keystore))
|
|
206612
206680
|
throw new GplayError("refused", `${keystore} is inside a Git repository, where a commit could publish it. Choose a path outside any repository.`);
|
|
206613
|
-
await mkdir7(
|
|
206681
|
+
await mkdir7(dirname59(keystore), { recursive: true, mode: 448 });
|
|
206614
206682
|
if (await insideGitRepository(keystore))
|
|
206615
206683
|
throw new GplayError("refused", `${keystore} is inside a Git repository, where a commit could publish it. Choose a path outside any repository.`);
|
|
206616
206684
|
const password = randomBytes8(32).toString("base64url");
|
|
@@ -206635,7 +206703,7 @@ async function generateUploadKey(options2) {
|
|
|
206635
206703
|
throw e2;
|
|
206636
206704
|
}
|
|
206637
206705
|
}
|
|
206638
|
-
var generateKeyPair, randomBytes8, mkdir7, realpath, rm5, stat4, writeFile5, basename26,
|
|
206706
|
+
var generateKeyPair, randomBytes8, mkdir7, realpath, rm5, stat4, writeFile5, basename26, dirname59, join106, resolve72, promisify, VALIDITY_DAYS, DAY_MS2, generate, exists;
|
|
206639
206707
|
var init_keygen = __esm({
|
|
206640
206708
|
"../../node_modules/@wix/gplay-api/dist/keygen.js"() {
|
|
206641
206709
|
init_define_HHP_CATALOG();
|
|
@@ -206645,7 +206713,7 @@ var init_keygen = __esm({
|
|
|
206645
206713
|
init_x509();
|
|
206646
206714
|
({ generateKeyPair, randomBytes: randomBytes8 } = __ascBuiltin014);
|
|
206647
206715
|
({ mkdir: mkdir7, realpath, rm: rm5, stat: stat4, writeFile: writeFile5 } = __ascBuiltin110);
|
|
206648
|
-
({ basename: basename26, dirname:
|
|
206716
|
+
({ basename: basename26, dirname: dirname59, join: join106, resolve: resolve72 } = __ascBuiltin25);
|
|
206649
206717
|
({ promisify } = __ascBuiltin32);
|
|
206650
206718
|
VALIDITY_DAYS = 1e4;
|
|
206651
206719
|
DAY_MS2 = 864e5;
|
|
@@ -207468,7 +207536,7 @@ async function readPlanRecord(stateDir2, packageName) {
|
|
|
207468
207536
|
}
|
|
207469
207537
|
async function writePlanRecord(stateDir2, packageName, record6) {
|
|
207470
207538
|
const path2 = planPath(stateDir2, packageName);
|
|
207471
|
-
await mkdir10(
|
|
207539
|
+
await mkdir10(dirname60(path2), { recursive: true, mode: 448 });
|
|
207472
207540
|
await writeFile8(path2, `${JSON.stringify(record6, null, 2)}
|
|
207473
207541
|
`);
|
|
207474
207542
|
}
|
|
@@ -207510,7 +207578,7 @@ function buildPlan(context, record6, observed) {
|
|
|
207510
207578
|
};
|
|
207511
207579
|
});
|
|
207512
207580
|
}
|
|
207513
|
-
var mkdir10, readdir4, readFile9, writeFile8,
|
|
207581
|
+
var mkdir10, readdir4, readFile9, writeFile8, dirname60, join109, CONSOLE, q3, yesNo2, ids, declareCmd, known, signer, wixSigned, yesNo, ask2, appContent, account, home, STEPS, STANDARD_OPEN_TRACKS, planPath, PLAN_STEP_IDS, DECLARE_FORM_PLAN_STEP, DECLARATION_TITLE_PLAN_STEP;
|
|
207514
207582
|
var init_plan4 = __esm({
|
|
207515
207583
|
"../../node_modules/@wix/gplay-api/dist/plan.js"() {
|
|
207516
207584
|
init_define_HHP_CATALOG();
|
|
@@ -207518,7 +207586,7 @@ var init_plan4 = __esm({
|
|
|
207518
207586
|
init_owner_key();
|
|
207519
207587
|
init_data_safety_generate();
|
|
207520
207588
|
({ mkdir: mkdir10, readdir: readdir4, readFile: readFile9, writeFile: writeFile8 } = __ascBuiltin018);
|
|
207521
|
-
({ dirname:
|
|
207589
|
+
({ dirname: dirname60, join: join109 } = __ascBuiltin113);
|
|
207522
207590
|
CONSOLE = "https://play.google.com/console/u/0/developers";
|
|
207523
207591
|
q3 = (value2, placeholder3) => value2 ? /^[\w@./:+-]+$/.test(value2) ? value2 : `"${value2.replace(/(["\\$`])/g, "\\$1")}"` : `<${placeholder3}>`;
|
|
207524
207592
|
yesNo2 = (value2) => value2 === void 0 ? "<no|yes>" : value2 ? "yes" : "no";
|
|
@@ -210344,7 +210412,7 @@ async function syncDir(dir) {
|
|
|
210344
210412
|
}
|
|
210345
210413
|
}
|
|
210346
210414
|
async function atomicWrite(file2, content) {
|
|
210347
|
-
const dir =
|
|
210415
|
+
const dir = dirname61(file2);
|
|
210348
210416
|
await mkdir12(dir, { recursive: true, mode: 448 });
|
|
210349
210417
|
const tmp = join113(dir, `.${randomBytes9(6).toString("hex")}.tmp`);
|
|
210350
210418
|
try {
|
|
@@ -210364,13 +210432,13 @@ async function atomicWrite(file2, content) {
|
|
|
210364
210432
|
}
|
|
210365
210433
|
await syncDir(dir);
|
|
210366
210434
|
}
|
|
210367
|
-
var randomBytes9, mkdir12, open3, rename4, unlink2,
|
|
210435
|
+
var randomBytes9, mkdir12, open3, rename4, unlink2, dirname61, join113, RETRY_CODES, RENAME_TRIES, sleep, errCode;
|
|
210368
210436
|
var init_atomic = __esm({
|
|
210369
210437
|
"../../node_modules/@wix/asc-core/dist/store-record/atomic.js"() {
|
|
210370
210438
|
init_define_HHP_CATALOG();
|
|
210371
210439
|
({ randomBytes: randomBytes9 } = __ascBuiltin026);
|
|
210372
210440
|
({ mkdir: mkdir12, open: open3, rename: rename4, unlink: unlink2 } = __ascBuiltin119);
|
|
210373
|
-
({ dirname:
|
|
210441
|
+
({ dirname: dirname61, join: join113 } = __ascBuiltin29);
|
|
210374
210442
|
RETRY_CODES = /* @__PURE__ */ new Set(["EPERM", "EBUSY", "EACCES"]);
|
|
210375
210443
|
RENAME_TRIES = 5;
|
|
210376
210444
|
sleep = (ms2) => new Promise((r3) => setTimeout(r3, ms2));
|
|
@@ -210414,7 +210482,7 @@ async function withFileLock(file2, fn2, opts = {}) {
|
|
|
210414
210482
|
}
|
|
210415
210483
|
async function acquire(lock, waitMs, staleMs) {
|
|
210416
210484
|
const deadline = Date.now() + waitMs;
|
|
210417
|
-
await mkdir13(
|
|
210485
|
+
await mkdir13(dirname62(lock), { recursive: true, mode: 448 });
|
|
210418
210486
|
const me2 = newOwner();
|
|
210419
210487
|
for (let delay = 1; ; delay = Math.min(delay * 2, 16)) {
|
|
210420
210488
|
if (await createExclusive(lock, me2))
|
|
@@ -210558,7 +210626,7 @@ async function removeIfId(path2, id, staleMs, mustBeStale, depth) {
|
|
|
210558
210626
|
}
|
|
210559
210627
|
return false;
|
|
210560
210628
|
}
|
|
210561
|
-
var randomBytes10, link2, mkdir13, open4, unlink3, utimes, writeFile11, hostname3,
|
|
210629
|
+
var randomBytes10, link2, mkdir13, open4, unlink3, utimes, writeFile11, hostname3, dirname62, resolve75, WAIT_MS, STALE_MS, MAX_CLAIM_DEPTH, HOST2, sleep2, newOwner, queues;
|
|
210562
210630
|
var init_lock2 = __esm({
|
|
210563
210631
|
"../../node_modules/@wix/asc-core/dist/store-record/lock.js"() {
|
|
210564
210632
|
init_define_HHP_CATALOG();
|
|
@@ -210566,7 +210634,7 @@ var init_lock2 = __esm({
|
|
|
210566
210634
|
({ randomBytes: randomBytes10 } = __ascBuiltin027);
|
|
210567
210635
|
({ link: link2, mkdir: mkdir13, open: open4, unlink: unlink3, utimes, writeFile: writeFile11 } = __ascBuiltin120);
|
|
210568
210636
|
({ hostname: hostname3 } = __ascBuiltin210);
|
|
210569
|
-
({ dirname:
|
|
210637
|
+
({ dirname: dirname62, resolve: resolve75 } = __ascBuiltin33);
|
|
210570
210638
|
WAIT_MS = 6e4;
|
|
210571
210639
|
STALE_MS = 3e4;
|
|
210572
210640
|
MAX_CLAIM_DEPTH = 3;
|
|
@@ -210796,7 +210864,7 @@ var init_envelope = __esm({
|
|
|
210796
210864
|
import * as __ascBuiltin028 from "node:fs/promises";
|
|
210797
210865
|
import * as __ascBuiltin121 from "node:path";
|
|
210798
210866
|
async function appendLine(file2, line) {
|
|
210799
|
-
await mkdir14(
|
|
210867
|
+
await mkdir14(dirname63(file2), { recursive: true, mode: 448 });
|
|
210800
210868
|
const fh = await open5(file2, "a+", 384);
|
|
210801
210869
|
try {
|
|
210802
210870
|
const { size } = await fh.stat();
|
|
@@ -210835,12 +210903,12 @@ async function readLines(file2) {
|
|
|
210835
210903
|
}
|
|
210836
210904
|
return out2;
|
|
210837
210905
|
}
|
|
210838
|
-
var mkdir14, open5, readFile13,
|
|
210906
|
+
var mkdir14, open5, readFile13, dirname63;
|
|
210839
210907
|
var init_logs = __esm({
|
|
210840
210908
|
"../../node_modules/@wix/asc-core/dist/store-record/logs.js"() {
|
|
210841
210909
|
init_define_HHP_CATALOG();
|
|
210842
210910
|
({ mkdir: mkdir14, open: open5, readFile: readFile13 } = __ascBuiltin028);
|
|
210843
|
-
({ dirname:
|
|
210911
|
+
({ dirname: dirname63 } = __ascBuiltin121);
|
|
210844
210912
|
}
|
|
210845
210913
|
});
|
|
210846
210914
|
|
|
@@ -215586,10 +215654,10 @@ import * as __ascBuiltin34 from "node:path";
|
|
|
215586
215654
|
function assertOutsideRepo(what, path2, fs2 = nodeFs) {
|
|
215587
215655
|
if (!isAbsolute14(path2))
|
|
215588
215656
|
throw new CredentialError(`${what} must be an absolute path outside any repository`);
|
|
215589
|
-
for (let dir =
|
|
215657
|
+
for (let dir = dirname64(resolve77(path2)); ; dir = dirname64(dir)) {
|
|
215590
215658
|
if (fs2.exists(join117(dir, ".git")))
|
|
215591
215659
|
throw new CredentialError(`${what} is inside the git work tree at ${dir}; keep credentials outside every repository`);
|
|
215592
|
-
if (
|
|
215660
|
+
if (dirname64(dir) === dir)
|
|
215593
215661
|
return;
|
|
215594
215662
|
}
|
|
215595
215663
|
}
|
|
@@ -215637,7 +215705,7 @@ function readKey(fs2, path2, what, providerId) {
|
|
|
215637
215705
|
throw new CredentialError(`${what} could not be read`, providerId, "unavailable");
|
|
215638
215706
|
}
|
|
215639
215707
|
}
|
|
215640
|
-
var chmodSync3, existsSync100, mkdirSync43, readdirSync45, readFileSync112, unlinkSync6, writeFileSync42, randomBytes11, homedir13,
|
|
215708
|
+
var chmodSync3, existsSync100, mkdirSync43, readdirSync45, readFileSync112, unlinkSync6, writeFileSync42, randomBytes11, homedir13, dirname64, isAbsolute14, join117, resolve77, nodeFs, TRUTHY2, EnvCredentialProvider, PROFILE_FIELDS, FileCredentialProvider;
|
|
215641
215709
|
var init_local = __esm({
|
|
215642
215710
|
"../../node_modules/@wix/asc-core/dist/providers/local.js"() {
|
|
215643
215711
|
init_define_HHP_CATALOG();
|
|
@@ -215647,7 +215715,7 @@ var init_local = __esm({
|
|
|
215647
215715
|
({ chmodSync: chmodSync3, existsSync: existsSync100, mkdirSync: mkdirSync43, readdirSync: readdirSync45, readFileSync: readFileSync112, unlinkSync: unlinkSync6, writeFileSync: writeFileSync42 } = __ascBuiltin038);
|
|
215648
215716
|
({ randomBytes: randomBytes11 } = __ascBuiltin125);
|
|
215649
215717
|
({ homedir: homedir13 } = __ascBuiltin212);
|
|
215650
|
-
({ dirname:
|
|
215718
|
+
({ dirname: dirname64, isAbsolute: isAbsolute14, join: join117, resolve: resolve77 } = __ascBuiltin34);
|
|
215651
215719
|
nodeFs = {
|
|
215652
215720
|
readFile: (p2) => readFileSync112(p2, "utf8"),
|
|
215653
215721
|
exists: existsSync100,
|
|
@@ -215901,7 +215969,7 @@ var init_local = __esm({
|
|
|
215901
215969
|
} catch {
|
|
215902
215970
|
}
|
|
215903
215971
|
this.fs.remove?.(jsonPath);
|
|
215904
|
-
if (keyPath &&
|
|
215972
|
+
if (keyPath && dirname64(resolve77(keyPath)) === resolve77(this.dir) && /\.p8(\.dpapi)?$/.test(keyPath))
|
|
215905
215973
|
this.fs.remove?.(keyPath);
|
|
215906
215974
|
return true;
|
|
215907
215975
|
}
|
|
@@ -231003,9 +231071,9 @@ function checkedPem(pem) {
|
|
|
231003
231071
|
function realPathOf2(path2) {
|
|
231004
231072
|
const rest = [];
|
|
231005
231073
|
let d2 = resolve78(path2);
|
|
231006
|
-
while (!existsSync101(d2) &&
|
|
231074
|
+
while (!existsSync101(d2) && dirname65(d2) !== d2) {
|
|
231007
231075
|
rest.unshift(basename29(d2));
|
|
231008
|
-
d2 =
|
|
231076
|
+
d2 = dirname65(d2);
|
|
231009
231077
|
}
|
|
231010
231078
|
try {
|
|
231011
231079
|
return join123(realpathSync14(d2), ...rest);
|
|
@@ -231014,10 +231082,10 @@ function realPathOf2(path2) {
|
|
|
231014
231082
|
}
|
|
231015
231083
|
}
|
|
231016
231084
|
function gitCheckoutOf(path2) {
|
|
231017
|
-
for (let d2 = realPathOf2(path2); ; d2 =
|
|
231085
|
+
for (let d2 = realPathOf2(path2); ; d2 = dirname65(d2)) {
|
|
231018
231086
|
if (existsSync101(join123(d2, ".git")))
|
|
231019
231087
|
return d2;
|
|
231020
|
-
if (
|
|
231088
|
+
if (dirname65(d2) === d2)
|
|
231021
231089
|
return void 0;
|
|
231022
231090
|
}
|
|
231023
231091
|
}
|
|
@@ -231071,14 +231139,14 @@ function reserveKeyFile(dir, keyId) {
|
|
|
231071
231139
|
}
|
|
231072
231140
|
};
|
|
231073
231141
|
}
|
|
231074
|
-
var createPrivateKey6, closeSync9, existsSync101, mkdirSync44, openSync8, realpathSync14, statSync30, unlinkSync7, writeSync3, basename29,
|
|
231142
|
+
var createPrivateKey6, closeSync9, existsSync101, mkdirSync44, openSync8, realpathSync14, statSync30, unlinkSync7, writeSync3, basename29, dirname65, isAbsolute15, join123, resolve78, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
|
|
231075
231143
|
var init_api_keys = __esm({
|
|
231076
231144
|
"../../node_modules/@wix/asc-web/dist/api-keys.js"() {
|
|
231077
231145
|
init_define_HHP_CATALOG();
|
|
231078
231146
|
init_dist3();
|
|
231079
231147
|
({ createPrivateKey: createPrivateKey6 } = __ascBuiltin051);
|
|
231080
231148
|
({ closeSync: closeSync9, existsSync: existsSync101, mkdirSync: mkdirSync44, openSync: openSync8, realpathSync: realpathSync14, statSync: statSync30, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
|
|
231081
|
-
({ basename: basename29, dirname:
|
|
231149
|
+
({ basename: basename29, dirname: dirname65, isAbsolute: isAbsolute15, join: join123, resolve: resolve78 } = __ascBuiltin217);
|
|
231082
231150
|
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"];
|
|
231083
231151
|
DOWNLOAD_ATTEMPTS = 3;
|
|
231084
231152
|
ApiKeysApi = class {
|
|
@@ -233555,7 +233623,7 @@ function writeSessionBundle(path2, bundle, overwrite) {
|
|
|
233555
233623
|
}
|
|
233556
233624
|
if (exists2 && !overwrite)
|
|
233557
233625
|
throw new SessionBundleError(`${path2} already exists; pass --overwrite to replace it`);
|
|
233558
|
-
const staging = join128(
|
|
233626
|
+
const staging = join128(dirname66(path2), `.asc-node-session-${randomBytes16(6).toString("hex")}`);
|
|
233559
233627
|
const fd = openSync10(staging, constants9.O_WRONLY | constants9.O_CREAT | constants9.O_EXCL | constants9.O_NOFOLLOW, 384);
|
|
233560
233628
|
try {
|
|
233561
233629
|
writeSync5(fd, `${JSON.stringify(bundle, null, 2)}
|
|
@@ -233581,7 +233649,7 @@ function readSessionBundle(path2) {
|
|
|
233581
233649
|
throw new SessionBundleError(`the session bundle is larger than ${MAX_SESSION_BUNDLE_BYTES} bytes`);
|
|
233582
233650
|
return readFileSync116(path2, "utf8");
|
|
233583
233651
|
}
|
|
233584
|
-
var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync33, mkdirSync47, openSync10, readFileSync116, renameSync17, rmSync28, statSync35, writeSync5, createHash68, randomBytes16,
|
|
233652
|
+
var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync33, mkdirSync47, openSync10, readFileSync116, renameSync17, rmSync28, statSync35, writeSync5, createHash68, randomBytes16, dirname66, isAbsolute16, join128, resolve80, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
|
|
233585
233653
|
var init_session_transfer = __esm({
|
|
233586
233654
|
"../../node_modules/@wix/asc-web/dist/session-transfer.js"() {
|
|
233587
233655
|
init_define_HHP_CATALOG();
|
|
@@ -233591,7 +233659,7 @@ var init_session_transfer = __esm({
|
|
|
233591
233659
|
init_session();
|
|
233592
233660
|
({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync33, mkdirSync: mkdirSync47, openSync: openSync10, readFileSync: readFileSync116, renameSync: renameSync17, rmSync: rmSync28, statSync: statSync35, writeSync: writeSync5 } = __ascBuiltin058);
|
|
233593
233661
|
({ createHash: createHash68, randomBytes: randomBytes16 } = __ascBuiltin139);
|
|
233594
|
-
({ dirname:
|
|
233662
|
+
({ dirname: dirname66, isAbsolute: isAbsolute16, join: join128, resolve: resolve80 } = __ascBuiltin220);
|
|
233595
233663
|
SESSION_BUNDLE_KIND = "asc-node-web-session";
|
|
233596
233664
|
SESSION_BUNDLE_VERSION = 1;
|
|
233597
233665
|
MAX_SESSION_BUNDLE_BYTES = 1 << 20;
|
|
@@ -233609,7 +233677,7 @@ var init_session_transfer = __esm({
|
|
|
233609
233677
|
lockOptions;
|
|
233610
233678
|
box;
|
|
233611
233679
|
persistent = true;
|
|
233612
|
-
constructor(dir, lockDir = join128(
|
|
233680
|
+
constructor(dir, lockDir = join128(dirname66(dir), "web-session-locks"), lockOptions, box) {
|
|
233613
233681
|
this.dir = dir;
|
|
233614
233682
|
this.lockDir = lockDir;
|
|
233615
233683
|
this.lockOptions = lockOptions;
|
|
@@ -245889,7 +245957,7 @@ __export(store_host_exports, {
|
|
|
245889
245957
|
import { spawn as spawn8 } from "node:child_process";
|
|
245890
245958
|
import { existsSync as existsSync104, lstatSync as lstatSync34, readFileSync as readFileSync126, readdirSync as readdirSync49, realpathSync as realpathSync17 } from "node:fs";
|
|
245891
245959
|
import { homedir as homedir16, hostname as hostname6, userInfo as userInfo3 } from "node:os";
|
|
245892
|
-
import { delimiter as delimiter4, dirname as
|
|
245960
|
+
import { delimiter as delimiter4, dirname as dirname67, isAbsolute as isAbsolute18, join as join135, relative as relative26, resolve as resolve87, sep as sep30 } from "node:path";
|
|
245893
245961
|
function storeNodeRefusal(version5 = process.versions.node) {
|
|
245894
245962
|
const major = Number(version5.split(".")[0]);
|
|
245895
245963
|
return Number.isFinite(major) && major >= STORE_MIN_NODE_MAJOR ? void 0 : `App Store submission needs Node ${STORE_MIN_NODE_MAJOR} or newer (this is Node ${version5}). Install a current Node, then run the command again.`;
|
|
@@ -246064,7 +246132,7 @@ function factPathIn(dir, realDir, key4, p2, file2 = STORE_FACTS_FILE) {
|
|
|
246064
246132
|
const path2 = resolve87(base2, p2);
|
|
246065
246133
|
if (path2 === base2 || !path2.startsWith(base2 + sep30)) throw refuse10();
|
|
246066
246134
|
let probe2 = path2;
|
|
246067
|
-
while (!existsSync104(probe2) && probe2 !== base2) probe2 =
|
|
246135
|
+
while (!existsSync104(probe2) && probe2 !== base2) probe2 = dirname67(probe2);
|
|
246068
246136
|
let real;
|
|
246069
246137
|
try {
|
|
246070
246138
|
real = realpathSync17(probe2);
|
|
@@ -248064,7 +248132,7 @@ __export(input_evidence_isolation_exports, {
|
|
|
248064
248132
|
});
|
|
248065
248133
|
async function installInputEvidenceIsolation(dir) {
|
|
248066
248134
|
const { lstatSync: lstatSync44, readdirSync: readdirSync68, readlinkSync: readlinkSync4, realpathSync: realpathSync27 } = await import("node:fs");
|
|
248067
|
-
const { dirname:
|
|
248135
|
+
const { dirname: dirname94, isAbsolute: isAbsolute25, join: join223, relative: relative41, resolve: resolve139, sep: sep37 } = await import("node:path");
|
|
248068
248136
|
const root = resolve139(dir);
|
|
248069
248137
|
const privateDir = join223(root, ".himi");
|
|
248070
248138
|
const privateReal = join223(realpathSync27(root), ".himi") + sep37;
|
|
@@ -248078,7 +248146,7 @@ async function installInputEvidenceIsolation(dir) {
|
|
|
248078
248146
|
if (path2 === recording) {
|
|
248079
248147
|
const link4 = readlinkSync4(path2);
|
|
248080
248148
|
if (isAbsolute25(link4)) return false;
|
|
248081
|
-
const target = resolve139(
|
|
248149
|
+
const target = resolve139(dirname94(path2), link4);
|
|
248082
248150
|
if (!within2(privateDir, target)) return false;
|
|
248083
248151
|
if (realpathSync27(path2) !== join223(realpathSync27(root), relative41(root, target))) return false;
|
|
248084
248152
|
return lstatSync44(target).isFile();
|
|
@@ -249284,7 +249352,7 @@ import { spawnSync as spawnSync11 } from "node:child_process";
|
|
|
249284
249352
|
import { createHash as createHash76 } from "node:crypto";
|
|
249285
249353
|
import { copyFileSync as copyFileSync3, existsSync as existsSync111, mkdirSync as mkdirSync55, mkdtempSync as mkdtempSync9, readFileSync as readFileSync132, rmSync as rmSync31, writeFileSync as writeFileSync52 } from "node:fs";
|
|
249286
249354
|
import { tmpdir as tmpdir10 } from "node:os";
|
|
249287
|
-
import { dirname as
|
|
249355
|
+
import { dirname as dirname70, isAbsolute as isAbsolute19, join as join144, resolve as resolve93 } from "node:path";
|
|
249288
249356
|
import { pathToFileURL as pathToFileURL9 } from "node:url";
|
|
249289
249357
|
import * as cheerio4 from "cheerio";
|
|
249290
249358
|
function junitOutcome(xml2) {
|
|
@@ -249372,8 +249440,8 @@ function eventsOutcome(jsonl) {
|
|
|
249372
249440
|
}
|
|
249373
249441
|
function invokeNodeTests(o2) {
|
|
249374
249442
|
const content = resolve93(o2.contentDir);
|
|
249375
|
-
const reporter = join144(
|
|
249376
|
-
const eventsPath = join144(
|
|
249443
|
+
const reporter = join144(dirname70(o2.reportPath), "himi-widget-events-reporter.mjs");
|
|
249444
|
+
const eventsPath = join144(dirname70(o2.reportPath), "events.jsonl");
|
|
249377
249445
|
writeFileSync52(reporter, EVENT_REPORTER_SOURCE);
|
|
249378
249446
|
const args = [
|
|
249379
249447
|
...o2.imports.flatMap((i2) => ["--import", i2]),
|
|
@@ -249448,7 +249516,7 @@ function executeWidgetTests(contentDir2, evidenceDir, runPaths, now = () => (/*
|
|
|
249448
249516
|
copyFileSync3(reportPath, join144(content, VERIFY_RUNS, stamp, "junit.xml"));
|
|
249449
249517
|
report9 = join144(VERIFY_RUNS, stamp, "junit.xml");
|
|
249450
249518
|
}
|
|
249451
|
-
if (run4.events && report9) copyFileSync3(run4.eventsPath, join144(content,
|
|
249519
|
+
if (run4.events && report9) copyFileSync3(run4.eventsPath, join144(content, dirname70(report9), "events.jsonl"));
|
|
249452
249520
|
const outcome = eventsOutcome(run4.events);
|
|
249453
249521
|
return { exitCode: run4.exitCode, ...outcome ? { cases: outcome.cases, unowned: outcome.unowned, failures: outcome.failures } : {}, files, ...report9 ? { report: report9 } : {} };
|
|
249454
249522
|
} finally {
|
|
@@ -252990,8 +253058,22 @@ function overlappingPanelHeader(options2) {
|
|
|
252990
253058
|
const urls2 = (options2.coverUrls ?? []).map((url) => clean(url)).filter(Boolean);
|
|
252991
253059
|
const hasLogo = logoUrl !== "";
|
|
252992
253060
|
const hasPanel = hasLogo || title !== "" || subtitle !== "";
|
|
252993
|
-
const
|
|
252994
|
-
const
|
|
253061
|
+
const coverNode = cover(id, urls2, options2.coverTransitionMs, clean(options2.coverLabel) || "Cover images");
|
|
253062
|
+
const ratioBox = (boxId, content, extra = {}) => node2(
|
|
253063
|
+
boxId,
|
|
253064
|
+
"VStack",
|
|
253065
|
+
{ spacing: 0, alignment: "leading", children: [node2(`${boxId}.fill`, "Spacer", {}, { weight: 1 }), content] },
|
|
253066
|
+
{ fillMaxWidth: true, aspectRatio: OVERLAPPING_PANEL_COVER_RATIO, hitTestable: false, ...extra }
|
|
253067
|
+
);
|
|
253068
|
+
const hang = hasLogo ? LOGO_HANG : 0;
|
|
253069
|
+
const layer = (layerId, child3, tail, extra = {}) => node2(layerId, "VStack", { spacing: 0, alignment: "leading", children: [child3, tail] }, { fillMaxWidth: true, ...extra });
|
|
253070
|
+
const spacerTail = (layerId) => node2(`${layerId}.tail`, "VStack", { spacing: 0, alignment: "leading", children: [] }, { height: hang });
|
|
253071
|
+
const stage = [hasLogo ? layer(`${id}.cover.layer`, coverNode, node2(
|
|
253072
|
+
`${id}.cover.tail`,
|
|
253073
|
+
"Shape",
|
|
253074
|
+
{ kind: "rectangle", fill: { token: "surfacePrimary" } },
|
|
253075
|
+
{ fillMaxWidth: true, height: hang, accessibilityHidden: true }
|
|
253076
|
+
)) : coverNode];
|
|
252995
253077
|
if (hasPanel) {
|
|
252996
253078
|
const cap2 = node2(
|
|
252997
253079
|
`${id}.cap`,
|
|
@@ -252999,46 +253081,46 @@ function overlappingPanelHeader(options2) {
|
|
|
252999
253081
|
{ kind: "roundedRectangle", cornerRadii: { topLeading: RADIUS, topTrailing: RADIUS }, fill: { token: "surfacePrimary" } },
|
|
253000
253082
|
{ fillMaxWidth: true, height: CAP2, accessibilityHidden: true }
|
|
253001
253083
|
);
|
|
253002
|
-
const
|
|
253003
|
-
|
|
253004
|
-
if (hasLogo) {
|
|
253005
|
-
const ring = LOGO - LOGO_RING * 2;
|
|
253006
|
-
const logo = node2(`${id}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
|
|
253007
|
-
node2(`${id}.logo`, "Image", { url: logoUrl, width: ring, height: ring, contentMode: "fill", contentDescription: clean(options2.logoLabel) || title || "Logo" }, { cornerRadius: 13 })
|
|
253008
|
-
] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
|
|
253009
|
-
const above2 = LOGO - LOGO_BELOW_SEAM;
|
|
253010
|
-
seam = node2(`${id}.seam`, "ZStack", { alignment: "leading", children: [
|
|
253011
|
-
node2(`${id}.cap.box`, "VStack", { spacing: 0, alignment: "leading", children: [cap2] }, { fillMaxWidth: true, padding: { top: above2 } }),
|
|
253012
|
-
node2(`${id}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER2, bottom: above2 + CAP2 - LOGO } })
|
|
253013
|
-
] }, moved);
|
|
253014
|
-
}
|
|
253015
|
-
stage.push(node2(
|
|
253016
|
-
`${id}.overlay`,
|
|
253084
|
+
const capBox = ratioBox(`${id}.overlay`, node2(
|
|
253085
|
+
`${id}.seam`,
|
|
253017
253086
|
"VStack",
|
|
253018
|
-
{ spacing: 0, alignment: "leading", children: [
|
|
253019
|
-
{ fillMaxWidth: true,
|
|
253020
|
-
));
|
|
253087
|
+
{ spacing: 0, alignment: "leading", children: [cap2] },
|
|
253088
|
+
{ fillMaxWidth: true, offsetY: CAP2 - OVERLAPPING_PANEL_OVERLAP }
|
|
253089
|
+
), { clipShape: "rectangle" });
|
|
253090
|
+
stage.push(hasLogo ? layer(`${id}.overlay.layer`, capBox, spacerTail(`${id}.overlay.layer`), { hitTestable: false }) : capBox);
|
|
253091
|
+
}
|
|
253092
|
+
if (hasLogo) {
|
|
253093
|
+
const logo = node2(`${id}.logo.ring`, "VStack", { spacing: 0, alignment: "center", children: [
|
|
253094
|
+
node2(`${id}.logo`, "Image", {
|
|
253095
|
+
url: logoUrl,
|
|
253096
|
+
width: LOGO,
|
|
253097
|
+
height: LOGO,
|
|
253098
|
+
contentMode: "fill",
|
|
253099
|
+
contentDescription: clean(options2.logoLabel) || title || "Logo"
|
|
253100
|
+
}, { cornerRadius: 13 })
|
|
253101
|
+
] }, { background: { token: "surfacePrimary" }, cornerRadius: 15, padding: { leading: LOGO_RING, trailing: LOGO_RING, top: LOGO_RING, bottom: LOGO_RING } });
|
|
253102
|
+
const logoBox = ratioBox(
|
|
253103
|
+
`${id}.logo.box`,
|
|
253104
|
+
node2(`${id}.logo.row`, "HStack", { spacing: 0, alignment: "center", children: [logo] }, { padding: { leading: GUTTER2 } }),
|
|
253105
|
+
{ offsetY: hang }
|
|
253106
|
+
);
|
|
253107
|
+
stage.push(layer(`${id}.logo.layer`, logoBox, spacerTail(`${id}.logo.layer`), { hitTestable: false, zIndex: 1 }));
|
|
253021
253108
|
}
|
|
253022
253109
|
const children2 = [node2(`${id}.stage`, "ZStack", { alignment: "leading", children: stage }, { fillMaxWidth: true })];
|
|
253023
|
-
|
|
253024
|
-
|
|
253025
|
-
|
|
253026
|
-
|
|
253110
|
+
const texts = [];
|
|
253111
|
+
if (title) texts.push(node2(`${id}.title`, "Text", { text: title, style: "title1", color: "textPrimary", textAlign: "leading" }, { headingLevel: 1 }));
|
|
253112
|
+
if (subtitle) texts.push(node2(`${id}.subtitle`, "Text", { text: subtitle, style: "body", color: "textSecondary", textAlign: "leading" }));
|
|
253113
|
+
if (texts.length) {
|
|
253027
253114
|
const surface = node2(`${id}.panel.surface`, "VStack", { spacing: TEXT_GAP, alignment: "leading", children: texts }, {
|
|
253028
253115
|
fillMaxWidth: true,
|
|
253029
253116
|
background: { token: "surfacePrimary" },
|
|
253030
|
-
|
|
253117
|
+
padding: { leading: GUTTER2, trailing: GUTTER2, top: hasLogo ? LOGO_GAP : 0, bottom: BOTTOM }
|
|
253031
253118
|
});
|
|
253032
|
-
children2.push(node2(
|
|
253033
|
-
`${id}.panel`,
|
|
253034
|
-
"VStack",
|
|
253035
|
-
{ spacing: 0, alignment: "leading", children: [surface] },
|
|
253036
|
-
{ fillMaxWidth: true, zIndex: 1, ...hang ? { padding: { top: hang } } : {} }
|
|
253037
|
-
));
|
|
253119
|
+
children2.push(node2(`${id}.panel`, "VStack", { spacing: 0, alignment: "leading", children: [surface] }, { fillMaxWidth: true }));
|
|
253038
253120
|
}
|
|
253039
253121
|
return node2(id, "VStack", { spacing: 0, alignment: "leading", children: children2 }, { fillMaxWidth: true, imagePreview: "off" });
|
|
253040
253122
|
}
|
|
253041
|
-
var node2, OVERLAPPING_PANEL_COVER_RATIO, OVERLAPPING_PANEL_OVERLAP, DEFAULT_COVER_TRANSITION_MS, RADIUS, LOGO, LOGO_RING,
|
|
253123
|
+
var node2, OVERLAPPING_PANEL_COVER_RATIO, OVERLAPPING_PANEL_OVERLAP, DEFAULT_COVER_TRANSITION_MS, RADIUS, LOGO, LOGO_RING, LOGO_HANG, LOGO_GAP, TEXT_GAP, GUTTER2, BOTTOM, CAP2, overlappingPanelCoverId, clean;
|
|
253042
253124
|
var init_overlapping_panel_header = __esm({
|
|
253043
253125
|
"../../stdlib/flows/screens/src/overlapping-panel-header.ts"() {
|
|
253044
253126
|
init_define_HHP_CATALOG();
|
|
@@ -253047,9 +253129,9 @@ var init_overlapping_panel_header = __esm({
|
|
|
253047
253129
|
OVERLAPPING_PANEL_OVERLAP = 20;
|
|
253048
253130
|
DEFAULT_COVER_TRANSITION_MS = 3e3;
|
|
253049
253131
|
RADIUS = 24;
|
|
253050
|
-
LOGO =
|
|
253132
|
+
LOGO = 64;
|
|
253051
253133
|
LOGO_RING = 2;
|
|
253052
|
-
|
|
253134
|
+
LOGO_HANG = (LOGO + LOGO_RING * 2) / 2 - OVERLAPPING_PANEL_OVERLAP;
|
|
253053
253135
|
LOGO_GAP = 12;
|
|
253054
253136
|
TEXT_GAP = 4;
|
|
253055
253137
|
GUTTER2 = 20;
|
|
@@ -256868,10 +256950,10 @@ __export(shot_files_exports, {
|
|
|
256868
256950
|
});
|
|
256869
256951
|
import { createHash as createHash83 } from "node:crypto";
|
|
256870
256952
|
import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync144, rmSync as rmSync35, statSync as statSync43 } from "node:fs";
|
|
256871
|
-
import { basename as basename35, dirname as
|
|
256953
|
+
import { basename as basename35, dirname as dirname71, join as join156, relative as relative30, resolve as resolve99, sep as sep32 } from "node:path";
|
|
256872
256954
|
function writeAtomic2(file2, bytes2) {
|
|
256873
256955
|
for (let attempt2 = 0; ; attempt2++) {
|
|
256874
|
-
mkdirSync56(
|
|
256956
|
+
mkdirSync56(dirname71(file2), { recursive: true });
|
|
256875
256957
|
try {
|
|
256876
256958
|
writeFileAtomic(file2, bytes2);
|
|
256877
256959
|
return;
|
|
@@ -256911,8 +256993,8 @@ function pruneRenders(dir, opts = {}) {
|
|
|
256911
256993
|
if (now - mtime >= STALE_TMP_MS) rmSync35(f2, { force: true });
|
|
256912
256994
|
continue;
|
|
256913
256995
|
}
|
|
256914
|
-
let files = byScreen.get(
|
|
256915
|
-
if (!files) byScreen.set(
|
|
256996
|
+
let files = byScreen.get(dirname71(f2));
|
|
256997
|
+
if (!files) byScreen.set(dirname71(f2), files = []);
|
|
256916
256998
|
files.push({ f: f2, mtime });
|
|
256917
256999
|
}
|
|
256918
257000
|
for (const files of byScreen.values()) {
|
|
@@ -257005,7 +257087,7 @@ __export(coverage_exports2, {
|
|
|
257005
257087
|
trendAndStore: () => trendAndStore
|
|
257006
257088
|
});
|
|
257007
257089
|
import { existsSync as existsSync123, mkdirSync as mkdirSync57, readFileSync as readFileSync145, writeFileSync as writeFileSync58 } from "node:fs";
|
|
257008
|
-
import { dirname as
|
|
257090
|
+
import { dirname as dirname72, join as join157 } from "node:path";
|
|
257009
257091
|
function suppressedNativeKeys(oracle) {
|
|
257010
257092
|
return [...oracle.ios ? [] : ["native-decode|ios"], ...oracle.android ? [] : ["native-decode|android"]];
|
|
257011
257093
|
}
|
|
@@ -257197,7 +257279,7 @@ function trendAndStore(dir, entries, suppressed) {
|
|
|
257197
257279
|
const current = entries.map((e2) => e2.key);
|
|
257198
257280
|
const stored = [.../* @__PURE__ */ new Set([...current, ...(previous ?? []).filter((key4) => (suppressed ?? []).includes(key4))])];
|
|
257199
257281
|
try {
|
|
257200
|
-
mkdirSync57(
|
|
257282
|
+
mkdirSync57(dirname72(p2), { recursive: true });
|
|
257201
257283
|
writeFileSync58(p2, JSON.stringify({ keys: stored, ts: (/* @__PURE__ */ new Date()).toISOString() }, null, 2));
|
|
257202
257284
|
} catch {
|
|
257203
257285
|
return null;
|
|
@@ -257242,7 +257324,7 @@ function diffAndStoreObservations(dir, current) {
|
|
|
257242
257324
|
} catch {
|
|
257243
257325
|
}
|
|
257244
257326
|
try {
|
|
257245
|
-
mkdirSync57(
|
|
257327
|
+
mkdirSync57(dirname72(p2), { recursive: true });
|
|
257246
257328
|
writeFileSync58(p2, JSON.stringify({ screens: current, ts: (/* @__PURE__ */ new Date()).toISOString() }, null, 2));
|
|
257247
257329
|
} catch {
|
|
257248
257330
|
return null;
|
|
@@ -257631,7 +257713,7 @@ var init_render_cache = __esm({
|
|
|
257631
257713
|
|
|
257632
257714
|
// src/commands/render.ts
|
|
257633
257715
|
import { readFileSync as readFileSync148 } from "node:fs";
|
|
257634
|
-
import { dirname as
|
|
257716
|
+
import { dirname as dirname73, join as join160, resolve as resolve101 } from "node:path";
|
|
257635
257717
|
import { fileURLToPath as fileURLToPath36 } from "node:url";
|
|
257636
257718
|
function renderDeviceWidths() {
|
|
257637
257719
|
return {
|
|
@@ -257769,7 +257851,7 @@ function renderBatchRefusal(flags) {
|
|
|
257769
257851
|
async function renderBuild(dir, app2, a3, opts) {
|
|
257770
257852
|
const { cliFingerprint: cliFingerprint2, dropBuildDir: dropBuildDir2, envUnchanged: envUnchanged2, keepBuild: keepBuild2, newBuildDir: newBuildDir2, outsideEnvRecording: outsideEnvRecording2, readKeptBuild: readKeptBuild2, recordingEnvReads: recordingEnvReads2, renderCacheKey: renderCacheKey2 } = await Promise.resolve().then(() => (init_render_cache(), render_cache_exports));
|
|
257771
257853
|
const head2 = a3.gitSha();
|
|
257772
|
-
const monorepo = head2 === "dev" ? null : { head: head2, diff: currentGitDiffHash(
|
|
257854
|
+
const monorepo = head2 === "dev" ? null : { head: head2, diff: currentGitDiffHash(dirname73(fileURLToPath36(import.meta.url))) };
|
|
257773
257855
|
const inputs = {
|
|
257774
257856
|
cli: cliFingerprint2(cliVersion(), monorepo),
|
|
257775
257857
|
sdk: JSON.stringify({ resolution: opts.resolution ?? "default", umbrella: a3.umbrellaVersion(dir) }),
|
|
@@ -258760,7 +258842,7 @@ __export(validate_design_exports, {
|
|
|
258760
258842
|
});
|
|
258761
258843
|
import { randomBytes as randomBytes21 } from "node:crypto";
|
|
258762
258844
|
import { closeSync as closeSync12, constants as constants10, existsSync as existsSync129, lstatSync as lstatSync37, openSync as openSync11, readFileSync as readFileSync152, realpathSync as realpathSync20, renameSync as renameSync21, unlinkSync as unlinkSync9, writeFileSync as writeFileSync61 } from "node:fs";
|
|
258763
|
-
import { dirname as
|
|
258845
|
+
import { dirname as dirname74, isAbsolute as isAbsolute21, join as join164, relative as relative31, resolve as resolve103, sep as sep33, win32 } from "node:path";
|
|
258764
258846
|
import ts30 from "typescript";
|
|
258765
258847
|
function readColorToken(tokens2, name) {
|
|
258766
258848
|
const entry = obj23(tokens2.colors)?.[name];
|
|
@@ -259004,7 +259086,7 @@ function writableTokensPath(contentDir2, location) {
|
|
|
259004
259086
|
return path2;
|
|
259005
259087
|
}
|
|
259006
259088
|
function writeFixedTokens(contentDir2, location, path2, tokens2) {
|
|
259007
|
-
const temp = join164(
|
|
259089
|
+
const temp = join164(dirname74(path2), `.himi-design-${process.pid}-${randomBytes21(6).toString("hex")}.tmp`);
|
|
259008
259090
|
const mode = lstatSync37(path2).mode & 511;
|
|
259009
259091
|
const fd = openSync11(temp, constants10.O_WRONLY | constants10.O_CREAT | constants10.O_EXCL | (constants10.O_NOFOLLOW ?? 0), mode);
|
|
259010
259092
|
try {
|
|
@@ -259208,7 +259290,7 @@ function safeEvidencePath(contentDir2, name) {
|
|
|
259208
259290
|
}
|
|
259209
259291
|
function writeEvidenceFile(contentDir2, name, contents) {
|
|
259210
259292
|
const path2 = safeEvidencePath(contentDir2, name);
|
|
259211
|
-
const temp = join164(
|
|
259293
|
+
const temp = join164(dirname74(path2), `.himi-design-${process.pid}-${randomBytes21(6).toString("hex")}.tmp`);
|
|
259212
259294
|
const fd = openSync11(temp, constants10.O_WRONLY | constants10.O_CREAT | constants10.O_EXCL | (constants10.O_NOFOLLOW ?? 0), 384);
|
|
259213
259295
|
try {
|
|
259214
259296
|
try {
|
|
@@ -263070,12 +263152,12 @@ var init_wix_client_id = __esm({
|
|
|
263070
263152
|
|
|
263071
263153
|
// src/run-godot-web.ts
|
|
263072
263154
|
import { existsSync as existsSync133, readFileSync as readFileSync155, statSync as statSync48 } from "node:fs";
|
|
263073
|
-
import { dirname as
|
|
263155
|
+
import { dirname as dirname75, join as join168, resolve as resolve107 } from "node:path";
|
|
263074
263156
|
import { fileURLToPath as fileURLToPath38 } from "node:url";
|
|
263075
263157
|
function localGodotWebDir(env = process.env) {
|
|
263076
263158
|
const explicit3 = env.HIMI_GODOT_WEB_DIR?.trim();
|
|
263077
263159
|
if (explicit3) return existsSync133(join168(explicit3, "godot.js")) ? resolve107(explicit3) : null;
|
|
263078
|
-
const here =
|
|
263160
|
+
const here = dirname75(fileURLToPath38(import.meta.url));
|
|
263079
263161
|
const checkout = resolve107(here, "../../../packages/himi-game-web/dist/statics/game");
|
|
263080
263162
|
return existsSync133(join168(checkout, "godot.js")) ? checkout : null;
|
|
263081
263163
|
}
|
|
@@ -263216,7 +263298,7 @@ __export(run_exports, {
|
|
|
263216
263298
|
});
|
|
263217
263299
|
import { cpSync as cpSync2, existsSync as existsSync134, lstatSync as lstatSync38, mkdirSync as mkdirSync60, mkdtempSync as mkdtempSync12, readdirSync as readdirSync60, readFileSync as readFileSync156, rmSync as rmSync40, statSync as statSync49 } from "node:fs";
|
|
263218
263300
|
import { networkInterfaces as osNetworkInterfaces, tmpdir as tmpdir13 } from "node:os";
|
|
263219
|
-
import { dirname as
|
|
263301
|
+
import { dirname as dirname76, join as join169 } from "node:path";
|
|
263220
263302
|
import { fileURLToPath as fileURLToPath39 } from "node:url";
|
|
263221
263303
|
function makePackageRunHandler(opts) {
|
|
263222
263304
|
const store = new FileReleaseStore(opts.releaseRoot);
|
|
@@ -263313,7 +263395,7 @@ async function resolvePackage(source2, workDir) {
|
|
|
263313
263395
|
}
|
|
263314
263396
|
async function loadPreviewAssets(deps = {}) {
|
|
263315
263397
|
try {
|
|
263316
|
-
const here =
|
|
263398
|
+
const here = dirname76(fileURLToPath39(import.meta.url));
|
|
263317
263399
|
const published = join169(here, "preview-assets.generated.bin");
|
|
263318
263400
|
const repoRoot2 = join169(here, "../../..");
|
|
263319
263401
|
if (!existsSync134(published) && existsSync134(join169(repoRoot2, "packages/serve/scripts/preview-embed-fresh.mjs"))) {
|
|
@@ -263472,7 +263554,7 @@ __export(run_browser_exports, {
|
|
|
263472
263554
|
import { createServer as createServer8 } from "node:http";
|
|
263473
263555
|
import { existsSync as existsSync135, readFileSync as readFileSync157 } from "node:fs";
|
|
263474
263556
|
import { spawnSync as spawnSync13 } from "node:child_process";
|
|
263475
|
-
import { dirname as
|
|
263557
|
+
import { dirname as dirname77, resolve as resolve108 } from "node:path";
|
|
263476
263558
|
import { fileURLToPath as fileURLToPath40 } from "node:url";
|
|
263477
263559
|
function stagedDir() {
|
|
263478
263560
|
return browserPlaneDir({ repo: REPO5, here: HERE4, out: process.env.HIMI_BROWSER_PLANE_OUT });
|
|
@@ -263644,7 +263726,7 @@ var init_run_browser = __esm({
|
|
|
263644
263726
|
init_open_url();
|
|
263645
263727
|
init_file_store();
|
|
263646
263728
|
init_wix_client_id();
|
|
263647
|
-
HERE4 =
|
|
263729
|
+
HERE4 = dirname77(fileURLToPath40(import.meta.url));
|
|
263648
263730
|
REPO5 = resolve108(HERE4, "..", "..", "..");
|
|
263649
263731
|
STAGE_SCRIPT = ["core", "serve", "scripts", "stage-browser-plane.mjs"];
|
|
263650
263732
|
SERVED = /* @__PURE__ */ new Set(["host.html", "sw.js", "package-reader.js"]);
|
|
@@ -270050,7 +270132,7 @@ var init_store_iap_connect = __esm({
|
|
|
270050
270132
|
});
|
|
270051
270133
|
|
|
270052
270134
|
// src/store-iap-screenshots.ts
|
|
270053
|
-
import { dirname as
|
|
270135
|
+
import { dirname as dirname78, join as join179, relative as relative33 } from "node:path";
|
|
270054
270136
|
function purchaseScreensFor(item2) {
|
|
270055
270137
|
const screen = item2.wix && PURCHASE_SCREENS[item2.wix.entityType];
|
|
270056
270138
|
if (!screen || !item2.wix) return [];
|
|
@@ -270178,7 +270260,7 @@ async function shoot(selected, run4, outDir) {
|
|
|
270178
270260
|
} catch (e2) {
|
|
270179
270261
|
return { ...report9, skipped: `could not save the screenshot: ${e2.message}` };
|
|
270180
270262
|
}
|
|
270181
|
-
return { ...report9, screenshot: relative33(
|
|
270263
|
+
return { ...report9, screenshot: relative33(dirname78(run4.manifestPath), path2) };
|
|
270182
270264
|
}
|
|
270183
270265
|
function visibleText2(html) {
|
|
270184
270266
|
return html.replace(/ | | /gi, "\xA0").replace(/&/g, "&");
|
|
@@ -270190,7 +270272,7 @@ function manifestWithScreenshots(text32, shot) {
|
|
|
270190
270272
|
`;
|
|
270191
270273
|
}
|
|
270192
270274
|
async function takeReviewScreenshots(run4) {
|
|
270193
|
-
const outDir = run4.outDir ?? join179(
|
|
270275
|
+
const outDir = run4.outDir ?? join179(dirname78(run4.manifestPath), DEFAULT_OUT_DIR);
|
|
270194
270276
|
const items = unknownOnlyIds(run4);
|
|
270195
270277
|
const shot = /* @__PURE__ */ new Map();
|
|
270196
270278
|
try {
|
|
@@ -270378,7 +270460,7 @@ import { execFileSync as execFileSync10 } from "node:child_process";
|
|
|
270378
270460
|
import { randomUUID as randomUUID17 } from "node:crypto";
|
|
270379
270461
|
import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync61, readFileSync as readFileSync168, realpathSync as realpathSync22, renameSync as renameSync25, rmSync as rmSync44, writeFileSync as writeFileSync64 } from "node:fs";
|
|
270380
270462
|
import { homedir as homedir20, hostname as hostname7 } from "node:os";
|
|
270381
|
-
import { dirname as
|
|
270463
|
+
import { dirname as dirname79, join as join181, resolve as resolve115 } from "node:path";
|
|
270382
270464
|
function scrubDeep(value2, scrub) {
|
|
270383
270465
|
if (typeof value2 === "string") return scrub(value2);
|
|
270384
270466
|
if (Array.isArray(value2)) return value2.map((v2) => scrubDeep(v2, scrub));
|
|
@@ -270413,7 +270495,7 @@ function readManifest3(deps, path2) {
|
|
|
270413
270495
|
return parseIapManifest(readInput2(deps, path2, "manifest"), path2);
|
|
270414
270496
|
}
|
|
270415
270497
|
function manifestDirOf(manifestPath) {
|
|
270416
|
-
return
|
|
270498
|
+
return dirname79(resolve115(manifestPath));
|
|
270417
270499
|
}
|
|
270418
270500
|
function readPlan2(deps, path2) {
|
|
270419
270501
|
const text32 = readInput2(deps, path2, "plan");
|
|
@@ -271043,7 +271125,7 @@ async function screenshotsCommand(flags, deps, out2) {
|
|
|
271043
271125
|
return report9.complete ? 0 : 1;
|
|
271044
271126
|
}
|
|
271045
271127
|
function writeBinaryFile(path2, bytes2) {
|
|
271046
|
-
mkdirSync61(
|
|
271128
|
+
mkdirSync61(dirname79(path2), { recursive: true });
|
|
271047
271129
|
const partial = `${path2}.${process.pid}.partial`;
|
|
271048
271130
|
writeFileSync64(partial, bytes2);
|
|
271049
271131
|
renameSync25(partial, path2);
|
|
@@ -271633,7 +271715,7 @@ __export(preflight_app_exports, {
|
|
|
271633
271715
|
});
|
|
271634
271716
|
import { readFileSync as readFileSync169, existsSync as existsSync143, readdirSync as readdirSync62, statSync as statSync50 } from "node:fs";
|
|
271635
271717
|
import { createHash as createHash93 } from "node:crypto";
|
|
271636
|
-
import { dirname as
|
|
271718
|
+
import { dirname as dirname80, join as join182 } from "node:path";
|
|
271637
271719
|
function analyze(projectYml, storeConfig, icon, account2, adopted) {
|
|
271638
271720
|
const f2 = [];
|
|
271639
271721
|
const has = (re2, s5) => re2.test(s5);
|
|
@@ -271779,7 +271861,7 @@ function readXcconfigVars(iosDir, projectYml) {
|
|
|
271779
271861
|
for (const raw of readFileSync169(path2, "utf8").split("\n")) {
|
|
271780
271862
|
const inc = /^\s*#include\??\s+"([^"]+)"/.exec(raw);
|
|
271781
271863
|
if (inc) {
|
|
271782
|
-
read2(join182(
|
|
271864
|
+
read2(join182(dirname80(path2), inc[1]));
|
|
271783
271865
|
continue;
|
|
271784
271866
|
}
|
|
271785
271867
|
const line = raw.replace(/\/\/.*$/, "");
|
|
@@ -272643,7 +272725,7 @@ var init_component_lookup = __esm({
|
|
|
272643
272725
|
// ../../core/functions-secrets/src/vault.ts
|
|
272644
272726
|
import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv3, randomBytes as randomBytes24 } from "node:crypto";
|
|
272645
272727
|
import { mkdir as mkdir21, readFile as readFile25, rename as rename9, writeFile as writeFile17 } from "node:fs/promises";
|
|
272646
|
-
import { dirname as
|
|
272728
|
+
import { dirname as dirname81 } from "node:path";
|
|
272647
272729
|
function createJsonSecretStore(filePath) {
|
|
272648
272730
|
const read2 = async () => {
|
|
272649
272731
|
try {
|
|
@@ -272656,7 +272738,7 @@ function createJsonSecretStore(filePath) {
|
|
|
272656
272738
|
}
|
|
272657
272739
|
};
|
|
272658
272740
|
const write3 = async (records) => {
|
|
272659
|
-
await mkdir21(
|
|
272741
|
+
await mkdir21(dirname81(filePath), { recursive: true });
|
|
272660
272742
|
const temporary = `${filePath}.${process.pid}.tmp`;
|
|
272661
272743
|
await writeFile17(temporary, `${JSON.stringify(records, null, 2)}
|
|
272662
272744
|
`, { mode: 384 });
|
|
@@ -273320,7 +273402,7 @@ __export(notify_exports, {
|
|
|
273320
273402
|
});
|
|
273321
273403
|
import { chmodSync as chmodSync6, mkdirSync as mkdirSync62, readFileSync as readFileSync176, writeFileSync as writeFileSync66 } from "node:fs";
|
|
273322
273404
|
import { homedir as homedir21 } from "node:os";
|
|
273323
|
-
import { dirname as
|
|
273405
|
+
import { dirname as dirname82, join as join187 } from "node:path";
|
|
273324
273406
|
function defaultSessionsPath() {
|
|
273325
273407
|
return process.env.HIMI_ADMIN_SESSIONS_FILE ?? join187(homedir21(), ".himalaya", "admin-sessions.json");
|
|
273326
273408
|
}
|
|
@@ -273334,10 +273416,10 @@ function loadSessionsFile(path2 = defaultSessionsPath()) {
|
|
|
273334
273416
|
function saveAdminSession(adminUrl, session, path2 = defaultSessionsPath()) {
|
|
273335
273417
|
const file2 = loadSessionsFile(path2);
|
|
273336
273418
|
file2.sessions = { ...file2.sessions, [adminUrl]: session };
|
|
273337
|
-
mkdirSync62(
|
|
273419
|
+
mkdirSync62(dirname82(path2), { recursive: true, mode: 448 });
|
|
273338
273420
|
writeFileSync66(path2, JSON.stringify(file2, null, 2) + "\n", { mode: 384 });
|
|
273339
273421
|
try {
|
|
273340
|
-
chmodSync6(
|
|
273422
|
+
chmodSync6(dirname82(path2), 448);
|
|
273341
273423
|
chmodSync6(path2, 384);
|
|
273342
273424
|
} catch {
|
|
273343
273425
|
}
|
|
@@ -274383,7 +274465,7 @@ __export(runtime_copy_exports, {
|
|
|
274383
274465
|
import { createHash as createHash96 } from "node:crypto";
|
|
274384
274466
|
import { existsSync as existsSync147, readFileSync as readFileSync178, writeFileSync as writeFileSync67 } from "node:fs";
|
|
274385
274467
|
import { readdirSync as readdirSync63 } from "node:fs";
|
|
274386
|
-
import { dirname as
|
|
274468
|
+
import { dirname as dirname83, join as join188, relative as relative34, resolve as resolve119 } from "node:path";
|
|
274387
274469
|
import { fileURLToPath as fileURLToPath41 } from "node:url";
|
|
274388
274470
|
function appSourceCatalogs() {
|
|
274389
274471
|
const appsDir = join188(REPO_ROOT8, "apps");
|
|
@@ -274486,7 +274568,7 @@ var REPO_ROOT8, TABLE_PATH, SWIFT_OUT, KOTLIN_OUT, TS_OUT, HEADER3, RENDERER_PRE
|
|
|
274486
274568
|
var init_runtime_copy = __esm({
|
|
274487
274569
|
"../l10n/runtime-copy.ts"() {
|
|
274488
274570
|
init_define_HHP_CATALOG();
|
|
274489
|
-
REPO_ROOT8 = resolve119(
|
|
274571
|
+
REPO_ROOT8 = resolve119(dirname83(fileURLToPath41(import.meta.url)), "../..");
|
|
274490
274572
|
TABLE_PATH = join188(REPO_ROOT8, "core/runtime/l10n/runtime/en.json");
|
|
274491
274573
|
SWIFT_OUT = join188(REPO_ROOT8, "core/runtime/ios/HimalayaCore/Sources/HimalayaCore/RuntimeCopyDefaults.generated.swift");
|
|
274492
274574
|
KOTLIN_OUT = join188(REPO_ROOT8, "core/runtime/android/io/himalaya/core/src/main/kotlin/io/himalaya/core/RuntimeCopyDefaults.generated.kt");
|
|
@@ -274540,7 +274622,7 @@ __export(auth_gate_copy_exports, {
|
|
|
274540
274622
|
});
|
|
274541
274623
|
import { createHash as createHash97 } from "node:crypto";
|
|
274542
274624
|
import { existsSync as existsSync148, readdirSync as readdirSync64, readFileSync as readFileSync179, writeFileSync as writeFileSync68 } from "node:fs";
|
|
274543
|
-
import { dirname as
|
|
274625
|
+
import { dirname as dirname84, join as join189, relative as relative35, resolve as resolve120 } from "node:path";
|
|
274544
274626
|
import { fileURLToPath as fileURLToPath42 } from "node:url";
|
|
274545
274627
|
function discoverMessageSources() {
|
|
274546
274628
|
const roots2 = [
|
|
@@ -274754,7 +274836,7 @@ function expectedOutputs2(table = loadTable2()) {
|
|
|
274754
274836
|
];
|
|
274755
274837
|
for (const p2 of appSourceCatalogs2()) {
|
|
274756
274838
|
const committed = JSON.parse(readFileSync179(p2, "utf8"));
|
|
274757
|
-
out2.push({ path: p2, content: serializeCatalog(injectAllNativeRows(committed,
|
|
274839
|
+
out2.push({ path: p2, content: serializeCatalog(injectAllNativeRows(committed, dirname84(dirname84(p2)), table)) });
|
|
274758
274840
|
}
|
|
274759
274841
|
return out2;
|
|
274760
274842
|
}
|
|
@@ -274781,7 +274863,7 @@ var init_auth_gate_copy = __esm({
|
|
|
274781
274863
|
init_rules();
|
|
274782
274864
|
init_governs();
|
|
274783
274865
|
init_runtime_copy();
|
|
274784
|
-
HERE5 =
|
|
274866
|
+
HERE5 = dirname84(fileURLToPath42(import.meta.url));
|
|
274785
274867
|
REPO_ROOT9 = resolve120(HERE5, "../..");
|
|
274786
274868
|
TABLE_PATH2 = join189(REPO_ROOT9, "core/runtime/l10n/auth-gate/en.json");
|
|
274787
274869
|
SWIFT_OUT2 = join189(
|
|
@@ -274843,7 +274925,7 @@ var init_auth_gate_copy = __esm({
|
|
|
274843
274925
|
});
|
|
274844
274926
|
|
|
274845
274927
|
// ../l10n/extract.ts
|
|
274846
|
-
import { resolve as resolve121, join as join190, relative as relative36, dirname as
|
|
274928
|
+
import { resolve as resolve121, join as join190, relative as relative36, dirname as dirname85 } from "node:path";
|
|
274847
274929
|
import { createHash as createHash98 } from "node:crypto";
|
|
274848
274930
|
import { fileURLToPath as fileURLToPath43 } from "node:url";
|
|
274849
274931
|
function keyOf3(source2) {
|
|
@@ -275590,7 +275672,7 @@ __export(generate_exports, {
|
|
|
275590
275672
|
});
|
|
275591
275673
|
import { createHash as createHash99 } from "node:crypto";
|
|
275592
275674
|
import { existsSync as existsSync151, mkdirSync as mkdirSync64, readdirSync as readdirSync66, readFileSync as readFileSync182, writeFileSync as writeFileSync71 } from "node:fs";
|
|
275593
|
-
import { dirname as
|
|
275675
|
+
import { dirname as dirname87, join as join193 } from "node:path";
|
|
275594
275676
|
function withHeader(body) {
|
|
275595
275677
|
return `${GENERATED_HEADER}${sha2568(body)}
|
|
275596
275678
|
${body}`;
|
|
@@ -275724,7 +275806,7 @@ function writeGenerated2(dir, files, opts = {}) {
|
|
|
275724
275806
|
else outcome = "written";
|
|
275725
275807
|
}
|
|
275726
275808
|
if (outcome === "written" && !opts.dryRun) {
|
|
275727
|
-
mkdirSync64(
|
|
275809
|
+
mkdirSync64(dirname87(abs), { recursive: true });
|
|
275728
275810
|
writeFileSync71(abs, next);
|
|
275729
275811
|
}
|
|
275730
275812
|
out2.push({ path: f2.path, outcome });
|
|
@@ -275784,7 +275866,7 @@ __export(base44_auth_exports, {
|
|
|
275784
275866
|
});
|
|
275785
275867
|
import { chmodSync as chmodSync7, existsSync as existsSync152, mkdirSync as mkdirSync65, readFileSync as readFileSync183, rmSync as rmSync46, writeFileSync as writeFileSync72 } from "node:fs";
|
|
275786
275868
|
import { homedir as homedir22 } from "node:os";
|
|
275787
|
-
import { dirname as
|
|
275869
|
+
import { dirname as dirname88, join as join194 } from "node:path";
|
|
275788
275870
|
function base44ApiBase(env = process.env) {
|
|
275789
275871
|
return (env.BASE44_API_URL?.trim() || "https://app.base44.com").replace(/\/+$/, "");
|
|
275790
275872
|
}
|
|
@@ -275803,7 +275885,7 @@ function readBase44Session(home2) {
|
|
|
275803
275885
|
}
|
|
275804
275886
|
function writeBase44Session(session, home2) {
|
|
275805
275887
|
const p2 = base44SessionPath(home2);
|
|
275806
|
-
mkdirSync65(
|
|
275888
|
+
mkdirSync65(dirname88(p2), { recursive: true, mode: 448 });
|
|
275807
275889
|
writeFileSync72(p2, `${JSON.stringify(session, null, 2)}
|
|
275808
275890
|
`, { mode: 384 });
|
|
275809
275891
|
chmodSync7(p2, 384);
|
|
@@ -277546,7 +277628,7 @@ var init_analyze = __esm({
|
|
|
277546
277628
|
|
|
277547
277629
|
// src/base44-analyze/write-artifacts.ts
|
|
277548
277630
|
import { existsSync as existsSync156, mkdirSync as mkdirSync66, readFileSync as readFileSync186, rmSync as rmSync47, writeFileSync as writeFileSync75 } from "node:fs";
|
|
277549
|
-
import { dirname as
|
|
277631
|
+
import { dirname as dirname89, join as join198, resolve as resolve124, sep as sep34 } from "node:path";
|
|
277550
277632
|
function isBookFolder(dir) {
|
|
277551
277633
|
try {
|
|
277552
277634
|
return JSON.parse(readFileSync186(join198(dir, "book.json"), "utf8")).kind === "base44-app-book";
|
|
@@ -277655,7 +277737,7 @@ function writeBase44Book(result, outDir, opts = {}) {
|
|
|
277655
277737
|
if (!safeRel(f2.path)) continue;
|
|
277656
277738
|
const dest = join198(sourceRoot, ...f2.path.split("/"));
|
|
277657
277739
|
if (!dest.startsWith(sourceRoot + sep34)) continue;
|
|
277658
|
-
mkdirSync66(
|
|
277740
|
+
mkdirSync66(dirname89(dest), { recursive: true });
|
|
277659
277741
|
writeFileSync75(dest, f2.bytes);
|
|
277660
277742
|
}
|
|
277661
277743
|
if (result.sourceFiles.length) files.push(`source/ (${result.sourceFiles.length} files)`);
|
|
@@ -283640,7 +283722,7 @@ var init_widgets_plan = __esm({
|
|
|
283640
283722
|
|
|
283641
283723
|
// src/one-app/generate-cli.ts
|
|
283642
283724
|
import { existsSync as existsSync163, mkdirSync as mkdirSync68, readdirSync as readdirSync67, readFileSync as readFileSync192, rmSync as rmSync50, writeFileSync as writeFileSync79 } from "node:fs";
|
|
283643
|
-
import { dirname as
|
|
283725
|
+
import { dirname as dirname90, join as join206, resolve as resolve129 } from "node:path";
|
|
283644
283726
|
function removeStaleGeneratedWorkers(contentDir2, current) {
|
|
283645
283727
|
const root = join206(contentDir2, "tier5-src");
|
|
283646
283728
|
if (!existsSync163(root)) return;
|
|
@@ -283786,7 +283868,7 @@ async function runOneAppGenerate(args, io2) {
|
|
|
283786
283868
|
return report8(io2, false, { code: "content_invalid", error: error instanceof Error ? error.message : String(error) });
|
|
283787
283869
|
}
|
|
283788
283870
|
try {
|
|
283789
|
-
mkdirSync68(
|
|
283871
|
+
mkdirSync68(dirname90(options2.out), { recursive: true });
|
|
283790
283872
|
writeFileSync79(options2.out, JSON.stringify(result.screens, null, 2) + "\n", "utf8");
|
|
283791
283873
|
writeFileSync79(idsFile(options2.out), JSON.stringify([.../* @__PURE__ */ new Set([...previousIds, ...Object.keys(result.screens)])].sort()) + "\n", "utf8");
|
|
283792
283874
|
if (homeScreenId) writeFileSync79(homeFile(options2.out), JSON.stringify({ homeScreenId }) + "\n", "utf8");
|
|
@@ -285368,7 +285450,7 @@ __export(cli_exports2, {
|
|
|
285368
285450
|
import { closeSync as closeSync15, constants as constants13, lstatSync as lstatSync43, mkdirSync as mkdirSync71, openSync as openSync14, readFileSync as readFileSync197, realpathSync as realpathSync24, writeFileSync as writeFileSync82 } from "node:fs";
|
|
285369
285451
|
import { createHash as createHash104 } from "node:crypto";
|
|
285370
285452
|
import { isIP as isIP2 } from "node:net";
|
|
285371
|
-
import { dirname as
|
|
285453
|
+
import { dirname as dirname91, join as join211, parse as parse12, resolve as resolve133 } from "node:path";
|
|
285372
285454
|
function nativeSiteHost(host) {
|
|
285373
285455
|
if (isIP2(host.startsWith("[") ? host.slice(1, -1) : host)) return true;
|
|
285374
285456
|
const labels = host.replace(/\.$/, "").split(".");
|
|
@@ -285484,7 +285566,7 @@ function assertSafeParents(path2) {
|
|
|
285484
285566
|
throw new OneAppError("invalid_output_path", "The output parent cannot be inspected.");
|
|
285485
285567
|
}
|
|
285486
285568
|
}
|
|
285487
|
-
current =
|
|
285569
|
+
current = dirname91(current);
|
|
285488
285570
|
}
|
|
285489
285571
|
}
|
|
285490
285572
|
function writePrivate(path2, contents, append) {
|
|
@@ -287878,7 +287960,7 @@ var init_customer_build = __esm({
|
|
|
287878
287960
|
|
|
287879
287961
|
// src/site-analyze/apply.ts
|
|
287880
287962
|
import { existsSync as existsSync168, readFileSync as readFileSync199, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as statSync54 } from "node:fs";
|
|
287881
|
-
import { dirname as
|
|
287963
|
+
import { dirname as dirname92, isAbsolute as isAbsolute23, join as join213, resolve as resolve134, sep as sep35 } from "node:path";
|
|
287882
287964
|
import { spawnSync as spawnSync14 } from "node:child_process";
|
|
287883
287965
|
function inRepoBakeRefusal(repoRoot2, shell) {
|
|
287884
287966
|
if (isBrandable(repoRoot2, shell)) return null;
|
|
@@ -288238,7 +288320,7 @@ function buildMergedContract(options2) {
|
|
|
288238
288320
|
if (!real.startsWith(realRoot + sep35)) return void 0;
|
|
288239
288321
|
try {
|
|
288240
288322
|
if (!statSync54(real).isFile()) return void 0;
|
|
288241
|
-
mkdirSync72(
|
|
288323
|
+
mkdirSync72(dirname92(to2), { recursive: true });
|
|
288242
288324
|
copyFileSync4(real, to2);
|
|
288243
288325
|
} catch {
|
|
288244
288326
|
return void 0;
|
|
@@ -288276,7 +288358,7 @@ function buildMergedContract(options2) {
|
|
|
288276
288358
|
const path2 = join213(packageDir, "provisioning.contract.json");
|
|
288277
288359
|
writeFileSync83(path2, body);
|
|
288278
288360
|
const localPath2 = join213(appDir3, LOCAL_CONTRACT_REL);
|
|
288279
|
-
mkdirSync72(
|
|
288361
|
+
mkdirSync72(dirname92(localPath2), { recursive: true });
|
|
288280
288362
|
writeFileSync83(localPath2, body);
|
|
288281
288363
|
staged.push(localPath2);
|
|
288282
288364
|
return { path: path2, staged };
|
|
@@ -288310,7 +288392,7 @@ function catalogTypography(overlay, template) {
|
|
|
288310
288392
|
function staticFaqFor(overlay, overlayPath) {
|
|
288311
288393
|
const own6 = overlay.faq;
|
|
288312
288394
|
if (own6 !== void 0) return deriveStaticFaq(own6);
|
|
288313
|
-
const bookPath = join213(
|
|
288395
|
+
const bookPath = join213(dirname92(resolve134(overlayPath)), "book.json");
|
|
288314
288396
|
if (!existsSync168(bookPath)) return void 0;
|
|
288315
288397
|
try {
|
|
288316
288398
|
const book = JSON.parse(readFileSync199(bookPath, "utf8"));
|
|
@@ -288327,7 +288409,7 @@ function staticGalleriesFor(overlay, overlayPath) {
|
|
|
288327
288409
|
if (overlay.galleries !== void 0) return deriveStaticGalleries(
|
|
288328
288410
|
overlay.galleries.map((gallery) => ({ role: "gallery", title: gallery.title, galleryImageUrls: gallery.photos }))
|
|
288329
288411
|
);
|
|
288330
|
-
const bookPath = join213(
|
|
288412
|
+
const bookPath = join213(dirname92(resolve134(overlayPath)), "book.json");
|
|
288331
288413
|
if (!existsSync168(bookPath)) return void 0;
|
|
288332
288414
|
try {
|
|
288333
288415
|
const book = JSON.parse(readFileSync199(bookPath, "utf8"));
|
|
@@ -288365,7 +288447,7 @@ async function applyOverlays(input) {
|
|
|
288365
288447
|
if (bakeRefusal) throw Object.assign(new Error(bakeRefusal), { exit: 2, code: APPLY_SHELL_CANNOT_BAKE });
|
|
288366
288448
|
const appDir3 = join213(repoRoot2, shellAppDir(shell));
|
|
288367
288449
|
assertOverlayNamesSite(join213(appDir3, "provisioning.json"), overlay, `shell "${shell}"`, ` --shell ${shell}`);
|
|
288368
|
-
const packageDir =
|
|
288450
|
+
const packageDir = dirname92(resolve134(input.overlayPath));
|
|
288369
288451
|
if (input.dryRun) {
|
|
288370
288452
|
return {
|
|
288371
288453
|
mode: "dry",
|
|
@@ -288543,7 +288625,7 @@ async function applyOverlays(input) {
|
|
|
288543
288625
|
else pageScreens = { added: pages2.added, replaced: pages2.replaced, removed: pages2.removed, rows: pages2.rows };
|
|
288544
288626
|
}
|
|
288545
288627
|
if (!input.iconPath || !existsSync168(input.iconPath)) {
|
|
288546
|
-
const book = input.iconPath ?
|
|
288628
|
+
const book = input.iconPath ? dirname92(dirname92(resolve134(input.iconPath))) : void 0;
|
|
288547
288629
|
notes.push(
|
|
288548
288630
|
book ? `no icon installed \u2014 ${siteLogoAbsence(book).hint}` : "no icon installed and no business book to say why \u2014 `himi icon generate` draws one from the accent, or `himi icon set <file.png>` installs the customer's own mark"
|
|
288549
288631
|
);
|
|
@@ -291121,7 +291203,7 @@ var init_capture = __esm({
|
|
|
291121
291203
|
import { spawn as spawn10 } from "node:child_process";
|
|
291122
291204
|
import { copyFileSync as copyFileSync5, mkdtempSync as mkdtempSync17, readFileSync as readFileSync202, rmSync as rmSync53 } from "node:fs";
|
|
291123
291205
|
import { tmpdir as tmpdir18 } from "node:os";
|
|
291124
|
-
import { basename as basename42, dirname as
|
|
291206
|
+
import { basename as basename42, dirname as dirname93, join as join215, resolve as resolve137 } from "node:path";
|
|
291125
291207
|
import { fileURLToPath as fileURLToPath44 } from "node:url";
|
|
291126
291208
|
function parseVerdict(value2, captured) {
|
|
291127
291209
|
const v2 = value2;
|
|
@@ -291197,7 +291279,7 @@ var SOURCE_JUDGE_DIR, JUDGE_MODEL, spawnProcess, cannotTell, SEVERITY, worse, VE
|
|
|
291197
291279
|
var init_judge = __esm({
|
|
291198
291280
|
"src/fidelity/judge.ts"() {
|
|
291199
291281
|
init_define_HHP_CATALOG();
|
|
291200
|
-
SOURCE_JUDGE_DIR = resolve137(
|
|
291282
|
+
SOURCE_JUDGE_DIR = resolve137(dirname93(fileURLToPath44(import.meta.url)), "../../../judges/fidelity");
|
|
291201
291283
|
JUDGE_MODEL = "claude-sonnet-5-5";
|
|
291202
291284
|
spawnProcess = (cmd, args, { cwd, input, timeoutMs }) => new Promise((done) => {
|
|
291203
291285
|
let stdout = "", stderr = "", timedOut = false;
|
|
@@ -295519,7 +295601,7 @@ async function functionsCommand(ctx) {
|
|
|
295519
295601
|
init_define_HHP_CATALOG();
|
|
295520
295602
|
init_guides();
|
|
295521
295603
|
import { mkdirSync as mkdirSync52, writeFileSync as writeFileSync49 } from "node:fs";
|
|
295522
|
-
import { join as join137, resolve as resolve90, dirname as
|
|
295604
|
+
import { join as join137, resolve as resolve90, dirname as dirname68 } from "node:path";
|
|
295523
295605
|
init_cli_shared();
|
|
295524
295606
|
async function mcpCommand(ctx) {
|
|
295525
295607
|
const { io: io2, pos, flags, print } = ctx;
|
|
@@ -295535,7 +295617,7 @@ async function mcpCommand(ctx) {
|
|
|
295535
295617
|
const dir2 = resolve90(out2);
|
|
295536
295618
|
const files2 = himiStudioPluginFiles2();
|
|
295537
295619
|
for (const f2 of files2) {
|
|
295538
|
-
mkdirSync52(
|
|
295620
|
+
mkdirSync52(dirname68(join137(dir2, f2.path)), { recursive: true });
|
|
295539
295621
|
writeFileSync49(join137(dir2, f2.path), f2.text);
|
|
295540
295622
|
}
|
|
295541
295623
|
print({ ok: true, dir: dir2, files: files2.map((f2) => f2.path), next: [`claude plugin validate ${dir2}`, `claude --plugin-dir ${dir2}`] });
|
|
@@ -295551,7 +295633,7 @@ async function mcpCommand(ctx) {
|
|
|
295551
295633
|
const dir = resolve90(out2);
|
|
295552
295634
|
const files = himiPluginFiles2(skills.skillMd);
|
|
295553
295635
|
for (const f2 of files) {
|
|
295554
|
-
mkdirSync52(
|
|
295636
|
+
mkdirSync52(dirname68(join137(dir, f2.path)), { recursive: true });
|
|
295555
295637
|
writeFileSync49(join137(dir, f2.path), f2.text);
|
|
295556
295638
|
}
|
|
295557
295639
|
print({ ok: true, dir, files: files.map((f2) => f2.path), next: [`claude plugin validate ${dir}`, `claude --plugin-dir ${dir}`] });
|
|
@@ -295571,7 +295653,7 @@ async function mcpCommand(ctx) {
|
|
|
295571
295653
|
init_define_HHP_CATALOG();
|
|
295572
295654
|
init_cli_shared();
|
|
295573
295655
|
import { mkdirSync as mkdirSync53, writeFileSync as writeFileSync50, existsSync as existsSync106 } from "node:fs";
|
|
295574
|
-
import { join as join138, resolve as resolve91, basename as basename34, dirname as
|
|
295656
|
+
import { join as join138, resolve as resolve91, basename as basename34, dirname as dirname69 } from "node:path";
|
|
295575
295657
|
async function studioCommand(ctx) {
|
|
295576
295658
|
const { io: io2, pos, flags, print } = ctx;
|
|
295577
295659
|
const { openStudio: openStudio2 } = await Promise.resolve().then(() => (init_studio(), studio_exports));
|
|
@@ -295584,7 +295666,7 @@ async function studioCommand(ctx) {
|
|
|
295584
295666
|
const { buildReel: buildReel2 } = await Promise.resolve().then(() => (init_studio_reel(), studio_reel_exports));
|
|
295585
295667
|
const out2 = resolve91(str3(flags.out) ?? join138(dir, ".himi", "making-of.html"));
|
|
295586
295668
|
const { html, plan } = buildReel2(dir);
|
|
295587
|
-
mkdirSync53(
|
|
295669
|
+
mkdirSync53(dirname69(out2), { recursive: true });
|
|
295588
295670
|
writeFileSync50(out2, html);
|
|
295589
295671
|
const { pathToFileURL: pathToFileURL15 } = await import("node:url");
|
|
295590
295672
|
const url2 = pathToFileURL15(out2).href;
|
|
@@ -303143,7 +303225,7 @@ import {
|
|
|
303143
303225
|
statSync as statSync52,
|
|
303144
303226
|
writeFileSync as writeFileSync69
|
|
303145
303227
|
} from "node:fs";
|
|
303146
|
-
import { basename as basename41, dirname as
|
|
303228
|
+
import { basename as basename41, dirname as dirname86, join as join191, relative as relative37, resolve as resolve122 } from "node:path";
|
|
303147
303229
|
var L10N_USAGE = "usage: himi l10n import --format oneapp <dir> (--app <slug> | --content <app dir>) [--locales en,he] [--source en] [--overwrite] [--json]";
|
|
303148
303230
|
var MESSAGES_FILE = /^messages_(.+)\.json$/;
|
|
303149
303231
|
var UnsafePath = class extends Error {
|
|
@@ -303174,7 +303256,7 @@ function unsafeDestination(appDir3, tags) {
|
|
|
303174
303256
|
return void 0;
|
|
303175
303257
|
}
|
|
303176
303258
|
function writeCatalog(path2, text32) {
|
|
303177
|
-
const tmp = join191(
|
|
303259
|
+
const tmp = join191(dirname86(path2), `.${basename41(path2)}.${process.pid}.${randomBytes25(4).toString("hex")}.tmp`);
|
|
303178
303260
|
try {
|
|
303179
303261
|
writeFileSync69(tmp, text32, { encoding: "utf8", flag: "wx" });
|
|
303180
303262
|
renameSync26(tmp, path2);
|