Skip to content

feat(cloud): add tri cloud status — print agent service count and health #145

@gHashTag

Description

@gHashTag

Task

Add a status subcommand to tri cloud that prints a one-line summary of Railway agent services.

Implementation

File to modify: src/tri/tri_cloud.zig

In the runCloudCommand function, add a new case for "status":

} else if (std.mem.eql(u8, sub, "status")) {
    return cloudStatus(allocator);
}

Add this function:

fn cloudStatus(allocator: Allocator) !void {
    const stdout = std.io.getStdOut().writer();
    try stdout.print("Trinity Cloud Status\n", .{});
    try stdout.print("  Max agents: 10\n", .{});
    try stdout.print("  Config: Railway (GraphQL API)\n", .{});
    try stdout.print("  Image: ghcr.io/ghashtag/trinity-agent:latest\n", .{});
    _ = allocator;
}

Acceptance Criteria

  • zig build passes
  • tri cloud status prints the status line
  • No other files modified
  • No generated files touched

Scope

~10 lines of Zig code in one file. Do NOT modify any files in trinity/output/ or generated/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions