@robbeverhelst/do 1.39.0 → 1.40.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 +206 -2
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -19616,6 +19616,24 @@ var watchPosterResultSchema = exports_external.object({
19616
19616
  year: exports_external.number().int().nullable(),
19617
19617
  kind: exports_external.enum(["movie", "show"]).nullable()
19618
19618
  });
19619
+ // ../../packages/schema/src/contracts/games.ts
19620
+ var gameCoverQuerySchema = exports_external.object({
19621
+ title: exports_external.string().min(1).max(300)
19622
+ });
19623
+ var gameCoverResultSchema = exports_external.object({
19624
+ coverUrl: exports_external.string().url().nullable(),
19625
+ year: exports_external.number().int().nullable(),
19626
+ platform: exports_external.string().nullable()
19627
+ });
19628
+ // ../../packages/schema/src/contracts/music.ts
19629
+ var albumCoverQuerySchema = exports_external.object({
19630
+ title: exports_external.string().min(1).max(300)
19631
+ });
19632
+ var albumCoverResultSchema = exports_external.object({
19633
+ coverUrl: exports_external.string().url().nullable(),
19634
+ year: exports_external.number().int().nullable(),
19635
+ artist: exports_external.string().nullable()
19636
+ });
19619
19637
  // ../../packages/schema/src/contracts/tasks.ts
