From 0efe9738c3aa8a43f55f56b20acfd9cdf3b4919d Mon Sep 17 00:00:00 2001 From: pikann22 Date: Sun, 23 Aug 2026 05:57:15 +0000 Subject: [PATCH 1/2] feat: integrate TinyGo for WASM builds and update plugin-sdk-go dependency to v0.3.3 --- .github/workflows/backend-pr-ci.yml | 8 +++++++- .github/workflows/release.yml | 8 +++++++- README.md | 4 ++-- backend/go.mod | 2 +- backend/go.sum | 4 ++-- plugin.json | 2 +- 6 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/backend-pr-ci.yml b/.github/workflows/backend-pr-ci.yml index 9e5bf95..6c553cb 100644 --- a/.github/workflows/backend-pr-ci.yml +++ b/.github/workflows/backend-pr-ci.yml @@ -66,8 +66,14 @@ jobs: go-version: ${{ env.GO_VERSION }} cache-dependency-path: backend/go.sum + - name: Setup TinyGo + run: | + set -euo pipefail + curl -sL -o /tmp/tinygo.deb https://github.com/tinygo-org/tinygo/releases/download/v0.41.1/tinygo_0.41.1_amd64.deb + sudo dpkg -i /tmp/tinygo.deb + - name: Build WASM - run: GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o bdd.wasm . + run: tinygo build -target=wasip1 -buildmode=c-shared -o bdd.wasm . test: name: Tests diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a8060a..33f5f61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,12 @@ jobs: with: go-version: "1.24" + - name: Setup TinyGo + run: | + set -euo pipefail + curl -sL -o /tmp/tinygo.deb https://github.com/tinygo-org/tinygo/releases/download/v0.41.1/tinygo_0.41.1_amd64.deb + sudo dpkg -i /tmp/tinygo.deb + - name: Setup Bun uses: oven-sh/setup-bun@v2 with: @@ -32,7 +38,7 @@ jobs: run: | set -euo pipefail mkdir -p ../release/backend - GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o ../release/backend/bdd.wasm . + tinygo build -target=wasip1 -buildmode=c-shared -o ../release/backend/bdd.wasm . - name: Build frontend working-directory: frontend diff --git a/README.md b/README.md index 2c033fd..fd05280 100644 --- a/README.md +++ b/README.md @@ -90,8 +90,8 @@ cd backend # Run tests go test ./... -# Build WASM (requires Go 1.24+) -GOOS=wasip1 GOARCH=wasm go build -o ../dist/backend.wasm . +# Build WASM (requires TinyGo — see https://tinygo.org/getting-started/install/) +tinygo build -target=wasip1 -buildmode=c-shared -o ../dist/backend.wasm . ``` ### Frontend diff --git a/backend/go.mod b/backend/go.mod index 2cf1f69..bd0accd 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -2,4 +2,4 @@ module github.com/Paca-AI/first-party/bdd go 1.24 -require github.com/Paca-AI/plugin-sdk-go v0.2.0 +require github.com/Paca-AI/plugin-sdk-go v0.3.3 diff --git a/backend/go.sum b/backend/go.sum index 8389b8f..970bd41 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -1,2 +1,2 @@ -github.com/Paca-AI/plugin-sdk-go v0.2.0 h1:Fur6p+OQoC5imq7qmvaQtJnZ3SRVRskx8KcT/rqFHj4= -github.com/Paca-AI/plugin-sdk-go v0.2.0/go.mod h1:5WeC6cSEf2wM1ovICZbDaVky9oi5id/Qpdfc5LDAQnw= +github.com/Paca-AI/plugin-sdk-go v0.3.3 h1:nW2DwJatraYfxo4MpwNkfQEp+9jmj7QHaU16bOXzBpM= +github.com/Paca-AI/plugin-sdk-go v0.3.3/go.mod h1:5WeC6cSEf2wM1ovICZbDaVky9oi5id/Qpdfc5LDAQnw= diff --git a/plugin.json b/plugin.json index 4e006b2..5ccbdcb 100644 --- a/plugin.json +++ b/plugin.json @@ -3,7 +3,7 @@ "displayName": "BDD Scenarios", "description": "Adds Given/When/Then BDD acceptance criteria to tasks.", "version": "0.3.3", - "minCoreVersion": "v0.12.2", + "minCoreVersion": "v0.13.3", "permissions": ["db.read", "db.write", "events.subscribe"], "backend": { "eventSubscriptions": ["task.deleted"], From 0370bedddeed1a48fa27bc15fcf8722d70776317 Mon Sep 17 00:00:00 2001 From: pikann22 Date: Sun, 23 Aug 2026 06:09:37 +0000 Subject: [PATCH 2/2] chore: bump patch version in plugin.json --- plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.json b/plugin.json index 5ccbdcb..99eb88c 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "id": "com.paca.bdd", "displayName": "BDD Scenarios", "description": "Adds Given/When/Then BDD acceptance criteria to tasks.", - "version": "0.3.3", + "version": "0.3.4", "minCoreVersion": "v0.13.3", "permissions": ["db.read", "db.write", "events.subscribe"], "backend": {