@claudinho/core 0.5.0 → 0.5.1

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/dist/index.d.ts CHANGED
@@ -866,6 +866,14 @@ interface ShareSnippetInput {
866
866
  emptyNote?: string;
867
867
  /** Exact run cue to advertise, e.g. "npx @claudinho/cli next MEX". */
868
868
  installLine?: string;
869
+ /**
870
+ * True when the live fetch failed and these are static fixtures (no live
871
+ * scores). A pasted card must say so — otherwise a "no matches" / scheduled
872
+ * card reads as authoritative when the feed is actually down. When set with
873
+ * matches present, a not-live notice is appended; for the empty case the
874
+ * caller picks a feed-down `emptyNote`.
875
+ */
876
+ degraded?: boolean;
869
877
  /** Timezone for kickoff date/time (date/time only — copy stays English). */
870
878
  tz?: string;
871
879
  /** Locale for kickoff date/time. */
package/dist/index.js CHANGED
@@ -3508,6 +3508,9 @@ function formatShareSnippet(input, options = {}) {
3508
3508
  blocks.push(card.join("\n"));
3509
3509
  }
3510
3510
  }
3511
+ if (input.degraded && input.matches.length > 0) {
3512
+ blocks.push("(Live data unavailable \u2014 showing the bundled schedule, not live scores.)");
3513
+ }
3511
3514
  blocks.push(
3512
3515
  shareFooter({
3513
3516
  source: input.source,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudinho/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Domain model, provider adapters (ESPN), standings, bundled schedule, and the read-only Polymarket market-signal sidecar powering Claudinho. Not affiliated with FIFA or Anthropic.",
5
5
  "type": "module",
6
6
  "license": "MIT",