Skip to content

cowork-bot: automated improvements (cowork/improve-vscode-schemaforge) - #12

Merged
Coding-Dev-Tools merged 3 commits into
masterfrom
cowork/improve-vscode-schemaforge
Jul 21, 2026
Merged

cowork-bot: automated improvements (cowork/improve-vscode-schemaforge)#12
Coding-Dev-Tools merged 3 commits into
masterfrom
cowork/improve-vscode-schemaforge

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated improvement PR from the Cowork repo-improver rotation (one coherent senior-dev improvement per run; see individual commit messages). Subsequent runs push additional commits to this PR rather than opening new ones.

cowork-bot and others added 3 commits July 15, 2026 03:28
The canonical list of supported schema formats was inlined in three
places (convert.ts, previewPanel.ts, and cli.ts's getAvailableFormats
fallback) — a drift risk that already bit us once (PR #9). Extract it
into a single source of truth, src/formats.ts (SCHEMA_FORMATS +
normalizeFormat).

normalizeFormat() trims/lowercases the label the `detect` CLI emits
before it is forwarded to `convert --from/--to`. Previously a label like
"SQL" or " Prisma " was passed verbatim, producing an opaque CLI error
while the command appeared to do nothing — the classic silent-failure
trap. Unknown formats still pass through unchanged so the CLI errors
clearly instead of silently.

Adds network-free regression tests (tests/formats.test.js) covering
normalizeFormat behavior and the list/enum consistency across call sites.
Remove quotes around the tests/*.test.js argument so the shell expands the test files on Node 18 and 20. This resolves PR #11 CI failures where Node received the literal glob and ran zero tests.
@Coding-Dev-Tools
Coding-Dev-Tools merged commit 1e6cf8c into master Jul 21, 2026
3 of 4 checks passed
@Coding-Dev-Tools
Coding-Dev-Tools deleted the cowork/improve-vscode-schemaforge branch July 21, 2026 14:47
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.

3 participants