create-disposabl-app 0.10.4 → 0.11.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.
- package/README.md +3 -1
- package/dist/disposabl.js +218 -133
- package/dist/index.js +212 -47
- package/dist/templates/default/.github/scripts/apple.sh +60 -0
- package/dist/templates/default/.github/scripts/mobile.sh +10 -2
- package/dist/templates/default/.github/scripts/platforms.sh +32 -13
- package/dist/templates/default/.github/scripts/release.sh +2 -1
- package/dist/templates/default/.github/workflows/pipeline.yml +105 -44
- package/dist/templates/default/apps/desktop/README.md +5 -45
- package/dist/templates/default/apps/desktop/package.json +6 -6
- package/dist/templates/default/apps/docs/README.md +2 -4
- package/dist/templates/default/apps/docs/build.ts +10 -0
- package/dist/templates/default/apps/docs/content/backend.mdx +39 -0
- package/dist/templates/default/apps/docs/content/desktop.mdx +10 -0
- package/dist/templates/default/apps/docs/content/getting-started.mdx +26 -0
- package/dist/templates/default/apps/docs/content/index.mdx +27 -5
- package/dist/templates/default/apps/docs/content/mobile.mdx +18 -0
- package/dist/templates/default/apps/docs/content/web.mdx +14 -0
- package/dist/templates/default/apps/docs/dev.ts +40 -0
- package/dist/templates/default/apps/docs/package.json +15 -14
- package/dist/templates/default/apps/docs/press.config.ts +13 -1
- package/dist/templates/default/apps/docs/vite.config.ts +1 -0
- package/dist/templates/default/apps/mobile/.agents/skills/agent-device/SKILL.md +3 -1
- package/dist/templates/default/apps/mobile/.agents/skills/android-emulator/SKILL.md +2 -0
- package/dist/templates/default/apps/mobile/.agents/skills/dogfood/SKILL.md +1 -1
- package/dist/templates/default/apps/mobile/.agents/skills/eas-app-stores/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/eas-hosting/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/SKILL.md +7 -4
- package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/references/library-integrations.md +116 -0
- package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/references/queries.md +27 -0
- package/dist/templates/default/apps/mobile/.agents/skills/eas-observe/references/setup.md +3 -2
- package/dist/templates/default/apps/mobile/.agents/skills/eas-simulator/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/eas-update/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/eas-update-insights/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/eas-workflows/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-animation/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-data-fetching/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-design-system/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-dev-client/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-dom/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-examples/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/SKILL.md +25 -21
- package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/references/compatibility.md +136 -60
- package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/references/example.md +17 -16
- package/dist/templates/default/apps/mobile/.agents/skills/expo-migrate-module/references/migration-map.md +132 -50
- package/dist/templates/default/apps/mobile/.agents/skills/expo-module/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-native-ui/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-overview/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-project-structure/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-router/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-skill-eval/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-ui/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-upgrade/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/expo-web-to-native/SKILL.md +0 -1
- package/dist/templates/default/apps/mobile/.agents/skills/ios-simulator/SKILL.md +2 -0
- package/dist/templates/default/apps/mobile/.claude/skills/agent-device/SKILL.md +24 -0
- package/dist/templates/default/apps/mobile/.claude/skills/android-emulator/SKILL.md +34 -0
- package/dist/templates/default/apps/mobile/.claude/skills/dogfood/SKILL.md +27 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/SKILL.md +175 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/app-store-metadata.md +497 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/ios-app-store.md +376 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/native-ios.md +167 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/play-store.md +244 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/testflight.md +62 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-app-stores/references/workflows.md +120 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-hosting/SKILL.md +430 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-hosting/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/SKILL.md +49 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/library-integrations.md +116 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/metrics.md +98 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/queries.md +471 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/setup.md +530 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-observe/references/third-party.md +136 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/SKILL.md +236 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/controllers.md +139 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/logs-and-crashes.md +101 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/run-your-app.md +256 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-simulator/references/troubleshooting.md +56 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-update/SKILL.md +145 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-update/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/SKILL.md +237 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/references/channel-insights-schema.md +47 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-update-insights/references/update-insights-schema.md +69 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/SKILL.md +98 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/scripts/fetch.js +109 -0
- package/dist/templates/default/apps/mobile/.claude/skills/eas-workflows/scripts/package.json +6 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/LICENSE +21 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/RECIPES.md +385 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/SKILL.md +273 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-animation/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-app-clip/SKILL.md +290 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-app-clip/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-app-clip/references/native-module.md +96 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/SKILL.md +69 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/brownfield-integrated.md +551 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/brownfield-isolated.md +449 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/comparison.md +63 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/feature-integration.md +163 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/troubleshooting.md +88 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-brownfield/references/version-compatibility.md +40 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/SKILL.md +477 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/references/expo-router-loaders.md +341 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-data-fetching/references/offline-and-cancellation.md +68 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/SKILL.md +375 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/references/audit.md +190 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-design-system/references/native-slop.md +74 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-dev-client/SKILL.md +183 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-dev-client/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-dom/SKILL.md +424 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-dom/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-examples/SKILL.md +105 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-examples/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-examples/references/catalog.md +105 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/SKILL.md +128 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/references/compatibility.md +206 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/references/example.md +213 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-migrate-module/references/migration-map.md +539 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/SKILL.md +150 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/config-plugin.md +90 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/create-expo-module.md +206 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/lifecycle.md +127 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/module-config.md +48 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/native-module.md +286 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-module/references/native-view.md +171 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/SKILL.md +200 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/controls.md +231 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/gradients.md +106 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/icons.md +232 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/media.md +193 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/storage.md +121 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/visual-effects.md +198 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-native-ui/references/webgpu-three.md +605 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-overview/SKILL.md +119 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-overview/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-overview/references/launch-without-dev-menu.md +24 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-project-structure/SKILL.md +113 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-project-structure/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/SKILL.md +239 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/form-sheet.md +253 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/route-structure.md +229 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/search.md +248 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/tabs.md +433 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/toolbar-and-headers.md +284 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-router/references/zoom-transitions.md +158 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/SKILL.md +313 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/agents/visual-grader.md +52 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/references/design-rubric.md +45 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/references/runtime-matrix.md +34 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/check-static.sh +64 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/clean-fixture.sh +56 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/generate_viewer.py +450 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/latest-sdk.sh +46 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/make-fixture.sh +95 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/make-workspace.sh +31 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/snapshot-android.sh +284 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/snapshot-ios.sh +132 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-skill-eval/scripts/snapshot-web.sh +61 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/SKILL.md +100 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/drop-in-replacements.md +27 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/jetpack-compose.md +73 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/swift-ui.md +73 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/references/universal.md +104 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-ui/scripts/list-components.js +193 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/SKILL.md +149 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/expo-av-to-audio.md +132 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/expo-av-to-video.md +160 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/native-tabs.md +124 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/new-architecture.md +79 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/react-19.md +79 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/react-compiler.md +59 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-upgrade/references/react-navigation-to-expo-router.md +61 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/SKILL.md +90 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/false-friends.md +119 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/native-patterns.md +39 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/run-as-goal.md +48 -0
- package/dist/templates/default/apps/mobile/.claude/skills/expo-web-to-native/references/verify-on-device.md +45 -0
- package/dist/templates/default/apps/mobile/.claude/skills/ios-simulator/SKILL.md +34 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/POWER.md +172 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/SKILL.md +238 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/agents/openai.yaml +4 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-analyze-app.md +208 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-analyze-js.md +264 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-barrel-exports.md +250 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-code-splitting.md +255 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-hermes-mmap.md +167 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-library-size.md +164 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-native-assets.md +208 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-r8-android.md +231 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/bundle-tree-shaking.md +215 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/bundle-treemap-source-map-explorer.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/controlled-textinput-pingpong.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/devtools-flamegraph.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/emerge-xray-ios.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/expo-atlas-treemap.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/flashlight-flatlist-vs-flashlist.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/fps-drop-graph.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/memory-heap-snapshot.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/tti-warm-start-diagram.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/view-hierarchy-flattening.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/xcode-instruments-templates.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/images/xcode-thread-view.png +0 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-animations-reanimated.md +273 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-atomic-state.md +190 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-bottomsheet.md +339 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-concurrent-react.md +238 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-lists-flatlist-flashlist.md +223 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-measure-fps.md +178 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-memory-leaks.md +168 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-profile-react.md +138 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-react-compiler.md +261 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/js-uncontrolled-components.md +219 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-android-16kb-alignment.md +114 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-measure-tti.md +221 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-memory-leaks.md +206 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-memory-patterns.md +240 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-platform-setup.md +112 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-profiling.md +140 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-sdks-over-polyfills.md +192 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-threading-model.md +230 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-turbo-modules.md +210 -0
- package/dist/templates/default/apps/mobile/.claude/skills/react-native-best-practices/references/native-view-flattening.md +180 -0
- package/dist/templates/default/apps/mobile/AGENTS.md +35 -8
- package/dist/templates/default/apps/mobile/README.md +31 -7
- package/dist/templates/default/apps/mobile/app.config.js +35 -6
- package/dist/templates/default/apps/mobile/metro.config.js +6 -0
- package/dist/templates/default/apps/mobile/nativewind-env.d.ts +2 -0
- package/dist/templates/default/apps/mobile/package.json +28 -16
- package/dist/templates/default/apps/mobile/postcss.config.mjs +1 -0
- package/dist/templates/default/apps/mobile/skills-lock.json +27 -27
- package/dist/templates/default/apps/mobile/src/app/(auth)/forgot-password.tsx +1 -0
- package/dist/templates/default/apps/mobile/src/app/(authenticated)/change-password.tsx +1 -0
- package/dist/templates/default/apps/mobile/src/app/_layout.tsx +1 -0
- package/dist/templates/default/apps/mobile/tsconfig.json +2 -1
- package/dist/templates/default/apps/web/.claude/skills/frontend-design/SKILL.md +71 -0
- package/dist/templates/default/apps/web/.claude/skills/web-design-guidelines/SKILL.md +39 -0
- package/dist/templates/default/apps/web/package.json +16 -16
- package/dist/templates/default/apps/web/site.json +10 -0
- package/dist/templates/default/apps/web/src/routeTree.gen.ts +260 -9
- package/dist/templates/default/apps/web/src/router/__root.tsx +44 -7
- package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.tsx +2 -4
- package/dist/templates/default/apps/web/src/router/index.tsx +101 -20
- package/dist/templates/default/apps/web/vite.config.ts +53 -8
- package/dist/templates/default/bun.lock +5286 -27943
- package/dist/templates/default/bunfig.toml +4 -0
- package/dist/templates/default/disposabl.json +1 -1
- package/dist/templates/default/package.json +10 -6
- package/dist/templates/default/packages/backend/.claude/skills/convex/SKILL.md +69 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-add/SKILL.md +26 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-advisor/SKILL.md +32 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-agent/SKILL.md +25 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-auth/SKILL.md +29 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-authz/SKILL.md +36 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-backup/SKILL.md +33 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-billing/SKILL.md +69 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-cost/SKILL.md +29 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/SKILL.md +325 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/agents/openai.yaml +14 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/assets/icon.svg +3 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/advanced-patterns.md +146 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/hybrid-components.md +38 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/local-components.md +39 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-create-component/references/packaged-components.md +54 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-crons/SKILL.md +23 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-deploy-guard/SKILL.md +29 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-design/SKILL.md +30 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-docs/SKILL.md +31 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-domains/SKILL.md +26 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-env/SKILL.md +24 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-expert/SKILL.md +38 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-explain-app/SKILL.md +29 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-improve-convex-plugin/SKILL.md +24 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-insights/SKILL.md +32 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-launch-readiness/SKILL.md +35 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-migrate/SKILL.md +23 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-migrate-rehearse/SKILL.md +31 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-monitor/SKILL.md +22 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-optimize/SKILL.md +26 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-quickstart/SKILL.md +29 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-quickstart/agents/openai.yaml +14 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-quickstart/assets/icon.svg +4 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-reviewer/SKILL.md +26 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-seed/SKILL.md +23 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-self-heal/SKILL.md +38 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-sentinel/SKILL.md +25 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-suggest/SKILL.md +27 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-test/SKILL.md +23 -0
- package/dist/templates/default/packages/backend/.claude/skills/convex-verify/SKILL.md +34 -0
- package/dist/templates/default/packages/backend/README.md +23 -2
- package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +15 -6
- package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +17 -0
- package/dist/templates/default/packages/backend/convex/auth.ts +90 -3
- package/dist/templates/default/packages/backend/convex/authEmail.ts +45 -0
- package/dist/templates/default/packages/backend/convex/authSetup.ts +4 -0
- package/dist/templates/default/packages/backend/convex/billing.ts +5 -0
- package/dist/templates/default/packages/backend/convex/convex.config.ts +38 -1
- package/dist/templates/default/packages/backend/convex/emails.ts +10 -0
- package/dist/templates/default/packages/backend/convex/files/index.ts +6 -0
- package/dist/templates/default/packages/backend/convex/files/internal.ts +5 -0
- package/dist/templates/default/packages/backend/convex/http.ts +9 -1
- package/dist/templates/default/packages/backend/convex/schema.ts +20 -19
- package/dist/templates/default/packages/backend/convex/telemetry.ts +84 -0
- package/dist/templates/default/packages/backend/convex/users/internal.ts +66 -10
- package/dist/templates/default/packages/backend/convex/users/validator.ts +14 -0
- package/dist/templates/default/packages/backend/generated/pages.json +36 -0
- package/dist/templates/default/packages/backend/package.json +8 -7
- package/dist/templates/default/packages/cli/README.md +3 -1
- package/dist/templates/default/packages/cli/auth.ts +6 -1
- package/dist/templates/default/packages/cli/client.ts +213 -0
- package/dist/templates/default/packages/cli/commands.ts +1 -293
- package/dist/templates/default/packages/cli/package.json +1 -1
- package/dist/templates/default/packages/disposabl-kit/GOOGLE_AUTH.md +37 -0
- package/dist/templates/default/packages/disposabl-kit/PAYMENTS.md +31 -0
- package/dist/templates/default/packages/disposabl-kit/client/components/google-sign-in.tsx +78 -0
- package/dist/templates/default/packages/disposabl-kit/client/components/legal-page.tsx +116 -0
- package/dist/templates/default/packages/disposabl-kit/client/components/password-auth-form.tsx +221 -0
- package/dist/templates/default/packages/disposabl-kit/client/components/password-page.tsx +37 -0
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/log-out.tsx +28 -9
- package/dist/templates/default/packages/disposabl-kit/client/lib/prerender.ts +3 -1
- package/dist/templates/default/packages/disposabl-kit/client/lib/telemetry.ts +32 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/forgot-password.tsx +92 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/login.tsx +4 -149
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/reset-password.tsx +118 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/signUp.tsx +4 -159
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/verify-email.tsx +49 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/_authenticated/change-password.tsx +123 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/legal/delete-account.tsx +7 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/legal/index.tsx +7 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/legal/privacy-request.tsx +7 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/legal/privacy.tsx +7 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/legal/terms.tsx +7 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/pricing.tsx +223 -0
- package/dist/templates/default/packages/disposabl-kit/client/routes/route.tsx +66 -14
- package/dist/templates/default/packages/disposabl-kit/client/vite.config.ts +27 -1
- package/dist/templates/default/packages/disposabl-kit/feature-options.ts +44 -0
- package/dist/templates/default/packages/disposabl-kit/features.ts +3 -0
- package/dist/templates/default/packages/disposabl-kit/legal/README.md +7 -0
- package/dist/templates/default/packages/disposabl-kit/legal/config.ts +55 -0
- package/dist/templates/default/packages/disposabl-kit/legal/documents/privacy.ts +69 -0
- package/dist/templates/default/packages/disposabl-kit/legal/documents/terms.ts +66 -0
- package/dist/templates/default/packages/disposabl-kit/legal/index.ts +40 -0
- package/dist/templates/default/packages/disposabl-kit/legal/types.ts +6 -0
- package/dist/templates/default/packages/disposabl-kit/lib/auth-errors.ts +47 -0
- package/dist/templates/default/packages/disposabl-kit/lib/auth-session.ts +15 -0
- package/dist/templates/default/packages/disposabl-kit/lib/google-logo.png +0 -0
- package/dist/templates/default/packages/disposabl-kit/lib/indexing.ts +26 -0
- package/dist/templates/default/packages/disposabl-kit/lib/mobile-auth.ts +44 -0
- package/dist/templates/default/packages/disposabl-kit/lib/starter.ts +57 -0
- package/dist/templates/default/packages/disposabl-kit/lib/telemetry.ts +30 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/billing/account-billing.tsx +216 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/billing/session.ts +73 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/account-profile.tsx +128 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/appearance-settings.tsx +128 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/auth-form.tsx +168 -68
- package/dist/templates/default/packages/disposabl-kit/mobile/components/auth-ui.tsx +52 -8
- package/dist/templates/default/packages/disposabl-kit/mobile/components/email-verification.tsx +77 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/google-button.tsx +66 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/google-sign-in.tsx +121 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/settings-links.tsx +53 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/components/settings-page.tsx +58 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/accent.ts +31 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/avatar.tsx +38 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/brand-mark.tsx +18 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/native-button.tsx +20 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/preferences.tsx +234 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/primitives.tsx +229 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/theme-provider.tsx +198 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/theme.ts +13 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/themed-text.tsx +61 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/design/use-theme.ts +27 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/expo-plugin.cjs +28 -5
- package/dist/templates/default/packages/disposabl-kit/mobile/global.css +165 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/index.ts +3 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/layout.tsx +156 -23
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/auth-return.ts +10 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/logo-dark.png +0 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/lib/logo-light.png +0 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/account.tsx +171 -39
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/change-password.tsx +147 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/forgot-password.tsx +158 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/screens/home.tsx +162 -54
- package/dist/templates/default/packages/disposabl-kit/mobile/updates/current-update.ts +19 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/updates/foreground-check.ts +19 -0
- package/dist/templates/default/packages/disposabl-kit/mobile/updates/update-prompt.tsx +201 -0
- package/dist/templates/default/packages/disposabl-kit/package.json +62 -22
- package/dist/templates/default/packages/disposabl-kit/payments/autumn.config.example +13 -0
- package/dist/templates/default/packages/disposabl-kit/server/billing-functions.ts +93 -0
- package/dist/templates/default/packages/disposabl-kit/server/billing.ts +119 -0
- package/dist/templates/default/packages/disposabl-kit/server/files-functions.ts +196 -0
- package/dist/templates/default/packages/disposabl-kit/server/files.ts +133 -0
- package/dist/templates/default/packages/disposabl-kit/server/google.ts +95 -0
- package/dist/templates/default/packages/disposabl-kit/server/http.ts +68 -18
- package/dist/templates/default/packages/disposabl-kit/server/lib/platform-spec.ts +99 -16
- package/dist/templates/default/packages/disposabl-kit/server/lib/static.ts +36 -5
- package/dist/templates/default/packages/disposabl-kit/server/lib/telemetry.ts +139 -0
- package/dist/templates/default/packages/sdk/package.json +1 -1
- package/dist/templates/default/packages/sdk/src/config.ts +1 -0
- package/dist/templates/default/packages/skill/SKILL.md +10 -2
- package/dist/templates/default/packages/skill/references/agent.md +28 -0
- package/dist/templates/default/packages/skill/references/delivery.md +2 -0
- package/dist/templates/default/packages/skill/references/design.md +2 -0
- package/dist/templates/default/packages/skill/references/iphone-preview.md +114 -0
- package/dist/templates/default/packages/skill/scripts/sign-iphone.py +126 -0
- package/dist/templates/default/packages/tests/README.md +10 -0
- package/dist/templates/default/packages/tests/billing.test.ts +77 -0
- package/dist/templates/default/packages/tests/components/mobile-google.test.mjs +142 -0
- package/dist/templates/default/packages/tests/components/mobile-settings.test.mjs +118 -0
- package/dist/templates/default/packages/tests/components/mobile-theme.test.mjs +122 -0
- package/dist/templates/default/packages/tests/components/mobile-updates.test.mjs +139 -0
- package/dist/templates/default/packages/tests/e2e.config.ts +1 -0
- package/dist/templates/default/packages/tests/files.test.ts +234 -0
- package/dist/templates/default/packages/tests/flows/email-delivery.e2e.ts +93 -0
- package/dist/templates/default/packages/tests/flows/files.e2e.ts +97 -0
- package/dist/templates/default/packages/tests/flows/legal.e2e.ts +38 -0
- package/dist/templates/default/packages/tests/flows/mcp.e2e.ts +120 -0
- package/dist/templates/default/packages/tests/flows/mobile-auth-disabled.e2e.ts +33 -0
- package/dist/templates/default/packages/tests/flows/mobile.e2e.ts +6 -4
- package/dist/templates/default/packages/tests/flows/password-backend.e2e.ts +58 -0
- package/dist/templates/default/packages/tests/flows/passwords.e2e.ts +206 -0
- package/dist/templates/default/packages/tests/flows/seo.e2e.ts +34 -0
- package/dist/templates/default/packages/tests/flows/web.e2e.ts +42 -2
- package/dist/templates/default/packages/tests/helpers/mobile.ts +31 -0
- package/dist/templates/default/packages/tests/ios-ota.test.ts +267 -0
- package/dist/templates/default/packages/tests/mobile-google.test.ts +100 -0
- package/dist/templates/default/packages/tests/mobile-settings.test.ts +21 -0
- package/dist/templates/default/packages/tests/mobile-theme.test.ts +13 -0
- package/dist/templates/default/packages/tests/mobile-updates-component.test.ts +14 -0
- package/dist/templates/default/packages/tests/mobile-updates.test.ts +122 -0
- package/dist/templates/default/packages/tests/native-billing.test.ts +138 -0
- package/dist/templates/default/packages/tests/package.json +11 -6
- package/dist/templates/default/packages/tests/seo-config.test.ts +17 -0
- package/dist/templates/default/packages/tests/telemetry.test.ts +188 -0
- package/dist/templates/default/patches/react-native-css@3.1.0-rc.1.patch +42 -0
- package/dist/templates/default/vendor/README.md +27 -23
- package/dist/templates/default/vendor/convex-auth-437831bd-disposabl.1.tgz +0 -0
- package/package.json +8 -8
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/README.md +0 -42
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/internal.ts +0 -153
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/provision.ts +0 -102
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/validator.ts +0 -35
- package/dist/templates/default/packages/cli/delete.ts +0 -48
- package/dist/templates/default/packages/cli/preview.ts +0 -234
- package/dist/templates/default/packages/disposabl-kit/server/mcp/enterprise.ts +0 -267
- package/dist/templates/default/packages/disposabl-kit/server/mcp/identity.ts +0 -33
- package/dist/templates/default/vendor/convex-auth-6c0ebf3f.tgz +0 -0
- /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(...)
|
|
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("...")`.
|
|
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
|
-
|
|
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
|
-
|
|
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`
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
155
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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("
|
|
285
|
+
Constant("buildInfo") { computeBuildInfo() }
|
|
205
286
|
|
|
206
287
|
// 2.0
|
|
207
288
|
@JS
|
|
208
|
-
|
|
289
|
+
lazy var buildInfo = computeBuildInfo()
|
|
209
290
|
```
|
|
210
291
|
|
|
211
|
-
|
|
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
|
-
|
|
218
|
-
return cachedInfo
|
|
219
|
-
}
|
|
296
|
+
let apiVersion = 3
|
|
220
297
|
```
|
|
221
298
|
|
|
222
|
-
Do not
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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`
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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()
|
|
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-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.
|