tenjin-cli 0.1.0-alpha.20 → 0.1.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +17 -2
  2. package/dist/{chunk-3BS55ANY.js → chunk-2AQO4YDI.js} +50 -4
  3. package/dist/{chunk-3BS55ANY.js.map → chunk-2AQO4YDI.js.map} +1 -1
  4. package/dist/{chunk-HH3PDYIG.js → chunk-3EUTWC2B.js} +5 -5
  5. package/dist/{chunk-BTX2QE2Y.js → chunk-AQRUD5GQ.js} +2 -2
  6. package/dist/{chunk-CXUYCDPX.js → chunk-C363JZN2.js} +4 -4
  7. package/dist/{chunk-PO4HAXAW.js → chunk-ETW2ASBP.js} +52 -18
  8. package/dist/chunk-ETW2ASBP.js.map +1 -0
  9. package/dist/{chunk-RPR2C2JO.js → chunk-GHTPYKDT.js} +5 -5
  10. package/dist/{chunk-5KD5HRAJ.js → chunk-IOB7URFH.js} +3 -2
  11. package/dist/chunk-IOB7URFH.js.map +1 -0
  12. package/dist/{chunk-5FYKPQNX.js → chunk-IOIHYOU4.js} +3 -3
  13. package/dist/{chunk-LN2HISWU.js → chunk-JN7TMXVF.js} +2 -2
  14. package/dist/{chunk-TU7XH3JJ.js → chunk-K6AXXYCG.js} +14 -2
  15. package/dist/chunk-K6AXXYCG.js.map +1 -0
  16. package/dist/{chunk-2G2WLVHB.js → chunk-LAIZ2AQA.js} +9 -4
  17. package/dist/chunk-LAIZ2AQA.js.map +1 -0
  18. package/dist/{chunk-YREKMJPP.js → chunk-N4DJEQAF.js} +65 -6
  19. package/dist/chunk-N4DJEQAF.js.map +1 -0
  20. package/dist/{chunk-NSG5TVZQ.js → chunk-OSUD6YZZ.js} +14 -10
  21. package/dist/chunk-OSUD6YZZ.js.map +1 -0
  22. package/dist/{chunk-2E6GVIRP.js → chunk-OTPEH3AH.js} +47 -9
  23. package/dist/chunk-OTPEH3AH.js.map +1 -0
  24. package/dist/{chunk-LI44XLMB.js → chunk-PJEG2JIJ.js} +5 -5
  25. package/dist/{chunk-4M5FBWT5.js → chunk-QF4SSCQV.js} +10 -1
  26. package/dist/chunk-QF4SSCQV.js.map +1 -0
  27. package/dist/chunk-QHILSA6G.js +82 -0
  28. package/dist/chunk-QHILSA6G.js.map +1 -0
  29. package/dist/{chunk-72UHZRG6.js → chunk-QRFONFRW.js} +2 -2
  30. package/dist/{chunk-P42QX3QF.js → chunk-RCJQARZF.js} +2 -2
  31. package/dist/{chunk-P42QX3QF.js.map → chunk-RCJQARZF.js.map} +1 -1
  32. package/dist/chunk-SRVDXR6B.js +337 -0
  33. package/dist/chunk-SRVDXR6B.js.map +1 -0
  34. package/dist/{chunk-7ACHDNJA.js → chunk-U2ATFMKZ.js} +13 -4
  35. package/dist/chunk-U2ATFMKZ.js.map +1 -0
  36. package/dist/{chunk-4AS52HUG.js → chunk-UY2TOI3B.js} +70 -27
  37. package/dist/chunk-UY2TOI3B.js.map +1 -0
  38. package/dist/{chunk-CCDOV45D.js → chunk-W3LVZ2EN.js} +25 -8
  39. package/dist/{chunk-CCDOV45D.js.map → chunk-W3LVZ2EN.js.map} +1 -1
  40. package/dist/{chunk-YEBNE5NW.js → chunk-YVODPFTL.js} +5 -5
  41. package/dist/{cli-XJQYUOHI.js → cli-7KJ4QLUU.js} +42 -29
  42. package/dist/{cli-XJQYUOHI.js.map → cli-7KJ4QLUU.js.map} +1 -1
  43. package/dist/{config-KMJLFPSI.js → config-MSN6H4MD.js} +10 -8
  44. package/dist/{doctor-KMN55D7U.js → doctor-ITUCKN6C.js} +25 -16
  45. package/dist/{doctor-KMN55D7U.js.map → doctor-ITUCKN6C.js.map} +1 -1
  46. package/dist/{fund-LT6ZPGEQ.js → fund-XPB4IIG5.js} +11 -11
  47. package/dist/{hook-command-U5XPEHAJ.js → hook-command-VVV2Q23L.js} +293 -80
  48. package/dist/hook-command-VVV2Q23L.js.map +1 -0
  49. package/dist/index.js +4 -4
  50. package/dist/{install-MMNXJ5LM.js → install-OSJRM2ME.js} +13 -11
  51. package/dist/{install-identity-B7FVIWML.js → install-identity-YIWKQOUD.js} +7 -7
  52. package/dist/{install-wallet-XMVUBCHS.js → install-wallet-BWJO2SUC.js} +10 -10
  53. package/dist/{mcp-TUPRIPSI.js → mcp-KE5YKPS2.js} +203 -29
  54. package/dist/{mcp-TUPRIPSI.js.map → mcp-KE5YKPS2.js.map} +1 -1
  55. package/dist/{paths-LRMWNTJP.js → paths-MUXHUOCM.js} +8 -2
  56. package/dist/{pay-XAWW3NV3.js → pay-MUV2U232.js} +18 -16
  57. package/dist/payments-4D27K4L2.js +48 -0
  58. package/dist/payments-4D27K4L2.js.map +1 -0
  59. package/dist/{send-HESQYRKM.js → send-BXHFKDBF.js} +10 -10
  60. package/dist/{status-ANZPRZJJ.js → status-3Z3YPRSE.js} +6 -6
  61. package/dist/{status-line-J3TUWVRQ.js → status-line-CKRMGZ3Q.js} +7 -7
  62. package/dist/{status-line-wiring-HSV7DXO5.js → status-line-wiring-GECLIIBT.js} +5 -5
  63. package/dist/tenjin-daemon.mjs +57 -6
  64. package/dist/{uninstall-GUU34YKP.js → uninstall-BZTVWJ7W.js} +11 -11
  65. package/dist/{update-KO2NZRJ5.js → update-IQQTEOI5.js} +6 -6
  66. package/dist/{wallet-3URC5QPK.js → wallet-UFXQ57TZ.js} +10 -10
  67. package/docs/agent-permissions.md +4 -2
  68. package/docs/safety-model.md +2 -2
  69. package/package.json +1 -1
  70. package/dist/chunk-2E6GVIRP.js.map +0 -1
  71. package/dist/chunk-2G2WLVHB.js.map +0 -1
  72. package/dist/chunk-3KKKB2AQ.js +0 -40
  73. package/dist/chunk-3KKKB2AQ.js.map +0 -1
  74. package/dist/chunk-4AS52HUG.js.map +0 -1
  75. package/dist/chunk-4M5FBWT5.js.map +0 -1
  76. package/dist/chunk-5KD5HRAJ.js.map +0 -1
  77. package/dist/chunk-7ACHDNJA.js.map +0 -1
  78. package/dist/chunk-NSG5TVZQ.js.map +0 -1
  79. package/dist/chunk-PO4HAXAW.js.map +0 -1
  80. package/dist/chunk-TU7XH3JJ.js.map +0 -1
  81. package/dist/chunk-YREKMJPP.js.map +0 -1
  82. package/dist/hook-command-U5XPEHAJ.js.map +0 -1
  83. /package/dist/{chunk-HH3PDYIG.js.map → chunk-3EUTWC2B.js.map} +0 -0
  84. /package/dist/{chunk-BTX2QE2Y.js.map → chunk-AQRUD5GQ.js.map} +0 -0
  85. /package/dist/{chunk-CXUYCDPX.js.map → chunk-C363JZN2.js.map} +0 -0
  86. /package/dist/{chunk-RPR2C2JO.js.map → chunk-GHTPYKDT.js.map} +0 -0
  87. /package/dist/{chunk-5FYKPQNX.js.map → chunk-IOIHYOU4.js.map} +0 -0
  88. /package/dist/{chunk-LN2HISWU.js.map → chunk-JN7TMXVF.js.map} +0 -0
  89. /package/dist/{chunk-LI44XLMB.js.map → chunk-PJEG2JIJ.js.map} +0 -0
  90. /package/dist/{chunk-72UHZRG6.js.map → chunk-QRFONFRW.js.map} +0 -0
  91. /package/dist/{chunk-YEBNE5NW.js.map → chunk-YVODPFTL.js.map} +0 -0
  92. /package/dist/{config-KMJLFPSI.js.map → config-MSN6H4MD.js.map} +0 -0
  93. /package/dist/{fund-LT6ZPGEQ.js.map → fund-XPB4IIG5.js.map} +0 -0
  94. /package/dist/{install-MMNXJ5LM.js.map → install-OSJRM2ME.js.map} +0 -0
  95. /package/dist/{install-identity-B7FVIWML.js.map → install-identity-YIWKQOUD.js.map} +0 -0
  96. /package/dist/{install-wallet-XMVUBCHS.js.map → install-wallet-BWJO2SUC.js.map} +0 -0
  97. /package/dist/{paths-LRMWNTJP.js.map → paths-MUXHUOCM.js.map} +0 -0
  98. /package/dist/{pay-XAWW3NV3.js.map → pay-MUV2U232.js.map} +0 -0
  99. /package/dist/{send-HESQYRKM.js.map → send-BXHFKDBF.js.map} +0 -0
  100. /package/dist/{status-ANZPRZJJ.js.map → status-3Z3YPRSE.js.map} +0 -0
  101. /package/dist/{status-line-J3TUWVRQ.js.map → status-line-CKRMGZ3Q.js.map} +0 -0
  102. /package/dist/{status-line-wiring-HSV7DXO5.js.map → status-line-wiring-GECLIIBT.js.map} +0 -0
  103. /package/dist/{uninstall-GUU34YKP.js.map → uninstall-BZTVWJ7W.js.map} +0 -0
  104. /package/dist/{update-KO2NZRJ5.js.map → update-IQQTEOI5.js.map} +0 -0
  105. /package/dist/{wallet-3URC5QPK.js.map → wallet-UFXQ57TZ.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  createLocalSpendAuthorizer
4
- } from "./chunk-YREKMJPP.js";
4
+ } from "./chunk-N4DJEQAF.js";
5
5
  import {
6
6
  hashAuthorization,
7
7
  hashMessage,
@@ -45,13 +45,13 @@ import {
45
45
  } from "./chunk-BPMWXTFX.js";
46
46
  import {
47
47
  emitNotice
48
- } from "./chunk-72UHZRG6.js";
48
+ } from "./chunk-QRFONFRW.js";
49
49
  import {
50
50
  hasCode
51
51
  } from "./chunk-2I4QTOLB.js";
