@robbeverhelst/do 1.66.0 → 1.67.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 +65 -1
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -22206,6 +22206,70 @@ function toCollectionTypeSummary(config2) {
22206
22206
  };
22207
22207
  }
22208
22208
  var COLLECTION_TYPE_SUMMARIES = COLLECTION_TYPE_LIST.map(toCollectionTypeSummary);
22209
+ // ../../packages/schema/src/presets/tracking-types.ts
22210
+ var trackingTypeValues = ["yesno", "meter", "timer", "quit", "trend"];
22211
+ var trackingTypeSchema = exports_external.enum(trackingTypeValues);
22212
+ var TRACKING_TYPES = {
22213
+ yesno: {
22214
+ key: "yesno",
22215
+ label: "Yes / no",
22216
+ question: "Did you do it? A simple daily tick.",
22217
+ measurementType: "binary",
22218
+ looks: [{ displayKind: "calendar-heatmap", label: "Calendar" }],
22219
+ target: "none",
22220
+ streak: "tick"
22221
+ },
22222
+ meter: {
22223
+ key: "meter",
22224
+ label: "Count toward a target",
22225
+ question: "Rack up an amount toward a goal each period.",
22226
+ measurementType: "quantitative",
22227
+ looks: [
22228
+ { displayKind: "goal-ring", label: "Ring" },
22229
+ { displayKind: "counter", label: "Counter" },
22230
+ { displayKind: "water-cup", label: "Cup" }
22231
+ ],
22232
+ target: "required",
22233
+ targetLabel: "Target",
22234
+ targetPlaceholder: "8",
22235
+ unitPlaceholder: "glasses",
22236
+ streak: "reach-target"
22237
+ },
22238
+ timer: {
22239
+ key: "timer",
22240
+ label: "Time it",
22241
+ question: "Track time spent \u2014 meditate, focus, work out.",
22242
+ measurementType: "duration",
22243
+ looks: [{ displayKind: "duration-timer", label: "Timer" }],
22244
+ target: "optional",
22245
+ targetLabel: "Target",
22246
+ targetPlaceholder: "30",
22247
+ unitPlaceholder: "min",
22248
+ streak: "reach-target"
22249
+ },
22250
+ quit: {
22251
+ key: "quit",
22252
+ label: "Quit it",
22253
+ question: "Stay clean and count the days \u2014 no smoking, no sugar.",
22254
+ measurementType: "negative",
22255
+ looks: [{ displayKind: "abstinence-streak", label: "Abstinence" }],
22256
+ target: "none",
22257
+ streak: "stay-clean"
22258
+ },
22259
+ trend: {
22260
+ key: "trend",
22261
+ label: "Track a number over time",
22262
+ question: "Log a number and watch the trend \u2014 weight, mood, sleep.",
22263
+ measurementType: "quantitative",
22264
+ looks: [{ displayKind: "trend-chart", label: "Trend" }],
22265
+ target: "optional",
22266
+ targetLabel: "Target (optional)",
22267
+ targetPlaceholder: "70",
22268
+ unitPlaceholder: "kg",
22269
+ streak: "record"
22270
+ }
22271
+ };
22272
+ var TRACKING_TYPE_LIST = trackingTypeValues.map((k) => TRACKING_TYPES[k]);
22209
22273
  // ../../packages/schema/src/presets/recipe.ts
22210
22274
  var presetEntitySchema = exports_external.enum([
22211
22275
  "habit",
@@ -24224,7 +24288,7 @@ function parseCapture2(input, now) {
24224
24288
 
24225
24289
  // src/meta.ts
24226
24290
  var CLI_NAME = "do";
24227
- var VERSION = "1.66.0";
24291
+ var VERSION = "1.67.0";
24228
24292
  var API_PREFIX = "/api/v1";
24229
24293
  var DEFAULT_API_URL = "http://localhost:3001";
24230
24294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.66.0",
3
+ "version": "1.67.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "type": "module",