@longtable/checkpoints 0.1.41 → 0.1.43

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.
@@ -45,12 +45,15 @@ const RULES = [
45
45
  level: "adaptive_required",
46
46
  cues: [
47
47
  /\bresearch question\b/i,
48
+ /\bresearch direction\b/i,
49
+ /\bscope\b/i,
50
+ /\bboundary\b/i,
48
51
  /\bfreeze\b/i,
49
52
  /\bfinali[sz]e\b/i,
50
53
  /\bsettle\b/i,
51
54
  /\bdecide\b/i,
52
55
  /\bcommit\b/i,
53
- /연구문제|연구 질문|확정|결정|고정|커밋/
56
+ /연구문제|연구 질문|연구\s*방향|범위|경계|확정|결정|고정|커밋/
54
57
  ],
55
58
  rationale: "Freezing the research question converts ambiguity into a human commitment."
56
59
  },
@@ -111,11 +114,14 @@ const RULES = [
111
114
  cues: [
112
115
  /\banalysis plan\b/i,
113
116
  /\banaly[sz]e\b/i,
114
- /\bmodel\b/i,
117
+ /\bstatistical model\b/i,
118
+ /\bstructural model\b/i,
119
+ /\bpath model\b/i,
120
+ /\banalysis model\b/i,
115
121
  /\bstatistical\b/i,
116
122
  /\bregression\b/i,
117
123
  /\bqualitative coding\b/i,
118
- /분석 계획|분석|모형|모델|통계|회귀|코딩/
124
+ /분석 계획|분석|분석\s*(?:모형|모델)|통계\s*(?:모형|모델)|구조\s*방정식|경로\s*모형|통계|회귀|코딩/
119
125
  ],
120
126
  rationale: "Analysis choices affect inference and should remain inspectable."
121
127
  },
@@ -276,8 +282,8 @@ function requiresQuestion(level, mode, family) {
276
282
  family === "meta_decision");
277
283
  }
278
284
  function looksLikeCommitmentCue(prompt) {
279
- return /\b(final|finalize|commit|ship|submit|publish|freeze|settle|decide|lock|record|apply|incorporate)\b/i.test(prompt)
280
- || /최종|확정|커밋|제출|투고|고정|결정|기록|반영/.test(prompt);
285
+ return /\b(final|finalize|commit|ship|submit|publish|freeze|settle|decide|lock|record|apply|incorporate|change|revise|update|replace|reframe|modify|alter)\b/i.test(prompt)
286
+ || /최종|확정|커밋|제출|투고|고정|결정|기록|반영|바꾸|변경|수정|교체|전환|재설정/.test(prompt);
281
287
  }
282
288
  function ruleRequiresQuestionForPrompt(rule, prompt) {
283
289
  if (rule.family === "commitment" && !looksLikeCommitmentCue(prompt)) {
@@ -343,7 +349,7 @@ function fallbackLevel(mode) {
343
349
  }
344
350
  }
345
351
  function looksLikeProductOrToolingPrompt(prompt) {
346
- return /\b(longlongtable|hook|checkpoint|mcp|agents?|skills?|ux|interface|setup|install|cli|npm|version|global|release|deploy|git|github|readme|docs?|documentation|workflow|package|router|autocomplete|simulation test)\b/i.test(prompt)
352
+ return /\b(longtable|longlongtable|hook|checkpoint|mcp|agents?|skills?|ux|interface|setup|install|cli|npm|version|global|release|deploy|git|github|readme|docs?|documentation|workflow|package|router|autocomplete|simulation test)\b/i.test(prompt)
347
353
  || /롱테이블|훅|체크포인트|에이전트|스킬|사용성|인터페이스|설치|세팅|글로벌|배포|버전|릴리즈|깃|깃허브|문서화된\s*절차|패키지|라우터|자동완성|시뮬레이션\s*테스트/.test(prompt);
348
354
  }
349
355
  export function classifyCheckpointTrigger(prompt, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longtable/checkpoints",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "private": false,
5
5
  "description": "Checkpoint policy engine for LongTable",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "typecheck": "tsc -p tsconfig.json --noEmit"
22
22
  },
23
23
  "dependencies": {
24
- "@longtable/core": "0.1.41"
24
+ "@longtable/core": "0.1.43"
25
25
  },
26
26
  "devDependencies": {
27
27
  "typescript": "^5.6.0"