git-coco 0.23.1 → 0.25.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/index.d.ts CHANGED
@@ -38,6 +38,21 @@ type BaseLLMService = {
38
38
  * @default 6
39
39
  */
40
40
  maxConcurrent?: number;
41
+ /**
42
+ * Minimum token count for a directory/file group to be eligible for summarization.
43
+ * Groups below this threshold preserve raw diffs to maintain detail.
44
+ *
45
+ * @default 400
46
+ */
47
+ minTokensForSummary?: number;
48
+ /**
49
+ * Maximum tokens allowed for a single file diff before it gets pre-summarized.
50
+ * Prevents large files from biasing the overall summary.
51
+ * If not set, defaults to 25% of tokenLimit.
52
+ *
53
+ * @default undefined (uses 0.25 * tokenLimit)
54
+ */
55
+ maxFileTokens?: number;
41
56
  authentication: Authentication;
42
57
  requestOptions?: {
43
58
  timeout?: number;
@@ -173,6 +188,7 @@ interface BaseCommandOptions extends BaseArgvOptions {
173
188
  interface ChangelogOptions extends BaseCommandOptions {
174
189
  range: string;
175
190
  branch: string;
191
+ tag: string;
176
192
  sinceLastTag: boolean;
177
193
  withDiff?: boolean;
178
194
  onlyDiff?: boolean;
@@ -338,6 +354,21 @@ interface BaseParserOptions {
338
354
  git: SimpleGit;
339
355
  logger: Logger;
340
356
  maxTokens?: number;
357
+ /**
358
+ * Minimum token count for a directory/file group to be eligible for summarization.
359
+ * @default 400
360
+ */
361
+ minTokensForSummary?: number;
362
+ /**
363
+ * Maximum tokens allowed for a single file diff before it gets pre-summarized.
364
+ * Defaults to 25% of maxTokens if not specified.
365
+ */
366
+ maxFileTokens?: number;
367
+ /**
368
+ * Maximum number of concurrent summarization requests.
369
+ * @default 6
370
+ */
371
+ maxConcurrent?: number;
341
372
  }
342
373
  interface BaseParserInput {
343
374
  options: BaseParserOptions;