Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bbd295d
add Windows support through shared native IPC
k-kozika Nov 10, 2026
f2b6abd
fix private runtime initialization races and ancestor checks
k-kozika Nov 10, 2026
8672914
fix native SDK installation and container packaging
k-kozika Nov 10, 2026
531d76c
use the published SDK endpoint for browser write gating
k-kozika Nov 10, 2026
d574c9f
isolate foreign runtime ownership regression fixtures
k-kozika Nov 10, 2026
b94ccde
verify descendant termination through pipe closure
k-kozika Nov 10, 2026
d5c4532
align architecture with shared local runtime
k-kozika Nov 10, 2026
f5fddb5
preserve utf-8 native requests in python
k-kozika Nov 10, 2026
9652524
fix console detection in headless Windows tests
k-kozika Nov 10, 2026
6b5c288
fix cross-platform runtime and native packaging
k-kozika Nov 10, 2026
215b12e
align fallback runtime test paths
k-kozika Nov 10, 2026
097513c
stage local adapters from cargo artifacts
k-kozika Nov 10, 2026
c5c50b9
bundle python library from cargo artifacts
k-kozika Nov 10, 2026
da6a3aa
read windows console input as unicode
k-kozika Nov 10, 2026
f195c50
reject incompatible python wheel libraries
k-kozika Nov 10, 2026
6590891
complete windows installation instructions
k-kozika Nov 10, 2026
28728c3
preserve cancelled startup cleanup
k-kozika Nov 10, 2026
65b0266
reject nonhost cargo wheel targets
k-kozika Nov 10, 2026
1ef57f4
correct unix runtime fallback documentation
k-kozika Nov 10, 2026
92af267
prevent python local shutdown deadlocks
k-kozika Nov 10, 2026
85dcfa0
merge main into feat-windows
k-kozika Nov 10, 2026
c76b176
update Cargo.lock
k-kozika Nov 10, 2026
e068b3e
replace deprecated udp sends and fix lint warnings
k-kozika Nov 10, 2026
267d5a5
migrate native benchmark fixture to runtime v2
k-kozika Nov 10, 2026
24d2104
ignore empty runtime environment overrides
k-kozika Nov 10, 2026
c8d449e
configure source adapter builds for musl
k-kozika Nov 10, 2026
1f25758
create private runtimes in npm smoke tests
k-kozika Nov 10, 2026
e41f577
isolate mobile fixture runtime roots
k-kozika Nov 10, 2026
066a37b
isolate rust publication test roots
k-kozika Nov 10, 2026
481ee8a
create missing relative directories on windows
k-kozika Nov 10, 2026
3556515
Merge branch 'main' into feat-windows
k-kozika Nov 10, 2026
3e23c79
ignore empty approval runtime overrides
k-kozika Nov 10, 2026
f00171a
derive macos wheel deployment tags from binaries
k-kozika Nov 10, 2026
c2f7c86
Merge branch 'feat-windows' of github.com:omochi-ui/omochi into feat-…
k-kozika Nov 10, 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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ jobs:
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python }}
- uses: dtolnay/rust-toolchain@stable
- run: python scripts/build-local.py
- run: python -m pip install mypy pyright build
- run: python scripts/test_python_packaging.py
- run: python scripts/test-sdk-types.py
- run: python -m build packages/sdk/python --outdir /tmp/sdk-wheel
- run: python -m pip install /tmp/sdk-wheel/*.whl
Expand Down
121 changes: 121 additions & 0 deletions .github/workflows/local-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Local SDK adapters
on:
pull_request:
paths-ignore: ['apps/site/**', '.github/workflows/site.yml']
push:
branches: [main]
workflow_call:
inputs:
ref:
type: string
default: ''
permissions:
contents: read
jobs:
adapters:
strategy:
fail-fast: false
matrix:
include:
- { target: x86_64-unknown-linux-gnu, runner: ubuntu-22.04, image: manylinux_2_28_x86_64, libc: glibc }
- { target: aarch64-unknown-linux-gnu, runner: ubuntu-22.04-arm, image: manylinux_2_28_aarch64, libc: glibc }
- { target: x86_64-unknown-linux-musl, runner: ubuntu-22.04, image: musllinux_1_2_x86_64, libc: musl }
- { target: aarch64-unknown-linux-musl, runner: ubuntu-22.04-arm, image: musllinux_1_2_aarch64, libc: musl }
- { target: x86_64-apple-darwin, runner: macos-15-intel }
- { target: aarch64-apple-darwin, runner: macos-15 }
- { target: x86_64-pc-windows-msvc, runner: windows-2025 }
- { target: aarch64-pc-windows-msvc, runner: windows-11-arm }
runs-on: ${{ matrix.runner }}
timeout-minutes: 45
env:
MACOSX_DEPLOYMENT_TARGET: '11.0'
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
ref: ${{ inputs.ref || github.sha }}
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: .bun-version
- uses: actions/setup-node@v7
with:
node-version: '24'
package-manager-cache: false
- uses: actions/setup-python@v7
with:
python-version: '3.14'
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
packages/sdk/rust -> target
crates -> target
- run: bun install --frozen-lockfile
- run: bun run --filter @omochi-ui/core build
- run: bun run --filter @omochi-ui/sdk build
- if: runner.os == 'Linux'
name: Build portable Linux distributions and run native tests
run: >-
docker run --rm -v "$PWD:/io" -w /io -e OMOCHI_LIBC=${{ matrix.libc }}
quay.io/pypa/${{ matrix.image }} bash scripts/ci-local-linux.sh
- if: runner.os != 'Linux'
run: python scripts/build-local.py --release
- if: runner.os != 'Linux'
run: python -m pip install build hatchling typing_extensions
- if: runner.os != 'Linux'
run: python -m build --wheel --outdir artifacts/local-python packages/sdk/python
- if: matrix.libc != 'musl'
run: python -m pip install typing_extensions
- if: matrix.libc != 'musl'
run: python scripts/test-local-adapters.py
- if: runner.os != 'Linux'
run: cargo test --manifest-path packages/sdk/rust/Cargo.toml -p omochi-local
- if: runner.os != 'Linux'
name: Verify Rust media registration
run: cargo test --manifest-path packages/sdk/rust/Cargo.toml -p omochi-ui --test resources
- if: runner.os == 'Windows'
name: Reject another Windows user's token
shell: pwsh
run: |
$name = 'omochi_' + [guid]::NewGuid().ToString('N').Substring(0,8)
$password = 'Aa1!' + [guid]::NewGuid().ToString('N')
Write-Output "::add-mask::$password"
New-LocalUser -Name $name -Password (ConvertTo-SecureString $password -AsPlainText -Force) | Out-Null
Add-LocalGroupMember -Group (Get-LocalGroup -SID 'S-1-5-32-545').Name -Member $name
try {
$env:OMOCHI_ACL_TEST_USER = $name
$env:OMOCHI_ACL_TEST_PASSWORD = $password
cargo test --manifest-path packages/sdk/rust/Cargo.toml -p omochi-local --test windows_acl
if ($LASTEXITCODE -ne 0) { throw 'ACL isolation test failed' }
} finally { Remove-LocalUser -Name $name }
- if: matrix.libc != 'musl'
run: cargo test --manifest-path crates/Cargo.toml -p omochi-process
- if: runner.os == 'Windows'
name: Verify console Unicode and cancellable redirected input
run: cargo test --manifest-path crates/Cargo.toml -p omochi-utils --test windows_input
- if: runner.os == 'Windows'
name: Verify store locks and revocation acknowledgements
run: cargo test --manifest-path crates/Cargo.toml -p omochi-transport --test local_persistence
- if: runner.os == 'Windows'
name: Build native services with browser assets
run: bun run build:native
- if: runner.os == 'Windows'
name: Verify archive installation and default runtime
run: python scripts/test-install-native.py
- if: runner.os == 'Windows'
run: python tests/sdk/socket_ownership.py
- if: runner.os == 'Windows'
name: Exercise SDK to gateway to hub
run: |
python -m pip install "websockets>=14"
python scripts/test-local-native.py
- uses: actions/upload-artifact@v7
with:
name: local-node-${{ matrix.target }}
path: artifacts/local/
if-no-files-found: error
- uses: actions/upload-artifact@v7
with:
name: local-python-${{ matrix.target }}
path: artifacts/local-python/*.whl
if-no-files-found: error
36 changes: 27 additions & 9 deletions .github/workflows/native-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
target: x86_64-apple-darwin
- os: macos-15
target: aarch64-apple-darwin
- os: windows-2025
target: x86_64-pc-windows-msvc
- os: windows-11-arm
target: aarch64-pc-windows-msvc
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
Expand All @@ -75,8 +79,7 @@ jobs:
package-manager-cache: false
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- run: python3 -m pip install ./packages/sdk/python
python-version: ${{ runner.os == 'Windows' && '3.14' || '3.12' }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -90,12 +93,27 @@ jobs:
restore-keys: |
bun-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bun-version') }}-
- run: bun install --frozen-lockfile
- run: python3 -m pip install ./packages/sdk/python
- run: python3 scripts/build-local.py
Comment thread
k-kozika marked this conversation as resolved.
Dismissed
- run: python3 -B scripts/test_native_packaging.py
- run: python3 scripts/package-native.py
- run: python3 scripts/smoke-native.py artifacts/native/*.tar.gz
- run: cargo test --release --locked --manifest-path crates/Cargo.toml --workspace
- run: OMOCHI_NATIVE_TEST=1 OMOCHI_NATIVE_PROFILE=release bun test packages/renderer/test/native.test.ts tests/native/mcp.test.ts
- run: python3 scripts/package-native-npm.py --partial artifacts/native/*.tar.gz
- name: Verify native archives
shell: bash
run: python3 scripts/smoke-native.py artifacts/native/*.tar.gz
- if: runner.os != 'Windows'
Comment thread
k-kozika marked this conversation as resolved.
Dismissed
run: cargo test --release --locked --manifest-path crates/Cargo.toml --workspace
- if: runner.os == 'Windows'
Comment thread
k-kozika marked this conversation as resolved.
Dismissed
run: cargo test --release --locked --manifest-path crates/Cargo.toml -p omochi-process
- if: runner.os == 'Windows'
Comment thread
k-kozika marked this conversation as resolved.
Dismissed
run: |
python -m pip install "websockets>=14"
python scripts/test-local-native.py
env:
OMOCHI_NATIVE_PROFILE: release
- if: runner.os != 'Windows'
Comment thread
k-kozika marked this conversation as resolved.
Dismissed
run: OMOCHI_NATIVE_TEST=1 OMOCHI_NATIVE_PROFILE=release bun test packages/renderer/test/native.test.ts tests/native/mcp.test.ts
- shell: bash
run: python3 scripts/package-native-npm.py --partial artifacts/native/*.tar.gz
- run: bun run release:native:smoke:npm
- uses: actions/upload-artifact@v7
with:
Expand All @@ -117,7 +135,7 @@ jobs:
package-manager-cache: false
- uses: actions/setup-python@v7
with:
python-version: '3.12'
python-version: ${{ runner.os == 'Windows' && '3.14' || '3.12' }}
- uses: actions/download-artifact@v8
with:
pattern: native-release-*
Expand All @@ -143,7 +161,7 @@ jobs:
bun-version-file: .bun-version
- uses: actions/setup-python@v7
with:
python-version: '3.12'
python-version: ${{ runner.os == 'Windows' && '3.14' || '3.12' }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand Down Expand Up @@ -213,7 +231,7 @@ jobs:
bun-version-file: .bun-version
- uses: actions/setup-python@v7
with:
python-version: '3.12'
python-version: ${{ runner.os == 'Windows' && '3.14' || '3.12' }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- run: python3 -m pip install ./packages/sdk/python
- uses: actions/setup-node@v7
with:
node-version: '24'
Expand All @@ -49,6 +48,8 @@ jobs:
restore-keys: |
bun-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bun-version') }}-
- run: bun install --frozen-lockfile
- run: python3 -m pip install ./packages/sdk/python
- run: python3 scripts/build-local.py
- run: python3 -B scripts/test_native_packaging.py
- run: python3 scripts/package-native.py
- run: python3 scripts/smoke-native.py artifacts/native/*.tar.gz
Expand Down Expand Up @@ -100,6 +101,6 @@ jobs:
with:
key: windows-transport
workspaces: crates -> target
# The desktop CLI/store still target Unix; compile the shared transport
# without that feature. Real multicast/VM checks remain opt-in.
# Local adapter CI runs the full Windows services. This job also checks
# the independent DNS-SD/transport feature configuration.
- run: cargo clippy --manifest-path crates/Cargo.toml --locked -p omochi-mdns -p omochi-transport --no-default-features --lib -- -D warnings
43 changes: 38 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ jobs:
bun -e 'console.log("version=" + (await Bun.file("packages/sdk/typescript/package.json").json()).version)' >> "$GITHUB_OUTPUT"
echo "commit=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"

typescript:
local-sdk:
needs: prepare
uses: ./.github/workflows/local-sdk.yml
with:
ref: ${{ needs.prepare.outputs.commit }}

typescript:
needs: [prepare, local-sdk]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand Down Expand Up @@ -97,6 +103,11 @@ jobs:
- run: python scripts/test-catalog-types.py
- run: bun run check:dashboard-app
- run: bun run --bun --filter '*' lint
- uses: actions/download-artifact@v8
with:
pattern: local-node-*
merge-multiple: true
path: artifacts/local/
- run: bun run release:pack
- run: bun run release:smoke
- uses: actions/upload-artifact@v7
Expand All @@ -107,7 +118,7 @@ jobs:
retention-days: 14

python:
needs: prepare
needs: [prepare, local-sdk]
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
Expand All @@ -122,18 +133,26 @@ jobs:
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python }}
- uses: dtolnay/rust-toolchain@stable
- run: python scripts/build-local.py
- run: python -m pip install ./packages/sdk/python
- run: python -m unittest discover -s packages/sdk/python/tests -v
env:
PYTHONPATH: packages/sdk/python/src
- name: Build sdist and wheel, then check metadata
- uses: actions/download-artifact@v8
if: matrix.python == '3.11'
with:
pattern: local-python-*
merge-multiple: true
path: artifacts/python/
- name: Build sdist and check platform distributions
if: matrix.python == '3.11'
run: |
python -m pip install build twine
python -m build --outdir artifacts/python packages/sdk/python
python -m build --sdist --outdir artifacts/python packages/sdk/python
python -m twine check artifacts/python/*
python -m venv "$RUNNER_TEMP/omochi-wheel"
"$RUNNER_TEMP/omochi-wheel/bin/python" -m pip install artifacts/python/*.whl
"$RUNNER_TEMP/omochi-wheel/bin/python" -m pip install $(find artifacts/python -name '*manylinux*x86_64.whl' -print -quit)
- name: Import the installed wheel outside the checkout
if: matrix.python == '3.11'
working-directory: ${{ runner.temp }}
Expand Down Expand Up @@ -292,6 +311,7 @@ jobs:
run: |
python3 scripts/check-sdk-crates.py
cmp "artifacts/rust/omochi-ui-$VERSION.crate" "packages/sdk/rust/target/package/omochi-ui-$VERSION.crate"
cmp "artifacts/rust/omochi-local-$VERSION.crate" "packages/sdk/rust/target/package/omochi-local-$VERSION.crate"
cmp "artifacts/rust/omochi-ui-macros-$VERSION.crate" "packages/sdk/rust/target/package/omochi-ui-macros-$VERSION.crate"
- uses: rust-lang/crates-io-auth-action@v1
id: auth
Expand All @@ -306,6 +326,19 @@ jobs:
echo 'Set CRATES_IO_BOOTSTRAP_TOKEN in the crates-io environment for the first publication.' >&2
exit 1
fi
local_status=$(curl --silent --show-error --location --retry 3 \
--user-agent 'omochi-release (https://github.com/omochi-ui/omochi)' \
--output "$RUNNER_TEMP/local-version.json" --write-out '%{http_code}' \
"https://crates.io/api/v1/crates/omochi-local/${{ needs.prepare.outputs.version }}")
case "$local_status" in
200)
expected=$(sha256sum "artifacts/rust/omochi-local-${{ needs.prepare.outputs.version }}.crate" | cut -d' ' -f1)
actual=$(jq -r '.version.checksum' "$RUNNER_TEMP/local-version.json")
test "$actual" = "$expected"
;;
404) cargo publish --manifest-path packages/sdk/rust/local/Cargo.toml --locked ;;
*) echo "local crate lookup failed: HTTP $local_status" >&2; exit 1 ;;
esac
macro_status=$(curl --silent --show-error --location --retry 3 \
--user-agent 'omochi-release (https://github.com/omochi-ui/omochi)' \
--output "$RUNNER_TEMP/macro-version.json" --write-out '%{http_code}' \
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,9 @@ test-results/

# Verified release distributions
/artifacts/

# Generated SDK native adapters
/packages/sdk/typescript/native/
/packages/sdk/python/src/omochi_ui/_native/

__pycache__/
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ do not send Japanese readers to English-only user references for missing details

Keep the first-UI walkthrough centered on an installed Hub and utilities. SDK
guides should show language-package installation, publishing an application with
`UnixSocketServerTransport`, and displaying it in the Hub without cloning or
`LocalServerTransport`, and displaying it in the Hub without cloning or
building Omochi. Document other transport choices in the transport reference.

Describe historical behavior only when readers need it to handle existing
Expand Down
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Flutterアプリは内蔵Hubを使うか、外部Hubへ接続できます。

## 使う

LinuxまたはmacOSとNode.js 22以上で起動します。
Linux・macOS・Windows 11とNode.js 22以上で起動します。

```sh
npx @omochi-ui/cli hub
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ an external Hub.

## Use it

On Linux or macOS with Node.js 22+:
On Linux, macOS or Windows 11 with Node.js 22+:

```sh
npx @omochi-ui/cli hub
Expand Down
1 change: 1 addition & 0 deletions apps/mobile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ bun run --filter @omochi-ui/hub-ui build
cargo build --manifest-path crates/Cargo.toml -p omochi-cli

# terminal 1, apps/mobile
python3 -B tool/test_native_fixture.py # Headless Gateway/SDK discovery check
python3 tool/native_fixture.py --online
# terminal 2, Android
adb reverse tcp:5559 tcp:5559
Expand Down
Loading
Loading