create-disposabl-app 0.10.4 → 0.12.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 (461) hide show
  1. package/README.md +3 -1
  2. package/dist/disposabl.js +218 -133
  3. package/dist/index.js +212 -47
  4. package/dist/templates/default/.github/scripts/apple.sh +60 -0
  5. package/dist/templates/default/.github/scripts/mobile.sh +10 -2
  6. package/dist/templates/default/.github/scripts/platforms.sh +32 -13
  7. package/dist/templates/default/.github/scripts/release.sh +2 -1
  8. package/dist/templates/default/.github/workflows/pipeline.yml +105 -44
  9. package/dist/templates/default/apps/desktop/README.md +5 -45
  10. package/dist/templates/default/apps/desktop/package.json +6 -6
  11. package/dist/templates/default/apps/docs/README.md +2 -4
  12. package/dist/templates/default/apps/docs/build.ts +10 -0
  13. package/dist/templates/default/apps/docs/content/backend.mdx +39 -0
  14. package/dist/templates/default/apps/docs/content/desktop.mdx +10 -0
  15. package/dist/templates/default/apps/docs/content/getting-started.mdx +26 -0
  16. package/dist/templates/default/apps/docs/content/index.mdx +27 -5
  17. package/dist/templates/default/apps/docs/content/mobile.mdx +18 -0
  18. package/dist/templates/default/apps/docs/content/web.mdx +14 -0
  19. package/dist/templates/default/apps/docs/dev.ts +40 -0
  20. package/dist/templates/default/apps/docs/package.json +15 -14
  21. package/dist/templates/default/apps/docs/press.config.ts +13 -1
  22. package/dist/templates/default/apps/docs/vite.config.ts +1 -0
  23. package/dist/templates/default/apps/mobile/.agents/skills/agent-device/SKILL.md +3 -1
  24. package/dist/templates/default/apps/mobile/.agents/skills/android-emulator/SKILL.md +2 -0
  25. package/dist/templates/default/apps/mobile/.agents/skills/dogfood/SKILL.md +1 -1
  26. package/dist/templates/default/apps/mobile/.agents/skills/eas-app-stores/SKILL.md +0 -1
  27. package/dist/templates/default/apps/mobile/.agents/skills/eas-hosting/SKILL.md +0 -1
  28. package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/SKILL.md +7 -4
  29. package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/references/library-integrations.md +116 -0
  30. package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/references/queries.md +27 -0
  31. package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/references/setup.md +3 -2
  32. package/dist/templates/default/apps/mobile/.agents/skills/eas-simulator/SKILL.md +0 -1
  33. package/dist/templates/default/apps/mobile/.agents/skills/eas-update/SKILL.md +0 -1
  34. package/dist/templates/default/apps/mobile/.agents/skills/eas-update-insights/SKILL.md +0 -1
  35. package/dist/templates/default/apps/mobile/.agents/skills/eas-workflows/SKILL.md +0 -1
  36. package/dist/templates/default/apps/mobile/.agents/skills/expo-animation/SKILL.md +0 -1
  37. package/dist/templates/default/apps/mobile/.agents/skills/expo-data-fetching/SKILL.md +0 -1
  38. package/dist/templates/default/apps/mobile/.agents/skills/expo-design-system/SKILL.md +0 -1
  39. package/dist/templates/default/apps/mobile/.agents/skills/expo-dev-client/SKILL.md +0 -1
  40. package/dist/templates/default/apps/mobile/.agents/skills/expo-dom/SKILL.md +0 -1
  41. package/dist/templates/default/apps/mobile/.agents/skills/expo-examples/SKILL.md +0 -1
  42. package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/SKILL.md +25 -21
  43. package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/references/compatibility.md +136 -60
  44. package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/references/example.md +17 -16
  45. package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/references/migration-map.md +132 -50
  46. package/dist/templates/default/apps/mobile/.agents/skills/expo-module/SKILL.md +0 -1
  47. package/dist/templates/default/apps/mobile/.agents/skills/expo-native-ui/SKILL.md +0 -1
  48. package/dist/templates/default/apps/mobile/.agents/skills/expo-overview/SKILL.md +0 -1
  49. package/dist/templates/default/apps/mobile/.agents/skills/expo-project-structure/SKILL.md +0 -1
  50. package/dist/templates/default/apps/mobile/.agents/skills/expo-router/SKILL.md +0 -1
  51. package/dist/templates/default/apps/mobile/.agents/skills/expo-skill-eval/SKILL.md +0 -1
  52. package/dist/templates/default/apps/mobile/.agents/skills/expo-ui/SKILL.md +0 -1
  53. package/dist/templates/default/apps/mobile/.agents/skills/expo-upgrade/SKILL.md +0 -1
  54. package/dist/templates/default/apps/mobile/.agents/skills/expo-web-to-native/SKILL.md +0 -1
  55. package/dist/templates/default/apps/mobile/.agents/skills/ios-simulator/SKILL.md +2 -0
  56. package/dist/templates/default/apps/mobile/.claude/skills/agent-device/SKILL.md +24 -0
  57. package/dist/templates/default/apps/mobile/.claude/skills/android-emulator/SKILL.md +34 -0
  58. package/dist/templates/default/apps/mobile/.claude/skills/dogfood/SKILL.md +27 -0
  59. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/SKILL.md +175 -0
  60. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/agents/openai.yaml +4 -0
  61. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/app-store-metadata.md +497 -0
  62. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/ios-app-store.md +376 -0
  63. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/native-ios.md +167 -0
  64. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/play-store.md +244 -0
  65. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/testflight.md +62 -0
  66. package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/workflows.md +120 -0
  67. package/dist/templates/default/apps/mobile/.claude/skills/eas-hosting/SKILL.md +430 -0
  68. package/dist/templates/default/apps/mobile/.claude/skills/eas-hosting/agents/openai.yaml +4 -0
  69. package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/SKILL.md +49 -0
  70. package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/agents/openai.yaml +4 -0
  71. package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/library-integrations.md +116 -0
  72. package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/metrics.md +98 -0
  73. package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/queries.md +471 -0
  74. package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/setup.md +530 -0
  75. package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/third-party.md +136 -0
  76. package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/SKILL.md +236 -0
  77. package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/agents/openai.yaml +4 -0
  78. package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/controllers.md +139 -0
  79. package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/logs-and-crashes.md +101 -0
  80. package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/run-your-app.md +256 -0
  81. package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/troubleshooting.md +56 -0
  82. package/dist/templates/default/apps/mobile/.claude/skills/eas-update/SKILL.md +145 -0
  83. package/dist/templates/default/apps/mobile/.claude/skills/eas-update/agents/openai.yaml +4 -0
  84. package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/SKILL.md +237 -0
  85. package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/agents/openai.yaml +4 -0
  86. package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/references/channel-insights-schema.md +47 -0
  87. package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/references/update-insights-schema.md +69 -0
  88. package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/SKILL.md +98 -0
  89. package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/agents/openai.yaml +4 -0
  90. package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/scripts/fetch.js +109 -0
  91. package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/scripts/package.json +6 -0
  92. package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/LICENSE +21 -0
  93. package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/RECIPES.md +385 -0
  94. package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/SKILL.md +273 -0
  95. package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/agents/openai.yaml +4 -0
  96. package/dist/templates/default/apps/mobile/.claude/skills/expo-app-clip/SKILL.md +290 -0
  97. package/dist/templates/default/apps/mobile/.claude/skills/expo-app-clip/agents/openai.yaml +4 -0
  98. package/dist/templates/default/apps/mobile/.claude/skills/expo-app-clip/references/native-module.md +96 -0
  99. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/SKILL.md +69 -0
  100. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/agents/openai.yaml +4 -0
  101. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/brownfield-integrated.md +551 -0
  102. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/brownfield-isolated.md +449 -0
  103. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/comparison.md +63 -0
  104. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/feature-integration.md +163 -0
  105. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/troubleshooting.md +88 -0
  106. package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/version-compatibility.md +40 -0
  107. package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/SKILL.md +477 -0
  108. package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/agents/openai.yaml +4 -0
  109. package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/references/expo-router-loaders.md +341 -0
  110. package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/references/offline-and-cancellation.md +68 -0
  111. package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/SKILL.md +375 -0
  112. package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/agents/openai.yaml +4 -0
  113. package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/references/audit.md +190 -0
  114. package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/references/native-slop.md +74 -0
  115. package/dist/templates/default/apps/mobile/.claude/skills/expo-dev-client/SKILL.md +183 -0
  116. package/dist/templates/default/apps/mobile/.claude/skills/expo-dev-client/agents/openai.yaml +4 -0
  117. package/dist/templates/default/apps/mobile/.claude/skills/expo-dom/SKILL.md +424 -0
  118. package/dist/templates/default/apps/mobile/.claude/skills/expo-dom/agents/openai.yaml +4 -0
  119. package/dist/templates/default/apps/mobile/.claude/skills/expo-examples/SKILL.md +105 -0
  120. package/dist/templates/default/apps/mobile/.claude/skills/expo-examples/agents/openai.yaml +4 -0
  121. package/dist/templates/default/apps/mobile/.claude/skills/expo-examples/references/catalog.md +105 -0
  122. package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/SKILL.md +128 -0
  123. package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/agents/openai.yaml +4 -0
  124. package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/references/compatibility.md +206 -0
  125. package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/references/example.md +213 -0
  126. package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/references/migration-map.md +539 -0
  127. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/SKILL.md +150 -0
  128. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/agents/openai.yaml +4 -0
  129. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/config-plugin.md +90 -0
  130. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/create-expo-module.md +206 -0
  131. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/lifecycle.md +127 -0
  132. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/module-config.md +48 -0
  133. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/native-module.md +286 -0
  134. package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/native-view.md +171 -0
  135. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/SKILL.md +200 -0
  136. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/agents/openai.yaml +4 -0
  137. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/controls.md +231 -0
  138. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/gradients.md +106 -0
  139. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/icons.md +232 -0
  140. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/media.md +193 -0
  141. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/storage.md +121 -0
  142. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/visual-effects.md +198 -0
  143. package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/webgpu-three.md +605 -0
  144. package/dist/templates/default/apps/mobile/.claude/skills/expo-overview/SKILL.md +119 -0
  145. package/dist/templates/default/apps/mobile/.claude/skills/expo-overview/agents/openai.yaml +4 -0
  146. package/dist/templates/default/apps/mobile/.claude/skills/expo-overview/references/launch-without-dev-menu.md +24 -0
  147. package/dist/templates/default/apps/mobile/.claude/skills/expo-project-structure/SKILL.md +113 -0
  148. package/dist/templates/default/apps/mobile/.claude/skills/expo-project-structure/agents/openai.yaml +4 -0
  149. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/SKILL.md +239 -0
  150. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/agents/openai.yaml +4 -0
  151. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/form-sheet.md +253 -0
  152. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/route-structure.md +229 -0
  153. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/search.md +248 -0
  154. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/tabs.md +433 -0
  155. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/toolbar-and-headers.md +284 -0
  156. package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/zoom-transitions.md +158 -0
  157. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/SKILL.md +313 -0
  158. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/agents/visual-grader.md +52 -0
  159. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/references/design-rubric.md +45 -0
  160. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/references/runtime-matrix.md +34 -0
  161. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/check-static.sh +64 -0
  162. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/clean-fixture.sh +56 -0
  163. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/generate_viewer.py +450 -0
  164. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/latest-sdk.sh +46 -0
  165. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/make-fixture.sh +95 -0
  166. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/make-workspace.sh +31 -0
  167. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/snapshot-android.sh +284 -0
  168. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/snapshot-ios.sh +132 -0
  169. package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/snapshot-web.sh +61 -0
  170. package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/SKILL.md +100 -0
  171. package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/agents/openai.yaml +4 -0
  172. package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/drop-in-replacements.md +27 -0
  173. package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/jetpack-compose.md +73 -0
  174. package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/swift-ui.md +73 -0
  175. package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/universal.md +104 -0
  176. package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/scripts/list-components.js +193 -0
  177. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/SKILL.md +149 -0
  178. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/agents/openai.yaml +4 -0
  179. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/expo-av-to-audio.md +132 -0
  180. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/expo-av-to-video.md +160 -0
  181. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/native-tabs.md +124 -0
  182. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/new-architecture.md +79 -0
  183. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/react-19.md +79 -0
  184. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/react-compiler.md +59 -0
  185. package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/react-navigation-to-expo-router.md +61 -0
  186. package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/SKILL.md +90 -0
  187. package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/agents/openai.yaml +4 -0
  188. package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/false-friends.md +119 -0
  189. package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/native-patterns.md +39 -0
  190. package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/run-as-goal.md +48 -0
  191. package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/verify-on-device.md +45 -0
  192. package/dist/templates/default/apps/mobile/.claude/skills/ios-simulator/SKILL.md +34 -0
  193. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/POWER.md +172 -0
  194. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/SKILL.md +238 -0
  195. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/agents/openai.yaml +4 -0
  196. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-analyze-app.md +208 -0
  197. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-analyze-js.md +264 -0
  198. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-barrel-exports.md +250 -0
  199. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-code-splitting.md +255 -0
  200. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-hermes-mmap.md +167 -0
  201. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-library-size.md +164 -0
  202. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-native-assets.md +208 -0
  203. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-r8-android.md +231 -0
  204. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-tree-shaking.md +215 -0
  205. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/bundle-treemap-source-map-explorer.png +0 -0
  206. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/controlled-textinput-pingpong.png +0 -0
  207. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/devtools-flamegraph.png +0 -0
  208. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/emerge-xray-ios.png +0 -0
  209. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/expo-atlas-treemap.png +0 -0
  210. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/flashlight-flatlist-vs-flashlist.png +0 -0
  211. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/fps-drop-graph.png +0 -0
  212. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/memory-heap-snapshot.png +0 -0
  213. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/tti-warm-start-diagram.png +0 -0
  214. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/view-hierarchy-flattening.png +0 -0
  215. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/xcode-instruments-templates.png +0 -0
  216. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/xcode-thread-view.png +0 -0
  217. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-animations-reanimated.md +273 -0
  218. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-atomic-state.md +190 -0
  219. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-bottomsheet.md +339 -0
  220. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-concurrent-react.md +238 -0
  221. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-lists-flatlist-flashlist.md +223 -0
  222. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-measure-fps.md +178 -0
  223. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-memory-leaks.md +168 -0
  224. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-profile-react.md +138 -0
  225. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-react-compiler.md +261 -0
  226. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-uncontrolled-components.md +219 -0
  227. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-android-16kb-alignment.md +114 -0
  228. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-measure-tti.md +221 -0
  229. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-memory-leaks.md +206 -0
  230. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-memory-patterns.md +240 -0
  231. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-platform-setup.md +112 -0
  232. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-profiling.md +140 -0
  233. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-sdks-over-polyfills.md +192 -0
  234. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-threading-model.md +230 -0
  235. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-turbo-modules.md +210 -0
  236. package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-view-flattening.md +180 -0
  237. package/dist/templates/default/apps/mobile/AGENTS.md +35 -8
  238. package/dist/templates/default/apps/mobile/README.md +31 -7
  239. package/dist/templates/default/apps/mobile/app.config.js +35 -6
  240. package/dist/templates/default/apps/mobile/metro.config.js +6 -0
  241. package/dist/templates/default/apps/mobile/nativewind-env.d.ts +2 -0
  242. package/dist/templates/default/apps/mobile/package.json +28 -16
  243. package/dist/templates/default/apps/mobile/postcss.config.mjs +1 -0
  244. package/dist/templates/default/apps/mobile/skills-lock.json +27 -27
  245. package/dist/templates/default/apps/mobile/src/app/(auth)/forgot-password.tsx +1 -0
  246. package/dist/templates/default/apps/mobile/src/app/(authenticated)/change-password.tsx +1 -0
  247. package/dist/templates/default/apps/mobile/src/app/_layout.tsx +1 -0
  248. package/dist/templates/default/apps/mobile/tsconfig.json +2 -1
  249. package/dist/templates/default/apps/web/.claude/skills/frontend-design/SKILL.md +71 -0
  250. package/dist/templates/default/apps/web/.claude/skills/web-design-guidelines/SKILL.md +39 -0
  251. package/dist/templates/default/apps/web/package.json +16 -16
  252. package/dist/templates/default/apps/web/site.json +10 -0
  253. package/dist/templates/default/apps/web/src/routeTree.gen.ts +282 -0
  254. package/dist/templates/default/apps/web/src/router/__root.tsx +44 -7
  255. package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.tsx +2 -4
  256. package/dist/templates/default/apps/web/src/router/index.tsx +101 -20
  257. package/dist/templates/default/apps/web/src/router/mobile-login.tsx +84 -0
  258. package/dist/templates/default/apps/web/vite.config.ts +53 -8
  259. package/dist/templates/default/bun.lock +5286 -27943
  260. package/dist/templates/default/bunfig.toml +4 -0
  261. package/dist/templates/default/disposabl.json +1 -1
  262. package/dist/templates/default/package.json +10 -6
  263. package/dist/templates/default/packages/backend/.claude/skills/convex/SKILL.md +69 -0
  264. package/dist/templates/default/packages/backend/.claude/skills/convex-add/SKILL.md +26 -0
  265. package/dist/templates/default/packages/backend/.claude/skills/convex-advisor/SKILL.md +32 -0
  266. package/dist/templates/default/packages/backend/.claude/skills/convex-agent/SKILL.md +25 -0
  267. package/dist/templates/default/packages/backend/.claude/skills/convex-auth/SKILL.md +29 -0
  268. package/dist/templates/default/packages/backend/.claude/skills/convex-authz/SKILL.md +36 -0
  269. package/dist/templates/default/packages/backend/.claude/skills/convex-backup/SKILL.md +33 -0
  270. package/dist/templates/default/packages/backend/.claude/skills/convex-billing/SKILL.md +69 -0
  271. package/dist/templates/default/packages/backend/.claude/skills/convex-cost/SKILL.md +29 -0
  272. package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/SKILL.md +325 -0
  273. package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/agents/openai.yaml +14 -0
  274. package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/assets/icon.svg +3 -0
  275. package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/advanced-patterns.md +146 -0
  276. package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/hybrid-components.md +38 -0
  277. package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/local-components.md +39 -0
  278. package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/packaged-components.md +54 -0
  279. package/dist/templates/default/packages/backend/.claude/skills/convex-crons/SKILL.md +23 -0
  280. package/dist/templates/default/packages/backend/.claude/skills/convex-deploy-guard/SKILL.md +29 -0
  281. package/dist/templates/default/packages/backend/.claude/skills/convex-design/SKILL.md +30 -0
  282. package/dist/templates/default/packages/backend/.claude/skills/convex-docs/SKILL.md +31 -0
  283. package/dist/templates/default/packages/backend/.claude/skills/convex-domains/SKILL.md +26 -0
  284. package/dist/templates/default/packages/backend/.claude/skills/convex-env/SKILL.md +24 -0
  285. package/dist/templates/default/packages/backend/.claude/skills/convex-expert/SKILL.md +38 -0
  286. package/dist/templates/default/packages/backend/.claude/skills/convex-explain-app/SKILL.md +29 -0
  287. package/dist/templates/default/packages/backend/.claude/skills/convex-improve-convex-plugin/SKILL.md +24 -0
  288. package/dist/templates/default/packages/backend/.claude/skills/convex-insights/SKILL.md +32 -0
  289. package/dist/templates/default/packages/backend/.claude/skills/convex-launch-readiness/SKILL.md +35 -0
  290. package/dist/templates/default/packages/backend/.claude/skills/convex-migrate/SKILL.md +23 -0
  291. package/dist/templates/default/packages/backend/.claude/skills/convex-migrate-rehearse/SKILL.md +31 -0
  292. package/dist/templates/default/packages/backend/.claude/skills/convex-monitor/SKILL.md +22 -0
  293. package/dist/templates/default/packages/backend/.claude/skills/convex-optimize/SKILL.md +26 -0
  294. package/dist/templates/default/packages/backend/.claude/skills/convex-quickstart/SKILL.md +29 -0
  295. package/dist/templates/default/packages/backend/.claude/skills/convex-quickstart/agents/openai.yaml +14 -0
  296. package/dist/templates/default/packages/backend/.claude/skills/convex-quickstart/assets/icon.svg +4 -0
  297. package/dist/templates/default/packages/backend/.claude/skills/convex-reviewer/SKILL.md +26 -0
  298. package/dist/templates/default/packages/backend/.claude/skills/convex-seed/SKILL.md +23 -0
  299. package/dist/templates/default/packages/backend/.claude/skills/convex-self-heal/SKILL.md +38 -0
  300. package/dist/templates/default/packages/backend/.claude/skills/convex-sentinel/SKILL.md +25 -0
  301. package/dist/templates/default/packages/backend/.claude/skills/convex-suggest/SKILL.md +27 -0
  302. package/dist/templates/default/packages/backend/.claude/skills/convex-test/SKILL.md +23 -0
  303. package/dist/templates/default/packages/backend/.claude/skills/convex-verify/SKILL.md +34 -0
  304. package/dist/templates/default/packages/backend/README.md +23 -2
  305. package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +15 -6
  306. package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +17 -0
  307. package/dist/templates/default/packages/backend/convex/auth.ts +90 -3
  308. package/dist/templates/default/packages/backend/convex/authEmail.ts +45 -0
  309. package/dist/templates/default/packages/backend/convex/authSetup.ts +12 -0
  310. package/dist/templates/default/packages/backend/convex/billing.ts +5 -0
  311. package/dist/templates/default/packages/backend/convex/convex.config.ts +38 -1
  312. package/dist/templates/default/packages/backend/convex/emails.ts +10 -0
  313. package/dist/templates/default/packages/backend/convex/files/index.ts +6 -0
  314. package/dist/templates/default/packages/backend/convex/files/internal.ts +5 -0
  315. package/dist/templates/default/packages/backend/convex/http.ts +9 -1
  316. package/dist/templates/default/packages/backend/convex/schema.ts +20 -19
  317. package/dist/templates/default/packages/backend/convex/telemetry.ts +84 -0
  318. package/dist/templates/default/packages/backend/convex/users/internal.ts +66 -10
  319. package/dist/templates/default/packages/backend/convex/users/validator.ts +14 -0
  320. package/dist/templates/default/packages/backend/generated/pages.json +36 -0
  321. package/dist/templates/default/packages/backend/package.json +8 -7
  322. package/dist/templates/default/packages/cli/README.md +3 -1
  323. package/dist/templates/default/packages/cli/auth.ts +6 -1
  324. package/dist/templates/default/packages/cli/client.ts +213 -0
  325. package/dist/templates/default/packages/cli/commands.ts +1 -293
  326. package/dist/templates/default/packages/cli/package.json +1 -1
  327. package/dist/templates/default/packages/disposabl-kit/GOOGLE_AUTH.md +37 -0
  328. package/dist/templates/default/packages/disposabl-kit/PAYMENTS.md +31 -0
  329. package/dist/templates/default/packages/disposabl-kit/client/components/google-sign-in.tsx +78 -0
  330. package/dist/templates/default/packages/disposabl-kit/client/components/legal-page.tsx +116 -0
  331. package/dist/templates/default/packages/disposabl-kit/client/components/password-auth-form.tsx +221 -0
  332. package/dist/templates/default/packages/disposabl-kit/client/components/password-page.tsx +37 -0
  333. package/dist/templates/default/packages/disposabl-kit/client/components/ui/log-out.tsx +28 -9
  334. package/dist/templates/default/packages/disposabl-kit/client/lib/prerender.ts +3 -1
  335. package/dist/templates/default/packages/disposabl-kit/client/lib/telemetry.ts +32 -0
  336. package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/forgot-password.tsx +92 -0
  337. package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/login.tsx +4 -149
  338. package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/reset-password.tsx +118 -0
  339. package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/signUp.tsx +4 -159
  340. package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/verify-email.tsx +49 -0
  341. package/dist/templates/default/packages/disposabl-kit/client/routes/_authenticated/change-password.tsx +123 -0
  342. package/dist/templates/default/packages/disposabl-kit/client/routes/legal/delete-account.tsx +7 -0
  343. package/dist/templates/default/packages/disposabl-kit/client/routes/legal/index.tsx +7 -0
  344. package/dist/templates/default/packages/disposabl-kit/client/routes/legal/privacy-request.tsx +7 -0
  345. package/dist/templates/default/packages/disposabl-kit/client/routes/legal/privacy.tsx +7 -0
  346. package/dist/templates/default/packages/disposabl-kit/client/routes/legal/terms.tsx +7 -0
  347. package/dist/templates/default/packages/disposabl-kit/client/routes/pricing.tsx +223 -0
  348. package/dist/templates/default/packages/disposabl-kit/client/routes/route.tsx +66 -14
  349. package/dist/templates/default/packages/disposabl-kit/client/vite.config.ts +27 -1
  350. package/dist/templates/default/packages/disposabl-kit/feature-options.ts +44 -0
  351. package/dist/templates/default/packages/disposabl-kit/features.ts +3 -0
  352. package/dist/templates/default/packages/disposabl-kit/legal/README.md +7 -0
  353. package/dist/templates/default/packages/disposabl-kit/legal/config.ts +55 -0
  354. package/dist/templates/default/packages/disposabl-kit/legal/documents/privacy.ts +69 -0
  355. package/dist/templates/default/packages/disposabl-kit/legal/documents/terms.ts +66 -0
  356. package/dist/templates/default/packages/disposabl-kit/legal/index.ts +40 -0
  357. package/dist/templates/default/packages/disposabl-kit/legal/types.ts +6 -0
  358. package/dist/templates/default/packages/disposabl-kit/lib/auth-errors.ts +47 -0
  359. package/dist/templates/default/packages/disposabl-kit/lib/auth-session.ts +15 -0
  360. package/dist/templates/default/packages/disposabl-kit/lib/google-logo.png +0 -0
  361. package/dist/templates/default/packages/disposabl-kit/lib/indexing.ts +27 -0
  362. package/dist/templates/default/packages/disposabl-kit/lib/mobile-auth.ts +44 -0
  363. package/dist/templates/default/packages/disposabl-kit/lib/starter.ts +57 -0
  364. package/dist/templates/default/packages/disposabl-kit/lib/telemetry.ts +30 -0
  365. package/dist/templates/default/packages/disposabl-kit/mobile/billing/account-billing.tsx +216 -0
  366. package/dist/templates/default/packages/disposabl-kit/mobile/billing/session.ts +73 -0
  367. package/dist/templates/default/packages/disposabl-kit/mobile/components/account-profile.tsx +128 -0
  368. package/dist/templates/default/packages/disposabl-kit/mobile/components/appearance-settings.tsx +128 -0
  369. package/dist/templates/default/packages/disposabl-kit/mobile/components/auth-form.tsx +168 -68
  370. package/dist/templates/default/packages/disposabl-kit/mobile/components/auth-ui.tsx +52 -8
  371. package/dist/templates/default/packages/disposabl-kit/mobile/components/email-verification.tsx +77 -0
  372. package/dist/templates/default/packages/disposabl-kit/mobile/components/google-button.tsx +66 -0
  373. package/dist/templates/default/packages/disposabl-kit/mobile/components/google-sign-in.tsx +121 -0
  374. package/dist/templates/default/packages/disposabl-kit/mobile/components/settings-links.tsx +53 -0
  375. package/dist/templates/default/packages/disposabl-kit/mobile/components/settings-page.tsx +58 -0
  376. package/dist/templates/default/packages/disposabl-kit/mobile/design/accent.ts +31 -0
  377. package/dist/templates/default/packages/disposabl-kit/mobile/design/avatar.tsx +38 -0
  378. package/dist/templates/default/packages/disposabl-kit/mobile/design/brand-mark.tsx +18 -0
  379. package/dist/templates/default/packages/disposabl-kit/mobile/design/native-button.tsx +20 -0
  380. package/dist/templates/default/packages/disposabl-kit/mobile/design/preferences.tsx +234 -0
  381. package/dist/templates/default/packages/disposabl-kit/mobile/design/primitives.tsx +229 -0
  382. package/dist/templates/default/packages/disposabl-kit/mobile/design/theme-provider.tsx +198 -0
  383. package/dist/templates/default/packages/disposabl-kit/mobile/design/theme.ts +13 -0
  384. package/dist/templates/default/packages/disposabl-kit/mobile/design/themed-text.tsx +61 -0
  385. package/dist/templates/default/packages/disposabl-kit/mobile/design/use-theme.ts +27 -0
  386. package/dist/templates/default/packages/disposabl-kit/mobile/expo-plugin.cjs +28 -5
  387. package/dist/templates/default/packages/disposabl-kit/mobile/global.css +165 -0
  388. package/dist/templates/default/packages/disposabl-kit/mobile/index.ts +3 -0
  389. package/dist/templates/default/packages/disposabl-kit/mobile/layout.tsx +156 -23
  390. package/dist/templates/default/packages/disposabl-kit/mobile/lib/auth-return.ts +10 -0
  391. package/dist/templates/default/packages/disposabl-kit/mobile/lib/logo-dark.png +0 -0
  392. package/dist/templates/default/packages/disposabl-kit/mobile/lib/logo-light.png +0 -0
  393. package/dist/templates/default/packages/disposabl-kit/mobile/screens/account.tsx +171 -39
  394. package/dist/templates/default/packages/disposabl-kit/mobile/screens/change-password.tsx +147 -0
  395. package/dist/templates/default/packages/disposabl-kit/mobile/screens/forgot-password.tsx +158 -0
  396. package/dist/templates/default/packages/disposabl-kit/mobile/screens/home.tsx +162 -54
  397. package/dist/templates/default/packages/disposabl-kit/mobile/updates/current-update.ts +19 -0
  398. package/dist/templates/default/packages/disposabl-kit/mobile/updates/foreground-check.ts +19 -0
  399. package/dist/templates/default/packages/disposabl-kit/mobile/updates/update-prompt.tsx +201 -0
  400. package/dist/templates/default/packages/disposabl-kit/package.json +62 -22
  401. package/dist/templates/default/packages/disposabl-kit/payments/autumn.config.example +13 -0
  402. package/dist/templates/default/packages/disposabl-kit/server/billing-functions.ts +93 -0
  403. package/dist/templates/default/packages/disposabl-kit/server/billing.ts +119 -0
  404. package/dist/templates/default/packages/disposabl-kit/server/files-functions.ts +196 -0
  405. package/dist/templates/default/packages/disposabl-kit/server/files.ts +133 -0
  406. package/dist/templates/default/packages/disposabl-kit/server/google.ts +95 -0
  407. package/dist/templates/default/packages/disposabl-kit/server/http.ts +68 -18
  408. package/dist/templates/default/packages/disposabl-kit/server/lib/platform-spec.ts +99 -16
  409. package/dist/templates/default/packages/disposabl-kit/server/lib/static.ts +43 -5
  410. package/dist/templates/default/packages/disposabl-kit/server/lib/telemetry.ts +139 -0
  411. package/dist/templates/default/packages/sdk/package.json +1 -1
  412. package/dist/templates/default/packages/sdk/src/config.ts +1 -0
  413. package/dist/templates/default/packages/skill/SKILL.md +10 -2
  414. package/dist/templates/default/packages/skill/references/agent.md +28 -0
  415. package/dist/templates/default/packages/skill/references/delivery.md +2 -0
  416. package/dist/templates/default/packages/skill/references/design.md +2 -0
  417. package/dist/templates/default/packages/skill/references/iphone-preview.md +114 -0
  418. package/dist/templates/default/packages/skill/scripts/sign-iphone.py +126 -0
  419. package/dist/templates/default/packages/tests/README.md +10 -0
  420. package/dist/templates/default/packages/tests/billing.test.ts +77 -0
  421. package/dist/templates/default/packages/tests/components/mobile-google.test.mjs +142 -0
  422. package/dist/templates/default/packages/tests/components/mobile-settings.test.mjs +118 -0
  423. package/dist/templates/default/packages/tests/components/mobile-theme.test.mjs +122 -0
  424. package/dist/templates/default/packages/tests/components/mobile-updates.test.mjs +139 -0
  425. package/dist/templates/default/packages/tests/e2e.config.ts +1 -0
  426. package/dist/templates/default/packages/tests/files.test.ts +234 -0
  427. package/dist/templates/default/packages/tests/flows/email-delivery.e2e.ts +93 -0
  428. package/dist/templates/default/packages/tests/flows/files.e2e.ts +97 -0
  429. package/dist/templates/default/packages/tests/flows/legal.e2e.ts +38 -0
  430. package/dist/templates/default/packages/tests/flows/mcp.e2e.ts +120 -0
  431. package/dist/templates/default/packages/tests/flows/mobile-auth-disabled.e2e.ts +33 -0
  432. package/dist/templates/default/packages/tests/flows/mobile.e2e.ts +6 -4
  433. package/dist/templates/default/packages/tests/flows/password-backend.e2e.ts +58 -0
  434. package/dist/templates/default/packages/tests/flows/passwords.e2e.ts +206 -0
  435. package/dist/templates/default/packages/tests/flows/seo.e2e.ts +34 -0
  436. package/dist/templates/default/packages/tests/flows/web.e2e.ts +42 -2
  437. package/dist/templates/default/packages/tests/helpers/mobile.ts +31 -0
  438. package/dist/templates/default/packages/tests/ios-ota.test.ts +267 -0
  439. package/dist/templates/default/packages/tests/mobile-google.test.ts +100 -0
  440. package/dist/templates/default/packages/tests/mobile-settings.test.ts +21 -0
  441. package/dist/templates/default/packages/tests/mobile-theme.test.ts +13 -0
  442. package/dist/templates/default/packages/tests/mobile-updates-component.test.ts +14 -0
  443. package/dist/templates/default/packages/tests/mobile-updates.test.ts +122 -0
  444. package/dist/templates/default/packages/tests/native-billing.test.ts +138 -0
  445. package/dist/templates/default/packages/tests/package.json +11 -6
  446. package/dist/templates/default/packages/tests/seo-config.test.ts +17 -0
  447. package/dist/templates/default/packages/tests/telemetry.test.ts +188 -0
  448. package/dist/templates/default/patches/react-native-css@3.1.0-rc.1.patch +42 -0
  449. package/dist/templates/default/vendor/README.md +30 -23
  450. package/dist/templates/default/vendor/convex-auth-437831bd-disposabl.3.tgz +0 -0
  451. package/package.json +8 -8
  452. package/dist/templates/default/packages/backend/convex/mcpEnterprise/README.md +0 -42
  453. package/dist/templates/default/packages/backend/convex/mcpEnterprise/internal.ts +0 -153
  454. package/dist/templates/default/packages/backend/convex/mcpEnterprise/provision.ts +0 -102
  455. package/dist/templates/default/packages/backend/convex/mcpEnterprise/validator.ts +0 -35
  456. package/dist/templates/default/packages/cli/delete.ts +0 -48
  457. package/dist/templates/default/packages/cli/preview.ts +0 -234
  458. package/dist/templates/default/packages/disposabl-kit/server/mcp/enterprise.ts +0 -267
  459. package/dist/templates/default/packages/disposabl-kit/server/mcp/identity.ts +0 -33
  460. package/dist/templates/default/vendor/convex-auth-6c0ebf3f.tgz +0 -0
  461. /package/dist/templates/default/apps/mobile/src/app/{(authenticated)/account.tsx → settings.tsx} +0 -0
