Skip to content

feat: show deployment machines in CLI - #455

Merged
alongubkin merged 5 commits into
mainfrom
alon/alien-551-machines-runtime-status
Aug 21, 2026
Merged

feat: show deployment machines in CLI#455
alongubkin merged 5 commits into
mainfrom
alon/alien-551-machines-runtime-status

Conversation

@alongubkin

Copy link
Copy Markdown
Member

Summary

  • add alien deployments machines <deployment> backed by the existing Platform Machines inventory API
  • show machine lifecycle, heartbeat, mesh convergence, peer counts, and observed machine-agent version
  • support lossless --json output and put degraded/unknown mesh state first in human output
  • refresh the checked-in Platform API contract and generated Rust client input

Validation

  • cargo check -p alien-cli --features platform
  • cargo test -p alien-cli machines_inventory_tests
  • rustfmt --edition 2021 --check crates/alien-cli/src/commands/deployments.rs
  • git diff --check

Generated API inputs originate from Platform pnpm run generate:api-openapi; the Rust client is generated by the crate build script.

@greptile-apps

greptile-apps Bot commented Aug 20, 2026

Copy link
Copy Markdown

Greptile Summary

Adds a deployment-machine inventory command backed by the Platform API and completes structured JSON error routing for deployment commands.

  • Adds alien deployments machines <deployment> with machine lifecycle, heartbeat, mesh health, peer counts, and agent-version output.
  • Preserves complete API responses in JSON mode and prioritizes degraded machines in human-readable output.
  • Refreshes the Platform OpenAPI contracts used to generate the Rust client.
  • Routes both top-level and development deployment commands through the shared JSON-output detector.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the previously reported Machines and Create JSON error-routing issues are both addressed for top-level and development command paths.

Important Files Changed

Filename Overview
crates/alien-cli/src/commands/deployments.rs Adds machine-inventory retrieval and rendering while correctly recognizing Create and Machines structured-output modes.
crates/alien-cli/src/lib.rs Routes top-level and development deployment commands through the deployment-specific JSON-output detector.
client-sdks/platform/openapi.json Refreshes the checked-in Platform API contract with the machine-inventory endpoint and schemas.
client-sdks/platform/rust/openapi.json Synchronizes the Rust client generator input with the refreshed Platform API contract.

Reviews (6): Last reviewed commit: "fix: preserve JSON errors for deployment..." | Re-trigger Greptile

Comment thread crates/alien-cli/src/commands/deployments.rs
@alongubkin
alongubkin force-pushed the alon/alien-551-machines-runtime-status branch from 973c572 to 19e3f17 Compare August 20, 2026 23:33
@alongubkin
alongubkin force-pushed the alon/alien-551-machines-runtime-status branch from 19e3f17 to 30b0da3 Compare August 21, 2026 00:04
@alongubkin
alongubkin changed the base branch from main to alon/alien-559-regenerate-worker-runtime-typescript-client-for-locked-ts August 21, 2026 00:04
Comment thread crates/alien-cli/src/commands/deployments.rs
Base automatically changed from alon/alien-559-regenerate-worker-runtime-typescript-client-for-locked-ts to main August 21, 2026 01:39
@alongubkin
alongubkin merged commit 6c9fcce into main Aug 21, 2026
18 checks passed
@alongubkin
alongubkin deleted the alon/alien-551-machines-runtime-status branch August 21, 2026 01:39
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