soulsync 1.0.15 → 1.0.16

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/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -77,9 +77,10 @@ async function getUserGreeting(token, deviceName) {
77
77
 
78
78
  function detectAuthMode(api) {
79
79
  const hasChatAPI = api && typeof api.registerTool === 'function';
80
- const isLocalTTY = process.stdin.isTTY && !process.env.SSH_CLIENT && !process.env.SSH_TTY;
81
- const isSSH = process.env.SSH_CLIENT || process.env.SSH_TTY;
82
-
80
+
81
+ const isSSH = process.env.SSH_CONNECTION || process.env.SSH_CLIENT || process.env.SSH_TTY;
82
+ const isLocalTTY = process.stdin.isTTY && !isSSH;
83
+
83
84
  if (!hasChatAPI && isLocalTTY) return 'oauth-local';
84
85
  if (!hasChatAPI && isSSH) return 'device-code-cli';
85
86
  return 'device-code-chat';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soulsync",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "SoulSync plugin for OpenClaw - cross-bot memory synchronization",
5
5
  "main": "index.js",
6
6
  "repository": {