peachsim 0.1.1881 → 0.1.1887
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/commands/control.ts +11 -10
- package/cli/commands/reset.ts +1 -1
- package/cli/native-input.ts +1 -1
- package/cli/outbound-endpoints.ts +1 -1
- package/detox/index.ts +62 -1
- 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 +9079 -4305
- 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 +35 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +8609 -3976
- package/dist-lib/expo-swift-metadata.cjs +5 -1
- package/dist-lib/expo-swift-metadata.mjs +5 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +9894 -5149
- package/dist-lib/host/fetch-proxy-handler.cjs +93 -13
- package/dist-lib/host/fetch-proxy-overrides.cjs +10 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +8 -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 +538 -120
- 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 +536 -118
- package/dist-lib/native-app-identity-project.cjs +408 -72
- package/dist-lib/native-app-identity-project.mjs +739 -375
- package/dist-lib/native-app-identity.cjs +37 -1
- package/dist-lib/native-app-identity.mjs +36 -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 +61 -28
- package/dist-lib/public-origins-lib.json +250 -92
- 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 +16568 -11674
- package/dist-lib/swift-compile.cjs +6874 -2537
- package/dist-lib/swift-compile.mjs +6207 -1866
- package/dist-lib/swift-package.cjs +20 -3
- package/dist-lib/swift-package.mjs +20 -3
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +19 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +8753 -4124
- package/dist-lib/vite.cjs +93 -13
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +2 -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-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +11 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +1 -1
- package/dist-types/packages/sootsim-swift/src/securityHostContract.d.ts +10 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h +555 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +6 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +0 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +2 -2
- package/sdk/ios/usr/include/os/activity.h +534 -0
- package/sdk/ios/usr/include/os.modulemap +15 -0
- package/sdk/ios/wasm/include/fcntl.h +16 -0
- package/sdk/ios/wasm/include/string.h +5 -0
- package/sdk/native-hashes.json +1 -1
- package/src/dns-over-https.ts +61 -9
- package/src/expo-swift-bundle.ts +2 -7
- package/src/expo-swift-host.ts +11 -3
- package/src/host/fetch-proxy-handler.ts +51 -2
- package/src/host/fetch-proxy-overrides.ts +4 -0
- package/src/host/hostname-resolver.ts +9 -5
- package/src/native-app-identity-project.ts +13 -2
- package/src/native-app-identity.ts +47 -0
- package/src/nitro-adapter.lock.json +260 -260
- package/src/nitro-bundle.ts +7 -10
- package/src/nitro-superset.lock.json +4 -4
- package/src/podspec-sources.ts +20 -0
- package/src/storageSnapshotContract.ts +20 -1
- package/src/swift-compile.ts +409 -77
- package/src/swift-compiler-digest.ts +15 -0
- package/src/swift-coverage/xcode-packages.ts +3 -2
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-guest-archive.ts +153 -0
- package/src/swift-guest-compile.ts +449 -0
- package/src/swift-guest-image-ledger.ts +656 -0
- package/src/swift-guest-link-plan.ts +52 -0
- package/src/swift-guest-link.ts +1414 -0
- package/src/swift-guest-linked-spans.ts +338 -0
- package/src/swift-guest-manifest.ts +141 -0
- package/src/swift-guest-projection-storage.ts +310 -0
- package/src/swift-guest-projection.ts +252 -0
- package/src/swift-guest-runtime-plan.ts +834 -0
- package/src/swift-guest-source-inputs.ts +427 -0
- package/src/swift-guest-source-plan.ts +279 -0
- package/src/swift-host.ts +157 -36
- package/src/swift-icu.ts +60 -18
- package/src/swift-link-roots.ts +27 -50
- package/src/swift-package-manifest.ts +34 -18
- package/src/swift-package.ts +32 -2
- package/src/swift-packages.ts +138 -17
- package/src/swift-runtime-products.ts +73 -0
- package/src/swift-shared-sdk.ts +1 -1
- package/src/swift-submit.ts +15 -3
- package/src/swift-toolchain.ts +18 -0
- package/src/swift-wasm-prune.ts +313 -14
- package/src/swiftContract.ts +83 -0
- package/src/swiftRuntimeProductContract.ts +85 -45
- package/src/turbo-bundle.ts +1 -1
- package/src/turbo-codegen-intake.ts +10 -3
- package/src/turbo-runtime.lock.json +23 -23
- package/src/wasm-optimize.ts +16 -4
- package/src/xcode-project.ts +142 -14
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
import { NATIVE_HTTP_COOKIE_STORAGE_PREFIX } from '../../peach-compat/src/stubs/native-cookie-storage-contract'
|
|
16
16
|
import { ONE_STORAGE_PREFIX } from '../../peach-compat/src/stubs/one-storage-contract'
|
|
17
17
|
import type { AppSettingsSnapshot } from '#peach-cli-contract/permissions/app-settings-client'
|
|
18
|
+
import type {
|
|
19
|
+
SwiftSecurityContext,
|
|
20
|
+
SwiftSecurityGroupSnapshot,
|
|
21
|
+
} from '../../sootsim-swift/src/securityHostContract'
|
|
18
22
|
import type {
|
|
19
23
|
SootSimExternalAppResetResult,
|
|
20
24
|
SootSimStorageResetStrategy,
|
|
@@ -26,12 +30,17 @@ export type TenantStorageClearResult = Pick<
|
|
|
26
30
|
>
|
|
27
31
|
|
|
28
32
|
export type TenantStorageResetRequest =
|
|
29
|
-
| {
|
|
33
|
+
| {
|
|
34
|
+
scopeUrl?: string
|
|
35
|
+
strategy: 'keychain'
|
|
36
|
+
securityContext?: SwiftSecurityContext | null
|
|
37
|
+
}
|
|
30
38
|
| {
|
|
31
39
|
scopeUrl?: string
|
|
32
40
|
strategy: SootSimStorageResetStrategy
|
|
33
41
|
localStorageKeys: string[]
|
|
34
42
|
appSettings?: AppSettingsSnapshot
|
|
43
|
+
securityContext?: SwiftSecurityContext | null
|
|
35
44
|
}
|
|
36
45
|
|
|
37
46
|
export const RESET_NATIVE_AUTH_COOKIE_KEY = '__rnx_native_auth_cookies'
|
|
@@ -192,6 +201,7 @@ export type ShareableStorageSnapshot = {
|
|
|
192
201
|
// and Security) in their own field, never in entries. a share drops the field.
|
|
193
202
|
export type StorageSnapshot = ShareableStorageSnapshot & {
|
|
194
203
|
secureItems?: SecureItemRecord[]
|
|
204
|
+
securityGroups?: SwiftSecurityGroupSnapshot[]
|
|
195
205
|
}
|
|
196
206
|
|
|
197
207
|
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
@@ -213,6 +223,12 @@ function isSecureItemRecord(value: unknown): value is SecureItemRecord {
|
|
|
213
223
|
)
|
|
214
224
|
}
|
|
215
225
|
|
|
226
|
+
function isSecurityGroupSnapshot(value: unknown): value is SwiftSecurityGroupSnapshot {
|
|
227
|
+
return (
|
|
228
|
+
isRecord(value) && typeof value.group === 'string' && typeof value.value === 'string'
|
|
229
|
+
)
|
|
230
|
+
}
|
|
231
|
+
|
|
216
232
|
export function isPreviewRouteSnapshot(value: unknown): value is PreviewRouteSnapshot {
|
|
217
233
|
return (
|
|
218
234
|
isRecord(value) &&
|
|
@@ -295,6 +311,9 @@ export function isStorageSnapshot(value: unknown): value is StorageSnapshot {
|
|
|
295
311
|
(value.secureItems == null ||
|
|
296
312
|
(Array.isArray(value.secureItems) &&
|
|
297
313
|
value.secureItems.every(isSecureItemRecord))) &&
|
|
314
|
+
(value.securityGroups == null ||
|
|
315
|
+
(Array.isArray(value.securityGroups) &&
|
|
316
|
+
value.securityGroups.every(isSecurityGroupSnapshot))) &&
|
|
298
317
|
(value.indexedDB == null ||
|
|
299
318
|
(Array.isArray(value.indexedDB) && value.indexedDB.every(isIndexedDBSnapshot))) &&
|
|
300
319
|
(value.route == null || isPreviewRouteSnapshot(value.route))
|