switchroom 0.14.6 → 0.14.8
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/dist/agent-scheduler/index.js +80 -80
- package/dist/auth-broker/index.js +80 -80
- package/dist/cli/drive-write-pretool.mjs +10 -10
- package/dist/cli/notion-write-pretool.mjs +82 -82
- package/dist/cli/skill-validate-pretool.mjs +72 -72
- package/dist/cli/switchroom.js +396 -358
- package/dist/host-control/main.js +148 -148
- package/dist/vault/approvals/kernel-server.js +82 -82
- package/dist/vault/broker/server.js +83 -83
- package/examples/switchroom.yaml +1 -1
- package/package.json +1 -1
- package/profiles/_base/start.sh.hbs +23 -0
- package/skills/switchroom-status/SKILL.md +1 -1
- package/telegram-plugin/dist/bridge/bridge.js +112 -112
- package/telegram-plugin/dist/gateway/gateway.js +583 -284
- package/telegram-plugin/dist/server.js +160 -160
- package/telegram-plugin/gateway/config-approval-handler.ts +36 -0
- package/telegram-plugin/gateway/gateway.ts +296 -180
- package/telegram-plugin/gateway/hostd-dispatch.ts +2 -1
- package/telegram-plugin/permission-diff.ts +382 -0
- package/telegram-plugin/tests/always-allow-correlation.test.ts +147 -0
- package/telegram-plugin/tests/always-allow-grant.test.ts +84 -88
- package/telegram-plugin/tests/permission-diff.test.ts +336 -0
- package/telegram-plugin/tests/tool-activity-summary.test.ts +25 -13
- package/telegram-plugin/tool-activity-summary.ts +27 -15
package/examples/switchroom.yaml
CHANGED
|
@@ -248,7 +248,7 @@ agents:
|
|
|
248
248
|
# topic_emoji: "💻"
|
|
249
249
|
# bot_token: "vault:telegram-dev-bot-token" # its own bot
|
|
250
250
|
# extends: coder # inherits from inline profile above
|
|
251
|
-
# model: claude-opus-4-
|
|
251
|
+
# model: claude-opus-4-8 # override defaults.model for this agent
|
|
252
252
|
# memory:
|
|
253
253
|
# collection: coding
|
|
254
254
|
# cli_args: ["--effort", "high"] # escape hatch: extra exec claude flags
|
package/package.json
CHANGED
|
@@ -183,6 +183,29 @@ export PATH="$HOME/.bun/bin:$PATH"
|
|
|
183
183
|
# all land in these paths; survival across container restart is via the
|
|
184
184
|
# /state/agent bind mount (HOME=/state/agent/home).
|
|
185
185
|
export PATH="$HOME/.local/bin:$HOME/bin:$HOME/.npm-global/bin:$PATH"
|
|
186
|
+
# claude is delivered ONLY by the agent image (/usr/local, root-owned,
|
|
187
|
+
# version-pinned, rebuilt deliberately via `switchroom update`). The
|
|
188
|
+
# persistent-HOME dirs above precede /usr/local/bin on PATH so agents
|
|
189
|
+
# can install their own npm/pip tools — but that same precedence means
|
|
190
|
+
# a stray `claude` in the writable, state-persisted npm prefix would
|
|
191
|
+
# silently SHADOW the image's, surviving every restart and drifting the
|
|
192
|
+
# fleet off the tested binary (this bit test-harness with a months-old
|
|
193
|
+
# self-installed 2.1.139). DISABLE_AUTOUPDATER=1 stops claude's own
|
|
194
|
+
# self-update, but can't undo a pre-existing or manual drop. So prune
|
|
195
|
+
# any user-local claude at boot — narrowly, by name, leaving every
|
|
196
|
+
# other user-installed package intact — guaranteeing `claude` always
|
|
197
|
+
# resolves to the image binary. Idempotent; no-op when clean.
|
|
198
|
+
for _stray_claude in \
|
|
199
|
+
"$HOME/.npm-global/bin/claude" \
|
|
200
|
+
"$HOME/.local/bin/claude" \
|
|
201
|
+
"$HOME/bin/claude"; do
|
|
202
|
+
if [ -e "$_stray_claude" ] || [ -L "$_stray_claude" ]; then
|
|
203
|
+
echo "start.sh: pruning user-local claude shadow at $_stray_claude (image binary is authoritative)" >&2
|
|
204
|
+
rm -f "$_stray_claude"
|
|
205
|
+
fi
|
|
206
|
+
done
|
|
207
|
+
rm -rf "$HOME/.npm-global/lib/node_modules/@anthropic-ai/claude-code" 2>/dev/null || true
|
|
208
|
+
unset _stray_claude
|
|
186
209
|
export CLAUDE_CONFIG_DIR="{{agentDir}}/.claude"
|
|
187
210
|
# CLAUDE_CODE_OAUTH_TOKEN injection was removed with RFC H (auth-broker).
|
|
188
211
|
# Claude reads .credentials.json directly; the broker is the sole writer
|