Files
mesh-catalog/modules/claude-code/cmd/claude-code/handacts.go
T

17 lines
633 B
Go

package main
import (
"git.novox.be/novox/mesh-contracts/health-and-repair/go/clients/meshhandactsclient"
stdio "git.novox.be/novox/mesh-sdk/go"
"git.novox.be/novox/mesh-sdk/go/views"
)
// handActs records the hand acts of the views reader through the seat mesh-hand-acts's client. An act the seat does not
// take is an error, and the reader then does nothing (the views package's rule).
type handActs struct{}
func (handActs) RecordHandAct(a views.HandAct) error {
_, err := meshhandactsclient.Recorder{Ask: stdio.Ask}.Record(meshhandactsclient.Request{What: a.What, Why: a.Why, Cause: a.Cause, Verb: a.Verb})
return err
}