fluncle 0.143.0 → 0.144.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 +17 -2
  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.143.0".trim() ? "0.143.0".trim() : "0.1.0";
564
+ currentVersion = "0.144.0".trim() ? "0.144.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.143.0".trim() ? "0.143.0".trim() : "0.1.0";
2192
+ currentVersion2 = "0.144.0".trim() ? "0.144.0".trim() : "0.1.0";
2193
2193
  });
2194
2194
 
2195
2195
  // ../../packages/registry/src/index.ts
@@ -5716,6 +5716,7 @@ var init_admin_notes = __esm(() => {
5716
5716
  var exports_admin_catalogue = {};
5717
5717
  __export(exports_admin_catalogue, {
5718
5718
  setTrackDismissedCommand: () => setTrackDismissedCommand,
5719
+ flagWrongAudioCommand: () => flagWrongAudioCommand,
5719
5720
  crawlStatusCommand: () => crawlStatusCommand,
5720
5721
  crawlCatalogueCommand: () => crawlCatalogueCommand,
5721
5722
  clearWrongAudioCommand: () => clearWrongAudioCommand,
@@ -5741,6 +5742,11 @@ async function clearWrongAudioCommand(trackId) {
5741
5742
  trackId
5742
5743
  });
5743
5744
  }
5745
+ async function flagWrongAudioCommand(trackId) {
5746
+ return adminApiPost("/api/admin/catalogue/wrong-audio/flag", {
5747
+ trackId
5748
+ });
5749
+ }
5744
5750
  async function certifyTrackCommand(trackId, note) {
5745
5751
  return adminApiPost("/api/admin/catalogue/certify", {
5746
5752
  ...note ? { note } : {},
@@ -8828,6 +8834,15 @@ function addAdminCommands(program2) {
8828
8834
  }
8829
8835
  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.`);
8830
8836
  });
8837
+ 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) => {
8838
+ const { flagWrongAudioCommand: flagWrongAudioCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
8839
+ const { flagged } = await flagWrongAudioCommand2(trackId);
8840
+ if (options.json) {
8841
+ printJson({ flagged, ok: true });
8842
+ return;
8843
+ }
8844
+ console.log(flagged ? `Flagged ${trackId}. Its vector is out of the ranking and a fresh capture is queued (the bad bytes are hash-rejected).` : `${trackId} is not a captured finding \u2014 nothing to flag.`);
8845
+ });
8831
8846
  catalogue.command("certify").description("Certify an existing catalogue track in place \u2014 mint its finding (operator)").argument("<trackId>", "The catalogue track id to log").option("--note <note>", "An optional editorial note to mint onto the finding").option("--json", "Print JSON", false).action(async (trackId, options) => {
8832
8847
  const { certifyTrackCommand: certifyTrackCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
8833
8848
  const { logId } = await certifyTrackCommand2(trackId, options.note);
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.143.0"
34
+ "version": "0.144.0"
35
35
  }