@claudinho/cli 0.9.0 → 0.9.2
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.js +7 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2855,10 +2855,14 @@ function nextFixtureForTeam(code, opts = {}) {
|
|
|
2855
2855
|
);
|
|
2856
2856
|
}
|
|
2857
2857
|
var LIVE_WINDOW_MS = 140 * 6e4;
|
|
2858
|
+
var KNOCKOUT_EXTRA_TIME_MS = 60 * 6e4;
|
|
2859
|
+
function liveWindowMsFor(m) {
|
|
2860
|
+
return m.stage === "GROUP" || m.stage === "FRIENDLY" ? LIVE_WINDOW_MS : LIVE_WINDOW_MS + KNOCKOUT_EXTRA_TIME_MS;
|
|
2861
|
+
}
|
|
2858
2862
|
function fixturesInLiveWindow(now = Date.now(), fixtures = SCHEDULE) {
|
|
2859
2863
|
return fixtures.filter((m) => {
|
|
2860
2864
|
const k = Date.parse(m.kickoff);
|
|
2861
|
-
return now >= k && now <= k +
|
|
2865
|
+
return now >= k && now <= k + liveWindowMsFor(m);
|
|
2862
2866
|
}).sort(byKickoff);
|
|
2863
2867
|
}
|
|
2864
2868
|
function groups(fixtures = SCHEDULE) {
|
|
@@ -2944,7 +2948,7 @@ function rosterAtZero(matches) {
|
|
|
2944
2948
|
var ESPN_SOCCER = "https://site.api.espn.com/apis/site/v2/sports/soccer";
|
|
2945
2949
|
var DEFAULT_COMPETITION = "fifa.world";
|
|
2946
2950
|
var DEFAULT_BASE = `${ESPN_SOCCER}/${DEFAULT_COMPETITION}`;
|
|
2947
|
-
var USER_AGENT = `claudinho/${"0.9.
|
|
2951
|
+
var USER_AGENT = `claudinho/${"0.9.2"} (+https://github.com/arturogarrido/claudinho)`;
|
|
2948
2952
|
var MAX_RESPONSE_BYTES = 5 * 1024 * 1024;
|
|
2949
2953
|
function competitionBase(slug) {
|
|
2950
2954
|
return `${ESPN_SOCCER}/${slug}`;
|
|
@@ -6849,7 +6853,7 @@ function handlePipeError(stream) {
|
|
|
6849
6853
|
}
|
|
6850
6854
|
handlePipeError(process.stdout);
|
|
6851
6855
|
handlePipeError(process.stderr);
|
|
6852
|
-
var VERSION = "0.9.
|
|
6856
|
+
var VERSION = "0.9.2";
|
|
6853
6857
|
var DISCLAIMER = "Claudinho is an independent fan project. Not affiliated with or endorsed by FIFA or Anthropic.";
|
|
6854
6858
|
function ctxFrom(cmd) {
|
|
6855
6859
|
let root = cmd;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudinho/cli",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Live scores, fixtures, group tables, and read-only prediction-market signals
|
|
3
|
+
"version": "0.9.2",
|
|
4
|
+
"description": "Live 2026 World Cup scores, fixtures, group tables, and read-only prediction-market signals in your terminal, Claude Code, and Cursor CLI statusline. No API keys. Not affiliated with FIFA or Anthropic.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Arturo Garrido",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"picocolors": "^1.1.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/node": "^22.20.
|
|
61
|
-
"@vitest/coverage-v8": "^4.1.
|
|
60
|
+
"@types/node": "^22.20.1",
|
|
61
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
62
62
|
"tsup": "^8.0.0",
|
|
63
63
|
"typescript": "^5.7.0",
|
|
64
|
-
"vitest": "^4.1.
|
|
65
|
-
"@claudinho/core": "0.9.
|
|
64
|
+
"vitest": "^4.1.10",
|
|
65
|
+
"@claudinho/core": "0.9.2"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsup",
|