deepctl-cmd-update 0.2.5__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.
Files changed (17) hide show
  1. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/PKG-INFO +1 -1
  2. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/pyproject.toml +1 -1
  3. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/plugin_update_check.py +18 -13
  4. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/startup_check.py +10 -4
  5. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/PKG-INFO +1 -1
  6. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/README.md +0 -0
  7. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/setup.cfg +0 -0
  8. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/__init__.py +0 -0
  9. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/command.py +0 -0
  10. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/installation.py +0 -0
  11. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/models.py +0 -0
  12. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update/version_check.py +0 -0
  13. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/SOURCES.txt +0 -0
  14. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/dependency_links.txt +0 -0
  15. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/entry_points.txt +0 -0
  16. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/requires.txt +0 -0
  17. {deepctl_cmd_update-0.2.5 → deepctl_cmd_update-0.2.6}/src/deepctl_cmd_update.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepctl-cmd-update
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Update command for deepctl
5
5
  Author-email: Deepgram <devrel@deepgram.com>
6
6
  Maintainer-email: Deepgram <devrel@deepgram.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "deepctl-cmd-update"
7
- version = "0.2.5" # x-release-please-version
7
+ version = "0.2.6" # x-release-please-version
8
8
  description = "Update command for deepctl"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -256,18 +256,23 @@ def print_pending_plugin_notifications() -> None:
256
256
  if not updates:
257
257
  return
258
258
 
259
- if len(updates) == 1:
260
- u = updates[0]
261
- sys.stderr.write(
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[33m {u['name']} {u['current']} → {u['latest']}\033[0m\n"
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
- sys.stderr.write(
272
- "\033[33mRun 'deepctl plugin update <name>' to upgrade\033[0m\n"
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
@@ -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
- sys.stderr.write(
201
- f"\n\033[33m Update available: {current} → {latest}"
202
- f" — run \033[1mdg update\033[0m\033[33m to upgrade\033[0m\n\n"
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepctl-cmd-update
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Update command for deepctl
5
5
  Author-email: Deepgram <devrel@deepgram.com>
6
6
  Maintainer-email: Deepgram <devrel@deepgram.com>