@robbeverhelst/do 1.287.0 → 1.288.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 +83 -3
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -21602,7 +21602,8 @@ var postReceiptInputSchema = object({
21602
21602
  nodeId: ulidSchema,
21603
21603
  parts: array(ulidSchema).min(1).max(10).optional(),
21604
21604
  about: _enum2(POST_RECEIPT_ABOUT_VALUES).optional(),
21605
- source: string2().trim().min(1).max(POST_RECEIPT_SOURCE_MAX).optional()
21605
+ source: string2().trim().min(1).max(POST_RECEIPT_SOURCE_MAX).optional(),
21606
+ personNotes: array(ulidSchema).min(1).max(10).optional()
21606
21607
  }).strict();
21607
21608
  var postReceiptPartSchema = object({
21608
21609
  id: string2(),
@@ -24103,7 +24104,9 @@ var personNoteReceiptItemSchema = object({
24103
24104
  id: ulidSchema,
24104
24105
  kind: string2().nullable(),
24105
24106
  summary: string2(),
24106
- sensitive: boolean3()
24107
+ sensitive: boolean3(),
24108
+ label: string2().nullable().default(null),
24109
+ date: keyDateDaySchema.nullable().default(null)
24107
24110
  });
24108
24111
  var personNoteReceiptSchema = object({
24109
24112
  id: ulidSchema,
@@ -24199,6 +24202,15 @@ var personPrivateNoteSchema = object({
24199
24202
  updatedAt: exports_coerce.date().nullable()
24200
24203
  });
24201
24204
  var putPersonPrivateNoteInputSchema = object({ body: string2().max(20000) }).strict();
24205
+ var eventFollowUpsQuerySchema = object({ eventId: ulidSchema });
24206
+ var eventFollowUpSchema = object({
24207
+ id: ulidSchema,
24208
+ contactId: ulidSchema,
24209
+ title: string2(),
24210
+ label: string2().nullable(),
24211
+ date: keyDateDaySchema,
24212
+ taskId: ulidSchema.nullable()
24213
+ });
24202
24214
 
24203
24215
  // ../../packages/schema/src/contracts/contacts.ts
24204
24216
  var contactKindSchema = _enum2(contactKind.enumValues);
@@ -28674,7 +28686,7 @@ function parseCapture2(input, now) {
28674
28686
 
28675
28687
  // src/meta.ts
28676
28688
  var CLI_NAME = "do";
28677
- var VERSION = "1.287.0";
28689
+ var VERSION = "1.288.0";
28678
28690
  var API_PREFIX = "/api/v1";
28679
28691
  var DEFAULT_API_URL = "http://localhost:3001";
28680
28692
 
@@ -32358,6 +32370,21 @@ var COMMAND_SPECS = [
32358
32370
  returns: "EchoThreadSummary",
32359
32371
  notes: "For later and Silent posts never push. The home thread and conversations start at all, a standing thread you add at needs_you."
32360
32372
  },
32373
+ {
32374
+ path: ["echo", "threads", "people"],
32375
+ summary: "Switch People capture for one of your agent threads.",
32376
+ args: [
32377
+ { name: "id", required: true, description: "Thread ULID (see `echo threads list`)." },
32378
+ {
32379
+ name: "setting",
32380
+ required: true,
32381
+ description: "on (what you say about someone may go on their person page) or off."
32382
+ }
32383
+ ],
32384
+ flags: [],
32385
+ scopes: ["agents:write"],
32386
+ returns: "EchoThreadSummary"
32387
+ },
32361
32388
  {
32362
32389
  path: ["echo", "briefs"],
32363
32390
  summary: "Show today's briefs from the agent, as Now shows them.",
@@ -33906,6 +33933,30 @@ var COMMAND_SPECS = [
33906
33933
  returns: "PersonNoteReceipt",
33907
33934
  notes: "Name the person by contactId or by person (a name or \"Sam's sister\"); no match is not found, several is a conflict listing the candidates. Items: moment (kind, summary, sensitive), gift_idea (title, url), follow_up (label, date), key_date (birthday|anniversary|other, date). The id is minted when omitted; it's the receipt's id, which `do people undo` takes."
33908
33935
  },
33936
+ {
33937
+ path: ["people", "follow-ups"],
33938
+ summary: "The open follow-ups for the people a calendar event is with.",
33939
+ args: [],
33940
+ flags: [{ name: "event", type: "string", description: "The calendar event's id." }],
33941
+ scopes: ["contacts:read"],
33942
+ returns: "EventFollowUp"
33943
+ },
33944
+ {
33945
+ path: ["people", "receipt"],
33946
+ summary: "Read one person note's receipt again: who it was about and what is still there.",
33947
+ args: [{ name: "id", required: true, description: "The note's (receipt's) id." }],
33948
+ flags: [],
33949
+ scopes: ["contacts:read"],
33950
+ returns: "PersonNoteReceipt"
33951
+ },
33952
+ {
33953
+ path: ["people", "drop-sensitive"],
33954
+ summary: "Don't keep a person note's sensitive detail (its summary goes now).",
33955
+ args: [{ name: "id", required: true, description: "The note's (receipt's) id." }],
33956
+ flags: [],
33957
+ scopes: ["contacts:write"],
33958
+ returns: "PersonNoteReceipt"
33959
+ },
33909
33960
  {
33910
33961
  path: ["people", "undo"],
33911
33962
  summary: "Take back everything one person note wrote.",
@@ -37907,6 +37958,18 @@ var HANDLERS = {
37907
37958
  }),
37908
37959
  render: renderRecord
37909
37960
  }),
37961
+ "echo threads people": async ({ args, requireClient }) => {
37962
+ const id = requireArg(args, 0, "thread id");
37963
+ const setting = requireArg(args, 1, "on or off");
37964
+ if (setting !== "on" && setting !== "off")
37965
+ throw usageError("say on or off");
37966
+ return {
37967
+ data: await requireClient().patch(`/echo/threads/${id}`, {
37968
+ peopleCapture: setting === "on"
37969
+ }),
37970
+ render: renderRecord
37971
+ };
37972
+ },
37910
37973
  "echo briefs": async ({ flags, requireClient }) => {
37911
37974
  const since = flagString(flags, "since") ?? startOfToday().toISOString();
37912
37975
  return {
@@ -39152,6 +39215,23 @@ var HANDLERS = {
39152
39215
  const body = parseInput(createPersonNoteInputSchema, { id: ulid3(), ...readDataFlag(flags) });
39153
39216
  return { data: await requireClient().post("/people/notes", body), render: renderRecord };
39154
39217
  },
39218
+ "people follow-ups": async ({ flags, requireClient }) => {
39219
+ const eventId = flagString(flags, "event");
39220
+ if (!eventId)
39221
+ throw usageError("people follow-ups needs --event <calendar event id>");
39222
+ return {
39223
+ data: await requireClient().get("/people/follow-ups", { query: { eventId } }),
39224
+ render: renderRecord
39225
+ };
39226
+ },
39227
+ "people receipt": async ({ args, requireClient }) => ({
39228
+ data: await requireClient().get(`/people/notes/${requireArg(args, 0, "note id")}`),
39229
+ render: renderRecord
39230
+ }),
39231
+ "people drop-sensitive": async ({ args, requireClient }) => ({
39232
+ data: await requireClient().post(`/people/notes/${requireArg(args, 0, "note id")}/drop-sensitive`, {}),
39233
+ render: renderRecord
39234
+ }),
39155
39235
  "people undo": async ({ args, requireClient }) => {
39156
39236
  const id = requireArg(args, 0, "note id");
39157
39237
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.287.0",
3
+ "version": "1.288.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",