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.
Files changed (2) hide show
  1. package/dist/index.js +25 -4
  2. 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 保存提示 (Compaction Phase)
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
- 后续对话中应根据该标记调用内置 Read/Edit/Write 工具写入对应 memory 文件。`);
275
+ 无内容:\`[MEMORY: none]\` 并附一句理由说明为何无需保存
276
+
277
+ ### Memory 路径
278
+ - 全局:\`${globalMemoryDir}/\`
279
+ - 项目:\`${projectMemoryDir}/\`
280
+ `);
260
281
  })
261
282
  };
262
283
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-tweaks",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"