fluncle 0.150.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.
- package/bin/fluncle.mjs +19 -4
- 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.
|
|
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.
|
|
2192
|
+
currentVersion2 = "0.152.0".trim() ? "0.152.0".trim() : "0.1.0";
|
|
2193
2193
|
});
|
|
2194
2194
|
|
|
2195
2195
|
// ../../packages/registry/src/index.ts
|
|
@@ -5766,6 +5766,7 @@ var exports_admin_catalogue = {};
|
|
|
5766
5766
|
__export(exports_admin_catalogue, {
|
|
5767
5767
|
verifyCaptureCommand: () => verifyCaptureCommand,
|
|
5768
5768
|
setTrackDismissedCommand: () => setTrackDismissedCommand,
|
|
5769
|
+
requeueUnmatchedCommand: () => requeueUnmatchedCommand,
|
|
5769
5770
|
listUnverifiedCapturesCommand: () => listUnverifiedCapturesCommand,
|
|
5770
5771
|
forceCaptureCommand: () => forceCaptureCommand,
|
|
5771
5772
|
flagWrongAudioCommand: () => flagWrongAudioCommand,
|
|
@@ -5783,7 +5784,7 @@ async function catalogueRankCommand(options) {
|
|
|
5783
5784
|
}
|
|
5784
5785
|
async function catalogueListCommand(options) {
|
|
5785
5786
|
const params = new URLSearchParams;
|
|
5786
|
-
params.set("lens", options.lens
|
|
5787
|
+
params.set("lens", options.lens && CATALOGUE_LENSES.has(options.lens) ? options.lens : "ear");
|
|
5787
5788
|
if (options.limit) {
|
|
5788
5789
|
params.set("limit", options.limit);
|
|
5789
5790
|
}
|
|
@@ -5794,6 +5795,9 @@ async function clearWrongAudioCommand(trackId) {
|
|
|
5794
5795
|
trackId
|
|
5795
5796
|
});
|
|
5796
5797
|
}
|
|
5798
|
+
async function requeueUnmatchedCommand() {
|
|
5799
|
+
return adminApiPost("/api/admin/catalogue/captures/requeue-unmatched", {});
|
|
5800
|
+
}
|
|
5797
5801
|
async function forceCaptureCommand(trackId) {
|
|
5798
5802
|
return adminApiPost("/api/admin/catalogue/force-capture", {
|
|
5799
5803
|
trackId
|
|
@@ -5839,8 +5843,10 @@ async function crawlCatalogueCommand(limit, maxHop, dryRun) {
|
|
|
5839
5843
|
async function crawlStatusCommand() {
|
|
5840
5844
|
return adminApiGet("/api/admin/catalogue/crawl");
|
|
5841
5845
|
}
|
|
5846
|
+
var CATALOGUE_LENSES;
|
|
5842
5847
|
var init_admin_catalogue = __esm(() => {
|
|
5843
5848
|
init_api();
|
|
5849
|
+
CATALOGUE_LENSES = new Set(["capture", "dismissed", "failed", "quarantine", "unmatched"]);
|
|
5844
5850
|
});
|
|
5845
5851
|
|
|
5846
5852
|
// src/commands/admin-reach.ts
|
|
@@ -8903,7 +8909,7 @@ function addAdminCommands(program2) {
|
|
|
8903
8909
|
const { catalogueRankCommand: catalogueRankCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
|
|
8904
8910
|
await runCatalogueRank(options, catalogueRankCommand2);
|
|
8905
8911
|
});
|
|
8906
|
-
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
|
|
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) => {
|
|
8907
8913
|
const { catalogueListCommand: catalogueListCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
|
|
8908
8914
|
await runCatalogueList(options, catalogueListCommand2);
|
|
8909
8915
|
});
|
|
@@ -8916,6 +8922,15 @@ function addAdminCommands(program2) {
|
|
|
8916
8922
|
}
|
|
8917
8923
|
console.log(cleared ? `Kept ${trackId}. Its audio re-embeds and rejoins the ranking on the next sweep.` : `${trackId} was not quarantined \u2014 nothing to clear.`);
|
|
8918
8924
|
});
|
|
8925
|
+
catalogue.command("requeue-unmatched").description("Re-queue terminal-unmatched captures after a matcher improvement (operator)").option("--json", "Print JSON", false).action(async (options) => {
|
|
8926
|
+
const { requeueUnmatchedCommand: requeueUnmatchedCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
|
|
8927
|
+
const { requeued, skippedVetoed } = await requeueUnmatchedCommand2();
|
|
8928
|
+
if (options.json) {
|
|
8929
|
+
printJson({ ok: true, requeued, skippedVetoed });
|
|
8930
|
+
return;
|
|
8931
|
+
}
|
|
8932
|
+
console.log(`Re-queued ${requeued} unmatched capture(s) for the upgraded search ladder; ${skippedVetoed} stay terminal under the duration vetoes.`);
|
|
8933
|
+
});
|
|
8919
8934
|
catalogue.command("flag-wrong-audio").description("Flag a finding's captured audio as the wrong recording (operator)").argument("<trackId>", "The finding's track id whose capture is wrong").option("--json", "Print JSON", false).action(async (trackId, options) => {
|
|
8920
8935
|
const { flagWrongAudioCommand: flagWrongAudioCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
|
|
8921
8936
|
const { flagged } = await flagWrongAudioCommand2(trackId);
|
package/package.json
CHANGED