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.
Files changed (2) hide show
  1. package/dist/index.js +15 -18
  2. 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 保存提示 (Compaction Phase)
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
- 简洁的 bullet points,保持原意不扩写
272
+ 简洁 bullet points,保持原意
275
273
  \`\`\`
276
274
 
277
- 确实没有值得保存的,标记 \`[MEMORY: none]\`。
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-tweaks",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"