@inixiative/atlas 0.4.0 → 0.4.1
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/package.json +2 -2
- package/src/commands/generate.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inixiative/atlas",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The map of the codebase — @atlas code annotations + a seam registry + a drift-proof MAP.md. A map that can only assert what is mechanically true.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@biomejs/biome": "2.5.2",
|
|
56
|
-
"@inixiative/config": "^0.5.
|
|
56
|
+
"@inixiative/config": "^0.5.115",
|
|
57
57
|
"@types/bun": "1.4.2",
|
|
58
58
|
"lefthook": "2.1.9",
|
|
59
59
|
"typescript": "6.0.3"
|
package/src/commands/generate.ts
CHANGED
|
@@ -38,12 +38,12 @@ export const generate = (a: Analysis): string => {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
const members = g.conceptToFiles[concept] ?? [];
|
|
41
|
-
const counts
|
|
41
|
+
const counts = new Map<string, number>();
|
|
42
42
|
for (const file of members)
|
|
43
|
-
for (const k of fileKinds[file] ?? []) counts
|
|
44
|
-
const breakdown =
|
|
43
|
+
for (const k of fileKinds[file] ?? []) counts.set(k, (counts.get(k) ?? 0) + 1);
|
|
44
|
+
const breakdown = [...counts.keys()]
|
|
45
45
|
.sort()
|
|
46
|
-
.map((k) => `${k}(${counts
|
|
46
|
+
.map((k) => `${k}(${counts.get(k)})`)
|
|
47
47
|
.join(', ');
|
|
48
48
|
lines.push(`- files (${members.length})${breakdown ? `: ${breakdown}` : ''}`);
|
|
49
49
|
for (const file of members) lines.push(` - ${file} — ${(fileKinds[file] ?? []).join(', ')}`);
|