@solidnative-dev/cli 0.0.0-stage → 0.1.0-beta.0

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.
Files changed (184) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +841 -2
  3. package/dist/android-apk-signing.d.ts +36 -0
  4. package/dist/android-apk-signing.d.ts.map +1 -0
  5. package/dist/android-apk-signing.js +292 -0
  6. package/dist/android-apk-signing.js.map +1 -0
  7. package/dist/android-bundle-signing.d.ts +34 -0
  8. package/dist/android-bundle-signing.d.ts.map +1 -0
  9. package/dist/android-bundle-signing.js +167 -0
  10. package/dist/android-bundle-signing.js.map +1 -0
  11. package/dist/android-causal-debug.d.ts +38 -0
  12. package/dist/android-causal-debug.d.ts.map +1 -0
  13. package/dist/android-causal-debug.js +239 -0
  14. package/dist/android-causal-debug.js.map +1 -0
  15. package/dist/android-device-proof.d.ts +58 -0
  16. package/dist/android-device-proof.d.ts.map +1 -0
  17. package/dist/android-device-proof.js +554 -0
  18. package/dist/android-device-proof.js.map +1 -0
  19. package/dist/android-logs.d.ts +50 -0
  20. package/dist/android-logs.d.ts.map +1 -0
  21. package/dist/android-logs.js +253 -0
  22. package/dist/android-logs.js.map +1 -0
  23. package/dist/android-release-signing.d.ts +12 -0
  24. package/dist/android-release-signing.d.ts.map +1 -0
  25. package/dist/android-release-signing.js +165 -0
  26. package/dist/android-release-signing.js.map +1 -0
  27. package/dist/android-run-lease.d.ts +15 -0
  28. package/dist/android-run-lease.d.ts.map +1 -0
  29. package/dist/android-run-lease.js +333 -0
  30. package/dist/android-run-lease.js.map +1 -0
  31. package/dist/android-run-preflight.d.ts +45 -0
  32. package/dist/android-run-preflight.d.ts.map +1 -0
  33. package/dist/android-run-preflight.js +183 -0
  34. package/dist/android-run-preflight.js.map +1 -0
  35. package/dist/android-signing-shared.d.ts +38 -0
  36. package/dist/android-signing-shared.d.ts.map +1 -0
  37. package/dist/android-signing-shared.js +210 -0
  38. package/dist/android-signing-shared.js.map +1 -0
  39. package/dist/bin.d.ts +3 -0
  40. package/dist/bin.d.ts.map +1 -0
  41. package/dist/bin.js +4530 -0
  42. package/dist/bin.js.map +1 -0
  43. package/dist/bundle-artifacts.d.ts +48 -0
  44. package/dist/bundle-artifacts.d.ts.map +1 -0
  45. package/dist/bundle-artifacts.js +427 -0
  46. package/dist/bundle-artifacts.js.map +1 -0
  47. package/dist/causal-debug-compare.d.ts +81 -0
  48. package/dist/causal-debug-compare.d.ts.map +1 -0
  49. package/dist/causal-debug-compare.js +238 -0
  50. package/dist/causal-debug-compare.js.map +1 -0
  51. package/dist/causal-debug-report.d.ts +33 -0
  52. package/dist/causal-debug-report.d.ts.map +1 -0
  53. package/dist/causal-debug-report.js +979 -0
  54. package/dist/causal-debug-report.js.map +1 -0
  55. package/dist/causal-debug-watch.d.ts +33 -0
  56. package/dist/causal-debug-watch.d.ts.map +1 -0
  57. package/dist/causal-debug-watch.js +92 -0
  58. package/dist/causal-debug-watch.js.map +1 -0
  59. package/dist/causal-debug.d.ts +131 -0
  60. package/dist/causal-debug.d.ts.map +1 -0
  61. package/dist/causal-debug.js +503 -0
  62. package/dist/causal-debug.js.map +1 -0
  63. package/dist/compatibility-catalog.d.ts +88 -0
  64. package/dist/compatibility-catalog.d.ts.map +1 -0
  65. package/dist/compatibility-catalog.js +344 -0
  66. package/dist/compatibility-catalog.js.map +1 -0
  67. package/dist/deep-link.d.ts +90 -0
  68. package/dist/deep-link.d.ts.map +1 -0
  69. package/dist/deep-link.js +346 -0
  70. package/dist/deep-link.js.map +1 -0
  71. package/dist/device-proof-signatures.d.ts +307 -0
  72. package/dist/device-proof-signatures.d.ts.map +1 -0
  73. package/dist/device-proof-signatures.js +1024 -0
  74. package/dist/device-proof-signatures.js.map +1 -0
  75. package/dist/fingerprint.d.ts +35 -0
  76. package/dist/fingerprint.d.ts.map +1 -0
  77. package/dist/fingerprint.js +454 -0
  78. package/dist/fingerprint.js.map +1 -0
  79. package/dist/index.d.ts +388 -0
  80. package/dist/index.d.ts.map +1 -0
  81. package/dist/index.js +2996 -0
  82. package/dist/index.js.map +1 -0
  83. package/dist/ios-causal-debug.d.ts +39 -0
  84. package/dist/ios-causal-debug.d.ts.map +1 -0
  85. package/dist/ios-causal-debug.js +318 -0
  86. package/dist/ios-causal-debug.js.map +1 -0
  87. package/dist/ios-logs.d.ts +58 -0
  88. package/dist/ios-logs.d.ts.map +1 -0
  89. package/dist/ios-logs.js +269 -0
  90. package/dist/ios-logs.js.map +1 -0
  91. package/dist/ios-process.d.ts +69 -0
  92. package/dist/ios-process.d.ts.map +1 -0
  93. package/dist/ios-process.js +389 -0
  94. package/dist/ios-process.js.map +1 -0
  95. package/dist/ios-run-preflight.d.ts +35 -0
  96. package/dist/ios-run-preflight.d.ts.map +1 -0
  97. package/dist/ios-run-preflight.js +172 -0
  98. package/dist/ios-run-preflight.js.map +1 -0
  99. package/dist/live-causal-debug-report.d.ts +49 -0
  100. package/dist/live-causal-debug-report.d.ts.map +1 -0
  101. package/dist/live-causal-debug-report.js +123 -0
  102. package/dist/live-causal-debug-report.js.map +1 -0
  103. package/dist/local-symbolication.d.ts +35 -0
  104. package/dist/local-symbolication.d.ts.map +1 -0
  105. package/dist/local-symbolication.js +89 -0
  106. package/dist/local-symbolication.js.map +1 -0
  107. package/dist/native-archive.d.ts +15 -0
  108. package/dist/native-archive.d.ts.map +1 -0
  109. package/dist/native-archive.js +441 -0
  110. package/dist/native-archive.js.map +1 -0
  111. package/dist/native-test.d.ts +43 -0
  112. package/dist/native-test.d.ts.map +1 -0
  113. package/dist/native-test.js +209 -0
  114. package/dist/native-test.js.map +1 -0
  115. package/dist/package-add.d.ts +56 -0
  116. package/dist/package-add.d.ts.map +1 -0
  117. package/dist/package-add.js +764 -0
  118. package/dist/package-add.js.map +1 -0
  119. package/dist/react-native-upgrade.d.ts +96 -0
  120. package/dist/react-native-upgrade.d.ts.map +1 -0
  121. package/dist/react-native-upgrade.js +882 -0
  122. package/dist/react-native-upgrade.js.map +1 -0
  123. package/dist/release-device-correlation.d.ts +40 -0
  124. package/dist/release-device-correlation.d.ts.map +1 -0
  125. package/dist/release-device-correlation.js +113 -0
  126. package/dist/release-device-correlation.js.map +1 -0
  127. package/dist/release-signatures.d.ts +168 -0
  128. package/dist/release-signatures.d.ts.map +1 -0
  129. package/dist/release-signatures.js +677 -0
  130. package/dist/release-signatures.js.map +1 -0
  131. package/dist/release.d.ts +88 -0
  132. package/dist/release.d.ts.map +1 -0
  133. package/dist/release.js +771 -0
  134. package/dist/release.js.map +1 -0
  135. package/dist/signature-utilities.d.ts +16 -0
  136. package/dist/signature-utilities.d.ts.map +1 -0
  137. package/dist/signature-utilities.js +114 -0
  138. package/dist/signature-utilities.js.map +1 -0
  139. package/dist/solid-diagnostics-correlation.d.ts +11 -0
  140. package/dist/solid-diagnostics-correlation.d.ts.map +1 -0
  141. package/dist/solid-diagnostics-correlation.js +78 -0
  142. package/dist/solid-diagnostics-correlation.js.map +1 -0
  143. package/dist/solid-diagnostics-debug.d.ts +15 -0
  144. package/dist/solid-diagnostics-debug.d.ts.map +1 -0
  145. package/dist/solid-diagnostics-debug.js +93 -0
  146. package/dist/solid-diagnostics-debug.js.map +1 -0
  147. package/dist/solid-diagnostics-inspection.d.ts +41 -0
  148. package/dist/solid-diagnostics-inspection.d.ts.map +1 -0
  149. package/dist/solid-diagnostics-inspection.js +196 -0
  150. package/dist/solid-diagnostics-inspection.js.map +1 -0
  151. package/dist/source-map.d.ts +36 -0
  152. package/dist/source-map.d.ts.map +1 -0
  153. package/dist/source-map.js +488 -0
  154. package/dist/source-map.js.map +1 -0
  155. package/dist/stack-symbolication.d.ts +56 -0
  156. package/dist/stack-symbolication.d.ts.map +1 -0
  157. package/dist/stack-symbolication.js +310 -0
  158. package/dist/stack-symbolication.js.map +1 -0
  159. package/dist/symbolication.d.ts +27 -0
  160. package/dist/symbolication.d.ts.map +1 -0
  161. package/dist/symbolication.js +75 -0
  162. package/dist/symbolication.js.map +1 -0
  163. package/dist/tree-debug.d.ts +53 -0
  164. package/dist/tree-debug.d.ts.map +1 -0
  165. package/dist/tree-debug.js +283 -0
  166. package/dist/tree-debug.js.map +1 -0
  167. package/dist/versions.d.ts +13 -0
  168. package/dist/versions.d.ts.map +1 -0
  169. package/dist/versions.js +14 -0
  170. package/dist/versions.js.map +1 -0
  171. package/package.json +46 -3
  172. package/templates/react-native-0.88/README.md +328 -0
  173. package/templates/react-native-0.88/android/CMakeLists.txt +27 -0
  174. package/templates/react-native-0.88/android/MainActivity.kt +123 -0
  175. package/templates/react-native-0.88/android/MainApplication.kt +43 -0
  176. package/templates/react-native-0.88/android/OnLoad.cpp +60 -0
  177. package/templates/react-native-0.88/index.js +1 -0
  178. package/templates/react-native-0.88/ios/AppDelegate.swift +190 -0
  179. package/templates/react-native-0.88/metro.config.js +16 -0
  180. package/templates/react-native-0.88/specs/NativeSolidNativeDebug.ts +16 -0
  181. package/templates/react-native-0.88/specs/NativeSolidNativePlatformAndroid.ts +14 -0
  182. package/templates/react-native-0.88/src/App.tsx +161 -0
  183. package/templates/react-native-0.88/src/main.tsx +88 -0
  184. package/templates/react-native-0.88/test/App.test.tsx +152 -0
