Skip to content

feat(cli): extend status JSON output for CI usage#333

Open
12122J wants to merge 1 commit into
colbymchenry:mainfrom
12122J:fix/status-json-ci-fields
Open

feat(cli): extend status JSON output for CI usage#333
12122J wants to merge 1 commit into
colbymchenry:mainfrom
12122J:fix/status-json-ci-fields

Conversation

@12122J
Copy link
Copy Markdown

@12122J 12122J commented May 22, 2026

Closes #329

Summary

  • Extends the existing codegraph status --json output with indexPath, lastIndexed, agentCount, and version
  • Preserves existing JSON fields so current consumers keep working
  • Reports uninitialized projects with the same machine-readable CI fields
  • Uses a database aggregate for lastIndexed instead of scanning file records in the CLI

Test plan

  • npm run build
  • node dist/bin/codegraph.js status /tmp/codegraph-status-json-smoke --json
  • npx vitest run __tests__/sync.test.ts attempted locally, but this machine is on Node v20.20.0 and the suite requires Node 22.5+ for node:sqlite; Git-backed cases also hit sandboxed git spawn EPERM here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --json flag to codegraph status for CI/scripting

1 participant