peachsim 0.1.2422 → 0.1.2425
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/cli/command-agent.ts +14 -15
- package/cli/commands/box.ts +33 -28
- package/cli/commands/canvas.ts +54 -0
- package/cli/commands/platform.ts +28 -27
- package/cli/commands/preview.ts +2 -1
- package/cli/outbound-endpoints.ts +141 -23
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +114 -28
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +22 -1
- package/dist-lib/cloud-contract.mjs +20 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +27 -13
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +112 -26
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +114 -28
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +88 -59
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +22 -7
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +25 -10
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +54 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +258 -150
- package/dist-lib/swift-compile.cjs +87 -16
- package/dist-lib/swift-compile.mjs +87 -16
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +88 -17
- package/dist-lib/vite.cjs +25 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +83 -2
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/canvasAgentContract.d.ts +8 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +4 -2
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +12 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +5 -1
- package/kotlin/README.md +4 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +2 -2
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h +2 -0
- package/sdk/ios/wasm/include/errno.h +10 -0
- package/src/agent-daemon-client.ts +1 -1
- package/src/agent-prompt.ts +1 -8
- package/src/canvas-agent-note-delivery.ts +2 -5
- package/src/canvas-groups.ts +11 -3
- package/src/cloud-contract.ts +31 -1
- package/src/swift-compile.ts +1 -1
- package/src/swift-guest-compile.ts +2 -0
- package/src/swift-guest-image-ledger.ts +37 -2
- package/src/swift-guest-source-inputs.ts +45 -6
- package/src/visit-parsed-program.ts +21 -6
- package/src/vite-plugin.ts +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -25603,7 +25603,8 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25603
25603
|
if (sectionName === "linking") {
|
|
25604
25604
|
const version2 = number3();
|
|
25605
25605
|
if (version2 !== 2) throw new Error("unsupported wasm linking version");
|
|
25606
|
-
const
|
|
25606
|
+
const subsections = [];
|
|
25607
|
+
let objcLoader;
|
|
25607
25608
|
while (offset < section.length) {
|
|
25608
25609
|
const kind = section[offset++];
|
|
25609
25610
|
const length = number3();
|
|
@@ -25666,6 +25667,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25666
25667
|
}
|
|
25667
25668
|
} else if (symbolKind === 3) number3();
|
|
25668
25669
|
else throw new Error("unsupported wasm symbol kind");
|
|
25670
|
+
if (name3 === OBJC_LOAD_FUNCTION && symbolKind === 0 && !(flags & 16)) {
|
|
25671
|
+
objcLoader = i;
|
|
25672
|
+
}
|
|
25669
25673
|
const alias = names.get(name3);
|
|
25670
25674
|
if (flags & 16 && symbolKind === 1 && alias) usedSymbols.add(name3);
|
|
25671
25675
|
if ((name3 === "dlsym" && usesDlsym || name3 === "dlerror" && usesDlerror) && flags & 16 && flags & 64 && symbolKind === 0) {
|
|
@@ -25715,7 +25719,36 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
25715
25719
|
content = Buffer.concat([...entries, ...extraEntries]);
|
|
25716
25720
|
}
|
|
25717
25721
|
offset = stop;
|
|
25718
|
-
|
|
25722
|
+
subsections.push({ kind, content });
|
|
25723
|
+
}
|
|
25724
|
+
const parts = [encodedString(sectionName), encodeNumber(version2)];
|
|
25725
|
+
for (const subsection of subsections) {
|
|
25726
|
+
let content = subsection.content;
|
|
25727
|
+
if (subsection.kind === 6 && objcLoader !== void 0) {
|
|
25728
|
+
const [count, entriesStart] = readNumber(content, 0);
|
|
25729
|
+
const entries = [content.subarray(0, entriesStart)];
|
|
25730
|
+
let entryStart = entriesStart;
|
|
25731
|
+
for (let i = 0; i < count; i++) {
|
|
25732
|
+
const [, symbolStart] = readNumber(content, entryStart);
|
|
25733
|
+
const [symbol2, entryEnd] = readNumber(content, symbolStart);
|
|
25734
|
+
if (symbol2 === objcLoader) entries.push(encodeNumber(1));
|
|
25735
|
+
entries.push(
|
|
25736
|
+
content.subarray(
|
|
25737
|
+
symbol2 === objcLoader ? symbolStart : entryStart,
|
|
25738
|
+
entryEnd
|
|
25739
|
+
)
|
|
25740
|
+
);
|
|
25741
|
+
entryStart = entryEnd;
|
|
25742
|
+
}
|
|
25743
|
+
if (entryStart !== content.length)
|
|
25744
|
+
throw new Error("invalid init functions subsection");
|
|
25745
|
+
content = Buffer.concat(entries);
|
|
25746
|
+
}
|
|
25747
|
+
parts.push(
|
|
25748
|
+
Buffer.from([subsection.kind]),
|
|
25749
|
+
encodeNumber(content.length),
|
|
25750
|
+
content
|
|
25751
|
+
);
|
|
25719
25752
|
}
|
|
25720
25753
|
section = Buffer.concat(parts);
|
|
25721
25754
|
}
|
|
@@ -26009,11 +26042,12 @@ function createGuestImageLedger(input) {
|
|
|
26009
26042
|
llvmIR: ir.join("\n") + "\n"
|
|
26010
26043
|
};
|
|
26011
26044
|
}
|
|
26012
|
-
var OBJC_INIT_RECORD;
|
|
26045
|
+
var OBJC_INIT_RECORD, OBJC_LOAD_FUNCTION;
|
|
26013
26046
|
var init_swift_guest_image_ledger = __esm({
|
|
26014
26047
|
"src/swift-guest-image-ledger.ts"() {
|
|
26015
26048
|
"use strict";
|
|
26016
26049
|
OBJC_INIT_RECORD = ".objc_init";
|
|
26050
|
+
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
26017
26051
|
}
|
|
26018
26052
|
});
|
|
26019
26053
|
|
|
@@ -28670,7 +28704,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
28670
28704
|
commands.set(file, { tool, args: value });
|
|
28671
28705
|
}
|
|
28672
28706
|
}
|
|
28673
|
-
const
|
|
28707
|
+
const replays = [];
|
|
28674
28708
|
for (const [index, file] of [...wanted].entries()) {
|
|
28675
28709
|
const command = commands.get(file);
|
|
28676
28710
|
if (!command) throw new Error(`missing source object producer ${file}`);
|
|
@@ -28696,16 +28730,33 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
28696
28730
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
28697
28731
|
args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
|
|
28698
28732
|
}
|
|
28699
|
-
|
|
28700
|
-
|
|
28701
|
-
[
|
|
28702
|
-
|
|
28703
|
-
|
|
28733
|
+
replays.push({
|
|
28734
|
+
file,
|
|
28735
|
+
compiler: command.args[0],
|
|
28736
|
+
args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
|
|
28737
|
+
output: output2
|
|
28738
|
+
});
|
|
28739
|
+
}
|
|
28740
|
+
const plan = import_node_path33.default.join(options.directory, "clang-link-replays.json");
|
|
28741
|
+
(0, import_node_fs34.writeFileSync)(
|
|
28742
|
+
plan,
|
|
28743
|
+
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
28744
|
+
);
|
|
28745
|
+
(0, import_node_child_process19.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
|
|
28746
|
+
stdio: "inherit",
|
|
28747
|
+
env: {
|
|
28748
|
+
...process.env,
|
|
28749
|
+
PEACH_CLANG_REPLAYS: plan,
|
|
28750
|
+
PEACH_CLANG_JOBS: String(options.jobs)
|
|
28751
|
+
}
|
|
28752
|
+
});
|
|
28753
|
+
const result = /* @__PURE__ */ new Map();
|
|
28754
|
+
for (const { file, output: output2 } of replays) {
|
|
28704
28755
|
const flags = clangIrLinkOptions((0, import_node_fs34.readFileSync)(output2, "utf8"));
|
|
28705
|
-
for (let
|
|
28706
|
-
const flag = flags[
|
|
28756
|
+
for (let index = 0; index < flags.length; index++) {
|
|
28757
|
+
const flag = flags[index];
|
|
28707
28758
|
if (flag === "-framework" || flag === "-l" || flag === "--library") {
|
|
28708
|
-
const name3 = flags[++
|
|
28759
|
+
const name3 = flags[++index];
|
|
28709
28760
|
if (!name3 || name3.startsWith("-"))
|
|
28710
28761
|
throw new Error(`missing clang link name after ${flag}`);
|
|
28711
28762
|
} else if (!/^(-l.+|--library=.+)$/.test(flag)) {
|
|
@@ -28931,7 +28982,7 @@ function logicalGuestLinkOptions(args, identities, roots) {
|
|
|
28931
28982
|
}
|
|
28932
28983
|
return output2;
|
|
28933
28984
|
}
|
|
28934
|
-
var import_node_child_process19, import_node_crypto18, import_node_fs34, import_node_path33, CLANG_TARGET_MODULE_WRAPPER;
|
|
28985
|
+
var import_node_child_process19, import_node_crypto18, import_node_fs34, import_node_path33, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
|
|
28935
28986
|
var init_swift_guest_source_inputs = __esm({
|
|
28936
28987
|
"src/swift-guest-source-inputs.ts"() {
|
|
28937
28988
|
"use strict";
|
|
@@ -28942,6 +28993,25 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
28942
28993
|
init_swift_guest_source_plan();
|
|
28943
28994
|
init_swift_runtime_products();
|
|
28944
28995
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
28996
|
+
PARALLEL_REPLAY = `
|
|
28997
|
+
const { spawn } = require('node:child_process')
|
|
28998
|
+
const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
|
|
28999
|
+
let next = 0
|
|
29000
|
+
const run = () => {
|
|
29001
|
+
if (next >= commands.length) return Promise.resolve()
|
|
29002
|
+
const [file, ...args] = commands[next++]
|
|
29003
|
+
return new Promise((resolve, reject) => {
|
|
29004
|
+
const child = spawn(file, args, { stdio: 'inherit' })
|
|
29005
|
+
child.on('error', reject)
|
|
29006
|
+
child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
|
|
29007
|
+
}).then(run)
|
|
29008
|
+
}
|
|
29009
|
+
const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
|
|
29010
|
+
Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
|
|
29011
|
+
console.error(error.message)
|
|
29012
|
+
process.exit(1)
|
|
29013
|
+
})
|
|
29014
|
+
`;
|
|
28945
29015
|
}
|
|
28946
29016
|
});
|
|
28947
29017
|
|
|
@@ -29516,7 +29586,8 @@ async function compileGuestLink(options) {
|
|
|
29516
29586
|
directory: directory2,
|
|
29517
29587
|
toolchainBin: options.toolchainBin,
|
|
29518
29588
|
swiftCompiler: options.swiftCompiler,
|
|
29519
|
-
objects: selectedSource.map((artifact) => artifact.path)
|
|
29589
|
+
objects: selectedSource.map((artifact) => artifact.path),
|
|
29590
|
+
jobs: options.jobs
|
|
29520
29591
|
});
|
|
29521
29592
|
const links = sourceGuestRuntimeLinks({
|
|
29522
29593
|
toolchainBin: options.toolchainBin,
|
|
@@ -36161,7 +36232,8 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
36161
36232
|
generatedOwners: preparation.generatedOwners,
|
|
36162
36233
|
output: output2,
|
|
36163
36234
|
optimized,
|
|
36164
|
-
optimize: input.optimize === true
|
|
36235
|
+
optimize: input.optimize === true,
|
|
36236
|
+
jobs: swiftBuildJobs()
|
|
36165
36237
|
});
|
|
36166
36238
|
else
|
|
36167
36239
|
await lowerWasm(output2, optimized, { optimize: input.optimize === true });
|
|
@@ -36431,7 +36503,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
36431
36503
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
36432
36504
|
MULTI_MANIFEST_VERSION = 72;
|
|
36433
36505
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
36434
|
-
compilerSourceDigest = true ? "
|
|
36506
|
+
compilerSourceDigest = true ? "714dbca336e958240697a0238ee5b0640b2b212c34df4843e82d0c1abe3e8c43" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
36435
36507
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
36436
36508
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
36437
36509
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -36515,7 +36587,6 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
36515
36587
|
"NSSwappedDouble",
|
|
36516
36588
|
"NSSwappedFloat",
|
|
36517
36589
|
"NSUbiquitousKeyValueStore",
|
|
36518
|
-
"NSValueTransformerName",
|
|
36519
36590
|
"NSXPCCoder",
|
|
36520
36591
|
"NSXPCConnection",
|
|
36521
36592
|
"NSXPCInterface",
|
|
@@ -52233,19 +52304,34 @@ var init_public_brand = __esm({
|
|
|
52233
52304
|
|
|
52234
52305
|
// src/visit-parsed-program.ts
|
|
52235
52306
|
function visitParsedProgram(program, visitor) {
|
|
52307
|
+
const enterByType = /* @__PURE__ */ new Map();
|
|
52308
|
+
const exitByType = /* @__PURE__ */ new Map();
|
|
52309
|
+
for (const key2 of Object.keys(visitor)) {
|
|
52310
|
+
const handler = Reflect.get(visitor, key2);
|
|
52311
|
+
if (typeof handler !== "function") continue;
|
|
52312
|
+
const invoke = (node) => {
|
|
52313
|
+
handler(node);
|
|
52314
|
+
};
|
|
52315
|
+
if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
|
|
52316
|
+
else enterByType.set(key2, invoke);
|
|
52317
|
+
}
|
|
52318
|
+
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
52319
|
+
const hasExit = exitByType.size > 0;
|
|
52236
52320
|
function visit3(value) {
|
|
52237
52321
|
if (Array.isArray(value)) {
|
|
52238
|
-
for (
|
|
52322
|
+
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
52239
52323
|
return;
|
|
52240
52324
|
}
|
|
52241
52325
|
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
52242
52326
|
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
52243
52327
|
if (!keys) return;
|
|
52244
|
-
const enter =
|
|
52245
|
-
if (
|
|
52246
|
-
for (
|
|
52247
|
-
|
|
52248
|
-
|
|
52328
|
+
const enter = enterByType.get(value.type);
|
|
52329
|
+
if (enter) enter(value);
|
|
52330
|
+
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
52331
|
+
if (hasExit) {
|
|
52332
|
+
const exit = exitByType.get(value.type);
|
|
52333
|
+
if (exit) exit(value);
|
|
52334
|
+
}
|
|
52249
52335
|
}
|
|
52250
52336
|
visit3(program);
|
|
52251
52337
|
}
|
|
@@ -58937,7 +59023,7 @@ var init_swift_standin_digest = __esm({
|
|
|
58937
59023
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
58938
59024
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
58939
59025
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
58940
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
59026
|
+
STANDIN_SOURCE_DIGEST = true ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : standinSourceDigest();
|
|
58941
59027
|
}
|
|
58942
59028
|
});
|
|
58943
59029
|
|
|
@@ -73590,7 +73676,7 @@ var init_nitro_superset = __esm({
|
|
|
73590
73676
|
init_nitroContract();
|
|
73591
73677
|
init_swift_standin_digest();
|
|
73592
73678
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
73593
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
73679
|
+
NITRO_COMPILER_DIGEST = true ? "5e8f14caf06af284e971f4107b94fe6d6979dd2ac0da718416a93c6e36e8e2a0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
73594
73680
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
73595
73681
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
73596
73682
|
published = /* @__PURE__ */ new Map();
|
|
@@ -74829,7 +74915,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
74829
74915
|
|
|
74830
74916
|
// src/expo-native-prebuilt.ts
|
|
74831
74917
|
function expoNativeCompilerDigestValue() {
|
|
74832
|
-
return true ? "
|
|
74918
|
+
return true ? "305cb9d6b64ebf2397b29848afd9b634d4012fc3eb51d696e9bdda10ea074097" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
74833
74919
|
}
|
|
74834
74920
|
function readSources(value) {
|
|
74835
74921
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -81724,7 +81810,7 @@ var import_node_path5 = require("node:path");
|
|
|
81724
81810
|
init_src();
|
|
81725
81811
|
|
|
81726
81812
|
// runtime-companion.json
|
|
81727
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
81813
|
+
var runtime_companion_default = { abi: 1, sha256: "50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474", file: "node/cli-50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474.cjs" };
|
|
81728
81814
|
|
|
81729
81815
|
// src/cli-runtime.ts
|
|
81730
81816
|
init_answeredNativePackages();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -39,6 +39,8 @@ __export(cloud_contract_exports, {
|
|
|
39
39
|
RNX_CLOUD_TEST_FILES_MAX_BYTES: () => RNX_CLOUD_TEST_FILES_MAX_BYTES,
|
|
40
40
|
RNX_CLOUD_TEST_FILES_MAX_COUNT: () => RNX_CLOUD_TEST_FILES_MAX_COUNT,
|
|
41
41
|
RNX_CLOUD_TOKEN_SCOPES: () => RNX_CLOUD_TOKEN_SCOPES,
|
|
42
|
+
agentActionTarget: () => agentActionTarget,
|
|
43
|
+
agentActionTargetName: () => agentActionTargetName,
|
|
42
44
|
isRnxCloudCommandScope: () => isRnxCloudCommandScope,
|
|
43
45
|
isRnxCloudCommandType: () => isRnxCloudCommandType,
|
|
44
46
|
isRnxCloudSimStatus: () => isRnxCloudSimStatus,
|
|
@@ -67,6 +69,23 @@ function readAgentIdentity(value) {
|
|
|
67
69
|
if (id === null || name === null || machine === null || step === null) return null;
|
|
68
70
|
return { id, name, machine, step };
|
|
69
71
|
}
|
|
72
|
+
var TEXT_FIELD_TYPE = /text ?(input|field)/i;
|
|
73
|
+
function agentActionTarget(target) {
|
|
74
|
+
if (!target) return void 0;
|
|
75
|
+
const clean = (value) => {
|
|
76
|
+
const text2 = value?.trim().replace(/\s+/g, " ");
|
|
77
|
+
return text2 ? text2.slice(0, AGENT_IDENTITY_MAX_CHARS) : void 0;
|
|
78
|
+
};
|
|
79
|
+
const id = clean(target.id);
|
|
80
|
+
const testID = clean(target.testID);
|
|
81
|
+
const text = TEXT_FIELD_TYPE.test(target.type ?? "") ? void 0 : clean(target.text);
|
|
82
|
+
if (!id && !testID && !text) return void 0;
|
|
83
|
+
return { ...id && { id }, ...testID && { testID }, ...text && { text } };
|
|
84
|
+
}
|
|
85
|
+
function agentActionTargetName(target) {
|
|
86
|
+
const safe = agentActionTarget(target);
|
|
87
|
+
return safe?.text ?? safe?.testID ?? safe?.id ?? null;
|
|
88
|
+
}
|
|
70
89
|
var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
71
90
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_ENTRIES = 256;
|
|
72
91
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
@@ -206,6 +225,8 @@ function isRnxCloudSimStatus(value) {
|
|
|
206
225
|
RNX_CLOUD_TEST_FILES_MAX_BYTES,
|
|
207
226
|
RNX_CLOUD_TEST_FILES_MAX_COUNT,
|
|
208
227
|
RNX_CLOUD_TOKEN_SCOPES,
|
|
228
|
+
agentActionTarget,
|
|
229
|
+
agentActionTargetName,
|
|
209
230
|
isRnxCloudCommandScope,
|
|
210
231
|
isRnxCloudCommandType,
|
|
211
232
|
isRnxCloudSimStatus,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/cloud-contract.ts
|
|
4
4
|
var AGENT_IDENTITY_MAX_CHARS = 200;
|
|
@@ -16,6 +16,23 @@ function readAgentIdentity(value) {
|
|
|
16
16
|
if (id === null || name === null || machine === null || step === null) return null;
|
|
17
17
|
return { id, name, machine, step };
|
|
18
18
|
}
|
|
19
|
+
var TEXT_FIELD_TYPE = /text ?(input|field)/i;
|
|
20
|
+
function agentActionTarget(target) {
|
|
21
|
+
if (!target) return void 0;
|
|
22
|
+
const clean = (value) => {
|
|
23
|
+
const text2 = value?.trim().replace(/\s+/g, " ");
|
|
24
|
+
return text2 ? text2.slice(0, AGENT_IDENTITY_MAX_CHARS) : void 0;
|
|
25
|
+
};
|
|
26
|
+
const id = clean(target.id);
|
|
27
|
+
const testID = clean(target.testID);
|
|
28
|
+
const text = TEXT_FIELD_TYPE.test(target.type ?? "") ? void 0 : clean(target.text);
|
|
29
|
+
if (!id && !testID && !text) return void 0;
|
|
30
|
+
return { ...id && { id }, ...testID && { testID }, ...text && { text } };
|
|
31
|
+
}
|
|
32
|
+
function agentActionTargetName(target) {
|
|
33
|
+
const safe = agentActionTarget(target);
|
|
34
|
+
return safe?.text ?? safe?.testID ?? safe?.id ?? null;
|
|
35
|
+
}
|
|
19
36
|
var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
20
37
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_ENTRIES = 256;
|
|
21
38
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
@@ -154,6 +171,8 @@ export {
|
|
|
154
171
|
RNX_CLOUD_TEST_FILES_MAX_BYTES,
|
|
155
172
|
RNX_CLOUD_TEST_FILES_MAX_COUNT,
|
|
156
173
|
RNX_CLOUD_TOKEN_SCOPES,
|
|
174
|
+
agentActionTarget,
|
|
175
|
+
agentActionTargetName,
|
|
157
176
|
isRnxCloudCommandScope,
|
|
158
177
|
isRnxCloudCommandType,
|
|
159
178
|
isRnxCloudSimStatus,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2476,7 +2476,7 @@ function isValidRuntimeVersion(value) {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
|
|
2478
2478
|
// runtime-companion.json
|
|
2479
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
2479
|
+
var runtime_companion_default = { abi: 1, sha256: "50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474", file: "node/cli-50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474.cjs" };
|
|
2480
2480
|
|
|
2481
2481
|
// src/answeredNativePackages.ts
|
|
2482
2482
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -2616,6 +2616,23 @@ var NativeURL = globalThis.URL;
|
|
|
2616
2616
|
|
|
2617
2617
|
// src/cloud-contract.ts
|
|
2618
2618
|
var AGENT_IDENTITY_MAX_CHARS = 200;
|
|
2619
|
+
var TEXT_FIELD_TYPE = /text ?(input|field)/i;
|
|
2620
|
+
function agentActionTarget(target) {
|
|
2621
|
+
if (!target) return void 0;
|
|
2622
|
+
const clean = (value) => {
|
|
2623
|
+
const text2 = value?.trim().replace(/\s+/g, " ");
|
|
2624
|
+
return text2 ? text2.slice(0, AGENT_IDENTITY_MAX_CHARS) : void 0;
|
|
2625
|
+
};
|
|
2626
|
+
const id = clean(target.id);
|
|
2627
|
+
const testID = clean(target.testID);
|
|
2628
|
+
const text = TEXT_FIELD_TYPE.test(target.type ?? "") ? void 0 : clean(target.text);
|
|
2629
|
+
if (!id && !testID && !text) return void 0;
|
|
2630
|
+
return { ...id && { id }, ...testID && { testID }, ...text && { text } };
|
|
2631
|
+
}
|
|
2632
|
+
function agentActionTargetName(target) {
|
|
2633
|
+
const safe2 = agentActionTarget(target);
|
|
2634
|
+
return safe2?.text ?? safe2?.testID ?? safe2?.id ?? null;
|
|
2635
|
+
}
|
|
2619
2636
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
2620
2637
|
var RNX_CLOUD_COMMAND_SCOPES = {
|
|
2621
2638
|
state: "read",
|
|
@@ -3148,23 +3165,19 @@ function isOpenPending() {
|
|
|
3148
3165
|
function clip(text) {
|
|
3149
3166
|
return text.length > AGENT_IDENTITY_MAX_CHARS ? `${text.slice(0, AGENT_IDENTITY_MAX_CHARS - 1)}\u2026` : text;
|
|
3150
3167
|
}
|
|
3151
|
-
function targetName(target) {
|
|
3152
|
-
const name2 = target?.text?.trim() || target?.testID?.trim() || target?.id?.trim();
|
|
3153
|
-
return name2 ? name2.replace(/\s+/g, " ") : null;
|
|
3154
|
-
}
|
|
3155
3168
|
function verb(action, target) {
|
|
3156
3169
|
return target ? `${action} ${target}` : action;
|
|
3157
3170
|
}
|
|
3158
3171
|
function describeStep(step) {
|
|
3159
3172
|
switch (step.type) {
|
|
3160
3173
|
case "tap":
|
|
3161
|
-
return verb("Tapping",
|
|
3174
|
+
return verb("Tapping", agentActionTargetName(step.target));
|
|
3162
3175
|
case "tapId":
|
|
3163
3176
|
return verb("Tapping", step.id);
|
|
3164
3177
|
case "doubleTap":
|
|
3165
3178
|
return "Double tapping";
|
|
3166
3179
|
case "longPress":
|
|
3167
|
-
return verb("Long pressing",
|
|
3180
|
+
return verb("Long pressing", agentActionTargetName(step.target));
|
|
3168
3181
|
case "drag":
|
|
3169
3182
|
return "Dragging";
|
|
3170
3183
|
case "pinch":
|
|
@@ -3207,9 +3220,9 @@ function describeStep(step) {
|
|
|
3207
3220
|
function describeCommand(command) {
|
|
3208
3221
|
switch (command.type) {
|
|
3209
3222
|
case "tap":
|
|
3210
|
-
return verb("Tapping",
|
|
3223
|
+
return verb("Tapping", agentActionTargetName(command.target));
|
|
3211
3224
|
case "longPress":
|
|
3212
|
-
return verb("Long pressing",
|
|
3225
|
+
return verb("Long pressing", agentActionTargetName(command.target));
|
|
3213
3226
|
case "keyboard":
|
|
3214
3227
|
return command.action === "dismiss" ? "Dismissing the keyboard" : command.action === "press" || command.action === "dispatchKey" ? "Pressing a key" : "Typing";
|
|
3215
3228
|
case "screenshot":
|
|
@@ -3224,6 +3237,9 @@ function describeCommand(command) {
|
|
|
3224
3237
|
return null;
|
|
3225
3238
|
}
|
|
3226
3239
|
}
|
|
3240
|
+
function cliAgentName(identityKey) {
|
|
3241
|
+
return readAgentId() ?? (process.env.PEACH_AGENT_ID?.trim() || formatLockOwner(identityKey));
|
|
3242
|
+
}
|
|
3227
3243
|
function commandAgent(command) {
|
|
3228
3244
|
const step = describeCommand(command);
|
|
3229
3245
|
if (!step) return void 0;
|
|
@@ -3233,9 +3249,7 @@ function commandAgent(command) {
|
|
|
3233
3249
|
if (!machine) return void 0;
|
|
3234
3250
|
return {
|
|
3235
3251
|
id: clip(identity.key),
|
|
3236
|
-
name: clip(
|
|
3237
|
-
readAgentId() ?? (process.env.PEACH_AGENT_ID?.trim() || formatLockOwner(identity.key))
|
|
3238
|
-
),
|
|
3252
|
+
name: clip(cliAgentName(identity.key)),
|
|
3239
3253
|
machine: clip(machine),
|
|
3240
3254
|
step: clip(step)
|
|
3241
3255
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|