oc-tweaks 0.3.0 → 0.3.2
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/index.js +25 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -247,16 +247,37 @@ var autoMemoryPlugin = async ({ directory }) => {
|
|
|
247
247
|
if (!config || config.autoMemory?.enabled !== true)
|
|
248
248
|
return;
|
|
249
249
|
await ensureAutoMemoryInfra(home, projectMemoryDir);
|
|
250
|
-
output.context.push(`## \uD83D\uDCBE Memory
|
|
250
|
+
output.context.push(`## \uD83D\uDCBE Memory Checkpoint
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
核心问题:**如果明天开一个全新会话,本轮对话中有哪些信息会让你希望已经记录下来?**
|
|
253
253
|
|
|
254
|
+
有 → 标记保存。没有 → 标记 none。就这么简单。
|
|
255
|
+
|
|
256
|
+
### 值得保存
|
|
257
|
+
- 用户表达的偏好、纠正、或明确要求记住的内容
|
|
258
|
+
- 架构决策、设计约束、技术选型及其理由
|
|
259
|
+
- 反复出现问题的根因与解决方案
|
|
260
|
+
- 工作流、工具链、沟通风格等跨会话有价值的模式
|
|
261
|
+
|
|
262
|
+
### 不要保存
|
|
263
|
+
- 本次对话的临时细节(具体报错、一次性调试步骤)
|
|
264
|
+
- AGENTS.md / CLAUDE.md 中已有的内容
|
|
265
|
+
- 未验证的猜测 · 机密信息
|
|
266
|
+
|
|
267
|
+
### 标记格式
|
|
268
|
+
|
|
269
|
+
有内容:
|
|
254
270
|
\`\`\`
|
|
255
271
|
[MEMORY: 文件名.md]
|
|
256
|
-
|
|
272
|
+
简洁 bullet points,保持原意
|
|
257
273
|
\`\`\`
|
|
258
274
|
|
|
259
|
-
|
|
275
|
+
无内容:\`[MEMORY: none]\` 并附一句理由说明为何无需保存
|
|
276
|
+
|
|
277
|
+
### Memory 路径
|
|
278
|
+
- 全局:\`${globalMemoryDir}/\`
|
|
279
|
+
- 项目:\`${projectMemoryDir}/\`
|
|
280
|
+
`);
|
|
260
281
|
})
|
|
261
282
|
};
|
|
262
283
|
};
|