@oneciel-ai/claude-any 0.1.72 → 0.1.73

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 (2) hide show
  1. package/claude_any.py +12 -9
  2. package/package.json +1 -1
package/claude_any.py CHANGED
@@ -8759,6 +8759,10 @@ def channel_specs(cfg: dict[str, Any] | None = None) -> list[str]:
8759
8759
  return channels
8760
8760
 
8761
8761
 
8762
+ def is_channel_spec_tagged(spec: str) -> bool:
8763
+ return spec.startswith("plugin:") or spec.startswith("server:")
8764
+
8765
+
8762
8766
  def channel_development_enabled(cfg: dict[str, Any] | None = None) -> bool:
8763
8767
  cfg = cfg or load_config()
8764
8768
  return bool(cfg.setdefault("claude_code", {}).get("development_channels", False))
@@ -8784,6 +8788,8 @@ def add_channel_spec(spec: str, *, development: bool = False) -> list[str]:
8784
8788
  spec = spec.strip()
8785
8789
  if not spec:
8786
8790
  return ["Channel spec was empty."]
8791
+ if not is_channel_spec_tagged(spec):
8792
+ return ["Channel spec must start with plugin: or server:."]
8787
8793
  cfg = load_config()
8788
8794
  cc = cfg.setdefault("claude_code", {})
8789
8795
  channels = channel_specs(cfg)
@@ -12901,15 +12907,12 @@ def has_passthrough_option(passthrough: list[str], *names: str) -> bool:
12901
12907
 
12902
12908
 
12903
12909
  def claude_channel_args(cfg: dict[str, Any], passthrough: list[str]) -> list[str]:
12904
- channels = channel_specs(cfg)
12905
- if not channels or has_passthrough_option(passthrough, "--channels"):
12910
+ channels = [spec for spec in channel_specs(cfg) if is_channel_spec_tagged(spec)]
12911
+ if not channels or has_passthrough_option(passthrough, "--channels", "--dangerously-load-development-channels"):
12906
12912
  return []
12907
- args: list[str] = []
12908
- if channel_development_enabled(cfg) and not has_passthrough_option(passthrough, "--dangerously-load-development-channels"):
12909
- args.append("--dangerously-load-development-channels")
12910
- args.append("--channels")
12911
- args.extend(channels)
12912
- return args
12913
+ if channel_development_enabled(cfg):
12914
+ return ["--dangerously-load-development-channels", *channels]
12915
+ return ["--channels", *channels]
12913
12916
 
12914
12917
 
12915
12918
  def write_web_tools_mcp_config(cfg: dict[str, Any]) -> Path:
@@ -13324,7 +13327,7 @@ Headless setup flags, namespaced to avoid Claude CLI collisions:
13324
13327
  claude-any --ca-channel SPEC Add an official/approved Claude Code channel
13325
13328
  claude-any --ca-dev-channel SPEC Add a development channel and enable dev loading
13326
13329
  claude-any --ca-development-channels on|off
13327
- Auto-add --dangerously-load-development-channels
13330
+ Use tagged specs with --dangerously-load-development-channels
13328
13331
  claude-any --ca-clear-channels Clear saved channel auto-injection specs
13329
13332
  claude-any --ca-no-self-update-check
13330
13333
  Skip Claude Any npm self-update check
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneciel-ai/claude-any",
3
- "version": "0.1.72",
3
+ "version": "0.1.73",
4
4
  "description": "Claude Code provider selector for Anthropic, Ollama, Ollama Cloud, vLLM, NVIDIA hosted, and self-hosted NIM.",
5
5
  "license": "MIT",
6
6
  "author": "One Ciel LLC",