@lesliechan721/aw 0.1.0-beta.16 → 0.1.0-beta.18

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/dist/src/index.js CHANGED
@@ -2549,7 +2549,7 @@ export function buildProgram(options = {}) {
2549
2549
  .option('-s, --scope <scope>', 'project or user')
2550
2550
  .option('-p, --platform <platform>', 'codex | claude | both')
2551
2551
  .option('-j, --json', 'print cleanup result as JSON', false)
2552
- .option('--force', 'remove exclusively owned plugin output without dependency protection', false)
2552
+ .option('--force', 'use exact shallow evidence for exclusively owned damaged output; preserve foreign and shared content', false)
2553
2553
  .option('--allow-managed-codex-install', 'allow this command to acquire or rebuild the pinned AW-managed Codex runtime', false)
2554
2554
  .option('-v, --verbose', 'show command diagnostics', false)
2555
2555
  .option('-D, --debug', 'write debug diagnostics to a log file', false)
@@ -3197,11 +3197,11 @@ export function buildProgram(options = {}) {
3197
3197
  commandExitState.exitCode = result.hasErrors ? 1 : 0;
3198
3198
  writeLine(io.stdout, result.output);
3199
3199
  for (const source of result.payload.catalog.sources) {
3200
- if (source.error)
3200
+ if (rawOptions.json && source.error)
3201
3201
  writeLine(io.stderr, `${source.id}: ${source.error}`);
3202
3202
  }
3203
3203
  for (const error of result.payload.errors) {
3204
- if (error.code !== 'nativeStateUnreadable' && error.code !== 'stateInventoryFailed') {
3204
+ if (rawOptions.json && error.code !== 'nativeStateUnreadable' && error.code !== 'stateInventoryFailed') {
3205
3205
  writeLine(io.stderr, error.message);
3206
3206
  }
3207
3207
  }