fluncle 0.191.0 → 0.193.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 +19 -5
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -561,7 +561,7 @@ function parseVersion(version) {
561
561
  var currentVersion;
562
562
  var init_version = __esm(() => {
563
563
  init_output();
564
- currentVersion = "0.191.0".trim() ? "0.191.0".trim() : "0.1.0";
564
+ currentVersion = "0.193.0".trim() ? "0.193.0".trim() : "0.1.0";
565
565
  });
566
566
 
567
567
  // src/update-notifier.ts
@@ -2443,7 +2443,7 @@ function parseVersion2(version) {
2443
2443
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2444
2444
  var init_version2 = __esm(() => {
2445
2445
  init_output();
2446
- currentVersion2 = "0.191.0".trim() ? "0.191.0".trim() : "0.1.0";
2446
+ currentVersion2 = "0.193.0".trim() ? "0.193.0".trim() : "0.1.0";
2447
2447
  });
2448
2448
 
2449
2449
  // ../../packages/registry/src/index.ts
@@ -4154,6 +4154,9 @@ async function trackUpdateCommand(trackId, options) {
4154
4154
  if (options.galaxyId !== undefined) {
4155
4155
  body.galaxyId = options.galaxyId;
4156
4156
  }
4157
+ if (options.isrc !== undefined) {
4158
+ body.isrc = options.isrc;
4159
+ }
4157
4160
  if (options.note !== undefined) {
4158
4161
  body.note = options.note;
4159
4162
  }
@@ -4364,6 +4367,9 @@ async function trackUpdateCommand2(trackId, options) {
4364
4367
  if (options.galaxyId !== undefined) {
4365
4368
  body.galaxyId = options.galaxyId;
4366
4369
  }
4370
+ if (options.isrc !== undefined) {
4371
+ body.isrc = options.isrc;
4372
+ }
4367
4373
  if (options.note !== undefined) {
4368
4374
  body.note = options.note;
4369
4375
  }
@@ -6553,7 +6559,10 @@ __export(exports_admin_catalogue, {
6553
6559
  });
6554
6560
  async function catalogueRankCommand(options) {
6555
6561
  const limit = options.limit ? Number.parseInt(options.limit, 10) : undefined;
6556
- const response = await adminApiPost("/api/v1/admin/catalogue/rank", limit ? { limit } : {});
6562
+ const response = await adminApiPost("/api/v1/admin/catalogue/rank", {
6563
+ ...limit ? { limit } : {},
6564
+ ...options.countRemaining ? { countRemaining: true } : {}
6565
+ });
6557
6566
  return { summary: response.summary, telescope: response.telescope };
6558
6567
  }
6559
6568
  async function catalogueDemandCommand() {
@@ -9459,7 +9468,7 @@ function addAdminCommands(program2) {
9459
9468
  const { mixableOrderCommand: mixableOrderCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
9460
9469
  await runMixableOrder(logIds, options, mixableOrderCommand2);
9461
9470
  });
9462
- adminTrack.command("update").description("Certify a track into the archive").argument("[trackId]").option("--analyzed-at <iso>", "Analysis-write ISO timestamp (BPM/key provenance)").option("--analyzed-from <class>", "Audio class BPM/key were analyzed from: full or preview").option("--bpm <number>", "Track BPM").option("--bpm-confidence <number>", "Analyzer confidence in the BPM (0..1)").option("--bpm-source <source>", "Where the BPM came from (analyzer bpmSource)").option("--embedding <json>", "MuQ audio embedding as a JSON array of 1024 floats").option("--embedding-file <file>", "Read the MuQ embedding JSON array from a file").option("--features <json>", "Audio feature JSON").option("--galaxy-id <id>", "Sonic galaxy assignment (empty string clears it)").option("--json", "Print JSON", false).option("--key <key>", "Musical key").option("--key-confidence <number>", "Analyzer confidence in the key (0..1)").option("--key-source <source>", "Where the key came from (analyzer keySource)").option("--note <text>", "Operator note").option("--status <status>", "Enrichment status").option("--video-url <url>", "Rendered video URL").allowExcessArguments().action(async (trackId, options) => {
9471
+ adminTrack.command("update").description("Certify a track into the archive").argument("[trackId]").option("--analyzed-at <iso>", "Analysis-write ISO timestamp (BPM/key provenance)").option("--analyzed-from <class>", "Audio class BPM/key were analyzed from: full or preview").option("--bpm <number>", "Track BPM").option("--bpm-confidence <number>", "Analyzer confidence in the BPM (0..1)").option("--bpm-source <source>", "Where the BPM came from (analyzer bpmSource)").option("--embedding <json>", "MuQ audio embedding as a JSON array of 1024 floats").option("--embedding-file <file>", "Read the MuQ embedding JSON array from a file").option("--features <json>", "Audio feature JSON").option("--galaxy-id <id>", "Sonic galaxy assignment (empty string clears it)").option("--isrc <isrc>", "The recording's ISRC (operator identity correction)").option("--json", "Print JSON", false).option("--key <key>", "Musical key").option("--key-confidence <number>", "Analyzer confidence in the key (0..1)").option("--key-source <source>", "Where the key came from (analyzer keySource)").option("--note <text>", "Operator note").option("--status <status>", "Enrichment status").option("--video-url <url>", "Rendered video URL").allowExcessArguments().action(async (trackId, options) => {
9463
9472
  const { trackUpdateCommand: trackUpdateCommand3 } = await Promise.resolve().then(() => (init_track(), exports_track));
9464
9473
  await runTrackUpdate(trackId, options, trackUpdateCommand3);
9465
9474
  });
@@ -11426,6 +11435,7 @@ async function runTrackUpdate(trackId, options, trackUpdateCommand3) {
11426
11435
  embedding,
11427
11436
  features: options.features,
11428
11437
  galaxyId: options.galaxyId,
11438
+ isrc: options.isrc,
11429
11439
  key: options.key,
11430
11440
  keyConfidence,
11431
11441
  keySource: options.keySource,
@@ -11991,7 +12001,10 @@ async function runArtistsRank(options, rankArtistsCommand2) {
11991
12001
  console.log(`Ranked ${summary.centroidsComputed} artist(s); wrote ${summary.edgesWritten} edges.${removed} ${summary.remaining} still stale.`);
11992
12002
  }
11993
12003
  async function runCatalogueRank(options, catalogueRankCommand2) {
11994
- const { summary, telescope } = await catalogueRankCommand2({ limit: options.limit });
12004
+ const { summary, telescope } = await catalogueRankCommand2({
12005
+ countRemaining: !options.json,
12006
+ limit: options.limit
12007
+ });
11995
12008
  if (options.json) {
11996
12009
  printJson({ ok: true, summary, telescope });
11997
12010
  return;
@@ -12740,6 +12753,7 @@ var stringOptions = new Set([
12740
12753
  "--gb",
12741
12754
  "--has-key",
12742
12755
  "--intent",
12756
+ "--isrc",
12743
12757
  "--key",
12744
12758
  "--key-confidence",
12745
12759
  "--key-source",
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.191.0"
34
+ "version": "0.193.0"
35
35
  }