@agentlayer.tech/wallet 0.1.14 → 0.1.15

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 CHANGED
@@ -51,6 +51,15 @@ Install through npm:
51
51
  npx @agentlayer.tech/wallet install --yes
52
52
  ```
53
53
 
54
+ Install the native OpenClaw plugins from ClawHub:
55
+
56
+ ```bash
57
+ openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
58
+ openclaw plugins install clawhub:@agentlayertech/pay-bridge-plugin
59
+ ```
60
+
61
+ Those ClawHub packages do not replace the npm installer. Keep `npx @agentlayer.tech/wallet install --yes` for laying down the local wallet runtime, Python backend, and helper services. The ClawHub packages only install the OpenClaw plugin surfaces that point at that runtime.
62
+
54
63
  Or install the CLI globally first:
55
64
 
56
65
  ```bash
@@ -77,6 +86,29 @@ wallet update --yes
77
86
  wallet rollback
78
87
  ```
79
88
 
89
+ ## Native OpenClaw plugin installs
90
+
91
+ Use ClawHub when you want the plugin itself to be installed through OpenClaw:
92
+
93
+ ```bash
94
+ openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
95
+ openclaw plugins install clawhub:@agentlayertech/pay-bridge-plugin
96
+ ```
97
+
98
+ Recommended order:
99
+
100
+ 1. Install or update the local runtime with `npx @agentlayer.tech/wallet install --yes`.
101
+ 2. Install the plugin package from ClawHub with `openclaw plugins install clawhub:...`.
102
+ 3. Restart the OpenClaw gateway and enable/configure the plugin entry in `openclaw.json`.
103
+
104
+ The `agent-wallet` ClawHub plugin auto-checks the standard runtime path at:
105
+
106
+ ```bash
107
+ ~/.openclaw/agent-wallet-runtime/current/agent-wallet
108
+ ```
109
+
110
+ If your runtime lives elsewhere, set `plugins.entries.agent-wallet.config.packageRoot` explicitly.
111
+
80
112
  Install from a local clone:
81
113
 
82
114
  ```bash
package/RELEASING.md CHANGED
@@ -12,6 +12,13 @@ The public install command is:
12
12
  npx @agentlayer.tech/wallet install --yes
13
13
  ```
14
14
 
15
+ The repo also ships two native OpenClaw plugin packages for ClawHub:
16
+
17
+ ```text
18
+ @agentlayertech/agent-wallet-plugin
19
+ @agentlayertech/pay-bridge-plugin
20
+ ```
21
+
15
22
  ## When npm Publishes
16
23
 
17
24
  Normal commits and pushes do not publish new npm versions. They only run the
@@ -31,6 +38,9 @@ agent-wallet/pyproject.toml
31
38
  ```
32
39
 
33
40
  If those versions do not match the tag, the workflow fails before publishing.
41
+ The same `v*` tag can also trigger the ClawHub plugin publish workflow, so keep
42
+ the root installer versions aligned with the ClawHub plugin package versions
43
+ when you want one GitHub release to ship both surfaces together.
34
44
 
35
45
  ## Stable Release
36
46
 
@@ -174,6 +184,66 @@ OpenClaw secrets
174
184
 
175
185
  The package allowlist lives in `package.json` under `files`.
176
186
 
