devez-vibe 1.11.5 → 1.11.7
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/bin/dvz.exe +0 -0
- package/bridge/claude-agent-sdk-bridge.mjs +45 -1
- package/package.json +3 -3
package/bin/dvz.exe
CHANGED
|
Binary file
|
|
@@ -856,7 +856,7 @@ function makeOptions(params, sessionId, resume, currentId = () => sessionId) {
|
|
|
856
856
|
// Hooks run whatever the permission mode, so a read-only role turn holds even
|
|
857
857
|
// under bypass. The policy itself arrives with each prompt.
|
|
858
858
|
options.hooks = {
|
|
859
|
-
PreToolUse: [{ hooks: [(input) => toolPolicyHook(currentId(), input)] }],
|
|
859
|
+
PreToolUse: [{ onFailure: "block", hooks: [(input) => toolPolicyHook(currentId(), input)] }],
|
|
860
860
|
};
|
|
861
861
|
if (process.platform === "win32" && z) {
|
|
862
862
|
options.mcpServers = { [COMPUTER_SERVER]: computerServer(currentId) };
|
|
@@ -3737,6 +3737,9 @@ const STARTUP_FAILURE_GUIDES = {
|
|
|
3737
3737
|
org_verify_failed: "로그인 계정의 조직을 확인하지 못했습니다. 네트워크를 확인하고 다시 로그인하세요.",
|
|
3738
3738
|
org_pin_mismatch: "조직 설정이 허용하지 않는 계정으로 로그인되어 있습니다. 허용된 조직 계정으로 다시 로그인하세요.",
|
|
3739
3739
|
managed_settings_invalid: "조직 관리 설정을 읽지 못했습니다. 관리자에게 설정 확인을 요청하세요.",
|
|
3740
|
+
sandbox_required_unavailable: "필수 샌드박스를 사용할 수 없어 시작하지 못했습니다. 샌드박스 설치·설정을 확인하세요.",
|
|
3741
|
+
initialize_not_first: "Claude SDK 초기화 순서가 올바르지 않습니다. 세션을 다시 시작하세요.",
|
|
3742
|
+
config_file_invalid: "Claude 설정 파일이 올바른 JSON이 아닙니다. 아래 원문에 표시된 파일을 수정하거나 백업에서 복원하세요.",
|
|
3740
3743
|
remote_settings_required_unavailable: "조직이 요구하는 관리 설정을 불러오지 못했습니다. 네트워크를 확인한 뒤 다시 시작하세요.",
|
|
3741
3744
|
org_config_required_unavailable: "조직이 요구하는 정책 한도와 관리 설정을 불러오지 못했습니다. 네트워크·프록시를 확인한 뒤 다시 시작하세요.",
|
|
3742
3745
|
org_config_refused: "조직이 요구하는 정책 한도와 관리 설정의 조회가 거부되었습니다. 다시 로그인하거나 관리자에게 Claude Code 사용 권한을 문의하세요.",
|
|
@@ -4037,6 +4040,17 @@ async function consumeMessage(session, message) {
|
|
|
4037
4040
|
notify("claude/account/updated", { threadId: session.id, rateLimitInfo: message.rate_limit_info });
|
|
4038
4041
|
} else if (message.type === "system" && message.subtype === "api_retry") {
|
|
4039
4042
|
notify("warning", { threadId: session.id, provider: "Claude", message: `Claude API 재시도 ${message.attempt}/${message.max_retries}` });
|
|
4043
|
+
} else if (message.type === "system" && message.subtype === "session_writes_lost") {
|
|
4044
|
+
const lost = [];
|
|
4045
|
+
if (message.lost?.includes("transcript")) lost.push("대화 기록");
|
|
4046
|
+
if (message.lost?.includes("global_config")) lost.push("전역 설정");
|
|
4047
|
+
notify("warning", {
|
|
4048
|
+
threadId: session.id,
|
|
4049
|
+
provider: "Claude",
|
|
4050
|
+
message: `Claude가 ${lost.join("·") || "대화 기록 또는 전역 설정"}을 저장하지 못했습니다 (${message.error_code}). 디스크 여유 공간·할당량을 확보하세요. 재개 시 기록·설정이 누락될 수 있습니다.`,
|
|
4051
|
+
});
|
|
4052
|
+
} else if (message.type === "system" && message.subtype === "informational" && message.level === "warning" && message.content) {
|
|
4053
|
+
notify("warning", { threadId: session.id, provider: "Claude", message: message.content });
|
|
4040
4054
|
}
|
|
4041
4055
|
}
|
|
4042
4056
|
|
|
@@ -5523,11 +5537,41 @@ function startupFailureGuideGaps() {
|
|
|
5523
5537
|
return reasons.filter((reason) => !STARTUP_FAILURE_GUIDES[reason]);
|
|
5524
5538
|
}
|
|
5525
5539
|
|
|
5540
|
+
async function runSystemWarningSelfTest() {
|
|
5541
|
+
const captured = [];
|
|
5542
|
+
const originalWrite = process.stdout.write;
|
|
5543
|
+
const session = { id: "system-warning-self-test", subagents: new Map() };
|
|
5544
|
+
const losses = [
|
|
5545
|
+
[["transcript"], "ENOSPC", "대화 기록"],
|
|
5546
|
+
[["global_config"], "EDQUOT", "전역 설정"],
|
|
5547
|
+
[["transcript", "global_config"], "ENOSPC", "대화 기록·전역 설정"],
|
|
5548
|
+
[["future_target"], "EIO", "대화 기록 또는 전역 설정"],
|
|
5549
|
+
];
|
|
5550
|
+
process.stdout.write = (chunk) => { captured.push(JSON.parse(String(chunk))); return true; };
|
|
5551
|
+
try {
|
|
5552
|
+
for (const [lost, error_code] of losses) {
|
|
5553
|
+
await consumeMessage(session, { type: "system", subtype: "session_writes_lost", lost, error_code });
|
|
5554
|
+
}
|
|
5555
|
+
await consumeMessage(session, { type: "system", subtype: "informational", level: "warning", content: "hook callback failed" });
|
|
5556
|
+
await consumeMessage(session, { type: "system", subtype: "informational", level: "warning", content: "" });
|
|
5557
|
+
await consumeMessage(session, { type: "system", subtype: "informational", level: "info", content: "ordinary status" });
|
|
5558
|
+
} finally {
|
|
5559
|
+
process.stdout.write = originalWrite;
|
|
5560
|
+
}
|
|
5561
|
+
if (session.turn || captured.length !== losses.length + 1
|
|
5562
|
+
|| captured.some((event) => event.method !== "warning" || event.params.threadId !== session.id || event.params.provider !== "Claude")
|
|
5563
|
+
|| losses.some(([, code, target], index) => !captured[index].params.message.includes(`${target}을 저장하지 못했습니다 (${code})`))
|
|
5564
|
+
|| captured.at(-1).params.message !== "hook callback failed") {
|
|
5565
|
+
throw new Error(`Claude system warning self-test failed: ${JSON.stringify(captured)}`);
|
|
5566
|
+
}
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5526
5569
|
async function runSelfTest() {
|
|
5527
5570
|
const startupGaps = startupFailureGuideGaps();
|
|
5528
5571
|
if (startupGaps.length) {
|
|
5529
5572
|
throw new Error(`Claude 기동 실패 안내 누락: ${startupGaps.join(", ")}`);
|
|
5530
5573
|
}
|
|
5574
|
+
await runSystemWarningSelfTest();
|
|
5531
5575
|
await runPermissionModeSelfTest();
|
|
5532
5576
|
await runGuardedPermissionSelfTest();
|
|
5533
5577
|
await runPromptSuggestionSelfTest();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devez-vibe",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Stable terminal UI for Codex and Claude Agent SDK",
|
|
6
6
|
"keywords": [
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"x64"
|
|
40
40
|
],
|
|
41
41
|
"engines": {
|
|
42
|
-
"node": ">=18"
|
|
42
|
+
"node": ">=18.14.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"postinstall": "node install-skills.mjs && node prepare-search-deps.mjs"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
48
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.318"
|
|
49
49
|
}
|
|
50
50
|
}
|