oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package thin
2
3import "amadan.net/oficina/equipo/internal/wire"
4
5// toolProjectOld: the instance cannot take a proposal for one project yet
6// (below wire.ProtocolDesign). For the model; people never read it.
7const toolProjectOld = "Equipo needs an update before it can add a specialist for one project. Tell the person that in one line."
8
9// designRefused answers propose_specialist for one project here on a link
10// below protocol 38: Encode refuses the call, so it is never sent to an
11// older instance, which would read it as the whole team's.
12func designRefused(call wire.ToolCall, protocol int) (wire.ToolResult, bool) {
13 if protocol == 0 || protocol >= wire.ProtocolDesign || !wire.ProjectProposal(&call) {
14 return wire.ToolResult{}, false
15 }
16 return wire.ToolResult{CallID: call.CallID, IsError: true, Code: "project_unsupported", Text: toolProjectOld}, true
17}
18