The smallest rig
A rig that passes the check, and the folder in the project where a rig is kept.
The smallest rig
This passes pitafix rig check:
schema = 1
id = "orchard-web"
core = "nextjs"
[match]
contains = [{ glob = "package.json", text = '"name": "orchard-web"' }]
[[journeys]]
id = "home"
name = "Open the home page"
steps = [{ id = "open", open = "/" }]Four things are required. schema is 1, the only schema this build reads. id is the rig's plain
name. core is the id of the core that drives the app. [match] says which project the rig is for.
A rig with no [match] is offered for no project, so the check refuses it. A rig with no journey
passes the check, and its core then runs the walk it has of its own, which shows the app starting.
Check it:
pitafix rig check .pitafix/rig --project .orchard-web: no problem. 1 journeys, 0 states claimed, 0 said unreached.Where a rig lives
The source of a project's rig is a folder in the project, .pitafix/rig/, holding
pitafix-rig.toml and the files the manifest names: handlers and anything a step uploads. Commit it
with the project, so the people who open the project find it.
PitaFix never hands a core that folder. It offers the folder for install, and the person says yes
once to its exact files. The install copies them into PitaFix's data folder as rigs/<id>/, and
that copy is the rig a capture uses. The core is told the folder of the copy, never the project's.
The reason is the hosts. A rig lists every host its app may reach, and a rig read straight from the
project could change its own list, or its handler, after anyone had agreed to it. See
Install and trust.
Paths in a manifest (a handler, a file a step uploads) are relative to the rig's folder and may not leave it. A link that leads out of the folder makes the rig refuse to install.