@trazum/cli 1.59.0 → 1.60.1

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.59.0",
3
+ "version": "1.60.1",
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.59.0"
40
+ "@trazum/core": "1.60.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^26.2.0",
package/src/i18n/en.ts CHANGED
@@ -718,7 +718,7 @@ ${bold('CONFIG FILE')}
718
718
  ${bold('trazum.config.json')}, found by walking up from the working directory and
719
719
  stopping at the repository root. Every key is optional:
720
720
 
721
- level, locale, disable, maxGrowth, extensions
721
+ level, locale, disable, maxGrowth, extensions, ignore
722
722
  usage { model, callsPerMonth, avgOutputTokens, cacheHitRate, batchEligible }
723
723
  budgets { "prompts/**": 2000, "prompts/system.txt": 4000 }
724
724
  baseline { "path": "trazum.baseline.json", "maxGrowthTokens": 0, "maxGrowthPct": 5 }
package/src/i18n/es.ts CHANGED
@@ -740,7 +740,7 @@ ${bold('FICHERO DE CONFIGURACIÓN')}
740
740
  ${bold('trazum.config.json')}, que se busca subiendo desde el directorio de trabajo
741
741
  y parando en la raíz del repositorio. Todas las claves son opcionales:
742
742
 
743
- level, locale, disable, maxGrowth, extensions
743
+ level, locale, disable, maxGrowth, extensions, ignore
744
744
  usage { model, callsPerMonth, avgOutputTokens, cacheHitRate, batchEligible }
745
745
  budgets { "prompts/**": 2000, "prompts/system.txt": 4000 }
746
746
  baseline { "path": "trazum.baseline.json", "maxGrowthTokens": 0, "maxGrowthPct": 5 }
package/src/index.ts CHANGED
@@ -1789,6 +1789,7 @@ async function commandInit(
1789
1789
  const host = detectHost();
1790
1790
  const prompts = await walkPrompts(root, {
1791
1791
  extensions: config.extensions ?? DEFAULT_EXTENSIONS,
1792
+ ignore: config.ignore,
1792
1793
  });
1793
1794
 
1794
1795
  /**
@@ -1803,6 +1804,7 @@ async function commandInit(
1803
1804
  const sourceWalk = await walkPrompts(root, {
1804
1805
  extensions: SOURCE_EXTENSIONS,
1805
1806
  maxFiles: INIT_MAX_SOURCE_FILES,
1807
+ ignore: config.ignore,
1806
1808
  });
1807
1809
  const sightings: ProviderSighting[] = [];
1808
1810
  for (const relative of sourceWalk.files) {
@@ -3698,7 +3700,7 @@ async function commandRulesMeasure(
3698
3700
  if (level !== 'safe' && level !== 'aggressive') throw new Error(t.errors.badLevel(level));
3699
3701
 
3700
3702
  const extensions = config.extensions ?? [...DEFAULT_EXTENSIONS, ...SOURCE_EXTENSIONS];
3701
- const { files, truncated } = await walkPrompts(root, { extensions });
3703
+ const { files, truncated } = await walkPrompts(root, { extensions, ignore: config.ignore });
3702
3704
  if (files.length === 0) throw new Error(t.errors.noPromptsFound(root, extensions.join(' ')));
3703
3705
 
3704
3706
  const prompts: string[] = [];
@@ -8556,7 +8558,7 @@ async function scanPrompts(
8556
8558
  // to be fully implemented and completely undiscoverable; an unmarked source
8557
8559
  // file costs one `includes()` and is dropped.
8558
8560
  const extensions = config.extensions ?? [...DEFAULT_EXTENSIONS, ...SOURCE_EXTENSIONS];
8559
- const { files, truncated } = await walkPrompts(root, { extensions });
8561
+ const { files, truncated } = await walkPrompts(root, { extensions, ignore: config.ignore });
8560
8562
 
8561
8563
  if (files.length === 0) {
8562
8564
  throw new Error(t.errors.noPromptsFound(root, extensions.join(' ')));
@@ -9613,7 +9615,7 @@ async function commandRank(
9613
9615
  const usage = usageFrom(args, config, t);
9614
9616
 
9615
9617
  const extensions = config.extensions ?? [...DEFAULT_EXTENSIONS, ...SOURCE_EXTENSIONS];
9616
- const { files, truncated } = await walkPrompts(root, { extensions });
9618
+ const { files, truncated } = await walkPrompts(root, { extensions, ignore: config.ignore });
9617
9619
  if (files.length === 0) {
9618
9620
  throw new Error(t.errors.noPromptsFound(root, extensions.join(' ')));
9619
9621
  }
@@ -10088,7 +10090,7 @@ async function commandDoctor(
10088
10090
  const usage = usageFrom(args, config, t);
10089
10091
 
10090
10092
  const extensions = config.extensions ?? [...DEFAULT_EXTENSIONS, ...SOURCE_EXTENSIONS];
10091
- const { files, truncated } = await walkPrompts(root, { extensions });
10093
+ const { files, truncated } = await walkPrompts(root, { extensions, ignore: config.ignore });
10092
10094
  if (files.length === 0) {
10093
10095
  throw new Error(t.errors.noPromptsFound(root, extensions.join(' ')));
10094
10096
  }
@@ -10387,8 +10389,8 @@ async function diffDirectories(
10387
10389
  const extensions = config.extensions ?? [...DEFAULT_EXTENSIONS, ...SOURCE_EXTENSIONS];
10388
10390
 
10389
10391
  const [beforeWalk, afterWalk] = await Promise.all([
10390
- walkPrompts(beforeRoot, { extensions }),
10391
- walkPrompts(afterRoot, { extensions }),
10392
+ walkPrompts(beforeRoot, { extensions, ignore: config.ignore }),
10393
+ walkPrompts(afterRoot, { extensions, ignore: config.ignore }),
10392
10394
  ]);
10393
10395
  if (beforeWalk.files.length === 0 && afterWalk.files.length === 0) {
10394
10396
  throw new Error(t.errors.noPromptsFound(`${beforeRoot}, ${afterRoot}`, extensions.join(' ')));