feat(mcp-cli): add --format=table renderer for report-shaped commands#4215
Conversation
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4215 +/- ##
=======================================
Coverage 93.76% 93.76%
=======================================
Files 390 390
Lines 36547 36547
Branches 13389 13389
=======================================
Hits 34267 34267
Misses 1623 1623
Partials 657 657 🚀 New features to boost your workflow:
|
Adds a pure, dependency-free formatTable helper (packages/gittensory-mcp/lib) and a --format table option on analyze-branch and preflight, rendering next actions (and score blockers) as aligned monospace tables. Default and --json output are byte-identical; option parsing gains the inline --key=value form without changing the space-separated form. Closes JSONbored#2231
10f5584 to
b214275
Compare
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 16:41:58 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
Adds a
--format=tablerenderer to thegittensory-mcpstdio CLI's report-shaped commands (Closes #2231).packages/gittensory-mcp/lib/format-table.js— a pure, dependency-freeformatTable(input, opts)helper: accepts an array of row objects or{ headers, rows }(string or{key,label,align}headers), computes column widths, supports per-column left/right alignment, trims trailing padding, and returns""when there are no columns. No I/O, no deps.analyze-branch/preflightgain--format table(and the inline--format=tableform): next actions render as an aligned 3-column table (Action / Priority / Why), andanalyze-branchadditionally renders a Score-blocker table. The branch sits after the existing--jsonearly-return, and option parsing gains only the inline--key=valueform — so--jsonand the default line-summary output are byte-identical when--format tableis not used.--formatadded to the help usage + bash completion;lib/format-table.jsadded to the packable-file allowlist (scripts/check-mcp-package.mjs) and the packagebuildnode-check.No
src/**change (so no Codecov surface); confined topackages/gittensory-mcp/**, its tests, and the one requiredscripts/check-mcp-package.mjsallowlist line.Scope
site//CNAME/**/lovable/**; noCHANGELOG.md; no tool-registration changes.Validation
npm run build:mcp,npm run test:mcp-pack(dry-run listslib/format-table.js),npm run typecheck— all pass.formatTablealignment/right-align/positional-rows/missing-keys/empty; and CLI tests asserting the table render, the--format=tableinline form, and unchanged default/--jsonoutput.git diff --checkclean.Safety
--format tableused). No secrets/wallets/hotkeys/trust/reward terms.