sharkbait 1.0.4 → 1.0.5

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/cli.js +11 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8963,7 +8963,7 @@ import { homedir as homedir4 } from "os";
8963
8963
  import { existsSync as existsSync5 } from "fs";
8964
8964
 
8965
8965
  // src/version.ts
8966
- var VERSION = "1.0.4";
8966
+ var VERSION = "1.0.5";
8967
8967
 
8968
8968
  // src/commands/setup.tsx
8969
8969
  import { jsxDEV as jsxDEV13 } from "react/jsx-dev-runtime";
@@ -9777,7 +9777,7 @@ ${"━".repeat(60)}`);
9777
9777
  }
9778
9778
 
9779
9779
  // src/version.ts
9780
- var VERSION2 = "1.0.4";
9780
+ var VERSION2 = "1.0.5";
9781
9781
 
9782
9782
  // src/ui/logo.tsx
9783
9783
  import { Box as Box14, Text as Text14 } from "ink";
@@ -9812,9 +9812,17 @@ var SHARK_LOGO2 = `
9812
9812
  `.trimEnd();
9813
9813
 
9814
9814
  // src/cli.ts
9815
+ import { existsSync as existsSync7 } from "fs";
9816
+ import { join as join9 } from "path";
9817
+ import { homedir as homedir5 } from "os";
9815
9818
  var args = process.argv.slice(2);
9816
9819
  if (args.length === 0) {
9817
- await startChat({});
9820
+ const configExists = existsSync7(join9(homedir5(), ".sharkbait", "config.json"));
9821
+ if (!configExists) {
9822
+ await runSetup();
9823
+ } else {
9824
+ await startChat({});
9825
+ }
9818
9826
  process.exit(0);
9819
9827
  }
9820
9828
  var program = new Command;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sharkbait",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "AI-powered coding assistant for the command line. Uses OpenAI Responses API (not Chat). Autonomous agents, parallel code reviews, 36 tools.",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",