fluncle 0.151.0 → 0.152.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 +6 -4
  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.151.0".trim() ? "0.151.0".trim() : "0.1.0";
564
+ currentVersion = "0.152.0".trim() ? "0.152.0".trim() : "0.1.0";
565
565
  });
566
566
 
567
567
  // src/update-notifier.ts
@@ -2189,7 +2189,7 @@ function parseVersion2(version) {
2189
2189
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2190
2190
  var init_version2 = __esm(() => {
2191
2191
  init_output();
2192
- currentVersion2 = "0.151.0".trim() ? "0.151.0".trim() : "0.1.0";
2192
+ currentVersion2 = "0.152.0".trim() ? "0.152.0".trim() : "0.1.0";
2193
2193
  });
2194
2194
 
2195
2195
  // ../../packages/registry/src/index.ts
@@ -5784,7 +5784,7 @@ async function catalogueRankCommand(options) {
5784
5784
  }
5785
5785
  async function catalogueListCommand(options) {
5786
5786
  const params = new URLSearchParams;
5787
- params.set("lens", options.lens === "capture" ? "capture" : options.lens === "quarantine" ? "quarantine" : "ear");
5787
+ params.set("lens", options.lens && CATALOGUE_LENSES.has(options.lens) ? options.lens : "ear");
5788
5788
  if (options.limit) {
5789
5789
  params.set("limit", options.limit);
5790
5790
  }
@@ -5843,8 +5843,10 @@ async function crawlCatalogueCommand(limit, maxHop, dryRun) {
5843
5843
  async function crawlStatusCommand() {
5844
5844
  return adminApiGet("/api/admin/catalogue/crawl");
5845
5845
  }
5846
+ var CATALOGUE_LENSES;
5846
5847
  var init_admin_catalogue = __esm(() => {
5847
5848
  init_api();
5849
+ CATALOGUE_LENSES = new Set(["capture", "dismissed", "failed", "quarantine", "unmatched"]);
5848
5850
  });
5849
5851
 
5850
5852
  // src/commands/admin-reach.ts
@@ -8907,7 +8909,7 @@ function addAdminCommands(program2) {
8907
8909
  const { catalogueRankCommand: catalogueRankCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
8908
8910
  await runCatalogueRank(options, catalogueRankCommand2);
8909
8911
  });
8910
- catalogue.command("list").description("The ranked catalogue: closest to a finding (ear), next to capture, or wrong audio").option("--lens <lens>", "ear (default), capture, or quarantine", "ear").option("--limit <limit>", "Rows (default 50, max 200)").option("--json", "Print JSON", false).action(async (options) => {
8912
+ catalogue.command("list").description("The ranked catalogue: closest to a finding (ear), next to capture, or wrong audio").option("--lens <lens>", "ear (default), capture, quarantine, unmatched, failed, or dismissed", "ear").option("--limit <limit>", "Rows (default 50, max 200)").option("--json", "Print JSON", false).action(async (options) => {
8911
8913
  const { catalogueListCommand: catalogueListCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
8912
8914
  await runCatalogueList(options, catalogueListCommand2);
8913
8915
  });
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.151.0"
34
+ "version": "0.152.0"
35
35
  }