@robbeverhelst/do 1.376.0 → 1.377.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 +9 -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.376.0";
14423
+ var VERSION = "1.377.0";
14424
14424
  var API_PREFIX = "/api/v1";
14425
14425
  var DEFAULT_API_URL = "http://localhost:3001";
14426
14426
 
@@ -33277,6 +33277,7 @@ var journalDays = pgTable("journal_days", {
33277
33277
  day: date5("day", { mode: "string" }).notNull(),
33278
33278
  status: journalDayStatus("status").notNull().default("open"),
33279
33279
  summaryNoteId: text("summary_note_id").references(() => nodes.id, { onDelete: "set null" }),
33280
+ notesNoteId: text("notes_note_id").references(() => nodes.id, { onDelete: "set null" }),
33280
33281
  highlights: jsonb("highlights").$type().notNull().default(sql`'[]'::jsonb`),
33281
33282
  tags: text("tags").array().notNull().default(sql`'{}'::text[]`),
33282
33283
  source: journalDaySource("source").notNull().default("manual"),
@@ -33379,7 +33380,8 @@ var journalTagsSchema = array(string2().trim().min(1).max(40)).max(20).transform
33379
33380
  var journalDaySchema = createSelectSchema(journalDays, {
33380
33381
  day: journalDateSchema,
33381
33382
  highlights: array(journalHighlightSchema).max(JOURNAL_HIGHLIGHTS_MAX),
33382
- tags: array(string2())
33383
+ tags: array(string2()),
33384
+ notesNoteId: (s) => s.nullable().default(null)
33383
33385
  });
33384
33386
  var journalEntrySchema = object({
33385
33387
  id: string2(),
@@ -33394,8 +33396,13 @@ var journalDayViewSchema = journalDaySchema.extend({
33394
33396
  createdAt: exports_coerce.date(),
33395
33397
  updatedAt: exports_coerce.date(),
33396
33398
  summary: journalEntrySchema.nullable(),
33399
+ notes: journalEntrySchema.nullable().default(null),
33397
33400
  entries: array(journalEntrySchema)
33398
33401
  });
33402
+ var JOURNAL_NOTES_MAX = 20000;
33403
+ var journalWriteNotesInputSchema = object({
33404
+ body: string2().max(JOURNAL_NOTES_MAX)
33405
+ });
33399
33406
  var journalMetricValueSchema = object({
33400
33407
  key: string2(),
33401
33408
  label: string2(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.376.0",
3
+ "version": "1.377.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",