Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix(mobile): pin the native modules to Expo SDK 54's table, which unblocks codegen

Beenu Arorad6f73b604e6b
diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml
index 84a0c1422..36cdb0907 100644
--- a/.github/workflows/mobile.yml
+++ b/.github/workflows/mobile.yml
@@ -126,6 +126,27 @@ jobs:
# Generates `android/` from app.json. Not committed, deliberately: a
# checked-in native project drifts from the Expo config and the drift
# is invisible until a build fails for a reason nobody changed.
+ # Expo's own compatibility table, checked rather than trusted. The
+ # first run of this job failed inside
+ # `:react-native-screens:generateCodegenSchemaFromJavaScript` with
+ # "The first argument of method showColumn must be of type
+ # React.ElementRef<>", because `^4.11.0` had resolved to 4.28.0 — a
+ # version whose component specs the React Native 0.81 codegen cannot
+ # parse. That is the caret-pin defect this repository has documented
+ # elsewhere: the same commit building two ways. Both packages are now
+ # pinned to the versions Expo SDK 54 expects, and this step fails the
+ # build if a future bump drifts off that table again.
+ - name: The native dependency versions must be the ones Expo expects
+ run: |
+ set -euo pipefail
+ out=$(npx --yes expo install --check 2>&1 || true)
+ if echo "$out" | grep -qE 'react-native-screens@|react-native-safe-area-context@'; then
+ echo "::error::a native module has drifted off Expo SDK 54's compatibility table."
+ echo "$out"
+ exit 1
+ fi
+ echo "OK: react-native-screens and react-native-safe-area-context match Expo's table."
+
- name: Generate the native Android project
run: npx expo prebuild --platform android --no-install
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 8c0cc8522..8a07166be 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -24,8 +24,8 @@
"expo-status-bar": "^3.0.0",
"react": "19.1.0",
"react-native": "0.81.4",
- "react-native-safe-area-context": "^5.10.1",
- "react-native-screens": "^4.11.0"
+ "react-native-safe-area-context": "~5.6.0",
+ "react-native-screens": "~4.16.0"
},
"devDependencies": {
"@types/react": "~19.1.0",
diff --git a/apps/mobile/pnpm-lock.yaml b/apps/mobile/pnpm-lock.yaml
index 7e930b5ab..3de7d8fb6 100644
--- a/apps/mobile/pnpm-lock.yaml
+++ b/apps/mobile/pnpm-lock.yaml
@@ -39,7 +39,7 @@ importers:
expo-router:
specifier: ^6.0.0
expo-secure-store:
specifier: ^15.0.0
version: 15.0.8([email protected])
@@ -53,11 +53,11 @@ importers:
specifier: 0.81.4
version: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
react-native-safe-area-context:
- specifier: ^5.10.1
+ specifier: ~5.6.0
react-native-screens:
- specifier: ^4.11.0
+ specifier: ~4.16.0
devDependencies:
'@types/react':
specifier: ~19.1.0
@@ -1136,7 +1136,7 @@ packages:
debug: 4.4.3
env-editor: 0.4.2
expo-server: 1.0.7
freeport-async: 2.0.0
getenv: 2.0.0
@@ -2256,7 +2256,7 @@ packages:
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
dev: false
resolution: {integrity: sha512-sXUS7cySIj2cLwD1trdTnbqAm3TWYiF6L9i0VNES2+4ssUyBDgkIdmm7uxjhJ8ZSjzpWj8uSfLHkkSx0j0MpmA==}
peerDependencies:
'@react-navigation/native': ^7.4.1
@@ -2265,13 +2265,13 @@ packages:
react-native-safe-area-context: '>= 4.0.0'
react-native-screens: '>= 4.0.0'
dependencies:
- '@react-navigation/elements': 2.9.43(@react-navigation/[email protected])([email protected])([email protected])([email protected])
+ '@react-navigation/elements': 2.9.43(@react-navigation/[email protected])([email protected])([email protected])([email protected])
'@react-navigation/native': 7.4.1([email protected])([email protected])
color: 4.2.3
react: 19.1.0
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
- react-native-safe-area-context: 5.10.1([email protected])([email protected])
- react-native-screens: 4.28.0([email protected])([email protected])
+ react-native-safe-area-context: 5.6.2([email protected])([email protected])
+ react-native-screens: 4.16.0([email protected])([email protected])
sf-symbols-typescript: 2.2.0
transitivePeerDependencies:
- '@react-native-masked-view/masked-view'
@@ -2292,7 +2292,7 @@ packages:
use-sync-external-store: 1.7.0([email protected])
dev: false
resolution: {integrity: sha512-XOYpRfgT9RPV2VIoXeEfTVdmXwEPpHwkezDkZVsVNEN6rTWDo07BPyLmWsvXooczyMf3jHe9AB2p/U9lJArtiQ==}
peerDependencies:
'@react-native-masked-view/masked-view': '>= 0.2.0'
@@ -2308,12 +2308,12 @@ packages:
color: 4.2.3
react: 19.1.0
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
- react-native-safe-area-context: 5.10.1([email protected])([email protected])
+ react-native-safe-area-context: 5.6.2([email protected])([email protected])
use-latest-callback: 0.2.6([email protected])
use-sync-external-store: 1.7.0([email protected])
dev: false
resolution: {integrity: sha512-D6hmtgpMZz1x8R0PLbfqqKh5ajEkb13DguE7X/MNNKYL4riY4zD3TrjbcesUC2EZklpQ/EoJ6h6HAhMNfCCsoQ==}
peerDependencies:
'@react-navigation/native': ^7.4.1
@@ -2322,13 +2322,13 @@ packages:
react-native-safe-area-context: '>= 4.0.0'
react-native-screens: '>= 4.0.0'
dependencies:
- '@react-navigation/elements': 2.9.43(@react-navigation/[email protected])([email protected])([email protected])([email protected])
+ '@react-navigation/elements': 2.9.43(@react-navigation/[email protected])([email protected])([email protected])([email protected])
'@react-navigation/native': 7.4.1([email protected])([email protected])
color: 4.2.3
react: 19.1.0
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
- react-native-safe-area-context: 5.10.1([email protected])([email protected])
- react-native-screens: 4.28.0([email protected])([email protected])
+ react-native-safe-area-context: 5.6.2([email protected])([email protected])
+ react-native-screens: 4.16.0([email protected])([email protected])
sf-symbols-typescript: 2.2.0
warn-once: 0.1.1
transitivePeerDependencies:
@@ -3761,7 +3761,7 @@ packages:
- typescript
dev: false
resolution: {integrity: sha512-KIssKXnwjrdCxPWC8GsMTfKTwng40VrCsO16O9x6fKlfUwBW8itxY9PpCGyQeMJkiEADa+DUhtrDgl+uHg4/DA==}
peerDependencies:
'@expo/metro-runtime': ^6.1.2
@@ -3799,9 +3799,9 @@ packages:
'@expo/schema-utils': 0.1.9
'@radix-ui/react-slot': 1.2.0(@types/[email protected])([email protected])
'@radix-ui/react-tabs': 1.1.21(@types/[email protected])([email protected])([email protected])
- '@react-navigation/bottom-tabs': 7.19.2(@react-navigation/[email protected])([email protected])([email protected])([email protected])([email protected])
+ '@react-navigation/bottom-tabs': 7.19.2(@react-navigation/[email protected])([email protected])([email protected])([email protected])([email protected])
'@react-navigation/native': 7.4.1([email protected])([email protected])
- '@react-navigation/native-stack': 7.19.2(@react-navigation/[email protected])([email protected])([email protected])([email protected])([email protected])
+ '@react-navigation/native-stack': 7.19.2(@react-navigation/[email protected])([email protected])([email protected])([email protected])([email protected])
client-only: 0.0.1
debug: 4.4.3
escape-string-regexp: 4.0.0
@@ -3818,8 +3818,8 @@ packages:
react-fast-compare: 3.2.2
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
react-native-is-edge-to-edge: 1.3.1([email protected])([email protected])
- react-native-safe-area-context: 5.10.1([email protected])([email protected])
- react-native-screens: 4.28.0([email protected])([email protected])
+ react-native-safe-area-context: 5.6.2([email protected])([email protected])
+ react-native-screens: 4.16.0([email protected])([email protected])
semver: 7.6.3
server-only: 0.0.1
sf-symbols-typescript: 2.2.0
@@ -5633,8 +5633,8 @@ packages:
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
dev: false
- resolution: {integrity: sha512-ax0T3cAHQIhuAjDQpJ9C1Le96aRiM9PF+Kmgg7Y8+mD7QJMEIx04cG0eG3EGUTdvymgOkCrkakgZFwuOIuNQGw==}
+ resolution: {integrity: sha512-4XGqMNj5qjUTYywJqpdWZ9IG8jgkS3h06sfVjfw5yZQZfWnRFXczi0GnYyFyCc2EBps/qFmoCH8fez//WumdVg==}
peerDependencies:
react: '*'
react-native: '*'
@@ -5643,8 +5643,8 @@ packages:
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
dev: false
- resolution: {integrity: sha512-0/79Z8RCibuaAHti+DJ2Dq0m6UFWh4+p1bH58K3cjiQ7IDWs5kU9tCAj4lXcJMHHonbF2mIE2BeaPSEvOpIiFg==}
+ resolution: {integrity: sha512-yIAyh7F/9uWkOzCi1/2FqvNvK6Wb9Y1+Kzn16SuGfN9YFJDTbwlzGRvePCNTOX0recpLQF3kc2FmvMUhyTCH1Q==}
peerDependencies:
react: '*'
react-native: '*'
@@ -5652,6 +5652,7 @@ packages:
react: 19.1.0
react-freeze: 1.0.4([email protected])
react-native: 0.81.4(@babel/[email protected])(@types/[email protected])([email protected])
+ react-native-is-edge-to-edge: 1.3.1([email protected])([email protected])
warn-once: 0.1.1
dev: false