Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1a55d93
Implement priority-based automatic discovery of llms.txt and sitemap.…
leex279 Sep 8, 2025
43af7b7
fix: Update tests for single-file discovery and discovery stage integ…
leex279 Sep 8, 2025
d2adc15
fix: Address CodeRabbit critical issues for discovery service
leex279 Sep 8, 2025
77b0470
fix: Implement remaining CodeRabbit fixes for async and depth handling
leex279 Sep 8, 2025
8072066
Merge main into feature/automatic-discovery-llms-sitemap-430
leex279 Sep 20, 2025
2be44d1
fix: Resolve syntax error from merge conflict resolution
leex279 Sep 20, 2025
0a2c43f
fix: Update test assertions for proper rounding behavior in progress …
leex279 Sep 20, 2025
7f74aea
fix: Discovery now respects given URL path and fix method signature m…
leex279 Sep 20, 2025
c1677a9
fix: Skip discovery when user provides direct discovery file URLs
leex279 Sep 20, 2025
597fc86
fix: Skip link extraction for discovery targets (single-file mode)
leex279 Sep 20, 2025
d3cecd2
Merge branch 'main' into feature/automatic-discovery-llms-sitemap-430
leex279 Sep 22, 2025
d696918
Merge main into feature/automatic-discovery-llms-sitemap-430
leex279 Oct 11, 2025
968e5b7
Add SSL verification and response size limits to discovery service
leex279 Oct 14, 2025
e5160dd
fix: Address CodeRabbit feedback for discovery service
leex279 Oct 17, 2025
8777e94
feat: Prioritize same-directory discovery for llms.txt and sitemaps
leex279 Oct 17, 2025
a03ce1e
fix: Respect llms.txt priority over robots.txt sitemap declarations
leex279 Oct 17, 2025
cdf4323
feat: Implement llms.txt link following with discovery priority fix
leex279 Oct 17, 2025
8ab6c75
fix: Improve path detection and add progress validation
leex279 Oct 17, 2025
ddcd364
docs: Remove PRPs/llms-txt-link-following.md - not needed in repo
leex279 Oct 19, 2025
13796ab
feat: Improve discovery system with SSRF protection and optimize file…
leex279 Oct 19, 2025
957d8b9
fix: Update tests for requests.Session mock and cleanup URL validation
leex279 Oct 19, 2025
46ae553
fix: add tldextract to all dependency group
leex279 Oct 19, 2025
35c9ea9
fix: update test to use 'pages' terminology for llms.txt
leex279 Oct 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
538 changes: 538 additions & 0 deletions PRPs/llms-txt-link-following.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const CrawlingProgress: React.FC<CrawlingProgressProps> = ({ onSwitchToBr
"in_progress",
"starting",
"initializing",
"discovery",
"analyzing",
"storing",
"source_creation",
Expand Down Expand Up @@ -245,6 +246,51 @@ export const CrawlingProgress: React.FC<CrawlingProgressProps> = ({ onSwitchToBr
)}
</div>

{/* Discovery Information */}
{(operation as any).discovered_file && (
<div className="pt-2 border-t border-white/10">
<div className="flex items-center gap-2 mb-2">
<span className="text-xs font-semibold text-cyan-400">Discovery Result</span>
{(operation as any).discovered_file_type && (
<span className="px-2 py-0.5 text-xs rounded bg-cyan-500/10 border border-cyan-500/20 text-cyan-300">
{(operation as any).discovered_file_type}
</span>
)}
</div>
<a
href={(operation as any).discovered_file}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-gray-400 hover:text-cyan-400 transition-colors truncate block"
>
{(operation as any).discovered_file}
</a>
</div>
)}

{/* Linked Files */}
{(operation as any).linked_files && (operation as any).linked_files.length > 0 && (
<div className="pt-2 border-t border-white/10">
<div className="text-xs font-semibold text-cyan-400 mb-2">
Following {(operation as any).linked_files.length} Linked File
{(operation as any).linked_files.length > 1 ? "s" : ""}
</div>
<div className="space-y-1 max-h-32 overflow-y-auto">
{(operation as any).linked_files.map((file: string, idx: number) => (
<a
key={idx}
href={file}
target="_blank"
rel="noopener noreferrer"
className="text-xs text-gray-400 hover:text-cyan-400 transition-colors truncate block"
>
• {file}
</a>
))}
</div>
</div>
)}

{/* Current Action or Operation Type Info */}
{(operation.current_url || operation.operation_type) && (
<div className="pt-2 border-t border-white/10">
Expand Down
23 changes: 22 additions & 1 deletion archon-ui-main/src/features/progress/types/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
export type ProgressStatus =
| "starting"
| "initializing"
| "discovery"
| "analyzing"
| "crawling"
| "processing"
Expand All @@ -24,7 +25,16 @@ export type ProgressStatus =
| "cancelled"
| "stopping";

export type CrawlType = "normal" | "sitemap" | "llms-txt" | "text_file" | "refresh";
export type CrawlType =
| "normal"
| "sitemap"
| "llms-txt"
| "text_file"
| "refresh"
| "llms_txt_with_linked_files"
| "llms_txt_linked_files"
| "discovery_single_file"
| "discovery_sitemap";
export type UploadType = "document";

export interface BaseProgressData {
Expand All @@ -48,6 +58,10 @@ export interface CrawlProgressData extends BaseProgressData {
codeBlocksFound?: number;
totalSummaries?: number;
completedSummaries?: number;
// Discovery-related fields
discoveredFile?: string;
discoveredFileType?: string;
linkedFiles?: string[];
originalCrawlParams?: {
url: string;
knowledge_type?: string;
Expand Down Expand Up @@ -127,6 +141,13 @@ export interface ProgressResponse {
codeBlocksFound?: number;
totalSummaries?: number;
completedSummaries?: number;
// Discovery-related fields
discoveredFile?: string;
discovered_file?: string; // Snake case from backend
discoveredFileType?: string;
discovered_file_type?: string; // Snake case from backend
linkedFiles?: string[];
linked_files?: string[]; // Snake case from backend
fileName?: string;
fileSize?: number;
chunksProcessed?: number;
Expand Down
Loading