Skip to content

Commit acc068a

Browse files
committed
chore: regenerate index with config, isolated modules, polyrepo support
1 parent b790b1b commit acc068a

2 files changed

Lines changed: 103 additions & 61 deletions

File tree

stacklit.json

Lines changed: 89 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "https://stacklit.dev/schema/v1.json",
33
"version": "1",
4-
"generated_at": "2026-04-09T20:34:17Z",
4+
"generated_at": "2026-04-09T20:40:23Z",
55
"stacklit_version": "dev",
6-
"merkle_hash": "df7d8eb9979144c534154a7903c74e2d933a6a4102a3812be1446b7a5401aa8b",
6+
"merkle_hash": "ab5fb49c8c730f92997abf6271d53c85983edfcfec297938fc36dd891124f4fc",
77
"project": {
88
"name": "stacklit",
99
"root": ".",
@@ -13,8 +13,8 @@
1313
"primary_language": "go",
1414
"languages": {
1515
"go": {
16-
"files": 46,
17-
"lines": 5306
16+
"files": 48,
17+
"lines": 5631
1818
},
1919
"java": {
2020
"files": 1,
@@ -46,8 +46,8 @@
4646
"entrypoints": [
4747
"cmd/stacklit/main.go"
4848
],
49-
"total_files": 57,
50-
"total_lines": 5522
49+
"total_files": 59,
50+
"total_lines": 5847
5151
},
5252
"modules": {
5353
"assets": {
@@ -85,7 +85,7 @@
8585
"purpose": "Command-line interface",
8686
"language": "go",
8787
"files": 6,
88-
"lines": 241,
88+
"lines": 255,
8989
"file_list": [
9090
"diff.go",
9191
"generate.go",
@@ -111,6 +111,30 @@
111111
],
112112
"activity": "medium"
113113
},
114+
"internal/config": {
115+
"purpose": "Configuration management",
116+
"language": "go",
117+
"files": 2,
118+
"lines": 130,
119+
"file_list": [
120+
"config.go",
121+
"config_test.go"
122+
],
123+
"exports": [
124+
"DefaultConfig() *Config",
125+
"Load(root string) *Config",
126+
"type Config",
127+
"type OutputConfig"
128+
],
129+
"type_defs": {
130+
"Config": "Ignore []string, MaxDepth int, MaxModules int, MaxExports int, Output OutputConfig",
131+
"OutputConfig": "JSON string, Mermaid string, HTML string"
132+
},
133+
"depended_by": [
134+
"internal/engine"
135+
],
136+
"activity": "low"
137+
},
114138
"internal/detect": {
115139
"purpose": "Framework and tool detection",
116140
"language": "go",
@@ -134,20 +158,26 @@
134158
"purpose": "Core orchestration engine",
135159
"language": "go",
136160
"files": 1,
137-
"lines": 438,
161+
"lines": 538,
138162
"file_list": [
139163
"engine.go"
140164
],
141165
"exports": [
142166
"Run(opts Options) (*Result, error)",
167+
"RunMulti(opts MultiOptions) (*MultiResult, error)",
168+
"type MultiOptions",
169+
"type MultiResult",
143170
"type Options",
144171
"type Result"
145172
],
146173
"type_defs": {
174+
"MultiOptions": "ReposFile string, Quiet bool",
175+
"MultiResult": "OutputPath string, RepoCount int, Duration time.Duration",
147176
"Options": "Root string, Workspace string, InstallHook bool, Quiet bool, Summary bool",
148177
"Result": "JSONPath string, HTMLPath string, MermaidPath string, Index *schema.Index, Duration time.Duration"
149178
},
150179
"depends_on": [
180+
"internal/config",
151181
"internal/detect",
152182
"internal/git",
153183
"internal/graph",
@@ -161,7 +191,7 @@
161191
"depended_by": [
162192
"internal/cli"
163193
],
164-
"activity": "medium"
194+
"activity": "high"
165195
},
166196
"internal/git": {
167197
"purpose": "Git integration",
@@ -195,23 +225,25 @@
195225
"purpose": "Dependency graph",
196226
"language": "go",
197227
"files": 2,
198-
"lines": 449,
228+
"lines": 494,
199229
"file_list": [
200230
"graph.go",
201231
"graph_test.go"
202232
],
203233
"exports": [
204-
"Build(files []*parser.FileInfo) *Graph",
234+
"Build(files []*parser.FileInfo, opts BuildOptions) *Graph",
205235
"Edges() []Edge",
206236
"Entrypoints() []string",
237+
"Isolated() []string",
207238
"Module(name string) *Module",
208239
"Modules() []*Module",
209240
"MostDepended() []string",
241+
"type BuildOptions",
210242
"type Edge",
211-
"type Graph",
212-
"type Module"
243+
"type Graph"
213244
],
214245
"type_defs": {
246+
"BuildOptions": "MaxDepth int, MaxModules int",
215247
"Edge": "From string, To string, Count int",
216248
"Module": "Name string, FileCount int, Files []string, Exports []string, TypeDefs map[string]string, DependsOn []string, DependedBy []string, Languages []string, PrimaryLanguage string, LineCount int"
217249
},
@@ -336,7 +368,7 @@
336368
"purpose": "Data schema definitions",
337369
"language": "go",
338370
"files": 1,
339-
"lines": 85,
371+
"lines": 104,
340372
"file_list": [
341373
"schema.go"
342374
],
@@ -349,18 +381,18 @@
349381
"type Index",
350382
"type LangStats",
351383
"type ModuleInfo",
352-
"type Project",
353-
"type Structure"
384+
"type MultiIndex",
385+
"type Project"
354386
],
355387
"type_defs": {
356-
"Architecture": "Pattern string, Summary string",
357-
"Dependencies": "Edges [][]string, Entrypoints []string, MostDepended []string, Isolated []string",
358388
"Hints": "AddFeature string, TestCmd string, EnvVars []string, DoNotTouch []string",
359389
"HotFile": "Path string, Commits90d int",
360390
"Index": "Schema string, Version string, GeneratedAt string, StacklitVersion string, MerkleHash string, Project Project, Tech Tech, Structure Structure, Modules map[string]ModuleInfo, Dependencies Dependenci...",
361391
"LangStats": "Files int, Lines int",
362392
"ModuleInfo": "Purpose string, Language string, Files int, Lines int, FileList []string, Exports []string, TypeDefs map[string]string, DependsOn []string, DependedBy []string, Activity string",
393+
"MultiIndex": "Schema string, Version string, Type string, GeneratedAt string, Repos []RepoSummary",
363394
"Project": "Name string, Root string, Type string, Workspaces []string",
395+
"RepoSummary": "Name string, Path string, PrimaryLanguage string, TotalFiles int, TotalLines int, Modules int, Frameworks []string, Entrypoints []string",
364396
"Structure": "Entrypoints []string, TotalFiles int, TotalLines int, KeyDirectories map[string]string",
365397
"Tech": "PrimaryLanguage string, Languages map[string]LangStats, Frameworks []string"
366398
},
@@ -396,13 +428,13 @@
396428
"purpose": "File system walker",
397429
"language": "go",
398430
"files": 2,
399-
"lines": 274,
431+
"lines": 291,
400432
"file_list": [
401433
"walker.go",
402434
"walker_test.go"
403435
],
404436
"exports": [
405-
"Walk(root string) ([]string, error)"
437+
"Walk(root string, extraIgnore []string) ([]string, error)"
406438
],
407439
"depended_by": [
408440
"internal/cli",
@@ -461,6 +493,10 @@
461493
"internal/cli",
462494
"internal/walker"
463495
],
496+
[
497+
"internal/engine",
498+
"internal/config"
499+
],
464500
[
465501
"internal/engine",
466502
"internal/detect"
@@ -529,43 +565,47 @@
529565
"internal/walker",
530566
"assets",
531567
"internal/cli",
568+
"internal/config",
532569
"internal/detect",
533-
"internal/engine",
534-
"internal/graph"
570+
"internal/engine"
571+
],
572+
"isolated": [
573+
"npm",
574+
"npm/bin"
535575
]
536576
},
537577
"git": {
538578
"hot_files": [
539579
{
540580
"path": "internal/engine/engine.go",
541-
"commits_90d": 10
542-
},
543-
{
544-
"path": "assets/template.html",
545-
"commits_90d": 7
581+
"commits_90d": 11
546582
},
547583
{
548584
"path": "stacklit.json",
549-
"commits_90d": 7
585+
"commits_90d": 8
550586
},
551587
{
552588
"path": "stacklit.mmd",
589+
"commits_90d": 8
590+
},
591+
{
592+
"path": "assets/template.html",
553593
"commits_90d": 7
554594
},
555595
{
556596
"path": "internal/graph/graph.go",
557-
"commits_90d": 5
597+
"commits_90d": 7
558598
},
559599
{
560600
"path": "internal/schema/schema.go",
561-
"commits_90d": 5
601+
"commits_90d": 6
562602
},
563603
{
564-
"path": "go.mod",
565-
"commits_90d": 4
604+
"path": "internal/cli/init.go",
605+
"commits_90d": 5
566606
},
567607
{
568-
"path": "internal/cli/init.go",
608+
"path": "go.mod",
569609
"commits_90d": 4
570610
},
571611
{
@@ -584,6 +624,10 @@
584624
"path": "internal/cli/view.go",
585625
"commits_90d": 3
586626
},
627+
{
628+
"path": "internal/graph/graph_test.go",
629+
"commits_90d": 3
630+
},
587631
{
588632
"path": "internal/parser/golang.go",
589633
"commits_90d": 3
@@ -605,29 +649,25 @@
605649
"commits_90d": 3
606650
},
607651
{
608-
"path": ".gitignore",
609-
"commits_90d": 2
610-
},
611-
{
612-
"path": "Makefile",
613-
"commits_90d": 2
652+
"path": "internal/walker/walker_test.go",
653+
"commits_90d": 3
614654
},
615655
{
616-
"path": "assets/embed.go",
656+
"path": ".gitignore",
617657
"commits_90d": 2
618658
}
619659
],
620660
"recent": [
621-
"stacklit.json",
622-
"stacklit.mmd",
623-
"internal/detect/envvars.go",
661+
"internal/graph/graph_test.go",
662+
"internal/cli/diff.go",
663+
"internal/cli/init.go",
664+
"internal/config/config.go",
665+
"internal/config/config_test.go",
624666
"internal/engine/engine.go",
625667
"internal/graph/graph.go",
626-
"internal/parser/golang.go",
627-
"internal/parser/golang_test.go",
628-
"internal/parser/parser.go",
629668
"internal/schema/schema.go",
630-
"internal/parser/python.go"
669+
"internal/walker/walker.go",
670+
"internal/walker/walker_test.go"
631671
],
632672
"stable": [
633673
".github/workflows/ci.yml",
@@ -638,8 +678,8 @@
638678
"SKILL.md",
639679
"action/action.yml",
640680
"assets/lang-icons.js",
641-
"internal/cli/diff.go",
642-
"internal/cli/serve.go"
681+
"internal/cli/serve.go",
682+
"internal/config/config.go"
643683
]
644684
},
645685
"hints": {

stacklit.mmd

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
graph LR
2-
classDef python fill:#b1bac4,color:#0d1117,stroke:#b1bac4
3-
classDef rust fill:#a5b3bf,color:#0d1117,stroke:#a5b3bf
42
classDef go fill:#e6edf3,color:#0d1117,stroke:#e6edf3
53
classDef javascript fill:#c9d1d9,color:#0d1117,stroke:#c9d1d9
64
classDef java fill:#8b949e,color:#0d1117,stroke:#8b949e
75
classDef typescript fill:#c9d1d9,color:#0d1117,stroke:#c9d1d9
8-
internal_graph["internal/graph\nDependency graph"]:::go
9-
internal_mcp["internal/mcp\nMCP server for AI agents"]:::go
10-
npm_bin["npm/bin\nBin"]:::go
11-
cmd_stacklit["cmd/stacklit\nStacklit"]:::go
12-
internal_renderer["internal/renderer\nOutput renderers"]:::go
13-
internal_walker["internal/walker\nFile system walker"]:::go
14-
assets["assets\nStatic assets"]:::go
6+
classDef python fill:#b1bac4,color:#0d1117,stroke:#b1bac4
7+
classDef rust fill:#a5b3bf,color:#0d1117,stroke:#a5b3bf
158
internal_cli["internal/cli\nCommand-line interface"]:::go
9+
internal_detect["internal/detect\nFramework and tool detection"]:::go
1610
internal_git["internal/git\nGit integration"]:::go
11+
internal_mcp["internal/mcp\nMCP server for AI agents"]:::go
1712
internal_monorepo["internal/monorepo\nMonorepo detection"]:::go
18-
internal_parser["internal/parser\nSource code parsers"]:::go
19-
internal_schema["internal/schema\nData schema definitions"]:::go
13+
internal_config["internal/config\nConfiguration management"]:::go
14+
internal_renderer["internal/renderer\nOutput renderers"]:::go
2015
internal_summary["internal/summary\nAI-powered codebase summaries"]:::go
16+
internal_walker["internal/walker\nFile system walker"]:::go
2117
npm["npm\nNpm"]:::go
22-
internal_detect["internal/detect\nFramework and tool detection"]:::go
18+
assets["assets\nStatic assets"]:::go
2319
internal_engine["internal/engine\nCore orchestration engine"]:::go
20+
internal_parser["internal/parser\nSource code parsers"]:::go
21+
internal_schema["internal/schema\nData schema definitions"]:::go
22+
internal_graph["internal/graph\nDependency graph"]:::go
23+
npm_bin["npm/bin\nBin"]:::go
24+
cmd_stacklit["cmd/stacklit\nStacklit"]:::go
2425
cmd_stacklit --> internal_cli
2526
internal_cli --> internal_engine
2627
internal_cli --> internal_git
2728
internal_cli --> internal_mcp
2829
internal_cli --> internal_renderer
2930
internal_cli --> internal_schema
3031
internal_cli --> internal_walker
32+
internal_engine --> internal_config
3133
internal_engine --> internal_detect
3234
internal_engine --> internal_git
3335
internal_engine --> internal_graph

0 commit comments

Comments
 (0)