( ctx context.Context, scope toolspkg.Scope, req toolspkg.CallRequest, )
| 2960 | } |
| 2961 | |
| 2962 | func (n *daemonNativeTools) taskRunList( |
| 2963 | ctx context.Context, |
| 2964 | scope toolspkg.Scope, |
| 2965 | req toolspkg.CallRequest, |
| 2966 | ) (toolspkg.ToolResult, error) { |
| 2967 | var input taskRunListInput |
| 2968 | if err := decodeNativeInput(req, &input); err != nil { |
| 2969 | return toolspkg.ToolResult{}, err |
| 2970 | } |
| 2971 | actor, err := actorContextFromScope(scope) |
| 2972 | if err != nil { |
| 2973 | return toolspkg.ToolResult{}, err |
| 2974 | } |
| 2975 | runs, err := n.deps.Tasks.ListTaskRuns(ctx, input.TaskID, input.query(), actor) |
| 2976 | if err != nil { |
| 2977 | return toolspkg.ToolResult{}, err |
| 2978 | } |
| 2979 | return structuredResult(map[string]any{nativeToolsRunsKey: runs}, fmt.Sprintf("%d runs", len(runs))) |
| 2980 | } |
| 2981 | |
| 2982 | func (n *daemonNativeTools) taskPromoteFromThread( |
| 2983 | ctx context.Context, |
nothing calls this directly
no test coverage detected