Skip to content

Create an Actor and change a version's files over MCP (create-actor, update-actor-version) #1463

Description

@DaveHanns

The write tools of the Actor source tools spec (#1452) for inline sources. They replace the drafted push-actor.

create-actor creates a private Actor with its first version and files in one call. It never touches an existing Actor.

update-actor-version writes, edits, or deletes files of a version in one call. Files the call does not mention stay as they are.

  • write creates a file, or replaces one given its expectedHash.
  • edit replaces text in a UTF-8 file; each oldText must match exactly once.
  • delete removes a file given its expectedHash.
  • The operations apply to a fresh read of the version, all or nothing, and are saved with one PUT that carries only the files, never env vars or the build tag.
  • expectedRevision refuses the call when any file changed since the agent read the version.

Both tools can start a build (autoBuild) but never wait for it.

Acceptance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions