agenr 0.7.21 → 0.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.0] - 2026-02-22
4
+
5
+ ### Added
6
+ - feat(ingest): whole-file extraction mode for transcript ingest. `extractKnowledgeFromChunks` now supports `wholeFile: "auto" | "force" | "never"` with automatic fit detection against known model context windows and single-call extraction when a file fits.
7
+ - feat(ingest): new `--whole-file` and `--chunk` ingest flags to force whole-file or chunked extraction mode.
8
+ - feat(ingest): new whole-file utilities in `src/ingest/whole-file.ts` for context-window detection, mode resolution, overlap-free message reconstruction, and hard-cap truncation.
9
+
10
+ ### Changed
11
+ - ingest: whole-file mode now reconstructs extraction text from parsed `messages` via `renderTranscriptLine` instead of joining chunk text, avoiding overlap duplication at chunk boundaries.
12
+ - extractor: whole-file mode now skips embedding pre-fetch and skips post-extraction LLM dedup, applies a 100-entry hard cap by importance, and retries failed whole-file extraction attempts before falling back to chunked mode.
13
+ - watch: watcher calls now set `watchMode: true`, which enforces chunked extraction even if whole-file mode is requested.
14
+ - mcp: ingest-style extraction now forwards parsed `messages` into extraction so whole-file mode can be resolved consistently.
15
+
3
16
  ## [0.7.21] - 2026-02-21
4
17
 
5
18
  ### Fixed
@@ -164,13 +164,18 @@ interface ExtractChunkCompleteResult {
164
164
  chunkIndex: number;
165
165
  totalChunks: number;
166
166
  entries: KnowledgeEntry[];
167
+ entriesExtracted?: number;
168
+ durationMs?: number;
167
169
  warnings: string[];
168
170
  }
169
171
  declare function extractKnowledgeFromChunks(params: {
170
172
  file: string;
171
173
  chunks: TranscriptChunk[];
174
+ messages?: TranscriptMessage[];
172
175
  client: LlmClient;
173
176
  verbose: boolean;
177
+ wholeFile?: "auto" | "force" | "never";
178
+ watchMode?: boolean;
174
179
  platform?: KnowledgePlatform | (string & {});
175
180
  noDedup?: boolean;
176
181
  interChunkDelayMs?: number;