@forwardimpact/libcoaligned 0.1.1 → 0.1.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardimpact/libcoaligned",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Co-Aligned architecture checks — enforce instruction-layer length caps and JTBD invariants across the repo.",
5
5
  "keywords": [
6
6
  "coaligned",
@@ -102,15 +102,25 @@ async function findSkillReferences(root, skillDirs) {
102
102
  async function buildLayers(root) {
103
103
  const claudeDirs = await findByName(root, ".claude", "dir");
104
104
  const skillDirs = await findSkillDirs(root, claudeDirs);
105
+ const allClaude = await findByName(root, "CLAUDE.md", "file");
106
+ const rootClaude = allClaude.filter((p) => p === "CLAUDE.md");
107
+ const subdirClaude = allClaude.filter((p) => p !== "CLAUDE.md");
105
108
  return {
106
109
  skillDirs,
107
110
  layers: [
108
111
  {
109
112
  id: "L1",
110
- name: "CLAUDE.md",
113
+ name: "root CLAUDE.md",
111
114
  maxLines: 192,
112
115
  maxWords: 896,
113
- files: await findByName(root, "CLAUDE.md", "file"),
116
+ files: rootClaude,
117
+ },
118
+ {
119
+ id: "L1",
120
+ name: "subdir CLAUDE.md",
121
+ maxLines: 128,
122
+ maxWords: 768,
123
+ files: subdirClaude,
114
124
  },
115
125
  {
116
126
  id: "L2",
@@ -130,8 +140,8 @@ async function buildLayers(root) {
130
140
  {
131
141
  id: "L3",
132
142
  name: "agent profile",
133
- maxLines: 64,
134
- maxWords: 384,
143
+ maxLines: 72,
144
+ maxWords: 448,
135
145
  files: await findAgentProfiles(root, claudeDirs),
136
146
  },
137
147
  {