@ycodium-ai/plugin-im 0.2.3034 → 0.2.3056
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/README.md +9 -3
- package/dist/index.js +429 -481
- package/locales/en.json +12 -19
- package/locales/zh-CN.json +12 -19
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -158,7 +158,7 @@ The agent's questions and the messages queued behind a running turn use the
|
|
|
158
158
|
optional `choiceCards` surface (`ImChoiceCard`, `src/adapter.ts`): Lark patches a
|
|
159
159
|
card, Telegram edits a message and its inline keyboard. A request is posted on
|
|
160
160
|
`thread.user-input-pending` (read with `listPendingUserInputs`), one card per
|
|
161
|
-
question, and answered
|
|
161
|
+
question, and answered through `ctx.threads.userInput.respond` once every question
|
|
162
162
|
has an answer; a free-form answer is the next ordinary message in the chat, and
|
|
163
163
|
`thread.request-resolved` freezes the cards of a question answered elsewhere or
|
|
164
164
|
closed unanswered. WeCom has no buttons: it writes the options as numbers and the
|
|
@@ -241,7 +241,7 @@ when its queue is paused (a `/stop` or a failure pauses it), which is how WeCom,
|
|
|
241
241
|
no buttons, resumes; it is not `/resume`, which already switches threads.
|
|
242
242
|
|
|
243
243
|
On Lark and Telegram, `/panel` sends a command panel (`/help` stays text and ends with a pointer to it; on WeCom, which has no panel, it does not): every command above
|
|
244
|
-
is a button (a card on Lark, an inline keyboard on Telegram), and the ones that take an argument (a thread, a
|
|
244
|
+
is a button (a card on Lark, an inline keyboard on Telegram), and the ones that take an argument (a thread, a project, a model) open
|
|
245
245
|
a second view on the same message with a Back button. Telegram buttons carry only
|
|
246
246
|
a short `pn:<version>:<index>` token (`callback_data` is capped at 64 bytes);
|
|
247
247
|
the action stays in memory and a tap on an older keyboard version counts as expired. Each card keeps its own view
|
|
@@ -250,6 +250,12 @@ answers that it has expired. A tap runs the same handler as the typed command an
|
|
|
250
250
|
waits in the same per-chat queue as typed messages. Another platform opts in by
|
|
251
251
|
implementing the optional `panel` surface on its adapter (`src/adapter.ts`).
|
|
252
252
|
|
|
253
|
+
`/team` uses the chat's selected project. It reads the roster from the `team` plugin and
|
|
254
|
+
each text message invokes `startGoal` with a stable request ID derived from the bot,
|
|
255
|
+
platform, chat, and inbound message ID. A successful goal binds the chat to the lead's
|
|
256
|
+
conversation so the existing reply cards and turn notifications carry the lead's replies.
|
|
257
|
+
See [Pointing a Chat at a Team](../../docs/user/im-bots.md#pointing-a-chat-at-a-team).
|
|
258
|
+
|
|
253
259
|
The **Reply language** setting (Chinese by default, or English) picks the
|
|
254
260
|
language of everything the bot says itself. The settings section follows the
|
|
255
261
|
interface language instead. The copy lives in `locales/en.json` and
|
|
@@ -302,7 +308,7 @@ language, the saved-state mirror) plus an explicit `deps` object, never the whol
|
|
|
302
308
|
persistence, delivery, bot and chat lookup), `connections` (one long connection per bot)
|
|
303
309
|
- `inbound` (per-bot message handlers), `chatQueue` (per-chat serial queue), `commands`,
|
|
304
310
|
`chatSetup` (picker, `/repo`, `/group`), `projectRows`/`projectList` (the project list),
|
|
305
|
-
`sessions`, `modelPlan`, `turns`, `inboundAttachments`, `
|
|
311
|
+
`sessions`, `modelPlan`, `turns`, `inboundAttachments`, `teamGoals`
|
|
306
312
|
- `approvals`, `interactions` (question and queue cards, button routing), `replyCards`,
|
|
307
313
|
`notifications`, `acknowledgements`, `panelWiring` (with `panelController`)
|
|
308
314
|
- `lark/setup/` (the scan flow): `setupFlow` (the engine; running shows one progress line, the
|