peachsim 0.1.2439 → 0.1.2440
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/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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +33 -18
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-FGE4PYDJ.mjs → acorn-B27MTHKJ.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-IWJUYJQO.mjs → chunk-4U7IGWPB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4ZFNH7TU.mjs → chunk-5CZQZKYU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YB27R6JG.mjs → chunk-6HFWZJ6C.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DEGYKHN7.mjs → chunk-6JGALQD5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HSADZOVN.mjs → chunk-ADE23YGG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-C3WBGYP6.mjs → chunk-D4Z36DQQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7HANEMO4.mjs → chunk-EATI62W3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HIDNO3RP.mjs → chunk-H6QIEJRC.mjs} +18 -18
- package/dist-lib/esm-chunks/{chunk-5T4XBUJP.mjs → chunk-HIK3VREC.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-KVTIDLBK.mjs → chunk-HP7DHONL.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2NPABFPN.mjs → chunk-PRZI3CFF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MIQSRBVU.mjs → chunk-QECVPSP3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KSQ5KM5Y.mjs → chunk-R5FNLCBO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2EUHEBIJ.mjs → chunk-RVMUQQWC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CVGDRROP.mjs → chunk-SJFNKW3W.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JCKI3VZ6.mjs → chunk-WQISIGIX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DADGQELM.mjs → chunk-X6UKJ5AX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6VY6HTJC.mjs → chunk-ZXNBC3PZ.mjs} +17 -9
- package/dist-lib/esm-chunks/{metro-layout-parser-MVUAXRUJ.mjs → metro-layout-parser-ZOI5PO4E.mjs} +3 -3
- package/dist-lib/expo-swift-bundle.cjs +31 -16
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +35 -18
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- 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 +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +13 -13
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +73 -73
- package/dist-lib/public-origins-lib.json +75 -75
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +7 -7
- package/dist-lib/skills.cjs +45 -27
- package/dist-lib/swift-compile.cjs +13 -5
- package/dist-lib/swift-compile.mjs +8 -8
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +17 -17
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +9 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h +1 -1
- package/src/host/bridge-host.ts +2 -0
- package/src/native-slices.ts +1 -1
- package/src/swift-compile.ts +13 -7
- package/src/swift-host.ts +2 -0
- package/src/swift-package-manifest.ts +13 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
parse
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-PRZI3CFF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__privateAdd,
|
|
7
7
|
__privateGet,
|
|
8
8
|
__publicField
|
|
9
|
-
} from "./esm-chunks/chunk-
|
|
9
|
+
} from "./esm-chunks/chunk-4U7IGWPB.mjs";
|
|
10
10
|
|
|
11
11
|
// src/worklet-kernel.ts
|
|
12
12
|
var Unsupported = class extends Error {
|
|
@@ -79,6 +79,10 @@ declare const { storeResponseCookies, cookiesMatching, parseCookieUrl, normalize
|
|
|
79
79
|
removeSessionCookies: (store: CookieStore) => boolean;
|
|
80
80
|
};
|
|
81
81
|
export { cookieKey };
|
|
82
|
+
export declare const nativeCookieCollection: {
|
|
83
|
+
read(url: string | null, useWebKit: boolean): NativeCookie[];
|
|
84
|
+
header(url: string, useWebKit: boolean): string;
|
|
85
|
+
};
|
|
82
86
|
export declare const nativeFetchCookies: {
|
|
83
87
|
request(url: string, store?: NativeCookieJar): string;
|
|
84
88
|
response(url: string, headers: readonly string[], store?: NativeCookieJar): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const DISPLAY_SERVER_VERSION = 26;
|
|
2
2
|
export declare const DISPLAY_SERVER_MAJOR = 2;
|
|
3
|
-
export declare const DISPLAY_SERVER_MINOR =
|
|
4
|
-
export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.
|
|
3
|
+
export declare const DISPLAY_SERVER_MINOR = 38;
|
|
4
|
+
export declare const DISPLAY_SERVER_SUBPROTOCOL = "rnx.display-server.v2.wire26.minor38";
|
|
5
5
|
export declare const DISPLAY_SERVER_TOKEN_SUBPROTOCOL_PREFIX = "rnx.sim-token.";
|
|
6
6
|
export declare const RNX_CLOUD_DISPLAY_GRANT_TTL_MS: number;
|
|
7
7
|
export declare const RNX_CLOUD_DISPLAY_CLOSE: {
|
|
@@ -202,6 +202,12 @@ export type HostToWorker = {
|
|
|
202
202
|
} | {
|
|
203
203
|
type: 'setCameraInput';
|
|
204
204
|
input: SootSimCameraInputPayload;
|
|
205
|
+
} | {
|
|
206
|
+
type: 'openUrl';
|
|
207
|
+
url: string;
|
|
208
|
+
} | {
|
|
209
|
+
type: 'deviceHardware';
|
|
210
|
+
action: 'shake' | 'ring' | 'silent';
|
|
205
211
|
} | {
|
|
206
212
|
type: 'dispatchWindowEvent';
|
|
207
213
|
eventType: ForwardedWindowEventType;
|
|
@@ -750,6 +756,9 @@ export type WorkerToHost = {
|
|
|
750
756
|
} | {
|
|
751
757
|
type: 'remoteDeviceCamera';
|
|
752
758
|
state: SootSimCameraInputState;
|
|
759
|
+
} | {
|
|
760
|
+
type: 'remoteDeviceHardware';
|
|
761
|
+
action: 'ring' | 'silent';
|
|
753
762
|
} | {
|
|
754
763
|
type: 'replayDevice';
|
|
755
764
|
posture: DevicePosture | null;
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"0e384822ad99e72c643e09acfc12ea106ee5d1f229f51e5f01df8f2ae6beef6d","file":"node/cli-0e384822ad99e72c643e09acfc12ea106ee5d1f229f51e5f01df8f2ae6beef6d.cjs"}
|
package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h
CHANGED
|
@@ -117,7 +117,7 @@ typedef NS_OPTIONS(NSUInteger, NSDateComponentsFormatterZeroFormattingBehavior)
|
|
|
117
117
|
/// > In Swift, you can use ``Date/RelativeFormatStyle`` rather than ``DateComponentsFormatter``. The ``FormatStyle`` API offers a declarative idiom for customizing the formatting of various types. Also, Foundation caches identical ``FormatStyle`` instances, so you don't need to pass them around your app, or risk wasting memory with duplicate formatters.
|
|
118
118
|
NS_SWIFT_SENDABLE
|
|
119
119
|
API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
|
|
120
|
-
@interface NSDateComponentsFormatter : NSFormatter
|
|
120
|
+
PEACH_SWIFT_CLASS(PeachFoundation) @interface NSDateComponentsFormatter : NSFormatter
|
|
121
121
|
|
|
122
122
|
/// Returns a formatted string based on the date information in the specified object.
|
|
123
123
|
///
|
package/src/host/bridge-host.ts
CHANGED
|
@@ -307,6 +307,8 @@ const HTTP_MIME_TYPES: Record<string, string> = {
|
|
|
307
307
|
'.jpg': 'image/jpeg',
|
|
308
308
|
'.jpeg': 'image/jpeg',
|
|
309
309
|
'.gif': 'image/gif',
|
|
310
|
+
'.heic': 'image/heic',
|
|
311
|
+
'.heif': 'image/heif',
|
|
310
312
|
'.svg': 'image/svg+xml',
|
|
311
313
|
'.webp': 'image/webp',
|
|
312
314
|
'.avif': 'image/avif',
|
package/src/native-slices.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const NATIVE_SLICE_RECIPES = {
|
|
|
6
6
|
GhosttyKit: {
|
|
7
7
|
name: 'GhosttyKit',
|
|
8
8
|
upstream: 'cf8edc23f3a6a87a96e41a90013e89e987d34980',
|
|
9
|
-
source: '
|
|
9
|
+
source: '6aa8c2a90bff8845e4b5f802842e72d62f2b46b9',
|
|
10
10
|
port: 'f4f9162f713b9ab15e0e44499e6878608e48b23e75d7833012aecf0a61ac83ba',
|
|
11
11
|
repository: 'https://github.com/natew/ghostty.git',
|
|
12
12
|
zig: '0.16.0',
|
package/src/swift-compile.ts
CHANGED
|
@@ -50,9 +50,7 @@ import {
|
|
|
50
50
|
} from './swift-distribution-contract'
|
|
51
51
|
import { foundationCategoryObjects } from './swift-foundation'
|
|
52
52
|
import { compileGuestLink } from './swift-guest-compile'
|
|
53
|
-
import {
|
|
54
|
-
CLANG_TARGET_MODULE_WRAPPER,
|
|
55
|
-
} from './swift-guest-source-inputs'
|
|
53
|
+
import { CLANG_TARGET_MODULE_WRAPPER } from './swift-guest-source-inputs'
|
|
56
54
|
import {
|
|
57
55
|
SWIFT_HEADER_COMPILER_WRAPPER,
|
|
58
56
|
withSwiftHeaderCompiler,
|
|
@@ -6214,6 +6212,7 @@ export function writeSwiftProject(
|
|
|
6214
6212
|
'explicit=',
|
|
6215
6213
|
'prev=',
|
|
6216
6214
|
'cxx=',
|
|
6215
|
+
'plainCxx=',
|
|
6217
6216
|
'cxxModules=',
|
|
6218
6217
|
'for arg in "$@"; do',
|
|
6219
6218
|
' case $arg in -fmodule-name=*) explicit=1 ;; esac',
|
|
@@ -6232,17 +6231,24 @@ export function writeSwiftProject(
|
|
|
6232
6231
|
' fi',
|
|
6233
6232
|
' prev=$arg',
|
|
6234
6233
|
' case $arg in',
|
|
6235
|
-
' *.mm
|
|
6234
|
+
' *.mm) cxx=1 ;;',
|
|
6235
|
+
' *.cpp|*.cc|*.cxx) cxx=1; plainCxx=1 ;;',
|
|
6236
6236
|
' -fno-cxx-modules) cxxModules=off ;;',
|
|
6237
6237
|
' -fcxx-modules) cxxModules=on ;;',
|
|
6238
6238
|
' esac',
|
|
6239
6239
|
'done',
|
|
6240
6240
|
// apple clang claims the toolset's cache path in a c++ unit whose modules
|
|
6241
|
-
// are off; this clang reports it unused
|
|
6241
|
+
// are off; this clang reports it unused and can still import explicit
|
|
6242
|
+
// swiftpm umbrella maps from inside a namespace in plain c++.
|
|
6242
6243
|
'if [ -n "$cxx" ] && [ "$cxxModules" = off ]; then',
|
|
6243
6244
|
' for arg in "$@"; do',
|
|
6244
6245
|
' shift',
|
|
6245
|
-
' case $arg in
|
|
6246
|
+
' case $arg in',
|
|
6247
|
+
' -fmodules-cache-path=*) ;;',
|
|
6248
|
+
' -fmodule-map-file=*/.build/*/*.build/module.modulemap)',
|
|
6249
|
+
' [ -n "$plainCxx" ] || set -- "$@" "$arg" ;;',
|
|
6250
|
+
' *) set -- "$@" "$arg" ;;',
|
|
6251
|
+
' esac',
|
|
6246
6252
|
' done',
|
|
6247
6253
|
'fi',
|
|
6248
6254
|
'if [ -n "$name" ] && [ -z "$explicit" ]; then',
|
|
@@ -8225,7 +8231,7 @@ function compileSwiftProjectOnce(
|
|
|
8225
8231
|
toolchainBin: options.toolchainBin,
|
|
8226
8232
|
swiftCompiler: preparation.headerCompiler
|
|
8227
8233
|
? path.join(root, SWIFT_HEADER_COMPILER_WRAPPER)
|
|
8228
|
-
: compiler.SWIFT_EXEC ?? path.join(options.toolchainBin, 'swiftc'),
|
|
8234
|
+
: (compiler.SWIFT_EXEC ?? path.join(options.toolchainBin, 'swiftc')),
|
|
8229
8235
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
8230
8236
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
8231
8237
|
staticClangTargets: input.staticClangTargets ?? [],
|
package/src/swift-host.ts
CHANGED
|
@@ -2065,6 +2065,8 @@ const RESOURCE_CONTENT_TYPES: Record<string, string> = {
|
|
|
2065
2065
|
'.avif': 'image/avif',
|
|
2066
2066
|
'.bmp': 'image/bmp',
|
|
2067
2067
|
'.gif': 'image/gif',
|
|
2068
|
+
'.heic': 'image/heic',
|
|
2069
|
+
'.heif': 'image/heif',
|
|
2068
2070
|
'.ico': 'image/x-icon',
|
|
2069
2071
|
'.jpeg': 'image/jpeg',
|
|
2070
2072
|
'.jpg': 'image/jpeg',
|
|
@@ -236,6 +236,8 @@ export class SwiftManifestPreparationRequired extends Error {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
function dumpInputs(dir: string) {
|
|
239
|
+
const inheritedEnvironment = { ...process.env }
|
|
240
|
+
const env = swiftEnvironment(inheritedEnvironment)
|
|
239
241
|
const manifests = fs
|
|
240
242
|
.readdirSync(dir)
|
|
241
243
|
.filter((name) => /^Package(@swift-[\d.]+)?\.swift$/.test(name))
|
|
@@ -251,13 +253,16 @@ function dumpInputs(dir: string) {
|
|
|
251
253
|
sha256: createHash('sha256').update(fs.readFileSync(command)).digest('hex'),
|
|
252
254
|
version: execFileSync(command, ['--version'], {
|
|
253
255
|
encoding: 'utf8',
|
|
254
|
-
env
|
|
256
|
+
env,
|
|
255
257
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
256
258
|
}).trim(),
|
|
257
259
|
}
|
|
258
260
|
cachedToolchain = { fingerprint, value: toolchain }
|
|
261
|
+
const environment = Object.keys(inheritedEnvironment)
|
|
262
|
+
.sort()
|
|
263
|
+
.map((name) => [name, inheritedEnvironment[name]])
|
|
259
264
|
const key = createHash('sha256')
|
|
260
|
-
.update(JSON.stringify([toolchain, path.resolve(dir)]))
|
|
265
|
+
.update(JSON.stringify([toolchain, path.resolve(dir), environment]))
|
|
261
266
|
.update(
|
|
262
267
|
manifests
|
|
263
268
|
.map((name) => `${name}\0${fs.readFileSync(path.join(dir, name), 'utf8')}`)
|
|
@@ -265,14 +270,14 @@ function dumpInputs(dir: string) {
|
|
|
265
270
|
)
|
|
266
271
|
.digest('hex')
|
|
267
272
|
.slice(0, 32)
|
|
268
|
-
return { command, key, toolchain, cached: path.join(cacheDir, `${key}.json`) }
|
|
273
|
+
return { command, env, key, toolchain, cached: path.join(cacheDir, `${key}.json`) }
|
|
269
274
|
}
|
|
270
275
|
|
|
271
276
|
const manifestPreparations = new Map<string, Promise<void>>()
|
|
272
277
|
|
|
273
278
|
export async function prepareSwiftPackageManifest(dir: string): Promise<void> {
|
|
274
279
|
await prepareSwiftManifestToolchain()
|
|
275
|
-
const { command, key, cached } = dumpInputs(dir)
|
|
280
|
+
const { command, env, key, cached } = dumpInputs(dir)
|
|
276
281
|
if (fs.existsSync(cached)) return
|
|
277
282
|
const pending = manifestPreparations.get(key)
|
|
278
283
|
if (pending) return pending
|
|
@@ -291,7 +296,7 @@ export async function prepareSwiftPackageManifest(dir: string): Promise<void> {
|
|
|
291
296
|
scratch,
|
|
292
297
|
'dump-package',
|
|
293
298
|
],
|
|
294
|
-
{ encoding: 'utf8', env
|
|
299
|
+
{ encoding: 'utf8', env, maxBuffer: 64 * 1024 * 1024 },
|
|
295
300
|
)
|
|
296
301
|
const output = path.join(scratch, 'manifest.json')
|
|
297
302
|
await fs.promises.writeFile(output, stdout)
|
|
@@ -326,7 +331,7 @@ function dump(
|
|
|
326
331
|
cachedToolchain?.fingerprint !== toolchainFingerprint(swiftCommand())
|
|
327
332
|
)
|
|
328
333
|
throw new SwiftManifestPreparationRequired(dir)
|
|
329
|
-
const { command, key, toolchain, cached } = dumpInputs(dir)
|
|
334
|
+
const { command, env, key, toolchain, cached } = dumpInputs(dir)
|
|
330
335
|
if (fs.existsSync(cached))
|
|
331
336
|
return { key, toolchain, raw: record(JSON.parse(fs.readFileSync(cached, 'utf8'))) }
|
|
332
337
|
if (requirePrepared) throw new SwiftManifestPreparationRequired(dir)
|
|
@@ -346,7 +351,7 @@ function dump(
|
|
|
346
351
|
],
|
|
347
352
|
{
|
|
348
353
|
encoding: 'utf8',
|
|
349
|
-
env
|
|
354
|
+
env,
|
|
350
355
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
351
356
|
maxBuffer: 64 * 1024 * 1024,
|
|
352
357
|
},
|
|
@@ -406,7 +411,7 @@ function linksOnPlatform(
|
|
|
406
411
|
// exactly as the source branches it gates do.
|
|
407
412
|
const GUEST_PLATFORMS = ['ios', 'wasi'] as const
|
|
408
413
|
|
|
409
|
-
/** the manifest of the package at `dir`, evaluated
|
|
414
|
+
/** the manifest of the package at `dir`, evaluated per content and caller environment.
|
|
410
415
|
* conditions hold for the guest platforms unless told otherwise; host macro
|
|
411
416
|
* evaluation passes its own. */
|
|
412
417
|
export function swiftPackageManifest(
|