Skip to content

"Vibe-Trading: Your Personal Trading Agent"

Merge remote-tracking branch 'origin/main' into feat/slack-ui-hot-update

shadowinlife31e05e577b2e
diff --cc agent/src/channels/config_meta.py
index b4c1961e7,a6584ac7d..350df20cc
--- a/agent/src/channels/config_meta.py
+++ b/agent/src/channels/config_meta.py
@@@ -24,9 -24,7 +24,8 @@@ from __future__ import annotation
import logging
import re
from typing import Any
+from typing import NotRequired
from typing import TypedDict
- from urllib.parse import urlsplit, urlunsplit
from src.channels.registry import load_channel_class
diff --cc agent/tests/test_channel_authoring_contract.py
index 3e19755eb,2cfbf7721..1a574c394
--- a/agent/tests/test_channel_authoring_contract.py
+++ b/agent/tests/test_channel_authoring_contract.py
@@@ -16,24 -16,14 +16,24 @@@ from pathlib import Pat
import pytest
- from src.channels.config_meta import channel_field_hints, split_values_secrets
+ from src.channels.config_meta import channel_field_hints, is_secret_key, split_values_secrets
from src.channels.registry import discover_channel_names, load_channel_class
+# Hand-written hints replace derived ones, so a channel may deliberately keep
+# scalar keys file-configured. Each exemption is an audited design decision,
+# not a gap: slack's transport knobs — SlackChannel.start() only accepts
+# mode == "socket" (any other mode logs and returns), so mode/webhook_path
+# have no meaningful form widget (feishu precedent: transport knobs are not
+# exposed). See _slack_hints() in config_meta.py.
+_FILE_CONFIGURED_SCALARS: dict[str, set[str]] = {
+ "slack": {"mode", "webhook_path"},
+}
+
- @pytest.mark.parametrize("name", discover_channel_names())
- def test_every_discovered_channel_satisfies_the_authoring_contract(name) -> None:
+ def _load_channel_class_or_skip(name: str):
+ """Load a discovered channel; skip only on a genuine missing-dependency envelope."""
try:
- cls = load_channel_class(name)
+ return load_channel_class(name)
except ImportError as exc:
# Only the adapter's explicit missing-dependency envelope can skip.
# An arbitrary import or missing BaseChannel subclass must fail.