peachsim 0.1.1667 → 0.1.1674
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/README.md +1 -1
- package/cli/bridge-flow-runner.ts +4 -1
- package/cli/commands/coverage-swift.ts +291 -0
- package/cli/commands/coverage.ts +168 -24
- package/cli/commands/diagnose.ts +1 -19
- package/cli/commands/inspect/settling.ts +37 -4
- package/cli/commands/react.ts +3 -18
- package/cli/commands/screenshot.ts +1 -1
- package/cli/commands/screenshots-capture.ts +1 -1
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/drivers/playwright.ts +15 -1
- package/cli/scene-video.ts +1 -1
- package/cli/ui.ts +20 -0
- package/cli/ws-bridge.ts +7 -36
- package/detox/frame-identity.cjs +21 -0
- package/detox/frame-identity.d.cts +6 -0
- package/detox/index.ts +39 -33
- package/detox/jest-environment.cjs +4 -1
- package/detox/jest-setup-after-env.cjs +0 -4
- package/detox/navigation-lifecycle.ts +2 -2
- package/detox/proof-observer.ts +126 -0
- package/dist-lib/agent-daemon-client.cjs +29 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +10 -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 +557 -158
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -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 +5098 -7344
- package/dist-lib/detox/jest-environment.cjs +4 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +602 -152
- 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 +688 -194
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -3
- 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 +247 -11
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- 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 +10 -1
- package/dist-lib/metro-production-bundle.mjs +12 -1
- package/dist-lib/metro.cjs +155 -5
- package/dist-lib/native-app-identity-project.cjs +43 -5
- package/dist-lib/native-app-identity-project.mjs +43 -5
- 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/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +21 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +73 -27
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +563 -183
- 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 +964 -0
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +38 -5
- package/dist-lib/sdk.mjs +38 -5
- package/dist-lib/skills.cjs +1031 -530
- package/dist-lib/swift-compile.cjs +298 -86
- package/dist-lib/swift-compile.mjs +298 -86
- package/dist-lib/swift-package.cjs +53 -4
- package/dist-lib/swift-package.mjs +52 -4
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +25 -44
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +603 -114
- package/dist-lib/vite.cjs +65 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +4 -2
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +18 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +54 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +23 -4
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
- package/sdk/ios/usr/include/_ctype.h +388 -0
- package/sdk/ios/usr/include/_inttypes.h +296 -0
- package/sdk/ios/usr/include/_locale.h +83 -0
- package/sdk/ios/usr/include/_locale_posix2008.h +65 -0
- package/sdk/ios/usr/include/_time.h +207 -0
- package/sdk/ios/usr/include/ctype.h +70 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +69 -6
- package/sdk/ios/usr/include/inttypes.h +35 -0
- package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
- package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
- package/sdk/ios/usr/include/locale.h +59 -0
- package/sdk/ios/usr/include/runetype.h +118 -0
- package/sdk/ios/usr/include/setjmp.h +99 -0
- package/sdk/ios/usr/include/sys/_types/_clock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ct_rune_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_rune_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_time_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_wint_t.h +33 -0
- package/sdk/ios/usr/include/sys/cdefs.h +2 -0
- package/sdk/ios/usr/include/time.h +67 -2
- package/src/bridge-contract.ts +42 -0
- package/src/chromium-admission.ts +196 -0
- package/src/host/bridge-host.ts +6 -43
- package/src/host/rolldown-bundle-forward.ts +4 -1
- package/src/launch-deadline.ts +74 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/profiles.ts +21 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
- package/src/react-native-coverage/capability-source-references.ts +1296 -0
- package/src/react-native-coverage/native-typescript-parser.ts +74 -0
- package/src/react-native-coverage/project-aliases.ts +207 -0
- package/src/react-native-coverage/verified-reach.ts +47 -0
- package/src/reap-browser.ts +1019 -0
- package/src/skills/builtin/a11y-review.ts +1 -1
- package/src/skills/builtin/perf-profile.ts +1 -1
- package/src/skills/builtin/screenshot-all.ts +1 -1
- package/src/skills/builtin/visual-diff.ts +1 -1
- package/src/swift-compile.ts +109 -57
- package/src/swift-coverage/indexdump.ts +80 -0
- package/src/swift-coverage/indexing.ts +147 -0
- package/src/swift-coverage/package.ts +230 -0
- package/src/swift-coverage/provenance.ts +47 -0
- package/src/swift-coverage/reader.ts +81 -0
- package/src/swift-coverage/source.ts +252 -0
- package/src/swift-coverage/types.ts +58 -0
- package/src/swift-coverage/xcode-assets.ts +175 -0
- package/src/swift-coverage/xcode-bridging.ts +160 -0
- package/src/swift-coverage/xcode-packages.ts +251 -0
- package/src/swift-coverage/xcode-strings.ts +78 -0
- package/src/swift-coverage/xcode.ts +656 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-host.ts +21 -1
- package/src/swift-objc-compile.ts +7 -3
- package/src/swift-objc-import.ts +191 -27
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-standin.ts +9 -2
- package/src/swift-package-manifest.ts +134 -13
- package/src/swift-package.ts +69 -4
- package/src/swift-standins.ts +4 -1
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +36 -61
- package/src/worker-system-chunks.ts +3 -10
- package/src/xcode-project.ts +5 -5
- package/detox/attempt-events.cjs +0 -914
- package/detox/attempt-events.d.cts +0 -113
- package/detox/motion-change.cjs +0 -524
- package/detox/motion-change.d.cts +0 -140
- package/detox/motion-leg-starts.cjs +0 -20
- package/detox/motion-leg-starts.d.cts +0 -8
- package/detox/proof-frame.cjs +0 -190
- package/detox/record-block-execution.cjs +0 -78
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -32,11 +32,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
));
|
|
33
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
34
|
|
|
35
|
+
// <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
|
|
36
|
+
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
37
|
+
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
35
41
|
// runtime-companion.json
|
|
36
42
|
var runtime_companion_default;
|
|
37
43
|
var init_runtime_companion = __esm({
|
|
38
44
|
"runtime-companion.json"() {
|
|
39
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
45
|
+
runtime_companion_default = { abi: 1, sha256: "24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8", file: "node/cli-24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8.cjs" };
|
|
40
46
|
}
|
|
41
47
|
});
|
|
42
48
|
|
|
@@ -44,6 +50,7 @@ var init_runtime_companion = __esm({
|
|
|
44
50
|
var init_process_group = __esm({
|
|
45
51
|
"src/process-group.ts"() {
|
|
46
52
|
"use strict";
|
|
53
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
47
54
|
}
|
|
48
55
|
});
|
|
49
56
|
|
|
@@ -54,6 +61,7 @@ function isValidRuntimeVersion(value) {
|
|
|
54
61
|
var init_version = __esm({
|
|
55
62
|
"../contrast-runtime-delivery/src/version.ts"() {
|
|
56
63
|
"use strict";
|
|
64
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57
65
|
}
|
|
58
66
|
});
|
|
59
67
|
|
|
@@ -61,6 +69,7 @@ var init_version = __esm({
|
|
|
61
69
|
var init_product = __esm({
|
|
62
70
|
"../contrast-runtime-delivery/src/product.ts"() {
|
|
63
71
|
"use strict";
|
|
72
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
64
73
|
init_version();
|
|
65
74
|
}
|
|
66
75
|
});
|
|
@@ -69,6 +78,7 @@ var init_product = __esm({
|
|
|
69
78
|
var init_src = __esm({
|
|
70
79
|
"../contrast-runtime-delivery/src/index.ts"() {
|
|
71
80
|
"use strict";
|
|
81
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72
82
|
init_process_group();
|
|
73
83
|
init_product();
|
|
74
84
|
init_product();
|
|
@@ -134,6 +144,7 @@ var import_node_fs, import_node_os, import_node_path, PEACH_HOME_ENV, ACTIVE_RUN
|
|
|
134
144
|
var init_home_paths = __esm({
|
|
135
145
|
"src/home-paths.ts"() {
|
|
136
146
|
"use strict";
|
|
147
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
137
148
|
import_node_fs = __toESM(require("node:fs"), 1);
|
|
138
149
|
import_node_os = require("node:os");
|
|
139
150
|
import_node_path = __toESM(require("node:path"), 1);
|
|
@@ -292,6 +303,7 @@ var import_fs, import_path, import_url, SOOTSIM_RUNTIME_MISSING_MESSAGE, _monore
|
|
|
292
303
|
var init_runtime_assets = __esm({
|
|
293
304
|
"src/runtime-assets.ts"() {
|
|
294
305
|
"use strict";
|
|
306
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
295
307
|
import_fs = __toESM(require("fs"), 1);
|
|
296
308
|
import_path = __toESM(require("path"), 1);
|
|
297
309
|
import_url = require("url");
|
|
@@ -384,6 +396,7 @@ var import_node_crypto, import_node_fs2, import_node_module, import_node_path2,
|
|
|
384
396
|
var init_cli_runtime = __esm({
|
|
385
397
|
"src/cli-runtime.ts"() {
|
|
386
398
|
"use strict";
|
|
399
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
387
400
|
import_node_crypto = require("node:crypto");
|
|
388
401
|
import_node_fs2 = require("node:fs");
|
|
389
402
|
import_node_module = require("node:module");
|
|
@@ -401,6 +414,7 @@ __export(vite_plugin_one_exports, {
|
|
|
401
414
|
peachPlugin: () => peachPlugin
|
|
402
415
|
});
|
|
403
416
|
module.exports = __toCommonJS(vite_plugin_one_exports);
|
|
417
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
404
418
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
405
419
|
var import_node_crypto4 = require("node:crypto");
|
|
406
420
|
var import_node_http = __toESM(require("node:http"), 1);
|
|
@@ -410,7 +424,11 @@ var import_path3 = __toESM(require("path"), 1);
|
|
|
410
424
|
var import_promises3 = require("stream/promises");
|
|
411
425
|
var import_ws = require("ws");
|
|
412
426
|
|
|
427
|
+
// src/bridge-constants.ts
|
|
428
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
429
|
+
|
|
413
430
|
// src/simulator-route.ts
|
|
431
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
414
432
|
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
415
433
|
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
416
434
|
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
@@ -426,6 +444,7 @@ var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
|
426
444
|
init_cli_runtime();
|
|
427
445
|
|
|
428
446
|
// src/dev-server-open.ts
|
|
447
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
429
448
|
var import_node_child_process = require("node:child_process");
|
|
430
449
|
var import_node_crypto2 = require("node:crypto");
|
|
431
450
|
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
@@ -499,16 +518,19 @@ function launchRnxDesktop(bundleUrl, appName) {
|
|
|
499
518
|
init_home_paths();
|
|
500
519
|
|
|
501
520
|
// src/host/replacement-module-handler.ts
|
|
521
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
502
522
|
var import_node_fs4 = require("node:fs");
|
|
503
523
|
var import_promises = __toESM(require("node:fs/promises"), 1);
|
|
504
524
|
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
505
525
|
|
|
506
526
|
// ../contrast-bundler/src/replacementModule.ts
|
|
527
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
507
528
|
var import_dist = require("sucrase/dist/index.js");
|
|
508
529
|
var import_parser = require("sucrase/dist/parser/index.js");
|
|
509
530
|
var import_types = require("sucrase/dist/parser/tokenizer/types.js");
|
|
510
531
|
|
|
511
532
|
// ../contrast-bundler/src/posixPath.ts
|
|
533
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
512
534
|
var sep = "/";
|
|
513
535
|
var delimiter = ":";
|
|
514
536
|
function isAbsolute(p) {
|
|
@@ -810,6 +832,7 @@ function compileReplacementModule(input) {
|
|
|
810
832
|
}
|
|
811
833
|
|
|
812
834
|
// src/backend-origin.ts
|
|
835
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
813
836
|
function normalizeHostname(hostname) {
|
|
814
837
|
return hostname.replace(/^\[|\]$/g, "").toLowerCase();
|
|
815
838
|
}
|
|
@@ -964,6 +987,7 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
964
987
|
}
|
|
965
988
|
|
|
966
989
|
// src/host/rolldown-bundle-forward.ts
|
|
990
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
967
991
|
var import_stream = require("stream");
|
|
968
992
|
var import_promises2 = require("stream/promises");
|
|
969
993
|
init_cli_runtime();
|
|
@@ -1000,7 +1024,10 @@ async function forwardRolldownBundleResponse(upstream, res) {
|
|
|
1000
1024
|
const message = `could not attach the rolldown bundle inventory: ${error instanceof Error ? error.message : String(error)}`;
|
|
1001
1025
|
console.error(`[peach] ${message}`);
|
|
1002
1026
|
if (contentType.toLowerCase().includes("multipart/mixed")) {
|
|
1003
|
-
yield Buffer.from(
|
|
1027
|
+
yield Buffer.from(
|
|
1028
|
+
inventory.multipartFailurePart(contentType, message, payload.slice(0, sent)),
|
|
1029
|
+
"utf8"
|
|
1030
|
+
);
|
|
1004
1031
|
return;
|
|
1005
1032
|
}
|
|
1006
1033
|
res.statusCode = 500;
|
|
@@ -1014,10 +1041,12 @@ async function forwardRolldownBundleResponse(upstream, res) {
|
|
|
1014
1041
|
}
|
|
1015
1042
|
|
|
1016
1043
|
// src/installed-package-versions.ts
|
|
1044
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1017
1045
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
1018
1046
|
var import_path2 = __toESM(require("path"), 1);
|
|
1019
1047
|
|
|
1020
1048
|
// ../peach-compat/src/lazy-stub-patterns.ts
|
|
1049
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1021
1050
|
var LAZY_STUB_PATTERNS = [
|
|
1022
1051
|
"@10play/tentap-editor",
|
|
1023
1052
|
"@adobe/react-native-aepcore",
|
|
@@ -1221,7 +1250,11 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1221
1250
|
"voltra"
|
|
1222
1251
|
];
|
|
1223
1252
|
|
|
1253
|
+
// ../peach-compat/src/generated/native-package-names.ts
|
|
1254
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1255
|
+
|
|
1224
1256
|
// ../peach-compat/src/generated/light-native-package-names.ts
|
|
1257
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1225
1258
|
var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
1226
1259
|
"@100mslive/react-native-hms",
|
|
1227
1260
|
"@account-kit/react-native-signer",
|
|
@@ -3001,7 +3034,11 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
3001
3034
|
"react-native-sectioned-slider"
|
|
3002
3035
|
];
|
|
3003
3036
|
|
|
3037
|
+
// ../peach-compat/src/stub-manifest.ts
|
|
3038
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3039
|
+
|
|
3004
3040
|
// ../peach-compat/src/wrapper-real-packages.ts
|
|
3041
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3005
3042
|
var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
|
|
3006
3043
|
expoUiConfirmationDialog: {
|
|
3007
3044
|
specifier: "@peach-internal/expo-ui-confirmation-dialog",
|
|
@@ -3861,6 +3898,7 @@ var COMPAT_STUBS = {
|
|
|
3861
3898
|
};
|
|
3862
3899
|
|
|
3863
3900
|
// src/stub-pattern-matcher.ts
|
|
3901
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3864
3902
|
function extractPackageFromPath(modulePath) {
|
|
3865
3903
|
let nodeModulesIndex = modulePath.lastIndexOf("/node_modules/");
|
|
3866
3904
|
let prefixLength = "/node_modules/".length;
|
|
@@ -4004,6 +4042,7 @@ function readInstalledNativePackageVersions(projectRoot) {
|
|
|
4004
4042
|
}
|
|
4005
4043
|
|
|
4006
4044
|
// src/one-widget-metadata.ts
|
|
4045
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4007
4046
|
var import_node_child_process2 = require("node:child_process");
|
|
4008
4047
|
var import_node_crypto3 = require("node:crypto");
|
|
4009
4048
|
var import_node_fs6 = __toESM(require("node:fs"), 1);
|
|
@@ -4012,13 +4051,21 @@ var import_node_path6 = __toESM(require("node:path"), 1);
|
|
|
4012
4051
|
var import_node_util = require("node:util");
|
|
4013
4052
|
|
|
4014
4053
|
// cli/internal-child.ts
|
|
4054
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4015
4055
|
var RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
4016
4056
|
|
|
4017
4057
|
// src/is-record.ts
|
|
4058
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4018
4059
|
function isRecord(value) {
|
|
4019
4060
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4020
4061
|
}
|
|
4021
4062
|
|
|
4063
|
+
// src/oneWidgetContract.ts
|
|
4064
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4065
|
+
|
|
4066
|
+
// src/native-dev-bundle-url.ts
|
|
4067
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4068
|
+
|
|
4022
4069
|
// src/oneWidgetContract.ts
|
|
4023
4070
|
var HOME_WIDGET_FAMILIES = [
|
|
4024
4071
|
"systemSmall",
|
|
@@ -4031,6 +4078,7 @@ function isHomeWidgetFamily(value) {
|
|
|
4031
4078
|
}
|
|
4032
4079
|
|
|
4033
4080
|
// src/swift-source-file.ts
|
|
4081
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4034
4082
|
var import_node_fs5 = __toESM(require("node:fs"), 1);
|
|
4035
4083
|
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
4036
4084
|
function readPackageFile(root, file, maxBytes) {
|
|
@@ -4075,6 +4123,15 @@ function readPackageFile(root, file, maxBytes) {
|
|
|
4075
4123
|
}
|
|
4076
4124
|
}
|
|
4077
4125
|
|
|
4126
|
+
// src/swift-submit.ts
|
|
4127
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4128
|
+
|
|
4129
|
+
// src/swiftContract.ts
|
|
4130
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4131
|
+
|
|
4132
|
+
// src/assetCatalogContract.ts
|
|
4133
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4134
|
+
|
|
4078
4135
|
// src/swift-submit.ts
|
|
4079
4136
|
var SWIFT_PACKAGE_PATH = "/__peach/swift-package/";
|
|
4080
4137
|
var SWIFT_HMR_PATH = "/__peach/swift-hmr";
|
|
@@ -4246,7 +4303,11 @@ async function configuredOneWidget(appRoot, bundleUrl) {
|
|
|
4246
4303
|
};
|
|
4247
4304
|
}
|
|
4248
4305
|
|
|
4306
|
+
// src/packageVersionsContract.ts
|
|
4307
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4308
|
+
|
|
4249
4309
|
// src/bundleGlobalFooter.ts
|
|
4310
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4250
4311
|
function findBundleFooter(source, prefix) {
|
|
4251
4312
|
let end = source.length;
|
|
4252
4313
|
while (end > 0) {
|
|
@@ -4317,6 +4378,7 @@ function insertPackageVersionsFooter(source, versions) {
|
|
|
4317
4378
|
init_runtime_assets();
|
|
4318
4379
|
|
|
4319
4380
|
// src/swift-vite-lifetime.ts
|
|
4381
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4320
4382
|
var LIFETIME = Symbol.for("peach.swift-vite-lifetime");
|
|
4321
4383
|
function swiftViteLifetime(server) {
|
|
4322
4384
|
const existing = server[LIFETIME];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type SyncReplyBuffer } from '../render-worker/nativeSyncReplyContract.d.ts';
|
|
2
|
+
import type { SootSimClipboardPresence } from '../../../peach-globals/src/index.d.ts';
|
|
2
3
|
export type ClipboardSyncOperation = {
|
|
3
4
|
type: 'read';
|
|
5
|
+
} | {
|
|
6
|
+
type: 'presence';
|
|
4
7
|
} | {
|
|
5
8
|
type: 'write';
|
|
6
9
|
text: string | null;
|
|
@@ -8,6 +11,9 @@ export type ClipboardSyncOperation = {
|
|
|
8
11
|
export type ClipboardSyncResponse = {
|
|
9
12
|
ok: true;
|
|
10
13
|
text: string | null;
|
|
14
|
+
} | {
|
|
15
|
+
ok: true;
|
|
16
|
+
presence: SootSimClipboardPresence;
|
|
11
17
|
} | {
|
|
12
18
|
ok: false;
|
|
13
19
|
error: string;
|
|
@@ -15,3 +21,4 @@ export type ClipboardSyncResponse = {
|
|
|
15
21
|
export declare function createClipboardSyncReply(): SharedArrayBuffer;
|
|
16
22
|
export declare function completeClipboardSyncReply(reply: SyncReplyBuffer, response: ClipboardSyncResponse): void;
|
|
17
23
|
export declare function decodeClipboardSyncResponse(response: unknown): string | null;
|
|
24
|
+
export declare function decodeClipboardPresenceResponse(response: unknown): SootSimClipboardPresence;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const GLASS_STYLES: readonly ['regular', 'clear', 'home-dock', 'home-search', 'switch-thumb', 'slider-thumb', 'sidebar'];
|
|
1
|
+
declare const GLASS_STYLES: readonly ['regular', 'clear', 'home-dock', 'home-search', 'switch-thumb', 'slider-thumb', 'sidebar', 'keyboard'];
|
|
2
2
|
export type GlassStyle = (typeof GLASS_STYLES)[number];
|
|
3
3
|
export declare function glassMaterialCode(style: GlassStyle): number;
|
|
4
4
|
export type GlassScheme = 'light' | 'dark';
|
|
@@ -230,6 +230,7 @@ export declare function getImageLoaderStats(): {
|
|
|
230
230
|
};
|
|
231
231
|
export type ImageLoaderStats = ReturnType<typeof getImageLoaderStats>;
|
|
232
232
|
export declare function getLoadedImageCacheKey(node: SootSimNode): string | null;
|
|
233
|
+
export declare function collectImageCacheKeys(node: SootSimNode, keys: Set<string>): void;
|
|
233
234
|
export declare function getLoadedStaticImageRequest(node: SootSimNode): LoadedStaticImageRequest | null;
|
|
234
235
|
export declare function isLoadedStaticImageRequestCurrent(node: SootSimNode, request: LoadedStaticImageRequest): boolean;
|
|
235
236
|
export declare function countCachedImageEntriesForKeys(keys: ReadonlySet<string>): number;
|
|
@@ -331,6 +332,7 @@ export declare function getImageSize(uri: string, headers?: Record<string, strin
|
|
|
331
332
|
height: number;
|
|
332
333
|
} | null>;
|
|
333
334
|
export declare function stampImageDraw(node: SootSimNode): void;
|
|
335
|
+
export declare function stampImageBoundaryDraw(node: SootSimNode): void;
|
|
334
336
|
export declare function hasDeferredOrPendingImageLoad(node: SootSimNode): boolean;
|
|
335
337
|
export declare function getImageDecodeBucket(size: number, deviceScale?: number): number | null;
|
|
336
338
|
interface RasterDecodeTarget {
|
|
@@ -2,6 +2,7 @@ import { type VisibleFrameQuery } from './visible-frame.d.ts';
|
|
|
2
2
|
import type { SootSimNode } from './node.d.ts';
|
|
3
3
|
export declare const INSPECT_OVERLAY_TEST_ID = "__sootsimCanvasInspectOverlay";
|
|
4
4
|
export declare const INSPECT_APP_ROOT_TEST_ID = "__sootsimInspectAppRoot";
|
|
5
|
+
export type InspectPurpose = 'point' | 'semantic';
|
|
5
6
|
export declare const HANDLER_PROPS: readonly ['onPress', 'onClick', 'onPressIn', 'onPressOut', 'onLongPress', 'onPanStart', 'onPanMove', 'onPanEnd', 'onStartShouldSetResponder', 'onMoveShouldSetResponder', 'onResponderGrant', 'onResponderMove', 'onResponderRelease', 'onResponderTerminate'];
|
|
6
7
|
export declare const PRESS_HANDLER_PROPS: readonly ['onPress', 'onClick', 'onPressIn', 'onPressOut', 'onLongPress'];
|
|
7
8
|
export declare function hasInspectHandlers(node: SootSimNode): boolean;
|
|
@@ -10,5 +11,5 @@ export declare function hasSemanticIdentity(node: SootSimNode): boolean;
|
|
|
10
11
|
export declare function hasPaintedInspectBox(node: SootSimNode): boolean;
|
|
11
12
|
export declare function isLeafInspectContent(node: SootSimNode): boolean;
|
|
12
13
|
export declare function getInspectRoot(node: SootSimNode): SootSimNode;
|
|
13
|
-
export declare function shouldOutlineInspectNode(node: SootSimNode, query?: VisibleFrameQuery): boolean;
|
|
14
|
+
export declare function shouldOutlineInspectNode(node: SootSimNode, query?: VisibleFrameQuery, purpose?: InspectPurpose): boolean;
|
|
14
15
|
export declare function pickInspectTarget(node: SootSimNode, root: SootSimNode): SootSimNode;
|
|
@@ -26,6 +26,7 @@ export declare function adaptiveForegroundGlassAncestor<T extends {
|
|
|
26
26
|
export declare function subtreeSamplesLiveBackdrop(node: PaintBoundaryNode): boolean;
|
|
27
27
|
export declare function subtreeReadsLayerBackdrop(node: PaintBoundaryNode): boolean;
|
|
28
28
|
export declare function subtreeContainsTextInputHost(node: PaintBoundaryNode): boolean;
|
|
29
|
+
export declare function subtreeContainsMetalEffect(node: PaintBoundaryNode): boolean;
|
|
29
30
|
export declare function subtreeContainsLivePresentation(node: PaintBoundaryNode): boolean;
|
|
30
31
|
export declare function invalidateTextPresentationBoundary(node: PaintBoundaryNode): void;
|
|
31
32
|
export declare function invalidateSubtreeLivePresentationCache(node: PaintBoundaryNode): void;
|
|
@@ -37,7 +38,9 @@ export declare function readImageSourceScale(source: unknown): number;
|
|
|
37
38
|
export declare function dropNativeReplay(state: PaintBoundaryState): void;
|
|
38
39
|
export declare function beginPictureImages(): void;
|
|
39
40
|
export declare function notePictureImage(cacheKey: string): void;
|
|
40
|
-
export declare function endPictureImages(): string[];
|
|
41
|
+
export declare function endPictureImages(node: PaintBoundaryNode): string[];
|
|
42
|
+
export declare function stampPaintBoundaryImages(node: PaintBoundaryNode, owner: object, serial: number): void;
|
|
43
|
+
export declare function releaseUnpaintedBoundaryImages(owner: object, serial: number): void;
|
|
41
44
|
export declare function abandonPictureImages(): void;
|
|
42
45
|
export declare function pictureDrawsImage(cacheKey: string): boolean;
|
|
43
46
|
export declare function releaseChunks(state: PaintBoundaryState, flattenReleaseReason?: 'param' | 'content'): void;
|
|
@@ -147,10 +147,15 @@ export type HostServiceRequest = {
|
|
|
147
147
|
} | {
|
|
148
148
|
type: 'clipboardRead';
|
|
149
149
|
requestId: number;
|
|
150
|
+
mode?: 'items' | 'presence';
|
|
150
151
|
} | {
|
|
151
152
|
type: 'clipboardWrite';
|
|
152
153
|
requestId: number;
|
|
153
154
|
text: string;
|
|
155
|
+
} | {
|
|
156
|
+
type: 'clipboardWrite';
|
|
157
|
+
requestId: number;
|
|
158
|
+
items: import('../../../peach-globals/src/index.d.ts').SootSimClipboardItems;
|
|
154
159
|
} | {
|
|
155
160
|
type: 'clipboardSyncRequest';
|
|
156
161
|
operation: import('../engine/clipboardContract.d.ts').ClipboardSyncOperation;
|
|
@@ -406,6 +411,8 @@ export type HostServiceResponse = {
|
|
|
406
411
|
requestId: number;
|
|
407
412
|
ok: boolean;
|
|
408
413
|
text?: string;
|
|
414
|
+
items?: import('../../../peach-globals/src/index.d.ts').SootSimClipboardSnapshot;
|
|
415
|
+
presence?: import('../../../peach-globals/src/index.d.ts').SootSimClipboardPresence;
|
|
409
416
|
error?: string;
|
|
410
417
|
} | {
|
|
411
418
|
type: 'clipboardWriteResult';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum WorkletRuntimeKind {
|
|
2
|
+
ReactNative = 1,
|
|
3
|
+
UI = 2,
|
|
4
|
+
Worker = 3
|
|
5
|
+
}
|
|
6
|
+
export declare function getWorkletThreadId(): string;
|
|
7
|
+
export declare function runWithWorkletThreadId<T>(threadId: string | undefined, run: () => T): T;
|
|
8
|
+
export declare class WorkletMicrotaskQueue {
|
|
9
|
+
private readonly drainsOnPlatformMicrotask;
|
|
10
|
+
private jobs;
|
|
11
|
+
private scheduled;
|
|
12
|
+
private draining;
|
|
13
|
+
private disposed;
|
|
14
|
+
constructor(drainsOnPlatformMicrotask?: boolean);
|
|
15
|
+
readonly enqueue: (callback: () => void) => void;
|
|
16
|
+
readonly drain: () => void;
|
|
17
|
+
readonly hermesInternal: {
|
|
18
|
+
enqueueJob: (callback: () => void) => void;
|
|
19
|
+
};
|
|
20
|
+
dispose(): void;
|
|
21
|
+
}
|
|
22
|
+
export declare function getWorkletRuntimeKind(): WorkletRuntimeKind;
|
|
23
|
+
export declare const HOST_OWNED_GLOBALS: readonly ['queueMicrotask', 'requestAnimationFrame', 'cancelAnimationFrame', 'setTimeout', 'clearTimeout', 'setInterval', 'clearInterval', 'console'];
|
|
24
|
+
export declare function runWithWorkletRuntimeKind<T>(kind: WorkletRuntimeKind, run: () => T, runtimeJobs?: WorkletMicrotaskQueue): T;
|
|
@@ -9,6 +9,7 @@ import type { SyncReplyBuffer } from './nativeSyncReplyContract.d.ts';
|
|
|
9
9
|
import type { SootSimAnimationInfo } from '../../../peach-globals/src/index.d.ts';
|
|
10
10
|
import type { ReanimatedAnimationProfile } from '../../../peach-globals/src/profilerContract.d.ts';
|
|
11
11
|
export { CSS_EVENT_MASK, type CSSEventType, type NativeCSSEvent, } from './reanimated-css-contract.d.ts';
|
|
12
|
+
import { WorkletMicrotaskQueue } from './worklet-runtime-kind.d.ts';
|
|
12
13
|
import type { AnimatedDrivenStyleLease, AnimatedDrivenStyleRetirement } from '../engine/animated-driven-style.d.ts';
|
|
13
14
|
import { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX, SAB_UI_FRAME_DEMAND_INT32_INDEX, SAB_UI_FRAME_DONE_INT32_INDEX, SAB_UI_FRAME_OFFERED_INT32_INDEX, SAB_UI_FRAME_TIME_FLOAT64_INDEX, createSharedValueSAB, createWorkletPeerEpoch, type WorkletPeerEpoch } from './worklet-sab.d.ts';
|
|
14
15
|
export { SAB_COMPOSITOR_TASK_PENDING_INT32_INDEX, SAB_DEMAND_EPOCH_INT32_INDEX, SAB_TENANT_LIVE_FRAMES_INT32_INDEX, SAB_UI_FRAME_DEMAND_INT32_INDEX, SAB_UI_FRAME_DONE_INT32_INDEX, SAB_UI_FRAME_OFFERED_INT32_INDEX, SAB_UI_FRAME_TIME_FLOAT64_INDEX, createSharedValueSAB, createWorkletPeerEpoch, type WorkletPeerEpoch, };
|
|
@@ -247,6 +248,7 @@ export interface NamedWorkletRuntimeHandle {
|
|
|
247
248
|
readonly name: string;
|
|
248
249
|
readonly runtimeId: number;
|
|
249
250
|
}
|
|
251
|
+
export declare function createNamedWorkletRuntimeHandle(name: string, runtimeId: number): NamedWorkletRuntimeHandle;
|
|
250
252
|
export interface NamedWorkletRuntimeOptions {
|
|
251
253
|
name: string;
|
|
252
254
|
initializer: WorkletFn;
|
|
@@ -676,6 +678,8 @@ export declare class WorkletRuntime {
|
|
|
676
678
|
private pendingObjectUpdates;
|
|
677
679
|
private pendingHostValueUpdates;
|
|
678
680
|
private readonly nativeMicrotasks;
|
|
681
|
+
readonly enqueueNativeJob: WorkletMicrotaskQueue['enqueue'];
|
|
682
|
+
readonly drainNativeJobs: WorkletMicrotaskQueue['drain'];
|
|
679
683
|
constructor(opts: {
|
|
680
684
|
channel: WorkletChannel;
|
|
681
685
|
sab: SharedArrayBuffer;
|
|
@@ -854,8 +858,6 @@ export declare class WorkletRuntime {
|
|
|
854
858
|
private invokeEventHandler;
|
|
855
859
|
private registerLocalFrameCallback;
|
|
856
860
|
readonly requestNativeAnimationFrame: (callback: FrameRequestCallback) => void;
|
|
857
|
-
readonly enqueueNativeJob: (callback: () => void) => void;
|
|
858
|
-
readonly drainNativeJobs: () => void;
|
|
859
861
|
private cancelNativeFrames;
|
|
860
862
|
private unregisterLocalFrameCallback;
|
|
861
863
|
private setLocalFrameCallbackActive;
|
|
@@ -88,7 +88,7 @@ export declare function releasableMultipartPrefix(payload: string, contentType:
|
|
|
88
88
|
length: number;
|
|
89
89
|
bundleStarted: boolean;
|
|
90
90
|
};
|
|
91
|
-
export declare function multipartFailurePart(contentType: string, message: string): string;
|
|
91
|
+
export declare function multipartFailurePart(contentType: string, message: string, sentPrefix: string): string;
|
|
92
92
|
export declare function attachRolldownBundleHttpPayload(payload: string, contentType: string | undefined): Promise<string>;
|
|
93
93
|
export declare function readRolldownBundleInventory(source: string): Promise<RolldownBundleInventory>;
|
|
94
94
|
export {};
|
|
@@ -37,6 +37,7 @@ export declare function orderedPoses(poses: Iterable<InterfacePose>): readonly I
|
|
|
37
37
|
export declare function samePoses(a: readonly InterfacePose[], b: readonly InterfacePose[]): boolean;
|
|
38
38
|
export declare function interfacePose(spec: DeviceSpec): InterfacePose;
|
|
39
39
|
export declare function sceneHoldsInterface(model: DeviceModel, posture?: DevicePosture): boolean;
|
|
40
|
+
export declare function homeDisplaySpec(spec: DeviceSpec): DeviceSpec;
|
|
40
41
|
export declare function displayHold(display: DeviceSpec, body: DeviceSpec): DisplayHold;
|
|
41
42
|
export declare function poseHold(display: InterfacePose, body: InterfacePose): DisplayHold;
|
|
42
43
|
export declare function supportsOrientationChange(model: DeviceModel, posture?: DevicePosture): boolean;
|
|
@@ -10,7 +10,25 @@ export interface SootSimClipboardChange {
|
|
|
10
10
|
types: string[];
|
|
11
11
|
contentTypes: string[];
|
|
12
12
|
}
|
|
13
|
+
export interface SootSimClipboardPresence {
|
|
14
|
+
strings: boolean;
|
|
15
|
+
images: boolean;
|
|
16
|
+
urls: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface SootSimClipboardItems {
|
|
19
|
+
strings: string[];
|
|
20
|
+
url?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface SootSimClipboardSnapshot {
|
|
23
|
+
strings: string[];
|
|
24
|
+
url: string | null;
|
|
25
|
+
presence: SootSimClipboardPresence;
|
|
26
|
+
}
|
|
13
27
|
export interface SootSimClipboardBridge {
|
|
28
|
+
readPresenceSync(): SootSimClipboardPresence;
|
|
29
|
+
readPresence(): Promise<SootSimClipboardPresence>;
|
|
30
|
+
readItems(): Promise<SootSimClipboardSnapshot>;
|
|
31
|
+
writeItems(items: SootSimClipboardItems): Promise<void>;
|
|
14
32
|
readStringSync(): string | null;
|
|
15
33
|
writeStringSync(text: string | null): void;
|
|
16
34
|
readText(): Promise<string>;
|
|
@@ -16,10 +16,19 @@ export interface SootSimAuxCompositorStats {
|
|
|
16
16
|
browserCompositeFrames: number;
|
|
17
17
|
shellScene: SootSimShellSceneFanoutStats | null;
|
|
18
18
|
}
|
|
19
|
+
export type SootSimLiveCompositeFreshStage = 'readHeadlessFrames' | 'forceRenderAll' | 'paintNow';
|
|
20
|
+
export interface SootSimLiveCompositePublicationStatus {
|
|
21
|
+
holds: number;
|
|
22
|
+
subscribers: number;
|
|
23
|
+
painting: boolean;
|
|
24
|
+
paintsStarted: number;
|
|
25
|
+
paintsDrawn: number;
|
|
26
|
+
}
|
|
19
27
|
export interface SootSimLiveCompositeBridge {
|
|
20
28
|
getCanvas(): HTMLCanvasElement | null;
|
|
21
29
|
getFrameToken(): number;
|
|
22
|
-
|
|
30
|
+
getPublicationStatus(): SootSimLiveCompositePublicationStatus;
|
|
31
|
+
captureFresh(onStage?: (stage: SootSimLiveCompositeFreshStage) => void): Promise<{
|
|
23
32
|
canvas: HTMLCanvasElement | null;
|
|
24
33
|
frameToken: number;
|
|
25
34
|
}>;
|
|
@@ -15,7 +15,7 @@ export type { SootSimDetectedBarcode, PeachCameraPhotoOptions, PeachCameraPhotoR
|
|
|
15
15
|
export type { SootSimVideoSource, SootSimVideoStatus, SootSimVideoEvent, SootSimVideoBridge, } from './videoBridgeContract.d.ts';
|
|
16
16
|
export type { SootSimSpeechSynthesisUtterance, SootSimSpeechSynthesisEvent, SootSimSpeechSynthesisBridge, } from './speechSynthesisBridgeContract.d.ts';
|
|
17
17
|
export type { SootSimAudioRecorderOptions, SootSimAudioRecorderCommand, SootSimAudioRecorderSnapshot, SootSimAudioRecorderBridge, SootSimMediaSessionBridge, } from './audioBridgeContract.d.ts';
|
|
18
|
-
export type { SootSimClipboardImage, SootSimClipboardChange, SootSimClipboardBridge, } from './clipboardBridgeContract.d.ts';
|
|
18
|
+
export type { SootSimClipboardImage, SootSimClipboardChange, SootSimClipboardBridge, SootSimClipboardPresence, SootSimClipboardItems, SootSimClipboardSnapshot, } from './clipboardBridgeContract.d.ts';
|
|
19
19
|
export type { SootSimHostStorageBridge } from './hostStorageBridgeContract.d.ts';
|
|
20
20
|
export type { SootSimImagePickerAsset, SootSimImagePickerResult, SootSimImagePickerOptions, ShellNativeEvaluationOwner, SootSimImagePickerBridge, SootSimImageCropperSpec, SootSimImageCropperBridge, } from './imagePickerBridgeContract.d.ts';
|
|
21
21
|
export type { SootSimAndroidPickerDay, SootSimAndroidPickerButton, SootSimAndroidDateTimePickerSpec, SootSimAndroidDateTimePickerResult, SootSimAndroidDateTimePickerBridge, } from './androidDateTimePickerBridgeContract.d.ts';
|
|
@@ -33,7 +33,7 @@ export type { SootSimWindowScaleBridge } from './windowBridgeContract.d.ts';
|
|
|
33
33
|
export type { SootSimElectronBridge } from './electronBridgeContract.d.ts';
|
|
34
34
|
export { isBoxViewingMessage } from './shellBridgeContract.d.ts';
|
|
35
35
|
export type { PeachHomeApp, PeachHomeStorageValue, PeachHomeStorageBinding, PeachHomeScreenConfig, SootSimConsoleBuffer, SootSimShellCommands, SootSimMainShellBridge, SootSimDemoShareLeaseOptions, SootSimDemoShareBridge, BoxViewingMode, BoxViewingMessage, } from './shellBridgeContract.d.ts';
|
|
36
|
-
export type { SootSimRenderActivityState, SootSimShellSceneFanoutStats, SootSimAuxCompositorStats, SootSimLiveCompositeBridge, } from './compositorBridgeContract.d.ts';
|
|
36
|
+
export type { SootSimRenderActivityState, SootSimShellSceneFanoutStats, SootSimAuxCompositorStats, SootSimLiveCompositeBridge, SootSimLiveCompositeFreshStage, SootSimLiveCompositePublicationStatus, } from './compositorBridgeContract.d.ts';
|
|
37
37
|
export type { PeachAnimatedExecution, PeachLockstepTenantFrame, SootSimLockstepFrameReceipt, LockstepInputReceipt, LockstepScheduledInput, SootSimLockstepCaptureController, SootSimLockstepCaptureBridge, } from './lockstepCaptureBridgeContract.d.ts';
|
|
38
38
|
export type { PointerDeliveryTarget, PointerDeliveryPendingDrop, PointerDeliveryStats, SootSimShellHostBridge, } from './shellHostBridgeContract.d.ts';
|
|
39
39
|
export type { SootSimLaunchArguments, SootSimExternalAppLifecycleOptions, SootSimStorageResetStrategy, SootSimExternalAppResetOptions, SootSimExternalAppResetResult, SootSimHotRemountBridge, } from './appLifecycleBridgeContract.d.ts';
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8","file":"node/cli-24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8.cjs"}
|