Skip to content

0.7.0 - 2026-06-17

Choose a tag to compare

@marcqualie marcqualie released this 17 Jun 15:19
· 73 commits to main since this release
Immutable release. Only release title and notes can be modified.
b98f222

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 every services subcommand targets a sibling git worktree without switching directories (use --worktree main for 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 info now shows Refs: and Worktrees: blocks identifying the project and listing its detached git worktrees
  • denvig projects groups each project's worktrees beneath it as a subtree, and services list --worktrees nests worktree services under each project (pair with --all)
  • services start/services restart accept --domains to route any domains to a service at launch (e.g. --domains hello2.denvig.me), pairing with --worktree to give a worktree its own domain
  • services start/services restart accept --port to pick a specific port (e.g. --port 3000) or --port random to allocate a free one; services without an http.port get a random PORT env var
  • services list gains a --status <running|stopped|error> filter (accepts a comma-separated list) and shows http://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, and services list

Changed

  • The gateway is now always enabled; the experimental.gateway config has been replaced by a top-level gateway config
  • CLI now errors on unknown subcommands and unrecognised flags instead of silently falling back to the default subcommand
  • services list now defaults to the current project; use --all for every project plus globals, or --global for globals only
  • services start no 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=true to 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, so pnpm add denvig keeps tracking stable releases
  • The CLI is now published as @denvig/cli and the SDK standalone as @denvig/sdk (re-exported as denvig/cli and denvig/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/utils and @denvig/sdk/fs, error classes and types from the package root, and denvig.version()

Fixed

  • denvig run resolves actions whose names contain a colon (e.g. compile:darwin-x64) and no longer duplicates the command echo for pnpm package.json scripts
  • Service commands accept local: and bare path identifiers again, inferring the service name from the final path segment
  • Services without an http block no longer get a port allocated or show a localhost URL
  • Services left behind by a deleted worktree are cleaned up automatically, and services commands no longer report spurious restarts of unrelated services
  • denvig deps outdated no longer lists link: or workspace: dependencies, since they point at local code
  • The @denvig/sdk/testing import now resolves when installed from npm