@moltbankhq/openclaw 0.1.16 → 0.1.17
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/README.md +5 -3
- package/cli.ts +9 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,15 +44,16 @@ After installing, run:
|
|
|
44
44
|
moltbank setup
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
By default, `moltbank setup` issues the browser activation code, starts background finalization, and returns without hanging on approval. Host setup also skips automatic gateway restarts by default so the active chat session is not interrupted. Use `moltbank setup --blocking` or `moltbank setup-blocking` when you want the command to wait for approval and finish readiness verification in the foreground.
|
|
48
48
|
|
|
49
49
|
## CLI Commands
|
|
50
50
|
|
|
51
51
|
| Command | Description |
|
|
52
52
|
|---------|-------------|
|
|
53
|
-
| `moltbank setup` |
|
|
53
|
+
| `moltbank setup` | Start setup in nonblocking mode and return after issuing activation steps |
|
|
54
|
+
| `moltbank setup --blocking` | Run setup and wait for approval in the foreground |
|
|
54
55
|
| `moltbank setup --verbose` | Run setup with detailed logs |
|
|
55
|
-
| `moltbank setup-blocking` |
|
|
56
|
+
| `moltbank setup-blocking` | Run setup and wait for approval |
|
|
56
57
|
| `moltbank status` | Check current auth state |
|
|
57
58
|
| `moltbank auth-status` | Alias for `moltbank status` |
|
|
58
59
|
| `moltbank sandbox-setup` | Reconfigure sandbox Docker settings |
|
|
@@ -77,6 +78,7 @@ moltbank setup --workspace ~/.openclaw/workspace
|
|
|
77
78
|
| `OPENCLAW_WORKSPACE` | Override OpenClaw workspace path (default: `~/.openclaw/workspace`) |
|
|
78
79
|
| `MOLTBANK_CREDENTIALS_PATH` | Custom credentials file path |
|
|
79
80
|
| `MOLTBANK_SETUP_AUTH_WAIT_MODE` | `blocking` or `nonblocking` (default: `nonblocking`) |
|
|
81
|
+
| `MOLTBANK_SETUP_RESTART_GATEWAY` | `true` or `false` (default: `false`) |
|
|
80
82
|
|
|
81
83
|
## Capabilities
|
|
82
84
|
|
package/cli.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
createSetupCommandLogger,
|
|
6
6
|
ensureMcporterConfig,
|
|
7
7
|
getAppBaseUrl,
|
|
8
|
+
getSetupAuthWaitMode,
|
|
8
9
|
getSetupGatewayRestartEnabled,
|
|
9
10
|
getSkillDir,
|
|
10
11
|
injectSandboxEnv,
|
|
@@ -36,7 +37,7 @@ Usage:
|
|
|
36
37
|
|
|
37
38
|
Commands:
|
|
38
39
|
setup Run MoltBank setup
|
|
39
|
-
setup-blocking
|
|
40
|
+
setup-blocking Run setup and wait for approval
|
|
40
41
|
status Show current MoltBank auth state
|
|
41
42
|
auth-status Alias for status
|
|
42
43
|
sandbox-setup Reconfigure sandbox Docker settings in openclaw.json
|
|
@@ -47,9 +48,9 @@ Options:
|
|
|
47
48
|
--app-base-url <url> Override MoltBank deployment URL
|
|
48
49
|
--skill-name <name> Override skill folder name
|
|
49
50
|
--workspace <path> Override OpenClaw workspace path
|
|
50
|
-
--blocking
|
|
51
|
+
--blocking Wait for browser approval before setup exits
|
|
51
52
|
--restart-gateway Force gateway restart after successful host setup
|
|
52
|
-
--no-restart-gateway Skip gateway restart after successful host setup
|
|
53
|
+
--no-restart-gateway Skip gateway restart after successful host setup (default)
|
|
53
54
|
--verbose Show detailed setup logs
|
|
54
55
|
-h, --help Show help
|
|
55
56
|
-v, --version Show package version
|
|
@@ -57,6 +58,7 @@ Options:
|
|
|
57
58
|
Examples:
|
|
58
59
|
moltbank setup
|
|
59
60
|
moltbank setup --workspace ~/.openclaw/workspace
|
|
61
|
+
moltbank setup --blocking
|
|
60
62
|
moltbank setup --verbose
|
|
61
63
|
moltbank status
|
|
62
64
|
moltbank register --app-base-url https://app.moltbank.bot
|
|
@@ -178,10 +180,11 @@ async function runCommand(parsed: ParsedArgs): Promise<void> {
|
|
|
178
180
|
|
|
179
181
|
switch (parsed.command) {
|
|
180
182
|
case 'setup': {
|
|
181
|
-
const restartGatewayOnSuccess = parsed.restartGateway ?? getSetupGatewayRestartEnabled(
|
|
183
|
+
const restartGatewayOnSuccess = parsed.restartGateway ?? getSetupGatewayRestartEnabled(false);
|
|
182
184
|
const logger = createSetupCommandLogger({ verbose: parsed.verbose, statusCommand: 'moltbank status' });
|
|
185
|
+
const authWaitMode = parsed.blocking ? 'blocking' : getSetupAuthWaitMode('nonblocking');
|
|
183
186
|
try {
|
|
184
|
-
await runSetup(cfg, logger, { authWaitMode
|
|
187
|
+
await runSetup(cfg, logger, { authWaitMode, restartGatewayOnSuccess });
|
|
185
188
|
} finally {
|
|
186
189
|
logger.finish();
|
|
187
190
|
}
|
|
@@ -189,7 +192,7 @@ async function runCommand(parsed: ParsedArgs): Promise<void> {
|
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
case 'setup-blocking': {
|
|
192
|
-
const restartGatewayOnSuccess = parsed.restartGateway ?? getSetupGatewayRestartEnabled(
|
|
195
|
+
const restartGatewayOnSuccess = parsed.restartGateway ?? getSetupGatewayRestartEnabled(false);
|
|
193
196
|
const logger = createSetupCommandLogger({ verbose: parsed.verbose, statusCommand: 'moltbank status' });
|
|
194
197
|
try {
|
|
195
198
|
await runSetup(cfg, logger, { authWaitMode: 'blocking', restartGatewayOnSuccess });
|
package/package.json
CHANGED