fluncle 0.159.0 → 0.161.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 +40 -2
  2. 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.159.0".trim() ? "0.159.0".trim() : "0.1.0";
564
+ currentVersion = "0.161.0".trim() ? "0.161.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.159.0".trim() ? "0.159.0".trim() : "0.1.0";
2192
+ currentVersion2 = "0.161.0".trim() ? "0.161.0".trim() : "0.1.0";
2193
2193
  });
2194
2194
 
2195
2195
  // ../../packages/registry/src/index.ts
@@ -5904,12 +5904,20 @@ var init_admin_observations = __esm(() => {
5904
5904
  // src/commands/admin-frontier.ts
5905
5905
  var exports_admin_frontier = {};
5906
5906
  __export(exports_admin_frontier, {
5907
+ frontierStatusCommand: () => frontierStatusCommand,
5908
+ frontierSetMintingCommand: () => frontierSetMintingCommand,
5907
5909
  frontierRefreshCommand: () => frontierRefreshCommand
5908
5910
  });
5909
5911
  async function frontierRefreshCommand(options) {
5910
5912
  const limit = options.limit ? Number.parseInt(options.limit, 10) : undefined;
5911
5913
  return adminApiPost("/api/admin/frontier-playlists/refresh", limit ? { limit } : {});
5912
5914
  }
5915
+ async function frontierStatusCommand() {
5916
+ return adminApiGet("/api/admin/frontier/minting");
5917
+ }
5918
+ async function frontierSetMintingCommand(open) {
5919
+ return adminApiPut("/api/admin/frontier/minting", { open });
5920
+ }
5913
5921
  var init_admin_frontier = __esm(() => {
5914
5922
  init_api();
5915
5923
  });
@@ -9158,6 +9166,33 @@ function addAdminCommands(program2) {
9158
9166
  }
9159
9167
  console.log(`Walked ${summary.total} playlist(s): ${summary.refreshed} refreshed, ${summary.unchanged} unchanged, ${summary.minted} minted, ${summary.skipped} skipped, ${summary.failed} failed.`);
9160
9168
  });
9169
+ frontier.command("status").description("Whether Frontier minting is open (the kill switch's state)").option("--json", "Print JSON", false).action(async (options) => {
9170
+ const { frontierStatusCommand: frontierStatusCommand2 } = await Promise.resolve().then(() => (init_admin_frontier(), exports_admin_frontier));
9171
+ const state = await frontierStatusCommand2();
9172
+ if (options.json) {
9173
+ printJson(state);
9174
+ return;
9175
+ }
9176
+ console.log(state.open ? "Frontier minting is OPEN." : "Frontier minting is closed.");
9177
+ });
9178
+ frontier.command("open").description("Open Frontier minting \u2014 the kill switch (operator)").option("--json", "Print JSON", false).action(async (options) => {
9179
+ const { frontierSetMintingCommand: frontierSetMintingCommand2 } = await Promise.resolve().then(() => (init_admin_frontier(), exports_admin_frontier));
9180
+ const state = await frontierSetMintingCommand2(true);
9181
+ if (options.json) {
9182
+ printJson(state);
9183
+ return;
9184
+ }
9185
+ console.log("Frontier minting is OPEN.");
9186
+ });
9187
+ frontier.command("close").description("Close Frontier minting \u2014 the kill switch (operator)").option("--json", "Print JSON", false).action(async (options) => {
9188
+ const { frontierSetMintingCommand: frontierSetMintingCommand2 } = await Promise.resolve().then(() => (init_admin_frontier(), exports_admin_frontier));
9189
+ const state = await frontierSetMintingCommand2(false);
9190
+ if (options.json) {
9191
+ printJson(state);
9192
+ return;
9193
+ }
9194
+ console.log("Frontier minting is closed.");
9195
+ });
9161
9196
  const catalogue = configureCommand(admin.command("catalogue").description("The catalogue (uncertified tracks): the crawler + its ranking"));
9162
9197
  catalogue.action(() => {
9163
9198
  catalogue.outputHelp();
@@ -9768,6 +9803,9 @@ async function runCrawlCatalogue(options, crawlCatalogueCommand2) {
9768
9803
  console.log(`Expanded ${result.expanded} node(s) at hop \u2264 ${result.maxHop}: ${result.tracksFound} track(s) found, ${result.tracksWritten} written, ${result.tracksSkipped} already held.`);
9769
9804
  console.log(` +${result.seeded} seed(s), +${result.nodesEnqueued} node(s) enqueued, ${result.frontierPending} pending, ${result.failed} failed.`);
9770
9805
  console.log(` ${result.anchorsFilled} Spotify anchor(s) filled${anchorOutcomeSuffix(result.anchorOutcome)}.`);
9806
+ if (result.seedsRearmed > 0) {
9807
+ console.log(` Re-armed ${result.seedsRearmed} enabled seed label(s) to re-check for new releases.`);
9808
+ }
9771
9809
  if (result.labelsDiscovered.length > 0) {
9772
9810
  console.log(` New labels to rule on: ${result.labelsDiscovered.join(", ")} (they are NOT crawled until enabled).`);
9773
9811
  }
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.159.0"
34
+ "version": "0.161.0"
35
35
  }