@polka-codes/cli 0.4.8 → 0.4.9

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 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24629,7 +24629,7 @@ var {
24629
24629
  Help
24630
24630
  } = import__.default;
24631
24631
  // package.json
24632
- var version = "0.4.8";
24632
+ var version = "0.4.9";
24633
24633
 
24634
24634
  // ../../node_modules/@anthropic-ai/sdk/version.mjs
24635
24635
  var VERSION = "0.36.2";
@@ -42617,7 +42617,7 @@ function ora(options) {
42617
42617
  }
42618
42618
 
42619
42619
  // src/commands/commit.ts
42620
- var commitCommand = new Command("commit").description("Create a commit with AI-generated message").option("-a, --all", "Stage all files before committing").argument("[message]", "Optional context for the commit message generation").action(async (message, _options, command) => {
42620
+ var commitCommand = new Command("commit").description("Create a commit with AI-generated message").option("-a, --all", "Stage all files before committing").argument("[message]", "Optional context for the commit message generation").action(async (message, localOptions, command) => {
42621
42621
  const spinner = ora("Gathering information...").start();
42622
42622
  const options = command.parent?.opts() ?? {};
42623
42623
  const { providerConfig } = parseOptions(options);
@@ -42637,7 +42637,7 @@ var commitCommand = new Command("commit").description("Create a commit with AI-g
42637
42637
  const stagedFiles = status.split(`
42638
42638
  `).filter((line) => line.match(/^[MADRC]/));
42639
42639
  if (stagedFiles.length === 0) {
42640
- if (options.all) {
42640
+ if (localOptions.all) {
42641
42641
  execSync("git add .");
42642
42642
  } else {
42643
42643
  spinner.stopAndPersist();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "bin": {