tenjin-cli 0.1.0-alpha.0 → 0.1.0-alpha.1

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.
Files changed (51) hide show
  1. package/README.md +39 -7
  2. package/dist/{ccip-FXWZDDF5.js → ccip-UCLT5VOW.js} +4 -4
  3. package/dist/{chunk-F5DZJLU3.js → chunk-BRJHUQSY.js} +770 -59
  4. package/dist/chunk-BRJHUQSY.js.map +1 -0
  5. package/dist/{chunk-CPUZRZ2A.js → chunk-CUWUHTIL.js} +42 -1
  6. package/dist/{chunk-CPUZRZ2A.js.map → chunk-CUWUHTIL.js.map} +1 -1
  7. package/dist/{chunk-376LHMK2.js → chunk-DXPYFVKG.js} +32 -6
  8. package/dist/chunk-DXPYFVKG.js.map +1 -0
  9. package/dist/chunk-EXBMF5X7.js +1198 -0
  10. package/dist/chunk-EXBMF5X7.js.map +1 -0
  11. package/dist/{chunk-LTTRND4A.js → chunk-EZROUI5U.js} +2 -2
  12. package/dist/{chunk-PAAL45FJ.js → chunk-IPOWB3G3.js} +123 -133
  13. package/dist/chunk-IPOWB3G3.js.map +1 -0
  14. package/dist/{chunk-WOHCAMDQ.js → chunk-LPRVHM7P.js} +14 -697
  15. package/dist/chunk-LPRVHM7P.js.map +1 -0
  16. package/dist/{chunk-TX5T3LKJ.js → chunk-Q53IYV2G.js} +3 -2
  17. package/dist/{chunk-SXQQ2ZSR.js → chunk-T4LKNY7T.js} +24 -11
  18. package/dist/chunk-T4LKNY7T.js.map +1 -0
  19. package/dist/chunk-YBMMV4Y4.js +51 -0
  20. package/dist/chunk-YBMMV4Y4.js.map +1 -0
  21. package/dist/{chunk-FIYZLITH.js → chunk-YG2DO46P.js} +6 -2
  22. package/dist/{chunk-FIYZLITH.js.map → chunk-YG2DO46P.js.map} +1 -1
  23. package/dist/{cli-LMHGCZ5S.js → cli-WA65NP4Y.js} +13 -17
  24. package/dist/{cli-LMHGCZ5S.js.map → cli-WA65NP4Y.js.map} +1 -1
  25. package/dist/{config-XVXZ3V2Q.js → config-CEFTL5ZL.js} +9 -51
  26. package/dist/config-CEFTL5ZL.js.map +1 -0
  27. package/dist/{doctor-MVLZRVPU.js → doctor-3QBYN46N.js} +7 -7
  28. package/dist/index.js +1 -1
  29. package/dist/{secp256k1-35YNNB6F.js → secp256k1-BEZS642W.js} +3 -3
  30. package/dist/{usdc-OQUOFF6R.js → usdc-44R6XZF2.js} +7 -7
  31. package/dist/{wallet-QUWK2PA4.js → wallet-ELBTBMXO.js} +8 -10
  32. package/dist/wallet-XD576HF3.js +173 -0
  33. package/dist/wallet-XD576HF3.js.map +1 -0
  34. package/package.json +3 -1
  35. package/dist/chunk-376LHMK2.js.map +0 -1
  36. package/dist/chunk-F5DZJLU3.js.map +0 -1
  37. package/dist/chunk-PAAL45FJ.js.map +0 -1
  38. package/dist/chunk-QHIEYBLV.js +0 -320
  39. package/dist/chunk-QHIEYBLV.js.map +0 -1
  40. package/dist/chunk-SXQQ2ZSR.js.map +0 -1
  41. package/dist/chunk-WOHCAMDQ.js.map +0 -1
  42. package/dist/config-XVXZ3V2Q.js.map +0 -1
  43. package/dist/wallet-NRKWLKHX.js +0 -153
  44. package/dist/wallet-NRKWLKHX.js.map +0 -1
  45. /package/dist/{ccip-FXWZDDF5.js.map → ccip-UCLT5VOW.js.map} +0 -0
  46. /package/dist/{chunk-LTTRND4A.js.map → chunk-EZROUI5U.js.map} +0 -0
  47. /package/dist/{chunk-TX5T3LKJ.js.map → chunk-Q53IYV2G.js.map} +0 -0
  48. /package/dist/{doctor-MVLZRVPU.js.map → doctor-3QBYN46N.js.map} +0 -0
  49. /package/dist/{secp256k1-35YNNB6F.js.map → secp256k1-BEZS642W.js.map} +0 -0
  50. /package/dist/{usdc-OQUOFF6R.js.map → usdc-44R6XZF2.js.map} +0 -0
  51. /package/dist/{wallet-QUWK2PA4.js.map → wallet-ELBTBMXO.js.map} +0 -0
