polygram 0.7.2 → 0.7.3

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "polygram",
4
- "version": "0.7.2",
4
+ "version": "0.7.3",
5
5
  "description": "Telegram integration for Claude Code that preserves the OpenClaw per-chat session model. Migration target for OpenClaw users. Multi-bot, multi-chat, per-topic isolation; SQLite transcripts; inline-keyboard approvals. Bundles /polygram:status|logs|pair-code|approvals admin commands and a history skill.",
6
6
  "keywords": [
7
7
  "telegram",
@@ -15,6 +15,8 @@
15
15
  "attachmentConcurrency": 6,
16
16
  "queueWarnThreshold": 20,
17
17
  "replayWindowMs": 180000,
18
+ "_comment_chrome": "Opt-in to Claude Code's Chrome-extension browser-automation integration. Default false. Requires the 'Claude in Chrome' extension installed in the daemon-user's Chrome browser AND a live GUI session (Chrome must be running). See https://code.claude.com/docs/en/chrome. Per-chat override via `config.chats.<id>.chrome`.",
19
+ "chrome": false,
18
20
  "_comment_pairedChatDefaults": "When a user sends /pair <CODE> from a private chat that isn't in config.chats yet, polygram auto-creates a chat entry using these defaults (merged over top-level `defaults`). Leave out `cwd` at your peril — without it, auto-onboarded DMs have no working directory and pairing will fail.",
19
21
  "pairedChatDefaults": {
20
22
  "agent": "admin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Telegram daemon for Claude Code that preserves the OpenClaw per-chat session model. Migration path for OpenClaw users moving to Claude Code.",
5
5
  "main": "lib/ipc-client.js",
6
6
  "bin": {
package/polygram.js CHANGED
@@ -640,6 +640,19 @@ let pm = null; // ProcessManager, created in main()
640
640
 
641
641
  function spawnClaude(sessionKey, ctx) {
642
642
  const { chatConfig, existingSessionId, label, chatId } = ctx;
643
+ // 0.7.3: Claude Code's Chrome-extension integration (browser
644
+ // automation via the "Claude in Chrome" extension) is OPT-IN and
645
+ // NOT enabled by default in `claude`. Polygram lets chats turn it
646
+ // on via `config.chats.<id>.chrome: true` (chat-level wins) or
647
+ // `config.bot.chrome: true` (per-bot default). When opting in, the
648
+ // extension must be installed in the daemon-user's Chrome and the
649
+ // user must have a live Aqua session (so Chrome is running). Falls
650
+ // back to --no-chrome for chats that don't opt in (matches our
651
+ // pre-0.7.3 default — defensive against any "enabled by default"
652
+ // that might have been set in claude's persistent state).
653
+ const wantChrome = chatConfig.chrome != null
654
+ ? chatConfig.chrome === true
655
+ : config.bot?.chrome === true;
643
656
  const args = [
644
657
  '-p',
645
658
  '--input-format', 'stream-json',
@@ -648,7 +661,7 @@ function spawnClaude(sessionKey, ctx) {
648
661
  '--model', chatConfig.model || config.defaults.model,
649
662
  '--effort', chatConfig.effort || config.defaults.effort,
650
663
  '--permission-mode', 'bypassPermissions',
651
- '--no-chrome',
664
+ wantChrome ? '--chrome' : '--no-chrome',
652
665
  ];
653
666
  if (chatConfig.agent) args.push('--agent', chatConfig.agent);
654
667
  if (existingSessionId) args.push('--resume', existingSessionId);