187
+ ## ClawHub Plugin Packages
188
+
189
+ The OpenClaw plugin packages are published separately from the npm installer.
190
+ They are additive and do not replace `@agentlayer.tech/wallet`.
191
+
192
+ Before publishing either package, build and validate the runtime artifacts:
193
+
194
+ ```bash
195
+ npm run build:openclaw-plugins
196
+ npm run check:openclaw-plugins
197
+ ```
198
+
199
+ Dry-run the package contents from each plugin directory:
200
+
201
+ ```bash
202
+ (cd .openclaw/extensions/agent-wallet && npm pack --dry-run)
203
+ (cd .openclaw/extensions/pay-bridge && npm pack --dry-run)
204
+ ```
205
+
206
+ Publish to ClawHub with the package-specific command documented by OpenClaw:
207
+
208
+ ```bash
209
+ clawhub package publish .openclaw/extensions/agent-wallet --dry-run
210
+ clawhub package publish .openclaw/extensions/agent-wallet
211
+
212
+ clawhub package publish .openclaw/extensions/pay-bridge --dry-run
213
+ clawhub package publish .openclaw/extensions/pay-bridge
214
+ ```
215
+
216
+ Users then install them natively through OpenClaw:
217
+
218
+ ```bash
219
+ openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
220
+ openclaw plugins install clawhub:@agentlayertech/pay-bridge-plugin
221
+ ```
222
+
223
+ GitHub Actions can publish the same packages automatically from tags and manual
224
+ dispatch through `.github/workflows/clawhub-plugins.yml`.
225
+
226
+ Required repository secret:
227
+
228
+ ```text
229
+ CLAWHUB_TOKEN
230
+ ```
231
+
232
+ Workflow behavior:
233
+
234
+ - `pull_request`: packs both plugins and runs ClawHub `--dry-run`
235
+ - `workflow_dispatch`: publishes or dry-runs based on the `dry_run` input
236
+ - `push` on `v*` tags: publishes both plugins automatically
237
+
238
+ The workflow currently publishes:
239
+
240
+ - `.openclaw/extensions/agent-wallet` as `bundle-plugin`
241
+ - `.openclaw/extensions/pay-bridge` as `code-plugin`
242
+
243
+ `agent-wallet` stays on `bundle-plugin` because that package name was first
244
+ published to ClawHub with that family, and ClawHub does not allow family
245
+ changes for an existing package record.
246
+
177
247
  ## Runtime Layout
178
248
 
179
249
  Installer releases are copied into the user's OpenClaw home:
@@ -558,6 +558,20 @@ It forwards tool execution to the Python bridge CLI:
558
558
 
559
559
  This keeps the official OpenClaw-facing layer in TypeScript while the actual wallet/security logic remains in the Python backend.
560
560
 
561
+ If you want OpenClaw to install the plugin through ClawHub instead of a repo-local path, use:
562
+
563
+ ```bash
564
+ openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
565
+ ```
566
+
567
+ That native plugin package is additive. Keep the existing runtime installer for the actual wallet backend:
568
+
569
+ ```bash
570
+ npx @agentlayer.tech/wallet install --yes
571
+ ```
572
+
573
+ The ClawHub plugin package auto-checks `~/.openclaw/agent-wallet-runtime/current/agent-wallet` before it falls back to a local workspace checkout.
574
+
561
575
  Public-safe helper scripts are available in `agent-wallet/scripts/`:
562
576
 
563
577
  - `install_openclaw_local_config.py`
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "openclaw-agent-wallet"
7
- version = "0.1.14"
7
+ version = "0.1.15"
8
8
  description = "Plugin-friendly wallet backend for OpenClaw agents"
9
9
  requires-python = ">=3.10"
10
10
  dependencies = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlayer.tech/wallet",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "NPM installer for the OpenClaw Agent Wallet local runtime.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -14,6 +14,8 @@
14
14
  "bin": "./bin/openclaw-agent-wallet.mjs",
15
15
  "scripts": {
16
16
  "check": "node --check bin/openclaw-agent-wallet.mjs",
17
+ "build:openclaw-plugins": "node scripts/manage_openclaw_plugin_packages.mjs build",
18
+ "check:openclaw-plugins": "node scripts/manage_openclaw_plugin_packages.mjs check",
17
19
  "check:release-version": "node scripts/check_release_version.mjs",
18
20
  "test:npm-installer": "python3 agent-wallet/tests/smoke_npm_installer.py",
19
21
  "pack:dry-run": "npm pack --dry-run"