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
The write tools of the Actor source tools spec (#1452) for inline sources. They replace the drafted
push-actor.create-actorcreates a private Actor with its first version and files in one call. It never touches an existing Actor.update-actor-versionwrites, edits, or deletes files of a version in one call. Files the call does not mention stay as they are.writecreates a file, or replaces one given itsexpectedHash.editreplaces text in a UTF-8 file; eacholdTextmust match exactly once.deleteremoves a file given itsexpectedHash.expectedRevisionrefuses 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
create-actorandupdate-actor-versionin thesourcecategory (feat: Add create-actor and update-actor-version tools #1453)