package daemon import ( "context" "encoding/json" "io" "net/http" "albedo/cli/internal/daemon/protocol" ) func (c *ChatClient) SessionInfo(ctx context.Context) (Session, error) { return GetSession(ctx, c.conn, c.agentID) } func (c *ChatClient) SessionCommands(ctx context.Context) ([]SessionCommand, error) { return ListSessionCommands(ctx, c.conn, c.agentID) } func (c *ChatClient) ACPPlan(ctx context.Context) (protocol.ACPPlan, error) { var plan protocol.ACPPlan err := executeRead(ctx, c.conn, operation{Name: "read ACP plan", BuildRequest: func(base string, _ io.Reader) (*http.Request, error) { return protocol.NewGetACPPlanRequest(base, c.agentID) }, Policy: readRecovery}, func(data []byte) error { if err := json.Unmarshal(data, &plan); err != nil { return err } if plan.Items == nil || len(plan.Items) > 100 { return fieldError("ACP plan items") } return nil }) return plan, err }