gitnexus 1.1.1 → 1.1.2

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.
@@ -1,126 +1,126 @@
1
- ---
2
- name: gitnexus-exploring
3
- description: Navigate unfamiliar code using GitNexus knowledge graph
4
- ---
5
-
6
- # Exploring Codebases
7
-
8
- ## Quick Start
9
- ```
10
- 0. READ gitnexus://repos → Discover indexed repos (use repo param if multiple)
11
- 1. If "Index is stale" → gitnexus_analyze({repo: "my-app"})
12
- 2. READ gitnexus://repo/{name}/context → Get codebase overview (~150 tokens)
13
- 3. READ gitnexus://repo/{name}/clusters → See all functional clusters
14
- 4. READ gitnexus://repo/{name}/cluster/{name} → Deep dive on specific cluster
15
- ```
16
-
17
- ## When to Use
18
- - "How does authentication work?"
19
- - "What's the project structure?"
20
- - "Show me the main components"
21
- - "Where is the database logic?"
22
-
23
- ## Workflow Checklist
24
- ```
25
- Exploration Progress:
26
- - [ ] READ gitnexus://repos to discover available repos
27
- - [ ] READ gitnexus://repo/{name}/context for codebase overview
28
- - [ ] READ gitnexus://repo/{name}/clusters to list all clusters
29
- - [ ] Identify the relevant cluster by name
30
- - [ ] READ gitnexus://repo/{name}/cluster/{name} for cluster details
31
- - [ ] Use gitnexus_explore for specific symbols
32
- ```
33
-
34
- ## Resource Reference
35
-
36
- ### gitnexus://repos
37
- Discover all indexed repositories. **Read first.**
38
- ```yaml
39
- repos:
40
- - name: "my-app"
41
- path: "/home/user/my-app"
42
- files: 42
43
- symbols: 918
44
- ```
45
-
46
- ### gitnexus://repo/{name}/context
47
- Codebase overview for a specific repo.
48
- ```yaml
49
- project: my-app
50
- stats:
51
- files: 42
52
- symbols: 918
53
- clusters: 12
54
- processes: 45
55
- tools_available: [list_repos, search, explore, impact, overview, cypher]
56
- ```
57
-
58
- ### gitnexus://repo/{name}/clusters
59
- All functional clusters with cohesion scores.
60
- ```yaml
61
- clusters:
62
- - name: "Auth"
63
- symbols: 47
64
- cohesion: 92%
65
- - name: "Database"
66
- symbols: 32
67
- cohesion: 88%
68
- ```
69
-
70
- ### gitnexus://repo/{name}/cluster/{clusterName}
71
- Members of a specific cluster.
72
- ```yaml
73
- name: Auth
74
- symbols: 47
75
- cohesion: 92%
76
- members:
77
- - name: validateUser
78
- type: Function
79
- file: src/auth/validator.ts
80
- ```
81
-
82
- ### gitnexus://repo/{name}/process/{processName}
83
- Full execution trace.
84
- ```yaml
85
- name: LoginFlow
86
- type: cross_community
87
- steps:
88
- 1: handleLogin (src/auth/handler.ts)
89
- 2: validateUser (src/auth/validator.ts)
90
- 3: createSession (src/auth/session.ts)
91
- ```
92
-
93
- ## Tool Reference (When Resources Aren't Enough)
94
-
95
- ### gitnexus_explore
96
- For detailed symbol context with callers/callees:
97
- ```
98
- gitnexus_explore({name: "validateUser", type: "symbol", repo: "my-app"})
99
- → Callers: loginHandler, apiMiddleware
100
- → Callees: checkToken, getUserById
101
- ```
102
-
103
- ### gitnexus_search
104
- For finding code by query:
105
- ```
106
- gitnexus_search({query: "payment validation", depth: "full", repo: "my-app"})
107
- ```
108
-
109
- ## Example: "How does payment processing work?"
110
-
111
- ```
112
- 1. READ gitnexus://repos
113
- → Repos: my-app (918 symbols)
114
-
115
- 2. READ gitnexus://repo/my-app/context
116
- → 918 symbols, 12 clusters
117
-
118
- 3. READ gitnexus://repo/my-app/clusters
119
- → Clusters: Auth, Payment, Database, API...
120
-
121
- 4. READ gitnexus://repo/my-app/cluster/Payment
122
- → Members: processPayment, validateCard, PaymentService
123
-
124
- 5. READ gitnexus://repo/my-app/process/CheckoutFlow
125
- → handleCheckout → validateCart → processPayment → sendConfirmation
126
- ```
1
+ ---
2
+ name: gitnexus-exploring
3
+ description: Navigate unfamiliar code using GitNexus knowledge graph
4
+ ---
5
+
6
+ # Exploring Codebases
7
+
8
+ ## Quick Start
9
+ ```
10
+ 0. READ gitnexus://repos → Discover indexed repos (use repo param if multiple)
11
+ 1. If "Index is stale" → gitnexus_analyze({repo: "my-app"})
12
+ 2. READ gitnexus://repo/{name}/context → Get codebase overview (~150 tokens)
13
+ 3. READ gitnexus://repo/{name}/clusters → See all functional clusters
14
+ 4. READ gitnexus://repo/{name}/cluster/{name} → Deep dive on specific cluster
15
+ ```
16
+
17
+ ## When to Use
18
+ - "How does authentication work?"
19
+ - "What's the project structure?"
20
+ - "Show me the main components"
21
+ - "Where is the database logic?"
22
+
23
+ ## Workflow Checklist
24
+ ```
25
+ Exploration Progress:
26
+ - [ ] READ gitnexus://repos to discover available repos
27
+ - [ ] READ gitnexus://repo/{name}/context for codebase overview
28
+ - [ ] READ gitnexus://repo/{name}/clusters to list all clusters
29
+ - [ ] Identify the relevant cluster by name
30
+ - [ ] READ gitnexus://repo/{name}/cluster/{name} for cluster details
31
+ - [ ] Use gitnexus_explore for specific symbols
32
+ ```
33
+
34
+ ## Resource Reference
35
+
36
+ ### gitnexus://repos
37
+ Discover all indexed repositories. **Read first.**
38
+ ```yaml
39
+ repos:
40
+ - name: "my-app"
41
+ path: "/home/user/my-app"
42
+ files: 42
43
+ symbols: 918
44
+ ```
45
+
46
+ ### gitnexus://repo/{name}/context
47
+ Codebase overview for a specific repo.
48
+ ```yaml
49
+ project: my-app
50
+ stats:
51
+ files: 42
52
+ symbols: 918
53
+ clusters: 12
54
+ processes: 45
55
+ tools_available: [list_repos, search, explore, impact, overview, cypher]
56
+ ```
57
+
58
+ ### gitnexus://repo/{name}/clusters
59
+ All functional clusters with cohesion scores.
60
+ ```yaml
61
+ clusters:
62
+ - name: "Auth"
63
+ symbols: 47
64
+ cohesion: 92%
65
+ - name: "Database"
66
+ symbols: 32
67
+ cohesion: 88%
68
+ ```
69
+
70
+ ### gitnexus://repo/{name}/cluster/{clusterName}
71
+ Members of a specific cluster.
72
+ ```yaml
73
+ name: Auth
74
+ symbols: 47
75
+ cohesion: 92%
76
+ members:
77
+ - name: validateUser
78
+ type: Function
79
+ file: src/auth/validator.ts
80
+ ```
81
+
82
+ ### gitnexus://repo/{name}/process/{processName}
83
+ Full execution trace.
84
+ ```yaml
85
+ name: LoginFlow
86
+ type: cross_community
87
+ steps:
88
+ 1: handleLogin (src/auth/handler.ts)
89
+ 2: validateUser (src/auth/validator.ts)
90
+ 3: createSession (src/auth/session.ts)
91
+ ```
92
+
93
+ ## Tool Reference (When Resources Aren't Enough)
94
+
95
+ ### gitnexus_explore
96
+ For detailed symbol context with callers/callees:
97
+ ```
98
+ gitnexus_explore({name: "validateUser", type: "symbol", repo: "my-app"})
99
+ → Callers: loginHandler, apiMiddleware
100
+ → Callees: checkToken, getUserById
101
+ ```
102
+
103
+ ### gitnexus_search
104
+ For finding code by query:
105
+ ```
106
+ gitnexus_search({query: "payment validation", depth: "full", repo: "my-app"})
107
+ ```
108
+
109
+ ## Example: "How does payment processing work?"
110
+
111
+ ```
112
+ 1. READ gitnexus://repos
113
+ → Repos: my-app (918 symbols)
114
+
115
+ 2. READ gitnexus://repo/my-app/context
116
+ → 918 symbols, 12 clusters
117
+
118
+ 3. READ gitnexus://repo/my-app/clusters
119
+ → Clusters: Auth, Payment, Database, API...
120
+
121
+ 4. READ gitnexus://repo/my-app/cluster/Payment
122
+ → Members: processPayment, validateCard, PaymentService
123
+
124
+ 5. READ gitnexus://repo/my-app/process/CheckoutFlow
125
+ → handleCheckout → validateCart → processPayment → sendConfirmation
126
+ ```
@@ -1,117 +1,117 @@
1
- ---
2
- name: gitnexus-impact-analysis
3
- description: Analyze blast radius before making code changes
4
- ---
5
-
6
- # Impact Analysis
7
-
8
- ## Quick Start
9
- ```
10
- 0. READ gitnexus://repos → Discover indexed repos
11
- 1. If "Index is stale" → gitnexus_analyze({repo: "my-app"})
12
- 2. gitnexus_impact({target, direction: "upstream", repo: "my-app"}) → What depends on this
13
- 3. READ gitnexus://repo/my-app/clusters → Check affected areas
14
- 4. READ gitnexus://repo/my-app/processes → Affected execution flows
15
- ```
16
-
17
- ## When to Use
18
- - "Is it safe to change this function?"
19
- - "What will break if I modify X?"
20
- - "Show me the blast radius"
21
- - "Who uses this code?"
22
-
23
- ## Understanding Output
24
-
25
- | Depth | Risk Level | Meaning |
26
- |-------|-----------|---------|
27
- | d=1 | WILL BREAK | Direct callers/importers |
28
- | d=2 | LIKELY AFFECTED | Indirect dependencies |
29
- | d=3 | MAY NEED TESTING | Transitive effects |
30
-
31
- ## Workflow Checklist
32
- ```
33
- Impact Analysis:
34
- - [ ] READ gitnexus://repos to find the right repo
35
- - [ ] gitnexus_impact(target, "upstream", repo) to find dependents
36
- - [ ] READ gitnexus://repo/{name}/clusters to understand affected areas
37
- - [ ] Check high-confidence (>0.8) dependencies first
38
- - [ ] Count affected clusters (cross-cutting = higher risk)
39
- - [ ] If >10 processes affected, consider splitting change
40
- ```
41
-
42
- ## Resource Reference
43
-
44
- ### gitnexus://repo/{name}/clusters
45
- Check which clusters might be affected:
46
- ```yaml
47
- clusters:
48
- - name: Auth
49
- symbols: 47
50
- - name: API
51
- symbols: 32
52
- ```
53
-
54
- ### gitnexus://repo/{name}/processes
55
- Find which processes touch the target:
56
- ```yaml
57
- processes:
58
- - name: LoginFlow
59
- type: cross_community
60
- steps: 5
61
- ```
62
-
63
- ## Tool Reference
64
-
65
- ### gitnexus_impact
66
- Analyze blast radius:
67
- ```
68
- gitnexus_impact({
69
- target: "validateUser",
70
- direction: "upstream",
71
- minConfidence: 0.8,
72
- maxDepth: 3,
73
- repo: "my-app"
74
- })
75
-
76
- → d=1 (WILL BREAK):
77
- - loginHandler (src/auth/login.ts:42) [CALLS, 100%]
78
- - apiMiddleware (src/api/middleware.ts:15) [CALLS, 100%]
79
-
80
- → d=2 (LIKELY AFFECTED):
81
- - authRouter (src/routes/auth.ts:22) [CALLS, 95%]
82
-
83
- → Affected Processes: LoginFlow, TokenRefresh
84
- → Risk: MEDIUM (3 processes)
85
- ```
86
-
87
- ## Risk Assessment
88
-
89
- | Affected | Risk |
90
- |----------|------|
91
- | <5 symbols, 1 cluster | LOW |
92
- | 5-15 symbols, 1-2 clusters | MEDIUM |
93
- | >15 symbols or 3+ clusters | HIGH |
94
- | Critical path (auth, payments) | CRITICAL |
95
-
96
- ## Pre-Change Checklist
97
- ```
98
- Before Committing:
99
- - [ ] Run impact analysis
100
- - [ ] Review all d=1 (WILL BREAK) items
101
- - [ ] Verify test coverage for affected processes
102
- - [ ] If risk > MEDIUM, get code review
103
- - [ ] If cross-cluster, coordinate with other teams
104
- ```
105
-
106
- ## Example: "What breaks if I change validateUser?"
107
-
108
- ```
109
- 1. gitnexus_impact({target: "validateUser", direction: "upstream", repo: "my-app"})
110
- → d=1: loginHandler, apiMiddleware
111
- → d=2: authRouter, sessionManager
112
-
113
- 2. READ gitnexus://repo/my-app/clusters
114
- → Auth and API clusters affected
115
-
116
- 3. Decision: 2 direct callers, 2 clusters = MEDIUM risk
117
- ```
1
+ ---
2
+ name: gitnexus-impact-analysis
3
+ description: Analyze blast radius before making code changes
4
+ ---
5
+
6
+ # Impact Analysis
7
+
8
+ ## Quick Start
9
+ ```
10
+ 0. READ gitnexus://repos → Discover indexed repos
11
+ 1. If "Index is stale" → gitnexus_analyze({repo: "my-app"})
12
+ 2. gitnexus_impact({target, direction: "upstream", repo: "my-app"}) → What depends on this
13
+ 3. READ gitnexus://repo/my-app/clusters → Check affected areas
14
+ 4. READ gitnexus://repo/my-app/processes → Affected execution flows
15
+ ```
16
+
17
+ ## When to Use
18
+ - "Is it safe to change this function?"
19
+ - "What will break if I modify X?"
20
+ - "Show me the blast radius"
21
+ - "Who uses this code?"
22
+
23
+ ## Understanding Output
24
+
25
+ | Depth | Risk Level | Meaning |
26
+ |-------|-----------|---------|
27
+ | d=1 | WILL BREAK | Direct callers/importers |
28
+ | d=2 | LIKELY AFFECTED | Indirect dependencies |
29
+ | d=3 | MAY NEED TESTING | Transitive effects |
30
+
31
+ ## Workflow Checklist
32
+ ```
33
+ Impact Analysis:
34
+ - [ ] READ gitnexus://repos to find the right repo
35
+ - [ ] gitnexus_impact(target, "upstream", repo) to find dependents
36
+ - [ ] READ gitnexus://repo/{name}/clusters to understand affected areas
37
+ - [ ] Check high-confidence (>0.8) dependencies first
38
+ - [ ] Count affected clusters (cross-cutting = higher risk)
39
+ - [ ] If >10 processes affected, consider splitting change
40
+ ```
41
+
42
+ ## Resource Reference
43
+
44
+ ### gitnexus://repo/{name}/clusters
45
+ Check which clusters might be affected:
46
+ ```yaml
47
+ clusters:
48
+ - name: Auth
49
+ symbols: 47
50
+ - name: API
51
+ symbols: 32
52
+ ```
53
+
54
+ ### gitnexus://repo/{name}/processes
55
+ Find which processes touch the target:
56
+ ```yaml
57
+ processes:
58
+ - name: LoginFlow
59
+ type: cross_community
60
+ steps: 5
61
+ ```
62
+
63
+ ## Tool Reference
64
+
65
+ ### gitnexus_impact
66
+ Analyze blast radius:
67
+ ```
68
+ gitnexus_impact({
69
+ target: "validateUser",
70
+ direction: "upstream",
71
+ minConfidence: 0.8,
72
+ maxDepth: 3,
73
+ repo: "my-app"
74
+ })
75
+
76
+ → d=1 (WILL BREAK):
77
+ - loginHandler (src/auth/login.ts:42) [CALLS, 100%]
78
+ - apiMiddleware (src/api/middleware.ts:15) [CALLS, 100%]
79
+
80
+ → d=2 (LIKELY AFFECTED):
81
+ - authRouter (src/routes/auth.ts:22) [CALLS, 95%]
82
+
83
+ → Affected Processes: LoginFlow, TokenRefresh
84
+ → Risk: MEDIUM (3 processes)
85
+ ```
86
+
87
+ ## Risk Assessment
88
+
89
+ | Affected | Risk |
90
+ |----------|------|
91
+ | <5 symbols, 1 cluster | LOW |
92
+ | 5-15 symbols, 1-2 clusters | MEDIUM |
93
+ | >15 symbols or 3+ clusters | HIGH |
94
+ | Critical path (auth, payments) | CRITICAL |
95
+
96
+ ## Pre-Change Checklist
97
+ ```
98
+ Before Committing:
99
+ - [ ] Run impact analysis
100
+ - [ ] Review all d=1 (WILL BREAK) items
101
+ - [ ] Verify test coverage for affected processes
102
+ - [ ] If risk > MEDIUM, get code review
103
+ - [ ] If cross-cluster, coordinate with other teams
104
+ ```
105
+
106
+ ## Example: "What breaks if I change validateUser?"
107
+
108
+ ```
109
+ 1. gitnexus_impact({target: "validateUser", direction: "upstream", repo: "my-app"})
110
+ → d=1: loginHandler, apiMiddleware
111
+ → d=2: authRouter, sessionManager
112
+
113
+ 2. READ gitnexus://repo/my-app/clusters
114
+ → Auth and API clusters affected
115
+
116
+ 3. Decision: 2 direct callers, 2 clusters = MEDIUM risk
117
+ ```