@polka-codes/cli 0.9.6 → 0.9.7

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -9
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -39731,7 +39731,7 @@ var {
39731
39731
  Help
39732
39732
  } = import__.default;
39733
39733
  // package.json
39734
- var version = "0.9.6";
39734
+ var version = "0.9.7";
39735
39735
 
39736
39736
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
39737
39737
  var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
@@ -110749,15 +110749,9 @@ async function reviewPR(prIdentifier, spinner, sharedAiOptions, isJsonOutput) {
110749
110749
  try {
110750
110750
  spinner.text = `Checking out PR #${prNumber}...`;
110751
110751
  execSync3(`gh pr checkout ${prNumber}`, { stdio: "pipe" });
110752
- } catch (_error) {
110752
+ } catch (error120) {
110753
110753
  spinner.fail(`Error checking out PR #${prNumber}. Make sure the PR number is correct and you have access to the repository.`);
110754
- process.exit(1);
110755
- }
110756
- const gitRoot = execSync3("git rev-parse --show-toplevel", { encoding: "utf-8" }).trim();
110757
- const remoteUrl = execSync3("git remote get-url origin", { cwd: gitRoot, encoding: "utf-8" }).trim();
110758
- const remoteMatch = remoteUrl.match(/github\.com[/:](?<owner>[^/]+)\/(?<repo>[^/]+)\.git$/);
110759
- if (!remoteMatch?.groups) {
110760
- spinner.fail("Could not determine GitHub repository owner and repo from remote URL.");
110754
+ console.error(error120);
110761
110755
  process.exit(1);
110762
110756
  }
110763
110757
  spinner.text = "Fetching pull request details...";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",
@@ -23,10 +23,10 @@
23
23
  "@ai-sdk/openai": "2.0.0-beta.11",
24
24
  "@ai-sdk/provider": "2.0.0-beta.1",
25
25
  "@ai-sdk/provider-utils": "3.0.0-beta.5",
26
- "@inquirer/prompts": "^7.2.3",
26
+ "@inquirer/prompts": "^7.8.0",
27
27
  "@openrouter/ai-sdk-provider": "^1.0.0-beta.6",
28
- "@polka-codes/cli-shared": "0.9.4",
29
- "@polka-codes/core": "0.9.4",
28
+ "@polka-codes/cli-shared": "0.9.6",
29
+ "@polka-codes/core": "0.9.6",
30
30
  "ai": "5.0.0-beta.24",
31
31
  "commander": "^13.0.0",
32
32
  "dotenv": "^16.4.7",