Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b5f067a
refactor(messaging): migrate channel lifecycle hooks
sandl99 Jun 12, 2026
b99378a
refactor(messaging): finish manifest channel migration
sandl99 Jun 12, 2026
067ad60
fix(messaging): address manifest hook review feedback
sandl99 Jun 12, 2026
f761d0b
refactor(messaging): simplify channel hook manifests
sandl99 Jun 13, 2026
34ab674
Merge remote-tracking branch 'origin/main' into refactor/messaging-ch…
sandl99 Jun 13, 2026
0de062b
refactor(messaging): colocate wechat host qr login
sandl99 Jun 13, 2026
59cf532
fix(messaging): address metadata review comments
sandl99 Jun 13, 2026
5c71c1f
refactor(messaging): compact persisted plan state
sandl99 Jun 13, 2026
f37ff32
Merge remote-tracking branch 'origin/main' into refactor/messaging-ch…
sandl99 Jun 14, 2026
cbe09ef
fix(messaging): preserve persisted channel plan fields
sandl99 Jun 14, 2026
72ccad9
fix(messaging): bake runtime setup artifact
sandl99 Jun 14, 2026
c02fedb
test(e2e): align WhatsApp preload guard assertion
sandl99 Jun 14, 2026
f7c0b68
Merge branch 'main' into refactor/messaging-channel-manifest-stragglers
sandl99 Jun 14, 2026
75075b0
refactor(messaging): move Slack deny feedback into runtime preload
sandl99 Jun 14, 2026
e497815
refactor(messaging): install plugins from package plan
sandl99 Jun 14, 2026
a465123
fix(messaging): validate plan object array entries
sandl99 Jun 14, 2026
3b46a32
Merge remote-tracking branch 'origin/refactor/messaging-channel-manif…
sandl99 Jun 14, 2026
848c9ec
refactor(messaging): move runtime preload sources to ts
sandl99 Jun 14, 2026
9fc3141
fix(messaging): patch Slack ESM helper imports
sandl99 Jun 15, 2026
f7ba9f7
fix(messaging): type channel diagnostics preloads
sandl99 Jun 15, 2026
c535a6e
fix(messaging): compile runtime preloads for sandbox image
sandl99 Jun 15, 2026
9b85f89
fix(messaging): compile runtime preloads narrowly
sandl99 Jun 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/test-file-size-budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test/channels-add-preset.test.ts": 1871,
"test/generate-openclaw-config.test.ts": 1990,
"test/install-preflight.test.ts": 4207,
"test/nemoclaw-start.test.ts": 5231,
"test/nemoclaw-start.test.ts": 5230,
"test/onboard-messaging.test.ts": 2063,
"test/onboard-selection.test.ts": 6891,
"test/onboard.test.ts": 4774,
Expand Down
4 changes: 1 addition & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,7 @@ usage() {
printf " BRAVE_API_KEY Enable Brave Search with this API key (kept behind OpenShell provider rewrite)\n"
printf " NEMOCLAW_EXPERIMENTAL=1 Show experimental/local options\n"
printf " CHAT_UI_URL Chat UI URL to open after setup\n"
printf " DISCORD_BOT_TOKEN Auto-enable Discord policy support\n"
printf " SLACK_BOT_TOKEN Auto-enable Slack policy support\n"
printf " TELEGRAM_BOT_TOKEN Auto-enable Telegram policy support\n"
printf " Messaging credential env vars Auto-enable matching messaging policy support\n"
printf "\n"
}

Expand Down
38 changes: 34 additions & 4 deletions scripts/lib/sandbox-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,41 @@ harden_config_symlinks() {
# of config files is not possible — Landlock enforces read-only at
# the kernel level.
configure_messaging_channels() {
[ -n "${TELEGRAM_BOT_TOKEN:-}" ] || [ -n "${DISCORD_BOT_TOKEN:-}" ] || [ -n "${SLACK_BOT_TOKEN:-}" ] || return 0
local channels
channels="$(read_messaging_plan_channels || true)"
[ -n "$channels" ] || return 0

echo "[channels] Messaging channels active (baked at build time):" >&2
[ -n "${TELEGRAM_BOT_TOKEN:-}" ] && echo "[channels] telegram" >&2
[ -n "${DISCORD_BOT_TOKEN:-}" ] && echo "[channels] discord" >&2
[ -n "${SLACK_BOT_TOKEN:-}" ] && echo "[channels] slack" >&2
while IFS= read -r channel; do
[ -n "$channel" ] || continue
echo "[channels] $channel" >&2
done <<EOF
$channels
EOF
return 0
}

read_messaging_plan_channels() {
[ -n "${NEMOCLAW_MESSAGING_PLAN_B64:-}" ] || return 0
python3 - <<'PY'
import base64
import json
import os

raw = os.environ.get("NEMOCLAW_MESSAGING_PLAN_B64", "").strip()
if not raw:
raise SystemExit(0)
try:
plan = json.loads(base64.b64decode(raw).decode("utf-8"))
except Exception:
raise SystemExit(0)
seen = set()
for item in plan.get("channels", []):
channel = str(item.get("channelId") or "").strip().lower()
if not channel or channel in seen:
continue
if item.get("active") is True and item.get("disabled") is not True:
seen.add(channel)
print(channel)
PY
}
Loading
Loading