skrypt-ai 0.6.0 → 0.6.1

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.
@@ -1,5 +1,6 @@
1
1
  import { Command } from 'commander';
2
2
  import { analyzePRForDocs, postPRComment, postInlineComments } from '../github/pr-comments.js';
3
+ import { requirePro } from '../auth/index.js';
3
4
  export const reviewPRCommand = new Command('review-pr')
4
5
  .description('Review a GitHub PR for documentation issues')
5
6
  .argument('<pr-url>', 'GitHub PR URL (e.g., https://github.com/owner/repo/pull/123)')
@@ -8,6 +9,10 @@ export const reviewPRCommand = new Command('review-pr')
8
9
  .option('--token <token>', 'GitHub token (or use GITHUB_TOKEN env var)')
9
10
  .action(async (prUrl, options) => {
10
11
  try {
12
+ // Pro feature - requires subscription
13
+ if (!await requirePro('review-pr')) {
14
+ process.exit(1);
15
+ }
11
16
  // Parse PR URL
12
17
  const urlMatch = prUrl.match(/^https:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/);
13
18
  if (!urlMatch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skrypt-ai",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "AI-powered documentation generator with code examples",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",