mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-19 14:00:52 +01:00
A check round in which every check worked is kept, and the next check reuses its results while nothing it looked at has changed: the app's files, the reference and capture files, the kind, stack and mode, the plugin checks and the project's folder. So a prompt that changes nothing in app/ no longer builds and starts the app again, and the check after the builder's turn doesn't repeat its own check. The feed says when results stand. A round with any failure is never kept, so Try again always looks again; the kept round is saved in the build progress.
66 lines
1.7 KiB
JSON
66 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "BuildProgress",
|
|
"description": "The app as the builder last left it, and turns since it last changed. Only the rebuild run\nwrites this record. An older project without one has no counted turns.",
|
|
"type": "object",
|
|
"properties": {
|
|
"checked": {
|
|
"description": "The last check round in which every check worked, and what it looked at; while that\nstays the same, the round's results stand instead of building and starting the app again.",
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/$defs/CheckedBuild"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"fingerprint": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"default": null
|
|
},
|
|
"unchanged_turns": {
|
|
"type": "integer",
|
|
"format": "uint32",
|
|
"default": 0,
|
|
"minimum": 0
|
|
},
|
|
"version": {
|
|
"type": "integer",
|
|
"format": "uint32",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"version"
|
|
],
|
|
"$defs": {
|
|
"CheckedBuild": {
|
|
"description": "A check round kept with the state it judged.",
|
|
"type": "object",
|
|
"properties": {
|
|
"key": {
|
|
"description": "A digest of what the round's checks look at, taken after they ran.",
|
|
"type": "string"
|
|
},
|
|
"round": {
|
|
"description": "The round in `craft.json`'s `checks` whose results stand.",
|
|
"type": "integer",
|
|
"format": "uint32",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"key",
|
|
"round"
|
|
]
|
|
}
|
|
}
|
|
}
|