Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@
"authentication": "ON_USE"
},
"category": "Developer Tools"
},
{
"name": "react-native-to-swiftui",
"source": {
"source": "local",
"path": "./plugins/react-native-to-swiftui"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_USE"
},
"category": "Developer Tools"
}
]
}
67 changes: 67 additions & 0 deletions .github/workflows/react-native-to-swiftui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: React Native to SwiftUI

on:
pull_request:
paths:
- ".github/workflows/react-native-to-swiftui.yml"
- ".agents/plugins/marketplace.json"
- "package.json"
- "README.md"
- "plugins/react-native-to-swiftui/**"
- "scripts/*react-native-to-swiftui*"
- "scripts/validate-marketplace.mjs"
- "tests/react-native-to-swiftui/**"
push:
branches: [main]
paths:
- ".github/workflows/react-native-to-swiftui.yml"
- ".agents/plugins/marketplace.json"
- "package.json"
- "README.md"
- "plugins/react-native-to-swiftui/**"
- "scripts/*react-native-to-swiftui*"
- "scripts/validate-marketplace.mjs"
- "tests/react-native-to-swiftui/**"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: react-native-to-swiftui-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
react-native-to-swiftui-e2e:
name: React Native to SwiftUI E2E
runs-on: macos-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22.19.0"
package-manager-cache: false
- name: Cold copied package / Node 22.19.0
run: node --test --test-concurrency=1 tests/react-native-to-swiftui/integration/packaged.test.mjs
- name: Full React Native to SwiftUI qualification / Node 22.19.0
run: npm run test:react-native-to-swiftui
- name: Probe installed Xcode and available Simulator
continue-on-error: true
run: node plugins/react-native-to-swiftui/scripts/native-port.mjs toolchain --format json

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "24"
package-manager-cache: false
- name: Full uninstrumented suite / Node 24
run: npm run test:react-native-to-swiftui

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "26"
package-manager-cache: false
- name: Full uninstrumented suite / Node 26
run: npm run test:react-native-to-swiftui
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ can understand and verify it from a cold start.
behavior.
5. Keep tests, fixtures, licenses, and third-party notices with the plugin or
in clearly named companion folders.
6. Add a `test:<plugin-name>` script to `package.json`. The marketplace-wide
CI job discovers each catalog entry and runs that matching test script.
6. Add one `test:<plugin-name>` master suite to `package.json`. It should
run the plugin's functional, integration/E2E, security, and packaged checks
as applicable. The marketplace-wide CI job discovers each catalog entry
and runs that matching test script; plugin-specific CI should expose one
plugin-level job that invokes the same master suite.

Never commit credentials, OAuth tokens, customer data, private URLs, personal
paths, or generated caches.
Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ To fetch only ReviewOps Auditor + Benchmark, use:
plugins/reviewops-auditor-benchmark
```

To fetch only React Native to SwiftUI, use:

```text
.agents/plugins
plugins/react-native-to-swiftui
```

Adding a marketplace makes its catalog available to browse. It does **not**
install, enable, or authenticate every plugin. After adding it, install only
the plugin you want.
Expand All @@ -57,6 +64,9 @@ codex plugin add grafana-observability@community-plugins

# Or install the offline ReviewOps package.
codex plugin add reviewops-auditor-benchmark@community-plugins

# Or install the bounded native-migration workflow.
codex plugin add react-native-to-swiftui@community-plugins
```

If you want a full checkout instead of a sparse one:
Expand All @@ -76,6 +86,7 @@ are picked up.
| ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [Grafana Observability](plugins/grafana-observability/README.md) | Inspect administrator-approved, read-only Grafana evidence for infrastructure, APM, logs, IoT/edge, and business KPIs. | [Guide](plugins/grafana-observability/README.md) · [23-second demo](docs/media/grafana-production-monitoring-demo-8x.mp4) |
| [ReviewOps Auditor + Benchmark](plugins/reviewops-auditor-benchmark/README.md) | Normalize sanitized review-run exports, audit evaluation validity, benchmark lanes, and emit shadow-only guidance offline. | [Guide](plugins/reviewops-auditor-benchmark/README.md) |
| [React Native to SwiftUI](plugins/react-native-to-swiftui/README.md) | Plan a bounded React Native/Expo feature migration, then port one explicitly approved slice with deterministic SwiftUI parity checks. | [Guide](plugins/react-native-to-swiftui/README.md) |

Grafana Observability requires Codex and Node.js 22.19 or newer. Its manifest
declares both `Read` and `Write`. `Write` is limited to
Expand All @@ -98,6 +109,17 @@ run is also synthetic and credential-free:
Use $normalize-review-runs on the bundled synthetic fixture only. Explain the normalization summary, provenance checks, safety boundaries, and next safe step.
```

React Native to SwiftUI requires Codex and Node.js 22.19 or newer. Its
manifest declares both `Read` and `Write`: planning is read-only, while
writes are limited to an explicitly approved target directory for one feature
slice. It has no app or MCP dependency, does not copy source or assets into
the plugin, and does not promise App Store approval. Its first run is a
read-only parity-planning prompt:

```text
Use $plan-react-native-port to inspect only the declared React Native feature and propose a SwiftUI parity contract. Do not edit files yet.
```

## Copy-paste Codex prompts

Browse before installing:
Expand All @@ -118,6 +140,12 @@ Install ReviewOps without private data:
If community-plugins is not already configured, add it from tonyloehr/community-plugins at ref main using sparse paths .agents/plugins and plugins/reviewops-auditor-benchmark. Install reviewops-auditor-benchmark@community-plugins, explain its read-only offline boundary, and give me the synthetic-fixture smoke-test prompt for a new Codex task.
```

