Skip to content

Add JSON output for utility list commands#147

Open
bolasse1234 wants to merge 1 commit into
profullstack:masterfrom
bolasse1234:cli-utility-list-json
Open

Add JSON output for utility list commands#147
bolasse1234 wants to merge 1 commit into
profullstack:masterfrom
bolasse1234:cli-utility-list-json

Conversation

@bolasse1234
Copy link
Copy Markdown

Closes #146. Related to #133.

This covers the utility-side list commands that still only had the human-readable output path.

What changed:

  • added --json to sh1pt iterate agents list
  • added --json to generated adapter category list commands such as sh1pt bots list
  • added --json to sh1pt secret list; it returns key metadata only and never secret values
  • added a focused regression test that checks these command surfaces keep the JSON option

Verified:

  • corepack pnpm --filter @profullstack/sh1pt typecheck
  • corepack pnpm vitest run packages/cli/src/commands/utility-json-output.test.ts
  • corepack pnpm --filter @profullstack/sh1pt-core --filter @profullstack/sh1pt-policy --filter @profullstack/sh1pt build
  • smoke-tested:
    • corepack pnpm exec tsx packages/cli/src/index.ts iterate agents list --json
    • corepack pnpm exec tsx packages/cli/src/index.ts bots list --json
    • corepack pnpm exec tsx packages/cli/src/index.ts secret list --local --json

I kept this separate from the primary-verb JSON PR so the changes are easy to review independently.

@bolasse1234 bolasse1234 force-pushed the cli-utility-list-json branch from cd027a3 to 71eb523 Compare May 13, 2026 19:27
@bolasse1234 bolasse1234 force-pushed the cli-utility-list-json branch from 71eb523 to bab1c76 Compare May 13, 2026 19:29
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 output to utility list commands

1 participant