@indigoai-us/hq-cli 5.103.2 → 5.103.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.
- package/CHANGELOG.md +2 -0
- package/dist/commands/integrations.js +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -172,10 +172,11 @@ export function registerIntegrationsCommand(program) {
|
|
|
172
172
|
// A tool that ran but FAILED (`isError: true`) still has its payload
|
|
173
173
|
// printed — the error text is the useful part — but the command exits
|
|
174
174
|
// non-zero so a script or agent can tell failure from success without
|
|
175
|
-
// parsing output. The
|
|
176
|
-
//
|
|
175
|
+
// parsing output. The gateway double-wraps the provider result as a
|
|
176
|
+
// text-content string, so `isError` lands on the UNWRAPPED payload, not
|
|
177
|
+
// on the raw envelope; check both levels so either shape is caught.
|
|
177
178
|
printJson(payload);
|
|
178
|
-
if (gatewayResultIsError(message.result)) {
|
|
179
|
+
if (gatewayResultIsError(payload) || gatewayResultIsError(message.result)) {
|
|
179
180
|
process.exitCode = 1;
|
|
180
181
|
}
|
|
181
182
|
});
|