vibora 4.8.4 → 5.0.2

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.
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/jpeg" href="/logo-dark.jpg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Vibora</title>
8
- <script type="module" crossorigin src="/assets/index-B7XJIOx-.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-DC4bCMM1.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-DGVjQ2tr.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibora",
3
- "version": "4.8.4",
3
+ "version": "5.0.2",
4
4
  "description": "The Vibe Engineer's Cockpit",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "repository": {
package/server/index.js CHANGED
@@ -10136,8 +10136,13 @@ import { existsSync as existsSync13 } from "fs";
10136
10136
 
10137
10137
  // server/routes/health.ts
10138
10138
  var app = new Hono2;
10139
+ var startTime = Date.now();
10139
10140
  app.get("/", (c) => {
10140
- return c.json({ status: "ok" });
10141
+ return c.json({
10142
+ status: "ok",
10143
+ version: process.env.VIBORA_VERSION || null,
10144
+ uptime: Date.now() - startTime
10145
+ });
10141
10146
  });
10142
10147
  var health_default = app;
10143
10148
 
@@ -14285,7 +14290,7 @@ var log2 = {
14285
14290
  };
14286
14291
 
14287
14292
  // server/lib/settings.ts
14288
- var CURRENT_SCHEMA_VERSION = 4;
14293
+ var CURRENT_SCHEMA_VERSION = 5;
14289
14294
  var CLAUDE_CODE_THEMES = ["light", "light-ansi", "light-daltonized", "dark", "dark-ansi", "dark-daltonized"];
14290
14295
  var DEFAULT_SETTINGS = {
14291
14296
  _schemaVersion: CURRENT_SCHEMA_VERSION,
@@ -145534,9 +145539,11 @@ app3.get("/branches", (c) => {
145534
145539
  } catch {
145535
145540
  current = branches[0] || "main";
145536
145541
  }
145542
+ const defaultBranch = getDefaultBranch(repoPath);
145537
145543
  return c.json({
145538
145544
  branches,
145539
- current
145545
+ current,
145546
+ defaultBranch
145540
145547
  });
145541
145548
  } catch (err) {
145542
145549
  return c.json({ error: err instanceof Error ? err.message : "Failed to list branches" }, 500);
@@ -145608,6 +145615,7 @@ app3.get("/diff", (c) => {
145608
145615
  const staged = c.req.query("staged") === "true";
145609
145616
  const ignoreWhitespace = c.req.query("ignoreWhitespace") === "true";
145610
145617
  const includeUntracked = c.req.query("includeUntracked") === "true";
145618
+ const baseBranchParam = c.req.query("baseBranch");
145611
145619
  if (!worktreePath) {
145612
145620
  return c.json({ error: "path parameter is required" }, 400);
145613
145621
  }
@@ -145636,9 +145644,10 @@ app3.get("/diff", (c) => {
145636
145644
  branch = "unknown";
145637
145645
  }
145638
145646
  let branchDiff = "";
145647
+ let baseBranch;
145639
145648
  if (!diff) {
145640
145649
  try {
145641
- const baseBranch = getDefaultBranch(worktreePath);
145650
+ baseBranch = getDefaultBranch(worktreePath, baseBranchParam);
145642
145651
  const mergeBase = gitExec(worktreePath, `merge-base ${baseBranch} HEAD`);
145643
145652
  branchDiff = gitExec(worktreePath, `diff${wsFlag} ${mergeBase}..HEAD`);
145644
145653
  } catch {
@@ -145681,7 +145690,8 @@ ${untrackedDiff}` : untrackedDiff;
145681
145690
  files,
145682
145691
  hasStagedChanges: files.some((f) => f.staged),
145683
145692
  hasUnstagedChanges: files.some((f) => !f.staged && f.status !== "untracked"),
145684
- isBranchDiff: !diff && !!branchDiff
145693
+ isBranchDiff: !diff && !!branchDiff,
145694
+ baseBranch
145685
145695
  });
145686
145696
  } catch (err) {
145687
145697
  return c.json({ error: err instanceof Error ? err.message : "Failed to get diff" }, 500);
@@ -146567,6 +146577,14 @@ function getSettingValue(path8) {
146567
146577
  return current;
146568
146578
  }
146569
146579
  var app5 = new Hono2;
146580
+ app5.get("/", (c) => {
146581
+ const config = {};
146582
+ for (const [, path8] of Object.entries(CONFIG_KEYS)) {
146583
+ const value = getSettingValue(path8);
146584
+ config[path8] = value ?? getDefaultValue(path8);
146585
+ }
146586
+ return c.json(config);
146587
+ });
146570
146588
  app5.get("/notifications", (c) => {
146571
146589
  const notifications = getNotificationSettings();
146572
146590
  return c.json(notifications);