@oneciel-ai/claude-any 0.1.72 → 0.1.74
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.
- package/README.md +1 -1
- package/claude_any.py +14 -11
- package/docs/manual.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/claude_any.py
CHANGED
|
@@ -102,7 +102,7 @@ OFFICIAL_CHANNEL_PLUGINS = {
|
|
|
102
102
|
"fakechat": "plugin:fakechat@claude-plugins-official",
|
|
103
103
|
}
|
|
104
104
|
APP_NAME = "Claude Any"
|
|
105
|
-
VERSION = "0.1.
|
|
105
|
+
VERSION = "0.1.74"
|
|
106
106
|
CREDITS = "Credits: One Ciel LLC"
|
|
107
107
|
|
|
108
108
|
LOG_LEVELS = {"SILENT": 0, "ERROR": 1, "WARN": 2, "INFO": 3, "DEBUG": 4, "TRACE": 5}
|
|
@@ -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
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
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:
|
|
@@ -13091,7 +13094,7 @@ def run_claude_any_update_check(enabled: bool = True) -> bool:
|
|
|
13091
13094
|
return False
|
|
13092
13095
|
try:
|
|
13093
13096
|
update = subprocess.run(
|
|
13094
|
-
[npm, "
|
|
13097
|
+
[npm, "install", "-g", "@oneciel-ai/claude-any@latest"],
|
|
13095
13098
|
text=True,
|
|
13096
13099
|
stdout=subprocess.PIPE,
|
|
13097
13100
|
stderr=subprocess.STDOUT,
|
|
@@ -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
|
-
|
|
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/docs/manual.md
CHANGED
package/package.json
CHANGED