@trazum/cli 1.77.1 → 1.78.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trazum/cli",
3
- "version": "1.77.1",
3
+ "version": "1.78.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.77.1"
40
+ "@trazum/core": "1.78.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^26.2.0",
package/src/i18n/en.ts CHANGED
@@ -1744,6 +1744,16 @@ ${bold('EXAMPLES')}
1744
1744
  ? 'the log is empty — nothing was recorded'
1745
1745
  : 'the log records labels and has never seen this one this month — possibly renamed, possibly idle, and neither is "under budget"',
1746
1746
  cannotSayHeading: () => 'What this deliberately does not answer',
1747
+ cannotSay: (code) => {
1748
+ switch (code) {
1749
+ case 'session-limit-at-the-doors':
1750
+ return 'limits.sessionUsd is judged per call at the doors. A session is not a calendar scope, and a "session position for the month" would be an average wearing a limit\'s name.';
1751
+ case 'no-ceiling-configured':
1752
+ return 'No monthly budget and no limits are configured, so there is no ceiling to state a position against. spend.monthlyUsd and the limits block are where ceilings live.';
1753
+ default:
1754
+ return code;
1755
+ }
1756
+ },
1747
1757
  unpriced: (count) =>
1748
1758
  `${count} record(s) name a model the catalogue cannot price. They contribute nothing to any figure above — money nobody can see, said here rather than hidden.`,
1749
1759
  source: () =>
package/src/i18n/es.ts CHANGED
@@ -1762,6 +1762,16 @@ ${bold('EJEMPLOS')}
1762
1762
  ? 'el log está vacío — no se registró nada'
1763
1763
  : 'el log registra etiquetas y no ha visto esta en todo el mes — quizá renombrada, quizá parada, y ninguna de las dos es «dentro del presupuesto»',
1764
1764
  cannotSayHeading: () => 'Lo que deliberadamente no responde',
1765
+ cannotSay: (code) => {
1766
+ switch (code) {
1767
+ case 'session-limit-at-the-doors':
1768
+ return 'limits.sessionUsd se juzga llamada a llamada en las puertas. Una sesión no es un ámbito de calendario, y una «posición de sesión para el mes» sería una media disfrazada de límite.';
1769
+ case 'no-ceiling-configured':
1770
+ return 'No hay presupuesto mensual ni límites configurados, así que no existe techo contra el que declarar una posición. Los techos viven en spend.monthlyUsd y en el bloque limits.';
1771
+ default:
1772
+ return code;
1773
+ }
1774
+ },
1765
1775
  unpriced: (count) =>
1766
1776
  `${count} registro(s) nombran un modelo que el catálogo no puede tasar. No aportan nada a ninguna cifra de arriba — dinero que nadie ve, dicho aquí en vez de escondido.`,
1767
1777
  source: () =>
package/src/i18n/types.ts CHANGED
@@ -609,6 +609,7 @@ export interface CliMessages {
609
609
  unmeasured(scope: string, why: string): string;
610
610
  why(reason: 'no-clock' | 'no-labels' | 'nothing-recorded' | 'label-unseen'): string;
611
611
  cannotSayHeading(): string;
612
+ cannotSay(code: string): string;
612
613
  unpriced(count: number): string;
613
614
  /** The source, named: this log alone, never merged with the store. */
614
615
  source(): string;
package/src/index.ts CHANGED
@@ -2999,8 +2999,8 @@ async function commandPosition(
2999
2999
  if (document.cannotSay.length > 0) {
3000
3000
  console.log();
3001
3001
  console.log(` ${c.bold(t.position.cannotSayHeading())}`);
3002
- for (const line of document.cannotSay) {
3003
- console.log(` ${c.dim(wrap(line, 70, ' '))}`);
3002
+ for (const code of document.cannotSay) {
3003
+ console.log(` ${c.dim(wrap(t.position.cannotSay(code), 70, ' '))}`);
3004
3004
  }
3005
3005
  }
3006
3006
  if (document.unpricedRecords > 0) {