@nbardy/oompa 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
[harness model]
|
|
141
141
|
(try
|
|
142
142
|
(let [cmd (case harness
|
|
143
|
-
:claude ["claude" "--model" model "-p" "say ok"]
|
|
143
|
+
:claude ["claude" "--model" model "-p" "say ok" "--max-turns" "1"]
|
|
144
144
|
:codex ["codex" "exec" "--dangerously-bypass-approvals-and-sandbox" "--skip-git-repo-check" "--model" model "--" "say ok"])
|
|
145
145
|
result (process/sh cmd {:out :string :err :string :timeout 30000})]
|
|
146
146
|
(zero? (:exit result)))
|
|
@@ -149,10 +149,13 @@
|
|
|
149
149
|
(defn- validate-models!
|
|
150
150
|
"Probe each unique harness:model pair. Prints results and exits if any fail."
|
|
151
151
|
[worker-configs review-model]
|
|
152
|
-
(let [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
(let [;; Deduplicate by harness:model only (ignore reasoning level)
|
|
153
|
+
models (cond-> (->> worker-configs
|
|
154
|
+
(map (fn [wc]
|
|
155
|
+
(let [{:keys [harness model]} (parse-model-string (:model wc))]
|
|
156
|
+
{:harness harness :model model})))
|
|
157
|
+
set)
|
|
158
|
+
review-model (conj (select-keys review-model [:harness :model])))
|
|
156
159
|
_ (println "Validating models...")
|
|
157
160
|
results (pmap (fn [{:keys [harness model]}]
|
|
158
161
|
(let [ok (probe-model harness model)]
|