type Answer
import ezx@1.11.0.0/src/lock/up.bend as Upimport Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
import ezx@1.11.0.0/src/hub/hub.bend as Web
113# the answer to one question. Git's output is kept as it was printed, with
114# whether the command succeeded, so reading it is the planner's decision.
115type Answer is Data:
116 Printed{ok: Bool, text: String} # Refs, Head, Tags
117 Onward{yes: Bool} # Above
118 Checkout{nar: String, root: String, manifest: String, srcs: List<&2, String>} # Tree
119 Weighed{nar: String} # Weigh
120 HubSaid{got: Web.Got} # HubHas
121 Plain{text: String} # Ignore
122 Files{files: List<&2, Found>} # Sources
123 Cloned{nar: String, files: List<&2, K.Source>} # Clone
124 Miss{why: String} # any question IO could not answer