package plan3test import ( "amadan.net/oficina/equipo/internal/equipo" "amadan.net/oficina/equipo/internal/runnerproto" "amadan.net/rastrillo/rastrillo/mail" "encoding/json" "io" "log/slog" "testing" ) func notificationToolCall(id string, body json.RawMessage) runnerproto.CoordinatorToolCall { return runnerproto.CoordinatorToolCall{RequestID: id, Name: "ask_person", Arguments: body} } func notificationRouter(t *testing.T, f *fixture, s *equipo.Store) { t.Helper() logger := slog.New(slog.NewTextHandler(io.Discard, nil)) h, err := equipo.RouterWithStore(f.DB, equipo.Config{Origin: origin, InstanceKey: "plan3-fixture", AllowLoggedMail: true, Owners: []string{owner.Address}}, mail.Logged(logger), logger, s) must(t, err) f.Store = s f.Handler = equipo.Mux(h) } func notificationPlanWait(t *testing.T, f *fixture, id string) { t.Helper() f.exec(t, "UPDATE tasks SET wait_code='plan.awaiting_approval' WHERE id=?", id) }