therookie 0.4.26 → 0.4.27
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/package.json +1 -1
- package/src/commands/save.js +6 -2
- package/version.json +1 -1
package/package.json
CHANGED
package/src/commands/save.js
CHANGED
|
@@ -20,6 +20,10 @@ import { apiPost } from '../api.js'
|
|
|
20
20
|
//
|
|
21
21
|
// 중복 스킵도 함께 센다. applied 만 보면 "보냈는데 전부 중복이라 0건" 과 "안 보냈다" 가
|
|
22
22
|
// 화면에서 구분되지 않는다(그게 이 결함이 오래 안 보인 이유다).
|
|
23
|
+
// 아무것도 저장되지 않았을 때의 요약 문구. 호출부가 "저장 0건" 을 판별할 때 쓴다
|
|
24
|
+
// (2026-09-03: 호출부가 함수 안의 지역 변수 parts 를 참조해 ReferenceError 로 죽었다).
|
|
25
|
+
export const EMPTY_SAVE_SUMMARY = '0건'
|
|
26
|
+
|
|
23
27
|
export function formatSaveSummary(s) {
|
|
24
28
|
const parts = []
|
|
25
29
|
if (s.working_cards?.ids?.length) parts.push(`카드 ${s.working_cards.ids.length}`)
|
|
@@ -39,7 +43,7 @@ export function formatSaveSummary(s) {
|
|
|
39
43
|
)
|
|
40
44
|
}
|
|
41
45
|
if (s.verifications?.applied) parts.push(`검증 ${s.verifications.applied}`)
|
|
42
|
-
return parts.length > 0 ? parts.join(' · ') :
|
|
46
|
+
return parts.length > 0 ? parts.join(' · ') : EMPTY_SAVE_SUMMARY
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
function readStdin() {
|
|
@@ -154,7 +158,7 @@ export async function runSave(flags) {
|
|
|
154
158
|
const pendingReview = (s.self_rules?.rejected ?? []).some(
|
|
155
159
|
(r) => r.reason_code === 'peer_review_required'
|
|
156
160
|
)
|
|
157
|
-
if (pendingReview &&
|
|
161
|
+
if (pendingReview && label === EMPTY_SAVE_SUMMARY) {
|
|
158
162
|
console.error('⚠ 자기규칙 검토 대기 — 위 목록을 보고 재전송하세요.')
|
|
159
163
|
} else {
|
|
160
164
|
console.error(`⚠ 일부 미저장 — ${label}`)
|
package/version.json
CHANGED