@ycodium-ai/plugin-im 0.2.3238 → 0.2.3244

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
@@ -19,6 +19,10 @@
19
19
  "follow": "Follow chat / project default",
20
20
  "unavailable": "{{value}} (unavailable)"
21
21
  },
22
+ "defaultPreset": {
23
+ "none": "No preset",
24
+ "unavailable": "{{value}} (unavailable)"
25
+ },
22
26
  "runtimeMode": {
23
27
  "approvalRequired": "Ask before commands and file changes",
24
28
  "autoAcceptEdits": "Auto-accept edits, ask before other actions",
@@ -115,6 +119,10 @@
115
119
  "label": "Default model",
116
120
  "description": "Used for new sessions when the chat has no /model selection. Existing sessions keep their model; send /new to use this default. Unavailable choices fall back to the project default."
117
121
  },
122
+ "defaultPreset": {
123
+ "label": "Default preset",
124
+ "description": "Used for new sessions when the chat has no /preset selection. Existing sessions keep their preset; send /new to use this default. Unavailable presets are skipped."
125
+ },
118
126
  "runtimeMode": {
119
127
  "label": "What a chat message may do",
120
128
  "description": "Admitted people start turns from chat, so this is deliberately not full access by default. Whichever mode asks, the request lands in the chat."
@@ -161,6 +169,10 @@
161
169
  "label": "Numbered-reply hints",
162
170
  "description": "WeCom has no buttons; approvals and questions use reply numbers. When on, include fuller usage hints."
163
171
  },
172
+ "wecomAppStream": {
173
+ "label": "Streaming replies",
174
+ "description": "Off by default: the bot first confirms it got the message and sends the full reply once finished. When on, replies appear as they are written if the WeCom client supports it; otherwise the full reply is sent as text automatically when it is done. Turning it on is a trial: whether the WeCom client shows replies as they are written has not been verified."
175
+ },
164
176
  "wecomAppCorpId": {
165
177
  "label": "Corp ID",
166
178
  "placeholder": "ww…"
@@ -338,6 +350,7 @@
338
350
  "sessions": "· /sessions — list this project's sessions; add a project number from /repo to list the ones this bot opened in another project",
339
351
  "resume": "· /resume number-or-id-prefix — switch sessions; one from another project switches the project too",
340
352
  "model": "· /model — see the model this chat uses; /model number or /model instance/model switches it",
353
+ "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",
341
354
  "plan": "· /plan — toggle plan mode (the agent proposes a plan instead of acting); /plan on, /plan off set it",
342
355
  "panel": "Send /panel to open the command panel with a button for every command.",
343
356
  "repo": "· /repo — pick the project this chat works on; /repo number or /repo name picks directly",
@@ -384,6 +397,23 @@
384
397
  "cancelled": "Attach cancelled.",
385
398
  "nothingPending": "No web session is waiting for confirm. Use /sessions to see the list."
386
399
  },
