liangzimixin 0.3.64 → 0.3.65

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.cjs CHANGED
@@ -19545,29 +19545,7 @@ var quantumImOnboarding = {
19545
19545
  ].join("\n"),
19546
19546
  "\u91CF\u5B50\u5BC6\u4FE1 \u2014 \u51ED\u636E\u914D\u7F6E"
19547
19547
  );
19548
- const encryptionModeChoice = await prompter.select({
19549
- message: "\u8BF7\u9009\u62E9\u6D88\u606F\u4EA4\u4E92\u65B9\u5F0F",
19550
- options: [
19551
- { value: "quantum_only", label: "\u4EC5\u91CF\u5B50\u52A0\u5BC6\u6D88\u606F" },
19552
- { value: "quantum_and_plain", label: "\u91CF\u5B50\u52A0\u5BC6+\u666E\u901A\u6D88\u606F" }
19553
- ],
19554
- initialValue: existing.encryptionMode ?? "quantum_and_plain"
19555
- });
19556
- let quantumAccount = "";
19557
- if (encryptionModeChoice === "quantum_only") {
19558
- quantumAccount = await prompter.text({
19559
- message: "quantumAccount\uFF08\u82E5\u91CF\u5B50\u52A0\u5BC6\u7981\u7528\uFF0C\u5219\u7559\u7A7A\uFF09",
19560
- placeholder: "\u5982: 17100001111",
19561
- initialValue: existing.quantumAccount ?? void 0,
19562
- validate: required2
19563
- });
19564
- } else {
19565
- quantumAccount = await prompter.text({
19566
- message: "\u91CF\u5B50\u8D26\u6237\u6807\u8BC6\uFF08\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u4EC5\u652F\u6301\u660E\u6587\uFF09",
19567
- placeholder: "\u5982: 17100001111",
19568
- initialValue: existing.quantumAccount ?? void 0
19569
- });
19570
- }
19548
+ const encryptionModeChoice = existing.encryptionMode || "quantum_and_plain";
19571
19549
  const appId = await prompter.text({
19572
19550
  message: "\u5E94\u7528 ID (appId)",
19573
19551
  initialValue: existing.appId ?? void 0,
@@ -19578,6 +19556,11 @@ var quantumImOnboarding = {
19578
19556
  initialValue: existing.appSecret ?? void 0,
19579
19557
  validate: required2
19580
19558
  });
19559
+ const quantumAccount = await prompter.text({
19560
+ message: "\u91CF\u5B50\u8D26\u6237\u6807\u8BC6\uFF08\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u4EC5\u652F\u6301\u660E\u6587\uFF09",
19561
+ placeholder: "\u5982: 17100001111",
19562
+ initialValue: existing.quantumAccount ?? void 0
19563
+ });
19581
19564
  const channels = cfg.channels ?? {};
19582
19565
  const channelCfg = channels[CHANNEL_ID] ?? {};
19583
19566
  const accounts = channelCfg.accounts ?? {};
@@ -21775,29 +21775,7 @@ var quantumImOnboarding = {
21775
21775
  ].join("\n"),
21776
21776
  "\u91CF\u5B50\u5BC6\u4FE1 \u2014 \u51ED\u636E\u914D\u7F6E"
21777
21777
  );
21778
- const encryptionModeChoice = await prompter.select({
21779
- message: "\u8BF7\u9009\u62E9\u6D88\u606F\u4EA4\u4E92\u65B9\u5F0F",
21780
- options: [
21781
- { value: "quantum_only", label: "\u4EC5\u91CF\u5B50\u52A0\u5BC6\u6D88\u606F" },
21782
- { value: "quantum_and_plain", label: "\u91CF\u5B50\u52A0\u5BC6+\u666E\u901A\u6D88\u606F" }
21783
- ],
21784
- initialValue: existing.encryptionMode ?? "quantum_and_plain"
21785
- });
21786
- let quantumAccount = "";
21787
- if (encryptionModeChoice === "quantum_only") {
21788
- quantumAccount = await prompter.text({
21789
- message: "quantumAccount\uFF08\u82E5\u91CF\u5B50\u52A0\u5BC6\u7981\u7528\uFF0C\u5219\u7559\u7A7A\uFF09",
21790
- placeholder: "\u5982: 17100001111",
21791
- initialValue: existing.quantumAccount ?? void 0,
21792
- validate: required2
21793
- });
21794
- } else {
21795
- quantumAccount = await prompter.text({
21796
- message: "\u91CF\u5B50\u8D26\u6237\u6807\u8BC6\uFF08\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u4EC5\u652F\u6301\u660E\u6587\uFF09",
21797
- placeholder: "\u5982: 17100001111",
21798
- initialValue: existing.quantumAccount ?? void 0
21799
- });
21800
- }
21778
+ const encryptionModeChoice = existing.encryptionMode || "quantum_and_plain";
21801
21779
  const appId = await prompter.text({
21802
21780
  message: "\u5E94\u7528 ID (appId)",
21803
21781
  initialValue: existing.appId ?? void 0,
@@ -21808,6 +21786,11 @@ var quantumImOnboarding = {
21808
21786
  initialValue: existing.appSecret ?? void 0,
21809
21787
  validate: required2
21810
21788
  });
21789
+ const quantumAccount = await prompter.text({
21790
+ message: "\u91CF\u5B50\u8D26\u6237\u6807\u8BC6\uFF08\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u4EC5\u652F\u6301\u660E\u6587\uFF09",
21791
+ placeholder: "\u5982: 17100001111",
21792
+ initialValue: existing.quantumAccount ?? void 0
21793
+ });
21811
21794
  const channels = cfg.channels ?? {};
21812
21795
  const channelCfg = channels[CHANNEL_ID] ?? {};
21813
21796
  const accounts = channelCfg.accounts ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liangzimixin",
3
- "version": "0.3.64",
3
+ "version": "0.3.65",
4
4
  "description": "Quantum-encrypted IM channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",