fluncle 0.64.0 → 0.65.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 +25 -2
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -423,7 +423,7 @@ function parseVersion(version) {
423
423
  var currentVersion;
424
424
  var init_version = __esm(() => {
425
425
  init_output();
426
- currentVersion = "0.64.0".trim() ? "0.64.0".trim() : "0.1.0";
426
+ currentVersion = "0.65.0".trim() ? "0.65.0".trim() : "0.1.0";
427
427
  });
428
428
 
429
429
  // src/update-notifier.ts
@@ -1914,7 +1914,7 @@ function parseVersion2(version) {
1914
1914
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
1915
1915
  var init_version2 = __esm(() => {
1916
1916
  init_output();
1917
- currentVersion2 = "0.64.0".trim() ? "0.64.0".trim() : "0.1.0";
1917
+ currentVersion2 = "0.65.0".trim() ? "0.65.0".trim() : "0.1.0";
1918
1918
  });
1919
1919
 
1920
1920
  // ../../packages/registry/src/index.ts
@@ -2493,6 +2493,17 @@ var init_src = __esm(() => {
2493
2493
  probeConfig: { cadenceMs: 30 * MINUTE_MS, cronName: "fluncle-backfill", kind: "cron" },
2494
2494
  weights: { status: "hidden" }
2495
2495
  },
2496
+ {
2497
+ command: "fluncle admin tracks social --capture",
2498
+ exposedContent: [
2499
+ "capture the YouTube/TikTok post URLs Postiz withholds on create → write back (--no-agent, Worker HTTP)"
2500
+ ],
2501
+ kind: "cron",
2502
+ name: "cron.social-capture",
2503
+ operatorNotes: "every 10m. Pure HTTP trigger, zero LLM tokens. Agent tier (fills the public URL only — publishes nothing). The box's baked CLI predates the `--capture` verb, so the cron curls POST /api/admin/social/posts/capture directly; the Worker polls Postiz and writes back. Source: docs/agents/hermes/scripts/social-capture-sweep.sh. Probed on /status as cron.social-capture.",
2504
+ probeConfig: { cadenceMs: 10 * MINUTE_MS, cronName: "fluncle-social-capture", kind: "cron" },
2505
+ weights: { status: "hidden" }
2506
+ },
2496
2507
  {
2497
2508
  command: "fluncle admin tracks queue",
2498
2509
  exposedContent: [
@@ -6477,6 +6488,7 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
6477
6488
  const skipped = [];
6478
6489
  let cursor;
6479
6490
  let dryRun = options.dryRun;
6491
+ let throttled = false;
6480
6492
  while (loved.length + failed.length < limit) {
6481
6493
  const remaining = limit - (loved.length + failed.length);
6482
6494
  const result = await backfillLastfmCommand2(remaining, options.dryRun, cursor);
@@ -6488,6 +6500,10 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
6488
6500
  const verb2 = result.dryRun ? "Would love" : "Loved";
6489
6501
  console.log(` \u2026${verb2.toLowerCase()} ${result.lovedCount}; ${result.failedCount} failed; ${result.skippedCount} skipped`);
6490
6502
  }
6503
+ if (result.rateLimited) {
6504
+ throttled = true;
6505
+ break;
6506
+ }
6491
6507
  if (result.nextCursor === null) {
6492
6508
  break;
6493
6509
  }
@@ -6501,6 +6517,7 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
6501
6517
  loved,
6502
6518
  lovedCount: loved.length,
6503
6519
  ok: true,
6520
+ rateLimited: throttled,
6504
6521
  skipped,
6505
6522
  skippedCount: skipped.length
6506
6523
  });
@@ -6522,6 +6539,7 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
6522
6539
  const skipped = [];
6523
6540
  let cursor;
6524
6541
  let dryRun = options.dryRun;
6542
+ let throttled = false;
6525
6543
  while (resolved.length + unresolved.length < limit) {
6526
6544
  const remaining = limit - (resolved.length + unresolved.length);
6527
6545
  const result = await backfillDiscogsCommand2(remaining, options.dryRun, cursor);
@@ -6533,6 +6551,10 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
6533
6551
  const verb2 = result.dryRun ? "would resolve" : "resolved";
6534
6552
  console.log(` \u2026${verb2} ${result.resolvedCount}; ${result.unresolvedCount} unresolved; ${result.skippedCount} skipped`);
6535
6553
  }
6554
+ if (result.rateLimited) {
6555
+ throttled = true;
6556
+ break;
6557
+ }
6536
6558
  if (result.nextCursor === null) {
6537
6559
  break;
6538
6560
  }
@@ -6542,6 +6564,7 @@ async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
6542
6564
  printJson({
6543
6565
  dryRun,
6544
6566
  ok: true,
6567
+ rateLimited: throttled,
6545
6568
  resolved,
6546
6569
  resolvedCount: resolved.length,
6547
6570
  skipped,
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.64.0"
34
+ "version": "0.65.0"
35
35
  }