@claudinho/cli 0.8.2 → 0.8.3
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 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3037,18 +3037,17 @@ function teamFromMatch(match, code) {
|
|
|
3037
3037
|
function matchKey(stage, index) {
|
|
3038
3038
|
return `${stage}:${index}`;
|
|
3039
3039
|
}
|
|
3040
|
-
function isGroupComplete(group, tables, standingsDegraded) {
|
|
3041
|
-
if (standingsDegraded) return false;
|
|
3042
|
-
const table = tables.find((t2) => t2.group === group);
|
|
3043
|
-
if (!table?.rows.length || table.rows.length !== 4) return false;
|
|
3044
|
-
return table.rows.every((r) => r.played >= 3);
|
|
3045
|
-
}
|
|
3046
3040
|
function teamFromStandings(group, position, tables) {
|
|
3047
3041
|
const table = tables.find((t2) => t2.group === group);
|
|
3048
3042
|
if (!table) return void 0;
|
|
3049
3043
|
const row = table.rows[position - 1];
|
|
3050
3044
|
return row?.team;
|
|
3051
3045
|
}
|
|
3046
|
+
function hasGroupStarted(group, tables) {
|
|
3047
|
+
const table = tables.find((t2) => t2.group === group);
|
|
3048
|
+
if (!table?.rows.length) return false;
|
|
3049
|
+
return table.rows.some((r) => r.played > 0);
|
|
3050
|
+
}
|
|
3052
3051
|
function resolveWinner(match) {
|
|
3053
3052
|
if (!isFinished(match.status)) return void 0;
|
|
3054
3053
|
if (match.winnerCode) {
|
|
@@ -3095,7 +3094,7 @@ function resolveSlot(ref, ctx) {
|
|
|
3095
3094
|
case "seed":
|
|
3096
3095
|
return tbd(ref.label);
|
|
3097
3096
|
case "group": {
|
|
3098
|
-
if (
|
|
3097
|
+
if (!ctx.standingsDegraded && hasGroupStarted(ref.group, ctx.tables)) {
|
|
3099
3098
|
const team = teamFromStandings(ref.group, ref.position, ctx.tables);
|
|
3100
3099
|
if (team) return participant(team, "projected");
|
|
3101
3100
|
}
|
|
@@ -6174,7 +6173,7 @@ function handlePipeError(stream) {
|
|
|
6174
6173
|
}
|
|
6175
6174
|
handlePipeError(process.stdout);
|
|
6176
6175
|
handlePipeError(process.stderr);
|
|
6177
|
-
var VERSION = "0.8.
|
|
6176
|
+
var VERSION = "0.8.3";
|
|
6178
6177
|
var DISCLAIMER = "Claudinho is an independent fan project. Not affiliated with or endorsed by FIFA or Anthropic.";
|
|
6179
6178
|
function ctxFrom(cmd) {
|
|
6180
6179
|
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.3",
|
|
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.3"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "tsup",
|