Skip to content

Authoring surface: Effects ​

This page is one group of the names that @jr2/orchestrator exports from its root, on the Authoring surface page. It gives each name its kind and the first sentence of its TSDoc. Each name has a page of its own, in this folder.

Work a Machine does outside itself, as an actor slot (ADR-0067, ADR-0068, ADR-0071, ADR-0079), and what an author writes between a pick and that work.

  • arg (constant): Mark one argv entry of a command that the input of the Effect fills.
  • CommandOutput (type): The output of a command Effect: what the onDone of its state gets as event.output.
  • LaterOutcome (type): A value of outcome that this kit does not give.
  • command (function): Make a command Effect: an actor slot that runs one program in the Workspace's Sandbox when a state invokes it.
  • basic (function): Make the auth of an http Effect that sends Authorization: Basic <value>, where the value is the base64 of user:password.
  • bearer (function): Make the auth of an http Effect that sends Authorization: Bearer <value>, with the value of an Effect secret.
  • file (function): Make a Worktree file the body of an http Effect: body: file("dist/report.pdf").
  • http (function): Make an http Effect: a call to a URL, with Effect secrets that the Agent never reads.
  • secret (function): Name an Effect secret: secret("jira").
  • text (function): Make a string from literal text and Effect secrets, as a tagged template: text`Token ${secret("x")}`.
  • HttpOutput (type): The output of an http Effect: what the onDone of its state gets as event.output.
  • push (function): Make a push Effect: it pushes the branch of a Worktree to the Binding of its Repo Slot.
  • PushOutput (type): The output of a push Effect: what the onDone of its state gets as event.output.
  • branchName (constant): A kit schema for a pick param that names a branch.
  • isReady (constant): Is it ready?
  • readyOf (function): The ready output of an onDone arm that isReady guards.
  • worktree (function): Make a worktree Effect: it cuts a Worktree of a Repo Slot, or reads the one that is there.
  • handoff (constant): The schema of a Handoff, for a door's input or a pick's param: z.object({ handoff }).
  • Handoff (type): A Handoff: the commit of a ready cut of an enclosing Workspace, which a nested Workspace takes at its own cut (ADR-0080).
  • AnyFramePath (type): A Turn's Frame: a Worktree, or /work, stated.
  • AnyWorktreePath (type): A Worktree of any Repo Slot: what a kit factory states, before jr2Setup narrows it to the slots of the body.
  • FramePath (type): A Turn's Frame in a Workspace with the Repo Slots S.
  • WorktreeFound (type): What a cut found.
  • WorktreeInput (type): The input of a worktree(): a branch Worktree, a detached one, or a branch Worktree at a Handoff.
  • WorktreeOptions (type): The options of worktree().
  • WorktreeOutput (type): The output of a worktree().
  • WorktreePath (type): A Worktree of the Repo Slots S.
  • WorktreeReady (type)
  • WorktreeRefused (type): No Worktree, and nothing changed.
  • dispatch (function): Make a dispatch Effect: it starts a run of a Workflow.
  • DispatchOutput (type): The output of a dispatch Effect.
  • mcp (constant): The mcp Effects (ADR-0067, ADR-0079): mcp.call(server, tool, { input }) calls a tool, mcp.read(server, uri) reads a resource, and mcp.prompt(server, name, { input }) gets a prompt.
  • McpOptions (type): The options of an mcp Effect.
  • McpCallOutput (type): The output of an mcp.call Effect: what the onDone of its state gets as event.output.
  • McpOutput (type): The output of any mcp Effect: a call's, a read's or a prompt's.
  • McpReadOutput (type): The output of an mcp.read or an mcp.prompt Effect.
  • answer (function): Set what the Agent reads when jr2 answers its pick.
  • fromPick (function): Make the input of the invoke of a state that a pick enters: the params of the pick go to the input of the invoked actor by name.
  • paramsOf (function): Read the params of a pick from the event that entered the state.

The docs of Kit version 0.8.0. Each page is also at its .md URL.