@mzzsfy/dsh-keep-working 0.1.0 → 0.2.0

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.
@@ -1,6 +1,7 @@
1
1
  import { test } from 'node:test'
2
2
  import assert from 'node:assert/strict'
3
3
 
4
+ import { DEFAULTS } from '../src/config.mjs'
4
5
  import { PROMPT_TEXT, SECTION_NAME, buildSection } from '../src/index.js'
5
6
 
6
7
  /** 宿主文件引用段的真实位置,取自 dsh-system-prompt 的 SECTION_ORDERS。 */
@@ -15,7 +16,7 @@ test('结案段落排在文件引用建议之后', () => {
15
16
  })
16
17
 
17
18
  test('结案段落保留显式提交要求', () => {
18
- for (const marker of ['(TASK_DONE)', '(TASK_BLOCKED: 原因)', 'present']) {
19
+ for (const marker of ['TASK_DONE', 'TASK_BLOCKED: 原因', 'present']) {
19
20
  assert.ok(PROMPT_TEXT.includes(marker), `缺少 ${marker}`)
20
21
  }
21
22
  })
@@ -23,3 +24,9 @@ test('结案段落保留显式提交要求', () => {
23
24
  test('结案段落声明 present 时机不受文件引用建议约束', () => {
24
25
  assert.ok(PROMPT_TEXT.includes('present 的时机以本段为准'))
25
26
  })
27
+
28
+ test('默认结案提醒与新标记一致', () => {
29
+ for (const marker of ['TASK_DONE', 'TASK_BLOCKED: 原因']) {
30
+ assert.ok(DEFAULTS.closureText.includes(marker), `缺少 ${marker}`)
31
+ }
32
+ })