fluncle 0.124.0 → 0.126.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 +34 -20
- package/package.json +1 -1
package/bin/fluncle.mjs
CHANGED
|
@@ -557,7 +557,7 @@ function parseVersion(version) {
|
|
|
557
557
|
var currentVersion;
|
|
558
558
|
var init_version = __esm(() => {
|
|
559
559
|
init_output();
|
|
560
|
-
currentVersion = "0.
|
|
560
|
+
currentVersion = "0.126.0".trim() ? "0.126.0".trim() : "0.1.0";
|
|
561
561
|
});
|
|
562
562
|
|
|
563
563
|
// src/update-notifier.ts
|
|
@@ -2185,7 +2185,7 @@ function parseVersion2(version) {
|
|
|
2185
2185
|
var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
|
|
2186
2186
|
var init_version2 = __esm(() => {
|
|
2187
2187
|
init_output();
|
|
2188
|
-
currentVersion2 = "0.
|
|
2188
|
+
currentVersion2 = "0.126.0".trim() ? "0.126.0".trim() : "0.1.0";
|
|
2189
2189
|
});
|
|
2190
2190
|
|
|
2191
2191
|
// ../../packages/registry/src/index.ts
|
|
@@ -3436,6 +3436,7 @@ var init_admin_attention = __esm(() => {
|
|
|
3436
3436
|
"attach-cues": "cues",
|
|
3437
3437
|
distribute: "distribute",
|
|
3438
3438
|
"drip-empty": "clip drip",
|
|
3439
|
+
"label-review": "label",
|
|
3439
3440
|
newsletter: "newsletter",
|
|
3440
3441
|
"post-tiktok": "tiktok",
|
|
3441
3442
|
"post-youtube": "youtube",
|
|
@@ -8336,6 +8337,12 @@ async function runTrackNote(idOrLogId, options, trackNoteCommand2) {
|
|
|
8336
8337
|
console.log(`Authored the note for ${result.logId}:`);
|
|
8337
8338
|
console.log(` ${result.note}`);
|
|
8338
8339
|
}
|
|
8340
|
+
function printSweepJson(payload, failedCount) {
|
|
8341
|
+
printJson({ ...payload, failedCount, ok: failedCount === 0 });
|
|
8342
|
+
if (failedCount > 0) {
|
|
8343
|
+
process.exitCode = 1;
|
|
8344
|
+
}
|
|
8345
|
+
}
|
|
8339
8346
|
async function runMigratePreviewArchive(options, migratePreviewArchiveCommand2) {
|
|
8340
8347
|
const limit = options.limit === undefined ? 50 : Number.parseInt(options.limit, 10);
|
|
8341
8348
|
if (!Number.isInteger(limit) || limit < 1) {
|
|
@@ -8384,7 +8391,7 @@ async function runMigratePreviewArchive(options, migratePreviewArchiveCommand2)
|
|
|
8384
8391
|
cursor = result.nextCursor;
|
|
8385
8392
|
}
|
|
8386
8393
|
if (options.json) {
|
|
8387
|
-
|
|
8394
|
+
printSweepJson({
|
|
8388
8395
|
blocked,
|
|
8389
8396
|
copied,
|
|
8390
8397
|
copiedCount: copied.length,
|
|
@@ -8392,13 +8399,11 @@ async function runMigratePreviewArchive(options, migratePreviewArchiveCommand2)
|
|
|
8392
8399
|
deletedCount: deleted.length,
|
|
8393
8400
|
dryRun,
|
|
8394
8401
|
failed,
|
|
8395
|
-
failedCount: failed.length,
|
|
8396
8402
|
mode,
|
|
8397
|
-
ok: true,
|
|
8398
8403
|
remaining,
|
|
8399
8404
|
skipped,
|
|
8400
8405
|
skippedCount: skipped.length
|
|
8401
|
-
});
|
|
8406
|
+
}, failed.length);
|
|
8402
8407
|
return;
|
|
8403
8408
|
}
|
|
8404
8409
|
if (blocked) {
|
|
@@ -8417,6 +8422,9 @@ async function runMigratePreviewArchive(options, migratePreviewArchiveCommand2)
|
|
|
8417
8422
|
for (const item of failed) {
|
|
8418
8423
|
console.log(` FAILED ${item.trackId}: ${item.error}`);
|
|
8419
8424
|
}
|
|
8425
|
+
if (failed.length > 0) {
|
|
8426
|
+
process.exitCode = 1;
|
|
8427
|
+
}
|
|
8420
8428
|
}
|
|
8421
8429
|
async function runPreviewArchiveBackfill(options, previewArchiveBackfillCommand2) {
|
|
8422
8430
|
const limit = options.limit === undefined ? undefined : Number.parseInt(options.limit, 10);
|
|
@@ -8428,7 +8436,7 @@ async function runPreviewArchiveBackfill(options, previewArchiveBackfillCommand2
|
|
|
8428
8436
|
limit
|
|
8429
8437
|
});
|
|
8430
8438
|
if (options.json) {
|
|
8431
|
-
|
|
8439
|
+
printSweepJson({ ...result }, result.failed.length);
|
|
8432
8440
|
return;
|
|
8433
8441
|
}
|
|
8434
8442
|
const verb = result.dryRun ? "Would archive" : "Archived";
|
|
@@ -8437,6 +8445,9 @@ async function runPreviewArchiveBackfill(options, previewArchiveBackfillCommand2
|
|
|
8437
8445
|
for (const item of result.archived) {
|
|
8438
8446
|
console.log(` ${item.logId}: ${item.source}`);
|
|
8439
8447
|
}
|
|
8448
|
+
if (result.failed.length > 0) {
|
|
8449
|
+
process.exitCode = 1;
|
|
8450
|
+
}
|
|
8440
8451
|
}
|
|
8441
8452
|
async function runBackfillLastfm(options, backfillLastfmCommand2) {
|
|
8442
8453
|
const limit = parseListLimit(options.limit);
|
|
@@ -8467,17 +8478,15 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
|
|
|
8467
8478
|
cursor = result.nextCursor;
|
|
8468
8479
|
}
|
|
8469
8480
|
if (options.json) {
|
|
8470
|
-
|
|
8481
|
+
printSweepJson({
|
|
8471
8482
|
dryRun,
|
|
8472
8483
|
failed,
|
|
8473
|
-
failedCount: failed.length,
|
|
8474
8484
|
loved,
|
|
8475
8485
|
lovedCount: loved.length,
|
|
8476
|
-
ok: true,
|
|
8477
8486
|
rateLimited: throttled,
|
|
8478
8487
|
skipped,
|
|
8479
8488
|
skippedCount: skipped.length
|
|
8480
|
-
});
|
|
8489
|
+
}, failed.length);
|
|
8481
8490
|
return;
|
|
8482
8491
|
}
|
|
8483
8492
|
const verb = dryRun ? "Would love" : "Loved";
|
|
@@ -8488,6 +8497,9 @@ async function runBackfillLastfm(options, backfillLastfmCommand2) {
|
|
|
8488
8497
|
for (const item of failed) {
|
|
8489
8498
|
console.log(` ${item.logId}: ${item.error}`);
|
|
8490
8499
|
}
|
|
8500
|
+
if (failed.length > 0) {
|
|
8501
|
+
process.exitCode = 1;
|
|
8502
|
+
}
|
|
8491
8503
|
}
|
|
8492
8504
|
async function runBackfillDiscogs(options, backfillDiscogsCommand2) {
|
|
8493
8505
|
const limit = parseListLimit(options.limit);
|
|
@@ -8562,16 +8574,14 @@ async function runBackfillArtists(options, backfillArtistsCommand2) {
|
|
|
8562
8574
|
cursor = result.nextCursor;
|
|
8563
8575
|
}
|
|
8564
8576
|
if (options.json) {
|
|
8565
|
-
|
|
8577
|
+
printSweepJson({
|
|
8566
8578
|
dryRun,
|
|
8567
8579
|
failed,
|
|
8568
|
-
failedCount: failed.length,
|
|
8569
|
-
ok: true,
|
|
8570
8580
|
skipped,
|
|
8571
8581
|
skippedCount: skipped.length,
|
|
8572
8582
|
upserted,
|
|
8573
8583
|
upsertedCount: upserted.length
|
|
8574
|
-
});
|
|
8584
|
+
}, failed.length);
|
|
8575
8585
|
return;
|
|
8576
8586
|
}
|
|
8577
8587
|
const verb = dryRun ? "Would upsert" : "Upserted";
|
|
@@ -8582,6 +8592,9 @@ async function runBackfillArtists(options, backfillArtistsCommand2) {
|
|
|
8582
8592
|
for (const item of failed) {
|
|
8583
8593
|
console.log(` ${item.logId}: ${item.error}`);
|
|
8584
8594
|
}
|
|
8595
|
+
if (failed.length > 0) {
|
|
8596
|
+
process.exitCode = 1;
|
|
8597
|
+
}
|
|
8585
8598
|
}
|
|
8586
8599
|
async function runBackfillArtistImages(options, backfillArtistImagesCommand2) {
|
|
8587
8600
|
const limit = parseListLimit(options.limit);
|
|
@@ -8607,16 +8620,14 @@ async function runBackfillArtistImages(options, backfillArtistImagesCommand2) {
|
|
|
8607
8620
|
cursor = result.nextCursor;
|
|
8608
8621
|
}
|
|
8609
8622
|
if (options.json) {
|
|
8610
|
-
|
|
8623
|
+
printSweepJson({
|
|
8611
8624
|
dryRun,
|
|
8612
8625
|
failed,
|
|
8613
|
-
failedCount: failed.length,
|
|
8614
8626
|
filled,
|
|
8615
8627
|
filledCount: filled.length,
|
|
8616
|
-
ok: true,
|
|
8617
8628
|
skipped,
|
|
8618
8629
|
skippedCount: skipped.length
|
|
8619
|
-
});
|
|
8630
|
+
}, failed.length);
|
|
8620
8631
|
return;
|
|
8621
8632
|
}
|
|
8622
8633
|
const verb = dryRun ? "Would fill" : "Filled";
|
|
@@ -8627,6 +8638,9 @@ async function runBackfillArtistImages(options, backfillArtistImagesCommand2) {
|
|
|
8627
8638
|
for (const item of failed) {
|
|
8628
8639
|
console.log(` ${item.artistId}: ${item.error}`);
|
|
8629
8640
|
}
|
|
8641
|
+
if (failed.length > 0) {
|
|
8642
|
+
process.exitCode = 1;
|
|
8643
|
+
}
|
|
8630
8644
|
}
|
|
8631
8645
|
async function runArtistResolveQueue(options, listArtistsCommand2) {
|
|
8632
8646
|
const limit = parseListLimit(options.limit);
|
|
@@ -9552,7 +9566,7 @@ async function runAdminRequeueAnalysis(options, requeueAnalysisCommand2) {
|
|
|
9552
9566
|
const max = parseRequeueAnalysisLimit(options.limit);
|
|
9553
9567
|
const result = await requeueAnalysisCommand2({ apply: options.apply === true, max });
|
|
9554
9568
|
if (options.json) {
|
|
9555
|
-
|
|
9569
|
+
printSweepJson({ ...result }, result.failed.length);
|
|
9556
9570
|
return;
|
|
9557
9571
|
}
|
|
9558
9572
|
const { coordinate: coordinate3 } = await Promise.resolve().then(() => (init_format2(), exports_format));
|
package/package.json
CHANGED