@vuau/agent-memory 0.5.3 → 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 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
- const content = applyVars(readTemplate("AGENTS.md"), vars);
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" }
@@ -142,7 +155,8 @@ function doctor(projectDir) {
142
155
  { file: AGENTS_MD, desc: "Root router file" },
143
156
  { file: CUSTOM_FILE, desc: "Project specific rules" },
144
157
  { file: MEMORY_FILE, desc: "Long-term memory" },
145
- { file: TASKS_FILE, desc: "Working memory" }
158
+ { file: TASKS_FILE, desc: "Working memory" },
159
+ { file: `${SPEC_DIR}/coding-principles.md`, desc: "Coding principles (run `agent-memory update` to create)" }
146
160
  ];
147
161
  for (const { file, desc } of required) {
148
162
  const filePath = join2(projectDir, file);
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
- const content = applyVars(readTemplate("AGENTS.md"), vars);
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" }
@@ -136,7 +149,8 @@ function doctor(projectDir) {
136
149
  { file: AGENTS_MD, desc: "Root router file" },
137
150
  { file: CUSTOM_FILE, desc: "Project specific rules" },
138
151
  { file: MEMORY_FILE, desc: "Long-term memory" },
139
- { file: TASKS_FILE, desc: "Working memory" }
152
+ { file: TASKS_FILE, desc: "Working memory" },
153
+ { file: `${SPEC_DIR}/coding-principles.md`, desc: "Coding principles (run `agent-memory update` to create)" }
140
154
  ];
141
155
  for (const { file, desc } of required) {
142
156
  const filePath = join2(projectDir, file);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuau/agent-memory",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Structured AI memory for codebases — scaffolding CLI for OpenCode, Copilot, Cursor, Windsurf",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",