tenjin-cli 0.1.0-alpha.15 → 0.1.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.md +54 -7
- package/README.md +43 -310
- package/dist/{_esm-N4KAVXQR.js → _esm-CE7KNONL.js} +9 -10
- package/dist/{ccip-ZGGWQN4X.js → ccip-7RMRLAGV.js} +4 -4
- package/dist/{ccip-RPPPKTJR.js → ccip-NLCSCHKI.js} +5 -5
- package/dist/chunk-2BKS2FVE.js +93 -0
- package/dist/chunk-2BKS2FVE.js.map +1 -0
- package/dist/chunk-2G2WLVHB.js +102 -0
- package/dist/chunk-2G2WLVHB.js.map +1 -0
- package/dist/chunk-2I4QTOLB.js +11 -0
- package/dist/chunk-2I4QTOLB.js.map +1 -0
- package/dist/chunk-2JGT3KDW.js +172 -0
- package/dist/chunk-2JGT3KDW.js.map +1 -0
- package/dist/chunk-2QYORQBF.js +55 -0
- package/dist/chunk-2QYORQBF.js.map +1 -0
- package/dist/chunk-35M3VITA.js +102 -0
- package/dist/chunk-35M3VITA.js.map +1 -0
- package/dist/{chunk-KINZ23CV.js → chunk-3AUDA53C.js} +4740 -23
- package/dist/chunk-3AUDA53C.js.map +1 -0
- package/dist/{chunk-MJZZTKCC.js → chunk-56MOAIP5.js} +5 -10
- package/dist/chunk-56MOAIP5.js.map +1 -0
- package/dist/{chunk-U5S527PP.js → chunk-5IEP5EGE.js} +3 -3
- package/dist/chunk-5QHHRMRA.js +227 -0
- package/dist/chunk-5QHHRMRA.js.map +1 -0
- package/dist/{chunk-JBIKAAT3.js → chunk-5UDD5VSY.js} +8 -8
- package/dist/chunk-5UDD5VSY.js.map +1 -0
- package/dist/chunk-7QKHZQKW.js +1680 -0
- package/dist/chunk-7QKHZQKW.js.map +1 -0
- package/dist/{chunk-ZFJJ3EXC.js → chunk-AR7U7BRG.js} +550 -182
- package/dist/chunk-AR7U7BRG.js.map +1 -0
- package/dist/chunk-AUKDYPPX.js +130 -0
- package/dist/chunk-AUKDYPPX.js.map +1 -0
- package/dist/{chunk-7FK2UN2T.js → chunk-AWQPGIR6.js} +65 -67
- package/dist/{chunk-7FK2UN2T.js.map → chunk-AWQPGIR6.js.map} +1 -1
- package/dist/{chunk-KYQVEKP5.js → chunk-BPMWXTFX.js} +8 -8
- package/dist/{chunk-47PP7TAG.js → chunk-EGELTSPU.js} +1356 -1356
- package/dist/chunk-EGELTSPU.js.map +1 -0
- package/dist/{chunk-S5RYMCV6.js → chunk-HPWO4O6S.js} +3 -3
- package/dist/chunk-J5INH7WB.js +299 -0
- package/dist/chunk-J5INH7WB.js.map +1 -0
- package/dist/chunk-JLEF5WHM.js +132 -0
- package/dist/chunk-JLEF5WHM.js.map +1 -0
- package/dist/{chunk-W6R3HAAG.js → chunk-JRGFKVAZ.js} +2 -2
- package/dist/{chunk-XJN5WUKL.js → chunk-KG3D7FIF.js} +2 -2
- package/dist/chunk-KK4YGYTV.js +808 -0
- package/dist/chunk-KK4YGYTV.js.map +1 -0
- package/dist/{chunk-CPCX67TI.js → chunk-KUBEYXSO.js} +1076 -1038
- package/dist/chunk-KUBEYXSO.js.map +1 -0
- package/dist/{chunk-QW2Q2KAH.js → chunk-LHHMV4GU.js} +2 -2
- package/dist/{chunk-NIKXHWOL.js → chunk-LJ4DMVFI.js} +16 -16
- package/dist/chunk-LJ4DMVFI.js.map +1 -0
- package/dist/{chunk-ZOBNS7CX.js → chunk-MEFB5KHA.js} +4 -18
- package/dist/chunk-MEFB5KHA.js.map +1 -0
- package/dist/{chunk-HPJGOLTN.js → chunk-MRGADYDD.js} +13 -8
- package/dist/chunk-MRGADYDD.js.map +1 -0
- package/dist/{chunk-M2O56UK7.js → chunk-N35E6CM2.js} +293 -163
- package/dist/chunk-N35E6CM2.js.map +1 -0
- package/dist/chunk-O4ZNKFRU.js +366 -0
- package/dist/chunk-O4ZNKFRU.js.map +1 -0
- package/dist/chunk-PDA2BVFY.js +244 -0
- package/dist/chunk-PDA2BVFY.js.map +1 -0
- package/dist/{chunk-POJRB2AE.js → chunk-POUWHWID.js} +2 -2
- package/dist/chunk-QDD2RN7G.js +10238 -0
- package/dist/chunk-QDD2RN7G.js.map +1 -0
- package/dist/chunk-S2NRVRPF.js +171 -0
- package/dist/chunk-S2NRVRPF.js.map +1 -0
- package/dist/chunk-TGLKKLQG.js +11 -0
- package/dist/chunk-TGLKKLQG.js.map +1 -0
- package/dist/chunk-TP4D47BY.js +127 -0
- package/dist/chunk-TP4D47BY.js.map +1 -0
- package/dist/{chunk-KZAAWQNP.js → chunk-TTNESUPQ.js} +3 -3
- package/dist/{chunk-UO22YNY4.js → chunk-U2DZISAH.js} +43 -1
- package/dist/chunk-U2DZISAH.js.map +1 -0
- package/dist/chunk-WGQVJM56.js +165 -0
- package/dist/chunk-WGQVJM56.js.map +1 -0
- package/dist/{chunk-OLWTRUTS.js → chunk-WLMJE3GJ.js} +35 -16
- package/dist/chunk-WLMJE3GJ.js.map +1 -0
- package/dist/chunk-WS4JA6TC.js +137 -0
- package/dist/chunk-WS4JA6TC.js.map +1 -0
- package/dist/chunk-WXC57XGG.js +29 -0
- package/dist/chunk-WXC57XGG.js.map +1 -0
- package/dist/{chunk-YLYINX2H.js → chunk-XZKD7DIF.js} +3 -3
- package/dist/chunk-XZOEUYMX.js +1784 -0
- package/dist/chunk-XZOEUYMX.js.map +1 -0
- package/dist/{cli-KKRKBU5T.js → cli-VHYYYYXM.js} +303 -374
- package/dist/cli-VHYYYYXM.js.map +1 -0
- package/dist/config-5ADBAAXU.js +42 -0
- package/dist/{dist-U4M6QCKE.js → dist-3LOO6M4U.js} +10 -10
- package/dist/doctor-Q35VQW3S.js +436 -0
- package/dist/doctor-Q35VQW3S.js.map +1 -0
- package/dist/{ethersCompat-Df4a6QIZ-WHYKB6HA.js → ethersCompat-Df4a6QIZ-THAVUGIJ.js} +5 -5
- package/dist/{chunk-KAJZHIQ4.js → fund-GDDPL2BB.js} +81 -24
- package/dist/fund-GDDPL2BB.js.map +1 -0
- package/dist/hook-command-PBERPRE3.js +763 -0
- package/dist/hook-command-PBERPRE3.js.map +1 -0
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/install-OKDKGUXM.js +60 -0
- package/dist/install-wallet-SI4LZ73K.js +106 -0
- package/dist/install-wallet-SI4LZ73K.js.map +1 -0
- package/dist/{run-XYTQ5TWQ.js → mcp-XX3WRQEZ.js} +3766 -10677
- package/dist/mcp-XX3WRQEZ.js.map +1 -0
- package/dist/paths-P2N4JTDZ.js +49 -0
- package/dist/pay-3SYKHKWJ.js +39 -0
- package/dist/redact-6W23GGJC.js +15 -0
- package/dist/{secp256k1-XRPVBC6V.js → secp256k1-ZZZT2CAX.js} +3 -3
- package/dist/{send-G746D7PQ.js → send-LQRKTEJT.js} +29 -29
- package/dist/send-LQRKTEJT.js.map +1 -0
- package/dist/{chunk-QZ6ROAJU.js → skill-placement-JMDPSKE6.js} +155 -10
- package/dist/skill-placement-JMDPSKE6.js.map +1 -0
- package/dist/status-FFC6FO72.js +64 -0
- package/dist/status-FFC6FO72.js.map +1 -0
- package/dist/status-line-SAXSU6CR.js +87 -0
- package/dist/status-line-SAXSU6CR.js.map +1 -0
- package/dist/status-line-wiring-L2WYIYBM.js +29 -0
- package/dist/tenjin-daemon.mjs +20421 -0
- package/dist/tenjin-shim.mjs +251 -0
- package/dist/tenjin-vitest-reporter.mjs +49 -0
- package/dist/uninstall-OACH27UV.js +147 -0
- package/dist/uninstall-OACH27UV.js.map +1 -0
- package/dist/{update-R76LHOZW.js → update-4W6EKLGZ.js} +132 -16
- package/dist/update-4W6EKLGZ.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-TUQJBMHM.js → viemAdapter-By13KInL-X2VY6CY3.js} +5 -5
- package/dist/wallet-BMEXRR3P.js +32 -0
- package/dist/wallet-kdf-worker.mjs +980 -0
- package/docs/agent-permissions.md +71 -352
- package/docs/safety-model.md +16 -6
- package/package.json +8 -7
- package/LICENSE +0 -21
- package/dist/buy-VIRNSYGN.js +0 -47
- package/dist/chunk-2MYQN7HM.js +0 -247
- package/dist/chunk-2MYQN7HM.js.map +0 -1
- package/dist/chunk-2RF2GIJQ.js +0 -1188
- package/dist/chunk-2RF2GIJQ.js.map +0 -1
- package/dist/chunk-3GL2Z5QK.js +0 -57
- package/dist/chunk-3GL2Z5QK.js.map +0 -1
- package/dist/chunk-47PP7TAG.js.map +0 -1
- package/dist/chunk-4CQIDQOT.js +0 -167
- package/dist/chunk-4CQIDQOT.js.map +0 -1
- package/dist/chunk-4KG27W2S.js +0 -614
- package/dist/chunk-4KG27W2S.js.map +0 -1
- package/dist/chunk-5QQTYWEU.js +0 -199
- package/dist/chunk-5QQTYWEU.js.map +0 -1
- package/dist/chunk-65DTCCJ7.js +0 -21
- package/dist/chunk-65DTCCJ7.js.map +0 -1
- package/dist/chunk-A5DKHMUN.js +0 -173
- package/dist/chunk-A5DKHMUN.js.map +0 -1
- package/dist/chunk-B63XPWQ4.js +0 -246
- package/dist/chunk-B63XPWQ4.js.map +0 -1
- package/dist/chunk-CAR6FHK6.js +0 -105
- package/dist/chunk-CAR6FHK6.js.map +0 -1
- package/dist/chunk-CPCX67TI.js.map +0 -1
- package/dist/chunk-CQBVCYI2.js +0 -162
- package/dist/chunk-CQBVCYI2.js.map +0 -1
- package/dist/chunk-DBU5CXBV.js +0 -4731
- package/dist/chunk-DBU5CXBV.js.map +0 -1
- package/dist/chunk-DHJD77OW.js +0 -81
- package/dist/chunk-DHJD77OW.js.map +0 -1
- package/dist/chunk-EDZSNPE5.js +0 -35
- package/dist/chunk-EDZSNPE5.js.map +0 -1
- package/dist/chunk-EFWZPUTC.js +0 -65
- package/dist/chunk-EFWZPUTC.js.map +0 -1
- package/dist/chunk-EPFL6CTE.js +0 -448
- package/dist/chunk-EPFL6CTE.js.map +0 -1
- package/dist/chunk-GHLVXVZD.js +0 -142
- package/dist/chunk-GHLVXVZD.js.map +0 -1
- package/dist/chunk-H3SOOJ2I.js +0 -580
- package/dist/chunk-H3SOOJ2I.js.map +0 -1
- package/dist/chunk-HPJGOLTN.js.map +0 -1
- package/dist/chunk-HRGBS2PA.js +0 -203
- package/dist/chunk-HRGBS2PA.js.map +0 -1
- package/dist/chunk-ITUXPJIS.js +0 -314
- package/dist/chunk-ITUXPJIS.js.map +0 -1
- package/dist/chunk-JBIKAAT3.js.map +0 -1
- package/dist/chunk-KAJZHIQ4.js.map +0 -1
- package/dist/chunk-KINZ23CV.js.map +0 -1
- package/dist/chunk-LRYV3SK7.js +0 -235
- package/dist/chunk-LRYV3SK7.js.map +0 -1
- package/dist/chunk-M2O56UK7.js.map +0 -1
- package/dist/chunk-MJZZTKCC.js.map +0 -1
- package/dist/chunk-NIKXHWOL.js.map +0 -1
- package/dist/chunk-OKDRDT74.js +0 -209
- package/dist/chunk-OKDRDT74.js.map +0 -1
- package/dist/chunk-OKYSNAS3.js +0 -2144
- package/dist/chunk-OKYSNAS3.js.map +0 -1
- package/dist/chunk-OLWTRUTS.js.map +0 -1
- package/dist/chunk-QQ6ELLSA.js +0 -143
- package/dist/chunk-QQ6ELLSA.js.map +0 -1
- package/dist/chunk-QZ6ROAJU.js.map +0 -1
- package/dist/chunk-R7RSCBI7.js +0 -794
- package/dist/chunk-R7RSCBI7.js.map +0 -1
- package/dist/chunk-SGK2B724.js +0 -67
- package/dist/chunk-SGK2B724.js.map +0 -1
- package/dist/chunk-U6VPKMGC.js +0 -390
- package/dist/chunk-U6VPKMGC.js.map +0 -1
- package/dist/chunk-UHTVXQ2O.js +0 -140
- package/dist/chunk-UHTVXQ2O.js.map +0 -1
- package/dist/chunk-UO22YNY4.js.map +0 -1
- package/dist/chunk-US456VUI.js +0 -149
- package/dist/chunk-US456VUI.js.map +0 -1
- package/dist/chunk-V44J2MXV.js +0 -400
- package/dist/chunk-V44J2MXV.js.map +0 -1
- package/dist/chunk-VJQKL3YH.js +0 -216
- package/dist/chunk-VJQKL3YH.js.map +0 -1
- package/dist/chunk-VJSQSLBM.js +0 -1442
- package/dist/chunk-VJSQSLBM.js.map +0 -1
- package/dist/chunk-VYOJOX4Z.js +0 -165
- package/dist/chunk-VYOJOX4Z.js.map +0 -1
- package/dist/chunk-WY2K35OL.js +0 -269
- package/dist/chunk-WY2K35OL.js.map +0 -1
- package/dist/chunk-ZFJJ3EXC.js.map +0 -1
- package/dist/chunk-ZOBNS7CX.js.map +0 -1
- package/dist/cli-KKRKBU5T.js.map +0 -1
- package/dist/config-JMRUNYE6.js +0 -37
- package/dist/discover-B5HF6SHM.js +0 -102
- package/dist/discover-B5HF6SHM.js.map +0 -1
- package/dist/doctor-ZBG7X66D.js +0 -32
- package/dist/edit-PZJIILQE.js +0 -40
- package/dist/fund-EUDH5KPA.js +0 -40
- package/dist/inspect-QC6WEQPN.js +0 -37
- package/dist/install-GNK2W3PI.js +0 -972
- package/dist/install-GNK2W3PI.js.map +0 -1
- package/dist/outcome-KSGWZHUS.js +0 -24
- package/dist/pay-BC4UICPA.js +0 -361
- package/dist/pay-BC4UICPA.js.map +0 -1
- package/dist/publish-LXWFDIKF.js +0 -42
- package/dist/read-JMNUQ56P.js +0 -160
- package/dist/read-JMNUQ56P.js.map +0 -1
- package/dist/run-XYTQ5TWQ.js.map +0 -1
- package/dist/search-TSQAB45E.js +0 -25
- package/dist/secp256k1-XRPVBC6V.js.map +0 -1
- package/dist/send-G746D7PQ.js.map +0 -1
- package/dist/session-JBKWMJ24.js +0 -89
- package/dist/session-JBKWMJ24.js.map +0 -1
- package/dist/skill-heal-WKD67SLJ.js +0 -92
- package/dist/skill-heal-WKD67SLJ.js.map +0 -1
- package/dist/skill-placement-RIU4AMC2.js +0 -20
- package/dist/skill-placement-RIU4AMC2.js.map +0 -1
- package/dist/uninstall-5E263VTS.js +0 -73
- package/dist/uninstall-5E263VTS.js.map +0 -1
- package/dist/update-R76LHOZW.js.map +0 -1
- package/dist/usdc-4VCDHFWX.js +0 -38
- package/dist/usdc-4VCDHFWX.js.map +0 -1
- package/dist/viemAdapter-By13KInL-TUQJBMHM.js.map +0 -1
- package/dist/wallet-TQ7D5EQ7.js +0 -41
- package/dist/wallet-TQ7D5EQ7.js.map +0 -1
- package/dist/wallet-ZAVXWLWP.js +0 -32
- package/dist/wallet-ZAVXWLWP.js.map +0 -1
- package/docs/command-reference.md +0 -303
- package/skills/tenjin/SKILL.md +0 -373
- package/skills/tenjin-pay/SKILL.md +0 -76
- package/skills/tenjin-publish/SKILL.md +0 -227
- package/skills/tenjin-publish/references/maintain.md +0 -39
- package/skills/tenjin-search/SKILL.md +0 -154
- package/skills/tenjin-search/references/permissions.md +0 -112
- /package/dist/{_esm-N4KAVXQR.js.map → _esm-CE7KNONL.js.map} +0 -0
- /package/dist/{buy-VIRNSYGN.js.map → ccip-7RMRLAGV.js.map} +0 -0
- /package/dist/{ccip-RPPPKTJR.js.map → ccip-NLCSCHKI.js.map} +0 -0
- /package/dist/{chunk-U5S527PP.js.map → chunk-5IEP5EGE.js.map} +0 -0
- /package/dist/{chunk-KYQVEKP5.js.map → chunk-BPMWXTFX.js.map} +0 -0
- /package/dist/{chunk-S5RYMCV6.js.map → chunk-HPWO4O6S.js.map} +0 -0
- /package/dist/{chunk-W6R3HAAG.js.map → chunk-JRGFKVAZ.js.map} +0 -0
- /package/dist/{chunk-XJN5WUKL.js.map → chunk-KG3D7FIF.js.map} +0 -0
- /package/dist/{chunk-QW2Q2KAH.js.map → chunk-LHHMV4GU.js.map} +0 -0
- /package/dist/{chunk-POJRB2AE.js.map → chunk-POUWHWID.js.map} +0 -0
- /package/dist/{chunk-KZAAWQNP.js.map → chunk-TTNESUPQ.js.map} +0 -0
- /package/dist/{chunk-YLYINX2H.js.map → chunk-XZKD7DIF.js.map} +0 -0
- /package/dist/{ccip-ZGGWQN4X.js.map → config-5ADBAAXU.js.map} +0 -0
- /package/dist/{dist-U4M6QCKE.js.map → dist-3LOO6M4U.js.map} +0 -0
- /package/dist/{config-JMRUNYE6.js.map → ethersCompat-Df4a6QIZ-THAVUGIJ.js.map} +0 -0
- /package/dist/{doctor-ZBG7X66D.js.map → install-OKDKGUXM.js.map} +0 -0
- /package/dist/{edit-PZJIILQE.js.map → paths-P2N4JTDZ.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-WHYKB6HA.js.map → pay-3SYKHKWJ.js.map} +0 -0
- /package/dist/{fund-EUDH5KPA.js.map → redact-6W23GGJC.js.map} +0 -0
- /package/dist/{inspect-QC6WEQPN.js.map → secp256k1-ZZZT2CAX.js.map} +0 -0
- /package/dist/{outcome-KSGWZHUS.js.map → status-line-wiring-L2WYIYBM.js.map} +0 -0
- /package/dist/{publish-LXWFDIKF.js.map → viemAdapter-By13KInL-X2VY6CY3.js.map} +0 -0
- /package/dist/{search-TSQAB45E.js.map → wallet-BMEXRR3P.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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
132
|
+
Tenjin contributors.
|
package/README.md
CHANGED
|
@@ -1,353 +1,90 @@
|
|
|
1
|
-
# tenjin
|
|
1
|
+
# tenjin
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
5
|
+
## Quick start
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- `tenjin`, the CLI published as [`tenjin-cli`](https://www.npmjs.com/package/tenjin-cli)
|
|
10
|
-
- Agent Skills for Claude Code, Codex, Hermes Agent, 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
|
|
61
|
-
```
|
|
62
|
-
|
|
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...
|
|
12
|
+
tenjin wallet fund
|
|
176
13
|
```
|
|
177
14
|
|
|
178
|
-
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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.
|
|
223
|
-
|
|
224
|
-
Minting a read-scoped session key is also separate: `tenjin session start` spends nothing, but it does open the keystore.
|
|
18
|
+
✓ Tenjin is set up for Claude Code
|
|
19
|
+
✓ Wallet created: 0x3c0D84055994c3062819Ce8730869D0aDeA4c3Bf
|
|
20
|
+
Spends at most $0.25 a lookup, $5 a day
|
|
225
21
|
|
|
226
|
-
|
|
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
|
-
|
|
234
|
-
|
|
235
|
-
The CLI can run a 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.
|
|
236
26
|
|
|
237
|
-
|
|
238
|
-
tenjin mcp
|
|
239
|
-
```
|
|
27
|
+
## Using it
|
|
240
28
|
|
|
241
|
-
|
|
29
|
+
There's nothing else to run. Ask for something your agent can't settle on its own:
|
|
242
30
|
|
|
243
|
-
```
|
|
244
|
-
|
|
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
|
-
|
|
248
|
-
|
|
249
|
-
```json
|
|
250
|
-
{
|
|
251
|
-
"mcpServers": {
|
|
252
|
-
"tenjin": {
|
|
253
|
-
"command": "tenjin",
|
|
254
|
-
"args": ["mcp"]
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
```
|
|
38
|
+
Each answer says who supplied it and what it cost. Picking a provider is free; you only pay the provider.
|
|
259
39
|
|
|
260
|
-
|
|
261
|
-
`~/.hermes/config.yaml` for you, alongside a native plugin that checks Tenjin
|
|
262
|
-
before `web_search` and raises unresolved searches at turn end. The plugin runs
|
|
263
|
-
the same scripts as Claude Code's hooks, so `--no-hooks` and
|
|
264
|
-
`hooks.searchMode off` withhold and disarm it the same way. Auto-detection
|
|
265
|
-
installs it inert; naming the harness is what enables it.
|
|
40
|
+
## Live status line
|
|
266
41
|
|
|
267
|
-
|
|
42
|
+
While a lookup runs, the bottom of your terminal names it:
|
|
268
43
|
|
|
269
44
|
```text
|
|
270
|
-
|
|
45
|
+
x402 · request: calling pro-api.coinmarketcap.com/x402/v3/cryptocurrency/quotes/latest · {"query":{"symbol":"BTC,ETH"}}
|
|
271
46
|
```
|
|
272
47
|
|
|
273
|
-
|
|
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.
|
|
274
49
|
|
|
275
|
-
|
|
276
|
-
- Full API reference: [tenjin.blog/llms-full.txt](https://tenjin.blog/llms-full.txt)
|
|
277
|
-
- OpenAPI: [tenjin.blog/openapi.json](https://tenjin.blog/openapi.json)
|
|
278
|
-
- Agent Skill: [tenjin.blog/skills.md](https://tenjin.blog/skills.md)
|
|
279
|
-
- 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.
|
|
280
51
|
|
|
281
|
-
##
|
|
52
|
+
## Spending limits
|
|
282
53
|
|
|
283
|
-
|
|
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:
|
|
284
55
|
|
|
285
56
|
```bash
|
|
286
|
-
tenjin
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
tenjin config set maxAutoSpend 0.25
|
|
293
|
-
tenjin config set sessionBudget 2.00
|
|
294
|
-
tenjin config set publish.mode review
|
|
295
|
-
tenjin config set publish.defaultPrice 0.10
|
|
296
|
-
tenjin config set hooks.searchMode off
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
Important defaults:
|
|
300
|
-
|
|
301
|
-
- `maxAutoSpend` is `0`, so nothing is auto-approved.
|
|
302
|
-
- `sessionBudget` is `0`, which means no session ceiling once auto-spend is otherwise enabled.
|
|
303
|
-
- `publish.mode` starts as `review`; `tenjin install` may settle it based on your choice.
|
|
304
|
-
- `baseUrl` defaults to `https://tenjin.blog`.
|
|
305
|
-
|
|
306
|
-
## Client identity
|
|
307
|
-
|
|
308
|
-
Every request the CLI makes carries the standard `User-Agent` field and nothing
|
|
309
|
-
else that identifies the client:
|
|
310
|
-
|
|
311
|
-
```http
|
|
312
|
-
User-Agent: tenjin-cli/<version> (+https://tenjin.blog)
|
|
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
|
|
313
61
|
```
|
|
314
62
|
|
|
315
|
-
The
|
|
316
|
-
along with is not a question anyone chose to look up, and Tenjin's demand data
|
|
317
|
-
keeps the two apart:
|
|
318
|
-
|
|
319
|
-
```http
|
|
320
|
-
User-Agent: tenjin-websearch-hook/<version> (+https://tenjin.blog)
|
|
321
|
-
```
|
|
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.
|
|
322
64
|
|
|
323
|
-
|
|
324
|
-
`TENJIN_CALLER_USER_AGENT` when you launch it, and your products follow the
|
|
325
|
-
CLI's, in your order:
|
|
65
|
+
## Update or remove
|
|
326
66
|
|
|
327
67
|
```bash
|
|
328
|
-
|
|
68
|
+
tenjin update # newest version; your wallet and settings stay
|
|
69
|
+
tenjin uninstall # removes the Claude Code setup; your wallet stays
|
|
329
70
|
```
|
|
330
71
|
|
|
331
|
-
|
|
332
|
-
User-Agent: tenjin-cli/<version> codex/1.2.0 node/24.4.0 (+https://tenjin.blog)
|
|
333
|
-
```
|
|
72
|
+
Use `tenjin install --project` to set it up for one project instead of your whole machine.
|
|
334
73
|
|
|
335
|
-
|
|
336
|
-
space-separated. Never put a user, wallet, session, hostname, or machine
|
|
337
|
-
identifier in it. Anything that is not a bare product sequence, and anything that
|
|
338
|
-
pushes the composed field past the 512 characters Tenjin accepts, is dropped
|
|
339
|
-
whole: the CLI's own identity is then sent alone, never a truncated version of
|
|
340
|
-
yours. Composition is idempotent, so a value that already contains
|
|
341
|
-
`tenjin-cli/...` (a retry, or a handoff you received and re-exported) never
|
|
342
|
-
duplicates it.
|
|
74
|
+
To keep it installed and stop it, `tenjin config set router.enabled false` stops the router on this machine, and `tenjin config set --project router.enabled false` stops it in this repository.
|
|
343
75
|
|
|
344
|
-
|
|
345
|
-
|
|
76
|
+
## More
|
|
77
|
+
|
|
78
|
+
- [How a lookup runs, what it sends, and what install writes](./docs/agent-permissions.md)
|
|
79
|
+
- [Safety model](./docs/safety-model.md)
|
|
80
|
+
- `tenjin pay <url>` pays any x402 endpoint you name, under the same limits.
|
|
81
|
+
- 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.
|
|
346
82
|
|
|
347
83
|
## Developing
|
|
348
84
|
|
|
349
85
|
```bash
|
|
350
86
|
pnpm install
|
|
87
|
+
pnpm run githooks # once, to use the repo's git hooks
|
|
351
88
|
pnpm run build
|
|
352
89
|
pnpm run test
|
|
353
90
|
pnpm run typecheck
|
|
@@ -355,7 +92,3 @@ pnpm run lint
|
|
|
355
92
|
```
|
|
356
93
|
|
|
357
94
|
Release notes live in [RELEASING.md](./RELEASING.md).
|
|
358
|
-
|
|
359
|
-
## License
|
|
360
|
-
|
|
361
|
-
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-
|
|
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-
|
|
131
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
437
|
-
import "./chunk-
|
|
435
|
+
} from "./chunk-EGELTSPU.js";
|
|
436
|
+
import "./chunk-KG3D7FIF.js";
|
|
438
437
|
import "./chunk-RBJPAZFI.js";
|
|
439
|
-
import "./chunk-
|
|
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-
|
|
880
|
+
//# sourceMappingURL=_esm-CE7KNONL.js.map
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
offchainLookup,
|
|
5
5
|
offchainLookupAbiItem,
|
|
6
6
|
offchainLookupSignature
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TTNESUPQ.js";
|
|
8
|
+
import "./chunk-KG3D7FIF.js";
|
|
9
9
|
import "./chunk-RBJPAZFI.js";
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
18
|
+
//# sourceMappingURL=ccip-7RMRLAGV.js.map
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
offchainLookup,
|
|
5
5
|
offchainLookupAbiItem,
|
|
6
6
|
offchainLookupSignature
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5IEP5EGE.js";
|
|
8
|
+
import "./chunk-EGELTSPU.js";
|
|
9
|
+
import "./chunk-KG3D7FIF.js";
|
|
10
10
|
import "./chunk-RBJPAZFI.js";
|
|
11
|
-
import "./chunk-
|
|
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-
|
|
19
|
+
//# sourceMappingURL=ccip-NLCSCHKI.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/lib/paths.ts
|
|
4
|
+
import { homedir } from "node:os";
|
|
5
|
+
import { join, resolve } from "node:path";
|
|
6
|
+
function dataDir(env = process.env) {
|
|
7
|
+
const override = env.TENJIN_DATA_DIR;
|
|
8
|
+
if (override !== void 0 && override.length > 0) return resolve(override);
|
|
9
|
+
return defaultDataDir();
|
|
10
|
+
}
|
|
11
|
+
function defaultDataDir(home = homedir()) {
|
|
12
|
+
return join(home, ".tenjin");
|
|
13
|
+
}
|
|
14
|
+
function configPath(dir = dataDir()) {
|
|
15
|
+
return join(dir, "config.json");
|
|
16
|
+
}
|
|
17
|
+
function walletPath(dir = dataDir()) {
|
|
18
|
+
return join(dir, "wallet.json");
|
|
19
|
+
}
|
|
20
|
+
function sessionPath(dir = dataDir()) {
|
|
21
|
+
return join(dir, "session.json");
|
|
22
|
+
}
|
|
23
|
+
function spendLedgerPath(dir = dataDir()) {
|
|
24
|
+
return join(dir, "spend.json");
|
|
25
|
+
}
|
|
26
|
+
function updateCheckPath(dir = dataDir()) {
|
|
27
|
+
return join(dir, "update-check.json");
|
|
28
|
+
}
|
|
29
|
+
function hooksDir(dir = dataDir()) {
|
|
30
|
+
return join(dir, "hooks");
|
|
31
|
+
}
|
|
32
|
+
function hookHealthPath(dir = dataDir()) {
|
|
33
|
+
return join(dir, "hook-health.json");
|
|
34
|
+
}
|
|
35
|
+
function passphraseBlobPath(dir = dataDir()) {
|
|
36
|
+
return join(dir, "passphrase.dpapi");
|
|
37
|
+
}
|
|
38
|
+
function passphraseBlobPathFor(account, dir = dataDir()) {
|
|
39
|
+
return join(dir, `passphrase.${account}.dpapi`);
|
|
40
|
+
}
|
|
41
|
+
function archivedWalletPath(account, dir = dataDir()) {
|
|
42
|
+
return join(dir, `wallet.${account}.json.bak`);
|
|
43
|
+
}
|
|
44
|
+
function loopDbPath(dir = dataDir()) {
|
|
45
|
+
return join(dir, "loop.db");
|
|
46
|
+
}
|
|
47
|
+
function daemonTokenPath(dir = dataDir()) {
|
|
48
|
+
return join(dir, "daemon.token");
|
|
49
|
+
}
|
|
50
|
+
function daemonPidPath(dir = dataDir()) {
|
|
51
|
+
return join(dir, "daemon.pid");
|
|
52
|
+
}
|
|
53
|
+
function daemonLogPath(dir = dataDir()) {
|
|
54
|
+
return join(dir, "daemon.log");
|
|
55
|
+
}
|
|
56
|
+
function daemonSpawnPath(dir = dataDir()) {
|
|
57
|
+
return join(dir, "daemon.spawn");
|
|
58
|
+
}
|
|
59
|
+
function daemonBundlePath(dir = dataDir()) {
|
|
60
|
+
return join(hooksDir(dir), "tenjin-daemon.mjs");
|
|
61
|
+
}
|
|
62
|
+
function shimBundlePath(dir = dataDir()) {
|
|
63
|
+
return join(hooksDir(dir), "tenjin-shim.mjs");
|
|
64
|
+
}
|
|
65
|
+
var VITEST_REPORTER_FILE = "tenjin-vitest-reporter.mjs";
|
|
66
|
+
function vitestReporterPath(dir = dataDir()) {
|
|
67
|
+
return join(hooksDir(dir), VITEST_REPORTER_FILE);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
dataDir,
|
|
72
|
+
defaultDataDir,
|
|
73
|
+
configPath,
|
|
74
|
+
walletPath,
|
|
75
|
+
sessionPath,
|
|
76
|
+
spendLedgerPath,
|
|
77
|
+
updateCheckPath,
|
|
78
|
+
hooksDir,
|
|
79
|
+
hookHealthPath,
|
|
80
|
+
passphraseBlobPath,
|
|
81
|
+
passphraseBlobPathFor,
|
|
82
|
+
archivedWalletPath,
|
|
83
|
+
loopDbPath,
|
|
84
|
+
daemonTokenPath,
|
|
85
|
+
daemonPidPath,
|
|
86
|
+
daemonLogPath,
|
|
87
|
+
daemonSpawnPath,
|
|
88
|
+
daemonBundlePath,
|
|
89
|
+
shimBundlePath,
|
|
90
|
+
VITEST_REPORTER_FILE,
|
|
91
|
+
vitestReporterPath
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=chunk-2BKS2FVE.js.map
|