400
+ "preset": {
401
+ "current": "This chat's preset for new sessions: {{preset}}",
402
+ "botDefault": "Bot default preset for this chat's new sessions: {{preset}}",
403
+ "none": "No preset for this chat's new sessions.",
404
+ "unavailable": "{{value}} (unavailable)",
405
+ "item": "{{label}} ({{id}})",
406
+ "listTitle": "Available presets:",
407
+ "more": "{{count}} more not shown — pick one with /preset name-or-id.",
408
+ "empty": "No presets are available.",
409
+ "footer": "Switch with /preset number, or /preset name-or-id. Clear the chat choice with /preset none to use the bot default.",
410
+ "existing": "Existing sessions keep their preset. Send /new, then a message to use the new setting.",
411
+ "updated": "This chat's preset for new sessions set to: {{preset}}",
412
+ "cleared": "Chat preset cleared. New sessions will use the bot default, if one is set.",
413
+ "notFound": "No single preset matches \"{{query}}\". Use /preset to see the list.",
414
+ "readFailed": "Could not read the preset list. Try again later.",
415
+ "textOnly": "Preset commands only accept text. Remove attachments and try again."
416
+ },
387
417
  "model": {
388
418
  "current": "Model: {{model}}",
389
419
  "currentUnknown": "Model: not decided yet — a new session uses the project's default.",
@@ -435,6 +465,8 @@
435
465
  "panel": {
436
466
  "title": "Command panel",
437
467
  "hint": "A button does the same as typing its command. You can still type.",
468
+ "wecomTruncated": "Some commands do not fit on this card. Send /help for the full list, then type the command; in a group, mention the bot first.",
469
+ "wecomExpired": "This panel has expired. Send /panel again; in a group, mention the bot first.",
438
470
  "category": {
439
471
  "session": "Session",
440
472
  "target": "Send to",
@@ -19,6 +19,10 @@
19
19
  "follow": "跟随聊天 / 项目默认",
20
20
  "unavailable": "{{value}}(不可用)"
21
21
  },
22
+ "defaultPreset": {
23
+ "none": "无预设",
24
+ "unavailable": "{{value}}(不可用)"
25
+ },
22
26
  "runtimeMode": {
23
27
  "approvalRequired": "命令和改文件前先问",
24
28
  "autoAcceptEdits": "自动接受改动,其他操作先问",
@@ -115,6 +119,10 @@
115
119
  "label": "默认模型",
116
120
  "description": "聊天未用 /model 选模型时,新会话使用此默认模型。已有会话保留原模型;发送 /new 后使用新默认。不可用时回退到项目默认。"
117
121
  },
122
+ "defaultPreset": {
123
+ "label": "默认预设",
124
+ "description": "聊天未用 /preset 选预设时,新会话使用此预设。已有会话保留原预设;发送 /new 后使用新默认。不可用的预设会跳过。"
125
+ },
118
126
  "runtimeMode": {
119
127
  "label": "聊天消息能做什么",
120
128
  "description": "获准的人都能从聊天里开一轮,所以默认故意不给满权限。不论选哪一档,要拍板的事都会摆到聊天里。"
@@ -161,6 +169,10 @@
161
169
  "label": "编号应答提示",
162
170
  "description": "企微没有按钮,审批与提问靠回编号。开启时附带更完整的用法说明。"
163
171
  },
172
+ "wecomAppStream": {
173
+ "label": "流式回复",
174
+ "description": "默认关闭:先回一句确认,处理完再发送完整回复。开启后,企微能边写边出时逐步显示回复;不能时,完成后自动以文本发送完整回复。开启属于试用:企业微信客户端是否显示边写边出尚未验证。"
175
+ },
164
176
  "wecomAppCorpId": {
165
177
  "label": "企业 ID(CorpID)",
166
178
  "placeholder": "ww…"
@@ -338,6 +350,7 @@
338
350
  "sessions": "· /sessions —— 列出本项目的会话;加 /repo 里的项目编号,列出本机器人在别的项目开过的",
339
351
  "resume": "· /resume 编号或 id 开头 —— 切会话;别的项目的会话会连同项目一起切",
340
352
  "model": "· /model —— 看这个聊天用的模型;/model 编号 或 /model 实例/模型 切换",
353
+ "preset": "· /preset —— 看这个聊天新会话用的预设;/preset 编号 或 /preset 名字或 id 切换;/preset none 清掉聊天选择",
341
354
  "plan": "· /plan —— 开关计划模式(agent 先出计划、不动手);/plan on、/plan off 明确设定",
342
355
  "panel": "发 /panel 打开可点的命令面板。",
343
356
  "repo": "· /repo —— 选这个聊天做哪个项目;/repo 编号 或 /repo 项目名 直接选",
@@ -384,6 +397,23 @@
384
397
  "cancelled": "已取消附着。",
385
398
  "nothingPending": "没有待确认的网页会话。用 /sessions 看看有哪些。"
386
399
  },
400
+ "preset": {
401
+ "current": "这个聊天新会话用的预设:{{preset}}",
402
+ "botDefault": "这个聊天新会话的机器人默认预设:{{preset}}",
403
+ "none": "这个聊天的新会话没有预设。",
404
+ "unavailable": "{{value}}(不可用)",
405
+ "item": "{{label}}({{id}})",
406
+ "listTitle": "可选的预设:",
407
+ "more": "还有 {{count}} 个没列出——用 /preset 名字或 id 也能选到。",
408
+ "empty": "没有可选的预设。",
409
+ "footer": "用 /preset 编号 切换,或 /preset 名字或 id。/preset none 清掉聊天选择,改用机器人默认预设。",
410
+ "existing": "已有会话保留原预设。发 /new,再发一条消息,才会用上新设置。",
411
+ "updated": "这个聊天新会话用的预设已设为:{{preset}}",
412
+ "cleared": "已清掉聊天预设。新会话改用机器人默认预设(若已设置)。",
413
+ "notFound": "没有唯一对得上「{{query}}」的预设。用 /preset 看看有哪些。",
414
+ "readFailed": "现在读不出预设列表,稍后再试。",
415
+ "textOnly": "预设命令只接受文字。去掉附件后再试。"
416
+ },
387
417
  "model": {
388
418
  "current": "模型:{{model}}",
389
419
  "currentUnknown": "模型:还没定——新开会话时用项目的默认模型。",
@@ -435,6 +465,8 @@
435
465
  "panel": {
436
466
  "title": "命令面板",
437
467
  "hint": "点按钮等于打出对应的命令,也可以直接打字。",
468
+ "wecomTruncated": "这张卡放不下全部命令。发送 /help 查看全部命令,再直接输入命令;在群里要先 @ 机器人。",
469
+ "wecomExpired": "这个面板已过期,请重新发送 /panel;在群里要先 @ 机器人。",
438
470
  "category": {
439
471
  "session": "会话",
440
472
  "target": "派给谁",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-im",
3
- "version": "0.2.3238",
3
+ "version": "0.2.3244",
4
4
  "description": "Talk to your agents from Telegram, WeCom, Lark, or WeChat (experimental).",
5
5
  "keywords": [
6
6
  "im",
@@ -32,7 +32,7 @@
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.3238",
35
+ "@ycodium-ai/plugin-api": "0.2.3244",
36
36
  "ycodium-react-test-harness": "0.0.0"
37
37
  },
38
38
  "ycodium": {