aai-lark-bridge 0.2.20 → 0.2.21

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/cli.js CHANGED
@@ -4,7 +4,7 @@ import { Command } from "commander";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "aai-lark-bridge",
7
- version: "0.2.20",
7
+ version: "0.2.21",
8
8
  description: "Lark AI Native Bridge - Lark\u57FA\u7840\u8BBE\u65BD\u5C42\u548CCLI\u96C6\u6210",
9
9
  type: "module",
10
10
  main: "./dist/index.js",
@@ -729,7 +729,8 @@ function normalizePerSenderUser(input, agentKind) {
729
729
  if (typeof raw.tokenCommand !== "string" || !raw.tokenCommand.trim()) {
730
730
  throw new Error("larkCli.perSenderUser.tokenCommand \u4E0D\u80FD\u4E3A\u7A7A");
731
731
  }
732
- return { enabled: true, gatewayUrl: raw.gatewayUrl.replace(/\/+$/, ""), tokenCommand: raw.tokenCommand };
732
+ const dbPrompt = typeof raw.dbPrompt === "string" && raw.dbPrompt.trim() ? raw.dbPrompt : void 0;
733
+ return { enabled: true, gatewayUrl: raw.gatewayUrl.replace(/\/+$/, ""), tokenCommand: raw.tokenCommand, ...dbPrompt ? { dbPrompt } : {} };
733
734
  }
734
735
  function normalizeLarkCliUserImport(input) {
735
736
  if (!input || typeof input !== "object" || Array.isArray(input)) return void 0;