Repository navigation
0.7.0 - 2026-06-17
·
73 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Git worktree support is the headline of this release: run the same project's services side by side from separate worktrees, target a sibling worktree without changing directories, and have denvig resolve the right config wherever you run it.
Added
--worktree <branch>on everyservicessubcommand targets a sibling git worktree without switching directories (use--worktree mainfor the primary checkout)- Running denvig from inside a git worktree (including subdirectories and nested layouts) now resolves and defaults to that worktree's own config, dependencies, refs, and services
denvig infonow showsRefs:andWorktrees:blocks identifying the project and listing its detached git worktreesdenvig projectsgroups each project's worktrees beneath it as a subtree, andservices list --worktreesnests worktree services under each project (pair with--all)services start/services restartaccept--domainsto route any domains to a service at launch (e.g.--domains hello2.denvig.me), pairing with--worktreeto give a worktree its own domainservices start/services restartaccept--portto pick a specific port (e.g.--port 3000) or--port randomto allocate a free one; services without anhttp.portget a randomPORTenv varservices listgains a--status <running|stopped|error>filter (accepts a comma-separated list) and showshttp://localhost:<port>when the effective port differs from the configured one- Runtime service state, gateway routes, and SSL certs are now persisted to
~/.denvig/state.json, the source of truth for the gateway, certs, andservices list
Changed
- The gateway is now always enabled; the
experimental.gatewayconfig has been replaced by a top-levelgatewayconfig - CLI now errors on unknown subcommands and unrecognised flags instead of silently falling back to the default subcommand
services listnow defaults to the current project; use--allfor every project plus globals, or--globalfor globals onlyservices startno longer restarts a service that is already running; it just refreshes the gateway so domain changes apply without interrupting the process- Shell completions moved to
denvig shell completions zsh(pass the shell as an argument); unsupported shells now show a helpful error - CLI usage logging is now disabled by default (set
DENVIG_CLI_LOGS_ENABLED=trueto enable) and writes to a daily file (~/.denvig/logs/cli/{YYYY-MM-DD}.jsonl); starting a service keeps only the 10 most recent log files - Prerelease tags now publish to npm under matching dist-tags (
@alpha,@beta,@rc) instead of@latest, sopnpm add denvigkeeps tracking stable releases - The CLI is now published as
@denvig/cliand the SDK standalone as@denvig/sdk(re-exported asdenvig/clianddenvig/sdk); the SDK now runs in-process instead of shelling out to the CLI - The SDK now exposes a resource-oriented API — resolve a project, then chain into its worktrees, actions, services, dependencies, certs, gateway and config (e.g.
(await denvig.projects.retrieve(id)).services.retrieve('api').start()) — with helpers from@denvig/sdk/utilsand@denvig/sdk/fs, error classes and types from the package root, anddenvig.version()
Fixed
denvig runresolves actions whose names contain a colon (e.g.compile:darwin-x64) and no longer duplicates the command echo for pnpmpackage.jsonscripts- Service commands accept
local:and bare path identifiers again, inferring the service name from the final path segment - Services without an
httpblock no longer get a port allocated or show alocalhostURL - Services left behind by a deleted worktree are cleaned up automatically, and
servicescommands no longer report spurious restarts of unrelated services denvig deps outdatedno longer listslink:orworkspace:dependencies, since they point at local code- The
@denvig/sdk/testingimport now resolves when installed from npm