feat: provider manager, cancellation, session summaries (store+agent)

This commit is contained in:
OpenClaw Dev 2026-10-25 04:46:40 +01:00
parent 406a523d54
commit f1b2093b22
10 changed files with 883 additions and 37 deletions

View file

@ -107,14 +107,14 @@ func (s *Shell) Parse(line string) ([]step, error) {
}
}
var (
steps []step
cur []string // current command tokens
pipe [][]string
tok strings.Builder
inTok bool
quote rune
nextOp = ""
runes = []rune(line)
steps []step
cur []string // current command tokens
pipe [][]string
tok strings.Builder
inTok bool
quote rune
nextOp = ""
runes = []rune(line)
)
flushTok := func() {
if inTok {
@ -258,7 +258,9 @@ func (s *Shell) env() []string {
}
func (s *Shell) Call(ctx context.Context, raw json.RawMessage) (string, error) {
var a struct{ Command string `json:"command"` }
var a struct {
Command string `json:"command"`
}
if err := json.Unmarshal(raw, &a); err != nil {
return "", err
}