Skip to content

feat: make agent-version optional, clarify npm/pip pinning behavior#13

Merged
jason-rl merged 1 commit into
mainfrom
jason/optional-agent-version
Apr 30, 2026
Merged

feat: make agent-version optional, clarify npm/pip pinning behavior#13
jason-rl merged 1 commit into
mainfrom
jason/optional-agent-version

Conversation

@jason-rl
Copy link
Copy Markdown
Contributor

@jason-rl jason-rl commented Apr 29, 2026

Summary

  • Make agent-version optional in action.yml (was required)
  • Update agent-version description to clarify it pins the installed package version for npm/pip agents (e.g., 2.1.123), and is not used for git/object agents
  • Remove validateAgentVersion semver/SHA format validation — neither runloop-fe nor rl-cli validate the version format client-side, so deploy-agent shouldn't either. The backend handles validation.
  • Conditionally include version in API payload only when provided
  • Guard public: prefix handling against undefined agentVersion

The backend uses the top-level version field for npm/pip package version pinning (NpmAgentSetup.setNpmVersion() / PipAgentSetup.setPipVersion()). For git agents, ref controls versioning. For object agents, the object ID is immutable. This change is fully backward-compatible.

Related: runloopai/docs#224

Test plan

  • Verify all source types work without agent-version
  • Verify all source types still work WITH agent-version provided (backward compat)
  • Verify public: prefix handling works when agent-version is provided
  • Typecheck, lint, and format pass (pnpm run check)

🤖 Generated with Claude Code

@jason-rl jason-rl marked this pull request as ready for review April 29, 2026 17:37
@jason-rl jason-rl force-pushed the jason/optional-agent-version branch from a61d4b2 to a9561db Compare April 29, 2026 18:25
@jason-rl jason-rl changed the title feat: make agent-version optional for git/tar/file sources feat: make agent-version optional for all source types Apr 29, 2026
@jason-rl jason-rl force-pushed the jason/optional-agent-version branch from a9561db to fad85b6 Compare April 29, 2026 19:48
@jason-rl jason-rl changed the title feat: make agent-version optional for all source types feat: make agent-version optional, clarify npm/pip pinning behavior Apr 29, 2026
@jason-rl jason-rl force-pushed the jason/optional-agent-version branch 2 times, most recently from 8bafc11 to c1a3941 Compare April 29, 2026 20:03
Make agent-version optional for all source types. Update description
to clarify that for npm/pip agents it pins the installed package
version, and is not used for git or object agents.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jason-rl jason-rl force-pushed the jason/optional-agent-version branch from c1a3941 to b736819 Compare April 29, 2026 20:10
@jason-rl jason-rl merged commit 929aaab into main Apr 30, 2026
1 check passed
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