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.
- package/NOTICE.md +54 -7
- package/README.md +100 -266
- package/dist/{_esm-FEASBWRP.js → _esm-MEXZI5DL.js} +9 -10
- package/dist/alive-J64H46HI.js +31 -0
- package/dist/{ccip-NQXCEK2U.js → ccip-7RMRLAGV.js} +4 -4
- package/dist/{ccip-XR5NE5QK.js → ccip-NLCSCHKI.js} +5 -5
- package/dist/chunk-27EPWVOY.js +108 -0
- package/dist/chunk-27EPWVOY.js.map +1 -0
- package/dist/chunk-2SNUOHAT.js +75 -0
- package/dist/chunk-2SNUOHAT.js.map +1 -0
- package/dist/{chunk-Z6MFJV5Z.js → chunk-2XLC3AEX.js} +857 -504
- package/dist/chunk-2XLC3AEX.js.map +1 -0
- package/dist/chunk-3623BLPV.js +184 -0
- package/dist/chunk-3623BLPV.js.map +1 -0
- package/dist/chunk-3UCIG4TG.js +65 -0
- package/dist/chunk-3UCIG4TG.js.map +1 -0
- package/dist/chunk-4ZZO6ULA.js +151 -0
- package/dist/chunk-4ZZO6ULA.js.map +1 -0
- package/dist/chunk-5C32RLTA.js +115 -0
- package/dist/chunk-5C32RLTA.js.map +1 -0
- package/dist/{chunk-ZMHYXMO6.js → chunk-5IEP5EGE.js} +3 -3
- package/dist/chunk-5K5W4S66.js +105 -0
- package/dist/chunk-5K5W4S66.js.map +1 -0
- package/dist/chunk-5MARFNSB.js +2018 -0
- package/dist/chunk-5MARFNSB.js.map +1 -0
- package/dist/{chunk-CYOF7ROH.js → chunk-6E5R45ZO.js} +3 -3
- package/dist/chunk-77TCKDEC.js +1987 -0
- package/dist/chunk-77TCKDEC.js.map +1 -0
- package/dist/chunk-7EKYXMUO.js +7536 -0
- package/dist/chunk-7EKYXMUO.js.map +1 -0
- package/dist/chunk-7Q5FDF65.js +159 -0
- package/dist/chunk-7Q5FDF65.js.map +1 -0
- package/dist/chunk-7QKHZQKW.js +1680 -0
- package/dist/chunk-7QKHZQKW.js.map +1 -0
- package/dist/{chunk-MUBUQVC3.js → chunk-7WEQQJLG.js} +6 -5
- package/dist/{chunk-MUBUQVC3.js.map → chunk-7WEQQJLG.js.map} +1 -1
- package/dist/chunk-7WU4OPLP.js +244 -0
- package/dist/chunk-7WU4OPLP.js.map +1 -0
- package/dist/chunk-7ZRL2LBQ.js +192 -0
- package/dist/chunk-7ZRL2LBQ.js.map +1 -0
- package/dist/chunk-A36LQPHV.js +29 -0
- package/dist/chunk-A36LQPHV.js.map +1 -0
- package/dist/chunk-AGZ7PJKY.js +326 -0
- package/dist/chunk-AGZ7PJKY.js.map +1 -0
- package/dist/chunk-AKWGE6JQ.js +49 -0
- package/dist/chunk-AKWGE6JQ.js.map +1 -0
- package/dist/chunk-B7HUUJOK.js +29 -0
- package/dist/chunk-B7HUUJOK.js.map +1 -0
- package/dist/{chunk-S3IGX57D.js → chunk-BL3332HQ.js} +290 -7361
- package/dist/chunk-BL3332HQ.js.map +1 -0
- package/dist/{chunk-5CLSD5YN.js → chunk-BPMWXTFX.js} +2 -2
- package/dist/chunk-D65GNPS3.js +12708 -0
- package/dist/chunk-D65GNPS3.js.map +1 -0
- package/dist/chunk-DOQGNFHM.js +121 -0
- package/dist/chunk-DOQGNFHM.js.map +1 -0
- package/dist/{chunk-YALGASEU.js → chunk-EGELTSPU.js} +2 -2
- package/dist/chunk-FW75G2W4.js +406 -0
- package/dist/chunk-FW75G2W4.js.map +1 -0
- package/dist/chunk-GA7JETVM.js +150 -0
- package/dist/chunk-GA7JETVM.js.map +1 -0
- package/dist/chunk-I3EQFHCD.js +175 -0
- package/dist/chunk-I3EQFHCD.js.map +1 -0
- package/dist/chunk-JKKAIPTU.js +108 -0
- package/dist/chunk-JKKAIPTU.js.map +1 -0
- package/dist/{chunk-QVX5MWJZ.js → chunk-JRGFKVAZ.js} +2 -2
- package/dist/{chunk-NCE5NSN6.js → chunk-K3I7C2MO.js} +142 -12
- package/dist/chunk-K3I7C2MO.js.map +1 -0
- package/dist/chunk-K72RURN3.js +239 -0
- package/dist/chunk-K72RURN3.js.map +1 -0
- package/dist/{chunk-HIVZG55D.js → chunk-KG3D7FIF.js} +2 -2
- package/dist/chunk-KOGZDMHO.js +21 -0
- package/dist/chunk-KOGZDMHO.js.map +1 -0
- package/dist/chunk-KXQ4UIP7.js +228 -0
- package/dist/chunk-KXQ4UIP7.js.map +1 -0
- package/dist/chunk-KXVP2VKA.js +194 -0
- package/dist/chunk-KXVP2VKA.js.map +1 -0
- package/dist/chunk-LEFIX6RS.js +100 -0
- package/dist/chunk-LEFIX6RS.js.map +1 -0
- package/dist/chunk-LHHMV4GU.js +27 -0
- package/dist/chunk-LHHMV4GU.js.map +1 -0
- package/dist/{chunk-YBMMV4Y4.js → chunk-MEFB5KHA.js} +13 -5
- package/dist/chunk-MEFB5KHA.js.map +1 -0
- package/dist/chunk-MNXS2U45.js +1768 -0
- package/dist/chunk-MNXS2U45.js.map +1 -0
- package/dist/{chunk-UGX7YPX2.js → chunk-NEFNKLBE.js} +9 -11
- package/dist/{chunk-UGX7YPX2.js.map → chunk-NEFNKLBE.js.map} +1 -1
- package/dist/chunk-OHRR5OYM.js +63 -0
- package/dist/chunk-OHRR5OYM.js.map +1 -0
- package/dist/chunk-ORWL5BSN.js +269 -0
- package/dist/chunk-ORWL5BSN.js.map +1 -0
- package/dist/chunk-P4NH7OUK.js +398 -0
- package/dist/chunk-P4NH7OUK.js.map +1 -0
- package/dist/{chunk-ZABPQJ3M.js → chunk-POUWHWID.js} +2 -2
- package/dist/chunk-QSCPK4F5.js +145 -0
- package/dist/chunk-QSCPK4F5.js.map +1 -0
- package/dist/chunk-QXP3Z3JN.js +131 -0
- package/dist/chunk-QXP3Z3JN.js.map +1 -0
- package/dist/{chunk-XJIW7USF.js → chunk-R5LCN54M.js} +118 -9
- package/dist/chunk-R5LCN54M.js.map +1 -0
- package/dist/chunk-S4SAZ7OD.js +30 -0
- package/dist/chunk-S4SAZ7OD.js.map +1 -0
- package/dist/chunk-SJLTEINJ.js +117 -0
- package/dist/chunk-SJLTEINJ.js.map +1 -0
- package/dist/{chunk-RRN3YTK7.js → chunk-TTNESUPQ.js} +3 -3
- package/dist/chunk-UKY4CHNC.js +498 -0
- package/dist/chunk-UKY4CHNC.js.map +1 -0
- package/dist/chunk-UQUOVWBG.js +114 -0
- package/dist/chunk-UQUOVWBG.js.map +1 -0
- package/dist/chunk-V6BSF6OC.js +260 -0
- package/dist/chunk-V6BSF6OC.js.map +1 -0
- package/dist/chunk-WJXLQXJY.js +43 -0
- package/dist/chunk-WJXLQXJY.js.map +1 -0
- package/dist/chunk-WK7F3B2E.js +114 -0
- package/dist/chunk-WK7F3B2E.js.map +1 -0
- package/dist/chunk-XKESD27X.js +10 -0
- package/dist/chunk-XKESD27X.js.map +1 -0
- package/dist/chunk-XQJXNMSB.js +23 -0
- package/dist/chunk-XQJXNMSB.js.map +1 -0
- package/dist/{chunk-HSDCI7OV.js → chunk-XZKD7DIF.js} +3 -3
- package/dist/chunk-Y527D4TV.js +56 -0
- package/dist/chunk-Y527D4TV.js.map +1 -0
- package/dist/chunk-YFPY4ONH.js +127 -0
- package/dist/chunk-YFPY4ONH.js.map +1 -0
- package/dist/{chunk-OYMYCW7J.js → chunk-YVFXE7RR.js} +606 -97
- package/dist/chunk-YVFXE7RR.js.map +1 -0
- package/dist/clack-EZ7TDWQU.js +19 -0
- package/dist/claude-cli-2YKABJJZ.js +31 -0
- package/dist/{cli-SBXI5AMS.js → cli-D5OE3URZ.js} +458 -218
- package/dist/cli-D5OE3URZ.js.map +1 -0
- package/dist/codex-event-PPNVRRDH.js +16 -0
- package/dist/codex-host-2RJOJW2B.js +28 -0
- package/dist/codex-install-UUZ6QMBQ.js +221 -0
- package/dist/codex-install-UUZ6QMBQ.js.map +1 -0
- package/dist/config-ZD4OB2DO.js +51 -0
- package/dist/dist-3LOO6M4U.js +2842 -0
- package/dist/dist-3LOO6M4U.js.map +1 -0
- package/dist/doctor-KBR34Q4B.js +601 -0
- package/dist/doctor-KBR34Q4B.js.map +1 -0
- package/dist/env-proxy-XL4P73MZ.js +15 -0
- package/dist/{ethersCompat-Df4a6QIZ-3YZIAXDK.js → ethersCompat-Df4a6QIZ-THAVUGIJ.js} +5 -5
- package/dist/ethersCompat-Df4a6QIZ-THAVUGIJ.js.map +1 -0
- package/dist/fund-5ITKQGYF.js +372 -0
- package/dist/fund-5ITKQGYF.js.map +1 -0
- package/dist/hook-command-4TYCHHRL.js +39 -0
- package/dist/hook-command-4TYCHHRL.js.map +1 -0
- package/dist/hosts/claude/.claude-plugin/marketplace.json +19 -0
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +15 -0
- package/dist/hosts/claude/tenjin/.mcp.json +12 -0
- package/dist/hosts/claude/tenjin/hooks/hooks.json +224 -0
- package/dist/hosts/claude/tenjin/hooks/register.tsx +589 -0
- package/dist/hosts/claude/tenjin/types/index.d.ts +41 -0
- package/dist/hosts/codex/.agents/plugins/marketplace.json +20 -0
- package/dist/hosts/codex/tenjin/.codex-plugin/plugin.json +16 -0
- package/dist/hosts/codex/tenjin/.mcp.json +12 -0
- package/dist/hosts/codex/tenjin/hooks/hooks.json +52 -0
- package/dist/hosts-FWZOV26H.js +216 -0
- package/dist/hosts-FWZOV26H.js.map +1 -0
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/install-XWGE4Q7L.js +77 -0
- package/dist/install-XWGE4Q7L.js.map +1 -0
- package/dist/install-identity-K7EJIQFP.js +30 -0
- package/dist/install-identity-K7EJIQFP.js.map +1 -0
- package/dist/install-wallet-XQ6XFZV4.js +117 -0
- package/dist/install-wallet-XQ6XFZV4.js.map +1 -0
- package/dist/mcp-3LIJSSJB.js +13553 -0
- package/dist/mcp-3LIJSSJB.js.map +1 -0
- package/dist/package-ZKQFDWLE.js +37 -0
- package/dist/package-ZKQFDWLE.js.map +1 -0
- package/dist/paths-POPTXJO6.js +61 -0
- package/dist/paths-POPTXJO6.js.map +1 -0
- package/dist/pay-WHBERZ3W.js +55 -0
- package/dist/pay-WHBERZ3W.js.map +1 -0
- package/dist/payments-KVICEKD2.js +110 -0
- package/dist/payments-KVICEKD2.js.map +1 -0
- package/dist/plugin-registration-5TIA564H.js +54 -0
- package/dist/plugin-registration-5TIA564H.js.map +1 -0
- package/dist/redact-6W23GGJC.js +15 -0
- package/dist/redact-6W23GGJC.js.map +1 -0
- package/dist/{secp256k1-N3ZHU7LB.js → secp256k1-ZZZT2CAX.js} +3 -3
- package/dist/secp256k1-ZZZT2CAX.js.map +1 -0
- package/dist/send-7G7Y7DLN.js +228 -0
- package/dist/send-7G7Y7DLN.js.map +1 -0
- package/dist/status-OF7RH5HM.js +120 -0
- package/dist/status-OF7RH5HM.js.map +1 -0
- package/dist/status-line-XOUE6MPL.js +90 -0
- package/dist/status-line-XOUE6MPL.js.map +1 -0
- package/dist/uninstall-JXUAFNDB.js +158 -0
- package/dist/uninstall-JXUAFNDB.js.map +1 -0
- package/dist/update-ZKUERSO2.js +44 -0
- package/dist/update-ZKUERSO2.js.map +1 -0
- package/dist/usdc-OGOGEHV2.js +40 -0
- package/dist/usdc-OGOGEHV2.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-ZZE6UV4Y.js → viemAdapter-By13KInL-S3DA7DFW.js} +5 -5
- package/dist/viemAdapter-By13KInL-S3DA7DFW.js.map +1 -0
- package/dist/wallet-2HA6W4R4.js +43 -0
- package/dist/wallet-2HA6W4R4.js.map +1 -0
- package/dist/wallet-kdf-worker.mjs +980 -0
- package/docs/agent-permissions.md +196 -0
- package/docs/safety-model.md +59 -0
- package/docs/troubleshooting.md +13 -0
- package/package.json +28 -19
- package/LICENSE +0 -21
- package/dist/buy-EE6SEXP6.js +0 -1598
- package/dist/buy-EE6SEXP6.js.map +0 -1
- package/dist/candidate-ERMSYYQZ.js +0 -127
- package/dist/candidate-ERMSYYQZ.js.map +0 -1
- package/dist/chunk-3OV7E5G5.js +0 -18
- package/dist/chunk-3OV7E5G5.js.map +0 -1
- package/dist/chunk-4ONXEEQL.js +0 -152
- package/dist/chunk-4ONXEEQL.js.map +0 -1
- package/dist/chunk-662MSGZB.js +0 -286
- package/dist/chunk-662MSGZB.js.map +0 -1
- package/dist/chunk-7KUW4MJD.js +0 -59
- package/dist/chunk-7KUW4MJD.js.map +0 -1
- package/dist/chunk-AWPAWHNX.js +0 -333
- package/dist/chunk-AWPAWHNX.js.map +0 -1
- package/dist/chunk-DXTQ3CSI.js +0 -171
- package/dist/chunk-DXTQ3CSI.js.map +0 -1
- package/dist/chunk-ESPNTPQ2.js +0 -207
- package/dist/chunk-ESPNTPQ2.js.map +0 -1
- package/dist/chunk-FJPLRISB.js +0 -79
- package/dist/chunk-FJPLRISB.js.map +0 -1
- package/dist/chunk-GO75V3NZ.js +0 -160
- package/dist/chunk-GO75V3NZ.js.map +0 -1
- package/dist/chunk-JPHG2JW3.js +0 -96
- package/dist/chunk-JPHG2JW3.js.map +0 -1
- package/dist/chunk-NCE5NSN6.js.map +0 -1
- package/dist/chunk-OYMYCW7J.js.map +0 -1
- package/dist/chunk-RY4XKNV3.js +0 -140
- package/dist/chunk-RY4XKNV3.js.map +0 -1
- package/dist/chunk-S3IGX57D.js.map +0 -1
- package/dist/chunk-TLCMMYLY.js +0 -126
- package/dist/chunk-TLCMMYLY.js.map +0 -1
- package/dist/chunk-UO22YNY4.js +0 -69
- package/dist/chunk-UO22YNY4.js.map +0 -1
- package/dist/chunk-XHC6FCGZ.js +0 -261
- package/dist/chunk-XHC6FCGZ.js.map +0 -1
- package/dist/chunk-XJIW7USF.js.map +0 -1
- package/dist/chunk-YBMMV4Y4.js.map +0 -1
- package/dist/chunk-YN5SHIXQ.js +0 -126
- package/dist/chunk-YN5SHIXQ.js.map +0 -1
- package/dist/chunk-Z52RA3NC.js +0 -137
- package/dist/chunk-Z52RA3NC.js.map +0 -1
- package/dist/chunk-Z6MFJV5Z.js.map +0 -1
- package/dist/cli-SBXI5AMS.js.map +0 -1
- package/dist/config-VELDKLHY.js +0 -21
- package/dist/doctor-T3KWNNP2.js +0 -20
- package/dist/inspect-LMKOXE4Y.js +0 -96
- package/dist/inspect-LMKOXE4Y.js.map +0 -1
- package/dist/install-LEX3ENQ6.js +0 -387
- package/dist/install-LEX3ENQ6.js.map +0 -1
- package/dist/lookup-ZPN2Q67N.js +0 -129
- package/dist/lookup-ZPN2Q67N.js.map +0 -1
- package/dist/outcome-N7TAK6WR.js +0 -66
- package/dist/outcome-N7TAK6WR.js.map +0 -1
- package/dist/publish-BKBQQAW4.js +0 -1478
- package/dist/publish-BKBQQAW4.js.map +0 -1
- package/dist/usdc-JIAJW4SV.js +0 -22
- package/dist/wallet-CWEMYVIH.js +0 -179
- package/dist/wallet-CWEMYVIH.js.map +0 -1
- package/dist/wallet-PA54CRBL.js +0 -30
- package/skills/tenjin/SKILL.md +0 -199
- package/skills/tenjin-publish/SKILL.md +0 -111
- package/skills/tenjin-search/SKILL.md +0 -133
- /package/dist/{_esm-FEASBWRP.js.map → _esm-MEXZI5DL.js.map} +0 -0
- /package/dist/{ccip-NQXCEK2U.js.map → alive-J64H46HI.js.map} +0 -0
- /package/dist/{ccip-XR5NE5QK.js.map → ccip-7RMRLAGV.js.map} +0 -0
- /package/dist/{config-VELDKLHY.js.map → ccip-NLCSCHKI.js.map} +0 -0
- /package/dist/{chunk-ZMHYXMO6.js.map → chunk-5IEP5EGE.js.map} +0 -0
- /package/dist/{chunk-CYOF7ROH.js.map → chunk-6E5R45ZO.js.map} +0 -0
- /package/dist/{chunk-5CLSD5YN.js.map → chunk-BPMWXTFX.js.map} +0 -0
- /package/dist/{chunk-YALGASEU.js.map → chunk-EGELTSPU.js.map} +0 -0
- /package/dist/{chunk-QVX5MWJZ.js.map → chunk-JRGFKVAZ.js.map} +0 -0
- /package/dist/{chunk-HIVZG55D.js.map → chunk-KG3D7FIF.js.map} +0 -0
- /package/dist/{chunk-ZABPQJ3M.js.map → chunk-POUWHWID.js.map} +0 -0
- /package/dist/{chunk-RRN3YTK7.js.map → chunk-TTNESUPQ.js.map} +0 -0
- /package/dist/{chunk-HSDCI7OV.js.map → chunk-XZKD7DIF.js.map} +0 -0
- /package/dist/{doctor-T3KWNNP2.js.map → clack-EZ7TDWQU.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-3YZIAXDK.js.map → claude-cli-2YKABJJZ.js.map} +0 -0
- /package/dist/{secp256k1-N3ZHU7LB.js.map → codex-event-PPNVRRDH.js.map} +0 -0
- /package/dist/{usdc-JIAJW4SV.js.map → codex-host-2RJOJW2B.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-ZZE6UV4Y.js.map → config-ZD4OB2DO.js.map} +0 -0
- /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
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
132
|
+
Tenjin contributors.
|
package/README.md
CHANGED
|
@@ -1,307 +1,141 @@
|
|
|
1
|
-
<
|
|
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
|
-
|
|
8
|
+
<h3 align="center">The tool router for coding agents.</h3>
|
|
4
9
|
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
28
|
+
## Why
|
|
14
29
|
|
|
15
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
npx tenjin-cli install
|
|
43
|
+
```text
|
|
44
|
+
Install Tenjin from tenjin.sh
|
|
50
45
|
```
|
|
51
46
|
|
|
52
|
-
|
|
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
|
-
|
|
49
|
+
Or from a terminal:
|
|
59
50
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
+
## Try it
|
|
78
62
|
|
|
79
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
76
|
+
## What your agent can do
|
|
95
77
|
|
|
96
|
-
|
|
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
|
-
|
|
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
|
-
|
|
94
|
+
## How it works
|
|
103
95
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
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
|
-
|
|
115
|
-
openclaw mcp add tenjin --url https://tenjin.blog/api/mcp --transport streamable-http
|
|
116
|
-
```
|
|
102
|
+
## Wallet and limits
|
|
117
103
|
|
|
118
|
-
|
|
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
|
-
|
|
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
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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
|
-
##
|
|
129
|
+
## Request a tool
|
|
255
130
|
|
|
256
|
-
|
|
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
|
-
|
|
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
|
-
|
|
264
|
-
pnpm changeset # pick the bump type, write a summary; commit the .md
|
|
265
|
-
```
|
|
136
|
+
## Learn more
|
|
266
137
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
437
|
-
import "./chunk-
|
|
434
|
+
} from "./chunk-EGELTSPU.js";
|
|
435
|
+
import "./chunk-JRGFKVAZ.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-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-
|
|
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
|