feat: provider manager, cancellation, session summaries (store+agent)
This commit is contained in:
parent
406a523d54
commit
f1b2093b22
10 changed files with 883 additions and 37 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue