devez-vibe 1.5.8 → 1.5.9
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 +60 -17
- package/package.json +41 -41
package/bin/dvz.exe
CHANGED
|
Binary file
|
|
@@ -740,8 +740,9 @@ function claudePluginValue(available, installed) {
|
|
|
740
740
|
// remains short, so typed searches still resolve the same way as Claude CLI.
|
|
741
741
|
name: id,
|
|
742
742
|
description,
|
|
743
|
-
installed: Boolean(installed),
|
|
744
|
-
enabled: Boolean(installed?.enabled),
|
|
743
|
+
installed: Boolean(installed),
|
|
744
|
+
enabled: Boolean(installed?.enabled),
|
|
745
|
+
scope: installed?.scope || "user",
|
|
745
746
|
availability: "AVAILABLE",
|
|
746
747
|
installPolicy: "USER_INSTALLABLE",
|
|
747
748
|
mustShowInstallationInterstitial: true,
|
|
@@ -895,7 +896,7 @@ function claudeMcpStatusValue(statuses) {
|
|
|
895
896
|
};
|
|
896
897
|
}
|
|
897
898
|
|
|
898
|
-
async function claudeMcpStatus(params) {
|
|
899
|
+
async function claudeMcpStatus(params) {
|
|
899
900
|
const session = lookupSession(params.threadId || params.sessionId);
|
|
900
901
|
if (!session) {
|
|
901
902
|
return {
|
|
@@ -903,8 +904,19 @@ async function claudeMcpStatus(params) {
|
|
|
903
904
|
unavailableReason: "Claude 세션이 아직 시작되지 않았습니다.",
|
|
904
905
|
};
|
|
905
906
|
}
|
|
906
|
-
return claudeMcpStatusValue(await session.query.mcpServerStatus());
|
|
907
|
-
}
|
|
907
|
+
return claudeMcpStatusValue(await session.query.mcpServerStatus());
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
async function reconnectClaudeMcp(session, requested) {
|
|
911
|
+
const names = requested
|
|
912
|
+
? [requested]
|
|
913
|
+
: (await session.query.mcpServerStatus())
|
|
914
|
+
.filter((server) => server?.status !== "disabled")
|
|
915
|
+
.map((server) => String(server.name || ""))
|
|
916
|
+
.filter(Boolean);
|
|
917
|
+
for (const name of names) await session.query.reconnectMcpServer(name);
|
|
918
|
+
return names;
|
|
919
|
+
}
|
|
908
920
|
|
|
909
921
|
function isQuestionDeliveryError(error) {
|
|
910
922
|
return error?.code === -32700
|
|
@@ -2302,7 +2314,22 @@ async function readableCwd(id, cwd) {
|
|
|
2302
2314
|
|
|
2303
2315
|
async function dispatch(method, params = {}) {
|
|
2304
2316
|
if (method === "model/list") return loadModelCatalog(params);
|
|
2305
|
-
if (method === "mcpServerStatus/list") return claudeMcpStatus(params);
|
|
2317
|
+
if (method === "mcpServerStatus/list") return claudeMcpStatus(params);
|
|
2318
|
+
if (method === "mcp/reconnect" || method === "mcp/login") {
|
|
2319
|
+
const session = lookupSession(params.sessionId || params.threadId);
|
|
2320
|
+
if (!session) throw new Error("Claude 세션이 아직 시작되지 않았습니다.");
|
|
2321
|
+
const requested = String(params.name || "").trim();
|
|
2322
|
+
const names = await reconnectClaudeMcp(session, requested);
|
|
2323
|
+
return { reconnected: names };
|
|
2324
|
+
}
|
|
2325
|
+
if (method === "mcp/toggle") {
|
|
2326
|
+
const session = lookupSession(params.sessionId || params.threadId);
|
|
2327
|
+
if (!session) throw new Error("Claude 세션이 아직 시작되지 않았습니다.");
|
|
2328
|
+
const name = String(params.name || "").trim();
|
|
2329
|
+
if (!name) throw new Error("변경할 Claude MCP 서버 이름이 없습니다.");
|
|
2330
|
+
await session.query.toggleMcpServer(name, Boolean(params.enabled));
|
|
2331
|
+
return { effectiveEnabled: Boolean(params.enabled) };
|
|
2332
|
+
}
|
|
2306
2333
|
if (method === "plugin/list") return claudePluginCatalog(params);
|
|
2307
2334
|
if (method === "plugin/installed") return claudePluginCatalog(params, true);
|
|
2308
2335
|
if (method === "plugin/read") return claudePluginDetail(params);
|
|
@@ -2324,14 +2351,15 @@ async function dispatch(method, params = {}) {
|
|
|
2324
2351
|
]);
|
|
2325
2352
|
return {};
|
|
2326
2353
|
}
|
|
2327
|
-
if (method === "plugin/set-enabled") {
|
|
2328
|
-
const id = String(params.pluginId || "");
|
|
2329
|
-
if (!id) throw new Error("변경할 Claude 플러그인 이름이 없습니다.");
|
|
2330
|
-
const
|
|
2331
|
-
await
|
|
2332
|
-
|
|
2333
|
-
"
|
|
2334
|
-
|
|
2354
|
+
if (method === "plugin/set-enabled") {
|
|
2355
|
+
const id = String(params.pluginId || "");
|
|
2356
|
+
if (!id) throw new Error("변경할 Claude 플러그인 이름이 없습니다.");
|
|
2357
|
+
const requestedScope = String(params.scope || "").trim();
|
|
2358
|
+
const installed = requestedScope ? null : await installedClaudePlugin(params, id);
|
|
2359
|
+
await runClaudeCommand(params, [
|
|
2360
|
+
"plugin", params.enabled ? "enable" : "disable", id,
|
|
2361
|
+
"--scope", requestedScope || installed?.scope || "user",
|
|
2362
|
+
]);
|
|
2335
2363
|
return { effectiveEnabled: Boolean(params.enabled) };
|
|
2336
2364
|
}
|
|
2337
2365
|
if (method === "marketplace/add") {
|
|
@@ -2567,12 +2595,27 @@ async function runSelfTest() {
|
|
|
2567
2595
|
},
|
|
2568
2596
|
{ name: "figma", status: "needs-auth", tools: [] },
|
|
2569
2597
|
]).data;
|
|
2570
|
-
if (mcpStatus[0]?.name !== "context7"
|
|
2598
|
+
if (mcpStatus[0]?.name !== "context7"
|
|
2571
2599
|
|| Object.keys(mcpStatus[0]?.tools || {}).length !== 2
|
|
2572
2600
|
|| mcpStatus[0]?.status !== "connected"
|
|
2573
2601
|
|| mcpStatus[1]?.authStatus !== "notLoggedIn") {
|
|
2574
|
-
throw new Error(`Claude MCP status self-test failed: ${JSON.stringify(mcpStatus)}`);
|
|
2575
|
-
}
|
|
2602
|
+
throw new Error(`Claude MCP status self-test failed: ${JSON.stringify(mcpStatus)}`);
|
|
2603
|
+
}
|
|
2604
|
+
const reconnected = [];
|
|
2605
|
+
const fakeMcpSession = {
|
|
2606
|
+
query: {
|
|
2607
|
+
mcpServerStatus: async () => [
|
|
2608
|
+
{ name: "connected", status: "connected" },
|
|
2609
|
+
{ name: "disabled", status: "disabled" },
|
|
2610
|
+
],
|
|
2611
|
+
reconnectMcpServer: async (name) => reconnected.push(name),
|
|
2612
|
+
},
|
|
2613
|
+
};
|
|
2614
|
+
await reconnectClaudeMcp(fakeMcpSession, "");
|
|
2615
|
+
await reconnectClaudeMcp(fakeMcpSession, "disabled");
|
|
2616
|
+
if (reconnected.join(",") !== "connected,disabled") {
|
|
2617
|
+
throw new Error(`Claude MCP reconnect self-test failed: ${reconnected.join(",")}`);
|
|
2618
|
+
}
|
|
2576
2619
|
const user = (uuid, text) => ({
|
|
2577
2620
|
type: "user",
|
|
2578
2621
|
uuid,
|
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "devez-vibe",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "Stable terminal UI for Codex and Claude Agent SDK",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"codex",
|
|
7
|
-
"cli",
|
|
8
|
-
"tui",
|
|
9
|
-
"terminal",
|
|
10
|
-
"app-server",
|
|
11
|
-
"claude-agent-sdk"
|
|
12
|
-
],
|
|
13
|
-
"homepage": "https://github.com/MrHoje/Devez-vibe#readme",
|
|
14
|
-
"bugs": "https://github.com/MrHoje/Devez-vibe/issues",
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/MrHoje/Devez-vibe.git"
|
|
18
|
-
},
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"bin": {
|
|
21
|
-
"dvz": "bin/dvz.exe"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"bin/dvz.exe",
|
|
25
|
-
"bridge/claude-agent-sdk-bridge.mjs",
|
|
26
|
-
"README.md",
|
|
27
|
-
"LICENSE"
|
|
28
|
-
],
|
|
29
|
-
"os": [
|
|
30
|
-
"win32"
|
|
31
|
-
],
|
|
32
|
-
"cpu": [
|
|
33
|
-
"x64"
|
|
34
|
-
],
|
|
35
|
-
"engines": {
|
|
36
|
-
"node": ">=18"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.223"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "devez-vibe",
|
|
3
|
+
"version": "1.5.9",
|
|
4
|
+
"description": "Stable terminal UI for Codex and Claude Agent SDK",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"codex",
|
|
7
|
+
"cli",
|
|
8
|
+
"tui",
|
|
9
|
+
"terminal",
|
|
10
|
+
"app-server",
|
|
11
|
+
"claude-agent-sdk"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/MrHoje/Devez-vibe#readme",
|
|
14
|
+
"bugs": "https://github.com/MrHoje/Devez-vibe/issues",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/MrHoje/Devez-vibe.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"bin": {
|
|
21
|
+
"dvz": "bin/dvz.exe"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"bin/dvz.exe",
|
|
25
|
+
"bridge/claude-agent-sdk-bridge.mjs",
|
|
26
|
+
"README.md",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"os": [
|
|
30
|
+
"win32"
|
|
31
|
+
],
|
|
32
|
+
"cpu": [
|
|
33
|
+
"x64"
|
|
34
|
+
],
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=18"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.223"
|
|
40
|
+
}
|
|
41
|
+
}
|