@ycodium-ai/plugin-im 0.2.2974 → 0.2.2978
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 +19 -13
- package/assets/ui.js +201 -0
- package/dist/index.js +855 -350
- package/locales/en.json +65 -5
- package/locales/zh-CN.json +65 -5
- package/package.json +17 -4
package/locales/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"settings": {
|
|
3
3
|
"title": "Chat",
|
|
4
|
-
"description": "Connect chat bots to Ycodium. One row per bot: create the bot on its platform, paste its credentials, and pick an access mode (allowlist / open). In allowlist mode, list the people allowed to use it. For Lark, Connect a Lark bot
|
|
4
|
+
"description": "Connect chat bots to Ycodium. One row per bot: create the bot on its platform, paste its credentials, and pick an access mode (allowlist / open). In allowlist mode, list the people allowed to use it. For Lark, Connect a Lark bot does all of that with one scan. Admitted people message the bot (or add it to a group), pick a project in the chat, and can start work.",
|
|
5
5
|
"bots": "Bots",
|
|
6
6
|
"language": {
|
|
7
7
|
"label": "Reply language",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"description": "When the bot answers in a group (unset means only when it is mentioned); direct chats always count. WeCom only delivers messages that mention the bot, so this changes nothing there."
|
|
109
109
|
},
|
|
110
110
|
"deliveryBotId": {
|
|
111
|
-
"label": "Bot
|
|
112
|
-
"description": "The
|
|
111
|
+
"label": "Bot",
|
|
112
|
+
"description": "The bot that sends the message. Callers pass the id in brackets as botId.",
|
|
113
113
|
"placeholder": "bot row id"
|
|
114
114
|
},
|
|
115
115
|
"deliveryTargetId": {
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"setup": {
|
|
445
445
|
"action": {
|
|
446
446
|
"label": "Connect a Lark bot",
|
|
447
|
-
"description": "Scan once with the Lark app. Ycodium creates a bot app under your account, publishes it for you only, and adds the bot to the list
|
|
447
|
+
"description": "Scan once with the Lark app. Ycodium creates a bot app under your account, publishes it for you only, and adds the bot to the list with its credentials saved. Nothing to fill in.",
|
|
448
448
|
"badge": "Beta",
|
|
449
449
|
"warning": "This relies on Lark developer console interfaces that are not public, so it may stop working. If it does, set the app up by hand in the developer console."
|
|
450
450
|
},
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
},
|
|
472
472
|
"fillRow": {
|
|
473
473
|
"title": "Add the bot",
|
|
474
|
-
"body": "
|
|
474
|
+
"body": "Under Chat in Settings, add a bot: choose Lark, paste the App ID and App secret, put your own Lark user id in Allowed people (message the bot and it tells you your id), then save."
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
477
|
"status": {
|
|
@@ -605,5 +605,65 @@
|
|
|
605
605
|
"thread": "Go back to a normal session",
|
|
606
606
|
"panel": "Open the command panel",
|
|
607
607
|
"help": "Show all commands"
|
|
608
|
+
},
|
|
609
|
+
"settingsSection": {
|
|
610
|
+
"empty": "No bots yet",
|
|
611
|
+
"unavailable": "This machine doesn't have the chat bridge right now.",
|
|
612
|
+
"loadFailed": "Couldn't load the chat-bridge settings.",
|
|
613
|
+
"retry": "Try again",
|
|
614
|
+
"general": "General",
|
|
615
|
+
"addBot": "Add a bot",
|
|
616
|
+
"save": "Save",
|
|
617
|
+
"revert": "Undo changes",
|
|
618
|
+
"saveFailed": "Couldn't save.",
|
|
619
|
+
"remove": "Delete",
|
|
620
|
+
"removeConfirm": "Delete this bot",
|
|
621
|
+
"cancel": "Cancel",
|
|
622
|
+
"removeHint": "Deleting this bot drops the bindings for every chat on it.",
|
|
623
|
+
"copy": "Copy",
|
|
624
|
+
"copied": "Copied.",
|
|
625
|
+
"copyFailed": "Couldn't copy that.",
|
|
626
|
+
"removeFailed": "Couldn't delete this bot.",
|
|
627
|
+
"status": {
|
|
628
|
+
"ready": "Ready",
|
|
629
|
+
"incomplete": "Incomplete"
|
|
630
|
+
},
|
|
631
|
+
"secret": {
|
|
632
|
+
"saved": "Saved. Leave blank to keep it.",
|
|
633
|
+
"clear": "Clear saved value",
|
|
634
|
+
"clearUndo": "Undo clear"
|
|
635
|
+
},
|
|
636
|
+
"issue": {
|
|
637
|
+
"required": "Fill this in.",
|
|
638
|
+
"format": "This format isn't right."
|
|
639
|
+
},
|
|
640
|
+
"publicField": {
|
|
641
|
+
"callbackUrl": "Callback URL"
|
|
642
|
+
},
|
|
643
|
+
"action": {
|
|
644
|
+
"running": "Working…",
|
|
645
|
+
"done": "Done.",
|
|
646
|
+
"close": "Close",
|
|
647
|
+
"failedToRun": "Couldn't run this on the machine.",
|
|
648
|
+
"saveFirst": "Save or undo your changes first. These check the saved settings.",
|
|
649
|
+
"qrTitle": "QR code to scan with the Lark app"
|
|
650
|
+
},
|
|
651
|
+
"step": {
|
|
652
|
+
"pending": "Waiting",
|
|
653
|
+
"running": "In progress",
|
|
654
|
+
"done": "Done",
|
|
655
|
+
"skipped": "Skipped",
|
|
656
|
+
"failed": "Failed"
|
|
657
|
+
},
|
|
658
|
+
"select": {
|
|
659
|
+
"default": "Default"
|
|
660
|
+
},
|
|
661
|
+
"target": {
|
|
662
|
+
"description": "Places a script or another tool can send a message to through a bot. The caller names the bot and the target id; the chat id on the platform stays here.",
|
|
663
|
+
"add": "Add a target",
|
|
664
|
+
"untitled": "New target",
|
|
665
|
+
"removeConfirm": "Delete this target",
|
|
666
|
+
"removeFailed": "Couldn't delete this target."
|
|
667
|
+
}
|
|
608
668
|
}
|
|
609
669
|
}
|
package/locales/zh-CN.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"settings": {
|
|
3
3
|
"title": "聊天",
|
|
4
|
-
"description": "把聊天机器人接到 Ycodium
|
|
4
|
+
"description": "把聊天机器人接到 Ycodium。一行一个机器人:先在对应平台建好机器人、把凭据填进来,再选访问模式(仅白名单/允许所有人)。仅白名单时把允许使用它的人填进「允许的人」。飞书可以用「连接飞书机器人」,扫一次码全部配好。获准的人私聊机器人(或把它拉进群)、在聊天里选好项目,就能派活。",
|
|
5
5
|
"bots": "机器人",
|
|
6
6
|
"language": {
|
|
7
7
|
"label": "回话语言",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"description": "机器人在群里什么时候回应(不选就是被 @ 才理);单聊永远理。企业微信只把 @ 到机器人的群消息推过来,这一项对它没有效果。"
|
|
109
109
|
},
|
|
110
110
|
"deliveryBotId": {
|
|
111
|
-
"label": "
|
|
112
|
-
"description": "
|
|
111
|
+
"label": "机器人",
|
|
112
|
+
"description": "发消息的那个机器人。调用方把括号里的 id 当作 botId 传。",
|
|
113
113
|
"placeholder": "机器人行 id"
|
|
114
114
|
},
|
|
115
115
|
"deliveryTargetId": {
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"setup": {
|
|
445
445
|
"action": {
|
|
446
446
|
"label": "连接飞书机器人",
|
|
447
|
-
"description": "用飞书 App 扫一次码。Ycodium
|
|
447
|
+
"description": "用飞书 App 扫一次码。Ycodium 会在你的账号下建好机器人应用,发布为仅自己可见,并把这个机器人连同凭据直接存进机器人列表,不用手填。",
|
|
448
448
|
"badge": "测试版",
|
|
449
449
|
"warning": "这个功能依赖飞书开发者后台的非公开接口,可能会失效。失效时请到开发者后台手动配置应用。"
|
|
450
450
|
},
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
},
|
|
472
472
|
"fillRow": {
|
|
473
473
|
"title": "添加机器人",
|
|
474
|
-
"body": "
|
|
474
|
+
"body": "在设置的「聊天」分区里添加一个机器人:平台选飞书,填入 App ID 与 App Secret,把你自己的飞书用户 id 填进「允许的人」(给机器人发一条消息,它会告诉你),然后保存。"
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
477
|
"status": {
|
|
@@ -605,5 +605,65 @@
|
|
|
605
605
|
"thread": "切回普通会话",
|
|
606
606
|
"panel": "打开命令面板",
|
|
607
607
|
"help": "列出全部命令"
|
|
608
|
+
},
|
|
609
|
+
"settingsSection": {
|
|
610
|
+
"empty": "还没有机器人",
|
|
611
|
+
"unavailable": "这台机器现在没有聊天桥。",
|
|
612
|
+
"loadFailed": "聊天桥的设置没能读出来。",
|
|
613
|
+
"retry": "再试一次",
|
|
614
|
+
"general": "通用设置",
|
|
615
|
+
"addBot": "添加机器人",
|
|
616
|
+
"save": "保存",
|
|
617
|
+
"revert": "撤销改动",
|
|
618
|
+
"saveFailed": "没能存上。",
|
|
619
|
+
"remove": "删除",
|
|
620
|
+
"removeConfirm": "确认删除",
|
|
621
|
+
"cancel": "取消",
|
|
622
|
+
"removeHint": "删掉这个机器人后,它下面所有会话的绑定都会一起丢掉。",
|
|
623
|
+
"copy": "复制",
|
|
624
|
+
"copied": "已复制。",
|
|
625
|
+
"copyFailed": "没复制上。",
|
|
626
|
+
"removeFailed": "没能删掉这个机器人。",
|
|
627
|
+
"status": {
|
|
628
|
+
"ready": "可用",
|
|
629
|
+
"incomplete": "还没填完"
|
|
630
|
+
},
|
|
631
|
+
"secret": {
|
|
632
|
+
"saved": "已经存过,留空就保持原值。",
|
|
633
|
+
"clear": "清除已存的值",
|
|
634
|
+
"clearUndo": "撤销清除"
|
|
635
|
+
},
|
|
636
|
+
"issue": {
|
|
637
|
+
"required": "这一项要填。",
|
|
638
|
+
"format": "这个格式不对。"
|
|
639
|
+
},
|
|
640
|
+
"publicField": {
|
|
641
|
+
"callbackUrl": "回调地址"
|
|
642
|
+
},
|
|
643
|
+
"action": {
|
|
644
|
+
"running": "正在处理…",
|
|
645
|
+
"done": "完成。",
|
|
646
|
+
"close": "关闭",
|
|
647
|
+
"failedToRun": "没能在这台机器上运行。",
|
|
648
|
+
"saveFirst": "先保存或撤销改动。这几项检查的是已保存的设置。",
|
|
649
|
+
"qrTitle": "用飞书 App 扫的二维码"
|
|
650
|
+
},
|
|
651
|
+
"step": {
|
|
652
|
+
"pending": "等待中",
|
|
653
|
+
"running": "进行中",
|
|
654
|
+
"done": "已完成",
|
|
655
|
+
"skipped": "已跳过",
|
|
656
|
+
"failed": "失败"
|
|
657
|
+
},
|
|
658
|
+
"select": {
|
|
659
|
+
"default": "默认"
|
|
660
|
+
},
|
|
661
|
+
"target": {
|
|
662
|
+
"description": "脚本或别的工具可以经机器人把消息发到这些地方。调用方只报机器人和目标 id,平台上的聊天 id 留在这里。",
|
|
663
|
+
"add": "添加目标",
|
|
664
|
+
"untitled": "新目标",
|
|
665
|
+
"removeConfirm": "删除这个目标",
|
|
666
|
+
"removeFailed": "这个目标没删掉。"
|
|
667
|
+
}
|
|
608
668
|
}
|
|
609
669
|
}
|
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.2978",
|
|
4
4
|
"description": "Talk to your agents from Telegram, WeCom, Lark, or WeChat (experimental).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"im",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
16
|
"files": [
|
|
17
17
|
"dist",
|
|
18
|
+
"assets",
|
|
18
19
|
"locales"
|
|
19
20
|
],
|
|
20
21
|
"type": "module",
|
|
@@ -25,11 +26,13 @@
|
|
|
25
26
|
"@effect/vitest": "4.0.0-beta.103",
|
|
26
27
|
"@larksuiteoapi/node-sdk": "^1.73.0",
|
|
27
28
|
"@types/markdown-it": "^14.2.0",
|
|
29
|
+
"@types/react": "~19.2.14",
|
|
28
30
|
"effect": "4.0.0-beta.103",
|
|
29
31
|
"esbuild": "0.28.1",
|
|
30
32
|
"markdown-it": "^15.0.2",
|
|
33
|
+
"react": "19.2.6",
|
|
31
34
|
"vite-plus": "0.2.2",
|
|
32
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
35
|
+
"@ycodium-ai/plugin-api": "0.2.2978"
|
|
33
36
|
},
|
|
34
37
|
"ycodium": {
|
|
35
38
|
"plugin": "./dist/index.js",
|
|
@@ -59,12 +62,22 @@
|
|
|
59
62
|
"thread.turn-intent.cancel",
|
|
60
63
|
"thread.turn-queue.resume"
|
|
61
64
|
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "ui.seats",
|
|
68
|
+
"seats": [
|
|
69
|
+
"settings.section"
|
|
70
|
+
]
|
|
62
71
|
}
|
|
63
|
-
]
|
|
72
|
+
],
|
|
73
|
+
"ui": {
|
|
74
|
+
"assets": "./assets",
|
|
75
|
+
"entry": "ui.js"
|
|
76
|
+
}
|
|
64
77
|
},
|
|
65
78
|
"scripts": {
|
|
66
79
|
"build": "node build.mjs",
|
|
67
|
-
"typecheck": "tsgo --noEmit",
|
|
80
|
+
"typecheck": "tsgo --noEmit && tsgo --noEmit -p tsconfig.ui.json",
|
|
68
81
|
"test": "vp test run"
|
|
69
82
|
}
|
|
70
83
|
}
|