@ycodium-ai/plugin-im 0.2.2700 → 0.2.2729
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 +12 -1
- package/dist/index.js +486 -373
- package/locales/en.json +24 -9
- package/locales/zh-CN.json +24 -9
- package/package.json +2 -2
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 list the people allowed to use it. Those people message the bot (or add it to a group), pick a project in the chat, and can start work.",
|
|
4
|
+
"description": "Connect chat bots to Ycodium. One row per bot: create the bot on its platform, paste its credentials, and list the people allowed to use it. For Lark, Connect a Lark bot above does all of that with one scan. Those 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",
|
|
@@ -312,10 +312,10 @@
|
|
|
312
312
|
},
|
|
313
313
|
"setup": {
|
|
314
314
|
"action": {
|
|
315
|
-
"label": "
|
|
316
|
-
"description": "Scan with the
|
|
315
|
+
"label": "Connect a Lark bot",
|
|
316
|
+
"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 below with its credentials saved. Nothing to fill in.",
|
|
317
317
|
"badge": "Beta",
|
|
318
|
-
"warning": "This
|
|
318
|
+
"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."
|
|
319
319
|
},
|
|
320
320
|
"manual": {
|
|
321
321
|
"createApp": {
|
|
@@ -339,8 +339,8 @@
|
|
|
339
339
|
"body": "Create a version and publish it. Choose \"visible to me only\" so it is approved at once, without waiting for an administrator."
|
|
340
340
|
},
|
|
341
341
|
"fillRow": {
|
|
342
|
-
"title": "
|
|
343
|
-
"body": "
|
|
342
|
+
"title": "Add the bot",
|
|
343
|
+
"body": "On the Chat card, 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."
|
|
344
344
|
}
|
|
345
345
|
},
|
|
346
346
|
"status": {
|
|
@@ -361,8 +361,22 @@
|
|
|
361
361
|
"publish": "Publish a version",
|
|
362
362
|
"secret": "Read the App secret"
|
|
363
363
|
},
|
|
364
|
-
"
|
|
364
|
+
"progress": {
|
|
365
|
+
"login": "Signing in ({{n}}/{{total}})",
|
|
366
|
+
"identity": "Reading your account ({{n}}/{{total}})",
|
|
367
|
+
"findApp": "Looking for an app from an earlier try ({{n}}/{{total}})",
|
|
368
|
+
"createApp": "Creating the app ({{n}}/{{total}})",
|
|
369
|
+
"enableBot": "Turning on the bot ({{n}}/{{total}})",
|
|
370
|
+
"longConnection": "Switching events and callbacks to the long connection ({{n}}/{{total}})",
|
|
371
|
+
"scopes": "Adding permissions ({{n}}/{{total}})",
|
|
372
|
+
"events": "Subscribing to events ({{n}}/{{total}})",
|
|
373
|
+
"callbacks": "Subscribing to card callbacks ({{n}}/{{total}})",
|
|
374
|
+
"publish": "Publishing a version ({{n}}/{{total}})",
|
|
375
|
+
"secret": "Reading the App secret ({{n}}/{{total}})"
|
|
376
|
+
},
|
|
377
|
+
"done": "Connected and saved. Message the bot in Lark to try it, then pick a project in the chat.",
|
|
365
378
|
"warn": {
|
|
379
|
+
"senderUnknown": "Could not read your Lark user id, so this bot's Allowed people list is empty and nobody can use it yet. Message the bot: it replies with your id. Put that id in Allowed people on the bot's row and save.",
|
|
366
380
|
"scopesMissing": "These permissions could not be added automatically: {{names}}. Add them in the developer console."
|
|
367
381
|
},
|
|
368
382
|
"failure": {
|
|
@@ -374,12 +388,13 @@
|
|
|
374
388
|
"consoleRejected": "The developer console turned the request down. Follow the manual steps, or try again later.",
|
|
375
389
|
"ownerDenied": "This account is not the owner of that app, so it cannot change it. Scan with the account that created it, or follow the manual steps.",
|
|
376
390
|
"verificationFailed": "The console did not keep the event settings, so the bot would receive nothing. Nothing was published. Follow the manual steps.",
|
|
377
|
-
"publishNeedsManual": "The app is set up but its version could not be published. Publish it in the developer console, then
|
|
391
|
+
"publishNeedsManual": "The app is set up but its version could not be published. Publish it in the developer console, then add the bot here by hand with its App ID and App secret.",
|
|
378
392
|
"busy": "Another setup is already running on this machine.",
|
|
379
393
|
"unknown": "Setup stopped on an unexpected error. Try again, or follow the manual steps.",
|
|
380
394
|
"createUnknown": "The console did not confirm whether the app was created. Try again: an app made by an earlier try is found and reused.",
|
|
381
395
|
"secretMissing": "The app {{appId}} is published, but its App secret could not be read. Copy it from Credentials & Basic Info in the developer console.",
|
|
382
|
-
"stopped": "Setup was stopped."
|
|
396
|
+
"stopped": "Setup was stopped.",
|
|
397
|
+
"saveFailed": "The app {{appId}} is set up and published, but the bot could not be saved here. Add it by hand: choose Lark, paste the App ID and the App secret from Credentials & Basic Info, and fill in Allowed people."
|
|
383
398
|
}
|
|
384
399
|
},
|
|
385
400
|
"repo": {
|
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": "回话语言",
|
|
@@ -312,10 +312,10 @@
|
|
|
312
312
|
},
|
|
313
313
|
"setup": {
|
|
314
314
|
"action": {
|
|
315
|
-
"label": "
|
|
316
|
-
"description": "用飞书 App
|
|
315
|
+
"label": "连接飞书机器人",
|
|
316
|
+
"description": "用飞书 App 扫一次码。Ycodium 会在你的账号下建好机器人应用,发布为仅自己可见,并把这个机器人连同凭据直接存进下面的列表,不用手填。",
|
|
317
317
|
"badge": "测试版",
|
|
318
|
-
"warning": "
|
|
318
|
+
"warning": "这个功能依赖飞书开发者后台的非公开接口,可能会失效。失效时请到开发者后台手动配置应用。"
|
|
319
319
|
},
|
|
320
320
|
"manual": {
|
|
321
321
|
"createApp": {
|
|
@@ -339,8 +339,8 @@
|
|
|
339
339
|
"body": "创建一个版本并发布。可见范围选「仅自己可见」,这样会立即通过审批,不用等管理员。"
|
|
340
340
|
},
|
|
341
341
|
"fillRow": {
|
|
342
|
-
"title": "
|
|
343
|
-
"body": "
|
|
342
|
+
"title": "添加机器人",
|
|
343
|
+
"body": "在聊天卡里添加一个机器人:平台选飞书,填入 App ID 与 App Secret,把你自己的飞书用户 id 填进「允许的人」(给机器人发一条消息,它会告诉你),然后保存。"
|
|
344
344
|
}
|
|
345
345
|
},
|
|
346
346
|
"status": {
|
|
@@ -361,8 +361,22 @@
|
|
|
361
361
|
"publish": "发布版本",
|
|
362
362
|
"secret": "读取 App Secret"
|
|
363
363
|
},
|
|
364
|
-
"
|
|
364
|
+
"progress": {
|
|
365
|
+
"login": "正在登录({{n}}/{{total}})",
|
|
366
|
+
"identity": "正在读取账号信息({{n}}/{{total}})",
|
|
367
|
+
"findApp": "正在查找之前尝试时建的应用({{n}}/{{total}})",
|
|
368
|
+
"createApp": "正在创建应用({{n}}/{{total}})",
|
|
369
|
+
"enableBot": "正在开启机器人({{n}}/{{total}})",
|
|
370
|
+
"longConnection": "正在把事件与回调切换为长连接({{n}}/{{total}})",
|
|
371
|
+
"scopes": "正在添加权限({{n}}/{{total}})",
|
|
372
|
+
"events": "正在订阅事件({{n}}/{{total}})",
|
|
373
|
+
"callbacks": "正在订阅卡片回调({{n}}/{{total}})",
|
|
374
|
+
"publish": "正在发布版本({{n}}/{{total}})",
|
|
375
|
+
"secret": "正在读取 App Secret({{n}}/{{total}})"
|
|
376
|
+
},
|
|
377
|
+
"done": "已连接并保存。去飞书里给机器人发一条消息试试,再在聊天里选项目。",
|
|
365
378
|
"warn": {
|
|
379
|
+
"senderUnknown": "没能读到你的飞书用户 id,所以这个机器人的「允许的人」是空的,暂时谁也用不了。给机器人发一条消息,它会回你的 id;把它填进这个机器人那一行的「允许的人」,再保存。",
|
|
366
380
|
"scopesMissing": "这些权限没能自动添加:{{names}}。请到开发者后台手动添加。"
|
|
367
381
|
},
|
|
368
382
|
"failure": {
|
|
@@ -374,12 +388,13 @@
|
|
|
374
388
|
"consoleRejected": "开发者后台拒绝了这次请求。请按手动步骤配置,或稍后再试。",
|
|
375
389
|
"ownerDenied": "这个账号不是该应用的所有者,无法修改它。请用创建该应用的账号扫码,或按手动步骤配置。",
|
|
376
390
|
"verificationFailed": "后台没有保存事件配置,机器人会收不到任何消息,所以没有发布。请按手动步骤配置。",
|
|
377
|
-
"publishNeedsManual": "
|
|
391
|
+
"publishNeedsManual": "应用已配置好,但版本没能发布。请到开发者后台手动发布,再在这里手动添加这个机器人,填入 App ID 与 App Secret。",
|
|
378
392
|
"busy": "这台机器上已经有一次配置在进行。",
|
|
379
393
|
"unknown": "配置因为意外错误中断。请重试,或按手动步骤配置。",
|
|
380
394
|
"createUnknown": "后台没有确认应用是否已创建。请重试:之前那次建出的应用会被找回并复用。",
|
|
381
395
|
"secretMissing": "应用 {{appId}} 已发布,但读不到它的 App Secret。请到开发者后台「凭证与基础信息」里复制。",
|
|
382
|
-
"stopped": "配置被中止了。"
|
|
396
|
+
"stopped": "配置被中止了。",
|
|
397
|
+
"saveFailed": "应用 {{appId}} 已配置并发布,但机器人没能存到这里。请手动添加:平台选飞书,填入 App ID 与开发者后台「凭证与基础信息」里的 App Secret,再填「允许的人」。"
|
|
383
398
|
}
|
|
384
399
|
},
|
|
385
400
|
"repo": {
|
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.2729",
|
|
4
4
|
"description": "Talk to your agents from Telegram, WeCom or Lark.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"im",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"esbuild": "0.28.1",
|
|
28
28
|
"markdown-it": "^15.0.2",
|
|
29
29
|
"vite-plus": "0.2.2",
|
|
30
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
30
|
+
"@ycodium-ai/plugin-api": "0.2.2729"
|
|
31
31
|
},
|
|
32
32
|
"ycodium": {
|
|
33
33
|
"plugin": "./dist/index.js",
|