devez-vibe 1.5.7 → 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 +78 -33
- 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,
|
|
@@ -846,22 +847,24 @@ async function claudePluginDetail(params) {
|
|
|
846
847
|
};
|
|
847
848
|
}
|
|
848
849
|
|
|
849
|
-
async function claudeSkills(params) {
|
|
850
|
-
const installed = await runClaudeJson(params, ["plugin", "list", "--json"]);
|
|
851
|
-
const skills = [];
|
|
852
|
-
for (const plugin of Array.isArray(installed) ? installed : []) {
|
|
853
|
-
if (!plugin?.
|
|
854
|
-
try {
|
|
855
|
-
for (const child of await readdir(join(plugin.installPath, "skills"), { withFileTypes: true })) {
|
|
856
|
-
if (!child.isDirectory()) continue;
|
|
857
|
-
skills.push({
|
|
858
|
-
name: child.name,
|
|
859
|
-
path: join(plugin.installPath, "skills", child.name, "SKILL.md"),
|
|
860
|
-
description: `${plugin.id} plugin skill`,
|
|
861
|
-
enabled:
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
850
|
+
async function claudeSkills(params) {
|
|
851
|
+
const installed = await runClaudeJson(params, ["plugin", "list", "--json"]);
|
|
852
|
+
const skills = [];
|
|
853
|
+
for (const plugin of Array.isArray(installed) ? installed : []) {
|
|
854
|
+
if (!plugin?.installPath) continue;
|
|
855
|
+
try {
|
|
856
|
+
for (const child of await readdir(join(plugin.installPath, "skills"), { withFileTypes: true })) {
|
|
857
|
+
if (!child.isDirectory()) continue;
|
|
858
|
+
skills.push({
|
|
859
|
+
name: child.name,
|
|
860
|
+
path: join(plugin.installPath, "skills", child.name, "SKILL.md"),
|
|
861
|
+
description: `${plugin.id} plugin skill`,
|
|
862
|
+
enabled: Boolean(plugin.enabled),
|
|
863
|
+
scope: plugin.scope || "user",
|
|
864
|
+
pluginId: plugin.id,
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
} catch { /* Plugins do not have to provide skills. */ }
|
|
865
868
|
}
|
|
866
869
|
return { data: [{ cwd: params.cwd || process.cwd(), skills }] };
|
|
867
870
|
}
|
|
@@ -893,7 +896,7 @@ function claudeMcpStatusValue(statuses) {
|
|
|
893
896
|
};
|
|
894
897
|
}
|
|
895
898
|
|
|
896
|
-
async function claudeMcpStatus(params) {
|
|
899
|
+
async function claudeMcpStatus(params) {
|
|
897
900
|
const session = lookupSession(params.threadId || params.sessionId);
|
|
898
901
|
if (!session) {
|
|
899
902
|
return {
|
|
@@ -901,8 +904,19 @@ async function claudeMcpStatus(params) {
|
|
|
901
904
|
unavailableReason: "Claude 세션이 아직 시작되지 않았습니다.",
|
|
902
905
|
};
|
|
903
906
|
}
|
|
904
|
-
return claudeMcpStatusValue(await session.query.mcpServerStatus());
|
|
905
|
-
}
|
|
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
|
+
}
|
|
906
920
|
|
|
907
921
|
function isQuestionDeliveryError(error) {
|
|
908
922
|
return error?.code === -32700
|
|
@@ -2300,7 +2314,22 @@ async function readableCwd(id, cwd) {
|
|
|
2300
2314
|
|
|
2301
2315
|
async function dispatch(method, params = {}) {
|
|
2302
2316
|
if (method === "model/list") return loadModelCatalog(params);
|
|
2303
|
-
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
|
+
}
|
|
2304
2333
|
if (method === "plugin/list") return claudePluginCatalog(params);
|
|
2305
2334
|
if (method === "plugin/installed") return claudePluginCatalog(params, true);
|
|
2306
2335
|
if (method === "plugin/read") return claudePluginDetail(params);
|
|
@@ -2322,14 +2351,15 @@ async function dispatch(method, params = {}) {
|
|
|
2322
2351
|
]);
|
|
2323
2352
|
return {};
|
|
2324
2353
|
}
|
|
2325
|
-
if (method === "plugin/set-enabled") {
|
|
2326
|
-
const id = String(params.pluginId || "");
|
|
2327
|
-
if (!id) throw new Error("변경할 Claude 플러그인 이름이 없습니다.");
|
|
2328
|
-
const
|
|
2329
|
-
await
|
|
2330
|
-
|
|
2331
|
-
"
|
|
2332
|
-
|
|
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
|
+
]);
|
|
2333
2363
|
return { effectiveEnabled: Boolean(params.enabled) };
|
|
2334
2364
|
}
|
|
2335
2365
|
if (method === "marketplace/add") {
|
|
@@ -2565,12 +2595,27 @@ async function runSelfTest() {
|
|
|
2565
2595
|
},
|
|
2566
2596
|
{ name: "figma", status: "needs-auth", tools: [] },
|
|
2567
2597
|
]).data;
|
|
2568
|
-
if (mcpStatus[0]?.name !== "context7"
|
|
2598
|
+
if (mcpStatus[0]?.name !== "context7"
|
|
2569
2599
|
|| Object.keys(mcpStatus[0]?.tools || {}).length !== 2
|
|
2570
2600
|
|| mcpStatus[0]?.status !== "connected"
|
|
2571
2601
|
|| mcpStatus[1]?.authStatus !== "notLoggedIn") {
|
|
2572
|
-
throw new Error(`Claude MCP status self-test failed: ${JSON.stringify(mcpStatus)}`);
|
|
2573
|
-
}
|
|
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
|
+
}
|
|
2574
2619
|
const user = (uuid, text) => ({
|
|
2575
2620
|
type: "user",
|
|
2576
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
|
+
}
|