vibora 1.0.7 → 1.0.9

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/README.md CHANGED
@@ -38,10 +38,7 @@ bunx vibora@latest status # Check if running
38
38
 
39
39
  ## Configuration
40
40
 
41
- Settings are stored in `.vibora/settings.json`. The vibora directory is resolved in this order:
42
- 1. `VIBORA_DIR` environment variable (explicit override)
43
- 2. `.vibora` in current working directory (per-worktree isolation)
44
- 3. `~/.vibora` (default)
41
+ Settings are stored in `.vibora/settings.json`.
45
42
 
46
43
  | Setting | Env Var | Default |
47
44
  |---------|---------|---------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibora",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "The Vibe Engineer's Cockpit",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "repository": {
package/server/index.js CHANGED
@@ -3682,14 +3682,17 @@ function updateNotificationSettings(updates) {
3682
3682
 
3683
3683
  // server/middleware/auth.ts
3684
3684
  var SESSION_COOKIE_NAME = "vibora_session";
3685
- var PUBLIC_PATHS = ["/health", "/api/auth/login", "/api/auth/check"];
3685
+ var PUBLIC_API_PATHS = ["/health", "/api/auth/login", "/api/auth/check"];
3686
3686
  var sessionAuthMiddleware = createMiddleware(async (c, next) => {
3687
3687
  const settings = getSettings();
3688
3688
  if (!settings.basicAuthUsername || !settings.basicAuthPassword) {
3689
3689
  return next();
3690
3690
  }
3691
3691
  const path2 = c.req.path;
3692
- if (PUBLIC_PATHS.some((p) => path2 === p || path2.startsWith(p + "/"))) {
3692
+ if (!path2.startsWith("/api/") && !path2.startsWith("/ws/")) {
3693
+ return next();
3694
+ }
3695
+ if (PUBLIC_API_PATHS.some((p) => path2 === p || path2.startsWith(p + "/"))) {
3693
3696
  return next();
3694
3697
  }
3695
3698
  const secret = getSessionSecret();