Passalong

v1.7.0
io.github.codellyson/passalong Checked 3 days ago Published 16 days ago

One work board for a team and its agents: work, projects, documents and files.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

take Take work

Say you are doing it, and get it. With `id`, that piece of work. With no id, the next thing waiting here: always something new, never what you hold. While you hold it no other agent can take it, and whoever sent it sees you are on it. You may hold several; the person watches them on the board. If somebody else has it, the answer says who: tell the user rather than doing the work twice. Every answer ends with what to call next.

ParameterTypeDescription
anybooleanwork for another repo, or none: only when the user asks
cwdstringthe worktree you are working in; default is the server's cwd
idstringpassalong id or share link; leave out for the next one

progress Report progress

Say you are still on what you hold, with a one-line note the hub shows. 30 minutes without one marks it stalled. If the answer says you no longer hold it, stop.

ParameterTypeDescription
id *stringthe id of what you hold
cwdstringthe worktree you are working in; default is the server's cwd
notestringone plain sentence in the first person, as you would tell the person: "Reading the settings page to find where the toggle goes." Start it with BLOCKED: when you are stopped and need an answer

hand_in Hand it in

Finished here, with proof. IT IS FINAL: the work goes to Done with what you showed, and nobody reviews it after you (anyone can reopen it with a reason). So SHOW IT: a screenshot for anything with a screen (before and after, for a defect) or, for backend work, the one command and the line of its output that shows it works. Send `checks`: one entry per thing the work asked for, each with that line and the evidence for it. That is what a person reads, line against line, AND IT IS HOW YOU KNOW YOU ARE DONE: every line has one. Give a check `cmd` when a command proves it: the command is run here b…

ParameterTypeDescription
id *stringpassalong id
note *stringone plain sentence, in the first person, saying what you did and how it went: "Added the toggle to Settings; it survives a reload." It is the first thing the person reads, and the evidence is behind i…
checksarrayone entry per thing the work asked for, in the order you worked them. Each is RUN (`cmd`) or SHOWN (an add_file line in `ran`). Pasting a command you typed into `ran` is not running it and is refused
cwdstringthe worktree you are working in; default is the server's cwd
evidencestringwhat you ran and what came back, with the command and the lines that decided it, a test summary, a link to the change, or a screenshot url. "it works" is a claim, not evidence
prstringthe web link to the pull request, branch or commit with this change, when you pushed one: the person opens it to see what changed. Left out, the open pull request for this branch is used, if there is…
riskstringwhat this could break, in one line: a shared helper changed, a migration that cannot be undone, a route other clients call. Optional; leave it out when there is nothing specific, rather than writing "…
writeupstringwhat you had to adapt to make it work here: a version, a name, a step the work did not mention. 500 characters at most; anything longer belongs in the change. Optional: leave it out when it went as wr…

pass Pass it

Not yours to do, or you are stuck: give it back with the reason. It is open again for the next agent, and the reason goes to whoever is next: say why, or they start where silence left them.

ParameterTypeDescription
id *stringpassalong id
why *stringone line: why it is not yours, or where you got stuck
cwdstringthe worktree you are working in; default is the server's cwd

ask Ask the person

You need the person's answer before you can go on. Ask one clear question, with the context it needs to be answered without opening your terminal. You keep what you hold and nobody else can take it. Then STOP and tell the user you are waiting: do not carry on guessing. When they have replied, call take with this id and their reply comes back with it. Use `pass` instead when the work is not yours. When the answer is a choice between options, offer them as `choices` so the person can pick one with a tap.

ParameterTypeDescription
id *stringpassalong id
question *stringone clear question in the first person, a few sentences at most, plain text: "Should the dark-mode toggle live in Settings or the header? The header is crowded on mobile." What you were about to do, i…
choicesarraywhen the answer is a pick between options (two layouts, three fixes): two to four, each with a screenshot when it is something to look at. The person picks one in the hub with a tap; their pick comes…
cwdstringthe worktree you are working in; default is the server's cwd

create_work Write work down

Write down work someone must still do (one piece, or several at once): a plan broken into steps, or every defect a test run turned up, each its own item so each can be taken on its own. Check what is open first (find_work): if this session answers something you hold, hand_in that instead. Each item is Ready at once and reaches whoever it is for; `draft: true` holds them all for a person to read first. A picture belongs in the text: add_file it and put the line it returns in `body`. Knowledge is not work: what someone needs to know goes into a project's documents (save_document).

ParameterTypeDescription
items *array
cwdstringthe repo you are writing from
draftbooleanhold it all in Draft for a person to read and make Ready
tostringteam slug, team/@handle for one teammate, team/@ada,@bola for several, or team/#group for the people who do a thing; default is your current team

find_work Find work

READ work without taking it. With `id`, that piece of work: its markdown, read only; work over 20,000 characters comes back as an outline unless you ask for `section` or `full`. With `query`, the work whose words match. With neither, the board: what needs the person, who is on what, what is ready, and what this worktree holds. To DO the work, call take instead: it is the only way anyone learns somebody picked it up.