52
52
  import {
53
53
  external_exports
54
- } from "./chunk-CCDOV45D.js";
54
+ } from "./chunk-W3LVZ2EN.js";
55
55
  import {
56
56
  CliError,
57
57
  fsyncDir,
@@ -64,7 +64,7 @@ import {
64
64
  passphraseBlobPathFor,
65
65
  spendLedgerPath,
66
66
  walletPath
67
- } from "./chunk-TU7XH3JJ.js";
67
+ } from "./chunk-K6AXXYCG.js";
68
68
 
69
69
  // src/lib/wallet/store.ts
70
70
  import { readFile, stat } from "node:fs/promises";
@@ -1678,4 +1678,4 @@ export {
1678
1678
  @noble/ciphers/esm/utils.js:
1679
1679
  (*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) *)
1680
1680
  */
1681
- //# sourceMappingURL=chunk-YEBNE5NW.js.map
1681
+ //# sourceMappingURL=chunk-YVODPFTL.js.map
@@ -2,34 +2,34 @@ import { createRequire as __tenjinCreateRequire } from 'node:module'; const requ
2
2
  import {
3
3
  maybeUpdate,
4
4
  readUpdateSignal
5
- } from "./chunk-HH3PDYIG.js";
5
+ } from "./chunk-3EUTWC2B.js";
6
6
  import {
7
7
  defaultIo,
8
8
  emitFailure,
9
9
  emitSuccess
10
- } from "./chunk-72UHZRG6.js";
10
+ } from "./chunk-QRFONFRW.js";
11
11
  import {
12
12
  noteBaseUrlFlag
13
- } from "./chunk-RPR2C2JO.js";
14
- import "./chunk-3BS55ANY.js";
13
+ } from "./chunk-GHTPYKDT.js";
14
+ import "./chunk-2AQO4YDI.js";
15
15
  import {
16
16
  PERMISSIONS_DOC_URL
17
17
  } from "./chunk-A36LQPHV.js";
