Skip to content

Add file package type and file registry item metadata - #958

Draft
Michael Lee (michaellee1019) wants to merge 2 commits into
mainfrom
claude/amazing-rubin-79uhbz
Draft

Michael Lee (michaellee1019) wants to merge 2 commits into
mainfrom
claude/amazing-rubin-79uhbz

Conversation

@michaellee1019

Copy link
Copy Markdown
Member

Summary

Adds a "Files" registry item type so users can publish arbitrary files (configuration, calibration data, assets) and deploy them to machines.

  • PACKAGE_TYPE_FILE = 6 in viam.app.packages.v1.PackageType
  • FileVersion and FileMetadata messages, and RegistryItem.file_metadata = 20, listing a file item's versions
  • Regenerated Go and JS bindings

Design notes

  • A file item's versions are stored and served as ordinary archive packages. A machine config references one with "type": "archive", so viam-server needs no change and nothing extra is installed or run on the machine.
  • PACKAGE_TYPE_ARCHIVE is untouched. Existing archive uploads behave as before.
  • The change is additive: a new enum value, two new messages, and a new oneof member.

The app-side implementation (backend and UI) is in the companion viamrobotics/app pull request on the branch of the same name.

Test plan

  • buf generation runs clean; Go bindings compile
  • viamrobotics/app builds and its package, registry, and search tests pass against this branch

Generated by Claude Code

Adds PACKAGE_TYPE_FILE for registry items that hold arbitrary files to
deploy to machines, and FileMetadata on RegistryItem listing the item's
versions. File items are delivered to machines as archive packages, so
viam-server needs no change to deploy them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JLuWqbvwLMN6EZYfG1r6j8
@viambot viambot added the safe to test committer is a member of this org label Dec 2, 2026
Regenerated app/v1/app.pb.go from the merged proto to resolve the
conflict in generated code.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JLuWqbvwLMN6EZYfG1r6j8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test committer is a member of this org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants