fluncle 0.286.0 → 0.288.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/bin/fluncle.mjs +49 -49
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -704,7 +704,7 @@ function parseVersion(version) {
704
704
  var currentVersion;
705
705
  var init_version = __esm(() => {
706
706
  init_output();
707
- currentVersion = "0.286.0".trim() ? "0.286.0".trim() : "0.1.0";
707
+ currentVersion = "0.288.0".trim() ? "0.288.0".trim() : "0.1.0";
708
708
  });
709
709
 
710
710
  // src/update-notifier.ts
@@ -11145,7 +11145,7 @@ function parseVersion2(version) {
11145
11145
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
11146
11146
  var init_version2 = __esm(() => {
11147
11147
  init_output();
11148
- currentVersion2 = "0.286.0".trim() ? "0.286.0".trim() : "0.1.0";
11148
+ currentVersion2 = "0.288.0".trim() ? "0.288.0".trim() : "0.1.0";
11149
11149
  });
11150
11150
 
11151
11151
  // ../../packages/registry/src/index.ts
@@ -11311,9 +11311,9 @@ var init_src = __esm(() => {
11311
11311
  ],
11312
11312
  kind: "web_route",
11313
11313
  name: "web.artist",
11314
- operatorNotes: "Slug is real-name kebab-case (e.g. /artist/dbridge). Read-only; an artist earns a page on its CONTENT exactly as a label/album does — a row renders (a findings-free discovered artist included), a slug with no row 404s, and a page below the thin-content floor renders noindex + stays out of the sitemap (the ARTIST_INDEX_MIN_FINDINGS precedent). No probeConfig — the route is slug-parameterized, so there is no fixed URL to GET-probe.",
11315
- route: "/artist",
11316
- url: `${SITE}/artist`,
11314
+ operatorNotes: "Slug is real-name kebab-case (e.g. /artist/dbridge). Read-only; an artist earns a page on its CONTENT exactly as a label/album does — a row renders (a findings-free discovered artist included), a slug with no row 404s, and a page below the thin-content floor renders noindex + stays out of the sitemap (the ARTIST_INDEX_MIN_FINDINGS precedent). No probeConfig — the /artist/:slug page is slug-parameterized, and the fixed /artists index is not probed (unlike /labels).",
11315
+ route: "/artists",
11316
+ url: `${SITE}/artists`,
11317
11317
  weights: { ssh: "secondary", web: "secondary" }
11318
11318
  },
11319
11319
  {
@@ -11668,7 +11668,9 @@ var init_src = __esm(() => {
11668
11668
  {
11669
11669
  apiFormat: "application/json",
11670
11670
  discoveryUrl: `${SITE}/api/v1/openapi.json`,
11671
- exposedContent: ["Spotify search candidates for submitting a track"],
11671
+ exposedContent: [
11672
+ "candidates for submitting a track, from the catalogue and Deezer, with Spotify as the fallback"
11673
+ ],
11672
11674
  kind: "api",
11673
11675
  name: "api.search",
11674
11676
  route: "/api/v1/search",
@@ -12028,7 +12030,7 @@ var init_src = __esm(() => {
12028
12030
  {
12029
12031
  command: "ssh rave.fluncle.com",
12030
12032
  exposedContent: [
12031
- "the rave terminal TUI: Latest findings, Fresh releases, Artist archive, Sonic galaxies, Mixtape archive, Random banger, Submit, Subscribe, Install CLI, System status, About",
12033
+ "the rave terminal TUI: Latest findings, Fresh releases, Artist archive, Sonic galaxies, Mixtape archive, Random banger, Submit a track, Subscribe, Install CLI, System status, About, Quit",
12032
12034
  "deep-register one-shots: `ssh rave.fluncle.com latest|fresh|random`"
12033
12035
  ],
12034
12036
  kind: "ssh",
@@ -12054,7 +12056,7 @@ var init_src = __esm(() => {
12054
12056
  },
12055
12057
  {
12056
12058
  command: "fluncle mixtapes",
12057
- exposedContent: ["Fluncle's checkpoint sets"],
12059
+ exposedContent: ["Fluncle's own DJ mixtapes"],
12058
12060
  kind: "cli",
12059
12061
  name: "cli.mixtapes",
12060
12062
  weights: { cli: "secondary" }
@@ -12186,7 +12188,7 @@ var init_src = __esm(() => {
12186
12188
  {
12187
12189
  command: "fluncle admin",
12188
12190
  exposedContent: [
12189
- "the operator/agent command group (hidden): a bare `queue` read plus plural groups — tracks (publish|update|enrich|embed|capture|video|draft|social|preview|observe|context|note|work|get|list|queue|mixable-order|requeue-analysis|vehicles), artifacts (register|status|bootstrap|bootstrap-checkpoint|activate|list|checkpoint|inactivate|compact), receipts (get|repair), catalogue (the crawler + The Ear), frontier, labels, artists, albums, galaxies, notes, observations, clips, recordings, publish, capture, mixtapes, newsletter, logbook, prompts, submissions, reach, backfills, migrations, auth"
12191
+ "the operator/agent command group (hidden): a bare `queue` read plus plural groups — tracks (publish|update|update-embeddings|enrich|embed|capture-audio|prepare-captures|commit-captures|pin-source|video|requeue-video|purge-video|draft|social|preview|observe|context|note|work|get|list|queue|mixable-order|requeue-analysis|vehicles), artifacts (register|status|bootstrap|bootstrap-checkpoint|activate|list|checkpoint|inactivate|compact), receipts (get|reconcile|repair), telemetry, projections, vectors, catalogue (the crawler + The Ear), frontier, labels, artists, albums, galaxies, notes, observations, clips, recordings, publish, digests, capture, mixtapes, newsletter, logbook, prompts, submissions, reach, backfills, migrations, auth"
12190
12192
  ],
12191
12193
  kind: "cli",
12192
12194
  name: "cli.admin",
@@ -12392,7 +12394,7 @@ var init_src = __esm(() => {
12392
12394
  name: "cron.artist-edges",
12393
12395
  operatorNotes: "every 60m, run by a rave-02 HOST systemd timer (docs/agents/hermes/artist-edges-timer/). The track_artists GRAPH BACKFILL (RFC artist-primary-capture, slice 0): the graph is crawl-era-only (born 2026-07-15) — only ~12.3k of ~37.5k tracks carry edges — so this folds each edge-less track's `artists_json` NAMES onto EXISTING `artists` identities and writes the `track_artists` edges, making the graph as full as honest matching allows (slice 1's identity-keyed capture authorization reads it). The matcher is IDENTITY-HONEST: each name matches by exact case-insensitive fold, then via `artist_aliases` (kind='name', status auto|confirmed — the search resolver's alias semantics); a fold two distinct identities share is ambiguous and matches nothing (fail-closed). It MINTS NOTHING — a bare name is not enough identity to create an entity — and reports the UNMATCHED RESIDUAL (credited names with no identity), which decides whether a later paced MusicBrainz credit-sweep is worth running. METADATA / GRAPH IDENTITY ONLY — it certifies nothing and publishes nothing (agent tier, the `backfill_recording_mbids` precedent). Worker-paced with NO vendor call (pure DB set-based matching, so no rate limit / circuit breaker): one bounded batch per tick folds the whole ~1.8k-row artist+alias corpus into one in-memory map and matches each track batch against it. The `tracks` row carries the durable reliability state (the `artist_edges_backfilled_at` stamp on EVERY visited row — matched, partial, or zero — so the worklist drains and a re-run is a no-op). New tracks are minted WITH edges (publish path + crawler link), so this catches history up and drains in a handful of ticks. Zero LLM tokens. Source: docs/agents/hermes/scripts/artist-edges-sweep.*. See docs/artist-relationship.md.",
12394
12396
  probeConfig: { cadenceMs: 60 * MINUTE_MS, cronName: "fluncle-artist-edges", kind: "cron" },
12395
- statusDescription: "folds artists_json names onto artist identities",
12397
+ statusDescription: "matches each track's artist names to known artists",
12396
12398
  title: "Artist edges",
12397
12399
  weights: { status: "hidden" }
12398
12400
  },
@@ -12405,7 +12407,7 @@ var init_src = __esm(() => {
12405
12407
  name: "cron.artist-credits",
12406
12408
  operatorNotes: "every 5m, run by a rave-02 HOST systemd timer (docs/agents/hermes/artist-credits-timer/). The MB CREDIT SWEEP (RFC artist-primary-capture, slice 1b): the sibling that completes what `backfill_artist_edges` (slice 0) could not. Slice 0's name-fold left a ~14.3k ZERO-MATCHED residual (a track it stamped but wrote no edge — no credited name folded to an existing identity), and those are exactly the tracks capture-authorization (slice 1) cannot reason about, since it matches BY IDENTITY through the `track_artists` graph. This sweep picks up that residual: for each zero-matched track carrying a MusicBrainz recording identity (`mb_recording_id`, or the `mb_<recording-mbid>` PK a crawler-born row carries), ONE paced `/recording/<mbid>?inc=artist-credits` lookup through the shared MusicBrainz client names its credited artists WITH their MB artist ids, and each resolves down a three-rung ladder: an EXACT `mbid` match, else an ADOPT (the credit name folds unambiguously onto an existing artist with no mbid — the common case, since the residual is dominated by compound credit strings like 'Sub Focus & Dimension' whose members Fluncle already holds as Spotify-keyed rows; adopting `coalesce`s the mbid onto that row instead of minting a duplicate, the split-identity guard), else a MINT of a fresh identity-true row (`mintArtistByMbid` — a real MBID is identity, the licence slice 0 lacked). Fail-closed on any ambiguity (a shared fold, or a fold whose row carries a different mbid) → mint, never a wrong merge. Then the `track_artists` edges are written. A zero-matched track with NO MB identity is TERMINALLY SKIPPED (stamped, never retried). METADATA / GRAPH IDENTITY ONLY — it certifies nothing and publishes nothing (agent tier, the `backfill_recording_mbids` precedent). Worker-paced (the box holds no MusicBrainz budget): a SMALL bounded batch per tick (each row is one ~1.1s MB call), 1 req/s, circuit-broken on a throttle, with a 60s response budget that pauses mid-page and resumes on the next request. The `tracks` row carries the durable per-row reliability state — its OWN `artist_credits_backfilled_at` stamp, DISTINCT from slice 0's `artist_edges_backfilled_at` (never disturbed). The ~14.3k residual drains at ~40/tick over ~a day and a half. Zero LLM tokens. Source: docs/agents/hermes/scripts/artist-credits-sweep.*. See docs/artist-relationship.md.",
12407
12409
  probeConfig: { cadenceMs: 5 * MINUTE_MS, cronName: "fluncle-artist-credits", kind: "cron" },
12408
- statusDescription: "mints artists from MusicBrainz credits for the residual",
12410
+ statusDescription: "fills in each unmatched track's artists from MusicBrainz",
12409
12411
  title: "Artist credits",
12410
12412
  weights: { status: "hidden" }
12411
12413
  },
@@ -12431,7 +12433,7 @@ var init_src = __esm(() => {
12431
12433
  name: "cron.cover-masters",
12432
12434
  operatorNotes: "every 60m, run by a rave-02 HOST systemd timer (docs/agents/hermes/cover-masters-timer/). The DURABLE other half of the album/artist cover (RFC musickit-second-authority U3b): the publish path + catalogue crawl MINT albums/artists (each `image_state='pending'`) and this cron gives each its OWN ≤1200²-capped cover derivative in R2 (found.fluncle.com, `albums/<slug>.<ext>` / `artists/<slug>.<ext>`) instead of hotlinking a third party — the label-logo posture, two entities over. IMAGE ONLY — a downscaled display derivative, reversible, the REF-05-conscious 1200 line (docs/album-artwork.md); it certifies nothing and publishes nothing (agent tier, the `backfill_label_images` precedent). Worker-paced: one bounded batch of albums (Apple template → Cover Art Archive → Spotify floor), then one of artists (Spotify floor), per tick; every rung requests a ≤1200 rendition and a byte read enforces the cap before the R2 put, so no un-downscaled original is ever stored. The `albums`/`artists` row carries the durable reliability state (image_state/image_attempted_at/image_failures), so a resolved/none entity is terminal. Served via Cloudflare Images `/cdn-cgi/image/…` (decision B). Zero LLM tokens. Source: docs/agents/hermes/scripts/cover-masters-sweep.*. See docs/album-artwork.md.",
12433
12435
  probeConfig: { cadenceMs: 60 * MINUTE_MS, cronName: "fluncle-cover-masters", kind: "cron" },
12434
- statusDescription: "owns each album and artist its cover master",
12436
+ statusDescription: "gives each album and artist its own cover master",
12435
12437
  title: "Cover masters",
12436
12438
  weights: { status: "hidden" }
12437
12439
  },
@@ -12726,11 +12728,11 @@ var init_src = __esm(() => {
12726
12728
  {
12727
12729
  command: "fluncle admin newsletter draft",
12728
12730
  exposedContent: [
12729
- "draft + persist the weekly edition, then offer the operator a Discord Send button (the only agent cron)"
12731
+ "draft + persist the weekly edition, then offer the operator the send command on Discord"
12730
12732
  ],
12731
12733
  kind: "cron",
12732
12734
  name: "cron.newsletter",
12733
- operatorNotes: "Fri 15:00 Amsterdam (cron `0 15 * * 5`, box pinned Europe/Amsterdam for DST). A hybrid --no-agent sweep with one claude -p authoring call. Send is operator-gated (agent token 403s send_edition). Source: docs/agents/hermes/newsletter-timer/README.md.",
12735
+ operatorNotes: "Fri 15:00 Amsterdam (OnCalendar `Fri 15:00 Europe/Amsterdam`, plus a 16:15 same-Friday retry). A hybrid --no-agent sweep with one claude -p authoring call. Send is operator-gated (agent token 403s send_edition). Source: docs/agents/hermes/newsletter-timer/README.md.",
12734
12736
  probeConfig: {
12735
12737
  cadenceMs: 7 * 24 * 60 * MINUTE_MS,
12736
12738
  cronName: "fluncle-newsletter",
@@ -12822,7 +12824,7 @@ var init_src = __esm(() => {
12822
12824
  kind: "cron",
12823
12825
  schedule: { time: "04:00", tz: "Europe/Amsterdam" }
12824
12826
  },
12825
- statusDescription: "counts the crew and how far the probes reached",
12827
+ statusDescription: "counts the crew and how far the findings reached",
12826
12828
  title: "Reach snapshot",
12827
12829
  weights: { status: "secondary" }
12828
12830
  },
@@ -17862,13 +17864,6 @@ function _boolean(Class, params) {
17862
17864
  ...normalizeParams(params)
17863
17865
  });
17864
17866
  }
17865
- function _coercedBoolean(Class, params) {
17866
- return new Class({
17867
- type: "boolean",
17868
- coerce: true,
17869
- ...normalizeParams(params)
17870
- });
17871
- }
17872
17867
  function _null2(Class, params) {
17873
17868
  return new Class({
17874
17869
  type: "null",
@@ -20406,9 +20401,6 @@ var init_iso = __esm(() => {
20406
20401
  function number5(params) {
20407
20402
  return _coercedNumber(ZodNumber, params);
20408
20403
  }
20409
- function boolean4(params) {
20410
- return _coercedBoolean(ZodBoolean, params);
20411
- }
20412
20404
  var init_coerce = __esm(() => {
20413
20405
  init_core3();
20414
20406
  init_schemas2();
@@ -20479,6 +20471,7 @@ var init_admin_catalogue = __esm(() => {
20479
20471
  CatalogueSummarySchema = object({
20480
20472
  awaitingCapture: number4(),
20481
20473
  awaitingRank: number4(),
20474
+ computedAt: string4().nullable(),
20482
20475
  dismissed: number4(),
20483
20476
  quarantined: number4(),
20484
20477
  ranked: number4(),
@@ -20505,7 +20498,7 @@ var init_admin_catalogue = __esm(() => {
20505
20498
  summary: "One tick of the catalogue ranking sweep (nearest finding + capture priority)",
20506
20499
  tags: ["Admin"]
20507
20500
  }).input(object({
20508
- countRemaining: boolean4().default(false),
20501
+ countRemaining: boolean3().default(false),
20509
20502
  limit: number5().int().min(1).max(1000).default(250)
20510
20503
  })).output(object({
20511
20504
  ok: literal(true),
@@ -22087,7 +22080,7 @@ var init_admin_artists = __esm(() => {
22087
22080
  summary: "One tick of the similar-artists sweep (artist centroids + top-K edges)",
22088
22081
  tags: ["Admin"]
22089
22082
  }).input(object({
22090
- countRemaining: boolean4().default(false),
22083
+ countRemaining: boolean3().default(false),
22091
22084
  limit: number5().int().min(1).max(1000).default(50)
22092
22085
  })).output(object({
22093
22086
  ok: literal(true),
@@ -22624,9 +22617,9 @@ var init_admin_backfills = __esm(() => {
22624
22617
  query: object({
22625
22618
  cursor: string4().optional(),
22626
22619
  dryRun: string4().optional(),
22627
- kind: string4().optional(),
22620
+ kind: _enum(["album", "artist"]).optional(),
22628
22621
  limit: string4().optional(),
22629
- retry: string4().optional()
22622
+ retry: _enum(["none"]).optional()
22630
22623
  })
22631
22624
  })).output(object({
22632
22625
  dryRun: boolean3(),
@@ -22638,8 +22631,8 @@ var init_admin_backfills = __esm(() => {
22638
22631
  noneCount: number4(),
22639
22632
  ok: literal(true),
22640
22633
  rateLimited: boolean3(),
22641
- requeued: array2(string4()).optional(),
22642
- requeuedCount: number4().optional(),
22634
+ requeued: array2(string4()),
22635
+ requeuedCount: number4(),
22643
22636
  resolved: array2(string4()),
22644
22637
  resolvedCount: number4()
22645
22638
  }));
@@ -23557,7 +23550,8 @@ var init__shared = __esm(() => {
23557
23550
  coverImageUrl: string4().optional(),
23558
23551
  name: string4(),
23559
23552
  releaseDate: string4(),
23560
- slug: string4()
23553
+ slug: string4(),
23554
+ trackCount: number4()
23561
23555
  }).meta({ id: "FreshAlbum" });
23562
23556
  RadioNowPlayingSchema = object({
23563
23557
  currentTrack: TrackListItemSchema,
@@ -24795,7 +24789,7 @@ var init_admin_migrations = __esm(() => {
24795
24789
  cursor: string4().optional(),
24796
24790
  dryRun: string4().optional(),
24797
24791
  limit: string4().optional(),
24798
- mode: string4().optional()
24792
+ mode: _enum(["copy", "delete", "verify"]).optional()
24799
24793
  })
24800
24794
  })).output(object({
24801
24795
  blocked: string4().nullable(),
@@ -25040,7 +25034,7 @@ var init_admin_mixtapes = __esm(() => {
25040
25034
  path: "/admin/clips/{clipId}/schedule",
25041
25035
  summary: "Set or override a clip's Instagram drip slot",
25042
25036
  tags: ["Admin"]
25043
- }).input(object({ clipId: string4(), scheduledFor: string4() })).output(object({ ok: literal(true), post: ClipSocialPostSchema }));
25037
+ }).input(object({ clipId: string4(), scheduledFor: string4().datetime({ offset: true }) })).output(object({ ok: literal(true), post: ClipSocialPostSchema }));
25044
25038
  setClipSchedules = oc.route({
25045
25039
  method: "POST",
25046
25040
  operationId: "setClipSchedules",
@@ -25117,7 +25111,8 @@ var init_admin_notes = __esm(() => {
25117
25111
  resolution: _enum(["accepted", "discarded"]).optional(),
25118
25112
  resolvedAt: string4().optional(),
25119
25113
  title: string4(),
25120
- trackId: string4()
25114
+ trackId: string4(),
25115
+ updatedAt: string4()
25121
25116
  }).meta({ id: "NoteRejection" });
25122
25117
  listNoteRejections = oc.route({
25123
25118
  method: "GET",
@@ -25192,7 +25187,8 @@ var init_admin_observations = __esm(() => {
25192
25187
  resolvedAt: string4().optional(),
25193
25188
  script: string4(),
25194
25189
  title: string4(),
25195
- trackId: string4()
25190
+ trackId: string4(),
25191
+ updatedAt: string4()
25196
25192
  }).meta({ id: "ObservationRejection" });
25197
25193
  listObservationNeighbours = oc.route({
25198
25194
  method: "GET",
@@ -26274,7 +26270,7 @@ var init_admin_tracks = __esm(() => {
26274
26270
  count: string4().optional(),
26275
26271
  debtAware: string4().optional(),
26276
26272
  kind: TrackWorkKindSchema,
26277
- limit: number5().int().min(1).max(250).default(50),
26273
+ limit: number5().int().min(1).max(200).default(50),
26278
26274
  paidMode: _enum(["quota", "prior", "unasked"]).optional(),
26279
26275
  scope: TrackWorkScopeSchema.default("all")
26280
26276
  })).output(object({
@@ -27315,13 +27311,13 @@ var init_me2 = __esm(() => {
27315
27311
  ok: literal(true),
27316
27312
  summary: object({
27317
27313
  credentials: string4(),
27318
- followDigest: string4().optional(),
27319
- follows: string4().optional(),
27314
+ followDigest: string4(),
27315
+ follows: string4(),
27320
27316
  galaxyProgress: string4(),
27321
- preferences: string4().optional(),
27322
- recSeeds: string4().optional(),
27317
+ preferences: string4(),
27318
+ recSeeds: string4(),
27323
27319
  savedFindings: string4(),
27324
- savedSets: string4().optional(),
27320
+ savedSets: string4(),
27325
27321
  sessions: string4(),
27326
27322
  submissions: string4(),
27327
27323
  user: string4(),
@@ -27343,7 +27339,7 @@ var init_me2 = __esm(() => {
27343
27339
  lastWeekKey: string4().nullable(),
27344
27340
  unsubscribedAt: string4().nullable(),
27345
27341
  updatedAt: string4()
27346
- }).nullable().optional(),
27342
+ }).nullable(),
27347
27343
  followDigestDeliveries: array2(object({
27348
27344
  attempts: number4(),
27349
27345
  claimedAt: string4(),
@@ -27352,16 +27348,16 @@ var init_me2 = __esm(() => {
27352
27348
  sentAt: string4().nullable(),
27353
27349
  status: string4(),
27354
27350
  weekKey: string4()
27355
- })).optional(),
27356
- follows: array2(FollowSchema).optional(),
27351
+ })),
27352
+ follows: array2(FollowSchema),
27357
27353
  generatedAt: string4(),
27358
27354
  id: string4(),
27359
27355
  preferences: UserPreferencesSchema,
27360
27356
  privacyNotes: array2(string4()),
27361
27357
  progress: GalaxyProgressSchema,
27362
- recSeeds: array2(RecSeedSchema).optional(),
27358
+ recSeeds: array2(RecSeedSchema),
27363
27359
  savedFindings: array2(SavedFindingSchema),
27364
- savedSets: array2(SavedSetSchema).optional(),
27360
+ savedSets: array2(SavedSetSchema),
27365
27361
  submissions: array2(PrivateSubmissionSchema)
27366
27362
  }),
27367
27363
  ok: literal(true)
@@ -27494,6 +27490,7 @@ var init_me_watches = __esm(() => {
27494
27490
  }).meta({ id: "Watch" });
27495
27491
  SaveWatchBodySchema = looseObject({
27496
27492
  entityId: unknown2().optional(),
27493
+ intent: unknown2().optional(),
27497
27494
  kind: unknown2().optional()
27498
27495
  });
27499
27496
  listPrivateWatches = oc.route({
@@ -35201,7 +35198,7 @@ function addListenCommands(program) {
35201
35198
  await Promise.resolve().then(() => init_galaxies());
35202
35199
  await runGalaxies(slug, options, { galaxiesListCommand, galaxyGetCommand });
35203
35200
  });
35204
- program.command("mixtapes").description("Fluncle's checkpoint sets").option("--json", "Print JSON", false).action(async (options) => {
35201
+ program.command("mixtapes").description("Fluncle's own DJ mixtapes").option("--json", "Print JSON", false).action(async (options) => {
35205
35202
  await Promise.resolve().then(() => init_mixtapes());
35206
35203
  await runMixtapes(options, mixtapesCommand);
35207
35204
  });
@@ -37536,7 +37533,10 @@ async function runBackfillArtistImages(options, backfillArtistImagesCommand) {
37536
37533
  }
37537
37534
  async function runBackfillCoverMasters(options, backfillCoverMastersCommand) {
37538
37535
  const limit = parseListLimit(options.limit);
37539
- const kind = options.kind === "artist" ? "artist" : "album";
37536
+ const kind = options.kind ?? "album";
37537
+ if (kind !== "album" && kind !== "artist") {
37538
+ throw new Error(`--kind must be one of: album, artist (got "${kind}")`);
37539
+ }
37540
37540
  const retryNone = options.retryNone ?? false;
37541
37541
  const resolved = [];
37542
37542
  const none = [];
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  "url": "git+https://github.com/mauricekleine/fluncle.git"
32
32
  },
33
33
  "type": "module",
34
- "version": "0.286.0"
34
+ "version": "0.288.0"
35
35
  }