@lucid-agents/taskmarket 1.17.2 → 1.18.1

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.
@@ -1,15 +1,6 @@
1
1
  import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
2
2
  import {
3
- ApiError,
4
- ComputeCreditBuyOutputSchema,
5
- ComputeCreditPricingSchema,
6
- ComputeCreditStatusOutputSchema,
7
3
  X402PayError,
8
- apiErrorEnvelopeOf,
9
- apiGet,
10
- apiOrigin,
11
- apiPost,
12
- apiUrl,
13
4
  assertX402HeaderName,
14
5
  assertX402HeaderValue,
15
6
  createEvmPerRequestRail,
@@ -18,30 +9,36 @@ import {
18
9
  createWalletAccountFromKeystore,
19
10
  createX402Allocations,
20
11
  createX402Payer,
21
- failureMessage,
22
- getTaskmarketHome,
23
12
  getX402JournalPath,
24
13
  getX402Payment,
25
14
  getX402PolicyPath,
15
+ loadX402Policy,
16
+ readMppTempoChallenge,
17
+ reconcileX402Payment,
18
+ withX402FileLock
19
+ } from "./chunk-5VMWXDNO.js";
20
+ import {
21
+ ApiError,
22
+ ComputeCreditBuyOutputSchema,
23
+ ComputeCreditPricingSchema,
24
+ ComputeCreditStatusOutputSchema,
25
+ apiErrorEnvelopeOf,
26
+ apiGet,
27
+ apiOrigin,
28
+ apiPost,
29
+ apiUrl,
30
+ failureMessage,
31
+ getTaskmarketHome,
26
32
  idempotencyHeaders,
27
33
  legalReceiptHeadersForKeystore,
28
34
  loadKeystore,
29
- loadX402Policy,
30
35
  parseFailureBody,
31
36
  paymentProtocolOf,
32
37
  readFailureBody,
33
- readMppTempoChallenge,
34
- reconcileX402Payment,
35
38
  resolveIdempotencyKey,
36
39
  selectedNetwork,
37
- withIdempotentWrite,
38
- withX402FileLock
39
- } from "./chunk-FRV3ZHUR.js";
40
-
41
- // src/lib/compute-credits.ts
42
- import { randomUUID as randomUUID4 } from "crypto";
43
- import { promises as fs2 } from "fs";
44
- import path2 from "path";
40
+ withIdempotentWrite
41
+ } from "./chunk-YB2B5DPR.js";
45
42
 
46
43
  // src/lib/x402-fee.ts
47
44
  import { randomUUID as randomUUID3 } from "crypto";
@@ -489,6 +486,9 @@ async function x402FeePost(path3, body, options = {}) {
489
486
  }
490
487
 
491
488
  // src/lib/compute-credits.ts
489
+ import { randomUUID as randomUUID4 } from "crypto";
490
+ import { promises as fs2 } from "fs";
491
+ import path2 from "path";
492
492
  var COMPUTE_CREDIT_PATH = "/api/compute/credits";
493
493
  var COMPUTE_CREDIT_STATUS_PATH = "/api/compute/credits/status";
494
494
  var COMPUTE_PRICING_PATH = "/api/compute/pricing";
@@ -851,7 +851,7 @@ async function purchaseLocked(input, seams) {
851
851
  }
852
852
  }
853
853
  function apiErrorCode(error) {
854
- return /\b(purchase_void|purchase_pending|in_flight|key_conflict|disabled)\b/.exec(
854
+ return /\b(purchase_void|purchase_pending|in_flight|key_conflict|disabled|LEGAL_ACCEPTANCE_REQUIRED)\b/.exec(
855
855
  error.message
856
856
  )?.[1];
857
857
  }