@aiready/context-analyzer 0.1.4 → 0.2.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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/context-analyzer@0.1.4 build /Users/pengcao/projects/aiready/packages/context-analyzer
3
+ > @aiready/context-analyzer@0.2.1 build /Users/pengcao/projects/aiready/packages/context-analyzer
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -9,15 +9,15 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/index.js 18.33 KB
13
- CJS dist/cli.js 32.65 KB
14
- CJS ⚡️ Build success in 43ms
15
- ESM dist/cli.mjs 13.39 KB
12
+ ESM dist/cli.mjs 13.59 KB
16
13
  ESM dist/index.mjs 124.00 B
17
14
  ESM dist/chunk-T6ZCOPPI.mjs 17.25 KB
18
- ESM ⚡️ Build success in 43ms
15
+ ESM ⚡️ Build success in 64ms
16
+ CJS dist/cli.js 32.86 KB
17
+ CJS dist/index.js 18.33 KB
18
+ CJS ⚡️ Build success in 65ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 618ms
20
+ DTS ⚡️ Build success in 737ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 2.14 KB
23
23
  DTS dist/cli.d.mts 20.00 B
package/dist/cli.js CHANGED
@@ -566,7 +566,7 @@ var import_fs = require("fs");
566
566
  var import_path = require("path");
567
567
  var import_core3 = require("@aiready/core");
568
568
  var program = new import_commander.Command();
569
- program.name("aiready-context").description("Analyze AI context window cost and code structure").version("0.1.0").argument("<directory>", "Directory to analyze").option("--max-depth <number>", "Maximum acceptable import depth", "5").option(
569
+ program.name("aiready-context").description("Analyze AI context window cost and code structure").version("0.1.0").addHelpText("after", "\nCONFIGURATION:\n Supports config files: aiready.json, aiready.config.json, .aiready.json, .aireadyrc.json, aiready.config.js, .aireadyrc.js\n CLI options override config file settings").argument("<directory>", "Directory to analyze").option("--max-depth <number>", "Maximum acceptable import depth", "5").option(
570
570
  "--max-context <number>",
571
571
  "Maximum acceptable context budget (tokens)",
572
572
  "10000"
package/dist/cli.mjs CHANGED
@@ -11,7 +11,7 @@ import { writeFileSync } from "fs";
11
11
  import { join } from "path";
12
12
  import { loadConfig, mergeConfigWithDefaults } from "@aiready/core";
13
13
  var program = new Command();
14
- program.name("aiready-context").description("Analyze AI context window cost and code structure").version("0.1.0").argument("<directory>", "Directory to analyze").option("--max-depth <number>", "Maximum acceptable import depth", "5").option(
14
+ program.name("aiready-context").description("Analyze AI context window cost and code structure").version("0.1.0").addHelpText("after", "\nCONFIGURATION:\n Supports config files: aiready.json, aiready.config.json, .aiready.json, .aireadyrc.json, aiready.config.js, .aireadyrc.js\n CLI options override config file settings").argument("<directory>", "Directory to analyze").option("--max-depth <number>", "Maximum acceptable import depth", "5").option(
15
15
  "--max-context <number>",
16
16
  "Maximum acceptable context budget (tokens)",
17
17
  "10000"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/context-analyzer",
3
- "version": "0.1.4",
3
+ "version": "0.2.1",
4
4
  "description": "AI context window cost analysis - detect fragmented code, deep import chains, and expensive context budgets",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "commander": "^12.1.0",
51
51
  "chalk": "^5.3.0",
52
- "@aiready/core": "0.2.4"
52
+ "@aiready/core": "0.2.5"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^22.10.2",
package/src/cli.ts CHANGED
@@ -13,6 +13,7 @@ program
13
13
  .name('aiready-context')
14
14
  .description('Analyze AI context window cost and code structure')
15
15
  .version('0.1.0')
16
+ .addHelpText('after', '\nCONFIGURATION:\n Supports config files: aiready.json, aiready.config.json, .aiready.json, .aireadyrc.json, aiready.config.js, .aireadyrc.js\n CLI options override config file settings')
16
17
  .argument('<directory>', 'Directory to analyze')
17
18
  .option('--max-depth <number>', 'Maximum acceptable import depth', '5')
18
19
  .option(