bertrand 0.26.0 → 0.27.0

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.
@@ -19,7 +19,7 @@
19
19
  } catch (e) {}
20
20
  })();
21
21
  </script>
22
- <script type="module" crossorigin src="/assets/index-DyWg1D46.js"></script>
22
+ <script type="module" crossorigin src="/assets/index-C5cug9yJ.js"></script>
23
23
  <link rel="stylesheet" crossorigin href="/assets/index-fpXRi6i0.css">
24
24
  </head>
25
25
  <body>
@@ -756,7 +756,7 @@ var sessions = sqliteTable("sessions", {
756
756
  slug: text("slug").notNull(),
757
757
  name: text("name").notNull(),
758
758
  status: text("status", {
759
- enum: ["active", "waiting", "paused", "archived"]
759
+ enum: ["active", "waiting", "blocked", "paused", "archived"]
760
760
  }).notNull().default("paused"),
761
761
  summary: text("summary"),
762
762
  rating: integer("rating"),
@@ -918,7 +918,7 @@ function setSessionRating(id, rating) {
918
918
  }
919
919
 
920
920
  // src/lib/session-archive.ts
921
- var ACTIVE_STATUSES = ["active", "waiting"];
921
+ var ACTIVE_STATUSES = ["active", "waiting", "blocked"];
922
922
  function archiveSession(id) {
923
923
  const session = getSession(id);
924
924
  if (!session)
@@ -1602,7 +1602,7 @@ function statsFor(slug) {
1602
1602
  const all = db.select({ status: sessions.status }).from(sessions).all();
1603
1603
  return {
1604
1604
  total: all.length,
1605
- active: all.filter((s) => s.status === "active" || s.status === "waiting").length,
1605
+ active: all.filter((s) => s.status === "active" || s.status === "waiting" || s.status === "blocked").length,
1606
1606
  unreadable: false
1607
1607
  };
1608
1608
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bertrand",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },