@onecraft/wallet 0.0.0-stage → 0.1.145
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/.claude-plugin/marketplace.json +20 -0
- package/.openclaw/AGENTS.md +100 -0
- package/.openclaw/extensions/agent-wallet/README.md +195 -0
- package/.openclaw/extensions/agent-wallet/dist/index.js +2198 -0
- package/.openclaw/extensions/agent-wallet/index.ts +2198 -0
- package/.openclaw/extensions/agent-wallet/openclaw.plugin.json +251 -0
- package/.openclaw/extensions/agent-wallet/package.json +49 -0
- package/.openclaw/extensions/agent-wallet/skills/cards/SKILL.md +211 -0
- package/.openclaw/extensions/agent-wallet/skills/wallet-operator/SKILL.md +30 -0
- package/CHANGELOG.md +1232 -0
- package/LICENSE +104 -0
- package/README.md +193 -2
- package/VERSION +1 -0
- package/agent-wallet/.env.example +63 -0
- package/agent-wallet/AGENTS.md +130 -0
- package/agent-wallet/CARD_VAULT.md +640 -0
- package/agent-wallet/README.md +615 -0
- package/agent-wallet/UPGRADE_COMPATIBILITY.md +66 -0
- package/agent-wallet/agent_wallet/__init__.py +16 -0
- package/agent-wallet/agent_wallet/approval.py +165 -0
- package/agent-wallet/agent_wallet/autonomous_permissions.py +281 -0
- package/agent-wallet/agent_wallet/autonomous_policy.py +305 -0
- package/agent-wallet/agent_wallet/autonomous_session.py +236 -0
- package/agent-wallet/agent_wallet/boot_key_migration.py +155 -0
- package/agent-wallet/agent_wallet/boot_key_recovery.py +57 -0
- package/agent-wallet/agent_wallet/bootstrap.py +194 -0
- package/agent-wallet/agent_wallet/card_catalog.py +243 -0
- package/agent-wallet/agent_wallet/card_runtime_secrets.py +108 -0
- package/agent-wallet/agent_wallet/card_vault.py +331 -0
- package/agent-wallet/agent_wallet/card_vault_cli.py +174 -0
- package/agent-wallet/agent_wallet/card_vault_import.py +65 -0
- package/agent-wallet/agent_wallet/card_vault_keychain.py +239 -0
- package/agent-wallet/agent_wallet/config.py +719 -0
- package/agent-wallet/agent_wallet/connector_cli.py +198 -0
- package/agent-wallet/agent_wallet/connectors/__init__.py +28 -0
- package/agent-wallet/agent_wallet/connectors/catalog.py +68 -0
- package/agent-wallet/agent_wallet/connectors/client.py +308 -0
- package/agent-wallet/agent_wallet/connectors/intent_policy.py +243 -0
- package/agent-wallet/agent_wallet/connectors/manifest.py +192 -0
- package/agent-wallet/agent_wallet/connectors/registry.py +341 -0
- package/agent-wallet/agent_wallet/encrypted_storage.py +314 -0
- package/agent-wallet/agent_wallet/evm_user_wallets.py +910 -0
- package/agent-wallet/agent_wallet/exceptions.py +10 -0
- package/agent-wallet/agent_wallet/file_ops.py +34 -0
- package/agent-wallet/agent_wallet/http_client.py +25 -0
- package/agent-wallet/agent_wallet/kernel_browser.py +479 -0
- package/agent-wallet/agent_wallet/kernel_cli.py +57 -0
- package/agent-wallet/agent_wallet/kernel_gateway.py +95 -0
- package/agent-wallet/agent_wallet/keystore.py +503 -0
- package/agent-wallet/agent_wallet/laso_card_vault.py +246 -0
- package/agent-wallet/agent_wallet/models.py +66 -0
- package/agent-wallet/agent_wallet/morpho_monitor.py +298 -0
- package/agent-wallet/agent_wallet/nonce_registry.py +59 -0
- package/agent-wallet/agent_wallet/openclaw_adapter.py +9129 -0
- package/agent-wallet/agent_wallet/openclaw_cli.py +658 -0
- package/agent-wallet/agent_wallet/openclaw_runtime.py +194 -0
- package/agent-wallet/agent_wallet/plugin_bundle.py +44 -0
- package/agent-wallet/agent_wallet/providers/__init__.py +1 -0
- package/agent-wallet/agent_wallet/providers/bags.py +202 -0
- package/agent-wallet/agent_wallet/providers/dexscreener.py +147 -0
- package/agent-wallet/agent_wallet/providers/evm_activity.py +257 -0
- package/agent-wallet/agent_wallet/providers/evm_portfolio.py +459 -0
- package/agent-wallet/agent_wallet/providers/imd.py +720 -0
- package/agent-wallet/agent_wallet/providers/jupiter.py +519 -0
- package/agent-wallet/agent_wallet/providers/kamino.py +404 -0
- package/agent-wallet/agent_wallet/providers/lifi.py +302 -0
- package/agent-wallet/agent_wallet/providers/solana_rpc.py +447 -0
- package/agent-wallet/agent_wallet/providers/tokenized_stocks.py +189 -0
- package/agent-wallet/agent_wallet/providers/wdk_evm_local.py +346 -0
- package/agent-wallet/agent_wallet/providers/x402.py +1972 -0
- package/agent-wallet/agent_wallet/sealed_keys.py +118 -0
- package/agent-wallet/agent_wallet/solana_stake.py +103 -0
- package/agent-wallet/agent_wallet/solana_tx.py +93 -0
- package/agent-wallet/agent_wallet/spending_limits.py +119 -0
- package/agent-wallet/agent_wallet/telemetry.py +481 -0
- package/agent-wallet/agent_wallet/transaction_policy.py +573 -0
- package/agent-wallet/agent_wallet/update_check.py +190 -0
- package/agent-wallet/agent_wallet/user_wallets.py +573 -0
- package/agent-wallet/agent_wallet/validation.py +31 -0
- package/agent-wallet/agent_wallet/vault_executor.py +456 -0
- package/agent-wallet/agent_wallet/wallet_layer/__init__.py +1 -0
- package/agent-wallet/agent_wallet/wallet_layer/base.py +1204 -0
- package/agent-wallet/agent_wallet/wallet_layer/base58.py +44 -0
- package/agent-wallet/agent_wallet/wallet_layer/factory.py +117 -0
- package/agent-wallet/agent_wallet/wallet_layer/solana.py +5246 -0
- package/agent-wallet/agent_wallet/wallet_layer/wdk_evm.py +2705 -0
- package/agent-wallet/examples/bootstrap_wallet.py +21 -0
- package/agent-wallet/examples/openclaw_runtime_onboarding.py +28 -0
- package/agent-wallet/examples/openclaw_user_wallet_example.py +31 -0
- package/agent-wallet/examples/openclaw_wallet_adapter_example.py +33 -0
- package/agent-wallet/openclaw.plugin.json +118 -0
- package/agent-wallet/pyproject.toml +36 -0
- package/agent-wallet/scripts/bootstrap_openclaw_evm.py +312 -0
- package/agent-wallet/scripts/build_release_bundle.py +210 -0
- package/agent-wallet/scripts/finalize_openclaw_local_wallet_config.py +121 -0
- package/agent-wallet/scripts/install_agent_wallet.py +1357 -0
- package/agent-wallet/scripts/install_openclaw_local_config.py +421 -0
- package/agent-wallet/scripts/install_openclaw_sealed_keys.py +117 -0
- package/agent-wallet/scripts/manage_openclaw_evm_wallet.py +333 -0
- package/agent-wallet/scripts/security_utils.py +37 -0
- package/agent-wallet/scripts/setup_evm_wallet.sh +140 -0
- package/agent-wallet/scripts/switch_openclaw_wallet_network.py +109 -0
- package/agent-wallet/skills/wallet-operator/SKILL.md +157 -0
- package/bin/lib/boot-key.mjs +184 -0
- package/bin/lib/evm-daemon.mjs +389 -0
- package/bin/lib/host-detection.mjs +259 -0
- package/bin/lib/integrations.mjs +578 -0
- package/bin/lib/release-python.mjs +9 -0
- package/bin/lib/update-transaction.mjs +235 -0
- package/bin/openclaw-agent-wallet.mjs +3354 -0
- package/claude-code/plugins/agent-wallet/.claude-plugin/plugin.json +19 -0
- package/claude-code/plugins/agent-wallet/.mcp.json +14 -0
- package/claude-code/plugins/agent-wallet/AGENTLAYER_AGENT_GUIDE.md +282 -0
- package/claude-code/plugins/agent-wallet/README.md +134 -0
- package/claude-code/plugins/agent-wallet/commands/agentlayer-autonomous-approve.md +39 -0
- package/claude-code/plugins/agent-wallet/commands/agentlayer-autonomous-revoke.md +17 -0
- package/claude-code/plugins/agent-wallet/commands/cards.md +129 -0
- package/claude-code/plugins/agent-wallet/commands/guide.md +40 -0
- package/claude-code/plugins/agent-wallet/commands/imd.md +125 -0
- package/claude-code/plugins/agent-wallet/commands/wallet-base.md +60 -0
- package/claude-code/plugins/agent-wallet/commands/wallet-ethereum.md +37 -0
- package/claude-code/plugins/agent-wallet/commands/wallet-evm.md +39 -0
- package/claude-code/plugins/agent-wallet/commands/wallet-setup.md +25 -0
- package/claude-code/plugins/agent-wallet/commands/wallet-sol.md +51 -0
- package/claude-code/plugins/agent-wallet/commands/wallet-statusline.md +34 -0
- package/claude-code/plugins/agent-wallet/commands/x402.md +121 -0
- package/claude-code/plugins/agent-wallet/commands/yield.md +62 -0
- package/claude-code/plugins/agent-wallet/hooks/hooks.json +16 -0
- package/claude-code/plugins/agent-wallet/scripts/bootstrap_backend.sh +136 -0
- package/claude-code/plugins/agent-wallet/scripts/enable_statusline.py +52 -0
- package/claude-code/plugins/agent-wallet/scripts/resolve_wallet_addresses.py +69 -0
- package/claude-code/plugins/agent-wallet/scripts/run_mcp.sh +66 -0
- package/claude-code/plugins/agent-wallet/scripts/wallet_statusline.py +130 -0
- package/claude-code/plugins/agent-wallet/scripts/wallet_statusline_setup.sh +40 -0
- package/claude-code/plugins/agent-wallet/skills/wallet-operator/SKILL.md +21 -0
- package/codex/plugins/agent-wallet/.codex-plugin/plugin.json +37 -0
- package/codex/plugins/agent-wallet/.mcp.json +15 -0
- package/codex/plugins/agent-wallet/README.md +158 -0
- package/codex/plugins/agent-wallet/scripts/run_mcp.sh +47 -0
- package/codex/plugins/agent-wallet/server.py +1797 -0
- package/codex/plugins/agent-wallet/skills/cards/SKILL.md +225 -0
- package/codex/plugins/agent-wallet/skills/imd/SKILL.md +145 -0
- package/codex/plugins/agent-wallet/skills/wallet-base/SKILL.md +56 -0
- package/codex/plugins/agent-wallet/skills/wallet-operator/SKILL.md +85 -0
- package/codex/plugins/agent-wallet/skills/wallet-sol/SKILL.md +29 -0
- package/codex/plugins/agent-wallet/skills/x402/SKILL.md +159 -0
- package/codex/plugins/agent-wallet/skills/yield/SKILL.md +65 -0
- package/connectors/AGENTS.md +37 -0
- package/connectors/DEVELOPER_GUIDE.md +131 -0
- package/connectors/README.md +139 -0
- package/connectors/READ_ONLY_BETA.md +54 -0
- package/connectors/RELEASING.md +48 -0
- package/connectors/conformance/README.md +31 -0
- package/connectors/conformance/package.json +54 -0
- package/connectors/conformance/scripts/sync-license.mjs +3 -0
- package/connectors/conformance/scripts/sync-spec.mjs +16 -0
- package/connectors/conformance/src/cli.ts +43 -0
- package/connectors/conformance/src/index.ts +7 -0
- package/connectors/conformance/src/runner.ts +314 -0
- package/connectors/conformance/src/types.ts +27 -0
- package/connectors/conformance/test/fixtures/invalid-response-identity.json +14 -0
- package/connectors/conformance/test/fixtures/missing-tool-fixture.json +4 -0
- package/connectors/conformance/test/runner.test.mjs +151 -0
- package/connectors/conformance/tsconfig.json +17 -0
- package/connectors/examples/reference-crypto-data/Dockerfile +21 -0
- package/connectors/examples/reference-crypto-data/README.md +51 -0
- package/connectors/examples/reference-crypto-data/conformance.json +11 -0
- package/connectors/examples/reference-crypto-data/connector.json +95 -0
- package/connectors/examples/reference-crypto-data/package.json +21 -0
- package/connectors/examples/reference-crypto-data/railway.toml +9 -0
- package/connectors/examples/reference-crypto-data/src/connector.ts +137 -0
- package/connectors/examples/reference-crypto-data/src/server.ts +13 -0
- package/connectors/examples/reference-crypto-data/test/connector.test.mjs +97 -0
- package/connectors/examples/reference-crypto-data/tsconfig.json +17 -0
- package/connectors/package-lock.json +561 -0
- package/connectors/package.json +19 -0
- package/connectors/scripts/smoke-packed-packages.mjs +121 -0
- package/connectors/sdk-typescript/README.md +47 -0
- package/connectors/sdk-typescript/package.json +49 -0
- package/connectors/sdk-typescript/scripts/sync-license.mjs +3 -0
- package/connectors/sdk-typescript/src/connector.ts +204 -0
- package/connectors/sdk-typescript/src/errors.ts +11 -0
- package/connectors/sdk-typescript/src/http.ts +116 -0
- package/connectors/sdk-typescript/src/index.ts +26 -0
- package/connectors/sdk-typescript/src/types.ts +101 -0
- package/connectors/sdk-typescript/test/sdk.test.mjs +181 -0
- package/connectors/sdk-typescript/tsconfig.json +21 -0
- package/connectors/spec/connector-manifest.schema.json +340 -0
- package/connectors/spec/connector-protocol.md +159 -0
- package/connectors/spec/transaction-intent.schema.json +281 -0
- package/connectors/templates/read-only/.env.example +1 -0
- package/connectors/templates/read-only/Dockerfile +11 -0
- package/connectors/templates/read-only/README.md +33 -0
- package/connectors/templates/read-only/conformance.json +11 -0
- package/connectors/templates/read-only/connector.json +64 -0
- package/connectors/templates/read-only/package.json +21 -0
- package/connectors/templates/read-only/railway.toml +9 -0
- package/connectors/templates/read-only/src/connector.ts +61 -0
- package/connectors/templates/read-only/src/server.ts +14 -0
- package/connectors/templates/read-only/test/connector.test.mjs +62 -0
- package/connectors/templates/read-only/tsconfig.json +17 -0
- package/cursor/plugins/agent-wallet/.cursor-plugin/plugin.json +14 -0
- package/cursor/plugins/agent-wallet/README.md +62 -0
- package/cursor/plugins/agent-wallet/mcp.json +16 -0
- package/cursor/plugins/agent-wallet/scripts/run_mcp.sh +33 -0
- package/cursor/plugins/agent-wallet/server.py +33 -0
- package/cursor/plugins/agent-wallet/skills/cards/SKILL.md +210 -0
- package/cursor/plugins/agent-wallet/skills/wallet-base/SKILL.md +56 -0
- package/cursor/plugins/agent-wallet/skills/wallet-operator/SKILL.md +23 -0
- package/cursor/plugins/agent-wallet/skills/wallet-sol/SKILL.md +29 -0
- package/cursor/plugins/agent-wallet/skills/x402/SKILL.md +130 -0
- package/hermes/plugins/agent_wallet/README.md +54 -0
- package/hermes/plugins/agent_wallet/__init__.py +55 -0
- package/hermes/plugins/agent_wallet/plugin.yaml +9 -0
- package/hermes/plugins/agent_wallet/schemas.py +211 -0
- package/hermes/plugins/agent_wallet/tools.py +622 -0
- package/install-from-github.sh +139 -0
- package/integrations/hedera/treasury-guard/README.md +92 -0
- package/integrations/hedera/treasury-guard/examples/treasury-policy.example.json +9 -0
- package/integrations/hedera/treasury-guard/package-lock.json +880 -0
- package/integrations/hedera/treasury-guard/package.json +8 -0
- package/integrations/hedera/treasury-guard/skills/onecraft-hedera-treasury/SKILL.md +22 -0
- package/integrations/hedera/treasury-guard/src/hedera-mirror-client.mjs +106 -0
- package/integrations/hedera/treasury-guard/src/hedera-signer.mjs +120 -0
- package/integrations/hedera/treasury-guard/src/treasury-cli.mjs +177 -0
- package/integrations/hedera/treasury-guard/src/treasury-policy.mjs +155 -0
- package/mcp/README.md +39 -0
- package/mcp/scripts/run_mcp.sh +37 -0
- package/mcp/server.py +33 -0
- package/package.json +106 -4
- package/scripts/check_release_version.mjs +72 -0
- package/scripts/version_targets.mjs +60 -0
- package/setup.sh +87 -0
- package/wdk-evm-wallet/.env.example +38 -0
- package/wdk-evm-wallet/README.md +254 -0
- package/wdk-evm-wallet/bootstrap.sh +8 -0
- package/wdk-evm-wallet/package-lock.json +2359 -0
- package/wdk-evm-wallet/package.json +43 -0
- package/wdk-evm-wallet/run-local.sh +12 -0
- package/wdk-evm-wallet/src/config.js +461 -0
- package/wdk-evm-wallet/src/imd.js +231 -0
- package/wdk-evm-wallet/src/json.js +35 -0
- package/wdk-evm-wallet/src/local_vault.js +407 -0
- package/wdk-evm-wallet/src/network_state.js +96 -0
- package/wdk-evm-wallet/src/pending_transactions.js +148 -0
- package/wdk-evm-wallet/src/server.js +849 -0
- package/wdk-evm-wallet/src/shutdown.js +63 -0
- package/wdk-evm-wallet/src/wdk_evm_wallet.js +10036 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
PolyForm Small Business License 1.0.0
|
|
2
|
+
|
|
3
|
+
https://polyformproject.org/licenses/small-business/1.0.0
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright (c) 2026 lopushok9
|
|
6
|
+
|
|
7
|
+
Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree to them as both
|
|
10
|
+
strict obligations and conditions to all your licenses.
|
|
11
|
+
|
|
12
|
+
Copyright License
|
|
13
|
+
|
|
14
|
+
The licensor grants you a copyright license for the software to do everything
|
|
15
|
+
you might do with the software that would otherwise infringe the licensor's
|
|
16
|
+
copyright in it for any permitted purpose. However, you may only distribute
|
|
17
|
+
the software according to Distribution License and make changes or new works
|
|
18
|
+
based on the software according to Changes and New Works License.
|
|
19
|
+
|
|
20
|
+
Distribution License
|
|
21
|
+
|
|
22
|
+
The licensor grants you an additional copyright license to distribute copies of
|
|
23
|
+
the software. Your license to distribute covers distributing the software with
|
|
24
|
+
changes and new works permitted by Changes and New Works License.
|
|
25
|
+
|
|
26
|
+
Notices
|
|
27
|
+
|
|
28
|
+
You must ensure that anyone who gets a copy of any part of the software from
|
|
29
|
+
you also gets a copy of these terms or the URL for them above, as well as
|
|
30
|
+
copies of any plain-text lines beginning with "Required Notice:" that the
|
|
31
|
+
licensor provided with the software.
|
|
32
|
+
|
|
33
|
+
Changes and New Works License
|
|
34
|
+
|
|
35
|
+
The licensor grants you an additional copyright license to make changes and new
|
|
36
|
+
works based on the software for any permitted purpose.
|
|
37
|
+
|
|
38
|
+
Patent License
|
|
39
|
+
|
|
40
|
+
The licensor grants you a patent license for the software that covers patent
|
|
41
|
+
claims the licensor can license, or becomes able to license, that you would
|
|
42
|
+
infringe by using the software.
|
|
43
|
+
|
|
44
|
+
Fair Use
|
|
45
|
+
|
|
46
|
+
You may have "fair use" rights for the software under the law. These terms do
|
|
47
|
+
not limit them.
|
|
48
|
+
|
|
49
|
+
Small Business
|
|
50
|
+
|
|
51
|
+
Use of the software for the benefit of your company is use for a permitted
|
|
52
|
+
purpose if your company has fewer than 100 total individuals working as
|
|
53
|
+
employees and independent contractors, and less than 1,000,000 USD (2019)
|
|
54
|
+
total revenue in the prior tax year. Adjust this revenue threshold for
|
|
55
|
+
inflation according to the United States Bureau of Labor Statistics' consumer
|
|
56
|
+
price index for all urban consumers, U.S. city average, for all items, not
|
|
57
|
+
seasonally adjusted, with 1982-1984=100 reference base.
|
|
58
|
+
|
|
59
|
+
No Other Rights
|
|
60
|
+
|
|
61
|
+
These terms do not allow you to sublicense or transfer any of your licenses to
|
|
62
|
+
anyone else, or prevent the licensor from granting licenses to anyone else.
|
|
63
|
+
These terms do not imply any other licenses.
|
|
64
|
+
|
|
65
|
+
Patent Defense
|
|
66
|
+
|
|
67
|
+
If you make any written claim that the software infringes or contributes to
|
|
68
|
+
infringement of any patent, your patent license for the software granted under
|
|
69
|
+
these terms ends immediately. If your company makes such a claim, your patent
|
|
70
|
+
license ends immediately for work on behalf of your company.
|
|
71
|
+
|
|
72
|
+
Violations
|
|
73
|
+
|
|
74
|
+
The first time you are notified in writing that you have violated any of these
|
|
75
|
+
terms, or done anything with the software not covered by your licenses, your
|
|
76
|
+
licenses can nonetheless continue if you come into full compliance with these
|
|
77
|
+
terms, and take practical steps to correct past violations, within 32 days of
|
|
78
|
+
receiving notice. Otherwise, all your licenses end immediately.
|
|
79
|
+
|
|
80
|
+
No Liability
|
|
81
|
+
|
|
82
|
+
As far as the law allows, the software comes as is, without any warranty or
|
|
83
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
84
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
85
|
+
legal claim.
|
|
86
|
+
|
|
87
|
+
Definitions
|
|
88
|
+
|
|
89
|
+
The licensor is the individual or entity offering these terms, and the
|
|
90
|
+
software is the software the licensor makes available under these terms.
|
|
91
|
+
|
|
92
|
+
You refers to the individual or entity agreeing to these terms.
|
|
93
|
+
|
|
94
|
+
Your company is any legal entity, sole proprietorship, or other kind of
|
|
95
|
+
organization that you work for, plus all organizations that have control over,
|
|
96
|
+
are under the control of, or are under common control with that organization.
|
|
97
|
+
Control means ownership of substantially all the assets of an entity, or the
|
|
98
|
+
power to direct its management and policies by vote, contract, or otherwise.
|
|
99
|
+
Control can be direct or indirect.
|
|
100
|
+
|
|
101
|
+
Your licenses are all the licenses granted to you for the software under these
|
|
102
|
+
terms.
|
|
103
|
+
|
|
104
|
+
Use means anything you do with the software requiring one of your licenses.
|
package/README.md
CHANGED
|
@@ -1,3 +1,194 @@
|
|
|
1
|
-
#
|
|
1
|
+
# OneCraft Wallet
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@onecraft/wallet)
|
|
4
|
+
[](https://nodejs.org/)
|
|
5
|
+
|
|
6
|
+
OneCraft gives AI agents a shared local wallet for payments, swaps, DeFi, and
|
|
7
|
+
stablecoin-funded cards. Agents can read balances and positions, pay for x402
|
|
8
|
+
services, and prepare transactions. Wallet keys and signing stay on the user's
|
|
9
|
+
machine. [Product documentation](https://docs.agent-layer.tech/)
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
Requires Node.js 24, npm, and Python 3.10 or later with `venv` support.
|
|
14
|
+
The installer detects Codex, Cursor, Claude Code, OpenClaw, and Hermes.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx --yes @onecraft/wallet@latest install
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Restart the connected agent applications after installation. To target specific
|
|
21
|
+
hosts or check detection, use the following commands.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx --yes @onecraft/wallet@latest install --yes --hosts codex,claude-code
|
|
25
|
+
npx --yes @onecraft/wallet@latest detect --json
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Check the installation
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
wallet status
|
|
32
|
+
wallet doctor
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
If `wallet` is unavailable on your path, use
|
|
36
|
+
`npx --yes @onecraft/wallet@latest status` or replace `status` with `doctor`.
|
|
37
|
+
|
|
38
|
+
### Update
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
wallet update --yes --dry-run
|
|
42
|
+
wallet update --yes
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
An update refreshes the shared runtime and managed hosts. Select hosts with
|
|
46
|
+
`--hosts codex,claude-code` to update a specific set. Run `wallet status`
|
|
47
|
+
afterward and restart agent applications when it reports `restart_required: true`.
|
|
48
|
+
Use `wallet rollback` to return to the previous runtime release.
|
|
49
|
+
|
|
50
|
+
If the CLI is missing or outdated, run
|
|
51
|
+
`npx --yes @onecraft/wallet@latest update --yes`.
|
|
52
|
+
|
|
53
|
+
Existing AgentLayer installations can use `wallet update --yes` as usual.
|
|
54
|
+
The compatibility package receives the same releases, and both packages use
|
|
55
|
+
the same local runtime and wallet data. [Upgrade compatibility](agent-wallet/UPGRADE_COMPATIBILITY.md)
|
|
56
|
+
|
|
57
|
+
## Connect an agent
|
|
58
|
+
|
|
59
|
+
### Universal local MCP
|
|
60
|
+
|
|
61
|
+
A client that supports MCP over `stdio` can connect to the shared local runtime.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npx --yes @onecraft/wallet@latest install --yes --runtime-only
|
|
65
|
+
npx --yes @onecraft/wallet@latest mcp config
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Paste the generated JSON into your client. If the client asks for an executable
|
|
69
|
+
path, run `npx --yes @onecraft/wallet@latest mcp path`. The launcher uses
|
|
70
|
+
the active runtime under `agent-wallet-runtime/current` and applies the same
|
|
71
|
+
transaction policy and approval checks as the wallet plugins.
|
|
72
|
+
|
|
73
|
+
### Hosted x402 payment MCP
|
|
74
|
+
|
|
75
|
+
Add [OneCraft's hosted MCP endpoint](https://x402.agent-layer.tech/mcp) to a client
|
|
76
|
+
that supports remote MCP with OAuth. Sign in with Google or GitHub to use a
|
|
77
|
+
managed Base wallet for USDC x402 payments. The service also supports basic
|
|
78
|
+
USDC transfers on Arc. [Hosted service guide](x402-payment-mcp/README.md)
|
|
79
|
+
|
|
80
|
+
For Meta Muse, open the connection page, sign in, and create a personal access
|
|
81
|
+
token. Enter the token in Muse's secure credential prompt. [Meta Muse setup](https://x402.agent-layer.tech/muse)
|
|
82
|
+
|
|
83
|
+
### Claude Code marketplace
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
/plugin marketplace add lopushok9/Agent-Layer
|
|
87
|
+
/plugin install agent-wallet@agentlayer
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Restart Claude Code after installing the plugin.
|
|
91
|
+
|
|
92
|
+
### ChatGPT desktop and Codex marketplace
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
codex plugin marketplace add lopushok9/Agent-Layer
|
|
96
|
+
codex plugin add agent-wallet@agentlayer
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Restart the app, then select OneCraft Wallet from the OneCraft source in the
|
|
100
|
+
Plugins Directory. On first use, the plugin installs the shared local runtime
|
|
101
|
+
if needed. Enable one OneCraft Wallet plugin per session.
|
|
102
|
+
|
|
103
|
+
### OpenClaw plugin
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
openclaw plugins install clawhub:@agentlayertech/agent-wallet-plugin
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Use the [npm installer](#install) to prepare the shared local runtime.
|
|
110
|
+
|
|
111
|
+
## Wallet capabilities
|
|
112
|
+
|
|
113
|
+
The local runtime supports balances, transfers, swaps, and selected DeFi
|
|
114
|
+
services on Solana, Ethereum, and Base. Agents can also pay for x402 APIs and
|
|
115
|
+
use supported stablecoin-funded card workflows. Fund-moving operations follow
|
|
116
|
+
wallet policy and require approval. [Wallet runtime guide](agent-wallet/README.md)
|
|
117
|
+
|
|
118
|
+
### Optional connectors
|
|
119
|
+
|
|
120
|
+
Connectors add third-party read tools. Enabled read-only connectors appear in
|
|
121
|
+
OpenClaw and Codex after the host restarts. Write connectors require a separately
|
|
122
|
+
verified hosted execution path.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
wallet connectors inspect ./connector.json
|
|
126
|
+
wallet connectors install ./connector.json --enable --yes
|
|
127
|
+
wallet connectors list
|
|
128
|
+
wallet connectors disable com.example.protocol
|
|
129
|
+
wallet connectors doctor
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
See the [connector guide](connectors/README.md) for its protocol and trust model.
|
|
133
|
+
|
|
134
|
+
### Hedera Treasury Guard
|
|
135
|
+
|
|
136
|
+
This opt-in testnet integration monitors an HBAR reserve and prepares a
|
|
137
|
+
policy-limited SAUCE-to-HBAR swap through SaucerSwap V1. The operator reviews
|
|
138
|
+
and approves the exact trade locally. Submitted swaps have a HashScan link,
|
|
139
|
+
and confirmed swaps can publish an optional HCS audit entry.
|
|
140
|
+
[Setup and operator guide](integrations/hedera/treasury-guard/README.md)
|
|
141
|
+
|
|
142
|
+
## Repository layout
|
|
143
|
+
|
|
144
|
+
| Path | Responsibility |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| [`bin/`](bin/) and [`scripts/`](scripts/) | Wallet CLI, release tooling, and distribution checks |
|
|
147
|
+
| [`agent-wallet/`](agent-wallet/README.md) and [`wdk-evm-wallet/`](wdk-evm-wallet/README.md) | Local wallet runtime, policy, signing, and EVM support |
|
|
148
|
+
| [`mcp/`](mcp/README.md) | Shared local MCP server and launch scripts |
|
|
149
|
+
| [`codex/`](codex/plugins/agent-wallet/README.md), [`cursor/`](cursor/plugins/agent-wallet/README.md), [`claude-code/`](claude-code/plugins/agent-wallet/README.md), [`.openclaw/`](.openclaw/extensions/agent-wallet/README.md), and [`hermes/`](hermes/plugins/agent_wallet/README.md) | Host plugins and manifests |
|
|
150
|
+
| [`integrations/hedera/treasury-guard/`](integrations/hedera/treasury-guard/README.md) | Hedera integration with its own source, tests, examples, and agent skill |
|
|
151
|
+
| [`connectors/`](connectors/README.md) and [`connector-platform/`](connector-platform/README.md) | Connector SDK, examples, and hosted connector infrastructure |
|
|
152
|
+
| [`x402-payment-mcp/`](x402-payment-mcp/README.md), [`provider-gateway/`](provider-gateway/README.md), and [`mcp-server/`](mcp-server/README.md) | Hosted payments, provider access, and crypto analytics services |
|
|
153
|
+
| [`landing/`](landing/README.md) and [`docs/`](docs/README.md) | Website, documentation site, and engineering plans |
|
|
154
|
+
|
|
155
|
+
Use lowercase, hyphenated names for new component folders and descriptive
|
|
156
|
+
JavaScript filenames. Keep each component's `README.md` at its root and place
|
|
157
|
+
new source, tests, and examples in `src/`, `tests/`, and `examples/` as the
|
|
158
|
+
component grows. Follow language conventions for Python modules and preserve
|
|
159
|
+
framework-required manifests and entry points.
|
|
160
|
+
|
|
161
|
+
### Development checks
|
|
162
|
+
|
|
163
|
+
Run these from the repository root with Node.js 24 and Python 3.10 or later.
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
npm run check
|
|
167
|
+
npm run check:release-version
|
|
168
|
+
npm run pack:dry-run
|
|
169
|
+
python3 agent-wallet/tests/smoke_build_release_bundle.py
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Source-folder changes should update imports, package allowlists, and doc links
|
|
173
|
+
together. Check the npm package and release bundle before releasing a layout
|
|
174
|
+
change. Treat published package names, plugin IDs, installed state paths, and
|
|
175
|
+
deployment roots as compatibility boundaries. [Upgrade compatibility policy](agent-wallet/UPGRADE_COMPATIBILITY.md)
|
|
176
|
+
|
|
177
|
+
## Security
|
|
178
|
+
|
|
179
|
+
The local runtime keeps keys encrypted on the user's machine and applies
|
|
180
|
+
transaction policy and approval checks. Updates preserve wallet data and
|
|
181
|
+
identities. On macOS, OneCraft uses the login Keychain by default. Approve a
|
|
182
|
+
Keychain prompt when it follows an install or update you initiated.
|
|
183
|
+
Keep a secure offline copy of your recovery key.
|
|
184
|
+
|
|
185
|
+
## Related work
|
|
186
|
+
|
|
187
|
+
NEAR Omni, OneCraft's NEAR Hackathon 2026 submission, connects NEAR DeFi,
|
|
188
|
+
Intents, and EVM accounts through a separate MCP server.
|
|
189
|
+
[Project branch](https://github.com/lopushok9/Agent-Layer/tree/feat/near-omni-account) ·
|
|
190
|
+
[Hackathon diff](https://github.com/lopushok9/Agent-Layer/compare/pre-hackathon...hackathon-submission)
|
|
191
|
+
|
|
192
|
+
## License
|
|
193
|
+
|
|
194
|
+
OneCraft is distributed under the [PolyForm Small Business License 1.0.0](LICENSE).
|
package/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.145
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# --- OpenClaw Agent Wallet ---
|
|
2
|
+
|
|
3
|
+
# Backend selection
|
|
4
|
+
AGENT_WALLET_BACKEND=none
|
|
5
|
+
AGENT_WALLET_SIGN_ONLY=false
|
|
6
|
+
AGENT_WALLET_BOOT_KEY=
|
|
7
|
+
# Runtime secrets are loaded only from ~/.openclaw/sealed_keys.json via AGENT_WALLET_BOOT_KEY.
|
|
8
|
+
# Per-user HKDF derivation and encrypted user-wallet storage are mandatory.
|
|
9
|
+
AGENT_WALLET_PER_USER_KEY_DERIVATION=true
|
|
10
|
+
AGENT_WALLET_ENCRYPT_USER_WALLETS=true
|
|
11
|
+
AGENT_WALLET_MIGRATE_PLAINTEXT_USER_WALLETS=true
|
|
12
|
+
AGENT_WALLET_REFUSE_MAINNET_WALLET_RECREATION=true
|
|
13
|
+
AGENT_WALLET_REQUIRE_ENCRYPTED_MAINNET=true
|
|
14
|
+
AGENT_WALLET_MAX_PER_TX_SOL=0
|
|
15
|
+
AGENT_WALLET_MAX_HOURLY_SOL=0
|
|
16
|
+
AGENT_WALLET_MAX_DAILY_SOL=0
|
|
17
|
+
AGENT_WALLET_MAX_TXS_PER_MINUTE=0
|
|
18
|
+
|
|
19
|
+
# Solana backend
|
|
20
|
+
SOLANA_NETWORK=mainnet
|
|
21
|
+
SOLANA_RPC_URL=
|
|
22
|
+
SOLANA_RPC_URLS=
|
|
23
|
+
SOLANA_RPC_PROVIDER_MODE=auto
|
|
24
|
+
# Optional deployment shortcut: if SOLANA_RPC_URL(S) are empty, agent-wallet
|
|
25
|
+
# auto-derives a Solana Alchemy or Helius RPC from this key on mainnet/devnet.
|
|
26
|
+
ALCHEMY_API_KEY=
|
|
27
|
+
HELIUS_API_KEY=
|
|
28
|
+
PROVIDER_GATEWAY_URL=https://agent-layer-production.up.railway.app
|
|
29
|
+
PROVIDER_GATEWAY_BEARER_TOKEN=
|
|
30
|
+
PROVIDER_GATEWAY_RPC_PROVIDER=auto
|
|
31
|
+
# Swap routing stays Jupiter-first. Bags is used separately for launch/fees via provider-gateway.
|
|
32
|
+
SOLANA_SWAP_PROVIDER=auto
|
|
33
|
+
SOLANA_COMMITMENT=confirmed
|
|
34
|
+
SOLANA_AUTO_CREATE_WALLET=false
|
|
35
|
+
|
|
36
|
+
# Read-only mode
|
|
37
|
+
SOLANA_AGENT_PUBLIC_KEY=
|
|
38
|
+
|
|
39
|
+
# Signing mode: use a sealed `private_key` entry or a file path
|
|
40
|
+
SOLANA_AGENT_KEYPAIR_PATH=
|
|
41
|
+
|
|
42
|
+
# Jupiter swap routing
|
|
43
|
+
JUPITER_API_BASE_URL=https://lite-api.jup.ag/swap/v1
|
|
44
|
+
JUPITER_ULTRA_API_BASE_URL=https://lite-api.jup.ag/ultra/v1
|
|
45
|
+
JUPITER_PRICE_API_BASE_URL=https://lite-api.jup.ag/price/v3
|
|
46
|
+
JUPITER_TOKEN_SEARCH_API_BASE_URL=https://lite-api.jup.ag/tokens/v2
|
|
47
|
+
JUPITER_API_KEY=
|
|
48
|
+
|
|
49
|
+
# LI.FI cross-chain routing. API key is optional for basic read-only quote/status calls.
|
|
50
|
+
# Keep Mayan denied here so LI.FI cannot route through that bridge.
|
|
51
|
+
LIFI_API_BASE_URL=https://li.quest/v1
|
|
52
|
+
LIFI_API_KEY=
|
|
53
|
+
LIFI_INTEGRATOR=agentlayer
|
|
54
|
+
# OneCraft integrator fee, fraction of the swap amount (0.0001 = 0.01%, max 0.01)
|
|
55
|
+
LIFI_FEE=0.0001
|
|
56
|
+
LIFI_DEFAULT_DENY_BRIDGES=mayan
|
|
57
|
+
|
|
58
|
+
# Kamino REST lending
|
|
59
|
+
KAMINO_API_BASE_URL=https://api.kamino.finance
|
|
60
|
+
KAMINO_PROGRAM_ID=KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD
|
|
61
|
+
|
|
62
|
+
# Shared HTTP timeout
|
|
63
|
+
HTTP_TIMEOUT=10.0
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
These instructions apply to the entire `agent-wallet/` tree.
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
`agent-wallet` is the authoritative Python wallet backend used by OpenClaw. It is the source of truth for wallet behavior, safety policy, and Solana execution. It owns:
|
|
8
|
+
|
|
9
|
+
- wallet runtime configuration
|
|
10
|
+
- per-user wallet provisioning
|
|
11
|
+
- Solana read/write operations
|
|
12
|
+
- approval-token validation for sensitive execution
|
|
13
|
+
- OpenClaw-facing adapter and CLI bridge
|
|
14
|
+
- local installer and config patching scripts
|
|
15
|
+
|
|
16
|
+
## Architecture map
|
|
17
|
+
|
|
18
|
+
### Main entrypoints
|
|
19
|
+
- `agent_wallet/openclaw_cli.py` - JSON CLI bridge invoked by the TypeScript OpenClaw extension.
|
|
20
|
+
- `agent_wallet/openclaw_runtime.py` - assembles a runtime context for one OpenClaw user session.
|
|
21
|
+
- `agent_wallet/openclaw_adapter.py` - exposes backend operations as safe agent-facing tools and enforces preview/prepare/execute policy.
|
|
22
|
+
- `agent_wallet/plugin_bundle.py` - builds the manifest/tool bundle exposed to hosts.
|
|
23
|
+
- `agent_wallet/wallet_layer/factory.py` - constructs the active backend implementation.
|
|
24
|
+
- `agent_wallet/wallet_layer/solana.py` - primary Solana backend implementation.
|
|
25
|
+
|
|
26
|
+
### Configuration and secrets
|
|
27
|
+
- `agent_wallet/config.py` - central place for runtime settings, RPC resolution, boot key resolution, and sealed secret loading.
|
|
28
|
+
- `agent_wallet/sealed_keys.py` - encrypted secret bundle support for `~/.openclaw/sealed_keys.json`.
|
|
29
|
+
- `agent_wallet/encrypted_storage.py` - encrypted wallet file helpers.
|
|
30
|
+
- `agent_wallet/validation.py` - shared input validation and error shaping.
|
|
31
|
+
|
|
32
|
+
### Wallet backend
|
|
33
|
+
- `agent_wallet/solana_tx.py` - transaction build, sign, and verification helpers.
|
|
34
|
+
- `agent_wallet/solana_stake.py` - stake-specific wallet operations.
|
|
35
|
+
- `agent_wallet/user_wallets.py` - per-user wallet paths, creation, loading, and migration behavior.
|
|
36
|
+
- `agent_wallet/bootstrap.py` - wallet bootstrap helpers and address pinning.
|
|
37
|
+
|
|
38
|
+
### Transaction safety
|
|
39
|
+
- `agent_wallet/approval.py` - host-issued approval tokens.
|
|
40
|
+
- `agent_wallet/nonce_registry.py` - single-use token replay protection.
|
|
41
|
+
- `agent_wallet/transaction_policy.py` - policy validation around transaction execution.
|
|
42
|
+
- `agent_wallet/spending_limits.py` - spending guardrails.
|
|
43
|
+
- `agent_wallet/models.py` - canonical JSON payloads and tool metadata.
|
|
44
|
+
|
|
45
|
+
### OpenClaw integration
|
|
46
|
+
- `agent_wallet/openclaw_cli.py` is the compatibility boundary for the OpenClaw TypeScript plugin.
|
|
47
|
+
- `agent_wallet/openclaw_runtime.py` owns per-session runtime assembly and user wallet onboarding.
|
|
48
|
+
- `agent_wallet/openclaw_adapter.py` is the policy gate for agent-facing tools.
|
|
49
|
+
- `agent_wallet/plugin_bundle.py` defines the host-facing manifest and tool bundle.
|
|
50
|
+
- Keep these files aligned whenever tool names, config fields, or approval semantics change.
|
|
51
|
+
|
|
52
|
+
### Scripts
|
|
53
|
+
- `scripts/install_agent_wallet.py` - local installer for Python env + OpenClaw config setup.
|
|
54
|
+
- `scripts/install_openclaw_local_config.py` - writes plugin config into OpenClaw config.
|
|
55
|
+
- `scripts/install_openclaw_sealed_keys.py` - provisions sealed runtime secrets.
|
|
56
|
+
- `scripts/switch_openclaw_wallet_network.py` - helper for switching the configured Solana network.
|
|
57
|
+
- `scripts/finalize_openclaw_local_wallet_config.py` - local config finalization helper when the runtime is already present.
|
|
58
|
+
|
|
59
|
+
## Working rules
|
|
60
|
+
|
|
61
|
+
### Keep responsibilities separated
|
|
62
|
+
- Keep host bridge logic in `openclaw_cli.py` and `openclaw_runtime.py`.
|
|
63
|
+
- Keep agent-facing safety and tool exposure in `openclaw_adapter.py`.
|
|
64
|
+
- Keep chain-specific behavior in `wallet_layer/solana.py`, `solana_tx.py`, and `solana_stake.py`.
|
|
65
|
+
- Keep config precedence in `config.py`; do not duplicate env resolution elsewhere unless necessary.
|
|
66
|
+
- Keep `.openclaw/` as the host-side bridge layer. Wallet policy and signing rules belong here, not in the OpenClaw extension.
|
|
67
|
+
|
|
68
|
+
### Security invariants
|
|
69
|
+
- Do not add runtime support for loading `AGENT_WALLET_MASTER_KEY`, `AGENT_WALLET_APPROVAL_SECRET`, or `SOLANA_AGENT_PRIVATE_KEY` directly from runtime env again.
|
|
70
|
+
- Do not put secrets into plugin config JSON.
|
|
71
|
+
- Preserve the `preview -> prepare -> execute` flow for write operations.
|
|
72
|
+
- `prepare` must never return signed transaction bytes.
|
|
73
|
+
- `execute` must continue requiring a host-issued `approval_token`.
|
|
74
|
+
- On `mainnet`, preserve explicit confirmation requirements and warnings.
|
|
75
|
+
- Treat `user_confirmed=true`, `approval_token`, and the mainnet confirmation fields as mandatory safety gates, not optional metadata.
|
|
76
|
+
- Never weaken wallet validation to make a tool easier to call.
|
|
77
|
+
|
|
78
|
+
### Update discipline
|
|
79
|
+
- Prefer fixing behavior in the Python backend instead of patching around it in scripts.
|
|
80
|
+
- When adding or removing a tool, keep the following in sync:
|
|
81
|
+
- `agent_wallet/openclaw_adapter.py`
|
|
82
|
+
- `agent_wallet/plugin_bundle.py`
|
|
83
|
+
- OpenClaw extension tool registration in `.openclaw/extensions/agent-wallet/index.ts`
|
|
84
|
+
- relevant docs/tests
|
|
85
|
+
- When changing config keys, keep the following in sync:
|
|
86
|
+
- `agent_wallet/config.py`
|
|
87
|
+
- `agent_wallet/openclaw_cli.py`
|
|
88
|
+
- `.openclaw/extensions/agent-wallet/openclaw.plugin.json`
|
|
89
|
+
- installer scripts and README examples
|
|
90
|
+
- When changing approval or signing behavior, update the runtime, adapter, CLI bridge, and smoke tests together.
|
|
91
|
+
- If a change affects the OpenClaw bridge, update the TypeScript extension and the Python contract in the same change set.
|
|
92
|
+
- Preserve the direct-upgrade floor and legacy removal policy documented in `UPGRADE_COMPATIBILITY.md`.
|
|
93
|
+
|
|
94
|
+
### Coding style
|
|
95
|
+
- Follow existing Python style and type-hint usage.
|
|
96
|
+
- Keep changes minimal and local to the owning module.
|
|
97
|
+
- Avoid introducing framework-heavy abstractions; this repo is intentionally direct.
|
|
98
|
+
- Prefer explicit JSON-serializable return payloads because the CLI bridge depends on them.
|
|
99
|
+
- Preserve existing public payload shapes unless a coordinated contract change is required.
|
|
100
|
+
|
|
101
|
+
## Validation
|
|
102
|
+
- Prefer targeted smoke tests first, then broader runs if needed.
|
|
103
|
+
- Relevant tests live under `tests/` and are mostly smoke-style.
|
|
104
|
+
- Good focused examples:
|
|
105
|
+
- `tests/smoke_openclaw_cli.py`
|
|
106
|
+
- `tests/smoke_openclaw_adapter.py`
|
|
107
|
+
- `tests/smoke_openclaw_runtime.py`
|
|
108
|
+
- `tests/smoke_install_agent_wallet.py`
|
|
109
|
+
- `tests/smoke_sealed_keys.py`
|
|
110
|
+
- `tests/smoke_solana_tx.py`
|
|
111
|
+
|
|
112
|
+
## Common change patterns
|
|
113
|
+
|
|
114
|
+
### If changing tool behavior
|
|
115
|
+
1. Update backend or adapter.
|
|
116
|
+
2. Verify preview/prepare/execute semantics.
|
|
117
|
+
3. Sync tool metadata exposed to OpenClaw.
|
|
118
|
+
4. Update or add smoke tests.
|
|
119
|
+
|
|
120
|
+
### If changing config or install flow
|
|
121
|
+
1. Update `config.py` and any CLI/env mapping.
|
|
122
|
+
2. Update installer scripts.
|
|
123
|
+
3. Update README snippets and examples.
|
|
124
|
+
4. Run install/config smoke tests.
|
|
125
|
+
|
|
126
|
+
### If changing Solana execution logic
|
|
127
|
+
1. Keep address validation and policy checks intact.
|
|
128
|
+
2. Preserve sign-only behavior.
|
|
129
|
+
3. Preserve exact confirmation summaries used for approval tokens.
|
|
130
|
+
4. Re-run the most specific Solana smoke tests available.
|