Operazioni sulla cronologia
2 operazioni di nome history.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.
| Operation | What it does | Permission | Confirmation |
|---|---|---|---|
| history.read | Read the authoritative outcome of a committed request after rechecking its original permissions. | site.read | none |
| history.undo | Reverse a committed batch after checking its documents and original permissions. | history.operation | none |
history.read
Read the authoritative outcome of a committed request after rechecking its original permissions.
Esempio di input
{
"requestId": "0b7c6d5e-4f3a-4b2c-8d1e-9f0a1b2c3d4e"
}Input
| Field | Type | Required | Notes |
|---|---|---|---|
| requestId | string (uuid) | yes |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
| requestId | string (uuid) | yes | |
| revision | integer | yes | At least 0. |
| dryRun | boolean | yes | |
| changed | boolean | yes | |
| revisions | record of integer | yes | |
| results | array of object | yes | |
| results[].name | string | yes | |
| results[].ref | string | no | |
| results[].output | any JSON | yes | |
| inverse | array of object | yes | |
| inverse[].name | string | yes | |
| inverse[].input | any JSON | yes | |
| inverse[].ref | string | no | |
| findings | array of object | yes | |
| findings[].ruleId | string | yes | |
| findings[].severity | string | yes | One of "error", "warning", "info". |
| findings[].message | string | yes | |
| findings[].nodeId | string | no | |
| findings[].document | string | no | |
| findings[].fix | object | no |
I campi più annidati sono nello schema di output che risponde discover_operations con outputSchemas: true.
Provala
yarn splash history.read '{"requestId":"0b7c6d5e-4f3a-4b2c-8d1e-9f0a1b2c3d4e"}' --dry-runhistory.undo
Reverse a committed batch after checking its documents and original permissions.
Esempio di input
{
"requestId": "0b7c6d5e-4f3a-4b2c-8d1e-9f0a1b2c3d4e"
}Input
| Field | Type | Required | Notes |
|---|---|---|---|
| requestId | string (uuid) | yes |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
| restored | string (uuid) | yes |
Provala
yarn splash history.undo '{"requestId":"0b7c6d5e-4f3a-4b2c-8d1e-9f0a1b2c3d4e"}' --dry-runGenerato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente 5114f25cb6f9b98c).
Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.