dsh-note-journal 1.0.0 → 1.0.1

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/docs/DETAIL.md CHANGED
@@ -41,3 +41,4 @@
41
41
  - 报告依赖智能体主动调用 `journal_notes`;如果它没有调用,报告内容会不完整。
42
42
  - 笔记模式只影响提交给模型的对话;会话标题、会话列表等界面行为不变。
43
43
  - 第一次进入笔记模式时会话没有标题,插件会把它命名为「笔记 MM-DD」,以跳过自动生成标题的模型调用。
44
+ - 如果 AI 正在处理上一轮任务时你在笔记模式下发消息,这一轮任务会被立即结束(笔记模式保证不发起任何模型请求);消息本身仍会被完整记录。
package/index.js CHANGED
@@ -366,9 +366,12 @@ export function apply(ctx, config) {
366
366
  }
367
367
  }
368
368
 
369
- // An empty entering step at turn start ends the turn as `completed`
370
- // without a model request.
371
- return { kind: 'enter', messages: [] }
369
+ // `reject` is the only decision the loop checks BEFORE it looks at
370
+ // messages, so a later waterfall listener that spreads extra context into
371
+ // `messages` cannot turn it back into a model request. An empty entering
372
+ // step looks tidier (the turn ends `completed`) but another listener may
373
+ // re-add injected context to it, which would spend a model call.
374
+ return { kind: 'reject' }
372
375
  })
373
376
 
374
377
  // 2. `/note [on|off]` switches the mode; the projection derives it from the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-note-journal",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Note mode for individual DeepSeek Harness sessions plus weekly, monthly and yearly reports.",
5
5
  "keywords": [
6
6
  "dsh",