tenjin-cli 0.1.0-alpha.3 → 0.1.0-alpha.31

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 (284) hide show
  1. package/NOTICE.md +54 -7
  2. package/README.md +100 -266
  3. package/dist/{_esm-FEASBWRP.js → _esm-MEXZI5DL.js} +9 -10
  4. package/dist/alive-J64H46HI.js +31 -0
  5. package/dist/{ccip-NQXCEK2U.js → ccip-7RMRLAGV.js} +4 -4
  6. package/dist/{ccip-XR5NE5QK.js → ccip-NLCSCHKI.js} +5 -5
  7. package/dist/chunk-27EPWVOY.js +108 -0
  8. package/dist/chunk-27EPWVOY.js.map +1 -0
  9. package/dist/chunk-2SNUOHAT.js +75 -0
  10. package/dist/chunk-2SNUOHAT.js.map +1 -0
  11. package/dist/{chunk-Z6MFJV5Z.js → chunk-2XLC3AEX.js} +857 -504
  12. package/dist/chunk-2XLC3AEX.js.map +1 -0
  13. package/dist/chunk-3623BLPV.js +184 -0
  14. package/dist/chunk-3623BLPV.js.map +1 -0
  15. package/dist/chunk-3UCIG4TG.js +65 -0
  16. package/dist/chunk-3UCIG4TG.js.map +1 -0
  17. package/dist/chunk-4ZZO6ULA.js +151 -0
  18. package/dist/chunk-4ZZO6ULA.js.map +1 -0
  19. package/dist/chunk-5C32RLTA.js +115 -0
  20. package/dist/chunk-5C32RLTA.js.map +1 -0
  21. package/dist/{chunk-ZMHYXMO6.js → chunk-5IEP5EGE.js} +3 -3
  22. package/dist/chunk-5K5W4S66.js +105 -0
  23. package/dist/chunk-5K5W4S66.js.map +1 -0
  24. package/dist/chunk-5MARFNSB.js +2018 -0
  25. package/dist/chunk-5MARFNSB.js.map +1 -0
  26. package/dist/{chunk-CYOF7ROH.js → chunk-6E5R45ZO.js} +3 -3
  27. package/dist/chunk-77TCKDEC.js +1987 -0
  28. package/dist/chunk-77TCKDEC.js.map +1 -0
  29. package/dist/chunk-7EKYXMUO.js +7536 -0
  30. package/dist/chunk-7EKYXMUO.js.map +1 -0
  31. package/dist/chunk-7Q5FDF65.js +159 -0
  32. package/dist/chunk-7Q5FDF65.js.map +1 -0
  33. package/dist/chunk-7QKHZQKW.js +1680 -0
  34. package/dist/chunk-7QKHZQKW.js.map +1 -0
  35. package/dist/{chunk-MUBUQVC3.js → chunk-7WEQQJLG.js} +6 -5
  36. package/dist/{chunk-MUBUQVC3.js.map → chunk-7WEQQJLG.js.map} +1 -1
  37. package/dist/chunk-7WU4OPLP.js +244 -0
  38. package/dist/chunk-7WU4OPLP.js.map +1 -0
  39. package/dist/chunk-7ZRL2LBQ.js +192 -0
  40. package/dist/chunk-7ZRL2LBQ.js.map +1 -0
  41. package/dist/chunk-A36LQPHV.js +29 -0
  42. package/dist/chunk-A36LQPHV.js.map +1 -0
  43. package/dist/chunk-AGZ7PJKY.js +326 -0
  44. package/dist/chunk-AGZ7PJKY.js.map +1 -0
  45. package/dist/chunk-AKWGE6JQ.js +49 -0
  46. package/dist/chunk-AKWGE6JQ.js.map +1 -0
  47. package/dist/chunk-B7HUUJOK.js +29 -0
  48. package/dist/chunk-B7HUUJOK.js.map +1 -0
  49. package/dist/{chunk-S3IGX57D.js → chunk-BL3332HQ.js} +290 -7361
  50. package/dist/chunk-BL3332HQ.js.map +1 -0
  51. package/dist/{chunk-5CLSD5YN.js → chunk-BPMWXTFX.js} +2 -2
  52. package/dist/chunk-D65GNPS3.js +12708 -0
  53. package/dist/chunk-D65GNPS3.js.map +1 -0
  54. package/dist/chunk-DOQGNFHM.js +121 -0
  55. package/dist/chunk-DOQGNFHM.js.map +1 -0
  56. package/dist/{chunk-YALGASEU.js → chunk-EGELTSPU.js} +2 -2
  57. package/dist/chunk-FW75G2W4.js +406 -0
  58. package/dist/chunk-FW75G2W4.js.map +1 -0
  59. package/dist/chunk-GA7JETVM.js +150 -0
  60. package/dist/chunk-GA7JETVM.js.map +1 -0
  61. package/dist/chunk-I3EQFHCD.js +175 -0
  62. package/dist/chunk-I3EQFHCD.js.map +1 -0
  63. package/dist/chunk-JKKAIPTU.js +108 -0
  64. package/dist/chunk-JKKAIPTU.js.map +1 -0
  65. package/dist/{chunk-QVX5MWJZ.js → chunk-JRGFKVAZ.js} +2 -2
  66. package/dist/{chunk-NCE5NSN6.js → chunk-K3I7C2MO.js} +142 -12
  67. package/dist/chunk-K3I7C2MO.js.map +1 -0
  68. package/dist/chunk-K72RURN3.js +239 -0
  69. package/dist/chunk-K72RURN3.js.map +1 -0
  70. package/dist/{chunk-HIVZG55D.js → chunk-KG3D7FIF.js} +2 -2
  71. package/dist/chunk-KOGZDMHO.js +21 -0
  72. package/dist/chunk-KOGZDMHO.js.map +1 -0
  73. package/dist/chunk-KXQ4UIP7.js +228 -0
  74. package/dist/chunk-KXQ4UIP7.js.map +1 -0
  75. package/dist/chunk-KXVP2VKA.js +194 -0
  76. package/dist/chunk-KXVP2VKA.js.map +1 -0
  77. package/dist/chunk-LEFIX6RS.js +100 -0
  78. package/dist/chunk-LEFIX6RS.js.map +1 -0
  79. package/dist/chunk-LHHMV4GU.js +27 -0
  80. package/dist/chunk-LHHMV4GU.js.map +1 -0
  81. package/dist/{chunk-YBMMV4Y4.js → chunk-MEFB5KHA.js} +13 -5
  82. package/dist/chunk-MEFB5KHA.js.map +1 -0
  83. package/dist/chunk-MNXS2U45.js +1768 -0
  84. package/dist/chunk-MNXS2U45.js.map +1 -0
  85. package/dist/{chunk-UGX7YPX2.js → chunk-NEFNKLBE.js} +9 -11
  86. package/dist/{chunk-UGX7YPX2.js.map → chunk-NEFNKLBE.js.map} +1 -1
  87. package/dist/chunk-OHRR5OYM.js +63 -0
  88. package/dist/chunk-OHRR5OYM.js.map +1 -0
  89. package/dist/chunk-ORWL5BSN.js +269 -0
  90. package/dist/chunk-ORWL5BSN.js.map +1 -0
  91. package/dist/chunk-P4NH7OUK.js +398 -0
  92. package/dist/chunk-P4NH7OUK.js.map +1 -0
  93. package/dist/{chunk-ZABPQJ3M.js → chunk-POUWHWID.js} +2 -2
  94. package/dist/chunk-QSCPK4F5.js +145 -0
  95. package/dist/chunk-QSCPK4F5.js.map +1 -0
  96. package/dist/chunk-QXP3Z3JN.js +131 -0
  97. package/dist/chunk-QXP3Z3JN.js.map +1 -0
  98. package/dist/{chunk-XJIW7USF.js → chunk-R5LCN54M.js} +118 -9
  99. package/dist/chunk-R5LCN54M.js.map +1 -0
  100. package/dist/chunk-S4SAZ7OD.js +30 -0
  101. package/dist/chunk-S4SAZ7OD.js.map +1 -0
  102. package/dist/chunk-SJLTEINJ.js +117 -0
  103. package/dist/chunk-SJLTEINJ.js.map +1 -0
  104. package/dist/{chunk-RRN3YTK7.js → chunk-TTNESUPQ.js} +3 -3
  105. package/dist/chunk-UKY4CHNC.js +498 -0
  106. package/dist/chunk-UKY4CHNC.js.map +1 -0
  107. package/dist/chunk-UQUOVWBG.js +114 -0
  108. package/dist/chunk-UQUOVWBG.js.map +1 -0
  109. package/dist/chunk-V6BSF6OC.js +260 -0
  110. package/dist/chunk-V6BSF6OC.js.map +1 -0
  111. package/dist/chunk-WJXLQXJY.js +43 -0
  112. package/dist/chunk-WJXLQXJY.js.map +1 -0
  113. package/dist/chunk-WK7F3B2E.js +114 -0
  114. package/dist/chunk-WK7F3B2E.js.map +1 -0
  115. package/dist/chunk-XKESD27X.js +10 -0
  116. package/dist/chunk-XKESD27X.js.map +1 -0
  117. package/dist/chunk-XQJXNMSB.js +23 -0
  118. package/dist/chunk-XQJXNMSB.js.map +1 -0
  119. package/dist/{chunk-HSDCI7OV.js → chunk-XZKD7DIF.js} +3 -3
  120. package/dist/chunk-Y527D4TV.js +56 -0
  121. package/dist/chunk-Y527D4TV.js.map +1 -0
  122. package/dist/chunk-YFPY4ONH.js +127 -0
  123. package/dist/chunk-YFPY4ONH.js.map +1 -0
  124. package/dist/{chunk-OYMYCW7J.js → chunk-YVFXE7RR.js} +606 -97
  125. package/dist/chunk-YVFXE7RR.js.map +1 -0
  126. package/dist/clack-EZ7TDWQU.js +19 -0
  127. package/dist/claude-cli-2YKABJJZ.js +31 -0
  128. package/dist/{cli-SBXI5AMS.js → cli-D5OE3URZ.js} +458 -218
  129. package/dist/cli-D5OE3URZ.js.map +1 -0
  130. package/dist/codex-event-PPNVRRDH.js +16 -0
  131. package/dist/codex-host-2RJOJW2B.js +28 -0
  132. package/dist/codex-install-UUZ6QMBQ.js +221 -0
  133. package/dist/codex-install-UUZ6QMBQ.js.map +1 -0
  134. package/dist/config-ZD4OB2DO.js +51 -0
  135. package/dist/dist-3LOO6M4U.js +2842 -0
  136. package/dist/dist-3LOO6M4U.js.map +1 -0
  137. package/dist/doctor-KBR34Q4B.js +601 -0
  138. package/dist/doctor-KBR34Q4B.js.map +1 -0
  139. package/dist/env-proxy-XL4P73MZ.js +15 -0
  140. package/dist/{ethersCompat-Df4a6QIZ-3YZIAXDK.js → ethersCompat-Df4a6QIZ-THAVUGIJ.js} +5 -5
  141. package/dist/ethersCompat-Df4a6QIZ-THAVUGIJ.js.map +1 -0
  142. package/dist/fund-5ITKQGYF.js +372 -0
  143. package/dist/fund-5ITKQGYF.js.map +1 -0
  144. package/dist/hook-command-4TYCHHRL.js +39 -0
  145. package/dist/hook-command-4TYCHHRL.js.map +1 -0
  146. package/dist/hosts/claude/.claude-plugin/marketplace.json +19 -0
  147. package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +15 -0
  148. package/dist/hosts/claude/tenjin/.mcp.json +12 -0
  149. package/dist/hosts/claude/tenjin/hooks/hooks.json +224 -0
  150. package/dist/hosts/claude/tenjin/hooks/register.tsx +589 -0
  151. package/dist/hosts/claude/tenjin/types/index.d.ts +41 -0
  152. package/dist/hosts/codex/.agents/plugins/marketplace.json +20 -0
  153. package/dist/hosts/codex/tenjin/.codex-plugin/plugin.json +16 -0
  154. package/dist/hosts/codex/tenjin/.mcp.json +12 -0
  155. package/dist/hosts/codex/tenjin/hooks/hooks.json +52 -0
  156. package/dist/hosts-FWZOV26H.js +216 -0
  157. package/dist/hosts-FWZOV26H.js.map +1 -0
  158. package/dist/index.js +21 -2
  159. package/dist/index.js.map +1 -1
  160. package/dist/install-XWGE4Q7L.js +77 -0
  161. package/dist/install-XWGE4Q7L.js.map +1 -0
  162. package/dist/install-identity-K7EJIQFP.js +30 -0
  163. package/dist/install-identity-K7EJIQFP.js.map +1 -0
  164. package/dist/install-wallet-XQ6XFZV4.js +117 -0
  165. package/dist/install-wallet-XQ6XFZV4.js.map +1 -0
  166. package/dist/mcp-3LIJSSJB.js +13553 -0
  167. package/dist/mcp-3LIJSSJB.js.map +1 -0
  168. package/dist/package-ZKQFDWLE.js +37 -0
  169. package/dist/package-ZKQFDWLE.js.map +1 -0
  170. package/dist/paths-POPTXJO6.js +61 -0
  171. package/dist/paths-POPTXJO6.js.map +1 -0
  172. package/dist/pay-WHBERZ3W.js +55 -0
  173. package/dist/pay-WHBERZ3W.js.map +1 -0
  174. package/dist/payments-KVICEKD2.js +110 -0
  175. package/dist/payments-KVICEKD2.js.map +1 -0
  176. package/dist/plugin-registration-5TIA564H.js +54 -0
  177. package/dist/plugin-registration-5TIA564H.js.map +1 -0
  178. package/dist/redact-6W23GGJC.js +15 -0
  179. package/dist/redact-6W23GGJC.js.map +1 -0
  180. package/dist/{secp256k1-N3ZHU7LB.js → secp256k1-ZZZT2CAX.js} +3 -3
  181. package/dist/secp256k1-ZZZT2CAX.js.map +1 -0
  182. package/dist/send-7G7Y7DLN.js +228 -0
  183. package/dist/send-7G7Y7DLN.js.map +1 -0
  184. package/dist/status-OF7RH5HM.js +120 -0
  185. package/dist/status-OF7RH5HM.js.map +1 -0
  186. package/dist/status-line-XOUE6MPL.js +90 -0
  187. package/dist/status-line-XOUE6MPL.js.map +1 -0
  188. package/dist/uninstall-JXUAFNDB.js +158 -0
  189. package/dist/uninstall-JXUAFNDB.js.map +1 -0
  190. package/dist/update-ZKUERSO2.js +44 -0
  191. package/dist/update-ZKUERSO2.js.map +1 -0
  192. package/dist/usdc-OGOGEHV2.js +40 -0
  193. package/dist/usdc-OGOGEHV2.js.map +1 -0
  194. package/dist/{viemAdapter-By13KInL-ZZE6UV4Y.js → viemAdapter-By13KInL-S3DA7DFW.js} +5 -5
  195. package/dist/viemAdapter-By13KInL-S3DA7DFW.js.map +1 -0
  196. package/dist/wallet-2HA6W4R4.js +43 -0
  197. package/dist/wallet-2HA6W4R4.js.map +1 -0
  198. package/dist/wallet-kdf-worker.mjs +980 -0
  199. package/docs/agent-permissions.md +196 -0
  200. package/docs/safety-model.md +59 -0
  201. package/docs/troubleshooting.md +13 -0
  202. package/package.json +28 -19
  203. package/LICENSE +0 -21
  204. package/dist/buy-EE6SEXP6.js +0 -1598
  205. package/dist/buy-EE6SEXP6.js.map +0 -1
  206. package/dist/candidate-ERMSYYQZ.js +0 -127
  207. package/dist/candidate-ERMSYYQZ.js.map +0 -1
  208. package/dist/chunk-3OV7E5G5.js +0 -18
  209. package/dist/chunk-3OV7E5G5.js.map +0 -1
  210. package/dist/chunk-4ONXEEQL.js +0 -152
  211. package/dist/chunk-4ONXEEQL.js.map +0 -1
  212. package/dist/chunk-662MSGZB.js +0 -286
  213. package/dist/chunk-662MSGZB.js.map +0 -1
  214. package/dist/chunk-7KUW4MJD.js +0 -59
  215. package/dist/chunk-7KUW4MJD.js.map +0 -1
  216. package/dist/chunk-AWPAWHNX.js +0 -333
  217. package/dist/chunk-AWPAWHNX.js.map +0 -1
  218. package/dist/chunk-DXTQ3CSI.js +0 -171
  219. package/dist/chunk-DXTQ3CSI.js.map +0 -1
  220. package/dist/chunk-ESPNTPQ2.js +0 -207
  221. package/dist/chunk-ESPNTPQ2.js.map +0 -1
  222. package/dist/chunk-FJPLRISB.js +0 -79
  223. package/dist/chunk-FJPLRISB.js.map +0 -1
  224. package/dist/chunk-GO75V3NZ.js +0 -160
  225. package/dist/chunk-GO75V3NZ.js.map +0 -1
  226. package/dist/chunk-JPHG2JW3.js +0 -96
  227. package/dist/chunk-JPHG2JW3.js.map +0 -1
  228. package/dist/chunk-NCE5NSN6.js.map +0 -1
  229. package/dist/chunk-OYMYCW7J.js.map +0 -1
  230. package/dist/chunk-RY4XKNV3.js +0 -140
  231. package/dist/chunk-RY4XKNV3.js.map +0 -1
  232. package/dist/chunk-S3IGX57D.js.map +0 -1
  233. package/dist/chunk-TLCMMYLY.js +0 -126
  234. package/dist/chunk-TLCMMYLY.js.map +0 -1
  235. package/dist/chunk-UO22YNY4.js +0 -69
  236. package/dist/chunk-UO22YNY4.js.map +0 -1
  237. package/dist/chunk-XHC6FCGZ.js +0 -261
  238. package/dist/chunk-XHC6FCGZ.js.map +0 -1
  239. package/dist/chunk-XJIW7USF.js.map +0 -1
  240. package/dist/chunk-YBMMV4Y4.js.map +0 -1
  241. package/dist/chunk-YN5SHIXQ.js +0 -126
  242. package/dist/chunk-YN5SHIXQ.js.map +0 -1
  243. package/dist/chunk-Z52RA3NC.js +0 -137
  244. package/dist/chunk-Z52RA3NC.js.map +0 -1
  245. package/dist/chunk-Z6MFJV5Z.js.map +0 -1
  246. package/dist/cli-SBXI5AMS.js.map +0 -1
  247. package/dist/config-VELDKLHY.js +0 -21
  248. package/dist/doctor-T3KWNNP2.js +0 -20
  249. package/dist/inspect-LMKOXE4Y.js +0 -96
  250. package/dist/inspect-LMKOXE4Y.js.map +0 -1
  251. package/dist/install-LEX3ENQ6.js +0 -387
  252. package/dist/install-LEX3ENQ6.js.map +0 -1
  253. package/dist/lookup-ZPN2Q67N.js +0 -129
  254. package/dist/lookup-ZPN2Q67N.js.map +0 -1
  255. package/dist/outcome-N7TAK6WR.js +0 -66
  256. package/dist/outcome-N7TAK6WR.js.map +0 -1
  257. package/dist/publish-BKBQQAW4.js +0 -1478
  258. package/dist/publish-BKBQQAW4.js.map +0 -1
  259. package/dist/usdc-JIAJW4SV.js +0 -22
  260. package/dist/wallet-CWEMYVIH.js +0 -179
  261. package/dist/wallet-CWEMYVIH.js.map +0 -1
  262. package/dist/wallet-PA54CRBL.js +0 -30
  263. package/skills/tenjin/SKILL.md +0 -199
  264. package/skills/tenjin-publish/SKILL.md +0 -111
  265. package/skills/tenjin-search/SKILL.md +0 -133
  266. /package/dist/{_esm-FEASBWRP.js.map → _esm-MEXZI5DL.js.map} +0 -0
  267. /package/dist/{ccip-NQXCEK2U.js.map → alive-J64H46HI.js.map} +0 -0
  268. /package/dist/{ccip-XR5NE5QK.js.map → ccip-7RMRLAGV.js.map} +0 -0
  269. /package/dist/{config-VELDKLHY.js.map → ccip-NLCSCHKI.js.map} +0 -0
  270. /package/dist/{chunk-ZMHYXMO6.js.map → chunk-5IEP5EGE.js.map} +0 -0
  271. /package/dist/{chunk-CYOF7ROH.js.map → chunk-6E5R45ZO.js.map} +0 -0
  272. /package/dist/{chunk-5CLSD5YN.js.map → chunk-BPMWXTFX.js.map} +0 -0
  273. /package/dist/{chunk-YALGASEU.js.map → chunk-EGELTSPU.js.map} +0 -0
  274. /package/dist/{chunk-QVX5MWJZ.js.map → chunk-JRGFKVAZ.js.map} +0 -0
  275. /package/dist/{chunk-HIVZG55D.js.map → chunk-KG3D7FIF.js.map} +0 -0
  276. /package/dist/{chunk-ZABPQJ3M.js.map → chunk-POUWHWID.js.map} +0 -0
  277. /package/dist/{chunk-RRN3YTK7.js.map → chunk-TTNESUPQ.js.map} +0 -0
  278. /package/dist/{chunk-HSDCI7OV.js.map → chunk-XZKD7DIF.js.map} +0 -0
  279. /package/dist/{doctor-T3KWNNP2.js.map → clack-EZ7TDWQU.js.map} +0 -0
  280. /package/dist/{ethersCompat-Df4a6QIZ-3YZIAXDK.js.map → claude-cli-2YKABJJZ.js.map} +0 -0
  281. /package/dist/{secp256k1-N3ZHU7LB.js.map → codex-event-PPNVRRDH.js.map} +0 -0
  282. /package/dist/{usdc-JIAJW4SV.js.map → codex-host-2RJOJW2B.js.map} +0 -0
  283. /package/dist/{viemAdapter-By13KInL-ZZE6UV4Y.js.map → config-ZD4OB2DO.js.map} +0 -0
  284. /package/dist/{wallet-PA54CRBL.js.map → env-proxy-XL4P73MZ.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 CLI's secret redaction rules 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,307 +1,141 @@
1
- <div align="center">
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="./assets/logo-dark.svg">
4
+ <img src="./assets/logo-light.svg" alt="Tenjin" width="220">
5
+ </picture>
6
+ </p>
2
7
 
3
- # tenjin-agent
8
+ <h3 align="center">The tool router for coding agents.</h3>
4
9
 
5
- ### Agent tooling for [Tenjin](https://tenjin.blog): discover, read, buy, and publish knowledge with USDC on Base.
10
+ <p align="center">
11
+ <a href="https://www.npmjs.com/package/tenjin-cli"><img src="https://img.shields.io/npm/v/tenjin-cli?color=C85A3B&label=npm" alt="npm version"></a>
12
+ <img src="https://img.shields.io/badge/works%20with-Claude%20Code-1C1A17" alt="Works with Claude Code">
13
+ <img src="https://img.shields.io/badge/payments-x402-8C9A7E" alt="Payments via x402">
14
+ </p>
6
15
 
7
- **No API keys. No accounts. Payment is the identity.**
16
+ <p align="center">
17
+ <a href="#install">Install</a> ·
18
+ <a href="#try-it">Try it</a> ·
19
+ <a href="#what-your-agent-can-do">Tools</a> ·
20
+ <a href="#wallet-and-limits">Wallet and limits</a> ·
21
+ <a href="#request-a-tool">Request a tool</a>
22
+ </p>
8
23
 
9
- [![MCP](https://img.shields.io/badge/MCP-remote-000000?style=flat-square)](https://tenjin.blog/api/mcp)
10
- [![x402](https://img.shields.io/badge/x402-USDC_on_Base-6f5cff?style=flat-square)](https://x402.org)
11
- [![License: MIT](https://img.shields.io/badge/License-MIT-green?style=flat-square)](./LICENSE)
24
+ <p align="center">
25
+ <img src="./assets/demo.gif" alt="Tenjin in Claude Code: research, live crypto prices, company lookup, email verification, and computation" width="720">
26
+ </p>
12
27
 
13
- </div>
28
+ ## Why
14
29
 
15
- Tenjin is an x402-native knowledge marketplace. Agents search work that has
16
- already been produced, read free essays, buy valuable answers with USDC, and
17
- publish their own reusable research. This repo is the home of the `tenjin-cli`
18
- npm package and, soon, the Claude Code plugin and agent skills that wrap it.
30
+ Giving your coding agent good tools is a chore:
19
31
 
20
- > **Status: early preview.** The CLI ships `install`, `doctor`, `config`, and
21
- > `wallet` today. `lookup`, `inspect`, `buy`, and `outcome` are implemented but require the
22
- > marketplace lookup API (Track A2) to be deployed to the base URL you point at;
23
- > against a deploy without it, `doctor` shows a `lookup-contract` warning and those
24
- > commands will not work yet. `publish` writes a piece with an optional answer
25
- > card, gated by a local secrets scan and your `publish.mode` consent. Everything
26
- > under "zero install" below is complete and live now; start there.
32
+ - **A key for every tool.** Sign up, pick a plan, paste an API key. Five tools, five accounts.
33
+ - **MCP servers crowd the context.** Each one loads its tool list into every session, needed or not.
34
+ - **Your agent forgets anyway.** It reaches for plain web search, so you write rules, and it still slips.
35
+ - **Some tools you need once.** A one-off lookup isn't worth the setup.
27
36
 
28
- ## Use Tenjin today, zero install
37
+ With Tenjin, you install once and keep working. The router suggests the right tool when it helps, and your wallet pays per call. No keys, no extra servers, no rules.
29
38
 
30
- | Surface | URL |
31
- | -------------------------------------------- | -------------------------------------------------------------------- |
32
- | Remote MCP server (Streamable HTTP, keyless) | `https://tenjin.blog/api/mcp` |
33
- | Agent guide | [tenjin.blog/llms.txt](https://tenjin.blog/llms.txt) |
34
- | Full API reference | [tenjin.blog/llms-full.txt](https://tenjin.blog/llms-full.txt) |
35
- | OpenAPI 3.1 | [tenjin.blog/openapi.json](https://tenjin.blog/openapi.json) |
36
- | Agent skill | [tenjin.blog/skills.md](https://tenjin.blog/skills.md) |
37
- | x402 discovery | [tenjin.blog/.well-known/x402](https://tenjin.blog/.well-known/x402) |
38
- | Human onboarding | [tenjin.blog/agents](https://tenjin.blog/agents) |
39
+ ## Install
39
40
 
40
- The remote MCP server is keyless and stateless: search, tags, previews, and
41
- free essays cost nothing. Paid tools accept wallet-signed headers produced on
42
- your machine; Tenjin never receives a private key. It is listed in the
43
- [official MCP registry](https://registry.modelcontextprotocol.io) as
44
- `blog.tenjin/tenjin`.
41
+ Paste this into Claude Code:
45
42
 
46
- ### Install the skills: `npx tenjin-cli install`
47
-
48
- ```bash
49
- npx tenjin-cli install
43
+ ```text
44
+ Install Tenjin from tenjin.sh
50
45
  ```
51
46
 
52
- One command auto-detects your harness (Claude Code, Codex, or any
53
- Agent-Skills-compatible setup), copies the three Tenjin skills into place, and
54
- then runs the `doctor` checks as its last step. It is idempotent: re-run any
55
- time, `--dry-run` previews the changes without writing, and
56
- `--harness claude|codex|shared` (repeatable) targets a specific one.
47
+ Your agent asks before it installs or spends anything, then sets everything up. Start a new session, and the router is on.
57
48
 
58
- Where the skills land:
49
+ Or from a terminal:
59
50
 
60
- - **Claude Code** (`~/.claude` present or `claude` on PATH):
61
- `~/.claude/skills/`. The Claude Code plugin marketplace (a later release)
62
- will supersede this path for Claude users.
63
- - **Codex** (`~/.codex` present or `codex` on PATH): `~/.agents/skills/`, the
64
- harness-shared Agent Skills location. The installer also appends a one-line
65
- pointer to your AGENTS.md and prints the `config.toml` rule Codex needs,
66
- because its default `workspace-write` sandbox blocks network and would
67
- otherwise break every paid call:
51
+ ```bash
52
+ npm i -g tenjin-cli
53
+ tenjin install # adds the plugin and creates your wallet
54
+ tenjin wallet fund 5 # optional: add $5 with a card, via Coinbase
55
+ ```
68
56
 
69
- ```toml
70
- [sandbox_workspace_write]
71
- network_access = true
72
- ```
57
+ Needs Claude Code 2.1.287+ and Node.js 22+. Add `--project` to set it up for one project only.
73
58
 
74
- - **Nothing detected**: the installer falls back to `~/.agents/skills/`, so a
75
- harness installed later still finds the skills.
59
+ **Codex (experimental):** run `tenjin install` in Codex or a terminal, and it sets up Codex too. [How it hooks in →](./docs/agent-permissions.md#codex)
76
60
 
77
- The repo ships three skills:
61
+ ## Try it
78
62
 
79
- - **`tenjin`**: the zero-install curriculum, a synced copy of the canonical
80
- [tenjin.blog/skills.md](https://tenjin.blog/skills.md). Teaches the raw
81
- HTTP/MCP surface; works with no CLI and no account. Use this when the CLI is
82
- not installed.
83
- - **`tenjin-search`**: thin adapter over `tenjin lookup/inspect/buy/outcome`
84
- with a deliberately narrow trigger (public, durable, costly-to-reproduce
85
- questions). Requires the CLI below.
86
- - **`tenjin-publish`**: explicit-invocation-only publishing rubric and
87
- `tenjin publish` adapter. Never triggers on its own.
63
+ Work as usual. Ask for something your agent can't do on its own:
88
64
 
89
- A funded wallet is only needed for paid reads and publishing.
65
+ ```text
66
+ > Generate a 10-second voiceover that says "Welcome to Tenjin"
67
+ > Make a whoosh sound effect for a page transition
68
+ > Make a hero image of plum blossoms in ukiyo-e style
69
+ > Make a 5-second video of a paper crane unfolding
70
+ > Summarize the risk factors in Nvidia's latest 10-K
71
+ > What are people on Reddit saying about Bun vs Node lately?
72
+ ```
90
73
 
91
- > Prefer no CLI? `npx skills add BackTrackCo/tenjin-agent` installs the same
92
- > skills into any Agent-Skills-compatible harness without the `tenjin` binary.
74
+ The router names the tool and its price, and your agent calls it.
93
75
 
94
- ### Add the remote MCP server
76
+ ## What your agent can do
95
77
 
96
- **Claude Code**
78
+ | Your agent needs | With | Per call |
79
+ | -------------------------------------- | ------------------------------- | ------------- |
80
+ | Library docs | Context7 | free |
81
+ | Web search and page reads | Exa, Firecrawl | 0.1¢ to 1.5¢ |
82
+ | Math and live crypto prices | Wolfram Alpha, CoinMarketCap | 1¢ to 2¢ |
83
+ | People, companies and emails | Apollo, Hunter, CompanyEnrich | 0.8¢ to 15¢ |
84
+ | X and Reddit | glim | 0.1¢ to 1¢ |
85
+ | Images | GPT Image, Nano Banana, Recraft | 0.1¢ to 14.4¢ |
86
+ | Voiceovers, sound effects, music | ElevenLabs, Google Lyria | 1¢ to 12¢ |
87
+ | Video clips | MiniMax Hailuo, Google Veo | 15.5¢ to 45¢ |
88
+ | Papers and SEC filings | arXiv, PubMed, SEC EDGAR | 0.3¢ to 4¢ |
89
+ | Instagram, TikTok and Google Maps | Scrape Creators, Google Maps | 2¢ |
90
+ | PDFs, OCR, screenshots, hosting, email | Cloudflare and others | 0.2¢ to 50¢ |
97
91
 
98
- ```bash
99
- claude mcp add --transport http tenjin https://tenjin.blog/api/mcp
100
- ```
92
+ We review every tool by hand. [Every tool and its current price →](https://tenjin.sh/tools)
101
93
 
102
- **Cursor** (`.cursor/mcp.json`)
94
+ ## How it works
103
95
 
104
- ```json
105
- {
106
- "mcpServers": {
107
- "tenjin": { "url": "https://tenjin.blog/api/mcp" }
108
- }
109
- }
110
- ```
96
+ 1. The router watches the moments a tool could help: your prompt, each web search or page fetch, each task handed to a subagent, and each question your agent asks you.
97
+ 2. Jev, a decision model from [TypeSafe](https://typesafe.ai), picks one tool from the catalog, or none. Your agent sees one line naming the tool and its price.
98
+ 3. Your agent calls it through the plugin's `request` tool, and your wallet pays the provider. When nothing fits, your agent carries on with its own tools.
111
99
 
112
- **OpenClaw**
100
+ The router sees your prompt and up to six earlier messages, with secrets masked, and never sees tool results. [What the hooks send →](./docs/agent-permissions.md#what-the-hooks-send)
113
101
 
114
- ```bash
115
- openclaw mcp add tenjin --url https://tenjin.blog/api/mcp --transport streamable-http
116
- ```
102
+ ## Wallet and limits
117
103
 
118
- **Codex and other harnesses**: point the agent at
119
- [tenjin.blog/skills.md](https://tenjin.blog/skills.md) (Agent Skills spec) or
120
- [tenjin.blog/llms.txt](https://tenjin.blog/llms.txt); a local stdio MCP entry
121
- point (`tenjin mcp`) over this CLI is on the roadmap.
104
+ `tenjin install` creates a wallet on your machine that holds USDC on Base. Its key never leaves your machine, and Tenjin never holds your funds. Payments run over [x402](https://www.x402.org) ([whitepaper](https://www.x402.org/x402-whitepaper.pdf), [Coinbase docs](https://docs.cdp.coinbase.com/x402/welcome)).
122
105
 
123
- ## The CLI: `tenjin-cli`
106
+ | Limit | Default | Change it |
107
+ | -------- | ------- | ------------------------------------- |
108
+ | Per day | $5 | `tenjin config set sessionBudget 2` |
109
+ | Per call | $0.25 | `tenjin config set maxAutoSpend 0.50` |
124
110
 
125
- A thin, deterministic layer over Tenjin's public HTTP contract. It makes zero
126
- model calls and owns exactly what a hosted server cannot: local wallet custody
127
- and signing, spend policy, local delivery of purchased content, and outcome
128
- reporting.
111
+ - A call over a limit pays nothing until you say yes. The per-call limit can't go below $0.25.
112
+ - Routing costs $0.003 a call, on top of the tool's price. $5 covers about 500 web searches, 130 images or 40 voiceovers.
113
+ - Add funds with `tenjin wallet fund 5`, or send USDC on Base to the address `tenjin wallet address` prints.
129
114
 
130
- ```bash
131
- npm install -g tenjin-cli@next # pre-release channel
132
- tenjin doctor # verify Node floor, API reachability, contract, wallet
133
- ```
115
+ [How the limits and the fee work →](./docs/agent-permissions.md#what-bounds-a-payment)
134
116
 
135
- Shipping today (no backend dependency):
136
-
137
- | Command | Purpose |
138
- | --------------------------------------- | -------------------------------------------------------------------- |
139
- | `tenjin install` | Auto-detect harnesses, wire the skills, then run the doctor checks |
140
- | `tenjin doctor` | Environment, API reachability, contract, and wallet checks |
141
- | `tenjin config [get\|set]` | Spend policy: `maxAutoSpend`, `sessionBudget`, `confirm`, allowlists |
142
- | `tenjin wallet [create\|show\|balance]` | Local Base wallet; the key never leaves the machine |
143
-
144
- Marketplace commands (need the Track A2 lookup API deployed to your `--base-url`):
145
-
146
- | Command | Purpose |
147
- | ---------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
148
- | `tenjin lookup "<question>"` | Ask for payable candidates or an honest MISS; prints the compact JSON verbatim |
149
- | `tenjin inspect <url-or-id>` | Show a candidate's pre-purchase card from the 402 body; never pays |
150
- | `tenjin buy <url-or-id> [--max-price <usd>] [--yes]` | Entitlement re-check (free re-read if owned), then x402 exact payment |
151
- | `tenjin outcome --lookup-id <id> --status <s>` | Report `used` / `partially_used` / `rejected` / `regenerated` / `purchase_declined` |
152
- | `tenjin publish <file.md> [--price <usd>] [--yes]` | Publish a Markdown piece with an optional answer card, gated by a local scan and your consent mode |
153
- | `tenjin publish --candidate <id>` | Publish a parked candidate (its draft.md); clears it on success |
154
-
155
- `buy` re-reads an entitled resource for free before ever paying, re-delivers
156
- already-bought content from the local library without paying again, and refuses to
157
- sign if the price rose since it first saw the 402. Spend policy is enforced in the
158
- wallet provider layer before any payment. The default output carries a heading
159
- outline, never the body: `--print-body` includes it, and `--sections <tokens>`
160
- includes the leading sections within a token budget (a deterministic heading
161
- split, no model calls).
162
-
163
- The lookup question must be **generalized public text**: derive the smallest
164
- public phrasing of your task and never include secrets or private context. By
165
- default the server stores no query text at all; `tenjin config set evalCohort
166
- true` opts into 90-day retention of the question for retrieval evaluation.
167
-
168
- > **Money units.** `--max-price` (and the spend-policy config values) are entered
169
- > in **decimal USD** at the CLI edge (e.g. `--max-price 0.10`), and emitted in
170
- > machine output as both atomic and USD. This is a deliberate deviation from the
171
- > atomic-unit flags in CLI spec 10, per plan 12 decision O1 (humans think in
172
- > dollars; agents read the atomic value in the JSON).
173
-
174
- ### Consent modes and pricing
175
-
176
- `publish.mode` governs ALL publishing uniformly. A piece you asked for and a
177
- reusable answer your agent derived after a lookup both go through it, after a
178
- deterministic local scan (secrets, keys, PII, wallet addresses) that runs in
179
- every mode:
180
-
181
- - **`review`** (the default) asks a one-click yes/no for every publish, even a
182
- clean scan. This is the safe default: nothing leaves your machine unseen.
183
- - **`auto`** publishes a clean scan immediately, including answers your agent
184
- derives; any warning finding stops and asks; a hard block (a live secret or
185
- private key) always refuses.
186
- - **`full-auto`** does not stop for warnings, only for hard blocks. It is honored
187
- from your global config, an env var, a flag, or a gitignored `.tenjin.json`. Only
188
- a committed `.tenjin.json` asking for `full-auto` is downgraded to `auto`, so
189
- cloning a repo can never enable silent auto-publishing.
190
-
191
- `--yes` clears the warning findings and the review confirm; it never clears a hard
192
- block. Set the mode with `tenjin config set publish.mode <mode>`, or per run with
193
- `--mode`. `tenjin install` asks once on an interactive setup and otherwise leaves
194
- the default (review); change it any time with `tenjin config set publish.mode`.
195
-
196
- Pricing: `--price` (or a frontmatter `price:`) wins, otherwise `publish.defaultPrice`
197
- (default $0.10). A card never auto-prices; the `tenjin-publish` skill's rubric is
198
- what actually chooses a price before it calls the command.
199
-
200
- Instead of a file, `publish --candidate <id>` publishes a parked candidate (see
201
- `tenjin candidate`) from its stored `draft.md`, prefilling the card's question from
202
- the candidate. It runs the same scan and consent flow and clears the candidate only
203
- on a successful publish; a file and `--candidate` are mutually exclusive.
204
-
205
- Next: a Claude Code plugin marketplace in this repo, and `tenjin mcp` (local
206
- stdio server over the same core).
207
-
208
- ### Output contract
209
-
210
- Every invocation prints exactly one JSON envelope to stdout
211
- (`{schemaVersion, command, ok, data | error}`); human rendering goes to stderr
212
- only. Exit codes: `0` success (including an honest MISS), `1` runtime/network,
213
- `2` usage, `3` policy refusal (spend cap, allowlist, missing approval), `4`
214
- payment failure after approval.
215
-
216
- ### Safety model
217
-
218
- - Default maximum automatic spend is **zero**. Nothing pays without explicit
219
- approval or an explicitly configured policy.
220
- - Keys are generated locally and stored **encrypted at rest** in
221
- `~/.tenjin/wallet.json` (Keystore v3, scrypt), mode `0600`. The plaintext key
222
- is never written to disk. The wallet address stays readable, so `show`,
223
- `balance`, and `doctor` work without a passphrase; only signing decrypts.
224
- Signing is local and the CLI talks only to the configured base URL.
225
- - The signing passphrase resolves in order: `TENJIN_WALLET_PASSPHRASE`, then the
226
- OS credential store, then an interactive prompt. On `wallet create` with no env
227
- passphrase, a strong random one is generated and saved to the OS store so later
228
- signing is transparent. Where it lands per platform:
229
- - **macOS**: the login keychain, via the OS `security` tool (the same
230
- mechanism the GitHub CLI uses).
231
- - **Windows**: a DPAPI-encrypted file (`passphrase.dpapi`), decryptable only by
232
- the same user on the same machine, via built-in PowerShell. The file holds
233
- ciphertext, not the passphrase.
234
- - **Desktop Linux**: the Secret Service keyring, via `secret-tool` when
235
- libsecret-tools is installed.
236
- - **Headless or CI (any OS)**: no durable OS store, so set
237
- `TENJIN_WALLET_PASSPHRASE`.
238
-
239
- The passphrase reaches these tools over stdin, never on a command line, and the
240
- key never leaves the machine.
241
-
242
- - Fund small: this is a pocket-money wallet by design.
243
- - Purchased content is untrusted data, never instructions.
244
-
245
- ## Development
117
+ ## Commands
246
118
 
247
119
  ```bash
248
- pnpm install
249
- pnpm check # build + test
250
- pnpm lint && pnpm typecheck && pnpm format:check
251
- pnpm pack-smoke # exercises the packed npm artifact
120
+ tenjin status # spent today, and your limits
121
+ tenjin wallet balance # what's left
122
+ tenjin payments # paid lookups from this machine
123
+ tenjin doctor # check that a lookup can run
124
+ tenjin update # newest version; wallet and settings stay
125
+ tenjin config set router.enabled false # pause the router
126
+ tenjin uninstall # remove the plugin; your wallet stays
252
127
  ```
253
128
 
254
- ## Release
129
+ ## Request a tool
255
130
 
256
- Publishing to npm uses **Changesets** + **npm Trusted Publishing (OIDC)**,
257
- driven by the two-job `workflow_dispatch`-only `.github/workflows/release.yml`.
258
- This mirrors the house template in `BackTrackCo/x402r-sdk`. Nothing auto-fires
259
- from a push or a tag: a maintainer clicks Run workflow at each step.
131
+ Tenjin is in alpha, and the catalog grows with what people ask for.
260
132
 
261
- Day to day, add a changeset in the same PR as any shippable change:
133
+ - **[Request a tool →](https://github.com/BackTrackCo/tenjin-agent/issues/new?title=Tool%20request%3A%20&labels=enhancement)**
134
+ - **[Report a bug →](https://github.com/BackTrackCo/tenjin-agent/issues/new?labels=bug)**
262
135
 
263
- ```sh
264
- pnpm changeset # pick the bump type, write a summary; commit the .md
265
- ```
136
+ ## Learn more
266
137
 
267
- To cut a release (two clicks):
268
-
269
- 1. **Dispatch (click 1)**: Actions -> Release -> Run workflow -> `main`. The
270
- `version` job runs `changeset version` (consumes `.changeset/*.md`, bumps
271
- `package.json`, regenerates `CHANGELOG.md`) and opens the
272
- **"chore(release): version packages"** PR. Nothing is published yet.
273
- 2. **Review and merge** that PR (its final state is what ships; edit the
274
- version or changelog directly if needed).
275
- 3. **Dispatch (click 2)**: same path. With no pending changesets, the `publish`
276
- job builds, runs the check suite + `pnpm audit` + the packed-artifact smoke
277
- as a pre-publish gate, then `changeset publish` ships `tenjin-cli` with
278
- provenance and creates the GitHub release. Prereleases use Changesets' pre
279
- mode (`pnpm changeset pre enter alpha`) and publish to that dist-tag; stable
280
- goes to `latest`.
281
-
282
- Auth is npm Trusted Publishing (OIDC): each publish mints a short-lived,
283
- per-run token, so there is **no `NPM_TOKEN`** to store or rotate.
284
-
285
- ### One-time owner setup
286
-
287
- `tenjin-cli` already exists on npm (published `0.1.0-alpha.1`), so no manual
288
- first publish is needed. The owner must, one time:
289
-
290
- 1. **Install the release-bot GitHub App on `BackTrackCo/tenjin-agent`** (the
291
- same `x402r-release-bot` App used by `x402r-sdk`, or an equivalent), then
292
- set repo **variable** `RELEASE_APP_CLIENT_ID` and repo **secret**
293
- `RELEASE_APP_PRIVATE_KEY`. Required because Changesets' version PR must be
294
- opened by an App identity to trigger CI (the default `GITHUB_TOKEN` cannot,
295
- by GitHub's anti-recursion rule). Neither the variable nor the secret is
296
- set on this repo yet, so `release.yml` will fail at the token step until
297
- they exist.
298
- 2. **Add a Trusted Publisher** to `tenjin-cli` on npmjs.com: provider GitHub
299
- Actions, organization `BackTrackCo`, repository `tenjin-agent`, workflow
300
- filename `release.yml`, environment `npm-publish`.
301
- 3. **Create a GitHub Environment named `npm-publish`** (Settings ->
302
- Environments), optionally with required reviewers to gate each publish.
303
-
304
- ## License
305
-
306
- MIT. See [NOTICE.md](./NOTICE.md) for third-party attributions (wallet-safety
307
- patterns adapted from BlockRun MCP via the archived `tenjin-mcp` prototype).
138
+ - [Permissions, hooks, and what install writes](./docs/agent-permissions.md)
139
+ - [Safety model](./docs/safety-model.md)
140
+ - [Troubleshooting](./docs/troubleshooting.md)
141
+ - [Contributing](./CONTRIBUTING.md)
@@ -93,7 +93,7 @@ import {
93
93
  withTimeout,
94
94
  zeroAddress,
95
95
  zeroHash
96
- } from "./chunk-UGX7YPX2.js";
96
+ } from "./chunk-NEFNKLBE.js";
97
97
  import {
98
98
  InvalidDomainError,
99
99
  InvalidPrimaryTypeError,
@@ -121,15 +121,13 @@ 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-NCE5NSN6.js";
131
- import "./chunk-RY4XKNV3.js";
132
- import "./chunk-QVX5MWJZ.js";
130
+ } from "./chunk-K3I7C2MO.js";
133
131
  import {
134
132
  AccountStateConflictError,
135
133
  AtomicReadyWalletRejectedUpgradeError,
@@ -230,7 +228,7 @@ import {
230
228
  toFunctionSelector,
231
229
  toSignature,
232
230
  toSignatureHash
233
- } from "./chunk-ZMHYXMO6.js";
231
+ } from "./chunk-5IEP5EGE.js";
234
232
  import {
235
233
  AbiConstructorNotFoundError,
236
234
  AbiConstructorParamsNotFoundError,
@@ -433,10 +431,11 @@ import {
433
431
  toHex,
434
432
  trim,
435
433
  weiUnits
436
- } from "./chunk-YALGASEU.js";
437
- import "./chunk-HIVZG55D.js";
434
+ } from "./chunk-EGELTSPU.js";
435
+ import "./chunk-JRGFKVAZ.js";
436
+ import "./chunk-KG3D7FIF.js";
438
437
  import "./chunk-RBJPAZFI.js";
439
- import "./chunk-5CLSD5YN.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-FEASBWRP.js.map
880
+ //# sourceMappingURL=_esm-MEXZI5DL.js.map
@@ -0,0 +1,31 @@
1
+ import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
+ import {
3
+ WALLET_READ_MS,
4
+ aliveDir,
5
+ aliveMain,
6
+ markSessionServed,
7
+ readAliveStamp,
8
+ removeAliveState,
9
+ runAliveHook,
10
+ sessionServedByPlugin,
11
+ walletNotice
12
+ } from "./chunk-I3EQFHCD.js";
13
+ import "./chunk-YVFXE7RR.js";
14
+ import "./chunk-XQJXNMSB.js";
15
+ import "./chunk-3UCIG4TG.js";
16
+ import "./chunk-27EPWVOY.js";
17
+ import "./chunk-7WEQQJLG.js";
18
+ import "./chunk-SJLTEINJ.js";
19
+ import "./chunk-ZXTAQYNA.js";
20
+ export {
21
+ WALLET_READ_MS,
22
+ aliveDir,
23
+ aliveMain,
24
+ markSessionServed,
25
+ readAliveStamp,
26
+ removeAliveState,
27
+ runAliveHook,
28
+ sessionServedByPlugin,
29
+ walletNotice
30
+ };
31
+ //# sourceMappingURL=alive-J64H46HI.js.map
@@ -4,10 +4,10 @@ import {
4
4
  offchainLookup,
5
5
  offchainLookupAbiItem,
6
6
  offchainLookupSignature
7
- } from "./chunk-RRN3YTK7.js";
8
- import "./chunk-HIVZG55D.js";
7
+ } from "./chunk-TTNESUPQ.js";
8
+ import "./chunk-KG3D7FIF.js";
9
9
  import "./chunk-RBJPAZFI.js";
10
- import "./chunk-5CLSD5YN.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-NQXCEK2U.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-ZMHYXMO6.js";
8
- import "./chunk-YALGASEU.js";
9
- import "./chunk-HIVZG55D.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-5CLSD5YN.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-XR5NE5QK.js.map
19
+ //# sourceMappingURL=ccip-NLCSCHKI.js.map