feat: backend native executor implement

This commit is contained in:
2026-08-16 01:27:30 +08:00
parent fbce91d797
commit 390e0565d3
44 changed files with 6430 additions and 31 deletions
+20
View File
@@ -0,0 +1,20 @@
package backendupdate
import "yms-daemon/internal/transaction"
// Progress is one live update event sent to the local CLI. It is observational
// only: delivery failure must not change the persisted update transaction.
type Progress struct {
TransactionID string
State transaction.State
Message string
}
type ProgressReporter func(Progress)
func operationLabel(inputType string) string {
if inputType == inputTypeCurrentRelease {
return "restart"
}
return "update"
}