@llblab/pi-telegram 0.36.1 → 0.36.2

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/BACKLOG.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  _This file owns unresolved project work only. Completed behavior belongs in `CHANGELOG.md`; durable contracts belong in `AGENTS.md` and `/docs`._
4
4
 
5
- - [ ] `Automated release publication live proof`: Exercise the implemented tag-triggered release path on `v0.36.1` and verify reusable full validation, exact tag/version/lock/changelog preflight, npm Trusted Publisher provenance, idempotent package identity, public tarball contents, and one workflow-owned GitHub Release before declaring manual npm publication retired.
6
5
  - [ ] `Operator-confirmed pairing`: Replace first-contact automatic ownership with an explicit pending request that the trusted Pi interface can allow or reject before `allowedUserId` is persisted or any Telegram prompt executes; retain manual preconfiguration, bound pending-request lifetime and multiplicity, fail closed across session/transport replacement, and cover unauthorized-first-contact races.
7
6
  - [ ] `Environment-backed bot tokens`: Let each profile store an exact Pi-native `$ENV_VAR` or `${ENV_VAR}` reference in `telegram.json` instead of copying the resolved secret; preserve the originating alias when `/telegram-setup` prefills from a supported environment variable, resolve only at validation/activation boundaries, fail closed with a redacted named-variable diagnostic when unresolved, retain literal-token compatibility, and cover named profiles, reload, persistence, status, and secret-redaction paths.
8
7
  - [ ] [`Inference bypass Generative Apps`](./docs/generative-apps.md): Let the agent install and bind one managed JavaScript app owner for a generated-prompt prefix so deterministic controls can bypass model inference without creating another button grammar.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  > Each release keeps at most 8 outcome records of at most 512 characters.
4
4
 
5
- ## Unreleased
5
+ ## 0.36.2: Provider-Compatible Controls
6
+
7
+ - `Provider-Compatible Bind Schema`: Exposes `telegram_bind` through one top-level JSON object schema while retaining runtime enforcement of mutually exclusive install and invocation forms, avoiding providers that reject top-level union schemas before any tool call can run.
8
+ - `Reaction Shortcut Naming`: Removes obsolete reaction-action labels from setup guidance now that queue reaction semantics use their current naming.
9
+ - `Compact Thinking Picker`: Keeps `off` on a distinct full-width row and groups the six ordered reasoning intensities into two three-button rows, reducing menu height without changing thinking-level values or callbacks.
6
10
 
7
11
  ## 0.36.1: Adaptive Control Surfaces
8
12
 
package/README.md CHANGED
@@ -86,7 +86,7 @@ Enable the optional capabilities the bridge needs in the [@BotFather](https://t.
86
86
 
87
87
  1. Enable guest mode so the bot can answer mentions and replies in chats where it is not a member.
88
88
  2. Enable private-chat Threaded Mode; when it is available, one live instance becomes the profile's leader and later visible Pi instances register as followers. Without it, the bridge stays in classic single-owner DM mode.
89
- 3. Make the bot an administrator in any chat where the queue reaction shortcuts (👍 prioritize, 👎 suppress) should work. Reaction updates require admin rights, so the shortcuts silently do nothing in non-admin chats; private chats deliver reactions without admin rights.
89
+ 3. Make the bot an administrator in any chat where the queue reaction shortcuts should work. Reaction updates require admin rights, so the shortcuts silently do nothing in non-admin chats; private chats deliver reactions without admin rights.
90
90
 
91
91
  ## What It Feels Like
92
92
 
package/docs/ui-style.md CHANGED
@@ -168,22 +168,23 @@ Examples:
168
168
  - `⚫️ Priority` / `🟣 Normal`
169
169
  - `1` / `🟣 2` / `3`
170
170
 
171
- ## Vertical Option Lists
171
+ ## Option Lists
172
172
 
173
- Vertical option lists choose one value from a potentially longer list, for example model selection, thinking level, voice reply mode, or time injection mode.
173
+ Option lists choose one value from a fixed set, for example model selection, thinking level, voice reply mode, or time injection mode.
174
174
 
175
175
  Rules:
176
176
 
177
- - Put each option on its own row.
177
+ - Put each option on its own row when labels are long, the set may grow, or scanning benefits from full width.
178
+ - A fixed set of short, ordered peer values may use compact rows of up to three buttons.
179
+ - Keep a semantically distinct value such as thinking `off` on its own full-width row before grouped intensity values.
178
180
  - Mark only the current value with `🟢`.
179
181
  - Leave non-current values without emoji.
180
182
  - Use lowercase labels when the option is a value.
181
183
 
182
184
  Examples:
183
185
 
184
- - `hidden`
185
- - `🟢 mirror`
186
- - `always`
186
+ - Vertical: `hidden`, `🟢 mirror`, `always`.
187
+ - Thinking: full-width `off`, then `minimal` / `low` / `🟢 medium`, then `high` / `xhigh` / `max`.
187
188
 
188
189
  ## Generated Prompt Buttons
189
190
 
@@ -871,21 +871,14 @@ export function registerTelegramBindTool(
871
871
  label: "Telegram Bind",
872
872
  description:
873
873
  "Install, explicitly replace, or invoke one named method on a managed Generative App; successful output displays directly in the active Telegram turn unless display is false.",
874
- parameters: Type.Union([
875
- Type.Object({
876
- app: Type.String(),
877
- script: Type.String(),
878
- replace: Type.Optional(Type.Boolean()),
879
- display: Type.Optional(Type.Boolean()),
880
- argument: Type.Optional(Type.Unknown()),
881
- }, { additionalProperties: false }),
882
- Type.Object({
883
- app: Type.String(),
884
- method: Type.String(),
885
- display: Type.Optional(Type.Boolean()),
886
- argument: Type.Optional(Type.Unknown()),
887
- }, { additionalProperties: false }),
888
- ]),
874
+ parameters: Type.Object({
875
+ app: Type.String(),
876
+ script: Type.Optional(Type.String()),
877
+ method: Type.Optional(Type.String()),
878
+ replace: Type.Optional(Type.Boolean()),
879
+ display: Type.Optional(Type.Boolean()),
880
+ argument: Type.Optional(Type.Unknown()),
881
+ }, { additionalProperties: false }),
889
882
  async execute(_toolCallId, params) {
890
883
  try {
891
884
  const result = await bindGenerativeApp({
@@ -128,13 +128,14 @@ export function buildThinkingMenuReplyMarkup(
128
128
  currentThinkingLevel: ThinkingLevel,
129
129
  ): TelegramReplyMarkup {
130
130
  const rows = [[{ text: "⬆️ Main menu", callback_data: "menu:back" }]];
131
+ const levelButtons = THINKING_LEVELS.map((level) => ({
132
+ text: level === currentThinkingLevel ? `🟢 ${level}` : level,
133
+ callback_data: `thinking:set:${level}`,
134
+ }));
131
135
  rows.push(
132
- ...THINKING_LEVELS.map((level) => [
133
- {
134
- text: level === currentThinkingLevel ? `🟢 ${level}` : level,
135
- callback_data: `thinking:set:${level}`,
136
- },
137
- ]),
136
+ levelButtons.slice(0, 1),
137
+ levelButtons.slice(1, 4),
138
+ levelButtons.slice(4, 7),
138
139
  );
139
140
  return { inline_keyboard: rows };
140
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-telegram",
3
- "version": "0.36.1",
3
+ "version": "0.36.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"