Skip to content

devlanes 0.13.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 15:24
· 25 commits to main since this release
a3ec550

Minor changes

  • 0e2e4a8f Changed devlanes lane new --start --output json to print the new lane, then the start as devlanes start --json does.

    Read the start's result from the last line instead of the start key. --timeout now applies to that start. A devlanes 0.12 client gets an error for lane new --start from this daemon; run devlanes lane new, then devlanes start --lane <name>.

  • 4e8e5636 Changed devlanes lane clean so a lane that comes back starts empty, without the old --env or history.

    The primary and worktree lanes get a new data folder path, and lane clean --dry-run lists the run history. The daemon migrates its database on the next start and deletes the history of lanes cleaned before. devlanes lane gc deletes lane data folders a clean could not delete.

  • 4e8e5636 Changed devlanes lane clean of a project's last lane to stop its shared containers, keeping their data.

    The next devlanes start in the project brings them up again.

  • 36cbe7b4 Changed devlanes status to report a running exec command, task or infra command as running, JSON included.

    Scripts and MCP consumers that matched ready for exec units or starting for running tasks should match running. A task stopped by its own timeout: now reads failed with reason task_timeout everywhere. run answers, task events and the last run in run --list use the same words as status: exited, failed or stopped (they said done, a stopped task failed in events and interrupted in the list).

  • d5747169 Changed run_script npm scripts on Windows to run without npm, so a stop reports the program's own exit code instead of exit=1.

    Scripts get npm's package and lifecycle variables and node_modules\.bin on PATH, but not npm's npm_config_* settings.

  • a3adedfa Changed the error for a config value with no value in the lane, such as an unset ${{ env.X }}, to stop calling devlanes.yaml invalid.

    Its JSON code is unresolved_value instead of config_error or lane_env_unresolved, for services, tasks, exec and env show alike. Older clients show the code and message without the variable's name.

  • 174ed796 Changed devlanes env show in agent output and the MCP env_show tool to hide secret-looking values.

    devlanes mcp no longer runs env export. In a shell, env show --output plain and eval "$(devlanes env export)" still print real values, and exec or with pass them to a command. A --read-only MCP server can no longer read secret values.

  • 4a4678ec Changed devlanes exec and env show to fail on a misspelled infra.<name>, which config check now reports too.

    exec and env show leave out a value only while its container is stopped or Docker is not running, and say which. They refuse when Docker does not answer in time, and with compose files on a machine without the Docker CLI; pass the value with --env KEY=... or start Docker. env export and env shell now include NODE_EXTRA_CA_CERTS, DENO_CERT, SSL_CERT_FILE and REQUESTS_CA_BUNDLE unless the shell sets them.

  • 2ec16a0a Changed devlanes debug errors to never count a requested stop as a crash, and to count deaths by signal and task timeouts.

    The state database gains a column, so an older devlanes cannot open it. Runs recorded before the upgrade are not counted.

  • 679d435c Changed url ls, debug top, logs and other reads to leave a project removed by lane clean removed.

    Only start, restart, reload, run, exec, lane new, infra, env, url, status and lane ls add the folder's project. Other reads in a project nobody started say so; stop and lane gc do nothing there. A devlanes.yaml that does not load now shows its error in status and url ls. config check warns about hostnames before the first start. A main checkout off the primary branch gets its lane on its first status or start, as other worktrees do.

  • 087f74bb Changed devlanes with --profile to refuse a running lane whose profiles give its services other settings, before starting anything.

    Stop the lane, run with in another worktree, or name the services instead of the profile. A profile that only picks services works on a running lane whose profiles set no env, run_scripts or infra.

  • e4cf749b Fixed devlanes with leaving units running when Ctrl-C interrupted its start.

    with needs a daemon of this release: run devlanes daemon restart when it says the daemon is outdated.

  • f322ca79 Changed ready.log to match the lines devlanes logs shows, so a line drawn over a spinner or progress text now matches.

    Text a program draws only on the alternate screen (full-screen terminal apps) no longer matches, and a prompt or a line still being redrawn matches once the program moves past it or pauses. Match a line the program prints before it switches to full screen, or use a tcp or http check. Trailing spaces are not part of a logged line, so end a pattern before them: ^password> or ^password>$ instead of "^password> ".

