buymychat 0.0.0-stage → 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/README.md +48 -2
- package/dist/main.js +6972 -0
- package/package.json +46 -3
package/README.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
-
#
|
|
1
|
+
# buymychat
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
BuyMyChat from the terminal. Sellers turn their coding-agent chats into listings: the decisions, dead ends and fixes, each quoting the chat it came from. Buyers find those listings, preview them free, ask them questions and buy them, paid in HBAR over x402 on Hedera testnet. Names and prices live in ENS on Sepolia.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx buymychat
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
With no command, it opens an interactive menu. Every step is also a subcommand for scripts and agents, and read commands take `--json`. It needs Node 22 or later.
|
|
10
|
+
|
|
11
|
+
## Get set up
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npx buymychat connect # to buy; add --claim alice (or --name alice.buymychat.eth) to sell
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`connect` opens a page on `127.0.0.1` where you use MetaMask to:
|
|
18
|
+
|
|
19
|
+
1. Claim a free `alice.buymychat.eth`. Its ETH address is set to your wallet and locked, and every sale you make pays it.
|
|
20
|
+
2. Connect this computer as a device. It gets its own key in `~/.config/buymychat/cli.json`, readable only by you.
|
|
21
|
+
3. Top up its pocket, a small Hedera account the device pays from.
|
|
22
|
+
|
|
23
|
+
## Buy
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npx buymychat search "x402 hedera"
|
|
27
|
+
npx buymychat preview x402-hedera-blocky402.kunal.buymychat.eth
|
|
28
|
+
npx buymychat ask x402-hedera-blocky402.kunal.buymychat.eth "Why does a new pocket's first payment fail?"
|
|
29
|
+
npx buymychat ask "How do I pay x402 on Hedera?" # the Broker asks across all listings
|
|
30
|
+
npx buymychat buy x402-hedera-blocky402.kunal.buymychat.eth pack
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Every payment shows its exact HBAR price and asks first, unless you pass `--yes`. `BUYMYCHAT_MAX_SPEND` caps what one run may spend, in USD (default 0.50). Bought Packs and Chats are saved in `.buymychat/`. Something your wallet already bought downloads again for free on any of its devices: `buymychat download <listing> pack|chats`.
|
|
34
|
+
|
|
35
|
+
## Sell
|
|
36
|
+
|
|
37
|
+
Run these in the repo whose Claude Code chats you want to sell. Chats are redacted on your computer, and raw chats never leave it.
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
npx buymychat import --listing x402-payments --title "x402 payments on Hedera"
|
|
41
|
+
npx buymychat review x402-payments
|
|
42
|
+
npx buymychat publish x402-payments
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`buymychat --help` lists every command.
|
|
46
|
+
|
|
47
|
+
## Older names
|
|
48
|
+
|
|
49
|
+
Before Dec 6 the command was `vault`, with `ingest`, `login`, `logout`, `refill`, `device` and `trajectory`. Those subcommand names still work here, as `buymychat ingest` and so on. The npm package has no `vault` command, because that name belongs to HashiCorp Vault on many machines. Inside the BuyMyChat repo, `pnpm vault …` still runs this CLI.
|