CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

tessleng/schedule-management

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.

1.03x
Quality

98%

Does it follow best practices?

Impact

99%

1.03x

2 of 3 eval scenarios. Add 1 more for a full score.

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

sandbox-history.mdskills/schedule-migrate/references/

Checking a Loop's sandbox history

A move keeps the Loop's id, so its sandbox history stays with it. Show that by finding one launch from before the move in the Loop's history after it.

Baseline, before the move

  1. Read tessl api '/experimental/loops/<loop id>/sandbox-runs?sort=-id&page[size]=20'.
  2. Check that meta.loopId is the Loop's id and meta.workspaceId is the Loop's attributes.workspace.id from the listing.
  3. Save the newest launch id, data[0].id, with the two meta values and the API origin the CLI talked to.

An empty page, a failed read or a meta mismatch leaves no baseline. Tell the user that history will not be checked for that Loop, and go on with the move.

After sync

  1. Read the same first page for the same original Loop id, on the same origin.
  2. On every page, meta.loopId and meta.workspaceId must match the baseline.
  3. Look for the saved launch id. While it is not found and links.next is not null, read the next page: pass the link's path and whole query, from /experimental/ on, as one quoted argument to tessl api.
  4. Stop when the launch id is found or links.next is null.

A next link is followed only when it is on the baseline's origin, its path is /experimental/loops/<the same loop id>/sandbox-runs, and its query keeps sort=-id. Any other link, a failed page, a meta mismatch, a page[after] cursor already read, or a launch id seen on an earlier page ends the search incomplete. Report the outcome as one of:

  • preserved: the saved launch id is in the history after sync. The claim covers that launch only, not the rest of the history;
  • not found: the search covered every page and the launch is not there;
  • unverified: no baseline, or the search ended incomplete.

Report history separately from whether the Loop kept its id.

README.md

tile.json