@@ -4,7 +4,7 @@ Use this reference while editing. Preserve behavior first; macro adoption is sec
4
4
 
5
5
  ## Module and naming
6
6
 
7
- Convert the module class and remove `Name(...)` only when the paired core reads the macro-synthesized name:
7
+ Convert the module class, carry the name into `@ExpoModule("...")`, and remove `Name(...)`:
8
8
 
9
9
  ```swift
10
10
  // 1.0
@@ -19,7 +19,9 @@ public final class CameraModule: Module {
19
19
  public final class CameraModule: Module {}
20
20
  ```
21
21
 
22
- Always carry a custom 1.0 name into `@ExpoModule("...")`. A stale `Name(...)` can override or conflict with the 2.0 name depending on the core revision. In mixed mode, remove `Name(...)` only after verifying that the module still resolves under its expected JS name.
22
+ Always carry a custom 1.0 name into `@ExpoModule("...")`. Without an argument, the name defaults to the Swift class name. Core reads the `@ExpoModule` name only when `definition()` has no `Name(...)` entry, so a stale `Name(...)` silently wins in mixed mode. Remove it, then verify that the module still resolves under its expected JS name.
23
+
24
+ Keep the `Module` superclass. `@ExpoModule` also works on a class without one, but removing it is not part of a migration: `sendEvent` and the overridable lifecycle hooks come from it.
23
25
 
