@getmagical/cli 0.15.0 → 0.15.5

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.
@@ -13,7 +13,7 @@ import zlib
13
13
  from datetime import datetime, timezone
14
14
  from typing import Any, BinaryIO
15
15
 
16
- EXPECTED_MITMPROXY_VERSION = "12.2.3"
16
+ SUPPORTED_MITMPROXY_VERSIONS = ("12.2.3", "12.3.0", "12.3.1")
17
17
  MAX_REQUEST_BYTES = 64 * 1024
18
18
  READ_CHUNK_BYTES = 64 * 1024
19
19
  EXCHANGE_REFERENCE_PATTERN = re.compile(
@@ -487,12 +487,12 @@ def main() -> int:
487
487
  except ImportError as error:
488
488
  raise ArchiveError(
489
489
  "RUNTIME_UNAVAILABLE",
490
- "Python environment does not contain mitmproxy 12.2.3.",
490
+ "Python environment does not contain mitmproxy. Install mitmproxy==12.3.1.",
491
491
  ) from error
492
- if version.VERSION != EXPECTED_MITMPROXY_VERSION:
492
+ if version.VERSION not in SUPPORTED_MITMPROXY_VERSIONS:
493
493
  raise ArchiveError(
494
494
  "RUNTIME_VERSION_MISMATCH",
495
- f"Expected mitmproxy {EXPECTED_MITMPROXY_VERSION}.",
495
+ f"Expected mitmproxy {' or '.join(SUPPORTED_MITMPROXY_VERSIONS)}.",
496
496
  )
497
497
  archive_path = require_string(request, "archivePath")
498
498
  size_bytes, archive_sha256 = archive_identity(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getmagical/cli",
3
- "version": "0.15.0",
3
+ "version": "0.15.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Magical CLI for shared MCP operations",