Patch changes

  • a09fef90 Fixed devlanes with --logs-dir leaving out the logs of infra.setup entries and failed tasks the start ran.

    ran in the start --json result now also lists the tasks and setup entries that failed.

  • 8f36a74e Changed devlanes logs -f to show each new line as soon as it is logged, instead of up to 250 ms later.

  • 8b189bf9 Fixed the TUI not notifying a crashed service while other services of its lane were still starting.

  • 96ac235b Fixed Windows stops of pty: false units running Git's sh or another MSYS program waiting for stop.timeout.

  • 5ed93a92 Fixed devlanes mcp reporting another lane's start as the progress of a start call.

    Calls of with and lane new --start now report the phases of the lane they start too.

  • 4158a194 Fixed devlanes with clearing the --env values of the lane's running services.

  • 96ac235b Fixed Windows units left by a previous daemon getting Ctrl-Break on stop, which skipped Node's SIGINT handlers.

  • ed0c90d3 Fixed devlanes start --json leaving out the lane.phase events of phases as they start and progress.

  • 94511d28 Fixed devlanes remote use right after devlanes remote connect saying the lane is chosen but not mirrored yet.

    A choice that applies later, once its box connects or its lane is mirrored, now sends the same lane_switched notice as one that applies at once, and remote use and the TUI say which of the two it waits for. Choosing a box lane with nothing to mirror now says so, instead of pointing to remote ls.

  • dd50a481 Fixed errors and devlanes lane ls showing a lane that waits for a free index as unknown or –.

  • e661615a Fixed devlanes reload 1 not saying that 1 is a lane, as stop 1 does.

    reload takes globs and +tag like stop. A service name in stop or reload also covers a replica the file no longer has, such as api.3 after replicas: 2.

  • a09fef90 Fixed devlanes start on a terminal replacing a running task's line with the line of one of its finished steps.

  • 9cd2bf62 Added a start.ended event to devlanes debug events, sent once when each start request finishes.

  • a5309033 Fixed the proxy on Windows taking 2 seconds per connection to services that listen only on ::1, such as Vite on localhost.

    Readiness checks of such services, port checks of infra containers that are not listening yet and connections a Windows box makes to its own services no longer wait either.

  • d5747169 Fixed run: lists and devlanes with -- commands of MSYS programs on Windows expanding *, ?, [...], {a,b} and ~ in arguments.

    This covers Git's usr\bin shells and tools and MSYS2 and Cygwin programs. Arguments now arrive as written, as on macOS and Linux.

  • 40afbabe Fixed the unit picker and the TUI choosing a lane new lane instead of the folder's own lane.

  • 9d77691d Fixed after: services tasks running when a service exits within half a second of starting.

    Every service now reads starting until it has run half a second and its ready check passed, so devlanes status and devlanes wait agree with devlanes start.

  • f1506fb0 Fixed a service put back in the project file not showing as added when it had exited on its own.

    devlanes wait and devlanes reload answer not found for a service the project file no longer has once it stopped.

  • 28a6b933 Fixed container events, states and stats staying unavailable on macOS and Linux when Docker started after the devlanes daemon.

  • 20b17f7d Fixed devlanes debug bundle on Windows leaving the home directory in its files.

  • c69d9e36 Fixed devlanes logs -f --grep and --level showing lines that arrive while following without filtering them.

    Lines that arrive while following also keep their colors and get the --context lines around matches, as the first page does.

  • 4158a194 Fixed devlanes lane new --start and daemon restart through devlanes mcp starting lanes without the login shell's environment.

  • ed0c90d3 Fixed devlanes restart api.1 also starting the other replicas of api that were stopped.

  • ed0c90d3 Fixed after: services tasks running when devlanes start timed out.

    devlanes start prints services ready once every service it started is ready, and --json gets a lane.phase event with state: ready before services done, which now comes after the wait. A devlanes stop of the lane during that wait ends the start with start_cancelled.

  • 96ac235b Changed Windows stops to type Ctrl-C into pty: true units that run Git's sh, so their programs shut down cleanly.

    A program that reads its terminal raw and ignores Ctrl-C now runs until stop.timeout. run: strings with stop.signal: SIGINT no longer get a launch note.

  • a5113517 Fixed infra containers that restarted while devlanes reconnected to Docker keeping their old ports.

  • 4e8e5636 Fixed a lane new lane that waits for lanes.max disappearing after a daemon restart.

    devlanes lane clean <name> removes it, and cleaning a project's other lanes keeps it.

  • 4158a194 Fixed devlanes restart <unit> through devlanes mcp keeping an --env value from an earlier command.

  • 28a6b933 Fixed devlanes status keeping an infra container's old ports after it crashed twice in a row or an event was lost.

  • 28a6b933 Fixed devlanes status and the TUI losing a lane's running infra containers and their URLs after the daemon restarted.

    They also list the running containers of a lane no start brought up once a command such as devlanes run has checked them.

  • 1bd71ea5 Fixed requests failing with 502 right after devlanes remote use moves a lane back to the box that served it before.

  • 1bd71ea5 Fixed devlanes remote connect and remote ls sometimes leaving out a box's version and warnings right after it connects.

  • a4108390 Fixed Windows units ended by a stop showing exit codes such as -1073741510, 255 or 1 instead of a signal, as on macOS and Linux.

    just recipes and Git's bin\bash.exe now show the code they return, 512 when their shell ended on Ctrl-C.

  • f1506fb0 Fixed devlanes status saying config changed with nothing to reload after some project file edits.

    status also shows a service as changed when a value it reads from your shell through ${{ env.NAME }} differs after a start from another shell. While a running unit cannot be planned, devlanes reload refuses with the plan's error, also for units the file removed; devlanes stop <unit> stops those.