High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: include tygo to avoid type issues
Luigi Agosticda4dfff314e
diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.ymlindex fb62895c..5fd47471 100644--- a/.github/workflows/dashboard.yml+++ b/.github/workflows/dashboard.yml@@ -5,10 +5,16 @@ on:branches: [main]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:@@ -27,11 +33,26 @@ jobs:steps:- uses: actions/checkout@v4+ - name: Setup Go+ uses: actions/setup-go@v5+ with:+ go-version: '1.26'+- name: Setup Bunuses: oven-sh/setup-bun@v2with: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+- name: Install dependenciesrun: bun install --frozen-lockfile@@ -54,11 +75,24 @@ jobs:steps:- uses: actions/checkout@v4+ - name: Setup Go+ uses: actions/setup-go@v5+ with:+ go-version: '1.26'+- name: Setup Bunuses: oven-sh/setup-bun@v2with: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 dependenciesrun: bun install --frozen-lockfilediff --git a/.github/workflows/go-verify.yml b/.github/workflows/go-verify.ymlindex 6f2ee7dd..8340e4a0 100644--- a/.github/workflows/go-verify.yml+++ b/.github/workflows/go-verify.yml@@ -129,6 +129,10 @@ jobs:with:bun-version: latest+ - name: Install tygo+ if: needs.changes.outputs.go == 'true'+ run: go install github.com/gzuidhof/tygo@latest+- name: Build dashboardif: needs.changes.outputs.go == 'true'run: |diff --git a/dashboard/src/components/molecules/InstanceListItem.test.tsx b/dashboard/src/components/molecules/InstanceListItem.test.tsxindex 1cb6b781..852b31e9 100644--- a/dashboard/src/components/molecules/InstanceListItem.test.tsx+++ b/dashboard/src/components/molecules/InstanceListItem.test.tsx@@ -12,6 +12,7 @@ const mockInstance: Instance = {headless: false,status: "running",startTime: new Date().toISOString(),+ attached: false,};describe("InstanceListItem", () => {diff --git a/dashboard/src/components/molecules/ProfileCard.test.tsx b/dashboard/src/components/molecules/ProfileCard.test.tsxindex 2b03482d..69b19035 100644--- a/dashboard/src/components/molecules/ProfileCard.test.tsx+++ b/dashboard/src/components/molecules/ProfileCard.test.tsx@@ -22,6 +22,7 @@ const mockRunningInstance: Instance = {headless: false,status: "running",startTime: new Date().toISOString(),+ attached: false,};const mockErrorInstance: Instance = {diff --git a/dashboard/src/generated/types.ts b/dashboard/src/generated/types.tsindex d2726c6e..557e6fee 100644--- a/dashboard/src/generated/types.ts+++ b/dashboard/src/generated/types.ts@@ -43,6 +43,8 @@ export interface Instance {status: string; // starting/running/stopping/stopped/errorstartTime: string;error?: string;+ attached: boolean; // True if attached to external Chrome+ cdpUrl?: string; // CDP WebSocket URL (for attached instances)}/*** Agent represents a connected AI agent.