@robbeverhelst/do 1.406.0 → 1.407.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 +22 -3
  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.406.0";
14423
+ var VERSION = "1.407.0";
14424
14424
  var API_PREFIX = "/api/v1";
14425
14425
  var DEFAULT_API_URL = "http://localhost:3001";
14426
14426
 
@@ -22722,6 +22722,8 @@ var habitHeatmapCellSchema = object({
22722
22722
  satisfied: boolean2(),
22723
22723
  rest: boolean2().default(false),
22724
22724
  notNeeded: boolean2().default(false),
22725
+ skipped: boolean2().default(false),
22726
+ pausedBy: habitPauseSchema.shape.by.optional(),
22725
22727
  notes: array(string2()).optional()
22726
22728
  });
22727
22729
  var habitDetailSchema = habitSummarySchema.extend({
@@ -22913,7 +22915,9 @@ var habitNotDueSchema = object({
22913
22915
  var habitWeekDaySchema = object({
22914
22916
  day: exports_iso.date(),
22915
22917
  done: number2().int().nonnegative().nullable(),
22916
- due: number2().int().nonnegative()
22918
+ due: number2().int().nonnegative(),
22919
+ notNeeded: number2().int().nonnegative().default(0),
22920
+ skipped: number2().int().nonnegative().default(0)
22917
22921
  });
22918
22922
  var habitSectionTotalsSchema = object({
22919
22923
  dueToday: number2().int().nonnegative(),
@@ -22921,11 +22925,26 @@ var habitSectionTotalsSchema = object({
22921
22925
  weekDone: number2().int().nonnegative(),
22922
22926
  weekDue: number2().int().nonnegative()
22923
22927
  });
22928
+ var HABIT_ANSWERS_DAYS = 30;
22929
+ var habitAnswersSummarySchema = object({
22930
+ days: number2().int().positive(),
22931
+ expected: number2().int().nonnegative(),
22932
+ answered: number2().int().nonnegative(),
22933
+ notNeeded: number2().int().nonnegative(),
22934
+ skipped: number2().int().nonnegative()
22935
+ });
22924
22936
  var habitsTodayResponseSchema = habitsTodayBaseSchema.extend({
22925
22937
  moments: array(habitSectionMomentSchema).default([]),
22926
22938
  notDue: array(habitNotDueSchema).default([]),
22927
22939
  week: array(habitWeekDaySchema).default([]),
22928
- totals: habitSectionTotalsSchema.default({ dueToday: 0, doneToday: 0, weekDone: 0, weekDue: 0 })
22940
+ totals: habitSectionTotalsSchema.default({ dueToday: 0, doneToday: 0, weekDone: 0, weekDue: 0 }),
22941
+ answers: habitAnswersSummarySchema.default({
22942
+ days: HABIT_ANSWERS_DAYS,
22943
+ expected: 0,
22944
+ answered: 0,
22945
+ notNeeded: 0,
22946
+ skipped: 0
22947
+ })
22929
22948
  });
22930
22949
 
22931
22950
  // ../../packages/schema/src/contracts/metrics.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.406.0",
3
+ "version": "1.407.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",