fluncle 0.286.0 → 0.287.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 +25 -19
  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.287.0".trim() ? "0.287.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.287.0".trim() ? "0.287.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
  },
@@ -20479,6 +20481,7 @@ var init_admin_catalogue = __esm(() => {
20479
20481
  CatalogueSummarySchema = object({
20480
20482
  awaitingCapture: number4(),
20481
20483
  awaitingRank: number4(),
20484
+ computedAt: string4().nullable(),
20482
20485
  dismissed: number4(),
20483
20486
  quarantined: number4(),
20484
20487
  ranked: number4(),
@@ -23557,7 +23560,8 @@ var init__shared = __esm(() => {
23557
23560
  coverImageUrl: string4().optional(),
23558
23561
  name: string4(),
23559
23562
  releaseDate: string4(),
23560
- slug: string4()
23563
+ slug: string4(),
23564
+ trackCount: number4()
23561
23565
  }).meta({ id: "FreshAlbum" });
23562
23566
  RadioNowPlayingSchema = object({
23563
23567
  currentTrack: TrackListItemSchema,
@@ -25117,7 +25121,8 @@ var init_admin_notes = __esm(() => {
25117
25121
  resolution: _enum(["accepted", "discarded"]).optional(),
25118
25122
  resolvedAt: string4().optional(),
25119
25123
  title: string4(),
25120
- trackId: string4()
25124
+ trackId: string4(),
25125
+ updatedAt: string4()
25121
25126
  }).meta({ id: "NoteRejection" });
25122
25127
  listNoteRejections = oc.route({
25123
25128
  method: "GET",
@@ -25192,7 +25197,8 @@ var init_admin_observations = __esm(() => {
25192
25197
  resolvedAt: string4().optional(),
25193
25198
  script: string4(),
25194
25199
  title: string4(),
25195
- trackId: string4()
25200
+ trackId: string4(),
25201
+ updatedAt: string4()
25196
25202
  }).meta({ id: "ObservationRejection" });
25197
25203
  listObservationNeighbours = oc.route({
25198
25204
  method: "GET",
@@ -35201,7 +35207,7 @@ function addListenCommands(program) {
35201
35207
  await Promise.resolve().then(() => init_galaxies());
35202
35208
  await runGalaxies(slug, options, { galaxiesListCommand, galaxyGetCommand });
35203
35209
  });
35204
- program.command("mixtapes").description("Fluncle's checkpoint sets").option("--json", "Print JSON", false).action(async (options) => {
35210
+ program.command("mixtapes").description("Fluncle's own DJ mixtapes").option("--json", "Print JSON", false).action(async (options) => {
35205
35211
  await Promise.resolve().then(() => init_mixtapes());
35206
35212
  await runMixtapes(options, mixtapesCommand);
35207
35213
  });
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.287.0"
35
35
  }