@robbeverhelst/do 1.411.0 → 1.413.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 +18 -2
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -14420,7 +14420,7 @@ var configError = (message) => new CliError("config", message, EXIT.CONFIG);
14420
14420
 
14421
14421
  // src/meta.ts
14422
14422
  var CLI_NAME = "do";
14423
- var VERSION = "1.411.0";
14423
+ var VERSION = "1.413.0";
14424
14424
  var API_PREFIX = "/api/v1";
14425
14425
  var DEFAULT_API_URL = "http://localhost:3001";
14426
14426
 
@@ -18490,6 +18490,7 @@ var contacts = pgTable("contacts", {
18490
18490
  notes: text("notes"),
18491
18491
  tags: text("tags").array().notNull().default([]),
18492
18492
  knowsAbout: text("knows_about").array().notNull().default([]),
18493
+ remember: text("remember").array().notNull().default([]),
18493
18494
  lastContactedAt: timestamp("last_contacted_at", { withTimezone: true }),
18494
18495
  keepInTouchRuleId: text("keep_in_touch_rule_id").references(() => recurrenceRules.id),
18495
18496
  rhythmDays: integer2("rhythm_days"),
@@ -27081,7 +27082,8 @@ var contactSchema = createSelectSchema(contacts, {
27081
27082
  rhythmDays: number2().int().nullable().default(null),
27082
27083
  rhythmSnoozedUntil: string2().nullable().default(null),
27083
27084
  emailInvalidAt: exports_coerce.date().nullable().default(null),
27084
- knowsAbout: array(string2()).default([])
27085
+ knowsAbout: array(string2()).default([]),
27086
+ remember: array(string2()).default([])
27085
27087
  });
27086
27088
  var contactImportantDateSchema = object({
27087
27089
  id: ulidSchema,
@@ -27126,6 +27128,18 @@ var knowsAboutSchema = array(string2().trim().max(KNOWS_ABOUT_PHRASE_MAX)).max(K
27126
27128
  return true;
27127
27129
  });
27128
27130
  });
27131
+ var REMEMBER_MAX = 30;
27132
+ var REMEMBER_ITEM_MAX = 200;
27133
+ var rememberSchema = array(string2().trim().max(REMEMBER_ITEM_MAX)).max(REMEMBER_MAX).transform((items) => {
27134
+ const seen = new Set;
27135
+ return items.filter((item) => {
27136
+ const key = item.toLowerCase();
27137
+ if (!item || seen.has(key))
27138
+ return false;
27139
+ seen.add(key);
27140
+ return true;
27141
+ });
27142
+ });
27129
27143
  var createContactInputSchema = createInsertSchema(contacts, {
27130
27144
  id: ulidSchema,
27131
27145
  email: string2().email().nullish(),
@@ -27135,6 +27149,7 @@ var createContactInputSchema = createInsertSchema(contacts, {
27135
27149
  notes: string2().nullish(),
27136
27150
  tags: array(string2()).optional(),
27137
27151
  knowsAbout: knowsAboutSchema.optional(),
27152
+ remember: rememberSchema.optional(),
27138
27153
  lastContactedAt: exports_coerce.date().nullish(),
27139
27154
  rhythmDays: contactPeopleInputShape.rhythmDays,
27140
27155
  rhythmSnoozedUntil: contactPeopleInputShape.rhythmSnoozedUntil
@@ -27153,6 +27168,7 @@ var updateContactInputSchema = createUpdateSchema(contacts, {
27153
27168
  notes: string2().nullish(),
27154
27169
  tags: array(string2()).optional(),
27155
27170
  knowsAbout: knowsAboutSchema.optional(),
27171
+ remember: rememberSchema.optional(),
27156
27172
  lastContactedAt: exports_coerce.date().nullish(),
27157
27173
  rhythmDays: contactPeopleInputShape.rhythmDays,
27158
27174
  rhythmSnoozedUntil: contactPeopleInputShape.rhythmSnoozedUntil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.411.0",
3
+ "version": "1.413.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",