devez-vibe 1.5.8 → 1.5.10

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/LICENSE CHANGED
@@ -1,33 +1,33 @@
1
- DevezCode source code license
2
-
3
- The MIT License below applies only to the DevezCode source code and to files
4
- that are not listed in the exception below.
5
-
6
- Exceptions:
7
-
8
- * `Resources/Images/FileTypes/` and `Resources/Licenses/` are Microsoft Visual
9
- Studio Image Library materials, subject to the included Microsoft terms.
10
- * `Resources/Images/ShellPresets/` contains third-party brand assets, subject
11
- to their respective owners' terms.
12
-
13
- MIT License
14
-
15
- Copyright (c) 2026 DevezCode contributors
16
-
17
- Permission is hereby granted, free of charge, to any person obtaining a copy
18
- of this software and associated documentation files (the "Software"), to deal
19
- in the Software without restriction, including without limitation the rights
20
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
- copies of the Software, and to permit persons to whom the Software is
22
- furnished to do so, subject to the following conditions:
23
-
24
- The above copyright notice and this permission notice shall be included in all
25
- copies or substantial portions of the Software.
26
-
27
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
- SOFTWARE.
1
+ DevezCode source code license
2
+
3
+ The MIT License below applies only to the DevezCode source code and to files
4
+ that are not listed in the exception below.
5
+
6
+ Exceptions:
7
+
8
+ * `Resources/Images/FileTypes/` and `Resources/Licenses/` are Microsoft Visual
9
+ Studio Image Library materials, subject to the included Microsoft terms.
10
+ * `Resources/Images/ShellPresets/` contains third-party brand assets, subject
11
+ to their respective owners' terms.
12
+
13
+ MIT License
14
+
15
+ Copyright (c) 2026 DevezCode contributors
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the "Software"), to deal
19
+ in the Software without restriction, including without limitation the rights
20
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ copies of the Software, and to permit persons to whom the Software is
22
+ furnished to do so, subject to the following conditions:
23
+
24
+ The above copyright notice and this permission notice shall be included in all
25
+ copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
+ SOFTWARE.
package/bin/dvz.exe CHANGED
Binary file
@@ -149,7 +149,13 @@ function modelCapabilities(models, model) {
149
149
  }
150
150
 
151
151
  function opus48Capabilities(models, existing = {}) {
152
- const opus = models.find((model) => model.value === "opus") || {};
152
+ // The CLI now exposes the Opus alias as `opus[1m]` (and only `default`
153
+ // resolves to it), so an exact `value === "opus"` match finds nothing and the
154
+ // synthesized Opus 4.8 row loses supportsAutoMode/supportsFastMode. Match the
155
+ // Opus family instead, falling back to `default`.
156
+ const opus = models.find((model) => String(model.value || "").toLowerCase().startsWith("opus"))
157
+ || models.find((model) => model.value === "default")
158
+ || {};
153
159
  const opusEfforts = Array.isArray(opus.supportedEffortLevels)
154
160
  ? opus.supportedEffortLevels
155
161
  : [];
@@ -742,6 +748,7 @@ function claudePluginValue(available, installed) {
742
748
  description,
743
749
  installed: Boolean(installed),
744
750
  enabled: Boolean(installed?.enabled),
751
+ scope: installed?.scope || "user",
745
752
  availability: "AVAILABLE",
746
753
  installPolicy: "USER_INSTALLABLE",
747
754
  mustShowInstallationInterstitial: true,
@@ -846,24 +853,24 @@ async function claudePluginDetail(params) {
846
853
  };
847
854
  }
848
855
 
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?.installPath) continue;
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: Boolean(plugin.enabled),
862
- scope: plugin.scope || "user",
863
- pluginId: plugin.id,
864
- });
865
- }
866
- } catch { /* Plugins do not have to provide skills. */ }
856
+ async function claudeSkills(params) {
857
+ const installed = await runClaudeJson(params, ["plugin", "list", "--json"]);
858
+ const skills = [];
859
+ for (const plugin of Array.isArray(installed) ? installed : []) {
860
+ if (!plugin?.installPath) continue;
861
+ try {
862
+ for (const child of await readdir(join(plugin.installPath, "skills"), { withFileTypes: true })) {
863
+ if (!child.isDirectory()) continue;
864
+ skills.push({
865
+ name: child.name,
866
+ path: join(plugin.installPath, "skills", child.name, "SKILL.md"),
867
+ description: `${plugin.id} plugin skill`,
868
+ enabled: Boolean(plugin.enabled),
869
+ scope: plugin.scope || "user",
870
+ pluginId: plugin.id,
871
+ });
872
+ }
873
+ } catch { /* Plugins do not have to provide skills. */ }
867
874
  }
868
875
  return { data: [{ cwd: params.cwd || process.cwd(), skills }] };
869
876
  }
@@ -906,6 +913,17 @@ async function claudeMcpStatus(params) {
906
913
  return claudeMcpStatusValue(await session.query.mcpServerStatus());
907
914
  }
908
915
 
