@solana-agent-wallet-adapter/cli 0.1.0
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/LICENSE +15 -0
- package/README.md +107 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +84340 -0
- package/dist/index.js.map +7 -0
- package/dist/wallet-host/.well-known/assetlinks.json +12 -0
- package/dist/wallet-host/assets/codex-B1ZwolvK.svg +3 -0
- package/dist/wallet-host/assets/index-D5ySS2CU.js +2143 -0
- package/dist/wallet-host/assets/index-ZynMhs1G.css +1 -0
- package/dist/wallet-host/assets/mobile-wallet-adapter-CqDJSDZ5.js +738 -0
- package/dist/wallet-host/assets/saturn-source-cutout-wQ5itUw-.png +0 -0
- package/dist/wallet-host/assets/solana-runtime-BhiDfU5_.js +20 -0
- package/dist/wallet-host/assets/wallet-standard-eoxEevjj.js +11 -0
- package/dist/wallet-host/icons/agentic-192.png +0 -0
- package/dist/wallet-host/icons/agentic-192.png.bak +0 -0
- package/dist/wallet-host/icons/agentic-512.png +0 -0
- package/dist/wallet-host/icons/agentic-512.png.bak +0 -0
- package/dist/wallet-host/icons/agentic.png +0 -0
- package/dist/wallet-host/icons/agentic.png.bak +0 -0
- package/dist/wallet-host/icons/agentic.svg +44 -0
- package/dist/wallet-host/icons/favicon-transparent.png +0 -0
- package/dist/wallet-host/index.html +45 -0
- package/dist/wallet-host/manifest.webmanifest +20 -0
- package/dist/wallet-host/og/agentic-multi-wallet-agent-signer-1200.png +0 -0
- package/dist/wallet-host/og/agentic-solana-multi-wallet-agent-signer-agentic-bigger.png +0 -0
- package/dist/wallet-host/og/agentic-solana-multi-wallet-agent-signer.png +0 -0
- package/dist/wallet-host/og/og-card.png +0 -0
- package/package.json +55 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# @solana-agent-wallet-adapter/cli
|
|
2
|
+
|
|
3
|
+
Terminal control surface for Agentic, the Solana Agent Wallet Adapter local runtime. It starts a local wallet bridge, serves the browser wallet host, and lets agents request wallet-held approvals without receiving custody of a private key.
|
|
4
|
+
|
|
5
|
+
## Install from npm
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install -g @solana-agent-wallet-adapter/cli
|
|
9
|
+
solana-agent-wallet app
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
One-shot usage without a global install:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm exec @solana-agent-wallet-adapter/cli -- app
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
`solana-agent-wallet app` starts the local bridge at `http://127.0.0.1:8787`, starts the wallet host at `http://127.0.0.1:5174`, opens the wallet host in your browser, and launches the terminal control center.
|
|
19
|
+
|
|
20
|
+
Optional AI planning is BYOK and local-first:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
export AGENTIC_AI_API_KEY=...
|
|
24
|
+
export AGENTIC_AI_MODEL=gpt-5
|
|
25
|
+
export AGENTIC_AI_BASE_URL=https://api.openai.com/v1
|
|
26
|
+
solana-agent-wallet app
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The key stays in the local bridge process or your shell environment. The hosted app can draft plans through the bridge,
|
|
30
|
+
but wallet approval remains separate.
|
|
31
|
+
|
|
32
|
+
## Standalone Downloads
|
|
33
|
+
|
|
34
|
+
Download the asset for your platform from the latest GitHub Release:
|
|
35
|
+
|
|
36
|
+
- `solana-agent-wallet-macos-arm64.tar.gz`
|
|
37
|
+
- `solana-agent-wallet-macos-x64.tar.gz`
|
|
38
|
+
- `solana-agent-wallet-linux-x64.tar.gz`
|
|
39
|
+
- `solana-agent-wallet-windows-x64.zip`
|
|
40
|
+
|
|
41
|
+
Release URL pattern:
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
https://github.com/mstevens843/solana-agent-wallet-adapter/releases/latest/download/<asset>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
After extracting the archive, run:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
./solana-agent-wallet app
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
On Windows, run `solana-agent-wallet.exe app`.
|
|
54
|
+
|
|
55
|
+
## Commands
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
solana-agent-wallet app
|
|
59
|
+
solana-agent-wallet doctor
|
|
60
|
+
solana-agent-wallet bridge serve
|
|
61
|
+
solana-agent-wallet bridge start
|
|
62
|
+
solana-agent-wallet wallet-host serve
|
|
63
|
+
solana-agent-wallet status
|
|
64
|
+
solana-agent-wallet balances
|
|
65
|
+
solana-agent-wallet connect
|
|
66
|
+
solana-agent-wallet inbox list
|
|
67
|
+
solana-agent-wallet inbox inspect <action-id>
|
|
68
|
+
solana-agent-wallet inbox approve <action-id>
|
|
69
|
+
solana-agent-wallet prepare transfer-sol <recipient> 0.01
|
|
70
|
+
solana-agent-wallet receipts
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Use `--json` for scriptable output.
|
|
74
|
+
|
|
75
|
+
## Runtime Files
|
|
76
|
+
|
|
77
|
+
Installed mode uses a user-local runtime directory:
|
|
78
|
+
|
|
79
|
+
- macOS/Linux: `~/.solana-agent-wallet`
|
|
80
|
+
- Windows: `%APPDATA%\solana-agent-wallet`
|
|
81
|
+
|
|
82
|
+
The CLI creates `agent-wallet.config.json` and the prepared-action data directory when they are absent. Override paths with:
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
solana-agent-wallet --runtime-dir <path> doctor
|
|
86
|
+
solana-agent-wallet --config <path> --prepared-actions <path> bridge serve
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Local Repo Development
|
|
90
|
+
|
|
91
|
+
From a cloned repo:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
pnpm install
|
|
95
|
+
pnpm -F @solana-agent-wallet-adapter/cli build
|
|
96
|
+
pnpm cli -- app
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Repo mode keeps the development fallback for `apps/browser-demo` and repo-local config files. Public users should use npm, `npm exec`, or a release binary instead.
|
|
100
|
+
|
|
101
|
+
## Troubleshooting
|
|
102
|
+
|
|
103
|
+
- Run `solana-agent-wallet doctor --json` to inspect runtime paths, bridge reachability, wallet-host assets, and local health.
|
|
104
|
+
- If port `8787` or `5174` is busy, stop the old process or pass `--bridge-url` / `--wallet-host-url` with another localhost port.
|
|
105
|
+
- If no browser wallet is connected, keep the wallet host tab open, connect Phantom, Backpack, Solflare, or another Wallet Standard wallet, then click Connect bridge if prompted.
|
|
106
|
+
- If `wallet-host serve` reports missing assets, reinstall the npm package or rebuild locally with `pnpm -F @solana-agent-wallet-adapter/cli build`.
|
|
107
|
+
- Mainnet actions remain capped by `agent-wallet.config.json`; set `mainnet.enabled=true` only when you intend to allow real mainnet actions.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|