mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-07-12 19:00:58 +08:00
f797024770
- setup/register.ts: import the channels barrel (registration-only, no factory invocation), require --channel explicitly, resolve wiring engage defaults and unknown_sender_policy through the declaration helpers gated on hasDeclaredChannelDefaults (legacy heuristic/'strict' for undeclared adapters), add --is-group / --engage-mode / --unknown-sender-policy flags with --trigger kept as the explicit pattern override - scripts/init-first-agent.ts: same barrel import + helper gating for the DM wiring and messaging-group policy; new optional --engage-pattern flag; sender_scope/'drop' hardcodes kept as deliberate owner-bootstrap choices - scripts/init-cli-agent.ts: mg + wiring values now come from the cli adapter's declaration (value-identical to the old hardcodes) - move validateEngageAgainstChannel + EngageValues from src/cli/resources/wirings.ts to src/channels/channel-defaults.ts so ncl and the setup register step share one mention/pattern/sticky validator Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkDAnLGWJUqjgJNXpyqGZ