fluncle 0.242.0 → 0.243.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 +17 -6
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -622,7 +622,7 @@ function parseVersion(version) {
622
622
  var currentVersion;
623
623
  var init_version = __esm(() => {
624
624
  init_output();
625
- currentVersion = "0.242.0".trim() ? "0.242.0".trim() : "0.1.0";
625
+ currentVersion = "0.243.0".trim() ? "0.243.0".trim() : "0.1.0";
626
626
  });
627
627
 
628
628
  // src/update-notifier.ts
@@ -2335,7 +2335,7 @@ function parseVersion2(version) {
2335
2335
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2336
2336
  var init_version2 = __esm(() => {
2337
2337
  init_output();
2338
- currentVersion2 = "0.242.0".trim() ? "0.242.0".trim() : "0.1.0";
2338
+ currentVersion2 = "0.243.0".trim() ? "0.243.0".trim() : "0.1.0";
2339
2339
  });
2340
2340
 
2341
2341
  // ../../packages/registry/src/index.ts
@@ -3909,7 +3909,7 @@ var init_src = __esm(() => {
3909
3909
  weights: { status: "hidden" }
3910
3910
  },
3911
3911
  {
3912
- command: "fluncle admin projections get --json; fluncle admin projections advance --target <track_due_work|crawl_due_work> --action repair --limit 500 --max-steps 20 --no-terminal-status --json; fluncle admin projections advance --target <public_aggregates|artist_qualification> --action repair --limit 500 --max-steps 4 --no-terminal-status --json",
3912
+ command: "fluncle admin projections get --json; fluncle admin projections advance --target <track_due_work|crawl_due_work> --action repair --limit 500 --max-steps <adaptive> --no-terminal-status --json; fluncle admin projections advance --target <public_aggregates|artist_qualification> --action repair --limit 500 --max-steps <adaptive> --no-terminal-status --json",
3913
3913
  exposedContent: [
3914
3914
  "keep all four runtime projection families converged after their cutovers with one-read, serial, bounded repair (--no-agent)"
3915
3915
  ],
@@ -15167,11 +15167,13 @@ var init_admin_tracks = __esm(() => {
15167
15167
  tags: ["Admin"]
15168
15168
  }).input(object({
15169
15169
  count: string2().optional(),
15170
+ debtAware: string2().optional(),
15170
15171
  kind: TrackWorkKindSchema,
15171
15172
  limit: number3().int().min(1).max(250).default(50),
15172
15173
  scope: TrackWorkScopeSchema.default("all")
15173
15174
  })).output(object({
15174
15175
  capabilities: TrackWorkCapabilitiesSchema.optional(),
15176
+ debtPending: boolean2().optional(),
15175
15177
  ok: literal(true),
15176
15178
  queued: number2().optional(),
15177
15179
  tracks: array(TrackWorkItemSchema)
@@ -17183,9 +17185,14 @@ async function trackWorkCommand(options) {
17183
17185
  });
17184
17186
  if (options.count) {
17185
17187
  params.set("count", "true");
17188
+ params.set("debtAware", "true");
17186
17189
  }
17187
17190
  const response = await adminApiGet(`/api/v1/admin/tracks/work?${params.toString()}`);
17188
- return { queued: response.queued, tracks: response.tracks ?? [] };
17191
+ return {
17192
+ debtPending: response.debtPending,
17193
+ queued: response.queued,
17194
+ tracks: response.tracks ?? []
17195
+ };
17189
17196
  }
17190
17197
  async function requeueAnalysisCommand(options) {
17191
17198
  const findings = await fetchAdminTracks({ max: options.max, order: "asc" });
@@ -25335,14 +25342,18 @@ async function runAdminTrackWork(options, trackWorkCommand) {
25335
25342
  process.exitCode = 1;
25336
25343
  return;
25337
25344
  }
25338
- const { queued, tracks } = await trackWorkCommand({
25345
+ const { debtPending, queued, tracks } = await trackWorkCommand({
25339
25346
  count: options.count,
25340
25347
  kind,
25341
25348
  limit: parseListLimit(options.limit),
25342
25349
  scope
25343
25350
  });
25344
25351
  if (options.json) {
25345
- printJson({ ok: true, queued, tracks });
25352
+ printJson({ debtPending, ok: true, queued, tracks });
25353
+ return;
25354
+ }
25355
+ if (debtPending === true) {
25356
+ console.log(`${queued ?? 0} queued to ${kind} (${scope}) \u2014 page held back, due-work repair is still converging.`);
25346
25357
  return;
25347
25358
  }
25348
25359
  if (tracks.length === 0) {
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.242.0"
34
+ "version": "0.243.0"
35
35
  }