@ycodium-ai/plugin-im 0.2.3244 → 0.2.3250

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/locales/en.json CHANGED
@@ -262,6 +262,8 @@
262
262
  "sendingFile": "Sending {{name}}:",
263
263
  "notAllowedYet": "You are not on the allow list yet. Your user id is {{id}}. Add it under Settings → Plugins → Chat, in this bot's \"Allowed people\" box.",
264
264
  "received": "Got it, working on it.",
265
+ "inboundFailed": "This message couldn't be handled. Please send it again later.",
266
+ "inboundDeferred": "No need to send this again — it will be handled automatically the next time the machine starts.",
265
267
  "welcome": "Connected. Send text or images to get started, or send /help to see the available commands."
266
268
  },
267
269
  "approval": {
@@ -346,9 +348,10 @@
346
348
  "new": "· /new — forget the current session; the next message starts a new one",
347
349
  "team": "· /team — give this project's team a goal with each message; use /repo to pick the project first",
348
350
  "thread": "· /thread — go back to a normal session",
349
- "aliases": "Chinese shortcuts (停 / 继续发送 / 状态 / 新对话 / 会话列表 / 切换会话 / 换模型 / 计划模式 / 换项目 / 建群 / 换团队 / 换对话) work when the reply language is Chinese.",
351
+ "aliases": "Chinese shortcuts (停 / 继续发送 / 状态 / 新对话 / 会话列表 / 切换会话 / 会话历史 / 换模型 / 计划模式 / 换项目 / 建群 / 换团队 / 换对话) work when the reply language is Chinese.",
350
352
  "sessions": "· /sessions — list this project's sessions; add a project number from /repo to list the ones this bot opened in another project",
351
353
  "resume": "· /resume number-or-id-prefix — switch sessions; one from another project switches the project too",
354
+ "history": "· /history [count] — preview recent messages in the current session, in private chats only (default {{defaultCount}}, maximum {{maxCount}})",
352
355
  "model": "· /model — see the model this chat uses; /model number or /model instance/model switches it",
353
356
  "preset": "· /preset — see the preset this chat uses for new sessions; /preset number or /preset name-or-id switches it; /preset none clears the chat choice",
354
357
  "plan": "· /plan — toggle plan mode (the agent proposes a plan instead of acting); /plan on, /plan off set it",
@@ -357,6 +360,21 @@
357
360
  "group": "· /group name — Lark only: the bot creates a group and adds you (bots on other platforms cannot)",
358
361
  "syncNote": "· After a private chat attaches a session, web user text and final assistant text sync here (groups never sync)."
359
362
  },
363
+ "history": {
364
+ "usage": "Usage: /history [count] — 1 to {{maxCount}} (larger numbers count as {{maxCount}}), default {{defaultCount}}.",
365
+ "directOnly": "In a group this would show the session to everyone. Send /history in a private chat with the bot.",
366
+ "noSession": "This chat has no current session. Send a message to start one, or use /sessions to find a session and /resume to switch to it.",
367
+ "empty": "No messages to show in this session yet.",
368
+ "noneRecent": "Nothing to show among this session's most recent messages (older ones were not checked).",
369
+ "failed": "Could not read the recent messages. Try again in a moment.",
370
+ "title": "Recent messages in this session ({{count}}):",
371
+ "user": "User",
372
+ "assistant": "Assistant",
373
+ "image": "[Image]",
374
+ "file": "[File]",
375
+ "noText": "[No previewable text]",
376
+ "truncated": "[Remaining text omitted]"
377
+ },
360
378
  "sessions": {
361
379
  "title": "This project's sessions ({{count}}):",
362
380
  "empty": "This bot has not opened any session in this project yet. Send a message to start one.",
@@ -262,6 +262,8 @@
262
262
  "sendingFile": "正在发送 {{name}}:",
263
263
  "notAllowedYet": "你还不在允许名单里,你的用户 id 是 {{id}},请把它填进 设置 → 插件 → 聊天 → 这个机器人的「允许的人」。",
264
264
  "received": "收到,在处理。",
265
+ "inboundFailed": "这条消息处理时出了错,请稍后重发。",
266
+ "inboundDeferred": "不用重发:机器下次启动时会自动处理这条消息。",
265
267
  "welcome": "已连上。直接发文字或图片就能开始,发 /help 看能用的命令。"
266
268
  },