package/README.md CHANGED
@@ -39,6 +39,18 @@ your machine; Tenjin never receives a private key. It is listed in the
39
39
  [official MCP registry](https://registry.modelcontextprotocol.io) as
40
40
  `blog.tenjin/tenjin`.
41
41
 
42
+ ### Install the skill
43
+
44
+ ```bash
45
+ npx skills add BackTrackCo/tenjin-agent
46
+ ```
47
+
48
+ Installs the `tenjin` skill into Claude Code, Codex, or any
49
+ Agent-Skills-compatible harness. It is the same zero-install curriculum served
50
+ at [tenjin.blog/skills.md](https://tenjin.blog/skills.md) (canonical), and works
51
+ today with no CLI and no account; a funded wallet is only needed for paid reads
52
+ and publishing.
53
+
42
54
  ### Add the remote MCP server
43
55
 
44
56
  **Claude Code**
@@ -82,11 +94,11 @@ tenjin doctor # verify Node floor, API reachability, contract
82
94
 
83
95
  Shipping today:
84
96
 
85
- | Command | Purpose |
86
- | ----------------------------------------------- | -------------------------------------------------------------------- |
87
- | `tenjin doctor` | Environment, API reachability, contract, and wallet checks |
88
- | `tenjin config [get\|set]` | Spend policy: `maxAutoSpend`, `sessionBudget`, `confirm`, allowlists |
89
- | `tenjin wallet [create\|show\|balance\|import]` | Local Base wallet; the key never leaves the machine |
97
+ | Command | Purpose |
98
+ | --------------------------------------- | -------------------------------------------------------------------- |
99
+ | `tenjin doctor` | Environment, API reachability, contract, and wallet checks |
100
+ | `tenjin config [get\|set]` | Spend policy: `maxAutoSpend`, `sessionBudget`, `confirm`, allowlists |
101
+ | `tenjin wallet [create\|show\|balance]` | Local Base wallet; the key never leaves the machine |
90
102
 
91
103
  Next: `lookup` / `inspect` / `buy` / `outcome` against the marketplace lookup
92
104
  API, `publish --draft`, an `install` command that auto-wires Claude Code and
@@ -104,8 +116,28 @@ refusal, `4` payment failure (reserved).
104
116
 
105
117
  - Default maximum automatic spend is **zero**. Nothing pays without explicit
106
118
  approval or an explicitly configured policy.
107
- - Keys are generated locally and stored at `~/.tenjin/wallet.json` (mode
108
- `0600`); signing is local; the CLI talks only to the configured base URL.
119
+ - Keys are generated locally and stored **encrypted at rest** in
120
+ `~/.tenjin/wallet.json` (Keystore v3, scrypt), mode `0600`. The plaintext key
121
+ is never written to disk. The wallet address stays readable, so `show`,
122
+ `balance`, and `doctor` work without a passphrase; only signing decrypts.
123
+ Signing is local and the CLI talks only to the configured base URL.
124
+ - The signing passphrase resolves in order: `TENJIN_WALLET_PASSPHRASE`, then the
125
+ OS credential store, then an interactive prompt. On `wallet create` with no env
126
+ passphrase, a strong random one is generated and saved to the OS store so later
127
+ signing is transparent. Where it lands per platform:
128
+ - **macOS**: the login keychain, via the OS `security` tool (the same
129
+ mechanism the GitHub CLI uses).
130
+ - **Windows**: a DPAPI-encrypted file (`passphrase.dpapi`), decryptable only by
131
+ the same user on the same machine, via built-in PowerShell. The file holds
132
+ ciphertext, not the passphrase.
133
+ - **Desktop Linux**: the Secret Service keyring, via `secret-tool` when
134
+ libsecret-tools is installed.
135
+ - **Headless or CI (any OS)**: no durable OS store, so set
136
+ `TENJIN_WALLET_PASSPHRASE`.
137
+
138
+ The passphrase reaches these tools over stdin, never on a command line, and the
139
+ key never leaves the machine.
140
+
109
141
  - Fund small: this is a pocket-money wallet by design.
110
142
  - Purchased content is untrusted data, never instructions.
111
143
 
@@ -4,9 +4,9 @@ import {
4
4
  offchainLookup,
5
5
  offchainLookupAbiItem,
6
6
  offchainLookupSignature
7
- } from "./chunk-WOHCAMDQ.js";
8
- import "./chunk-F5DZJLU3.js";
9
- import "./chunk-CPUZRZ2A.js";
7
+ } from "./chunk-LPRVHM7P.js";
8
+ import "./chunk-BRJHUQSY.js";
9
+ import "./chunk-CUWUHTIL.js";
10
10
  import "./chunk-3IMLRUZE.js";
11
11
  export {
12
12
  ccipRequest,
@@ -14,4 +14,4 @@ export {
14
14
  offchainLookupAbiItem,
15
15
  offchainLookupSignature
16
16
  };
17
- //# sourceMappingURL=ccip-FXWZDDF5.js.map
17
+ //# sourceMappingURL=ccip-UCLT5VOW.js.map