diffsplain 0.2.0 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffsplain",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Review Git diffs one file at a time with coding agent notes beside each patch.",
5
5
  "keywords": [
6
6
  "codex",
@@ -141,6 +141,7 @@ export function agentCommand({
141
141
  '--ignore-user-config',
142
142
  '--color',
143
143
  'never',
144
+ '--skip-git-repo-check',
144
145
  '-C',
145
146
  workingDirectory,
146
147
  '--output-schema',
@@ -687,12 +687,14 @@ try {
687
687
  if (result.status !== 0) {
688
688
  const detail = result.stderr
689
689
  .split('\n')
690
- .filter(
691
- (line) =>
692
- line.length < 600 &&
693
- /\b(error|failed|denied|unauthorized|forbidden)\b/i.test(line),
690
+ .map((line) =>
691
+ line.replace(
692
+ /\u001b\[[0-?]*[ -/]*[@-~]/g,
693
+ '',
694
+ ),
694
695
  )
695
- .slice(-5)
696
+ .filter((line) => line.trim() && line.length < 600)
697
+ .slice(-8)
696
698
  .join('\n');
697
699
  throw new Error(
698
700
  `${selectedAgent} exited with status ${result.status}${detail ? `\n${detail}` : ''}`,