Skip to content

Add service tags, run in several services, and SDK parity with the CLI - #28

Merged
rhyek merged 1 commit into
mainfrom
feat/service-tags-many-form
Nov 23, 2026
Merged

rhyek merged 1 commit into
mainfrom
feat/service-tags-many-form

Conversation

@rhyek

@rhyek rhyek commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Releases 0.11.0.

  • Tags. Services and infra services take tags, and -t, --tag picks them wherever -s does. -s names a service by its name or by a path.
  • Several services at once. exec and run with -s/-t run one command in each, labelled, the first failure stopping the rest unless --ignore-sibling-error. The SDK's exec()/run() have the same many form.
  • Infra. infra reset with nothing named resets the whole Compose project with its hooks; reset and destroy refuse up front what they couldn't remove; stop/restart act on enabled services only; --wait-timeout on start, restart and reset.
  • SDK parity. infra.*, service.*, stop, status, events, logs, resetProfile, showConfig, init, attach and wait.
  • Renames (breaking). A service's targetDir is dir; the SDK's target option is service; findService is no longer exported.

See CHANGELOG.md for the full list and the migrations.

Verification

  • pnpm build
  • pnpm lint
  • pnpm test: 2867 passed, 1 skipped, no type errors
  • pnpm test:e2e: 39 passed
  • infra/docker-compose.integration.spec.ts against real Docker: 19 passed
  • pnpm docs:build: no dead links
  • node maintenance/scripts/changelog.ts check
  • node maintenance/scripts/check-source-maps.ts
  • Recordings: the six scenes the triggers matched were judged and skipped (the terminal UI code is unchanged and shows no tags; the agent scenes are replays)

Services and infra services take `tags`, and `-t, --tag` picks them
wherever `-s` does. `-s` names a service by its name or by a path on
`start`, `service`, `exec` and `run`, and `exec` and `run` with `-s` or
`-t` run one command in several services at once, the first failure
stopping the rest unless `--ignore-sibling-error`. A service's
`targetDir` is now `dir`, and the SDK's `target` option is `service`.

`infra reset` with nothing named resets the profile's whole Compose
project, with its lifecycle hooks. `reset` and `destroy` refuse, before
any hook runs, what they couldn't remove: an external volume, a volume
shared with a service not named, or a volume or network held by a
container the run leaves in place. `infra stop` and `restart` act on
enabled services only, and a disabled service named with `-s` is
refused on every infra command but `destroy`. `start`, `restart` and
`reset` take `--wait-timeout`.

The SDK now does what the CLI does: `infra.*`, `service.*`, `stop`,
`status`, `events`, `logs`, `resetProfile`, `showConfig`, `init`, and
`attach` and `wait`, which return the stack of a session already
running. Each runs the CLI command in a child process, which hands its
result back on descriptor 3.

The docs, the changelog's 0.11.0 section and the example config are
updated to match.
@rhyek
rhyek merged commit 84959e5 into main Nov 23, 2026
5 checks passed
@rhyek
rhyek deleted the feat/service-tags-many-form branch November 23, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant