OrmaosDocs

Reference

JSON output

The JSON documents that ormaos prints with --json, one JSON Schema per kind, inferred from the real documents of the example programs.

View as Markdown

Every reading verb and guide print one JSON document on stdout with --json, also for errors. ormaos run --json-out FILE writes the overview to a file. Every document has kind, version, next and next_commands; every document about a recording has program_data. See --json for agents.

The schemas below are inferred from every --json document that scripts/generate.py printed on the example programs: a field is always present when every document of that kind had it. They describe the version these docs pin; the format is provisional.

KindPrinted by
showormaos show, ormaos run --json-out
treeormaos tree
exceptions, exceptionormaos exceptions (a list, one)
io, io_eventormaos io (groups, one event)
logs, log_recordormaos logs (groups, one record)
paths, pathormaos path (the functions with lines, the steps of one call)
difformaos diff
listormaos list
statusormaos status
guide, agents_mdormaos guide, ormaos guide --agents-md
errorany verb, when it exits with 1 or 2

show#

FieldTypePresent

tree#

FieldTypePresent

exceptions#

FieldTypePresent
addressstringalways
exceptionsarrayalways
kindstringalways
limitintegeralways
nextarrayalways
next_commandsarrayalways
not_shownintegeralways
offsetintegeralways
program_dataobjectalways
recordingstringalways
scopenullalways
swallowedintegeralways
taken_by_interpreterobjectalways
totalintegeralways
uncaughtintegeralways
versionintegeralways

exception#

FieldTypePresent

io#

FieldTypePresent

io_event#

FieldTypePresent

logs#

FieldTypePresent
addressstringalways
by_levelobjectalways
droppedintegeralways
groupsarrayalways
kindstringalways
level_filternullalways
limitintegeralways
nextarrayalways
next_commandsarrayalways
not_shownintegeralways
offsetintegeralways
only_droppedbooleanalways
program_dataobjectalways
recordingstringalways
scopenull or objectalways
totalintegeralways
versionintegeralways

log_record#

FieldTypePresent
addressstringalways
argumentsintegeralways
atobjectalways
callobjectalways
countintegeralways
droppedbooleanalways
insidearrayalways
kindstringalways
levelstringalways
level_numberintegeralways
loggerstringalways
nextarrayalways
next_commandsarrayalways
processintegeralways
program_dataobjectalways
recordingstringalways
t_snumberalways
templatestringalways
threadintegeralways
versionintegeralways

paths#

FieldTypePresent
addressstringalways
functionsarrayalways
kindstringalways
limitintegeralways
nextarrayalways
next_commandsarrayalways
not_shownintegeralways
offsetintegeralways
path_scopearrayalways
program_dataobjectalways
recordingstringalways
totalintegeralways
versionintegeralways

path#

FieldTypePresent
addressstringalways
callobjectalways
cut_by_limit_when_recordingbooleanalways
kindstringalways
limitintegeralways
nextarrayalways
next_commandsarrayalways
not_shown_afterintegeralways
not_shown_beforeintegeralways
offsetintegeralways
program_dataobjectalways
recordingstringalways
sourceobjectalways
stepsarrayalways
totalintegeralways
versionintegeralways

diff#

FieldTypePresent
aobjectalways
bobjectalways
callsobjectalways
codeobjectalways
contextarrayalways
dataobjectalways
exceptionsobjectalways
ioobjectalways
kindstringalways
limitintegeralways
logsobjectalways
matched_bystringalways
nextarrayalways
next_commandsarrayalways
not_collectedobjectalways
not_comparedarrayalways
program_dataobjectalways
versionintegeralways

list#

FieldTypePresent
kindstringalways
limitintegeralways
nextarrayalways
next_commandsarrayalways
not_shownintegeralways
offsetintegeralways
program_dataobjectalways
recordingsarrayalways
rootstringalways
totalintegeralways
unreadablearrayalways
versionintegeralways

status#

FieldTypePresent
can_recordbooleanalways
executablestringalways
incompletearrayalways
kindstringalways
lastobjectalways
limitsobjectalways
looked_atintegeralways
nextarrayalways
next_commandsarrayalways
ormaosstringalways
program_dataobjectalways
pythonstringalways
recording_nownullalways
recordingsintegeralways
rootstringalways
runningarrayalways
spaceobjectalways
starts_in_child_processesbooleanalways
unreadablearrayalways
versionintegeralways

guide#

FieldTypePresent
kindstringalways
nextarrayalways
next_commandsarrayalways
textstringalways
this_pythonobjectalways
versionintegeralways

agents_md#

FieldTypePresent
changedbooleanalways
diffstringalways
filenullalways
kindstringalways
nextarrayalways
next_commandsarrayalways
snippetstringalways
versionintegeralways

error#

FieldTypePresent
errorstringalways
kindstringalways
nextarrayalways
next_commandsarrayalways
program_dataobjectalways
versionintegeralways