@openclaw-china/feishu-china 0.1.12 → 0.1.14

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/dist/index.js CHANGED
@@ -5602,7 +5602,7 @@ ${l}
5602
5602
  }
5603
5603
  }
5604
5604
  } }).prompt();
5605
- var PROJECT_REPO = "https://github.com/BytePioneer-AI/moltbot-china";
5605
+ var PROJECT_REPO = "https://github.com/BytePioneer-AI/openclaw-china";
5606
5606
  var GUIDES_BASE = "https://github.com/BytePioneer-AI/openclaw-china/tree/main/doc/guides";
5607
5607
  var OPENCLAW_HOME = join(homedir(), ".openclaw");
5608
5608
  var DEFAULT_PLUGIN_PATH = join(OPENCLAW_HOME, "extensions");
@@ -5997,6 +5997,7 @@ async function configureWecomApp(prompter, cfg) {
5997
5997
  section("\u914D\u7F6E WeCom App\uFF08\u81EA\u5EFA\u5E94\u7528-\u53EF\u63A5\u5165\u5FAE\u4FE1\uFF09");
5998
5998
  showGuideLink("wecom-app");
5999
5999
  const existing = getChannelConfig(cfg, "wecom-app");
6000
+ const existingAsr = isRecord(existing.asr) ? existing.asr : {};
6000
6001
  const webhookPath = await prompter.askText({
6001
6002
  label: "Webhook \u8DEF\u5F84\uFF08\u9700\u4E0E\u4F01\u4E1A\u5FAE\u4FE1\u540E\u53F0\u914D\u7F6E\u4E00\u81F4\uFF0C\u9ED8\u8BA4 /wecom-app\uFF09",
6002
6003
  defaultValue: toTrimmedString(existing.webhookPath) ?? "/wecom-app",
@@ -6035,12 +6036,45 @@ async function configureWecomApp(prompter, cfg) {
6035
6036
  patch.corpId = corpId;
6036
6037
  patch.corpSecret = corpSecret;
6037
6038
  patch.agentId = agentId;
6039
+ const asrEnabled = await prompter.askConfirm(
6040
+ "\u542F\u7528 ASR\uFF08\u652F\u6301\u5165\u7AD9\u8BED\u97F3\u81EA\u52A8\u8F6C\u6587\u5B57\uFF09",
6041
+ toBoolean(existingAsr.enabled, false)
6042
+ );
6043
+ const asr = {
6044
+ enabled: asrEnabled
6045
+ };
6046
+ if (asrEnabled) {
6047
+ Ve(
6048
+ [
6049
+ "ASR \u5F00\u901A\u65B9\u5F0F\u8BF7\u67E5\u770B\u914D\u7F6E\u6587\u6863\uFF1A\u6B65\u9AA4\u4E03\uFF08\u53EF\u9009\uFF09\uFF1A\u5F00\u542F\u8BED\u97F3\u8F6C\u6587\u672C\uFF08ASR\uFF09",
6050
+ "https://github.com/BytePioneer-AI/openclaw-china/blob/main/doc/guides/wecom-app/configuration.md"
6051
+ ].join("\n"),
6052
+ "\u63D0\u793A"
6053
+ );
6054
+ asr.appId = await prompter.askText({
6055
+ label: "ASR appId\uFF08\u817E\u8BAF\u4E91\uFF09",
6056
+ defaultValue: toTrimmedString(existingAsr.appId),
6057
+ required: true
6058
+ });
6059
+ asr.secretId = await prompter.askSecret({
6060
+ label: "ASR secretId\uFF08\u817E\u8BAF\u4E91\uFF09",
6061
+ existingValue: toTrimmedString(existingAsr.secretId),
6062
+ required: true
6063
+ });
6064
+ asr.secretKey = await prompter.askSecret({
6065
+ label: "ASR secretKey\uFF08\u817E\u8BAF\u4E91\uFF09",
6066
+ existingValue: toTrimmedString(existingAsr.secretKey),
6067
+ required: true
6068
+ });
6069
+ }
6070
+ patch.asr = asr;
6038
6071
  return mergeChannelConfig(cfg, "wecom-app", patch);
6039
6072
  }
6040
6073
  async function configureQQBot(prompter, cfg) {
6041
6074
  section("\u914D\u7F6E QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09");
6042
6075
  showGuideLink("qqbot");
6043
6076
  const existing = getChannelConfig(cfg, "qqbot");
6077
+ const existingAsr = isRecord(existing.asr) ? existing.asr : {};
6044
6078
  const appId = await prompter.askText({
6045
6079
  label: "QQBot appId",
6046
6080
  defaultValue: toTrimmedString(existing.appId),
@@ -6051,19 +6085,44 @@ async function configureQQBot(prompter, cfg) {
6051
6085
  existingValue: toTrimmedString(existing.clientSecret),
6052
6086
  required: true
6053
6087
  });
6088
+ Ve(
6089
+ "QQ \u7684 Markdown \u4F53\u9A8C\u5F88\u597D\uFF0C\u4F46\u9700\u8981\u5148\u7533\u8BF7\u5F00\u901A\uFF0C\u8BE6\u60C5\u8BF7\u67E5\u770B\u914D\u7F6E\u6587\u6863\u3002",
6090
+ "\u63D0\u793A"
6091
+ );
6054
6092
  const markdownSupport = await prompter.askConfirm(
6055
6093
  "\u542F\u7528 Markdown \u652F\u6301",
6056
6094
  toBoolean(existing.markdownSupport, false)
6057
6095
  );
6058
- const replyFinalOnly = await prompter.askConfirm(
6059
- "\u4EC5\u53D1\u9001\u6700\u7EC8\u56DE\u590D\uFF08\u5173\u95ED\u6D41\u5F0F\u5206\u7247\uFF09",
6060
- toBoolean(existing.replyFinalOnly, false)
6096
+ const asrEnabled = await prompter.askConfirm(
6097
+ "\u542F\u7528 ASR\uFF08\u652F\u6301\u5165\u7AD9\u8BED\u97F3\u81EA\u52A8\u8F6C\u6587\u5B57\uFF09",
6098
+ toBoolean(existingAsr.enabled, false)
6061
6099
  );
6100
+ const asr = {
6101
+ enabled: asrEnabled
6102
+ };
6103
+ if (asrEnabled) {
6104
+ Ve("ASR \u5F00\u901A\u65B9\u5F0F\u8BE6\u60C5\u8BF7\u67E5\u770B\u914D\u7F6E\u6587\u6863\u3002", "\u63D0\u793A");
6105
+ asr.appId = await prompter.askText({
6106
+ label: "ASR appId\uFF08\u817E\u8BAF\u4E91\uFF09",
6107
+ defaultValue: toTrimmedString(existingAsr.appId),
6108
+ required: true
6109
+ });
6110
+ asr.secretId = await prompter.askSecret({
6111
+ label: "ASR secretId\uFF08\u817E\u8BAF\u4E91\uFF09",
6112
+ existingValue: toTrimmedString(existingAsr.secretId),
6113
+ required: true
6114
+ });
6115
+ asr.secretKey = await prompter.askSecret({
6116
+ label: "ASR secretKey\uFF08\u817E\u8BAF\u4E91\uFF09",
6117
+ existingValue: toTrimmedString(existingAsr.secretKey),
6118
+ required: true
6119
+ });
6120
+ }
6062
6121
  return mergeChannelConfig(cfg, "qqbot", {
6063
6122
  appId,
6064
6123
  clientSecret,
6065
6124
  markdownSupport,
6066
- replyFinalOnly
6125
+ asr
6067
6126
  });
6068
6127
  }
6069
6128
  async function configureSingleChannel(channel, prompter, cfg) {
@@ -6204,7 +6263,7 @@ function registerChinaSetupCli(api, opts) {
6204
6263
  }
6205
6264
 
6206
6265
  // ../../packages/shared/src/cli/install-hint.ts
6207
- var PROJECT_REPO2 = "https://github.com/BytePioneer-AI/moltbot-china";
6266
+ var PROJECT_REPO2 = "https://github.com/BytePioneer-AI/openclaw-china";
6208
6267
  var INSTALL_SETUP_COMMAND = "openclaw china setup";
6209
6268
  var START_GATEWAY_COMMAND = "openclaw gateway --port 18789 --verbose";
6210
6269
  var ANSI_RESET2 = "\x1B[0m";