@jeik/dingtalk-connector 0.8.21-fix5 → 0.8.21-fix7

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.
@@ -298,8 +298,8 @@ function getInstallSpec() {
298
298
  try {
299
299
  const require = createRequire(import.meta.url);
300
300
  const { version } = require('../package.json');
301
- if (version && /-(alpha|beta|rc|canary)/.test(version)) {
302
- // prerelease → use exact version so openclaw accepts it
301
+ // 任何预发布版(含 -)都钉精确版本,否则 openclaw 会装 latest(如 -fix6 被当稳定版误装成 0.8.21)
302
+ if (version && version.includes('-')) {
303
303
  return `${PKG_NAME}@${version}`;
304
304
  }
305
305
  } catch {}
@@ -922,10 +922,4 @@ Options:
922
922
  }
923
923
  }
924
924
 
925
- // 直接运行(npx / node bin)时才执行向导;被 import(测试)时不跑 main。
926
- const { pathToFileURL } = createRequire(import.meta.url)('node:url');
927
- if (globalThis['proc' + 'ess'].argv[1] && import.meta.url === pathToFileURL(globalThis['proc' + 'ess'].argv[1]).href) {
928
- main();
929
- }
930
-
931
- export { findShadowingLocalPlugin };
925
+ main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeik/dingtalk-connector",
3
- "version": "0.8.21-fix5",
3
+ "version": "0.8.21-fix7",
4
4
  "description": "OpenClaw DingTalk channel plugin (fork) | 钉钉 OpenClaw 渠道插件(fork 自官方,含标记/卡片渲染修复)",
5
5
  "type": "module",
6
6
  "exports": {