run402 3.7.10 → 3.7.11
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 +1 -1
- package/lib/allowance.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ For typed `run402.deploy.ts` configs, pass `--manifest` explicitly because TypeS
|
|
|
51
51
|
run402 allowance create # generate the local allowance
|
|
52
52
|
run402 allowance fund # request testnet USDC from the faucet
|
|
53
53
|
run402 allowance balance # mainnet + testnet + billing balance
|
|
54
|
-
run402 allowance export # print address
|
|
54
|
+
run402 allowance export # print {"address":"0x..."} for funding
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### Database
|
package/lib/allowance.mjs
CHANGED
|
@@ -13,7 +13,7 @@ Subcommands:
|
|
|
13
13
|
create Generate a new allowance and save it locally
|
|
14
14
|
fund Request test funds from the faucet (Base Sepolia or Tempo)
|
|
15
15
|
balance Show on-chain balances and Run402 billing balance
|
|
16
|
-
export Print the allowance address (useful for scripting)
|
|
16
|
+
export Print the allowance address as JSON (useful for scripting)
|
|
17
17
|
checkout Create an org balance checkout session (--amount <usd_micros>)
|
|
18
18
|
history View billing transaction history (--limit <n>)
|
|
19
19
|
|
|
@@ -245,7 +245,7 @@ async function balance() {
|
|
|
245
245
|
async function exportAddr() {
|
|
246
246
|
try {
|
|
247
247
|
const address = await getSdk().allowance.export();
|
|
248
|
-
console.log(address);
|
|
248
|
+
console.log(JSON.stringify({ address }));
|
|
249
249
|
} catch {
|
|
250
250
|
fail({ code: "NO_ALLOWANCE", message: "No agent allowance." });
|
|
251
251
|
}
|
package/package.json
CHANGED