package/README.md CHANGED
@@ -1,3 +1,842 @@
1
- # Temporary Holding Version
1
+ # `@solidnative-dev/cli`
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Local development CLI for project creation, native generation,
4
+ autolinking/codegen, running, diagnostics, testing, builds, and upgrades. The
5
+ implemented commands include a fail-closed project scaffold, a read-only
6
+ environment/project diagnostic, and a transparent local device runner:
7
+
8
+ ```sh
9
+ solid-native create MyApp --package-name dev.example.myapp --title "My App"
10
+ solid-native add navigation
11
+ solid-native build ios -- --scheme MyApp
12
+ solid-native build android -- --tasks bundleRelease
13
+ solid-native bundle ios -- --max-workers 4
14
+ solid-native bundle ios --hermes-source
15
+ solid-native bundle android --hermes-source
16
+ solid-native bundle sources android/app/build/generated/sourcemaps/react/release/index.android.bundle.map --require app:///src/index.tsx --forbid-containing /node_modules/react/
17
+ solid-native bundle verify ios/build/solid-native-bundle/solid-native-bundle.json
18
+ solid-native device status-ios dev.example.myapp --device CORE_DEVICE_ID
19
+ solid-native device stop-ios dev.example.myapp --device CORE_DEVICE_ID
20
+ solid-native device-proof --help
21
+ solid-native release --help
22
+ solid-native debug capture-android dev.example.myapp --serial DEVICE_SERIAL
23
+ solid-native debug capture-android dev.example.myapp --serial DEVICE_SERIAL | solid-native debug inspect -
24
+ solid-native debug capture-android dev.example.myapp --serial DEVICE_SERIAL | solid-native debug trace - > causal-trace.json
25
+ solid-native debug capture-ios dev.example.myapp --device CORE_DEVICE_ID | solid-native debug inspect -
26
+ solid-native debug capture-ios dev.example.myapp --device CORE_DEVICE_ID | solid-native debug trace - > causal-trace.json
27
+ solid-native debug diagnostics-android dev.example.myapp --serial DEVICE_SERIAL --duration 1000
28
+ solid-native debug diagnostics-ios dev.example.myapp --device CORE_DEVICE_ID --duration 1000
29
+ solid-native debug report-android dev.example.myapp --serial DEVICE_SERIAL --duration 1000 --output causal-report.html
30
+ solid-native debug report-ios dev.example.myapp --device CORE_DEVICE_ID --duration 1000 --output causal-report.html
31
+ solid-native debug diagnostics-inspect solid-diagnostics.json
32
+ solid-native debug correlate solid-diagnostics.json causal-timeline.json
33
+ solid-native debug watch-android dev.example.myapp --serial DEVICE_SERIAL
34
+ solid-native debug watch-ios dev.example.myapp --device CORE_DEVICE_ID --interval 2000 --count 10
35
+ solid-native debug watch-android dev.example.myapp --serial DEVICE_SERIAL --json > causal-inspections.ndjson
36
+ solid-native debug compare baseline.json candidate.json --max-p95-regression 20
37
+ solid-native debug compare baseline.json candidate.json --json
38
+ solid-native debug inspect causal-timeline.json --operation commit-42
39
+ device-snapshot-command | solid-native debug inspect - --operation commit-42
40
+ solid-native debug report causal-timeline.json --diagnostics solid-diagnostics.json --operation commit-42 --output causal-report.html
41
+ device-snapshot-command | solid-native debug report - --output causal-report.html
42
+ solid-native debug trace causal-timeline.json > causal-trace.json
43
+ device-snapshot-command | solid-native debug trace - > causal-trace.json
44
+ solid-native debug symbolicate main.jsbundle.map --at 427:19 --at 439:7
45
+ solid-native debug symbolicate main.jsbundle.map --stack device.stack
46
+ device-stack-command | solid-native debug symbolicate main.jsbundle.map --stack -
47
+ solid-native doctor
48
+ solid-native fingerprint --platform all --json
49
+ solid-native doctor --platform ios
50
+ solid-native doctor --platform android --json
51
+ solid-native doctor --platform android --strict
52
+ solid-native doctor --cwd path/to/application
53
+ solid-native generate --platform all
54
+ solid-native logs android dev.example.myapp --serial DEVICE_SERIAL
55
+ solid-native logs ios dev.example.myapp --device CORE_DEVICE_ID --restart
56
+ solid-native open android dev.example.myapp 'dev.example.myapp://settings' --serial DEVICE_SERIAL
57
+ solid-native open ios dev.example.myapp 'dev.example.myapp://settings' --device CORE_DEVICE_ID --cold
58
+ solid-native start -- --port 8081
59
+ solid-native test
60
+ solid-native test test/navigation.test.tsx
61
+ solid-native test --production
62
+ solid-native run ios -- --device CORE_DEVICE_ID --mode Release
63
+ solid-native run android -- --device DEVICE_SERIAL --mode release
64
+ solid-native upgrade react-native --cwd path/to/current-app --candidate path/to/installed-candidate
65
+ solid-native upgrade react-native --cwd path/to/current-app --candidate path/to/installed-candidate --json
66
+ ```
67
+
68
+ `create` delegates the base platform projects to the exact upstream React
69
+ Native 0.88 community template, always with dependency and CocoaPods
70
+ installation disabled. It validates the generated shape before changing any
71
+ file, then installs the package-owned iOS application, Android surface,
72
+ BindingsInstaller, app-level CMake/JNI entrypoint, OXC Metro worker, and a small
73
+ Solid starter whose typed graph drives a native UI-thread animation through the
74
+ application-facing ref API. The generated `ios` and `android` projects stay visible and
75
+ application-owned. JavaScript dependencies are installed only after the
76
+ manifest contains the complete Solid Native and pnpm 12 pins plus the verified
77
+ `react-native-safe-area-context` 5.8.1 native-component dependency. The latter
78
+ is consumed through Solid-owned core facades; its React wrapper is not part of
79
+ the generated root. `--skip-install` leaves that final step to the caller.
80
+ Existing targets are never replaced.
81
+ `--dry-run --json` emits the exact upstream command and target without creating
82
+ anything.
83
+ Successful creation keeps the upstream scaffold's React-oriented banner and
84
+ run instructions out of the Solid Native first-run output, then prints the
85
+ application-local doctor and Metro commands. Recent upstream output is retained
86
+ within a fixed bound and replayed when scaffolding fails, while the later
87
+ package installation remains visible as it runs. Creation rechecks that the
88
+ target is absent immediately before the upstream command and explicitly
89
+ disables upstream replacement. An upstream failure or rejected Solid Native
90
+ conversion removes only that newly created regular-directory scaffold so the
91
+ same command can be retried; an unexpected non-directory target fails closed,
92
+ and a converted project remains available when dependency installation alone
93
+ fails.
94
+
95
+ `add navigation` installs the CLI-matched `@solidnative-dev/navigation` release and
96
+ the exact verified `react-native-screens` backend. It copies the
97
+ content-addressed patch shipped by the navigation package into the
98
+ application, merges only its `pnpm-workspace.yaml` `patchedDependencies` entry, and reinstalls
99
+ so the patch is applied to native sources. A different application-owned patch,
100
+ dependency declaration, package identity, backend contract, digest, redirected
101
+ path, or concurrently changed manifest fails closed. Existing exact
102
+ declarations use an idempotent install path, which supports private registries,
103
+ local packed artifacts, and migrations. `--dry-run` is non-mutating and exposes
104
+ the complete plan; `--json` is available only with that mode. Success also
105
+ requires the final installed core, navigation, and screens identities plus every
106
+ reviewed patched native file to match the shipped contract. Other capability
107
+ recipes remain explicit future work rather than partially configured installs.
108
+
109
+ The generated app includes `test/App.test.tsx` and maps `pnpm test` to
110
+ `solid-native test`. The runner discovers conventional test/spec files beneath
111
+ `test/`, compiles TS and TSX through the shared Solid universal OXC pipeline,
112
+ and invokes Node's built-in test runner under the browser and development
113
+ export conditions. This makes Solid's structured diagnostics and attribution
114
+ available to application tests by default. Use `--production` for a separate
115
+ optimized-runtime semantics pass.
116
+ Use `pnpm test -- --watch` to rerun affected tests as imported files change, or
117
+ `pnpm test -- --test-name-pattern "counter"` to focus matching test names.
118
+ Explicit files or directories must remain inside the application. The plan is
119
+ inspectable with `--dry-run --json`, file count and module bytes are bounded,
120
+ and the subprocess receives the same interrupt-safe lifecycle as native build
121
+ commands. This deterministic host path does not claim Fabric, Yoga, OS UI, or
122
+ device performance coverage.
123
+
124
+ `doctor` discovers the nearest project from nested directories, validates
125
+ Node.js and the exact device-verified React Native backend, requires the Solid
126
+ Native core/runtime pair, and recognizes a package-manager pin inherited from a
127
+ monorepo root. For applications it also requires the exact Solid singleton and
128
+ React Native Codegen/Gradle/Hermes toolchain, the installed Solid OXC/Metro
129
+ worker, resolver, and safe full-reload policy, a Solid-owned runtime entrypoint,
130
+ and an ancestor pnpm lockfile. It also requires the application-local Hermes
131
+ compiler to match the exact compiler dependency of the installed React Native
132
+ package, executes `hermesc -version`, and rejects an unexpected release or HBC
133
+ format before a native build can produce a launch-time bytecode abort. Native
134
+ checks cover Fabric and Hermes configuration, the Gradle
135
+ wrapper, Android SDK, JDK, adb, Podfile, Xcode, and CocoaPods. The version-pinned
136
+ startup chain includes package-exported Gradle/pod integration, Android CMake
137
+ target configuration, JNI registration, Android `bindingsInstaller`, the
138
+ package-owned Android `SolidNativeSurface`, and the production iOS
139
+ `SolidNativeFabricApplication` empty-surface bootstrap. A declared dependency
140
+ without its compiler, JavaScript, or native wiring therefore fails instead of
141
+ producing a misleading green report.
142
+
143
+ The package check requires matching core/runtime declarations, matching
144
+ installed manifest versions, exact-declaration agreement, and the selected
145
+ platform's real package export (`./android-gradle` or `./ios-podspec`) with a
146
+ present in-package target. This catches stale or incomplete installs before
147
+ Gradle, CocoaPods, or Hermes sees them.
148
+
149
+ Human output includes a remediation beside every warning or failure. `--json`
150
+ emits the stable schema-versioned report for CI. The process exits 1 when a
151
+ required check fails and 2 for invalid command-line input; warnings do not make
152
+ an otherwise usable environment fail. Add `--strict` in release CI to exit 1
153
+ when either a warning or failure remains. Strict mode does not mutate the
154
+ report's stable `ok` meaning (`false` only for failed required checks), so JSON
155
+ consumers can distinguish policy failure from an unusable environment through
156
+ the summary counts.
157
+
158
+ Android commands preserve an explicit `JAVA_HOME`. When it is absent, `doctor`,
159
+ `run android`, and `build android` discover Android Studio's bundled JBR on the
160
+ current platform and use the same resolved JDK for validation and execution.
161
+ Dry-run plans print that environment default, so an otherwise hidden difference
162
+ from the shell's `java` is inspectable before Gradle starts.
163
+
164
+ `debug inspect` is the first concrete consumer of the local causal-debug
165
+ handoff. It reads at most 16 MiB of strict UTF-8 JSON, applies the observability
166
+ package's untrusted snapshot parser, and emits a path-free count/status report.
167
+ Its schema-one output also groups retained weakly connected operations, reports
168
+ entry/terminal and unresolved-cause IDs, and links a selected operation to its
169
+ group. The local group ID is the earliest retained operation ID: it may change
170
+ after eviction and is not a distributed trace ID.
171
+ `--operation ID` reconstructs the retained ancestors, descendants, and missing
172
+ cause IDs for one event, computation, commit, mount, or frame. Custom
173
+ application attributes are omitted from both text and JSON by default;
174
+ `--show-attributes` is an explicit local disclosure because validation cannot
175
+ decide whether application-authored attributes contain private data. The
176
+ command accepts a file or bounded stdin via `-`, performs no network request,
177
+ starts no server, and exits after consuming one snapshot.
178
+
179
+ `debug compare BASELINE CANDIDATE` applies that same bounded parser to two local
180
+ snapshots and emits a deterministic aggregate regression report. It compares
181
+ operation/status counts, unresolved causal edges, evictions, discarded records,
182
+ retained-group shape, and per-operation-kind successful p95 durations without
183
+ returning custom attributes. When operation-kind counts are identical, splitting
184
+ the candidate into more retained groups is a regression because it reveals a
185
+ lost causal edge that unresolved-ID counting cannot see. Extra groups stay
186
+ informational when the candidate added operations. Increased errors or graph
187
+ incompleteness exit with status 1.
188
+ Durations are always reported, but remain informational unless
189
+ `--max-p95-regression PERCENT` supplies an explicit CI threshold; `--json`
190
+ returns the frozen schema-zero comparison. Operation IDs need not be stable
191
+ between runs. The caller remains responsible for comparing equivalent
192
+ workloads, devices, and build/release identities—the command does not infer
193
+ semantic comparability from private operation attributes.
194
+
195
+ `debug capture-android PACKAGE --serial ID` supplies a concrete one-shot adb
196
+ channel for debuggable builds. It verifies `run-as`, binds each request to a
197
+ fresh nonce and the device's numeric Android user, reads only the matching
198
+ app-private cache response, validates it, removes it, and exits. The native
199
+ receiver is inactive in non-debuggable builds. Capture prints the raw snapshot,
200
+ including application-authored attributes, so pipe it to `inspect` or `trace`
201
+ for privacy-filtered output instead of retaining it casually.
202
+
203
+ `debug diagnostics-android PACKAGE --serial ID --duration MS` and
204
+ `debug diagnostics-ios BUNDLE --device ID --duration MS` reuse the app-private
205
+ nonce mailboxes to open and close one exclusive Solid diagnostics window in a
206
+ development bundle. The returned schema-zero artifact is capped at 1 MiB and
207
+ strictly validates diagnostic codes, bounded static computation names,
208
+ dependency changes, value-free cause chains, and aggregate costs. It does not
209
+ transport diagnostic messages/data, reactive values/previews, stacks, owner
210
+ IDs, raw nodes, props, text, or rendered content. A failed capture makes one
211
+ bounded, nonce-bound best-effort end request before preserving the primary
212
+ error. Production bundles resolve an inert controller and reject the request.
213
+ `debug diagnostics-inspect ARTIFACT|-` applies the same strict 1 MiB parser to
214
+ a saved file or stdin and prints diagnostic-code counts, rerun outcomes,
215
+ retained cause counts, aggregate cost totals, and the hottest bounded static
216
+ scope/write names. `--json` emits the path-free schema-zero inspection.
217
+
218
+ `debug correlate DIAGNOSTICS SNAPSHOT` validates both bounded artifacts and
219
+ joins named Solid effect reruns to `solid-native.computation` operations that
220
+ started in the same capture window. It then follows retained graph edges through
221
+ Fabric commits, native mounts, and next-frame observations. The schema-zero
222
+ result always reports `correlationMode: "static-name-and-capture-window"` and
223
+ `exactPerRerunJoin: false`: current Solid diagnostics expose static names and
224
+ aggregate reruns, but no token that can prove which individual rerun produced
225
+ which native commit. This makes the useful cross-layer evidence machine-readable
226
+ without turning timing proximity into a stronger claim. The command reads local
227
+ files only, performs no network request, and never adds values or custom causal
228
+ attributes to its output.
229
+
230
+ `debug report-android PACKAGE --serial ID` and
231
+ `debug report-ios BUNDLE --device ID` turn that complete workflow into one live
232
+ device command. They capture the timed Solid diagnostics artifact first, take
233
+ the later causal snapshot required to contain the window, validate and
234
+ correlate both, and emit the self-contained HTML debugger to stdout or a
235
+ private atomic `--output` path that is never overwritten.
236
+ The nonce-bound transports consume their device responses, and the workflow
237
+ does not need intermediate local JSON files. Application-authored causal
238
+ attributes remain excluded unless `--show-attributes` is explicit.
239
+
240
+ `debug capture-ios BUNDLE --device ID` provides the equivalent one-shot
241
+ CoreDevice channel. It sends a fresh nonce as a launch payload URL to the
242
+ explicit bundle and device, copies only that nonce's response from the app data
243
+ container, strictly validates the CoreDevice result and snapshot, then delivers
244
+ an acknowledgement that removes the response. The command requires a timeout
245
+ from 5,000 through 30,000 milliseconds because CoreDevice itself has a
246
+ five-second floor. Ordinary store Release builds ignore the private request;
247
+ no URL scheme, socket, resident relay, or hosted account is required.
248
+
249
+ `debug watch-android` and `debug watch-ios` turn those same one-shot transports
250
+ into a bounded live terminal view. Captures are sequential, each request keeps
251
+ the nonce validation and cleanup contract above, and the CLI retains no
252
+ snapshot history. The default interval is one second; `--interval`
253
+ accepts 100 through 30,000 milliseconds, `--count` provides a finite run, and
254
+ an unbounded run stops cleanly on SIGINT or SIGTERM. Transient device failures
255
+ are retried, but three consecutive failures stop the command unless
256
+ `--max-failures` selects another bound from 1 through 100. Human and NDJSON
257
+ output contain only the privacy-safe inspection, never custom snapshot
258
+ attributes. Every iOS iteration uses CoreDevice payload delivery and may
259
+ foreground the selected application. This is a polling development client,
260
+ not a background daemon, socket relay, or hosted session.
261
+
262
+ `debug report` turns the same validated snapshot into one self-contained
263
+ offline HTML debugger. It opens with a searchable group-first timing view,
264
+ switches to individual operations, preserves deep links for both views, and
265
+ navigates from a retained group into its entries, terminals, and operations.
266
+ The operation view retains direct cause/effect navigation, ancestor/descendant
267
+ counts, and explicit unresolved-cause warnings. The file
268
+ has no external assets or network permissions and locks its fixed script and
269
+ style bytes with a content security policy. Snapshot data is base64-encoded
270
+ before embedding so application text cannot become HTML or executable code.
271
+ Application-authored attributes are not embedded unless `--show-attributes` is
272
+ explicit. The complete report is capped at 32 MiB. It is written to stdout by
273
+ default; `--output` publishes it as a private atomic file without replacing an
274
+ existing artifact.
275
+ Passing `--diagnostics ARTIFACT` adds the same strictly parsed, value-free
276
+ correlation used by `debug correlate`. The report shows Solid rerun and complete
277
+ native-frame-chain counts, one card per named output, its bounded named causes,
278
+ and links into the exact retained frame operations. The UI states that the
279
+ association is static-name/window based and not an exact per-rerun join. Static
280
+ diagnostics names are included only under this explicit option; reactive values
281
+ and implicit custom causal attributes remain excluded.
282
+
283
+ `debug trace` applies that same strict parser and byte cap, then emits a
284
+ deterministic Chrome JSON event array that can be opened directly in Perfetto.
285
+ Completed operations are duration slices; active operations extend to the
286
+ snapshot capture time; retained cause/effect relationships are visible flow
287
+ arrows. Concurrent operations of the same kind receive deterministic overflow
288
+ lanes so the output never relies on ambiguous overlapping slices. Structural
289
+ operation IDs and counters are present. Every operation slice also carries its
290
+ local retained-group ID, and each group has a summary marker with bounded
291
+ status, entry/terminal, and unresolved-cause counts. The marker labels that ID
292
+ as local retained-component identity rather than a distributed trace ID.
293
+ Application attributes remain excluded unless `--show-attributes` is explicit.
294
+ The command writes only JSON to stdout and rejects snapshots requiring more
295
+ than 50,000 retained flow arrows before allocating the expanded trace. This
296
+ makes file redirection and the Android one-shot device pipe composable without
297
+ a resident process or network request.
298
+
299
+ `debug symbolicate` resolves either up to 1,024 explicit, one-based
300
+ `LINE:COLUMN` locations or one bounded Hermes/JSC/JavaScript stack through a
301
+ canonical portable production source map. `--stack FILE` reads at most 1 MiB of
302
+ strict UTF-8 and `--stack -` accepts the same bounded input over stdin. The
303
+ parser follows the pinned React Native Hermes dialect, recognizes its native,
304
+ internal-bytecode, skipped-frame, and zero-based bytecode-offset forms, and
305
+ falls back to the pinned generic JavaScript parser when those Hermes markers
306
+ are absent. The command reruns the complete bounded map validation, supports
307
+ flat and indexed maps, reports ignored and unmapped positions, and emits only
308
+ portable `app:///` source identities rather than checkout paths. Raw error
309
+ messages and generated bundle URLs are not retained in text or JSON results.
310
+ Use `--at` for producers whose stack syntax is not one of those supported
311
+ dialects.
312
+
313
+ `fingerprint` hashes the exact runtime versions, installed Solid Native
314
+ core/runtime/compiler/Metro artifact bytes, lockfile, OXC/bootstrap, and
315
+ platform-native project inputs into deterministic SHA-256 compatibility
316
+ identities. It excludes ordinary application source and absolute paths, emits
317
+ an auditable digest for every input, bounds file count and size, and fails when
318
+ a required native input is absent. The result is deliberately unsigned; a
319
+ delivery pipeline must sign it with the release/artifact identity before a
320
+ runtime or OTA client trusts it.
321
+
322
+ `run` discovers the same nearest application, enforces the exact
323
+ device-verified React Native pin, validates the installed Solid Native
324
+ core/runtime pair, selected platform export, exact Solid and native build pins,
325
+ installed OXC/Metro worker, Metro wiring, and Solid-owned JavaScript bootstrap.
326
+ It then invokes that application's local React Native CLI directly without a
327
+ shell or a hidden package-manager shim. Invalid or partial application wiring
328
+ therefore fails even for `--dry-run`, before Gradle or Xcode starts. Native CLI
329
+ options are forwarded unchanged; `--` keeps Solid Native flags unambiguous.
330
+ Build output streams to the terminal and the native process exit status is
331
+ preserved.
332
+ Interrupt, termination, and hangup signals are forwarded to the active native
333
+ process tree on macOS and Linux, and to the direct native child on Windows,
334
+ before the CLI exits. This prevents an interrupted Gradle or Xcode invocation
335
+ from continuing in the background.
336
+ An explicit Android `--device SERIAL` or legacy `--deviceId SERIAL` is verified
337
+ through `adb` before Gradle starts. Emulators receive availability validation
338
+ only. Without an explicit selector, the CLI resolves exactly one authorized
339
+ target; zero or multiple targets fail before Gradle with an instruction to
340
+ connect one target, pass `--device`, or use `--list-devices`. This intentionally
341
+ prevents the upstream run-all default from acquiring ambiguous global device
342
+ state. The resolved serial is then passed explicitly to the same React Native
343
+ invocation, so validation and installation cannot select different targets. A
344
+ physical target must be unlocked; the CLI wakes it, dismisses a
345
+ non-secure keyguard, and temporarily sets the USB/AC charging
346
+ stay-awake mask for the build, install, and launch window. The exact prior
347
+ setting is restored after success, a non-zero native exit, or a thrown process
348
+ failure. Secure locks fail before the expensive build and also restore the
349
+ lease. A per-user, per-serial host lock prevents concurrent terminals from
350
+ competing for the same global setting. If an owning CLI is killed abruptly, the
351
+ next run recognizes the dead process and restores its bounded, token-matched
352
+ recovery record before acquiring the device. Ambiguous or corrupt ownership
353
+ metadata fails closed instead of guessing. Interactive device selection remains
354
+ upstream-owned because its exact target is not known until React Native prompts.
355
+ An explicit iOS `--device NAME_OR_ID` is known to select physical hardware, so
356
+ the CLI reads its structured CoreDevice lock state before starting React
357
+ Native. An explicit `--udid ID` is first resolved against CoreSimulator and
358
+ receives the same lock gate only when it is a physical device. Locked phones,
359
+ disabled Developer Mode, and developer-services tunnel failures therefore stop
360
+ before Metro, CocoaPods, or Xcode spends time on the build. Default and named
361
+ `--simulator` runs remain unchanged. A bare `--device` retains the upstream
362
+ "first available physical device" behavior but cannot be preflighted until the
363
+ upstream CLI resolves its identity; pass a name or identifier for the
364
+ deterministic fail-fast path.
365
+
366
+ `logs android PACKAGE` provides the first application-scoped device log stream.
367
+ It selects exactly one authorized device unless `--serial` is explicit, checks
368
+ that device is live, resolves an exact installed package UID through Android's
369
+ package manager, and runs `adb logcat --uid=...` so JavaScript and native records
370
+ remain visible across application process restarts without mixing in unrelated
371
+ device logs. It defaults to `-T 1`; `--since` accepts another bounded logcat
372
+ time or count. Dry-run discovery is read-only and exposes the serial, UID, and
373
+ fully quoted command as text or schema-versioned JSON. Live output is never
374
+ wrapped in JSON, retained, uploaded, or parsed by the CLI, because application
375
+ logs can contain private data. Interrupt, termination, and hangup signals are
376
+ forwarded to the detached adb process group.
377
+
378
+ `logs ios BUNDLE --device ID --restart` is the bounded CoreDevice counterpart.
379
+ It first uses Xcode's machine-readable app inventory to require exactly one
380
+ developer-installed bundle on the explicit device. Because CoreDevice can
381
+ connect application standard streams only during launch, `--restart` is a
382
+ mandatory acknowledgement: the live command replaces the existing app,
383
+ attaches `devicectl`'s launch console, and terminates that app when the stream
384
+ is interrupted. It does not claim historical output or continuity across a
385
+ later app restart. Dry runs perform only the installed-app lookup and expose
386
+ the exact launch plan. Live records remain unparsed and unretained; terminal
387
+ signals are forwarded to the isolated CoreDevice process group, handlers are
388
+ removed on exit, and an interrupted CLI returns the conventional signal exit
389
+ code instead of leaving a streamer or app behind.
390
+
391
+ `device status-ios BUNDLE --device ID` and `device stop-ios BUNDLE --device ID`
392
+ make that lifecycle state explicit without relying on a test runner. Both first
393
+ require exactly one developer-installed application for the supplied bundle and
394
+ map only processes whose CoreDevice executable URL is inside that exact app
395
+ installation. Status is read-only and can emit schema-zero JSON. Stop targets
396
+ only the observed process identifiers, keeps polling for replacement process
397
+ generations, and succeeds only after four clean polls spanning one second. It
398
+ is idempotent, never uninstalls the app, and fails after a bounded relaunch loop
399
+ instead of claiming cleanup. This is a local safety control for development
400
+ devices, not remote application management.
401
+
402
+ `open android PACKAGE URL` and `open ios BUNDLE URL` provide application-targeted
403
+ physical-device deep-link delivery. Both validate an absolute URL, perform
404
+ read-only device and installed-app discovery before producing an inspectable
405
+ plan, and consume a platform acknowledgement after delivery. Android adds an
406
+ explicit package constraint to the browsable `VIEW` intent and accepts success
407
+ only when `am start-activity -W` reports an Activity inside that package. iOS
408
+ uses CoreDevice's `--payload-url` and accepts only its bounded JSON launch
409
+ result for the verified developer-installed bundle. Default `preserve` mode
410
+ does not terminate a running app and launches it when absent; `--cold`
411
+ explicitly requests process replacement first. These commands do not claim
412
+ that an application accepted or rendered a route—application-level navigation
413
+ tests remain responsible for that assertion. URLs are visible to the local
414
+ platform tool and in optional plan/result JSON, so test links should not carry
415
+ production credentials.
416
+
417
+ `build ios|android` applies the same backend, installed-artifact,
418
+ native-project, and Android SDK checks, then delegates to the pinned
419
+ application-local `build-ios` or `build-android` command without launching a
420
+ simulator or device. It selects Release mode unless `--mode`, Android `--tasks`,
421
+ or interactive selection is forwarded explicitly. Dry-run and JSON plans
422
+ expose the exact command and non-overriding environment defaults for local CI
423
+ and signing workflows; streamed builds preserve their native exit code and
424
+ signal cleanup. React Native 0.88's Android Release mode runs `bundleRelease`,
425
+ so the generated starter's default artifact is
426
+ `android/app/build/outputs/bundle/release/app-release.aab`. An explicit
427
+ `--tasks assembleRelease` selects an APK build instead.
428
+
429
+ The upstream starter initially assigns `signingConfigs.debug` to its Release
430
+ build. This keeps local AAB production credential-free, but the result is not a
431
+ Play-distributable release. The Android doctor reports that condition as a
432
+ warning. It passes the signing-intent check only when the Release block selects
433
+ an explicit non-debug signing config, while clearly leaving keystore
434
+ availability, credential protection, and Play App Signing validation to the
435
+ application's delivery pipeline. Keys and credentials remain app-owned and
436
+ must stay outside source control.
437
+
438
+ `bundle ios|android` emits a minified production OXC/Metro bundle, composed
439
+ source map, copied asset tree, and `solid-native-bundle.json`. It fixes the compiler, platform, production
440
+ mode, entry, and output arguments while forwarding operational Metro options.
441
+ After Metro succeeds, absolute paths beneath the pnpm lock root are replaced by
442
+ portable `app:///` source identities; an invalid map or source outside that root
443
+ fails the command. Flat or indexed maps must carry bounded VLQ mappings, names,
444
+ ordered inline sections, and one embedded content string for every source.
445
+ Remote sections, mixed map forms, traversal, malformed ignore lists, excessive
446
+ nesting, and aggregate resource limits fail closed. This removes checkout-path
447
+ leakage while retaining a self-contained symbolication artifact.
448
+ The deterministic unsigned manifest records byte counts and SHA-256 digests
449
+ for the bundle, canonical map, and every bounded regular asset, then derives a
450
+ single bundle fingerprint using locale-independent path ordering. Bind that identity to the native compatibility
451
+ fingerprint and sign the resulting release metadata before trusting it for OTA
452
+ delivery.
453
+ `bundle verify` is read-only: it validates the bounded manifest schema,
454
+ recomputes the canonical fingerprint and all file digests, and compares the
455
+ complete on-disk asset set. A digest-matching source map is parsed again and
456
+ must still satisfy the canonical portable schema. Integrity mismatches return
457
+ exit status 1; malformed input returns 2. Since the manifest is unsigned,
458
+ successful verification still does not establish who produced it.
459
+
460
+ `upgrade react-native --candidate PATH` turns a prepared, isolated dependency
461
+ candidate into a deterministic read-only audit. It requires the source to be
462
+ the device-verified backend and both applications to have exact declared,
463
+ installed, and locked React Native, Hermes compiler, React, Codegen, and Gradle
464
+ plugin identities. It executes each application-local `hermesc -version`,
465
+ keeps the npm package release distinct from the normalized
466
+ `ReactNativeVersion.h` identity, and reports the resolved Metro transform
467
+ worker without assuming its version follows React Native's release number.
468
+
469
+ The command also requires the candidate Fabric Host boundary manifest to name
470
+ the exact React Native package release. It locates and hashes the bounded set
471
+ of React Native-owned headers in both package trees, reports added, removed,
472
+ moved, changed, ambiguous, and external native inputs, and emits the remaining
473
+ repository, Android, iOS, navigation, capability, performance, and memory
474
+ qualification gates. It never edits a manifest, installs a package, builds a
475
+ native target, contacts a registry, or marks an unverified backend as
476
+ supported. A successful exit means the candidate is internally coherent
477
+ enough to begin qualification; `promotionReady` remains `false` in both text
478
+ and JSON output.
479
+
480
+ `bundle sources MAP` applies an explicit dependency policy to a raw or
481
+ canonical Metro map without rewriting it. The command runs the same bounded
482
+ source-map parser, normalizes in-root absolute paths to portable `app:///`
483
+ identities in memory, requires every repeated `--require` identity exactly
484
+ once, and fails if any source contains a repeated `--forbid-containing`
485
+ fragment. Policy mismatches return exit status 1 with stable text or JSON
486
+ checks; malformed maps, escaping paths, duplicate policy entries, and empty
487
+ policies return 2. This lets applications prove wrapper-free generated native
488
+ boundaries in Release automation without carrying their own source-map parser.
489
+
490
+ `bundle ios|android --hermes-source` reproduces the non-minified Metro input
491
+ consumed by React Native's Release Hermes tasks; Android also retains the exact
492
+ packager-map naming used by Gradle.
493
+ `release verify-android-signing AAB|APK` verifies the produced Android artifact
494
+ without reading a keystore. For an AAB, the selected JDK's `jarsigner` and
495
+ `keytool` strictly verify every entry and require exactly one non-debug upload
496
+ certificate. For an APK, the newest stable Android SDK `apksigner` verifies all
497
+ Android versions declared as supported by the manifest and returns the exact
498
+ bounded, non-debug certificate set, including version-targeted key rotation.
499
+ Repeat `--expected-certificate-sha256 HEX` to pin that complete APK set; AABs
500
+ accept one upload-certificate pin. A failed policy exits 1; malformed input or
501
+ unavailable tools exit 2. `release create
502
+ --android-upload-certificate-sha256 HEX` binds an AAB, while repeated
503
+ `--android-signing-certificate-sha256 HEX` values bind an APK. `release verify`
504
+ repeats the selected proof automatically. This does not establish Play
505
+ acceptance or the app-signing certificate Google may apply during distribution.
506
+ Every tool is bounded to 30 seconds and 256 KiB of combined retained output;
507
+ timeout or truncation fails closed. Inspection uses a private immutable
508
+ snapshot, requires temporary free space approximately equal to the artifact,
509
+ and removes the snapshot afterward.
510
+ `release create --inspect-embedded-bundle` validates the IPA or APK/AAB ZIP
511
+ entry, Hermes bytecode version, internal checksum, and source hash, then
512
+ recompiles with the pinned compiler. Android requires exact bytecode SHA-256
513
+ equality. iOS does too when Xcode emitted a Hermes source map; ordinary iOS
514
+ builds additionally canonicalize the sole length-prefixed Xcode intermediate
515
+ filename and Hermes footer before requiring complete bytecode equality. The
516
+ verifier repeats the proof. Malformed, duplicate, encrypted, oversized, or
517
+ mismatched archives fail closed. Bounded single-disk ZIP64 archives use the same
518
+ limits and proof; multi-disk archives remain unsupported.
519
+
520
+ `release create` combines a verified bundle manifest, the current platform's
521
+ native compatibility identity, bounded release/channel/revision metadata, and
522
+ the streamed digest of a final native binary into `solid-native-release.json`.
523
+ For an AAB, `--android-upload-certificate-sha256 HEX` additionally requires and
524
+ records its non-debug upload signer. For an APK, repeat
525
+ `--android-signing-certificate-sha256 HEX` for its complete reviewed signer set.
526
+ `release verify` rechecks the canonical envelope, binary, any bound Android
527
+ signing identity, full bundle set, and native checkout. The envelope is
528
+ intentionally unsigned: a trusted pipeline must prove the claimed source
529
+ produced the artifact and sign the delivery statement. See
530
+ [the release contract](../../docs/release-envelopes.md).
531
+
532
+ `release sign` adds a deterministic detached Ed25519 statement using a
533
+ caller-managed private key. Supplying `--bundle` and `--artifact` makes it
534
+ recheck the final binary, bundle set, embedded Hermes linkage, and current
535
+ native compatibility before reading the key and signing; a failed check cannot
536
+ produce a signature. Omitting both preserves envelope-only signing for an
537
+ isolated signer that cannot access build outputs. `release signing-request`
538
+ emits the exact contextual payload plus its SHA-256 for an offline, HSM, or KMS
539
+ signer. `release assemble-signature` accepts 64 raw Ed25519 signature bytes or
540
+ canonical base64url, verifies them with the supplied public key, and writes the
541
+ same detached statement without ever reading a private key. The unsigned
542
+ request is a signing instruction, not proof that its build was authorized.
543
+ `release verify-signature`
544
+ accepts either a separately pinned public key/key ID plus trusted scope flags,
545
+ or a versioned `--trust-policy` file containing the scope and up to 32 canonical
546
+ Ed25519 SPKI keys marked `active` or `revoked`. It rejects a changed envelope,
547
+ unknown or revoked key, invalid signature, or cross-scope release and returns
548
+ status 1 for trust mismatches. Trust policies carry a required positive
549
+ sequence, are normalized into a deterministic fingerprint, and can be checked
550
+ against `--minimum-policy-sequence` so a delivery system can reject a policy
551
+ older than its persisted high-water mark. Verification
552
+ requires either paired `--bundle`/`--artifact` inputs or an explicit
553
+ `--envelope-only` mode. Paired inputs rerun the complete release proof and a
554
+ failure prevents authorization. Optional exact release, revision, envelope,
555
+ bundle, native, and artifact digest pins support a specific rollout. A passing
556
+ report exposes `authorizedRelease`, constructed from the exact verified
557
+ manifest snapshot; its `inputsVerified` field distinguishes complete input
558
+ proof from envelope-only authentication. Failed reports omit it so consumers
559
+ do not need to reread unsigned lineage. The TypeScript API makes the two input
560
+ modes a discriminated union and narrows `ok: true` to a report with required
561
+ authorized lineage; policy-backed lineage additionally includes the exact
562
+ trust-policy fingerprint and sequence. Compile-time tests reject missing,
563
+ partial, or conflicting modes. Solid Native never embeds the private key or declares an arbitrary
564
+ policy file trustworthy. Key custody, trusted policy distribution, monotonic
565
+ rollback prevention, and audit retention remain delivery-system
566
+ responsibilities.
567
+
568
+ `release symbolication` is the open boundary to a selected symbolication
569
+ backend. It accepts the same pinned-key or trust-policy inputs as signature
570
+ verification but always requires the bundle manifest and final native artifact;
571
+ envelope-only evidence is rejected. After repeating signature, policy, native,
572
+ bundle, and source-map validation, it emits a frozen schema-v0 descriptor whose
573
+ `authorizedRelease` is exactly the verifier output also consumed by runtime
574
+ telemetry. The descriptor carries the local generated-bundle and source-map
575
+ paths, their signed byte counts and SHA-256 digests, entry point, and minification
576
+ mode without choosing a vendor:
577
+
578
+ ```sh
579
+ solid-native release symbolication solid-native-release.json.sig.json \
580
+ --manifest solid-native-release.json \
581
+ --trust-policy production-ios-trust.json \
582
+ --minimum-policy-sequence 7 \
583
+ --bundle ios/build/solid-native-bundle/solid-native-bundle.json \
584
+ --artifact ios/build/SolidNative.ipa \
585
+ --json
586
+ ```
587
+
588
+ The absolute `localPath` values are ephemeral uploader inputs and are excluded
589
+ from every fingerprint. A backend adapter must compare the declared byte count
590
+ and digest at the last practical moment before transport; the handoff does not
591
+ turn a mutable path into authenticated storage. Solid Native performs no
592
+ network request and reads no vendor credential at this boundary.
593
+ For local debugging, `debug symbolicate` can resolve explicit generated
594
+ positions or a bounded local stack directly from the validated map; unlike the
595
+ release handoff, it does not authenticate a release or prepare an upload.
596
+
597
+ On Android, a standard SDK location discovered by the same logic as `doctor`
598
+ appears in the plan as an `ANDROID_HOME` environment default. Execution applies
599
+ it only when neither the caller nor process already supplies that variable;
600
+ explicit `ANDROID_HOME` or `ANDROID_SDK_ROOT` configuration remains
601
+ authoritative.
602
+
603
+ `generate` delegates to the pinned application's React Native Codegen command,
604
+ with explicit project root, platform, and app/library source semantics. Its
605
+ default native output is isolated under `build/solid-native-codegen`;
606
+ `--output` resolves another artifact root inside the application. The isolated
607
+ default is intentional: React Native's app-level Codegen discovers dependency
608
+ schemas too, merges their artifacts into one directory, and does not remove
609
+ files for schemas that disappear. Writing that result into Gradle's app-level
610
+ Codegen directory can leave dependency implementations there and later link
611
+ them a second time beside their autolinked libraries. Each execution also uses
612
+ a fresh sibling staging tree. A nonzero upstream exit preserves the previous
613
+ native and Solid outputs; success publishes both together and removes the old
614
+ tree, so obsolete generated sources cannot survive an otherwise successful
615
+ run. A publication error rolls both artifacts back to their last good state.
616
+ When
617
+ `package.json` contains a `components`, `modules`, or `all` `codegenConfig`,
618
+ successful native generation also parses that same spec through
619
+ `@solidnative-dev/codegen` and atomically writes
620
+ `generated/<codegenConfig.name>.ts`. Component schemas produce typed Solid
621
+ factories, props, command shims, and frozen host descriptors. Module schemas
622
+ produce raw TurboModule ABI types, injected-registry resolvers, callable-surface
623
+ validation, and frozen audit metadata; mixed schemas contain both. Native
624
+ values still enter portable application code through an explicit validating
625
+ adapter. Repeating `--solid-library PACKAGE` opts direct, installed dependencies
626
+ into the same atomic module. The plan validates each declared package identity,
627
+ modern Codegen config, and package-contained source root before parsing; mixed
628
+ app/dependency output defaults to `generated/SolidNativeBindings.ts`.
629
+ `--solid-output` selects another app-local `.ts` file; `--no-solid` explicitly
630
+ disables this second artifact. Dry-run JSON exposes it as `solidBindings`,
631
+ including its effective `components`, `modules`, or `all` kind and every
632
+ application/dependency input. Generated modules also export a deeply frozen,
633
+ portable `SOLID_NATIVE_BINDING_MANIFEST`: it records package/library identity
634
+ and installed versions without local paths, plus a deterministic SHA-256 over
635
+ those inputs and the emitted ABI surface. This is audit identity, not a
636
+ signature or proof that dependency source is trusted.
637
+
638
+ `generate --check` is the read-only CI half of this workflow. It rebuilds the
639
+ expected Solid module in memory, compares exact bytes, and reports `match`,
640
+ `missing`, `stale`, or `unreadable` without invoking React Native Codegen or
641
+ writing any file. It exits `1` for every non-match and supports stable JSON.
642
+
643
+ `generate --audit` is the discovery half. It parses the application and
644
+ explicit `--solid-library` schemas without evaluating their React-facing
645
+ JavaScript wrappers, then reports reusable component descriptors, raw
646
+ TurboModule surfaces, interface-only components, platform exclusions, and
647
+ path-free package/version inputs. Explicit dependency selection fails when a
648
+ package declares Codegen but its configured source exposes no surface matching
649
+ the declared kind; a stale `codegenConfig` on a legacy native module therefore
650
+ cannot produce an empty but apparently valid binding manifest. The report is
651
+ suitable for a compatibility catalog or upgrade diff, but is deliberately not
652
+ a device-support claim: interface-only components need an independently
653
+ reviewed native registration path, and every emitted surface still needs
654
+ integration and physical evidence.
655
+
656
+ `compatibility check` reconciles those discoveries with the app-owned
657
+ `solid-native.compatibility.json` catalog (or `--catalog FILE`). Catalog
658
+ packages use exact installed versions and Codegen library identities. Every
659
+ claim names one package, schema category, surface, platform, and evidence
660
+ level: `schema-discovered`, `binding-generated`, `native-integrated`, or
661
+ `device-verified`. All levels beyond discovery require at least one portable
662
+ application-relative evidence path paired with its lowercase SHA-256 digest.
663
+ Unknown fields, duplicate claims, version drift, category drift, platform
664
+ exclusion, missing surfaces, missing or modified evidence, path traversal, and
665
+ symlink escape fail closed. Each dependency is re-audited in isolation, so an
666
+ identically named application or neighboring dependency surface cannot satisfy
667
+ its claim. The report also retains package identity for every
668
+ discovered-but-unclaimed surface.
669
+
670
+ `compatibility evidence FILE...` hashes 1-16 contained application files and
671
+ prints normalized, ready-to-paste evidence entries. `--json` returns the
672
+ bounded structured report. The command accepts paths relative to `--cwd`,
673
+ rejects missing files, directories, duplicates, path escape, and physical
674
+ symlink escape, and never edits the catalog. A digest update therefore remains
675
+ an explicit review decision instead of automatically blessing changed proof.
676
+
677
+ ```json
678
+ {
679
+ "evidence": [
680
+ {
681
+ "path": "adapters/RNExample.ts",
682
+ "sha256": "<64 lowercase hexadecimal characters>"
683
+ }
684
+ ]
685
+ }
686
+ ```
687
+
688
+ This command checks catalog consistency and reviewed evidence bytes; it does
689
+ not execute proof scripts or turn an authored `device-verified` claim into
690
+ fresh device evidence. CI should run both the catalog check and the referenced
691
+ physical suites at the cadence required by its release policy.
692
+
693
+ `device-proof sign RECEIPT` validates the current strict Android schema,
694
+ including the exact passing test identity, physical-device marker, clean Git
695
+ revision, native-compatibility identity, generated bindings, wrapper-free
696
+ source policy, APKs, and instrumentation result. It then hashes the exact
697
+ receipt bytes and signs a small path-free statement with a caller-managed
698
+ Ed25519 key. The statement includes a required project name supplied by the
699
+ signing policy and uses the domain-separated
700
+ `solid-native.device-proof-signature.v0` context, so neither a device-proof
701
+ signature nor its digest can be replayed as a release signature. Symlinked or
702
+ oversized inputs, non-Ed25519 keys, unsafe key IDs, group/world-readable POSIX
703
+ private keys, dirty receipts, and files that change during signing fail before
704
+ publication.
705
+
706
+ `device-proof verify-signature` requires the exact receipt and either a
707
+ separately pinned public key, key ID, and project name or one bounded versioned
708
+ trust-policy file. A policy carries the Android proof scope, project, positive
709
+ monotonic sequence, and up to 32 canonical Ed25519 SPKI keys marked `active` or
710
+ `revoked`. Its normalized fingerprint is independent of key order.
711
+ `--minimum-policy-sequence` lets a caller reject a policy older than its
712
+ persisted high-water mark. The local file is an input, not a trust root;
713
+ trusted distribution and high-water state remain the caller's responsibility.
714
+ Optional exact receipt, source revision, native-compatibility, and application
715
+ APK pins let a pipeline constrain one intended build. Inclusive
716
+ `--minimum-measured-at` and `--maximum-measured-at` bounds reject a signed run
717
+ outside a canonical UTC window. These bounds trust the lab's signed receipt
718
+ clock; they are replay policy, not an independent timestamp authority.
719
+
720
+ A machine-readable report separates proof, trust-policy, key, cryptographic
721
+ signature, project-policy, lineage, and time-policy checks. Only an all-pass
722
+ result carries `authenticatedProof`, a privacy-safe lineage summary with the
723
+ source revision, native fingerprint, application APK digest, device model,
724
+ measurement time, and authenticated key. Policy-backed success also stamps the
725
+ exact policy fingerprint and sequence. Every report carries the normalized,
726
+ frozen `policy` that was actually applied, including its exact pins and time
727
+ bounds, so audit code need not reconstruct the decision from process arguments.
728
+ A failure omits authenticated lineage and returns status 1.
729
+ This authenticates retained execution evidence; it does not authorize an app
730
+ release, infer that a local policy is trusted, generate keys, or provide
731
+ HSM/KMS custody and audit retention.
732
+
733
+ `device-proof ingestion` applies the same pinned-key or trust-policy verifier,
734
+ then rereads the bounded receipt and requires its digest to remain identical at
735
+ the handoff boundary. It returns a deeply frozen, uploader-neutral descriptor
736
+ containing authenticated lineage, non-unique device/OS/power context, native
737
+ compatibility, generated-binding and bundle identities, APK facts, and the
738
+ instrumentation result. Its `verificationPolicy` is that same normalized
739
+ verifier input. The descriptor omits local paths, the stable device serial
740
+ digest, public keys, and signature bytes. Its shape alone is not proof: an
741
+ adapter must receive it from this successful verifier invocation, then own
742
+ transport, credentials, retention, and high-water policy state.
743
+
744
+ For customer-held keys, `device-proof signing-request` emits the same canonical
745
+ contextual payload and its SHA-256 after strict receipt validation, without
746
+ reading a private key. An offline, HSM, or KMS signer returns either 64 raw
747
+ Ed25519 bytes or canonical unpadded base64url.
748
+ `device-proof assemble-signature` validates the request's internal payload,
749
+ parses the detached bytes under strict limits, verifies them with the supplied
750
+ Ed25519 public key, and only then atomically writes the ordinary signature
751
+ statement. Assembly cannot overwrite any input and never reads private-key
752
+ material. The request remains an unsigned signing instruction; external signer
753
+ policy and key custody are still outside the CLI.
754
+
755
+ `adapter create MODULE --library PACKAGE` turns one installed dependency
756
+ TurboModule schema into an editable application-owned adapter scaffold. The
757
+ command uses the same contained package discovery as binding generation,
758
+ selects the exact module and optional platform, derives an extensionless import
759
+ so Metro resolves the generated TypeScript binding, and refuses to write unless
760
+ that binding passes
761
+ `generate --check` semantics. It creates `adapters/MODULE.ts` by default,
762
+ supports explicit contained `--bindings` and `--output` paths, and atomically
763
+ refuses to overwrite an existing file. `--dry-run --json` exposes the complete
764
+ source and provenance without writing.
765
+
766
+ Method wrappers are deliberately not native pass-throughs: required policy
767
+ hooks receive a bound native invoker and frozen arguments, while their portable
768
+ return remains `unknown` until application validation is implemented. Event
769
+ emitters become decoder-gated, causally named Solid accessors whose
770
+ subscriptions follow the current owner. The scaffold is safe to edit and is
771
+ never regenerated over application policy code.
772
+
773
+ `start` validates the same exact backend, installed runtime pair, OXC/Metro
774
+ compiler, resolver, safe full-reload policy, and Solid-owned application
775
+ bootstrap before delegating to the application-local Metro server. Application
776
+ source edits reload the complete runtime because React Refresh cannot replace
777
+ mounted Solid owners safely; owner-preserving Solid HMR remains future work.
778
+ Arguments after `--` are forwarded unchanged. Interrupt, termination, and
779
+ hangup signals stop Metro's complete process group so its workers and listening
780
+ port do not outlive the CLI.
781
+
782
+ Inspect a stable, machine-readable execution plan without building or
783
+ installing anything:
784
+
785
+ ```sh
786
+ solid-native create MyApp --skip-install --dry-run --json
787
+ solid-native fingerprint --platform android --json
788
+ solid-native bundle android --output /tmp/app-bundle --dry-run --json
789
+ solid-native start --dry-run --json -- --port 9090
790
+ solid-native build ios --dry-run --json -- --scheme MyApp
791
+ solid-native generate --cwd path/to/application --platform ios --solid-library @react-native-async-storage/async-storage --dry-run --json
792
+ solid-native generate --cwd path/to/application --platform all --solid-library @react-native-async-storage/async-storage --check
793
+ solid-native generate --cwd path/to/application --platform all --solid-library react-native-screens --audit --json
794
+ solid-native compatibility check --cwd path/to/application --json
795
+ solid-native device-proof sign android-device-proof.json --key device-private.pem --key-id lab-1 --project example-app
796
+ solid-native device-proof signing-request android-device-proof.json --key-id lab-hsm-1 --project example-app
797
+ solid-native device-proof assemble-signature android-device-proof.json.signing-request.json --signature device-proof-signature.bin --public-key device-public.pem
798
+ solid-native device-proof verify-signature android-device-proof.json.sig.json --proof android-device-proof.json --public-key device-public.pem --key-id lab-1 --project example-app --json
799
+ solid-native device-proof verify-signature android-device-proof.json.sig.json --proof android-device-proof.json --trust-policy device-lab-trust.json --minimum-policy-sequence 7 --json
800
+ solid-native device-proof ingestion android-device-proof.json.sig.json --proof android-device-proof.json --trust-policy device-lab-trust.json --minimum-policy-sequence 7 --json
801
+ solid-native adapter create RNAsyncStorage --cwd path/to/application --library @react-native-async-storage/async-storage --dry-run --json
802
+ solid-native run ios --cwd path/to/application --dry-run --json -- --udid DEVICE_ID
803
+ solid-native run android --cwd path/to/application --dry-run -- --device DEVICE_SERIAL
804
+ solid-native logs android dev.example.myapp --serial DEVICE_SERIAL --dry-run --json
805
+ solid-native logs ios dev.example.myapp --device CORE_DEVICE_ID --restart --dry-run --json
806
+ solid-native open android dev.example.myapp 'dev.example.myapp://settings' --serial DEVICE_SERIAL --dry-run --json
807
+ solid-native open ios dev.example.myapp 'dev.example.myapp://settings' --device CORE_DEVICE_ID --dry-run --json
808
+ ```
809
+
810
+ In this repository, build and dogfood it with:
811
+
812
+ ```sh
813
+ pnpm --filter @solidnative-dev/cli build
814
+ node packages/cli/dist/bin.js doctor --cwd apps/native-e2e
815
+ node packages/cli/dist/bin.js fingerprint --cwd apps/native-e2e
816
+ node packages/cli/dist/bin.js start --cwd apps/native-e2e --dry-run
817
+ node packages/cli/dist/bin.js bundle android --cwd apps/native-e2e --dry-run
818
+ node packages/cli/dist/bin.js bundle verify path/to/solid-native-bundle.json --json
819
+ node packages/cli/dist/bin.js build android --cwd apps/native-e2e --dry-run
820
+ node packages/cli/dist/bin.js generate --cwd apps/native-e2e --platform all --dry-run
821
+ node packages/cli/dist/bin.js run android --cwd apps/native-e2e --dry-run -- --device DEVICE_SERIAL
822
+ node packages/cli/dist/bin.js logs android dev.solidnative.e2e --serial DEVICE_SERIAL --dry-run
823
+ node packages/cli/dist/bin.js logs ios dev.solidnative.e2e --device CORE_DEVICE_ID --restart --dry-run
824
+ node packages/cli/dist/bin.js open android dev.solidnative.e2e 'dev.solidnative.e2e://navigation/settings' --serial DEVICE_SERIAL --dry-run
825
+ node packages/cli/dist/bin.js open ios dev.solidnative.e2e 'dev.solidnative.e2e://navigation/settings' --device CORE_DEVICE_ID --dry-run
826
+ ```
827
+
828
+ The runner has been dogfooded through Release build, install, and launch on the
829
+ repository's physical Pixel and signed iPhone targets. The generator has emitted
830
+ the app's custom native component descriptors and bindings for both platforms
831
+ into an isolated artifact tree. A registry-shaped local package installation of
832
+ the generated application has type-checked, produced a Release OXC/Metro
833
+ bundle, compiled the external-Kotlin Android template and package-owned C++
834
+ seam, installed on the physical Pixel, and mounted a fine-grained counter update
835
+ after an operating-system tap. The same artifact-installed application has
836
+ applied `solid-native add navigation`, verified the patched backend, resolved
837
+ `RNScreens` through CocoaPods, and compiled, signed, installed, and launched as
838
+ a Release build on the physical iPhone.
839
+
840
+ The CLI leaves Xcode and Gradle projects visible and editable. External
841
+ automation may perform the same operations, but local production builds remain
842
+ fully supported.