@agentlayer.tech/wallet 0.1.5 → 0.1.6
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.
|
@@ -79,7 +79,7 @@ def _default_env_example_path() -> Path:
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
def _default_config_path() -> Path:
|
|
82
|
-
return
|
|
82
|
+
return _resolve_openclaw_home() / "openclaw.json"
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
def _default_venv_path() -> Path:
|
|
@@ -345,7 +345,12 @@ def _build_next_steps(
|
|
|
345
345
|
python_bin: Path,
|
|
346
346
|
script_path: Path,
|
|
347
347
|
args: argparse.Namespace,
|
|
348
|
+
*,
|
|
349
|
+
package_root: Path | None = None,
|
|
350
|
+
extension_path: Path | None = None,
|
|
348
351
|
) -> list[str]:
|
|
352
|
+
effective_package_root = package_root or Path(args.package_root).expanduser()
|
|
353
|
+
effective_extension_path = extension_path or Path(args.extension_path).expanduser()
|
|
349
354
|
command = [
|
|
350
355
|
str(python_bin),
|
|
351
356
|
str(script_path),
|
|
@@ -365,8 +370,8 @@ def _build_next_steps(
|
|
|
365
370
|
if args.rpc_urls.strip():
|
|
366
371
|
command.extend(["--rpc-urls", args.rpc_urls.strip()])
|
|
367
372
|
command.append("--sign-only" if args.sign_only else "--no-sign-only")
|
|
368
|
-
command.extend(["--extension-path", str(
|
|
369
|
-
command.extend(["--package-root", str(
|
|
373
|
+
command.extend(["--extension-path", str(effective_extension_path)])
|
|
374
|
+
command.extend(["--package-root", str(effective_package_root)])
|
|
370
375
|
command.extend(["--python-bin", str(python_bin)])
|
|
371
376
|
return command
|
|
372
377
|
|
|
@@ -474,7 +479,13 @@ def main() -> None:
|
|
|
474
479
|
configure_stdout = ""
|
|
475
480
|
if backend_enabled and not pending_env and not args.dry_run:
|
|
476
481
|
result = subprocess.run(
|
|
477
|
-
_build_next_steps(
|
|
482
|
+
_build_next_steps(
|
|
483
|
+
python_bin,
|
|
484
|
+
install_config_script,
|
|
485
|
+
args,
|
|
486
|
+
package_root=package_root,
|
|
487
|
+
extension_path=extension_path,
|
|
488
|
+
),
|
|
478
489
|
capture_output=True,
|
|
479
490
|
text=True,
|
|
480
491
|
check=True,
|
|
@@ -502,7 +513,13 @@ def main() -> None:
|
|
|
502
513
|
"runtime_sync": runtime_sync,
|
|
503
514
|
"configured": configured,
|
|
504
515
|
"pending_env": pending_env,
|
|
505
|
-
"next_configure_command": _build_next_steps(
|
|
516
|
+
"next_configure_command": _build_next_steps(
|
|
517
|
+
python_bin,
|
|
518
|
+
install_config_script,
|
|
519
|
+
args,
|
|
520
|
+
package_root=package_root,
|
|
521
|
+
extension_path=extension_path,
|
|
522
|
+
),
|
|
506
523
|
"configure_result": json.loads(configure_stdout) if configure_stdout else None,
|
|
507
524
|
},
|
|
508
525
|
indent=2,
|