Author SHA1 Message Date
chrnx 2a3dae99f5 Merge pull request 'feat: Create command finished' (#3) from develop into main
Release / prepare (push) Successful in 4s
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 12s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 11s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 37s
Reviewed-on: #3
2026-07-13 00:24:45 +00:00
chrnx c95ca6c812 Merge branch 'main' into develop 2026-07-13 00:24:36 +00:00
chrnx eb65f472dd Merge feature/matcha-create-generators: create step/provider/module 2026-07-12 19:22:03 -05:00
chrnx 444567ffb3 fix(wire): refuse to create a duplicate key when the existing value isn't an array
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 19:21:39 -05:00
chrnx 314bf3a4b0 chore(wire): drop stale dead_code allow on add_to_createapp_modules
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 19:16:09 -05:00
chrnx 3066cc477e feat(create): implement step, provider, and module generators
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 19:14:16 -05:00
chrnx 9fd1181497 feat(wire): create @Module key if absent + createApp modules target
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 19:10:58 -05:00
chrnx 7c6d01212e Merge develop: idempotent release prepare job 2026-07-12 18:28:27 -05:00
chrnx 59967af078 Merge fix/release-idempotent: prevent Gitea re-release 404 2026-07-12 18:28:25 -05:00
chrnx ed2deeda1c ci: prepare job deletes existing release before build (Gitea asset-replace 404 workaround)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 18:28:25 -05:00
chrnx 4cf92b18e5 Merge develop: installer latest-URL fix + matcha --version
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 11s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 11s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 48s
2026-07-12 18:18:18 -05:00
chrnx 77c3c2a0ff Merge branch 'develop' of ssh://git.svc.zoit.services:2232/Green-Tea/matcha into develop 2026-07-12 18:14:38 -05:00
chrnx c7b58db24e Merge fix/installer-latest-url: installer latest-URL fix + matcha --version 2026-07-12 18:14:04 -05:00
chrnx 7080b207a7 fix: installer resolves latest via host-root API (was 404 on repo-path); add matcha --version
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 18:13:54 -05:00
chrnx 6d99144a75 Merge pull request 'Develop' (#2) from develop into main
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 45s
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 14s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 10s
Reviewed-on: #2
2026-07-12 23:03:57 +00:00
chrnx 235b87dcae Merge branch 'main' into develop 2026-07-12 23:03:43 +00:00
chrnx 6e84f467a8 Merge feature/matcha-installer: curl|sh installer + release CI 2026-07-12 18:00:39 -05:00
chrnx 995c3cd45e fix(install): tolerate whitespace in latest-tag JSON; doc env vars on pipe
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 18:00:29 -05:00
chrnx b630478985 docs: install via curl|sh, cargo install --git as from-source
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 17:57:06 -05:00
chrnx 7beadde4be ci: fail-fast=false so a flaky leg can't publish a partial release
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 17:56:40 -05:00
chrnx 48276890e8 ci: release workflow builds binaries and publishes to Gitea Releases
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 17:52:23 -05:00
chrnx 8a282fa9c8 test: shellcheck-clean fixture checksum generation (SC2015)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 17:51:30 -05:00
chrnx 02c3c35d87 feat: curl|sh installer with sha256 verification
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 17:46:42 -05:00
chrnx 1b0a9b40a6 Merge pull request 'Develop' (#1) from develop into main
Reviewed-on: #1
2026-07-12 21:37:14 +00:00
chrnx 04e20cfccf chore: stop tracking AI/scratch docs (.specs); keep tree to project docs only
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 16:35:21 -05:00
chrnx b071896b10 Merge feature/matcha-multi-runtime: node/deno/bun starters via --runtime (default node) 2026-07-12 13:16:39 -05:00
chrnx 4985adad00 chore: drop now-stale dead_code allows in runtime.rs; spec default=node erratum
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 13:16:27 -05:00
chrnx 685c51b7e0 fix(new): default runtime is node (framework is node-first)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 13:13:02 -05:00
chrnx 3f86841d4b feat(new): multi-runtime starter (node/deno/bun) via --runtime, shared + overlay templates
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 13:11:12 -05:00
chrnx f84c50b97e Merge feature/matcha-v1-cli: matcha v1 CLI (new/run/create/add) 2026-07-12 13:01:34 -05:00
chrnx 277e0bd289 chore: adopt calver versioning (26.7.0)
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 13:01:34 -05:00
chrnx 757b729986 fix(add): merge imports into existing brace + capability idempotency; fmt
- wire::add_import now merges a new symbol into an already-present
  `import { ... } from '<from>';` brace instead of appending a second,
  colliding import line for the same module (a duplicate ESM binding
  is a hard SyntaxError/TS2300, not a harmless dupe as previously
  assumed). Falls back to appending a new line when the module isn't
  imported yet, or if the brace-merge edit fails the parses_clean
  guard.
- cmd_add::run gains a capability-level idempotency guard, keyed on
  each capability's unique route-path literal, so `matcha add <cap>`
  run twice no longer appends a duplicate handler + route.
- cargo fmt --all across the crate; drop the stale #[allow(dead_code)]
  on wire::parses_clean now that it's demonstrably live.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:52:21 -05:00
chrnx bc013fde9f docs: matcha README with usage and runtime detection
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:39:37 -05:00
chrnx 87d7e185d7 test(add): cover insert_method revert/not-found paths and only_controller errors
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:38:09 -05:00
chrnx 1b9990f02a feat: matcha add appends capability handler to the controller
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:33:32 -05:00
chrnx e99dd58c66 feat: optional --check delegates type-check to detected runtime
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:28:40 -05:00
chrnx 13b77b3999 feat: matcha create controller with tree-sitter auto-wire + emit-only fallback
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:24:29 -05:00
chrnx 4df1e7ce7b fix(wire): scope @Module array search to the Module decorator, not any object literal
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:20:39 -05:00
chrnx acaee0d7e0 feat: tree-sitter import + @Module array wiring with revert-on-break
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:13:38 -05:00
chrnx 16480db7a2 feat: matcha run detects runtime and spawns watch
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:09:08 -05:00
chrnx 2972326103 feat: matcha new --template-url via shallow git clone
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:06:19 -05:00
chrnx de000cb27d fix(new): no orphan dir on error path; drop stale dead_code allow
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 13:03:01 -05:00
chrnx 06849ebab4 feat: matcha new scaffolds from embedded starter
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:59:38 -05:00
chrnx caabb51ae0 fix(starter): make scaffolded app runnable — mountpoint, Deno entrypoint, import map
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:56:54 -05:00
chrnx 456fa10664 feat: embed official starter template with token substitution
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:49:53 -05:00
chrnx 6ad481eb82 feat: runtime detection with matcha.toml override
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:46:11 -05:00
chrnx 4298c0509f chore: track Cargo.lock for reproducible binary builds
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:44:02 -05:00
chrnx bbe3e299ae feat: matcha binary skeleton with clap command surface
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:41:27 -05:00
chrnx 7b1debd6d2 chore: bootstrap matcha repo with design spec and plan
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-11 12:39:35 -05:00
7 changed files with 16 additions and 108 deletions

No files matched your search

@@ -1,8 +1,4 @@
name: Release
# On a version tag: build cross-platform binaries and attach them to the release (on
# whichever forge fired — the release API calls are portable). ADDITIONALLY, on GitHub
# only (production), publish the crate to crates.io.
on:
push:
tags: ['v*']
@@ -81,25 +77,3 @@ jobs:
files: |
matcha-${{ matrix.target }}.tar.gz
matcha-${{ matrix.target }}.tar.gz.sha256
# crates.io = production only.
# crates.io = production only, via OIDC Trusted Publishing (no CARGO_TOKEN).
# Requires a trusted publisher configured on crates.io (Expressive-Tea/matcha, release.yml).
publish-crate:
if: ${{ github.server_url == 'https://github.com' }}
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
# Exchanges the OIDC id-token for a short-lived crates.io token.
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
run: cargo publish --locked
-23
View File
@@ -1,23 +0,0 @@
name: CI
# Rust gate. Lives in .github/workflows so both Gitea and GitHub run it.
on:
pull_request:
branches: [develop, main]
push:
branches: [develop, main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Add clippy + rustfmt
run: rustup component add clippy rustfmt
- run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test --locked
-27
View File
@@ -1,27 +0,0 @@
name: Promote → GitHub
# Runs on GITEA ONLY. Mirrors only main + version tags to the public GitHub repo.
on:
push:
branches: [main]
tags: ['v*']
jobs:
push-github:
if: ${{ github.server_url != 'https://github.com' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push main + tags to GitHub
env:
GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }}
run: |
git remote add github "https://x-access-token:${GH_TOKEN}@github.com/Expressive-Tea/matcha.git"
if [ "${{ github.ref_type }}" = "tag" ]; then
git push github "refs/tags/${{ github.ref_name }}"
else
git push github "HEAD:refs/heads/main"
git push github --tags
fi
Generated
+2 -2
View File
@@ -253,8 +253,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
[[package]]
name = "matcha-cli"
version = "26.8.0-beta.0"
name = "matcha"
version = "26.7.0"
dependencies = [
"assert_cmd",
"clap",
+2 -7
View File
@@ -1,13 +1,8 @@
[package]
name = "matcha-cli"
version = "26.8.0-beta.0"
name = "matcha"
version = "26.7.0"
edition = "2021"
description = "The green-tea CLI: scaffold a project, generate controllers, steps and providers already wired into their module, and run with your runtime detected. One native binary, no JS runtime needed to install it."
license = "MIT"
repository = "https://github.com/Expressive-Tea/matcha"
# The crate is `matcha-cli` on crates.io (the name `matcha` is taken), but the
# installed binary stays `matcha` — `cargo install matcha-cli` gives you `matcha`.
[[bin]]
name = "matcha"
path = "src/main.rs"
+6 -14
View File
@@ -1,32 +1,24 @@
# matcha
The [green-tea](https://github.com/Expressive-Tea/green-tea) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate.
The [green-tea](https://git.svc.zoit.services/Green-Tea/core) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate.
## Install
```bash
cargo install matcha-cli
curl -fsSL https://git.svc.zoit.services/Green-Tea/matcha/raw/branch/main/install.sh | sh
```
Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha`
binary. Needs a Rust toolchain; takes a few seconds.
**Prebuilt binary** (no Rust), from the latest GitHub release:
```bash
curl -fsSL https://raw.githubusercontent.com/Expressive-Tea/matcha/main/install.sh | sh
```
Drops the binary in `~/.local/bin`. Env vars go on the `sh` side of the pipe:
Installs a prebuilt binary to `~/.local/bin` — no Rust required. Env vars go on
the `sh` side of the pipe:
```bash
curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh
```
**From git** (compiles the default branch):
**From source** (requires Rust — compiles and installs):
```bash
cargo install --git https://github.com/Expressive-Tea/matcha
cargo install --git https://git.svc.zoit.services/Green-Tea/matcha
```
## Usage
+6 -9
View File
@@ -1,17 +1,14 @@
#!/bin/sh
# matcha installer — downloads a prebuilt binary from GitHub Releases.
# matcha installer — downloads a prebuilt binary from Gitea Releases.
# curl -fsSL <raw>/install.sh | sh
# Env: MATCHA_VERSION (tag, default latest), MATCHA_INSTALL_DIR (default ~/.local/bin),
# MATCHA_REPO_BASE / MATCHA_API_BASE (override to install from the internal Gitea,
# whose release API is GitHub-compatible for everything this script touches).
# MATCHA_REPO_BASE (default the Gitea repo URL).
set -eu
# Public by default: the Gitea host is unreachable outside the network, and this script
# is what crates.io and the README point people at.
REPO_BASE="${MATCHA_REPO_BASE:-https://github.com/Expressive-Tea/matcha}"
# The API lives on its own host, NOT under the repo path. Keep it separate from
# REPO_BASE (which is used for release DOWNLOAD urls under the repo).
API_BASE="${MATCHA_API_BASE:-https://api.github.com/repos/Expressive-Tea/matcha}"
REPO_BASE="${MATCHA_REPO_BASE:-https://git.svc.zoit.services/Green-Tea/matcha}"
# The API lives at the host root (/api/v1/...), NOT under the repo path. Keep it
# separate from REPO_BASE (which is used for release DOWNLOAD urls under the repo).
API_BASE="${MATCHA_API_BASE:-https://git.svc.zoit.services/api/v1/repos/Green-Tea/matcha}"
INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}"
err() { echo "matcha-install: $*" >&2; exit 1; }