Skip to content

Add posit connect version #9

Closed

Description

@nealrichardson

To return the server version. Should take the usual arguments to specify a server other than the default, etc.

This can wrap the server_version method added in posit-dev/rsconnect-python#811

Activity

  1. self-assigned this
    on Oct 26, 2026
  2. added
    ready-for-agentFully specified, ready for an autonomous coding agent
    on Oct 26, 2026
  3. tdstein commented on Oct 26, 2026

    @tdstein
    Contributor

    Codex Workpad

    Karazhan:/Users/taylor/github.com/posit-dev/symphony/workspaces/posit-dev_posit-cli_9-e81203178db04e19@8757a38
    

    Plan

    • 1. Inspect repository guidance, issue context, and existing command behavior.
    • 2. Add server version command with standard connection options.
      • 2.1 Cover version output, server selection, and errors with tests.
      • 2.2 Document command and upstream override behavior.
    • 3. Verify, review diff, and publish PR for handoff.

    Acceptance Criteria

    • posit connect version prints the selected Connect server version using RSConnectClient.server_version.
    • Supports saved/default servers, explicit server URL, API key, TLS options, and existing environment variables through RSConnectExecutor.
    • Failures produce a clean nonzero CLI error.
    • Tests and README describe the new behavior.

    Validation

    • Command:

      • .venv/bin/pytest -c pyproject.toml tests
    • Commit: 8757a38

    • Observed: 72 tests passed on Python 3.14.3.

    • Run: post-publication validation, 2026-10-26

    • Command:

      • .venv/bin/ruff format --check
    • Commit: 8757a38

    • Observed: All 14 files formatted.

    • Command:

      • .venv/bin/ruff check
    • Commit: 8757a38

    • Observed: All checks passed.

    • Command:

      • git diff --check
    • Commit: 8757a38

    • Observed: Passed; working tree clean.

    Evidence

    Reproduction

    • Command: .venv/bin/posit connect version
    • Observed: Prints 1.30.0, the mounted rsconnect client version, without contacting a server.
    • Run: initial CLI reproduction, 2026-10-26
    • Commit: b9e067a

    Notes

    • 2026-10-26: No repository AGENTS.md exists; read CLAUDE.md and CONTRIBUTING.md and applied user-provided instructions. No issue comments or linked PRs. Locked rsconnect-python 1.30.0 already provides server_version, including CONNECT_SERVER_VERSION override and empty string for hidden versions.
    • 2026-10-26: Implementation and documentation complete. Reviewed tracked diff and both new files. Tests exercise the real upstream server_version method with mocked transport, option forwarding, and error handling. No dependency changes needed.
    • 2026-10-26: Handoff: feat: add Connect server version command #23 at commit 8757a38. All 72 tests, Ruff formatting/lint, and diff checks passed again against published head. PR mergeable, no review threads or new issue comments; no blockers. PR remains open and unmerged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready-for-agentFully specified, ready for an autonomous coding agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions