osmates trajectory capture
Write one recording as a trajectory entry, with its task and outcome.
osmates trajectory capture [<options>] <recording> --task <task> --outcome <outcome>For a session you recorded yourself: a recording of a machine set to osmates vm set <machine> --record trajectory has every input and a tree after each step; one of another level gives an entry without events. --to names a new or empty folder, ./<recording> by default. Needs OSMates Pro.
Arguments
<recording>RequiredThe recording, such as rec-0123456789ab.
--task <task>RequiredWhat the agent was asked to do.
--task-id <task-id>A name for the task in the entry.
Default:
task--outcome <outcome>RequiredHow the task went.
One of
passed,failed,error,cancelled.--to <folder>The folder to write.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/trajectory/capture.json
agentobjectagent.commandarray of stringsRequiredagent.elapsedintegerRequiredagent.errorsstringRequiredagent.exitCodeintegeragent.outputstringRequiredagent.signalintegeragent.timedOutbooleanRequiredendedstringeventCountintegerRequiredeventsstringRequiredfilesarray of objectsRequiredfiles[].bytesintegerRequiredAt least 0.
files[].pathstringRequiredfiles[].sha256stringRequiredidstringRequiredmachineobjectmachine.egressstringOne of
open,allowlist,blocked.machine.enginestringRequiredOne of
virtualization,hypervisor.machine.heightintegermachine.idstring (uuid)Requiredmachine.namestringRequiredmachine.settingstringRequiredOne of
off,on,video,trajectory.machine.systemstringRequiredOne of
linux,macOS,windows,freeBSD.machine.widthintegeroutcomeobjectRequiredoutcome.detailstringoutcome.exitCodeintegeroutcome.judgestringOne of
check,agent.outcome.resultstringRequiredOne of
passed,failed,error,cancelled.outcome.scorenumberoutcome.signalintegeroutcome.timedOutbooleanproblemsarray of stringsRequiredrecordingstringschemaVersionstringRequiredsessionstringstartedstringstepsintegerRequiredtaskobjectRequiredtask.idstringRequiredtask.instructionstringRequiredtask.machinestringtrajectorystringRequiredtrajectoryVersionstringRequiredvideosarray of objectsRequiredvideos[].beganstringvideos[].durationintegervideos[].filestringRequiredvideos[].framesintegervideos[].heightintegervideos[].widthinteger
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |