Add no-raw-console-format lint rule for CLI commands — bans template literals and string concatenation in console.log, forcing use of agentfmt helpers (bold, dim, kv, entity, fmtTree, fmtList, etc.). Extend lint target to include packages/cli/src/. Fix all 22 lint errors in CLI code: - Replace string concatenation with agentfmt (clusters, typography, variables) - Mark optional CLI args as required: false (citty type accuracy) - Remove unnecessary type assertions and optional chains - Merge duplicate @open-pencil/core imports in headless.ts - Extract exportViaApp/exportFromFile to reduce export.ts complexity - Remove unused imports (formatType, printError) - void runMain() for floating promise |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| tsconfig.json | ||