peachsim 0.1.730 → 0.1.745
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/bridge-flow-runner.ts +15 -2
- package/cli/commands/control.ts +13 -3
- package/cli/commands/desktop.ts +1 -0
- package/cli/commands/electron.ts +12 -8
- package/cli/commands/flow.ts +1 -3
- package/cli/commands/install-desktop.ts +105 -66
- package/cli/commands/logout.ts +5 -1
- package/cli/commands/no-bridge-hint.ts +2 -2
- package/cli/commands/swift.ts +26 -9
- package/cli/desktop-companion.ts +36 -9
- package/cli/drivers/desktop.ts +65 -0
- package/cli/drivers/electron.ts +4 -66
- package/cli/drivers/index.ts +1 -0
- package/cli/drivers/playwright.ts +3 -3
- package/cli/drivers/registry.ts +7 -2
- package/cli/drivers/types.ts +4 -3
- package/cli/maestro-js.ts +10 -0
- package/cli/outbound-endpoints.ts +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +39 -9
- 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/capture-contract.cjs +13 -19
- package/dist-lib/capture-contract.mjs +13 -19
- 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 +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +20 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +32 -1
- package/dist-lib/host/bridge-host.cjs +1616 -532
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +14 -19
- 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 +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- 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 +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- 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 +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +2 -1
- package/dist-lib/sdk.mjs +2 -1
- package/dist-lib/skills.cjs +2306 -1067
- package/dist-lib/swift-compile.cjs +317 -60
- package/dist-lib/swift-compile.mjs +313 -61
- package/dist-lib/swift-package.cjs +146 -9
- package/dist-lib/swift-package.mjs +144 -9
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1310 -226
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/skills/contrast/SKILL.md +1 -1
- package/src/auth/shared-session.ts +45 -9
- package/src/bridge-constants.ts +7 -7
- package/src/capture-contract.ts +18 -33
- package/src/desktop-host-delivery.ts +81 -0
- package/src/home-paths.ts +30 -0
- package/src/host/bridge-host.ts +11 -6
- package/src/native-seam-manifest.ts +0 -11
- package/src/sim-client.ts +1 -0
- package/src/swift-compile.ts +403 -68
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-host.ts +316 -43
- package/src/swift-package.ts +204 -19
- package/src/swift-remote-packages.ts +255 -0
- package/src/swift-submit.ts +4 -1
- package/src/vite-plugin.ts +19 -8
- package/src/xcode-project.ts +527 -0
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.745 | (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 __create = Object.create;
|
|
@@ -1398,12 +1398,18 @@ var WEBVIEW_FRAME_BRIDGE_SOURCE = `function (config) {
|
|
|
1398
1398
|
seen.pop();
|
|
1399
1399
|
return converted;
|
|
1400
1400
|
}
|
|
1401
|
+
var scriptReplies = new Map();
|
|
1402
|
+
var nextScriptReply = 0;
|
|
1401
1403
|
function setMessageHandlers(names) {
|
|
1402
1404
|
Object.keys(window.webkit.messageHandlers).forEach(function(name) { if (names.indexOf(name) === -1) delete window.webkit.messageHandlers[name]; });
|
|
1403
1405
|
names.forEach(function(name) {
|
|
1404
1406
|
if (Object.hasOwn(window.webkit.messageHandlers, name)) return;
|
|
1405
1407
|
window.webkit.messageHandlers[name] = { postMessage: function(body) {
|
|
1406
|
-
|
|
1408
|
+
var value = nativeValue(body, []);
|
|
1409
|
+
var requestId = ++nextScriptReply;
|
|
1410
|
+
var promise = new Promise(function(resolve, reject) { scriptReplies.set(requestId, { resolve: resolve, reject: reject }); });
|
|
1411
|
+
window.parent.postMessage({ __sootsimWebViewKind: 'webKitMessage', requestId: requestId, name: name, body: value }, '*');
|
|
1412
|
+
return promise;
|
|
1407
1413
|
} };
|
|
1408
1414
|
});
|
|
1409
1415
|
}
|
|
@@ -1865,6 +1871,18 @@ var WEBVIEW_FRAME_BRIDGE_SOURCE = `function (config) {
|
|
|
1865
1871
|
if (event.source !== window.parent) return;
|
|
1866
1872
|
var payload = event.data;
|
|
1867
1873
|
if (!payload || typeof payload !== 'object') return;
|
|
1874
|
+
if (payload.__sootsimWebViewKind === 'webKitScriptReply') {
|
|
1875
|
+
event.stopImmediatePropagation();
|
|
1876
|
+
var pending = scriptReplies.get(payload.requestId);
|
|
1877
|
+
if (!pending) return;
|
|
1878
|
+
scriptReplies.delete(payload.requestId);
|
|
1879
|
+
var reply = payload.reply;
|
|
1880
|
+
if (typeof reply.error === 'string') pending.reject(new Error(reply.error));
|
|
1881
|
+
else if (typeof reply.json === 'string') pending.resolve(JSON.parse(reply.json));
|
|
1882
|
+
else if (reply.undefined === true) pending.resolve(undefined);
|
|
1883
|
+
else throw new Error('WKWebView script reply is invalid');
|
|
1884
|
+
return;
|
|
1885
|
+
}
|
|
1868
1886
|
if (payload.__sootsimWebViewKind === 'setMessageHandlers') {
|
|
1869
1887
|
event.stopImmediatePropagation();
|
|
1870
1888
|
if (!webKit || !Array.isArray(payload.names) || payload.names.some(function(name) { return typeof name !== 'string'; })) throw new Error('WKWebView handler update is invalid');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.745 | (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;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.745 | (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 __create = Object.create;
|
|
@@ -51,6 +51,8 @@ __export(home_paths_exports, {
|
|
|
51
51
|
daemonAppDir: () => daemonAppDir,
|
|
52
52
|
daemonAppLauncherPath: () => daemonAppLauncherPath,
|
|
53
53
|
daemonLockfilePath: () => daemonLockfilePath,
|
|
54
|
+
desktopHostDir: () => desktopHostDir,
|
|
55
|
+
desktopHostsDir: () => desktopHostsDir,
|
|
54
56
|
devBridgeLockfilePath: () => devBridgeLockfilePath,
|
|
55
57
|
devBridgesDir: () => devBridgesDir,
|
|
56
58
|
electronDir: () => electronDir,
|
|
@@ -64,6 +66,7 @@ __export(home_paths_exports, {
|
|
|
64
66
|
isSootsimDevCheckout: () => isSootsimDevCheckout,
|
|
65
67
|
playwrightCoreDir: () => playwrightCoreDir,
|
|
66
68
|
profilesDir: () => profilesDir,
|
|
69
|
+
readActiveDesktopHost: () => readActiveDesktopHost,
|
|
67
70
|
readActiveRuntime: () => readActiveRuntime,
|
|
68
71
|
readDaemonLockfile: () => readDaemonLockfile,
|
|
69
72
|
readDefaultBox: () => readDefaultBox,
|
|
@@ -80,6 +83,7 @@ __export(home_paths_exports, {
|
|
|
80
83
|
runtimeUpgradeNoticePath: () => runtimeUpgradeNoticePath,
|
|
81
84
|
runtimesDir: () => runtimesDir,
|
|
82
85
|
shouldSkipPersistentDaemon: () => shouldSkipPersistentDaemon,
|
|
86
|
+
writeActiveDesktopHost: () => writeActiveDesktopHost,
|
|
83
87
|
writeActiveRuntime: () => writeActiveRuntime,
|
|
84
88
|
writeDaemonLockfile: () => writeDaemonLockfile,
|
|
85
89
|
writeDefaultBox: () => writeDefaultBox,
|
|
@@ -136,6 +140,29 @@ function runtimeDir(version) {
|
|
|
136
140
|
function activeRuntimeFile() {
|
|
137
141
|
return import_node_path.default.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
|
|
138
142
|
}
|
|
143
|
+
function desktopHostsDir() {
|
|
144
|
+
return import_node_path.default.join(rnxHomeDir(), "desktop");
|
|
145
|
+
}
|
|
146
|
+
function desktopHostDir(version) {
|
|
147
|
+
return import_node_path.default.join(desktopHostsDir(), version);
|
|
148
|
+
}
|
|
149
|
+
function readActiveDesktopHost() {
|
|
150
|
+
try {
|
|
151
|
+
const value = import_node_fs.default.readFileSync(import_node_path.default.join(desktopHostsDir(), ACTIVE_RUNTIME_FILE), "utf8").trim();
|
|
152
|
+
return value.length > 0 ? value : null;
|
|
153
|
+
} catch {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function writeActiveDesktopHost(version) {
|
|
158
|
+
import_node_fs.default.mkdirSync(desktopHostsDir(), { recursive: true });
|
|
159
|
+
import_node_fs.default.writeFileSync(
|
|
160
|
+
import_node_path.default.join(desktopHostsDir(), ACTIVE_RUNTIME_FILE),
|
|
161
|
+
`${version}
|
|
162
|
+
`,
|
|
163
|
+
"utf8"
|
|
164
|
+
);
|
|
165
|
+
}
|
|
139
166
|
function electronDir() {
|
|
140
167
|
return import_node_path.default.join(rnxHomeDir(), "electron");
|
|
141
168
|
}
|
|
@@ -606,6 +633,8 @@ function removeDevBridgeLockfile(owner) {
|
|
|
606
633
|
daemonAppDir,
|
|
607
634
|
daemonAppLauncherPath,
|
|
608
635
|
daemonLockfilePath,
|
|
636
|
+
desktopHostDir,
|
|
637
|
+
desktopHostsDir,
|
|
609
638
|
devBridgeLockfilePath,
|
|
610
639
|
devBridgesDir,
|
|
611
640
|
electronDir,
|
|
@@ -619,6 +648,7 @@ function removeDevBridgeLockfile(owner) {
|
|
|
619
648
|
isSootsimDevCheckout,
|
|
620
649
|
playwrightCoreDir,
|
|
621
650
|
profilesDir,
|
|
651
|
+
readActiveDesktopHost,
|
|
622
652
|
readActiveRuntime,
|
|
623
653
|
readDaemonLockfile,
|
|
624
654
|
readDefaultBox,
|
|
@@ -635,6 +665,7 @@ function removeDevBridgeLockfile(owner) {
|
|
|
635
665
|
runtimeUpgradeNoticePath,
|
|
636
666
|
runtimesDir,
|
|
637
667
|
shouldSkipPersistentDaemon,
|
|
668
|
+
writeActiveDesktopHost,
|
|
638
669
|
writeActiveRuntime,
|
|
639
670
|
writeDaemonLockfile,
|
|
640
671
|
writeDefaultBox,
|