deepctl-cmd-plugin 0.1.11__tar.gz → 0.1.12__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.
@@ -157,4 +157,6 @@ Thumbs.db
157
157
  # tmps
158
158
  tmp_chatface/
159
159
  tmp_community-turbo/
160
- tmp_deepgram-cli/
160
+ tmp_deepgram-cli/
161
+ # Local Netlify folder
162
+ .netlify
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.12](https://github.com/deepgram/cli/compare/deepctl-cmd-plugin-v0.1.11...deepctl-cmd-plugin-v0.1.12) (2026-05-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * **telemetry:** full Sentry observability + per-command usage tags ([#75](https://github.com/deepgram/cli/issues/75)) ([0fe43d2](https://github.com/deepgram/cli/commit/0fe43d2e00c58d8101ef2bd4b5aaf4437db9f0cf))
9
+
3
10
  ## [0.1.11](https://github.com/deepgram/cli/compare/deepctl-cmd-plugin-v0.1.10...deepctl-cmd-plugin-v0.1.11) (2026-03-09)
4
11
 
5
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepctl-cmd-plugin
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: Plugin management command for deepctl
5
5
  Author-email: Deepgram DevRel <devrel@deepgram.com>
6
6
  Requires-Python: >=3.10
@@ -2,7 +2,7 @@
2
2
  name = "deepctl-cmd-plugin"
3
3
  description = "Plugin management command for deepctl"
4
4
  readme = "README.md"
5
- version = "0.1.11" # x-release-please-version
5
+ version = "0.1.12" # x-release-please-version
6
6
  requires-python = ">=3.10"
7
7
  authors = [{ name = "Deepgram DevRel", email = "devrel@deepgram.com" }]
8
8
  dependencies = [
@@ -79,12 +79,11 @@ class TestPluginCommand:
79
79
  """Test getting plugin state from existing file."""
80
80
  test_state = {"plugins": {"test-plugin": {"version": "1.0.0"}}}
81
81
 
82
- with patch.object(Path, "exists", return_value=True):
83
- with patch.object(
84
- Path, "read_text", return_value=json.dumps(test_state)
85
- ):
86
- state = self.command._get_plugin_state()
87
- assert state == test_state
82
+ with patch.object(Path, "exists", return_value=True), patch.object(
83
+ Path, "read_text", return_value=json.dumps(test_state)
84
+ ):
85
+ state = self.command._get_plugin_state()
86
+ assert state == test_state
88
87
 
89
88
  def test_save_plugin_state(self) -> None:
90
89
  """Test saving plugin state."""
@@ -140,34 +139,32 @@ class TestPluginCommand:
140
139
  # Mock state and version operations
141
140
  with patch.object(
142
141
  self.command, "_get_plugin_state"
143
- ) as mock_get_state:
144
- with patch.object(
145
- self.command, "_save_plugin_state"
146
- ) as mock_save_state:
147
- with patch.object(
148
- self.command,
149
- "_get_package_version",
150
- return_value="1.0.0",
151
- ):
152
- mock_get_state.return_value = {"plugins": {}}
153
-
154
- options = PluginInstallOptions(
155
- package="test-plugin"
156
- )
157
- result = self.command.install_plugin(
158
- self.config,
159
- self.auth_manager,
160
- self.client,
161
- options,
162
- )
163
-
164
- assert result.success is True
165
- assert "Successfully installed" in result.message
166
- # Strategy should use the plugin env python
167
- cmd = mock_strategy_run.call_args[0][0]
168
- assert cmd[0] == "/path/to/plugin/python"
169
- # Should save plugin state
170
- mock_save_state.assert_called_once()
142
+ ) as mock_get_state, patch.object(
143
+ self.command, "_save_plugin_state"
144
+ ) as mock_save_state, patch.object(
145
+ self.command,
146
+ "_get_package_version",
147
+ return_value="1.0.0",
148
+ ):
149
+ mock_get_state.return_value = {"plugins": {}}
150
+
151
+ options = PluginInstallOptions(
152
+ package="test-plugin"
153
+ )
154
+ result = self.command.install_plugin(
155
+ self.config,
156
+ self.auth_manager,
157
+ self.client,
158
+ options,
159
+ )
160
+
161
+ assert result.success is True
162
+ assert "Successfully installed" in result.message
163
+ # Strategy should use the plugin env python
164
+ cmd = mock_strategy_run.call_args[0][0]
165
+ assert cmd[0] == "/path/to/plugin/python"
166
+ # Should save plugin state
167
+ mock_save_state.assert_called_once()
171
168
 
172
169
  def test_install_plugin_git_url(self) -> None:
173
170
  """Test handling git URL in install options."""
@@ -317,32 +314,29 @@ class TestPluginCommand:
317
314
 
318
315
  with patch.object(
319
316
  self.command, "_discover_plugins", return_value=test_plugins
320
- ):
321
- with patch(
322
- "deepctl_cmd_plugin.command.console.print"
323
- ) as mock_print:
324
- with patch(
325
- "deepctl_cmd_plugin.command.print_info"
326
- ) as mock_print_info:
327
- with patch.object(
328
- self.command.detector, "detect"
329
- ) as mock_detect:
330
- mock_detect.return_value.method = InstallMethod.SYSTEM
331
-
332
- self.command.list_plugins(
333
- self.config,
334
- self.auth_manager,
335
- self.client,
336
- verbose=True,
337
- )
338
-
339
- # Should print a table
340
- mock_print.assert_called_once()
341
- # Should show system installation info via print_info
342
- assert any(
343
- "system" in str(call).lower()
344
- for call in mock_print_info.call_args_list
345
- )
317
+ ), patch(
318
+ "deepctl_cmd_plugin.command.console.print"
319
+ ) as mock_print, patch(
320
+ "deepctl_cmd_plugin.command.print_info"
321
+ ) as mock_print_info, patch.object(
322
+ self.command.detector, "detect"
323
+ ) as mock_detect:
324
+ mock_detect.return_value.method = InstallMethod.SYSTEM
325
+
326
+ self.command.list_plugins(
327
+ self.config,
328
+ self.auth_manager,
329
+ self.client,
330
+ verbose=True,
331
+ )
332
+
333
+ # Should print a table
334
+ mock_print.assert_called_once()
335
+ # Should show system installation info via print_info
336
+ assert any(
337
+ "system" in str(call).lower()
338
+ for call in mock_print_info.call_args_list
339
+ )
346
340
 
347
341
  def test_setup_commands(self) -> None:
348
342
  """Test that all subcommands are properly set up."""
@@ -396,21 +390,20 @@ class TestPluginCommand:
396
390
  # Test search all
397
391
  with patch(
398
392
  "deepctl_cmd_plugin.command.console.print"
399
- ) as mock_print:
400
- with patch(
401
- "deepctl_cmd_plugin.command.print_info"
402
- ) as mock_info:
403
- self.command._handle_search(
404
- self.config, self.auth_manager, self.client
405
- )
406
-
407
- # Should print a table
408
- mock_print.assert_called_once()
409
- # Should show install hint
410
- assert any(
411
- "install" in str(call)
412
- for call in mock_info.call_args_list
413
- )
393
+ ) as mock_print, patch(
394
+ "deepctl_cmd_plugin.command.print_info"
395
+ ) as mock_info:
396
+ self.command._handle_search(
397
+ self.config, self.auth_manager, self.client
398
+ )
399
+
400
+ # Should print a table
401
+ mock_print.assert_called_once()
402
+ # Should show install hint
403
+ assert any(
404
+ "install" in str(call)
405
+ for call in mock_info.call_args_list
406
+ )
414
407
 
415
408
  # Test search with query
416
409
  with patch(