@pratik7368patil/anchor-core 0.1.21 → 0.1.23

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 CHANGED
@@ -382,8 +382,13 @@ type OrgStatus = {
382
382
  codeChunkCount: number;
383
383
  wisdomUnitCount: number;
384
384
  crossRepoEdgeCount: number;
385
+ apiContractCount: number;
385
386
  apiConsumerCount: number;
386
387
  anomalyCount: number;
388
+ graphLastBuiltAt?: string;
389
+ graphLastStatus?: "success" | "failed" | "skipped" | "unknown";
390
+ graphLastDurationMs?: number;
391
+ graphLastError?: string;
387
392
  coverageScore: number;
388
393
  coverageGrade: CoverageGrade;
389
394
  coverageReasons: string[];
@@ -397,6 +402,63 @@ type OrgStatus = {
397
402
  lastError?: string;
398
403
  }>;
399
404
  };
405
+ type OrgGraphProgress = {
406
+ stage: "loading_package_manifests";
407
+ org: string;
408
+ totalRepos: number;
409
+ } | {
410
+ stage: "loaded_package_manifests";
411
+ org: string;
412
+ repos: number;
413
+ packageNames: number;
414
+ } | {
415
+ stage: "building_package_edges";
416
+ org: string;
417
+ current: number;
418
+ total: number;
419
+ repo: string;
420
+ edges: number;
421
+ } | {
422
+ stage: "loading_imports";
423
+ org: string;
424
+ } | {
425
+ stage: "building_import_edges";
426
+ org: string;
427
+ current: number;
428
+ total: number;
429
+ sourcePath: string;
430
+ edges: number;
431
+ } | {
432
+ stage: "loading_code_chunks";
433
+ org: string;
434
+ } | {
435
+ stage: "extracting_api_contracts";
436
+ org: string;
437
+ current: number;
438
+ total: number;
439
+ filePath: string;
440
+ contracts: number;
441
+ } | {
442
+ stage: "matching_api_consumers";
443
+ org: string;
444
+ current: number;
445
+ total: number;
446
+ filePath: string;
447
+ matches: number;
448
+ } | {
449
+ stage: "writing_org_graph";
450
+ org: string;
451
+ edges: number;
452
+ apiContracts: number;
453
+ apiConsumers: number;
454
+ } | {
455
+ stage: "completed_org_graph";
456
+ org: string;
457
+ edges: number;
458
+ apiContracts: number;
459
+ apiConsumers: number;
460
+ durationMs: number;
461
+ };
400
462
  type FetchPullRequestsProgress = {
401
463
  stage: "discovering_pull_requests";
402
464
  repo: string;
@@ -498,6 +560,10 @@ type FetchPullRequestsProgress = {
498
560
  reason: string;
499
561
  request: string;
500
562
  attempt: number;
563
+ } | {
564
+ stage: "skipped_pull_request_fetch";
565
+ repo: string;
566
+ reason: string;
501
567
  };
502
568
  type IndexPullRequestsProgress = {
503
569
  stage: "indexing_pull_request";
@@ -1241,6 +1307,16 @@ declare function removeOrgRepoConfig(org: string, repoFullName: string, baseDir?
1241
1307
  declare function listOrgNames(baseDir?: string): string[];
1242
1308
  declare function resolveOrgForTool(org?: string, baseDir?: string): string;
1243
1309
 
1310
+ type OrgGraphState = {
1311
+ org: string;
1312
+ lastBuiltAt?: string;
1313
+ lastStatus?: "success" | "failed" | "skipped" | "unknown";
1314
+ lastDurationMs?: number;
1315
+ edgeCount?: number;
1316
+ apiContractCount?: number;
1317
+ apiConsumerCount?: number;
1318
+ lastError?: string;
1319
+ };
1244
1320
  declare function openOrgDatabase(org: string, baseDir?: string): AnchorDatabase;
1245
1321
  declare function syncOrgConfigToDatabase(db: AnchorDatabase, config: AnchorOrgConfig, baseDir?: string): void;
1246
1322
  declare function updateOrgRepoState(db: AnchorDatabase, state: OrgRepoCloneState): void;
@@ -1256,6 +1332,22 @@ declare function recordOrgIndexRun(db: AnchorDatabase, input: {
1256
1332
  codeFilesIndexed?: number;
1257
1333
  failures?: string[];
1258
1334
  }): void;
1335
+ declare function recordOrgGraphState(db: AnchorDatabase, input: {
1336
+ org: string;
1337
+ status: "success" | "failed" | "skipped" | "unknown";
1338
+ builtAt?: string;
1339
+ durationMs?: number;
1340
+ edgeCount?: number;
1341
+ apiContractCount?: number;
1342
+ apiConsumerCount?: number;
1343
+ error?: string;
1344
+ }): void;
1345
+ declare function getOrgGraphState(db: AnchorDatabase, org: string): OrgGraphState | undefined;
1346
+ declare function getOrgGraphCounts(db: AnchorDatabase, org: string): {
1347
+ edges: number;
1348
+ apiContracts: number;
1349
+ apiConsumers: number;
1350
+ };
1259
1351
  declare function getOrgStatus(db: AnchorDatabase, config: AnchorOrgConfig, baseDir?: string): OrgStatus;
1260
1352
 
1261
1353
  type GitCommandRunner = (command: string, args: string[], options: {
@@ -1269,6 +1361,22 @@ type OrgCloneResult = {
1269
1361
  currentCommit?: string;
1270
1362
  error?: string;
1271
1363
  };
1364
+ type OrgCloneProgress = {
1365
+ stage: "cloning_or_pulling_repo";
1366
+ org: string;
1367
+ repo: string;
1368
+ current: number;
1369
+ total: number;
1370
+ } | {
1371
+ stage: "cloned_or_pulled_repo";
1372
+ org: string;
1373
+ repo: string;
1374
+ current: number;
1375
+ total: number;
1376
+ cloned: boolean;
1377
+ pulled: boolean;
1378
+ error?: string;
1379
+ };
1272
1380
  declare function defaultGitCommandRunner(command: string, args: string[], options?: {
1273
1381
  cwd?: string;
1274
1382
  }): string;
@@ -1291,7 +1399,7 @@ declare function cloneOrgRepos(input: {
1291
1399
  concurrency?: number;
1292
1400
  baseDir?: string;
1293
1401
  runner?: GitCommandRunner;
1294
- onProgress?: (message: string) => void;
1402
+ onProgress?: (progress: OrgCloneProgress) => void;
1295
1403
  }): Promise<OrgCloneResult[]>;
1296
1404
  declare function orgCloneStateFromResult(org: string, repo: AnchorOrgRepoConfig, result: OrgCloneResult): OrgRepoCloneState;
1297
1405
 
@@ -1305,12 +1413,19 @@ type OrgGraphResult = {
1305
1413
  evidence: EvidenceRef[];
1306
1414
  confidence: number;
1307
1415
  }>;
1416
+ durationMs: number;
1417
+ };
1418
+ type RebuildOrgGraphOptions = {
1419
+ baseDir?: string;
1420
+ onProgress?: (progress: OrgGraphProgress) => void;
1308
1421
  };
1309
- declare function rebuildOrgGraph(db: AnchorDatabase, config: AnchorOrgConfig, baseDir?: string): OrgGraphResult;
1422
+ declare function rebuildOrgGraph(db: AnchorDatabase, config: AnchorOrgConfig, baseDirOrOptions?: string | RebuildOrgGraphOptions): OrgGraphResult;
1310
1423
 
1311
1424
  type OrgRepoIndexResult = {
1312
1425
  repo: string;
1313
1426
  skippedCode: boolean;
1427
+ skippedHistory?: boolean;
1428
+ historySkippedReason?: string;
1314
1429
  currentCommit?: string;
1315
1430
  history?: IndexSummary;
1316
1431
  code?: CodeIndexSummary;
@@ -1323,6 +1438,8 @@ type OrgIndexResult = {
1323
1438
  edges: number;
1324
1439
  apiConsumers: number;
1325
1440
  apiContracts: number;
1441
+ skipped?: boolean;
1442
+ error?: string;
1326
1443
  };
1327
1444
  };
1328
1445
  type OrgIndexOptions = {
@@ -1330,15 +1447,18 @@ type OrgIndexOptions = {
1330
1447
  codeOnly?: boolean;
1331
1448
  prsOnly?: boolean;
1332
1449
  force?: boolean;
1450
+ noGraph?: boolean;
1333
1451
  since?: string;
1334
1452
  concurrency?: number;
1335
1453
  token?: string;
1336
1454
  command?: "org index" | "org sync";
1337
1455
  baseDir?: string;
1338
1456
  runner?: GitCommandRunner;
1457
+ fetchPullRequests?: typeof fetchMergedPullRequests;
1339
1458
  onFetchProgress?: (progress: FetchPullRequestsProgress) => void;
1340
1459
  onPrIndexProgress?: (progress: IndexPullRequestsProgress) => void;
1341
1460
  onCodeProgress?: (progress: CodeIndexProgress) => void;
1461
+ onGraphProgress?: (progress: OrgGraphProgress) => void;
1342
1462
  };
1343
1463
  declare function indexOrgRepos(db: AnchorDatabase, config: AnchorOrgConfig, options?: OrgIndexOptions): Promise<OrgIndexResult>;
1344
1464
 
@@ -1401,4 +1521,4 @@ declare function getAnchorIndexHealth(cwd: string): AnchorIndexHealth & {
1401
1521
  indexStatus: IndexStatus;
1402
1522
  };
1403
1523
 
1404
- 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 OrgCloneResult, type OrgCrossRepoEdge, type OrgCrossRepoRelationship, type OrgFormattedResult, 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 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, 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, 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 };
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 };