24
26
  ## Functions
25
27
 
@@ -46,9 +48,29 @@ Preserve:
46
48
  - thrown errors and return type
47
49
  - whether the result is synchronous or a Promise
48
50
 
49
- Do not migrate functions that resolve to the same JS name unless the checked-out macro has overload grouping and collision diagnostics. Older 2.0 implementations install one property per declaration, so the last overload silently wins.
51
+ Keep functions that resolve to the same JS name on the DSL. The plugin has no overload grouping. It reports two `@JS` members with one JS name on one object as a build error, so leave the overloads in `definition()` as they are.
52
+
53
+ Keep in DSL any unsupported signature such as variadics or unresolved generics. `inout` and `isolated` parameters are build errors. A `Promise` parameter is also unsupported; refactor it as described under Async functions.
54
+
55
+ These argument types work in a `@JS` signature on SDK 58:
56
+
57
+ - **Free-form values.** `Any`, `[Any]`, and `[String: Any]`, optional or nested, are accepted as arguments, return values, and properties. A 1.0 `[String: Any]` argument keeps its Swift type.
58
+ - **Closures.** A function-typed parameter receives the JS function. A closure that returns a value must be `throws`, and it blocks the caller until JS returns. A `@JS` function cannot return a closure. See `references/compatibility.md` for the rules.
59
+ - **Tuples.** An unlabeled tuple such as `(Int, String)` converts to a JS array, and a labeled tuple such as `(x: Double, y: Double)` to a JS object. Replacing a 1.0 array or dictionary type with a tuple changes the Swift API, so do it only when the user asks.
60
+ - **`JavaScriptValue`.** Take it as `borrowing JavaScriptValue`. On SDK 58 the DSL no longer accepts `JavaScriptValue` arguments or results, so such a member must migrate.
50
61
 
