Commit Graph
3 Commits
Author SHA1 Message Date
Effect Bot ca3a4f8820 feat(docker): speak Docker Engine API 1.52 only
- generate the schemas from moby's api/docs/v1.52.yaml, and drop the pre-1.52 /system/df patch
- send every request at /v1.52 after one unversioned /version check that the Engine serves it;
  UnsupportedApiVersion reports the Engine's range and asks to upgrade an old Engine
- remove negotiation, the apiVersion setting, ApiVersions gates and OptionNotSupported
- accept DOCKER_API_VERSION only as 1.52
- remove post-1.52 surface: image attestations, the images identity query, keep-storage; events as x-ndjson
- DockerConfig hashes context names with effect/crypto's Digest, after main replaced effect/Crypto
- docs, codegen notes and the changeset state the fixed support policy
2026-11-09 06:50:04 +00:00
Sebastian Lorenz 6be31ce4e3 feat(docker): check DockerApi against the pinned API document
docker-codegen now also writes a manifest of the pinned API document's
operations: method, path, query and header parameters by wire name,
required query parameters, whether a body is taken, and the success and
error statuses. A test compares DockerApi with it and lists where they
differ on purpose, each because the Engine differs from the document
(verified live) or because HttpApi can't declare the operation: the
WebSocket attach, and the deprecated BuildKit session.

Gaps it found are declared now: HEAD /_ping as system.pingHead, the
build's BuildKit `outputs` (BuildOptions.outputs too), attach's stream
flags as optional, and save's `names` as optional (without them the
Engine answers an empty archive).
2026-11-08 20:21:53 +00:00
Sebastian Lorenz fdc7a6dedd feat(docker): generate the Docker Engine API Schemas
Add packages/tools/docker-codegen, which generates effect/docker/DockerSchema
from moby's pinned API document (1.56) with a standing list of computed patch
families: hoisted operation bodies, flattened allOf, empty-object maps, Go nil
(every nullable mark dropped, decoded by Schema.toCodecGoJson), and lenient
enums. Every definition is an exported Schema, followed by its decoded type
under the same name.

The formatter step fails instead of writing pnpm's error output over the
generated file.
2026-11-08 20:20:53 +00:00