claude-code-kr 0.3.20 → 0.3.21
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/lib/patcher.js +3 -2
- package/package.json +1 -1
package/lib/patcher.js
CHANGED
|
@@ -153,11 +153,12 @@ function apply(cliJs, { force = false } = {}) {
|
|
|
153
153
|
} catch {}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
// 마커 체크 — CC 버전 + cckr 버전이
|
|
156
|
+
// 마커 체크 — CC 버전 + cckr 버전이 같고, 실제로도 패치된 상태일 때만 스킵
|
|
157
|
+
// (CC가 cli.js를 덮어썼지만 마커는 안 지운 경우 방어)
|
|
157
158
|
if (!force && fs.existsSync(markerPath)) {
|
|
158
159
|
try {
|
|
159
160
|
const marker = JSON.parse(fs.readFileSync(markerPath, 'utf8'));
|
|
160
|
-
if (marker.ccVersion === ccVersion && marker.cckrVersion === pkg.version) {
|
|
161
|
+
if (marker.ccVersion === ccVersion && marker.cckrVersion === pkg.version && isPatched(cliJs)) {
|
|
161
162
|
return { ok: true, skipped: true, ccVersion, testedCcVersion: TESTED_CC_VERSION };
|
|
162
163
|
}
|
|
163
164
|
} catch {}
|