polygram 0.8.0-rc.29 → 0.8.0-rc.30

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.8.0-rc.29",
4
+ "version": "0.8.0-rc.30",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.8.0-rc.29",
3
+ "version": "0.8.0-rc.30",
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
@@ -948,9 +948,27 @@ function buildSdkOptions(sessionKey, ctx) {
948
948
  })
949
949
  : null;
950
950
 
951
+ // rc.29 (refined): map effort → thinking. SDK's `effort` knob alone
952
+ // does NOT enable extended thinking — it only "works WITH" thinking.
953
+ // Without an explicit `thinking` config, the model emits no thinking
954
+ // content blocks, our onThinking callback never fires, and the
955
+ // reactor stays at 👀 until first text/tool. Mapping:
956
+ // low → disabled (fastest replies)
957
+ // medium → adaptive (Claude decides when to think)
958
+ // high → adaptive (same; effort biases depth)
959
+ // xhigh → adaptive
960
+ // max → adaptive
961
+ // Chat configs can override by setting `thinking` directly in
962
+ // chatConfig (composeSdkOptions passes it through).
963
+ const effortValue = chatConfig.effort || config.defaults.effort;
964
+ const derivedThinking = effortValue === 'low'
965
+ ? { type: 'disabled' }
966
+ : { type: 'adaptive' };
967
+
951
968
  const baseOpts = {
952
969
  model: chatConfig.model || config.defaults.model,
953
- effort: chatConfig.effort || config.defaults.effort,
970
+ effort: effortValue,
971
+ thinking: derivedThinking,
954
972
  cwd: chatConfig.cwd,
955
973
  env: childEnv,
956
974
  // permissionMode 'default' when canUseTool is wired (so the SDK