267
269
  "approval": {
@@ -346,9 +348,10 @@
346
348
  "new": "· /new —— 忘掉当前会话,下一句开新的",
347
349
  "team": "· /team —— 每条消息都给这个项目的团队开一个目标;先用 /repo 选项目",
348
350
  "thread": "· /thread —— 切回普通会话",
349
- "aliases": "中文也行:停 / 继续发送 / 状态 / 新对话 / 会话列表 / 切换会话 / 换模型 / 计划模式 / 换项目 / 建群 / 换团队 / 换对话。",
351
+ "aliases": "中文也行:停 / 继续发送 / 状态 / 新对话 / 会话列表 / 切换会话 / 会话历史 / 换模型 / 计划模式 / 换项目 / 建群 / 换团队 / 换对话。",
350
352
  "sessions": "· /sessions —— 列出本项目的会话;加 /repo 里的项目编号,列出本机器人在别的项目开过的",
351
353
  "resume": "· /resume 编号或 id 开头 —— 切会话;别的项目的会话会连同项目一起切",
354
+ "history": "· /history [数量] —— 仅私聊:查看当前会话最近的消息(默认 {{defaultCount}} 条,最多 {{maxCount}} 条)",
352
355
  "model": "· /model —— 看这个聊天用的模型;/model 编号 或 /model 实例/模型 切换",
353
356
  "preset": "· /preset —— 看这个聊天新会话用的预设;/preset 编号 或 /preset 名字或 id 切换;/preset none 清掉聊天选择",
354
357
  "plan": "· /plan —— 开关计划模式(agent 先出计划、不动手);/plan on、/plan off 明确设定",
@@ -357,6 +360,21 @@
357
360
  "group": "· /group 群名 —— 仅飞书:机器人建一个群并把你拉进去(别的平台的机器人建不了群)",
358
361
  "syncNote": "· 私聊附着会话后,网页上的用户文字与终态助手文字会同步到此(群聊不同步)。"
359
362
  },
363
+ "history": {
364
+ "usage": "用法:/history [数量] —— 1–{{maxCount}} 条(超出按 {{maxCount}} 条算),默认 {{defaultCount}} 条。",
365
+ "directOnly": "在群里会把会话内容发给所有人。在与机器人的私聊里发 /history。",
366
+ "noSession": "这个聊天还没有当前会话。发一句话开一个,或先用 /sessions 找到会话,再用 /resume 切过去。",
367
+ "empty": "当前会话还没有能查看的消息。",
368
+ "noneRecent": "当前会话最近的消息里没有能查看的(更早的没有往前翻)。",
369
+ "failed": "没能读取最近的消息,稍后再试。",
370
+ "title": "当前会话最近的消息({{count}} 条):",
371
+ "user": "用户",
372
+ "assistant": "助手",
373
+ "image": "[图片]",
374
+ "file": "[文件]",
375
+ "noText": "[没有可预览的文字]",
376
+ "truncated": "[其余文字已省略]"
377
+ },
360
378
  "sessions": {
361
379
  "title": "本项目的会话({{count}} 条):",
362
380
  "empty": "本机器人还没在本项目开过会话,发一句话就会开一条。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-im",
3
- "version": "0.2.3244",
3
+ "version": "0.2.3250",
4
4
  "description": "Talk to your agents from Telegram, WeCom, Lark, or WeChat (experimental).",
5
5
  "keywords": [
6
6
  "im",
@@ -32,8 +32,8 @@
32
32
  "markdown-it": "^15.0.2",
33
33
  "react": "19.2.6",
34
34
  "vite-plus": "0.2.2",
35
- "@ycodium-ai/plugin-api": "0.2.3244",
36
- "ycodium-react-test-harness": "0.0.0"
35
+ "ycodium-react-test-harness": "0.0.0",
36
+ "@ycodium-ai/plugin-api": "0.2.3250"
37
37
  },
38
38
  "ycodium": {
39
39
  "plugin": "./dist/index.js",