tilo-actions 0.5.1

The Tilo action model: resources, the actions on them, and their registry, with the plain resource vocabulary that needs no store.
Documentation
1
{"resources":[{"fields":[{"path":"id","readonly":true,"stored":"value","title":"What stopping, retrying and answering it name it by: the id of its newest call.","type":{"option":"text"}},{"path":"calls","readonly":true,"stored":"value","title":"Every call of it the host remembers, oldest first.","type":{"list":"text"}},{"path":"origin","readonly":true,"stored":"value","title":"The resource it runs for: what caused it.","type":{"option":{"named":"Origin"}}},{"path":"retries","readonly":true,"stored":"value","title":"The invocation this one runs again, when it is a retry.","type":{"option":"text"}},{"path":"spend","readonly":true,"stored":"value","title":"What the model calls it made cost.","type":{"option":{"named":"Spend"}}},{"path":"step","readonly":true,"stored":"value","title":"The undo step its changes are kept under.","type":{"option":"text"}},{"path":"by","readonly":true,"stored":"value","title":"Who ran it.","type":{"named":"By"}},{"path":"group","readonly":true,"stored":"value","title":"The work it is a step of: an agent's session, an issue, a task.","type":{"option":{"named":"Group"}}},{"path":"title","readonly":true,"stored":"value","title":"What its client called it.","type":{"option":"text"}},{"path":"status","readonly":true,"stored":"value","title":"How it stands.","type":{"named":"Status"}},{"path":"failure","readonly":true,"stored":"value","title":"Why it failed, typed (`confirmation_required`), never the failure's words.","type":{"option":"text"}},{"path":"started_ms","readonly":true,"stored":"value","title":"When it started, in milliseconds since the Unix epoch.","type":"int"},{"path":"ended_ms","readonly":true,"stored":"value","title":"When it ended.","type":{"option":"int"}},{"path":"action","readonly":true,"stored":"value","title":"What its last call asked for, `<app>#<action>`.","type":{"option":"text"}},{"path":"summary","readonly":true,"stored":"value","title":"What its newest change did, or the summary of the conversation it answered.","type":{"option":"text"}},{"path":"output","readonly":true,"stored":"value","title":"What the action answered when it ended well: a read's result, a record the caller then reads.","type":{"option":"json"}},{"path":"changes","readonly":true,"stored":"value","title":"How many changes it made to the workspace's records.","type":"int"},{"path":"undone","readonly":true,"stored":"value","title":"How many of its edits were taken back since.","type":"int"},{"path":"records","readonly":true,"stored":"value","title":"The records it changed.","type":{"list":{"named":"Change"}}},{"path":"undoable","readonly":true,"stored":"value","title":"Taking it back would take back exactly its own edits.","type":"bool"},{"path":"undo_blocked","readonly":true,"stored":"value","title":"Why it is not taken back, when someone's change stands on its own.","type":{"option":"text"}},{"path":"recorded","readonly":true,"stored":"value","title":"The records keep it.","type":"bool"},{"path":"remembered","readonly":true,"stored":"value","title":"The host remembers its calls.","type":"bool"},{"path":"person","readonly":true,"stored":"value","title":"The person it waits for, while it asks them.","type":{"option":"actor"}},{"path":"asked","readonly":true,"stored":"value","title":"What its person is asked while it waits for them.","type":{"option":{"named":"Asked"}}}],"kind":"invocation","label":"Invocation","types":[{"cases":[{"label":"Waiting","name":"waiting"},{"label":"Running","name":"running"},{"label":"Done","name":"ended"},{"label":"Failed","name":"failed"},{"label":"Stopped","name":"cancelled"},{"label":"Undone","name":"undone"}],"doc":"How an invocation stands.","name":"Status"},{"doc":"The resource a call was made from.","fields":[{"name":"kind","type":"text"},{"name":"id","type":"text"}],"name":"Origin"},{"doc":"What the model calls an invocation made cost.","fields":[{"name":"provider","type":{"option":"text"}},{"name":"model","type":{"option":"text"}},{"name":"input_tokens","type":"int"},{"name":"output_tokens","type":"int"},{"name":"cost_micros","title":"In millionths of the currency.","type":"int"}],"name":"Spend"},{"doc":"Who ran an invocation.","fields":[{"name":"name","type":"text"},{"name":"kind","title":"`agent`, `person`, `bot` or `automation`.","type":"text"},{"name":"id","title":"The member's own id inside that kind.","type":{"option":"text"}}],"name":"By"},{"doc":"A record an invocation changed.","fields":[{"name":"app","type":"text"},{"name":"app_id","type":"text"},{"name":"record","type":"text"}],"name":"Change"},{"doc":"What a person is asked while an invocation waits for them. They answer it with the invocation's `resolve`.","fields":[{"name":"record","type":{"named":"AskedRecord"}},{"name":"workspace","type":"text"},{"name":"workspaceName","type":"text"},{"name":"app","type":"text"},{"name":"action","type":"text"},{"name":"name","type":"text"},{"name":"askedAtMs","type":"int"},{"name":"pressed","type":{"option":{"named":"Pressed"}}},{"name":"offers","type":{"list":{"named":"Offer"}}},{"name":"by","type":{"named":"Asker"}},{"name":"words","type":"text"},{"name":"on","type":{"option":"text"}},{"name":"facts","type":{"list":{"named":"Fact"}}},{"name":"effects","type":{"list":{"named":"DeclaredEffect"}}},{"name":"destructive","type":"bool"},{"name":"choices","type":{"list":"text"}},{"name":"verb","type":"text"},{"name":"plural","type":{"option":"text"}},{"name":"conversation","type":{"option":"text"}},{"name":"takes","type":{"list":{"named":"Take"}}},{"name":"answeredBy","type":{"option":"text"}},{"name":"retry","type":{"option":"text"}},{"name":"files","type":{"option":{"named":"FilesAsked"}}},{"name":"many","type":"bool"},{"name":"kind","type":"text"},{"name":"effect","type":{"option":{"named":"Effect"}}},{"name":"form","type":{"list":{"named":"FormField"}}},{"name":"decline","type":{"option":"text"}},{"name":"picture","type":{"option":"text"}}],"name":"Asked"},{"doc":"Where a question is kept, and the device that holds what it runs.","fields":[{"name":"workspace","type":"text"},{"name":"record","type":"text"},{"name":"device","type":{"option":"text"}}],"name":"AskedRecord"},{"doc":"Where the call that asks was pressed.","fields":[{"name":"device","type":"text"},{"name":"app","type":"text"},{"name":"instance","type":"text"},{"name":"resource","type":"text"},{"name":"at","type":{"option":{"named":"PressPoint"}}}],"name":"Pressed"},{"doc":"Where in its window a press was, in its logical pixels from the top-left corner.","fields":[{"name":"x","type":"int"},{"name":"y","type":"int"}],"name":"PressPoint"},{"cases":[{"label":"Allow","name":"approve"},{"label":"Decline","name":"decline"},{"label":"Always allow","name":"approve_and_grant"}],"doc":"An answer a question offers.","name":"Offer"},{"doc":"Who asks: one of an agent, an app, a device or a program.","fields":[{"name":"agent","type":{"option":{"named":"Named"}}},{"name":"app","type":{"option":{"named":"AskingApp"}}},{"name":"device","type":{"option":{"named":"Named"}}},{"name":"program","type":{"option":{"named":"Program"}}}],"name":"Asker"},{"doc":"An agent or a device, by id and name.","fields":[{"name":"id","type":"text"},{"name":"name","type":"text"}],"name":"Named"},{"doc":"An app that asks.","fields":[{"name":"app","type":"text"},{"name":"title","type":"text"},{"name":"author","type":{"option":{"named":"Named"}}}],"name":"AskingApp"},{"doc":"A program that asks.","fields":[{"name":"name","type":"text"},{"name":"app_id","type":{"option":"text"}}],"name":"Program"},{"doc":"One fact the person is shown.","fields":[{"name":"label","type":"text"},{"name":"value","type":"text"}],"name":"Fact"},{"doc":"One record the asked action writes besides its own, as its declaration says it: the app by the name a person reads, and what the step does there in their words.","fields":[{"name":"app","type":"text"},{"name":"what","type":"text"},{"name":"appId","type":"text"},{"name":"kind","type":"text"},{"name":"verb","type":"text"}],"name":"DeclaredEffect"},{"doc":"One value the person types, by its label: what they type never reaches a record.","fields":[{"name":"label","type":"text"},{"name":"secret","type":"bool"},{"name":"shown","type":"bool"},{"name":"initial","type":{"option":"text"}},{"name":"chord","type":"bool"}],"name":"Take"},{"doc":"One of the call's arguments the person may change before approving it, by its path in the arguments, with its value as asked.","fields":[{"name":"path","type":{"list":"text"}},{"name":"label","type":"text"},{"name":"value","type":{"named":"FieldValue"}},{"name":"editable","type":"bool"},{"name":"multiline","type":"bool"},{"name":"shows","type":{"option":"text"}}],"name":"FormField"},{"doc":"A changeable argument's value as asked: the text of a text or a number, or whether a flag is on.","fields":[{"name":"text","type":{"option":"text"}},{"name":"on","type":{"option":"bool"}}],"name":"FieldValue"},{"doc":"The files the person picks.","fields":[{"name":"mode","type":{"named":"FilesMode"}},{"name":"many","type":"bool"},{"name":"types","type":{"list":{"named":"FileType"}}},{"name":"name","type":{"option":"text"}},{"name":"folder","type":{"option":"text"}}],"name":"FilesAsked"},{"cases":[{"label":"Open","name":"open"},{"label":"Save","name":"save"},{"label":"Folder","name":"folder"}],"doc":"How files are picked.","name":"FilesMode"},{"doc":"A kind of file a picker offers.","fields":[{"name":"label","type":"text"},{"name":"patterns","type":{"list":"text"}}],"name":"FileType"},{"cases":[{"label":"Reads","name":"read"},{"label":"Undoable","name":"undoable"},{"label":"Outside","name":"outside"}],"doc":"What the asked action does.","name":"Effect"},{"doc":"The work an invocation is a step of, as its caller named it.","fields":[{"name":"id","type":"text"},{"name":"label","title":"What the work is called, for people to read.","type":{"option":"text"}},{"name":"kind","title":"`agent-session`, `issue`, `task`, …","type":"text"},{"name":"declared_id","title":"The id the caller gave the work, when it named one.","type":{"option":"text"}},{"name":"session","title":"The session's own name, as the client's harness names it.","type":{"option":"text"}}],"name":"Group"}],"verbs":[],"version":0}]}