@tempoxyz/patron 0.0.18 → 0.0.19

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/dist/bin.js CHANGED
@@ -4,14 +4,14 @@ const require = __patronCreateRequire(import.meta.url)
4
4
 
5
5
  // src/bin.ts
6
6
  if (process.argv[2] === "hook") {
7
- const { runHookProcess } = await import("./chunks/hook-process-YHSATQFR.js");
7
+ const { runHookProcess } = await import("./chunks/hook-process-XBV2NU4E.js");
8
8
  await runHookProcess().catch(() => void 0);
9
9
  process.exit(0);
10
10
  } else if (process.argv[2] === "pay") {
11
- const { runPayProcess } = await import("./chunks/hook-process-YHSATQFR.js");
11
+ const { runPayProcess } = await import("./chunks/hook-process-XBV2NU4E.js");
12
12
  await runPayProcess().catch(() => void 0);
13
13
  process.exit(0);
14
14
  } else {
15
- const { run } = await import("./chunks/-643GYNS6.js");
15
+ const { run } = await import("./chunks/-I33RKF7A.js");
16
16
  process.exitCode = await run(process.argv.slice(2));
17
17
  }
@@ -28,7 +28,7 @@ import {
28
28
  withPatronStatus,
29
29
  withoutPatronHandlers,
30
30
  writeJsonObject
31
- } from "./chunk-XJOIDBXC.js";
31
+ } from "./chunk-WG4BTHH7.js";
32
32
  import {
33
33
  startRefill
34
34
  } from "./chunk-CV2WYKM7.js";
@@ -27583,7 +27583,17 @@ var LeaderboardResponse = external_exports.object({
27583
27583
  claimed: external_exports.boolean().default(true)
27584
27584
  })
27585
27585
  ).default([]),
27586
- totals: external_exports.object({ tokens: external_exports.number().int(), sites: external_exports.number().int(), usd })
27586
+ /**
27587
+ * tokens and usd are seals bought; spent and spentUsd are seals redeemed, which is what
27588
+ * sites have been paid.
27589
+ */
27590
+ totals: external_exports.object({
27591
+ tokens: external_exports.number().int(),
27592
+ sites: external_exports.number().int(),
27593
+ usd,
27594
+ spent: external_exports.number().int().default(0),
27595
+ spentUsd: usd.default("0")
27596
+ })
27587
27597
  });
27588
27598
  var ClaimRequest = external_exports.object({
27589
27599
  /** A registrable domain, or an X profile as "x.com/<handle>". */
@@ -15,7 +15,7 @@ import {
15
15
  needsRefill,
16
16
  redeem,
17
17
  refillSize
18
- } from "./chunk-XJOIDBXC.js";
18
+ } from "./chunk-WG4BTHH7.js";
19
19
  import {
20
20
  clampTokensPerPage,
21
21
  settingsFor
@@ -25,7 +25,7 @@ async function runHookProcess(argument = process.argv[3]) {
25
25
  if (isCursorPayload(payload)) process.stdout.write("{}\n");
26
26
  if (!turnEnd(payload) && hookDomains(payload).length === 0) return;
27
27
  if (await startPayment(raw)) return;
28
- const { runHook } = await import("./hook-CCXQ4T4L.js");
28
+ const { runHook } = await import("./hook-6DRXW2XN.js");
29
29
  await runHook({
30
30
  readInput: async () => raw,
31
31
  settings: resolveSettings(),
@@ -33,7 +33,7 @@ async function runHookProcess(argument = process.argv[3]) {
33
33
  });
34
34
  }
35
35
  async function runPayProcess() {
36
- const { PAY_TIMEOUT_MS, runHook } = await import("./hook-CCXQ4T4L.js");
36
+ const { PAY_TIMEOUT_MS, runHook } = await import("./hook-6DRXW2XN.js");
37
37
  setTimeout(() => process.exit(0), PAY_TIMEOUT_MS + 1e3).unref();
38
38
  const raw = await readStdin(HOOK_TIMEOUT_MS);
39
39
  await runHook(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempoxyz/patron",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Pay the websites your AI agents read, privately",
5
5
  "type": "module",
6
6
  "bin": {