Skip to content

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.yml
index 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 Bun
uses: oven-sh/setup-bun@v2
with:
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 dependencies
run: 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 Bun
uses: oven-sh/setup-bun@v2
with:
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 dependencies
run: bun install --frozen-lockfile
diff --git a/.github/workflows/go-verify.yml b/.github/workflows/go-verify.yml
index 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 dashboard
if: needs.changes.outputs.go == 'true'
run: |
diff --git a/dashboard/src/components/molecules/InstanceListItem.test.tsx b/dashboard/src/components/molecules/InstanceListItem.test.tsx
index 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.tsx
index 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.ts
index 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/error
startTime: 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.