fluncle 0.44.0 → 0.45.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 +15 -8
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -2539,7 +2539,7 @@ function parseVersion(version) {
2539
2539
  var currentVersion;
2540
2540
  var init_version = __esm(() => {
2541
2541
  init_output();
2542
- currentVersion = "0.44.0".trim() ? "0.44.0".trim() : "0.1.0";
2542
+ currentVersion = "0.45.0".trim() ? "0.45.0".trim() : "0.1.0";
2543
2543
  });
2544
2544
 
2545
2545
  // src/update-notifier.ts
@@ -4001,7 +4001,7 @@ function parseVersion2(version) {
4001
4001
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
4002
4002
  var init_version2 = __esm(() => {
4003
4003
  init_output();
4004
- currentVersion2 = "0.44.0".trim() ? "0.44.0".trim() : "0.1.0";
4004
+ currentVersion2 = "0.45.0".trim() ? "0.45.0".trim() : "0.1.0";
4005
4005
  });
4006
4006
 
4007
4007
  // src/commands/track.ts
@@ -4216,7 +4216,7 @@ async function enrichQueueCommand(limit) {
4216
4216
  return fetchAdminTracks({ max: limit, order: "asc", status: "queue" });
4217
4217
  }
4218
4218
  async function enrichSweepCommand(limit) {
4219
- return adminApiPost(`/api/admin/enrich-sweep?limit=${limit}`);
4219
+ return adminApiPost(`/api/admin/tracks/enrich?limit=${limit}`);
4220
4220
  }
4221
4221
  async function backfillLastfmCommand(limit, dryRun, cursor) {
4222
4222
  const params = new URLSearchParams({ dryRun: String(dryRun), limit: String(limit) });
@@ -5411,13 +5411,17 @@ function addAdminCommands(program2) {
5411
5411
  const { enrichQueueCommand: enrichQueueCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
5412
5412
  await runAdminEnrichQueue(options, enrichQueueCommand2);
5413
5413
  });
5414
- adminTracks.command("enrich-sweep").description("Re-fire enrichment for everything in the enrich-queue (idempotent self-heal)").option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
5414
+ adminTracks.command("enrich").description("Re-fire enrichment for everything in the enrich-queue (--all; idempotent self-heal)").option("--all", "Sweep the whole enrich-queue (required)", false).option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
5415
5415
  const { enrichSweepCommand: enrichSweepCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
5416
- await runAdminEnrichSweep(options, enrichSweepCommand2);
5416
+ await runAdminEnrich(options, enrichSweepCommand2);
5417
5417
  });
5418
- admin.command("enrich-sweep", { hidden: true }).description("Enrich sweep (alias of `admin tracks enrich-sweep`)").option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
5418
+ adminTracks.command("enrich-sweep", { hidden: true }).description("Enrich sweep (alias of `admin tracks enrich --all`)").option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
5419
5419
  const { enrichSweepCommand: enrichSweepCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
5420
- await runAdminEnrichSweep(options, enrichSweepCommand2);
5420
+ await runAdminEnrich({ ...options, all: true }, enrichSweepCommand2);
5421
+ });
5422
+ admin.command("enrich-sweep", { hidden: true }).description("Enrich sweep (alias of `admin tracks enrich --all`)").option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
5423
+ const { enrichSweepCommand: enrichSweepCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
5424
+ await runAdminEnrich({ ...options, all: true }, enrichSweepCommand2);
5421
5425
  });
5422
5426
  adminTracks.command("vehicles").description("Recent video vehicles, newest first (the style ledger for diversity)").option("--limit <limit>", "Number of vehicles to show", "10").option("--json", "Print JSON", false).action(async (options) => {
5423
5427
  const { vehiclesCommand: vehiclesCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
@@ -6089,7 +6093,10 @@ async function runAdminEnrichQueue(options, enrichQueueCommand2) {
6089
6093
  console.log(trackRows2(tracks).join(`
6090
6094
  `));
6091
6095
  }
6092
- async function runAdminEnrichSweep(options, enrichSweepCommand2) {
6096
+ async function runAdminEnrich(options, enrichSweepCommand2) {
6097
+ if (!options.all) {
6098
+ throw new Error("Usage: fluncle admin tracks enrich --all [--limit 25] [--json] (sweeps the whole enrich-queue)");
6099
+ }
6093
6100
  const limit = parseListLimit(options.limit);
6094
6101
  const result = await enrichSweepCommand2(limit);
6095
6102
  if (options.json) {
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.44.0"
34
+ "version": "0.45.0"
35
35
  }