deepctl-cmd-update 0.2.4__tar.gz → 0.2.6__tar.gz
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.
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/PKG-INFO +1 -1
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/pyproject.toml +1 -1
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/plugin_update_check.py +18 -13
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/startup_check.py +10 -4
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/PKG-INFO +1 -1
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/README.md +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/setup.cfg +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/__init__.py +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/command.py +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/installation.py +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/models.py +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/version_check.py +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/SOURCES.txt +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/dependency_links.txt +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/entry_points.txt +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/requires.txt +0 -0
- {deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/top_level.txt +0 -0
{deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/plugin_update_check.py
RENAMED
|
@@ -256,18 +256,23 @@ def print_pending_plugin_notifications() -> None:
|
|
|
256
256
|
if not updates:
|
|
257
257
|
return
|
|
258
258
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
f"\033[33mPlugin update available: {u['name']} {u['current']} → {u['latest']}"
|
|
263
|
-
f" — run 'deepctl plugin update {u['name']}' to upgrade\033[0m\n"
|
|
264
|
-
)
|
|
265
|
-
else:
|
|
266
|
-
sys.stderr.write("\033[33mPlugin updates available:\033[0m\n")
|
|
267
|
-
for u in updates:
|
|
259
|
+
try:
|
|
260
|
+
if len(updates) == 1:
|
|
261
|
+
u = updates[0]
|
|
268
262
|
sys.stderr.write(
|
|
269
|
-
f"\033[
|
|
263
|
+
f"\033[33mPlugin update available: {u['name']} {u['current']} → {u['latest']}"
|
|
264
|
+
f" — run 'deepctl plugin update {u['name']}' to upgrade\033[0m\n"
|
|
270
265
|
)
|
|
271
|
-
|
|
272
|
-
"\033[
|
|
273
|
-
|
|
266
|
+
else:
|
|
267
|
+
sys.stderr.write("\033[33mPlugin updates available:\033[0m\n")
|
|
268
|
+
for u in updates:
|
|
269
|
+
sys.stderr.write(
|
|
270
|
+
f"\033[33m {u['name']} {u['current']} → {u['latest']}\033[0m\n"
|
|
271
|
+
)
|
|
272
|
+
sys.stderr.write(
|
|
273
|
+
"\033[33mRun 'deepctl plugin update <name>' to upgrade\033[0m\n"
|
|
274
|
+
)
|
|
275
|
+
except (BrokenPipeError, OSError, ValueError):
|
|
276
|
+
# The output stream closed (e.g. an MCP host disconnected stdio
|
|
277
|
+
# after `dg mcp` finished). These notifications are purely advisory.
|
|
278
|
+
pass
|
{deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/startup_check.py
RENAMED
|
@@ -197,7 +197,13 @@ def print_pending_notification() -> None:
|
|
|
197
197
|
latest = _result.get("latest")
|
|
198
198
|
current = _result.get("current")
|
|
199
199
|
if latest and current:
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
try:
|
|
201
|
+
sys.stderr.write(
|
|
202
|
+
f"\n\033[33m Update available: {current} → {latest}"
|
|
203
|
+
f" — run \033[1mdg update\033[0m\033[33m to upgrade\033[0m\n\n"
|
|
204
|
+
)
|
|
205
|
+
except (BrokenPipeError, OSError, ValueError):
|
|
206
|
+
# The output stream closed (e.g. an MCP host disconnected stdio
|
|
207
|
+
# after `dg mcp` finished). Nothing useful to do — the notification
|
|
208
|
+
# is purely advisory.
|
|
209
|
+
pass
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/installation.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/version_check.py
RENAMED
|
File without changes
|
{deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/requires.txt
RENAMED
|
File without changes
|
{deepctl_cmd_update-0.2.4 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/top_level.txt
RENAMED
|
File without changes
|