Added a way to read what the AI received from your sources (#1100)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Paul KoudelkaandThorsten Sommer authored and GitHub committed 2026-10-26 10:00:01 +01:00
1 parent e0d8e18f34
commit cbc4ce5413
229 files changed
+12739 -1269

No files matched your search

@@ -10,6 +10,11 @@ internal static class FileContentHash
/// <summary>
/// Computes a lowercase SHA-256 hash for a file without loading it fully into memory.
/// </summary>
/// <remarks>
/// The file is read while other programs may keep it open, even for writing, as an office
/// program does with a document being edited. The runtime reads files for extraction the same
/// way, so a file which can be indexed can always be hashed.
/// </remarks>
/// <param name="path">The file path.</param>
/// <param name="token">The cancellation token.</param>
/// <returns>The lowercase hexadecimal hash.</returns>
@@ -19,7 +24,7 @@ internal static class FileContentHash
path,
FileMode.Open,
FileAccess.Read,
FileShare.Read,
FileShare.ReadWrite | FileShare.Delete,
65_536,
FileOptions.Asynchronous | FileOptions.SequentialScan);