fluncle 0.288.0 → 0.289.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 +35 -22
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -704,7 +704,7 @@ function parseVersion(version) {
704
704
  var currentVersion;
705
705
  var init_version = __esm(() => {
706
706
  init_output();
707
- currentVersion = "0.288.0".trim() ? "0.288.0".trim() : "0.1.0";
707
+ currentVersion = "0.289.0".trim() ? "0.289.0".trim() : "0.1.0";
708
708
  });
709
709
 
710
710
  // src/update-notifier.ts
@@ -10528,6 +10528,18 @@ function coordinate2(track) {
10528
10528
  function artistTitle(track) {
10529
10529
  return `${track.artists.join(", ")} — ${track.title}`;
10530
10530
  }
10531
+ function isTerminalControl(code) {
10532
+ return code < 32 && code !== 9 && code !== 10 || code >= 127 && code <= 159;
10533
+ }
10534
+ function terminalSafe(value) {
10535
+ let safe = "";
10536
+ for (const character of value) {
10537
+ if (!isTerminalControl(character.codePointAt(0) ?? 0)) {
10538
+ safe += character;
10539
+ }
10540
+ }
10541
+ return safe;
10542
+ }
10531
10543
  var COORD_FALLBACK3 = "—";
10532
10544
  var init_format = __esm(() => {
10533
10545
  init_util();
@@ -11145,7 +11157,7 @@ function parseVersion2(version) {
11145
11157
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
11146
11158
  var init_version2 = __esm(() => {
11147
11159
  init_output();
11148
- currentVersion2 = "0.288.0".trim() ? "0.288.0".trim() : "0.1.0";
11160
+ currentVersion2 = "0.289.0".trim() ? "0.289.0".trim() : "0.1.0";
11149
11161
  });
11150
11162
 
11151
11163
  // ../../packages/registry/src/index.ts
@@ -11306,7 +11318,7 @@ var init_src = __esm(() => {
11306
11318
  {
11307
11319
  discoveryUrl: `${SITE}/llms.txt`,
11308
11320
  exposedContent: [
11309
- "/artists — one A–Z index of every drum & bass artist Fluncle holds",
11321
+ "/artists — one index of every drum & bass artist Fluncle holds, most tracks first by default (A–Z and latest-release orders too)",
11310
11322
  "/artist/:slug — one artist's page: its findings, its identity links, and the rest of its catalogue"
11311
11323
  ],
11312
11324
  kind: "web_route",
@@ -11319,12 +11331,12 @@ var init_src = __esm(() => {
11319
11331
  {
11320
11332
  discoveryUrl: `${SITE}/llms.txt`,
11321
11333
  exposedContent: [
11322
- "/labels — one A–Z index of every drum & bass record label Fluncle holds",
11334
+ "/labels — one index of every drum & bass record label Fluncle holds, most tracks first by default (A–Z and latest-release orders too)",
11323
11335
  "/label/:slug — one label: its findings, the artists on it, and the rest of its catalogue"
11324
11336
  ],
11325
11337
  kind: "web_route",
11326
11338
  name: "web.labels",
11327
- operatorNotes: "The label half of the graph (log ↔ artist ↔ label ↔ album). The INDEX is probeable (always 200); the slug page is not, so the probe targets /labels. /labels is ONE unified A–Z index of every label Fluncle holds (certified lit, catalogue unlit), paged behind ?page=N. A label below the renderable-track floor renders noindex + stays out of the sitemap (the ARTIST_INDEX_MIN_FINDINGS precedent). The page is BLIND to the label's crawl seed_state — that is crawl scope, never storage (docs/label-entity.md); the operator's ruling station is /admin/labels.",
11339
+ operatorNotes: "The label half of the graph (log ↔ artist ↔ label ↔ album). The INDEX is probeable (always 200); the slug page is not, so the probe targets /labels. /labels is ONE unified index of every label Fluncle holds (certified lit, catalogue unlit), paged behind ?page=N. A label below the renderable-track floor renders noindex + stays out of the sitemap (the ARTIST_INDEX_MIN_FINDINGS precedent). The page is BLIND to the label's crawl seed_state — that is crawl scope, never storage (docs/label-entity.md); the operator's ruling station is /admin/labels.",
11328
11340
  probeConfig: { cadenceMs: PROBE_CADENCE_MS, kind: "http", timeoutMs: PROBE_TIMEOUT_MS },
11329
11341
  route: "/labels",
11330
11342
  url: `${SITE}/labels`,
@@ -11333,7 +11345,7 @@ var init_src = __esm(() => {
11333
11345
  {
11334
11346
  discoveryUrl: `${SITE}/llms.txt`,
11335
11347
  exposedContent: [
11336
- "/albums — one alphabetical index of every drum & bass album Fluncle holds",
11348
+ "/albums — one index of every drum & bass album Fluncle holds, most tracks first by default (A–Z and latest-release orders too)",
11337
11349
  "/album/:slug — one record: its findings, its artists, its label, and the rest of its tracklist"
11338
11350
  ],
11339
11351
  kind: "web_route",
@@ -22769,7 +22781,7 @@ var init_admin_bios = __esm(() => {
22769
22781
  });
22770
22782
 
22771
22783
  // ../../packages/contracts/src/orpc/admin-costs.ts
22772
- var CostStep, CostVendor, CostUnitType, CostBasis, CostSource, CostEventInputSchema, MAX_COST_EVENTS_PER_BATCH = 500, recordCost, adminCostsContract;
22784
+ var CostStep, CostVendor, CostUnitType, CostBasis, CostSource, COST_EVENT_LOG_ID_MAX = 64, COST_EVENT_TRACK_ID_MAX = 256, COST_EVENT_MODEL_MAX = 256, COST_EVENT_TIMESTAMP_MAX = 64, COST_EVENT_ID_MAX = 1024, CostEventInputSchema, MAX_COST_EVENTS_PER_BATCH = 500, recordCost, adminCostsContract;
22773
22785
  var init_admin_costs = __esm(() => {
22774
22786
  init_dist4();
22775
22787
  init_zod();
@@ -22803,14 +22815,14 @@ var init_admin_costs = __esm(() => {
22803
22815
  CostSource = _enum(["measured", "estimated"]);
22804
22816
  CostEventInputSchema = object({
22805
22817
  costBasis: CostBasis,
22806
- id: string4().min(1),
22807
- logId: string4().nullish(),
22808
- model: string4().nullish(),
22809
- occurredAt: string4().min(1),
22818
+ id: string4().min(1).max(COST_EVENT_ID_MAX),
22819
+ logId: string4().max(COST_EVENT_LOG_ID_MAX).nullish(),
22820
+ model: string4().max(COST_EVENT_MODEL_MAX).nullish(),
22821
+ occurredAt: string4().min(1).max(COST_EVENT_TIMESTAMP_MAX),
22810
22822
  quantity: number4(),
22811
22823
  source: CostSource,
22812
22824
  step: CostStep,
22813
- trackId: string4().nullish(),
22825
+ trackId: string4().max(COST_EVENT_TRACK_ID_MAX).nullish(),
22814
22826
  unitType: CostUnitType,
22815
22827
  usd: number4().nullish(),
22816
22828
  vendor: CostVendor
@@ -24286,7 +24298,7 @@ var init_admin_indexnow = __esm(() => {
24286
24298
  });
24287
24299
 
24288
24300
  // ../../packages/contracts/src/orpc/admin-label-outliers.ts
24289
- var MAX_RECORDED_LABEL_OUTLIERS = 2000, MAX_LABEL_OUTLIER_DISMISSALS = 500, LabelOutlierReferenceSchema, RecordedLabelOutlierSchema, LabelOutlierRunSchema, AlertedLabelOutlierSchema, PendingLabelOutlierAlertSchema, recordLabelOutliers, acknowledgeLabelOutlierAlerts, LabelOutlierTrackSchema, LabelOutlierItemSchema, listLabelOutliers, setLabelOutliersDismissed, LabelOutlierInputTrackSchema, LabelOutlierInputAlbumSchema, listLabelOutlierInputs, adminLabelOutliersContract;
24301
+ var MAX_RECORDED_LABEL_OUTLIERS = 2000, MAX_LABEL_OUTLIER_DISMISSALS = 500, LABEL_OUTLIER_TIMESTAMP_MAX = 64, LabelOutlierReferenceSchema, RecordedLabelOutlierSchema, LabelOutlierRunSchema, AlertedLabelOutlierSchema, PendingLabelOutlierAlertSchema, recordLabelOutliers, acknowledgeLabelOutlierAlerts, LabelOutlierTrackSchema, LabelOutlierItemSchema, listLabelOutliers, setLabelOutliersDismissed, LabelOutlierInputTrackSchema, LabelOutlierInputAlbumSchema, listLabelOutlierInputs, adminLabelOutliersContract;
24290
24302
  var init_admin_label_outliers = __esm(() => {
24291
24303
  init_dist4();
24292
24304
  init_zod();
@@ -24331,7 +24343,7 @@ var init_admin_label_outliers = __esm(() => {
24331
24343
  }).input(object({
24332
24344
  labelsScored: number4().int().min(0),
24333
24345
  outliers: array2(RecordedLabelOutlierSchema).max(MAX_RECORDED_LABEL_OUTLIERS),
24334
- replicaSyncedAt: string4().nullable(),
24346
+ replicaSyncedAt: string4().max(LABEL_OUTLIER_TIMESTAMP_MAX).nullable(),
24335
24347
  totalFlagged: number4().int().min(0),
24336
24348
  tracksScored: number4().int().min(0),
24337
24349
  unitsScored: number4().int().min(0)
@@ -26629,7 +26641,7 @@ var init_admin_turso_usage = __esm(() => {
26629
26641
  });
26630
26642
 
26631
26643
  // ../../packages/contracts/src/orpc/admin-twitch.ts
26632
- var LIVE_STATE_TIMESTAMP_MAX = 64, recordLiveState, adminTwitchContract;
26644
+ var LIVE_STATE_TIMESTAMP_MAX = 64, LIVE_STATE_TITLE_MAX = 140, recordLiveState, adminTwitchContract;
26633
26645
  var init_admin_twitch = __esm(() => {
26634
26646
  init_dist4();
26635
26647
  init_zod();
@@ -26643,7 +26655,7 @@ var init_admin_twitch = __esm(() => {
26643
26655
  at: string4().max(LIVE_STATE_TIMESTAMP_MAX).datetime({ offset: true }),
26644
26656
  live: boolean3(),
26645
26657
  startedAt: string4().max(LIVE_STATE_TIMESTAMP_MAX).nullable(),
26646
- title: string4().nullable()
26658
+ title: string4().max(LIVE_STATE_TITLE_MAX).nullable()
26647
26659
  })).output(object({ ok: literal(true) }));
26648
26660
  adminTwitchContract = {
26649
26661
  record_live_state: recordLiveState
@@ -30056,7 +30068,7 @@ async function triageSubmissionCommand(submissionId, verdict, options = {}) {
30056
30068
  printJson({ ok: true, submission: response.submission });
30057
30069
  return;
30058
30070
  }
30059
- console.log(`Triaged ${formatTrackLine(response.submission)}: ${response.submission.triageVerdict ?? ""}`);
30071
+ console.log(`Triaged ${formatTrackLine(response.submission)}: ${terminalSafe(response.submission.triageVerdict ?? "")}`);
30060
30072
  }
30061
30073
  async function fetchSubmission(submissionId) {
30062
30074
  const response = await adminApiGet(`/api/v1/admin/submissions/${encodeURIComponent(submissionId)}`);
@@ -30078,16 +30090,16 @@ async function confirm(label) {
30078
30090
  }
30079
30091
  }
30080
30092
  function formatSubmissionSummary(submission) {
30081
- return [
30093
+ return terminalSafe([
30082
30094
  `${submission.id}`,
30083
30095
  `${formatTrackLine(submission)} (${submission.source})`,
30084
30096
  submission.contact ? `Contact: ${submission.contact}` : undefined,
30085
30097
  submission.note ? `Note: ${submission.note}` : undefined
30086
30098
  ].filter(Boolean).join(`
30087
- `);
30099
+ `));
30088
30100
  }
30089
30101
  function formatSubmissionDetail(submission) {
30090
- return [
30102
+ return terminalSafe([
30091
30103
  `${submission.id}`,
30092
30104
  formatTrackLine(submission),
30093
30105
  `Status: ${submission.status}`,
@@ -30097,13 +30109,14 @@ function formatSubmissionDetail(submission) {
30097
30109
  submission.note ? `Note: ${submission.note}` : undefined,
30098
30110
  `Spotify: ${submission.spotifyUrl}`
30099
30111
  ].filter(Boolean).join(`
30100
- `);
30112
+ `));
30101
30113
  }
30102
30114
  function formatTrackLine(submission) {
30103
- return `${submission.artists.join(", ")} — ${submission.title}`;
30115
+ return terminalSafe(`${submission.artists.join(", ")} — ${submission.title}`);
30104
30116
  }
30105
30117
  var init_submissions2 = __esm(() => {
30106
30118
  init_api();
30119
+ init_format();
30107
30120
  init_output();
30108
30121
  init_add2();
30109
30122
  });
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.288.0"
34
+ "version": "0.289.0"
35
35
  }