@ycodium-ai/plugin-im 0.2.3192 → 0.2.3202
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/assets/ui.js +7 -4
- package/dist/index.js +912 -364
- package/locales/en.json +36 -16
- package/locales/zh-CN.json +37 -17
- package/package.json +3 -2
package/locales/en.json
CHANGED
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
},
|
|
181
181
|
"wecomAppListenPort": {
|
|
182
182
|
"label": "Local callback port (optional)",
|
|
183
|
-
"description": "Defaults to 30987. Self-built apps listening on the same address share one port.",
|
|
183
|
+
"description": "Defaults to 30987. Self-built apps listening on the same address share one port; rows with different listen addresses (say 0.0.0.0 and 127.0.0.1) need different ports, or the second one fails to listen.",
|
|
184
184
|
"placeholder": "30987"
|
|
185
185
|
},
|
|
186
186
|
"wecomAppListenHost": {
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
"reply": {
|
|
201
|
+
"wecomDeliveryFailed": "This reply didn't reach {{recipient}} in WeCom: they are outside this app's visible range. Add them to the app's visible range in the WeCom admin console, then ask the agent to send it again.",
|
|
201
202
|
"conclusionRecovered": "(Finished while restarting; delivered now)",
|
|
202
203
|
"notAllowed": "You are not on this bot's allow list, so this tap had no effect.",
|
|
203
204
|
"noDefaultModel": "Project \"{{title}}\" has no agent selected yet, so a thread cannot be started. Send /model to pick one, or set a default in the project settings, then message again.",
|
|
@@ -553,13 +554,16 @@
|
|
|
553
554
|
"description": "Verify platform credentials still work; does not open a session or call a model.",
|
|
554
555
|
"running": "Checking {{rowId}}…",
|
|
555
556
|
"done": "Connection OK",
|
|
556
|
-
"failed": "Connection failed
|
|
557
|
+
"failed": "Connection failed",
|
|
557
558
|
"notSaved": "Save this row first (credentials are read from saved config only).",
|
|
558
559
|
"hint": {
|
|
559
|
-
"badToken": "This does not look like a bot token. Copy it again from BotFather: digits, a colon, then the key
|
|
560
|
-
"unauthorized": "Telegram does not accept this token. It may have been revoked; get the current one from BotFather
|
|
561
|
-
"notBot": "This token does not belong to a bot. Use the token BotFather gave you
|
|
562
|
-
"webhookActive": "This bot has a webhook set by another service, so it cannot receive messages here. Remove the webhook there, then check again
|
|
560
|
+
"badToken": "This does not look like a bot token. Copy it again from BotFather: digits, a colon, then the key.",
|
|
561
|
+
"unauthorized": "Telegram does not accept this token. It may have been revoked; get the current one from BotFather.",
|
|
562
|
+
"notBot": "This token does not belong to a bot. Use the token BotFather gave you.",
|
|
563
|
+
"webhookActive": "This bot has a webhook set by another service, so it cannot receive messages here. Remove the webhook there, then check again.",
|
|
564
|
+
"wecomTrustedIp": "Add this machine's outbound public IP to the app's trusted IP list in the WeCom admin console.",
|
|
565
|
+
"wecomInvalidUser": "Check that the recipient, department or tag exists and is in this app's visible range.",
|
|
566
|
+
"wecomInvalidAgent": "Check the AgentId against this self-built application in the WeCom admin console."
|
|
563
567
|
}
|
|
564
568
|
},
|
|
565
569
|
"copyDiagnostics": {
|
|
@@ -567,24 +571,24 @@
|
|
|
567
571
|
"description": "Run a connection probe and produce copy-paste diagnostics (no secrets).",
|
|
568
572
|
"running": "Building diagnostics for {{rowId}}…",
|
|
569
573
|
"done": "Diagnostics ready — see details below",
|
|
570
|
-
"failed": "Diagnostics failed
|
|
574
|
+
"failed": "Diagnostics failed",
|
|
571
575
|
"notSaved": "Save this row first before copying diagnostics."
|
|
572
576
|
},
|
|
573
577
|
"diagnostic": {
|
|
574
|
-
"ref": "
|
|
578
|
+
"ref": "Reference: {{ref}}\n{{detail}}"
|
|
575
579
|
},
|
|
576
580
|
"larkRepair": {
|
|
577
581
|
"label": "Repair scopes",
|
|
578
|
-
"description": "
|
|
582
|
+
"description": "Check whether the saved credentials can mint a token; scopes, event subscriptions and publishing are not checked automatically.",
|
|
579
583
|
"step": {
|
|
580
|
-
"scopes": "
|
|
581
|
-
"events": "
|
|
582
|
-
"publish": "
|
|
584
|
+
"scopes": "Scopes — not checked",
|
|
585
|
+
"events": "Event subscriptions — not checked",
|
|
586
|
+
"publish": "Publishing — not checked",
|
|
583
587
|
"verify": "Verify the app can still mint a tenant token"
|
|
584
588
|
},
|
|
585
|
-
"done": "
|
|
586
|
-
"hint": "
|
|
587
|
-
"failed": "Could not
|
|
589
|
+
"done": "Only token issuance was verified. Scopes, event subscriptions and publishing were not checked automatically; review them on the Feishu open platform.",
|
|
590
|
+
"hint": "Reference: {{ref}}\n{{detail}}\nReview scopes, event subscriptions and publishing on the Feishu open platform; none were checked automatically.",
|
|
591
|
+
"failed": "Could not mint a token with the saved credentials. Scopes, event subscriptions and publishing were not checked automatically; review them on the Feishu open platform.",
|
|
588
592
|
"notLark": "This row is not a saved Lark bot."
|
|
589
593
|
}
|
|
590
594
|
},
|
|
@@ -623,7 +627,23 @@
|
|
|
623
627
|
"removeFailed": "Couldn't delete this bot.",
|
|
624
628
|
"status": {
|
|
625
629
|
"ready": "Ready",
|
|
626
|
-
"incomplete": "Incomplete"
|
|
630
|
+
"incomplete": "Incomplete",
|
|
631
|
+
"connecting": "Connecting",
|
|
632
|
+
"connected": "Connected",
|
|
633
|
+
"notConnected": "Not connected"
|
|
634
|
+
},
|
|
635
|
+
"connection": {
|
|
636
|
+
"failed": "The last connection attempt failed.",
|
|
637
|
+
"details": "Details: {{error}}",
|
|
638
|
+
"reason": {
|
|
639
|
+
"not-available": "This platform can't be connected yet.",
|
|
640
|
+
"invalid-app-id": "The App ID isn't in the right format.",
|
|
641
|
+
"disconnected": "The connection to the platform is down.",
|
|
642
|
+
"subscription-failed": "The platform didn't confirm the subscription.",
|
|
643
|
+
"token-unavailable": "Couldn't get an access token.",
|
|
644
|
+
"credentials-rejected": "The platform rejected the credentials."
|
|
645
|
+
},
|
|
646
|
+
"duplicate": "Uses the same credentials as “{{name}}”. Only that row connects."
|
|
627
647
|
},
|
|
628
648
|
"secret": {
|
|
629
649
|
"saved": "Saved. Leave blank to keep it.",
|
package/locales/zh-CN.json
CHANGED
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
},
|
|
181
181
|
"wecomAppListenPort": {
|
|
182
182
|
"label": "本机回调端口(可选)",
|
|
183
|
-
"description": "默认 30987
|
|
183
|
+
"description": "默认 30987。监听地址相同的自建应用共用一个端口;监听地址不同的两行(比如 0.0.0.0 和 127.0.0.1)要用不同端口,否则后一个监听不起来。",
|
|
184
184
|
"placeholder": "30987"
|
|
185
185
|
},
|
|
186
186
|
"wecomAppListenHost": {
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
"reply": {
|
|
201
|
+
"wecomDeliveryFailed": "这条回复没送到企业微信里的 {{recipient}}:对方不在这个应用的可见范围。到企业微信管理后台把他们加进应用的可见范围,再让 agent 重发一次。",
|
|
201
202
|
"conclusionRecovered": "(重启期间完成,现在补发)",
|
|
202
203
|
"notAllowed": "你不在这个机器人的允许名单里,这次点击没有生效。",
|
|
203
204
|
"noDefaultModel": "项目「{{title}}」还没选 agent,开不了会话。发 /model 选一个,或者到项目设置里设个默认,再发一次消息。",
|
|
@@ -553,13 +554,16 @@
|
|
|
553
554
|
"description": "验证平台凭据是否仍可用;不会开会话,也不会调模型。",
|
|
554
555
|
"running": "正在检查 {{rowId}} …",
|
|
555
556
|
"done": "连接正常",
|
|
556
|
-
"failed": "
|
|
557
|
+
"failed": "连接失败",
|
|
557
558
|
"notSaved": "请先保存这一行再检查连接(凭据只从已保存配置读取)。",
|
|
558
559
|
"hint": {
|
|
559
|
-
"badToken": "这不像机器人的 token。到 BotFather
|
|
560
|
-
"unauthorized": "Telegram 不认这个 token,可能已经作废。到 BotFather
|
|
561
|
-
"notBot": "这个 token 不是机器人的。请用 BotFather
|
|
562
|
-
"webhookActive": "这个机器人被别的服务设了 webhook,在这里收不到消息。先到那边撤掉 webhook
|
|
560
|
+
"badToken": "这不像机器人的 token。到 BotFather 重新复制一份:数字、冒号,后面是密钥。",
|
|
561
|
+
"unauthorized": "Telegram 不认这个 token,可能已经作废。到 BotFather 取现在的那一份。",
|
|
562
|
+
"notBot": "这个 token 不是机器人的。请用 BotFather 给的那一份。",
|
|
563
|
+
"webhookActive": "这个机器人被别的服务设了 webhook,在这里收不到消息。先到那边撤掉 webhook,再检查一次。",
|
|
564
|
+
"wecomTrustedIp": "把这台机器的出站公网 IP 加进企业微信后台这个应用的企业可信 IP。",
|
|
565
|
+
"wecomInvalidUser": "确认收件人、部门或标签存在,并在这个自建应用的可见范围内。",
|
|
566
|
+
"wecomInvalidAgent": "核对企业微信后台这个自建应用的 AgentId。"
|
|
563
567
|
}
|
|
564
568
|
},
|
|
565
569
|
"copyDiagnostics": {
|
|
@@ -567,24 +571,24 @@
|
|
|
567
571
|
"description": "跑一次连接探测,生成可复制的诊断文本(不含密钥)。",
|
|
568
572
|
"running": "正在生成诊断 {{rowId}} …",
|
|
569
573
|
"done": "诊断已生成,见下方详情",
|
|
570
|
-
"failed": "
|
|
574
|
+
"failed": "诊断失败",
|
|
571
575
|
"notSaved": "请先保存这一行再复制诊断。"
|
|
572
576
|
},
|
|
573
577
|
"diagnostic": {
|
|
574
|
-
"ref": "
|
|
578
|
+
"ref": "参考号:{{ref}}\n{{detail}}"
|
|
575
579
|
},
|
|
576
580
|
"larkRepair": {
|
|
577
581
|
"label": "补全权限",
|
|
578
|
-
"description": "
|
|
582
|
+
"description": "检查已保存的凭据能否换取 token;权限、事件订阅和发布不会自动检查。",
|
|
579
583
|
"step": {
|
|
580
|
-
"scopes": "
|
|
581
|
-
"events": "
|
|
582
|
-
"publish": "
|
|
584
|
+
"scopes": "权限:未检查",
|
|
585
|
+
"events": "事件订阅:未检查",
|
|
586
|
+
"publish": "发布:未检查",
|
|
583
587
|
"verify": "验证应用仍可换取 tenant token"
|
|
584
588
|
},
|
|
585
|
-
"done": "
|
|
586
|
-
"hint": "
|
|
587
|
-
"failed": "
|
|
589
|
+
"done": "仅核实了凭据仍能换取 token;权限、事件订阅和发布没有自动检查,请到飞书开放平台核对。",
|
|
590
|
+
"hint": "参考号:{{ref}}\n{{detail}}\n请到飞书开放平台核对权限、事件订阅和发布;这三项均未自动检查。",
|
|
591
|
+
"failed": "已保存的凭据未能换取 token;权限、事件订阅和发布没有自动检查,请到飞书开放平台核对。",
|
|
588
592
|
"notLark": "这一行不是已保存的飞书机器人。"
|
|
589
593
|
}
|
|
590
594
|
},
|
|
@@ -622,8 +626,24 @@
|
|
|
622
626
|
"copyFailed": "没复制上。",
|
|
623
627
|
"removeFailed": "没能删掉这个机器人。",
|
|
624
628
|
"status": {
|
|
625
|
-
"ready": "
|
|
626
|
-
"incomplete": "
|
|
629
|
+
"ready": "就绪",
|
|
630
|
+
"incomplete": "待补全",
|
|
631
|
+
"connecting": "连接中",
|
|
632
|
+
"connected": "已连接",
|
|
633
|
+
"notConnected": "未连接"
|
|
634
|
+
},
|
|
635
|
+
"connection": {
|
|
636
|
+
"failed": "上次连接没有成功。",
|
|
637
|
+
"details": "详情:{{error}}",
|
|
638
|
+
"reason": {
|
|
639
|
+
"not-available": "这个平台还不能连接。",
|
|
640
|
+
"invalid-app-id": "App ID 格式不正确。",
|
|
641
|
+
"disconnected": "和平台的连接断了。",
|
|
642
|
+
"subscription-failed": "平台没有确认订阅。",
|
|
643
|
+
"token-unavailable": "没能换到访问令牌。",
|
|
644
|
+
"credentials-rejected": "平台拒绝了凭据。"
|
|
645
|
+
},
|
|
646
|
+
"duplicate": "和「{{name}}」用的是同一份凭据,只连那一行。"
|
|
627
647
|
},
|
|
628
648
|
"secret": {
|
|
629
649
|
"saved": "已经存过,留空就保持原值。",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-im",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3202",
|
|
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.
|
|
35
|
+
"@ycodium-ai/plugin-api": "0.2.3202"
|
|
36
36
|
},
|
|
37
37
|
"ycodium": {
|
|
38
38
|
"plugin": "./dist/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"commands": [
|
|
55
55
|
"thread.create",
|
|
56
56
|
"thread.meta.update",
|
|
57
|
+
"thread.external-messages.append",
|
|
57
58
|
"thread.turn.start",
|
|
58
59
|
"thread.turn.interrupt",
|
|
59
60
|
"thread.approval.respond",
|