Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.
TypeScript agent-teamagentic-aiai-agentsai-assistantclaude-codecodexcursorelectrongrokgrok-bot-alternativelinuxlocal-firstmacosmcpmulti-agentopenclaw-alternativeopencodewindows
Install and update on Windows (#9)
Eduardo Machado6d721665c92e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 06299e4..59f6bf4 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,5 +1,5 @@# Every pull request and every push to main: typecheck, tests and the app's-# build, on macOS and on Linux, so a change can't break one of them unnoticed.+# build, on macOS, Linux and Windows, so a change can't break one of them unnoticed.name: CIon:@@ -20,7 +20,7 @@ jobs:strategy:fail-fast: falsematrix:- os: [macos-latest, ubuntu-latest]+ os: [macos-latest, ubuntu-latest, windows-latest]runs-on: ${{ matrix.os }}env:# The tests and the build don't run Electron itself.diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.ymlnew file mode 100644index 0000000..182d53d--- /dev/null+++ b/.github/workflows/windows.yml@@ -0,0 +1,74 @@+# The Windows installer: a per-user NSIS .exe for x64, built on Windows and not+# code-signed (install.ps1 installs it without a SmartScreen warning). The Mac build+# creates the release (scripts/release.sh); once it's published, this attaches the+# installer, its blockmap and the update feed (latest.yml) to the same release. A pull+# request that touches the packaging builds it too, without publishing anything.+name: Windows++on:+ release:+ types: [published]+ workflow_dispatch:+ inputs:+ tag:+ description: Release tag to attach the Windows files to (e.g. v0.2.0)+ required: true+ pull_request:+ paths:+ - package.json+ - package-lock.json+ - build/**+ - install.ps1+ - .github/workflows/windows.yml++permissions:+ contents: write++jobs:+ build:+ name: x64+ runs-on: windows-latest+ env:+ TAG: ${{ github.event.release.tag_name || inputs.tag }}+ GH_TOKEN: ${{ github.token }}+ defaults:+ run:+ shell: bash+ steps:+ - uses: actions/checkout@v7+ with:+ ref: ${{ github.event.release.tag_name || inputs.tag || github.ref }}+ - uses: actions/setup-node@v7+ with:+ node-version: 24+ cache: npm+ - run: npm ci+ - run: npm run build+ - name: Build the installer+ run: npx electron-builder --win nsis --x64 --publish never --config.directories.output=dist-win+ - run: ls -la dist-win && cat dist-win/latest.yml+ # Installs it the way people will (install.ps1 says what went wrong, but never fails+ # the PowerShell it runs in: its output tells).+ - name: Install with install.ps1+ shell: pwsh+ run: |+ $env:TUCANO_EXE = (Resolve-Path dist-win/tucano-win-x64.exe).Path+ $out = ./install.ps1 *>&1 | Out-String+ $out+ if ($out -notmatch 'Installed in (.+Tucano\.exe)') { throw 'install.ps1 failed' }+ if (-not (Test-Path $Matches[1].Trim())) { throw "No $($Matches[1])" }+ - name: The version is the release's+ if: env.TAG != ''+ run: test "v$(node -p "require('./package.json').version")" = "$TAG"+ - name: Attach to the release+ if: env.TAG != ''+ run: gh release upload "$TAG" dist-win/tucano-win-x64.exe dist-win/tucano-win-x64.exe.blockmap dist-win/latest.yml --clobber+ - name: Keep the files of a test build+ if: env.TAG == ''+ uses: actions/upload-artifact@v7+ with:+ name: tucano-win-x64+ path: |+ dist-win/tucano-win-x64.exe*+ dist-win/latest.yml+ retention-days: 3diff --git a/CHANGELOG.md b/CHANGELOG.mdindex edf4c43..c8c46ee 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,12 +4,13 @@ What changed in each version of Tucano. The format follows [Keep a Changelog](ht## [Unreleased]-> **Em português:** o Tucano agora roda no Linux, em x64 e ARM64: `.deb` pro Ubuntu e o Debian, AppImage pras outras distribuições, com a mesma atualização automática do Mac. Ao fechar a janela, ele fica na bandeja do sistema e as rotinas continuam rodando. O app passa a dizer "seu computador" em vez de "Mac".+> **Em português:** o Tucano agora roda no Linux e no Windows. No Linux, em x64 e ARM64: `.deb` pro Ubuntu e o Debian, AppImage pras outras distribuições. No Windows 10 e 11, um comando no PowerShell instala sem pedir administrador e sem aviso do SmartScreen. Nos dois, ele se atualiza sozinho como no Mac, e ao fechar a janela fica na bandeja do sistema, com as rotinas rodando. O app passa a dizer "seu computador" em vez de "Mac". Obrigado ao Eduardo Souza pelo suporte ao Windows!### Added- **Linux.** A `.deb` (Ubuntu, Debian and their family) and an AppImage (other distributions), for x64 and ARM64, that update themselves like the Mac app. `install.sh` installs on Linux too. On Linux, Sign in opens your desktop's terminal, closing the window keeps Tucano in the tray so routines go on, Open at login works, passwords go to the system keyring (GNOME Keyring or KWallet, never stored without one), Docker computers give the files they write back to you, and the agents' browser uses Google Chrome or Chromium. ([#5](https://github.com/eduwxyz/tucano/pull/5), [#6](https://github.com/eduwxyz/tucano/pull/6))-- Tests run on macOS and Linux for every pull request. ([#4](https://github.com/eduwxyz/tucano/pull/4))+- **Windows 10 and 11** (x64). In PowerShell, `irm https://github.com/eduwxyz/tucano/releases/latest/download/install.ps1 | iex` installs Tucano for your user, with no admin rights and no SmartScreen warning, and opens it; the installer is also in each release (it isn't code-signed). It updates itself like the Mac app. Harnesses installed with npm work, agents' commands on your PC run in Git Bash, Sign in opens a console, and closing the window keeps Tucano in the tray, by the clock. Thanks [@edusouza](https://github.com/edusouza)! ([#7](https://github.com/eduwxyz/tucano/pull/7), [#9](https://github.com/eduwxyz/tucano/pull/9))+- Tests run on macOS, Linux and Windows for every pull request. ([#4](https://github.com/eduwxyz/tucano/pull/4), [#9](https://github.com/eduwxyz/tucano/pull/9))### Changeddiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex f1b40a0..c2fc6b4 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -33,7 +33,7 @@ npm run typechecknpm test```-Both must pass, and GitHub runs them (plus the build) on macOS and Linux for every pull request. Tests cover the core: the CLI stream parsers (with recorded outputs), context building, runs, limits, governance, routines, memory, the migration from the old name. A change in the core comes with a test.+Both must pass, and GitHub runs them (plus the build) on macOS, Linux and Windows for every pull request. Tests cover the core: the CLI stream parsers (with recorded outputs), context building, runs, limits, governance, routines, memory, the migration from the old name. A change in the core comes with a test.For UI changes, attach a screenshot to the pull request. `node scripts/screens.mjs <folder>` opens the built app with Playwright on a temporary database and saves screenshots of the main screens.diff --git a/README.md b/README.mdindex 56b39cb..272f404 100644--- a/README.md+++ b/README.md@@ -11,7 +11,7 @@ They do the work. Anything that touches the real world waits for your yes.[](https://github.com/eduwxyz/tucano/releases/latest)[](LICENSE)-[](#install) [](#install)+[](#install) [](#install) [](#install)[](#runs-on-what-you-already-have)**English** · [Português](README.pt-BR.md) · [tucano.sh](https://tucano.sh) · [@tucanosh](https://x.com/tucanosh) · [Changelog](CHANGELOG.md)@@ -92,7 +92,7 @@ Each agent picks its harness and model, so a team can mix them: Opus to fix, GPT## Install-**You need** a Mac with Apple silicon (M1 or later; tested on macOS 26) or a Linux PC (x64 or ARM64; tested on Ubuntu with KDE and Xfce), and at least one harness, installed and signed in. Optional: Docker to give agents a Linux computer ([Docker Desktop](https://www.docker.com/products/docker-desktop/) on a Mac; Docker Engine or Docker Desktop on Linux), and Google Chrome (or Chromium, on Linux) for their browser (without it, the built-in browser is used).+**You need** a Mac with Apple silicon (M1 or later; tested on macOS 26) a Linux PC (x64 or ARM64; tested on Ubuntu with KDE and Xfce) or a Windows 10 or 11 PC (x64), and at least one harness, installed and signed in. On Windows, also [Git for Windows](https://git-scm.com/download/win): its Git Bash runs agents' commands on your PC, and Claude Code needs it there too. Optional: Docker to give agents a Linux computer ([Docker Desktop](https://www.docker.com/products/docker-desktop/) on a Mac or Windows; Docker Engine or Docker Desktop on Linux), and Google Chrome (or Chromium, on Linux) for their browser (without it, the built-in browser is used).**1. Install a harness.** Claude Code is the quickest:@@ -101,7 +101,7 @@ curl -fsSL https://claude.ai/install.sh | bashclaude auth login```-Prefer Codex? `npm install -g @openai/codex`. You'll sign in from inside Tucano.+On Windows, in PowerShell: `irm https://claude.ai/install.ps1 | iex`, then `claude auth login`. Prefer Codex? `npm install -g @openai/codex`. You'll sign in from inside Tucano.**2. Install Tucano.**@@ -109,6 +109,13 @@ Prefer Codex? `npm install -g @openai/codex`. You'll sign in from inside Tucano.- **On Ubuntu, Debian and their family** (Mint, Pop!_OS…): [download the .deb](https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-amd64.deb) and open it, or run `sudo apt install ./tucano-linux-amd64.deb`.- **On other Linux distributions:** [download the AppImage](https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-x86_64.AppImage), make it executable (`chmod +x`) and open it. It needs FUSE, which most systems have. On Ubuntu 24.04 and later, prefer the .deb: it installs the AppArmor profile Electron apps need there.- On ARM64 Linux, take the files that end in `-arm64` (`tucano-linux-arm64.deb`, `tucano-linux-arm64.AppImage`).+- **On Windows:** paste this in PowerShell. It installs Tucano for your user, with no admin rights, and opens it:++ ```powershell+ irm https://github.com/eduwxyz/tucano/releases/latest/download/install.ps1 | iex+ ```++ Or [download the installer](https://github.com/eduwxyz/tucano/releases/latest/download/tucano-win-x64.exe) and open it. It isn't code-signed, so the first time Windows says it protected your PC: click **More info**, then **Run anyway**. The PowerShell command skips that warning, since a file PowerShell downloads isn't marked as coming from the internet.Or from the Terminal, on a Mac or on Linux:@@ -116,13 +123,13 @@ Or from the Terminal, on a Mac or on Linux:curl -fsSL https://github.com/eduwxyz/tucano/releases/latest/download/install.sh | sh```-It downloads the latest release and opens it. On a Mac it puts Tucano in **Applications**; on Linux it installs the .deb with apt (it asks for your password) or, without apt, the AppImage in `~/.local/bin` with an entry in the applications menu.+It downloads the latest release and opens it. On a Mac it puts Tucano in **Applications**; on Linux it installs the .deb with apt (it asks for your password) or, without apt, the AppImage in `~/.local/bin` with an entry in the applications menu. Run on Windows (in Git Bash, say), it points you to the PowerShell command above.-From 0.1.2 on, Tucano updates itself: it downloads a new version in the background and shows **Restart** in the sidebar when it's ready (or it goes in the next time you quit). Earlier versions update with the same download or command. On Linux the AppImage and the .deb update themselves too; the .deb asks for your password to put the update in.+From 0.1.2 on, Tucano updates itself: it downloads a new version in the background and shows **Restart** in the sidebar when it's ready (or it goes in the next time you quit). Earlier versions update with the same download or command. On Linux the AppImage and the .deb update themselves too; the .deb asks for your password to put the update in. So does Windows, with no warning.**3. The first run is the setup.** Tucano speaks English and Portuguese; pick one on the first screen, or later in **Settings**. Then, in a few steps: your name; which harnesses agents may use (each with a **Test now** button that sends a real question); the models that route channels and keep memory; what every agent should know about you; your tools (optional); your skills (optional); and your first agent, from a template or from scratch. It ends in a `#general` channel with your agent already working.-The first time Tucano saves a connector password, macOS asks whether it may use the **Keychain**: click **Always Allow**. On Linux it uses the system keyring (GNOME Keyring or KWallet); with none open, Tucano doesn't save passwords, and says how to set one up.+The first time Tucano saves a connector password, macOS asks whether it may use the **Keychain**: click **Always Allow**. On Linux it uses the system keyring (GNOME Keyring or KWallet); with none open, Tucano doesn't save passwords, and says how to set one up. On Windows there's nothing to allow: Windows encrypts the key with your user's login.## Using it@@ -155,7 +162,7 @@ flowchart LRCLI --> Model["Your subscription<br/>or company gateway"]```-- **Main process** (Electron): the window, notifications, the agents' browsers, the system's vault (the macOS Keychain, the Linux keyring).+- **Main process** (Electron): the window, notifications, the agents' browsers, the system's vault (the macOS Keychain, the Linux keyring, Windows' data protection).- **Core** (a utility process): SQLite, harnesses, runs, connectors, memory and routines. No agent work runs in the window.- **Each reply** opens the harness CLI isolated from your personal configuration, with no built-in tools and no saved session. Tucano builds the context every turn: the workspace, the agent's instructions, its memories and skills, and the recent conversation.- **The gateway** is a local MCP server and the CLI's only source of tools. Each turn gets a secret URL listing just that agent's tools; any other call is refused. Sensitive calls stop there and become an approval, which runs exactly the call you saw.@@ -164,7 +171,7 @@ More on the permission model in [SECURITY.md](SECURITY.md).## Your data-Everything lives in `~/Library/Application Support/Tucano/` (on Linux, `~/.config/Tucano/`): the database (`tucano.db`), a daily backup in `backups/`, each agent's computer folder and the files agents show you. Connector passwords and tokens are encrypted with a key in the macOS Keychain (on Linux, the system keyring) before they reach the database.+Everything lives in `~/Library/Application Support/Tucano/` (on Linux, `~/.config/Tucano/`; on Windows, `%APPDATA%\Tucano`): the database (`tucano.db`), a daily backup in `backups/`, each agent's computer folder and the files agents show you. Connector passwords and tokens are encrypted with a key in the macOS Keychain (on Linux, the system keyring; on Windows, protected by your user's login) before they reach the database.<details><summary>Uninstall</summary>@@ -175,6 +182,8 @@ Everything lives in `~/Library/Application Support/Tucano/` (on Linux, `~/.confi4. Optionally, delete the **Tucano Safe Storage** item in Keychain Access.On Linux: quit Tucano from its tray icon, then `sudo apt remove tucano` (or delete `~/.local/bin/Tucano.AppImage` and `~/.local/share/applications/tucano.desktop`). Your data is in `~/.config/Tucano`.++On Windows: quit Tucano from its icon by the clock, then uninstall it in **Settings › Apps › Installed apps**. Your data stays in `%APPDATA%\Tucano`; delete that folder to remove it too.</details><details>@@ -204,6 +213,9 @@ Tucano keeps passwords only in the system keyring. Install `gnome-keyring` (or t**The AppImage doesn't open on Ubuntu 24.04 or later.**Ubuntu restricts the sandbox Electron apps use. Install the .deb instead: it brings the AppArmor profile that allows it.+**"Windows protected your PC" when opening the installer.**+The installer isn't code-signed, so SmartScreen doesn't know it yet. Click **More info**, then **Run anyway**, or install with the PowerShell command, which doesn't get the warning. On a company PC, IT may block apps that aren't signed.+**macOS asks for the Keychain after updating from 0.1.0.**0.1.0 wasn't signed with Tucano's Apple certificate; later versions are, so it asks only this once. Click **Always Allow**.</details>@@ -230,7 +242,7 @@ You need Node 24+ and one harness signed in. `npm run dev` keeps its own data in| `node scripts/screens.mjs <folder>` | Opens the build with Playwright on a temporary database and saves screenshots || `npm run dist:win` | On Windows: builds the installer, `dist/tucano-win-x64.exe` (not code-signed) |-**On Windows?** Tucano runs on Windows 10/11 too, in development and as an installer. You'll also want Git for Windows, whose Git Bash runs agents' commands on your PC. See [docs/windows.md](docs/windows.md) for what you need, how it differs from the Mac, and every change made for it.+**On Windows?** Development works there too, with Git for Windows. See [docs/windows.md](docs/windows.md) for what you need, how it differs from the Mac, and every change made for it.Read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request. The original design document, in Portuguese, is in [docs/spec-mvp.md](docs/spec-mvp.md).diff --git a/README.pt-BR.md b/README.pt-BR.mdindex f302214..8f31743 100644--- a/README.pt-BR.md+++ b/README.pt-BR.md@@ -11,7 +11,7 @@ Eles fazem o trabalho. O que mexe no mundo espera o seu sim.[](https://github.com/eduwxyz/tucano/releases/latest)[](LICENSE)-[](#instalar) [](#instalar)+[](#instalar) [](#instalar) [](#instalar)[](#roda-no-que-você-já-tem)[English](README.md) · **Português** · [tucano.sh](https://tucano.sh) · [@tucanosh](https://x.com/tucanosh) · [Novidades](CHANGELOG.md)@@ -92,7 +92,7 @@ Cada agente escolhe o harness e o modelo, então um time pode misturar: Opus pra## Instalar-**Você precisa** de um Mac com chip Apple (M1 em diante; testado no macOS 26) ou de um PC com Linux (x64 ou ARM64; testado no Ubuntu com KDE e Xfce), e de pelo menos um harness instalado e logado. Opcional: o Docker, pra dar um computador Linux aos agentes ([Docker Desktop](https://www.docker.com/products/docker-desktop/) no Mac; Docker Engine ou Docker Desktop no Linux), e o Google Chrome (ou o Chromium, no Linux), pro navegador deles (sem ele, o app usa o navegador embutido).+**Você precisa** de um Mac com chip Apple (M1 em diante; testado no macOS 26) de um PC com Linux (x64 ou ARM64; testado no Ubuntu com KDE e Xfce) ou de um PC com Windows 10 ou 11 (x64), e de pelo menos um harness instalado e logado. No Windows, também do [Git for Windows](https://git-scm.com/download/win): o Git Bash dele roda os comandos dos agentes no seu PC, e o Claude Code também precisa dele lá. Opcional: o Docker, pra dar um computador Linux aos agentes ([Docker Desktop](https://www.docker.com/products/docker-desktop/) no Mac ou no Windows; Docker Engine ou Docker Desktop no Linux), e o Google Chrome (ou o Chromium, no Linux), pro navegador deles (sem ele, o app usa o navegador embutido).**1. Instale um harness.** O Claude Code é o mais rápido:@@ -101,7 +101,7 @@ curl -fsSL https://claude.ai/install.sh | bashclaude auth login```-Prefere o Codex? `npm install -g @openai/codex`. O login é feito dentro do Tucano.+No Windows, no PowerShell: `irm https://claude.ai/install.ps1 | iex` e depois `claude auth login`. Prefere o Codex? `npm install -g @openai/codex`. O login é feito dentro do Tucano.**2. Instale o Tucano.**@@ -109,6 +109,13 @@ Prefere o Codex? `npm install -g @openai/codex`. O login é feito dentro do Tuca- **No Ubuntu, no Debian e na família deles** (Mint, Pop!_OS…): [baixe o .deb](https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-amd64.deb) e abra, ou rode `sudo apt install ./tucano-linux-amd64.deb`.- **Nas outras distribuições Linux:** [baixe o AppImage](https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-x86_64.AppImage), torne executável (`chmod +x`) e abra. Ele precisa do FUSE, que a maioria dos sistemas tem. No Ubuntu 24.04 em diante, prefira o .deb: ele instala o perfil do AppArmor que apps Electron precisam lá.- No Linux ARM64, use os arquivos que terminam em `-arm64` (`tucano-linux-arm64.deb`, `tucano-linux-arm64.AppImage`).+- **No Windows:** cole isto no PowerShell. Ele instala o Tucano pro seu usuário, sem pedir administrador, e abre:++ ```powershell+ irm https://github.com/eduwxyz/tucano/releases/latest/download/install.ps1 | iex+ ```++ Ou [baixe o instalador](https://github.com/eduwxyz/tucano/releases/latest/download/tucano-win-x64.exe) e abra. Ele não tem assinatura de código, então na primeira vez o Windows diz que protegeu o seu computador: clique em **Mais informações** e depois em **Executar assim mesmo**. O comando do PowerShell não passa por esse aviso, porque o Windows não marca como vindo da internet um arquivo que o PowerShell baixou.Ou pelo Terminal, no Mac ou no Linux:@@ -116,13 +123,13 @@ Ou pelo Terminal, no Mac ou no Linux:curl -fsSL https://github.com/eduwxyz/tucano/releases/latest/download/install.sh | sh```-Ele baixa a última versão e abre. No Mac, coloca o Tucano em **Aplicativos**; no Linux, instala o .deb pelo apt (pede a sua senha) ou, sem apt, o AppImage em `~/.local/bin`, com um atalho no menu de aplicativos.+Ele baixa a última versão e abre. No Mac, coloca o Tucano em **Aplicativos**; no Linux, instala o .deb pelo apt (pede a sua senha) ou, sem apt, o AppImage em `~/.local/bin`, com um atalho no menu de aplicativos. Rodado no Windows (no Git Bash, por exemplo), ele indica o comando do PowerShell acima.-A partir da 0.1.2, o Tucano se atualiza sozinho: baixa a versão nova em segundo plano e mostra **Reiniciar** na barra lateral quando ela está pronta (ou ela entra na próxima vez que você fechar o app). As versões anteriores se atualizam pelo mesmo download ou comando. No Linux, o AppImage e o .deb também se atualizam sozinhos; o .deb pede a sua senha pra instalar a atualização.+A partir da 0.1.2, o Tucano se atualiza sozinho: baixa a versão nova em segundo plano e mostra **Reiniciar** na barra lateral quando ela está pronta (ou ela entra na próxima vez que você fechar o app). As versões anteriores se atualizam pelo mesmo download ou comando. No Linux, o AppImage e o .deb também se atualizam sozinhos; o .deb pede a sua senha pra instalar a atualização. No Windows também, sem aviso nenhum.**3. A primeira abertura é a configuração.** O Tucano fala português e inglês; escolha na primeira tela, ou depois em **Configurações**. Em seguida, em poucos passos: seu nome; quais harnesses os agentes podem usar (cada um com um **Testar agora** que manda uma pergunta de verdade); os modelos que roteiam os canais e cuidam da memória; o que todo agente deve saber sobre você; suas ferramentas (opcional); suas skills (opcional); e o primeiro agente, de um modelo pronto ou do zero. No fim, um canal `#geral` com o seu agente já trabalhando.-Na primeira vez que o Tucano guardar uma senha de conector, o macOS pergunta se ele pode usar as **Chaves**: clique em **Sempre Permitir**. No Linux, ele usa o chaveiro do sistema (GNOME Keyring ou KWallet); se não houver um aberto, o Tucano não guarda senhas e explica como configurar.+Na primeira vez que o Tucano guardar uma senha de conector, o macOS pergunta se ele pode usar as **Chaves**: clique em **Sempre Permitir**. No Linux, ele usa o chaveiro do sistema (GNOME Keyring ou KWallet); se não houver um aberto, o Tucano não guarda senhas e explica como configurar. No Windows não há nada pra permitir: o Windows protege a chave com o login do seu usuário.## No dia a dia@@ -155,7 +162,7 @@ flowchart LRCLI --> Model["Sua assinatura<br/>ou gateway da empresa"]```-- **Processo principal** (Electron): a janela, as notificações, os navegadores dos agentes, o cofre do sistema (as Chaves do macOS, o chaveiro do Linux).+- **Processo principal** (Electron): a janela, as notificações, os navegadores dos agentes, o cofre do sistema (as Chaves do macOS, o chaveiro do Linux, a proteção de dados do Windows).- **Núcleo** (um utility process): SQLite, harnesses, respostas, conectores, memória e rotinas. Nenhum trabalho de agente roda na janela.- **Cada resposta** abre a CLI do harness isolada da sua configuração pessoal, sem ferramentas embutidas e sem sessão salva. O Tucano monta o contexto a cada turno: o workspace, as instruções do agente, as memórias e skills dele e a conversa recente.- **O gateway** é um servidor MCP local e a única fonte de ferramentas da CLI. Cada turno recebe uma URL secreta com só as ferramentas daquele agente; qualquer outra chamada é recusada. As chamadas sensíveis param ali e viram uma aprovação, que roda exatamente a chamada que você viu.@@ -164,7 +171,7 @@ Mais sobre o modelo de permissões em [SECURITY.md](SECURITY.md).## Seus dados-Tudo fica em `~/Library/Application Support/Tucano/` (no Linux, `~/.config/Tucano/`): o banco (`tucano.db`), um backup por dia em `backups/`, a pasta do computador de cada agente e os arquivos que eles mostram. Senhas e tokens dos conectores são criptografados com uma chave das Chaves do macOS (no Linux, do chaveiro do sistema) antes de chegar ao banco.+Tudo fica em `~/Library/Application Support/Tucano/` (no Linux, `~/.config/Tucano/`; no Windows, `%APPDATA%\Tucano`): o banco (`tucano.db`), um backup por dia em `backups/`, a pasta do computador de cada agente e os arquivos que eles mostram. Senhas e tokens dos conectores são criptografados com uma chave das Chaves do macOS (no Linux, do chaveiro do sistema; no Windows, protegida pelo login do seu usuário) antes de chegar ao banco.<details><summary>Desinstalar</summary>@@ -175,6 +182,8 @@ Tudo fica em `~/Library/Application Support/Tucano/` (no Linux, `~/.config/Tucan4. Se quiser, apague o item **Tucano Safe Storage** no app Acesso às Chaves.No Linux: encerre o Tucano pelo ícone da bandeja e rode `sudo apt remove tucano` (ou apague `~/.local/bin/Tucano.AppImage` e `~/.local/share/applications/tucano.desktop`). Os seus dados ficam em `~/.config/Tucano`.++No Windows: encerre o Tucano pelo ícone perto do relógio e desinstale em **Configurações › Aplicativos › Aplicativos instalados**. Os seus dados ficam em `%APPDATA%\Tucano`; apague essa pasta pra removê-los também.</details><details>@@ -204,6 +213,9 @@ O Tucano guarda senhas só no chaveiro do sistema. Instale o `gnome-keyring` (ou**O AppImage não abre no Ubuntu 24.04 em diante.**O Ubuntu restringe o isolamento que apps Electron usam. Instale o .deb: ele traz o perfil do AppArmor que libera isso.+**"O Windows protegeu o computador" ao abrir o instalador.**+O instalador não tem assinatura de código, então o SmartScreen ainda não o conhece. Clique em **Mais informações** e depois em **Executar assim mesmo**, ou instale pelo comando do PowerShell, que não recebe o aviso. Num PC da empresa, a TI pode bloquear apps sem assinatura.+**O macOS pede as Chaves depois de atualizar da 0.1.0.**A 0.1.0 não era assinada com o certificado da Apple do Tucano; as versões seguintes são, então ele pede só essa vez. Clique em **Sempre Permitir**.</details>@@ -230,7 +242,7 @@ Precisa do Node 24+ e de um harness logado. O `npm run dev` guarda os dados em `| `node scripts/screens.mjs <pasta>` | Abre o build com Playwright num banco temporário e salva screenshots || `npm run dist:win` | No Windows: gera o instalador, `dist/tucano-win-x64.exe` (sem assinatura de código) |-**No Windows?** O Tucano roda no Windows 10/11 também, em desenvolvimento e como instalador. Você vai querer também o Git for Windows, cujo Git Bash roda os comandos dos agentes no seu PC. O [docs/windows.md](docs/windows.md) (em inglês) diz o que precisa, o que muda em relação ao Mac e todas as mudanças feitas pra isso.+**No Windows?** O desenvolvimento também funciona lá, com o Git for Windows. O [docs/windows.md](docs/windows.md) (em inglês) diz o que precisa, o que muda em relação ao Mac e todas as mudanças feitas pra isso.Leia o [CONTRIBUTING.md](CONTRIBUTING.md) antes de abrir um pull request (o código, os comentários e os commits são em inglês). O documento de design original está em [docs/spec-mvp.md](docs/spec-mvp.md).diff --git a/docs/windows.md b/docs/windows.mdindex 5e61360..3b2affa 100644--- a/docs/windows.md+++ b/docs/windows.md@@ -2,7 +2,7 @@Tucano was built for macOS. This document covers running it on Windows: what you need, how to run and package it, how it behaves differently from the Mac, and **every change** made to get there, file by file.-Status: **runs on Windows 10/11 (x64)**, in development (`npm run dev`) and as a packaged app (`npm run dist:win`). Typecheck and the full test suite pass on Windows, including the Docker tests. A real agent turn through Claude Code works end to end. The Windows build is **not code-signed**.+Status: **runs on Windows 10/11 (x64)**, in development (`npm run dev`) and as an installed app, from each release (see [Installing](#installing)). Typecheck and the full test suite pass on Windows, including the Docker tests, and run on Windows for every pull request. A real agent turn through Claude Code works end to end. The Windows build is **not code-signed**.## What you need@@ -15,6 +15,26 @@ Status: **runs on Windows 10/11 (x64)**, in development (`npm run dev`) and as a| Optional: [Docker Desktop](https://www.docker.com/products/docker-desktop/) | For the isolated Linux computer. The first use pulls `node:22-bookworm` || Optional: Google Chrome | For an agent's browser; it is found in `Program Files`, `Program Files (x86)` or `%LOCALAPPDATA%` |+## Installing++```powershell+irm https://github.com/eduwxyz/tucano/releases/latest/download/install.ps1 | iex+```++`install.ps1` downloads the release's `tucano-win-x64.exe` and runs it silently (`/S`): a one-click NSIS installer that puts Tucano in `%LOCALAPPDATA%\Programs\tucano`, for the current user, with no admin rights, and lists it in **Installed apps**. Then it opens the app. An open Tucano is asked to quit first (`Tucano.exe --quit`, which quits it the way its tray menu does); data in `%APPDATA%\Tucano` is never touched, and uninstalling leaves it too.++The installer isn't code-signed, and that's a choice for now. A file downloaded by a browser carries the "from the internet" mark (Mark of the Web), and SmartScreen warns before an unsigned one runs (**More info › Run anyway**), once per version. A file PowerShell downloads doesn't carry it, so the command above never shows the warning. Company PCs may block unsigned apps altogether, by policy.++`install.ps1` is ASCII only: Windows PowerShell 5.1 reads a download with no charset (GitHub serves release files as `application/octet-stream`) as Latin-1, so the Portuguese messages are written with `\u` escapes. Everything runs inside a script block that catches its own errors, since `exit` would close the window `iex` runs in. `TUCANO_EXE` (a URL or a file) installs another build, for testing, and then doesn't open it.++### Updates++Each release carries `latest.yml`, the Windows update feed, next to the installer and its `.blockmap`. The installed app reads it (`src/main/updates.ts`), downloads a new version in the background and shows **Restart**; restarting runs the installer silently and opens the new version (`quitAndInstall(true, true)`). Without a restart, it goes in the next time the app quits. electron-updater checks the installer's signature only when the app was signed (`publisherName`), so an unsigned build updates as a signed one would, and the download carries no Mark of the Web.++### How a release gets the Windows files++`scripts/release.sh` (on the Mac) creates the release with the Mac files, `install.sh` and `install.ps1`. Publishing it starts `.github/workflows/windows.yml` on `windows-latest`, which builds the installer, installs it with `install.ps1` as a check, and attaches `tucano-win-x64.exe`, its blockmap and `latest.yml` to the release, a few minutes after it's out. `workflow_dispatch` with a tag does the same for an existing release. A pull request that touches the packaging or `install.ps1` runs the build and the install check without publishing.+## Running it```powershell@@ -35,7 +55,7 @@ npm run devnpm run dist:win```-This builds `dist\tucano-win-x64.exe`, a one-click per-user NSIS installer, with no admin rights needed. `npx electron-builder --win --dir --x64` builds just the unpacked app, in `dist\win-unpacked\Tucano.exe`. Neither is code-signed, so SmartScreen warns on first open. `npm run dist`, `npm run install-app`, `npm run release` and `install.sh` remain macOS-only (Apple signing, notarization, `/Applications`).+This builds `dist\tucano-win-x64.exe`, the same one-click per-user installer the releases carry. `npx electron-builder --win --dir --x64` builds just the unpacked app, in `dist\win-unpacked\Tucano.exe`. `$env:TUCANO_EXE = 'dist\tucano-win-x64.exe'; .\install.ps1` installs a local build the way people will. `npm run dist`, `npm run install-app` and `npm run release` remain macOS-only (Apple signing, notarization, `/Applications`); releases get the Windows files from GitHub Actions (above).## How it behaves differently from the Mac@@ -145,8 +165,9 @@ And on macOS, to check nothing changed there: the same branch on GitHub Actions'## Known limitations-- **Not code-signed.** SmartScreen warns on the first open of the installer.+- **Not code-signed.** The installer opened from a browser download gets a SmartScreen warning, once per version; `install.ps1` and updates don't. Company PCs may block it by policy.+- **x64 only.** Windows 11 on ARM runs it under emulation.- **Two macOS-only dialogs** in `src/main/index.ts` (⌘Q, the macOS Keychain) still name the Mac: they belong to the agent-desk migration, which never runs on Windows.- **Without Git for Windows**, agents on *This PC* get `cmd.exe`, and the model is told so. Claude Code itself needs Git Bash on Windows anyway.- **WSL isn't used.** Agents' commands on this PC run in Git Bash, not in a WSL distribution. The isolated Linux computer is Docker's.-- **macOS-only scripts:** `install.sh`, `scripts/dist.sh`, `scripts/install-app.sh` and `scripts/release.sh` stay as they were.+- **macOS-only scripts:** `scripts/dist.sh`, `scripts/install-app.sh` and `scripts/release.sh`. `install.sh` covers macOS and Linux; on Windows it points to `install.ps1`.diff --git a/install.ps1 b/install.ps1new file mode 100644index 0000000..d6614e1--- /dev/null+++ b/install.ps1@@ -0,0 +1,84 @@+# Installs or updates Tucano on Windows, in PowerShell:+# irm https://github.com/eduwxyz/tucano/releases/latest/download/install.ps1 | iex+#+# It downloads the installer of the latest release and runs it without its window: Tucano+# goes into your user's programs (%LOCALAPPDATA%\Programs), with no admin rights, and opens.+# A file PowerShell downloads isn't marked as coming from the internet, so Windows doesn't+# warn about the installer, which isn't code-signed. An open Tucano is asked to quit first,+# as its tray menu does; your data (%APPDATA%\Tucano) stays where it is.+#+# For testing a build before it is released (then the app doesn't open): TUCANO_EXE, the+# installer (a URL or a local file).+#+# Everything runs inside a script block, so an error ends it without closing the+# PowerShell window that `iex` runs it in.+& {+ $ErrorActionPreference = 'Stop'+ $ProgressPreference = 'SilentlyContinue' # Windows PowerShell downloads slowly with a progress bar+ $Latest = 'https://github.com/eduwxyz/tucano/releases/latest/download'++ # Messages in Portuguese on a system set to Portuguese, in English otherwise. This file+ # stays ASCII, since Windows PowerShell reads a download with no charset as Latin-1:+ # accents are written \u00e3 and the like, and {0} takes a value.+ $pt = (Get-UICulture).Name -like 'pt*'+ function Say($p, $e) { $t = [regex]::Unescape($(if ($pt) { $p } else { $e })); if ($args) { $t -f $args } else { $t } }+ function Fail { throw (Say @args) }++ try {+ if ([Environment]::OSVersion.Version.Major -lt 10 -or -not [Environment]::Is64BitOperatingSystem) {+ Fail 'O Tucano roda no Windows 10 ou 11, de 64 bits.' 'Tucano runs on 64-bit Windows 10 or 11.'+ }+ # Windows PowerShell 5.1 may still default to TLS 1.0, which GitHub refuses.+ [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12++ $src = if ($env:TUCANO_EXE) { $env:TUCANO_EXE } else { "$Latest/tucano-win-x64.exe" }+ $tmp = Join-Path ([IO.Path]::GetTempPath()) ("tucano-" + [Guid]::NewGuid().ToString('N') + '.exe')+ Write-Host (Say 'Baixando o Tucano\u2026' 'Downloading Tucano\u2026')+ if ($src -match '^https?://') {+ # curl.exe (in Windows since 2018) shows how far it got; Invoke-WebRequest otherwise.+ if (Get-Command curl.exe -ErrorAction SilentlyContinue) {+ curl.exe -fL --progress-bar -o $tmp $src+ if ($LASTEXITCODE -ne 0) { Fail 'N\u00e3o deu pra baixar {0}.' "Couldn't download {0}." $src }+ } else {+ Invoke-WebRequest -UseBasicParsing -Uri $src -OutFile $tmp+ }+ } else {+ Copy-Item -LiteralPath $src -Destination $tmp+ }++ # Where Tucano is installed, from its entry in Installed apps: the icon is the app's own+ # executable ("C:\...\Tucano.exe,0").+ function Installed {+ $keys = Get-ChildItem 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall' -ErrorAction SilentlyContinue+ foreach ($k in $keys) {+ $v = Get-ItemProperty -LiteralPath $k.PSPath -ErrorAction SilentlyContinue+ if ($v.DisplayName -notlike 'Tucano*' -or -not $v.DisplayIcon) { continue }+ $exe = ($v.DisplayIcon -replace ',\d+$', '').Trim('"')+ if ((Split-Path -Leaf $exe) -eq 'Tucano.exe' -and (Test-Path -LiteralPath $exe)) { return $exe }+ }+ }+ function Running($exe) { @(Get-Process Tucano -ErrorAction SilentlyContinue | Where-Object { $_.Path -eq $exe }).Count -gt 0 }++ # Replacing a running app's files fails: ask it to quit, as its tray menu does.+ $app = Installed+ if ($app -and (Running $app)) {+ Write-Host (Say 'Fechando o app aberto\u2026' 'Closing the running app\u2026')+ Start-Process -FilePath $app -ArgumentList '--quit'+ for ($i = 0; $i -lt 30 -and (Running $app); $i++) { Start-Sleep -Seconds 1 }+ if (Running $app) { Fail 'O app n\u00e3o fechou. Encerre o Tucano (\u00edcone perto do rel\u00f3gio \u203a Encerrar) e rode de novo.' "The app didn't close. Quit Tucano (icon by the clock \u203a Quit) and run this again." }+ }++ Write-Host (Say 'Instalando\u2026' 'Installing\u2026')+ $p = Start-Process -FilePath $tmp -ArgumentList '/S' -Wait -PassThru+ if ($p.ExitCode -ne 0) { Fail 'O instalador parou com o c\u00f3digo {0}.' 'The installer stopped with code {0}.' $p.ExitCode }+ $app = Installed+ if (-not $app) { Fail 'O instalador terminou, mas o Tucano n\u00e3o apareceu nos apps instalados.' "The installer finished, but Tucano isn't in the installed apps." }++ Write-Host (Say 'Instalado em {0}' 'Installed in {0}' $app)+ if (-not $env:TUCANO_EXE) { Start-Process -FilePath $app }+ } catch {+ Write-Host $_.Exception.Message -ForegroundColor Red+ } finally {+ if ($tmp -and (Test-Path -LiteralPath $tmp)) { Remove-Item -LiteralPath $tmp -Force -ErrorAction SilentlyContinue }+ }+}diff --git a/install.sh b/install.shindex bc04c14..05843f6 100755--- a/install.sh+++ b/install.sh@@ -9,6 +9,8 @@# On Linux: the .deb with apt (Ubuntu, Debian and their family), else the AppImage# in ~/.local/bin with an entry in the applications menu.#+# On Windows: install.ps1, in PowerShell (this says so).+## For testing a build before it is released (then the app doesn't open):# TUCANO_ZIP (Mac), TUCANO_DEB or TUCANO_APPIMAGE (Linux; a URL or a local file)# and TUCANO_DEST, another folder. TUCANO_APPIMAGE=1 picks the AppImage over the .deb.@@ -136,5 +138,6 @@ EOFcase "$(uname -s)" inDarwin) install_mac ;;Linux) install_linux ;;- *) fail "O Tucano roda no macOS e no Linux. No Windows, ainda não." "Tucano runs on macOS and Linux. Not on Windows yet." ;;+ MINGW* | MSYS* | CYGWIN*) fail "No Windows, instale pelo PowerShell: irm $LATEST/install.ps1 | iex" "On Windows, install from PowerShell: irm $LATEST/install.ps1 | iex" ;;+ *) fail "O Tucano roda no macOS, no Linux e no Windows." "Tucano runs on macOS, Linux and Windows." ;;esacdiff --git a/scripts/release.sh b/scripts/release.shindex 3f969cb..a7dd7d6 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -24,7 +24,7 @@ $SECTION## Install-You need a Mac with Apple silicon (M1 or later) or a Linux PC (x64 or ARM64), and at least one of [Claude Code](https://code.claude.com) or [Codex](https://github.com/openai/codex), installed and signed in.+You need a Mac with Apple silicon (M1 or later), a Linux PC (x64 or ARM64) or a Windows 10/11 PC (x64), and at least one of [Claude Code](https://code.claude.com) or [Codex](https://github.com/openai/codex), installed and signed in.**On a Mac.** Download \`tucano-mac-arm64.dmg\` below, open it and drag Tucano into Applications.@@ -36,6 +36,14 @@ You need a Mac with Apple silicon (M1 or later) or a Linux PC (x64 or ARM64), ancurl -fsSL https://github.com/eduwxyz/tucano/releases/latest/download/install.sh | sh\`\`\`+**On Windows,** in PowerShell. Installs Tucano for your user, with no admin rights, and opens it:++\`\`\`powershell+irm https://github.com/eduwxyz/tucano/releases/latest/download/install.ps1 | iex+\`\`\`++Or download \`tucano-win-x64.exe\` below. It isn't code-signed: if Windows says it protected your PC, click **More info**, then **Run anyway**. The PowerShell command doesn't get that warning. The Windows file arrives a few minutes after the release, with the Linux ones.+From 0.1.2 on, Tucano updates itself. Every version is in [CHANGELOG.md](https://github.com/eduwxyz/tucano/blob/main/CHANGELOG.md).NOTES_EOF@@ -81,5 +89,5 @@ ls -lh "$OUT"/tucano-mac-arm64.*[ "$1" = "--no-publish" ] && exit 0git push origin HEAD-gh release create "$TAG" "$OUT/tucano-mac-arm64.dmg" "$OUT/tucano-mac-arm64.zip" "$OUT/tucano-mac-arm64.zip.blockmap" "$OUT/latest-mac.yml" install.sh \+gh release create "$TAG" "$OUT/tucano-mac-arm64.dmg" "$OUT/tucano-mac-arm64.zip" "$OUT/tucano-mac-arm64.zip.blockmap" "$OUT/latest-mac.yml" install.sh install.ps1 \--target "$(git rev-parse HEAD)" --title "Tucano $VERSION" --notes-file "$NOTES"diff --git a/site/index.html b/site/index.htmlindex 2e2ffd8..c1b24c9 100644--- a/site/index.html+++ b/site/index.html@@ -515,7 +515,7 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {<section class="hero"><div class="wrap hero__grid"><div>- <div class="eyebrow rv"><span lang="pt-BR">Grátis, open source, no Mac e no Linux</span><span lang="en">Free, open source, on Mac and Linux</span></div>+ <div class="eyebrow rv"><span lang="pt-BR">Grátis, open source, no Mac, no Linux e no Windows</span><span lang="en">Free, open source, on Mac, Linux and Windows</span></div><h1 class="display rv"><span lang="pt-BR">Seu time de agentes de IA. </span><span lang="en">Your AI agent team. </span><span class="swoosh"><span lang="pt-BR">Suas regras.</span><span lang="en">Your rules.</span><svg viewBox="0 0 300 30" preserveAspectRatio="none"><path pathLength="1" d="M4 22 C 80 6, 200 4, 296 14" stroke="#FF8C24" stroke-width="9" stroke-linecap="round" fill="none"/></svg></span></h1><p class="lead rv"><span lang="pt-BR">Agentes que conversam em canais, programam, revisam um ao outro e usam as ferramentas do seu time. Eles fazem o trabalho; o que mexe no mundo espera o seu sim.</span><span lang="en">Agents that talk in channels, write code, review each other and use your team’s tools. They do the work; anything that touches the real world waits for your yes.</span></p><div class="actions rv">@@ -523,7 +523,7 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {<div class="cmd"><code><b>curl</b> -fsSL <span>…/releases/latest/download/</span>install.sh | sh</code><button class="copy" data-copy="curl -fsSL https://github.com/eduwxyz/tucano/releases/latest/download/install.sh | sh">Copiar</button></div><a class="btn btn--ghost" href="#ao-vivo"><span lang="pt-BR">Ver ao vivo ↓</span><span lang="en">Watch it live ↓</span></a></div>- <p class="fine rv"><span lang="pt-BR">Na <b>assinatura que você já tem</b> (Claude, ChatGPT) ou no <b>gateway da sua empresa</b>. Mac com chip Apple ou Linux.</span><span lang="en">On the <b>subscription you already have</b> (Claude, ChatGPT) or your <b>company’s gateway</b>. Mac with Apple silicon, or Linux.</span></p>+ <p class="fine rv"><span lang="pt-BR">Na <b>assinatura que você já tem</b> (Claude, ChatGPT) ou no <b>gateway da sua empresa</b>. Mac com chip Apple, Linux ou Windows.</span><span lang="en">On the <b>subscription you already have</b> (Claude, ChatGPT) or your <b>company’s gateway</b>. Mac with Apple silicon, Linux or Windows.</span></p></div><div class="hero__art rv" aria-hidden="true"><div class="halo"></div>@@ -752,11 +752,11 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {<h2 class="h2" style="margin-top:18px"><span lang="pt-BR">Do download ao primeiro agente <em>em minutos.</em></span><span lang="en">From download to your first agent <em>in minutes.</em></span></h2><ol><li><div><b><span lang="pt-BR">Entre no seu harness</span><span lang="en">Sign in to your harness</span></b><span><span lang="pt-BR">Claude Code, Codex, OpenCode ou Pi. Basta um.</span><span lang="en">Claude Code, Codex, OpenCode or Pi. One is enough.</span></span></div></li>- <li><div><b><span lang="pt-BR">Baixe e instale</span><span lang="en">Download and install it</span></b><span><span lang="pt-BR">No Mac, arraste pra Aplicativos: assinado e notarizado pela Apple, abre sem aviso. No Linux, o .deb (Ubuntu, Debian) ou o AppImage. Ou cole o comando ao lado, nos dois.</span><span lang="en">On a Mac, drag it to Applications: signed and notarized by Apple, it opens with no warning. On Linux, the .deb (Ubuntu, Debian) or the AppImage. Or paste the command alongside, on either.</span></span></div></li>+ <li><div><b><span lang="pt-BR">Baixe e instale</span><span lang="en">Download and install it</span></b><span><span lang="pt-BR">No Mac, arraste pra Aplicativos: assinado e notarizado pela Apple, abre sem aviso. No Linux, o .deb (Ubuntu, Debian) ou o AppImage. Ou cole o comando ao lado. No Windows, o comando é no PowerShell: instala sem pedir administrador.</span><span lang="en">On a Mac, drag it to Applications: signed and notarized by Apple, it opens with no warning. On Linux, the .deb (Ubuntu, Debian) or the AppImage. Or paste the command alongside. On Windows, the command goes in PowerShell: no admin rights needed.</span></span></div></li><li><div><b><span lang="pt-BR">Monte o time com o Tuca</span><span lang="en">Build the team with Tuca</span></b><span><span lang="pt-BR">A introdução te leva até o primeiro agente.</span><span lang="en">The introduction walks you to your first agent.</span></span></div></li></ol><div style="margin-top:30px"><a class="btn btn--beak" data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-mac-arm64.dmg"><span lang="pt-BR">Baixar pro Mac</span><span lang="en">Download for Mac</span></a></div>- <p class="fine" style="margin-top:12px"><span lang="pt-BR">Todos os formatos:</span><span lang="en">Every format:</span> <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-mac-arm64.dmg">Mac (.dmg)</a> · <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-amd64.deb">Linux .deb</a> · <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-x86_64.AppImage">Linux AppImage</a> · <span lang="pt-BR">ARM64:</span><span lang="en">ARM64:</span> <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-arm64.deb">.deb</a> · <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-arm64.AppImage">AppImage</a></p>+ <p class="fine" style="margin-top:12px"><span lang="pt-BR">Todos os formatos:</span><span lang="en">Every format:</span> <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-mac-arm64.dmg">Mac (.dmg)</a> · <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-amd64.deb">Linux .deb</a> · <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-x86_64.AppImage">Linux AppImage</a> · <span lang="pt-BR">ARM64:</span><span lang="en">ARM64:</span> <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-arm64.deb">.deb</a> · <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-linux-arm64.AppImage">AppImage</a> · <a data-dl href="https://github.com/eduwxyz/tucano/releases/latest/download/tucano-win-x64.exe">Windows (.exe)</a></p><div class="free"><span><span lang="pt-BR">Grátis</span><span lang="en">Free</span></span><span>Open source · Apache-2.0</span><span><span lang="pt-BR">Sem conta, sem servidor nosso</span><span lang="en">No account, no servers of ours</span></span></div></div><div class="tty rv" id="tty"><div class="tb"><i></i><i></i><i></i></div><pre id="ttyText"></pre></div>@@ -770,10 +770,10 @@ if (/(^|\.)tucano\.sh$/.test(location.hostname)) {<div class="qa rv"><details open><summary><span lang="pt-BR">Quanto custa?</span><span lang="en">How much does it cost?</span></summary><p><span lang="pt-BR">Nada. O Tucano é grátis, sem recurso trancado. Você usa o plano do Claude ou do ChatGPT que já paga, os seus provedores, ou o gateway da empresa.</span><span lang="en">Nothing. Tucano is free, with no locked features. You use the Claude or ChatGPT plan you already pay for, your own providers, or your company’s gateway.</span></p></details><details><summary><span lang="pt-BR">Preciso de chave de API?</span><span lang="en">Do I need an API key?</span></summary><p><span lang="pt-BR">Não. Ele roda o Claude Code, o Codex, o OpenCode ou o Pi já configurados no seu computador. O app nunca vê nem guarda a sua senha.</span><span lang="en">No. It runs Claude Code, Codex, OpenCode or Pi as they’re already set up on your computer. The app never sees or stores your password.</span></p></details>- <details><summary><span lang="pt-BR">É seguro deixar agentes mexendo nas coisas?</span><span lang="en">Is it safe to let agents touch things?</span></summary><p><span lang="pt-BR">Cada agente só usa o que recebeu, ações sensíveis pedem o seu sim (amarrado àquela ação exata) e os comandos rodam num Linux isolado, a não ser que você escolha dar o seu Mac.</span><span lang="en">Each agent only uses what it was given, sensitive actions need your yes (tied to that exact action), and commands run on an isolated Linux machine, unless you choose to hand over your Mac.</span></p></details>+ <details><summary><span lang="pt-BR">É seguro deixar agentes mexendo nas coisas?</span><span lang="en">Is it safe to let agents touch things?</span></summary><p><span lang="pt-BR">Cada agente só usa o que recebeu, ações sensíveis pedem o seu sim (amarrado àquela ação exata) e os comandos rodam num Linux isolado, a não ser que você escolha dar o seu computador.</span><span lang="en">Each agent only uses what it was given, sensitive actions need your yes (tied to that exact action), and commands run on an isolated Linux machine, unless you choose to hand over your own computer.</span></p></details><details><summary><span lang="pt-BR">Onde ficam os meus dados?</span><span lang="en">Where does my data live?</span></summary><p><span lang="pt-BR">No seu computador: conversas, memória, arquivos e logins. O modelo recebe só o que os agentes mandam pra ele, pelo caminho que o seu harness já usa.</span><span lang="en">On your computer: conversations, memory, files and logins. The model only receives what the agents send it, through the path your harness already uses.</span></p></details><details><summary><span lang="pt-BR">E se o plano chegar no limite?</span><span lang="en">What if my plan hits its limit?</span></summary><p><span lang="pt-BR">Você define limite por agente e teto por resposta. O app confere antes de cada resposta, avisa em 80% e mostra onde cada agente vai fechar o mês no ritmo atual.</span><span lang="en">You set a limit per agent and a cap per reply. The app checks before every reply, warns at 80% and shows where each agent will end the month at the current pace.</span></p></details>- <details><summary><span lang="pt-BR">Roda no Windows ou no Linux?</span><span lang="en">Does it run on Windows or Linux?</span></summary><p><span lang="pt-BR">No Linux, sim: .deb pro Ubuntu e o Debian, AppImage pras outras distribuições, em x64 e ARM64. No Windows, ainda não. No Mac, precisa do chip Apple (M1 ou mais novo).</span><span lang="en">On Linux, yes: a .deb for Ubuntu and Debian, an AppImage for other distributions, on x64 and ARM64. On Windows, not yet. On a Mac, it needs Apple silicon (M1 or newer).</span></p></details>+ <details><summary><span lang="pt-BR">Roda no Linux ou no Windows?</span><span lang="en">Does it run on Linux or Windows?</span></summary><p><span lang="pt-BR">No Linux, sim: .deb pro Ubuntu e o Debian, AppImage pras outras distribuições, em x64 e ARM64. No Windows 10 e 11 também: cole <code>irm …/install.ps1 | iex</code> no PowerShell, ou baixe o .exe (sem assinatura de código, então o Windows avisa uma vez: Mais informações › Executar assim mesmo). No Mac, precisa do chip Apple (M1 ou mais novo).</span><span lang="en">On Linux, yes: a .deb for Ubuntu and Debian, an AppImage for other distributions, on x64 and ARM64. On Windows 10 and 11 too: paste <code>irm …/install.ps1 | iex</code> in PowerShell, or download the .exe (it isn’t code-signed, so Windows warns once: More info › Run anyway). On a Mac, it needs Apple silicon (M1 or newer).</span></p></details></div></div></section>@@ -1070,9 +1070,23 @@ setLang(LANG)</script><script>// The main download button fits the visitor's computer: the .dmg on a Mac, the .deb on Linux-// (ARM64 when the browser says so). "Every format" keeps all of them.+// (ARM64 when the browser says so), the installer on Windows, where the command to copy is+// PowerShell's. "Every format" keeps all of them.;(() => {const ua = navigator.userAgent+ if (/Windows NT/.test(ua)) {+ document.querySelectorAll('a.btn[data-dl]').forEach((a) => {+ a.href = a.href.replace('tucano-mac-arm64.dmg', 'tucano-win-x64.exe')+ a.querySelector('[lang="pt-BR"]').textContent = 'Baixar pro Windows'+ a.querySelector('[lang="en"]').textContent = 'Download for Windows'+ })+ const ps = 'irm https://github.com/eduwxyz/tucano/releases/latest/download/install.ps1 | iex'+ document.querySelectorAll('.cmd').forEach((c) => {+ c.querySelector('code').innerHTML = '<b>irm</b> <span>…/releases/latest/download/</span>install.ps1 | iex'+ c.querySelector('.copy').dataset.copy = ps+ })+ return+ }if (!/Linux|X11/.test(ua) || /Android/.test(ua)) returnconst file = /aarch64|arm64/i.test(ua) ? 'tucano-linux-arm64.deb' : 'tucano-linux-amd64.deb'document.querySelectorAll('a.btn[data-dl]').forEach((a) => {diff --git a/src/main/index.ts b/src/main/index.tsindex d48cc09..fa43546 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -355,11 +355,14 @@ function createWindow(): BrowserWindow {// One app per data folder: two would both run the same routines. Opening it// again (Dock, Spotlight, at login) just brings the window back. A test run-// with its own data folder is a separate app.+// with its own data folder is a separate app. `Tucano --quit` (install.ps1, before+// it replaces the app) asks the open one to quit as its tray menu does, and never+// opens one itself.if (process.env['TUCANO_DATA']) app.setPath('userData', process.env['TUCANO_DATA'])-const primary = app.requestSingleInstanceLock()+const quitOnly = process.argv.includes('--quit')+const primary = app.requestSingleInstanceLock() && !quitOnlyif (!primary) app.quit()-app.on('second-instance', () => showWindow())+app.on('second-instance', (_e, argv) => (argv.includes('--quit') ? app.quit() : showWindow()))// The app's own menu, in the app's language (Electron's would be in English).function setMenu(): void {diff --git a/src/main/updates.ts b/src/main/updates.tsindex 8065d5b..9c9013f 100644--- a/src/main/updates.ts+++ b/src/main/updates.ts@@ -1,7 +1,8 @@// Updates (the installed app only): Tucano looks for a newer release on GitHub,// downloads it in the background and says so; the person restarts when it suits-// them, or it goes in the next time the app quits. The release carries-// latest-mac.yml next to the .zip (scripts/release.sh), which is what's read here.+// them, or it goes in the next time the app quits. The release carries each system's+// feed: latest-mac.yml next to the .zip (scripts/release.sh), latest-linux*.yml and+// latest.yml, for Windows, from the workflows that build those installers.import { app } from 'electron'import electronUpdater from 'electron-updater'import type { UpdateState } from '../shared/types'@@ -49,7 +50,10 @@ export class Updates {}install(): void {- if (this.state.status === 'ready') this.updater.quitAndInstall()+ if (this.state.status !== 'ready') return+ // On Windows the installer runs without its window, then opens the app again.+ if (process.platform === 'win32') this.updater.quitAndInstall(true, true)+ else this.updater.quitAndInstall()}private set(patch: Partial<UpdateState>): void {diff --git a/vitest.config.ts b/vitest.config.tsnew file mode 100644index 0000000..2178392--- /dev/null+++ b/vitest.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'vitest/config'++// On Windows, tests that write a lot to SQLite run several times slower (the summary+// tests took 6 s on GitHub's runner), so they get more time there than vitest's 5 s.+export default defineConfig({+ test: { testTimeout: process.platform === 'win32' ? 30_000 : 5_000 }+})