@pratik7368patil/anchor-core 0.1.23 → 0.1.25
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 +243 -5
- package/dist/index.js +751 -118
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -375,6 +375,8 @@ type OrgStatus = {
|
|
|
375
375
|
org: string;
|
|
376
376
|
root: string;
|
|
377
377
|
databasePath: string;
|
|
378
|
+
statusReadError?: string;
|
|
379
|
+
activeRun?: OrgRunHeartbeatStatus;
|
|
378
380
|
repoCount: number;
|
|
379
381
|
enabledRepoCount: number;
|
|
380
382
|
clonedRepoCount: number;
|
|
@@ -402,6 +404,127 @@ type OrgStatus = {
|
|
|
402
404
|
lastError?: string;
|
|
403
405
|
}>;
|
|
404
406
|
};
|
|
407
|
+
type OrgRunTimelineStepStatus = "active" | "done" | "skipped" | "warn" | "fail" | "wait";
|
|
408
|
+
type OrgRunTimelineStep = {
|
|
409
|
+
id: string;
|
|
410
|
+
label: string;
|
|
411
|
+
status: OrgRunTimelineStepStatus;
|
|
412
|
+
startedAt: string;
|
|
413
|
+
updatedAt: string;
|
|
414
|
+
completedAt?: string;
|
|
415
|
+
durationMs?: number;
|
|
416
|
+
current?: number;
|
|
417
|
+
total?: number;
|
|
418
|
+
detail?: string;
|
|
419
|
+
};
|
|
420
|
+
type OrgRunTimelineRepoSummary = {
|
|
421
|
+
repo: string;
|
|
422
|
+
status: OrgRunTimelineStepStatus;
|
|
423
|
+
durationMs: number;
|
|
424
|
+
detail?: string;
|
|
425
|
+
};
|
|
426
|
+
type OrgRunTimelineSnapshot = {
|
|
427
|
+
repo?: string;
|
|
428
|
+
repoIndex?: number;
|
|
429
|
+
repoTotal?: number;
|
|
430
|
+
activeStepId?: string;
|
|
431
|
+
steps: OrgRunTimelineStep[];
|
|
432
|
+
recentRepos: OrgRunTimelineRepoSummary[];
|
|
433
|
+
};
|
|
434
|
+
type OrgRunHeartbeat = {
|
|
435
|
+
pid: number;
|
|
436
|
+
command: string;
|
|
437
|
+
org: string;
|
|
438
|
+
repo?: string;
|
|
439
|
+
repoIndex?: number;
|
|
440
|
+
repoTotal?: number;
|
|
441
|
+
phase: string;
|
|
442
|
+
timeline?: OrgRunTimelineSnapshot;
|
|
443
|
+
startedAt: string;
|
|
444
|
+
updatedAt: string;
|
|
445
|
+
};
|
|
446
|
+
type OrgRunHeartbeatStatus = OrgRunHeartbeat & {
|
|
447
|
+
pidRunning: boolean;
|
|
448
|
+
stale: boolean;
|
|
449
|
+
elapsedSeconds: number;
|
|
450
|
+
lastUpdateAgeSeconds: number;
|
|
451
|
+
};
|
|
452
|
+
type OrgLifecycleProgress = {
|
|
453
|
+
stage: "org_sync_started";
|
|
454
|
+
org: string;
|
|
455
|
+
command: string;
|
|
456
|
+
totalRepos: number;
|
|
457
|
+
} | {
|
|
458
|
+
stage: "org_repo_started";
|
|
459
|
+
org: string;
|
|
460
|
+
command: string;
|
|
461
|
+
repo: string;
|
|
462
|
+
current: number;
|
|
463
|
+
total: number;
|
|
464
|
+
} | {
|
|
465
|
+
stage: "org_repo_phase";
|
|
466
|
+
org: string;
|
|
467
|
+
command: string;
|
|
468
|
+
repo: string;
|
|
469
|
+
current: number;
|
|
470
|
+
total: number;
|
|
471
|
+
phase: string;
|
|
472
|
+
detail?: string;
|
|
473
|
+
} | {
|
|
474
|
+
stage: "org_repo_skipped_history";
|
|
475
|
+
org: string;
|
|
476
|
+
command: string;
|
|
477
|
+
repo: string;
|
|
478
|
+
current: number;
|
|
479
|
+
total: number;
|
|
480
|
+
reason: string;
|
|
481
|
+
} | {
|
|
482
|
+
stage: "org_repo_skipped_code";
|
|
483
|
+
org: string;
|
|
484
|
+
command: string;
|
|
485
|
+
repo: string;
|
|
486
|
+
current: number;
|
|
487
|
+
total: number;
|
|
488
|
+
reason: string;
|
|
489
|
+
} | {
|
|
490
|
+
stage: "org_repo_finalizing";
|
|
491
|
+
org: string;
|
|
492
|
+
command: string;
|
|
493
|
+
repo: string;
|
|
494
|
+
current: number;
|
|
495
|
+
total: number;
|
|
496
|
+
} | {
|
|
497
|
+
stage: "org_repo_completed";
|
|
498
|
+
org: string;
|
|
499
|
+
command: string;
|
|
500
|
+
repo: string;
|
|
501
|
+
current: number;
|
|
502
|
+
total: number;
|
|
503
|
+
skippedHistory: boolean;
|
|
504
|
+
skippedCode: boolean;
|
|
505
|
+
prsIndexed: number;
|
|
506
|
+
codeFilesIndexed: number;
|
|
507
|
+
durationMs: number;
|
|
508
|
+
error?: string;
|
|
509
|
+
} | {
|
|
510
|
+
stage: "org_graph_skipped";
|
|
511
|
+
org: string;
|
|
512
|
+
command: string;
|
|
513
|
+
reason: string;
|
|
514
|
+
} | {
|
|
515
|
+
stage: "org_sync_completed";
|
|
516
|
+
org: string;
|
|
517
|
+
command: string;
|
|
518
|
+
totalRepos: number;
|
|
519
|
+
succeededRepos: number;
|
|
520
|
+
failedRepos: number;
|
|
521
|
+
durationMs: number;
|
|
522
|
+
} | {
|
|
523
|
+
stage: "org_sync_failed";
|
|
524
|
+
org: string;
|
|
525
|
+
command: string;
|
|
526
|
+
error: string;
|
|
527
|
+
};
|
|
405
528
|
type OrgGraphProgress = {
|
|
406
529
|
stage: "loading_package_manifests";
|
|
407
530
|
org: string;
|
|
@@ -552,6 +675,13 @@ type FetchPullRequestsProgress = {
|
|
|
552
675
|
matchedMergedPullRequests: number;
|
|
553
676
|
pageSize: number;
|
|
554
677
|
resetAt?: string | null;
|
|
678
|
+
} | {
|
|
679
|
+
stage: "github_graphql_retry";
|
|
680
|
+
repo: string;
|
|
681
|
+
attempt: number;
|
|
682
|
+
maxAttempts: number;
|
|
683
|
+
waitMs: number;
|
|
684
|
+
reason: string;
|
|
555
685
|
} | {
|
|
556
686
|
stage: "github_rate_limited";
|
|
557
687
|
repo: string;
|
|
@@ -578,6 +708,7 @@ type IndexPullRequestsProgress = {
|
|
|
578
708
|
total: number;
|
|
579
709
|
prNumber: number;
|
|
580
710
|
wisdomUnitsCreated: number;
|
|
711
|
+
regressionEventsCreated: number;
|
|
581
712
|
};
|
|
582
713
|
type CodeIndexProgress = {
|
|
583
714
|
stage: "discovering_code_files";
|
|
@@ -600,12 +731,91 @@ type CodeIndexProgress = {
|
|
|
600
731
|
total: number;
|
|
601
732
|
filePath: string;
|
|
602
733
|
chunks: number;
|
|
734
|
+
} | {
|
|
735
|
+
stage: "building_architecture_imports";
|
|
736
|
+
repo: string;
|
|
737
|
+
current: number;
|
|
738
|
+
total: number;
|
|
739
|
+
filePath?: string;
|
|
740
|
+
imports: number;
|
|
741
|
+
} | {
|
|
742
|
+
stage: "building_architecture_components";
|
|
743
|
+
repo: string;
|
|
744
|
+
current: number;
|
|
745
|
+
total: number;
|
|
746
|
+
filePath?: string;
|
|
747
|
+
components: number;
|
|
748
|
+
} | {
|
|
749
|
+
stage: "building_architecture_patterns";
|
|
750
|
+
repo: string;
|
|
751
|
+
current: number;
|
|
752
|
+
total: number;
|
|
753
|
+
area?: ArchitectureArea;
|
|
754
|
+
patterns: number;
|
|
603
755
|
} | {
|
|
604
756
|
stage: "indexed_architecture";
|
|
605
757
|
repo: string;
|
|
606
758
|
components: number;
|
|
607
759
|
patterns: number;
|
|
608
760
|
imports: number;
|
|
761
|
+
} | {
|
|
762
|
+
stage: "writing_code_index";
|
|
763
|
+
repo: string;
|
|
764
|
+
phase: string;
|
|
765
|
+
} | {
|
|
766
|
+
stage: "deleting_existing_code_index";
|
|
767
|
+
repo: string;
|
|
768
|
+
chunks: number;
|
|
769
|
+
patterns: number;
|
|
770
|
+
} | {
|
|
771
|
+
stage: "writing_code_files";
|
|
772
|
+
repo: string;
|
|
773
|
+
current: number;
|
|
774
|
+
total: number;
|
|
775
|
+
filePath?: string;
|
|
776
|
+
} | {
|
|
777
|
+
stage: "writing_code_chunks";
|
|
778
|
+
repo: string;
|
|
779
|
+
current: number;
|
|
780
|
+
total: number;
|
|
781
|
+
filePath?: string;
|
|
782
|
+
chunks: number;
|
|
783
|
+
} | {
|
|
784
|
+
stage: "writing_test_awareness";
|
|
785
|
+
repo: string;
|
|
786
|
+
current: number;
|
|
787
|
+
total: number;
|
|
788
|
+
kind: "test_files" | "test_links";
|
|
789
|
+
} | {
|
|
790
|
+
stage: "writing_architecture_data";
|
|
791
|
+
repo: string;
|
|
792
|
+
current: number;
|
|
793
|
+
total: number;
|
|
794
|
+
kind: "imports" | "components" | "patterns";
|
|
795
|
+
} | {
|
|
796
|
+
stage: "writing_architecture_map_edges";
|
|
797
|
+
repo: string;
|
|
798
|
+
current: number;
|
|
799
|
+
total: number;
|
|
800
|
+
edges: number;
|
|
801
|
+
} | {
|
|
802
|
+
stage: "refreshing_test_commands";
|
|
803
|
+
repo: string;
|
|
804
|
+
current: number;
|
|
805
|
+
total: number;
|
|
806
|
+
phase: "detecting" | "writing";
|
|
807
|
+
commands: number;
|
|
808
|
+
} | {
|
|
809
|
+
stage: "completed_code_index";
|
|
810
|
+
repo: string;
|
|
811
|
+
files: number;
|
|
812
|
+
chunks: number;
|
|
813
|
+
skippedFiles: number;
|
|
814
|
+
testFiles: number;
|
|
815
|
+
testLinks: number;
|
|
816
|
+
architectureComponents: number;
|
|
817
|
+
architecturePatterns: number;
|
|
818
|
+
architectureImports: number;
|
|
609
819
|
};
|
|
610
820
|
type IndexSummary = {
|
|
611
821
|
indexedPrs: number;
|
|
@@ -843,8 +1053,12 @@ declare function sanitizeHistoricalText(text: string): string;
|
|
|
843
1053
|
declare function redactedHistoricalText(text: string): string;
|
|
844
1054
|
|
|
845
1055
|
type AnchorDatabase = Database.Database;
|
|
1056
|
+
type CodeIndexWriteOptions = {
|
|
1057
|
+
onProgress?: (progress: CodeIndexProgress) => void;
|
|
1058
|
+
};
|
|
846
1059
|
declare function defaultDatabasePath(cwd: string): string;
|
|
847
1060
|
declare function openAnchorDatabase(cwd: string, databasePath?: string): AnchorDatabase;
|
|
1061
|
+
declare function openAnchorDatabaseReadOnly(databasePath: string): AnchorDatabase;
|
|
848
1062
|
declare function initializeSchema(db: AnchorDatabase): void;
|
|
849
1063
|
declare function checkSchema(db: AnchorDatabase): boolean;
|
|
850
1064
|
declare function ensureRepository(db: AnchorDatabase, fullName: string): number;
|
|
@@ -869,7 +1083,7 @@ declare function upsertPullRequest(db: AnchorDatabase, pr: PullRequestRecord, wi
|
|
|
869
1083
|
wisdom: number;
|
|
870
1084
|
regressions: number;
|
|
871
1085
|
};
|
|
872
|
-
declare function replaceCodeIndex(db: AnchorDatabase, repo: string, codeFiles: CodeFileRecord[], codeChunks: CodeChunk[], skippedFiles: number, cwd: string, architecture?: ArchitectureIndexData): CodeIndexSummary;
|
|
1086
|
+
declare function replaceCodeIndex(db: AnchorDatabase, repo: string, codeFiles: CodeFileRecord[], codeChunks: CodeChunk[], skippedFiles: number, cwd: string, architecture?: ArchitectureIndexData, options?: CodeIndexWriteOptions): CodeIndexSummary;
|
|
873
1087
|
declare function recordIndexRun(db: AnchorDatabase, run: IndexRunRecord): void;
|
|
874
1088
|
declare function getIndexStatus(cwd: string, githubTokenConfigured?: boolean, databasePath?: string): IndexStatus;
|
|
875
1089
|
declare function getWisdomCategoryCounts(db: AnchorDatabase): Record<WisdomCategory, number>;
|
|
@@ -888,9 +1102,12 @@ declare function chunkCodeFile(file: ChunkableCodeFile, options?: {
|
|
|
888
1102
|
overlapLines?: number;
|
|
889
1103
|
}): CodeChunk[];
|
|
890
1104
|
|
|
1105
|
+
type BuildArchitectureIndexOptions = {
|
|
1106
|
+
onProgress?: (progress: CodeIndexProgress) => void;
|
|
1107
|
+
};
|
|
891
1108
|
declare function classifyArchitectureArea(filePath: string, language?: string, content?: string): ArchitectureArea;
|
|
892
1109
|
declare function extractCodeImports(sourcePath: string, content: string, codePaths: Set<string>, repo?: string): CodeImport[];
|
|
893
|
-
declare function buildArchitectureIndex(repo: string, files: ChunkableCodeFile[], chunks: CodeChunk[]): ArchitectureIndexData;
|
|
1110
|
+
declare function buildArchitectureIndex(repo: string, files: ChunkableCodeFile[], chunks: CodeChunk[], options?: BuildArchitectureIndexOptions): ArchitectureIndexData;
|
|
894
1111
|
|
|
895
1112
|
declare const DEFAULT_MAX_CODE_FILE_BYTES: number;
|
|
896
1113
|
type DiscoveredCodeFile = CodeFileRecord & {
|
|
@@ -1002,7 +1219,9 @@ declare function planTask(db: AnchorDatabase, cwd: string, input: AnchorContextI
|
|
|
1002
1219
|
|
|
1003
1220
|
declare function detectTestCommandsForFile(db: AnchorDatabase, cwd: string, filePath: string): TestCommand[];
|
|
1004
1221
|
declare function detectTestCommands(db: AnchorDatabase, cwd: string, files?: string[]): TestCommand[];
|
|
1005
|
-
declare function refreshTestCommands(db: AnchorDatabase, cwd: string, repo: string, files?: string[]
|
|
1222
|
+
declare function refreshTestCommands(db: AnchorDatabase, cwd: string, repo: string, files?: string[], options?: {
|
|
1223
|
+
onProgress?: (progress: CodeIndexProgress) => void;
|
|
1224
|
+
}): TestCommand[];
|
|
1006
1225
|
|
|
1007
1226
|
type OnboardingInput = {
|
|
1008
1227
|
file?: string;
|
|
@@ -1224,6 +1443,12 @@ type GitHubGraphQLResponse<T> = {
|
|
|
1224
1443
|
data: T;
|
|
1225
1444
|
headers: Record<string, string | number | undefined>;
|
|
1226
1445
|
};
|
|
1446
|
+
type GitHubGraphQLTransientRetry = {
|
|
1447
|
+
attempt: number;
|
|
1448
|
+
maxAttempts: number;
|
|
1449
|
+
waitMs: number;
|
|
1450
|
+
reason: string;
|
|
1451
|
+
};
|
|
1227
1452
|
declare class GitHubGraphQLError extends Error {
|
|
1228
1453
|
readonly status: number;
|
|
1229
1454
|
readonly response: {
|
|
@@ -1243,6 +1468,8 @@ declare function createGitHubGraphQLRequester(options: {
|
|
|
1243
1468
|
controller: GitHubRateLimitController;
|
|
1244
1469
|
requestName: string;
|
|
1245
1470
|
maxRetries?: number;
|
|
1471
|
+
maxTransientRetries?: number;
|
|
1472
|
+
onTransientRetry?: (retry: GitHubGraphQLTransientRetry) => void;
|
|
1246
1473
|
}) => Promise<GitHubGraphQLResponse<T>>;
|
|
1247
1474
|
|
|
1248
1475
|
type FetchPullRequestsOptions = {
|
|
@@ -1318,6 +1545,7 @@ type OrgGraphState = {
|
|
|
1318
1545
|
lastError?: string;
|
|
1319
1546
|
};
|
|
1320
1547
|
declare function openOrgDatabase(org: string, baseDir?: string): AnchorDatabase;
|
|
1548
|
+
declare function openOrgDatabaseReadOnly(org: string, baseDir?: string): AnchorDatabase;
|
|
1321
1549
|
declare function syncOrgConfigToDatabase(db: AnchorDatabase, config: AnchorOrgConfig, baseDir?: string): void;
|
|
1322
1550
|
declare function updateOrgRepoState(db: AnchorDatabase, state: OrgRepoCloneState): void;
|
|
1323
1551
|
declare function getOrgRepoState(db: AnchorDatabase, org: string, repo: string): OrgRepoCloneState | undefined;
|
|
@@ -1348,7 +1576,16 @@ declare function getOrgGraphCounts(db: AnchorDatabase, org: string): {
|
|
|
1348
1576
|
apiContracts: number;
|
|
1349
1577
|
apiConsumers: number;
|
|
1350
1578
|
};
|
|
1351
|
-
declare function getOrgStatus(db: AnchorDatabase, config: AnchorOrgConfig, baseDir?: string
|
|
1579
|
+
declare function getOrgStatus(db: AnchorDatabase, config: AnchorOrgConfig, baseDir?: string, options?: {
|
|
1580
|
+
syncConfig?: boolean;
|
|
1581
|
+
activeRun?: OrgRunHeartbeatStatus;
|
|
1582
|
+
statusReadError?: string;
|
|
1583
|
+
}): OrgStatus;
|
|
1584
|
+
|
|
1585
|
+
declare function orgHeartbeatPath(org: string, baseDir?: string): string;
|
|
1586
|
+
declare function writeOrgHeartbeat(heartbeat: OrgRunHeartbeat, baseDir?: string): void;
|
|
1587
|
+
declare function clearOrgHeartbeat(org: string, baseDir?: string): void;
|
|
1588
|
+
declare function readOrgHeartbeat(org: string, baseDir?: string): OrgRunHeartbeatStatus | undefined;
|
|
1352
1589
|
|
|
1353
1590
|
type GitCommandRunner = (command: string, args: string[], options: {
|
|
1354
1591
|
cwd?: string;
|
|
@@ -1459,6 +1696,7 @@ type OrgIndexOptions = {
|
|
|
1459
1696
|
onPrIndexProgress?: (progress: IndexPullRequestsProgress) => void;
|
|
1460
1697
|
onCodeProgress?: (progress: CodeIndexProgress) => void;
|
|
1461
1698
|
onGraphProgress?: (progress: OrgGraphProgress) => void;
|
|
1699
|
+
onLifecycleProgress?: (progress: OrgLifecycleProgress) => void;
|
|
1462
1700
|
};
|
|
1463
1701
|
declare function indexOrgRepos(db: AnchorDatabase, config: AnchorOrgConfig, options?: OrgIndexOptions): Promise<OrgIndexResult>;
|
|
1464
1702
|
|
|
@@ -1521,4 +1759,4 @@ declare function getAnchorIndexHealth(cwd: string): AnchorIndexHealth & {
|
|
|
1521
1759
|
indexStatus: IndexStatus;
|
|
1522
1760
|
};
|
|
1523
1761
|
|
|
1524
|
-
export { ANCHOR_CURSOR_RULE, ANCHOR_EVALS_FILE, ANCHOR_PLAYBOOKS_FILE, type AnchorCiInput, type AnchorContextInput, type AnchorDatabase, type AnchorExplainFileInput, type AnchorIndexHealth, type AnchorOrgConfig, type AnchorOrgRepoConfig, type AnchorReviewDiffInput, type ArchitectureArea, type ArchitectureCheckInput, type ArchitectureComponent, type ArchitectureContextInput, type ArchitectureIndexData, type ArchitectureMap, type ArchitectureMapEdge, type ArchitectureMapFormat, type ArchitectureMapInput, type ArchitectureMapNode, type ArchitecturePattern, type ArchitectureQueryInput, type ChunkableCodeFile, type CodeChunk, type CodeFileDiscoveryResult, type CodeFileRecord, type CodeImport, type CodeIndexProgress, type CodeIndexSummary, type ConfidenceLevel, type CoverageGrade, type CoverageInput, type CoverageReport, type CurrentCodeSnapshot, type CursorMcpConfig, DEFAULT_MAX_CODE_FILE_BYTES, DEMO_CODE_FILES, DEMO_PULL_REQUESTS, DEMO_REPO, type DiscoveredCodeFile, type DoctorCheck, type DoctorOptions, type DoctorReport, type EvidenceRef, type FeedbackEvent, type FeedbackRating, type FetchMergedPullRequestsGraphQLOptions, type FetchPullRequestsOptions, type FetchPullRequestsProgress, type FormattedResult, type FreshnessResult, type FreshnessStatus, type GitCommandRunner, type GitHubFetchBackend, GitHubGraphQLError, type GitHubGraphQLFetch, type GitHubGraphQLFetchCheckpoint, type GitHubGraphQLRateLimitState, type GitHubGraphQLResponse, type GitHubRateLimitController, type GitHubRateLimitErrorLike, type GitHubRateLimitProgress, type GitHubRepo, type GitHubTokenResolution, type GitHubTokenResolverOptions, type GitHubTokenSource, type IndexPullRequestsProgress, type IndexRunRecord, type IndexStatus, type IndexSummary, type LocalEmbeddingProvider, type OnboardingInput, type OnboardingPack, type OrgAnomaly, type OrgAnomalyCategory, type OrgApiConsumer, type OrgCloneProgress, type OrgCloneResult, type OrgCrossRepoEdge, type OrgCrossRepoRelationship, type OrgFormattedResult, type OrgGraphProgress, type OrgGraphResult, type OrgGraphState, type OrgImpactResult, type OrgIndexOptions, type OrgIndexResult, type OrgRepoCloneState, type OrgRepoGroup, type OrgRepoIndexResult, type OrgStatus, type Playbook, type PullRequestComment, type PullRequestCommit, type PullRequestFile, type PullRequestPerson, type PullRequestRecord, type RankedArchitecturePattern, type RankedCodeChunk, type RankedRegressionEvent, type RankedTeamRule, type RankedTestFile, type RankedWisdomUnit, type RebuildOrgGraphOptions, type RegressionEvent, type ReliabilityGate, type ReliabilityGateRejection, type ReliabilityGateResult, type ReliabilityGateStatus, type RetrievalEvalCase, type RetrievalEvalResult, type RetrievalEvalRunResult, type RulesAddInput, type RulesAddResult, type RulesEvidenceCheckResult, type RulesInitResult, type RulesSuggestOptions, SCHEMA_SQL, type SearchHistoryInput, type SemanticStatus, type SourceType, type SuggestedPrompt, TEAM_RULES_FILE, type TaskPlan, type TeamRule, type TeamRuleSuggestion, type TeamRulesValidationResult, type TestCommand, type TestFileRecord, type TestLink, type WatchRefreshInput, type WisdomCategory, type WisdomUnit, addOrgRepoConfig, addRetrievalEval, addTeamRule, anchorMcpEntry, architectureFilesFromDiff, buildAnchorContextResult, buildArchitectureIndex, buildArchitectureMap, buildFtsQuery, buildOnboardingPack, buildOrgContextResult, buildQueryTerms, calculateCoverage, canonicalizeText, categorizeWisdom, checkArchitecture, checkOrgImpact, checkSchema, checkTeamRuleEvidence, chunkCodeFile, chunkHistoricalText, claimKeyFor, clampMaxResults, classifyArchitectureArea, clearGraphQLFetchCheckpoint, clipSentence, cloneOrPullOrgRepo, cloneOrgRepos, confidenceAtLeast, confidenceLevelFor, confidenceRank, confidenceReasonsFor, countValidTeamRules, createGitHubClient, createGitHubGraphQLRequester, defaultDatabasePath, defaultGitCommandRunner, defaultOrgBaseDir, defaultOrgCloneUrl, detectGitHubRepo, detectGitRoot, detectTestCommands, detectTestCommandsForFile, discoverCodeFiles, emptyCodeIndexSummary, ensureAnchorGitExclude, ensureCursorConfig, ensureCursorRule, ensureRepository, ensureTeamRulesFile, evaluateFreshness, evaluateIndexHealth, evaluateReliabilityGate, evidenceForWisdom, explainFile, extractCodeImports, extractCodeSymbols, extractRegressionEvents, extractSymbols, extractWisdomUnits, feedbackAdjustedScore, fetchMergedPullRequests, fetchMergedPullRequestsWithGraphQL, fetchPullRequestDetails, filesFromDiff, findOrgApiConsumers, formatAnchorContext, formatIndexStatus, formatSearchHistory, getAnchorIndexHealth, getArchitectureContext, getArchitectureMapContext, getGitHubRateLimitDelayMs, getGraphQLFetchCheckpoint, getIndexStatus, getLastSyncTime, getOrgArchitectureMap, getOrgGraphCounts, getOrgGraphState, getOrgRepoState, getOrgStatus, getPlaybook, getSemanticStatus, getSuggestedPromptTexts, getSuggestedPrompts, getWisdomCategoryCounts, githubAuthFixMessage, graphQLFetchCheckpointScope, hasHighSignalLanguage, indexCodebase, indexOrgRepos, indexPullRequests, inferTestAwareness, initOrgConfig, initPlaybooks, initRetrievalEvals, initializeSchema, isGitHubGraphQLResourceLimitError, isGitHubRateLimitError, isHardExcludedCodePath, isTestFilePath, listFeedbackEvents, listOrgNames, listPlaybooks, loadCurrentCodeSnapshot, loadOrgConfig, loadTeamRulesFile, maybeLoadOrgConfig, mergeAnchorMcpConfig, normalizePullRequest, openAnchorDatabase, openOrgDatabase, orgCloneStateFromResult, orgConfigPath, orgDatabasePath, orgRepoLocalPath, orgReposRoot, orgRoot, paginateWithGitHubRateLimit, parseGitHubRemote, planTask, plannedOrgCloneCommands, rankArchitecturePatterns, rankCodeChunks, rankRegressionEvents, rankRelevantTests, rankTeamRules, rankWisdomUnits, rebuildOrgGraph, recordFeedback, recordIndexRun, recordOrgGraphState, recordOrgIndexRun, redactSecrets, redactedHistoricalText, refreshTestCommands, refreshWatchIndex, removeOrgRepoConfig, replaceCodeIndex, repoAliasFromFullName, requestWithGitHubRateLimit, resolveGitHubToken, resolveOrgForTool, resolvePullRequestDetailConcurrency, resolvePullRequestFetchLimit, reviewDiff, runAnchorCi, runDoctor, runRetrievalEvals, sanitizeHistoricalText, saveGraphQLFetchCheckpoint, saveOrgConfig, shouldFallbackToRestAfterGraphQLError, shouldSyncSince, sourceTypeLabel, stripPromptInjection, suggestPlaybooks, suggestTeamRules, syncOrgConfigToDatabase, syncPlaybooksToDatabase, tokenizeSearchText, truncateText, uniqueStrings, updateGitHubGraphQLRateLimitState, updateOrgRepoState, updateSyncState, upsertPullRequest, validateOrgName, validateOrgRepoFullName, validateOrgRepoGroup, validateTeamRulesFile, watchCodebase };
|
|
1762
|
+
export { ANCHOR_CURSOR_RULE, ANCHOR_EVALS_FILE, ANCHOR_PLAYBOOKS_FILE, type AnchorCiInput, type AnchorContextInput, type AnchorDatabase, type AnchorExplainFileInput, type AnchorIndexHealth, type AnchorOrgConfig, type AnchorOrgRepoConfig, type AnchorReviewDiffInput, type ArchitectureArea, type ArchitectureCheckInput, type ArchitectureComponent, type ArchitectureContextInput, type ArchitectureIndexData, type ArchitectureMap, type ArchitectureMapEdge, type ArchitectureMapFormat, type ArchitectureMapInput, type ArchitectureMapNode, type ArchitecturePattern, type ArchitectureQueryInput, type ChunkableCodeFile, type CodeChunk, type CodeFileDiscoveryResult, type CodeFileRecord, type CodeImport, type CodeIndexProgress, type CodeIndexSummary, type ConfidenceLevel, type CoverageGrade, type CoverageInput, type CoverageReport, type CurrentCodeSnapshot, type CursorMcpConfig, DEFAULT_MAX_CODE_FILE_BYTES, DEMO_CODE_FILES, DEMO_PULL_REQUESTS, DEMO_REPO, type DiscoveredCodeFile, type DoctorCheck, type DoctorOptions, type DoctorReport, type EvidenceRef, type FeedbackEvent, type FeedbackRating, type FetchMergedPullRequestsGraphQLOptions, type FetchPullRequestsOptions, type FetchPullRequestsProgress, type FormattedResult, type FreshnessResult, type FreshnessStatus, type GitCommandRunner, type GitHubFetchBackend, GitHubGraphQLError, type GitHubGraphQLFetch, type GitHubGraphQLFetchCheckpoint, type GitHubGraphQLRateLimitState, type GitHubGraphQLResponse, type GitHubGraphQLTransientRetry, type GitHubRateLimitController, type GitHubRateLimitErrorLike, type GitHubRateLimitProgress, type GitHubRepo, type GitHubTokenResolution, type GitHubTokenResolverOptions, type GitHubTokenSource, type IndexPullRequestsProgress, type IndexRunRecord, type IndexStatus, type IndexSummary, type LocalEmbeddingProvider, type OnboardingInput, type OnboardingPack, type OrgAnomaly, type OrgAnomalyCategory, type OrgApiConsumer, type OrgCloneProgress, type OrgCloneResult, type OrgCrossRepoEdge, type OrgCrossRepoRelationship, type OrgFormattedResult, type OrgGraphProgress, type OrgGraphResult, type OrgGraphState, type OrgImpactResult, type OrgIndexOptions, type OrgIndexResult, type OrgLifecycleProgress, type OrgRepoCloneState, type OrgRepoGroup, type OrgRepoIndexResult, type OrgRunHeartbeat, type OrgRunHeartbeatStatus, type OrgRunTimelineRepoSummary, type OrgRunTimelineSnapshot, type OrgRunTimelineStep, type OrgRunTimelineStepStatus, type OrgStatus, type Playbook, type PullRequestComment, type PullRequestCommit, type PullRequestFile, type PullRequestPerson, type PullRequestRecord, type RankedArchitecturePattern, type RankedCodeChunk, type RankedRegressionEvent, type RankedTeamRule, type RankedTestFile, type RankedWisdomUnit, type RebuildOrgGraphOptions, type RegressionEvent, type ReliabilityGate, type ReliabilityGateRejection, type ReliabilityGateResult, type ReliabilityGateStatus, type RetrievalEvalCase, type RetrievalEvalResult, type RetrievalEvalRunResult, type RulesAddInput, type RulesAddResult, type RulesEvidenceCheckResult, type RulesInitResult, type RulesSuggestOptions, SCHEMA_SQL, type SearchHistoryInput, type SemanticStatus, type SourceType, type SuggestedPrompt, TEAM_RULES_FILE, type TaskPlan, type TeamRule, type TeamRuleSuggestion, type TeamRulesValidationResult, type TestCommand, type TestFileRecord, type TestLink, type WatchRefreshInput, type WisdomCategory, type WisdomUnit, addOrgRepoConfig, addRetrievalEval, addTeamRule, anchorMcpEntry, architectureFilesFromDiff, buildAnchorContextResult, buildArchitectureIndex, buildArchitectureMap, buildFtsQuery, buildOnboardingPack, buildOrgContextResult, buildQueryTerms, calculateCoverage, canonicalizeText, categorizeWisdom, checkArchitecture, checkOrgImpact, checkSchema, checkTeamRuleEvidence, chunkCodeFile, chunkHistoricalText, claimKeyFor, clampMaxResults, classifyArchitectureArea, clearGraphQLFetchCheckpoint, clearOrgHeartbeat, clipSentence, cloneOrPullOrgRepo, cloneOrgRepos, confidenceAtLeast, confidenceLevelFor, confidenceRank, confidenceReasonsFor, countValidTeamRules, createGitHubClient, createGitHubGraphQLRequester, defaultDatabasePath, defaultGitCommandRunner, defaultOrgBaseDir, defaultOrgCloneUrl, detectGitHubRepo, detectGitRoot, detectTestCommands, detectTestCommandsForFile, discoverCodeFiles, emptyCodeIndexSummary, ensureAnchorGitExclude, ensureCursorConfig, ensureCursorRule, ensureRepository, ensureTeamRulesFile, evaluateFreshness, evaluateIndexHealth, evaluateReliabilityGate, evidenceForWisdom, explainFile, extractCodeImports, extractCodeSymbols, extractRegressionEvents, extractSymbols, extractWisdomUnits, feedbackAdjustedScore, fetchMergedPullRequests, fetchMergedPullRequestsWithGraphQL, fetchPullRequestDetails, filesFromDiff, findOrgApiConsumers, formatAnchorContext, formatIndexStatus, formatSearchHistory, getAnchorIndexHealth, getArchitectureContext, getArchitectureMapContext, getGitHubRateLimitDelayMs, getGraphQLFetchCheckpoint, getIndexStatus, getLastSyncTime, getOrgArchitectureMap, getOrgGraphCounts, getOrgGraphState, getOrgRepoState, getOrgStatus, getPlaybook, getSemanticStatus, getSuggestedPromptTexts, getSuggestedPrompts, getWisdomCategoryCounts, githubAuthFixMessage, graphQLFetchCheckpointScope, hasHighSignalLanguage, indexCodebase, indexOrgRepos, indexPullRequests, inferTestAwareness, initOrgConfig, initPlaybooks, initRetrievalEvals, initializeSchema, isGitHubGraphQLResourceLimitError, isGitHubRateLimitError, isHardExcludedCodePath, isTestFilePath, listFeedbackEvents, listOrgNames, listPlaybooks, loadCurrentCodeSnapshot, loadOrgConfig, loadTeamRulesFile, maybeLoadOrgConfig, mergeAnchorMcpConfig, normalizePullRequest, openAnchorDatabase, openAnchorDatabaseReadOnly, openOrgDatabase, openOrgDatabaseReadOnly, orgCloneStateFromResult, orgConfigPath, orgDatabasePath, orgHeartbeatPath, orgRepoLocalPath, orgReposRoot, orgRoot, paginateWithGitHubRateLimit, parseGitHubRemote, planTask, plannedOrgCloneCommands, rankArchitecturePatterns, rankCodeChunks, rankRegressionEvents, rankRelevantTests, rankTeamRules, rankWisdomUnits, readOrgHeartbeat, rebuildOrgGraph, recordFeedback, recordIndexRun, recordOrgGraphState, recordOrgIndexRun, redactSecrets, redactedHistoricalText, refreshTestCommands, refreshWatchIndex, removeOrgRepoConfig, replaceCodeIndex, repoAliasFromFullName, requestWithGitHubRateLimit, resolveGitHubToken, resolveOrgForTool, resolvePullRequestDetailConcurrency, resolvePullRequestFetchLimit, reviewDiff, runAnchorCi, runDoctor, runRetrievalEvals, sanitizeHistoricalText, saveGraphQLFetchCheckpoint, saveOrgConfig, shouldFallbackToRestAfterGraphQLError, shouldSyncSince, sourceTypeLabel, stripPromptInjection, suggestPlaybooks, suggestTeamRules, syncOrgConfigToDatabase, syncPlaybooksToDatabase, tokenizeSearchText, truncateText, uniqueStrings, updateGitHubGraphQLRateLimitState, updateOrgRepoState, updateSyncState, upsertPullRequest, validateOrgName, validateOrgRepoFullName, validateOrgRepoGroup, validateTeamRulesFile, watchCodebase, writeOrgHeartbeat };
|