Repository navigation
feat(logs): add launch:logs:get for deployment, server and live logs - #269
Merged
Merged
Conversation
… inputs Add parseLogWindow (relative or ISO 8601 pair, defaults, 24 h clamp info) and the log-type, since and until inputs with the server-only rules. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7MQaPSfh5ua9RABfHr
…terminal poll onInterrupt is the shared Ctrl-C listener that stays attached until the signal reached every listener. The watcher now drains the logs (bounded by MAX_PAGES) on the terminal poll and ends at once on an aborted stop signal, with a cancellable default sleep. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7MQaPSfh5ua9RABfHr
Reads a deployment's build logs (following an in-flight one, Ctrl-C exits 3) or its server logs for a --since/--until window. --type live is refused as not available yet. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7MQaPSfh5ua9RABfHr
Refresh the stale checksums of AGENTS.md, deployment.watcher.test.ts and projects-create.test.ts after the G2 edits. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7MQaPSfh5ua9RABfHr
Streams a deployment's server logs from the logs-service live route through a new idle-timeout SSE client, with reconnect and backoff, the server-limit end line, and Ctrl-C exiting 3. The REST and SSE clients now share one request-header builder. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7GuYHHbwwLbN1JUzkG
Refreshed the checksums of the files G4 changed that already had an entry (rest-client, service-context, logs-get tests); Talisman flagged only prose and fixtures already on the branch, no credentials. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7GuYHHbwwLbN1JUzkG
Each connection now has its own AbortController linked to the Ctrl-C signal. The session-ended frame aborts it, later frames are ignored and the abort counts as a clean end, so heartbeats can no longer keep the command waiting. The link to the stop signal is removed after every connection. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7GuYHHbwwLbN1JUzkG
The live session-end test changed the file; Talisman flagged only fixtures and prose already allowlisted, no credentials. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7GuYHHbwwLbN1JUzkG
Brings CL-7170 (merged in #256) into this branch. The deployment watcher keeps one stop mechanism (v2-dev's, plus the abortable sleep and the terminal drain). The logs tests follow v2-dev's silent failed log read, and logs.presenter owns its scope hint now that the deployments presenter dropped it. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7GuYHHbwwLbN1JUzkG
Pin that logs:get with no flags prompts organisation, project and environment on a terminal (never --deployment or --type), and refuses with exit 2 naming the first missing flag when there is no terminal. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7GuYHHbwwLbN1JUzkG
Refreshed the checksums of the changed files that already had an entry; Talisman flagged only fixtures and prose, no credentials. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Va7GuYHHbwwLbN1JUzkG
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
Harshi-Shah-CS
approved these changes
Oct 30, 2026
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.
Jira: https://contentstack.atlassian.net/browse/CL-7171
Builds on CL-7170 (#256, merged); v2-dev is merged in.
What
csdx launch:logs:getfor a deployment's logs:--type deployment(default): follows an in-flight deployment or prints a finished one. The watcher now drains the log tail on the terminal poll, so more than 5000 lines are no longer cut off.--type server --since/--until: windowed server logs (relative or ISO, never mixed), 24 h retention notice, 5000-line cap notice.--type live: SSE stream (newsrc/transport/event-stream.ts: idle timeout, reconnect with backoff, ends when the server ends the session). Ctrl-C exits 3 for any follow. REST and SSE clients share one header builder.--deployment/--type); in CI exits 2 naming the missing flag.Decisions
--typeis its own flag (the catalogtypekey is the project type).--deploymentis verified first, else the latest is used. The watcher keeps v2-dev's single stop mechanism plus an abortable sleep and the drain.Tests
QA Planner plan T1–T94 on the ticket plus no-flag cases. Whole suite: 3418 of 3420 pass; the 2 failures are
src/uploads/upload.archive.test.tschmod cases that cannot fail as root (file untouched, same as v2-dev). tsc, eslint, Snyk (4 unfixable existing findings) and TruffleHog clean.Known gaps
x-cs-api-version, real SSE (14 s timeout, 5 s heartbeat, 5-min cap), harness cases.--search,--limitand paging wait for CL-7180.QA: the Launch QA agent tests CL-7171 in the repos once it is in QA; GoCD sanity covers dev11.
Generated by Claude Code