peachsim 0.1.1716 → 0.1.1728
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 +21 -3
- package/cli/app-bundle-resources.ts +2 -1
- package/cli/app-fonts.ts +4 -4
- package/cli/app-splash.ts +4 -4
- package/cli/app-stubs.ts +17 -0
- package/cli/command-registry.ts +1 -0
- package/cli/commands/control.ts +82 -822
- package/cli/commands/daemon.ts +8 -0
- package/cli/commands/detox.ts +3 -0
- package/cli/commands/doctor.ts +19 -2
- package/cli/commands/inspect/actions.ts +74 -14
- package/cli/commands/inspect/core.ts +5 -1
- package/cli/commands/inspect/settling.ts +5 -2
- package/cli/commands/inspect/wait-ready.ts +6 -0
- package/cli/commands/inspect.ts +48 -45
- package/cli/commands/kotlin.ts +12 -2
- package/cli/commands/package.ts +750 -0
- package/cli/commands/serve.ts +6 -0
- package/cli/commands/shell-url.ts +834 -0
- package/cli/commands/swift.ts +42 -102
- package/cli/commands/test.ts +20 -0
- package/cli/commands/upload.ts +1 -1
- package/cli/device-option.ts +1 -1
- package/cli/main.ts +13 -1
- package/cli/native-input.ts +199 -0
- package/cli/outbound-endpoints.ts +26 -1
- package/cli/packaged-app-launcher.ts +95 -0
- package/cli/scene-video.ts +13 -6
- package/detox/index.ts +187 -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 +38000 -31658
- 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 +184 -60
- package/dist-lib/dev-bundle-resolution.cjs +14 -13
- package/dist-lib/expo-swift-bundle.cjs +18199 -11834
- package/dist-lib/expo-swift-metadata.cjs +4 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +21 -2
- package/dist-lib/host/bridge-host.cjs +26509 -23850
- package/dist-lib/host/fetch-proxy-handler.cjs +221 -222
- 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 +876 -389
- 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 +127 -16
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -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 +883 -404
- package/dist-lib/native-app-identity-project.cjs +694 -280
- package/dist-lib/native-app-identity-project.mjs +490 -83
- package/dist-lib/native-app-identity.cjs +13 -2
- package/dist-lib/native-app-identity.mjs +13 -2
- 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/public-origins-lib-esm.json +28 -23
- package/dist-lib/public-origins-lib.json +392 -224
- package/dist-lib/react-native-host-modules.cjs +32 -2
- package/dist-lib/react-native-host-modules.mjs +32 -2
- package/dist-lib/reap-browser.cjs +12 -4
- package/dist-lib/scripts/dev-server-scanner.cjs +15 -8
- package/dist-lib/sdk.cjs +17 -7
- package/dist-lib/sdk.mjs +16 -7
- package/dist-lib/skills.cjs +61838 -47851
- package/dist-lib/swift-compile.cjs +583 -360
- package/dist-lib/swift-compile.mjs +496 -275
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +105 -17
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +4453 -2231
- package/dist-lib/vite.cjs +230 -228
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +7 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -11
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-commandContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +23 -1
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +9 -2
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +12 -25
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +75 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +7 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
- package/sdk/ios/usr/include/ConditionalMacros.h +619 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/objc/objc-sync.h +59 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/cdefs.h +5 -0
- package/sdk/ios/usr/include/sys/ioccom.h +99 -0
- package/sdk/ios/usr/include/sys/syslog.h +236 -0
- package/sdk/ios/usr/include/syslog.h +24 -0
- package/sdk/ios/wasm/include/fcntl.h +4 -2
- package/sdk/ios/wasm/include/stdio.h +24 -0
- package/sdk/ios/wasm/include/stdlib.h +32 -7
- package/sdk/ios/wasm/include/sys/file.h +7 -0
- package/sdk/ios/wasm/include/sys/ioctl.h +6 -0
- package/sdk/ios/wasm/include/sys/syscall.h +9 -0
- package/sdk/ios/wasm/include/sys/time.h +10 -0
- package/sdk/ios/wasm/include/unistd.h +12 -3
- package/sdk/native-hashes.json +1 -0
- package/skills/contrast/SKILL.md +2 -1
- package/skills/peach-test/SKILL.md +7 -3
- package/src/admitted-mac-build.ts +3 -0
- package/src/android-app-identity.ts +18 -0
- package/src/android-root-module.ts +9 -9
- package/src/appPackageContract.ts +81 -0
- package/src/bridge-contract.ts +50 -0
- package/src/bundle-channel.mjs +21 -4
- package/src/dev-bundle-resolution.ts +7 -27
- package/src/dom-source-reference.ts +15 -0
- package/src/expo-discovery-cache.ts +127 -23
- package/src/expo-manifest-body.ts +33 -0
- package/src/expo-native-workspace.ts +38 -13
- package/src/expo-swift-host.ts +264 -62
- package/src/expoSwiftContract.ts +3 -0
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +35 -1
- package/src/host/app-package-handler.ts +47 -0
- package/src/host/bridge-host.ts +3 -0
- package/src/host/staged-host-files.ts +18 -0
- package/src/index.ts +3 -0
- package/src/kotlin-host.ts +21 -18
- package/src/kotlin-instance-source.ts +126 -0
- package/src/menu.ts +7 -0
- package/src/native-app-identity-project.ts +7 -2
- package/src/native-app-identity.ts +11 -0
- package/src/native-firebase-config.ts +24 -1
- package/src/nitro-adapter.lock.json +268 -268
- package/src/nitro-bundle.ts +8 -0
- package/src/nitro-compile.ts +35 -9
- package/src/nitro-dependencies.ts +21 -19
- package/src/nitro-source.ts +4 -0
- package/src/nitroContract.ts +7 -0
- package/src/react-native-bridge-modules.ts +68 -42
- package/src/react-native-host-modules.ts +31 -1
- package/src/reactNativeConfigurationContract.ts +14 -0
- package/src/reap-browser.ts +15 -3
- package/src/sdk.ts +5 -0
- package/src/settingsContract.ts +27 -1
- package/src/sim-client.ts +4 -1
- package/src/storageSnapshotContract.ts +3 -0
- package/src/swift-compile.ts +221 -41
- package/src/swift-coverage/provenance.ts +1 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
- package/src/swift-coverage/xcode-assets.ts +89 -131
- package/src/swift-coverage/xcode.ts +1 -1
- package/src/swift-cxx-reachable.ts +2 -1
- package/src/swift-distribution.lock.json +14 -13
- package/src/swift-host.ts +95 -22
- package/src/swift-icu.ts +1 -1
- package/src/swift-link-roots.ts +118 -0
- package/src/swift-objc-compile.ts +144 -22
- package/src/swift-objc-import.ts +6 -0
- package/src/swift-objc-standin.ts +2 -14
- package/src/swift-package-manifest.ts +14 -6
- package/src/swift-packages.ts +75 -11
- package/src/swift-pdf-raster.ts +1 -0
- package/src/swift-root-lock.ts +17 -1
- package/src/swift-source-pods.ts +2 -10
- package/src/swift-standin-emit.ts +592 -57
- package/src/swift-standins.ts +430 -49
- package/src/swift-submit.ts +3 -1
- package/src/swift-toolchain.ts +140 -17
- package/src/turbo-codegen-intake.ts +91 -0
- package/src/vite-plugin-one.ts +13 -9
- package/src/vite-plugin.ts +28 -15
- package/src/xcode-project.ts +223 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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.1728 | (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;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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;
|
|
@@ -49,13 +49,119 @@ var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
|
49
49
|
var import_node_module = require("node:module");
|
|
50
50
|
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
51
51
|
var import_node_util3 = require("node:util");
|
|
52
|
-
var
|
|
52
|
+
var import_acorn2 = require("acorn");
|
|
53
53
|
|
|
54
54
|
// src/is-record.ts
|
|
55
55
|
function isRecord(value) {
|
|
56
56
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// src/kotlin-instance-source.ts
|
|
60
|
+
var import_acorn = require("acorn");
|
|
61
|
+
function bindingNames(pattern) {
|
|
62
|
+
if (pattern.type === "Identifier") return [pattern.name];
|
|
63
|
+
if (pattern.type === "ObjectPattern")
|
|
64
|
+
return pattern.properties.flatMap(
|
|
65
|
+
(property) => bindingNames(property.type === "RestElement" ? property.argument : property.value)
|
|
66
|
+
);
|
|
67
|
+
if (pattern.type === "ArrayPattern")
|
|
68
|
+
return pattern.elements.flatMap((element) => element ? bindingNames(element) : []);
|
|
69
|
+
if (pattern.type === "AssignmentPattern") return bindingNames(pattern.left);
|
|
70
|
+
if (pattern.type === "RestElement") return bindingNames(pattern.argument);
|
|
71
|
+
throw new Error(`unsupported Kotlin export binding ${pattern.type}`);
|
|
72
|
+
}
|
|
73
|
+
function kotlinInstanceSource(source, factory, instanceImports = /* @__PURE__ */ new Map()) {
|
|
74
|
+
const program = (0, import_acorn.parse)(source, { ecmaVersion: "latest", sourceType: "module" });
|
|
75
|
+
const imports = [];
|
|
76
|
+
const body = [];
|
|
77
|
+
let dependencies = 0;
|
|
78
|
+
const exports2 = [];
|
|
79
|
+
for (const statement of program.body) {
|
|
80
|
+
if (statement.type === "ImportDeclaration") {
|
|
81
|
+
const importedFactory = typeof statement.source.value === "string" ? instanceImports.get(statement.source.value) : void 0;
|
|
82
|
+
if (!importedFactory) {
|
|
83
|
+
imports.push(source.slice(statement.start, statement.end));
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
imports.push(
|
|
87
|
+
`import { ${importedFactory} } from ${JSON.stringify(statement.source.value)};`
|
|
88
|
+
);
|
|
89
|
+
const names = statement.specifiers.map((specifier) => {
|
|
90
|
+
if (specifier.type !== "ImportSpecifier" || specifier.imported.type !== "Identifier")
|
|
91
|
+
throw new Error("unsupported Kotlin instance import");
|
|
92
|
+
return `${specifier.imported.name}: ${specifier.local.name}`;
|
|
93
|
+
});
|
|
94
|
+
const dependency = `__peachDependency${dependencies++}`;
|
|
95
|
+
body.push(
|
|
96
|
+
`const ${dependency} = ${importedFactory}();`,
|
|
97
|
+
`__peachDisposers.push(${dependency}.peachDisposeInstance);`,
|
|
98
|
+
`const { ${names.join(", ")} } = ${dependency};`
|
|
99
|
+
);
|
|
100
|
+
} else if (statement.type === "ExportNamedDeclaration") {
|
|
101
|
+
const declaration = statement.declaration;
|
|
102
|
+
if (declaration) {
|
|
103
|
+
body.push(source.slice(declaration.start, declaration.end));
|
|
104
|
+
const names = declaration.type === "VariableDeclaration" ? declaration.declarations.flatMap((item) => bindingNames(item.id)) : declaration.id ? [declaration.id.name] : [];
|
|
105
|
+
exports2.push(...names.map((name) => ({ local: name, exported: name })));
|
|
106
|
+
} else {
|
|
107
|
+
if (statement.source) throw new Error("unsupported Kotlin instance re-export");
|
|
108
|
+
for (const specifier of statement.specifiers) {
|
|
109
|
+
if (specifier.local.type !== "Identifier" || specifier.exported.type !== "Identifier")
|
|
110
|
+
throw new Error("unsupported Kotlin export name");
|
|
111
|
+
exports2.push({ local: specifier.local.name, exported: specifier.exported.name });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
} else if (statement.type === "ExportDefaultDeclaration") {
|
|
115
|
+
body.push(
|
|
116
|
+
`const __defaultExport = (${source.slice(statement.declaration.start, statement.declaration.end)});`
|
|
117
|
+
);
|
|
118
|
+
exports2.push({ local: "__defaultExport", exported: "default" });
|
|
119
|
+
} else if (statement.type === "ExportAllDeclaration") {
|
|
120
|
+
throw new Error("unsupported Kotlin instance re-export");
|
|
121
|
+
} else {
|
|
122
|
+
body.push(source.slice(statement.start, statement.end));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
source: `${imports.join("\n")}
|
|
127
|
+
export ${instanceImports.size ? "async " : ""}function ${factory}() {
|
|
128
|
+
const __peachTimers = new Set();
|
|
129
|
+
const __peachDisposers = [];
|
|
130
|
+
let __peachClosed = false;
|
|
131
|
+
function peachDisposeInstance() {
|
|
132
|
+
if (__peachClosed) return;
|
|
133
|
+
__peachClosed = true;
|
|
134
|
+
for (const timer of __peachTimers) globalThis.clearTimeout(timer);
|
|
135
|
+
__peachTimers.clear();
|
|
136
|
+
for (const dispose of __peachDisposers) dispose();
|
|
137
|
+
__peachDisposers.length = 0;
|
|
138
|
+
}
|
|
139
|
+
const setTimeout = (callback, delay, ...args) => {
|
|
140
|
+
if (__peachClosed) return 0;
|
|
141
|
+
const timer = globalThis.setTimeout(() => {
|
|
142
|
+
__peachTimers.delete(timer);
|
|
143
|
+
if (!__peachClosed) callback(...args);
|
|
144
|
+
}, delay);
|
|
145
|
+
__peachTimers.add(timer);
|
|
146
|
+
return timer;
|
|
147
|
+
};
|
|
148
|
+
const clearTimeout = timer => {
|
|
149
|
+
__peachTimers.delete(timer);
|
|
150
|
+
globalThis.clearTimeout(timer);
|
|
151
|
+
};
|
|
152
|
+
try {
|
|
153
|
+
${body.join("\n")}
|
|
154
|
+
return { peachDisposeInstance, ${exports2.map((item) => `${JSON.stringify(item.exported)}: ${item.local}`).join(", ")} };
|
|
155
|
+
} catch (error) {
|
|
156
|
+
peachDisposeInstance();
|
|
157
|
+
throw error;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
`,
|
|
161
|
+
exports: exports2
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
59
165
|
// src/kotlin-sdk.ts
|
|
60
166
|
var import_node_child_process2 = require("node:child_process");
|
|
61
167
|
var import_node_crypto2 = require("node:crypto");
|
|
@@ -516,7 +622,7 @@ function entrySource(ids) {
|
|
|
516
622
|
""
|
|
517
623
|
].join("\n");
|
|
518
624
|
}
|
|
519
|
-
var BUILD_FORMAT =
|
|
625
|
+
var BUILD_FORMAT = 19;
|
|
520
626
|
var builds = /* @__PURE__ */ new Map();
|
|
521
627
|
function buildsDir() {
|
|
522
628
|
return import_node_path5.default.join(kotlinHome(), "builds");
|
|
@@ -1266,7 +1372,7 @@ async function compileKotlin(input, origin) {
|
|
|
1266
1372
|
import_node_path5.default.join(work, "js")
|
|
1267
1373
|
]);
|
|
1268
1374
|
const skikoPath = import_node_path5.default.join(work, "js", "skiko.mjs");
|
|
1269
|
-
const upstream = (0,
|
|
1375
|
+
const upstream = (0, import_acorn2.parse)(import_node_fs4.default.readFileSync(skikoPath, "utf8"), {
|
|
1270
1376
|
ecmaVersion: "latest",
|
|
1271
1377
|
sourceType: "module"
|
|
1272
1378
|
});
|
|
@@ -1371,22 +1477,27 @@ ${output.trim() || (error instanceof Error ? error.message : String(error))}`
|
|
|
1371
1477
|
}
|
|
1372
1478
|
const entry = import_node_path5.default.join(work, "js/app.mjs");
|
|
1373
1479
|
const entrySource2 = import_node_fs4.default.readFileSync(entry, "utf8");
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1480
|
+
const importsPath = import_node_path5.default.join(work, "js/app.import-object.mjs");
|
|
1481
|
+
const importsFactory = kotlinInstanceSource(
|
|
1482
|
+
import_node_fs4.default.readFileSync(importsPath, "utf8"),
|
|
1483
|
+
"createKotlinImportObject"
|
|
1484
|
+
);
|
|
1485
|
+
const runtimeFactory = kotlinInstanceSource(
|
|
1486
|
+
entrySource2,
|
|
1487
|
+
"createKotlinInstance",
|
|
1488
|
+
/* @__PURE__ */ new Map([["./app.import-object.mjs", "createKotlinImportObject"]])
|
|
1381
1489
|
);
|
|
1382
|
-
import_node_fs4.default.
|
|
1490
|
+
import_node_fs4.default.writeFileSync(importsPath, importsFactory.source);
|
|
1491
|
+
import_node_fs4.default.writeFileSync(import_node_path5.default.join(work, "js/app-runtime.mjs"), runtimeFactory.source);
|
|
1383
1492
|
import_node_fs4.default.writeFileSync(
|
|
1384
1493
|
entry,
|
|
1385
1494
|
[
|
|
1386
|
-
"
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1495
|
+
"import { createKotlinInstance } from './app-runtime.mjs';",
|
|
1496
|
+
"const instance = await createKotlinInstance();",
|
|
1497
|
+
...runtimeFactory.exports.map(
|
|
1498
|
+
({ exported }) => exported === "default" ? "export default instance.default;" : `export const ${exported} = instance[${JSON.stringify(exported)}];`
|
|
1499
|
+
),
|
|
1500
|
+
"instance.peachInitializeModuleBindings();",
|
|
1390
1501
|
""
|
|
1391
1502
|
].join("\n")
|
|
1392
1503
|
);
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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;
|
|
@@ -458,6 +458,12 @@ function windowMenu(state) {
|
|
|
458
458
|
checked: state.showTouches,
|
|
459
459
|
action: "toggle-touches"
|
|
460
460
|
},
|
|
461
|
+
{
|
|
462
|
+
label: "Use System Cursor",
|
|
463
|
+
type: "checkbox",
|
|
464
|
+
checked: state.systemCursor,
|
|
465
|
+
action: "toggle-system-cursor"
|
|
466
|
+
},
|
|
461
467
|
{
|
|
462
468
|
label: "Show Menu Bar",
|
|
463
469
|
type: "checkbox",
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/public-brand.ts
|
|
4
4
|
var name = "Peach";
|
|
@@ -410,6 +410,12 @@ function windowMenu(state) {
|
|
|
410
410
|
checked: state.showTouches,
|
|
411
411
|
action: "toggle-touches"
|
|
412
412
|
},
|
|
413
|
+
{
|
|
414
|
+
label: "Use System Cursor",
|
|
415
|
+
type: "checkbox",
|
|
416
|
+
checked: state.systemCursor,
|
|
417
|
+
action: "toggle-system-cursor"
|
|
418
|
+
},
|
|
413
419
|
{
|
|
414
420
|
label: "Show Menu Bar",
|
|
415
421
|
type: "checkbox",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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.1728 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __esm = (fn, res) => function __init() {
|