Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a33ce1c
docs(releases): credit Uttkarsh-Srivastava on the 1.0.0 page (#558)
mayansharma Nov 4, 2026
a825a90
feat(cca): new starter page, splash screen and offline page (#585)
mayansharma Nov 4, 2026
48b0836
test(android): guard AI system prompts without attachments (#555)
SpideyPotter Nov 4, 2026
47147da
feat(native): build and release Android and iOS apps without Android …
mayansharma Nov 4, 2026
7202bb2
feat: support Windows natively
mayan-sharma Oct 30, 2026
d2cd182
fix: remove the Windows CI job and split tool paths on any OS
mayansharma Nov 2, 2026
bb0653f
fix(native): list AVDs without a shell
mayansharma Nov 5, 2026
38da270
fix(native): keep device serials, signing values and symlinks out of …
mayansharma Nov 5, 2026
b10b694
Merge release/1.2.0 into feat/windows-support
mayansharma Nov 5, 2026
3e41f10
fix(native): keep cmd.exe syntax out of batch calls; expect the iOS s…
mayansharma Nov 5, 2026
cba735f
feat(native): ask once, sign with what the Mac has, and write shareab…
mayansharma Nov 9, 2026
ab98d35
fix(native): 1.2.0 release-readiness fixes, upgrade guide and MCP upd…
mayansharma Nov 12, 2026
123549b
fix(ios): iPhone debug builds reach the dev server; one Keychain prom…
mayansharma Nov 12, 2026
277d09b
docs(changelog): date the 1.2.0 entry
mayansharma Nov 13, 2026
71d86c4
chore: release catalyst-core@1.2.0 create-catalyst-app@1.2.0
github-actions[bot] Nov 13, 2026
88e099c
Merge release/1.2.0 (final) into feat/windows-support
mayansharma Nov 13, 2026
5c50fd2
Merge main (Release 1.2.0, #592) into feat/windows-support
mayansharma Nov 13, 2026
fd0bfea
test: cover the new-route codemod and the Windows branches
mayansharma Nov 13, 2026
a9f354c
Merge main (#610) into feat/windows-support
mayansharma Nov 16, 2026
ddff12e
fix(native): use the system tar for credentials on Windows; name Wind…
mayansharma Nov 16, 2026
81c05b9
test(native): run the native suite on Windows
mayansharma Nov 16, 2026
af28e07
fix(native): find JDKs in their Windows install folders; new-route ta…
mayansharma Nov 16, 2026
2f86d6d
fix(native): quote ; , and = for batch files; say how to stop the dev…
mayansharma Nov 16, 2026
2065507
fix(native): serve the Android dev server on 127.0.0.1
mayansharma Nov 16, 2026
a6737ce
fix(native): keep the 127.0.0.1 Android dev server to Windows
mayansharma Nov 16, 2026
4ea97cb
Merge remote-tracking branch 'origin/main' into feat/windows-support
mayansharma Nov 17, 2026
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
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Every text file is LF in the repo and in every checkout, Windows included.
# With core.autocrlf (the Git for Windows default) a checkout turned the gradlew
# and husky shell scripts into CRLF, which no shell can run, and a package packed
# from that tree shipped them that way.
* text=auto eol=lf

# cmd.exe needs CRLF: labels in an LF batch file are not found reliably.
*.bat text eol=crlf
*.cmd text eol=crlf
18 changes: 17 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,23 @@ jobs:
# because a skipped platform (e.g. an android-only PR, where the iOS
# and web jobs never run) must still count as fine here, not failure.
coverage-summary:
needs: [detect-changes, lint, unit-and-contract-tests, web-integration-smoke, error-catalog, android-lint, android-unit-and-coverage, catalyst-ai-android-compile, catalyst-ai-android-integration, ios-swiftlint, ios-corelogic-and-coverage, ios-app-simulator-tests, android-release-build, ios-release-archive]
needs:
[
detect-changes,
lint,
unit-and-contract-tests,
web-integration-smoke,
error-catalog,
android-lint,
android-unit-and-coverage,
catalyst-ai-android-compile,
catalyst-ai-android-integration,
ios-swiftlint,
ios-corelogic-and-coverage,
ios-app-simulator-tests,
android-release-build,
ios-release-archive,
]
if: always()
runs-on: ubuntu-latest
# Reads only the needs.* results and outputs: no checkout, no API calls.
Expand Down
10 changes: 5 additions & 5 deletions .release-meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"branch": "feat/app-info-open-in-browser",
"packages": {
"catalyst-core": "1.2.1",
"create-catalyst-app": "1.2.1"
}
"branch": "feat/app-info-open-in-browser",
"packages": {
"catalyst-core": "1.2.1",
"create-catalyst-app": "1.2.1"
}
}
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ npm run setup # installs deps + creates local docs config
Common commands: `npm run core:build`, `npm run core:test`, `npm run cca:test`,
`npm run docs:build`. See [README](./README.md#contributing) for the sandbox-app flow.

On Windows, everything except `core:test`, `cca:test` and `test:example` runs from any
terminal. Those three are shell scripts, so run them from Git Bash, or use
`node scripts/test-windows-smoke.js`, which scaffolds, builds and runs an app. iOS builds
need a Mac.

## Filing an issue

New issues go through a template — pick the one that fits:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Useful starting points:
## Requirements

- Node.js `20.4.0` or later for generated Catalyst apps.
- macOS or Linux for local development.
- macOS, Linux or Windows for local development. iOS builds need macOS.

## Repository

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ id: installation
### System Requirements

* Node version [20.4.0](https://nodejs.org/docs/latest-v20.x/api/index.html) or later
* Supported platforms: macOS, Linux.
* Supported platforms: macOS, Linux, Windows.

For windows users, we recommend using Windows Subsystem for Linux (WSL) for the best development experience.
On Windows, Catalyst runs natively in PowerShell, Command Prompt or Git Bash, so WSL is not needed. Every command works there except the iOS ones, which need macOS and Xcode.

### Automatic Installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ npm run ios -- --device

Without a terminal and without `--device`, the app always runs on the emulator or simulator.

On Windows and Linux, `npm run ios` stops with [IOS-007](/errors/IOS/IOS-007), and `catalyst buildApp` skips iOS and builds Android.

---

## How the app reaches the dev server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sidebar_position: 1
## System Requirements

- Node.js version 20.4.0 or later
- macOS or Linux (Windows users should use WSL)
- macOS, Linux or Windows

---

Expand Down
26 changes: 22 additions & 4 deletions docs/content/02-Guides and Tutorials/04-Android-Emulator-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ id: android-emulator-setup

## Prerequisites

- macOS or Linux
- macOS, Linux or Windows
- About 10 GB of free disk space for the SDK and a system image
- Homebrew on macOS if you have no JDK yet. On Linux, install a JDK 17 or 21 package (for example `openjdk-17-jdk`) yourself
- Homebrew on macOS if you have no JDK yet. On Linux, install a JDK 17 or 21 package (for example `openjdk-17-jdk`) yourself. On Windows, Android Studio's bundled JDK is enough; without Android Studio, install one with `winget install Microsoft.OpenJDK.17`

---

## What gets installed

Every `npm run android` and `npm run android:release` checks the toolchain and installs only what is missing. Each install asks first; press Enter to accept the default answer.

1. Java. Catalyst looks for JDK 17 to 23 in `JAVA_HOME`, then `/usr/libexec/java_home`, then the runtime bundled with Android Studio, and prefers 21, then 17. A JDK 24 or newer is skipped, because Gradle 8.13 cannot run on it. On macOS with none found, it offers to run `brew install --cask zulu@17`. Your shell profile is never edited; the JDK is passed to Gradle and the SDK tools directly.
2. Android SDK. It uses `WEBVIEW_CONFIG.android.sdkPath`, then `ANDROID_HOME`, then `ANDROID_SDK_ROOT`, then `~/Library/Android/sdk` (macOS) or `~/Android/Sdk` (Linux). It never asks for a path and never writes one to `config/config.json`. When packages are missing it downloads the Android command-line tools, checks them against their published SHA-256, and installs `platform-tools`, `platforms;android-36` and `build-tools;36.0.0`, plus `emulator` when the app runs on one.
1. Java. Catalyst looks for JDK 17 to 23 in `JAVA_HOME`, then `/usr/libexec/java_home` on macOS, then the runtime bundled with Android Studio, then (on Linux and Windows) the `java` on your `PATH`, and prefers 21, then 17. A JDK 24 or newer is skipped, because Gradle 8.13 cannot run on it. On macOS with none found, it offers to run `brew install --cask zulu@17`. Your shell profile is never edited; the JDK is passed to Gradle and the SDK tools directly.
2. Android SDK. It uses `WEBVIEW_CONFIG.android.sdkPath`, then `ANDROID_HOME`, then `ANDROID_SDK_ROOT`, then `~/Library/Android/sdk` (macOS), `%LOCALAPPDATA%\Android\Sdk` (Windows) or `~/Android/Sdk` (Linux). It never asks for a path and never writes one to `config/config.json`. When packages are missing it downloads the Android command-line tools, checks them against their published SHA-256, and installs `platform-tools`, `platforms;android-36` and `build-tools;36.0.0`, plus `emulator` when the app runs on one.
3. Licences. The first install shows the Android SDK licences for you to review and accept.
4. Emulator. An existing emulator is reused: `android.emulatorName` when it is set, else the one you used last, else the first one found. With none, Catalyst installs the API 36 Google APIs system image for your CPU (arm64 on Apple silicon, x86_64 elsewhere, about 1.5 GB) and creates `catalyst-api36` with a Pixel 7 profile.

Expand Down Expand Up @@ -76,6 +76,24 @@ All of these are optional:
| `emulatorName` | Emulator (AVD) to use. If it does not exist, Catalyst warns and uses another one, or creates `catalyst-api36` |
| `sdkPath` | Android SDK location, when it is not in one of the places above |

### Windows

The SDK is usually at `C:\Users\yourname\AppData\Local\Android\Sdk`. In `config.json`, double the backslashes or use forward slashes:

```json
{
"WEBVIEW_CONFIG": {
"android": {
"sdkPath": "C:/Users/yourname/AppData/Local/Android/Sdk"
}
}
}
```

The emulator needs the Windows Hypervisor Platform. If it does not start, run `emulator -accel-check` from the SDK's `emulator` folder. It reports what is missing.

Gradle writes long paths under `node_modules`. If a build fails with a path that is too long, move the app closer to the root of the drive, for example `C:\dev\my-app`, or [enable long paths in Windows](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation#enable-long-paths-in-windows-10-version-1607-and-later).

---

## Run the app
Expand Down
2 changes: 2 additions & 0 deletions docs/content/16-CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ In a terminal, a release asks once for a missing or placeholder app id and a mis

See [Universal App Deployment](/content/Deployment/universal-app-deployment) for the release flow and CI, and [Running Universal Apps](/content/Guides%20and%20Tutorials/First%20Universal%20App/RunUniversalApp) for development.

The iOS commands need macOS and Xcode. On Windows and Linux, `catalyst buildApp` and `catalyst setupEmulator` skip iOS and run Android, and `buildApp:ios` and `setupEmulator:ios` exit with [IOS-007](/errors/IOS/IOS-007).

## Production Web Flow

1. Run `catalyst build`.
Expand Down
4 changes: 4 additions & 0 deletions docs/content/17-FAQs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ slug: faqs

# FAQs

## Does Catalyst work on Windows?

Yes, natively, in PowerShell, Command Prompt or Git Bash, so WSL is not needed. Every command works except the iOS ones, which need macOS and Xcode. For Android, see the Windows notes in the [Android Emulator Setup](/content/Guides%20and%20Tutorials/android-emulator-setup) guide.

## Where should `config/config.json` live?

Keep the file at `config/config.json` inside the project root. Catalyst reads runtime and build settings from this path.
Expand Down
4 changes: 2 additions & 2 deletions errors/ANDROID/ANDROID-007.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ No JDK 17 to 23 found

## Details

Gradle 8.13 and the Android SDK tools need JDK 17 to 23. None was found in JAVA_HOME, /usr/libexec/java_home or Android Studio's bundled runtime (a JDK 24 or newer is skipped), and none could be installed: this is not macOS, Homebrew is missing, or the install was declined.
Gradle 8.13 and the Android SDK tools need JDK 17 to 23. None was found in JAVA_HOME, /usr/libexec/java_home, Android Studio's bundled runtime, the java on PATH or (on Windows) the usual JDK install folders (a JDK 24 or newer is skipped), and none could be installed: this is not macOS, Homebrew is missing, or the install was declined.

## Suggested action

Install JDK 17 or 21 (macOS: brew install --cask zulu@17; Linux: your distribution's openjdk-17-jdk package) and set JAVA_HOME, or run catalyst buildApp:android in a terminal, or with --yes, to install it.
Install JDK 17 or 21 (macOS: brew install --cask zulu@17; Linux: your distribution's openjdk-17-jdk package; Windows: Android Studio, or winget install Microsoft.OpenJDK.17) and set JAVA_HOME, or on macOS run catalyst buildApp:android in a terminal, or with --yes, to install it.
15 changes: 15 additions & 0 deletions errors/IOS/IOS-007.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# IOS-007

**Category:** IOS

## Message

iOS builds need macOS and Xcode

## Details

buildApp:ios and setupEmulator:ios drive Xcode and the iOS Simulator, which only run on macOS. Everything else, including the Android commands, works on this machine.

## Suggested action

Build the iOS app on a Mac or a macOS CI runner. Plain catalyst buildApp and catalyst setupEmulator skip iOS on other systems and carry on with Android.
13 changes: 10 additions & 3 deletions errors/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@
"suggestedAction": "Export public/icon.png without an alpha channel (flatten it onto a solid background), then rebuild.",
"docUrl": "https://github.com/tata1mg/catalyst-core/blob/main/errors/IOS/IOS-006.md"
},
"IOS-007": {
"category": "IOS",
"message": "iOS builds need macOS and Xcode",
"details": "buildApp:ios and setupEmulator:ios drive Xcode and the iOS Simulator, which only run on macOS. Everything else, including the Android commands, works on this machine.",
"suggestedAction": "Build the iOS app on a Mac or a macOS CI runner. Plain catalyst buildApp and catalyst setupEmulator skip iOS on other systems and carry on with Android.",
"docUrl": "https://github.com/tata1mg/catalyst-core/blob/main/errors/IOS/IOS-007.md"
},
"IOS-010": {
"category": "IOS",
"message": "iOS code signing is not set up",
Expand Down Expand Up @@ -296,8 +303,8 @@
"ANDROID-007": {
"category": "ANDROID",
"message": "No JDK 17 to 23 found",
"details": "Gradle 8.13 and the Android SDK tools need JDK 17 to 23. None was found in JAVA_HOME, /usr/libexec/java_home or Android Studio's bundled runtime (a JDK 24 or newer is skipped), and none could be installed: this is not macOS, Homebrew is missing, or the install was declined.",
"suggestedAction": "Install JDK 17 or 21 (macOS: brew install --cask zulu@17; Linux: your distribution's openjdk-17-jdk package) and set JAVA_HOME, or run catalyst buildApp:android in a terminal, or with --yes, to install it.",
"details": "Gradle 8.13 and the Android SDK tools need JDK 17 to 23. None was found in JAVA_HOME, /usr/libexec/java_home, Android Studio's bundled runtime, the java on PATH or (on Windows) the usual JDK install folders (a JDK 24 or newer is skipped), and none could be installed: this is not macOS, Homebrew is missing, or the install was declined.",
"suggestedAction": "Install JDK 17 or 21 (macOS: brew install --cask zulu@17; Linux: your distribution's openjdk-17-jdk package; Windows: Android Studio, or winget install Microsoft.OpenJDK.17) and set JAVA_HOME, or on macOS run catalyst buildApp:android in a terminal, or with --yes, to install it.",
"docUrl": "https://github.com/tata1mg/catalyst-core/blob/main/errors/ANDROID/ANDROID-007.md"
},
"ANDROID-008": {
Expand Down Expand Up @@ -727,4 +734,4 @@
"suggestedAction": "Remove or rename the existing .gitignore before running again, or ignore this warning.",
"docUrl": "https://github.com/tata1mg/catalyst-core/blob/main/errors/CCA/CCA-009.md"
}
}
}
11 changes: 6 additions & 5 deletions examples/error-catalog/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Error Catalog Example (`examples/error-catalog`)

A standalone Catalyst app whose scenarios reproduce a **real developer
mistake** for every one of the framework's 104 error codes, then assert the dev
mistake** for every one of the framework's 105 error codes, then assert the dev
sees the right coded error (message + doc URL).

- **`npm run test:error`**: runs all 104, one block per code: the mistake, what
- **`npm run test:error`**: runs all 105, one block per code: the mistake, what
the dev sees, and PASS / FAIL / SKIP. This is the command to run.
- **`npm run demo`** — interactive walk of the server-reachable scenarios only
(the `cli` / `http` tiers); other kinds are contract assertions, see
Expand All @@ -13,7 +13,7 @@ sees the right coded error (message + doc URL).

## Coverage

104 / 104 codes accounted for: **69 reproduced by a scenario**, **35 in the
105 / 105 codes accounted for: **69 reproduced by a scenario**, **36 in the
LEDGER** as `not-example-reproducible` — each with a specific reason below, not
a hand-wave.

Expand Down Expand Up @@ -55,7 +55,7 @@ a hand-wave.
terminalProgress.js import casing` — the ANDROID-000 / IOS-000 scenarios here
are what surfaced it (first CI exercise of `buildApp:*` on Linux).

## The 104-code ledger
## The 105-code ledger

| Code | Dev mistake | Tier | What the dev sees | Coverage |
| -------------------- | ---------------------------------------------------------------------------- | -------------- | ----------------------------------------------------------------------- | ------------------------------------ |
Expand Down Expand Up @@ -96,6 +96,7 @@ terminalProgress.js import casing` — the ANDROID-000 / IOS-000 scenarios here
| `IOS-004` | — | — | No iOS simulator runtime installed | **LEDGER: not-example-reproducible** |
| `IOS-005` | — | — | App icon is not usable | **LEDGER: not-example-reproducible** |
| `IOS-006` | — | — | App icon has transparency | **LEDGER: not-example-reproducible** |
| `IOS-007` | iOS build on a machine that is not a Mac | build-native | iOS builds need macOS and Xcode | **LEDGER: not-example-reproducible** |
| `IOS-010` | Signed release build with no development team | build-native | iOS code signing is not set up | scenario |
| `IOS-011` | App Store Connect API key in credentials/ios/ with no issuer ID | build-native | App Store Connect API key settings are incomplete or wrong | scenario |
| `IOS-012` | — | — | Manual signing inputs are incomplete or wrong | **LEDGER: not-example-reproducible** |
Expand Down Expand Up @@ -172,7 +173,7 @@ terminalProgress.js import casing` — the ANDROID-000 / IOS-000 scenarios here
npm run sync-core
npm run sync-packages

# All 104, human-readable
# All 105, human-readable
npm run test:error

# One code
Expand Down
15 changes: 15 additions & 0 deletions examples/error-catalog/scenarios/build-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export const buildNativeScenarios = [
title: "iOS build failed in upstream toolchain step",
tier: "build-native",
kind: "build-native",
// Anywhere else buildApp:ios stops at IOS-007 once the config is resolved,
// before Xcode runs.
platforms: ["darwin"],
break: (appDir) => {
const confPath = path.join(appDir, "config", "config.json")
const conf = JSON.parse(fs.readFileSync(confPath, "utf8"))
Expand Down Expand Up @@ -212,6 +215,18 @@ export const buildNativeScenarios = [
},
expect: { inOutput: ["IOS-013"], exitNonZero: true },
},
{
code: "IOS-007",
title: "iOS build on a machine that is not a Mac",
tier: "build-native",
kind: "build-native",
platforms: ["linux", "win32"],
// Nothing to break: being on this machine is the mistake.
break: () => {},
restore: () => {},
run: { cmd: "catalyst", args: ["buildApp:ios"], kind: "build-native" },
expect: { inOutput: ["IOS-007", "macOS"], exitNonZero: true },
},
]

export default buildNativeScenarios
2 changes: 1 addition & 1 deletion examples/error-catalog/scripts/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async function main() {
// The interactive demo only walks scenarios that surface an error from
// a running server / the CLI. client, mapping, build, cca-cli and
// build-native kinds are contract assertions — run `npm run test:error`
// to see those (it covers all 75). Skip them here rather than crash on
// to see those (it covers all 76). Skip them here rather than crash on
// their missing break()/run.
const SERVER_KINDS = new Set(["cli-startup", "http"])

Expand Down
4 changes: 4 additions & 0 deletions examples/error-catalog/scripts/test-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ async function main() {
status = "SKIP"
detail = "Validator exists, no live call site"
skippedCount++
} else if (scen.platforms && !scen.platforms.includes(process.platform)) {
status = "SKIP"
detail = `Not reachable on ${process.platform}`
skippedCount++
} else if (scen.kind === "client" || scen.kind === "mapping") {
const passed = vitestAssertionMap.get(code)
if (passed === true) {
Expand Down
Loading
Loading