@robbeverhelst/do 1.35.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.
- package/dist/do.js +129 -5
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -20211,6 +20211,13 @@ var mealPlanViewSchema = mealPlanSchema.extend({
|
|
|
20211
20211
|
deletedAt: exports_external.coerce.date().nullable(),
|
|
20212
20212
|
recipeTitle: exports_external.string().nullable()
|
|
20213
20213
|
});
|
|
20214
|
+
var generateGroceryListInputSchema = exports_external.object({
|
|
20215
|
+
id: ulidSchema,
|
|
20216
|
+
title: exports_external.string().min(1),
|
|
20217
|
+
from: exports_external.coerce.date(),
|
|
20218
|
+
to: exports_external.coerce.date(),
|
|
20219
|
+
deduplicateInventory: exports_external.boolean().optional()
|
|
20220
|
+
}).strict();
|
|
20214
20221
|
// ../../packages/schema/src/contracts/notes.ts
|
|
20215
20222
|
var noteSchema = createSelectSchema(notes);
|
|
20216
20223
|
var createNoteInputSchema = exports_external.object({
|
|
@@ -21671,6 +21678,27 @@ var habitPresets = [
|
|
|
21671
21678
|
]
|
|
21672
21679
|
}
|
|
21673
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
|
+
},
|
|
21674
21702
|
{
|
|
21675
21703
|
key: "meditate",
|
|
21676
21704
|
entity: "habit",
|
|
@@ -21679,6 +21707,7 @@ var habitPresets = [
|
|
|
21679
21707
|
icon: "\uD83E\uDDD8",
|
|
21680
21708
|
color: "#a78bfa",
|
|
21681
21709
|
category: "Mindfulness",
|
|
21710
|
+
displayKind: "duration-timer",
|
|
21682
21711
|
recipe: {
|
|
21683
21712
|
nodes: [
|
|
21684
21713
|
{
|
|
@@ -21701,6 +21730,7 @@ var habitPresets = [
|
|
|
21701
21730
|
icon: "\uD83D\uDC5F",
|
|
21702
21731
|
color: "#34d399",
|
|
21703
21732
|
category: "Fitness",
|
|
21733
|
+
displayKind: "counter",
|
|
21704
21734
|
recipe: {
|
|
21705
21735
|
nodes: [
|
|
21706
21736
|
{
|
|
@@ -21778,19 +21808,44 @@ var habitPresets = [
|
|
|
21778
21808
|
key: "workout",
|
|
21779
21809
|
entity: "habit",
|
|
21780
21810
|
name: "Workout",
|
|
21781
|
-
description: "
|
|
21811
|
+
description: "Get a 30-minute session in.",
|
|
21782
21812
|
icon: "\uD83C\uDFCB\uFE0F",
|
|
21783
21813
|
color: "#fb7185",
|
|
21784
21814
|
category: "Fitness",
|
|
21815
|
+
displayKind: "duration-timer",
|
|
21785
21816
|
recipe: {
|
|
21786
21817
|
nodes: [
|
|
21787
21818
|
{
|
|
21788
21819
|
ref: "habit",
|
|
21789
21820
|
kind: "habit",
|
|
21790
21821
|
title: "Workout",
|
|
21791
|
-
measurementType: "
|
|
21792
|
-
|
|
21793
|
-
|
|
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"
|
|
21794
21849
|
}
|
|
21795
21850
|
]
|
|
21796
21851
|
}
|
|
@@ -22018,6 +22073,75 @@ var habitPresets = [
|
|
|
22018
22073
|
]
|
|
22019
22074
|
}
|
|
22020
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
|
+
},
|
|
22021
22145
|
{
|
|
22022
22146
|
key: "gratitude",
|
|
22023
22147
|
entity: "habit",
|
|
@@ -22894,7 +23018,7 @@ function parseCapture2(input) {
|
|
|
22894
23018
|
|
|
22895
23019
|
// src/meta.ts
|
|
22896
23020
|
var CLI_NAME = "do";
|
|
22897
|
-
var VERSION = "1.
|
|
23021
|
+
var VERSION = "1.37.0";
|
|
22898
23022
|
var API_PREFIX = "/api/v1";
|
|
22899
23023
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
22900
23024
|
|