@wtdlee/repomap 0.9.0 → 0.10.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/README.md CHANGED
@@ -50,6 +50,7 @@ Powered by [SWC](https://swc.rs/) for blazing-fast AST parsing. Analyze large-sc
50
50
  - **Field details** - View all fields with types and arguments
51
51
  - **Usage tracking** - See where operations are used in components
52
52
  - **Component integration** - Track GraphQL usage through component dependencies
53
+ - **Custom wrapper hooks** - Configurable hook presets/patterns (Apollo/urql/Relay/custom)
53
54
 
54
55
  ### 📊 Data Flow
55
56
  - **Visual diagrams** - Mermaid-generated flowcharts
@@ -425,6 +426,7 @@ export default config;
425
426
  - Auto-generated markdown documentation
426
427
  - Navigation sidebar
427
428
  - Syntax-highlighted code blocks
429
+ - Coverage metrics (parse failures, codegen detection) to prevent silent omissions
428
430
 
429
431
  ## Supported Frameworks
430
432
 
@@ -466,6 +468,7 @@ interface AnalysisResult {
466
468
  timestamp: string;
467
469
  version: string;
468
470
  commitHash: string;
471
+ coverage?: CoverageMetrics;
469
472
  pages: PageInfo[];
470
473
  graphqlOperations: GraphQLOperation[];
471
474
  apiCalls: APICall[];
@@ -476,6 +479,15 @@ interface AnalysisResult {
476
479
  crossRepoLinks: CrossRepoLink[];
477
480
  }
478
481
 
482
+ interface CoverageMetrics {
483
+ tsFilesScanned: number;
484
+ tsParseFailures: number;
485
+ graphqlParseFailures: number;
486
+ codegenFilesDetected: number;
487
+ codegenFilesParsed: number;
488
+ codegenExportsFound: number;
489
+ }
490
+
479
491
  // Report
480
492
  interface DocumentationReport {
481
493
  generatedAt: string;
@@ -1,5 +1,5 @@
1
- import { B as BaseAnalyzer } from '../dataflow-analyzer-CJ2T0cGS.js';
2
- export { D as DataFlowAnalyzer, G as GraphQLAnalyzer, P as PagesAnalyzer } from '../dataflow-analyzer-CJ2T0cGS.js';
1
+ import { B as BaseAnalyzer } from '../dataflow-analyzer-DIUsRpvv.js';
2
+ export { D as DataFlowAnalyzer, G as GraphQLAnalyzer, P as PagesAnalyzer } from '../dataflow-analyzer-DIUsRpvv.js';
3
3
  import { Module, CallExpression } from '@swc/core';
4
4
  import { DataFetchingInfo, RepositoryConfig, AnalysisResult } from '../types.js';
5
5
 
@@ -33,7 +33,7 @@ declare const HOOK_TYPE_MAP: Record<string, DataFetchingInfo['type']>;
33
33
  /**
34
34
  * Keywords that indicate GraphQL usage in a file
35
35
  */
36
- declare const GRAPHQL_INDICATORS: readonly ["Document", "useQuery", "useMutation", "useLazyQuery", "useSuspenseQuery", "useBackgroundQuery", "useSubscription", "Query", "Mutation", "gql", "graphql", "GET_", "FETCH_", "SEARCH_", "CREATE_", "UPDATE_", "DELETE_", "SUBSCRIBE_", "@apollo", "ApolloClient"];
36
+ declare const GRAPHQL_INDICATORS: readonly ["Document", "useQuery", "useMutation", "useLazyQuery", "useSuspenseQuery", "useBackgroundQuery", "useSubscription", "Query", "Mutation", "gql", "graphql", "GET_", "FETCH_", "SEARCH_", "CREATE_", "UPDATE_", "DELETE_", "SUBSCRIBE_", "@apollo", "ApolloClient", "@urql", "urql", "react-relay", "Relay"];
37
37
  /**
38
38
  * Context extracted from a file for GraphQL operation resolution
39
39
  */
@@ -62,23 +62,23 @@ interface ExtractedGraphQLOperation {
62
62
  /**
63
63
  * Check if a hook name is a GraphQL query hook
64
64
  */
65
- declare function isQueryHook(hookName: string): boolean;
65
+ declare function isQueryHook(hookName: string, extraHookPatterns?: string[]): boolean;
66
66
  /**
67
67
  * Check if a hook name is a GraphQL mutation hook
68
68
  */
69
- declare function isMutationHook(hookName: string): boolean;
69
+ declare function isMutationHook(hookName: string, extraHookPatterns?: string[]): boolean;
70
70
  /**
71
71
  * Check if a hook name is a GraphQL subscription hook
72
72
  */
73
- declare function isSubscriptionHook(hookName: string): boolean;
73
+ declare function isSubscriptionHook(hookName: string, extraHookPatterns?: string[]): boolean;
74
74
  /**
75
75
  * Check if a hook name is any GraphQL hook
76
76
  */
77
- declare function isGraphQLHook(hookName: string): boolean;
77
+ declare function isGraphQLHook(hookName: string, extraHookPatterns?: string[]): boolean;
78
78
  /**
79
79
  * Get the data fetching type for a hook
80
80
  */
81
- declare function getHookType(hookName: string): DataFetchingInfo['type'];
81
+ declare function getHookType(hookName: string, extraHookPatterns?: string[]): DataFetchingInfo['type'];
82
82
  /**
83
83
  * Check if content has any GraphQL indicators
84
84
  */
@@ -1 +1 @@
1
- export{e as ALL_GRAPHQL_HOOKS,a as BaseAnalyzer,A as DataFlowAnalyzer,g as GRAPHQL_INDICATORS,c as GRAPHQL_MUTATION_HOOKS,d as GRAPHQL_OTHER_HOOKS,b as GRAPHQL_QUERY_HOOKS,z as GraphQLAnalyzer,f as HOOK_TYPE_MAP,y as PagesAnalyzer,B as RestApiAnalyzer,n as cleanOperationName,r as extractGraphQLContext,w as extractGraphQLOperationsFromFile,s as extractOperationNameFromGqlCall,t as extractOperationNameFromTemplate,p as getCalleeName,x as getHookInfoString,l as getHookType,u as hasGraphQLArgument,m as hasGraphQLIndicators,k as isGraphQLHook,i as isMutationHook,h as isQueryHook,j as isSubscriptionHook,o as parseToAst,v as resolveOperationName,q as traverseAst}from'../chunk-TNUKDIO7.js';
1
+ export{f as ALL_GRAPHQL_HOOKS,a as BaseAnalyzer,B as DataFlowAnalyzer,h as GRAPHQL_INDICATORS,d as GRAPHQL_MUTATION_HOOKS,e as GRAPHQL_OTHER_HOOKS,c as GRAPHQL_QUERY_HOOKS,A as GraphQLAnalyzer,g as HOOK_TYPE_MAP,z as PagesAnalyzer,C as RestApiAnalyzer,o as cleanOperationName,s as extractGraphQLContext,x as extractGraphQLOperationsFromFile,t as extractOperationNameFromGqlCall,u as extractOperationNameFromTemplate,q as getCalleeName,y as getHookInfoString,m as getHookType,v as hasGraphQLArgument,n as hasGraphQLIndicators,l as isGraphQLHook,j as isMutationHook,i as isQueryHook,k as isSubscriptionHook,p as parseToAst,w as resolveOperationName,r as traverseAst}from'../chunk-IGRCLYVZ.js';import'../chunk-ZWRDP37E.js';