51
- Reject or keep in DSL any unsupported signature such as variadics, `inout`, unresolved generics, or closure parameters without verified callback support. A `Promise` parameter is also unsupported; refactor it as described under Async functions.
62
+ ```swift
63
+ // 1.0, no longer compiles on SDK 58
64
+ Function("isFunction") { (value: JavaScriptValue) -> Bool in
65
+ return value.isFunction()
66
+ }
67
+
68
+ // 2.0
69
+ @JS
70
+ func isFunction(_ value: borrowing JavaScriptValue) -> Bool {
71
+ return value.isFunction()
72
+ }
73
+ ```
52
74
 
53
75
  ### Async functions
54
76
 
@@ -106,7 +128,7 @@ func download(url: URL) -> Task<DownloadResult, any Error> {
106
128
  }
107
129
  ```
108
130
 
109
- This shape requires the `JavaScriptEncodable` conformance for `Task` in the checked-out core (encode-only; a JS promise does not decode back into a `Task`). Verify it exists before using this shape; prefer shape 1 or 2 when it is absent.
131
+ This shape requires the `JavaScriptEncodable` conformance for `Task`, which `expo-modules-jsi` provides on SDK 58 (encode-only; a JS promise does not decode back into a `Task`). A `Task { }` created here starts on the JS thread. To run the work off it, see "Returning a `Task`" under Threading.
110
132
 
111
133
  #### Threading: the architectural difference
112
134
 
@@ -128,7 +150,7 @@ Audit every `AsyncFunction` you migrate for what the body does before its first
128
150
  - Blocking I/O, file or database access, image or crypto work, or an unbounded loop: never leave this on the JS actor.
129
151
  - `.runOnQueue(...)` in 1.0: the queue was the contract. See the continuation pattern below.
130
152
 
131
- To restore the 1.0 behavior, use the `@JS` macro's `.concurrent` option (macros plugin `0.10.0`):
153
+ To restore the 1.0 behavior, use the `@JS` macro's `.concurrent` option:
132
154
 
133
155
  ```swift
