openpencil/tools/package-quality/src/cli.ts
Danila Poyarkov 38bee364e8
refactor(tools): organize internal CLI workflows (#600)
* refactor(tools): organize internal CLI workflows

- Group visual-oracle commands behind a Citty CLI and domain folders\n- Add imported-document visual comparison manifests and pixel-diff outputs\n- Consolidate package-quality checks behind stable check, smoke, and verify commands\n- Remove obsolete visual root aliases and compatibility scripts

* fix(tools): validate visual oracle target scope

- Validate manifest records, required strings, and optional field types\n- Reject explicit OpenPencil nodes outside the configured page

* fix(tools): validate packaged runtime exports
2026-08-29 14:42:44 +03:00

17 lines
379 B
TypeScript

#!/usr/bin/env bun
import { defineCommand, runMain } from 'citty'
import { checkCommand, smokeCommand, verifyCommand } from './commands'
const main = defineCommand({
meta: { name: 'package-quality', description: 'Validate OpenPencil public packages' },
subCommands: {
check: checkCommand,
smoke: smokeCommand,
verify: verifyCommand
}
})
await runMain(main)