Skip to content

v0.13.0 — Your phones, lent to agents

Choose a tag to compare

@github-actions github-actions released this 13 Nov 14:52
· 173 commits to develop since this release
Immutable release. Only release title and notes can be modified.
30a3adb

What's new

  • Real phones and tablets for your agents. ShogunAi remembers every Android device seen by adb and every iPhone or iPad seen by Xcode, over USB or the network, and lends them to worktrees one at a time. An agent asks for one with shogun device acquire, by platform, alias or model, and waits in a queue with --wait when it's taken or not connected yet.
  • You decide which devices are lent. A recorded device is lent by default; withdraw it, lend it again, give it an alias such as a55 or forget it, with shogun device or from the new "Devices" view in Machine. The view shows each device's connection, who holds it and who waits for it.
  • A personal phone is never reached by accident. A held device reaches the agent through its own variables, SHOGUN_ANDROID_DEVICE_SERIAL and SHOGUN_IOS_DEVICE_UDID, while ANDROID_SERIAL keeps pointing to the worktree's emulator. Releasing a device never changes anything on it, and removing a worktree releases the devices it held.
  • Physical devices in status. shogun status and the worktree detail show the devices each worktree holds or waits for, and shogun pool status lists them with their holders and waiters.
  • shogun doctor checks the Java your Gradle build really uses. shogun doctor and "Check Installation…" now check the Java of Gradle's daemon, the Java toolchains the build declares and the Java the Android Gradle Plugin needs, so a fresh machine no longer passes the check and fails its first build. Each problem comes with its fix.
  • A broken Herdr plugin is noticed and repaired. shogun hooks status and the hooks section of Preferences say whether ShogunAi's Herdr plugin is installed, disabled, broken or missing. shogun hooks install --herdr, or "Reinstall" in Preferences, shows the Herdr commands it will run and reinstalls it.
  • Safer files in ~/.shogunai. The app and shogun can be different versions and write the same files: a newer version's fields are kept by an older one, a file written by an incompatible newer version is never overwritten, and an unreadable file is kept next to the new one as <file>.unreadable-<timestamp> instead of being replaced.
  • No command hangs forever. Every external tool ShogunAi runs, such as Git, adb, simctl, Docker or CocoaPods, has a time limit, with generous ones for installs. A tool that hangs fails with an error naming the command instead of blocking the app or other worktrees, and a cancelled operation ends as cancelled.

Fixes

  • The .deb installs on a machine without a desktop. Installing or removing the Linux package on a server or a minimal container no longer fails when there is no applications menu; it prints a warning instead.
  • Approvals made at once are all kept. Approving a repository in the app and in shogun at the same time no longer loses one of the approvals.
  • Simulator settings through a symbolic link. A project registered through a symbolic link, or with different letter case, keeps its simulator settings in the app, as it did in shogun.
  • A missing base repository is named. shogun commands that list a project's worktrees say which base repository is missing instead of showing a Git failure.
  • A slow Herdr or Orca isn't reported as missing. When one of them takes too long to answer, the error says the command timed out instead of saying the tool isn't installed.
Español

Novedades

  • Móviles y tabletas reales para tus agentes. ShogunAi recuerda cada dispositivo Android que ve adb y cada iPhone o iPad que ve Xcode, por USB o por red, y los presta a los worktrees de uno en uno. Un agente pide uno con shogun device acquire, por plataforma, alias o modelo, y espera en una cola con --wait cuando está ocupado o aún no está conectado.
  • Tú decides qué dispositivos se prestan. Un dispositivo registrado se presta por defecto; retíralo, vuelve a prestarlo, ponle un alias como a55 u olvídalo, con shogun device o desde la nueva vista "Dispositivos" de Máquina. La vista muestra la conexión de cada dispositivo, quién lo tiene y quién lo espera.
  • Nunca se llega a un móvil personal por accidente. Un dispositivo prestado llega al agente por sus propias variables, SHOGUN_ANDROID_DEVICE_SERIAL y SHOGUN_IOS_DEVICE_UDID, mientras ANDROID_SERIAL sigue apuntando al emulador del worktree. Liberar un dispositivo nunca cambia nada en él, y eliminar un worktree libera los dispositivos que tenía.
  • Dispositivos físicos en el estado. shogun status y el detalle del worktree muestran los dispositivos que cada worktree tiene o espera, y shogun pool status los lista con quién los tiene y quién los espera.
  • shogun doctor revisa el Java que tu build de Gradle usa de verdad. shogun doctor y "Comprobar instalación…" revisan ahora el Java del daemon de Gradle, las toolchains de Java que declara el build y el Java que necesita el Android Gradle Plugin, para que una máquina recién instalada no pase la comprobación y falle en su primer build. Cada problema viene con su solución.
  • Un plugin de Herdr roto se detecta y se repara. shogun hooks status y la sección de hooks de Preferencias dicen si el plugin de Herdr de ShogunAi está instalado, desactivado, roto o ausente. shogun hooks install --herdr, o "Reinstalar" en Preferencias, muestra los comandos de Herdr que va a ejecutar y lo reinstala.
  • Ficheros más seguros en ~/.shogunai. La app y shogun pueden ser de versiones distintas y escribir los mismos ficheros: una versión anterior conserva los campos de una más nueva, un fichero escrito por una versión más nueva e incompatible nunca se sobrescribe, y un fichero ilegible se guarda junto al nuevo como <fichero>.unreadable-<fecha> en vez de reemplazarse.
  • Ningún comando se queda colgado para siempre. Cada herramienta externa que ejecuta ShogunAi, como Git, adb, simctl, Docker o CocoaPods, tiene un límite de tiempo, amplio para las instalaciones. Una herramienta que se cuelga falla con un error que nombra el comando en vez de bloquear la app u otros worktrees, y una operación cancelada termina como cancelada.

Correcciones

  • El .deb se instala en una máquina sin escritorio. Instalar o eliminar el paquete de Linux en un servidor o un contenedor mínimo ya no falla cuando no hay menú de aplicaciones; muestra un aviso.
  • Se conservan todas las aprobaciones hechas a la vez. Aprobar un repositorio en la app y en shogun al mismo tiempo ya no pierde una de las aprobaciones.
  • Ajustes del simulador a través de un enlace simbólico. Un proyecto registrado a través de un enlace simbólico, o con otras mayúsculas y minúsculas, conserva sus ajustes del simulador en la app, como ya hacía en shogun.
  • Se nombra el repositorio base que falta. Los comandos de shogun que listan los worktrees de un proyecto dicen qué repositorio base falta en vez de mostrar un fallo de Git.
  • Un Herdr u Orca lento no se da por ausente. Cuando uno de ellos tarda demasiado en responder, el error dice que el comando agotó su tiempo en vez de decir que la herramienta no está instalada.