@robbeverhelst/do 1.32.0 → 1.33.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 +58 -12
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -19589,6 +19589,15 @@ var bookCoverResultSchema = exports_external.object({
19589
19589
  coverUrl: exports_external.string().url().nullable(),
19590
19590
  author: exports_external.string().nullable()
19591
19591
  });
19592
+ // ../../packages/schema/src/contracts/watch.ts
19593
+ var watchPosterQuerySchema = exports_external.object({
19594
+ title: exports_external.string().min(1).max(300)
19595
+ });
19596
+ var watchPosterResultSchema = exports_external.object({
19597
+ posterUrl: exports_external.string().url().nullable(),
19598
+ year: exports_external.number().int().nullable(),
19599
+ kind: exports_external.enum(["movie", "show"]).nullable()
19600
+ });
19592
19601
  // ../../packages/schema/src/contracts/tasks.ts
19593
19602
  var taskSchema = createSelectSchema(tasks, {
19594
19603
  scheduledAt: exports_external.coerce.date().nullable(),
@@ -21086,8 +21095,21 @@ var mediaShelfFacetSchema = exports_external.object({
21086
21095
  status: bookStatusSchema.default("to-read"),
21087
21096
  rating: exports_external.number().int().min(1).max(5).nullish()
21088
21097
  }).strict();
21098
+ var WATCH_SHELF_DISPLAY_KIND = "watch-shelf";
21099
+ var watchKindValues = ["movie", "show"];
21100
+ var watchKindSchema = exports_external.enum(watchKindValues);
21101
+ var watchStatusValues = ["to-watch", "watching", "watched"];
21102
+ var watchStatusSchema = exports_external.enum(watchStatusValues);
21103
+ var watchFacetSchema = exports_external.object({
21104
+ kind: watchKindSchema.default("movie"),
21105
+ status: watchStatusSchema.default("to-watch"),
21106
+ rating: exports_external.number().int().min(1).max(5).nullish(),
21107
+ year: exports_external.number().int().min(1888).max(2200).nullish(),
21108
+ posterUrl: exports_external.string().url().max(2048).nullish()
21109
+ }).strict();
21089
21110
  var facetSchemasByDisplayKind = {
21090
- [MEDIA_SHELF_DISPLAY_KIND]: mediaShelfFacetSchema
21111
+ [MEDIA_SHELF_DISPLAY_KIND]: mediaShelfFacetSchema,
21112
+ [WATCH_SHELF_DISPLAY_KIND]: watchFacetSchema
21091
21113
  };
21092
21114
  // ../../packages/schema/src/presets/recipe.ts
21093
21115
  var presetEntitySchema = exports_external.enum([
@@ -21095,6 +21117,7 @@ var presetEntitySchema = exports_external.enum([
21095
21117
  "list",
21096
21118
  "inventory",
21097
21119
  "library",
21120
+ "watchlist",
21098
21121
  "routine",
21099
21122
  "area",
21100
21123
  "project",
@@ -22034,16 +22057,6 @@ var inventoryPresets = [
22034
22057
  // ../../packages/schema/src/presets/features/lists.ts
22035
22058
  var shoppingItems2 = (...titles) => titles.map((title) => ({ title }));
22036
22059
  var listPresetDefs = [
22037
- {
22038
- key: "watchlist",
22039
- name: "Watchlist",
22040
- description: "Films and shows to watch.",
22041
- icon: "\uD83C\uDFAC",
22042
- color: "#a78bfa",
22043
- category: "Entertainment",
22044
- title: "Watchlist",
22045
- items: ["Dune: Part Two", "The Bear", "Severance"]
22046
- },
22047
22060
  {
22048
22061
  key: "groceries",
22049
22062
  name: "Groceries",
@@ -22555,10 +22568,43 @@ var routinePresets = routinePresetDefs.map((def) => ({
22555
22568
  }
22556
22569
  }));
22557
22570
 
22571
+ // ../../packages/schema/src/presets/features/watchlist.ts
22572
+ var watchlistTitles = [
22573
+ { title: "Dune: Part Two", kind: "movie", year: 2024 },
22574
+ { title: "Oppenheimer", kind: "movie", year: 2023 },
22575
+ { title: "Severance", kind: "show", year: 2022 }
22576
+ ];
22577
+ var watchlistPreset = {
22578
+ key: "watchlist",
22579
+ entity: "watchlist",
22580
+ name: "Watchlist",
22581
+ description: "Films & shows to watch \u2014 posters, status and ratings.",
22582
+ icon: "\uD83C\uDFAC",
22583
+ color: "#6366f1",
22584
+ category: "Watching",
22585
+ displayKind: WATCH_SHELF_DISPLAY_KIND,
22586
+ recipe: {
22587
+ nodes: [
22588
+ {
22589
+ ref: "list",
22590
+ kind: "shopping_list",
22591
+ title: "Watchlist",
22592
+ displayKind: WATCH_SHELF_DISPLAY_KIND,
22593
+ items: watchlistTitles.map((t) => ({
22594
+ title: t.title,
22595
+ facet: { kind: t.kind, year: t.year, status: "to-watch" }
22596
+ }))
22597
+ }
22598
+ ]
22599
+ }
22600
+ };
22601
+ var watchlistPresets = [watchlistPreset];
22602
+
22558
22603
  // ../../packages/schema/src/presets/features/index.ts
22559
22604
  var featurePresets = [
22560
22605
  ...habitPresets,
22561
22606
  ...shoppingListPresets,
22607
+ ...watchlistPresets,
22562
22608
  ...inventoryPresets,
22563
22609
  ...routinePresets,
22564
22610
  ...areaPresets,
@@ -22824,7 +22870,7 @@ function parseCapture2(input) {
22824
22870
 
22825
22871
  // src/meta.ts
22826
22872
  var CLI_NAME = "do";
22827
- var VERSION = "1.32.0";
22873
+ var VERSION = "1.33.0";
22828
22874
  var API_PREFIX = "/api/v1";
22829
22875
  var DEFAULT_API_URL = "http://localhost:3001";
22830
22876
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "type": "module",