Author SHA1 Message Date
chrnx 3e76868811 Merge pull request 'release: promote install-path fixes to main (26.8.0-beta.0)' (#10) from develop into main
CI / check (push) Successful in 28s
Release / prepare (push) Successful in 2s
Release / publish-crate (push) Has been skipped
Promote → GitHub / push-github (push) Successful in 4s
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 25s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 11s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 42s
Reviewed-on: #10
2026-08-07 22:12:04 +00:00
chrnx 8910fe22ee Merge pull request 'docs: point the public install paths at reachable hosts' (#8) from docs/public-install-paths into develop
CI / check (push) Successful in 37s
CI / check (pull_request) Successful in 25s
Reviewed-on: #8
2026-08-07 19:47:17 +00:00
chrnxandClaude Opus 5 95b7b92fdf docs: describe what the CLI actually does differently
CI / check (pull_request) Successful in 26s
crates.io shows this line in search results and on the crate page, and
"scaffold and manage graph-based apps" describes every scaffolder ever
written.

The differentiator is that `matcha create` wires what it generates into its
`@Module` — a generic generator drops files and leaves the wiring to you.
Say that, plus runtime detection and the no-JS-runtime install, since those
are the parts a reader cannot get elsewhere.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:40:54 -05:00
chrnxandClaude Opus 5 3e6fa7797b chore: bump to 26.8.0-beta.0 so the README fix reaches crates.io
CI / check (pull_request) Successful in 26s
Cargo embeds README.md into the published .crate, so crates.io keeps serving
whatever was there at publish time. The install-path fix in this branch is
invisible to anyone reading crates.io until a new version ships — and that page
is the whole point, since it is where the broken curl command is currently
advertised.

Calendar versioning, same as the core package: this is the first matcha cut in
August 2026.

Note for tagging: the previous release tagged `v26.7.0` while Cargo.toml said
`26.7.0-beta.0`. Tag this one `v26.8.0-beta.0` so the tag and the crate version
match.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:18:44 -05:00
chrnxandClaude Opus 5 f88c11ac0b docs: point the public install paths at reachable hosts
CI / check (pull_request) Successful in 26s
The README is what crates.io publishes, and it documented two install paths
that cannot work from outside the network — the curl one-liner and
`cargo install --git` both pointed at the internal Gitea host — while omitting
the one path that does work today: `cargo install matcha-cli`.

That is very likely most of why matcha has 16 downloads against the core
package's 159 a week.

- Lead with `cargo install matcha-cli`. Verified working from crates.io.
- Curl one-liner now uses the GitHub raw URL, which is reachable (200).
- `cargo install --git` points at the GitHub mirror.
- install.sh defaults REPO_BASE / API_BASE to GitHub. Both env vars still
  override, and Gitea's release API is GitHub-compatible for the two calls
  this script makes, so installing from the internal host still works.

Note: the prebuilt-binary path stays broken until releases exist on GitHub.
The v26.7.0 tag is mirrored there but release.yml has never fired on GitHub —
zero tag-triggered runs. Tracked separately.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:13:32 -05:00
chrnx 1764aa764b Merge pull request 'release: crates.io OIDC → main' (#7) from develop into main
CI / check (push) Successful in 27s
Promote → GitHub / push-github (push) Successful in 6s
2026-07-18 20:18:40 +00:00
chrnx bee7580ab4 Merge pull request 'ci: crates.io Trusted Publishing (OIDC, no token)' (#6) from ci/trusted-publishing into develop
CI / check (push) Successful in 27s
2026-07-18 20:18:12 +00:00
chrnx b8aac3bb6a ci: publish to crates.io via OIDC Trusted Publishing (no token)
Replaces CARGO_TOKEN with crates.io Trusted Publishing: id-token: write + rust-lang/crates-io-auth-action exchanges the OIDC token for a short-lived crates.io token. Requires a trusted publisher configured on crates.io (Expressive-Tea/matcha, release.yml).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:54:25 -05:00
chrnx e5a1b7583a Merge pull request 'release: promote develop → main' (#5) from develop into main 2026-07-18 19:04:12 +00:00
chrnx 88dd2035c4 Merge pull request 'feat: matcha-cli crate + two-forge CI/CD' (#4) from feat/ci-cargo-crates into develop 2026-07-18 19:00:58 +00:00
chrnx dfba02a7ce feat: rename crate to matcha-cli + two-forge CI/CD workflows
Crate renamed matcha->matcha-cli for crates.io (the name matcha is taken); binary stays matcha. Adds description/license/repository and CalVer prerelease version. New .github/workflows: ci (fmt+clippy+test), promote (main+tags -> GitHub), release (relocated from .gitea + crates.io publish on GitHub only). Cargo.lock regenerated; gate passes locally.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 13:58:18 -05:00
chrnx 371c5f708f Merge pull request 'feat: Create command finished' (#3) from develop into main
Reviewed-on: #3
2026-07-13 00:24:45 +00:00
chrnx cc943079a4 Merge branch 'main' into develop 2026-07-13 00:24:36 +00:00
chrnx beaba7ce80 Merge feature/matcha-create-generators: create step/provider/module 2026-07-12 19:22:03 -05:00
chrnx 0427c89752 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 c9cad458bc 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 7b632e5170 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 59004c4b5e 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 17a3936733 Merge develop: idempotent release prepare job 2026-07-12 18:28:27 -05:00
chrnx a112235ca6 Merge fix/release-idempotent: prevent Gitea re-release 404 2026-07-12 18:28:25 -05:00
chrnx f77bd4d774 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 060f135eb4 Merge develop: installer latest-URL fix + matcha --version 2026-07-12 18:18:18 -05:00
chrnx 756dbed5d9 Merge branch 'develop' of ssh://git.svc.zoit.services:2232/Green-Tea/matcha into develop 2026-07-12 18:14:38 -05:00
chrnx 6841a2102d Merge fix/installer-latest-url: installer latest-URL fix + matcha --version 2026-07-12 18:14:04 -05:00
chrnx 112f8da22c 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 274b40c13a Merge pull request 'Develop' (#2) from develop into main
Reviewed-on: #2
2026-07-12 23:03:57 +00:00
chrnx 03597499cd Merge branch 'main' into develop 2026-07-12 23:03:43 +00:00
chrnx 5ac79e91c0 Merge feature/matcha-installer: curl|sh installer + release CI 2026-07-12 18:00:39 -05:00
chrnx 787890e5c9 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 8c515a30a2 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 98394ceb8a 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 3ad7ac0dea 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 ee7eccc0de 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 832fbbb943 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 ca27e31648 Merge pull request 'Develop' (#1) from develop into main
Reviewed-on: #1
2026-07-12 21:37:14 +00:00
chrnx 1b438278c6 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 78e7d9b15b Merge feature/matcha-multi-runtime: node/deno/bun starters via --runtime (default node) 2026-07-12 13:16:39 -05:00
chrnx e6ee9e84e8 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 1b5922c4de 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 e8cd20b7ec 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 c63c121787 Merge feature/matcha-v1-cli: matcha v1 CLI (new/run/create/add) 2026-07-12 13:01:34 -05:00
chrnx a2610fa019 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 2f9b656692 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 65ecba05d1 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 0aee29478b 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 4fe5b53e7f 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 72e984d35c 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 81af7c1c2a 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 49909ed821 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 6de9b56b82 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 1cc6f35b90 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 8d31faa27e 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 c382602ca7 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 7044e50982 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 dba24aa50a 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 281e8ccc17 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 c5d874a360 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 75d7684636 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 fbb9282f7e 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 eb392baf68 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 108 additions and 16 deletions

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
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
@@ -0,0 +1,27 @@
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
@@ -1,4 +1,8 @@
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*']
@@ -77,3 +81,25 @@ 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
Generated
+2 -2
View File
@@ -253,8 +253,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
[[package]]
name = "matcha"
version = "26.7.0"
name = "matcha-cli"
version = "26.8.0-beta.0"
dependencies = [
"assert_cmd",
"clap",
+7 -2
View File
@@ -1,8 +1,13 @@
[package]
name = "matcha"
version = "26.7.0"
name = "matcha-cli"
version = "26.8.0-beta.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"
+14 -6
View File
@@ -1,24 +1,32 @@
# matcha
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.
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.
## Install
```bash
curl -fsSL https://git.svc.zoit.services/Green-Tea/matcha/raw/branch/main/install.sh | sh
cargo install matcha-cli
```
Installs a prebuilt binary to `~/.local/bin` — no Rust required. Env vars go on
the `sh` side of the pipe:
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:
```bash
curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh
```
**From source** (requires Rust — compiles and installs):
**From git** (compiles the default branch):
```bash
cargo install --git https://git.svc.zoit.services/Green-Tea/matcha
cargo install --git https://github.com/Expressive-Tea/matcha
```
## Usage
+9 -6
View File
@@ -1,14 +1,17 @@
#!/bin/sh
# matcha installer — downloads a prebuilt binary from Gitea Releases.
# matcha installer — downloads a prebuilt binary from GitHub Releases.
# curl -fsSL <raw>/install.sh | sh
# Env: MATCHA_VERSION (tag, default latest), MATCHA_INSTALL_DIR (default ~/.local/bin),
# MATCHA_REPO_BASE (default the Gitea repo URL).
# MATCHA_REPO_BASE / MATCHA_API_BASE (override to install from the internal Gitea,
# whose release API is GitHub-compatible for everything this script touches).
set -eu
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}"
# 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}"
INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}"
err() { echo "matcha-install: $*" >&2; exit 1; }