@hone-ai/cli 1.15.0 → 1.16.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.
Files changed (2) hide show
  1. package/hone-cli.js +19 -4
  2. package/package.json +1 -1
package/hone-cli.js CHANGED
@@ -4503,7 +4503,15 @@ program
4503
4503
  // blow context with prose)
4504
4504
  if (issueBodyForFiles || opts.includePaths) {
4505
4505
  try {
4506
- const FILE_PATH_RE = /(?<![\w/])([a-zA-Z_][\w-]*\/(?:[\w.-]+\/)*[\w.-]+\.(?:py|js|ts|jsx|tsx|go|rs|java|rb|sh|sql))/g;
4506
+ // HC-019n-followup-13c: word-boundary `\b` at end of extension
4507
+ // group so `.jsonl` doesn't match as `.js` and `.tsx` doesn't
4508
+ // match as `.ts`. Pre-fix, both `logs/calibration_runs.jsonl`
4509
+ // and `src/web/app.tsx` got truncated. The truncated paths
4510
+ // failed the downstream `fs.existsSync` check so they didn't
4511
+ // crash the bundling, but they polluted the regex output set
4512
+ // and would have produced confusing "file not found" warnings
4513
+ // if we ever tightened the diagnostic logging.
4514
+ const FILE_PATH_RE = /(?<![\w/])([a-zA-Z_][\w-]*\/(?:[\w.-]+\/)*[\w.-]+\.(?:py|js|ts|jsx|tsx|go|rs|java|rb|sh|sql))\b/g;
4507
4515
  const candidates = new Set();
4508
4516
  if (issueBodyForFiles) {
4509
4517
  for (const m of issueBodyForFiles.matchAll(FILE_PATH_RE)) candidates.add(m[1]);
@@ -4514,9 +4522,16 @@ program
4514
4522
  candidates.add(p);
4515
4523
  }
4516
4524
  }
4517
- const MAX_FILES = 10;
4518
- const MAX_TOTAL_CHARS = 50_000;
4519
- const MAX_PER_FILE_CHARS = 10_000;
4525
+ // HC-019n-followup-13d: bump caps. Pre-fix MAX_FILES=10 /
4526
+ // MAX_TOTAL_CHARS=50_000 / MAX_PER_FILE_CHARS=10_000 was overly
4527
+ // conservative OptionsFlow #96 hit 49,783/50,000 with 6 files
4528
+ // (217 chars to spare), meaning the next slightly-larger story
4529
+ // silently dropped files. LLM context windows are 200K+; the
4530
+ // bundle should be able to fill ~25% of that without surprise.
4531
+ // New caps: 30 / 150_000 / 25_000.
4532
+ const MAX_FILES = 30;
4533
+ const MAX_TOTAL_CHARS = 150_000;
4534
+ const MAX_PER_FILE_CHARS = 25_000;
4520
4535
  const codebaseFiles = [];
4521
4536
  let totalChars = 0;
4522
4537
  for (const candidate of candidates) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hone-ai/cli",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Hone AI — Enterprise SDLC Pipeline CLI",
5
5
  "main": "hone-cli.js",
6
6
  "bin": {