sharkbait 1.0.6 → 1.0.7

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 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -3585,10 +3585,12 @@ function loadConfig() {
3585
3585
  }
3586
3586
  function getWorkingDir(cliOption) {
3587
3587
  if (cliOption) {
3588
- return cliOption;
3588
+ if (existsSync3(cliOption))
3589
+ return cliOption;
3590
+ return process.cwd();
3589
3591
  }
3590
3592
  const config = loadConfig();
3591
- if (config.paths.defaultWorkingDir) {
3593
+ if (config.paths.defaultWorkingDir && existsSync3(config.paths.defaultWorkingDir)) {
3592
3594
  return config.paths.defaultWorkingDir;
3593
3595
  }
3594
3596
  return process.cwd();
@@ -8778,9 +8780,11 @@ ${event.consolidated}`,
8778
8780
  // src/agent/start-chat.ts
8779
8781
  async function startChat(options = {}) {
8780
8782
  const workingDir = getWorkingDir(options.workingDir);
8781
- if (workingDir !== process.cwd()) {
8782
- process.chdir(workingDir);
8783
- }
8783
+ try {
8784
+ if (workingDir !== process.cwd()) {
8785
+ process.chdir(workingDir);
8786
+ }
8787
+ } catch {}
8784
8788
  const { waitUntilExit } = render(React3.createElement(App, {
8785
8789
  contextFiles: options.context,
8786
8790
  enableBeads: options.beads ?? true,
@@ -8964,7 +8968,7 @@ import { homedir as homedir4 } from "os";
8964
8968
  import { existsSync as existsSync5 } from "fs";
8965
8969
 
8966
8970
  // src/version.ts
8967
- var VERSION = "1.0.6";
8971
+ var VERSION = "1.0.7";
8968
8972
 
8969
8973
  // src/commands/setup.tsx
8970
8974
  import { jsxDEV as jsxDEV13, Fragment as Fragment3 } from "react/jsx-dev-runtime";
@@ -9892,7 +9896,7 @@ ${"━".repeat(60)}`);
9892
9896
  }
9893
9897
 
9894
9898
  // src/version.ts
9895
- var VERSION2 = "1.0.6";
9899
+ var VERSION2 = "1.0.7";
9896
9900
 
9897
9901
  // src/ui/logo.tsx
9898
9902
  import { Box as Box14, Text as Text14 } from "ink";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sharkbait",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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",