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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.13.60",
3
+ "version": "0.13.62",
4
4
  "description": "Run Claude Code 24/7 on your Claude Pro/Max subscription over Telegram. Open-source alternative to OpenClaw and NanoClaw — no API keys.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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,