peachsim 0.1.1902 → 0.1.1905
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/record.ts +78 -43
- 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 +97 -40
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -1
- package/dist-lib/cloud-contract.mjs +2 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -1
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +3 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +91 -34
- 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 +98 -40
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +4 -3
- 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 +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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 +53 -53
- 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 +99 -41
- package/dist-lib/swift-compile.cjs +31 -18
- package/dist-lib/swift-compile.mjs +30 -18
- 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 +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +30 -20
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/usr/include/darwin.modulemap +430 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/src/bridge-contract.ts +25 -0
- package/src/cloud-contract.ts +1 -0
- package/src/expo-native-workspace.ts +31 -3
- package/src/expo-swift-host.ts +18 -8
- package/src/expo-workspace-exclusion.ts +15 -1
- package/src/nitro-adapter.lock.json +400 -1360
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-compile.ts +14 -14
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-host.ts +2 -1
- package/src/swift-shared-sdk.ts +12 -7
- package/src/swift-wasm-prune.ts +9 -1
- package/src/turbo-runtime.lock.json +20 -48
- package/src/workspace-root.ts +31 -7
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
// clang module names for Apple Darwin submodules, so @import Darwin.sys.sysctl resolves; each re-exports the wasm libc module that owns the headers (specs/peach/swift/darwin-libc-module.md).
|
|
2
|
+
module Darwin [system] {
|
|
3
|
+
export SwiftWASILibc.Darwin
|
|
4
|
+
module C {
|
|
5
|
+
export SwiftWASILibc.Darwin
|
|
6
|
+
module copyfile { export SwiftWASILibc.Darwin }
|
|
7
|
+
module removefile { export SwiftWASILibc.Darwin }
|
|
8
|
+
module err { export SwiftWASILibc.Darwin }
|
|
9
|
+
module readpassphrase { export SwiftWASILibc.Darwin }
|
|
10
|
+
module util { export SwiftWASILibc.Darwin }
|
|
11
|
+
module xattr_flags { export SwiftWASILibc.Darwin }
|
|
12
|
+
module ctype { export SwiftWASILibc.Darwin }
|
|
13
|
+
module errno { export SwiftWASILibc.Darwin }
|
|
14
|
+
module inttypes { export SwiftWASILibc.Darwin }
|
|
15
|
+
module limits { export SwiftWASILibc.Darwin }
|
|
16
|
+
module signal { export SwiftWASILibc.Darwin }
|
|
17
|
+
module stdarg { export SwiftWASILibc.Darwin }
|
|
18
|
+
module stdbool { export SwiftWASILibc.Darwin }
|
|
19
|
+
module stddef { export SwiftWASILibc.Darwin }
|
|
20
|
+
module stdint { export SwiftWASILibc.Darwin }
|
|
21
|
+
module stdio { export SwiftWASILibc.Darwin }
|
|
22
|
+
module stdlib { export SwiftWASILibc.Darwin }
|
|
23
|
+
module string { export SwiftWASILibc.Darwin }
|
|
24
|
+
module time { export SwiftWASILibc.Darwin }
|
|
25
|
+
module wchar { export SwiftWASILibc.Darwin }
|
|
26
|
+
module ucontext { export SwiftWASILibc.Darwin }
|
|
27
|
+
}
|
|
28
|
+
module POSIX {
|
|
29
|
+
export SwiftWASILibc.Darwin
|
|
30
|
+
module aio {
|
|
31
|
+
export SwiftWASILibc.Darwin
|
|
32
|
+
module sys_aio { export SwiftWASILibc.Darwin }
|
|
33
|
+
}
|
|
34
|
+
module arpa {
|
|
35
|
+
export SwiftWASILibc.Darwin
|
|
36
|
+
module inet { export SwiftWASILibc.Darwin }
|
|
37
|
+
}
|
|
38
|
+
module cpio { export SwiftWASILibc.Darwin }
|
|
39
|
+
module dirent {
|
|
40
|
+
export SwiftWASILibc.Darwin
|
|
41
|
+
module sys_dirent { export SwiftWASILibc.Darwin }
|
|
42
|
+
module dir { export SwiftWASILibc.Darwin }
|
|
43
|
+
}
|
|
44
|
+
module dlfcn { export SwiftWASILibc.Darwin }
|
|
45
|
+
module fcntl {
|
|
46
|
+
export SwiftWASILibc.Darwin
|
|
47
|
+
module sys_fcntl { export SwiftWASILibc.Darwin }
|
|
48
|
+
}
|
|
49
|
+
module fmtmsg { export SwiftWASILibc.Darwin }
|
|
50
|
+
module fnmatch { export SwiftWASILibc.Darwin }
|
|
51
|
+
module ftw { export SwiftWASILibc.Darwin }
|
|
52
|
+
module glob { export SwiftWASILibc.Darwin }
|
|
53
|
+
module grp { export SwiftWASILibc.Darwin }
|
|
54
|
+
module iconv { export SwiftWASILibc.Darwin }
|
|
55
|
+
module ifaddrs { export SwiftWASILibc.Darwin }
|
|
56
|
+
module ioctl { export SwiftWASILibc.Darwin }
|
|
57
|
+
module langinfo {
|
|
58
|
+
export SwiftWASILibc.Darwin
|
|
59
|
+
module xlocale { export SwiftWASILibc.Darwin }
|
|
60
|
+
}
|
|
61
|
+
module libgen { export SwiftWASILibc.Darwin }
|
|
62
|
+
module monetary {
|
|
63
|
+
export SwiftWASILibc.Darwin
|
|
64
|
+
module xlocale { export SwiftWASILibc.Darwin }
|
|
65
|
+
}
|
|
66
|
+
module ndbm { export SwiftWASILibc.Darwin }
|
|
67
|
+
module netdb { export SwiftWASILibc.Darwin }
|
|
68
|
+
module net {
|
|
69
|
+
export SwiftWASILibc.Darwin
|
|
70
|
+
module dl { export SwiftWASILibc.Darwin }
|
|
71
|
+
module if { export SwiftWASILibc.Darwin }
|
|
72
|
+
module types { export SwiftWASILibc.Darwin }
|
|
73
|
+
}
|
|
74
|
+
module netinet {
|
|
75
|
+
export SwiftWASILibc.Darwin
|
|
76
|
+
module in { export SwiftWASILibc.Darwin }
|
|
77
|
+
module tcp { export SwiftWASILibc.Darwin }
|
|
78
|
+
}
|
|
79
|
+
module poll {
|
|
80
|
+
export SwiftWASILibc.Darwin
|
|
81
|
+
module sys_poll { export SwiftWASILibc.Darwin }
|
|
82
|
+
}
|
|
83
|
+
module pthread {
|
|
84
|
+
export SwiftWASILibc.Darwin
|
|
85
|
+
module spawn { export SwiftWASILibc.Darwin }
|
|
86
|
+
module spis { export SwiftWASILibc.Darwin }
|
|
87
|
+
module pthread { export SwiftWASILibc.Darwin }
|
|
88
|
+
}
|
|
89
|
+
module pwd { export SwiftWASILibc.Darwin }
|
|
90
|
+
module regex {
|
|
91
|
+
export SwiftWASILibc.Darwin
|
|
92
|
+
module xlocale { export SwiftWASILibc.Darwin }
|
|
93
|
+
}
|
|
94
|
+
module search { export SwiftWASILibc.Darwin }
|
|
95
|
+
module semaphore { export SwiftWASILibc.Darwin }
|
|
96
|
+
module spawn {
|
|
97
|
+
export SwiftWASILibc.Darwin
|
|
98
|
+
module sys_spawn { export SwiftWASILibc.Darwin }
|
|
99
|
+
}
|
|
100
|
+
module strings { export SwiftWASILibc.Darwin }
|
|
101
|
+
module sys {
|
|
102
|
+
export SwiftWASILibc.Darwin
|
|
103
|
+
module ipc { export SwiftWASILibc.Darwin }
|
|
104
|
+
module mman { export SwiftWASILibc.Darwin }
|
|
105
|
+
module msg { export SwiftWASILibc.Darwin }
|
|
106
|
+
module sem { export SwiftWASILibc.Darwin }
|
|
107
|
+
module shm { export SwiftWASILibc.Darwin }
|
|
108
|
+
module socket { export SwiftWASILibc.Darwin }
|
|
109
|
+
module stat { export SwiftWASILibc.Darwin }
|
|
110
|
+
module statvfs { export SwiftWASILibc.Darwin }
|
|
111
|
+
module time { export SwiftWASILibc.Darwin }
|
|
112
|
+
module times { export SwiftWASILibc.Darwin }
|
|
113
|
+
module types {
|
|
114
|
+
export SwiftWASILibc.Darwin
|
|
115
|
+
module _filesec_t { export SwiftWASILibc.Darwin }
|
|
116
|
+
module _fsid_t { export SwiftWASILibc.Darwin }
|
|
117
|
+
module _fsobj_id_t { export SwiftWASILibc.Darwin }
|
|
118
|
+
module _graftdmg_un { export SwiftWASILibc.Darwin }
|
|
119
|
+
module _guid_t { export SwiftWASILibc.Darwin }
|
|
120
|
+
module _iovec_t { export SwiftWASILibc.Darwin }
|
|
121
|
+
module _mount_t { export SwiftWASILibc.Darwin }
|
|
122
|
+
module _o_dsync { export SwiftWASILibc.Darwin }
|
|
123
|
+
module _o_sync { export SwiftWASILibc.Darwin }
|
|
124
|
+
module _os_inline { export SwiftWASILibc.Darwin }
|
|
125
|
+
module _s_ifmt { export SwiftWASILibc.Darwin }
|
|
126
|
+
module _sa_family_t { export SwiftWASILibc.Darwin }
|
|
127
|
+
module _socklen_t { export SwiftWASILibc.Darwin }
|
|
128
|
+
module _timeval32 { export SwiftWASILibc.Darwin }
|
|
129
|
+
module _timeval64 { export SwiftWASILibc.Darwin }
|
|
130
|
+
module _ucontext64 { export SwiftWASILibc.Darwin }
|
|
131
|
+
module _vnode_t { export SwiftWASILibc.Darwin }
|
|
132
|
+
}
|
|
133
|
+
module uio { export SwiftWASILibc.Darwin }
|
|
134
|
+
module un { export SwiftWASILibc.Darwin }
|
|
135
|
+
module utsname { export SwiftWASILibc.Darwin }
|
|
136
|
+
module vsock { export SwiftWASILibc.Darwin }
|
|
137
|
+
module xattr { export SwiftWASILibc.Darwin }
|
|
138
|
+
module resource { export SwiftWASILibc.Darwin }
|
|
139
|
+
module select { export SwiftWASILibc.Darwin }
|
|
140
|
+
module wait { export SwiftWASILibc.Darwin }
|
|
141
|
+
}
|
|
142
|
+
module syslog {
|
|
143
|
+
export SwiftWASILibc.Darwin
|
|
144
|
+
module sys_syslog { export SwiftWASILibc.Darwin }
|
|
145
|
+
}
|
|
146
|
+
module tar { export SwiftWASILibc.Darwin }
|
|
147
|
+
module termios {
|
|
148
|
+
export SwiftWASILibc.Darwin
|
|
149
|
+
module sys_termios { export SwiftWASILibc.Darwin }
|
|
150
|
+
}
|
|
151
|
+
module ulimit { export SwiftWASILibc.Darwin }
|
|
152
|
+
module utime { export SwiftWASILibc.Darwin }
|
|
153
|
+
module utmpx { export SwiftWASILibc.Darwin }
|
|
154
|
+
module wordexp { export SwiftWASILibc.Darwin }
|
|
155
|
+
module nl_types { export SwiftWASILibc.Darwin }
|
|
156
|
+
module sched { export SwiftWASILibc.Darwin }
|
|
157
|
+
module unistd { export SwiftWASILibc.Darwin }
|
|
158
|
+
}
|
|
159
|
+
module net {
|
|
160
|
+
export SwiftWASILibc.Darwin
|
|
161
|
+
module ethernet { export SwiftWASILibc.Darwin }
|
|
162
|
+
module if_var { export SwiftWASILibc.Darwin }
|
|
163
|
+
module if_var_status { export SwiftWASILibc.Darwin }
|
|
164
|
+
module net_kev { export SwiftWASILibc.Darwin }
|
|
165
|
+
module pfkeyv2 { export SwiftWASILibc.Darwin }
|
|
166
|
+
}
|
|
167
|
+
module netinet {
|
|
168
|
+
export SwiftWASILibc.Darwin
|
|
169
|
+
module icmp6 { export SwiftWASILibc.Darwin }
|
|
170
|
+
module in_pcb { export SwiftWASILibc.Darwin }
|
|
171
|
+
module in_systm { export SwiftWASILibc.Darwin }
|
|
172
|
+
module ip { export SwiftWASILibc.Darwin }
|
|
173
|
+
module ip6 { export SwiftWASILibc.Darwin }
|
|
174
|
+
module ip_icmp { export SwiftWASILibc.Darwin }
|
|
175
|
+
module tcp_timer { export SwiftWASILibc.Darwin }
|
|
176
|
+
module tcp_var { export SwiftWASILibc.Darwin }
|
|
177
|
+
module udp { export SwiftWASILibc.Darwin }
|
|
178
|
+
}
|
|
179
|
+
module bank {
|
|
180
|
+
export SwiftWASILibc.Darwin
|
|
181
|
+
module bank_types { export SwiftWASILibc.Darwin }
|
|
182
|
+
}
|
|
183
|
+
module bitstring { export SwiftWASILibc.Darwin }
|
|
184
|
+
module ConditionalMacros { export SwiftWASILibc.Darwin }
|
|
185
|
+
module crt_externs { export SwiftWASILibc.Darwin }
|
|
186
|
+
module fts { export SwiftWASILibc.Darwin }
|
|
187
|
+
module getopt { export SwiftWASILibc.Darwin }
|
|
188
|
+
module AssertMacros { export SwiftWASILibc.Darwin }
|
|
189
|
+
module MacTypes { export SwiftWASILibc.Darwin }
|
|
190
|
+
module Mach {
|
|
191
|
+
export SwiftWASILibc.Darwin
|
|
192
|
+
module audit_triggers_types { export SwiftWASILibc.Darwin }
|
|
193
|
+
module boolean { export SwiftWASILibc.Darwin }
|
|
194
|
+
module bootstrap { export SwiftWASILibc.Darwin }
|
|
195
|
+
module clock { export SwiftWASILibc.Darwin }
|
|
196
|
+
module clock_priv { export SwiftWASILibc.Darwin }
|
|
197
|
+
module clock_reply { export SwiftWASILibc.Darwin }
|
|
198
|
+
module clock_types { export SwiftWASILibc.Darwin }
|
|
199
|
+
module dyld_kernel { export SwiftWASILibc.Darwin }
|
|
200
|
+
module error { export SwiftWASILibc.Darwin }
|
|
201
|
+
module exc { export SwiftWASILibc.Darwin }
|
|
202
|
+
module exception { export SwiftWASILibc.Darwin }
|
|
203
|
+
module exception_types { export SwiftWASILibc.Darwin }
|
|
204
|
+
module host_info { export SwiftWASILibc.Darwin }
|
|
205
|
+
module host_notify { export SwiftWASILibc.Darwin }
|
|
206
|
+
module host_priv { export SwiftWASILibc.Darwin }
|
|
207
|
+
module host_reboot { export SwiftWASILibc.Darwin }
|
|
208
|
+
module host_security { export SwiftWASILibc.Darwin }
|
|
209
|
+
module host_special_ports { export SwiftWASILibc.Darwin }
|
|
210
|
+
module hv { export SwiftWASILibc.Darwin }
|
|
211
|
+
module kern_return { export SwiftWASILibc.Darwin }
|
|
212
|
+
module kmod { export SwiftWASILibc.Darwin }
|
|
213
|
+
module mach_error { export SwiftWASILibc.Darwin }
|
|
214
|
+
module mach_host { export SwiftWASILibc.Darwin }
|
|
215
|
+
module mach_init { export SwiftWASILibc.Darwin }
|
|
216
|
+
module mach_interface { export SwiftWASILibc.Darwin }
|
|
217
|
+
module mach_param { export SwiftWASILibc.Darwin }
|
|
218
|
+
module mach_port { export SwiftWASILibc.Darwin }
|
|
219
|
+
module mach_right { export SwiftWASILibc.Darwin }
|
|
220
|
+
module mach_syscalls { export SwiftWASILibc.Darwin }
|
|
221
|
+
module mach_time { export SwiftWASILibc.Darwin }
|
|
222
|
+
module mach_traps { export SwiftWASILibc.Darwin }
|
|
223
|
+
module mach_types { export SwiftWASILibc.Darwin }
|
|
224
|
+
module mach_voucher { export SwiftWASILibc.Darwin }
|
|
225
|
+
module mach_voucher_types { export SwiftWASILibc.Darwin }
|
|
226
|
+
module memory_entry { export SwiftWASILibc.Darwin }
|
|
227
|
+
module memory_object_types { export SwiftWASILibc.Darwin }
|
|
228
|
+
module message { export SwiftWASILibc.Darwin }
|
|
229
|
+
module mig { export SwiftWASILibc.Darwin }
|
|
230
|
+
module mig_errors { export SwiftWASILibc.Darwin }
|
|
231
|
+
module mig_strncpy_zerofill_support { export SwiftWASILibc.Darwin }
|
|
232
|
+
module mig_voucher_support { export SwiftWASILibc.Darwin }
|
|
233
|
+
module ndr { export SwiftWASILibc.Darwin }
|
|
234
|
+
module notify { export SwiftWASILibc.Darwin }
|
|
235
|
+
module policy { export SwiftWASILibc.Darwin }
|
|
236
|
+
module port { export SwiftWASILibc.Darwin }
|
|
237
|
+
module port_obj { export SwiftWASILibc.Darwin }
|
|
238
|
+
module processor { export SwiftWASILibc.Darwin }
|
|
239
|
+
module processor_info { export SwiftWASILibc.Darwin }
|
|
240
|
+
module processor_set { export SwiftWASILibc.Darwin }
|
|
241
|
+
module rpc { export SwiftWASILibc.Darwin }
|
|
242
|
+
module semaphore { export SwiftWASILibc.Darwin }
|
|
243
|
+
module std_types { export SwiftWASILibc.Darwin }
|
|
244
|
+
module sync { export SwiftWASILibc.Darwin }
|
|
245
|
+
module sync_policy { export SwiftWASILibc.Darwin }
|
|
246
|
+
module task { export SwiftWASILibc.Darwin }
|
|
247
|
+
module task_info { export SwiftWASILibc.Darwin }
|
|
248
|
+
module task_inspect { export SwiftWASILibc.Darwin }
|
|
249
|
+
module task_policy { export SwiftWASILibc.Darwin }
|
|
250
|
+
module task_special_ports { export SwiftWASILibc.Darwin }
|
|
251
|
+
module thread_act { export SwiftWASILibc.Darwin }
|
|
252
|
+
module thread_info { export SwiftWASILibc.Darwin }
|
|
253
|
+
module thread_policy { export SwiftWASILibc.Darwin }
|
|
254
|
+
module thread_special_ports { export SwiftWASILibc.Darwin }
|
|
255
|
+
module thread_state { export SwiftWASILibc.Darwin }
|
|
256
|
+
module thread_status { export SwiftWASILibc.Darwin }
|
|
257
|
+
module thread_switch { export SwiftWASILibc.Darwin }
|
|
258
|
+
module time_value { export SwiftWASILibc.Darwin }
|
|
259
|
+
module vm_attributes { export SwiftWASILibc.Darwin }
|
|
260
|
+
module vm_behavior { export SwiftWASILibc.Darwin }
|
|
261
|
+
module vm_inherit { export SwiftWASILibc.Darwin }
|
|
262
|
+
module vm_map { export SwiftWASILibc.Darwin }
|
|
263
|
+
module vm_page_size { export SwiftWASILibc.Darwin }
|
|
264
|
+
module vm_param { export SwiftWASILibc.Darwin }
|
|
265
|
+
module vm_prot { export SwiftWASILibc.Darwin }
|
|
266
|
+
module vm_purgable { export SwiftWASILibc.Darwin }
|
|
267
|
+
module vm_region { export SwiftWASILibc.Darwin }
|
|
268
|
+
module vm_statistics { export SwiftWASILibc.Darwin }
|
|
269
|
+
module vm_sync { export SwiftWASILibc.Darwin }
|
|
270
|
+
module vm_task { export SwiftWASILibc.Darwin }
|
|
271
|
+
module vm_types { export SwiftWASILibc.Darwin }
|
|
272
|
+
module machine {
|
|
273
|
+
export SwiftWASILibc.Darwin
|
|
274
|
+
module asm {
|
|
275
|
+
export SwiftWASILibc.Darwin
|
|
276
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
277
|
+
module arm64 { export SwiftWASILibc.Darwin }
|
|
278
|
+
}
|
|
279
|
+
module boolean {
|
|
280
|
+
export SwiftWASILibc.Darwin
|
|
281
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
282
|
+
}
|
|
283
|
+
module exception {
|
|
284
|
+
export SwiftWASILibc.Darwin
|
|
285
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
286
|
+
}
|
|
287
|
+
module kern_return {
|
|
288
|
+
export SwiftWASILibc.Darwin
|
|
289
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
290
|
+
}
|
|
291
|
+
module ndr_def { export SwiftWASILibc.Darwin }
|
|
292
|
+
module processor_info {
|
|
293
|
+
export SwiftWASILibc.Darwin
|
|
294
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
295
|
+
}
|
|
296
|
+
module rpc {
|
|
297
|
+
export SwiftWASILibc.Darwin
|
|
298
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
299
|
+
}
|
|
300
|
+
module thread_state {
|
|
301
|
+
export SwiftWASILibc.Darwin
|
|
302
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
303
|
+
}
|
|
304
|
+
module thread_status {
|
|
305
|
+
export SwiftWASILibc.Darwin
|
|
306
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
307
|
+
}
|
|
308
|
+
module traps {
|
|
309
|
+
export SwiftWASILibc.Darwin
|
|
310
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
311
|
+
}
|
|
312
|
+
module vm_param {
|
|
313
|
+
export SwiftWASILibc.Darwin
|
|
314
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
315
|
+
}
|
|
316
|
+
module vm_types {
|
|
317
|
+
export SwiftWASILibc.Darwin
|
|
318
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
module debug { export SwiftWASILibc.Darwin }
|
|
322
|
+
}
|
|
323
|
+
module device {
|
|
324
|
+
export SwiftWASILibc.Darwin
|
|
325
|
+
module device_types { export SwiftWASILibc.Darwin }
|
|
326
|
+
}
|
|
327
|
+
module libkern {
|
|
328
|
+
export SwiftWASILibc.Darwin
|
|
329
|
+
module OSAtomic { export SwiftWASILibc.Darwin }
|
|
330
|
+
module OSAtomicDeprecated { export SwiftWASILibc.Darwin }
|
|
331
|
+
module OSSpinLockDeprecated { export SwiftWASILibc.Darwin }
|
|
332
|
+
module OSAtomicQueue { export SwiftWASILibc.Darwin }
|
|
333
|
+
module OSByteOrder {
|
|
334
|
+
export SwiftWASILibc.Darwin
|
|
335
|
+
module machine_OSByteOrder {
|
|
336
|
+
export SwiftWASILibc.Darwin
|
|
337
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
module os {
|
|
342
|
+
export SwiftWASILibc.Darwin
|
|
343
|
+
module arch {
|
|
344
|
+
export SwiftWASILibc.Darwin
|
|
345
|
+
module arm64 { export SwiftWASILibc.Darwin }
|
|
346
|
+
}
|
|
347
|
+
module base { export SwiftWASILibc.Darwin }
|
|
348
|
+
module clock { export SwiftWASILibc.Darwin }
|
|
349
|
+
module lock { export SwiftWASILibc.Darwin }
|
|
350
|
+
module lockdown_mode { export SwiftWASILibc.Darwin }
|
|
351
|
+
module proc { export SwiftWASILibc.Darwin }
|
|
352
|
+
module security_config { export SwiftWASILibc.Darwin }
|
|
353
|
+
}
|
|
354
|
+
module malloc {
|
|
355
|
+
export SwiftWASILibc.Darwin
|
|
356
|
+
module _platform { export SwiftWASILibc.Darwin }
|
|
357
|
+
}
|
|
358
|
+
module machine {
|
|
359
|
+
export SwiftWASILibc.Darwin
|
|
360
|
+
module _param {
|
|
361
|
+
export SwiftWASILibc.Darwin
|
|
362
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
363
|
+
}
|
|
364
|
+
module arch {
|
|
365
|
+
export SwiftWASILibc.Darwin
|
|
366
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
367
|
+
}
|
|
368
|
+
module param {
|
|
369
|
+
export SwiftWASILibc.Darwin
|
|
370
|
+
module arm { export SwiftWASILibc.Darwin }
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
module block { export SwiftWASILibc.Darwin }
|
|
374
|
+
module bsm {
|
|
375
|
+
export SwiftWASILibc.Darwin
|
|
376
|
+
module audit { export SwiftWASILibc.Darwin }
|
|
377
|
+
}
|
|
378
|
+
module execinfo { export SwiftWASILibc.Darwin }
|
|
379
|
+
module fstab { export SwiftWASILibc.Darwin }
|
|
380
|
+
module membership { export SwiftWASILibc.Darwin }
|
|
381
|
+
module netinet6 {
|
|
382
|
+
export SwiftWASILibc.Darwin
|
|
383
|
+
module ipsec { export SwiftWASILibc.Darwin }
|
|
384
|
+
module scope6_var { export SwiftWASILibc.Darwin }
|
|
385
|
+
}
|
|
386
|
+
module ntsid { export SwiftWASILibc.Darwin }
|
|
387
|
+
module sys {
|
|
388
|
+
export SwiftWASILibc.Darwin
|
|
389
|
+
module _structs { export SwiftWASILibc.Darwin }
|
|
390
|
+
module acl { export SwiftWASILibc.Darwin }
|
|
391
|
+
module attr { export SwiftWASILibc.Darwin }
|
|
392
|
+
module clonefile { export SwiftWASILibc.Darwin }
|
|
393
|
+
module commpage { export SwiftWASILibc.Darwin }
|
|
394
|
+
module constrained_ctypes { export SwiftWASILibc.Darwin }
|
|
395
|
+
module event { export SwiftWASILibc.Darwin }
|
|
396
|
+
module file { export SwiftWASILibc.Darwin }
|
|
397
|
+
module fileport { export SwiftWASILibc.Darwin }
|
|
398
|
+
module filio { export SwiftWASILibc.Darwin }
|
|
399
|
+
module fsgetpath { export SwiftWASILibc.Darwin }
|
|
400
|
+
module ioccom { export SwiftWASILibc.Darwin }
|
|
401
|
+
module kauth { export SwiftWASILibc.Darwin }
|
|
402
|
+
module kdebug { export SwiftWASILibc.Darwin }
|
|
403
|
+
module lctx { export SwiftWASILibc.Darwin }
|
|
404
|
+
module lock { export SwiftWASILibc.Darwin }
|
|
405
|
+
module mount { export SwiftWASILibc.Darwin }
|
|
406
|
+
module param { export SwiftWASILibc.Darwin }
|
|
407
|
+
module paths { export SwiftWASILibc.Darwin }
|
|
408
|
+
module proc { export SwiftWASILibc.Darwin }
|
|
409
|
+
module queue { export SwiftWASILibc.Darwin }
|
|
410
|
+
module quota { export SwiftWASILibc.Darwin }
|
|
411
|
+
module rbtree { export SwiftWASILibc.Darwin }
|
|
412
|
+
module semaphore { export SwiftWASILibc.Darwin }
|
|
413
|
+
module socketvar { export SwiftWASILibc.Darwin }
|
|
414
|
+
module sockio { export SwiftWASILibc.Darwin }
|
|
415
|
+
module syscall { export SwiftWASILibc.Darwin }
|
|
416
|
+
module sysctl { export SwiftWASILibc.Darwin }
|
|
417
|
+
module timeb { export SwiftWASILibc.Darwin }
|
|
418
|
+
module ttycom { export SwiftWASILibc.Darwin }
|
|
419
|
+
module ttydefaults { export SwiftWASILibc.Darwin }
|
|
420
|
+
module ucontext { export SwiftWASILibc.Darwin }
|
|
421
|
+
module ucred { export SwiftWASILibc.Darwin }
|
|
422
|
+
module vm { export SwiftWASILibc.Darwin }
|
|
423
|
+
module signal { export SwiftWASILibc.Darwin }
|
|
424
|
+
}
|
|
425
|
+
module sysdir { export SwiftWASILibc.Darwin }
|
|
426
|
+
module uuid { export SwiftWASILibc.Darwin }
|
|
427
|
+
module architecture { export SwiftWASILibc.Darwin }
|
|
428
|
+
module paths { export SwiftWASILibc.Darwin }
|
|
429
|
+
module sysexits { export SwiftWASILibc.Darwin }
|
|
430
|
+
}
|
package/src/bridge-contract.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
SootSimAgentActionDetail,
|
|
14
14
|
SootSimCaptureFilter,
|
|
15
15
|
SootSimExternalAppLifecycleOptions,
|
|
16
|
+
SootSimRecorderBridge,
|
|
16
17
|
SootSimReplayTarget,
|
|
17
18
|
SootSimStorageResetStrategy,
|
|
18
19
|
SootSimTapRefusal,
|
|
@@ -47,6 +48,7 @@ export type BridgeCommandType =
|
|
|
47
48
|
| 'location'
|
|
48
49
|
| 'diagnostics'
|
|
49
50
|
| 'storageSnapshot'
|
|
51
|
+
| 'recorder'
|
|
50
52
|
|
|
51
53
|
// the bridge host answers these itself, before the engine's handleCommand ever
|
|
52
54
|
// sees them. they are not engine commands and the cloud plane does not route
|
|
@@ -67,6 +69,27 @@ export type WsBridgeCommand = Omit<WsCommand, 'id' | 'type'> & {
|
|
|
67
69
|
type: BridgeCommandType | BridgeHostCommandType
|
|
68
70
|
}
|
|
69
71
|
|
|
72
|
+
// the local-file capture steps of `peach record`, typed so a remote simulator can run them without string evaluation.
|
|
73
|
+
export type RecorderCommand =
|
|
74
|
+
| { method: 'available' }
|
|
75
|
+
| { method: 'hold'; durationMs: number }
|
|
76
|
+
| { method: 'start'; options: Parameters<SootSimRecorderBridge['start']>[0] }
|
|
77
|
+
| { method: 'stop' }
|
|
78
|
+
| {
|
|
79
|
+
method: 'startFrameCapture'
|
|
80
|
+
options: Parameters<SootSimRecorderBridge['startFrameCapture']>[0]
|
|
81
|
+
}
|
|
82
|
+
| {
|
|
83
|
+
method: 'getFrameCaptureResult'
|
|
84
|
+
requestId: number
|
|
85
|
+
options: Parameters<SootSimRecorderBridge['getFrameCaptureResult']>[1]
|
|
86
|
+
}
|
|
87
|
+
| { method: 'captureGif'; options: Parameters<SootSimRecorderBridge['captureGif']>[0] }
|
|
88
|
+
| {
|
|
89
|
+
method: 'getBlobBase64'
|
|
90
|
+
options: Parameters<SootSimRecorderBridge['getBlobBase64']>[0]
|
|
91
|
+
}
|
|
92
|
+
|
|
70
93
|
export interface WsCommand {
|
|
71
94
|
id: string | number
|
|
72
95
|
type: BridgeCommandType
|
|
@@ -134,6 +157,8 @@ export interface WsCommand {
|
|
|
134
157
|
// default result is share-safe; `includeCredentials` carries the signed-in
|
|
135
158
|
// session and belongs only to a send to the owner's own box.
|
|
136
159
|
storageSnapshotOptions?: { includeCredentials?: boolean }
|
|
160
|
+
// recorder — one local-file capture step
|
|
161
|
+
recorder?: RecorderCommand
|
|
137
162
|
}
|
|
138
163
|
|
|
139
164
|
// ---------------------------------------------------------------------------
|
package/src/cloud-contract.ts
CHANGED
|
@@ -103,7 +103,11 @@ export async function hashExpoSourceWorkspace(app: string, signal?: AbortSignal)
|
|
|
103
103
|
// copy actually holds those bytes, including files outside the native graph.
|
|
104
104
|
export async function verifyExpoWorkspaceCopy(app: string, work: string) {
|
|
105
105
|
const root = findWorkspaceRoot(app)
|
|
106
|
-
const excluded = await workspaceExclusion(
|
|
106
|
+
const excluded = await workspaceExclusion(
|
|
107
|
+
root,
|
|
108
|
+
true,
|
|
109
|
+
linkedPackageDirectories(root, app),
|
|
110
|
+
)
|
|
107
111
|
const walk = (directory: string) => {
|
|
108
112
|
for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
|
|
109
113
|
const file = path.join(directory, entry.name)
|
|
@@ -134,6 +138,20 @@ export async function verifyExpoWorkspaceCopy(app: string, work: string) {
|
|
|
134
138
|
walk(root)
|
|
135
139
|
}
|
|
136
140
|
|
|
141
|
+
function pnpmStoreArgs(root: string) {
|
|
142
|
+
const modules = path.join(root, 'node_modules', '.modules.yaml')
|
|
143
|
+
if (!fs.existsSync(modules)) return []
|
|
144
|
+
const store = /^storeDir: ["']?([^"'\n]+)["']?$/m.exec(fs.readFileSync(modules, 'utf8'))
|
|
145
|
+
return store ? ['--store-dir', store[1]!] : []
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function linkedPackageDirectories(root: string, app: string) {
|
|
149
|
+
const appRelative = path.relative(root, app)
|
|
150
|
+
return localPackageDirectories(root, app).filter(
|
|
151
|
+
(directory) => directory !== '' && directory !== appRelative,
|
|
152
|
+
)
|
|
153
|
+
}
|
|
154
|
+
|
|
137
155
|
// the local packages the app links, found through the installed workspace
|
|
138
156
|
// links. the prepare copies the whole repository, but only these directories,
|
|
139
157
|
// the repository root and its patches decide the pods, so an edit to an
|
|
@@ -191,7 +209,11 @@ async function hashWorkspaceInputs(
|
|
|
191
209
|
excluded: (relative: string) => boolean
|
|
192
210
|
}> {
|
|
193
211
|
const root = findWorkspaceRoot(app)
|
|
194
|
-
const excluded = await workspaceExclusion(
|
|
212
|
+
const excluded = await workspaceExclusion(
|
|
213
|
+
root,
|
|
214
|
+
sourceOnly,
|
|
215
|
+
linkedPackageDirectories(root, app),
|
|
216
|
+
)
|
|
195
217
|
const appRelative = path.relative(root, app)
|
|
196
218
|
const manifest = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'))
|
|
197
219
|
const hash = createHash('sha256')
|
|
@@ -607,7 +629,11 @@ export async function prepareInstalledExpoWorkspace(app: string, work: string) {
|
|
|
607
629
|
if (process.platform !== 'darwin')
|
|
608
630
|
throw new Error('Expo workspace production requires a Mac')
|
|
609
631
|
const root = findWorkspaceRoot(app)
|
|
610
|
-
const excluded = await workspaceExclusion(
|
|
632
|
+
const excluded = await workspaceExclusion(
|
|
633
|
+
root,
|
|
634
|
+
true,
|
|
635
|
+
linkedPackageDirectories(root, app),
|
|
636
|
+
)
|
|
611
637
|
const appRelative = path.relative(root, app)
|
|
612
638
|
if (fs.existsSync(work))
|
|
613
639
|
throw new Error(`prepared Expo workspace already exists: ${work}`)
|
|
@@ -769,6 +795,8 @@ async function prepareWorkspace(
|
|
|
769
795
|
'--frozen-lockfile',
|
|
770
796
|
'--filter',
|
|
771
797
|
`${appManifest.name}...`,
|
|
798
|
+
// the copied node_modules link into the store pnpm chose on the app's volume
|
|
799
|
+
...pnpmStoreArgs(root),
|
|
772
800
|
]
|
|
773
801
|
: manager === 'yarn' || manager.startsWith('yarn@')
|
|
774
802
|
? ['corepack', 'yarn', 'install', '--immutable']
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -2317,8 +2317,9 @@ async function compileExpoSwiftModulesTraced(
|
|
|
2317
2317
|
for (const line of combined.split('\n')) report(line)
|
|
2318
2318
|
// each isolated build recompiles every native dependency, so checking
|
|
2319
2319
|
// all namespaces costs one full build apiece. the combined diagnostic
|
|
2320
|
-
// names failing namespaces by build copy
|
|
2321
|
-
//
|
|
2320
|
+
// names failing namespaces by build copy, app source or a module Peach
|
|
2321
|
+
// lacks that they import: link the rest once and
|
|
2322
|
+
// isolate only those, or every namespace when that link fails.
|
|
2322
2323
|
const errorFiles = combined.match(/^.+?(?=:\d+(?::\d+)?: error:)/gm) ?? []
|
|
2323
2324
|
// a native unit compiles from its group copy, which the error or the
|
|
2324
2325
|
// include chain above it names; the unit holds it as Sources/<target>/<path>.
|
|
@@ -2327,12 +2328,21 @@ async function compileExpoSwiftModulesTraced(
|
|
|
2327
2328
|
/PeachNativeSources\/([^/]+?)(?:Native|Swift)Implementation_[0-9a-f]+\/([^:\s]+)/g,
|
|
2328
2329
|
),
|
|
2329
2330
|
].map(([, target, file]) => `Sources/${target}/${file}`)
|
|
2330
|
-
const
|
|
2331
|
-
|
|
2332
|
-
(
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2331
|
+
const missing = new Set(
|
|
2332
|
+
linkError instanceof SwiftMissingModulesError
|
|
2333
|
+
? [...combined.matchAll(/^ (\S+)/gm)].map((match) => match[1])
|
|
2334
|
+
: [],
|
|
2335
|
+
)
|
|
2336
|
+
const named = candidates.filter(
|
|
2337
|
+
(unit) =>
|
|
2338
|
+
[...Object.keys(unit.files), ...expoUnitAppPaths(unit)].some(
|
|
2339
|
+
(name) =>
|
|
2340
|
+
nativeCopies.includes(name) ||
|
|
2341
|
+
errorFiles.some((file) => file === name || file.endsWith(`/${name}`)),
|
|
2342
|
+
) ||
|
|
2343
|
+
Object.values(unit.files).some((source) =>
|
|
2344
|
+
swiftImportNames(source).some((name) => missing.has(name)),
|
|
2345
|
+
),
|
|
2336
2346
|
)
|
|
2337
2347
|
let checked = candidates
|
|
2338
2348
|
linked = []
|
|
@@ -7,7 +7,13 @@ import ignore from 'ignore'
|
|
|
7
7
|
// eas build archives a repository without its gitignored paths, so the prepare
|
|
8
8
|
// neither copies nor hashes them: files a dev server generates into an ignored
|
|
9
9
|
// directory never invalidate the prepared workspace.
|
|
10
|
-
|
|
10
|
+
// a linked local package ships through its build output, which its gitignore hides,
|
|
11
|
+
// so those packages keep their ignored files.
|
|
12
|
+
export async function workspaceExclusion(
|
|
13
|
+
root: string,
|
|
14
|
+
portable = false,
|
|
15
|
+
linkedPackages: string[] = [],
|
|
16
|
+
) {
|
|
11
17
|
const listed = await promisify(execFile)(
|
|
12
18
|
'git',
|
|
13
19
|
['ls-files', '-z', '--others', '--ignored', '--exclude-standard', '--directory'],
|
|
@@ -31,6 +37,14 @@ export async function workspaceExclusion(root: string, portable = false) {
|
|
|
31
37
|
const ignoreFiles = new Map<string, ReturnType<typeof ignore>>()
|
|
32
38
|
return (relative: string) => {
|
|
33
39
|
const parts = relative.split(path.sep)
|
|
40
|
+
const linked = linkedPackages.some((directory) =>
|
|
41
|
+
relative.startsWith(directory + path.sep),
|
|
42
|
+
)
|
|
43
|
+
if (linked) {
|
|
44
|
+
return ['node_modules', '.git', '.expo', '.one'].some((name) =>
|
|
45
|
+
parts.includes(name),
|
|
46
|
+
)
|
|
47
|
+
}
|
|
34
48
|
if (portable && relative) {
|
|
35
49
|
let excluded = false
|
|
36
50
|
const isDirectory = fs.lstatSync(path.join(root, relative)).isDirectory()
|