916
+ async function reconnectClaudeMcp(session, requested) {
917
+ const names = requested
918
+ ? [requested]
919
+ : (await session.query.mcpServerStatus())
920
+ .filter((server) => server?.status !== "disabled")
921
+ .map((server) => String(server.name || ""))
922
+ .filter(Boolean);
923
+ for (const name of names) await session.query.reconnectMcpServer(name);
924
+ return names;
925
+ }
926
+
909
927
  function isQuestionDeliveryError(error) {
910
928
  return error?.code === -32700
911
929
  || String(error?.message || error).includes("사용자 입력 화면에 전달하지 못했습니다");
@@ -2303,6 +2321,21 @@ async function readableCwd(id, cwd) {
2303
2321
  async function dispatch(method, params = {}) {
2304
2322
  if (method === "model/list") return loadModelCatalog(params);
2305
2323
  if (method === "mcpServerStatus/list") return claudeMcpStatus(params);
2324
+ if (method === "mcp/reconnect" || method === "mcp/login") {
2325
+ const session = lookupSession(params.sessionId || params.threadId);
2326
+ if (!session) throw new Error("Claude 세션이 아직 시작되지 않았습니다.");
2327
+ const requested = String(params.name || "").trim();
2328
+ const names = await reconnectClaudeMcp(session, requested);
2329
+ return { reconnected: names };
2330
+ }
2331
+ if (method === "mcp/toggle") {
2332
+ const session = lookupSession(params.sessionId || params.threadId);
2333
+ if (!session) throw new Error("Claude 세션이 아직 시작되지 않았습니다.");
2334
+ const name = String(params.name || "").trim();
2335
+ if (!name) throw new Error("변경할 Claude MCP 서버 이름이 없습니다.");
2336
+ await session.query.toggleMcpServer(name, Boolean(params.enabled));
2337
+ return { effectiveEnabled: Boolean(params.enabled) };
2338
+ }
2306
2339
  if (method === "plugin/list") return claudePluginCatalog(params);
2307
2340
  if (method === "plugin/installed") return claudePluginCatalog(params, true);
2308
2341
  if (method === "plugin/read") return claudePluginDetail(params);
@@ -2327,10 +2360,11 @@ async function dispatch(method, params = {}) {
2327
2360
  if (method === "plugin/set-enabled") {
2328
2361
  const id = String(params.pluginId || "");
2329
2362
  if (!id) throw new Error("변경할 Claude 플러그인 이름이 없습니다.");
2330
- const installed = await installedClaudePlugin(params, id);
2363
+ const requestedScope = String(params.scope || "").trim();
2364
+ const installed = requestedScope ? null : await installedClaudePlugin(params, id);
2331
2365
  await runClaudeCommand(params, [
2332
2366
  "plugin", params.enabled ? "enable" : "disable", id,
2333
- "--scope", installed?.scope || "user",
2367
+ "--scope", requestedScope || installed?.scope || "user",
2334
2368
  ]);
2335
2369
  return { effectiveEnabled: Boolean(params.enabled) };
2336
2370
  }
@@ -2573,6 +2607,21 @@ async function runSelfTest() {
2573
2607
  || mcpStatus[1]?.authStatus !== "notLoggedIn") {
2574
2608
  throw new Error(`Claude MCP status self-test failed: ${JSON.stringify(mcpStatus)}`);
2575
2609
  }
2610
+ const reconnected = [];
2611
+ const fakeMcpSession = {
2612
+ query: {
2613
+ mcpServerStatus: async () => [
2614
+ { name: "connected", status: "connected" },
2615
+ { name: "disabled", status: "disabled" },
2616
+ ],
2617
+ reconnectMcpServer: async (name) => reconnected.push(name),
2618
+ },
2619
+ };
2620
+ await reconnectClaudeMcp(fakeMcpSession, "");
2621
+ await reconnectClaudeMcp(fakeMcpSession, "disabled");
2622
+ if (reconnected.join(",") !== "connected,disabled") {
2623
+ throw new Error(`Claude MCP reconnect self-test failed: ${reconnected.join(",")}`);
2624
+ }
2576
2625
  const user = (uuid, text) => ({
2577
2626
  type: "user",
2578
2627
  uuid,
@@ -2803,11 +2852,12 @@ async function runSelfTest() {
2803
2852
  }
2804
2853
  const catalogModels = [
2805
2854
  {
2806
- value: "opus",
2807
- resolvedModel: "claude-opus-5",
2855
+ value: "opus[1m]",
2856
+ resolvedModel: "claude-opus-5[1m]",
2808
2857
  displayName: "Opus 5",
2809
2858
  supportsEffort: true,
2810
2859
  supportedEffortLevels: ["high", "max"],
2860
+ supportsAutoMode: true,
2811
2861
  },
2812
2862
  { value: "sonnet", resolvedModel: "claude-sonnet-5", displayName: "Sonnet 5" },
2813
2863
  {
@@ -2822,6 +2872,7 @@ async function runSelfTest() {
2822
2872
  if (catalog[0]?.displayName !== "Opus 5"
2823
2873
  || catalog[1]?.displayName !== "Opus 4.8"
2824
2874
  || catalog[1]?.model !== "claude:claude-opus-4-8"
2875
+ || catalog[1]?.supportsAutoMode !== true
2825
2876
  || catalog[1]?.supportedReasoningEfforts?.[1]?.reasoningEffort !== "max"
2826
2877
  || supportedEffort(
2827
2878
  modelCapabilities(catalogModels, "claude:claude-opus-4-8"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devez-vibe",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "description": "Stable terminal UI for Codex and Claude Agent SDK",
5
5
  "keywords": [
6
6
  "codex",