codex-to-im 1.0.28 → 1.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-to-im",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Installable Codex-to-IM bridge with local setup UI and background service",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/zhangle1987/codex-to-im#readme",
@@ -282,7 +282,7 @@ What happens next:
282
282
  5. On success, the helper stores the linked account in:
283
283
  `~/.codex-to-im/data/weixin-accounts.json`
284
284
 
285
- The filename stays plural for backward compatibility, but Weixin currently runs in single-account mode.
285
+ The filename stays plural for backward compatibility. Multiple linked Weixin accounts can coexist in the same store.
286
286
 
287
287
  If the browser does not open automatically, open the HTML file manually.
288
288
 
package/scripts/doctor.sh CHANGED
@@ -392,15 +392,15 @@ if [ -f "$CONFIG_FILE" ]; then
392
392
  const enabled = accounts.filter((a) => a && a.enabled && a.token).length;
393
393
  process.stdout.write(`${enabled}:${accounts.length}`);
394
394
  ' "$WX_ACCOUNTS_FILE" 2>/dev/null || echo "0:0")
395
- WX_ENABLED="${WX_COUNTS%%:*}"
396
- WX_TOTAL="${WX_COUNTS##*:}"
397
- if [ "${WX_ENABLED:-0}" -ge 1 ] 2>/dev/null; then
398
- if [ "${WX_TOTAL:-0}" -gt 1 ] 2>/dev/null; then
399
- check "Weixin linked account store (single-account mode; ${WX_TOTAL} records on disk, newest enabled record will be used)" 0
400
- else
401
- check "Weixin linked account store (single linked account ready)" 0
402
- fi
403
- else
395
+ WX_ENABLED="${WX_COUNTS%%:*}"
396
+ WX_TOTAL="${WX_COUNTS##*:}"
397
+ if [ "${WX_ENABLED:-0}" -ge 1 ] 2>/dev/null; then
398
+ if [ "${WX_TOTAL:-0}" -gt 1 ] 2>/dev/null; then
399
+ check "Weixin linked account store (${WX_TOTAL} linked accounts ready; assign each channel to a specific account)" 0
400
+ else
401
+ check "Weixin linked account store (1 linked account ready)" 0
402
+ fi
403
+ else
404
404
  check "Weixin linked account store (found file, but no enabled linked account with token — run 'cd $SKILL_DIR && npm run weixin:login')" 1
405
405
  fi
406
406
  else