fluncle 0.133.0 → 0.134.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 +12 -7
- 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.
|
|
564
|
+
currentVersion = "0.134.0".trim() ? "0.134.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.
|
|
2192
|
+
currentVersion2 = "0.134.0".trim() ? "0.134.0".trim() : "0.1.0";
|
|
2193
2193
|
});
|
|
2194
2194
|
|
|
2195
2195
|
// ../../packages/registry/src/index.ts
|
|
@@ -3743,8 +3743,11 @@ async function trackWorkCommand(options) {
|
|
|
3743
3743
|
limit: String(Math.min(Math.max(1, options.limit), 200)),
|
|
3744
3744
|
scope: options.scope
|
|
3745
3745
|
});
|
|
3746
|
+
if (options.count) {
|
|
3747
|
+
params.set("count", "true");
|
|
3748
|
+
}
|
|
3746
3749
|
const response = await adminApiGet(`/api/admin/tracks/work?${params.toString()}`);
|
|
3747
|
-
return response.tracks ?? [];
|
|
3750
|
+
return { queued: response.queued, tracks: response.tracks ?? [] };
|
|
3748
3751
|
}
|
|
3749
3752
|
async function requeueAnalysisCommand(options) {
|
|
3750
3753
|
const findings = await fetchAdminTracks({ max: options.max, order: "asc" });
|
|
@@ -8123,7 +8126,7 @@ function addAdminCommands(program2) {
|
|
|
8123
8126
|
const { captureQueueCommand: captureQueueCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
|
|
8124
8127
|
await runAdminCaptureQueue(options, captureQueueCommand2);
|
|
8125
8128
|
});
|
|
8126
|
-
adminTracks.command("work").description("The audio pipeline's worklist for one stage, in capture-priority order").requiredOption("--kind <kind>", "Pipeline stage: analyze | capture | embed").option("--scope <scope>", "Which half of the archive: all | catalogue | findings", "all").option("--limit <limit>", "Rows to show", "10").option("--json", "Print JSON", false).action(async (options) => {
|
|
8129
|
+
adminTracks.command("work").description("The audio pipeline's worklist for one stage, in capture-priority order").requiredOption("--kind <kind>", "Pipeline stage: analyze | capture | embed").option("--scope <scope>", "Which half of the archive: all | catalogue | findings", "all").option("--limit <limit>", "Rows to show", "10").option("--count", "Also report the size of the whole backlog, not just this page", false).option("--json", "Print JSON", false).action(async (options) => {
|
|
8127
8130
|
const { trackWorkCommand: trackWorkCommand2 } = await Promise.resolve().then(() => (init_admin_tracks(), exports_admin_tracks));
|
|
8128
8131
|
await runAdminTrackWork(options, trackWorkCommand2);
|
|
8129
8132
|
});
|
|
@@ -10010,13 +10013,14 @@ async function runAdminTrackWork(options, trackWorkCommand2) {
|
|
|
10010
10013
|
process.exitCode = 1;
|
|
10011
10014
|
return;
|
|
10012
10015
|
}
|
|
10013
|
-
const tracks = await trackWorkCommand2({
|
|
10016
|
+
const { queued, tracks } = await trackWorkCommand2({
|
|
10017
|
+
count: options.count,
|
|
10014
10018
|
kind,
|
|
10015
10019
|
limit: parseListLimit(options.limit),
|
|
10016
10020
|
scope
|
|
10017
10021
|
});
|
|
10018
10022
|
if (options.json) {
|
|
10019
|
-
printJson({ ok: true, tracks });
|
|
10023
|
+
printJson({ ok: true, queued, tracks });
|
|
10020
10024
|
return;
|
|
10021
10025
|
}
|
|
10022
10026
|
if (tracks.length === 0) {
|
|
@@ -10024,7 +10028,8 @@ async function runAdminTrackWork(options, trackWorkCommand2) {
|
|
|
10024
10028
|
return;
|
|
10025
10029
|
}
|
|
10026
10030
|
const noun = tracks.length === 1 ? "track" : "tracks";
|
|
10027
|
-
|
|
10031
|
+
const head = queued === undefined ? `${tracks.length} ${noun} to ${kind} (${scope}), in drain order:` : `${queued} queued to ${kind} (${scope}) \u2014 showing the first ${tracks.length}, in drain order:`;
|
|
10032
|
+
console.log(head);
|
|
10028
10033
|
for (const track of tracks) {
|
|
10029
10034
|
const who = track.logId ?? `${track.trackId} \xB7 catalogue`;
|
|
10030
10035
|
const rung = track.capturePriority === null ? "" : ` \xB7 p${track.capturePriority}`;
|
package/package.json
CHANGED