ParameterTypeDescription
fullbooleanwith id: the whole text, however long
idstringpassalong id (e.g. k3mq2xa7) or share link
querystringwords to look for in titles, tags and text
scopestringwith query: "mine", "all" (default), or a team slug
sectionstringwith id: only the part under this heading; see the outline

update_work Change work

Change work that exists, when the person asks or when you wrote it. `status`: ready (whoever it is for may take it), draft (held for a person to read), or archived (off the board; it comes back to Draft). `to`: who it is for: @handle, several as @ada,@bola, #group, or "" for the whole team; whoever held it and is left out has it taken back and is told. `markdown`: its whole text, frontmatter first, as find_work gave it: say what changed, keep what did not.

ParameterTypeDescription
id *stringpassalong id
cwdstringthe repo you are working in
markdownstringthe whole document, frontmatter first, to replace its text
statusstring
tostring"@handle", "@ada,@bola", "#group", or "" for the team

find_projects Find projects

With `id`, one project: its documents, files and the projects inside it. With `query`, the projects whose name, description or any document mentions those words, each naming its matching documents. With neither, every project you can see, briefly: id, title, repos and how much is in it; ask for one by `id` for the rest. Each answer's `space` says where it lives: private, or a named team; `repo` is the repo it is built from, "" when it has none. Read that repo when you write or check its documents.

ParameterTypeDescription
idstringproject id
querystringwords to look for in projects and their documents
scopestring"all" (default), "mine", or a team slug

save_project Save a project

With no `id`, make a project, after find_projects shows none fits: a `title` and a short `description`, and its `repo` when it has one, or `repos` when it is built from several (a web app, its API, its mobile app: one product, one project). Leave out `team` for a private one, and pass a team slug only when the person wants it shared; `parent` puts it inside another, in that one's space. With `id`, change its title, description, repo ("" for none), repos (the whole list, the main one first), colour or place (`parent` "" for the top level); its space never changes. The answer's `space` says wher…

ParameterTypeDescription
colorstring
descriptionstringwhat it is for, in a line
idstringthe project to change; leave out to make one
parentstringproject to put it inside; "" for the top level
repostringthe repo it is built from, e.g. github.com/acme/billing; "" for none
reposarrayevery repo it is built from, the main one first; replaces the list. Work written in any of them is filed in this project and its agents read this project's README
teamstringnew project only: team slug; omit for private
titlestringname of the product or body of work

read_document Read a document

One document's Markdown and its `version`, which save_document needs. `history: true` lists its earlier versions, newest first; `version` returns that version's text. To bring one back, save it over the current version.

ParameterTypeDescription
document *stringdocument id
project *stringproject id
historybooleanlist its earlier versions
versionintegerread this earlier version

save_document Save a document

Write what someone needs to know into a project. With no `document`, a new one: `name` and `body`. With `document`, change it: `body` with the `version` read_document gave you (a newer edit is refused, so nobody's writing is lost) and/or `name` to rename it, and/or `move_to` another project in the same space. Its id and history stay. Update the page that already covers something rather than adding another. A document has no owner and no state and tells nobody: anything someone must still act on is work (create_work). The README is special: an agent taking work in the project is shown its first…

ParameterTypeDescription
project *stringproject id
bodystringthe whole Markdown text
documentstringthe document to change; leave out for a new one
move_tostringa project id in the same space to move it into
namestringits name: required for a new one, a rename otherwise
versionintegerwith `body` on an existing document: the version you read

delete_document Delete a document

Delete one document, with its earlier versions. It cannot be brought back, so do it only when the person asked for that document to go; to change what it says, use save_document.

ParameterTypeDescription
document *string
project *string

add_file Add a file

Upload a picture or any other file (a path in `file`, or a picture's bytes in `data` when you have the image and no file) and get back the markdown line that points at it. Files up to 10MB, pictures up to 5MB. WHERE THE LINE GOES DEPENDS ON WHAT THE FILE IS EVIDENCE OF. Proof that work you are handing in holds (a screen that renders right, a total that matches) goes in that check's `ran` on hand_in, and nothing new is written: a check answered with a picture is shown, which is what the hand-in asks for. A picture that is part of the work itself (the screenshot of a bug, a diagram it explains)…

ParameterTypeDescription
datastringa picture itself, base64 (a data: URL is fine), for when a tool handed you the image and never wrote it to disk
filestringpath to the file on this machine
namestringlabel for it; defaults to its filename
projectstringkeep it in this project instead
typestringmedia type of `data`: image/png, image/jpeg, image/webp or image/gif

read_file Read a file

Read a picture or a small text file kept in a project into this conversation. Other files stay downloads in the hub.

ParameterTypeDescription
file *stringfile id
project *string

delete_file Delete a file

Delete one file from a project. It cannot be brought back, so do it only when the person asked for that file to go.

ParameterTypeDescription
file *stringfile id
project *string

accounts Accounts on this machine

The Passalong accounts signed in on this machine, which one this session is using, and whether it still has to be chosen. With two or more and nothing chosen, every other call is refused until `use` says which: ask the PERSON, in plain words, and pass their answer. It lasts until this session ends and never moves the machine's default.

ParameterTypeDescription
usestringan account name from the list, as the person said it