Repository navigation
Agent readiness: exit codes, --json, diagnostics, build logs - #6
Merged
Merged
Conversation
tx status without credentials now reports ResolveAuth's not-authenticated or session-expired message (C5) instead of the old fixed text (C1); exit code 3 and the JSON shape are unchanged.
…er edge cases - token list sizes every column to its widest value - tx status names TX_API_TOKEN when the server rejects it - tx token create accepts the name as an argument - tx without a command is a usage error (exit 2) - tx build saves a generated project_key only after the project is created
The streamed log goes to stderr, so stdout was a misleading name.
The done event carries the build's diagnostics on one SSE data line, which could pass bufio.Scanner's default 64 KiB limit and fail a successful build with "token too long". Lines up to 8 MiB are now read.
The service now also cuts the list to fit its size limit, so truncated can be set with fewer than 50 diagnostics.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
texops-site | 7e15fb4 | Oct 09 2026, 11:43 PM |
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.
Makes
txeasier for coding agents and scripts to use.Changes
--jsonon every command. In JSON mode, progress and errors go to stderr, and stdout holds a single JSON document.User-Agent. When an agent is detected,--logdefaults tofile.token deleterequires--yes, and flag values are validated.file:line: severity: message. Build logs are saved to.texops/logs/<doc>.log(--log=file|terminal).doneevent made a successful build fail with "token too long".site/docs/agents.md).Compatibility
The CLI degrades gracefully against the currently deployed server. Without
log_urlor diagnostics it falls back to the tail of the streamed output. Without/api/distributionsit falls back to the built-in list of TeX Live versions.The server side is texops/monorepo#3. Deploy it before releasing this.
Testing
go vet,golangci-lintandgo test -race ./...pass.