@robbeverhelst/do 1.337.0 → 1.339.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 +11 -3
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -14418,7 +14418,7 @@ var configError = (message) => new CliError("config", message, EXIT.CONFIG);
14418
14418
 
14419
14419
  // src/meta.ts
14420
14420
  var CLI_NAME = "do";
14421
- var VERSION = "1.337.0";
14421
+ var VERSION = "1.339.0";
14422
14422
  var API_PREFIX = "/api/v1";
14423
14423
  var DEFAULT_API_URL = "http://localhost:3001";
14424
14424
 
@@ -18319,6 +18319,7 @@ var routineRunSteps = pgTable("routine_run_steps", {
18319
18319
  var projects = pgTable("projects", {
18320
18320
  ...leafColumns(),
18321
18321
  status: projectStatus("status").notNull().default("planning"),
18322
+ icon: text("icon"),
18322
18323
  progress: integer2("progress").notNull().default(0),
18323
18324
  startAt: timestamp("start_at", { withTimezone: true }),
18324
18325
  dueAt: timestamp("due_at", { withTimezone: true }),
@@ -21970,6 +21971,7 @@ var taskListFilterSchema = _enum2(["all", "unsorted", "starred"]);
21970
21971
 
21971
21972
  // ../../packages/schema/src/contracts/projects.ts
21972
21973
  var projectSchema = createSelectSchema(projects, {
21974
+ icon: string2().nullable().default(null),
21973
21975
  startAt: exports_coerce.date().nullable(),
21974
21976
  dueAt: exports_coerce.date().nullable(),
21975
21977
  completedAt: exports_coerce.date().nullish(),
@@ -21988,12 +21990,14 @@ var projectMilestoneInputSchema = createInsertSchema(projectMilestones, {
21988
21990
  completedAt: exports_coerce.date().nullish(),
21989
21991
  sortOrder: number2().int().min(0).optional()
21990
21992
  }).omit({ tenantId: true, projectId: true, createdAt: true });
21993
+ var projectIconSchema = string2().trim().min(1).max(64).regex(/^[a-z0-9-]+$/, "an icon name: lower-case letters, digits and dashes");
21991
21994
  var createProjectInputSchema = createInsertSchema(projects, {
21992
21995
  id: ulidSchema,
21993
21996
  progress: number2().int().min(0).max(100).optional(),
21994
21997
  startAt: exports_coerce.date().nullish(),
21995
21998
  dueAt: exports_coerce.date().nullish(),
21996
- areaId: ulidSchema.nullish()
21999
+ areaId: ulidSchema.nullish(),
22000
+ icon: projectIconSchema.nullish()
21997
22001
  }).omit({ tenantId: true, completedAt: true, finishProposedAt: true, finishNotYetAt: true }).extend({
21998
22002
  title: string2().min(1),
21999
22003
  parentId: ulidSchema.nullish(),
@@ -22004,7 +22008,8 @@ var updateProjectInputSchema = createUpdateSchema(projects, {
22004
22008
  progress: number2().int().min(0).max(100).optional(),
22005
22009
  startAt: exports_coerce.date().nullish(),
22006
22010
  dueAt: exports_coerce.date().nullish(),
22007
- areaId: ulidSchema.nullish()
22011
+ areaId: ulidSchema.nullish(),
22012
+ icon: projectIconSchema.nullish()
22008
22013
  }).omit({ id: true, tenantId: true, completedAt: true, finishProposedAt: true }).extend({
22009
22014
  title: string2().min(1).optional(),
22010
22015
  finishNotYetAt: exports_coerce.date().nullish(),
@@ -23989,6 +23994,9 @@ var calendarConnectionCalendarSchema = createSelectSchema(calendarConnectionCale
23989
23994
  createdAt: exports_coerce.date(),
23990
23995
  updatedAt: exports_coerce.date()
23991
23996
  });
23997
+ var calendarConnectionCalendarsSchema = object({
23998
+ calendars: array(calendarConnectionCalendarSchema)
23999
+ });
23992
24000
  var updateCalendarConnectionCalendarInputSchema = object({
23993
24001
  showInDo: boolean2().optional(),
23994
24002
  countsAsBusy: boolean2().optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.337.0",
3
+ "version": "1.339.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",