git-coco 0.43.0 → 0.45.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 +43 -0
- package/dist/index.esm.mjs +402 -92
- package/dist/index.js +402 -92
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,35 @@ type BaseLLMService = {
|
|
|
99
99
|
* @default 'balanced'
|
|
100
100
|
*/
|
|
101
101
|
dynamicModelPreference?: DynamicModelPreference;
|
|
102
|
+
/**
|
|
103
|
+
* Opt-in fast paths that trade summary detail for speed. Each flag
|
|
104
|
+
* here replaces an LLM summary call with a deterministic templated
|
|
105
|
+
* extract for a specific file shape. Off by default — when enabled,
|
|
106
|
+
* you accept that final commit messages on those file shapes may be
|
|
107
|
+
* blander than LLM-generated summaries (the templated extract names
|
|
108
|
+
* structural changes only).
|
|
109
|
+
*
|
|
110
|
+
* Lossless optimizations (cache, trivial-shape skip on pure
|
|
111
|
+
* additions / deletions / renames / binary, sort discipline) ship
|
|
112
|
+
* default-on and are not configured here.
|
|
113
|
+
*/
|
|
114
|
+
fastPath?: {
|
|
115
|
+
/**
|
|
116
|
+
* Replace the LLM summary with a templated heading extract for
|
|
117
|
+
* `.md` / `.mdx` / `.markdown` modification diffs that have clear
|
|
118
|
+
* heading-level structural changes. Diffs without structural
|
|
119
|
+
* signals (paragraph-only edits) still go to the LLM regardless
|
|
120
|
+
* of this flag.
|
|
121
|
+
*
|
|
122
|
+
* Bench impact (synthetic): collapses docs-update-shaped commits
|
|
123
|
+
* from ~24s cold to ~3ms (no LLM calls fire for the markdown
|
|
124
|
+
* files). Real-world wall-clock savings depend on per-call LLM
|
|
125
|
+
* latency.
|
|
126
|
+
*
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
markdown?: boolean;
|
|
130
|
+
};
|
|
102
131
|
};
|
|
103
132
|
type Authentication = {
|
|
104
133
|
type: 'None';
|
|
@@ -472,6 +501,7 @@ type LlmCallMetadata = {
|
|
|
472
501
|
provider?: string;
|
|
473
502
|
model?: string;
|
|
474
503
|
retryAttempt?: number;
|
|
504
|
+
planAttempt?: number;
|
|
475
505
|
parserType?: string;
|
|
476
506
|
variableKeys?: string[];
|
|
477
507
|
promptTokens?: number;
|
|
@@ -533,6 +563,19 @@ interface BaseParserOptions {
|
|
|
533
563
|
* @default 6
|
|
534
564
|
*/
|
|
535
565
|
maxConcurrent?: number;
|
|
566
|
+
/**
|
|
567
|
+
* Opt-in fast paths that trade summary detail for speed. Mirrors the
|
|
568
|
+
* `service.fastPath` shape. Off by default; lossless optimizations
|
|
569
|
+
* are not configured here.
|
|
570
|
+
*/
|
|
571
|
+
fastPath?: {
|
|
572
|
+
/**
|
|
573
|
+
* Replace the LLM summary with a templated heading extract for
|
|
574
|
+
* markdown modification diffs with structural signals.
|
|
575
|
+
* @default false
|
|
576
|
+
*/
|
|
577
|
+
markdown?: boolean;
|
|
578
|
+
};
|
|
536
579
|
metadata?: Partial<LlmCallMetadata>;
|
|
537
580
|
}
|
|
538
581
|
interface BaseParserInput {
|