18
18
  import "./chunk-2I4QTOLB.js";
19
- import "./chunk-5KD5HRAJ.js";
19
+ import "./chunk-IOB7URFH.js";
20
20
  import "./chunk-O2JYBOUO.js";
21
21
  import {
22
22
  external_exports
23
- } from "./chunk-CCDOV45D.js";
23
+ } from "./chunk-W3LVZ2EN.js";
24
24
  import {
25
25
  package_default
26
- } from "./chunk-P42QX3QF.js";
26
+ } from "./chunk-RCJQARZF.js";
27
27
  import {
28
28
  CliError
29
29
  } from "./chunk-JLEF5WHM.js";
30
30
  import {
31
31
  dataDir
32
- } from "./chunk-TU7XH3JJ.js";
32
+ } from "./chunk-K6AXXYCG.js";
33
33
  import {
34
34
  __commonJS,
35
35
  __require,
@@ -3495,7 +3495,7 @@ var INTEGRATION = "Integration:";
3495
3495
  function registerCore(reg) {
3496
3496
  const { runCommand, leaf: leaf2, addGlobalFlags: addGlobalFlags2 } = reg;
3497
3497
  leaf2(SETUP, "install", "set up Tenjin for Claude Code and create a wallet").description(
3498
- "Set up Claude Code to use Tenjin: five hook entries, the `x402` MCP server and its permission rule, spend limits for each lookup, and a wallet if this machine has none."
3498
+ "Set up Claude Code to use Tenjin: seven hook entries, the `x402` MCP server and its permission rule, spend limits for each lookup, and a wallet if this machine has none."
3499
3499
  ).option("--project", "write into this project's .claude/settings.json instead of your home one").option("--no-wallet", "create no wallet").option("--refresh", "re-register the hook entries this machine already has; add nothing").option(
3500
3500
  "--status-line <mode>",
3501
3501
  "the live footer: `own` registers it when you have no status line of your own, `compose` appends it to the one you do have, `skip` leaves the setting alone"
@@ -3513,8 +3513,8 @@ Learn more:
3513
3513
  ).action(async function() {
3514
3514
  await runCommand("install", this, async (ctx) => {
3515
3515
  const o = this.opts();
3516
- const { runRouterInstall } = await import("./install-MMNXJ5LM.js");
3517
- const { statusLineMode } = await import("./status-line-wiring-HSV7DXO5.js");
3516
+ const { runRouterInstall } = await import("./install-OSJRM2ME.js");
3517
+ const { statusLineMode } = await import("./status-line-wiring-GECLIIBT.js");
3518
3518
  return runRouterInstall(
3519
3519
  {
3520
3520
  ...o.project === true ? { project: true } : {},
@@ -3531,7 +3531,7 @@ Learn more:
3531
3531
  ).option("--project", "remove from this project's .claude/settings.json").action(async function() {
3532
3532
  await runCommand("uninstall", this, async (ctx) => {
3533
3533
  const o = this.opts();
3534
- const { runRouterUninstall } = await import("./uninstall-GUU34YKP.js");
3534
+ const { runRouterUninstall } = await import("./uninstall-BZTVWJ7W.js");
3535
3535
  return runRouterUninstall({ ...o.project === true ? { project: true } : {} }, ctx);
3536
3536
  });
3537
3537
  });
@@ -3547,7 +3547,7 @@ Examples:
3547
3547
  `
3548
3548
  ).action(async function() {
3549
3549
  await runCommand("doctor", this, async (ctx) => {
3550
- const { runRouterDoctor } = await import("./doctor-KMN55D7U.js");
3550
+ const { runRouterDoctor } = await import("./doctor-ITUCKN6C.js");
3551
3551
  return runRouterDoctor(ctx, this.opts().project === true ? { project: true } : {});
3552
3552
  });
3553
3553
  });
@@ -3555,7 +3555,7 @@ Examples:
3555
3555
  "Update tenjin-cli to the newest version npm publishes on the latest tag. It then runs `install --refresh` on the new binary, so every profile on this machine gets the skills and hook scripts of the build that just landed."
3556
3556
  ).option("--check", "report whether a newer version exists without installing it").action(async function() {
3557
3557
  await runCommand("update", this, async (ctx) => {
3558
- const { runUpdate } = await import("./update-KO2NZRJ5.js");
3558
+ const { runUpdate } = await import("./update-IQQTEOI5.js");
3559
3559
  return runUpdate({ check: this.opts().check === true }, ctx);
3560
3560
  });
3561
3561
  });
@@ -3574,7 +3574,7 @@ Examples:
3574
3574
  );
3575
3575
  config.action(async function() {
3576
3576
  await runCommand("config", this, async (ctx) => {
3577
- const { runConfigList } = await import("./config-KMJLFPSI.js");
3577
+ const { runConfigList } = await import("./config-MSN6H4MD.js");
3578
3578
  return runConfigList(ctx);
3579
3579
  });
3580
3580
  });
@@ -3582,7 +3582,7 @@ Examples:
3582
3582
  "Print one effective config value by key. The effective value is what the command would use, defaults and environment overrides included."
3583
3583
  ).action(async function(key) {
3584
3584
  await runCommand("config.get", this, async (ctx) => {
3585
- const { runConfigGet } = await import("./config-KMJLFPSI.js");
3585
+ const { runConfigGet } = await import("./config-MSN6H4MD.js");
3586
3586
  return runConfigGet({ key }, ctx);
3587
3587
  });
3588
3588
  });
@@ -3594,7 +3594,7 @@ Examples:
3594
3594
  ).option("--local", "with --project, write .tenjin/config.local.json instead, which is yours").action(async function(key, value) {
3595
3595
  const o = this.opts();
3596
3596
  await runCommand("config.set", this, async (ctx) => {
3597
- const { runConfigSet } = await import("./config-KMJLFPSI.js");
3597
+ const { runConfigSet } = await import("./config-MSN6H4MD.js");
3598
3598
  return runConfigSet(
3599
3599
  { key, value, project: o.project === true, local: o.local === true },
3600
3600
  ctx
@@ -3616,7 +3616,7 @@ Examples:
3616
3616
  ).action(async function() {
3617
3617
  await runCommand("wallet.create", this, async (ctx) => {
3618
3618
  const o = this.opts();
3619
- const { runWalletCreate } = await import("./wallet-3URC5QPK.js");
3619
+ const { runWalletCreate } = await import("./wallet-UFXQ57TZ.js");
3620
3620
  return runWalletCreate(ctx, o.replace === true ? { replace: true } : {});
3621
3621
  });
3622
3622
  });
@@ -3624,7 +3624,7 @@ Examples:
3624
3624
  "Print the active wallet address and where its key comes from. The private key is never printed, by any flag."
3625
3625
  ).action(async function() {
3626
3626
  await runCommand("wallet.show", this, async (ctx) => {
3627
- const { runWalletShow } = await import("./wallet-3URC5QPK.js");
3627
+ const { runWalletShow } = await import("./wallet-UFXQ57TZ.js");
3628
3628
  return runWalletShow(ctx);
3629
3629
  });
3630
3630
  });
@@ -3632,7 +3632,7 @@ Examples:
3632
3632
  "Read the wallet USDC balance on Base. It is a chain read: no key is unlocked and nothing is spent."
3633
3633
  ).action(async function() {
3634
3634
  await runCommand("wallet.balance", this, async (ctx) => {
3635
- const { runWalletBalance } = await import("./wallet-3URC5QPK.js");
3635
+ const { runWalletBalance } = await import("./wallet-UFXQ57TZ.js");
3636
3636
  return runWalletBalance(ctx);
3637
3637
  });
3638
3638
  });
@@ -3644,7 +3644,7 @@ Examples:
3644
3644
  ).action(async function(amountUsd) {
3645
3645
  await runCommand("wallet.fund", this, async (ctx) => {
3646
3646
  const o = this.opts();
3647
- const { runFund } = await import("./fund-LT6ZPGEQ.js");
3647
+ const { runFund } = await import("./fund-XPB4IIG5.js");
3648
3648
  return runFund(ctx, {
3649
3649
  ...amountUsd !== void 0 ? { amountUsd } : {},
3650
3650
  ...o.open === false ? { open: false } : {},
@@ -3663,7 +3663,7 @@ Examples:
3663
3663
  ).action(async function(amount, token, to) {
3664
3664
  await runCommand("wallet.send", this, async (ctx) => {
3665
3665
  const o = this.opts();
3666
- const { runSend } = await import("./send-HESQYRKM.js");
3666
+ const { runSend } = await import("./send-BXHFKDBF.js");
3667
3667
  return runSend({ amount, token, to, ...o.yes === true ? { yes: true } : {} }, ctx);
3668
3668
  });
3669
3669
  });
@@ -3683,7 +3683,7 @@ Examples:
3683
3683
  ).action(async function(url) {
3684
3684
  await runCommand("pay", this, async (ctx) => {
3685
3685
  const o = this.opts();
3686
- const { runPay } = await import("./pay-XAWW3NV3.js");
3686
+ const { runPay } = await import("./pay-MUV2U232.js");
3687
3687
  return runPay(
3688
3688
  {
3689
3689
  url,
@@ -3713,11 +3713,13 @@ function registerRouter(reg) {
3713
3713
  "shortfall",
3714
3714
  "PostToolUse(Failure) on WebSearch|WebFetch: offer a paid lookup when the result came back short"
3715
3715
  ],
3716
- ["agent", "PreToolUse on Agent|Task: append any paid offer to the subagent's task"]
3716
+ ["agent", "PreToolUse on Agent|Task: append any paid offer to the subagent's task"],
3717
+ ["ask", "PreToolUse on AskUserQuestion: allow the question, or redirect it once"],
3718
+ ["answer", "PostToolUse on AskUserQuestion: offer a paid lookup beside the user's answers"]
3717
3719
  ]) {
3718
3720
  addGlobalFlags2(hook.command(name)).summary(summary).action(async function() {
3719
3721
  const ctx = buildContext2(this);
3720
- const { runHookCommand } = await import("./hook-command-U5XPEHAJ.js");
3722
+ const { runHookCommand } = await import("./hook-command-VVV2Q23L.js");
3721
3723
  await runHookCommand(name, io, {
3722
3724
  dataDir: ctx.dataDir,
3723
3725
  ...ctx.flags.baseUrl !== void 0 ? { baseUrl: ctx.flags.baseUrl } : {}
@@ -3730,24 +3732,35 @@ function registerRouter(reg) {
3730
3732
  "Run the local stdio MCP server that carries the `request` tool: one paid routing decision per lookup, then the provider call, under your local spend policy. It speaks on stdin and stdout and runs until the client disconnects, so it prints no envelope of its own."
3731
3733
  ).action(async function() {
3732
3734
  const ctx = buildContext2(this);
3733
- const { runRouterMcpServer } = await import("./mcp-TUPRIPSI.js");
3735
+ const { runRouterMcpServer } = await import("./mcp-KE5YKPS2.js");
3734
3736
  await runRouterMcpServer({ dataDir: ctx.dataDir, flags: ctx.flags });
3735
3737
  });
3736
3738
  leaf2(INTEGRATION, "status-line", "the live footer, for Claude Code's status line").description(
3737
3739
  "Print one line naming what this session is looking up right now: the provider actually being called, its bounded parameters, and what it cost. It reads Claude Code's status event on stdin for the session identity, reads that session's own progress records, writes nothing, and prints `x402 \xB7 ready` when this session has no activity. `tenjin install` registers it; you never run it by hand."
3738
3740
  ).action(async function() {
3739
3741
  const ctx = buildContext2(this);
3740
- const { runStatusLine } = await import("./status-line-J3TUWVRQ.js");
3742
+ const { runStatusLine } = await import("./status-line-CKRMGZ3Q.js");
3741
3743
  await runStatusLine(io, { dataDir: ctx.dataDir });
3742
3744
  });
3743
3745
  leaf2(SETUP, "status", "what this machine has spent, and what is still open").description(
3744
3746
  "Report the rolling 24h spend window from spend.json: what has settled, what is reserved by a request still in flight, and the per-call and per-day caps in force."
3745
3747
  ).action(async function() {
3746
3748
  await runCommand("status", this, async (ctx) => {
3747
- const { runRouterStatus } = await import("./status-ANZPRZJJ.js");
3749
+ const { runRouterStatus } = await import("./status-3Z3YPRSE.js");
3748
3750
  return runRouterStatus(ctx);
3749
3751
  });
3750
3752
  });
3753
+ const payments = leaf2(SETUP, "payments", "the paid lookups this machine made").description(
3754
+ "The local record of paid router lookups, in `~/.tenjin/paid/ledger.jsonl`."
3755
+ );
3756
+ addGlobalFlags2(payments.command("reconcile")).summary("resolve paid lookups whose settlement is unknown").description(
3757
+ "For each paid lookup whose seller never confirmed settlement and whose authorization has expired, ask USDC on Base (through the configured rpcUrl) whether it was used: used means it was charged, unused means it never can be. Nothing is signed or sent but that one read."
3758
+ ).action(async function() {
3759
+ await runCommand("payments.reconcile", this, async (ctx) => {
3760
+ const { runPaymentsReconcile } = await import("./payments-4D27K4L2.js");
3761
+ return runPaymentsReconcile(ctx);
3762
+ });
3763
+ });
3751
3764
  }
3752
3765
 
3753
3766
  // src/cli.ts
@@ -3894,4 +3907,4 @@ export {
3894
3907
  buildProgram,
3895
3908
  main
3896
3909
  };
3897
- //# sourceMappingURL=cli-XJQYUOHI.js.map
3910
+ //# sourceMappingURL=cli-7KJ4QLUU.js.map