@robbeverhelst/do 1.36.0 → 1.37.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 +122 -5
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -21678,6 +21678,27 @@ var habitPresets = [
21678
21678
  ]
21679
21679
  }
21680
21680
  },
21681
+ {
21682
+ key: "daily-practice",
21683
+ entity: "habit",
21684
+ name: "Daily Practice",
21685
+ description: "Show up every day and build the grid.",
21686
+ icon: "\uD83D\uDDD3\uFE0F",
21687
+ color: "#34d399",
21688
+ category: "Growth",
21689
+ displayKind: "calendar-heatmap",
21690
+ recipe: {
21691
+ nodes: [
21692
+ {
21693
+ ref: "habit",
21694
+ kind: "habit",
21695
+ title: "Daily Practice",
21696
+ measurementType: "binary",
21697
+ period: "day"
21698
+ }
21699
+ ]
21700
+ }
21701
+ },
21681
21702
  {
21682
21703
  key: "meditate",
21683
21704
  entity: "habit",
@@ -21686,6 +21707,7 @@ var habitPresets = [
21686
21707
  icon: "\uD83E\uDDD8",
21687
21708
  color: "#a78bfa",
21688
21709
  category: "Mindfulness",
21710
+ displayKind: "duration-timer",
21689
21711
  recipe: {
21690
21712
  nodes: [
21691
21713
  {
@@ -21708,6 +21730,7 @@ var habitPresets = [
21708
21730
  icon: "\uD83D\uDC5F",
21709
21731
  color: "#34d399",
21710
21732
  category: "Fitness",
21733
+ displayKind: "counter",
21711
21734
  recipe: {
21712
21735
  nodes: [
21713
21736
  {
@@ -21785,19 +21808,44 @@ var habitPresets = [
21785
21808
  key: "workout",
21786
21809
  entity: "habit",
21787
21810
  name: "Workout",
21788
- description: "Train three times a week.",
21811
+ description: "Get a 30-minute session in.",
21789
21812
  icon: "\uD83C\uDFCB\uFE0F",
21790
21813
  color: "#fb7185",
21791
21814
  category: "Fitness",
21815
+ displayKind: "duration-timer",
21792
21816
  recipe: {
21793
21817
  nodes: [
21794
21818
  {
21795
21819
  ref: "habit",
21796
21820
  kind: "habit",
21797
21821
  title: "Workout",
21798
- measurementType: "binary",
21799
- period: "week",
21800
- frequencyCount: 3
21822
+ measurementType: "duration",
21823
+ targetValue: 30,
21824
+ targetUnit: "min",
21825
+ period: "day"
21826
+ }
21827
+ ]
21828
+ }
21829
+ },
21830
+ {
21831
+ key: "focus",
21832
+ entity: "habit",
21833
+ name: "Focus",
21834
+ description: "Bank 25 minutes of deep work.",
21835
+ icon: "\uD83C\uDFAF",
21836
+ color: "#6366f1",
21837
+ category: "Growth",
21838
+ displayKind: "duration-timer",
21839
+ recipe: {
21840
+ nodes: [
21841
+ {
21842
+ ref: "habit",
21843
+ kind: "habit",
21844
+ title: "Focus",
21845
+ measurementType: "duration",
21846
+ targetValue: 25,
21847
+ targetUnit: "min",
21848
+ period: "day"
21801
21849
  }
21802
21850
  ]
21803
21851
  }
@@ -22025,6 +22073,75 @@ var habitPresets = [
22025
22073
  ]
22026
22074
  }
22027
22075
  },
22076
+ {
22077
+ key: "caffeine",
22078
+ entity: "habit",
22079
+ name: "Caffeine",
22080
+ description: "Stay under 400 mg of caffeine a day.",
22081
+ icon: "\u2615",
22082
+ color: "#a16207",
22083
+ category: "Health",
22084
+ displayKind: "counter",
22085
+ recipe: {
22086
+ nodes: [
22087
+ {
22088
+ ref: "habit",
22089
+ kind: "habit",
22090
+ title: "Caffeine",
22091
+ measurementType: "quantitative",
22092
+ targetValue: 400,
22093
+ targetUnit: "mg",
22094
+ period: "day"
22095
+ }
22096
+ ]
22097
+ }
22098
+ },
22099
+ {
22100
+ key: "screen-time",
22101
+ entity: "habit",
22102
+ name: "Screen Time",
22103
+ description: "Keep screen time to 120 minutes a day.",
22104
+ icon: "\uD83D\uDCF1",
22105
+ color: "#818cf8",
22106
+ category: "Health",
22107
+ displayKind: "counter",
22108
+ recipe: {
22109
+ nodes: [
22110
+ {
22111
+ ref: "habit",
22112
+ kind: "habit",
22113
+ title: "Screen Time",
22114
+ measurementType: "quantitative",
22115
+ targetValue: 120,
22116
+ targetUnit: "min",
22117
+ period: "day"
22118
+ }
22119
+ ]
22120
+ }
22121
+ },
22122
+ {
22123
+ key: "pages",
22124
+ entity: "habit",
22125
+ name: "Pages",
22126
+ description: "Read 30 pages a day.",
22127
+ icon: "\uD83D\uDCC4",
22128
+ color: "#f59e0b",
22129
+ category: "Growth",
22130
+ displayKind: "counter",
22131
+ recipe: {
22132
+ nodes: [
22133
+ {
22134
+ ref: "habit",
22135
+ kind: "habit",
22136
+ title: "Pages",
22137
+ measurementType: "quantitative",
22138
+ targetValue: 30,
22139
+ targetUnit: "pages",
22140
+ period: "day"
22141
+ }
22142
+ ]
22143
+ }
22144
+ },
22028
22145
  {
22029
22146
  key: "gratitude",
22030
22147
  entity: "habit",
@@ -22901,7 +23018,7 @@ function parseCapture2(input) {
22901
23018
 
22902
23019
  // src/meta.ts
22903
23020
  var CLI_NAME = "do";
22904
- var VERSION = "1.36.0";
23021
+ var VERSION = "1.37.0";
22905
23022
  var API_PREFIX = "/api/v1";
22906
23023
  var DEFAULT_API_URL = "http://localhost:3001";
22907
23024
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "type": "module",