Install React Native to SwiftUI with a read-only first run:

```text
If community-plugins is not already configured, add it from tonyloehr/community-plugins at ref main using sparse paths .agents/plugins and plugins/react-native-to-swiftui. Install react-native-to-swiftui@community-plugins, explain its Read and Write boundaries and ON_USE authentication policy, and give me the read-only parity-planning prompt for a new Codex task.
```

Review before adoption:

```text
Expand All @@ -133,6 +161,7 @@ codex plugin marketplace upgrade community-plugins
# Reinstall a plugin after a new version is published.
codex plugin add grafana-observability@community-plugins
codex plugin add reviewops-auditor-benchmark@community-plugins
codex plugin add react-native-to-swiftui@community-plugins

# Remove the configured marketplace source.
codex plugin marketplace remove community-plugins
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"description": "Public Codex plugins and their reproducible validation suites.",
"type": "module",
"scripts": {
"validate": "npm run validate:marketplace && node scripts/validate-grafana.mjs && npm run validate:reviewops-auditor-benchmark",
"validate": "npm run validate:marketplace && node scripts/validate-grafana.mjs && npm run validate:reviewops-auditor-benchmark && npm run validate:react-native-to-swiftui",
"validate:marketplace": "node scripts/validate-marketplace.mjs",
"validate:grafana": "node scripts/validate-grafana.mjs",
"validate:reviewops-auditor-benchmark": "node scripts/validate-reviewops-auditor-benchmark.mjs",
"validate:react-native-to-swiftui": "node scripts/validate-react-native-to-swiftui.mjs",
"build:reviewops-auditor-benchmark": "npm --prefix plugins/reviewops-auditor-benchmark run build",
"typecheck:reviewops-auditor-benchmark": "npm --prefix plugins/reviewops-auditor-benchmark run typecheck",
"lint:reviewops-auditor-benchmark": "npm --prefix plugins/reviewops-auditor-benchmark run lint",
Expand All @@ -18,6 +19,7 @@
"test": "npm run test:marketplace",
"test:marketplace": "node scripts/run-marketplace-tests.mjs",
"test:reviewops-auditor-benchmark": "npm run build:reviewops-auditor-benchmark && npm run validate:reviewops-auditor-benchmark && npm run typecheck:reviewops-auditor-benchmark && npm run lint:reviewops-auditor-benchmark && npm run format:check:reviewops-auditor-benchmark && npm --prefix plugins/reviewops-auditor-benchmark run test && npm run coverage:reviewops-auditor-benchmark",
"test:react-native-to-swiftui": "npm run validate:react-native-to-swiftui && node --test --test-concurrency=1 tests/react-native-to-swiftui/unit/*.test.mjs tests/react-native-to-swiftui/integration/*.test.mjs tests/react-native-to-swiftui/security/*.test.mjs",
"test:grafana-observability": "npm run test:grafana",
"test:grafana": "node --test --test-concurrency=1 tests/grafana-observability/*.test.mjs",
"test:grafana:live": "GRAFANA_E2E_DOCKER=1 node --test tests/grafana-observability/live.test.mjs",
Expand Down
42 changes: 42 additions & 0 deletions plugins/react-native-to-swiftui/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "react-native-to-swiftui",
"version": "0.1.0",
"description": "Plan and port one bounded React Native or Expo feature slice to SwiftUI with parity evidence and iOS readiness checks.",
"author": {
"name": "Tony Loehr",
"url": "https://github.com/tonyloehr"
},
"homepage": "https://github.com/tonyloehr/community-plugins/tree/main/plugins/react-native-to-swiftui",
"repository": "https://github.com/tonyloehr/community-plugins",
"license": "Apache-2.0",
"keywords": [
"react-native",
"expo",
"swiftui",
"ios",
"migration",
"modernization"
],
"skills": "./skills/",
"interface": {
"displayName": "React Native to SwiftUI",
"shortDescription": "Port one approved native iOS slice safely.",
"longDescription": "A contract-first workflow for bounded React Native and Expo modernization. Inspect only declared source, write a behavioral parity contract, port one explicitly approved slice into a declared SwiftUI target, keep domain logic pure Swift, verify deterministic behavior, and preflight iOS release readiness without promising App Store approval.",
"developerName": "Tony Loehr",
"category": "Developer Tools",
"websiteURL": "https://github.com/tonyloehr/community-plugins",
"capabilities": [
"Read",
"Write"
],
"brandColor": "#5B5CE2",
"logo": "./assets/icon.svg",
"composerIcon": "./assets/icon.svg",
"defaultPrompt": [
"Use $plan-react-native-port to inspect only the declared React Native feature and propose a SwiftUI parity contract. Do not edit files yet.",
"Use $port-react-native-slice to port one explicitly approved feature slice into my declared SwiftUI target directory.",
"Use $verify-swiftui-parity to check the approved SwiftUI slice against its behavioral parity contract.",
"Use $audit-ios-readiness to run a read-only App Store-readiness preflight for my declared iOS target."
]
}
}
Loading
Loading