@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 +1 -1
- package/src/instructions.js +14 -4
package/package.json
CHANGED
package/src/instructions.js
CHANGED
|
@@ -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:
|
|
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:
|
|
134
|
-
maxWords:
|
|
143
|
+
maxLines: 72,
|
|
144
|
+
maxWords: 448,
|
|
135
145
|
files: await findAgentProfiles(root, claudeDirs),
|
|
136
146
|
},
|
|
137
147
|
{
|