repomind 0.2.1 → 0.2.3

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 +6 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -38471,7 +38471,7 @@ var import_react30 = __toESM(require_react(), 1);
38471
38471
 
38472
38472
  // src/lib/api-client.ts
38473
38473
  var FETCH_TIMEOUT_MS = 3e4;
38474
- var DEFAULT_BASE_URL = process.env.REPOMIND_API_URL ?? "https://api.repomind.dev";
38474
+ var DEFAULT_BASE_URL = "https://api.repomind.dev";
38475
38475
  var DEBUG = process.argv.includes("--verbose") || process.argv.includes("-v") || !!process.env.REPOMIND_DEBUG;
38476
38476
  var ApiError = class extends Error {
38477
38477
  constructor(status, message) {
@@ -39981,7 +39981,7 @@ async function initCommand() {
39981
39981
  // src/lib/callback-server.ts
39982
39982
  import { createServer } from "node:http";
39983
39983
  import { createServer as createNetServer } from "node:net";
39984
- var allowedOrigin = process.env.REPOMIND_WEB_BASE_URL ?? "https://repomind.dev";
39984
+ var allowedOrigin = "https://repomind.dev";
39985
39985
  var CORS_HEADERS = {
39986
39986
  "Access-Control-Allow-Origin": allowedOrigin,
39987
39987
  "Access-Control-Allow-Methods": "POST, OPTIONS",
@@ -40094,7 +40094,7 @@ function LoginApp({
40094
40094
  (0, import_react35.useEffect)(() => {
40095
40095
  async function run2() {
40096
40096
  const port = await deps.getAvailablePort();
40097
- const baseUrl = process.env.REPOMIND_WEB_BASE_URL ?? "https://repomind.dev";
40097
+ const baseUrl = "https://repomind.dev";
40098
40098
  const url = `${baseUrl}/cli-auth?port=${port}`;
40099
40099
  setAuthUrl(url);
40100
40100
  const callbackPromise = deps.startCallbackServer(port);
@@ -40903,7 +40903,8 @@ function SplitApp({
40903
40903
  return;
40904
40904
  }
40905
40905
  if (authToken) {
40906
- deps.apiPost("/split/confirm", { group }, authToken).catch(() => {
40906
+ deps.apiPost("/split/confirm", { group }, authToken).catch((err) => {
40907
+ console.error("[split-confirm] failed:", err.message ?? err);
40907
40908
  });
40908
40909
  }
40909
40910
  setCommitProgress(i + 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repomind",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "AI-powered git commit messages and repository insights",
6
6
  "keywords": ["git", "ai", "commit", "cli"],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "files": ["dist"],
17
17
  "scripts": {
18
- "build": "esbuild src/index.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/index.js --alias:react-devtools-core=./src/stubs/react-devtools-core.js --banner:js='#!/usr/bin/env bun'",
18
+ "build": "esbuild src/index.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/index.js --alias:react-devtools-core=./src/stubs/react-devtools-core.js --banner:js='#!/usr/bin/env node' --define:process.env.REPOMIND_API_URL=undefined --define:process.env.REPOMIND_WEB_BASE_URL=undefined",
19
19
  "dev": "bun --env-file=.env.local run src/index.ts",
20
20
  "test": "bun test --coverage --pass-with-no-tests",
21
21
  "typecheck": "tsc --noEmit"