tenjin-cli 0.1.0-alpha.34 → 0.1.0-alpha.35
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 +30 -0
- package/README.md +20 -18
- package/dist/{_esm-MMYV66AX.js → _esm-2KST7HQ7.js} +4 -4
- package/dist/{alive-VOIL5W3I.js → alive-5TV22PNF.js} +13 -13
- package/dist/{auth-UHD3QFX4.js → auth-XI7BJFLW.js} +4 -4
- package/dist/balance-DFHC6XEU.js +71 -0
- package/dist/{ccip-CS7K5QRQ.js → ccip-HOW3DZYF.js} +3 -3
- package/dist/{chunk-RJ5HRPAZ.js → chunk-24XKUN2S.js} +68 -10
- package/dist/chunk-24XKUN2S.js.map +1 -0
- package/dist/chunk-2L7TDGLV.js +56 -0
- package/dist/chunk-2L7TDGLV.js.map +1 -0
- package/dist/{chunk-PZHBPGDE.js → chunk-34SAECKZ.js} +34 -10
- package/dist/chunk-34SAECKZ.js.map +1 -0
- package/dist/{chunk-EQZ2CCWC.js → chunk-3Y2EHT4F.js} +5 -2
- package/dist/chunk-3Y2EHT4F.js.map +1 -0
- package/dist/{chunk-FSYH7J75.js → chunk-3Y6BHIN6.js} +3 -3
- package/dist/{chunk-FZZWTDWP.js → chunk-3YPL6T3P.js} +6 -6
- package/dist/{chunk-JEZMWJEF.js → chunk-44MVIRZH.js} +4 -4
- package/dist/{chunk-27FIHFXF.js → chunk-45MMSBHA.js} +5 -5
- package/dist/{chunk-QXP3Z3JN.js → chunk-4MBCJFY4.js} +35 -3
- package/dist/chunk-4MBCJFY4.js.map +1 -0
- package/dist/chunk-4TPL54KW.js +227 -0
- package/dist/chunk-4TPL54KW.js.map +1 -0
- package/dist/{chunk-7JB6SYJX.js → chunk-54ELBTKE.js} +2 -2
- package/dist/{chunk-6J64MQFD.js → chunk-5F4OB5B3.js} +21 -15
- package/dist/chunk-5F4OB5B3.js.map +1 -0
- package/dist/{chunk-PYVQ74D5.js → chunk-5HN4KVQU.js} +189 -117
- package/dist/chunk-5HN4KVQU.js.map +1 -0
- package/dist/{chunk-VFKPIIV2.js → chunk-5J4E5GYI.js} +35 -32
- package/dist/chunk-5J4E5GYI.js.map +1 -0
- package/dist/chunk-5USBZ2MU.js +58 -0
- package/dist/chunk-5USBZ2MU.js.map +1 -0
- package/dist/chunk-64WOMNYR.js +183 -0
- package/dist/chunk-64WOMNYR.js.map +1 -0
- package/dist/{chunk-APWELUI7.js → chunk-65RS4LQS.js} +57 -43
- package/dist/chunk-65RS4LQS.js.map +1 -0
- package/dist/{chunk-HWZO6HYZ.js → chunk-6QMDUDF2.js} +3 -3
- package/dist/{chunk-FNBGRKS6.js → chunk-7V25UAQO.js} +2 -2
- package/dist/chunk-BGA4DO5M.js +719 -0
- package/dist/chunk-BGA4DO5M.js.map +1 -0
- package/dist/chunk-BVP7YK2J.js +706 -0
- package/dist/chunk-BVP7YK2J.js.map +1 -0
- package/dist/chunk-C265QIMJ.js +83 -0
- package/dist/chunk-C265QIMJ.js.map +1 -0
- package/dist/{chunk-MXN2ZEUB.js → chunk-D6M3ZK66.js} +2 -2
- package/dist/chunk-D6M3ZK66.js.map +1 -0
- package/dist/chunk-DJ36BM62.js +78 -0
- package/dist/chunk-DJ36BM62.js.map +1 -0
- package/dist/{chunk-JOKPBYXP.js → chunk-DTEWAVNE.js} +2 -2
- package/dist/chunk-F2KJAJ7T.js +13 -0
- package/dist/chunk-F2KJAJ7T.js.map +1 -0
- package/dist/{chunk-KAILF7QA.js → chunk-F43CV6UC.js} +2 -2
- package/dist/{chunk-ACO7ZCR2.js → chunk-FKVJKLPI.js} +2 -2
- package/dist/{chunk-43HLS2HM.js → chunk-FYFHH7V5.js} +54 -3
- package/dist/{chunk-43HLS2HM.js.map → chunk-FYFHH7V5.js.map} +1 -1
- package/dist/{chunk-2F5JUAHZ.js → chunk-GAJC4BQZ.js} +3 -3
- package/dist/{chunk-L7N73ZAW.js → chunk-HAZAN4UM.js} +2 -2
- package/dist/{chunk-6QJZA6EX.js → chunk-HI5XQOX2.js} +2 -2
- package/dist/{chunk-BOENA6XR.js → chunk-HKGUKAQW.js} +6 -6
- package/dist/{chunk-LJSCGIYH.js → chunk-HPRVFJPM.js} +2 -2
- package/dist/{chunk-OO6FIBL7.js → chunk-HZKANST2.js} +3 -6
- package/dist/chunk-HZKANST2.js.map +1 -0
- package/dist/{chunk-UVDJ5SSQ.js → chunk-I557SAOM.js} +8 -2
- package/dist/chunk-I557SAOM.js.map +1 -0
- package/dist/{chunk-SDUOJRSV.js → chunk-IGLWLH73.js} +3 -3
- package/dist/{chunk-3AKH7ODX.js → chunk-INSIW65E.js} +5 -5
- package/dist/{chunk-PNHNXUSL.js → chunk-IULCDMVG.js} +12 -1
- package/dist/chunk-IULCDMVG.js.map +1 -0
- package/dist/{chunk-JF4T4HCQ.js → chunk-IVNSUAVC.js} +10 -5
- package/dist/chunk-IVNSUAVC.js.map +1 -0
- package/dist/chunk-JDQZCREI.js +87 -0
- package/dist/chunk-JDQZCREI.js.map +1 -0
- package/dist/{chunk-2P3NJTHE.js → chunk-JHFFUVON.js} +23 -23
- package/dist/{chunk-7JVARP5R.js → chunk-JTILUN4W.js} +55 -29
- package/dist/{chunk-7JVARP5R.js.map → chunk-JTILUN4W.js.map} +1 -1
- package/dist/{chunk-2TO5F6CT.js → chunk-K5KNGC4I.js} +8 -8
- package/dist/{chunk-HUWTFKEM.js → chunk-KAQ4Q3TO.js} +3 -3
- package/dist/{chunk-E6VP6MQM.js → chunk-KGUE5AVX.js} +4 -4
- package/dist/chunk-KGUE5AVX.js.map +1 -0
- package/dist/{chunk-GS5RZF7U.js → chunk-KLDMLWXT.js} +2 -2
- package/dist/{chunk-HN2EN6P4.js → chunk-KNKDMTHU.js} +5 -5
- package/dist/chunk-LDA6TAYQ.js +95 -0
- package/dist/chunk-LDA6TAYQ.js.map +1 -0
- package/dist/chunk-LWSSIZOY.js +347 -0
- package/dist/chunk-LWSSIZOY.js.map +1 -0
- package/dist/{chunk-5VWQSCDO.js → chunk-MAHNZA6C.js} +89 -9
- package/dist/chunk-MAHNZA6C.js.map +1 -0
- package/dist/{chunk-46HAB26L.js → chunk-MEWZCIA6.js} +56 -9
- package/dist/chunk-MEWZCIA6.js.map +1 -0
- package/dist/{chunk-R2KMLONN.js → chunk-MJDO4EXD.js} +4 -4
- package/dist/{chunk-IHVUE3XF.js → chunk-NJA6NT3A.js} +3 -3
- package/dist/{chunk-TSIID2LV.js → chunk-ODRPASFP.js} +375 -1166
- package/dist/chunk-ODRPASFP.js.map +1 -0
- package/dist/{chunk-S3JKF3IK.js → chunk-OJJFANO6.js} +3 -3
- package/dist/{chunk-56SOPRM2.js → chunk-OQWPRFAC.js} +344 -4
- package/dist/chunk-OQWPRFAC.js.map +1 -0
- package/dist/{chunk-QEZZDIQT.js → chunk-P6YQWIT2.js} +4053 -4039
- package/dist/chunk-P6YQWIT2.js.map +1 -0
- package/dist/{chunk-GGGEGMWC.js → chunk-Q6RSJCXB.js} +9 -9
- package/dist/{chunk-OTIUEUIS.js → chunk-QKEUKBRK.js} +7 -7
- package/dist/{chunk-X52BVGCJ.js → chunk-QQDPRTLP.js} +5 -5
- package/dist/chunk-QQYCYAKI.js +79 -0
- package/dist/chunk-QQYCYAKI.js.map +1 -0
- package/dist/chunk-R4KDH477.js +1064 -0
- package/dist/chunk-R4KDH477.js.map +1 -0
- package/dist/{chunk-6AQSUBNR.js → chunk-RGCPELQN.js} +2 -2
- package/dist/{chunk-AXODGQ23.js → chunk-RGVCOG2S.js} +9 -2
- package/dist/{chunk-AXODGQ23.js.map → chunk-RGVCOG2S.js.map} +1 -1
- package/dist/chunk-SOLNJ3AZ.js +209 -0
- package/dist/chunk-SOLNJ3AZ.js.map +1 -0
- package/dist/{chunk-LQ33RLHL.js → chunk-TFT2X7SH.js} +3 -3
- package/dist/chunk-TVWCLUBI.js +293 -0
- package/dist/chunk-TVWCLUBI.js.map +1 -0
- package/dist/{chunk-VH7JMLTG.js → chunk-UIB33QQP.js} +25 -16
- package/dist/chunk-UIB33QQP.js.map +1 -0
- package/dist/chunk-V6GIVALQ.js +1889 -0
- package/dist/chunk-V6GIVALQ.js.map +1 -0
- package/dist/{chunk-IVHGQNIN.js → chunk-VHXCPXUS.js} +8 -8
- package/dist/{chunk-7DW7GAM6.js → chunk-VU6GMWF6.js} +2 -2
- package/dist/chunk-VWZYE3NC.js +8415 -0
- package/dist/chunk-VWZYE3NC.js.map +1 -0
- package/dist/{chunk-3X4GOMXT.js → chunk-W2GXIARJ.js} +12 -7
- package/dist/chunk-W2GXIARJ.js.map +1 -0
- package/dist/chunk-W4G3K3V7.js +288 -0
- package/dist/chunk-W4G3K3V7.js.map +1 -0
- package/dist/{chunk-FHXTEVO7.js → chunk-W74LJ5OT.js} +21 -28
- package/dist/chunk-W74LJ5OT.js.map +1 -0
- package/dist/{chunk-FOEPH67T.js → chunk-W7ELYLYK.js} +1 -74
- package/dist/chunk-W7ELYLYK.js.map +1 -0
- package/dist/{chunk-YU3DLVSQ.js → chunk-XSCGUO2U.js} +5 -5
- package/dist/{chunk-EPCIJLLU.js → chunk-XWROSMI5.js} +9 -9
- package/dist/{chunk-HMT6L65V.js → chunk-YJGEVBKZ.js} +4 -4
- package/dist/{chunk-7U3P4PB7.js → chunk-ZEYA2WWX.js} +4 -4
- package/dist/chunk-ZEYA2WWX.js.map +1 -0
- package/dist/chunk-ZRC7Z5X3.js +82 -0
- package/dist/chunk-ZRC7Z5X3.js.map +1 -0
- package/dist/{chunk-I47ARU5G.js → chunk-ZS7JIUJ3.js} +2 -2
- package/dist/{claude-cli-2YKABJJZ.js → claude-cli-GIIHOBGT.js} +4 -2
- package/dist/claude-install-BAUSJMW3.js +64 -0
- package/dist/{cli-BFDKEX53.js → cli-QY4KKA3D.js} +116 -49
- package/dist/cli-QY4KKA3D.js.map +1 -0
- package/dist/{client-XMWEKXX7.js → client-3YQKORVK.js} +4 -4
- package/dist/{codex-host-B6NAUWL6.js → codex-host-ZON3S6HU.js} +5 -5
- package/dist/{codex-install-GTGO5FYN.js → codex-install-HZV2DOAB.js} +62 -47
- package/dist/codex-install-HZV2DOAB.js.map +1 -0
- package/dist/{config-THJANIU5.js → config-QZOBMTEL.js} +18 -18
- package/dist/{config-names-JU54HYWY.js → config-names-Z5NZD5R2.js} +18 -18
- package/dist/{config-rules-VNU23RL4.js → config-rules-YOYHS6YL.js} +19 -19
- package/dist/config-subagents-WQV2ZAD5.js +362 -0
- package/dist/config-subagents-WQV2ZAD5.js.map +1 -0
- package/dist/{connect-HPWS7U63.js → connect-YDWTYU4B.js} +28 -27
- package/dist/{connect-HPWS7U63.js.map → connect-YDWTYU4B.js.map} +1 -1
- package/dist/core-0a66n3e7-TTP554XV.js +127 -0
- package/dist/core-0a66n3e7-TTP554XV.js.map +1 -0
- package/dist/core-0bmnpbz2-C2JIRVZO.js +10790 -0
- package/dist/core-0bmnpbz2-C2JIRVZO.js.map +1 -0
- package/dist/core-9je8ee1j-74DGHWPV.js +30 -0
- package/dist/core-9je8ee1j-74DGHWPV.js.map +1 -0
- package/dist/core-wadgcjfh-TSZFQZGH.js +666 -0
- package/dist/core-wadgcjfh-TSZFQZGH.js.map +1 -0
- package/dist/core-zg882d22-LKV5DZYW.js +37 -0
- package/dist/core-zg882d22-LKV5DZYW.js.map +1 -0
- package/dist/{decision-JIIHDTOF.js → decision-QSKHOGCO.js} +6 -6
- package/dist/{doctor-4MMHBRDU.js → doctor-ZWJXRD75.js} +67 -66
- package/dist/doctor-ZWJXRD75.js.map +1 -0
- package/dist/{explicit-AGENAX6E.js → explicit-ME2NRADQ.js} +45 -42
- package/dist/{explicit-AGENAX6E.js.map → explicit-ME2NRADQ.js.map} +1 -1
- package/dist/flush-stdio-NYIJ3QXT.js +18 -0
- package/dist/{fund-MLXUH24Q.js → fund-VF7TLDJH.js} +110 -34
- package/dist/fund-VF7TLDJH.js.map +1 -0
- package/dist/{hook-command-UB7FOEUL.js → hook-command-VZ27MGWO.js} +21 -20
- package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +2 -2
- package/dist/hosts/claude/tenjin/hooks/hook-data.ts +152 -0
- package/dist/hosts/claude/tenjin/hooks/hooks.json +7 -0
- package/dist/hosts/claude/tenjin/hooks/model-viewer.tsx +2987 -0
- package/dist/hosts/claude/tenjin/hooks/register.tsx +265 -30
- package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +14 -4
- package/dist/hosts/claude/tenjin/types/index.d.ts +133 -0
- package/dist/{hosts-WNQKYKP2.js → hosts-3EMTVM4H.js} +5 -3
- package/dist/index.js +16 -13
- package/dist/index.js.map +1 -1
- package/dist/{install-Q5SHHEDH.js → install-ZA7L2UF3.js} +34 -30
- package/dist/{install-funding-EGSW2KEP.js → install-funding-JDGYTF72.js} +9 -13
- package/dist/{install-identity-OID43B4D.js → install-identity-FFAYEFLX.js} +8 -8
- package/dist/{install-wallet-TZFWY5GK.js → install-wallet-2SFOVE3Q.js} +48 -33
- package/dist/{install-wallet-TZFWY5GK.js.map → install-wallet-2SFOVE3Q.js.map} +1 -1
- package/dist/mcp-36S6MK3C.js +67642 -0
- package/dist/mcp-36S6MK3C.js.map +1 -0
- package/dist/new-install-5L4GY3LN.js +51 -0
- package/dist/{package-NRHU7HBR.js → package-BONDXSV3.js} +2 -2
- package/dist/{passphrase-3JEVW5XG.js → passphrase-T4ULBN4M.js} +4 -4
- package/dist/{pay-I47AIUQR.js → pay-CMV5KL74.js} +37 -30
- package/dist/{payments-A5FNI5GN.js → payments-Z6UBZL4Z.js} +10 -10
- package/dist/reclaim-subagent-credit-ABSF67SJ.js +105 -0
- package/dist/reclaim-subagent-credit-ABSF67SJ.js.map +1 -0
- package/dist/{routing-quote-QQW2I5MH.js → routing-quote-AHLAREXR.js} +16 -18
- package/dist/{run-4SHEOBIU.js → run-JH7ELYAM.js} +41 -38
- package/dist/{runtime-BABJMHY7.js → runtime-2GX4ALJP.js} +12 -12
- package/dist/{runtime-activate-N6VLQI2C.js → runtime-activate-IDQ2NCSP.js} +9 -9
- package/dist/{runtime-launchers-GMAUICRW.js → runtime-launchers-YAPKCBHV.js} +7 -7
- package/dist/{runtime-place-DOEWFTF3.js → runtime-place-4POL4KK4.js} +3 -3
- package/dist/{send-ECXS6JEO.js → send-ELXFKEKY.js} +17 -17
- package/dist/{status-AHE5HSR7.js → status-FXUFWJDM.js} +89 -36
- package/dist/status-FXUFWJDM.js.map +1 -0
- package/dist/{status-line-63XFJAXR.js → status-line-IH5JBWBC.js} +11 -11
- package/dist/{streamableHttp-Z3YF6LTQ.js → streamableHttp-CP2ZQBIK.js} +4 -4
- package/dist/{uninstall-YGQPRCVY.js → uninstall-LJZUKM4D.js} +42 -38
- package/dist/{uninstall-YGQPRCVY.js.map → uninstall-LJZUKM4D.js.map} +1 -1
- package/dist/{update-GTLMLFA3.js → update-EUIX72IX.js} +34 -30
- package/dist/{usage-FCWP2CHO.js → usage-EKDC7LUC.js} +13 -13
- package/dist/{usdc-25RNBYYR.js → usdc-YIHK2OMC.js} +5 -5
- package/dist/{viemAdapter-By13KInL-3CG63XDX.js → viemAdapter-By13KInL-PRLSIESK.js} +2 -2
- package/dist/viemAdapter-By13KInL-PRLSIESK.js.map +1 -0
- package/dist/wallet-HSW757W6.js +80 -0
- package/dist/wallet-HSW757W6.js.map +1 -0
- package/docs/agent-permissions.md +19 -11
- package/docs/router-reference.md +21 -12
- package/docs/safety-model.md +4 -2
- package/docs/subagents-internals.md +97 -0
- package/docs/subagents.md +348 -0
- package/package.json +4 -1
- package/dist/balance-RQW5T5FB.js +0 -55
- package/dist/chunk-3X4GOMXT.js.map +0 -1
- package/dist/chunk-46HAB26L.js.map +0 -1
- package/dist/chunk-56SOPRM2.js.map +0 -1
- package/dist/chunk-5VWQSCDO.js.map +0 -1
- package/dist/chunk-6J64MQFD.js.map +0 -1
- package/dist/chunk-7U3P4PB7.js.map +0 -1
- package/dist/chunk-APWELUI7.js.map +0 -1
- package/dist/chunk-E6VP6MQM.js.map +0 -1
- package/dist/chunk-EQZ2CCWC.js.map +0 -1
- package/dist/chunk-FHXTEVO7.js.map +0 -1
- package/dist/chunk-FOEPH67T.js.map +0 -1
- package/dist/chunk-IVXPIIZJ.js +0 -91
- package/dist/chunk-IVXPIIZJ.js.map +0 -1
- package/dist/chunk-JF4T4HCQ.js.map +0 -1
- package/dist/chunk-LPQNZKSG.js +0 -269
- package/dist/chunk-LPQNZKSG.js.map +0 -1
- package/dist/chunk-MXN2ZEUB.js.map +0 -1
- package/dist/chunk-OO6FIBL7.js.map +0 -1
- package/dist/chunk-PNHNXUSL.js.map +0 -1
- package/dist/chunk-PYVQ74D5.js.map +0 -1
- package/dist/chunk-PZHBPGDE.js.map +0 -1
- package/dist/chunk-QEZZDIQT.js.map +0 -1
- package/dist/chunk-QXP3Z3JN.js.map +0 -1
- package/dist/chunk-RJ5HRPAZ.js.map +0 -1
- package/dist/chunk-TSIID2LV.js.map +0 -1
- package/dist/chunk-UVDJ5SSQ.js.map +0 -1
- package/dist/chunk-VFKPIIV2.js.map +0 -1
- package/dist/chunk-VH7JMLTG.js.map +0 -1
- package/dist/claude-install-7CVYQ73E.js +0 -60
- package/dist/cli-BFDKEX53.js.map +0 -1
- package/dist/codex-install-GTGO5FYN.js.map +0 -1
- package/dist/doctor-4MMHBRDU.js.map +0 -1
- package/dist/fund-MLXUH24Q.js.map +0 -1
- package/dist/mcp-CC3H7LFO.js +0 -3655
- package/dist/mcp-CC3H7LFO.js.map +0 -1
- package/dist/status-AHE5HSR7.js.map +0 -1
- package/dist/wallet-CJGEHP2Q.js +0 -64
- /package/dist/{_esm-MMYV66AX.js.map → _esm-2KST7HQ7.js.map} +0 -0
- /package/dist/{alive-VOIL5W3I.js.map → alive-5TV22PNF.js.map} +0 -0
- /package/dist/{auth-UHD3QFX4.js.map → auth-XI7BJFLW.js.map} +0 -0
- /package/dist/{balance-RQW5T5FB.js.map → balance-DFHC6XEU.js.map} +0 -0
- /package/dist/{ccip-CS7K5QRQ.js.map → ccip-HOW3DZYF.js.map} +0 -0
- /package/dist/{chunk-FSYH7J75.js.map → chunk-3Y6BHIN6.js.map} +0 -0
- /package/dist/{chunk-FZZWTDWP.js.map → chunk-3YPL6T3P.js.map} +0 -0
- /package/dist/{chunk-JEZMWJEF.js.map → chunk-44MVIRZH.js.map} +0 -0
- /package/dist/{chunk-27FIHFXF.js.map → chunk-45MMSBHA.js.map} +0 -0
- /package/dist/{chunk-7JB6SYJX.js.map → chunk-54ELBTKE.js.map} +0 -0
- /package/dist/{chunk-HWZO6HYZ.js.map → chunk-6QMDUDF2.js.map} +0 -0
- /package/dist/{chunk-FNBGRKS6.js.map → chunk-7V25UAQO.js.map} +0 -0
- /package/dist/{chunk-JOKPBYXP.js.map → chunk-DTEWAVNE.js.map} +0 -0
- /package/dist/{chunk-KAILF7QA.js.map → chunk-F43CV6UC.js.map} +0 -0
- /package/dist/{chunk-ACO7ZCR2.js.map → chunk-FKVJKLPI.js.map} +0 -0
- /package/dist/{chunk-2F5JUAHZ.js.map → chunk-GAJC4BQZ.js.map} +0 -0
- /package/dist/{chunk-L7N73ZAW.js.map → chunk-HAZAN4UM.js.map} +0 -0
- /package/dist/{chunk-6QJZA6EX.js.map → chunk-HI5XQOX2.js.map} +0 -0
- /package/dist/{chunk-BOENA6XR.js.map → chunk-HKGUKAQW.js.map} +0 -0
- /package/dist/{chunk-LJSCGIYH.js.map → chunk-HPRVFJPM.js.map} +0 -0
- /package/dist/{chunk-SDUOJRSV.js.map → chunk-IGLWLH73.js.map} +0 -0
- /package/dist/{chunk-3AKH7ODX.js.map → chunk-INSIW65E.js.map} +0 -0
- /package/dist/{chunk-2P3NJTHE.js.map → chunk-JHFFUVON.js.map} +0 -0
- /package/dist/{chunk-2TO5F6CT.js.map → chunk-K5KNGC4I.js.map} +0 -0
- /package/dist/{chunk-HUWTFKEM.js.map → chunk-KAQ4Q3TO.js.map} +0 -0
- /package/dist/{chunk-GS5RZF7U.js.map → chunk-KLDMLWXT.js.map} +0 -0
- /package/dist/{chunk-HN2EN6P4.js.map → chunk-KNKDMTHU.js.map} +0 -0
- /package/dist/{chunk-R2KMLONN.js.map → chunk-MJDO4EXD.js.map} +0 -0
- /package/dist/{chunk-IHVUE3XF.js.map → chunk-NJA6NT3A.js.map} +0 -0
- /package/dist/{chunk-S3JKF3IK.js.map → chunk-OJJFANO6.js.map} +0 -0
- /package/dist/{chunk-GGGEGMWC.js.map → chunk-Q6RSJCXB.js.map} +0 -0
- /package/dist/{chunk-OTIUEUIS.js.map → chunk-QKEUKBRK.js.map} +0 -0
- /package/dist/{chunk-X52BVGCJ.js.map → chunk-QQDPRTLP.js.map} +0 -0
- /package/dist/{chunk-6AQSUBNR.js.map → chunk-RGCPELQN.js.map} +0 -0
- /package/dist/{chunk-LQ33RLHL.js.map → chunk-TFT2X7SH.js.map} +0 -0
- /package/dist/{chunk-IVHGQNIN.js.map → chunk-VHXCPXUS.js.map} +0 -0
- /package/dist/{chunk-7DW7GAM6.js.map → chunk-VU6GMWF6.js.map} +0 -0
- /package/dist/{chunk-YU3DLVSQ.js.map → chunk-XSCGUO2U.js.map} +0 -0
- /package/dist/{chunk-EPCIJLLU.js.map → chunk-XWROSMI5.js.map} +0 -0
- /package/dist/{chunk-HMT6L65V.js.map → chunk-YJGEVBKZ.js.map} +0 -0
- /package/dist/{chunk-I47ARU5G.js.map → chunk-ZS7JIUJ3.js.map} +0 -0
- /package/dist/{claude-cli-2YKABJJZ.js.map → claude-cli-GIIHOBGT.js.map} +0 -0
- /package/dist/{claude-install-7CVYQ73E.js.map → claude-install-BAUSJMW3.js.map} +0 -0
- /package/dist/{client-XMWEKXX7.js.map → client-3YQKORVK.js.map} +0 -0
- /package/dist/{codex-host-B6NAUWL6.js.map → codex-host-ZON3S6HU.js.map} +0 -0
- /package/dist/{config-THJANIU5.js.map → config-QZOBMTEL.js.map} +0 -0
- /package/dist/{config-names-JU54HYWY.js.map → config-names-Z5NZD5R2.js.map} +0 -0
- /package/dist/{config-rules-VNU23RL4.js.map → config-rules-YOYHS6YL.js.map} +0 -0
- /package/dist/{decision-JIIHDTOF.js.map → decision-QSKHOGCO.js.map} +0 -0
- /package/dist/{hook-command-UB7FOEUL.js.map → flush-stdio-NYIJ3QXT.js.map} +0 -0
- /package/dist/{hosts-WNQKYKP2.js.map → hook-command-VZ27MGWO.js.map} +0 -0
- /package/dist/{install-Q5SHHEDH.js.map → hosts-3EMTVM4H.js.map} +0 -0
- /package/dist/{install-funding-EGSW2KEP.js.map → install-ZA7L2UF3.js.map} +0 -0
- /package/dist/{install-identity-OID43B4D.js.map → install-funding-JDGYTF72.js.map} +0 -0
- /package/dist/{package-NRHU7HBR.js.map → install-identity-FFAYEFLX.js.map} +0 -0
- /package/dist/{passphrase-3JEVW5XG.js.map → new-install-5L4GY3LN.js.map} +0 -0
- /package/dist/{pay-I47AIUQR.js.map → package-BONDXSV3.js.map} +0 -0
- /package/dist/{routing-quote-QQW2I5MH.js.map → passphrase-T4ULBN4M.js.map} +0 -0
- /package/dist/{run-4SHEOBIU.js.map → pay-CMV5KL74.js.map} +0 -0
- /package/dist/{payments-A5FNI5GN.js.map → payments-Z6UBZL4Z.js.map} +0 -0
- /package/dist/{runtime-activate-N6VLQI2C.js.map → routing-quote-AHLAREXR.js.map} +0 -0
- /package/dist/{runtime-launchers-GMAUICRW.js.map → run-JH7ELYAM.js.map} +0 -0
- /package/dist/{runtime-BABJMHY7.js.map → runtime-2GX4ALJP.js.map} +0 -0
- /package/dist/{runtime-place-DOEWFTF3.js.map → runtime-activate-IDQ2NCSP.js.map} +0 -0
- /package/dist/{update-GTLMLFA3.js.map → runtime-launchers-YAPKCBHV.js.map} +0 -0
- /package/dist/{usdc-25RNBYYR.js.map → runtime-place-4POL4KK4.js.map} +0 -0
- /package/dist/{send-ECXS6JEO.js.map → send-ELXFKEKY.js.map} +0 -0
- /package/dist/{status-line-63XFJAXR.js.map → status-line-IH5JBWBC.js.map} +0 -0
- /package/dist/{streamableHttp-Z3YF6LTQ.js.map → streamableHttp-CP2ZQBIK.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-3CG63XDX.js.map → update-EUIX72IX.js.map} +0 -0
- /package/dist/{usage-FCWP2CHO.js.map → usage-EKDC7LUC.js.map} +0 -0
- /package/dist/{wallet-CJGEHP2Q.js.map → usdc-YIHK2OMC.js.map} +0 -0
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
KeptChoicesSchema,
|
|
4
|
-
KeptSpecSchema,
|
|
5
|
-
UNREADABLE,
|
|
6
|
-
claimSpecPayment,
|
|
7
|
-
markTaken,
|
|
8
|
-
readChoices,
|
|
9
|
-
readKeptSpec,
|
|
10
|
-
readSpec,
|
|
11
|
-
releaseSpecClaim,
|
|
12
|
-
settingsRefusal,
|
|
13
|
-
settleSpecPayment,
|
|
14
|
-
storeChoices,
|
|
15
|
-
storeFullResult,
|
|
16
|
-
storeSpecs
|
|
17
|
-
} from "./chunk-BOENA6XR.js";
|
|
18
2
|
import {
|
|
19
3
|
LOW_FUNDS_TAIL,
|
|
20
4
|
admitPlan,
|
|
21
5
|
admitQuote,
|
|
22
|
-
assertResultSchema,
|
|
23
|
-
canonicalHash,
|
|
24
6
|
createQuote,
|
|
25
|
-
inputProblems,
|
|
26
7
|
isLowFundsRefusal,
|
|
27
8
|
policyFix,
|
|
28
|
-
projectBody,
|
|
29
9
|
quoteClosed,
|
|
30
10
|
quoteRouterCall,
|
|
31
11
|
readQuote,
|
|
@@ -33,30 +13,54 @@ import {
|
|
|
33
13
|
runPay,
|
|
34
14
|
sellerLine,
|
|
35
15
|
settlementTx,
|
|
36
|
-
|
|
16
|
+
signInForPoll,
|
|
17
|
+
signInOnlyHeader,
|
|
37
18
|
wasShortOfFunds
|
|
38
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ODRPASFP.js";
|
|
39
20
|
import {
|
|
40
21
|
MAX_MEDIA_BYTES,
|
|
41
22
|
MAX_MEDIA_FILES,
|
|
42
23
|
appendPaidRecord,
|
|
43
|
-
createUniqueFile,
|
|
44
24
|
maskDeep,
|
|
45
25
|
mediaUrlsIn,
|
|
26
|
+
payerOf,
|
|
46
27
|
pinnedHttp,
|
|
47
28
|
reconcilePayments,
|
|
48
29
|
recordAccountRow,
|
|
49
30
|
recordedSent,
|
|
50
31
|
saveMedia,
|
|
51
32
|
updatePaidRecord,
|
|
52
|
-
|
|
53
|
-
} from "./chunk-
|
|
33
|
+
writeNewFile
|
|
34
|
+
} from "./chunk-MAHNZA6C.js";
|
|
35
|
+
import {
|
|
36
|
+
KeptChoicesSchema,
|
|
37
|
+
KeptSpecSchema,
|
|
38
|
+
UNREADABLE,
|
|
39
|
+
claimSpecPayment,
|
|
40
|
+
markTaken,
|
|
41
|
+
readChoices,
|
|
42
|
+
readKeptSpec,
|
|
43
|
+
readSpec,
|
|
44
|
+
releaseSpecClaim,
|
|
45
|
+
settingsRefusal,
|
|
46
|
+
settleSpecPayment,
|
|
47
|
+
storeChoices,
|
|
48
|
+
storeFullResult,
|
|
49
|
+
storeSpecs
|
|
50
|
+
} from "./chunk-HKGUKAQW.js";
|
|
51
|
+
import {
|
|
52
|
+
assertResultSchema,
|
|
53
|
+
canonicalHash,
|
|
54
|
+
inputProblems,
|
|
55
|
+
projectBody,
|
|
56
|
+
validateResultBody
|
|
57
|
+
} from "./chunk-R4KDH477.js";
|
|
54
58
|
import {
|
|
55
59
|
termsNotice
|
|
56
60
|
} from "./chunk-Y2EXZ47H.js";
|
|
57
61
|
import {
|
|
58
62
|
resolveWalletProvider
|
|
59
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-K5KNGC4I.js";
|
|
60
64
|
import {
|
|
61
65
|
withFileLock
|
|
62
66
|
} from "./chunk-2W4DQQUU.js";
|
|
@@ -64,7 +68,7 @@ import {
|
|
|
64
68
|
depositSentence,
|
|
65
69
|
shortOfFunds,
|
|
66
70
|
unpaidSentence
|
|
67
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-HZKANST2.js";
|
|
68
72
|
import {
|
|
69
73
|
parseUsdToAtomic,
|
|
70
74
|
toMoney
|
|
@@ -86,10 +90,10 @@ import {
|
|
|
86
90
|
} from "./chunk-2U7H35IP.js";
|
|
87
91
|
import {
|
|
88
92
|
routerSettings
|
|
89
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-W2GXIARJ.js";
|
|
90
94
|
import {
|
|
91
95
|
resolveContextSettings
|
|
92
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-DTEWAVNE.js";
|
|
93
97
|
import {
|
|
94
98
|
downloadsDir,
|
|
95
99
|
jobsDir
|
|
@@ -106,7 +110,7 @@ import {
|
|
|
106
110
|
requestBrowse,
|
|
107
111
|
requestDecision,
|
|
108
112
|
requestToolSpec
|
|
109
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-ZEYA2WWX.js";
|
|
110
114
|
import {
|
|
111
115
|
assertPublicHttpsUrl,
|
|
112
116
|
resolvePublicDestination
|
|
@@ -115,15 +119,15 @@ import {
|
|
|
115
119
|
composeUserAgent,
|
|
116
120
|
isBinaryContentType,
|
|
117
121
|
requestHeaderProblem
|
|
118
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-D6M3ZK66.js";
|
|
119
123
|
import {
|
|
120
124
|
BUILT_IN_SOURCE,
|
|
121
125
|
SettingsHashSchema,
|
|
122
126
|
sha256Hex
|
|
123
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-RGCPELQN.js";
|
|
124
128
|
import {
|
|
125
129
|
external_exports
|
|
126
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-P6YQWIT2.js";
|
|
127
131
|
import {
|
|
128
132
|
CliError
|
|
129
133
|
} from "./chunk-DI4QAGRZ.js";
|
|
@@ -453,10 +457,18 @@ async function pollUntil(take, opts, deps = {}) {
|
|
|
453
457
|
await sleep(Math.min(wait, left));
|
|
454
458
|
}
|
|
455
459
|
await Promise.resolve().then(() => deps.onPoll?.()).catch(() => void 0);
|
|
456
|
-
const answer = await
|
|
460
|
+
const answer = await pollSignedIn(take, deps);
|
|
457
461
|
wait = interval;
|
|
458
462
|
interval = Math.min(Math.round(interval * BACKOFF), MAX_POLL_INTERVAL_MS);
|
|
459
463
|
if (answer.kind === "refused") return { state: "failed", reason: answer.reason };
|
|
464
|
+
if (answer.kind === "wallet") {
|
|
465
|
+
return {
|
|
466
|
+
state: "running",
|
|
467
|
+
status: 402,
|
|
468
|
+
reason: `the seller returns the result only to the wallet that paid for it, ${answer.paidBy}, and this machine's wallet is now ${answer.current}; nothing was signed`,
|
|
469
|
+
otherWallet: { paidBy: answer.paidBy, current: answer.current }
|
|
470
|
+
};
|
|
471
|
+
}
|
|
460
472
|
const status = answer.kind === "answer" ? answer.status : void 0;
|
|
461
473
|
if (status !== void 0) last = status;
|
|
462
474
|
const transient = answer.kind === "error" || status === 429 || status !== void 0 && status >= 500;
|
|
@@ -479,7 +491,7 @@ async function pollUntil(take, opts, deps = {}) {
|
|
|
479
491
|
return {
|
|
480
492
|
state: "failed",
|
|
481
493
|
status: 402,
|
|
482
|
-
reason: "the seller asked for another payment to return the result; none was sent"
|
|
494
|
+
reason: answer.signIn === "refused" ? `the seller asks the wallet that paid it to sign in, and nothing was signed: ${answer.signInRefusal ?? "no reason given"}` : answer.signIn === "sent" ? "the seller did not accept this wallet's sign-in" : "the seller asked for another payment to return the result; none was sent"
|
|
483
495
|
};
|
|
484
496
|
}
|
|
485
497
|
if (answer.status === 404 || answer.status === 410) {
|
|
@@ -560,7 +572,34 @@ function sellerSaid(json, text) {
|
|
|
560
572
|
].find((value) => typeof value === "string" && value.trim().length > 0);
|
|
561
573
|
return sellerLine(said ?? text);
|
|
562
574
|
}
|
|
563
|
-
async function
|
|
575
|
+
async function pollSignedIn(take, deps) {
|
|
576
|
+
const first = await pollOnce(take, deps);
|
|
577
|
+
if (first.kind !== "answer" || first.status !== 402 || deps.signIn === void 0) return first;
|
|
578
|
+
const challenge = first.header("PAYMENT-REQUIRED");
|
|
579
|
+
if (challenge === void 0) return first;
|
|
580
|
+
if (take.poll.method !== "GET") {
|
|
581
|
+
return signInOnlyHeader(challenge) !== void 0 ? {
|
|
582
|
+
...first,
|
|
583
|
+
signIn: "refused",
|
|
584
|
+
signInRefusal: `a sign-in answers only a GET, and this poll is a ${take.poll.method}`
|
|
585
|
+
} : first;
|
|
586
|
+
}
|
|
587
|
+
const answer = await deps.signIn(challenge, take.poll.url).catch((err) => ({ error: `the sign-in failed (${errorText(err)})` }));
|
|
588
|
+
if (answer === void 0) return first;
|
|
589
|
+
if ("error" in answer) {
|
|
590
|
+
return {
|
|
591
|
+
kind: "error",
|
|
592
|
+
reason: `the seller asks the wallet that paid it to sign in, and ${sellerLine(answer.error)}`
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
if ("refused" in answer) {
|
|
596
|
+
return { ...first, signIn: "refused", signInRefusal: sellerLine(answer.refused) };
|
|
597
|
+
}
|
|
598
|
+
if ("otherWallet" in answer) return { kind: "wallet", ...answer.otherWallet };
|
|
599
|
+
const signed = await pollOnce(take, deps, answer.headers);
|
|
600
|
+
return signed.kind === "answer" ? { ...signed, signIn: "sent" } : signed;
|
|
601
|
+
}
|
|
602
|
+
async function pollOnce(take, deps, signIn = {}) {
|
|
564
603
|
try {
|
|
565
604
|
assertPublicHttpsUrl(take.poll.url);
|
|
566
605
|
} catch {
|
|
@@ -576,7 +615,8 @@ async function pollOnce(take, deps) {
|
|
|
576
615
|
const headers = {
|
|
577
616
|
accept: "application/json, */*;q=0.8",
|
|
578
617
|
"user-agent": composeUserAgent(),
|
|
579
|
-
...take.poll.body !== void 0 ? { "content-type": "application/json" } : {}
|
|
618
|
+
...take.poll.body !== void 0 ? { "content-type": "application/json" } : {},
|
|
619
|
+
...signIn
|
|
580
620
|
};
|
|
581
621
|
const signal = AbortSignal.timeout(POLL_REQUEST_TIMEOUT_MS);
|
|
582
622
|
let res;
|
|
@@ -971,33 +1011,38 @@ function takesResult(entries, opts) {
|
|
|
971
1011
|
});
|
|
972
1012
|
const status = ran.every((each) => each === "fulfilled") ? "fulfilled" : ran.some((each) => each === "running") ? "running" : ran.some((each) => each === "fulfilled" || each === "unverified") ? "partial" : "failed";
|
|
973
1013
|
const cost = costLines(total);
|
|
1014
|
+
const who = (step) => step.label !== void 0 ? `${String(step.label)} (${String(step.key)})` : `take ${String(step.take)}`;
|
|
974
1015
|
const lines = results.map((step) => {
|
|
975
1016
|
const files = Array.isArray(step.savedFiles) ? step.savedFiles : [];
|
|
976
|
-
|
|
977
|
-
return `- ${who}: ${String(step.status)}${files.length ? `, saved to ${files.join(", ")}` : ""}`;
|
|
1017
|
+
return `- ${who(step)}: ${String(step.status)}${files.length ? `, saved to ${files.join(", ")}` : ""}`;
|
|
978
1018
|
});
|
|
979
|
-
const
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
(step) => step.status === "running" && typeof step.job === "string" ? [step.job] : []
|
|
983
|
-
)
|
|
984
|
-
)
|
|
1019
|
+
const running = results.filter((step) => step.status === "running");
|
|
1020
|
+
const jobsOf = (steps) => [
|
|
1021
|
+
...new Set(steps.flatMap((step) => typeof step.job === "string" ? [step.job] : []))
|
|
985
1022
|
];
|
|
986
|
-
const
|
|
1023
|
+
const resumeOf = (steps) => jobsOf(steps).map((job) => `request({job: ${JSON.stringify(job)}})`).join(" and ");
|
|
1024
|
+
const jobs = jobsOf(running);
|
|
1025
|
+
const blocked = running.filter((step) => step.reasonCode === "sign_in_wallet");
|
|
1026
|
+
const moving = running.filter((step) => step.reasonCode !== "sign_in_wallet");
|
|
1027
|
+
const resume = jobsOf(moving).length > 0 ? `Call ${resumeOf(moving)} in a minute or two for what is still running; nothing more is paid.` : void 0;
|
|
1028
|
+
const walletLines = [...new Set(blocked.map((step) => String(step.paidBy)))].map((paidBy) => {
|
|
1029
|
+
const paid = blocked.filter((step) => String(step.paidBy) === paidBy);
|
|
1030
|
+
const one = paid.length === 1;
|
|
1031
|
+
return `Tell the user ${paid.map(who).join(" and ")} ${one ? "was" : "were"} paid by the wallet ${paidBy}, and this machine's wallet cannot collect ${one ? "it" : "them"}. Once this machine uses that wallet again, call ${resumeOf(paid)}; nothing more is paid. Do not call request again for a new result: it would pay again.`;
|
|
1032
|
+
});
|
|
1033
|
+
const next = [...resume !== void 0 ? [resume] : [], ...walletLines];
|
|
1034
|
+
const walletBlocked = blocked.length > 0 && resume === void 0;
|
|
987
1035
|
return {
|
|
988
|
-
isError: status === "failed",
|
|
989
|
-
summary: [
|
|
990
|
-
`${opts.head}, ${status} \xB7 ${cost.join(" \xB7 ")}`,
|
|
991
|
-
...lines,
|
|
992
|
-
...resume !== void 0 ? [resume] : []
|
|
993
|
-
].join("\n"),
|
|
1036
|
+
isError: status === "failed" || walletBlocked,
|
|
1037
|
+
summary: [`${opts.head}, ${status} \xB7 ${cost.join(" \xB7 ")}`, ...lines, ...next].join("\n"),
|
|
994
1038
|
envelope: {
|
|
995
1039
|
status,
|
|
996
1040
|
...opts.envelope ?? {},
|
|
997
1041
|
...jobs.length === 1 ? { job: jobs[0] } : {},
|
|
1042
|
+
...walletBlocked ? { reasonCode: "sign_in_wallet" } : {},
|
|
998
1043
|
results,
|
|
999
1044
|
cost,
|
|
1000
|
-
nextStep:
|
|
1045
|
+
nextStep: next.length > 0 ? next.join(" ") : opts.nextStep,
|
|
1001
1046
|
providerContentUntrusted: true
|
|
1002
1047
|
}
|
|
1003
1048
|
};
|
|
@@ -1383,7 +1428,9 @@ var Digits2 = external_exports.string().regex(/^\d+$/);
|
|
|
1383
1428
|
var Authorization = external_exports.strictObject({
|
|
1384
1429
|
from: external_exports.string().max(64),
|
|
1385
1430
|
nonce: external_exports.string().max(80),
|
|
1386
|
-
validBefore: Digits2
|
|
1431
|
+
validBefore: Digits2,
|
|
1432
|
+
network: external_exports.string().max(64).optional(),
|
|
1433
|
+
asset: external_exports.string().max(200).optional()
|
|
1387
1434
|
});
|
|
1388
1435
|
var TakeSchema = external_exports.strictObject({
|
|
1389
1436
|
version: external_exports.literal(1),
|
|
@@ -1415,10 +1462,17 @@ var TakeSchema = external_exports.strictObject({
|
|
|
1415
1462
|
submittedAt: Iso,
|
|
1416
1463
|
expiresAt: Iso,
|
|
1417
1464
|
amountAtomic: Digits2,
|
|
1465
|
+
/** The wallet that signed the submit's payment, whatever its scheme: the
|
|
1466
|
+
* only wallet a seller's sign-in on a poll is answered with. A take from
|
|
1467
|
+
* before has none; its authorization's `from` stands in. */
|
|
1468
|
+
payer: external_exports.string().max(64).optional(),
|
|
1418
1469
|
/** The submit's authorization, which its ledger row is found by. */
|
|
1419
1470
|
authorization: Authorization.optional(),
|
|
1420
1471
|
/** The submit's settlement, when the seller named it: paid for certain. */
|
|
1421
1472
|
txHash: external_exports.string().regex(/^0x[0-9a-fA-F]{64}$/).optional(),
|
|
1473
|
+
/** The chain showed the submit's authorization used when its paid leg was
|
|
1474
|
+
* cut off: paid for certain, with no tx named. */
|
|
1475
|
+
settled: external_exports.boolean().optional(),
|
|
1422
1476
|
/** The submit's HTTP status. */
|
|
1423
1477
|
httpStatus: external_exports.number().int().optional(),
|
|
1424
1478
|
state: external_exports.enum(["running", "done", "failed", "expired"]),
|
|
@@ -1689,7 +1743,7 @@ async function requestTool(args, deps) {
|
|
|
1689
1743
|
nextStep: "Call request({source}) for the account's tools."
|
|
1690
1744
|
});
|
|
1691
1745
|
}
|
|
1692
|
-
return (await import("./explicit-
|
|
1746
|
+
return (await import("./explicit-ME2NRADQ.js")).runSourceRequest(
|
|
1693
1747
|
{
|
|
1694
1748
|
source: args.source,
|
|
1695
1749
|
...args.tool !== void 0 ? { tool: args.tool } : {},
|
|
@@ -1746,7 +1800,7 @@ async function requestTool(args, deps) {
|
|
|
1746
1800
|
);
|
|
1747
1801
|
}
|
|
1748
1802
|
if (input === void 0)
|
|
1749
|
-
return (await import("./run-
|
|
1803
|
+
return (await import("./run-JH7ELYAM.js")).showAccountSpec(id, kept.spec, deps.ctx.dataDir);
|
|
1750
1804
|
}
|
|
1751
1805
|
const spec = kept !== null && kept.account !== true ? kept.spec : null;
|
|
1752
1806
|
if (spec !== null && input === void 0) return showSpec(id, spec);
|
|
@@ -1821,13 +1875,13 @@ async function requestTool(args, deps) {
|
|
|
1821
1875
|
return runChoiceSet(id, set, input, deps, footer, decisionDeps, settings);
|
|
1822
1876
|
}
|
|
1823
1877
|
if (kept?.account === true && input !== void 0) {
|
|
1824
|
-
const { runAccountSpec } = await import("./run-
|
|
1878
|
+
const { runAccountSpec } = await import("./run-JH7ELYAM.js");
|
|
1825
1879
|
return runAccountSpec(id, kept.spec, input, deps, footer, decisionDeps);
|
|
1826
1880
|
}
|
|
1827
1881
|
if (spec !== null && input !== void 0) {
|
|
1828
1882
|
const run = () => count !== void 0 ? runCount(id, spec, input, count, deps, footer, decisionDeps, settings) : runSpec(id, spec, input, deps, footer, decisionDeps);
|
|
1829
1883
|
if (kept?.account !== true && kept?.replaces !== void 0) {
|
|
1830
|
-
const { runInPlaceOf } = await import("./run-
|
|
1884
|
+
const { runInPlaceOf } = await import("./run-JH7ELYAM.js");
|
|
1831
1885
|
return runInPlaceOf(kept.replaces, id, run, deps.ctx.dataDir);
|
|
1832
1886
|
}
|
|
1833
1887
|
return run();
|
|
@@ -1871,7 +1925,7 @@ async function requestTool(args, deps) {
|
|
|
1871
1925
|
if (decision.action === "spec") {
|
|
1872
1926
|
if (isAccountSpec(decision.spec)) {
|
|
1873
1927
|
const lead = { ...decision.spec, id: decision.id };
|
|
1874
|
-
const shown = await (await import("./run-
|
|
1928
|
+
const shown = await (await import("./run-JH7ELYAM.js")).offerAccountLead(lead, settingsHash, deps, decisionDeps, decision.hint);
|
|
1875
1929
|
await footer.done("service found");
|
|
1876
1930
|
return shown;
|
|
1877
1931
|
}
|
|
@@ -1987,7 +2041,7 @@ async function readToolList(args, deps, sent) {
|
|
|
1987
2041
|
if (decision.action === "spec") {
|
|
1988
2042
|
if (isAccountSpec(decision.spec)) {
|
|
1989
2043
|
const lead = { ...decision.spec, id: decision.id };
|
|
1990
|
-
return (await import("./run-
|
|
2044
|
+
return (await import("./run-JH7ELYAM.js")).offerAccountLead(
|
|
1991
2045
|
lead,
|
|
1992
2046
|
settingsHash,
|
|
1993
2047
|
deps,
|
|
@@ -2277,6 +2331,7 @@ async function payAndDeliver(call, admission, deps, footer) {
|
|
|
2277
2331
|
{
|
|
2278
2332
|
...deps.payDeps ?? {},
|
|
2279
2333
|
...deps.provider !== void 0 ? { provider: deps.provider } : {},
|
|
2334
|
+
...deps.paymentSignal !== void 0 ? { signal: deps.paymentSignal } : {},
|
|
2280
2335
|
authorizer: signing.authorizer,
|
|
2281
2336
|
confirm: async () => false
|
|
2282
2337
|
}
|
|
@@ -2297,6 +2352,7 @@ async function payAndDeliver(call, admission, deps, footer) {
|
|
|
2297
2352
|
...leg?.header !== void 0 ? { header: leg.header } : {},
|
|
2298
2353
|
providerAtomic,
|
|
2299
2354
|
...tx,
|
|
2355
|
+
...data.payer !== void 0 ? { payer: data.payer } : {},
|
|
2300
2356
|
...data.authorization !== void 0 ? { authorization: data.authorization } : {}
|
|
2301
2357
|
});
|
|
2302
2358
|
return { ...job, left: left() };
|
|
@@ -2317,6 +2373,7 @@ async function payAndDeliver(call, admission, deps, footer) {
|
|
|
2317
2373
|
{
|
|
2318
2374
|
providerAtomic,
|
|
2319
2375
|
...tx,
|
|
2376
|
+
...data.payer !== void 0 ? { payer: data.payer } : {},
|
|
2320
2377
|
...data.authorization !== void 0 ? { authorization: data.authorization } : {},
|
|
2321
2378
|
ledger: "append"
|
|
2322
2379
|
}
|
|
@@ -2354,7 +2411,10 @@ async function payAndDeliver(call, admission, deps, footer) {
|
|
|
2354
2411
|
text: "",
|
|
2355
2412
|
header: cutHeader,
|
|
2356
2413
|
providerAtomic: leftAtomic,
|
|
2357
|
-
...detail.
|
|
2414
|
+
...detail.reportedTxHash !== void 0 ? { reportedTxHash: detail.reportedTxHash } : {},
|
|
2415
|
+
...detail.payer !== void 0 ? { payer: detail.payer } : {},
|
|
2416
|
+
...detail.authorization !== void 0 ? { authorization: detail.authorization } : {},
|
|
2417
|
+
...detail.settlement === "settled" ? { settled: true } : {}
|
|
2358
2418
|
});
|
|
2359
2419
|
return { ...job, left: { amountAtomic: leftAtomic, signed: true } };
|
|
2360
2420
|
}
|
|
@@ -2373,7 +2433,10 @@ async function payAndDeliver(call, admission, deps, footer) {
|
|
|
2373
2433
|
await appendPaidRecord(
|
|
2374
2434
|
deps.ctx.dataDir,
|
|
2375
2435
|
paidRecord(call, built.url, call.sent, leftAtomic, {
|
|
2436
|
+
...detail.reportedTxHash !== void 0 ? { reportedTxHash: detail.reportedTxHash } : {},
|
|
2437
|
+
...detail.payer !== void 0 ? { payer: detail.payer } : {},
|
|
2376
2438
|
...detail.authorization !== void 0 ? { authorization: detail.authorization } : {},
|
|
2439
|
+
...detail.settlement === "settled" ? { settled: true } : {},
|
|
2377
2440
|
savedFiles: [],
|
|
2378
2441
|
...deps.now !== void 0 ? { now: deps.now } : {}
|
|
2379
2442
|
})
|
|
@@ -2399,6 +2462,9 @@ async function payAndDeliver(call, admission, deps, footer) {
|
|
|
2399
2462
|
// THE SELLER SAID IT DID NOT SETTLE, and why: what an empty `{}` body
|
|
2400
2463
|
// beside a rejected payment leaves out.
|
|
2401
2464
|
...typeof detail.settlementError === "string" ? { settlementError: detail.settlementError } : {},
|
|
2465
|
+
// THE SELLER'S REASON FOR REFUSING THE PAYMENT, from its 402's own
|
|
2466
|
+
// PAYMENT-REQUIRED header, which the body may not repeat.
|
|
2467
|
+
...typeof detail.paymentError === "string" ? { paymentError: detail.paymentError } : {},
|
|
2402
2468
|
// WHAT WAS SENT, on a failure too: the agent cannot match a 400 to a
|
|
2403
2469
|
// field it cannot see.
|
|
2404
2470
|
request: { method: built.method, url: built.url },
|
|
@@ -2468,6 +2534,7 @@ async function deliverResult(call, deps, footer, got, money) {
|
|
|
2468
2534
|
deps.ctx.dataDir,
|
|
2469
2535
|
paidRecord(call, built.url, call.sent, providerAtomic, {
|
|
2470
2536
|
...money.txHash !== void 0 ? { txHash: money.txHash } : {},
|
|
2537
|
+
...money.payer !== void 0 ? { payer: money.payer } : {},
|
|
2471
2538
|
...money.authorization !== void 0 ? { authorization: money.authorization } : {},
|
|
2472
2539
|
savedFiles,
|
|
2473
2540
|
...account !== void 0 ? { account: account.source } : {},
|
|
@@ -2558,7 +2625,10 @@ async function startJob(call, job, deps, footer, submit) {
|
|
|
2558
2625
|
deps.ctx.dataDir,
|
|
2559
2626
|
paidRecord(call, built.url, call.sent, providerAtomic, {
|
|
2560
2627
|
...submit.txHash !== void 0 ? { txHash: submit.txHash } : {},
|
|
2628
|
+
...submit.reportedTxHash !== void 0 ? { reportedTxHash: submit.reportedTxHash } : {},
|
|
2629
|
+
...submit.payer !== void 0 ? { payer: submit.payer } : {},
|
|
2561
2630
|
...submit.authorization !== void 0 ? { authorization: submit.authorization } : {},
|
|
2631
|
+
...submit.settled === true ? { settled: true } : {},
|
|
2562
2632
|
savedFiles: [],
|
|
2563
2633
|
now
|
|
2564
2634
|
})
|
|
@@ -2573,13 +2643,13 @@ async function startJob(call, job, deps, footer, submit) {
|
|
|
2573
2643
|
await footer.done("failed", shown);
|
|
2574
2644
|
return {
|
|
2575
2645
|
outcome: { status: "failed", ...httpStatus },
|
|
2576
|
-
result: fail("failed", `${reason} ${paidNothing(providerAtomic, submit
|
|
2646
|
+
result: fail("failed", `${reason} ${paidNothing(providerAtomic, submit)}`, {
|
|
2577
2647
|
providerAtomic,
|
|
2578
|
-
settlement: submit
|
|
2648
|
+
settlement: settledOf(submit) ? "settled" : "unknown",
|
|
2579
2649
|
...submit.status !== void 0 ? { providerStatus: submit.status } : {},
|
|
2580
2650
|
request: { method: built.method, url: built.url },
|
|
2581
2651
|
...parameters,
|
|
2582
|
-
nextStep: failedNextStep(submit
|
|
2652
|
+
nextStep: failedNextStep(settledOf(submit)),
|
|
2583
2653
|
...extras
|
|
2584
2654
|
})
|
|
2585
2655
|
};
|
|
@@ -2631,8 +2701,10 @@ async function startJob(call, job, deps, footer, submit) {
|
|
|
2631
2701
|
submittedAt: new Date(submit.submittedAt).toISOString(),
|
|
2632
2702
|
expiresAt: new Date(submit.submittedAt + job.spec.keepH * 36e5).toISOString(),
|
|
2633
2703
|
amountAtomic: providerAtomic.toString(),
|
|
2704
|
+
...submit.payer !== void 0 ? { payer: submit.payer } : {},
|
|
2634
2705
|
...submit.authorization !== void 0 ? { authorization: submit.authorization } : {},
|
|
2635
2706
|
...submit.txHash !== void 0 ? { txHash: submit.txHash } : {},
|
|
2707
|
+
...submit.settled === true ? { settled: true } : {},
|
|
2636
2708
|
...httpStatus,
|
|
2637
2709
|
state: "running",
|
|
2638
2710
|
savedFiles: [],
|
|
@@ -2650,24 +2722,38 @@ async function startJob(call, job, deps, footer, submit) {
|
|
|
2650
2722
|
const answer = await pollUntil(
|
|
2651
2723
|
take,
|
|
2652
2724
|
{ deadline, firstWaitMs: job.spec.everyS * 1e3 },
|
|
2653
|
-
pollDeps(deps)
|
|
2725
|
+
pollDeps(deps, take)
|
|
2654
2726
|
);
|
|
2655
2727
|
return finishTake(take, answer, deps, footer, { kept, parameters: call.parameters });
|
|
2656
2728
|
}
|
|
2657
|
-
function
|
|
2729
|
+
function settledOf(money) {
|
|
2730
|
+
return money.txHash !== void 0 || money.settled === true;
|
|
2731
|
+
}
|
|
2732
|
+
function paidNothing(amountAtomic, money) {
|
|
2658
2733
|
const usd2 = `$${toMoney(amountAtomic.toString()).usd}`;
|
|
2659
|
-
|
|
2734
|
+
if (money.txHash !== void 0) {
|
|
2735
|
+
return `It was paid (${usd2}, settled in tx ${money.txHash}) and nothing came back.`;
|
|
2736
|
+
}
|
|
2737
|
+
return money.settled === true ? `It was paid (${usd2}; the chain shows the payment taken) and nothing came back.` : `It was paid (${usd2}) and nothing came back; whether that payment settles is unknown until its authorization expires.`;
|
|
2660
2738
|
}
|
|
2661
|
-
function failedNextStep(
|
|
2662
|
-
return
|
|
2739
|
+
function failedNextStep(settled) {
|
|
2740
|
+
return settled ? "Tell the user it was paid and nothing came back; the payment is in `tenjin payments`. A new call pays again." : "Tell the user. The payment is in `tenjin payments`; one the seller never settles is given back to the daily budget once its authorization expires. A new call pays again.";
|
|
2663
2741
|
}
|
|
2664
|
-
function pollDeps(deps) {
|
|
2742
|
+
function pollDeps(deps, take) {
|
|
2743
|
+
const provider = deps.provider ?? deps.payDeps?.provider;
|
|
2744
|
+
const from = take !== void 0 ? payerOf(take) : void 0;
|
|
2665
2745
|
return {
|
|
2666
2746
|
...deps.pollTransport !== void 0 ? { transport: deps.pollTransport } : {},
|
|
2667
2747
|
...deps.payDeps?.destination !== void 0 ? { destination: deps.payDeps.destination } : {},
|
|
2668
2748
|
...deps.now !== void 0 ? { now: deps.now } : {},
|
|
2669
2749
|
...deps.sleep !== void 0 ? { sleep: deps.sleep } : {},
|
|
2670
|
-
...deps.onPoll !== void 0 ? { onPoll: deps.onPoll } : {}
|
|
2750
|
+
...deps.onPoll !== void 0 ? { onPoll: deps.onPoll } : {},
|
|
2751
|
+
...take !== void 0 ? {
|
|
2752
|
+
signIn: (challenge, url) => signInForPoll(challenge, url, deps.ctx, {
|
|
2753
|
+
...provider !== void 0 ? { provider } : {},
|
|
2754
|
+
paidBy: { ...from !== void 0 ? { from } : {}, url: take.call.url }
|
|
2755
|
+
})
|
|
2756
|
+
} : {}
|
|
2671
2757
|
};
|
|
2672
2758
|
}
|
|
2673
2759
|
function callOf(take, parameters) {
|
|
@@ -2761,10 +2847,10 @@ async function finishTake(take, answer, deps, footer, opts) {
|
|
|
2761
2847
|
status: "running",
|
|
2762
2848
|
...take.httpStatus !== void 0 ? { httpStatus: take.httpStatus } : {}
|
|
2763
2849
|
},
|
|
2764
|
-
result: runningResult(take, call, opts.kept, answer.reason)
|
|
2850
|
+
result: answer.otherWallet !== void 0 ? otherWalletResult(take, call, opts.kept, answer.otherWallet) : runningResult(take, call, opts.kept, answer.reason)
|
|
2765
2851
|
};
|
|
2766
2852
|
}
|
|
2767
|
-
const reason = `${answer.state === "expired" ? `${take.call.provider} no longer has this job (HTTP ${answer.status}).` : `${take.call.provider}: ${answer.reason}.`} ${paidNothing(providerAtomic, take
|
|
2853
|
+
const reason = `${answer.state === "expired" ? `${take.call.provider} no longer has this job (HTTP ${answer.status}).` : `${take.call.provider}: ${answer.reason}.`} ${paidNothing(providerAtomic, take)}`;
|
|
2768
2854
|
const said = answer.state === "failed" ? answer.said : void 0;
|
|
2769
2855
|
const ended = await end({
|
|
2770
2856
|
state: answer.state,
|
|
@@ -2784,12 +2870,12 @@ async function finishTake(take, answer, deps, footer, opts) {
|
|
|
2784
2870
|
function failedResult(take, reason, status, said, parameters) {
|
|
2785
2871
|
return fail("failed", reason, {
|
|
2786
2872
|
providerAtomic: BigInt(take.amountAtomic),
|
|
2787
|
-
settlement: take
|
|
2873
|
+
settlement: settledOf(take) ? "settled" : "unknown",
|
|
2788
2874
|
...status !== void 0 ? { providerStatus: status } : {},
|
|
2789
2875
|
...said !== void 0 ? { providerError: said } : {},
|
|
2790
2876
|
request: { method: take.poll.method, url: take.poll.url },
|
|
2791
2877
|
...parameters !== void 0 ? { parameters } : {},
|
|
2792
|
-
nextStep: failedNextStep(take
|
|
2878
|
+
nextStep: failedNextStep(settledOf(take))
|
|
2793
2879
|
});
|
|
2794
2880
|
}
|
|
2795
2881
|
function withJob(result, offerId) {
|
|
@@ -2819,6 +2905,22 @@ function runningResult(take, call, kept, note) {
|
|
|
2819
2905
|
}
|
|
2820
2906
|
};
|
|
2821
2907
|
}
|
|
2908
|
+
function otherWalletResult(take, call, kept, wallet) {
|
|
2909
|
+
const running = runningResult(take, call, kept);
|
|
2910
|
+
const reason = `${supplierOf(take.call.url)} returns this result only to the wallet that paid for it (${wallet.paidBy}), and this machine's wallet is now ${wallet.current}, so nothing was signed. The job is still running; nothing more was paid.`;
|
|
2911
|
+
const nextStep = kept ? `Tell the user this job was paid by the wallet ${wallet.paidBy}. Once this machine uses that wallet again, call request({job: ${JSON.stringify(take.offerId)}}); nothing more is paid. Do not call request again for a new result: it would pay again.` : String(running.envelope.nextStep);
|
|
2912
|
+
return {
|
|
2913
|
+
isError: true,
|
|
2914
|
+
summary: `${reason} ${nextStep}`,
|
|
2915
|
+
envelope: {
|
|
2916
|
+
...running.envelope,
|
|
2917
|
+
reason,
|
|
2918
|
+
reasonCode: "sign_in_wallet",
|
|
2919
|
+
paidBy: wallet.paidBy,
|
|
2920
|
+
nextStep
|
|
2921
|
+
}
|
|
2922
|
+
};
|
|
2923
|
+
}
|
|
2822
2924
|
function unsavedResult(take, call, kept, why) {
|
|
2823
2925
|
const running = runningResult(
|
|
2824
2926
|
take,
|
|
@@ -2867,7 +2969,7 @@ function endedResult(take, opts = {}) {
|
|
|
2867
2969
|
return withJob(
|
|
2868
2970
|
failedResult(
|
|
2869
2971
|
take,
|
|
2870
|
-
take.reason ?? `${take.call.provider}: the job ended without a result. ${paidNothing(BigInt(take.amountAtomic), take
|
|
2972
|
+
take.reason ?? `${take.call.provider}: the job ended without a result. ${paidNothing(BigInt(take.amountAtomic), take)}`,
|
|
2871
2973
|
void 0,
|
|
2872
2974
|
take.said
|
|
2873
2975
|
),
|
|
@@ -2879,7 +2981,7 @@ async function resumeJob(offerId, deps) {
|
|
|
2879
2981
|
const accountJob = await readAccountJob(dataDir, offerId);
|
|
2880
2982
|
if (accountJob !== null) {
|
|
2881
2983
|
const settings2 = await resolveContextSettings(deps.ctx);
|
|
2882
|
-
return (await import("./run-
|
|
2984
|
+
return (await import("./run-JH7ELYAM.js")).resumeAccountJob(accountJob, deps, {
|
|
2883
2985
|
ctx: deps.ctx,
|
|
2884
2986
|
baseUrl: settings2.baseUrl,
|
|
2885
2987
|
acceptsBazaar: settings2.experimentalBazaar,
|
|
@@ -2912,7 +3014,7 @@ async function resumeJob(offerId, deps) {
|
|
|
2912
3014
|
deps.waitsForJobs === true ? Math.max(waited, Date.parse(take.submittedAt) + take.job.maxWaitS * 1e3) : waited,
|
|
2913
3015
|
Date.parse(take.expiresAt)
|
|
2914
3016
|
);
|
|
2915
|
-
const answer = await pollUntil(take, { deadline, firstWaitMs: 0 }, pollDeps(deps));
|
|
3017
|
+
const answer = await pollUntil(take, { deadline, firstWaitMs: 0 }, pollDeps(deps, take));
|
|
2916
3018
|
const done = await finishTake(take, answer, deps, SILENT_FOOTER, { kept: true });
|
|
2917
3019
|
return { take, result: done.result, outcome: done.outcome };
|
|
2918
3020
|
})
|
|
@@ -3030,40 +3132,13 @@ function paidRecord(decision, url, sent, amountAtomic, opts) {
|
|
|
3030
3132
|
sent: recordedSent(sent),
|
|
3031
3133
|
amountAtomic: amountAtomic.toString(),
|
|
3032
3134
|
...opts.txHash !== void 0 ? { txHash: opts.txHash } : {},
|
|
3033
|
-
|
|
3135
|
+
...opts.reportedTxHash !== void 0 ? { reportedTxHash: opts.reportedTxHash } : {},
|
|
3136
|
+
settlement: opts.account !== void 0 ? "account" : opts.txHash !== void 0 || opts.settled === true ? "settled" : "unknown",
|
|
3034
3137
|
savedFiles: opts.savedFiles,
|
|
3138
|
+
...opts.payer !== void 0 ? { payer: opts.payer } : {},
|
|
3035
3139
|
...opts.authorization !== void 0 ? { authorization: opts.authorization } : {}
|
|
3036
3140
|
};
|
|
3037
3141
|
}
|
|
3038
|
-
var EXTENSIONS = {
|
|
3039
|
-
"audio/mpeg": "mp3",
|
|
3040
|
-
"audio/mp3": "mp3",
|
|
3041
|
-
"audio/wav": "wav",
|
|
3042
|
-
"audio/x-wav": "wav",
|
|
3043
|
-
"audio/wave": "wav",
|
|
3044
|
-
"audio/ogg": "ogg",
|
|
3045
|
-
"audio/aac": "aac",
|
|
3046
|
-
"audio/flac": "flac",
|
|
3047
|
-
"audio/webm": "webm",
|
|
3048
|
-
"image/png": "png",
|
|
3049
|
-
"image/jpeg": "jpg",
|
|
3050
|
-
"image/gif": "gif",
|
|
3051
|
-
"image/webp": "webp",
|
|
3052
|
-
"image/svg+xml": "svg",
|
|
3053
|
-
"image/avif": "avif",
|
|
3054
|
-
"audio/mp4": "m4a",
|
|
3055
|
-
"audio/x-m4a": "m4a",
|
|
3056
|
-
"video/quicktime": "mov",
|
|
3057
|
-
"video/mp4": "mp4",
|
|
3058
|
-
"video/webm": "webm",
|
|
3059
|
-
"application/pdf": "pdf",
|
|
3060
|
-
"application/zip": "zip",
|
|
3061
|
-
"application/octet-stream": "bin"
|
|
3062
|
-
};
|
|
3063
|
-
function extensionFor(contentType) {
|
|
3064
|
-
const type = contentType.split(";")[0].trim().toLowerCase();
|
|
3065
|
-
return EXTENSIONS[type] ?? "bin";
|
|
3066
|
-
}
|
|
3067
3142
|
async function saveBinary(dataDir, capabilityId, bytes, opts) {
|
|
3068
3143
|
const described = { contentType: opts.contentType, bytes: bytes.byteLength };
|
|
3069
3144
|
if (opts.budget !== void 0 && bytes.byteLength > opts.budget.leftBytes) {
|
|
@@ -3071,17 +3146,13 @@ async function saveBinary(dataDir, capabilityId, bytes, opts) {
|
|
|
3071
3146
|
}
|
|
3072
3147
|
if (opts.budget !== void 0) opts.budget.leftBytes -= bytes.byteLength;
|
|
3073
3148
|
try {
|
|
3074
|
-
const
|
|
3149
|
+
const savedTo = await writeNewFile(
|
|
3075
3150
|
downloadsDir(dataDir),
|
|
3076
3151
|
`${capabilityId.slice(0, 80)}-${(opts.now ?? Date.now)()}`,
|
|
3077
|
-
|
|
3152
|
+
opts.contentType,
|
|
3153
|
+
bytes
|
|
3078
3154
|
);
|
|
3079
|
-
|
|
3080
|
-
await writeAll(file.handle, bytes);
|
|
3081
|
-
} finally {
|
|
3082
|
-
await file.handle.close();
|
|
3083
|
-
}
|
|
3084
|
-
return { savedTo: file.path, ...described };
|
|
3155
|
+
return { savedTo, ...described };
|
|
3085
3156
|
} catch (err) {
|
|
3086
3157
|
if (opts.budget !== void 0) opts.budget.leftBytes += bytes.byteLength;
|
|
3087
3158
|
return { saveError: err instanceof Error ? err.message : String(err), ...described };
|
|
@@ -3245,6 +3316,7 @@ function fail(status, reason, extras = {}) {
|
|
|
3245
3316
|
...extras.providerStatus !== void 0 ? { providerStatus: extras.providerStatus } : {},
|
|
3246
3317
|
...extras.providerError !== void 0 ? { providerError: extras.providerError } : {},
|
|
3247
3318
|
...extras.settlementError !== void 0 ? { settlementError: extras.settlementError } : {},
|
|
3319
|
+
...extras.paymentError !== void 0 ? { paymentError: extras.paymentError } : {},
|
|
3248
3320
|
...extras.statusUrl !== void 0 ? { statusUrl: extras.statusUrl } : {},
|
|
3249
3321
|
...extras.request !== void 0 ? { request: extras.request } : {},
|
|
3250
3322
|
...extras.parameters !== void 0 ? { parameters: extras.parameters } : {},
|
|
@@ -3273,4 +3345,4 @@ export {
|
|
|
3273
3345
|
settingsFail,
|
|
3274
3346
|
fail
|
|
3275
3347
|
};
|
|
3276
|
-
//# sourceMappingURL=chunk-
|
|
3348
|
+
//# sourceMappingURL=chunk-5HN4KVQU.js.map
|