Select the types of activity you want to include in your feed.
ocaml-rego: output-arg form covers nullary builtins
Allow the output-arg call form when the number of arguments is at least 1 (was 2). Without this, [time.now_ns(out)] never reached output-arg dispatch and the rule body silently failed.
···21382138 |> List.concat_map (fun (vargs, b) ->
21392139 match try_call vargs with
21402140 | Some v -> [ (v, b) ]
21412141- | None when n >= 2 ->
21412141+ | None when n >= 1 ->
21422142 (* Output-arg form: [f(a1, ..., out)] is equivalent to
21432143 [out = f(a1, ...)]. Supports OPA's convention that any
21442144 builtin or user function may take an extra trailing arg
21452145- that unifies with the result. *)
21452145+ that unifies with the result, including the [n=1] case
21462146+ for nullary builtins like [time.now_ns]. *)
21462147 let init_args = List.filteri (fun i _ -> i < n - 1) args in
21472148 let last_expr = List.nth args (n - 1) in
21482149 let last_v = List.nth vargs (n - 1) in