Create and migrate repo-defined Tessl schedules in a project's tessl.json. Turns a plain-language task and cadence into a validated schedules entry, optionally authors its repo-local skill, and moves an existing schedule made in Tessl into version control, keeping its Loop id and history. Needs a Tessl CLI whose tessl loop commands read the Loop API.
98%
Does it follow best practices?
Impact
99%
1.03x2 of 3 eval scenarios. Add 1 more for a full score.
Low
Low-risk findings worth noting
Tessl's move opens a pull request that adds a stored Loop to its project's
tessl.json. When it merges and Tessl syncs the default branch, the same Loop,
with the same id and runs, is defined by the file.
This skill needs a Tessl CLI whose tessl loop list and tessl loop view
read the Loop API and whose tessl loop pause and tessl loop delete are
native Loop commands. Before step 1, ask the user to upgrade the Tessl CLI
to the latest release if they have not recently; when a command this skill
uses is missing or rejects its flags, tell them to upgrade and stop.
Read finding the Loop before step 1, the move preview reference before showing a preview, and sandbox history before steps 2 and 6.
origin repository.tessl loop list --all --json, with --project-id <project id> when
the user names a project.status and pausedReason from the listing, and a
history baseline for each Loop the user wants checked, as the sandbox
history reference says. A missing baseline does not block the move.tessl api /experimental/loops/<loop id>/manifest-entries. It writes
nothing. A 409 means the Loop cannot move: give the user the message and
stop.repoKey and every warning, as the reference says.inputs, instructions and trigger overrides are
safe to commit. If they carry a credential or personal data, stop.renamed warning.Use either path; both open the same pull request.
{"renames": [...]} to a .json file outside the
repository, one {"block", "from", "to"} for each accepted renamed
warning (an empty list when there is none), then
tessl api --include -X POST /experimental/loops/<loop id>/move-to-repo --input <file>.
Read the status from the first line and the body after the headers.
data.id must be the Loop id you sent; when it is not, stop and tell the
user. data.attributes.repoKey is its key in the file and
data.attributes.pullRequestUrl the pull request.message says the file changed since the preview is
recoverable: preview again, show what changed and ask again. Any other
409, and a 404, ends the attempt: show the message and stop.Give the user the link, the receipt's warnings and the preview's adoption warnings, and check the pull request as the preview reference says.
The factory-setup skill owns the project-wide move; this skill sends no
project-wide request.
factory-setup skill the project resolves and read its
references/set-up-in-tessl.md, section "Move a Loop into tessl.json".
Record the reference's path, the plugin's version, the checkout's commit
and the file's sha256.tessl loop list, stop before any write and tell the user the bulk move
waits for a factory-setup that uses the Loop API.data.id is the project, and data.attributes.loops[]
holds exactly the agreed ids. Match each entry by id for its repoKey
and warnings, and check the pull request as the preview reference says.
When the receipt does not match, tell the user before they merge.factory-setup says to call again without a Loop,
preview it and agree that set with the user first.When a move reply is lost, do not send it again. Read
tessl loop view <loop id> --json: pendingMove names the pull request the
Loop waits on, if any.
For each moved Loop, single or project move, check
tessl loop view <original loop id> --json as
the adoption reference says, then repeat the history
read. Report identity, settings and history as separate results. An original
that still shows source.kind app keeps running with its stored
definition.
When the user wants a new entry rather than the move, write it with the
schedule-setup skill. A new entry is a different Loop with a new id, and the
original keeps running. Before the new Loop's first fire, ask the user to pause
the original (tessl loop pause <loop id>). Delete it
(tessl loop delete <loop id>) only when the user asks, after the new Loop
has run. Only a Loop made in Tessl can be deleted.