@vuau/agent-memory 0.5.4 → 0.5.5
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/dist/bin/cli.js +14 -1
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -119,7 +119,20 @@ function updateRouter(projectDir) {
|
|
|
119
119
|
if (!existsSync(targetPath)) return false;
|
|
120
120
|
const projectName = guessProjectName(projectDir);
|
|
121
121
|
const vars = { PROJECT_NAME: projectName };
|
|
122
|
-
|
|
122
|
+
let content = applyVars(readTemplate("AGENTS.md"), vars);
|
|
123
|
+
const customPath = join(projectDir, CUSTOM_FILE);
|
|
124
|
+
if (existsSync(customPath)) {
|
|
125
|
+
const customContent = readFileSync(customPath, "utf-8").trim();
|
|
126
|
+
if (customContent) {
|
|
127
|
+
content += `
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
<!-- BEGIN CUSTOM RULES (inlined from .agents/CUSTOM.md) -->
|
|
131
|
+
${customContent}
|
|
132
|
+
<!-- END CUSTOM RULES -->
|
|
133
|
+
`;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
123
136
|
writeFileSync(targetPath, content);
|
|
124
137
|
const managedSpecs = [
|
|
125
138
|
{ target: `${SPEC_DIR}/coding-principles.md`, template: "spec/coding-principles.md" }
|
package/dist/index.js
CHANGED
|
@@ -113,7 +113,20 @@ function updateRouter(projectDir) {
|
|
|
113
113
|
if (!existsSync(targetPath)) return false;
|
|
114
114
|
const projectName = guessProjectName(projectDir);
|
|
115
115
|
const vars = { PROJECT_NAME: projectName };
|
|
116
|
-
|
|
116
|
+
let content = applyVars(readTemplate("AGENTS.md"), vars);
|
|
117
|
+
const customPath = join(projectDir, CUSTOM_FILE);
|
|
118
|
+
if (existsSync(customPath)) {
|
|
119
|
+
const customContent = readFileSync(customPath, "utf-8").trim();
|
|
120
|
+
if (customContent) {
|
|
121
|
+
content += `
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
<!-- BEGIN CUSTOM RULES (inlined from .agents/CUSTOM.md) -->
|
|
125
|
+
${customContent}
|
|
126
|
+
<!-- END CUSTOM RULES -->
|
|
127
|
+
`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
117
130
|
writeFileSync(targetPath, content);
|
|
118
131
|
const managedSpecs = [
|
|
119
132
|
{ target: `${SPEC_DIR}/coding-principles.md`, template: "spec/coding-principles.md" }
|
package/package.json
CHANGED