Skip to content

feat(traces): add JSON output#1782

Merged
jariy17 merged 1 commit into
mainfrom
feat/624-traces-json
Jul 17, 2026
Merged

feat(traces): add JSON output#1782
jariy17 merged 1 commit into
mainfrom
feat/624-traces-json

Conversation

@notgitika

Copy link
Copy Markdown
Contributor

Summary

  • add --json to traces list and traces get
  • serialize successful results and failures without Ink output in JSON mode
  • preserve existing human-readable rendering when the flag is omitted
  • document the new options and add command-level regression coverage

Fixes #624

Testing

  • npx vitest run --project unit src/cli/commands/traces src/cli/operations/traces (24 tests passed)
  • npm run typecheck
  • npx eslint src/cli/commands/traces/command.tsx src/cli/commands/traces/types.ts src/cli/commands/traces/__tests__/command.test.ts
  • npx prettier --check docs/commands.md src/cli/commands/traces/command.tsx src/cli/commands/traces/types.ts src/cli/commands/traces/__tests__/command.test.ts
  • npm run build
  • packaged CLI smoke tests: traces list --json and traces get trace-1 --json emit one JSON error object and exit 1 outside a project

@notgitika
notgitika requested a review from a team July 17, 2026 01:40
@github-actions github-actions Bot added the size/m PR size: M label Jul 17, 2026
@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label Jul 17, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jul 17, 2026
@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Jul 17, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Jul 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.24.1.tgz

How to install

gh release download pr-1782-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.24.1.tgz

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 39.98% 14848 / 37132
🔵 Statements 39.24% 15822 / 40319
🔵 Functions 34.02% 2526 / 7424
🔵 Branches 33.45% 9884 / 29545
Generated in workflow #4132 for commit ea92553 by the Vitest Coverage Report Action

@jariy17
jariy17 merged commit e73218e into main Jul 17, 2026
73 of 74 checks passed
@jariy17
jariy17 deleted the feat/624-traces-json branch July 17, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add --json flag to traces list and traces get commands

2 participants