Add --json output support to lstk start - #467
Draft
anisaoshafi wants to merge 1 commit into
Draft
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
anisaoshafi
force-pushed
the
devx-1052-add-json-support-to-lstk-start
branch
from
August 21, 2026 13:32
919ea4e to
1723e9d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The LocalStack Toolkit for VS Code is migrating onto a bundled
lstkand needs a machine-readable contract instead of scraping human output.startis the first lifecycle command it needs.Solution
startand the barelstknow accept--json, emitting the envelope shape already agreed inopenspec/changes/json-output-schema(task 5.1).The start path had no result-carrying event — the result existed only as prose. A new
EmulatorStartedEventowns it, with a formatter reproducing the• Endpoint:line exactly, so plain-text output is unchanged. All 12ErrorEventsites incontainer.Startgained codes, andAUTH_REQUIREDnow returns its reserved exit code 4.Three spec corrections, recorded as appended
tasks.mditems:checkSingleContainerfails first) — now assertsCONFIG_INVALID.startexited 0 with no emulator reported at all. Fixed.LICENSE_UNSUPPORTED_TAGdropped as unreachable;SNAPSHOT_NOT_FOUND→SNAPSHOT_INVALID_REF.Settles design.md's NDJSON question for
startonly (single final envelope), leaving it open forrestartand the snapshot commands.Docs
User-facing.
docs/structured-output.mdmovesstartfrom the draft catalog into Implemented with its real payload and error codes, and gains the "Adding--jsonsupport to a command" section thatCLAUDE.md:268has pointed at since #374 but which was never written.No new flags or config keys —
--jsonalready exists globally; this opts a command into it.Review
Human review advised — establishes a wire contract an external consumer depends on, and touches the CLI's hottest code path.
Closes DEVX-1052