peachsim 0.1.577 → 0.1.579
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/LICENSE +1 -1
- package/README.md +11 -9
- package/cli/app-catalog.ts +77 -0
- package/cli/app-fonts.ts +4 -20
- package/cli/app-splash.ts +2 -18
- package/cli/bridge-flow-runner.ts +505 -139
- package/cli/cloud-client.ts +1 -4
- package/cli/cloud-session.ts +1 -4
- package/cli/cloud-test-result-files.ts +3 -0
- package/cli/cloud-test-tunnel.ts +2 -5
- package/cli/command-registry.ts +2 -0
- package/cli/commands/agent.ts +149 -23
- package/cli/commands/assert.ts +1 -4
- package/cli/commands/box/peach-command.ts +62 -0
- package/cli/commands/box/plane-share.ts +0 -70
- package/cli/commands/box/rnx-command.ts +1 -60
- package/cli/commands/box/search-command.ts +14 -0
- package/cli/commands/box.ts +2 -2
- package/cli/commands/control.ts +121 -27
- package/cli/commands/cpu-profile.ts +23 -10
- package/cli/commands/daemon.ts +1 -9
- package/cli/commands/detox.ts +26 -18
- package/cli/commands/device.ts +129 -1
- package/cli/commands/film.ts +25 -16
- package/cli/commands/flow.ts +9 -2
- package/cli/commands/inspect/actions.ts +75 -1
- package/cli/commands/inspect/core.ts +81 -2
- package/cli/commands/inspect/describe.ts +2 -6
- package/cli/commands/inspect/env.ts +1 -1
- package/cli/commands/inspect/settling.ts +20 -3
- package/cli/commands/inspect/shared.ts +1 -4
- package/cli/commands/inspect/sleep.ts +1 -1
- package/cli/commands/inspect.ts +16 -49
- package/cli/commands/install-desktop.ts +8 -6
- package/cli/commands/login.ts +3 -5
- package/cli/commands/maestro-generate.ts +1 -4
- package/cli/commands/maestro.ts +38 -21
- package/cli/commands/no-bridge-hint.ts +0 -14
- package/cli/commands/permissions.ts +2 -2
- package/cli/commands/platform.ts +13 -6
- package/cli/commands/screenshot.ts +6 -1
- package/cli/commands/skills.ts +1 -1
- package/cli/commands/test.ts +6 -2
- package/cli/commands/three-mode.ts +162 -19
- package/cli/commands/upload.ts +3 -18
- package/cli/current-sim.ts +0 -1
- package/cli/desktop-companion.ts +40 -8
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/flow-export.ts +1 -8
- package/cli/flow-session.ts +0 -4
- package/cli/hints.ts +1 -16
- package/cli/inspect-notice-state.ts +0 -4
- package/cli/main.ts +2 -4
- package/cli/outbound-endpoints.ts +1 -24
- package/cli/parse-args.ts +1 -2
- package/cli/rnx-in-process.ts +3 -1
- package/cli/run-rnx-core.ts +4 -2
- package/cli/run-rnx.ts +18 -10
- package/cli/send-to-box.ts +1 -4
- package/cli/telemetry.ts +1 -1
- package/cli/ws-bridge.ts +1 -5
- package/detox/gestures.ts +20 -6
- package/detox/index.ts +379 -123
- package/detox/navigation-lifecycle.ts +22 -13
- package/dist-lib/agent-daemon-client.cjs +21 -15
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +3 -17
- package/dist-lib/agent-sessions.cjs +5 -4
- package/dist-lib/attached-projects.cjs +1 -77
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +11 -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 +7 -5
- package/dist-lib/bridge-contract-input.mjs +7 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +30 -7
- package/dist-lib/capture-contract.mjs +30 -7
- package/dist-lib/cli-constants.cjs +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 +17 -11
- package/dist-lib/cloud.mjs +17 -11
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +321 -122
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +427 -212
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -28
- 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 +315 -58
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/menu.cjs +67 -31
- package/dist-lib/menu.mjs +64 -28
- package/dist-lib/metro-fingerprint-registry.cjs +8 -4
- package/dist-lib/metro-fingerprint-registry.mjs +6 -4
- package/dist-lib/metro-production-bundle.cjs +2 -2
- package/dist-lib/metro-production-bundle.mjs +2 -2
- package/dist-lib/metro.cjs +8 -4
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +7 -4
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +3 -13
- package/dist-lib/scripts/dev-server-scanner.cjs +5 -17
- package/dist-lib/sdk.cjs +129 -10
- package/dist-lib/sdk.mjs +127 -10
- package/dist-lib/skills.cjs +1635 -1121
- package/dist-lib/swift-compile.cjs +277 -70
- package/dist-lib/swift-compile.mjs +275 -70
- package/dist-lib/swift-package.cjs +17 -5
- package/dist-lib/swift-package.mjs +15 -4
- package/dist-lib/swift-submit.cjs +32 -8
- package/dist-lib/swift-submit.mjs +29 -7
- package/dist-lib/swift.cjs +30912 -577
- package/dist-lib/vite-kotlin.cjs +356 -0
- package/dist-lib/vite-swift.cjs +1743 -0
- package/dist-lib/vite.cjs +208 -1039
- package/kotlin/README.md +18 -0
- package/kotlin/Sources/androidx/annotation/Keep.kt +4 -0
- package/kotlin/Sources/dev/onejs/one/OneNativeSourceDispatch.kt +7 -0
- package/kotlin/Sources/dev/onejs/one/source/OneModule.kt +4 -0
- package/kotlin/Sources/org/json/JSON.kt +244 -0
- package/kotlin/toolchain.json +19 -0
- package/package.json +14 -2
- package/scripts/dev-server-scanner.ts +0 -18
- package/scripts/optional-demo-registry.ts +0 -17
- package/skills/contrast/SKILL.md +2 -2
- package/skills/peach-setup/SKILL.md +16 -0
- package/src/agent-daemon-client.ts +36 -22
- package/src/agent-identity.ts +0 -15
- package/src/agent-prompt.ts +12 -0
- package/src/attached-projects.ts +0 -72
- package/src/backend-origin.ts +10 -0
- package/src/bridge-contract-input.ts +2 -5
- package/src/bridge-contract.ts +2 -0
- package/src/capture-contract.ts +53 -11
- package/src/cloud.ts +4 -9
- package/src/dev-server-open.ts +0 -99
- package/src/home-paths.ts +2 -3
- package/src/host/agent-host.ts +82 -36
- package/src/host/bridge-host.ts +5 -11
- package/src/host/fetch-proxy-handler.ts +19 -43
- package/src/is-record.ts +4 -0
- package/src/menu.ts +82 -37
- package/src/metro-fingerprint-registry.ts +1 -4
- package/src/metro-production-bundle.ts +1 -1
- package/src/plist.ts +1 -4
- package/src/public-brand.ts +5 -3
- package/src/render-mode.ts +0 -12
- package/src/runtime-assets.ts +9 -2
- package/src/screenshots/compose.ts +7 -1
- package/src/screenshots/frame-compose.ts +21 -10
- package/src/screenshots/schema.ts +1 -4
- package/src/sim-client.ts +2 -4
- package/src/skills/builtin/maestro-test.ts +1 -4
- package/src/sleep.ts +4 -0
- package/src/swift-compile.ts +209 -47
- package/src/swift-icu.ts +140 -0
- package/src/swift-package.ts +26 -2
- package/src/swift-submit.ts +84 -4
- package/src/swift.ts +2 -0
- package/src/vite-plugin-kotlin.ts +376 -0
- package/src/vite-plugin-one.ts +224 -36
- package/src/vite-plugin-swift.ts +382 -96
- package/src/vite-plugin.ts +121 -134
- package/src/vite.d.ts +10 -0
- package/cli/resolve-assets.ts +0 -63
- package/src/rolldown-plugin-swift.ts +0 -244
- package/src/team-machine-prompt.ts +0 -73
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.579 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -23,23 +23,43 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
23
23
|
var swift_submit_exports = {};
|
|
24
24
|
__export(swift_submit_exports, {
|
|
25
25
|
SWIFT_COMPILE_PATH: () => SWIFT_COMPILE_PATH,
|
|
26
|
+
SWIFT_HOST_ABI: () => SWIFT_HOST_ABI,
|
|
26
27
|
compileSwiftProject: () => compileSwiftProject,
|
|
27
|
-
httpSwiftCompileSubmit: () => httpSwiftCompileSubmit
|
|
28
|
+
httpSwiftCompileSubmit: () => httpSwiftCompileSubmit,
|
|
29
|
+
swiftNativeEntry: () => swiftNativeEntry
|
|
28
30
|
});
|
|
29
31
|
module.exports = __toCommonJS(swift_submit_exports);
|
|
30
32
|
var SWIFT_COMPILE_PATH = "/api/swift-compile";
|
|
33
|
+
var SWIFT_HOST_ABI = 1;
|
|
31
34
|
var POLL_INTERVAL_MS = 1500;
|
|
35
|
+
function swiftNativeEntry(native, file) {
|
|
36
|
+
return {
|
|
37
|
+
packageId: native.packageId,
|
|
38
|
+
contractHash: native.hash,
|
|
39
|
+
modules: Object.fromEntries(
|
|
40
|
+
(native.files[file] ?? []).map((name) => [name, native.modules[name] ?? []])
|
|
41
|
+
),
|
|
42
|
+
defaultView: native.defaultViewFiles.includes(file)
|
|
43
|
+
};
|
|
44
|
+
}
|
|
32
45
|
function httpSwiftCompileSubmit(context) {
|
|
33
|
-
const { assetReadToken, endpoint } = context;
|
|
34
|
-
if (!assetReadToken) return void 0;
|
|
46
|
+
const { assetReadToken, authorization, endpoint } = context;
|
|
47
|
+
if (!assetReadToken && !authorization) return void 0;
|
|
35
48
|
const url = endpoint ? `${endpoint.replace(/\/+$/, "")}${SWIFT_COMPILE_PATH}` : SWIFT_COMPILE_PATH;
|
|
36
49
|
return async (work) => {
|
|
37
50
|
let response;
|
|
38
51
|
try {
|
|
39
52
|
response = await fetch(url, {
|
|
40
53
|
method: "POST",
|
|
41
|
-
headers: {
|
|
42
|
-
|
|
54
|
+
headers: {
|
|
55
|
+
"content-type": "application/json",
|
|
56
|
+
...authorization ? { authorization } : {}
|
|
57
|
+
},
|
|
58
|
+
body: JSON.stringify({
|
|
59
|
+
...work,
|
|
60
|
+
hostAbi: SWIFT_HOST_ABI,
|
|
61
|
+
...assetReadToken ? { token: assetReadToken } : {}
|
|
62
|
+
})
|
|
43
63
|
});
|
|
44
64
|
} catch (error) {
|
|
45
65
|
throw new Error(
|
|
@@ -71,7 +91,9 @@ async function compileSwiftProject(submit, work, origin) {
|
|
|
71
91
|
return {
|
|
72
92
|
url: new URL(outcome.artifactUrl, origin).href,
|
|
73
93
|
hash: outcome.hash,
|
|
74
|
-
|
|
94
|
+
icuUrl: new URL(outcome.icuUrl, origin).href,
|
|
95
|
+
...outcome.imageUrls === void 0 ? {} : { imageUrls: resolveImageUrls(outcome.imageUrls, origin) },
|
|
96
|
+
...outcome.native === void 0 ? {} : { native: outcome.native }
|
|
75
97
|
};
|
|
76
98
|
case "compiling":
|
|
77
99
|
await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
|
|
@@ -87,6 +109,8 @@ async function compileSwiftProject(submit, work, origin) {
|
|
|
87
109
|
// Annotate the CommonJS export names for ESM import in node:
|
|
88
110
|
0 && (module.exports = {
|
|
89
111
|
SWIFT_COMPILE_PATH,
|
|
112
|
+
SWIFT_HOST_ABI,
|
|
90
113
|
compileSwiftProject,
|
|
91
|
-
httpSwiftCompileSubmit
|
|
114
|
+
httpSwiftCompileSubmit,
|
|
115
|
+
swiftNativeEntry
|
|
92
116
|
});
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.579 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-submit.ts
|
|
4
4
|
var SWIFT_COMPILE_PATH = "/api/swift-compile";
|
|
5
|
+
var SWIFT_HOST_ABI = 1;
|
|
5
6
|
var POLL_INTERVAL_MS = 1500;
|
|
7
|
+
function swiftNativeEntry(native, file) {
|
|
8
|
+
return {
|
|
9
|
+
packageId: native.packageId,
|
|
10
|
+
contractHash: native.hash,
|
|
11
|
+
modules: Object.fromEntries(
|
|
12
|
+
(native.files[file] ?? []).map((name) => [name, native.modules[name] ?? []])
|
|
13
|
+
),
|
|
14
|
+
defaultView: native.defaultViewFiles.includes(file)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
6
17
|
function httpSwiftCompileSubmit(context) {
|
|
7
|
-
const { assetReadToken, endpoint } = context;
|
|
8
|
-
if (!assetReadToken) return void 0;
|
|
18
|
+
const { assetReadToken, authorization, endpoint } = context;
|
|
19
|
+
if (!assetReadToken && !authorization) return void 0;
|
|
9
20
|
const url = endpoint ? `${endpoint.replace(/\/+$/, "")}${SWIFT_COMPILE_PATH}` : SWIFT_COMPILE_PATH;
|
|
10
21
|
return async (work) => {
|
|
11
22
|
let response;
|
|
12
23
|
try {
|
|
13
24
|
response = await fetch(url, {
|
|
14
25
|
method: "POST",
|
|
15
|
-
headers: {
|
|
16
|
-
|
|
26
|
+
headers: {
|
|
27
|
+
"content-type": "application/json",
|
|
28
|
+
...authorization ? { authorization } : {}
|
|
29
|
+
},
|
|
30
|
+
body: JSON.stringify({
|
|
31
|
+
...work,
|
|
32
|
+
hostAbi: SWIFT_HOST_ABI,
|
|
33
|
+
...assetReadToken ? { token: assetReadToken } : {}
|
|
34
|
+
})
|
|
17
35
|
});
|
|
18
36
|
} catch (error) {
|
|
19
37
|
throw new Error(
|
|
@@ -45,7 +63,9 @@ async function compileSwiftProject(submit, work, origin) {
|
|
|
45
63
|
return {
|
|
46
64
|
url: new URL(outcome.artifactUrl, origin).href,
|
|
47
65
|
hash: outcome.hash,
|
|
48
|
-
|
|
66
|
+
icuUrl: new URL(outcome.icuUrl, origin).href,
|
|
67
|
+
...outcome.imageUrls === void 0 ? {} : { imageUrls: resolveImageUrls(outcome.imageUrls, origin) },
|
|
68
|
+
...outcome.native === void 0 ? {} : { native: outcome.native }
|
|
49
69
|
};
|
|
50
70
|
case "compiling":
|
|
51
71
|
await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
|
|
@@ -60,6 +80,8 @@ async function compileSwiftProject(submit, work, origin) {
|
|
|
60
80
|
}
|
|
61
81
|
export {
|
|
62
82
|
SWIFT_COMPILE_PATH,
|
|
83
|
+
SWIFT_HOST_ABI,
|
|
63
84
|
compileSwiftProject,
|
|
64
|
-
httpSwiftCompileSubmit
|
|
85
|
+
httpSwiftCompileSubmit,
|
|
86
|
+
swiftNativeEntry
|
|
65
87
|
};
|