@trazum/cli 1.53.4 → 1.56.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.
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +121 -2
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +122 -2
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/types.d.ts +51 -0
- package/dist/i18n/types.d.ts.map +1 -1
- package/dist/index.js +321 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/i18n/en.ts +137 -2
- package/src/i18n/es.ts +140 -2
- package/src/i18n/types.ts +53 -0
- package/src/index.ts +371 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trazum/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.56.0",
|
|
4
4
|
"description": "Trazum CLI: find where your LLM bill goes, price every finding per month, and enforce token budgets in CI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "David Mu\u00f1oz Rey",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prepublishOnly": "npm run build && npm test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@trazum/core": "1.
|
|
40
|
+
"@trazum/core": "1.56.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^26.2.0",
|
package/src/i18n/en.ts
CHANGED
|
@@ -56,6 +56,8 @@ ${bold('USAGE')}
|
|
|
56
56
|
trazum prune <file> --cases <file> --yes
|
|
57
57
|
trazum where [file]
|
|
58
58
|
trazum conform <file|-> [--contract <name>]
|
|
59
|
+
trazum rollup <document...|dir> [--json]
|
|
60
|
+
trazum pulse [--max-stale-hours <n>]
|
|
59
61
|
trazum models
|
|
60
62
|
trazum rules
|
|
61
63
|
trazum gateway <provider> --on-cannot-tell <fail-open|fail-closed>
|
|
@@ -87,8 +89,7 @@ ${bold('OPTIONS FOR init')}
|
|
|
87
89
|
|
|
88
90
|
${bold('OPTIONS FOR conform')}
|
|
89
91
|
--contract <name> Check against a named contract instead of
|
|
90
|
-
detecting one:
|
|
91
|
-
verification, history, connected, cost-answer.
|
|
92
|
+
detecting one: ${d.contracts.join(', ')}.
|
|
92
93
|
--json The report as data.
|
|
93
94
|
|
|
94
95
|
Answers two questions and keeps them apart. Does this document conform —
|
|
@@ -99,6 +100,42 @@ ${bold('OPTIONS FOR conform')}
|
|
|
99
100
|
The second never gates. Choosing not to log sessions is a decision, not a
|
|
100
101
|
defect. See docs/format.md.
|
|
101
102
|
|
|
103
|
+
${bold('OPTIONS FOR rollup')}
|
|
104
|
+
--json The roll-up document as data. See docs/format.md.
|
|
105
|
+
|
|
106
|
+
Several people's bills, one roll-up. Each contributor runs
|
|
107
|
+
\`trazum profile --json\` where their traffic already is; this merges the
|
|
108
|
+
documents. A format and a merge, not a service: nothing is uploaded and there
|
|
109
|
+
is no account — the documents arrive however your team already moves files.
|
|
110
|
+
|
|
111
|
+
Most of the output is what the merge could not do. Each contributor's own
|
|
112
|
+
gaps stay with that contributor rather than being averaged into one figure,
|
|
113
|
+
the findings that need individual calls are named instead of dropped, and
|
|
114
|
+
every roll-up of more than one document says that overlap between
|
|
115
|
+
contributors is unmeasurable — two people exporting the same traffic double
|
|
116
|
+
the bill and no merge of summaries can see it.
|
|
117
|
+
|
|
118
|
+
Exits 1 when a contribution was handed over and could not be merged.
|
|
119
|
+
|
|
120
|
+
${bold('OPTIONS FOR pulse')}
|
|
121
|
+
--max-stale-hours <n> Exit 1 when something that runs here has not run
|
|
122
|
+
in over n hours. Without it, the ages are
|
|
123
|
+
reported and nothing is judged.
|
|
124
|
+
--json The report as data.
|
|
125
|
+
|
|
126
|
+
Did the things that are supposed to run, run? \`watch --once\` is built for a
|
|
127
|
+
scheduler, and its state file is read by exactly one thing — the next cycle.
|
|
128
|
+
So nothing could tell you the watcher had stopped, because the thing that
|
|
129
|
+
would tell you was the thing that stopped.
|
|
130
|
+
|
|
131
|
+
It runs nothing and hosts nothing. Something has to notice, and the something
|
|
132
|
+
is your CI: a step running this on the schedule you already have turns a dead
|
|
133
|
+
cron into a red build, without Trazum holding anybody's metrics.
|
|
134
|
+
|
|
135
|
+
Never gates on a first run that never happened — that has no cadence to be
|
|
136
|
+
late against — and never on how far the measurements reach, which is a
|
|
137
|
+
provider reporting on its own schedule rather than a job that failed.
|
|
138
|
+
|
|
102
139
|
${bold('OPTIONS FOR feedback')}
|
|
103
140
|
(none)
|
|
104
141
|
|
|
@@ -1378,6 +1415,97 @@ ${bold('EXAMPLES')}
|
|
|
1378
1415
|
'None of those failed anything. Choosing not to record a field is a decision, not a defect, and a gate that failed on it would be this tool telling you what to log.',
|
|
1379
1416
|
},
|
|
1380
1417
|
|
|
1418
|
+
rollup: {
|
|
1419
|
+
noTargets: () =>
|
|
1420
|
+
'Pass the profile documents to roll up — each one written by `trazum profile --json` — or a directory of them.',
|
|
1421
|
+
noSuchTarget: (path) => `${path} is not there. A roll-up never guesses at a contribution it could not read.`,
|
|
1422
|
+
emptyDirectory: (path) =>
|
|
1423
|
+
`${path} holds no .json documents. An empty folder rolled up silently would report a team that spent nothing.`,
|
|
1424
|
+
heading: (contributors, usd, calls) =>
|
|
1425
|
+
`Roll-up of ${plural(contributors, 'contributor')} — ${usd} over ${plural(calls, 'call')}`,
|
|
1426
|
+
span: (from, to) => `Covering ${from} to ${to}, stated and never extrapolated from.`,
|
|
1427
|
+
noSpan: () => 'No contributor carried a clock, so this roll-up covers no stated period.',
|
|
1428
|
+
contributorsHeading: () => 'Contributors, and what each one could not see',
|
|
1429
|
+
contributor: (name, usd, calls, spanDays) =>
|
|
1430
|
+
`${name} — ${usd}, ${plural(calls, 'call')}${spanDays === null ? ', no clock' : `, ${plural(spanDays, 'day')}`}`,
|
|
1431
|
+
claimedSpan: (from, to, contributors) =>
|
|
1432
|
+
`Asked for ${from} to ${to} by ${plural(contributors, 'contributor')} — a claim about what was gone looking for, kept apart from what the records showed.`,
|
|
1433
|
+
claimedRow: (from, to) => `asked for ${from} to ${to}`,
|
|
1434
|
+
silentRuns: (runs) => runs,
|
|
1435
|
+
undated: (count) =>
|
|
1436
|
+
`${plural(count, 'record')} this contributor's own window could not place, because they carried no clock`,
|
|
1437
|
+
rejectedHeading: () => 'Handed over and not merged',
|
|
1438
|
+
rejected: (name, because) => `${name} — ${because}`,
|
|
1439
|
+
via: (rollup) => `via ${rollup}`,
|
|
1440
|
+
rejectedVia: (name, via, because) => `${name}, via ${via} — ${because}`,
|
|
1441
|
+
repeated: (names) =>
|
|
1442
|
+
`Handed over more than once, by name: ${names}. Its money is counted every time. Two machines genuinely sharing a name is possible, so nothing was subtracted — check whether a roll-up and one of the machines inside it were both handed over.`,
|
|
1443
|
+
identical: (names) => `The same document arrived more than once: ${names}.`,
|
|
1444
|
+
identicalUsd: (usd) =>
|
|
1445
|
+
`${usd} of the total above is the repeat. It is counted, not discarded — whether it is one export handed over twice or two machines that agreed exactly is yours to know.`,
|
|
1446
|
+
byLabelHeading: () => 'The merged bill, per workload',
|
|
1447
|
+
labelRow: (label, usd, calls) => `${label} — ${usd}, ${plural(calls, 'call')}`,
|
|
1448
|
+
notMergedHeading: () => 'Findings that do not roll up',
|
|
1449
|
+
notMerged: (finding, because) => `${finding} — ${because}.`,
|
|
1450
|
+
presentIn: (names) => `Present in: ${names}. Read it there.`,
|
|
1451
|
+
cannotSayHeading: () => 'What this roll-up cannot say about itself',
|
|
1452
|
+
caveat: (code) => {
|
|
1453
|
+
switch (code) {
|
|
1454
|
+
case 'overlap-invisible':
|
|
1455
|
+
return 'Overlap between contributors is unmeasurable here. Two people exporting the same traffic double the bill, and a merge of summaries cannot see it — the raw lines a duplicate check needs are in no document.';
|
|
1456
|
+
case 'mismatched-spans':
|
|
1457
|
+
return 'The contributors cover meaningfully different periods. The sum is a sum; reading a share of it as a comparison of rates is the mistake this names.';
|
|
1458
|
+
case 'contributor-without-clock':
|
|
1459
|
+
return 'A contributor carried no timestamp at all, so none of its spend is in any day above.';
|
|
1460
|
+
case 'day-top-label-unknown':
|
|
1461
|
+
return "A day drew from more than one contributor, so its dearest label is unknown: each contributor knows its own, and the merged answer needs per-label-per-day spend no document carries.";
|
|
1462
|
+
case 'no-claimed-period':
|
|
1463
|
+
return 'A contributor stated no window, so its span is all that is known of it — and a log whose latest record is the 5th may be a log of a quiet week or a log that stopped being written on the 5th.';
|
|
1464
|
+
case 'silence-inside-a-claim':
|
|
1465
|
+
return 'A contributor recorded nothing on days it asked for. Whether that is a quiet stretch or an export that stopped is yours to know; the days are named above.';
|
|
1466
|
+
case 'claim-not-bounded':
|
|
1467
|
+
return 'A contributor claimed one end of a window and not the other, so its silence cannot be measured against it.';
|
|
1468
|
+
case 'claim-too-long-to-enumerate':
|
|
1469
|
+
return 'A claimed window was too long to walk day by day and was not walked. The claim is kept; only its silence is unmeasured.';
|
|
1470
|
+
case 'contributor-named-twice':
|
|
1471
|
+
return 'A contributor name appears more than once, so its money may be counted twice. Handing over a roll-up and one of the machines inside it does exactly that, and the documents differ so the identical-document check cannot see it.';
|
|
1472
|
+
case 'identical-contributions':
|
|
1473
|
+
return 'Two contributions were the same document.';
|
|
1474
|
+
case 'contribution-rejected':
|
|
1475
|
+
return 'A contribution was not merged. That machine contributed nothing, which is a different statement from having spent nothing.';
|
|
1476
|
+
case 'unknown-fields-dropped':
|
|
1477
|
+
return 'A contribution carried a numeric field this version cannot classify, so it was left out rather than combined the wrong way.';
|
|
1478
|
+
default:
|
|
1479
|
+
return code;
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
},
|
|
1483
|
+
|
|
1484
|
+
pulse: {
|
|
1485
|
+
heading: () => 'Did the things that are supposed to run, run?',
|
|
1486
|
+
kind: (kind) => {
|
|
1487
|
+
switch (kind) {
|
|
1488
|
+
case 'watch-cycle':
|
|
1489
|
+
return 'last watch cycle';
|
|
1490
|
+
case 'store-pull':
|
|
1491
|
+
return 'last pull into the store';
|
|
1492
|
+
case 'store-coverage':
|
|
1493
|
+
return 'measurements reach up to';
|
|
1494
|
+
default:
|
|
1495
|
+
return kind;
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
neverRun: (name) => `${name}: never here. Not late — there is no cadence to be late against.`,
|
|
1499
|
+
age: (name, when, hours) => `${name}: ${when}Z, ${plural(hours, 'hour')} ago`,
|
|
1500
|
+
noThreshold: () =>
|
|
1501
|
+
'Nothing was judged. Pass --max-stale-hours <n> to make a run that stopped a failing exit code; how stale is too stale is a policy, and this tool does not write yours.',
|
|
1502
|
+
within: (hours) => `Everything that has run here ran within ${plural(hours, 'hour')}.`,
|
|
1503
|
+
stale: (hours) =>
|
|
1504
|
+
`Something that runs here has not run in over ${plural(hours, 'hour')}. Silence from a scheduled job and silence from a job with nothing to report look identical; this is which.`,
|
|
1505
|
+
notAService: () =>
|
|
1506
|
+
'This command runs nothing and hosts nothing. Something has to notice, and the something is your CI: a step that runs this on the schedule you already have turns a dead cron into a red build, without Trazum holding anybody\'s metrics. How far the measurements reach is reported and never judged — that is a provider reporting on its own schedule, not a job that failed.',
|
|
1507
|
+
},
|
|
1508
|
+
|
|
1381
1509
|
where: {
|
|
1382
1510
|
hostHeading: () => 'Running inside',
|
|
1383
1511
|
subscription: (host) =>
|
|
@@ -2347,6 +2475,13 @@ ${bold('EXAMPLES')}
|
|
|
2347
2475
|
},
|
|
2348
2476
|
storeNoLabels: () =>
|
|
2349
2477
|
'This series comes from the store, and a usage API groups by model and workspace rather than by workload — so there is no label series here at all. Absent, not empty: nothing above says a workload did or did not move.',
|
|
2478
|
+
unmeasured: (days, from, to, after, before) =>
|
|
2479
|
+
`Nothing covers ${from} to ${to} — ${plural(days, 'day')} between ${after} and ${before}.`,
|
|
2480
|
+
unmeasuredTotal: (days) =>
|
|
2481
|
+
`${plural(days, 'day')} of this stretch are covered by no report. A series with a hole in it and a shorter series read identically; this is which.`,
|
|
2482
|
+
overlap: (a, b, days) =>
|
|
2483
|
+
`${a} and ${b} both cover ${plural(days, 'day')}. Named, never merged — which is the better measurement is not knowable from here, and adding both totals counts those days twice.`,
|
|
2484
|
+
runHole: (days) => ` — ${plural(days, 'day')} of this run are covered by no report`,
|
|
2350
2485
|
undated: (name) => `${name} carries no span, so it is on no timeline above — named, never silently absorbed.`,
|
|
2351
2486
|
unrecognized: (name) => `${name} is neither a stored report nor a saved plan, so it is in no series above.`,
|
|
2352
2487
|
footer: () =>
|
package/src/i18n/es.ts
CHANGED
|
@@ -43,6 +43,8 @@ ${bold('USO')}
|
|
|
43
43
|
trazum prune <fichero> --cases <fichero> --yes
|
|
44
44
|
trazum where [fichero]
|
|
45
45
|
trazum conform <fichero|-> [--contract <nombre>]
|
|
46
|
+
trazum rollup <documento...|dir> [--json]
|
|
47
|
+
trazum pulse [--max-stale-hours <n>]
|
|
46
48
|
trazum models
|
|
47
49
|
trazum rules
|
|
48
50
|
trazum gateway <provider> --on-cannot-tell <fail-open|fail-closed>
|
|
@@ -74,8 +76,7 @@ ${bold('OPCIONES DE init')}
|
|
|
74
76
|
|
|
75
77
|
${bold('OPCIONES DE conform')}
|
|
76
78
|
--contract <nombre> Comprueba contra un contrato concreto en vez de
|
|
77
|
-
detectarlo:
|
|
78
|
-
verification, history, connected, cost-answer.
|
|
79
|
+
detectarlo: ${d.contracts.join(', ')}.
|
|
79
80
|
--json El informe como datos.
|
|
80
81
|
|
|
81
82
|
Responde dos preguntas y las mantiene separadas. ¿Cumple este documento —
|
|
@@ -86,6 +87,43 @@ ${bold('OPCIONES DE conform')}
|
|
|
86
87
|
La segunda nunca hace fallar nada. Decidir no registrar sesiones es una
|
|
87
88
|
decisión, no un defecto. Ver docs/format.md.
|
|
88
89
|
|
|
90
|
+
${bold('OPCIONES DE rollup')}
|
|
91
|
+
--json El documento de agregación como datos. Ver
|
|
92
|
+
docs/format.md.
|
|
93
|
+
|
|
94
|
+
Las facturas de varias personas, una sola agregación. Cada contribuyente
|
|
95
|
+
ejecuta \`trazum profile --json\` donde ya está su tráfico; esto fusiona los
|
|
96
|
+
documentos. Un formato y una fusión, no un servicio: no se sube nada y no hay
|
|
97
|
+
cuenta — los documentos llegan como tu equipo ya mueve ficheros.
|
|
98
|
+
|
|
99
|
+
Casi toda la salida es lo que la fusión no pudo hacer. Los huecos de cada
|
|
100
|
+
contribuyente se quedan con ese contribuyente en vez de promediarse en una
|
|
101
|
+
sola cifra, los hallazgos que necesitan llamadas individuales se nombran en
|
|
102
|
+
vez de desaparecer, y toda agregación de más de un documento dice que el
|
|
103
|
+
solapamiento entre contribuyentes no se puede medir: dos personas exportando
|
|
104
|
+
el mismo tráfico duplican la factura y ninguna fusión de resúmenes lo ve.
|
|
105
|
+
|
|
106
|
+
Sale con 1 cuando una contribución se entregó y no se pudo agregar.
|
|
107
|
+
|
|
108
|
+
${bold('OPCIONES DE pulse')}
|
|
109
|
+
--max-stale-hours <n> Sale con 1 cuando algo que corre aquí lleva más
|
|
110
|
+
de n horas sin correr. Sin esto, se informan las
|
|
111
|
+
edades y no se juzga nada.
|
|
112
|
+
--json El informe como datos.
|
|
113
|
+
|
|
114
|
+
¿Corrieron las cosas que tienen que correr? \`watch --once\` está hecho para un
|
|
115
|
+
planificador, y su fichero de estado lo lee exactamente una cosa: el siguiente
|
|
116
|
+
ciclo. Así que nada podía decirte que el vigilante se había parado, porque lo
|
|
117
|
+
que te lo diría era lo que se había parado.
|
|
118
|
+
|
|
119
|
+
No ejecuta nada y no aloja nada. Algo tiene que darse cuenta, y ese algo es tu
|
|
120
|
+
CI: un paso que ejecute esto con el horario que ya tienes convierte un cron
|
|
121
|
+
muerto en una build roja, sin que Trazum guarde las métricas de nadie.
|
|
122
|
+
|
|
123
|
+
Nunca falla por una primera ejecución que nunca ocurrió — no hay cadencia
|
|
124
|
+
contra la que ir tarde — ni por hasta dónde llegan las mediciones, que es un
|
|
125
|
+
proveedor informando a su ritmo y no un trabajo que falló.
|
|
126
|
+
|
|
89
127
|
${bold('OPCIONES DE feedback')}
|
|
90
128
|
(ninguna)
|
|
91
129
|
|
|
@@ -1383,6 +1421,99 @@ ${bold('EJEMPLOS')}
|
|
|
1383
1421
|
'Nada de eso ha hecho fallar nada. Decidir no registrar un campo es una decisión, no un defecto, y una puerta que fallara por ello sería esta herramienta diciéndote qué registrar.',
|
|
1384
1422
|
},
|
|
1385
1423
|
|
|
1424
|
+
rollup: {
|
|
1425
|
+
noTargets: () =>
|
|
1426
|
+
'Pasa los documentos de perfil que quieres agregar — cada uno escrito por `trazum profile --json` — o un directorio con ellos.',
|
|
1427
|
+
noSuchTarget: (path) =>
|
|
1428
|
+
`${path} no está. Una agregación nunca adivina una contribución que no pudo leer.`,
|
|
1429
|
+
emptyDirectory: (path) =>
|
|
1430
|
+
`${path} no contiene documentos .json. Una carpeta vacía agregada en silencio diría que el equipo no gastó nada.`,
|
|
1431
|
+
heading: (contributors, usd, calls) =>
|
|
1432
|
+
`Agregación de ${plural(contributors, 'contribuyente')} — ${usd} en ${plural(calls, 'llamada')}`,
|
|
1433
|
+
span: (from, to) => `Cubre del ${from} al ${to}, declarado y nunca extrapolado.`,
|
|
1434
|
+
noSpan: () => 'Ningún contribuyente traía reloj, así que esta agregación no cubre ningún período declarado.',
|
|
1435
|
+
contributorsHeading: () => 'Contribuyentes, y lo que cada uno no pudo ver',
|
|
1436
|
+
contributor: (name, usd, calls, spanDays) =>
|
|
1437
|
+
`${name} — ${usd}, ${plural(calls, 'llamada')}${spanDays === null ? ', sin reloj' : `, ${plural(spanDays, 'día')}`}`,
|
|
1438
|
+
claimedSpan: (from, to, contributors) =>
|
|
1439
|
+
`Pidió del ${from} al ${to} ${plural(contributors, 'contribuyente')} — una afirmación sobre lo que se fue a buscar, separada de lo que mostraron los registros.`,
|
|
1440
|
+
claimedRow: (from, to) => `pidió del ${from} al ${to}`,
|
|
1441
|
+
silentRuns: (runs) => runs,
|
|
1442
|
+
undated: (count) =>
|
|
1443
|
+
`${plural(count, 'registro')} que la propia ventana de este contribuyente no pudo situar, porque no traían reloj`,
|
|
1444
|
+
rejectedHeading: () => 'Entregado y no agregado',
|
|
1445
|
+
rejected: (name, because) => `${name} — ${because}`,
|
|
1446
|
+
via: (rollup) => `vía ${rollup}`,
|
|
1447
|
+
rejectedVia: (name, via, because) => `${name}, vía ${via} — ${because}`,
|
|
1448
|
+
repeated: (names) =>
|
|
1449
|
+
`Entregado más de una vez, por nombre: ${names}. Su dinero se cuenta cada vez. Que dos máquinas compartan nombre es posible, así que no se ha restado nada — comprueba si se entregaron a la vez una agregación y una de las máquinas que contiene.`,
|
|
1450
|
+
identical: (names) => `El mismo documento llegó más de una vez: ${names}.`,
|
|
1451
|
+
identicalUsd: (usd) =>
|
|
1452
|
+
`${usd} del total de arriba es la repetición. Se cuenta, no se descarta: si es una exportación entregada dos veces o dos máquinas que coincidieron exactamente es cosa tuya saberlo.`,
|
|
1453
|
+
byLabelHeading: () => 'La factura agregada, por carga de trabajo',
|
|
1454
|
+
labelRow: (label, usd, calls) => `${label} — ${usd}, ${plural(calls, 'llamada')}`,
|
|
1455
|
+
notMergedHeading: () => 'Hallazgos que no se agregan',
|
|
1456
|
+
notMerged: (finding, because) => `${finding} — ${because}.`,
|
|
1457
|
+
presentIn: (names) => `Presente en: ${names}. Léelo ahí.`,
|
|
1458
|
+
cannotSayHeading: () => 'Lo que esta agregación no puede decir sobre sí misma',
|
|
1459
|
+
caveat: (code) => {
|
|
1460
|
+
switch (code) {
|
|
1461
|
+
case 'overlap-invisible':
|
|
1462
|
+
return 'El solapamiento entre contribuyentes aquí no se puede medir. Dos personas exportando el mismo tráfico duplican la factura, y una fusión de resúmenes no lo ve: las líneas en bruto que necesita una comprobación de duplicados no están en ningún documento.';
|
|
1463
|
+
case 'mismatched-spans':
|
|
1464
|
+
return 'Los contribuyentes cubren períodos claramente distintos. La suma es una suma; leer una parte de ella como comparación de ritmos es el error que esto señala.';
|
|
1465
|
+
case 'contributor-without-clock':
|
|
1466
|
+
return 'Un contribuyente no traía ninguna marca de tiempo, así que nada de su gasto está en los días de arriba.';
|
|
1467
|
+
case 'day-top-label-unknown':
|
|
1468
|
+
return 'Un día vino de más de un contribuyente, así que su etiqueta más cara se desconoce: cada contribuyente conoce la suya, y la respuesta agregada necesita el gasto por etiqueta y día que ningún documento lleva.';
|
|
1469
|
+
case 'no-claimed-period':
|
|
1470
|
+
return 'Un contribuyente no declaró ninguna ventana, así que su tramo es todo lo que se sabe de él — y un registro cuya última línea es del día 5 puede ser una semana tranquila o un registro que dejó de escribirse el día 5.';
|
|
1471
|
+
case 'silence-inside-a-claim':
|
|
1472
|
+
return 'Un contribuyente no registró nada en días que pidió. Si es un tramo tranquilo o una exportación que se paró es cosa tuya saberlo; los días están nombrados arriba.';
|
|
1473
|
+
case 'claim-not-bounded':
|
|
1474
|
+
return 'Un contribuyente declaró un extremo de la ventana y no el otro, así que su silencio no se puede medir contra ella.';
|
|
1475
|
+
case 'claim-too-long-to-enumerate':
|
|
1476
|
+
return 'Una ventana declarada era demasiado larga para recorrerla día a día y no se recorrió. La afirmación se conserva; solo su silencio queda sin medir.';
|
|
1477
|
+
case 'contributor-named-twice':
|
|
1478
|
+
return 'Un nombre de contribuyente aparece más de una vez, así que su dinero puede estar contado dos veces. Entregar una agregación y una de las máquinas que contiene hace justo eso, y los documentos difieren, así que la comprobación de documento idéntico no lo ve.';
|
|
1479
|
+
case 'identical-contributions':
|
|
1480
|
+
return 'Dos contribuciones eran el mismo documento.';
|
|
1481
|
+
case 'contribution-rejected':
|
|
1482
|
+
return 'Una contribución no se agregó. Esa máquina no aportó nada, que no es lo mismo que no haber gastado nada.';
|
|
1483
|
+
case 'unknown-fields-dropped':
|
|
1484
|
+
return 'Una contribución traía un campo numérico que esta versión no sabe clasificar, así que se dejó fuera en vez de combinarlo mal.';
|
|
1485
|
+
default:
|
|
1486
|
+
return code;
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
},
|
|
1490
|
+
|
|
1491
|
+
pulse: {
|
|
1492
|
+
heading: () => '¿Corrieron las cosas que tienen que correr?',
|
|
1493
|
+
kind: (kind) => {
|
|
1494
|
+
switch (kind) {
|
|
1495
|
+
case 'watch-cycle':
|
|
1496
|
+
return 'último ciclo de watch';
|
|
1497
|
+
case 'store-pull':
|
|
1498
|
+
return 'última descarga al almacén';
|
|
1499
|
+
case 'store-coverage':
|
|
1500
|
+
return 'las mediciones llegan hasta';
|
|
1501
|
+
default:
|
|
1502
|
+
return kind;
|
|
1503
|
+
}
|
|
1504
|
+
},
|
|
1505
|
+
neverRun: (name) =>
|
|
1506
|
+
`${name}: nunca aquí. No va tarde — no hay cadencia contra la que ir tarde.`,
|
|
1507
|
+
age: (name, when, hours) => `${name}: ${when}Z, hace ${plural(hours, 'hora')}`,
|
|
1508
|
+
noThreshold: () =>
|
|
1509
|
+
'No se juzgó nada. Pasa --max-stale-hours <n> para que algo que dejó de correr sea un código de salida en rojo; cuánto es demasiado es una política, y esta herramienta no escribe la tuya.',
|
|
1510
|
+
within: (hours) => `Todo lo que corre aquí corrió dentro de ${plural(hours, 'hora')}.`,
|
|
1511
|
+
stale: (hours) =>
|
|
1512
|
+
`Algo que corre aquí lleva más de ${plural(hours, 'hora')} sin correr. El silencio de un trabajo programado y el de un trabajo sin nada que decir son iguales; esto dice cuál es.`,
|
|
1513
|
+
notAService: () =>
|
|
1514
|
+
'Este comando no ejecuta nada y no aloja nada. Algo tiene que darse cuenta, y ese algo es tu CI: un paso que ejecute esto con el horario que ya tienes convierte un cron muerto en una build roja, sin que Trazum guarde las métricas de nadie. Hasta dónde llegan las mediciones se informa y nunca se juzga — eso es un proveedor informando a su ritmo, no un trabajo que falló.',
|
|
1515
|
+
},
|
|
1516
|
+
|
|
1386
1517
|
where: {
|
|
1387
1518
|
hostHeading: () => 'Ejecutándose dentro de',
|
|
1388
1519
|
subscription: (host) =>
|
|
@@ -2349,6 +2480,13 @@ ${bold('EJEMPLOS')}
|
|
|
2349
2480
|
},
|
|
2350
2481
|
storeNoLabels: () =>
|
|
2351
2482
|
'Esta serie viene del almacén, y una API de uso agrupa por modelo y workspace, no por carga de trabajo — así que aquí no hay serie por label en absoluto. Ausente, no vacía: nada de lo de arriba dice que una carga se moviera o dejara de moverse.',
|
|
2483
|
+
unmeasured: (days, from, to, after, before) =>
|
|
2484
|
+
`Nada cubre del ${from} al ${to} — ${plural(days, 'día')} entre ${after} y ${before}.`,
|
|
2485
|
+
unmeasuredTotal: (days) =>
|
|
2486
|
+
`${plural(days, 'día')} de este tramo no los cubre ningún informe. Una serie con un agujero y una serie más corta se leen igual; esto dice cuál es.`,
|
|
2487
|
+
overlap: (a, b, days) =>
|
|
2488
|
+
`${a} y ${b} cubren ambos ${plural(days, 'día')}. Nombrado, nunca fusionado — cuál es la mejor medición no se sabe desde aquí, y sumar los dos totales cuenta esos días dos veces.`,
|
|
2489
|
+
runHole: (days) => ` — ${plural(days, 'día')} de esta racha no los cubre ningún informe`,
|
|
2352
2490
|
undated: (name) => `${name} no lleva período, así que no está en ninguna línea de tiempo de arriba — nombrado, nunca absorbido en silencio.`,
|
|
2353
2491
|
unrecognized: (name) => `${name} no es ni un informe guardado ni un plan guardado, así que no está en ninguna serie de arriba.`,
|
|
2354
2492
|
footer: () =>
|
package/src/i18n/types.ts
CHANGED
|
@@ -16,6 +16,15 @@ export interface HelpDefaults {
|
|
|
16
16
|
avgOutputTokens: number;
|
|
17
17
|
cacheHitRate: number;
|
|
18
18
|
locales: readonly string[];
|
|
19
|
+
/**
|
|
20
|
+
* Every contract `--contract` accepts, from the one place that defines them.
|
|
21
|
+
*
|
|
22
|
+
* Retyped into the help text, this list stopped at `cost-answer` and stayed
|
|
23
|
+
* there through two releases that each added a contract — the same shape as
|
|
24
|
+
* the provider enumeration `help-enumerations.test.js` exists to keep out of
|
|
25
|
+
* USAGE, one section further down the same page.
|
|
26
|
+
*/
|
|
27
|
+
contracts: readonly string[];
|
|
19
28
|
}
|
|
20
29
|
|
|
21
30
|
export interface CliMessages {
|
|
@@ -423,6 +432,46 @@ export interface CliMessages {
|
|
|
423
432
|
unavailableNeverGates(): string;
|
|
424
433
|
};
|
|
425
434
|
|
|
435
|
+
rollup: {
|
|
436
|
+
noTargets(): string;
|
|
437
|
+
noSuchTarget(path: string): string;
|
|
438
|
+
emptyDirectory(path: string): string;
|
|
439
|
+
heading(contributors: number, usd: string, calls: number): string;
|
|
440
|
+
span(from: string, to: string): string;
|
|
441
|
+
noSpan(): string;
|
|
442
|
+
contributorsHeading(): string;
|
|
443
|
+
contributor(name: string, usd: string, calls: number, spanDays: number | null): string;
|
|
444
|
+
claimedSpan(from: string, to: string, contributors: number): string;
|
|
445
|
+
claimedRow(from: string, to: string): string;
|
|
446
|
+
silentRuns(runs: string): string;
|
|
447
|
+
undated(count: number): string;
|
|
448
|
+
rejectedHeading(): string;
|
|
449
|
+
rejected(name: string, because: string): string;
|
|
450
|
+
via(rollup: string): string;
|
|
451
|
+
rejectedVia(name: string, via: string, because: string): string;
|
|
452
|
+
repeated(names: string): string;
|
|
453
|
+
identical(names: string): string;
|
|
454
|
+
identicalUsd(usd: string): string;
|
|
455
|
+
byLabelHeading(): string;
|
|
456
|
+
labelRow(label: string, usd: string, calls: number): string;
|
|
457
|
+
notMergedHeading(): string;
|
|
458
|
+
notMerged(finding: string, because: string): string;
|
|
459
|
+
presentIn(names: string): string;
|
|
460
|
+
cannotSayHeading(): string;
|
|
461
|
+
caveat(code: string): string;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
pulse: {
|
|
465
|
+
heading(): string;
|
|
466
|
+
kind(kind: string): string;
|
|
467
|
+
neverRun(name: string): string;
|
|
468
|
+
age(name: string, when: string, hours: number): string;
|
|
469
|
+
noThreshold(): string;
|
|
470
|
+
within(hours: number): string;
|
|
471
|
+
stale(hours: number): string;
|
|
472
|
+
notAService(): string;
|
|
473
|
+
};
|
|
474
|
+
|
|
426
475
|
where: {
|
|
427
476
|
hostHeading(): string;
|
|
428
477
|
subscription(host: string): string;
|
|
@@ -1471,6 +1520,10 @@ export interface CliMessages {
|
|
|
1471
1520
|
/** A store source carries no labels, so the label series is absent, not empty. */
|
|
1472
1521
|
storeNoLabels(): string;
|
|
1473
1522
|
undated(name: string): string;
|
|
1523
|
+
unmeasured(days: number, from: string, to: string, after: string, before: string): string;
|
|
1524
|
+
unmeasuredTotal(days: number): string;
|
|
1525
|
+
overlap(a: string, b: string, days: number): string;
|
|
1526
|
+
runHole(days: number): string;
|
|
1474
1527
|
unrecognized(name: string): string;
|
|
1475
1528
|
footer(): string;
|
|
1476
1529
|
/** The waiver record — what this team has been living with, and for how long. */
|