@robbeverhelst/do 1.183.0 → 1.185.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.
Files changed (2) hide show
  1. package/dist/do.js +25 -2
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -3741,6 +3741,7 @@ var userSettings = pgTable("user_settings", {
3741
3741
  focusAreaId: text("focus_area_id"),
3742
3742
  focusUntil: timestamp("focus_until", { withTimezone: true }),
3743
3743
  quietHours: jsonb("quiet_hours").$type(),
3744
+ pillPages: text("pill_pages").array().notNull().default([]),
3744
3745
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
3745
3746
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
3746
3747
  }, (t) => [unique("user_settings_tenant_user_uniq").on(t.tenantId, t.userId)]);
@@ -19674,11 +19675,32 @@ var quietHoursSchema = object({
19674
19675
  days: array(number2().int().min(0).max(6)).max(7)
19675
19676
  });
19676
19677
  var PINNED_AREAS_MAX = 5;
19678
+ var PILL_PAGES = [
19679
+ "now",
19680
+ "habits",
19681
+ "tasks",
19682
+ "calendar",
19683
+ "areas",
19684
+ "house",
19685
+ "collection",
19686
+ "notes",
19687
+ "progress",
19688
+ "landed",
19689
+ "review",
19690
+ "agents",
19691
+ "profile",
19692
+ "settings",
19693
+ "alerts",
19694
+ "trash"
19695
+ ];
19696
+ var pillPageSchema = _enum2(PILL_PAGES);
19697
+ var PILL_PAGES_MAX = 4;
19677
19698
  var userSettingsSchema = createSelectSchema(userSettings, {
19678
19699
  pinnedAreaIds: array(string2()).default([]),
19679
19700
  focusAreaId: string2().nullable().default(null),
19680
19701
  focusUntil: exports_coerce.date().nullable().default(null),
19681
19702
  quietHours: quietHoursSchema.nullable().default(null),
19703
+ pillPages: array(string2()).default([]).transform((ids) => ids.filter((id) => pillPageSchema.safeParse(id).success)),
19682
19704
  createdAt: exports_coerce.date(),
19683
19705
  updatedAt: exports_coerce.date()
19684
19706
  }).omit({ autoRollOverdue: true });
@@ -19695,7 +19717,8 @@ var updateUserSettingsInputSchema = createUpdateSchema(userSettings, {
19695
19717
  enabledModules: array(string2().trim().min(1)).transform(normalizeEnabledModules).optional(),
19696
19718
  pinnedAreaIds: array(ulidSchema).transform((ids) => [...new Set(ids)]).pipe(array(ulidSchema).max(PINNED_AREAS_MAX)).optional(),
19697
19719
  focusAreaId: ulidSchema.nullish(),
19698
- quietHours: quietHoursSchema.nullish()
19720
+ quietHours: quietHoursSchema.nullish(),
19721
+ pillPages: array(pillPageSchema).transform((ids) => [...new Set(ids)]).pipe(array(pillPageSchema).max(PILL_PAGES_MAX)).optional()
19699
19722
  }).omit({
19700
19723
  id: true,
19701
19724
  tenantId: true,
@@ -21672,7 +21695,7 @@ function parseCapture2(input, now) {
21672
21695
 
21673
21696
  // src/meta.ts
21674
21697
  var CLI_NAME = "do";
21675
- var VERSION = "1.183.0";
21698
+ var VERSION = "1.185.0";
21676
21699
  var API_PREFIX = "/api/v1";
21677
21700
  var DEFAULT_API_URL = "http://localhost:3001";
21678
21701
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.183.0",
3
+ "version": "1.185.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "homepage": "https://github.com/robbeverhelst/do/tree/main/apps/cli",