fluncle 0.49.0 → 0.50.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 +2 -47
- package/package.json +1 -1
package/bin/fluncle.mjs
CHANGED
|
@@ -426,7 +426,7 @@ function parseVersion(version) {
|
|
|
426
426
|
var currentVersion;
|
|
427
427
|
var init_version = __esm(() => {
|
|
428
428
|
init_output();
|
|
429
|
-
currentVersion = "0.
|
|
429
|
+
currentVersion = "0.50.0".trim() ? "0.50.0".trim() : "0.1.0";
|
|
430
430
|
});
|
|
431
431
|
|
|
432
432
|
// src/update-notifier.ts
|
|
@@ -1899,7 +1899,7 @@ function parseVersion2(version) {
|
|
|
1899
1899
|
var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
|
|
1900
1900
|
var init_version2 = __esm(() => {
|
|
1901
1901
|
init_output();
|
|
1902
|
-
currentVersion2 = "0.
|
|
1902
|
+
currentVersion2 = "0.50.0".trim() ? "0.50.0".trim() : "0.1.0";
|
|
1903
1903
|
});
|
|
1904
1904
|
|
|
1905
1905
|
// src/commands/track.ts
|
|
@@ -2081,7 +2081,6 @@ __export(exports_admin_tracks, {
|
|
|
2081
2081
|
vehiclesCommand: () => vehiclesCommand,
|
|
2082
2082
|
queueCommand: () => queueCommand,
|
|
2083
2083
|
observeQueueCommand: () => observeQueueCommand,
|
|
2084
|
-
enrichSweepCommand: () => enrichSweepCommand,
|
|
2085
2084
|
enrichQueueCommand: () => enrichQueueCommand,
|
|
2086
2085
|
contextQueueCommand: () => contextQueueCommand,
|
|
2087
2086
|
backfillLastfmCommand: () => backfillLastfmCommand,
|
|
@@ -2146,9 +2145,6 @@ async function observeQueueCommand(limit) {
|
|
|
2146
2145
|
order: "asc"
|
|
2147
2146
|
});
|
|
2148
2147
|
}
|
|
2149
|
-
async function enrichSweepCommand(limit) {
|
|
2150
|
-
return adminApiPost(`/api/admin/tracks/enrich?limit=${limit}`);
|
|
2151
|
-
}
|
|
2152
2148
|
async function backfillLastfmCommand(limit, dryRun, cursor) {
|
|
2153
2149
|
const params = new URLSearchParams({ dryRun: String(dryRun), limit: String(limit) });
|
|
2154
2150
|
if (cursor) {
|
|
@@ -5384,18 +5380,6 @@ function addAdminCommands(program2) {
|
|
|
5384
5380
|
const { enrichQueueCommand: enrichQueueCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
|
|
5385
5381
|
await runAdminEnrichQueue(options, enrichQueueCommand2);
|
|
5386
5382
|
});
|
|
5387
|
-
adminTracks.command("enrich").description("Re-fire enrichment for everything in the enrich-queue (--all; idempotent self-heal)").option("--all", "Sweep the whole enrich-queue (required)", false).option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
|
|
5388
|
-
const { enrichSweepCommand: enrichSweepCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
|
|
5389
|
-
await runAdminEnrich(options, enrichSweepCommand2);
|
|
5390
|
-
});
|
|
5391
|
-
adminTracks.command("enrich-sweep", { hidden: true }).description("Enrich sweep (alias of `admin tracks enrich --all`)").option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
|
|
5392
|
-
const { enrichSweepCommand: enrichSweepCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
|
|
5393
|
-
await runAdminEnrich({ ...options, all: true }, enrichSweepCommand2);
|
|
5394
|
-
});
|
|
5395
|
-
admin.command("enrich-sweep", { hidden: true }).description("Enrich sweep (alias of `admin tracks enrich --all`)").option("--limit <limit>", "Max findings to re-trigger", "25").option("--json", "Print JSON", false).action(async (options) => {
|
|
5396
|
-
const { enrichSweepCommand: enrichSweepCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
|
|
5397
|
-
await runAdminEnrich({ ...options, all: true }, enrichSweepCommand2);
|
|
5398
|
-
});
|
|
5399
5383
|
adminTracks.command("vehicles").description("Recent video vehicles, newest first (the style ledger for diversity)").option("--limit <limit>", "Number of vehicles to show", "10").option("--json", "Print JSON", false).action(async (options) => {
|
|
5400
5384
|
const { vehiclesCommand: vehiclesCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
|
|
5401
5385
|
await runAdminVehicles(options, vehiclesCommand2);
|
|
@@ -6136,35 +6120,6 @@ async function runAdminEnrichQueue(options, enrichQueueCommand2) {
|
|
|
6136
6120
|
console.log(trackRows2(tracks).join(`
|
|
6137
6121
|
`));
|
|
6138
6122
|
}
|
|
6139
|
-
async function runAdminEnrich(options, enrichSweepCommand2) {
|
|
6140
|
-
if (!options.all) {
|
|
6141
|
-
throw new Error("Usage: fluncle admin tracks enrich --all [--limit 25] [--json] (sweeps the whole enrich-queue)");
|
|
6142
|
-
}
|
|
6143
|
-
const limit = parseListLimit(options.limit);
|
|
6144
|
-
const result = await enrichSweepCommand2(limit);
|
|
6145
|
-
if (options.json) {
|
|
6146
|
-
printJson({
|
|
6147
|
-
ok: true,
|
|
6148
|
-
reEnriched: result.reEnriched,
|
|
6149
|
-
reEnrichedCount: result.reEnrichedCount,
|
|
6150
|
-
skipped: result.skipped,
|
|
6151
|
-
skippedCount: result.skippedCount
|
|
6152
|
-
});
|
|
6153
|
-
return;
|
|
6154
|
-
}
|
|
6155
|
-
if (result.reEnrichedCount === 0 && result.skippedCount === 0) {
|
|
6156
|
-
console.log("Nothing to sweep. The enrich-queue is empty.");
|
|
6157
|
-
return;
|
|
6158
|
-
}
|
|
6159
|
-
const noun = result.reEnrichedCount === 1 ? "finding" : "findings";
|
|
6160
|
-
console.log(`Re-fired enrichment for ${result.reEnrichedCount} ${noun}.`);
|
|
6161
|
-
for (const entry of result.reEnriched) {
|
|
6162
|
-
console.log(` ${entry.logId || entry.trackId} (was ${entry.status})`);
|
|
6163
|
-
}
|
|
6164
|
-
if (result.skippedCount > 0) {
|
|
6165
|
-
console.log(`Skipped ${result.skippedCount} with no Log ID yet.`);
|
|
6166
|
-
}
|
|
6167
|
-
}
|
|
6168
6123
|
async function runAdminVehicles(options, vehiclesCommand2) {
|
|
6169
6124
|
const limit = parseListLimit(options.limit);
|
|
6170
6125
|
const vehicles = await vehiclesCommand2(limit);
|
package/package.json
CHANGED