@kernel.chat/kbot 3.34.0 → 3.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -795,11 +795,42 @@ async function main() {
795
795
  }
796
796
  process.exit(0);
797
797
  });
798
- // Register pair programming command
799
- {
800
- const { registerPairCommand } = await import('./pair.js');
801
- registerPairCommand(program);
802
- }
798
+ program
799
+ .command('pair [path]')
800
+ .description('Pair programming mode watch files, run tests, get real-time suggestions')
801
+ .option('-q, --quiet', 'Only show errors, suppress suggestions')
802
+ .option('--auto-fix', 'Automatically apply safe fixes (trailing whitespace, unused imports)')
803
+ .option('--bell', 'Sound terminal bell on errors')
804
+ .option('--no-types', 'Disable TypeScript type checking')
805
+ .option('--no-lint', 'Disable ESLint checks')
806
+ .option('--no-tests', 'Disable missing test detection')
807
+ .option('--no-security', 'Disable security scanning')
808
+ .option('--no-style', 'Disable style checks')
809
+ .option('--ignore <patterns>', 'Additional ignore patterns (comma-separated)')
810
+ .action(async (pairPath, opts) => {
811
+ const { runPair } = await import('./pair.js');
812
+ const checks = {};
813
+ if (opts?.types === false)
814
+ checks.typeErrors = false;
815
+ if (opts?.lint === false)
816
+ checks.lint = false;
817
+ if (opts?.tests === false)
818
+ checks.missingTests = false;
819
+ if (opts?.security === false)
820
+ checks.security = false;
821
+ if (opts?.style === false)
822
+ checks.style = false;
823
+ const ignorePatterns = opts?.ignore
824
+ ? opts.ignore.split(',').map((p) => p.trim())
825
+ : undefined;
826
+ await runPair(pairPath, {
827
+ quiet: opts?.quiet,
828
+ autoFix: opts?.autoFix,
829
+ bell: opts?.bell,
830
+ checks: Object.keys(checks).length > 0 ? checks : undefined,
831
+ ignorePatterns,
832
+ });
833
+ });
803
834
  program
804
835
  .command('doctor')
805
836
  .description('Diagnose your kbot setup — check everything is working')