134
156
  // Body runs off the JS thread, like a 1.0 AsyncFunction.
@@ -144,20 +166,79 @@ func performWork() async throws {}
144
166
 
145
167
  Only the body moves. Arguments are still decoded on the JS thread and the result is still encoded back on it, so `.concurrent` changes execution, not the JS contract. This makes it the preferred fix for a migrated function that relied on 1.0 background execution: the intent is explicit and the body stays as written.
146
168
 
147
- Two constraints:
169
+ Three constraints:
148
170
 
149
171
  - `.concurrent` is valid only on an `async` function. On anything else it is diagnosed on the `@JS` attribute.
150
172
  - You must still write `async` yourself. The macro cannot add it, but the diagnostic for a synchronous function carries a fix-it that inserts it.
173
+ - The call sends the module or shared object off the JS thread, so in Swift 6 language mode the class must be `Sendable`. `Module` and `SharedObject` are not `Sendable`, so `@unchecked Sendable` is the only conformance a subclass can have. Newer `expo-modules-macros` versions add it themselves. Run `npx --no-install expo-modules swift:expand --symbol MyModule ios/MyModule.swift`: when the output has an `extension MyModule: @unchecked Sendable` block, do not declare it. Otherwise declare `@unchecked Sendable` on the class, as `expo-sqlite` does. Either way the compiler no longer checks this state, so check that the off-thread code touches only state that is safe to share, and say in a comment what guards it.
174
+
175
+ #### Returning a `Task`
176
+
177
+ A synchronous `@JS` function that returns a `Task` also gives JS a promise (shape 3), and the task can run the work off the JS thread. That happens only when the task does not inherit `@JavaScriptActor`:
178
+
179
+ ```swift
180
+ // The detached task runs on the concurrent thread pool. The function returns right away.
181
+ @JS
182
+ func clearCache() -> Task<Void, any Error> {
183
+ return Task.detached {
184
+ try FileManager.default.removeItem(at: self.cacheDirectory)
185
+ }
186
+ }
187
+ ```
188
+
189
+ - The macro isolates a synchronous `@JS` function to `@JavaScriptActor`, and `Task { }` inherits that isolation. The executor of that actor runs each job immediately on the current thread, so the body of a `Task { }` runs on the JS thread before the function even returns. Use `Task.detached { }`, or mark the function `nonisolated` so that its `Task { }` runs on the concurrent thread pool.
190
+ - In Swift 6 language mode the closure sends `self` off the JS thread, so the class needs the `@unchecked Sendable` conformance described under `.concurrent`.
191
+ - Throw inside the task, not from the function. An error that the function throws before it returns the task reaches JS as a synchronous exception, where a 1.0 `AsyncFunction` rejected its promise.
151
192
 
