Skip to content

[codex] Add AI-focused JSON controls - #3260

Merged
Widthdom merged 13 commits into
mainfrom
fix-issue2996-3009-3056
Jun 5, 2026
Merged

[codex] Add AI-focused JSON controls#3260
Widthdom merged 13 commits into
mainfrom
fix-issue2996-3009-3056

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add global --pretty JSON formatting, preserving search --json NDJSON behavior while allowing pretty array/object output.
  • Add --compact JSON caps for map, inspect, and outline, including explicit truncation metadata.
  • Add inspect --fields and inspect --body-only so AI workflows can request focused evidence payloads.
  • Add focused tests, user/developer docs, and changelog fragments for each issue.

Validation

  • dotnet build
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --no-build --filter "FullyQualifiedName~Issue2996|FullyQualifiedName~Issue3009|FullyQualifiedName~Issue3056|FullyQualifiedName~CliFlagSchemaTests|FullyQualifiedName~WorkspaceCommandRunnerTests"
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • git diff --check origin/main..HEAD
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll index . --json
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • Codex adversarial review over origin/main..HEAD; an actionable outline --compact --limit schema mismatch was fixed and re-tested.

Issues

Fixes #2996
Fixes #3009
Fixes #3056

@Widthdom
Widthdom marked this pull request as ready for review June 5, 2026 02:46
# Conflicts:
#	src/CodeIndex/Cli/CliFlagSchema.cs
#	src/CodeIndex/Cli/ConsoleUi.cs
#	tests/CodeIndex.Tests/ConsoleUiTests.cs
@Widthdom
Widthdom merged commit 495c0c1 into main Jun 5, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue2996-3009-3056 branch June 5, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant