@nextclaw/server 0.5.24 → 0.5.25

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -60,22 +60,12 @@ var PREFERRED_PROVIDER_ORDER_INDEX = new Map(
60
60
  PREFERRED_PROVIDER_ORDER.map((name, index) => [name, index])
61
61
  );
62
62
  var DOCS_BASE_URL = "https://docs.nextclaw.io";
63
- var CHANNEL_DEFAULT_TUTORIAL_URL = `${DOCS_BASE_URL}/guide/channels`;
64
63
  var CHANNEL_TUTORIAL_URLS = {
65
- telegram: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
66
- whatsapp: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
67
- discord: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
68
64
  feishu: {
69
65
  default: `${DOCS_BASE_URL}/guide/tutorials/feishu`,
70
66
  en: `${DOCS_BASE_URL}/en/guide/tutorials/feishu`,
71
67
  zh: `${DOCS_BASE_URL}/zh/guide/tutorials/feishu`
72
- },
73
- mochat: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
74
- dingtalk: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
75
- wecom: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
76
- email: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
77
- slack: { default: CHANNEL_DEFAULT_TUTORIAL_URL },
78
- qq: { default: CHANNEL_DEFAULT_TUTORIAL_URL }
68
+ }
79
69
  };
80
70
  function matchesExtraSensitivePath(path) {
81
71
  if (path === "session" || path.startsWith("session.")) {
@@ -378,8 +368,8 @@ function buildConfigMeta(config) {
378
368
  return left.name.localeCompare(right.name);
379
369
  });
380
370
  const channels = Object.keys(config.channels).map((name) => {
381
- const tutorialUrls = CHANNEL_TUTORIAL_URLS[name] ?? { default: CHANNEL_DEFAULT_TUTORIAL_URL };
382
- const tutorialUrl = tutorialUrls.default ?? tutorialUrls.en ?? tutorialUrls.zh;
371
+ const tutorialUrls = CHANNEL_TUTORIAL_URLS[name];
372
+ const tutorialUrl = tutorialUrls?.default ?? tutorialUrls?.en ?? tutorialUrls?.zh;
383
373
  return {
384
374
  name,
385
375
  displayName: name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/server",
3
- "version": "0.5.24",
3
+ "version": "0.5.25",
4
4
  "private": false,
5
5
  "description": "Nextclaw UI/API server.",
6
6
  "type": "module",