peachsim 0.1.2186 → 0.1.2188
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 +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 +2708 -2383
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3229 -3222
- 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 +4540 -4215
- package/dist-lib/host/fetch-proxy-handler.cjs +8 -7
- 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 +431 -281
- 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 +645 -284
- 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 +732 -582
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- 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/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.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 +24 -24
- package/dist-lib/public-origins-lib.json +99 -59
- 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 +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +5198 -4873
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +3 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +4 -4
- package/dist-lib/vite.cjs +8 -7
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +10 -0
- package/src/android-autolinking.ts +45 -4
- package/src/android-bridge-packages.ts +2 -2
- package/src/android-gradle-sources.ts +143 -0
- package/src/androidAutolinkingContract.ts +8 -0
- package/src/androidGradleContract.ts +14 -0
- package/src/expo-kotlin-host.ts +3 -0
- package/src/java-module-abi.ts +145 -0
- package/src/javaAbiContract.ts +14 -0
- package/src/kotlin-host.ts +55 -3
- package/src/nitro-source.ts +2 -167
- package/src/react-native-autolinking.ts +153 -0
- package/src/swift-distribution-contract.ts +72 -0
- package/src/swift-toolchain.ts +1 -1
|
@@ -161,3 +161,75 @@ export function parseSwiftDistributionLock(value: unknown): SwiftDistributionLoc
|
|
|
161
161
|
export function swiftDistributionKey(id: string, host: SwiftDistributionHost): string {
|
|
162
162
|
return `${id}/${host}.tar.gz`
|
|
163
163
|
}
|
|
164
|
+
|
|
165
|
+
/** the canary index under PEACH_SWIFT_ENDPOINT: the newest unpinned builds. */
|
|
166
|
+
export const SWIFT_CANARY_INDEX = 'canary/index.json'
|
|
167
|
+
|
|
168
|
+
/** one unpinned distribution build any agent can fetch instead of rebuilding.
|
|
169
|
+
* its wasm SDK is a pinned public URL, or a local candidate uploaded beside it
|
|
170
|
+
* under `wasmSdkKey`. */
|
|
171
|
+
export interface SwiftDistributionCanary extends SwiftWasmSdk {
|
|
172
|
+
/** the distribution id plus the SDK checksum prefix: one set of build inputs. */
|
|
173
|
+
id: string
|
|
174
|
+
distribution: string
|
|
175
|
+
release: string
|
|
176
|
+
/** the commit the module sources were built from. */
|
|
177
|
+
source: string
|
|
178
|
+
builtBy: string
|
|
179
|
+
builtAt: string
|
|
180
|
+
wasmSdkKey?: string
|
|
181
|
+
hosts: Partial<Record<SwiftDistributionHost, { sha256: string; size: number }>>
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function swiftCanaryKey(id: string, host: SwiftDistributionHost): string {
|
|
185
|
+
return `canary/${id}/${host}.tar.gz`
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function parseSwiftCanaryIndex(value: unknown): SwiftDistributionCanary[] {
|
|
189
|
+
if (!Array.isArray(value)) throw new Error('invalid Swift canary index')
|
|
190
|
+
return value.map((item) => {
|
|
191
|
+
if (
|
|
192
|
+
!isRecord(item) ||
|
|
193
|
+
![
|
|
194
|
+
item.id,
|
|
195
|
+
item.distribution,
|
|
196
|
+
item.release,
|
|
197
|
+
item.source,
|
|
198
|
+
item.builtBy,
|
|
199
|
+
item.builtAt,
|
|
200
|
+
item.wasmSdkId,
|
|
201
|
+
item.wasmSdkUrl,
|
|
202
|
+
item.wasmSdkChecksum,
|
|
203
|
+
].every((field) => typeof field === 'string') ||
|
|
204
|
+
(item.wasmSdkKey !== undefined && typeof item.wasmSdkKey !== 'string') ||
|
|
205
|
+
!isRecord(item.hosts)
|
|
206
|
+
)
|
|
207
|
+
throw new Error('invalid Swift canary index entry')
|
|
208
|
+
const hosts: SwiftDistributionCanary['hosts'] = {}
|
|
209
|
+
for (const host of SWIFT_DISTRIBUTION_HOSTS) {
|
|
210
|
+
const archive = item.hosts[host]
|
|
211
|
+
if (archive === undefined) continue
|
|
212
|
+
if (
|
|
213
|
+
!isRecord(archive) ||
|
|
214
|
+
typeof archive.sha256 !== 'string' ||
|
|
215
|
+
!/^[a-f0-9]{64}$/.test(archive.sha256) ||
|
|
216
|
+
typeof archive.size !== 'number'
|
|
217
|
+
)
|
|
218
|
+
throw new Error(`invalid Swift canary archive for ${host}`)
|
|
219
|
+
hosts[host] = { sha256: archive.sha256, size: archive.size }
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
id: String(item.id),
|
|
223
|
+
distribution: String(item.distribution),
|
|
224
|
+
release: String(item.release),
|
|
225
|
+
source: String(item.source),
|
|
226
|
+
builtBy: String(item.builtBy),
|
|
227
|
+
builtAt: String(item.builtAt),
|
|
228
|
+
wasmSdkId: String(item.wasmSdkId),
|
|
229
|
+
wasmSdkUrl: String(item.wasmSdkUrl),
|
|
230
|
+
wasmSdkChecksum: String(item.wasmSdkChecksum),
|
|
231
|
+
...(typeof item.wasmSdkKey === 'string' ? { wasmSdkKey: item.wasmSdkKey } : {}),
|
|
232
|
+
hosts,
|
|
233
|
+
}
|
|
234
|
+
})
|
|
235
|
+
}
|
package/src/swift-toolchain.ts
CHANGED
|
@@ -567,7 +567,7 @@ exec ${JSON.stringify(path.join(toolchainBin, 'wasm-ld'))} "$@"
|
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
// home-paths.ts's rnxHomeDir, repeated because this file imports node builtins only.
|
|
570
|
-
function peachHome(): string {
|
|
570
|
+
export function peachHome(): string {
|
|
571
571
|
const override = process.env.PEACH_HOME
|
|
572
572
|
return override ? path.resolve(override) : path.join(os.homedir(), '.peach')
|
|
573
573
|
}
|