opencommit 1.0.13 → 1.0.15

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/out/cli.cjs +6 -6
  2. package/package.json +1 -1
package/out/cli.cjs CHANGED
@@ -15412,7 +15412,7 @@ function G3(t, e2) {
15412
15412
  // package.json
15413
15413
  var package_default = {
15414
15414
  name: "opencommit",
15415
- version: "1.0.12",
15415
+ version: "1.0.14",
15416
15416
  description: "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
15417
15417
  keywords: [
15418
15418
  "git",
@@ -16274,19 +16274,19 @@ var setConfig = (keyValues) => {
16274
16274
  };
16275
16275
  var configCommand = G3(
16276
16276
  {
16277
- name: "config",
16277
+ name: "config" /* config */,
16278
16278
  parameters: ["<mode>", "<key=values...>"]
16279
16279
  },
16280
16280
  async (argv) => {
16281
16281
  ae("opencommit \u2014 config");
16282
16282
  try {
16283
16283
  const { mode: mode2, keyValues } = argv._;
16284
- if (mode2 === "get") {
16284
+ if (mode2 === "get" /* get */) {
16285
16285
  const config3 = getConfig() || {};
16286
16286
  for (const key of keyValues) {
16287
16287
  ce(`${key}=${config3[key]}`);
16288
16288
  }
16289
- } else if (mode2 === "set") {
16289
+ } else if (mode2 === "set" /* set */) {
16290
16290
  await setConfig(
16291
16291
  keyValues.map((keyValue) => keyValue.split("="))
16292
16292
  );
@@ -17261,7 +17261,7 @@ var isHookCalled = process.argv[1].endsWith(`/${SYMLINK_URL}`);
17261
17261
  var isHookExists = (0, import_fs2.existsSync)(SYMLINK_URL);
17262
17262
  var hookCommand = G3(
17263
17263
  {
17264
- name: "hook",
17264
+ name: "hook" /* hook */,
17265
17265
  parameters: ["<set/unset>"]
17266
17266
  },
17267
17267
  async (argv) => {
@@ -17327,7 +17327,7 @@ var import_openai = __toESM(require_dist(), 1);
17327
17327
  var config = getConfig();
17328
17328
  var apiKey = config?.OPENAI_API_KEY;
17329
17329
  var [command, mode] = process.argv.slice(2);
17330
- if (!apiKey && command !== "config" && mode !== "set") {
17330
+ if (!apiKey && command !== "config" && mode !== "set" /* set */) {
17331
17331
  ae("opencommit");
17332
17332
  ce(
17333
17333
  "OPENAI_API_KEY is not set, please run `oc config set OPENAI_API_KEY=<your token>`"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencommit",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
5
5
  "keywords": [
6
6
  "git",