feat(plugins): expose task dependencies in plugin and canvas data API (#3794)

Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com>
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
Henry
2026-09-18 22:55:51 +08:00
committed by GitHub
parent f92877b4be
commit 277677f330
38 changed files with 5545 additions and 656 deletions
@@ -119,9 +119,11 @@ func (s *Service) webAppHost(binding webapp.CapabilityBinding) *pluginHost {
taskWriter: s.taskWriter,
taskPRsDep: s.taskPRSourceDep,
writeDeps: s.writeDependencies,
log: s.log,
}
}
host.pluginID = binding.PluginID
host.instanceID = binding.InstanceID
host.capabilities = webAppCapabilities(binding.Permissions)
return host
}
@@ -338,6 +340,8 @@ func webAppProtocolStatus(err error) int {
return http.StatusConflict
case codes.Unimplemented:
return http.StatusNotImplemented
case codes.ResourceExhausted:
return http.StatusInternalServerError
default:
if errors.Is(err, context.DeadlineExceeded) {
return http.StatusGatewayTimeout