152
- **Check availability first.** The plugin side shipped in `0.10.0`, but this also needs a `JSOptions` type and a second `@JS` overload in core, because the options-only spelling cannot reuse the unlabeled JS-name slot. Core has lagged the plugin on every 2.0 feature so far, and where it still declares `@JS(_ jsName: String? = nil)` alone, `@JS(.concurrent)` does not compile. Read the checked-out declaration:
193
+ For a plain migration, prefer `@JS(.concurrent)`: it keeps the `async` signature and the body as written. Return a `Task` when the work already is one.
194
+
195
+ #### Sync and async pairs
196
+
197
+ 1.0 modules often register one body twice: a `Function` for synchronous calls and an `AsyncFunction` that runs the same work off the JS thread. Merge the pair with `.withAsync`, which binds the function under its own JS name and again under the given name as a promise-returning variant that runs on the concurrent thread pool:
198
+
199
+ ```swift
200
+ // 1.0
201
+ Function("readSync") { (path: String) throws -> String in
202
+ return try self.readFile(path)
203
+ }
204
+ AsyncFunction("read") { (path: String) throws -> String in
205
+ return try self.readFile(path)
206
+ }
153
207
 
154
- ```bash
155
- grep -rn 'public macro JS' <expo-modules-core>
208
+ // 2.0
209
+ @JS("readSync", .withAsync("read"))
210
+ func readSync(path: String) throws -> String {
211
+ return try readFile(path)
212
+ }
156
213
  ```
157
214
 
158
- If it takes only a name, use the explicit patterns below instead.
215
+ Constraints:
216
+
217
+ - The function must be synchronous. On an `async` function the macro rejects the option and points to `.concurrent`.
218
+ - The name must be a string literal, and the option can appear only once.
219
+ - The variant is not isolated to the JS thread, so the body must be safe on any thread. A function isolated to a global actor such as `@MainActor` is rejected; mark it `nonisolated` when its isolation comes from elsewhere.
220
+ - In Swift 6 language mode the class needs the `@unchecked Sendable` conformance described under `.concurrent`.
221
+
222
+ #### Queue-pinned functions
223
+
224
+ For `.runOnQueue(.main)`, mark the `async` function `@MainActor`. The macro then does not isolate it to the JS thread, and the body runs on the main actor. `expo-haptics` migrated this way in SDK 58:
159
225
 
160
- For a queue-pinned function, or when `.concurrent` is unavailable, prefer restructuring the work onto the Swift Concurrency model (structured concurrency, an actor, or a detached task for blocking work). When that is not feasible because the queue itself is the contract, for example a library that must be called from one serial queue, convert to an `async` method that dispatches to that queue inside a checked continuation:
226
+ ```swift
227
+ // 1.0
228
+ AsyncFunction("selectionAsync") {
229
+ UISelectionFeedbackGenerator().selectionChanged()
230
+ }
231
+ .runOnQueue(.main)
232
+
233
+ // 2.0
234
+ @JS
235
+ @MainActor
236
+ func selectionAsync() async {
237
+ UISelectionFeedbackGenerator().selectionChanged()
238
+ }
239
+ ```
240
+
241
+ For a function pinned to any other queue, prefer restructuring the work onto the Swift Concurrency model (structured concurrency, an actor, or a detached task for blocking work). When that is not feasible because the queue itself is the contract, for example a library that must be called from one serial queue, convert to an `async` method that dispatches to that queue inside a checked continuation:
161
242
 
162
243
  ```swift
163
244
  // 1.0
@@ -197,29 +278,25 @@ var volume: Double = 1
197
278
 
198
279
  Access control does not define JS mutability. Verify whether the declaration is syntactically settable; a stored `var` normally produces a JS setter.
199
280
 
200
- Map a 1.0 `Constant` to a `@JS let`; a `let` property is a natural constant and produces a read-only JS property:
281
+ Map a 1.0 `Constant` to a `@JS lazy var`. A 1.0 `Constant` runs its closure at the first read and caches the result. A `lazy` `@JS` property does the same: it is read-only from JS, and its first read stores the value as a data property on the JS object, so later reads do not call native code.
201
282
 
202
283
  ```swift
203
284
  // 1.0
204
- Constant("apiVersion") { 3 }
285
+ Constant("buildInfo") { computeBuildInfo() }
205
286
 
206
287
  // 2.0
207
288
  @JS
208
- let apiVersion = 3
289
+ lazy var buildInfo = computeBuildInfo()
209
290
  ```
210
291
 
211
- Evaluation timing shifts: a 1.0 `Constant` closure runs lazily, while a `let` initializes with the module instance. When the value is expensive and must stay deferred, keep private lazy storage and expose a getter-only computed property (a `var` with a `{ }` getter body and no storage of its own), not a stored `lazy var`:
292
+ A `@JS let` also produces a read-only JS property, but it initializes with the module instance. Use it only for a cheap value whose evaluation time does not matter, such as a literal:
212
293
 
213
294
  ```swift
214
- private lazy var cachedInfo = computeInfo()
215
-
216
295
  @JS
217
- var info: Info { // computed: recomputes nothing, just returns the cached value
218
- return cachedInfo
219
- }
296
+ let apiVersion = 3
220
297
  ```
221
298
 
222
- Do not expose a cached value as a settable `lazy @JS var`.
299
+ Do not map a 1.0 `Property` getter to a `lazy var`. A `Property` getter runs on every read, so a `lazy var` would freeze its first value.
223
300
 
224
301
  ## Events
225
302
 
