oc-tweaks 0.3.1 → 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 +15 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -247,40 +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
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
有 → 标记保存。没有 → 标记 none。就这么简单。
|
|
255
|
+
|
|
256
|
+
### 值得保存
|
|
257
|
+
- 用户表达的偏好、纠正、或明确要求记住的内容
|
|
257
258
|
- 架构决策、设计约束、技术选型及其理由
|
|
258
|
-
- 跨会话有价值的模式或约定(问自己:明天从头开始,这个信息有帮助吗?)
|
|
259
259
|
- 反复出现问题的根因与解决方案
|
|
260
|
-
-
|
|
260
|
+
- 工作流、工具链、沟通风格等跨会话有价值的模式
|
|
261
261
|
|
|
262
|
-
###
|
|
263
|
-
-
|
|
264
|
-
- AGENTS.md / CLAUDE.md
|
|
265
|
-
-
|
|
266
|
-
- 机密信息(密码、API key、token)
|
|
262
|
+
### 不要保存
|
|
263
|
+
- 本次对话的临时细节(具体报错、一次性调试步骤)
|
|
264
|
+
- AGENTS.md / CLAUDE.md 中已有的内容
|
|
265
|
+
- 未验证的猜测 · 机密信息
|
|
267
266
|
|
|
268
267
|
### 标记格式
|
|
269
268
|
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
有内容:
|
|
272
270
|
\`\`\`
|
|
273
271
|
[MEMORY: 文件名.md]
|
|
274
|
-
|
|
272
|
+
简洁 bullet points,保持原意
|
|
275
273
|
\`\`\`
|
|
276
274
|
|
|
277
|
-
|
|
275
|
+
无内容:\`[MEMORY: none]\` 并附一句理由说明为何无需保存
|
|
278
276
|
|
|
279
277
|
### Memory 路径
|
|
280
278
|
- 全局:\`${globalMemoryDir}/\`
|
|
281
279
|
- 项目:\`${projectMemoryDir}/\`
|
|
282
|
-
|
|
283
|
-
后续对话中应根据标记调用内置 Read/Edit/Write 工具写入对应 memory 文件。`);
|
|
280
|
+
`);
|
|
284
281
|
})
|
|
285
282
|
};
|
|
286
283
|
};
|