cipher-security 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/bin/cipher.js +4 -4
  2. package/package.json +1 -1
package/bin/cipher.js CHANGED
@@ -288,7 +288,7 @@ async function formatBridgeResult(result, commandName = '') {
288
288
  if (commandName === 'version' && result.version) {
289
289
  const { formatVersion } = await import('../lib/brand.js');
290
290
  process.stderr.write(formatVersion(result.version) + '\n');
291
- console.log(JSON.stringify(result, null, 2));
291
+ if (!process.stdout.isTTY) console.log(JSON.stringify(result, null, 2));
292
292
  return;
293
293
  }
294
294
 
@@ -303,7 +303,7 @@ async function formatBridgeResult(result, commandName = '') {
303
303
  } else {
304
304
  warn(result.summary);
305
305
  }
306
- console.log(JSON.stringify(result, null, 2));
306
+ if (!process.stdout.isTTY) console.log(JSON.stringify(result, null, 2));
307
307
  return;
308
308
  }
309
309
 
@@ -317,7 +317,7 @@ async function formatBridgeResult(result, commandName = '') {
317
317
  statusDot('Memory', 'ok', `${result.memory.total} entries (${result.memory.active} active)`);
318
318
  }
319
319
  divider();
320
- console.log(JSON.stringify(result, null, 2));
320
+ if (!process.stdout.isTTY) console.log(JSON.stringify(result, null, 2));
321
321
  return;
322
322
  }
323
323
 
@@ -334,7 +334,7 @@ async function formatBridgeResult(result, commandName = '') {
334
334
 
335
335
  // Structured JSON result — pretty-print (skip empty objects from branded commands)
336
336
  if (Object.keys(result).length > 0) {
337
- console.log(JSON.stringify(result, null, 2));
337
+ if (!process.stdout.isTTY) console.log(JSON.stringify(result, null, 2));
338
338
  }
339
339
  return;
340
340
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cipher-security",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "CIPHER — AI Security Engineering Platform CLI",
5
5
  "type": "module",
6
6
  "engines": {