@wu529778790/open-im 1.8.1-beta.7 → 1.8.1-beta.8
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.
|
@@ -50,6 +50,7 @@ export declare const PAGE_TEXTS: {
|
|
|
50
50
|
readonly qqSummary: "App ID and secret for bot access.";
|
|
51
51
|
readonly weworkSummary: "Corp ID and secret for enterprise delivery.";
|
|
52
52
|
readonly dingtalkSummary: "Client credentials plus optional card template.";
|
|
53
|
+
readonly workbuddySummary: "CodeBuddy OAuth for WeChat customer service.";
|
|
53
54
|
readonly platformCredentialsTitle: "Credentials";
|
|
54
55
|
readonly platformAccessTitle: "Routing and access";
|
|
55
56
|
readonly platformTestNote: "Checks required credentials against the platform.";
|
|
@@ -70,8 +71,13 @@ export declare const PAGE_TEXTS: {
|
|
|
70
71
|
readonly clientId: "Client ID / AppKey";
|
|
71
72
|
readonly clientSecret: "Client Secret / AppSecret";
|
|
72
73
|
readonly dingtalkHelp: "Get credentials: Create an enterprise internal app on <a href=\"https://open-dev.dingtalk.com/\" target=\"_blank\">DingTalk Open Platform</a>, enable Stream Mode, and get Client ID / Client Secret";
|
|
74
|
+
readonly workbuddyHelp: "Get credentials: Login via CodeBuddy OAuth to get access/refresh tokens. WorkBuddy connects WeChat customer service through Centrifuge WebSocket.";
|
|
73
75
|
readonly secret: "Secret";
|
|
74
76
|
readonly cardTemplateId: "Card template ID";
|
|
77
|
+
readonly workbuddyAccessToken: "Access Token";
|
|
78
|
+
readonly workbuddyRefreshToken: "Refresh Token";
|
|
79
|
+
readonly workbuddyUserId: "User ID";
|
|
80
|
+
readonly workbuddyBaseUrl: "Base URL";
|
|
75
81
|
readonly optional: "Optional";
|
|
76
82
|
readonly commaSeparatedIds: "Comma-separated IDs";
|
|
77
83
|
readonly aiTitle: "AI Tooling";
|
|
@@ -178,6 +184,7 @@ export declare const PAGE_TEXTS: {
|
|
|
178
184
|
readonly qqSummary: "QQ 机器人 App ID 与 Secret。";
|
|
179
185
|
readonly weworkSummary: "企业微信 Corp ID 与 Secret。";
|
|
180
186
|
readonly dingtalkSummary: "钉钉 Client 凭证,可选配置卡片模板 ID。";
|
|
187
|
+
readonly workbuddySummary: "CodeBuddy OAuth 连接微信客服。";
|
|
181
188
|
readonly platformCredentialsTitle: "凭证";
|
|
182
189
|
readonly platformAccessTitle: "路由与访问";
|
|
183
190
|
readonly platformTestNote: "只会检查该平台的必填凭证是否可用。";
|
|
@@ -198,7 +205,12 @@ export declare const PAGE_TEXTS: {
|
|
|
198
205
|
readonly clientId: "Client ID / AppKey";
|
|
199
206
|
readonly clientSecret: "Client Secret / AppSecret";
|
|
200
207
|
readonly dingtalkHelp: "获取凭证:在 <a href=\"https://open-dev.dingtalk.com/\" target=\"_blank\">钉钉开放平台</a> 创建企业内部应用,启用 Stream Mode,并拿到 Client ID / Client Secret";
|
|
208
|
+
readonly workbuddyHelp: "获取凭证:通过 CodeBuddy OAuth 登录获取 access/refresh token。WorkBuddy 通过 Centrifuge WebSocket 连接微信客服。";
|
|
201
209
|
readonly cardTemplateId: "卡片模板 ID";
|
|
210
|
+
readonly workbuddyAccessToken: "Access Token";
|
|
211
|
+
readonly workbuddyRefreshToken: "Refresh Token";
|
|
212
|
+
readonly workbuddyUserId: "User ID";
|
|
213
|
+
readonly workbuddyBaseUrl: "基础 URL";
|
|
202
214
|
readonly optional: "可选";
|
|
203
215
|
readonly commaSeparatedIds: "多个 ID 用逗号分隔";
|
|
204
216
|
readonly aiTitle: "AI 工具配置";
|
|
@@ -50,6 +50,7 @@ export const PAGE_TEXTS = {
|
|
|
50
50
|
qqSummary: "App ID and secret for bot access.",
|
|
51
51
|
weworkSummary: "Corp ID and secret for enterprise delivery.",
|
|
52
52
|
dingtalkSummary: "Client credentials plus optional card template.",
|
|
53
|
+
workbuddySummary: "CodeBuddy OAuth for WeChat customer service.",
|
|
53
54
|
platformCredentialsTitle: "Credentials",
|
|
54
55
|
platformAccessTitle: "Routing and access",
|
|
55
56
|
platformTestNote: "Checks required credentials against the platform.",
|
|
@@ -70,8 +71,13 @@ export const PAGE_TEXTS = {
|
|
|
70
71
|
clientId: "Client ID / AppKey",
|
|
71
72
|
clientSecret: "Client Secret / AppSecret",
|
|
72
73
|
dingtalkHelp: 'Get credentials: Create an enterprise internal app on <a href="https://open-dev.dingtalk.com/" target="_blank">DingTalk Open Platform</a>, enable Stream Mode, and get Client ID / Client Secret',
|
|
74
|
+
workbuddyHelp: 'Get credentials: Login via CodeBuddy OAuth to get access/refresh tokens. WorkBuddy connects WeChat customer service through Centrifuge WebSocket.',
|
|
73
75
|
secret: "Secret",
|
|
74
76
|
cardTemplateId: "Card template ID",
|
|
77
|
+
workbuddyAccessToken: "Access Token",
|
|
78
|
+
workbuddyRefreshToken: "Refresh Token",
|
|
79
|
+
workbuddyUserId: "User ID",
|
|
80
|
+
workbuddyBaseUrl: "Base URL",
|
|
75
81
|
optional: "Optional",
|
|
76
82
|
commaSeparatedIds: "Comma-separated IDs",
|
|
77
83
|
aiTitle: "AI Tooling",
|
|
@@ -178,6 +184,7 @@ export const PAGE_TEXTS = {
|
|
|
178
184
|
qqSummary: "QQ \u673a\u5668\u4eba App ID \u4e0e Secret\u3002",
|
|
179
185
|
weworkSummary: "\u4f01\u4e1a\u5fae\u4fe1 Corp ID \u4e0e Secret\u3002",
|
|
180
186
|
dingtalkSummary: "\u9489\u9489 Client \u51ed\u8bc1\uff0c\u53ef\u9009\u914d\u7f6e\u5361\u7247\u6a21\u677f ID\u3002",
|
|
187
|
+
workbuddySummary: "CodeBuddy OAuth \u8fde\u63a5\u5fae\u4fe1\u5ba2\u670d\u3002",
|
|
181
188
|
platformCredentialsTitle: "\u51ed\u8bc1",
|
|
182
189
|
platformAccessTitle: "\u8def\u7531\u4e0e\u8bbf\u95ee",
|
|
183
190
|
platformTestNote: "\u53ea\u4f1a\u68c0\u67e5\u8be5\u5e73\u53f0\u7684\u5fc5\u586b\u51ed\u8bc1\u662f\u5426\u53ef\u7528\u3002",
|
|
@@ -198,7 +205,12 @@ export const PAGE_TEXTS = {
|
|
|
198
205
|
clientId: "Client ID / AppKey",
|
|
199
206
|
clientSecret: "Client Secret / AppSecret",
|
|
200
207
|
dingtalkHelp: '\u83b7\u53d6\u51ed\u8bc1\uff1a\u5728 <a href="https://open-dev.dingtalk.com/" target="_blank">\u9489\u9489\u5f00\u653e\u5e73\u53f0</a> \u521b\u5efa\u4f01\u4e1a\u5185\u90e8\u5e94\u7528\uff0c\u542f\u7528 Stream Mode\uff0c\u5e76\u62ff\u5230 Client ID / Client Secret',
|
|
208
|
+
workbuddyHelp: '\u83b7\u53d6\u51ed\u8bc1\uff1a\u901a\u8fc7 CodeBuddy OAuth \u767b\u5f55\u83b7\u53d6 access/refresh token\u3002WorkBuddy \u901a\u8fc7 Centrifuge WebSocket \u8fde\u63a5\u5fae\u4fe1\u5ba2\u670d\u3002',
|
|
201
209
|
cardTemplateId: "\u5361\u7247\u6a21\u677f ID",
|
|
210
|
+
workbuddyAccessToken: "Access Token",
|
|
211
|
+
workbuddyRefreshToken: "Refresh Token",
|
|
212
|
+
workbuddyUserId: "User ID",
|
|
213
|
+
workbuddyBaseUrl: "\u57fa\u7840 URL",
|
|
202
214
|
optional: "\u53ef\u9009",
|
|
203
215
|
commaSeparatedIds: "\u591a\u4e2a ID \u7528\u9017\u53f7\u5206\u9694",
|
|
204
216
|
aiTitle: "AI \u5de5\u5177\u914d\u7f6e",
|
|
@@ -4,6 +4,7 @@ export const PAGE_SCRIPT = String.raw ` const platformDefinitions = [
|
|
|
4
4
|
{ key: "qq", label: "QQ", fields: ["aiCommand", "appId", "secret", "allowedUserIds"], testFields: ["appId", "secret"], requiredFields: ["appId", "secret"] },
|
|
5
5
|
{ key: "wework", label: "WeWork", fields: ["aiCommand", "corpId", "secret", "allowedUserIds"], testFields: ["corpId", "secret"], requiredFields: ["corpId", "secret"] },
|
|
6
6
|
{ key: "dingtalk", label: "DingTalk", fields: ["aiCommand", "clientId", "clientSecret", "cardTemplateId", "allowedUserIds"], testFields: ["clientId", "clientSecret"], requiredFields: ["clientId", "clientSecret"] },
|
|
7
|
+
{ key: "workbuddy", label: "WorkBuddy", fields: ["aiCommand", "accessToken", "refreshToken", "userId", "baseUrl", "allowedUserIds"], testFields: ["accessToken", "refreshToken", "userId"], requiredFields: ["accessToken", "refreshToken", "userId"] },
|
|
7
8
|
];
|
|
8
9
|
const platformKeys = platformDefinitions.map((platform) => platform.key);
|
|
9
10
|
const aiTools = ["claude", "codex", "codebuddy"];
|
|
@@ -828,7 +828,7 @@ export const PAGE_HTML_PREFIX = String.raw `<!doctype html>
|
|
|
828
828
|
<div class="stats-grid">
|
|
829
829
|
<div class="stat-card">
|
|
830
830
|
<div class="stat-label" id="statConfiguredLabel">Configured</div>
|
|
831
|
-
<div class="stat-value" id="statConfiguredValue">0/
|
|
831
|
+
<div class="stat-value" id="statConfiguredValue">0/6</div>
|
|
832
832
|
</div>
|
|
833
833
|
<div class="stat-card">
|
|
834
834
|
<div class="stat-label" id="statEnabledLabel">Enabled</div>
|
|
@@ -1058,6 +1058,53 @@ export const PAGE_HTML_PREFIX = String.raw `<!doctype html>
|
|
|
1058
1058
|
<div id="test-dingtalk-result" class="mt-4"></div>
|
|
1059
1059
|
</div>
|
|
1060
1060
|
</div>
|
|
1061
|
+
|
|
1062
|
+
<!-- WorkBuddy -->
|
|
1063
|
+
<div class="platform-card">
|
|
1064
|
+
<div class="platform-header">
|
|
1065
|
+
<h3 class="platform-title">WorkBuddy</h3>
|
|
1066
|
+
<label class="toggle">
|
|
1067
|
+
<input type="checkbox" id="workbuddy-enabled" class="toggle-input">
|
|
1068
|
+
<span class="toggle-switch"></span>
|
|
1069
|
+
<span class="toggle-label" id="workbuddy-label">Enabled</span>
|
|
1070
|
+
</label>
|
|
1071
|
+
</div>
|
|
1072
|
+
<div class="platform-body">
|
|
1073
|
+
<div class="form-group">
|
|
1074
|
+
<label class="form-label" id="workbuddy-aiCommand-label">AI Tool</label>
|
|
1075
|
+
<select id="workbuddy-aiCommand" class="form-select">
|
|
1076
|
+
<option value="claude">claude</option>
|
|
1077
|
+
<option value="codex">codex</option>
|
|
1078
|
+
<option value="codebuddy">codebuddy</option>
|
|
1079
|
+
</select>
|
|
1080
|
+
</div>
|
|
1081
|
+
<div class="form-group">
|
|
1082
|
+
<label class="form-label" id="workbuddy-accessToken-label">Access Token</label>
|
|
1083
|
+
<input id="workbuddy-accessToken" class="form-input mono" type="password" autocomplete="off" />
|
|
1084
|
+
</div>
|
|
1085
|
+
<div class="form-group">
|
|
1086
|
+
<label class="form-label" id="workbuddy-refreshToken-label">Refresh Token</label>
|
|
1087
|
+
<input id="workbuddy-refreshToken" class="form-input mono" type="password" autocomplete="off" />
|
|
1088
|
+
</div>
|
|
1089
|
+
<div class="form-group">
|
|
1090
|
+
<label class="form-label" id="workbuddy-userId-label">User ID</label>
|
|
1091
|
+
<input id="workbuddy-userId" class="form-input mono" type="text" />
|
|
1092
|
+
</div>
|
|
1093
|
+
<div class="form-group">
|
|
1094
|
+
<label class="form-label" id="workbuddy-baseUrl-label">Base URL (optional)</label>
|
|
1095
|
+
<input id="workbuddy-baseUrl" class="form-input mono" type="text" placeholder="https://copilot.tencent.com" />
|
|
1096
|
+
</div>
|
|
1097
|
+
<div class="form-group">
|
|
1098
|
+
<label class="form-label" id="workbuddy-allowedUserIds-label">Allowed User IDs</label>
|
|
1099
|
+
<textarea id="workbuddy-allowedUserIds" class="form-textarea mono"></textarea>
|
|
1100
|
+
</div>
|
|
1101
|
+
<div class="form-help" id="workbuddy-help">WorkBuddy uses CodeBuddy OAuth to connect WeChat customer service. Get credentials from CodeBuddy login.</div>
|
|
1102
|
+
<div style="display: flex; gap: 12px; flex-wrap: wrap;">
|
|
1103
|
+
<button id="test-workbuddy" class="btn btn-secondary btn-sm" type="button">Test Configuration</button>
|
|
1104
|
+
</div>
|
|
1105
|
+
<div id="test-workbuddy-result" class="mt-4"></div>
|
|
1106
|
+
</div>
|
|
1107
|
+
</div>
|
|
1061
1108
|
</div>
|
|
1062
1109
|
</section>
|
|
1063
1110
|
|