prizmkit 1.0.9 → 1.0.10
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.
package/bundled/VERSION.json
CHANGED
|
@@ -166,8 +166,18 @@ detect_stream_json_support() {
|
|
|
166
166
|
local cli_cmd="$1"
|
|
167
167
|
USE_STREAM_JSON="false"
|
|
168
168
|
|
|
169
|
-
#
|
|
170
|
-
if "$cli_cmd"
|
|
169
|
+
# CodeBuddy (cbc) always supports stream-json
|
|
170
|
+
if [[ "$cli_cmd" == "cbc" ]]; then
|
|
171
|
+
USE_STREAM_JSON="true"
|
|
172
|
+
return 0
|
|
173
|
+
fi
|
|
174
|
+
|
|
175
|
+
# For other CLIs, try to detect support via --help output
|
|
176
|
+
# Use explicit file descriptor to avoid issues in background processes
|
|
177
|
+
local help_output
|
|
178
|
+
help_output=$("$cli_cmd" --help 2>&1) || true
|
|
179
|
+
|
|
180
|
+
if echo "$help_output" | grep -q "stream-json"; then
|
|
171
181
|
USE_STREAM_JSON="true"
|
|
172
182
|
fi
|
|
173
183
|
}
|