tenjin-cli 0.1.0-alpha.14 → 0.1.0-alpha.16

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 (253) hide show
  1. package/NOTICE.md +54 -7
  2. package/README.md +41 -295
  3. package/dist/{_esm-N4KAVXQR.js → _esm-CE7KNONL.js} +9 -10
  4. package/dist/{ccip-ZGGWQN4X.js → ccip-7RMRLAGV.js} +4 -4
  5. package/dist/{ccip-RPPPKTJR.js → ccip-NLCSCHKI.js} +5 -5
  6. package/dist/chunk-25TJPVBF.js +353 -0
  7. package/dist/chunk-25TJPVBF.js.map +1 -0
  8. package/dist/chunk-2BKS2FVE.js +93 -0
  9. package/dist/chunk-2BKS2FVE.js.map +1 -0
  10. package/dist/chunk-2QYORQBF.js +55 -0
  11. package/dist/chunk-2QYORQBF.js.map +1 -0
  12. package/dist/{chunk-ACBEHJAH.js → chunk-2U5ZVEV3.js} +14 -16
  13. package/dist/chunk-2U5ZVEV3.js.map +1 -0
  14. package/dist/{chunk-MJSXP4LW.js → chunk-3AJS6LLN.js} +11 -8
  15. package/dist/chunk-3AJS6LLN.js.map +1 -0
  16. package/dist/{chunk-OWVVI4VQ.js → chunk-3AUDA53C.js} +7650 -7361
  17. package/dist/chunk-3AUDA53C.js.map +1 -0
  18. package/dist/{chunk-MJZZTKCC.js → chunk-56MOAIP5.js} +5 -10
  19. package/dist/chunk-56MOAIP5.js.map +1 -0
  20. package/dist/{chunk-U5S527PP.js → chunk-5IEP5EGE.js} +3 -3
  21. package/dist/chunk-5X4SZ5BF.js +227 -0
  22. package/dist/chunk-5X4SZ5BF.js.map +1 -0
  23. package/dist/chunk-7WEQQJLG.js +68 -0
  24. package/dist/chunk-7WEQQJLG.js.map +1 -0
  25. package/dist/{chunk-7FK2UN2T.js → chunk-AWQPGIR6.js} +65 -67
  26. package/dist/{chunk-7FK2UN2T.js.map → chunk-AWQPGIR6.js.map} +1 -1
  27. package/dist/{chunk-PAOVPSP6.js → chunk-BBVUVBUO.js} +517 -138
  28. package/dist/chunk-BBVUVBUO.js.map +1 -0
  29. package/dist/{chunk-ETKZWJ4B.js → chunk-BFFM2WFK.js} +8 -8
  30. package/dist/chunk-BFFM2WFK.js.map +1 -0
  31. package/dist/{chunk-KYQVEKP5.js → chunk-BPMWXTFX.js} +8 -8
  32. package/dist/chunk-DMZZLPZN.js +205 -0
  33. package/dist/chunk-DMZZLPZN.js.map +1 -0
  34. package/dist/{chunk-47PP7TAG.js → chunk-EGELTSPU.js} +1356 -1356
  35. package/dist/chunk-EGELTSPU.js.map +1 -0
  36. package/dist/chunk-GULLJQXA.js +698 -0
  37. package/dist/chunk-GULLJQXA.js.map +1 -0
  38. package/dist/{chunk-S5RYMCV6.js → chunk-HPWO4O6S.js} +3 -3
  39. package/dist/chunk-HVRC33OL.js +174 -0
  40. package/dist/chunk-HVRC33OL.js.map +1 -0
  41. package/dist/{chunk-W6R3HAAG.js → chunk-JRGFKVAZ.js} +2 -2
  42. package/dist/{chunk-XJN5WUKL.js → chunk-KG3D7FIF.js} +2 -2
  43. package/dist/chunk-L3PVMIYQ.js +10328 -0
  44. package/dist/chunk-L3PVMIYQ.js.map +1 -0
  45. package/dist/{chunk-QW2Q2KAH.js → chunk-LHHMV4GU.js} +2 -2
  46. package/dist/{chunk-ZOBNS7CX.js → chunk-MEFB5KHA.js} +4 -18
  47. package/dist/chunk-MEFB5KHA.js.map +1 -0
  48. package/dist/{chunk-M2O56UK7.js → chunk-N35E6CM2.js} +293 -163
  49. package/dist/chunk-N35E6CM2.js.map +1 -0
  50. package/dist/chunk-OCBHUHWB.js +69 -0
  51. package/dist/chunk-OCBHUHWB.js.map +1 -0
  52. package/dist/chunk-OIM4HLN6.js +1405 -0
  53. package/dist/chunk-OIM4HLN6.js.map +1 -0
  54. package/dist/{chunk-PKW3H26Z.js → chunk-OJLYNM4Z.js} +56 -33
  55. package/dist/chunk-OJLYNM4Z.js.map +1 -0
  56. package/dist/{chunk-POJRB2AE.js → chunk-POUWHWID.js} +2 -2
  57. package/dist/chunk-PZEN5PHN.js +285 -0
  58. package/dist/chunk-PZEN5PHN.js.map +1 -0
  59. package/dist/chunk-SKAHDQH7.js +1785 -0
  60. package/dist/chunk-SKAHDQH7.js.map +1 -0
  61. package/dist/{chunk-KZAAWQNP.js → chunk-TTNESUPQ.js} +3 -3
  62. package/dist/{chunk-QWBUKIP2.js → chunk-U5DXNFJC.js} +23 -94
  63. package/dist/chunk-U5DXNFJC.js.map +1 -0
  64. package/dist/chunk-USS336NF.js +165 -0
  65. package/dist/chunk-USS336NF.js.map +1 -0
  66. package/dist/{chunk-UO22YNY4.js → chunk-WH7OWT6G.js} +49 -1
  67. package/dist/chunk-WH7OWT6G.js.map +1 -0
  68. package/dist/chunk-WXC57XGG.js +29 -0
  69. package/dist/chunk-WXC57XGG.js.map +1 -0
  70. package/dist/{chunk-YLYINX2H.js → chunk-XZKD7DIF.js} +3 -3
  71. package/dist/{chunk-7GJQ5RGA.js → chunk-YEETV6IW.js} +1077 -1039
  72. package/dist/chunk-YEETV6IW.js.map +1 -0
  73. package/dist/{chunk-B676GPS2.js → chunk-YJHHCWM3.js} +39 -16
  74. package/dist/chunk-YJHHCWM3.js.map +1 -0
  75. package/dist/{cli-U2BEUA55.js → cli-M3XCSOU6.js} +295 -349
  76. package/dist/cli-M3XCSOU6.js.map +1 -0
  77. package/dist/config-MXOX7XDR.js +41 -0
  78. package/dist/{dist-U4M6QCKE.js → dist-3LOO6M4U.js} +10 -10
  79. package/dist/doctor-LU4YIZWM.js +349 -0
  80. package/dist/doctor-LU4YIZWM.js.map +1 -0
  81. package/dist/{ethersCompat-Df4a6QIZ-WHYKB6HA.js → ethersCompat-Df4a6QIZ-THAVUGIJ.js} +5 -5
  82. package/dist/{chunk-3ZW7HPY5.js → fund-A54P2QFK.js} +81 -22
  83. package/dist/fund-A54P2QFK.js.map +1 -0
  84. package/dist/hook-command-U6KWPEDQ.js +377 -0
  85. package/dist/hook-command-U6KWPEDQ.js.map +1 -0
  86. package/dist/index.js +8 -3
  87. package/dist/index.js.map +1 -1
  88. package/dist/install-XUM2XSHW.js +53 -0
  89. package/dist/install-wallet-QIOFORTX.js +105 -0
  90. package/dist/install-wallet-QIOFORTX.js.map +1 -0
  91. package/dist/{run-CJWPGMIQ.js → mcp-HJC2PLRV.js} +3725 -10661
  92. package/dist/mcp-HJC2PLRV.js.map +1 -0
  93. package/dist/paths-P2N4JTDZ.js +49 -0
  94. package/dist/pay-SBXZEPEP.js +37 -0
  95. package/dist/redact-46ZHF2NH.js +17 -0
  96. package/dist/{secp256k1-XRPVBC6V.js → secp256k1-ZZZT2CAX.js} +3 -3
  97. package/dist/{send-C5EOKXOU.js → send-ASD2ZXJD.js} +28 -30
  98. package/dist/send-ASD2ZXJD.js.map +1 -0
  99. package/dist/{chunk-NAAMHWSI.js → skill-placement-NFVHY6A3.js} +159 -12
  100. package/dist/skill-placement-NFVHY6A3.js.map +1 -0
  101. package/dist/status-T2SDB57A.js +63 -0
  102. package/dist/status-T2SDB57A.js.map +1 -0
  103. package/dist/status-line-CGPUSDMC.js +71 -0
  104. package/dist/status-line-CGPUSDMC.js.map +1 -0
  105. package/dist/status-line-wiring-BYPHTYZE.js +30 -0
  106. package/dist/tenjin-daemon.mjs +20060 -0
  107. package/dist/tenjin-shim.mjs +251 -0
  108. package/dist/tenjin-vitest-reporter.mjs +49 -0
  109. package/dist/uninstall-FKYZHAM3.js +144 -0
  110. package/dist/uninstall-FKYZHAM3.js.map +1 -0
  111. package/dist/{update-24Y2CQTT.js → update-ANJ2AOTN.js} +133 -17
  112. package/dist/update-ANJ2AOTN.js.map +1 -0
  113. package/dist/{viemAdapter-By13KInL-TUQJBMHM.js → viemAdapter-By13KInL-X2VY6CY3.js} +5 -5
  114. package/dist/wallet-PWAHVKWW.js +31 -0
  115. package/dist/wallet-kdf-worker.mjs +980 -0
  116. package/docs/agent-permissions.md +68 -342
  117. package/docs/safety-model.md +25 -6
  118. package/package.json +8 -7
  119. package/LICENSE +0 -21
  120. package/dist/buy-2JBYPHAI.js +0 -46
  121. package/dist/chunk-3P3ES4XU.js +0 -144
  122. package/dist/chunk-3P3ES4XU.js.map +0 -1
  123. package/dist/chunk-3ZW7HPY5.js.map +0 -1
  124. package/dist/chunk-47PP7TAG.js.map +0 -1
  125. package/dist/chunk-4UHNXY6B.js +0 -786
  126. package/dist/chunk-4UHNXY6B.js.map +0 -1
  127. package/dist/chunk-4Y53PDH6.js +0 -213
  128. package/dist/chunk-4Y53PDH6.js.map +0 -1
  129. package/dist/chunk-54AJIO3E.js +0 -198
  130. package/dist/chunk-54AJIO3E.js.map +0 -1
  131. package/dist/chunk-736DW4V3.js +0 -65
  132. package/dist/chunk-736DW4V3.js.map +0 -1
  133. package/dist/chunk-7GJQ5RGA.js.map +0 -1
  134. package/dist/chunk-7NADDA2V.js +0 -161
  135. package/dist/chunk-7NADDA2V.js.map +0 -1
  136. package/dist/chunk-ACBEHJAH.js.map +0 -1
  137. package/dist/chunk-B676GPS2.js.map +0 -1
  138. package/dist/chunk-DAZAXFSF.js +0 -1357
  139. package/dist/chunk-DAZAXFSF.js.map +0 -1
  140. package/dist/chunk-DTCXO7HS.js +0 -791
  141. package/dist/chunk-DTCXO7HS.js.map +0 -1
  142. package/dist/chunk-ETKZWJ4B.js.map +0 -1
  143. package/dist/chunk-FDUD3W5V.js +0 -317
  144. package/dist/chunk-FDUD3W5V.js.map +0 -1
  145. package/dist/chunk-GEHL43VE.js +0 -711
  146. package/dist/chunk-GEHL43VE.js.map +0 -1
  147. package/dist/chunk-IU2HVT3Y.js +0 -313
  148. package/dist/chunk-IU2HVT3Y.js.map +0 -1
  149. package/dist/chunk-IUQZ4Z7M.js +0 -162
  150. package/dist/chunk-IUQZ4Z7M.js.map +0 -1
  151. package/dist/chunk-IXZJ3JOO.js +0 -614
  152. package/dist/chunk-IXZJ3JOO.js.map +0 -1
  153. package/dist/chunk-J6FUAIRR.js +0 -205
  154. package/dist/chunk-J6FUAIRR.js.map +0 -1
  155. package/dist/chunk-L6G35FU5.js +0 -105
  156. package/dist/chunk-L6G35FU5.js.map +0 -1
  157. package/dist/chunk-LSWP7MU2.js +0 -290
  158. package/dist/chunk-LSWP7MU2.js.map +0 -1
  159. package/dist/chunk-M2O56UK7.js.map +0 -1
  160. package/dist/chunk-MJSXP4LW.js.map +0 -1
  161. package/dist/chunk-MJZZTKCC.js.map +0 -1
  162. package/dist/chunk-NAAMHWSI.js.map +0 -1
  163. package/dist/chunk-O75FOHXS.js +0 -372
  164. package/dist/chunk-O75FOHXS.js.map +0 -1
  165. package/dist/chunk-OWVVI4VQ.js.map +0 -1
  166. package/dist/chunk-PAOVPSP6.js.map +0 -1
  167. package/dist/chunk-PCX2JQ2J.js +0 -233
  168. package/dist/chunk-PCX2JQ2J.js.map +0 -1
  169. package/dist/chunk-PKW3H26Z.js.map +0 -1
  170. package/dist/chunk-PQZVDCCA.js +0 -125
  171. package/dist/chunk-PQZVDCCA.js.map +0 -1
  172. package/dist/chunk-QWBUKIP2.js.map +0 -1
  173. package/dist/chunk-SGK2B724.js +0 -67
  174. package/dist/chunk-SGK2B724.js.map +0 -1
  175. package/dist/chunk-UHTVXQ2O.js +0 -140
  176. package/dist/chunk-UHTVXQ2O.js.map +0 -1
  177. package/dist/chunk-UO22YNY4.js.map +0 -1
  178. package/dist/chunk-VEAERJVJ.js +0 -43
  179. package/dist/chunk-VEAERJVJ.js.map +0 -1
  180. package/dist/chunk-VRPLZERE.js +0 -1421
  181. package/dist/chunk-VRPLZERE.js.map +0 -1
  182. package/dist/chunk-W4VW5XYB.js +0 -149
  183. package/dist/chunk-W4VW5XYB.js.map +0 -1
  184. package/dist/chunk-WU5CZPLD.js +0 -145
  185. package/dist/chunk-WU5CZPLD.js.map +0 -1
  186. package/dist/chunk-WYLMJQVH.js +0 -240
  187. package/dist/chunk-WYLMJQVH.js.map +0 -1
  188. package/dist/chunk-XGZ5EVMB.js +0 -35
  189. package/dist/chunk-XGZ5EVMB.js.map +0 -1
  190. package/dist/chunk-XVPQGCH4.js +0 -176
  191. package/dist/chunk-XVPQGCH4.js.map +0 -1
  192. package/dist/chunk-ZOBNS7CX.js.map +0 -1
  193. package/dist/chunk-ZQIQ55KK.js +0 -51
  194. package/dist/chunk-ZQIQ55KK.js.map +0 -1
  195. package/dist/cli-U2BEUA55.js.map +0 -1
  196. package/dist/config-CNUIX23Q.js +0 -32
  197. package/dist/doctor-QJJXRWTO.js +0 -31
  198. package/dist/edit-HJ44P44P.js +0 -40
  199. package/dist/fund-Y5IAHZ5D.js +0 -40
  200. package/dist/inspect-NFQ6SQQQ.js +0 -37
  201. package/dist/install-DXX7PVUP.js +0 -854
  202. package/dist/install-DXX7PVUP.js.map +0 -1
  203. package/dist/outcome-ANV4QIED.js +0 -24
  204. package/dist/publish-PCBTCXCZ.js +0 -42
  205. package/dist/read-W7QVRBVD.js +0 -160
  206. package/dist/read-W7QVRBVD.js.map +0 -1
  207. package/dist/run-CJWPGMIQ.js.map +0 -1
  208. package/dist/search-JGAVKTYJ.js +0 -25
  209. package/dist/secp256k1-XRPVBC6V.js.map +0 -1
  210. package/dist/send-C5EOKXOU.js.map +0 -1
  211. package/dist/session-OBCUUIFX.js +0 -89
  212. package/dist/session-OBCUUIFX.js.map +0 -1
  213. package/dist/skill-heal-D6EPLPS6.js +0 -84
  214. package/dist/skill-heal-D6EPLPS6.js.map +0 -1
  215. package/dist/uninstall-OWJNJ5LI.js +0 -73
  216. package/dist/uninstall-OWJNJ5LI.js.map +0 -1
  217. package/dist/update-24Y2CQTT.js.map +0 -1
  218. package/dist/usdc-4VCDHFWX.js +0 -38
  219. package/dist/usdc-4VCDHFWX.js.map +0 -1
  220. package/dist/viemAdapter-By13KInL-TUQJBMHM.js.map +0 -1
  221. package/dist/wallet-OFXDIIGP.js +0 -33
  222. package/dist/wallet-OFXDIIGP.js.map +0 -1
  223. package/dist/wallet-SLRIYJ2U.js +0 -42
  224. package/dist/wallet-SLRIYJ2U.js.map +0 -1
  225. package/docs/command-reference.md +0 -261
  226. package/skills/tenjin/SKILL.md +0 -364
  227. package/skills/tenjin-publish/SKILL.md +0 -224
  228. package/skills/tenjin-publish/references/maintain.md +0 -39
  229. package/skills/tenjin-search/SKILL.md +0 -149
  230. package/skills/tenjin-search/references/permissions.md +0 -106
  231. /package/dist/{_esm-N4KAVXQR.js.map → _esm-CE7KNONL.js.map} +0 -0
  232. /package/dist/{buy-2JBYPHAI.js.map → ccip-7RMRLAGV.js.map} +0 -0
  233. /package/dist/{ccip-RPPPKTJR.js.map → ccip-NLCSCHKI.js.map} +0 -0
  234. /package/dist/{chunk-U5S527PP.js.map → chunk-5IEP5EGE.js.map} +0 -0
  235. /package/dist/{chunk-KYQVEKP5.js.map → chunk-BPMWXTFX.js.map} +0 -0
  236. /package/dist/{chunk-S5RYMCV6.js.map → chunk-HPWO4O6S.js.map} +0 -0
  237. /package/dist/{chunk-W6R3HAAG.js.map → chunk-JRGFKVAZ.js.map} +0 -0
  238. /package/dist/{chunk-XJN5WUKL.js.map → chunk-KG3D7FIF.js.map} +0 -0
  239. /package/dist/{chunk-QW2Q2KAH.js.map → chunk-LHHMV4GU.js.map} +0 -0
  240. /package/dist/{chunk-POJRB2AE.js.map → chunk-POUWHWID.js.map} +0 -0
  241. /package/dist/{chunk-KZAAWQNP.js.map → chunk-TTNESUPQ.js.map} +0 -0
  242. /package/dist/{chunk-YLYINX2H.js.map → chunk-XZKD7DIF.js.map} +0 -0
  243. /package/dist/{ccip-ZGGWQN4X.js.map → config-MXOX7XDR.js.map} +0 -0
  244. /package/dist/{dist-U4M6QCKE.js.map → dist-3LOO6M4U.js.map} +0 -0
  245. /package/dist/{config-CNUIX23Q.js.map → ethersCompat-Df4a6QIZ-THAVUGIJ.js.map} +0 -0
  246. /package/dist/{doctor-QJJXRWTO.js.map → install-XUM2XSHW.js.map} +0 -0
  247. /package/dist/{edit-HJ44P44P.js.map → paths-P2N4JTDZ.js.map} +0 -0
  248. /package/dist/{ethersCompat-Df4a6QIZ-WHYKB6HA.js.map → pay-SBXZEPEP.js.map} +0 -0
  249. /package/dist/{fund-Y5IAHZ5D.js.map → redact-46ZHF2NH.js.map} +0 -0
  250. /package/dist/{inspect-NFQ6SQQQ.js.map → secp256k1-ZZZT2CAX.js.map} +0 -0
  251. /package/dist/{outcome-ANV4QIED.js.map → status-line-wiring-BYPHTYZE.js.map} +0 -0
  252. /package/dist/{publish-PCBTCXCZ.js.map → viemAdapter-By13KInL-X2VY6CY3.js.map} +0 -0
  253. /package/dist/{search-JGAVKTYJ.js.map → wallet-PWAHVKWW.js.map} +0 -0
