@claudinho/cli 0.8.3 → 0.8.4
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 +2 -2
package/dist/index.js
CHANGED
|
@@ -450,6 +450,7 @@ function formatKickoff(iso, opts = {}) {
|
|
|
450
450
|
const locale = safeLocale(opts.locale);
|
|
451
451
|
return new Intl.DateTimeFormat(locale, {
|
|
452
452
|
weekday: "short",
|
|
453
|
+
...opts.date ? { month: "short", day: "numeric" } : {},
|
|
453
454
|
hour: "2-digit",
|
|
454
455
|
minute: "2-digit",
|
|
455
456
|
hour12: false,
|
|
@@ -4399,6 +4400,9 @@ function statusTail2(m) {
|
|
|
4399
4400
|
if (isLive(m.status)) return " LIVE";
|
|
4400
4401
|
return "";
|
|
4401
4402
|
}
|
|
4403
|
+
function formatBracketKickoff(iso, opts) {
|
|
4404
|
+
return formatKickoff(iso, { tz: opts.tz, locale: opts.locale, date: true });
|
|
4405
|
+
}
|
|
4402
4406
|
function formatBracketMatchLine(mv, opts = {}) {
|
|
4403
4407
|
const flags = opts.flags !== false;
|
|
4404
4408
|
const home = formatParticipant(mv.home, "home", flags, opts.locale);
|
|
@@ -4407,7 +4411,7 @@ function formatBracketMatchLine(mv, opts = {}) {
|
|
|
4407
4411
|
if (isFinished(m.status) || isLive(m.status)) {
|
|
4408
4412
|
return ` ${home} ${scoreline(m)} ${away}${statusTail2(m)}`;
|
|
4409
4413
|
}
|
|
4410
|
-
const kickoff = mv.kickoff ?
|
|
4414
|
+
const kickoff = mv.kickoff ? formatBracketKickoff(mv.kickoff, opts) : "";
|
|
4411
4415
|
return ` ${home} vs ${away}${kickoff ? ` \xB7 ${kickoff}` : ""}`;
|
|
4412
4416
|
}
|
|
4413
4417
|
function formatBracketList(view, opts = {}) {
|
|
@@ -4504,7 +4508,7 @@ function formatBracketCompactLine(mv, opts = {}) {
|
|
|
4504
4508
|
const away = formatParticipant(mv.away, "away", flags, opts.locale);
|
|
4505
4509
|
const m = mv.match;
|
|
4506
4510
|
const mid2 = isFinished(m.status) || isLive(m.status) ? scoreline(m) : "vs";
|
|
4507
|
-
const tail = m.status === "SCHEDULED" && mv.kickoff ? ` \xB7 ${
|
|
4511
|
+
const tail = m.status === "SCHEDULED" && mv.kickoff ? ` \xB7 ${formatBracketKickoff(mv.kickoff, opts)}` : statusTail2(m);
|
|
4508
4512
|
return `${stageLabelI18n(opts.locale, mv.stage)} \xB7 ${home} ${mid2} ${away}${tail}`;
|
|
4509
4513
|
}
|
|
4510
4514
|
|
|
@@ -6173,7 +6177,7 @@ function handlePipeError(stream) {
|
|
|
6173
6177
|
}
|
|
6174
6178
|
handlePipeError(process.stdout);
|
|
6175
6179
|
handlePipeError(process.stderr);
|
|
6176
|
-
var VERSION = "0.8.
|
|
6180
|
+
var VERSION = "0.8.4";
|
|
6177
6181
|
var DISCLAIMER = "Claudinho is an independent fan project. Not affiliated with or endorsed by FIFA or Anthropic.";
|
|
6178
6182
|
function ctxFrom(cmd) {
|
|
6179
6183
|
let root = cmd;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudinho/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Live scores, fixtures, group tables, and read-only prediction-market signals for the 2026 men's football tournament — 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",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"tsup": "^8.0.0",
|
|
62
62
|
"typescript": "^5.7.0",
|
|
63
63
|
"vitest": "^4.1.9",
|
|
64
|
-
"@claudinho/core": "0.8.
|
|
64
|
+
"@claudinho/core": "0.8.4"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "tsup",
|