19620
19638
  var taskSchema = createSelectSchema(tasks, {
19621
19639
  scheduledAt: exports_external.coerce.date().nullable(),
@@ -20163,13 +20181,63 @@ var watchFacetSchema = exports_external.object({
20163
20181
  year: exports_external.number().int().min(1888).max(2200).nullish(),
20164
20182
  posterUrl: exports_external.string().url().max(2048).nullish()
20165
20183
  }).strict();
20184
+ var GAME_SHELF_DISPLAY_KIND = "game-shelf";
20185
+ var gameStatusValues = ["backlog", "playing", "beaten", "dropped"];
20186
+ var gameStatusSchema = exports_external.enum(gameStatusValues);
20187
+ var gameFacetSchema = exports_external.object({
20188
+ status: gameStatusSchema.default("backlog"),
20189
+ platform: exports_external.string().min(1).max(100).nullish(),
20190
+ rating: exports_external.number().int().min(1).max(5).nullish(),
20191
+ hoursPlayed: exports_external.number().min(0).max(1e5).nullish(),
20192
+ coverUrl: exports_external.string().url().max(2048).nullish()
20193
+ }).strict();
20194
+ var BOTTLE_SHELF_DISPLAY_KIND = "bottle-shelf";
20195
+ var bottleTypeValues = ["wine", "whisky", "other"];
20196
+ var bottleTypeSchema = exports_external.enum(bottleTypeValues);
20197
+ var bottleFacetSchema = exports_external.object({
20198
+ type: bottleTypeSchema.default("wine"),
20199
+ region: exports_external.string().min(1).max(200).nullish(),
20200
+ vintage: exports_external.number().int().min(1000).max(2200).nullish(),
20201
+ rating: exports_external.number().int().min(1).max(5).nullish(),
20202
+ drinkBy: isoDateString.nullish(),
20203
+ quantity: exports_external.number().int().min(0).max(1e5).nullish()
20204
+ }).strict();
20205
+ var PLACE_SHELF_DISPLAY_KIND = "place-shelf";
20206
+ var placeStatusValues = ["want", "visited"];
20207
+ var placeStatusSchema = exports_external.enum(placeStatusValues);
20208
+ var placeFacetSchema = exports_external.object({
20209
+ status: placeStatusSchema.default("want"),
20210
+ country: exports_external.string().min(1).max(120).nullish(),
20211
+ city: exports_external.string().min(1).max(120).nullish(),
20212
+ lat: exports_external.number().min(-90).max(90).nullish(),
20213
+ lng: exports_external.number().min(-180).max(180).nullish(),
20214
+ rating: exports_external.number().int().min(1).max(5).nullish(),
20215
+ tripLink: exports_external.string().min(1).max(2048).nullish()
20216
+ }).strict();
20217
+ var ALBUM_SHELF_DISPLAY_KIND = "album-shelf";
20218
+ var albumStatusValues = ["want", "owned", "listened"];
20219
+ var albumStatusSchema = exports_external.enum(albumStatusValues);
20220
+ var albumFormatValues = ["vinyl", "digital", "cd"];
20221
+ var albumFormatSchema = exports_external.enum(albumFormatValues);
20222
+ var albumFacetSchema = exports_external.object({
20223
+ status: albumStatusSchema.default("want"),
20224
+ artist: exports_external.string().min(1).max(200).nullish(),
20225
+ format: albumFormatSchema.nullish(),
20226
+ rating: exports_external.number().int().min(1).max(5).nullish(),
20227
+ year: exports_external.number().int().min(1860).max(2200).nullish(),
20228
+ coverUrl: exports_external.string().url().max(2048).nullish()
20229
+ }).strict();
20166
20230
  var facetSchemasByDisplayKind = {
20167
20231
  [MEDIA_SHELF_DISPLAY_KIND]: mediaShelfFacetSchema,
20168
20232
  [PANTRY_DISPLAY_KIND]: pantryFacetSchema,
20169
20233
  [WARDROBE_DISPLAY_KIND]: wardrobeFacetSchema,
20170
20234
  [TOOLS_DISPLAY_KIND]: toolsFacetSchema,
20171
20235
  [MEDS_DISPLAY_KIND]: medsFacetSchema,
20172
- [WATCH_SHELF_DISPLAY_KIND]: watchFacetSchema
20236
+ [WATCH_SHELF_DISPLAY_KIND]: watchFacetSchema,
20237
+ [GAME_SHELF_DISPLAY_KIND]: gameFacetSchema,
20238
+ [BOTTLE_SHELF_DISPLAY_KIND]: bottleFacetSchema,
20239
+ [PLACE_SHELF_DISPLAY_KIND]: placeFacetSchema,
20240
+ [ALBUM_SHELF_DISPLAY_KIND]: albumFacetSchema
20173
20241
  };
20174
20242
 
20175
20243
  // ../../packages/schema/src/contracts/inventory.ts
@@ -21219,6 +21287,10 @@ var presetEntitySchema = exports_external.enum([
21219
21287
  "inventory",
21220
21288
  "library",
21221
21289
  "watchlist",
21290
+ "games",
21291
+ "cellar",
21292
+ "places",
21293
+ "music",
21222
21294
  "routine",
21223
21295
  "area",
21224
21296
  "project",
@@ -21575,6 +21647,38 @@ var automationPresets = [
21575
21647
  }
21576
21648
  ];
21577
21649
 
21650
+ // ../../packages/schema/src/presets/features/cellar.ts
21651
+ var bottles = [
21652
+ { title: "Rioja Reserva", type: "wine", region: "Rioja", vintage: 2016 },
21653
+ { title: "Lagavulin 16", type: "whisky", region: "Islay", vintage: 2008 },
21654
+ { title: "Barolo", type: "wine", region: "Piedmont", vintage: 2018 }
21655
+ ];
21656
+ var cellarPreset = {
21657
+ key: "cellar",
21658
+ entity: "cellar",
21659
+ name: "Cellar",
21660
+ description: "Wine & whisky you keep \u2014 type, region, vintage and ratings.",
21661
+ icon: "\uD83C\uDF77",
21662
+ color: "#9f1239",
21663
+ category: "Collecting",
21664
+ displayKind: BOTTLE_SHELF_DISPLAY_KIND,
21665
+ recipe: {
21666
+ nodes: [
21667
+ {
21668
+ ref: "list",
21669
+ kind: "shopping_list",
21670
+ title: "Cellar",
21671
+ displayKind: BOTTLE_SHELF_DISPLAY_KIND,
21672
+ items: bottles.map((b) => ({
21673
+ title: b.title,
21674
+ facet: { type: b.type, region: b.region, vintage: b.vintage, quantity: 1 }
21675
+ }))
21676
+ }
21677
+ ]
21678
+ }
21679
+ };
21680
+ var cellarPresets = [cellarPreset];
21681
+
21578
21682
  // ../../packages/schema/src/presets/features/challenges.ts
21579
21683
  var challengePresetDefs = [
21580
21684
  {
@@ -21722,6 +21826,38 @@ var contactPresets = contactCircleDefs.map((def) => ({
21722
21826
  }
21723
21827
  }));
21724
21828
 
21829
+ // ../../packages/schema/src/presets/features/games.ts
21830
+ var games2 = [
21831
+ { title: "Hollow Knight: Silksong", platform: "PC" },
21832
+ { title: "Elden Ring", platform: "PS5" },
21833
+ { title: "Baldur's Gate 3", platform: "PC" }
21834
+ ];
21835
+ var gamesPreset = {
21836
+ key: "games",
21837
+ entity: "games",
21838
+ name: "Games to play",
21839
+ description: "A backlog of games \u2014 covers, status and ratings.",
21840
+ icon: "\uD83C\uDFAE",
21841
+ color: "#8b5cf6",
21842
+ category: "Playing",
21843
+ displayKind: GAME_SHELF_DISPLAY_KIND,
21844
+ recipe: {
21845
+ nodes: [
21846
+ {
21847
+ ref: "list",
21848
+ kind: "shopping_list",
21849
+ title: "Games to play",
21850
+ displayKind: GAME_SHELF_DISPLAY_KIND,
21851
+ items: games2.map((g) => ({
21852
+ title: g.title,
21853
+ facet: { platform: g.platform, status: "backlog" }
21854
+ }))
21855
+ }
21856
+ ]
21857
+ }
21858
+ };
21859
+ var gamesPresets = [gamesPreset];
21860
+
21725
21861
  // ../../packages/schema/src/presets/features/habits.ts
21726
21862
  var habitPresets = [
21727
21863
  {
@@ -22598,6 +22734,70 @@ var mealPresets = [
22598
22734
  }
22599
22735
  ];
22600
22736
 
22737
+ // ../../packages/schema/src/presets/features/music.ts
22738
+ var albums = [
22739
+ { title: "In Rainbows", artist: "Radiohead", year: 2007 },
22740
+ { title: "Blonde", artist: "Frank Ocean", year: 2016 },
22741
+ { title: "Random Access Memories", artist: "Daft Punk", year: 2013 }
22742
+ ];
22743
+ var musicPreset = {
22744
+ key: "music",
22745
+ entity: "music",
22746
+ name: "Albums",
22747
+ description: "Albums to hear and own \u2014 artist, format, status and ratings.",
22748
+ icon: "\uD83D\uDCBF",
22749
+ color: "#db2777",
22750
+ category: "Listening",
22751
+ displayKind: ALBUM_SHELF_DISPLAY_KIND,
22752
+ recipe: {
22753
+ nodes: [
22754
+ {
22755
+ ref: "list",
22756
+ kind: "shopping_list",
22757
+ title: "Albums",
22758
+ displayKind: ALBUM_SHELF_DISPLAY_KIND,
22759
+ items: albums.map((a) => ({
22760
+ title: a.title,
22761
+ facet: { artist: a.artist, year: a.year, status: "want" }
22762
+ }))
22763
+ }
22764
+ ]
22765
+ }
22766
+ };
22767
+ var musicPresets = [musicPreset];
22768
+
22769
+ // ../../packages/schema/src/presets/features/places.ts
22770
+ var places = [
22771
+ { title: "Kyoto temples", country: "Japan", city: "Kyoto" },
22772
+ { title: "Northern Lights", country: "Iceland", city: "Reykjav\xEDk" },
22773
+ { title: "Patagonia trek", country: "Argentina", city: "El Chalt\xE9n" }
22774
+ ];
22775
+ var placesPreset = {
22776
+ key: "places",
22777
+ entity: "places",
22778
+ name: "Places to go",
22779
+ description: "A bucket-list of places \u2014 want/visited, location and ratings.",
22780
+ icon: "\uD83D\uDCCD",
22781
+ color: "#0d9488",
22782
+ category: "Exploring",
22783
+ displayKind: PLACE_SHELF_DISPLAY_KIND,
22784
+ recipe: {
22785
+ nodes: [
22786
+ {
22787
+ ref: "list",
22788
+ kind: "shopping_list",
22789
+ title: "Places to go",
22790
+ displayKind: PLACE_SHELF_DISPLAY_KIND,
22791
+ items: places.map((p) => ({
22792
+ title: p.title,
22793
+ facet: { country: p.country, city: p.city, status: "want" }
22794
+ }))
22795
+ }
22796
+ ]
22797
+ }
22798
+ };
22799
+ var placesPresets = [placesPreset];
22800
+
22601
22801
  // ../../packages/schema/src/presets/features/projects.ts
22602
22802
  var projectPresetDefs = [
22603
22803
  {
@@ -22823,6 +23023,10 @@ var featurePresets = [
22823
23023
  ...habitPresets,
22824
23024
  ...shoppingListPresets,
22825
23025
  ...watchlistPresets,
23026
+ ...gamesPresets,
23027
+ ...cellarPresets,
23028
+ ...placesPresets,
23029
+ ...musicPresets,
22826
23030
  ...inventoryPresets,
22827
23031
  ...routinePresets,
22828
23032
  ...areaPresets,
@@ -23088,7 +23292,7 @@ function parseCapture2(input) {
23088
23292
 
23089
23293
  // src/meta.ts
23090
23294
  var CLI_NAME = "do";
23091
- var VERSION = "1.39.0";
23295
+ var VERSION = "1.40.0";
23092
23296
  var API_PREFIX = "/api/v1";
23093
23297
  var DEFAULT_API_URL = "http://localhost:3001";
23094
23298
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "type": "module",