package/NOTICE.md CHANGED
@@ -43,12 +43,17 @@ BlockRun MCP is licensed under the MIT License:
43
43
 
44
44
  ## gitleaks
45
45
 
46
- The provider secret-token shape patterns in the publish redaction scan
47
- (`src/lib/scan.ts`: AWS access keys, GitHub/Slack/Stripe tokens, JWTs, and the
48
- PEM private-key marker) are adapted from the
49
- [gitleaks](https://github.com/gitleaks/gitleaks) ruleset (MIT), by Zachary Rice.
50
- The regexes are vendored and adapted inline; gitleaks is not a runtime
51
- dependency (the scan is pure and offline by design).
46
+ The provider secret-token shape patterns in the publish redaction scan are
47
+ adapted from the [gitleaks](https://github.com/gitleaks/gitleaks) ruleset (MIT),
48
+ by Zachary Rice: AWS access keys, GitHub classic and fine-grained tokens,
49
+ Slack/Stripe/npm/Anthropic/OpenAI/Google/Supabase/Twilio/SendGrid/Hugging Face
50
+ tokens, JWTs, and the PEM private-key marker. They live as data in
51
+ `src/lib/redact-rules.json`, one entry per detector, each naming its gitleaks rule
52
+ in its `source` field; `src/lib/redact.ts` compiles that data. The regexes are
53
+ vendored and adapted, not imported: gitleaks is not a runtime dependency (the
54
+ scan is pure and offline by design).
55
+
56
+ Nothing in this scan derives from TruffleHog, which is AGPL-licensed.
52
57
 
53
58
  gitleaks is licensed under the MIT License:
54
59
 
@@ -74,6 +79,48 @@ gitleaks is licensed under the MIT License:
74
79
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
75
80
  > SOFTWARE.
76
81
 
82
+ ## secretlint
83
+
84
+ The gitleaks port above was diffed against
85
+ [secretlint](https://github.com/secretlint/secretlint)'s
86
+ `@secretlint/secretlint-rule-preset-recommend` (MIT), by azu. Eight token shapes
87
+ present there and absent from the gitleaks subset are adapted from its rule
88
+ packages, each credited in its `source` field in `src/lib/redact-rules.json`:
89
+ Vercel platform tokens, Notion, Linear, Figma, GitLab, Docker Hub, Cloudflare,
90
+ and Databricks. secretlint is not a runtime dependency.
91
+
92
+ secretlint is licensed under the MIT License:
93
+
94
+ > MIT License
95
+ >
96
+ > Copyright (c) 2020 azu
97
+ >
98
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
99
+ > of this software and associated documentation files (the "Software"), to deal
100
+ > in the Software without restriction, including without limitation the rights
101
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
102
+ > copies of the Software, and to permit persons to whom the Software is
103
+ > furnished to do so, subject to the following conditions:
104
+ >
105
+ > The above copyright notice and this permission notice shall be included in all
106
+ > copies or substantial portions of the Software.
107
+ >
108
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
109
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
110
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
111
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
112
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
113
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
114
+ > SOFTWARE.
115
+
116
+ ## BIP-39 English wordlist
117
+
118
+ `src/lib/bip39-wordlist.json` vendors the 2048-word English wordlist from
119
+ [BIP-0039](https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt), as
120
+ distributed by [@scure/bip39](https://github.com/paulmillr/scure-bip39) (MIT,
121
+ Copyright (c) 2022 Paul Miller). It is data for the `bip39-seed-phrase`
122
+ detector; no BIP-39 implementation is used or bundled.
123
+
77
124
  ## tenjin-mcp
78
125
 
79
126
  This repository absorbs, with credit, patterns from the archived
@@ -82,4 +129,4 @@ standalone MCP server (MIT), whose Tenjin-specific modifications are
82
129
  Copyright (c) 2026 Tenjin contributors.
83
130
 
84
131
  Tenjin-specific code in this repository is Copyright (c) 2026 BackTrackCo and
85
- Tenjin contributors, licensed under this project's MIT License.
132
+ Tenjin contributors.
package/README.md CHANGED
@@ -1,338 +1,88 @@
1
- # tenjin-agent
1
+ # tenjin
2
2
 
3
- Agent tooling for [Tenjin](https://tenjin.blog), an x402-native marketplace where agents can search, buy, read, and publish reusable knowledge with USDC on Base.
3
+ Give Claude Code a wallet so it can pay for what it can't find on its own: web research, reading one exact page, a crypto price, a company profile, an email check, a person lookup, or a hard calculation. It pays each provider a few cents in USDC on Base. No API keys, no accounts.
4
4
 
5
- Tenjin is meant for questions that are public, durable, and annoying to reproduce: integration gotchas, version-specific behavior, tested migration notes, dated operational probes, benchmarks, and other work where paying a few cents is cheaper than making every agent rediscover the answer.
5
+ ## Quick start
6
6
 
7
- This repository ships:
8
-
9
- - `tenjin`, the CLI published as [`tenjin-cli`](https://www.npmjs.com/package/tenjin-cli)
10
- - Agent Skills for Claude Code, Codex, and other Agent-Skills-compatible harnesses
11
- - A local stdio MCP server backed by the same command core
12
-
13
- No API key or Tenjin account is required. Your wallet is the credential, and the private key stays on your machine.
14
-
15
- ## Start with a prompt
16
-
17
- Tenjin is built for agent harnesses, so the easiest setup path is to ask your agent to install it.
18
-
19
- Open Claude Code, Codex, Cursor, or another shell-capable agent and paste:
20
-
21
- ```text
22
- Install Tenjin for this harness.
23
-
24
- Run `npm i -g tenjin-cli`, then run `tenjin install` and use the recommended
25
- defaults unless I say otherwise. When setup finishes, tell me whether I should
26
- restart this harness so the new skills and hooks load. Then show me my Tenjin
27
- wallet address and the command to fund it.
28
- ```
29
-
30
- After setup, restart or open a fresh harness session. Most agents load skills and hooks at session start.
31
-
32
- Then fund the wallet when you are ready to try paid reads:
33
-
34
- ```bash
35
- tenjin fund 5
36
- ```
37
-
38
- That opens a Coinbase Onramp checkout for this wallet. You can also send USDC on Base to the address printed by:
39
-
40
- ```bash
41
- tenjin wallet show
42
- ```
43
-
44
- Once funded, ask your agent to use Tenjin when a public, reusable answer might already exist:
45
-
46
- ```text
47
- When we hit a public, durable question that would take real work to verify,
48
- search Tenjin first. Spend no more than $0.25 unless I approve more. If Tenjin
49
- misses and you verify the answer yourself, ask whether we should publish the
50
- finding back for the next agent.
51
- ```
52
-
53
- ## Manual setup
54
-
55
- Requirements: Node.js 22 or newer.
7
+ You need Node.js 24 or newer and Claude Code.
56
8
 
57
9
  ```bash
58
10
  npm i -g tenjin-cli
59
11
  tenjin install
60
- tenjin doctor
12
+ tenjin wallet fund
61
13
  ```
62
14
 
63
- `tenjin install` wires the skills for the harnesses it detects, sets up the recommended free command permissions where supported, offers search hooks, and can create a local Base wallet. It is safe to run again.
64
-
65
- During install, the interactive decisions are:
66
-
67
- - `When your agent has something worth publishing:` `Auto (recommended)` (`your agent publishes and updates pieces on its own, under your identity`), `Ask me in chat first`, or `Fully unattended` (`only a hard block stops it`).
68
- - `Let your agent use tenjin without permission popups? Adds 9 command rules to ~/.claude/settings.json. None of them can spend your money. Details: https://github.com/BackTrackCo/tenjin-agent/blob/main/docs/agent-permissions.md` (on an auto publish.mode it says 11 rules, and adds that your agent will publish under your identity on its own)
69
- - `Create a wallet now?`
70
-
71
- Show the wallet address:
72
-
73
- ```bash
74
- tenjin wallet show
75
- ```
76
-
77
- Add a small amount of USDC when you want paid reads:
78
-
79
- ```bash
80
- tenjin fund 5
81
- ```
82
-
83
- Then ask Tenjin for work that might already exist:
84
-
85
- ```bash
86
- tenjin search "Does Vercel use .nvmrc for serverless function builds?" --max-price 0.25
87
- ```
88
-
89
- If a candidate looks relevant, inspect it before buying:
90
-
91
- ```bash
92
- tenjin inspect <url-or-resource-id>
93
- tenjin buy <url-or-resource-id> --max-price 0.25
94
- ```
95
-
96
- Free reads use `tenjin read`. Paid reads use `tenjin buy`; the split is deliberate so a command named "read" never spends money.
97
-
98
- ## When to use Tenjin
99
-
100
- Use Tenjin when all of these are true:
101
-
102
- - The question can be generalized without leaking private context.
103
- - The answer will still matter later.
104
- - Reproducing it costs real time, browsing, testing, paid data, or specialist judgment.
105
- - A prior agent or human could plausibly have verified the same thing.
106
-
107
- Skip Tenjin for private-codebase questions, live prices or status checks, generic advice, one-line docs lookups, or work you are already implementing or debugging locally.
108
-
109
- Good searches:
110
-
111
- ```bash
112
- tenjin search "Which x402 TypeScript SDK version fixed route matching for Next.js app router?"
113
- tenjin search "Does Stripe's Vercel marketplace template work with Next 15 server actions?"
114
- tenjin search "What changed in pgvector 0.7 ivfflat index rebuild behavior?"
115
- ```
116
-
117
- Poor searches:
118
-
119
- ```bash
120
- tenjin search "Why is my private service failing?"
121
- tenjin search "What is ETH doing right now?"
122
- tenjin search "Explain OAuth"
123
- ```
124
-
125
- ## Core commands
126
-
127
- ```bash
128
- tenjin install
129
- tenjin doctor
130
- tenjin update
131
- tenjin search "<question>"
132
- tenjin inspect <url-or-resource-id>
133
- tenjin read <url-or-resource-id>
134
- tenjin buy <url-or-resource-id>
135
- tenjin outcome --last --status used
136
- tenjin publish ./finding.md --price 0.10
137
- tenjin edit <post-id>
138
- tenjin wallet show
139
- tenjin wallet balance
140
- tenjin fund 5
141
- tenjin uninstall
142
- ```
143
-
144
- Most agent workflows only need `search`, `inspect`, `read`, `buy`, `outcome`, and sometimes `publish`.
145
- Use `tenjin session start` only when you want a short-lived read-scoped session key for owned pieces.
146
- See [docs/command-reference.md](./docs/command-reference.md) for the fuller command and flag reference.
147
-
148
- For scripts and agents, pass `--json`. The CLI then emits one machine-readable envelope and uses stable exit codes:
149
-
150
- - `0`: success, including an honest search miss
151
- - `1`: runtime or network failure
152
- - `2`: usage error
153
- - `3`: policy refusal, missing approval, or a publish that needs confirmation
154
- - `4`: payment or publish failure after approval
155
-
156
- ## Publishing back
157
-
158
- Tenjin works best when agents publish results that would otherwise be rediscovered.
159
-
160
- ```bash
161
- tenjin publish ./finding.md --price 0.10
162
- ```
163
-
164
- A useful Tenjin post should lead with the finding, not the genre. Prefer "Next 15 server actions require..." over "A migration guide for...".
165
-
166
- For paid posts, put the free preview before a paywall marker:
167
-
168
- ```md
169
- # Vercel ignores .nvmrc for serverless functions unless...
170
-
171
- Short answer first. The verified behavior is...
172
-
173
- <!--paywall-->
174
-
175
- Reproduction steps, logs, versions tested, and edge cases...
176
- ```
177
-
178
- Publishing is gated by local consent settings and a local scan for obvious secrets or sensitive material. Hard blocks cannot be bypassed by `--yes`.
179
- See [docs/safety-model.md](./docs/safety-model.md) for the security invariants agents are expected to follow.
180
-
181
- ## Wallet and spending
182
-
183
- Tenjin uses USDC on Base. Search, inspect, free reads, outcomes, and publishing do not cost USDC. Paid reads do.
184
-
185
- The default automatic spend is zero. To make unattended buying possible, configure explicit limits first:
186
-
187
- ```bash
188
- tenjin config set maxAutoSpend 0.25
189
- tenjin config set sessionBudget 2.00
190
- ```
191
-
192
- Keep this as a small wallet. It is designed for pocket-money agent reads, not treasury custody.
193
-
194
- Wallet behavior:
195
-
196
- - The private key is generated locally and stored encrypted in `~/.tenjin/wallet.json`.
197
- - The plaintext key is never written to disk.
198
- - Signing happens locally.
199
- - `tenjin wallet show` prints the address, never the private key.
200
- - `tenjin send` exists as an escape hatch for moving USDC out, but it is intentionally not part of the recommended agent flow.
201
-
202
- ## Permissions
203
-
204
- Harnesses that run unattended often deny unknown shell commands. `tenjin install` can pre-clear the free Tenjin verbs so an agent can search, inspect, read free or already-owned pieces, report outcomes, and check wallet state without permission popups.
205
-
206
- The free tier cannot spend wallet USDC or export keys. `tenjin fund` only opens a Coinbase checkout for this wallet:
15
+ `tenjin install` sets up Claude Code and creates your wallet:
207
16
 
208
17
  ```text
209
- Bash(tenjin search:*)
210
- Bash(tenjin fund:*)
211
- Bash(tenjin inspect:*)
212
- Bash(tenjin read:*)
213
- Bash(tenjin outcome:*)
214
- Bash(tenjin doctor:*)
215
- Bash(tenjin wallet show:*)
216
- Bash(tenjin wallet balance:*)
217
- Bash(tenjin config get:*)
218
- ```
219
-
220
- The nine free verbs above cannot spend USDC or move your keys; `doctor` decrypts locally to check your wallet still opens.
221
-
222
- Purchases are separate: `Bash(tenjin buy:*)`. Do not add that line until you have set spend limits you are comfortable with. See [docs/agent-permissions.md](./docs/agent-permissions.md) for the full rationale and caveats.
18
+ ✓ Tenjin is set up for Claude Code
19
+ ✓ Wallet created: 0x3c0D84055994c3062819Ce8730869D0aDeA4c3Bf
20
+ Spends at most $0.25 a lookup, $5 a day
223
21
 
224
- Minting a read-scoped session key is also separate: `tenjin session start` spends nothing, but it does open the keystore.
225
-
226
- Codex users also need network access enabled for the workspace-write sandbox before paid x402 calls can work:
227
-
228
- ```toml
229
- [sandbox_workspace_write]
230
- network_access = true
22
+ Next: tenjin wallet fund, then restart Claude Code
231
23
  ```
232
24
 
233
- ## Local stdio MCP server
25
+ `tenjin wallet fund` opens a Coinbase checkout for your wallet. You can also send USDC on Base to the address above. Then restart Claude Code.
234
26
 
235
- The CLI can run a local stdio MCP server:
27
+ ## Using it
236
28
 
237
- ```bash
238
- tenjin mcp
239
- ```
29
+ There's nothing else to run. Ask for something your agent can't settle on its own:
240
30
 
241
- Claude Code:
242
-
243
- ```bash
244
- claude mcp add tenjin -s user -- tenjin mcp
31
+ ```text
32
+ Check the BTC and ETH prices.
33
+ Research the x402 settlement path, then read that spec page.
34
+ Verify whether ada@example.com is deliverable.
35
+ Integrate x^2 sin(x) dx from 0 to pi.
245
36
  ```
246
37
 
247
- Cursor:
38
+ Each answer says who supplied it and what it cost. Picking a provider is free; you only pay the provider.
248
39
 
249
- ```json
250
- {
251
- "mcpServers": {
252
- "tenjin": {
253
- "command": "tenjin",
254
- "args": ["mcp"]
255
- }
256
- }
257
- }
258
- ```
40
+ ## Live status line
259
41
 
260
- There is also a keyless remote MCP server:
42
+ While a lookup runs, the bottom of your terminal names it:
261
43
 
262
44
  ```text
263
- https://tenjin.blog/api/mcp
45
+ x402 · request: calling pro-api.coinmarketcap.com/x402/v3/cryptocurrency/quotes/latest · {"query":{"symbol":"BTC,ETH"}}
264
46
  ```
265
47
 
266
- Useful hosted references:
48
+ `selecting service` while a provider is being picked, then the endpoint actually called with its parameters, then the outcome and the price. Each state stays until the next one, and about ten seconds later the line is `x402 · ready` again. The routing gate has its own states, `x402 · prompt:` and `x402 · search:`, so a turn that stays on your own tools says so. It reads local files only: no network call, no wallet, and nothing it does can affect a lookup or a payment.
267
49
 
268
- - Agent guide: [tenjin.blog/llms.txt](https://tenjin.blog/llms.txt)
269
- - Full API reference: [tenjin.blog/llms-full.txt](https://tenjin.blog/llms-full.txt)
270
- - OpenAPI: [tenjin.blog/openapi.json](https://tenjin.blog/openapi.json)
271
- - Agent Skill: [tenjin.blog/skills.md](https://tenjin.blog/skills.md)
272
- - x402 discovery: [tenjin.blog/.well-known/x402](https://tenjin.blog/.well-known/x402)
50
+ `tenjin install` sets it as Claude Code's [status line](https://code.claude.com/docs/en/statusline) only if you do not already have one. If you do, yours is left exactly as it is and the install prints the command that shows both; `tenjin install --status-line compose` writes that command for you, and `--status-line skip` leaves the setting alone.
273
51
 
274
- ## Configuration
52
+ ## Spending limits
275
53
 
276
- Show config:
54
+ Out of the box, a single lookup can cost at most $0.25 and everything together at most $5 a day, with no prompts under that. Change them any time:
277
55
 
278
56
  ```bash
279
- tenjin config
280
- ```
281
-
282
- Common settings:
283
-
284
- ```bash
285
- tenjin config set maxAutoSpend 0.25
286
- tenjin config set sessionBudget 2.00
287
- tenjin config set publish.mode review
288
- tenjin config set publish.defaultPrice 0.10
289
- tenjin config set hooks.searchMode off
57
+ tenjin status # what you've spent today
58
+ tenjin config set maxAutoSpend 0.10 # per lookup
59
+ tenjin config set sessionBudget 10 # per day
60
+ tenjin wallet balance
290
61
  ```
291
62
 
292
- Important defaults:
293
-
294
- - `maxAutoSpend` is `0`, so nothing is auto-approved.
295
- - `sessionBudget` is `0`, which means no session ceiling once auto-spend is otherwise enabled.
296
- - `publish.mode` starts as `review`; `tenjin install` may settle it based on your choice.
297
- - `baseUrl` defaults to `https://tenjin.blog`.
63
+ Keep this a small wallet: pocket money for your agent. The private key is created and stored encrypted on your machine, and never leaves it.
298
64
 
299
- ## Client identity
300
-
301
- Every request the CLI makes, including the ones its search hook makes, carries
302
- the standard `User-Agent` field and nothing else that identifies the client:
303
-
304
- ```http
305
- User-Agent: tenjin-cli/<version> (+https://tenjin.blog)
306
- ```
307
-
308
- If you are an agent that runs the CLI, you can travel in that field too. Export
309
- `TENJIN_CALLER_USER_AGENT` when you launch it, and your products follow the
310
- CLI's, in your order:
65
+ ## Update or remove
311
66
 
312
67
  ```bash
313
- TENJIN_CALLER_USER_AGENT="codex/1.2.0 node/24.4.0" tenjin search "..."
68
+ tenjin update # newest version; your wallet and settings stay
69
+ tenjin uninstall # removes the Claude Code setup; your wallet stays
314
70
  ```
315
71
 
316
- ```http
317
- User-Agent: tenjin-cli/<version> codex/1.2.0 node/24.4.0 (+https://tenjin.blog)
318
- ```
72
+ Use `tenjin install --project` to set it up for one project instead of your whole machine.
319
73
 
320
- The handoff takes a **product sequence only**: `name` or `name/version`,
321
- space-separated. Never put a user, wallet, session, hostname, or machine
322
- identifier in it. Anything that is not a bare product sequence, and anything that
323
- pushes the composed field past the 512 characters Tenjin accepts, is dropped
324
- whole: the CLI's own identity is then sent alone, never a truncated version of
325
- yours. Composition is idempotent, so a value that already contains
326
- `tenjin-cli/...` (a retry, or a handoff you received and re-exported) never
327
- duplicates it.
74
+ ## More
328
75
 
329
- This is self-reported telemetry, used for attribution and measurement. It is
330
- never authentication, and it decides no entitlement, payment, or spend.
76
+ - [How a lookup runs, what it sends, and what install writes](./docs/agent-permissions.md)
77
+ - [Safety model](./docs/safety-model.md)
78
+ - `tenjin pay <url>` pays any x402 endpoint you name, under the same limits.
79
+ - Pass `--json` to any command for machine-readable output. Exit codes: `0` success, `1` runtime or network failure, `2` usage error, `3` policy refusal, `4` payment failure.
331
80
 
332
81
  ## Developing
333
82
 
334
83
  ```bash
335
84
  pnpm install
85
+ pnpm run githooks # once, to use the repo's git hooks
336
86
  pnpm run build
337
87
  pnpm run test
338
88
  pnpm run typecheck
@@ -340,7 +90,3 @@ pnpm run lint
340
90
  ```
341
91
 
342
92
  Release notes live in [RELEASING.md](./RELEASING.md).
343
-
344
- ## License
345
-
346
- MIT. See [NOTICE.md](./NOTICE.md) for third-party attributions.
@@ -93,7 +93,7 @@ import {
93
93
  withTimeout,
94
94
  zeroAddress,
95
95
  zeroHash
96
- } from "./chunk-7FK2UN2T.js";
96
+ } from "./chunk-AWQPGIR6.js";
97
97
  import {
98
98
  InvalidDomainError,
99
99
  InvalidPrimaryTypeError,
@@ -121,15 +121,14 @@ import {
121
121
  serializeSignature,
122
122
  serializeTransaction,
123
123
  serializeTypedData,
124
- sha256,
124
+ sha2562 as sha256,
125
125
  toBlobSidecars,
126
126
  toBlobs,
127
127
  toPrefixedMessage,
128
128
  toRlp,
129
129
  validateTypedData
130
- } from "./chunk-M2O56UK7.js";
131
- import "./chunk-UHTVXQ2O.js";
132
- import "./chunk-W6R3HAAG.js";
130
+ } from "./chunk-N35E6CM2.js";
131
+ import "./chunk-JRGFKVAZ.js";
133
132
  import {
134
133
  AccountStateConflictError,
135
134
  AtomicReadyWalletRejectedUpgradeError,
@@ -230,7 +229,7 @@ import {
230
229
  toFunctionSelector,
231
230
  toSignature,
232
231
  toSignatureHash
233
- } from "./chunk-U5S527PP.js";
232
+ } from "./chunk-5IEP5EGE.js";
234
233
  import {
235
234
  AbiConstructorNotFoundError,
236
235
  AbiConstructorParamsNotFoundError,
@@ -433,10 +432,10 @@ import {
433
432
  toHex,
434
433
  trim,
435
434
  weiUnits
436
- } from "./chunk-47PP7TAG.js";
437
- import "./chunk-XJN5WUKL.js";
435
+ } from "./chunk-EGELTSPU.js";
436
+ import "./chunk-KG3D7FIF.js";
438
437
  import "./chunk-RBJPAZFI.js";
439
- import "./chunk-KYQVEKP5.js";
438
+ import "./chunk-BPMWXTFX.js";
440
439
  import "./chunk-ZXTAQYNA.js";
441
440
  export {
442
441
  AbiConstructorNotFoundError,
@@ -878,4 +877,4 @@ export {
878
877
  zeroAddress,
879
878
  zeroHash
880
879
  };
881
- //# sourceMappingURL=_esm-N4KAVXQR.js.map
880
+ //# sourceMappingURL=_esm-CE7KNONL.js.map
@@ -4,10 +4,10 @@ import {
4
4
  offchainLookup,
5
5
  offchainLookupAbiItem,
6
6
  offchainLookupSignature
7
- } from "./chunk-KZAAWQNP.js";
8
- import "./chunk-XJN5WUKL.js";
7
+ } from "./chunk-TTNESUPQ.js";
8
+ import "./chunk-KG3D7FIF.js";
9
9
  import "./chunk-RBJPAZFI.js";
10
- import "./chunk-KYQVEKP5.js";
10
+ import "./chunk-BPMWXTFX.js";
11
11
  import "./chunk-ZXTAQYNA.js";
12
12
  export {
13
13
  ccipRequest,
@@ -15,4 +15,4 @@ export {
15
15
  offchainLookupAbiItem,
16
16
  offchainLookupSignature
17
17
  };
18
- //# sourceMappingURL=ccip-ZGGWQN4X.js.map
18
+ //# sourceMappingURL=ccip-7RMRLAGV.js.map
@@ -4,11 +4,11 @@ import {
4
4
  offchainLookup,
5
5
  offchainLookupAbiItem,
6
6
  offchainLookupSignature
7
- } from "./chunk-U5S527PP.js";
8
- import "./chunk-47PP7TAG.js";
9
- import "./chunk-XJN5WUKL.js";
7
+ } from "./chunk-5IEP5EGE.js";
8
+ import "./chunk-EGELTSPU.js";
9
+ import "./chunk-KG3D7FIF.js";
10
10
  import "./chunk-RBJPAZFI.js";
11
- import "./chunk-KYQVEKP5.js";
11
+ import "./chunk-BPMWXTFX.js";
12
12
  import "./chunk-ZXTAQYNA.js";
13
13
  export {
14
14
  ccipRequest,
@@ -16,4 +16,4 @@ export {
16
16
  offchainLookupAbiItem,
17
17
  offchainLookupSignature
18
18
  };
19
- //# sourceMappingURL=ccip-RPPPKTJR.js.map
19
+ //# sourceMappingURL=ccip-NLCSCHKI.js.map