openclaw-sync-assistant 0.1.3 → 0.1.4
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/index.js +5 -10
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -48,17 +48,12 @@ module.exports = {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// 因为执行 'openclaw plugins xxx' 时,'plugins' 一定在参数列表中
|
|
56
|
-
const isPluginCommand = process.argv.some(
|
|
57
|
-
(arg) => arg.includes("plugins") || arg.includes("plugin"),
|
|
58
|
-
);
|
|
51
|
+
const serviceMarker = process.env.OPENCLAW_SERVICE_MARKER;
|
|
52
|
+
const serviceKind = (process.env.OPENCLAW_SERVICE_KIND || "").toLowerCase();
|
|
53
|
+
const isGatewayService =
|
|
54
|
+
Boolean(serviceMarker) && serviceKind.includes("gateway");
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
if (!hasConfigured && !isPluginCommand) {
|
|
56
|
+
if (!hasConfigured && isGatewayService) {
|
|
62
57
|
isWizardRunning = true;
|
|
63
58
|
try {
|
|
64
59
|
await module.exports.runSetupWizard(context);
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED