fluncle 0.202.0 → 0.204.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 +22 -7
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -610,7 +610,7 @@ function parseVersion(version) {
610
610
  var currentVersion;
611
611
  var init_version = __esm(() => {
612
612
  init_output();
613
- currentVersion = "0.202.0".trim() ? "0.202.0".trim() : "0.1.0";
613
+ currentVersion = "0.204.0".trim() ? "0.204.0".trim() : "0.1.0";
614
614
  });
615
615
 
616
616
  // src/update-notifier.ts
@@ -2452,7 +2452,7 @@ function parseVersion2(version) {
2452
2452
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2453
2453
  var init_version2 = __esm(() => {
2454
2454
  init_output();
2455
- currentVersion2 = "0.202.0".trim() ? "0.202.0".trim() : "0.1.0";
2455
+ currentVersion2 = "0.204.0".trim() ? "0.204.0".trim() : "0.1.0";
2456
2456
  });
2457
2457
 
2458
2458
  // ../../packages/registry/src/index.ts
@@ -4243,7 +4243,7 @@ async function readManifestFields(renderPath) {
4243
4243
  } catch {}
4244
4244
  const missing = DIVERSITY_LEDGER_FIELDS.filter((key) => !result[key]);
4245
4245
  if (missing.length > 0) {
4246
- console.error(`[video] render.json is missing ${missing.join(", ")} the finding ships without its diversity-ledger stamp(s); fix the render bundle's render.json`);
4246
+ console.error(`[video] render.json is missing ${missing.join(", ")}, so the finding ships without its diversity-ledger stamp(s); fix the render bundle's render.json`);
4247
4247
  }
4248
4248
  return result;
4249
4249
  }
@@ -5977,13 +5977,13 @@ function buildBody2(options, { requireContent }) {
5977
5977
  }
5978
5978
  function readContentFile(filePath) {
5979
5979
  if (!existsSync4(filePath)) {
5980
- throw new CliError2("file_not_found", `Content file not found: ${filePath}`);
5980
+ throw new CliError2("file_not_found", `Edition payload file not found: ${filePath}`);
5981
5981
  }
5982
5982
  const text = readFileSync4(filePath, "utf-8");
5983
5983
  try {
5984
5984
  return JSON.parse(text);
5985
5985
  } catch (error) {
5986
- throw new CliError2("invalid_content_json", `Content JSON parse failed: ${error instanceof Error ? error.message : String(error)}`);
5986
+ throw new CliError2("invalid_content_json", `Edition payload JSON parse failed: ${error instanceof Error ? error.message : String(error)}`);
5987
5987
  }
5988
5988
  }
5989
5989
  async function newsletterDraftCommand(options) {
@@ -6710,6 +6710,7 @@ __export(exports_admin_catalogue, {
6710
6710
  verifyCaptureCommand: () => verifyCaptureCommand,
6711
6711
  setTrackDismissedCommand: () => setTrackDismissedCommand,
6712
6712
  requeueUnmatchedCommand: () => requeueUnmatchedCommand,
6713
+ requeueAnchorCommand: () => requeueAnchorCommand,
6713
6714
  listUnverifiedCapturesCommand: () => listUnverifiedCapturesCommand,
6714
6715
  forceCaptureCommand: () => forceCaptureCommand,
6715
6716
  flagWrongAudioCommand: () => flagWrongAudioCommand,
@@ -6749,6 +6750,11 @@ async function clearWrongAudioCommand(trackId) {
6749
6750
  async function requeueUnmatchedCommand() {
6750
6751
  return adminApiPost("/api/v1/admin/catalogue/captures/requeue-unmatched", {});
6751
6752
  }
6753
+ async function requeueAnchorCommand(trackIds) {
6754
+ return adminApiPost("/api/v1/admin/catalogue/anchor/requeue", {
6755
+ trackIds
6756
+ });
6757
+ }
6752
6758
  async function forceCaptureCommand(trackId) {
6753
6759
  return adminApiPost("/api/v1/admin/catalogue/force-capture", {
6754
6760
  trackId
@@ -9881,11 +9887,11 @@ function addAdminCommands(program2) {
9881
9887
  adminNewsletter.action(() => {
9882
9888
  adminNewsletter.outputHelp();
9883
9889
  });
9884
- adminNewsletter.command("draft").description("Persist a newsletter edition draft (the agent authors it, you send it)").option("--content-file <file>", "Structured edition content payload (JSON)").option("--subject <text>", "Email subject line").option("--window-since <date>", "Discovery-window start (ISO)").option("--window-until <date>", "Discovery-window end (ISO)").option("--prompt-version <n>", "The prompt-registry version that authored this (the sweep sends it; it is the edition's provenance)").option("--json", "Print JSON", false).allowExcessArguments().action(async (options) => {
9890
+ adminNewsletter.command("draft").description("Persist a newsletter edition draft (the agent authors it, you send it)").option("--content-file <file>", "Structured edition payload (JSON)").option("--subject <text>", "Email subject line").option("--window-since <date>", "Discovery-window start (ISO)").option("--window-until <date>", "Discovery-window end (ISO)").option("--prompt-version <n>", "The prompt-registry version that authored this (the sweep sends it; it is the edition's provenance)").option("--json", "Print JSON", false).allowExcessArguments().action(async (options) => {
9885
9891
  const { newsletterDraftCommand: newsletterDraftCommand2 } = await Promise.resolve().then(() => (init_newsletter(), exports_newsletter));
9886
9892
  await runNewsletterDraft({ ...options, promptVersion: parsePromptVersion(options.promptVersion) }, newsletterDraftCommand2);
9887
9893
  });
9888
- adminNewsletter.command("update").description("Update a draft edition's payload, subject, or window").argument("[id]").option("--content-file <file>", "Structured edition content payload (JSON)").option("--subject <text>", "Email subject line").option("--window-since <date>", "Discovery-window start (ISO)").option("--window-until <date>", "Discovery-window end (ISO)").option("--json", "Print JSON", false).allowExcessArguments().action(async (id, options) => {
9894
+ adminNewsletter.command("update").description("Update a draft edition's payload, subject, or window").argument("[id]").option("--content-file <file>", "Structured edition payload (JSON)").option("--subject <text>", "Email subject line").option("--window-since <date>", "Discovery-window start (ISO)").option("--window-until <date>", "Discovery-window end (ISO)").option("--json", "Print JSON", false).allowExcessArguments().action(async (id, options) => {
9889
9895
  const { newsletterUpdateCommand: newsletterUpdateCommand2 } = await Promise.resolve().then(() => (init_newsletter(), exports_newsletter));
9890
9896
  await runNewsletterUpdate(id, options, newsletterUpdateCommand2);
9891
9897
  });
@@ -10137,6 +10143,15 @@ function addAdminCommands(program2) {
10137
10143
  }
10138
10144
  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.`);
10139
10145
  });
10146
+ catalogue.command("requeue-anchor").description("Clear rows' anchor re-ask backoff so the next tick retries them (operator)").argument("<trackIds...>", "The catalogue track id(s) to requeue (up to 250)").option("--json", "Print JSON", false).action(async (trackIds, options) => {
10147
+ const { requeueAnchorCommand: requeueAnchorCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
10148
+ const { requeued } = await requeueAnchorCommand2(trackIds);
10149
+ if (options.json) {
10150
+ printJson({ ok: true, requeued });
10151
+ return;
10152
+ }
10153
+ console.log(`Re-queued ${requeued} of ${trackIds.length} row(s) \u2014 the next anchor tick picks them up at their real priority.`);
10154
+ });
10140
10155
  catalogue.command("requeue-unmatched").description("Re-queue terminal-unmatched captures after a matcher improvement (operator)").option("--json", "Print JSON", false).action(async (options) => {
10141
10156
  const { requeueUnmatchedCommand: requeueUnmatchedCommand2 } = await Promise.resolve().then(() => (init_admin_catalogue(), exports_admin_catalogue));
10142
10157
  const { requeued, skippedVetoed } = await requeueUnmatchedCommand2();
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.202.0"
34
+ "version": "0.204.0"
35
35
  }