sharkbait 1.0.3 → 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 +53 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8961,6 +8961,11 @@ import { writeFile as writeFile3, readFile as readFile2, mkdir as mkdir4 } from
8961
8961
  import { join as join8 } from "path";
8962
8962
  import { homedir as homedir4 } from "os";
8963
8963
  import { existsSync as existsSync5 } from "fs";
8964
+
8965
+ // src/version.ts
8966
+ var VERSION = "1.0.5";
8967
+
8968
+ // src/commands/setup.tsx
8964
8969
  import { jsxDEV as jsxDEV13 } from "react/jsx-dev-runtime";
8965
8970
  function SetupWizard() {
8966
8971
  const { exit } = useApp2();
@@ -9119,6 +9124,10 @@ AZURE_OPENAI_API_VERSION=2024-10-21
9119
9124
  flexDirection: "column",
9120
9125
  padding: 1,
9121
9126
  children: [
9127
+ /* @__PURE__ */ jsxDEV13(Logo, {
9128
+ variant: "full",
9129
+ version: VERSION
9130
+ }, undefined, false, undefined, this),
9122
9131
  /* @__PURE__ */ jsxDEV13(Box13, {
9123
9132
  marginBottom: 1,
9124
9133
  children: /* @__PURE__ */ jsxDEV13(Text13, {
@@ -9768,16 +9777,57 @@ ${"━".repeat(60)}`);
9768
9777
  }
9769
9778
 
9770
9779
  // src/version.ts
9771
- var VERSION = "1.0.3";
9780
+ var VERSION2 = "1.0.5";
9781
+
9782
+ // src/ui/logo.tsx
9783
+ import { Box as Box14, Text as Text14 } from "ink";
9784
+ import { jsxDEV as jsxDEV14 } from "react/jsx-dev-runtime";
9785
+ var SHARK_LOGO2 = `
9786
+ +.+++.
9787
+ ## ....-### -
9788
+ + ###++++-#++-
9789
+ - ##+-++--+-+--.
9790
+ #++++-+-------..
9791
+ - -#+-----++-.....
9792
+ ##-.----+-. ###########
9793
+ #..-++--. +#####+. .. .
9794
+ ####..--+--..##. ...-+####++-.
9795
+ # . .-.--+-. ## .+++++++++++-++..
9796
+ # ##+### -+--.## .--+++++++++++++-+
9797
+ + .#+-###.--+.-# -+--------+++++-...
9798
+ -#.-###.--- #+.+---... ...-+++-.###
9799
+ ###.--+##-.++.## ---...####...-+++- .###
9800
+ # .. ##- --## -#.-#.-+...## ###.-++++ ##+
9801
+ #- ###+--+#---#- # +++-..#-.+# +-.-##. ##-.-+++#####.
9802
+ ## ##---+##+--++#+.+-+-+--+-.+#.+-.####--.###+.-+++.###+.
9803
+ # .#+++----++-+-++.#..+-.---.#+---..########..-++++-....-+##-.
9804
+ #. #++##++--+----+--#.#-----.#+-----........-+++++++++++-----+#.
9805
+ #- #++-+++++++--+++.# -#..--.+#.--------....--+++++--.--.#++++#+
9806
+ +# ##---+++++++---+.+#.-#+---.#+..-------++--.....--++-.++--++#.
9807
+ # .##+++--++-++-+-....++- ....+#...----++--++####++..-##++++##
9808
+ # ###+++-++-++.. . +##..+.+#-......------....+#+++++##-
9809
+ # #####+++. ## ++--+. .. .-###########-
9810
+ #. .+. ..- +. .###-
9811
+ #-. + #
9812
+ `.trimEnd();
9772
9813
 
9773
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";
9774
9818
  var args = process.argv.slice(2);
9775
9819
  if (args.length === 0) {
9776
- await startChat({});
9820
+ const configExists = existsSync7(join9(homedir5(), ".sharkbait", "config.json"));
9821
+ if (!configExists) {
9822
+ await runSetup();
9823
+ } else {
9824
+ await startChat({});
9825
+ }
9777
9826
  process.exit(0);
9778
9827
  }
9779
9828
  var program = new Command;
9780
- program.name("sharkbait").description("AI coding assistant for the command line").version(VERSION);
9829
+ program.name("sharkbait").description("AI coding assistant for the command line").version(VERSION2).addHelpText("before", `\x1B[36m${SHARK_LOGO2}\x1B[0m
9830
+ `);
9781
9831
  program.command("chat").description("Start interactive chat session").option("-c, --context <files...>", "Include specific files in context").option("-w, --working-dir <dir>", "Set working directory").option("--no-beads", "Disable Beads task tracking").action(startChat);
9782
9832
  program.command("init").description("Initialize Sharkbait in current project").action(initProject2);
9783
9833
  program.command("ask <question>").description("Ask a one-off question").option("-c, --context <files...>", "Include specific files in context").action(askQuestion);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sharkbait",
3
- "version": "1.0.3",
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",