@@ -242,9 +319,24 @@ func report(percent: Double) {
242
319
 
243
320
  The default `@Event` wire name strips a leading `on` and decapitalizes the remainder: Swift `onProgress` emits `progress`. 1.0 modules commonly expose `onProgress`. During migration, pass the original wire name explicitly unless an intentional JS breaking change was approved.
244
321
 
245
- Use `() -> Void` for no-payload events. For payloads, create or reuse a `JavaScriptEncodable` type instead of preserving an untyped dictionary. Migrate `OnStartObserving` and `OnStopObserving` to the `didStartListening(event:)`/`didStopListening(event:)` lifecycle hooks (see Views and lifecycle).
322
+ For payloads, create or reuse a `JavaScriptEncodable` type instead of preserving an untyped dictionary. Migrate `OnStartObserving` and `OnStopObserving` to the `didStartListening(event:)`/`didStopListening(event:)` lifecycle hooks (see Views and lifecycle).
323
+
324
+ A `() -> Void` event sends `undefined` to the listener. A 1.0 `sendEvent("name")` without a body sent `{}`, so a listener that reads a field of its argument throws after a verbatim migration. Check the JS listeners. When any of them reads the argument, keep an object payload with an empty record:
325
+
326
+ ```swift
327
+ @Record
328
+ struct ReadyEvent {}
329
+
330
+ @Event("onReady")
331
+ var onReady: (ReadyEvent) -> Void
332
+
333
+ // Sends {} as before.
334
+ onReady(ReadyEvent())
335
+ ```
336
+
337
+ Use `() -> Void` only when no listener reads the argument, or when the user approves the change.
246
338
 
247
- Default `@Event` dispatch schedules onto the JS thread and is callable from other isolation contexts. Do not use `sync: true` unless core provides the matching `emitSync` overloads.
339
+ Default `@Event` dispatch schedules onto the JS thread and is callable from other isolation contexts. Do not use `sync: true`: SDK 58 core has no `emitSync`, so a synchronous event does not build.
248
340
 
249
341
  ## Shared objects
250
342
 
@@ -272,7 +364,11 @@ final class DownloadModule: Module {}
272
364
 
273
365
  Drop the leading owner argument used by instance DSL closures; use `self` in the real instance method. Preserve constructor arity and JS member names.
274
366
 
275
- Migrate only when the checked-out core supplies the shared-object decoration and construction hooks. Never create both a 1.0 `Class(...)` entry and a 2.0 registration for the same class without confirming that core intentionally merges them.
367
+ `@SharedObject` accepts any direct or indirect `SharedObject` subclass. That includes a `SharedRef<T>` subclass, such as `final class AudioPlayer: SharedRef<AVPlayer>`. Keep the superclass as it is.
368
+
369
+ The 1.0 DSL has no inheritance between JS classes: each `Class(...)` block exposes only its own entries. A `@SharedObject` class likewise exposes only the `@JS` members that it declares, so put the members of each JS class on that class.
370
+
371
+ SDK 58 core supplies the decoration and construction hooks for instance members, static members, and the `@JS init`. Never create both a 1.0 `Class(...)` entry and a 2.0 registration for the same class without confirming that core intentionally merges them.
276
372
 
277
373
  Static members belong to shared objects, not modules: a module is exported to JS as an instance, so Swift `static` members on a `Module` class are not useful there. Keep module-level values as instance `@JS` members.
278
374
 
@@ -316,17 +412,7 @@ final class Download: SharedObject {
316
412
 
317
413
  `StaticFunction` and `StaticAsyncFunction` both collapse into a `static` (or `class`) Swift declaration, with `async` carrying the distinction, exactly as `Function`/`AsyncFunction` do for instance members. Because 1.0 had no static property component, a `StaticFunction` that only returns a stored value can become a `@JS static var` in 2.0. That changes the JS contract from a call to a property access, so do it only when the user asks; a syntax migration keeps it a function.
318
414
 
319
- What decides whether any of this works is the binding path: instance members bind onto the class prototype, while `static`/`class` members bind onto the constructor object through a separate, `constructor:`-labeled decoration hook. The two are independent capabilities.
320
-
321
- **Support status.** The macros plugin has emitted the `constructor:` binding since `0.7.0`, but core shipped the `prototype:` overload well ahead of it. Where only `prototype:` is declared, a `@JS static` member expands and then fails to link. Verify before migrating any static member:
322
-
323
- ```bash
324
- grep -rn '_decorateSharedObject' <expo-modules-core>
325
- ```
326
-
327
- If only the `prototype:` overload is declared, keep every `StaticFunction`/`StaticAsyncFunction` entry in the 1.0 `Class(...)` block. Mixed mode is the expected outcome here: migrate the constructor and instance members, leave the static entries on the DSL, and say in the handoff that static members stayed behind because the installed core does not bind them yet.
328
-
329
- Static functions and static properties travel this same path, so neither is available ahead of the other. When the hook is present, confirm it by calling the member on the JS class rather than on an instance; an instance-side test passes whether or not static binding works.
415
+ Instance members bind onto the class prototype, while `static`/`class` members bind onto the JS class object through a separate hook. Confirm a migrated static member by calling it on the JS class, not on an instance: an instance-side test passes whether or not static binding works.
330
416
 
331
417
  ## Records
332
418
 
@@ -349,11 +435,13 @@ Rules:
349
435
 
350
436
  Preserve the 1.0 contract exactly. For example, migrate `@Field var source: URL? = nil` to `var source: URL?`, not to `var source: URL`, unless the user approved a breaking change.
351
437
 
352
- Every stored property is part of the 2.0 record surface. If the old type contains stored bookkeeping that was not a 1.0 field, move it out of the record or leave the type on 1.0; there is no field opt-out. Verify that each field supports the required `JavaScriptDecodable`/`JavaScriptEncodable` direction.
438
+ Every non-`static`, non-`private`/`fileprivate`, non-`lazy` stored property is part of the 2.0 record surface. If the old type contains stored bookkeeping that was not a 1.0 field, make it `private` with a default value, move it out of the record, or leave the type on 1.0. Verify that each field supports the required `JavaScriptDecodable`/`JavaScriptEncodable` direction. Free-form fields such as `[String: Any]?` are accepted.
439
+
440
+ `@Record` applies to a struct, or to a `final class` with no inheritance clause. A 1.0 record class (`class Options: Record`) must become `final` and drop `: Record`. The macro adds the conformance, and other protocol conformances go in an extension. When the class has a superclass or subclasses, convert it to a struct only if no Swift caller relies on reference semantics; otherwise keep it on 1.0.
353
441
 
354
442
  ## Unions
355
443
 
356
- `@Union` (macros plugin `0.10.0`) is the typed, N-case alternative to 1.0's `Either` types. It applies to a non-generic `enum` whose every case carries exactly one associated value:
444
+ `@Union` is the typed, N-case alternative to 1.0's `Either` types. It applies to a non-generic `enum` whose every case carries exactly one associated value:
357
445
 
358
446
  ```swift
359
447
  // 1.0: JS `string | SourceOptions`, unwrapped by probing each side.
@@ -399,19 +487,13 @@ A type the union does not carry is a compile error, not a runtime `nil`. A misma
399
487
 
400
488
  Constraints, each a compile error: a generic enum, no cases, a case with no payload or more than one, a default value on the payload, and two cases with the identical payload spelling.
401
489
 
402
- **Check availability first.** The plugin side shipped in `0.10.0`, but this also needs the `Union` macro declaration and the `UnionCaseMismatch` exception in core:
403
-
404
- ```bash
405
- grep -rn 'public macro Union\|UnionCaseMismatch' <expo-modules-core>
406
- ```
407
-
408
- Keep `Either` types on the 1.0 DSL until both exist in the target. Treat adopting `@Union` as an API-shape change to raise with the user rather than a mechanical step: it renames nothing in JS, but it does restructure Swift call sites.
490
+ Treat adopting `@Union` as an API-shape change to raise with the user rather than a mechanical step: it renames nothing in JS, but it does restructure Swift call sites.
409
491
 
410
492
  ## Views and lifecycle
411
493
 
412
- Views are not covered by 2.0 yet. Keep UIKit `View`, `Prop`, view `Events`, and `OnViewDidUpdateProps` DSL entries on 1.0. Macro declarations or expansion tests alone do not prove the runtime update path exists.
494
+ Views are not covered by 2.0 yet. Keep UIKit `View`, `Prop`, view `Events`, and `OnViewDidUpdateProps` DSL entries on 1.0. Expansion tests alone do not prove the runtime update path exists.
413
495
 
414
- The planned shape is a class marked `@ExpoView` whose props and event callbacks are declared once in a typed `@ViewProps` struct, instead of split between the native view and a hand-written JS prop type. Until that lands complete, a module with views migrates its non-view members and keeps the view on the DSL. That is a normal mixed-mode result, not a failed migration.
496
+ The planned shape is a class marked `@ExpoView` whose props and event callbacks are declared once in a typed `@ViewProps` struct, instead of split between the native view and a hand-written JS prop type. The plugin implements both macros, but SDK 58 core does not declare them, so module source cannot use them. A module with views migrates its non-view members and keeps the view on the DSL. That is a normal mixed-mode result, not a failed migration.
415
497
 
416
498
  Module lifecycle is core-owned rather than macro-generated. The DSL components map to hook methods with no-op defaults:
417
499
 
@@ -429,18 +511,18 @@ Rules:
429
511
  - `didCreate()` runs after the module is registered, slightly later than 1.0 `OnCreate`, which fires before registration; `willDestroy()` runs at holder teardown. Verify nothing depends on the earlier timing before migrating `OnCreate`.
430
512
  - DSL lifecycle components can remain during an incremental migration and each fires exactly once, but do not implement a DSL component and its hook for the same behavior, or the work runs twice.
431
513
 
432
- There is no 2.0 replacement for every lifecycle component; for example, retain app-context teardown handling when no matching hook exists.
514
+ `OnAppContextDestroys`, `OnAppEntersForeground`, `OnAppEntersBackground`, and `OnAppBecomesActive` have no 2.0 hook. Keep them in `definition()`.
433
515
 
434
516
  ## Mixed mode
435
517
 
436
- `@ExpoModule` may coexist with a non-empty `definition()` when the paired core supports merging the two surfaces. Keep only unsupported entries in the DSL and avoid duplicate names across macro and DSL registrations.
518
+ `@ExpoModule` may coexist with a non-empty `definition()`; core merges the two surfaces. Keep only unsupported entries in the DSL and avoid duplicate names across macro and DSL registrations. `expo-sqlite` in SDK 58 is a shipped example: its module functions, properties, event, and lifecycle hooks use the 2.0 forms, while its shared-object classes stay in `definition()`.
437
519
 
438
520
  Before deleting `definition()`, verify that it contains no:
439
521
 
522
+ - `Name(...)` entry whose name differs from the `@ExpoModule` name
440
523
  - views or view events
441
524
  - lifecycle or app-context listeners
442
525
  - queue-pinned functions
443
- - `StaticFunction`/`StaticAsyncFunction` entries, unless core declares the `constructor:` decoration hook
444
526
 
445
527
  ## Contract checklist
446
528
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-module
3
3
  description: Guide for creating and writing Expo native modules and views using the Expo Modules API (Swift, Kotlin, TypeScript). Covers module definition DSL, native views, shared objects, config plugins, lifecycle hooks, autolinking, and type system. Use when building or modifying native modules for Expo. Not for migrating an existing Swift module from the definition DSL to the Expo Modules API 2.0 macros; use expo-migrate-module (from the expo-experiments plugin) for that.
4
- version: 1.0.0
5
4
  license: MIT
6
5
  ---
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-native-ui
3
3
  description: Build beautiful, native-feeling Expo screens. Covers Apple HIG styling, semantic colors, native controls, SF Symbols, media, visual effects, gradients, storage, and responsive layout. For routing and navigation, use the expo-router skill; for motion and animation, use the expo-animation skill.
4
- version: 1.1.1
5
4
  license: MIT
6
5
  ---
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-overview
3
3
  description: "Entry point and router for every Expo or EAS task. Load this skill first — before writing code and before choosing another expo-* / eas-* skill — when the request, PRD, or spec mentions Expo, EAS, Expo Go, or an expo-* package, or the project has an `expo` dependency in `package.json`. Within that gate it also covers app specs and designs to implement (tabs, stacks, maps, lists, navigation, building from a screenshot), and phrasings like 'implement a mobile app', 'make my app look native', 'add navigation', 'fetch some data', 'upgrade my SDK', 'add Expo to my existing native app', 'ship to the App Store', or 'I'm new to Expo, where do I start'. A fully specified request (SDK pinned, libraries named, layout given) still routes through here — the shared setup rules still apply. Do NOT load it when neither signal is present: a bare React Native project with no `expo` dependency is not Expo work. Detects the real goal, routes to the right expo-* / eas-* skill, and owns the shared setup rules."
4
- version: 1.2.0
5
4
  license: MIT
6
5
  ---
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-project-structure
3
3
  description: Folder structure for a new Expo app. Use when scaffolding or laying out a new Expo project with Expo Router, or deciding where a file should live in one. For new projects only — never restructure an existing app to match.
4
- version: 1.0.0
5
4
  license: MIT
6
5
  ---
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-router
3
3
  description: Navigation and routing for Expo Router. Covers file-based routes, groups and dynamic routes, folder organization, Link with previews and context menus, native Stack, page titles, modals and form sheets, NativeTabs, headers and toolbars, and header search bars.
4
- version: 1.0.1
5
4
  license: MIT
6
5
  ---
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-skill-eval
3
3
  description: Evaluate Expo skills in this repo end-to-end - trigger accuracy, generated code quality, and runtime screenshots on iOS simulator and Android emulator via Expo Go (web optional). Use when the user wants to eval an Expo skill, test that a skill produces working code, benchmark a skill with device screenshots, or verify a skill's output renders correctly.
4
- version: 1.0.0
5
4
  license: MIT
6
5
  allowed-tools: "Read(~/.cache/expo-skill-eval/**), Read(/tmp/expo-skill-eval-*/**), Read(/private/tmp/expo-skill-eval-*/**), Write(/tmp/expo-skill-eval-*/**), Write(/private/tmp/expo-skill-eval-*/**), Edit(/tmp/expo-skill-eval-*/**), Edit(/private/tmp/expo-skill-eval-*/**), Bash(python3 /tmp/expo-skill-eval-*), Bash(python3 /private/tmp/expo-skill-eval-*), Bash(python3 *expo-skill-eval/scripts/*), Bash(tee /tmp/expo-skill-eval-*), Bash(tee /private/tmp/expo-skill-eval-*), Bash(bash *expo-skill-eval/scripts/*)"
7
6
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-ui
3
3
  description: "Build native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android. Default to @expo/ui for sheets (BottomSheet), pickers, sliders, toggles, menus, and grouped-form sections — do NOT reach for Reanimated, @gorhom/bottom-sheet, or RN built-in Picker/Switch; use @expo/ui instead. Fall back to RN built-ins only when @expo/ui is missing the component. NOTE: @expo/ui List renders native grouped rows like an iOS Settings screen — it is NOT a virtualized list; use FlatList/FlashList for large datasets. Covers universal components (Host, Column, Row, Button, Text, List, BottomSheet, FieldGroup, Switch, Slider, Picker, Menu), drop-in replacements for RN community libraries, and platform-specific SwiftUI/Jetpack Compose trees. Not for Expo Router navigation, Reanimated, or data fetching."
4
- version: 1.0.0
5
4
  license: MIT
6
5
  allowed-tools: "Bash(node *expo-ui/scripts/list-components.js *)"
7
6
  ---
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-upgrade
3
3
  description: Guidelines for upgrading Expo SDK versions and fixing dependency issues
4
- version: 1.0.0
5
4
  license: MIT
6
5
  ---
7
6
 
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: expo-web-to-native
3
3
  description: Migrate an existing web React app to a native iOS/Android app with Expo. Use when the user wants to turn a website into a mobile app, port a Next.js/Vite/CRA React codebase to React Native, reuse web code on native incrementally, or asks how web idioms (the DOM, CSS, React Router, localStorage, window) map to native. This is the end-to-end migration guide; use the `expo-dom` skill for the DOM-component mechanism itself.
4
- version: 1.0.0
5
4
  license: MIT
6
5
  ---
7
6
 
@@ -21,6 +21,8 @@ agent-device open <app-or-bundle-id> --platform ios --foreground
21
21
 
22
22
  Follow the initial interactive snapshot and corrective error hints. If the shell reports that `agent-device` is unavailable, stop and ask the user to install it or expose their existing installation on `PATH`.
23
23
 
24
+ When you finish, if your session booted the simulator, run `agent-device close --shutdown`, unless the user asks to keep it running.
25
+
24
26
  Only when the task is specialized or a command shape is unclear, read the relevant version-matched help topic:
25
27
 
26
28
  ```bash
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: agent-device
3
+ description: Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.
4
+ ---
5
+
6
+ # agent-device
7
+
8
+ For a normal app-driving task, start immediately. Do not probe first with `--help`, `--version`, `devices`, `appstate`, `snapshot`, or `screenshot`:
9
+
10
+ ```bash
11
+ agent-device open <app> --foreground
12
+ ```
13
+
14
+ That starts the session and returns the initial interactive snapshot with `@refs`.
15
+
16
+ Loop: act with `press|click|fill|longpress <target> ... --settle`, `scroll <direction> --settle`, or `back --settle`; continue from the printed diff, verify the named expectation (`wait text "..."`, `is`, `get`, or `find`), then run `agent-device close`, or `agent-device close --shutdown` if your session booted a local simulator or emulator, unless the user asks to keep it running.
17
+
18
+ Reaching an off-screen target is one command, not a scroll-and-check loop: `scroll down --until <selector>` scrolls until that element is on screen, and `scroll bottom` runs to the end of the content. Repeated bare `scroll down` calls are the slow way to find something.
19
+
20
+ Copy refs byte-for-byte: `@e12`, `@e12~s4` — keep the `@` and any `~sN`. Prefer current refs, then `id`/`label`/`role` selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run `agent-device screenshot`, inspect the image, use coordinates, then retry `snapshot -i` after navigating. Otherwise run `snapshot -i` only when the diff lacks the next target.
21
+
22
+ Error output includes corrective hints; follow them instead of re-planning. Only when the task is specialized (for example gestures, scripting, TV, macOS, remote, or debugging) or a command shape is unclear, run `agent-device help <topic>`. `agent-device --help` lists topics, but is not a startup step.
23
+
24
+ To capture network traffic on a Limrun session, see `agent-device help remote` or the Limrun docs.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: android-emulator
3
+ description: Verify and debug native, React Native, Expo, or Flutter apps on an Android Emulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an Android virtual device.
4
+ ---
5
+
6
+ # Android Emulator
7
+
8
+ Require the `agent-device` CLI to be installed separately before driving an emulator:
9
+
10
+ ```bash
11
+ npm install -g agent-device@latest
12
+ ```
13
+
14
+ Treat installation and upgrades as user-owned setup steps. Do not run that command autonomously or substitute a mutable `npx -y agent-device@latest` invocation.
15
+
16
+ For a normal app-driving task, start immediately. Do not probe first with `--help`, `--version`, `devices`, `appstate`, `snapshot`, or `screenshot`. Target Android explicitly when opening an app or package id:
17
+
18
+ ```bash
19
+ agent-device open <app-or-package-id> --platform android --foreground
20
+ ```
21
+
22
+ Follow the initial interactive snapshot and corrective error hints. If the shell reports that `agent-device` is unavailable, stop and ask the user to install it or expose their existing installation on `PATH`.
23
+
24
+ When you finish, if your session booted the emulator, run `agent-device close --shutdown`, unless the user asks to keep it running.
25
+
26
+ Only when the task is specialized or a command shape is unclear, read the relevant version-matched help topic:
27
+
28
+ ```bash
29
+ agent-device help validate # engineering validation and build freshness
30
+ agent-device help debugging # screenshots, logs, traces, video, and failures
31
+ agent-device help react-native # React Native and Expo runtime guidance
32
+ agent-device help react-devtools # React components, props/state/hooks, render profiling
33
+ agent-device help scripting # durable replay and CI workflows
34
+ ```
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: dogfood
3
+ description: Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.
4
+ allowed-tools: Bash(agent-device:*), Bash(npx agent-device:*)
5
+ ---
6
+
7
+ # Dogfood
8
+
9
+ Router for exploratory QA. Private setup before using this skill:
10
+
11
+ ```bash
12
+ agent-device --version
13
+ ```
14
+
15
+ If that fails, stop and tell the user to expose a trusted `agent-device` binary on PATH or approve an exact-version npm command. This skill intentionally keeps allowed tools restricted to `agent-device` and `npx agent-device`.
16
+
17
+ Require `agent-device >= 0.14.0`; older CLIs lack these help topics. If older, stop and tell the user to upgrade the trusted install or approve an exact-version npm command. Do not run `npm install -g agent-device@latest` or `npx -y agent-device@latest` autonomously, and do not include version/upgrade commands in final plans.
18
+
19
+ Read current CLI guidance:
20
+
21
+ ```bash
22
+ agent-device help dogfood
23
+ ```
24
+
25
+ Loop: open app -> snapshot -i + screenshot -> explore flows -> capture evidence per issue -> close (`close --shutdown` if your session booted a local simulator or emulator, unless the user asks to keep it running).
26
+
27
+ Target app is required; infer platform or ask. Findings must come from runtime behavior, not source reads. Let `help dogfood` provide exact report shape, evidence commands, and current workflow guidance.