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 acommandthat the input of the Effect fills.CommandOutput(type): The output of acommandEffect: what theonDoneof its state gets asevent.output.LaterOutcome(type): A value ofoutcomethat this kit does not give.command(function): Make acommandEffect: an actor slot that runs one program in the Workspace's Sandbox when a state invokes it.basic(function): Make theauthof anhttpEffect that sendsAuthorization: Basic <value>, where the value is the base64 ofuser:password.bearer(function): Make theauthof anhttpEffect that sendsAuthorization: Bearer <value>, with the value of an Effect secret.file(function): Make a Worktree file the body of anhttpEffect:body: file("dist/report.pdf").http(function): Make anhttpEffect: 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 anhttpEffect: what theonDoneof its state gets asevent.output.push(function): Make apushEffect: it pushes the branch of a Worktree to the Binding of its Repo Slot.PushOutput(type): The output of apushEffect: what theonDoneof its state gets asevent.output.branchName(constant): A kit schema for a pick param that names a branch.isReady(constant): Is itready?readyOf(function): Thereadyoutput of anonDonearm thatisReadyguards.worktree(function): Make aworktreeEffect: it cuts a Worktree of a Repo Slot, or reads the one that is there.handoff(constant): The schema of aHandoff, for a door's input or a pick's param:z.object({ handoff }).Handoff(type): A Handoff: the commit of areadycut 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, beforejr2Setupnarrows it to the slots of the body.FramePath(type): A Turn's Frame in a Workspace with the Repo SlotsS.WorktreeFound(type): What a cut found.WorktreeInput(type): The input of aworktree(): a branch Worktree, a detached one, or a branch Worktree at aHandoff.WorktreeOptions(type): The options ofworktree().WorktreeOutput(type): The output of aworktree().WorktreePath(type): A Worktree of the Repo SlotsS.WorktreeReady(type)WorktreeRefused(type): No Worktree, and nothing changed.dispatch(function): Make adispatchEffect: it starts a run of a Workflow.DispatchOutput(type): The output of adispatchEffect.mcp(constant): ThemcpEffects (ADR-0067, ADR-0079):mcp.call(server, tool, { input })calls a tool,mcp.read(server, uri)reads a resource, andmcp.prompt(server, name, { input })gets a prompt.McpOptions(type): The options of anmcpEffect.McpCallOutput(type): The output of anmcp.callEffect: what theonDoneof its state gets asevent.output.McpOutput(type): The output of anymcpEffect: a call's, a read's or a prompt's.McpReadOutput(type): The output of anmcp.reador anmcp.promptEffect.answer(function): Set what the Agent reads when jr2 answers its pick.fromPick(function): Make theinputof 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.