switchroom 0.13.60 → 0.13.62
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 +460 -361
- package/dist/host-control/main.js +148 -148
- package/dist/vault/approvals/kernel-server.js +82 -82
- package/dist/vault/broker/server.js +98 -83
- package/package.json +1 -1
- package/profiles/_base/start.sh.hbs +23 -0
- package/telegram-plugin/answer-stream.ts +1 -1
- package/telegram-plugin/dist/bridge/bridge.js +112 -112
- package/telegram-plugin/dist/gateway/gateway.js +221 -193
- package/telegram-plugin/dist/server.js +160 -160
- package/telegram-plugin/gateway/gateway.ts +2 -2
- package/telegram-plugin/silence-poke.ts +16 -0
- package/telegram-plugin/tests/silence-poke.test.ts +37 -0
- package/telegram-plugin/tests/tool-activity-summary.test.ts +34 -6
- package/telegram-plugin/tool-activity-summary.ts +37 -1
package/package.json
CHANGED
|
@@ -598,6 +598,29 @@ if [ -d "$SR_FLEET_DIR" ]; then
|
|
|
598
598
|
SR_FLEET_ARG="--add-dir $SR_FLEET_DIR"
|
|
599
599
|
fi
|
|
600
600
|
|
|
601
|
+
# Webkite credential pre-auth — fetch Cloudflare + Firecrawl creds from
|
|
602
|
+
# the vault-broker at boot and export into the agent process env so
|
|
603
|
+
# `webkite mcp` (spawned by claude with sanitized env per .mcp.json)
|
|
604
|
+
# inherits them via the agent's env on `exec claude`. Best-effort: a
|
|
605
|
+
# missing key falls webkite back to cloakbrowser-only (no cloud render),
|
|
606
|
+
# which still works for most sites. The broker enforces the per-key
|
|
607
|
+
# ACL — if the operator hasn't `--allow`ed this agent on the key, the
|
|
608
|
+
# get returns empty and webkite stays cloakbrowser-only.
|
|
609
|
+
if command -v switchroom >/dev/null 2>&1; then
|
|
610
|
+
for sr_wk_pair in \
|
|
611
|
+
"CLOUDFLARE_ACCOUNT_ID:webkite/cloudflare-account-id" \
|
|
612
|
+
"CLOUDFLARE_API_TOKEN:webkite/cloudflare-api-token" \
|
|
613
|
+
"FIRECRAWL_API_KEY:webkite/firecrawl-api-key"; do
|
|
614
|
+
sr_wk_env="${sr_wk_pair%%:*}"
|
|
615
|
+
sr_wk_key="${sr_wk_pair##*:}"
|
|
616
|
+
sr_wk_val="$(switchroom vault get "$sr_wk_key" 2>/dev/null || true)"
|
|
617
|
+
if [ -n "$sr_wk_val" ]; then
|
|
618
|
+
export "$sr_wk_env=$sr_wk_val"
|
|
619
|
+
fi
|
|
620
|
+
done
|
|
621
|
+
unset sr_wk_pair sr_wk_env sr_wk_key sr_wk_val
|
|
622
|
+
fi
|
|
623
|
+
|
|
601
624
|
{{#if useSwitchroomPlugin}}
|
|
602
625
|
if [ -n "$APPEND_PROMPT" ]; then
|
|
603
626
|
exec claude $CONTINUE_FLAG --dangerously-load-development-channels server:switchroom-telegram --plugin-dir "{{securityPluginDir}}"{{#if hindsightEnabled}} --plugin-dir "{{agentDir}}/.claude/plugins/hindsight-memory"{{/if}} $SR_FLEET_ARG{{#if modelQ}} --model {{{modelQ}}}{{/if}}{{#if thinkingEffort}} --effort {{thinkingEffort}}{{/if}}{{#if permissionMode}} --permission-mode {{permissionMode}}{{/if}}{{#if fallbackModelQ}} --fallback-model {{{fallbackModelQ}}}{{/if}} --append-system-prompt "$APPEND_PROMPT"{{#if dangerousMode}} --dangerously-skip-permissions{{/if}}{{#if extraCliArgs}}{{{extraCliArgs}}}{{/if}}
|
|
@@ -82,7 +82,7 @@ export interface AnswerStreamConfig {
|
|
|
82
82
|
chatId: string,
|
|
83
83
|
draftId: number,
|
|
84
84
|
text: string,
|
|
85
|
-
params?: { message_thread_id?: number },
|
|
85
|
+
params?: { message_thread_id?: number; parse_mode?: 'HTML' },
|
|
86
86
|
) => Promise<unknown>
|
|
87
87
|
sendMessage: (
|
|
88
88
|
chatId: string,
|