High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
refactor: move tygo.yaml to dashboard/
Bosch63a10498d389
diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.ymlindex 5fd47471..b35baeaa 100644--- a/.github/workflows/dashboard.yml+++ b/.github/workflows/dashboard.yml@@ -6,14 +6,12 @@ on:paths:- 'dashboard/**'- 'internal/api/types/**'- - 'tygo.yaml'- 'scripts/build-dashboard.sh'- '.github/workflows/dashboard.yml'pull_request:paths:- 'dashboard/**'- 'internal/api/types/**'- - 'tygo.yaml'- 'scripts/build-dashboard.sh'- '.github/workflows/dashboard.yml'workflow_dispatch:@@ -44,14 +42,12 @@ jobs:bun-version: latest- name: Install tygo- working-directory: .run: go install github.com/gzuidhof/tygo@latest- name: Generate dashboard types- working-directory: .run: |"$HOME/go/bin/tygo" generate- git diff --exit-code -- dashboard/src/generated/types.ts+ git diff --exit-code -- src/generated/types.ts- name: Install dependenciesrun: bun install --frozen-lockfile@@ -86,11 +82,9 @@ jobs:bun-version: latest- name: Install tygo- working-directory: .run: go install github.com/gzuidhof/tygo@latest- name: Generate dashboard types- working-directory: .run: "$HOME/go/bin/tygo" generate- name: Install dependenciesdiff --git a/tygo.yaml b/dashboard/tygo.yamlsimilarity index 76%rename from tygo.yamlrename to dashboard/tygo.yamlindex aa557b15..bd58637f 100644--- a/tygo.yaml+++ b/dashboard/tygo.yaml@@ -1,6 +1,6 @@packages:- path: "github.com/pinchtab/pinchtab/internal/api/types"- output_path: "dashboard/src/generated/types.ts"+ output_path: "src/generated/types.ts"type_mappings:time.Time: "string""map[string]interface{}": "Record<string, unknown>"diff --git a/scripts/build-dashboard.sh b/scripts/build-dashboard.shindex 7ce28654..7a5ba003 100755--- a/scripts/build-dashboard.sh+++ b/scripts/build-dashboard.sh@@ -5,7 +5,9 @@ set -ecd "$(dirname "$0")/.."# Generate TypeScript types from Go structs (ensures types are in sync)+# tygo.yaml lives in dashboard/, so run from thereTYGO="${GOPATH:-$HOME/go}/bin/tygo"+cd dashboardif [ -x "$TYGO" ]; thenecho "🔄 Generating TypeScript types...""$TYGO" generate@@ -21,11 +23,10 @@ elsefi# Normalize tygo output with prettier so generation doesn't dirty git-if [ -f "dashboard/src/generated/types.ts" ]; then- cd dashboard+if [ -f "src/generated/types.ts" ]; thennpx prettier --write src/generated/types.ts 2>/dev/null || true- cd ..fi+cd ..echo "📦 Building React dashboard..."cd dashboard